diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go index 4a2b2c25f3..f11ef1adfe 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceClient.go @@ -160,3 +160,99 @@ func (_m *AsyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTas return r0, r1 } + +type AsyncAgentServiceClient_GetTaskLogs struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskLogs { + return &AsyncAgentServiceClient_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskLogs { + c_call := _m.On("GetTaskLogs", ctx, in, opts) + return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskLogsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskLogs { + c_call := _m.On("GetTaskLogs", matchers...) + return &AsyncAgentServiceClient_GetTaskLogs{Call: c_call} +} + +// GetTaskLogs provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) GetTaskLogs(ctx context.Context, in *admin.GetTaskLogsRequest, opts ...grpc.CallOption) (*admin.GetTaskLogsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) *admin.GetTaskLogsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceClient_GetTaskMetrics struct { + *mock.Call +} + +func (_m AsyncAgentServiceClient_GetTaskMetrics) Return(_a0 *admin.GetTaskMetricsResponse, _a1 error) *AsyncAgentServiceClient_GetTaskMetrics { + return &AsyncAgentServiceClient_GetTaskMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) *AsyncAgentServiceClient_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", ctx, in, opts) + return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} +} + +func (_m *AsyncAgentServiceClient) OnGetTaskMetricsMatch(matchers ...interface{}) *AsyncAgentServiceClient_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", matchers...) + return &AsyncAgentServiceClient_GetTaskMetrics{Call: c_call} +} + +// GetTaskMetrics provides a mock function with given fields: ctx, in, opts +func (_m *AsyncAgentServiceClient) GetTaskMetrics(ctx context.Context, in *admin.GetTaskMetricsRequest, opts ...grpc.CallOption) (*admin.GetTaskMetricsResponse, error) { + _va := make([]interface{}, len(opts)) + for _i := range opts { + _va[_i] = opts[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx, in) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *admin.GetTaskMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) *admin.GetTaskMetricsResponse); ok { + r0 = rf(ctx, in, opts...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskMetricsRequest, ...grpc.CallOption) error); ok { + r1 = rf(ctx, in, opts...) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go index 722d6731ff..1803e286eb 100644 --- a/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go +++ b/flyteidl/clients/go/admin/mocks/AsyncAgentServiceServer.go @@ -137,3 +137,85 @@ func (_m *AsyncAgentServiceServer) GetTask(_a0 context.Context, _a1 *admin.GetTa return r0, r1 } + +type AsyncAgentServiceServer_GetTaskLogs struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTaskLogs) Return(_a0 *admin.GetTaskLogsResponse, _a1 error) *AsyncAgentServiceServer_GetTaskLogs { + return &AsyncAgentServiceServer_GetTaskLogs{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) *AsyncAgentServiceServer_GetTaskLogs { + c_call := _m.On("GetTaskLogs", _a0, _a1) + return &AsyncAgentServiceServer_GetTaskLogs{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskLogsMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTaskLogs { + c_call := _m.On("GetTaskLogs", matchers...) + return &AsyncAgentServiceServer_GetTaskLogs{Call: c_call} +} + +// GetTaskLogs provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTaskLogs(_a0 context.Context, _a1 *admin.GetTaskLogsRequest) (*admin.GetTaskLogsResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskLogsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskLogsRequest) *admin.GetTaskLogsResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskLogsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskLogsRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} + +type AsyncAgentServiceServer_GetTaskMetrics struct { + *mock.Call +} + +func (_m AsyncAgentServiceServer_GetTaskMetrics) Return(_a0 *admin.GetTaskMetricsResponse, _a1 error) *AsyncAgentServiceServer_GetTaskMetrics { + return &AsyncAgentServiceServer_GetTaskMetrics{Call: _m.Call.Return(_a0, _a1)} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMetrics(_a0 context.Context, _a1 *admin.GetTaskMetricsRequest) *AsyncAgentServiceServer_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", _a0, _a1) + return &AsyncAgentServiceServer_GetTaskMetrics{Call: c_call} +} + +func (_m *AsyncAgentServiceServer) OnGetTaskMetricsMatch(matchers ...interface{}) *AsyncAgentServiceServer_GetTaskMetrics { + c_call := _m.On("GetTaskMetrics", matchers...) + return &AsyncAgentServiceServer_GetTaskMetrics{Call: c_call} +} + +// GetTaskMetrics provides a mock function with given fields: _a0, _a1 +func (_m *AsyncAgentServiceServer) GetTaskMetrics(_a0 context.Context, _a1 *admin.GetTaskMetricsRequest) (*admin.GetTaskMetricsResponse, error) { + ret := _m.Called(_a0, _a1) + + var r0 *admin.GetTaskMetricsResponse + if rf, ok := ret.Get(0).(func(context.Context, *admin.GetTaskMetricsRequest) *admin.GetTaskMetricsResponse); ok { + r0 = rf(_a0, _a1) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*admin.GetTaskMetricsResponse) + } + } + + var r1 error + if rf, ok := ret.Get(1).(func(context.Context, *admin.GetTaskMetricsRequest) error); ok { + r1 = rf(_a0, _a1) + } else { + r1 = ret.Error(1) + } + + return r0, r1 +} diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc deleted file mode 100644 index cb40aaf5c9..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/agent.proto - -#include "flyteidl/admin/agent.pb.h" -#include "flyteidl/admin/agent.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h deleted file mode 100644 index e12178767a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/agent.proto -#ifndef GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED - -#include "flyteidl/admin/agent.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc deleted file mode 100644 index 61aebda83d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.cc +++ /dev/null @@ -1,5821 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/agent.proto - -#include "flyteidl/admin/agent.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -namespace flyteidl { -namespace admin { -class TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; -class TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; -class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; -class TaskExecutionMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionMetadata_default_instance_; -class CreateTaskRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateTaskRequest_default_instance_; -class CreateTaskResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr resource_meta_; - const ::flyteidl::admin::Resource* resource_; -} _CreateTaskResponse_default_instance_; -class GetTaskRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetTaskRequest_default_instance_; -class GetTaskResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetTaskResponse_default_instance_; -class ResourceDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Resource_default_instance_; -class DeleteTaskRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DeleteTaskRequest_default_instance_; -class DeleteTaskResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DeleteTaskResponse_default_instance_; -class AgentDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Agent_default_instance_; -class GetAgentRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetAgentRequest_default_instance_; -class GetAgentResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetAgentResponse_default_instance_; -class ListAgentsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListAgentsRequest_default_instance_; -class ListAgentsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListAgentsResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsTaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse(); - } - ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsTaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse(); - } - ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsTaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(); - } - ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsTaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionMetadata_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base, - &scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base, - &scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base,}}; - -static void InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_CreateTaskRequest_default_instance_; - new (ptr) ::flyteidl::admin::CreateTaskRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::CreateTaskRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base,}}; - -static void InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_CreateTaskResponse_default_instance_; - new (ptr) ::flyteidl::admin::CreateTaskResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::CreateTaskResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base,}}; - -static void InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetTaskRequest_default_instance_; - new (ptr) ::flyteidl::admin::GetTaskRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetTaskRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetTaskResponse_default_instance_; - new (ptr) ::flyteidl::admin::GetTaskResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetTaskResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base, - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base,}}; - -static void InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Resource_default_instance_; - new (ptr) ::flyteidl::admin::Resource(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Resource::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsResource_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base,}}; - -static void InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DeleteTaskRequest_default_instance_; - new (ptr) ::flyteidl::admin::DeleteTaskRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DeleteTaskRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DeleteTaskResponse_default_instance_; - new (ptr) ::flyteidl::admin::DeleteTaskResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DeleteTaskResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsAgent_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Agent_default_instance_; - new (ptr) ::flyteidl::admin::Agent(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Agent::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAgent_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsGetAgentRequest_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetAgentRequest_default_instance_; - new (ptr) ::flyteidl::admin::GetAgentRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetAgentRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetAgentRequest_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetAgentRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsGetAgentResponse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetAgentResponse_default_instance_; - new (ptr) ::flyteidl::admin::GetAgentResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetAgentResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetAgentResponse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetAgentResponse_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base,}}; - -static void InitDefaultsListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ListAgentsRequest_default_instance_; - new (ptr) ::flyteidl::admin::ListAgentsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ListAgentsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto}, {}}; - -static void InitDefaultsListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ListAgentsResponse_default_instance_; - new (ptr) ::flyteidl::admin::ListAgentsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ListAgentsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto}, { - &scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fagent_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_LabelsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetAgentRequest_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetAgentResponse_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[16]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, task_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, namespace__), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, annotations_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, k8s_service_account_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionMetadata, environment_variables_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, template__), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, output_prefix_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskRequest, task_execution_metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::CreateTaskResponseDefaultTypeInternal, resource_meta_), - offsetof(::flyteidl::admin::CreateTaskResponseDefaultTypeInternal, resource_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CreateTaskResponse, res_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskRequest, resource_meta_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, resource_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetTaskResponse, log_links_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, state_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, message_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Resource, log_links_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskRequest, resource_meta_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DeleteTaskResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Agent, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Agent, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Agent, supported_task_types_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetAgentRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetAgentRequest, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetAgentResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetAgentResponse, agent_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListAgentsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListAgentsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListAgentsResponse, agents_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, 7, sizeof(::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse)}, - { 9, 16, sizeof(::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse)}, - { 18, 25, sizeof(::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse)}, - { 27, -1, sizeof(::flyteidl::admin::TaskExecutionMetadata)}, - { 38, -1, sizeof(::flyteidl::admin::CreateTaskRequest)}, - { 47, -1, sizeof(::flyteidl::admin::CreateTaskResponse)}, - { 55, -1, sizeof(::flyteidl::admin::GetTaskRequest)}, - { 62, -1, sizeof(::flyteidl::admin::GetTaskResponse)}, - { 69, -1, sizeof(::flyteidl::admin::Resource)}, - { 78, -1, sizeof(::flyteidl::admin::DeleteTaskRequest)}, - { 85, -1, sizeof(::flyteidl::admin::DeleteTaskResponse)}, - { 90, -1, sizeof(::flyteidl::admin::Agent)}, - { 97, -1, sizeof(::flyteidl::admin::GetAgentRequest)}, - { 103, -1, sizeof(::flyteidl::admin::GetAgentResponse)}, - { 109, -1, sizeof(::flyteidl::admin::ListAgentsRequest)}, - { 114, -1, sizeof(::flyteidl::admin::ListAgentsResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_CreateTaskRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_CreateTaskResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_GetTaskRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_GetTaskResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Resource_default_instance_), - reinterpret_cast(&::flyteidl::admin::_DeleteTaskRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_DeleteTaskResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Agent_default_instance_), - reinterpret_cast(&::flyteidl::admin::_GetAgentRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_GetAgentResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ListAgentsRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ListAgentsResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, "flyteidl/admin/agent.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fagent_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fagent_2eproto, 16, file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fagent_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto[] = - "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" - "dmin\032\034flyteidl/core/literals.proto\032\031flyt" - "eidl/core/tasks.proto\032\035flyteidl/core/int" - "erface.proto\032\036flyteidl/core/identifier.p" - "roto\032\035flyteidl/core/execution.proto\"\232\004\n\025" - "TaskExecutionMetadata\022A\n\021task_execution_" - "id\030\001 \001(\0132&.flyteidl.core.TaskExecutionId" - "entifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006labels\030\003 " - "\003(\01321.flyteidl.admin.TaskExecutionMetada" - "ta.LabelsEntry\022K\n\013annotations\030\004 \003(\01326.fl" - "yteidl.admin.TaskExecutionMetadata.Annot" - "ationsEntry\022\033\n\023k8s_service_account\030\005 \001(\t" - "\022^\n\025environment_variables\030\006 \003(\0132\?.flytei" - "dl.admin.TaskExecutionMetadata.Environme" - "ntVariablesEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031E" - "nvironmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" - "\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTaskRequest\022)" - "\n\006inputs\030\001 \001(\0132\031.flyteidl.core.LiteralMa" - "p\022-\n\010template\030\002 \001(\0132\033.flyteidl.core.Task" - "Template\022\025\n\routput_prefix\030\003 \001(\t\022F\n\027task_" - "execution_metadata\030\004 \001(\0132%.flyteidl.admi" - "n.TaskExecutionMetadata\"b\n\022CreateTaskRes" - "ponse\022\027\n\rresource_meta\030\001 \001(\014H\000\022,\n\010resour" - "ce\030\002 \001(\0132\030.flyteidl.admin.ResourceH\000B\005\n\003" - "res\":\n\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t" - "\022\025\n\rresource_meta\030\002 \001(\014\"h\n\017GetTaskRespon" - "se\022*\n\010resource\030\001 \001(\0132\030.flyteidl.admin.Re" - "source\022)\n\tlog_links\030\002 \003(\0132\026.flyteidl.cor" - "e.TaskLog\"\230\001\n\010Resource\022$\n\005state\030\001 \001(\0162\025." - "flyteidl.admin.State\022*\n\007outputs\030\002 \001(\0132\031." - "flyteidl.core.LiteralMap\022\017\n\007message\030\003 \001(" - "\t\022)\n\tlog_links\030\004 \003(\0132\026.flyteidl.core.Tas" - "kLog\"=\n\021DeleteTaskRequest\022\021\n\ttask_type\030\001" - " \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022DeleteTas" - "kResponse\"3\n\005Agent\022\014\n\004name\030\001 \001(\t\022\034\n\024supp" - "orted_task_types\030\002 \003(\t\"\037\n\017GetAgentReques" - "t\022\014\n\004name\030\001 \001(\t\"8\n\020GetAgentResponse\022$\n\005a" - "gent\030\001 \001(\0132\025.flyteidl.admin.Agent\"\023\n\021Lis" - "tAgentsRequest\";\n\022ListAgentsResponse\022%\n\006" - "agents\030\001 \003(\0132\025.flyteidl.admin.Agent*^\n\005S" - "tate\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT" - "_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\t" - "SUCCEEDED\020\004B=Z;github.com/flyteorg/flyte" - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" - "o3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fagent_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fagent_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fagent_2eproto, - "flyteidl/admin/agent.proto", &assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto, 1842, -}; - -void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = - { - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fagent_2eproto, deps, 5); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* State_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fagent_2eproto[0]; -} -bool State_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - - -// =================================================================== - -TaskExecutionMetadata_LabelsEntry_DoNotUse::TaskExecutionMetadata_LabelsEntry_DoNotUse() {} -TaskExecutionMetadata_LabelsEntry_DoNotUse::TaskExecutionMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TaskExecutionMetadata_LabelsEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_LabelsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TaskExecutionMetadata_LabelsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[0]; -} -void TaskExecutionMetadata_LabelsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionMetadata_LabelsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TaskExecutionMetadata_LabelsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -TaskExecutionMetadata_AnnotationsEntry_DoNotUse::TaskExecutionMetadata_AnnotationsEntry_DoNotUse() {} -TaskExecutionMetadata_AnnotationsEntry_DoNotUse::TaskExecutionMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TaskExecutionMetadata_AnnotationsEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_AnnotationsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TaskExecutionMetadata_AnnotationsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[1]; -} -void TaskExecutionMetadata_AnnotationsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionMetadata_AnnotationsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TaskExecutionMetadata_AnnotationsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse() {} -TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::MergeFrom(const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[2]; -} -void TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void TaskExecutionMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionMetadata_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); -} -class TaskExecutionMetadata::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const TaskExecutionMetadata* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -TaskExecutionMetadata::HasBitSetters::task_execution_id(const TaskExecutionMetadata* msg) { - return *msg->task_execution_id_; -} -void TaskExecutionMetadata::clear_task_execution_id() { - if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { - delete task_execution_id_; - } - task_execution_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionMetadata::kTaskExecutionIdFieldNumber; -const int TaskExecutionMetadata::kNamespaceFieldNumber; -const int TaskExecutionMetadata::kLabelsFieldNumber; -const int TaskExecutionMetadata::kAnnotationsFieldNumber; -const int TaskExecutionMetadata::kK8SServiceAccountFieldNumber; -const int TaskExecutionMetadata::kEnvironmentVariablesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionMetadata::TaskExecutionMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionMetadata) -} -TaskExecutionMetadata::TaskExecutionMetadata(const TaskExecutionMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - labels_.MergeFrom(from.labels_); - annotations_.MergeFrom(from.annotations_); - environment_variables_.MergeFrom(from.environment_variables_); - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.namespace_().size() > 0) { - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } - k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.k8s_service_account().size() > 0) { - k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); - } - if (from.has_task_execution_id()) { - task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); - } else { - task_execution_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionMetadata) -} - -void TaskExecutionMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_execution_id_ = nullptr; -} - -TaskExecutionMetadata::~TaskExecutionMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionMetadata) - SharedDtor(); -} - -void TaskExecutionMetadata::SharedDtor() { - namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete task_execution_id_; -} - -void TaskExecutionMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionMetadata& TaskExecutionMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionMetadata_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - labels_.Clear(); - annotations_.Clear(); - environment_variables_.Clear(); - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { - delete task_execution_id_; - } - task_execution_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionMetadata::_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.TaskExecutionIdentifier task_execution_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::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_task_execution_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; - } - // string namespace = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionMetadata.namespace"); - object = msg->mutable_namespace_(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map labels = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->labels_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // map annotations = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->annotations_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // string k8s_service_account = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); - object = msg->mutable_k8s_service_account(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map environment_variables = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->environment_variables_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionMetadata::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.TaskExecutionMetadata) - 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.TaskExecutionIdentifier task_execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // string namespace = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_namespace_())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.namespace")); - } else { - goto handle_unusual; - } - break; - } - - // map labels = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - TaskExecutionMetadata_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TaskExecutionMetadata_LabelsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // map annotations = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - TaskExecutionMetadata_AnnotationsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TaskExecutionMetadata_AnnotationsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&annotations_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // string k8s_service_account = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_k8s_service_account())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.k8s_service_account")); - } else { - goto handle_unusual; - } - break; - } - - // map environment_variables = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&environment_variables_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value")); - } 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.TaskExecutionMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::task_execution_id(this), output); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.namespace"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->namespace_(), output); - } - - // map labels = 3; - if (!this->labels().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->labels().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->labels().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // map annotations = 4; - if (!this->annotations().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->annotations().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->annotations().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // string k8s_service_account = 5; - if (this->k8s_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->k8s_service_account(), output); - } - - // map environment_variables = 6; - if (!this->environment_variables().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->environment_variables().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->environment_variables().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->environment_variables().begin(); - it != this->environment_variables().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(environment_variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(6, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->environment_variables().begin(); - it != this->environment_variables().end(); ++it) { - entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(6, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionMetadata) -} - -::google::protobuf::uint8* TaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::task_execution_id(this), target); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.namespace"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->namespace_(), target); - } - - // map labels = 3; - if (!this->labels().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.LabelsEntry.value"); - } - }; - - if (false && - this->labels().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->labels().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // map annotations = 4; - if (!this->annotations().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry.value"); - } - }; - - if (false && - this->annotations().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->annotations().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // string k8s_service_account = 5; - if (this->k8s_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.k8s_service_account"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->k8s_service_account(), target); - } - - // map environment_variables = 6; - if (!this->environment_variables().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry.value"); - } - }; - - if (false && - this->environment_variables().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->environment_variables().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->environment_variables().begin(); - it != this->environment_variables().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(environment_variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(6, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->environment_variables().begin(); - it != this->environment_variables().end(); ++it) { - entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(6, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.TaskExecutionMetadata) - return target; -} - -size_t TaskExecutionMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionMetadata) - 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; - - // map labels = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->labels_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // map annotations = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->annotations_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // map environment_variables = 6; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->environment_variables_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->environment_variables().begin(); - it != this->environment_variables().end(); ++it) { - entry.reset(environment_variables_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->namespace_()); - } - - // string k8s_service_account = 5; - if (this->k8s_service_account().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->k8s_service_account()); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_execution_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionMetadata) - MergeFrom(*source); - } -} - -void TaskExecutionMetadata::MergeFrom(const TaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - labels_.MergeFrom(from.labels_); - annotations_.MergeFrom(from.annotations_); - environment_variables_.MergeFrom(from.environment_variables_); - if (from.namespace_().size() > 0) { - - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } - if (from.k8s_service_account().size() > 0) { - - k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); - } - if (from.has_task_execution_id()) { - mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); - } -} - -void TaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionMetadata::CopyFrom(const TaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionMetadata::IsInitialized() const { - return true; -} - -void TaskExecutionMetadata::Swap(TaskExecutionMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionMetadata::InternalSwap(TaskExecutionMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - labels_.Swap(&other->labels_); - annotations_.Swap(&other->annotations_); - environment_variables_.Swap(&other->environment_variables_); - namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - k8s_service_account_.Swap(&other->k8s_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(task_execution_id_, other->task_execution_id_); -} - -::google::protobuf::Metadata TaskExecutionMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateTaskRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( - ::flyteidl::core::TaskTemplate::internal_default_instance()); - ::flyteidl::admin::_CreateTaskRequest_default_instance_._instance.get_mutable()->task_execution_metadata_ = const_cast< ::flyteidl::admin::TaskExecutionMetadata*>( - ::flyteidl::admin::TaskExecutionMetadata::internal_default_instance()); -} -class CreateTaskRequest::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& inputs(const CreateTaskRequest* msg); - static const ::flyteidl::core::TaskTemplate& template_(const CreateTaskRequest* msg); - static const ::flyteidl::admin::TaskExecutionMetadata& task_execution_metadata(const CreateTaskRequest* msg); -}; - -const ::flyteidl::core::LiteralMap& -CreateTaskRequest::HasBitSetters::inputs(const CreateTaskRequest* msg) { - return *msg->inputs_; -} -const ::flyteidl::core::TaskTemplate& -CreateTaskRequest::HasBitSetters::template_(const CreateTaskRequest* msg) { - return *msg->template__; -} -const ::flyteidl::admin::TaskExecutionMetadata& -CreateTaskRequest::HasBitSetters::task_execution_metadata(const CreateTaskRequest* msg) { - return *msg->task_execution_metadata_; -} -void CreateTaskRequest::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void CreateTaskRequest::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateTaskRequest::kInputsFieldNumber; -const int CreateTaskRequest::kTemplateFieldNumber; -const int CreateTaskRequest::kOutputPrefixFieldNumber; -const int CreateTaskRequest::kTaskExecutionMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateTaskRequest::CreateTaskRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskRequest) -} -CreateTaskRequest::CreateTaskRequest(const CreateTaskRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.output_prefix().size() > 0) { - output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_template_()) { - template__ = new ::flyteidl::core::TaskTemplate(*from.template__); - } else { - template__ = nullptr; - } - if (from.has_task_execution_metadata()) { - task_execution_metadata_ = new ::flyteidl::admin::TaskExecutionMetadata(*from.task_execution_metadata_); - } else { - task_execution_metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskRequest) -} - -void CreateTaskRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&inputs_, 0, static_cast( - reinterpret_cast(&task_execution_metadata_) - - reinterpret_cast(&inputs_)) + sizeof(task_execution_metadata_)); -} - -CreateTaskRequest::~CreateTaskRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskRequest) - SharedDtor(); -} - -void CreateTaskRequest::SharedDtor() { - output_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete template__; - if (this != internal_default_instance()) delete task_execution_metadata_; -} - -void CreateTaskRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateTaskRequest& CreateTaskRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void CreateTaskRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { - delete task_execution_metadata_; - } - task_execution_metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateTaskRequest::_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.LiteralMap inputs = 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::LiteralMap::_InternalParse; - object = msg->mutable_inputs(); - 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.core.TaskTemplate template = 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::core::TaskTemplate::_InternalParse; - object = msg->mutable_template_(); - 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; - } - // string output_prefix = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.CreateTaskRequest.output_prefix"); - object = msg->mutable_output_prefix(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::TaskExecutionMetadata::_InternalParse; - object = msg->mutable_task_execution_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateTaskRequest::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.CreateTaskRequest) - 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.LiteralMap inputs = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskTemplate template = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } else { - goto handle_unusual; - } - break; - } - - // string output_prefix = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_prefix())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.CreateTaskRequest.output_prefix")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_execution_metadata())); - } 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.CreateTaskRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateTaskRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::inputs(this), output); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::template_(this), output); - } - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CreateTaskRequest.output_prefix"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->output_prefix(), output); - } - - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - if (this->has_task_execution_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::task_execution_metadata(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.CreateTaskRequest) -} - -::google::protobuf::uint8* CreateTaskRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::inputs(this), target); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::template_(this), target); - } - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CreateTaskRequest.output_prefix"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->output_prefix(), target); - } - - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - if (this->has_task_execution_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::task_execution_metadata(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.CreateTaskRequest) - return target; -} - -size_t CreateTaskRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskRequest) - 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; - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_prefix()); - } - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - if (this->has_task_execution_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_execution_metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateTaskRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskRequest) - MergeFrom(*source); - } -} - -void CreateTaskRequest::MergeFrom(const CreateTaskRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.output_prefix().size() > 0) { - - output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); - } - if (from.has_template_()) { - mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); - } - if (from.has_task_execution_metadata()) { - mutable_task_execution_metadata()->::flyteidl::admin::TaskExecutionMetadata::MergeFrom(from.task_execution_metadata()); - } -} - -void CreateTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTaskRequest::CopyFrom(const CreateTaskRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTaskRequest::IsInitialized() const { - return true; -} - -void CreateTaskRequest::Swap(CreateTaskRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateTaskRequest::InternalSwap(CreateTaskRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - output_prefix_.Swap(&other->output_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(inputs_, other->inputs_); - swap(template__, other->template__); - swap(task_execution_metadata_, other->task_execution_metadata_); -} - -::google::protobuf::Metadata CreateTaskRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateTaskResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_CreateTaskResponse_default_instance_.resource_meta_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_CreateTaskResponse_default_instance_.resource_ = const_cast< ::flyteidl::admin::Resource*>( - ::flyteidl::admin::Resource::internal_default_instance()); -} -class CreateTaskResponse::HasBitSetters { - public: - static const ::flyteidl::admin::Resource& resource(const CreateTaskResponse* msg); -}; - -const ::flyteidl::admin::Resource& -CreateTaskResponse::HasBitSetters::resource(const CreateTaskResponse* msg) { - return *msg->res_.resource_; -} -void CreateTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_res(); - if (resource) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resource = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resource, submessage_arena); - } - set_has_resource(); - res_.resource_ = resource; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateTaskResponse::kResourceMetaFieldNumber; -const int CreateTaskResponse::kResourceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateTaskResponse::CreateTaskResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.CreateTaskResponse) -} -CreateTaskResponse::CreateTaskResponse(const CreateTaskResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_res(); - switch (from.res_case()) { - case kResourceMeta: { - set_resource_meta(from.resource_meta()); - break; - } - case kResource: { - mutable_resource()->::flyteidl::admin::Resource::MergeFrom(from.resource()); - break; - } - case RES_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CreateTaskResponse) -} - -void CreateTaskResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - clear_has_res(); -} - -CreateTaskResponse::~CreateTaskResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.CreateTaskResponse) - SharedDtor(); -} - -void CreateTaskResponse::SharedDtor() { - if (has_res()) { - clear_res(); - } -} - -void CreateTaskResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateTaskResponse& CreateTaskResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void CreateTaskResponse::clear_res() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.CreateTaskResponse) - switch (res_case()) { - case kResourceMeta: { - res_.resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kResource: { - delete res_.resource_; - break; - } - case RES_NOT_SET: { - break; - } - } - _oneof_case_[0] = RES_NOT_SET; -} - - -void CreateTaskResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CreateTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_res(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateTaskResponse::_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) { - // bytes resource_meta = 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); - object = msg->mutable_resource_meta(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Resource resource = 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::Resource::_InternalParse; - object = msg->mutable_resource(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateTaskResponse::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.CreateTaskResponse) - 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)) { - // bytes resource_meta = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_resource_meta())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Resource resource = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resource())); - } 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.CreateTaskResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.CreateTaskResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateTaskResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.CreateTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes resource_meta = 1; - if (has_resource_meta()) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->resource_meta(), output); - } - - // .flyteidl.admin.Resource resource = 2; - if (has_resource()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::resource(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.CreateTaskResponse) -} - -::google::protobuf::uint8* CreateTaskResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CreateTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes resource_meta = 1; - if (has_resource_meta()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->resource_meta(), target); - } - - // .flyteidl.admin.Resource resource = 2; - if (has_resource()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::resource(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.CreateTaskResponse) - return target; -} - -size_t CreateTaskResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CreateTaskResponse) - 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 (res_case()) { - // bytes resource_meta = 1; - case kResourceMeta: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->resource_meta()); - break; - } - // .flyteidl.admin.Resource resource = 2; - case kResource: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *res_.resource_); - break; - } - case RES_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CreateTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateTaskResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CreateTaskResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CreateTaskResponse) - MergeFrom(*source); - } -} - -void CreateTaskResponse::MergeFrom(const CreateTaskResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CreateTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.res_case()) { - case kResourceMeta: { - set_resource_meta(from.resource_meta()); - break; - } - case kResource: { - mutable_resource()->::flyteidl::admin::Resource::MergeFrom(from.resource()); - break; - } - case RES_NOT_SET: { - break; - } - } -} - -void CreateTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CreateTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTaskResponse::CopyFrom(const CreateTaskResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CreateTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTaskResponse::IsInitialized() const { - return true; -} - -void CreateTaskResponse::Swap(CreateTaskResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateTaskResponse::InternalSwap(CreateTaskResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(res_, other->res_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata CreateTaskResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetTaskRequest::InitAsDefaultInstance() { -} -class GetTaskRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetTaskRequest::kTaskTypeFieldNumber; -const int GetTaskRequest::kResourceMetaFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetTaskRequest::GetTaskRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskRequest) -} -GetTaskRequest::GetTaskRequest(const GetTaskRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.resource_meta().size() > 0) { - resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskRequest) -} - -void GetTaskRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -GetTaskRequest::~GetTaskRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskRequest) - SharedDtor(); -} - -void GetTaskRequest::SharedDtor() { - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void GetTaskRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetTaskRequest& GetTaskRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void GetTaskRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetTaskRequest::_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) { - // string task_type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetTaskRequest.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bytes resource_meta = 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); - object = msg->mutable_resource_meta(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetTaskRequest::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.GetTaskRequest) - 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)) { - // string task_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.GetTaskRequest.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // bytes resource_meta = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_resource_meta())); - } 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.GetTaskRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetTaskRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.GetTaskRequest.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->task_type(), output); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->resource_meta(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskRequest) -} - -::google::protobuf::uint8* GetTaskRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.GetTaskRequest.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->task_type(), target); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->resource_meta(), 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.GetTaskRequest) - return target; -} - -size_t GetTaskRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskRequest) - 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; - - // string task_type = 1; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->resource_meta()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetTaskRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskRequest) - MergeFrom(*source); - } -} - -void GetTaskRequest::MergeFrom(const GetTaskRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.resource_meta().size() > 0) { - - resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); - } -} - -void GetTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTaskRequest::CopyFrom(const GetTaskRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTaskRequest::IsInitialized() const { - return true; -} - -void GetTaskRequest::Swap(GetTaskRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetTaskRequest::InternalSwap(GetTaskRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata GetTaskRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetTaskResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_GetTaskResponse_default_instance_._instance.get_mutable()->resource_ = const_cast< ::flyteidl::admin::Resource*>( - ::flyteidl::admin::Resource::internal_default_instance()); -} -class GetTaskResponse::HasBitSetters { - public: - static const ::flyteidl::admin::Resource& resource(const GetTaskResponse* msg); -}; - -const ::flyteidl::admin::Resource& -GetTaskResponse::HasBitSetters::resource(const GetTaskResponse* msg) { - return *msg->resource_; -} -void GetTaskResponse::clear_log_links() { - log_links_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetTaskResponse::kResourceFieldNumber; -const int GetTaskResponse::kLogLinksFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetTaskResponse::GetTaskResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetTaskResponse) -} -GetTaskResponse::GetTaskResponse(const GetTaskResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - log_links_(from.log_links_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_resource()) { - resource_ = new ::flyteidl::admin::Resource(*from.resource_); - } else { - resource_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetTaskResponse) -} - -void GetTaskResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - resource_ = nullptr; -} - -GetTaskResponse::~GetTaskResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetTaskResponse) - SharedDtor(); -} - -void GetTaskResponse::SharedDtor() { - if (this != internal_default_instance()) delete resource_; -} - -void GetTaskResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetTaskResponse& GetTaskResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void GetTaskResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - log_links_.Clear(); - if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { - delete resource_; - } - resource_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetTaskResponse::_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.Resource resource = 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::Resource::_InternalParse; - object = msg->mutable_resource(); - 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; - } - // repeated .flyteidl.core.TaskLog log_links = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; - object = msg->add_log_links(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 GetTaskResponse::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.GetTaskResponse) - 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.Resource resource = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resource())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskLog log_links = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_log_links())); - } 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.GetTaskResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetTaskResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetTaskResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Resource resource = 1; - if (this->has_resource()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::resource(this), output); - } - - // repeated .flyteidl.core.TaskLog log_links = 2; - for (unsigned int i = 0, - n = static_cast(this->log_links_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->log_links(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetTaskResponse) -} - -::google::protobuf::uint8* GetTaskResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Resource resource = 1; - if (this->has_resource()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::resource(this), target); - } - - // repeated .flyteidl.core.TaskLog log_links = 2; - for (unsigned int i = 0, - n = static_cast(this->log_links_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->log_links(static_cast(i)), 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.GetTaskResponse) - return target; -} - -size_t GetTaskResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetTaskResponse) - 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; - - // repeated .flyteidl.core.TaskLog log_links = 2; - { - unsigned int count = static_cast(this->log_links_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->log_links(static_cast(i))); - } - } - - // .flyteidl.admin.Resource resource = 1; - if (this->has_resource()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resource_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetTaskResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetTaskResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetTaskResponse) - MergeFrom(*source); - } -} - -void GetTaskResponse::MergeFrom(const GetTaskResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - log_links_.MergeFrom(from.log_links_); - if (from.has_resource()) { - mutable_resource()->::flyteidl::admin::Resource::MergeFrom(from.resource()); - } -} - -void GetTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetTaskResponse::CopyFrom(const GetTaskResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetTaskResponse::IsInitialized() const { - return true; -} - -void GetTaskResponse::Swap(GetTaskResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetTaskResponse::InternalSwap(GetTaskResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&log_links_)->InternalSwap(CastToBase(&other->log_links_)); - swap(resource_, other->resource_); -} - -::google::protobuf::Metadata GetTaskResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Resource::InitAsDefaultInstance() { - ::flyteidl::admin::_Resource_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class Resource::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& outputs(const Resource* msg); -}; - -const ::flyteidl::core::LiteralMap& -Resource::HasBitSetters::outputs(const Resource* msg) { - return *msg->outputs_; -} -void Resource::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -void Resource::clear_log_links() { - log_links_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Resource::kStateFieldNumber; -const int Resource::kOutputsFieldNumber; -const int Resource::kMessageFieldNumber; -const int Resource::kLogLinksFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Resource::Resource() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Resource) -} -Resource::Resource(const Resource& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - log_links_(from.log_links_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.message().size() > 0) { - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.has_outputs()) { - outputs_ = new ::flyteidl::core::LiteralMap(*from.outputs_); - } else { - outputs_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Resource) -} - -void Resource::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&outputs_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&outputs_)) + sizeof(state_)); -} - -Resource::~Resource() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Resource) - SharedDtor(); -} - -void Resource::SharedDtor() { - message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete outputs_; -} - -void Resource::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Resource& Resource::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Resource_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void Resource::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Resource) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - log_links_.Clear(); - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Resource::_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.State state = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::State>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.LiteralMap outputs = 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::core::LiteralMap::_InternalParse; - object = msg->mutable_outputs(); - 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; - } - // string message = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Resource.message"); - object = msg->mutable_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.core.TaskLog log_links = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; - object = msg->add_log_links(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Resource::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.Resource) - 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.State state = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::State >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap outputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // string message = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Resource.message")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskLog log_links = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_log_links())); - } 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.Resource) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Resource) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Resource::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Resource) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.State state = 1; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->state(), output); - } - - // .flyteidl.core.LiteralMap outputs = 2; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - // string message = 3; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Resource.message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->message(), output); - } - - // repeated .flyteidl.core.TaskLog log_links = 4; - for (unsigned int i = 0, - n = static_cast(this->log_links_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->log_links(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Resource) -} - -::google::protobuf::uint8* Resource::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Resource) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.State state = 1; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->state(), target); - } - - // .flyteidl.core.LiteralMap outputs = 2; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(this), target); - } - - // string message = 3; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Resource.message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->message(), target); - } - - // repeated .flyteidl.core.TaskLog log_links = 4; - for (unsigned int i = 0, - n = static_cast(this->log_links_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->log_links(static_cast(i)), 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.Resource) - return target; -} - -size_t Resource::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Resource) - 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; - - // repeated .flyteidl.core.TaskLog log_links = 4; - { - unsigned int count = static_cast(this->log_links_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->log_links(static_cast(i))); - } - } - - // string message = 3; - if (this->message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->message()); - } - - // .flyteidl.core.LiteralMap outputs = 2; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - // .flyteidl.admin.State state = 1; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Resource::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Resource) - GOOGLE_DCHECK_NE(&from, this); - const Resource* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Resource) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Resource) - MergeFrom(*source); - } -} - -void Resource::MergeFrom(const Resource& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Resource) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - log_links_.MergeFrom(from.log_links_); - if (from.message().size() > 0) { - - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.has_outputs()) { - mutable_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.outputs()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void Resource::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Resource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Resource::CopyFrom(const Resource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Resource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Resource::IsInitialized() const { - return true; -} - -void Resource::Swap(Resource* other) { - if (other == this) return; - InternalSwap(other); -} -void Resource::InternalSwap(Resource* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&log_links_)->InternalSwap(CastToBase(&other->log_links_)); - message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(outputs_, other->outputs_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata Resource::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DeleteTaskRequest::InitAsDefaultInstance() { -} -class DeleteTaskRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteTaskRequest::kTaskTypeFieldNumber; -const int DeleteTaskRequest::kResourceMetaFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteTaskRequest::DeleteTaskRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskRequest) -} -DeleteTaskRequest::DeleteTaskRequest(const DeleteTaskRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.resource_meta().size() > 0) { - resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskRequest) -} - -void DeleteTaskRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -DeleteTaskRequest::~DeleteTaskRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskRequest) - SharedDtor(); -} - -void DeleteTaskRequest::SharedDtor() { - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void DeleteTaskRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteTaskRequest& DeleteTaskRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskRequest_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteTaskRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteTaskRequest::_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) { - // string task_type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DeleteTaskRequest.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bytes resource_meta = 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); - object = msg->mutable_resource_meta(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DeleteTaskRequest::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.DeleteTaskRequest) - 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)) { - // string task_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DeleteTaskRequest.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // bytes resource_meta = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_resource_meta())); - } 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.DeleteTaskRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteTaskRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DeleteTaskRequest.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->task_type(), output); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 2, this->resource_meta(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskRequest) -} - -::google::protobuf::uint8* DeleteTaskRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DeleteTaskRequest.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->task_type(), target); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->resource_meta(), 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.DeleteTaskRequest) - return target; -} - -size_t DeleteTaskRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskRequest) - 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; - - // string task_type = 1; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // bytes resource_meta = 2; - if (this->resource_meta().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->resource_meta()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteTaskRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - const DeleteTaskRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskRequest) - MergeFrom(*source); - } -} - -void DeleteTaskRequest::MergeFrom(const DeleteTaskRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.resource_meta().size() > 0) { - - resource_meta_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_meta_); - } -} - -void DeleteTaskRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteTaskRequest::CopyFrom(const DeleteTaskRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteTaskRequest::IsInitialized() const { - return true; -} - -void DeleteTaskRequest::Swap(DeleteTaskRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteTaskRequest::InternalSwap(DeleteTaskRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - resource_meta_.Swap(&other->resource_meta_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata DeleteTaskRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DeleteTaskResponse::InitAsDefaultInstance() { -} -class DeleteTaskResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteTaskResponse::DeleteTaskResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DeleteTaskResponse) -} -DeleteTaskResponse::DeleteTaskResponse(const DeleteTaskResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DeleteTaskResponse) -} - -void DeleteTaskResponse::SharedCtor() { -} - -DeleteTaskResponse::~DeleteTaskResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DeleteTaskResponse) - SharedDtor(); -} - -void DeleteTaskResponse::SharedDtor() { -} - -void DeleteTaskResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteTaskResponse& DeleteTaskResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTaskResponse_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteTaskResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DeleteTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteTaskResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DeleteTaskResponse::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.DeleteTaskResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.DeleteTaskResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DeleteTaskResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteTaskResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DeleteTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.DeleteTaskResponse) -} - -::google::protobuf::uint8* DeleteTaskResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DeleteTaskResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.DeleteTaskResponse) - return target; -} - -size_t DeleteTaskResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DeleteTaskResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteTaskResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DeleteTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - const DeleteTaskResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DeleteTaskResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DeleteTaskResponse) - MergeFrom(*source); - } -} - -void DeleteTaskResponse::MergeFrom(const DeleteTaskResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DeleteTaskResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void DeleteTaskResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DeleteTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteTaskResponse::CopyFrom(const DeleteTaskResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DeleteTaskResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteTaskResponse::IsInitialized() const { - return true; -} - -void DeleteTaskResponse::Swap(DeleteTaskResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteTaskResponse::InternalSwap(DeleteTaskResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata DeleteTaskResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Agent::InitAsDefaultInstance() { -} -class Agent::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Agent::kNameFieldNumber; -const int Agent::kSupportedTaskTypesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Agent::Agent() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Agent) -} -Agent::Agent(const Agent& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - supported_task_types_(from.supported_task_types_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Agent) -} - -void Agent::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Agent::~Agent() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Agent) - SharedDtor(); -} - -void Agent::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Agent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Agent& Agent::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Agent_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void Agent::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Agent) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - supported_task_types_.Clear(); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Agent::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Agent.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string supported_task_types = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Agent.supported_task_types"); - object = msg->add_supported_task_types(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Agent::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.Agent) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Agent.name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string supported_task_types = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_supported_task_types())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->supported_task_types(this->supported_task_types_size() - 1).data(), - static_cast(this->supported_task_types(this->supported_task_types_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Agent.supported_task_types")); - } 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.Agent) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Agent) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Agent::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Agent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Agent.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // repeated string supported_task_types = 2; - for (int i = 0, n = this->supported_task_types_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->supported_task_types(i).data(), static_cast(this->supported_task_types(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Agent.supported_task_types"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->supported_task_types(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Agent) -} - -::google::protobuf::uint8* Agent::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Agent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Agent.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // repeated string supported_task_types = 2; - for (int i = 0, n = this->supported_task_types_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->supported_task_types(i).data(), static_cast(this->supported_task_types(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Agent.supported_task_types"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->supported_task_types(i), 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.Agent) - return target; -} - -size_t Agent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Agent) - 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; - - // repeated string supported_task_types = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->supported_task_types_size()); - for (int i = 0, n = this->supported_task_types_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->supported_task_types(i)); - } - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Agent::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Agent) - GOOGLE_DCHECK_NE(&from, this); - const Agent* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Agent) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Agent) - MergeFrom(*source); - } -} - -void Agent::MergeFrom(const Agent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Agent) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - supported_task_types_.MergeFrom(from.supported_task_types_); - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void Agent::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Agent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Agent::CopyFrom(const Agent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Agent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Agent::IsInitialized() const { - return true; -} - -void Agent::Swap(Agent* other) { - if (other == this) return; - InternalSwap(other); -} -void Agent::InternalSwap(Agent* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - supported_task_types_.InternalSwap(CastToBase(&other->supported_task_types_)); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Agent::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetAgentRequest::InitAsDefaultInstance() { -} -class GetAgentRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetAgentRequest::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetAgentRequest::GetAgentRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetAgentRequest) -} -GetAgentRequest::GetAgentRequest(const GetAgentRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetAgentRequest) -} - -void GetAgentRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetAgentRequest_flyteidl_2fadmin_2fagent_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -GetAgentRequest::~GetAgentRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetAgentRequest) - SharedDtor(); -} - -void GetAgentRequest::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void GetAgentRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetAgentRequest& GetAgentRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentRequest_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void GetAgentRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetAgentRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetAgentRequest::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.GetAgentRequest.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetAgentRequest::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.GetAgentRequest) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.GetAgentRequest.name")); - } 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.GetAgentRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetAgentRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetAgentRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetAgentRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.GetAgentRequest.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetAgentRequest) -} - -::google::protobuf::uint8* GetAgentRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetAgentRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.GetAgentRequest.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), 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.GetAgentRequest) - return target; -} - -size_t GetAgentRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetAgentRequest) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetAgentRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetAgentRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetAgentRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetAgentRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetAgentRequest) - MergeFrom(*source); - } -} - -void GetAgentRequest::MergeFrom(const GetAgentRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetAgentRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void GetAgentRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetAgentRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAgentRequest::CopyFrom(const GetAgentRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetAgentRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAgentRequest::IsInitialized() const { - return true; -} - -void GetAgentRequest::Swap(GetAgentRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetAgentRequest::InternalSwap(GetAgentRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata GetAgentRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetAgentResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_GetAgentResponse_default_instance_._instance.get_mutable()->agent_ = const_cast< ::flyteidl::admin::Agent*>( - ::flyteidl::admin::Agent::internal_default_instance()); -} -class GetAgentResponse::HasBitSetters { - public: - static const ::flyteidl::admin::Agent& agent(const GetAgentResponse* msg); -}; - -const ::flyteidl::admin::Agent& -GetAgentResponse::HasBitSetters::agent(const GetAgentResponse* msg) { - return *msg->agent_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetAgentResponse::kAgentFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetAgentResponse::GetAgentResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetAgentResponse) -} -GetAgentResponse::GetAgentResponse(const GetAgentResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_agent()) { - agent_ = new ::flyteidl::admin::Agent(*from.agent_); - } else { - agent_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetAgentResponse) -} - -void GetAgentResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetAgentResponse_flyteidl_2fadmin_2fagent_2eproto.base); - agent_ = nullptr; -} - -GetAgentResponse::~GetAgentResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetAgentResponse) - SharedDtor(); -} - -void GetAgentResponse::SharedDtor() { - if (this != internal_default_instance()) delete agent_; -} - -void GetAgentResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetAgentResponse& GetAgentResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetAgentResponse_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void GetAgentResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetAgentResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && agent_ != nullptr) { - delete agent_; - } - agent_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetAgentResponse::_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.Agent agent = 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::Agent::_InternalParse; - object = msg->mutable_agent(); - 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 GetAgentResponse::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.GetAgentResponse) - 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.Agent agent = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_agent())); - } 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.GetAgentResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetAgentResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetAgentResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetAgentResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Agent agent = 1; - if (this->has_agent()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::agent(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.GetAgentResponse) -} - -::google::protobuf::uint8* GetAgentResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetAgentResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Agent agent = 1; - if (this->has_agent()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::agent(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.GetAgentResponse) - return target; -} - -size_t GetAgentResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetAgentResponse) - 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.admin.Agent agent = 1; - if (this->has_agent()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *agent_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetAgentResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetAgentResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetAgentResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetAgentResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetAgentResponse) - MergeFrom(*source); - } -} - -void GetAgentResponse::MergeFrom(const GetAgentResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetAgentResponse) - 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_agent()) { - mutable_agent()->::flyteidl::admin::Agent::MergeFrom(from.agent()); - } -} - -void GetAgentResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetAgentResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetAgentResponse::CopyFrom(const GetAgentResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetAgentResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetAgentResponse::IsInitialized() const { - return true; -} - -void GetAgentResponse::Swap(GetAgentResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetAgentResponse::InternalSwap(GetAgentResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(agent_, other->agent_); -} - -::google::protobuf::Metadata GetAgentResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListAgentsRequest::InitAsDefaultInstance() { -} -class ListAgentsRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListAgentsRequest::ListAgentsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ListAgentsRequest) -} -ListAgentsRequest::ListAgentsRequest(const ListAgentsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListAgentsRequest) -} - -void ListAgentsRequest::SharedCtor() { -} - -ListAgentsRequest::~ListAgentsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ListAgentsRequest) - SharedDtor(); -} - -void ListAgentsRequest::SharedDtor() { -} - -void ListAgentsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListAgentsRequest& ListAgentsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListAgentsRequest_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void ListAgentsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListAgentsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListAgentsRequest::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListAgentsRequest::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.ListAgentsRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ListAgentsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListAgentsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListAgentsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListAgentsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListAgentsRequest) -} - -::google::protobuf::uint8* ListAgentsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListAgentsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ListAgentsRequest) - return target; -} - -size_t ListAgentsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListAgentsRequest) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListAgentsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListAgentsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ListAgentsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListAgentsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListAgentsRequest) - MergeFrom(*source); - } -} - -void ListAgentsRequest::MergeFrom(const ListAgentsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListAgentsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ListAgentsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListAgentsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListAgentsRequest::CopyFrom(const ListAgentsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListAgentsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListAgentsRequest::IsInitialized() const { - return true; -} - -void ListAgentsRequest::Swap(ListAgentsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ListAgentsRequest::InternalSwap(ListAgentsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ListAgentsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListAgentsResponse::InitAsDefaultInstance() { -} -class ListAgentsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListAgentsResponse::kAgentsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListAgentsResponse::ListAgentsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ListAgentsResponse) -} -ListAgentsResponse::ListAgentsResponse(const ListAgentsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - agents_(from.agents_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListAgentsResponse) -} - -void ListAgentsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto.base); -} - -ListAgentsResponse::~ListAgentsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ListAgentsResponse) - SharedDtor(); -} - -void ListAgentsResponse::SharedDtor() { -} - -void ListAgentsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListAgentsResponse& ListAgentsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListAgentsResponse_flyteidl_2fadmin_2fagent_2eproto.base); - return *internal_default_instance(); -} - - -void ListAgentsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListAgentsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - agents_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListAgentsResponse::_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) { - // repeated .flyteidl.admin.Agent agents = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Agent::_InternalParse; - object = msg->add_agents(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 ListAgentsResponse::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.ListAgentsResponse) - 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)) { - // repeated .flyteidl.admin.Agent agents = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_agents())); - } 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.ListAgentsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListAgentsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListAgentsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListAgentsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Agent agents = 1; - for (unsigned int i = 0, - n = static_cast(this->agents_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->agents(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListAgentsResponse) -} - -::google::protobuf::uint8* ListAgentsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListAgentsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Agent agents = 1; - for (unsigned int i = 0, - n = static_cast(this->agents_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->agents(static_cast(i)), 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.ListAgentsResponse) - return target; -} - -size_t ListAgentsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListAgentsResponse) - 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; - - // repeated .flyteidl.admin.Agent agents = 1; - { - unsigned int count = static_cast(this->agents_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->agents(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListAgentsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListAgentsResponse) - GOOGLE_DCHECK_NE(&from, this); - const ListAgentsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListAgentsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListAgentsResponse) - MergeFrom(*source); - } -} - -void ListAgentsResponse::MergeFrom(const ListAgentsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListAgentsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - agents_.MergeFrom(from.agents_); -} - -void ListAgentsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListAgentsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListAgentsResponse::CopyFrom(const ListAgentsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListAgentsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListAgentsResponse::IsInitialized() const { - return true; -} - -void ListAgentsResponse::Swap(ListAgentsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ListAgentsResponse::InternalSwap(ListAgentsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&agents_)->InternalSwap(CastToBase(&other->agents_)); -} - -::google::protobuf::Metadata ListAgentsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fagent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fagent_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::CreateTaskRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::CreateTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::CreateTaskResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetTaskRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetTaskResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Resource* Arena::CreateMaybeMessage< ::flyteidl::admin::Resource >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Resource >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::DeleteTaskResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DeleteTaskResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Agent* Arena::CreateMaybeMessage< ::flyteidl::admin::Agent >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Agent >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetAgentRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetAgentResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetAgentResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetAgentResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListAgentsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListAgentsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ListAgentsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListAgentsResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h deleted file mode 100644 index 86aeccc4b2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/agent.pb.h +++ /dev/null @@ -1,3322 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/agent.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/execution.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fagent_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fagent_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[16] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fagent_2eproto(); -namespace flyteidl { -namespace admin { -class Agent; -class AgentDefaultTypeInternal; -extern AgentDefaultTypeInternal _Agent_default_instance_; -class CreateTaskRequest; -class CreateTaskRequestDefaultTypeInternal; -extern CreateTaskRequestDefaultTypeInternal _CreateTaskRequest_default_instance_; -class CreateTaskResponse; -class CreateTaskResponseDefaultTypeInternal; -extern CreateTaskResponseDefaultTypeInternal _CreateTaskResponse_default_instance_; -class DeleteTaskRequest; -class DeleteTaskRequestDefaultTypeInternal; -extern DeleteTaskRequestDefaultTypeInternal _DeleteTaskRequest_default_instance_; -class DeleteTaskResponse; -class DeleteTaskResponseDefaultTypeInternal; -extern DeleteTaskResponseDefaultTypeInternal _DeleteTaskResponse_default_instance_; -class GetAgentRequest; -class GetAgentRequestDefaultTypeInternal; -extern GetAgentRequestDefaultTypeInternal _GetAgentRequest_default_instance_; -class GetAgentResponse; -class GetAgentResponseDefaultTypeInternal; -extern GetAgentResponseDefaultTypeInternal _GetAgentResponse_default_instance_; -class GetTaskRequest; -class GetTaskRequestDefaultTypeInternal; -extern GetTaskRequestDefaultTypeInternal _GetTaskRequest_default_instance_; -class GetTaskResponse; -class GetTaskResponseDefaultTypeInternal; -extern GetTaskResponseDefaultTypeInternal _GetTaskResponse_default_instance_; -class ListAgentsRequest; -class ListAgentsRequestDefaultTypeInternal; -extern ListAgentsRequestDefaultTypeInternal _ListAgentsRequest_default_instance_; -class ListAgentsResponse; -class ListAgentsResponseDefaultTypeInternal; -extern ListAgentsResponseDefaultTypeInternal _ListAgentsResponse_default_instance_; -class Resource; -class ResourceDefaultTypeInternal; -extern ResourceDefaultTypeInternal _Resource_default_instance_; -class TaskExecutionMetadata; -class TaskExecutionMetadataDefaultTypeInternal; -extern TaskExecutionMetadataDefaultTypeInternal _TaskExecutionMetadata_default_instance_; -class TaskExecutionMetadata_AnnotationsEntry_DoNotUse; -class TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal; -extern TaskExecutionMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_; -class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse; -class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal; -extern TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_; -class TaskExecutionMetadata_LabelsEntry_DoNotUse; -class TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal; -extern TaskExecutionMetadata_LabelsEntry_DoNotUseDefaultTypeInternal _TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Agent* Arena::CreateMaybeMessage<::flyteidl::admin::Agent>(Arena*); -template<> ::flyteidl::admin::CreateTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskRequest>(Arena*); -template<> ::flyteidl::admin::CreateTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::CreateTaskResponse>(Arena*); -template<> ::flyteidl::admin::DeleteTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskRequest>(Arena*); -template<> ::flyteidl::admin::DeleteTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::DeleteTaskResponse>(Arena*); -template<> ::flyteidl::admin::GetAgentRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetAgentRequest>(Arena*); -template<> ::flyteidl::admin::GetAgentResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetAgentResponse>(Arena*); -template<> ::flyteidl::admin::GetTaskRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskRequest>(Arena*); -template<> ::flyteidl::admin::GetTaskResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetTaskResponse>(Arena*); -template<> ::flyteidl::admin::ListAgentsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ListAgentsRequest>(Arena*); -template<> ::flyteidl::admin::ListAgentsResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ListAgentsResponse>(Arena*); -template<> ::flyteidl::admin::Resource* Arena::CreateMaybeMessage<::flyteidl::admin::Resource>(Arena*); -template<> ::flyteidl::admin::TaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(Arena*); -template<> ::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_AnnotationsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse>(Arena*); -template<> ::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata_LabelsEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4, - State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool State_IsValid(int value); -const State State_MIN = RETRYABLE_FAILURE; -const State State_MAX = SUCCEEDED; -const int State_ARRAYSIZE = State_MAX + 1; - -const ::google::protobuf::EnumDescriptor* State_descriptor(); -inline const ::std::string& State_Name(State value) { - return ::google::protobuf::internal::NameOfEnum( - State_descriptor(), value); -} -inline bool State_Parse( - const ::std::string& name, State* value) { - return ::google::protobuf::internal::ParseNamedEnum( - State_descriptor(), name, value); -} -// =================================================================== - -class TaskExecutionMetadata_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TaskExecutionMetadata_LabelsEntry_DoNotUse(); - TaskExecutionMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TaskExecutionMetadata_LabelsEntry_DoNotUse& other); - static const TaskExecutionMetadata_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_LabelsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TaskExecutionMetadata_AnnotationsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TaskExecutionMetadata_AnnotationsEntry_DoNotUse(); - TaskExecutionMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TaskExecutionMetadata_AnnotationsEntry_DoNotUse& other); - static const TaskExecutionMetadata_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_AnnotationsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(); - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse& other); - static const TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TaskExecutionMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionMetadata) */ { - public: - TaskExecutionMetadata(); - virtual ~TaskExecutionMetadata(); - - TaskExecutionMetadata(const TaskExecutionMetadata& from); - - inline TaskExecutionMetadata& operator=(const TaskExecutionMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionMetadata(TaskExecutionMetadata&& from) noexcept - : TaskExecutionMetadata() { - *this = ::std::move(from); - } - - inline TaskExecutionMetadata& operator=(TaskExecutionMetadata&& 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 TaskExecutionMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionMetadata* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskExecutionMetadata* other); - friend void swap(TaskExecutionMetadata& a, TaskExecutionMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionMetadata* 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 TaskExecutionMetadata& from); - void MergeFrom(const TaskExecutionMetadata& 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(TaskExecutionMetadata* 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 ------------------------------------------------------- - - // map labels = 3; - int labels_size() const; - void clear_labels(); - static const int kLabelsFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& - labels() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_labels(); - - // map annotations = 4; - int annotations_size() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - annotations() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_annotations(); - - // map environment_variables = 6; - int environment_variables_size() const; - void clear_environment_variables(); - static const int kEnvironmentVariablesFieldNumber = 6; - const ::google::protobuf::Map< ::std::string, ::std::string >& - environment_variables() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_environment_variables(); - - // string namespace = 2; - void clear_namespace_(); - static const int kNamespaceFieldNumber = 2; - const ::std::string& namespace_() const; - void set_namespace_(const ::std::string& value); - #if LANG_CXX11 - void set_namespace_(::std::string&& value); - #endif - void set_namespace_(const char* value); - void set_namespace_(const char* value, size_t size); - ::std::string* mutable_namespace_(); - ::std::string* release_namespace_(); - void set_allocated_namespace_(::std::string* namespace_); - - // string k8s_service_account = 5; - void clear_k8s_service_account(); - static const int kK8SServiceAccountFieldNumber = 5; - const ::std::string& k8s_service_account() const; - void set_k8s_service_account(const ::std::string& value); - #if LANG_CXX11 - void set_k8s_service_account(::std::string&& value); - #endif - void set_k8s_service_account(const char* value); - void set_k8s_service_account(const char* value, size_t size); - ::std::string* mutable_k8s_service_account(); - ::std::string* release_k8s_service_account(); - void set_allocated_k8s_service_account(::std::string* k8s_service_account); - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - bool has_task_execution_id() const; - void clear_task_execution_id(); - static const int kTaskExecutionIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); - void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - TaskExecutionMetadata_LabelsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > labels_; - ::google::protobuf::internal::MapField< - TaskExecutionMetadata_AnnotationsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > annotations_; - ::google::protobuf::internal::MapField< - TaskExecutionMetadata_EnvironmentVariablesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > environment_variables_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - ::google::protobuf::internal::ArenaStringPtr k8s_service_account_; - ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTaskRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskRequest) */ { - public: - CreateTaskRequest(); - virtual ~CreateTaskRequest(); - - CreateTaskRequest(const CreateTaskRequest& from); - - inline CreateTaskRequest& operator=(const CreateTaskRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateTaskRequest(CreateTaskRequest&& from) noexcept - : CreateTaskRequest() { - *this = ::std::move(from); - } - - inline CreateTaskRequest& operator=(CreateTaskRequest&& 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 CreateTaskRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateTaskRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateTaskRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(CreateTaskRequest* other); - friend void swap(CreateTaskRequest& a, CreateTaskRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateTaskRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateTaskRequest* 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 CreateTaskRequest& from); - void MergeFrom(const CreateTaskRequest& 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(CreateTaskRequest* 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 ------------------------------------------------------- - - // string output_prefix = 3; - void clear_output_prefix(); - static const int kOutputPrefixFieldNumber = 3; - const ::std::string& output_prefix() const; - void set_output_prefix(const ::std::string& value); - #if LANG_CXX11 - void set_output_prefix(::std::string&& value); - #endif - void set_output_prefix(const char* value); - void set_output_prefix(const char* value, size_t size); - ::std::string* mutable_output_prefix(); - ::std::string* release_output_prefix(); - void set_allocated_output_prefix(::std::string* output_prefix); - - // .flyteidl.core.LiteralMap inputs = 1; - bool has_inputs() const; - void clear_inputs(); - static const int kInputsFieldNumber = 1; - const ::flyteidl::core::LiteralMap& inputs() const; - ::flyteidl::core::LiteralMap* release_inputs(); - ::flyteidl::core::LiteralMap* mutable_inputs(); - void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); - - // .flyteidl.core.TaskTemplate template = 2; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 2; - const ::flyteidl::core::TaskTemplate& template_() const; - ::flyteidl::core::TaskTemplate* release_template_(); - ::flyteidl::core::TaskTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); - - // .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - bool has_task_execution_metadata() const; - void clear_task_execution_metadata(); - static const int kTaskExecutionMetadataFieldNumber = 4; - const ::flyteidl::admin::TaskExecutionMetadata& task_execution_metadata() const; - ::flyteidl::admin::TaskExecutionMetadata* release_task_execution_metadata(); - ::flyteidl::admin::TaskExecutionMetadata* mutable_task_execution_metadata(); - void set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr output_prefix_; - ::flyteidl::core::LiteralMap* inputs_; - ::flyteidl::core::TaskTemplate* template__; - ::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTaskResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CreateTaskResponse) */ { - public: - CreateTaskResponse(); - virtual ~CreateTaskResponse(); - - CreateTaskResponse(const CreateTaskResponse& from); - - inline CreateTaskResponse& operator=(const CreateTaskResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateTaskResponse(CreateTaskResponse&& from) noexcept - : CreateTaskResponse() { - *this = ::std::move(from); - } - - inline CreateTaskResponse& operator=(CreateTaskResponse&& 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 CreateTaskResponse& default_instance(); - - enum ResCase { - kResourceMeta = 1, - kResource = 2, - RES_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateTaskResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateTaskResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(CreateTaskResponse* other); - friend void swap(CreateTaskResponse& a, CreateTaskResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateTaskResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateTaskResponse* 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 CreateTaskResponse& from); - void MergeFrom(const CreateTaskResponse& 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(CreateTaskResponse* 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 ------------------------------------------------------- - - // bytes resource_meta = 1; - private: - bool has_resource_meta() const; - public: - void clear_resource_meta(); - static const int kResourceMetaFieldNumber = 1; - const ::std::string& resource_meta() const; - void set_resource_meta(const ::std::string& value); - #if LANG_CXX11 - void set_resource_meta(::std::string&& value); - #endif - void set_resource_meta(const char* value); - void set_resource_meta(const void* value, size_t size); - ::std::string* mutable_resource_meta(); - ::std::string* release_resource_meta(); - void set_allocated_resource_meta(::std::string* resource_meta); - - // .flyteidl.admin.Resource resource = 2; - bool has_resource() const; - void clear_resource(); - static const int kResourceFieldNumber = 2; - const ::flyteidl::admin::Resource& resource() const; - ::flyteidl::admin::Resource* release_resource(); - ::flyteidl::admin::Resource* mutable_resource(); - void set_allocated_resource(::flyteidl::admin::Resource* resource); - - void clear_res(); - ResCase res_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) - private: - class HasBitSetters; - void set_has_resource_meta(); - void set_has_resource(); - - inline bool has_res() const; - inline void clear_has_res(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ResUnion { - ResUnion() {} - ::google::protobuf::internal::ArenaStringPtr resource_meta_; - ::flyteidl::admin::Resource* resource_; - } res_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTaskRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskRequest) */ { - public: - GetTaskRequest(); - virtual ~GetTaskRequest(); - - GetTaskRequest(const GetTaskRequest& from); - - inline GetTaskRequest& operator=(const GetTaskRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetTaskRequest(GetTaskRequest&& from) noexcept - : GetTaskRequest() { - *this = ::std::move(from); - } - - inline GetTaskRequest& operator=(GetTaskRequest&& 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 GetTaskRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetTaskRequest* internal_default_instance() { - return reinterpret_cast( - &_GetTaskRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(GetTaskRequest* other); - friend void swap(GetTaskRequest& a, GetTaskRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetTaskRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetTaskRequest* 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 GetTaskRequest& from); - void MergeFrom(const GetTaskRequest& 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(GetTaskRequest* 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 ------------------------------------------------------- - - // string task_type = 1; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 1; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // bytes resource_meta = 2; - void clear_resource_meta(); - static const int kResourceMetaFieldNumber = 2; - const ::std::string& resource_meta() const; - void set_resource_meta(const ::std::string& value); - #if LANG_CXX11 - void set_resource_meta(::std::string&& value); - #endif - void set_resource_meta(const char* value); - void set_resource_meta(const void* value, size_t size); - ::std::string* mutable_resource_meta(); - ::std::string* release_resource_meta(); - void set_allocated_resource_meta(::std::string* resource_meta); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::google::protobuf::internal::ArenaStringPtr resource_meta_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class GetTaskResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetTaskResponse) */ { - public: - GetTaskResponse(); - virtual ~GetTaskResponse(); - - GetTaskResponse(const GetTaskResponse& from); - - inline GetTaskResponse& operator=(const GetTaskResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetTaskResponse(GetTaskResponse&& from) noexcept - : GetTaskResponse() { - *this = ::std::move(from); - } - - inline GetTaskResponse& operator=(GetTaskResponse&& 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 GetTaskResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetTaskResponse* internal_default_instance() { - return reinterpret_cast( - &_GetTaskResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(GetTaskResponse* other); - friend void swap(GetTaskResponse& a, GetTaskResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetTaskResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetTaskResponse* 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 GetTaskResponse& from); - void MergeFrom(const GetTaskResponse& 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(GetTaskResponse* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskLog log_links = 2; - int log_links_size() const; - void clear_log_links(); - static const int kLogLinksFieldNumber = 2; - ::flyteidl::core::TaskLog* mutable_log_links(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* - mutable_log_links(); - const ::flyteidl::core::TaskLog& log_links(int index) const; - ::flyteidl::core::TaskLog* add_log_links(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& - log_links() const; - - // .flyteidl.admin.Resource resource = 1; - bool has_resource() const; - void clear_resource(); - static const int kResourceFieldNumber = 1; - const ::flyteidl::admin::Resource& resource() const; - ::flyteidl::admin::Resource* release_resource(); - ::flyteidl::admin::Resource* mutable_resource(); - void set_allocated_resource(::flyteidl::admin::Resource* resource); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > log_links_; - ::flyteidl::admin::Resource* resource_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class Resource final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Resource) */ { - public: - Resource(); - virtual ~Resource(); - - Resource(const Resource& from); - - inline Resource& operator=(const Resource& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Resource(Resource&& from) noexcept - : Resource() { - *this = ::std::move(from); - } - - inline Resource& operator=(Resource&& 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 Resource& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Resource* internal_default_instance() { - return reinterpret_cast( - &_Resource_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(Resource* other); - friend void swap(Resource& a, Resource& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Resource* New() const final { - return CreateMaybeMessage(nullptr); - } - - Resource* 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 Resource& from); - void MergeFrom(const Resource& 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(Resource* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskLog log_links = 4; - int log_links_size() const; - void clear_log_links(); - static const int kLogLinksFieldNumber = 4; - ::flyteidl::core::TaskLog* mutable_log_links(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* - mutable_log_links(); - const ::flyteidl::core::TaskLog& log_links(int index) const; - ::flyteidl::core::TaskLog* add_log_links(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& - log_links() const; - - // string message = 3; - void clear_message(); - static const int kMessageFieldNumber = 3; - const ::std::string& message() const; - void set_message(const ::std::string& value); - #if LANG_CXX11 - void set_message(::std::string&& value); - #endif - void set_message(const char* value); - void set_message(const char* value, size_t size); - ::std::string* mutable_message(); - ::std::string* release_message(); - void set_allocated_message(::std::string* message); - - // .flyteidl.core.LiteralMap outputs = 2; - bool has_outputs() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 2; - const ::flyteidl::core::LiteralMap& outputs() const; - ::flyteidl::core::LiteralMap* release_outputs(); - ::flyteidl::core::LiteralMap* mutable_outputs(); - void set_allocated_outputs(::flyteidl::core::LiteralMap* outputs); - - // .flyteidl.admin.State state = 1; - void clear_state(); - static const int kStateFieldNumber = 1; - ::flyteidl::admin::State state() const; - void set_state(::flyteidl::admin::State value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > log_links_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::flyteidl::core::LiteralMap* outputs_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteTaskRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskRequest) */ { - public: - DeleteTaskRequest(); - virtual ~DeleteTaskRequest(); - - DeleteTaskRequest(const DeleteTaskRequest& from); - - inline DeleteTaskRequest& operator=(const DeleteTaskRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteTaskRequest(DeleteTaskRequest&& from) noexcept - : DeleteTaskRequest() { - *this = ::std::move(from); - } - - inline DeleteTaskRequest& operator=(DeleteTaskRequest&& 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 DeleteTaskRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteTaskRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteTaskRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(DeleteTaskRequest* other); - friend void swap(DeleteTaskRequest& a, DeleteTaskRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteTaskRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteTaskRequest* 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 DeleteTaskRequest& from); - void MergeFrom(const DeleteTaskRequest& 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(DeleteTaskRequest* 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 ------------------------------------------------------- - - // string task_type = 1; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 1; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // bytes resource_meta = 2; - void clear_resource_meta(); - static const int kResourceMetaFieldNumber = 2; - const ::std::string& resource_meta() const; - void set_resource_meta(const ::std::string& value); - #if LANG_CXX11 - void set_resource_meta(::std::string&& value); - #endif - void set_resource_meta(const char* value); - void set_resource_meta(const void* value, size_t size); - ::std::string* mutable_resource_meta(); - ::std::string* release_resource_meta(); - void set_allocated_resource_meta(::std::string* resource_meta); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::google::protobuf::internal::ArenaStringPtr resource_meta_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteTaskResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DeleteTaskResponse) */ { - public: - DeleteTaskResponse(); - virtual ~DeleteTaskResponse(); - - DeleteTaskResponse(const DeleteTaskResponse& from); - - inline DeleteTaskResponse& operator=(const DeleteTaskResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteTaskResponse(DeleteTaskResponse&& from) noexcept - : DeleteTaskResponse() { - *this = ::std::move(from); - } - - inline DeleteTaskResponse& operator=(DeleteTaskResponse&& 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 DeleteTaskResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteTaskResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteTaskResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(DeleteTaskResponse* other); - friend void swap(DeleteTaskResponse& a, DeleteTaskResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteTaskResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteTaskResponse* 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 DeleteTaskResponse& from); - void MergeFrom(const DeleteTaskResponse& 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(DeleteTaskResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class Agent final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Agent) */ { - public: - Agent(); - virtual ~Agent(); - - Agent(const Agent& from); - - inline Agent& operator=(const Agent& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Agent(Agent&& from) noexcept - : Agent() { - *this = ::std::move(from); - } - - inline Agent& operator=(Agent&& 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 Agent& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Agent* internal_default_instance() { - return reinterpret_cast( - &_Agent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(Agent* other); - friend void swap(Agent& a, Agent& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Agent* New() const final { - return CreateMaybeMessage(nullptr); - } - - Agent* 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 Agent& from); - void MergeFrom(const Agent& 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(Agent* 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 ------------------------------------------------------- - - // repeated string supported_task_types = 2; - int supported_task_types_size() const; - void clear_supported_task_types(); - static const int kSupportedTaskTypesFieldNumber = 2; - const ::std::string& supported_task_types(int index) const; - ::std::string* mutable_supported_task_types(int index); - void set_supported_task_types(int index, const ::std::string& value); - #if LANG_CXX11 - void set_supported_task_types(int index, ::std::string&& value); - #endif - void set_supported_task_types(int index, const char* value); - void set_supported_task_types(int index, const char* value, size_t size); - ::std::string* add_supported_task_types(); - void add_supported_task_types(const ::std::string& value); - #if LANG_CXX11 - void add_supported_task_types(::std::string&& value); - #endif - void add_supported_task_types(const char* value); - void add_supported_task_types(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& supported_task_types() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_supported_task_types(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Agent) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> supported_task_types_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class GetAgentRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetAgentRequest) */ { - public: - GetAgentRequest(); - virtual ~GetAgentRequest(); - - GetAgentRequest(const GetAgentRequest& from); - - inline GetAgentRequest& operator=(const GetAgentRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetAgentRequest(GetAgentRequest&& from) noexcept - : GetAgentRequest() { - *this = ::std::move(from); - } - - inline GetAgentRequest& operator=(GetAgentRequest&& 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 GetAgentRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetAgentRequest* internal_default_instance() { - return reinterpret_cast( - &_GetAgentRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(GetAgentRequest* other); - friend void swap(GetAgentRequest& a, GetAgentRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetAgentRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetAgentRequest* 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 GetAgentRequest& from); - void MergeFrom(const GetAgentRequest& 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(GetAgentRequest* 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 ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetAgentRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class GetAgentResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetAgentResponse) */ { - public: - GetAgentResponse(); - virtual ~GetAgentResponse(); - - GetAgentResponse(const GetAgentResponse& from); - - inline GetAgentResponse& operator=(const GetAgentResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetAgentResponse(GetAgentResponse&& from) noexcept - : GetAgentResponse() { - *this = ::std::move(from); - } - - inline GetAgentResponse& operator=(GetAgentResponse&& 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 GetAgentResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetAgentResponse* internal_default_instance() { - return reinterpret_cast( - &_GetAgentResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(GetAgentResponse* other); - friend void swap(GetAgentResponse& a, GetAgentResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetAgentResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetAgentResponse* 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 GetAgentResponse& from); - void MergeFrom(const GetAgentResponse& 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(GetAgentResponse* 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.Agent agent = 1; - bool has_agent() const; - void clear_agent(); - static const int kAgentFieldNumber = 1; - const ::flyteidl::admin::Agent& agent() const; - ::flyteidl::admin::Agent* release_agent(); - ::flyteidl::admin::Agent* mutable_agent(); - void set_allocated_agent(::flyteidl::admin::Agent* agent); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetAgentResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::Agent* agent_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class ListAgentsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListAgentsRequest) */ { - public: - ListAgentsRequest(); - virtual ~ListAgentsRequest(); - - ListAgentsRequest(const ListAgentsRequest& from); - - inline ListAgentsRequest& operator=(const ListAgentsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListAgentsRequest(ListAgentsRequest&& from) noexcept - : ListAgentsRequest() { - *this = ::std::move(from); - } - - inline ListAgentsRequest& operator=(ListAgentsRequest&& 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 ListAgentsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListAgentsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListAgentsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(ListAgentsRequest* other); - friend void swap(ListAgentsRequest& a, ListAgentsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListAgentsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListAgentsRequest* 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 ListAgentsRequest& from); - void MergeFrom(const ListAgentsRequest& 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(ListAgentsRequest* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListAgentsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// ------------------------------------------------------------------- - -class ListAgentsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListAgentsResponse) */ { - public: - ListAgentsResponse(); - virtual ~ListAgentsResponse(); - - ListAgentsResponse(const ListAgentsResponse& from); - - inline ListAgentsResponse& operator=(const ListAgentsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListAgentsResponse(ListAgentsResponse&& from) noexcept - : ListAgentsResponse() { - *this = ::std::move(from); - } - - inline ListAgentsResponse& operator=(ListAgentsResponse&& 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 ListAgentsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListAgentsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListAgentsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(ListAgentsResponse* other); - friend void swap(ListAgentsResponse& a, ListAgentsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListAgentsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListAgentsResponse* 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 ListAgentsResponse& from); - void MergeFrom(const ListAgentsResponse& 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(ListAgentsResponse* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Agent agents = 1; - int agents_size() const; - void clear_agents(); - static const int kAgentsFieldNumber = 1; - ::flyteidl::admin::Agent* mutable_agents(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >* - mutable_agents(); - const ::flyteidl::admin::Agent& agents(int index) const; - ::flyteidl::admin::Agent* add_agents(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >& - agents() const; - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListAgentsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent > agents_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fagent_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// TaskExecutionMetadata - -// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; -inline bool TaskExecutionMetadata::has_task_execution_id() const { - return this != internal_default_instance() && task_execution_id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionMetadata::task_execution_id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.task_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::release_task_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.task_execution_id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; - task_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionMetadata::mutable_task_execution_id() { - - if (task_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - task_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.task_execution_id) - return task_execution_id_; -} -inline void TaskExecutionMetadata::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); - } - if (task_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_id, submessage_arena); - } - - } else { - - } - task_execution_id_ = task_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.task_execution_id) -} - -// string namespace = 2; -inline void TaskExecutionMetadata::clear_namespace_() { - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionMetadata::namespace_() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.namespace) - return namespace__.GetNoArena(); -} -inline void TaskExecutionMetadata::set_namespace_(const ::std::string& value) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.namespace) -} -#if LANG_CXX11 -inline void TaskExecutionMetadata::set_namespace_(::std::string&& value) { - - namespace__.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.namespace) -} -#endif -inline void TaskExecutionMetadata::set_namespace_(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.namespace) -} -inline void TaskExecutionMetadata::set_namespace_(const char* value, size_t size) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.namespace) -} -inline ::std::string* TaskExecutionMetadata::mutable_namespace_() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.namespace) - return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionMetadata::release_namespace_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.namespace) - - return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionMetadata::set_allocated_namespace_(::std::string* namespace_) { - if (namespace_ != nullptr) { - - } else { - - } - namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.namespace) -} - -// map labels = 3; -inline int TaskExecutionMetadata::labels_size() const { - return labels_.size(); -} -inline void TaskExecutionMetadata::clear_labels() { - labels_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::labels() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.labels) - return labels_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_labels() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.labels) - return labels_.MutableMap(); -} - -// map annotations = 4; -inline int TaskExecutionMetadata::annotations_size() const { - return annotations_.size(); -} -inline void TaskExecutionMetadata::clear_annotations() { - annotations_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::annotations() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.annotations) - return annotations_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_annotations() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.annotations) - return annotations_.MutableMap(); -} - -// string k8s_service_account = 5; -inline void TaskExecutionMetadata::clear_k8s_service_account() { - k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionMetadata::k8s_service_account() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) - return k8s_service_account_.GetNoArena(); -} -inline void TaskExecutionMetadata::set_k8s_service_account(const ::std::string& value) { - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) -} -#if LANG_CXX11 -inline void TaskExecutionMetadata::set_k8s_service_account(::std::string&& value) { - - k8s_service_account_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) -} -#endif -inline void TaskExecutionMetadata::set_k8s_service_account(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) -} -inline void TaskExecutionMetadata::set_k8s_service_account(const char* value, size_t size) { - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) -} -inline ::std::string* TaskExecutionMetadata::mutable_k8s_service_account() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) - return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionMetadata::release_k8s_service_account() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) - - return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionMetadata::set_allocated_k8s_service_account(::std::string* k8s_service_account) { - if (k8s_service_account != nullptr) { - - } else { - - } - k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionMetadata.k8s_service_account) -} - -// map environment_variables = 6; -inline int TaskExecutionMetadata::environment_variables_size() const { - return environment_variables_.size(); -} -inline void TaskExecutionMetadata::clear_environment_variables() { - environment_variables_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskExecutionMetadata::environment_variables() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) - return environment_variables_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskExecutionMetadata::mutable_environment_variables() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.TaskExecutionMetadata.environment_variables) - return environment_variables_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// CreateTaskRequest - -// .flyteidl.core.LiteralMap inputs = 1; -inline bool CreateTaskRequest::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& CreateTaskRequest::inputs() const { - const ::flyteidl::core::LiteralMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* CreateTaskRequest::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.inputs) - - ::flyteidl::core::LiteralMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* CreateTaskRequest::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.inputs) - return inputs_; -} -inline void CreateTaskRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.inputs) -} - -// .flyteidl.core.TaskTemplate template = 2; -inline bool CreateTaskRequest::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::TaskTemplate& CreateTaskRequest::template_() const { - const ::flyteidl::core::TaskTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); -} -inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.template) - - ::flyteidl::core::TaskTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskTemplate* CreateTaskRequest::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.template) - return template__; -} -inline void CreateTaskRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.template) -} - -// string output_prefix = 3; -inline void CreateTaskRequest::clear_output_prefix() { - output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateTaskRequest::output_prefix() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.output_prefix) - return output_prefix_.GetNoArena(); -} -inline void CreateTaskRequest::set_output_prefix(const ::std::string& value) { - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskRequest.output_prefix) -} -#if LANG_CXX11 -inline void CreateTaskRequest::set_output_prefix(::std::string&& value) { - - output_prefix_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskRequest.output_prefix) -} -#endif -inline void CreateTaskRequest::set_output_prefix(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskRequest.output_prefix) -} -inline void CreateTaskRequest::set_output_prefix(const char* value, size_t size) { - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskRequest.output_prefix) -} -inline ::std::string* CreateTaskRequest::mutable_output_prefix() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.output_prefix) - return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateTaskRequest::release_output_prefix() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.output_prefix) - - return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateTaskRequest::set_allocated_output_prefix(::std::string* output_prefix) { - if (output_prefix != nullptr) { - - } else { - - } - output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.output_prefix) -} - -// .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; -inline bool CreateTaskRequest::has_task_execution_metadata() const { - return this != internal_default_instance() && task_execution_metadata_ != nullptr; -} -inline void CreateTaskRequest::clear_task_execution_metadata() { - if (GetArenaNoVirtual() == nullptr && task_execution_metadata_ != nullptr) { - delete task_execution_metadata_; - } - task_execution_metadata_ = nullptr; -} -inline const ::flyteidl::admin::TaskExecutionMetadata& CreateTaskRequest::task_execution_metadata() const { - const ::flyteidl::admin::TaskExecutionMetadata* p = task_execution_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskRequest.task_execution_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskExecutionMetadata_default_instance_); -} -inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::release_task_execution_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskRequest.task_execution_metadata) - - ::flyteidl::admin::TaskExecutionMetadata* temp = task_execution_metadata_; - task_execution_metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskExecutionMetadata* CreateTaskRequest::mutable_task_execution_metadata() { - - if (task_execution_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionMetadata>(GetArenaNoVirtual()); - task_execution_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskRequest.task_execution_metadata) - return task_execution_metadata_; -} -inline void CreateTaskRequest::set_allocated_task_execution_metadata(::flyteidl::admin::TaskExecutionMetadata* task_execution_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete task_execution_metadata_; - } - if (task_execution_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_metadata, submessage_arena); - } - - } else { - - } - task_execution_metadata_ = task_execution_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskRequest.task_execution_metadata) -} - -// ------------------------------------------------------------------- - -// CreateTaskResponse - -// bytes resource_meta = 1; -inline bool CreateTaskResponse::has_resource_meta() const { - return res_case() == kResourceMeta; -} -inline void CreateTaskResponse::set_has_resource_meta() { - _oneof_case_[0] = kResourceMeta; -} -inline void CreateTaskResponse::clear_resource_meta() { - if (has_resource_meta()) { - res_.resource_meta_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_res(); - } -} -inline const ::std::string& CreateTaskResponse::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource_meta) - if (has_resource_meta()) { - return res_.resource_meta_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void CreateTaskResponse::set_resource_meta(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) -} -#if LANG_CXX11 -inline void CreateTaskResponse::set_resource_meta(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.CreateTaskResponse.resource_meta) - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CreateTaskResponse.resource_meta) -} -#endif -inline void CreateTaskResponse::set_resource_meta(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CreateTaskResponse.resource_meta) -} -inline void CreateTaskResponse::set_resource_meta(const void* value, size_t size) { - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - res_.resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CreateTaskResponse.resource_meta) -} -inline ::std::string* CreateTaskResponse::mutable_resource_meta() { - if (!has_resource_meta()) { - clear_res(); - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource_meta) - return res_.resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateTaskResponse::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource_meta) - if (has_resource_meta()) { - clear_has_res(); - return res_.resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void CreateTaskResponse::set_allocated_resource_meta(::std::string* resource_meta) { - if (has_res()) { - clear_res(); - } - if (resource_meta != nullptr) { - set_has_resource_meta(); - res_.resource_meta_.UnsafeSetDefault(resource_meta); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CreateTaskResponse.resource_meta) -} - -// .flyteidl.admin.Resource resource = 2; -inline bool CreateTaskResponse::has_resource() const { - return res_case() == kResource; -} -inline void CreateTaskResponse::set_has_resource() { - _oneof_case_[0] = kResource; -} -inline void CreateTaskResponse::clear_resource() { - if (has_resource()) { - delete res_.resource_; - clear_has_res(); - } -} -inline ::flyteidl::admin::Resource* CreateTaskResponse::release_resource() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CreateTaskResponse.resource) - if (has_resource()) { - clear_has_res(); - ::flyteidl::admin::Resource* temp = res_.resource_; - res_.resource_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::Resource& CreateTaskResponse::resource() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CreateTaskResponse.resource) - return has_resource() - ? *res_.resource_ - : *reinterpret_cast< ::flyteidl::admin::Resource*>(&::flyteidl::admin::_Resource_default_instance_); -} -inline ::flyteidl::admin::Resource* CreateTaskResponse::mutable_resource() { - if (!has_resource()) { - clear_res(); - set_has_resource(); - res_.resource_ = CreateMaybeMessage< ::flyteidl::admin::Resource >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CreateTaskResponse.resource) - return res_.resource_; -} - -inline bool CreateTaskResponse::has_res() const { - return res_case() != RES_NOT_SET; -} -inline void CreateTaskResponse::clear_has_res() { - _oneof_case_[0] = RES_NOT_SET; -} -inline CreateTaskResponse::ResCase CreateTaskResponse::res_case() const { - return CreateTaskResponse::ResCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GetTaskRequest - -// string task_type = 1; -inline void GetTaskRequest::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetTaskRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.task_type) - return task_type_.GetNoArena(); -} -inline void GetTaskRequest::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.task_type) -} -#if LANG_CXX11 -inline void GetTaskRequest::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.task_type) -} -#endif -inline void GetTaskRequest::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.task_type) -} -inline void GetTaskRequest::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.task_type) -} -inline ::std::string* GetTaskRequest::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetTaskRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetTaskRequest::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.task_type) -} - -// bytes resource_meta = 2; -inline void GetTaskRequest::clear_resource_meta() { - resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetTaskRequest::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskRequest.resource_meta) - return resource_meta_.GetNoArena(); -} -inline void GetTaskRequest::set_resource_meta(const ::std::string& value) { - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetTaskRequest.resource_meta) -} -#if LANG_CXX11 -inline void GetTaskRequest::set_resource_meta(::std::string&& value) { - - resource_meta_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetTaskRequest.resource_meta) -} -#endif -inline void GetTaskRequest::set_resource_meta(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetTaskRequest.resource_meta) -} -inline void GetTaskRequest::set_resource_meta(const void* value, size_t size) { - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetTaskRequest.resource_meta) -} -inline ::std::string* GetTaskRequest::mutable_resource_meta() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskRequest.resource_meta) - return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetTaskRequest::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskRequest.resource_meta) - - return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { - if (resource_meta != nullptr) { - - } else { - - } - resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskRequest.resource_meta) -} - -// ------------------------------------------------------------------- - -// GetTaskResponse - -// .flyteidl.admin.Resource resource = 1; -inline bool GetTaskResponse::has_resource() const { - return this != internal_default_instance() && resource_ != nullptr; -} -inline void GetTaskResponse::clear_resource() { - if (GetArenaNoVirtual() == nullptr && resource_ != nullptr) { - delete resource_; - } - resource_ = nullptr; -} -inline const ::flyteidl::admin::Resource& GetTaskResponse::resource() const { - const ::flyteidl::admin::Resource* p = resource_; - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.resource) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Resource_default_instance_); -} -inline ::flyteidl::admin::Resource* GetTaskResponse::release_resource() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetTaskResponse.resource) - - ::flyteidl::admin::Resource* temp = resource_; - resource_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Resource* GetTaskResponse::mutable_resource() { - - if (resource_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Resource>(GetArenaNoVirtual()); - resource_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.resource) - return resource_; -} -inline void GetTaskResponse::set_allocated_resource(::flyteidl::admin::Resource* resource) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resource_; - } - if (resource) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resource = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resource, submessage_arena); - } - - } else { - - } - resource_ = resource; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetTaskResponse.resource) -} - -// repeated .flyteidl.core.TaskLog log_links = 2; -inline int GetTaskResponse::log_links_size() const { - return log_links_.size(); -} -inline ::flyteidl::core::TaskLog* GetTaskResponse::mutable_log_links(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -GetTaskResponse::mutable_log_links() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.GetTaskResponse.log_links) - return &log_links_; -} -inline const ::flyteidl::core::TaskLog& GetTaskResponse::log_links(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Get(index); -} -inline ::flyteidl::core::TaskLog* GetTaskResponse::add_log_links() { - // @@protoc_insertion_point(field_add:flyteidl.admin.GetTaskResponse.log_links) - return log_links_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -GetTaskResponse::log_links() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.GetTaskResponse.log_links) - return log_links_; -} - -// ------------------------------------------------------------------- - -// Resource - -// .flyteidl.admin.State state = 1; -inline void Resource::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::State Resource::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.state) - return static_cast< ::flyteidl::admin::State >(state_); -} -inline void Resource::set_state(::flyteidl::admin::State value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.state) -} - -// .flyteidl.core.LiteralMap outputs = 2; -inline bool Resource::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& Resource::outputs() const { - const ::flyteidl::core::LiteralMap* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* Resource::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.outputs) - - ::flyteidl::core::LiteralMap* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* Resource::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.outputs) - return outputs_; -} -inline void Resource::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.outputs) -} - -// string message = 3; -inline void Resource::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Resource::message() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.message) - return message_.GetNoArena(); -} -inline void Resource::set_message(const ::std::string& value) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Resource.message) -} -#if LANG_CXX11 -inline void Resource::set_message(::std::string&& value) { - - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Resource.message) -} -#endif -inline void Resource::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Resource.message) -} -inline void Resource::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Resource.message) -} -inline ::std::string* Resource::mutable_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Resource::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Resource.message) - - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Resource::set_allocated_message(::std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Resource.message) -} - -// repeated .flyteidl.core.TaskLog log_links = 4; -inline int Resource::log_links_size() const { - return log_links_.size(); -} -inline ::flyteidl::core::TaskLog* Resource::mutable_log_links(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Resource.log_links) - return log_links_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -Resource::mutable_log_links() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Resource.log_links) - return &log_links_; -} -inline const ::flyteidl::core::TaskLog& Resource::log_links(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Resource.log_links) - return log_links_.Get(index); -} -inline ::flyteidl::core::TaskLog* Resource::add_log_links() { - // @@protoc_insertion_point(field_add:flyteidl.admin.Resource.log_links) - return log_links_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -Resource::log_links() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Resource.log_links) - return log_links_; -} - -// ------------------------------------------------------------------- - -// DeleteTaskRequest - -// string task_type = 1; -inline void DeleteTaskRequest::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteTaskRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.task_type) - return task_type_.GetNoArena(); -} -inline void DeleteTaskRequest::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.task_type) -} -#if LANG_CXX11 -inline void DeleteTaskRequest::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.task_type) -} -#endif -inline void DeleteTaskRequest::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.task_type) -} -inline void DeleteTaskRequest::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.task_type) -} -inline ::std::string* DeleteTaskRequest::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteTaskRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteTaskRequest::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.task_type) -} - -// bytes resource_meta = 2; -inline void DeleteTaskRequest::clear_resource_meta() { - resource_meta_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DeleteTaskRequest::resource_meta() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DeleteTaskRequest.resource_meta) - return resource_meta_.GetNoArena(); -} -inline void DeleteTaskRequest::set_resource_meta(const ::std::string& value) { - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DeleteTaskRequest.resource_meta) -} -#if LANG_CXX11 -inline void DeleteTaskRequest::set_resource_meta(::std::string&& value) { - - resource_meta_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DeleteTaskRequest.resource_meta) -} -#endif -inline void DeleteTaskRequest::set_resource_meta(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DeleteTaskRequest.resource_meta) -} -inline void DeleteTaskRequest::set_resource_meta(const void* value, size_t size) { - - resource_meta_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DeleteTaskRequest.resource_meta) -} -inline ::std::string* DeleteTaskRequest::mutable_resource_meta() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DeleteTaskRequest.resource_meta) - return resource_meta_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DeleteTaskRequest::release_resource_meta() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DeleteTaskRequest.resource_meta) - - return resource_meta_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DeleteTaskRequest::set_allocated_resource_meta(::std::string* resource_meta) { - if (resource_meta != nullptr) { - - } else { - - } - resource_meta_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_meta); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DeleteTaskRequest.resource_meta) -} - -// ------------------------------------------------------------------- - -// DeleteTaskResponse - -// ------------------------------------------------------------------- - -// Agent - -// string name = 1; -inline void Agent::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Agent::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.name) - return name_.GetNoArena(); -} -inline void Agent::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.name) -} -#if LANG_CXX11 -inline void Agent::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Agent.name) -} -#endif -inline void Agent::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.name) -} -inline void Agent::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.name) -} -inline ::std::string* Agent::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Agent::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Agent.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Agent::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Agent.name) -} - -// repeated string supported_task_types = 2; -inline int Agent::supported_task_types_size() const { - return supported_task_types_.size(); -} -inline void Agent::clear_supported_task_types() { - supported_task_types_.Clear(); -} -inline const ::std::string& Agent::supported_task_types(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Get(index); -} -inline ::std::string* Agent::mutable_supported_task_types(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Mutable(index); -} -inline void Agent::set_supported_task_types(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) - supported_task_types_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Agent::set_supported_task_types(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Agent.supported_task_types) - supported_task_types_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Agent::set_supported_task_types(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - supported_task_types_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Agent.supported_task_types) -} -inline void Agent::set_supported_task_types(int index, const char* value, size_t size) { - supported_task_types_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Agent.supported_task_types) -} -inline ::std::string* Agent::add_supported_task_types() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_.Add(); -} -inline void Agent::add_supported_task_types(const ::std::string& value) { - supported_task_types_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) -} -#if LANG_CXX11 -inline void Agent::add_supported_task_types(::std::string&& value) { - supported_task_types_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.Agent.supported_task_types) -} -#endif -inline void Agent::add_supported_task_types(const char* value) { - GOOGLE_DCHECK(value != nullptr); - supported_task_types_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.Agent.supported_task_types) -} -inline void Agent::add_supported_task_types(const char* value, size_t size) { - supported_task_types_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.Agent.supported_task_types) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Agent::supported_task_types() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Agent.supported_task_types) - return supported_task_types_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Agent::mutable_supported_task_types() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Agent.supported_task_types) - return &supported_task_types_; -} - -// ------------------------------------------------------------------- - -// GetAgentRequest - -// string name = 1; -inline void GetAgentRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetAgentRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentRequest.name) - return name_.GetNoArena(); -} -inline void GetAgentRequest::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.GetAgentRequest.name) -} -#if LANG_CXX11 -inline void GetAgentRequest::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.GetAgentRequest.name) -} -#endif -inline void GetAgentRequest::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.GetAgentRequest.name) -} -inline void GetAgentRequest::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.GetAgentRequest.name) -} -inline ::std::string* GetAgentRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetAgentRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetAgentRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentRequest.name) -} - -// ------------------------------------------------------------------- - -// GetAgentResponse - -// .flyteidl.admin.Agent agent = 1; -inline bool GetAgentResponse::has_agent() const { - return this != internal_default_instance() && agent_ != nullptr; -} -inline void GetAgentResponse::clear_agent() { - if (GetArenaNoVirtual() == nullptr && agent_ != nullptr) { - delete agent_; - } - agent_ = nullptr; -} -inline const ::flyteidl::admin::Agent& GetAgentResponse::agent() const { - const ::flyteidl::admin::Agent* p = agent_; - // @@protoc_insertion_point(field_get:flyteidl.admin.GetAgentResponse.agent) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Agent_default_instance_); -} -inline ::flyteidl::admin::Agent* GetAgentResponse::release_agent() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetAgentResponse.agent) - - ::flyteidl::admin::Agent* temp = agent_; - agent_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Agent* GetAgentResponse::mutable_agent() { - - if (agent_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Agent>(GetArenaNoVirtual()); - agent_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetAgentResponse.agent) - return agent_; -} -inline void GetAgentResponse::set_allocated_agent(::flyteidl::admin::Agent* agent) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete agent_; - } - if (agent) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - agent = ::google::protobuf::internal::GetOwnedMessage( - message_arena, agent, submessage_arena); - } - - } else { - - } - agent_ = agent; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetAgentResponse.agent) -} - -// ------------------------------------------------------------------- - -// ListAgentsRequest - -// ------------------------------------------------------------------- - -// ListAgentsResponse - -// repeated .flyteidl.admin.Agent agents = 1; -inline int ListAgentsResponse::agents_size() const { - return agents_.size(); -} -inline void ListAgentsResponse::clear_agents() { - agents_.Clear(); -} -inline ::flyteidl::admin::Agent* ListAgentsResponse::mutable_agents(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >* -ListAgentsResponse::mutable_agents() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ListAgentsResponse.agents) - return &agents_; -} -inline const ::flyteidl::admin::Agent& ListAgentsResponse::agents(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Get(index); -} -inline ::flyteidl::admin::Agent* ListAgentsResponse::add_agents() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ListAgentsResponse.agents) - return agents_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Agent >& -ListAgentsResponse::agents() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ListAgentsResponse.agents) - return agents_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::State> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::State>() { - return ::flyteidl::admin::State_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc deleted file mode 100644 index a2eafa3ca3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/cluster_assignment.proto - -#include "flyteidl/admin/cluster_assignment.pb.h" -#include "flyteidl/admin/cluster_assignment.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h deleted file mode 100644 index 1262172673..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/cluster_assignment.proto -#ifndef GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED - -#include "flyteidl/admin/cluster_assignment.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fcluster_5fassignment_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc deleted file mode 100644 index 2106999a3e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.cc +++ /dev/null @@ -1,405 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/cluster_assignment.proto - -#include "flyteidl/admin/cluster_assignment.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace admin { -class ClusterAssignmentDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ClusterAssignment_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ClusterAssignment_default_instance_; - new (ptr) ::flyteidl::admin::ClusterAssignment(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ClusterAssignment::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterAssignment, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterAssignment, cluster_pool_name_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::ClusterAssignment)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_ClusterAssignment_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, "flyteidl/admin/cluster_assignment.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, 1, file_level_enum_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[] = - "\n\'flyteidl/admin/cluster_assignment.prot" - "o\022\016flyteidl.admin\":\n\021ClusterAssignment\022\031" - "\n\021cluster_pool_name\030\003 \001(\tJ\004\010\001\020\002J\004\010\002\020\003B=Z" - ";github.com/flyteorg/flyte/flyteidl/gen/" - "pb-go/flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, - "flyteidl/admin/cluster_assignment.proto", &assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, 188, -}; - -void AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fcluster_5fassignment_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void ClusterAssignment::InitAsDefaultInstance() { -} -class ClusterAssignment::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ClusterAssignment::kClusterPoolNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ClusterAssignment::ClusterAssignment() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ClusterAssignment) -} -ClusterAssignment::ClusterAssignment(const ClusterAssignment& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cluster_pool_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cluster_pool_name().size() > 0) { - cluster_pool_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_pool_name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ClusterAssignment) -} - -void ClusterAssignment::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); - cluster_pool_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ClusterAssignment::~ClusterAssignment() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ClusterAssignment) - SharedDtor(); -} - -void ClusterAssignment::SharedDtor() { - cluster_pool_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ClusterAssignment::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ClusterAssignment& ClusterAssignment::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base); - return *internal_default_instance(); -} - - -void ClusterAssignment::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ClusterAssignment) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cluster_pool_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ClusterAssignment::_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) { - // string cluster_pool_name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ClusterAssignment.cluster_pool_name"); - object = msg->mutable_cluster_pool_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ClusterAssignment::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.ClusterAssignment) - 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)) { - // string cluster_pool_name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cluster_pool_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ClusterAssignment.cluster_pool_name")); - } 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.ClusterAssignment) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ClusterAssignment) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ClusterAssignment::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ClusterAssignment) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster_pool_name = 3; - if (this->cluster_pool_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterAssignment.cluster_pool_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->cluster_pool_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ClusterAssignment) -} - -::google::protobuf::uint8* ClusterAssignment::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ClusterAssignment) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster_pool_name = 3; - if (this->cluster_pool_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_pool_name().data(), static_cast(this->cluster_pool_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterAssignment.cluster_pool_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->cluster_pool_name(), 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.ClusterAssignment) - return target; -} - -size_t ClusterAssignment::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ClusterAssignment) - 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; - - // string cluster_pool_name = 3; - if (this->cluster_pool_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cluster_pool_name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ClusterAssignment::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ClusterAssignment) - GOOGLE_DCHECK_NE(&from, this); - const ClusterAssignment* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ClusterAssignment) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ClusterAssignment) - MergeFrom(*source); - } -} - -void ClusterAssignment::MergeFrom(const ClusterAssignment& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ClusterAssignment) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cluster_pool_name().size() > 0) { - - cluster_pool_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_pool_name_); - } -} - -void ClusterAssignment::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ClusterAssignment) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClusterAssignment::CopyFrom(const ClusterAssignment& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ClusterAssignment) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClusterAssignment::IsInitialized() const { - return true; -} - -void ClusterAssignment::Swap(ClusterAssignment* other) { - if (other == this) return; - InternalSwap(other); -} -void ClusterAssignment::InternalSwap(ClusterAssignment* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_pool_name_.Swap(&other->cluster_pool_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ClusterAssignment::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcluster_5fassignment_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcluster_5fassignment_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterAssignment* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterAssignment >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ClusterAssignment >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h deleted file mode 100644 index 79c7743714..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/cluster_assignment.pb.h +++ /dev/null @@ -1,262 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/cluster_assignment.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto(); -namespace flyteidl { -namespace admin { -class ClusterAssignment; -class ClusterAssignmentDefaultTypeInternal; -extern ClusterAssignmentDefaultTypeInternal _ClusterAssignment_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::ClusterAssignment* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterAssignment>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class ClusterAssignment final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ClusterAssignment) */ { - public: - ClusterAssignment(); - virtual ~ClusterAssignment(); - - ClusterAssignment(const ClusterAssignment& from); - - inline ClusterAssignment& operator=(const ClusterAssignment& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ClusterAssignment(ClusterAssignment&& from) noexcept - : ClusterAssignment() { - *this = ::std::move(from); - } - - inline ClusterAssignment& operator=(ClusterAssignment&& 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 ClusterAssignment& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ClusterAssignment* internal_default_instance() { - return reinterpret_cast( - &_ClusterAssignment_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ClusterAssignment* other); - friend void swap(ClusterAssignment& a, ClusterAssignment& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ClusterAssignment* New() const final { - return CreateMaybeMessage(nullptr); - } - - ClusterAssignment* 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 ClusterAssignment& from); - void MergeFrom(const ClusterAssignment& 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(ClusterAssignment* 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 ------------------------------------------------------- - - // string cluster_pool_name = 3; - void clear_cluster_pool_name(); - static const int kClusterPoolNameFieldNumber = 3; - const ::std::string& cluster_pool_name() const; - void set_cluster_pool_name(const ::std::string& value); - #if LANG_CXX11 - void set_cluster_pool_name(::std::string&& value); - #endif - void set_cluster_pool_name(const char* value); - void set_cluster_pool_name(const char* value, size_t size); - ::std::string* mutable_cluster_pool_name(); - ::std::string* release_cluster_pool_name(); - void set_allocated_cluster_pool_name(::std::string* cluster_pool_name); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterAssignment) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cluster_pool_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ClusterAssignment - -// string cluster_pool_name = 3; -inline void ClusterAssignment::clear_cluster_pool_name() { - cluster_pool_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ClusterAssignment::cluster_pool_name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ClusterAssignment.cluster_pool_name) - return cluster_pool_name_.GetNoArena(); -} -inline void ClusterAssignment::set_cluster_pool_name(const ::std::string& value) { - - cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ClusterAssignment.cluster_pool_name) -} -#if LANG_CXX11 -inline void ClusterAssignment::set_cluster_pool_name(::std::string&& value) { - - cluster_pool_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ClusterAssignment.cluster_pool_name) -} -#endif -inline void ClusterAssignment::set_cluster_pool_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ClusterAssignment.cluster_pool_name) -} -inline void ClusterAssignment::set_cluster_pool_name(const char* value, size_t size) { - - cluster_pool_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ClusterAssignment.cluster_pool_name) -} -inline ::std::string* ClusterAssignment::mutable_cluster_pool_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ClusterAssignment.cluster_pool_name) - return cluster_pool_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ClusterAssignment::release_cluster_pool_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ClusterAssignment.cluster_pool_name) - - return cluster_pool_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ClusterAssignment::set_allocated_cluster_pool_name(::std::string* cluster_pool_name) { - if (cluster_pool_name != nullptr) { - - } else { - - } - cluster_pool_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_pool_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ClusterAssignment.cluster_pool_name) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcluster_5fassignment_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc deleted file mode 100644 index 81425fdda9..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/common.proto - -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/admin/common.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h deleted file mode 100644 index b6d8d3677c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/common.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/common.proto -#ifndef GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED - -#include "flyteidl/admin/common.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc deleted file mode 100644 index 982f3fb6b7..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.cc +++ /dev/null @@ -1,10419 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/common.proto - -#include "flyteidl/admin/common.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto; -namespace flyteidl { -namespace admin { -class NamedEntityIdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityIdentifier_default_instance_; -class NamedEntityMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityMetadata_default_instance_; -class NamedEntityDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntity_default_instance_; -class SortDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Sort_default_instance_; -class NamedEntityIdentifierListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityIdentifierListRequest_default_instance_; -class NamedEntityListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityListRequest_default_instance_; -class NamedEntityIdentifierListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityIdentifierList_default_instance_; -class NamedEntityListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityList_default_instance_; -class NamedEntityGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityGetRequest_default_instance_; -class NamedEntityUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityUpdateRequest_default_instance_; -class NamedEntityUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NamedEntityUpdateResponse_default_instance_; -class ObjectGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ObjectGetRequest_default_instance_; -class ResourceListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ResourceListRequest_default_instance_; -class EmailNotificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EmailNotification_default_instance_; -class PagerDutyNotificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PagerDutyNotification_default_instance_; -class SlackNotificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SlackNotification_default_instance_; -class NotificationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::admin::EmailNotification* email_; - const ::flyteidl::admin::PagerDutyNotification* pager_duty_; - const ::flyteidl::admin::SlackNotification* slack_; -} _Notification_default_instance_; -class UrlBlobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UrlBlob_default_instance_; -class Labels_ValuesEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Labels_ValuesEntry_DoNotUse_default_instance_; -class LabelsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Labels_default_instance_; -class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Annotations_ValuesEntry_DoNotUse_default_instance_; -class AnnotationsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Annotations_default_instance_; -class EnvsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Envs_default_instance_; -class AuthRoleDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AuthRole_default_instance_; -class RawOutputDataConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RawOutputDataConfig_default_instance_; -class FlyteURLsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _FlyteURLs_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsNamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityIdentifier_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityIdentifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityIdentifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsNamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityMetadata_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsNamedEntity_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntity_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntity(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntity::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNamedEntity_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsSort_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Sort_default_instance_; - new (ptr) ::flyteidl::admin::Sort(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Sort::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSort_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsNamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityIdentifierListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityIdentifierListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityListRequest_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityIdentifierList_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityIdentifierList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityIdentifierList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityList_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityList_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityList_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NamedEntityUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::NamedEntityUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NamedEntityUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ObjectGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::ObjectGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ObjectGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ResourceListRequest_default_instance_; - new (ptr) ::flyteidl::admin::ResourceListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ResourceListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsEmailNotification_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_EmailNotification_default_instance_; - new (ptr) ::flyteidl::admin::EmailNotification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::EmailNotification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEmailNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsPagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_PagerDutyNotification_default_instance_; - new (ptr) ::flyteidl::admin::PagerDutyNotification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::PagerDutyNotification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsSlackNotification_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SlackNotification_default_instance_; - new (ptr) ::flyteidl::admin::SlackNotification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SlackNotification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSlackNotification_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsNotification_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Notification_default_instance_; - new (ptr) ::flyteidl::admin::Notification(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Notification::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsNotification_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsUrlBlob_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_UrlBlob_default_instance_; - new (ptr) ::flyteidl::admin::UrlBlob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::UrlBlob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUrlBlob_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsLabels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::Labels_ValuesEntry_DoNotUse(); - } - ::flyteidl::admin::Labels_ValuesEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLabels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsLabels_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Labels_default_instance_; - new (ptr) ::flyteidl::admin::Labels(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Labels::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLabels_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsAnnotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse(); - } - ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAnnotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsAnnotations_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Annotations_default_instance_; - new (ptr) ::flyteidl::admin::Annotations(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Annotations::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAnnotations_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsEnvs_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Envs_default_instance_; - new (ptr) ::flyteidl::admin::Envs(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Envs::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEnvs_flyteidl_2fadmin_2fcommon_2eproto}, { - &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsAuthRole_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_AuthRole_default_instance_; - new (ptr) ::flyteidl::admin::AuthRole(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::AuthRole::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuthRole_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsRawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_RawOutputDataConfig_default_instance_; - new (ptr) ::flyteidl::admin::RawOutputDataConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::RawOutputDataConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -static void InitDefaultsFlyteURLs_flyteidl_2fadmin_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_FlyteURLs_default_instance_; - new (ptr) ::flyteidl::admin::FlyteURLs(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::FlyteURLs::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFlyteURLs_flyteidl_2fadmin_2fcommon_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fcommon_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Labels_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Annotations_ValuesEntry_DoNotUse_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[26]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fcommon_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifier, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityMetadata, state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntity, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Sort, direction_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, sort_by_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierListRequest, filters_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, sort_by_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityListRequest, filters_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, entities_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityIdentifierList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, entities_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityGetRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateRequest, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NamedEntityUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ObjectGetRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ResourceListRequest, sort_by_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailNotification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailNotification, recipients_email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PagerDutyNotification, recipients_email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SlackNotification, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SlackNotification, recipients_email_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, phases_), - offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, email_), - offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, pager_duty_), - offsetof(::flyteidl::admin::NotificationDefaultTypeInternal, slack_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Notification, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::UrlBlob, bytes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels_ValuesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Labels, values_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Annotations, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Envs, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Envs, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, assumable_iam_role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AuthRole, kubernetes_service_account_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::RawOutputDataConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::RawOutputDataConfig, output_location_prefix_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FlyteURLs, deck_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::NamedEntityIdentifier)}, - { 8, -1, sizeof(::flyteidl::admin::NamedEntityMetadata)}, - { 15, -1, sizeof(::flyteidl::admin::NamedEntity)}, - { 23, -1, sizeof(::flyteidl::admin::Sort)}, - { 30, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierListRequest)}, - { 41, -1, sizeof(::flyteidl::admin::NamedEntityListRequest)}, - { 53, -1, sizeof(::flyteidl::admin::NamedEntityIdentifierList)}, - { 60, -1, sizeof(::flyteidl::admin::NamedEntityList)}, - { 67, -1, sizeof(::flyteidl::admin::NamedEntityGetRequest)}, - { 74, -1, sizeof(::flyteidl::admin::NamedEntityUpdateRequest)}, - { 82, -1, sizeof(::flyteidl::admin::NamedEntityUpdateResponse)}, - { 87, -1, sizeof(::flyteidl::admin::ObjectGetRequest)}, - { 93, -1, sizeof(::flyteidl::admin::ResourceListRequest)}, - { 103, -1, sizeof(::flyteidl::admin::EmailNotification)}, - { 109, -1, sizeof(::flyteidl::admin::PagerDutyNotification)}, - { 115, -1, sizeof(::flyteidl::admin::SlackNotification)}, - { 121, -1, sizeof(::flyteidl::admin::Notification)}, - { 131, -1, sizeof(::flyteidl::admin::UrlBlob)}, - { 138, 145, sizeof(::flyteidl::admin::Labels_ValuesEntry_DoNotUse)}, - { 147, -1, sizeof(::flyteidl::admin::Labels)}, - { 153, 160, sizeof(::flyteidl::admin::Annotations_ValuesEntry_DoNotUse)}, - { 162, -1, sizeof(::flyteidl::admin::Annotations)}, - { 168, -1, sizeof(::flyteidl::admin::Envs)}, - { 174, -1, sizeof(::flyteidl::admin::AuthRole)}, - { 181, -1, sizeof(::flyteidl::admin::RawOutputDataConfig)}, - { 187, -1, sizeof(::flyteidl::admin::FlyteURLs)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifier_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntity_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Sort_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityIdentifierList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NamedEntityUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ObjectGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ResourceListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_EmailNotification_default_instance_), - reinterpret_cast(&::flyteidl::admin::_PagerDutyNotification_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SlackNotification_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Notification_default_instance_), - reinterpret_cast(&::flyteidl::admin::_UrlBlob_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Labels_ValuesEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Labels_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Annotations_ValuesEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Annotations_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Envs_default_instance_), - reinterpret_cast(&::flyteidl::admin::_AuthRole_default_instance_), - reinterpret_cast(&::flyteidl::admin::_RawOutputDataConfig_default_instance_), - reinterpret_cast(&::flyteidl::admin::_FlyteURLs_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, "flyteidl/admin/common.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fcommon_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto, 26, file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fcommon_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fcommon_2eproto[] = - "\n\033flyteidl/admin/common.proto\022\016flyteidl." - "admin\032\035flyteidl/core/execution.proto\032\036fl" - "yteidl/core/identifier.proto\032\034flyteidl/c" - "ore/literals.proto\032\037google/protobuf/time" - "stamp.proto\"F\n\025NamedEntityIdentifier\022\017\n\007" - "project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 " - "\001(\t\"[\n\023NamedEntityMetadata\022\023\n\013descriptio" - "n\030\001 \001(\t\022/\n\005state\030\002 \001(\0162 .flyteidl.admin." - "NamedEntityState\"\253\001\n\013NamedEntity\0222\n\rreso" - "urce_type\030\001 \001(\0162\033.flyteidl.core.Resource" - "Type\0221\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedE" - "ntityIdentifier\0225\n\010metadata\030\003 \001(\0132#.flyt" - "eidl.admin.NamedEntityMetadata\"r\n\004Sort\022\013" - "\n\003key\030\001 \001(\t\0221\n\tdirection\030\002 \001(\0162\036.flyteid" - "l.admin.Sort.Direction\"*\n\tDirection\022\016\n\nD" - "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\231\001\n NamedEnti" - "tyIdentifierListRequest\022\017\n\007project\030\001 \001(\t" - "\022\016\n\006domain\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token" - "\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin" - ".Sort\022\017\n\007filters\030\006 \001(\t\"\303\001\n\026NamedEntityLi" - "stRequest\0222\n\rresource_type\030\001 \001(\0162\033.flyte" - "idl.core.ResourceType\022\017\n\007project\030\002 \001(\t\022\016" - "\n\006domain\030\003 \001(\t\022\r\n\005limit\030\004 \001(\r\022\r\n\005token\030\005" - " \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admin.S" - "ort\022\017\n\007filters\030\007 \001(\t\"c\n\031NamedEntityIdent" - "ifierList\0227\n\010entities\030\001 \003(\0132%.flyteidl.a" - "dmin.NamedEntityIdentifier\022\r\n\005token\030\002 \001(" - "\t\"O\n\017NamedEntityList\022-\n\010entities\030\001 \003(\0132\033" - ".flyteidl.admin.NamedEntity\022\r\n\005token\030\002 \001" - "(\t\"~\n\025NamedEntityGetRequest\0222\n\rresource_" - "type\030\001 \001(\0162\033.flyteidl.core.ResourceType\022" - "1\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedEntity" - "Identifier\"\270\001\n\030NamedEntityUpdateRequest\022" - "2\n\rresource_type\030\001 \001(\0162\033.flyteidl.core.R" - "esourceType\0221\n\002id\030\002 \001(\0132%.flyteidl.admin" - ".NamedEntityIdentifier\0225\n\010metadata\030\003 \001(\013" - "2#.flyteidl.admin.NamedEntityMetadata\"\033\n" - "\031NamedEntityUpdateResponse\"9\n\020ObjectGetR" - "equest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Ident" - "ifier\"\236\001\n\023ResourceListRequest\0221\n\002id\030\001 \001(" - "\0132%.flyteidl.admin.NamedEntityIdentifier" - "\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filter" - "s\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admi" - "n.Sort\"-\n\021EmailNotification\022\030\n\020recipient" - "s_email\030\001 \003(\t\"1\n\025PagerDutyNotification\022\030" - "\n\020recipients_email\030\001 \003(\t\"-\n\021SlackNotific" - "ation\022\030\n\020recipients_email\030\001 \003(\t\"\363\001\n\014Noti" - "fication\0226\n\006phases\030\001 \003(\0162&.flyteidl.core" - ".WorkflowExecution.Phase\0222\n\005email\030\002 \001(\0132" - "!.flyteidl.admin.EmailNotificationH\000\022;\n\n" - "pager_duty\030\003 \001(\0132%.flyteidl.admin.PagerD" - "utyNotificationH\000\0222\n\005slack\030\004 \001(\0132!.flyte" - "idl.admin.SlackNotificationH\000B\006\n\004type\")\n" - "\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003:\002\030\001" - "\"k\n\006Labels\0222\n\006values\030\001 \003(\0132\".flyteidl.ad" - "min.Labels.ValuesEntry\032-\n\013ValuesEntry\022\013\n" - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\013Annotat" - "ions\0227\n\006values\030\001 \003(\0132\'.flyteidl.admin.An" - "notations.ValuesEntry\032-\n\013ValuesEntry\022\013\n\003" - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\004Envs\022+\n\006" - "values\030\001 \003(\0132\033.flyteidl.core.KeyValuePai" - "r\"N\n\010AuthRole\022\032\n\022assumable_iam_role\030\001 \001(" - "\t\022\"\n\032kubernetes_service_account\030\002 \001(\t:\002\030" - "\001\"5\n\023RawOutputDataConfig\022\036\n\026output_locat" - "ion_prefix\030\001 \001(\t\":\n\tFlyteURLs\022\016\n\006inputs\030" - "\001 \001(\t\022\017\n\007outputs\030\002 \001(\t\022\014\n\004deck\030\003 \001(\t*\\\n\020" - "NamedEntityState\022\027\n\023NAMED_ENTITY_ACTIVE\020" - "\000\022\031\n\025NAMED_ENTITY_ARCHIVED\020\001\022\024\n\020SYSTEM_G" - "ENERATED\020\002B=Z;github.com/flyteorg/flyte/" - "flyteidl/gen/pb-go/flyteidl/adminb\006proto" - "3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fcommon_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fcommon_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fcommon_2eproto, - "flyteidl/admin/common.proto", &assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto, 2801, -}; - -void AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[4] = - { - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fcommon_2eproto, deps, 4); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fcommon_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[0]; -} -bool Sort_Direction_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const Sort_Direction Sort::DESCENDING; -const Sort_Direction Sort::ASCENDING; -const Sort_Direction Sort::Direction_MIN; -const Sort_Direction Sort::Direction_MAX; -const int Sort::Direction_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* NamedEntityState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fcommon_2eproto[1]; -} -bool NamedEntityState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - - -// =================================================================== - -void NamedEntityIdentifier::InitAsDefaultInstance() { -} -class NamedEntityIdentifier::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityIdentifier::kProjectFieldNumber; -const int NamedEntityIdentifier::kDomainFieldNumber; -const int NamedEntityIdentifier::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityIdentifier::NamedEntityIdentifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifier) -} -NamedEntityIdentifier::NamedEntityIdentifier(const NamedEntityIdentifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifier) -} - -void NamedEntityIdentifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -NamedEntityIdentifier::~NamedEntityIdentifier() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifier) - SharedDtor(); -} - -void NamedEntityIdentifier::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NamedEntityIdentifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityIdentifier& NamedEntityIdentifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityIdentifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityIdentifier::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifier.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityIdentifier::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.NamedEntityIdentifier) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifier.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifier.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifier.name")); - } 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.NamedEntityIdentifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityIdentifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifier) -} - -::google::protobuf::uint8* NamedEntityIdentifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifier.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), 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.NamedEntityIdentifier) - return target; -} - -size_t NamedEntityIdentifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifier) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string name = 3; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityIdentifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifier) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityIdentifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifier) - MergeFrom(*source); - } -} - -void NamedEntityIdentifier::MergeFrom(const NamedEntityIdentifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifier) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void NamedEntityIdentifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityIdentifier::CopyFrom(const NamedEntityIdentifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityIdentifier::IsInitialized() const { - return true; -} - -void NamedEntityIdentifier::Swap(NamedEntityIdentifier* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityIdentifier::InternalSwap(NamedEntityIdentifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata NamedEntityIdentifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityMetadata::InitAsDefaultInstance() { -} -class NamedEntityMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityMetadata::kDescriptionFieldNumber; -const int NamedEntityMetadata::kStateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityMetadata::NamedEntityMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityMetadata) -} -NamedEntityMetadata::NamedEntityMetadata(const NamedEntityMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.description().size() > 0) { - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityMetadata) -} - -void NamedEntityMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - state_ = 0; -} - -NamedEntityMetadata::~NamedEntityMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityMetadata) - SharedDtor(); -} - -void NamedEntityMetadata::SharedDtor() { - description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NamedEntityMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityMetadata& NamedEntityMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityMetadata_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityMetadata::_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) { - // string description = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityMetadata.description"); - object = msg->mutable_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.NamedEntityState state = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::NamedEntityState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityMetadata::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.NamedEntityMetadata) - 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)) { - // string description = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityMetadata.description")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityState state = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::NamedEntityState >(value)); - } 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.NamedEntityMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string description = 1; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityMetadata.description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->description(), output); - } - - // .flyteidl.admin.NamedEntityState state = 2; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->state(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityMetadata) -} - -::google::protobuf::uint8* NamedEntityMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string description = 1; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityMetadata.description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->description(), target); - } - - // .flyteidl.admin.NamedEntityState state = 2; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->state(), 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.NamedEntityMetadata) - return target; -} - -size_t NamedEntityMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityMetadata) - 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; - - // string description = 1; - if (this->description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // .flyteidl.admin.NamedEntityState state = 2; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityMetadata) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityMetadata) - MergeFrom(*source); - } -} - -void NamedEntityMetadata::MergeFrom(const NamedEntityMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.description().size() > 0) { - - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void NamedEntityMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityMetadata::CopyFrom(const NamedEntityMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityMetadata::IsInitialized() const { - return true; -} - -void NamedEntityMetadata::Swap(NamedEntityMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityMetadata::InternalSwap(NamedEntityMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(state_, other->state_); -} - -::google::protobuf::Metadata NamedEntityMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntity::InitAsDefaultInstance() { - ::flyteidl::admin::_NamedEntity_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); - ::flyteidl::admin::_NamedEntity_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NamedEntityMetadata*>( - ::flyteidl::admin::NamedEntityMetadata::internal_default_instance()); -} -class NamedEntity::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntity* msg); - static const ::flyteidl::admin::NamedEntityMetadata& metadata(const NamedEntity* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -NamedEntity::HasBitSetters::id(const NamedEntity* msg) { - return *msg->id_; -} -const ::flyteidl::admin::NamedEntityMetadata& -NamedEntity::HasBitSetters::metadata(const NamedEntity* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntity::kResourceTypeFieldNumber; -const int NamedEntity::kIdFieldNumber; -const int NamedEntity::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntity::NamedEntity() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntity) -} -NamedEntity::NamedEntity(const NamedEntity& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::admin::NamedEntityMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntity) -} - -void NamedEntity::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&resource_type_) - - reinterpret_cast(&id_)) + sizeof(resource_type_)); -} - -NamedEntity::~NamedEntity() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntity) - SharedDtor(); -} - -void NamedEntity::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; -} - -void NamedEntity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntity& NamedEntity::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntity_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntity::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntity) - ::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; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntity::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.NamedEntityIdentifier id = 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::NamedEntityIdentifier::_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; - } - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NamedEntityMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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 NamedEntity::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.NamedEntity) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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.NamedEntity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntity) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntity) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::id(this), output); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::metadata(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.NamedEntity) -} - -::google::protobuf::uint8* NamedEntity::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntity) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::id(this), target); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::metadata(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.NamedEntity) - return target; -} - -size_t NamedEntity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntity) - 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.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntity::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntity) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntity* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntity) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntity) - MergeFrom(*source); - } -} - -void NamedEntity::MergeFrom(const NamedEntity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntity) - 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::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::admin::NamedEntityMetadata::MergeFrom(from.metadata()); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void NamedEntity::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntity::CopyFrom(const NamedEntity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntity::IsInitialized() const { - return true; -} - -void NamedEntity::Swap(NamedEntity* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntity::InternalSwap(NamedEntity* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(metadata_, other->metadata_); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata NamedEntity::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Sort::InitAsDefaultInstance() { -} -class Sort::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Sort::kKeyFieldNumber; -const int Sort::kDirectionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Sort::Sort() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Sort) -} -Sort::Sort(const Sort& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - direction_ = from.direction_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Sort) -} - -void Sort::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - direction_ = 0; -} - -Sort::~Sort() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Sort) - SharedDtor(); -} - -void Sort::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Sort::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Sort& Sort::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void Sort::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Sort) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - direction_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Sort::_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) { - // string key = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Sort.key"); - object = msg->mutable_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort.Direction direction = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_direction(static_cast<::flyteidl::admin::Sort_Direction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Sort::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.Sort) - 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)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Sort.key")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort.Direction direction = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_direction(static_cast< ::flyteidl::admin::Sort_Direction >(value)); - } 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.Sort) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Sort) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Sort::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Sort) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Sort.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // .flyteidl.admin.Sort.Direction direction = 2; - if (this->direction() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->direction(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Sort) -} - -::google::protobuf::uint8* Sort::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Sort) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Sort.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // .flyteidl.admin.Sort.Direction direction = 2; - if (this->direction() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->direction(), 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.Sort) - return target; -} - -size_t Sort::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Sort) - 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; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // .flyteidl.admin.Sort.Direction direction = 2; - if (this->direction() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Sort::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Sort) - GOOGLE_DCHECK_NE(&from, this); - const Sort* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Sort) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Sort) - MergeFrom(*source); - } -} - -void Sort::MergeFrom(const Sort& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Sort) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.direction() != 0) { - set_direction(from.direction()); - } -} - -void Sort::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Sort) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Sort::CopyFrom(const Sort& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Sort) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Sort::IsInitialized() const { - return true; -} - -void Sort::Swap(Sort* other) { - if (other == this) return; - InternalSwap(other); -} -void Sort::InternalSwap(Sort* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(direction_, other->direction_); -} - -::google::protobuf::Metadata Sort::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityIdentifierListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NamedEntityIdentifierListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class NamedEntityIdentifierListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::Sort& sort_by(const NamedEntityIdentifierListRequest* msg); -}; - -const ::flyteidl::admin::Sort& -NamedEntityIdentifierListRequest::HasBitSetters::sort_by(const NamedEntityIdentifierListRequest* msg) { - return *msg->sort_by_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityIdentifierListRequest::kProjectFieldNumber; -const int NamedEntityIdentifierListRequest::kDomainFieldNumber; -const int NamedEntityIdentifierListRequest::kLimitFieldNumber; -const int NamedEntityIdentifierListRequest::kTokenFieldNumber; -const int NamedEntityIdentifierListRequest::kSortByFieldNumber; -const int NamedEntityIdentifierListRequest::kFiltersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierListRequest) -} -NamedEntityIdentifierListRequest::NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifierListRequest) -} - -void NamedEntityIdentifierListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&sort_by_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&sort_by_)) + sizeof(limit_)); -} - -NamedEntityIdentifierListRequest::~NamedEntityIdentifierListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierListRequest) - SharedDtor(); -} - -void NamedEntityIdentifierListRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete sort_by_; -} - -void NamedEntityIdentifierListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityIdentifierListRequest& NamedEntityIdentifierListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifierListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityIdentifierListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityIdentifierListRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 limit = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; - } - // string filters = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityIdentifierListRequest::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.NamedEntityIdentifierListRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifierListRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifierListRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifierListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifierListRequest.filters")); - } 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.NamedEntityIdentifierListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityIdentifierListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->token(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(this), output); - } - - // string filters = 6; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->filters(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierListRequest) -} - -::google::protobuf::uint8* NamedEntityIdentifierListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->token(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(this), target); - } - - // string filters = 6; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->filters(), 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.NamedEntityIdentifierListRequest) - return target; -} - -size_t NamedEntityIdentifierListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierListRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string token = 4; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 6; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityIdentifierListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityIdentifierListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierListRequest) - MergeFrom(*source); - } -} - -void NamedEntityIdentifierListRequest::MergeFrom(const NamedEntityIdentifierListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void NamedEntityIdentifierListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityIdentifierListRequest::CopyFrom(const NamedEntityIdentifierListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityIdentifierListRequest::IsInitialized() const { - return true; -} - -void NamedEntityIdentifierListRequest::Swap(NamedEntityIdentifierListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityIdentifierListRequest::InternalSwap(NamedEntityIdentifierListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata NamedEntityIdentifierListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NamedEntityListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class NamedEntityListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::Sort& sort_by(const NamedEntityListRequest* msg); -}; - -const ::flyteidl::admin::Sort& -NamedEntityListRequest::HasBitSetters::sort_by(const NamedEntityListRequest* msg) { - return *msg->sort_by_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityListRequest::kResourceTypeFieldNumber; -const int NamedEntityListRequest::kProjectFieldNumber; -const int NamedEntityListRequest::kDomainFieldNumber; -const int NamedEntityListRequest::kLimitFieldNumber; -const int NamedEntityListRequest::kTokenFieldNumber; -const int NamedEntityListRequest::kSortByFieldNumber; -const int NamedEntityListRequest::kFiltersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityListRequest::NamedEntityListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityListRequest) -} -NamedEntityListRequest::NamedEntityListRequest(const NamedEntityListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - ::memcpy(&resource_type_, &from.resource_type_, - static_cast(reinterpret_cast(&limit_) - - reinterpret_cast(&resource_type_)) + sizeof(limit_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityListRequest) -} - -void NamedEntityListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&sort_by_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&sort_by_)) + sizeof(limit_)); -} - -NamedEntityListRequest::~NamedEntityListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityListRequest) - SharedDtor(); -} - -void NamedEntityListRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete sort_by_; -} - -void NamedEntityListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityListRequest& NamedEntityListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - ::memset(&resource_type_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&resource_type_)) + sizeof(limit_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityListRequest::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 limit = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; - } - // string filters = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityListRequest::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.NamedEntityListRequest) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string project = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityListRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityListRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityListRequest.filters")); - } 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.NamedEntityListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // string project = 2; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->project(), output); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->domain(), output); - } - - // uint32 limit = 4; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->limit(), output); - } - - // string token = 5; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->token(), output); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::sort_by(this), output); - } - - // string filters = 7; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->filters(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityListRequest) -} - -::google::protobuf::uint8* NamedEntityListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // string project = 2; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->project(), target); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->domain(), target); - } - - // uint32 limit = 4; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->limit(), target); - } - - // string token = 5; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->token(), target); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::sort_by(this), target); - } - - // string filters = 7; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->filters(), 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.NamedEntityListRequest) - return target; -} - -size_t NamedEntityListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityListRequest) - 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; - - // string project = 2; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 3; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string token = 5; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 7; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - // uint32 limit = 4; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityListRequest) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityListRequest) - MergeFrom(*source); - } -} - -void NamedEntityListRequest::MergeFrom(const NamedEntityListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void NamedEntityListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityListRequest::CopyFrom(const NamedEntityListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityListRequest::IsInitialized() const { - return true; -} - -void NamedEntityListRequest::Swap(NamedEntityListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityListRequest::InternalSwap(NamedEntityListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(sort_by_, other->sort_by_); - swap(resource_type_, other->resource_type_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata NamedEntityListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityIdentifierList::InitAsDefaultInstance() { -} -class NamedEntityIdentifierList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityIdentifierList::kEntitiesFieldNumber; -const int NamedEntityIdentifierList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityIdentifierList::NamedEntityIdentifierList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityIdentifierList) -} -NamedEntityIdentifierList::NamedEntityIdentifierList(const NamedEntityIdentifierList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - entities_(from.entities_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityIdentifierList) -} - -void NamedEntityIdentifierList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -NamedEntityIdentifierList::~NamedEntityIdentifierList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityIdentifierList) - SharedDtor(); -} - -void NamedEntityIdentifierList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NamedEntityIdentifierList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityIdentifierList& NamedEntityIdentifierList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityIdentifierList_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityIdentifierList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityIdentifierList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - entities_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityIdentifierList::_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) { - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NamedEntityIdentifier::_InternalParse; - object = msg->add_entities(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityIdentifierList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityIdentifierList::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.NamedEntityIdentifierList) - 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)) { - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_entities())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityIdentifierList.token")); - } 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.NamedEntityIdentifierList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityIdentifierList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityIdentifierList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityIdentifierList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - for (unsigned int i = 0, - n = static_cast(this->entities_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->entities(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityIdentifierList) -} - -::google::protobuf::uint8* NamedEntityIdentifierList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityIdentifierList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - for (unsigned int i = 0, - n = static_cast(this->entities_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->entities(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityIdentifierList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.NamedEntityIdentifierList) - return target; -} - -size_t NamedEntityIdentifierList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityIdentifierList) - 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; - - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - { - unsigned int count = static_cast(this->entities_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->entities(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityIdentifierList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityIdentifierList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityIdentifierList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityIdentifierList) - MergeFrom(*source); - } -} - -void NamedEntityIdentifierList::MergeFrom(const NamedEntityIdentifierList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityIdentifierList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - entities_.MergeFrom(from.entities_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void NamedEntityIdentifierList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityIdentifierList::CopyFrom(const NamedEntityIdentifierList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityIdentifierList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityIdentifierList::IsInitialized() const { - return true; -} - -void NamedEntityIdentifierList::Swap(NamedEntityIdentifierList* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityIdentifierList::InternalSwap(NamedEntityIdentifierList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&entities_)->InternalSwap(CastToBase(&other->entities_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata NamedEntityIdentifierList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityList::InitAsDefaultInstance() { -} -class NamedEntityList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityList::kEntitiesFieldNumber; -const int NamedEntityList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityList::NamedEntityList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityList) -} -NamedEntityList::NamedEntityList(const NamedEntityList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - entities_(from.entities_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityList) -} - -void NamedEntityList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -NamedEntityList::~NamedEntityList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityList) - SharedDtor(); -} - -void NamedEntityList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NamedEntityList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityList& NamedEntityList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityList_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - entities_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityList::_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) { - // repeated .flyteidl.admin.NamedEntity entities = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NamedEntity::_InternalParse; - object = msg->add_entities(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NamedEntityList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityList::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.NamedEntityList) - 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)) { - // repeated .flyteidl.admin.NamedEntity entities = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_entities())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NamedEntityList.token")); - } 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.NamedEntityList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NamedEntity entities = 1; - for (unsigned int i = 0, - n = static_cast(this->entities_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->entities(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityList) -} - -::google::protobuf::uint8* NamedEntityList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NamedEntity entities = 1; - for (unsigned int i = 0, - n = static_cast(this->entities_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->entities(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NamedEntityList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.NamedEntityList) - return target; -} - -size_t NamedEntityList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityList) - 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; - - // repeated .flyteidl.admin.NamedEntity entities = 1; - { - unsigned int count = static_cast(this->entities_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->entities(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityList) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityList) - MergeFrom(*source); - } -} - -void NamedEntityList::MergeFrom(const NamedEntityList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - entities_.MergeFrom(from.entities_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void NamedEntityList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityList::CopyFrom(const NamedEntityList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityList::IsInitialized() const { - return true; -} - -void NamedEntityList::Swap(NamedEntityList* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityList::InternalSwap(NamedEntityList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&entities_)->InternalSwap(CastToBase(&other->entities_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata NamedEntityList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityGetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NamedEntityGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); -} -class NamedEntityGetRequest::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntityGetRequest* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -NamedEntityGetRequest::HasBitSetters::id(const NamedEntityGetRequest* msg) { - return *msg->id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityGetRequest::kResourceTypeFieldNumber; -const int NamedEntityGetRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityGetRequest::NamedEntityGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityGetRequest) -} -NamedEntityGetRequest::NamedEntityGetRequest(const NamedEntityGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityGetRequest) -} - -void NamedEntityGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&resource_type_) - - reinterpret_cast(&id_)) + sizeof(resource_type_)); -} - -NamedEntityGetRequest::~NamedEntityGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityGetRequest) - SharedDtor(); -} - -void NamedEntityGetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void NamedEntityGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityGetRequest& NamedEntityGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityGetRequest) - ::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; - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityGetRequest::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.NamedEntityIdentifier id = 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::NamedEntityIdentifier::_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 NamedEntityGetRequest::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.NamedEntityGetRequest) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 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.NamedEntityGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, 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.NamedEntityGetRequest) -} - -::google::protobuf::uint8* NamedEntityGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, 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.NamedEntityGetRequest) - return target; -} - -size_t NamedEntityGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityGetRequest) - 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.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityGetRequest) - MergeFrom(*source); - } -} - -void NamedEntityGetRequest::MergeFrom(const NamedEntityGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityGetRequest) - 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::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void NamedEntityGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityGetRequest::CopyFrom(const NamedEntityGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityGetRequest::IsInitialized() const { - return true; -} - -void NamedEntityGetRequest::Swap(NamedEntityGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityGetRequest::InternalSwap(NamedEntityGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata NamedEntityGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); - ::flyteidl::admin::_NamedEntityUpdateRequest_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NamedEntityMetadata*>( - ::flyteidl::admin::NamedEntityMetadata::internal_default_instance()); -} -class NamedEntityUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const NamedEntityUpdateRequest* msg); - static const ::flyteidl::admin::NamedEntityMetadata& metadata(const NamedEntityUpdateRequest* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -NamedEntityUpdateRequest::HasBitSetters::id(const NamedEntityUpdateRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::NamedEntityMetadata& -NamedEntityUpdateRequest::HasBitSetters::metadata(const NamedEntityUpdateRequest* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NamedEntityUpdateRequest::kResourceTypeFieldNumber; -const int NamedEntityUpdateRequest::kIdFieldNumber; -const int NamedEntityUpdateRequest::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityUpdateRequest::NamedEntityUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityUpdateRequest) -} -NamedEntityUpdateRequest::NamedEntityUpdateRequest(const NamedEntityUpdateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::admin::NamedEntityMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityUpdateRequest) -} - -void NamedEntityUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&resource_type_) - - reinterpret_cast(&id_)) + sizeof(resource_type_)); -} - -NamedEntityUpdateRequest::~NamedEntityUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityUpdateRequest) - SharedDtor(); -} - -void NamedEntityUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; -} - -void NamedEntityUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityUpdateRequest& NamedEntityUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityUpdateRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityUpdateRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityUpdateRequest::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.NamedEntityIdentifier id = 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::NamedEntityIdentifier::_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; - } - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NamedEntityMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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 NamedEntityUpdateRequest::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.NamedEntityUpdateRequest) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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.NamedEntityUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::id(this), output); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::metadata(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.NamedEntityUpdateRequest) -} - -::google::protobuf::uint8* NamedEntityUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::id(this), target); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::metadata(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.NamedEntityUpdateRequest) - return target; -} - -size_t NamedEntityUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityUpdateRequest) - 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.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityUpdateRequest) - MergeFrom(*source); - } -} - -void NamedEntityUpdateRequest::MergeFrom(const NamedEntityUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityUpdateRequest) - 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::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::admin::NamedEntityMetadata::MergeFrom(from.metadata()); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void NamedEntityUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityUpdateRequest::CopyFrom(const NamedEntityUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityUpdateRequest::IsInitialized() const { - return true; -} - -void NamedEntityUpdateRequest::Swap(NamedEntityUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityUpdateRequest::InternalSwap(NamedEntityUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(metadata_, other->metadata_); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata NamedEntityUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NamedEntityUpdateResponse::InitAsDefaultInstance() { -} -class NamedEntityUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NamedEntityUpdateResponse::NamedEntityUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NamedEntityUpdateResponse) -} -NamedEntityUpdateResponse::NamedEntityUpdateResponse(const NamedEntityUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NamedEntityUpdateResponse) -} - -void NamedEntityUpdateResponse::SharedCtor() { -} - -NamedEntityUpdateResponse::~NamedEntityUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NamedEntityUpdateResponse) - SharedDtor(); -} - -void NamedEntityUpdateResponse::SharedDtor() { -} - -void NamedEntityUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NamedEntityUpdateResponse& NamedEntityUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NamedEntityUpdateResponse_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void NamedEntityUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NamedEntityUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NamedEntityUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NamedEntityUpdateResponse::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.NamedEntityUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.NamedEntityUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NamedEntityUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NamedEntityUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NamedEntityUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NamedEntityUpdateResponse) -} - -::google::protobuf::uint8* NamedEntityUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NamedEntityUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.NamedEntityUpdateResponse) - return target; -} - -size_t NamedEntityUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NamedEntityUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NamedEntityUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NamedEntityUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const NamedEntityUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NamedEntityUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NamedEntityUpdateResponse) - MergeFrom(*source); - } -} - -void NamedEntityUpdateResponse::MergeFrom(const NamedEntityUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NamedEntityUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void NamedEntityUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NamedEntityUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NamedEntityUpdateResponse::CopyFrom(const NamedEntityUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NamedEntityUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NamedEntityUpdateResponse::IsInitialized() const { - return true; -} - -void NamedEntityUpdateResponse::Swap(NamedEntityUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void NamedEntityUpdateResponse::InternalSwap(NamedEntityUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata NamedEntityUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ObjectGetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ObjectGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class ObjectGetRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const ObjectGetRequest* msg); -}; - -const ::flyteidl::core::Identifier& -ObjectGetRequest::HasBitSetters::id(const ObjectGetRequest* msg) { - return *msg->id_; -} -void ObjectGetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ObjectGetRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ObjectGetRequest::ObjectGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ObjectGetRequest) -} -ObjectGetRequest::ObjectGetRequest(const ObjectGetRequest& 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.ObjectGetRequest) -} - -void ObjectGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - id_ = nullptr; -} - -ObjectGetRequest::~ObjectGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ObjectGetRequest) - SharedDtor(); -} - -void ObjectGetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void ObjectGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ObjectGetRequest& ObjectGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ObjectGetRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void ObjectGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ObjectGetRequest) - ::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* ObjectGetRequest::_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 ObjectGetRequest::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.ObjectGetRequest) - 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.ObjectGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ObjectGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ObjectGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ObjectGetRequest) - ::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.ObjectGetRequest) -} - -::google::protobuf::uint8* ObjectGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ObjectGetRequest) - ::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.ObjectGetRequest) - return target; -} - -size_t ObjectGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ObjectGetRequest) - 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 ObjectGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ObjectGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const ObjectGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ObjectGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ObjectGetRequest) - MergeFrom(*source); - } -} - -void ObjectGetRequest::MergeFrom(const ObjectGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ObjectGetRequest) - 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 ObjectGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ObjectGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ObjectGetRequest::CopyFrom(const ObjectGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ObjectGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ObjectGetRequest::IsInitialized() const { - return true; -} - -void ObjectGetRequest::Swap(ObjectGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ObjectGetRequest::InternalSwap(ObjectGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata ObjectGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ResourceListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); - ::flyteidl::admin::_ResourceListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class ResourceListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const ResourceListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const ResourceListRequest* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -ResourceListRequest::HasBitSetters::id(const ResourceListRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::Sort& -ResourceListRequest::HasBitSetters::sort_by(const ResourceListRequest* msg) { - return *msg->sort_by_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ResourceListRequest::kIdFieldNumber; -const int ResourceListRequest::kLimitFieldNumber; -const int ResourceListRequest::kTokenFieldNumber; -const int ResourceListRequest::kFiltersFieldNumber; -const int ResourceListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ResourceListRequest::ResourceListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ResourceListRequest) -} -ResourceListRequest::ResourceListRequest(const ResourceListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ResourceListRequest) -} - -void ResourceListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&id_)) + sizeof(limit_)); -} - -ResourceListRequest::~ResourceListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ResourceListRequest) - SharedDtor(); -} - -void ResourceListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void ResourceListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ResourceListRequest& ResourceListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResourceListRequest_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void ResourceListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ResourceListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ResourceListRequest::_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.NamedEntityIdentifier 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::admin::NamedEntityIdentifier::_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; - } - // uint32 limit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ResourceListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ResourceListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ResourceListRequest::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.ResourceListRequest) - 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.NamedEntityIdentifier 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; - } - - // uint32 limit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ResourceListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ResourceListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.ResourceListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ResourceListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ResourceListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ResourceListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.NamedEntityIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ResourceListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ResourceListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(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.ResourceListRequest) -} - -::google::protobuf::uint8* ResourceListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ResourceListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.NamedEntityIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ResourceListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ResourceListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(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.ResourceListRequest) - return target; -} - -size_t ResourceListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ResourceListRequest) - 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; - - // string token = 3; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 4; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ResourceListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ResourceListRequest) - GOOGLE_DCHECK_NE(&from, this); - const ResourceListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ResourceListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ResourceListRequest) - MergeFrom(*source); - } -} - -void ResourceListRequest::MergeFrom(const ResourceListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ResourceListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void ResourceListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ResourceListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResourceListRequest::CopyFrom(const ResourceListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ResourceListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResourceListRequest::IsInitialized() const { - return true; -} - -void ResourceListRequest::Swap(ResourceListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ResourceListRequest::InternalSwap(ResourceListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata ResourceListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void EmailNotification::InitAsDefaultInstance() { -} -class EmailNotification::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EmailNotification::kRecipientsEmailFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EmailNotification::EmailNotification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.EmailNotification) -} -EmailNotification::EmailNotification(const EmailNotification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - recipients_email_(from.recipients_email_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailNotification) -} - -void EmailNotification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -EmailNotification::~EmailNotification() { - // @@protoc_insertion_point(destructor:flyteidl.admin.EmailNotification) - SharedDtor(); -} - -void EmailNotification::SharedDtor() { -} - -void EmailNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EmailNotification& EmailNotification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EmailNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void EmailNotification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - recipients_email_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EmailNotification::_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) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailNotification.recipients_email"); - object = msg->add_recipients_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EmailNotification::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.EmailNotification) - 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)) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_recipients_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(this->recipients_email_size() - 1).data(), - static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EmailNotification.recipients_email")); - } 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.EmailNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailNotification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EmailNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailNotification.recipients_email"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->recipients_email(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailNotification) -} - -::google::protobuf::uint8* EmailNotification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailNotification.recipients_email"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->recipients_email(i), 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.EmailNotification) - return target; -} - -size_t EmailNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailNotification) - 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; - - // repeated string recipients_email = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->recipients_email(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EmailNotification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailNotification) - GOOGLE_DCHECK_NE(&from, this); - const EmailNotification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailNotification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailNotification) - MergeFrom(*source); - } -} - -void EmailNotification::MergeFrom(const EmailNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailNotification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - recipients_email_.MergeFrom(from.recipients_email_); -} - -void EmailNotification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmailNotification::CopyFrom(const EmailNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EmailNotification::IsInitialized() const { - return true; -} - -void EmailNotification::Swap(EmailNotification* other) { - if (other == this) return; - InternalSwap(other); -} -void EmailNotification::InternalSwap(EmailNotification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); -} - -::google::protobuf::Metadata EmailNotification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PagerDutyNotification::InitAsDefaultInstance() { -} -class PagerDutyNotification::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PagerDutyNotification::kRecipientsEmailFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PagerDutyNotification::PagerDutyNotification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.PagerDutyNotification) -} -PagerDutyNotification::PagerDutyNotification(const PagerDutyNotification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - recipients_email_(from.recipients_email_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PagerDutyNotification) -} - -void PagerDutyNotification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -PagerDutyNotification::~PagerDutyNotification() { - // @@protoc_insertion_point(destructor:flyteidl.admin.PagerDutyNotification) - SharedDtor(); -} - -void PagerDutyNotification::SharedDtor() { -} - -void PagerDutyNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PagerDutyNotification& PagerDutyNotification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PagerDutyNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void PagerDutyNotification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PagerDutyNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - recipients_email_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PagerDutyNotification::_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) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.PagerDutyNotification.recipients_email"); - object = msg->add_recipients_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PagerDutyNotification::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.PagerDutyNotification) - 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)) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_recipients_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(this->recipients_email_size() - 1).data(), - static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.PagerDutyNotification.recipients_email")); - } 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.PagerDutyNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.PagerDutyNotification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PagerDutyNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.PagerDutyNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PagerDutyNotification.recipients_email"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->recipients_email(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.PagerDutyNotification) -} - -::google::protobuf::uint8* PagerDutyNotification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PagerDutyNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PagerDutyNotification.recipients_email"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->recipients_email(i), 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.PagerDutyNotification) - return target; -} - -size_t PagerDutyNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PagerDutyNotification) - 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; - - // repeated string recipients_email = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->recipients_email(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PagerDutyNotification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PagerDutyNotification) - GOOGLE_DCHECK_NE(&from, this); - const PagerDutyNotification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PagerDutyNotification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PagerDutyNotification) - MergeFrom(*source); - } -} - -void PagerDutyNotification::MergeFrom(const PagerDutyNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PagerDutyNotification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - recipients_email_.MergeFrom(from.recipients_email_); -} - -void PagerDutyNotification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PagerDutyNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PagerDutyNotification::CopyFrom(const PagerDutyNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PagerDutyNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PagerDutyNotification::IsInitialized() const { - return true; -} - -void PagerDutyNotification::Swap(PagerDutyNotification* other) { - if (other == this) return; - InternalSwap(other); -} -void PagerDutyNotification::InternalSwap(PagerDutyNotification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); -} - -::google::protobuf::Metadata PagerDutyNotification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SlackNotification::InitAsDefaultInstance() { -} -class SlackNotification::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SlackNotification::kRecipientsEmailFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SlackNotification::SlackNotification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SlackNotification) -} -SlackNotification::SlackNotification(const SlackNotification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - recipients_email_(from.recipients_email_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SlackNotification) -} - -void SlackNotification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -SlackNotification::~SlackNotification() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SlackNotification) - SharedDtor(); -} - -void SlackNotification::SharedDtor() { -} - -void SlackNotification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SlackNotification& SlackNotification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SlackNotification_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void SlackNotification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SlackNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - recipients_email_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SlackNotification::_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) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SlackNotification.recipients_email"); - object = msg->add_recipients_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SlackNotification::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.SlackNotification) - 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)) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_recipients_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(this->recipients_email_size() - 1).data(), - static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SlackNotification.recipients_email")); - } 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.SlackNotification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SlackNotification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SlackNotification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SlackNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SlackNotification.recipients_email"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->recipients_email(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.SlackNotification) -} - -::google::protobuf::uint8* SlackNotification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SlackNotification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SlackNotification.recipients_email"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->recipients_email(i), 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.SlackNotification) - return target; -} - -size_t SlackNotification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SlackNotification) - 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; - - // repeated string recipients_email = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->recipients_email(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SlackNotification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SlackNotification) - GOOGLE_DCHECK_NE(&from, this); - const SlackNotification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SlackNotification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SlackNotification) - MergeFrom(*source); - } -} - -void SlackNotification::MergeFrom(const SlackNotification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SlackNotification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - recipients_email_.MergeFrom(from.recipients_email_); -} - -void SlackNotification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SlackNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SlackNotification::CopyFrom(const SlackNotification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SlackNotification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SlackNotification::IsInitialized() const { - return true; -} - -void SlackNotification::Swap(SlackNotification* other) { - if (other == this) return; - InternalSwap(other); -} -void SlackNotification::InternalSwap(SlackNotification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); -} - -::google::protobuf::Metadata SlackNotification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Notification::InitAsDefaultInstance() { - ::flyteidl::admin::_Notification_default_instance_.email_ = const_cast< ::flyteidl::admin::EmailNotification*>( - ::flyteidl::admin::EmailNotification::internal_default_instance()); - ::flyteidl::admin::_Notification_default_instance_.pager_duty_ = const_cast< ::flyteidl::admin::PagerDutyNotification*>( - ::flyteidl::admin::PagerDutyNotification::internal_default_instance()); - ::flyteidl::admin::_Notification_default_instance_.slack_ = const_cast< ::flyteidl::admin::SlackNotification*>( - ::flyteidl::admin::SlackNotification::internal_default_instance()); -} -class Notification::HasBitSetters { - public: - static const ::flyteidl::admin::EmailNotification& email(const Notification* msg); - static const ::flyteidl::admin::PagerDutyNotification& pager_duty(const Notification* msg); - static const ::flyteidl::admin::SlackNotification& slack(const Notification* msg); -}; - -const ::flyteidl::admin::EmailNotification& -Notification::HasBitSetters::email(const Notification* msg) { - return *msg->type_.email_; -} -const ::flyteidl::admin::PagerDutyNotification& -Notification::HasBitSetters::pager_duty(const Notification* msg) { - return *msg->type_.pager_duty_; -} -const ::flyteidl::admin::SlackNotification& -Notification::HasBitSetters::slack(const Notification* msg) { - return *msg->type_.slack_; -} -void Notification::set_allocated_email(::flyteidl::admin::EmailNotification* email) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (email) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - email = ::google::protobuf::internal::GetOwnedMessage( - message_arena, email, submessage_arena); - } - set_has_email(); - type_.email_ = email; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.email) -} -void Notification::set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (pager_duty) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pager_duty = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pager_duty, submessage_arena); - } - set_has_pager_duty(); - type_.pager_duty_ = pager_duty; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.pager_duty) -} -void Notification::set_allocated_slack(::flyteidl::admin::SlackNotification* slack) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (slack) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - slack = ::google::protobuf::internal::GetOwnedMessage( - message_arena, slack, submessage_arena); - } - set_has_slack(); - type_.slack_ = slack; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Notification.slack) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Notification::kPhasesFieldNumber; -const int Notification::kEmailFieldNumber; -const int Notification::kPagerDutyFieldNumber; -const int Notification::kSlackFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Notification::Notification() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Notification) -} -Notification::Notification(const Notification& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - phases_(from.phases_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_type(); - switch (from.type_case()) { - case kEmail: { - mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); - break; - } - case kPagerDuty: { - mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); - break; - } - case kSlack: { - mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Notification) -} - -void Notification::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); - clear_has_type(); -} - -Notification::~Notification() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Notification) - SharedDtor(); -} - -void Notification::SharedDtor() { - if (has_type()) { - clear_type(); - } -} - -void Notification::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Notification& Notification::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void Notification::clear_type() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Notification) - switch (type_case()) { - case kEmail: { - delete type_.email_; - break; - } - case kPagerDuty: { - delete type_.pager_duty_; - break; - } - case kSlack: { - delete type_.slack_; - break; - } - case TYPE_NOT_SET: { - break; - } - } - _oneof_case_[0] = TYPE_NOT_SET; -} - - -void Notification::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Notification) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - phases_.Clear(); - clear_type(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Notification::_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) { - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) == 10) { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::PackedEnumParser; - object = msg->mutable_phases(); - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - if (size) ptr = parser_till_end(ptr, newend, object, ctx); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr == newend); - break; - } else if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - do { - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->add_phases(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 8 && (ptr += 1)); - break; - } - // .flyteidl.admin.EmailNotification email = 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::EmailNotification::_InternalParse; - object = msg->mutable_email(); - 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.PagerDutyNotification pager_duty = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::PagerDutyNotification::_InternalParse; - object = msg->mutable_pager_duty(); - 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.SlackNotification slack = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::SlackNotification::_InternalParse; - object = msg->mutable_slack(); - 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 Notification::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.Notification) - 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)) { - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - ::google::protobuf::uint32 length; - DO_(input->ReadVarint32(&length)); - ::google::protobuf::io::CodedInputStream::Limit limit = input->PushLimit(static_cast(length)); - while (input->BytesUntilLimit() > 0) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); - } - input->PopLimit(limit); - } else if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - add_phases(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.EmailNotification email = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_email())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.PagerDutyNotification pager_duty = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pager_duty())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.SlackNotification slack = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_slack())); - } 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.Notification) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Notification) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Notification::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Notification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - if (this->phases_size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteTag( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - output); - output->WriteVarint32(_phases_cached_byte_size_.load( - std::memory_order_relaxed)); - } - for (int i = 0, n = this->phases_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteEnumNoTag( - this->phases(i), output); - } - - // .flyteidl.admin.EmailNotification email = 2; - if (has_email()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::email(this), output); - } - - // .flyteidl.admin.PagerDutyNotification pager_duty = 3; - if (has_pager_duty()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::pager_duty(this), output); - } - - // .flyteidl.admin.SlackNotification slack = 4; - if (has_slack()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::slack(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.Notification) -} - -::google::protobuf::uint8* Notification::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Notification) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - if (this->phases_size() > 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( - 1, - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, - target); - target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( _phases_cached_byte_size_.load(std::memory_order_relaxed), - target); - target = ::google::protobuf::internal::WireFormatLite::WriteEnumNoTagToArray( - this->phases_, target); - } - - // .flyteidl.admin.EmailNotification email = 2; - if (has_email()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::email(this), target); - } - - // .flyteidl.admin.PagerDutyNotification pager_duty = 3; - if (has_pager_duty()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::pager_duty(this), target); - } - - // .flyteidl.admin.SlackNotification slack = 4; - if (has_slack()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::slack(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.Notification) - return target; -} - -size_t Notification::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Notification) - 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; - - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - { - size_t data_size = 0; - unsigned int count = static_cast(this->phases_size());for (unsigned int i = 0; i < count; i++) { - data_size += ::google::protobuf::internal::WireFormatLite::EnumSize( - this->phases(static_cast(i))); - } - if (data_size > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - static_cast<::google::protobuf::int32>(data_size)); - } - int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); - _phases_cached_byte_size_.store(cached_size, - std::memory_order_relaxed); - total_size += data_size; - } - - switch (type_case()) { - // .flyteidl.admin.EmailNotification email = 2; - case kEmail: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.email_); - break; - } - // .flyteidl.admin.PagerDutyNotification pager_duty = 3; - case kPagerDuty: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.pager_duty_); - break; - } - // .flyteidl.admin.SlackNotification slack = 4; - case kSlack: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.slack_); - break; - } - case TYPE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Notification::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Notification) - GOOGLE_DCHECK_NE(&from, this); - const Notification* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Notification) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Notification) - MergeFrom(*source); - } -} - -void Notification::MergeFrom(const Notification& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Notification) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - phases_.MergeFrom(from.phases_); - switch (from.type_case()) { - case kEmail: { - mutable_email()->::flyteidl::admin::EmailNotification::MergeFrom(from.email()); - break; - } - case kPagerDuty: { - mutable_pager_duty()->::flyteidl::admin::PagerDutyNotification::MergeFrom(from.pager_duty()); - break; - } - case kSlack: { - mutable_slack()->::flyteidl::admin::SlackNotification::MergeFrom(from.slack()); - break; - } - case TYPE_NOT_SET: { - break; - } - } -} - -void Notification::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Notification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Notification::CopyFrom(const Notification& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Notification) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Notification::IsInitialized() const { - return true; -} - -void Notification::Swap(Notification* other) { - if (other == this) return; - InternalSwap(other); -} -void Notification::InternalSwap(Notification* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - phases_.InternalSwap(&other->phases_); - swap(type_, other->type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Notification::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UrlBlob::InitAsDefaultInstance() { -} -class UrlBlob::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UrlBlob::kUrlFieldNumber; -const int UrlBlob::kBytesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UrlBlob::UrlBlob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.UrlBlob) -} -UrlBlob::UrlBlob(const UrlBlob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.url().size() > 0) { - url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); - } - bytes_ = from.bytes_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.UrlBlob) -} - -void UrlBlob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); - url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - bytes_ = PROTOBUF_LONGLONG(0); -} - -UrlBlob::~UrlBlob() { - // @@protoc_insertion_point(destructor:flyteidl.admin.UrlBlob) - SharedDtor(); -} - -void UrlBlob::SharedDtor() { - url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void UrlBlob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UrlBlob& UrlBlob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void UrlBlob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.UrlBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - bytes_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UrlBlob::_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) { - // string url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.UrlBlob.url"); - object = msg->mutable_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int64 bytes = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_bytes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UrlBlob::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.UrlBlob) - 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)) { - // string url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.UrlBlob.url")); - } else { - goto handle_unusual; - } - break; - } - - // int64 bytes = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &bytes_))); - } 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.UrlBlob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.UrlBlob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UrlBlob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.UrlBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string url = 1; - if (this->url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.UrlBlob.url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->url(), output); - } - - // int64 bytes = 2; - if (this->bytes() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->bytes(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.UrlBlob) -} - -::google::protobuf::uint8* UrlBlob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.UrlBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string url = 1; - if (this->url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->url().data(), static_cast(this->url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.UrlBlob.url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->url(), target); - } - - // int64 bytes = 2; - if (this->bytes() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->bytes(), 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.UrlBlob) - return target; -} - -size_t UrlBlob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.UrlBlob) - 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; - - // string url = 1; - if (this->url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->url()); - } - - // int64 bytes = 2; - if (this->bytes() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->bytes()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UrlBlob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.UrlBlob) - GOOGLE_DCHECK_NE(&from, this); - const UrlBlob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.UrlBlob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.UrlBlob) - MergeFrom(*source); - } -} - -void UrlBlob::MergeFrom(const UrlBlob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.UrlBlob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.url().size() > 0) { - - url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.url_); - } - if (from.bytes() != 0) { - set_bytes(from.bytes()); - } -} - -void UrlBlob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.UrlBlob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UrlBlob::CopyFrom(const UrlBlob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.UrlBlob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UrlBlob::IsInitialized() const { - return true; -} - -void UrlBlob::Swap(UrlBlob* other) { - if (other == this) return; - InternalSwap(other); -} -void UrlBlob::InternalSwap(UrlBlob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - url_.Swap(&other->url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(bytes_, other->bytes_); -} - -::google::protobuf::Metadata UrlBlob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse() {} -Labels_ValuesEntry_DoNotUse::Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void Labels_ValuesEntry_DoNotUse::MergeFrom(const Labels_ValuesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata Labels_ValuesEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[18]; -} -void Labels_ValuesEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Labels_ValuesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Labels_ValuesEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Labels.ValuesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Labels.ValuesEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void Labels::InitAsDefaultInstance() { -} -class Labels::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Labels::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Labels::Labels() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Labels) -} -Labels::Labels(const Labels& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - values_.MergeFrom(from.values_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Labels) -} - -void Labels::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -Labels::~Labels() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Labels) - SharedDtor(); -} - -void Labels::SharedDtor() { -} - -void Labels::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Labels& Labels::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void Labels::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Labels) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Labels::_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) { - // map values = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::Labels_ValuesEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->values_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 Labels::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.Labels) - 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)) { - // map values = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - Labels_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Labels_ValuesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Labels.ValuesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Labels.ValuesEntry.value")); - } 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.Labels) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Labels) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Labels::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Labels) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map values = 1; - if (!this->values().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Labels.ValuesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Labels.ValuesEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->values().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->values().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Labels) -} - -::google::protobuf::uint8* Labels::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Labels) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map values = 1; - if (!this->values().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Labels.ValuesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Labels.ValuesEntry.value"); - } - }; - - if (false && - this->values().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->values().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.Labels) - return target; -} - -size_t Labels::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Labels) - 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; - - // map values = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->values_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Labels::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Labels) - GOOGLE_DCHECK_NE(&from, this); - const Labels* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Labels) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Labels) - MergeFrom(*source); - } -} - -void Labels::MergeFrom(const Labels& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Labels) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void Labels::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Labels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Labels::CopyFrom(const Labels& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Labels) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Labels::IsInitialized() const { - return true; -} - -void Labels::Swap(Labels* other) { - if (other == this) return; - InternalSwap(other); -} -void Labels::InternalSwap(Labels* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.Swap(&other->values_); -} - -::google::protobuf::Metadata Labels::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse() {} -Annotations_ValuesEntry_DoNotUse::Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void Annotations_ValuesEntry_DoNotUse::MergeFrom(const Annotations_ValuesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata Annotations_ValuesEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[20]; -} -void Annotations_ValuesEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Annotations_ValuesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Annotations_ValuesEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Annotations.ValuesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Annotations.ValuesEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void Annotations::InitAsDefaultInstance() { -} -class Annotations::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Annotations::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Annotations::Annotations() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Annotations) -} -Annotations::Annotations(const Annotations& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - values_.MergeFrom(from.values_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Annotations) -} - -void Annotations::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -Annotations::~Annotations() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Annotations) - SharedDtor(); -} - -void Annotations::SharedDtor() { -} - -void Annotations::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Annotations& Annotations::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void Annotations::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Annotations) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Annotations::_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) { - // map values = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->values_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 Annotations::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.Annotations) - 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)) { - // map values = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - Annotations_ValuesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Annotations_ValuesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&values_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Annotations.ValuesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Annotations.ValuesEntry.value")); - } 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.Annotations) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Annotations) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Annotations::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Annotations) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map values = 1; - if (!this->values().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Annotations.ValuesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Annotations.ValuesEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->values().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->values().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Annotations) -} - -::google::protobuf::uint8* Annotations::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Annotations) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map values = 1; - if (!this->values().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Annotations.ValuesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Annotations.ValuesEntry.value"); - } - }; - - if (false && - this->values().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->values().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(values_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.Annotations) - return target; -} - -size_t Annotations::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Annotations) - 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; - - // map values = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->values_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->values().begin(); - it != this->values().end(); ++it) { - entry.reset(values_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Annotations::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Annotations) - GOOGLE_DCHECK_NE(&from, this); - const Annotations* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Annotations) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Annotations) - MergeFrom(*source); - } -} - -void Annotations::MergeFrom(const Annotations& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Annotations) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void Annotations::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Annotations) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Annotations::CopyFrom(const Annotations& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Annotations) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Annotations::IsInitialized() const { - return true; -} - -void Annotations::Swap(Annotations* other) { - if (other == this) return; - InternalSwap(other); -} -void Annotations::InternalSwap(Annotations* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.Swap(&other->values_); -} - -::google::protobuf::Metadata Annotations::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Envs::InitAsDefaultInstance() { -} -class Envs::HasBitSetters { - public: -}; - -void Envs::clear_values() { - values_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Envs::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Envs::Envs() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Envs) -} -Envs::Envs(const Envs& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Envs) -} - -void Envs::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); -} - -Envs::~Envs() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Envs) - SharedDtor(); -} - -void Envs::SharedDtor() { -} - -void Envs::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Envs& Envs::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void Envs::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Envs) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Envs::_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) { - // repeated .flyteidl.core.KeyValuePair values = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; - object = msg->add_values(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 Envs::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.Envs) - 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)) { - // repeated .flyteidl.core.KeyValuePair values = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_values())); - } 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.Envs) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Envs) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Envs::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Envs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.KeyValuePair values = 1; - for (unsigned int i = 0, - n = static_cast(this->values_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->values(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Envs) -} - -::google::protobuf::uint8* Envs::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Envs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.KeyValuePair values = 1; - for (unsigned int i = 0, - n = static_cast(this->values_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->values(static_cast(i)), 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.Envs) - return target; -} - -size_t Envs::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Envs) - 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; - - // repeated .flyteidl.core.KeyValuePair values = 1; - { - unsigned int count = static_cast(this->values_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->values(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Envs::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Envs) - GOOGLE_DCHECK_NE(&from, this); - const Envs* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Envs) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Envs) - MergeFrom(*source); - } -} - -void Envs::MergeFrom(const Envs& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Envs) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void Envs::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Envs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Envs::CopyFrom(const Envs& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Envs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Envs::IsInitialized() const { - return true; -} - -void Envs::Swap(Envs* other) { - if (other == this) return; - InternalSwap(other); -} -void Envs::InternalSwap(Envs* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&values_)->InternalSwap(CastToBase(&other->values_)); -} - -::google::protobuf::Metadata Envs::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AuthRole::InitAsDefaultInstance() { -} -class AuthRole::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AuthRole::kAssumableIamRoleFieldNumber; -const int AuthRole::kKubernetesServiceAccountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AuthRole::AuthRole() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.AuthRole) -} -AuthRole::AuthRole(const AuthRole& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.assumable_iam_role().size() > 0) { - assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); - } - kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.kubernetes_service_account().size() > 0) { - kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.AuthRole) -} - -void AuthRole::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); - assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AuthRole::~AuthRole() { - // @@protoc_insertion_point(destructor:flyteidl.admin.AuthRole) - SharedDtor(); -} - -void AuthRole::SharedDtor() { - assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AuthRole::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AuthRole& AuthRole::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void AuthRole::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.AuthRole) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AuthRole::_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) { - // string assumable_iam_role = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.AuthRole.assumable_iam_role"); - object = msg->mutable_assumable_iam_role(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string kubernetes_service_account = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.AuthRole.kubernetes_service_account"); - object = msg->mutable_kubernetes_service_account(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AuthRole::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.AuthRole) - 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)) { - // string assumable_iam_role = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_assumable_iam_role())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.AuthRole.assumable_iam_role")); - } else { - goto handle_unusual; - } - break; - } - - // string kubernetes_service_account = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_kubernetes_service_account())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.AuthRole.kubernetes_service_account")); - } 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.AuthRole) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.AuthRole) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AuthRole::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.AuthRole) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AuthRole.assumable_iam_role"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->assumable_iam_role(), output); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AuthRole.kubernetes_service_account"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->kubernetes_service_account(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.AuthRole) -} - -::google::protobuf::uint8* AuthRole::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.AuthRole) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AuthRole.assumable_iam_role"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->assumable_iam_role(), target); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AuthRole.kubernetes_service_account"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->kubernetes_service_account(), 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.AuthRole) - return target; -} - -size_t AuthRole::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.AuthRole) - 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; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->assumable_iam_role()); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->kubernetes_service_account()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AuthRole::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.AuthRole) - GOOGLE_DCHECK_NE(&from, this); - const AuthRole* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.AuthRole) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.AuthRole) - MergeFrom(*source); - } -} - -void AuthRole::MergeFrom(const AuthRole& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.AuthRole) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.assumable_iam_role().size() > 0) { - - assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); - } - if (from.kubernetes_service_account().size() > 0) { - - kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); - } -} - -void AuthRole::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.AuthRole) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthRole::CopyFrom(const AuthRole& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.AuthRole) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthRole::IsInitialized() const { - return true; -} - -void AuthRole::Swap(AuthRole* other) { - if (other == this) return; - InternalSwap(other); -} -void AuthRole::InternalSwap(AuthRole* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - assumable_iam_role_.Swap(&other->assumable_iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - kubernetes_service_account_.Swap(&other->kubernetes_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata AuthRole::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RawOutputDataConfig::InitAsDefaultInstance() { -} -class RawOutputDataConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RawOutputDataConfig::kOutputLocationPrefixFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RawOutputDataConfig::RawOutputDataConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.RawOutputDataConfig) -} -RawOutputDataConfig::RawOutputDataConfig(const RawOutputDataConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - output_location_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.output_location_prefix().size() > 0) { - output_location_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_location_prefix_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.RawOutputDataConfig) -} - -void RawOutputDataConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); - output_location_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -RawOutputDataConfig::~RawOutputDataConfig() { - // @@protoc_insertion_point(destructor:flyteidl.admin.RawOutputDataConfig) - SharedDtor(); -} - -void RawOutputDataConfig::SharedDtor() { - output_location_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void RawOutputDataConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RawOutputDataConfig& RawOutputDataConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void RawOutputDataConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.RawOutputDataConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - output_location_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RawOutputDataConfig::_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) { - // string output_location_prefix = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.RawOutputDataConfig.output_location_prefix"); - object = msg->mutable_output_location_prefix(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RawOutputDataConfig::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.RawOutputDataConfig) - 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)) { - // string output_location_prefix = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_location_prefix())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.RawOutputDataConfig.output_location_prefix")); - } 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.RawOutputDataConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.RawOutputDataConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RawOutputDataConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.RawOutputDataConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_location_prefix = 1; - if (this->output_location_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.RawOutputDataConfig.output_location_prefix"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->output_location_prefix(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.RawOutputDataConfig) -} - -::google::protobuf::uint8* RawOutputDataConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.RawOutputDataConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_location_prefix = 1; - if (this->output_location_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_location_prefix().data(), static_cast(this->output_location_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.RawOutputDataConfig.output_location_prefix"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->output_location_prefix(), 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.RawOutputDataConfig) - return target; -} - -size_t RawOutputDataConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.RawOutputDataConfig) - 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; - - // string output_location_prefix = 1; - if (this->output_location_prefix().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_location_prefix()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RawOutputDataConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.RawOutputDataConfig) - GOOGLE_DCHECK_NE(&from, this); - const RawOutputDataConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.RawOutputDataConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.RawOutputDataConfig) - MergeFrom(*source); - } -} - -void RawOutputDataConfig::MergeFrom(const RawOutputDataConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.RawOutputDataConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.output_location_prefix().size() > 0) { - - output_location_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_location_prefix_); - } -} - -void RawOutputDataConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.RawOutputDataConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RawOutputDataConfig::CopyFrom(const RawOutputDataConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.RawOutputDataConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RawOutputDataConfig::IsInitialized() const { - return true; -} - -void RawOutputDataConfig::Swap(RawOutputDataConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void RawOutputDataConfig::InternalSwap(RawOutputDataConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - output_location_prefix_.Swap(&other->output_location_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata RawOutputDataConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void FlyteURLs::InitAsDefaultInstance() { -} -class FlyteURLs::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FlyteURLs::kInputsFieldNumber; -const int FlyteURLs::kOutputsFieldNumber; -const int FlyteURLs::kDeckFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FlyteURLs::FlyteURLs() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.FlyteURLs) -} -FlyteURLs::FlyteURLs(const FlyteURLs& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - inputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.inputs().size() > 0) { - inputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inputs_); - } - outputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.outputs().size() > 0) { - outputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.outputs_); - } - deck_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.deck().size() > 0) { - deck_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.FlyteURLs) -} - -void FlyteURLs::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); - inputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - outputs_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -FlyteURLs::~FlyteURLs() { - // @@protoc_insertion_point(destructor:flyteidl.admin.FlyteURLs) - SharedDtor(); -} - -void FlyteURLs::SharedDtor() { - inputs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - outputs_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void FlyteURLs::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FlyteURLs& FlyteURLs::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void FlyteURLs::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.FlyteURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - inputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - outputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FlyteURLs::_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) { - // string inputs = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.inputs"); - object = msg->mutable_inputs(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string outputs = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.outputs"); - object = msg->mutable_outputs(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string deck = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.FlyteURLs.deck"); - object = msg->mutable_deck(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FlyteURLs::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.FlyteURLs) - 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)) { - // string inputs = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_inputs())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->inputs().data(), static_cast(this->inputs().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.FlyteURLs.inputs")); - } else { - goto handle_unusual; - } - break; - } - - // string outputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_outputs())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->outputs().data(), static_cast(this->outputs().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.FlyteURLs.outputs")); - } else { - goto handle_unusual; - } - break; - } - - // string deck = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_deck())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck().data(), static_cast(this->deck().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.FlyteURLs.deck")); - } 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.FlyteURLs) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.FlyteURLs) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FlyteURLs::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.FlyteURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string inputs = 1; - if (this->inputs().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->inputs().data(), static_cast(this->inputs().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.inputs"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->inputs(), output); - } - - // string outputs = 2; - if (this->outputs().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->outputs().data(), static_cast(this->outputs().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.outputs"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->outputs(), output); - } - - // string deck = 3; - if (this->deck().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck().data(), static_cast(this->deck().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.deck"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->deck(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.FlyteURLs) -} - -::google::protobuf::uint8* FlyteURLs::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.FlyteURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string inputs = 1; - if (this->inputs().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->inputs().data(), static_cast(this->inputs().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.inputs"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->inputs(), target); - } - - // string outputs = 2; - if (this->outputs().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->outputs().data(), static_cast(this->outputs().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.outputs"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->outputs(), target); - } - - // string deck = 3; - if (this->deck().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck().data(), static_cast(this->deck().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.FlyteURLs.deck"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->deck(), 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.FlyteURLs) - return target; -} - -size_t FlyteURLs::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.FlyteURLs) - 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; - - // string inputs = 1; - if (this->inputs().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->inputs()); - } - - // string outputs = 2; - if (this->outputs().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->outputs()); - } - - // string deck = 3; - if (this->deck().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->deck()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FlyteURLs::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.FlyteURLs) - GOOGLE_DCHECK_NE(&from, this); - const FlyteURLs* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.FlyteURLs) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.FlyteURLs) - MergeFrom(*source); - } -} - -void FlyteURLs::MergeFrom(const FlyteURLs& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.FlyteURLs) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.inputs().size() > 0) { - - inputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.inputs_); - } - if (from.outputs().size() > 0) { - - outputs_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.outputs_); - } - if (from.deck().size() > 0) { - - deck_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_); - } -} - -void FlyteURLs::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.FlyteURLs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FlyteURLs::CopyFrom(const FlyteURLs& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.FlyteURLs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FlyteURLs::IsInitialized() const { - return true; -} - -void FlyteURLs::Swap(FlyteURLs* other) { - if (other == this) return; - InternalSwap(other); -} -void FlyteURLs::InternalSwap(FlyteURLs* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - inputs_.Swap(&other->inputs_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - outputs_.Swap(&other->outputs_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - deck_.Swap(&other->deck_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata FlyteURLs::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifier* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifier >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntity* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntity >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntity >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Sort* Arena::CreateMaybeMessage< ::flyteidl::admin::Sort >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Sort >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifierListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifierListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifierListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityIdentifierList* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityIdentifierList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityIdentifierList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityList* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NamedEntityUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NamedEntityUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NamedEntityUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ObjectGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ObjectGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ObjectGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ResourceListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ResourceListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ResourceListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::EmailNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::EmailNotification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::EmailNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::PagerDutyNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::PagerDutyNotification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::PagerDutyNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SlackNotification* Arena::CreateMaybeMessage< ::flyteidl::admin::SlackNotification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SlackNotification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Notification* Arena::CreateMaybeMessage< ::flyteidl::admin::Notification >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Notification >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::UrlBlob* Arena::CreateMaybeMessage< ::flyteidl::admin::UrlBlob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::UrlBlob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Labels_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::Labels_ValuesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Labels_ValuesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Labels* Arena::CreateMaybeMessage< ::flyteidl::admin::Labels >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Labels >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Annotations* Arena::CreateMaybeMessage< ::flyteidl::admin::Annotations >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Annotations >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Envs* Arena::CreateMaybeMessage< ::flyteidl::admin::Envs >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Envs >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::AuthRole* Arena::CreateMaybeMessage< ::flyteidl::admin::AuthRole >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::AuthRole >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::RawOutputDataConfig* Arena::CreateMaybeMessage< ::flyteidl::admin::RawOutputDataConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::RawOutputDataConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::FlyteURLs* Arena::CreateMaybeMessage< ::flyteidl::admin::FlyteURLs >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::FlyteURLs >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h deleted file mode 100644 index b2eb1cb4e5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/common.pb.h +++ /dev/null @@ -1,6137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/common.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/literals.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fcommon_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[26] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto(); -namespace flyteidl { -namespace admin { -class Annotations; -class AnnotationsDefaultTypeInternal; -extern AnnotationsDefaultTypeInternal _Annotations_default_instance_; -class Annotations_ValuesEntry_DoNotUse; -class Annotations_ValuesEntry_DoNotUseDefaultTypeInternal; -extern Annotations_ValuesEntry_DoNotUseDefaultTypeInternal _Annotations_ValuesEntry_DoNotUse_default_instance_; -class AuthRole; -class AuthRoleDefaultTypeInternal; -extern AuthRoleDefaultTypeInternal _AuthRole_default_instance_; -class EmailNotification; -class EmailNotificationDefaultTypeInternal; -extern EmailNotificationDefaultTypeInternal _EmailNotification_default_instance_; -class Envs; -class EnvsDefaultTypeInternal; -extern EnvsDefaultTypeInternal _Envs_default_instance_; -class FlyteURLs; -class FlyteURLsDefaultTypeInternal; -extern FlyteURLsDefaultTypeInternal _FlyteURLs_default_instance_; -class Labels; -class LabelsDefaultTypeInternal; -extern LabelsDefaultTypeInternal _Labels_default_instance_; -class Labels_ValuesEntry_DoNotUse; -class Labels_ValuesEntry_DoNotUseDefaultTypeInternal; -extern Labels_ValuesEntry_DoNotUseDefaultTypeInternal _Labels_ValuesEntry_DoNotUse_default_instance_; -class NamedEntity; -class NamedEntityDefaultTypeInternal; -extern NamedEntityDefaultTypeInternal _NamedEntity_default_instance_; -class NamedEntityGetRequest; -class NamedEntityGetRequestDefaultTypeInternal; -extern NamedEntityGetRequestDefaultTypeInternal _NamedEntityGetRequest_default_instance_; -class NamedEntityIdentifier; -class NamedEntityIdentifierDefaultTypeInternal; -extern NamedEntityIdentifierDefaultTypeInternal _NamedEntityIdentifier_default_instance_; -class NamedEntityIdentifierList; -class NamedEntityIdentifierListDefaultTypeInternal; -extern NamedEntityIdentifierListDefaultTypeInternal _NamedEntityIdentifierList_default_instance_; -class NamedEntityIdentifierListRequest; -class NamedEntityIdentifierListRequestDefaultTypeInternal; -extern NamedEntityIdentifierListRequestDefaultTypeInternal _NamedEntityIdentifierListRequest_default_instance_; -class NamedEntityList; -class NamedEntityListDefaultTypeInternal; -extern NamedEntityListDefaultTypeInternal _NamedEntityList_default_instance_; -class NamedEntityListRequest; -class NamedEntityListRequestDefaultTypeInternal; -extern NamedEntityListRequestDefaultTypeInternal _NamedEntityListRequest_default_instance_; -class NamedEntityMetadata; -class NamedEntityMetadataDefaultTypeInternal; -extern NamedEntityMetadataDefaultTypeInternal _NamedEntityMetadata_default_instance_; -class NamedEntityUpdateRequest; -class NamedEntityUpdateRequestDefaultTypeInternal; -extern NamedEntityUpdateRequestDefaultTypeInternal _NamedEntityUpdateRequest_default_instance_; -class NamedEntityUpdateResponse; -class NamedEntityUpdateResponseDefaultTypeInternal; -extern NamedEntityUpdateResponseDefaultTypeInternal _NamedEntityUpdateResponse_default_instance_; -class Notification; -class NotificationDefaultTypeInternal; -extern NotificationDefaultTypeInternal _Notification_default_instance_; -class ObjectGetRequest; -class ObjectGetRequestDefaultTypeInternal; -extern ObjectGetRequestDefaultTypeInternal _ObjectGetRequest_default_instance_; -class PagerDutyNotification; -class PagerDutyNotificationDefaultTypeInternal; -extern PagerDutyNotificationDefaultTypeInternal _PagerDutyNotification_default_instance_; -class RawOutputDataConfig; -class RawOutputDataConfigDefaultTypeInternal; -extern RawOutputDataConfigDefaultTypeInternal _RawOutputDataConfig_default_instance_; -class ResourceListRequest; -class ResourceListRequestDefaultTypeInternal; -extern ResourceListRequestDefaultTypeInternal _ResourceListRequest_default_instance_; -class SlackNotification; -class SlackNotificationDefaultTypeInternal; -extern SlackNotificationDefaultTypeInternal _SlackNotification_default_instance_; -class Sort; -class SortDefaultTypeInternal; -extern SortDefaultTypeInternal _Sort_default_instance_; -class UrlBlob; -class UrlBlobDefaultTypeInternal; -extern UrlBlobDefaultTypeInternal _UrlBlob_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Annotations* Arena::CreateMaybeMessage<::flyteidl::admin::Annotations>(Arena*); -template<> ::flyteidl::admin::Annotations_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::Annotations_ValuesEntry_DoNotUse>(Arena*); -template<> ::flyteidl::admin::AuthRole* Arena::CreateMaybeMessage<::flyteidl::admin::AuthRole>(Arena*); -template<> ::flyteidl::admin::EmailNotification* Arena::CreateMaybeMessage<::flyteidl::admin::EmailNotification>(Arena*); -template<> ::flyteidl::admin::Envs* Arena::CreateMaybeMessage<::flyteidl::admin::Envs>(Arena*); -template<> ::flyteidl::admin::FlyteURLs* Arena::CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(Arena*); -template<> ::flyteidl::admin::Labels* Arena::CreateMaybeMessage<::flyteidl::admin::Labels>(Arena*); -template<> ::flyteidl::admin::Labels_ValuesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::Labels_ValuesEntry_DoNotUse>(Arena*); -template<> ::flyteidl::admin::NamedEntity* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntity>(Arena*); -template<> ::flyteidl::admin::NamedEntityGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityGetRequest>(Arena*); -template<> ::flyteidl::admin::NamedEntityIdentifier* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(Arena*); -template<> ::flyteidl::admin::NamedEntityIdentifierList* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifierList>(Arena*); -template<> ::flyteidl::admin::NamedEntityIdentifierListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifierListRequest>(Arena*); -template<> ::flyteidl::admin::NamedEntityList* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityList>(Arena*); -template<> ::flyteidl::admin::NamedEntityListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityListRequest>(Arena*); -template<> ::flyteidl::admin::NamedEntityMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(Arena*); -template<> ::flyteidl::admin::NamedEntityUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityUpdateRequest>(Arena*); -template<> ::flyteidl::admin::NamedEntityUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NamedEntityUpdateResponse>(Arena*); -template<> ::flyteidl::admin::Notification* Arena::CreateMaybeMessage<::flyteidl::admin::Notification>(Arena*); -template<> ::flyteidl::admin::ObjectGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ObjectGetRequest>(Arena*); -template<> ::flyteidl::admin::PagerDutyNotification* Arena::CreateMaybeMessage<::flyteidl::admin::PagerDutyNotification>(Arena*); -template<> ::flyteidl::admin::RawOutputDataConfig* Arena::CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(Arena*); -template<> ::flyteidl::admin::ResourceListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ResourceListRequest>(Arena*); -template<> ::flyteidl::admin::SlackNotification* Arena::CreateMaybeMessage<::flyteidl::admin::SlackNotification>(Arena*); -template<> ::flyteidl::admin::Sort* Arena::CreateMaybeMessage<::flyteidl::admin::Sort>(Arena*); -template<> ::flyteidl::admin::UrlBlob* Arena::CreateMaybeMessage<::flyteidl::admin::UrlBlob>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum Sort_Direction { - Sort_Direction_DESCENDING = 0, - Sort_Direction_ASCENDING = 1, - Sort_Direction_Sort_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Sort_Direction_Sort_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Sort_Direction_IsValid(int value); -const Sort_Direction Sort_Direction_Direction_MIN = Sort_Direction_DESCENDING; -const Sort_Direction Sort_Direction_Direction_MAX = Sort_Direction_ASCENDING; -const int Sort_Direction_Direction_ARRAYSIZE = Sort_Direction_Direction_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Sort_Direction_descriptor(); -inline const ::std::string& Sort_Direction_Name(Sort_Direction value) { - return ::google::protobuf::internal::NameOfEnum( - Sort_Direction_descriptor(), value); -} -inline bool Sort_Direction_Parse( - const ::std::string& name, Sort_Direction* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Sort_Direction_descriptor(), name, value); -} -enum NamedEntityState { - NAMED_ENTITY_ACTIVE = 0, - NAMED_ENTITY_ARCHIVED = 1, - SYSTEM_GENERATED = 2, - NamedEntityState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - NamedEntityState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool NamedEntityState_IsValid(int value); -const NamedEntityState NamedEntityState_MIN = NAMED_ENTITY_ACTIVE; -const NamedEntityState NamedEntityState_MAX = SYSTEM_GENERATED; -const int NamedEntityState_ARRAYSIZE = NamedEntityState_MAX + 1; - -const ::google::protobuf::EnumDescriptor* NamedEntityState_descriptor(); -inline const ::std::string& NamedEntityState_Name(NamedEntityState value) { - return ::google::protobuf::internal::NameOfEnum( - NamedEntityState_descriptor(), value); -} -inline bool NamedEntityState_Parse( - const ::std::string& name, NamedEntityState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - NamedEntityState_descriptor(), name, value); -} -// =================================================================== - -class NamedEntityIdentifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifier) */ { - public: - NamedEntityIdentifier(); - virtual ~NamedEntityIdentifier(); - - NamedEntityIdentifier(const NamedEntityIdentifier& from); - - inline NamedEntityIdentifier& operator=(const NamedEntityIdentifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityIdentifier(NamedEntityIdentifier&& from) noexcept - : NamedEntityIdentifier() { - *this = ::std::move(from); - } - - inline NamedEntityIdentifier& operator=(NamedEntityIdentifier&& 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 NamedEntityIdentifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityIdentifier* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityIdentifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(NamedEntityIdentifier* other); - friend void swap(NamedEntityIdentifier& a, NamedEntityIdentifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityIdentifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityIdentifier* 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 NamedEntityIdentifier& from); - void MergeFrom(const NamedEntityIdentifier& 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(NamedEntityIdentifier* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityMetadata) */ { - public: - NamedEntityMetadata(); - virtual ~NamedEntityMetadata(); - - NamedEntityMetadata(const NamedEntityMetadata& from); - - inline NamedEntityMetadata& operator=(const NamedEntityMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityMetadata(NamedEntityMetadata&& from) noexcept - : NamedEntityMetadata() { - *this = ::std::move(from); - } - - inline NamedEntityMetadata& operator=(NamedEntityMetadata&& 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 NamedEntityMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityMetadata* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(NamedEntityMetadata* other); - friend void swap(NamedEntityMetadata& a, NamedEntityMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityMetadata* 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 NamedEntityMetadata& from); - void MergeFrom(const NamedEntityMetadata& 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(NamedEntityMetadata* 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 ------------------------------------------------------- - - // string description = 1; - void clear_description(); - static const int kDescriptionFieldNumber = 1; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - - // .flyteidl.admin.NamedEntityState state = 2; - void clear_state(); - static const int kStateFieldNumber = 2; - ::flyteidl::admin::NamedEntityState state() const; - void set_state(::flyteidl::admin::NamedEntityState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr description_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntity) */ { - public: - NamedEntity(); - virtual ~NamedEntity(); - - NamedEntity(const NamedEntity& from); - - inline NamedEntity& operator=(const NamedEntity& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntity(NamedEntity&& from) noexcept - : NamedEntity() { - *this = ::std::move(from); - } - - inline NamedEntity& operator=(NamedEntity&& 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 NamedEntity& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntity* internal_default_instance() { - return reinterpret_cast( - &_NamedEntity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(NamedEntity* other); - friend void swap(NamedEntity& a, NamedEntity& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntity* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntity* 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 NamedEntity& from); - void MergeFrom(const NamedEntity& 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(NamedEntity* 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.NamedEntityIdentifier id = 2; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 2; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::flyteidl::admin::NamedEntityMetadata& metadata() const; - ::flyteidl::admin::NamedEntityMetadata* release_metadata(); - ::flyteidl::admin::NamedEntityMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - ::flyteidl::admin::NamedEntityMetadata* metadata_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class Sort final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Sort) */ { - public: - Sort(); - virtual ~Sort(); - - Sort(const Sort& from); - - inline Sort& operator=(const Sort& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Sort(Sort&& from) noexcept - : Sort() { - *this = ::std::move(from); - } - - inline Sort& operator=(Sort&& 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 Sort& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Sort* internal_default_instance() { - return reinterpret_cast( - &_Sort_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(Sort* other); - friend void swap(Sort& a, Sort& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Sort* New() const final { - return CreateMaybeMessage(nullptr); - } - - Sort* 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 Sort& from); - void MergeFrom(const Sort& 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(Sort* 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 ---------------------------------------------------- - - typedef Sort_Direction Direction; - static const Direction DESCENDING = - Sort_Direction_DESCENDING; - static const Direction ASCENDING = - Sort_Direction_ASCENDING; - static inline bool Direction_IsValid(int value) { - return Sort_Direction_IsValid(value); - } - static const Direction Direction_MIN = - Sort_Direction_Direction_MIN; - static const Direction Direction_MAX = - Sort_Direction_Direction_MAX; - static const int Direction_ARRAYSIZE = - Sort_Direction_Direction_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Direction_descriptor() { - return Sort_Direction_descriptor(); - } - static inline const ::std::string& Direction_Name(Direction value) { - return Sort_Direction_Name(value); - } - static inline bool Direction_Parse(const ::std::string& name, - Direction* value) { - return Sort_Direction_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // .flyteidl.admin.Sort.Direction direction = 2; - void clear_direction(); - static const int kDirectionFieldNumber = 2; - ::flyteidl::admin::Sort_Direction direction() const; - void set_direction(::flyteidl::admin::Sort_Direction value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - int direction_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityIdentifierListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierListRequest) */ { - public: - NamedEntityIdentifierListRequest(); - virtual ~NamedEntityIdentifierListRequest(); - - NamedEntityIdentifierListRequest(const NamedEntityIdentifierListRequest& from); - - inline NamedEntityIdentifierListRequest& operator=(const NamedEntityIdentifierListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityIdentifierListRequest(NamedEntityIdentifierListRequest&& from) noexcept - : NamedEntityIdentifierListRequest() { - *this = ::std::move(from); - } - - inline NamedEntityIdentifierListRequest& operator=(NamedEntityIdentifierListRequest&& 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 NamedEntityIdentifierListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityIdentifierListRequest* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityIdentifierListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(NamedEntityIdentifierListRequest* other); - friend void swap(NamedEntityIdentifierListRequest& a, NamedEntityIdentifierListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityIdentifierListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityIdentifierListRequest* 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 NamedEntityIdentifierListRequest& from); - void MergeFrom(const NamedEntityIdentifierListRequest& 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(NamedEntityIdentifierListRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string token = 4; - void clear_token(); - static const int kTokenFieldNumber = 4; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 6; - void clear_filters(); - static const int kFiltersFieldNumber = 6; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 3; - void clear_limit(); - static const int kLimitFieldNumber = 3; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityListRequest) */ { - public: - NamedEntityListRequest(); - virtual ~NamedEntityListRequest(); - - NamedEntityListRequest(const NamedEntityListRequest& from); - - inline NamedEntityListRequest& operator=(const NamedEntityListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityListRequest(NamedEntityListRequest&& from) noexcept - : NamedEntityListRequest() { - *this = ::std::move(from); - } - - inline NamedEntityListRequest& operator=(NamedEntityListRequest&& 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 NamedEntityListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityListRequest* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(NamedEntityListRequest* other); - friend void swap(NamedEntityListRequest& a, NamedEntityListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityListRequest* 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 NamedEntityListRequest& from); - void MergeFrom(const NamedEntityListRequest& 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(NamedEntityListRequest* 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 ------------------------------------------------------- - - // string project = 2; - void clear_project(); - static const int kProjectFieldNumber = 2; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 3; - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string token = 5; - void clear_token(); - static const int kTokenFieldNumber = 5; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 7; - void clear_filters(); - static const int kFiltersFieldNumber = 7; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.admin.Sort sort_by = 6; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 6; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // uint32 limit = 4; - void clear_limit(); - static const int kLimitFieldNumber = 4; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::admin::Sort* sort_by_; - int resource_type_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityIdentifierList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityIdentifierList) */ { - public: - NamedEntityIdentifierList(); - virtual ~NamedEntityIdentifierList(); - - NamedEntityIdentifierList(const NamedEntityIdentifierList& from); - - inline NamedEntityIdentifierList& operator=(const NamedEntityIdentifierList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityIdentifierList(NamedEntityIdentifierList&& from) noexcept - : NamedEntityIdentifierList() { - *this = ::std::move(from); - } - - inline NamedEntityIdentifierList& operator=(NamedEntityIdentifierList&& 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 NamedEntityIdentifierList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityIdentifierList* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityIdentifierList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(NamedEntityIdentifierList* other); - friend void swap(NamedEntityIdentifierList& a, NamedEntityIdentifierList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityIdentifierList* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityIdentifierList* 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 NamedEntityIdentifierList& from); - void MergeFrom(const NamedEntityIdentifierList& 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(NamedEntityIdentifierList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - int entities_size() const; - void clear_entities(); - static const int kEntitiesFieldNumber = 1; - ::flyteidl::admin::NamedEntityIdentifier* mutable_entities(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* - mutable_entities(); - const ::flyteidl::admin::NamedEntityIdentifier& entities(int index) const; - ::flyteidl::admin::NamedEntityIdentifier* add_entities(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& - entities() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier > entities_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityList) */ { - public: - NamedEntityList(); - virtual ~NamedEntityList(); - - NamedEntityList(const NamedEntityList& from); - - inline NamedEntityList& operator=(const NamedEntityList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityList(NamedEntityList&& from) noexcept - : NamedEntityList() { - *this = ::std::move(from); - } - - inline NamedEntityList& operator=(NamedEntityList&& 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 NamedEntityList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityList* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(NamedEntityList* other); - friend void swap(NamedEntityList& a, NamedEntityList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityList* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityList* 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 NamedEntityList& from); - void MergeFrom(const NamedEntityList& 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(NamedEntityList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.NamedEntity entities = 1; - int entities_size() const; - void clear_entities(); - static const int kEntitiesFieldNumber = 1; - ::flyteidl::admin::NamedEntity* mutable_entities(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >* - mutable_entities(); - const ::flyteidl::admin::NamedEntity& entities(int index) const; - ::flyteidl::admin::NamedEntity* add_entities(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >& - entities() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity > entities_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityGetRequest) */ { - public: - NamedEntityGetRequest(); - virtual ~NamedEntityGetRequest(); - - NamedEntityGetRequest(const NamedEntityGetRequest& from); - - inline NamedEntityGetRequest& operator=(const NamedEntityGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityGetRequest(NamedEntityGetRequest&& from) noexcept - : NamedEntityGetRequest() { - *this = ::std::move(from); - } - - inline NamedEntityGetRequest& operator=(NamedEntityGetRequest&& 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 NamedEntityGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityGetRequest* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(NamedEntityGetRequest* other); - friend void swap(NamedEntityGetRequest& a, NamedEntityGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityGetRequest* 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 NamedEntityGetRequest& from); - void MergeFrom(const NamedEntityGetRequest& 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(NamedEntityGetRequest* 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.NamedEntityIdentifier id = 2; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 2; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityUpdateRequest) */ { - public: - NamedEntityUpdateRequest(); - virtual ~NamedEntityUpdateRequest(); - - NamedEntityUpdateRequest(const NamedEntityUpdateRequest& from); - - inline NamedEntityUpdateRequest& operator=(const NamedEntityUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityUpdateRequest(NamedEntityUpdateRequest&& from) noexcept - : NamedEntityUpdateRequest() { - *this = ::std::move(from); - } - - inline NamedEntityUpdateRequest& operator=(NamedEntityUpdateRequest&& 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 NamedEntityUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(NamedEntityUpdateRequest* other); - friend void swap(NamedEntityUpdateRequest& a, NamedEntityUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityUpdateRequest* 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 NamedEntityUpdateRequest& from); - void MergeFrom(const NamedEntityUpdateRequest& 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(NamedEntityUpdateRequest* 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.NamedEntityIdentifier id = 2; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 2; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // .flyteidl.admin.NamedEntityMetadata metadata = 3; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::flyteidl::admin::NamedEntityMetadata& metadata() const; - ::flyteidl::admin::NamedEntityMetadata* release_metadata(); - ::flyteidl::admin::NamedEntityMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - ::flyteidl::admin::NamedEntityMetadata* metadata_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class NamedEntityUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NamedEntityUpdateResponse) */ { - public: - NamedEntityUpdateResponse(); - virtual ~NamedEntityUpdateResponse(); - - NamedEntityUpdateResponse(const NamedEntityUpdateResponse& from); - - inline NamedEntityUpdateResponse& operator=(const NamedEntityUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NamedEntityUpdateResponse(NamedEntityUpdateResponse&& from) noexcept - : NamedEntityUpdateResponse() { - *this = ::std::move(from); - } - - inline NamedEntityUpdateResponse& operator=(NamedEntityUpdateResponse&& 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 NamedEntityUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NamedEntityUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_NamedEntityUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(NamedEntityUpdateResponse* other); - friend void swap(NamedEntityUpdateResponse& a, NamedEntityUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NamedEntityUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NamedEntityUpdateResponse* 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 NamedEntityUpdateResponse& from); - void MergeFrom(const NamedEntityUpdateResponse& 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(NamedEntityUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class ObjectGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ObjectGetRequest) */ { - public: - ObjectGetRequest(); - virtual ~ObjectGetRequest(); - - ObjectGetRequest(const ObjectGetRequest& from); - - inline ObjectGetRequest& operator=(const ObjectGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ObjectGetRequest(ObjectGetRequest&& from) noexcept - : ObjectGetRequest() { - *this = ::std::move(from); - } - - inline ObjectGetRequest& operator=(ObjectGetRequest&& 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 ObjectGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ObjectGetRequest* internal_default_instance() { - return reinterpret_cast( - &_ObjectGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(ObjectGetRequest* other); - friend void swap(ObjectGetRequest& a, ObjectGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ObjectGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ObjectGetRequest* 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 ObjectGetRequest& from); - void MergeFrom(const ObjectGetRequest& 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(ObjectGetRequest* 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.ObjectGetRequest) - 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_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class ResourceListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ResourceListRequest) */ { - public: - ResourceListRequest(); - virtual ~ResourceListRequest(); - - ResourceListRequest(const ResourceListRequest& from); - - inline ResourceListRequest& operator=(const ResourceListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResourceListRequest(ResourceListRequest&& from) noexcept - : ResourceListRequest() { - *this = ::std::move(from); - } - - inline ResourceListRequest& operator=(ResourceListRequest&& 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 ResourceListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResourceListRequest* internal_default_instance() { - return reinterpret_cast( - &_ResourceListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(ResourceListRequest* other); - friend void swap(ResourceListRequest& a, ResourceListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResourceListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ResourceListRequest* 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 ResourceListRequest& from); - void MergeFrom(const ResourceListRequest& 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(ResourceListRequest* 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 ------------------------------------------------------- - - // string token = 3; - void clear_token(); - static const int kTokenFieldNumber = 3; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 4; - void clear_filters(); - static const int kFiltersFieldNumber = 4; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.admin.NamedEntityIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class EmailNotification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailNotification) */ { - public: - EmailNotification(); - virtual ~EmailNotification(); - - EmailNotification(const EmailNotification& from); - - inline EmailNotification& operator=(const EmailNotification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EmailNotification(EmailNotification&& from) noexcept - : EmailNotification() { - *this = ::std::move(from); - } - - inline EmailNotification& operator=(EmailNotification&& 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 EmailNotification& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EmailNotification* internal_default_instance() { - return reinterpret_cast( - &_EmailNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(EmailNotification* other); - friend void swap(EmailNotification& a, EmailNotification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EmailNotification* New() const final { - return CreateMaybeMessage(nullptr); - } - - EmailNotification* 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 EmailNotification& from); - void MergeFrom(const EmailNotification& 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(EmailNotification* 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 ------------------------------------------------------- - - // repeated string recipients_email = 1; - int recipients_email_size() const; - void clear_recipients_email(); - static const int kRecipientsEmailFieldNumber = 1; - const ::std::string& recipients_email(int index) const; - ::std::string* mutable_recipients_email(int index); - void set_recipients_email(int index, const ::std::string& value); - #if LANG_CXX11 - void set_recipients_email(int index, ::std::string&& value); - #endif - void set_recipients_email(int index, const char* value); - void set_recipients_email(int index, const char* value, size_t size); - ::std::string* add_recipients_email(); - void add_recipients_email(const ::std::string& value); - #if LANG_CXX11 - void add_recipients_email(::std::string&& value); - #endif - void add_recipients_email(const char* value); - void add_recipients_email(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class PagerDutyNotification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PagerDutyNotification) */ { - public: - PagerDutyNotification(); - virtual ~PagerDutyNotification(); - - PagerDutyNotification(const PagerDutyNotification& from); - - inline PagerDutyNotification& operator=(const PagerDutyNotification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PagerDutyNotification(PagerDutyNotification&& from) noexcept - : PagerDutyNotification() { - *this = ::std::move(from); - } - - inline PagerDutyNotification& operator=(PagerDutyNotification&& 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 PagerDutyNotification& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PagerDutyNotification* internal_default_instance() { - return reinterpret_cast( - &_PagerDutyNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(PagerDutyNotification* other); - friend void swap(PagerDutyNotification& a, PagerDutyNotification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PagerDutyNotification* New() const final { - return CreateMaybeMessage(nullptr); - } - - PagerDutyNotification* 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 PagerDutyNotification& from); - void MergeFrom(const PagerDutyNotification& 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(PagerDutyNotification* 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 ------------------------------------------------------- - - // repeated string recipients_email = 1; - int recipients_email_size() const; - void clear_recipients_email(); - static const int kRecipientsEmailFieldNumber = 1; - const ::std::string& recipients_email(int index) const; - ::std::string* mutable_recipients_email(int index); - void set_recipients_email(int index, const ::std::string& value); - #if LANG_CXX11 - void set_recipients_email(int index, ::std::string&& value); - #endif - void set_recipients_email(int index, const char* value); - void set_recipients_email(int index, const char* value, size_t size); - ::std::string* add_recipients_email(); - void add_recipients_email(const ::std::string& value); - #if LANG_CXX11 - void add_recipients_email(::std::string&& value); - #endif - void add_recipients_email(const char* value); - void add_recipients_email(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class SlackNotification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SlackNotification) */ { - public: - SlackNotification(); - virtual ~SlackNotification(); - - SlackNotification(const SlackNotification& from); - - inline SlackNotification& operator=(const SlackNotification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SlackNotification(SlackNotification&& from) noexcept - : SlackNotification() { - *this = ::std::move(from); - } - - inline SlackNotification& operator=(SlackNotification&& 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 SlackNotification& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SlackNotification* internal_default_instance() { - return reinterpret_cast( - &_SlackNotification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(SlackNotification* other); - friend void swap(SlackNotification& a, SlackNotification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SlackNotification* New() const final { - return CreateMaybeMessage(nullptr); - } - - SlackNotification* 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 SlackNotification& from); - void MergeFrom(const SlackNotification& 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(SlackNotification* 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 ------------------------------------------------------- - - // repeated string recipients_email = 1; - int recipients_email_size() const; - void clear_recipients_email(); - static const int kRecipientsEmailFieldNumber = 1; - const ::std::string& recipients_email(int index) const; - ::std::string* mutable_recipients_email(int index); - void set_recipients_email(int index, const ::std::string& value); - #if LANG_CXX11 - void set_recipients_email(int index, ::std::string&& value); - #endif - void set_recipients_email(int index, const char* value); - void set_recipients_email(int index, const char* value, size_t size); - ::std::string* add_recipients_email(); - void add_recipients_email(const ::std::string& value); - #if LANG_CXX11 - void add_recipients_email(::std::string&& value); - #endif - void add_recipients_email(const char* value); - void add_recipients_email(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class Notification final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Notification) */ { - public: - Notification(); - virtual ~Notification(); - - Notification(const Notification& from); - - inline Notification& operator=(const Notification& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Notification(Notification&& from) noexcept - : Notification() { - *this = ::std::move(from); - } - - inline Notification& operator=(Notification&& 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 Notification& default_instance(); - - enum TypeCase { - kEmail = 2, - kPagerDuty = 3, - kSlack = 4, - TYPE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Notification* internal_default_instance() { - return reinterpret_cast( - &_Notification_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(Notification* other); - friend void swap(Notification& a, Notification& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Notification* New() const final { - return CreateMaybeMessage(nullptr); - } - - Notification* 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 Notification& from); - void MergeFrom(const Notification& 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(Notification* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - int phases_size() const; - void clear_phases(); - static const int kPhasesFieldNumber = 1; - ::flyteidl::core::WorkflowExecution_Phase phases(int index) const; - void set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value); - void add_phases(::flyteidl::core::WorkflowExecution_Phase value); - const ::google::protobuf::RepeatedField& phases() const; - ::google::protobuf::RepeatedField* mutable_phases(); - - // .flyteidl.admin.EmailNotification email = 2; - bool has_email() const; - void clear_email(); - static const int kEmailFieldNumber = 2; - const ::flyteidl::admin::EmailNotification& email() const; - ::flyteidl::admin::EmailNotification* release_email(); - ::flyteidl::admin::EmailNotification* mutable_email(); - void set_allocated_email(::flyteidl::admin::EmailNotification* email); - - // .flyteidl.admin.PagerDutyNotification pager_duty = 3; - bool has_pager_duty() const; - void clear_pager_duty(); - static const int kPagerDutyFieldNumber = 3; - const ::flyteidl::admin::PagerDutyNotification& pager_duty() const; - ::flyteidl::admin::PagerDutyNotification* release_pager_duty(); - ::flyteidl::admin::PagerDutyNotification* mutable_pager_duty(); - void set_allocated_pager_duty(::flyteidl::admin::PagerDutyNotification* pager_duty); - - // .flyteidl.admin.SlackNotification slack = 4; - bool has_slack() const; - void clear_slack(); - static const int kSlackFieldNumber = 4; - const ::flyteidl::admin::SlackNotification& slack() const; - ::flyteidl::admin::SlackNotification* release_slack(); - ::flyteidl::admin::SlackNotification* mutable_slack(); - void set_allocated_slack(::flyteidl::admin::SlackNotification* slack); - - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) - private: - class HasBitSetters; - void set_has_email(); - void set_has_pager_duty(); - void set_has_slack(); - - inline bool has_type() const; - inline void clear_has_type(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedField phases_; - mutable std::atomic _phases_cached_byte_size_; - union TypeUnion { - TypeUnion() {} - ::flyteidl::admin::EmailNotification* email_; - ::flyteidl::admin::PagerDutyNotification* pager_duty_; - ::flyteidl::admin::SlackNotification* slack_; - } type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class UrlBlob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.UrlBlob) */ { - public: - UrlBlob(); - virtual ~UrlBlob(); - - UrlBlob(const UrlBlob& from); - - inline UrlBlob& operator=(const UrlBlob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UrlBlob(UrlBlob&& from) noexcept - : UrlBlob() { - *this = ::std::move(from); - } - - inline UrlBlob& operator=(UrlBlob&& 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 UrlBlob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UrlBlob* internal_default_instance() { - return reinterpret_cast( - &_UrlBlob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(UrlBlob* other); - friend void swap(UrlBlob& a, UrlBlob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UrlBlob* New() const final { - return CreateMaybeMessage(nullptr); - } - - UrlBlob* 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 UrlBlob& from); - void MergeFrom(const UrlBlob& 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(UrlBlob* 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 ------------------------------------------------------- - - // string url = 1; - void clear_url(); - static const int kUrlFieldNumber = 1; - const ::std::string& url() const; - void set_url(const ::std::string& value); - #if LANG_CXX11 - void set_url(::std::string&& value); - #endif - void set_url(const char* value); - void set_url(const char* value, size_t size); - ::std::string* mutable_url(); - ::std::string* release_url(); - void set_allocated_url(::std::string* url); - - // int64 bytes = 2; - void clear_bytes(); - static const int kBytesFieldNumber = 2; - ::google::protobuf::int64 bytes() const; - void set_bytes(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr url_; - ::google::protobuf::int64 bytes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class Labels_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Labels_ValuesEntry_DoNotUse(); - Labels_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Labels_ValuesEntry_DoNotUse& other); - static const Labels_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Labels_ValuesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Labels final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Labels) */ { - public: - Labels(); - virtual ~Labels(); - - Labels(const Labels& from); - - inline Labels& operator=(const Labels& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Labels(Labels&& from) noexcept - : Labels() { - *this = ::std::move(from); - } - - inline Labels& operator=(Labels&& 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 Labels& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Labels* internal_default_instance() { - return reinterpret_cast( - &_Labels_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(Labels* other); - friend void swap(Labels& a, Labels& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Labels* New() const final { - return CreateMaybeMessage(nullptr); - } - - Labels* 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 Labels& from); - void MergeFrom(const Labels& 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(Labels* 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 ------------------------------------------------------- - - // map values = 1; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - values() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_values(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Labels_ValuesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class Annotations_ValuesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Annotations_ValuesEntry_DoNotUse(); - Annotations_ValuesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Annotations_ValuesEntry_DoNotUse& other); - static const Annotations_ValuesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Annotations_ValuesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Annotations final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Annotations) */ { - public: - Annotations(); - virtual ~Annotations(); - - Annotations(const Annotations& from); - - inline Annotations& operator=(const Annotations& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Annotations(Annotations&& from) noexcept - : Annotations() { - *this = ::std::move(from); - } - - inline Annotations& operator=(Annotations&& 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 Annotations& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Annotations* internal_default_instance() { - return reinterpret_cast( - &_Annotations_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(Annotations* other); - friend void swap(Annotations& a, Annotations& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Annotations* New() const final { - return CreateMaybeMessage(nullptr); - } - - Annotations* 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 Annotations& from); - void MergeFrom(const Annotations& 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(Annotations* 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 ------------------------------------------------------- - - // map values = 1; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - values() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_values(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Annotations_ValuesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class Envs final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Envs) */ { - public: - Envs(); - virtual ~Envs(); - - Envs(const Envs& from); - - inline Envs& operator=(const Envs& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Envs(Envs&& from) noexcept - : Envs() { - *this = ::std::move(from); - } - - inline Envs& operator=(Envs&& 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 Envs& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Envs* internal_default_instance() { - return reinterpret_cast( - &_Envs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(Envs* other); - friend void swap(Envs& a, Envs& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Envs* New() const final { - return CreateMaybeMessage(nullptr); - } - - Envs* 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 Envs& from); - void MergeFrom(const Envs& 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(Envs* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.KeyValuePair values = 1; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 1; - ::flyteidl::core::KeyValuePair* mutable_values(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* - mutable_values(); - const ::flyteidl::core::KeyValuePair& values(int index) const; - ::flyteidl::core::KeyValuePair* add_values(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& - values() const; - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Envs) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class AuthRole final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.AuthRole) */ { - public: - AuthRole(); - virtual ~AuthRole(); - - AuthRole(const AuthRole& from); - - inline AuthRole& operator=(const AuthRole& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AuthRole(AuthRole&& from) noexcept - : AuthRole() { - *this = ::std::move(from); - } - - inline AuthRole& operator=(AuthRole&& 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 AuthRole& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AuthRole* internal_default_instance() { - return reinterpret_cast( - &_AuthRole_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - void Swap(AuthRole* other); - friend void swap(AuthRole& a, AuthRole& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AuthRole* New() const final { - return CreateMaybeMessage(nullptr); - } - - AuthRole* 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 AuthRole& from); - void MergeFrom(const AuthRole& 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(AuthRole* 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 ------------------------------------------------------- - - // string assumable_iam_role = 1; - void clear_assumable_iam_role(); - static const int kAssumableIamRoleFieldNumber = 1; - const ::std::string& assumable_iam_role() const; - void set_assumable_iam_role(const ::std::string& value); - #if LANG_CXX11 - void set_assumable_iam_role(::std::string&& value); - #endif - void set_assumable_iam_role(const char* value); - void set_assumable_iam_role(const char* value, size_t size); - ::std::string* mutable_assumable_iam_role(); - ::std::string* release_assumable_iam_role(); - void set_allocated_assumable_iam_role(::std::string* assumable_iam_role); - - // string kubernetes_service_account = 2; - void clear_kubernetes_service_account(); - static const int kKubernetesServiceAccountFieldNumber = 2; - const ::std::string& kubernetes_service_account() const; - void set_kubernetes_service_account(const ::std::string& value); - #if LANG_CXX11 - void set_kubernetes_service_account(::std::string&& value); - #endif - void set_kubernetes_service_account(const char* value); - void set_kubernetes_service_account(const char* value, size_t size); - ::std::string* mutable_kubernetes_service_account(); - ::std::string* release_kubernetes_service_account(); - void set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; - ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class RawOutputDataConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.RawOutputDataConfig) */ { - public: - RawOutputDataConfig(); - virtual ~RawOutputDataConfig(); - - RawOutputDataConfig(const RawOutputDataConfig& from); - - inline RawOutputDataConfig& operator=(const RawOutputDataConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RawOutputDataConfig(RawOutputDataConfig&& from) noexcept - : RawOutputDataConfig() { - *this = ::std::move(from); - } - - inline RawOutputDataConfig& operator=(RawOutputDataConfig&& 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 RawOutputDataConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RawOutputDataConfig* internal_default_instance() { - return reinterpret_cast( - &_RawOutputDataConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void Swap(RawOutputDataConfig* other); - friend void swap(RawOutputDataConfig& a, RawOutputDataConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RawOutputDataConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - RawOutputDataConfig* 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 RawOutputDataConfig& from); - void MergeFrom(const RawOutputDataConfig& 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(RawOutputDataConfig* 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 ------------------------------------------------------- - - // string output_location_prefix = 1; - void clear_output_location_prefix(); - static const int kOutputLocationPrefixFieldNumber = 1; - const ::std::string& output_location_prefix() const; - void set_output_location_prefix(const ::std::string& value); - #if LANG_CXX11 - void set_output_location_prefix(::std::string&& value); - #endif - void set_output_location_prefix(const char* value); - void set_output_location_prefix(const char* value, size_t size); - ::std::string* mutable_output_location_prefix(); - ::std::string* release_output_location_prefix(); - void set_allocated_output_location_prefix(::std::string* output_location_prefix); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.RawOutputDataConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr output_location_prefix_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - -class FlyteURLs final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.FlyteURLs) */ { - public: - FlyteURLs(); - virtual ~FlyteURLs(); - - FlyteURLs(const FlyteURLs& from); - - inline FlyteURLs& operator=(const FlyteURLs& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FlyteURLs(FlyteURLs&& from) noexcept - : FlyteURLs() { - *this = ::std::move(from); - } - - inline FlyteURLs& operator=(FlyteURLs&& 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 FlyteURLs& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FlyteURLs* internal_default_instance() { - return reinterpret_cast( - &_FlyteURLs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - void Swap(FlyteURLs* other); - friend void swap(FlyteURLs& a, FlyteURLs& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FlyteURLs* New() const final { - return CreateMaybeMessage(nullptr); - } - - FlyteURLs* 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 FlyteURLs& from); - void MergeFrom(const FlyteURLs& 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(FlyteURLs* 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 ------------------------------------------------------- - - // string inputs = 1; - void clear_inputs(); - static const int kInputsFieldNumber = 1; - const ::std::string& inputs() const; - void set_inputs(const ::std::string& value); - #if LANG_CXX11 - void set_inputs(::std::string&& value); - #endif - void set_inputs(const char* value); - void set_inputs(const char* value, size_t size); - ::std::string* mutable_inputs(); - ::std::string* release_inputs(); - void set_allocated_inputs(::std::string* inputs); - - // string outputs = 2; - void clear_outputs(); - static const int kOutputsFieldNumber = 2; - const ::std::string& outputs() const; - void set_outputs(const ::std::string& value); - #if LANG_CXX11 - void set_outputs(::std::string&& value); - #endif - void set_outputs(const char* value); - void set_outputs(const char* value, size_t size); - ::std::string* mutable_outputs(); - ::std::string* release_outputs(); - void set_allocated_outputs(::std::string* outputs); - - // string deck = 3; - void clear_deck(); - static const int kDeckFieldNumber = 3; - const ::std::string& deck() const; - void set_deck(const ::std::string& value); - #if LANG_CXX11 - void set_deck(::std::string&& value); - #endif - void set_deck(const char* value); - void set_deck(const char* value, size_t size); - ::std::string* mutable_deck(); - ::std::string* release_deck(); - void set_allocated_deck(::std::string* deck); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FlyteURLs) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr inputs_; - ::google::protobuf::internal::ArenaStringPtr outputs_; - ::google::protobuf::internal::ArenaStringPtr deck_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fcommon_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// NamedEntityIdentifier - -// string project = 1; -inline void NamedEntityIdentifier::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifier::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.project) - return project_.GetNoArena(); -} -inline void NamedEntityIdentifier::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.project) -} -#if LANG_CXX11 -inline void NamedEntityIdentifier::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.project) -} -#endif -inline void NamedEntityIdentifier::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.project) -} -inline void NamedEntityIdentifier::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.project) -} -inline ::std::string* NamedEntityIdentifier::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifier::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifier::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.project) -} - -// string domain = 2; -inline void NamedEntityIdentifier::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifier::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.domain) - return domain_.GetNoArena(); -} -inline void NamedEntityIdentifier::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.domain) -} -#if LANG_CXX11 -inline void NamedEntityIdentifier::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.domain) -} -#endif -inline void NamedEntityIdentifier::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.domain) -} -inline void NamedEntityIdentifier::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.domain) -} -inline ::std::string* NamedEntityIdentifier::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifier::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifier::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.domain) -} - -// string name = 3; -inline void NamedEntityIdentifier::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifier::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifier.name) - return name_.GetNoArena(); -} -inline void NamedEntityIdentifier::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifier.name) -} -#if LANG_CXX11 -inline void NamedEntityIdentifier::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifier.name) -} -#endif -inline void NamedEntityIdentifier::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifier.name) -} -inline void NamedEntityIdentifier::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifier.name) -} -inline ::std::string* NamedEntityIdentifier::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifier.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifier::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifier.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifier::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifier.name) -} - -// ------------------------------------------------------------------- - -// NamedEntityMetadata - -// string description = 1; -inline void NamedEntityMetadata::clear_description() { - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityMetadata::description() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityMetadata.description) - return description_.GetNoArena(); -} -inline void NamedEntityMetadata::set_description(const ::std::string& value) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityMetadata.description) -} -#if LANG_CXX11 -inline void NamedEntityMetadata::set_description(::std::string&& value) { - - description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityMetadata.description) -} -#endif -inline void NamedEntityMetadata::set_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityMetadata.description) -} -inline void NamedEntityMetadata::set_description(const char* value, size_t size) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityMetadata.description) -} -inline ::std::string* NamedEntityMetadata::mutable_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityMetadata.description) - return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityMetadata::release_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityMetadata.description) - - return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityMetadata::set_allocated_description(::std::string* description) { - if (description != nullptr) { - - } else { - - } - description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityMetadata.description) -} - -// .flyteidl.admin.NamedEntityState state = 2; -inline void NamedEntityMetadata::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::NamedEntityState NamedEntityMetadata::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityMetadata.state) - return static_cast< ::flyteidl::admin::NamedEntityState >(state_); -} -inline void NamedEntityMetadata::set_state(::flyteidl::admin::NamedEntityState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityMetadata.state) -} - -// ------------------------------------------------------------------- - -// NamedEntity - -// .flyteidl.core.ResourceType resource_type = 1; -inline void NamedEntity::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType NamedEntity::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void NamedEntity::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntity.resource_type) -} - -// .flyteidl.admin.NamedEntityIdentifier id = 2; -inline bool NamedEntity::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline void NamedEntity::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntity::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntity::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntity.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntity::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntity.id) - return id_; -} -inline void NamedEntity::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete 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.NamedEntity.id) -} - -// .flyteidl.admin.NamedEntityMetadata metadata = 3; -inline bool NamedEntity::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void NamedEntity::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityMetadata& NamedEntity::metadata() const { - const ::flyteidl::admin::NamedEntityMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntity.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityMetadata_default_instance_); -} -inline ::flyteidl::admin::NamedEntityMetadata* NamedEntity::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntity.metadata) - - ::flyteidl::admin::NamedEntityMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityMetadata* NamedEntity::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntity.metadata) - return metadata_; -} -inline void NamedEntity::set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntity.metadata) -} - -// ------------------------------------------------------------------- - -// Sort - -// string key = 1; -inline void Sort::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Sort::key() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.key) - return key_.GetNoArena(); -} -inline void Sort::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.key) -} -#if LANG_CXX11 -inline void Sort::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Sort.key) -} -#endif -inline void Sort::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Sort.key) -} -inline void Sort::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Sort.key) -} -inline ::std::string* Sort::mutable_key() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Sort.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Sort::release_key() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Sort.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Sort::set_allocated_key(::std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Sort.key) -} - -// .flyteidl.admin.Sort.Direction direction = 2; -inline void Sort::clear_direction() { - direction_ = 0; -} -inline ::flyteidl::admin::Sort_Direction Sort::direction() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Sort.direction) - return static_cast< ::flyteidl::admin::Sort_Direction >(direction_); -} -inline void Sort::set_direction(::flyteidl::admin::Sort_Direction value) { - - direction_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.Sort.direction) -} - -// ------------------------------------------------------------------- - -// NamedEntityIdentifierListRequest - -// string project = 1; -inline void NamedEntityIdentifierListRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifierListRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.project) - return project_.GetNoArena(); -} -inline void NamedEntityIdentifierListRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.project) -} -#if LANG_CXX11 -inline void NamedEntityIdentifierListRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.project) -} -#endif -inline void NamedEntityIdentifierListRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.project) -} -inline void NamedEntityIdentifierListRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.project) -} -inline ::std::string* NamedEntityIdentifierListRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifierListRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifierListRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.project) -} - -// string domain = 2; -inline void NamedEntityIdentifierListRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifierListRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.domain) - return domain_.GetNoArena(); -} -inline void NamedEntityIdentifierListRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.domain) -} -#if LANG_CXX11 -inline void NamedEntityIdentifierListRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.domain) -} -#endif -inline void NamedEntityIdentifierListRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.domain) -} -inline void NamedEntityIdentifierListRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.domain) -} -inline ::std::string* NamedEntityIdentifierListRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifierListRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifierListRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.domain) -} - -// uint32 limit = 3; -inline void NamedEntityIdentifierListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 NamedEntityIdentifierListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.limit) - return limit_; -} -inline void NamedEntityIdentifierListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.limit) -} - -// string token = 4; -inline void NamedEntityIdentifierListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifierListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.token) - return token_.GetNoArena(); -} -inline void NamedEntityIdentifierListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.token) -} -#if LANG_CXX11 -inline void NamedEntityIdentifierListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.token) -} -#endif -inline void NamedEntityIdentifierListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.token) -} -inline void NamedEntityIdentifierListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.token) -} -inline ::std::string* NamedEntityIdentifierListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifierListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifierListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.token) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool NamedEntityIdentifierListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline void NamedEntityIdentifierListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -inline const ::flyteidl::admin::Sort& NamedEntityIdentifierListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* NamedEntityIdentifierListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) - return sort_by_; -} -inline void NamedEntityIdentifierListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete sort_by_; - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.sort_by) -} - -// string filters = 6; -inline void NamedEntityIdentifierListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifierListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierListRequest.filters) - return filters_.GetNoArena(); -} -inline void NamedEntityIdentifierListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierListRequest.filters) -} -#if LANG_CXX11 -inline void NamedEntityIdentifierListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierListRequest.filters) -} -#endif -inline void NamedEntityIdentifierListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierListRequest.filters) -} -inline void NamedEntityIdentifierListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierListRequest.filters) -} -inline ::std::string* NamedEntityIdentifierListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifierListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifierListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierListRequest.filters) -} - -// ------------------------------------------------------------------- - -// NamedEntityListRequest - -// .flyteidl.core.ResourceType resource_type = 1; -inline void NamedEntityListRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType NamedEntityListRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void NamedEntityListRequest::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.resource_type) -} - -// string project = 2; -inline void NamedEntityListRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityListRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.project) - return project_.GetNoArena(); -} -inline void NamedEntityListRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.project) -} -#if LANG_CXX11 -inline void NamedEntityListRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.project) -} -#endif -inline void NamedEntityListRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.project) -} -inline void NamedEntityListRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.project) -} -inline ::std::string* NamedEntityListRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityListRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityListRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.project) -} - -// string domain = 3; -inline void NamedEntityListRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityListRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.domain) - return domain_.GetNoArena(); -} -inline void NamedEntityListRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.domain) -} -#if LANG_CXX11 -inline void NamedEntityListRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.domain) -} -#endif -inline void NamedEntityListRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.domain) -} -inline void NamedEntityListRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.domain) -} -inline ::std::string* NamedEntityListRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityListRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityListRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.domain) -} - -// uint32 limit = 4; -inline void NamedEntityListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 NamedEntityListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.limit) - return limit_; -} -inline void NamedEntityListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.limit) -} - -// string token = 5; -inline void NamedEntityListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.token) - return token_.GetNoArena(); -} -inline void NamedEntityListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.token) -} -#if LANG_CXX11 -inline void NamedEntityListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.token) -} -#endif -inline void NamedEntityListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.token) -} -inline void NamedEntityListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.token) -} -inline ::std::string* NamedEntityListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.token) -} - -// .flyteidl.admin.Sort sort_by = 6; -inline bool NamedEntityListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline void NamedEntityListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -inline const ::flyteidl::admin::Sort& NamedEntityListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* NamedEntityListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* NamedEntityListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.sort_by) - return sort_by_; -} -inline void NamedEntityListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete sort_by_; - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.sort_by) -} - -// string filters = 7; -inline void NamedEntityListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityListRequest.filters) - return filters_.GetNoArena(); -} -inline void NamedEntityListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityListRequest.filters) -} -#if LANG_CXX11 -inline void NamedEntityListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityListRequest.filters) -} -#endif -inline void NamedEntityListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityListRequest.filters) -} -inline void NamedEntityListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityListRequest.filters) -} -inline ::std::string* NamedEntityListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityListRequest.filters) -} - -// ------------------------------------------------------------------- - -// NamedEntityIdentifierList - -// repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; -inline int NamedEntityIdentifierList::entities_size() const { - return entities_.size(); -} -inline void NamedEntityIdentifierList::clear_entities() { - entities_.Clear(); -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::mutable_entities(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.entities) - return entities_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >* -NamedEntityIdentifierList::mutable_entities() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NamedEntityIdentifierList.entities) - return &entities_; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityIdentifierList::entities(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.entities) - return entities_.Get(index); -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityIdentifierList::add_entities() { - // @@protoc_insertion_point(field_add:flyteidl.admin.NamedEntityIdentifierList.entities) - return entities_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntityIdentifier >& -NamedEntityIdentifierList::entities() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.NamedEntityIdentifierList.entities) - return entities_; -} - -// string token = 2; -inline void NamedEntityIdentifierList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityIdentifierList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityIdentifierList.token) - return token_.GetNoArena(); -} -inline void NamedEntityIdentifierList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityIdentifierList.token) -} -#if LANG_CXX11 -inline void NamedEntityIdentifierList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityIdentifierList.token) -} -#endif -inline void NamedEntityIdentifierList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityIdentifierList.token) -} -inline void NamedEntityIdentifierList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityIdentifierList.token) -} -inline ::std::string* NamedEntityIdentifierList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityIdentifierList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityIdentifierList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityIdentifierList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityIdentifierList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityIdentifierList.token) -} - -// ------------------------------------------------------------------- - -// NamedEntityList - -// repeated .flyteidl.admin.NamedEntity entities = 1; -inline int NamedEntityList::entities_size() const { - return entities_.size(); -} -inline void NamedEntityList::clear_entities() { - entities_.Clear(); -} -inline ::flyteidl::admin::NamedEntity* NamedEntityList::mutable_entities(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityList.entities) - return entities_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >* -NamedEntityList::mutable_entities() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NamedEntityList.entities) - return &entities_; -} -inline const ::flyteidl::admin::NamedEntity& NamedEntityList::entities(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityList.entities) - return entities_.Get(index); -} -inline ::flyteidl::admin::NamedEntity* NamedEntityList::add_entities() { - // @@protoc_insertion_point(field_add:flyteidl.admin.NamedEntityList.entities) - return entities_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NamedEntity >& -NamedEntityList::entities() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.NamedEntityList.entities) - return entities_; -} - -// string token = 2; -inline void NamedEntityList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NamedEntityList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityList.token) - return token_.GetNoArena(); -} -inline void NamedEntityList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityList.token) -} -#if LANG_CXX11 -inline void NamedEntityList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NamedEntityList.token) -} -#endif -inline void NamedEntityList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NamedEntityList.token) -} -inline void NamedEntityList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NamedEntityList.token) -} -inline ::std::string* NamedEntityList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NamedEntityList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NamedEntityList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityList.token) -} - -// ------------------------------------------------------------------- - -// NamedEntityGetRequest - -// .flyteidl.core.ResourceType resource_type = 1; -inline void NamedEntityGetRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType NamedEntityGetRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityGetRequest.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void NamedEntityGetRequest::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityGetRequest.resource_type) -} - -// .flyteidl.admin.NamedEntityIdentifier id = 2; -inline bool NamedEntityGetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline void NamedEntityGetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityGetRequest::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityGetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityGetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityGetRequest.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityGetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityGetRequest.id) - return id_; -} -inline void NamedEntityGetRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete 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.NamedEntityGetRequest.id) -} - -// ------------------------------------------------------------------- - -// NamedEntityUpdateRequest - -// .flyteidl.core.ResourceType resource_type = 1; -inline void NamedEntityUpdateRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType NamedEntityUpdateRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void NamedEntityUpdateRequest::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NamedEntityUpdateRequest.resource_type) -} - -// .flyteidl.admin.NamedEntityIdentifier id = 2; -inline bool NamedEntityUpdateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline void NamedEntityUpdateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& NamedEntityUpdateRequest::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityUpdateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityUpdateRequest.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* NamedEntityUpdateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityUpdateRequest.id) - return id_; -} -inline void NamedEntityUpdateRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete 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.NamedEntityUpdateRequest.id) -} - -// .flyteidl.admin.NamedEntityMetadata metadata = 3; -inline bool NamedEntityUpdateRequest::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void NamedEntityUpdateRequest::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityMetadata& NamedEntityUpdateRequest::metadata() const { - const ::flyteidl::admin::NamedEntityMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NamedEntityUpdateRequest.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityMetadata_default_instance_); -} -inline ::flyteidl::admin::NamedEntityMetadata* NamedEntityUpdateRequest::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NamedEntityUpdateRequest.metadata) - - ::flyteidl::admin::NamedEntityMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityMetadata* NamedEntityUpdateRequest::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NamedEntityUpdateRequest.metadata) - return metadata_; -} -inline void NamedEntityUpdateRequest::set_allocated_metadata(::flyteidl::admin::NamedEntityMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NamedEntityUpdateRequest.metadata) -} - -// ------------------------------------------------------------------- - -// NamedEntityUpdateResponse - -// ------------------------------------------------------------------- - -// ObjectGetRequest - -// .flyteidl.core.Identifier id = 1; -inline bool ObjectGetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ObjectGetRequest::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ObjectGetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ObjectGetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ObjectGetRequest.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ObjectGetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ObjectGetRequest.id) - return id_; -} -inline void ObjectGetRequest::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.ObjectGetRequest.id) -} - -// ------------------------------------------------------------------- - -// ResourceListRequest - -// .flyteidl.admin.NamedEntityIdentifier id = 1; -inline bool ResourceListRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline void ResourceListRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& ResourceListRequest::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* ResourceListRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.id) - return id_; -} -inline void ResourceListRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete 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.ResourceListRequest.id) -} - -// uint32 limit = 2; -inline void ResourceListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 ResourceListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.limit) - return limit_; -} -inline void ResourceListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.limit) -} - -// string token = 3; -inline void ResourceListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourceListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.token) - return token_.GetNoArena(); -} -inline void ResourceListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.token) -} -#if LANG_CXX11 -inline void ResourceListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.token) -} -#endif -inline void ResourceListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.token) -} -inline void ResourceListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.token) -} -inline ::std::string* ResourceListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourceListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourceListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.token) -} - -// string filters = 4; -inline void ResourceListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourceListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.filters) - return filters_.GetNoArena(); -} -inline void ResourceListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ResourceListRequest.filters) -} -#if LANG_CXX11 -inline void ResourceListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ResourceListRequest.filters) -} -#endif -inline void ResourceListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ResourceListRequest.filters) -} -inline void ResourceListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ResourceListRequest.filters) -} -inline ::std::string* ResourceListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourceListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourceListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool ResourceListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline void ResourceListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -inline const ::flyteidl::admin::Sort& ResourceListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ResourceListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* ResourceListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ResourceListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* ResourceListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ResourceListRequest.sort_by) - return sort_by_; -} -inline void ResourceListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete sort_by_; - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ResourceListRequest.sort_by) -} - -// ------------------------------------------------------------------- - -// EmailNotification - -// repeated string recipients_email = 1; -inline int EmailNotification::recipients_email_size() const { - return recipients_email_.size(); -} -inline void EmailNotification::clear_recipients_email() { - recipients_email_.Clear(); -} -inline const ::std::string& EmailNotification::recipients_email(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EmailNotification.recipients_email) - return recipients_email_.Get(index); -} -inline ::std::string* EmailNotification::mutable_recipients_email(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailNotification.recipients_email) - return recipients_email_.Mutable(index); -} -inline void EmailNotification::set_recipients_email(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) - recipients_email_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void EmailNotification::set_recipients_email(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailNotification.recipients_email) - recipients_email_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void EmailNotification::set_recipients_email(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailNotification.recipients_email) -} -inline void EmailNotification::set_recipients_email(int index, const char* value, size_t size) { - recipients_email_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailNotification.recipients_email) -} -inline ::std::string* EmailNotification::add_recipients_email() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailNotification.recipients_email) - return recipients_email_.Add(); -} -inline void EmailNotification::add_recipients_email(const ::std::string& value) { - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) -} -#if LANG_CXX11 -inline void EmailNotification::add_recipients_email(::std::string&& value) { - recipients_email_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.EmailNotification.recipients_email) -} -#endif -inline void EmailNotification::add_recipients_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailNotification.recipients_email) -} -inline void EmailNotification::add_recipients_email(const char* value, size_t size) { - recipients_email_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailNotification.recipients_email) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -EmailNotification::recipients_email() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.EmailNotification.recipients_email) - return recipients_email_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -EmailNotification::mutable_recipients_email() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailNotification.recipients_email) - return &recipients_email_; -} - -// ------------------------------------------------------------------- - -// PagerDutyNotification - -// repeated string recipients_email = 1; -inline int PagerDutyNotification::recipients_email_size() const { - return recipients_email_.size(); -} -inline void PagerDutyNotification::clear_recipients_email() { - recipients_email_.Clear(); -} -inline const ::std::string& PagerDutyNotification::recipients_email(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.PagerDutyNotification.recipients_email) - return recipients_email_.Get(index); -} -inline ::std::string* PagerDutyNotification::mutable_recipients_email(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) - return recipients_email_.Mutable(index); -} -inline void PagerDutyNotification::set_recipients_email(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) - recipients_email_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void PagerDutyNotification::set_recipients_email(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.PagerDutyNotification.recipients_email) - recipients_email_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void PagerDutyNotification::set_recipients_email(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.PagerDutyNotification.recipients_email) -} -inline void PagerDutyNotification::set_recipients_email(int index, const char* value, size_t size) { - recipients_email_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) -} -inline ::std::string* PagerDutyNotification::add_recipients_email() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.PagerDutyNotification.recipients_email) - return recipients_email_.Add(); -} -inline void PagerDutyNotification::add_recipients_email(const ::std::string& value) { - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) -} -#if LANG_CXX11 -inline void PagerDutyNotification::add_recipients_email(::std::string&& value) { - recipients_email_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.PagerDutyNotification.recipients_email) -} -#endif -inline void PagerDutyNotification::add_recipients_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.PagerDutyNotification.recipients_email) -} -inline void PagerDutyNotification::add_recipients_email(const char* value, size_t size) { - recipients_email_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.PagerDutyNotification.recipients_email) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -PagerDutyNotification::recipients_email() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.PagerDutyNotification.recipients_email) - return recipients_email_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -PagerDutyNotification::mutable_recipients_email() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PagerDutyNotification.recipients_email) - return &recipients_email_; -} - -// ------------------------------------------------------------------- - -// SlackNotification - -// repeated string recipients_email = 1; -inline int SlackNotification::recipients_email_size() const { - return recipients_email_.size(); -} -inline void SlackNotification::clear_recipients_email() { - recipients_email_.Clear(); -} -inline const ::std::string& SlackNotification::recipients_email(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SlackNotification.recipients_email) - return recipients_email_.Get(index); -} -inline ::std::string* SlackNotification::mutable_recipients_email(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SlackNotification.recipients_email) - return recipients_email_.Mutable(index); -} -inline void SlackNotification::set_recipients_email(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) - recipients_email_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void SlackNotification::set_recipients_email(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.SlackNotification.recipients_email) - recipients_email_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void SlackNotification::set_recipients_email(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SlackNotification.recipients_email) -} -inline void SlackNotification::set_recipients_email(int index, const char* value, size_t size) { - recipients_email_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SlackNotification.recipients_email) -} -inline ::std::string* SlackNotification::add_recipients_email() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.SlackNotification.recipients_email) - return recipients_email_.Add(); -} -inline void SlackNotification::add_recipients_email(const ::std::string& value) { - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) -} -#if LANG_CXX11 -inline void SlackNotification::add_recipients_email(::std::string&& value) { - recipients_email_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.SlackNotification.recipients_email) -} -#endif -inline void SlackNotification::add_recipients_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.SlackNotification.recipients_email) -} -inline void SlackNotification::add_recipients_email(const char* value, size_t size) { - recipients_email_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.SlackNotification.recipients_email) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -SlackNotification::recipients_email() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.SlackNotification.recipients_email) - return recipients_email_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -SlackNotification::mutable_recipients_email() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.SlackNotification.recipients_email) - return &recipients_email_; -} - -// ------------------------------------------------------------------- - -// Notification - -// repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; -inline int Notification::phases_size() const { - return phases_.size(); -} -inline void Notification::clear_phases() { - phases_.Clear(); -} -inline ::flyteidl::core::WorkflowExecution_Phase Notification::phases(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.phases) - return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phases_.Get(index)); -} -inline void Notification::set_phases(int index, ::flyteidl::core::WorkflowExecution_Phase value) { - phases_.Set(index, value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Notification.phases) -} -inline void Notification::add_phases(::flyteidl::core::WorkflowExecution_Phase value) { - phases_.Add(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.Notification.phases) -} -inline const ::google::protobuf::RepeatedField& -Notification::phases() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Notification.phases) - return phases_; -} -inline ::google::protobuf::RepeatedField* -Notification::mutable_phases() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Notification.phases) - return &phases_; -} - -// .flyteidl.admin.EmailNotification email = 2; -inline bool Notification::has_email() const { - return type_case() == kEmail; -} -inline void Notification::set_has_email() { - _oneof_case_[0] = kEmail; -} -inline void Notification::clear_email() { - if (has_email()) { - delete type_.email_; - clear_has_type(); - } -} -inline ::flyteidl::admin::EmailNotification* Notification::release_email() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.email) - if (has_email()) { - clear_has_type(); - ::flyteidl::admin::EmailNotification* temp = type_.email_; - type_.email_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::EmailNotification& Notification::email() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.email) - return has_email() - ? *type_.email_ - : *reinterpret_cast< ::flyteidl::admin::EmailNotification*>(&::flyteidl::admin::_EmailNotification_default_instance_); -} -inline ::flyteidl::admin::EmailNotification* Notification::mutable_email() { - if (!has_email()) { - clear_type(); - set_has_email(); - type_.email_ = CreateMaybeMessage< ::flyteidl::admin::EmailNotification >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.email) - return type_.email_; -} - -// .flyteidl.admin.PagerDutyNotification pager_duty = 3; -inline bool Notification::has_pager_duty() const { - return type_case() == kPagerDuty; -} -inline void Notification::set_has_pager_duty() { - _oneof_case_[0] = kPagerDuty; -} -inline void Notification::clear_pager_duty() { - if (has_pager_duty()) { - delete type_.pager_duty_; - clear_has_type(); - } -} -inline ::flyteidl::admin::PagerDutyNotification* Notification::release_pager_duty() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.pager_duty) - if (has_pager_duty()) { - clear_has_type(); - ::flyteidl::admin::PagerDutyNotification* temp = type_.pager_duty_; - type_.pager_duty_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::PagerDutyNotification& Notification::pager_duty() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.pager_duty) - return has_pager_duty() - ? *type_.pager_duty_ - : *reinterpret_cast< ::flyteidl::admin::PagerDutyNotification*>(&::flyteidl::admin::_PagerDutyNotification_default_instance_); -} -inline ::flyteidl::admin::PagerDutyNotification* Notification::mutable_pager_duty() { - if (!has_pager_duty()) { - clear_type(); - set_has_pager_duty(); - type_.pager_duty_ = CreateMaybeMessage< ::flyteidl::admin::PagerDutyNotification >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.pager_duty) - return type_.pager_duty_; -} - -// .flyteidl.admin.SlackNotification slack = 4; -inline bool Notification::has_slack() const { - return type_case() == kSlack; -} -inline void Notification::set_has_slack() { - _oneof_case_[0] = kSlack; -} -inline void Notification::clear_slack() { - if (has_slack()) { - delete type_.slack_; - clear_has_type(); - } -} -inline ::flyteidl::admin::SlackNotification* Notification::release_slack() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Notification.slack) - if (has_slack()) { - clear_has_type(); - ::flyteidl::admin::SlackNotification* temp = type_.slack_; - type_.slack_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::SlackNotification& Notification::slack() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Notification.slack) - return has_slack() - ? *type_.slack_ - : *reinterpret_cast< ::flyteidl::admin::SlackNotification*>(&::flyteidl::admin::_SlackNotification_default_instance_); -} -inline ::flyteidl::admin::SlackNotification* Notification::mutable_slack() { - if (!has_slack()) { - clear_type(); - set_has_slack(); - type_.slack_ = CreateMaybeMessage< ::flyteidl::admin::SlackNotification >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Notification.slack) - return type_.slack_; -} - -inline bool Notification::has_type() const { - return type_case() != TYPE_NOT_SET; -} -inline void Notification::clear_has_type() { - _oneof_case_[0] = TYPE_NOT_SET; -} -inline Notification::TypeCase Notification::type_case() const { - return Notification::TypeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// UrlBlob - -// string url = 1; -inline void UrlBlob::clear_url() { - url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UrlBlob::url() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.url) - return url_.GetNoArena(); -} -inline void UrlBlob::set_url(const ::std::string& value) { - - url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.url) -} -#if LANG_CXX11 -inline void UrlBlob::set_url(::std::string&& value) { - - url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.UrlBlob.url) -} -#endif -inline void UrlBlob::set_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.UrlBlob.url) -} -inline void UrlBlob::set_url(const char* value, size_t size) { - - url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.UrlBlob.url) -} -inline ::std::string* UrlBlob::mutable_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.UrlBlob.url) - return url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UrlBlob::release_url() { - // @@protoc_insertion_point(field_release:flyteidl.admin.UrlBlob.url) - - return url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UrlBlob::set_allocated_url(::std::string* url) { - if (url != nullptr) { - - } else { - - } - url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.UrlBlob.url) -} - -// int64 bytes = 2; -inline void UrlBlob::clear_bytes() { - bytes_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 UrlBlob::bytes() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.UrlBlob.bytes) - return bytes_; -} -inline void UrlBlob::set_bytes(::google::protobuf::int64 value) { - - bytes_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.UrlBlob.bytes) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Labels - -// map values = 1; -inline int Labels::values_size() const { - return values_.size(); -} -inline void Labels::clear_values() { - values_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -Labels::values() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.Labels.values) - return values_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -Labels::mutable_values() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Labels.values) - return values_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Annotations - -// map values = 1; -inline int Annotations::values_size() const { - return values_.size(); -} -inline void Annotations::clear_values() { - values_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -Annotations::values() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.Annotations.values) - return values_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -Annotations::mutable_values() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.Annotations.values) - return values_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// Envs - -// repeated .flyteidl.core.KeyValuePair values = 1; -inline int Envs::values_size() const { - return values_.size(); -} -inline ::flyteidl::core::KeyValuePair* Envs::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Envs.values) - return values_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* -Envs::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Envs.values) - return &values_; -} -inline const ::flyteidl::core::KeyValuePair& Envs::values(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Envs.values) - return values_.Get(index); -} -inline ::flyteidl::core::KeyValuePair* Envs::add_values() { - // @@protoc_insertion_point(field_add:flyteidl.admin.Envs.values) - return values_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& -Envs::values() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Envs.values) - return values_; -} - -// ------------------------------------------------------------------- - -// AuthRole - -// string assumable_iam_role = 1; -inline void AuthRole::clear_assumable_iam_role() { - assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AuthRole::assumable_iam_role() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.AuthRole.assumable_iam_role) - return assumable_iam_role_.GetNoArena(); -} -inline void AuthRole::set_assumable_iam_role(const ::std::string& value) { - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.AuthRole.assumable_iam_role) -} -#if LANG_CXX11 -inline void AuthRole::set_assumable_iam_role(::std::string&& value) { - - assumable_iam_role_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AuthRole.assumable_iam_role) -} -#endif -inline void AuthRole::set_assumable_iam_role(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.AuthRole.assumable_iam_role) -} -inline void AuthRole::set_assumable_iam_role(const char* value, size_t size) { - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AuthRole.assumable_iam_role) -} -inline ::std::string* AuthRole::mutable_assumable_iam_role() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.AuthRole.assumable_iam_role) - return assumable_iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AuthRole::release_assumable_iam_role() { - // @@protoc_insertion_point(field_release:flyteidl.admin.AuthRole.assumable_iam_role) - - return assumable_iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AuthRole::set_allocated_assumable_iam_role(::std::string* assumable_iam_role) { - if (assumable_iam_role != nullptr) { - - } else { - - } - assumable_iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assumable_iam_role); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AuthRole.assumable_iam_role) -} - -// string kubernetes_service_account = 2; -inline void AuthRole::clear_kubernetes_service_account() { - kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AuthRole::kubernetes_service_account() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.AuthRole.kubernetes_service_account) - return kubernetes_service_account_.GetNoArena(); -} -inline void AuthRole::set_kubernetes_service_account(const ::std::string& value) { - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.AuthRole.kubernetes_service_account) -} -#if LANG_CXX11 -inline void AuthRole::set_kubernetes_service_account(::std::string&& value) { - - kubernetes_service_account_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AuthRole.kubernetes_service_account) -} -#endif -inline void AuthRole::set_kubernetes_service_account(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.AuthRole.kubernetes_service_account) -} -inline void AuthRole::set_kubernetes_service_account(const char* value, size_t size) { - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AuthRole.kubernetes_service_account) -} -inline ::std::string* AuthRole::mutable_kubernetes_service_account() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.AuthRole.kubernetes_service_account) - return kubernetes_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AuthRole::release_kubernetes_service_account() { - // @@protoc_insertion_point(field_release:flyteidl.admin.AuthRole.kubernetes_service_account) - - return kubernetes_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AuthRole::set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account) { - if (kubernetes_service_account != nullptr) { - - } else { - - } - kubernetes_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kubernetes_service_account); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AuthRole.kubernetes_service_account) -} - -// ------------------------------------------------------------------- - -// RawOutputDataConfig - -// string output_location_prefix = 1; -inline void RawOutputDataConfig::clear_output_location_prefix() { - output_location_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RawOutputDataConfig::output_location_prefix() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.RawOutputDataConfig.output_location_prefix) - return output_location_prefix_.GetNoArena(); -} -inline void RawOutputDataConfig::set_output_location_prefix(const ::std::string& value) { - - output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.RawOutputDataConfig.output_location_prefix) -} -#if LANG_CXX11 -inline void RawOutputDataConfig::set_output_location_prefix(::std::string&& value) { - - output_location_prefix_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.RawOutputDataConfig.output_location_prefix) -} -#endif -inline void RawOutputDataConfig::set_output_location_prefix(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.RawOutputDataConfig.output_location_prefix) -} -inline void RawOutputDataConfig::set_output_location_prefix(const char* value, size_t size) { - - output_location_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.RawOutputDataConfig.output_location_prefix) -} -inline ::std::string* RawOutputDataConfig::mutable_output_location_prefix() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.RawOutputDataConfig.output_location_prefix) - return output_location_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RawOutputDataConfig::release_output_location_prefix() { - // @@protoc_insertion_point(field_release:flyteidl.admin.RawOutputDataConfig.output_location_prefix) - - return output_location_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RawOutputDataConfig::set_allocated_output_location_prefix(::std::string* output_location_prefix) { - if (output_location_prefix != nullptr) { - - } else { - - } - output_location_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_location_prefix); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.RawOutputDataConfig.output_location_prefix) -} - -// ------------------------------------------------------------------- - -// FlyteURLs - -// string inputs = 1; -inline void FlyteURLs::clear_inputs() { - inputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FlyteURLs::inputs() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.inputs) - return inputs_.GetNoArena(); -} -inline void FlyteURLs::set_inputs(const ::std::string& value) { - - inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.inputs) -} -#if LANG_CXX11 -inline void FlyteURLs::set_inputs(::std::string&& value) { - - inputs_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.inputs) -} -#endif -inline void FlyteURLs::set_inputs(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.inputs) -} -inline void FlyteURLs::set_inputs(const char* value, size_t size) { - - inputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.inputs) -} -inline ::std::string* FlyteURLs::mutable_inputs() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.inputs) - return inputs_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FlyteURLs::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.inputs) - - return inputs_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FlyteURLs::set_allocated_inputs(::std::string* inputs) { - if (inputs != nullptr) { - - } else { - - } - inputs_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), inputs); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.inputs) -} - -// string outputs = 2; -inline void FlyteURLs::clear_outputs() { - outputs_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FlyteURLs::outputs() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.outputs) - return outputs_.GetNoArena(); -} -inline void FlyteURLs::set_outputs(const ::std::string& value) { - - outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.outputs) -} -#if LANG_CXX11 -inline void FlyteURLs::set_outputs(::std::string&& value) { - - outputs_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.outputs) -} -#endif -inline void FlyteURLs::set_outputs(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.outputs) -} -inline void FlyteURLs::set_outputs(const char* value, size_t size) { - - outputs_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.outputs) -} -inline ::std::string* FlyteURLs::mutable_outputs() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.outputs) - return outputs_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FlyteURLs::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.outputs) - - return outputs_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FlyteURLs::set_allocated_outputs(::std::string* outputs) { - if (outputs != nullptr) { - - } else { - - } - outputs_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), outputs); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.outputs) -} - -// string deck = 3; -inline void FlyteURLs::clear_deck() { - deck_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& FlyteURLs::deck() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.FlyteURLs.deck) - return deck_.GetNoArena(); -} -inline void FlyteURLs::set_deck(const ::std::string& value) { - - deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.FlyteURLs.deck) -} -#if LANG_CXX11 -inline void FlyteURLs::set_deck(::std::string&& value) { - - deck_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.FlyteURLs.deck) -} -#endif -inline void FlyteURLs::set_deck(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.FlyteURLs.deck) -} -inline void FlyteURLs::set_deck(const char* value, size_t size) { - - deck_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.FlyteURLs.deck) -} -inline ::std::string* FlyteURLs::mutable_deck() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.FlyteURLs.deck) - return deck_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* FlyteURLs::release_deck() { - // @@protoc_insertion_point(field_release:flyteidl.admin.FlyteURLs.deck) - - return deck_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void FlyteURLs::set_allocated_deck(::std::string* deck) { - if (deck != nullptr) { - - } else { - - } - deck_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.FlyteURLs.deck) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::Sort_Direction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::Sort_Direction>() { - return ::flyteidl::admin::Sort_Direction_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::admin::NamedEntityState> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::NamedEntityState>() { - return ::flyteidl::admin::NamedEntityState_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fcommon_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc deleted file mode 100644 index 3970997357..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/description_entity.proto - -#include "flyteidl/admin/description_entity.pb.h" -#include "flyteidl/admin/description_entity.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h deleted file mode 100644 index 0b4ebc8077..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/description_entity.proto -#ifndef GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED - -#include "flyteidl/admin/description_entity.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fdescription_5fentity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc deleted file mode 100644 index cc0f10672a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.cc +++ /dev/null @@ -1,2658 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/description_entity.proto - -#include "flyteidl/admin/description_entity.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -namespace flyteidl { -namespace admin { -class DescriptionEntityDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DescriptionEntity_default_instance_; -class DescriptionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr value_; - ::google::protobuf::internal::ArenaStringPtr uri_; -} _Description_default_instance_; -class SourceCodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SourceCode_default_instance_; -class DescriptionEntityListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DescriptionEntityList_default_instance_; -class DescriptionEntityListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DescriptionEntityListRequest_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsDescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DescriptionEntity_default_instance_; - new (ptr) ::flyteidl::admin::DescriptionEntity(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DescriptionEntity::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsDescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base, - &scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; - -static void InitDefaultsDescription_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Description_default_instance_; - new (ptr) ::flyteidl::admin::Description(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Description::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDescription_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, {}}; - -static void InitDefaultsSourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SourceCode_default_instance_; - new (ptr) ::flyteidl::admin::SourceCode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SourceCode::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, {}}; - -static void InitDefaultsDescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DescriptionEntityList_default_instance_; - new (ptr) ::flyteidl::admin::DescriptionEntityList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DescriptionEntityList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { - &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; - -static void InitDefaultsDescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DescriptionEntityListRequest_default_instance_; - new (ptr) ::flyteidl::admin::DescriptionEntityListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DescriptionEntityListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[5]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, short_description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, long_description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, source_code_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntity, tags_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::DescriptionDefaultTypeInternal, value_), - offsetof(::flyteidl::admin::DescriptionDefaultTypeInternal, uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, format_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, icon_link_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Description, content_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SourceCode, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SourceCode, link_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, descriptionentities_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DescriptionEntityListRequest, sort_by_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::DescriptionEntity)}, - { 10, -1, sizeof(::flyteidl::admin::Description)}, - { 20, -1, sizeof(::flyteidl::admin::SourceCode)}, - { 26, -1, sizeof(::flyteidl::admin::DescriptionEntityList)}, - { 33, -1, sizeof(::flyteidl::admin::DescriptionEntityListRequest)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_DescriptionEntity_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Description_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SourceCode_default_instance_), - reinterpret_cast(&::flyteidl::admin::_DescriptionEntityList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_DescriptionEntityListRequest_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, "flyteidl/admin/description_entity.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto, 5, file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fdescription_5fentity_2eproto[] = - "\n\'flyteidl/admin/description_entity.prot" - "o\022\016flyteidl.admin\032\036flyteidl/core/identif" - "ier.proto\032\033flyteidl/admin/common.proto\"\313" - "\001\n\021DescriptionEntity\022%\n\002id\030\001 \001(\0132\031.flyte" - "idl.core.Identifier\022\031\n\021short_description" - "\030\002 \001(\t\0225\n\020long_description\030\003 \001(\0132\033.flyte" - "idl.admin.Description\022/\n\013source_code\030\004 \001" - "(\0132\032.flyteidl.admin.SourceCode\022\014\n\004tags\030\005" - " \003(\t\"~\n\013Description\022\017\n\005value\030\001 \001(\tH\000\022\r\n\003" - "uri\030\002 \001(\tH\000\0221\n\006format\030\003 \001(\0162!.flyteidl.a" - "dmin.DescriptionFormat\022\021\n\ticon_link\030\004 \001(" - "\tB\t\n\007content\"\032\n\nSourceCode\022\014\n\004link\030\001 \001(\t" - "\"f\n\025DescriptionEntityList\022>\n\023description" - "Entities\030\001 \003(\0132!.flyteidl.admin.Descript" - "ionEntity\022\r\n\005token\030\002 \001(\t\"\333\001\n\034Description" - "EntityListRequest\0222\n\rresource_type\030\001 \001(\016" - "2\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(" - "\0132%.flyteidl.admin.NamedEntityIdentifier" - "\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022\017\n\007filter" - "s\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admi" - "n.Sort*\215\001\n\021DescriptionFormat\022\036\n\032DESCRIPT" - "ION_FORMAT_UNKNOWN\020\000\022\037\n\033DESCRIPTION_FORM" - "AT_MARKDOWN\020\001\022\033\n\027DESCRIPTION_FORMAT_HTML" - "\020\002\022\032\n\026DESCRIPTION_FORMAT_RST\020\003B=Z;github" - ".com/flyteorg/flyte/flyteidl/gen/pb-go/f" - "lyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fdescription_5fentity_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fdescription_5fentity_2eproto, - "flyteidl/admin/description_entity.proto", &assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto, 1021, -}; - -void AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fdescription_5fentity_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* DescriptionFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto[0]; -} -bool DescriptionFormat_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - - -// =================================================================== - -void DescriptionEntity::InitAsDefaultInstance() { - ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->long_description_ = const_cast< ::flyteidl::admin::Description*>( - ::flyteidl::admin::Description::internal_default_instance()); - ::flyteidl::admin::_DescriptionEntity_default_instance_._instance.get_mutable()->source_code_ = const_cast< ::flyteidl::admin::SourceCode*>( - ::flyteidl::admin::SourceCode::internal_default_instance()); -} -class DescriptionEntity::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const DescriptionEntity* msg); - static const ::flyteidl::admin::Description& long_description(const DescriptionEntity* msg); - static const ::flyteidl::admin::SourceCode& source_code(const DescriptionEntity* msg); -}; - -const ::flyteidl::core::Identifier& -DescriptionEntity::HasBitSetters::id(const DescriptionEntity* msg) { - return *msg->id_; -} -const ::flyteidl::admin::Description& -DescriptionEntity::HasBitSetters::long_description(const DescriptionEntity* msg) { - return *msg->long_description_; -} -const ::flyteidl::admin::SourceCode& -DescriptionEntity::HasBitSetters::source_code(const DescriptionEntity* msg) { - return *msg->source_code_; -} -void DescriptionEntity::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DescriptionEntity::kIdFieldNumber; -const int DescriptionEntity::kShortDescriptionFieldNumber; -const int DescriptionEntity::kLongDescriptionFieldNumber; -const int DescriptionEntity::kSourceCodeFieldNumber; -const int DescriptionEntity::kTagsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DescriptionEntity::DescriptionEntity() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntity) -} -DescriptionEntity::DescriptionEntity(const DescriptionEntity& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.short_description().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_long_description()) { - long_description_ = new ::flyteidl::admin::Description(*from.long_description_); - } else { - long_description_ = nullptr; - } - if (from.has_source_code()) { - source_code_ = new ::flyteidl::admin::SourceCode(*from.source_code_); - } else { - source_code_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntity) -} - -void DescriptionEntity::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&source_code_) - - reinterpret_cast(&id_)) + sizeof(source_code_)); -} - -DescriptionEntity::~DescriptionEntity() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntity) - SharedDtor(); -} - -void DescriptionEntity::SharedDtor() { - short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete long_description_; - if (this != internal_default_instance()) delete source_code_; -} - -void DescriptionEntity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescriptionEntity& DescriptionEntity::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - return *internal_default_instance(); -} - - -void DescriptionEntity::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntity) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && long_description_ != nullptr) { - delete long_description_; - } - long_description_ = nullptr; - if (GetArenaNoVirtual() == nullptr && source_code_ != nullptr) { - delete source_code_; - } - source_code_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescriptionEntity::_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; - } - // string short_description = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntity.short_description"); - object = msg->mutable_short_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Description long_description = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Description::_InternalParse; - object = msg->mutable_long_description(); - 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.SourceCode source_code = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::SourceCode::_InternalParse; - object = msg->mutable_source_code(); - 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; - } - // repeated string tags = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntity.tags"); - object = msg->add_tags(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescriptionEntity::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.DescriptionEntity) - 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; - } - - // string short_description = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DescriptionEntity.short_description")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Description long_description = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_long_description())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.SourceCode source_code = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_source_code())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string tags = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tags())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(this->tags_size() - 1).data(), - static_cast(this->tags(this->tags_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DescriptionEntity.tags")); - } 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.DescriptionEntity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntity) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescriptionEntity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntity) - ::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); - } - - // string short_description = 2; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntity.short_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->short_description(), output); - } - - // .flyteidl.admin.Description long_description = 3; - if (this->has_long_description()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::long_description(this), output); - } - - // .flyteidl.admin.SourceCode source_code = 4; - if (this->has_source_code()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::source_code(this), output); - } - - // repeated string tags = 5; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntity.tags"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->tags(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.DescriptionEntity) -} - -::google::protobuf::uint8* DescriptionEntity::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntity) - ::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); - } - - // string short_description = 2; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntity.short_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->short_description(), target); - } - - // .flyteidl.admin.Description long_description = 3; - if (this->has_long_description()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::long_description(this), target); - } - - // .flyteidl.admin.SourceCode source_code = 4; - if (this->has_source_code()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::source_code(this), target); - } - - // repeated string tags = 5; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntity.tags"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->tags(i), 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.DescriptionEntity) - return target; -} - -size_t DescriptionEntity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntity) - 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; - - // repeated string tags = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - for (int i = 0, n = this->tags_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tags(i)); - } - - // string short_description = 2; - if (this->short_description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_description()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.Description long_description = 3; - if (this->has_long_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *long_description_); - } - - // .flyteidl.admin.SourceCode source_code = 4; - if (this->has_source_code()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *source_code_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescriptionEntity::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntity) - GOOGLE_DCHECK_NE(&from, this); - const DescriptionEntity* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntity) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntity) - MergeFrom(*source); - } -} - -void DescriptionEntity::MergeFrom(const DescriptionEntity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntity) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - if (from.short_description().size() > 0) { - - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_long_description()) { - mutable_long_description()->::flyteidl::admin::Description::MergeFrom(from.long_description()); - } - if (from.has_source_code()) { - mutable_source_code()->::flyteidl::admin::SourceCode::MergeFrom(from.source_code()); - } -} - -void DescriptionEntity::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescriptionEntity::CopyFrom(const DescriptionEntity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescriptionEntity::IsInitialized() const { - return true; -} - -void DescriptionEntity::Swap(DescriptionEntity* other) { - if (other == this) return; - InternalSwap(other); -} -void DescriptionEntity::InternalSwap(DescriptionEntity* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.InternalSwap(CastToBase(&other->tags_)); - short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(long_description_, other->long_description_); - swap(source_code_, other->source_code_); -} - -::google::protobuf::Metadata DescriptionEntity::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Description::InitAsDefaultInstance() { - ::flyteidl::admin::_Description_default_instance_.value_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_Description_default_instance_.uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class Description::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Description::kValueFieldNumber; -const int Description::kUriFieldNumber; -const int Description::kFormatFieldNumber; -const int Description::kIconLinkFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Description::Description() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Description) -} -Description::Description(const Description& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - icon_link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.icon_link().size() > 0) { - icon_link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.icon_link_); - } - format_ = from.format_; - clear_has_content(); - switch (from.content_case()) { - case kValue: { - set_value(from.value()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Description) -} - -void Description::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - icon_link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - format_ = 0; - clear_has_content(); -} - -Description::~Description() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Description) - SharedDtor(); -} - -void Description::SharedDtor() { - icon_link_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (has_content()) { - clear_content(); - } -} - -void Description::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Description& Description::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Description_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - return *internal_default_instance(); -} - - -void Description::clear_content() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Description) - switch (content_case()) { - case kValue: { - content_.value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kUri: { - content_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - _oneof_case_[0] = CONTENT_NOT_SET; -} - - -void Description::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Description) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - icon_link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - format_ = 0; - clear_content(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Description::_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) { - // string value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.DescriptionFormat format = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_format(static_cast<::flyteidl::admin::DescriptionFormat>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string icon_link = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Description.icon_link"); - object = msg->mutable_icon_link(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Description::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.Description) - 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)) { - // string value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Description.value")); - } else { - goto handle_unusual; - } - break; - } - - // string uri = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Description.uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.DescriptionFormat format = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_format(static_cast< ::flyteidl::admin::DescriptionFormat >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string icon_link = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_icon_link())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->icon_link().data(), static_cast(this->icon_link().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Description.icon_link")); - } 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.Description) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Description) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Description::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Description) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string value = 1; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->value(), output); - } - - // string uri = 2; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->uri(), output); - } - - // .flyteidl.admin.DescriptionFormat format = 3; - if (this->format() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->format(), output); - } - - // string icon_link = 4; - if (this->icon_link().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->icon_link().data(), static_cast(this->icon_link().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.icon_link"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->icon_link(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Description) -} - -::google::protobuf::uint8* Description::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Description) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string value = 1; - if (has_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->value(), target); - } - - // string uri = 2; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->uri(), target); - } - - // .flyteidl.admin.DescriptionFormat format = 3; - if (this->format() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->format(), target); - } - - // string icon_link = 4; - if (this->icon_link().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->icon_link().data(), static_cast(this->icon_link().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Description.icon_link"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->icon_link(), 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.Description) - return target; -} - -size_t Description::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Description) - 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; - - // string icon_link = 4; - if (this->icon_link().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->icon_link()); - } - - // .flyteidl.admin.DescriptionFormat format = 3; - if (this->format() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->format()); - } - - switch (content_case()) { - // string value = 1; - case kValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - break; - } - // string uri = 2; - case kUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Description::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Description) - GOOGLE_DCHECK_NE(&from, this); - const Description* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Description) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Description) - MergeFrom(*source); - } -} - -void Description::MergeFrom(const Description& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Description) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.icon_link().size() > 0) { - - icon_link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.icon_link_); - } - if (from.format() != 0) { - set_format(from.format()); - } - switch (from.content_case()) { - case kValue: { - set_value(from.value()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case CONTENT_NOT_SET: { - break; - } - } -} - -void Description::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Description) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Description::CopyFrom(const Description& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Description) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Description::IsInitialized() const { - return true; -} - -void Description::Swap(Description* other) { - if (other == this) return; - InternalSwap(other); -} -void Description::InternalSwap(Description* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - icon_link_.Swap(&other->icon_link_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(format_, other->format_); - swap(content_, other->content_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Description::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SourceCode::InitAsDefaultInstance() { -} -class SourceCode::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SourceCode::kLinkFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SourceCode::SourceCode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SourceCode) -} -SourceCode::SourceCode(const SourceCode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.link().size() > 0) { - link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.link_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SourceCode) -} - -void SourceCode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - link_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SourceCode::~SourceCode() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SourceCode) - SharedDtor(); -} - -void SourceCode::SharedDtor() { - link_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SourceCode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SourceCode& SourceCode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SourceCode_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - return *internal_default_instance(); -} - - -void SourceCode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SourceCode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SourceCode::_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) { - // string link = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SourceCode.link"); - object = msg->mutable_link(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SourceCode::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.SourceCode) - 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)) { - // string link = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_link())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->link().data(), static_cast(this->link().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SourceCode.link")); - } 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.SourceCode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SourceCode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SourceCode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SourceCode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string link = 1; - if (this->link().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->link().data(), static_cast(this->link().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SourceCode.link"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->link(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.SourceCode) -} - -::google::protobuf::uint8* SourceCode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SourceCode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string link = 1; - if (this->link().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->link().data(), static_cast(this->link().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SourceCode.link"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->link(), 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.SourceCode) - return target; -} - -size_t SourceCode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SourceCode) - 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; - - // string link = 1; - if (this->link().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->link()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SourceCode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SourceCode) - GOOGLE_DCHECK_NE(&from, this); - const SourceCode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SourceCode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SourceCode) - MergeFrom(*source); - } -} - -void SourceCode::MergeFrom(const SourceCode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SourceCode) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.link().size() > 0) { - - link_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.link_); - } -} - -void SourceCode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SourceCode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SourceCode::CopyFrom(const SourceCode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SourceCode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SourceCode::IsInitialized() const { - return true; -} - -void SourceCode::Swap(SourceCode* other) { - if (other == this) return; - InternalSwap(other); -} -void SourceCode::InternalSwap(SourceCode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - link_.Swap(&other->link_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata SourceCode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DescriptionEntityList::InitAsDefaultInstance() { -} -class DescriptionEntityList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DescriptionEntityList::kDescriptionEntitiesFieldNumber; -const int DescriptionEntityList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DescriptionEntityList::DescriptionEntityList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntityList) -} -DescriptionEntityList::DescriptionEntityList(const DescriptionEntityList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - descriptionentities_(from.descriptionentities_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntityList) -} - -void DescriptionEntityList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -DescriptionEntityList::~DescriptionEntityList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntityList) - SharedDtor(); -} - -void DescriptionEntityList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void DescriptionEntityList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescriptionEntityList& DescriptionEntityList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntityList_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - return *internal_default_instance(); -} - - -void DescriptionEntityList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - descriptionentities_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescriptionEntityList::_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) { - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::DescriptionEntity::_InternalParse; - object = msg->add_descriptionentities(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescriptionEntityList::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.DescriptionEntityList) - 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)) { - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_descriptionentities())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DescriptionEntityList.token")); - } 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.DescriptionEntityList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntityList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescriptionEntityList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - for (unsigned int i = 0, - n = static_cast(this->descriptionentities_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->descriptionentities(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.DescriptionEntityList) -} - -::google::protobuf::uint8* DescriptionEntityList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntityList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - for (unsigned int i = 0, - n = static_cast(this->descriptionentities_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->descriptionentities(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.DescriptionEntityList) - return target; -} - -size_t DescriptionEntityList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntityList) - 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; - - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - { - unsigned int count = static_cast(this->descriptionentities_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->descriptionentities(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescriptionEntityList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntityList) - GOOGLE_DCHECK_NE(&from, this); - const DescriptionEntityList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntityList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntityList) - MergeFrom(*source); - } -} - -void DescriptionEntityList::MergeFrom(const DescriptionEntityList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntityList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - descriptionentities_.MergeFrom(from.descriptionentities_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void DescriptionEntityList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntityList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescriptionEntityList::CopyFrom(const DescriptionEntityList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntityList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescriptionEntityList::IsInitialized() const { - return true; -} - -void DescriptionEntityList::Swap(DescriptionEntityList* other) { - if (other == this) return; - InternalSwap(other); -} -void DescriptionEntityList::InternalSwap(DescriptionEntityList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&descriptionentities_)->InternalSwap(CastToBase(&other->descriptionentities_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata DescriptionEntityList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DescriptionEntityListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_DescriptionEntityListRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); - ::flyteidl::admin::_DescriptionEntityListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class DescriptionEntityListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const DescriptionEntityListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const DescriptionEntityListRequest* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -DescriptionEntityListRequest::HasBitSetters::id(const DescriptionEntityListRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::Sort& -DescriptionEntityListRequest::HasBitSetters::sort_by(const DescriptionEntityListRequest* msg) { - return *msg->sort_by_; -} -void DescriptionEntityListRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void DescriptionEntityListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DescriptionEntityListRequest::kResourceTypeFieldNumber; -const int DescriptionEntityListRequest::kIdFieldNumber; -const int DescriptionEntityListRequest::kLimitFieldNumber; -const int DescriptionEntityListRequest::kTokenFieldNumber; -const int DescriptionEntityListRequest::kFiltersFieldNumber; -const int DescriptionEntityListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DescriptionEntityListRequest::DescriptionEntityListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DescriptionEntityListRequest) -} -DescriptionEntityListRequest::DescriptionEntityListRequest(const DescriptionEntityListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - ::memcpy(&resource_type_, &from.resource_type_, - static_cast(reinterpret_cast(&limit_) - - reinterpret_cast(&resource_type_)) + sizeof(limit_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DescriptionEntityListRequest) -} - -void DescriptionEntityListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&id_)) + sizeof(limit_)); -} - -DescriptionEntityListRequest::~DescriptionEntityListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DescriptionEntityListRequest) - SharedDtor(); -} - -void DescriptionEntityListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void DescriptionEntityListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DescriptionEntityListRequest& DescriptionEntityListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DescriptionEntityListRequest_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base); - return *internal_default_instance(); -} - - -void DescriptionEntityListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DescriptionEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - ::memset(&resource_type_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&resource_type_)) + sizeof(limit_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DescriptionEntityListRequest::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.NamedEntityIdentifier id = 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::NamedEntityIdentifier::_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; - } - // uint32 limit = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DescriptionEntityListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DescriptionEntityListRequest::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.DescriptionEntityListRequest) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DescriptionEntityListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DescriptionEntityListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.DescriptionEntityListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DescriptionEntityListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DescriptionEntityListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DescriptionEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::id(this), output); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->token(), output); - } - - // string filters = 5; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::sort_by(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.DescriptionEntityListRequest) -} - -::google::protobuf::uint8* DescriptionEntityListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DescriptionEntityListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::id(this), target); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->token(), target); - } - - // string filters = 5; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DescriptionEntityListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::sort_by(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.DescriptionEntityListRequest) - return target; -} - -size_t DescriptionEntityListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DescriptionEntityListRequest) - 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; - - // string token = 4; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 5; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.Sort sort_by = 6; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DescriptionEntityListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DescriptionEntityListRequest) - GOOGLE_DCHECK_NE(&from, this); - const DescriptionEntityListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DescriptionEntityListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DescriptionEntityListRequest) - MergeFrom(*source); - } -} - -void DescriptionEntityListRequest::MergeFrom(const DescriptionEntityListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DescriptionEntityListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void DescriptionEntityListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DescriptionEntityListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DescriptionEntityListRequest::CopyFrom(const DescriptionEntityListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DescriptionEntityListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DescriptionEntityListRequest::IsInitialized() const { - return true; -} - -void DescriptionEntityListRequest::Swap(DescriptionEntityListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void DescriptionEntityListRequest::InternalSwap(DescriptionEntityListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(sort_by_, other->sort_by_); - swap(resource_type_, other->resource_type_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata DescriptionEntityListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fdescription_5fentity_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fdescription_5fentity_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntity* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntity >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntity >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Description* Arena::CreateMaybeMessage< ::flyteidl::admin::Description >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Description >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SourceCode* Arena::CreateMaybeMessage< ::flyteidl::admin::SourceCode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SourceCode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntityList* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntityList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntityList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DescriptionEntityListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::DescriptionEntityListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DescriptionEntityListRequest >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h deleted file mode 100644 index 13eb991d54..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/description_entity.pb.h +++ /dev/null @@ -1,1832 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/description_entity.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/admin/common.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto(); -namespace flyteidl { -namespace admin { -class Description; -class DescriptionDefaultTypeInternal; -extern DescriptionDefaultTypeInternal _Description_default_instance_; -class DescriptionEntity; -class DescriptionEntityDefaultTypeInternal; -extern DescriptionEntityDefaultTypeInternal _DescriptionEntity_default_instance_; -class DescriptionEntityList; -class DescriptionEntityListDefaultTypeInternal; -extern DescriptionEntityListDefaultTypeInternal _DescriptionEntityList_default_instance_; -class DescriptionEntityListRequest; -class DescriptionEntityListRequestDefaultTypeInternal; -extern DescriptionEntityListRequestDefaultTypeInternal _DescriptionEntityListRequest_default_instance_; -class SourceCode; -class SourceCodeDefaultTypeInternal; -extern SourceCodeDefaultTypeInternal _SourceCode_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Description* Arena::CreateMaybeMessage<::flyteidl::admin::Description>(Arena*); -template<> ::flyteidl::admin::DescriptionEntity* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(Arena*); -template<> ::flyteidl::admin::DescriptionEntityList* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntityList>(Arena*); -template<> ::flyteidl::admin::DescriptionEntityListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::DescriptionEntityListRequest>(Arena*); -template<> ::flyteidl::admin::SourceCode* Arena::CreateMaybeMessage<::flyteidl::admin::SourceCode>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum DescriptionFormat { - DESCRIPTION_FORMAT_UNKNOWN = 0, - DESCRIPTION_FORMAT_MARKDOWN = 1, - DESCRIPTION_FORMAT_HTML = 2, - DESCRIPTION_FORMAT_RST = 3, - DescriptionFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - DescriptionFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool DescriptionFormat_IsValid(int value); -const DescriptionFormat DescriptionFormat_MIN = DESCRIPTION_FORMAT_UNKNOWN; -const DescriptionFormat DescriptionFormat_MAX = DESCRIPTION_FORMAT_RST; -const int DescriptionFormat_ARRAYSIZE = DescriptionFormat_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DescriptionFormat_descriptor(); -inline const ::std::string& DescriptionFormat_Name(DescriptionFormat value) { - return ::google::protobuf::internal::NameOfEnum( - DescriptionFormat_descriptor(), value); -} -inline bool DescriptionFormat_Parse( - const ::std::string& name, DescriptionFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DescriptionFormat_descriptor(), name, value); -} -// =================================================================== - -class DescriptionEntity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntity) */ { - public: - DescriptionEntity(); - virtual ~DescriptionEntity(); - - DescriptionEntity(const DescriptionEntity& from); - - inline DescriptionEntity& operator=(const DescriptionEntity& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DescriptionEntity(DescriptionEntity&& from) noexcept - : DescriptionEntity() { - *this = ::std::move(from); - } - - inline DescriptionEntity& operator=(DescriptionEntity&& 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 DescriptionEntity& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescriptionEntity* internal_default_instance() { - return reinterpret_cast( - &_DescriptionEntity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DescriptionEntity* other); - friend void swap(DescriptionEntity& a, DescriptionEntity& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DescriptionEntity* New() const final { - return CreateMaybeMessage(nullptr); - } - - DescriptionEntity* 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 DescriptionEntity& from); - void MergeFrom(const DescriptionEntity& 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(DescriptionEntity* 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 ------------------------------------------------------- - - // repeated string tags = 5; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 5; - const ::std::string& tags(int index) const; - ::std::string* mutable_tags(int index); - void set_tags(int index, const ::std::string& value); - #if LANG_CXX11 - void set_tags(int index, ::std::string&& value); - #endif - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, size_t size); - ::std::string* add_tags(); - void add_tags(const ::std::string& value); - #if LANG_CXX11 - void add_tags(::std::string&& value); - #endif - void add_tags(const char* value); - void add_tags(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); - - // string short_description = 2; - void clear_short_description(); - static const int kShortDescriptionFieldNumber = 2; - const ::std::string& short_description() const; - void set_short_description(const ::std::string& value); - #if LANG_CXX11 - void set_short_description(::std::string&& value); - #endif - void set_short_description(const char* value); - void set_short_description(const char* value, size_t size); - ::std::string* mutable_short_description(); - ::std::string* release_short_description(); - void set_allocated_short_description(::std::string* short_description); - - // .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); - - // .flyteidl.admin.Description long_description = 3; - bool has_long_description() const; - void clear_long_description(); - static const int kLongDescriptionFieldNumber = 3; - const ::flyteidl::admin::Description& long_description() const; - ::flyteidl::admin::Description* release_long_description(); - ::flyteidl::admin::Description* mutable_long_description(); - void set_allocated_long_description(::flyteidl::admin::Description* long_description); - - // .flyteidl.admin.SourceCode source_code = 4; - bool has_source_code() const; - void clear_source_code(); - static const int kSourceCodeFieldNumber = 4; - const ::flyteidl::admin::SourceCode& source_code() const; - ::flyteidl::admin::SourceCode* release_source_code(); - ::flyteidl::admin::SourceCode* mutable_source_code(); - void set_allocated_source_code(::flyteidl::admin::SourceCode* source_code); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntity) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> tags_; - ::google::protobuf::internal::ArenaStringPtr short_description_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::Description* long_description_; - ::flyteidl::admin::SourceCode* source_code_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -}; -// ------------------------------------------------------------------- - -class Description final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Description) */ { - public: - Description(); - virtual ~Description(); - - Description(const Description& from); - - inline Description& operator=(const Description& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Description(Description&& from) noexcept - : Description() { - *this = ::std::move(from); - } - - inline Description& operator=(Description&& 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 Description& default_instance(); - - enum ContentCase { - kValue = 1, - kUri = 2, - CONTENT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Description* internal_default_instance() { - return reinterpret_cast( - &_Description_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Description* other); - friend void swap(Description& a, Description& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Description* New() const final { - return CreateMaybeMessage(nullptr); - } - - Description* 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 Description& from); - void MergeFrom(const Description& 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(Description* 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 ------------------------------------------------------- - - // string icon_link = 4; - void clear_icon_link(); - static const int kIconLinkFieldNumber = 4; - const ::std::string& icon_link() const; - void set_icon_link(const ::std::string& value); - #if LANG_CXX11 - void set_icon_link(::std::string&& value); - #endif - void set_icon_link(const char* value); - void set_icon_link(const char* value, size_t size); - ::std::string* mutable_icon_link(); - ::std::string* release_icon_link(); - void set_allocated_icon_link(::std::string* icon_link); - - // .flyteidl.admin.DescriptionFormat format = 3; - void clear_format(); - static const int kFormatFieldNumber = 3; - ::flyteidl::admin::DescriptionFormat format() const; - void set_format(::flyteidl::admin::DescriptionFormat value); - - // string value = 1; - private: - bool has_value() const; - public: - void clear_value(); - static const int kValueFieldNumber = 1; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // string uri = 2; - private: - bool has_uri() const; - public: - void clear_uri(); - static const int kUriFieldNumber = 2; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - void clear_content(); - ContentCase content_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.Description) - private: - class HasBitSetters; - void set_has_value(); - void set_has_uri(); - - inline bool has_content() const; - inline void clear_has_content(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr icon_link_; - int format_; - union ContentUnion { - ContentUnion() {} - ::google::protobuf::internal::ArenaStringPtr value_; - ::google::protobuf::internal::ArenaStringPtr uri_; - } content_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -}; -// ------------------------------------------------------------------- - -class SourceCode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SourceCode) */ { - public: - SourceCode(); - virtual ~SourceCode(); - - SourceCode(const SourceCode& from); - - inline SourceCode& operator=(const SourceCode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SourceCode(SourceCode&& from) noexcept - : SourceCode() { - *this = ::std::move(from); - } - - inline SourceCode& operator=(SourceCode&& 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 SourceCode& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SourceCode* internal_default_instance() { - return reinterpret_cast( - &_SourceCode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(SourceCode* other); - friend void swap(SourceCode& a, SourceCode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SourceCode* New() const final { - return CreateMaybeMessage(nullptr); - } - - SourceCode* 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 SourceCode& from); - void MergeFrom(const SourceCode& 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(SourceCode* 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 ------------------------------------------------------- - - // string link = 1; - void clear_link(); - static const int kLinkFieldNumber = 1; - const ::std::string& link() const; - void set_link(const ::std::string& value); - #if LANG_CXX11 - void set_link(::std::string&& value); - #endif - void set_link(const char* value); - void set_link(const char* value, size_t size); - ::std::string* mutable_link(); - ::std::string* release_link(); - void set_allocated_link(::std::string* link); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SourceCode) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr link_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -}; -// ------------------------------------------------------------------- - -class DescriptionEntityList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntityList) */ { - public: - DescriptionEntityList(); - virtual ~DescriptionEntityList(); - - DescriptionEntityList(const DescriptionEntityList& from); - - inline DescriptionEntityList& operator=(const DescriptionEntityList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DescriptionEntityList(DescriptionEntityList&& from) noexcept - : DescriptionEntityList() { - *this = ::std::move(from); - } - - inline DescriptionEntityList& operator=(DescriptionEntityList&& 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 DescriptionEntityList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescriptionEntityList* internal_default_instance() { - return reinterpret_cast( - &_DescriptionEntityList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(DescriptionEntityList* other); - friend void swap(DescriptionEntityList& a, DescriptionEntityList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DescriptionEntityList* New() const final { - return CreateMaybeMessage(nullptr); - } - - DescriptionEntityList* 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 DescriptionEntityList& from); - void MergeFrom(const DescriptionEntityList& 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(DescriptionEntityList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - int descriptionentities_size() const; - void clear_descriptionentities(); - static const int kDescriptionEntitiesFieldNumber = 1; - ::flyteidl::admin::DescriptionEntity* mutable_descriptionentities(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >* - mutable_descriptionentities(); - const ::flyteidl::admin::DescriptionEntity& descriptionentities(int index) const; - ::flyteidl::admin::DescriptionEntity* add_descriptionentities(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >& - descriptionentities() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity > descriptionentities_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -}; -// ------------------------------------------------------------------- - -class DescriptionEntityListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DescriptionEntityListRequest) */ { - public: - DescriptionEntityListRequest(); - virtual ~DescriptionEntityListRequest(); - - DescriptionEntityListRequest(const DescriptionEntityListRequest& from); - - inline DescriptionEntityListRequest& operator=(const DescriptionEntityListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DescriptionEntityListRequest(DescriptionEntityListRequest&& from) noexcept - : DescriptionEntityListRequest() { - *this = ::std::move(from); - } - - inline DescriptionEntityListRequest& operator=(DescriptionEntityListRequest&& 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 DescriptionEntityListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DescriptionEntityListRequest* internal_default_instance() { - return reinterpret_cast( - &_DescriptionEntityListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(DescriptionEntityListRequest* other); - friend void swap(DescriptionEntityListRequest& a, DescriptionEntityListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DescriptionEntityListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DescriptionEntityListRequest* 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 DescriptionEntityListRequest& from); - void MergeFrom(const DescriptionEntityListRequest& 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(DescriptionEntityListRequest* 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 ------------------------------------------------------- - - // string token = 4; - void clear_token(); - static const int kTokenFieldNumber = 4; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 5; - void clear_filters(); - static const int kFiltersFieldNumber = 5; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.admin.NamedEntityIdentifier id = 2; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 2; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // .flyteidl.admin.Sort sort_by = 6; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 6; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // uint32 limit = 3; - void clear_limit(); - static const int kLimitFieldNumber = 3; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - ::flyteidl::admin::Sort* sort_by_; - int resource_type_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DescriptionEntity - -// .flyteidl.core.Identifier id = 1; -inline bool DescriptionEntity::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& DescriptionEntity::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* DescriptionEntity::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* DescriptionEntity::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.id) - return id_; -} -inline void DescriptionEntity::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.DescriptionEntity.id) -} - -// string short_description = 2; -inline void DescriptionEntity::clear_short_description() { - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DescriptionEntity::short_description() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.short_description) - return short_description_.GetNoArena(); -} -inline void DescriptionEntity::set_short_description(const ::std::string& value) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.short_description) -} -#if LANG_CXX11 -inline void DescriptionEntity::set_short_description(::std::string&& value) { - - short_description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntity.short_description) -} -#endif -inline void DescriptionEntity::set_short_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntity.short_description) -} -inline void DescriptionEntity::set_short_description(const char* value, size_t size) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntity.short_description) -} -inline ::std::string* DescriptionEntity::mutable_short_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.short_description) - return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DescriptionEntity::release_short_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.short_description) - - return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DescriptionEntity::set_allocated_short_description(::std::string* short_description) { - if (short_description != nullptr) { - - } else { - - } - short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.short_description) -} - -// .flyteidl.admin.Description long_description = 3; -inline bool DescriptionEntity::has_long_description() const { - return this != internal_default_instance() && long_description_ != nullptr; -} -inline void DescriptionEntity::clear_long_description() { - if (GetArenaNoVirtual() == nullptr && long_description_ != nullptr) { - delete long_description_; - } - long_description_ = nullptr; -} -inline const ::flyteidl::admin::Description& DescriptionEntity::long_description() const { - const ::flyteidl::admin::Description* p = long_description_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.long_description) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Description_default_instance_); -} -inline ::flyteidl::admin::Description* DescriptionEntity::release_long_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.long_description) - - ::flyteidl::admin::Description* temp = long_description_; - long_description_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Description* DescriptionEntity::mutable_long_description() { - - if (long_description_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Description>(GetArenaNoVirtual()); - long_description_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.long_description) - return long_description_; -} -inline void DescriptionEntity::set_allocated_long_description(::flyteidl::admin::Description* long_description) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete long_description_; - } - if (long_description) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - long_description = ::google::protobuf::internal::GetOwnedMessage( - message_arena, long_description, submessage_arena); - } - - } else { - - } - long_description_ = long_description; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.long_description) -} - -// .flyteidl.admin.SourceCode source_code = 4; -inline bool DescriptionEntity::has_source_code() const { - return this != internal_default_instance() && source_code_ != nullptr; -} -inline void DescriptionEntity::clear_source_code() { - if (GetArenaNoVirtual() == nullptr && source_code_ != nullptr) { - delete source_code_; - } - source_code_ = nullptr; -} -inline const ::flyteidl::admin::SourceCode& DescriptionEntity::source_code() const { - const ::flyteidl::admin::SourceCode* p = source_code_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.source_code) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_SourceCode_default_instance_); -} -inline ::flyteidl::admin::SourceCode* DescriptionEntity::release_source_code() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntity.source_code) - - ::flyteidl::admin::SourceCode* temp = source_code_; - source_code_ = nullptr; - return temp; -} -inline ::flyteidl::admin::SourceCode* DescriptionEntity::mutable_source_code() { - - if (source_code_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::SourceCode>(GetArenaNoVirtual()); - source_code_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.source_code) - return source_code_; -} -inline void DescriptionEntity::set_allocated_source_code(::flyteidl::admin::SourceCode* source_code) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete source_code_; - } - if (source_code) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - source_code = ::google::protobuf::internal::GetOwnedMessage( - message_arena, source_code, submessage_arena); - } - - } else { - - } - source_code_ = source_code; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntity.source_code) -} - -// repeated string tags = 5; -inline int DescriptionEntity::tags_size() const { - return tags_.size(); -} -inline void DescriptionEntity::clear_tags() { - tags_.Clear(); -} -inline const ::std::string& DescriptionEntity::tags(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntity.tags) - return tags_.Get(index); -} -inline ::std::string* DescriptionEntity::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntity.tags) - return tags_.Mutable(index); -} -inline void DescriptionEntity::set_tags(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.tags) - tags_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void DescriptionEntity::set_tags(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntity.tags) - tags_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void DescriptionEntity::set_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntity.tags) -} -inline void DescriptionEntity::set_tags(int index, const char* value, size_t size) { - tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntity.tags) -} -inline ::std::string* DescriptionEntity::add_tags() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.DescriptionEntity.tags) - return tags_.Add(); -} -inline void DescriptionEntity::add_tags(const ::std::string& value) { - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntity.tags) -} -#if LANG_CXX11 -inline void DescriptionEntity::add_tags(::std::string&& value) { - tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntity.tags) -} -#endif -inline void DescriptionEntity::add_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.DescriptionEntity.tags) -} -inline void DescriptionEntity::add_tags(const char* value, size_t size) { - tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.DescriptionEntity.tags) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -DescriptionEntity::tags() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.DescriptionEntity.tags) - return tags_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -DescriptionEntity::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.DescriptionEntity.tags) - return &tags_; -} - -// ------------------------------------------------------------------- - -// Description - -// string value = 1; -inline bool Description::has_value() const { - return content_case() == kValue; -} -inline void Description::set_has_value() { - _oneof_case_[0] = kValue; -} -inline void Description::clear_value() { - if (has_value()) { - content_.value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_content(); - } -} -inline const ::std::string& Description::value() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Description.value) - if (has_value()) { - return content_.value_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Description::set_value(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) - if (!has_value()) { - clear_content(); - set_has_value(); - content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) -} -#if LANG_CXX11 -inline void Description::set_value(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.value) - if (!has_value()) { - clear_content(); - set_has_value(); - content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.value) -} -#endif -inline void Description::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_value()) { - clear_content(); - set_has_value(); - content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.value) -} -inline void Description::set_value(const char* value, size_t size) { - if (!has_value()) { - clear_content(); - set_has_value(); - content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.value) -} -inline ::std::string* Description::mutable_value() { - if (!has_value()) { - clear_content(); - set_has_value(); - content_.value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.value) - return content_.value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Description::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Description.value) - if (has_value()) { - clear_has_content(); - return content_.value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Description::set_allocated_value(::std::string* value) { - if (has_content()) { - clear_content(); - } - if (value != nullptr) { - set_has_value(); - content_.value_.UnsafeSetDefault(value); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.value) -} - -// string uri = 2; -inline bool Description::has_uri() const { - return content_case() == kUri; -} -inline void Description::set_has_uri() { - _oneof_case_[0] = kUri; -} -inline void Description::clear_uri() { - if (has_uri()) { - content_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_content(); - } -} -inline const ::std::string& Description::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Description.uri) - if (has_uri()) { - return content_.uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Description::set_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) - if (!has_uri()) { - clear_content(); - set_has_uri(); - content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) -} -#if LANG_CXX11 -inline void Description::set_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.uri) - if (!has_uri()) { - clear_content(); - set_has_uri(); - content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.uri) -} -#endif -inline void Description::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_uri()) { - clear_content(); - set_has_uri(); - content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.uri) -} -inline void Description::set_uri(const char* value, size_t size) { - if (!has_uri()) { - clear_content(); - set_has_uri(); - content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - content_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.uri) -} -inline ::std::string* Description::mutable_uri() { - if (!has_uri()) { - clear_content(); - set_has_uri(); - content_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.uri) - return content_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Description::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Description.uri) - if (has_uri()) { - clear_has_content(); - return content_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Description::set_allocated_uri(::std::string* uri) { - if (has_content()) { - clear_content(); - } - if (uri != nullptr) { - set_has_uri(); - content_.uri_.UnsafeSetDefault(uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.uri) -} - -// .flyteidl.admin.DescriptionFormat format = 3; -inline void Description::clear_format() { - format_ = 0; -} -inline ::flyteidl::admin::DescriptionFormat Description::format() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Description.format) - return static_cast< ::flyteidl::admin::DescriptionFormat >(format_); -} -inline void Description::set_format(::flyteidl::admin::DescriptionFormat value) { - - format_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.format) -} - -// string icon_link = 4; -inline void Description::clear_icon_link() { - icon_link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Description::icon_link() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Description.icon_link) - return icon_link_.GetNoArena(); -} -inline void Description::set_icon_link(const ::std::string& value) { - - icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Description.icon_link) -} -#if LANG_CXX11 -inline void Description::set_icon_link(::std::string&& value) { - - icon_link_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Description.icon_link) -} -#endif -inline void Description::set_icon_link(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Description.icon_link) -} -inline void Description::set_icon_link(const char* value, size_t size) { - - icon_link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Description.icon_link) -} -inline ::std::string* Description::mutable_icon_link() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Description.icon_link) - return icon_link_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Description::release_icon_link() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Description.icon_link) - - return icon_link_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Description::set_allocated_icon_link(::std::string* icon_link) { - if (icon_link != nullptr) { - - } else { - - } - icon_link_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), icon_link); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Description.icon_link) -} - -inline bool Description::has_content() const { - return content_case() != CONTENT_NOT_SET; -} -inline void Description::clear_has_content() { - _oneof_case_[0] = CONTENT_NOT_SET; -} -inline Description::ContentCase Description::content_case() const { - return Description::ContentCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SourceCode - -// string link = 1; -inline void SourceCode::clear_link() { - link_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SourceCode::link() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SourceCode.link) - return link_.GetNoArena(); -} -inline void SourceCode::set_link(const ::std::string& value) { - - link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SourceCode.link) -} -#if LANG_CXX11 -inline void SourceCode::set_link(::std::string&& value) { - - link_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SourceCode.link) -} -#endif -inline void SourceCode::set_link(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SourceCode.link) -} -inline void SourceCode::set_link(const char* value, size_t size) { - - link_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SourceCode.link) -} -inline ::std::string* SourceCode::mutable_link() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SourceCode.link) - return link_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SourceCode::release_link() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SourceCode.link) - - return link_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SourceCode::set_allocated_link(::std::string* link) { - if (link != nullptr) { - - } else { - - } - link_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), link); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SourceCode.link) -} - -// ------------------------------------------------------------------- - -// DescriptionEntityList - -// repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; -inline int DescriptionEntityList::descriptionentities_size() const { - return descriptionentities_.size(); -} -inline void DescriptionEntityList::clear_descriptionentities() { - descriptionentities_.Clear(); -} -inline ::flyteidl::admin::DescriptionEntity* DescriptionEntityList::mutable_descriptionentities(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityList.descriptionEntities) - return descriptionentities_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >* -DescriptionEntityList::mutable_descriptionentities() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.DescriptionEntityList.descriptionEntities) - return &descriptionentities_; -} -inline const ::flyteidl::admin::DescriptionEntity& DescriptionEntityList::descriptionentities(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityList.descriptionEntities) - return descriptionentities_.Get(index); -} -inline ::flyteidl::admin::DescriptionEntity* DescriptionEntityList::add_descriptionentities() { - // @@protoc_insertion_point(field_add:flyteidl.admin.DescriptionEntityList.descriptionEntities) - return descriptionentities_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::DescriptionEntity >& -DescriptionEntityList::descriptionentities() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.DescriptionEntityList.descriptionEntities) - return descriptionentities_; -} - -// string token = 2; -inline void DescriptionEntityList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DescriptionEntityList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityList.token) - return token_.GetNoArena(); -} -inline void DescriptionEntityList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityList.token) -} -#if LANG_CXX11 -inline void DescriptionEntityList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityList.token) -} -#endif -inline void DescriptionEntityList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityList.token) -} -inline void DescriptionEntityList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityList.token) -} -inline ::std::string* DescriptionEntityList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DescriptionEntityList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DescriptionEntityList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityList.token) -} - -// ------------------------------------------------------------------- - -// DescriptionEntityListRequest - -// .flyteidl.core.ResourceType resource_type = 1; -inline void DescriptionEntityListRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType DescriptionEntityListRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void DescriptionEntityListRequest::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.resource_type) -} - -// .flyteidl.admin.NamedEntityIdentifier id = 2; -inline bool DescriptionEntityListRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& DescriptionEntityListRequest::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* DescriptionEntityListRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* DescriptionEntityListRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.id) - return id_; -} -inline void DescriptionEntityListRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* 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.DescriptionEntityListRequest.id) -} - -// uint32 limit = 3; -inline void DescriptionEntityListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 DescriptionEntityListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.limit) - return limit_; -} -inline void DescriptionEntityListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.limit) -} - -// string token = 4; -inline void DescriptionEntityListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DescriptionEntityListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.token) - return token_.GetNoArena(); -} -inline void DescriptionEntityListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.token) -} -#if LANG_CXX11 -inline void DescriptionEntityListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityListRequest.token) -} -#endif -inline void DescriptionEntityListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityListRequest.token) -} -inline void DescriptionEntityListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityListRequest.token) -} -inline ::std::string* DescriptionEntityListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DescriptionEntityListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DescriptionEntityListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.token) -} - -// string filters = 5; -inline void DescriptionEntityListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DescriptionEntityListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.filters) - return filters_.GetNoArena(); -} -inline void DescriptionEntityListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DescriptionEntityListRequest.filters) -} -#if LANG_CXX11 -inline void DescriptionEntityListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DescriptionEntityListRequest.filters) -} -#endif -inline void DescriptionEntityListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DescriptionEntityListRequest.filters) -} -inline void DescriptionEntityListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DescriptionEntityListRequest.filters) -} -inline ::std::string* DescriptionEntityListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DescriptionEntityListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DescriptionEntityListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 6; -inline bool DescriptionEntityListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& DescriptionEntityListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DescriptionEntityListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* DescriptionEntityListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DescriptionEntityListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* DescriptionEntityListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DescriptionEntityListRequest.sort_by) - return sort_by_; -} -inline void DescriptionEntityListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DescriptionEntityListRequest.sort_by) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::DescriptionFormat> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::DescriptionFormat>() { - return ::flyteidl::admin::DescriptionFormat_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fdescription_5fentity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc deleted file mode 100644 index f62d0ba8c8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/event.proto - -#include "flyteidl/admin/event.pb.h" -#include "flyteidl/admin/event.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h deleted file mode 100644 index ec8ae4e8c4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/event.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/event.proto -#ifndef GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED - -#include "flyteidl/admin/event.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc deleted file mode 100644 index 87191a9ca8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.cc +++ /dev/null @@ -1,3121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/event.proto - -#include "flyteidl/admin/event.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -namespace flyteidl { -namespace admin { -class EventErrorAlreadyInTerminalStateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EventErrorAlreadyInTerminalState_default_instance_; -class EventErrorIncompatibleClusterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EventErrorIncompatibleCluster_default_instance_; -class EventFailureReasonDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; - const ::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster_; -} _EventFailureReason_default_instance_; -class WorkflowExecutionEventRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionEventRequest_default_instance_; -class WorkflowExecutionEventResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionEventResponse_default_instance_; -class NodeExecutionEventRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionEventRequest_default_instance_; -class NodeExecutionEventResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionEventResponse_default_instance_; -class TaskExecutionEventRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionEventRequest_default_instance_; -class TaskExecutionEventResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionEventResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsEventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_; - new (ptr) ::flyteidl::admin::EventErrorAlreadyInTerminalState(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::EventErrorAlreadyInTerminalState::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto}, {}}; - -static void InitDefaultsEventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_; - new (ptr) ::flyteidl::admin::EventErrorIncompatibleCluster(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::EventErrorIncompatibleCluster::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto}, {}}; - -static void InitDefaultsEventFailureReason_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_EventFailureReason_default_instance_; - new (ptr) ::flyteidl::admin::EventFailureReason(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::EventFailureReason::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsEventFailureReason_flyteidl_2fadmin_2fevent_2eproto}, { - &scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base, - &scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionEventRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionEventRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { - &scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionEventResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionEventResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; - -static void InitDefaultsNodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionEventRequest_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionEventRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionEventRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { - &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsNodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionEventResponse_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionEventResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionEventResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; - -static void InitDefaultsTaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionEventRequest_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionEventRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionEventRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto}, { - &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsTaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionEventResponse_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionEventResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionEventResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fevent_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[9]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fevent_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fevent_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorAlreadyInTerminalState, current_phase_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorIncompatibleCluster, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventErrorIncompatibleCluster, cluster_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::EventFailureReasonDefaultTypeInternal, already_in_terminal_state_), - offsetof(::flyteidl::admin::EventFailureReasonDefaultTypeInternal, incompatible_cluster_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EventFailureReason, reason_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, request_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventRequest, event_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionEventResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, request_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventRequest, event_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionEventResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, request_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventRequest, event_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionEventResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::EventErrorAlreadyInTerminalState)}, - { 6, -1, sizeof(::flyteidl::admin::EventErrorIncompatibleCluster)}, - { 12, -1, sizeof(::flyteidl::admin::EventFailureReason)}, - { 20, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventRequest)}, - { 27, -1, sizeof(::flyteidl::admin::WorkflowExecutionEventResponse)}, - { 32, -1, sizeof(::flyteidl::admin::NodeExecutionEventRequest)}, - { 39, -1, sizeof(::flyteidl::admin::NodeExecutionEventResponse)}, - { 44, -1, sizeof(::flyteidl::admin::TaskExecutionEventRequest)}, - { 51, -1, sizeof(::flyteidl::admin::TaskExecutionEventResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_), - reinterpret_cast(&::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_), - reinterpret_cast(&::flyteidl::admin::_EventFailureReason_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionEventResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionEventResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionEventResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fevent_2eproto, "flyteidl/admin/event.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fevent_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fevent_2eproto, 9, file_level_enum_descriptors_flyteidl_2fadmin_2fevent_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fevent_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fevent_2eproto[] = - "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" - "dmin\032\032flyteidl/event/event.proto\"9\n Even" - "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" - "phase\030\001 \001(\t\"0\n\035EventErrorIncompatibleClu" - "ster\022\017\n\007cluster\030\001 \001(\t\"\304\001\n\022EventFailureRe" - "ason\022U\n\031already_in_terminal_state\030\001 \001(\0132" - "0.flyteidl.admin.EventErrorAlreadyInTerm" - "inalStateH\000\022M\n\024incompatible_cluster\030\002 \001(" - "\0132-.flyteidl.admin.EventErrorIncompatibl" - "eClusterH\000B\010\n\006reason\"j\n\035WorkflowExecutio" - "nEventRequest\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005eve" - "nt\030\002 \001(\0132&.flyteidl.event.WorkflowExecut" - "ionEvent\" \n\036WorkflowExecutionEventRespon" - "se\"b\n\031NodeExecutionEventRequest\022\022\n\nreque" - "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" - "ent.NodeExecutionEvent\"\034\n\032NodeExecutionE" - "ventResponse\"b\n\031TaskExecutionEventReques" - "t\022\022\n\nrequest_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".f" - "lyteidl.event.TaskExecutionEvent\"\034\n\032Task" - "ExecutionEventResponseB=Z;github.com/fly" - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" - "adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fevent_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fevent_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fevent_2eproto, - "flyteidl/admin/event.proto", &assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto, 853, -}; - -void AddDescriptors_flyteidl_2fadmin_2fevent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fevent_2fevent_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fevent_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fevent_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fevent_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void EventErrorAlreadyInTerminalState::InitAsDefaultInstance() { -} -class EventErrorAlreadyInTerminalState::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EventErrorAlreadyInTerminalState::kCurrentPhaseFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) -} -EventErrorAlreadyInTerminalState::EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.current_phase().size() > 0) { - current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventErrorAlreadyInTerminalState) -} - -void EventErrorAlreadyInTerminalState::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); - current_phase_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -EventErrorAlreadyInTerminalState::~EventErrorAlreadyInTerminalState() { - // @@protoc_insertion_point(destructor:flyteidl.admin.EventErrorAlreadyInTerminalState) - SharedDtor(); -} - -void EventErrorAlreadyInTerminalState::SharedDtor() { - current_phase_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void EventErrorAlreadyInTerminalState::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EventErrorAlreadyInTerminalState& EventErrorAlreadyInTerminalState::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EventErrorAlreadyInTerminalState_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void EventErrorAlreadyInTerminalState::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EventErrorAlreadyInTerminalState::_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) { - // string current_phase = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); - object = msg->mutable_current_phase(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EventErrorAlreadyInTerminalState::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.EventErrorAlreadyInTerminalState) - 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)) { - // string current_phase = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_current_phase())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->current_phase().data(), static_cast(this->current_phase().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase")); - } 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.EventErrorAlreadyInTerminalState) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventErrorAlreadyInTerminalState) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EventErrorAlreadyInTerminalState::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string current_phase = 1; - if (this->current_phase().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->current_phase().data(), static_cast(this->current_phase().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->current_phase(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventErrorAlreadyInTerminalState) -} - -::google::protobuf::uint8* EventErrorAlreadyInTerminalState::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string current_phase = 1; - if (this->current_phase().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->current_phase().data(), static_cast(this->current_phase().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->current_phase(), 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.EventErrorAlreadyInTerminalState) - return target; -} - -size_t EventErrorAlreadyInTerminalState::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - 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; - - // string current_phase = 1; - if (this->current_phase().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->current_phase()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EventErrorAlreadyInTerminalState::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - GOOGLE_DCHECK_NE(&from, this); - const EventErrorAlreadyInTerminalState* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventErrorAlreadyInTerminalState) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventErrorAlreadyInTerminalState) - MergeFrom(*source); - } -} - -void EventErrorAlreadyInTerminalState::MergeFrom(const EventErrorAlreadyInTerminalState& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.current_phase().size() > 0) { - - current_phase_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_phase_); - } -} - -void EventErrorAlreadyInTerminalState::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EventErrorAlreadyInTerminalState::CopyFrom(const EventErrorAlreadyInTerminalState& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventErrorAlreadyInTerminalState) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EventErrorAlreadyInTerminalState::IsInitialized() const { - return true; -} - -void EventErrorAlreadyInTerminalState::Swap(EventErrorAlreadyInTerminalState* other) { - if (other == this) return; - InternalSwap(other); -} -void EventErrorAlreadyInTerminalState::InternalSwap(EventErrorAlreadyInTerminalState* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - current_phase_.Swap(&other->current_phase_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata EventErrorAlreadyInTerminalState::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void EventErrorIncompatibleCluster::InitAsDefaultInstance() { -} -class EventErrorIncompatibleCluster::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EventErrorIncompatibleCluster::kClusterFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EventErrorIncompatibleCluster::EventErrorIncompatibleCluster() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.EventErrorIncompatibleCluster) -} -EventErrorIncompatibleCluster::EventErrorIncompatibleCluster(const EventErrorIncompatibleCluster& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cluster().size() > 0) { - cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventErrorIncompatibleCluster) -} - -void EventErrorIncompatibleCluster::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); - cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -EventErrorIncompatibleCluster::~EventErrorIncompatibleCluster() { - // @@protoc_insertion_point(destructor:flyteidl.admin.EventErrorIncompatibleCluster) - SharedDtor(); -} - -void EventErrorIncompatibleCluster::SharedDtor() { - cluster_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void EventErrorIncompatibleCluster::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EventErrorIncompatibleCluster& EventErrorIncompatibleCluster::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EventErrorIncompatibleCluster_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void EventErrorIncompatibleCluster::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventErrorIncompatibleCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EventErrorIncompatibleCluster::_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) { - // string cluster = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EventErrorIncompatibleCluster.cluster"); - object = msg->mutable_cluster(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EventErrorIncompatibleCluster::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.EventErrorIncompatibleCluster) - 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)) { - // string cluster = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cluster())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster().data(), static_cast(this->cluster().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EventErrorIncompatibleCluster.cluster")); - } 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.EventErrorIncompatibleCluster) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventErrorIncompatibleCluster) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EventErrorIncompatibleCluster::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventErrorIncompatibleCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster = 1; - if (this->cluster().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster().data(), static_cast(this->cluster().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EventErrorIncompatibleCluster.cluster"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cluster(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.EventErrorIncompatibleCluster) -} - -::google::protobuf::uint8* EventErrorIncompatibleCluster::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventErrorIncompatibleCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster = 1; - if (this->cluster().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster().data(), static_cast(this->cluster().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EventErrorIncompatibleCluster.cluster"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cluster(), 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.EventErrorIncompatibleCluster) - return target; -} - -size_t EventErrorIncompatibleCluster::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventErrorIncompatibleCluster) - 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; - - // string cluster = 1; - if (this->cluster().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cluster()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EventErrorIncompatibleCluster::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventErrorIncompatibleCluster) - GOOGLE_DCHECK_NE(&from, this); - const EventErrorIncompatibleCluster* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventErrorIncompatibleCluster) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventErrorIncompatibleCluster) - MergeFrom(*source); - } -} - -void EventErrorIncompatibleCluster::MergeFrom(const EventErrorIncompatibleCluster& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventErrorIncompatibleCluster) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cluster().size() > 0) { - - cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_); - } -} - -void EventErrorIncompatibleCluster::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventErrorIncompatibleCluster) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EventErrorIncompatibleCluster::CopyFrom(const EventErrorIncompatibleCluster& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventErrorIncompatibleCluster) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EventErrorIncompatibleCluster::IsInitialized() const { - return true; -} - -void EventErrorIncompatibleCluster::Swap(EventErrorIncompatibleCluster* other) { - if (other == this) return; - InternalSwap(other); -} -void EventErrorIncompatibleCluster::InternalSwap(EventErrorIncompatibleCluster* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cluster_.Swap(&other->cluster_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata EventErrorIncompatibleCluster::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void EventFailureReason::InitAsDefaultInstance() { - ::flyteidl::admin::_EventFailureReason_default_instance_.already_in_terminal_state_ = const_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>( - ::flyteidl::admin::EventErrorAlreadyInTerminalState::internal_default_instance()); - ::flyteidl::admin::_EventFailureReason_default_instance_.incompatible_cluster_ = const_cast< ::flyteidl::admin::EventErrorIncompatibleCluster*>( - ::flyteidl::admin::EventErrorIncompatibleCluster::internal_default_instance()); -} -class EventFailureReason::HasBitSetters { - public: - static const ::flyteidl::admin::EventErrorAlreadyInTerminalState& already_in_terminal_state(const EventFailureReason* msg); - static const ::flyteidl::admin::EventErrorIncompatibleCluster& incompatible_cluster(const EventFailureReason* msg); -}; - -const ::flyteidl::admin::EventErrorAlreadyInTerminalState& -EventFailureReason::HasBitSetters::already_in_terminal_state(const EventFailureReason* msg) { - return *msg->reason_.already_in_terminal_state_; -} -const ::flyteidl::admin::EventErrorIncompatibleCluster& -EventFailureReason::HasBitSetters::incompatible_cluster(const EventFailureReason* msg) { - return *msg->reason_.incompatible_cluster_; -} -void EventFailureReason::set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_reason(); - if (already_in_terminal_state) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - already_in_terminal_state = ::google::protobuf::internal::GetOwnedMessage( - message_arena, already_in_terminal_state, submessage_arena); - } - set_has_already_in_terminal_state(); - reason_.already_in_terminal_state_ = already_in_terminal_state; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventFailureReason.already_in_terminal_state) -} -void EventFailureReason::set_allocated_incompatible_cluster(::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_reason(); - if (incompatible_cluster) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - incompatible_cluster = ::google::protobuf::internal::GetOwnedMessage( - message_arena, incompatible_cluster, submessage_arena); - } - set_has_incompatible_cluster(); - reason_.incompatible_cluster_ = incompatible_cluster; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventFailureReason.incompatible_cluster) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EventFailureReason::kAlreadyInTerminalStateFieldNumber; -const int EventFailureReason::kIncompatibleClusterFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EventFailureReason::EventFailureReason() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.EventFailureReason) -} -EventFailureReason::EventFailureReason(const EventFailureReason& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_reason(); - switch (from.reason_case()) { - case kAlreadyInTerminalState: { - mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); - break; - } - case kIncompatibleCluster: { - mutable_incompatible_cluster()->::flyteidl::admin::EventErrorIncompatibleCluster::MergeFrom(from.incompatible_cluster()); - break; - } - case REASON_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EventFailureReason) -} - -void EventFailureReason::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); - clear_has_reason(); -} - -EventFailureReason::~EventFailureReason() { - // @@protoc_insertion_point(destructor:flyteidl.admin.EventFailureReason) - SharedDtor(); -} - -void EventFailureReason::SharedDtor() { - if (has_reason()) { - clear_reason(); - } -} - -void EventFailureReason::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EventFailureReason& EventFailureReason::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EventFailureReason_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void EventFailureReason::clear_reason() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.EventFailureReason) - switch (reason_case()) { - case kAlreadyInTerminalState: { - delete reason_.already_in_terminal_state_; - break; - } - case kIncompatibleCluster: { - delete reason_.incompatible_cluster_; - break; - } - case REASON_NOT_SET: { - break; - } - } - _oneof_case_[0] = REASON_NOT_SET; -} - - -void EventFailureReason::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EventFailureReason) - ::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* EventFailureReason::_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.EventErrorAlreadyInTerminalState already_in_terminal_state = 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::EventErrorAlreadyInTerminalState::_InternalParse; - object = msg->mutable_already_in_terminal_state(); - 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.EventErrorIncompatibleCluster incompatible_cluster = 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::EventErrorIncompatibleCluster::_InternalParse; - object = msg->mutable_incompatible_cluster(); - 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 EventFailureReason::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.EventFailureReason) - 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.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_already_in_terminal_state())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_incompatible_cluster())); - } 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.EventFailureReason) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.EventFailureReason) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EventFailureReason::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.EventFailureReason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - if (has_already_in_terminal_state()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::already_in_terminal_state(this), output); - } - - // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - if (has_incompatible_cluster()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::incompatible_cluster(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.EventFailureReason) -} - -::google::protobuf::uint8* EventFailureReason::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EventFailureReason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - if (has_already_in_terminal_state()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::already_in_terminal_state(this), target); - } - - // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - if (has_incompatible_cluster()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::incompatible_cluster(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.EventFailureReason) - return target; -} - -size_t EventFailureReason::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EventFailureReason) - 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.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - case kAlreadyInTerminalState: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reason_.already_in_terminal_state_); - break; - } - // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - case kIncompatibleCluster: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reason_.incompatible_cluster_); - break; - } - case REASON_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EventFailureReason::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EventFailureReason) - GOOGLE_DCHECK_NE(&from, this); - const EventFailureReason* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EventFailureReason) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EventFailureReason) - MergeFrom(*source); - } -} - -void EventFailureReason::MergeFrom(const EventFailureReason& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EventFailureReason) - 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 kAlreadyInTerminalState: { - mutable_already_in_terminal_state()->::flyteidl::admin::EventErrorAlreadyInTerminalState::MergeFrom(from.already_in_terminal_state()); - break; - } - case kIncompatibleCluster: { - mutable_incompatible_cluster()->::flyteidl::admin::EventErrorIncompatibleCluster::MergeFrom(from.incompatible_cluster()); - break; - } - case REASON_NOT_SET: { - break; - } - } -} - -void EventFailureReason::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EventFailureReason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EventFailureReason::CopyFrom(const EventFailureReason& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EventFailureReason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EventFailureReason::IsInitialized() const { - return true; -} - -void EventFailureReason::Swap(EventFailureReason* other) { - if (other == this) return; - InternalSwap(other); -} -void EventFailureReason::InternalSwap(EventFailureReason* 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 EventFailureReason::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionEventRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::WorkflowExecutionEvent*>( - ::flyteidl::event::WorkflowExecutionEvent::internal_default_instance()); -} -class WorkflowExecutionEventRequest::HasBitSetters { - public: - static const ::flyteidl::event::WorkflowExecutionEvent& event(const WorkflowExecutionEventRequest* msg); -}; - -const ::flyteidl::event::WorkflowExecutionEvent& -WorkflowExecutionEventRequest::HasBitSetters::event(const WorkflowExecutionEventRequest* msg) { - return *msg->event_; -} -void WorkflowExecutionEventRequest::clear_event() { - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionEventRequest::kRequestIdFieldNumber; -const int WorkflowExecutionEventRequest::kEventFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionEventRequest::WorkflowExecutionEventRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventRequest) -} -WorkflowExecutionEventRequest::WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.request_id().size() > 0) { - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - event_ = new ::flyteidl::event::WorkflowExecutionEvent(*from.event_); - } else { - event_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventRequest) -} - -void WorkflowExecutionEventRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - event_ = nullptr; -} - -WorkflowExecutionEventRequest::~WorkflowExecutionEventRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventRequest) - SharedDtor(); -} - -void WorkflowExecutionEventRequest::SharedDtor() { - request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete event_; -} - -void WorkflowExecutionEventRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionEventRequest& WorkflowExecutionEventRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionEventRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionEventRequest::_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) { - // string request_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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowExecutionEventRequest.request_id"); - object = msg->mutable_request_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.WorkflowExecutionEvent event = 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::event::WorkflowExecutionEvent::_InternalParse; - object = msg->mutable_event(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowExecutionEventRequest::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.WorkflowExecutionEventRequest) - 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)) { - // string request_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowExecutionEventRequest.request_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.WorkflowExecutionEvent event = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_event())); - } 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.WorkflowExecutionEventRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionEventRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_id(), output); - } - - // .flyteidl.event.WorkflowExecutionEvent event = 2; - if (this->has_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::event(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.WorkflowExecutionEventRequest) -} - -::google::protobuf::uint8* WorkflowExecutionEventRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowExecutionEventRequest.request_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_id(), target); - } - - // .flyteidl.event.WorkflowExecutionEvent event = 2; - if (this->has_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::event(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.WorkflowExecutionEventRequest) - return target; -} - -size_t WorkflowExecutionEventRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventRequest) - 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; - - // string request_id = 1; - if (this->request_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_id()); - } - - // .flyteidl.event.WorkflowExecutionEvent event = 2; - if (this->has_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionEventRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventRequest) - MergeFrom(*source); - } -} - -void WorkflowExecutionEventRequest::MergeFrom(const WorkflowExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.request_id().size() > 0) { - - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - mutable_event()->::flyteidl::event::WorkflowExecutionEvent::MergeFrom(from.event()); - } -} - -void WorkflowExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionEventRequest::CopyFrom(const WorkflowExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionEventRequest::IsInitialized() const { - return true; -} - -void WorkflowExecutionEventRequest::Swap(WorkflowExecutionEventRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionEventRequest::InternalSwap(WorkflowExecutionEventRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(event_, other->event_); -} - -::google::protobuf::Metadata WorkflowExecutionEventRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionEventResponse::InitAsDefaultInstance() { -} -class WorkflowExecutionEventResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionEventResponse::WorkflowExecutionEventResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionEventResponse) -} -WorkflowExecutionEventResponse::WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionEventResponse) -} - -void WorkflowExecutionEventResponse::SharedCtor() { -} - -WorkflowExecutionEventResponse::~WorkflowExecutionEventResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionEventResponse) - SharedDtor(); -} - -void WorkflowExecutionEventResponse::SharedDtor() { -} - -void WorkflowExecutionEventResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionEventResponse& WorkflowExecutionEventResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionEventResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionEventResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowExecutionEventResponse::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.WorkflowExecutionEventResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowExecutionEventResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionEventResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionEventResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionEventResponse) -} - -::google::protobuf::uint8* WorkflowExecutionEventResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.WorkflowExecutionEventResponse) - return target; -} - -size_t WorkflowExecutionEventResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionEventResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionEventResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionEventResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionEventResponse) - MergeFrom(*source); - } -} - -void WorkflowExecutionEventResponse::MergeFrom(const WorkflowExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void WorkflowExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionEventResponse::CopyFrom(const WorkflowExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionEventResponse::IsInitialized() const { - return true; -} - -void WorkflowExecutionEventResponse::Swap(WorkflowExecutionEventResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionEventResponse::InternalSwap(WorkflowExecutionEventResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata WorkflowExecutionEventResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionEventRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::NodeExecutionEvent*>( - ::flyteidl::event::NodeExecutionEvent::internal_default_instance()); -} -class NodeExecutionEventRequest::HasBitSetters { - public: - static const ::flyteidl::event::NodeExecutionEvent& event(const NodeExecutionEventRequest* msg); -}; - -const ::flyteidl::event::NodeExecutionEvent& -NodeExecutionEventRequest::HasBitSetters::event(const NodeExecutionEventRequest* msg) { - return *msg->event_; -} -void NodeExecutionEventRequest::clear_event() { - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionEventRequest::kRequestIdFieldNumber; -const int NodeExecutionEventRequest::kEventFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionEventRequest::NodeExecutionEventRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventRequest) -} -NodeExecutionEventRequest::NodeExecutionEventRequest(const NodeExecutionEventRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.request_id().size() > 0) { - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - event_ = new ::flyteidl::event::NodeExecutionEvent(*from.event_); - } else { - event_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventRequest) -} - -void NodeExecutionEventRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - event_ = nullptr; -} - -NodeExecutionEventRequest::~NodeExecutionEventRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventRequest) - SharedDtor(); -} - -void NodeExecutionEventRequest::SharedDtor() { - request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete event_; -} - -void NodeExecutionEventRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionEventRequest& NodeExecutionEventRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionEventRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionEventRequest::_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) { - // string request_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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionEventRequest.request_id"); - object = msg->mutable_request_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.NodeExecutionEvent event = 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::event::NodeExecutionEvent::_InternalParse; - object = msg->mutable_event(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionEventRequest::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.NodeExecutionEventRequest) - 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)) { - // string request_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionEventRequest.request_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.NodeExecutionEvent event = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_event())); - } 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.NodeExecutionEventRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionEventRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionEventRequest.request_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_id(), output); - } - - // .flyteidl.event.NodeExecutionEvent event = 2; - if (this->has_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::event(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.NodeExecutionEventRequest) -} - -::google::protobuf::uint8* NodeExecutionEventRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionEventRequest.request_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_id(), target); - } - - // .flyteidl.event.NodeExecutionEvent event = 2; - if (this->has_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::event(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.NodeExecutionEventRequest) - return target; -} - -size_t NodeExecutionEventRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventRequest) - 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; - - // string request_id = 1; - if (this->request_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_id()); - } - - // .flyteidl.event.NodeExecutionEvent event = 2; - if (this->has_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionEventRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventRequest) - MergeFrom(*source); - } -} - -void NodeExecutionEventRequest::MergeFrom(const NodeExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.request_id().size() > 0) { - - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - mutable_event()->::flyteidl::event::NodeExecutionEvent::MergeFrom(from.event()); - } -} - -void NodeExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionEventRequest::CopyFrom(const NodeExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionEventRequest::IsInitialized() const { - return true; -} - -void NodeExecutionEventRequest::Swap(NodeExecutionEventRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionEventRequest::InternalSwap(NodeExecutionEventRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(event_, other->event_); -} - -::google::protobuf::Metadata NodeExecutionEventRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionEventResponse::InitAsDefaultInstance() { -} -class NodeExecutionEventResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionEventResponse::NodeExecutionEventResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionEventResponse) -} -NodeExecutionEventResponse::NodeExecutionEventResponse(const NodeExecutionEventResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionEventResponse) -} - -void NodeExecutionEventResponse::SharedCtor() { -} - -NodeExecutionEventResponse::~NodeExecutionEventResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionEventResponse) - SharedDtor(); -} - -void NodeExecutionEventResponse::SharedDtor() { -} - -void NodeExecutionEventResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionEventResponse& NodeExecutionEventResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionEventResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionEventResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionEventResponse::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.NodeExecutionEventResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.NodeExecutionEventResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionEventResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionEventResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionEventResponse) -} - -::google::protobuf::uint8* NodeExecutionEventResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.NodeExecutionEventResponse) - return target; -} - -size_t NodeExecutionEventResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionEventResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionEventResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionEventResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionEventResponse) - MergeFrom(*source); - } -} - -void NodeExecutionEventResponse::MergeFrom(const NodeExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void NodeExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionEventResponse::CopyFrom(const NodeExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionEventResponse::IsInitialized() const { - return true; -} - -void NodeExecutionEventResponse::Swap(NodeExecutionEventResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionEventResponse::InternalSwap(NodeExecutionEventResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata NodeExecutionEventResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionEventRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionEventRequest_default_instance_._instance.get_mutable()->event_ = const_cast< ::flyteidl::event::TaskExecutionEvent*>( - ::flyteidl::event::TaskExecutionEvent::internal_default_instance()); -} -class TaskExecutionEventRequest::HasBitSetters { - public: - static const ::flyteidl::event::TaskExecutionEvent& event(const TaskExecutionEventRequest* msg); -}; - -const ::flyteidl::event::TaskExecutionEvent& -TaskExecutionEventRequest::HasBitSetters::event(const TaskExecutionEventRequest* msg) { - return *msg->event_; -} -void TaskExecutionEventRequest::clear_event() { - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionEventRequest::kRequestIdFieldNumber; -const int TaskExecutionEventRequest::kEventFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionEventRequest::TaskExecutionEventRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventRequest) -} -TaskExecutionEventRequest::TaskExecutionEventRequest(const TaskExecutionEventRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.request_id().size() > 0) { - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - event_ = new ::flyteidl::event::TaskExecutionEvent(*from.event_); - } else { - event_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventRequest) -} - -void TaskExecutionEventRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - request_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - event_ = nullptr; -} - -TaskExecutionEventRequest::~TaskExecutionEventRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventRequest) - SharedDtor(); -} - -void TaskExecutionEventRequest::SharedDtor() { - request_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete event_; -} - -void TaskExecutionEventRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionEventRequest& TaskExecutionEventRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEventRequest_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionEventRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && event_ != nullptr) { - delete event_; - } - event_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionEventRequest::_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) { - // string request_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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionEventRequest.request_id"); - object = msg->mutable_request_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.TaskExecutionEvent event = 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::event::TaskExecutionEvent::_InternalParse; - object = msg->mutable_event(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionEventRequest::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.TaskExecutionEventRequest) - 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)) { - // string request_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_request_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionEventRequest.request_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.TaskExecutionEvent event = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_event())); - } 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.TaskExecutionEventRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionEventRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionEventRequest.request_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->request_id(), output); - } - - // .flyteidl.event.TaskExecutionEvent event = 2; - if (this->has_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::event(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.TaskExecutionEventRequest) -} - -::google::protobuf::uint8* TaskExecutionEventRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string request_id = 1; - if (this->request_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->request_id().data(), static_cast(this->request_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionEventRequest.request_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->request_id(), target); - } - - // .flyteidl.event.TaskExecutionEvent event = 2; - if (this->has_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::event(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.TaskExecutionEventRequest) - return target; -} - -size_t TaskExecutionEventRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventRequest) - 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; - - // string request_id = 1; - if (this->request_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->request_id()); - } - - // .flyteidl.event.TaskExecutionEvent event = 2; - if (this->has_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *event_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionEventRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionEventRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventRequest) - MergeFrom(*source); - } -} - -void TaskExecutionEventRequest::MergeFrom(const TaskExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.request_id().size() > 0) { - - request_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.request_id_); - } - if (from.has_event()) { - mutable_event()->::flyteidl::event::TaskExecutionEvent::MergeFrom(from.event()); - } -} - -void TaskExecutionEventRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionEventRequest::CopyFrom(const TaskExecutionEventRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionEventRequest::IsInitialized() const { - return true; -} - -void TaskExecutionEventRequest::Swap(TaskExecutionEventRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionEventRequest::InternalSwap(TaskExecutionEventRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - request_id_.Swap(&other->request_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(event_, other->event_); -} - -::google::protobuf::Metadata TaskExecutionEventRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionEventResponse::InitAsDefaultInstance() { -} -class TaskExecutionEventResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionEventResponse::TaskExecutionEventResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionEventResponse) -} -TaskExecutionEventResponse::TaskExecutionEventResponse(const TaskExecutionEventResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionEventResponse) -} - -void TaskExecutionEventResponse::SharedCtor() { -} - -TaskExecutionEventResponse::~TaskExecutionEventResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionEventResponse) - SharedDtor(); -} - -void TaskExecutionEventResponse::SharedDtor() { -} - -void TaskExecutionEventResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionEventResponse& TaskExecutionEventResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEventResponse_flyteidl_2fadmin_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionEventResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionEventResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionEventResponse::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.TaskExecutionEventResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskExecutionEventResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionEventResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionEventResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionEventResponse) -} - -::google::protobuf::uint8* TaskExecutionEventResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionEventResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.TaskExecutionEventResponse) - return target; -} - -size_t TaskExecutionEventResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionEventResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionEventResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionEventResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionEventResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionEventResponse) - MergeFrom(*source); - } -} - -void TaskExecutionEventResponse::MergeFrom(const TaskExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionEventResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void TaskExecutionEventResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionEventResponse::CopyFrom(const TaskExecutionEventResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionEventResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionEventResponse::IsInitialized() const { - return true; -} - -void TaskExecutionEventResponse::Swap(TaskExecutionEventResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionEventResponse::InternalSwap(TaskExecutionEventResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata TaskExecutionEventResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fevent_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventErrorAlreadyInTerminalState* Arena::CreateMaybeMessage< ::flyteidl::admin::EventErrorAlreadyInTerminalState >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::EventErrorAlreadyInTerminalState >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventErrorIncompatibleCluster* Arena::CreateMaybeMessage< ::flyteidl::admin::EventErrorIncompatibleCluster >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::EventErrorIncompatibleCluster >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::EventFailureReason* Arena::CreateMaybeMessage< ::flyteidl::admin::EventFailureReason >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::EventFailureReason >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionEventRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionEventRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionEventResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionEventResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionEventRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionEventRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionEventResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionEventResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionEventRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionEventRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionEventRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionEventResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionEventResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionEventResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h deleted file mode 100644 index 0301c4c77a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/event.pb.h +++ /dev/null @@ -1,1749 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/event.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/event/event.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fevent_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fevent_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - 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[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fevent_2eproto(); -namespace flyteidl { -namespace admin { -class EventErrorAlreadyInTerminalState; -class EventErrorAlreadyInTerminalStateDefaultTypeInternal; -extern EventErrorAlreadyInTerminalStateDefaultTypeInternal _EventErrorAlreadyInTerminalState_default_instance_; -class EventErrorIncompatibleCluster; -class EventErrorIncompatibleClusterDefaultTypeInternal; -extern EventErrorIncompatibleClusterDefaultTypeInternal _EventErrorIncompatibleCluster_default_instance_; -class EventFailureReason; -class EventFailureReasonDefaultTypeInternal; -extern EventFailureReasonDefaultTypeInternal _EventFailureReason_default_instance_; -class NodeExecutionEventRequest; -class NodeExecutionEventRequestDefaultTypeInternal; -extern NodeExecutionEventRequestDefaultTypeInternal _NodeExecutionEventRequest_default_instance_; -class NodeExecutionEventResponse; -class NodeExecutionEventResponseDefaultTypeInternal; -extern NodeExecutionEventResponseDefaultTypeInternal _NodeExecutionEventResponse_default_instance_; -class TaskExecutionEventRequest; -class TaskExecutionEventRequestDefaultTypeInternal; -extern TaskExecutionEventRequestDefaultTypeInternal _TaskExecutionEventRequest_default_instance_; -class TaskExecutionEventResponse; -class TaskExecutionEventResponseDefaultTypeInternal; -extern TaskExecutionEventResponseDefaultTypeInternal _TaskExecutionEventResponse_default_instance_; -class WorkflowExecutionEventRequest; -class WorkflowExecutionEventRequestDefaultTypeInternal; -extern WorkflowExecutionEventRequestDefaultTypeInternal _WorkflowExecutionEventRequest_default_instance_; -class WorkflowExecutionEventResponse; -class WorkflowExecutionEventResponseDefaultTypeInternal; -extern WorkflowExecutionEventResponseDefaultTypeInternal _WorkflowExecutionEventResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::EventErrorAlreadyInTerminalState* Arena::CreateMaybeMessage<::flyteidl::admin::EventErrorAlreadyInTerminalState>(Arena*); -template<> ::flyteidl::admin::EventErrorIncompatibleCluster* Arena::CreateMaybeMessage<::flyteidl::admin::EventErrorIncompatibleCluster>(Arena*); -template<> ::flyteidl::admin::EventFailureReason* Arena::CreateMaybeMessage<::flyteidl::admin::EventFailureReason>(Arena*); -template<> ::flyteidl::admin::NodeExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionEventRequest>(Arena*); -template<> ::flyteidl::admin::NodeExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionEventResponse>(Arena*); -template<> ::flyteidl::admin::TaskExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionEventRequest>(Arena*); -template<> ::flyteidl::admin::TaskExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionEventResponse>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionEventRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionEventRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionEventResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionEventResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class EventErrorAlreadyInTerminalState final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventErrorAlreadyInTerminalState) */ { - public: - EventErrorAlreadyInTerminalState(); - virtual ~EventErrorAlreadyInTerminalState(); - - EventErrorAlreadyInTerminalState(const EventErrorAlreadyInTerminalState& from); - - inline EventErrorAlreadyInTerminalState& operator=(const EventErrorAlreadyInTerminalState& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EventErrorAlreadyInTerminalState(EventErrorAlreadyInTerminalState&& from) noexcept - : EventErrorAlreadyInTerminalState() { - *this = ::std::move(from); - } - - inline EventErrorAlreadyInTerminalState& operator=(EventErrorAlreadyInTerminalState&& 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 EventErrorAlreadyInTerminalState& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EventErrorAlreadyInTerminalState* internal_default_instance() { - return reinterpret_cast( - &_EventErrorAlreadyInTerminalState_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(EventErrorAlreadyInTerminalState* other); - friend void swap(EventErrorAlreadyInTerminalState& a, EventErrorAlreadyInTerminalState& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EventErrorAlreadyInTerminalState* New() const final { - return CreateMaybeMessage(nullptr); - } - - EventErrorAlreadyInTerminalState* 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 EventErrorAlreadyInTerminalState& from); - void MergeFrom(const EventErrorAlreadyInTerminalState& 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(EventErrorAlreadyInTerminalState* 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 ------------------------------------------------------- - - // string current_phase = 1; - void clear_current_phase(); - static const int kCurrentPhaseFieldNumber = 1; - const ::std::string& current_phase() const; - void set_current_phase(const ::std::string& value); - #if LANG_CXX11 - void set_current_phase(::std::string&& value); - #endif - void set_current_phase(const char* value); - void set_current_phase(const char* value, size_t size); - ::std::string* mutable_current_phase(); - ::std::string* release_current_phase(); - void set_allocated_current_phase(::std::string* current_phase); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr current_phase_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class EventErrorIncompatibleCluster final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventErrorIncompatibleCluster) */ { - public: - EventErrorIncompatibleCluster(); - virtual ~EventErrorIncompatibleCluster(); - - EventErrorIncompatibleCluster(const EventErrorIncompatibleCluster& from); - - inline EventErrorIncompatibleCluster& operator=(const EventErrorIncompatibleCluster& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EventErrorIncompatibleCluster(EventErrorIncompatibleCluster&& from) noexcept - : EventErrorIncompatibleCluster() { - *this = ::std::move(from); - } - - inline EventErrorIncompatibleCluster& operator=(EventErrorIncompatibleCluster&& 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 EventErrorIncompatibleCluster& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EventErrorIncompatibleCluster* internal_default_instance() { - return reinterpret_cast( - &_EventErrorIncompatibleCluster_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(EventErrorIncompatibleCluster* other); - friend void swap(EventErrorIncompatibleCluster& a, EventErrorIncompatibleCluster& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EventErrorIncompatibleCluster* New() const final { - return CreateMaybeMessage(nullptr); - } - - EventErrorIncompatibleCluster* 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 EventErrorIncompatibleCluster& from); - void MergeFrom(const EventErrorIncompatibleCluster& 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(EventErrorIncompatibleCluster* 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 ------------------------------------------------------- - - // string cluster = 1; - void clear_cluster(); - static const int kClusterFieldNumber = 1; - const ::std::string& cluster() const; - void set_cluster(const ::std::string& value); - #if LANG_CXX11 - void set_cluster(::std::string&& value); - #endif - void set_cluster(const char* value); - void set_cluster(const char* value, size_t size); - ::std::string* mutable_cluster(); - ::std::string* release_cluster(); - void set_allocated_cluster(::std::string* cluster); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorIncompatibleCluster) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cluster_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class EventFailureReason final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EventFailureReason) */ { - public: - EventFailureReason(); - virtual ~EventFailureReason(); - - EventFailureReason(const EventFailureReason& from); - - inline EventFailureReason& operator=(const EventFailureReason& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EventFailureReason(EventFailureReason&& from) noexcept - : EventFailureReason() { - *this = ::std::move(from); - } - - inline EventFailureReason& operator=(EventFailureReason&& 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 EventFailureReason& default_instance(); - - enum ReasonCase { - kAlreadyInTerminalState = 1, - kIncompatibleCluster = 2, - REASON_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EventFailureReason* internal_default_instance() { - return reinterpret_cast( - &_EventFailureReason_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(EventFailureReason* other); - friend void swap(EventFailureReason& a, EventFailureReason& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EventFailureReason* New() const final { - return CreateMaybeMessage(nullptr); - } - - EventFailureReason* 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 EventFailureReason& from); - void MergeFrom(const EventFailureReason& 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(EventFailureReason* 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.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - bool has_already_in_terminal_state() const; - void clear_already_in_terminal_state(); - static const int kAlreadyInTerminalStateFieldNumber = 1; - const ::flyteidl::admin::EventErrorAlreadyInTerminalState& already_in_terminal_state() const; - ::flyteidl::admin::EventErrorAlreadyInTerminalState* release_already_in_terminal_state(); - ::flyteidl::admin::EventErrorAlreadyInTerminalState* mutable_already_in_terminal_state(); - void set_allocated_already_in_terminal_state(::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state); - - // .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - bool has_incompatible_cluster() const; - void clear_incompatible_cluster(); - static const int kIncompatibleClusterFieldNumber = 2; - const ::flyteidl::admin::EventErrorIncompatibleCluster& incompatible_cluster() const; - ::flyteidl::admin::EventErrorIncompatibleCluster* release_incompatible_cluster(); - ::flyteidl::admin::EventErrorIncompatibleCluster* mutable_incompatible_cluster(); - void set_allocated_incompatible_cluster(::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster); - - void clear_reason(); - ReasonCase reason_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) - private: - class HasBitSetters; - void set_has_already_in_terminal_state(); - void set_has_incompatible_cluster(); - - inline bool has_reason() const; - inline void clear_has_reason(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ReasonUnion { - ReasonUnion() {} - ::flyteidl::admin::EventErrorAlreadyInTerminalState* already_in_terminal_state_; - ::flyteidl::admin::EventErrorIncompatibleCluster* incompatible_cluster_; - } reason_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionEventRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventRequest) */ { - public: - WorkflowExecutionEventRequest(); - virtual ~WorkflowExecutionEventRequest(); - - WorkflowExecutionEventRequest(const WorkflowExecutionEventRequest& from); - - inline WorkflowExecutionEventRequest& operator=(const WorkflowExecutionEventRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionEventRequest(WorkflowExecutionEventRequest&& from) noexcept - : WorkflowExecutionEventRequest() { - *this = ::std::move(from); - } - - inline WorkflowExecutionEventRequest& operator=(WorkflowExecutionEventRequest&& 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 WorkflowExecutionEventRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionEventRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionEventRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(WorkflowExecutionEventRequest* other); - friend void swap(WorkflowExecutionEventRequest& a, WorkflowExecutionEventRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionEventRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionEventRequest* 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 WorkflowExecutionEventRequest& from); - void MergeFrom(const WorkflowExecutionEventRequest& 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(WorkflowExecutionEventRequest* 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 ------------------------------------------------------- - - // string request_id = 1; - void clear_request_id(); - static const int kRequestIdFieldNumber = 1; - const ::std::string& request_id() const; - void set_request_id(const ::std::string& value); - #if LANG_CXX11 - void set_request_id(::std::string&& value); - #endif - void set_request_id(const char* value); - void set_request_id(const char* value, size_t size); - ::std::string* mutable_request_id(); - ::std::string* release_request_id(); - void set_allocated_request_id(::std::string* request_id); - - // .flyteidl.event.WorkflowExecutionEvent event = 2; - bool has_event() const; - void clear_event(); - static const int kEventFieldNumber = 2; - const ::flyteidl::event::WorkflowExecutionEvent& event() const; - ::flyteidl::event::WorkflowExecutionEvent* release_event(); - ::flyteidl::event::WorkflowExecutionEvent* mutable_event(); - void set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr request_id_; - ::flyteidl::event::WorkflowExecutionEvent* event_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionEventResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionEventResponse) */ { - public: - WorkflowExecutionEventResponse(); - virtual ~WorkflowExecutionEventResponse(); - - WorkflowExecutionEventResponse(const WorkflowExecutionEventResponse& from); - - inline WorkflowExecutionEventResponse& operator=(const WorkflowExecutionEventResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionEventResponse(WorkflowExecutionEventResponse&& from) noexcept - : WorkflowExecutionEventResponse() { - *this = ::std::move(from); - } - - inline WorkflowExecutionEventResponse& operator=(WorkflowExecutionEventResponse&& 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 WorkflowExecutionEventResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionEventResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionEventResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(WorkflowExecutionEventResponse* other); - friend void swap(WorkflowExecutionEventResponse& a, WorkflowExecutionEventResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionEventResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionEventResponse* 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 WorkflowExecutionEventResponse& from); - void MergeFrom(const WorkflowExecutionEventResponse& 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(WorkflowExecutionEventResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionEventRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventRequest) */ { - public: - NodeExecutionEventRequest(); - virtual ~NodeExecutionEventRequest(); - - NodeExecutionEventRequest(const NodeExecutionEventRequest& from); - - inline NodeExecutionEventRequest& operator=(const NodeExecutionEventRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionEventRequest(NodeExecutionEventRequest&& from) noexcept - : NodeExecutionEventRequest() { - *this = ::std::move(from); - } - - inline NodeExecutionEventRequest& operator=(NodeExecutionEventRequest&& 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 NodeExecutionEventRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionEventRequest* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionEventRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(NodeExecutionEventRequest* other); - friend void swap(NodeExecutionEventRequest& a, NodeExecutionEventRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionEventRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionEventRequest* 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 NodeExecutionEventRequest& from); - void MergeFrom(const NodeExecutionEventRequest& 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(NodeExecutionEventRequest* 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 ------------------------------------------------------- - - // string request_id = 1; - void clear_request_id(); - static const int kRequestIdFieldNumber = 1; - const ::std::string& request_id() const; - void set_request_id(const ::std::string& value); - #if LANG_CXX11 - void set_request_id(::std::string&& value); - #endif - void set_request_id(const char* value); - void set_request_id(const char* value, size_t size); - ::std::string* mutable_request_id(); - ::std::string* release_request_id(); - void set_allocated_request_id(::std::string* request_id); - - // .flyteidl.event.NodeExecutionEvent event = 2; - bool has_event() const; - void clear_event(); - static const int kEventFieldNumber = 2; - const ::flyteidl::event::NodeExecutionEvent& event() const; - ::flyteidl::event::NodeExecutionEvent* release_event(); - ::flyteidl::event::NodeExecutionEvent* mutable_event(); - void set_allocated_event(::flyteidl::event::NodeExecutionEvent* event); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr request_id_; - ::flyteidl::event::NodeExecutionEvent* event_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionEventResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionEventResponse) */ { - public: - NodeExecutionEventResponse(); - virtual ~NodeExecutionEventResponse(); - - NodeExecutionEventResponse(const NodeExecutionEventResponse& from); - - inline NodeExecutionEventResponse& operator=(const NodeExecutionEventResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionEventResponse(NodeExecutionEventResponse&& from) noexcept - : NodeExecutionEventResponse() { - *this = ::std::move(from); - } - - inline NodeExecutionEventResponse& operator=(NodeExecutionEventResponse&& 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 NodeExecutionEventResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionEventResponse* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionEventResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(NodeExecutionEventResponse* other); - friend void swap(NodeExecutionEventResponse& a, NodeExecutionEventResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionEventResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionEventResponse* 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 NodeExecutionEventResponse& from); - void MergeFrom(const NodeExecutionEventResponse& 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(NodeExecutionEventResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionEventRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventRequest) */ { - public: - TaskExecutionEventRequest(); - virtual ~TaskExecutionEventRequest(); - - TaskExecutionEventRequest(const TaskExecutionEventRequest& from); - - inline TaskExecutionEventRequest& operator=(const TaskExecutionEventRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionEventRequest(TaskExecutionEventRequest&& from) noexcept - : TaskExecutionEventRequest() { - *this = ::std::move(from); - } - - inline TaskExecutionEventRequest& operator=(TaskExecutionEventRequest&& 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 TaskExecutionEventRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionEventRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionEventRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(TaskExecutionEventRequest* other); - friend void swap(TaskExecutionEventRequest& a, TaskExecutionEventRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionEventRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionEventRequest* 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 TaskExecutionEventRequest& from); - void MergeFrom(const TaskExecutionEventRequest& 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(TaskExecutionEventRequest* 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 ------------------------------------------------------- - - // string request_id = 1; - void clear_request_id(); - static const int kRequestIdFieldNumber = 1; - const ::std::string& request_id() const; - void set_request_id(const ::std::string& value); - #if LANG_CXX11 - void set_request_id(::std::string&& value); - #endif - void set_request_id(const char* value); - void set_request_id(const char* value, size_t size); - ::std::string* mutable_request_id(); - ::std::string* release_request_id(); - void set_allocated_request_id(::std::string* request_id); - - // .flyteidl.event.TaskExecutionEvent event = 2; - bool has_event() const; - void clear_event(); - static const int kEventFieldNumber = 2; - const ::flyteidl::event::TaskExecutionEvent& event() const; - ::flyteidl::event::TaskExecutionEvent* release_event(); - ::flyteidl::event::TaskExecutionEvent* mutable_event(); - void set_allocated_event(::flyteidl::event::TaskExecutionEvent* event); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr request_id_; - ::flyteidl::event::TaskExecutionEvent* event_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionEventResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionEventResponse) */ { - public: - TaskExecutionEventResponse(); - virtual ~TaskExecutionEventResponse(); - - TaskExecutionEventResponse(const TaskExecutionEventResponse& from); - - inline TaskExecutionEventResponse& operator=(const TaskExecutionEventResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionEventResponse(TaskExecutionEventResponse&& from) noexcept - : TaskExecutionEventResponse() { - *this = ::std::move(from); - } - - inline TaskExecutionEventResponse& operator=(TaskExecutionEventResponse&& 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 TaskExecutionEventResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionEventResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionEventResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TaskExecutionEventResponse* other); - friend void swap(TaskExecutionEventResponse& a, TaskExecutionEventResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionEventResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionEventResponse* 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 TaskExecutionEventResponse& from); - void MergeFrom(const TaskExecutionEventResponse& 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(TaskExecutionEventResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fevent_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// EventErrorAlreadyInTerminalState - -// string current_phase = 1; -inline void EventErrorAlreadyInTerminalState::clear_current_phase() { - current_phase_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EventErrorAlreadyInTerminalState::current_phase() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) - return current_phase_.GetNoArena(); -} -inline void EventErrorAlreadyInTerminalState::set_current_phase(const ::std::string& value) { - - current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) -} -#if LANG_CXX11 -inline void EventErrorAlreadyInTerminalState::set_current_phase(::std::string&& value) { - - current_phase_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) -} -#endif -inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) -} -inline void EventErrorAlreadyInTerminalState::set_current_phase(const char* value, size_t size) { - - current_phase_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) -} -inline ::std::string* EventErrorAlreadyInTerminalState::mutable_current_phase() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) - return current_phase_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EventErrorAlreadyInTerminalState::release_current_phase() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) - - return current_phase_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EventErrorAlreadyInTerminalState::set_allocated_current_phase(::std::string* current_phase) { - if (current_phase != nullptr) { - - } else { - - } - current_phase_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_phase); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventErrorAlreadyInTerminalState.current_phase) -} - -// ------------------------------------------------------------------- - -// EventErrorIncompatibleCluster - -// string cluster = 1; -inline void EventErrorIncompatibleCluster::clear_cluster() { - cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EventErrorIncompatibleCluster::cluster() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EventErrorIncompatibleCluster.cluster) - return cluster_.GetNoArena(); -} -inline void EventErrorIncompatibleCluster::set_cluster(const ::std::string& value) { - - cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.EventErrorIncompatibleCluster.cluster) -} -#if LANG_CXX11 -inline void EventErrorIncompatibleCluster::set_cluster(::std::string&& value) { - - cluster_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EventErrorIncompatibleCluster.cluster) -} -#endif -inline void EventErrorIncompatibleCluster::set_cluster(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EventErrorIncompatibleCluster.cluster) -} -inline void EventErrorIncompatibleCluster::set_cluster(const char* value, size_t size) { - - cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EventErrorIncompatibleCluster.cluster) -} -inline ::std::string* EventErrorIncompatibleCluster::mutable_cluster() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventErrorIncompatibleCluster.cluster) - return cluster_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EventErrorIncompatibleCluster::release_cluster() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EventErrorIncompatibleCluster.cluster) - - return cluster_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EventErrorIncompatibleCluster::set_allocated_cluster(::std::string* cluster) { - if (cluster != nullptr) { - - } else { - - } - cluster_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EventErrorIncompatibleCluster.cluster) -} - -// ------------------------------------------------------------------- - -// EventFailureReason - -// .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; -inline bool EventFailureReason::has_already_in_terminal_state() const { - return reason_case() == kAlreadyInTerminalState; -} -inline void EventFailureReason::set_has_already_in_terminal_state() { - _oneof_case_[0] = kAlreadyInTerminalState; -} -inline void EventFailureReason::clear_already_in_terminal_state() { - if (has_already_in_terminal_state()) { - delete reason_.already_in_terminal_state_; - clear_has_reason(); - } -} -inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::release_already_in_terminal_state() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EventFailureReason.already_in_terminal_state) - if (has_already_in_terminal_state()) { - clear_has_reason(); - ::flyteidl::admin::EventErrorAlreadyInTerminalState* temp = reason_.already_in_terminal_state_; - reason_.already_in_terminal_state_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::EventErrorAlreadyInTerminalState& EventFailureReason::already_in_terminal_state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EventFailureReason.already_in_terminal_state) - return has_already_in_terminal_state() - ? *reason_.already_in_terminal_state_ - : *reinterpret_cast< ::flyteidl::admin::EventErrorAlreadyInTerminalState*>(&::flyteidl::admin::_EventErrorAlreadyInTerminalState_default_instance_); -} -inline ::flyteidl::admin::EventErrorAlreadyInTerminalState* EventFailureReason::mutable_already_in_terminal_state() { - if (!has_already_in_terminal_state()) { - clear_reason(); - set_has_already_in_terminal_state(); - reason_.already_in_terminal_state_ = CreateMaybeMessage< ::flyteidl::admin::EventErrorAlreadyInTerminalState >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventFailureReason.already_in_terminal_state) - return reason_.already_in_terminal_state_; -} - -// .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; -inline bool EventFailureReason::has_incompatible_cluster() const { - return reason_case() == kIncompatibleCluster; -} -inline void EventFailureReason::set_has_incompatible_cluster() { - _oneof_case_[0] = kIncompatibleCluster; -} -inline void EventFailureReason::clear_incompatible_cluster() { - if (has_incompatible_cluster()) { - delete reason_.incompatible_cluster_; - clear_has_reason(); - } -} -inline ::flyteidl::admin::EventErrorIncompatibleCluster* EventFailureReason::release_incompatible_cluster() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EventFailureReason.incompatible_cluster) - if (has_incompatible_cluster()) { - clear_has_reason(); - ::flyteidl::admin::EventErrorIncompatibleCluster* temp = reason_.incompatible_cluster_; - reason_.incompatible_cluster_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::EventErrorIncompatibleCluster& EventFailureReason::incompatible_cluster() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EventFailureReason.incompatible_cluster) - return has_incompatible_cluster() - ? *reason_.incompatible_cluster_ - : *reinterpret_cast< ::flyteidl::admin::EventErrorIncompatibleCluster*>(&::flyteidl::admin::_EventErrorIncompatibleCluster_default_instance_); -} -inline ::flyteidl::admin::EventErrorIncompatibleCluster* EventFailureReason::mutable_incompatible_cluster() { - if (!has_incompatible_cluster()) { - clear_reason(); - set_has_incompatible_cluster(); - reason_.incompatible_cluster_ = CreateMaybeMessage< ::flyteidl::admin::EventErrorIncompatibleCluster >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EventFailureReason.incompatible_cluster) - return reason_.incompatible_cluster_; -} - -inline bool EventFailureReason::has_reason() const { - return reason_case() != REASON_NOT_SET; -} -inline void EventFailureReason::clear_has_reason() { - _oneof_case_[0] = REASON_NOT_SET; -} -inline EventFailureReason::ReasonCase EventFailureReason::reason_case() const { - return EventFailureReason::ReasonCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// WorkflowExecutionEventRequest - -// string request_id = 1; -inline void WorkflowExecutionEventRequest::clear_request_id() { - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowExecutionEventRequest::request_id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.request_id) - return request_id_.GetNoArena(); -} -inline void WorkflowExecutionEventRequest::set_request_id(const ::std::string& value) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionEventRequest.request_id) -} -#if LANG_CXX11 -inline void WorkflowExecutionEventRequest::set_request_id(::std::string&& value) { - - request_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowExecutionEventRequest.request_id) -} -#endif -inline void WorkflowExecutionEventRequest::set_request_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowExecutionEventRequest.request_id) -} -inline void WorkflowExecutionEventRequest::set_request_id(const char* value, size_t size) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowExecutionEventRequest.request_id) -} -inline ::std::string* WorkflowExecutionEventRequest::mutable_request_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.request_id) - return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionEventRequest::release_request_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.request_id) - - return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { - if (request_id != nullptr) { - - } else { - - } - request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.request_id) -} - -// .flyteidl.event.WorkflowExecutionEvent event = 2; -inline bool WorkflowExecutionEventRequest::has_event() const { - return this != internal_default_instance() && event_ != nullptr; -} -inline const ::flyteidl::event::WorkflowExecutionEvent& WorkflowExecutionEventRequest::event() const { - const ::flyteidl::event::WorkflowExecutionEvent* p = event_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionEventRequest.event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_WorkflowExecutionEvent_default_instance_); -} -inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::release_event() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionEventRequest.event) - - ::flyteidl::event::WorkflowExecutionEvent* temp = event_; - event_ = nullptr; - return temp; -} -inline ::flyteidl::event::WorkflowExecutionEvent* WorkflowExecutionEventRequest::mutable_event() { - - if (event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::WorkflowExecutionEvent>(GetArenaNoVirtual()); - event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionEventRequest.event) - return event_; -} -inline void WorkflowExecutionEventRequest::set_allocated_event(::flyteidl::event::WorkflowExecutionEvent* event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); - } - if (event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, event, submessage_arena); - } - - } else { - - } - event_ = event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionEventRequest.event) -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionEventResponse - -// ------------------------------------------------------------------- - -// NodeExecutionEventRequest - -// string request_id = 1; -inline void NodeExecutionEventRequest::clear_request_id() { - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEventRequest::request_id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.request_id) - return request_id_.GetNoArena(); -} -inline void NodeExecutionEventRequest::set_request_id(const ::std::string& value) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionEventRequest.request_id) -} -#if LANG_CXX11 -inline void NodeExecutionEventRequest::set_request_id(::std::string&& value) { - - request_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionEventRequest.request_id) -} -#endif -inline void NodeExecutionEventRequest::set_request_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionEventRequest.request_id) -} -inline void NodeExecutionEventRequest::set_request_id(const char* value, size_t size) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionEventRequest.request_id) -} -inline ::std::string* NodeExecutionEventRequest::mutable_request_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.request_id) - return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEventRequest::release_request_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.request_id) - - return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { - if (request_id != nullptr) { - - } else { - - } - request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.request_id) -} - -// .flyteidl.event.NodeExecutionEvent event = 2; -inline bool NodeExecutionEventRequest::has_event() const { - return this != internal_default_instance() && event_ != nullptr; -} -inline const ::flyteidl::event::NodeExecutionEvent& NodeExecutionEventRequest::event() const { - const ::flyteidl::event::NodeExecutionEvent* p = event_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionEventRequest.event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_NodeExecutionEvent_default_instance_); -} -inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::release_event() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionEventRequest.event) - - ::flyteidl::event::NodeExecutionEvent* temp = event_; - event_ = nullptr; - return temp; -} -inline ::flyteidl::event::NodeExecutionEvent* NodeExecutionEventRequest::mutable_event() { - - if (event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::NodeExecutionEvent>(GetArenaNoVirtual()); - event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionEventRequest.event) - return event_; -} -inline void NodeExecutionEventRequest::set_allocated_event(::flyteidl::event::NodeExecutionEvent* event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); - } - if (event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, event, submessage_arena); - } - - } else { - - } - event_ = event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionEventRequest.event) -} - -// ------------------------------------------------------------------- - -// NodeExecutionEventResponse - -// ------------------------------------------------------------------- - -// TaskExecutionEventRequest - -// string request_id = 1; -inline void TaskExecutionEventRequest::clear_request_id() { - request_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionEventRequest::request_id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.request_id) - return request_id_.GetNoArena(); -} -inline void TaskExecutionEventRequest::set_request_id(const ::std::string& value) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionEventRequest.request_id) -} -#if LANG_CXX11 -inline void TaskExecutionEventRequest::set_request_id(::std::string&& value) { - - request_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionEventRequest.request_id) -} -#endif -inline void TaskExecutionEventRequest::set_request_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionEventRequest.request_id) -} -inline void TaskExecutionEventRequest::set_request_id(const char* value, size_t size) { - - request_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionEventRequest.request_id) -} -inline ::std::string* TaskExecutionEventRequest::mutable_request_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.request_id) - return request_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEventRequest::release_request_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.request_id) - - return request_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionEventRequest::set_allocated_request_id(::std::string* request_id) { - if (request_id != nullptr) { - - } else { - - } - request_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), request_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.request_id) -} - -// .flyteidl.event.TaskExecutionEvent event = 2; -inline bool TaskExecutionEventRequest::has_event() const { - return this != internal_default_instance() && event_ != nullptr; -} -inline const ::flyteidl::event::TaskExecutionEvent& TaskExecutionEventRequest::event() const { - const ::flyteidl::event::TaskExecutionEvent* p = event_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionEventRequest.event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_TaskExecutionEvent_default_instance_); -} -inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::release_event() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionEventRequest.event) - - ::flyteidl::event::TaskExecutionEvent* temp = event_; - event_ = nullptr; - return temp; -} -inline ::flyteidl::event::TaskExecutionEvent* TaskExecutionEventRequest::mutable_event() { - - if (event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(GetArenaNoVirtual()); - event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionEventRequest.event) - return event_; -} -inline void TaskExecutionEventRequest::set_allocated_event(::flyteidl::event::TaskExecutionEvent* event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(event_); - } - if (event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, event, submessage_arena); - } - - } else { - - } - event_ = event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionEventRequest.event) -} - -// ------------------------------------------------------------------- - -// TaskExecutionEventResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fevent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc deleted file mode 100644 index 2f53b42b6c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/execution.proto - -#include "flyteidl/admin/execution.pb.h" -#include "flyteidl/admin/execution.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h deleted file mode 100644 index 46d43a8284..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/execution.proto -#ifndef GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED - -#include "flyteidl/admin/execution.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc deleted file mode 100644 index 6165cc0849..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.cc +++ /dev/null @@ -1,11718 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/execution.proto - -#include "flyteidl/admin/execution.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<13> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; -namespace flyteidl { -namespace admin { -class ExecutionCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionCreateRequest_default_instance_; -class ExecutionRelaunchRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionRelaunchRequest_default_instance_; -class ExecutionRecoverRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionRecoverRequest_default_instance_; -class ExecutionCreateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionCreateResponse_default_instance_; -class WorkflowExecutionGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionGetRequest_default_instance_; -class ExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Execution_default_instance_; -class ExecutionListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionList_default_instance_; -class LiteralMapBlobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::LiteralMap* values_; - ::google::protobuf::internal::ArenaStringPtr uri_; -} _LiteralMapBlob_default_instance_; -class AbortMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AbortMetadata_default_instance_; -class ExecutionClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::admin::LiteralMapBlob* outputs_; - const ::flyteidl::core::ExecutionError* error_; - ::google::protobuf::internal::ArenaStringPtr abort_cause_; - const ::flyteidl::admin::AbortMetadata* abort_metadata_; - const ::flyteidl::core::LiteralMap* output_data_; -} _ExecutionClosure_default_instance_; -class SystemMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SystemMetadata_default_instance_; -class ExecutionMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionMetadata_default_instance_; -class NotificationListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NotificationList_default_instance_; -class ExecutionSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::admin::NotificationList* notifications_; - bool disable_all_; -} _ExecutionSpec_default_instance_; -class ExecutionTerminateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionTerminateRequest_default_instance_; -class ExecutionTerminateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionTerminateResponse_default_instance_; -class WorkflowExecutionGetDataRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionGetDataRequest_default_instance_; -class WorkflowExecutionGetDataResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionGetDataResponse_default_instance_; -class ExecutionUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionUpdateRequest_default_instance_; -class ExecutionStateChangeDetailsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionStateChangeDetails_default_instance_; -class ExecutionUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionUpdateResponse_default_instance_; -class WorkflowExecutionGetMetricsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionGetMetricsRequest_default_instance_; -class WorkflowExecutionGetMetricsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionGetMetricsResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionCreateRequest_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionRelaunchRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionRelaunchRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionRecoverRequest_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionRecoverRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionRecoverRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base,}}; - -static void InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionCreateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionCreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionCreateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Execution_default_instance_; - new (ptr) ::flyteidl::admin::Execution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Execution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsExecution_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base,}}; - -static void InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionList_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionList_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base,}}; - -static void InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LiteralMapBlob_default_instance_; - new (ptr) ::flyteidl::admin::LiteralMapBlob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LiteralMapBlob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsAbortMetadata_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_AbortMetadata_default_instance_; - new (ptr) ::flyteidl::admin::AbortMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::AbortMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAbortMetadata_flyteidl_2fadmin_2fexecution_2eproto}, {}}; - -static void InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionClosure_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<9> scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base,}}; - -static void InitDefaultsSystemMetadata_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SystemMetadata_default_instance_; - new (ptr) ::flyteidl::admin::SystemMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SystemMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSystemMetadata_flyteidl_2fadmin_2fexecution_2eproto}, {}}; - -static void InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionMetadata_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<5> scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NotificationList_default_instance_; - new (ptr) ::flyteidl::admin::NotificationList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NotificationList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNotificationList_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionSpec_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<13> scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base, - &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base, - &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, - &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionTerminateRequest_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionTerminateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionTerminateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionTerminateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionTerminateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionTerminateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto}, {}}; - -static void InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionGetDataRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionGetDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionGetDataResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionStateChangeDetails(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionStateChangeDetails::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto}, {}}; - -static void InitDefaultsWorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionGetMetricsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionGetMetricsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionGetMetricsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionGetMetricsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto}, { - &scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fexecution_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[23]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateRequest, inputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRelaunchRequest, overwrite_cache_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionRecoverRequest, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionCreateResponse, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Execution, closure_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, executions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, values_), - offsetof(::flyteidl::admin::LiteralMapBlobDefaultTypeInternal, uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LiteralMapBlob, data_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, cause_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::AbortMetadata, principal_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, outputs_), - offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, error_), - offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_cause_), - offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, abort_metadata_), - offsetof(::flyteidl::admin::ExecutionClosureDefaultTypeInternal, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, computed_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, started_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, duration_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, created_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, updated_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, notifications_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, workflow_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, state_change_details_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClosure, output_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, execution_cluster_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SystemMetadata, namespace__), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, mode_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, principal_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, nesting_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, scheduled_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, parent_node_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, reference_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, system_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionMetadata, artifact_ids_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NotificationList, notifications_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, launch_plan_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, metadata_), - offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, notifications_), - offsetof(::flyteidl::admin::ExecutionSpecDefaultTypeInternal, disable_all_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, annotations_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, security_context_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, auth_role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, quality_of_service_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, max_parallelism_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, raw_output_data_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, cluster_assignment_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, interruptible_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, overwrite_cache_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, envs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, tags_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionSpec, notification_overrides_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateRequest, cause_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionTerminateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, full_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetDataResponse, full_outputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateRequest, state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, state_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, occurred_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionStateChangeDetails, principal_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsRequest, depth_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionGetMetricsResponse, span_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::ExecutionCreateRequest)}, - { 10, -1, sizeof(::flyteidl::admin::ExecutionRelaunchRequest)}, - { 18, -1, sizeof(::flyteidl::admin::ExecutionRecoverRequest)}, - { 26, -1, sizeof(::flyteidl::admin::ExecutionCreateResponse)}, - { 32, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetRequest)}, - { 38, -1, sizeof(::flyteidl::admin::Execution)}, - { 46, -1, sizeof(::flyteidl::admin::ExecutionList)}, - { 53, -1, sizeof(::flyteidl::admin::LiteralMapBlob)}, - { 61, -1, sizeof(::flyteidl::admin::AbortMetadata)}, - { 68, -1, sizeof(::flyteidl::admin::ExecutionClosure)}, - { 88, -1, sizeof(::flyteidl::admin::SystemMetadata)}, - { 95, -1, sizeof(::flyteidl::admin::ExecutionMetadata)}, - { 108, -1, sizeof(::flyteidl::admin::NotificationList)}, - { 114, -1, sizeof(::flyteidl::admin::ExecutionSpec)}, - { 137, -1, sizeof(::flyteidl::admin::ExecutionTerminateRequest)}, - { 144, -1, sizeof(::flyteidl::admin::ExecutionTerminateResponse)}, - { 149, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataRequest)}, - { 155, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetDataResponse)}, - { 164, -1, sizeof(::flyteidl::admin::ExecutionUpdateRequest)}, - { 171, -1, sizeof(::flyteidl::admin::ExecutionStateChangeDetails)}, - { 179, -1, sizeof(::flyteidl::admin::ExecutionUpdateResponse)}, - { 184, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetMetricsRequest)}, - { 191, -1, sizeof(::flyteidl::admin::WorkflowExecutionGetMetricsResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_ExecutionCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionRecoverRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionCreateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Execution_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LiteralMapBlob_default_instance_), - reinterpret_cast(&::flyteidl::admin::_AbortMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionClosure_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SystemMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NotificationList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionSpec_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionTerminateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto, "flyteidl/admin/execution.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fexecution_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto, 23, file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fexecution_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto[] = - "\n\036flyteidl/admin/execution.proto\022\016flytei" - "dl.admin\032\'flyteidl/admin/cluster_assignm" - "ent.proto\032\033flyteidl/admin/common.proto\032\034" - "flyteidl/core/literals.proto\032\035flyteidl/c" - "ore/execution.proto\032\037flyteidl/core/artif" - "act_id.proto\032\036flyteidl/core/identifier.p" - "roto\032\033flyteidl/core/metrics.proto\032\034flyte" - "idl/core/security.proto\032\036google/protobuf" - "/duration.proto\032\037google/protobuf/timesta" - "mp.proto\032\036google/protobuf/wrappers.proto" - "\"\237\001\n\026ExecutionCreateRequest\022\017\n\007project\030\001" - " \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004sp" - "ec\030\004 \001(\0132\035.flyteidl.admin.ExecutionSpec\022" - ")\n\006inputs\030\005 \001(\0132\031.flyteidl.core.LiteralM" - "ap\"\177\n\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001" - "(\0132*.flyteidl.core.WorkflowExecutionIden" - "tifier\022\014\n\004name\030\003 \001(\t\022\027\n\017overwrite_cache\030" - "\004 \001(\010J\004\010\002\020\003\"\224\001\n\027ExecutionRecoverRequest\022" - "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" - "utionIdentifier\022\014\n\004name\030\002 \001(\t\0223\n\010metadat" - "a\030\003 \001(\0132!.flyteidl.admin.ExecutionMetada" - "ta\"Q\n\027ExecutionCreateResponse\0226\n\002id\030\001 \001(" - "\0132*.flyteidl.core.WorkflowExecutionIdent" - "ifier\"U\n\033WorkflowExecutionGetRequest\0226\n\002" - "id\030\001 \001(\0132*.flyteidl.core.WorkflowExecuti" - "onIdentifier\"\243\001\n\tExecution\0226\n\002id\030\001 \001(\0132*" - ".flyteidl.core.WorkflowExecutionIdentifi" - "er\022+\n\004spec\030\002 \001(\0132\035.flyteidl.admin.Execut" - "ionSpec\0221\n\007closure\030\003 \001(\0132 .flyteidl.admi" - "n.ExecutionClosure\"M\n\rExecutionList\022-\n\ne" - "xecutions\030\001 \003(\0132\031.flyteidl.admin.Executi" - "on\022\r\n\005token\030\002 \001(\t\"X\n\016LiteralMapBlob\022/\n\006v" - "alues\030\001 \001(\0132\031.flyteidl.core.LiteralMapB\002" - "\030\001H\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\rAbortMeta" - "data\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipal\030\002 \001(\t\"\360" - "\005\n\020ExecutionClosure\0225\n\007outputs\030\001 \001(\0132\036.f" - "lyteidl.admin.LiteralMapBlobB\002\030\001H\000\022.\n\005er" - "ror\030\002 \001(\0132\035.flyteidl.core.ExecutionError" - "H\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016abort_m" - "etadata\030\014 \001(\0132\035.flyteidl.admin.AbortMeta" - "dataH\000\0224\n\013output_data\030\r \001(\0132\031.flyteidl.c" - "ore.LiteralMapB\002\030\001H\000\0226\n\017computed_inputs\030" - "\003 \001(\0132\031.flyteidl.core.LiteralMapB\002\030\001\0225\n\005" - "phase\030\004 \001(\0162&.flyteidl.core.WorkflowExec" - "ution.Phase\022.\n\nstarted_at\030\005 \001(\0132\032.google" - ".protobuf.Timestamp\022+\n\010duration\030\006 \001(\0132\031." - "google.protobuf.Duration\022.\n\ncreated_at\030\007" - " \001(\0132\032.google.protobuf.Timestamp\022.\n\nupda" - "ted_at\030\010 \001(\0132\032.google.protobuf.Timestamp" - "\0223\n\rnotifications\030\t \003(\0132\034.flyteidl.admin" - ".Notification\022.\n\013workflow_id\030\013 \001(\0132\031.fly" - "teidl.core.Identifier\022I\n\024state_change_de" - "tails\030\016 \001(\0132+.flyteidl.admin.ExecutionSt" - "ateChangeDetailsB\017\n\routput_result\">\n\016Sys" - "temMetadata\022\031\n\021execution_cluster\030\001 \001(\t\022\021" - "\n\tnamespace\030\002 \001(\t\"\213\004\n\021ExecutionMetadata\022" - "=\n\004mode\030\001 \001(\0162/.flyteidl.admin.Execution" - "Metadata.ExecutionMode\022\021\n\tprincipal\030\002 \001(" - "\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014scheduled_at\030\004 \001(\013" - "2\032.google.protobuf.Timestamp\022E\n\025parent_n" - "ode_execution\030\005 \001(\0132&.flyteidl.core.Node" - "ExecutionIdentifier\022G\n\023reference_executi" - "on\030\020 \001(\0132*.flyteidl.core.WorkflowExecuti" - "onIdentifier\0227\n\017system_metadata\030\021 \001(\0132\036." - "flyteidl.admin.SystemMetadata\022/\n\014artifac" - "t_ids\030\022 \003(\0132\031.flyteidl.core.ArtifactID\"g" - "\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED" - "\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WO" - "RKFLOW\020\004\022\r\n\tRECOVERED\020\005\"G\n\020NotificationL" - "ist\0223\n\rnotifications\030\001 \003(\0132\034.flyteidl.ad" - "min.Notification\"\262\006\n\rExecutionSpec\022.\n\013la" - "unch_plan\030\001 \001(\0132\031.flyteidl.core.Identifi" - "er\022-\n\006inputs\030\002 \001(\0132\031.flyteidl.core.Liter" - "alMapB\002\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.a" - "dmin.ExecutionMetadata\0229\n\rnotifications\030" - "\005 \001(\0132 .flyteidl.admin.NotificationListH" - "\000\022\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\013" - "2\026.flyteidl.admin.Labels\0220\n\013annotations\030" - "\010 \001(\0132\033.flyteidl.admin.Annotations\0228\n\020se" - "curity_context\030\n \001(\0132\036.flyteidl.core.Sec" - "urityContext\022/\n\tauth_role\030\020 \001(\0132\030.flytei" - "dl.admin.AuthRoleB\002\030\001\022;\n\022quality_of_serv" - "ice\030\021 \001(\0132\037.flyteidl.core.QualityOfServi" - "ce\022\027\n\017max_parallelism\030\022 \001(\005\022C\n\026raw_outpu" - "t_data_config\030\023 \001(\0132#.flyteidl.admin.Raw" - "OutputDataConfig\022=\n\022cluster_assignment\030\024" - " \001(\0132!.flyteidl.admin.ClusterAssignment\022" - "1\n\rinterruptible\030\025 \001(\0132\032.google.protobuf" - ".BoolValue\022\027\n\017overwrite_cache\030\026 \001(\010\022\"\n\004e" - "nvs\030\027 \001(\0132\024.flyteidl.admin.Envs\022\014\n\004tags\030" - "\030 \003(\tB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n" - "\031ExecutionTerminateRequest\0226\n\002id\030\001 \001(\0132*" - ".flyteidl.core.WorkflowExecutionIdentifi" - "er\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateR" - "esponse\"Y\n\037WorkflowExecutionGetDataReque" - "st\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" - "xecutionIdentifier\"\336\001\n WorkflowExecution" - "GetDataResponse\022,\n\007outputs\030\001 \001(\0132\027.flyte" - "idl.admin.UrlBlobB\002\030\001\022+\n\006inputs\030\002 \001(\0132\027." - "flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_input" - "s\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014fu" - "ll_outputs\030\004 \001(\0132\031.flyteidl.core.Literal" - "Map\"\177\n\026ExecutionUpdateRequest\0226\n\002id\030\001 \001(" - "\0132*.flyteidl.core.WorkflowExecutionIdent" - "ifier\022-\n\005state\030\002 \001(\0162\036.flyteidl.admin.Ex" - "ecutionState\"\220\001\n\033ExecutionStateChangeDet" - "ails\022-\n\005state\030\001 \001(\0162\036.flyteidl.admin.Exe" - "cutionState\022/\n\013occurred_at\030\002 \001(\0132\032.googl" - "e.protobuf.Timestamp\022\021\n\tprincipal\030\003 \001(\t\"" - "\031\n\027ExecutionUpdateResponse\"k\n\"WorkflowEx" - "ecutionGetMetricsRequest\0226\n\002id\030\001 \001(\0132*.f" - "lyteidl.core.WorkflowExecutionIdentifier" - "\022\r\n\005depth\030\002 \001(\005\"H\n#WorkflowExecutionGetM" - "etricsResponse\022!\n\004span\030\001 \001(\0132\023.flyteidl." - "core.Span*>\n\016ExecutionState\022\024\n\020EXECUTION" - "_ACTIVE\020\000\022\026\n\022EXECUTION_ARCHIVED\020\001B=Z;git" - "hub.com/flyteorg/flyte/flyteidl/gen/pb-g" - "o/flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fexecution_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fexecution_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fexecution_2eproto, - "flyteidl/admin/execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto, 4704, -}; - -void AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[11] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, - ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fexecution_2eproto, deps, 11); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[0]; -} -bool ExecutionMetadata_ExecutionMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const ExecutionMetadata_ExecutionMode ExecutionMetadata::MANUAL; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::SCHEDULED; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::SYSTEM; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::RELAUNCH; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::CHILD_WORKFLOW; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::RECOVERED; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MIN; -const ExecutionMetadata_ExecutionMode ExecutionMetadata::ExecutionMode_MAX; -const int ExecutionMetadata::ExecutionMode_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* ExecutionState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fexecution_2eproto[1]; -} -bool ExecutionState_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -// =================================================================== - -void ExecutionCreateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( - ::flyteidl::admin::ExecutionSpec::internal_default_instance()); - ::flyteidl::admin::_ExecutionCreateRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class ExecutionCreateRequest::HasBitSetters { - public: - static const ::flyteidl::admin::ExecutionSpec& spec(const ExecutionCreateRequest* msg); - static const ::flyteidl::core::LiteralMap& inputs(const ExecutionCreateRequest* msg); -}; - -const ::flyteidl::admin::ExecutionSpec& -ExecutionCreateRequest::HasBitSetters::spec(const ExecutionCreateRequest* msg) { - return *msg->spec_; -} -const ::flyteidl::core::LiteralMap& -ExecutionCreateRequest::HasBitSetters::inputs(const ExecutionCreateRequest* msg) { - return *msg->inputs_; -} -void ExecutionCreateRequest::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionCreateRequest::kProjectFieldNumber; -const int ExecutionCreateRequest::kDomainFieldNumber; -const int ExecutionCreateRequest::kNameFieldNumber; -const int ExecutionCreateRequest::kSpecFieldNumber; -const int ExecutionCreateRequest::kInputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionCreateRequest::ExecutionCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateRequest) -} -ExecutionCreateRequest::ExecutionCreateRequest(const ExecutionCreateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); - } else { - spec_ = nullptr; - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateRequest) -} - -void ExecutionCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&spec_, 0, static_cast( - reinterpret_cast(&inputs_) - - reinterpret_cast(&spec_)) + sizeof(inputs_)); -} - -ExecutionCreateRequest::~ExecutionCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateRequest) - SharedDtor(); -} - -void ExecutionCreateRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete spec_; - if (this != internal_default_instance()) delete inputs_; -} - -void ExecutionCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionCreateRequest& ExecutionCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionCreateRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionCreateRequest.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.ExecutionSpec spec = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionSpec::_InternalParse; - object = msg->mutable_spec(); - 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.core.LiteralMap inputs = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_inputs(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionCreateRequest::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.ExecutionCreateRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionCreateRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionCreateRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionCreateRequest.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionSpec spec = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap inputs = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } 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.ExecutionCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // .flyteidl.admin.ExecutionSpec spec = 4; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::spec(this), output); - } - - // .flyteidl.core.LiteralMap inputs = 5; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::inputs(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.ExecutionCreateRequest) -} - -::google::protobuf::uint8* ExecutionCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionCreateRequest.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // .flyteidl.admin.ExecutionSpec spec = 4; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::spec(this), target); - } - - // .flyteidl.core.LiteralMap inputs = 5; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::inputs(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.ExecutionCreateRequest) - return target; -} - -size_t ExecutionCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string name = 3; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.admin.ExecutionSpec spec = 4; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - // .flyteidl.core.LiteralMap inputs = 5; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateRequest) - MergeFrom(*source); - } -} - -void ExecutionCreateRequest::MergeFrom(const ExecutionCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); - } -} - -void ExecutionCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionCreateRequest::CopyFrom(const ExecutionCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionCreateRequest::IsInitialized() const { - return true; -} - -void ExecutionCreateRequest::Swap(ExecutionCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionCreateRequest::InternalSwap(ExecutionCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(spec_, other->spec_); - swap(inputs_, other->inputs_); -} - -::google::protobuf::Metadata ExecutionCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionRelaunchRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionRelaunchRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class ExecutionRelaunchRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionRelaunchRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionRelaunchRequest::HasBitSetters::id(const ExecutionRelaunchRequest* msg) { - return *msg->id_; -} -void ExecutionRelaunchRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionRelaunchRequest::kIdFieldNumber; -const int ExecutionRelaunchRequest::kNameFieldNumber; -const int ExecutionRelaunchRequest::kOverwriteCacheFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionRelaunchRequest::ExecutionRelaunchRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRelaunchRequest) -} -ExecutionRelaunchRequest::ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - overwrite_cache_ = from.overwrite_cache_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRelaunchRequest) -} - -void ExecutionRelaunchRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&id_)) + sizeof(overwrite_cache_)); -} - -ExecutionRelaunchRequest::~ExecutionRelaunchRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRelaunchRequest) - SharedDtor(); -} - -void ExecutionRelaunchRequest::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; -} - -void ExecutionRelaunchRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionRelaunchRequest& ExecutionRelaunchRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionRelaunchRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionRelaunchRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRelaunchRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - overwrite_cache_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionRelaunchRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // string name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionRelaunchRequest.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool overwrite_cache = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionRelaunchRequest::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.ExecutionRelaunchRequest) - 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.WorkflowExecutionIdentifier 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; - } - - // string name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionRelaunchRequest.name")); - } else { - goto handle_unusual; - } - break; - } - - // bool overwrite_cache = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &overwrite_cache_))); - } 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.ExecutionRelaunchRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRelaunchRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionRelaunchRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRelaunchRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionRelaunchRequest.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - // bool overwrite_cache = 4; - if (this->overwrite_cache() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->overwrite_cache(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionRelaunchRequest) -} - -::google::protobuf::uint8* ExecutionRelaunchRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRelaunchRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionRelaunchRequest.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), target); - } - - // bool overwrite_cache = 4; - if (this->overwrite_cache() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->overwrite_cache(), 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.ExecutionRelaunchRequest) - return target; -} - -size_t ExecutionRelaunchRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRelaunchRequest) - 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; - - // string name = 3; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // bool overwrite_cache = 4; - if (this->overwrite_cache() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionRelaunchRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionRelaunchRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRelaunchRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRelaunchRequest) - MergeFrom(*source); - } -} - -void ExecutionRelaunchRequest::MergeFrom(const ExecutionRelaunchRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRelaunchRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } - if (from.overwrite_cache() != 0) { - set_overwrite_cache(from.overwrite_cache()); - } -} - -void ExecutionRelaunchRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionRelaunchRequest::CopyFrom(const ExecutionRelaunchRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRelaunchRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionRelaunchRequest::IsInitialized() const { - return true; -} - -void ExecutionRelaunchRequest::Swap(ExecutionRelaunchRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionRelaunchRequest::InternalSwap(ExecutionRelaunchRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(overwrite_cache_, other->overwrite_cache_); -} - -::google::protobuf::Metadata ExecutionRelaunchRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionRecoverRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionRecoverRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_ExecutionRecoverRequest_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( - ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); -} -class ExecutionRecoverRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionRecoverRequest* msg); - static const ::flyteidl::admin::ExecutionMetadata& metadata(const ExecutionRecoverRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionRecoverRequest::HasBitSetters::id(const ExecutionRecoverRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::ExecutionMetadata& -ExecutionRecoverRequest::HasBitSetters::metadata(const ExecutionRecoverRequest* msg) { - return *msg->metadata_; -} -void ExecutionRecoverRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionRecoverRequest::kIdFieldNumber; -const int ExecutionRecoverRequest::kNameFieldNumber; -const int ExecutionRecoverRequest::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionRecoverRequest::ExecutionRecoverRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionRecoverRequest) -} -ExecutionRecoverRequest::ExecutionRecoverRequest(const ExecutionRecoverRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionRecoverRequest) -} - -void ExecutionRecoverRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&metadata_) - - reinterpret_cast(&id_)) + sizeof(metadata_)); -} - -ExecutionRecoverRequest::~ExecutionRecoverRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionRecoverRequest) - SharedDtor(); -} - -void ExecutionRecoverRequest::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; -} - -void ExecutionRecoverRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionRecoverRequest& ExecutionRecoverRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionRecoverRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionRecoverRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionRecoverRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionRecoverRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionRecoverRequest.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.ExecutionMetadata metadata = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionRecoverRequest::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.ExecutionRecoverRequest) - 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.WorkflowExecutionIdentifier 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; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionRecoverRequest.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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.ExecutionRecoverRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionRecoverRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionRecoverRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionRecoverRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionRecoverRequest.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::metadata(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.ExecutionRecoverRequest) -} - -::google::protobuf::uint8* ExecutionRecoverRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionRecoverRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionRecoverRequest.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::metadata(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.ExecutionRecoverRequest) - return target; -} - -size_t ExecutionRecoverRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionRecoverRequest) - 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; - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionRecoverRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionRecoverRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionRecoverRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionRecoverRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionRecoverRequest) - MergeFrom(*source); - } -} - -void ExecutionRecoverRequest::MergeFrom(const ExecutionRecoverRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionRecoverRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); - } -} - -void ExecutionRecoverRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionRecoverRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionRecoverRequest::CopyFrom(const ExecutionRecoverRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionRecoverRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionRecoverRequest::IsInitialized() const { - return true; -} - -void ExecutionRecoverRequest::Swap(ExecutionRecoverRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionRecoverRequest::InternalSwap(ExecutionRecoverRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata ExecutionRecoverRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionCreateResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionCreateResponse_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class ExecutionCreateResponse::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionCreateResponse* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionCreateResponse::HasBitSetters::id(const ExecutionCreateResponse* msg) { - return *msg->id_; -} -void ExecutionCreateResponse::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionCreateResponse::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionCreateResponse::ExecutionCreateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionCreateResponse) -} -ExecutionCreateResponse::ExecutionCreateResponse(const ExecutionCreateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionCreateResponse) -} - -void ExecutionCreateResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - id_ = nullptr; -} - -ExecutionCreateResponse::~ExecutionCreateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionCreateResponse) - SharedDtor(); -} - -void ExecutionCreateResponse::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void ExecutionCreateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionCreateResponse& ExecutionCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionCreateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionCreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionCreateResponse) - ::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* ExecutionCreateResponse::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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 ExecutionCreateResponse::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.ExecutionCreateResponse) - 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.WorkflowExecutionIdentifier 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.ExecutionCreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionCreateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionCreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.ExecutionCreateResponse) -} - -::google::protobuf::uint8* ExecutionCreateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.ExecutionCreateResponse) - return target; -} - -size_t ExecutionCreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionCreateResponse) - 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.WorkflowExecutionIdentifier 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 ExecutionCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionCreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionCreateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionCreateResponse) - MergeFrom(*source); - } -} - -void ExecutionCreateResponse::MergeFrom(const ExecutionCreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionCreateResponse) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } -} - -void ExecutionCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionCreateResponse::CopyFrom(const ExecutionCreateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionCreateResponse::IsInitialized() const { - return true; -} - -void ExecutionCreateResponse::Swap(ExecutionCreateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionCreateResponse::InternalSwap(ExecutionCreateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata ExecutionCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionGetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class WorkflowExecutionGetRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowExecutionGetRequest::HasBitSetters::id(const WorkflowExecutionGetRequest* msg) { - return *msg->id_; -} -void WorkflowExecutionGetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionGetRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionGetRequest::WorkflowExecutionGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetRequest) -} -WorkflowExecutionGetRequest::WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetRequest) -} - -void WorkflowExecutionGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - id_ = nullptr; -} - -WorkflowExecutionGetRequest::~WorkflowExecutionGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetRequest) - SharedDtor(); -} - -void WorkflowExecutionGetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void WorkflowExecutionGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionGetRequest& WorkflowExecutionGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetRequest) - ::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* WorkflowExecutionGetRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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 WorkflowExecutionGetRequest::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.WorkflowExecutionGetRequest) - 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.WorkflowExecutionIdentifier 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.WorkflowExecutionGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.WorkflowExecutionGetRequest) -} - -::google::protobuf::uint8* WorkflowExecutionGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.WorkflowExecutionGetRequest) - return target; -} - -size_t WorkflowExecutionGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetRequest) - 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.WorkflowExecutionIdentifier 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 WorkflowExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetRequest) - MergeFrom(*source); - } -} - -void WorkflowExecutionGetRequest::MergeFrom(const WorkflowExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetRequest) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } -} - -void WorkflowExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionGetRequest::CopyFrom(const WorkflowExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionGetRequest::IsInitialized() const { - return true; -} - -void WorkflowExecutionGetRequest::Swap(WorkflowExecutionGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionGetRequest::InternalSwap(WorkflowExecutionGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata WorkflowExecutionGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Execution::InitAsDefaultInstance() { - ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::ExecutionSpec*>( - ::flyteidl::admin::ExecutionSpec::internal_default_instance()); - ::flyteidl::admin::_Execution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::ExecutionClosure*>( - ::flyteidl::admin::ExecutionClosure::internal_default_instance()); -} -class Execution::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const Execution* msg); - static const ::flyteidl::admin::ExecutionSpec& spec(const Execution* msg); - static const ::flyteidl::admin::ExecutionClosure& closure(const Execution* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -Execution::HasBitSetters::id(const Execution* msg) { - return *msg->id_; -} -const ::flyteidl::admin::ExecutionSpec& -Execution::HasBitSetters::spec(const Execution* msg) { - return *msg->spec_; -} -const ::flyteidl::admin::ExecutionClosure& -Execution::HasBitSetters::closure(const Execution* msg) { - return *msg->closure_; -} -void Execution::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Execution::kIdFieldNumber; -const int Execution::kSpecFieldNumber; -const int Execution::kClosureFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Execution::Execution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Execution) -} -Execution::Execution(const Execution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::ExecutionSpec(*from.spec_); - } else { - spec_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::ExecutionClosure(*from.closure_); - } else { - closure_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Execution) -} - -void Execution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&closure_) - - reinterpret_cast(&id_)) + sizeof(closure_)); -} - -Execution::~Execution() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Execution) - SharedDtor(); -} - -void Execution::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete spec_; - if (this != internal_default_instance()) delete closure_; -} - -void Execution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Execution& Execution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Execution_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void Execution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Execution) - ::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; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Execution::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // .flyteidl.admin.ExecutionSpec spec = 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::ExecutionSpec::_InternalParse; - object = msg->mutable_spec(); - 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.ExecutionClosure closure = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionClosure::_InternalParse; - object = msg->mutable_closure(); - 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 Execution::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.Execution) - 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.WorkflowExecutionIdentifier 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; - } - - // .flyteidl.admin.ExecutionSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionClosure closure = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } 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.Execution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Execution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Execution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Execution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .flyteidl.admin.ExecutionSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(this), output); - } - - // .flyteidl.admin.ExecutionClosure closure = 3; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::closure(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.Execution) -} - -::google::protobuf::uint8* Execution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Execution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .flyteidl.admin.ExecutionSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(this), target); - } - - // .flyteidl.admin.ExecutionClosure closure = 3; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::closure(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.Execution) - return target; -} - -size_t Execution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Execution) - 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.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.ExecutionSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - // .flyteidl.admin.ExecutionClosure closure = 3; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Execution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Execution) - GOOGLE_DCHECK_NE(&from, this); - const Execution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Execution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Execution) - MergeFrom(*source); - } -} - -void Execution::MergeFrom(const Execution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Execution) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::ExecutionSpec::MergeFrom(from.spec()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::ExecutionClosure::MergeFrom(from.closure()); - } -} - -void Execution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Execution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Execution::CopyFrom(const Execution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Execution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Execution::IsInitialized() const { - return true; -} - -void Execution::Swap(Execution* other) { - if (other == this) return; - InternalSwap(other); -} -void Execution::InternalSwap(Execution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(spec_, other->spec_); - swap(closure_, other->closure_); -} - -::google::protobuf::Metadata Execution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionList::InitAsDefaultInstance() { -} -class ExecutionList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionList::kExecutionsFieldNumber; -const int ExecutionList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionList::ExecutionList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionList) -} -ExecutionList::ExecutionList(const ExecutionList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - executions_(from.executions_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionList) -} - -void ExecutionList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ExecutionList::~ExecutionList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionList) - SharedDtor(); -} - -void ExecutionList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ExecutionList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionList& ExecutionList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionList_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - executions_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionList::_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) { - // repeated .flyteidl.admin.Execution executions = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Execution::_InternalParse; - object = msg->add_executions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionList::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.ExecutionList) - 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)) { - // repeated .flyteidl.admin.Execution executions = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_executions())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionList.token")); - } 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.ExecutionList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Execution executions = 1; - for (unsigned int i = 0, - n = static_cast(this->executions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->executions(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionList) -} - -::google::protobuf::uint8* ExecutionList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Execution executions = 1; - for (unsigned int i = 0, - n = static_cast(this->executions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->executions(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.ExecutionList) - return target; -} - -size_t ExecutionList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionList) - 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; - - // repeated .flyteidl.admin.Execution executions = 1; - { - unsigned int count = static_cast(this->executions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->executions(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionList) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionList) - MergeFrom(*source); - } -} - -void ExecutionList::MergeFrom(const ExecutionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - executions_.MergeFrom(from.executions_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void ExecutionList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionList::CopyFrom(const ExecutionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionList::IsInitialized() const { - return true; -} - -void ExecutionList::Swap(ExecutionList* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionList::InternalSwap(ExecutionList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&executions_)->InternalSwap(CastToBase(&other->executions_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ExecutionList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LiteralMapBlob::InitAsDefaultInstance() { - ::flyteidl::admin::_LiteralMapBlob_default_instance_.values_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_LiteralMapBlob_default_instance_.uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class LiteralMapBlob::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& values(const LiteralMapBlob* msg); -}; - -const ::flyteidl::core::LiteralMap& -LiteralMapBlob::HasBitSetters::values(const LiteralMapBlob* msg) { - return *msg->data_.values_; -} -void LiteralMapBlob::set_allocated_values(::flyteidl::core::LiteralMap* values) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (values) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - values = ::google::protobuf::internal::GetOwnedMessage( - message_arena, values, submessage_arena); - } - set_has_values(); - data_.values_ = values; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.values) -} -void LiteralMapBlob::clear_values() { - if (has_values()) { - delete data_.values_; - clear_has_data(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LiteralMapBlob::kValuesFieldNumber; -const int LiteralMapBlob::kUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LiteralMapBlob::LiteralMapBlob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LiteralMapBlob) -} -LiteralMapBlob::LiteralMapBlob(const LiteralMapBlob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kValues: { - mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LiteralMapBlob) -} - -void LiteralMapBlob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); - clear_has_data(); -} - -LiteralMapBlob::~LiteralMapBlob() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LiteralMapBlob) - SharedDtor(); -} - -void LiteralMapBlob::SharedDtor() { - if (has_data()) { - clear_data(); - } -} - -void LiteralMapBlob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LiteralMapBlob& LiteralMapBlob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralMapBlob_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void LiteralMapBlob::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.LiteralMapBlob) - switch (data_case()) { - case kValues: { - delete data_.values_; - break; - } - case kUri: { - data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void LiteralMapBlob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LiteralMapBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LiteralMapBlob::_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.LiteralMap values = 1 [deprecated = true]; - 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::LiteralMap::_InternalParse; - object = msg->mutable_values(); - 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; - } - // string uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.LiteralMapBlob.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LiteralMapBlob::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.LiteralMapBlob) - 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.LiteralMap values = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_values())); - } else { - goto handle_unusual; - } - break; - } - - // string uri = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.LiteralMapBlob.uri")); - } 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.LiteralMapBlob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LiteralMapBlob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LiteralMapBlob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LiteralMapBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - if (has_values()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::values(this), output); - } - - // string uri = 2; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LiteralMapBlob.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.LiteralMapBlob) -} - -::google::protobuf::uint8* LiteralMapBlob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LiteralMapBlob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - if (has_values()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::values(this), target); - } - - // string uri = 2; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LiteralMapBlob.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->uri(), 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.LiteralMapBlob) - return target; -} - -size_t LiteralMapBlob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LiteralMapBlob) - 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 (data_case()) { - // .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - case kValues: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.values_); - break; - } - // string uri = 2; - case kUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - break; - } - case DATA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LiteralMapBlob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LiteralMapBlob) - GOOGLE_DCHECK_NE(&from, this); - const LiteralMapBlob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LiteralMapBlob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LiteralMapBlob) - MergeFrom(*source); - } -} - -void LiteralMapBlob::MergeFrom(const LiteralMapBlob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LiteralMapBlob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kValues: { - mutable_values()->::flyteidl::core::LiteralMap::MergeFrom(from.values()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void LiteralMapBlob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LiteralMapBlob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LiteralMapBlob::CopyFrom(const LiteralMapBlob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LiteralMapBlob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LiteralMapBlob::IsInitialized() const { - return true; -} - -void LiteralMapBlob::Swap(LiteralMapBlob* other) { - if (other == this) return; - InternalSwap(other); -} -void LiteralMapBlob::InternalSwap(LiteralMapBlob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata LiteralMapBlob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AbortMetadata::InitAsDefaultInstance() { -} -class AbortMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AbortMetadata::kCauseFieldNumber; -const int AbortMetadata::kPrincipalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AbortMetadata::AbortMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.AbortMetadata) -} -AbortMetadata::AbortMetadata(const AbortMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cause().size() > 0) { - cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); - } - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.AbortMetadata) -} - -void AbortMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -AbortMetadata::~AbortMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.AbortMetadata) - SharedDtor(); -} - -void AbortMetadata::SharedDtor() { - cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void AbortMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AbortMetadata& AbortMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AbortMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void AbortMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.AbortMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AbortMetadata::_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) { - // string cause = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.AbortMetadata.cause"); - object = msg->mutable_cause(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string principal = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.AbortMetadata.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AbortMetadata::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.AbortMetadata) - 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)) { - // string cause = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cause())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.AbortMetadata.cause")); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.AbortMetadata.principal")); - } 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.AbortMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.AbortMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AbortMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.AbortMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cause = 1; - if (this->cause().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AbortMetadata.cause"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cause(), output); - } - - // string principal = 2; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AbortMetadata.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->principal(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.AbortMetadata) -} - -::google::protobuf::uint8* AbortMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.AbortMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cause = 1; - if (this->cause().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AbortMetadata.cause"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cause(), target); - } - - // string principal = 2; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.AbortMetadata.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->principal(), 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.AbortMetadata) - return target; -} - -size_t AbortMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.AbortMetadata) - 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; - - // string cause = 1; - if (this->cause().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cause()); - } - - // string principal = 2; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AbortMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.AbortMetadata) - GOOGLE_DCHECK_NE(&from, this); - const AbortMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.AbortMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.AbortMetadata) - MergeFrom(*source); - } -} - -void AbortMetadata::MergeFrom(const AbortMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.AbortMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cause().size() > 0) { - - cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); - } - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } -} - -void AbortMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.AbortMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AbortMetadata::CopyFrom(const AbortMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.AbortMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AbortMetadata::IsInitialized() const { - return true; -} - -void AbortMetadata::Swap(AbortMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void AbortMetadata::InternalSwap(AbortMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cause_.Swap(&other->cause_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata AbortMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionClosure_default_instance_.outputs_ = const_cast< ::flyteidl::admin::LiteralMapBlob*>( - ::flyteidl::admin::LiteralMapBlob::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_cause_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_ExecutionClosure_default_instance_.abort_metadata_ = const_cast< ::flyteidl::admin::AbortMetadata*>( - ::flyteidl::admin::AbortMetadata::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->computed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_ExecutionClosure_default_instance_._instance.get_mutable()->state_change_details_ = const_cast< ::flyteidl::admin::ExecutionStateChangeDetails*>( - ::flyteidl::admin::ExecutionStateChangeDetails::internal_default_instance()); -} -class ExecutionClosure::HasBitSetters { - public: - static const ::flyteidl::admin::LiteralMapBlob& outputs(const ExecutionClosure* msg); - static const ::flyteidl::core::ExecutionError& error(const ExecutionClosure* msg); - static const ::flyteidl::admin::AbortMetadata& abort_metadata(const ExecutionClosure* msg); - static const ::flyteidl::core::LiteralMap& output_data(const ExecutionClosure* msg); - static const ::flyteidl::core::LiteralMap& computed_inputs(const ExecutionClosure* msg); - static const ::google::protobuf::Timestamp& started_at(const ExecutionClosure* msg); - static const ::google::protobuf::Duration& duration(const ExecutionClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const ExecutionClosure* msg); - static const ::google::protobuf::Timestamp& updated_at(const ExecutionClosure* msg); - static const ::flyteidl::core::Identifier& workflow_id(const ExecutionClosure* msg); - static const ::flyteidl::admin::ExecutionStateChangeDetails& state_change_details(const ExecutionClosure* msg); -}; - -const ::flyteidl::admin::LiteralMapBlob& -ExecutionClosure::HasBitSetters::outputs(const ExecutionClosure* msg) { - return *msg->output_result_.outputs_; -} -const ::flyteidl::core::ExecutionError& -ExecutionClosure::HasBitSetters::error(const ExecutionClosure* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::admin::AbortMetadata& -ExecutionClosure::HasBitSetters::abort_metadata(const ExecutionClosure* msg) { - return *msg->output_result_.abort_metadata_; -} -const ::flyteidl::core::LiteralMap& -ExecutionClosure::HasBitSetters::output_data(const ExecutionClosure* msg) { - return *msg->output_result_.output_data_; -} -const ::flyteidl::core::LiteralMap& -ExecutionClosure::HasBitSetters::computed_inputs(const ExecutionClosure* msg) { - return *msg->computed_inputs_; -} -const ::google::protobuf::Timestamp& -ExecutionClosure::HasBitSetters::started_at(const ExecutionClosure* msg) { - return *msg->started_at_; -} -const ::google::protobuf::Duration& -ExecutionClosure::HasBitSetters::duration(const ExecutionClosure* msg) { - return *msg->duration_; -} -const ::google::protobuf::Timestamp& -ExecutionClosure::HasBitSetters::created_at(const ExecutionClosure* msg) { - return *msg->created_at_; -} -const ::google::protobuf::Timestamp& -ExecutionClosure::HasBitSetters::updated_at(const ExecutionClosure* msg) { - return *msg->updated_at_; -} -const ::flyteidl::core::Identifier& -ExecutionClosure::HasBitSetters::workflow_id(const ExecutionClosure* msg) { - return *msg->workflow_id_; -} -const ::flyteidl::admin::ExecutionStateChangeDetails& -ExecutionClosure::HasBitSetters::state_change_details(const ExecutionClosure* msg) { - return *msg->state_change_details_; -} -void ExecutionClosure::set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - set_has_outputs(); - output_result_.outputs_ = outputs; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.outputs) -} -void ExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.error) -} -void ExecutionClosure::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void ExecutionClosure::set_allocated_abort_metadata(::flyteidl::admin::AbortMetadata* abort_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (abort_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - abort_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, abort_metadata, submessage_arena); - } - set_has_abort_metadata(); - output_result_.abort_metadata_ = abort_metadata; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.abort_metadata) -} -void ExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.output_data) -} -void ExecutionClosure::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -void ExecutionClosure::clear_computed_inputs() { - if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { - delete computed_inputs_; - } - computed_inputs_ = nullptr; -} -void ExecutionClosure::clear_started_at() { - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; -} -void ExecutionClosure::clear_duration() { - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; -} -void ExecutionClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -void ExecutionClosure::clear_updated_at() { - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; -} -void ExecutionClosure::clear_notifications() { - notifications_.Clear(); -} -void ExecutionClosure::clear_workflow_id() { - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionClosure::kOutputsFieldNumber; -const int ExecutionClosure::kErrorFieldNumber; -const int ExecutionClosure::kAbortCauseFieldNumber; -const int ExecutionClosure::kAbortMetadataFieldNumber; -const int ExecutionClosure::kOutputDataFieldNumber; -const int ExecutionClosure::kComputedInputsFieldNumber; -const int ExecutionClosure::kPhaseFieldNumber; -const int ExecutionClosure::kStartedAtFieldNumber; -const int ExecutionClosure::kDurationFieldNumber; -const int ExecutionClosure::kCreatedAtFieldNumber; -const int ExecutionClosure::kUpdatedAtFieldNumber; -const int ExecutionClosure::kNotificationsFieldNumber; -const int ExecutionClosure::kWorkflowIdFieldNumber; -const int ExecutionClosure::kStateChangeDetailsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionClosure::ExecutionClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClosure) -} -ExecutionClosure::ExecutionClosure(const ExecutionClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - notifications_(from.notifications_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_computed_inputs()) { - computed_inputs_ = new ::flyteidl::core::LiteralMap(*from.computed_inputs_); - } else { - computed_inputs_ = nullptr; - } - if (from.has_started_at()) { - started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); - } else { - started_at_ = nullptr; - } - if (from.has_duration()) { - duration_ = new ::google::protobuf::Duration(*from.duration_); - } else { - duration_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - if (from.has_updated_at()) { - updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); - } else { - updated_at_ = nullptr; - } - if (from.has_workflow_id()) { - workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); - } else { - workflow_id_ = nullptr; - } - if (from.has_state_change_details()) { - state_change_details_ = new ::flyteidl::admin::ExecutionStateChangeDetails(*from.state_change_details_); - } else { - state_change_details_ = nullptr; - } - phase_ = from.phase_; - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputs: { - mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kAbortCause: { - set_abort_cause(from.abort_cause()); - break; - } - case kAbortMetadata: { - mutable_abort_metadata()->::flyteidl::admin::AbortMetadata::MergeFrom(from.abort_metadata()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClosure) -} - -void ExecutionClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&computed_inputs_, 0, static_cast( - reinterpret_cast(&phase_) - - reinterpret_cast(&computed_inputs_)) + sizeof(phase_)); - clear_has_output_result(); -} - -ExecutionClosure::~ExecutionClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClosure) - SharedDtor(); -} - -void ExecutionClosure::SharedDtor() { - if (this != internal_default_instance()) delete computed_inputs_; - if (this != internal_default_instance()) delete started_at_; - if (this != internal_default_instance()) delete duration_; - if (this != internal_default_instance()) delete created_at_; - if (this != internal_default_instance()) delete updated_at_; - if (this != internal_default_instance()) delete workflow_id_; - if (this != internal_default_instance()) delete state_change_details_; - if (has_output_result()) { - clear_output_result(); - } -} - -void ExecutionClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionClosure& ExecutionClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionClosure_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionClosure::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionClosure) - switch (output_result_case()) { - case kOutputs: { - delete output_result_.outputs_; - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kAbortCause: { - output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kAbortMetadata: { - delete output_result_.abort_metadata_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} - - -void ExecutionClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - notifications_.Clear(); - if (GetArenaNoVirtual() == nullptr && computed_inputs_ != nullptr) { - delete computed_inputs_; - } - computed_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && state_change_details_ != nullptr) { - delete state_change_details_; - } - state_change_details_ = nullptr; - phase_ = 0; - clear_output_result(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionClosure::_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.LiteralMapBlob outputs = 1 [deprecated = true]; - 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::LiteralMapBlob::_InternalParse; - object = msg->mutable_outputs(); - 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.core.ExecutionError error = 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::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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.core.LiteralMap computed_inputs = 3 [deprecated = true]; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_computed_inputs(); - 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.core.WorkflowExecution.Phase phase = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp started_at = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_started_at(); - 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; - } - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_duration(); - 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; - } - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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; - } - // .google.protobuf.Timestamp updated_at = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_updated_at(); - 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; - } - // repeated .flyteidl.admin.Notification notifications = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Notification::_InternalParse; - object = msg->add_notifications(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 74 && (ptr += 1)); - break; - } - // string abort_cause = 10 [deprecated = true]; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionClosure.abort_cause"); - object = msg->mutable_abort_cause(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Identifier workflow_id = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) 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_workflow_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; - } - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::AbortMetadata::_InternalParse; - object = msg->mutable_abort_metadata(); - 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.core.LiteralMap output_data = 13 [deprecated = true]; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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.ExecutionStateChangeDetails state_change_details = 14; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionStateChangeDetails::_InternalParse; - object = msg->mutable_state_change_details(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionClosure::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.ExecutionClosure) - 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.LiteralMapBlob outputs = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_computed_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp started_at = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_started_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_duration())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp updated_at = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_updated_at())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.admin.Notification notifications = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_notifications())); - } else { - goto handle_unusual; - } - break; - } - - // string abort_cause = 10 [deprecated = true]; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_abort_cause())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->abort_cause().data(), static_cast(this->abort_cause().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionClosure.abort_cause")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier workflow_id = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_abort_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_state_change_details())); - } 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.ExecutionClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - if (has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::outputs(this), output); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::error(this), output); - } - - // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - if (this->has_computed_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::computed_inputs(this), output); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 4; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->phase(), output); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::started_at(this), output); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::duration(this), output); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::created_at(this), output); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::updated_at(this), output); - } - - // repeated .flyteidl.admin.Notification notifications = 9; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, - this->notifications(static_cast(i)), - output); - } - - // string abort_cause = 10 [deprecated = true]; - if (has_abort_cause()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->abort_cause().data(), static_cast(this->abort_cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionClosure.abort_cause"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->abort_cause(), output); - } - - // .flyteidl.core.Identifier workflow_id = 11; - if (this->has_workflow_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, HasBitSetters::workflow_id(this), output); - } - - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - if (has_abort_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, HasBitSetters::abort_metadata(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 13, HasBitSetters::output_data(this), output); - } - - // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - if (this->has_state_change_details()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, HasBitSetters::state_change_details(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.ExecutionClosure) -} - -::google::protobuf::uint8* ExecutionClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - if (has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::outputs(this), target); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::error(this), target); - } - - // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - if (this->has_computed_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::computed_inputs(this), target); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 4; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->phase(), target); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::started_at(this), target); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::duration(this), target); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::created_at(this), target); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::updated_at(this), target); - } - - // repeated .flyteidl.admin.Notification notifications = 9; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, this->notifications(static_cast(i)), target); - } - - // string abort_cause = 10 [deprecated = true]; - if (has_abort_cause()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->abort_cause().data(), static_cast(this->abort_cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionClosure.abort_cause"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->abort_cause(), target); - } - - // .flyteidl.core.Identifier workflow_id = 11; - if (this->has_workflow_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, HasBitSetters::workflow_id(this), target); - } - - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - if (has_abort_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 12, HasBitSetters::abort_metadata(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 13, HasBitSetters::output_data(this), target); - } - - // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - if (this->has_state_change_details()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 14, HasBitSetters::state_change_details(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.ExecutionClosure) - return target; -} - -size_t ExecutionClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClosure) - 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; - - // repeated .flyteidl.admin.Notification notifications = 9; - { - unsigned int count = static_cast(this->notifications_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->notifications(static_cast(i))); - } - } - - // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - if (this->has_computed_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *computed_inputs_); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *started_at_); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *duration_); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *updated_at_); - } - - // .flyteidl.core.Identifier workflow_id = 11; - if (this->has_workflow_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_id_); - } - - // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - if (this->has_state_change_details()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *state_change_details_); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 4; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - switch (output_result_case()) { - // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - case kOutputs: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.outputs_); - break; - } - // .flyteidl.core.ExecutionError error = 2; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // string abort_cause = 10 [deprecated = true]; - case kAbortCause: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->abort_cause()); - break; - } - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - case kAbortMetadata: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.abort_metadata_); - break; - } - // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - case kOutputData: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClosure) - MergeFrom(*source); - } -} - -void ExecutionClosure::MergeFrom(const ExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - notifications_.MergeFrom(from.notifications_); - if (from.has_computed_inputs()) { - mutable_computed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.computed_inputs()); - } - if (from.has_started_at()) { - mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); - } - if (from.has_duration()) { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } - if (from.has_updated_at()) { - mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); - } - if (from.has_workflow_id()) { - mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); - } - if (from.has_state_change_details()) { - mutable_state_change_details()->::flyteidl::admin::ExecutionStateChangeDetails::MergeFrom(from.state_change_details()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - switch (from.output_result_case()) { - case kOutputs: { - mutable_outputs()->::flyteidl::admin::LiteralMapBlob::MergeFrom(from.outputs()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kAbortCause: { - set_abort_cause(from.abort_cause()); - break; - } - case kAbortMetadata: { - mutable_abort_metadata()->::flyteidl::admin::AbortMetadata::MergeFrom(from.abort_metadata()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } -} - -void ExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionClosure::CopyFrom(const ExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionClosure::IsInitialized() const { - return true; -} - -void ExecutionClosure::Swap(ExecutionClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionClosure::InternalSwap(ExecutionClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); - swap(computed_inputs_, other->computed_inputs_); - swap(started_at_, other->started_at_); - swap(duration_, other->duration_); - swap(created_at_, other->created_at_); - swap(updated_at_, other->updated_at_); - swap(workflow_id_, other->workflow_id_); - swap(state_change_details_, other->state_change_details_); - swap(phase_, other->phase_); - swap(output_result_, other->output_result_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ExecutionClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SystemMetadata::InitAsDefaultInstance() { -} -class SystemMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SystemMetadata::kExecutionClusterFieldNumber; -const int SystemMetadata::kNamespaceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SystemMetadata::SystemMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SystemMetadata) -} -SystemMetadata::SystemMetadata(const SystemMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - execution_cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.execution_cluster().size() > 0) { - execution_cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_cluster_); - } - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.namespace_().size() > 0) { - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SystemMetadata) -} - -void SystemMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - execution_cluster_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SystemMetadata::~SystemMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SystemMetadata) - SharedDtor(); -} - -void SystemMetadata::SharedDtor() { - execution_cluster_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SystemMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SystemMetadata& SystemMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SystemMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void SystemMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SystemMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - execution_cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SystemMetadata::_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) { - // string execution_cluster = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SystemMetadata.execution_cluster"); - object = msg->mutable_execution_cluster(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string namespace = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SystemMetadata.namespace"); - object = msg->mutable_namespace_(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SystemMetadata::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.SystemMetadata) - 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)) { - // string execution_cluster = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_execution_cluster())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_cluster().data(), static_cast(this->execution_cluster().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SystemMetadata.execution_cluster")); - } else { - goto handle_unusual; - } - break; - } - - // string namespace = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_namespace_())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SystemMetadata.namespace")); - } 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.SystemMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SystemMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SystemMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SystemMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string execution_cluster = 1; - if (this->execution_cluster().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_cluster().data(), static_cast(this->execution_cluster().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SystemMetadata.execution_cluster"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->execution_cluster(), output); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SystemMetadata.namespace"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->namespace_(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.SystemMetadata) -} - -::google::protobuf::uint8* SystemMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SystemMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string execution_cluster = 1; - if (this->execution_cluster().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_cluster().data(), static_cast(this->execution_cluster().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SystemMetadata.execution_cluster"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->execution_cluster(), target); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SystemMetadata.namespace"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->namespace_(), 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.SystemMetadata) - return target; -} - -size_t SystemMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SystemMetadata) - 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; - - // string execution_cluster = 1; - if (this->execution_cluster().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->execution_cluster()); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->namespace_()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SystemMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SystemMetadata) - GOOGLE_DCHECK_NE(&from, this); - const SystemMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SystemMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SystemMetadata) - MergeFrom(*source); - } -} - -void SystemMetadata::MergeFrom(const SystemMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SystemMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.execution_cluster().size() > 0) { - - execution_cluster_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_cluster_); - } - if (from.namespace_().size() > 0) { - - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } -} - -void SystemMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SystemMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SystemMetadata::CopyFrom(const SystemMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SystemMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SystemMetadata::IsInitialized() const { - return true; -} - -void SystemMetadata::Swap(SystemMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void SystemMetadata::InternalSwap(SystemMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - execution_cluster_.Swap(&other->execution_cluster_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata SystemMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->scheduled_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->parent_node_execution_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_ExecutionMetadata_default_instance_._instance.get_mutable()->system_metadata_ = const_cast< ::flyteidl::admin::SystemMetadata*>( - ::flyteidl::admin::SystemMetadata::internal_default_instance()); -} -class ExecutionMetadata::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& scheduled_at(const ExecutionMetadata* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution(const ExecutionMetadata* msg); - static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const ExecutionMetadata* msg); - static const ::flyteidl::admin::SystemMetadata& system_metadata(const ExecutionMetadata* msg); -}; - -const ::google::protobuf::Timestamp& -ExecutionMetadata::HasBitSetters::scheduled_at(const ExecutionMetadata* msg) { - return *msg->scheduled_at_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -ExecutionMetadata::HasBitSetters::parent_node_execution(const ExecutionMetadata* msg) { - return *msg->parent_node_execution_; -} -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionMetadata::HasBitSetters::reference_execution(const ExecutionMetadata* msg) { - return *msg->reference_execution_; -} -const ::flyteidl::admin::SystemMetadata& -ExecutionMetadata::HasBitSetters::system_metadata(const ExecutionMetadata* msg) { - return *msg->system_metadata_; -} -void ExecutionMetadata::clear_scheduled_at() { - if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { - delete scheduled_at_; - } - scheduled_at_ = nullptr; -} -void ExecutionMetadata::clear_parent_node_execution() { - if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { - delete parent_node_execution_; - } - parent_node_execution_ = nullptr; -} -void ExecutionMetadata::clear_reference_execution() { - if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { - delete reference_execution_; - } - reference_execution_ = nullptr; -} -void ExecutionMetadata::clear_artifact_ids() { - artifact_ids_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionMetadata::kModeFieldNumber; -const int ExecutionMetadata::kPrincipalFieldNumber; -const int ExecutionMetadata::kNestingFieldNumber; -const int ExecutionMetadata::kScheduledAtFieldNumber; -const int ExecutionMetadata::kParentNodeExecutionFieldNumber; -const int ExecutionMetadata::kReferenceExecutionFieldNumber; -const int ExecutionMetadata::kSystemMetadataFieldNumber; -const int ExecutionMetadata::kArtifactIdsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionMetadata::ExecutionMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionMetadata) -} -ExecutionMetadata::ExecutionMetadata(const ExecutionMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_ids_(from.artifact_ids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_scheduled_at()) { - scheduled_at_ = new ::google::protobuf::Timestamp(*from.scheduled_at_); - } else { - scheduled_at_ = nullptr; - } - if (from.has_parent_node_execution()) { - parent_node_execution_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_); - } else { - parent_node_execution_ = nullptr; - } - if (from.has_reference_execution()) { - reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.reference_execution_); - } else { - reference_execution_ = nullptr; - } - if (from.has_system_metadata()) { - system_metadata_ = new ::flyteidl::admin::SystemMetadata(*from.system_metadata_); - } else { - system_metadata_ = nullptr; - } - ::memcpy(&mode_, &from.mode_, - static_cast(reinterpret_cast(&nesting_) - - reinterpret_cast(&mode_)) + sizeof(nesting_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionMetadata) -} - -void ExecutionMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&scheduled_at_, 0, static_cast( - reinterpret_cast(&nesting_) - - reinterpret_cast(&scheduled_at_)) + sizeof(nesting_)); -} - -ExecutionMetadata::~ExecutionMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionMetadata) - SharedDtor(); -} - -void ExecutionMetadata::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete scheduled_at_; - if (this != internal_default_instance()) delete parent_node_execution_; - if (this != internal_default_instance()) delete reference_execution_; - if (this != internal_default_instance()) delete system_metadata_; -} - -void ExecutionMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionMetadata& ExecutionMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionMetadata_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_ids_.Clear(); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && scheduled_at_ != nullptr) { - delete scheduled_at_; - } - scheduled_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parent_node_execution_ != nullptr) { - delete parent_node_execution_; - } - parent_node_execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { - delete reference_execution_; - } - reference_execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && system_metadata_ != nullptr) { - delete system_metadata_; - } - system_metadata_ = nullptr; - ::memset(&mode_, 0, static_cast( - reinterpret_cast(&nesting_) - - reinterpret_cast(&mode_)) + sizeof(nesting_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionMetadata::_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.ExecutionMetadata.ExecutionMode mode = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_mode(static_cast<::flyteidl::admin::ExecutionMetadata_ExecutionMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string principal = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionMetadata.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 nesting = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_nesting(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp scheduled_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_scheduled_at(); - 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.core.NodeExecutionIdentifier parent_node_execution = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_parent_node_execution(); - 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.core.WorkflowExecutionIdentifier reference_execution = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_reference_execution(); - 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.SystemMetadata system_metadata = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::SystemMetadata::_InternalParse; - object = msg->mutable_system_metadata(); - 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; - } - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_artifact_ids(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 402 && (ptr += 2)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionMetadata::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.ExecutionMetadata) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_mode(static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionMetadata.principal")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 nesting = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &nesting_))); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp scheduled_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scheduled_at())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_node_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reference_execution())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.SystemMetadata system_metadata = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_system_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_ids())); - } 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.ExecutionMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - if (this->mode() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->mode(), output); - } - - // string principal = 2; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionMetadata.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->principal(), output); - } - - // uint32 nesting = 3; - if (this->nesting() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->nesting(), output); - } - - // .google.protobuf.Timestamp scheduled_at = 4; - if (this->has_scheduled_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::scheduled_at(this), output); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - if (this->has_parent_node_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::parent_node_execution(this), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - if (this->has_reference_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::reference_execution(this), output); - } - - // .flyteidl.admin.SystemMetadata system_metadata = 17; - if (this->has_system_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::system_metadata(this), output); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 18, - this->artifact_ids(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionMetadata) -} - -::google::protobuf::uint8* ExecutionMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - if (this->mode() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->mode(), target); - } - - // string principal = 2; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionMetadata.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->principal(), target); - } - - // uint32 nesting = 3; - if (this->nesting() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->nesting(), target); - } - - // .google.protobuf.Timestamp scheduled_at = 4; - if (this->has_scheduled_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::scheduled_at(this), target); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - if (this->has_parent_node_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::parent_node_execution(this), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - if (this->has_reference_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::reference_execution(this), target); - } - - // .flyteidl.admin.SystemMetadata system_metadata = 17; - if (this->has_system_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::system_metadata(this), target); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 18, this->artifact_ids(static_cast(i)), 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.ExecutionMetadata) - return target; -} - -size_t ExecutionMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionMetadata) - 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; - - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - { - unsigned int count = static_cast(this->artifact_ids_size()); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifact_ids(static_cast(i))); - } - } - - // string principal = 2; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .google.protobuf.Timestamp scheduled_at = 4; - if (this->has_scheduled_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *scheduled_at_); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - if (this->has_parent_node_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_node_execution_); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - if (this->has_reference_execution()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_execution_); - } - - // .flyteidl.admin.SystemMetadata system_metadata = 17; - if (this->has_system_metadata()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *system_metadata_); - } - - // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - if (this->mode() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->mode()); - } - - // uint32 nesting = 3; - if (this->nesting() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->nesting()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionMetadata) - MergeFrom(*source); - } -} - -void ExecutionMetadata::MergeFrom(const ExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifact_ids_.MergeFrom(from.artifact_ids_); - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_scheduled_at()) { - mutable_scheduled_at()->::google::protobuf::Timestamp::MergeFrom(from.scheduled_at()); - } - if (from.has_parent_node_execution()) { - mutable_parent_node_execution()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution()); - } - if (from.has_reference_execution()) { - mutable_reference_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.reference_execution()); - } - if (from.has_system_metadata()) { - mutable_system_metadata()->::flyteidl::admin::SystemMetadata::MergeFrom(from.system_metadata()); - } - if (from.mode() != 0) { - set_mode(from.mode()); - } - if (from.nesting() != 0) { - set_nesting(from.nesting()); - } -} - -void ExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionMetadata::CopyFrom(const ExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionMetadata::IsInitialized() const { - return true; -} - -void ExecutionMetadata::Swap(ExecutionMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionMetadata::InternalSwap(ExecutionMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(scheduled_at_, other->scheduled_at_); - swap(parent_node_execution_, other->parent_node_execution_); - swap(reference_execution_, other->reference_execution_); - swap(system_metadata_, other->system_metadata_); - swap(mode_, other->mode_); - swap(nesting_, other->nesting_); -} - -::google::protobuf::Metadata ExecutionMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NotificationList::InitAsDefaultInstance() { -} -class NotificationList::HasBitSetters { - public: -}; - -void NotificationList::clear_notifications() { - notifications_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NotificationList::kNotificationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NotificationList::NotificationList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NotificationList) -} -NotificationList::NotificationList(const NotificationList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - notifications_(from.notifications_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NotificationList) -} - -void NotificationList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); -} - -NotificationList::~NotificationList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NotificationList) - SharedDtor(); -} - -void NotificationList::SharedDtor() { -} - -void NotificationList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NotificationList& NotificationList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NotificationList_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NotificationList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NotificationList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - notifications_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NotificationList::_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) { - // repeated .flyteidl.admin.Notification notifications = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Notification::_InternalParse; - object = msg->add_notifications(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 NotificationList::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.NotificationList) - 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)) { - // repeated .flyteidl.admin.Notification notifications = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_notifications())); - } 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.NotificationList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NotificationList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NotificationList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NotificationList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Notification notifications = 1; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->notifications(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NotificationList) -} - -::google::protobuf::uint8* NotificationList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NotificationList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Notification notifications = 1; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->notifications(static_cast(i)), 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.NotificationList) - return target; -} - -size_t NotificationList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NotificationList) - 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; - - // repeated .flyteidl.admin.Notification notifications = 1; - { - unsigned int count = static_cast(this->notifications_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->notifications(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NotificationList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NotificationList) - GOOGLE_DCHECK_NE(&from, this); - const NotificationList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NotificationList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NotificationList) - MergeFrom(*source); - } -} - -void NotificationList::MergeFrom(const NotificationList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NotificationList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - notifications_.MergeFrom(from.notifications_); -} - -void NotificationList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NotificationList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NotificationList::CopyFrom(const NotificationList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NotificationList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NotificationList::IsInitialized() const { - return true; -} - -void NotificationList::Swap(NotificationList* other) { - if (other == this) return; - InternalSwap(other); -} -void NotificationList::InternalSwap(NotificationList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); -} - -::google::protobuf::Metadata NotificationList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionSpec::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->launch_plan_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::ExecutionMetadata*>( - ::flyteidl::admin::ExecutionMetadata::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_.notifications_ = const_cast< ::flyteidl::admin::NotificationList*>( - ::flyteidl::admin::NotificationList::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_.disable_all_ = false; - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( - ::flyteidl::admin::Labels::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( - ::flyteidl::admin::Annotations::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( - ::flyteidl::core::SecurityContext::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->auth_role_ = const_cast< ::flyteidl::admin::AuthRole*>( - ::flyteidl::admin::AuthRole::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( - ::flyteidl::core::QualityOfService::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( - ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->cluster_assignment_ = const_cast< ::flyteidl::admin::ClusterAssignment*>( - ::flyteidl::admin::ClusterAssignment::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( - ::google::protobuf::BoolValue::internal_default_instance()); - ::flyteidl::admin::_ExecutionSpec_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( - ::flyteidl::admin::Envs::internal_default_instance()); -} -class ExecutionSpec::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& launch_plan(const ExecutionSpec* msg); - static const ::flyteidl::core::LiteralMap& inputs(const ExecutionSpec* msg); - static const ::flyteidl::admin::ExecutionMetadata& metadata(const ExecutionSpec* msg); - static const ::flyteidl::admin::NotificationList& notifications(const ExecutionSpec* msg); - static const ::flyteidl::admin::Labels& labels(const ExecutionSpec* msg); - static const ::flyteidl::admin::Annotations& annotations(const ExecutionSpec* msg); - static const ::flyteidl::core::SecurityContext& security_context(const ExecutionSpec* msg); - static const ::flyteidl::admin::AuthRole& auth_role(const ExecutionSpec* msg); - static const ::flyteidl::core::QualityOfService& quality_of_service(const ExecutionSpec* msg); - static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const ExecutionSpec* msg); - static const ::flyteidl::admin::ClusterAssignment& cluster_assignment(const ExecutionSpec* msg); - static const ::google::protobuf::BoolValue& interruptible(const ExecutionSpec* msg); - static const ::flyteidl::admin::Envs& envs(const ExecutionSpec* msg); -}; - -const ::flyteidl::core::Identifier& -ExecutionSpec::HasBitSetters::launch_plan(const ExecutionSpec* msg) { - return *msg->launch_plan_; -} -const ::flyteidl::core::LiteralMap& -ExecutionSpec::HasBitSetters::inputs(const ExecutionSpec* msg) { - return *msg->inputs_; -} -const ::flyteidl::admin::ExecutionMetadata& -ExecutionSpec::HasBitSetters::metadata(const ExecutionSpec* msg) { - return *msg->metadata_; -} -const ::flyteidl::admin::NotificationList& -ExecutionSpec::HasBitSetters::notifications(const ExecutionSpec* msg) { - return *msg->notification_overrides_.notifications_; -} -const ::flyteidl::admin::Labels& -ExecutionSpec::HasBitSetters::labels(const ExecutionSpec* msg) { - return *msg->labels_; -} -const ::flyteidl::admin::Annotations& -ExecutionSpec::HasBitSetters::annotations(const ExecutionSpec* msg) { - return *msg->annotations_; -} -const ::flyteidl::core::SecurityContext& -ExecutionSpec::HasBitSetters::security_context(const ExecutionSpec* msg) { - return *msg->security_context_; -} -const ::flyteidl::admin::AuthRole& -ExecutionSpec::HasBitSetters::auth_role(const ExecutionSpec* msg) { - return *msg->auth_role_; -} -const ::flyteidl::core::QualityOfService& -ExecutionSpec::HasBitSetters::quality_of_service(const ExecutionSpec* msg) { - return *msg->quality_of_service_; -} -const ::flyteidl::admin::RawOutputDataConfig& -ExecutionSpec::HasBitSetters::raw_output_data_config(const ExecutionSpec* msg) { - return *msg->raw_output_data_config_; -} -const ::flyteidl::admin::ClusterAssignment& -ExecutionSpec::HasBitSetters::cluster_assignment(const ExecutionSpec* msg) { - return *msg->cluster_assignment_; -} -const ::google::protobuf::BoolValue& -ExecutionSpec::HasBitSetters::interruptible(const ExecutionSpec* msg) { - return *msg->interruptible_; -} -const ::flyteidl::admin::Envs& -ExecutionSpec::HasBitSetters::envs(const ExecutionSpec* msg) { - return *msg->envs_; -} -void ExecutionSpec::clear_launch_plan() { - if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { - delete launch_plan_; - } - launch_plan_ = nullptr; -} -void ExecutionSpec::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void ExecutionSpec::set_allocated_notifications(::flyteidl::admin::NotificationList* notifications) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_notification_overrides(); - if (notifications) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - notifications = ::google::protobuf::internal::GetOwnedMessage( - message_arena, notifications, submessage_arena); - } - set_has_notifications(); - notification_overrides_.notifications_ = notifications; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.notifications) -} -void ExecutionSpec::clear_labels() { - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; -} -void ExecutionSpec::clear_annotations() { - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; -} -void ExecutionSpec::clear_security_context() { - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; -} -void ExecutionSpec::clear_auth_role() { - if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { - delete auth_role_; - } - auth_role_ = nullptr; -} -void ExecutionSpec::clear_quality_of_service() { - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; -} -void ExecutionSpec::clear_raw_output_data_config() { - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; -} -void ExecutionSpec::clear_cluster_assignment() { - if (GetArenaNoVirtual() == nullptr && cluster_assignment_ != nullptr) { - delete cluster_assignment_; - } - cluster_assignment_ = nullptr; -} -void ExecutionSpec::clear_interruptible() { - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; -} -void ExecutionSpec::clear_envs() { - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionSpec::kLaunchPlanFieldNumber; -const int ExecutionSpec::kInputsFieldNumber; -const int ExecutionSpec::kMetadataFieldNumber; -const int ExecutionSpec::kNotificationsFieldNumber; -const int ExecutionSpec::kDisableAllFieldNumber; -const int ExecutionSpec::kLabelsFieldNumber; -const int ExecutionSpec::kAnnotationsFieldNumber; -const int ExecutionSpec::kSecurityContextFieldNumber; -const int ExecutionSpec::kAuthRoleFieldNumber; -const int ExecutionSpec::kQualityOfServiceFieldNumber; -const int ExecutionSpec::kMaxParallelismFieldNumber; -const int ExecutionSpec::kRawOutputDataConfigFieldNumber; -const int ExecutionSpec::kClusterAssignmentFieldNumber; -const int ExecutionSpec::kInterruptibleFieldNumber; -const int ExecutionSpec::kOverwriteCacheFieldNumber; -const int ExecutionSpec::kEnvsFieldNumber; -const int ExecutionSpec::kTagsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionSpec::ExecutionSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionSpec) -} -ExecutionSpec::ExecutionSpec(const ExecutionSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_launch_plan()) { - launch_plan_ = new ::flyteidl::core::Identifier(*from.launch_plan_); - } else { - launch_plan_ = nullptr; - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::admin::ExecutionMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_labels()) { - labels_ = new ::flyteidl::admin::Labels(*from.labels_); - } else { - labels_ = nullptr; - } - if (from.has_annotations()) { - annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); - } else { - annotations_ = nullptr; - } - if (from.has_security_context()) { - security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); - } else { - security_context_ = nullptr; - } - if (from.has_auth_role()) { - auth_role_ = new ::flyteidl::admin::AuthRole(*from.auth_role_); - } else { - auth_role_ = nullptr; - } - if (from.has_quality_of_service()) { - quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); - } else { - quality_of_service_ = nullptr; - } - if (from.has_raw_output_data_config()) { - raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); - } else { - raw_output_data_config_ = nullptr; - } - if (from.has_cluster_assignment()) { - cluster_assignment_ = new ::flyteidl::admin::ClusterAssignment(*from.cluster_assignment_); - } else { - cluster_assignment_ = nullptr; - } - if (from.has_interruptible()) { - interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); - } else { - interruptible_ = nullptr; - } - if (from.has_envs()) { - envs_ = new ::flyteidl::admin::Envs(*from.envs_); - } else { - envs_ = nullptr; - } - ::memcpy(&max_parallelism_, &from.max_parallelism_, - static_cast(reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - clear_has_notification_overrides(); - switch (from.notification_overrides_case()) { - case kNotifications: { - mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); - break; - } - case kDisableAll: { - set_disable_all(from.disable_all()); - break; - } - case NOTIFICATION_OVERRIDES_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionSpec) -} - -void ExecutionSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&launch_plan_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&launch_plan_)) + sizeof(overwrite_cache_)); - clear_has_notification_overrides(); -} - -ExecutionSpec::~ExecutionSpec() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionSpec) - SharedDtor(); -} - -void ExecutionSpec::SharedDtor() { - if (this != internal_default_instance()) delete launch_plan_; - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete labels_; - if (this != internal_default_instance()) delete annotations_; - if (this != internal_default_instance()) delete security_context_; - if (this != internal_default_instance()) delete auth_role_; - if (this != internal_default_instance()) delete quality_of_service_; - if (this != internal_default_instance()) delete raw_output_data_config_; - if (this != internal_default_instance()) delete cluster_assignment_; - if (this != internal_default_instance()) delete interruptible_; - if (this != internal_default_instance()) delete envs_; - if (has_notification_overrides()) { - clear_notification_overrides(); - } -} - -void ExecutionSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionSpec& ExecutionSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionSpec_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionSpec::clear_notification_overrides() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.ExecutionSpec) - switch (notification_overrides_case()) { - case kNotifications: { - delete notification_overrides_.notifications_; - break; - } - case kDisableAll: { - // No need to clear - break; - } - case NOTIFICATION_OVERRIDES_NOT_SET: { - break; - } - } - _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; -} - - -void ExecutionSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - if (GetArenaNoVirtual() == nullptr && launch_plan_ != nullptr) { - delete launch_plan_; - } - launch_plan_ = nullptr; - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; - if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { - delete auth_role_; - } - auth_role_ = nullptr; - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; - if (GetArenaNoVirtual() == nullptr && cluster_assignment_ != nullptr) { - delete cluster_assignment_; - } - cluster_assignment_ = nullptr; - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; - ::memset(&max_parallelism_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - clear_notification_overrides(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionSpec::_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 launch_plan = 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_launch_plan(); - 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.core.LiteralMap inputs = 2 [deprecated = true]; - 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::core::LiteralMap::_InternalParse; - object = msg->mutable_inputs(); - 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.ExecutionMetadata metadata = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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.NotificationList notifications = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NotificationList::_InternalParse; - object = msg->mutable_notifications(); - 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; - } - // bool disable_all = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_disable_all(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.Labels labels = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Labels::_InternalParse; - object = msg->mutable_labels(); - 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.Annotations annotations = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; - object = msg->mutable_annotations(); - 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.core.SecurityContext security_context = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; - object = msg->mutable_security_context(); - 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.AuthRole auth_role = 16 [deprecated = true]; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::AuthRole::_InternalParse; - object = msg->mutable_auth_role(); - 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.core.QualityOfService quality_of_service = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; - object = msg->mutable_quality_of_service(); - 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; - } - // int32 max_parallelism = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; - msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - case 19: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; - object = msg->mutable_raw_output_data_config(); - 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.ClusterAssignment cluster_assignment = 20; - case 20: { - if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ClusterAssignment::_InternalParse; - object = msg->mutable_cluster_assignment(); - 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; - } - // .google.protobuf.BoolValue interruptible = 21; - case 21: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::BoolValue::_InternalParse; - object = msg->mutable_interruptible(); - 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; - } - // bool overwrite_cache = 22; - case 22: { - if (static_cast<::google::protobuf::uint8>(tag) != 176) goto handle_unusual; - msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.Envs envs = 23; - case 23: { - if (static_cast<::google::protobuf::uint8>(tag) != 186) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Envs::_InternalParse; - object = msg->mutable_envs(); - 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; - } - // repeated string tags = 24; - case 24: { - if (static_cast<::google::protobuf::uint8>(tag) != 194) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionSpec.tags"); - object = msg->add_tags(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 450 && (ptr += 2)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionSpec::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.ExecutionSpec) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.Identifier launch_plan = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_plan())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NotificationList notifications = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_notifications())); - } else { - goto handle_unusual; - } - break; - } - - // bool disable_all = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - clear_notification_overrides(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, ¬ification_overrides_.disable_all_))); - set_has_disable_all(); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Labels labels = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_labels())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Annotations annotations = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_annotations())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SecurityContext security_context = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_security_context())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_auth_role())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.QualityOfService quality_of_service = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_quality_of_service())); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_parallelism = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_parallelism_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - case 19: { - if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_output_data_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - case 20: { - if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_cluster_assignment())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.BoolValue interruptible = 21; - case 21: { - if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interruptible())); - } else { - goto handle_unusual; - } - break; - } - - // bool overwrite_cache = 22; - case 22: { - if (static_cast< ::google::protobuf::uint8>(tag) == (176 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &overwrite_cache_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Envs envs = 23; - case 23: { - if (static_cast< ::google::protobuf::uint8>(tag) == (186 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_envs())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string tags = 24; - case 24: { - if (static_cast< ::google::protobuf::uint8>(tag) == (194 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tags())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(this->tags_size() - 1).data(), - static_cast(this->tags(this->tags_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionSpec.tags")); - } 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.ExecutionSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier launch_plan = 1; - if (this->has_launch_plan()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::launch_plan(this), output); - } - - // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::inputs(this), output); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::metadata(this), output); - } - - // .flyteidl.admin.NotificationList notifications = 5; - if (has_notifications()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::notifications(this), output); - } - - // bool disable_all = 6; - if (has_disable_all()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->disable_all(), output); - } - - // .flyteidl.admin.Labels labels = 7; - if (this->has_labels()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::labels(this), output); - } - - // .flyteidl.admin.Annotations annotations = 8; - if (this->has_annotations()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::annotations(this), output); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::security_context(this), output); - } - - // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - if (this->has_auth_role()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::auth_role(this), output); - } - - // .flyteidl.core.QualityOfService quality_of_service = 17; - if (this->has_quality_of_service()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::quality_of_service(this), output); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->max_parallelism(), output); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - if (this->has_raw_output_data_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 19, HasBitSetters::raw_output_data_config(this), output); - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - if (this->has_cluster_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, HasBitSetters::cluster_assignment(this), output); - } - - // .google.protobuf.BoolValue interruptible = 21; - if (this->has_interruptible()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, HasBitSetters::interruptible(this), output); - } - - // bool overwrite_cache = 22; - if (this->overwrite_cache() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->overwrite_cache(), output); - } - - // .flyteidl.admin.Envs envs = 23; - if (this->has_envs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 23, HasBitSetters::envs(this), output); - } - - // repeated string tags = 24; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionSpec.tags"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 24, this->tags(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionSpec) -} - -::google::protobuf::uint8* ExecutionSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier launch_plan = 1; - if (this->has_launch_plan()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::launch_plan(this), target); - } - - // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::inputs(this), target); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::metadata(this), target); - } - - // .flyteidl.admin.NotificationList notifications = 5; - if (has_notifications()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::notifications(this), target); - } - - // bool disable_all = 6; - if (has_disable_all()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->disable_all(), target); - } - - // .flyteidl.admin.Labels labels = 7; - if (this->has_labels()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::labels(this), target); - } - - // .flyteidl.admin.Annotations annotations = 8; - if (this->has_annotations()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::annotations(this), target); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::security_context(this), target); - } - - // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - if (this->has_auth_role()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::auth_role(this), target); - } - - // .flyteidl.core.QualityOfService quality_of_service = 17; - if (this->has_quality_of_service()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::quality_of_service(this), target); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->max_parallelism(), target); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - if (this->has_raw_output_data_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 19, HasBitSetters::raw_output_data_config(this), target); - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - if (this->has_cluster_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 20, HasBitSetters::cluster_assignment(this), target); - } - - // .google.protobuf.BoolValue interruptible = 21; - if (this->has_interruptible()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 21, HasBitSetters::interruptible(this), target); - } - - // bool overwrite_cache = 22; - if (this->overwrite_cache() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->overwrite_cache(), target); - } - - // .flyteidl.admin.Envs envs = 23; - if (this->has_envs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 23, HasBitSetters::envs(this), target); - } - - // repeated string tags = 24; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionSpec.tags"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(24, this->tags(i), 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.ExecutionSpec) - return target; -} - -size_t ExecutionSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionSpec) - 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; - - // repeated string tags = 24; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - for (int i = 0, n = this->tags_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tags(i)); - } - - // .flyteidl.core.Identifier launch_plan = 1; - if (this->has_launch_plan()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launch_plan_); - } - - // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.admin.Labels labels = 7; - if (this->has_labels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *labels_); - } - - // .flyteidl.admin.Annotations annotations = 8; - if (this->has_annotations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *annotations_); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *security_context_); - } - - // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - if (this->has_auth_role()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *auth_role_); - } - - // .flyteidl.core.QualityOfService quality_of_service = 17; - if (this->has_quality_of_service()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *quality_of_service_); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - if (this->has_raw_output_data_config()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_output_data_config_); - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - if (this->has_cluster_assignment()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *cluster_assignment_); - } - - // .google.protobuf.BoolValue interruptible = 21; - if (this->has_interruptible()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interruptible_); - } - - // .flyteidl.admin.Envs envs = 23; - if (this->has_envs()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *envs_); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_parallelism()); - } - - // bool overwrite_cache = 22; - if (this->overwrite_cache() != 0) { - total_size += 2 + 1; - } - - switch (notification_overrides_case()) { - // .flyteidl.admin.NotificationList notifications = 5; - case kNotifications: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *notification_overrides_.notifications_); - break; - } - // bool disable_all = 6; - case kDisableAll: { - total_size += 1 + 1; - break; - } - case NOTIFICATION_OVERRIDES_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionSpec) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionSpec) - MergeFrom(*source); - } -} - -void ExecutionSpec::MergeFrom(const ExecutionSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - if (from.has_launch_plan()) { - mutable_launch_plan()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan()); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::admin::ExecutionMetadata::MergeFrom(from.metadata()); - } - if (from.has_labels()) { - mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); - } - if (from.has_annotations()) { - mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); - } - if (from.has_security_context()) { - mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); - } - if (from.has_auth_role()) { - mutable_auth_role()->::flyteidl::admin::AuthRole::MergeFrom(from.auth_role()); - } - if (from.has_quality_of_service()) { - mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); - } - if (from.has_raw_output_data_config()) { - mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); - } - if (from.has_cluster_assignment()) { - mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); - } - if (from.has_interruptible()) { - mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); - } - if (from.has_envs()) { - mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); - } - if (from.max_parallelism() != 0) { - set_max_parallelism(from.max_parallelism()); - } - if (from.overwrite_cache() != 0) { - set_overwrite_cache(from.overwrite_cache()); - } - switch (from.notification_overrides_case()) { - case kNotifications: { - mutable_notifications()->::flyteidl::admin::NotificationList::MergeFrom(from.notifications()); - break; - } - case kDisableAll: { - set_disable_all(from.disable_all()); - break; - } - case NOTIFICATION_OVERRIDES_NOT_SET: { - break; - } - } -} - -void ExecutionSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionSpec::CopyFrom(const ExecutionSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionSpec::IsInitialized() const { - return true; -} - -void ExecutionSpec::Swap(ExecutionSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionSpec::InternalSwap(ExecutionSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.InternalSwap(CastToBase(&other->tags_)); - swap(launch_plan_, other->launch_plan_); - swap(inputs_, other->inputs_); - swap(metadata_, other->metadata_); - swap(labels_, other->labels_); - swap(annotations_, other->annotations_); - swap(security_context_, other->security_context_); - swap(auth_role_, other->auth_role_); - swap(quality_of_service_, other->quality_of_service_); - swap(raw_output_data_config_, other->raw_output_data_config_); - swap(cluster_assignment_, other->cluster_assignment_); - swap(interruptible_, other->interruptible_); - swap(envs_, other->envs_); - swap(max_parallelism_, other->max_parallelism_); - swap(overwrite_cache_, other->overwrite_cache_); - swap(notification_overrides_, other->notification_overrides_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ExecutionSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionTerminateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionTerminateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class ExecutionTerminateRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionTerminateRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionTerminateRequest::HasBitSetters::id(const ExecutionTerminateRequest* msg) { - return *msg->id_; -} -void ExecutionTerminateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionTerminateRequest::kIdFieldNumber; -const int ExecutionTerminateRequest::kCauseFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionTerminateRequest::ExecutionTerminateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateRequest) -} -ExecutionTerminateRequest::ExecutionTerminateRequest(const ExecutionTerminateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cause().size() > 0) { - cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateRequest) -} - -void ExecutionTerminateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - id_ = nullptr; -} - -ExecutionTerminateRequest::~ExecutionTerminateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateRequest) - SharedDtor(); -} - -void ExecutionTerminateRequest::SharedDtor() { - cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; -} - -void ExecutionTerminateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionTerminateRequest& ExecutionTerminateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionTerminateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionTerminateRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // string cause = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionTerminateRequest.cause"); - object = msg->mutable_cause(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionTerminateRequest::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.ExecutionTerminateRequest) - 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.WorkflowExecutionIdentifier 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; - } - - // string cause = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cause())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionTerminateRequest.cause")); - } 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.ExecutionTerminateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionTerminateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string cause = 2; - if (this->cause().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionTerminateRequest.cause"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->cause(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateRequest) -} - -::google::protobuf::uint8* ExecutionTerminateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string cause = 2; - if (this->cause().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cause().data(), static_cast(this->cause().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionTerminateRequest.cause"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->cause(), 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.ExecutionTerminateRequest) - return target; -} - -size_t ExecutionTerminateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateRequest) - 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; - - // string cause = 2; - if (this->cause().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cause()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier 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 ExecutionTerminateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionTerminateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateRequest) - MergeFrom(*source); - } -} - -void ExecutionTerminateRequest::MergeFrom(const ExecutionTerminateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cause().size() > 0) { - - cause_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cause_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } -} - -void ExecutionTerminateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionTerminateRequest::CopyFrom(const ExecutionTerminateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionTerminateRequest::IsInitialized() const { - return true; -} - -void ExecutionTerminateRequest::Swap(ExecutionTerminateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionTerminateRequest::InternalSwap(ExecutionTerminateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cause_.Swap(&other->cause_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); -} - -::google::protobuf::Metadata ExecutionTerminateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionTerminateResponse::InitAsDefaultInstance() { -} -class ExecutionTerminateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionTerminateResponse::ExecutionTerminateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionTerminateResponse) -} -ExecutionTerminateResponse::ExecutionTerminateResponse(const ExecutionTerminateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionTerminateResponse) -} - -void ExecutionTerminateResponse::SharedCtor() { -} - -ExecutionTerminateResponse::~ExecutionTerminateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionTerminateResponse) - SharedDtor(); -} - -void ExecutionTerminateResponse::SharedDtor() { -} - -void ExecutionTerminateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionTerminateResponse& ExecutionTerminateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionTerminateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionTerminateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionTerminateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionTerminateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionTerminateResponse::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.ExecutionTerminateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionTerminateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionTerminateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionTerminateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionTerminateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionTerminateResponse) -} - -::google::protobuf::uint8* ExecutionTerminateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionTerminateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ExecutionTerminateResponse) - return target; -} - -size_t ExecutionTerminateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionTerminateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionTerminateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionTerminateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionTerminateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionTerminateResponse) - MergeFrom(*source); - } -} - -void ExecutionTerminateResponse::MergeFrom(const ExecutionTerminateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionTerminateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ExecutionTerminateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionTerminateResponse::CopyFrom(const ExecutionTerminateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionTerminateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionTerminateResponse::IsInitialized() const { - return true; -} - -void ExecutionTerminateResponse::Swap(ExecutionTerminateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionTerminateResponse::InternalSwap(ExecutionTerminateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ExecutionTerminateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionGetDataRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class WorkflowExecutionGetDataRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetDataRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowExecutionGetDataRequest::HasBitSetters::id(const WorkflowExecutionGetDataRequest* msg) { - return *msg->id_; -} -void WorkflowExecutionGetDataRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionGetDataRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) -} -WorkflowExecutionGetDataRequest::WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataRequest) -} - -void WorkflowExecutionGetDataRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - id_ = nullptr; -} - -WorkflowExecutionGetDataRequest::~WorkflowExecutionGetDataRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataRequest) - SharedDtor(); -} - -void WorkflowExecutionGetDataRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void WorkflowExecutionGetDataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionGetDataRequest& WorkflowExecutionGetDataRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionGetDataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - ::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* WorkflowExecutionGetDataRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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 WorkflowExecutionGetDataRequest::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.WorkflowExecutionGetDataRequest) - 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.WorkflowExecutionIdentifier 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.WorkflowExecutionGetDataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionGetDataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.WorkflowExecutionGetDataRequest) -} - -::google::protobuf::uint8* WorkflowExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier 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.WorkflowExecutionGetDataRequest) - return target; -} - -size_t WorkflowExecutionGetDataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - 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.WorkflowExecutionIdentifier 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 WorkflowExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionGetDataRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataRequest) - MergeFrom(*source); - } -} - -void WorkflowExecutionGetDataRequest::MergeFrom(const WorkflowExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } -} - -void WorkflowExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionGetDataRequest::CopyFrom(const WorkflowExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionGetDataRequest::IsInitialized() const { - return true; -} - -void WorkflowExecutionGetDataRequest::Swap(WorkflowExecutionGetDataRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionGetDataRequest::InternalSwap(WorkflowExecutionGetDataRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata WorkflowExecutionGetDataRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionGetDataResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class WorkflowExecutionGetDataResponse::HasBitSetters { - public: - static const ::flyteidl::admin::UrlBlob& outputs(const WorkflowExecutionGetDataResponse* msg); - static const ::flyteidl::admin::UrlBlob& inputs(const WorkflowExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_inputs(const WorkflowExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_outputs(const WorkflowExecutionGetDataResponse* msg); -}; - -const ::flyteidl::admin::UrlBlob& -WorkflowExecutionGetDataResponse::HasBitSetters::outputs(const WorkflowExecutionGetDataResponse* msg) { - return *msg->outputs_; -} -const ::flyteidl::admin::UrlBlob& -WorkflowExecutionGetDataResponse::HasBitSetters::inputs(const WorkflowExecutionGetDataResponse* msg) { - return *msg->inputs_; -} -const ::flyteidl::core::LiteralMap& -WorkflowExecutionGetDataResponse::HasBitSetters::full_inputs(const WorkflowExecutionGetDataResponse* msg) { - return *msg->full_inputs_; -} -const ::flyteidl::core::LiteralMap& -WorkflowExecutionGetDataResponse::HasBitSetters::full_outputs(const WorkflowExecutionGetDataResponse* msg) { - return *msg->full_outputs_; -} -void WorkflowExecutionGetDataResponse::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -void WorkflowExecutionGetDataResponse::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void WorkflowExecutionGetDataResponse::clear_full_inputs() { - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; -} -void WorkflowExecutionGetDataResponse::clear_full_outputs() { - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionGetDataResponse::kOutputsFieldNumber; -const int WorkflowExecutionGetDataResponse::kInputsFieldNumber; -const int WorkflowExecutionGetDataResponse::kFullInputsFieldNumber; -const int WorkflowExecutionGetDataResponse::kFullOutputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) -} -WorkflowExecutionGetDataResponse::WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_outputs()) { - outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); - } else { - outputs_ = nullptr; - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_full_inputs()) { - full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); - } else { - full_inputs_ = nullptr; - } - if (from.has_full_outputs()) { - full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); - } else { - full_outputs_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetDataResponse) -} - -void WorkflowExecutionGetDataResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&outputs_, 0, static_cast( - reinterpret_cast(&full_outputs_) - - reinterpret_cast(&outputs_)) + sizeof(full_outputs_)); -} - -WorkflowExecutionGetDataResponse::~WorkflowExecutionGetDataResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetDataResponse) - SharedDtor(); -} - -void WorkflowExecutionGetDataResponse::SharedDtor() { - if (this != internal_default_instance()) delete outputs_; - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete full_inputs_; - if (this != internal_default_instance()) delete full_outputs_; -} - -void WorkflowExecutionGetDataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionGetDataResponse& WorkflowExecutionGetDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetDataResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionGetDataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionGetDataResponse::_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.UrlBlob outputs = 1 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_outputs(); - 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.UrlBlob inputs = 2 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_inputs(); - 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.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_inputs(); - 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.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_outputs(); - 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 WorkflowExecutionGetDataResponse::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.WorkflowExecutionGetDataResponse) - 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.UrlBlob outputs = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_outputs())); - } 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.WorkflowExecutionGetDataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionGetDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::outputs(this), output); - } - - // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::inputs(this), output); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::full_inputs(this), output); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::full_outputs(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.WorkflowExecutionGetDataResponse) -} - -::google::protobuf::uint8* WorkflowExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::outputs(this), target); - } - - // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::inputs(this), target); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::full_inputs(this), target); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::full_outputs(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.WorkflowExecutionGetDataResponse) - return target; -} - -size_t WorkflowExecutionGetDataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - 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.admin.UrlBlob outputs = 1 [deprecated = true]; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_inputs_); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_outputs_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionGetDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetDataResponse) - MergeFrom(*source); - } -} - -void WorkflowExecutionGetDataResponse::MergeFrom(const WorkflowExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - 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_outputs()) { - mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); - } - if (from.has_full_inputs()) { - mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); - } - if (from.has_full_outputs()) { - mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); - } -} - -void WorkflowExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionGetDataResponse::CopyFrom(const WorkflowExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionGetDataResponse::IsInitialized() const { - return true; -} - -void WorkflowExecutionGetDataResponse::Swap(WorkflowExecutionGetDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionGetDataResponse::InternalSwap(WorkflowExecutionGetDataResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(outputs_, other->outputs_); - swap(inputs_, other->inputs_); - swap(full_inputs_, other->full_inputs_); - swap(full_outputs_, other->full_outputs_); -} - -::google::protobuf::Metadata WorkflowExecutionGetDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class ExecutionUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const ExecutionUpdateRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionUpdateRequest::HasBitSetters::id(const ExecutionUpdateRequest* msg) { - return *msg->id_; -} -void ExecutionUpdateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionUpdateRequest::kIdFieldNumber; -const int ExecutionUpdateRequest::kStateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionUpdateRequest::ExecutionUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionUpdateRequest) -} -ExecutionUpdateRequest::ExecutionUpdateRequest(const ExecutionUpdateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionUpdateRequest) -} - -void ExecutionUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&id_)) + sizeof(state_)); -} - -ExecutionUpdateRequest::~ExecutionUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionUpdateRequest) - SharedDtor(); -} - -void ExecutionUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void ExecutionUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionUpdateRequest& ExecutionUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionUpdateRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionUpdateRequest) - ::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; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionUpdateRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // .flyteidl.admin.ExecutionState state = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::ExecutionState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 ExecutionUpdateRequest::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.ExecutionUpdateRequest) - 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.WorkflowExecutionIdentifier 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; - } - - // .flyteidl.admin.ExecutionState state = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::ExecutionState >(value)); - } 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.ExecutionUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .flyteidl.admin.ExecutionState state = 2; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->state(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionUpdateRequest) -} - -::google::protobuf::uint8* ExecutionUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .flyteidl.admin.ExecutionState state = 2; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->state(), 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.ExecutionUpdateRequest) - return target; -} - -size_t ExecutionUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionUpdateRequest) - 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.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.ExecutionState state = 2; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionUpdateRequest) - MergeFrom(*source); - } -} - -void ExecutionUpdateRequest::MergeFrom(const ExecutionUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionUpdateRequest) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void ExecutionUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionUpdateRequest::CopyFrom(const ExecutionUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionUpdateRequest::IsInitialized() const { - return true; -} - -void ExecutionUpdateRequest::Swap(ExecutionUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionUpdateRequest::InternalSwap(ExecutionUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata ExecutionUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionStateChangeDetails::InitAsDefaultInstance() { - ::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class ExecutionStateChangeDetails::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& occurred_at(const ExecutionStateChangeDetails* msg); -}; - -const ::google::protobuf::Timestamp& -ExecutionStateChangeDetails::HasBitSetters::occurred_at(const ExecutionStateChangeDetails* msg) { - return *msg->occurred_at_; -} -void ExecutionStateChangeDetails::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionStateChangeDetails::kStateFieldNumber; -const int ExecutionStateChangeDetails::kOccurredAtFieldNumber; -const int ExecutionStateChangeDetails::kPrincipalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionStateChangeDetails::ExecutionStateChangeDetails() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionStateChangeDetails) -} -ExecutionStateChangeDetails::ExecutionStateChangeDetails(const ExecutionStateChangeDetails& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionStateChangeDetails) -} - -void ExecutionStateChangeDetails::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&occurred_at_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&occurred_at_)) + sizeof(state_)); -} - -ExecutionStateChangeDetails::~ExecutionStateChangeDetails() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionStateChangeDetails) - SharedDtor(); -} - -void ExecutionStateChangeDetails::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete occurred_at_; -} - -void ExecutionStateChangeDetails::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionStateChangeDetails& ExecutionStateChangeDetails::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionStateChangeDetails_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionStateChangeDetails::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionStateChangeDetails) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionStateChangeDetails::_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.ExecutionState state = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::ExecutionState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp occurred_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; - } - // string principal = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionStateChangeDetails.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionStateChangeDetails::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.ExecutionStateChangeDetails) - 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.ExecutionState state = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::ExecutionState >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp occurred_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionStateChangeDetails.principal")); - } 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.ExecutionStateChangeDetails) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionStateChangeDetails) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionStateChangeDetails::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionStateChangeDetails) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ExecutionState state = 1; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->state(), output); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::occurred_at(this), output); - } - - // string principal = 3; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionStateChangeDetails.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->principal(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionStateChangeDetails) -} - -::google::protobuf::uint8* ExecutionStateChangeDetails::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionStateChangeDetails) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ExecutionState state = 1; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->state(), target); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::occurred_at(this), target); - } - - // string principal = 3; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionStateChangeDetails.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->principal(), 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.ExecutionStateChangeDetails) - return target; -} - -size_t ExecutionStateChangeDetails::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionStateChangeDetails) - 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; - - // string principal = 3; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - // .flyteidl.admin.ExecutionState state = 1; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionStateChangeDetails::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionStateChangeDetails) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionStateChangeDetails* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionStateChangeDetails) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionStateChangeDetails) - MergeFrom(*source); - } -} - -void ExecutionStateChangeDetails::MergeFrom(const ExecutionStateChangeDetails& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionStateChangeDetails) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void ExecutionStateChangeDetails::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionStateChangeDetails) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionStateChangeDetails::CopyFrom(const ExecutionStateChangeDetails& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionStateChangeDetails) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionStateChangeDetails::IsInitialized() const { - return true; -} - -void ExecutionStateChangeDetails::Swap(ExecutionStateChangeDetails* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionStateChangeDetails::InternalSwap(ExecutionStateChangeDetails* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(occurred_at_, other->occurred_at_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata ExecutionStateChangeDetails::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionUpdateResponse::InitAsDefaultInstance() { -} -class ExecutionUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionUpdateResponse::ExecutionUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionUpdateResponse) -} -ExecutionUpdateResponse::ExecutionUpdateResponse(const ExecutionUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionUpdateResponse) -} - -void ExecutionUpdateResponse::SharedCtor() { -} - -ExecutionUpdateResponse::~ExecutionUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionUpdateResponse) - SharedDtor(); -} - -void ExecutionUpdateResponse::SharedDtor() { -} - -void ExecutionUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionUpdateResponse& ExecutionUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionUpdateResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionUpdateResponse::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.ExecutionUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ExecutionUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionUpdateResponse) -} - -::google::protobuf::uint8* ExecutionUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ExecutionUpdateResponse) - return target; -} - -size_t ExecutionUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionUpdateResponse) - MergeFrom(*source); - } -} - -void ExecutionUpdateResponse::MergeFrom(const ExecutionUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ExecutionUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionUpdateResponse::CopyFrom(const ExecutionUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionUpdateResponse::IsInitialized() const { - return true; -} - -void ExecutionUpdateResponse::Swap(ExecutionUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionUpdateResponse::InternalSwap(ExecutionUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ExecutionUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionGetMetricsRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionGetMetricsRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class WorkflowExecutionGetMetricsRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& id(const WorkflowExecutionGetMetricsRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowExecutionGetMetricsRequest::HasBitSetters::id(const WorkflowExecutionGetMetricsRequest* msg) { - return *msg->id_; -} -void WorkflowExecutionGetMetricsRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionGetMetricsRequest::kIdFieldNumber; -const int WorkflowExecutionGetMetricsRequest::kDepthFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionGetMetricsRequest::WorkflowExecutionGetMetricsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) -} -WorkflowExecutionGetMetricsRequest::WorkflowExecutionGetMetricsRequest(const WorkflowExecutionGetMetricsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - depth_ = from.depth_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) -} - -void WorkflowExecutionGetMetricsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&depth_) - - reinterpret_cast(&id_)) + sizeof(depth_)); -} - -WorkflowExecutionGetMetricsRequest::~WorkflowExecutionGetMetricsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - SharedDtor(); -} - -void WorkflowExecutionGetMetricsRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void WorkflowExecutionGetMetricsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionGetMetricsRequest& WorkflowExecutionGetMetricsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetMetricsRequest_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionGetMetricsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - ::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; - depth_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionGetMetricsRequest::_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.WorkflowExecutionIdentifier 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::WorkflowExecutionIdentifier::_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; - } - // int32 depth = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_depth(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 WorkflowExecutionGetMetricsRequest::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.WorkflowExecutionGetMetricsRequest) - 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.WorkflowExecutionIdentifier 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; - } - - // int32 depth = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &depth_))); - } 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.WorkflowExecutionGetMetricsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionGetMetricsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // int32 depth = 2; - if (this->depth() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->depth(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowExecutionGetMetricsRequest) -} - -::google::protobuf::uint8* WorkflowExecutionGetMetricsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // int32 depth = 2; - if (this->depth() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->depth(), 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.WorkflowExecutionGetMetricsRequest) - return target; -} - -size_t WorkflowExecutionGetMetricsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - 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.WorkflowExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // int32 depth = 2; - if (this->depth() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->depth()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionGetMetricsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionGetMetricsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - MergeFrom(*source); - } -} - -void WorkflowExecutionGetMetricsRequest::MergeFrom(const WorkflowExecutionGetMetricsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - 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::WorkflowExecutionIdentifier::MergeFrom(from.id()); - } - if (from.depth() != 0) { - set_depth(from.depth()); - } -} - -void WorkflowExecutionGetMetricsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionGetMetricsRequest::CopyFrom(const WorkflowExecutionGetMetricsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionGetMetricsRequest::IsInitialized() const { - return true; -} - -void WorkflowExecutionGetMetricsRequest::Swap(WorkflowExecutionGetMetricsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionGetMetricsRequest::InternalSwap(WorkflowExecutionGetMetricsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(depth_, other->depth_); -} - -::google::protobuf::Metadata WorkflowExecutionGetMetricsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionGetMetricsResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionGetMetricsResponse_default_instance_._instance.get_mutable()->span_ = const_cast< ::flyteidl::core::Span*>( - ::flyteidl::core::Span::internal_default_instance()); -} -class WorkflowExecutionGetMetricsResponse::HasBitSetters { - public: - static const ::flyteidl::core::Span& span(const WorkflowExecutionGetMetricsResponse* msg); -}; - -const ::flyteidl::core::Span& -WorkflowExecutionGetMetricsResponse::HasBitSetters::span(const WorkflowExecutionGetMetricsResponse* msg) { - return *msg->span_; -} -void WorkflowExecutionGetMetricsResponse::clear_span() { - if (GetArenaNoVirtual() == nullptr && span_ != nullptr) { - delete span_; - } - span_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionGetMetricsResponse::kSpanFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionGetMetricsResponse::WorkflowExecutionGetMetricsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) -} -WorkflowExecutionGetMetricsResponse::WorkflowExecutionGetMetricsResponse(const WorkflowExecutionGetMetricsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_span()) { - span_ = new ::flyteidl::core::Span(*from.span_); - } else { - span_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) -} - -void WorkflowExecutionGetMetricsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - span_ = nullptr; -} - -WorkflowExecutionGetMetricsResponse::~WorkflowExecutionGetMetricsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - SharedDtor(); -} - -void WorkflowExecutionGetMetricsResponse::SharedDtor() { - if (this != internal_default_instance()) delete span_; -} - -void WorkflowExecutionGetMetricsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionGetMetricsResponse& WorkflowExecutionGetMetricsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionGetMetricsResponse_flyteidl_2fadmin_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionGetMetricsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && span_ != nullptr) { - delete span_; - } - span_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionGetMetricsResponse::_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.Span span = 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::Span::_InternalParse; - object = msg->mutable_span(); - 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 WorkflowExecutionGetMetricsResponse::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.WorkflowExecutionGetMetricsResponse) - 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.Span span = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_span())); - } 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.WorkflowExecutionGetMetricsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionGetMetricsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Span span = 1; - if (this->has_span()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::span(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.WorkflowExecutionGetMetricsResponse) -} - -::google::protobuf::uint8* WorkflowExecutionGetMetricsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Span span = 1; - if (this->has_span()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::span(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.WorkflowExecutionGetMetricsResponse) - return target; -} - -size_t WorkflowExecutionGetMetricsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - 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.Span span = 1; - if (this->has_span()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *span_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionGetMetricsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionGetMetricsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - MergeFrom(*source); - } -} - -void WorkflowExecutionGetMetricsResponse::MergeFrom(const WorkflowExecutionGetMetricsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - 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_span()) { - mutable_span()->::flyteidl::core::Span::MergeFrom(from.span()); - } -} - -void WorkflowExecutionGetMetricsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionGetMetricsResponse::CopyFrom(const WorkflowExecutionGetMetricsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionGetMetricsResponse::IsInitialized() const { - return true; -} - -void WorkflowExecutionGetMetricsResponse::Swap(WorkflowExecutionGetMetricsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionGetMetricsResponse::InternalSwap(WorkflowExecutionGetMetricsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(span_, other->span_); -} - -::google::protobuf::Metadata WorkflowExecutionGetMetricsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionRelaunchRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionRelaunchRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionRelaunchRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionRecoverRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionRecoverRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionRecoverRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionCreateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionCreateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Execution* Arena::CreateMaybeMessage< ::flyteidl::admin::Execution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Execution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LiteralMapBlob* Arena::CreateMaybeMessage< ::flyteidl::admin::LiteralMapBlob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LiteralMapBlob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::AbortMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::AbortMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::AbortMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionClosure >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SystemMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::SystemMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SystemMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NotificationList* Arena::CreateMaybeMessage< ::flyteidl::admin::NotificationList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NotificationList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionTerminateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionTerminateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionTerminateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetDataResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionStateChangeDetails* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionStateChangeDetails >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionStateChangeDetails >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h deleted file mode 100644 index fbe4b1f4f4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/execution.pb.h +++ /dev/null @@ -1,7209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/execution.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/admin/cluster_assignment.pb.h" -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/artifact_id.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/metrics.pb.h" -#include "flyteidl/core/security.pb.h" -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fexecution_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fexecution_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[23] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto(); -namespace flyteidl { -namespace admin { -class AbortMetadata; -class AbortMetadataDefaultTypeInternal; -extern AbortMetadataDefaultTypeInternal _AbortMetadata_default_instance_; -class Execution; -class ExecutionDefaultTypeInternal; -extern ExecutionDefaultTypeInternal _Execution_default_instance_; -class ExecutionClosure; -class ExecutionClosureDefaultTypeInternal; -extern ExecutionClosureDefaultTypeInternal _ExecutionClosure_default_instance_; -class ExecutionCreateRequest; -class ExecutionCreateRequestDefaultTypeInternal; -extern ExecutionCreateRequestDefaultTypeInternal _ExecutionCreateRequest_default_instance_; -class ExecutionCreateResponse; -class ExecutionCreateResponseDefaultTypeInternal; -extern ExecutionCreateResponseDefaultTypeInternal _ExecutionCreateResponse_default_instance_; -class ExecutionList; -class ExecutionListDefaultTypeInternal; -extern ExecutionListDefaultTypeInternal _ExecutionList_default_instance_; -class ExecutionMetadata; -class ExecutionMetadataDefaultTypeInternal; -extern ExecutionMetadataDefaultTypeInternal _ExecutionMetadata_default_instance_; -class ExecutionRecoverRequest; -class ExecutionRecoverRequestDefaultTypeInternal; -extern ExecutionRecoverRequestDefaultTypeInternal _ExecutionRecoverRequest_default_instance_; -class ExecutionRelaunchRequest; -class ExecutionRelaunchRequestDefaultTypeInternal; -extern ExecutionRelaunchRequestDefaultTypeInternal _ExecutionRelaunchRequest_default_instance_; -class ExecutionSpec; -class ExecutionSpecDefaultTypeInternal; -extern ExecutionSpecDefaultTypeInternal _ExecutionSpec_default_instance_; -class ExecutionStateChangeDetails; -class ExecutionStateChangeDetailsDefaultTypeInternal; -extern ExecutionStateChangeDetailsDefaultTypeInternal _ExecutionStateChangeDetails_default_instance_; -class ExecutionTerminateRequest; -class ExecutionTerminateRequestDefaultTypeInternal; -extern ExecutionTerminateRequestDefaultTypeInternal _ExecutionTerminateRequest_default_instance_; -class ExecutionTerminateResponse; -class ExecutionTerminateResponseDefaultTypeInternal; -extern ExecutionTerminateResponseDefaultTypeInternal _ExecutionTerminateResponse_default_instance_; -class ExecutionUpdateRequest; -class ExecutionUpdateRequestDefaultTypeInternal; -extern ExecutionUpdateRequestDefaultTypeInternal _ExecutionUpdateRequest_default_instance_; -class ExecutionUpdateResponse; -class ExecutionUpdateResponseDefaultTypeInternal; -extern ExecutionUpdateResponseDefaultTypeInternal _ExecutionUpdateResponse_default_instance_; -class LiteralMapBlob; -class LiteralMapBlobDefaultTypeInternal; -extern LiteralMapBlobDefaultTypeInternal _LiteralMapBlob_default_instance_; -class NotificationList; -class NotificationListDefaultTypeInternal; -extern NotificationListDefaultTypeInternal _NotificationList_default_instance_; -class SystemMetadata; -class SystemMetadataDefaultTypeInternal; -extern SystemMetadataDefaultTypeInternal _SystemMetadata_default_instance_; -class WorkflowExecutionGetDataRequest; -class WorkflowExecutionGetDataRequestDefaultTypeInternal; -extern WorkflowExecutionGetDataRequestDefaultTypeInternal _WorkflowExecutionGetDataRequest_default_instance_; -class WorkflowExecutionGetDataResponse; -class WorkflowExecutionGetDataResponseDefaultTypeInternal; -extern WorkflowExecutionGetDataResponseDefaultTypeInternal _WorkflowExecutionGetDataResponse_default_instance_; -class WorkflowExecutionGetMetricsRequest; -class WorkflowExecutionGetMetricsRequestDefaultTypeInternal; -extern WorkflowExecutionGetMetricsRequestDefaultTypeInternal _WorkflowExecutionGetMetricsRequest_default_instance_; -class WorkflowExecutionGetMetricsResponse; -class WorkflowExecutionGetMetricsResponseDefaultTypeInternal; -extern WorkflowExecutionGetMetricsResponseDefaultTypeInternal _WorkflowExecutionGetMetricsResponse_default_instance_; -class WorkflowExecutionGetRequest; -class WorkflowExecutionGetRequestDefaultTypeInternal; -extern WorkflowExecutionGetRequestDefaultTypeInternal _WorkflowExecutionGetRequest_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::AbortMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::AbortMetadata>(Arena*); -template<> ::flyteidl::admin::Execution* Arena::CreateMaybeMessage<::flyteidl::admin::Execution>(Arena*); -template<> ::flyteidl::admin::ExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionClosure>(Arena*); -template<> ::flyteidl::admin::ExecutionCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionCreateRequest>(Arena*); -template<> ::flyteidl::admin::ExecutionCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionCreateResponse>(Arena*); -template<> ::flyteidl::admin::ExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionList>(Arena*); -template<> ::flyteidl::admin::ExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(Arena*); -template<> ::flyteidl::admin::ExecutionRecoverRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionRecoverRequest>(Arena*); -template<> ::flyteidl::admin::ExecutionRelaunchRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionRelaunchRequest>(Arena*); -template<> ::flyteidl::admin::ExecutionSpec* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(Arena*); -template<> ::flyteidl::admin::ExecutionStateChangeDetails* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionStateChangeDetails>(Arena*); -template<> ::flyteidl::admin::ExecutionTerminateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionTerminateRequest>(Arena*); -template<> ::flyteidl::admin::ExecutionTerminateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionTerminateResponse>(Arena*); -template<> ::flyteidl::admin::ExecutionUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionUpdateRequest>(Arena*); -template<> ::flyteidl::admin::ExecutionUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionUpdateResponse>(Arena*); -template<> ::flyteidl::admin::LiteralMapBlob* Arena::CreateMaybeMessage<::flyteidl::admin::LiteralMapBlob>(Arena*); -template<> ::flyteidl::admin::NotificationList* Arena::CreateMaybeMessage<::flyteidl::admin::NotificationList>(Arena*); -template<> ::flyteidl::admin::SystemMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::SystemMetadata>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetDataRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetDataResponse>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetMetricsRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetMetricsResponse>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionGetRequest>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum ExecutionMetadata_ExecutionMode { - ExecutionMetadata_ExecutionMode_MANUAL = 0, - ExecutionMetadata_ExecutionMode_SCHEDULED = 1, - ExecutionMetadata_ExecutionMode_SYSTEM = 2, - ExecutionMetadata_ExecutionMode_RELAUNCH = 3, - ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW = 4, - ExecutionMetadata_ExecutionMode_RECOVERED = 5, - ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ExecutionMetadata_ExecutionMode_ExecutionMetadata_ExecutionMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ExecutionMetadata_ExecutionMode_IsValid(int value); -const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MIN = ExecutionMetadata_ExecutionMode_MANUAL; -const ExecutionMetadata_ExecutionMode ExecutionMetadata_ExecutionMode_ExecutionMode_MAX = ExecutionMetadata_ExecutionMode_RECOVERED; -const int ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE = ExecutionMetadata_ExecutionMode_ExecutionMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ExecutionMetadata_ExecutionMode_descriptor(); -inline const ::std::string& ExecutionMetadata_ExecutionMode_Name(ExecutionMetadata_ExecutionMode value) { - return ::google::protobuf::internal::NameOfEnum( - ExecutionMetadata_ExecutionMode_descriptor(), value); -} -inline bool ExecutionMetadata_ExecutionMode_Parse( - const ::std::string& name, ExecutionMetadata_ExecutionMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ExecutionMetadata_ExecutionMode_descriptor(), name, value); -} -enum ExecutionState { - EXECUTION_ACTIVE = 0, - EXECUTION_ARCHIVED = 1, - ExecutionState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ExecutionState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ExecutionState_IsValid(int value); -const ExecutionState ExecutionState_MIN = EXECUTION_ACTIVE; -const ExecutionState ExecutionState_MAX = EXECUTION_ARCHIVED; -const int ExecutionState_ARRAYSIZE = ExecutionState_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ExecutionState_descriptor(); -inline const ::std::string& ExecutionState_Name(ExecutionState value) { - return ::google::protobuf::internal::NameOfEnum( - ExecutionState_descriptor(), value); -} -inline bool ExecutionState_Parse( - const ::std::string& name, ExecutionState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ExecutionState_descriptor(), name, value); -} -// =================================================================== - -class ExecutionCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateRequest) */ { - public: - ExecutionCreateRequest(); - virtual ~ExecutionCreateRequest(); - - ExecutionCreateRequest(const ExecutionCreateRequest& from); - - inline ExecutionCreateRequest& operator=(const ExecutionCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionCreateRequest(ExecutionCreateRequest&& from) noexcept - : ExecutionCreateRequest() { - *this = ::std::move(from); - } - - inline ExecutionCreateRequest& operator=(ExecutionCreateRequest&& 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 ExecutionCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ExecutionCreateRequest* other); - friend void swap(ExecutionCreateRequest& a, ExecutionCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionCreateRequest* 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 ExecutionCreateRequest& from); - void MergeFrom(const ExecutionCreateRequest& 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(ExecutionCreateRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.admin.ExecutionSpec spec = 4; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 4; - const ::flyteidl::admin::ExecutionSpec& spec() const; - ::flyteidl::admin::ExecutionSpec* release_spec(); - ::flyteidl::admin::ExecutionSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); - - // .flyteidl.core.LiteralMap inputs = 5; - bool has_inputs() const; - void clear_inputs(); - static const int kInputsFieldNumber = 5; - const ::flyteidl::core::LiteralMap& inputs() const; - ::flyteidl::core::LiteralMap* release_inputs(); - ::flyteidl::core::LiteralMap* mutable_inputs(); - void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::admin::ExecutionSpec* spec_; - ::flyteidl::core::LiteralMap* inputs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionRelaunchRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionRelaunchRequest) */ { - public: - ExecutionRelaunchRequest(); - virtual ~ExecutionRelaunchRequest(); - - ExecutionRelaunchRequest(const ExecutionRelaunchRequest& from); - - inline ExecutionRelaunchRequest& operator=(const ExecutionRelaunchRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionRelaunchRequest(ExecutionRelaunchRequest&& from) noexcept - : ExecutionRelaunchRequest() { - *this = ::std::move(from); - } - - inline ExecutionRelaunchRequest& operator=(ExecutionRelaunchRequest&& 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 ExecutionRelaunchRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionRelaunchRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionRelaunchRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ExecutionRelaunchRequest* other); - friend void swap(ExecutionRelaunchRequest& a, ExecutionRelaunchRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionRelaunchRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionRelaunchRequest* 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 ExecutionRelaunchRequest& from); - void MergeFrom(const ExecutionRelaunchRequest& 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(ExecutionRelaunchRequest* 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 ------------------------------------------------------- - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // bool overwrite_cache = 4; - void clear_overwrite_cache(); - static const int kOverwriteCacheFieldNumber = 4; - bool overwrite_cache() const; - void set_overwrite_cache(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - bool overwrite_cache_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionRecoverRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionRecoverRequest) */ { - public: - ExecutionRecoverRequest(); - virtual ~ExecutionRecoverRequest(); - - ExecutionRecoverRequest(const ExecutionRecoverRequest& from); - - inline ExecutionRecoverRequest& operator=(const ExecutionRecoverRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionRecoverRequest(ExecutionRecoverRequest&& from) noexcept - : ExecutionRecoverRequest() { - *this = ::std::move(from); - } - - inline ExecutionRecoverRequest& operator=(ExecutionRecoverRequest&& 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 ExecutionRecoverRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionRecoverRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionRecoverRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(ExecutionRecoverRequest* other); - friend void swap(ExecutionRecoverRequest& a, ExecutionRecoverRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionRecoverRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionRecoverRequest* 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 ExecutionRecoverRequest& from); - void MergeFrom(const ExecutionRecoverRequest& 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(ExecutionRecoverRequest* 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 ------------------------------------------------------- - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::flyteidl::admin::ExecutionMetadata& metadata() const; - ::flyteidl::admin::ExecutionMetadata* release_metadata(); - ::flyteidl::admin::ExecutionMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRecoverRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - ::flyteidl::admin::ExecutionMetadata* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionCreateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionCreateResponse) */ { - public: - ExecutionCreateResponse(); - virtual ~ExecutionCreateResponse(); - - ExecutionCreateResponse(const ExecutionCreateResponse& from); - - inline ExecutionCreateResponse& operator=(const ExecutionCreateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionCreateResponse(ExecutionCreateResponse&& from) noexcept - : ExecutionCreateResponse() { - *this = ::std::move(from); - } - - inline ExecutionCreateResponse& operator=(ExecutionCreateResponse&& 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 ExecutionCreateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionCreateResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecutionCreateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ExecutionCreateResponse* other); - friend void swap(ExecutionCreateResponse& a, ExecutionCreateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionCreateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionCreateResponse* 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 ExecutionCreateResponse& from); - void MergeFrom(const ExecutionCreateResponse& 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(ExecutionCreateResponse* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetRequest) */ { - public: - WorkflowExecutionGetRequest(); - virtual ~WorkflowExecutionGetRequest(); - - WorkflowExecutionGetRequest(const WorkflowExecutionGetRequest& from); - - inline WorkflowExecutionGetRequest& operator=(const WorkflowExecutionGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionGetRequest(WorkflowExecutionGetRequest&& from) noexcept - : WorkflowExecutionGetRequest() { - *this = ::std::move(from); - } - - inline WorkflowExecutionGetRequest& operator=(WorkflowExecutionGetRequest&& 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 WorkflowExecutionGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionGetRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(WorkflowExecutionGetRequest* other); - friend void swap(WorkflowExecutionGetRequest& a, WorkflowExecutionGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionGetRequest* 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 WorkflowExecutionGetRequest& from); - void MergeFrom(const WorkflowExecutionGetRequest& 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(WorkflowExecutionGetRequest* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class Execution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Execution) */ { - public: - Execution(); - virtual ~Execution(); - - Execution(const Execution& from); - - inline Execution& operator=(const Execution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Execution(Execution&& from) noexcept - : Execution() { - *this = ::std::move(from); - } - - inline Execution& operator=(Execution&& 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 Execution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Execution* internal_default_instance() { - return reinterpret_cast( - &_Execution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(Execution* other); - friend void swap(Execution& a, Execution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Execution* New() const final { - return CreateMaybeMessage(nullptr); - } - - Execution* 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 Execution& from); - void MergeFrom(const Execution& 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(Execution* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // .flyteidl.admin.ExecutionSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::admin::ExecutionSpec& spec() const; - ::flyteidl::admin::ExecutionSpec* release_spec(); - ::flyteidl::admin::ExecutionSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec); - - // .flyteidl.admin.ExecutionClosure closure = 3; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 3; - const ::flyteidl::admin::ExecutionClosure& closure() const; - ::flyteidl::admin::ExecutionClosure* release_closure(); - ::flyteidl::admin::ExecutionClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - ::flyteidl::admin::ExecutionSpec* spec_; - ::flyteidl::admin::ExecutionClosure* closure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionList) */ { - public: - ExecutionList(); - virtual ~ExecutionList(); - - ExecutionList(const ExecutionList& from); - - inline ExecutionList& operator=(const ExecutionList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionList(ExecutionList&& from) noexcept - : ExecutionList() { - *this = ::std::move(from); - } - - inline ExecutionList& operator=(ExecutionList&& 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 ExecutionList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionList* internal_default_instance() { - return reinterpret_cast( - &_ExecutionList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ExecutionList* other); - friend void swap(ExecutionList& a, ExecutionList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionList* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionList* 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 ExecutionList& from); - void MergeFrom(const ExecutionList& 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(ExecutionList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Execution executions = 1; - int executions_size() const; - void clear_executions(); - static const int kExecutionsFieldNumber = 1; - ::flyteidl::admin::Execution* mutable_executions(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* - mutable_executions(); - const ::flyteidl::admin::Execution& executions(int index) const; - ::flyteidl::admin::Execution* add_executions(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& - executions() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution > executions_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class LiteralMapBlob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LiteralMapBlob) */ { - public: - LiteralMapBlob(); - virtual ~LiteralMapBlob(); - - LiteralMapBlob(const LiteralMapBlob& from); - - inline LiteralMapBlob& operator=(const LiteralMapBlob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LiteralMapBlob(LiteralMapBlob&& from) noexcept - : LiteralMapBlob() { - *this = ::std::move(from); - } - - inline LiteralMapBlob& operator=(LiteralMapBlob&& 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 LiteralMapBlob& default_instance(); - - enum DataCase { - kValues = 1, - kUri = 2, - DATA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LiteralMapBlob* internal_default_instance() { - return reinterpret_cast( - &_LiteralMapBlob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(LiteralMapBlob* other); - friend void swap(LiteralMapBlob& a, LiteralMapBlob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LiteralMapBlob* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiteralMapBlob* 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 LiteralMapBlob& from); - void MergeFrom(const LiteralMapBlob& 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(LiteralMapBlob* 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.LiteralMap values = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_values() const; - PROTOBUF_DEPRECATED void clear_values(); - PROTOBUF_DEPRECATED static const int kValuesFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& values() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_values(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_values(); - PROTOBUF_DEPRECATED void set_allocated_values(::flyteidl::core::LiteralMap* values); - - // string uri = 2; - private: - bool has_uri() const; - public: - void clear_uri(); - static const int kUriFieldNumber = 2; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) - private: - class HasBitSetters; - void set_has_values(); - void set_has_uri(); - - inline bool has_data() const; - inline void clear_has_data(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union DataUnion { - DataUnion() {} - ::flyteidl::core::LiteralMap* values_; - ::google::protobuf::internal::ArenaStringPtr uri_; - } data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class AbortMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.AbortMetadata) */ { - public: - AbortMetadata(); - virtual ~AbortMetadata(); - - AbortMetadata(const AbortMetadata& from); - - inline AbortMetadata& operator=(const AbortMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AbortMetadata(AbortMetadata&& from) noexcept - : AbortMetadata() { - *this = ::std::move(from); - } - - inline AbortMetadata& operator=(AbortMetadata&& 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 AbortMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AbortMetadata* internal_default_instance() { - return reinterpret_cast( - &_AbortMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(AbortMetadata* other); - friend void swap(AbortMetadata& a, AbortMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AbortMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - AbortMetadata* 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 AbortMetadata& from); - void MergeFrom(const AbortMetadata& 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(AbortMetadata* 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 ------------------------------------------------------- - - // string cause = 1; - void clear_cause(); - static const int kCauseFieldNumber = 1; - const ::std::string& cause() const; - void set_cause(const ::std::string& value); - #if LANG_CXX11 - void set_cause(::std::string&& value); - #endif - void set_cause(const char* value); - void set_cause(const char* value, size_t size); - ::std::string* mutable_cause(); - ::std::string* release_cause(); - void set_allocated_cause(::std::string* cause); - - // string principal = 2; - void clear_principal(); - static const int kPrincipalFieldNumber = 2; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cause_; - ::google::protobuf::internal::ArenaStringPtr principal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionClosure) */ { - public: - ExecutionClosure(); - virtual ~ExecutionClosure(); - - ExecutionClosure(const ExecutionClosure& from); - - inline ExecutionClosure& operator=(const ExecutionClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionClosure(ExecutionClosure&& from) noexcept - : ExecutionClosure() { - *this = ::std::move(from); - } - - inline ExecutionClosure& operator=(ExecutionClosure&& 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 ExecutionClosure& default_instance(); - - enum OutputResultCase { - kOutputs = 1, - kError = 2, - kAbortCause = 10, - kAbortMetadata = 12, - kOutputData = 13, - OUTPUT_RESULT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionClosure* internal_default_instance() { - return reinterpret_cast( - &_ExecutionClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(ExecutionClosure* other); - friend void swap(ExecutionClosure& a, ExecutionClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionClosure* 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 ExecutionClosure& from); - void MergeFrom(const ExecutionClosure& 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(ExecutionClosure* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Notification notifications = 9; - int notifications_size() const; - void clear_notifications(); - static const int kNotificationsFieldNumber = 9; - ::flyteidl::admin::Notification* mutable_notifications(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* - mutable_notifications(); - const ::flyteidl::admin::Notification& notifications(int index) const; - ::flyteidl::admin::Notification* add_notifications(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& - notifications() const; - - // .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_computed_inputs() const; - PROTOBUF_DEPRECATED void clear_computed_inputs(); - PROTOBUF_DEPRECATED static const int kComputedInputsFieldNumber = 3; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& computed_inputs() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_computed_inputs(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_computed_inputs(); - PROTOBUF_DEPRECATED void set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs); - - // .google.protobuf.Timestamp started_at = 5; - bool has_started_at() const; - void clear_started_at(); - static const int kStartedAtFieldNumber = 5; - const ::google::protobuf::Timestamp& started_at() const; - ::google::protobuf::Timestamp* release_started_at(); - ::google::protobuf::Timestamp* mutable_started_at(); - void set_allocated_started_at(::google::protobuf::Timestamp* started_at); - - // .google.protobuf.Duration duration = 6; - bool has_duration() const; - void clear_duration(); - static const int kDurationFieldNumber = 6; - const ::google::protobuf::Duration& duration() const; - ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* duration); - - // .google.protobuf.Timestamp created_at = 7; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 7; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // .google.protobuf.Timestamp updated_at = 8; - bool has_updated_at() const; - void clear_updated_at(); - static const int kUpdatedAtFieldNumber = 8; - const ::google::protobuf::Timestamp& updated_at() const; - ::google::protobuf::Timestamp* release_updated_at(); - ::google::protobuf::Timestamp* mutable_updated_at(); - void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); - - // .flyteidl.core.Identifier workflow_id = 11; - bool has_workflow_id() const; - void clear_workflow_id(); - static const int kWorkflowIdFieldNumber = 11; - const ::flyteidl::core::Identifier& workflow_id() const; - ::flyteidl::core::Identifier* release_workflow_id(); - ::flyteidl::core::Identifier* mutable_workflow_id(); - void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); - - // .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - bool has_state_change_details() const; - void clear_state_change_details(); - static const int kStateChangeDetailsFieldNumber = 14; - const ::flyteidl::admin::ExecutionStateChangeDetails& state_change_details() const; - ::flyteidl::admin::ExecutionStateChangeDetails* release_state_change_details(); - ::flyteidl::admin::ExecutionStateChangeDetails* mutable_state_change_details(); - void set_allocated_state_change_details(::flyteidl::admin::ExecutionStateChangeDetails* state_change_details); - - // .flyteidl.core.WorkflowExecution.Phase phase = 4; - void clear_phase(); - static const int kPhaseFieldNumber = 4; - ::flyteidl::core::WorkflowExecution_Phase phase() const; - void set_phase(::flyteidl::core::WorkflowExecution_Phase value); - - // .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_outputs() const; - PROTOBUF_DEPRECATED void clear_outputs(); - PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::admin::LiteralMapBlob& outputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::LiteralMapBlob* release_outputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::LiteralMapBlob* mutable_outputs(); - PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::LiteralMapBlob* outputs); - - // .flyteidl.core.ExecutionError error = 2; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 2; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // string abort_cause = 10 [deprecated = true]; - private: - bool has_abort_cause() const; - public: - PROTOBUF_DEPRECATED void clear_abort_cause(); - PROTOBUF_DEPRECATED static const int kAbortCauseFieldNumber = 10; - PROTOBUF_DEPRECATED const ::std::string& abort_cause() const; - PROTOBUF_DEPRECATED void set_abort_cause(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_abort_cause(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_abort_cause(const char* value); - PROTOBUF_DEPRECATED void set_abort_cause(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_abort_cause(); - PROTOBUF_DEPRECATED ::std::string* release_abort_cause(); - PROTOBUF_DEPRECATED void set_allocated_abort_cause(::std::string* abort_cause); - - // .flyteidl.admin.AbortMetadata abort_metadata = 12; - bool has_abort_metadata() const; - void clear_abort_metadata(); - static const int kAbortMetadataFieldNumber = 12; - const ::flyteidl::admin::AbortMetadata& abort_metadata() const; - ::flyteidl::admin::AbortMetadata* release_abort_metadata(); - ::flyteidl::admin::AbortMetadata* mutable_abort_metadata(); - void set_allocated_abort_metadata(::flyteidl::admin::AbortMetadata* abort_metadata); - - // .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_output_data() const; - PROTOBUF_DEPRECATED void clear_output_data(); - PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 13; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); - PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - void clear_output_result(); - OutputResultCase output_result_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) - private: - class HasBitSetters; - void set_has_outputs(); - void set_has_error(); - void set_has_abort_cause(); - void set_has_abort_metadata(); - void set_has_output_data(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; - ::flyteidl::core::LiteralMap* computed_inputs_; - ::google::protobuf::Timestamp* started_at_; - ::google::protobuf::Duration* duration_; - ::google::protobuf::Timestamp* created_at_; - ::google::protobuf::Timestamp* updated_at_; - ::flyteidl::core::Identifier* workflow_id_; - ::flyteidl::admin::ExecutionStateChangeDetails* state_change_details_; - int phase_; - union OutputResultUnion { - OutputResultUnion() {} - ::flyteidl::admin::LiteralMapBlob* outputs_; - ::flyteidl::core::ExecutionError* error_; - ::google::protobuf::internal::ArenaStringPtr abort_cause_; - ::flyteidl::admin::AbortMetadata* abort_metadata_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class SystemMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SystemMetadata) */ { - public: - SystemMetadata(); - virtual ~SystemMetadata(); - - SystemMetadata(const SystemMetadata& from); - - inline SystemMetadata& operator=(const SystemMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SystemMetadata(SystemMetadata&& from) noexcept - : SystemMetadata() { - *this = ::std::move(from); - } - - inline SystemMetadata& operator=(SystemMetadata&& 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 SystemMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SystemMetadata* internal_default_instance() { - return reinterpret_cast( - &_SystemMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(SystemMetadata* other); - friend void swap(SystemMetadata& a, SystemMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SystemMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - SystemMetadata* 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 SystemMetadata& from); - void MergeFrom(const SystemMetadata& 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(SystemMetadata* 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 ------------------------------------------------------- - - // string execution_cluster = 1; - void clear_execution_cluster(); - static const int kExecutionClusterFieldNumber = 1; - const ::std::string& execution_cluster() const; - void set_execution_cluster(const ::std::string& value); - #if LANG_CXX11 - void set_execution_cluster(::std::string&& value); - #endif - void set_execution_cluster(const char* value); - void set_execution_cluster(const char* value, size_t size); - ::std::string* mutable_execution_cluster(); - ::std::string* release_execution_cluster(); - void set_allocated_execution_cluster(::std::string* execution_cluster); - - // string namespace = 2; - void clear_namespace_(); - static const int kNamespaceFieldNumber = 2; - const ::std::string& namespace_() const; - void set_namespace_(const ::std::string& value); - #if LANG_CXX11 - void set_namespace_(::std::string&& value); - #endif - void set_namespace_(const char* value); - void set_namespace_(const char* value, size_t size); - ::std::string* mutable_namespace_(); - ::std::string* release_namespace_(); - void set_allocated_namespace_(::std::string* namespace_); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr execution_cluster_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionMetadata) */ { - public: - ExecutionMetadata(); - virtual ~ExecutionMetadata(); - - ExecutionMetadata(const ExecutionMetadata& from); - - inline ExecutionMetadata& operator=(const ExecutionMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionMetadata(ExecutionMetadata&& from) noexcept - : ExecutionMetadata() { - *this = ::std::move(from); - } - - inline ExecutionMetadata& operator=(ExecutionMetadata&& 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 ExecutionMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionMetadata* internal_default_instance() { - return reinterpret_cast( - &_ExecutionMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(ExecutionMetadata* other); - friend void swap(ExecutionMetadata& a, ExecutionMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionMetadata* 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 ExecutionMetadata& from); - void MergeFrom(const ExecutionMetadata& 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(ExecutionMetadata* 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 ---------------------------------------------------- - - typedef ExecutionMetadata_ExecutionMode ExecutionMode; - static const ExecutionMode MANUAL = - ExecutionMetadata_ExecutionMode_MANUAL; - static const ExecutionMode SCHEDULED = - ExecutionMetadata_ExecutionMode_SCHEDULED; - static const ExecutionMode SYSTEM = - ExecutionMetadata_ExecutionMode_SYSTEM; - static const ExecutionMode RELAUNCH = - ExecutionMetadata_ExecutionMode_RELAUNCH; - static const ExecutionMode CHILD_WORKFLOW = - ExecutionMetadata_ExecutionMode_CHILD_WORKFLOW; - static const ExecutionMode RECOVERED = - ExecutionMetadata_ExecutionMode_RECOVERED; - static inline bool ExecutionMode_IsValid(int value) { - return ExecutionMetadata_ExecutionMode_IsValid(value); - } - static const ExecutionMode ExecutionMode_MIN = - ExecutionMetadata_ExecutionMode_ExecutionMode_MIN; - static const ExecutionMode ExecutionMode_MAX = - ExecutionMetadata_ExecutionMode_ExecutionMode_MAX; - static const int ExecutionMode_ARRAYSIZE = - ExecutionMetadata_ExecutionMode_ExecutionMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ExecutionMode_descriptor() { - return ExecutionMetadata_ExecutionMode_descriptor(); - } - static inline const ::std::string& ExecutionMode_Name(ExecutionMode value) { - return ExecutionMetadata_ExecutionMode_Name(value); - } - static inline bool ExecutionMode_Parse(const ::std::string& name, - ExecutionMode* value) { - return ExecutionMetadata_ExecutionMode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID artifact_ids = 18; - int artifact_ids_size() const; - void clear_artifact_ids(); - static const int kArtifactIdsFieldNumber = 18; - ::flyteidl::core::ArtifactID* mutable_artifact_ids(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_artifact_ids(); - const ::flyteidl::core::ArtifactID& artifact_ids(int index) const; - ::flyteidl::core::ArtifactID* add_artifact_ids(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - artifact_ids() const; - - // string principal = 2; - void clear_principal(); - static const int kPrincipalFieldNumber = 2; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .google.protobuf.Timestamp scheduled_at = 4; - bool has_scheduled_at() const; - void clear_scheduled_at(); - static const int kScheduledAtFieldNumber = 4; - const ::google::protobuf::Timestamp& scheduled_at() const; - ::google::protobuf::Timestamp* release_scheduled_at(); - ::google::protobuf::Timestamp* mutable_scheduled_at(); - void set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at); - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - bool has_parent_node_execution() const; - void clear_parent_node_execution(); - static const int kParentNodeExecutionFieldNumber = 5; - const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution() const; - ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution(); - void set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution); - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - bool has_reference_execution() const; - void clear_reference_execution(); - static const int kReferenceExecutionFieldNumber = 16; - const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_reference_execution(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_reference_execution(); - void set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution); - - // .flyteidl.admin.SystemMetadata system_metadata = 17; - bool has_system_metadata() const; - void clear_system_metadata(); - static const int kSystemMetadataFieldNumber = 17; - const ::flyteidl::admin::SystemMetadata& system_metadata() const; - ::flyteidl::admin::SystemMetadata* release_system_metadata(); - ::flyteidl::admin::SystemMetadata* mutable_system_metadata(); - void set_allocated_system_metadata(::flyteidl::admin::SystemMetadata* system_metadata); - - // .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - void clear_mode(); - static const int kModeFieldNumber = 1; - ::flyteidl::admin::ExecutionMetadata_ExecutionMode mode() const; - void set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value); - - // uint32 nesting = 3; - void clear_nesting(); - static const int kNestingFieldNumber = 3; - ::google::protobuf::uint32 nesting() const; - void set_nesting(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::google::protobuf::Timestamp* scheduled_at_; - ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_; - ::flyteidl::core::WorkflowExecutionIdentifier* reference_execution_; - ::flyteidl::admin::SystemMetadata* system_metadata_; - int mode_; - ::google::protobuf::uint32 nesting_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NotificationList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NotificationList) */ { - public: - NotificationList(); - virtual ~NotificationList(); - - NotificationList(const NotificationList& from); - - inline NotificationList& operator=(const NotificationList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NotificationList(NotificationList&& from) noexcept - : NotificationList() { - *this = ::std::move(from); - } - - inline NotificationList& operator=(NotificationList&& 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 NotificationList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NotificationList* internal_default_instance() { - return reinterpret_cast( - &_NotificationList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(NotificationList* other); - friend void swap(NotificationList& a, NotificationList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NotificationList* New() const final { - return CreateMaybeMessage(nullptr); - } - - NotificationList* 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 NotificationList& from); - void MergeFrom(const NotificationList& 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(NotificationList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Notification notifications = 1; - int notifications_size() const; - void clear_notifications(); - static const int kNotificationsFieldNumber = 1; - ::flyteidl::admin::Notification* mutable_notifications(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* - mutable_notifications(); - const ::flyteidl::admin::Notification& notifications(int index) const; - ::flyteidl::admin::Notification* add_notifications(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& - notifications() const; - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionSpec) */ { - public: - ExecutionSpec(); - virtual ~ExecutionSpec(); - - ExecutionSpec(const ExecutionSpec& from); - - inline ExecutionSpec& operator=(const ExecutionSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionSpec(ExecutionSpec&& from) noexcept - : ExecutionSpec() { - *this = ::std::move(from); - } - - inline ExecutionSpec& operator=(ExecutionSpec&& 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 ExecutionSpec& default_instance(); - - enum NotificationOverridesCase { - kNotifications = 5, - kDisableAll = 6, - NOTIFICATION_OVERRIDES_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionSpec* internal_default_instance() { - return reinterpret_cast( - &_ExecutionSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(ExecutionSpec* other); - friend void swap(ExecutionSpec& a, ExecutionSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionSpec* 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 ExecutionSpec& from); - void MergeFrom(const ExecutionSpec& 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(ExecutionSpec* 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 ------------------------------------------------------- - - // repeated string tags = 24; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 24; - const ::std::string& tags(int index) const; - ::std::string* mutable_tags(int index); - void set_tags(int index, const ::std::string& value); - #if LANG_CXX11 - void set_tags(int index, ::std::string&& value); - #endif - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, size_t size); - ::std::string* add_tags(); - void add_tags(const ::std::string& value); - #if LANG_CXX11 - void add_tags(::std::string&& value); - #endif - void add_tags(const char* value); - void add_tags(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); - - // .flyteidl.core.Identifier launch_plan = 1; - bool has_launch_plan() const; - void clear_launch_plan(); - static const int kLaunchPlanFieldNumber = 1; - const ::flyteidl::core::Identifier& launch_plan() const; - ::flyteidl::core::Identifier* release_launch_plan(); - ::flyteidl::core::Identifier* mutable_launch_plan(); - void set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan); - - // .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_inputs() const; - PROTOBUF_DEPRECATED void clear_inputs(); - PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 2; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& inputs() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_inputs(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_inputs(); - PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); - - // .flyteidl.admin.ExecutionMetadata metadata = 3; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::flyteidl::admin::ExecutionMetadata& metadata() const; - ::flyteidl::admin::ExecutionMetadata* release_metadata(); - ::flyteidl::admin::ExecutionMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata); - - // .flyteidl.admin.Labels labels = 7; - bool has_labels() const; - void clear_labels(); - static const int kLabelsFieldNumber = 7; - const ::flyteidl::admin::Labels& labels() const; - ::flyteidl::admin::Labels* release_labels(); - ::flyteidl::admin::Labels* mutable_labels(); - void set_allocated_labels(::flyteidl::admin::Labels* labels); - - // .flyteidl.admin.Annotations annotations = 8; - bool has_annotations() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 8; - const ::flyteidl::admin::Annotations& annotations() const; - ::flyteidl::admin::Annotations* release_annotations(); - ::flyteidl::admin::Annotations* mutable_annotations(); - void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); - - // .flyteidl.core.SecurityContext security_context = 10; - bool has_security_context() const; - void clear_security_context(); - static const int kSecurityContextFieldNumber = 10; - const ::flyteidl::core::SecurityContext& security_context() const; - ::flyteidl::core::SecurityContext* release_security_context(); - ::flyteidl::core::SecurityContext* mutable_security_context(); - void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); - - // .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_auth_role() const; - PROTOBUF_DEPRECATED void clear_auth_role(); - PROTOBUF_DEPRECATED static const int kAuthRoleFieldNumber = 16; - PROTOBUF_DEPRECATED const ::flyteidl::admin::AuthRole& auth_role() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* release_auth_role(); - PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* mutable_auth_role(); - PROTOBUF_DEPRECATED void set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role); - - // .flyteidl.core.QualityOfService quality_of_service = 17; - bool has_quality_of_service() const; - void clear_quality_of_service(); - static const int kQualityOfServiceFieldNumber = 17; - const ::flyteidl::core::QualityOfService& quality_of_service() const; - ::flyteidl::core::QualityOfService* release_quality_of_service(); - ::flyteidl::core::QualityOfService* mutable_quality_of_service(); - void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - bool has_raw_output_data_config() const; - void clear_raw_output_data_config(); - static const int kRawOutputDataConfigFieldNumber = 19; - const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; - ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); - ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); - void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - bool has_cluster_assignment() const; - void clear_cluster_assignment(); - static const int kClusterAssignmentFieldNumber = 20; - const ::flyteidl::admin::ClusterAssignment& cluster_assignment() const; - ::flyteidl::admin::ClusterAssignment* release_cluster_assignment(); - ::flyteidl::admin::ClusterAssignment* mutable_cluster_assignment(); - void set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment); - - // .google.protobuf.BoolValue interruptible = 21; - bool has_interruptible() const; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 21; - const ::google::protobuf::BoolValue& interruptible() const; - ::google::protobuf::BoolValue* release_interruptible(); - ::google::protobuf::BoolValue* mutable_interruptible(); - void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); - - // .flyteidl.admin.Envs envs = 23; - bool has_envs() const; - void clear_envs(); - static const int kEnvsFieldNumber = 23; - const ::flyteidl::admin::Envs& envs() const; - ::flyteidl::admin::Envs* release_envs(); - ::flyteidl::admin::Envs* mutable_envs(); - void set_allocated_envs(::flyteidl::admin::Envs* envs); - - // int32 max_parallelism = 18; - void clear_max_parallelism(); - static const int kMaxParallelismFieldNumber = 18; - ::google::protobuf::int32 max_parallelism() const; - void set_max_parallelism(::google::protobuf::int32 value); - - // bool overwrite_cache = 22; - void clear_overwrite_cache(); - static const int kOverwriteCacheFieldNumber = 22; - bool overwrite_cache() const; - void set_overwrite_cache(bool value); - - // .flyteidl.admin.NotificationList notifications = 5; - bool has_notifications() const; - void clear_notifications(); - static const int kNotificationsFieldNumber = 5; - const ::flyteidl::admin::NotificationList& notifications() const; - ::flyteidl::admin::NotificationList* release_notifications(); - ::flyteidl::admin::NotificationList* mutable_notifications(); - void set_allocated_notifications(::flyteidl::admin::NotificationList* notifications); - - // bool disable_all = 6; - private: - bool has_disable_all() const; - public: - void clear_disable_all(); - static const int kDisableAllFieldNumber = 6; - bool disable_all() const; - void set_disable_all(bool value); - - void clear_notification_overrides(); - NotificationOverridesCase notification_overrides_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) - private: - class HasBitSetters; - void set_has_notifications(); - void set_has_disable_all(); - - inline bool has_notification_overrides() const; - inline void clear_has_notification_overrides(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> tags_; - ::flyteidl::core::Identifier* launch_plan_; - ::flyteidl::core::LiteralMap* inputs_; - ::flyteidl::admin::ExecutionMetadata* metadata_; - ::flyteidl::admin::Labels* labels_; - ::flyteidl::admin::Annotations* annotations_; - ::flyteidl::core::SecurityContext* security_context_; - ::flyteidl::admin::AuthRole* auth_role_; - ::flyteidl::core::QualityOfService* quality_of_service_; - ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; - ::flyteidl::admin::ClusterAssignment* cluster_assignment_; - ::google::protobuf::BoolValue* interruptible_; - ::flyteidl::admin::Envs* envs_; - ::google::protobuf::int32 max_parallelism_; - bool overwrite_cache_; - union NotificationOverridesUnion { - NotificationOverridesUnion() {} - ::flyteidl::admin::NotificationList* notifications_; - bool disable_all_; - } notification_overrides_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionTerminateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateRequest) */ { - public: - ExecutionTerminateRequest(); - virtual ~ExecutionTerminateRequest(); - - ExecutionTerminateRequest(const ExecutionTerminateRequest& from); - - inline ExecutionTerminateRequest& operator=(const ExecutionTerminateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionTerminateRequest(ExecutionTerminateRequest&& from) noexcept - : ExecutionTerminateRequest() { - *this = ::std::move(from); - } - - inline ExecutionTerminateRequest& operator=(ExecutionTerminateRequest&& 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 ExecutionTerminateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionTerminateRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionTerminateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(ExecutionTerminateRequest* other); - friend void swap(ExecutionTerminateRequest& a, ExecutionTerminateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionTerminateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionTerminateRequest* 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 ExecutionTerminateRequest& from); - void MergeFrom(const ExecutionTerminateRequest& 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(ExecutionTerminateRequest* 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 ------------------------------------------------------- - - // string cause = 2; - void clear_cause(); - static const int kCauseFieldNumber = 2; - const ::std::string& cause() const; - void set_cause(const ::std::string& value); - #if LANG_CXX11 - void set_cause(::std::string&& value); - #endif - void set_cause(const char* value); - void set_cause(const char* value, size_t size); - ::std::string* mutable_cause(); - ::std::string* release_cause(); - void set_allocated_cause(::std::string* cause); - - // .flyteidl.core.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cause_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionTerminateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionTerminateResponse) */ { - public: - ExecutionTerminateResponse(); - virtual ~ExecutionTerminateResponse(); - - ExecutionTerminateResponse(const ExecutionTerminateResponse& from); - - inline ExecutionTerminateResponse& operator=(const ExecutionTerminateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionTerminateResponse(ExecutionTerminateResponse&& from) noexcept - : ExecutionTerminateResponse() { - *this = ::std::move(from); - } - - inline ExecutionTerminateResponse& operator=(ExecutionTerminateResponse&& 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 ExecutionTerminateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionTerminateResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecutionTerminateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(ExecutionTerminateResponse* other); - friend void swap(ExecutionTerminateResponse& a, ExecutionTerminateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionTerminateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionTerminateResponse* 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 ExecutionTerminateResponse& from); - void MergeFrom(const ExecutionTerminateResponse& 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(ExecutionTerminateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionGetDataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataRequest) */ { - public: - WorkflowExecutionGetDataRequest(); - virtual ~WorkflowExecutionGetDataRequest(); - - WorkflowExecutionGetDataRequest(const WorkflowExecutionGetDataRequest& from); - - inline WorkflowExecutionGetDataRequest& operator=(const WorkflowExecutionGetDataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionGetDataRequest(WorkflowExecutionGetDataRequest&& from) noexcept - : WorkflowExecutionGetDataRequest() { - *this = ::std::move(from); - } - - inline WorkflowExecutionGetDataRequest& operator=(WorkflowExecutionGetDataRequest&& 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 WorkflowExecutionGetDataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionGetDataRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionGetDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(WorkflowExecutionGetDataRequest* other); - friend void swap(WorkflowExecutionGetDataRequest& a, WorkflowExecutionGetDataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionGetDataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionGetDataRequest* 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 WorkflowExecutionGetDataRequest& from); - void MergeFrom(const WorkflowExecutionGetDataRequest& 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(WorkflowExecutionGetDataRequest* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionGetDataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetDataResponse) */ { - public: - WorkflowExecutionGetDataResponse(); - virtual ~WorkflowExecutionGetDataResponse(); - - WorkflowExecutionGetDataResponse(const WorkflowExecutionGetDataResponse& from); - - inline WorkflowExecutionGetDataResponse& operator=(const WorkflowExecutionGetDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionGetDataResponse(WorkflowExecutionGetDataResponse&& from) noexcept - : WorkflowExecutionGetDataResponse() { - *this = ::std::move(from); - } - - inline WorkflowExecutionGetDataResponse& operator=(WorkflowExecutionGetDataResponse&& 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 WorkflowExecutionGetDataResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionGetDataResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionGetDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(WorkflowExecutionGetDataResponse* other); - friend void swap(WorkflowExecutionGetDataResponse& a, WorkflowExecutionGetDataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionGetDataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionGetDataResponse* 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 WorkflowExecutionGetDataResponse& from); - void MergeFrom(const WorkflowExecutionGetDataResponse& 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(WorkflowExecutionGetDataResponse* 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.UrlBlob outputs = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_outputs() const; - PROTOBUF_DEPRECATED void clear_outputs(); - PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); - PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); - - // .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_inputs() const; - PROTOBUF_DEPRECATED void clear_inputs(); - PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 2; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); - PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); - - // .flyteidl.core.LiteralMap full_inputs = 3; - bool has_full_inputs() const; - void clear_full_inputs(); - static const int kFullInputsFieldNumber = 3; - const ::flyteidl::core::LiteralMap& full_inputs() const; - ::flyteidl::core::LiteralMap* release_full_inputs(); - ::flyteidl::core::LiteralMap* mutable_full_inputs(); - void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); - - // .flyteidl.core.LiteralMap full_outputs = 4; - bool has_full_outputs() const; - void clear_full_outputs(); - static const int kFullOutputsFieldNumber = 4; - const ::flyteidl::core::LiteralMap& full_outputs() const; - ::flyteidl::core::LiteralMap* release_full_outputs(); - ::flyteidl::core::LiteralMap* mutable_full_outputs(); - void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::UrlBlob* outputs_; - ::flyteidl::admin::UrlBlob* inputs_; - ::flyteidl::core::LiteralMap* full_inputs_; - ::flyteidl::core::LiteralMap* full_outputs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionUpdateRequest) */ { - public: - ExecutionUpdateRequest(); - virtual ~ExecutionUpdateRequest(); - - ExecutionUpdateRequest(const ExecutionUpdateRequest& from); - - inline ExecutionUpdateRequest& operator=(const ExecutionUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionUpdateRequest(ExecutionUpdateRequest&& from) noexcept - : ExecutionUpdateRequest() { - *this = ::std::move(from); - } - - inline ExecutionUpdateRequest& operator=(ExecutionUpdateRequest&& 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 ExecutionUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void Swap(ExecutionUpdateRequest* other); - friend void swap(ExecutionUpdateRequest& a, ExecutionUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionUpdateRequest* 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 ExecutionUpdateRequest& from); - void MergeFrom(const ExecutionUpdateRequest& 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(ExecutionUpdateRequest* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // .flyteidl.admin.ExecutionState state = 2; - void clear_state(); - static const int kStateFieldNumber = 2; - ::flyteidl::admin::ExecutionState state() const; - void set_state(::flyteidl::admin::ExecutionState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionStateChangeDetails final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionStateChangeDetails) */ { - public: - ExecutionStateChangeDetails(); - virtual ~ExecutionStateChangeDetails(); - - ExecutionStateChangeDetails(const ExecutionStateChangeDetails& from); - - inline ExecutionStateChangeDetails& operator=(const ExecutionStateChangeDetails& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionStateChangeDetails(ExecutionStateChangeDetails&& from) noexcept - : ExecutionStateChangeDetails() { - *this = ::std::move(from); - } - - inline ExecutionStateChangeDetails& operator=(ExecutionStateChangeDetails&& 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 ExecutionStateChangeDetails& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionStateChangeDetails* internal_default_instance() { - return reinterpret_cast( - &_ExecutionStateChangeDetails_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(ExecutionStateChangeDetails* other); - friend void swap(ExecutionStateChangeDetails& a, ExecutionStateChangeDetails& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionStateChangeDetails* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionStateChangeDetails* 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 ExecutionStateChangeDetails& from); - void MergeFrom(const ExecutionStateChangeDetails& 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(ExecutionStateChangeDetails* 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 ------------------------------------------------------- - - // string principal = 3; - void clear_principal(); - static const int kPrincipalFieldNumber = 3; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .google.protobuf.Timestamp occurred_at = 2; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 2; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // .flyteidl.admin.ExecutionState state = 1; - void clear_state(); - static const int kStateFieldNumber = 1; - ::flyteidl::admin::ExecutionState state() const; - void set_state(::flyteidl::admin::ExecutionState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionStateChangeDetails) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::google::protobuf::Timestamp* occurred_at_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionUpdateResponse) */ { - public: - ExecutionUpdateResponse(); - virtual ~ExecutionUpdateResponse(); - - ExecutionUpdateResponse(const ExecutionUpdateResponse& from); - - inline ExecutionUpdateResponse& operator=(const ExecutionUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionUpdateResponse(ExecutionUpdateResponse&& from) noexcept - : ExecutionUpdateResponse() { - *this = ::std::move(from); - } - - inline ExecutionUpdateResponse& operator=(ExecutionUpdateResponse&& 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 ExecutionUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecutionUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void Swap(ExecutionUpdateResponse* other); - friend void swap(ExecutionUpdateResponse& a, ExecutionUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionUpdateResponse* 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 ExecutionUpdateResponse& from); - void MergeFrom(const ExecutionUpdateResponse& 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(ExecutionUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionGetMetricsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetMetricsRequest) */ { - public: - WorkflowExecutionGetMetricsRequest(); - virtual ~WorkflowExecutionGetMetricsRequest(); - - WorkflowExecutionGetMetricsRequest(const WorkflowExecutionGetMetricsRequest& from); - - inline WorkflowExecutionGetMetricsRequest& operator=(const WorkflowExecutionGetMetricsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionGetMetricsRequest(WorkflowExecutionGetMetricsRequest&& from) noexcept - : WorkflowExecutionGetMetricsRequest() { - *this = ::std::move(from); - } - - inline WorkflowExecutionGetMetricsRequest& operator=(WorkflowExecutionGetMetricsRequest&& 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 WorkflowExecutionGetMetricsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionGetMetricsRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionGetMetricsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(WorkflowExecutionGetMetricsRequest* other); - friend void swap(WorkflowExecutionGetMetricsRequest& a, WorkflowExecutionGetMetricsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionGetMetricsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionGetMetricsRequest* 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 WorkflowExecutionGetMetricsRequest& from); - void MergeFrom(const WorkflowExecutionGetMetricsRequest& 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(WorkflowExecutionGetMetricsRequest* 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.WorkflowExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* id); - - // int32 depth = 2; - void clear_depth(); - static const int kDepthFieldNumber = 2; - ::google::protobuf::int32 depth() const; - void set_depth(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* id_; - ::google::protobuf::int32 depth_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionGetMetricsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionGetMetricsResponse) */ { - public: - WorkflowExecutionGetMetricsResponse(); - virtual ~WorkflowExecutionGetMetricsResponse(); - - WorkflowExecutionGetMetricsResponse(const WorkflowExecutionGetMetricsResponse& from); - - inline WorkflowExecutionGetMetricsResponse& operator=(const WorkflowExecutionGetMetricsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionGetMetricsResponse(WorkflowExecutionGetMetricsResponse&& from) noexcept - : WorkflowExecutionGetMetricsResponse() { - *this = ::std::move(from); - } - - inline WorkflowExecutionGetMetricsResponse& operator=(WorkflowExecutionGetMetricsResponse&& 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 WorkflowExecutionGetMetricsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionGetMetricsResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionGetMetricsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(WorkflowExecutionGetMetricsResponse* other); - friend void swap(WorkflowExecutionGetMetricsResponse& a, WorkflowExecutionGetMetricsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionGetMetricsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionGetMetricsResponse* 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 WorkflowExecutionGetMetricsResponse& from); - void MergeFrom(const WorkflowExecutionGetMetricsResponse& 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(WorkflowExecutionGetMetricsResponse* 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.Span span = 1; - bool has_span() const; - void clear_span(); - static const int kSpanFieldNumber = 1; - const ::flyteidl::core::Span& span() const; - ::flyteidl::core::Span* release_span(); - ::flyteidl::core::Span* mutable_span(); - void set_allocated_span(::flyteidl::core::Span* span); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Span* span_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fexecution_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ExecutionCreateRequest - -// string project = 1; -inline void ExecutionCreateRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionCreateRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.project) - return project_.GetNoArena(); -} -inline void ExecutionCreateRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.project) -} -#if LANG_CXX11 -inline void ExecutionCreateRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.project) -} -#endif -inline void ExecutionCreateRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.project) -} -inline void ExecutionCreateRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.project) -} -inline ::std::string* ExecutionCreateRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionCreateRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionCreateRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.project) -} - -// string domain = 2; -inline void ExecutionCreateRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionCreateRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.domain) - return domain_.GetNoArena(); -} -inline void ExecutionCreateRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.domain) -} -#if LANG_CXX11 -inline void ExecutionCreateRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.domain) -} -#endif -inline void ExecutionCreateRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.domain) -} -inline void ExecutionCreateRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.domain) -} -inline ::std::string* ExecutionCreateRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionCreateRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionCreateRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.domain) -} - -// string name = 3; -inline void ExecutionCreateRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionCreateRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.name) - return name_.GetNoArena(); -} -inline void ExecutionCreateRequest::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionCreateRequest.name) -} -#if LANG_CXX11 -inline void ExecutionCreateRequest::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionCreateRequest.name) -} -#endif -inline void ExecutionCreateRequest::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionCreateRequest.name) -} -inline void ExecutionCreateRequest::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionCreateRequest.name) -} -inline ::std::string* ExecutionCreateRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionCreateRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionCreateRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.name) -} - -// .flyteidl.admin.ExecutionSpec spec = 4; -inline bool ExecutionCreateRequest::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void ExecutionCreateRequest::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionSpec& ExecutionCreateRequest::spec() const { - const ::flyteidl::admin::ExecutionSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionSpec_default_instance_); -} -inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.spec) - - ::flyteidl::admin::ExecutionSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionSpec* ExecutionCreateRequest::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.spec) - return spec_; -} -inline void ExecutionCreateRequest::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.spec) -} - -// .flyteidl.core.LiteralMap inputs = 5; -inline bool ExecutionCreateRequest::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& ExecutionCreateRequest::inputs() const { - const ::flyteidl::core::LiteralMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateRequest.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* ExecutionCreateRequest::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateRequest.inputs) - - ::flyteidl::core::LiteralMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* ExecutionCreateRequest::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateRequest.inputs) - return inputs_; -} -inline void ExecutionCreateRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionCreateRequest.inputs) -} - -// ------------------------------------------------------------------- - -// ExecutionRelaunchRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool ExecutionRelaunchRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRelaunchRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRelaunchRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.id) - return id_; -} -inline void ExecutionRelaunchRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.ExecutionRelaunchRequest.id) -} - -// string name = 3; -inline void ExecutionRelaunchRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionRelaunchRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.name) - return name_.GetNoArena(); -} -inline void ExecutionRelaunchRequest::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRelaunchRequest.name) -} -#if LANG_CXX11 -inline void ExecutionRelaunchRequest::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionRelaunchRequest.name) -} -#endif -inline void ExecutionRelaunchRequest::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionRelaunchRequest.name) -} -inline void ExecutionRelaunchRequest::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionRelaunchRequest.name) -} -inline ::std::string* ExecutionRelaunchRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRelaunchRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionRelaunchRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRelaunchRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionRelaunchRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRelaunchRequest.name) -} - -// bool overwrite_cache = 4; -inline void ExecutionRelaunchRequest::clear_overwrite_cache() { - overwrite_cache_ = false; -} -inline bool ExecutionRelaunchRequest::overwrite_cache() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRelaunchRequest.overwrite_cache) - return overwrite_cache_; -} -inline void ExecutionRelaunchRequest::set_overwrite_cache(bool value) { - - overwrite_cache_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRelaunchRequest.overwrite_cache) -} - -// ------------------------------------------------------------------- - -// ExecutionRecoverRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool ExecutionRecoverRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionRecoverRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRecoverRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionRecoverRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.id) - return id_; -} -inline void ExecutionRecoverRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.ExecutionRecoverRequest.id) -} - -// string name = 2; -inline void ExecutionRecoverRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionRecoverRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.name) - return name_.GetNoArena(); -} -inline void ExecutionRecoverRequest::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionRecoverRequest.name) -} -#if LANG_CXX11 -inline void ExecutionRecoverRequest::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionRecoverRequest.name) -} -#endif -inline void ExecutionRecoverRequest::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionRecoverRequest.name) -} -inline void ExecutionRecoverRequest::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionRecoverRequest.name) -} -inline ::std::string* ExecutionRecoverRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionRecoverRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionRecoverRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRecoverRequest.name) -} - -// .flyteidl.admin.ExecutionMetadata metadata = 3; -inline bool ExecutionRecoverRequest::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void ExecutionRecoverRequest::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionMetadata& ExecutionRecoverRequest::metadata() const { - const ::flyteidl::admin::ExecutionMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionRecoverRequest.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionMetadata_default_instance_); -} -inline ::flyteidl::admin::ExecutionMetadata* ExecutionRecoverRequest::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionRecoverRequest.metadata) - - ::flyteidl::admin::ExecutionMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionMetadata* ExecutionRecoverRequest::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionRecoverRequest.metadata) - return metadata_; -} -inline void ExecutionRecoverRequest::set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionRecoverRequest.metadata) -} - -// ------------------------------------------------------------------- - -// ExecutionCreateResponse - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool ExecutionCreateResponse::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionCreateResponse::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionCreateResponse.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionCreateResponse.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionCreateResponse::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionCreateResponse.id) - return id_; -} -inline void ExecutionCreateResponse::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.ExecutionCreateResponse.id) -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionGetRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool WorkflowExecutionGetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetRequest.id) - return id_; -} -inline void WorkflowExecutionGetRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.WorkflowExecutionGetRequest.id) -} - -// ------------------------------------------------------------------- - -// Execution - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool Execution::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& Execution::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Execution::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.id) - return id_; -} -inline void Execution::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.Execution.id) -} - -// .flyteidl.admin.ExecutionSpec spec = 2; -inline bool Execution::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void Execution::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionSpec& Execution::spec() const { - const ::flyteidl::admin::ExecutionSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionSpec_default_instance_); -} -inline ::flyteidl::admin::ExecutionSpec* Execution::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.spec) - - ::flyteidl::admin::ExecutionSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionSpec* Execution::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.spec) - return spec_; -} -inline void Execution::set_allocated_spec(::flyteidl::admin::ExecutionSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.spec) -} - -// .flyteidl.admin.ExecutionClosure closure = 3; -inline bool Execution::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void Execution::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionClosure& Execution::closure() const { - const ::flyteidl::admin::ExecutionClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Execution.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionClosure_default_instance_); -} -inline ::flyteidl::admin::ExecutionClosure* Execution::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Execution.closure) - - ::flyteidl::admin::ExecutionClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionClosure* Execution::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Execution.closure) - return closure_; -} -inline void Execution::set_allocated_closure(::flyteidl::admin::ExecutionClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Execution.closure) -} - -// ------------------------------------------------------------------- - -// ExecutionList - -// repeated .flyteidl.admin.Execution executions = 1; -inline int ExecutionList::executions_size() const { - return executions_.size(); -} -inline void ExecutionList::clear_executions() { - executions_.Clear(); -} -inline ::flyteidl::admin::Execution* ExecutionList::mutable_executions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.executions) - return executions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >* -ExecutionList::mutable_executions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionList.executions) - return &executions_; -} -inline const ::flyteidl::admin::Execution& ExecutionList::executions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.executions) - return executions_.Get(index); -} -inline ::flyteidl::admin::Execution* ExecutionList::add_executions() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionList.executions) - return executions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Execution >& -ExecutionList::executions() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionList.executions) - return executions_; -} - -// string token = 2; -inline void ExecutionList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionList.token) - return token_.GetNoArena(); -} -inline void ExecutionList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionList.token) -} -#if LANG_CXX11 -inline void ExecutionList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionList.token) -} -#endif -inline void ExecutionList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionList.token) -} -inline void ExecutionList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionList.token) -} -inline ::std::string* ExecutionList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionList.token) -} - -// ------------------------------------------------------------------- - -// LiteralMapBlob - -// .flyteidl.core.LiteralMap values = 1 [deprecated = true]; -inline bool LiteralMapBlob::has_values() const { - return data_case() == kValues; -} -inline void LiteralMapBlob::set_has_values() { - _oneof_case_[0] = kValues; -} -inline ::flyteidl::core::LiteralMap* LiteralMapBlob::release_values() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.values) - if (has_values()) { - clear_has_data(); - ::flyteidl::core::LiteralMap* temp = data_.values_; - data_.values_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& LiteralMapBlob::values() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.values) - return has_values() - ? *data_.values_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* LiteralMapBlob::mutable_values() { - if (!has_values()) { - clear_data(); - set_has_values(); - data_.values_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.values) - return data_.values_; -} - -// string uri = 2; -inline bool LiteralMapBlob::has_uri() const { - return data_case() == kUri; -} -inline void LiteralMapBlob::set_has_uri() { - _oneof_case_[0] = kUri; -} -inline void LiteralMapBlob::clear_uri() { - if (has_uri()) { - data_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_data(); - } -} -inline const ::std::string& LiteralMapBlob::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LiteralMapBlob.uri) - if (has_uri()) { - return data_.uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void LiteralMapBlob::set_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) - if (!has_uri()) { - clear_data(); - set_has_uri(); - data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) -} -#if LANG_CXX11 -inline void LiteralMapBlob::set_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.LiteralMapBlob.uri) - if (!has_uri()) { - clear_data(); - set_has_uri(); - data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LiteralMapBlob.uri) -} -#endif -inline void LiteralMapBlob::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_uri()) { - clear_data(); - set_has_uri(); - data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.LiteralMapBlob.uri) -} -inline void LiteralMapBlob::set_uri(const char* value, size_t size) { - if (!has_uri()) { - clear_data(); - set_has_uri(); - data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - data_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LiteralMapBlob.uri) -} -inline ::std::string* LiteralMapBlob::mutable_uri() { - if (!has_uri()) { - clear_data(); - set_has_uri(); - data_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LiteralMapBlob.uri) - return data_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LiteralMapBlob::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LiteralMapBlob.uri) - if (has_uri()) { - clear_has_data(); - return data_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void LiteralMapBlob::set_allocated_uri(::std::string* uri) { - if (has_data()) { - clear_data(); - } - if (uri != nullptr) { - set_has_uri(); - data_.uri_.UnsafeSetDefault(uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LiteralMapBlob.uri) -} - -inline bool LiteralMapBlob::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void LiteralMapBlob::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline LiteralMapBlob::DataCase LiteralMapBlob::data_case() const { - return LiteralMapBlob::DataCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// AbortMetadata - -// string cause = 1; -inline void AbortMetadata::clear_cause() { - cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AbortMetadata::cause() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.AbortMetadata.cause) - return cause_.GetNoArena(); -} -inline void AbortMetadata::set_cause(const ::std::string& value) { - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.AbortMetadata.cause) -} -#if LANG_CXX11 -inline void AbortMetadata::set_cause(::std::string&& value) { - - cause_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AbortMetadata.cause) -} -#endif -inline void AbortMetadata::set_cause(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.AbortMetadata.cause) -} -inline void AbortMetadata::set_cause(const char* value, size_t size) { - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AbortMetadata.cause) -} -inline ::std::string* AbortMetadata::mutable_cause() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.AbortMetadata.cause) - return cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AbortMetadata::release_cause() { - // @@protoc_insertion_point(field_release:flyteidl.admin.AbortMetadata.cause) - - return cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AbortMetadata::set_allocated_cause(::std::string* cause) { - if (cause != nullptr) { - - } else { - - } - cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cause); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AbortMetadata.cause) -} - -// string principal = 2; -inline void AbortMetadata::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AbortMetadata::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.AbortMetadata.principal) - return principal_.GetNoArena(); -} -inline void AbortMetadata::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.AbortMetadata.principal) -} -#if LANG_CXX11 -inline void AbortMetadata::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.AbortMetadata.principal) -} -#endif -inline void AbortMetadata::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.AbortMetadata.principal) -} -inline void AbortMetadata::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.AbortMetadata.principal) -} -inline ::std::string* AbortMetadata::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.AbortMetadata.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AbortMetadata::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.admin.AbortMetadata.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AbortMetadata::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.AbortMetadata.principal) -} - -// ------------------------------------------------------------------- - -// ExecutionClosure - -// .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; -inline bool ExecutionClosure::has_outputs() const { - return output_result_case() == kOutputs; -} -inline void ExecutionClosure::set_has_outputs() { - _oneof_case_[0] = kOutputs; -} -inline void ExecutionClosure::clear_outputs() { - if (has_outputs()) { - delete output_result_.outputs_; - clear_has_output_result(); - } -} -inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.outputs) - if (has_outputs()) { - clear_has_output_result(); - ::flyteidl::admin::LiteralMapBlob* temp = output_result_.outputs_; - output_result_.outputs_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::LiteralMapBlob& ExecutionClosure::outputs() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.outputs) - return has_outputs() - ? *output_result_.outputs_ - : *reinterpret_cast< ::flyteidl::admin::LiteralMapBlob*>(&::flyteidl::admin::_LiteralMapBlob_default_instance_); -} -inline ::flyteidl::admin::LiteralMapBlob* ExecutionClosure::mutable_outputs() { - if (!has_outputs()) { - clear_output_result(); - set_has_outputs(); - output_result_.outputs_ = CreateMaybeMessage< ::flyteidl::admin::LiteralMapBlob >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.outputs) - return output_result_.outputs_; -} - -// .flyteidl.core.ExecutionError error = 2; -inline bool ExecutionClosure::has_error() const { - return output_result_case() == kError; -} -inline void ExecutionClosure::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::ExecutionError* ExecutionClosure::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& ExecutionClosure::error() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* ExecutionClosure::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.error) - return output_result_.error_; -} - -// string abort_cause = 10 [deprecated = true]; -inline bool ExecutionClosure::has_abort_cause() const { - return output_result_case() == kAbortCause; -} -inline void ExecutionClosure::set_has_abort_cause() { - _oneof_case_[0] = kAbortCause; -} -inline void ExecutionClosure::clear_abort_cause() { - if (has_abort_cause()) { - output_result_.abort_cause_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& ExecutionClosure::abort_cause() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.abort_cause) - if (has_abort_cause()) { - return output_result_.abort_cause_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void ExecutionClosure::set_abort_cause(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) - if (!has_abort_cause()) { - clear_output_result(); - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) -} -#if LANG_CXX11 -inline void ExecutionClosure::set_abort_cause(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.abort_cause) - if (!has_abort_cause()) { - clear_output_result(); - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionClosure.abort_cause) -} -#endif -inline void ExecutionClosure::set_abort_cause(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_abort_cause()) { - clear_output_result(); - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionClosure.abort_cause) -} -inline void ExecutionClosure::set_abort_cause(const char* value, size_t size) { - if (!has_abort_cause()) { - clear_output_result(); - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.abort_cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionClosure.abort_cause) -} -inline ::std::string* ExecutionClosure::mutable_abort_cause() { - if (!has_abort_cause()) { - clear_output_result(); - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.abort_cause) - return output_result_.abort_cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionClosure::release_abort_cause() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.abort_cause) - if (has_abort_cause()) { - clear_has_output_result(); - return output_result_.abort_cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void ExecutionClosure::set_allocated_abort_cause(::std::string* abort_cause) { - if (has_output_result()) { - clear_output_result(); - } - if (abort_cause != nullptr) { - set_has_abort_cause(); - output_result_.abort_cause_.UnsafeSetDefault(abort_cause); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.abort_cause) -} - -// .flyteidl.admin.AbortMetadata abort_metadata = 12; -inline bool ExecutionClosure::has_abort_metadata() const { - return output_result_case() == kAbortMetadata; -} -inline void ExecutionClosure::set_has_abort_metadata() { - _oneof_case_[0] = kAbortMetadata; -} -inline void ExecutionClosure::clear_abort_metadata() { - if (has_abort_metadata()) { - delete output_result_.abort_metadata_; - clear_has_output_result(); - } -} -inline ::flyteidl::admin::AbortMetadata* ExecutionClosure::release_abort_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.abort_metadata) - if (has_abort_metadata()) { - clear_has_output_result(); - ::flyteidl::admin::AbortMetadata* temp = output_result_.abort_metadata_; - output_result_.abort_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::AbortMetadata& ExecutionClosure::abort_metadata() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.abort_metadata) - return has_abort_metadata() - ? *output_result_.abort_metadata_ - : *reinterpret_cast< ::flyteidl::admin::AbortMetadata*>(&::flyteidl::admin::_AbortMetadata_default_instance_); -} -inline ::flyteidl::admin::AbortMetadata* ExecutionClosure::mutable_abort_metadata() { - if (!has_abort_metadata()) { - clear_output_result(); - set_has_abort_metadata(); - output_result_.abort_metadata_ = CreateMaybeMessage< ::flyteidl::admin::AbortMetadata >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.abort_metadata) - return output_result_.abort_metadata_; -} - -// .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; -inline bool ExecutionClosure::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void ExecutionClosure::set_has_output_data() { - _oneof_case_[0] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* ExecutionClosure::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& ExecutionClosure::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* ExecutionClosure::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.output_data) - return output_result_.output_data_; -} - -// .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; -inline bool ExecutionClosure::has_computed_inputs() const { - return this != internal_default_instance() && computed_inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& ExecutionClosure::computed_inputs() const { - const ::flyteidl::core::LiteralMap* p = computed_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.computed_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* ExecutionClosure::release_computed_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.computed_inputs) - - ::flyteidl::core::LiteralMap* temp = computed_inputs_; - computed_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* ExecutionClosure::mutable_computed_inputs() { - - if (computed_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - computed_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.computed_inputs) - return computed_inputs_; -} -inline void ExecutionClosure::set_allocated_computed_inputs(::flyteidl::core::LiteralMap* computed_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(computed_inputs_); - } - if (computed_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - computed_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, computed_inputs, submessage_arena); - } - - } else { - - } - computed_inputs_ = computed_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.computed_inputs) -} - -// .flyteidl.core.WorkflowExecution.Phase phase = 4; -inline void ExecutionClosure::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::WorkflowExecution_Phase ExecutionClosure::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.phase) - return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); -} -inline void ExecutionClosure::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClosure.phase) -} - -// .google.protobuf.Timestamp started_at = 5; -inline bool ExecutionClosure::has_started_at() const { - return this != internal_default_instance() && started_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& ExecutionClosure::started_at() const { - const ::google::protobuf::Timestamp* p = started_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.started_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* ExecutionClosure::release_started_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.started_at) - - ::google::protobuf::Timestamp* temp = started_at_; - started_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_started_at() { - - if (started_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - started_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.started_at) - return started_at_; -} -inline void ExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); - } - if (started_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); - if (message_arena != submessage_arena) { - started_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, started_at, submessage_arena); - } - - } else { - - } - started_at_ = started_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.started_at) -} - -// .google.protobuf.Duration duration = 6; -inline bool ExecutionClosure::has_duration() const { - return this != internal_default_instance() && duration_ != nullptr; -} -inline const ::google::protobuf::Duration& ExecutionClosure::duration() const { - const ::google::protobuf::Duration* p = duration_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.duration) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* ExecutionClosure::release_duration() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.duration) - - ::google::protobuf::Duration* temp = duration_; - duration_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* ExecutionClosure::mutable_duration() { - - if (duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - duration_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.duration) - return duration_; -} -inline void ExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); - } - if (duration) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); - if (message_arena != submessage_arena) { - duration = ::google::protobuf::internal::GetOwnedMessage( - message_arena, duration, submessage_arena); - } - - } else { - - } - duration_ = duration; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.duration) -} - -// .google.protobuf.Timestamp created_at = 7; -inline bool ExecutionClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& ExecutionClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* ExecutionClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.created_at) - return created_at_; -} -inline void ExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.created_at) -} - -// .google.protobuf.Timestamp updated_at = 8; -inline bool ExecutionClosure::has_updated_at() const { - return this != internal_default_instance() && updated_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& ExecutionClosure::updated_at() const { - const ::google::protobuf::Timestamp* p = updated_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.updated_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* ExecutionClosure::release_updated_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.updated_at) - - ::google::protobuf::Timestamp* temp = updated_at_; - updated_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* ExecutionClosure::mutable_updated_at() { - - if (updated_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - updated_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.updated_at) - return updated_at_; -} -inline void ExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); - } - if (updated_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); - if (message_arena != submessage_arena) { - updated_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, updated_at, submessage_arena); - } - - } else { - - } - updated_at_ = updated_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.updated_at) -} - -// repeated .flyteidl.admin.Notification notifications = 9; -inline int ExecutionClosure::notifications_size() const { - return notifications_.size(); -} -inline ::flyteidl::admin::Notification* ExecutionClosure::mutable_notifications(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.notifications) - return notifications_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* -ExecutionClosure::mutable_notifications() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionClosure.notifications) - return ¬ifications_; -} -inline const ::flyteidl::admin::Notification& ExecutionClosure::notifications(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.notifications) - return notifications_.Get(index); -} -inline ::flyteidl::admin::Notification* ExecutionClosure::add_notifications() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionClosure.notifications) - return notifications_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& -ExecutionClosure::notifications() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionClosure.notifications) - return notifications_; -} - -// .flyteidl.core.Identifier workflow_id = 11; -inline bool ExecutionClosure::has_workflow_id() const { - return this != internal_default_instance() && workflow_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ExecutionClosure::workflow_id() const { - const ::flyteidl::core::Identifier* p = workflow_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.workflow_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ExecutionClosure::release_workflow_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.workflow_id) - - ::flyteidl::core::Identifier* temp = workflow_id_; - workflow_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ExecutionClosure::mutable_workflow_id() { - - if (workflow_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - workflow_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.workflow_id) - return workflow_id_; -} -inline void ExecutionClosure::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); - } - if (workflow_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_id, submessage_arena); - } - - } else { - - } - workflow_id_ = workflow_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.workflow_id) -} - -// .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; -inline bool ExecutionClosure::has_state_change_details() const { - return this != internal_default_instance() && state_change_details_ != nullptr; -} -inline void ExecutionClosure::clear_state_change_details() { - if (GetArenaNoVirtual() == nullptr && state_change_details_ != nullptr) { - delete state_change_details_; - } - state_change_details_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionStateChangeDetails& ExecutionClosure::state_change_details() const { - const ::flyteidl::admin::ExecutionStateChangeDetails* p = state_change_details_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClosure.state_change_details) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionStateChangeDetails_default_instance_); -} -inline ::flyteidl::admin::ExecutionStateChangeDetails* ExecutionClosure::release_state_change_details() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClosure.state_change_details) - - ::flyteidl::admin::ExecutionStateChangeDetails* temp = state_change_details_; - state_change_details_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionStateChangeDetails* ExecutionClosure::mutable_state_change_details() { - - if (state_change_details_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionStateChangeDetails>(GetArenaNoVirtual()); - state_change_details_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClosure.state_change_details) - return state_change_details_; -} -inline void ExecutionClosure::set_allocated_state_change_details(::flyteidl::admin::ExecutionStateChangeDetails* state_change_details) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete state_change_details_; - } - if (state_change_details) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - state_change_details = ::google::protobuf::internal::GetOwnedMessage( - message_arena, state_change_details, submessage_arena); - } - - } else { - - } - state_change_details_ = state_change_details; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClosure.state_change_details) -} - -inline bool ExecutionClosure::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void ExecutionClosure::clear_has_output_result() { - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} -inline ExecutionClosure::OutputResultCase ExecutionClosure::output_result_case() const { - return ExecutionClosure::OutputResultCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// SystemMetadata - -// string execution_cluster = 1; -inline void SystemMetadata::clear_execution_cluster() { - execution_cluster_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SystemMetadata::execution_cluster() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SystemMetadata.execution_cluster) - return execution_cluster_.GetNoArena(); -} -inline void SystemMetadata::set_execution_cluster(const ::std::string& value) { - - execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SystemMetadata.execution_cluster) -} -#if LANG_CXX11 -inline void SystemMetadata::set_execution_cluster(::std::string&& value) { - - execution_cluster_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SystemMetadata.execution_cluster) -} -#endif -inline void SystemMetadata::set_execution_cluster(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SystemMetadata.execution_cluster) -} -inline void SystemMetadata::set_execution_cluster(const char* value, size_t size) { - - execution_cluster_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SystemMetadata.execution_cluster) -} -inline ::std::string* SystemMetadata::mutable_execution_cluster() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SystemMetadata.execution_cluster) - return execution_cluster_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SystemMetadata::release_execution_cluster() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SystemMetadata.execution_cluster) - - return execution_cluster_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SystemMetadata::set_allocated_execution_cluster(::std::string* execution_cluster) { - if (execution_cluster != nullptr) { - - } else { - - } - execution_cluster_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_cluster); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SystemMetadata.execution_cluster) -} - -// string namespace = 2; -inline void SystemMetadata::clear_namespace_() { - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SystemMetadata::namespace_() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SystemMetadata.namespace) - return namespace__.GetNoArena(); -} -inline void SystemMetadata::set_namespace_(const ::std::string& value) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SystemMetadata.namespace) -} -#if LANG_CXX11 -inline void SystemMetadata::set_namespace_(::std::string&& value) { - - namespace__.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SystemMetadata.namespace) -} -#endif -inline void SystemMetadata::set_namespace_(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SystemMetadata.namespace) -} -inline void SystemMetadata::set_namespace_(const char* value, size_t size) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SystemMetadata.namespace) -} -inline ::std::string* SystemMetadata::mutable_namespace_() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SystemMetadata.namespace) - return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SystemMetadata::release_namespace_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SystemMetadata.namespace) - - return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SystemMetadata::set_allocated_namespace_(::std::string* namespace_) { - if (namespace_ != nullptr) { - - } else { - - } - namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SystemMetadata.namespace) -} - -// ------------------------------------------------------------------- - -// ExecutionMetadata - -// .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; -inline void ExecutionMetadata::clear_mode() { - mode_ = 0; -} -inline ::flyteidl::admin::ExecutionMetadata_ExecutionMode ExecutionMetadata::mode() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.mode) - return static_cast< ::flyteidl::admin::ExecutionMetadata_ExecutionMode >(mode_); -} -inline void ExecutionMetadata::set_mode(::flyteidl::admin::ExecutionMetadata_ExecutionMode value) { - - mode_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.mode) -} - -// string principal = 2; -inline void ExecutionMetadata::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionMetadata::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.principal) - return principal_.GetNoArena(); -} -inline void ExecutionMetadata::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.principal) -} -#if LANG_CXX11 -inline void ExecutionMetadata::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionMetadata.principal) -} -#endif -inline void ExecutionMetadata::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionMetadata.principal) -} -inline void ExecutionMetadata::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionMetadata.principal) -} -inline ::std::string* ExecutionMetadata::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionMetadata::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionMetadata::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.principal) -} - -// uint32 nesting = 3; -inline void ExecutionMetadata::clear_nesting() { - nesting_ = 0u; -} -inline ::google::protobuf::uint32 ExecutionMetadata::nesting() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.nesting) - return nesting_; -} -inline void ExecutionMetadata::set_nesting(::google::protobuf::uint32 value) { - - nesting_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionMetadata.nesting) -} - -// .google.protobuf.Timestamp scheduled_at = 4; -inline bool ExecutionMetadata::has_scheduled_at() const { - return this != internal_default_instance() && scheduled_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& ExecutionMetadata::scheduled_at() const { - const ::google::protobuf::Timestamp* p = scheduled_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.scheduled_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* ExecutionMetadata::release_scheduled_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.scheduled_at) - - ::google::protobuf::Timestamp* temp = scheduled_at_; - scheduled_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* ExecutionMetadata::mutable_scheduled_at() { - - if (scheduled_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - scheduled_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.scheduled_at) - return scheduled_at_; -} -inline void ExecutionMetadata::set_allocated_scheduled_at(::google::protobuf::Timestamp* scheduled_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(scheduled_at_); - } - if (scheduled_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(scheduled_at)->GetArena(); - if (message_arena != submessage_arena) { - scheduled_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scheduled_at, submessage_arena); - } - - } else { - - } - scheduled_at_ = scheduled_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.scheduled_at) -} - -// .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; -inline bool ExecutionMetadata::has_parent_node_execution() const { - return this != internal_default_instance() && parent_node_execution_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& ExecutionMetadata::parent_node_execution() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.parent_node_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::release_parent_node_execution() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.parent_node_execution) - - ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_; - parent_node_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* ExecutionMetadata::mutable_parent_node_execution() { - - if (parent_node_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - parent_node_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.parent_node_execution) - return parent_node_execution_; -} -inline void ExecutionMetadata::set_allocated_parent_node_execution(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_); - } - if (parent_node_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parent_node_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parent_node_execution, submessage_arena); - } - - } else { - - } - parent_node_execution_ = parent_node_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.parent_node_execution) -} - -// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; -inline bool ExecutionMetadata::has_reference_execution() const { - return this != internal_default_instance() && reference_execution_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionMetadata::reference_execution() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = reference_execution_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.reference_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::release_reference_execution() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.reference_execution) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = reference_execution_; - reference_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionMetadata::mutable_reference_execution() { - - if (reference_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - reference_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.reference_execution) - return reference_execution_; -} -inline void ExecutionMetadata::set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(reference_execution_); - } - if (reference_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reference_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reference_execution, submessage_arena); - } - - } else { - - } - reference_execution_ = reference_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.reference_execution) -} - -// .flyteidl.admin.SystemMetadata system_metadata = 17; -inline bool ExecutionMetadata::has_system_metadata() const { - return this != internal_default_instance() && system_metadata_ != nullptr; -} -inline void ExecutionMetadata::clear_system_metadata() { - if (GetArenaNoVirtual() == nullptr && system_metadata_ != nullptr) { - delete system_metadata_; - } - system_metadata_ = nullptr; -} -inline const ::flyteidl::admin::SystemMetadata& ExecutionMetadata::system_metadata() const { - const ::flyteidl::admin::SystemMetadata* p = system_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.system_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_SystemMetadata_default_instance_); -} -inline ::flyteidl::admin::SystemMetadata* ExecutionMetadata::release_system_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionMetadata.system_metadata) - - ::flyteidl::admin::SystemMetadata* temp = system_metadata_; - system_metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::SystemMetadata* ExecutionMetadata::mutable_system_metadata() { - - if (system_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::SystemMetadata>(GetArenaNoVirtual()); - system_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.system_metadata) - return system_metadata_; -} -inline void ExecutionMetadata::set_allocated_system_metadata(::flyteidl::admin::SystemMetadata* system_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete system_metadata_; - } - if (system_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - system_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, system_metadata, submessage_arena); - } - - } else { - - } - system_metadata_ = system_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionMetadata.system_metadata) -} - -// repeated .flyteidl.core.ArtifactID artifact_ids = 18; -inline int ExecutionMetadata::artifact_ids_size() const { - return artifact_ids_.size(); -} -inline ::flyteidl::core::ArtifactID* ExecutionMetadata::mutable_artifact_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionMetadata.artifact_ids) - return artifact_ids_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -ExecutionMetadata::mutable_artifact_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionMetadata.artifact_ids) - return &artifact_ids_; -} -inline const ::flyteidl::core::ArtifactID& ExecutionMetadata::artifact_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionMetadata.artifact_ids) - return artifact_ids_.Get(index); -} -inline ::flyteidl::core::ArtifactID* ExecutionMetadata::add_artifact_ids() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionMetadata.artifact_ids) - return artifact_ids_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -ExecutionMetadata::artifact_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionMetadata.artifact_ids) - return artifact_ids_; -} - -// ------------------------------------------------------------------- - -// NotificationList - -// repeated .flyteidl.admin.Notification notifications = 1; -inline int NotificationList::notifications_size() const { - return notifications_.size(); -} -inline ::flyteidl::admin::Notification* NotificationList::mutable_notifications(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NotificationList.notifications) - return notifications_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* -NotificationList::mutable_notifications() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NotificationList.notifications) - return ¬ifications_; -} -inline const ::flyteidl::admin::Notification& NotificationList::notifications(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NotificationList.notifications) - return notifications_.Get(index); -} -inline ::flyteidl::admin::Notification* NotificationList::add_notifications() { - // @@protoc_insertion_point(field_add:flyteidl.admin.NotificationList.notifications) - return notifications_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& -NotificationList::notifications() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.NotificationList.notifications) - return notifications_; -} - -// ------------------------------------------------------------------- - -// ExecutionSpec - -// .flyteidl.core.Identifier launch_plan = 1; -inline bool ExecutionSpec::has_launch_plan() const { - return this != internal_default_instance() && launch_plan_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ExecutionSpec::launch_plan() const { - const ::flyteidl::core::Identifier* p = launch_plan_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.launch_plan) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ExecutionSpec::release_launch_plan() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.launch_plan) - - ::flyteidl::core::Identifier* temp = launch_plan_; - launch_plan_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ExecutionSpec::mutable_launch_plan() { - - if (launch_plan_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - launch_plan_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.launch_plan) - return launch_plan_; -} -inline void ExecutionSpec::set_allocated_launch_plan(::flyteidl::core::Identifier* launch_plan) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_); - } - if (launch_plan) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launch_plan = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launch_plan, submessage_arena); - } - - } else { - - } - launch_plan_ = launch_plan; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.launch_plan) -} - -// .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; -inline bool ExecutionSpec::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& ExecutionSpec::inputs() const { - const ::flyteidl::core::LiteralMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* ExecutionSpec::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.inputs) - - ::flyteidl::core::LiteralMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* ExecutionSpec::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.inputs) - return inputs_; -} -inline void ExecutionSpec::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.inputs) -} - -// .flyteidl.admin.ExecutionMetadata metadata = 3; -inline bool ExecutionSpec::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void ExecutionSpec::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::admin::ExecutionMetadata& ExecutionSpec::metadata() const { - const ::flyteidl::admin::ExecutionMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ExecutionMetadata_default_instance_); -} -inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.metadata) - - ::flyteidl::admin::ExecutionMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ExecutionMetadata* ExecutionSpec::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ExecutionMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.metadata) - return metadata_; -} -inline void ExecutionSpec::set_allocated_metadata(::flyteidl::admin::ExecutionMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.metadata) -} - -// .flyteidl.admin.NotificationList notifications = 5; -inline bool ExecutionSpec::has_notifications() const { - return notification_overrides_case() == kNotifications; -} -inline void ExecutionSpec::set_has_notifications() { - _oneof_case_[0] = kNotifications; -} -inline void ExecutionSpec::clear_notifications() { - if (has_notifications()) { - delete notification_overrides_.notifications_; - clear_has_notification_overrides(); - } -} -inline ::flyteidl::admin::NotificationList* ExecutionSpec::release_notifications() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.notifications) - if (has_notifications()) { - clear_has_notification_overrides(); - ::flyteidl::admin::NotificationList* temp = notification_overrides_.notifications_; - notification_overrides_.notifications_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::NotificationList& ExecutionSpec::notifications() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.notifications) - return has_notifications() - ? *notification_overrides_.notifications_ - : *reinterpret_cast< ::flyteidl::admin::NotificationList*>(&::flyteidl::admin::_NotificationList_default_instance_); -} -inline ::flyteidl::admin::NotificationList* ExecutionSpec::mutable_notifications() { - if (!has_notifications()) { - clear_notification_overrides(); - set_has_notifications(); - notification_overrides_.notifications_ = CreateMaybeMessage< ::flyteidl::admin::NotificationList >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.notifications) - return notification_overrides_.notifications_; -} - -// bool disable_all = 6; -inline bool ExecutionSpec::has_disable_all() const { - return notification_overrides_case() == kDisableAll; -} -inline void ExecutionSpec::set_has_disable_all() { - _oneof_case_[0] = kDisableAll; -} -inline void ExecutionSpec::clear_disable_all() { - if (has_disable_all()) { - notification_overrides_.disable_all_ = false; - clear_has_notification_overrides(); - } -} -inline bool ExecutionSpec::disable_all() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.disable_all) - if (has_disable_all()) { - return notification_overrides_.disable_all_; - } - return false; -} -inline void ExecutionSpec::set_disable_all(bool value) { - if (!has_disable_all()) { - clear_notification_overrides(); - set_has_disable_all(); - } - notification_overrides_.disable_all_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.disable_all) -} - -// .flyteidl.admin.Labels labels = 7; -inline bool ExecutionSpec::has_labels() const { - return this != internal_default_instance() && labels_ != nullptr; -} -inline const ::flyteidl::admin::Labels& ExecutionSpec::labels() const { - const ::flyteidl::admin::Labels* p = labels_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.labels) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Labels_default_instance_); -} -inline ::flyteidl::admin::Labels* ExecutionSpec::release_labels() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.labels) - - ::flyteidl::admin::Labels* temp = labels_; - labels_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Labels* ExecutionSpec::mutable_labels() { - - if (labels_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); - labels_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.labels) - return labels_; -} -inline void ExecutionSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); - } - if (labels) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - labels = ::google::protobuf::internal::GetOwnedMessage( - message_arena, labels, submessage_arena); - } - - } else { - - } - labels_ = labels; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.labels) -} - -// .flyteidl.admin.Annotations annotations = 8; -inline bool ExecutionSpec::has_annotations() const { - return this != internal_default_instance() && annotations_ != nullptr; -} -inline const ::flyteidl::admin::Annotations& ExecutionSpec::annotations() const { - const ::flyteidl::admin::Annotations* p = annotations_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.annotations) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Annotations_default_instance_); -} -inline ::flyteidl::admin::Annotations* ExecutionSpec::release_annotations() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.annotations) - - ::flyteidl::admin::Annotations* temp = annotations_; - annotations_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Annotations* ExecutionSpec::mutable_annotations() { - - if (annotations_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); - annotations_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.annotations) - return annotations_; -} -inline void ExecutionSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); - } - if (annotations) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - annotations = ::google::protobuf::internal::GetOwnedMessage( - message_arena, annotations, submessage_arena); - } - - } else { - - } - annotations_ = annotations; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.annotations) -} - -// .flyteidl.core.SecurityContext security_context = 10; -inline bool ExecutionSpec::has_security_context() const { - return this != internal_default_instance() && security_context_ != nullptr; -} -inline const ::flyteidl::core::SecurityContext& ExecutionSpec::security_context() const { - const ::flyteidl::core::SecurityContext* p = security_context_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.security_context) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SecurityContext_default_instance_); -} -inline ::flyteidl::core::SecurityContext* ExecutionSpec::release_security_context() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.security_context) - - ::flyteidl::core::SecurityContext* temp = security_context_; - security_context_ = nullptr; - return temp; -} -inline ::flyteidl::core::SecurityContext* ExecutionSpec::mutable_security_context() { - - if (security_context_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); - security_context_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.security_context) - return security_context_; -} -inline void ExecutionSpec::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); - } - if (security_context) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - security_context = ::google::protobuf::internal::GetOwnedMessage( - message_arena, security_context, submessage_arena); - } - - } else { - - } - security_context_ = security_context; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.security_context) -} - -// .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; -inline bool ExecutionSpec::has_auth_role() const { - return this != internal_default_instance() && auth_role_ != nullptr; -} -inline const ::flyteidl::admin::AuthRole& ExecutionSpec::auth_role() const { - const ::flyteidl::admin::AuthRole* p = auth_role_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.auth_role) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_AuthRole_default_instance_); -} -inline ::flyteidl::admin::AuthRole* ExecutionSpec::release_auth_role() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.auth_role) - - ::flyteidl::admin::AuthRole* temp = auth_role_; - auth_role_ = nullptr; - return temp; -} -inline ::flyteidl::admin::AuthRole* ExecutionSpec::mutable_auth_role() { - - if (auth_role_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::AuthRole>(GetArenaNoVirtual()); - auth_role_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.auth_role) - return auth_role_; -} -inline void ExecutionSpec::set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(auth_role_); - } - if (auth_role) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - auth_role = ::google::protobuf::internal::GetOwnedMessage( - message_arena, auth_role, submessage_arena); - } - - } else { - - } - auth_role_ = auth_role; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.auth_role) -} - -// .flyteidl.core.QualityOfService quality_of_service = 17; -inline bool ExecutionSpec::has_quality_of_service() const { - return this != internal_default_instance() && quality_of_service_ != nullptr; -} -inline const ::flyteidl::core::QualityOfService& ExecutionSpec::quality_of_service() const { - const ::flyteidl::core::QualityOfService* p = quality_of_service_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.quality_of_service) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_QualityOfService_default_instance_); -} -inline ::flyteidl::core::QualityOfService* ExecutionSpec::release_quality_of_service() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.quality_of_service) - - ::flyteidl::core::QualityOfService* temp = quality_of_service_; - quality_of_service_ = nullptr; - return temp; -} -inline ::flyteidl::core::QualityOfService* ExecutionSpec::mutable_quality_of_service() { - - if (quality_of_service_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); - quality_of_service_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.quality_of_service) - return quality_of_service_; -} -inline void ExecutionSpec::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); - } - if (quality_of_service) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - quality_of_service = ::google::protobuf::internal::GetOwnedMessage( - message_arena, quality_of_service, submessage_arena); - } - - } else { - - } - quality_of_service_ = quality_of_service; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.quality_of_service) -} - -// int32 max_parallelism = 18; -inline void ExecutionSpec::clear_max_parallelism() { - max_parallelism_ = 0; -} -inline ::google::protobuf::int32 ExecutionSpec::max_parallelism() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.max_parallelism) - return max_parallelism_; -} -inline void ExecutionSpec::set_max_parallelism(::google::protobuf::int32 value) { - - max_parallelism_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.max_parallelism) -} - -// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; -inline bool ExecutionSpec::has_raw_output_data_config() const { - return this != internal_default_instance() && raw_output_data_config_ != nullptr; -} -inline const ::flyteidl::admin::RawOutputDataConfig& ExecutionSpec::raw_output_data_config() const { - const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.raw_output_data_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_RawOutputDataConfig_default_instance_); -} -inline ::flyteidl::admin::RawOutputDataConfig* ExecutionSpec::release_raw_output_data_config() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.raw_output_data_config) - - ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; - raw_output_data_config_ = nullptr; - return temp; -} -inline ::flyteidl::admin::RawOutputDataConfig* ExecutionSpec::mutable_raw_output_data_config() { - - if (raw_output_data_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); - raw_output_data_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.raw_output_data_config) - return raw_output_data_config_; -} -inline void ExecutionSpec::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); - } - if (raw_output_data_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_output_data_config, submessage_arena); - } - - } else { - - } - raw_output_data_config_ = raw_output_data_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.raw_output_data_config) -} - -// .flyteidl.admin.ClusterAssignment cluster_assignment = 20; -inline bool ExecutionSpec::has_cluster_assignment() const { - return this != internal_default_instance() && cluster_assignment_ != nullptr; -} -inline const ::flyteidl::admin::ClusterAssignment& ExecutionSpec::cluster_assignment() const { - const ::flyteidl::admin::ClusterAssignment* p = cluster_assignment_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.cluster_assignment) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ClusterAssignment_default_instance_); -} -inline ::flyteidl::admin::ClusterAssignment* ExecutionSpec::release_cluster_assignment() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.cluster_assignment) - - ::flyteidl::admin::ClusterAssignment* temp = cluster_assignment_; - cluster_assignment_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ClusterAssignment* ExecutionSpec::mutable_cluster_assignment() { - - if (cluster_assignment_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ClusterAssignment>(GetArenaNoVirtual()); - cluster_assignment_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.cluster_assignment) - return cluster_assignment_; -} -inline void ExecutionSpec::set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(cluster_assignment_); - } - if (cluster_assignment) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cluster_assignment = ::google::protobuf::internal::GetOwnedMessage( - message_arena, cluster_assignment, submessage_arena); - } - - } else { - - } - cluster_assignment_ = cluster_assignment; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.cluster_assignment) -} - -// .google.protobuf.BoolValue interruptible = 21; -inline bool ExecutionSpec::has_interruptible() const { - return this != internal_default_instance() && interruptible_ != nullptr; -} -inline const ::google::protobuf::BoolValue& ExecutionSpec::interruptible() const { - const ::google::protobuf::BoolValue* p = interruptible_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.interruptible) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_BoolValue_default_instance_); -} -inline ::google::protobuf::BoolValue* ExecutionSpec::release_interruptible() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.interruptible) - - ::google::protobuf::BoolValue* temp = interruptible_; - interruptible_ = nullptr; - return temp; -} -inline ::google::protobuf::BoolValue* ExecutionSpec::mutable_interruptible() { - - if (interruptible_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); - interruptible_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.interruptible) - return interruptible_; -} -inline void ExecutionSpec::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); - } - if (interruptible) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); - if (message_arena != submessage_arena) { - interruptible = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interruptible, submessage_arena); - } - - } else { - - } - interruptible_ = interruptible; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.interruptible) -} - -// bool overwrite_cache = 22; -inline void ExecutionSpec::clear_overwrite_cache() { - overwrite_cache_ = false; -} -inline bool ExecutionSpec::overwrite_cache() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.overwrite_cache) - return overwrite_cache_; -} -inline void ExecutionSpec::set_overwrite_cache(bool value) { - - overwrite_cache_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.overwrite_cache) -} - -// .flyteidl.admin.Envs envs = 23; -inline bool ExecutionSpec::has_envs() const { - return this != internal_default_instance() && envs_ != nullptr; -} -inline const ::flyteidl::admin::Envs& ExecutionSpec::envs() const { - const ::flyteidl::admin::Envs* p = envs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.envs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Envs_default_instance_); -} -inline ::flyteidl::admin::Envs* ExecutionSpec::release_envs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionSpec.envs) - - ::flyteidl::admin::Envs* temp = envs_; - envs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Envs* ExecutionSpec::mutable_envs() { - - if (envs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); - envs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.envs) - return envs_; -} -inline void ExecutionSpec::set_allocated_envs(::flyteidl::admin::Envs* envs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); - } - if (envs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - envs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, envs, submessage_arena); - } - - } else { - - } - envs_ = envs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionSpec.envs) -} - -// repeated string tags = 24; -inline int ExecutionSpec::tags_size() const { - return tags_.size(); -} -inline void ExecutionSpec::clear_tags() { - tags_.Clear(); -} -inline const ::std::string& ExecutionSpec::tags(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionSpec.tags) - return tags_.Get(index); -} -inline ::std::string* ExecutionSpec::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionSpec.tags) - return tags_.Mutable(index); -} -inline void ExecutionSpec::set_tags(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.tags) - tags_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void ExecutionSpec::set_tags(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionSpec.tags) - tags_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void ExecutionSpec::set_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionSpec.tags) -} -inline void ExecutionSpec::set_tags(int index, const char* value, size_t size) { - tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionSpec.tags) -} -inline ::std::string* ExecutionSpec::add_tags() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.ExecutionSpec.tags) - return tags_.Add(); -} -inline void ExecutionSpec::add_tags(const ::std::string& value) { - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionSpec.tags) -} -#if LANG_CXX11 -inline void ExecutionSpec::add_tags(::std::string&& value) { - tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionSpec.tags) -} -#endif -inline void ExecutionSpec::add_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.ExecutionSpec.tags) -} -inline void ExecutionSpec::add_tags(const char* value, size_t size) { - tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.ExecutionSpec.tags) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -ExecutionSpec::tags() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionSpec.tags) - return tags_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -ExecutionSpec::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionSpec.tags) - return &tags_; -} - -inline bool ExecutionSpec::has_notification_overrides() const { - return notification_overrides_case() != NOTIFICATION_OVERRIDES_NOT_SET; -} -inline void ExecutionSpec::clear_has_notification_overrides() { - _oneof_case_[0] = NOTIFICATION_OVERRIDES_NOT_SET; -} -inline ExecutionSpec::NotificationOverridesCase ExecutionSpec::notification_overrides_case() const { - return ExecutionSpec::NotificationOverridesCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ExecutionTerminateRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool ExecutionTerminateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionTerminateRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionTerminateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.id) - return id_; -} -inline void ExecutionTerminateRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.ExecutionTerminateRequest.id) -} - -// string cause = 2; -inline void ExecutionTerminateRequest::clear_cause() { - cause_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionTerminateRequest::cause() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionTerminateRequest.cause) - return cause_.GetNoArena(); -} -inline void ExecutionTerminateRequest::set_cause(const ::std::string& value) { - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionTerminateRequest.cause) -} -#if LANG_CXX11 -inline void ExecutionTerminateRequest::set_cause(::std::string&& value) { - - cause_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionTerminateRequest.cause) -} -#endif -inline void ExecutionTerminateRequest::set_cause(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionTerminateRequest.cause) -} -inline void ExecutionTerminateRequest::set_cause(const char* value, size_t size) { - - cause_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionTerminateRequest.cause) -} -inline ::std::string* ExecutionTerminateRequest::mutable_cause() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionTerminateRequest.cause) - return cause_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionTerminateRequest::release_cause() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionTerminateRequest.cause) - - return cause_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionTerminateRequest::set_allocated_cause(::std::string* cause) { - if (cause != nullptr) { - - } else { - - } - cause_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cause); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionTerminateRequest.cause) -} - -// ------------------------------------------------------------------- - -// ExecutionTerminateResponse - -// ------------------------------------------------------------------- - -// WorkflowExecutionGetDataRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool WorkflowExecutionGetDataRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetDataRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetDataRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataRequest.id) - return id_; -} -inline void WorkflowExecutionGetDataRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.WorkflowExecutionGetDataRequest.id) -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionGetDataResponse - -// .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; -inline bool WorkflowExecutionGetDataResponse::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::outputs() const { - const ::flyteidl::admin::UrlBlob* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) - - ::flyteidl::admin::UrlBlob* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) - return outputs_; -} -inline void WorkflowExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.outputs) -} - -// .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; -inline bool WorkflowExecutionGetDataResponse::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& WorkflowExecutionGetDataResponse::inputs() const { - const ::flyteidl::admin::UrlBlob* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) - - ::flyteidl::admin::UrlBlob* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* WorkflowExecutionGetDataResponse::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) - return inputs_; -} -inline void WorkflowExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.inputs) -} - -// .flyteidl.core.LiteralMap full_inputs = 3; -inline bool WorkflowExecutionGetDataResponse::has_full_inputs() const { - return this != internal_default_instance() && full_inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& WorkflowExecutionGetDataResponse::full_inputs() const { - const ::flyteidl::core::LiteralMap* p = full_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::release_full_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) - - ::flyteidl::core::LiteralMap* temp = full_inputs_; - full_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::mutable_full_inputs() { - - if (full_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) - return full_inputs_; -} -inline void WorkflowExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); - } - if (full_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_inputs, submessage_arena); - } - - } else { - - } - full_inputs_ = full_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.full_inputs) -} - -// .flyteidl.core.LiteralMap full_outputs = 4; -inline bool WorkflowExecutionGetDataResponse::has_full_outputs() const { - return this != internal_default_instance() && full_outputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& WorkflowExecutionGetDataResponse::full_outputs() const { - const ::flyteidl::core::LiteralMap* p = full_outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::release_full_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) - - ::flyteidl::core::LiteralMap* temp = full_outputs_; - full_outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionGetDataResponse::mutable_full_outputs() { - - if (full_outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) - return full_outputs_; -} -inline void WorkflowExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); - } - if (full_outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_outputs, submessage_arena); - } - - } else { - - } - full_outputs_ = full_outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetDataResponse.full_outputs) -} - -// ------------------------------------------------------------------- - -// ExecutionUpdateRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool ExecutionUpdateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionUpdateRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionUpdateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionUpdateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionUpdateRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionUpdateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionUpdateRequest.id) - return id_; -} -inline void ExecutionUpdateRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.ExecutionUpdateRequest.id) -} - -// .flyteidl.admin.ExecutionState state = 2; -inline void ExecutionUpdateRequest::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::ExecutionState ExecutionUpdateRequest::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionUpdateRequest.state) - return static_cast< ::flyteidl::admin::ExecutionState >(state_); -} -inline void ExecutionUpdateRequest::set_state(::flyteidl::admin::ExecutionState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionUpdateRequest.state) -} - -// ------------------------------------------------------------------- - -// ExecutionStateChangeDetails - -// .flyteidl.admin.ExecutionState state = 1; -inline void ExecutionStateChangeDetails::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::ExecutionState ExecutionStateChangeDetails::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.state) - return static_cast< ::flyteidl::admin::ExecutionState >(state_); -} -inline void ExecutionStateChangeDetails::set_state(::flyteidl::admin::ExecutionState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionStateChangeDetails.state) -} - -// .google.protobuf.Timestamp occurred_at = 2; -inline bool ExecutionStateChangeDetails::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& ExecutionStateChangeDetails::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* ExecutionStateChangeDetails::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* ExecutionStateChangeDetails::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) - return occurred_at_; -} -inline void ExecutionStateChangeDetails::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionStateChangeDetails.occurred_at) -} - -// string principal = 3; -inline void ExecutionStateChangeDetails::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionStateChangeDetails::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionStateChangeDetails.principal) - return principal_.GetNoArena(); -} -inline void ExecutionStateChangeDetails::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionStateChangeDetails.principal) -} -#if LANG_CXX11 -inline void ExecutionStateChangeDetails::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionStateChangeDetails.principal) -} -#endif -inline void ExecutionStateChangeDetails::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionStateChangeDetails.principal) -} -inline void ExecutionStateChangeDetails::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionStateChangeDetails.principal) -} -inline ::std::string* ExecutionStateChangeDetails::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionStateChangeDetails.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionStateChangeDetails::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionStateChangeDetails.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionStateChangeDetails::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionStateChangeDetails.principal) -} - -// ------------------------------------------------------------------- - -// ExecutionUpdateResponse - -// ------------------------------------------------------------------- - -// WorkflowExecutionGetMetricsRequest - -// .flyteidl.core.WorkflowExecutionIdentifier id = 1; -inline bool WorkflowExecutionGetMetricsRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionGetMetricsRequest::id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetMetricsRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionGetMetricsRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetMetricsRequest.id) - return id_; -} -inline void WorkflowExecutionGetMetricsRequest::set_allocated_id(::flyteidl::core::WorkflowExecutionIdentifier* 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.WorkflowExecutionGetMetricsRequest.id) -} - -// int32 depth = 2; -inline void WorkflowExecutionGetMetricsRequest::clear_depth() { - depth_ = 0; -} -inline ::google::protobuf::int32 WorkflowExecutionGetMetricsRequest::depth() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsRequest.depth) - return depth_; -} -inline void WorkflowExecutionGetMetricsRequest::set_depth(::google::protobuf::int32 value) { - - depth_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionGetMetricsRequest.depth) -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionGetMetricsResponse - -// .flyteidl.core.Span span = 1; -inline bool WorkflowExecutionGetMetricsResponse::has_span() const { - return this != internal_default_instance() && span_ != nullptr; -} -inline const ::flyteidl::core::Span& WorkflowExecutionGetMetricsResponse::span() const { - const ::flyteidl::core::Span* p = span_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Span_default_instance_); -} -inline ::flyteidl::core::Span* WorkflowExecutionGetMetricsResponse::release_span() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) - - ::flyteidl::core::Span* temp = span_; - span_ = nullptr; - return temp; -} -inline ::flyteidl::core::Span* WorkflowExecutionGetMetricsResponse::mutable_span() { - - if (span_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Span>(GetArenaNoVirtual()); - span_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) - return span_; -} -inline void WorkflowExecutionGetMetricsResponse::set_allocated_span(::flyteidl::core::Span* span) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(span_); - } - if (span) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - span = ::google::protobuf::internal::GetOwnedMessage( - message_arena, span, submessage_arena); - } - - } else { - - } - span_ = span; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionGetMetricsResponse.span) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::ExecutionMetadata_ExecutionMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::ExecutionMetadata_ExecutionMode>() { - return ::flyteidl::admin::ExecutionMetadata_ExecutionMode_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::admin::ExecutionState> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::ExecutionState>() { - return ::flyteidl::admin::ExecutionState_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc deleted file mode 100644 index 9b9cda22fd..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/launch_plan.proto - -#include "flyteidl/admin/launch_plan.pb.h" -#include "flyteidl/admin/launch_plan.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h deleted file mode 100644 index 31b99cb08b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/launch_plan.proto -#ifndef GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED - -#include "flyteidl/admin/launch_plan.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2flaunch_5fplan_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc deleted file mode 100644 index a69ec02fdb..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.cc +++ /dev/null @@ -1,6029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/launch_plan.proto - -#include "flyteidl/admin/launch_plan.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<13> scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; -namespace flyteidl { -namespace admin { -class LaunchPlanCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanCreateRequest_default_instance_; -class LaunchPlanCreateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanCreateResponse_default_instance_; -class LaunchPlanDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlan_default_instance_; -class LaunchPlanListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanList_default_instance_; -class AuthDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Auth_default_instance_; -class LaunchPlanSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanSpec_default_instance_; -class LaunchPlanClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanClosure_default_instance_; -class LaunchPlanMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanMetadata_default_instance_; -class LaunchPlanUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanUpdateRequest_default_instance_; -class LaunchPlanUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LaunchPlanUpdateResponse_default_instance_; -class ActiveLaunchPlanRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ActiveLaunchPlanRequest_default_instance_; -class ActiveLaunchPlanListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ActiveLaunchPlanListRequest_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsLaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; - -static void InitDefaultsLaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanCreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanCreateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; - -static void InitDefaultsLaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlan_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlan(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlan::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, - &scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; - -static void InitDefaultsLaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanList_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; - -static void InitDefaultsAuth_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Auth_default_instance_; - new (ptr) ::flyteidl::admin::Auth(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Auth::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAuth_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; - -static void InitDefaultsLaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanSpec_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<13> scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 13, InitDefaultsLaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, - &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base, - &scc_info_AuthRole_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, - &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsLaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanClosure_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsLaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanMetadata_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsLaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base, - &scc_info_Notification_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}}; - -static void InitDefaultsLaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsLaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsLaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::LaunchPlanUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::LaunchPlanUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, {}}; - -static void InitDefaultsActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_; - new (ptr) ::flyteidl::admin::ActiveLaunchPlanRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ActiveLaunchPlanRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_NamedEntityIdentifier_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_; - new (ptr) ::flyteidl::admin::ActiveLaunchPlanListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ActiveLaunchPlanListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto}, { - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[12]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateRequest, spec_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanCreateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlan, closure_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, launch_plans_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, assumable_iam_role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Auth, kubernetes_service_account_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, workflow_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, entity_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, default_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, fixed_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, annotations_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, auth_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, auth_role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, security_context_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, quality_of_service_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, raw_output_data_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, max_parallelism_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, interruptible_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, overwrite_cache_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanSpec, envs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, state_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, expected_outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, created_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanClosure, updated_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, schedule_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, notifications_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanMetadata, launch_conditions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateRequest, state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::LaunchPlanUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ActiveLaunchPlanListRequest, sort_by_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::LaunchPlanCreateRequest)}, - { 7, -1, sizeof(::flyteidl::admin::LaunchPlanCreateResponse)}, - { 12, -1, sizeof(::flyteidl::admin::LaunchPlan)}, - { 20, -1, sizeof(::flyteidl::admin::LaunchPlanList)}, - { 27, -1, sizeof(::flyteidl::admin::Auth)}, - { 34, -1, sizeof(::flyteidl::admin::LaunchPlanSpec)}, - { 55, -1, sizeof(::flyteidl::admin::LaunchPlanClosure)}, - { 65, -1, sizeof(::flyteidl::admin::LaunchPlanMetadata)}, - { 73, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateRequest)}, - { 80, -1, sizeof(::flyteidl::admin::LaunchPlanUpdateResponse)}, - { 85, -1, sizeof(::flyteidl::admin::ActiveLaunchPlanRequest)}, - { 91, -1, sizeof(::flyteidl::admin::ActiveLaunchPlanListRequest)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanCreateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlan_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Auth_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanSpec_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanClosure_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_LaunchPlanUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, "flyteidl/admin/launch_plan.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto, 12, file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2flaunch_5fplan_2eproto[] = - "\n flyteidl/admin/launch_plan.proto\022\016flyt" - "eidl.admin\032\035flyteidl/core/execution.prot" - "o\032\034flyteidl/core/literals.proto\032\036flyteid" - "l/core/identifier.proto\032\035flyteidl/core/i" - "nterface.proto\032\034flyteidl/core/security.p" - "roto\032\035flyteidl/admin/schedule.proto\032\033fly" - "teidl/admin/common.proto\032\031google/protobu" - "f/any.proto\032\037google/protobuf/timestamp.p" - "roto\032\036google/protobuf/wrappers.proto\"n\n\027" - "LaunchPlanCreateRequest\022%\n\002id\030\001 \001(\0132\031.fl" - "yteidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.f" - "lyteidl.admin.LaunchPlanSpec\"\032\n\030LaunchPl" - "anCreateResponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 " - "\001(\0132\031.flyteidl.core.Identifier\022,\n\004spec\030\002" - " \001(\0132\036.flyteidl.admin.LaunchPlanSpec\0222\n\007" - "closure\030\003 \001(\0132!.flyteidl.admin.LaunchPla" - "nClosure\"Q\n\016LaunchPlanList\0220\n\014launch_pla" - "ns\030\001 \003(\0132\032.flyteidl.admin.LaunchPlan\022\r\n\005" - "token\030\002 \001(\t\"J\n\004Auth\022\032\n\022assumable_iam_rol" - "e\030\001 \001(\t\022\"\n\032kubernetes_service_account\030\002 " - "\001(\t:\002\030\001\"\355\005\n\016LaunchPlanSpec\022.\n\013workflow_i" - "d\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017en" - "tity_metadata\030\002 \001(\0132\".flyteidl.admin.Lau" - "nchPlanMetadata\0223\n\016default_inputs\030\003 \001(\0132" - "\033.flyteidl.core.ParameterMap\022/\n\014fixed_in" - "puts\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020\n" - "\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flytei" - "dl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033.f" - "lyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\0132" - "\024.flyteidl.admin.AuthB\002\030\001\022/\n\tauth_role\030\t" - " \001(\0132\030.flyteidl.admin.AuthRoleB\002\030\001\0228\n\020se" - "curity_context\030\n \001(\0132\036.flyteidl.core.Sec" - "urityContext\022;\n\022quality_of_service\030\020 \001(\013" - "2\037.flyteidl.core.QualityOfService\022C\n\026raw" - "_output_data_config\030\021 \001(\0132#.flyteidl.adm" - "in.RawOutputDataConfig\022\027\n\017max_parallelis" - "m\030\022 \001(\005\0221\n\rinterruptible\030\023 \001(\0132\032.google." - "protobuf.BoolValue\022\027\n\017overwrite_cache\030\024 " - "\001(\010\022\"\n\004envs\030\025 \001(\0132\024.flyteidl.admin.Envs\"" - "\217\002\n\021LaunchPlanClosure\022.\n\005state\030\001 \001(\0162\037.f" - "lyteidl.admin.LaunchPlanState\0224\n\017expecte" - "d_inputs\030\002 \001(\0132\033.flyteidl.core.Parameter" - "Map\0224\n\020expected_outputs\030\003 \001(\0132\032.flyteidl" - ".core.VariableMap\022.\n\ncreated_at\030\004 \001(\0132\032." - "google.protobuf.Timestamp\022.\n\nupdated_at\030" - "\005 \001(\0132\032.google.protobuf.Timestamp\"\246\001\n\022La" - "unchPlanMetadata\022*\n\010schedule\030\001 \001(\0132\030.fly" - "teidl.admin.Schedule\0223\n\rnotifications\030\002 " - "\003(\0132\034.flyteidl.admin.Notification\022/\n\021lau" - "nch_conditions\030\003 \001(\0132\024.google.protobuf.A" - "ny\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001 \001(" - "\0132\031.flyteidl.core.Identifier\022.\n\005state\030\002 " - "\001(\0162\037.flyteidl.admin.LaunchPlanState\"\032\n\030" - "LaunchPlanUpdateResponse\"L\n\027ActiveLaunch" - "PlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin" - ".NamedEntityIdentifier\"\203\001\n\033ActiveLaunchP" - "lanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domai" - "n\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n" - "\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*+\n\017" - "LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTIVE\020" - "\001B=Z;github.com/flyteorg/flyte/flyteidl/" - "gen/pb-go/flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2flaunch_5fplan_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2flaunch_5fplan_2eproto, - "flyteidl/admin/launch_plan.proto", &assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto, 2472, -}; - -void AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[10] = - { - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_google_2fprotobuf_2fany_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto, deps, 10); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2flaunch_5fplan_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto[0]; -} -bool LaunchPlanState_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -// =================================================================== - -void LaunchPlanCreateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( - ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); -} -class LaunchPlanCreateRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const LaunchPlanCreateRequest* msg); - static const ::flyteidl::admin::LaunchPlanSpec& spec(const LaunchPlanCreateRequest* msg); -}; - -const ::flyteidl::core::Identifier& -LaunchPlanCreateRequest::HasBitSetters::id(const LaunchPlanCreateRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::LaunchPlanSpec& -LaunchPlanCreateRequest::HasBitSetters::spec(const LaunchPlanCreateRequest* msg) { - return *msg->spec_; -} -void LaunchPlanCreateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanCreateRequest::kIdFieldNumber; -const int LaunchPlanCreateRequest::kSpecFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanCreateRequest::LaunchPlanCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateRequest) -} -LaunchPlanCreateRequest::LaunchPlanCreateRequest(const LaunchPlanCreateRequest& 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; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); - } else { - spec_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateRequest) -} - -void LaunchPlanCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&spec_) - - reinterpret_cast(&id_)) + sizeof(spec_)); -} - -LaunchPlanCreateRequest::~LaunchPlanCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateRequest) - SharedDtor(); -} - -void LaunchPlanCreateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete spec_; -} - -void LaunchPlanCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanCreateRequest& LaunchPlanCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanCreateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanCreateRequest::_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; - } - // .flyteidl.admin.LaunchPlanSpec spec = 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::LaunchPlanSpec::_InternalParse; - object = msg->mutable_spec(); - 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 LaunchPlanCreateRequest::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.LaunchPlanCreateRequest) - 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; - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } 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.LaunchPlanCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateRequest) - ::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); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(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.LaunchPlanCreateRequest) -} - -::google::protobuf::uint8* LaunchPlanCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateRequest) - ::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); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(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.LaunchPlanCreateRequest) - return target; -} - -size_t LaunchPlanCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateRequest) - 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_); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateRequest) - MergeFrom(*source); - } -} - -void LaunchPlanCreateRequest::MergeFrom(const LaunchPlanCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateRequest) - 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()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); - } -} - -void LaunchPlanCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanCreateRequest::CopyFrom(const LaunchPlanCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanCreateRequest::IsInitialized() const { - return true; -} - -void LaunchPlanCreateRequest::Swap(LaunchPlanCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanCreateRequest::InternalSwap(LaunchPlanCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(spec_, other->spec_); -} - -::google::protobuf::Metadata LaunchPlanCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanCreateResponse::InitAsDefaultInstance() { -} -class LaunchPlanCreateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanCreateResponse::LaunchPlanCreateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanCreateResponse) -} -LaunchPlanCreateResponse::LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanCreateResponse) -} - -void LaunchPlanCreateResponse::SharedCtor() { -} - -LaunchPlanCreateResponse::~LaunchPlanCreateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanCreateResponse) - SharedDtor(); -} - -void LaunchPlanCreateResponse::SharedDtor() { -} - -void LaunchPlanCreateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanCreateResponse& LaunchPlanCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanCreateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanCreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanCreateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LaunchPlanCreateResponse::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.LaunchPlanCreateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanCreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanCreateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanCreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanCreateResponse) -} - -::google::protobuf::uint8* LaunchPlanCreateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.LaunchPlanCreateResponse) - return target; -} - -size_t LaunchPlanCreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanCreateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanCreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanCreateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanCreateResponse) - MergeFrom(*source); - } -} - -void LaunchPlanCreateResponse::MergeFrom(const LaunchPlanCreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void LaunchPlanCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanCreateResponse::CopyFrom(const LaunchPlanCreateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanCreateResponse::IsInitialized() const { - return true; -} - -void LaunchPlanCreateResponse::Swap(LaunchPlanCreateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanCreateResponse::InternalSwap(LaunchPlanCreateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata LaunchPlanCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlan::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::LaunchPlanSpec*>( - ::flyteidl::admin::LaunchPlanSpec::internal_default_instance()); - ::flyteidl::admin::_LaunchPlan_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::LaunchPlanClosure*>( - ::flyteidl::admin::LaunchPlanClosure::internal_default_instance()); -} -class LaunchPlan::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const LaunchPlan* msg); - static const ::flyteidl::admin::LaunchPlanSpec& spec(const LaunchPlan* msg); - static const ::flyteidl::admin::LaunchPlanClosure& closure(const LaunchPlan* msg); -}; - -const ::flyteidl::core::Identifier& -LaunchPlan::HasBitSetters::id(const LaunchPlan* msg) { - return *msg->id_; -} -const ::flyteidl::admin::LaunchPlanSpec& -LaunchPlan::HasBitSetters::spec(const LaunchPlan* msg) { - return *msg->spec_; -} -const ::flyteidl::admin::LaunchPlanClosure& -LaunchPlan::HasBitSetters::closure(const LaunchPlan* msg) { - return *msg->closure_; -} -void LaunchPlan::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlan::kIdFieldNumber; -const int LaunchPlan::kSpecFieldNumber; -const int LaunchPlan::kClosureFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlan::LaunchPlan() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlan) -} -LaunchPlan::LaunchPlan(const LaunchPlan& 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; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::LaunchPlanSpec(*from.spec_); - } else { - spec_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::LaunchPlanClosure(*from.closure_); - } else { - closure_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlan) -} - -void LaunchPlan::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&closure_) - - reinterpret_cast(&id_)) + sizeof(closure_)); -} - -LaunchPlan::~LaunchPlan() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlan) - SharedDtor(); -} - -void LaunchPlan::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete spec_; - if (this != internal_default_instance()) delete closure_; -} - -void LaunchPlan::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlan& LaunchPlan::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlan::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlan) - ::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; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlan::_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; - } - // .flyteidl.admin.LaunchPlanSpec spec = 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::LaunchPlanSpec::_InternalParse; - object = msg->mutable_spec(); - 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.LaunchPlanClosure closure = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::LaunchPlanClosure::_InternalParse; - object = msg->mutable_closure(); - 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 LaunchPlan::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.LaunchPlan) - 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; - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.LaunchPlanClosure closure = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } 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.LaunchPlan) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlan) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlan::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlan) - ::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); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(this), output); - } - - // .flyteidl.admin.LaunchPlanClosure closure = 3; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::closure(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.LaunchPlan) -} - -::google::protobuf::uint8* LaunchPlan::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlan) - ::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); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(this), target); - } - - // .flyteidl.admin.LaunchPlanClosure closure = 3; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::closure(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.LaunchPlan) - return target; -} - -size_t LaunchPlan::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlan) - 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_); - } - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - // .flyteidl.admin.LaunchPlanClosure closure = 3; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlan::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlan) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlan* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlan) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlan) - MergeFrom(*source); - } -} - -void LaunchPlan::MergeFrom(const LaunchPlan& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlan) - 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()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::LaunchPlanSpec::MergeFrom(from.spec()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::LaunchPlanClosure::MergeFrom(from.closure()); - } -} - -void LaunchPlan::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlan) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlan::CopyFrom(const LaunchPlan& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlan) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlan::IsInitialized() const { - return true; -} - -void LaunchPlan::Swap(LaunchPlan* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlan::InternalSwap(LaunchPlan* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(spec_, other->spec_); - swap(closure_, other->closure_); -} - -::google::protobuf::Metadata LaunchPlan::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanList::InitAsDefaultInstance() { -} -class LaunchPlanList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanList::kLaunchPlansFieldNumber; -const int LaunchPlanList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanList::LaunchPlanList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanList) -} -LaunchPlanList::LaunchPlanList(const LaunchPlanList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - launch_plans_(from.launch_plans_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanList) -} - -void LaunchPlanList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -LaunchPlanList::~LaunchPlanList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanList) - SharedDtor(); -} - -void LaunchPlanList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void LaunchPlanList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanList& LaunchPlanList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanList_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - launch_plans_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanList::_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) { - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::LaunchPlan::_InternalParse; - object = msg->add_launch_plans(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.LaunchPlanList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LaunchPlanList::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.LaunchPlanList) - 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)) { - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_launch_plans())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.LaunchPlanList.token")); - } 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.LaunchPlanList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - for (unsigned int i = 0, - n = static_cast(this->launch_plans_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->launch_plans(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LaunchPlanList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanList) -} - -::google::protobuf::uint8* LaunchPlanList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - for (unsigned int i = 0, - n = static_cast(this->launch_plans_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->launch_plans(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LaunchPlanList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.LaunchPlanList) - return target; -} - -size_t LaunchPlanList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanList) - 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; - - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - { - unsigned int count = static_cast(this->launch_plans_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->launch_plans(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanList) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanList) - MergeFrom(*source); - } -} - -void LaunchPlanList::MergeFrom(const LaunchPlanList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - launch_plans_.MergeFrom(from.launch_plans_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void LaunchPlanList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanList::CopyFrom(const LaunchPlanList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanList::IsInitialized() const { - return true; -} - -void LaunchPlanList::Swap(LaunchPlanList* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanList::InternalSwap(LaunchPlanList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&launch_plans_)->InternalSwap(CastToBase(&other->launch_plans_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata LaunchPlanList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Auth::InitAsDefaultInstance() { -} -class Auth::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Auth::kAssumableIamRoleFieldNumber; -const int Auth::kKubernetesServiceAccountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Auth::Auth() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Auth) -} -Auth::Auth(const Auth& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.assumable_iam_role().size() > 0) { - assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); - } - kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.kubernetes_service_account().size() > 0) { - kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Auth) -} - -void Auth::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - assumable_iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Auth::~Auth() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Auth) - SharedDtor(); -} - -void Auth::SharedDtor() { - assumable_iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Auth::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Auth& Auth::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Auth_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void Auth::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Auth) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Auth::_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) { - // string assumable_iam_role = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Auth.assumable_iam_role"); - object = msg->mutable_assumable_iam_role(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string kubernetes_service_account = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Auth.kubernetes_service_account"); - object = msg->mutable_kubernetes_service_account(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Auth::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.Auth) - 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)) { - // string assumable_iam_role = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_assumable_iam_role())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Auth.assumable_iam_role")); - } else { - goto handle_unusual; - } - break; - } - - // string kubernetes_service_account = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_kubernetes_service_account())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Auth.kubernetes_service_account")); - } 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.Auth) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Auth) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Auth::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Auth) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Auth.assumable_iam_role"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->assumable_iam_role(), output); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Auth.kubernetes_service_account"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->kubernetes_service_account(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Auth) -} - -::google::protobuf::uint8* Auth::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Auth) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->assumable_iam_role().data(), static_cast(this->assumable_iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Auth.assumable_iam_role"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->assumable_iam_role(), target); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kubernetes_service_account().data(), static_cast(this->kubernetes_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Auth.kubernetes_service_account"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->kubernetes_service_account(), 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.Auth) - return target; -} - -size_t Auth::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Auth) - 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; - - // string assumable_iam_role = 1; - if (this->assumable_iam_role().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->assumable_iam_role()); - } - - // string kubernetes_service_account = 2; - if (this->kubernetes_service_account().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->kubernetes_service_account()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Auth::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Auth) - GOOGLE_DCHECK_NE(&from, this); - const Auth* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Auth) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Auth) - MergeFrom(*source); - } -} - -void Auth::MergeFrom(const Auth& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Auth) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.assumable_iam_role().size() > 0) { - - assumable_iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.assumable_iam_role_); - } - if (from.kubernetes_service_account().size() > 0) { - - kubernetes_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kubernetes_service_account_); - } -} - -void Auth::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Auth) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Auth::CopyFrom(const Auth& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Auth) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Auth::IsInitialized() const { - return true; -} - -void Auth::Swap(Auth* other) { - if (other == this) return; - InternalSwap(other); -} -void Auth::InternalSwap(Auth* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - assumable_iam_role_.Swap(&other->assumable_iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - kubernetes_service_account_.Swap(&other->kubernetes_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Auth::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanSpec::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->entity_metadata_ = const_cast< ::flyteidl::admin::LaunchPlanMetadata*>( - ::flyteidl::admin::LaunchPlanMetadata::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->default_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( - ::flyteidl::core::ParameterMap::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->fixed_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( - ::flyteidl::admin::Labels::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( - ::flyteidl::admin::Annotations::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->auth_ = const_cast< ::flyteidl::admin::Auth*>( - ::flyteidl::admin::Auth::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->auth_role_ = const_cast< ::flyteidl::admin::AuthRole*>( - ::flyteidl::admin::AuthRole::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( - ::flyteidl::core::SecurityContext::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( - ::flyteidl::core::QualityOfService::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( - ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( - ::google::protobuf::BoolValue::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanSpec_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( - ::flyteidl::admin::Envs::internal_default_instance()); -} -class LaunchPlanSpec::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& workflow_id(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::LaunchPlanMetadata& entity_metadata(const LaunchPlanSpec* msg); - static const ::flyteidl::core::ParameterMap& default_inputs(const LaunchPlanSpec* msg); - static const ::flyteidl::core::LiteralMap& fixed_inputs(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::Labels& labels(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::Annotations& annotations(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::Auth& auth(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::AuthRole& auth_role(const LaunchPlanSpec* msg); - static const ::flyteidl::core::SecurityContext& security_context(const LaunchPlanSpec* msg); - static const ::flyteidl::core::QualityOfService& quality_of_service(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const LaunchPlanSpec* msg); - static const ::google::protobuf::BoolValue& interruptible(const LaunchPlanSpec* msg); - static const ::flyteidl::admin::Envs& envs(const LaunchPlanSpec* msg); -}; - -const ::flyteidl::core::Identifier& -LaunchPlanSpec::HasBitSetters::workflow_id(const LaunchPlanSpec* msg) { - return *msg->workflow_id_; -} -const ::flyteidl::admin::LaunchPlanMetadata& -LaunchPlanSpec::HasBitSetters::entity_metadata(const LaunchPlanSpec* msg) { - return *msg->entity_metadata_; -} -const ::flyteidl::core::ParameterMap& -LaunchPlanSpec::HasBitSetters::default_inputs(const LaunchPlanSpec* msg) { - return *msg->default_inputs_; -} -const ::flyteidl::core::LiteralMap& -LaunchPlanSpec::HasBitSetters::fixed_inputs(const LaunchPlanSpec* msg) { - return *msg->fixed_inputs_; -} -const ::flyteidl::admin::Labels& -LaunchPlanSpec::HasBitSetters::labels(const LaunchPlanSpec* msg) { - return *msg->labels_; -} -const ::flyteidl::admin::Annotations& -LaunchPlanSpec::HasBitSetters::annotations(const LaunchPlanSpec* msg) { - return *msg->annotations_; -} -const ::flyteidl::admin::Auth& -LaunchPlanSpec::HasBitSetters::auth(const LaunchPlanSpec* msg) { - return *msg->auth_; -} -const ::flyteidl::admin::AuthRole& -LaunchPlanSpec::HasBitSetters::auth_role(const LaunchPlanSpec* msg) { - return *msg->auth_role_; -} -const ::flyteidl::core::SecurityContext& -LaunchPlanSpec::HasBitSetters::security_context(const LaunchPlanSpec* msg) { - return *msg->security_context_; -} -const ::flyteidl::core::QualityOfService& -LaunchPlanSpec::HasBitSetters::quality_of_service(const LaunchPlanSpec* msg) { - return *msg->quality_of_service_; -} -const ::flyteidl::admin::RawOutputDataConfig& -LaunchPlanSpec::HasBitSetters::raw_output_data_config(const LaunchPlanSpec* msg) { - return *msg->raw_output_data_config_; -} -const ::google::protobuf::BoolValue& -LaunchPlanSpec::HasBitSetters::interruptible(const LaunchPlanSpec* msg) { - return *msg->interruptible_; -} -const ::flyteidl::admin::Envs& -LaunchPlanSpec::HasBitSetters::envs(const LaunchPlanSpec* msg) { - return *msg->envs_; -} -void LaunchPlanSpec::clear_workflow_id() { - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; -} -void LaunchPlanSpec::clear_default_inputs() { - if (GetArenaNoVirtual() == nullptr && default_inputs_ != nullptr) { - delete default_inputs_; - } - default_inputs_ = nullptr; -} -void LaunchPlanSpec::clear_fixed_inputs() { - if (GetArenaNoVirtual() == nullptr && fixed_inputs_ != nullptr) { - delete fixed_inputs_; - } - fixed_inputs_ = nullptr; -} -void LaunchPlanSpec::clear_labels() { - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; -} -void LaunchPlanSpec::clear_annotations() { - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; -} -void LaunchPlanSpec::clear_auth_role() { - if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { - delete auth_role_; - } - auth_role_ = nullptr; -} -void LaunchPlanSpec::clear_security_context() { - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; -} -void LaunchPlanSpec::clear_quality_of_service() { - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; -} -void LaunchPlanSpec::clear_raw_output_data_config() { - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; -} -void LaunchPlanSpec::clear_interruptible() { - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; -} -void LaunchPlanSpec::clear_envs() { - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanSpec::kWorkflowIdFieldNumber; -const int LaunchPlanSpec::kEntityMetadataFieldNumber; -const int LaunchPlanSpec::kDefaultInputsFieldNumber; -const int LaunchPlanSpec::kFixedInputsFieldNumber; -const int LaunchPlanSpec::kRoleFieldNumber; -const int LaunchPlanSpec::kLabelsFieldNumber; -const int LaunchPlanSpec::kAnnotationsFieldNumber; -const int LaunchPlanSpec::kAuthFieldNumber; -const int LaunchPlanSpec::kAuthRoleFieldNumber; -const int LaunchPlanSpec::kSecurityContextFieldNumber; -const int LaunchPlanSpec::kQualityOfServiceFieldNumber; -const int LaunchPlanSpec::kRawOutputDataConfigFieldNumber; -const int LaunchPlanSpec::kMaxParallelismFieldNumber; -const int LaunchPlanSpec::kInterruptibleFieldNumber; -const int LaunchPlanSpec::kOverwriteCacheFieldNumber; -const int LaunchPlanSpec::kEnvsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanSpec::LaunchPlanSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanSpec) -} -LaunchPlanSpec::LaunchPlanSpec(const LaunchPlanSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.role().size() > 0) { - role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); - } - if (from.has_workflow_id()) { - workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); - } else { - workflow_id_ = nullptr; - } - if (from.has_entity_metadata()) { - entity_metadata_ = new ::flyteidl::admin::LaunchPlanMetadata(*from.entity_metadata_); - } else { - entity_metadata_ = nullptr; - } - if (from.has_default_inputs()) { - default_inputs_ = new ::flyteidl::core::ParameterMap(*from.default_inputs_); - } else { - default_inputs_ = nullptr; - } - if (from.has_fixed_inputs()) { - fixed_inputs_ = new ::flyteidl::core::LiteralMap(*from.fixed_inputs_); - } else { - fixed_inputs_ = nullptr; - } - if (from.has_labels()) { - labels_ = new ::flyteidl::admin::Labels(*from.labels_); - } else { - labels_ = nullptr; - } - if (from.has_annotations()) { - annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); - } else { - annotations_ = nullptr; - } - if (from.has_auth()) { - auth_ = new ::flyteidl::admin::Auth(*from.auth_); - } else { - auth_ = nullptr; - } - if (from.has_auth_role()) { - auth_role_ = new ::flyteidl::admin::AuthRole(*from.auth_role_); - } else { - auth_role_ = nullptr; - } - if (from.has_security_context()) { - security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); - } else { - security_context_ = nullptr; - } - if (from.has_quality_of_service()) { - quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); - } else { - quality_of_service_ = nullptr; - } - if (from.has_raw_output_data_config()) { - raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); - } else { - raw_output_data_config_ = nullptr; - } - if (from.has_interruptible()) { - interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); - } else { - interruptible_ = nullptr; - } - if (from.has_envs()) { - envs_ = new ::flyteidl::admin::Envs(*from.envs_); - } else { - envs_ = nullptr; - } - ::memcpy(&max_parallelism_, &from.max_parallelism_, - static_cast(reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanSpec) -} - -void LaunchPlanSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&workflow_id_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&workflow_id_)) + sizeof(overwrite_cache_)); -} - -LaunchPlanSpec::~LaunchPlanSpec() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanSpec) - SharedDtor(); -} - -void LaunchPlanSpec::SharedDtor() { - role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete workflow_id_; - if (this != internal_default_instance()) delete entity_metadata_; - if (this != internal_default_instance()) delete default_inputs_; - if (this != internal_default_instance()) delete fixed_inputs_; - if (this != internal_default_instance()) delete labels_; - if (this != internal_default_instance()) delete annotations_; - if (this != internal_default_instance()) delete auth_; - if (this != internal_default_instance()) delete auth_role_; - if (this != internal_default_instance()) delete security_context_; - if (this != internal_default_instance()) delete quality_of_service_; - if (this != internal_default_instance()) delete raw_output_data_config_; - if (this != internal_default_instance()) delete interruptible_; - if (this != internal_default_instance()) delete envs_; -} - -void LaunchPlanSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanSpec& LaunchPlanSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanSpec_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && entity_metadata_ != nullptr) { - delete entity_metadata_; - } - entity_metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && default_inputs_ != nullptr) { - delete default_inputs_; - } - default_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && fixed_inputs_ != nullptr) { - delete fixed_inputs_; - } - fixed_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; - if (GetArenaNoVirtual() == nullptr && auth_ != nullptr) { - delete auth_; - } - auth_ = nullptr; - if (GetArenaNoVirtual() == nullptr && auth_role_ != nullptr) { - delete auth_role_; - } - auth_role_ = nullptr; - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; - ::memset(&max_parallelism_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanSpec::_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 workflow_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_workflow_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; - } - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 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::LaunchPlanMetadata::_InternalParse; - object = msg->mutable_entity_metadata(); - 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.core.ParameterMap default_inputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ParameterMap::_InternalParse; - object = msg->mutable_default_inputs(); - 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.core.LiteralMap fixed_inputs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_fixed_inputs(); - 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; - } - // string role = 5 [deprecated = true]; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.LaunchPlanSpec.role"); - object = msg->mutable_role(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Labels labels = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Labels::_InternalParse; - object = msg->mutable_labels(); - 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.Annotations annotations = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; - object = msg->mutable_annotations(); - 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.Auth auth = 8 [deprecated = true]; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Auth::_InternalParse; - object = msg->mutable_auth(); - 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.AuthRole auth_role = 9 [deprecated = true]; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::AuthRole::_InternalParse; - object = msg->mutable_auth_role(); - 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.core.SecurityContext security_context = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; - object = msg->mutable_security_context(); - 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.core.QualityOfService quality_of_service = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; - object = msg->mutable_quality_of_service(); - 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.RawOutputDataConfig raw_output_data_config = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; - object = msg->mutable_raw_output_data_config(); - 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; - } - // int32 max_parallelism = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; - msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.BoolValue interruptible = 19; - case 19: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::BoolValue::_InternalParse; - object = msg->mutable_interruptible(); - 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; - } - // bool overwrite_cache = 20; - case 20: { - if (static_cast<::google::protobuf::uint8>(tag) != 160) goto handle_unusual; - msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.Envs envs = 21; - case 21: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Envs::_InternalParse; - object = msg->mutable_envs(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LaunchPlanSpec::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.LaunchPlanSpec) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.Identifier workflow_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_entity_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ParameterMap default_inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_default_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap fixed_inputs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_fixed_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // string role = 5 [deprecated = true]; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_role())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role().data(), static_cast(this->role().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.LaunchPlanSpec.role")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Labels labels = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_labels())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Annotations annotations = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_annotations())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Auth auth = 8 [deprecated = true]; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_auth())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_auth_role())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SecurityContext security_context = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_security_context())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.QualityOfService quality_of_service = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_quality_of_service())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_output_data_config())); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_parallelism = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_parallelism_))); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.BoolValue interruptible = 19; - case 19: { - if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interruptible())); - } else { - goto handle_unusual; - } - break; - } - - // bool overwrite_cache = 20; - case 20: { - if (static_cast< ::google::protobuf::uint8>(tag) == (160 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &overwrite_cache_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Envs envs = 21; - case 21: { - if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_envs())); - } 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.LaunchPlanSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier workflow_id = 1; - if (this->has_workflow_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_id(this), output); - } - - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - if (this->has_entity_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::entity_metadata(this), output); - } - - // .flyteidl.core.ParameterMap default_inputs = 3; - if (this->has_default_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::default_inputs(this), output); - } - - // .flyteidl.core.LiteralMap fixed_inputs = 4; - if (this->has_fixed_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::fixed_inputs(this), output); - } - - // string role = 5 [deprecated = true]; - if (this->role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role().data(), static_cast(this->role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LaunchPlanSpec.role"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->role(), output); - } - - // .flyteidl.admin.Labels labels = 6; - if (this->has_labels()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::labels(this), output); - } - - // .flyteidl.admin.Annotations annotations = 7; - if (this->has_annotations()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::annotations(this), output); - } - - // .flyteidl.admin.Auth auth = 8 [deprecated = true]; - if (this->has_auth()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::auth(this), output); - } - - // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - if (this->has_auth_role()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::auth_role(this), output); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::security_context(this), output); - } - - // .flyteidl.core.QualityOfService quality_of_service = 16; - if (this->has_quality_of_service()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::quality_of_service(this), output); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - if (this->has_raw_output_data_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::raw_output_data_config(this), output); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->max_parallelism(), output); - } - - // .google.protobuf.BoolValue interruptible = 19; - if (this->has_interruptible()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 19, HasBitSetters::interruptible(this), output); - } - - // bool overwrite_cache = 20; - if (this->overwrite_cache() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(20, this->overwrite_cache(), output); - } - - // .flyteidl.admin.Envs envs = 21; - if (this->has_envs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, HasBitSetters::envs(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.LaunchPlanSpec) -} - -::google::protobuf::uint8* LaunchPlanSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier workflow_id = 1; - if (this->has_workflow_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow_id(this), target); - } - - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - if (this->has_entity_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::entity_metadata(this), target); - } - - // .flyteidl.core.ParameterMap default_inputs = 3; - if (this->has_default_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::default_inputs(this), target); - } - - // .flyteidl.core.LiteralMap fixed_inputs = 4; - if (this->has_fixed_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::fixed_inputs(this), target); - } - - // string role = 5 [deprecated = true]; - if (this->role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->role().data(), static_cast(this->role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.LaunchPlanSpec.role"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->role(), target); - } - - // .flyteidl.admin.Labels labels = 6; - if (this->has_labels()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::labels(this), target); - } - - // .flyteidl.admin.Annotations annotations = 7; - if (this->has_annotations()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::annotations(this), target); - } - - // .flyteidl.admin.Auth auth = 8 [deprecated = true]; - if (this->has_auth()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::auth(this), target); - } - - // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - if (this->has_auth_role()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::auth_role(this), target); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::security_context(this), target); - } - - // .flyteidl.core.QualityOfService quality_of_service = 16; - if (this->has_quality_of_service()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::quality_of_service(this), target); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - if (this->has_raw_output_data_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::raw_output_data_config(this), target); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->max_parallelism(), target); - } - - // .google.protobuf.BoolValue interruptible = 19; - if (this->has_interruptible()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 19, HasBitSetters::interruptible(this), target); - } - - // bool overwrite_cache = 20; - if (this->overwrite_cache() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(20, this->overwrite_cache(), target); - } - - // .flyteidl.admin.Envs envs = 21; - if (this->has_envs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 21, HasBitSetters::envs(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.LaunchPlanSpec) - return target; -} - -size_t LaunchPlanSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanSpec) - 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; - - // string role = 5 [deprecated = true]; - if (this->role().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->role()); - } - - // .flyteidl.core.Identifier workflow_id = 1; - if (this->has_workflow_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_id_); - } - - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - if (this->has_entity_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *entity_metadata_); - } - - // .flyteidl.core.ParameterMap default_inputs = 3; - if (this->has_default_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *default_inputs_); - } - - // .flyteidl.core.LiteralMap fixed_inputs = 4; - if (this->has_fixed_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *fixed_inputs_); - } - - // .flyteidl.admin.Labels labels = 6; - if (this->has_labels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *labels_); - } - - // .flyteidl.admin.Annotations annotations = 7; - if (this->has_annotations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *annotations_); - } - - // .flyteidl.admin.Auth auth = 8 [deprecated = true]; - if (this->has_auth()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *auth_); - } - - // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - if (this->has_auth_role()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *auth_role_); - } - - // .flyteidl.core.SecurityContext security_context = 10; - if (this->has_security_context()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *security_context_); - } - - // .flyteidl.core.QualityOfService quality_of_service = 16; - if (this->has_quality_of_service()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *quality_of_service_); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - if (this->has_raw_output_data_config()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_output_data_config_); - } - - // .google.protobuf.BoolValue interruptible = 19; - if (this->has_interruptible()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interruptible_); - } - - // .flyteidl.admin.Envs envs = 21; - if (this->has_envs()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *envs_); - } - - // int32 max_parallelism = 18; - if (this->max_parallelism() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_parallelism()); - } - - // bool overwrite_cache = 20; - if (this->overwrite_cache() != 0) { - total_size += 2 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanSpec) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanSpec) - MergeFrom(*source); - } -} - -void LaunchPlanSpec::MergeFrom(const LaunchPlanSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.role().size() > 0) { - - role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_); - } - if (from.has_workflow_id()) { - mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); - } - if (from.has_entity_metadata()) { - mutable_entity_metadata()->::flyteidl::admin::LaunchPlanMetadata::MergeFrom(from.entity_metadata()); - } - if (from.has_default_inputs()) { - mutable_default_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.default_inputs()); - } - if (from.has_fixed_inputs()) { - mutable_fixed_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.fixed_inputs()); - } - if (from.has_labels()) { - mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); - } - if (from.has_annotations()) { - mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); - } - if (from.has_auth()) { - mutable_auth()->::flyteidl::admin::Auth::MergeFrom(from.auth()); - } - if (from.has_auth_role()) { - mutable_auth_role()->::flyteidl::admin::AuthRole::MergeFrom(from.auth_role()); - } - if (from.has_security_context()) { - mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); - } - if (from.has_quality_of_service()) { - mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); - } - if (from.has_raw_output_data_config()) { - mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); - } - if (from.has_interruptible()) { - mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); - } - if (from.has_envs()) { - mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); - } - if (from.max_parallelism() != 0) { - set_max_parallelism(from.max_parallelism()); - } - if (from.overwrite_cache() != 0) { - set_overwrite_cache(from.overwrite_cache()); - } -} - -void LaunchPlanSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanSpec::CopyFrom(const LaunchPlanSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanSpec::IsInitialized() const { - return true; -} - -void LaunchPlanSpec::Swap(LaunchPlanSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanSpec::InternalSwap(LaunchPlanSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - role_.Swap(&other->role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(workflow_id_, other->workflow_id_); - swap(entity_metadata_, other->entity_metadata_); - swap(default_inputs_, other->default_inputs_); - swap(fixed_inputs_, other->fixed_inputs_); - swap(labels_, other->labels_); - swap(annotations_, other->annotations_); - swap(auth_, other->auth_); - swap(auth_role_, other->auth_role_); - swap(security_context_, other->security_context_); - swap(quality_of_service_, other->quality_of_service_); - swap(raw_output_data_config_, other->raw_output_data_config_); - swap(interruptible_, other->interruptible_); - swap(envs_, other->envs_); - swap(max_parallelism_, other->max_parallelism_); - swap(overwrite_cache_, other->overwrite_cache_); -} - -::google::protobuf::Metadata LaunchPlanSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( - ::flyteidl::core::ParameterMap::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->expected_outputs_ = const_cast< ::flyteidl::core::VariableMap*>( - ::flyteidl::core::VariableMap::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class LaunchPlanClosure::HasBitSetters { - public: - static const ::flyteidl::core::ParameterMap& expected_inputs(const LaunchPlanClosure* msg); - static const ::flyteidl::core::VariableMap& expected_outputs(const LaunchPlanClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const LaunchPlanClosure* msg); - static const ::google::protobuf::Timestamp& updated_at(const LaunchPlanClosure* msg); -}; - -const ::flyteidl::core::ParameterMap& -LaunchPlanClosure::HasBitSetters::expected_inputs(const LaunchPlanClosure* msg) { - return *msg->expected_inputs_; -} -const ::flyteidl::core::VariableMap& -LaunchPlanClosure::HasBitSetters::expected_outputs(const LaunchPlanClosure* msg) { - return *msg->expected_outputs_; -} -const ::google::protobuf::Timestamp& -LaunchPlanClosure::HasBitSetters::created_at(const LaunchPlanClosure* msg) { - return *msg->created_at_; -} -const ::google::protobuf::Timestamp& -LaunchPlanClosure::HasBitSetters::updated_at(const LaunchPlanClosure* msg) { - return *msg->updated_at_; -} -void LaunchPlanClosure::clear_expected_inputs() { - if (GetArenaNoVirtual() == nullptr && expected_inputs_ != nullptr) { - delete expected_inputs_; - } - expected_inputs_ = nullptr; -} -void LaunchPlanClosure::clear_expected_outputs() { - if (GetArenaNoVirtual() == nullptr && expected_outputs_ != nullptr) { - delete expected_outputs_; - } - expected_outputs_ = nullptr; -} -void LaunchPlanClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -void LaunchPlanClosure::clear_updated_at() { - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanClosure::kStateFieldNumber; -const int LaunchPlanClosure::kExpectedInputsFieldNumber; -const int LaunchPlanClosure::kExpectedOutputsFieldNumber; -const int LaunchPlanClosure::kCreatedAtFieldNumber; -const int LaunchPlanClosure::kUpdatedAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanClosure::LaunchPlanClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanClosure) -} -LaunchPlanClosure::LaunchPlanClosure(const LaunchPlanClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_expected_inputs()) { - expected_inputs_ = new ::flyteidl::core::ParameterMap(*from.expected_inputs_); - } else { - expected_inputs_ = nullptr; - } - if (from.has_expected_outputs()) { - expected_outputs_ = new ::flyteidl::core::VariableMap(*from.expected_outputs_); - } else { - expected_outputs_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - if (from.has_updated_at()) { - updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); - } else { - updated_at_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanClosure) -} - -void LaunchPlanClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::memset(&expected_inputs_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&expected_inputs_)) + sizeof(state_)); -} - -LaunchPlanClosure::~LaunchPlanClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanClosure) - SharedDtor(); -} - -void LaunchPlanClosure::SharedDtor() { - if (this != internal_default_instance()) delete expected_inputs_; - if (this != internal_default_instance()) delete expected_outputs_; - if (this != internal_default_instance()) delete created_at_; - if (this != internal_default_instance()) delete updated_at_; -} - -void LaunchPlanClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanClosure& LaunchPlanClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanClosure_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && expected_inputs_ != nullptr) { - delete expected_inputs_; - } - expected_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && expected_outputs_ != nullptr) { - delete expected_outputs_; - } - expected_outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanClosure::_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.LaunchPlanState state = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::LaunchPlanState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.ParameterMap expected_inputs = 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::core::ParameterMap::_InternalParse; - object = msg->mutable_expected_inputs(); - 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.core.VariableMap expected_outputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::VariableMap::_InternalParse; - object = msg->mutable_expected_outputs(); - 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; - } - // .google.protobuf.Timestamp created_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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; - } - // .google.protobuf.Timestamp updated_at = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_updated_at(); - 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 LaunchPlanClosure::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.LaunchPlanClosure) - 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.LaunchPlanState state = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ParameterMap expected_inputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expected_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.VariableMap expected_outputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expected_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp updated_at = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_updated_at())); - } 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.LaunchPlanClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LaunchPlanState state = 1; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->state(), output); - } - - // .flyteidl.core.ParameterMap expected_inputs = 2; - if (this->has_expected_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expected_inputs(this), output); - } - - // .flyteidl.core.VariableMap expected_outputs = 3; - if (this->has_expected_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::expected_outputs(this), output); - } - - // .google.protobuf.Timestamp created_at = 4; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::created_at(this), output); - } - - // .google.protobuf.Timestamp updated_at = 5; - if (this->has_updated_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::updated_at(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.LaunchPlanClosure) -} - -::google::protobuf::uint8* LaunchPlanClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LaunchPlanState state = 1; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->state(), target); - } - - // .flyteidl.core.ParameterMap expected_inputs = 2; - if (this->has_expected_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expected_inputs(this), target); - } - - // .flyteidl.core.VariableMap expected_outputs = 3; - if (this->has_expected_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::expected_outputs(this), target); - } - - // .google.protobuf.Timestamp created_at = 4; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::created_at(this), target); - } - - // .google.protobuf.Timestamp updated_at = 5; - if (this->has_updated_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::updated_at(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.LaunchPlanClosure) - return target; -} - -size_t LaunchPlanClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanClosure) - 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.ParameterMap expected_inputs = 2; - if (this->has_expected_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expected_inputs_); - } - - // .flyteidl.core.VariableMap expected_outputs = 3; - if (this->has_expected_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expected_outputs_); - } - - // .google.protobuf.Timestamp created_at = 4; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - // .google.protobuf.Timestamp updated_at = 5; - if (this->has_updated_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *updated_at_); - } - - // .flyteidl.admin.LaunchPlanState state = 1; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanClosure) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanClosure) - MergeFrom(*source); - } -} - -void LaunchPlanClosure::MergeFrom(const LaunchPlanClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanClosure) - 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_expected_inputs()) { - mutable_expected_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.expected_inputs()); - } - if (from.has_expected_outputs()) { - mutable_expected_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.expected_outputs()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } - if (from.has_updated_at()) { - mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void LaunchPlanClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanClosure::CopyFrom(const LaunchPlanClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanClosure::IsInitialized() const { - return true; -} - -void LaunchPlanClosure::Swap(LaunchPlanClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanClosure::InternalSwap(LaunchPlanClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(expected_inputs_, other->expected_inputs_); - swap(expected_outputs_, other->expected_outputs_); - swap(created_at_, other->created_at_); - swap(updated_at_, other->updated_at_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata LaunchPlanClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlanMetadata_default_instance_._instance.get_mutable()->schedule_ = const_cast< ::flyteidl::admin::Schedule*>( - ::flyteidl::admin::Schedule::internal_default_instance()); - ::flyteidl::admin::_LaunchPlanMetadata_default_instance_._instance.get_mutable()->launch_conditions_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -class LaunchPlanMetadata::HasBitSetters { - public: - static const ::flyteidl::admin::Schedule& schedule(const LaunchPlanMetadata* msg); - static const ::google::protobuf::Any& launch_conditions(const LaunchPlanMetadata* msg); -}; - -const ::flyteidl::admin::Schedule& -LaunchPlanMetadata::HasBitSetters::schedule(const LaunchPlanMetadata* msg) { - return *msg->schedule_; -} -const ::google::protobuf::Any& -LaunchPlanMetadata::HasBitSetters::launch_conditions(const LaunchPlanMetadata* msg) { - return *msg->launch_conditions_; -} -void LaunchPlanMetadata::clear_schedule() { - if (GetArenaNoVirtual() == nullptr && schedule_ != nullptr) { - delete schedule_; - } - schedule_ = nullptr; -} -void LaunchPlanMetadata::clear_notifications() { - notifications_.Clear(); -} -void LaunchPlanMetadata::clear_launch_conditions() { - if (GetArenaNoVirtual() == nullptr && launch_conditions_ != nullptr) { - delete launch_conditions_; - } - launch_conditions_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanMetadata::kScheduleFieldNumber; -const int LaunchPlanMetadata::kNotificationsFieldNumber; -const int LaunchPlanMetadata::kLaunchConditionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanMetadata::LaunchPlanMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanMetadata) -} -LaunchPlanMetadata::LaunchPlanMetadata(const LaunchPlanMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - notifications_(from.notifications_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_schedule()) { - schedule_ = new ::flyteidl::admin::Schedule(*from.schedule_); - } else { - schedule_ = nullptr; - } - if (from.has_launch_conditions()) { - launch_conditions_ = new ::google::protobuf::Any(*from.launch_conditions_); - } else { - launch_conditions_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanMetadata) -} - -void LaunchPlanMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::memset(&schedule_, 0, static_cast( - reinterpret_cast(&launch_conditions_) - - reinterpret_cast(&schedule_)) + sizeof(launch_conditions_)); -} - -LaunchPlanMetadata::~LaunchPlanMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanMetadata) - SharedDtor(); -} - -void LaunchPlanMetadata::SharedDtor() { - if (this != internal_default_instance()) delete schedule_; - if (this != internal_default_instance()) delete launch_conditions_; -} - -void LaunchPlanMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanMetadata& LaunchPlanMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanMetadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - notifications_.Clear(); - if (GetArenaNoVirtual() == nullptr && schedule_ != nullptr) { - delete schedule_; - } - schedule_ = nullptr; - if (GetArenaNoVirtual() == nullptr && launch_conditions_ != nullptr) { - delete launch_conditions_; - } - launch_conditions_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanMetadata::_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.Schedule schedule = 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::Schedule::_InternalParse; - object = msg->mutable_schedule(); - 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; - } - // repeated .flyteidl.admin.Notification notifications = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Notification::_InternalParse; - object = msg->add_notifications(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // .google.protobuf.Any launch_conditions = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Any::_InternalParse; - object = msg->mutable_launch_conditions(); - 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 LaunchPlanMetadata::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.LaunchPlanMetadata) - 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.Schedule schedule = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_schedule())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.admin.Notification notifications = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_notifications())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any launch_conditions = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_conditions())); - } 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.LaunchPlanMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Schedule schedule = 1; - if (this->has_schedule()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::schedule(this), output); - } - - // repeated .flyteidl.admin.Notification notifications = 2; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->notifications(static_cast(i)), - output); - } - - // .google.protobuf.Any launch_conditions = 3; - if (this->has_launch_conditions()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::launch_conditions(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.LaunchPlanMetadata) -} - -::google::protobuf::uint8* LaunchPlanMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Schedule schedule = 1; - if (this->has_schedule()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::schedule(this), target); - } - - // repeated .flyteidl.admin.Notification notifications = 2; - for (unsigned int i = 0, - n = static_cast(this->notifications_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->notifications(static_cast(i)), target); - } - - // .google.protobuf.Any launch_conditions = 3; - if (this->has_launch_conditions()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::launch_conditions(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.LaunchPlanMetadata) - return target; -} - -size_t LaunchPlanMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanMetadata) - 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; - - // repeated .flyteidl.admin.Notification notifications = 2; - { - unsigned int count = static_cast(this->notifications_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->notifications(static_cast(i))); - } - } - - // .flyteidl.admin.Schedule schedule = 1; - if (this->has_schedule()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *schedule_); - } - - // .google.protobuf.Any launch_conditions = 3; - if (this->has_launch_conditions()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launch_conditions_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanMetadata) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanMetadata) - MergeFrom(*source); - } -} - -void LaunchPlanMetadata::MergeFrom(const LaunchPlanMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - notifications_.MergeFrom(from.notifications_); - if (from.has_schedule()) { - mutable_schedule()->::flyteidl::admin::Schedule::MergeFrom(from.schedule()); - } - if (from.has_launch_conditions()) { - mutable_launch_conditions()->::google::protobuf::Any::MergeFrom(from.launch_conditions()); - } -} - -void LaunchPlanMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanMetadata::CopyFrom(const LaunchPlanMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanMetadata::IsInitialized() const { - return true; -} - -void LaunchPlanMetadata::Swap(LaunchPlanMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanMetadata::InternalSwap(LaunchPlanMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(¬ifications_)->InternalSwap(CastToBase(&other->notifications_)); - swap(schedule_, other->schedule_); - swap(launch_conditions_, other->launch_conditions_); -} - -::google::protobuf::Metadata LaunchPlanMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_LaunchPlanUpdateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class LaunchPlanUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const LaunchPlanUpdateRequest* msg); -}; - -const ::flyteidl::core::Identifier& -LaunchPlanUpdateRequest::HasBitSetters::id(const LaunchPlanUpdateRequest* msg) { - return *msg->id_; -} -void LaunchPlanUpdateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LaunchPlanUpdateRequest::kIdFieldNumber; -const int LaunchPlanUpdateRequest::kStateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanUpdateRequest::LaunchPlanUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateRequest) -} -LaunchPlanUpdateRequest::LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& 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; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateRequest) -} - -void LaunchPlanUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&id_)) + sizeof(state_)); -} - -LaunchPlanUpdateRequest::~LaunchPlanUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateRequest) - SharedDtor(); -} - -void LaunchPlanUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void LaunchPlanUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanUpdateRequest& LaunchPlanUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanUpdateRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateRequest) - ::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; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanUpdateRequest::_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; - } - // .flyteidl.admin.LaunchPlanState state = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::LaunchPlanState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 LaunchPlanUpdateRequest::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.LaunchPlanUpdateRequest) - 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; - } - - // .flyteidl.admin.LaunchPlanState state = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::LaunchPlanState >(value)); - } 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.LaunchPlanUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateRequest) - ::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); - } - - // .flyteidl.admin.LaunchPlanState state = 2; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->state(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateRequest) -} - -::google::protobuf::uint8* LaunchPlanUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateRequest) - ::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); - } - - // .flyteidl.admin.LaunchPlanState state = 2; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->state(), 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.LaunchPlanUpdateRequest) - return target; -} - -size_t LaunchPlanUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateRequest) - 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_); - } - - // .flyteidl.admin.LaunchPlanState state = 2; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateRequest) - MergeFrom(*source); - } -} - -void LaunchPlanUpdateRequest::MergeFrom(const LaunchPlanUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateRequest) - 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()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void LaunchPlanUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanUpdateRequest::CopyFrom(const LaunchPlanUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanUpdateRequest::IsInitialized() const { - return true; -} - -void LaunchPlanUpdateRequest::Swap(LaunchPlanUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanUpdateRequest::InternalSwap(LaunchPlanUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata LaunchPlanUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LaunchPlanUpdateResponse::InitAsDefaultInstance() { -} -class LaunchPlanUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LaunchPlanUpdateResponse::LaunchPlanUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.LaunchPlanUpdateResponse) -} -LaunchPlanUpdateResponse::LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.LaunchPlanUpdateResponse) -} - -void LaunchPlanUpdateResponse::SharedCtor() { -} - -LaunchPlanUpdateResponse::~LaunchPlanUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.LaunchPlanUpdateResponse) - SharedDtor(); -} - -void LaunchPlanUpdateResponse::SharedDtor() { -} - -void LaunchPlanUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LaunchPlanUpdateResponse& LaunchPlanUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LaunchPlanUpdateResponse_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void LaunchPlanUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.LaunchPlanUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LaunchPlanUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LaunchPlanUpdateResponse::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.LaunchPlanUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.LaunchPlanUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.LaunchPlanUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LaunchPlanUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.LaunchPlanUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.LaunchPlanUpdateResponse) -} - -::google::protobuf::uint8* LaunchPlanUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.LaunchPlanUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.LaunchPlanUpdateResponse) - return target; -} - -size_t LaunchPlanUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.LaunchPlanUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LaunchPlanUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const LaunchPlanUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.LaunchPlanUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.LaunchPlanUpdateResponse) - MergeFrom(*source); - } -} - -void LaunchPlanUpdateResponse::MergeFrom(const LaunchPlanUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.LaunchPlanUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void LaunchPlanUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LaunchPlanUpdateResponse::CopyFrom(const LaunchPlanUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.LaunchPlanUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LaunchPlanUpdateResponse::IsInitialized() const { - return true; -} - -void LaunchPlanUpdateResponse::Swap(LaunchPlanUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void LaunchPlanUpdateResponse::InternalSwap(LaunchPlanUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata LaunchPlanUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ActiveLaunchPlanRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ActiveLaunchPlanRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::admin::NamedEntityIdentifier*>( - ::flyteidl::admin::NamedEntityIdentifier::internal_default_instance()); -} -class ActiveLaunchPlanRequest::HasBitSetters { - public: - static const ::flyteidl::admin::NamedEntityIdentifier& id(const ActiveLaunchPlanRequest* msg); -}; - -const ::flyteidl::admin::NamedEntityIdentifier& -ActiveLaunchPlanRequest::HasBitSetters::id(const ActiveLaunchPlanRequest* msg) { - return *msg->id_; -} -void ActiveLaunchPlanRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ActiveLaunchPlanRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ActiveLaunchPlanRequest::ActiveLaunchPlanRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ActiveLaunchPlanRequest) -} -ActiveLaunchPlanRequest::ActiveLaunchPlanRequest(const ActiveLaunchPlanRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::admin::NamedEntityIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ActiveLaunchPlanRequest) -} - -void ActiveLaunchPlanRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - id_ = nullptr; -} - -ActiveLaunchPlanRequest::~ActiveLaunchPlanRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ActiveLaunchPlanRequest) - SharedDtor(); -} - -void ActiveLaunchPlanRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void ActiveLaunchPlanRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ActiveLaunchPlanRequest& ActiveLaunchPlanRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ActiveLaunchPlanRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void ActiveLaunchPlanRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ActiveLaunchPlanRequest) - ::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* ActiveLaunchPlanRequest::_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.NamedEntityIdentifier 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::admin::NamedEntityIdentifier::_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 ActiveLaunchPlanRequest::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.ActiveLaunchPlanRequest) - 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.NamedEntityIdentifier 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.ActiveLaunchPlanRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ActiveLaunchPlanRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ActiveLaunchPlanRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ActiveLaunchPlanRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.NamedEntityIdentifier 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.ActiveLaunchPlanRequest) -} - -::google::protobuf::uint8* ActiveLaunchPlanRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ActiveLaunchPlanRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.NamedEntityIdentifier 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.ActiveLaunchPlanRequest) - return target; -} - -size_t ActiveLaunchPlanRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ActiveLaunchPlanRequest) - 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.admin.NamedEntityIdentifier 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 ActiveLaunchPlanRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ActiveLaunchPlanRequest) - GOOGLE_DCHECK_NE(&from, this); - const ActiveLaunchPlanRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ActiveLaunchPlanRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ActiveLaunchPlanRequest) - MergeFrom(*source); - } -} - -void ActiveLaunchPlanRequest::MergeFrom(const ActiveLaunchPlanRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ActiveLaunchPlanRequest) - 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::admin::NamedEntityIdentifier::MergeFrom(from.id()); - } -} - -void ActiveLaunchPlanRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ActiveLaunchPlanRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ActiveLaunchPlanRequest::CopyFrom(const ActiveLaunchPlanRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ActiveLaunchPlanRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ActiveLaunchPlanRequest::IsInitialized() const { - return true; -} - -void ActiveLaunchPlanRequest::Swap(ActiveLaunchPlanRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ActiveLaunchPlanRequest::InternalSwap(ActiveLaunchPlanRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata ActiveLaunchPlanRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ActiveLaunchPlanListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ActiveLaunchPlanListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class ActiveLaunchPlanListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::Sort& sort_by(const ActiveLaunchPlanListRequest* msg); -}; - -const ::flyteidl::admin::Sort& -ActiveLaunchPlanListRequest::HasBitSetters::sort_by(const ActiveLaunchPlanListRequest* msg) { - return *msg->sort_by_; -} -void ActiveLaunchPlanListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ActiveLaunchPlanListRequest::kProjectFieldNumber; -const int ActiveLaunchPlanListRequest::kDomainFieldNumber; -const int ActiveLaunchPlanListRequest::kLimitFieldNumber; -const int ActiveLaunchPlanListRequest::kTokenFieldNumber; -const int ActiveLaunchPlanListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ActiveLaunchPlanListRequest::ActiveLaunchPlanListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ActiveLaunchPlanListRequest) -} -ActiveLaunchPlanListRequest::ActiveLaunchPlanListRequest(const ActiveLaunchPlanListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ActiveLaunchPlanListRequest) -} - -void ActiveLaunchPlanListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&sort_by_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&sort_by_)) + sizeof(limit_)); -} - -ActiveLaunchPlanListRequest::~ActiveLaunchPlanListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ActiveLaunchPlanListRequest) - SharedDtor(); -} - -void ActiveLaunchPlanListRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete sort_by_; -} - -void ActiveLaunchPlanListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ActiveLaunchPlanListRequest& ActiveLaunchPlanListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ActiveLaunchPlanListRequest_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base); - return *internal_default_instance(); -} - - -void ActiveLaunchPlanListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ActiveLaunchPlanListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ActiveLaunchPlanListRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 limit = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ActiveLaunchPlanListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ActiveLaunchPlanListRequest::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.ActiveLaunchPlanListRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ActiveLaunchPlanListRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ActiveLaunchPlanListRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ActiveLaunchPlanListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.ActiveLaunchPlanListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ActiveLaunchPlanListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ActiveLaunchPlanListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ActiveLaunchPlanListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->limit(), output); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->token(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(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.ActiveLaunchPlanListRequest) -} - -::google::protobuf::uint8* ActiveLaunchPlanListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ActiveLaunchPlanListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->limit(), target); - } - - // string token = 4; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ActiveLaunchPlanListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->token(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(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.ActiveLaunchPlanListRequest) - return target; -} - -size_t ActiveLaunchPlanListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ActiveLaunchPlanListRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string token = 4; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 3; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ActiveLaunchPlanListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) - GOOGLE_DCHECK_NE(&from, this); - const ActiveLaunchPlanListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ActiveLaunchPlanListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ActiveLaunchPlanListRequest) - MergeFrom(*source); - } -} - -void ActiveLaunchPlanListRequest::MergeFrom(const ActiveLaunchPlanListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void ActiveLaunchPlanListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ActiveLaunchPlanListRequest::CopyFrom(const ActiveLaunchPlanListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ActiveLaunchPlanListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ActiveLaunchPlanListRequest::IsInitialized() const { - return true; -} - -void ActiveLaunchPlanListRequest::Swap(ActiveLaunchPlanListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ActiveLaunchPlanListRequest::InternalSwap(ActiveLaunchPlanListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata ActiveLaunchPlanListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2flaunch_5fplan_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2flaunch_5fplan_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanCreateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanCreateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanCreateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlan* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlan >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlan >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanList* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Auth* Arena::CreateMaybeMessage< ::flyteidl::admin::Auth >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Auth >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanClosure >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::LaunchPlanUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::LaunchPlanUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::LaunchPlanUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ActiveLaunchPlanRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ActiveLaunchPlanRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ActiveLaunchPlanRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ActiveLaunchPlanListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ActiveLaunchPlanListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ActiveLaunchPlanListRequest >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h deleted file mode 100644 index 27e0deca98..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/launch_plan.pb.h +++ /dev/null @@ -1,3685 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/launch_plan.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/security.pb.h" -#include "flyteidl/admin/schedule.pb.h" -#include "flyteidl/admin/common.pb.h" -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[12] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto(); -namespace flyteidl { -namespace admin { -class ActiveLaunchPlanListRequest; -class ActiveLaunchPlanListRequestDefaultTypeInternal; -extern ActiveLaunchPlanListRequestDefaultTypeInternal _ActiveLaunchPlanListRequest_default_instance_; -class ActiveLaunchPlanRequest; -class ActiveLaunchPlanRequestDefaultTypeInternal; -extern ActiveLaunchPlanRequestDefaultTypeInternal _ActiveLaunchPlanRequest_default_instance_; -class Auth; -class AuthDefaultTypeInternal; -extern AuthDefaultTypeInternal _Auth_default_instance_; -class LaunchPlan; -class LaunchPlanDefaultTypeInternal; -extern LaunchPlanDefaultTypeInternal _LaunchPlan_default_instance_; -class LaunchPlanClosure; -class LaunchPlanClosureDefaultTypeInternal; -extern LaunchPlanClosureDefaultTypeInternal _LaunchPlanClosure_default_instance_; -class LaunchPlanCreateRequest; -class LaunchPlanCreateRequestDefaultTypeInternal; -extern LaunchPlanCreateRequestDefaultTypeInternal _LaunchPlanCreateRequest_default_instance_; -class LaunchPlanCreateResponse; -class LaunchPlanCreateResponseDefaultTypeInternal; -extern LaunchPlanCreateResponseDefaultTypeInternal _LaunchPlanCreateResponse_default_instance_; -class LaunchPlanList; -class LaunchPlanListDefaultTypeInternal; -extern LaunchPlanListDefaultTypeInternal _LaunchPlanList_default_instance_; -class LaunchPlanMetadata; -class LaunchPlanMetadataDefaultTypeInternal; -extern LaunchPlanMetadataDefaultTypeInternal _LaunchPlanMetadata_default_instance_; -class LaunchPlanSpec; -class LaunchPlanSpecDefaultTypeInternal; -extern LaunchPlanSpecDefaultTypeInternal _LaunchPlanSpec_default_instance_; -class LaunchPlanUpdateRequest; -class LaunchPlanUpdateRequestDefaultTypeInternal; -extern LaunchPlanUpdateRequestDefaultTypeInternal _LaunchPlanUpdateRequest_default_instance_; -class LaunchPlanUpdateResponse; -class LaunchPlanUpdateResponseDefaultTypeInternal; -extern LaunchPlanUpdateResponseDefaultTypeInternal _LaunchPlanUpdateResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::ActiveLaunchPlanListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ActiveLaunchPlanListRequest>(Arena*); -template<> ::flyteidl::admin::ActiveLaunchPlanRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ActiveLaunchPlanRequest>(Arena*); -template<> ::flyteidl::admin::Auth* Arena::CreateMaybeMessage<::flyteidl::admin::Auth>(Arena*); -template<> ::flyteidl::admin::LaunchPlan* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlan>(Arena*); -template<> ::flyteidl::admin::LaunchPlanClosure* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanClosure>(Arena*); -template<> ::flyteidl::admin::LaunchPlanCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanCreateRequest>(Arena*); -template<> ::flyteidl::admin::LaunchPlanCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanCreateResponse>(Arena*); -template<> ::flyteidl::admin::LaunchPlanList* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanList>(Arena*); -template<> ::flyteidl::admin::LaunchPlanMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanMetadata>(Arena*); -template<> ::flyteidl::admin::LaunchPlanSpec* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(Arena*); -template<> ::flyteidl::admin::LaunchPlanUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanUpdateRequest>(Arena*); -template<> ::flyteidl::admin::LaunchPlanUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::LaunchPlanUpdateResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum LaunchPlanState { - INACTIVE = 0, - ACTIVE = 1, - LaunchPlanState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - LaunchPlanState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool LaunchPlanState_IsValid(int value); -const LaunchPlanState LaunchPlanState_MIN = INACTIVE; -const LaunchPlanState LaunchPlanState_MAX = ACTIVE; -const int LaunchPlanState_ARRAYSIZE = LaunchPlanState_MAX + 1; - -const ::google::protobuf::EnumDescriptor* LaunchPlanState_descriptor(); -inline const ::std::string& LaunchPlanState_Name(LaunchPlanState value) { - return ::google::protobuf::internal::NameOfEnum( - LaunchPlanState_descriptor(), value); -} -inline bool LaunchPlanState_Parse( - const ::std::string& name, LaunchPlanState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - LaunchPlanState_descriptor(), name, value); -} -// =================================================================== - -class LaunchPlanCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateRequest) */ { - public: - LaunchPlanCreateRequest(); - virtual ~LaunchPlanCreateRequest(); - - LaunchPlanCreateRequest(const LaunchPlanCreateRequest& from); - - inline LaunchPlanCreateRequest& operator=(const LaunchPlanCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanCreateRequest(LaunchPlanCreateRequest&& from) noexcept - : LaunchPlanCreateRequest() { - *this = ::std::move(from); - } - - inline LaunchPlanCreateRequest& operator=(LaunchPlanCreateRequest&& 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 LaunchPlanCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(LaunchPlanCreateRequest* other); - friend void swap(LaunchPlanCreateRequest& a, LaunchPlanCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanCreateRequest* 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 LaunchPlanCreateRequest& from); - void MergeFrom(const LaunchPlanCreateRequest& 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(LaunchPlanCreateRequest* 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); - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::admin::LaunchPlanSpec& spec() const; - ::flyteidl::admin::LaunchPlanSpec* release_spec(); - ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::LaunchPlanSpec* spec_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanCreateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanCreateResponse) */ { - public: - LaunchPlanCreateResponse(); - virtual ~LaunchPlanCreateResponse(); - - LaunchPlanCreateResponse(const LaunchPlanCreateResponse& from); - - inline LaunchPlanCreateResponse& operator=(const LaunchPlanCreateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanCreateResponse(LaunchPlanCreateResponse&& from) noexcept - : LaunchPlanCreateResponse() { - *this = ::std::move(from); - } - - inline LaunchPlanCreateResponse& operator=(LaunchPlanCreateResponse&& 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 LaunchPlanCreateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanCreateResponse* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanCreateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(LaunchPlanCreateResponse* other); - friend void swap(LaunchPlanCreateResponse& a, LaunchPlanCreateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanCreateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanCreateResponse* 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 LaunchPlanCreateResponse& from); - void MergeFrom(const LaunchPlanCreateResponse& 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(LaunchPlanCreateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlan final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlan) */ { - public: - LaunchPlan(); - virtual ~LaunchPlan(); - - LaunchPlan(const LaunchPlan& from); - - inline LaunchPlan& operator=(const LaunchPlan& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlan(LaunchPlan&& from) noexcept - : LaunchPlan() { - *this = ::std::move(from); - } - - inline LaunchPlan& operator=(LaunchPlan&& 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 LaunchPlan& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlan* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlan_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(LaunchPlan* other); - friend void swap(LaunchPlan& a, LaunchPlan& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlan* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlan* 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 LaunchPlan& from); - void MergeFrom(const LaunchPlan& 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(LaunchPlan* 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); - - // .flyteidl.admin.LaunchPlanSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::admin::LaunchPlanSpec& spec() const; - ::flyteidl::admin::LaunchPlanSpec* release_spec(); - ::flyteidl::admin::LaunchPlanSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec); - - // .flyteidl.admin.LaunchPlanClosure closure = 3; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 3; - const ::flyteidl::admin::LaunchPlanClosure& closure() const; - ::flyteidl::admin::LaunchPlanClosure* release_closure(); - ::flyteidl::admin::LaunchPlanClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::LaunchPlanSpec* spec_; - ::flyteidl::admin::LaunchPlanClosure* closure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanList) */ { - public: - LaunchPlanList(); - virtual ~LaunchPlanList(); - - LaunchPlanList(const LaunchPlanList& from); - - inline LaunchPlanList& operator=(const LaunchPlanList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanList(LaunchPlanList&& from) noexcept - : LaunchPlanList() { - *this = ::std::move(from); - } - - inline LaunchPlanList& operator=(LaunchPlanList&& 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 LaunchPlanList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanList* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(LaunchPlanList* other); - friend void swap(LaunchPlanList& a, LaunchPlanList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanList* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanList* 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 LaunchPlanList& from); - void MergeFrom(const LaunchPlanList& 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(LaunchPlanList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - int launch_plans_size() const; - void clear_launch_plans(); - static const int kLaunchPlansFieldNumber = 1; - ::flyteidl::admin::LaunchPlan* mutable_launch_plans(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* - mutable_launch_plans(); - const ::flyteidl::admin::LaunchPlan& launch_plans(int index) const; - ::flyteidl::admin::LaunchPlan* add_launch_plans(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& - launch_plans() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan > launch_plans_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class Auth final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Auth) */ { - public: - Auth(); - virtual ~Auth(); - - Auth(const Auth& from); - - inline Auth& operator=(const Auth& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Auth(Auth&& from) noexcept - : Auth() { - *this = ::std::move(from); - } - - inline Auth& operator=(Auth&& 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 Auth& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Auth* internal_default_instance() { - return reinterpret_cast( - &_Auth_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(Auth* other); - friend void swap(Auth& a, Auth& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Auth* New() const final { - return CreateMaybeMessage(nullptr); - } - - Auth* 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 Auth& from); - void MergeFrom(const Auth& 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(Auth* 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 ------------------------------------------------------- - - // string assumable_iam_role = 1; - void clear_assumable_iam_role(); - static const int kAssumableIamRoleFieldNumber = 1; - const ::std::string& assumable_iam_role() const; - void set_assumable_iam_role(const ::std::string& value); - #if LANG_CXX11 - void set_assumable_iam_role(::std::string&& value); - #endif - void set_assumable_iam_role(const char* value); - void set_assumable_iam_role(const char* value, size_t size); - ::std::string* mutable_assumable_iam_role(); - ::std::string* release_assumable_iam_role(); - void set_allocated_assumable_iam_role(::std::string* assumable_iam_role); - - // string kubernetes_service_account = 2; - void clear_kubernetes_service_account(); - static const int kKubernetesServiceAccountFieldNumber = 2; - const ::std::string& kubernetes_service_account() const; - void set_kubernetes_service_account(const ::std::string& value); - #if LANG_CXX11 - void set_kubernetes_service_account(::std::string&& value); - #endif - void set_kubernetes_service_account(const char* value); - void set_kubernetes_service_account(const char* value, size_t size); - ::std::string* mutable_kubernetes_service_account(); - ::std::string* release_kubernetes_service_account(); - void set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr assumable_iam_role_; - ::google::protobuf::internal::ArenaStringPtr kubernetes_service_account_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanSpec) */ { - public: - LaunchPlanSpec(); - virtual ~LaunchPlanSpec(); - - LaunchPlanSpec(const LaunchPlanSpec& from); - - inline LaunchPlanSpec& operator=(const LaunchPlanSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanSpec(LaunchPlanSpec&& from) noexcept - : LaunchPlanSpec() { - *this = ::std::move(from); - } - - inline LaunchPlanSpec& operator=(LaunchPlanSpec&& 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 LaunchPlanSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanSpec* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(LaunchPlanSpec* other); - friend void swap(LaunchPlanSpec& a, LaunchPlanSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanSpec* 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 LaunchPlanSpec& from); - void MergeFrom(const LaunchPlanSpec& 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(LaunchPlanSpec* 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 ------------------------------------------------------- - - // string role = 5 [deprecated = true]; - PROTOBUF_DEPRECATED void clear_role(); - PROTOBUF_DEPRECATED static const int kRoleFieldNumber = 5; - PROTOBUF_DEPRECATED const ::std::string& role() const; - PROTOBUF_DEPRECATED void set_role(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_role(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_role(const char* value); - PROTOBUF_DEPRECATED void set_role(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_role(); - PROTOBUF_DEPRECATED ::std::string* release_role(); - PROTOBUF_DEPRECATED void set_allocated_role(::std::string* role); - - // .flyteidl.core.Identifier workflow_id = 1; - bool has_workflow_id() const; - void clear_workflow_id(); - static const int kWorkflowIdFieldNumber = 1; - const ::flyteidl::core::Identifier& workflow_id() const; - ::flyteidl::core::Identifier* release_workflow_id(); - ::flyteidl::core::Identifier* mutable_workflow_id(); - void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); - - // .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - bool has_entity_metadata() const; - void clear_entity_metadata(); - static const int kEntityMetadataFieldNumber = 2; - const ::flyteidl::admin::LaunchPlanMetadata& entity_metadata() const; - ::flyteidl::admin::LaunchPlanMetadata* release_entity_metadata(); - ::flyteidl::admin::LaunchPlanMetadata* mutable_entity_metadata(); - void set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata); - - // .flyteidl.core.ParameterMap default_inputs = 3; - bool has_default_inputs() const; - void clear_default_inputs(); - static const int kDefaultInputsFieldNumber = 3; - const ::flyteidl::core::ParameterMap& default_inputs() const; - ::flyteidl::core::ParameterMap* release_default_inputs(); - ::flyteidl::core::ParameterMap* mutable_default_inputs(); - void set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs); - - // .flyteidl.core.LiteralMap fixed_inputs = 4; - bool has_fixed_inputs() const; - void clear_fixed_inputs(); - static const int kFixedInputsFieldNumber = 4; - const ::flyteidl::core::LiteralMap& fixed_inputs() const; - ::flyteidl::core::LiteralMap* release_fixed_inputs(); - ::flyteidl::core::LiteralMap* mutable_fixed_inputs(); - void set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs); - - // .flyteidl.admin.Labels labels = 6; - bool has_labels() const; - void clear_labels(); - static const int kLabelsFieldNumber = 6; - const ::flyteidl::admin::Labels& labels() const; - ::flyteidl::admin::Labels* release_labels(); - ::flyteidl::admin::Labels* mutable_labels(); - void set_allocated_labels(::flyteidl::admin::Labels* labels); - - // .flyteidl.admin.Annotations annotations = 7; - bool has_annotations() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 7; - const ::flyteidl::admin::Annotations& annotations() const; - ::flyteidl::admin::Annotations* release_annotations(); - ::flyteidl::admin::Annotations* mutable_annotations(); - void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); - - // .flyteidl.admin.Auth auth = 8 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_auth() const; - PROTOBUF_DEPRECATED void clear_auth(); - PROTOBUF_DEPRECATED static const int kAuthFieldNumber = 8; - PROTOBUF_DEPRECATED const ::flyteidl::admin::Auth& auth() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::Auth* release_auth(); - PROTOBUF_DEPRECATED ::flyteidl::admin::Auth* mutable_auth(); - PROTOBUF_DEPRECATED void set_allocated_auth(::flyteidl::admin::Auth* auth); - - // .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_auth_role() const; - PROTOBUF_DEPRECATED void clear_auth_role(); - PROTOBUF_DEPRECATED static const int kAuthRoleFieldNumber = 9; - PROTOBUF_DEPRECATED const ::flyteidl::admin::AuthRole& auth_role() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* release_auth_role(); - PROTOBUF_DEPRECATED ::flyteidl::admin::AuthRole* mutable_auth_role(); - PROTOBUF_DEPRECATED void set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role); - - // .flyteidl.core.SecurityContext security_context = 10; - bool has_security_context() const; - void clear_security_context(); - static const int kSecurityContextFieldNumber = 10; - const ::flyteidl::core::SecurityContext& security_context() const; - ::flyteidl::core::SecurityContext* release_security_context(); - ::flyteidl::core::SecurityContext* mutable_security_context(); - void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); - - // .flyteidl.core.QualityOfService quality_of_service = 16; - bool has_quality_of_service() const; - void clear_quality_of_service(); - static const int kQualityOfServiceFieldNumber = 16; - const ::flyteidl::core::QualityOfService& quality_of_service() const; - ::flyteidl::core::QualityOfService* release_quality_of_service(); - ::flyteidl::core::QualityOfService* mutable_quality_of_service(); - void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - bool has_raw_output_data_config() const; - void clear_raw_output_data_config(); - static const int kRawOutputDataConfigFieldNumber = 17; - const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; - ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); - ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); - void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); - - // .google.protobuf.BoolValue interruptible = 19; - bool has_interruptible() const; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 19; - const ::google::protobuf::BoolValue& interruptible() const; - ::google::protobuf::BoolValue* release_interruptible(); - ::google::protobuf::BoolValue* mutable_interruptible(); - void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); - - // .flyteidl.admin.Envs envs = 21; - bool has_envs() const; - void clear_envs(); - static const int kEnvsFieldNumber = 21; - const ::flyteidl::admin::Envs& envs() const; - ::flyteidl::admin::Envs* release_envs(); - ::flyteidl::admin::Envs* mutable_envs(); - void set_allocated_envs(::flyteidl::admin::Envs* envs); - - // int32 max_parallelism = 18; - void clear_max_parallelism(); - static const int kMaxParallelismFieldNumber = 18; - ::google::protobuf::int32 max_parallelism() const; - void set_max_parallelism(::google::protobuf::int32 value); - - // bool overwrite_cache = 20; - void clear_overwrite_cache(); - static const int kOverwriteCacheFieldNumber = 20; - bool overwrite_cache() const; - void set_overwrite_cache(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr role_; - ::flyteidl::core::Identifier* workflow_id_; - ::flyteidl::admin::LaunchPlanMetadata* entity_metadata_; - ::flyteidl::core::ParameterMap* default_inputs_; - ::flyteidl::core::LiteralMap* fixed_inputs_; - ::flyteidl::admin::Labels* labels_; - ::flyteidl::admin::Annotations* annotations_; - ::flyteidl::admin::Auth* auth_; - ::flyteidl::admin::AuthRole* auth_role_; - ::flyteidl::core::SecurityContext* security_context_; - ::flyteidl::core::QualityOfService* quality_of_service_; - ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; - ::google::protobuf::BoolValue* interruptible_; - ::flyteidl::admin::Envs* envs_; - ::google::protobuf::int32 max_parallelism_; - bool overwrite_cache_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanClosure) */ { - public: - LaunchPlanClosure(); - virtual ~LaunchPlanClosure(); - - LaunchPlanClosure(const LaunchPlanClosure& from); - - inline LaunchPlanClosure& operator=(const LaunchPlanClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanClosure(LaunchPlanClosure&& from) noexcept - : LaunchPlanClosure() { - *this = ::std::move(from); - } - - inline LaunchPlanClosure& operator=(LaunchPlanClosure&& 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 LaunchPlanClosure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanClosure* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(LaunchPlanClosure* other); - friend void swap(LaunchPlanClosure& a, LaunchPlanClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanClosure* 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 LaunchPlanClosure& from); - void MergeFrom(const LaunchPlanClosure& 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(LaunchPlanClosure* 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.ParameterMap expected_inputs = 2; - bool has_expected_inputs() const; - void clear_expected_inputs(); - static const int kExpectedInputsFieldNumber = 2; - const ::flyteidl::core::ParameterMap& expected_inputs() const; - ::flyteidl::core::ParameterMap* release_expected_inputs(); - ::flyteidl::core::ParameterMap* mutable_expected_inputs(); - void set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs); - - // .flyteidl.core.VariableMap expected_outputs = 3; - bool has_expected_outputs() const; - void clear_expected_outputs(); - static const int kExpectedOutputsFieldNumber = 3; - const ::flyteidl::core::VariableMap& expected_outputs() const; - ::flyteidl::core::VariableMap* release_expected_outputs(); - ::flyteidl::core::VariableMap* mutable_expected_outputs(); - void set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs); - - // .google.protobuf.Timestamp created_at = 4; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 4; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // .google.protobuf.Timestamp updated_at = 5; - bool has_updated_at() const; - void clear_updated_at(); - static const int kUpdatedAtFieldNumber = 5; - const ::google::protobuf::Timestamp& updated_at() const; - ::google::protobuf::Timestamp* release_updated_at(); - ::google::protobuf::Timestamp* mutable_updated_at(); - void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); - - // .flyteidl.admin.LaunchPlanState state = 1; - void clear_state(); - static const int kStateFieldNumber = 1; - ::flyteidl::admin::LaunchPlanState state() const; - void set_state(::flyteidl::admin::LaunchPlanState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::ParameterMap* expected_inputs_; - ::flyteidl::core::VariableMap* expected_outputs_; - ::google::protobuf::Timestamp* created_at_; - ::google::protobuf::Timestamp* updated_at_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanMetadata) */ { - public: - LaunchPlanMetadata(); - virtual ~LaunchPlanMetadata(); - - LaunchPlanMetadata(const LaunchPlanMetadata& from); - - inline LaunchPlanMetadata& operator=(const LaunchPlanMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanMetadata(LaunchPlanMetadata&& from) noexcept - : LaunchPlanMetadata() { - *this = ::std::move(from); - } - - inline LaunchPlanMetadata& operator=(LaunchPlanMetadata&& 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 LaunchPlanMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanMetadata* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(LaunchPlanMetadata* other); - friend void swap(LaunchPlanMetadata& a, LaunchPlanMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanMetadata* 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 LaunchPlanMetadata& from); - void MergeFrom(const LaunchPlanMetadata& 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(LaunchPlanMetadata* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Notification notifications = 2; - int notifications_size() const; - void clear_notifications(); - static const int kNotificationsFieldNumber = 2; - ::flyteidl::admin::Notification* mutable_notifications(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* - mutable_notifications(); - const ::flyteidl::admin::Notification& notifications(int index) const; - ::flyteidl::admin::Notification* add_notifications(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& - notifications() const; - - // .flyteidl.admin.Schedule schedule = 1; - bool has_schedule() const; - void clear_schedule(); - static const int kScheduleFieldNumber = 1; - const ::flyteidl::admin::Schedule& schedule() const; - ::flyteidl::admin::Schedule* release_schedule(); - ::flyteidl::admin::Schedule* mutable_schedule(); - void set_allocated_schedule(::flyteidl::admin::Schedule* schedule); - - // .google.protobuf.Any launch_conditions = 3; - bool has_launch_conditions() const; - void clear_launch_conditions(); - static const int kLaunchConditionsFieldNumber = 3; - const ::google::protobuf::Any& launch_conditions() const; - ::google::protobuf::Any* release_launch_conditions(); - ::google::protobuf::Any* mutable_launch_conditions(); - void set_allocated_launch_conditions(::google::protobuf::Any* launch_conditions); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification > notifications_; - ::flyteidl::admin::Schedule* schedule_; - ::google::protobuf::Any* launch_conditions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateRequest) */ { - public: - LaunchPlanUpdateRequest(); - virtual ~LaunchPlanUpdateRequest(); - - LaunchPlanUpdateRequest(const LaunchPlanUpdateRequest& from); - - inline LaunchPlanUpdateRequest& operator=(const LaunchPlanUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanUpdateRequest(LaunchPlanUpdateRequest&& from) noexcept - : LaunchPlanUpdateRequest() { - *this = ::std::move(from); - } - - inline LaunchPlanUpdateRequest& operator=(LaunchPlanUpdateRequest&& 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 LaunchPlanUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(LaunchPlanUpdateRequest* other); - friend void swap(LaunchPlanUpdateRequest& a, LaunchPlanUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanUpdateRequest* 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 LaunchPlanUpdateRequest& from); - void MergeFrom(const LaunchPlanUpdateRequest& 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(LaunchPlanUpdateRequest* 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); - - // .flyteidl.admin.LaunchPlanState state = 2; - void clear_state(); - static const int kStateFieldNumber = 2; - ::flyteidl::admin::LaunchPlanState state() const; - void set_state(::flyteidl::admin::LaunchPlanState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* id_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class LaunchPlanUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.LaunchPlanUpdateResponse) */ { - public: - LaunchPlanUpdateResponse(); - virtual ~LaunchPlanUpdateResponse(); - - LaunchPlanUpdateResponse(const LaunchPlanUpdateResponse& from); - - inline LaunchPlanUpdateResponse& operator=(const LaunchPlanUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LaunchPlanUpdateResponse(LaunchPlanUpdateResponse&& from) noexcept - : LaunchPlanUpdateResponse() { - *this = ::std::move(from); - } - - inline LaunchPlanUpdateResponse& operator=(LaunchPlanUpdateResponse&& 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 LaunchPlanUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LaunchPlanUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_LaunchPlanUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(LaunchPlanUpdateResponse* other); - friend void swap(LaunchPlanUpdateResponse& a, LaunchPlanUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LaunchPlanUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - LaunchPlanUpdateResponse* 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 LaunchPlanUpdateResponse& from); - void MergeFrom(const LaunchPlanUpdateResponse& 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(LaunchPlanUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class ActiveLaunchPlanRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ActiveLaunchPlanRequest) */ { - public: - ActiveLaunchPlanRequest(); - virtual ~ActiveLaunchPlanRequest(); - - ActiveLaunchPlanRequest(const ActiveLaunchPlanRequest& from); - - inline ActiveLaunchPlanRequest& operator=(const ActiveLaunchPlanRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ActiveLaunchPlanRequest(ActiveLaunchPlanRequest&& from) noexcept - : ActiveLaunchPlanRequest() { - *this = ::std::move(from); - } - - inline ActiveLaunchPlanRequest& operator=(ActiveLaunchPlanRequest&& 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 ActiveLaunchPlanRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ActiveLaunchPlanRequest* internal_default_instance() { - return reinterpret_cast( - &_ActiveLaunchPlanRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(ActiveLaunchPlanRequest* other); - friend void swap(ActiveLaunchPlanRequest& a, ActiveLaunchPlanRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ActiveLaunchPlanRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ActiveLaunchPlanRequest* 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 ActiveLaunchPlanRequest& from); - void MergeFrom(const ActiveLaunchPlanRequest& 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(ActiveLaunchPlanRequest* 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.NamedEntityIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::admin::NamedEntityIdentifier& id() const; - ::flyteidl::admin::NamedEntityIdentifier* release_id(); - ::flyteidl::admin::NamedEntityIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::NamedEntityIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// ------------------------------------------------------------------- - -class ActiveLaunchPlanListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ActiveLaunchPlanListRequest) */ { - public: - ActiveLaunchPlanListRequest(); - virtual ~ActiveLaunchPlanListRequest(); - - ActiveLaunchPlanListRequest(const ActiveLaunchPlanListRequest& from); - - inline ActiveLaunchPlanListRequest& operator=(const ActiveLaunchPlanListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ActiveLaunchPlanListRequest(ActiveLaunchPlanListRequest&& from) noexcept - : ActiveLaunchPlanListRequest() { - *this = ::std::move(from); - } - - inline ActiveLaunchPlanListRequest& operator=(ActiveLaunchPlanListRequest&& 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 ActiveLaunchPlanListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ActiveLaunchPlanListRequest* internal_default_instance() { - return reinterpret_cast( - &_ActiveLaunchPlanListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(ActiveLaunchPlanListRequest* other); - friend void swap(ActiveLaunchPlanListRequest& a, ActiveLaunchPlanListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ActiveLaunchPlanListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ActiveLaunchPlanListRequest* 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 ActiveLaunchPlanListRequest& from); - void MergeFrom(const ActiveLaunchPlanListRequest& 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(ActiveLaunchPlanListRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string token = 4; - void clear_token(); - static const int kTokenFieldNumber = 4; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 3; - void clear_limit(); - static const int kLimitFieldNumber = 3; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// LaunchPlanCreateRequest - -// .flyteidl.core.Identifier id = 1; -inline bool LaunchPlanCreateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& LaunchPlanCreateRequest::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* LaunchPlanCreateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.id) - return id_; -} -inline void LaunchPlanCreateRequest::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.LaunchPlanCreateRequest.id) -} - -// .flyteidl.admin.LaunchPlanSpec spec = 2; -inline bool LaunchPlanCreateRequest::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void LaunchPlanCreateRequest::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlanCreateRequest::spec() const { - const ::flyteidl::admin::LaunchPlanSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanCreateRequest.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_LaunchPlanSpec_default_instance_); -} -inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanCreateRequest.spec) - - ::flyteidl::admin::LaunchPlanSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlanCreateRequest::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanCreateRequest.spec) - return spec_; -} -inline void LaunchPlanCreateRequest::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanCreateRequest.spec) -} - -// ------------------------------------------------------------------- - -// LaunchPlanCreateResponse - -// ------------------------------------------------------------------- - -// LaunchPlan - -// .flyteidl.core.Identifier id = 1; -inline bool LaunchPlan::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& LaunchPlan::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* LaunchPlan::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* LaunchPlan::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.id) - return id_; -} -inline void LaunchPlan::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.LaunchPlan.id) -} - -// .flyteidl.admin.LaunchPlanSpec spec = 2; -inline bool LaunchPlan::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void LaunchPlan::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::LaunchPlanSpec& LaunchPlan::spec() const { - const ::flyteidl::admin::LaunchPlanSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_LaunchPlanSpec_default_instance_); -} -inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.spec) - - ::flyteidl::admin::LaunchPlanSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::LaunchPlanSpec* LaunchPlan::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.spec) - return spec_; -} -inline void LaunchPlan::set_allocated_spec(::flyteidl::admin::LaunchPlanSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.spec) -} - -// .flyteidl.admin.LaunchPlanClosure closure = 3; -inline bool LaunchPlan::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void LaunchPlan::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::LaunchPlanClosure& LaunchPlan::closure() const { - const ::flyteidl::admin::LaunchPlanClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlan.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_LaunchPlanClosure_default_instance_); -} -inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlan.closure) - - ::flyteidl::admin::LaunchPlanClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::LaunchPlanClosure* LaunchPlan::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlan.closure) - return closure_; -} -inline void LaunchPlan::set_allocated_closure(::flyteidl::admin::LaunchPlanClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlan.closure) -} - -// ------------------------------------------------------------------- - -// LaunchPlanList - -// repeated .flyteidl.admin.LaunchPlan launch_plans = 1; -inline int LaunchPlanList::launch_plans_size() const { - return launch_plans_.size(); -} -inline void LaunchPlanList::clear_launch_plans() { - launch_plans_.Clear(); -} -inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::mutable_launch_plans(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.launch_plans) - return launch_plans_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >* -LaunchPlanList::mutable_launch_plans() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanList.launch_plans) - return &launch_plans_; -} -inline const ::flyteidl::admin::LaunchPlan& LaunchPlanList::launch_plans(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.launch_plans) - return launch_plans_.Get(index); -} -inline ::flyteidl::admin::LaunchPlan* LaunchPlanList::add_launch_plans() { - // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanList.launch_plans) - return launch_plans_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::LaunchPlan >& -LaunchPlanList::launch_plans() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanList.launch_plans) - return launch_plans_; -} - -// string token = 2; -inline void LaunchPlanList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& LaunchPlanList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanList.token) - return token_.GetNoArena(); -} -inline void LaunchPlanList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanList.token) -} -#if LANG_CXX11 -inline void LaunchPlanList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanList.token) -} -#endif -inline void LaunchPlanList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanList.token) -} -inline void LaunchPlanList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanList.token) -} -inline ::std::string* LaunchPlanList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LaunchPlanList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void LaunchPlanList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanList.token) -} - -// ------------------------------------------------------------------- - -// Auth - -// string assumable_iam_role = 1; -inline void Auth::clear_assumable_iam_role() { - assumable_iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Auth::assumable_iam_role() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.assumable_iam_role) - return assumable_iam_role_.GetNoArena(); -} -inline void Auth::set_assumable_iam_role(const ::std::string& value) { - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.assumable_iam_role) -} -#if LANG_CXX11 -inline void Auth::set_assumable_iam_role(::std::string&& value) { - - assumable_iam_role_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.assumable_iam_role) -} -#endif -inline void Auth::set_assumable_iam_role(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.assumable_iam_role) -} -inline void Auth::set_assumable_iam_role(const char* value, size_t size) { - - assumable_iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.assumable_iam_role) -} -inline ::std::string* Auth::mutable_assumable_iam_role() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.assumable_iam_role) - return assumable_iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Auth::release_assumable_iam_role() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.assumable_iam_role) - - return assumable_iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Auth::set_allocated_assumable_iam_role(::std::string* assumable_iam_role) { - if (assumable_iam_role != nullptr) { - - } else { - - } - assumable_iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), assumable_iam_role); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.assumable_iam_role) -} - -// string kubernetes_service_account = 2; -inline void Auth::clear_kubernetes_service_account() { - kubernetes_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Auth::kubernetes_service_account() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Auth.kubernetes_service_account) - return kubernetes_service_account_.GetNoArena(); -} -inline void Auth::set_kubernetes_service_account(const ::std::string& value) { - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Auth.kubernetes_service_account) -} -#if LANG_CXX11 -inline void Auth::set_kubernetes_service_account(::std::string&& value) { - - kubernetes_service_account_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Auth.kubernetes_service_account) -} -#endif -inline void Auth::set_kubernetes_service_account(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Auth.kubernetes_service_account) -} -inline void Auth::set_kubernetes_service_account(const char* value, size_t size) { - - kubernetes_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Auth.kubernetes_service_account) -} -inline ::std::string* Auth::mutable_kubernetes_service_account() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Auth.kubernetes_service_account) - return kubernetes_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Auth::release_kubernetes_service_account() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Auth.kubernetes_service_account) - - return kubernetes_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Auth::set_allocated_kubernetes_service_account(::std::string* kubernetes_service_account) { - if (kubernetes_service_account != nullptr) { - - } else { - - } - kubernetes_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kubernetes_service_account); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Auth.kubernetes_service_account) -} - -// ------------------------------------------------------------------- - -// LaunchPlanSpec - -// .flyteidl.core.Identifier workflow_id = 1; -inline bool LaunchPlanSpec::has_workflow_id() const { - return this != internal_default_instance() && workflow_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& LaunchPlanSpec::workflow_id() const { - const ::flyteidl::core::Identifier* p = workflow_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.workflow_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* LaunchPlanSpec::release_workflow_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.workflow_id) - - ::flyteidl::core::Identifier* temp = workflow_id_; - workflow_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* LaunchPlanSpec::mutable_workflow_id() { - - if (workflow_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - workflow_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.workflow_id) - return workflow_id_; -} -inline void LaunchPlanSpec::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); - } - if (workflow_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_id, submessage_arena); - } - - } else { - - } - workflow_id_ = workflow_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.workflow_id) -} - -// .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; -inline bool LaunchPlanSpec::has_entity_metadata() const { - return this != internal_default_instance() && entity_metadata_ != nullptr; -} -inline void LaunchPlanSpec::clear_entity_metadata() { - if (GetArenaNoVirtual() == nullptr && entity_metadata_ != nullptr) { - delete entity_metadata_; - } - entity_metadata_ = nullptr; -} -inline const ::flyteidl::admin::LaunchPlanMetadata& LaunchPlanSpec::entity_metadata() const { - const ::flyteidl::admin::LaunchPlanMetadata* p = entity_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.entity_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_LaunchPlanMetadata_default_instance_); -} -inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::release_entity_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.entity_metadata) - - ::flyteidl::admin::LaunchPlanMetadata* temp = entity_metadata_; - entity_metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::LaunchPlanMetadata* LaunchPlanSpec::mutable_entity_metadata() { - - if (entity_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlanMetadata>(GetArenaNoVirtual()); - entity_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.entity_metadata) - return entity_metadata_; -} -inline void LaunchPlanSpec::set_allocated_entity_metadata(::flyteidl::admin::LaunchPlanMetadata* entity_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete entity_metadata_; - } - if (entity_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - entity_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, entity_metadata, submessage_arena); - } - - } else { - - } - entity_metadata_ = entity_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.entity_metadata) -} - -// .flyteidl.core.ParameterMap default_inputs = 3; -inline bool LaunchPlanSpec::has_default_inputs() const { - return this != internal_default_instance() && default_inputs_ != nullptr; -} -inline const ::flyteidl::core::ParameterMap& LaunchPlanSpec::default_inputs() const { - const ::flyteidl::core::ParameterMap* p = default_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.default_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ParameterMap_default_instance_); -} -inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::release_default_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.default_inputs) - - ::flyteidl::core::ParameterMap* temp = default_inputs_; - default_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::ParameterMap* LaunchPlanSpec::mutable_default_inputs() { - - if (default_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ParameterMap>(GetArenaNoVirtual()); - default_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.default_inputs) - return default_inputs_; -} -inline void LaunchPlanSpec::set_allocated_default_inputs(::flyteidl::core::ParameterMap* default_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_inputs_); - } - if (default_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - default_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, default_inputs, submessage_arena); - } - - } else { - - } - default_inputs_ = default_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.default_inputs) -} - -// .flyteidl.core.LiteralMap fixed_inputs = 4; -inline bool LaunchPlanSpec::has_fixed_inputs() const { - return this != internal_default_instance() && fixed_inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& LaunchPlanSpec::fixed_inputs() const { - const ::flyteidl::core::LiteralMap* p = fixed_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.fixed_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::release_fixed_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.fixed_inputs) - - ::flyteidl::core::LiteralMap* temp = fixed_inputs_; - fixed_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* LaunchPlanSpec::mutable_fixed_inputs() { - - if (fixed_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - fixed_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.fixed_inputs) - return fixed_inputs_; -} -inline void LaunchPlanSpec::set_allocated_fixed_inputs(::flyteidl::core::LiteralMap* fixed_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(fixed_inputs_); - } - if (fixed_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - fixed_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, fixed_inputs, submessage_arena); - } - - } else { - - } - fixed_inputs_ = fixed_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.fixed_inputs) -} - -// string role = 5 [deprecated = true]; -inline void LaunchPlanSpec::clear_role() { - role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& LaunchPlanSpec::role() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.role) - return role_.GetNoArena(); -} -inline void LaunchPlanSpec::set_role(const ::std::string& value) { - - role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.role) -} -#if LANG_CXX11 -inline void LaunchPlanSpec::set_role(::std::string&& value) { - - role_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.LaunchPlanSpec.role) -} -#endif -inline void LaunchPlanSpec::set_role(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.LaunchPlanSpec.role) -} -inline void LaunchPlanSpec::set_role(const char* value, size_t size) { - - role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.LaunchPlanSpec.role) -} -inline ::std::string* LaunchPlanSpec::mutable_role() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.role) - return role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LaunchPlanSpec::release_role() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.role) - - return role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void LaunchPlanSpec::set_allocated_role(::std::string* role) { - if (role != nullptr) { - - } else { - - } - role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.role) -} - -// .flyteidl.admin.Labels labels = 6; -inline bool LaunchPlanSpec::has_labels() const { - return this != internal_default_instance() && labels_ != nullptr; -} -inline const ::flyteidl::admin::Labels& LaunchPlanSpec::labels() const { - const ::flyteidl::admin::Labels* p = labels_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.labels) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Labels_default_instance_); -} -inline ::flyteidl::admin::Labels* LaunchPlanSpec::release_labels() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.labels) - - ::flyteidl::admin::Labels* temp = labels_; - labels_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Labels* LaunchPlanSpec::mutable_labels() { - - if (labels_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); - labels_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.labels) - return labels_; -} -inline void LaunchPlanSpec::set_allocated_labels(::flyteidl::admin::Labels* labels) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); - } - if (labels) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - labels = ::google::protobuf::internal::GetOwnedMessage( - message_arena, labels, submessage_arena); - } - - } else { - - } - labels_ = labels; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.labels) -} - -// .flyteidl.admin.Annotations annotations = 7; -inline bool LaunchPlanSpec::has_annotations() const { - return this != internal_default_instance() && annotations_ != nullptr; -} -inline const ::flyteidl::admin::Annotations& LaunchPlanSpec::annotations() const { - const ::flyteidl::admin::Annotations* p = annotations_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.annotations) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Annotations_default_instance_); -} -inline ::flyteidl::admin::Annotations* LaunchPlanSpec::release_annotations() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.annotations) - - ::flyteidl::admin::Annotations* temp = annotations_; - annotations_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Annotations* LaunchPlanSpec::mutable_annotations() { - - if (annotations_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); - annotations_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.annotations) - return annotations_; -} -inline void LaunchPlanSpec::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); - } - if (annotations) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - annotations = ::google::protobuf::internal::GetOwnedMessage( - message_arena, annotations, submessage_arena); - } - - } else { - - } - annotations_ = annotations; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.annotations) -} - -// .flyteidl.admin.Auth auth = 8 [deprecated = true]; -inline bool LaunchPlanSpec::has_auth() const { - return this != internal_default_instance() && auth_ != nullptr; -} -inline void LaunchPlanSpec::clear_auth() { - if (GetArenaNoVirtual() == nullptr && auth_ != nullptr) { - delete auth_; - } - auth_ = nullptr; -} -inline const ::flyteidl::admin::Auth& LaunchPlanSpec::auth() const { - const ::flyteidl::admin::Auth* p = auth_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.auth) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Auth_default_instance_); -} -inline ::flyteidl::admin::Auth* LaunchPlanSpec::release_auth() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.auth) - - ::flyteidl::admin::Auth* temp = auth_; - auth_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Auth* LaunchPlanSpec::mutable_auth() { - - if (auth_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Auth>(GetArenaNoVirtual()); - auth_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.auth) - return auth_; -} -inline void LaunchPlanSpec::set_allocated_auth(::flyteidl::admin::Auth* auth) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete auth_; - } - if (auth) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - auth = ::google::protobuf::internal::GetOwnedMessage( - message_arena, auth, submessage_arena); - } - - } else { - - } - auth_ = auth; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.auth) -} - -// .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; -inline bool LaunchPlanSpec::has_auth_role() const { - return this != internal_default_instance() && auth_role_ != nullptr; -} -inline const ::flyteidl::admin::AuthRole& LaunchPlanSpec::auth_role() const { - const ::flyteidl::admin::AuthRole* p = auth_role_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.auth_role) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_AuthRole_default_instance_); -} -inline ::flyteidl::admin::AuthRole* LaunchPlanSpec::release_auth_role() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.auth_role) - - ::flyteidl::admin::AuthRole* temp = auth_role_; - auth_role_ = nullptr; - return temp; -} -inline ::flyteidl::admin::AuthRole* LaunchPlanSpec::mutable_auth_role() { - - if (auth_role_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::AuthRole>(GetArenaNoVirtual()); - auth_role_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.auth_role) - return auth_role_; -} -inline void LaunchPlanSpec::set_allocated_auth_role(::flyteidl::admin::AuthRole* auth_role) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(auth_role_); - } - if (auth_role) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - auth_role = ::google::protobuf::internal::GetOwnedMessage( - message_arena, auth_role, submessage_arena); - } - - } else { - - } - auth_role_ = auth_role; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.auth_role) -} - -// .flyteidl.core.SecurityContext security_context = 10; -inline bool LaunchPlanSpec::has_security_context() const { - return this != internal_default_instance() && security_context_ != nullptr; -} -inline const ::flyteidl::core::SecurityContext& LaunchPlanSpec::security_context() const { - const ::flyteidl::core::SecurityContext* p = security_context_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.security_context) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SecurityContext_default_instance_); -} -inline ::flyteidl::core::SecurityContext* LaunchPlanSpec::release_security_context() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.security_context) - - ::flyteidl::core::SecurityContext* temp = security_context_; - security_context_ = nullptr; - return temp; -} -inline ::flyteidl::core::SecurityContext* LaunchPlanSpec::mutable_security_context() { - - if (security_context_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); - security_context_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.security_context) - return security_context_; -} -inline void LaunchPlanSpec::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); - } - if (security_context) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - security_context = ::google::protobuf::internal::GetOwnedMessage( - message_arena, security_context, submessage_arena); - } - - } else { - - } - security_context_ = security_context; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.security_context) -} - -// .flyteidl.core.QualityOfService quality_of_service = 16; -inline bool LaunchPlanSpec::has_quality_of_service() const { - return this != internal_default_instance() && quality_of_service_ != nullptr; -} -inline const ::flyteidl::core::QualityOfService& LaunchPlanSpec::quality_of_service() const { - const ::flyteidl::core::QualityOfService* p = quality_of_service_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.quality_of_service) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_QualityOfService_default_instance_); -} -inline ::flyteidl::core::QualityOfService* LaunchPlanSpec::release_quality_of_service() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.quality_of_service) - - ::flyteidl::core::QualityOfService* temp = quality_of_service_; - quality_of_service_ = nullptr; - return temp; -} -inline ::flyteidl::core::QualityOfService* LaunchPlanSpec::mutable_quality_of_service() { - - if (quality_of_service_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); - quality_of_service_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.quality_of_service) - return quality_of_service_; -} -inline void LaunchPlanSpec::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); - } - if (quality_of_service) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - quality_of_service = ::google::protobuf::internal::GetOwnedMessage( - message_arena, quality_of_service, submessage_arena); - } - - } else { - - } - quality_of_service_ = quality_of_service; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.quality_of_service) -} - -// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; -inline bool LaunchPlanSpec::has_raw_output_data_config() const { - return this != internal_default_instance() && raw_output_data_config_ != nullptr; -} -inline const ::flyteidl::admin::RawOutputDataConfig& LaunchPlanSpec::raw_output_data_config() const { - const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_RawOutputDataConfig_default_instance_); -} -inline ::flyteidl::admin::RawOutputDataConfig* LaunchPlanSpec::release_raw_output_data_config() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) - - ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; - raw_output_data_config_ = nullptr; - return temp; -} -inline ::flyteidl::admin::RawOutputDataConfig* LaunchPlanSpec::mutable_raw_output_data_config() { - - if (raw_output_data_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); - raw_output_data_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) - return raw_output_data_config_; -} -inline void LaunchPlanSpec::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); - } - if (raw_output_data_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_output_data_config, submessage_arena); - } - - } else { - - } - raw_output_data_config_ = raw_output_data_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.raw_output_data_config) -} - -// int32 max_parallelism = 18; -inline void LaunchPlanSpec::clear_max_parallelism() { - max_parallelism_ = 0; -} -inline ::google::protobuf::int32 LaunchPlanSpec::max_parallelism() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.max_parallelism) - return max_parallelism_; -} -inline void LaunchPlanSpec::set_max_parallelism(::google::protobuf::int32 value) { - - max_parallelism_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.max_parallelism) -} - -// .google.protobuf.BoolValue interruptible = 19; -inline bool LaunchPlanSpec::has_interruptible() const { - return this != internal_default_instance() && interruptible_ != nullptr; -} -inline const ::google::protobuf::BoolValue& LaunchPlanSpec::interruptible() const { - const ::google::protobuf::BoolValue* p = interruptible_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.interruptible) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_BoolValue_default_instance_); -} -inline ::google::protobuf::BoolValue* LaunchPlanSpec::release_interruptible() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.interruptible) - - ::google::protobuf::BoolValue* temp = interruptible_; - interruptible_ = nullptr; - return temp; -} -inline ::google::protobuf::BoolValue* LaunchPlanSpec::mutable_interruptible() { - - if (interruptible_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); - interruptible_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.interruptible) - return interruptible_; -} -inline void LaunchPlanSpec::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); - } - if (interruptible) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); - if (message_arena != submessage_arena) { - interruptible = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interruptible, submessage_arena); - } - - } else { - - } - interruptible_ = interruptible; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.interruptible) -} - -// bool overwrite_cache = 20; -inline void LaunchPlanSpec::clear_overwrite_cache() { - overwrite_cache_ = false; -} -inline bool LaunchPlanSpec::overwrite_cache() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.overwrite_cache) - return overwrite_cache_; -} -inline void LaunchPlanSpec::set_overwrite_cache(bool value) { - - overwrite_cache_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanSpec.overwrite_cache) -} - -// .flyteidl.admin.Envs envs = 21; -inline bool LaunchPlanSpec::has_envs() const { - return this != internal_default_instance() && envs_ != nullptr; -} -inline const ::flyteidl::admin::Envs& LaunchPlanSpec::envs() const { - const ::flyteidl::admin::Envs* p = envs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanSpec.envs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Envs_default_instance_); -} -inline ::flyteidl::admin::Envs* LaunchPlanSpec::release_envs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanSpec.envs) - - ::flyteidl::admin::Envs* temp = envs_; - envs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Envs* LaunchPlanSpec::mutable_envs() { - - if (envs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); - envs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanSpec.envs) - return envs_; -} -inline void LaunchPlanSpec::set_allocated_envs(::flyteidl::admin::Envs* envs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); - } - if (envs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - envs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, envs, submessage_arena); - } - - } else { - - } - envs_ = envs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanSpec.envs) -} - -// ------------------------------------------------------------------- - -// LaunchPlanClosure - -// .flyteidl.admin.LaunchPlanState state = 1; -inline void LaunchPlanClosure::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::LaunchPlanState LaunchPlanClosure::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.state) - return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); -} -inline void LaunchPlanClosure::set_state(::flyteidl::admin::LaunchPlanState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanClosure.state) -} - -// .flyteidl.core.ParameterMap expected_inputs = 2; -inline bool LaunchPlanClosure::has_expected_inputs() const { - return this != internal_default_instance() && expected_inputs_ != nullptr; -} -inline const ::flyteidl::core::ParameterMap& LaunchPlanClosure::expected_inputs() const { - const ::flyteidl::core::ParameterMap* p = expected_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ParameterMap_default_instance_); -} -inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::release_expected_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_inputs) - - ::flyteidl::core::ParameterMap* temp = expected_inputs_; - expected_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::ParameterMap* LaunchPlanClosure::mutable_expected_inputs() { - - if (expected_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ParameterMap>(GetArenaNoVirtual()); - expected_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_inputs) - return expected_inputs_; -} -inline void LaunchPlanClosure::set_allocated_expected_inputs(::flyteidl::core::ParameterMap* expected_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_inputs_); - } - if (expected_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - expected_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expected_inputs, submessage_arena); - } - - } else { - - } - expected_inputs_ = expected_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_inputs) -} - -// .flyteidl.core.VariableMap expected_outputs = 3; -inline bool LaunchPlanClosure::has_expected_outputs() const { - return this != internal_default_instance() && expected_outputs_ != nullptr; -} -inline const ::flyteidl::core::VariableMap& LaunchPlanClosure::expected_outputs() const { - const ::flyteidl::core::VariableMap* p = expected_outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.expected_outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_VariableMap_default_instance_); -} -inline ::flyteidl::core::VariableMap* LaunchPlanClosure::release_expected_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.expected_outputs) - - ::flyteidl::core::VariableMap* temp = expected_outputs_; - expected_outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::VariableMap* LaunchPlanClosure::mutable_expected_outputs() { - - if (expected_outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); - expected_outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.expected_outputs) - return expected_outputs_; -} -inline void LaunchPlanClosure::set_allocated_expected_outputs(::flyteidl::core::VariableMap* expected_outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expected_outputs_); - } - if (expected_outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - expected_outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expected_outputs, submessage_arena); - } - - } else { - - } - expected_outputs_ = expected_outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.expected_outputs) -} - -// .google.protobuf.Timestamp created_at = 4; -inline bool LaunchPlanClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& LaunchPlanClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.created_at) - return created_at_; -} -inline void LaunchPlanClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.created_at) -} - -// .google.protobuf.Timestamp updated_at = 5; -inline bool LaunchPlanClosure::has_updated_at() const { - return this != internal_default_instance() && updated_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& LaunchPlanClosure::updated_at() const { - const ::google::protobuf::Timestamp* p = updated_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanClosure.updated_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* LaunchPlanClosure::release_updated_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanClosure.updated_at) - - ::google::protobuf::Timestamp* temp = updated_at_; - updated_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* LaunchPlanClosure::mutable_updated_at() { - - if (updated_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - updated_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanClosure.updated_at) - return updated_at_; -} -inline void LaunchPlanClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); - } - if (updated_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); - if (message_arena != submessage_arena) { - updated_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, updated_at, submessage_arena); - } - - } else { - - } - updated_at_ = updated_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanClosure.updated_at) -} - -// ------------------------------------------------------------------- - -// LaunchPlanMetadata - -// .flyteidl.admin.Schedule schedule = 1; -inline bool LaunchPlanMetadata::has_schedule() const { - return this != internal_default_instance() && schedule_ != nullptr; -} -inline const ::flyteidl::admin::Schedule& LaunchPlanMetadata::schedule() const { - const ::flyteidl::admin::Schedule* p = schedule_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.schedule) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Schedule_default_instance_); -} -inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::release_schedule() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanMetadata.schedule) - - ::flyteidl::admin::Schedule* temp = schedule_; - schedule_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Schedule* LaunchPlanMetadata::mutable_schedule() { - - if (schedule_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Schedule>(GetArenaNoVirtual()); - schedule_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.schedule) - return schedule_; -} -inline void LaunchPlanMetadata::set_allocated_schedule(::flyteidl::admin::Schedule* schedule) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(schedule_); - } - if (schedule) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schedule = ::google::protobuf::internal::GetOwnedMessage( - message_arena, schedule, submessage_arena); - } - - } else { - - } - schedule_ = schedule; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanMetadata.schedule) -} - -// repeated .flyteidl.admin.Notification notifications = 2; -inline int LaunchPlanMetadata::notifications_size() const { - return notifications_.size(); -} -inline ::flyteidl::admin::Notification* LaunchPlanMetadata::mutable_notifications(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.notifications) - return notifications_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >* -LaunchPlanMetadata::mutable_notifications() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.LaunchPlanMetadata.notifications) - return ¬ifications_; -} -inline const ::flyteidl::admin::Notification& LaunchPlanMetadata::notifications(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.notifications) - return notifications_.Get(index); -} -inline ::flyteidl::admin::Notification* LaunchPlanMetadata::add_notifications() { - // @@protoc_insertion_point(field_add:flyteidl.admin.LaunchPlanMetadata.notifications) - return notifications_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Notification >& -LaunchPlanMetadata::notifications() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.LaunchPlanMetadata.notifications) - return notifications_; -} - -// .google.protobuf.Any launch_conditions = 3; -inline bool LaunchPlanMetadata::has_launch_conditions() const { - return this != internal_default_instance() && launch_conditions_ != nullptr; -} -inline const ::google::protobuf::Any& LaunchPlanMetadata::launch_conditions() const { - const ::google::protobuf::Any* p = launch_conditions_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanMetadata.launch_conditions) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* LaunchPlanMetadata::release_launch_conditions() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanMetadata.launch_conditions) - - ::google::protobuf::Any* temp = launch_conditions_; - launch_conditions_ = nullptr; - return temp; -} -inline ::google::protobuf::Any* LaunchPlanMetadata::mutable_launch_conditions() { - - if (launch_conditions_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - launch_conditions_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanMetadata.launch_conditions) - return launch_conditions_; -} -inline void LaunchPlanMetadata::set_allocated_launch_conditions(::google::protobuf::Any* launch_conditions) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_conditions_); - } - if (launch_conditions) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launch_conditions = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launch_conditions, submessage_arena); - } - - } else { - - } - launch_conditions_ = launch_conditions; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.LaunchPlanMetadata.launch_conditions) -} - -// ------------------------------------------------------------------- - -// LaunchPlanUpdateRequest - -// .flyteidl.core.Identifier id = 1; -inline bool LaunchPlanUpdateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& LaunchPlanUpdateRequest::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.LaunchPlanUpdateRequest.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* LaunchPlanUpdateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.LaunchPlanUpdateRequest.id) - return id_; -} -inline void LaunchPlanUpdateRequest::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.LaunchPlanUpdateRequest.id) -} - -// .flyteidl.admin.LaunchPlanState state = 2; -inline void LaunchPlanUpdateRequest::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::LaunchPlanState LaunchPlanUpdateRequest::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.LaunchPlanUpdateRequest.state) - return static_cast< ::flyteidl::admin::LaunchPlanState >(state_); -} -inline void LaunchPlanUpdateRequest::set_state(::flyteidl::admin::LaunchPlanState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.LaunchPlanUpdateRequest.state) -} - -// ------------------------------------------------------------------- - -// LaunchPlanUpdateResponse - -// ------------------------------------------------------------------- - -// ActiveLaunchPlanRequest - -// .flyteidl.admin.NamedEntityIdentifier id = 1; -inline bool ActiveLaunchPlanRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::admin::NamedEntityIdentifier& ActiveLaunchPlanRequest::id() const { - const ::flyteidl::admin::NamedEntityIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NamedEntityIdentifier_default_instance_); -} -inline ::flyteidl::admin::NamedEntityIdentifier* ActiveLaunchPlanRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanRequest.id) - - ::flyteidl::admin::NamedEntityIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NamedEntityIdentifier* ActiveLaunchPlanRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NamedEntityIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanRequest.id) - return id_; -} -inline void ActiveLaunchPlanRequest::set_allocated_id(::flyteidl::admin::NamedEntityIdentifier* 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.ActiveLaunchPlanRequest.id) -} - -// ------------------------------------------------------------------- - -// ActiveLaunchPlanListRequest - -// string project = 1; -inline void ActiveLaunchPlanListRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ActiveLaunchPlanListRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.project) - return project_.GetNoArena(); -} -inline void ActiveLaunchPlanListRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.project) -} -#if LANG_CXX11 -inline void ActiveLaunchPlanListRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.project) -} -#endif -inline void ActiveLaunchPlanListRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.project) -} -inline void ActiveLaunchPlanListRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.project) -} -inline ::std::string* ActiveLaunchPlanListRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ActiveLaunchPlanListRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ActiveLaunchPlanListRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.project) -} - -// string domain = 2; -inline void ActiveLaunchPlanListRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ActiveLaunchPlanListRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.domain) - return domain_.GetNoArena(); -} -inline void ActiveLaunchPlanListRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.domain) -} -#if LANG_CXX11 -inline void ActiveLaunchPlanListRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.domain) -} -#endif -inline void ActiveLaunchPlanListRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.domain) -} -inline void ActiveLaunchPlanListRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.domain) -} -inline ::std::string* ActiveLaunchPlanListRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ActiveLaunchPlanListRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ActiveLaunchPlanListRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.domain) -} - -// uint32 limit = 3; -inline void ActiveLaunchPlanListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 ActiveLaunchPlanListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.limit) - return limit_; -} -inline void ActiveLaunchPlanListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.limit) -} - -// string token = 4; -inline void ActiveLaunchPlanListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ActiveLaunchPlanListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.token) - return token_.GetNoArena(); -} -inline void ActiveLaunchPlanListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ActiveLaunchPlanListRequest.token) -} -#if LANG_CXX11 -inline void ActiveLaunchPlanListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ActiveLaunchPlanListRequest.token) -} -#endif -inline void ActiveLaunchPlanListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ActiveLaunchPlanListRequest.token) -} -inline void ActiveLaunchPlanListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ActiveLaunchPlanListRequest.token) -} -inline ::std::string* ActiveLaunchPlanListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ActiveLaunchPlanListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ActiveLaunchPlanListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.token) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool ActiveLaunchPlanListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& ActiveLaunchPlanListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* ActiveLaunchPlanListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* ActiveLaunchPlanListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) - return sort_by_; -} -inline void ActiveLaunchPlanListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ActiveLaunchPlanListRequest.sort_by) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::LaunchPlanState> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::LaunchPlanState>() { - return ::flyteidl::admin::LaunchPlanState_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2flaunch_5fplan_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc deleted file mode 100644 index 0574051979..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/matchable_resource.proto - -#include "flyteidl/admin/matchable_resource.pb.h" -#include "flyteidl/admin/matchable_resource.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h deleted file mode 100644 index c6fe673d08..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/matchable_resource.proto -#ifndef GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED - -#include "flyteidl/admin/matchable_resource.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fmatchable_5fresource_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc deleted file mode 100644 index b38613ca8a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.cc +++ /dev/null @@ -1,6057 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/matchable_resource.proto - -#include "flyteidl/admin/matchable_resource.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcluster_5fassignment_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fwrappers_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto; -namespace flyteidl { -namespace admin { -class TaskResourceSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskResourceSpec_default_instance_; -class TaskResourceAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskResourceAttributes_default_instance_; -class ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; -class ClusterResourceAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ClusterResourceAttributes_default_instance_; -class ExecutionQueueAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionQueueAttributes_default_instance_; -class ExecutionClusterLabelDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionClusterLabel_default_instance_; -class PluginOverrideDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PluginOverride_default_instance_; -class PluginOverridesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PluginOverrides_default_instance_; -class WorkflowExecutionConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionConfig_default_instance_; -class MatchingAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::admin::TaskResourceAttributes* task_resource_attributes_; - const ::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes_; - const ::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes_; - const ::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label_; - const ::flyteidl::core::QualityOfService* quality_of_service_; - const ::flyteidl::admin::PluginOverrides* plugin_overrides_; - const ::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config_; - const ::flyteidl::admin::ClusterAssignment* cluster_assignment_; -} _MatchingAttributes_default_instance_; -class MatchableAttributesConfigurationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _MatchableAttributesConfiguration_default_instance_; -class ListMatchableAttributesRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListMatchableAttributesRequest_default_instance_; -class ListMatchableAttributesResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListMatchableAttributesResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsTaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskResourceSpec_default_instance_; - new (ptr) ::flyteidl::admin::TaskResourceSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskResourceSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsTaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskResourceAttributes_default_instance_; - new (ptr) ::flyteidl::admin::TaskResourceAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskResourceAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse(); - } - ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ClusterResourceAttributes_default_instance_; - new (ptr) ::flyteidl::admin::ClusterResourceAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ClusterResourceAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionQueueAttributes_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionQueueAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionQueueAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ExecutionClusterLabel_default_instance_; - new (ptr) ::flyteidl::admin::ExecutionClusterLabel(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ExecutionClusterLabel::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsPluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_PluginOverride_default_instance_; - new (ptr) ::flyteidl::admin::PluginOverride(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::PluginOverride::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsPluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_PluginOverrides_default_instance_; - new (ptr) ::flyteidl::admin::PluginOverrides(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::PluginOverrides::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsWorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowExecutionConfig_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowExecutionConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowExecutionConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsWorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_RawOutputDataConfig_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Annotations_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_BoolValue_google_2fprotobuf_2fwrappers_2eproto.base, - &scc_info_Envs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsMatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_MatchingAttributes_default_instance_; - new (ptr) ::flyteidl::admin::MatchingAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::MatchingAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsMatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base, - &scc_info_ClusterAssignment_flyteidl_2fadmin_2fcluster_5fassignment_2eproto.base,}}; - -static void InitDefaultsMatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_; - new (ptr) ::flyteidl::admin::MatchableAttributesConfiguration(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::MatchableAttributesConfiguration::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ListMatchableAttributesRequest_default_instance_; - new (ptr) ::flyteidl::admin::ListMatchableAttributesRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ListMatchableAttributesRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, {}}; - -static void InitDefaultsListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ListMatchableAttributesResponse_default_instance_; - new (ptr) ::flyteidl::admin::ListMatchableAttributesResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ListMatchableAttributesResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto}, { - &scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ClusterResourceAttributes_AttributesEntry_DoNotUse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[13]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, cpu_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, gpu_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, memory_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, storage_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceSpec, ephemeral_storage_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, defaults_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskResourceAttributes, limits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ClusterResourceAttributes, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionQueueAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionQueueAttributes, tags_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClusterLabel, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ExecutionClusterLabel, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, plugin_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverride, missing_plugin_behavior_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverrides, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::PluginOverrides, overrides_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, max_parallelism_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, security_context_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, raw_output_data_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, annotations_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, interruptible_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, overwrite_cache_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowExecutionConfig, envs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, task_resource_attributes_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, cluster_resource_attributes_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, execution_queue_attributes_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, execution_cluster_label_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, quality_of_service_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, plugin_overrides_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, workflow_execution_config_), - offsetof(::flyteidl::admin::MatchingAttributesDefaultTypeInternal, cluster_assignment_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchingAttributes, target_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, attributes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::MatchableAttributesConfiguration, launch_plan_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ListMatchableAttributesResponse, configurations_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::TaskResourceSpec)}, - { 10, -1, sizeof(::flyteidl::admin::TaskResourceAttributes)}, - { 17, 24, sizeof(::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse)}, - { 26, -1, sizeof(::flyteidl::admin::ClusterResourceAttributes)}, - { 32, -1, sizeof(::flyteidl::admin::ExecutionQueueAttributes)}, - { 38, -1, sizeof(::flyteidl::admin::ExecutionClusterLabel)}, - { 44, -1, sizeof(::flyteidl::admin::PluginOverride)}, - { 52, -1, sizeof(::flyteidl::admin::PluginOverrides)}, - { 58, -1, sizeof(::flyteidl::admin::WorkflowExecutionConfig)}, - { 71, -1, sizeof(::flyteidl::admin::MatchingAttributes)}, - { 85, -1, sizeof(::flyteidl::admin::MatchableAttributesConfiguration)}, - { 95, -1, sizeof(::flyteidl::admin::ListMatchableAttributesRequest)}, - { 101, -1, sizeof(::flyteidl::admin::ListMatchableAttributesResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_TaskResourceSpec_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskResourceAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ClusterResourceAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionQueueAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ExecutionClusterLabel_default_instance_), - reinterpret_cast(&::flyteidl::admin::_PluginOverride_default_instance_), - reinterpret_cast(&::flyteidl::admin::_PluginOverrides_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowExecutionConfig_default_instance_), - reinterpret_cast(&::flyteidl::admin::_MatchingAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ListMatchableAttributesRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ListMatchableAttributesResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, "flyteidl/admin/matchable_resource.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, 13, file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[] = - "\n\'flyteidl/admin/matchable_resource.prot" - "o\022\016flyteidl.admin\032\033flyteidl/admin/common" - ".proto\032\'flyteidl/admin/cluster_assignmen" - "t.proto\032\035flyteidl/core/execution.proto\032\034" - "flyteidl/core/security.proto\032\036google/pro" - "tobuf/wrappers.proto\"h\n\020TaskResourceSpec" - "\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\016\n\006memory\030\003 \001" - "(\t\022\017\n\007storage\030\004 \001(\t\022\031\n\021ephemeral_storage" - "\030\005 \001(\t\"~\n\026TaskResourceAttributes\0222\n\010defa" - "ults\030\001 \001(\0132 .flyteidl.admin.TaskResource" - "Spec\0220\n\006limits\030\002 \001(\0132 .flyteidl.admin.Ta" - "skResourceSpec\"\235\001\n\031ClusterResourceAttrib" - "utes\022M\n\nattributes\030\001 \003(\01329.flyteidl.admi" - "n.ClusterResourceAttributes.AttributesEn" - "try\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - "alue\030\002 \001(\t:\0028\001\"(\n\030ExecutionQueueAttribut" - "es\022\014\n\004tags\030\001 \003(\t\"&\n\025ExecutionClusterLabe" - "l\022\r\n\005value\030\001 \001(\t\"\301\001\n\016PluginOverride\022\021\n\tt" - "ask_type\030\001 \001(\t\022\021\n\tplugin_id\030\002 \003(\t\022U\n\027mis" - "sing_plugin_behavior\030\004 \001(\01624.flyteidl.ad" - "min.PluginOverride.MissingPluginBehavior" - "\"2\n\025MissingPluginBehavior\022\010\n\004FAIL\020\000\022\017\n\013U" - "SE_DEFAULT\020\001\"D\n\017PluginOverrides\0221\n\toverr" - "ides\030\001 \003(\0132\036.flyteidl.admin.PluginOverri" - "de\"\373\002\n\027WorkflowExecutionConfig\022\027\n\017max_pa" - "rallelism\030\001 \001(\005\0228\n\020security_context\030\002 \001(" - "\0132\036.flyteidl.core.SecurityContext\022C\n\026raw" - "_output_data_config\030\003 \001(\0132#.flyteidl.adm" - "in.RawOutputDataConfig\022&\n\006labels\030\004 \001(\0132\026" - ".flyteidl.admin.Labels\0220\n\013annotations\030\005 " - "\001(\0132\033.flyteidl.admin.Annotations\0221\n\rinte" - "rruptible\030\006 \001(\0132\032.google.protobuf.BoolVa" - "lue\022\027\n\017overwrite_cache\030\007 \001(\010\022\"\n\004envs\030\010 \001" - "(\0132\024.flyteidl.admin.Envs\"\341\004\n\022MatchingAtt" - "ributes\022J\n\030task_resource_attributes\030\001 \001(" - "\0132&.flyteidl.admin.TaskResourceAttribute" - "sH\000\022P\n\033cluster_resource_attributes\030\002 \001(\013" - "2).flyteidl.admin.ClusterResourceAttribu" - "tesH\000\022N\n\032execution_queue_attributes\030\003 \001(" - "\0132(.flyteidl.admin.ExecutionQueueAttribu" - "tesH\000\022H\n\027execution_cluster_label\030\004 \001(\0132%" - ".flyteidl.admin.ExecutionClusterLabelH\000\022" - "=\n\022quality_of_service\030\005 \001(\0132\037.flyteidl.c" - "ore.QualityOfServiceH\000\022;\n\020plugin_overrid" - "es\030\006 \001(\0132\037.flyteidl.admin.PluginOverride" - "sH\000\022L\n\031workflow_execution_config\030\007 \001(\0132\'" - ".flyteidl.admin.WorkflowExecutionConfigH" - "\000\022\?\n\022cluster_assignment\030\010 \001(\0132!.flyteidl" - ".admin.ClusterAssignmentH\000B\010\n\006target\"\242\001\n" - " MatchableAttributesConfiguration\0226\n\natt" - "ributes\030\001 \001(\0132\".flyteidl.admin.MatchingA" - "ttributes\022\016\n\006domain\030\002 \001(\t\022\017\n\007project\030\003 \001" - "(\t\022\020\n\010workflow\030\004 \001(\t\022\023\n\013launch_plan\030\005 \001(" - "\t\"Z\n\036ListMatchableAttributesRequest\0228\n\rr" - "esource_type\030\001 \001(\0162!.flyteidl.admin.Matc" - "hableResource\"k\n\037ListMatchableAttributes" - "Response\022H\n\016configurations\030\001 \003(\01320.flyte" - "idl.admin.MatchableAttributesConfigurati" - "on*\340\001\n\021MatchableResource\022\021\n\rTASK_RESOURC" - "E\020\000\022\024\n\020CLUSTER_RESOURCE\020\001\022\023\n\017EXECUTION_Q" - "UEUE\020\002\022\033\n\027EXECUTION_CLUSTER_LABEL\020\003\022$\n Q" - "UALITY_OF_SERVICE_SPECIFICATION\020\004\022\023\n\017PLU" - "GIN_OVERRIDE\020\005\022\035\n\031WORKFLOW_EXECUTION_CON" - "FIG\020\006\022\026\n\022CLUSTER_ASSIGNMENT\020\007B=Z;github." - "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" - "yteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - "flyteidl/admin/matchable_resource.proto", &assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, 2620, -}; - -void AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fcluster_5fassignment_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, - ::AddDescriptors_google_2fprotobuf_2fwrappers_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, deps, 5); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fmatchable_5fresource_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* PluginOverride_MissingPluginBehavior_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[0]; -} -bool PluginOverride_MissingPluginBehavior_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const PluginOverride_MissingPluginBehavior PluginOverride::FAIL; -const PluginOverride_MissingPluginBehavior PluginOverride::USE_DEFAULT; -const PluginOverride_MissingPluginBehavior PluginOverride::MissingPluginBehavior_MIN; -const PluginOverride_MissingPluginBehavior PluginOverride::MissingPluginBehavior_MAX; -const int PluginOverride::MissingPluginBehavior_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* MatchableResource_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[1]; -} -bool MatchableResource_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} - - -// =================================================================== - -void TaskResourceSpec::InitAsDefaultInstance() { -} -class TaskResourceSpec::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskResourceSpec::kCpuFieldNumber; -const int TaskResourceSpec::kGpuFieldNumber; -const int TaskResourceSpec::kMemoryFieldNumber; -const int TaskResourceSpec::kStorageFieldNumber; -const int TaskResourceSpec::kEphemeralStorageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskResourceSpec::TaskResourceSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskResourceSpec) -} -TaskResourceSpec::TaskResourceSpec(const TaskResourceSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cpu().size() > 0) { - cpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_); - } - gpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.gpu().size() > 0) { - gpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gpu_); - } - memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.memory().size() > 0) { - memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); - } - storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.storage().size() > 0) { - storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.storage_); - } - ephemeral_storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.ephemeral_storage().size() > 0) { - ephemeral_storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ephemeral_storage_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskResourceSpec) -} - -void TaskResourceSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - cpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - gpu_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - memory_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ephemeral_storage_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskResourceSpec::~TaskResourceSpec() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskResourceSpec) - SharedDtor(); -} - -void TaskResourceSpec::SharedDtor() { - cpu_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - gpu_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - memory_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - storage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ephemeral_storage_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskResourceSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskResourceSpec& TaskResourceSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskResourceSpec_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void TaskResourceSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskResourceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - cpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - gpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ephemeral_storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskResourceSpec::_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) { - // string cpu = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.cpu"); - object = msg->mutable_cpu(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string gpu = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.gpu"); - object = msg->mutable_gpu(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string memory = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.memory"); - object = msg->mutable_memory(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string storage = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.storage"); - object = msg->mutable_storage(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string ephemeral_storage = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskResourceSpec.ephemeral_storage"); - object = msg->mutable_ephemeral_storage(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskResourceSpec::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.TaskResourceSpec) - 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)) { - // string cpu = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cpu())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cpu().data(), static_cast(this->cpu().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskResourceSpec.cpu")); - } else { - goto handle_unusual; - } - break; - } - - // string gpu = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_gpu())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gpu().data(), static_cast(this->gpu().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskResourceSpec.gpu")); - } else { - goto handle_unusual; - } - break; - } - - // string memory = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_memory())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->memory().data(), static_cast(this->memory().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskResourceSpec.memory")); - } else { - goto handle_unusual; - } - break; - } - - // string storage = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_storage())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->storage().data(), static_cast(this->storage().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskResourceSpec.storage")); - } else { - goto handle_unusual; - } - break; - } - - // string ephemeral_storage = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_ephemeral_storage())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskResourceSpec.ephemeral_storage")); - } 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.TaskResourceSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskResourceSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskResourceSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskResourceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cpu = 1; - if (this->cpu().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cpu().data(), static_cast(this->cpu().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.cpu"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cpu(), output); - } - - // string gpu = 2; - if (this->gpu().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gpu().data(), static_cast(this->gpu().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.gpu"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->gpu(), output); - } - - // string memory = 3; - if (this->memory().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->memory().data(), static_cast(this->memory().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.memory"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->memory(), output); - } - - // string storage = 4; - if (this->storage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->storage().data(), static_cast(this->storage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.storage"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->storage(), output); - } - - // string ephemeral_storage = 5; - if (this->ephemeral_storage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.ephemeral_storage"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->ephemeral_storage(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskResourceSpec) -} - -::google::protobuf::uint8* TaskResourceSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskResourceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cpu = 1; - if (this->cpu().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cpu().data(), static_cast(this->cpu().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.cpu"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cpu(), target); - } - - // string gpu = 2; - if (this->gpu().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->gpu().data(), static_cast(this->gpu().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.gpu"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->gpu(), target); - } - - // string memory = 3; - if (this->memory().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->memory().data(), static_cast(this->memory().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.memory"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->memory(), target); - } - - // string storage = 4; - if (this->storage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->storage().data(), static_cast(this->storage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.storage"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->storage(), target); - } - - // string ephemeral_storage = 5; - if (this->ephemeral_storage().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ephemeral_storage().data(), static_cast(this->ephemeral_storage().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskResourceSpec.ephemeral_storage"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->ephemeral_storage(), 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.TaskResourceSpec) - return target; -} - -size_t TaskResourceSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskResourceSpec) - 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; - - // string cpu = 1; - if (this->cpu().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cpu()); - } - - // string gpu = 2; - if (this->gpu().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->gpu()); - } - - // string memory = 3; - if (this->memory().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->memory()); - } - - // string storage = 4; - if (this->storage().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->storage()); - } - - // string ephemeral_storage = 5; - if (this->ephemeral_storage().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->ephemeral_storage()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskResourceSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskResourceSpec) - GOOGLE_DCHECK_NE(&from, this); - const TaskResourceSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskResourceSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskResourceSpec) - MergeFrom(*source); - } -} - -void TaskResourceSpec::MergeFrom(const TaskResourceSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskResourceSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.cpu().size() > 0) { - - cpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cpu_); - } - if (from.gpu().size() > 0) { - - gpu_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gpu_); - } - if (from.memory().size() > 0) { - - memory_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.memory_); - } - if (from.storage().size() > 0) { - - storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.storage_); - } - if (from.ephemeral_storage().size() > 0) { - - ephemeral_storage_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ephemeral_storage_); - } -} - -void TaskResourceSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskResourceSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskResourceSpec::CopyFrom(const TaskResourceSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskResourceSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskResourceSpec::IsInitialized() const { - return true; -} - -void TaskResourceSpec::Swap(TaskResourceSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskResourceSpec::InternalSwap(TaskResourceSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - cpu_.Swap(&other->cpu_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - gpu_.Swap(&other->gpu_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - memory_.Swap(&other->memory_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - storage_.Swap(&other->storage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - ephemeral_storage_.Swap(&other->ephemeral_storage_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskResourceSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskResourceAttributes::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskResourceAttributes_default_instance_._instance.get_mutable()->defaults_ = const_cast< ::flyteidl::admin::TaskResourceSpec*>( - ::flyteidl::admin::TaskResourceSpec::internal_default_instance()); - ::flyteidl::admin::_TaskResourceAttributes_default_instance_._instance.get_mutable()->limits_ = const_cast< ::flyteidl::admin::TaskResourceSpec*>( - ::flyteidl::admin::TaskResourceSpec::internal_default_instance()); -} -class TaskResourceAttributes::HasBitSetters { - public: - static const ::flyteidl::admin::TaskResourceSpec& defaults(const TaskResourceAttributes* msg); - static const ::flyteidl::admin::TaskResourceSpec& limits(const TaskResourceAttributes* msg); -}; - -const ::flyteidl::admin::TaskResourceSpec& -TaskResourceAttributes::HasBitSetters::defaults(const TaskResourceAttributes* msg) { - return *msg->defaults_; -} -const ::flyteidl::admin::TaskResourceSpec& -TaskResourceAttributes::HasBitSetters::limits(const TaskResourceAttributes* msg) { - return *msg->limits_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskResourceAttributes::kDefaultsFieldNumber; -const int TaskResourceAttributes::kLimitsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskResourceAttributes::TaskResourceAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskResourceAttributes) -} -TaskResourceAttributes::TaskResourceAttributes(const TaskResourceAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_defaults()) { - defaults_ = new ::flyteidl::admin::TaskResourceSpec(*from.defaults_); - } else { - defaults_ = nullptr; - } - if (from.has_limits()) { - limits_ = new ::flyteidl::admin::TaskResourceSpec(*from.limits_); - } else { - limits_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskResourceAttributes) -} - -void TaskResourceAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::memset(&defaults_, 0, static_cast( - reinterpret_cast(&limits_) - - reinterpret_cast(&defaults_)) + sizeof(limits_)); -} - -TaskResourceAttributes::~TaskResourceAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskResourceAttributes) - SharedDtor(); -} - -void TaskResourceAttributes::SharedDtor() { - if (this != internal_default_instance()) delete defaults_; - if (this != internal_default_instance()) delete limits_; -} - -void TaskResourceAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskResourceAttributes& TaskResourceAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void TaskResourceAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && defaults_ != nullptr) { - delete defaults_; - } - defaults_ = nullptr; - if (GetArenaNoVirtual() == nullptr && limits_ != nullptr) { - delete limits_; - } - limits_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskResourceAttributes::_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.TaskResourceSpec defaults = 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::TaskResourceSpec::_InternalParse; - object = msg->mutable_defaults(); - 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.TaskResourceSpec limits = 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::TaskResourceSpec::_InternalParse; - object = msg->mutable_limits(); - 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 TaskResourceAttributes::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.TaskResourceAttributes) - 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.TaskResourceSpec defaults = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_defaults())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.TaskResourceSpec limits = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_limits())); - } 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.TaskResourceAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskResourceAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskResourceAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.TaskResourceSpec defaults = 1; - if (this->has_defaults()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::defaults(this), output); - } - - // .flyteidl.admin.TaskResourceSpec limits = 2; - if (this->has_limits()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::limits(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.TaskResourceAttributes) -} - -::google::protobuf::uint8* TaskResourceAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.TaskResourceSpec defaults = 1; - if (this->has_defaults()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::defaults(this), target); - } - - // .flyteidl.admin.TaskResourceSpec limits = 2; - if (this->has_limits()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::limits(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.TaskResourceAttributes) - return target; -} - -size_t TaskResourceAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskResourceAttributes) - 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.admin.TaskResourceSpec defaults = 1; - if (this->has_defaults()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *defaults_); - } - - // .flyteidl.admin.TaskResourceSpec limits = 2; - if (this->has_limits()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *limits_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskResourceAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskResourceAttributes) - GOOGLE_DCHECK_NE(&from, this); - const TaskResourceAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskResourceAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskResourceAttributes) - MergeFrom(*source); - } -} - -void TaskResourceAttributes::MergeFrom(const TaskResourceAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskResourceAttributes) - 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_defaults()) { - mutable_defaults()->::flyteidl::admin::TaskResourceSpec::MergeFrom(from.defaults()); - } - if (from.has_limits()) { - mutable_limits()->::flyteidl::admin::TaskResourceSpec::MergeFrom(from.limits()); - } -} - -void TaskResourceAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskResourceAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskResourceAttributes::CopyFrom(const TaskResourceAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskResourceAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskResourceAttributes::IsInitialized() const { - return true; -} - -void TaskResourceAttributes::Swap(TaskResourceAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskResourceAttributes::InternalSwap(TaskResourceAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(defaults_, other->defaults_); - swap(limits_, other->limits_); -} - -::google::protobuf::Metadata TaskResourceAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -ClusterResourceAttributes_AttributesEntry_DoNotUse::ClusterResourceAttributes_AttributesEntry_DoNotUse() {} -ClusterResourceAttributes_AttributesEntry_DoNotUse::ClusterResourceAttributes_AttributesEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void ClusterResourceAttributes_AttributesEntry_DoNotUse::MergeFrom(const ClusterResourceAttributes_AttributesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata ClusterResourceAttributes_AttributesEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[2]; -} -void ClusterResourceAttributes_AttributesEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ClusterResourceAttributes_AttributesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - ClusterResourceAttributes_AttributesEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void ClusterResourceAttributes::InitAsDefaultInstance() { -} -class ClusterResourceAttributes::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ClusterResourceAttributes::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ClusterResourceAttributes::ClusterResourceAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ClusterResourceAttributes) -} -ClusterResourceAttributes::ClusterResourceAttributes(const ClusterResourceAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - attributes_.MergeFrom(from.attributes_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ClusterResourceAttributes) -} - -void ClusterResourceAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); -} - -ClusterResourceAttributes::~ClusterResourceAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ClusterResourceAttributes) - SharedDtor(); -} - -void ClusterResourceAttributes::SharedDtor() { -} - -void ClusterResourceAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ClusterResourceAttributes& ClusterResourceAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ClusterResourceAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void ClusterResourceAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ClusterResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - attributes_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ClusterResourceAttributes::_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) { - // map attributes = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->attributes_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 ClusterResourceAttributes::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.ClusterResourceAttributes) - 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)) { - // map attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - ClusterResourceAttributes_AttributesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - ClusterResourceAttributes_AttributesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&attributes_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value")); - } 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.ClusterResourceAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ClusterResourceAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ClusterResourceAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ClusterResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map attributes = 1; - if (!this->attributes().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->attributes().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->attributes().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->attributes().begin(); - it != this->attributes().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(attributes_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->attributes().begin(); - it != this->attributes().end(); ++it) { - entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ClusterResourceAttributes) -} - -::google::protobuf::uint8* ClusterResourceAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ClusterResourceAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map attributes = 1; - if (!this->attributes().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ClusterResourceAttributes.AttributesEntry.value"); - } - }; - - if (false && - this->attributes().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->attributes().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->attributes().begin(); - it != this->attributes().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(attributes_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->attributes().begin(); - it != this->attributes().end(); ++it) { - entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.ClusterResourceAttributes) - return target; -} - -size_t ClusterResourceAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ClusterResourceAttributes) - 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; - - // map attributes = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->attributes_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->attributes().begin(); - it != this->attributes().end(); ++it) { - entry.reset(attributes_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ClusterResourceAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ClusterResourceAttributes) - GOOGLE_DCHECK_NE(&from, this); - const ClusterResourceAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ClusterResourceAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ClusterResourceAttributes) - MergeFrom(*source); - } -} - -void ClusterResourceAttributes::MergeFrom(const ClusterResourceAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ClusterResourceAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - attributes_.MergeFrom(from.attributes_); -} - -void ClusterResourceAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ClusterResourceAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ClusterResourceAttributes::CopyFrom(const ClusterResourceAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ClusterResourceAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ClusterResourceAttributes::IsInitialized() const { - return true; -} - -void ClusterResourceAttributes::Swap(ClusterResourceAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void ClusterResourceAttributes::InternalSwap(ClusterResourceAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - attributes_.Swap(&other->attributes_); -} - -::google::protobuf::Metadata ClusterResourceAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionQueueAttributes::InitAsDefaultInstance() { -} -class ExecutionQueueAttributes::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionQueueAttributes::kTagsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionQueueAttributes::ExecutionQueueAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionQueueAttributes) -} -ExecutionQueueAttributes::ExecutionQueueAttributes(const ExecutionQueueAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionQueueAttributes) -} - -void ExecutionQueueAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); -} - -ExecutionQueueAttributes::~ExecutionQueueAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionQueueAttributes) - SharedDtor(); -} - -void ExecutionQueueAttributes::SharedDtor() { -} - -void ExecutionQueueAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionQueueAttributes& ExecutionQueueAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionQueueAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionQueueAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionQueueAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionQueueAttributes::_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) { - // repeated string tags = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionQueueAttributes.tags"); - object = msg->add_tags(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionQueueAttributes::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.ExecutionQueueAttributes) - 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)) { - // repeated string tags = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tags())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(this->tags_size() - 1).data(), - static_cast(this->tags(this->tags_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionQueueAttributes.tags")); - } 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.ExecutionQueueAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionQueueAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionQueueAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionQueueAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string tags = 1; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionQueueAttributes.tags"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->tags(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionQueueAttributes) -} - -::google::protobuf::uint8* ExecutionQueueAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionQueueAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string tags = 1; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionQueueAttributes.tags"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->tags(i), 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.ExecutionQueueAttributes) - return target; -} - -size_t ExecutionQueueAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionQueueAttributes) - 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; - - // repeated string tags = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - for (int i = 0, n = this->tags_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tags(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionQueueAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionQueueAttributes) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionQueueAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionQueueAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionQueueAttributes) - MergeFrom(*source); - } -} - -void ExecutionQueueAttributes::MergeFrom(const ExecutionQueueAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionQueueAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); -} - -void ExecutionQueueAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionQueueAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionQueueAttributes::CopyFrom(const ExecutionQueueAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionQueueAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionQueueAttributes::IsInitialized() const { - return true; -} - -void ExecutionQueueAttributes::Swap(ExecutionQueueAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionQueueAttributes::InternalSwap(ExecutionQueueAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.InternalSwap(CastToBase(&other->tags_)); -} - -::google::protobuf::Metadata ExecutionQueueAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionClusterLabel::InitAsDefaultInstance() { -} -class ExecutionClusterLabel::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionClusterLabel::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionClusterLabel::ExecutionClusterLabel() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ExecutionClusterLabel) -} -ExecutionClusterLabel::ExecutionClusterLabel(const ExecutionClusterLabel& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ExecutionClusterLabel) -} - -void ExecutionClusterLabel::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ExecutionClusterLabel::~ExecutionClusterLabel() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ExecutionClusterLabel) - SharedDtor(); -} - -void ExecutionClusterLabel::SharedDtor() { - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ExecutionClusterLabel::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionClusterLabel& ExecutionClusterLabel::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionClusterLabel_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionClusterLabel::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ExecutionClusterLabel) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionClusterLabel::_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) { - // string value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ExecutionClusterLabel.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionClusterLabel::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.ExecutionClusterLabel) - 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)) { - // string value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ExecutionClusterLabel.value")); - } 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.ExecutionClusterLabel) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ExecutionClusterLabel) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionClusterLabel::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ExecutionClusterLabel) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string value = 1; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionClusterLabel.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ExecutionClusterLabel) -} - -::google::protobuf::uint8* ExecutionClusterLabel::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ExecutionClusterLabel) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string value = 1; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ExecutionClusterLabel.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->value(), 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.ExecutionClusterLabel) - return target; -} - -size_t ExecutionClusterLabel::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ExecutionClusterLabel) - 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; - - // string value = 1; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionClusterLabel::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ExecutionClusterLabel) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionClusterLabel* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ExecutionClusterLabel) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ExecutionClusterLabel) - MergeFrom(*source); - } -} - -void ExecutionClusterLabel::MergeFrom(const ExecutionClusterLabel& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ExecutionClusterLabel) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void ExecutionClusterLabel::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ExecutionClusterLabel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionClusterLabel::CopyFrom(const ExecutionClusterLabel& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ExecutionClusterLabel) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionClusterLabel::IsInitialized() const { - return true; -} - -void ExecutionClusterLabel::Swap(ExecutionClusterLabel* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionClusterLabel::InternalSwap(ExecutionClusterLabel* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ExecutionClusterLabel::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PluginOverride::InitAsDefaultInstance() { -} -class PluginOverride::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PluginOverride::kTaskTypeFieldNumber; -const int PluginOverride::kPluginIdFieldNumber; -const int PluginOverride::kMissingPluginBehaviorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PluginOverride::PluginOverride() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.PluginOverride) -} -PluginOverride::PluginOverride(const PluginOverride& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - plugin_id_(from.plugin_id_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - missing_plugin_behavior_ = from.missing_plugin_behavior_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PluginOverride) -} - -void PluginOverride::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - missing_plugin_behavior_ = 0; -} - -PluginOverride::~PluginOverride() { - // @@protoc_insertion_point(destructor:flyteidl.admin.PluginOverride) - SharedDtor(); -} - -void PluginOverride::SharedDtor() { - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PluginOverride::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PluginOverride& PluginOverride::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PluginOverride_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void PluginOverride::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PluginOverride) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - plugin_id_.Clear(); - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - missing_plugin_behavior_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PluginOverride::_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) { - // string task_type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.PluginOverride.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string plugin_id = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.PluginOverride.plugin_id"); - object = msg->add_plugin_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_missing_plugin_behavior(static_cast<::flyteidl::admin::PluginOverride_MissingPluginBehavior>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PluginOverride::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.PluginOverride) - 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)) { - // string task_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.PluginOverride.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string plugin_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_plugin_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_id(this->plugin_id_size() - 1).data(), - static_cast(this->plugin_id(this->plugin_id_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.PluginOverride.plugin_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_missing_plugin_behavior(static_cast< ::flyteidl::admin::PluginOverride_MissingPluginBehavior >(value)); - } 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.PluginOverride) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.PluginOverride) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PluginOverride::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.PluginOverride) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PluginOverride.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->task_type(), output); - } - - // repeated string plugin_id = 2; - for (int i = 0, n = this->plugin_id_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_id(i).data(), static_cast(this->plugin_id(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PluginOverride.plugin_id"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->plugin_id(i), output); - } - - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - if (this->missing_plugin_behavior() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->missing_plugin_behavior(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.PluginOverride) -} - -::google::protobuf::uint8* PluginOverride::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PluginOverride) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PluginOverride.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->task_type(), target); - } - - // repeated string plugin_id = 2; - for (int i = 0, n = this->plugin_id_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_id(i).data(), static_cast(this->plugin_id(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.PluginOverride.plugin_id"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->plugin_id(i), target); - } - - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - if (this->missing_plugin_behavior() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->missing_plugin_behavior(), 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.PluginOverride) - return target; -} - -size_t PluginOverride::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PluginOverride) - 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; - - // repeated string plugin_id = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->plugin_id_size()); - for (int i = 0, n = this->plugin_id_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->plugin_id(i)); - } - - // string task_type = 1; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - if (this->missing_plugin_behavior() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->missing_plugin_behavior()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PluginOverride::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PluginOverride) - GOOGLE_DCHECK_NE(&from, this); - const PluginOverride* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PluginOverride) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PluginOverride) - MergeFrom(*source); - } -} - -void PluginOverride::MergeFrom(const PluginOverride& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PluginOverride) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - plugin_id_.MergeFrom(from.plugin_id_); - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.missing_plugin_behavior() != 0) { - set_missing_plugin_behavior(from.missing_plugin_behavior()); - } -} - -void PluginOverride::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PluginOverride) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PluginOverride::CopyFrom(const PluginOverride& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PluginOverride) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PluginOverride::IsInitialized() const { - return true; -} - -void PluginOverride::Swap(PluginOverride* other) { - if (other == this) return; - InternalSwap(other); -} -void PluginOverride::InternalSwap(PluginOverride* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - plugin_id_.InternalSwap(CastToBase(&other->plugin_id_)); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(missing_plugin_behavior_, other->missing_plugin_behavior_); -} - -::google::protobuf::Metadata PluginOverride::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PluginOverrides::InitAsDefaultInstance() { -} -class PluginOverrides::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PluginOverrides::kOverridesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PluginOverrides::PluginOverrides() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.PluginOverrides) -} -PluginOverrides::PluginOverrides(const PluginOverrides& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - overrides_(from.overrides_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.PluginOverrides) -} - -void PluginOverrides::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); -} - -PluginOverrides::~PluginOverrides() { - // @@protoc_insertion_point(destructor:flyteidl.admin.PluginOverrides) - SharedDtor(); -} - -void PluginOverrides::SharedDtor() { -} - -void PluginOverrides::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PluginOverrides& PluginOverrides::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PluginOverrides_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void PluginOverrides::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.PluginOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - overrides_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PluginOverrides::_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) { - // repeated .flyteidl.admin.PluginOverride overrides = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::PluginOverride::_InternalParse; - object = msg->add_overrides(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 PluginOverrides::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.PluginOverrides) - 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)) { - // repeated .flyteidl.admin.PluginOverride overrides = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_overrides())); - } 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.PluginOverrides) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.PluginOverrides) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PluginOverrides::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.PluginOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.PluginOverride overrides = 1; - for (unsigned int i = 0, - n = static_cast(this->overrides_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->overrides(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.PluginOverrides) -} - -::google::protobuf::uint8* PluginOverrides::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.PluginOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.PluginOverride overrides = 1; - for (unsigned int i = 0, - n = static_cast(this->overrides_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->overrides(static_cast(i)), 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.PluginOverrides) - return target; -} - -size_t PluginOverrides::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.PluginOverrides) - 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; - - // repeated .flyteidl.admin.PluginOverride overrides = 1; - { - unsigned int count = static_cast(this->overrides_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->overrides(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PluginOverrides::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.PluginOverrides) - GOOGLE_DCHECK_NE(&from, this); - const PluginOverrides* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.PluginOverrides) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.PluginOverrides) - MergeFrom(*source); - } -} - -void PluginOverrides::MergeFrom(const PluginOverrides& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.PluginOverrides) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - overrides_.MergeFrom(from.overrides_); -} - -void PluginOverrides::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.PluginOverrides) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PluginOverrides::CopyFrom(const PluginOverrides& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.PluginOverrides) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PluginOverrides::IsInitialized() const { - return true; -} - -void PluginOverrides::Swap(PluginOverrides* other) { - if (other == this) return; - InternalSwap(other); -} -void PluginOverrides::InternalSwap(PluginOverrides* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&overrides_)->InternalSwap(CastToBase(&other->overrides_)); -} - -::google::protobuf::Metadata PluginOverrides::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionConfig::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( - ::flyteidl::core::SecurityContext::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->raw_output_data_config_ = const_cast< ::flyteidl::admin::RawOutputDataConfig*>( - ::flyteidl::admin::RawOutputDataConfig::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( - ::flyteidl::admin::Labels::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::flyteidl::admin::Annotations*>( - ::flyteidl::admin::Annotations::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->interruptible_ = const_cast< ::google::protobuf::BoolValue*>( - ::google::protobuf::BoolValue::internal_default_instance()); - ::flyteidl::admin::_WorkflowExecutionConfig_default_instance_._instance.get_mutable()->envs_ = const_cast< ::flyteidl::admin::Envs*>( - ::flyteidl::admin::Envs::internal_default_instance()); -} -class WorkflowExecutionConfig::HasBitSetters { - public: - static const ::flyteidl::core::SecurityContext& security_context(const WorkflowExecutionConfig* msg); - static const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config(const WorkflowExecutionConfig* msg); - static const ::flyteidl::admin::Labels& labels(const WorkflowExecutionConfig* msg); - static const ::flyteidl::admin::Annotations& annotations(const WorkflowExecutionConfig* msg); - static const ::google::protobuf::BoolValue& interruptible(const WorkflowExecutionConfig* msg); - static const ::flyteidl::admin::Envs& envs(const WorkflowExecutionConfig* msg); -}; - -const ::flyteidl::core::SecurityContext& -WorkflowExecutionConfig::HasBitSetters::security_context(const WorkflowExecutionConfig* msg) { - return *msg->security_context_; -} -const ::flyteidl::admin::RawOutputDataConfig& -WorkflowExecutionConfig::HasBitSetters::raw_output_data_config(const WorkflowExecutionConfig* msg) { - return *msg->raw_output_data_config_; -} -const ::flyteidl::admin::Labels& -WorkflowExecutionConfig::HasBitSetters::labels(const WorkflowExecutionConfig* msg) { - return *msg->labels_; -} -const ::flyteidl::admin::Annotations& -WorkflowExecutionConfig::HasBitSetters::annotations(const WorkflowExecutionConfig* msg) { - return *msg->annotations_; -} -const ::google::protobuf::BoolValue& -WorkflowExecutionConfig::HasBitSetters::interruptible(const WorkflowExecutionConfig* msg) { - return *msg->interruptible_; -} -const ::flyteidl::admin::Envs& -WorkflowExecutionConfig::HasBitSetters::envs(const WorkflowExecutionConfig* msg) { - return *msg->envs_; -} -void WorkflowExecutionConfig::clear_security_context() { - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; -} -void WorkflowExecutionConfig::clear_raw_output_data_config() { - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; -} -void WorkflowExecutionConfig::clear_labels() { - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; -} -void WorkflowExecutionConfig::clear_annotations() { - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; -} -void WorkflowExecutionConfig::clear_interruptible() { - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; -} -void WorkflowExecutionConfig::clear_envs() { - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionConfig::kMaxParallelismFieldNumber; -const int WorkflowExecutionConfig::kSecurityContextFieldNumber; -const int WorkflowExecutionConfig::kRawOutputDataConfigFieldNumber; -const int WorkflowExecutionConfig::kLabelsFieldNumber; -const int WorkflowExecutionConfig::kAnnotationsFieldNumber; -const int WorkflowExecutionConfig::kInterruptibleFieldNumber; -const int WorkflowExecutionConfig::kOverwriteCacheFieldNumber; -const int WorkflowExecutionConfig::kEnvsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionConfig::WorkflowExecutionConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowExecutionConfig) -} -WorkflowExecutionConfig::WorkflowExecutionConfig(const WorkflowExecutionConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_security_context()) { - security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); - } else { - security_context_ = nullptr; - } - if (from.has_raw_output_data_config()) { - raw_output_data_config_ = new ::flyteidl::admin::RawOutputDataConfig(*from.raw_output_data_config_); - } else { - raw_output_data_config_ = nullptr; - } - if (from.has_labels()) { - labels_ = new ::flyteidl::admin::Labels(*from.labels_); - } else { - labels_ = nullptr; - } - if (from.has_annotations()) { - annotations_ = new ::flyteidl::admin::Annotations(*from.annotations_); - } else { - annotations_ = nullptr; - } - if (from.has_interruptible()) { - interruptible_ = new ::google::protobuf::BoolValue(*from.interruptible_); - } else { - interruptible_ = nullptr; - } - if (from.has_envs()) { - envs_ = new ::flyteidl::admin::Envs(*from.envs_); - } else { - envs_ = nullptr; - } - ::memcpy(&max_parallelism_, &from.max_parallelism_, - static_cast(reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowExecutionConfig) -} - -void WorkflowExecutionConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - ::memset(&security_context_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&security_context_)) + sizeof(overwrite_cache_)); -} - -WorkflowExecutionConfig::~WorkflowExecutionConfig() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowExecutionConfig) - SharedDtor(); -} - -void WorkflowExecutionConfig::SharedDtor() { - if (this != internal_default_instance()) delete security_context_; - if (this != internal_default_instance()) delete raw_output_data_config_; - if (this != internal_default_instance()) delete labels_; - if (this != internal_default_instance()) delete annotations_; - if (this != internal_default_instance()) delete interruptible_; - if (this != internal_default_instance()) delete envs_; -} - -void WorkflowExecutionConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionConfig& WorkflowExecutionConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionConfig_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowExecutionConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; - if (GetArenaNoVirtual() == nullptr && raw_output_data_config_ != nullptr) { - delete raw_output_data_config_; - } - raw_output_data_config_ = nullptr; - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; - if (GetArenaNoVirtual() == nullptr && interruptible_ != nullptr) { - delete interruptible_; - } - interruptible_ = nullptr; - if (GetArenaNoVirtual() == nullptr && envs_ != nullptr) { - delete envs_; - } - envs_ = nullptr; - ::memset(&max_parallelism_, 0, static_cast( - reinterpret_cast(&overwrite_cache_) - - reinterpret_cast(&max_parallelism_)) + sizeof(overwrite_cache_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionConfig::_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) { - // int32 max_parallelism = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_max_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.SecurityContext security_context = 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::core::SecurityContext::_InternalParse; - object = msg->mutable_security_context(); - 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.RawOutputDataConfig raw_output_data_config = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::RawOutputDataConfig::_InternalParse; - object = msg->mutable_raw_output_data_config(); - 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.Labels labels = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Labels::_InternalParse; - object = msg->mutable_labels(); - 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.Annotations annotations = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Annotations::_InternalParse; - object = msg->mutable_annotations(); - 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; - } - // .google.protobuf.BoolValue interruptible = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::BoolValue::_InternalParse; - object = msg->mutable_interruptible(); - 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; - } - // bool overwrite_cache = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_overwrite_cache(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.Envs envs = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Envs::_InternalParse; - object = msg->mutable_envs(); - 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 WorkflowExecutionConfig::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.WorkflowExecutionConfig) - 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)) { - // int32 max_parallelism = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_parallelism_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SecurityContext security_context = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_security_context())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_output_data_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Labels labels = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_labels())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Annotations annotations = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_annotations())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.BoolValue interruptible = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interruptible())); - } else { - goto handle_unusual; - } - break; - } - - // bool overwrite_cache = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &overwrite_cache_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Envs envs = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_envs())); - } 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.WorkflowExecutionConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowExecutionConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowExecutionConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 max_parallelism = 1; - if (this->max_parallelism() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->max_parallelism(), output); - } - - // .flyteidl.core.SecurityContext security_context = 2; - if (this->has_security_context()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::security_context(this), output); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - if (this->has_raw_output_data_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::raw_output_data_config(this), output); - } - - // .flyteidl.admin.Labels labels = 4; - if (this->has_labels()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::labels(this), output); - } - - // .flyteidl.admin.Annotations annotations = 5; - if (this->has_annotations()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::annotations(this), output); - } - - // .google.protobuf.BoolValue interruptible = 6; - if (this->has_interruptible()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::interruptible(this), output); - } - - // bool overwrite_cache = 7; - if (this->overwrite_cache() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->overwrite_cache(), output); - } - - // .flyteidl.admin.Envs envs = 8; - if (this->has_envs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::envs(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.WorkflowExecutionConfig) -} - -::google::protobuf::uint8* WorkflowExecutionConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowExecutionConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 max_parallelism = 1; - if (this->max_parallelism() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->max_parallelism(), target); - } - - // .flyteidl.core.SecurityContext security_context = 2; - if (this->has_security_context()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::security_context(this), target); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - if (this->has_raw_output_data_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::raw_output_data_config(this), target); - } - - // .flyteidl.admin.Labels labels = 4; - if (this->has_labels()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::labels(this), target); - } - - // .flyteidl.admin.Annotations annotations = 5; - if (this->has_annotations()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::annotations(this), target); - } - - // .google.protobuf.BoolValue interruptible = 6; - if (this->has_interruptible()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::interruptible(this), target); - } - - // bool overwrite_cache = 7; - if (this->overwrite_cache() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->overwrite_cache(), target); - } - - // .flyteidl.admin.Envs envs = 8; - if (this->has_envs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::envs(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.WorkflowExecutionConfig) - return target; -} - -size_t WorkflowExecutionConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowExecutionConfig) - 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.SecurityContext security_context = 2; - if (this->has_security_context()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *security_context_); - } - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - if (this->has_raw_output_data_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_output_data_config_); - } - - // .flyteidl.admin.Labels labels = 4; - if (this->has_labels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *labels_); - } - - // .flyteidl.admin.Annotations annotations = 5; - if (this->has_annotations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *annotations_); - } - - // .google.protobuf.BoolValue interruptible = 6; - if (this->has_interruptible()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interruptible_); - } - - // .flyteidl.admin.Envs envs = 8; - if (this->has_envs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *envs_); - } - - // int32 max_parallelism = 1; - if (this->max_parallelism() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_parallelism()); - } - - // bool overwrite_cache = 7; - if (this->overwrite_cache() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowExecutionConfig) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowExecutionConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowExecutionConfig) - MergeFrom(*source); - } -} - -void WorkflowExecutionConfig::MergeFrom(const WorkflowExecutionConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowExecutionConfig) - 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_security_context()) { - mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); - } - if (from.has_raw_output_data_config()) { - mutable_raw_output_data_config()->::flyteidl::admin::RawOutputDataConfig::MergeFrom(from.raw_output_data_config()); - } - if (from.has_labels()) { - mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); - } - if (from.has_annotations()) { - mutable_annotations()->::flyteidl::admin::Annotations::MergeFrom(from.annotations()); - } - if (from.has_interruptible()) { - mutable_interruptible()->::google::protobuf::BoolValue::MergeFrom(from.interruptible()); - } - if (from.has_envs()) { - mutable_envs()->::flyteidl::admin::Envs::MergeFrom(from.envs()); - } - if (from.max_parallelism() != 0) { - set_max_parallelism(from.max_parallelism()); - } - if (from.overwrite_cache() != 0) { - set_overwrite_cache(from.overwrite_cache()); - } -} - -void WorkflowExecutionConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowExecutionConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionConfig::CopyFrom(const WorkflowExecutionConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowExecutionConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionConfig::IsInitialized() const { - return true; -} - -void WorkflowExecutionConfig::Swap(WorkflowExecutionConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionConfig::InternalSwap(WorkflowExecutionConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(security_context_, other->security_context_); - swap(raw_output_data_config_, other->raw_output_data_config_); - swap(labels_, other->labels_); - swap(annotations_, other->annotations_); - swap(interruptible_, other->interruptible_); - swap(envs_, other->envs_); - swap(max_parallelism_, other->max_parallelism_); - swap(overwrite_cache_, other->overwrite_cache_); -} - -::google::protobuf::Metadata WorkflowExecutionConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void MatchingAttributes::InitAsDefaultInstance() { - ::flyteidl::admin::_MatchingAttributes_default_instance_.task_resource_attributes_ = const_cast< ::flyteidl::admin::TaskResourceAttributes*>( - ::flyteidl::admin::TaskResourceAttributes::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.cluster_resource_attributes_ = const_cast< ::flyteidl::admin::ClusterResourceAttributes*>( - ::flyteidl::admin::ClusterResourceAttributes::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.execution_queue_attributes_ = const_cast< ::flyteidl::admin::ExecutionQueueAttributes*>( - ::flyteidl::admin::ExecutionQueueAttributes::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.execution_cluster_label_ = const_cast< ::flyteidl::admin::ExecutionClusterLabel*>( - ::flyteidl::admin::ExecutionClusterLabel::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( - ::flyteidl::core::QualityOfService::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.plugin_overrides_ = const_cast< ::flyteidl::admin::PluginOverrides*>( - ::flyteidl::admin::PluginOverrides::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.workflow_execution_config_ = const_cast< ::flyteidl::admin::WorkflowExecutionConfig*>( - ::flyteidl::admin::WorkflowExecutionConfig::internal_default_instance()); - ::flyteidl::admin::_MatchingAttributes_default_instance_.cluster_assignment_ = const_cast< ::flyteidl::admin::ClusterAssignment*>( - ::flyteidl::admin::ClusterAssignment::internal_default_instance()); -} -class MatchingAttributes::HasBitSetters { - public: - static const ::flyteidl::admin::TaskResourceAttributes& task_resource_attributes(const MatchingAttributes* msg); - static const ::flyteidl::admin::ClusterResourceAttributes& cluster_resource_attributes(const MatchingAttributes* msg); - static const ::flyteidl::admin::ExecutionQueueAttributes& execution_queue_attributes(const MatchingAttributes* msg); - static const ::flyteidl::admin::ExecutionClusterLabel& execution_cluster_label(const MatchingAttributes* msg); - static const ::flyteidl::core::QualityOfService& quality_of_service(const MatchingAttributes* msg); - static const ::flyteidl::admin::PluginOverrides& plugin_overrides(const MatchingAttributes* msg); - static const ::flyteidl::admin::WorkflowExecutionConfig& workflow_execution_config(const MatchingAttributes* msg); - static const ::flyteidl::admin::ClusterAssignment& cluster_assignment(const MatchingAttributes* msg); -}; - -const ::flyteidl::admin::TaskResourceAttributes& -MatchingAttributes::HasBitSetters::task_resource_attributes(const MatchingAttributes* msg) { - return *msg->target_.task_resource_attributes_; -} -const ::flyteidl::admin::ClusterResourceAttributes& -MatchingAttributes::HasBitSetters::cluster_resource_attributes(const MatchingAttributes* msg) { - return *msg->target_.cluster_resource_attributes_; -} -const ::flyteidl::admin::ExecutionQueueAttributes& -MatchingAttributes::HasBitSetters::execution_queue_attributes(const MatchingAttributes* msg) { - return *msg->target_.execution_queue_attributes_; -} -const ::flyteidl::admin::ExecutionClusterLabel& -MatchingAttributes::HasBitSetters::execution_cluster_label(const MatchingAttributes* msg) { - return *msg->target_.execution_cluster_label_; -} -const ::flyteidl::core::QualityOfService& -MatchingAttributes::HasBitSetters::quality_of_service(const MatchingAttributes* msg) { - return *msg->target_.quality_of_service_; -} -const ::flyteidl::admin::PluginOverrides& -MatchingAttributes::HasBitSetters::plugin_overrides(const MatchingAttributes* msg) { - return *msg->target_.plugin_overrides_; -} -const ::flyteidl::admin::WorkflowExecutionConfig& -MatchingAttributes::HasBitSetters::workflow_execution_config(const MatchingAttributes* msg) { - return *msg->target_.workflow_execution_config_; -} -const ::flyteidl::admin::ClusterAssignment& -MatchingAttributes::HasBitSetters::cluster_assignment(const MatchingAttributes* msg) { - return *msg->target_.cluster_assignment_; -} -void MatchingAttributes::set_allocated_task_resource_attributes(::flyteidl::admin::TaskResourceAttributes* task_resource_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (task_resource_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_resource_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_resource_attributes, submessage_arena); - } - set_has_task_resource_attributes(); - target_.task_resource_attributes_ = task_resource_attributes; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.task_resource_attributes) -} -void MatchingAttributes::set_allocated_cluster_resource_attributes(::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (cluster_resource_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cluster_resource_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, cluster_resource_attributes, submessage_arena); - } - set_has_cluster_resource_attributes(); - target_.cluster_resource_attributes_ = cluster_resource_attributes; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) -} -void MatchingAttributes::set_allocated_execution_queue_attributes(::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (execution_queue_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_queue_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_queue_attributes, submessage_arena); - } - set_has_execution_queue_attributes(); - target_.execution_queue_attributes_ = execution_queue_attributes; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.execution_queue_attributes) -} -void MatchingAttributes::set_allocated_execution_cluster_label(::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (execution_cluster_label) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_cluster_label = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_cluster_label, submessage_arena); - } - set_has_execution_cluster_label(); - target_.execution_cluster_label_ = execution_cluster_label; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.execution_cluster_label) -} -void MatchingAttributes::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (quality_of_service) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - quality_of_service = ::google::protobuf::internal::GetOwnedMessage( - message_arena, quality_of_service, submessage_arena); - } - set_has_quality_of_service(); - target_.quality_of_service_ = quality_of_service; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.quality_of_service) -} -void MatchingAttributes::clear_quality_of_service() { - if (has_quality_of_service()) { - delete target_.quality_of_service_; - clear_has_target(); - } -} -void MatchingAttributes::set_allocated_plugin_overrides(::flyteidl::admin::PluginOverrides* plugin_overrides) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (plugin_overrides) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - plugin_overrides = ::google::protobuf::internal::GetOwnedMessage( - message_arena, plugin_overrides, submessage_arena); - } - set_has_plugin_overrides(); - target_.plugin_overrides_ = plugin_overrides; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.plugin_overrides) -} -void MatchingAttributes::set_allocated_workflow_execution_config(::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (workflow_execution_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution_config, submessage_arena); - } - set_has_workflow_execution_config(); - target_.workflow_execution_config_ = workflow_execution_config; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.workflow_execution_config) -} -void MatchingAttributes::set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (cluster_assignment) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cluster_assignment = ::google::protobuf::internal::GetOwnedMessage( - message_arena, cluster_assignment, submessage_arena); - } - set_has_cluster_assignment(); - target_.cluster_assignment_ = cluster_assignment; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchingAttributes.cluster_assignment) -} -void MatchingAttributes::clear_cluster_assignment() { - if (has_cluster_assignment()) { - delete target_.cluster_assignment_; - clear_has_target(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MatchingAttributes::kTaskResourceAttributesFieldNumber; -const int MatchingAttributes::kClusterResourceAttributesFieldNumber; -const int MatchingAttributes::kExecutionQueueAttributesFieldNumber; -const int MatchingAttributes::kExecutionClusterLabelFieldNumber; -const int MatchingAttributes::kQualityOfServiceFieldNumber; -const int MatchingAttributes::kPluginOverridesFieldNumber; -const int MatchingAttributes::kWorkflowExecutionConfigFieldNumber; -const int MatchingAttributes::kClusterAssignmentFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MatchingAttributes::MatchingAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.MatchingAttributes) -} -MatchingAttributes::MatchingAttributes(const MatchingAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_target(); - switch (from.target_case()) { - case kTaskResourceAttributes: { - mutable_task_resource_attributes()->::flyteidl::admin::TaskResourceAttributes::MergeFrom(from.task_resource_attributes()); - break; - } - case kClusterResourceAttributes: { - mutable_cluster_resource_attributes()->::flyteidl::admin::ClusterResourceAttributes::MergeFrom(from.cluster_resource_attributes()); - break; - } - case kExecutionQueueAttributes: { - mutable_execution_queue_attributes()->::flyteidl::admin::ExecutionQueueAttributes::MergeFrom(from.execution_queue_attributes()); - break; - } - case kExecutionClusterLabel: { - mutable_execution_cluster_label()->::flyteidl::admin::ExecutionClusterLabel::MergeFrom(from.execution_cluster_label()); - break; - } - case kQualityOfService: { - mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); - break; - } - case kPluginOverrides: { - mutable_plugin_overrides()->::flyteidl::admin::PluginOverrides::MergeFrom(from.plugin_overrides()); - break; - } - case kWorkflowExecutionConfig: { - mutable_workflow_execution_config()->::flyteidl::admin::WorkflowExecutionConfig::MergeFrom(from.workflow_execution_config()); - break; - } - case kClusterAssignment: { - mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); - break; - } - case TARGET_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.MatchingAttributes) -} - -void MatchingAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - clear_has_target(); -} - -MatchingAttributes::~MatchingAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.MatchingAttributes) - SharedDtor(); -} - -void MatchingAttributes::SharedDtor() { - if (has_target()) { - clear_target(); - } -} - -void MatchingAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MatchingAttributes& MatchingAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void MatchingAttributes::clear_target() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.MatchingAttributes) - switch (target_case()) { - case kTaskResourceAttributes: { - delete target_.task_resource_attributes_; - break; - } - case kClusterResourceAttributes: { - delete target_.cluster_resource_attributes_; - break; - } - case kExecutionQueueAttributes: { - delete target_.execution_queue_attributes_; - break; - } - case kExecutionClusterLabel: { - delete target_.execution_cluster_label_; - break; - } - case kQualityOfService: { - delete target_.quality_of_service_; - break; - } - case kPluginOverrides: { - delete target_.plugin_overrides_; - break; - } - case kWorkflowExecutionConfig: { - delete target_.workflow_execution_config_; - break; - } - case kClusterAssignment: { - delete target_.cluster_assignment_; - break; - } - case TARGET_NOT_SET: { - break; - } - } - _oneof_case_[0] = TARGET_NOT_SET; -} - - -void MatchingAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.MatchingAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_target(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* MatchingAttributes::_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.TaskResourceAttributes task_resource_attributes = 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::TaskResourceAttributes::_InternalParse; - object = msg->mutable_task_resource_attributes(); - 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.ClusterResourceAttributes cluster_resource_attributes = 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::ClusterResourceAttributes::_InternalParse; - object = msg->mutable_cluster_resource_attributes(); - 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.ExecutionQueueAttributes execution_queue_attributes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionQueueAttributes::_InternalParse; - object = msg->mutable_execution_queue_attributes(); - 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.ExecutionClusterLabel execution_cluster_label = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ExecutionClusterLabel::_InternalParse; - object = msg->mutable_execution_cluster_label(); - 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.core.QualityOfService quality_of_service = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::QualityOfService::_InternalParse; - object = msg->mutable_quality_of_service(); - 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.PluginOverrides plugin_overrides = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::PluginOverrides::_InternalParse; - object = msg->mutable_plugin_overrides(); - 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.WorkflowExecutionConfig workflow_execution_config = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::WorkflowExecutionConfig::_InternalParse; - object = msg->mutable_workflow_execution_config(); - 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.ClusterAssignment cluster_assignment = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::ClusterAssignment::_InternalParse; - object = msg->mutable_cluster_assignment(); - 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 MatchingAttributes::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.MatchingAttributes) - 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.TaskResourceAttributes task_resource_attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_resource_attributes())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_cluster_resource_attributes())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_queue_attributes())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_cluster_label())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.QualityOfService quality_of_service = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_quality_of_service())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.PluginOverrides plugin_overrides = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_plugin_overrides())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_cluster_assignment())); - } 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.MatchingAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.MatchingAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void MatchingAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.MatchingAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - if (has_task_resource_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::task_resource_attributes(this), output); - } - - // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - if (has_cluster_resource_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::cluster_resource_attributes(this), output); - } - - // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - if (has_execution_queue_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::execution_queue_attributes(this), output); - } - - // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - if (has_execution_cluster_label()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::execution_cluster_label(this), output); - } - - // .flyteidl.core.QualityOfService quality_of_service = 5; - if (has_quality_of_service()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::quality_of_service(this), output); - } - - // .flyteidl.admin.PluginOverrides plugin_overrides = 6; - if (has_plugin_overrides()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::plugin_overrides(this), output); - } - - // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - if (has_workflow_execution_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::workflow_execution_config(this), output); - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - if (has_cluster_assignment()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::cluster_assignment(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.MatchingAttributes) -} - -::google::protobuf::uint8* MatchingAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.MatchingAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - if (has_task_resource_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::task_resource_attributes(this), target); - } - - // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - if (has_cluster_resource_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::cluster_resource_attributes(this), target); - } - - // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - if (has_execution_queue_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::execution_queue_attributes(this), target); - } - - // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - if (has_execution_cluster_label()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::execution_cluster_label(this), target); - } - - // .flyteidl.core.QualityOfService quality_of_service = 5; - if (has_quality_of_service()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::quality_of_service(this), target); - } - - // .flyteidl.admin.PluginOverrides plugin_overrides = 6; - if (has_plugin_overrides()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::plugin_overrides(this), target); - } - - // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - if (has_workflow_execution_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::workflow_execution_config(this), target); - } - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - if (has_cluster_assignment()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::cluster_assignment(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.MatchingAttributes) - return target; -} - -size_t MatchingAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.MatchingAttributes) - 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 (target_case()) { - // .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - case kTaskResourceAttributes: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.task_resource_attributes_); - break; - } - // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - case kClusterResourceAttributes: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.cluster_resource_attributes_); - break; - } - // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - case kExecutionQueueAttributes: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.execution_queue_attributes_); - break; - } - // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - case kExecutionClusterLabel: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.execution_cluster_label_); - break; - } - // .flyteidl.core.QualityOfService quality_of_service = 5; - case kQualityOfService: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.quality_of_service_); - break; - } - // .flyteidl.admin.PluginOverrides plugin_overrides = 6; - case kPluginOverrides: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.plugin_overrides_); - break; - } - // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - case kWorkflowExecutionConfig: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.workflow_execution_config_); - break; - } - // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - case kClusterAssignment: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.cluster_assignment_); - break; - } - case TARGET_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MatchingAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.MatchingAttributes) - GOOGLE_DCHECK_NE(&from, this); - const MatchingAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.MatchingAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.MatchingAttributes) - MergeFrom(*source); - } -} - -void MatchingAttributes::MergeFrom(const MatchingAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.MatchingAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.target_case()) { - case kTaskResourceAttributes: { - mutable_task_resource_attributes()->::flyteidl::admin::TaskResourceAttributes::MergeFrom(from.task_resource_attributes()); - break; - } - case kClusterResourceAttributes: { - mutable_cluster_resource_attributes()->::flyteidl::admin::ClusterResourceAttributes::MergeFrom(from.cluster_resource_attributes()); - break; - } - case kExecutionQueueAttributes: { - mutable_execution_queue_attributes()->::flyteidl::admin::ExecutionQueueAttributes::MergeFrom(from.execution_queue_attributes()); - break; - } - case kExecutionClusterLabel: { - mutable_execution_cluster_label()->::flyteidl::admin::ExecutionClusterLabel::MergeFrom(from.execution_cluster_label()); - break; - } - case kQualityOfService: { - mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); - break; - } - case kPluginOverrides: { - mutable_plugin_overrides()->::flyteidl::admin::PluginOverrides::MergeFrom(from.plugin_overrides()); - break; - } - case kWorkflowExecutionConfig: { - mutable_workflow_execution_config()->::flyteidl::admin::WorkflowExecutionConfig::MergeFrom(from.workflow_execution_config()); - break; - } - case kClusterAssignment: { - mutable_cluster_assignment()->::flyteidl::admin::ClusterAssignment::MergeFrom(from.cluster_assignment()); - break; - } - case TARGET_NOT_SET: { - break; - } - } -} - -void MatchingAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.MatchingAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MatchingAttributes::CopyFrom(const MatchingAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.MatchingAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MatchingAttributes::IsInitialized() const { - return true; -} - -void MatchingAttributes::Swap(MatchingAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void MatchingAttributes::InternalSwap(MatchingAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(target_, other->target_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata MatchingAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void MatchableAttributesConfiguration::InitAsDefaultInstance() { - ::flyteidl::admin::_MatchableAttributesConfiguration_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( - ::flyteidl::admin::MatchingAttributes::internal_default_instance()); -} -class MatchableAttributesConfiguration::HasBitSetters { - public: - static const ::flyteidl::admin::MatchingAttributes& attributes(const MatchableAttributesConfiguration* msg); -}; - -const ::flyteidl::admin::MatchingAttributes& -MatchableAttributesConfiguration::HasBitSetters::attributes(const MatchableAttributesConfiguration* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int MatchableAttributesConfiguration::kAttributesFieldNumber; -const int MatchableAttributesConfiguration::kDomainFieldNumber; -const int MatchableAttributesConfiguration::kProjectFieldNumber; -const int MatchableAttributesConfiguration::kWorkflowFieldNumber; -const int MatchableAttributesConfiguration::kLaunchPlanFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -MatchableAttributesConfiguration::MatchableAttributesConfiguration() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.MatchableAttributesConfiguration) -} -MatchableAttributesConfiguration::MatchableAttributesConfiguration(const MatchableAttributesConfiguration& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.workflow().size() > 0) { - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - launch_plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.launch_plan().size() > 0) { - launch_plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.launch_plan_); - } - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.MatchableAttributesConfiguration) -} - -void MatchableAttributesConfiguration::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - launch_plan_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - attributes_ = nullptr; -} - -MatchableAttributesConfiguration::~MatchableAttributesConfiguration() { - // @@protoc_insertion_point(destructor:flyteidl.admin.MatchableAttributesConfiguration) - SharedDtor(); -} - -void MatchableAttributesConfiguration::SharedDtor() { - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - launch_plan_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete attributes_; -} - -void MatchableAttributesConfiguration::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const MatchableAttributesConfiguration& MatchableAttributesConfiguration::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_MatchableAttributesConfiguration_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void MatchableAttributesConfiguration::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.MatchableAttributesConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - launch_plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* MatchableAttributesConfiguration::_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.MatchingAttributes attributes = 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::MatchingAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string project = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string workflow = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.workflow"); - object = msg->mutable_workflow(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string launch_plan = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); - object = msg->mutable_launch_plan(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool MatchableAttributesConfiguration::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.MatchableAttributesConfiguration) - 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.MatchingAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.MatchableAttributesConfiguration.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string project = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.MatchableAttributesConfiguration.project")); - } else { - goto handle_unusual; - } - break; - } - - // string workflow = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_workflow())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.MatchableAttributesConfiguration.workflow")); - } else { - goto handle_unusual; - } - break; - } - - // string launch_plan = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_launch_plan())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->launch_plan().data(), static_cast(this->launch_plan().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.MatchableAttributesConfiguration.launch_plan")); - } 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.MatchableAttributesConfiguration) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.MatchableAttributesConfiguration) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void MatchableAttributesConfiguration::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.MatchableAttributesConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.MatchingAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(this), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string project = 3; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->project(), output); - } - - // string workflow = 4; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.workflow"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->workflow(), output); - } - - // string launch_plan = 5; - if (this->launch_plan().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->launch_plan().data(), static_cast(this->launch_plan().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->launch_plan(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.MatchableAttributesConfiguration) -} - -::google::protobuf::uint8* MatchableAttributesConfiguration::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.MatchableAttributesConfiguration) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.MatchingAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(this), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string project = 3; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->project(), target); - } - - // string workflow = 4; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.workflow"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->workflow(), target); - } - - // string launch_plan = 5; - if (this->launch_plan().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->launch_plan().data(), static_cast(this->launch_plan().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.MatchableAttributesConfiguration.launch_plan"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->launch_plan(), 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.MatchableAttributesConfiguration) - return target; -} - -size_t MatchableAttributesConfiguration::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.MatchableAttributesConfiguration) - 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; - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string project = 3; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string workflow = 4; - if (this->workflow().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->workflow()); - } - - // string launch_plan = 5; - if (this->launch_plan().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->launch_plan()); - } - - // .flyteidl.admin.MatchingAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void MatchableAttributesConfiguration::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.MatchableAttributesConfiguration) - GOOGLE_DCHECK_NE(&from, this); - const MatchableAttributesConfiguration* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.MatchableAttributesConfiguration) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.MatchableAttributesConfiguration) - MergeFrom(*source); - } -} - -void MatchableAttributesConfiguration::MergeFrom(const MatchableAttributesConfiguration& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.MatchableAttributesConfiguration) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.workflow().size() > 0) { - - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - if (from.launch_plan().size() > 0) { - - launch_plan_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.launch_plan_); - } - if (from.has_attributes()) { - mutable_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.attributes()); - } -} - -void MatchableAttributesConfiguration::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.MatchableAttributesConfiguration) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MatchableAttributesConfiguration::CopyFrom(const MatchableAttributesConfiguration& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.MatchableAttributesConfiguration) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MatchableAttributesConfiguration::IsInitialized() const { - return true; -} - -void MatchableAttributesConfiguration::Swap(MatchableAttributesConfiguration* other) { - if (other == this) return; - InternalSwap(other); -} -void MatchableAttributesConfiguration::InternalSwap(MatchableAttributesConfiguration* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - launch_plan_.Swap(&other->launch_plan_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata MatchableAttributesConfiguration::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListMatchableAttributesRequest::InitAsDefaultInstance() { -} -class ListMatchableAttributesRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListMatchableAttributesRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListMatchableAttributesRequest::ListMatchableAttributesRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ListMatchableAttributesRequest) -} -ListMatchableAttributesRequest::ListMatchableAttributesRequest(const ListMatchableAttributesRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListMatchableAttributesRequest) -} - -void ListMatchableAttributesRequest::SharedCtor() { - resource_type_ = 0; -} - -ListMatchableAttributesRequest::~ListMatchableAttributesRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ListMatchableAttributesRequest) - SharedDtor(); -} - -void ListMatchableAttributesRequest::SharedDtor() { -} - -void ListMatchableAttributesRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListMatchableAttributesRequest& ListMatchableAttributesRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListMatchableAttributesRequest_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void ListMatchableAttributesRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListMatchableAttributesRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListMatchableAttributesRequest::_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.MatchableResource resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListMatchableAttributesRequest::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.ListMatchableAttributesRequest) - 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.MatchableResource resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.ListMatchableAttributesRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListMatchableAttributesRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListMatchableAttributesRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListMatchableAttributesRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.MatchableResource resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListMatchableAttributesRequest) -} - -::google::protobuf::uint8* ListMatchableAttributesRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListMatchableAttributesRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.MatchableResource resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), 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.ListMatchableAttributesRequest) - return target; -} - -size_t ListMatchableAttributesRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListMatchableAttributesRequest) - 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.admin.MatchableResource resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListMatchableAttributesRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListMatchableAttributesRequest) - GOOGLE_DCHECK_NE(&from, this); - const ListMatchableAttributesRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListMatchableAttributesRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListMatchableAttributesRequest) - MergeFrom(*source); - } -} - -void ListMatchableAttributesRequest::MergeFrom(const ListMatchableAttributesRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListMatchableAttributesRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void ListMatchableAttributesRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListMatchableAttributesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListMatchableAttributesRequest::CopyFrom(const ListMatchableAttributesRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListMatchableAttributesRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListMatchableAttributesRequest::IsInitialized() const { - return true; -} - -void ListMatchableAttributesRequest::Swap(ListMatchableAttributesRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ListMatchableAttributesRequest::InternalSwap(ListMatchableAttributesRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata ListMatchableAttributesRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListMatchableAttributesResponse::InitAsDefaultInstance() { -} -class ListMatchableAttributesResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListMatchableAttributesResponse::kConfigurationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListMatchableAttributesResponse::ListMatchableAttributesResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ListMatchableAttributesResponse) -} -ListMatchableAttributesResponse::ListMatchableAttributesResponse(const ListMatchableAttributesResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - configurations_(from.configurations_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ListMatchableAttributesResponse) -} - -void ListMatchableAttributesResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); -} - -ListMatchableAttributesResponse::~ListMatchableAttributesResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ListMatchableAttributesResponse) - SharedDtor(); -} - -void ListMatchableAttributesResponse::SharedDtor() { -} - -void ListMatchableAttributesResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListMatchableAttributesResponse& ListMatchableAttributesResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListMatchableAttributesResponse_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base); - return *internal_default_instance(); -} - - -void ListMatchableAttributesResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ListMatchableAttributesResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - configurations_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListMatchableAttributesResponse::_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) { - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::MatchableAttributesConfiguration::_InternalParse; - object = msg->add_configurations(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 ListMatchableAttributesResponse::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.ListMatchableAttributesResponse) - 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)) { - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_configurations())); - } 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.ListMatchableAttributesResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ListMatchableAttributesResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListMatchableAttributesResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ListMatchableAttributesResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - for (unsigned int i = 0, - n = static_cast(this->configurations_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->configurations(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ListMatchableAttributesResponse) -} - -::google::protobuf::uint8* ListMatchableAttributesResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ListMatchableAttributesResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - for (unsigned int i = 0, - n = static_cast(this->configurations_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->configurations(static_cast(i)), 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.ListMatchableAttributesResponse) - return target; -} - -size_t ListMatchableAttributesResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ListMatchableAttributesResponse) - 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; - - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - { - unsigned int count = static_cast(this->configurations_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->configurations(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListMatchableAttributesResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ListMatchableAttributesResponse) - GOOGLE_DCHECK_NE(&from, this); - const ListMatchableAttributesResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ListMatchableAttributesResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ListMatchableAttributesResponse) - MergeFrom(*source); - } -} - -void ListMatchableAttributesResponse::MergeFrom(const ListMatchableAttributesResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ListMatchableAttributesResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - configurations_.MergeFrom(from.configurations_); -} - -void ListMatchableAttributesResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ListMatchableAttributesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListMatchableAttributesResponse::CopyFrom(const ListMatchableAttributesResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ListMatchableAttributesResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListMatchableAttributesResponse::IsInitialized() const { - return true; -} - -void ListMatchableAttributesResponse::Swap(ListMatchableAttributesResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ListMatchableAttributesResponse::InternalSwap(ListMatchableAttributesResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&configurations_)->InternalSwap(CastToBase(&other->configurations_)); -} - -::google::protobuf::Metadata ListMatchableAttributesResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fmatchable_5fresource_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fmatchable_5fresource_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskResourceSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskResourceSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskResourceSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskResourceAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskResourceAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskResourceAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ClusterResourceAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ClusterResourceAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionQueueAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionQueueAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionQueueAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ExecutionClusterLabel* Arena::CreateMaybeMessage< ::flyteidl::admin::ExecutionClusterLabel >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ExecutionClusterLabel >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::PluginOverride* Arena::CreateMaybeMessage< ::flyteidl::admin::PluginOverride >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::PluginOverride >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::PluginOverrides* Arena::CreateMaybeMessage< ::flyteidl::admin::PluginOverrides >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::PluginOverrides >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowExecutionConfig* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowExecutionConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::MatchingAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::MatchingAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::MatchingAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::MatchableAttributesConfiguration* Arena::CreateMaybeMessage< ::flyteidl::admin::MatchableAttributesConfiguration >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::MatchableAttributesConfiguration >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListMatchableAttributesRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ListMatchableAttributesRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListMatchableAttributesRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ListMatchableAttributesResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ListMatchableAttributesResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ListMatchableAttributesResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h deleted file mode 100644 index 12ea29fdf1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/matchable_resource.pb.h +++ /dev/null @@ -1,3676 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/matchable_resource.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/admin/cluster_assignment.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/security.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[13] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto(); -namespace flyteidl { -namespace admin { -class ClusterResourceAttributes; -class ClusterResourceAttributesDefaultTypeInternal; -extern ClusterResourceAttributesDefaultTypeInternal _ClusterResourceAttributes_default_instance_; -class ClusterResourceAttributes_AttributesEntry_DoNotUse; -class ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal; -extern ClusterResourceAttributes_AttributesEntry_DoNotUseDefaultTypeInternal _ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_; -class ExecutionClusterLabel; -class ExecutionClusterLabelDefaultTypeInternal; -extern ExecutionClusterLabelDefaultTypeInternal _ExecutionClusterLabel_default_instance_; -class ExecutionQueueAttributes; -class ExecutionQueueAttributesDefaultTypeInternal; -extern ExecutionQueueAttributesDefaultTypeInternal _ExecutionQueueAttributes_default_instance_; -class ListMatchableAttributesRequest; -class ListMatchableAttributesRequestDefaultTypeInternal; -extern ListMatchableAttributesRequestDefaultTypeInternal _ListMatchableAttributesRequest_default_instance_; -class ListMatchableAttributesResponse; -class ListMatchableAttributesResponseDefaultTypeInternal; -extern ListMatchableAttributesResponseDefaultTypeInternal _ListMatchableAttributesResponse_default_instance_; -class MatchableAttributesConfiguration; -class MatchableAttributesConfigurationDefaultTypeInternal; -extern MatchableAttributesConfigurationDefaultTypeInternal _MatchableAttributesConfiguration_default_instance_; -class MatchingAttributes; -class MatchingAttributesDefaultTypeInternal; -extern MatchingAttributesDefaultTypeInternal _MatchingAttributes_default_instance_; -class PluginOverride; -class PluginOverrideDefaultTypeInternal; -extern PluginOverrideDefaultTypeInternal _PluginOverride_default_instance_; -class PluginOverrides; -class PluginOverridesDefaultTypeInternal; -extern PluginOverridesDefaultTypeInternal _PluginOverrides_default_instance_; -class TaskResourceAttributes; -class TaskResourceAttributesDefaultTypeInternal; -extern TaskResourceAttributesDefaultTypeInternal _TaskResourceAttributes_default_instance_; -class TaskResourceSpec; -class TaskResourceSpecDefaultTypeInternal; -extern TaskResourceSpecDefaultTypeInternal _TaskResourceSpec_default_instance_; -class WorkflowExecutionConfig; -class WorkflowExecutionConfigDefaultTypeInternal; -extern WorkflowExecutionConfigDefaultTypeInternal _WorkflowExecutionConfig_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::ClusterResourceAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterResourceAttributes>(Arena*); -template<> ::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::admin::ClusterResourceAttributes_AttributesEntry_DoNotUse>(Arena*); -template<> ::flyteidl::admin::ExecutionClusterLabel* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionClusterLabel>(Arena*); -template<> ::flyteidl::admin::ExecutionQueueAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ExecutionQueueAttributes>(Arena*); -template<> ::flyteidl::admin::ListMatchableAttributesRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ListMatchableAttributesRequest>(Arena*); -template<> ::flyteidl::admin::ListMatchableAttributesResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ListMatchableAttributesResponse>(Arena*); -template<> ::flyteidl::admin::MatchableAttributesConfiguration* Arena::CreateMaybeMessage<::flyteidl::admin::MatchableAttributesConfiguration>(Arena*); -template<> ::flyteidl::admin::MatchingAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(Arena*); -template<> ::flyteidl::admin::PluginOverride* Arena::CreateMaybeMessage<::flyteidl::admin::PluginOverride>(Arena*); -template<> ::flyteidl::admin::PluginOverrides* Arena::CreateMaybeMessage<::flyteidl::admin::PluginOverrides>(Arena*); -template<> ::flyteidl::admin::TaskResourceAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::TaskResourceAttributes>(Arena*); -template<> ::flyteidl::admin::TaskResourceSpec* Arena::CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(Arena*); -template<> ::flyteidl::admin::WorkflowExecutionConfig* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowExecutionConfig>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum PluginOverride_MissingPluginBehavior { - PluginOverride_MissingPluginBehavior_FAIL = 0, - PluginOverride_MissingPluginBehavior_USE_DEFAULT = 1, - PluginOverride_MissingPluginBehavior_PluginOverride_MissingPluginBehavior_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - PluginOverride_MissingPluginBehavior_PluginOverride_MissingPluginBehavior_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool PluginOverride_MissingPluginBehavior_IsValid(int value); -const PluginOverride_MissingPluginBehavior PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MIN = PluginOverride_MissingPluginBehavior_FAIL; -const PluginOverride_MissingPluginBehavior PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX = PluginOverride_MissingPluginBehavior_USE_DEFAULT; -const int PluginOverride_MissingPluginBehavior_MissingPluginBehavior_ARRAYSIZE = PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PluginOverride_MissingPluginBehavior_descriptor(); -inline const ::std::string& PluginOverride_MissingPluginBehavior_Name(PluginOverride_MissingPluginBehavior value) { - return ::google::protobuf::internal::NameOfEnum( - PluginOverride_MissingPluginBehavior_descriptor(), value); -} -inline bool PluginOverride_MissingPluginBehavior_Parse( - const ::std::string& name, PluginOverride_MissingPluginBehavior* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PluginOverride_MissingPluginBehavior_descriptor(), name, value); -} -enum MatchableResource { - TASK_RESOURCE = 0, - CLUSTER_RESOURCE = 1, - EXECUTION_QUEUE = 2, - EXECUTION_CLUSTER_LABEL = 3, - QUALITY_OF_SERVICE_SPECIFICATION = 4, - PLUGIN_OVERRIDE = 5, - WORKFLOW_EXECUTION_CONFIG = 6, - CLUSTER_ASSIGNMENT = 7, - MatchableResource_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - MatchableResource_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool MatchableResource_IsValid(int value); -const MatchableResource MatchableResource_MIN = TASK_RESOURCE; -const MatchableResource MatchableResource_MAX = CLUSTER_ASSIGNMENT; -const int MatchableResource_ARRAYSIZE = MatchableResource_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MatchableResource_descriptor(); -inline const ::std::string& MatchableResource_Name(MatchableResource value) { - return ::google::protobuf::internal::NameOfEnum( - MatchableResource_descriptor(), value); -} -inline bool MatchableResource_Parse( - const ::std::string& name, MatchableResource* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MatchableResource_descriptor(), name, value); -} -// =================================================================== - -class TaskResourceSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskResourceSpec) */ { - public: - TaskResourceSpec(); - virtual ~TaskResourceSpec(); - - TaskResourceSpec(const TaskResourceSpec& from); - - inline TaskResourceSpec& operator=(const TaskResourceSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskResourceSpec(TaskResourceSpec&& from) noexcept - : TaskResourceSpec() { - *this = ::std::move(from); - } - - inline TaskResourceSpec& operator=(TaskResourceSpec&& 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 TaskResourceSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskResourceSpec* internal_default_instance() { - return reinterpret_cast( - &_TaskResourceSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(TaskResourceSpec* other); - friend void swap(TaskResourceSpec& a, TaskResourceSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskResourceSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskResourceSpec* 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 TaskResourceSpec& from); - void MergeFrom(const TaskResourceSpec& 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(TaskResourceSpec* 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 ------------------------------------------------------- - - // string cpu = 1; - void clear_cpu(); - static const int kCpuFieldNumber = 1; - const ::std::string& cpu() const; - void set_cpu(const ::std::string& value); - #if LANG_CXX11 - void set_cpu(::std::string&& value); - #endif - void set_cpu(const char* value); - void set_cpu(const char* value, size_t size); - ::std::string* mutable_cpu(); - ::std::string* release_cpu(); - void set_allocated_cpu(::std::string* cpu); - - // string gpu = 2; - void clear_gpu(); - static const int kGpuFieldNumber = 2; - const ::std::string& gpu() const; - void set_gpu(const ::std::string& value); - #if LANG_CXX11 - void set_gpu(::std::string&& value); - #endif - void set_gpu(const char* value); - void set_gpu(const char* value, size_t size); - ::std::string* mutable_gpu(); - ::std::string* release_gpu(); - void set_allocated_gpu(::std::string* gpu); - - // string memory = 3; - void clear_memory(); - static const int kMemoryFieldNumber = 3; - const ::std::string& memory() const; - void set_memory(const ::std::string& value); - #if LANG_CXX11 - void set_memory(::std::string&& value); - #endif - void set_memory(const char* value); - void set_memory(const char* value, size_t size); - ::std::string* mutable_memory(); - ::std::string* release_memory(); - void set_allocated_memory(::std::string* memory); - - // string storage = 4; - void clear_storage(); - static const int kStorageFieldNumber = 4; - const ::std::string& storage() const; - void set_storage(const ::std::string& value); - #if LANG_CXX11 - void set_storage(::std::string&& value); - #endif - void set_storage(const char* value); - void set_storage(const char* value, size_t size); - ::std::string* mutable_storage(); - ::std::string* release_storage(); - void set_allocated_storage(::std::string* storage); - - // string ephemeral_storage = 5; - void clear_ephemeral_storage(); - static const int kEphemeralStorageFieldNumber = 5; - const ::std::string& ephemeral_storage() const; - void set_ephemeral_storage(const ::std::string& value); - #if LANG_CXX11 - void set_ephemeral_storage(::std::string&& value); - #endif - void set_ephemeral_storage(const char* value); - void set_ephemeral_storage(const char* value, size_t size); - ::std::string* mutable_ephemeral_storage(); - ::std::string* release_ephemeral_storage(); - void set_allocated_ephemeral_storage(::std::string* ephemeral_storage); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr cpu_; - ::google::protobuf::internal::ArenaStringPtr gpu_; - ::google::protobuf::internal::ArenaStringPtr memory_; - ::google::protobuf::internal::ArenaStringPtr storage_; - ::google::protobuf::internal::ArenaStringPtr ephemeral_storage_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskResourceAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskResourceAttributes) */ { - public: - TaskResourceAttributes(); - virtual ~TaskResourceAttributes(); - - TaskResourceAttributes(const TaskResourceAttributes& from); - - inline TaskResourceAttributes& operator=(const TaskResourceAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskResourceAttributes(TaskResourceAttributes&& from) noexcept - : TaskResourceAttributes() { - *this = ::std::move(from); - } - - inline TaskResourceAttributes& operator=(TaskResourceAttributes&& 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 TaskResourceAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskResourceAttributes* internal_default_instance() { - return reinterpret_cast( - &_TaskResourceAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(TaskResourceAttributes* other); - friend void swap(TaskResourceAttributes& a, TaskResourceAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskResourceAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskResourceAttributes* 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 TaskResourceAttributes& from); - void MergeFrom(const TaskResourceAttributes& 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(TaskResourceAttributes* 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.TaskResourceSpec defaults = 1; - bool has_defaults() const; - void clear_defaults(); - static const int kDefaultsFieldNumber = 1; - const ::flyteidl::admin::TaskResourceSpec& defaults() const; - ::flyteidl::admin::TaskResourceSpec* release_defaults(); - ::flyteidl::admin::TaskResourceSpec* mutable_defaults(); - void set_allocated_defaults(::flyteidl::admin::TaskResourceSpec* defaults); - - // .flyteidl.admin.TaskResourceSpec limits = 2; - bool has_limits() const; - void clear_limits(); - static const int kLimitsFieldNumber = 2; - const ::flyteidl::admin::TaskResourceSpec& limits() const; - ::flyteidl::admin::TaskResourceSpec* release_limits(); - ::flyteidl::admin::TaskResourceSpec* mutable_limits(); - void set_allocated_limits(::flyteidl::admin::TaskResourceSpec* limits); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::TaskResourceSpec* defaults_; - ::flyteidl::admin::TaskResourceSpec* limits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class ClusterResourceAttributes_AttributesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - ClusterResourceAttributes_AttributesEntry_DoNotUse(); - ClusterResourceAttributes_AttributesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ClusterResourceAttributes_AttributesEntry_DoNotUse& other); - static const ClusterResourceAttributes_AttributesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ClusterResourceAttributes_AttributesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ClusterResourceAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ClusterResourceAttributes) */ { - public: - ClusterResourceAttributes(); - virtual ~ClusterResourceAttributes(); - - ClusterResourceAttributes(const ClusterResourceAttributes& from); - - inline ClusterResourceAttributes& operator=(const ClusterResourceAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ClusterResourceAttributes(ClusterResourceAttributes&& from) noexcept - : ClusterResourceAttributes() { - *this = ::std::move(from); - } - - inline ClusterResourceAttributes& operator=(ClusterResourceAttributes&& 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 ClusterResourceAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ClusterResourceAttributes* internal_default_instance() { - return reinterpret_cast( - &_ClusterResourceAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ClusterResourceAttributes* other); - friend void swap(ClusterResourceAttributes& a, ClusterResourceAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ClusterResourceAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - ClusterResourceAttributes* 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 ClusterResourceAttributes& from); - void MergeFrom(const ClusterResourceAttributes& 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(ClusterResourceAttributes* 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 ------------------------------------------------------- - - // map attributes = 1; - int attributes_size() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - attributes() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_attributes(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - ClusterResourceAttributes_AttributesEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionQueueAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionQueueAttributes) */ { - public: - ExecutionQueueAttributes(); - virtual ~ExecutionQueueAttributes(); - - ExecutionQueueAttributes(const ExecutionQueueAttributes& from); - - inline ExecutionQueueAttributes& operator=(const ExecutionQueueAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionQueueAttributes(ExecutionQueueAttributes&& from) noexcept - : ExecutionQueueAttributes() { - *this = ::std::move(from); - } - - inline ExecutionQueueAttributes& operator=(ExecutionQueueAttributes&& 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 ExecutionQueueAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionQueueAttributes* internal_default_instance() { - return reinterpret_cast( - &_ExecutionQueueAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(ExecutionQueueAttributes* other); - friend void swap(ExecutionQueueAttributes& a, ExecutionQueueAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionQueueAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionQueueAttributes* 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 ExecutionQueueAttributes& from); - void MergeFrom(const ExecutionQueueAttributes& 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(ExecutionQueueAttributes* 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 ------------------------------------------------------- - - // repeated string tags = 1; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 1; - const ::std::string& tags(int index) const; - ::std::string* mutable_tags(int index); - void set_tags(int index, const ::std::string& value); - #if LANG_CXX11 - void set_tags(int index, ::std::string&& value); - #endif - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, size_t size); - ::std::string* add_tags(); - void add_tags(const ::std::string& value); - #if LANG_CXX11 - void add_tags(::std::string&& value); - #endif - void add_tags(const char* value); - void add_tags(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> tags_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionClusterLabel final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ExecutionClusterLabel) */ { - public: - ExecutionClusterLabel(); - virtual ~ExecutionClusterLabel(); - - ExecutionClusterLabel(const ExecutionClusterLabel& from); - - inline ExecutionClusterLabel& operator=(const ExecutionClusterLabel& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionClusterLabel(ExecutionClusterLabel&& from) noexcept - : ExecutionClusterLabel() { - *this = ::std::move(from); - } - - inline ExecutionClusterLabel& operator=(ExecutionClusterLabel&& 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 ExecutionClusterLabel& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionClusterLabel* internal_default_instance() { - return reinterpret_cast( - &_ExecutionClusterLabel_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ExecutionClusterLabel* other); - friend void swap(ExecutionClusterLabel& a, ExecutionClusterLabel& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionClusterLabel* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionClusterLabel* 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 ExecutionClusterLabel& from); - void MergeFrom(const ExecutionClusterLabel& 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(ExecutionClusterLabel* 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 ------------------------------------------------------- - - // string value = 1; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class PluginOverride final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PluginOverride) */ { - public: - PluginOverride(); - virtual ~PluginOverride(); - - PluginOverride(const PluginOverride& from); - - inline PluginOverride& operator=(const PluginOverride& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PluginOverride(PluginOverride&& from) noexcept - : PluginOverride() { - *this = ::std::move(from); - } - - inline PluginOverride& operator=(PluginOverride&& 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 PluginOverride& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PluginOverride* internal_default_instance() { - return reinterpret_cast( - &_PluginOverride_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(PluginOverride* other); - friend void swap(PluginOverride& a, PluginOverride& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PluginOverride* New() const final { - return CreateMaybeMessage(nullptr); - } - - PluginOverride* 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 PluginOverride& from); - void MergeFrom(const PluginOverride& 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(PluginOverride* 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 ---------------------------------------------------- - - typedef PluginOverride_MissingPluginBehavior MissingPluginBehavior; - static const MissingPluginBehavior FAIL = - PluginOverride_MissingPluginBehavior_FAIL; - static const MissingPluginBehavior USE_DEFAULT = - PluginOverride_MissingPluginBehavior_USE_DEFAULT; - static inline bool MissingPluginBehavior_IsValid(int value) { - return PluginOverride_MissingPluginBehavior_IsValid(value); - } - static const MissingPluginBehavior MissingPluginBehavior_MIN = - PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MIN; - static const MissingPluginBehavior MissingPluginBehavior_MAX = - PluginOverride_MissingPluginBehavior_MissingPluginBehavior_MAX; - static const int MissingPluginBehavior_ARRAYSIZE = - PluginOverride_MissingPluginBehavior_MissingPluginBehavior_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - MissingPluginBehavior_descriptor() { - return PluginOverride_MissingPluginBehavior_descriptor(); - } - static inline const ::std::string& MissingPluginBehavior_Name(MissingPluginBehavior value) { - return PluginOverride_MissingPluginBehavior_Name(value); - } - static inline bool MissingPluginBehavior_Parse(const ::std::string& name, - MissingPluginBehavior* value) { - return PluginOverride_MissingPluginBehavior_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated string plugin_id = 2; - int plugin_id_size() const; - void clear_plugin_id(); - static const int kPluginIdFieldNumber = 2; - const ::std::string& plugin_id(int index) const; - ::std::string* mutable_plugin_id(int index); - void set_plugin_id(int index, const ::std::string& value); - #if LANG_CXX11 - void set_plugin_id(int index, ::std::string&& value); - #endif - void set_plugin_id(int index, const char* value); - void set_plugin_id(int index, const char* value, size_t size); - ::std::string* add_plugin_id(); - void add_plugin_id(const ::std::string& value); - #if LANG_CXX11 - void add_plugin_id(::std::string&& value); - #endif - void add_plugin_id(const char* value); - void add_plugin_id(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& plugin_id() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_plugin_id(); - - // string task_type = 1; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 1; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - void clear_missing_plugin_behavior(); - static const int kMissingPluginBehaviorFieldNumber = 4; - ::flyteidl::admin::PluginOverride_MissingPluginBehavior missing_plugin_behavior() const; - void set_missing_plugin_behavior(::flyteidl::admin::PluginOverride_MissingPluginBehavior value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverride) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> plugin_id_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - int missing_plugin_behavior_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class PluginOverrides final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.PluginOverrides) */ { - public: - PluginOverrides(); - virtual ~PluginOverrides(); - - PluginOverrides(const PluginOverrides& from); - - inline PluginOverrides& operator=(const PluginOverrides& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PluginOverrides(PluginOverrides&& from) noexcept - : PluginOverrides() { - *this = ::std::move(from); - } - - inline PluginOverrides& operator=(PluginOverrides&& 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 PluginOverrides& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PluginOverrides* internal_default_instance() { - return reinterpret_cast( - &_PluginOverrides_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(PluginOverrides* other); - friend void swap(PluginOverrides& a, PluginOverrides& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PluginOverrides* New() const final { - return CreateMaybeMessage(nullptr); - } - - PluginOverrides* 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 PluginOverrides& from); - void MergeFrom(const PluginOverrides& 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(PluginOverrides* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.PluginOverride overrides = 1; - int overrides_size() const; - void clear_overrides(); - static const int kOverridesFieldNumber = 1; - ::flyteidl::admin::PluginOverride* mutable_overrides(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >* - mutable_overrides(); - const ::flyteidl::admin::PluginOverride& overrides(int index) const; - ::flyteidl::admin::PluginOverride* add_overrides(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >& - overrides() const; - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverrides) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride > overrides_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowExecutionConfig) */ { - public: - WorkflowExecutionConfig(); - virtual ~WorkflowExecutionConfig(); - - WorkflowExecutionConfig(const WorkflowExecutionConfig& from); - - inline WorkflowExecutionConfig& operator=(const WorkflowExecutionConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionConfig(WorkflowExecutionConfig&& from) noexcept - : WorkflowExecutionConfig() { - *this = ::std::move(from); - } - - inline WorkflowExecutionConfig& operator=(WorkflowExecutionConfig&& 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 WorkflowExecutionConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionConfig* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(WorkflowExecutionConfig* other); - friend void swap(WorkflowExecutionConfig& a, WorkflowExecutionConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionConfig* 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 WorkflowExecutionConfig& from); - void MergeFrom(const WorkflowExecutionConfig& 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(WorkflowExecutionConfig* 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.SecurityContext security_context = 2; - bool has_security_context() const; - void clear_security_context(); - static const int kSecurityContextFieldNumber = 2; - const ::flyteidl::core::SecurityContext& security_context() const; - ::flyteidl::core::SecurityContext* release_security_context(); - ::flyteidl::core::SecurityContext* mutable_security_context(); - void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); - - // .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - bool has_raw_output_data_config() const; - void clear_raw_output_data_config(); - static const int kRawOutputDataConfigFieldNumber = 3; - const ::flyteidl::admin::RawOutputDataConfig& raw_output_data_config() const; - ::flyteidl::admin::RawOutputDataConfig* release_raw_output_data_config(); - ::flyteidl::admin::RawOutputDataConfig* mutable_raw_output_data_config(); - void set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config); - - // .flyteidl.admin.Labels labels = 4; - bool has_labels() const; - void clear_labels(); - static const int kLabelsFieldNumber = 4; - const ::flyteidl::admin::Labels& labels() const; - ::flyteidl::admin::Labels* release_labels(); - ::flyteidl::admin::Labels* mutable_labels(); - void set_allocated_labels(::flyteidl::admin::Labels* labels); - - // .flyteidl.admin.Annotations annotations = 5; - bool has_annotations() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 5; - const ::flyteidl::admin::Annotations& annotations() const; - ::flyteidl::admin::Annotations* release_annotations(); - ::flyteidl::admin::Annotations* mutable_annotations(); - void set_allocated_annotations(::flyteidl::admin::Annotations* annotations); - - // .google.protobuf.BoolValue interruptible = 6; - bool has_interruptible() const; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 6; - const ::google::protobuf::BoolValue& interruptible() const; - ::google::protobuf::BoolValue* release_interruptible(); - ::google::protobuf::BoolValue* mutable_interruptible(); - void set_allocated_interruptible(::google::protobuf::BoolValue* interruptible); - - // .flyteidl.admin.Envs envs = 8; - bool has_envs() const; - void clear_envs(); - static const int kEnvsFieldNumber = 8; - const ::flyteidl::admin::Envs& envs() const; - ::flyteidl::admin::Envs* release_envs(); - ::flyteidl::admin::Envs* mutable_envs(); - void set_allocated_envs(::flyteidl::admin::Envs* envs); - - // int32 max_parallelism = 1; - void clear_max_parallelism(); - static const int kMaxParallelismFieldNumber = 1; - ::google::protobuf::int32 max_parallelism() const; - void set_max_parallelism(::google::protobuf::int32 value); - - // bool overwrite_cache = 7; - void clear_overwrite_cache(); - static const int kOverwriteCacheFieldNumber = 7; - bool overwrite_cache() const; - void set_overwrite_cache(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::SecurityContext* security_context_; - ::flyteidl::admin::RawOutputDataConfig* raw_output_data_config_; - ::flyteidl::admin::Labels* labels_; - ::flyteidl::admin::Annotations* annotations_; - ::google::protobuf::BoolValue* interruptible_; - ::flyteidl::admin::Envs* envs_; - ::google::protobuf::int32 max_parallelism_; - bool overwrite_cache_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class MatchingAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.MatchingAttributes) */ { - public: - MatchingAttributes(); - virtual ~MatchingAttributes(); - - MatchingAttributes(const MatchingAttributes& from); - - inline MatchingAttributes& operator=(const MatchingAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MatchingAttributes(MatchingAttributes&& from) noexcept - : MatchingAttributes() { - *this = ::std::move(from); - } - - inline MatchingAttributes& operator=(MatchingAttributes&& 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 MatchingAttributes& default_instance(); - - enum TargetCase { - kTaskResourceAttributes = 1, - kClusterResourceAttributes = 2, - kExecutionQueueAttributes = 3, - kExecutionClusterLabel = 4, - kQualityOfService = 5, - kPluginOverrides = 6, - kWorkflowExecutionConfig = 7, - kClusterAssignment = 8, - TARGET_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MatchingAttributes* internal_default_instance() { - return reinterpret_cast( - &_MatchingAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(MatchingAttributes* other); - friend void swap(MatchingAttributes& a, MatchingAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MatchingAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - MatchingAttributes* 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 MatchingAttributes& from); - void MergeFrom(const MatchingAttributes& 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(MatchingAttributes* 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.TaskResourceAttributes task_resource_attributes = 1; - bool has_task_resource_attributes() const; - void clear_task_resource_attributes(); - static const int kTaskResourceAttributesFieldNumber = 1; - const ::flyteidl::admin::TaskResourceAttributes& task_resource_attributes() const; - ::flyteidl::admin::TaskResourceAttributes* release_task_resource_attributes(); - ::flyteidl::admin::TaskResourceAttributes* mutable_task_resource_attributes(); - void set_allocated_task_resource_attributes(::flyteidl::admin::TaskResourceAttributes* task_resource_attributes); - - // .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - bool has_cluster_resource_attributes() const; - void clear_cluster_resource_attributes(); - static const int kClusterResourceAttributesFieldNumber = 2; - const ::flyteidl::admin::ClusterResourceAttributes& cluster_resource_attributes() const; - ::flyteidl::admin::ClusterResourceAttributes* release_cluster_resource_attributes(); - ::flyteidl::admin::ClusterResourceAttributes* mutable_cluster_resource_attributes(); - void set_allocated_cluster_resource_attributes(::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes); - - // .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - bool has_execution_queue_attributes() const; - void clear_execution_queue_attributes(); - static const int kExecutionQueueAttributesFieldNumber = 3; - const ::flyteidl::admin::ExecutionQueueAttributes& execution_queue_attributes() const; - ::flyteidl::admin::ExecutionQueueAttributes* release_execution_queue_attributes(); - ::flyteidl::admin::ExecutionQueueAttributes* mutable_execution_queue_attributes(); - void set_allocated_execution_queue_attributes(::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes); - - // .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - bool has_execution_cluster_label() const; - void clear_execution_cluster_label(); - static const int kExecutionClusterLabelFieldNumber = 4; - const ::flyteidl::admin::ExecutionClusterLabel& execution_cluster_label() const; - ::flyteidl::admin::ExecutionClusterLabel* release_execution_cluster_label(); - ::flyteidl::admin::ExecutionClusterLabel* mutable_execution_cluster_label(); - void set_allocated_execution_cluster_label(::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label); - - // .flyteidl.core.QualityOfService quality_of_service = 5; - bool has_quality_of_service() const; - void clear_quality_of_service(); - static const int kQualityOfServiceFieldNumber = 5; - const ::flyteidl::core::QualityOfService& quality_of_service() const; - ::flyteidl::core::QualityOfService* release_quality_of_service(); - ::flyteidl::core::QualityOfService* mutable_quality_of_service(); - void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); - - // .flyteidl.admin.PluginOverrides plugin_overrides = 6; - bool has_plugin_overrides() const; - void clear_plugin_overrides(); - static const int kPluginOverridesFieldNumber = 6; - const ::flyteidl::admin::PluginOverrides& plugin_overrides() const; - ::flyteidl::admin::PluginOverrides* release_plugin_overrides(); - ::flyteidl::admin::PluginOverrides* mutable_plugin_overrides(); - void set_allocated_plugin_overrides(::flyteidl::admin::PluginOverrides* plugin_overrides); - - // .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - bool has_workflow_execution_config() const; - void clear_workflow_execution_config(); - static const int kWorkflowExecutionConfigFieldNumber = 7; - const ::flyteidl::admin::WorkflowExecutionConfig& workflow_execution_config() const; - ::flyteidl::admin::WorkflowExecutionConfig* release_workflow_execution_config(); - ::flyteidl::admin::WorkflowExecutionConfig* mutable_workflow_execution_config(); - void set_allocated_workflow_execution_config(::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config); - - // .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - bool has_cluster_assignment() const; - void clear_cluster_assignment(); - static const int kClusterAssignmentFieldNumber = 8; - const ::flyteidl::admin::ClusterAssignment& cluster_assignment() const; - ::flyteidl::admin::ClusterAssignment* release_cluster_assignment(); - ::flyteidl::admin::ClusterAssignment* mutable_cluster_assignment(); - void set_allocated_cluster_assignment(::flyteidl::admin::ClusterAssignment* cluster_assignment); - - void clear_target(); - TargetCase target_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) - private: - class HasBitSetters; - void set_has_task_resource_attributes(); - void set_has_cluster_resource_attributes(); - void set_has_execution_queue_attributes(); - void set_has_execution_cluster_label(); - void set_has_quality_of_service(); - void set_has_plugin_overrides(); - void set_has_workflow_execution_config(); - void set_has_cluster_assignment(); - - inline bool has_target() const; - inline void clear_has_target(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union TargetUnion { - TargetUnion() {} - ::flyteidl::admin::TaskResourceAttributes* task_resource_attributes_; - ::flyteidl::admin::ClusterResourceAttributes* cluster_resource_attributes_; - ::flyteidl::admin::ExecutionQueueAttributes* execution_queue_attributes_; - ::flyteidl::admin::ExecutionClusterLabel* execution_cluster_label_; - ::flyteidl::core::QualityOfService* quality_of_service_; - ::flyteidl::admin::PluginOverrides* plugin_overrides_; - ::flyteidl::admin::WorkflowExecutionConfig* workflow_execution_config_; - ::flyteidl::admin::ClusterAssignment* cluster_assignment_; - } target_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class MatchableAttributesConfiguration final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.MatchableAttributesConfiguration) */ { - public: - MatchableAttributesConfiguration(); - virtual ~MatchableAttributesConfiguration(); - - MatchableAttributesConfiguration(const MatchableAttributesConfiguration& from); - - inline MatchableAttributesConfiguration& operator=(const MatchableAttributesConfiguration& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MatchableAttributesConfiguration(MatchableAttributesConfiguration&& from) noexcept - : MatchableAttributesConfiguration() { - *this = ::std::move(from); - } - - inline MatchableAttributesConfiguration& operator=(MatchableAttributesConfiguration&& 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 MatchableAttributesConfiguration& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MatchableAttributesConfiguration* internal_default_instance() { - return reinterpret_cast( - &_MatchableAttributesConfiguration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(MatchableAttributesConfiguration* other); - friend void swap(MatchableAttributesConfiguration& a, MatchableAttributesConfiguration& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MatchableAttributesConfiguration* New() const final { - return CreateMaybeMessage(nullptr); - } - - MatchableAttributesConfiguration* 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 MatchableAttributesConfiguration& from); - void MergeFrom(const MatchableAttributesConfiguration& 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(MatchableAttributesConfiguration* 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 ------------------------------------------------------- - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string project = 3; - void clear_project(); - static const int kProjectFieldNumber = 3; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string workflow = 4; - void clear_workflow(); - static const int kWorkflowFieldNumber = 4; - const ::std::string& workflow() const; - void set_workflow(const ::std::string& value); - #if LANG_CXX11 - void set_workflow(::std::string&& value); - #endif - void set_workflow(const char* value); - void set_workflow(const char* value, size_t size); - ::std::string* mutable_workflow(); - ::std::string* release_workflow(); - void set_allocated_workflow(::std::string* workflow); - - // string launch_plan = 5; - void clear_launch_plan(); - static const int kLaunchPlanFieldNumber = 5; - const ::std::string& launch_plan() const; - void set_launch_plan(const ::std::string& value); - #if LANG_CXX11 - void set_launch_plan(::std::string&& value); - #endif - void set_launch_plan(const char* value); - void set_launch_plan(const char* value, size_t size); - ::std::string* mutable_launch_plan(); - ::std::string* release_launch_plan(); - void set_allocated_launch_plan(::std::string* launch_plan); - - // .flyteidl.admin.MatchingAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::MatchingAttributes& attributes() const; - ::flyteidl::admin::MatchingAttributes* release_attributes(); - ::flyteidl::admin::MatchingAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::MatchingAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr workflow_; - ::google::protobuf::internal::ArenaStringPtr launch_plan_; - ::flyteidl::admin::MatchingAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class ListMatchableAttributesRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListMatchableAttributesRequest) */ { - public: - ListMatchableAttributesRequest(); - virtual ~ListMatchableAttributesRequest(); - - ListMatchableAttributesRequest(const ListMatchableAttributesRequest& from); - - inline ListMatchableAttributesRequest& operator=(const ListMatchableAttributesRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListMatchableAttributesRequest(ListMatchableAttributesRequest&& from) noexcept - : ListMatchableAttributesRequest() { - *this = ::std::move(from); - } - - inline ListMatchableAttributesRequest& operator=(ListMatchableAttributesRequest&& 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 ListMatchableAttributesRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListMatchableAttributesRequest* internal_default_instance() { - return reinterpret_cast( - &_ListMatchableAttributesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(ListMatchableAttributesRequest* other); - friend void swap(ListMatchableAttributesRequest& a, ListMatchableAttributesRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListMatchableAttributesRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListMatchableAttributesRequest* 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 ListMatchableAttributesRequest& from); - void MergeFrom(const ListMatchableAttributesRequest& 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(ListMatchableAttributesRequest* 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.MatchableResource resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// ------------------------------------------------------------------- - -class ListMatchableAttributesResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ListMatchableAttributesResponse) */ { - public: - ListMatchableAttributesResponse(); - virtual ~ListMatchableAttributesResponse(); - - ListMatchableAttributesResponse(const ListMatchableAttributesResponse& from); - - inline ListMatchableAttributesResponse& operator=(const ListMatchableAttributesResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListMatchableAttributesResponse(ListMatchableAttributesResponse&& from) noexcept - : ListMatchableAttributesResponse() { - *this = ::std::move(from); - } - - inline ListMatchableAttributesResponse& operator=(ListMatchableAttributesResponse&& 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 ListMatchableAttributesResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListMatchableAttributesResponse* internal_default_instance() { - return reinterpret_cast( - &_ListMatchableAttributesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(ListMatchableAttributesResponse* other); - friend void swap(ListMatchableAttributesResponse& a, ListMatchableAttributesResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListMatchableAttributesResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListMatchableAttributesResponse* 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 ListMatchableAttributesResponse& from); - void MergeFrom(const ListMatchableAttributesResponse& 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(ListMatchableAttributesResponse* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - int configurations_size() const; - void clear_configurations(); - static const int kConfigurationsFieldNumber = 1; - ::flyteidl::admin::MatchableAttributesConfiguration* mutable_configurations(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >* - mutable_configurations(); - const ::flyteidl::admin::MatchableAttributesConfiguration& configurations(int index) const; - ::flyteidl::admin::MatchableAttributesConfiguration* add_configurations(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >& - configurations() const; - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration > configurations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TaskResourceSpec - -// string cpu = 1; -inline void TaskResourceSpec::clear_cpu() { - cpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskResourceSpec::cpu() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.cpu) - return cpu_.GetNoArena(); -} -inline void TaskResourceSpec::set_cpu(const ::std::string& value) { - - cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.cpu) -} -#if LANG_CXX11 -inline void TaskResourceSpec::set_cpu(::std::string&& value) { - - cpu_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.cpu) -} -#endif -inline void TaskResourceSpec::set_cpu(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.cpu) -} -inline void TaskResourceSpec::set_cpu(const char* value, size_t size) { - - cpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.cpu) -} -inline ::std::string* TaskResourceSpec::mutable_cpu() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.cpu) - return cpu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskResourceSpec::release_cpu() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.cpu) - - return cpu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskResourceSpec::set_allocated_cpu(::std::string* cpu) { - if (cpu != nullptr) { - - } else { - - } - cpu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cpu); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.cpu) -} - -// string gpu = 2; -inline void TaskResourceSpec::clear_gpu() { - gpu_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskResourceSpec::gpu() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.gpu) - return gpu_.GetNoArena(); -} -inline void TaskResourceSpec::set_gpu(const ::std::string& value) { - - gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.gpu) -} -#if LANG_CXX11 -inline void TaskResourceSpec::set_gpu(::std::string&& value) { - - gpu_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.gpu) -} -#endif -inline void TaskResourceSpec::set_gpu(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.gpu) -} -inline void TaskResourceSpec::set_gpu(const char* value, size_t size) { - - gpu_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.gpu) -} -inline ::std::string* TaskResourceSpec::mutable_gpu() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.gpu) - return gpu_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskResourceSpec::release_gpu() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.gpu) - - return gpu_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskResourceSpec::set_allocated_gpu(::std::string* gpu) { - if (gpu != nullptr) { - - } else { - - } - gpu_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gpu); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.gpu) -} - -// string memory = 3; -inline void TaskResourceSpec::clear_memory() { - memory_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskResourceSpec::memory() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.memory) - return memory_.GetNoArena(); -} -inline void TaskResourceSpec::set_memory(const ::std::string& value) { - - memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.memory) -} -#if LANG_CXX11 -inline void TaskResourceSpec::set_memory(::std::string&& value) { - - memory_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.memory) -} -#endif -inline void TaskResourceSpec::set_memory(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.memory) -} -inline void TaskResourceSpec::set_memory(const char* value, size_t size) { - - memory_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.memory) -} -inline ::std::string* TaskResourceSpec::mutable_memory() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.memory) - return memory_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskResourceSpec::release_memory() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.memory) - - return memory_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskResourceSpec::set_allocated_memory(::std::string* memory) { - if (memory != nullptr) { - - } else { - - } - memory_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), memory); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.memory) -} - -// string storage = 4; -inline void TaskResourceSpec::clear_storage() { - storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskResourceSpec::storage() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.storage) - return storage_.GetNoArena(); -} -inline void TaskResourceSpec::set_storage(const ::std::string& value) { - - storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.storage) -} -#if LANG_CXX11 -inline void TaskResourceSpec::set_storage(::std::string&& value) { - - storage_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.storage) -} -#endif -inline void TaskResourceSpec::set_storage(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.storage) -} -inline void TaskResourceSpec::set_storage(const char* value, size_t size) { - - storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.storage) -} -inline ::std::string* TaskResourceSpec::mutable_storage() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.storage) - return storage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskResourceSpec::release_storage() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.storage) - - return storage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskResourceSpec::set_allocated_storage(::std::string* storage) { - if (storage != nullptr) { - - } else { - - } - storage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), storage); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.storage) -} - -// string ephemeral_storage = 5; -inline void TaskResourceSpec::clear_ephemeral_storage() { - ephemeral_storage_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskResourceSpec::ephemeral_storage() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceSpec.ephemeral_storage) - return ephemeral_storage_.GetNoArena(); -} -inline void TaskResourceSpec::set_ephemeral_storage(const ::std::string& value) { - - ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskResourceSpec.ephemeral_storage) -} -#if LANG_CXX11 -inline void TaskResourceSpec::set_ephemeral_storage(::std::string&& value) { - - ephemeral_storage_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskResourceSpec.ephemeral_storage) -} -#endif -inline void TaskResourceSpec::set_ephemeral_storage(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskResourceSpec.ephemeral_storage) -} -inline void TaskResourceSpec::set_ephemeral_storage(const char* value, size_t size) { - - ephemeral_storage_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskResourceSpec.ephemeral_storage) -} -inline ::std::string* TaskResourceSpec::mutable_ephemeral_storage() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceSpec.ephemeral_storage) - return ephemeral_storage_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskResourceSpec::release_ephemeral_storage() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceSpec.ephemeral_storage) - - return ephemeral_storage_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskResourceSpec::set_allocated_ephemeral_storage(::std::string* ephemeral_storage) { - if (ephemeral_storage != nullptr) { - - } else { - - } - ephemeral_storage_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ephemeral_storage); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceSpec.ephemeral_storage) -} - -// ------------------------------------------------------------------- - -// TaskResourceAttributes - -// .flyteidl.admin.TaskResourceSpec defaults = 1; -inline bool TaskResourceAttributes::has_defaults() const { - return this != internal_default_instance() && defaults_ != nullptr; -} -inline void TaskResourceAttributes::clear_defaults() { - if (GetArenaNoVirtual() == nullptr && defaults_ != nullptr) { - delete defaults_; - } - defaults_ = nullptr; -} -inline const ::flyteidl::admin::TaskResourceSpec& TaskResourceAttributes::defaults() const { - const ::flyteidl::admin::TaskResourceSpec* p = defaults_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceAttributes.defaults) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskResourceSpec_default_instance_); -} -inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::release_defaults() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceAttributes.defaults) - - ::flyteidl::admin::TaskResourceSpec* temp = defaults_; - defaults_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::mutable_defaults() { - - if (defaults_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(GetArenaNoVirtual()); - defaults_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceAttributes.defaults) - return defaults_; -} -inline void TaskResourceAttributes::set_allocated_defaults(::flyteidl::admin::TaskResourceSpec* defaults) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete defaults_; - } - if (defaults) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - defaults = ::google::protobuf::internal::GetOwnedMessage( - message_arena, defaults, submessage_arena); - } - - } else { - - } - defaults_ = defaults; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceAttributes.defaults) -} - -// .flyteidl.admin.TaskResourceSpec limits = 2; -inline bool TaskResourceAttributes::has_limits() const { - return this != internal_default_instance() && limits_ != nullptr; -} -inline void TaskResourceAttributes::clear_limits() { - if (GetArenaNoVirtual() == nullptr && limits_ != nullptr) { - delete limits_; - } - limits_ = nullptr; -} -inline const ::flyteidl::admin::TaskResourceSpec& TaskResourceAttributes::limits() const { - const ::flyteidl::admin::TaskResourceSpec* p = limits_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskResourceAttributes.limits) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskResourceSpec_default_instance_); -} -inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::release_limits() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskResourceAttributes.limits) - - ::flyteidl::admin::TaskResourceSpec* temp = limits_; - limits_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskResourceSpec* TaskResourceAttributes::mutable_limits() { - - if (limits_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskResourceSpec>(GetArenaNoVirtual()); - limits_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskResourceAttributes.limits) - return limits_; -} -inline void TaskResourceAttributes::set_allocated_limits(::flyteidl::admin::TaskResourceSpec* limits) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete limits_; - } - if (limits) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - limits = ::google::protobuf::internal::GetOwnedMessage( - message_arena, limits, submessage_arena); - } - - } else { - - } - limits_ = limits; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskResourceAttributes.limits) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ClusterResourceAttributes - -// map attributes = 1; -inline int ClusterResourceAttributes::attributes_size() const { - return attributes_.size(); -} -inline void ClusterResourceAttributes::clear_attributes() { - attributes_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -ClusterResourceAttributes::attributes() const { - // @@protoc_insertion_point(field_map:flyteidl.admin.ClusterResourceAttributes.attributes) - return attributes_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -ClusterResourceAttributes::mutable_attributes() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.admin.ClusterResourceAttributes.attributes) - return attributes_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ExecutionQueueAttributes - -// repeated string tags = 1; -inline int ExecutionQueueAttributes::tags_size() const { - return tags_.size(); -} -inline void ExecutionQueueAttributes::clear_tags() { - tags_.Clear(); -} -inline const ::std::string& ExecutionQueueAttributes::tags(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionQueueAttributes.tags) - return tags_.Get(index); -} -inline ::std::string* ExecutionQueueAttributes::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionQueueAttributes.tags) - return tags_.Mutable(index); -} -inline void ExecutionQueueAttributes::set_tags(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionQueueAttributes.tags) - tags_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void ExecutionQueueAttributes::set_tags(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionQueueAttributes.tags) - tags_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void ExecutionQueueAttributes::set_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionQueueAttributes.tags) -} -inline void ExecutionQueueAttributes::set_tags(int index, const char* value, size_t size) { - tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionQueueAttributes.tags) -} -inline ::std::string* ExecutionQueueAttributes::add_tags() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.ExecutionQueueAttributes.tags) - return tags_.Add(); -} -inline void ExecutionQueueAttributes::add_tags(const ::std::string& value) { - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionQueueAttributes.tags) -} -#if LANG_CXX11 -inline void ExecutionQueueAttributes::add_tags(::std::string&& value) { - tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.ExecutionQueueAttributes.tags) -} -#endif -inline void ExecutionQueueAttributes::add_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.ExecutionQueueAttributes.tags) -} -inline void ExecutionQueueAttributes::add_tags(const char* value, size_t size) { - tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.ExecutionQueueAttributes.tags) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -ExecutionQueueAttributes::tags() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ExecutionQueueAttributes.tags) - return tags_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -ExecutionQueueAttributes::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ExecutionQueueAttributes.tags) - return &tags_; -} - -// ------------------------------------------------------------------- - -// ExecutionClusterLabel - -// string value = 1; -inline void ExecutionClusterLabel::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionClusterLabel::value() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ExecutionClusterLabel.value) - return value_.GetNoArena(); -} -inline void ExecutionClusterLabel::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ExecutionClusterLabel.value) -} -#if LANG_CXX11 -inline void ExecutionClusterLabel::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ExecutionClusterLabel.value) -} -#endif -inline void ExecutionClusterLabel::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ExecutionClusterLabel.value) -} -inline void ExecutionClusterLabel::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ExecutionClusterLabel.value) -} -inline ::std::string* ExecutionClusterLabel::mutable_value() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ExecutionClusterLabel.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionClusterLabel::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ExecutionClusterLabel.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionClusterLabel::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ExecutionClusterLabel.value) -} - -// ------------------------------------------------------------------- - -// PluginOverride - -// string task_type = 1; -inline void PluginOverride::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PluginOverride::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.task_type) - return task_type_.GetNoArena(); -} -inline void PluginOverride::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.task_type) -} -#if LANG_CXX11 -inline void PluginOverride::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.PluginOverride.task_type) -} -#endif -inline void PluginOverride::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.PluginOverride.task_type) -} -inline void PluginOverride::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PluginOverride.task_type) -} -inline ::std::string* PluginOverride::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverride.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PluginOverride::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.PluginOverride.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PluginOverride::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.PluginOverride.task_type) -} - -// repeated string plugin_id = 2; -inline int PluginOverride::plugin_id_size() const { - return plugin_id_.size(); -} -inline void PluginOverride::clear_plugin_id() { - plugin_id_.Clear(); -} -inline const ::std::string& PluginOverride::plugin_id(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.plugin_id) - return plugin_id_.Get(index); -} -inline ::std::string* PluginOverride::mutable_plugin_id(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverride.plugin_id) - return plugin_id_.Mutable(index); -} -inline void PluginOverride::set_plugin_id(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.plugin_id) - plugin_id_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void PluginOverride::set_plugin_id(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.plugin_id) - plugin_id_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void PluginOverride::set_plugin_id(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - plugin_id_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.PluginOverride.plugin_id) -} -inline void PluginOverride::set_plugin_id(int index, const char* value, size_t size) { - plugin_id_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.PluginOverride.plugin_id) -} -inline ::std::string* PluginOverride::add_plugin_id() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.PluginOverride.plugin_id) - return plugin_id_.Add(); -} -inline void PluginOverride::add_plugin_id(const ::std::string& value) { - plugin_id_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverride.plugin_id) -} -#if LANG_CXX11 -inline void PluginOverride::add_plugin_id(::std::string&& value) { - plugin_id_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverride.plugin_id) -} -#endif -inline void PluginOverride::add_plugin_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - plugin_id_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.PluginOverride.plugin_id) -} -inline void PluginOverride::add_plugin_id(const char* value, size_t size) { - plugin_id_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.PluginOverride.plugin_id) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -PluginOverride::plugin_id() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.PluginOverride.plugin_id) - return plugin_id_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -PluginOverride::mutable_plugin_id() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PluginOverride.plugin_id) - return &plugin_id_; -} - -// .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; -inline void PluginOverride::clear_missing_plugin_behavior() { - missing_plugin_behavior_ = 0; -} -inline ::flyteidl::admin::PluginOverride_MissingPluginBehavior PluginOverride::missing_plugin_behavior() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverride.missing_plugin_behavior) - return static_cast< ::flyteidl::admin::PluginOverride_MissingPluginBehavior >(missing_plugin_behavior_); -} -inline void PluginOverride::set_missing_plugin_behavior(::flyteidl::admin::PluginOverride_MissingPluginBehavior value) { - - missing_plugin_behavior_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.PluginOverride.missing_plugin_behavior) -} - -// ------------------------------------------------------------------- - -// PluginOverrides - -// repeated .flyteidl.admin.PluginOverride overrides = 1; -inline int PluginOverrides::overrides_size() const { - return overrides_.size(); -} -inline void PluginOverrides::clear_overrides() { - overrides_.Clear(); -} -inline ::flyteidl::admin::PluginOverride* PluginOverrides::mutable_overrides(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.PluginOverrides.overrides) - return overrides_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >* -PluginOverrides::mutable_overrides() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.PluginOverrides.overrides) - return &overrides_; -} -inline const ::flyteidl::admin::PluginOverride& PluginOverrides::overrides(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.PluginOverrides.overrides) - return overrides_.Get(index); -} -inline ::flyteidl::admin::PluginOverride* PluginOverrides::add_overrides() { - // @@protoc_insertion_point(field_add:flyteidl.admin.PluginOverrides.overrides) - return overrides_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::PluginOverride >& -PluginOverrides::overrides() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.PluginOverrides.overrides) - return overrides_; -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionConfig - -// int32 max_parallelism = 1; -inline void WorkflowExecutionConfig::clear_max_parallelism() { - max_parallelism_ = 0; -} -inline ::google::protobuf::int32 WorkflowExecutionConfig::max_parallelism() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.max_parallelism) - return max_parallelism_; -} -inline void WorkflowExecutionConfig::set_max_parallelism(::google::protobuf::int32 value) { - - max_parallelism_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionConfig.max_parallelism) -} - -// .flyteidl.core.SecurityContext security_context = 2; -inline bool WorkflowExecutionConfig::has_security_context() const { - return this != internal_default_instance() && security_context_ != nullptr; -} -inline const ::flyteidl::core::SecurityContext& WorkflowExecutionConfig::security_context() const { - const ::flyteidl::core::SecurityContext* p = security_context_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.security_context) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SecurityContext_default_instance_); -} -inline ::flyteidl::core::SecurityContext* WorkflowExecutionConfig::release_security_context() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.security_context) - - ::flyteidl::core::SecurityContext* temp = security_context_; - security_context_ = nullptr; - return temp; -} -inline ::flyteidl::core::SecurityContext* WorkflowExecutionConfig::mutable_security_context() { - - if (security_context_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); - security_context_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.security_context) - return security_context_; -} -inline void WorkflowExecutionConfig::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); - } - if (security_context) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - security_context = ::google::protobuf::internal::GetOwnedMessage( - message_arena, security_context, submessage_arena); - } - - } else { - - } - security_context_ = security_context; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.security_context) -} - -// .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; -inline bool WorkflowExecutionConfig::has_raw_output_data_config() const { - return this != internal_default_instance() && raw_output_data_config_ != nullptr; -} -inline const ::flyteidl::admin::RawOutputDataConfig& WorkflowExecutionConfig::raw_output_data_config() const { - const ::flyteidl::admin::RawOutputDataConfig* p = raw_output_data_config_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_RawOutputDataConfig_default_instance_); -} -inline ::flyteidl::admin::RawOutputDataConfig* WorkflowExecutionConfig::release_raw_output_data_config() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) - - ::flyteidl::admin::RawOutputDataConfig* temp = raw_output_data_config_; - raw_output_data_config_ = nullptr; - return temp; -} -inline ::flyteidl::admin::RawOutputDataConfig* WorkflowExecutionConfig::mutable_raw_output_data_config() { - - if (raw_output_data_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::RawOutputDataConfig>(GetArenaNoVirtual()); - raw_output_data_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) - return raw_output_data_config_; -} -inline void WorkflowExecutionConfig::set_allocated_raw_output_data_config(::flyteidl::admin::RawOutputDataConfig* raw_output_data_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_output_data_config_); - } - if (raw_output_data_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_output_data_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_output_data_config, submessage_arena); - } - - } else { - - } - raw_output_data_config_ = raw_output_data_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.raw_output_data_config) -} - -// .flyteidl.admin.Labels labels = 4; -inline bool WorkflowExecutionConfig::has_labels() const { - return this != internal_default_instance() && labels_ != nullptr; -} -inline const ::flyteidl::admin::Labels& WorkflowExecutionConfig::labels() const { - const ::flyteidl::admin::Labels* p = labels_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.labels) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Labels_default_instance_); -} -inline ::flyteidl::admin::Labels* WorkflowExecutionConfig::release_labels() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.labels) - - ::flyteidl::admin::Labels* temp = labels_; - labels_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Labels* WorkflowExecutionConfig::mutable_labels() { - - if (labels_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); - labels_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.labels) - return labels_; -} -inline void WorkflowExecutionConfig::set_allocated_labels(::flyteidl::admin::Labels* labels) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); - } - if (labels) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - labels = ::google::protobuf::internal::GetOwnedMessage( - message_arena, labels, submessage_arena); - } - - } else { - - } - labels_ = labels; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.labels) -} - -// .flyteidl.admin.Annotations annotations = 5; -inline bool WorkflowExecutionConfig::has_annotations() const { - return this != internal_default_instance() && annotations_ != nullptr; -} -inline const ::flyteidl::admin::Annotations& WorkflowExecutionConfig::annotations() const { - const ::flyteidl::admin::Annotations* p = annotations_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.annotations) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Annotations_default_instance_); -} -inline ::flyteidl::admin::Annotations* WorkflowExecutionConfig::release_annotations() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.annotations) - - ::flyteidl::admin::Annotations* temp = annotations_; - annotations_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Annotations* WorkflowExecutionConfig::mutable_annotations() { - - if (annotations_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Annotations>(GetArenaNoVirtual()); - annotations_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.annotations) - return annotations_; -} -inline void WorkflowExecutionConfig::set_allocated_annotations(::flyteidl::admin::Annotations* annotations) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); - } - if (annotations) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - annotations = ::google::protobuf::internal::GetOwnedMessage( - message_arena, annotations, submessage_arena); - } - - } else { - - } - annotations_ = annotations; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.annotations) -} - -// .google.protobuf.BoolValue interruptible = 6; -inline bool WorkflowExecutionConfig::has_interruptible() const { - return this != internal_default_instance() && interruptible_ != nullptr; -} -inline const ::google::protobuf::BoolValue& WorkflowExecutionConfig::interruptible() const { - const ::google::protobuf::BoolValue* p = interruptible_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.interruptible) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_BoolValue_default_instance_); -} -inline ::google::protobuf::BoolValue* WorkflowExecutionConfig::release_interruptible() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.interruptible) - - ::google::protobuf::BoolValue* temp = interruptible_; - interruptible_ = nullptr; - return temp; -} -inline ::google::protobuf::BoolValue* WorkflowExecutionConfig::mutable_interruptible() { - - if (interruptible_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::BoolValue>(GetArenaNoVirtual()); - interruptible_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.interruptible) - return interruptible_; -} -inline void WorkflowExecutionConfig::set_allocated_interruptible(::google::protobuf::BoolValue* interruptible) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interruptible_); - } - if (interruptible) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(interruptible)->GetArena(); - if (message_arena != submessage_arena) { - interruptible = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interruptible, submessage_arena); - } - - } else { - - } - interruptible_ = interruptible; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.interruptible) -} - -// bool overwrite_cache = 7; -inline void WorkflowExecutionConfig::clear_overwrite_cache() { - overwrite_cache_ = false; -} -inline bool WorkflowExecutionConfig::overwrite_cache() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.overwrite_cache) - return overwrite_cache_; -} -inline void WorkflowExecutionConfig::set_overwrite_cache(bool value) { - - overwrite_cache_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowExecutionConfig.overwrite_cache) -} - -// .flyteidl.admin.Envs envs = 8; -inline bool WorkflowExecutionConfig::has_envs() const { - return this != internal_default_instance() && envs_ != nullptr; -} -inline const ::flyteidl::admin::Envs& WorkflowExecutionConfig::envs() const { - const ::flyteidl::admin::Envs* p = envs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowExecutionConfig.envs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Envs_default_instance_); -} -inline ::flyteidl::admin::Envs* WorkflowExecutionConfig::release_envs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowExecutionConfig.envs) - - ::flyteidl::admin::Envs* temp = envs_; - envs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Envs* WorkflowExecutionConfig::mutable_envs() { - - if (envs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Envs>(GetArenaNoVirtual()); - envs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowExecutionConfig.envs) - return envs_; -} -inline void WorkflowExecutionConfig::set_allocated_envs(::flyteidl::admin::Envs* envs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(envs_); - } - if (envs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - envs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, envs, submessage_arena); - } - - } else { - - } - envs_ = envs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowExecutionConfig.envs) -} - -// ------------------------------------------------------------------- - -// MatchingAttributes - -// .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; -inline bool MatchingAttributes::has_task_resource_attributes() const { - return target_case() == kTaskResourceAttributes; -} -inline void MatchingAttributes::set_has_task_resource_attributes() { - _oneof_case_[0] = kTaskResourceAttributes; -} -inline void MatchingAttributes::clear_task_resource_attributes() { - if (has_task_resource_attributes()) { - delete target_.task_resource_attributes_; - clear_has_target(); - } -} -inline ::flyteidl::admin::TaskResourceAttributes* MatchingAttributes::release_task_resource_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.task_resource_attributes) - if (has_task_resource_attributes()) { - clear_has_target(); - ::flyteidl::admin::TaskResourceAttributes* temp = target_.task_resource_attributes_; - target_.task_resource_attributes_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::TaskResourceAttributes& MatchingAttributes::task_resource_attributes() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.task_resource_attributes) - return has_task_resource_attributes() - ? *target_.task_resource_attributes_ - : *reinterpret_cast< ::flyteidl::admin::TaskResourceAttributes*>(&::flyteidl::admin::_TaskResourceAttributes_default_instance_); -} -inline ::flyteidl::admin::TaskResourceAttributes* MatchingAttributes::mutable_task_resource_attributes() { - if (!has_task_resource_attributes()) { - clear_target(); - set_has_task_resource_attributes(); - target_.task_resource_attributes_ = CreateMaybeMessage< ::flyteidl::admin::TaskResourceAttributes >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.task_resource_attributes) - return target_.task_resource_attributes_; -} - -// .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; -inline bool MatchingAttributes::has_cluster_resource_attributes() const { - return target_case() == kClusterResourceAttributes; -} -inline void MatchingAttributes::set_has_cluster_resource_attributes() { - _oneof_case_[0] = kClusterResourceAttributes; -} -inline void MatchingAttributes::clear_cluster_resource_attributes() { - if (has_cluster_resource_attributes()) { - delete target_.cluster_resource_attributes_; - clear_has_target(); - } -} -inline ::flyteidl::admin::ClusterResourceAttributes* MatchingAttributes::release_cluster_resource_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) - if (has_cluster_resource_attributes()) { - clear_has_target(); - ::flyteidl::admin::ClusterResourceAttributes* temp = target_.cluster_resource_attributes_; - target_.cluster_resource_attributes_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::ClusterResourceAttributes& MatchingAttributes::cluster_resource_attributes() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) - return has_cluster_resource_attributes() - ? *target_.cluster_resource_attributes_ - : *reinterpret_cast< ::flyteidl::admin::ClusterResourceAttributes*>(&::flyteidl::admin::_ClusterResourceAttributes_default_instance_); -} -inline ::flyteidl::admin::ClusterResourceAttributes* MatchingAttributes::mutable_cluster_resource_attributes() { - if (!has_cluster_resource_attributes()) { - clear_target(); - set_has_cluster_resource_attributes(); - target_.cluster_resource_attributes_ = CreateMaybeMessage< ::flyteidl::admin::ClusterResourceAttributes >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.cluster_resource_attributes) - return target_.cluster_resource_attributes_; -} - -// .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; -inline bool MatchingAttributes::has_execution_queue_attributes() const { - return target_case() == kExecutionQueueAttributes; -} -inline void MatchingAttributes::set_has_execution_queue_attributes() { - _oneof_case_[0] = kExecutionQueueAttributes; -} -inline void MatchingAttributes::clear_execution_queue_attributes() { - if (has_execution_queue_attributes()) { - delete target_.execution_queue_attributes_; - clear_has_target(); - } -} -inline ::flyteidl::admin::ExecutionQueueAttributes* MatchingAttributes::release_execution_queue_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.execution_queue_attributes) - if (has_execution_queue_attributes()) { - clear_has_target(); - ::flyteidl::admin::ExecutionQueueAttributes* temp = target_.execution_queue_attributes_; - target_.execution_queue_attributes_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::ExecutionQueueAttributes& MatchingAttributes::execution_queue_attributes() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.execution_queue_attributes) - return has_execution_queue_attributes() - ? *target_.execution_queue_attributes_ - : *reinterpret_cast< ::flyteidl::admin::ExecutionQueueAttributes*>(&::flyteidl::admin::_ExecutionQueueAttributes_default_instance_); -} -inline ::flyteidl::admin::ExecutionQueueAttributes* MatchingAttributes::mutable_execution_queue_attributes() { - if (!has_execution_queue_attributes()) { - clear_target(); - set_has_execution_queue_attributes(); - target_.execution_queue_attributes_ = CreateMaybeMessage< ::flyteidl::admin::ExecutionQueueAttributes >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.execution_queue_attributes) - return target_.execution_queue_attributes_; -} - -// .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; -inline bool MatchingAttributes::has_execution_cluster_label() const { - return target_case() == kExecutionClusterLabel; -} -inline void MatchingAttributes::set_has_execution_cluster_label() { - _oneof_case_[0] = kExecutionClusterLabel; -} -inline void MatchingAttributes::clear_execution_cluster_label() { - if (has_execution_cluster_label()) { - delete target_.execution_cluster_label_; - clear_has_target(); - } -} -inline ::flyteidl::admin::ExecutionClusterLabel* MatchingAttributes::release_execution_cluster_label() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.execution_cluster_label) - if (has_execution_cluster_label()) { - clear_has_target(); - ::flyteidl::admin::ExecutionClusterLabel* temp = target_.execution_cluster_label_; - target_.execution_cluster_label_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::ExecutionClusterLabel& MatchingAttributes::execution_cluster_label() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.execution_cluster_label) - return has_execution_cluster_label() - ? *target_.execution_cluster_label_ - : *reinterpret_cast< ::flyteidl::admin::ExecutionClusterLabel*>(&::flyteidl::admin::_ExecutionClusterLabel_default_instance_); -} -inline ::flyteidl::admin::ExecutionClusterLabel* MatchingAttributes::mutable_execution_cluster_label() { - if (!has_execution_cluster_label()) { - clear_target(); - set_has_execution_cluster_label(); - target_.execution_cluster_label_ = CreateMaybeMessage< ::flyteidl::admin::ExecutionClusterLabel >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.execution_cluster_label) - return target_.execution_cluster_label_; -} - -// .flyteidl.core.QualityOfService quality_of_service = 5; -inline bool MatchingAttributes::has_quality_of_service() const { - return target_case() == kQualityOfService; -} -inline void MatchingAttributes::set_has_quality_of_service() { - _oneof_case_[0] = kQualityOfService; -} -inline ::flyteidl::core::QualityOfService* MatchingAttributes::release_quality_of_service() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.quality_of_service) - if (has_quality_of_service()) { - clear_has_target(); - ::flyteidl::core::QualityOfService* temp = target_.quality_of_service_; - target_.quality_of_service_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::QualityOfService& MatchingAttributes::quality_of_service() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.quality_of_service) - return has_quality_of_service() - ? *target_.quality_of_service_ - : *reinterpret_cast< ::flyteidl::core::QualityOfService*>(&::flyteidl::core::_QualityOfService_default_instance_); -} -inline ::flyteidl::core::QualityOfService* MatchingAttributes::mutable_quality_of_service() { - if (!has_quality_of_service()) { - clear_target(); - set_has_quality_of_service(); - target_.quality_of_service_ = CreateMaybeMessage< ::flyteidl::core::QualityOfService >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.quality_of_service) - return target_.quality_of_service_; -} - -// .flyteidl.admin.PluginOverrides plugin_overrides = 6; -inline bool MatchingAttributes::has_plugin_overrides() const { - return target_case() == kPluginOverrides; -} -inline void MatchingAttributes::set_has_plugin_overrides() { - _oneof_case_[0] = kPluginOverrides; -} -inline void MatchingAttributes::clear_plugin_overrides() { - if (has_plugin_overrides()) { - delete target_.plugin_overrides_; - clear_has_target(); - } -} -inline ::flyteidl::admin::PluginOverrides* MatchingAttributes::release_plugin_overrides() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.plugin_overrides) - if (has_plugin_overrides()) { - clear_has_target(); - ::flyteidl::admin::PluginOverrides* temp = target_.plugin_overrides_; - target_.plugin_overrides_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::PluginOverrides& MatchingAttributes::plugin_overrides() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.plugin_overrides) - return has_plugin_overrides() - ? *target_.plugin_overrides_ - : *reinterpret_cast< ::flyteidl::admin::PluginOverrides*>(&::flyteidl::admin::_PluginOverrides_default_instance_); -} -inline ::flyteidl::admin::PluginOverrides* MatchingAttributes::mutable_plugin_overrides() { - if (!has_plugin_overrides()) { - clear_target(); - set_has_plugin_overrides(); - target_.plugin_overrides_ = CreateMaybeMessage< ::flyteidl::admin::PluginOverrides >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.plugin_overrides) - return target_.plugin_overrides_; -} - -// .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; -inline bool MatchingAttributes::has_workflow_execution_config() const { - return target_case() == kWorkflowExecutionConfig; -} -inline void MatchingAttributes::set_has_workflow_execution_config() { - _oneof_case_[0] = kWorkflowExecutionConfig; -} -inline void MatchingAttributes::clear_workflow_execution_config() { - if (has_workflow_execution_config()) { - delete target_.workflow_execution_config_; - clear_has_target(); - } -} -inline ::flyteidl::admin::WorkflowExecutionConfig* MatchingAttributes::release_workflow_execution_config() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.workflow_execution_config) - if (has_workflow_execution_config()) { - clear_has_target(); - ::flyteidl::admin::WorkflowExecutionConfig* temp = target_.workflow_execution_config_; - target_.workflow_execution_config_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::WorkflowExecutionConfig& MatchingAttributes::workflow_execution_config() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.workflow_execution_config) - return has_workflow_execution_config() - ? *target_.workflow_execution_config_ - : *reinterpret_cast< ::flyteidl::admin::WorkflowExecutionConfig*>(&::flyteidl::admin::_WorkflowExecutionConfig_default_instance_); -} -inline ::flyteidl::admin::WorkflowExecutionConfig* MatchingAttributes::mutable_workflow_execution_config() { - if (!has_workflow_execution_config()) { - clear_target(); - set_has_workflow_execution_config(); - target_.workflow_execution_config_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowExecutionConfig >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.workflow_execution_config) - return target_.workflow_execution_config_; -} - -// .flyteidl.admin.ClusterAssignment cluster_assignment = 8; -inline bool MatchingAttributes::has_cluster_assignment() const { - return target_case() == kClusterAssignment; -} -inline void MatchingAttributes::set_has_cluster_assignment() { - _oneof_case_[0] = kClusterAssignment; -} -inline ::flyteidl::admin::ClusterAssignment* MatchingAttributes::release_cluster_assignment() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchingAttributes.cluster_assignment) - if (has_cluster_assignment()) { - clear_has_target(); - ::flyteidl::admin::ClusterAssignment* temp = target_.cluster_assignment_; - target_.cluster_assignment_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::ClusterAssignment& MatchingAttributes::cluster_assignment() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchingAttributes.cluster_assignment) - return has_cluster_assignment() - ? *target_.cluster_assignment_ - : *reinterpret_cast< ::flyteidl::admin::ClusterAssignment*>(&::flyteidl::admin::_ClusterAssignment_default_instance_); -} -inline ::flyteidl::admin::ClusterAssignment* MatchingAttributes::mutable_cluster_assignment() { - if (!has_cluster_assignment()) { - clear_target(); - set_has_cluster_assignment(); - target_.cluster_assignment_ = CreateMaybeMessage< ::flyteidl::admin::ClusterAssignment >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchingAttributes.cluster_assignment) - return target_.cluster_assignment_; -} - -inline bool MatchingAttributes::has_target() const { - return target_case() != TARGET_NOT_SET; -} -inline void MatchingAttributes::clear_has_target() { - _oneof_case_[0] = TARGET_NOT_SET; -} -inline MatchingAttributes::TargetCase MatchingAttributes::target_case() const { - return MatchingAttributes::TargetCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// MatchableAttributesConfiguration - -// .flyteidl.admin.MatchingAttributes attributes = 1; -inline bool MatchableAttributesConfiguration::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void MatchableAttributesConfiguration::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::MatchingAttributes& MatchableAttributesConfiguration::attributes() const { - const ::flyteidl::admin::MatchingAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_MatchingAttributes_default_instance_); -} -inline ::flyteidl::admin::MatchingAttributes* MatchableAttributesConfiguration::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.attributes) - - ::flyteidl::admin::MatchingAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::MatchingAttributes* MatchableAttributesConfiguration::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.attributes) - return attributes_; -} -inline void MatchableAttributesConfiguration::set_allocated_attributes(::flyteidl::admin::MatchingAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.attributes) -} - -// string domain = 2; -inline void MatchableAttributesConfiguration::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& MatchableAttributesConfiguration::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.domain) - return domain_.GetNoArena(); -} -inline void MatchableAttributesConfiguration::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.domain) -} -#if LANG_CXX11 -inline void MatchableAttributesConfiguration::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.domain) -} -#endif -inline void MatchableAttributesConfiguration::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.domain) -} -inline void MatchableAttributesConfiguration::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.domain) -} -inline ::std::string* MatchableAttributesConfiguration::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* MatchableAttributesConfiguration::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void MatchableAttributesConfiguration::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.domain) -} - -// string project = 3; -inline void MatchableAttributesConfiguration::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& MatchableAttributesConfiguration::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.project) - return project_.GetNoArena(); -} -inline void MatchableAttributesConfiguration::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.project) -} -#if LANG_CXX11 -inline void MatchableAttributesConfiguration::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.project) -} -#endif -inline void MatchableAttributesConfiguration::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.project) -} -inline void MatchableAttributesConfiguration::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.project) -} -inline ::std::string* MatchableAttributesConfiguration::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* MatchableAttributesConfiguration::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void MatchableAttributesConfiguration::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.project) -} - -// string workflow = 4; -inline void MatchableAttributesConfiguration::clear_workflow() { - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& MatchableAttributesConfiguration::workflow() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.workflow) - return workflow_.GetNoArena(); -} -inline void MatchableAttributesConfiguration::set_workflow(const ::std::string& value) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.workflow) -} -#if LANG_CXX11 -inline void MatchableAttributesConfiguration::set_workflow(::std::string&& value) { - - workflow_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.workflow) -} -#endif -inline void MatchableAttributesConfiguration::set_workflow(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.workflow) -} -inline void MatchableAttributesConfiguration::set_workflow(const char* value, size_t size) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.workflow) -} -inline ::std::string* MatchableAttributesConfiguration::mutable_workflow() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.workflow) - return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* MatchableAttributesConfiguration::release_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.workflow) - - return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void MatchableAttributesConfiguration::set_allocated_workflow(::std::string* workflow) { - if (workflow != nullptr) { - - } else { - - } - workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.workflow) -} - -// string launch_plan = 5; -inline void MatchableAttributesConfiguration::clear_launch_plan() { - launch_plan_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& MatchableAttributesConfiguration::launch_plan() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) - return launch_plan_.GetNoArena(); -} -inline void MatchableAttributesConfiguration::set_launch_plan(const ::std::string& value) { - - launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) -} -#if LANG_CXX11 -inline void MatchableAttributesConfiguration::set_launch_plan(::std::string&& value) { - - launch_plan_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) -} -#endif -inline void MatchableAttributesConfiguration::set_launch_plan(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) -} -inline void MatchableAttributesConfiguration::set_launch_plan(const char* value, size_t size) { - - launch_plan_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) -} -inline ::std::string* MatchableAttributesConfiguration::mutable_launch_plan() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) - return launch_plan_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* MatchableAttributesConfiguration::release_launch_plan() { - // @@protoc_insertion_point(field_release:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) - - return launch_plan_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void MatchableAttributesConfiguration::set_allocated_launch_plan(::std::string* launch_plan) { - if (launch_plan != nullptr) { - - } else { - - } - launch_plan_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), launch_plan); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.MatchableAttributesConfiguration.launch_plan) -} - -// ------------------------------------------------------------------- - -// ListMatchableAttributesRequest - -// .flyteidl.admin.MatchableResource resource_type = 1; -inline void ListMatchableAttributesRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource ListMatchableAttributesRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ListMatchableAttributesRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void ListMatchableAttributesRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ListMatchableAttributesRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// ListMatchableAttributesResponse - -// repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; -inline int ListMatchableAttributesResponse::configurations_size() const { - return configurations_.size(); -} -inline void ListMatchableAttributesResponse::clear_configurations() { - configurations_.Clear(); -} -inline ::flyteidl::admin::MatchableAttributesConfiguration* ListMatchableAttributesResponse::mutable_configurations(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ListMatchableAttributesResponse.configurations) - return configurations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >* -ListMatchableAttributesResponse::mutable_configurations() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.ListMatchableAttributesResponse.configurations) - return &configurations_; -} -inline const ::flyteidl::admin::MatchableAttributesConfiguration& ListMatchableAttributesResponse::configurations(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ListMatchableAttributesResponse.configurations) - return configurations_.Get(index); -} -inline ::flyteidl::admin::MatchableAttributesConfiguration* ListMatchableAttributesResponse::add_configurations() { - // @@protoc_insertion_point(field_add:flyteidl.admin.ListMatchableAttributesResponse.configurations) - return configurations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::MatchableAttributesConfiguration >& -ListMatchableAttributesResponse::configurations() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.ListMatchableAttributesResponse.configurations) - return configurations_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::PluginOverride_MissingPluginBehavior> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::PluginOverride_MissingPluginBehavior>() { - return ::flyteidl::admin::PluginOverride_MissingPluginBehavior_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::admin::MatchableResource> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::MatchableResource>() { - return ::flyteidl::admin::MatchableResource_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fmatchable_5fresource_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc deleted file mode 100644 index 8a7c5d1e52..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/node_execution.proto - -#include "flyteidl/admin/node_execution.pb.h" -#include "flyteidl/admin/node_execution.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h deleted file mode 100644 index f035c0f44f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/node_execution.proto -#ifndef GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED - -#include "flyteidl/admin/node_execution.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fnode_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc deleted file mode 100644 index 09fc0a5e20..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.cc +++ /dev/null @@ -1,6716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/node_execution.proto - -#include "flyteidl/admin/node_execution.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace admin { -class NodeExecutionGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionGetRequest_default_instance_; -class NodeExecutionListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionListRequest_default_instance_; -class NodeExecutionForTaskListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionForTaskListRequest_default_instance_; -class NodeExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecution_default_instance_; -class NodeExecutionMetaDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionMetaData_default_instance_; -class NodeExecutionListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionList_default_instance_; -class NodeExecutionClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr output_uri_; - const ::flyteidl::core::ExecutionError* error_; - const ::flyteidl::core::LiteralMap* output_data_; - const ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; - const ::flyteidl::admin::TaskNodeMetadata* task_node_metadata_; -} _NodeExecutionClosure_default_instance_; -class WorkflowNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowNodeMetadata_default_instance_; -class TaskNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskNodeMetadata_default_instance_; -class DynamicWorkflowNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DynamicWorkflowNodeMetadata_default_instance_; -class NodeExecutionGetDataRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionGetDataRequest_default_instance_; -class NodeExecutionGetDataResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionGetDataResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsNodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsNodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionListRequest_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionForTaskListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionForTaskListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsNodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecution_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsNodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, - &scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; - -static void InitDefaultsNodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionMetaData_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionMetaData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionMetaData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, {}}; - -static void InitDefaultsNodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionList_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; - -static void InitDefaultsNodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionClosure_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsNodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, - &scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base,}}; - -static void InitDefaultsWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowNodeMetadata_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsTaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskNodeMetadata_default_instance_; - new (ptr) ::flyteidl::admin::TaskNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base,}}; - -static void InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_; - new (ptr) ::flyteidl::admin::DynamicWorkflowNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::DynamicWorkflowNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsNodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionGetDataRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionGetDataRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsNodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_; - new (ptr) ::flyteidl::admin::NodeExecutionGetDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::NodeExecutionGetDataResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsNodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto}, { - &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base, - &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[12]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, workflow_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, sort_by_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionListRequest, unique_parent_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, task_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionForTaskListRequest, sort_by_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, input_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, closure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecution, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, retry_group_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, is_parent_node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, spec_node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, is_dynamic_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionMetaData, is_array_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, node_executions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, output_uri_), - offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, error_), - offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, started_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, duration_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, created_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, updated_at_), - offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, workflow_node_metadata_), - offsetof(::flyteidl::admin::NodeExecutionClosureDefaultTypeInternal, task_node_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, deck_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, dynamic_job_spec_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, output_result_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionClosure, target_metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowNodeMetadata, executionid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, cache_status_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, catalog_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskNodeMetadata, checkpoint_uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, compiled_workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::DynamicWorkflowNodeMetadata, dynamic_job_spec_uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, full_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, full_outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, dynamic_workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::NodeExecutionGetDataResponse, flyte_urls_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::NodeExecutionGetRequest)}, - { 6, -1, sizeof(::flyteidl::admin::NodeExecutionListRequest)}, - { 17, -1, sizeof(::flyteidl::admin::NodeExecutionForTaskListRequest)}, - { 27, -1, sizeof(::flyteidl::admin::NodeExecution)}, - { 36, -1, sizeof(::flyteidl::admin::NodeExecutionMetaData)}, - { 46, -1, sizeof(::flyteidl::admin::NodeExecutionList)}, - { 53, -1, sizeof(::flyteidl::admin::NodeExecutionClosure)}, - { 72, -1, sizeof(::flyteidl::admin::WorkflowNodeMetadata)}, - { 78, -1, sizeof(::flyteidl::admin::TaskNodeMetadata)}, - { 86, -1, sizeof(::flyteidl::admin::DynamicWorkflowNodeMetadata)}, - { 94, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataRequest)}, - { 100, -1, sizeof(::flyteidl::admin::NodeExecutionGetDataResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecution_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionMetaData_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionClosure_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, "flyteidl/admin/node_execution.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto, 12, file_level_enum_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fnode_5fexecution_2eproto[] = - "\n#flyteidl/admin/node_execution.proto\022\016f" - "lyteidl.admin\032\033flyteidl/admin/common.pro" - "to\032\035flyteidl/core/execution.proto\032\033flyte" - "idl/core/catalog.proto\032\034flyteidl/core/co" - "mpiler.proto\032\036flyteidl/core/identifier.p" - "roto\032\034flyteidl/core/literals.proto\032\037goog" - "le/protobuf/timestamp.proto\032\036google/prot" - "obuf/duration.proto\"M\n\027NodeExecutionGetR" - "equest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" - "xecutionIdentifier\"\325\001\n\030NodeExecutionList" - "Request\022I\n\025workflow_execution_id\030\001 \001(\0132*" - ".flyteidl.core.WorkflowExecutionIdentifi" - "er\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filt" - "ers\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.ad" - "min.Sort\022\030\n\020unique_parent_id\030\006 \001(\t\"\272\001\n\037N" - "odeExecutionForTaskListRequest\022A\n\021task_e" - "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" - "ecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" - "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" - "\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExecutio" - "n\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExecut" - "ionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007clos" - "ure\030\003 \001(\0132$.flyteidl.admin.NodeExecution" - "Closure\0227\n\010metadata\030\004 \001(\0132%.flyteidl.adm" - "in.NodeExecutionMetaData\"\200\001\n\025NodeExecuti" - "onMetaData\022\023\n\013retry_group\030\001 \001(\t\022\026\n\016is_pa" - "rent_node\030\002 \001(\010\022\024\n\014spec_node_id\030\003 \001(\t\022\022\n" - "\nis_dynamic\030\004 \001(\010\022\020\n\010is_array\030\005 \001(\010\"Z\n\021N" - "odeExecutionList\0226\n\017node_executions\030\001 \003(" - "\0132\035.flyteidl.admin.NodeExecution\022\r\n\005toke" - "n\030\002 \001(\t\"\342\004\n\024NodeExecutionClosure\022\030\n\noutp" - "ut_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\0132\035.flyt" - "eidl.core.ExecutionErrorH\000\0224\n\013output_dat" - "a\030\n \001(\0132\031.flyteidl.core.LiteralMapB\002\030\001H\000" - "\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExec" - "ution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.google" - ".protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031." - "google.protobuf.Duration\022.\n\ncreated_at\030\006" - " \001(\0132\032.google.protobuf.Timestamp\022.\n\nupda" - "ted_at\030\007 \001(\0132\032.google.protobuf.Timestamp" - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" - "idl.admin.WorkflowNodeMetadataH\001\022>\n\022task" - "_node_metadata\030\t \001(\0132 .flyteidl.admin.Ta" - "skNodeMetadataH\001\022\020\n\010deck_uri\030\013 \001(\t\022\034\n\024dy" - "namic_job_spec_uri\030\014 \001(\tB\017\n\routput_resul" - "tB\021\n\017target_metadata\"W\n\024WorkflowNodeMeta" - "data\022\?\n\013executionId\030\001 \001(\0132*.flyteidl.cor" - "e.WorkflowExecutionIdentifier\"\230\001\n\020TaskNo" - "deMetadata\0227\n\014cache_status\030\001 \001(\0162!.flyte" - "idl.core.CatalogCacheStatus\0223\n\013catalog_k" - "ey\030\002 \001(\0132\036.flyteidl.core.CatalogMetadata" - "\022\026\n\016checkpoint_uri\030\004 \001(\t\"\245\001\n\033DynamicWork" - "flowNodeMetadata\022%\n\002id\030\001 \001(\0132\031.flyteidl." - "core.Identifier\022A\n\021compiled_workflow\030\002 \001" - "(\0132&.flyteidl.core.CompiledWorkflowClosu" - "re\022\034\n\024dynamic_job_spec_uri\030\003 \001(\t\"Q\n\033Node" - "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" - "yteidl.core.NodeExecutionIdentifier\"\320\002\n\034" - "NodeExecutionGetDataResponse\022+\n\006inputs\030\001" - " \001(\0132\027.flyteidl.admin.UrlBlobB\002\030\001\022,\n\007out" - "puts\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB\002\030\001\022" - ".\n\013full_inputs\030\003 \001(\0132\031.flyteidl.core.Lit" - "eralMap\022/\n\014full_outputs\030\004 \001(\0132\031.flyteidl" - ".core.LiteralMap\022E\n\020dynamic_workflow\030\020 \001" - "(\0132+.flyteidl.admin.DynamicWorkflowNodeM" - "etadata\022-\n\nflyte_urls\030\021 \001(\0132\031.flyteidl.a" - "dmin.FlyteURLsB=Z;github.com/flyteorg/fl" - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" - "roto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fnode_5fexecution_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fnode_5fexecution_2eproto, - "flyteidl/admin/node_execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto, 2725, -}; - -void AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[8] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto, deps, 8); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fnode_5fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void NodeExecutionGetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); -} -class NodeExecutionGetRequest::HasBitSetters { - public: - static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionGetRequest* msg); -}; - -const ::flyteidl::core::NodeExecutionIdentifier& -NodeExecutionGetRequest::HasBitSetters::id(const NodeExecutionGetRequest* msg) { - return *msg->id_; -} -void NodeExecutionGetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionGetRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionGetRequest::NodeExecutionGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetRequest) -} -NodeExecutionGetRequest::NodeExecutionGetRequest(const NodeExecutionGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetRequest) -} - -void NodeExecutionGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - id_ = nullptr; -} - -NodeExecutionGetRequest::~NodeExecutionGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetRequest) - SharedDtor(); -} - -void NodeExecutionGetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void NodeExecutionGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionGetRequest& NodeExecutionGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetRequest) - ::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* NodeExecutionGetRequest::_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.NodeExecutionIdentifier 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::NodeExecutionIdentifier::_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 NodeExecutionGetRequest::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.NodeExecutionGetRequest) - 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.NodeExecutionIdentifier 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.NodeExecutionGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier 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.NodeExecutionGetRequest) -} - -::google::protobuf::uint8* NodeExecutionGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier 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.NodeExecutionGetRequest) - return target; -} - -size_t NodeExecutionGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetRequest) - 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.NodeExecutionIdentifier 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 NodeExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetRequest) - MergeFrom(*source); - } -} - -void NodeExecutionGetRequest::MergeFrom(const NodeExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetRequest) - 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::NodeExecutionIdentifier::MergeFrom(from.id()); - } -} - -void NodeExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionGetRequest::CopyFrom(const NodeExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionGetRequest::IsInitialized() const { - return true; -} - -void NodeExecutionGetRequest::Swap(NodeExecutionGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionGetRequest::InternalSwap(NodeExecutionGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata NodeExecutionGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class NodeExecutionListRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const NodeExecutionListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const NodeExecutionListRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -NodeExecutionListRequest::HasBitSetters::workflow_execution_id(const NodeExecutionListRequest* msg) { - return *msg->workflow_execution_id_; -} -const ::flyteidl::admin::Sort& -NodeExecutionListRequest::HasBitSetters::sort_by(const NodeExecutionListRequest* msg) { - return *msg->sort_by_; -} -void NodeExecutionListRequest::clear_workflow_execution_id() { - if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { - delete workflow_execution_id_; - } - workflow_execution_id_ = nullptr; -} -void NodeExecutionListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionListRequest::kWorkflowExecutionIdFieldNumber; -const int NodeExecutionListRequest::kLimitFieldNumber; -const int NodeExecutionListRequest::kTokenFieldNumber; -const int NodeExecutionListRequest::kFiltersFieldNumber; -const int NodeExecutionListRequest::kSortByFieldNumber; -const int NodeExecutionListRequest::kUniqueParentIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionListRequest::NodeExecutionListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionListRequest) -} -NodeExecutionListRequest::NodeExecutionListRequest(const NodeExecutionListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - unique_parent_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.unique_parent_id().size() > 0) { - unique_parent_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unique_parent_id_); - } - if (from.has_workflow_execution_id()) { - workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); - } else { - workflow_execution_id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionListRequest) -} - -void NodeExecutionListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - unique_parent_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&workflow_execution_id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&workflow_execution_id_)) + sizeof(limit_)); -} - -NodeExecutionListRequest::~NodeExecutionListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionListRequest) - SharedDtor(); -} - -void NodeExecutionListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - unique_parent_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete workflow_execution_id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void NodeExecutionListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionListRequest& NodeExecutionListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - unique_parent_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { - delete workflow_execution_id_; - } - workflow_execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionListRequest::_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.WorkflowExecutionIdentifier workflow_execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_workflow_execution_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; - } - // uint32 limit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; - } - // string unique_parent_id = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); - object = msg->mutable_unique_parent_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionListRequest::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.NodeExecutionListRequest) - 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.WorkflowExecutionIdentifier workflow_execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } else { - goto handle_unusual; - } - break; - } - - // string unique_parent_id = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_unique_parent_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionListRequest.unique_parent_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.NodeExecutionListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_execution_id(this), output); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(this), output); - } - - // string unique_parent_id = 6; - if (this->unique_parent_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->unique_parent_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionListRequest) -} - -::google::protobuf::uint8* NodeExecutionListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow_execution_id(this), target); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(this), target); - } - - // string unique_parent_id = 6; - if (this->unique_parent_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->unique_parent_id().data(), static_cast(this->unique_parent_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionListRequest.unique_parent_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->unique_parent_id(), 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.NodeExecutionListRequest) - return target; -} - -size_t NodeExecutionListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionListRequest) - 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; - - // string token = 3; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 4; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // string unique_parent_id = 6; - if (this->unique_parent_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->unique_parent_id()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_execution_id_); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionListRequest) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionListRequest) - MergeFrom(*source); - } -} - -void NodeExecutionListRequest::MergeFrom(const NodeExecutionListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.unique_parent_id().size() > 0) { - - unique_parent_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unique_parent_id_); - } - if (from.has_workflow_execution_id()) { - mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void NodeExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionListRequest::CopyFrom(const NodeExecutionListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionListRequest::IsInitialized() const { - return true; -} - -void NodeExecutionListRequest::Swap(NodeExecutionListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionListRequest::InternalSwap(NodeExecutionListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - unique_parent_id_.Swap(&other->unique_parent_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(workflow_execution_id_, other->workflow_execution_id_); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata NodeExecutionListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionForTaskListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->task_execution_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionForTaskListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class NodeExecutionForTaskListRequest::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id(const NodeExecutionForTaskListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const NodeExecutionForTaskListRequest* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -NodeExecutionForTaskListRequest::HasBitSetters::task_execution_id(const NodeExecutionForTaskListRequest* msg) { - return *msg->task_execution_id_; -} -const ::flyteidl::admin::Sort& -NodeExecutionForTaskListRequest::HasBitSetters::sort_by(const NodeExecutionForTaskListRequest* msg) { - return *msg->sort_by_; -} -void NodeExecutionForTaskListRequest::clear_task_execution_id() { - if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { - delete task_execution_id_; - } - task_execution_id_ = nullptr; -} -void NodeExecutionForTaskListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionForTaskListRequest::kTaskExecutionIdFieldNumber; -const int NodeExecutionForTaskListRequest::kLimitFieldNumber; -const int NodeExecutionForTaskListRequest::kTokenFieldNumber; -const int NodeExecutionForTaskListRequest::kFiltersFieldNumber; -const int NodeExecutionForTaskListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionForTaskListRequest) -} -NodeExecutionForTaskListRequest::NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_task_execution_id()) { - task_execution_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_execution_id_); - } else { - task_execution_id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionForTaskListRequest) -} - -void NodeExecutionForTaskListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&task_execution_id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&task_execution_id_)) + sizeof(limit_)); -} - -NodeExecutionForTaskListRequest::~NodeExecutionForTaskListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionForTaskListRequest) - SharedDtor(); -} - -void NodeExecutionForTaskListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete task_execution_id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void NodeExecutionForTaskListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionForTaskListRequest& NodeExecutionForTaskListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionForTaskListRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionForTaskListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionForTaskListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && task_execution_id_ != nullptr) { - delete task_execution_id_; - } - task_execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionForTaskListRequest::_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.TaskExecutionIdentifier task_execution_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::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_task_execution_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; - } - // uint32 limit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionForTaskListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionForTaskListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionForTaskListRequest::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.NodeExecutionForTaskListRequest) - 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.TaskExecutionIdentifier task_execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionForTaskListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionForTaskListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.NodeExecutionForTaskListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionForTaskListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionForTaskListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionForTaskListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::task_execution_id(this), output); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionForTaskListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(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.NodeExecutionForTaskListRequest) -} - -::google::protobuf::uint8* NodeExecutionForTaskListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionForTaskListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::task_execution_id(this), target); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionForTaskListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionForTaskListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(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.NodeExecutionForTaskListRequest) - return target; -} - -size_t NodeExecutionForTaskListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionForTaskListRequest) - 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; - - // string token = 3; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 4; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - if (this->has_task_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_execution_id_); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionForTaskListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionForTaskListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionForTaskListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionForTaskListRequest) - MergeFrom(*source); - } -} - -void NodeExecutionForTaskListRequest::MergeFrom(const NodeExecutionForTaskListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_task_execution_id()) { - mutable_task_execution_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_execution_id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void NodeExecutionForTaskListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionForTaskListRequest::CopyFrom(const NodeExecutionForTaskListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionForTaskListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionForTaskListRequest::IsInitialized() const { - return true; -} - -void NodeExecutionForTaskListRequest::Swap(NodeExecutionForTaskListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionForTaskListRequest::InternalSwap(NodeExecutionForTaskListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(task_execution_id_, other->task_execution_id_); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata NodeExecutionForTaskListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecution::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::NodeExecutionClosure*>( - ::flyteidl::admin::NodeExecutionClosure::internal_default_instance()); - ::flyteidl::admin::_NodeExecution_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::admin::NodeExecutionMetaData*>( - ::flyteidl::admin::NodeExecutionMetaData::internal_default_instance()); -} -class NodeExecution::HasBitSetters { - public: - static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecution* msg); - static const ::flyteidl::admin::NodeExecutionClosure& closure(const NodeExecution* msg); - static const ::flyteidl::admin::NodeExecutionMetaData& metadata(const NodeExecution* msg); -}; - -const ::flyteidl::core::NodeExecutionIdentifier& -NodeExecution::HasBitSetters::id(const NodeExecution* msg) { - return *msg->id_; -} -const ::flyteidl::admin::NodeExecutionClosure& -NodeExecution::HasBitSetters::closure(const NodeExecution* msg) { - return *msg->closure_; -} -const ::flyteidl::admin::NodeExecutionMetaData& -NodeExecution::HasBitSetters::metadata(const NodeExecution* msg) { - return *msg->metadata_; -} -void NodeExecution::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecution::kIdFieldNumber; -const int NodeExecution::kInputUriFieldNumber; -const int NodeExecution::kClosureFieldNumber; -const int NodeExecution::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecution::NodeExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecution) -} -NodeExecution::NodeExecution(const NodeExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.input_uri().size() > 0) { - input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::NodeExecutionClosure(*from.closure_); - } else { - closure_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::admin::NodeExecutionMetaData(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecution) -} - -void NodeExecution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&metadata_) - - reinterpret_cast(&id_)) + sizeof(metadata_)); -} - -NodeExecution::~NodeExecution() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecution) - SharedDtor(); -} - -void NodeExecution::SharedDtor() { - input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete closure_; - if (this != internal_default_instance()) delete metadata_; -} - -void NodeExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecution& NodeExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecution_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecution::_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.NodeExecutionIdentifier 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::NodeExecutionIdentifier::_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; - } - // string input_uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecution.input_uri"); - object = msg->mutable_input_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.NodeExecutionClosure closure = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NodeExecutionClosure::_InternalParse; - object = msg->mutable_closure(); - 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.NodeExecutionMetaData metadata = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NodeExecutionMetaData::_InternalParse; - object = msg->mutable_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecution::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.NodeExecution) - 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.NodeExecutionIdentifier 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; - } - - // string input_uri = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_input_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecution.input_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NodeExecutionClosure closure = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.NodeExecutionMetaData metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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.NodeExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecution.input_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->input_uri(), output); - } - - // .flyteidl.admin.NodeExecutionClosure closure = 3; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::closure(this), output); - } - - // .flyteidl.admin.NodeExecutionMetaData metadata = 4; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::metadata(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.NodeExecution) -} - -::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecution.input_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->input_uri(), target); - } - - // .flyteidl.admin.NodeExecutionClosure closure = 3; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::closure(this), target); - } - - // .flyteidl.admin.NodeExecutionMetaData metadata = 4; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::metadata(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.NodeExecution) - return target; -} - -size_t NodeExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecution) - 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; - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->input_uri()); - } - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.NodeExecutionClosure closure = 3; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - // .flyteidl.admin.NodeExecutionMetaData metadata = 4; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecution) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecution) - MergeFrom(*source); - } -} - -void NodeExecution::MergeFrom(const NodeExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.input_uri().size() > 0) { - - input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::NodeExecutionClosure::MergeFrom(from.closure()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::admin::NodeExecutionMetaData::MergeFrom(from.metadata()); - } -} - -void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecution::CopyFrom(const NodeExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecution::IsInitialized() const { - return true; -} - -void NodeExecution::Swap(NodeExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecution::InternalSwap(NodeExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - input_uri_.Swap(&other->input_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(closure_, other->closure_); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata NodeExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionMetaData::InitAsDefaultInstance() { -} -class NodeExecutionMetaData::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionMetaData::kRetryGroupFieldNumber; -const int NodeExecutionMetaData::kIsParentNodeFieldNumber; -const int NodeExecutionMetaData::kSpecNodeIdFieldNumber; -const int NodeExecutionMetaData::kIsDynamicFieldNumber; -const int NodeExecutionMetaData::kIsArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionMetaData::NodeExecutionMetaData() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionMetaData) -} -NodeExecutionMetaData::NodeExecutionMetaData(const NodeExecutionMetaData& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.retry_group().size() > 0) { - retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); - } - spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.spec_node_id().size() > 0) { - spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); - } - ::memcpy(&is_parent_node_, &from.is_parent_node_, - static_cast(reinterpret_cast(&is_array_) - - reinterpret_cast(&is_parent_node_)) + sizeof(is_array_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionMetaData) -} - -void NodeExecutionMetaData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&is_parent_node_, 0, static_cast( - reinterpret_cast(&is_array_) - - reinterpret_cast(&is_parent_node_)) + sizeof(is_array_)); -} - -NodeExecutionMetaData::~NodeExecutionMetaData() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionMetaData) - SharedDtor(); -} - -void NodeExecutionMetaData::SharedDtor() { - retry_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NodeExecutionMetaData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionMetaData& NodeExecutionMetaData::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionMetaData_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionMetaData::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionMetaData) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&is_parent_node_, 0, static_cast( - reinterpret_cast(&is_array_) - - reinterpret_cast(&is_parent_node_)) + sizeof(is_array_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionMetaData::_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) { - // string retry_group = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionMetaData.retry_group"); - object = msg->mutable_retry_group(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool is_parent_node = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_is_parent_node(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string spec_node_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionMetaData.spec_node_id"); - object = msg->mutable_spec_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool is_dynamic = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_is_dynamic(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool is_array = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_is_array(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionMetaData::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.NodeExecutionMetaData) - 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)) { - // string retry_group = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_retry_group())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionMetaData.retry_group")); - } else { - goto handle_unusual; - } - break; - } - - // bool is_parent_node = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_parent_node_))); - } else { - goto handle_unusual; - } - break; - } - - // string spec_node_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_spec_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionMetaData.spec_node_id")); - } else { - goto handle_unusual; - } - break; - } - - // bool is_dynamic = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_dynamic_))); - } else { - goto handle_unusual; - } - break; - } - - // bool is_array = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_array_))); - } 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.NodeExecutionMetaData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionMetaData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionMetaData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionMetaData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string retry_group = 1; - if (this->retry_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionMetaData.retry_group"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->retry_group(), output); - } - - // bool is_parent_node = 2; - if (this->is_parent_node() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->is_parent_node(), output); - } - - // string spec_node_id = 3; - if (this->spec_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionMetaData.spec_node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->spec_node_id(), output); - } - - // bool is_dynamic = 4; - if (this->is_dynamic() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_dynamic(), output); - } - - // bool is_array = 5; - if (this->is_array() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->is_array(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionMetaData) -} - -::google::protobuf::uint8* NodeExecutionMetaData::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionMetaData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string retry_group = 1; - if (this->retry_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionMetaData.retry_group"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->retry_group(), target); - } - - // bool is_parent_node = 2; - if (this->is_parent_node() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->is_parent_node(), target); - } - - // string spec_node_id = 3; - if (this->spec_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionMetaData.spec_node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->spec_node_id(), target); - } - - // bool is_dynamic = 4; - if (this->is_dynamic() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_dynamic(), target); - } - - // bool is_array = 5; - if (this->is_array() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->is_array(), 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.NodeExecutionMetaData) - return target; -} - -size_t NodeExecutionMetaData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionMetaData) - 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; - - // string retry_group = 1; - if (this->retry_group().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->retry_group()); - } - - // string spec_node_id = 3; - if (this->spec_node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->spec_node_id()); - } - - // bool is_parent_node = 2; - if (this->is_parent_node() != 0) { - total_size += 1 + 1; - } - - // bool is_dynamic = 4; - if (this->is_dynamic() != 0) { - total_size += 1 + 1; - } - - // bool is_array = 5; - if (this->is_array() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionMetaData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionMetaData) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionMetaData* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionMetaData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionMetaData) - MergeFrom(*source); - } -} - -void NodeExecutionMetaData::MergeFrom(const NodeExecutionMetaData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionMetaData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.retry_group().size() > 0) { - - retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); - } - if (from.spec_node_id().size() > 0) { - - spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); - } - if (from.is_parent_node() != 0) { - set_is_parent_node(from.is_parent_node()); - } - if (from.is_dynamic() != 0) { - set_is_dynamic(from.is_dynamic()); - } - if (from.is_array() != 0) { - set_is_array(from.is_array()); - } -} - -void NodeExecutionMetaData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionMetaData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionMetaData::CopyFrom(const NodeExecutionMetaData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionMetaData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionMetaData::IsInitialized() const { - return true; -} - -void NodeExecutionMetaData::Swap(NodeExecutionMetaData* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionMetaData::InternalSwap(NodeExecutionMetaData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - retry_group_.Swap(&other->retry_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - spec_node_id_.Swap(&other->spec_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(is_parent_node_, other->is_parent_node_); - swap(is_dynamic_, other->is_dynamic_); - swap(is_array_, other->is_array_); -} - -::google::protobuf::Metadata NodeExecutionMetaData::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionList::InitAsDefaultInstance() { -} -class NodeExecutionList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionList::kNodeExecutionsFieldNumber; -const int NodeExecutionList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionList::NodeExecutionList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionList) -} -NodeExecutionList::NodeExecutionList(const NodeExecutionList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - node_executions_(from.node_executions_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionList) -} - -void NodeExecutionList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -NodeExecutionList::~NodeExecutionList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionList) - SharedDtor(); -} - -void NodeExecutionList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void NodeExecutionList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionList& NodeExecutionList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionList_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - node_executions_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionList::_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) { - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::NodeExecution::_InternalParse; - object = msg->add_node_executions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionList::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.NodeExecutionList) - 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)) { - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_node_executions())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionList.token")); - } 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.NodeExecutionList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - for (unsigned int i = 0, - n = static_cast(this->node_executions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->node_executions(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionList) -} - -::google::protobuf::uint8* NodeExecutionList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - for (unsigned int i = 0, - n = static_cast(this->node_executions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->node_executions(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.NodeExecutionList) - return target; -} - -size_t NodeExecutionList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionList) - 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; - - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - { - unsigned int count = static_cast(this->node_executions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->node_executions(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionList) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionList) - MergeFrom(*source); - } -} - -void NodeExecutionList::MergeFrom(const NodeExecutionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - node_executions_.MergeFrom(from.node_executions_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void NodeExecutionList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionList::CopyFrom(const NodeExecutionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionList::IsInitialized() const { - return true; -} - -void NodeExecutionList::Swap(NodeExecutionList* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionList::InternalSwap(NodeExecutionList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&node_executions_)->InternalSwap(CastToBase(&other->node_executions_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata NodeExecutionList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::admin::WorkflowNodeMetadata*>( - ::flyteidl::admin::WorkflowNodeMetadata::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionClosure_default_instance_.task_node_metadata_ = const_cast< ::flyteidl::admin::TaskNodeMetadata*>( - ::flyteidl::admin::TaskNodeMetadata::internal_default_instance()); -} -class NodeExecutionClosure::HasBitSetters { - public: - static const ::flyteidl::core::ExecutionError& error(const NodeExecutionClosure* msg); - static const ::flyteidl::core::LiteralMap& output_data(const NodeExecutionClosure* msg); - static const ::google::protobuf::Timestamp& started_at(const NodeExecutionClosure* msg); - static const ::google::protobuf::Duration& duration(const NodeExecutionClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const NodeExecutionClosure* msg); - static const ::google::protobuf::Timestamp& updated_at(const NodeExecutionClosure* msg); - static const ::flyteidl::admin::WorkflowNodeMetadata& workflow_node_metadata(const NodeExecutionClosure* msg); - static const ::flyteidl::admin::TaskNodeMetadata& task_node_metadata(const NodeExecutionClosure* msg); -}; - -const ::flyteidl::core::ExecutionError& -NodeExecutionClosure::HasBitSetters::error(const NodeExecutionClosure* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::core::LiteralMap& -NodeExecutionClosure::HasBitSetters::output_data(const NodeExecutionClosure* msg) { - return *msg->output_result_.output_data_; -} -const ::google::protobuf::Timestamp& -NodeExecutionClosure::HasBitSetters::started_at(const NodeExecutionClosure* msg) { - return *msg->started_at_; -} -const ::google::protobuf::Duration& -NodeExecutionClosure::HasBitSetters::duration(const NodeExecutionClosure* msg) { - return *msg->duration_; -} -const ::google::protobuf::Timestamp& -NodeExecutionClosure::HasBitSetters::created_at(const NodeExecutionClosure* msg) { - return *msg->created_at_; -} -const ::google::protobuf::Timestamp& -NodeExecutionClosure::HasBitSetters::updated_at(const NodeExecutionClosure* msg) { - return *msg->updated_at_; -} -const ::flyteidl::admin::WorkflowNodeMetadata& -NodeExecutionClosure::HasBitSetters::workflow_node_metadata(const NodeExecutionClosure* msg) { - return *msg->target_metadata_.workflow_node_metadata_; -} -const ::flyteidl::admin::TaskNodeMetadata& -NodeExecutionClosure::HasBitSetters::task_node_metadata(const NodeExecutionClosure* msg) { - return *msg->target_metadata_.task_node_metadata_; -} -void NodeExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.error) -} -void NodeExecutionClosure::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void NodeExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.output_data) -} -void NodeExecutionClosure::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -void NodeExecutionClosure::clear_started_at() { - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; -} -void NodeExecutionClosure::clear_duration() { - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; -} -void NodeExecutionClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -void NodeExecutionClosure::clear_updated_at() { - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; -} -void NodeExecutionClosure::set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target_metadata(); - if (workflow_node_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_node_metadata, submessage_arena); - } - set_has_workflow_node_metadata(); - target_metadata_.workflow_node_metadata_ = workflow_node_metadata; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) -} -void NodeExecutionClosure::set_allocated_task_node_metadata(::flyteidl::admin::TaskNodeMetadata* task_node_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target_metadata(); - if (task_node_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_node_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_node_metadata, submessage_arena); - } - set_has_task_node_metadata(); - target_metadata_.task_node_metadata_ = task_node_metadata; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.task_node_metadata) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionClosure::kOutputUriFieldNumber; -const int NodeExecutionClosure::kErrorFieldNumber; -const int NodeExecutionClosure::kOutputDataFieldNumber; -const int NodeExecutionClosure::kPhaseFieldNumber; -const int NodeExecutionClosure::kStartedAtFieldNumber; -const int NodeExecutionClosure::kDurationFieldNumber; -const int NodeExecutionClosure::kCreatedAtFieldNumber; -const int NodeExecutionClosure::kUpdatedAtFieldNumber; -const int NodeExecutionClosure::kWorkflowNodeMetadataFieldNumber; -const int NodeExecutionClosure::kTaskNodeMetadataFieldNumber; -const int NodeExecutionClosure::kDeckUriFieldNumber; -const int NodeExecutionClosure::kDynamicJobSpecUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionClosure::NodeExecutionClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionClosure) -} -NodeExecutionClosure::NodeExecutionClosure(const NodeExecutionClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.deck_uri().size() > 0) { - deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); - } - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.dynamic_job_spec_uri().size() > 0) { - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_started_at()) { - started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); - } else { - started_at_ = nullptr; - } - if (from.has_duration()) { - duration_ = new ::google::protobuf::Duration(*from.duration_); - } else { - duration_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - if (from.has_updated_at()) { - updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); - } else { - updated_at_ = nullptr; - } - phase_ = from.phase_; - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - clear_has_target_metadata(); - switch (from.target_metadata_case()) { - case kWorkflowNodeMetadata: { - mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); - break; - } - case kTaskNodeMetadata: { - mutable_task_node_metadata()->::flyteidl::admin::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionClosure) -} - -void NodeExecutionClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&started_at_, 0, static_cast( - reinterpret_cast(&phase_) - - reinterpret_cast(&started_at_)) + sizeof(phase_)); - clear_has_output_result(); - clear_has_target_metadata(); -} - -NodeExecutionClosure::~NodeExecutionClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionClosure) - SharedDtor(); -} - -void NodeExecutionClosure::SharedDtor() { - deck_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete started_at_; - if (this != internal_default_instance()) delete duration_; - if (this != internal_default_instance()) delete created_at_; - if (this != internal_default_instance()) delete updated_at_; - if (has_output_result()) { - clear_output_result(); - } - if (has_target_metadata()) { - clear_target_metadata(); - } -} - -void NodeExecutionClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionClosure& NodeExecutionClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionClosure_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionClosure::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) - switch (output_result_case()) { - case kOutputUri: { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} - -void NodeExecutionClosure::clear_target_metadata() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.NodeExecutionClosure) - switch (target_metadata_case()) { - case kWorkflowNodeMetadata: { - delete target_metadata_.workflow_node_metadata_; - break; - } - case kTaskNodeMetadata: { - delete target_metadata_.task_node_metadata_; - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - _oneof_case_[1] = TARGET_METADATA_NOT_SET; -} - - -void NodeExecutionClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; - phase_ = 0; - clear_output_result(); - clear_target_metadata(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionClosure::_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) { - // string output_uri = 1 [deprecated = true]; - 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.output_uri"); - object = msg->mutable_output_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError error = 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::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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.core.NodeExecution.Phase phase = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::NodeExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp started_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_started_at(); - 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; - } - // .google.protobuf.Duration duration = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_duration(); - 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; - } - // .google.protobuf.Timestamp created_at = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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; - } - // .google.protobuf.Timestamp updated_at = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_updated_at(); - 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.WorkflowNodeMetadata workflow_node_metadata = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::WorkflowNodeMetadata::_InternalParse; - object = msg->mutable_workflow_node_metadata(); - 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.TaskNodeMetadata task_node_metadata = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::TaskNodeMetadata::_InternalParse; - object = msg->mutable_task_node_metadata(); - 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.core.LiteralMap output_data = 10 [deprecated = true]; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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; - } - // string deck_uri = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.deck_uri"); - object = msg->mutable_deck_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string dynamic_job_spec_uri = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); - object = msg->mutable_dynamic_job_spec_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionClosure::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.NodeExecutionClosure) - 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)) { - // string output_uri = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionClosure.output_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp started_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_started_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration duration = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_duration())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp updated_at = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_updated_at())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_node_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_node_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // string deck_uri = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_deck_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionClosure.deck_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string dynamic_job_spec_uri = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_dynamic_job_spec_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri")); - } 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.NodeExecutionClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_uri = 1 [deprecated = true]; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.output_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->output_uri(), output); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::error(this), output); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->phase(), output); - } - - // .google.protobuf.Timestamp started_at = 4; - if (this->has_started_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::started_at(this), output); - } - - // .google.protobuf.Duration duration = 5; - if (this->has_duration()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::duration(this), output); - } - - // .google.protobuf.Timestamp created_at = 6; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::created_at(this), output); - } - - // .google.protobuf.Timestamp updated_at = 7; - if (this->has_updated_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::updated_at(this), output); - } - - // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - if (has_workflow_node_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::workflow_node_metadata(this), output); - } - - // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - if (has_task_node_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::task_node_metadata(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::output_data(this), output); - } - - // string deck_uri = 11; - if (this->deck_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.deck_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->deck_uri(), output); - } - - // string dynamic_job_spec_uri = 12; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 12, this->dynamic_job_spec_uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.NodeExecutionClosure) -} - -::google::protobuf::uint8* NodeExecutionClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_uri = 1 [deprecated = true]; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.output_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->output_uri(), target); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::error(this), target); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->phase(), target); - } - - // .google.protobuf.Timestamp started_at = 4; - if (this->has_started_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::started_at(this), target); - } - - // .google.protobuf.Duration duration = 5; - if (this->has_duration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::duration(this), target); - } - - // .google.protobuf.Timestamp created_at = 6; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::created_at(this), target); - } - - // .google.protobuf.Timestamp updated_at = 7; - if (this->has_updated_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::updated_at(this), target); - } - - // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - if (has_workflow_node_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::workflow_node_metadata(this), target); - } - - // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - if (has_task_node_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::task_node_metadata(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::output_data(this), target); - } - - // string deck_uri = 11; - if (this->deck_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.deck_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->deck_uri(), target); - } - - // string dynamic_job_spec_uri = 12; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->dynamic_job_spec_uri(), 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.NodeExecutionClosure) - return target; -} - -size_t NodeExecutionClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionClosure) - 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; - - // string deck_uri = 11; - if (this->deck_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->deck_uri()); - } - - // string dynamic_job_spec_uri = 12; - if (this->dynamic_job_spec_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dynamic_job_spec_uri()); - } - - // .google.protobuf.Timestamp started_at = 4; - if (this->has_started_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *started_at_); - } - - // .google.protobuf.Duration duration = 5; - if (this->has_duration()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *duration_); - } - - // .google.protobuf.Timestamp created_at = 6; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - // .google.protobuf.Timestamp updated_at = 7; - if (this->has_updated_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *updated_at_); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - switch (output_result_case()) { - // string output_uri = 1 [deprecated = true]; - case kOutputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_uri()); - break; - } - // .flyteidl.core.ExecutionError error = 2; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - case kOutputData: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - switch (target_metadata_case()) { - // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - case kWorkflowNodeMetadata: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_metadata_.workflow_node_metadata_); - break; - } - // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - case kTaskNodeMetadata: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_metadata_.task_node_metadata_); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionClosure) - MergeFrom(*source); - } -} - -void NodeExecutionClosure::MergeFrom(const NodeExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.deck_uri().size() > 0) { - - deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); - } - if (from.dynamic_job_spec_uri().size() > 0) { - - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_started_at()) { - mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); - } - if (from.has_duration()) { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } - if (from.has_updated_at()) { - mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - switch (from.target_metadata_case()) { - case kWorkflowNodeMetadata: { - mutable_workflow_node_metadata()->::flyteidl::admin::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); - break; - } - case kTaskNodeMetadata: { - mutable_task_node_metadata()->::flyteidl::admin::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } -} - -void NodeExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionClosure::CopyFrom(const NodeExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionClosure::IsInitialized() const { - return true; -} - -void NodeExecutionClosure::Swap(NodeExecutionClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionClosure::InternalSwap(NodeExecutionClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - deck_uri_.Swap(&other->deck_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(started_at_, other->started_at_); - swap(duration_, other->duration_); - swap(created_at_, other->created_at_); - swap(updated_at_, other->updated_at_); - swap(phase_, other->phase_); - swap(output_result_, other->output_result_); - swap(target_metadata_, other->target_metadata_); - swap(_oneof_case_[0], other->_oneof_case_[0]); - swap(_oneof_case_[1], other->_oneof_case_[1]); -} - -::google::protobuf::Metadata NodeExecutionClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->executionid_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class WorkflowNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& executionid(const WorkflowNodeMetadata* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowNodeMetadata::HasBitSetters::executionid(const WorkflowNodeMetadata* msg) { - return *msg->executionid_; -} -void WorkflowNodeMetadata::clear_executionid() { - if (GetArenaNoVirtual() == nullptr && executionid_ != nullptr) { - delete executionid_; - } - executionid_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowNodeMetadata::kExecutionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowNodeMetadata::WorkflowNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowNodeMetadata) -} -WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_executionid()) { - executionid_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.executionid_); - } else { - executionid_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowNodeMetadata) -} - -void WorkflowNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - executionid_ = nullptr; -} - -WorkflowNodeMetadata::~WorkflowNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowNodeMetadata) - SharedDtor(); -} - -void WorkflowNodeMetadata::SharedDtor() { - if (this != internal_default_instance()) delete executionid_; -} - -void WorkflowNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && executionid_ != nullptr) { - delete executionid_; - } - executionid_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowNodeMetadata::_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.WorkflowExecutionIdentifier executionId = 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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_executionid(); - 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 WorkflowNodeMetadata::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.WorkflowNodeMetadata) - 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.WorkflowExecutionIdentifier executionId = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_executionid())); - } 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.WorkflowNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - if (this->has_executionid()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::executionid(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.WorkflowNodeMetadata) -} - -::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - if (this->has_executionid()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::executionid(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.WorkflowNodeMetadata) - return target; -} - -size_t WorkflowNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowNodeMetadata) - 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.WorkflowExecutionIdentifier executionId = 1; - if (this->has_executionid()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *executionid_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowNodeMetadata) - MergeFrom(*source); - } -} - -void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowNodeMetadata) - 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_executionid()) { - mutable_executionid()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.executionid()); - } -} - -void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowNodeMetadata::IsInitialized() const { - return true; -} - -void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(executionid_, other->executionid_); -} - -::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskNodeMetadata_default_instance_._instance.get_mutable()->catalog_key_ = const_cast< ::flyteidl::core::CatalogMetadata*>( - ::flyteidl::core::CatalogMetadata::internal_default_instance()); -} -class TaskNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::CatalogMetadata& catalog_key(const TaskNodeMetadata* msg); -}; - -const ::flyteidl::core::CatalogMetadata& -TaskNodeMetadata::HasBitSetters::catalog_key(const TaskNodeMetadata* msg) { - return *msg->catalog_key_; -} -void TaskNodeMetadata::clear_catalog_key() { - if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { - delete catalog_key_; - } - catalog_key_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskNodeMetadata::kCacheStatusFieldNumber; -const int TaskNodeMetadata::kCatalogKeyFieldNumber; -const int TaskNodeMetadata::kCheckpointUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskNodeMetadata::TaskNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskNodeMetadata) -} -TaskNodeMetadata::TaskNodeMetadata(const TaskNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.checkpoint_uri().size() > 0) { - checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); - } - if (from.has_catalog_key()) { - catalog_key_ = new ::flyteidl::core::CatalogMetadata(*from.catalog_key_); - } else { - catalog_key_ = nullptr; - } - cache_status_ = from.cache_status_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskNodeMetadata) -} - -void TaskNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&catalog_key_, 0, static_cast( - reinterpret_cast(&cache_status_) - - reinterpret_cast(&catalog_key_)) + sizeof(cache_status_)); -} - -TaskNodeMetadata::~TaskNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskNodeMetadata) - SharedDtor(); -} - -void TaskNodeMetadata::SharedDtor() { - checkpoint_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete catalog_key_; -} - -void TaskNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskNodeMetadata& TaskNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { - delete catalog_key_; - } - catalog_key_ = nullptr; - cache_status_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskNodeMetadata::_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.CatalogCacheStatus cache_status = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.CatalogMetadata catalog_key = 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::core::CatalogMetadata::_InternalParse; - object = msg->mutable_catalog_key(); - 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; - } - // string checkpoint_uri = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); - object = msg->mutable_checkpoint_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskNodeMetadata::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.TaskNodeMetadata) - 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.CatalogCacheStatus cache_status = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_catalog_key())); - } else { - goto handle_unusual; - } - break; - } - - // string checkpoint_uri = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_checkpoint_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskNodeMetadata.checkpoint_uri")); - } 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.TaskNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->cache_status(), output); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::catalog_key(this), output); - } - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->checkpoint_uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskNodeMetadata) -} - -::google::protobuf::uint8* TaskNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->cache_status(), target); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::catalog_key(this), target); - } - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskNodeMetadata.checkpoint_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->checkpoint_uri(), 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.TaskNodeMetadata) - return target; -} - -size_t TaskNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskNodeMetadata) - 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; - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->checkpoint_uri()); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *catalog_key_); - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const TaskNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskNodeMetadata) - MergeFrom(*source); - } -} - -void TaskNodeMetadata::MergeFrom(const TaskNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.checkpoint_uri().size() > 0) { - - checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); - } - if (from.has_catalog_key()) { - mutable_catalog_key()->::flyteidl::core::CatalogMetadata::MergeFrom(from.catalog_key()); - } - if (from.cache_status() != 0) { - set_cache_status(from.cache_status()); - } -} - -void TaskNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskNodeMetadata::CopyFrom(const TaskNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskNodeMetadata::IsInitialized() const { - return true; -} - -void TaskNodeMetadata::Swap(TaskNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskNodeMetadata::InternalSwap(TaskNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - checkpoint_uri_.Swap(&other->checkpoint_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(catalog_key_, other->catalog_key_); - swap(cache_status_, other->cache_status_); -} - -::google::protobuf::Metadata TaskNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DynamicWorkflowNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( - ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); -} -class DynamicWorkflowNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const DynamicWorkflowNodeMetadata* msg); - static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const DynamicWorkflowNodeMetadata* msg); -}; - -const ::flyteidl::core::Identifier& -DynamicWorkflowNodeMetadata::HasBitSetters::id(const DynamicWorkflowNodeMetadata* msg) { - return *msg->id_; -} -const ::flyteidl::core::CompiledWorkflowClosure& -DynamicWorkflowNodeMetadata::HasBitSetters::compiled_workflow(const DynamicWorkflowNodeMetadata* msg) { - return *msg->compiled_workflow_; -} -void DynamicWorkflowNodeMetadata::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void DynamicWorkflowNodeMetadata::clear_compiled_workflow() { - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DynamicWorkflowNodeMetadata::kIdFieldNumber; -const int DynamicWorkflowNodeMetadata::kCompiledWorkflowFieldNumber; -const int DynamicWorkflowNodeMetadata::kDynamicJobSpecUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.DynamicWorkflowNodeMetadata) -} -DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.dynamic_job_spec_uri().size() > 0) { - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_compiled_workflow()) { - compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); - } else { - compiled_workflow_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.DynamicWorkflowNodeMetadata) -} - -void DynamicWorkflowNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&compiled_workflow_) - - reinterpret_cast(&id_)) + sizeof(compiled_workflow_)); -} - -DynamicWorkflowNodeMetadata::~DynamicWorkflowNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.admin.DynamicWorkflowNodeMetadata) - SharedDtor(); -} - -void DynamicWorkflowNodeMetadata::SharedDtor() { - dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete compiled_workflow_; -} - -void DynamicWorkflowNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DynamicWorkflowNodeMetadata& DynamicWorkflowNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void DynamicWorkflowNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DynamicWorkflowNodeMetadata::_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; - } - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 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::core::CompiledWorkflowClosure::_InternalParse; - object = msg->mutable_compiled_workflow(); - 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; - } - // string dynamic_job_spec_uri = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - object = msg->mutable_dynamic_job_spec_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DynamicWorkflowNodeMetadata::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.DynamicWorkflowNodeMetadata) - 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; - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_compiled_workflow())); - } else { - goto handle_unusual; - } - break; - } - - // string dynamic_job_spec_uri = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_dynamic_job_spec_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri")); - } 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.DynamicWorkflowNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.DynamicWorkflowNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DynamicWorkflowNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - ::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); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::compiled_workflow(this), output); - } - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->dynamic_job_spec_uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.DynamicWorkflowNodeMetadata) -} - -::google::protobuf::uint8* DynamicWorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - ::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); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::compiled_workflow(this), target); - } - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->dynamic_job_spec_uri(), 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.DynamicWorkflowNodeMetadata) - return target; -} - -size_t DynamicWorkflowNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - 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; - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dynamic_job_spec_uri()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *compiled_workflow_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DynamicWorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const DynamicWorkflowNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.DynamicWorkflowNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.DynamicWorkflowNodeMetadata) - MergeFrom(*source); - } -} - -void DynamicWorkflowNodeMetadata::MergeFrom(const DynamicWorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.dynamic_job_spec_uri().size() > 0) { - - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_compiled_workflow()) { - mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); - } -} - -void DynamicWorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DynamicWorkflowNodeMetadata::CopyFrom(const DynamicWorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.DynamicWorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DynamicWorkflowNodeMetadata::IsInitialized() const { - return true; -} - -void DynamicWorkflowNodeMetadata::Swap(DynamicWorkflowNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void DynamicWorkflowNodeMetadata::InternalSwap(DynamicWorkflowNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(compiled_workflow_, other->compiled_workflow_); -} - -::google::protobuf::Metadata DynamicWorkflowNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionGetDataRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); -} -class NodeExecutionGetDataRequest::HasBitSetters { - public: - static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionGetDataRequest* msg); -}; - -const ::flyteidl::core::NodeExecutionIdentifier& -NodeExecutionGetDataRequest::HasBitSetters::id(const NodeExecutionGetDataRequest* msg) { - return *msg->id_; -} -void NodeExecutionGetDataRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionGetDataRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionGetDataRequest::NodeExecutionGetDataRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataRequest) -} -NodeExecutionGetDataRequest::NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataRequest) -} - -void NodeExecutionGetDataRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - id_ = nullptr; -} - -NodeExecutionGetDataRequest::~NodeExecutionGetDataRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataRequest) - SharedDtor(); -} - -void NodeExecutionGetDataRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void NodeExecutionGetDataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionGetDataRequest& NodeExecutionGetDataRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetDataRequest_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionGetDataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataRequest) - ::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* NodeExecutionGetDataRequest::_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.NodeExecutionIdentifier 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::NodeExecutionIdentifier::_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 NodeExecutionGetDataRequest::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.NodeExecutionGetDataRequest) - 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.NodeExecutionIdentifier 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.NodeExecutionGetDataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionGetDataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier 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.NodeExecutionGetDataRequest) -} - -::google::protobuf::uint8* NodeExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier 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.NodeExecutionGetDataRequest) - return target; -} - -size_t NodeExecutionGetDataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataRequest) - 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.NodeExecutionIdentifier 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 NodeExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionGetDataRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataRequest) - MergeFrom(*source); - } -} - -void NodeExecutionGetDataRequest::MergeFrom(const NodeExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataRequest) - 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::NodeExecutionIdentifier::MergeFrom(from.id()); - } -} - -void NodeExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionGetDataRequest::CopyFrom(const NodeExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionGetDataRequest::IsInitialized() const { - return true; -} - -void NodeExecutionGetDataRequest::Swap(NodeExecutionGetDataRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionGetDataRequest::InternalSwap(NodeExecutionGetDataRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata NodeExecutionGetDataRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionGetDataResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->dynamic_workflow_ = const_cast< ::flyteidl::admin::DynamicWorkflowNodeMetadata*>( - ::flyteidl::admin::DynamicWorkflowNodeMetadata::internal_default_instance()); - ::flyteidl::admin::_NodeExecutionGetDataResponse_default_instance_._instance.get_mutable()->flyte_urls_ = const_cast< ::flyteidl::admin::FlyteURLs*>( - ::flyteidl::admin::FlyteURLs::internal_default_instance()); -} -class NodeExecutionGetDataResponse::HasBitSetters { - public: - static const ::flyteidl::admin::UrlBlob& inputs(const NodeExecutionGetDataResponse* msg); - static const ::flyteidl::admin::UrlBlob& outputs(const NodeExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_inputs(const NodeExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_outputs(const NodeExecutionGetDataResponse* msg); - static const ::flyteidl::admin::DynamicWorkflowNodeMetadata& dynamic_workflow(const NodeExecutionGetDataResponse* msg); - static const ::flyteidl::admin::FlyteURLs& flyte_urls(const NodeExecutionGetDataResponse* msg); -}; - -const ::flyteidl::admin::UrlBlob& -NodeExecutionGetDataResponse::HasBitSetters::inputs(const NodeExecutionGetDataResponse* msg) { - return *msg->inputs_; -} -const ::flyteidl::admin::UrlBlob& -NodeExecutionGetDataResponse::HasBitSetters::outputs(const NodeExecutionGetDataResponse* msg) { - return *msg->outputs_; -} -const ::flyteidl::core::LiteralMap& -NodeExecutionGetDataResponse::HasBitSetters::full_inputs(const NodeExecutionGetDataResponse* msg) { - return *msg->full_inputs_; -} -const ::flyteidl::core::LiteralMap& -NodeExecutionGetDataResponse::HasBitSetters::full_outputs(const NodeExecutionGetDataResponse* msg) { - return *msg->full_outputs_; -} -const ::flyteidl::admin::DynamicWorkflowNodeMetadata& -NodeExecutionGetDataResponse::HasBitSetters::dynamic_workflow(const NodeExecutionGetDataResponse* msg) { - return *msg->dynamic_workflow_; -} -const ::flyteidl::admin::FlyteURLs& -NodeExecutionGetDataResponse::HasBitSetters::flyte_urls(const NodeExecutionGetDataResponse* msg) { - return *msg->flyte_urls_; -} -void NodeExecutionGetDataResponse::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void NodeExecutionGetDataResponse::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -void NodeExecutionGetDataResponse::clear_full_inputs() { - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; -} -void NodeExecutionGetDataResponse::clear_full_outputs() { - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; -} -void NodeExecutionGetDataResponse::clear_flyte_urls() { - if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { - delete flyte_urls_; - } - flyte_urls_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionGetDataResponse::kInputsFieldNumber; -const int NodeExecutionGetDataResponse::kOutputsFieldNumber; -const int NodeExecutionGetDataResponse::kFullInputsFieldNumber; -const int NodeExecutionGetDataResponse::kFullOutputsFieldNumber; -const int NodeExecutionGetDataResponse::kDynamicWorkflowFieldNumber; -const int NodeExecutionGetDataResponse::kFlyteUrlsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionGetDataResponse::NodeExecutionGetDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.NodeExecutionGetDataResponse) -} -NodeExecutionGetDataResponse::NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_inputs()) { - inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_outputs()) { - outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); - } else { - outputs_ = nullptr; - } - if (from.has_full_inputs()) { - full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); - } else { - full_inputs_ = nullptr; - } - if (from.has_full_outputs()) { - full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); - } else { - full_outputs_ = nullptr; - } - if (from.has_dynamic_workflow()) { - dynamic_workflow_ = new ::flyteidl::admin::DynamicWorkflowNodeMetadata(*from.dynamic_workflow_); - } else { - dynamic_workflow_ = nullptr; - } - if (from.has_flyte_urls()) { - flyte_urls_ = new ::flyteidl::admin::FlyteURLs(*from.flyte_urls_); - } else { - flyte_urls_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.NodeExecutionGetDataResponse) -} - -void NodeExecutionGetDataResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - ::memset(&inputs_, 0, static_cast( - reinterpret_cast(&flyte_urls_) - - reinterpret_cast(&inputs_)) + sizeof(flyte_urls_)); -} - -NodeExecutionGetDataResponse::~NodeExecutionGetDataResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.NodeExecutionGetDataResponse) - SharedDtor(); -} - -void NodeExecutionGetDataResponse::SharedDtor() { - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete outputs_; - if (this != internal_default_instance()) delete full_inputs_; - if (this != internal_default_instance()) delete full_outputs_; - if (this != internal_default_instance()) delete dynamic_workflow_; - if (this != internal_default_instance()) delete flyte_urls_; -} - -void NodeExecutionGetDataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionGetDataResponse& NodeExecutionGetDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionGetDataResponse_flyteidl_2fadmin_2fnode_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionGetDataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.NodeExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { - delete dynamic_workflow_; - } - dynamic_workflow_ = nullptr; - if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { - delete flyte_urls_; - } - flyte_urls_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionGetDataResponse::_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.UrlBlob inputs = 1 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_inputs(); - 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.UrlBlob outputs = 2 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_outputs(); - 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.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_inputs(); - 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.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_outputs(); - 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.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::DynamicWorkflowNodeMetadata::_InternalParse; - object = msg->mutable_dynamic_workflow(); - 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.FlyteURLs flyte_urls = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::FlyteURLs::_InternalParse; - object = msg->mutable_flyte_urls(); - 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 NodeExecutionGetDataResponse::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.NodeExecutionGetDataResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dynamic_workflow())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_flyte_urls())); - } 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.NodeExecutionGetDataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.NodeExecutionGetDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionGetDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.NodeExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::inputs(this), output); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::full_inputs(this), output); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::full_outputs(this), output); - } - - // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::dynamic_workflow(this), output); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 17; - if (this->has_flyte_urls()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::flyte_urls(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.NodeExecutionGetDataResponse) -} - -::google::protobuf::uint8* NodeExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.NodeExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::inputs(this), target); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(this), target); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::full_inputs(this), target); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::full_outputs(this), target); - } - - // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::dynamic_workflow(this), target); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 17; - if (this->has_flyte_urls()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::flyte_urls(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.NodeExecutionGetDataResponse) - return target; -} - -size_t NodeExecutionGetDataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.NodeExecutionGetDataResponse) - 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.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_inputs_); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_outputs_); - } - - // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dynamic_workflow_); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 17; - if (this->has_flyte_urls()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *flyte_urls_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionGetDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.NodeExecutionGetDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.NodeExecutionGetDataResponse) - MergeFrom(*source); - } -} - -void NodeExecutionGetDataResponse::MergeFrom(const NodeExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.NodeExecutionGetDataResponse) - 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_inputs()) { - mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); - } - if (from.has_outputs()) { - mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); - } - if (from.has_full_inputs()) { - mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); - } - if (from.has_full_outputs()) { - mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); - } - if (from.has_dynamic_workflow()) { - mutable_dynamic_workflow()->::flyteidl::admin::DynamicWorkflowNodeMetadata::MergeFrom(from.dynamic_workflow()); - } - if (from.has_flyte_urls()) { - mutable_flyte_urls()->::flyteidl::admin::FlyteURLs::MergeFrom(from.flyte_urls()); - } -} - -void NodeExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionGetDataResponse::CopyFrom(const NodeExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.NodeExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionGetDataResponse::IsInitialized() const { - return true; -} - -void NodeExecutionGetDataResponse::Swap(NodeExecutionGetDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionGetDataResponse::InternalSwap(NodeExecutionGetDataResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(inputs_, other->inputs_); - swap(outputs_, other->outputs_); - swap(full_inputs_, other->full_inputs_); - swap(full_outputs_, other->full_outputs_); - swap(dynamic_workflow_, other->dynamic_workflow_); - swap(flyte_urls_, other->flyte_urls_); -} - -::google::protobuf::Metadata NodeExecutionGetDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnode_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnode_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionForTaskListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionForTaskListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionForTaskListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecution* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionMetaData* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionMetaData >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionMetaData >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionClosure >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::admin::DynamicWorkflowNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::DynamicWorkflowNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetDataRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetDataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::NodeExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::NodeExecutionGetDataResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::NodeExecutionGetDataResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h deleted file mode 100644 index 88da7e3612..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/node_execution.pb.h +++ /dev/null @@ -1,4184 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/node_execution.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/catalog.pb.h" -#include "flyteidl/core/compiler.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/literals.pb.h" -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnode_5fexecution_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[12] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto(); -namespace flyteidl { -namespace admin { -class DynamicWorkflowNodeMetadata; -class DynamicWorkflowNodeMetadataDefaultTypeInternal; -extern DynamicWorkflowNodeMetadataDefaultTypeInternal _DynamicWorkflowNodeMetadata_default_instance_; -class NodeExecution; -class NodeExecutionDefaultTypeInternal; -extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; -class NodeExecutionClosure; -class NodeExecutionClosureDefaultTypeInternal; -extern NodeExecutionClosureDefaultTypeInternal _NodeExecutionClosure_default_instance_; -class NodeExecutionForTaskListRequest; -class NodeExecutionForTaskListRequestDefaultTypeInternal; -extern NodeExecutionForTaskListRequestDefaultTypeInternal _NodeExecutionForTaskListRequest_default_instance_; -class NodeExecutionGetDataRequest; -class NodeExecutionGetDataRequestDefaultTypeInternal; -extern NodeExecutionGetDataRequestDefaultTypeInternal _NodeExecutionGetDataRequest_default_instance_; -class NodeExecutionGetDataResponse; -class NodeExecutionGetDataResponseDefaultTypeInternal; -extern NodeExecutionGetDataResponseDefaultTypeInternal _NodeExecutionGetDataResponse_default_instance_; -class NodeExecutionGetRequest; -class NodeExecutionGetRequestDefaultTypeInternal; -extern NodeExecutionGetRequestDefaultTypeInternal _NodeExecutionGetRequest_default_instance_; -class NodeExecutionList; -class NodeExecutionListDefaultTypeInternal; -extern NodeExecutionListDefaultTypeInternal _NodeExecutionList_default_instance_; -class NodeExecutionListRequest; -class NodeExecutionListRequestDefaultTypeInternal; -extern NodeExecutionListRequestDefaultTypeInternal _NodeExecutionListRequest_default_instance_; -class NodeExecutionMetaData; -class NodeExecutionMetaDataDefaultTypeInternal; -extern NodeExecutionMetaDataDefaultTypeInternal _NodeExecutionMetaData_default_instance_; -class TaskNodeMetadata; -class TaskNodeMetadataDefaultTypeInternal; -extern TaskNodeMetadataDefaultTypeInternal _TaskNodeMetadata_default_instance_; -class WorkflowNodeMetadata; -class WorkflowNodeMetadataDefaultTypeInternal; -extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::DynamicWorkflowNodeMetadata>(Arena*); -template<> ::flyteidl::admin::NodeExecution* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecution>(Arena*); -template<> ::flyteidl::admin::NodeExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionClosure>(Arena*); -template<> ::flyteidl::admin::NodeExecutionForTaskListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionForTaskListRequest>(Arena*); -template<> ::flyteidl::admin::NodeExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetDataRequest>(Arena*); -template<> ::flyteidl::admin::NodeExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetDataResponse>(Arena*); -template<> ::flyteidl::admin::NodeExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionGetRequest>(Arena*); -template<> ::flyteidl::admin::NodeExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionList>(Arena*); -template<> ::flyteidl::admin::NodeExecutionListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionListRequest>(Arena*); -template<> ::flyteidl::admin::NodeExecutionMetaData* Arena::CreateMaybeMessage<::flyteidl::admin::NodeExecutionMetaData>(Arena*); -template<> ::flyteidl::admin::TaskNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::TaskNodeMetadata>(Arena*); -template<> ::flyteidl::admin::WorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowNodeMetadata>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class NodeExecutionGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetRequest) */ { - public: - NodeExecutionGetRequest(); - virtual ~NodeExecutionGetRequest(); - - NodeExecutionGetRequest(const NodeExecutionGetRequest& from); - - inline NodeExecutionGetRequest& operator=(const NodeExecutionGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionGetRequest(NodeExecutionGetRequest&& from) noexcept - : NodeExecutionGetRequest() { - *this = ::std::move(from); - } - - inline NodeExecutionGetRequest& operator=(NodeExecutionGetRequest&& 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 NodeExecutionGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionGetRequest* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(NodeExecutionGetRequest* other); - friend void swap(NodeExecutionGetRequest& a, NodeExecutionGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionGetRequest* 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 NodeExecutionGetRequest& from); - void MergeFrom(const NodeExecutionGetRequest& 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(NodeExecutionGetRequest* 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.NodeExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::NodeExecutionIdentifier& id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::NodeExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionListRequest) */ { - public: - NodeExecutionListRequest(); - virtual ~NodeExecutionListRequest(); - - NodeExecutionListRequest(const NodeExecutionListRequest& from); - - inline NodeExecutionListRequest& operator=(const NodeExecutionListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionListRequest(NodeExecutionListRequest&& from) noexcept - : NodeExecutionListRequest() { - *this = ::std::move(from); - } - - inline NodeExecutionListRequest& operator=(NodeExecutionListRequest&& 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 NodeExecutionListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionListRequest* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(NodeExecutionListRequest* other); - friend void swap(NodeExecutionListRequest& a, NodeExecutionListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionListRequest* 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 NodeExecutionListRequest& from); - void MergeFrom(const NodeExecutionListRequest& 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(NodeExecutionListRequest* 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 ------------------------------------------------------- - - // string token = 3; - void clear_token(); - static const int kTokenFieldNumber = 3; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 4; - void clear_filters(); - static const int kFiltersFieldNumber = 4; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // string unique_parent_id = 6; - void clear_unique_parent_id(); - static const int kUniqueParentIdFieldNumber = 6; - const ::std::string& unique_parent_id() const; - void set_unique_parent_id(const ::std::string& value); - #if LANG_CXX11 - void set_unique_parent_id(::std::string&& value); - #endif - void set_unique_parent_id(const char* value); - void set_unique_parent_id(const char* value, size_t size); - ::std::string* mutable_unique_parent_id(); - ::std::string* release_unique_parent_id(); - void set_allocated_unique_parent_id(::std::string* unique_parent_id); - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - bool has_workflow_execution_id() const; - void clear_workflow_execution_id(); - static const int kWorkflowExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); - void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::google::protobuf::internal::ArenaStringPtr unique_parent_id_; - ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionForTaskListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionForTaskListRequest) */ { - public: - NodeExecutionForTaskListRequest(); - virtual ~NodeExecutionForTaskListRequest(); - - NodeExecutionForTaskListRequest(const NodeExecutionForTaskListRequest& from); - - inline NodeExecutionForTaskListRequest& operator=(const NodeExecutionForTaskListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionForTaskListRequest(NodeExecutionForTaskListRequest&& from) noexcept - : NodeExecutionForTaskListRequest() { - *this = ::std::move(from); - } - - inline NodeExecutionForTaskListRequest& operator=(NodeExecutionForTaskListRequest&& 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 NodeExecutionForTaskListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionForTaskListRequest* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionForTaskListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(NodeExecutionForTaskListRequest* other); - friend void swap(NodeExecutionForTaskListRequest& a, NodeExecutionForTaskListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionForTaskListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionForTaskListRequest* 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 NodeExecutionForTaskListRequest& from); - void MergeFrom(const NodeExecutionForTaskListRequest& 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(NodeExecutionForTaskListRequest* 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 ------------------------------------------------------- - - // string token = 3; - void clear_token(); - static const int kTokenFieldNumber = 3; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 4; - void clear_filters(); - static const int kFiltersFieldNumber = 4; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - bool has_task_execution_id() const; - void clear_task_execution_id(); - static const int kTaskExecutionIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& task_execution_id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_task_execution_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_task_execution_id(); - void set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::core::TaskExecutionIdentifier* task_execution_id_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecution) */ { - public: - NodeExecution(); - virtual ~NodeExecution(); - - NodeExecution(const NodeExecution& from); - - inline NodeExecution& operator=(const NodeExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecution(NodeExecution&& from) noexcept - : NodeExecution() { - *this = ::std::move(from); - } - - inline NodeExecution& operator=(NodeExecution&& 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 NodeExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecution* internal_default_instance() { - return reinterpret_cast( - &_NodeExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(NodeExecution* other); - friend void swap(NodeExecution& a, NodeExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecution* 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 NodeExecution& from); - void MergeFrom(const NodeExecution& 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(NodeExecution* 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 ------------------------------------------------------- - - // string input_uri = 2; - void clear_input_uri(); - static const int kInputUriFieldNumber = 2; - const ::std::string& input_uri() const; - void set_input_uri(const ::std::string& value); - #if LANG_CXX11 - void set_input_uri(::std::string&& value); - #endif - void set_input_uri(const char* value); - void set_input_uri(const char* value, size_t size); - ::std::string* mutable_input_uri(); - ::std::string* release_input_uri(); - void set_allocated_input_uri(::std::string* input_uri); - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::NodeExecutionIdentifier& id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); - - // .flyteidl.admin.NodeExecutionClosure closure = 3; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 3; - const ::flyteidl::admin::NodeExecutionClosure& closure() const; - ::flyteidl::admin::NodeExecutionClosure* release_closure(); - ::flyteidl::admin::NodeExecutionClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure); - - // .flyteidl.admin.NodeExecutionMetaData metadata = 4; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::flyteidl::admin::NodeExecutionMetaData& metadata() const; - ::flyteidl::admin::NodeExecutionMetaData* release_metadata(); - ::flyteidl::admin::NodeExecutionMetaData* mutable_metadata(); - void set_allocated_metadata(::flyteidl::admin::NodeExecutionMetaData* metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr input_uri_; - ::flyteidl::core::NodeExecutionIdentifier* id_; - ::flyteidl::admin::NodeExecutionClosure* closure_; - ::flyteidl::admin::NodeExecutionMetaData* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionMetaData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionMetaData) */ { - public: - NodeExecutionMetaData(); - virtual ~NodeExecutionMetaData(); - - NodeExecutionMetaData(const NodeExecutionMetaData& from); - - inline NodeExecutionMetaData& operator=(const NodeExecutionMetaData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionMetaData(NodeExecutionMetaData&& from) noexcept - : NodeExecutionMetaData() { - *this = ::std::move(from); - } - - inline NodeExecutionMetaData& operator=(NodeExecutionMetaData&& 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 NodeExecutionMetaData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionMetaData* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionMetaData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(NodeExecutionMetaData* other); - friend void swap(NodeExecutionMetaData& a, NodeExecutionMetaData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionMetaData* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionMetaData* 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 NodeExecutionMetaData& from); - void MergeFrom(const NodeExecutionMetaData& 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(NodeExecutionMetaData* 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 ------------------------------------------------------- - - // string retry_group = 1; - void clear_retry_group(); - static const int kRetryGroupFieldNumber = 1; - const ::std::string& retry_group() const; - void set_retry_group(const ::std::string& value); - #if LANG_CXX11 - void set_retry_group(::std::string&& value); - #endif - void set_retry_group(const char* value); - void set_retry_group(const char* value, size_t size); - ::std::string* mutable_retry_group(); - ::std::string* release_retry_group(); - void set_allocated_retry_group(::std::string* retry_group); - - // string spec_node_id = 3; - void clear_spec_node_id(); - static const int kSpecNodeIdFieldNumber = 3; - const ::std::string& spec_node_id() const; - void set_spec_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_spec_node_id(::std::string&& value); - #endif - void set_spec_node_id(const char* value); - void set_spec_node_id(const char* value, size_t size); - ::std::string* mutable_spec_node_id(); - ::std::string* release_spec_node_id(); - void set_allocated_spec_node_id(::std::string* spec_node_id); - - // bool is_parent_node = 2; - void clear_is_parent_node(); - static const int kIsParentNodeFieldNumber = 2; - bool is_parent_node() const; - void set_is_parent_node(bool value); - - // bool is_dynamic = 4; - void clear_is_dynamic(); - static const int kIsDynamicFieldNumber = 4; - bool is_dynamic() const; - void set_is_dynamic(bool value); - - // bool is_array = 5; - void clear_is_array(); - static const int kIsArrayFieldNumber = 5; - bool is_array() const; - void set_is_array(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr retry_group_; - ::google::protobuf::internal::ArenaStringPtr spec_node_id_; - bool is_parent_node_; - bool is_dynamic_; - bool is_array_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionList) */ { - public: - NodeExecutionList(); - virtual ~NodeExecutionList(); - - NodeExecutionList(const NodeExecutionList& from); - - inline NodeExecutionList& operator=(const NodeExecutionList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionList(NodeExecutionList&& from) noexcept - : NodeExecutionList() { - *this = ::std::move(from); - } - - inline NodeExecutionList& operator=(NodeExecutionList&& 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 NodeExecutionList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionList* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(NodeExecutionList* other); - friend void swap(NodeExecutionList& a, NodeExecutionList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionList* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionList* 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 NodeExecutionList& from); - void MergeFrom(const NodeExecutionList& 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(NodeExecutionList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.NodeExecution node_executions = 1; - int node_executions_size() const; - void clear_node_executions(); - static const int kNodeExecutionsFieldNumber = 1; - ::flyteidl::admin::NodeExecution* mutable_node_executions(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* - mutable_node_executions(); - const ::flyteidl::admin::NodeExecution& node_executions(int index) const; - ::flyteidl::admin::NodeExecution* add_node_executions(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& - node_executions() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution > node_executions_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionClosure) */ { - public: - NodeExecutionClosure(); - virtual ~NodeExecutionClosure(); - - NodeExecutionClosure(const NodeExecutionClosure& from); - - inline NodeExecutionClosure& operator=(const NodeExecutionClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionClosure(NodeExecutionClosure&& from) noexcept - : NodeExecutionClosure() { - *this = ::std::move(from); - } - - inline NodeExecutionClosure& operator=(NodeExecutionClosure&& 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 NodeExecutionClosure& default_instance(); - - enum OutputResultCase { - kOutputUri = 1, - kError = 2, - kOutputData = 10, - OUTPUT_RESULT_NOT_SET = 0, - }; - - enum TargetMetadataCase { - kWorkflowNodeMetadata = 8, - kTaskNodeMetadata = 9, - TARGET_METADATA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionClosure* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(NodeExecutionClosure* other); - friend void swap(NodeExecutionClosure& a, NodeExecutionClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionClosure* 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 NodeExecutionClosure& from); - void MergeFrom(const NodeExecutionClosure& 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(NodeExecutionClosure* 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 ------------------------------------------------------- - - // string deck_uri = 11; - void clear_deck_uri(); - static const int kDeckUriFieldNumber = 11; - const ::std::string& deck_uri() const; - void set_deck_uri(const ::std::string& value); - #if LANG_CXX11 - void set_deck_uri(::std::string&& value); - #endif - void set_deck_uri(const char* value); - void set_deck_uri(const char* value, size_t size); - ::std::string* mutable_deck_uri(); - ::std::string* release_deck_uri(); - void set_allocated_deck_uri(::std::string* deck_uri); - - // string dynamic_job_spec_uri = 12; - void clear_dynamic_job_spec_uri(); - static const int kDynamicJobSpecUriFieldNumber = 12; - const ::std::string& dynamic_job_spec_uri() const; - void set_dynamic_job_spec_uri(const ::std::string& value); - #if LANG_CXX11 - void set_dynamic_job_spec_uri(::std::string&& value); - #endif - void set_dynamic_job_spec_uri(const char* value); - void set_dynamic_job_spec_uri(const char* value, size_t size); - ::std::string* mutable_dynamic_job_spec_uri(); - ::std::string* release_dynamic_job_spec_uri(); - void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); - - // .google.protobuf.Timestamp started_at = 4; - bool has_started_at() const; - void clear_started_at(); - static const int kStartedAtFieldNumber = 4; - const ::google::protobuf::Timestamp& started_at() const; - ::google::protobuf::Timestamp* release_started_at(); - ::google::protobuf::Timestamp* mutable_started_at(); - void set_allocated_started_at(::google::protobuf::Timestamp* started_at); - - // .google.protobuf.Duration duration = 5; - bool has_duration() const; - void clear_duration(); - static const int kDurationFieldNumber = 5; - const ::google::protobuf::Duration& duration() const; - ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* duration); - - // .google.protobuf.Timestamp created_at = 6; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 6; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // .google.protobuf.Timestamp updated_at = 7; - bool has_updated_at() const; - void clear_updated_at(); - static const int kUpdatedAtFieldNumber = 7; - const ::google::protobuf::Timestamp& updated_at() const; - ::google::protobuf::Timestamp* release_updated_at(); - ::google::protobuf::Timestamp* mutable_updated_at(); - void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); - - // .flyteidl.core.NodeExecution.Phase phase = 3; - void clear_phase(); - static const int kPhaseFieldNumber = 3; - ::flyteidl::core::NodeExecution_Phase phase() const; - void set_phase(::flyteidl::core::NodeExecution_Phase value); - - // string output_uri = 1 [deprecated = true]; - private: - bool has_output_uri() const; - public: - PROTOBUF_DEPRECATED void clear_output_uri(); - PROTOBUF_DEPRECATED static const int kOutputUriFieldNumber = 1; - PROTOBUF_DEPRECATED const ::std::string& output_uri() const; - PROTOBUF_DEPRECATED void set_output_uri(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_output_uri(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_output_uri(const char* value); - PROTOBUF_DEPRECATED void set_output_uri(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_output_uri(); - PROTOBUF_DEPRECATED ::std::string* release_output_uri(); - PROTOBUF_DEPRECATED void set_allocated_output_uri(::std::string* output_uri); - - // .flyteidl.core.ExecutionError error = 2; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 2; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_output_data() const; - PROTOBUF_DEPRECATED void clear_output_data(); - PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 10; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); - PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - // .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - bool has_workflow_node_metadata() const; - void clear_workflow_node_metadata(); - static const int kWorkflowNodeMetadataFieldNumber = 8; - const ::flyteidl::admin::WorkflowNodeMetadata& workflow_node_metadata() const; - ::flyteidl::admin::WorkflowNodeMetadata* release_workflow_node_metadata(); - ::flyteidl::admin::WorkflowNodeMetadata* mutable_workflow_node_metadata(); - void set_allocated_workflow_node_metadata(::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata); - - // .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - bool has_task_node_metadata() const; - void clear_task_node_metadata(); - static const int kTaskNodeMetadataFieldNumber = 9; - const ::flyteidl::admin::TaskNodeMetadata& task_node_metadata() const; - ::flyteidl::admin::TaskNodeMetadata* release_task_node_metadata(); - ::flyteidl::admin::TaskNodeMetadata* mutable_task_node_metadata(); - void set_allocated_task_node_metadata(::flyteidl::admin::TaskNodeMetadata* task_node_metadata); - - void clear_output_result(); - OutputResultCase output_result_case() const; - void clear_target_metadata(); - TargetMetadataCase target_metadata_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) - private: - class HasBitSetters; - void set_has_output_uri(); - void set_has_error(); - void set_has_output_data(); - void set_has_workflow_node_metadata(); - void set_has_task_node_metadata(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - inline bool has_target_metadata() const; - inline void clear_has_target_metadata(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr deck_uri_; - ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; - ::google::protobuf::Timestamp* started_at_; - ::google::protobuf::Duration* duration_; - ::google::protobuf::Timestamp* created_at_; - ::google::protobuf::Timestamp* updated_at_; - int phase_; - union OutputResultUnion { - OutputResultUnion() {} - ::google::protobuf::internal::ArenaStringPtr output_uri_; - ::flyteidl::core::ExecutionError* error_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - union TargetMetadataUnion { - TargetMetadataUnion() {} - ::flyteidl::admin::WorkflowNodeMetadata* workflow_node_metadata_; - ::flyteidl::admin::TaskNodeMetadata* task_node_metadata_; - } target_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[2]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowNodeMetadata) */ { - public: - WorkflowNodeMetadata(); - virtual ~WorkflowNodeMetadata(); - - WorkflowNodeMetadata(const WorkflowNodeMetadata& from); - - inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept - : WorkflowNodeMetadata() { - *this = ::std::move(from); - } - - inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& 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 WorkflowNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_WorkflowNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(WorkflowNodeMetadata* other); - friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowNodeMetadata* 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 WorkflowNodeMetadata& from); - void MergeFrom(const WorkflowNodeMetadata& 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(WorkflowNodeMetadata* 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.WorkflowExecutionIdentifier executionId = 1; - bool has_executionid() const; - void clear_executionid(); - static const int kExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& executionid() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_executionid(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_executionid(); - void set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* executionid_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskNodeMetadata) */ { - public: - TaskNodeMetadata(); - virtual ~TaskNodeMetadata(); - - TaskNodeMetadata(const TaskNodeMetadata& from); - - inline TaskNodeMetadata& operator=(const TaskNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskNodeMetadata(TaskNodeMetadata&& from) noexcept - : TaskNodeMetadata() { - *this = ::std::move(from); - } - - inline TaskNodeMetadata& operator=(TaskNodeMetadata&& 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 TaskNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_TaskNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TaskNodeMetadata* other); - friend void swap(TaskNodeMetadata& a, TaskNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskNodeMetadata* 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 TaskNodeMetadata& from); - void MergeFrom(const TaskNodeMetadata& 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(TaskNodeMetadata* 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 ------------------------------------------------------- - - // string checkpoint_uri = 4; - void clear_checkpoint_uri(); - static const int kCheckpointUriFieldNumber = 4; - const ::std::string& checkpoint_uri() const; - void set_checkpoint_uri(const ::std::string& value); - #if LANG_CXX11 - void set_checkpoint_uri(::std::string&& value); - #endif - void set_checkpoint_uri(const char* value); - void set_checkpoint_uri(const char* value, size_t size); - ::std::string* mutable_checkpoint_uri(); - ::std::string* release_checkpoint_uri(); - void set_allocated_checkpoint_uri(::std::string* checkpoint_uri); - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - bool has_catalog_key() const; - void clear_catalog_key(); - static const int kCatalogKeyFieldNumber = 2; - const ::flyteidl::core::CatalogMetadata& catalog_key() const; - ::flyteidl::core::CatalogMetadata* release_catalog_key(); - ::flyteidl::core::CatalogMetadata* mutable_catalog_key(); - void set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key); - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - void clear_cache_status(); - static const int kCacheStatusFieldNumber = 1; - ::flyteidl::core::CatalogCacheStatus cache_status() const; - void set_cache_status(::flyteidl::core::CatalogCacheStatus value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr checkpoint_uri_; - ::flyteidl::core::CatalogMetadata* catalog_key_; - int cache_status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class DynamicWorkflowNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.DynamicWorkflowNodeMetadata) */ { - public: - DynamicWorkflowNodeMetadata(); - virtual ~DynamicWorkflowNodeMetadata(); - - DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from); - - inline DynamicWorkflowNodeMetadata& operator=(const DynamicWorkflowNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DynamicWorkflowNodeMetadata(DynamicWorkflowNodeMetadata&& from) noexcept - : DynamicWorkflowNodeMetadata() { - *this = ::std::move(from); - } - - inline DynamicWorkflowNodeMetadata& operator=(DynamicWorkflowNodeMetadata&& 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 DynamicWorkflowNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DynamicWorkflowNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_DynamicWorkflowNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(DynamicWorkflowNodeMetadata* other); - friend void swap(DynamicWorkflowNodeMetadata& a, DynamicWorkflowNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DynamicWorkflowNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - DynamicWorkflowNodeMetadata* 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 DynamicWorkflowNodeMetadata& from); - void MergeFrom(const DynamicWorkflowNodeMetadata& 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(DynamicWorkflowNodeMetadata* 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 ------------------------------------------------------- - - // string dynamic_job_spec_uri = 3; - void clear_dynamic_job_spec_uri(); - static const int kDynamicJobSpecUriFieldNumber = 3; - const ::std::string& dynamic_job_spec_uri() const; - void set_dynamic_job_spec_uri(const ::std::string& value); - #if LANG_CXX11 - void set_dynamic_job_spec_uri(::std::string&& value); - #endif - void set_dynamic_job_spec_uri(const char* value); - void set_dynamic_job_spec_uri(const char* value, size_t size); - ::std::string* mutable_dynamic_job_spec_uri(); - ::std::string* release_dynamic_job_spec_uri(); - void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); - - // .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); - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - bool has_compiled_workflow() const; - void clear_compiled_workflow(); - static const int kCompiledWorkflowFieldNumber = 2; - const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; - ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); - ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); - void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DynamicWorkflowNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionGetDataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataRequest) */ { - public: - NodeExecutionGetDataRequest(); - virtual ~NodeExecutionGetDataRequest(); - - NodeExecutionGetDataRequest(const NodeExecutionGetDataRequest& from); - - inline NodeExecutionGetDataRequest& operator=(const NodeExecutionGetDataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionGetDataRequest(NodeExecutionGetDataRequest&& from) noexcept - : NodeExecutionGetDataRequest() { - *this = ::std::move(from); - } - - inline NodeExecutionGetDataRequest& operator=(NodeExecutionGetDataRequest&& 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 NodeExecutionGetDataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionGetDataRequest* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionGetDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(NodeExecutionGetDataRequest* other); - friend void swap(NodeExecutionGetDataRequest& a, NodeExecutionGetDataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionGetDataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionGetDataRequest* 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 NodeExecutionGetDataRequest& from); - void MergeFrom(const NodeExecutionGetDataRequest& 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(NodeExecutionGetDataRequest* 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.NodeExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::NodeExecutionIdentifier& id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::NodeExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionGetDataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.NodeExecutionGetDataResponse) */ { - public: - NodeExecutionGetDataResponse(); - virtual ~NodeExecutionGetDataResponse(); - - NodeExecutionGetDataResponse(const NodeExecutionGetDataResponse& from); - - inline NodeExecutionGetDataResponse& operator=(const NodeExecutionGetDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionGetDataResponse(NodeExecutionGetDataResponse&& from) noexcept - : NodeExecutionGetDataResponse() { - *this = ::std::move(from); - } - - inline NodeExecutionGetDataResponse& operator=(NodeExecutionGetDataResponse&& 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 NodeExecutionGetDataResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionGetDataResponse* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionGetDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(NodeExecutionGetDataResponse* other); - friend void swap(NodeExecutionGetDataResponse& a, NodeExecutionGetDataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionGetDataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionGetDataResponse* 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 NodeExecutionGetDataResponse& from); - void MergeFrom(const NodeExecutionGetDataResponse& 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(NodeExecutionGetDataResponse* 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.UrlBlob inputs = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_inputs() const; - PROTOBUF_DEPRECATED void clear_inputs(); - PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); - PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_outputs() const; - PROTOBUF_DEPRECATED void clear_outputs(); - PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 2; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); - PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); - - // .flyteidl.core.LiteralMap full_inputs = 3; - bool has_full_inputs() const; - void clear_full_inputs(); - static const int kFullInputsFieldNumber = 3; - const ::flyteidl::core::LiteralMap& full_inputs() const; - ::flyteidl::core::LiteralMap* release_full_inputs(); - ::flyteidl::core::LiteralMap* mutable_full_inputs(); - void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); - - // .flyteidl.core.LiteralMap full_outputs = 4; - bool has_full_outputs() const; - void clear_full_outputs(); - static const int kFullOutputsFieldNumber = 4; - const ::flyteidl::core::LiteralMap& full_outputs() const; - ::flyteidl::core::LiteralMap* release_full_outputs(); - ::flyteidl::core::LiteralMap* mutable_full_outputs(); - void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); - - // .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - bool has_dynamic_workflow() const; - void clear_dynamic_workflow(); - static const int kDynamicWorkflowFieldNumber = 16; - const ::flyteidl::admin::DynamicWorkflowNodeMetadata& dynamic_workflow() const; - ::flyteidl::admin::DynamicWorkflowNodeMetadata* release_dynamic_workflow(); - ::flyteidl::admin::DynamicWorkflowNodeMetadata* mutable_dynamic_workflow(); - void set_allocated_dynamic_workflow(::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow); - - // .flyteidl.admin.FlyteURLs flyte_urls = 17; - bool has_flyte_urls() const; - void clear_flyte_urls(); - static const int kFlyteUrlsFieldNumber = 17; - const ::flyteidl::admin::FlyteURLs& flyte_urls() const; - ::flyteidl::admin::FlyteURLs* release_flyte_urls(); - ::flyteidl::admin::FlyteURLs* mutable_flyte_urls(); - void set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::UrlBlob* inputs_; - ::flyteidl::admin::UrlBlob* outputs_; - ::flyteidl::core::LiteralMap* full_inputs_; - ::flyteidl::core::LiteralMap* full_outputs_; - ::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow_; - ::flyteidl::admin::FlyteURLs* flyte_urls_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnode_5fexecution_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// NodeExecutionGetRequest - -// .flyteidl.core.NodeExecutionIdentifier id = 1; -inline bool NodeExecutionGetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetRequest::id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetRequest.id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetRequest.id) - return id_; -} -inline void NodeExecutionGetRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* 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.NodeExecutionGetRequest.id) -} - -// ------------------------------------------------------------------- - -// NodeExecutionListRequest - -// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; -inline bool NodeExecutionListRequest::has_workflow_execution_id() const { - return this != internal_default_instance() && workflow_execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionListRequest::workflow_execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::release_workflow_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; - workflow_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionListRequest::mutable_workflow_execution_id() { - - if (workflow_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - workflow_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) - return workflow_execution_id_; -} -inline void NodeExecutionListRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); - } - if (workflow_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution_id, submessage_arena); - } - - } else { - - } - workflow_execution_id_ = workflow_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.workflow_execution_id) -} - -// uint32 limit = 2; -inline void NodeExecutionListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 NodeExecutionListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.limit) - return limit_; -} -inline void NodeExecutionListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.limit) -} - -// string token = 3; -inline void NodeExecutionListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.token) - return token_.GetNoArena(); -} -inline void NodeExecutionListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.token) -} -#if LANG_CXX11 -inline void NodeExecutionListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.token) -} -#endif -inline void NodeExecutionListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.token) -} -inline void NodeExecutionListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.token) -} -inline ::std::string* NodeExecutionListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.token) -} - -// string filters = 4; -inline void NodeExecutionListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.filters) - return filters_.GetNoArena(); -} -inline void NodeExecutionListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.filters) -} -#if LANG_CXX11 -inline void NodeExecutionListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.filters) -} -#endif -inline void NodeExecutionListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.filters) -} -inline void NodeExecutionListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.filters) -} -inline ::std::string* NodeExecutionListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool NodeExecutionListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& NodeExecutionListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* NodeExecutionListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* NodeExecutionListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.sort_by) - return sort_by_; -} -inline void NodeExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.sort_by) -} - -// string unique_parent_id = 6; -inline void NodeExecutionListRequest::clear_unique_parent_id() { - unique_parent_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionListRequest::unique_parent_id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) - return unique_parent_id_.GetNoArena(); -} -inline void NodeExecutionListRequest::set_unique_parent_id(const ::std::string& value) { - - unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) -} -#if LANG_CXX11 -inline void NodeExecutionListRequest::set_unique_parent_id(::std::string&& value) { - - unique_parent_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) -} -#endif -inline void NodeExecutionListRequest::set_unique_parent_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) -} -inline void NodeExecutionListRequest::set_unique_parent_id(const char* value, size_t size) { - - unique_parent_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) -} -inline ::std::string* NodeExecutionListRequest::mutable_unique_parent_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) - return unique_parent_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionListRequest::release_unique_parent_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) - - return unique_parent_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionListRequest::set_allocated_unique_parent_id(::std::string* unique_parent_id) { - if (unique_parent_id != nullptr) { - - } else { - - } - unique_parent_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), unique_parent_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionListRequest.unique_parent_id) -} - -// ------------------------------------------------------------------- - -// NodeExecutionForTaskListRequest - -// .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; -inline bool NodeExecutionForTaskListRequest::has_task_execution_id() const { - return this != internal_default_instance() && task_execution_id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& NodeExecutionForTaskListRequest::task_execution_id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = task_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::release_task_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = task_execution_id_; - task_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* NodeExecutionForTaskListRequest::mutable_task_execution_id() { - - if (task_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - task_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) - return task_execution_id_; -} -inline void NodeExecutionForTaskListRequest::set_allocated_task_execution_id(::flyteidl::core::TaskExecutionIdentifier* task_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_execution_id_); - } - if (task_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_execution_id, submessage_arena); - } - - } else { - - } - task_execution_id_ = task_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.task_execution_id) -} - -// uint32 limit = 2; -inline void NodeExecutionForTaskListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 NodeExecutionForTaskListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.limit) - return limit_; -} -inline void NodeExecutionForTaskListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.limit) -} - -// string token = 3; -inline void NodeExecutionForTaskListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionForTaskListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.token) - return token_.GetNoArena(); -} -inline void NodeExecutionForTaskListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.token) -} -#if LANG_CXX11 -inline void NodeExecutionForTaskListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.token) -} -#endif -inline void NodeExecutionForTaskListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.token) -} -inline void NodeExecutionForTaskListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.token) -} -inline ::std::string* NodeExecutionForTaskListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionForTaskListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionForTaskListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.token) -} - -// string filters = 4; -inline void NodeExecutionForTaskListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionForTaskListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.filters) - return filters_.GetNoArena(); -} -inline void NodeExecutionForTaskListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionForTaskListRequest.filters) -} -#if LANG_CXX11 -inline void NodeExecutionForTaskListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionForTaskListRequest.filters) -} -#endif -inline void NodeExecutionForTaskListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionForTaskListRequest.filters) -} -inline void NodeExecutionForTaskListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionForTaskListRequest.filters) -} -inline ::std::string* NodeExecutionForTaskListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionForTaskListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionForTaskListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool NodeExecutionForTaskListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& NodeExecutionForTaskListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* NodeExecutionForTaskListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) - return sort_by_; -} -inline void NodeExecutionForTaskListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionForTaskListRequest.sort_by) -} - -// ------------------------------------------------------------------- - -// NodeExecution - -// .flyteidl.core.NodeExecutionIdentifier id = 1; -inline bool NodeExecution::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecution::id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecution::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.id) - return id_; -} -inline void NodeExecution::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* 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.NodeExecution.id) -} - -// string input_uri = 2; -inline void NodeExecution::clear_input_uri() { - input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecution::input_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.input_uri) - return input_uri_.GetNoArena(); -} -inline void NodeExecution::set_input_uri(const ::std::string& value) { - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecution.input_uri) -} -#if LANG_CXX11 -inline void NodeExecution::set_input_uri(::std::string&& value) { - - input_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecution.input_uri) -} -#endif -inline void NodeExecution::set_input_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecution.input_uri) -} -inline void NodeExecution::set_input_uri(const char* value, size_t size) { - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecution.input_uri) -} -inline ::std::string* NodeExecution::mutable_input_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.input_uri) - return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecution::release_input_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.input_uri) - - return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecution::set_allocated_input_uri(::std::string* input_uri) { - if (input_uri != nullptr) { - - } else { - - } - input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.input_uri) -} - -// .flyteidl.admin.NodeExecutionClosure closure = 3; -inline bool NodeExecution::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void NodeExecution::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::NodeExecutionClosure& NodeExecution::closure() const { - const ::flyteidl::admin::NodeExecutionClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NodeExecutionClosure_default_instance_); -} -inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.closure) - - ::flyteidl::admin::NodeExecutionClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NodeExecutionClosure* NodeExecution::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NodeExecutionClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.closure) - return closure_; -} -inline void NodeExecution::set_allocated_closure(::flyteidl::admin::NodeExecutionClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.closure) -} - -// .flyteidl.admin.NodeExecutionMetaData metadata = 4; -inline bool NodeExecution::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void NodeExecution::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::admin::NodeExecutionMetaData& NodeExecution::metadata() const { - const ::flyteidl::admin::NodeExecutionMetaData* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecution.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_NodeExecutionMetaData_default_instance_); -} -inline ::flyteidl::admin::NodeExecutionMetaData* NodeExecution::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecution.metadata) - - ::flyteidl::admin::NodeExecutionMetaData* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::admin::NodeExecutionMetaData* NodeExecution::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::NodeExecutionMetaData>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecution.metadata) - return metadata_; -} -inline void NodeExecution::set_allocated_metadata(::flyteidl::admin::NodeExecutionMetaData* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecution.metadata) -} - -// ------------------------------------------------------------------- - -// NodeExecutionMetaData - -// string retry_group = 1; -inline void NodeExecutionMetaData::clear_retry_group() { - retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionMetaData::retry_group() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.retry_group) - return retry_group_.GetNoArena(); -} -inline void NodeExecutionMetaData::set_retry_group(const ::std::string& value) { - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.retry_group) -} -#if LANG_CXX11 -inline void NodeExecutionMetaData::set_retry_group(::std::string&& value) { - - retry_group_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionMetaData.retry_group) -} -#endif -inline void NodeExecutionMetaData::set_retry_group(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionMetaData.retry_group) -} -inline void NodeExecutionMetaData::set_retry_group(const char* value, size_t size) { - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionMetaData.retry_group) -} -inline ::std::string* NodeExecutionMetaData::mutable_retry_group() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionMetaData.retry_group) - return retry_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionMetaData::release_retry_group() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionMetaData.retry_group) - - return retry_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionMetaData::set_allocated_retry_group(::std::string* retry_group) { - if (retry_group != nullptr) { - - } else { - - } - retry_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_group); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionMetaData.retry_group) -} - -// bool is_parent_node = 2; -inline void NodeExecutionMetaData::clear_is_parent_node() { - is_parent_node_ = false; -} -inline bool NodeExecutionMetaData::is_parent_node() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.is_parent_node) - return is_parent_node_; -} -inline void NodeExecutionMetaData::set_is_parent_node(bool value) { - - is_parent_node_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.is_parent_node) -} - -// string spec_node_id = 3; -inline void NodeExecutionMetaData::clear_spec_node_id() { - spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionMetaData::spec_node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.spec_node_id) - return spec_node_id_.GetNoArena(); -} -inline void NodeExecutionMetaData::set_spec_node_id(const ::std::string& value) { - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.spec_node_id) -} -#if LANG_CXX11 -inline void NodeExecutionMetaData::set_spec_node_id(::std::string&& value) { - - spec_node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionMetaData.spec_node_id) -} -#endif -inline void NodeExecutionMetaData::set_spec_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionMetaData.spec_node_id) -} -inline void NodeExecutionMetaData::set_spec_node_id(const char* value, size_t size) { - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionMetaData.spec_node_id) -} -inline ::std::string* NodeExecutionMetaData::mutable_spec_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionMetaData.spec_node_id) - return spec_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionMetaData::release_spec_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionMetaData.spec_node_id) - - return spec_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionMetaData::set_allocated_spec_node_id(::std::string* spec_node_id) { - if (spec_node_id != nullptr) { - - } else { - - } - spec_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec_node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionMetaData.spec_node_id) -} - -// bool is_dynamic = 4; -inline void NodeExecutionMetaData::clear_is_dynamic() { - is_dynamic_ = false; -} -inline bool NodeExecutionMetaData::is_dynamic() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.is_dynamic) - return is_dynamic_; -} -inline void NodeExecutionMetaData::set_is_dynamic(bool value) { - - is_dynamic_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.is_dynamic) -} - -// bool is_array = 5; -inline void NodeExecutionMetaData::clear_is_array() { - is_array_ = false; -} -inline bool NodeExecutionMetaData::is_array() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionMetaData.is_array) - return is_array_; -} -inline void NodeExecutionMetaData::set_is_array(bool value) { - - is_array_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionMetaData.is_array) -} - -// ------------------------------------------------------------------- - -// NodeExecutionList - -// repeated .flyteidl.admin.NodeExecution node_executions = 1; -inline int NodeExecutionList::node_executions_size() const { - return node_executions_.size(); -} -inline void NodeExecutionList::clear_node_executions() { - node_executions_.Clear(); -} -inline ::flyteidl::admin::NodeExecution* NodeExecutionList::mutable_node_executions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.node_executions) - return node_executions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >* -NodeExecutionList::mutable_node_executions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.NodeExecutionList.node_executions) - return &node_executions_; -} -inline const ::flyteidl::admin::NodeExecution& NodeExecutionList::node_executions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.node_executions) - return node_executions_.Get(index); -} -inline ::flyteidl::admin::NodeExecution* NodeExecutionList::add_node_executions() { - // @@protoc_insertion_point(field_add:flyteidl.admin.NodeExecutionList.node_executions) - return node_executions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::NodeExecution >& -NodeExecutionList::node_executions() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.NodeExecutionList.node_executions) - return node_executions_; -} - -// string token = 2; -inline void NodeExecutionList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionList.token) - return token_.GetNoArena(); -} -inline void NodeExecutionList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionList.token) -} -#if LANG_CXX11 -inline void NodeExecutionList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionList.token) -} -#endif -inline void NodeExecutionList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionList.token) -} -inline void NodeExecutionList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionList.token) -} -inline ::std::string* NodeExecutionList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionList.token) -} - -// ------------------------------------------------------------------- - -// NodeExecutionClosure - -// string output_uri = 1 [deprecated = true]; -inline bool NodeExecutionClosure::has_output_uri() const { - return output_result_case() == kOutputUri; -} -inline void NodeExecutionClosure::set_has_output_uri() { - _oneof_case_[0] = kOutputUri; -} -inline void NodeExecutionClosure::clear_output_uri() { - if (has_output_uri()) { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& NodeExecutionClosure::output_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.output_uri) - if (has_output_uri()) { - return output_result_.output_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void NodeExecutionClosure::set_output_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) -} -#if LANG_CXX11 -inline void NodeExecutionClosure::set_output_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.output_uri) -} -#endif -inline void NodeExecutionClosure::set_output_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.output_uri) -} -inline void NodeExecutionClosure::set_output_uri(const char* value, size_t size) { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.output_uri) -} -inline ::std::string* NodeExecutionClosure::mutable_output_uri() { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.output_uri) - return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionClosure::release_output_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.output_uri) - if (has_output_uri()) { - clear_has_output_result(); - return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void NodeExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { - if (has_output_result()) { - clear_output_result(); - } - if (output_uri != nullptr) { - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(output_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.output_uri) -} - -// .flyteidl.core.ExecutionError error = 2; -inline bool NodeExecutionClosure::has_error() const { - return output_result_case() == kError; -} -inline void NodeExecutionClosure::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& NodeExecutionClosure::error() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* NodeExecutionClosure::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.error) - return output_result_.error_; -} - -// .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; -inline bool NodeExecutionClosure::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void NodeExecutionClosure::set_has_output_data() { - _oneof_case_[0] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* NodeExecutionClosure::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& NodeExecutionClosure::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* NodeExecutionClosure::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.output_data) - return output_result_.output_data_; -} - -// .flyteidl.core.NodeExecution.Phase phase = 3; -inline void NodeExecutionClosure::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::NodeExecution_Phase NodeExecutionClosure::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.phase) - return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); -} -inline void NodeExecutionClosure::set_phase(::flyteidl::core::NodeExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.phase) -} - -// .google.protobuf.Timestamp started_at = 4; -inline bool NodeExecutionClosure::has_started_at() const { - return this != internal_default_instance() && started_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& NodeExecutionClosure::started_at() const { - const ::google::protobuf::Timestamp* p = started_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.started_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_started_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.started_at) - - ::google::protobuf::Timestamp* temp = started_at_; - started_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_started_at() { - - if (started_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - started_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.started_at) - return started_at_; -} -inline void NodeExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); - } - if (started_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); - if (message_arena != submessage_arena) { - started_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, started_at, submessage_arena); - } - - } else { - - } - started_at_ = started_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.started_at) -} - -// .google.protobuf.Duration duration = 5; -inline bool NodeExecutionClosure::has_duration() const { - return this != internal_default_instance() && duration_ != nullptr; -} -inline const ::google::protobuf::Duration& NodeExecutionClosure::duration() const { - const ::google::protobuf::Duration* p = duration_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.duration) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* NodeExecutionClosure::release_duration() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.duration) - - ::google::protobuf::Duration* temp = duration_; - duration_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* NodeExecutionClosure::mutable_duration() { - - if (duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - duration_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.duration) - return duration_; -} -inline void NodeExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); - } - if (duration) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); - if (message_arena != submessage_arena) { - duration = ::google::protobuf::internal::GetOwnedMessage( - message_arena, duration, submessage_arena); - } - - } else { - - } - duration_ = duration; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.duration) -} - -// .google.protobuf.Timestamp created_at = 6; -inline bool NodeExecutionClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& NodeExecutionClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.created_at) - return created_at_; -} -inline void NodeExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.created_at) -} - -// .google.protobuf.Timestamp updated_at = 7; -inline bool NodeExecutionClosure::has_updated_at() const { - return this != internal_default_instance() && updated_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& NodeExecutionClosure::updated_at() const { - const ::google::protobuf::Timestamp* p = updated_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.updated_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::release_updated_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.updated_at) - - ::google::protobuf::Timestamp* temp = updated_at_; - updated_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* NodeExecutionClosure::mutable_updated_at() { - - if (updated_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - updated_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.updated_at) - return updated_at_; -} -inline void NodeExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); - } - if (updated_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); - if (message_arena != submessage_arena) { - updated_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, updated_at, submessage_arena); - } - - } else { - - } - updated_at_ = updated_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.updated_at) -} - -// .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; -inline bool NodeExecutionClosure::has_workflow_node_metadata() const { - return target_metadata_case() == kWorkflowNodeMetadata; -} -inline void NodeExecutionClosure::set_has_workflow_node_metadata() { - _oneof_case_[1] = kWorkflowNodeMetadata; -} -inline void NodeExecutionClosure::clear_workflow_node_metadata() { - if (has_workflow_node_metadata()) { - delete target_metadata_.workflow_node_metadata_; - clear_has_target_metadata(); - } -} -inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::release_workflow_node_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) - if (has_workflow_node_metadata()) { - clear_has_target_metadata(); - ::flyteidl::admin::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; - target_metadata_.workflow_node_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::WorkflowNodeMetadata& NodeExecutionClosure::workflow_node_metadata() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) - return has_workflow_node_metadata() - ? *target_metadata_.workflow_node_metadata_ - : *reinterpret_cast< ::flyteidl::admin::WorkflowNodeMetadata*>(&::flyteidl::admin::_WorkflowNodeMetadata_default_instance_); -} -inline ::flyteidl::admin::WorkflowNodeMetadata* NodeExecutionClosure::mutable_workflow_node_metadata() { - if (!has_workflow_node_metadata()) { - clear_target_metadata(); - set_has_workflow_node_metadata(); - target_metadata_.workflow_node_metadata_ = CreateMaybeMessage< ::flyteidl::admin::WorkflowNodeMetadata >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.workflow_node_metadata) - return target_metadata_.workflow_node_metadata_; -} - -// .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; -inline bool NodeExecutionClosure::has_task_node_metadata() const { - return target_metadata_case() == kTaskNodeMetadata; -} -inline void NodeExecutionClosure::set_has_task_node_metadata() { - _oneof_case_[1] = kTaskNodeMetadata; -} -inline void NodeExecutionClosure::clear_task_node_metadata() { - if (has_task_node_metadata()) { - delete target_metadata_.task_node_metadata_; - clear_has_target_metadata(); - } -} -inline ::flyteidl::admin::TaskNodeMetadata* NodeExecutionClosure::release_task_node_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.task_node_metadata) - if (has_task_node_metadata()) { - clear_has_target_metadata(); - ::flyteidl::admin::TaskNodeMetadata* temp = target_metadata_.task_node_metadata_; - target_metadata_.task_node_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::TaskNodeMetadata& NodeExecutionClosure::task_node_metadata() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.task_node_metadata) - return has_task_node_metadata() - ? *target_metadata_.task_node_metadata_ - : *reinterpret_cast< ::flyteidl::admin::TaskNodeMetadata*>(&::flyteidl::admin::_TaskNodeMetadata_default_instance_); -} -inline ::flyteidl::admin::TaskNodeMetadata* NodeExecutionClosure::mutable_task_node_metadata() { - if (!has_task_node_metadata()) { - clear_target_metadata(); - set_has_task_node_metadata(); - target_metadata_.task_node_metadata_ = CreateMaybeMessage< ::flyteidl::admin::TaskNodeMetadata >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.task_node_metadata) - return target_metadata_.task_node_metadata_; -} - -// string deck_uri = 11; -inline void NodeExecutionClosure::clear_deck_uri() { - deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionClosure::deck_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.deck_uri) - return deck_uri_.GetNoArena(); -} -inline void NodeExecutionClosure::set_deck_uri(const ::std::string& value) { - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.deck_uri) -} -#if LANG_CXX11 -inline void NodeExecutionClosure::set_deck_uri(::std::string&& value) { - - deck_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.deck_uri) -} -#endif -inline void NodeExecutionClosure::set_deck_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.deck_uri) -} -inline void NodeExecutionClosure::set_deck_uri(const char* value, size_t size) { - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.deck_uri) -} -inline ::std::string* NodeExecutionClosure::mutable_deck_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.deck_uri) - return deck_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionClosure::release_deck_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.deck_uri) - - return deck_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionClosure::set_allocated_deck_uri(::std::string* deck_uri) { - if (deck_uri != nullptr) { - - } else { - - } - deck_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.deck_uri) -} - -// string dynamic_job_spec_uri = 12; -inline void NodeExecutionClosure::clear_dynamic_job_spec_uri() { - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionClosure::dynamic_job_spec_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.GetNoArena(); -} -inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const ::std::string& value) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) -} -#if LANG_CXX11 -inline void NodeExecutionClosure::set_dynamic_job_spec_uri(::std::string&& value) { - - dynamic_job_spec_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) -} -#endif -inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) -} -inline void NodeExecutionClosure::set_dynamic_job_spec_uri(const char* value, size_t size) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) -} -inline ::std::string* NodeExecutionClosure::mutable_dynamic_job_spec_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionClosure::release_dynamic_job_spec_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) - - return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionClosure::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { - if (dynamic_job_spec_uri != nullptr) { - - } else { - - } - dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionClosure.dynamic_job_spec_uri) -} - -inline bool NodeExecutionClosure::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void NodeExecutionClosure::clear_has_output_result() { - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} -inline bool NodeExecutionClosure::has_target_metadata() const { - return target_metadata_case() != TARGET_METADATA_NOT_SET; -} -inline void NodeExecutionClosure::clear_has_target_metadata() { - _oneof_case_[1] = TARGET_METADATA_NOT_SET; -} -inline NodeExecutionClosure::OutputResultCase NodeExecutionClosure::output_result_case() const { - return NodeExecutionClosure::OutputResultCase(_oneof_case_[0]); -} -inline NodeExecutionClosure::TargetMetadataCase NodeExecutionClosure::target_metadata_case() const { - return NodeExecutionClosure::TargetMetadataCase(_oneof_case_[1]); -} -// ------------------------------------------------------------------- - -// WorkflowNodeMetadata - -// .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; -inline bool WorkflowNodeMetadata::has_executionid() const { - return this != internal_default_instance() && executionid_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::executionid() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = executionid_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowNodeMetadata.executionId) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_executionid() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowNodeMetadata.executionId) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = executionid_; - executionid_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_executionid() { - - if (executionid_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - executionid_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowNodeMetadata.executionId) - return executionid_; -} -inline void WorkflowNodeMetadata::set_allocated_executionid(::flyteidl::core::WorkflowExecutionIdentifier* executionid) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(executionid_); - } - if (executionid) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - executionid = ::google::protobuf::internal::GetOwnedMessage( - message_arena, executionid, submessage_arena); - } - - } else { - - } - executionid_ = executionid; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowNodeMetadata.executionId) -} - -// ------------------------------------------------------------------- - -// TaskNodeMetadata - -// .flyteidl.core.CatalogCacheStatus cache_status = 1; -inline void TaskNodeMetadata::clear_cache_status() { - cache_status_ = 0; -} -inline ::flyteidl::core::CatalogCacheStatus TaskNodeMetadata::cache_status() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.cache_status) - return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); -} -inline void TaskNodeMetadata::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { - - cache_status_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskNodeMetadata.cache_status) -} - -// .flyteidl.core.CatalogMetadata catalog_key = 2; -inline bool TaskNodeMetadata::has_catalog_key() const { - return this != internal_default_instance() && catalog_key_ != nullptr; -} -inline const ::flyteidl::core::CatalogMetadata& TaskNodeMetadata::catalog_key() const { - const ::flyteidl::core::CatalogMetadata* p = catalog_key_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.catalog_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CatalogMetadata_default_instance_); -} -inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::release_catalog_key() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskNodeMetadata.catalog_key) - - ::flyteidl::core::CatalogMetadata* temp = catalog_key_; - catalog_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::mutable_catalog_key() { - - if (catalog_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(GetArenaNoVirtual()); - catalog_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskNodeMetadata.catalog_key) - return catalog_key_; -} -inline void TaskNodeMetadata::set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(catalog_key_); - } - if (catalog_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - catalog_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, catalog_key, submessage_arena); - } - - } else { - - } - catalog_key_ = catalog_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskNodeMetadata.catalog_key) -} - -// string checkpoint_uri = 4; -inline void TaskNodeMetadata::clear_checkpoint_uri() { - checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskNodeMetadata::checkpoint_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) - return checkpoint_uri_.GetNoArena(); -} -inline void TaskNodeMetadata::set_checkpoint_uri(const ::std::string& value) { - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) -} -#if LANG_CXX11 -inline void TaskNodeMetadata::set_checkpoint_uri(::std::string&& value) { - - checkpoint_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) -} -#endif -inline void TaskNodeMetadata::set_checkpoint_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) -} -inline void TaskNodeMetadata::set_checkpoint_uri(const char* value, size_t size) { - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) -} -inline ::std::string* TaskNodeMetadata::mutable_checkpoint_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) - return checkpoint_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskNodeMetadata::release_checkpoint_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) - - return checkpoint_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskNodeMetadata::set_allocated_checkpoint_uri(::std::string* checkpoint_uri) { - if (checkpoint_uri != nullptr) { - - } else { - - } - checkpoint_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checkpoint_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskNodeMetadata.checkpoint_uri) -} - -// ------------------------------------------------------------------- - -// DynamicWorkflowNodeMetadata - -// .flyteidl.core.Identifier id = 1; -inline bool DynamicWorkflowNodeMetadata::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& DynamicWorkflowNodeMetadata::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.id) - return id_; -} -inline void DynamicWorkflowNodeMetadata::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.DynamicWorkflowNodeMetadata.id) -} - -// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; -inline bool DynamicWorkflowNodeMetadata::has_compiled_workflow() const { - return this != internal_default_instance() && compiled_workflow_ != nullptr; -} -inline const ::flyteidl::core::CompiledWorkflowClosure& DynamicWorkflowNodeMetadata::compiled_workflow() const { - const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; - // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); -} -inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::release_compiled_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) - - ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; - compiled_workflow_ = nullptr; - return temp; -} -inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::mutable_compiled_workflow() { - - if (compiled_workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); - compiled_workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) - return compiled_workflow_; -} -inline void DynamicWorkflowNodeMetadata::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); - } - if (compiled_workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, compiled_workflow, submessage_arena); - } - - } else { - - } - compiled_workflow_ = compiled_workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DynamicWorkflowNodeMetadata.compiled_workflow) -} - -// string dynamic_job_spec_uri = 3; -inline void DynamicWorkflowNodeMetadata::clear_dynamic_job_spec_uri() { - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DynamicWorkflowNodeMetadata::dynamic_job_spec_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.GetNoArena(); -} -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const ::std::string& value) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -#if LANG_CXX11 -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(::std::string&& value) { - - dynamic_job_spec_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -#endif -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value, size_t size) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -inline ::std::string* DynamicWorkflowNodeMetadata::mutable_dynamic_job_spec_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DynamicWorkflowNodeMetadata::release_dynamic_job_spec_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - - return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DynamicWorkflowNodeMetadata::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { - if (dynamic_job_spec_uri != nullptr) { - - } else { - - } - dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} - -// ------------------------------------------------------------------- - -// NodeExecutionGetDataRequest - -// .flyteidl.core.NodeExecutionIdentifier id = 1; -inline bool NodeExecutionGetDataRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionGetDataRequest::id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataRequest.id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionGetDataRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataRequest.id) - return id_; -} -inline void NodeExecutionGetDataRequest::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* 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.NodeExecutionGetDataRequest.id) -} - -// ------------------------------------------------------------------- - -// NodeExecutionGetDataResponse - -// .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; -inline bool NodeExecutionGetDataResponse::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::inputs() const { - const ::flyteidl::admin::UrlBlob* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.inputs) - - ::flyteidl::admin::UrlBlob* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.inputs) - return inputs_; -} -inline void NodeExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.inputs) -} - -// .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; -inline bool NodeExecutionGetDataResponse::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& NodeExecutionGetDataResponse::outputs() const { - const ::flyteidl::admin::UrlBlob* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.outputs) - - ::flyteidl::admin::UrlBlob* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* NodeExecutionGetDataResponse::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.outputs) - return outputs_; -} -inline void NodeExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.outputs) -} - -// .flyteidl.core.LiteralMap full_inputs = 3; -inline bool NodeExecutionGetDataResponse::has_full_inputs() const { - return this != internal_default_instance() && full_inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& NodeExecutionGetDataResponse::full_inputs() const { - const ::flyteidl::core::LiteralMap* p = full_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::release_full_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) - - ::flyteidl::core::LiteralMap* temp = full_inputs_; - full_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::mutable_full_inputs() { - - if (full_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) - return full_inputs_; -} -inline void NodeExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); - } - if (full_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_inputs, submessage_arena); - } - - } else { - - } - full_inputs_ = full_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.full_inputs) -} - -// .flyteidl.core.LiteralMap full_outputs = 4; -inline bool NodeExecutionGetDataResponse::has_full_outputs() const { - return this != internal_default_instance() && full_outputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& NodeExecutionGetDataResponse::full_outputs() const { - const ::flyteidl::core::LiteralMap* p = full_outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::release_full_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) - - ::flyteidl::core::LiteralMap* temp = full_outputs_; - full_outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* NodeExecutionGetDataResponse::mutable_full_outputs() { - - if (full_outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) - return full_outputs_; -} -inline void NodeExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); - } - if (full_outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_outputs, submessage_arena); - } - - } else { - - } - full_outputs_ = full_outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.full_outputs) -} - -// .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; -inline bool NodeExecutionGetDataResponse::has_dynamic_workflow() const { - return this != internal_default_instance() && dynamic_workflow_ != nullptr; -} -inline void NodeExecutionGetDataResponse::clear_dynamic_workflow() { - if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { - delete dynamic_workflow_; - } - dynamic_workflow_ = nullptr; -} -inline const ::flyteidl::admin::DynamicWorkflowNodeMetadata& NodeExecutionGetDataResponse::dynamic_workflow() const { - const ::flyteidl::admin::DynamicWorkflowNodeMetadata* p = dynamic_workflow_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_DynamicWorkflowNodeMetadata_default_instance_); -} -inline ::flyteidl::admin::DynamicWorkflowNodeMetadata* NodeExecutionGetDataResponse::release_dynamic_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) - - ::flyteidl::admin::DynamicWorkflowNodeMetadata* temp = dynamic_workflow_; - dynamic_workflow_ = nullptr; - return temp; -} -inline ::flyteidl::admin::DynamicWorkflowNodeMetadata* NodeExecutionGetDataResponse::mutable_dynamic_workflow() { - - if (dynamic_workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::DynamicWorkflowNodeMetadata>(GetArenaNoVirtual()); - dynamic_workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) - return dynamic_workflow_; -} -inline void NodeExecutionGetDataResponse::set_allocated_dynamic_workflow(::flyteidl::admin::DynamicWorkflowNodeMetadata* dynamic_workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dynamic_workflow_; - } - if (dynamic_workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dynamic_workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dynamic_workflow, submessage_arena); - } - - } else { - - } - dynamic_workflow_ = dynamic_workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.dynamic_workflow) -} - -// .flyteidl.admin.FlyteURLs flyte_urls = 17; -inline bool NodeExecutionGetDataResponse::has_flyte_urls() const { - return this != internal_default_instance() && flyte_urls_ != nullptr; -} -inline const ::flyteidl::admin::FlyteURLs& NodeExecutionGetDataResponse::flyte_urls() const { - const ::flyteidl::admin::FlyteURLs* p = flyte_urls_; - // @@protoc_insertion_point(field_get:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_FlyteURLs_default_instance_); -} -inline ::flyteidl::admin::FlyteURLs* NodeExecutionGetDataResponse::release_flyte_urls() { - // @@protoc_insertion_point(field_release:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) - - ::flyteidl::admin::FlyteURLs* temp = flyte_urls_; - flyte_urls_ = nullptr; - return temp; -} -inline ::flyteidl::admin::FlyteURLs* NodeExecutionGetDataResponse::mutable_flyte_urls() { - - if (flyte_urls_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(GetArenaNoVirtual()); - flyte_urls_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) - return flyte_urls_; -} -inline void NodeExecutionGetDataResponse::set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(flyte_urls_); - } - if (flyte_urls) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - flyte_urls = ::google::protobuf::internal::GetOwnedMessage( - message_arena, flyte_urls, submessage_arena); - } - - } else { - - } - flyte_urls_ = flyte_urls; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.NodeExecutionGetDataResponse.flyte_urls) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnode_5fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc deleted file mode 100644 index ae50a37648..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/notification.proto - -#include "flyteidl/admin/notification.pb.h" -#include "flyteidl/admin/notification.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h deleted file mode 100644 index 61ec99c537..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/notification.proto -#ifndef GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED - -#include "flyteidl/admin/notification.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fnotification_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc deleted file mode 100644 index 2807e63edf..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.cc +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/notification.proto - -#include "flyteidl/admin/notification.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace admin { -class EmailMessageDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EmailMessage_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsEmailMessage_flyteidl_2fadmin_2fnotification_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_EmailMessage_default_instance_; - new (ptr) ::flyteidl::admin::EmailMessage(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::EmailMessage::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEmailMessage_flyteidl_2fadmin_2fnotification_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fnotification_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fnotification_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fnotification_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fnotification_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, recipients_email_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, sender_email_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, subject_line_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::EmailMessage, body_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::EmailMessage)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_EmailMessage_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto, "flyteidl/admin/notification.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fnotification_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto, 1, file_level_enum_descriptors_flyteidl_2fadmin_2fnotification_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fnotification_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fnotification_2eproto[] = - "\n!flyteidl/admin/notification.proto\022\016fly" - "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" - "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" - "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB=Z;githu" - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" - "flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fnotification_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fnotification_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fnotification_2eproto, - "flyteidl/admin/notification.proto", &assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto, 222, -}; - -void AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fnotification_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fnotification_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void EmailMessage::InitAsDefaultInstance() { -} -class EmailMessage::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EmailMessage::kRecipientsEmailFieldNumber; -const int EmailMessage::kSenderEmailFieldNumber; -const int EmailMessage::kSubjectLineFieldNumber; -const int EmailMessage::kBodyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EmailMessage::EmailMessage() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.EmailMessage) -} -EmailMessage::EmailMessage(const EmailMessage& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - recipients_email_(from.recipients_email_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.sender_email().size() > 0) { - sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); - } - subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.subject_line().size() > 0) { - subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); - } - body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.body().size() > 0) { - body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.EmailMessage) -} - -void EmailMessage::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); - sender_email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - subject_line_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - body_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -EmailMessage::~EmailMessage() { - // @@protoc_insertion_point(destructor:flyteidl.admin.EmailMessage) - SharedDtor(); -} - -void EmailMessage::SharedDtor() { - sender_email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - subject_line_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - body_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void EmailMessage::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EmailMessage& EmailMessage::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EmailMessage_flyteidl_2fadmin_2fnotification_2eproto.base); - return *internal_default_instance(); -} - - -void EmailMessage::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.EmailMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - recipients_email_.Clear(); - sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EmailMessage::_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) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.recipients_email"); - object = msg->add_recipients_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string sender_email = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.sender_email"); - object = msg->mutable_sender_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string subject_line = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.subject_line"); - object = msg->mutable_subject_line(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string body = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.EmailMessage.body"); - object = msg->mutable_body(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EmailMessage::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.EmailMessage) - 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)) { - // repeated string recipients_email = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_recipients_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(this->recipients_email_size() - 1).data(), - static_cast(this->recipients_email(this->recipients_email_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EmailMessage.recipients_email")); - } else { - goto handle_unusual; - } - break; - } - - // string sender_email = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_sender_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->sender_email().data(), static_cast(this->sender_email().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EmailMessage.sender_email")); - } else { - goto handle_unusual; - } - break; - } - - // string subject_line = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject_line())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject_line().data(), static_cast(this->subject_line().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EmailMessage.subject_line")); - } else { - goto handle_unusual; - } - break; - } - - // string body = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_body())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->body().data(), static_cast(this->body().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.EmailMessage.body")); - } 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.EmailMessage) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.EmailMessage) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EmailMessage::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.EmailMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.recipients_email"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->recipients_email(i), output); - } - - // string sender_email = 2; - if (this->sender_email().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->sender_email().data(), static_cast(this->sender_email().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.sender_email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->sender_email(), output); - } - - // string subject_line = 3; - if (this->subject_line().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject_line().data(), static_cast(this->subject_line().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.subject_line"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->subject_line(), output); - } - - // string body = 4; - if (this->body().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->body().data(), static_cast(this->body().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.body"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->body(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.EmailMessage) -} - -::google::protobuf::uint8* EmailMessage::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.EmailMessage) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string recipients_email = 1; - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->recipients_email(i).data(), static_cast(this->recipients_email(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.recipients_email"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->recipients_email(i), target); - } - - // string sender_email = 2; - if (this->sender_email().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->sender_email().data(), static_cast(this->sender_email().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.sender_email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->sender_email(), target); - } - - // string subject_line = 3; - if (this->subject_line().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject_line().data(), static_cast(this->subject_line().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.subject_line"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->subject_line(), target); - } - - // string body = 4; - if (this->body().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->body().data(), static_cast(this->body().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.EmailMessage.body"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->body(), 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.EmailMessage) - return target; -} - -size_t EmailMessage::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.EmailMessage) - 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; - - // repeated string recipients_email = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->recipients_email_size()); - for (int i = 0, n = this->recipients_email_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->recipients_email(i)); - } - - // string sender_email = 2; - if (this->sender_email().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->sender_email()); - } - - // string subject_line = 3; - if (this->subject_line().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject_line()); - } - - // string body = 4; - if (this->body().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->body()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EmailMessage::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.EmailMessage) - GOOGLE_DCHECK_NE(&from, this); - const EmailMessage* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.EmailMessage) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.EmailMessage) - MergeFrom(*source); - } -} - -void EmailMessage::MergeFrom(const EmailMessage& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.EmailMessage) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - recipients_email_.MergeFrom(from.recipients_email_); - if (from.sender_email().size() > 0) { - - sender_email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sender_email_); - } - if (from.subject_line().size() > 0) { - - subject_line_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_line_); - } - if (from.body().size() > 0) { - - body_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.body_); - } -} - -void EmailMessage::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.EmailMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EmailMessage::CopyFrom(const EmailMessage& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.EmailMessage) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EmailMessage::IsInitialized() const { - return true; -} - -void EmailMessage::Swap(EmailMessage* other) { - if (other == this) return; - InternalSwap(other); -} -void EmailMessage::InternalSwap(EmailMessage* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - recipients_email_.InternalSwap(CastToBase(&other->recipients_email_)); - sender_email_.Swap(&other->sender_email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - subject_line_.Swap(&other->subject_line_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - body_.Swap(&other->body_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata EmailMessage::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fnotification_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fnotification_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::EmailMessage* Arena::CreateMaybeMessage< ::flyteidl::admin::EmailMessage >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::EmailMessage >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h deleted file mode 100644 index f73d432fec..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/notification.pb.h +++ /dev/null @@ -1,490 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/notification.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fnotification_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fnotification_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fnotification_2eproto(); -namespace flyteidl { -namespace admin { -class EmailMessage; -class EmailMessageDefaultTypeInternal; -extern EmailMessageDefaultTypeInternal _EmailMessage_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::EmailMessage* Arena::CreateMaybeMessage<::flyteidl::admin::EmailMessage>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class EmailMessage final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.EmailMessage) */ { - public: - EmailMessage(); - virtual ~EmailMessage(); - - EmailMessage(const EmailMessage& from); - - inline EmailMessage& operator=(const EmailMessage& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EmailMessage(EmailMessage&& from) noexcept - : EmailMessage() { - *this = ::std::move(from); - } - - inline EmailMessage& operator=(EmailMessage&& 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 EmailMessage& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EmailMessage* internal_default_instance() { - return reinterpret_cast( - &_EmailMessage_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(EmailMessage* other); - friend void swap(EmailMessage& a, EmailMessage& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EmailMessage* New() const final { - return CreateMaybeMessage(nullptr); - } - - EmailMessage* 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 EmailMessage& from); - void MergeFrom(const EmailMessage& 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(EmailMessage* 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 ------------------------------------------------------- - - // repeated string recipients_email = 1; - int recipients_email_size() const; - void clear_recipients_email(); - static const int kRecipientsEmailFieldNumber = 1; - const ::std::string& recipients_email(int index) const; - ::std::string* mutable_recipients_email(int index); - void set_recipients_email(int index, const ::std::string& value); - #if LANG_CXX11 - void set_recipients_email(int index, ::std::string&& value); - #endif - void set_recipients_email(int index, const char* value); - void set_recipients_email(int index, const char* value, size_t size); - ::std::string* add_recipients_email(); - void add_recipients_email(const ::std::string& value); - #if LANG_CXX11 - void add_recipients_email(::std::string&& value); - #endif - void add_recipients_email(const char* value); - void add_recipients_email(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& recipients_email() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_recipients_email(); - - // string sender_email = 2; - void clear_sender_email(); - static const int kSenderEmailFieldNumber = 2; - const ::std::string& sender_email() const; - void set_sender_email(const ::std::string& value); - #if LANG_CXX11 - void set_sender_email(::std::string&& value); - #endif - void set_sender_email(const char* value); - void set_sender_email(const char* value, size_t size); - ::std::string* mutable_sender_email(); - ::std::string* release_sender_email(); - void set_allocated_sender_email(::std::string* sender_email); - - // string subject_line = 3; - void clear_subject_line(); - static const int kSubjectLineFieldNumber = 3; - const ::std::string& subject_line() const; - void set_subject_line(const ::std::string& value); - #if LANG_CXX11 - void set_subject_line(::std::string&& value); - #endif - void set_subject_line(const char* value); - void set_subject_line(const char* value, size_t size); - ::std::string* mutable_subject_line(); - ::std::string* release_subject_line(); - void set_allocated_subject_line(::std::string* subject_line); - - // string body = 4; - void clear_body(); - static const int kBodyFieldNumber = 4; - const ::std::string& body() const; - void set_body(const ::std::string& value); - #if LANG_CXX11 - void set_body(::std::string&& value); - #endif - void set_body(const char* value); - void set_body(const char* value, size_t size); - ::std::string* mutable_body(); - ::std::string* release_body(); - void set_allocated_body(::std::string* body); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> recipients_email_; - ::google::protobuf::internal::ArenaStringPtr sender_email_; - ::google::protobuf::internal::ArenaStringPtr subject_line_; - ::google::protobuf::internal::ArenaStringPtr body_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fnotification_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// EmailMessage - -// repeated string recipients_email = 1; -inline int EmailMessage::recipients_email_size() const { - return recipients_email_.size(); -} -inline void EmailMessage::clear_recipients_email() { - recipients_email_.Clear(); -} -inline const ::std::string& EmailMessage::recipients_email(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.recipients_email) - return recipients_email_.Get(index); -} -inline ::std::string* EmailMessage::mutable_recipients_email(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.recipients_email) - return recipients_email_.Mutable(index); -} -inline void EmailMessage::set_recipients_email(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) - recipients_email_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void EmailMessage::set_recipients_email(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.recipients_email) - recipients_email_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void EmailMessage::set_recipients_email(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.recipients_email) -} -inline void EmailMessage::set_recipients_email(int index, const char* value, size_t size) { - recipients_email_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.recipients_email) -} -inline ::std::string* EmailMessage::add_recipients_email() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.admin.EmailMessage.recipients_email) - return recipients_email_.Add(); -} -inline void EmailMessage::add_recipients_email(const ::std::string& value) { - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) -} -#if LANG_CXX11 -inline void EmailMessage::add_recipients_email(::std::string&& value) { - recipients_email_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.admin.EmailMessage.recipients_email) -} -#endif -inline void EmailMessage::add_recipients_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - recipients_email_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.admin.EmailMessage.recipients_email) -} -inline void EmailMessage::add_recipients_email(const char* value, size_t size) { - recipients_email_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.admin.EmailMessage.recipients_email) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -EmailMessage::recipients_email() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.EmailMessage.recipients_email) - return recipients_email_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -EmailMessage::mutable_recipients_email() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.EmailMessage.recipients_email) - return &recipients_email_; -} - -// string sender_email = 2; -inline void EmailMessage::clear_sender_email() { - sender_email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EmailMessage::sender_email() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.sender_email) - return sender_email_.GetNoArena(); -} -inline void EmailMessage::set_sender_email(const ::std::string& value) { - - sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.sender_email) -} -#if LANG_CXX11 -inline void EmailMessage::set_sender_email(::std::string&& value) { - - sender_email_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.sender_email) -} -#endif -inline void EmailMessage::set_sender_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.sender_email) -} -inline void EmailMessage::set_sender_email(const char* value, size_t size) { - - sender_email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.sender_email) -} -inline ::std::string* EmailMessage::mutable_sender_email() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.sender_email) - return sender_email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EmailMessage::release_sender_email() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.sender_email) - - return sender_email_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EmailMessage::set_allocated_sender_email(::std::string* sender_email) { - if (sender_email != nullptr) { - - } else { - - } - sender_email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), sender_email); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.sender_email) -} - -// string subject_line = 3; -inline void EmailMessage::clear_subject_line() { - subject_line_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EmailMessage::subject_line() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.subject_line) - return subject_line_.GetNoArena(); -} -inline void EmailMessage::set_subject_line(const ::std::string& value) { - - subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.subject_line) -} -#if LANG_CXX11 -inline void EmailMessage::set_subject_line(::std::string&& value) { - - subject_line_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.subject_line) -} -#endif -inline void EmailMessage::set_subject_line(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.subject_line) -} -inline void EmailMessage::set_subject_line(const char* value, size_t size) { - - subject_line_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.subject_line) -} -inline ::std::string* EmailMessage::mutable_subject_line() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.subject_line) - return subject_line_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EmailMessage::release_subject_line() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.subject_line) - - return subject_line_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EmailMessage::set_allocated_subject_line(::std::string* subject_line) { - if (subject_line != nullptr) { - - } else { - - } - subject_line_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), subject_line); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.subject_line) -} - -// string body = 4; -inline void EmailMessage::clear_body() { - body_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EmailMessage::body() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.EmailMessage.body) - return body_.GetNoArena(); -} -inline void EmailMessage::set_body(const ::std::string& value) { - - body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.EmailMessage.body) -} -#if LANG_CXX11 -inline void EmailMessage::set_body(::std::string&& value) { - - body_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.EmailMessage.body) -} -#endif -inline void EmailMessage::set_body(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.EmailMessage.body) -} -inline void EmailMessage::set_body(const char* value, size_t size) { - - body_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.EmailMessage.body) -} -inline ::std::string* EmailMessage::mutable_body() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.EmailMessage.body) - return body_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EmailMessage::release_body() { - // @@protoc_insertion_point(field_release:flyteidl.admin.EmailMessage.body) - - return body_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EmailMessage::set_allocated_body(::std::string* body) { - if (body != nullptr) { - - } else { - - } - body_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.EmailMessage.body) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fnotification_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc deleted file mode 100644 index 278f924864..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project.proto - -#include "flyteidl/admin/project.pb.h" -#include "flyteidl/admin/project.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h deleted file mode 100644 index 68aafe8e67..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project.proto -#ifndef GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED - -#include "flyteidl/admin/project.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fproject_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc deleted file mode 100644 index 979041c005..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.cc +++ /dev/null @@ -1,2889 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project.proto - -#include "flyteidl/admin/project.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Project_flyteidl_2fadmin_2fproject_2eproto; -namespace flyteidl { -namespace admin { -class DomainDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Domain_default_instance_; -class ProjectDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Project_default_instance_; -class ProjectsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Projects_default_instance_; -class ProjectListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectListRequest_default_instance_; -class ProjectRegisterRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectRegisterRequest_default_instance_; -class ProjectRegisterResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectRegisterResponse_default_instance_; -class ProjectUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectUpdateResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsDomain_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Domain_default_instance_; - new (ptr) ::flyteidl::admin::Domain(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Domain::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDomain_flyteidl_2fadmin_2fproject_2eproto}, {}}; - -static void InitDefaultsProject_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Project_default_instance_; - new (ptr) ::flyteidl::admin::Project(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Project::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Project_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsProject_flyteidl_2fadmin_2fproject_2eproto}, { - &scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base, - &scc_info_Labels_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsProjects_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Projects_default_instance_; - new (ptr) ::flyteidl::admin::Projects(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Projects::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjects_flyteidl_2fadmin_2fproject_2eproto}, { - &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base,}}; - -static void InitDefaultsProjectListRequest_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectListRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectListRequest_flyteidl_2fadmin_2fproject_2eproto}, { - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectRegisterRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectRegisterRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectRegisterRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto}, { - &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base,}}; - -static void InitDefaultsProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectRegisterResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectRegisterResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectRegisterResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto}, {}}; - -static void InitDefaultsProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fproject_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[7]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Domain, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, domains_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Project, state_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, projects_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Projects, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectListRequest, sort_by_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterRequest, project_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectRegisterResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::Domain)}, - { 7, -1, sizeof(::flyteidl::admin::Project)}, - { 18, -1, sizeof(::flyteidl::admin::Projects)}, - { 25, -1, sizeof(::flyteidl::admin::ProjectListRequest)}, - { 34, -1, sizeof(::flyteidl::admin::ProjectRegisterRequest)}, - { 40, -1, sizeof(::flyteidl::admin::ProjectRegisterResponse)}, - { 45, -1, sizeof(::flyteidl::admin::ProjectUpdateResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_Domain_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Project_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Projects_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectRegisterRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectRegisterResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectUpdateResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fproject_2eproto, "flyteidl/admin/project.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fproject_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_2eproto[] = - "\n\034flyteidl/admin/project.proto\022\016flyteidl" - ".admin\032\033flyteidl/admin/common.proto\"\"\n\006D" - "omain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\376\001\n\007Proj" - "ect\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\'\n\007domains" - "\030\003 \003(\0132\026.flyteidl.admin.Domain\022\023\n\013descri" - "ption\030\004 \001(\t\022&\n\006labels\030\005 \001(\0132\026.flyteidl.a" - "dmin.Labels\0223\n\005state\030\006 \001(\0162$.flyteidl.ad" - "min.Project.ProjectState\">\n\014ProjectState" - "\022\n\n\006ACTIVE\020\000\022\014\n\010ARCHIVED\020\001\022\024\n\020SYSTEM_GEN" - "ERATED\020\002\"D\n\010Projects\022)\n\010projects\030\001 \003(\0132\027" - ".flyteidl.admin.Project\022\r\n\005token\030\002 \001(\t\"j" - "\n\022ProjectListRequest\022\r\n\005limit\030\001 \001(\r\022\r\n\005t" - "oken\030\002 \001(\t\022\017\n\007filters\030\003 \001(\t\022%\n\007sort_by\030\004" - " \001(\0132\024.flyteidl.admin.Sort\"B\n\026ProjectReg" - "isterRequest\022(\n\007project\030\001 \001(\0132\027.flyteidl" - ".admin.Project\"\031\n\027ProjectRegisterRespons" - "e\"\027\n\025ProjectUpdateResponseB=Z;github.com" - "/flyteorg/flyte/flyteidl/gen/pb-go/flyte" - "idl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fproject_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fproject_2eproto, - "flyteidl/admin/project.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto, 737, -}; - -void AddDescriptors_flyteidl_2fadmin_2fproject_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* Project_ProjectState_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fproject_2eproto[0]; -} -bool Project_ProjectState_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const Project_ProjectState Project::ACTIVE; -const Project_ProjectState Project::ARCHIVED; -const Project_ProjectState Project::SYSTEM_GENERATED; -const Project_ProjectState Project::ProjectState_MIN; -const Project_ProjectState Project::ProjectState_MAX; -const int Project::ProjectState_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void Domain::InitAsDefaultInstance() { -} -class Domain::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Domain::kIdFieldNumber; -const int Domain::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Domain::Domain() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Domain) -} -Domain::Domain(const Domain& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Domain) -} - -void Domain::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Domain::~Domain() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Domain) - SharedDtor(); -} - -void Domain::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Domain::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Domain& Domain::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Domain_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void Domain::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Domain) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Domain::_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) { - // string 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Domain.id"); - object = msg->mutable_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Domain.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Domain::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.Domain) - 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)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Domain.id")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Domain.name")); - } 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.Domain) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Domain) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Domain::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Domain) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Domain.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Domain.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Domain) -} - -::google::protobuf::uint8* Domain::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Domain) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Domain.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Domain.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), 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.Domain) - return target; -} - -size_t Domain::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Domain) - 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; - - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Domain::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Domain) - GOOGLE_DCHECK_NE(&from, this); - const Domain* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Domain) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Domain) - MergeFrom(*source); - } -} - -void Domain::MergeFrom(const Domain& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Domain) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void Domain::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Domain) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Domain::CopyFrom(const Domain& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Domain) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Domain::IsInitialized() const { - return true; -} - -void Domain::Swap(Domain* other) { - if (other == this) return; - InternalSwap(other); -} -void Domain::InternalSwap(Domain* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Domain::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Project::InitAsDefaultInstance() { - ::flyteidl::admin::_Project_default_instance_._instance.get_mutable()->labels_ = const_cast< ::flyteidl::admin::Labels*>( - ::flyteidl::admin::Labels::internal_default_instance()); -} -class Project::HasBitSetters { - public: - static const ::flyteidl::admin::Labels& labels(const Project* msg); -}; - -const ::flyteidl::admin::Labels& -Project::HasBitSetters::labels(const Project* msg) { - return *msg->labels_; -} -void Project::clear_labels() { - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Project::kIdFieldNumber; -const int Project::kNameFieldNumber; -const int Project::kDomainsFieldNumber; -const int Project::kDescriptionFieldNumber; -const int Project::kLabelsFieldNumber; -const int Project::kStateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Project::Project() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Project) -} -Project::Project(const Project& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - domains_(from.domains_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.description().size() > 0) { - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - if (from.has_labels()) { - labels_ = new ::flyteidl::admin::Labels(*from.labels_); - } else { - labels_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Project) -} - -void Project::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&labels_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&labels_)) + sizeof(state_)); -} - -Project::~Project() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Project) - SharedDtor(); -} - -void Project::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete labels_; -} - -void Project::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Project& Project::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Project_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void Project::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Project) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - domains_.Clear(); - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && labels_ != nullptr) { - delete labels_; - } - labels_ = nullptr; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Project::_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) { - // string 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.id"); - object = msg->mutable_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.admin.Domain domains = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Domain::_InternalParse; - object = msg->add_domains(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // string description = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Project.description"); - object = msg->mutable_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Labels labels = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Labels::_InternalParse; - object = msg->mutable_labels(); - 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.Project.ProjectState state = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::admin::Project_ProjectState>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Project::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.Project) - 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)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Project.id")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Project.name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.admin.Domain domains = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_domains())); - } else { - goto handle_unusual; - } - break; - } - - // string description = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Project.description")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Labels labels = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_labels())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Project.ProjectState state = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::admin::Project_ProjectState >(value)); - } 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.Project) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Project) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Project::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Project) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // repeated .flyteidl.admin.Domain domains = 3; - for (unsigned int i = 0, - n = static_cast(this->domains_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->domains(static_cast(i)), - output); - } - - // string description = 4; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->description(), output); - } - - // .flyteidl.admin.Labels labels = 5; - if (this->has_labels()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::labels(this), output); - } - - // .flyteidl.admin.Project.ProjectState state = 6; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 6, this->state(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Project) -} - -::google::protobuf::uint8* Project::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Project) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // repeated .flyteidl.admin.Domain domains = 3; - for (unsigned int i = 0, - n = static_cast(this->domains_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->domains(static_cast(i)), target); - } - - // string description = 4; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Project.description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->description(), target); - } - - // .flyteidl.admin.Labels labels = 5; - if (this->has_labels()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::labels(this), target); - } - - // .flyteidl.admin.Project.ProjectState state = 6; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 6, this->state(), 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.Project) - return target; -} - -size_t Project::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Project) - 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; - - // repeated .flyteidl.admin.Domain domains = 3; - { - unsigned int count = static_cast(this->domains_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->domains(static_cast(i))); - } - } - - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string description = 4; - if (this->description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // .flyteidl.admin.Labels labels = 5; - if (this->has_labels()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *labels_); - } - - // .flyteidl.admin.Project.ProjectState state = 6; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Project::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Project) - GOOGLE_DCHECK_NE(&from, this); - const Project* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Project) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Project) - MergeFrom(*source); - } -} - -void Project::MergeFrom(const Project& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Project) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - domains_.MergeFrom(from.domains_); - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.description().size() > 0) { - - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - if (from.has_labels()) { - mutable_labels()->::flyteidl::admin::Labels::MergeFrom(from.labels()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void Project::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Project) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Project::CopyFrom(const Project& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Project) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Project::IsInitialized() const { - return true; -} - -void Project::Swap(Project* other) { - if (other == this) return; - InternalSwap(other); -} -void Project::InternalSwap(Project* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&domains_)->InternalSwap(CastToBase(&other->domains_)); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(labels_, other->labels_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata Project::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Projects::InitAsDefaultInstance() { -} -class Projects::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Projects::kProjectsFieldNumber; -const int Projects::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Projects::Projects() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Projects) -} -Projects::Projects(const Projects& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - projects_(from.projects_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Projects) -} - -void Projects::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Projects::~Projects() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Projects) - SharedDtor(); -} - -void Projects::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Projects::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Projects& Projects::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Projects_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void Projects::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Projects) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - projects_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Projects::_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) { - // repeated .flyteidl.admin.Project projects = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Project::_InternalParse; - object = msg->add_projects(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Projects.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Projects::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.Projects) - 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)) { - // repeated .flyteidl.admin.Project projects = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_projects())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Projects.token")); - } 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.Projects) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Projects) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Projects::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Projects) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Project projects = 1; - for (unsigned int i = 0, - n = static_cast(this->projects_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->projects(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Projects.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Projects) -} - -::google::protobuf::uint8* Projects::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Projects) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Project projects = 1; - for (unsigned int i = 0, - n = static_cast(this->projects_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->projects(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Projects.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.Projects) - return target; -} - -size_t Projects::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Projects) - 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; - - // repeated .flyteidl.admin.Project projects = 1; - { - unsigned int count = static_cast(this->projects_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->projects(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Projects::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Projects) - GOOGLE_DCHECK_NE(&from, this); - const Projects* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Projects) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Projects) - MergeFrom(*source); - } -} - -void Projects::MergeFrom(const Projects& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Projects) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - projects_.MergeFrom(from.projects_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void Projects::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Projects) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Projects::CopyFrom(const Projects& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Projects) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Projects::IsInitialized() const { - return true; -} - -void Projects::Swap(Projects* other) { - if (other == this) return; - InternalSwap(other); -} -void Projects::InternalSwap(Projects* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&projects_)->InternalSwap(CastToBase(&other->projects_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Projects::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class ProjectListRequest::HasBitSetters { - public: - static const ::flyteidl::admin::Sort& sort_by(const ProjectListRequest* msg); -}; - -const ::flyteidl::admin::Sort& -ProjectListRequest::HasBitSetters::sort_by(const ProjectListRequest* msg) { - return *msg->sort_by_; -} -void ProjectListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectListRequest::kLimitFieldNumber; -const int ProjectListRequest::kTokenFieldNumber; -const int ProjectListRequest::kFiltersFieldNumber; -const int ProjectListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectListRequest::ProjectListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectListRequest) -} -ProjectListRequest::ProjectListRequest(const ProjectListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectListRequest) -} - -void ProjectListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&sort_by_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&sort_by_)) + sizeof(limit_)); -} - -ProjectListRequest::~ProjectListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectListRequest) - SharedDtor(); -} - -void ProjectListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete sort_by_; -} - -void ProjectListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectListRequest& ProjectListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectListRequest_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectListRequest::_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) { - // uint32 limit = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectListRequest::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.ProjectListRequest) - 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)) { - // uint32 limit = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.ProjectListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 limit = 1; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limit(), output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - // string filters = 3; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 4; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::sort_by(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.ProjectListRequest) -} - -::google::protobuf::uint8* ProjectListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 limit = 1; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limit(), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), target); - } - - // string filters = 3; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 4; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::sort_by(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.ProjectListRequest) - return target; -} - -size_t ProjectListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectListRequest) - 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; - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 3; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.admin.Sort sort_by = 4; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 1; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectListRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectListRequest) - MergeFrom(*source); - } -} - -void ProjectListRequest::MergeFrom(const ProjectListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void ProjectListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectListRequest::CopyFrom(const ProjectListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectListRequest::IsInitialized() const { - return true; -} - -void ProjectListRequest::Swap(ProjectListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectListRequest::InternalSwap(ProjectListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata ProjectListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectRegisterRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectRegisterRequest_default_instance_._instance.get_mutable()->project_ = const_cast< ::flyteidl::admin::Project*>( - ::flyteidl::admin::Project::internal_default_instance()); -} -class ProjectRegisterRequest::HasBitSetters { - public: - static const ::flyteidl::admin::Project& project(const ProjectRegisterRequest* msg); -}; - -const ::flyteidl::admin::Project& -ProjectRegisterRequest::HasBitSetters::project(const ProjectRegisterRequest* msg) { - return *msg->project_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectRegisterRequest::kProjectFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectRegisterRequest::ProjectRegisterRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterRequest) -} -ProjectRegisterRequest::ProjectRegisterRequest(const ProjectRegisterRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_project()) { - project_ = new ::flyteidl::admin::Project(*from.project_); - } else { - project_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterRequest) -} - -void ProjectRegisterRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); - project_ = nullptr; -} - -ProjectRegisterRequest::~ProjectRegisterRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterRequest) - SharedDtor(); -} - -void ProjectRegisterRequest::SharedDtor() { - if (this != internal_default_instance()) delete project_; -} - -void ProjectRegisterRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectRegisterRequest& ProjectRegisterRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectRegisterRequest_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectRegisterRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && project_ != nullptr) { - delete project_; - } - project_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectRegisterRequest::_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.Project project = 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::Project::_InternalParse; - object = msg->mutable_project(); - 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 ProjectRegisterRequest::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.ProjectRegisterRequest) - 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.Project project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_project())); - } 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.ProjectRegisterRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectRegisterRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Project project = 1; - if (this->has_project()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::project(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.ProjectRegisterRequest) -} - -::google::protobuf::uint8* ProjectRegisterRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Project project = 1; - if (this->has_project()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::project(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.ProjectRegisterRequest) - return target; -} - -size_t ProjectRegisterRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterRequest) - 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.admin.Project project = 1; - if (this->has_project()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *project_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectRegisterRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectRegisterRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterRequest) - MergeFrom(*source); - } -} - -void ProjectRegisterRequest::MergeFrom(const ProjectRegisterRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterRequest) - 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_project()) { - mutable_project()->::flyteidl::admin::Project::MergeFrom(from.project()); - } -} - -void ProjectRegisterRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectRegisterRequest::CopyFrom(const ProjectRegisterRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectRegisterRequest::IsInitialized() const { - return true; -} - -void ProjectRegisterRequest::Swap(ProjectRegisterRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectRegisterRequest::InternalSwap(ProjectRegisterRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(project_, other->project_); -} - -::google::protobuf::Metadata ProjectRegisterRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectRegisterResponse::InitAsDefaultInstance() { -} -class ProjectRegisterResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectRegisterResponse::ProjectRegisterResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectRegisterResponse) -} -ProjectRegisterResponse::ProjectRegisterResponse(const ProjectRegisterResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectRegisterResponse) -} - -void ProjectRegisterResponse::SharedCtor() { -} - -ProjectRegisterResponse::~ProjectRegisterResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectRegisterResponse) - SharedDtor(); -} - -void ProjectRegisterResponse::SharedDtor() { -} - -void ProjectRegisterResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectRegisterResponse& ProjectRegisterResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectRegisterResponse_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectRegisterResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectRegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectRegisterResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectRegisterResponse::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.ProjectRegisterResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectRegisterResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectRegisterResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectRegisterResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectRegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectRegisterResponse) -} - -::google::protobuf::uint8* ProjectRegisterResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectRegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectRegisterResponse) - return target; -} - -size_t ProjectRegisterResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectRegisterResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectRegisterResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectRegisterResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectRegisterResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectRegisterResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectRegisterResponse) - MergeFrom(*source); - } -} - -void ProjectRegisterResponse::MergeFrom(const ProjectRegisterResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectRegisterResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectRegisterResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectRegisterResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectRegisterResponse::CopyFrom(const ProjectRegisterResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectRegisterResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectRegisterResponse::IsInitialized() const { - return true; -} - -void ProjectRegisterResponse::Swap(ProjectRegisterResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectRegisterResponse::InternalSwap(ProjectRegisterResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectRegisterResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectUpdateResponse::InitAsDefaultInstance() { -} -class ProjectUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectUpdateResponse::ProjectUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectUpdateResponse) -} -ProjectUpdateResponse::ProjectUpdateResponse(const ProjectUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectUpdateResponse) -} - -void ProjectUpdateResponse::SharedCtor() { -} - -ProjectUpdateResponse::~ProjectUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectUpdateResponse) - SharedDtor(); -} - -void ProjectUpdateResponse::SharedDtor() { -} - -void ProjectUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectUpdateResponse& ProjectUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectUpdateResponse_flyteidl_2fadmin_2fproject_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectUpdateResponse::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.ProjectUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectUpdateResponse) -} - -::google::protobuf::uint8* ProjectUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectUpdateResponse) - return target; -} - -size_t ProjectUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectUpdateResponse) - MergeFrom(*source); - } -} - -void ProjectUpdateResponse::MergeFrom(const ProjectUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectUpdateResponse::CopyFrom(const ProjectUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectUpdateResponse::IsInitialized() const { - return true; -} - -void ProjectUpdateResponse::Swap(ProjectUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectUpdateResponse::InternalSwap(ProjectUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Domain* Arena::CreateMaybeMessage< ::flyteidl::admin::Domain >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Domain >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Project* Arena::CreateMaybeMessage< ::flyteidl::admin::Project >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Project >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Projects* Arena::CreateMaybeMessage< ::flyteidl::admin::Projects >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Projects >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectRegisterRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectRegisterRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectRegisterRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectRegisterResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectRegisterResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectRegisterResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectUpdateResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h deleted file mode 100644 index b1fa7e9e3b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project.pb.h +++ /dev/null @@ -1,1791 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/admin/common.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fproject_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fproject_2eproto(); -namespace flyteidl { -namespace admin { -class Domain; -class DomainDefaultTypeInternal; -extern DomainDefaultTypeInternal _Domain_default_instance_; -class Project; -class ProjectDefaultTypeInternal; -extern ProjectDefaultTypeInternal _Project_default_instance_; -class ProjectListRequest; -class ProjectListRequestDefaultTypeInternal; -extern ProjectListRequestDefaultTypeInternal _ProjectListRequest_default_instance_; -class ProjectRegisterRequest; -class ProjectRegisterRequestDefaultTypeInternal; -extern ProjectRegisterRequestDefaultTypeInternal _ProjectRegisterRequest_default_instance_; -class ProjectRegisterResponse; -class ProjectRegisterResponseDefaultTypeInternal; -extern ProjectRegisterResponseDefaultTypeInternal _ProjectRegisterResponse_default_instance_; -class ProjectUpdateResponse; -class ProjectUpdateResponseDefaultTypeInternal; -extern ProjectUpdateResponseDefaultTypeInternal _ProjectUpdateResponse_default_instance_; -class Projects; -class ProjectsDefaultTypeInternal; -extern ProjectsDefaultTypeInternal _Projects_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Domain* Arena::CreateMaybeMessage<::flyteidl::admin::Domain>(Arena*); -template<> ::flyteidl::admin::Project* Arena::CreateMaybeMessage<::flyteidl::admin::Project>(Arena*); -template<> ::flyteidl::admin::ProjectListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectListRequest>(Arena*); -template<> ::flyteidl::admin::ProjectRegisterRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectRegisterRequest>(Arena*); -template<> ::flyteidl::admin::ProjectRegisterResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectRegisterResponse>(Arena*); -template<> ::flyteidl::admin::ProjectUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectUpdateResponse>(Arena*); -template<> ::flyteidl::admin::Projects* Arena::CreateMaybeMessage<::flyteidl::admin::Projects>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum Project_ProjectState { - Project_ProjectState_ACTIVE = 0, - Project_ProjectState_ARCHIVED = 1, - Project_ProjectState_SYSTEM_GENERATED = 2, - Project_ProjectState_Project_ProjectState_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Project_ProjectState_Project_ProjectState_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Project_ProjectState_IsValid(int value); -const Project_ProjectState Project_ProjectState_ProjectState_MIN = Project_ProjectState_ACTIVE; -const Project_ProjectState Project_ProjectState_ProjectState_MAX = Project_ProjectState_SYSTEM_GENERATED; -const int Project_ProjectState_ProjectState_ARRAYSIZE = Project_ProjectState_ProjectState_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Project_ProjectState_descriptor(); -inline const ::std::string& Project_ProjectState_Name(Project_ProjectState value) { - return ::google::protobuf::internal::NameOfEnum( - Project_ProjectState_descriptor(), value); -} -inline bool Project_ProjectState_Parse( - const ::std::string& name, Project_ProjectState* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Project_ProjectState_descriptor(), name, value); -} -// =================================================================== - -class Domain final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Domain) */ { - public: - Domain(); - virtual ~Domain(); - - Domain(const Domain& from); - - inline Domain& operator=(const Domain& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Domain(Domain&& from) noexcept - : Domain() { - *this = ::std::move(from); - } - - inline Domain& operator=(Domain&& 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 Domain& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Domain* internal_default_instance() { - return reinterpret_cast( - &_Domain_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Domain* other); - friend void swap(Domain& a, Domain& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Domain* New() const final { - return CreateMaybeMessage(nullptr); - } - - Domain* 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 Domain& from); - void MergeFrom(const Domain& 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(Domain* 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 ------------------------------------------------------- - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class Project final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Project) */ { - public: - Project(); - virtual ~Project(); - - Project(const Project& from); - - inline Project& operator=(const Project& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Project(Project&& from) noexcept - : Project() { - *this = ::std::move(from); - } - - inline Project& operator=(Project&& 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 Project& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Project* internal_default_instance() { - return reinterpret_cast( - &_Project_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Project* other); - friend void swap(Project& a, Project& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Project* New() const final { - return CreateMaybeMessage(nullptr); - } - - Project* 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 Project& from); - void MergeFrom(const Project& 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(Project* 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 ---------------------------------------------------- - - typedef Project_ProjectState ProjectState; - static const ProjectState ACTIVE = - Project_ProjectState_ACTIVE; - static const ProjectState ARCHIVED = - Project_ProjectState_ARCHIVED; - static const ProjectState SYSTEM_GENERATED = - Project_ProjectState_SYSTEM_GENERATED; - static inline bool ProjectState_IsValid(int value) { - return Project_ProjectState_IsValid(value); - } - static const ProjectState ProjectState_MIN = - Project_ProjectState_ProjectState_MIN; - static const ProjectState ProjectState_MAX = - Project_ProjectState_ProjectState_MAX; - static const int ProjectState_ARRAYSIZE = - Project_ProjectState_ProjectState_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ProjectState_descriptor() { - return Project_ProjectState_descriptor(); - } - static inline const ::std::string& ProjectState_Name(ProjectState value) { - return Project_ProjectState_Name(value); - } - static inline bool ProjectState_Parse(const ::std::string& name, - ProjectState* value) { - return Project_ProjectState_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.admin.Domain domains = 3; - int domains_size() const; - void clear_domains(); - static const int kDomainsFieldNumber = 3; - ::flyteidl::admin::Domain* mutable_domains(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* - mutable_domains(); - const ::flyteidl::admin::Domain& domains(int index) const; - ::flyteidl::admin::Domain* add_domains(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& - domains() const; - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string description = 4; - void clear_description(); - static const int kDescriptionFieldNumber = 4; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - - // .flyteidl.admin.Labels labels = 5; - bool has_labels() const; - void clear_labels(); - static const int kLabelsFieldNumber = 5; - const ::flyteidl::admin::Labels& labels() const; - ::flyteidl::admin::Labels* release_labels(); - ::flyteidl::admin::Labels* mutable_labels(); - void set_allocated_labels(::flyteidl::admin::Labels* labels); - - // .flyteidl.admin.Project.ProjectState state = 6; - void clear_state(); - static const int kStateFieldNumber = 6; - ::flyteidl::admin::Project_ProjectState state() const; - void set_state(::flyteidl::admin::Project_ProjectState value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain > domains_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::flyteidl::admin::Labels* labels_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class Projects final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Projects) */ { - public: - Projects(); - virtual ~Projects(); - - Projects(const Projects& from); - - inline Projects& operator=(const Projects& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Projects(Projects&& from) noexcept - : Projects() { - *this = ::std::move(from); - } - - inline Projects& operator=(Projects&& 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 Projects& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Projects* internal_default_instance() { - return reinterpret_cast( - &_Projects_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Projects* other); - friend void swap(Projects& a, Projects& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Projects* New() const final { - return CreateMaybeMessage(nullptr); - } - - Projects* 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 Projects& from); - void MergeFrom(const Projects& 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(Projects* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Project projects = 1; - int projects_size() const; - void clear_projects(); - static const int kProjectsFieldNumber = 1; - ::flyteidl::admin::Project* mutable_projects(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* - mutable_projects(); - const ::flyteidl::admin::Project& projects(int index) const; - ::flyteidl::admin::Project* add_projects(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& - projects() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project > projects_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectListRequest) */ { - public: - ProjectListRequest(); - virtual ~ProjectListRequest(); - - ProjectListRequest(const ProjectListRequest& from); - - inline ProjectListRequest& operator=(const ProjectListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectListRequest(ProjectListRequest&& from) noexcept - : ProjectListRequest() { - *this = ::std::move(from); - } - - inline ProjectListRequest& operator=(ProjectListRequest&& 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 ProjectListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectListRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ProjectListRequest* other); - friend void swap(ProjectListRequest& a, ProjectListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectListRequest* 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 ProjectListRequest& from); - void MergeFrom(const ProjectListRequest& 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(ProjectListRequest* 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 ------------------------------------------------------- - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 3; - void clear_filters(); - static const int kFiltersFieldNumber = 3; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.admin.Sort sort_by = 4; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 4; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 1; - void clear_limit(); - static const int kLimitFieldNumber = 1; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectRegisterRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterRequest) */ { - public: - ProjectRegisterRequest(); - virtual ~ProjectRegisterRequest(); - - ProjectRegisterRequest(const ProjectRegisterRequest& from); - - inline ProjectRegisterRequest& operator=(const ProjectRegisterRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectRegisterRequest(ProjectRegisterRequest&& from) noexcept - : ProjectRegisterRequest() { - *this = ::std::move(from); - } - - inline ProjectRegisterRequest& operator=(ProjectRegisterRequest&& 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 ProjectRegisterRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectRegisterRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectRegisterRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(ProjectRegisterRequest* other); - friend void swap(ProjectRegisterRequest& a, ProjectRegisterRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectRegisterRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectRegisterRequest* 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 ProjectRegisterRequest& from); - void MergeFrom(const ProjectRegisterRequest& 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(ProjectRegisterRequest* 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.Project project = 1; - bool has_project() const; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::flyteidl::admin::Project& project() const; - ::flyteidl::admin::Project* release_project(); - ::flyteidl::admin::Project* mutable_project(); - void set_allocated_project(::flyteidl::admin::Project* project); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::Project* project_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectRegisterResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectRegisterResponse) */ { - public: - ProjectRegisterResponse(); - virtual ~ProjectRegisterResponse(); - - ProjectRegisterResponse(const ProjectRegisterResponse& from); - - inline ProjectRegisterResponse& operator=(const ProjectRegisterResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectRegisterResponse(ProjectRegisterResponse&& from) noexcept - : ProjectRegisterResponse() { - *this = ::std::move(from); - } - - inline ProjectRegisterResponse& operator=(ProjectRegisterResponse&& 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 ProjectRegisterResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectRegisterResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectRegisterResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ProjectRegisterResponse* other); - friend void swap(ProjectRegisterResponse& a, ProjectRegisterResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectRegisterResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectRegisterResponse* 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 ProjectRegisterResponse& from); - void MergeFrom(const ProjectRegisterResponse& 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(ProjectRegisterResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectUpdateResponse) */ { - public: - ProjectUpdateResponse(); - virtual ~ProjectUpdateResponse(); - - ProjectUpdateResponse(const ProjectUpdateResponse& from); - - inline ProjectUpdateResponse& operator=(const ProjectUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectUpdateResponse(ProjectUpdateResponse&& from) noexcept - : ProjectUpdateResponse() { - *this = ::std::move(from); - } - - inline ProjectUpdateResponse& operator=(ProjectUpdateResponse&& 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 ProjectUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ProjectUpdateResponse* other); - friend void swap(ProjectUpdateResponse& a, ProjectUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectUpdateResponse* 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 ProjectUpdateResponse& from); - void MergeFrom(const ProjectUpdateResponse& 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(ProjectUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Domain - -// string id = 1; -inline void Domain::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Domain::id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.id) - return id_.GetNoArena(); -} -inline void Domain::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.id) -} -#if LANG_CXX11 -inline void Domain::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.id) -} -#endif -inline void Domain::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.id) -} -inline void Domain::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.id) -} -inline ::std::string* Domain::mutable_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Domain::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Domain::set_allocated_id(::std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.id) -} - -// string name = 2; -inline void Domain::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Domain::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Domain.name) - return name_.GetNoArena(); -} -inline void Domain::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Domain.name) -} -#if LANG_CXX11 -inline void Domain::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Domain.name) -} -#endif -inline void Domain::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Domain.name) -} -inline void Domain::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Domain.name) -} -inline ::std::string* Domain::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Domain.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Domain::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Domain.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Domain::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Domain.name) -} - -// ------------------------------------------------------------------- - -// Project - -// string id = 1; -inline void Project::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Project::id() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.id) - return id_.GetNoArena(); -} -inline void Project::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Project.id) -} -#if LANG_CXX11 -inline void Project::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.id) -} -#endif -inline void Project::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.id) -} -inline void Project::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.id) -} -inline ::std::string* Project::mutable_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Project::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Project.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Project::set_allocated_id(::std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.id) -} - -// string name = 2; -inline void Project::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Project::name() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.name) - return name_.GetNoArena(); -} -inline void Project::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Project.name) -} -#if LANG_CXX11 -inline void Project::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.name) -} -#endif -inline void Project::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.name) -} -inline void Project::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.name) -} -inline ::std::string* Project::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Project::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Project.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Project::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.name) -} - -// repeated .flyteidl.admin.Domain domains = 3; -inline int Project::domains_size() const { - return domains_.size(); -} -inline void Project::clear_domains() { - domains_.Clear(); -} -inline ::flyteidl::admin::Domain* Project::mutable_domains(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.domains) - return domains_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >* -Project::mutable_domains() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Project.domains) - return &domains_; -} -inline const ::flyteidl::admin::Domain& Project::domains(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.domains) - return domains_.Get(index); -} -inline ::flyteidl::admin::Domain* Project::add_domains() { - // @@protoc_insertion_point(field_add:flyteidl.admin.Project.domains) - return domains_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Domain >& -Project::domains() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Project.domains) - return domains_; -} - -// string description = 4; -inline void Project::clear_description() { - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Project::description() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.description) - return description_.GetNoArena(); -} -inline void Project::set_description(const ::std::string& value) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Project.description) -} -#if LANG_CXX11 -inline void Project::set_description(::std::string&& value) { - - description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Project.description) -} -#endif -inline void Project::set_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Project.description) -} -inline void Project::set_description(const char* value, size_t size) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Project.description) -} -inline ::std::string* Project::mutable_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.description) - return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Project::release_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Project.description) - - return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Project::set_allocated_description(::std::string* description) { - if (description != nullptr) { - - } else { - - } - description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.description) -} - -// .flyteidl.admin.Labels labels = 5; -inline bool Project::has_labels() const { - return this != internal_default_instance() && labels_ != nullptr; -} -inline const ::flyteidl::admin::Labels& Project::labels() const { - const ::flyteidl::admin::Labels* p = labels_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.labels) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Labels_default_instance_); -} -inline ::flyteidl::admin::Labels* Project::release_labels() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Project.labels) - - ::flyteidl::admin::Labels* temp = labels_; - labels_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Labels* Project::mutable_labels() { - - if (labels_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Labels>(GetArenaNoVirtual()); - labels_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Project.labels) - return labels_; -} -inline void Project::set_allocated_labels(::flyteidl::admin::Labels* labels) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(labels_); - } - if (labels) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - labels = ::google::protobuf::internal::GetOwnedMessage( - message_arena, labels, submessage_arena); - } - - } else { - - } - labels_ = labels; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Project.labels) -} - -// .flyteidl.admin.Project.ProjectState state = 6; -inline void Project::clear_state() { - state_ = 0; -} -inline ::flyteidl::admin::Project_ProjectState Project::state() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Project.state) - return static_cast< ::flyteidl::admin::Project_ProjectState >(state_); -} -inline void Project::set_state(::flyteidl::admin::Project_ProjectState value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.Project.state) -} - -// ------------------------------------------------------------------- - -// Projects - -// repeated .flyteidl.admin.Project projects = 1; -inline int Projects::projects_size() const { - return projects_.size(); -} -inline void Projects::clear_projects() { - projects_.Clear(); -} -inline ::flyteidl::admin::Project* Projects::mutable_projects(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Projects.projects) - return projects_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >* -Projects::mutable_projects() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.Projects.projects) - return &projects_; -} -inline const ::flyteidl::admin::Project& Projects::projects(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Projects.projects) - return projects_.Get(index); -} -inline ::flyteidl::admin::Project* Projects::add_projects() { - // @@protoc_insertion_point(field_add:flyteidl.admin.Projects.projects) - return projects_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Project >& -Projects::projects() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.Projects.projects) - return projects_; -} - -// string token = 2; -inline void Projects::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Projects::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Projects.token) - return token_.GetNoArena(); -} -inline void Projects::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Projects.token) -} -#if LANG_CXX11 -inline void Projects::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Projects.token) -} -#endif -inline void Projects::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Projects.token) -} -inline void Projects::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Projects.token) -} -inline ::std::string* Projects::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Projects.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Projects::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Projects.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Projects::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Projects.token) -} - -// ------------------------------------------------------------------- - -// ProjectListRequest - -// uint32 limit = 1; -inline void ProjectListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 ProjectListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.limit) - return limit_; -} -inline void ProjectListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.limit) -} - -// string token = 2; -inline void ProjectListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.token) - return token_.GetNoArena(); -} -inline void ProjectListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.token) -} -#if LANG_CXX11 -inline void ProjectListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectListRequest.token) -} -#endif -inline void ProjectListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectListRequest.token) -} -inline void ProjectListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectListRequest.token) -} -inline ::std::string* ProjectListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.token) -} - -// string filters = 3; -inline void ProjectListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.filters) - return filters_.GetNoArena(); -} -inline void ProjectListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectListRequest.filters) -} -#if LANG_CXX11 -inline void ProjectListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectListRequest.filters) -} -#endif -inline void ProjectListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectListRequest.filters) -} -inline void ProjectListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectListRequest.filters) -} -inline ::std::string* ProjectListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 4; -inline bool ProjectListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& ProjectListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* ProjectListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* ProjectListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectListRequest.sort_by) - return sort_by_; -} -inline void ProjectListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectListRequest.sort_by) -} - -// ------------------------------------------------------------------- - -// ProjectRegisterRequest - -// .flyteidl.admin.Project project = 1; -inline bool ProjectRegisterRequest::has_project() const { - return this != internal_default_instance() && project_ != nullptr; -} -inline void ProjectRegisterRequest::clear_project() { - if (GetArenaNoVirtual() == nullptr && project_ != nullptr) { - delete project_; - } - project_ = nullptr; -} -inline const ::flyteidl::admin::Project& ProjectRegisterRequest::project() const { - const ::flyteidl::admin::Project* p = project_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectRegisterRequest.project) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Project_default_instance_); -} -inline ::flyteidl::admin::Project* ProjectRegisterRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectRegisterRequest.project) - - ::flyteidl::admin::Project* temp = project_; - project_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Project* ProjectRegisterRequest::mutable_project() { - - if (project_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Project>(GetArenaNoVirtual()); - project_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectRegisterRequest.project) - return project_; -} -inline void ProjectRegisterRequest::set_allocated_project(::flyteidl::admin::Project* project) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete project_; - } - if (project) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - project = ::google::protobuf::internal::GetOwnedMessage( - message_arena, project, submessage_arena); - } - - } else { - - } - project_ = project; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectRegisterRequest.project) -} - -// ------------------------------------------------------------------- - -// ProjectRegisterResponse - -// ------------------------------------------------------------------- - -// ProjectUpdateResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::Project_ProjectState> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::Project_ProjectState>() { - return ::flyteidl::admin::Project_ProjectState_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc deleted file mode 100644 index ecf7b1271b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project_attributes.proto - -#include "flyteidl/admin/project_attributes.pb.h" -#include "flyteidl/admin/project_attributes.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h deleted file mode 100644 index 8957c5cb16..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project_attributes.proto -#ifndef GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED - -#include "flyteidl/admin/project_attributes.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fproject_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc deleted file mode 100644 index ad78bb68cf..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.cc +++ /dev/null @@ -1,2361 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_attributes.proto - -#include "flyteidl/admin/project_attributes.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -namespace flyteidl { -namespace admin { -class ProjectAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributes_default_instance_; -class ProjectAttributesUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesUpdateRequest_default_instance_; -class ProjectAttributesUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesUpdateResponse_default_instance_; -class ProjectAttributesGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesGetRequest_default_instance_; -class ProjectAttributesGetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesGetResponse_default_instance_; -class ProjectAttributesDeleteRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesDeleteRequest_default_instance_; -class ProjectAttributesDeleteResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectAttributesDeleteResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributes_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { - &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { - &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base,}}; - -static void InitDefaultsProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesGetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesGetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, { - &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base,}}; - -static void InitDefaultsProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesDeleteRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesDeleteRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesDeleteRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectAttributesDeleteResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectAttributesDeleteResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectAttributesDeleteResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[7]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributes, matching_attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateRequest, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesGetResponse, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectAttributesDeleteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::ProjectAttributes)}, - { 7, -1, sizeof(::flyteidl::admin::ProjectAttributesUpdateRequest)}, - { 13, -1, sizeof(::flyteidl::admin::ProjectAttributesUpdateResponse)}, - { 18, -1, sizeof(::flyteidl::admin::ProjectAttributesGetRequest)}, - { 25, -1, sizeof(::flyteidl::admin::ProjectAttributesGetResponse)}, - { 31, -1, sizeof(::flyteidl::admin::ProjectAttributesDeleteRequest)}, - { 38, -1, sizeof(::flyteidl::admin::ProjectAttributesDeleteResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_ProjectAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesDeleteRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectAttributesDeleteResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, "flyteidl/admin/project_attributes.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fattributes_2eproto[] = - "\n\'flyteidl/admin/project_attributes.prot" - "o\022\016flyteidl.admin\032\'flyteidl/admin/matcha" - "ble_resource.proto\"e\n\021ProjectAttributes\022" - "\017\n\007project\030\001 \001(\t\022\?\n\023matching_attributes\030" - "\002 \001(\0132\".flyteidl.admin.MatchingAttribute" - "s\"W\n\036ProjectAttributesUpdateRequest\0225\n\na" - "ttributes\030\001 \001(\0132!.flyteidl.admin.Project" - "Attributes\"!\n\037ProjectAttributesUpdateRes" - "ponse\"h\n\033ProjectAttributesGetRequest\022\017\n\007" - "project\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.f" - "lyteidl.admin.MatchableResource\"U\n\034Proje" - "ctAttributesGetResponse\0225\n\nattributes\030\001 " - "\001(\0132!.flyteidl.admin.ProjectAttributes\"k" - "\n\036ProjectAttributesDeleteRequest\022\017\n\007proj" - "ect\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.flyte" - "idl.admin.MatchableResource\"!\n\037ProjectAt" - "tributesDeleteResponseB=Z;github.com/fly" - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" - "adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fproject_5fattributes_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fattributes_2eproto, - "flyteidl/admin/project_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto, 733, -}; - -void AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void ProjectAttributes::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( - ::flyteidl::admin::MatchingAttributes::internal_default_instance()); -} -class ProjectAttributes::HasBitSetters { - public: - static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const ProjectAttributes* msg); -}; - -const ::flyteidl::admin::MatchingAttributes& -ProjectAttributes::HasBitSetters::matching_attributes(const ProjectAttributes* msg) { - return *msg->matching_attributes_; -} -void ProjectAttributes::clear_matching_attributes() { - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectAttributes::kProjectFieldNumber; -const int ProjectAttributes::kMatchingAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributes::ProjectAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributes) -} -ProjectAttributes::ProjectAttributes(const ProjectAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.has_matching_attributes()) { - matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); - } else { - matching_attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributes) -} - -void ProjectAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - matching_attributes_ = nullptr; -} - -ProjectAttributes::~ProjectAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributes) - SharedDtor(); -} - -void ProjectAttributes::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete matching_attributes_; -} - -void ProjectAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributes& ProjectAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributes_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributes::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributes.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchingAttributes matching_attributes = 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::MatchingAttributes::_InternalParse; - object = msg->mutable_matching_attributes(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectAttributes::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.ProjectAttributes) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectAttributes.project")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_matching_attributes())); - } 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.ProjectAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributes.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 2; - if (this->has_matching_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::matching_attributes(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.ProjectAttributes) -} - -::google::protobuf::uint8* ProjectAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributes.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 2; - if (this->has_matching_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::matching_attributes(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.ProjectAttributes) - return target; -} - -size_t ProjectAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributes) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 2; - if (this->has_matching_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *matching_attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributes) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributes) - MergeFrom(*source); - } -} - -void ProjectAttributes::MergeFrom(const ProjectAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.has_matching_attributes()) { - mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); - } -} - -void ProjectAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributes::CopyFrom(const ProjectAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributes::IsInitialized() const { - return true; -} - -void ProjectAttributes::Swap(ProjectAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributes::InternalSwap(ProjectAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(matching_attributes_, other->matching_attributes_); -} - -::google::protobuf::Metadata ProjectAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectAttributes*>( - ::flyteidl::admin::ProjectAttributes::internal_default_instance()); -} -class ProjectAttributesUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::admin::ProjectAttributes& attributes(const ProjectAttributesUpdateRequest* msg); -}; - -const ::flyteidl::admin::ProjectAttributes& -ProjectAttributesUpdateRequest::HasBitSetters::attributes(const ProjectAttributesUpdateRequest* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectAttributesUpdateRequest::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesUpdateRequest::ProjectAttributesUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesUpdateRequest) -} -ProjectAttributesUpdateRequest::ProjectAttributesUpdateRequest(const ProjectAttributesUpdateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::ProjectAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesUpdateRequest) -} - -void ProjectAttributesUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -ProjectAttributesUpdateRequest::~ProjectAttributesUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesUpdateRequest) - SharedDtor(); -} - -void ProjectAttributesUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void ProjectAttributesUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesUpdateRequest& ProjectAttributesUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesUpdateRequest::_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.ProjectAttributes attributes = 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::ProjectAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 ProjectAttributesUpdateRequest::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.ProjectAttributesUpdateRequest) - 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.ProjectAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.ProjectAttributesUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.ProjectAttributesUpdateRequest) -} - -::google::protobuf::uint8* ProjectAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.ProjectAttributesUpdateRequest) - return target; -} - -size_t ProjectAttributesUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesUpdateRequest) - 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.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesUpdateRequest) - MergeFrom(*source); - } -} - -void ProjectAttributesUpdateRequest::MergeFrom(const ProjectAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::ProjectAttributes::MergeFrom(from.attributes()); - } -} - -void ProjectAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesUpdateRequest::CopyFrom(const ProjectAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesUpdateRequest::IsInitialized() const { - return true; -} - -void ProjectAttributesUpdateRequest::Swap(ProjectAttributesUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesUpdateRequest::InternalSwap(ProjectAttributesUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata ProjectAttributesUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesUpdateResponse::InitAsDefaultInstance() { -} -class ProjectAttributesUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesUpdateResponse::ProjectAttributesUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesUpdateResponse) -} -ProjectAttributesUpdateResponse::ProjectAttributesUpdateResponse(const ProjectAttributesUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesUpdateResponse) -} - -void ProjectAttributesUpdateResponse::SharedCtor() { -} - -ProjectAttributesUpdateResponse::~ProjectAttributesUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesUpdateResponse) - SharedDtor(); -} - -void ProjectAttributesUpdateResponse::SharedDtor() { -} - -void ProjectAttributesUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesUpdateResponse& ProjectAttributesUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectAttributesUpdateResponse::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.ProjectAttributesUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesUpdateResponse) -} - -::google::protobuf::uint8* ProjectAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectAttributesUpdateResponse) - return target; -} - -size_t ProjectAttributesUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesUpdateResponse) - MergeFrom(*source); - } -} - -void ProjectAttributesUpdateResponse::MergeFrom(const ProjectAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesUpdateResponse::CopyFrom(const ProjectAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesUpdateResponse::IsInitialized() const { - return true; -} - -void ProjectAttributesUpdateResponse::Swap(ProjectAttributesUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesUpdateResponse::InternalSwap(ProjectAttributesUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectAttributesUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesGetRequest::InitAsDefaultInstance() { -} -class ProjectAttributesGetRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectAttributesGetRequest::kProjectFieldNumber; -const int ProjectAttributesGetRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesGetRequest::ProjectAttributesGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesGetRequest) -} -ProjectAttributesGetRequest::ProjectAttributesGetRequest(const ProjectAttributesGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesGetRequest) -} - -void ProjectAttributesGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -ProjectAttributesGetRequest::~ProjectAttributesGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesGetRequest) - SharedDtor(); -} - -void ProjectAttributesGetRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ProjectAttributesGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesGetRequest& ProjectAttributesGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesGetRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesGetRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributesGetRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectAttributesGetRequest::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.ProjectAttributesGetRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectAttributesGetRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.ProjectAttributesGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributesGetRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesGetRequest) -} - -::google::protobuf::uint8* ProjectAttributesGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributesGetRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->resource_type(), 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.ProjectAttributesGetRequest) - return target; -} - -size_t ProjectAttributesGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesGetRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesGetRequest) - MergeFrom(*source); - } -} - -void ProjectAttributesGetRequest::MergeFrom(const ProjectAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void ProjectAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesGetRequest::CopyFrom(const ProjectAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesGetRequest::IsInitialized() const { - return true; -} - -void ProjectAttributesGetRequest::Swap(ProjectAttributesGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesGetRequest::InternalSwap(ProjectAttributesGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata ProjectAttributesGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesGetResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectAttributes*>( - ::flyteidl::admin::ProjectAttributes::internal_default_instance()); -} -class ProjectAttributesGetResponse::HasBitSetters { - public: - static const ::flyteidl::admin::ProjectAttributes& attributes(const ProjectAttributesGetResponse* msg); -}; - -const ::flyteidl::admin::ProjectAttributes& -ProjectAttributesGetResponse::HasBitSetters::attributes(const ProjectAttributesGetResponse* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectAttributesGetResponse::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesGetResponse::ProjectAttributesGetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesGetResponse) -} -ProjectAttributesGetResponse::ProjectAttributesGetResponse(const ProjectAttributesGetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::ProjectAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesGetResponse) -} - -void ProjectAttributesGetResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -ProjectAttributesGetResponse::~ProjectAttributesGetResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesGetResponse) - SharedDtor(); -} - -void ProjectAttributesGetResponse::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void ProjectAttributesGetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesGetResponse& ProjectAttributesGetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesGetResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesGetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesGetResponse::_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.ProjectAttributes attributes = 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::ProjectAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 ProjectAttributesGetResponse::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.ProjectAttributesGetResponse) - 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.ProjectAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.ProjectAttributesGetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesGetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesGetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.ProjectAttributesGetResponse) -} - -::google::protobuf::uint8* ProjectAttributesGetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.ProjectAttributesGetResponse) - return target; -} - -size_t ProjectAttributesGetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesGetResponse) - 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.admin.ProjectAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesGetResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesGetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesGetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesGetResponse) - MergeFrom(*source); - } -} - -void ProjectAttributesGetResponse::MergeFrom(const ProjectAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesGetResponse) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::ProjectAttributes::MergeFrom(from.attributes()); - } -} - -void ProjectAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesGetResponse::CopyFrom(const ProjectAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesGetResponse::IsInitialized() const { - return true; -} - -void ProjectAttributesGetResponse::Swap(ProjectAttributesGetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesGetResponse::InternalSwap(ProjectAttributesGetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata ProjectAttributesGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesDeleteRequest::InitAsDefaultInstance() { -} -class ProjectAttributesDeleteRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectAttributesDeleteRequest::kProjectFieldNumber; -const int ProjectAttributesDeleteRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesDeleteRequest::ProjectAttributesDeleteRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesDeleteRequest) -} -ProjectAttributesDeleteRequest::ProjectAttributesDeleteRequest(const ProjectAttributesDeleteRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesDeleteRequest) -} - -void ProjectAttributesDeleteRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -ProjectAttributesDeleteRequest::~ProjectAttributesDeleteRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesDeleteRequest) - SharedDtor(); -} - -void ProjectAttributesDeleteRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ProjectAttributesDeleteRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesDeleteRequest& ProjectAttributesDeleteRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesDeleteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesDeleteRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectAttributesDeleteRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectAttributesDeleteRequest::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.ProjectAttributesDeleteRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectAttributesDeleteRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.ProjectAttributesDeleteRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesDeleteRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesDeleteRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributesDeleteRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesDeleteRequest) -} - -::google::protobuf::uint8* ProjectAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectAttributesDeleteRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->resource_type(), 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.ProjectAttributesDeleteRequest) - return target; -} - -size_t ProjectAttributesDeleteRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesDeleteRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // .flyteidl.admin.MatchableResource resource_type = 2; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesDeleteRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesDeleteRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesDeleteRequest) - MergeFrom(*source); - } -} - -void ProjectAttributesDeleteRequest::MergeFrom(const ProjectAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void ProjectAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesDeleteRequest::CopyFrom(const ProjectAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesDeleteRequest::IsInitialized() const { - return true; -} - -void ProjectAttributesDeleteRequest::Swap(ProjectAttributesDeleteRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesDeleteRequest::InternalSwap(ProjectAttributesDeleteRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata ProjectAttributesDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectAttributesDeleteResponse::InitAsDefaultInstance() { -} -class ProjectAttributesDeleteResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectAttributesDeleteResponse::ProjectAttributesDeleteResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectAttributesDeleteResponse) -} -ProjectAttributesDeleteResponse::ProjectAttributesDeleteResponse(const ProjectAttributesDeleteResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectAttributesDeleteResponse) -} - -void ProjectAttributesDeleteResponse::SharedCtor() { -} - -ProjectAttributesDeleteResponse::~ProjectAttributesDeleteResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectAttributesDeleteResponse) - SharedDtor(); -} - -void ProjectAttributesDeleteResponse::SharedDtor() { -} - -void ProjectAttributesDeleteResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectAttributesDeleteResponse& ProjectAttributesDeleteResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectAttributesDeleteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectAttributesDeleteResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectAttributesDeleteResponse::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.ProjectAttributesDeleteResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectAttributesDeleteResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectAttributesDeleteResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectAttributesDeleteResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectAttributesDeleteResponse) -} - -::google::protobuf::uint8* ProjectAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectAttributesDeleteResponse) - return target; -} - -size_t ProjectAttributesDeleteResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectAttributesDeleteResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectAttributesDeleteResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectAttributesDeleteResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectAttributesDeleteResponse) - MergeFrom(*source); - } -} - -void ProjectAttributesDeleteResponse::MergeFrom(const ProjectAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectAttributesDeleteResponse::CopyFrom(const ProjectAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectAttributesDeleteResponse::IsInitialized() const { - return true; -} - -void ProjectAttributesDeleteResponse::Swap(ProjectAttributesDeleteResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectAttributesDeleteResponse::InternalSwap(ProjectAttributesDeleteResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectAttributesDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesGetResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesGetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesDeleteRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesDeleteRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectAttributesDeleteResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectAttributesDeleteResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h deleted file mode 100644 index 3c859a5e4a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_attributes.pb.h +++ /dev/null @@ -1,1308 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_attributes.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/matchable_resource.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fattributes_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto(); -namespace flyteidl { -namespace admin { -class ProjectAttributes; -class ProjectAttributesDefaultTypeInternal; -extern ProjectAttributesDefaultTypeInternal _ProjectAttributes_default_instance_; -class ProjectAttributesDeleteRequest; -class ProjectAttributesDeleteRequestDefaultTypeInternal; -extern ProjectAttributesDeleteRequestDefaultTypeInternal _ProjectAttributesDeleteRequest_default_instance_; -class ProjectAttributesDeleteResponse; -class ProjectAttributesDeleteResponseDefaultTypeInternal; -extern ProjectAttributesDeleteResponseDefaultTypeInternal _ProjectAttributesDeleteResponse_default_instance_; -class ProjectAttributesGetRequest; -class ProjectAttributesGetRequestDefaultTypeInternal; -extern ProjectAttributesGetRequestDefaultTypeInternal _ProjectAttributesGetRequest_default_instance_; -class ProjectAttributesGetResponse; -class ProjectAttributesGetResponseDefaultTypeInternal; -extern ProjectAttributesGetResponseDefaultTypeInternal _ProjectAttributesGetResponse_default_instance_; -class ProjectAttributesUpdateRequest; -class ProjectAttributesUpdateRequestDefaultTypeInternal; -extern ProjectAttributesUpdateRequestDefaultTypeInternal _ProjectAttributesUpdateRequest_default_instance_; -class ProjectAttributesUpdateResponse; -class ProjectAttributesUpdateResponseDefaultTypeInternal; -extern ProjectAttributesUpdateResponseDefaultTypeInternal _ProjectAttributesUpdateResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::ProjectAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesDeleteRequest>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesDeleteResponse>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesGetRequest>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesGetResponse>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesUpdateRequest>(Arena*); -template<> ::flyteidl::admin::ProjectAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectAttributesUpdateResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class ProjectAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributes) */ { - public: - ProjectAttributes(); - virtual ~ProjectAttributes(); - - ProjectAttributes(const ProjectAttributes& from); - - inline ProjectAttributes& operator=(const ProjectAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributes(ProjectAttributes&& from) noexcept - : ProjectAttributes() { - *this = ::std::move(from); - } - - inline ProjectAttributes& operator=(ProjectAttributes&& 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 ProjectAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributes* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ProjectAttributes* other); - friend void swap(ProjectAttributes& a, ProjectAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributes* 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 ProjectAttributes& from); - void MergeFrom(const ProjectAttributes& 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(ProjectAttributes* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // .flyteidl.admin.MatchingAttributes matching_attributes = 2; - bool has_matching_attributes() const; - void clear_matching_attributes(); - static const int kMatchingAttributesFieldNumber = 2; - const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; - ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); - ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); - void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::flyteidl::admin::MatchingAttributes* matching_attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesUpdateRequest) */ { - public: - ProjectAttributesUpdateRequest(); - virtual ~ProjectAttributesUpdateRequest(); - - ProjectAttributesUpdateRequest(const ProjectAttributesUpdateRequest& from); - - inline ProjectAttributesUpdateRequest& operator=(const ProjectAttributesUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesUpdateRequest(ProjectAttributesUpdateRequest&& from) noexcept - : ProjectAttributesUpdateRequest() { - *this = ::std::move(from); - } - - inline ProjectAttributesUpdateRequest& operator=(ProjectAttributesUpdateRequest&& 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 ProjectAttributesUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ProjectAttributesUpdateRequest* other); - friend void swap(ProjectAttributesUpdateRequest& a, ProjectAttributesUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesUpdateRequest* 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 ProjectAttributesUpdateRequest& from); - void MergeFrom(const ProjectAttributesUpdateRequest& 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(ProjectAttributesUpdateRequest* 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.ProjectAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::ProjectAttributes& attributes() const; - ::flyteidl::admin::ProjectAttributes* release_attributes(); - ::flyteidl::admin::ProjectAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::ProjectAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesUpdateResponse) */ { - public: - ProjectAttributesUpdateResponse(); - virtual ~ProjectAttributesUpdateResponse(); - - ProjectAttributesUpdateResponse(const ProjectAttributesUpdateResponse& from); - - inline ProjectAttributesUpdateResponse& operator=(const ProjectAttributesUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesUpdateResponse(ProjectAttributesUpdateResponse&& from) noexcept - : ProjectAttributesUpdateResponse() { - *this = ::std::move(from); - } - - inline ProjectAttributesUpdateResponse& operator=(ProjectAttributesUpdateResponse&& 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 ProjectAttributesUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(ProjectAttributesUpdateResponse* other); - friend void swap(ProjectAttributesUpdateResponse& a, ProjectAttributesUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesUpdateResponse* 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 ProjectAttributesUpdateResponse& from); - void MergeFrom(const ProjectAttributesUpdateResponse& 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(ProjectAttributesUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesGetRequest) */ { - public: - ProjectAttributesGetRequest(); - virtual ~ProjectAttributesGetRequest(); - - ProjectAttributesGetRequest(const ProjectAttributesGetRequest& from); - - inline ProjectAttributesGetRequest& operator=(const ProjectAttributesGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesGetRequest(ProjectAttributesGetRequest&& from) noexcept - : ProjectAttributesGetRequest() { - *this = ::std::move(from); - } - - inline ProjectAttributesGetRequest& operator=(ProjectAttributesGetRequest&& 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 ProjectAttributesGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesGetRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ProjectAttributesGetRequest* other); - friend void swap(ProjectAttributesGetRequest& a, ProjectAttributesGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesGetRequest* 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 ProjectAttributesGetRequest& from); - void MergeFrom(const ProjectAttributesGetRequest& 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(ProjectAttributesGetRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // .flyteidl.admin.MatchableResource resource_type = 2; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 2; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesGetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesGetResponse) */ { - public: - ProjectAttributesGetResponse(); - virtual ~ProjectAttributesGetResponse(); - - ProjectAttributesGetResponse(const ProjectAttributesGetResponse& from); - - inline ProjectAttributesGetResponse& operator=(const ProjectAttributesGetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesGetResponse(ProjectAttributesGetResponse&& from) noexcept - : ProjectAttributesGetResponse() { - *this = ::std::move(from); - } - - inline ProjectAttributesGetResponse& operator=(ProjectAttributesGetResponse&& 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 ProjectAttributesGetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesGetResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesGetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(ProjectAttributesGetResponse* other); - friend void swap(ProjectAttributesGetResponse& a, ProjectAttributesGetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesGetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesGetResponse* 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 ProjectAttributesGetResponse& from); - void MergeFrom(const ProjectAttributesGetResponse& 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(ProjectAttributesGetResponse* 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.ProjectAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::ProjectAttributes& attributes() const; - ::flyteidl::admin::ProjectAttributes* release_attributes(); - ::flyteidl::admin::ProjectAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::ProjectAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesDeleteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesDeleteRequest) */ { - public: - ProjectAttributesDeleteRequest(); - virtual ~ProjectAttributesDeleteRequest(); - - ProjectAttributesDeleteRequest(const ProjectAttributesDeleteRequest& from); - - inline ProjectAttributesDeleteRequest& operator=(const ProjectAttributesDeleteRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesDeleteRequest(ProjectAttributesDeleteRequest&& from) noexcept - : ProjectAttributesDeleteRequest() { - *this = ::std::move(from); - } - - inline ProjectAttributesDeleteRequest& operator=(ProjectAttributesDeleteRequest&& 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 ProjectAttributesDeleteRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesDeleteRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesDeleteRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ProjectAttributesDeleteRequest* other); - friend void swap(ProjectAttributesDeleteRequest& a, ProjectAttributesDeleteRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesDeleteRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesDeleteRequest* 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 ProjectAttributesDeleteRequest& from); - void MergeFrom(const ProjectAttributesDeleteRequest& 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(ProjectAttributesDeleteRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // .flyteidl.admin.MatchableResource resource_type = 2; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 2; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectAttributesDeleteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectAttributesDeleteResponse) */ { - public: - ProjectAttributesDeleteResponse(); - virtual ~ProjectAttributesDeleteResponse(); - - ProjectAttributesDeleteResponse(const ProjectAttributesDeleteResponse& from); - - inline ProjectAttributesDeleteResponse& operator=(const ProjectAttributesDeleteResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectAttributesDeleteResponse(ProjectAttributesDeleteResponse&& from) noexcept - : ProjectAttributesDeleteResponse() { - *this = ::std::move(from); - } - - inline ProjectAttributesDeleteResponse& operator=(ProjectAttributesDeleteResponse&& 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 ProjectAttributesDeleteResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectAttributesDeleteResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectAttributesDeleteResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ProjectAttributesDeleteResponse* other); - friend void swap(ProjectAttributesDeleteResponse& a, ProjectAttributesDeleteResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectAttributesDeleteResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectAttributesDeleteResponse* 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 ProjectAttributesDeleteResponse& from); - void MergeFrom(const ProjectAttributesDeleteResponse& 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(ProjectAttributesDeleteResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fattributes_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ProjectAttributes - -// string project = 1; -inline void ProjectAttributes::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectAttributes::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributes.project) - return project_.GetNoArena(); -} -inline void ProjectAttributes::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributes.project) -} -#if LANG_CXX11 -inline void ProjectAttributes::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributes.project) -} -#endif -inline void ProjectAttributes::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributes.project) -} -inline void ProjectAttributes::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributes.project) -} -inline ::std::string* ProjectAttributes::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributes.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectAttributes::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributes.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectAttributes::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributes.project) -} - -// .flyteidl.admin.MatchingAttributes matching_attributes = 2; -inline bool ProjectAttributes::has_matching_attributes() const { - return this != internal_default_instance() && matching_attributes_ != nullptr; -} -inline const ::flyteidl::admin::MatchingAttributes& ProjectAttributes::matching_attributes() const { - const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributes.matching_attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_MatchingAttributes_default_instance_); -} -inline ::flyteidl::admin::MatchingAttributes* ProjectAttributes::release_matching_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributes.matching_attributes) - - ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; - matching_attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::MatchingAttributes* ProjectAttributes::mutable_matching_attributes() { - - if (matching_attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); - matching_attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributes.matching_attributes) - return matching_attributes_; -} -inline void ProjectAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); - } - if (matching_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - matching_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, matching_attributes, submessage_arena); - } - - } else { - - } - matching_attributes_ = matching_attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributes.matching_attributes) -} - -// ------------------------------------------------------------------- - -// ProjectAttributesUpdateRequest - -// .flyteidl.admin.ProjectAttributes attributes = 1; -inline bool ProjectAttributesUpdateRequest::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void ProjectAttributesUpdateRequest::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::ProjectAttributes& ProjectAttributesUpdateRequest::attributes() const { - const ::flyteidl::admin::ProjectAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ProjectAttributes_default_instance_); -} -inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesUpdateRequest::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) - - ::flyteidl::admin::ProjectAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesUpdateRequest::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) - return attributes_; -} -inline void ProjectAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesUpdateRequest.attributes) -} - -// ------------------------------------------------------------------- - -// ProjectAttributesUpdateResponse - -// ------------------------------------------------------------------- - -// ProjectAttributesGetRequest - -// string project = 1; -inline void ProjectAttributesGetRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectAttributesGetRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetRequest.project) - return project_.GetNoArena(); -} -inline void ProjectAttributesGetRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesGetRequest.project) -} -#if LANG_CXX11 -inline void ProjectAttributesGetRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributesGetRequest.project) -} -#endif -inline void ProjectAttributesGetRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributesGetRequest.project) -} -inline void ProjectAttributesGetRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributesGetRequest.project) -} -inline ::std::string* ProjectAttributesGetRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesGetRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectAttributesGetRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesGetRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectAttributesGetRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesGetRequest.project) -} - -// .flyteidl.admin.MatchableResource resource_type = 2; -inline void ProjectAttributesGetRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource ProjectAttributesGetRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void ProjectAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesGetRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// ProjectAttributesGetResponse - -// .flyteidl.admin.ProjectAttributes attributes = 1; -inline bool ProjectAttributesGetResponse::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void ProjectAttributesGetResponse::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::ProjectAttributes& ProjectAttributesGetResponse::attributes() const { - const ::flyteidl::admin::ProjectAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesGetResponse.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ProjectAttributes_default_instance_); -} -inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesGetResponse::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesGetResponse.attributes) - - ::flyteidl::admin::ProjectAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ProjectAttributes* ProjectAttributesGetResponse::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesGetResponse.attributes) - return attributes_; -} -inline void ProjectAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::ProjectAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesGetResponse.attributes) -} - -// ------------------------------------------------------------------- - -// ProjectAttributesDeleteRequest - -// string project = 1; -inline void ProjectAttributesDeleteRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectAttributesDeleteRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesDeleteRequest.project) - return project_.GetNoArena(); -} -inline void ProjectAttributesDeleteRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesDeleteRequest.project) -} -#if LANG_CXX11 -inline void ProjectAttributesDeleteRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectAttributesDeleteRequest.project) -} -#endif -inline void ProjectAttributesDeleteRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectAttributesDeleteRequest.project) -} -inline void ProjectAttributesDeleteRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectAttributesDeleteRequest.project) -} -inline ::std::string* ProjectAttributesDeleteRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectAttributesDeleteRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectAttributesDeleteRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectAttributesDeleteRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectAttributesDeleteRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectAttributesDeleteRequest.project) -} - -// .flyteidl.admin.MatchableResource resource_type = 2; -inline void ProjectAttributesDeleteRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource ProjectAttributesDeleteRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectAttributesDeleteRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void ProjectAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectAttributesDeleteRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// ProjectAttributesDeleteResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc deleted file mode 100644 index e9326ab1fc..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project_domain_attributes.proto - -#include "flyteidl/admin/project_domain_attributes.pb.h" -#include "flyteidl/admin/project_domain_attributes.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h deleted file mode 100644 index 13b9f39b53..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/project_domain_attributes.proto -#ifndef GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED - -#include "flyteidl/admin/project_domain_attributes.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc deleted file mode 100644 index 6de4670235..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.cc +++ /dev/null @@ -1,2586 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_domain_attributes.proto - -#include "flyteidl/admin/project_domain_attributes.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -namespace flyteidl { -namespace admin { -class ProjectDomainAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributes_default_instance_; -class ProjectDomainAttributesUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesUpdateRequest_default_instance_; -class ProjectDomainAttributesUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesUpdateResponse_default_instance_; -class ProjectDomainAttributesGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesGetRequest_default_instance_; -class ProjectDomainAttributesGetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesGetResponse_default_instance_; -class ProjectDomainAttributesDeleteRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesDeleteRequest_default_instance_; -class ProjectDomainAttributesDeleteResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ProjectDomainAttributesDeleteResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributes_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { - &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { - &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base,}}; - -static void InitDefaultsProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesGetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesGetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, { - &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base,}}; - -static void InitDefaultsProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesDeleteRequest_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesDeleteRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesDeleteRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; - -static void InitDefaultsProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_ProjectDomainAttributesDeleteResponse_default_instance_; - new (ptr) ::flyteidl::admin::ProjectDomainAttributesDeleteResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::ProjectDomainAttributesDeleteResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[7]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributes, matching_attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateRequest, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesGetResponse, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::ProjectDomainAttributesDeleteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::ProjectDomainAttributes)}, - { 8, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesUpdateRequest)}, - { 14, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesUpdateResponse)}, - { 19, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesGetRequest)}, - { 27, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesGetResponse)}, - { 33, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesDeleteRequest)}, - { 41, -1, sizeof(::flyteidl::admin::ProjectDomainAttributesDeleteResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesDeleteRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_ProjectDomainAttributesDeleteResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, "flyteidl/admin/project_domain_attributes.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[] = - "\n.flyteidl/admin/project_domain_attribut" - "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" - "/matchable_resource.proto\"{\n\027ProjectDoma" - "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" - "\002 \001(\t\022\?\n\023matching_attributes\030\003 \001(\0132\".fly" - "teidl.admin.MatchingAttributes\"c\n$Projec" - "tDomainAttributesUpdateRequest\022;\n\nattrib" - "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" - "nAttributes\"\'\n%ProjectDomainAttributesUp" - "dateResponse\"~\n!ProjectDomainAttributesG" - "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" - "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" - "in.MatchableResource\"a\n\"ProjectDomainAtt" - "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" - ".flyteidl.admin.ProjectDomainAttributes\"" - "\201\001\n$ProjectDomainAttributesDeleteRequest" - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" - "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" - "bleResource\"\'\n%ProjectDomainAttributesDe" - "leteResponseB=Z;github.com/flyteorg/flyt" - "e/flyteidl/gen/pb-go/flyteidl/adminb\006pro" - "to3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, - "flyteidl/admin/project_domain_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, 843, -}; - -void AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void ProjectDomainAttributes::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectDomainAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( - ::flyteidl::admin::MatchingAttributes::internal_default_instance()); -} -class ProjectDomainAttributes::HasBitSetters { - public: - static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const ProjectDomainAttributes* msg); -}; - -const ::flyteidl::admin::MatchingAttributes& -ProjectDomainAttributes::HasBitSetters::matching_attributes(const ProjectDomainAttributes* msg) { - return *msg->matching_attributes_; -} -void ProjectDomainAttributes::clear_matching_attributes() { - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectDomainAttributes::kProjectFieldNumber; -const int ProjectDomainAttributes::kDomainFieldNumber; -const int ProjectDomainAttributes::kMatchingAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributes::ProjectDomainAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributes) -} -ProjectDomainAttributes::ProjectDomainAttributes(const ProjectDomainAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.has_matching_attributes()) { - matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); - } else { - matching_attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributes) -} - -void ProjectDomainAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - matching_attributes_ = nullptr; -} - -ProjectDomainAttributes::~ProjectDomainAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributes) - SharedDtor(); -} - -void ProjectDomainAttributes::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete matching_attributes_; -} - -void ProjectDomainAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributes& ProjectDomainAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributes_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributes::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributes.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributes.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; - object = msg->mutable_matching_attributes(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectDomainAttributes::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.ProjectDomainAttributes) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributes.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributes.domain")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_matching_attributes())); - } 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.ProjectDomainAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributes.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributes.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - if (this->has_matching_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::matching_attributes(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.ProjectDomainAttributes) -} - -::google::protobuf::uint8* ProjectDomainAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributes.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributes.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - if (this->has_matching_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::matching_attributes(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.ProjectDomainAttributes) - return target; -} - -size_t ProjectDomainAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributes) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - if (this->has_matching_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *matching_attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributes) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributes) - MergeFrom(*source); - } -} - -void ProjectDomainAttributes::MergeFrom(const ProjectDomainAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.has_matching_attributes()) { - mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); - } -} - -void ProjectDomainAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributes::CopyFrom(const ProjectDomainAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributes::IsInitialized() const { - return true; -} - -void ProjectDomainAttributes::Swap(ProjectDomainAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributes::InternalSwap(ProjectDomainAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(matching_attributes_, other->matching_attributes_); -} - -::google::protobuf::Metadata ProjectDomainAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectDomainAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectDomainAttributes*>( - ::flyteidl::admin::ProjectDomainAttributes::internal_default_instance()); -} -class ProjectDomainAttributesUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::admin::ProjectDomainAttributes& attributes(const ProjectDomainAttributesUpdateRequest* msg); -}; - -const ::flyteidl::admin::ProjectDomainAttributes& -ProjectDomainAttributesUpdateRequest::HasBitSetters::attributes(const ProjectDomainAttributesUpdateRequest* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectDomainAttributesUpdateRequest::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesUpdateRequest::ProjectDomainAttributesUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) -} -ProjectDomainAttributesUpdateRequest::ProjectDomainAttributesUpdateRequest(const ProjectDomainAttributesUpdateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::ProjectDomainAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) -} - -void ProjectDomainAttributesUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -ProjectDomainAttributesUpdateRequest::~ProjectDomainAttributesUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - SharedDtor(); -} - -void ProjectDomainAttributesUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void ProjectDomainAttributesUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesUpdateRequest& ProjectDomainAttributesUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesUpdateRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesUpdateRequest::_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.ProjectDomainAttributes attributes = 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::ProjectDomainAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 ProjectDomainAttributesUpdateRequest::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.ProjectDomainAttributesUpdateRequest) - 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.ProjectDomainAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.ProjectDomainAttributesUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.ProjectDomainAttributesUpdateRequest) -} - -::google::protobuf::uint8* ProjectDomainAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.ProjectDomainAttributesUpdateRequest) - return target; -} - -size_t ProjectDomainAttributesUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - 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.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesUpdateRequest::MergeFrom(const ProjectDomainAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::ProjectDomainAttributes::MergeFrom(from.attributes()); - } -} - -void ProjectDomainAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesUpdateRequest::CopyFrom(const ProjectDomainAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesUpdateRequest::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesUpdateRequest::Swap(ProjectDomainAttributesUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesUpdateRequest::InternalSwap(ProjectDomainAttributesUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata ProjectDomainAttributesUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesUpdateResponse::InitAsDefaultInstance() { -} -class ProjectDomainAttributesUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesUpdateResponse::ProjectDomainAttributesUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) -} -ProjectDomainAttributesUpdateResponse::ProjectDomainAttributesUpdateResponse(const ProjectDomainAttributesUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) -} - -void ProjectDomainAttributesUpdateResponse::SharedCtor() { -} - -ProjectDomainAttributesUpdateResponse::~ProjectDomainAttributesUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - SharedDtor(); -} - -void ProjectDomainAttributesUpdateResponse::SharedDtor() { -} - -void ProjectDomainAttributesUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesUpdateResponse& ProjectDomainAttributesUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesUpdateResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectDomainAttributesUpdateResponse::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.ProjectDomainAttributesUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesUpdateResponse) -} - -::google::protobuf::uint8* ProjectDomainAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectDomainAttributesUpdateResponse) - return target; -} - -size_t ProjectDomainAttributesUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesUpdateResponse::MergeFrom(const ProjectDomainAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectDomainAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesUpdateResponse::CopyFrom(const ProjectDomainAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesUpdateResponse::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesUpdateResponse::Swap(ProjectDomainAttributesUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesUpdateResponse::InternalSwap(ProjectDomainAttributesUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectDomainAttributesUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesGetRequest::InitAsDefaultInstance() { -} -class ProjectDomainAttributesGetRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectDomainAttributesGetRequest::kProjectFieldNumber; -const int ProjectDomainAttributesGetRequest::kDomainFieldNumber; -const int ProjectDomainAttributesGetRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesGetRequest::ProjectDomainAttributesGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesGetRequest) -} -ProjectDomainAttributesGetRequest::ProjectDomainAttributesGetRequest(const ProjectDomainAttributesGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesGetRequest) -} - -void ProjectDomainAttributesGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -ProjectDomainAttributesGetRequest::~ProjectDomainAttributesGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesGetRequest) - SharedDtor(); -} - -void ProjectDomainAttributesGetRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ProjectDomainAttributesGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesGetRequest& ProjectDomainAttributesGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesGetRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesGetRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesGetRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectDomainAttributesGetRequest::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.ProjectDomainAttributesGetRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.ProjectDomainAttributesGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesGetRequest) -} - -::google::protobuf::uint8* ProjectDomainAttributesGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesGetRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->resource_type(), 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.ProjectDomainAttributesGetRequest) - return target; -} - -size_t ProjectDomainAttributesGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesGetRequest) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesGetRequest::MergeFrom(const ProjectDomainAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void ProjectDomainAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesGetRequest::CopyFrom(const ProjectDomainAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesGetRequest::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesGetRequest::Swap(ProjectDomainAttributesGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesGetRequest::InternalSwap(ProjectDomainAttributesGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata ProjectDomainAttributesGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesGetResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_ProjectDomainAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::ProjectDomainAttributes*>( - ::flyteidl::admin::ProjectDomainAttributes::internal_default_instance()); -} -class ProjectDomainAttributesGetResponse::HasBitSetters { - public: - static const ::flyteidl::admin::ProjectDomainAttributes& attributes(const ProjectDomainAttributesGetResponse* msg); -}; - -const ::flyteidl::admin::ProjectDomainAttributes& -ProjectDomainAttributesGetResponse::HasBitSetters::attributes(const ProjectDomainAttributesGetResponse* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectDomainAttributesGetResponse::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesGetResponse::ProjectDomainAttributesGetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesGetResponse) -} -ProjectDomainAttributesGetResponse::ProjectDomainAttributesGetResponse(const ProjectDomainAttributesGetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::ProjectDomainAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesGetResponse) -} - -void ProjectDomainAttributesGetResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -ProjectDomainAttributesGetResponse::~ProjectDomainAttributesGetResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesGetResponse) - SharedDtor(); -} - -void ProjectDomainAttributesGetResponse::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void ProjectDomainAttributesGetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesGetResponse& ProjectDomainAttributesGetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesGetResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesGetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesGetResponse::_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.ProjectDomainAttributes attributes = 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::ProjectDomainAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 ProjectDomainAttributesGetResponse::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.ProjectDomainAttributesGetResponse) - 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.ProjectDomainAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.ProjectDomainAttributesGetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesGetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesGetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.ProjectDomainAttributesGetResponse) -} - -::google::protobuf::uint8* ProjectDomainAttributesGetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.ProjectDomainAttributesGetResponse) - return target; -} - -size_t ProjectDomainAttributesGetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - 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.admin.ProjectDomainAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesGetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesGetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesGetResponse) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesGetResponse::MergeFrom(const ProjectDomainAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::ProjectDomainAttributes::MergeFrom(from.attributes()); - } -} - -void ProjectDomainAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesGetResponse::CopyFrom(const ProjectDomainAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesGetResponse::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesGetResponse::Swap(ProjectDomainAttributesGetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesGetResponse::InternalSwap(ProjectDomainAttributesGetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata ProjectDomainAttributesGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesDeleteRequest::InitAsDefaultInstance() { -} -class ProjectDomainAttributesDeleteRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ProjectDomainAttributesDeleteRequest::kProjectFieldNumber; -const int ProjectDomainAttributesDeleteRequest::kDomainFieldNumber; -const int ProjectDomainAttributesDeleteRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesDeleteRequest::ProjectDomainAttributesDeleteRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) -} -ProjectDomainAttributesDeleteRequest::ProjectDomainAttributesDeleteRequest(const ProjectDomainAttributesDeleteRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) -} - -void ProjectDomainAttributesDeleteRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -ProjectDomainAttributesDeleteRequest::~ProjectDomainAttributesDeleteRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - SharedDtor(); -} - -void ProjectDomainAttributesDeleteRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ProjectDomainAttributesDeleteRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesDeleteRequest& ProjectDomainAttributesDeleteRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesDeleteRequest_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesDeleteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesDeleteRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectDomainAttributesDeleteRequest::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.ProjectDomainAttributesDeleteRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.ProjectDomainAttributesDeleteRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesDeleteRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesDeleteRequest) -} - -::google::protobuf::uint8* ProjectDomainAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->resource_type(), 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.ProjectDomainAttributesDeleteRequest) - return target; -} - -size_t ProjectDomainAttributesDeleteRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // .flyteidl.admin.MatchableResource resource_type = 3; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesDeleteRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesDeleteRequest::MergeFrom(const ProjectDomainAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void ProjectDomainAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesDeleteRequest::CopyFrom(const ProjectDomainAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesDeleteRequest::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesDeleteRequest::Swap(ProjectDomainAttributesDeleteRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesDeleteRequest::InternalSwap(ProjectDomainAttributesDeleteRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata ProjectDomainAttributesDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ProjectDomainAttributesDeleteResponse::InitAsDefaultInstance() { -} -class ProjectDomainAttributesDeleteResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ProjectDomainAttributesDeleteResponse::ProjectDomainAttributesDeleteResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) -} -ProjectDomainAttributesDeleteResponse::ProjectDomainAttributesDeleteResponse(const ProjectDomainAttributesDeleteResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) -} - -void ProjectDomainAttributesDeleteResponse::SharedCtor() { -} - -ProjectDomainAttributesDeleteResponse::~ProjectDomainAttributesDeleteResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - SharedDtor(); -} - -void ProjectDomainAttributesDeleteResponse::SharedDtor() { -} - -void ProjectDomainAttributesDeleteResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ProjectDomainAttributesDeleteResponse& ProjectDomainAttributesDeleteResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ProjectDomainAttributesDeleteResponse_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void ProjectDomainAttributesDeleteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ProjectDomainAttributesDeleteResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ProjectDomainAttributesDeleteResponse::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.ProjectDomainAttributesDeleteResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ProjectDomainAttributesDeleteResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.ProjectDomainAttributesDeleteResponse) -} - -::google::protobuf::uint8* ProjectDomainAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.ProjectDomainAttributesDeleteResponse) - return target; -} - -size_t ProjectDomainAttributesDeleteResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ProjectDomainAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - const ProjectDomainAttributesDeleteResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - MergeFrom(*source); - } -} - -void ProjectDomainAttributesDeleteResponse::MergeFrom(const ProjectDomainAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ProjectDomainAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ProjectDomainAttributesDeleteResponse::CopyFrom(const ProjectDomainAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ProjectDomainAttributesDeleteResponse::IsInitialized() const { - return true; -} - -void ProjectDomainAttributesDeleteResponse::Swap(ProjectDomainAttributesDeleteResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ProjectDomainAttributesDeleteResponse::InternalSwap(ProjectDomainAttributesDeleteResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ProjectDomainAttributesDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesGetResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesGetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h deleted file mode 100644 index 3ad739b9dd..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/project_domain_attributes.pb.h +++ /dev/null @@ -1,1512 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_domain_attributes.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/matchable_resource.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto(); -namespace flyteidl { -namespace admin { -class ProjectDomainAttributes; -class ProjectDomainAttributesDefaultTypeInternal; -extern ProjectDomainAttributesDefaultTypeInternal _ProjectDomainAttributes_default_instance_; -class ProjectDomainAttributesDeleteRequest; -class ProjectDomainAttributesDeleteRequestDefaultTypeInternal; -extern ProjectDomainAttributesDeleteRequestDefaultTypeInternal _ProjectDomainAttributesDeleteRequest_default_instance_; -class ProjectDomainAttributesDeleteResponse; -class ProjectDomainAttributesDeleteResponseDefaultTypeInternal; -extern ProjectDomainAttributesDeleteResponseDefaultTypeInternal _ProjectDomainAttributesDeleteResponse_default_instance_; -class ProjectDomainAttributesGetRequest; -class ProjectDomainAttributesGetRequestDefaultTypeInternal; -extern ProjectDomainAttributesGetRequestDefaultTypeInternal _ProjectDomainAttributesGetRequest_default_instance_; -class ProjectDomainAttributesGetResponse; -class ProjectDomainAttributesGetResponseDefaultTypeInternal; -extern ProjectDomainAttributesGetResponseDefaultTypeInternal _ProjectDomainAttributesGetResponse_default_instance_; -class ProjectDomainAttributesUpdateRequest; -class ProjectDomainAttributesUpdateRequestDefaultTypeInternal; -extern ProjectDomainAttributesUpdateRequestDefaultTypeInternal _ProjectDomainAttributesUpdateRequest_default_instance_; -class ProjectDomainAttributesUpdateResponse; -class ProjectDomainAttributesUpdateResponseDefaultTypeInternal; -extern ProjectDomainAttributesUpdateResponseDefaultTypeInternal _ProjectDomainAttributesUpdateResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::ProjectDomainAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesDeleteRequest>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesDeleteResponse>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesGetRequest>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesGetResponse>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesUpdateRequest>(Arena*); -template<> ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributesUpdateResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class ProjectDomainAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributes) */ { - public: - ProjectDomainAttributes(); - virtual ~ProjectDomainAttributes(); - - ProjectDomainAttributes(const ProjectDomainAttributes& from); - - inline ProjectDomainAttributes& operator=(const ProjectDomainAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributes(ProjectDomainAttributes&& from) noexcept - : ProjectDomainAttributes() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributes& operator=(ProjectDomainAttributes&& 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 ProjectDomainAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributes* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ProjectDomainAttributes* other); - friend void swap(ProjectDomainAttributes& a, ProjectDomainAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributes* 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 ProjectDomainAttributes& from); - void MergeFrom(const ProjectDomainAttributes& 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(ProjectDomainAttributes* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // .flyteidl.admin.MatchingAttributes matching_attributes = 3; - bool has_matching_attributes() const; - void clear_matching_attributes(); - static const int kMatchingAttributesFieldNumber = 3; - const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; - ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); - ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); - void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::flyteidl::admin::MatchingAttributes* matching_attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesUpdateRequest) */ { - public: - ProjectDomainAttributesUpdateRequest(); - virtual ~ProjectDomainAttributesUpdateRequest(); - - ProjectDomainAttributesUpdateRequest(const ProjectDomainAttributesUpdateRequest& from); - - inline ProjectDomainAttributesUpdateRequest& operator=(const ProjectDomainAttributesUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesUpdateRequest(ProjectDomainAttributesUpdateRequest&& from) noexcept - : ProjectDomainAttributesUpdateRequest() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesUpdateRequest& operator=(ProjectDomainAttributesUpdateRequest&& 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 ProjectDomainAttributesUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ProjectDomainAttributesUpdateRequest* other); - friend void swap(ProjectDomainAttributesUpdateRequest& a, ProjectDomainAttributesUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesUpdateRequest* 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 ProjectDomainAttributesUpdateRequest& from); - void MergeFrom(const ProjectDomainAttributesUpdateRequest& 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(ProjectDomainAttributesUpdateRequest* 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.ProjectDomainAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::ProjectDomainAttributes& attributes() const; - ::flyteidl::admin::ProjectDomainAttributes* release_attributes(); - ::flyteidl::admin::ProjectDomainAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::ProjectDomainAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesUpdateResponse) */ { - public: - ProjectDomainAttributesUpdateResponse(); - virtual ~ProjectDomainAttributesUpdateResponse(); - - ProjectDomainAttributesUpdateResponse(const ProjectDomainAttributesUpdateResponse& from); - - inline ProjectDomainAttributesUpdateResponse& operator=(const ProjectDomainAttributesUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesUpdateResponse(ProjectDomainAttributesUpdateResponse&& from) noexcept - : ProjectDomainAttributesUpdateResponse() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesUpdateResponse& operator=(ProjectDomainAttributesUpdateResponse&& 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 ProjectDomainAttributesUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(ProjectDomainAttributesUpdateResponse* other); - friend void swap(ProjectDomainAttributesUpdateResponse& a, ProjectDomainAttributesUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesUpdateResponse* 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 ProjectDomainAttributesUpdateResponse& from); - void MergeFrom(const ProjectDomainAttributesUpdateResponse& 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(ProjectDomainAttributesUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesGetRequest) */ { - public: - ProjectDomainAttributesGetRequest(); - virtual ~ProjectDomainAttributesGetRequest(); - - ProjectDomainAttributesGetRequest(const ProjectDomainAttributesGetRequest& from); - - inline ProjectDomainAttributesGetRequest& operator=(const ProjectDomainAttributesGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesGetRequest(ProjectDomainAttributesGetRequest&& from) noexcept - : ProjectDomainAttributesGetRequest() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesGetRequest& operator=(ProjectDomainAttributesGetRequest&& 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 ProjectDomainAttributesGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesGetRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ProjectDomainAttributesGetRequest* other); - friend void swap(ProjectDomainAttributesGetRequest& a, ProjectDomainAttributesGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesGetRequest* 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 ProjectDomainAttributesGetRequest& from); - void MergeFrom(const ProjectDomainAttributesGetRequest& 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(ProjectDomainAttributesGetRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // .flyteidl.admin.MatchableResource resource_type = 3; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 3; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesGetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesGetResponse) */ { - public: - ProjectDomainAttributesGetResponse(); - virtual ~ProjectDomainAttributesGetResponse(); - - ProjectDomainAttributesGetResponse(const ProjectDomainAttributesGetResponse& from); - - inline ProjectDomainAttributesGetResponse& operator=(const ProjectDomainAttributesGetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesGetResponse(ProjectDomainAttributesGetResponse&& from) noexcept - : ProjectDomainAttributesGetResponse() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesGetResponse& operator=(ProjectDomainAttributesGetResponse&& 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 ProjectDomainAttributesGetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesGetResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesGetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(ProjectDomainAttributesGetResponse* other); - friend void swap(ProjectDomainAttributesGetResponse& a, ProjectDomainAttributesGetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesGetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesGetResponse* 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 ProjectDomainAttributesGetResponse& from); - void MergeFrom(const ProjectDomainAttributesGetResponse& 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(ProjectDomainAttributesGetResponse* 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.ProjectDomainAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::ProjectDomainAttributes& attributes() const; - ::flyteidl::admin::ProjectDomainAttributes* release_attributes(); - ::flyteidl::admin::ProjectDomainAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::ProjectDomainAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesDeleteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesDeleteRequest) */ { - public: - ProjectDomainAttributesDeleteRequest(); - virtual ~ProjectDomainAttributesDeleteRequest(); - - ProjectDomainAttributesDeleteRequest(const ProjectDomainAttributesDeleteRequest& from); - - inline ProjectDomainAttributesDeleteRequest& operator=(const ProjectDomainAttributesDeleteRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesDeleteRequest(ProjectDomainAttributesDeleteRequest&& from) noexcept - : ProjectDomainAttributesDeleteRequest() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesDeleteRequest& operator=(ProjectDomainAttributesDeleteRequest&& 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 ProjectDomainAttributesDeleteRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesDeleteRequest* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesDeleteRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ProjectDomainAttributesDeleteRequest* other); - friend void swap(ProjectDomainAttributesDeleteRequest& a, ProjectDomainAttributesDeleteRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesDeleteRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesDeleteRequest* 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 ProjectDomainAttributesDeleteRequest& from); - void MergeFrom(const ProjectDomainAttributesDeleteRequest& 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(ProjectDomainAttributesDeleteRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // .flyteidl.admin.MatchableResource resource_type = 3; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 3; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class ProjectDomainAttributesDeleteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.ProjectDomainAttributesDeleteResponse) */ { - public: - ProjectDomainAttributesDeleteResponse(); - virtual ~ProjectDomainAttributesDeleteResponse(); - - ProjectDomainAttributesDeleteResponse(const ProjectDomainAttributesDeleteResponse& from); - - inline ProjectDomainAttributesDeleteResponse& operator=(const ProjectDomainAttributesDeleteResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProjectDomainAttributesDeleteResponse(ProjectDomainAttributesDeleteResponse&& from) noexcept - : ProjectDomainAttributesDeleteResponse() { - *this = ::std::move(from); - } - - inline ProjectDomainAttributesDeleteResponse& operator=(ProjectDomainAttributesDeleteResponse&& 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 ProjectDomainAttributesDeleteResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProjectDomainAttributesDeleteResponse* internal_default_instance() { - return reinterpret_cast( - &_ProjectDomainAttributesDeleteResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ProjectDomainAttributesDeleteResponse* other); - friend void swap(ProjectDomainAttributesDeleteResponse& a, ProjectDomainAttributesDeleteResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProjectDomainAttributesDeleteResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ProjectDomainAttributesDeleteResponse* 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 ProjectDomainAttributesDeleteResponse& from); - void MergeFrom(const ProjectDomainAttributesDeleteResponse& 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(ProjectDomainAttributesDeleteResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ProjectDomainAttributes - -// string project = 1; -inline void ProjectDomainAttributes::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributes::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.project) - return project_.GetNoArena(); -} -inline void ProjectDomainAttributes::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributes.project) -} -#if LANG_CXX11 -inline void ProjectDomainAttributes::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributes.project) -} -#endif -inline void ProjectDomainAttributes::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributes.project) -} -inline void ProjectDomainAttributes::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributes.project) -} -inline ::std::string* ProjectDomainAttributes::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributes::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributes::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.project) -} - -// string domain = 2; -inline void ProjectDomainAttributes::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributes::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.domain) - return domain_.GetNoArena(); -} -inline void ProjectDomainAttributes::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributes.domain) -} -#if LANG_CXX11 -inline void ProjectDomainAttributes::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributes.domain) -} -#endif -inline void ProjectDomainAttributes::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributes.domain) -} -inline void ProjectDomainAttributes::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributes.domain) -} -inline ::std::string* ProjectDomainAttributes::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributes::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributes::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.domain) -} - -// .flyteidl.admin.MatchingAttributes matching_attributes = 3; -inline bool ProjectDomainAttributes::has_matching_attributes() const { - return this != internal_default_instance() && matching_attributes_ != nullptr; -} -inline const ::flyteidl::admin::MatchingAttributes& ProjectDomainAttributes::matching_attributes() const { - const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributes.matching_attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_MatchingAttributes_default_instance_); -} -inline ::flyteidl::admin::MatchingAttributes* ProjectDomainAttributes::release_matching_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributes.matching_attributes) - - ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; - matching_attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::MatchingAttributes* ProjectDomainAttributes::mutable_matching_attributes() { - - if (matching_attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); - matching_attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributes.matching_attributes) - return matching_attributes_; -} -inline void ProjectDomainAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); - } - if (matching_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - matching_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, matching_attributes, submessage_arena); - } - - } else { - - } - matching_attributes_ = matching_attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributes.matching_attributes) -} - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesUpdateRequest - -// .flyteidl.admin.ProjectDomainAttributes attributes = 1; -inline bool ProjectDomainAttributesUpdateRequest::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void ProjectDomainAttributesUpdateRequest::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::ProjectDomainAttributes& ProjectDomainAttributesUpdateRequest::attributes() const { - const ::flyteidl::admin::ProjectDomainAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ProjectDomainAttributes_default_instance_); -} -inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesUpdateRequest::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) - - ::flyteidl::admin::ProjectDomainAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesUpdateRequest::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) - return attributes_; -} -inline void ProjectDomainAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesUpdateRequest.attributes) -} - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesUpdateResponse - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesGetRequest - -// string project = 1; -inline void ProjectDomainAttributesGetRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributesGetRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.project) - return project_.GetNoArena(); -} -inline void ProjectDomainAttributesGetRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.project) -} -#if LANG_CXX11 -inline void ProjectDomainAttributesGetRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesGetRequest.project) -} -#endif -inline void ProjectDomainAttributesGetRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesGetRequest.project) -} -inline void ProjectDomainAttributesGetRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesGetRequest.project) -} -inline ::std::string* ProjectDomainAttributesGetRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributesGetRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributesGetRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetRequest.project) -} - -// string domain = 2; -inline void ProjectDomainAttributesGetRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributesGetRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) - return domain_.GetNoArena(); -} -inline void ProjectDomainAttributesGetRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) -} -#if LANG_CXX11 -inline void ProjectDomainAttributesGetRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) -} -#endif -inline void ProjectDomainAttributesGetRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) -} -inline void ProjectDomainAttributesGetRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) -} -inline ::std::string* ProjectDomainAttributesGetRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributesGetRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributesGetRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetRequest.domain) -} - -// .flyteidl.admin.MatchableResource resource_type = 3; -inline void ProjectDomainAttributesGetRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource ProjectDomainAttributesGetRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void ProjectDomainAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesGetRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesGetResponse - -// .flyteidl.admin.ProjectDomainAttributes attributes = 1; -inline bool ProjectDomainAttributesGetResponse::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void ProjectDomainAttributesGetResponse::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::ProjectDomainAttributes& ProjectDomainAttributesGetResponse::attributes() const { - const ::flyteidl::admin::ProjectDomainAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_ProjectDomainAttributes_default_instance_); -} -inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesGetResponse::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) - - ::flyteidl::admin::ProjectDomainAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::ProjectDomainAttributes* ProjectDomainAttributesGetResponse::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::ProjectDomainAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) - return attributes_; -} -inline void ProjectDomainAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::ProjectDomainAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesGetResponse.attributes) -} - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesDeleteRequest - -// string project = 1; -inline void ProjectDomainAttributesDeleteRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributesDeleteRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) - return project_.GetNoArena(); -} -inline void ProjectDomainAttributesDeleteRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) -} -#if LANG_CXX11 -inline void ProjectDomainAttributesDeleteRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) -} -#endif -inline void ProjectDomainAttributesDeleteRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) -} -inline void ProjectDomainAttributesDeleteRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) -} -inline ::std::string* ProjectDomainAttributesDeleteRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributesDeleteRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributesDeleteRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesDeleteRequest.project) -} - -// string domain = 2; -inline void ProjectDomainAttributesDeleteRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ProjectDomainAttributesDeleteRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) - return domain_.GetNoArena(); -} -inline void ProjectDomainAttributesDeleteRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) -} -#if LANG_CXX11 -inline void ProjectDomainAttributesDeleteRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) -} -#endif -inline void ProjectDomainAttributesDeleteRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) -} -inline void ProjectDomainAttributesDeleteRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) -} -inline ::std::string* ProjectDomainAttributesDeleteRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ProjectDomainAttributesDeleteRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ProjectDomainAttributesDeleteRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.ProjectDomainAttributesDeleteRequest.domain) -} - -// .flyteidl.admin.MatchableResource resource_type = 3; -inline void ProjectDomainAttributesDeleteRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource ProjectDomainAttributesDeleteRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void ProjectDomainAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.ProjectDomainAttributesDeleteRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// ProjectDomainAttributesDeleteResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc deleted file mode 100644 index 382082b2fc..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/schedule.proto - -#include "flyteidl/admin/schedule.pb.h" -#include "flyteidl/admin/schedule.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h deleted file mode 100644 index 668d656d94..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/schedule.proto -#ifndef GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED - -#include "flyteidl/admin/schedule.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fschedule_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc deleted file mode 100644 index d9bae84100..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.cc +++ /dev/null @@ -1,1446 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/schedule.proto - -#include "flyteidl/admin/schedule.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto; -namespace flyteidl { -namespace admin { -class FixedRateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _FixedRate_default_instance_; -class CronScheduleDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CronSchedule_default_instance_; -class ScheduleDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr cron_expression_; - const ::flyteidl::admin::FixedRate* rate_; - const ::flyteidl::admin::CronSchedule* cron_schedule_; -} _Schedule_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsFixedRate_flyteidl_2fadmin_2fschedule_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_FixedRate_default_instance_; - new (ptr) ::flyteidl::admin::FixedRate(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::FixedRate::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFixedRate_flyteidl_2fadmin_2fschedule_2eproto}, {}}; - -static void InitDefaultsCronSchedule_flyteidl_2fadmin_2fschedule_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_CronSchedule_default_instance_; - new (ptr) ::flyteidl::admin::CronSchedule(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::CronSchedule::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCronSchedule_flyteidl_2fadmin_2fschedule_2eproto}, {}}; - -static void InitDefaultsSchedule_flyteidl_2fadmin_2fschedule_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Schedule_default_instance_; - new (ptr) ::flyteidl::admin::Schedule(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Schedule::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSchedule_flyteidl_2fadmin_2fschedule_2eproto}, { - &scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base, - &scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fschedule_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[3]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fschedule_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fschedule_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::FixedRate, unit_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, schedule_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::CronSchedule, offset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, cron_expression_), - offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, rate_), - offsetof(::flyteidl::admin::ScheduleDefaultTypeInternal, cron_schedule_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, kickoff_time_input_arg_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Schedule, ScheduleExpression_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::FixedRate)}, - { 7, -1, sizeof(::flyteidl::admin::CronSchedule)}, - { 14, -1, sizeof(::flyteidl::admin::Schedule)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_FixedRate_default_instance_), - reinterpret_cast(&::flyteidl::admin::_CronSchedule_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Schedule_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto, "flyteidl/admin/schedule.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fschedule_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto, 3, file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fschedule_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fschedule_2eproto[] = - "\n\035flyteidl/admin/schedule.proto\022\016flyteid" - "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" - "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" - "\"0\n\014CronSchedule\022\020\n\010schedule\030\001 \001(\t\022\016\n\006of" - "fset\030\002 \001(\t\"\301\001\n\010Schedule\022\035\n\017cron_expressi" - "on\030\001 \001(\tB\002\030\001H\000\022)\n\004rate\030\002 \001(\0132\031.flyteidl." - "admin.FixedRateH\000\0225\n\rcron_schedule\030\004 \001(\013" - "2\034.flyteidl.admin.CronScheduleH\000\022\036\n\026kick" - "off_time_input_arg\030\003 \001(\tB\024\n\022ScheduleExpr" - "ession*.\n\rFixedRateUnit\022\n\n\006MINUTE\020\000\022\010\n\004H" - "OUR\020\001\022\007\n\003DAY\020\002B=Z;github.com/flyteorg/fl" - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" - "roto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fschedule_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fschedule_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fschedule_2eproto, - "flyteidl/admin/schedule.proto", &assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto, 485, -}; - -void AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fschedule_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fschedule_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { -const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); - return file_level_enum_descriptors_flyteidl_2fadmin_2fschedule_2eproto[0]; -} -bool FixedRateUnit_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - - -// =================================================================== - -void FixedRate::InitAsDefaultInstance() { -} -class FixedRate::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FixedRate::kValueFieldNumber; -const int FixedRate::kUnitFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FixedRate::FixedRate() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.FixedRate) -} -FixedRate::FixedRate(const FixedRate& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&value_, &from.value_, - static_cast(reinterpret_cast(&unit_) - - reinterpret_cast(&value_)) + sizeof(unit_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.FixedRate) -} - -void FixedRate::SharedCtor() { - ::memset(&value_, 0, static_cast( - reinterpret_cast(&unit_) - - reinterpret_cast(&value_)) + sizeof(unit_)); -} - -FixedRate::~FixedRate() { - // @@protoc_insertion_point(destructor:flyteidl.admin.FixedRate) - SharedDtor(); -} - -void FixedRate::SharedDtor() { -} - -void FixedRate::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FixedRate& FixedRate::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_FixedRate_flyteidl_2fadmin_2fschedule_2eproto.base); - return *internal_default_instance(); -} - - -void FixedRate::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.FixedRate) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&value_, 0, static_cast( - reinterpret_cast(&unit_) - - reinterpret_cast(&value_)) + sizeof(unit_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FixedRate::_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) { - // uint32 value = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_value(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.admin.FixedRateUnit unit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_unit(static_cast<::flyteidl::admin::FixedRateUnit>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool FixedRate::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.FixedRate) - 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)) { - // uint32 value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &value_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.FixedRateUnit unit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_unit(static_cast< ::flyteidl::admin::FixedRateUnit >(value)); - } 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.FixedRate) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.FixedRate) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FixedRate::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.FixedRate) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 value = 1; - if (this->value() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(), output); - } - - // .flyteidl.admin.FixedRateUnit unit = 2; - if (this->unit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->unit(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.FixedRate) -} - -::google::protobuf::uint8* FixedRate::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.FixedRate) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 value = 1; - if (this->value() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->value(), target); - } - - // .flyteidl.admin.FixedRateUnit unit = 2; - if (this->unit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->unit(), 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.FixedRate) - return target; -} - -size_t FixedRate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.FixedRate) - 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; - - // uint32 value = 1; - if (this->value() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->value()); - } - - // .flyteidl.admin.FixedRateUnit unit = 2; - if (this->unit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->unit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FixedRate::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.FixedRate) - GOOGLE_DCHECK_NE(&from, this); - const FixedRate* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.FixedRate) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.FixedRate) - MergeFrom(*source); - } -} - -void FixedRate::MergeFrom(const FixedRate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.FixedRate) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value() != 0) { - set_value(from.value()); - } - if (from.unit() != 0) { - set_unit(from.unit()); - } -} - -void FixedRate::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.FixedRate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FixedRate::CopyFrom(const FixedRate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.FixedRate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FixedRate::IsInitialized() const { - return true; -} - -void FixedRate::Swap(FixedRate* other) { - if (other == this) return; - InternalSwap(other); -} -void FixedRate::InternalSwap(FixedRate* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(unit_, other->unit_); -} - -::google::protobuf::Metadata FixedRate::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CronSchedule::InitAsDefaultInstance() { -} -class CronSchedule::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CronSchedule::kScheduleFieldNumber; -const int CronSchedule::kOffsetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CronSchedule::CronSchedule() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.CronSchedule) -} -CronSchedule::CronSchedule(const CronSchedule& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - schedule_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.schedule().size() > 0) { - schedule_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_); - } - offset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.offset().size() > 0) { - offset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.offset_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.CronSchedule) -} - -void CronSchedule::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); - schedule_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - offset_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CronSchedule::~CronSchedule() { - // @@protoc_insertion_point(destructor:flyteidl.admin.CronSchedule) - SharedDtor(); -} - -void CronSchedule::SharedDtor() { - schedule_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - offset_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void CronSchedule::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CronSchedule& CronSchedule::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CronSchedule_flyteidl_2fadmin_2fschedule_2eproto.base); - return *internal_default_instance(); -} - - -void CronSchedule::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.CronSchedule) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - schedule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - offset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CronSchedule::_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) { - // string schedule = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.CronSchedule.schedule"); - object = msg->mutable_schedule(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string offset = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.CronSchedule.offset"); - object = msg->mutable_offset(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CronSchedule::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.CronSchedule) - 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)) { - // string schedule = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_schedule())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schedule().data(), static_cast(this->schedule().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.CronSchedule.schedule")); - } else { - goto handle_unusual; - } - break; - } - - // string offset = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_offset())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->offset().data(), static_cast(this->offset().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.CronSchedule.offset")); - } 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.CronSchedule) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.CronSchedule) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CronSchedule::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.CronSchedule) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string schedule = 1; - if (this->schedule().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schedule().data(), static_cast(this->schedule().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CronSchedule.schedule"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->schedule(), output); - } - - // string offset = 2; - if (this->offset().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->offset().data(), static_cast(this->offset().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CronSchedule.offset"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->offset(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.CronSchedule) -} - -::google::protobuf::uint8* CronSchedule::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.CronSchedule) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string schedule = 1; - if (this->schedule().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schedule().data(), static_cast(this->schedule().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CronSchedule.schedule"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->schedule(), target); - } - - // string offset = 2; - if (this->offset().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->offset().data(), static_cast(this->offset().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.CronSchedule.offset"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->offset(), 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.CronSchedule) - return target; -} - -size_t CronSchedule::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.CronSchedule) - 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; - - // string schedule = 1; - if (this->schedule().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->schedule()); - } - - // string offset = 2; - if (this->offset().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->offset()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CronSchedule::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.CronSchedule) - GOOGLE_DCHECK_NE(&from, this); - const CronSchedule* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.CronSchedule) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.CronSchedule) - MergeFrom(*source); - } -} - -void CronSchedule::MergeFrom(const CronSchedule& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.CronSchedule) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.schedule().size() > 0) { - - schedule_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schedule_); - } - if (from.offset().size() > 0) { - - offset_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.offset_); - } -} - -void CronSchedule::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.CronSchedule) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CronSchedule::CopyFrom(const CronSchedule& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.CronSchedule) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CronSchedule::IsInitialized() const { - return true; -} - -void CronSchedule::Swap(CronSchedule* other) { - if (other == this) return; - InternalSwap(other); -} -void CronSchedule::InternalSwap(CronSchedule* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - schedule_.Swap(&other->schedule_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - offset_.Swap(&other->offset_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata CronSchedule::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Schedule::InitAsDefaultInstance() { - ::flyteidl::admin::_Schedule_default_instance_.cron_expression_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_Schedule_default_instance_.rate_ = const_cast< ::flyteidl::admin::FixedRate*>( - ::flyteidl::admin::FixedRate::internal_default_instance()); - ::flyteidl::admin::_Schedule_default_instance_.cron_schedule_ = const_cast< ::flyteidl::admin::CronSchedule*>( - ::flyteidl::admin::CronSchedule::internal_default_instance()); -} -class Schedule::HasBitSetters { - public: - static const ::flyteidl::admin::FixedRate& rate(const Schedule* msg); - static const ::flyteidl::admin::CronSchedule& cron_schedule(const Schedule* msg); -}; - -const ::flyteidl::admin::FixedRate& -Schedule::HasBitSetters::rate(const Schedule* msg) { - return *msg->ScheduleExpression_.rate_; -} -const ::flyteidl::admin::CronSchedule& -Schedule::HasBitSetters::cron_schedule(const Schedule* msg) { - return *msg->ScheduleExpression_.cron_schedule_; -} -void Schedule::set_allocated_rate(::flyteidl::admin::FixedRate* rate) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_ScheduleExpression(); - if (rate) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - rate = ::google::protobuf::internal::GetOwnedMessage( - message_arena, rate, submessage_arena); - } - set_has_rate(); - ScheduleExpression_.rate_ = rate; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.rate) -} -void Schedule::set_allocated_cron_schedule(::flyteidl::admin::CronSchedule* cron_schedule) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_ScheduleExpression(); - if (cron_schedule) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - cron_schedule = ::google::protobuf::internal::GetOwnedMessage( - message_arena, cron_schedule, submessage_arena); - } - set_has_cron_schedule(); - ScheduleExpression_.cron_schedule_ = cron_schedule; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.cron_schedule) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Schedule::kCronExpressionFieldNumber; -const int Schedule::kRateFieldNumber; -const int Schedule::kCronScheduleFieldNumber; -const int Schedule::kKickoffTimeInputArgFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Schedule::Schedule() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Schedule) -} -Schedule::Schedule(const Schedule& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.kickoff_time_input_arg().size() > 0) { - kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); - } - clear_has_ScheduleExpression(); - switch (from.ScheduleExpression_case()) { - case kCronExpression: { - set_cron_expression(from.cron_expression()); - break; - } - case kRate: { - mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); - break; - } - case kCronSchedule: { - mutable_cron_schedule()->::flyteidl::admin::CronSchedule::MergeFrom(from.cron_schedule()); - break; - } - case SCHEDULEEXPRESSION_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Schedule) -} - -void Schedule::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); - kickoff_time_input_arg_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_ScheduleExpression(); -} - -Schedule::~Schedule() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Schedule) - SharedDtor(); -} - -void Schedule::SharedDtor() { - kickoff_time_input_arg_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (has_ScheduleExpression()) { - clear_ScheduleExpression(); - } -} - -void Schedule::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Schedule& Schedule::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Schedule_flyteidl_2fadmin_2fschedule_2eproto.base); - return *internal_default_instance(); -} - - -void Schedule::clear_ScheduleExpression() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.Schedule) - switch (ScheduleExpression_case()) { - case kCronExpression: { - ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kRate: { - delete ScheduleExpression_.rate_; - break; - } - case kCronSchedule: { - delete ScheduleExpression_.cron_schedule_; - break; - } - case SCHEDULEEXPRESSION_NOT_SET: { - break; - } - } - _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; -} - - -void Schedule::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Schedule) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_ScheduleExpression(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Schedule::_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) { - // string cron_expression = 1 [deprecated = true]; - 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Schedule.cron_expression"); - object = msg->mutable_cron_expression(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.FixedRate rate = 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::FixedRate::_InternalParse; - object = msg->mutable_rate(); - 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; - } - // string kickoff_time_input_arg = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Schedule.kickoff_time_input_arg"); - object = msg->mutable_kickoff_time_input_arg(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.CronSchedule cron_schedule = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::CronSchedule::_InternalParse; - object = msg->mutable_cron_schedule(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Schedule::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.Schedule) - 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)) { - // string cron_expression = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cron_expression())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cron_expression().data(), static_cast(this->cron_expression().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Schedule.cron_expression")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.FixedRate rate = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_rate())); - } else { - goto handle_unusual; - } - break; - } - - // string kickoff_time_input_arg = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_kickoff_time_input_arg())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Schedule.kickoff_time_input_arg")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.CronSchedule cron_schedule = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_cron_schedule())); - } 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.Schedule) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Schedule) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Schedule::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Schedule) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cron_expression = 1 [deprecated = true]; - if (has_cron_expression()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cron_expression().data(), static_cast(this->cron_expression().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Schedule.cron_expression"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cron_expression(), output); - } - - // .flyteidl.admin.FixedRate rate = 2; - if (has_rate()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::rate(this), output); - } - - // string kickoff_time_input_arg = 3; - if (this->kickoff_time_input_arg().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Schedule.kickoff_time_input_arg"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->kickoff_time_input_arg(), output); - } - - // .flyteidl.admin.CronSchedule cron_schedule = 4; - if (has_cron_schedule()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::cron_schedule(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.Schedule) -} - -::google::protobuf::uint8* Schedule::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Schedule) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cron_expression = 1 [deprecated = true]; - if (has_cron_expression()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cron_expression().data(), static_cast(this->cron_expression().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Schedule.cron_expression"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cron_expression(), target); - } - - // .flyteidl.admin.FixedRate rate = 2; - if (has_rate()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::rate(this), target); - } - - // string kickoff_time_input_arg = 3; - if (this->kickoff_time_input_arg().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->kickoff_time_input_arg().data(), static_cast(this->kickoff_time_input_arg().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Schedule.kickoff_time_input_arg"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->kickoff_time_input_arg(), target); - } - - // .flyteidl.admin.CronSchedule cron_schedule = 4; - if (has_cron_schedule()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::cron_schedule(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.Schedule) - return target; -} - -size_t Schedule::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Schedule) - 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; - - // string kickoff_time_input_arg = 3; - if (this->kickoff_time_input_arg().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->kickoff_time_input_arg()); - } - - switch (ScheduleExpression_case()) { - // string cron_expression = 1 [deprecated = true]; - case kCronExpression: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cron_expression()); - break; - } - // .flyteidl.admin.FixedRate rate = 2; - case kRate: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ScheduleExpression_.rate_); - break; - } - // .flyteidl.admin.CronSchedule cron_schedule = 4; - case kCronSchedule: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ScheduleExpression_.cron_schedule_); - break; - } - case SCHEDULEEXPRESSION_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Schedule::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Schedule) - GOOGLE_DCHECK_NE(&from, this); - const Schedule* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Schedule) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Schedule) - MergeFrom(*source); - } -} - -void Schedule::MergeFrom(const Schedule& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Schedule) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.kickoff_time_input_arg().size() > 0) { - - kickoff_time_input_arg_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.kickoff_time_input_arg_); - } - switch (from.ScheduleExpression_case()) { - case kCronExpression: { - set_cron_expression(from.cron_expression()); - break; - } - case kRate: { - mutable_rate()->::flyteidl::admin::FixedRate::MergeFrom(from.rate()); - break; - } - case kCronSchedule: { - mutable_cron_schedule()->::flyteidl::admin::CronSchedule::MergeFrom(from.cron_schedule()); - break; - } - case SCHEDULEEXPRESSION_NOT_SET: { - break; - } - } -} - -void Schedule::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Schedule) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Schedule::CopyFrom(const Schedule& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Schedule) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Schedule::IsInitialized() const { - return true; -} - -void Schedule::Swap(Schedule* other) { - if (other == this) return; - InternalSwap(other); -} -void Schedule::InternalSwap(Schedule* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - kickoff_time_input_arg_.Swap(&other->kickoff_time_input_arg_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(ScheduleExpression_, other->ScheduleExpression_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Schedule::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fschedule_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fschedule_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::FixedRate* Arena::CreateMaybeMessage< ::flyteidl::admin::FixedRate >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::FixedRate >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::CronSchedule* Arena::CreateMaybeMessage< ::flyteidl::admin::CronSchedule >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::CronSchedule >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Schedule* Arena::CreateMaybeMessage< ::flyteidl::admin::Schedule >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Schedule >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h deleted file mode 100644 index 818b36870c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/schedule.pb.h +++ /dev/null @@ -1,946 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/schedule.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fschedule_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fschedule_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fschedule_2eproto(); -namespace flyteidl { -namespace admin { -class CronSchedule; -class CronScheduleDefaultTypeInternal; -extern CronScheduleDefaultTypeInternal _CronSchedule_default_instance_; -class FixedRate; -class FixedRateDefaultTypeInternal; -extern FixedRateDefaultTypeInternal _FixedRate_default_instance_; -class Schedule; -class ScheduleDefaultTypeInternal; -extern ScheduleDefaultTypeInternal _Schedule_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::CronSchedule* Arena::CreateMaybeMessage<::flyteidl::admin::CronSchedule>(Arena*); -template<> ::flyteidl::admin::FixedRate* Arena::CreateMaybeMessage<::flyteidl::admin::FixedRate>(Arena*); -template<> ::flyteidl::admin::Schedule* Arena::CreateMaybeMessage<::flyteidl::admin::Schedule>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -enum FixedRateUnit { - MINUTE = 0, - HOUR = 1, - DAY = 2, - FixedRateUnit_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - FixedRateUnit_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool FixedRateUnit_IsValid(int value); -const FixedRateUnit FixedRateUnit_MIN = MINUTE; -const FixedRateUnit FixedRateUnit_MAX = DAY; -const int FixedRateUnit_ARRAYSIZE = FixedRateUnit_MAX + 1; - -const ::google::protobuf::EnumDescriptor* FixedRateUnit_descriptor(); -inline const ::std::string& FixedRateUnit_Name(FixedRateUnit value) { - return ::google::protobuf::internal::NameOfEnum( - FixedRateUnit_descriptor(), value); -} -inline bool FixedRateUnit_Parse( - const ::std::string& name, FixedRateUnit* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FixedRateUnit_descriptor(), name, value); -} -// =================================================================== - -class FixedRate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.FixedRate) */ { - public: - FixedRate(); - virtual ~FixedRate(); - - FixedRate(const FixedRate& from); - - inline FixedRate& operator=(const FixedRate& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FixedRate(FixedRate&& from) noexcept - : FixedRate() { - *this = ::std::move(from); - } - - inline FixedRate& operator=(FixedRate&& 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 FixedRate& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FixedRate* internal_default_instance() { - return reinterpret_cast( - &_FixedRate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(FixedRate* other); - friend void swap(FixedRate& a, FixedRate& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FixedRate* New() const final { - return CreateMaybeMessage(nullptr); - } - - FixedRate* 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 FixedRate& from); - void MergeFrom(const FixedRate& 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(FixedRate* 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 ------------------------------------------------------- - - // uint32 value = 1; - void clear_value(); - static const int kValueFieldNumber = 1; - ::google::protobuf::uint32 value() const; - void set_value(::google::protobuf::uint32 value); - - // .flyteidl.admin.FixedRateUnit unit = 2; - void clear_unit(); - static const int kUnitFieldNumber = 2; - ::flyteidl::admin::FixedRateUnit unit() const; - void set_unit(::flyteidl::admin::FixedRateUnit value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::uint32 value_; - int unit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; -}; -// ------------------------------------------------------------------- - -class CronSchedule final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.CronSchedule) */ { - public: - CronSchedule(); - virtual ~CronSchedule(); - - CronSchedule(const CronSchedule& from); - - inline CronSchedule& operator=(const CronSchedule& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CronSchedule(CronSchedule&& from) noexcept - : CronSchedule() { - *this = ::std::move(from); - } - - inline CronSchedule& operator=(CronSchedule&& 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 CronSchedule& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CronSchedule* internal_default_instance() { - return reinterpret_cast( - &_CronSchedule_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(CronSchedule* other); - friend void swap(CronSchedule& a, CronSchedule& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CronSchedule* New() const final { - return CreateMaybeMessage(nullptr); - } - - CronSchedule* 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 CronSchedule& from); - void MergeFrom(const CronSchedule& 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(CronSchedule* 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 ------------------------------------------------------- - - // string schedule = 1; - void clear_schedule(); - static const int kScheduleFieldNumber = 1; - const ::std::string& schedule() const; - void set_schedule(const ::std::string& value); - #if LANG_CXX11 - void set_schedule(::std::string&& value); - #endif - void set_schedule(const char* value); - void set_schedule(const char* value, size_t size); - ::std::string* mutable_schedule(); - ::std::string* release_schedule(); - void set_allocated_schedule(::std::string* schedule); - - // string offset = 2; - void clear_offset(); - static const int kOffsetFieldNumber = 2; - const ::std::string& offset() const; - void set_offset(const ::std::string& value); - #if LANG_CXX11 - void set_offset(::std::string&& value); - #endif - void set_offset(const char* value); - void set_offset(const char* value, size_t size); - ::std::string* mutable_offset(); - ::std::string* release_offset(); - void set_allocated_offset(::std::string* offset); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.CronSchedule) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr schedule_; - ::google::protobuf::internal::ArenaStringPtr offset_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; -}; -// ------------------------------------------------------------------- - -class Schedule final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Schedule) */ { - public: - Schedule(); - virtual ~Schedule(); - - Schedule(const Schedule& from); - - inline Schedule& operator=(const Schedule& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Schedule(Schedule&& from) noexcept - : Schedule() { - *this = ::std::move(from); - } - - inline Schedule& operator=(Schedule&& 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 Schedule& default_instance(); - - enum ScheduleExpressionCase { - kCronExpression = 1, - kRate = 2, - kCronSchedule = 4, - SCHEDULEEXPRESSION_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Schedule* internal_default_instance() { - return reinterpret_cast( - &_Schedule_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Schedule* other); - friend void swap(Schedule& a, Schedule& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Schedule* New() const final { - return CreateMaybeMessage(nullptr); - } - - Schedule* 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 Schedule& from); - void MergeFrom(const Schedule& 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(Schedule* 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 ------------------------------------------------------- - - // string kickoff_time_input_arg = 3; - void clear_kickoff_time_input_arg(); - static const int kKickoffTimeInputArgFieldNumber = 3; - const ::std::string& kickoff_time_input_arg() const; - void set_kickoff_time_input_arg(const ::std::string& value); - #if LANG_CXX11 - void set_kickoff_time_input_arg(::std::string&& value); - #endif - void set_kickoff_time_input_arg(const char* value); - void set_kickoff_time_input_arg(const char* value, size_t size); - ::std::string* mutable_kickoff_time_input_arg(); - ::std::string* release_kickoff_time_input_arg(); - void set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg); - - // string cron_expression = 1 [deprecated = true]; - private: - bool has_cron_expression() const; - public: - PROTOBUF_DEPRECATED void clear_cron_expression(); - PROTOBUF_DEPRECATED static const int kCronExpressionFieldNumber = 1; - PROTOBUF_DEPRECATED const ::std::string& cron_expression() const; - PROTOBUF_DEPRECATED void set_cron_expression(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_cron_expression(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_cron_expression(const char* value); - PROTOBUF_DEPRECATED void set_cron_expression(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_cron_expression(); - PROTOBUF_DEPRECATED ::std::string* release_cron_expression(); - PROTOBUF_DEPRECATED void set_allocated_cron_expression(::std::string* cron_expression); - - // .flyteidl.admin.FixedRate rate = 2; - bool has_rate() const; - void clear_rate(); - static const int kRateFieldNumber = 2; - const ::flyteidl::admin::FixedRate& rate() const; - ::flyteidl::admin::FixedRate* release_rate(); - ::flyteidl::admin::FixedRate* mutable_rate(); - void set_allocated_rate(::flyteidl::admin::FixedRate* rate); - - // .flyteidl.admin.CronSchedule cron_schedule = 4; - bool has_cron_schedule() const; - void clear_cron_schedule(); - static const int kCronScheduleFieldNumber = 4; - const ::flyteidl::admin::CronSchedule& cron_schedule() const; - ::flyteidl::admin::CronSchedule* release_cron_schedule(); - ::flyteidl::admin::CronSchedule* mutable_cron_schedule(); - void set_allocated_cron_schedule(::flyteidl::admin::CronSchedule* cron_schedule); - - void clear_ScheduleExpression(); - ScheduleExpressionCase ScheduleExpression_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) - private: - class HasBitSetters; - void set_has_cron_expression(); - void set_has_rate(); - void set_has_cron_schedule(); - - inline bool has_ScheduleExpression() const; - inline void clear_has_ScheduleExpression(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr kickoff_time_input_arg_; - union ScheduleExpressionUnion { - ScheduleExpressionUnion() {} - ::google::protobuf::internal::ArenaStringPtr cron_expression_; - ::flyteidl::admin::FixedRate* rate_; - ::flyteidl::admin::CronSchedule* cron_schedule_; - } ScheduleExpression_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2fschedule_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// FixedRate - -// uint32 value = 1; -inline void FixedRate::clear_value() { - value_ = 0u; -} -inline ::google::protobuf::uint32 FixedRate::value() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.value) - return value_; -} -inline void FixedRate::set_value(::google::protobuf::uint32 value) { - - value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.value) -} - -// .flyteidl.admin.FixedRateUnit unit = 2; -inline void FixedRate::clear_unit() { - unit_ = 0; -} -inline ::flyteidl::admin::FixedRateUnit FixedRate::unit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.FixedRate.unit) - return static_cast< ::flyteidl::admin::FixedRateUnit >(unit_); -} -inline void FixedRate::set_unit(::flyteidl::admin::FixedRateUnit value) { - - unit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.FixedRate.unit) -} - -// ------------------------------------------------------------------- - -// CronSchedule - -// string schedule = 1; -inline void CronSchedule::clear_schedule() { - schedule_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CronSchedule::schedule() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CronSchedule.schedule) - return schedule_.GetNoArena(); -} -inline void CronSchedule::set_schedule(const ::std::string& value) { - - schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CronSchedule.schedule) -} -#if LANG_CXX11 -inline void CronSchedule::set_schedule(::std::string&& value) { - - schedule_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CronSchedule.schedule) -} -#endif -inline void CronSchedule::set_schedule(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CronSchedule.schedule) -} -inline void CronSchedule::set_schedule(const char* value, size_t size) { - - schedule_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CronSchedule.schedule) -} -inline ::std::string* CronSchedule::mutable_schedule() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CronSchedule.schedule) - return schedule_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CronSchedule::release_schedule() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CronSchedule.schedule) - - return schedule_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CronSchedule::set_allocated_schedule(::std::string* schedule) { - if (schedule != nullptr) { - - } else { - - } - schedule_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schedule); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CronSchedule.schedule) -} - -// string offset = 2; -inline void CronSchedule::clear_offset() { - offset_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CronSchedule::offset() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.CronSchedule.offset) - return offset_.GetNoArena(); -} -inline void CronSchedule::set_offset(const ::std::string& value) { - - offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.CronSchedule.offset) -} -#if LANG_CXX11 -inline void CronSchedule::set_offset(::std::string&& value) { - - offset_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.CronSchedule.offset) -} -#endif -inline void CronSchedule::set_offset(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.CronSchedule.offset) -} -inline void CronSchedule::set_offset(const char* value, size_t size) { - - offset_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.CronSchedule.offset) -} -inline ::std::string* CronSchedule::mutable_offset() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.CronSchedule.offset) - return offset_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CronSchedule::release_offset() { - // @@protoc_insertion_point(field_release:flyteidl.admin.CronSchedule.offset) - - return offset_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CronSchedule::set_allocated_offset(::std::string* offset) { - if (offset != nullptr) { - - } else { - - } - offset_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), offset); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.CronSchedule.offset) -} - -// ------------------------------------------------------------------- - -// Schedule - -// string cron_expression = 1 [deprecated = true]; -inline bool Schedule::has_cron_expression() const { - return ScheduleExpression_case() == kCronExpression; -} -inline void Schedule::set_has_cron_expression() { - _oneof_case_[0] = kCronExpression; -} -inline void Schedule::clear_cron_expression() { - if (has_cron_expression()) { - ScheduleExpression_.cron_expression_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_ScheduleExpression(); - } -} -inline const ::std::string& Schedule::cron_expression() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.cron_expression) - if (has_cron_expression()) { - return ScheduleExpression_.cron_expression_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Schedule::set_cron_expression(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) - if (!has_cron_expression()) { - clear_ScheduleExpression(); - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) -} -#if LANG_CXX11 -inline void Schedule::set_cron_expression(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.cron_expression) - if (!has_cron_expression()) { - clear_ScheduleExpression(); - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.cron_expression) -} -#endif -inline void Schedule::set_cron_expression(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_cron_expression()) { - clear_ScheduleExpression(); - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.cron_expression) -} -inline void Schedule::set_cron_expression(const char* value, size_t size) { - if (!has_cron_expression()) { - clear_ScheduleExpression(); - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - ScheduleExpression_.cron_expression_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.cron_expression) -} -inline ::std::string* Schedule::mutable_cron_expression() { - if (!has_cron_expression()) { - clear_ScheduleExpression(); - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.cron_expression) - return ScheduleExpression_.cron_expression_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Schedule::release_cron_expression() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.cron_expression) - if (has_cron_expression()) { - clear_has_ScheduleExpression(); - return ScheduleExpression_.cron_expression_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Schedule::set_allocated_cron_expression(::std::string* cron_expression) { - if (has_ScheduleExpression()) { - clear_ScheduleExpression(); - } - if (cron_expression != nullptr) { - set_has_cron_expression(); - ScheduleExpression_.cron_expression_.UnsafeSetDefault(cron_expression); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.cron_expression) -} - -// .flyteidl.admin.FixedRate rate = 2; -inline bool Schedule::has_rate() const { - return ScheduleExpression_case() == kRate; -} -inline void Schedule::set_has_rate() { - _oneof_case_[0] = kRate; -} -inline void Schedule::clear_rate() { - if (has_rate()) { - delete ScheduleExpression_.rate_; - clear_has_ScheduleExpression(); - } -} -inline ::flyteidl::admin::FixedRate* Schedule::release_rate() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.rate) - if (has_rate()) { - clear_has_ScheduleExpression(); - ::flyteidl::admin::FixedRate* temp = ScheduleExpression_.rate_; - ScheduleExpression_.rate_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::FixedRate& Schedule::rate() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.rate) - return has_rate() - ? *ScheduleExpression_.rate_ - : *reinterpret_cast< ::flyteidl::admin::FixedRate*>(&::flyteidl::admin::_FixedRate_default_instance_); -} -inline ::flyteidl::admin::FixedRate* Schedule::mutable_rate() { - if (!has_rate()) { - clear_ScheduleExpression(); - set_has_rate(); - ScheduleExpression_.rate_ = CreateMaybeMessage< ::flyteidl::admin::FixedRate >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.rate) - return ScheduleExpression_.rate_; -} - -// .flyteidl.admin.CronSchedule cron_schedule = 4; -inline bool Schedule::has_cron_schedule() const { - return ScheduleExpression_case() == kCronSchedule; -} -inline void Schedule::set_has_cron_schedule() { - _oneof_case_[0] = kCronSchedule; -} -inline void Schedule::clear_cron_schedule() { - if (has_cron_schedule()) { - delete ScheduleExpression_.cron_schedule_; - clear_has_ScheduleExpression(); - } -} -inline ::flyteidl::admin::CronSchedule* Schedule::release_cron_schedule() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.cron_schedule) - if (has_cron_schedule()) { - clear_has_ScheduleExpression(); - ::flyteidl::admin::CronSchedule* temp = ScheduleExpression_.cron_schedule_; - ScheduleExpression_.cron_schedule_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::admin::CronSchedule& Schedule::cron_schedule() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.cron_schedule) - return has_cron_schedule() - ? *ScheduleExpression_.cron_schedule_ - : *reinterpret_cast< ::flyteidl::admin::CronSchedule*>(&::flyteidl::admin::_CronSchedule_default_instance_); -} -inline ::flyteidl::admin::CronSchedule* Schedule::mutable_cron_schedule() { - if (!has_cron_schedule()) { - clear_ScheduleExpression(); - set_has_cron_schedule(); - ScheduleExpression_.cron_schedule_ = CreateMaybeMessage< ::flyteidl::admin::CronSchedule >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.cron_schedule) - return ScheduleExpression_.cron_schedule_; -} - -// string kickoff_time_input_arg = 3; -inline void Schedule::clear_kickoff_time_input_arg() { - kickoff_time_input_arg_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Schedule::kickoff_time_input_arg() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Schedule.kickoff_time_input_arg) - return kickoff_time_input_arg_.GetNoArena(); -} -inline void Schedule::set_kickoff_time_input_arg(const ::std::string& value) { - - kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Schedule.kickoff_time_input_arg) -} -#if LANG_CXX11 -inline void Schedule::set_kickoff_time_input_arg(::std::string&& value) { - - kickoff_time_input_arg_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Schedule.kickoff_time_input_arg) -} -#endif -inline void Schedule::set_kickoff_time_input_arg(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Schedule.kickoff_time_input_arg) -} -inline void Schedule::set_kickoff_time_input_arg(const char* value, size_t size) { - - kickoff_time_input_arg_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Schedule.kickoff_time_input_arg) -} -inline ::std::string* Schedule::mutable_kickoff_time_input_arg() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Schedule.kickoff_time_input_arg) - return kickoff_time_input_arg_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Schedule::release_kickoff_time_input_arg() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Schedule.kickoff_time_input_arg) - - return kickoff_time_input_arg_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Schedule::set_allocated_kickoff_time_input_arg(::std::string* kickoff_time_input_arg) { - if (kickoff_time_input_arg != nullptr) { - - } else { - - } - kickoff_time_input_arg_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kickoff_time_input_arg); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Schedule.kickoff_time_input_arg) -} - -inline bool Schedule::has_ScheduleExpression() const { - return ScheduleExpression_case() != SCHEDULEEXPRESSION_NOT_SET; -} -inline void Schedule::clear_has_ScheduleExpression() { - _oneof_case_[0] = SCHEDULEEXPRESSION_NOT_SET; -} -inline Schedule::ScheduleExpressionCase Schedule::ScheduleExpression_case() const { - return Schedule::ScheduleExpressionCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::admin::FixedRateUnit> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::admin::FixedRateUnit>() { - return ::flyteidl::admin::FixedRateUnit_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fschedule_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc deleted file mode 100644 index b482e017c1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/signal.proto - -#include "flyteidl/admin/signal.pb.h" -#include "flyteidl/admin/signal.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h deleted file mode 100644 index f62c30d368..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/signal.proto -#ifndef GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED - -#include "flyteidl/admin/signal.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fsignal_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc deleted file mode 100644 index 804a064068..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.cc +++ /dev/null @@ -1,2603 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/signal.proto - -#include "flyteidl/admin/signal.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fsignal_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -namespace flyteidl { -namespace admin { -class SignalGetOrCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalGetOrCreateRequest_default_instance_; -class SignalListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalListRequest_default_instance_; -class SignalListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalList_default_instance_; -class SignalSetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalSetRequest_default_instance_; -class SignalSetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalSetResponse_default_instance_; -class SignalDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Signal_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsSignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_; - new (ptr) ::flyteidl::admin::SignalGetOrCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SignalGetOrCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto}, { - &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsSignalListRequest_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SignalListRequest_default_instance_; - new (ptr) ::flyteidl::admin::SignalListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SignalListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalListRequest_flyteidl_2fadmin_2fsignal_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsSignalList_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SignalList_default_instance_; - new (ptr) ::flyteidl::admin::SignalList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SignalList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalList_flyteidl_2fadmin_2fsignal_2eproto}, { - &scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base,}}; - -static void InitDefaultsSignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SignalSetRequest_default_instance_; - new (ptr) ::flyteidl::admin::SignalSetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SignalSetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsSignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto}, { - &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsSignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_SignalSetResponse_default_instance_; - new (ptr) ::flyteidl::admin::SignalSetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::SignalSetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto}, {}}; - -static void InitDefaultsSignal_flyteidl_2fadmin_2fsignal_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Signal_default_instance_; - new (ptr) ::flyteidl::admin::Signal(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Signal::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSignal_flyteidl_2fadmin_2fsignal_2eproto}, { - &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2fsignal_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[6]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fsignal_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fsignal_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fsignal_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalGetOrCreateRequest, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, workflow_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalListRequest, sort_by_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, signals_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetRequest, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::SignalSetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Signal, value_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::SignalGetOrCreateRequest)}, - { 7, -1, sizeof(::flyteidl::admin::SignalListRequest)}, - { 17, -1, sizeof(::flyteidl::admin::SignalList)}, - { 24, -1, sizeof(::flyteidl::admin::SignalSetRequest)}, - { 31, -1, sizeof(::flyteidl::admin::SignalSetResponse)}, - { 36, -1, sizeof(::flyteidl::admin::Signal)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SignalListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SignalList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SignalSetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_SignalSetResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Signal_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto, "flyteidl/admin/signal.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fsignal_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto, 6, file_level_enum_descriptors_flyteidl_2fadmin_2fsignal_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fsignal_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fsignal_2eproto[] = - "\n\033flyteidl/admin/signal.proto\022\016flyteidl." - "admin\032\033flyteidl/admin/common.proto\032\036flyt" - "eidl/core/identifier.proto\032\034flyteidl/cor" - "e/literals.proto\032\031flyteidl/core/types.pr" - "oto\"q\n\030SignalGetOrCreateRequest\022+\n\002id\030\001 " - "\001(\0132\037.flyteidl.core.SignalIdentifier\022(\n\004" - "type\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\264" - "\001\n\021SignalListRequest\022I\n\025workflow_executi" - "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" - "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" - "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" - "\024.flyteidl.admin.Sort\"D\n\nSignalList\022\'\n\007s" - "ignals\030\001 \003(\0132\026.flyteidl.admin.Signal\022\r\n\005" - "token\030\002 \001(\t\"f\n\020SignalSetRequest\022+\n\002id\030\001 " - "\001(\0132\037.flyteidl.core.SignalIdentifier\022%\n\005" - "value\030\002 \001(\0132\026.flyteidl.core.Literal\"\023\n\021S" - "ignalSetResponse\"\206\001\n\006Signal\022+\n\002id\030\001 \001(\0132" - "\037.flyteidl.core.SignalIdentifier\022(\n\004type" - "\030\002 \001(\0132\032.flyteidl.core.LiteralType\022%\n\005va" - "lue\030\003 \001(\0132\026.flyteidl.core.LiteralB=Z;git" - "hub.com/flyteorg/flyte/flyteidl/gen/pb-g" - "o/flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fsignal_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fsignal_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fsignal_2eproto, - "flyteidl/admin/signal.proto", &assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto, 864, -}; - -void AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[4] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fsignal_2eproto, deps, 4); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fsignal_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void SignalGetOrCreateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( - ::flyteidl::core::SignalIdentifier::internal_default_instance()); - ::flyteidl::admin::_SignalGetOrCreateRequest_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); -} -class SignalGetOrCreateRequest::HasBitSetters { - public: - static const ::flyteidl::core::SignalIdentifier& id(const SignalGetOrCreateRequest* msg); - static const ::flyteidl::core::LiteralType& type(const SignalGetOrCreateRequest* msg); -}; - -const ::flyteidl::core::SignalIdentifier& -SignalGetOrCreateRequest::HasBitSetters::id(const SignalGetOrCreateRequest* msg) { - return *msg->id_; -} -const ::flyteidl::core::LiteralType& -SignalGetOrCreateRequest::HasBitSetters::type(const SignalGetOrCreateRequest* msg) { - return *msg->type_; -} -void SignalGetOrCreateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void SignalGetOrCreateRequest::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalGetOrCreateRequest::kIdFieldNumber; -const int SignalGetOrCreateRequest::kTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalGetOrCreateRequest::SignalGetOrCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SignalGetOrCreateRequest) -} -SignalGetOrCreateRequest::SignalGetOrCreateRequest(const SignalGetOrCreateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalGetOrCreateRequest) -} - -void SignalGetOrCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&id_)) + sizeof(type_)); -} - -SignalGetOrCreateRequest::~SignalGetOrCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SignalGetOrCreateRequest) - SharedDtor(); -} - -void SignalGetOrCreateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete type_; -} - -void SignalGetOrCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalGetOrCreateRequest& SignalGetOrCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalGetOrCreateRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void SignalGetOrCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalGetOrCreateRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalGetOrCreateRequest::_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.SignalIdentifier 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::SignalIdentifier::_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; - } - // .flyteidl.core.LiteralType type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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 SignalGetOrCreateRequest::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.SignalGetOrCreateRequest) - 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.SignalIdentifier 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; - } - - // .flyteidl.core.LiteralType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } 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.SignalGetOrCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalGetOrCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalGetOrCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalGetOrCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(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.SignalGetOrCreateRequest) -} - -::google::protobuf::uint8* SignalGetOrCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalGetOrCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(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.SignalGetOrCreateRequest) - return target; -} - -size_t SignalGetOrCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalGetOrCreateRequest) - 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.SignalIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalGetOrCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalGetOrCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const SignalGetOrCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalGetOrCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalGetOrCreateRequest) - MergeFrom(*source); - } -} - -void SignalGetOrCreateRequest::MergeFrom(const SignalGetOrCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalGetOrCreateRequest) - 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::SignalIdentifier::MergeFrom(from.id()); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } -} - -void SignalGetOrCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalGetOrCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalGetOrCreateRequest::CopyFrom(const SignalGetOrCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalGetOrCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalGetOrCreateRequest::IsInitialized() const { - return true; -} - -void SignalGetOrCreateRequest::Swap(SignalGetOrCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalGetOrCreateRequest::InternalSwap(SignalGetOrCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(type_, other->type_); -} - -::google::protobuf::Metadata SignalGetOrCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_SignalListRequest_default_instance_._instance.get_mutable()->workflow_execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_SignalListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class SignalListRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id(const SignalListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const SignalListRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -SignalListRequest::HasBitSetters::workflow_execution_id(const SignalListRequest* msg) { - return *msg->workflow_execution_id_; -} -const ::flyteidl::admin::Sort& -SignalListRequest::HasBitSetters::sort_by(const SignalListRequest* msg) { - return *msg->sort_by_; -} -void SignalListRequest::clear_workflow_execution_id() { - if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { - delete workflow_execution_id_; - } - workflow_execution_id_ = nullptr; -} -void SignalListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalListRequest::kWorkflowExecutionIdFieldNumber; -const int SignalListRequest::kLimitFieldNumber; -const int SignalListRequest::kTokenFieldNumber; -const int SignalListRequest::kFiltersFieldNumber; -const int SignalListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalListRequest::SignalListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SignalListRequest) -} -SignalListRequest::SignalListRequest(const SignalListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_workflow_execution_id()) { - workflow_execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_id_); - } else { - workflow_execution_id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalListRequest) -} - -void SignalListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&workflow_execution_id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&workflow_execution_id_)) + sizeof(limit_)); -} - -SignalListRequest::~SignalListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SignalListRequest) - SharedDtor(); -} - -void SignalListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete workflow_execution_id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void SignalListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalListRequest& SignalListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalListRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void SignalListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && workflow_execution_id_ != nullptr) { - delete workflow_execution_id_; - } - workflow_execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalListRequest::_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.WorkflowExecutionIdentifier workflow_execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_workflow_execution_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; - } - // uint32 limit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SignalListRequest::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.SignalListRequest) - 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.WorkflowExecutionIdentifier workflow_execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SignalListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SignalListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.SignalListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_execution_id(this), output); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(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.SignalListRequest) -} - -::google::protobuf::uint8* SignalListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow_execution_id(this), target); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(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.SignalListRequest) - return target; -} - -size_t SignalListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalListRequest) - 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; - - // string token = 3; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 4; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - if (this->has_workflow_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_execution_id_); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalListRequest) - GOOGLE_DCHECK_NE(&from, this); - const SignalListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalListRequest) - MergeFrom(*source); - } -} - -void SignalListRequest::MergeFrom(const SignalListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_workflow_execution_id()) { - mutable_workflow_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution_id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void SignalListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalListRequest::CopyFrom(const SignalListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalListRequest::IsInitialized() const { - return true; -} - -void SignalListRequest::Swap(SignalListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalListRequest::InternalSwap(SignalListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(workflow_execution_id_, other->workflow_execution_id_); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata SignalListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalList::InitAsDefaultInstance() { -} -class SignalList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalList::kSignalsFieldNumber; -const int SignalList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalList::SignalList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SignalList) -} -SignalList::SignalList(const SignalList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - signals_(from.signals_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalList) -} - -void SignalList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SignalList::~SignalList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SignalList) - SharedDtor(); -} - -void SignalList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SignalList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalList& SignalList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalList_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void SignalList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signals_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalList::_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) { - // repeated .flyteidl.admin.Signal signals = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Signal::_InternalParse; - object = msg->add_signals(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.SignalList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SignalList::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.SignalList) - 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)) { - // repeated .flyteidl.admin.Signal signals = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_signals())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.SignalList.token")); - } 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.SignalList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Signal signals = 1; - for (unsigned int i = 0, - n = static_cast(this->signals_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->signals(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalList) -} - -::google::protobuf::uint8* SignalList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Signal signals = 1; - for (unsigned int i = 0, - n = static_cast(this->signals_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->signals(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.SignalList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.SignalList) - return target; -} - -size_t SignalList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalList) - 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; - - // repeated .flyteidl.admin.Signal signals = 1; - { - unsigned int count = static_cast(this->signals_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->signals(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalList) - GOOGLE_DCHECK_NE(&from, this); - const SignalList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalList) - MergeFrom(*source); - } -} - -void SignalList::MergeFrom(const SignalList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - signals_.MergeFrom(from.signals_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void SignalList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalList::CopyFrom(const SignalList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalList::IsInitialized() const { - return true; -} - -void SignalList::Swap(SignalList* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalList::InternalSwap(SignalList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&signals_)->InternalSwap(CastToBase(&other->signals_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata SignalList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalSetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_SignalSetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( - ::flyteidl::core::SignalIdentifier::internal_default_instance()); - ::flyteidl::admin::_SignalSetRequest_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); -} -class SignalSetRequest::HasBitSetters { - public: - static const ::flyteidl::core::SignalIdentifier& id(const SignalSetRequest* msg); - static const ::flyteidl::core::Literal& value(const SignalSetRequest* msg); -}; - -const ::flyteidl::core::SignalIdentifier& -SignalSetRequest::HasBitSetters::id(const SignalSetRequest* msg) { - return *msg->id_; -} -const ::flyteidl::core::Literal& -SignalSetRequest::HasBitSetters::value(const SignalSetRequest* msg) { - return *msg->value_; -} -void SignalSetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void SignalSetRequest::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalSetRequest::kIdFieldNumber; -const int SignalSetRequest::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalSetRequest::SignalSetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SignalSetRequest) -} -SignalSetRequest::SignalSetRequest(const SignalSetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalSetRequest) -} - -void SignalSetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&value_) - - reinterpret_cast(&id_)) + sizeof(value_)); -} - -SignalSetRequest::~SignalSetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SignalSetRequest) - SharedDtor(); -} - -void SignalSetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete value_; -} - -void SignalSetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalSetRequest& SignalSetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalSetRequest_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void SignalSetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalSetRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalSetRequest::_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.SignalIdentifier 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::SignalIdentifier::_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; - } - // .flyteidl.core.Literal value = 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::core::Literal::_InternalParse; - object = msg->mutable_value(); - 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 SignalSetRequest::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.SignalSetRequest) - 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.SignalIdentifier 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; - } - - // .flyteidl.core.Literal value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } 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.SignalSetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalSetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalSetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalSetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::value(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.SignalSetRequest) -} - -::google::protobuf::uint8* SignalSetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalSetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::value(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.SignalSetRequest) - return target; -} - -size_t SignalSetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalSetRequest) - 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.SignalIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalSetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalSetRequest) - GOOGLE_DCHECK_NE(&from, this); - const SignalSetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalSetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalSetRequest) - MergeFrom(*source); - } -} - -void SignalSetRequest::MergeFrom(const SignalSetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalSetRequest) - 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::SignalIdentifier::MergeFrom(from.id()); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } -} - -void SignalSetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalSetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalSetRequest::CopyFrom(const SignalSetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalSetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalSetRequest::IsInitialized() const { - return true; -} - -void SignalSetRequest::Swap(SignalSetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalSetRequest::InternalSwap(SignalSetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(value_, other->value_); -} - -::google::protobuf::Metadata SignalSetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalSetResponse::InitAsDefaultInstance() { -} -class SignalSetResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalSetResponse::SignalSetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.SignalSetResponse) -} -SignalSetResponse::SignalSetResponse(const SignalSetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.SignalSetResponse) -} - -void SignalSetResponse::SharedCtor() { -} - -SignalSetResponse::~SignalSetResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.SignalSetResponse) - SharedDtor(); -} - -void SignalSetResponse::SharedDtor() { -} - -void SignalSetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalSetResponse& SignalSetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalSetResponse_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void SignalSetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.SignalSetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalSetResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SignalSetResponse::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.SignalSetResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.SignalSetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.SignalSetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalSetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.SignalSetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.SignalSetResponse) -} - -::google::protobuf::uint8* SignalSetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.SignalSetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.SignalSetResponse) - return target; -} - -size_t SignalSetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.SignalSetResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalSetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.SignalSetResponse) - GOOGLE_DCHECK_NE(&from, this); - const SignalSetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.SignalSetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.SignalSetResponse) - MergeFrom(*source); - } -} - -void SignalSetResponse::MergeFrom(const SignalSetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.SignalSetResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void SignalSetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.SignalSetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalSetResponse::CopyFrom(const SignalSetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.SignalSetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalSetResponse::IsInitialized() const { - return true; -} - -void SignalSetResponse::Swap(SignalSetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalSetResponse::InternalSwap(SignalSetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata SignalSetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Signal::InitAsDefaultInstance() { - ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::SignalIdentifier*>( - ::flyteidl::core::SignalIdentifier::internal_default_instance()); - ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::admin::_Signal_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); -} -class Signal::HasBitSetters { - public: - static const ::flyteidl::core::SignalIdentifier& id(const Signal* msg); - static const ::flyteidl::core::LiteralType& type(const Signal* msg); - static const ::flyteidl::core::Literal& value(const Signal* msg); -}; - -const ::flyteidl::core::SignalIdentifier& -Signal::HasBitSetters::id(const Signal* msg) { - return *msg->id_; -} -const ::flyteidl::core::LiteralType& -Signal::HasBitSetters::type(const Signal* msg) { - return *msg->type_; -} -const ::flyteidl::core::Literal& -Signal::HasBitSetters::value(const Signal* msg) { - return *msg->value_; -} -void Signal::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void Signal::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -void Signal::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Signal::kIdFieldNumber; -const int Signal::kTypeFieldNumber; -const int Signal::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Signal::Signal() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Signal) -} -Signal::Signal(const Signal& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::SignalIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Signal) -} - -void Signal::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&value_) - - reinterpret_cast(&id_)) + sizeof(value_)); -} - -Signal::~Signal() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Signal) - SharedDtor(); -} - -void Signal::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete type_; - if (this != internal_default_instance()) delete value_; -} - -void Signal::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Signal& Signal::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Signal_flyteidl_2fadmin_2fsignal_2eproto.base); - return *internal_default_instance(); -} - - -void Signal::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Signal) - ::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; - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Signal::_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.SignalIdentifier 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::SignalIdentifier::_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; - } - // .flyteidl.core.LiteralType type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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.core.Literal value = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Literal::_InternalParse; - object = msg->mutable_value(); - 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 Signal::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.Signal) - 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.SignalIdentifier 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; - } - - // .flyteidl.core.LiteralType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Literal value = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } 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.Signal) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Signal) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Signal::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Signal) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(this), output); - } - - // .flyteidl.core.Literal value = 3; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::value(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.Signal) -} - -::google::protobuf::uint8* Signal::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Signal) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SignalIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(this), target); - } - - // .flyteidl.core.Literal value = 3; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::value(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.Signal) - return target; -} - -size_t Signal::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Signal) - 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.SignalIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - // .flyteidl.core.Literal value = 3; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Signal::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Signal) - GOOGLE_DCHECK_NE(&from, this); - const Signal* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Signal) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Signal) - MergeFrom(*source); - } -} - -void Signal::MergeFrom(const Signal& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Signal) - 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::SignalIdentifier::MergeFrom(from.id()); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } -} - -void Signal::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Signal) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Signal::CopyFrom(const Signal& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Signal) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Signal::IsInitialized() const { - return true; -} - -void Signal::Swap(Signal* other) { - if (other == this) return; - InternalSwap(other); -} -void Signal::InternalSwap(Signal* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(type_, other->type_); - swap(value_, other->value_); -} - -::google::protobuf::Metadata Signal::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fsignal_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fsignal_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalGetOrCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalGetOrCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SignalGetOrCreateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SignalListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalList* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SignalList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalSetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalSetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SignalSetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::SignalSetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::SignalSetResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::SignalSetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Signal* Arena::CreateMaybeMessage< ::flyteidl::admin::Signal >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Signal >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h deleted file mode 100644 index 98ddbf0ca2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/signal.pb.h +++ /dev/null @@ -1,1536 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/signal.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/types.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fsignal_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fsignal_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - 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] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto(); -namespace flyteidl { -namespace admin { -class Signal; -class SignalDefaultTypeInternal; -extern SignalDefaultTypeInternal _Signal_default_instance_; -class SignalGetOrCreateRequest; -class SignalGetOrCreateRequestDefaultTypeInternal; -extern SignalGetOrCreateRequestDefaultTypeInternal _SignalGetOrCreateRequest_default_instance_; -class SignalList; -class SignalListDefaultTypeInternal; -extern SignalListDefaultTypeInternal _SignalList_default_instance_; -class SignalListRequest; -class SignalListRequestDefaultTypeInternal; -extern SignalListRequestDefaultTypeInternal _SignalListRequest_default_instance_; -class SignalSetRequest; -class SignalSetRequestDefaultTypeInternal; -extern SignalSetRequestDefaultTypeInternal _SignalSetRequest_default_instance_; -class SignalSetResponse; -class SignalSetResponseDefaultTypeInternal; -extern SignalSetResponseDefaultTypeInternal _SignalSetResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Signal* Arena::CreateMaybeMessage<::flyteidl::admin::Signal>(Arena*); -template<> ::flyteidl::admin::SignalGetOrCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalGetOrCreateRequest>(Arena*); -template<> ::flyteidl::admin::SignalList* Arena::CreateMaybeMessage<::flyteidl::admin::SignalList>(Arena*); -template<> ::flyteidl::admin::SignalListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalListRequest>(Arena*); -template<> ::flyteidl::admin::SignalSetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::SignalSetRequest>(Arena*); -template<> ::flyteidl::admin::SignalSetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::SignalSetResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class SignalGetOrCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalGetOrCreateRequest) */ { - public: - SignalGetOrCreateRequest(); - virtual ~SignalGetOrCreateRequest(); - - SignalGetOrCreateRequest(const SignalGetOrCreateRequest& from); - - inline SignalGetOrCreateRequest& operator=(const SignalGetOrCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalGetOrCreateRequest(SignalGetOrCreateRequest&& from) noexcept - : SignalGetOrCreateRequest() { - *this = ::std::move(from); - } - - inline SignalGetOrCreateRequest& operator=(SignalGetOrCreateRequest&& 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 SignalGetOrCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalGetOrCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_SignalGetOrCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(SignalGetOrCreateRequest* other); - friend void swap(SignalGetOrCreateRequest& a, SignalGetOrCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalGetOrCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalGetOrCreateRequest* 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 SignalGetOrCreateRequest& from); - void MergeFrom(const SignalGetOrCreateRequest& 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(SignalGetOrCreateRequest* 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.SignalIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::SignalIdentifier& id() const; - ::flyteidl::core::SignalIdentifier* release_id(); - ::flyteidl::core::SignalIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::SignalIdentifier* id); - - // .flyteidl.core.LiteralType type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalGetOrCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::SignalIdentifier* id_; - ::flyteidl::core::LiteralType* type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalListRequest) */ { - public: - SignalListRequest(); - virtual ~SignalListRequest(); - - SignalListRequest(const SignalListRequest& from); - - inline SignalListRequest& operator=(const SignalListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalListRequest(SignalListRequest&& from) noexcept - : SignalListRequest() { - *this = ::std::move(from); - } - - inline SignalListRequest& operator=(SignalListRequest&& 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 SignalListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalListRequest* internal_default_instance() { - return reinterpret_cast( - &_SignalListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(SignalListRequest* other); - friend void swap(SignalListRequest& a, SignalListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalListRequest* 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 SignalListRequest& from); - void MergeFrom(const SignalListRequest& 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(SignalListRequest* 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 ------------------------------------------------------- - - // string token = 3; - void clear_token(); - static const int kTokenFieldNumber = 3; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 4; - void clear_filters(); - static const int kFiltersFieldNumber = 4; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - bool has_workflow_execution_id() const; - void clear_workflow_execution_id(); - static const int kWorkflowExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution_id(); - void set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalList) */ { - public: - SignalList(); - virtual ~SignalList(); - - SignalList(const SignalList& from); - - inline SignalList& operator=(const SignalList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalList(SignalList&& from) noexcept - : SignalList() { - *this = ::std::move(from); - } - - inline SignalList& operator=(SignalList&& 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 SignalList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalList* internal_default_instance() { - return reinterpret_cast( - &_SignalList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(SignalList* other); - friend void swap(SignalList& a, SignalList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalList* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalList* 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 SignalList& from); - void MergeFrom(const SignalList& 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(SignalList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Signal signals = 1; - int signals_size() const; - void clear_signals(); - static const int kSignalsFieldNumber = 1; - ::flyteidl::admin::Signal* mutable_signals(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >* - mutable_signals(); - const ::flyteidl::admin::Signal& signals(int index) const; - ::flyteidl::admin::Signal* add_signals(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >& - signals() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal > signals_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalSetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalSetRequest) */ { - public: - SignalSetRequest(); - virtual ~SignalSetRequest(); - - SignalSetRequest(const SignalSetRequest& from); - - inline SignalSetRequest& operator=(const SignalSetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalSetRequest(SignalSetRequest&& from) noexcept - : SignalSetRequest() { - *this = ::std::move(from); - } - - inline SignalSetRequest& operator=(SignalSetRequest&& 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 SignalSetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalSetRequest* internal_default_instance() { - return reinterpret_cast( - &_SignalSetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(SignalSetRequest* other); - friend void swap(SignalSetRequest& a, SignalSetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalSetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalSetRequest* 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 SignalSetRequest& from); - void MergeFrom(const SignalSetRequest& 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(SignalSetRequest* 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.SignalIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::SignalIdentifier& id() const; - ::flyteidl::core::SignalIdentifier* release_id(); - ::flyteidl::core::SignalIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::SignalIdentifier* id); - - // .flyteidl.core.Literal value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::SignalIdentifier* id_; - ::flyteidl::core::Literal* value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalSetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.SignalSetResponse) */ { - public: - SignalSetResponse(); - virtual ~SignalSetResponse(); - - SignalSetResponse(const SignalSetResponse& from); - - inline SignalSetResponse& operator=(const SignalSetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalSetResponse(SignalSetResponse&& from) noexcept - : SignalSetResponse() { - *this = ::std::move(from); - } - - inline SignalSetResponse& operator=(SignalSetResponse&& 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 SignalSetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalSetResponse* internal_default_instance() { - return reinterpret_cast( - &_SignalSetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(SignalSetResponse* other); - friend void swap(SignalSetResponse& a, SignalSetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalSetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalSetResponse* 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 SignalSetResponse& from); - void MergeFrom(const SignalSetResponse& 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(SignalSetResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// ------------------------------------------------------------------- - -class Signal final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Signal) */ { - public: - Signal(); - virtual ~Signal(); - - Signal(const Signal& from); - - inline Signal& operator=(const Signal& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Signal(Signal&& from) noexcept - : Signal() { - *this = ::std::move(from); - } - - inline Signal& operator=(Signal&& 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 Signal& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Signal* internal_default_instance() { - return reinterpret_cast( - &_Signal_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(Signal* other); - friend void swap(Signal& a, Signal& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Signal* New() const final { - return CreateMaybeMessage(nullptr); - } - - Signal* 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 Signal& from); - void MergeFrom(const Signal& 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(Signal* 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.SignalIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::SignalIdentifier& id() const; - ::flyteidl::core::SignalIdentifier* release_id(); - ::flyteidl::core::SignalIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::SignalIdentifier* id); - - // .flyteidl.core.LiteralType type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // .flyteidl.core.Literal value = 3; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 3; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Signal) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::SignalIdentifier* id_; - ::flyteidl::core::LiteralType* type_; - ::flyteidl::core::Literal* value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fsignal_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SignalGetOrCreateRequest - -// .flyteidl.core.SignalIdentifier id = 1; -inline bool SignalGetOrCreateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::SignalIdentifier& SignalGetOrCreateRequest::id() const { - const ::flyteidl::core::SignalIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalGetOrCreateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SignalIdentifier_default_instance_); -} -inline ::flyteidl::core::SignalIdentifier* SignalGetOrCreateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalGetOrCreateRequest.id) - - ::flyteidl::core::SignalIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::SignalIdentifier* SignalGetOrCreateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalGetOrCreateRequest.id) - return id_; -} -inline void SignalGetOrCreateRequest::set_allocated_id(::flyteidl::core::SignalIdentifier* 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.SignalGetOrCreateRequest.id) -} - -// .flyteidl.core.LiteralType type = 2; -inline bool SignalGetOrCreateRequest::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& SignalGetOrCreateRequest::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalGetOrCreateRequest.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* SignalGetOrCreateRequest::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalGetOrCreateRequest.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* SignalGetOrCreateRequest::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalGetOrCreateRequest.type) - return type_; -} -inline void SignalGetOrCreateRequest::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalGetOrCreateRequest.type) -} - -// ------------------------------------------------------------------- - -// SignalListRequest - -// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; -inline bool SignalListRequest::has_workflow_execution_id() const { - return this != internal_default_instance() && workflow_execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& SignalListRequest::workflow_execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.workflow_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalListRequest::release_workflow_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.workflow_execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_id_; - workflow_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalListRequest::mutable_workflow_execution_id() { - - if (workflow_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - workflow_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.workflow_execution_id) - return workflow_execution_id_; -} -inline void SignalListRequest::set_allocated_workflow_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_id_); - } - if (workflow_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution_id, submessage_arena); - } - - } else { - - } - workflow_execution_id_ = workflow_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.workflow_execution_id) -} - -// uint32 limit = 2; -inline void SignalListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 SignalListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.limit) - return limit_; -} -inline void SignalListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.limit) -} - -// string token = 3; -inline void SignalListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.token) - return token_.GetNoArena(); -} -inline void SignalListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.token) -} -#if LANG_CXX11 -inline void SignalListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalListRequest.token) -} -#endif -inline void SignalListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalListRequest.token) -} -inline void SignalListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalListRequest.token) -} -inline ::std::string* SignalListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.token) -} - -// string filters = 4; -inline void SignalListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.filters) - return filters_.GetNoArena(); -} -inline void SignalListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SignalListRequest.filters) -} -#if LANG_CXX11 -inline void SignalListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalListRequest.filters) -} -#endif -inline void SignalListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalListRequest.filters) -} -inline void SignalListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalListRequest.filters) -} -inline ::std::string* SignalListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool SignalListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& SignalListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* SignalListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* SignalListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalListRequest.sort_by) - return sort_by_; -} -inline void SignalListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalListRequest.sort_by) -} - -// ------------------------------------------------------------------- - -// SignalList - -// repeated .flyteidl.admin.Signal signals = 1; -inline int SignalList::signals_size() const { - return signals_.size(); -} -inline void SignalList::clear_signals() { - signals_.Clear(); -} -inline ::flyteidl::admin::Signal* SignalList::mutable_signals(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalList.signals) - return signals_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >* -SignalList::mutable_signals() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.SignalList.signals) - return &signals_; -} -inline const ::flyteidl::admin::Signal& SignalList::signals(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalList.signals) - return signals_.Get(index); -} -inline ::flyteidl::admin::Signal* SignalList::add_signals() { - // @@protoc_insertion_point(field_add:flyteidl.admin.SignalList.signals) - return signals_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Signal >& -SignalList::signals() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.SignalList.signals) - return signals_; -} - -// string token = 2; -inline void SignalList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalList.token) - return token_.GetNoArena(); -} -inline void SignalList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.SignalList.token) -} -#if LANG_CXX11 -inline void SignalList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.SignalList.token) -} -#endif -inline void SignalList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.SignalList.token) -} -inline void SignalList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.SignalList.token) -} -inline ::std::string* SignalList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalList.token) -} - -// ------------------------------------------------------------------- - -// SignalSetRequest - -// .flyteidl.core.SignalIdentifier id = 1; -inline bool SignalSetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::SignalIdentifier& SignalSetRequest::id() const { - const ::flyteidl::core::SignalIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalSetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SignalIdentifier_default_instance_); -} -inline ::flyteidl::core::SignalIdentifier* SignalSetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalSetRequest.id) - - ::flyteidl::core::SignalIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::SignalIdentifier* SignalSetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalSetRequest.id) - return id_; -} -inline void SignalSetRequest::set_allocated_id(::flyteidl::core::SignalIdentifier* 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.SignalSetRequest.id) -} - -// .flyteidl.core.Literal value = 2; -inline bool SignalSetRequest::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline const ::flyteidl::core::Literal& SignalSetRequest::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.admin.SignalSetRequest.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* SignalSetRequest::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.admin.SignalSetRequest.value) - - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Literal* SignalSetRequest::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.SignalSetRequest.value) - return value_; -} -inline void SignalSetRequest::set_allocated_value(::flyteidl::core::Literal* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.SignalSetRequest.value) -} - -// ------------------------------------------------------------------- - -// SignalSetResponse - -// ------------------------------------------------------------------- - -// Signal - -// .flyteidl.core.SignalIdentifier id = 1; -inline bool Signal::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::SignalIdentifier& Signal::id() const { - const ::flyteidl::core::SignalIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SignalIdentifier_default_instance_); -} -inline ::flyteidl::core::SignalIdentifier* Signal::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.id) - - ::flyteidl::core::SignalIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::SignalIdentifier* Signal::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.id) - return id_; -} -inline void Signal::set_allocated_id(::flyteidl::core::SignalIdentifier* 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.Signal.id) -} - -// .flyteidl.core.LiteralType type = 2; -inline bool Signal::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& Signal::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* Signal::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* Signal::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.type) - return type_; -} -inline void Signal::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Signal.type) -} - -// .flyteidl.core.Literal value = 3; -inline bool Signal::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline const ::flyteidl::core::Literal& Signal::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Signal.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* Signal::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Signal.value) - - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Literal* Signal::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Signal.value) - return value_; -} -inline void Signal::set_allocated_value(::flyteidl::core::Literal* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Signal.value) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fsignal_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc deleted file mode 100644 index 194ff6a044..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/task.proto - -#include "flyteidl/admin/task.pb.h" -#include "flyteidl/admin/task.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h deleted file mode 100644 index 226d935b0e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/task.proto -#ifndef GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED - -#include "flyteidl/admin/task.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2ftask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc deleted file mode 100644 index b63c75f458..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.cc +++ /dev/null @@ -1,2400 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task.proto - -#include "flyteidl/admin/task.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Task_flyteidl_2fadmin_2ftask_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace admin { -class TaskCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskCreateRequest_default_instance_; -class TaskCreateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskCreateResponse_default_instance_; -class TaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Task_default_instance_; -class TaskListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskList_default_instance_; -class TaskSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskSpec_default_instance_; -class TaskClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskClosure_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsTaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskCreateRequest_default_instance_; - new (ptr) ::flyteidl::admin::TaskCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base,}}; - -static void InitDefaultsTaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskCreateResponse_default_instance_; - new (ptr) ::flyteidl::admin::TaskCreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskCreateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto}, {}}; - -static void InitDefaultsTask_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Task_default_instance_; - new (ptr) ::flyteidl::admin::Task(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Task::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Task_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTask_flyteidl_2fadmin_2ftask_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base,}}; - -static void InitDefaultsTaskList_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskList_default_instance_; - new (ptr) ::flyteidl::admin::TaskList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskList_flyteidl_2fadmin_2ftask_2eproto}, { - &scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base,}}; - -static void InitDefaultsTaskSpec_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskSpec_default_instance_; - new (ptr) ::flyteidl::admin::TaskSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskSpec_flyteidl_2fadmin_2ftask_2eproto}, { - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; - -static void InitDefaultsTaskClosure_flyteidl_2fadmin_2ftask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskClosure_default_instance_; - new (ptr) ::flyteidl::admin::TaskClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskClosure_flyteidl_2fadmin_2ftask_2eproto}, { - &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2ftask_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[6]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2ftask_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2ftask_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2ftask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateRequest, spec_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskCreateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, closure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Task, short_description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, tasks_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, template__), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskSpec, description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, compiled_task_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskClosure, created_at_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::TaskCreateRequest)}, - { 7, -1, sizeof(::flyteidl::admin::TaskCreateResponse)}, - { 12, -1, sizeof(::flyteidl::admin::Task)}, - { 20, -1, sizeof(::flyteidl::admin::TaskList)}, - { 27, -1, sizeof(::flyteidl::admin::TaskSpec)}, - { 34, -1, sizeof(::flyteidl::admin::TaskClosure)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_TaskCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskCreateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Task_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskSpec_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskClosure_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2ftask_2eproto, "flyteidl/admin/task.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2ftask_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2ftask_2eproto, 6, file_level_enum_descriptors_flyteidl_2fadmin_2ftask_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2ftask_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2ftask_2eproto[] = - "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" - "min\032\036flyteidl/core/identifier.proto\032\031fly" - "teidl/core/tasks.proto\032\034flyteidl/core/co" - "mpiler.proto\032\'flyteidl/admin/description" - "_entity.proto\032\037google/protobuf/timestamp" - ".proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132" - "\031.flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\013" - "2\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreate" - "Response\"v\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl." - "core.Identifier\022,\n\007closure\030\002 \001(\0132\033.flyte" - "idl.admin.TaskClosure\022\031\n\021short_descripti" - "on\030\003 \001(\t\">\n\010TaskList\022#\n\005tasks\030\001 \003(\0132\024.fl" - "yteidl.admin.Task\022\r\n\005token\030\002 \001(\t\"q\n\010Task" - "Spec\022-\n\010template\030\001 \001(\0132\033.flyteidl.core.T" - "askTemplate\0226\n\013description\030\002 \001(\0132!.flyte" - "idl.admin.DescriptionEntity\"q\n\013TaskClosu" - "re\0222\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.cor" - "e.CompiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.goo" - "gle.protobuf.TimestampB=Z;github.com/fly" - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" - "adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2ftask_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2ftask_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2ftask_2eproto, - "flyteidl/admin/task.proto", &assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto, 813, -}; - -void AddDescriptors_flyteidl_2fadmin_2ftask_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = - { - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2ftask_2eproto, deps, 5); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2ftask_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2ftask_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void TaskCreateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_TaskCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::TaskSpec*>( - ::flyteidl::admin::TaskSpec::internal_default_instance()); -} -class TaskCreateRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const TaskCreateRequest* msg); - static const ::flyteidl::admin::TaskSpec& spec(const TaskCreateRequest* msg); -}; - -const ::flyteidl::core::Identifier& -TaskCreateRequest::HasBitSetters::id(const TaskCreateRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::TaskSpec& -TaskCreateRequest::HasBitSetters::spec(const TaskCreateRequest* msg) { - return *msg->spec_; -} -void TaskCreateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskCreateRequest::kIdFieldNumber; -const int TaskCreateRequest::kSpecFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskCreateRequest::TaskCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateRequest) -} -TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& 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; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::TaskSpec(*from.spec_); - } else { - spec_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateRequest) -} - -void TaskCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&spec_) - - reinterpret_cast(&id_)) + sizeof(spec_)); -} - -TaskCreateRequest::~TaskCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateRequest) - SharedDtor(); -} - -void TaskCreateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete spec_; -} - -void TaskCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskCreateRequest& TaskCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void TaskCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskCreateRequest::_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; - } - // .flyteidl.admin.TaskSpec spec = 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::TaskSpec::_InternalParse; - object = msg->mutable_spec(); - 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 TaskCreateRequest::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.TaskCreateRequest) - 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; - } - - // .flyteidl.admin.TaskSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } 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.TaskCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateRequest) - ::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); - } - - // .flyteidl.admin.TaskSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(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.TaskCreateRequest) -} - -::google::protobuf::uint8* TaskCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateRequest) - ::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); - } - - // .flyteidl.admin.TaskSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(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.TaskCreateRequest) - return target; -} - -size_t TaskCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateRequest) - 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_); - } - - // .flyteidl.admin.TaskSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateRequest) - MergeFrom(*source); - } -} - -void TaskCreateRequest::MergeFrom(const TaskCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateRequest) - 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()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::TaskSpec::MergeFrom(from.spec()); - } -} - -void TaskCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskCreateRequest::CopyFrom(const TaskCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskCreateRequest::IsInitialized() const { - return true; -} - -void TaskCreateRequest::Swap(TaskCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(spec_, other->spec_); -} - -::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskCreateResponse::InitAsDefaultInstance() { -} -class TaskCreateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskCreateResponse::TaskCreateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskCreateResponse) -} -TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskCreateResponse) -} - -void TaskCreateResponse::SharedCtor() { -} - -TaskCreateResponse::~TaskCreateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskCreateResponse) - SharedDtor(); -} - -void TaskCreateResponse::SharedDtor() { -} - -void TaskCreateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskCreateResponse& TaskCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void TaskCreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskCreateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskCreateResponse::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.TaskCreateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.TaskCreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskCreateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskCreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskCreateResponse) -} - -::google::protobuf::uint8* TaskCreateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.TaskCreateResponse) - return target; -} - -size_t TaskCreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskCreateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskCreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskCreateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskCreateResponse) - MergeFrom(*source); - } -} - -void TaskCreateResponse::MergeFrom(const TaskCreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void TaskCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskCreateResponse::CopyFrom(const TaskCreateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskCreateResponse::IsInitialized() const { - return true; -} - -void TaskCreateResponse::Swap(TaskCreateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Task::InitAsDefaultInstance() { - ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_Task_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskClosure*>( - ::flyteidl::admin::TaskClosure::internal_default_instance()); -} -class Task::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const Task* msg); - static const ::flyteidl::admin::TaskClosure& closure(const Task* msg); -}; - -const ::flyteidl::core::Identifier& -Task::HasBitSetters::id(const Task* msg) { - return *msg->id_; -} -const ::flyteidl::admin::TaskClosure& -Task::HasBitSetters::closure(const Task* msg) { - return *msg->closure_; -} -void Task::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Task::kIdFieldNumber; -const int Task::kClosureFieldNumber; -const int Task::kShortDescriptionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Task::Task() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Task) -} -Task::Task(const Task& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.short_description().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::TaskClosure(*from.closure_); - } else { - closure_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Task) -} - -void Task::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&closure_) - - reinterpret_cast(&id_)) + sizeof(closure_)); -} - -Task::~Task() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Task) - SharedDtor(); -} - -void Task::SharedDtor() { - short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete closure_; -} - -void Task::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Task& Task::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Task_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void Task::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Task) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Task::_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; - } - // .flyteidl.admin.TaskClosure closure = 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::TaskClosure::_InternalParse; - object = msg->mutable_closure(); - 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; - } - // string short_description = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Task.short_description"); - object = msg->mutable_short_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Task::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.Task) - 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; - } - - // .flyteidl.admin.TaskClosure closure = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } else { - goto handle_unusual; - } - break; - } - - // string short_description = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Task.short_description")); - } 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.Task) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Task) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Task::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Task) - ::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); - } - - // .flyteidl.admin.TaskClosure closure = 2; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::closure(this), output); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Task.short_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->short_description(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Task) -} - -::google::protobuf::uint8* Task::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Task) - ::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); - } - - // .flyteidl.admin.TaskClosure closure = 2; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::closure(this), target); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Task.short_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->short_description(), 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.Task) - return target; -} - -size_t Task::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Task) - 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; - - // string short_description = 3; - if (this->short_description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_description()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.TaskClosure closure = 2; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Task::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Task) - GOOGLE_DCHECK_NE(&from, this); - const Task* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Task) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Task) - MergeFrom(*source); - } -} - -void Task::MergeFrom(const Task& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Task) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.short_description().size() > 0) { - - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::TaskClosure::MergeFrom(from.closure()); - } -} - -void Task::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Task) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Task::CopyFrom(const Task& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Task) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Task::IsInitialized() const { - return true; -} - -void Task::Swap(Task* other) { - if (other == this) return; - InternalSwap(other); -} -void Task::InternalSwap(Task* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(closure_, other->closure_); -} - -::google::protobuf::Metadata Task::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskList::InitAsDefaultInstance() { -} -class TaskList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskList::kTasksFieldNumber; -const int TaskList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskList::TaskList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskList) -} -TaskList::TaskList(const TaskList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tasks_(from.tasks_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskList) -} - -void TaskList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskList::~TaskList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskList) - SharedDtor(); -} - -void TaskList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskList& TaskList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskList_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void TaskList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tasks_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskList::_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) { - // repeated .flyteidl.admin.Task tasks = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Task::_InternalParse; - object = msg->add_tasks(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskList::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.TaskList) - 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)) { - // repeated .flyteidl.admin.Task tasks = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tasks())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskList.token")); - } 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.TaskList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Task tasks = 1; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->tasks(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskList) -} - -::google::protobuf::uint8* TaskList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Task tasks = 1; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->tasks(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.TaskList) - return target; -} - -size_t TaskList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskList) - 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; - - // repeated .flyteidl.admin.Task tasks = 1; - { - unsigned int count = static_cast(this->tasks_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tasks(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskList) - GOOGLE_DCHECK_NE(&from, this); - const TaskList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskList) - MergeFrom(*source); - } -} - -void TaskList::MergeFrom(const TaskList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tasks_.MergeFrom(from.tasks_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void TaskList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskList::CopyFrom(const TaskList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskList::IsInitialized() const { - return true; -} - -void TaskList::Swap(TaskList* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskList::InternalSwap(TaskList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskSpec::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( - ::flyteidl::core::TaskTemplate::internal_default_instance()); - ::flyteidl::admin::_TaskSpec_default_instance_._instance.get_mutable()->description_ = const_cast< ::flyteidl::admin::DescriptionEntity*>( - ::flyteidl::admin::DescriptionEntity::internal_default_instance()); -} -class TaskSpec::HasBitSetters { - public: - static const ::flyteidl::core::TaskTemplate& template_(const TaskSpec* msg); - static const ::flyteidl::admin::DescriptionEntity& description(const TaskSpec* msg); -}; - -const ::flyteidl::core::TaskTemplate& -TaskSpec::HasBitSetters::template_(const TaskSpec* msg) { - return *msg->template__; -} -const ::flyteidl::admin::DescriptionEntity& -TaskSpec::HasBitSetters::description(const TaskSpec* msg) { - return *msg->description_; -} -void TaskSpec::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -void TaskSpec::clear_description() { - if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { - delete description_; - } - description_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskSpec::kTemplateFieldNumber; -const int TaskSpec::kDescriptionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskSpec::TaskSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskSpec) -} -TaskSpec::TaskSpec(const TaskSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_template_()) { - template__ = new ::flyteidl::core::TaskTemplate(*from.template__); - } else { - template__ = nullptr; - } - if (from.has_description()) { - description_ = new ::flyteidl::admin::DescriptionEntity(*from.description_); - } else { - description_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskSpec) -} - -void TaskSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); - ::memset(&template__, 0, static_cast( - reinterpret_cast(&description_) - - reinterpret_cast(&template__)) + sizeof(description_)); -} - -TaskSpec::~TaskSpec() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskSpec) - SharedDtor(); -} - -void TaskSpec::SharedDtor() { - if (this != internal_default_instance()) delete template__; - if (this != internal_default_instance()) delete description_; -} - -void TaskSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskSpec& TaskSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskSpec_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void TaskSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { - delete description_; - } - description_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskSpec::_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.TaskTemplate template = 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::TaskTemplate::_InternalParse; - object = msg->mutable_template_(); - 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.DescriptionEntity description = 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::DescriptionEntity::_InternalParse; - object = msg->mutable_description(); - 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 TaskSpec::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.TaskSpec) - 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.TaskTemplate template = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.DescriptionEntity description = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_description())); - } 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.TaskSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskTemplate template = 1; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::template_(this), output); - } - - // .flyteidl.admin.DescriptionEntity description = 2; - if (this->has_description()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::description(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.TaskSpec) -} - -::google::protobuf::uint8* TaskSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskTemplate template = 1; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::template_(this), target); - } - - // .flyteidl.admin.DescriptionEntity description = 2; - if (this->has_description()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::description(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.TaskSpec) - return target; -} - -size_t TaskSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskSpec) - 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.TaskTemplate template = 1; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - // .flyteidl.admin.DescriptionEntity description = 2; - if (this->has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *description_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskSpec) - GOOGLE_DCHECK_NE(&from, this); - const TaskSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskSpec) - MergeFrom(*source); - } -} - -void TaskSpec::MergeFrom(const TaskSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskSpec) - 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_template_()) { - mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); - } - if (from.has_description()) { - mutable_description()->::flyteidl::admin::DescriptionEntity::MergeFrom(from.description()); - } -} - -void TaskSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskSpec::CopyFrom(const TaskSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskSpec::IsInitialized() const { - return true; -} - -void TaskSpec::Swap(TaskSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskSpec::InternalSwap(TaskSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(template__, other->template__); - swap(description_, other->description_); -} - -::google::protobuf::Metadata TaskSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->compiled_task_ = const_cast< ::flyteidl::core::CompiledTask*>( - ::flyteidl::core::CompiledTask::internal_default_instance()); - ::flyteidl::admin::_TaskClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class TaskClosure::HasBitSetters { - public: - static const ::flyteidl::core::CompiledTask& compiled_task(const TaskClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const TaskClosure* msg); -}; - -const ::flyteidl::core::CompiledTask& -TaskClosure::HasBitSetters::compiled_task(const TaskClosure* msg) { - return *msg->compiled_task_; -} -const ::google::protobuf::Timestamp& -TaskClosure::HasBitSetters::created_at(const TaskClosure* msg) { - return *msg->created_at_; -} -void TaskClosure::clear_compiled_task() { - if (GetArenaNoVirtual() == nullptr && compiled_task_ != nullptr) { - delete compiled_task_; - } - compiled_task_ = nullptr; -} -void TaskClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskClosure::kCompiledTaskFieldNumber; -const int TaskClosure::kCreatedAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskClosure::TaskClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskClosure) -} -TaskClosure::TaskClosure(const TaskClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_compiled_task()) { - compiled_task_ = new ::flyteidl::core::CompiledTask(*from.compiled_task_); - } else { - compiled_task_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskClosure) -} - -void TaskClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); - ::memset(&compiled_task_, 0, static_cast( - reinterpret_cast(&created_at_) - - reinterpret_cast(&compiled_task_)) + sizeof(created_at_)); -} - -TaskClosure::~TaskClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskClosure) - SharedDtor(); -} - -void TaskClosure::SharedDtor() { - if (this != internal_default_instance()) delete compiled_task_; - if (this != internal_default_instance()) delete created_at_; -} - -void TaskClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskClosure& TaskClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskClosure_flyteidl_2fadmin_2ftask_2eproto.base); - return *internal_default_instance(); -} - - -void TaskClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && compiled_task_ != nullptr) { - delete compiled_task_; - } - compiled_task_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskClosure::_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.CompiledTask compiled_task = 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::CompiledTask::_InternalParse; - object = msg->mutable_compiled_task(); - 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; - } - // .google.protobuf.Timestamp created_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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 TaskClosure::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.TaskClosure) - 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.CompiledTask compiled_task = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_compiled_task())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } 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.TaskClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledTask compiled_task = 1; - if (this->has_compiled_task()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::compiled_task(this), output); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::created_at(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.TaskClosure) -} - -::google::protobuf::uint8* TaskClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledTask compiled_task = 1; - if (this->has_compiled_task()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::compiled_task(this), target); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::created_at(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.TaskClosure) - return target; -} - -size_t TaskClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskClosure) - 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.CompiledTask compiled_task = 1; - if (this->has_compiled_task()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *compiled_task_); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskClosure) - GOOGLE_DCHECK_NE(&from, this); - const TaskClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskClosure) - MergeFrom(*source); - } -} - -void TaskClosure::MergeFrom(const TaskClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskClosure) - 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_compiled_task()) { - mutable_compiled_task()->::flyteidl::core::CompiledTask::MergeFrom(from.compiled_task()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } -} - -void TaskClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskClosure::CopyFrom(const TaskClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskClosure::IsInitialized() const { - return true; -} - -void TaskClosure::Swap(TaskClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskClosure::InternalSwap(TaskClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(compiled_task_, other->compiled_task_); - swap(created_at_, other->created_at_); -} - -::google::protobuf::Metadata TaskClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskCreateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskCreateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskCreateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Task* Arena::CreateMaybeMessage< ::flyteidl::admin::Task >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Task >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskList* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskSpec* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskClosure >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h deleted file mode 100644 index b11636d135..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task.pb.h +++ /dev/null @@ -1,1406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/compiler.pb.h" -#include "flyteidl/admin/description_entity.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2ftask_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - 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] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2ftask_2eproto(); -namespace flyteidl { -namespace admin { -class Task; -class TaskDefaultTypeInternal; -extern TaskDefaultTypeInternal _Task_default_instance_; -class TaskClosure; -class TaskClosureDefaultTypeInternal; -extern TaskClosureDefaultTypeInternal _TaskClosure_default_instance_; -class TaskCreateRequest; -class TaskCreateRequestDefaultTypeInternal; -extern TaskCreateRequestDefaultTypeInternal _TaskCreateRequest_default_instance_; -class TaskCreateResponse; -class TaskCreateResponseDefaultTypeInternal; -extern TaskCreateResponseDefaultTypeInternal _TaskCreateResponse_default_instance_; -class TaskList; -class TaskListDefaultTypeInternal; -extern TaskListDefaultTypeInternal _TaskList_default_instance_; -class TaskSpec; -class TaskSpecDefaultTypeInternal; -extern TaskSpecDefaultTypeInternal _TaskSpec_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Task* Arena::CreateMaybeMessage<::flyteidl::admin::Task>(Arena*); -template<> ::flyteidl::admin::TaskClosure* Arena::CreateMaybeMessage<::flyteidl::admin::TaskClosure>(Arena*); -template<> ::flyteidl::admin::TaskCreateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskCreateRequest>(Arena*); -template<> ::flyteidl::admin::TaskCreateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskCreateResponse>(Arena*); -template<> ::flyteidl::admin::TaskList* Arena::CreateMaybeMessage<::flyteidl::admin::TaskList>(Arena*); -template<> ::flyteidl::admin::TaskSpec* Arena::CreateMaybeMessage<::flyteidl::admin::TaskSpec>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class TaskCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateRequest) */ { - public: - TaskCreateRequest(); - virtual ~TaskCreateRequest(); - - TaskCreateRequest(const TaskCreateRequest& from); - - inline TaskCreateRequest& operator=(const TaskCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskCreateRequest(TaskCreateRequest&& from) noexcept - : TaskCreateRequest() { - *this = ::std::move(from); - } - - inline TaskCreateRequest& operator=(TaskCreateRequest&& 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 TaskCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(TaskCreateRequest* other); - friend void swap(TaskCreateRequest& a, TaskCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskCreateRequest* 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 TaskCreateRequest& from); - void MergeFrom(const TaskCreateRequest& 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(TaskCreateRequest* 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); - - // .flyteidl.admin.TaskSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::admin::TaskSpec& spec() const; - ::flyteidl::admin::TaskSpec* release_spec(); - ::flyteidl::admin::TaskSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::TaskSpec* spec); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::TaskSpec* spec_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskCreateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskCreateResponse) */ { - public: - TaskCreateResponse(); - virtual ~TaskCreateResponse(); - - TaskCreateResponse(const TaskCreateResponse& from); - - inline TaskCreateResponse& operator=(const TaskCreateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskCreateResponse(TaskCreateResponse&& from) noexcept - : TaskCreateResponse() { - *this = ::std::move(from); - } - - inline TaskCreateResponse& operator=(TaskCreateResponse&& 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 TaskCreateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskCreateResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskCreateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(TaskCreateResponse* other); - friend void swap(TaskCreateResponse& a, TaskCreateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskCreateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskCreateResponse* 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 TaskCreateResponse& from); - void MergeFrom(const TaskCreateResponse& 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(TaskCreateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// ------------------------------------------------------------------- - -class Task final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Task) */ { - public: - Task(); - virtual ~Task(); - - Task(const Task& from); - - inline Task& operator=(const Task& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Task(Task&& from) noexcept - : Task() { - *this = ::std::move(from); - } - - inline Task& operator=(Task&& 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 Task& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Task* internal_default_instance() { - return reinterpret_cast( - &_Task_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Task* other); - friend void swap(Task& a, Task& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Task* New() const final { - return CreateMaybeMessage(nullptr); - } - - Task* 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 Task& from); - void MergeFrom(const Task& 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(Task* 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 ------------------------------------------------------- - - // string short_description = 3; - void clear_short_description(); - static const int kShortDescriptionFieldNumber = 3; - const ::std::string& short_description() const; - void set_short_description(const ::std::string& value); - #if LANG_CXX11 - void set_short_description(::std::string&& value); - #endif - void set_short_description(const char* value); - void set_short_description(const char* value, size_t size); - ::std::string* mutable_short_description(); - ::std::string* release_short_description(); - void set_allocated_short_description(::std::string* short_description); - - // .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); - - // .flyteidl.admin.TaskClosure closure = 2; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 2; - const ::flyteidl::admin::TaskClosure& closure() const; - ::flyteidl::admin::TaskClosure* release_closure(); - ::flyteidl::admin::TaskClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::TaskClosure* closure); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr short_description_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::TaskClosure* closure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskList) */ { - public: - TaskList(); - virtual ~TaskList(); - - TaskList(const TaskList& from); - - inline TaskList& operator=(const TaskList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskList(TaskList&& from) noexcept - : TaskList() { - *this = ::std::move(from); - } - - inline TaskList& operator=(TaskList&& 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 TaskList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskList* internal_default_instance() { - return reinterpret_cast( - &_TaskList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskList* other); - friend void swap(TaskList& a, TaskList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskList* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskList* 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 TaskList& from); - void MergeFrom(const TaskList& 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(TaskList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Task tasks = 1; - int tasks_size() const; - void clear_tasks(); - static const int kTasksFieldNumber = 1; - ::flyteidl::admin::Task* mutable_tasks(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* - mutable_tasks(); - const ::flyteidl::admin::Task& tasks(int index) const; - ::flyteidl::admin::Task* add_tasks(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& - tasks() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task > tasks_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskSpec) */ { - public: - TaskSpec(); - virtual ~TaskSpec(); - - TaskSpec(const TaskSpec& from); - - inline TaskSpec& operator=(const TaskSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskSpec(TaskSpec&& from) noexcept - : TaskSpec() { - *this = ::std::move(from); - } - - inline TaskSpec& operator=(TaskSpec&& 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 TaskSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskSpec* internal_default_instance() { - return reinterpret_cast( - &_TaskSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(TaskSpec* other); - friend void swap(TaskSpec& a, TaskSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskSpec* 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 TaskSpec& from); - void MergeFrom(const TaskSpec& 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(TaskSpec* 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.TaskTemplate template = 1; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 1; - const ::flyteidl::core::TaskTemplate& template_() const; - ::flyteidl::core::TaskTemplate* release_template_(); - ::flyteidl::core::TaskTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); - - // .flyteidl.admin.DescriptionEntity description = 2; - bool has_description() const; - void clear_description(); - static const int kDescriptionFieldNumber = 2; - const ::flyteidl::admin::DescriptionEntity& description() const; - ::flyteidl::admin::DescriptionEntity* release_description(); - ::flyteidl::admin::DescriptionEntity* mutable_description(); - void set_allocated_description(::flyteidl::admin::DescriptionEntity* description); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskTemplate* template__; - ::flyteidl::admin::DescriptionEntity* description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskClosure) */ { - public: - TaskClosure(); - virtual ~TaskClosure(); - - TaskClosure(const TaskClosure& from); - - inline TaskClosure& operator=(const TaskClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskClosure(TaskClosure&& from) noexcept - : TaskClosure() { - *this = ::std::move(from); - } - - inline TaskClosure& operator=(TaskClosure&& 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 TaskClosure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskClosure* internal_default_instance() { - return reinterpret_cast( - &_TaskClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(TaskClosure* other); - friend void swap(TaskClosure& a, TaskClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskClosure* 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 TaskClosure& from); - void MergeFrom(const TaskClosure& 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(TaskClosure* 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.CompiledTask compiled_task = 1; - bool has_compiled_task() const; - void clear_compiled_task(); - static const int kCompiledTaskFieldNumber = 1; - const ::flyteidl::core::CompiledTask& compiled_task() const; - ::flyteidl::core::CompiledTask* release_compiled_task(); - ::flyteidl::core::CompiledTask* mutable_compiled_task(); - void set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task); - - // .google.protobuf.Timestamp created_at = 2; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 2; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::CompiledTask* compiled_task_; - ::google::protobuf::Timestamp* created_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TaskCreateRequest - -// .flyteidl.core.Identifier id = 1; -inline bool TaskCreateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& TaskCreateRequest::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* TaskCreateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* TaskCreateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.id) - return id_; -} -inline void TaskCreateRequest::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.TaskCreateRequest.id) -} - -// .flyteidl.admin.TaskSpec spec = 2; -inline bool TaskCreateRequest::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void TaskCreateRequest::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::TaskSpec& TaskCreateRequest::spec() const { - const ::flyteidl::admin::TaskSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskCreateRequest.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskSpec_default_instance_); -} -inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskCreateRequest.spec) - - ::flyteidl::admin::TaskSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskSpec* TaskCreateRequest::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskCreateRequest.spec) - return spec_; -} -inline void TaskCreateRequest::set_allocated_spec(::flyteidl::admin::TaskSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskCreateRequest.spec) -} - -// ------------------------------------------------------------------- - -// TaskCreateResponse - -// ------------------------------------------------------------------- - -// Task - -// .flyteidl.core.Identifier id = 1; -inline bool Task::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& Task::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Task.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* Task::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Task.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* Task::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.id) - return id_; -} -inline void Task::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.Task.id) -} - -// .flyteidl.admin.TaskClosure closure = 2; -inline bool Task::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void Task::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::TaskClosure& Task::closure() const { - const ::flyteidl::admin::TaskClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Task.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskClosure_default_instance_); -} -inline ::flyteidl::admin::TaskClosure* Task::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Task.closure) - - ::flyteidl::admin::TaskClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskClosure* Task::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.closure) - return closure_; -} -inline void Task::set_allocated_closure(::flyteidl::admin::TaskClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.closure) -} - -// string short_description = 3; -inline void Task::clear_short_description() { - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Task::short_description() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Task.short_description) - return short_description_.GetNoArena(); -} -inline void Task::set_short_description(const ::std::string& value) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Task.short_description) -} -#if LANG_CXX11 -inline void Task::set_short_description(::std::string&& value) { - - short_description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Task.short_description) -} -#endif -inline void Task::set_short_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Task.short_description) -} -inline void Task::set_short_description(const char* value, size_t size) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Task.short_description) -} -inline ::std::string* Task::mutable_short_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Task.short_description) - return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Task::release_short_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Task.short_description) - - return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Task::set_allocated_short_description(::std::string* short_description) { - if (short_description != nullptr) { - - } else { - - } - short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Task.short_description) -} - -// ------------------------------------------------------------------- - -// TaskList - -// repeated .flyteidl.admin.Task tasks = 1; -inline int TaskList::tasks_size() const { - return tasks_.size(); -} -inline void TaskList::clear_tasks() { - tasks_.Clear(); -} -inline ::flyteidl::admin::Task* TaskList::mutable_tasks(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.tasks) - return tasks_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >* -TaskList::mutable_tasks() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskList.tasks) - return &tasks_; -} -inline const ::flyteidl::admin::Task& TaskList::tasks(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.tasks) - return tasks_.Get(index); -} -inline ::flyteidl::admin::Task* TaskList::add_tasks() { - // @@protoc_insertion_point(field_add:flyteidl.admin.TaskList.tasks) - return tasks_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Task >& -TaskList::tasks() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.TaskList.tasks) - return tasks_; -} - -// string token = 2; -inline void TaskList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskList.token) - return token_.GetNoArena(); -} -inline void TaskList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskList.token) -} -#if LANG_CXX11 -inline void TaskList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskList.token) -} -#endif -inline void TaskList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskList.token) -} -inline void TaskList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskList.token) -} -inline ::std::string* TaskList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskList.token) -} - -// ------------------------------------------------------------------- - -// TaskSpec - -// .flyteidl.core.TaskTemplate template = 1; -inline bool TaskSpec::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::TaskTemplate& TaskSpec::template_() const { - const ::flyteidl::core::TaskTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskSpec.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); -} -inline ::flyteidl::core::TaskTemplate* TaskSpec::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskSpec.template) - - ::flyteidl::core::TaskTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskTemplate* TaskSpec::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskSpec.template) - return template__; -} -inline void TaskSpec::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskSpec.template) -} - -// .flyteidl.admin.DescriptionEntity description = 2; -inline bool TaskSpec::has_description() const { - return this != internal_default_instance() && description_ != nullptr; -} -inline const ::flyteidl::admin::DescriptionEntity& TaskSpec::description() const { - const ::flyteidl::admin::DescriptionEntity* p = description_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskSpec.description) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_DescriptionEntity_default_instance_); -} -inline ::flyteidl::admin::DescriptionEntity* TaskSpec::release_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskSpec.description) - - ::flyteidl::admin::DescriptionEntity* temp = description_; - description_ = nullptr; - return temp; -} -inline ::flyteidl::admin::DescriptionEntity* TaskSpec::mutable_description() { - - if (description_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(GetArenaNoVirtual()); - description_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskSpec.description) - return description_; -} -inline void TaskSpec::set_allocated_description(::flyteidl::admin::DescriptionEntity* description) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(description_); - } - if (description) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - description = ::google::protobuf::internal::GetOwnedMessage( - message_arena, description, submessage_arena); - } - - } else { - - } - description_ = description; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskSpec.description) -} - -// ------------------------------------------------------------------- - -// TaskClosure - -// .flyteidl.core.CompiledTask compiled_task = 1; -inline bool TaskClosure::has_compiled_task() const { - return this != internal_default_instance() && compiled_task_ != nullptr; -} -inline const ::flyteidl::core::CompiledTask& TaskClosure::compiled_task() const { - const ::flyteidl::core::CompiledTask* p = compiled_task_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.compiled_task) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CompiledTask_default_instance_); -} -inline ::flyteidl::core::CompiledTask* TaskClosure::release_compiled_task() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.compiled_task) - - ::flyteidl::core::CompiledTask* temp = compiled_task_; - compiled_task_ = nullptr; - return temp; -} -inline ::flyteidl::core::CompiledTask* TaskClosure::mutable_compiled_task() { - - if (compiled_task_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CompiledTask>(GetArenaNoVirtual()); - compiled_task_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.compiled_task) - return compiled_task_; -} -inline void TaskClosure::set_allocated_compiled_task(::flyteidl::core::CompiledTask* compiled_task) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_task_); - } - if (compiled_task) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - compiled_task = ::google::protobuf::internal::GetOwnedMessage( - message_arena, compiled_task, submessage_arena); - } - - } else { - - } - compiled_task_ = compiled_task; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.compiled_task) -} - -// .google.protobuf.Timestamp created_at = 2; -inline bool TaskClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskClosure.created_at) - return created_at_; -} -inline void TaskClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskClosure.created_at) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc deleted file mode 100644 index 44c3c2607b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/task_execution.proto - -#include "flyteidl/admin/task_execution.pb.h" -#include "flyteidl/admin/task_execution.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h deleted file mode 100644 index 205eaa5699..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/task_execution.proto -#ifndef GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED - -#include "flyteidl/admin/task_execution.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2ftask_5fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc deleted file mode 100644 index eb79cb6cb2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.cc +++ /dev/null @@ -1,4670 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task_execution.proto - -#include "flyteidl/admin/task_execution.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace admin { -class TaskExecutionGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionGetRequest_default_instance_; -class TaskExecutionListRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionListRequest_default_instance_; -class TaskExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecution_default_instance_; -class TaskExecutionListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionList_default_instance_; -class TaskExecutionClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr output_uri_; - const ::flyteidl::core::ExecutionError* error_; - const ::flyteidl::core::LiteralMap* output_data_; -} _TaskExecutionClosure_default_instance_; -class ReasonDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Reason_default_instance_; -class TaskExecutionGetDataRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionGetDataRequest_default_instance_; -class TaskExecutionGetDataResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionGetDataResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsTaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsTaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionListRequest_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionListRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionListRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Sort_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -static void InitDefaultsTaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecution_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; - -static void InitDefaultsTaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionList_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; - -static void InitDefaultsTaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionClosure_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<8> scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsTaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base,}}; - -static void InitDefaultsReason_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Reason_default_instance_; - new (ptr) ::flyteidl::admin::Reason(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Reason::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReason_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsTaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionGetDataRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionGetDataRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsTaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_; - new (ptr) ::flyteidl::admin::TaskExecutionGetDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::TaskExecutionGetDataResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsTaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto}, { - &scc_info_UrlBlob_flyteidl_2fadmin_2fcommon_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_FlyteURLs_flyteidl_2fadmin_2fcommon_2eproto.base,}}; - -void InitDefaults_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[8]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, node_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, limit_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, filters_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionListRequest, sort_by_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, input_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, closure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecution, is_parent_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, task_executions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, output_uri_), - offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, error_), - offsetof(::flyteidl::admin::TaskExecutionClosureDefaultTypeInternal, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, logs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, started_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, duration_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, created_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, updated_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, custom_info_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, reason_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, event_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, reasons_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionClosure, output_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, occurred_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Reason, message_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataRequest, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, full_inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, full_outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::TaskExecutionGetDataResponse, flyte_urls_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::TaskExecutionGetRequest)}, - { 6, -1, sizeof(::flyteidl::admin::TaskExecutionListRequest)}, - { 16, -1, sizeof(::flyteidl::admin::TaskExecution)}, - { 25, -1, sizeof(::flyteidl::admin::TaskExecutionList)}, - { 32, -1, sizeof(::flyteidl::admin::TaskExecutionClosure)}, - { 53, -1, sizeof(::flyteidl::admin::Reason)}, - { 60, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataRequest)}, - { 66, -1, sizeof(::flyteidl::admin::TaskExecutionGetDataResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionListRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecution_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionList_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionClosure_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Reason_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, "flyteidl/admin/task_execution.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto, 8, file_level_enum_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2ftask_5fexecution_2eproto[] = - "\n#flyteidl/admin/task_execution.proto\022\016f" - "lyteidl.admin\032\033flyteidl/admin/common.pro" - "to\032\035flyteidl/core/execution.proto\032\036flyte" - "idl/core/identifier.proto\032\034flyteidl/core" - "/literals.proto\032\032flyteidl/event/event.pr" - "oto\032\037google/protobuf/timestamp.proto\032\036go" - "ogle/protobuf/duration.proto\032\034google/pro" - "tobuf/struct.proto\"M\n\027TaskExecutionGetRe" - "quest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.TaskEx" - "ecutionIdentifier\"\263\001\n\030TaskExecutionListR" - "equest\022A\n\021node_execution_id\030\001 \001(\0132&.flyt" - "eidl.core.NodeExecutionIdentifier\022\r\n\005lim" - "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" - "\240\001\n\rTaskExecution\0222\n\002id\030\001 \001(\0132&.flyteidl" - ".core.TaskExecutionIdentifier\022\021\n\tinput_u" - "ri\030\002 \001(\t\0225\n\007closure\030\003 \001(\0132$.flyteidl.adm" - "in.TaskExecutionClosure\022\021\n\tis_parent\030\004 \001" - "(\010\"Z\n\021TaskExecutionList\0226\n\017task_executio" - "ns\030\001 \003(\0132\035.flyteidl.admin.TaskExecution\022" - "\r\n\005token\030\002 \001(\t\"\207\005\n\024TaskExecutionClosure\022" - "\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\013" - "2\035.flyteidl.core.ExecutionErrorH\000\0224\n\013out" - "put_data\030\014 \001(\0132\031.flyteidl.core.LiteralMa" - "pB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.T" - "askExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.flyte" - "idl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\0132\032.g" - "oogle.protobuf.Timestamp\022+\n\010duration\030\006 \001" - "(\0132\031.google.protobuf.Duration\022.\n\ncreated" - "_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022.\n" - "\nupdated_at\030\010 \001(\0132\032.google.protobuf.Time" - "stamp\022,\n\013custom_info\030\t \001(\0132\027.google.prot" - "obuf.Struct\022\016\n\006reason\030\n \001(\t\022\021\n\ttask_type" - "\030\013 \001(\t\0227\n\010metadata\030\020 \001(\0132%.flyteidl.even" - "t.TaskExecutionMetadata\022\025\n\revent_version" - "\030\021 \001(\005\022\'\n\007reasons\030\022 \003(\0132\026.flyteidl.admin" - ".ReasonB\017\n\routput_result\"J\n\006Reason\022/\n\013oc" - "curred_at\030\001 \001(\0132\032.google.protobuf.Timest" - "amp\022\017\n\007message\030\002 \001(\t\"Q\n\033TaskExecutionGet" - "DataRequest\0222\n\002id\030\001 \001(\0132&.flyteidl.core." - "TaskExecutionIdentifier\"\211\002\n\034TaskExecutio" - "nGetDataResponse\022+\n\006inputs\030\001 \001(\0132\027.flyte" - "idl.admin.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027" - ".flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inpu" - "ts\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014f" - "ull_outputs\030\004 \001(\0132\031.flyteidl.core.Litera" - "lMap\022-\n\nflyte_urls\030\005 \001(\0132\031.flyteidl.admi" - "n.FlyteURLsB=Z;github.com/flyteorg/flyte" - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" - "o3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2ftask_5fexecution_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2ftask_5fexecution_2eproto, - "flyteidl/admin/task_execution.proto", &assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto, 1962, -}; - -void AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[8] = - { - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fevent_2fevent_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, - ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto, deps, 8); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2ftask_5fexecution_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void TaskExecutionGetRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionGetRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); -} -class TaskExecutionGetRequest::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecutionGetRequest* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -TaskExecutionGetRequest::HasBitSetters::id(const TaskExecutionGetRequest* msg) { - return *msg->id_; -} -void TaskExecutionGetRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionGetRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionGetRequest::TaskExecutionGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetRequest) -} -TaskExecutionGetRequest::TaskExecutionGetRequest(const TaskExecutionGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetRequest) -} - -void TaskExecutionGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - id_ = nullptr; -} - -TaskExecutionGetRequest::~TaskExecutionGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetRequest) - SharedDtor(); -} - -void TaskExecutionGetRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void TaskExecutionGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionGetRequest& TaskExecutionGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetRequest) - ::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* TaskExecutionGetRequest::_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.TaskExecutionIdentifier 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::TaskExecutionIdentifier::_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 TaskExecutionGetRequest::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.TaskExecutionGetRequest) - 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.TaskExecutionIdentifier 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.TaskExecutionGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.TaskExecutionGetRequest) -} - -::google::protobuf::uint8* TaskExecutionGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.TaskExecutionGetRequest) - return target; -} - -size_t TaskExecutionGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetRequest) - 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.TaskExecutionIdentifier 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 TaskExecutionGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetRequest) - MergeFrom(*source); - } -} - -void TaskExecutionGetRequest::MergeFrom(const TaskExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetRequest) - 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::TaskExecutionIdentifier::MergeFrom(from.id()); - } -} - -void TaskExecutionGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionGetRequest::CopyFrom(const TaskExecutionGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionGetRequest::IsInitialized() const { - return true; -} - -void TaskExecutionGetRequest::Swap(TaskExecutionGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionGetRequest::InternalSwap(TaskExecutionGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata TaskExecutionGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionListRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionListRequest_default_instance_._instance.get_mutable()->sort_by_ = const_cast< ::flyteidl::admin::Sort*>( - ::flyteidl::admin::Sort::internal_default_instance()); -} -class TaskExecutionListRequest::HasBitSetters { - public: - static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const TaskExecutionListRequest* msg); - static const ::flyteidl::admin::Sort& sort_by(const TaskExecutionListRequest* msg); -}; - -const ::flyteidl::core::NodeExecutionIdentifier& -TaskExecutionListRequest::HasBitSetters::node_execution_id(const TaskExecutionListRequest* msg) { - return *msg->node_execution_id_; -} -const ::flyteidl::admin::Sort& -TaskExecutionListRequest::HasBitSetters::sort_by(const TaskExecutionListRequest* msg) { - return *msg->sort_by_; -} -void TaskExecutionListRequest::clear_node_execution_id() { - if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { - delete node_execution_id_; - } - node_execution_id_ = nullptr; -} -void TaskExecutionListRequest::clear_sort_by() { - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionListRequest::kNodeExecutionIdFieldNumber; -const int TaskExecutionListRequest::kLimitFieldNumber; -const int TaskExecutionListRequest::kTokenFieldNumber; -const int TaskExecutionListRequest::kFiltersFieldNumber; -const int TaskExecutionListRequest::kSortByFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionListRequest::TaskExecutionListRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionListRequest) -} -TaskExecutionListRequest::TaskExecutionListRequest(const TaskExecutionListRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filters().size() > 0) { - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_node_execution_id()) { - node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); - } else { - node_execution_id_ = nullptr; - } - if (from.has_sort_by()) { - sort_by_ = new ::flyteidl::admin::Sort(*from.sort_by_); - } else { - sort_by_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionListRequest) -} - -void TaskExecutionListRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&node_execution_id_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&node_execution_id_)) + sizeof(limit_)); -} - -TaskExecutionListRequest::~TaskExecutionListRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionListRequest) - SharedDtor(); -} - -void TaskExecutionListRequest::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete node_execution_id_; - if (this != internal_default_instance()) delete sort_by_; -} - -void TaskExecutionListRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionListRequest& TaskExecutionListRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionListRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionListRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { - delete node_execution_id_; - } - node_execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && sort_by_ != nullptr) { - delete sort_by_; - } - sort_by_ = nullptr; - limit_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionListRequest::_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.NodeExecutionIdentifier node_execution_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::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_node_execution_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; - } - // uint32 limit = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionListRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filters = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionListRequest.filters"); - object = msg->mutable_filters(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Sort::_InternalParse; - object = msg->mutable_sort_by(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionListRequest::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.TaskExecutionListRequest) - 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.NodeExecutionIdentifier node_execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 limit = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionListRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // string filters = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filters())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionListRequest.filters")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.Sort sort_by = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sort_by())); - } 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.TaskExecutionListRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionListRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionListRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - if (this->has_node_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::node_execution_id(this), output); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->limit(), output); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionListRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token(), output); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionListRequest.filters"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->filters(), output); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::sort_by(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.TaskExecutionListRequest) -} - -::google::protobuf::uint8* TaskExecutionListRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionListRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - if (this->has_node_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::node_execution_id(this), target); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->limit(), target); - } - - // string token = 3; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionListRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token(), target); - } - - // string filters = 4; - if (this->filters().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filters().data(), static_cast(this->filters().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionListRequest.filters"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->filters(), target); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::sort_by(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.TaskExecutionListRequest) - return target; -} - -size_t TaskExecutionListRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionListRequest) - 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; - - // string token = 3; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // string filters = 4; - if (this->filters().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filters()); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - if (this->has_node_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *node_execution_id_); - } - - // .flyteidl.admin.Sort sort_by = 5; - if (this->has_sort_by()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *sort_by_); - } - - // uint32 limit = 2; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionListRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionListRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionListRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionListRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionListRequest) - MergeFrom(*source); - } -} - -void TaskExecutionListRequest::MergeFrom(const TaskExecutionListRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionListRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.filters().size() > 0) { - - filters_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filters_); - } - if (from.has_node_execution_id()) { - mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); - } - if (from.has_sort_by()) { - mutable_sort_by()->::flyteidl::admin::Sort::MergeFrom(from.sort_by()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void TaskExecutionListRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionListRequest::CopyFrom(const TaskExecutionListRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionListRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionListRequest::IsInitialized() const { - return true; -} - -void TaskExecutionListRequest::Swap(TaskExecutionListRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionListRequest::InternalSwap(TaskExecutionListRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filters_.Swap(&other->filters_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(node_execution_id_, other->node_execution_id_); - swap(sort_by_, other->sort_by_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata TaskExecutionListRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecution::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); - ::flyteidl::admin::_TaskExecution_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::TaskExecutionClosure*>( - ::flyteidl::admin::TaskExecutionClosure::internal_default_instance()); -} -class TaskExecution::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecution* msg); - static const ::flyteidl::admin::TaskExecutionClosure& closure(const TaskExecution* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -TaskExecution::HasBitSetters::id(const TaskExecution* msg) { - return *msg->id_; -} -const ::flyteidl::admin::TaskExecutionClosure& -TaskExecution::HasBitSetters::closure(const TaskExecution* msg) { - return *msg->closure_; -} -void TaskExecution::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecution::kIdFieldNumber; -const int TaskExecution::kInputUriFieldNumber; -const int TaskExecution::kClosureFieldNumber; -const int TaskExecution::kIsParentFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecution::TaskExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecution) -} -TaskExecution::TaskExecution(const TaskExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.input_uri().size() > 0) { - input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::TaskExecutionClosure(*from.closure_); - } else { - closure_ = nullptr; - } - is_parent_ = from.is_parent_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecution) -} - -void TaskExecution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&is_parent_) - - reinterpret_cast(&id_)) + sizeof(is_parent_)); -} - -TaskExecution::~TaskExecution() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecution) - SharedDtor(); -} - -void TaskExecution::SharedDtor() { - input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete closure_; -} - -void TaskExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecution& TaskExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecution_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - is_parent_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecution::_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.TaskExecutionIdentifier 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::TaskExecutionIdentifier::_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; - } - // string input_uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecution.input_uri"); - object = msg->mutable_input_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.TaskExecutionClosure closure = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::TaskExecutionClosure::_InternalParse; - object = msg->mutable_closure(); - 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; - } - // bool is_parent = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_is_parent(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecution::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.TaskExecution) - 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.TaskExecutionIdentifier 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; - } - - // string input_uri = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_input_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecution.input_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.TaskExecutionClosure closure = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } else { - goto handle_unusual; - } - break; - } - - // bool is_parent = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_parent_))); - } 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.TaskExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecution.input_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->input_uri(), output); - } - - // .flyteidl.admin.TaskExecutionClosure closure = 3; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::closure(this), output); - } - - // bool is_parent = 4; - if (this->is_parent() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->is_parent(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecution) -} - -::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecution.input_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->input_uri(), target); - } - - // .flyteidl.admin.TaskExecutionClosure closure = 3; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::closure(this), target); - } - - // bool is_parent = 4; - if (this->is_parent() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->is_parent(), 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.TaskExecution) - return target; -} - -size_t TaskExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecution) - 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; - - // string input_uri = 2; - if (this->input_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->input_uri()); - } - - // .flyteidl.core.TaskExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.TaskExecutionClosure closure = 3; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - // bool is_parent = 4; - if (this->is_parent() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecution) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecution) - MergeFrom(*source); - } -} - -void TaskExecution::MergeFrom(const TaskExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.input_uri().size() > 0) { - - input_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_uri_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.id()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::TaskExecutionClosure::MergeFrom(from.closure()); - } - if (from.is_parent() != 0) { - set_is_parent(from.is_parent()); - } -} - -void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecution::CopyFrom(const TaskExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecution::IsInitialized() const { - return true; -} - -void TaskExecution::Swap(TaskExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecution::InternalSwap(TaskExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - input_uri_.Swap(&other->input_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(closure_, other->closure_); - swap(is_parent_, other->is_parent_); -} - -::google::protobuf::Metadata TaskExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionList::InitAsDefaultInstance() { -} -class TaskExecutionList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionList::kTaskExecutionsFieldNumber; -const int TaskExecutionList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionList::TaskExecutionList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionList) -} -TaskExecutionList::TaskExecutionList(const TaskExecutionList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - task_executions_(from.task_executions_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionList) -} - -void TaskExecutionList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskExecutionList::~TaskExecutionList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionList) - SharedDtor(); -} - -void TaskExecutionList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskExecutionList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionList& TaskExecutionList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionList_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - task_executions_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionList::_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) { - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::TaskExecution::_InternalParse; - object = msg->add_task_executions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionList::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.TaskExecutionList) - 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)) { - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_task_executions())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionList.token")); - } 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.TaskExecutionList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - for (unsigned int i = 0, - n = static_cast(this->task_executions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->task_executions(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionList) -} - -::google::protobuf::uint8* TaskExecutionList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - for (unsigned int i = 0, - n = static_cast(this->task_executions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->task_executions(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.TaskExecutionList) - return target; -} - -size_t TaskExecutionList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionList) - 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; - - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - { - unsigned int count = static_cast(this->task_executions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->task_executions(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionList) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionList) - MergeFrom(*source); - } -} - -void TaskExecutionList::MergeFrom(const TaskExecutionList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - task_executions_.MergeFrom(from.task_executions_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void TaskExecutionList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionList::CopyFrom(const TaskExecutionList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionList::IsInitialized() const { - return true; -} - -void TaskExecutionList::Swap(TaskExecutionList* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionList::InternalSwap(TaskExecutionList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&task_executions_)->InternalSwap(CastToBase(&other->task_executions_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskExecutionList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionClosure_default_instance_.output_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->started_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->updated_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionClosure_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::event::TaskExecutionMetadata*>( - ::flyteidl::event::TaskExecutionMetadata::internal_default_instance()); -} -class TaskExecutionClosure::HasBitSetters { - public: - static const ::flyteidl::core::ExecutionError& error(const TaskExecutionClosure* msg); - static const ::flyteidl::core::LiteralMap& output_data(const TaskExecutionClosure* msg); - static const ::google::protobuf::Timestamp& started_at(const TaskExecutionClosure* msg); - static const ::google::protobuf::Duration& duration(const TaskExecutionClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const TaskExecutionClosure* msg); - static const ::google::protobuf::Timestamp& updated_at(const TaskExecutionClosure* msg); - static const ::google::protobuf::Struct& custom_info(const TaskExecutionClosure* msg); - static const ::flyteidl::event::TaskExecutionMetadata& metadata(const TaskExecutionClosure* msg); -}; - -const ::flyteidl::core::ExecutionError& -TaskExecutionClosure::HasBitSetters::error(const TaskExecutionClosure* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::core::LiteralMap& -TaskExecutionClosure::HasBitSetters::output_data(const TaskExecutionClosure* msg) { - return *msg->output_result_.output_data_; -} -const ::google::protobuf::Timestamp& -TaskExecutionClosure::HasBitSetters::started_at(const TaskExecutionClosure* msg) { - return *msg->started_at_; -} -const ::google::protobuf::Duration& -TaskExecutionClosure::HasBitSetters::duration(const TaskExecutionClosure* msg) { - return *msg->duration_; -} -const ::google::protobuf::Timestamp& -TaskExecutionClosure::HasBitSetters::created_at(const TaskExecutionClosure* msg) { - return *msg->created_at_; -} -const ::google::protobuf::Timestamp& -TaskExecutionClosure::HasBitSetters::updated_at(const TaskExecutionClosure* msg) { - return *msg->updated_at_; -} -const ::google::protobuf::Struct& -TaskExecutionClosure::HasBitSetters::custom_info(const TaskExecutionClosure* msg) { - return *msg->custom_info_; -} -const ::flyteidl::event::TaskExecutionMetadata& -TaskExecutionClosure::HasBitSetters::metadata(const TaskExecutionClosure* msg) { - return *msg->metadata_; -} -void TaskExecutionClosure::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.error) -} -void TaskExecutionClosure::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void TaskExecutionClosure::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.output_data) -} -void TaskExecutionClosure::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -void TaskExecutionClosure::clear_logs() { - logs_.Clear(); -} -void TaskExecutionClosure::clear_started_at() { - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; -} -void TaskExecutionClosure::clear_duration() { - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; -} -void TaskExecutionClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -void TaskExecutionClosure::clear_updated_at() { - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; -} -void TaskExecutionClosure::clear_custom_info() { - if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { - delete custom_info_; - } - custom_info_ = nullptr; -} -void TaskExecutionClosure::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionClosure::kOutputUriFieldNumber; -const int TaskExecutionClosure::kErrorFieldNumber; -const int TaskExecutionClosure::kOutputDataFieldNumber; -const int TaskExecutionClosure::kPhaseFieldNumber; -const int TaskExecutionClosure::kLogsFieldNumber; -const int TaskExecutionClosure::kStartedAtFieldNumber; -const int TaskExecutionClosure::kDurationFieldNumber; -const int TaskExecutionClosure::kCreatedAtFieldNumber; -const int TaskExecutionClosure::kUpdatedAtFieldNumber; -const int TaskExecutionClosure::kCustomInfoFieldNumber; -const int TaskExecutionClosure::kReasonFieldNumber; -const int TaskExecutionClosure::kTaskTypeFieldNumber; -const int TaskExecutionClosure::kMetadataFieldNumber; -const int TaskExecutionClosure::kEventVersionFieldNumber; -const int TaskExecutionClosure::kReasonsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionClosure::TaskExecutionClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionClosure) -} -TaskExecutionClosure::TaskExecutionClosure(const TaskExecutionClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - logs_(from.logs_), - reasons_(from.reasons_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.has_started_at()) { - started_at_ = new ::google::protobuf::Timestamp(*from.started_at_); - } else { - started_at_ = nullptr; - } - if (from.has_duration()) { - duration_ = new ::google::protobuf::Duration(*from.duration_); - } else { - duration_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - if (from.has_updated_at()) { - updated_at_ = new ::google::protobuf::Timestamp(*from.updated_at_); - } else { - updated_at_ = nullptr; - } - if (from.has_custom_info()) { - custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); - } else { - custom_info_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::event::TaskExecutionMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - ::memcpy(&phase_, &from.phase_, - static_cast(reinterpret_cast(&event_version_) - - reinterpret_cast(&phase_)) + sizeof(event_version_)); - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionClosure) -} - -void TaskExecutionClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&started_at_, 0, static_cast( - reinterpret_cast(&event_version_) - - reinterpret_cast(&started_at_)) + sizeof(event_version_)); - clear_has_output_result(); -} - -TaskExecutionClosure::~TaskExecutionClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionClosure) - SharedDtor(); -} - -void TaskExecutionClosure::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete started_at_; - if (this != internal_default_instance()) delete duration_; - if (this != internal_default_instance()) delete created_at_; - if (this != internal_default_instance()) delete updated_at_; - if (this != internal_default_instance()) delete custom_info_; - if (this != internal_default_instance()) delete metadata_; - if (has_output_result()) { - clear_output_result(); - } -} - -void TaskExecutionClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionClosure& TaskExecutionClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionClosure_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionClosure::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.admin.TaskExecutionClosure) - switch (output_result_case()) { - case kOutputUri: { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} - - -void TaskExecutionClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - logs_.Clear(); - reasons_.Clear(); - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && started_at_ != nullptr) { - delete started_at_; - } - started_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && updated_at_ != nullptr) { - delete updated_at_; - } - updated_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { - delete custom_info_; - } - custom_info_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - ::memset(&phase_, 0, static_cast( - reinterpret_cast(&event_version_) - - reinterpret_cast(&phase_)) + sizeof(event_version_)); - clear_output_result(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionClosure::_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) { - // string output_uri = 1 [deprecated = true]; - 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.output_uri"); - object = msg->mutable_output_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError error = 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::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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.core.TaskExecution.Phase phase = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .flyteidl.core.TaskLog logs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; - object = msg->add_logs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // .google.protobuf.Timestamp started_at = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_started_at(); - 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; - } - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_duration(); - 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; - } - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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; - } - // .google.protobuf.Timestamp updated_at = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_updated_at(); - 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; - } - // .google.protobuf.Struct custom_info = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_custom_info(); - 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; - } - // string reason = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.reason"); - object = msg->mutable_reason(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string task_type = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.TaskExecutionClosure.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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.event.TaskExecutionMetadata metadata = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::TaskExecutionMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // int32 event_version = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 136) goto handle_unusual; - msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .flyteidl.admin.Reason reasons = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Reason::_InternalParse; - object = msg->add_reasons(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 402 && (ptr += 2)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionClosure::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.TaskExecutionClosure) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string output_uri = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionClosure.output_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecution.Phase phase = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskLog logs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_logs())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp started_at = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_started_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_duration())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp updated_at = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_updated_at())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct custom_info = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_custom_info())); - } else { - goto handle_unusual; - } - break; - } - - // string reason = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionClosure.reason")); - } else { - goto handle_unusual; - } - break; - } - - // string task_type = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.TaskExecutionClosure.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // int32 event_version = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (136 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &event_version_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.admin.Reason reasons = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_reasons())); - } 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.TaskExecutionClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_uri = 1 [deprecated = true]; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.output_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->output_uri(), output); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::error(this), output); - } - - // .flyteidl.core.TaskExecution.Phase phase = 3; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->phase(), output); - } - - // repeated .flyteidl.core.TaskLog logs = 4; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->logs(static_cast(i)), - output); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::started_at(this), output); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::duration(this), output); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::created_at(this), output); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::updated_at(this), output); - } - - // .google.protobuf.Struct custom_info = 9; - if (this->has_custom_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::custom_info(this), output); - } - - // string reason = 10; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->reason(), output); - } - - // string task_type = 11; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->task_type(), output); - } - - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 12, HasBitSetters::output_data(this), output); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::metadata(this), output); - } - - // int32 event_version = 17; - if (this->event_version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->event_version(), output); - } - - // repeated .flyteidl.admin.Reason reasons = 18; - for (unsigned int i = 0, - n = static_cast(this->reasons_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 18, - this->reasons(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.TaskExecutionClosure) -} - -::google::protobuf::uint8* TaskExecutionClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string output_uri = 1 [deprecated = true]; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.output_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->output_uri(), target); - } - - // .flyteidl.core.ExecutionError error = 2; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::error(this), target); - } - - // .flyteidl.core.TaskExecution.Phase phase = 3; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->phase(), target); - } - - // repeated .flyteidl.core.TaskLog logs = 4; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->logs(static_cast(i)), target); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::started_at(this), target); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::duration(this), target); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::created_at(this), target); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::updated_at(this), target); - } - - // .google.protobuf.Struct custom_info = 9; - if (this->has_custom_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::custom_info(this), target); - } - - // string reason = 10; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->reason(), target); - } - - // string task_type = 11; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.TaskExecutionClosure.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->task_type(), target); - } - - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 12, HasBitSetters::output_data(this), target); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::metadata(this), target); - } - - // int32 event_version = 17; - if (this->event_version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->event_version(), target); - } - - // repeated .flyteidl.admin.Reason reasons = 18; - for (unsigned int i = 0, - n = static_cast(this->reasons_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 18, this->reasons(static_cast(i)), 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.TaskExecutionClosure) - return target; -} - -size_t TaskExecutionClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionClosure) - 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; - - // repeated .flyteidl.core.TaskLog logs = 4; - { - unsigned int count = static_cast(this->logs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->logs(static_cast(i))); - } - } - - // repeated .flyteidl.admin.Reason reasons = 18; - { - unsigned int count = static_cast(this->reasons_size()); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->reasons(static_cast(i))); - } - } - - // string reason = 10; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - // string task_type = 11; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // .google.protobuf.Timestamp started_at = 5; - if (this->has_started_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *started_at_); - } - - // .google.protobuf.Duration duration = 6; - if (this->has_duration()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *duration_); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - // .google.protobuf.Timestamp updated_at = 8; - if (this->has_updated_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *updated_at_); - } - - // .google.protobuf.Struct custom_info = 9; - if (this->has_custom_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *custom_info_); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.TaskExecution.Phase phase = 3; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // int32 event_version = 17; - if (this->event_version() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->event_version()); - } - - switch (output_result_case()) { - // string output_uri = 1 [deprecated = true]; - case kOutputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_uri()); - break; - } - // .flyteidl.core.ExecutionError error = 2; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - case kOutputData: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionClosure) - MergeFrom(*source); - } -} - -void TaskExecutionClosure::MergeFrom(const TaskExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionClosure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - logs_.MergeFrom(from.logs_); - reasons_.MergeFrom(from.reasons_); - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.has_started_at()) { - mutable_started_at()->::google::protobuf::Timestamp::MergeFrom(from.started_at()); - } - if (from.has_duration()) { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } - if (from.has_updated_at()) { - mutable_updated_at()->::google::protobuf::Timestamp::MergeFrom(from.updated_at()); - } - if (from.has_custom_info()) { - mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::event::TaskExecutionMetadata::MergeFrom(from.metadata()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - if (from.event_version() != 0) { - set_event_version(from.event_version()); - } - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } -} - -void TaskExecutionClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionClosure::CopyFrom(const TaskExecutionClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionClosure::IsInitialized() const { - return true; -} - -void TaskExecutionClosure::Swap(TaskExecutionClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionClosure::InternalSwap(TaskExecutionClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); - CastToBase(&reasons_)->InternalSwap(CastToBase(&other->reasons_)); - reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(started_at_, other->started_at_); - swap(duration_, other->duration_); - swap(created_at_, other->created_at_); - swap(updated_at_, other->updated_at_); - swap(custom_info_, other->custom_info_); - swap(metadata_, other->metadata_); - swap(phase_, other->phase_); - swap(event_version_, other->event_version_); - swap(output_result_, other->output_result_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata TaskExecutionClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Reason::InitAsDefaultInstance() { - ::flyteidl::admin::_Reason_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class Reason::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& occurred_at(const Reason* msg); -}; - -const ::google::protobuf::Timestamp& -Reason::HasBitSetters::occurred_at(const Reason* msg) { - return *msg->occurred_at_; -} -void Reason::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Reason::kOccurredAtFieldNumber; -const int Reason::kMessageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Reason::Reason() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Reason) -} -Reason::Reason(const Reason& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.message().size() > 0) { - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Reason) -} - -void Reason::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - occurred_at_ = nullptr; -} - -Reason::~Reason() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Reason) - SharedDtor(); -} - -void Reason::SharedDtor() { - message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete occurred_at_; -} - -void Reason::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Reason& Reason::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Reason_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void Reason::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Reason) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Reason::_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) { - // .google.protobuf.Timestamp occurred_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; - } - // string message = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Reason.message"); - object = msg->mutable_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Reason::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.Reason) - 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)) { - // .google.protobuf.Timestamp occurred_at = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } else { - goto handle_unusual; - } - break; - } - - // string message = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Reason.message")); - } 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.Reason) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Reason) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Reason::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Reason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Timestamp occurred_at = 1; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::occurred_at(this), output); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Reason.message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->message(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Reason) -} - -::google::protobuf::uint8* Reason::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Reason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Timestamp occurred_at = 1; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::occurred_at(this), target); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Reason.message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->message(), 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.Reason) - return target; -} - -size_t Reason::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Reason) - 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; - - // string message = 2; - if (this->message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->message()); - } - - // .google.protobuf.Timestamp occurred_at = 1; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Reason::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Reason) - GOOGLE_DCHECK_NE(&from, this); - const Reason* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Reason) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Reason) - MergeFrom(*source); - } -} - -void Reason::MergeFrom(const Reason& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Reason) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.message().size() > 0) { - - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } -} - -void Reason::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Reason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Reason::CopyFrom(const Reason& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Reason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Reason::IsInitialized() const { - return true; -} - -void Reason::Swap(Reason* other) { - if (other == this) return; - InternalSwap(other); -} -void Reason::InternalSwap(Reason* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(occurred_at_, other->occurred_at_); -} - -::google::protobuf::Metadata Reason::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionGetDataRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionGetDataRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); -} -class TaskExecutionGetDataRequest::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& id(const TaskExecutionGetDataRequest* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -TaskExecutionGetDataRequest::HasBitSetters::id(const TaskExecutionGetDataRequest* msg) { - return *msg->id_; -} -void TaskExecutionGetDataRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionGetDataRequest::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionGetDataRequest::TaskExecutionGetDataRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataRequest) -} -TaskExecutionGetDataRequest::TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataRequest) -} - -void TaskExecutionGetDataRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - id_ = nullptr; -} - -TaskExecutionGetDataRequest::~TaskExecutionGetDataRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataRequest) - SharedDtor(); -} - -void TaskExecutionGetDataRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void TaskExecutionGetDataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionGetDataRequest& TaskExecutionGetDataRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetDataRequest_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionGetDataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataRequest) - ::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* TaskExecutionGetDataRequest::_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.TaskExecutionIdentifier 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::TaskExecutionIdentifier::_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 TaskExecutionGetDataRequest::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.TaskExecutionGetDataRequest) - 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.TaskExecutionIdentifier 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.TaskExecutionGetDataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionGetDataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.TaskExecutionGetDataRequest) -} - -::google::protobuf::uint8* TaskExecutionGetDataRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.TaskExecutionGetDataRequest) - return target; -} - -size_t TaskExecutionGetDataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataRequest) - 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.TaskExecutionIdentifier 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 TaskExecutionGetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionGetDataRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataRequest) - MergeFrom(*source); - } -} - -void TaskExecutionGetDataRequest::MergeFrom(const TaskExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataRequest) - 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::TaskExecutionIdentifier::MergeFrom(from.id()); - } -} - -void TaskExecutionGetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionGetDataRequest::CopyFrom(const TaskExecutionGetDataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionGetDataRequest::IsInitialized() const { - return true; -} - -void TaskExecutionGetDataRequest::Swap(TaskExecutionGetDataRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionGetDataRequest::InternalSwap(TaskExecutionGetDataRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata TaskExecutionGetDataRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionGetDataResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::admin::UrlBlob*>( - ::flyteidl::admin::UrlBlob::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->full_outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::admin::_TaskExecutionGetDataResponse_default_instance_._instance.get_mutable()->flyte_urls_ = const_cast< ::flyteidl::admin::FlyteURLs*>( - ::flyteidl::admin::FlyteURLs::internal_default_instance()); -} -class TaskExecutionGetDataResponse::HasBitSetters { - public: - static const ::flyteidl::admin::UrlBlob& inputs(const TaskExecutionGetDataResponse* msg); - static const ::flyteidl::admin::UrlBlob& outputs(const TaskExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_inputs(const TaskExecutionGetDataResponse* msg); - static const ::flyteidl::core::LiteralMap& full_outputs(const TaskExecutionGetDataResponse* msg); - static const ::flyteidl::admin::FlyteURLs& flyte_urls(const TaskExecutionGetDataResponse* msg); -}; - -const ::flyteidl::admin::UrlBlob& -TaskExecutionGetDataResponse::HasBitSetters::inputs(const TaskExecutionGetDataResponse* msg) { - return *msg->inputs_; -} -const ::flyteidl::admin::UrlBlob& -TaskExecutionGetDataResponse::HasBitSetters::outputs(const TaskExecutionGetDataResponse* msg) { - return *msg->outputs_; -} -const ::flyteidl::core::LiteralMap& -TaskExecutionGetDataResponse::HasBitSetters::full_inputs(const TaskExecutionGetDataResponse* msg) { - return *msg->full_inputs_; -} -const ::flyteidl::core::LiteralMap& -TaskExecutionGetDataResponse::HasBitSetters::full_outputs(const TaskExecutionGetDataResponse* msg) { - return *msg->full_outputs_; -} -const ::flyteidl::admin::FlyteURLs& -TaskExecutionGetDataResponse::HasBitSetters::flyte_urls(const TaskExecutionGetDataResponse* msg) { - return *msg->flyte_urls_; -} -void TaskExecutionGetDataResponse::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void TaskExecutionGetDataResponse::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -void TaskExecutionGetDataResponse::clear_full_inputs() { - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; -} -void TaskExecutionGetDataResponse::clear_full_outputs() { - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; -} -void TaskExecutionGetDataResponse::clear_flyte_urls() { - if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { - delete flyte_urls_; - } - flyte_urls_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionGetDataResponse::kInputsFieldNumber; -const int TaskExecutionGetDataResponse::kOutputsFieldNumber; -const int TaskExecutionGetDataResponse::kFullInputsFieldNumber; -const int TaskExecutionGetDataResponse::kFullOutputsFieldNumber; -const int TaskExecutionGetDataResponse::kFlyteUrlsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionGetDataResponse::TaskExecutionGetDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.TaskExecutionGetDataResponse) -} -TaskExecutionGetDataResponse::TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_inputs()) { - inputs_ = new ::flyteidl::admin::UrlBlob(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_outputs()) { - outputs_ = new ::flyteidl::admin::UrlBlob(*from.outputs_); - } else { - outputs_ = nullptr; - } - if (from.has_full_inputs()) { - full_inputs_ = new ::flyteidl::core::LiteralMap(*from.full_inputs_); - } else { - full_inputs_ = nullptr; - } - if (from.has_full_outputs()) { - full_outputs_ = new ::flyteidl::core::LiteralMap(*from.full_outputs_); - } else { - full_outputs_ = nullptr; - } - if (from.has_flyte_urls()) { - flyte_urls_ = new ::flyteidl::admin::FlyteURLs(*from.flyte_urls_); - } else { - flyte_urls_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.TaskExecutionGetDataResponse) -} - -void TaskExecutionGetDataResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - ::memset(&inputs_, 0, static_cast( - reinterpret_cast(&flyte_urls_) - - reinterpret_cast(&inputs_)) + sizeof(flyte_urls_)); -} - -TaskExecutionGetDataResponse::~TaskExecutionGetDataResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.TaskExecutionGetDataResponse) - SharedDtor(); -} - -void TaskExecutionGetDataResponse::SharedDtor() { - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete outputs_; - if (this != internal_default_instance()) delete full_inputs_; - if (this != internal_default_instance()) delete full_outputs_; - if (this != internal_default_instance()) delete flyte_urls_; -} - -void TaskExecutionGetDataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionGetDataResponse& TaskExecutionGetDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionGetDataResponse_flyteidl_2fadmin_2ftask_5fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionGetDataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.TaskExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_inputs_ != nullptr) { - delete full_inputs_; - } - full_inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && full_outputs_ != nullptr) { - delete full_outputs_; - } - full_outputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && flyte_urls_ != nullptr) { - delete flyte_urls_; - } - flyte_urls_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionGetDataResponse::_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.UrlBlob inputs = 1 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_inputs(); - 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.UrlBlob outputs = 2 [deprecated = true]; - 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::UrlBlob::_InternalParse; - object = msg->mutable_outputs(); - 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.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_inputs(); - 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.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_full_outputs(); - 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.FlyteURLs flyte_urls = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::FlyteURLs::_InternalParse; - object = msg->mutable_flyte_urls(); - 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 TaskExecutionGetDataResponse::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.TaskExecutionGetDataResponse) - 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.UrlBlob inputs = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_full_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_flyte_urls())); - } 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.TaskExecutionGetDataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.TaskExecutionGetDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionGetDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.TaskExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::inputs(this), output); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::full_inputs(this), output); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::full_outputs(this), output); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 5; - if (this->has_flyte_urls()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::flyte_urls(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.TaskExecutionGetDataResponse) -} - -::google::protobuf::uint8* TaskExecutionGetDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.TaskExecutionGetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::inputs(this), target); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(this), target); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::full_inputs(this), target); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::full_outputs(this), target); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 5; - if (this->has_flyte_urls()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::flyte_urls(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.TaskExecutionGetDataResponse) - return target; -} - -size_t TaskExecutionGetDataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.TaskExecutionGetDataResponse) - 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.admin.UrlBlob inputs = 1 [deprecated = true]; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - // .flyteidl.core.LiteralMap full_inputs = 3; - if (this->has_full_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_inputs_); - } - - // .flyteidl.core.LiteralMap full_outputs = 4; - if (this->has_full_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *full_outputs_); - } - - // .flyteidl.admin.FlyteURLs flyte_urls = 5; - if (this->has_flyte_urls()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *flyte_urls_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionGetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionGetDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.TaskExecutionGetDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.TaskExecutionGetDataResponse) - MergeFrom(*source); - } -} - -void TaskExecutionGetDataResponse::MergeFrom(const TaskExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.TaskExecutionGetDataResponse) - 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_inputs()) { - mutable_inputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.inputs()); - } - if (from.has_outputs()) { - mutable_outputs()->::flyteidl::admin::UrlBlob::MergeFrom(from.outputs()); - } - if (from.has_full_inputs()) { - mutable_full_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_inputs()); - } - if (from.has_full_outputs()) { - mutable_full_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.full_outputs()); - } - if (from.has_flyte_urls()) { - mutable_flyte_urls()->::flyteidl::admin::FlyteURLs::MergeFrom(from.flyte_urls()); - } -} - -void TaskExecutionGetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionGetDataResponse::CopyFrom(const TaskExecutionGetDataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.TaskExecutionGetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionGetDataResponse::IsInitialized() const { - return true; -} - -void TaskExecutionGetDataResponse::Swap(TaskExecutionGetDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionGetDataResponse::InternalSwap(TaskExecutionGetDataResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(inputs_, other->inputs_); - swap(outputs_, other->outputs_); - swap(full_inputs_, other->full_inputs_); - swap(full_outputs_, other->full_outputs_); - swap(flyte_urls_, other->flyte_urls_); -} - -::google::protobuf::Metadata TaskExecutionGetDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2ftask_5fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2ftask_5fexecution_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionListRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionListRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionListRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecution* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionList* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionClosure* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionClosure >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Reason* Arena::CreateMaybeMessage< ::flyteidl::admin::Reason >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Reason >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetDataRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetDataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::TaskExecutionGetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::TaskExecutionGetDataResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::TaskExecutionGetDataResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h deleted file mode 100644 index f792f0bb96..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/task_execution.pb.h +++ /dev/null @@ -1,2924 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task_execution.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/event/event.pb.h" -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2ftask_5fexecution_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[8] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto(); -namespace flyteidl { -namespace admin { -class Reason; -class ReasonDefaultTypeInternal; -extern ReasonDefaultTypeInternal _Reason_default_instance_; -class TaskExecution; -class TaskExecutionDefaultTypeInternal; -extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; -class TaskExecutionClosure; -class TaskExecutionClosureDefaultTypeInternal; -extern TaskExecutionClosureDefaultTypeInternal _TaskExecutionClosure_default_instance_; -class TaskExecutionGetDataRequest; -class TaskExecutionGetDataRequestDefaultTypeInternal; -extern TaskExecutionGetDataRequestDefaultTypeInternal _TaskExecutionGetDataRequest_default_instance_; -class TaskExecutionGetDataResponse; -class TaskExecutionGetDataResponseDefaultTypeInternal; -extern TaskExecutionGetDataResponseDefaultTypeInternal _TaskExecutionGetDataResponse_default_instance_; -class TaskExecutionGetRequest; -class TaskExecutionGetRequestDefaultTypeInternal; -extern TaskExecutionGetRequestDefaultTypeInternal _TaskExecutionGetRequest_default_instance_; -class TaskExecutionList; -class TaskExecutionListDefaultTypeInternal; -extern TaskExecutionListDefaultTypeInternal _TaskExecutionList_default_instance_; -class TaskExecutionListRequest; -class TaskExecutionListRequestDefaultTypeInternal; -extern TaskExecutionListRequestDefaultTypeInternal _TaskExecutionListRequest_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::Reason* Arena::CreateMaybeMessage<::flyteidl::admin::Reason>(Arena*); -template<> ::flyteidl::admin::TaskExecution* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecution>(Arena*); -template<> ::flyteidl::admin::TaskExecutionClosure* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionClosure>(Arena*); -template<> ::flyteidl::admin::TaskExecutionGetDataRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetDataRequest>(Arena*); -template<> ::flyteidl::admin::TaskExecutionGetDataResponse* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetDataResponse>(Arena*); -template<> ::flyteidl::admin::TaskExecutionGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionGetRequest>(Arena*); -template<> ::flyteidl::admin::TaskExecutionList* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionList>(Arena*); -template<> ::flyteidl::admin::TaskExecutionListRequest* Arena::CreateMaybeMessage<::flyteidl::admin::TaskExecutionListRequest>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class TaskExecutionGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetRequest) */ { - public: - TaskExecutionGetRequest(); - virtual ~TaskExecutionGetRequest(); - - TaskExecutionGetRequest(const TaskExecutionGetRequest& from); - - inline TaskExecutionGetRequest& operator=(const TaskExecutionGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionGetRequest(TaskExecutionGetRequest&& from) noexcept - : TaskExecutionGetRequest() { - *this = ::std::move(from); - } - - inline TaskExecutionGetRequest& operator=(TaskExecutionGetRequest&& 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 TaskExecutionGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionGetRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(TaskExecutionGetRequest* other); - friend void swap(TaskExecutionGetRequest& a, TaskExecutionGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionGetRequest* 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 TaskExecutionGetRequest& from); - void MergeFrom(const TaskExecutionGetRequest& 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(TaskExecutionGetRequest* 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.TaskExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionListRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionListRequest) */ { - public: - TaskExecutionListRequest(); - virtual ~TaskExecutionListRequest(); - - TaskExecutionListRequest(const TaskExecutionListRequest& from); - - inline TaskExecutionListRequest& operator=(const TaskExecutionListRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionListRequest(TaskExecutionListRequest&& from) noexcept - : TaskExecutionListRequest() { - *this = ::std::move(from); - } - - inline TaskExecutionListRequest& operator=(TaskExecutionListRequest&& 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 TaskExecutionListRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionListRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionListRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(TaskExecutionListRequest* other); - friend void swap(TaskExecutionListRequest& a, TaskExecutionListRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionListRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionListRequest* 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 TaskExecutionListRequest& from); - void MergeFrom(const TaskExecutionListRequest& 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(TaskExecutionListRequest* 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 ------------------------------------------------------- - - // string token = 3; - void clear_token(); - static const int kTokenFieldNumber = 3; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // string filters = 4; - void clear_filters(); - static const int kFiltersFieldNumber = 4; - const ::std::string& filters() const; - void set_filters(const ::std::string& value); - #if LANG_CXX11 - void set_filters(::std::string&& value); - #endif - void set_filters(const char* value); - void set_filters(const char* value, size_t size); - ::std::string* mutable_filters(); - ::std::string* release_filters(); - void set_allocated_filters(::std::string* filters); - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - bool has_node_execution_id() const; - void clear_node_execution_id(); - static const int kNodeExecutionIdFieldNumber = 1; - const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); - void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); - - // .flyteidl.admin.Sort sort_by = 5; - bool has_sort_by() const; - void clear_sort_by(); - static const int kSortByFieldNumber = 5; - const ::flyteidl::admin::Sort& sort_by() const; - ::flyteidl::admin::Sort* release_sort_by(); - ::flyteidl::admin::Sort* mutable_sort_by(); - void set_allocated_sort_by(::flyteidl::admin::Sort* sort_by); - - // uint32 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::internal::ArenaStringPtr filters_; - ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; - ::flyteidl::admin::Sort* sort_by_; - ::google::protobuf::uint32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecution) */ { - public: - TaskExecution(); - virtual ~TaskExecution(); - - TaskExecution(const TaskExecution& from); - - inline TaskExecution& operator=(const TaskExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecution(TaskExecution&& from) noexcept - : TaskExecution() { - *this = ::std::move(from); - } - - inline TaskExecution& operator=(TaskExecution&& 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 TaskExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecution* internal_default_instance() { - return reinterpret_cast( - &_TaskExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(TaskExecution* other); - friend void swap(TaskExecution& a, TaskExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecution* 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 TaskExecution& from); - void MergeFrom(const TaskExecution& 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(TaskExecution* 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 ------------------------------------------------------- - - // string input_uri = 2; - void clear_input_uri(); - static const int kInputUriFieldNumber = 2; - const ::std::string& input_uri() const; - void set_input_uri(const ::std::string& value); - #if LANG_CXX11 - void set_input_uri(::std::string&& value); - #endif - void set_input_uri(const char* value); - void set_input_uri(const char* value, size_t size); - ::std::string* mutable_input_uri(); - ::std::string* release_input_uri(); - void set_allocated_input_uri(::std::string* input_uri); - - // .flyteidl.core.TaskExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); - - // .flyteidl.admin.TaskExecutionClosure closure = 3; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 3; - const ::flyteidl::admin::TaskExecutionClosure& closure() const; - ::flyteidl::admin::TaskExecutionClosure* release_closure(); - ::flyteidl::admin::TaskExecutionClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure); - - // bool is_parent = 4; - void clear_is_parent(); - static const int kIsParentFieldNumber = 4; - bool is_parent() const; - void set_is_parent(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr input_uri_; - ::flyteidl::core::TaskExecutionIdentifier* id_; - ::flyteidl::admin::TaskExecutionClosure* closure_; - bool is_parent_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionList) */ { - public: - TaskExecutionList(); - virtual ~TaskExecutionList(); - - TaskExecutionList(const TaskExecutionList& from); - - inline TaskExecutionList& operator=(const TaskExecutionList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionList(TaskExecutionList&& from) noexcept - : TaskExecutionList() { - *this = ::std::move(from); - } - - inline TaskExecutionList& operator=(TaskExecutionList&& 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 TaskExecutionList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionList* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskExecutionList* other); - friend void swap(TaskExecutionList& a, TaskExecutionList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionList* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionList* 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 TaskExecutionList& from); - void MergeFrom(const TaskExecutionList& 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(TaskExecutionList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.TaskExecution task_executions = 1; - int task_executions_size() const; - void clear_task_executions(); - static const int kTaskExecutionsFieldNumber = 1; - ::flyteidl::admin::TaskExecution* mutable_task_executions(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* - mutable_task_executions(); - const ::flyteidl::admin::TaskExecution& task_executions(int index) const; - ::flyteidl::admin::TaskExecution* add_task_executions(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& - task_executions() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution > task_executions_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionClosure) */ { - public: - TaskExecutionClosure(); - virtual ~TaskExecutionClosure(); - - TaskExecutionClosure(const TaskExecutionClosure& from); - - inline TaskExecutionClosure& operator=(const TaskExecutionClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionClosure(TaskExecutionClosure&& from) noexcept - : TaskExecutionClosure() { - *this = ::std::move(from); - } - - inline TaskExecutionClosure& operator=(TaskExecutionClosure&& 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 TaskExecutionClosure& default_instance(); - - enum OutputResultCase { - kOutputUri = 1, - kError = 2, - kOutputData = 12, - OUTPUT_RESULT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionClosure* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(TaskExecutionClosure* other); - friend void swap(TaskExecutionClosure& a, TaskExecutionClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionClosure* 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 TaskExecutionClosure& from); - void MergeFrom(const TaskExecutionClosure& 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(TaskExecutionClosure* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskLog logs = 4; - int logs_size() const; - void clear_logs(); - static const int kLogsFieldNumber = 4; - ::flyteidl::core::TaskLog* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* - mutable_logs(); - const ::flyteidl::core::TaskLog& logs(int index) const; - ::flyteidl::core::TaskLog* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& - logs() const; - - // repeated .flyteidl.admin.Reason reasons = 18; - int reasons_size() const; - void clear_reasons(); - static const int kReasonsFieldNumber = 18; - ::flyteidl::admin::Reason* mutable_reasons(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >* - mutable_reasons(); - const ::flyteidl::admin::Reason& reasons(int index) const; - ::flyteidl::admin::Reason* add_reasons(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >& - reasons() const; - - // string reason = 10; - void clear_reason(); - static const int kReasonFieldNumber = 10; - const ::std::string& reason() const; - void set_reason(const ::std::string& value); - #if LANG_CXX11 - void set_reason(::std::string&& value); - #endif - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - ::std::string* mutable_reason(); - ::std::string* release_reason(); - void set_allocated_reason(::std::string* reason); - - // string task_type = 11; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 11; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // .google.protobuf.Timestamp started_at = 5; - bool has_started_at() const; - void clear_started_at(); - static const int kStartedAtFieldNumber = 5; - const ::google::protobuf::Timestamp& started_at() const; - ::google::protobuf::Timestamp* release_started_at(); - ::google::protobuf::Timestamp* mutable_started_at(); - void set_allocated_started_at(::google::protobuf::Timestamp* started_at); - - // .google.protobuf.Duration duration = 6; - bool has_duration() const; - void clear_duration(); - static const int kDurationFieldNumber = 6; - const ::google::protobuf::Duration& duration() const; - ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* duration); - - // .google.protobuf.Timestamp created_at = 7; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 7; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // .google.protobuf.Timestamp updated_at = 8; - bool has_updated_at() const; - void clear_updated_at(); - static const int kUpdatedAtFieldNumber = 8; - const ::google::protobuf::Timestamp& updated_at() const; - ::google::protobuf::Timestamp* release_updated_at(); - ::google::protobuf::Timestamp* mutable_updated_at(); - void set_allocated_updated_at(::google::protobuf::Timestamp* updated_at); - - // .google.protobuf.Struct custom_info = 9; - bool has_custom_info() const; - void clear_custom_info(); - static const int kCustomInfoFieldNumber = 9; - const ::google::protobuf::Struct& custom_info() const; - ::google::protobuf::Struct* release_custom_info(); - ::google::protobuf::Struct* mutable_custom_info(); - void set_allocated_custom_info(::google::protobuf::Struct* custom_info); - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 16; - const ::flyteidl::event::TaskExecutionMetadata& metadata() const; - ::flyteidl::event::TaskExecutionMetadata* release_metadata(); - ::flyteidl::event::TaskExecutionMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata); - - // .flyteidl.core.TaskExecution.Phase phase = 3; - void clear_phase(); - static const int kPhaseFieldNumber = 3; - ::flyteidl::core::TaskExecution_Phase phase() const; - void set_phase(::flyteidl::core::TaskExecution_Phase value); - - // int32 event_version = 17; - void clear_event_version(); - static const int kEventVersionFieldNumber = 17; - ::google::protobuf::int32 event_version() const; - void set_event_version(::google::protobuf::int32 value); - - // string output_uri = 1 [deprecated = true]; - private: - bool has_output_uri() const; - public: - PROTOBUF_DEPRECATED void clear_output_uri(); - PROTOBUF_DEPRECATED static const int kOutputUriFieldNumber = 1; - PROTOBUF_DEPRECATED const ::std::string& output_uri() const; - PROTOBUF_DEPRECATED void set_output_uri(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_output_uri(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_output_uri(const char* value); - PROTOBUF_DEPRECATED void set_output_uri(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_output_uri(); - PROTOBUF_DEPRECATED ::std::string* release_output_uri(); - PROTOBUF_DEPRECATED void set_allocated_output_uri(::std::string* output_uri); - - // .flyteidl.core.ExecutionError error = 2; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 2; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_output_data() const; - PROTOBUF_DEPRECATED void clear_output_data(); - PROTOBUF_DEPRECATED static const int kOutputDataFieldNumber = 12; - PROTOBUF_DEPRECATED const ::flyteidl::core::LiteralMap& output_data() const; - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* release_output_data(); - PROTOBUF_DEPRECATED ::flyteidl::core::LiteralMap* mutable_output_data(); - PROTOBUF_DEPRECATED void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - void clear_output_result(); - OutputResultCase output_result_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) - private: - class HasBitSetters; - void set_has_output_uri(); - void set_has_error(); - void set_has_output_data(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason > reasons_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::google::protobuf::Timestamp* started_at_; - ::google::protobuf::Duration* duration_; - ::google::protobuf::Timestamp* created_at_; - ::google::protobuf::Timestamp* updated_at_; - ::google::protobuf::Struct* custom_info_; - ::flyteidl::event::TaskExecutionMetadata* metadata_; - int phase_; - ::google::protobuf::int32 event_version_; - union OutputResultUnion { - OutputResultUnion() {} - ::google::protobuf::internal::ArenaStringPtr output_uri_; - ::flyteidl::core::ExecutionError* error_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class Reason final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Reason) */ { - public: - Reason(); - virtual ~Reason(); - - Reason(const Reason& from); - - inline Reason& operator=(const Reason& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Reason(Reason&& from) noexcept - : Reason() { - *this = ::std::move(from); - } - - inline Reason& operator=(Reason&& 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 Reason& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Reason* internal_default_instance() { - return reinterpret_cast( - &_Reason_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(Reason* other); - friend void swap(Reason& a, Reason& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Reason* New() const final { - return CreateMaybeMessage(nullptr); - } - - Reason* 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 Reason& from); - void MergeFrom(const Reason& 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(Reason* 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 ------------------------------------------------------- - - // string message = 2; - void clear_message(); - static const int kMessageFieldNumber = 2; - const ::std::string& message() const; - void set_message(const ::std::string& value); - #if LANG_CXX11 - void set_message(::std::string&& value); - #endif - void set_message(const char* value); - void set_message(const char* value, size_t size); - ::std::string* mutable_message(); - ::std::string* release_message(); - void set_allocated_message(::std::string* message); - - // .google.protobuf.Timestamp occurred_at = 1; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 1; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Reason) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::google::protobuf::Timestamp* occurred_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionGetDataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataRequest) */ { - public: - TaskExecutionGetDataRequest(); - virtual ~TaskExecutionGetDataRequest(); - - TaskExecutionGetDataRequest(const TaskExecutionGetDataRequest& from); - - inline TaskExecutionGetDataRequest& operator=(const TaskExecutionGetDataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionGetDataRequest(TaskExecutionGetDataRequest&& from) noexcept - : TaskExecutionGetDataRequest() { - *this = ::std::move(from); - } - - inline TaskExecutionGetDataRequest& operator=(TaskExecutionGetDataRequest&& 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 TaskExecutionGetDataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionGetDataRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionGetDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(TaskExecutionGetDataRequest* other); - friend void swap(TaskExecutionGetDataRequest& a, TaskExecutionGetDataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionGetDataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionGetDataRequest* 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 TaskExecutionGetDataRequest& from); - void MergeFrom(const TaskExecutionGetDataRequest& 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(TaskExecutionGetDataRequest* 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.TaskExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionGetDataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.TaskExecutionGetDataResponse) */ { - public: - TaskExecutionGetDataResponse(); - virtual ~TaskExecutionGetDataResponse(); - - TaskExecutionGetDataResponse(const TaskExecutionGetDataResponse& from); - - inline TaskExecutionGetDataResponse& operator=(const TaskExecutionGetDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionGetDataResponse(TaskExecutionGetDataResponse&& from) noexcept - : TaskExecutionGetDataResponse() { - *this = ::std::move(from); - } - - inline TaskExecutionGetDataResponse& operator=(TaskExecutionGetDataResponse&& 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 TaskExecutionGetDataResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionGetDataResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionGetDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(TaskExecutionGetDataResponse* other); - friend void swap(TaskExecutionGetDataResponse& a, TaskExecutionGetDataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionGetDataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionGetDataResponse* 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 TaskExecutionGetDataResponse& from); - void MergeFrom(const TaskExecutionGetDataResponse& 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(TaskExecutionGetDataResponse* 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.UrlBlob inputs = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_inputs() const; - PROTOBUF_DEPRECATED void clear_inputs(); - PROTOBUF_DEPRECATED static const int kInputsFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& inputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_inputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_inputs(); - PROTOBUF_DEPRECATED void set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs); - - // .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_outputs() const; - PROTOBUF_DEPRECATED void clear_outputs(); - PROTOBUF_DEPRECATED static const int kOutputsFieldNumber = 2; - PROTOBUF_DEPRECATED const ::flyteidl::admin::UrlBlob& outputs() const; - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* release_outputs(); - PROTOBUF_DEPRECATED ::flyteidl::admin::UrlBlob* mutable_outputs(); - PROTOBUF_DEPRECATED void set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs); - - // .flyteidl.core.LiteralMap full_inputs = 3; - bool has_full_inputs() const; - void clear_full_inputs(); - static const int kFullInputsFieldNumber = 3; - const ::flyteidl::core::LiteralMap& full_inputs() const; - ::flyteidl::core::LiteralMap* release_full_inputs(); - ::flyteidl::core::LiteralMap* mutable_full_inputs(); - void set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs); - - // .flyteidl.core.LiteralMap full_outputs = 4; - bool has_full_outputs() const; - void clear_full_outputs(); - static const int kFullOutputsFieldNumber = 4; - const ::flyteidl::core::LiteralMap& full_outputs() const; - ::flyteidl::core::LiteralMap* release_full_outputs(); - ::flyteidl::core::LiteralMap* mutable_full_outputs(); - void set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs); - - // .flyteidl.admin.FlyteURLs flyte_urls = 5; - bool has_flyte_urls() const; - void clear_flyte_urls(); - static const int kFlyteUrlsFieldNumber = 5; - const ::flyteidl::admin::FlyteURLs& flyte_urls() const; - ::flyteidl::admin::FlyteURLs* release_flyte_urls(); - ::flyteidl::admin::FlyteURLs* mutable_flyte_urls(); - void set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::UrlBlob* inputs_; - ::flyteidl::admin::UrlBlob* outputs_; - ::flyteidl::core::LiteralMap* full_inputs_; - ::flyteidl::core::LiteralMap* full_outputs_; - ::flyteidl::admin::FlyteURLs* flyte_urls_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2ftask_5fexecution_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TaskExecutionGetRequest - -// .flyteidl.core.TaskExecutionIdentifier id = 1; -inline bool TaskExecutionGetRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetRequest::id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetRequest.id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetRequest.id) - return id_; -} -inline void TaskExecutionGetRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* 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.TaskExecutionGetRequest.id) -} - -// ------------------------------------------------------------------- - -// TaskExecutionListRequest - -// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; -inline bool TaskExecutionListRequest::has_node_execution_id() const { - return this != internal_default_instance() && node_execution_id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionListRequest::node_execution_id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.node_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::release_node_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.node_execution_id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; - node_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionListRequest::mutable_node_execution_id() { - - if (node_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - node_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.node_execution_id) - return node_execution_id_; -} -inline void TaskExecutionListRequest::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(node_execution_id_); - } - if (node_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node_execution_id, submessage_arena); - } - - } else { - - } - node_execution_id_ = node_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.node_execution_id) -} - -// uint32 limit = 2; -inline void TaskExecutionListRequest::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 TaskExecutionListRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.limit) - return limit_; -} -inline void TaskExecutionListRequest::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.limit) -} - -// string token = 3; -inline void TaskExecutionListRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionListRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.token) - return token_.GetNoArena(); -} -inline void TaskExecutionListRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.token) -} -#if LANG_CXX11 -inline void TaskExecutionListRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.token) -} -#endif -inline void TaskExecutionListRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.token) -} -inline void TaskExecutionListRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.token) -} -inline ::std::string* TaskExecutionListRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionListRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionListRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.token) -} - -// string filters = 4; -inline void TaskExecutionListRequest::clear_filters() { - filters_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionListRequest::filters() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.filters) - return filters_.GetNoArena(); -} -inline void TaskExecutionListRequest::set_filters(const ::std::string& value) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionListRequest.filters) -} -#if LANG_CXX11 -inline void TaskExecutionListRequest::set_filters(::std::string&& value) { - - filters_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionListRequest.filters) -} -#endif -inline void TaskExecutionListRequest::set_filters(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionListRequest.filters) -} -inline void TaskExecutionListRequest::set_filters(const char* value, size_t size) { - - filters_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionListRequest.filters) -} -inline ::std::string* TaskExecutionListRequest::mutable_filters() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.filters) - return filters_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionListRequest::release_filters() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.filters) - - return filters_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionListRequest::set_allocated_filters(::std::string* filters) { - if (filters != nullptr) { - - } else { - - } - filters_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filters); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.filters) -} - -// .flyteidl.admin.Sort sort_by = 5; -inline bool TaskExecutionListRequest::has_sort_by() const { - return this != internal_default_instance() && sort_by_ != nullptr; -} -inline const ::flyteidl::admin::Sort& TaskExecutionListRequest::sort_by() const { - const ::flyteidl::admin::Sort* p = sort_by_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionListRequest.sort_by) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Sort_default_instance_); -} -inline ::flyteidl::admin::Sort* TaskExecutionListRequest::release_sort_by() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionListRequest.sort_by) - - ::flyteidl::admin::Sort* temp = sort_by_; - sort_by_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Sort* TaskExecutionListRequest::mutable_sort_by() { - - if (sort_by_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Sort>(GetArenaNoVirtual()); - sort_by_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionListRequest.sort_by) - return sort_by_; -} -inline void TaskExecutionListRequest::set_allocated_sort_by(::flyteidl::admin::Sort* sort_by) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sort_by_); - } - if (sort_by) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sort_by = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sort_by, submessage_arena); - } - - } else { - - } - sort_by_ = sort_by; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionListRequest.sort_by) -} - -// ------------------------------------------------------------------- - -// TaskExecution - -// .flyteidl.core.TaskExecutionIdentifier id = 1; -inline bool TaskExecution::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecution::id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecution::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.id) - return id_; -} -inline void TaskExecution::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* 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.TaskExecution.id) -} - -// string input_uri = 2; -inline void TaskExecution::clear_input_uri() { - input_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecution::input_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.input_uri) - return input_uri_.GetNoArena(); -} -inline void TaskExecution::set_input_uri(const ::std::string& value) { - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.input_uri) -} -#if LANG_CXX11 -inline void TaskExecution::set_input_uri(::std::string&& value) { - - input_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecution.input_uri) -} -#endif -inline void TaskExecution::set_input_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecution.input_uri) -} -inline void TaskExecution::set_input_uri(const char* value, size_t size) { - - input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecution.input_uri) -} -inline ::std::string* TaskExecution::mutable_input_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.input_uri) - return input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecution::release_input_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.input_uri) - - return input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecution::set_allocated_input_uri(::std::string* input_uri) { - if (input_uri != nullptr) { - - } else { - - } - input_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.input_uri) -} - -// .flyteidl.admin.TaskExecutionClosure closure = 3; -inline bool TaskExecution::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void TaskExecution::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::TaskExecutionClosure& TaskExecution::closure() const { - const ::flyteidl::admin::TaskExecutionClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_TaskExecutionClosure_default_instance_); -} -inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecution.closure) - - ::flyteidl::admin::TaskExecutionClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::TaskExecutionClosure* TaskExecution::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::TaskExecutionClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecution.closure) - return closure_; -} -inline void TaskExecution::set_allocated_closure(::flyteidl::admin::TaskExecutionClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecution.closure) -} - -// bool is_parent = 4; -inline void TaskExecution::clear_is_parent() { - is_parent_ = false; -} -inline bool TaskExecution::is_parent() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecution.is_parent) - return is_parent_; -} -inline void TaskExecution::set_is_parent(bool value) { - - is_parent_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecution.is_parent) -} - -// ------------------------------------------------------------------- - -// TaskExecutionList - -// repeated .flyteidl.admin.TaskExecution task_executions = 1; -inline int TaskExecutionList::task_executions_size() const { - return task_executions_.size(); -} -inline void TaskExecutionList::clear_task_executions() { - task_executions_.Clear(); -} -inline ::flyteidl::admin::TaskExecution* TaskExecutionList::mutable_task_executions(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.task_executions) - return task_executions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >* -TaskExecutionList::mutable_task_executions() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionList.task_executions) - return &task_executions_; -} -inline const ::flyteidl::admin::TaskExecution& TaskExecutionList::task_executions(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.task_executions) - return task_executions_.Get(index); -} -inline ::flyteidl::admin::TaskExecution* TaskExecutionList::add_task_executions() { - // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionList.task_executions) - return task_executions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::TaskExecution >& -TaskExecutionList::task_executions() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionList.task_executions) - return task_executions_; -} - -// string token = 2; -inline void TaskExecutionList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionList.token) - return token_.GetNoArena(); -} -inline void TaskExecutionList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionList.token) -} -#if LANG_CXX11 -inline void TaskExecutionList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionList.token) -} -#endif -inline void TaskExecutionList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionList.token) -} -inline void TaskExecutionList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionList.token) -} -inline ::std::string* TaskExecutionList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionList.token) -} - -// ------------------------------------------------------------------- - -// TaskExecutionClosure - -// string output_uri = 1 [deprecated = true]; -inline bool TaskExecutionClosure::has_output_uri() const { - return output_result_case() == kOutputUri; -} -inline void TaskExecutionClosure::set_has_output_uri() { - _oneof_case_[0] = kOutputUri; -} -inline void TaskExecutionClosure::clear_output_uri() { - if (has_output_uri()) { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& TaskExecutionClosure::output_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.output_uri) - if (has_output_uri()) { - return output_result_.output_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void TaskExecutionClosure::set_output_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) -} -#if LANG_CXX11 -inline void TaskExecutionClosure::set_output_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.output_uri) -} -#endif -inline void TaskExecutionClosure::set_output_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.output_uri) -} -inline void TaskExecutionClosure::set_output_uri(const char* value, size_t size) { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.output_uri) -} -inline ::std::string* TaskExecutionClosure::mutable_output_uri() { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.output_uri) - return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionClosure::release_output_uri() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.output_uri) - if (has_output_uri()) { - clear_has_output_result(); - return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void TaskExecutionClosure::set_allocated_output_uri(::std::string* output_uri) { - if (has_output_result()) { - clear_output_result(); - } - if (output_uri != nullptr) { - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(output_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.output_uri) -} - -// .flyteidl.core.ExecutionError error = 2; -inline bool TaskExecutionClosure::has_error() const { - return output_result_case() == kError; -} -inline void TaskExecutionClosure::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& TaskExecutionClosure::error() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* TaskExecutionClosure::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.error) - return output_result_.error_; -} - -// .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; -inline bool TaskExecutionClosure::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void TaskExecutionClosure::set_has_output_data() { - _oneof_case_[0] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* TaskExecutionClosure::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& TaskExecutionClosure::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskExecutionClosure::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.output_data) - return output_result_.output_data_; -} - -// .flyteidl.core.TaskExecution.Phase phase = 3; -inline void TaskExecutionClosure::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::TaskExecution_Phase TaskExecutionClosure::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.phase) - return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); -} -inline void TaskExecutionClosure::set_phase(::flyteidl::core::TaskExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.phase) -} - -// repeated .flyteidl.core.TaskLog logs = 4; -inline int TaskExecutionClosure::logs_size() const { - return logs_.size(); -} -inline ::flyteidl::core::TaskLog* TaskExecutionClosure::mutable_logs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.logs) - return logs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -TaskExecutionClosure::mutable_logs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionClosure.logs) - return &logs_; -} -inline const ::flyteidl::core::TaskLog& TaskExecutionClosure::logs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.logs) - return logs_.Get(index); -} -inline ::flyteidl::core::TaskLog* TaskExecutionClosure::add_logs() { - // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionClosure.logs) - return logs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -TaskExecutionClosure::logs() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionClosure.logs) - return logs_; -} - -// .google.protobuf.Timestamp started_at = 5; -inline bool TaskExecutionClosure::has_started_at() const { - return this != internal_default_instance() && started_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskExecutionClosure::started_at() const { - const ::google::protobuf::Timestamp* p = started_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.started_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_started_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.started_at) - - ::google::protobuf::Timestamp* temp = started_at_; - started_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_started_at() { - - if (started_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - started_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.started_at) - return started_at_; -} -inline void TaskExecutionClosure::set_allocated_started_at(::google::protobuf::Timestamp* started_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(started_at_); - } - if (started_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(started_at)->GetArena(); - if (message_arena != submessage_arena) { - started_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, started_at, submessage_arena); - } - - } else { - - } - started_at_ = started_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.started_at) -} - -// .google.protobuf.Duration duration = 6; -inline bool TaskExecutionClosure::has_duration() const { - return this != internal_default_instance() && duration_ != nullptr; -} -inline const ::google::protobuf::Duration& TaskExecutionClosure::duration() const { - const ::google::protobuf::Duration* p = duration_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.duration) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* TaskExecutionClosure::release_duration() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.duration) - - ::google::protobuf::Duration* temp = duration_; - duration_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* TaskExecutionClosure::mutable_duration() { - - if (duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - duration_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.duration) - return duration_; -} -inline void TaskExecutionClosure::set_allocated_duration(::google::protobuf::Duration* duration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); - } - if (duration) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); - if (message_arena != submessage_arena) { - duration = ::google::protobuf::internal::GetOwnedMessage( - message_arena, duration, submessage_arena); - } - - } else { - - } - duration_ = duration; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.duration) -} - -// .google.protobuf.Timestamp created_at = 7; -inline bool TaskExecutionClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskExecutionClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.created_at) - return created_at_; -} -inline void TaskExecutionClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.created_at) -} - -// .google.protobuf.Timestamp updated_at = 8; -inline bool TaskExecutionClosure::has_updated_at() const { - return this != internal_default_instance() && updated_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskExecutionClosure::updated_at() const { - const ::google::protobuf::Timestamp* p = updated_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.updated_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::release_updated_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.updated_at) - - ::google::protobuf::Timestamp* temp = updated_at_; - updated_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskExecutionClosure::mutable_updated_at() { - - if (updated_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - updated_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.updated_at) - return updated_at_; -} -inline void TaskExecutionClosure::set_allocated_updated_at(::google::protobuf::Timestamp* updated_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(updated_at_); - } - if (updated_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(updated_at)->GetArena(); - if (message_arena != submessage_arena) { - updated_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, updated_at, submessage_arena); - } - - } else { - - } - updated_at_ = updated_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.updated_at) -} - -// .google.protobuf.Struct custom_info = 9; -inline bool TaskExecutionClosure::has_custom_info() const { - return this != internal_default_instance() && custom_info_ != nullptr; -} -inline const ::google::protobuf::Struct& TaskExecutionClosure::custom_info() const { - const ::google::protobuf::Struct* p = custom_info_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.custom_info) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* TaskExecutionClosure::release_custom_info() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.custom_info) - - ::google::protobuf::Struct* temp = custom_info_; - custom_info_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* TaskExecutionClosure::mutable_custom_info() { - - if (custom_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - custom_info_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.custom_info) - return custom_info_; -} -inline void TaskExecutionClosure::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); - } - if (custom_info) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(custom_info)->GetArena(); - if (message_arena != submessage_arena) { - custom_info = ::google::protobuf::internal::GetOwnedMessage( - message_arena, custom_info, submessage_arena); - } - - } else { - - } - custom_info_ = custom_info; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.custom_info) -} - -// string reason = 10; -inline void TaskExecutionClosure::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionClosure::reason() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.reason) - return reason_.GetNoArena(); -} -inline void TaskExecutionClosure::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.reason) -} -#if LANG_CXX11 -inline void TaskExecutionClosure::set_reason(::std::string&& value) { - - reason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.reason) -} -#endif -inline void TaskExecutionClosure::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.reason) -} -inline void TaskExecutionClosure::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.reason) -} -inline ::std::string* TaskExecutionClosure::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionClosure::release_reason() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionClosure::set_allocated_reason(::std::string* reason) { - if (reason != nullptr) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.reason) -} - -// string task_type = 11; -inline void TaskExecutionClosure::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionClosure::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.task_type) - return task_type_.GetNoArena(); -} -inline void TaskExecutionClosure::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.task_type) -} -#if LANG_CXX11 -inline void TaskExecutionClosure::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.TaskExecutionClosure.task_type) -} -#endif -inline void TaskExecutionClosure::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.TaskExecutionClosure.task_type) -} -inline void TaskExecutionClosure::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.TaskExecutionClosure.task_type) -} -inline ::std::string* TaskExecutionClosure::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionClosure::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionClosure::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.task_type) -} - -// .flyteidl.event.TaskExecutionMetadata metadata = 16; -inline bool TaskExecutionClosure::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline const ::flyteidl::event::TaskExecutionMetadata& TaskExecutionClosure::metadata() const { - const ::flyteidl::event::TaskExecutionMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_TaskExecutionMetadata_default_instance_); -} -inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionClosure::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionClosure.metadata) - - ::flyteidl::event::TaskExecutionMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionClosure::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.metadata) - return metadata_; -} -inline void TaskExecutionClosure::set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionClosure.metadata) -} - -// int32 event_version = 17; -inline void TaskExecutionClosure::clear_event_version() { - event_version_ = 0; -} -inline ::google::protobuf::int32 TaskExecutionClosure::event_version() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.event_version) - return event_version_; -} -inline void TaskExecutionClosure::set_event_version(::google::protobuf::int32 value) { - - event_version_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.TaskExecutionClosure.event_version) -} - -// repeated .flyteidl.admin.Reason reasons = 18; -inline int TaskExecutionClosure::reasons_size() const { - return reasons_.size(); -} -inline void TaskExecutionClosure::clear_reasons() { - reasons_.Clear(); -} -inline ::flyteidl::admin::Reason* TaskExecutionClosure::mutable_reasons(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionClosure.reasons) - return reasons_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >* -TaskExecutionClosure::mutable_reasons() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.TaskExecutionClosure.reasons) - return &reasons_; -} -inline const ::flyteidl::admin::Reason& TaskExecutionClosure::reasons(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionClosure.reasons) - return reasons_.Get(index); -} -inline ::flyteidl::admin::Reason* TaskExecutionClosure::add_reasons() { - // @@protoc_insertion_point(field_add:flyteidl.admin.TaskExecutionClosure.reasons) - return reasons_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Reason >& -TaskExecutionClosure::reasons() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.TaskExecutionClosure.reasons) - return reasons_; -} - -inline bool TaskExecutionClosure::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void TaskExecutionClosure::clear_has_output_result() { - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} -inline TaskExecutionClosure::OutputResultCase TaskExecutionClosure::output_result_case() const { - return TaskExecutionClosure::OutputResultCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Reason - -// .google.protobuf.Timestamp occurred_at = 1; -inline bool Reason::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& Reason::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Reason.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Reason::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Reason.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Reason::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Reason.occurred_at) - return occurred_at_; -} -inline void Reason::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Reason.occurred_at) -} - -// string message = 2; -inline void Reason::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Reason::message() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Reason.message) - return message_.GetNoArena(); -} -inline void Reason::set_message(const ::std::string& value) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Reason.message) -} -#if LANG_CXX11 -inline void Reason::set_message(::std::string&& value) { - - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Reason.message) -} -#endif -inline void Reason::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Reason.message) -} -inline void Reason::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Reason.message) -} -inline ::std::string* Reason::mutable_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Reason.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Reason::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Reason.message) - - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Reason::set_allocated_message(::std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Reason.message) -} - -// ------------------------------------------------------------------- - -// TaskExecutionGetDataRequest - -// .flyteidl.core.TaskExecutionIdentifier id = 1; -inline bool TaskExecutionGetDataRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& TaskExecutionGetDataRequest::id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataRequest.id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* TaskExecutionGetDataRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataRequest.id) - return id_; -} -inline void TaskExecutionGetDataRequest::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* 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.TaskExecutionGetDataRequest.id) -} - -// ------------------------------------------------------------------- - -// TaskExecutionGetDataResponse - -// .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; -inline bool TaskExecutionGetDataResponse::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::inputs() const { - const ::flyteidl::admin::UrlBlob* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.inputs) - - ::flyteidl::admin::UrlBlob* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.inputs) - return inputs_; -} -inline void TaskExecutionGetDataResponse::set_allocated_inputs(::flyteidl::admin::UrlBlob* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.inputs) -} - -// .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; -inline bool TaskExecutionGetDataResponse::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::admin::UrlBlob& TaskExecutionGetDataResponse::outputs() const { - const ::flyteidl::admin::UrlBlob* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_UrlBlob_default_instance_); -} -inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.outputs) - - ::flyteidl::admin::UrlBlob* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::admin::UrlBlob* TaskExecutionGetDataResponse::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::UrlBlob>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.outputs) - return outputs_; -} -inline void TaskExecutionGetDataResponse::set_allocated_outputs(::flyteidl::admin::UrlBlob* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.outputs) -} - -// .flyteidl.core.LiteralMap full_inputs = 3; -inline bool TaskExecutionGetDataResponse::has_full_inputs() const { - return this != internal_default_instance() && full_inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& TaskExecutionGetDataResponse::full_inputs() const { - const ::flyteidl::core::LiteralMap* p = full_inputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::release_full_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) - - ::flyteidl::core::LiteralMap* temp = full_inputs_; - full_inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::mutable_full_inputs() { - - if (full_inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) - return full_inputs_; -} -inline void TaskExecutionGetDataResponse::set_allocated_full_inputs(::flyteidl::core::LiteralMap* full_inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_inputs_); - } - if (full_inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_inputs, submessage_arena); - } - - } else { - - } - full_inputs_ = full_inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.full_inputs) -} - -// .flyteidl.core.LiteralMap full_outputs = 4; -inline bool TaskExecutionGetDataResponse::has_full_outputs() const { - return this != internal_default_instance() && full_outputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& TaskExecutionGetDataResponse::full_outputs() const { - const ::flyteidl::core::LiteralMap* p = full_outputs_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::release_full_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) - - ::flyteidl::core::LiteralMap* temp = full_outputs_; - full_outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* TaskExecutionGetDataResponse::mutable_full_outputs() { - - if (full_outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - full_outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) - return full_outputs_; -} -inline void TaskExecutionGetDataResponse::set_allocated_full_outputs(::flyteidl::core::LiteralMap* full_outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(full_outputs_); - } - if (full_outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - full_outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, full_outputs, submessage_arena); - } - - } else { - - } - full_outputs_ = full_outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.full_outputs) -} - -// .flyteidl.admin.FlyteURLs flyte_urls = 5; -inline bool TaskExecutionGetDataResponse::has_flyte_urls() const { - return this != internal_default_instance() && flyte_urls_ != nullptr; -} -inline const ::flyteidl::admin::FlyteURLs& TaskExecutionGetDataResponse::flyte_urls() const { - const ::flyteidl::admin::FlyteURLs* p = flyte_urls_; - // @@protoc_insertion_point(field_get:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_FlyteURLs_default_instance_); -} -inline ::flyteidl::admin::FlyteURLs* TaskExecutionGetDataResponse::release_flyte_urls() { - // @@protoc_insertion_point(field_release:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) - - ::flyteidl::admin::FlyteURLs* temp = flyte_urls_; - flyte_urls_ = nullptr; - return temp; -} -inline ::flyteidl::admin::FlyteURLs* TaskExecutionGetDataResponse::mutable_flyte_urls() { - - if (flyte_urls_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::FlyteURLs>(GetArenaNoVirtual()); - flyte_urls_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) - return flyte_urls_; -} -inline void TaskExecutionGetDataResponse::set_allocated_flyte_urls(::flyteidl::admin::FlyteURLs* flyte_urls) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(flyte_urls_); - } - if (flyte_urls) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - flyte_urls = ::google::protobuf::internal::GetOwnedMessage( - message_arena, flyte_urls, submessage_arena); - } - - } else { - - } - flyte_urls_ = flyte_urls; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.TaskExecutionGetDataResponse.flyte_urls) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2ftask_5fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc deleted file mode 100644 index a85e4ae531..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/version.proto - -#include "flyteidl/admin/version.pb.h" -#include "flyteidl/admin/version.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h deleted file mode 100644 index 72c37eb83f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/version.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/version.proto -#ifndef GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED - -#include "flyteidl/admin/version.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fversion_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc deleted file mode 100644 index a135d06626..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.cc +++ /dev/null @@ -1,1112 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/version.proto - -#include "flyteidl/admin/version.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fversion_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Version_flyteidl_2fadmin_2fversion_2eproto; -namespace flyteidl { -namespace admin { -class GetVersionResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetVersionResponse_default_instance_; -class VersionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Version_default_instance_; -class GetVersionRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetVersionRequest_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsGetVersionResponse_flyteidl_2fadmin_2fversion_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetVersionResponse_default_instance_; - new (ptr) ::flyteidl::admin::GetVersionResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetVersionResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetVersionResponse_flyteidl_2fadmin_2fversion_2eproto}, { - &scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base,}}; - -static void InitDefaultsVersion_flyteidl_2fadmin_2fversion_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Version_default_instance_; - new (ptr) ::flyteidl::admin::Version(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Version::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Version_flyteidl_2fadmin_2fversion_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVersion_flyteidl_2fadmin_2fversion_2eproto}, {}}; - -static void InitDefaultsGetVersionRequest_flyteidl_2fadmin_2fversion_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_GetVersionRequest_default_instance_; - new (ptr) ::flyteidl::admin::GetVersionRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::GetVersionRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetVersionRequest_flyteidl_2fadmin_2fversion_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fversion_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[3]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fversion_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fversion_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fversion_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionResponse, control_plane_version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, build_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Version, buildtime_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::GetVersionRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::GetVersionResponse)}, - { 6, -1, sizeof(::flyteidl::admin::Version)}, - { 14, -1, sizeof(::flyteidl::admin::GetVersionRequest)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_GetVersionResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Version_default_instance_), - reinterpret_cast(&::flyteidl::admin::_GetVersionRequest_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fversion_2eproto, "flyteidl/admin/version.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fversion_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fversion_2eproto, 3, file_level_enum_descriptors_flyteidl_2fadmin_2fversion_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fversion_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fversion_2eproto[] = - "\n\034flyteidl/admin/version.proto\022\016flyteidl" - ".admin\"L\n\022GetVersionResponse\0226\n\025control_" - "plane_version\030\001 \001(\0132\027.flyteidl.admin.Ver" - "sion\"<\n\007Version\022\r\n\005Build\030\001 \001(\t\022\017\n\007Versio" - "n\030\002 \001(\t\022\021\n\tBuildTime\030\003 \001(\t\"\023\n\021GetVersion" - "RequestB=Z;github.com/flyteorg/flyte/fly" - "teidl/gen/pb-go/flyteidl/adminb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fversion_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fversion_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fversion_2eproto, - "flyteidl/admin/version.proto", &assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto, 278, -}; - -void AddDescriptors_flyteidl_2fadmin_2fversion_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fversion_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fversion_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fversion_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void GetVersionResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_GetVersionResponse_default_instance_._instance.get_mutable()->control_plane_version_ = const_cast< ::flyteidl::admin::Version*>( - ::flyteidl::admin::Version::internal_default_instance()); -} -class GetVersionResponse::HasBitSetters { - public: - static const ::flyteidl::admin::Version& control_plane_version(const GetVersionResponse* msg); -}; - -const ::flyteidl::admin::Version& -GetVersionResponse::HasBitSetters::control_plane_version(const GetVersionResponse* msg) { - return *msg->control_plane_version_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetVersionResponse::kControlPlaneVersionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetVersionResponse::GetVersionResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetVersionResponse) -} -GetVersionResponse::GetVersionResponse(const GetVersionResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_control_plane_version()) { - control_plane_version_ = new ::flyteidl::admin::Version(*from.control_plane_version_); - } else { - control_plane_version_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetVersionResponse) -} - -void GetVersionResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); - control_plane_version_ = nullptr; -} - -GetVersionResponse::~GetVersionResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetVersionResponse) - SharedDtor(); -} - -void GetVersionResponse::SharedDtor() { - if (this != internal_default_instance()) delete control_plane_version_; -} - -void GetVersionResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVersionResponse& GetVersionResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetVersionResponse_flyteidl_2fadmin_2fversion_2eproto.base); - return *internal_default_instance(); -} - - -void GetVersionResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetVersionResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && control_plane_version_ != nullptr) { - delete control_plane_version_; - } - control_plane_version_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetVersionResponse::_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.Version control_plane_version = 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::Version::_InternalParse; - object = msg->mutable_control_plane_version(); - 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 GetVersionResponse::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.GetVersionResponse) - 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.Version control_plane_version = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_control_plane_version())); - } 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.GetVersionResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetVersionResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetVersionResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetVersionResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Version control_plane_version = 1; - if (this->has_control_plane_version()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::control_plane_version(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.GetVersionResponse) -} - -::google::protobuf::uint8* GetVersionResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetVersionResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.Version control_plane_version = 1; - if (this->has_control_plane_version()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::control_plane_version(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.GetVersionResponse) - return target; -} - -size_t GetVersionResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetVersionResponse) - 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.admin.Version control_plane_version = 1; - if (this->has_control_plane_version()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *control_plane_version_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVersionResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetVersionResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetVersionResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetVersionResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetVersionResponse) - MergeFrom(*source); - } -} - -void GetVersionResponse::MergeFrom(const GetVersionResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetVersionResponse) - 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_control_plane_version()) { - mutable_control_plane_version()->::flyteidl::admin::Version::MergeFrom(from.control_plane_version()); - } -} - -void GetVersionResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetVersionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVersionResponse::CopyFrom(const GetVersionResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetVersionResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVersionResponse::IsInitialized() const { - return true; -} - -void GetVersionResponse::Swap(GetVersionResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetVersionResponse::InternalSwap(GetVersionResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(control_plane_version_, other->control_plane_version_); -} - -::google::protobuf::Metadata GetVersionResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Version::InitAsDefaultInstance() { -} -class Version::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Version::kBuildFieldNumber; -const int Version::kVersionFieldNumber; -const int Version::kBuildTimeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Version::Version() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Version) -} -Version::Version(const Version& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - build_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.build().size() > 0) { - build_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_); - } - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - buildtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.buildtime().size() > 0) { - buildtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildtime_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Version) -} - -void Version::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); - build_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - buildtime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Version::~Version() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Version) - SharedDtor(); -} - -void Version::SharedDtor() { - build_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - buildtime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Version::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Version& Version::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Version_flyteidl_2fadmin_2fversion_2eproto.base); - return *internal_default_instance(); -} - - -void Version::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Version) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - buildtime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Version::_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) { - // string Build = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.Build"); - object = msg->mutable_build(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string Version = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.Version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string BuildTime = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Version.BuildTime"); - object = msg->mutable_buildtime(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Version::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.Version) - 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)) { - // string Build = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_build())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->build().data(), static_cast(this->build().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Version.Build")); - } else { - goto handle_unusual; - } - break; - } - - // string Version = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Version.Version")); - } else { - goto handle_unusual; - } - break; - } - - // string BuildTime = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_buildtime())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->buildtime().data(), static_cast(this->buildtime().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Version.BuildTime")); - } 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.Version) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Version) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Version::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Version) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Build = 1; - if (this->build().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->build().data(), static_cast(this->build().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.Build"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->build(), output); - } - - // string Version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.Version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->version(), output); - } - - // string BuildTime = 3; - if (this->buildtime().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->buildtime().data(), static_cast(this->buildtime().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.BuildTime"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->buildtime(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Version) -} - -::google::protobuf::uint8* Version::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Version) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string Build = 1; - if (this->build().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->build().data(), static_cast(this->build().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.Build"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->build(), target); - } - - // string Version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.Version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->version(), target); - } - - // string BuildTime = 3; - if (this->buildtime().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->buildtime().data(), static_cast(this->buildtime().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Version.BuildTime"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->buildtime(), 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.Version) - return target; -} - -size_t Version::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Version) - 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; - - // string Build = 1; - if (this->build().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->build()); - } - - // string Version = 2; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // string BuildTime = 3; - if (this->buildtime().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->buildtime()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Version::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Version) - GOOGLE_DCHECK_NE(&from, this); - const Version* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Version) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Version) - MergeFrom(*source); - } -} - -void Version::MergeFrom(const Version& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Version) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.build().size() > 0) { - - build_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.build_); - } - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.buildtime().size() > 0) { - - buildtime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.buildtime_); - } -} - -void Version::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Version) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Version::CopyFrom(const Version& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Version) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Version::IsInitialized() const { - return true; -} - -void Version::Swap(Version* other) { - if (other == this) return; - InternalSwap(other); -} -void Version::InternalSwap(Version* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - build_.Swap(&other->build_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - buildtime_.Swap(&other->buildtime_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Version::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetVersionRequest::InitAsDefaultInstance() { -} -class GetVersionRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetVersionRequest::GetVersionRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.GetVersionRequest) -} -GetVersionRequest::GetVersionRequest(const GetVersionRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.GetVersionRequest) -} - -void GetVersionRequest::SharedCtor() { -} - -GetVersionRequest::~GetVersionRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.GetVersionRequest) - SharedDtor(); -} - -void GetVersionRequest::SharedDtor() { -} - -void GetVersionRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetVersionRequest& GetVersionRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetVersionRequest_flyteidl_2fadmin_2fversion_2eproto.base); - return *internal_default_instance(); -} - - -void GetVersionRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.GetVersionRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetVersionRequest::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetVersionRequest::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.GetVersionRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.GetVersionRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.GetVersionRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetVersionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.GetVersionRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.GetVersionRequest) -} - -::google::protobuf::uint8* GetVersionRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.GetVersionRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.GetVersionRequest) - return target; -} - -size_t GetVersionRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.GetVersionRequest) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetVersionRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.GetVersionRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetVersionRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.GetVersionRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.GetVersionRequest) - MergeFrom(*source); - } -} - -void GetVersionRequest::MergeFrom(const GetVersionRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.GetVersionRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void GetVersionRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.GetVersionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetVersionRequest::CopyFrom(const GetVersionRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.GetVersionRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetVersionRequest::IsInitialized() const { - return true; -} - -void GetVersionRequest::Swap(GetVersionRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetVersionRequest::InternalSwap(GetVersionRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata GetVersionRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fversion_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fversion_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetVersionResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::GetVersionResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetVersionResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::Version* Arena::CreateMaybeMessage< ::flyteidl::admin::Version >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::Version >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::GetVersionRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::GetVersionRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::GetVersionRequest >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h deleted file mode 100644 index 898f4ef3ca..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/version.pb.h +++ /dev/null @@ -1,689 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/version.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fversion_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fversion_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fversion_2eproto(); -namespace flyteidl { -namespace admin { -class GetVersionRequest; -class GetVersionRequestDefaultTypeInternal; -extern GetVersionRequestDefaultTypeInternal _GetVersionRequest_default_instance_; -class GetVersionResponse; -class GetVersionResponseDefaultTypeInternal; -extern GetVersionResponseDefaultTypeInternal _GetVersionResponse_default_instance_; -class Version; -class VersionDefaultTypeInternal; -extern VersionDefaultTypeInternal _Version_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::GetVersionRequest* Arena::CreateMaybeMessage<::flyteidl::admin::GetVersionRequest>(Arena*); -template<> ::flyteidl::admin::GetVersionResponse* Arena::CreateMaybeMessage<::flyteidl::admin::GetVersionResponse>(Arena*); -template<> ::flyteidl::admin::Version* Arena::CreateMaybeMessage<::flyteidl::admin::Version>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class GetVersionResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetVersionResponse) */ { - public: - GetVersionResponse(); - virtual ~GetVersionResponse(); - - GetVersionResponse(const GetVersionResponse& from); - - inline GetVersionResponse& operator=(const GetVersionResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetVersionResponse(GetVersionResponse&& from) noexcept - : GetVersionResponse() { - *this = ::std::move(from); - } - - inline GetVersionResponse& operator=(GetVersionResponse&& 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 GetVersionResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetVersionResponse* internal_default_instance() { - return reinterpret_cast( - &_GetVersionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(GetVersionResponse* other); - friend void swap(GetVersionResponse& a, GetVersionResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetVersionResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVersionResponse* 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 GetVersionResponse& from); - void MergeFrom(const GetVersionResponse& 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(GetVersionResponse* 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.Version control_plane_version = 1; - bool has_control_plane_version() const; - void clear_control_plane_version(); - static const int kControlPlaneVersionFieldNumber = 1; - const ::flyteidl::admin::Version& control_plane_version() const; - ::flyteidl::admin::Version* release_control_plane_version(); - ::flyteidl::admin::Version* mutable_control_plane_version(); - void set_allocated_control_plane_version(::flyteidl::admin::Version* control_plane_version); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::Version* control_plane_version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; -}; -// ------------------------------------------------------------------- - -class Version final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Version) */ { - public: - Version(); - virtual ~Version(); - - Version(const Version& from); - - inline Version& operator=(const Version& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Version(Version&& from) noexcept - : Version() { - *this = ::std::move(from); - } - - inline Version& operator=(Version&& 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 Version& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Version* internal_default_instance() { - return reinterpret_cast( - &_Version_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Version* other); - friend void swap(Version& a, Version& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Version* New() const final { - return CreateMaybeMessage(nullptr); - } - - Version* 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 Version& from); - void MergeFrom(const Version& 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(Version* 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 ------------------------------------------------------- - - // string Build = 1; - void clear_build(); - static const int kBuildFieldNumber = 1; - const ::std::string& build() const; - void set_build(const ::std::string& value); - #if LANG_CXX11 - void set_build(::std::string&& value); - #endif - void set_build(const char* value); - void set_build(const char* value, size_t size); - ::std::string* mutable_build(); - ::std::string* release_build(); - void set_allocated_build(::std::string* build); - - // string Version = 2; - void clear_version(); - static const int kVersionFieldNumber = 2; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // string BuildTime = 3; - void clear_buildtime(); - static const int kBuildTimeFieldNumber = 3; - const ::std::string& buildtime() const; - void set_buildtime(const ::std::string& value); - #if LANG_CXX11 - void set_buildtime(::std::string&& value); - #endif - void set_buildtime(const char* value); - void set_buildtime(const char* value, size_t size); - ::std::string* mutable_buildtime(); - ::std::string* release_buildtime(); - void set_allocated_buildtime(::std::string* buildtime); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Version) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr build_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr buildtime_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; -}; -// ------------------------------------------------------------------- - -class GetVersionRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.GetVersionRequest) */ { - public: - GetVersionRequest(); - virtual ~GetVersionRequest(); - - GetVersionRequest(const GetVersionRequest& from); - - inline GetVersionRequest& operator=(const GetVersionRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetVersionRequest(GetVersionRequest&& from) noexcept - : GetVersionRequest() { - *this = ::std::move(from); - } - - inline GetVersionRequest& operator=(GetVersionRequest&& 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 GetVersionRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetVersionRequest* internal_default_instance() { - return reinterpret_cast( - &_GetVersionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(GetVersionRequest* other); - friend void swap(GetVersionRequest& a, GetVersionRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetVersionRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetVersionRequest* 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 GetVersionRequest& from); - void MergeFrom(const GetVersionRequest& 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(GetVersionRequest* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fversion_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// GetVersionResponse - -// .flyteidl.admin.Version control_plane_version = 1; -inline bool GetVersionResponse::has_control_plane_version() const { - return this != internal_default_instance() && control_plane_version_ != nullptr; -} -inline void GetVersionResponse::clear_control_plane_version() { - if (GetArenaNoVirtual() == nullptr && control_plane_version_ != nullptr) { - delete control_plane_version_; - } - control_plane_version_ = nullptr; -} -inline const ::flyteidl::admin::Version& GetVersionResponse::control_plane_version() const { - const ::flyteidl::admin::Version* p = control_plane_version_; - // @@protoc_insertion_point(field_get:flyteidl.admin.GetVersionResponse.control_plane_version) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_Version_default_instance_); -} -inline ::flyteidl::admin::Version* GetVersionResponse::release_control_plane_version() { - // @@protoc_insertion_point(field_release:flyteidl.admin.GetVersionResponse.control_plane_version) - - ::flyteidl::admin::Version* temp = control_plane_version_; - control_plane_version_ = nullptr; - return temp; -} -inline ::flyteidl::admin::Version* GetVersionResponse::mutable_control_plane_version() { - - if (control_plane_version_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::Version>(GetArenaNoVirtual()); - control_plane_version_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.GetVersionResponse.control_plane_version) - return control_plane_version_; -} -inline void GetVersionResponse::set_allocated_control_plane_version(::flyteidl::admin::Version* control_plane_version) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete control_plane_version_; - } - if (control_plane_version) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - control_plane_version = ::google::protobuf::internal::GetOwnedMessage( - message_arena, control_plane_version, submessage_arena); - } - - } else { - - } - control_plane_version_ = control_plane_version; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.GetVersionResponse.control_plane_version) -} - -// ------------------------------------------------------------------- - -// Version - -// string Build = 1; -inline void Version::clear_build() { - build_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Version::build() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Version.Build) - return build_.GetNoArena(); -} -inline void Version::set_build(const ::std::string& value) { - - build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Version.Build) -} -#if LANG_CXX11 -inline void Version::set_build(::std::string&& value) { - - build_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.Build) -} -#endif -inline void Version::set_build(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.Build) -} -inline void Version::set_build(const char* value, size_t size) { - - build_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.Build) -} -inline ::std::string* Version::mutable_build() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.Build) - return build_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Version::release_build() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Version.Build) - - return build_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Version::set_allocated_build(::std::string* build) { - if (build != nullptr) { - - } else { - - } - build_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), build); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.Build) -} - -// string Version = 2; -inline void Version::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Version::version() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Version.Version) - return version_.GetNoArena(); -} -inline void Version::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Version.Version) -} -#if LANG_CXX11 -inline void Version::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.Version) -} -#endif -inline void Version::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.Version) -} -inline void Version::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.Version) -} -inline ::std::string* Version::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.Version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Version::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Version.Version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Version::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.Version) -} - -// string BuildTime = 3; -inline void Version::clear_buildtime() { - buildtime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Version::buildtime() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Version.BuildTime) - return buildtime_.GetNoArena(); -} -inline void Version::set_buildtime(const ::std::string& value) { - - buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Version.BuildTime) -} -#if LANG_CXX11 -inline void Version::set_buildtime(::std::string&& value) { - - buildtime_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Version.BuildTime) -} -#endif -inline void Version::set_buildtime(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Version.BuildTime) -} -inline void Version::set_buildtime(const char* value, size_t size) { - - buildtime_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Version.BuildTime) -} -inline ::std::string* Version::mutable_buildtime() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Version.BuildTime) - return buildtime_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Version::release_buildtime() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Version.BuildTime) - - return buildtime_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Version::set_allocated_buildtime(::std::string* buildtime) { - if (buildtime != nullptr) { - - } else { - - } - buildtime_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), buildtime); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Version.BuildTime) -} - -// ------------------------------------------------------------------- - -// GetVersionRequest - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fversion_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc deleted file mode 100644 index 0ddae032f7..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/workflow.proto - -#include "flyteidl/admin/workflow.pb.h" -#include "flyteidl/admin/workflow.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h deleted file mode 100644 index 49ac7a56b8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/workflow.proto -#ifndef GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED - -#include "flyteidl/admin/workflow.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc deleted file mode 100644 index f3b09dede9..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.cc +++ /dev/null @@ -1,3573 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow.proto - -#include "flyteidl/admin/workflow.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fdescription_5fentity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto; -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<2> scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace admin { -class WorkflowCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowCreateRequest_default_instance_; -class WorkflowCreateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowCreateResponse_default_instance_; -class WorkflowDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Workflow_default_instance_; -class WorkflowListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowList_default_instance_; -class WorkflowSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowSpec_default_instance_; -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() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowCreateRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; - -static void InitDefaultsWorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowCreateResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowCreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowCreateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto}, {}}; - -static void InitDefaultsWorkflow_flyteidl_2fadmin_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_Workflow_default_instance_; - new (ptr) ::flyteidl::admin::Workflow(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::Workflow::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflow_flyteidl_2fadmin_2fworkflow_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; - -static void InitDefaultsWorkflowList_flyteidl_2fadmin_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowList_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowList_flyteidl_2fadmin_2fworkflow_2eproto}, { - &scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base,}}; - -static void InitDefaultsWorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowSpec_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto}, { - &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_DescriptionEntity_flyteidl_2fadmin_2fdescription_5fentity_2eproto.base,}}; - -static void InitDefaultsWorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowClosure_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto}, { - &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); - ::google::protobuf::internal::InitSCC(&scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); - ::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[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; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fworkflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateRequest, spec_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowCreateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, closure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::Workflow, short_description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, workflows_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowList, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, template__), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, sub_workflows_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowSpec, description_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowClosure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~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)}, - { 7, -1, sizeof(::flyteidl::admin::WorkflowCreateResponse)}, - { 12, -1, sizeof(::flyteidl::admin::Workflow)}, - { 20, -1, sizeof(::flyteidl::admin::WorkflowList)}, - { 27, -1, sizeof(::flyteidl::admin::WorkflowSpec)}, - { 35, -1, sizeof(::flyteidl::admin::WorkflowClosure)}, - { 42, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsDifferentStructure)}, - { 48, -1, sizeof(::flyteidl::admin::WorkflowErrorExistsIdenticalStructure)}, - { 54, -1, sizeof(::flyteidl::admin::CreateWorkflowFailureReason)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_WorkflowCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowCreateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_Workflow_default_instance_), - 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, 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[] = - "\n\035flyteidl/admin/workflow.proto\022\016flyteid" - "l.admin\032\034flyteidl/core/compiler.proto\032\036f" - "lyteidl/core/identifier.proto\032\034flyteidl/" - "core/workflow.proto\032\'flyteidl/admin/desc" - "ription_entity.proto\032\037google/protobuf/ti" - "mestamp.proto\"j\n\025WorkflowCreateRequest\022%" - "\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022*\n" - "\004spec\030\002 \001(\0132\034.flyteidl.admin.WorkflowSpe" - "c\"\030\n\026WorkflowCreateResponse\"~\n\010Workflow\022" - "%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\0220" - "\n\007closure\030\002 \001(\0132\037.flyteidl.admin.Workflo" - "wClosure\022\031\n\021short_description\030\003 \001(\t\"J\n\014W" - "orkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flyteid" - "l.admin.Workflow\022\r\n\005token\030\002 \001(\t\"\261\001\n\014Work" - "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" - "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" - "(\0132\037.flyteidl.core.WorkflowTemplate\0226\n\013d" - "escription\030\003 \001(\0132!.flyteidl.admin.Descri" - "ptionEntity\"\204\001\n\017WorkflowClosure\022A\n\021compi" - "led_workflow\030\001 \001(\0132&.flyteidl.core.Compi" - "ledWorkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032" - ".google.protobuf.Timestamp\"N\n%WorkflowEr" - "rorExistsDifferentStructure\022%\n\002id\030\001 \001(\0132" - "\031.flyteidl.core.Identifier\"N\n%WorkflowEr" - "rorExistsIdenticalStructure\022%\n\002id\030\001 \001(\0132" - "\031.flyteidl.core.Identifier\"\341\001\n\033CreateWor" - "kflowFailureReason\022[\n\032exists_different_s" - "tructure\030\001 \001(\01325.flyteidl.admin.Workflow" - "ErrorExistsDifferentStructureH\000\022[\n\032exist" - "s_identical_structure\030\002 \001(\01325.flyteidl.a" - "dmin.WorkflowErrorExistsIdenticalStructu" - "reH\000B\010\n\006reasonB=Z;github.com/flyteorg/fl" - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" - "roto3" - ; -::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, 1325, -}; - -void AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = - { - ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fworkflow_2eproto, deps, 5); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fworkflow_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void WorkflowCreateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_WorkflowCreateRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::admin::WorkflowSpec*>( - ::flyteidl::admin::WorkflowSpec::internal_default_instance()); -} -class WorkflowCreateRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const WorkflowCreateRequest* msg); - static const ::flyteidl::admin::WorkflowSpec& spec(const WorkflowCreateRequest* msg); -}; - -const ::flyteidl::core::Identifier& -WorkflowCreateRequest::HasBitSetters::id(const WorkflowCreateRequest* msg) { - return *msg->id_; -} -const ::flyteidl::admin::WorkflowSpec& -WorkflowCreateRequest::HasBitSetters::spec(const WorkflowCreateRequest* msg) { - return *msg->spec_; -} -void WorkflowCreateRequest::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowCreateRequest::kIdFieldNumber; -const int WorkflowCreateRequest::kSpecFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowCreateRequest::WorkflowCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateRequest) -} -WorkflowCreateRequest::WorkflowCreateRequest(const WorkflowCreateRequest& 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; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::admin::WorkflowSpec(*from.spec_); - } else { - spec_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateRequest) -} - -void WorkflowCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&spec_) - - reinterpret_cast(&id_)) + sizeof(spec_)); -} - -WorkflowCreateRequest::~WorkflowCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateRequest) - SharedDtor(); -} - -void WorkflowCreateRequest::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete spec_; -} - -void WorkflowCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowCreateRequest& WorkflowCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowCreateRequest_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateRequest) - ::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; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowCreateRequest::_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; - } - // .flyteidl.admin.WorkflowSpec spec = 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::WorkflowSpec::_InternalParse; - object = msg->mutable_spec(); - 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 WorkflowCreateRequest::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.WorkflowCreateRequest) - 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; - } - - // .flyteidl.admin.WorkflowSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } 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.WorkflowCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateRequest) - ::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); - } - - // .flyteidl.admin.WorkflowSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(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.WorkflowCreateRequest) -} - -::google::protobuf::uint8* WorkflowCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateRequest) - ::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); - } - - // .flyteidl.admin.WorkflowSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(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.WorkflowCreateRequest) - return target; -} - -size_t WorkflowCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateRequest) - 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_); - } - - // .flyteidl.admin.WorkflowSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateRequest) - MergeFrom(*source); - } -} - -void WorkflowCreateRequest::MergeFrom(const WorkflowCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateRequest) - 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()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::admin::WorkflowSpec::MergeFrom(from.spec()); - } -} - -void WorkflowCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowCreateRequest::CopyFrom(const WorkflowCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowCreateRequest::IsInitialized() const { - return true; -} - -void WorkflowCreateRequest::Swap(WorkflowCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowCreateRequest::InternalSwap(WorkflowCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); - swap(spec_, other->spec_); -} - -::google::protobuf::Metadata WorkflowCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowCreateResponse::InitAsDefaultInstance() { -} -class WorkflowCreateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowCreateResponse::WorkflowCreateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowCreateResponse) -} -WorkflowCreateResponse::WorkflowCreateResponse(const WorkflowCreateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowCreateResponse) -} - -void WorkflowCreateResponse::SharedCtor() { -} - -WorkflowCreateResponse::~WorkflowCreateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowCreateResponse) - SharedDtor(); -} - -void WorkflowCreateResponse::SharedDtor() { -} - -void WorkflowCreateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowCreateResponse& WorkflowCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowCreateResponse_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowCreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowCreateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowCreateResponse::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.WorkflowCreateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowCreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowCreateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowCreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowCreateResponse) -} - -::google::protobuf::uint8* WorkflowCreateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.WorkflowCreateResponse) - return target; -} - -size_t WorkflowCreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowCreateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowCreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowCreateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowCreateResponse) - MergeFrom(*source); - } -} - -void WorkflowCreateResponse::MergeFrom(const WorkflowCreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void WorkflowCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowCreateResponse::CopyFrom(const WorkflowCreateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowCreateResponse::IsInitialized() const { - return true; -} - -void WorkflowCreateResponse::Swap(WorkflowCreateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowCreateResponse::InternalSwap(WorkflowCreateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata WorkflowCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Workflow::InitAsDefaultInstance() { - ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::admin::_Workflow_default_instance_._instance.get_mutable()->closure_ = const_cast< ::flyteidl::admin::WorkflowClosure*>( - ::flyteidl::admin::WorkflowClosure::internal_default_instance()); -} -class Workflow::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const Workflow* msg); - static const ::flyteidl::admin::WorkflowClosure& closure(const Workflow* msg); -}; - -const ::flyteidl::core::Identifier& -Workflow::HasBitSetters::id(const Workflow* msg) { - return *msg->id_; -} -const ::flyteidl::admin::WorkflowClosure& -Workflow::HasBitSetters::closure(const Workflow* msg) { - return *msg->closure_; -} -void Workflow::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Workflow::kIdFieldNumber; -const int Workflow::kClosureFieldNumber; -const int Workflow::kShortDescriptionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Workflow::Workflow() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.Workflow) -} -Workflow::Workflow(const Workflow& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.short_description().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_closure()) { - closure_ = new ::flyteidl::admin::WorkflowClosure(*from.closure_); - } else { - closure_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.Workflow) -} - -void Workflow::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&closure_) - - reinterpret_cast(&id_)) + sizeof(closure_)); -} - -Workflow::~Workflow() { - // @@protoc_insertion_point(destructor:flyteidl.admin.Workflow) - SharedDtor(); -} - -void Workflow::SharedDtor() { - short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete closure_; -} - -void Workflow::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Workflow& Workflow::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Workflow_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void Workflow::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.Workflow) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Workflow::_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; - } - // .flyteidl.admin.WorkflowClosure closure = 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::WorkflowClosure::_InternalParse; - object = msg->mutable_closure(); - 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; - } - // string short_description = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.Workflow.short_description"); - object = msg->mutable_short_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Workflow::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.Workflow) - 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; - } - - // .flyteidl.admin.WorkflowClosure closure = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_closure())); - } else { - goto handle_unusual; - } - break; - } - - // string short_description = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.Workflow.short_description")); - } 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.Workflow) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.Workflow) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Workflow::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.Workflow) - ::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); - } - - // .flyteidl.admin.WorkflowClosure closure = 2; - if (this->has_closure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::closure(this), output); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Workflow.short_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->short_description(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.Workflow) -} - -::google::protobuf::uint8* Workflow::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.Workflow) - ::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); - } - - // .flyteidl.admin.WorkflowClosure closure = 2; - if (this->has_closure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::closure(this), target); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.Workflow.short_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->short_description(), 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.Workflow) - return target; -} - -size_t Workflow::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.Workflow) - 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; - - // string short_description = 3; - if (this->short_description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_description()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.admin.WorkflowClosure closure = 2; - if (this->has_closure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *closure_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Workflow::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.Workflow) - GOOGLE_DCHECK_NE(&from, this); - const Workflow* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.Workflow) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.Workflow) - MergeFrom(*source); - } -} - -void Workflow::MergeFrom(const Workflow& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.Workflow) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.short_description().size() > 0) { - - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_closure()) { - mutable_closure()->::flyteidl::admin::WorkflowClosure::MergeFrom(from.closure()); - } -} - -void Workflow::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.Workflow) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Workflow::CopyFrom(const Workflow& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.Workflow) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Workflow::IsInitialized() const { - return true; -} - -void Workflow::Swap(Workflow* other) { - if (other == this) return; - InternalSwap(other); -} -void Workflow::InternalSwap(Workflow* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(closure_, other->closure_); -} - -::google::protobuf::Metadata Workflow::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowList::InitAsDefaultInstance() { -} -class WorkflowList::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowList::kWorkflowsFieldNumber; -const int WorkflowList::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowList::WorkflowList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowList) -} -WorkflowList::WorkflowList(const WorkflowList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - workflows_(from.workflows_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowList) -} - -void WorkflowList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -WorkflowList::~WorkflowList() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowList) - SharedDtor(); -} - -void WorkflowList::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WorkflowList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowList& WorkflowList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowList_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - workflows_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowList::_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) { - // repeated .flyteidl.admin.Workflow workflows = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::Workflow::_InternalParse; - object = msg->add_workflows(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowList.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowList::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.WorkflowList) - 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)) { - // repeated .flyteidl.admin.Workflow workflows = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_workflows())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowList.token")); - } 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.WorkflowList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Workflow workflows = 1; - for (unsigned int i = 0, - n = static_cast(this->workflows_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->workflows(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowList.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowList) -} - -::google::protobuf::uint8* WorkflowList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.admin.Workflow workflows = 1; - for (unsigned int i = 0, - n = static_cast(this->workflows_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->workflows(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowList.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.WorkflowList) - return target; -} - -size_t WorkflowList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowList) - 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; - - // repeated .flyteidl.admin.Workflow workflows = 1; - { - unsigned int count = static_cast(this->workflows_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->workflows(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowList) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowList) - MergeFrom(*source); - } -} - -void WorkflowList::MergeFrom(const WorkflowList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - workflows_.MergeFrom(from.workflows_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void WorkflowList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowList::CopyFrom(const WorkflowList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowList::IsInitialized() const { - return true; -} - -void WorkflowList::Swap(WorkflowList* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowList::InternalSwap(WorkflowList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&workflows_)->InternalSwap(CastToBase(&other->workflows_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata WorkflowList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowSpec::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowSpec_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( - ::flyteidl::core::WorkflowTemplate::internal_default_instance()); - ::flyteidl::admin::_WorkflowSpec_default_instance_._instance.get_mutable()->description_ = const_cast< ::flyteidl::admin::DescriptionEntity*>( - ::flyteidl::admin::DescriptionEntity::internal_default_instance()); -} -class WorkflowSpec::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowTemplate& template_(const WorkflowSpec* msg); - static const ::flyteidl::admin::DescriptionEntity& description(const WorkflowSpec* msg); -}; - -const ::flyteidl::core::WorkflowTemplate& -WorkflowSpec::HasBitSetters::template_(const WorkflowSpec* msg) { - return *msg->template__; -} -const ::flyteidl::admin::DescriptionEntity& -WorkflowSpec::HasBitSetters::description(const WorkflowSpec* msg) { - return *msg->description_; -} -void WorkflowSpec::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -void WorkflowSpec::clear_sub_workflows() { - sub_workflows_.Clear(); -} -void WorkflowSpec::clear_description() { - if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { - delete description_; - } - description_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowSpec::kTemplateFieldNumber; -const int WorkflowSpec::kSubWorkflowsFieldNumber; -const int WorkflowSpec::kDescriptionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowSpec::WorkflowSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowSpec) -} -WorkflowSpec::WorkflowSpec(const WorkflowSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - sub_workflows_(from.sub_workflows_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_template_()) { - template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); - } else { - template__ = nullptr; - } - if (from.has_description()) { - description_ = new ::flyteidl::admin::DescriptionEntity(*from.description_); - } else { - description_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowSpec) -} - -void WorkflowSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); - ::memset(&template__, 0, static_cast( - reinterpret_cast(&description_) - - reinterpret_cast(&template__)) + sizeof(description_)); -} - -WorkflowSpec::~WorkflowSpec() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowSpec) - SharedDtor(); -} - -void WorkflowSpec::SharedDtor() { - if (this != internal_default_instance()) delete template__; - if (this != internal_default_instance()) delete description_; -} - -void WorkflowSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowSpec& WorkflowSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowSpec_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - sub_workflows_.Clear(); - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - if (GetArenaNoVirtual() == nullptr && description_ != nullptr) { - delete description_; - } - description_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowSpec::_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.WorkflowTemplate template = 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::WorkflowTemplate::_InternalParse; - object = msg->mutable_template_(); - 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; - } - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; - object = msg->add_sub_workflows(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // .flyteidl.admin.DescriptionEntity description = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::DescriptionEntity::_InternalParse; - object = msg->mutable_description(); - 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 WorkflowSpec::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.WorkflowSpec) - 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.WorkflowTemplate template = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_sub_workflows())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.DescriptionEntity description = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_description())); - } 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.WorkflowSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate template = 1; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::template_(this), output); - } - - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - for (unsigned int i = 0, - n = static_cast(this->sub_workflows_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->sub_workflows(static_cast(i)), - output); - } - - // .flyteidl.admin.DescriptionEntity description = 3; - if (this->has_description()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::description(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.WorkflowSpec) -} - -::google::protobuf::uint8* WorkflowSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate template = 1; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::template_(this), target); - } - - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - for (unsigned int i = 0, - n = static_cast(this->sub_workflows_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->sub_workflows(static_cast(i)), target); - } - - // .flyteidl.admin.DescriptionEntity description = 3; - if (this->has_description()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::description(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.WorkflowSpec) - return target; -} - -size_t WorkflowSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowSpec) - 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; - - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - { - unsigned int count = static_cast(this->sub_workflows_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->sub_workflows(static_cast(i))); - } - } - - // .flyteidl.core.WorkflowTemplate template = 1; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - // .flyteidl.admin.DescriptionEntity description = 3; - if (this->has_description()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *description_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowSpec) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowSpec) - MergeFrom(*source); - } -} - -void WorkflowSpec::MergeFrom(const WorkflowSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - sub_workflows_.MergeFrom(from.sub_workflows_); - if (from.has_template_()) { - mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); - } - if (from.has_description()) { - mutable_description()->::flyteidl::admin::DescriptionEntity::MergeFrom(from.description()); - } -} - -void WorkflowSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowSpec::CopyFrom(const WorkflowSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowSpec::IsInitialized() const { - return true; -} - -void WorkflowSpec::Swap(WorkflowSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowSpec::InternalSwap(WorkflowSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&sub_workflows_)->InternalSwap(CastToBase(&other->sub_workflows_)); - swap(template__, other->template__); - swap(description_, other->description_); -} - -::google::protobuf::Metadata WorkflowSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowClosure::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( - ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); - ::flyteidl::admin::_WorkflowClosure_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class WorkflowClosure::HasBitSetters { - public: - static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const WorkflowClosure* msg); - static const ::google::protobuf::Timestamp& created_at(const WorkflowClosure* msg); -}; - -const ::flyteidl::core::CompiledWorkflowClosure& -WorkflowClosure::HasBitSetters::compiled_workflow(const WorkflowClosure* msg) { - return *msg->compiled_workflow_; -} -const ::google::protobuf::Timestamp& -WorkflowClosure::HasBitSetters::created_at(const WorkflowClosure* msg) { - return *msg->created_at_; -} -void WorkflowClosure::clear_compiled_workflow() { - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; -} -void WorkflowClosure::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowClosure::kCompiledWorkflowFieldNumber; -const int WorkflowClosure::kCreatedAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowClosure::WorkflowClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowClosure) -} -WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_compiled_workflow()) { - compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); - } else { - compiled_workflow_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowClosure) -} - -void WorkflowClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); - ::memset(&compiled_workflow_, 0, static_cast( - reinterpret_cast(&created_at_) - - reinterpret_cast(&compiled_workflow_)) + sizeof(created_at_)); -} - -WorkflowClosure::~WorkflowClosure() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowClosure) - SharedDtor(); -} - -void WorkflowClosure::SharedDtor() { - if (this != internal_default_instance()) delete compiled_workflow_; - if (this != internal_default_instance()) delete created_at_; -} - -void WorkflowClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowClosure& WorkflowClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowClosure_flyteidl_2fadmin_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowClosure::_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.CompiledWorkflowClosure compiled_workflow = 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::CompiledWorkflowClosure::_InternalParse; - object = msg->mutable_compiled_workflow(); - 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; - } - // .google.protobuf.Timestamp created_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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 WorkflowClosure::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.WorkflowClosure) - 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.CompiledWorkflowClosure compiled_workflow = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_compiled_workflow())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } 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.WorkflowClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - if (this->has_compiled_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::compiled_workflow(this), output); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::created_at(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.WorkflowClosure) -} - -::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - if (this->has_compiled_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::compiled_workflow(this), target); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::created_at(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.WorkflowClosure) - return target; -} - -size_t WorkflowClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowClosure) - 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.CompiledWorkflowClosure compiled_workflow = 1; - if (this->has_compiled_workflow()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *compiled_workflow_); - } - - // .google.protobuf.Timestamp created_at = 2; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowClosure) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowClosure) - MergeFrom(*source); - } -} - -void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowClosure) - 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_compiled_workflow()) { - mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } -} - -void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowClosure::IsInitialized() const { - return true; -} - -void WorkflowClosure::Swap(WorkflowClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowClosure::InternalSwap(WorkflowClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(compiled_workflow_, other->compiled_workflow_); - swap(created_at_, other->created_at_); -} - -::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowErrorExistsDifferentStructure::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowErrorExistsDifferentStructure_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -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_; -} -void WorkflowErrorExistsDifferentStructure::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#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) -} -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) -} - -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 - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h deleted file mode 100644 index ffed86790b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow.pb.h +++ /dev/null @@ -1,2030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/compiler.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/workflow.pb.h" -#include "flyteidl/admin/description_entity.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fworkflow_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - 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[]; - static const ::google::protobuf::uint32 offsets[]; -}; -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_; -class WorkflowClosure; -class WorkflowClosureDefaultTypeInternal; -extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; -class WorkflowCreateRequest; -class WorkflowCreateRequestDefaultTypeInternal; -extern WorkflowCreateRequestDefaultTypeInternal _WorkflowCreateRequest_default_instance_; -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_; -class WorkflowSpec; -class WorkflowSpecDefaultTypeInternal; -extern WorkflowSpecDefaultTypeInternal _WorkflowSpec_default_instance_; -} // namespace admin -} // 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 -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class WorkflowCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateRequest) */ { - public: - WorkflowCreateRequest(); - virtual ~WorkflowCreateRequest(); - - WorkflowCreateRequest(const WorkflowCreateRequest& from); - - inline WorkflowCreateRequest& operator=(const WorkflowCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowCreateRequest(WorkflowCreateRequest&& from) noexcept - : WorkflowCreateRequest() { - *this = ::std::move(from); - } - - inline WorkflowCreateRequest& operator=(WorkflowCreateRequest&& 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 WorkflowCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(WorkflowCreateRequest* other); - friend void swap(WorkflowCreateRequest& a, WorkflowCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowCreateRequest* 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 WorkflowCreateRequest& from); - void MergeFrom(const WorkflowCreateRequest& 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(WorkflowCreateRequest* 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); - - // .flyteidl.admin.WorkflowSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::admin::WorkflowSpec& spec() const; - ::flyteidl::admin::WorkflowSpec* release_spec(); - ::flyteidl::admin::WorkflowSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::WorkflowSpec* spec_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowCreateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowCreateResponse) */ { - public: - WorkflowCreateResponse(); - virtual ~WorkflowCreateResponse(); - - WorkflowCreateResponse(const WorkflowCreateResponse& from); - - inline WorkflowCreateResponse& operator=(const WorkflowCreateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowCreateResponse(WorkflowCreateResponse&& from) noexcept - : WorkflowCreateResponse() { - *this = ::std::move(from); - } - - inline WorkflowCreateResponse& operator=(WorkflowCreateResponse&& 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 WorkflowCreateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowCreateResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowCreateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(WorkflowCreateResponse* other); - friend void swap(WorkflowCreateResponse& a, WorkflowCreateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowCreateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowCreateResponse* 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 WorkflowCreateResponse& from); - void MergeFrom(const WorkflowCreateResponse& 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(WorkflowCreateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class Workflow final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.Workflow) */ { - public: - Workflow(); - virtual ~Workflow(); - - Workflow(const Workflow& from); - - inline Workflow& operator=(const Workflow& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Workflow(Workflow&& from) noexcept - : Workflow() { - *this = ::std::move(from); - } - - inline Workflow& operator=(Workflow&& 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 Workflow& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Workflow* internal_default_instance() { - return reinterpret_cast( - &_Workflow_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Workflow* other); - friend void swap(Workflow& a, Workflow& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Workflow* New() const final { - return CreateMaybeMessage(nullptr); - } - - Workflow* 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 Workflow& from); - void MergeFrom(const Workflow& 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(Workflow* 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 ------------------------------------------------------- - - // string short_description = 3; - void clear_short_description(); - static const int kShortDescriptionFieldNumber = 3; - const ::std::string& short_description() const; - void set_short_description(const ::std::string& value); - #if LANG_CXX11 - void set_short_description(::std::string&& value); - #endif - void set_short_description(const char* value); - void set_short_description(const char* value, size_t size); - ::std::string* mutable_short_description(); - ::std::string* release_short_description(); - void set_allocated_short_description(::std::string* short_description); - - // .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); - - // .flyteidl.admin.WorkflowClosure closure = 2; - bool has_closure() const; - void clear_closure(); - static const int kClosureFieldNumber = 2; - const ::flyteidl::admin::WorkflowClosure& closure() const; - ::flyteidl::admin::WorkflowClosure* release_closure(); - ::flyteidl::admin::WorkflowClosure* mutable_closure(); - void set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr short_description_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::admin::WorkflowClosure* closure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowList) */ { - public: - WorkflowList(); - virtual ~WorkflowList(); - - WorkflowList(const WorkflowList& from); - - inline WorkflowList& operator=(const WorkflowList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowList(WorkflowList&& from) noexcept - : WorkflowList() { - *this = ::std::move(from); - } - - inline WorkflowList& operator=(WorkflowList&& 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 WorkflowList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowList* internal_default_instance() { - return reinterpret_cast( - &_WorkflowList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(WorkflowList* other); - friend void swap(WorkflowList& a, WorkflowList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowList* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowList* 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 WorkflowList& from); - void MergeFrom(const WorkflowList& 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(WorkflowList* 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 ------------------------------------------------------- - - // repeated .flyteidl.admin.Workflow workflows = 1; - int workflows_size() const; - void clear_workflows(); - static const int kWorkflowsFieldNumber = 1; - ::flyteidl::admin::Workflow* mutable_workflows(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* - mutable_workflows(); - const ::flyteidl::admin::Workflow& workflows(int index) const; - ::flyteidl::admin::Workflow* add_workflows(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& - workflows() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow > workflows_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowSpec) */ { - public: - WorkflowSpec(); - virtual ~WorkflowSpec(); - - WorkflowSpec(const WorkflowSpec& from); - - inline WorkflowSpec& operator=(const WorkflowSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowSpec(WorkflowSpec&& from) noexcept - : WorkflowSpec() { - *this = ::std::move(from); - } - - inline WorkflowSpec& operator=(WorkflowSpec&& 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 WorkflowSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowSpec* internal_default_instance() { - return reinterpret_cast( - &_WorkflowSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(WorkflowSpec* other); - friend void swap(WorkflowSpec& a, WorkflowSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowSpec* 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 WorkflowSpec& from); - void MergeFrom(const WorkflowSpec& 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(WorkflowSpec* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - int sub_workflows_size() const; - void clear_sub_workflows(); - static const int kSubWorkflowsFieldNumber = 2; - ::flyteidl::core::WorkflowTemplate* mutable_sub_workflows(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* - mutable_sub_workflows(); - const ::flyteidl::core::WorkflowTemplate& sub_workflows(int index) const; - ::flyteidl::core::WorkflowTemplate* add_sub_workflows(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& - sub_workflows() const; - - // .flyteidl.core.WorkflowTemplate template = 1; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 1; - const ::flyteidl::core::WorkflowTemplate& template_() const; - ::flyteidl::core::WorkflowTemplate* release_template_(); - ::flyteidl::core::WorkflowTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); - - // .flyteidl.admin.DescriptionEntity description = 3; - bool has_description() const; - void clear_description(); - static const int kDescriptionFieldNumber = 3; - const ::flyteidl::admin::DescriptionEntity& description() const; - ::flyteidl::admin::DescriptionEntity* release_description(); - ::flyteidl::admin::DescriptionEntity* mutable_description(); - void set_allocated_description(::flyteidl::admin::DescriptionEntity* description); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate > sub_workflows_; - ::flyteidl::core::WorkflowTemplate* template__; - ::flyteidl::admin::DescriptionEntity* description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowClosure) */ { - public: - WorkflowClosure(); - virtual ~WorkflowClosure(); - - WorkflowClosure(const WorkflowClosure& from); - - inline WorkflowClosure& operator=(const WorkflowClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowClosure(WorkflowClosure&& from) noexcept - : WorkflowClosure() { - *this = ::std::move(from); - } - - inline WorkflowClosure& operator=(WorkflowClosure&& 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 WorkflowClosure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowClosure* internal_default_instance() { - return reinterpret_cast( - &_WorkflowClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(WorkflowClosure* other); - friend void swap(WorkflowClosure& a, WorkflowClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowClosure* 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 WorkflowClosure& from); - void MergeFrom(const WorkflowClosure& 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(WorkflowClosure* 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.CompiledWorkflowClosure compiled_workflow = 1; - bool has_compiled_workflow() const; - void clear_compiled_workflow(); - static const int kCompiledWorkflowFieldNumber = 1; - const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; - ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); - ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); - void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); - - // .google.protobuf.Timestamp created_at = 2; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 2; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; - ::google::protobuf::Timestamp* created_at_; - 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; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// WorkflowCreateRequest - -// .flyteidl.core.Identifier id = 1; -inline bool WorkflowCreateRequest::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& WorkflowCreateRequest::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* WorkflowCreateRequest::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* WorkflowCreateRequest::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.id) - return id_; -} -inline void WorkflowCreateRequest::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.WorkflowCreateRequest.id) -} - -// .flyteidl.admin.WorkflowSpec spec = 2; -inline bool WorkflowCreateRequest::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void WorkflowCreateRequest::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::admin::WorkflowSpec& WorkflowCreateRequest::spec() const { - const ::flyteidl::admin::WorkflowSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowCreateRequest.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_WorkflowSpec_default_instance_); -} -inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowCreateRequest.spec) - - ::flyteidl::admin::WorkflowSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::admin::WorkflowSpec* WorkflowCreateRequest::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowCreateRequest.spec) - return spec_; -} -inline void WorkflowCreateRequest::set_allocated_spec(::flyteidl::admin::WorkflowSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowCreateRequest.spec) -} - -// ------------------------------------------------------------------- - -// WorkflowCreateResponse - -// ------------------------------------------------------------------- - -// Workflow - -// .flyteidl.core.Identifier id = 1; -inline bool Workflow::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& Workflow::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* Workflow::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* Workflow::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.id) - return id_; -} -inline void Workflow::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.Workflow.id) -} - -// .flyteidl.admin.WorkflowClosure closure = 2; -inline bool Workflow::has_closure() const { - return this != internal_default_instance() && closure_ != nullptr; -} -inline void Workflow::clear_closure() { - if (GetArenaNoVirtual() == nullptr && closure_ != nullptr) { - delete closure_; - } - closure_ = nullptr; -} -inline const ::flyteidl::admin::WorkflowClosure& Workflow::closure() const { - const ::flyteidl::admin::WorkflowClosure* p = closure_; - // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.closure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_WorkflowClosure_default_instance_); -} -inline ::flyteidl::admin::WorkflowClosure* Workflow::release_closure() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.closure) - - ::flyteidl::admin::WorkflowClosure* temp = closure_; - closure_ = nullptr; - return temp; -} -inline ::flyteidl::admin::WorkflowClosure* Workflow::mutable_closure() { - - if (closure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowClosure>(GetArenaNoVirtual()); - closure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.closure) - return closure_; -} -inline void Workflow::set_allocated_closure(::flyteidl::admin::WorkflowClosure* closure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete closure_; - } - if (closure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - closure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, closure, submessage_arena); - } - - } else { - - } - closure_ = closure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.closure) -} - -// string short_description = 3; -inline void Workflow::clear_short_description() { - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Workflow::short_description() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.Workflow.short_description) - return short_description_.GetNoArena(); -} -inline void Workflow::set_short_description(const ::std::string& value) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.Workflow.short_description) -} -#if LANG_CXX11 -inline void Workflow::set_short_description(::std::string&& value) { - - short_description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.Workflow.short_description) -} -#endif -inline void Workflow::set_short_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.Workflow.short_description) -} -inline void Workflow::set_short_description(const char* value, size_t size) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.Workflow.short_description) -} -inline ::std::string* Workflow::mutable_short_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.Workflow.short_description) - return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Workflow::release_short_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.Workflow.short_description) - - return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Workflow::set_allocated_short_description(::std::string* short_description) { - if (short_description != nullptr) { - - } else { - - } - short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.Workflow.short_description) -} - -// ------------------------------------------------------------------- - -// WorkflowList - -// repeated .flyteidl.admin.Workflow workflows = 1; -inline int WorkflowList::workflows_size() const { - return workflows_.size(); -} -inline void WorkflowList::clear_workflows() { - workflows_.Clear(); -} -inline ::flyteidl::admin::Workflow* WorkflowList::mutable_workflows(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.workflows) - return workflows_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >* -WorkflowList::mutable_workflows() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.WorkflowList.workflows) - return &workflows_; -} -inline const ::flyteidl::admin::Workflow& WorkflowList::workflows(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.workflows) - return workflows_.Get(index); -} -inline ::flyteidl::admin::Workflow* WorkflowList::add_workflows() { - // @@protoc_insertion_point(field_add:flyteidl.admin.WorkflowList.workflows) - return workflows_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::admin::Workflow >& -WorkflowList::workflows() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.WorkflowList.workflows) - return workflows_; -} - -// string token = 2; -inline void WorkflowList::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowList::token() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowList.token) - return token_.GetNoArena(); -} -inline void WorkflowList::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowList.token) -} -#if LANG_CXX11 -inline void WorkflowList::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowList.token) -} -#endif -inline void WorkflowList::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowList.token) -} -inline void WorkflowList::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowList.token) -} -inline ::std::string* WorkflowList::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowList.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowList::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowList.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowList::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowList.token) -} - -// ------------------------------------------------------------------- - -// WorkflowSpec - -// .flyteidl.core.WorkflowTemplate template = 1; -inline bool WorkflowSpec::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::WorkflowTemplate& WorkflowSpec::template_() const { - const ::flyteidl::core::WorkflowTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowTemplate_default_instance_); -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowSpec.template) - - ::flyteidl::core::WorkflowTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.template) - return template__; -} -inline void WorkflowSpec::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowSpec.template) -} - -// repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; -inline int WorkflowSpec::sub_workflows_size() const { - return sub_workflows_.size(); -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::mutable_sub_workflows(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.sub_workflows) - return sub_workflows_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* -WorkflowSpec::mutable_sub_workflows() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.admin.WorkflowSpec.sub_workflows) - return &sub_workflows_; -} -inline const ::flyteidl::core::WorkflowTemplate& WorkflowSpec::sub_workflows(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.sub_workflows) - return sub_workflows_.Get(index); -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowSpec::add_sub_workflows() { - // @@protoc_insertion_point(field_add:flyteidl.admin.WorkflowSpec.sub_workflows) - return sub_workflows_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& -WorkflowSpec::sub_workflows() const { - // @@protoc_insertion_point(field_list:flyteidl.admin.WorkflowSpec.sub_workflows) - return sub_workflows_; -} - -// .flyteidl.admin.DescriptionEntity description = 3; -inline bool WorkflowSpec::has_description() const { - return this != internal_default_instance() && description_ != nullptr; -} -inline const ::flyteidl::admin::DescriptionEntity& WorkflowSpec::description() const { - const ::flyteidl::admin::DescriptionEntity* p = description_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowSpec.description) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_DescriptionEntity_default_instance_); -} -inline ::flyteidl::admin::DescriptionEntity* WorkflowSpec::release_description() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowSpec.description) - - ::flyteidl::admin::DescriptionEntity* temp = description_; - description_ = nullptr; - return temp; -} -inline ::flyteidl::admin::DescriptionEntity* WorkflowSpec::mutable_description() { - - if (description_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::DescriptionEntity>(GetArenaNoVirtual()); - description_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowSpec.description) - return description_; -} -inline void WorkflowSpec::set_allocated_description(::flyteidl::admin::DescriptionEntity* description) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(description_); - } - if (description) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - description = ::google::protobuf::internal::GetOwnedMessage( - message_arena, description, submessage_arena); - } - - } else { - - } - description_ = description; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowSpec.description) -} - -// ------------------------------------------------------------------- - -// WorkflowClosure - -// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; -inline bool WorkflowClosure::has_compiled_workflow() const { - return this != internal_default_instance() && compiled_workflow_ != nullptr; -} -inline const ::flyteidl::core::CompiledWorkflowClosure& WorkflowClosure::compiled_workflow() const { - const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.compiled_workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); -} -inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::release_compiled_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.compiled_workflow) - - ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; - compiled_workflow_ = nullptr; - return temp; -} -inline ::flyteidl::core::CompiledWorkflowClosure* WorkflowClosure::mutable_compiled_workflow() { - - if (compiled_workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); - compiled_workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.compiled_workflow) - return compiled_workflow_; -} -inline void WorkflowClosure::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); - } - if (compiled_workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, compiled_workflow, submessage_arena); - } - - } else { - - } - compiled_workflow_ = compiled_workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowClosure.compiled_workflow) -} - -// .google.protobuf.Timestamp created_at = 2; -inline bool WorkflowClosure::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& WorkflowClosure::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowClosure.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* WorkflowClosure::release_created_at() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowClosure.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* WorkflowClosure::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowClosure.created_at) - return created_at_; -} -inline void WorkflowClosure::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@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__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc deleted file mode 100644 index c42027a322..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/workflow_attributes.proto - -#include "flyteidl/admin/workflow_attributes.pb.h" -#include "flyteidl/admin/workflow_attributes.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace admin { - -} // namespace flyteidl -} // namespace admin - diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h deleted file mode 100644 index 4f2a22456a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/admin/workflow_attributes.proto -#ifndef GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED -#define GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED - -#include "flyteidl/admin/workflow_attributes.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace admin { - -} // namespace admin -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc deleted file mode 100644 index 0a85bfeb1d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.cc +++ /dev/null @@ -1,2808 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow_attributes.proto - -#include "flyteidl/admin/workflow_attributes.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fmatchable_5fresource_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -namespace flyteidl { -namespace admin { -class WorkflowAttributesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributes_default_instance_; -class WorkflowAttributesUpdateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesUpdateRequest_default_instance_; -class WorkflowAttributesUpdateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesUpdateResponse_default_instance_; -class WorkflowAttributesGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesGetRequest_default_instance_; -class WorkflowAttributesGetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesGetResponse_default_instance_; -class WorkflowAttributesDeleteRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesDeleteRequest_default_instance_; -class WorkflowAttributesDeleteResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowAttributesDeleteResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -static void InitDefaultsWorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributes_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributes(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributes::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { - &scc_info_MatchingAttributes_flyteidl_2fadmin_2fmatchable_5fresource_2eproto.base,}}; - -static void InitDefaultsWorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesUpdateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesUpdateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { - &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base,}}; - -static void InitDefaultsWorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesUpdateResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesUpdateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesUpdateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; - -static void InitDefaultsWorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesGetRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; - -static void InitDefaultsWorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesGetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesGetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, { - &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base,}}; - -static void InitDefaultsWorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesDeleteRequest_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesDeleteRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesDeleteRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; - -static void InitDefaultsWorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::admin::_WorkflowAttributesDeleteResponse_default_instance_; - new (ptr) ::flyteidl::admin::WorkflowAttributesDeleteResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::admin::WorkflowAttributesDeleteResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto}, {}}; - -void InitDefaults_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[7]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributes, matching_attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateRequest, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesUpdateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesGetResponse, attributes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteRequest, resource_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::admin::WorkflowAttributesDeleteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::admin::WorkflowAttributes)}, - { 9, -1, sizeof(::flyteidl::admin::WorkflowAttributesUpdateRequest)}, - { 15, -1, sizeof(::flyteidl::admin::WorkflowAttributesUpdateResponse)}, - { 20, -1, sizeof(::flyteidl::admin::WorkflowAttributesGetRequest)}, - { 29, -1, sizeof(::flyteidl::admin::WorkflowAttributesGetResponse)}, - { 35, -1, sizeof(::flyteidl::admin::WorkflowAttributesDeleteRequest)}, - { 44, -1, sizeof(::flyteidl::admin::WorkflowAttributesDeleteResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributes_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesUpdateResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesDeleteRequest_default_instance_), - reinterpret_cast(&::flyteidl::admin::_WorkflowAttributesDeleteResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = { - {}, AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, "flyteidl/admin/workflow_attributes.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto::offsets, - file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, 7, file_level_enum_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, file_level_service_descriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[] = - "\n(flyteidl/admin/workflow_attributes.pro" - "to\022\016flyteidl.admin\032\'flyteidl/admin/match" - "able_resource.proto\"\210\001\n\022WorkflowAttribut" - "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" - "orkflow\030\003 \001(\t\022\?\n\023matching_attributes\030\004 \001" - "(\0132\".flyteidl.admin.MatchingAttributes\"Y" - "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" - "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" - "ttributes\"\"\n WorkflowAttributesUpdateRes" - "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" - "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" - "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" - "idl.admin.MatchableResource\"W\n\035WorkflowA" - "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" - "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" - "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" - "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " - "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" - "min.MatchableResource\"\"\n WorkflowAttribu" - "tesDeleteResponseB=Z;github.com/flyteorg" - "/flyte/flyteidl/gen/pb-go/flyteidl/admin" - "b\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = { - false, InitDefaults_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, - descriptor_table_protodef_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, - "flyteidl/admin/workflow_attributes.proto", &assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, 848, -}; - -void AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto = []() { AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto(); return true; }(); -namespace flyteidl { -namespace admin { - -// =================================================================== - -void WorkflowAttributes::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowAttributes_default_instance_._instance.get_mutable()->matching_attributes_ = const_cast< ::flyteidl::admin::MatchingAttributes*>( - ::flyteidl::admin::MatchingAttributes::internal_default_instance()); -} -class WorkflowAttributes::HasBitSetters { - public: - static const ::flyteidl::admin::MatchingAttributes& matching_attributes(const WorkflowAttributes* msg); -}; - -const ::flyteidl::admin::MatchingAttributes& -WorkflowAttributes::HasBitSetters::matching_attributes(const WorkflowAttributes* msg) { - return *msg->matching_attributes_; -} -void WorkflowAttributes::clear_matching_attributes() { - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowAttributes::kProjectFieldNumber; -const int WorkflowAttributes::kDomainFieldNumber; -const int WorkflowAttributes::kWorkflowFieldNumber; -const int WorkflowAttributes::kMatchingAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributes::WorkflowAttributes() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributes) -} -WorkflowAttributes::WorkflowAttributes(const WorkflowAttributes& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.workflow().size() > 0) { - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - if (from.has_matching_attributes()) { - matching_attributes_ = new ::flyteidl::admin::MatchingAttributes(*from.matching_attributes_); - } else { - matching_attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributes) -} - -void WorkflowAttributes::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - matching_attributes_ = nullptr; -} - -WorkflowAttributes::~WorkflowAttributes() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributes) - SharedDtor(); -} - -void WorkflowAttributes::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete matching_attributes_; -} - -void WorkflowAttributes::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributes& WorkflowAttributes::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributes_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributes::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && matching_attributes_ != nullptr) { - delete matching_attributes_; - } - matching_attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributes::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string workflow = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributes.workflow"); - object = msg->mutable_workflow(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::admin::MatchingAttributes::_InternalParse; - object = msg->mutable_matching_attributes(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowAttributes::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.WorkflowAttributes) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributes.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributes.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string workflow = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_workflow())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributes.workflow")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_matching_attributes())); - } 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.WorkflowAttributes) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributes) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributes::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.workflow"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->workflow(), output); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - if (this->has_matching_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::matching_attributes(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.WorkflowAttributes) -} - -::google::protobuf::uint8* WorkflowAttributes::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributes) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributes.workflow"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->workflow(), target); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - if (this->has_matching_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::matching_attributes(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.WorkflowAttributes) - return target; -} - -size_t WorkflowAttributes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributes) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->workflow()); - } - - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - if (this->has_matching_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *matching_attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributes::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributes) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributes* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributes) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributes) - MergeFrom(*source); - } -} - -void WorkflowAttributes::MergeFrom(const WorkflowAttributes& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributes) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.workflow().size() > 0) { - - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - if (from.has_matching_attributes()) { - mutable_matching_attributes()->::flyteidl::admin::MatchingAttributes::MergeFrom(from.matching_attributes()); - } -} - -void WorkflowAttributes::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributes::CopyFrom(const WorkflowAttributes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributes) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributes::IsInitialized() const { - return true; -} - -void WorkflowAttributes::Swap(WorkflowAttributes* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributes::InternalSwap(WorkflowAttributes* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(matching_attributes_, other->matching_attributes_); -} - -::google::protobuf::Metadata WorkflowAttributes::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesUpdateRequest::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowAttributesUpdateRequest_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::WorkflowAttributes*>( - ::flyteidl::admin::WorkflowAttributes::internal_default_instance()); -} -class WorkflowAttributesUpdateRequest::HasBitSetters { - public: - static const ::flyteidl::admin::WorkflowAttributes& attributes(const WorkflowAttributesUpdateRequest* msg); -}; - -const ::flyteidl::admin::WorkflowAttributes& -WorkflowAttributesUpdateRequest::HasBitSetters::attributes(const WorkflowAttributesUpdateRequest* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowAttributesUpdateRequest::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesUpdateRequest::WorkflowAttributesUpdateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesUpdateRequest) -} -WorkflowAttributesUpdateRequest::WorkflowAttributesUpdateRequest(const WorkflowAttributesUpdateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::WorkflowAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesUpdateRequest) -} - -void WorkflowAttributesUpdateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -WorkflowAttributesUpdateRequest::~WorkflowAttributesUpdateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesUpdateRequest) - SharedDtor(); -} - -void WorkflowAttributesUpdateRequest::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void WorkflowAttributesUpdateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesUpdateRequest& WorkflowAttributesUpdateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesUpdateRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesUpdateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesUpdateRequest::_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.WorkflowAttributes attributes = 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::WorkflowAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 WorkflowAttributesUpdateRequest::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.WorkflowAttributesUpdateRequest) - 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.WorkflowAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.WorkflowAttributesUpdateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesUpdateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesUpdateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.WorkflowAttributesUpdateRequest) -} - -::google::protobuf::uint8* WorkflowAttributesUpdateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.WorkflowAttributesUpdateRequest) - return target; -} - -size_t WorkflowAttributesUpdateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - 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.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesUpdateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesUpdateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesUpdateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesUpdateRequest) - MergeFrom(*source); - } -} - -void WorkflowAttributesUpdateRequest::MergeFrom(const WorkflowAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::WorkflowAttributes::MergeFrom(from.attributes()); - } -} - -void WorkflowAttributesUpdateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesUpdateRequest::CopyFrom(const WorkflowAttributesUpdateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesUpdateRequest::IsInitialized() const { - return true; -} - -void WorkflowAttributesUpdateRequest::Swap(WorkflowAttributesUpdateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesUpdateRequest::InternalSwap(WorkflowAttributesUpdateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata WorkflowAttributesUpdateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesUpdateResponse::InitAsDefaultInstance() { -} -class WorkflowAttributesUpdateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesUpdateResponse::WorkflowAttributesUpdateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesUpdateResponse) -} -WorkflowAttributesUpdateResponse::WorkflowAttributesUpdateResponse(const WorkflowAttributesUpdateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesUpdateResponse) -} - -void WorkflowAttributesUpdateResponse::SharedCtor() { -} - -WorkflowAttributesUpdateResponse::~WorkflowAttributesUpdateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesUpdateResponse) - SharedDtor(); -} - -void WorkflowAttributesUpdateResponse::SharedDtor() { -} - -void WorkflowAttributesUpdateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesUpdateResponse& WorkflowAttributesUpdateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesUpdateResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesUpdateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesUpdateResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowAttributesUpdateResponse::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.WorkflowAttributesUpdateResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesUpdateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesUpdateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesUpdateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesUpdateResponse) -} - -::google::protobuf::uint8* WorkflowAttributesUpdateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.WorkflowAttributesUpdateResponse) - return target; -} - -size_t WorkflowAttributesUpdateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesUpdateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesUpdateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesUpdateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesUpdateResponse) - MergeFrom(*source); - } -} - -void WorkflowAttributesUpdateResponse::MergeFrom(const WorkflowAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void WorkflowAttributesUpdateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesUpdateResponse::CopyFrom(const WorkflowAttributesUpdateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesUpdateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesUpdateResponse::IsInitialized() const { - return true; -} - -void WorkflowAttributesUpdateResponse::Swap(WorkflowAttributesUpdateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesUpdateResponse::InternalSwap(WorkflowAttributesUpdateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata WorkflowAttributesUpdateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesGetRequest::InitAsDefaultInstance() { -} -class WorkflowAttributesGetRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowAttributesGetRequest::kProjectFieldNumber; -const int WorkflowAttributesGetRequest::kDomainFieldNumber; -const int WorkflowAttributesGetRequest::kWorkflowFieldNumber; -const int WorkflowAttributesGetRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesGetRequest::WorkflowAttributesGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesGetRequest) -} -WorkflowAttributesGetRequest::WorkflowAttributesGetRequest(const WorkflowAttributesGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.workflow().size() > 0) { - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesGetRequest) -} - -void WorkflowAttributesGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -WorkflowAttributesGetRequest::~WorkflowAttributesGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesGetRequest) - SharedDtor(); -} - -void WorkflowAttributesGetRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WorkflowAttributesGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesGetRequest& WorkflowAttributesGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesGetRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesGetRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string workflow = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesGetRequest.workflow"); - object = msg->mutable_workflow(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowAttributesGetRequest::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.WorkflowAttributesGetRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesGetRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesGetRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string workflow = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_workflow())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesGetRequest.workflow")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.WorkflowAttributesGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.workflow"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->workflow(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesGetRequest) -} - -::google::protobuf::uint8* WorkflowAttributesGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesGetRequest.workflow"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->workflow(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->resource_type(), 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.WorkflowAttributesGetRequest) - return target; -} - -size_t WorkflowAttributesGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesGetRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->workflow()); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesGetRequest) - MergeFrom(*source); - } -} - -void WorkflowAttributesGetRequest::MergeFrom(const WorkflowAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesGetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.workflow().size() > 0) { - - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void WorkflowAttributesGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesGetRequest::CopyFrom(const WorkflowAttributesGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesGetRequest::IsInitialized() const { - return true; -} - -void WorkflowAttributesGetRequest::Swap(WorkflowAttributesGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesGetRequest::InternalSwap(WorkflowAttributesGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata WorkflowAttributesGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesGetResponse::InitAsDefaultInstance() { - ::flyteidl::admin::_WorkflowAttributesGetResponse_default_instance_._instance.get_mutable()->attributes_ = const_cast< ::flyteidl::admin::WorkflowAttributes*>( - ::flyteidl::admin::WorkflowAttributes::internal_default_instance()); -} -class WorkflowAttributesGetResponse::HasBitSetters { - public: - static const ::flyteidl::admin::WorkflowAttributes& attributes(const WorkflowAttributesGetResponse* msg); -}; - -const ::flyteidl::admin::WorkflowAttributes& -WorkflowAttributesGetResponse::HasBitSetters::attributes(const WorkflowAttributesGetResponse* msg) { - return *msg->attributes_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowAttributesGetResponse::kAttributesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesGetResponse::WorkflowAttributesGetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesGetResponse) -} -WorkflowAttributesGetResponse::WorkflowAttributesGetResponse(const WorkflowAttributesGetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_attributes()) { - attributes_ = new ::flyteidl::admin::WorkflowAttributes(*from.attributes_); - } else { - attributes_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesGetResponse) -} - -void WorkflowAttributesGetResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - attributes_ = nullptr; -} - -WorkflowAttributesGetResponse::~WorkflowAttributesGetResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesGetResponse) - SharedDtor(); -} - -void WorkflowAttributesGetResponse::SharedDtor() { - if (this != internal_default_instance()) delete attributes_; -} - -void WorkflowAttributesGetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesGetResponse& WorkflowAttributesGetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesGetResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesGetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesGetResponse::_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.WorkflowAttributes attributes = 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::WorkflowAttributes::_InternalParse; - object = msg->mutable_attributes(); - 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 WorkflowAttributesGetResponse::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.WorkflowAttributesGetResponse) - 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.WorkflowAttributes attributes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_attributes())); - } 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.WorkflowAttributesGetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesGetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesGetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::attributes(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.WorkflowAttributesGetResponse) -} - -::google::protobuf::uint8* WorkflowAttributesGetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::attributes(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.WorkflowAttributesGetResponse) - return target; -} - -size_t WorkflowAttributesGetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesGetResponse) - 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.admin.WorkflowAttributes attributes = 1; - if (this->has_attributes()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *attributes_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesGetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesGetResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesGetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesGetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesGetResponse) - MergeFrom(*source); - } -} - -void WorkflowAttributesGetResponse::MergeFrom(const WorkflowAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesGetResponse) - 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_attributes()) { - mutable_attributes()->::flyteidl::admin::WorkflowAttributes::MergeFrom(from.attributes()); - } -} - -void WorkflowAttributesGetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesGetResponse::CopyFrom(const WorkflowAttributesGetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesGetResponse::IsInitialized() const { - return true; -} - -void WorkflowAttributesGetResponse::Swap(WorkflowAttributesGetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesGetResponse::InternalSwap(WorkflowAttributesGetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(attributes_, other->attributes_); -} - -::google::protobuf::Metadata WorkflowAttributesGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesDeleteRequest::InitAsDefaultInstance() { -} -class WorkflowAttributesDeleteRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowAttributesDeleteRequest::kProjectFieldNumber; -const int WorkflowAttributesDeleteRequest::kDomainFieldNumber; -const int WorkflowAttributesDeleteRequest::kWorkflowFieldNumber; -const int WorkflowAttributesDeleteRequest::kResourceTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesDeleteRequest::WorkflowAttributesDeleteRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesDeleteRequest) -} -WorkflowAttributesDeleteRequest::WorkflowAttributesDeleteRequest(const WorkflowAttributesDeleteRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.workflow().size() > 0) { - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesDeleteRequest) -} - -void WorkflowAttributesDeleteRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -WorkflowAttributesDeleteRequest::~WorkflowAttributesDeleteRequest() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesDeleteRequest) - SharedDtor(); -} - -void WorkflowAttributesDeleteRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WorkflowAttributesDeleteRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesDeleteRequest& WorkflowAttributesDeleteRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesDeleteRequest_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesDeleteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesDeleteRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string workflow = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); - object = msg->mutable_workflow(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.admin.MatchableResource resource_type = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::admin::MatchableResource>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowAttributesDeleteRequest::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.WorkflowAttributesDeleteRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string workflow = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_workflow())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::admin::MatchableResource >(value)); - } 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.WorkflowAttributesDeleteRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesDeleteRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesDeleteRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->workflow(), output); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->resource_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesDeleteRequest) -} - -::google::protobuf::uint8* WorkflowAttributesDeleteRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow().data(), static_cast(this->workflow().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.admin.WorkflowAttributesDeleteRequest.workflow"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->workflow(), target); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->resource_type(), 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.WorkflowAttributesDeleteRequest) - return target; -} - -size_t WorkflowAttributesDeleteRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string workflow = 3; - if (this->workflow().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->workflow()); - } - - // .flyteidl.admin.MatchableResource resource_type = 4; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesDeleteRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesDeleteRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesDeleteRequest) - MergeFrom(*source); - } -} - -void WorkflowAttributesDeleteRequest::MergeFrom(const WorkflowAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.workflow().size() > 0) { - - workflow_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void WorkflowAttributesDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesDeleteRequest::CopyFrom(const WorkflowAttributesDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesDeleteRequest::IsInitialized() const { - return true; -} - -void WorkflowAttributesDeleteRequest::Swap(WorkflowAttributesDeleteRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesDeleteRequest::InternalSwap(WorkflowAttributesDeleteRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - workflow_.Swap(&other->workflow_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata WorkflowAttributesDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowAttributesDeleteResponse::InitAsDefaultInstance() { -} -class WorkflowAttributesDeleteResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowAttributesDeleteResponse::WorkflowAttributesDeleteResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.admin.WorkflowAttributesDeleteResponse) -} -WorkflowAttributesDeleteResponse::WorkflowAttributesDeleteResponse(const WorkflowAttributesDeleteResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.admin.WorkflowAttributesDeleteResponse) -} - -void WorkflowAttributesDeleteResponse::SharedCtor() { -} - -WorkflowAttributesDeleteResponse::~WorkflowAttributesDeleteResponse() { - // @@protoc_insertion_point(destructor:flyteidl.admin.WorkflowAttributesDeleteResponse) - SharedDtor(); -} - -void WorkflowAttributesDeleteResponse::SharedDtor() { -} - -void WorkflowAttributesDeleteResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowAttributesDeleteResponse& WorkflowAttributesDeleteResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowAttributesDeleteResponse_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowAttributesDeleteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowAttributesDeleteResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowAttributesDeleteResponse::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.WorkflowAttributesDeleteResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.admin.WorkflowAttributesDeleteResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.admin.WorkflowAttributesDeleteResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowAttributesDeleteResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.admin.WorkflowAttributesDeleteResponse) -} - -::google::protobuf::uint8* WorkflowAttributesDeleteResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.WorkflowAttributesDeleteResponse) - return target; -} - -size_t WorkflowAttributesDeleteResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowAttributesDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowAttributesDeleteResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.admin.WorkflowAttributesDeleteResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.admin.WorkflowAttributesDeleteResponse) - MergeFrom(*source); - } -} - -void WorkflowAttributesDeleteResponse::MergeFrom(const WorkflowAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void WorkflowAttributesDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowAttributesDeleteResponse::CopyFrom(const WorkflowAttributesDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.admin.WorkflowAttributesDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowAttributesDeleteResponse::IsInitialized() const { - return true; -} - -void WorkflowAttributesDeleteResponse::Swap(WorkflowAttributesDeleteResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowAttributesDeleteResponse::InternalSwap(WorkflowAttributesDeleteResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata WorkflowAttributesDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto); - return ::file_level_metadata_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributes* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributes >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributes >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesUpdateRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesUpdateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesUpdateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesUpdateResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesUpdateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesUpdateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesGetRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesGetResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesGetResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesGetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesDeleteRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesDeleteRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::admin::WorkflowAttributesDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::admin::WorkflowAttributesDeleteResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::admin::WorkflowAttributesDeleteResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h b/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h deleted file mode 100644 index f6e12acc87..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/admin/workflow_attributes.pb.h +++ /dev/null @@ -1,1716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow_attributes.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/admin/matchable_resource.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto(); -namespace flyteidl { -namespace admin { -class WorkflowAttributes; -class WorkflowAttributesDefaultTypeInternal; -extern WorkflowAttributesDefaultTypeInternal _WorkflowAttributes_default_instance_; -class WorkflowAttributesDeleteRequest; -class WorkflowAttributesDeleteRequestDefaultTypeInternal; -extern WorkflowAttributesDeleteRequestDefaultTypeInternal _WorkflowAttributesDeleteRequest_default_instance_; -class WorkflowAttributesDeleteResponse; -class WorkflowAttributesDeleteResponseDefaultTypeInternal; -extern WorkflowAttributesDeleteResponseDefaultTypeInternal _WorkflowAttributesDeleteResponse_default_instance_; -class WorkflowAttributesGetRequest; -class WorkflowAttributesGetRequestDefaultTypeInternal; -extern WorkflowAttributesGetRequestDefaultTypeInternal _WorkflowAttributesGetRequest_default_instance_; -class WorkflowAttributesGetResponse; -class WorkflowAttributesGetResponseDefaultTypeInternal; -extern WorkflowAttributesGetResponseDefaultTypeInternal _WorkflowAttributesGetResponse_default_instance_; -class WorkflowAttributesUpdateRequest; -class WorkflowAttributesUpdateRequestDefaultTypeInternal; -extern WorkflowAttributesUpdateRequestDefaultTypeInternal _WorkflowAttributesUpdateRequest_default_instance_; -class WorkflowAttributesUpdateResponse; -class WorkflowAttributesUpdateResponseDefaultTypeInternal; -extern WorkflowAttributesUpdateResponseDefaultTypeInternal _WorkflowAttributesUpdateResponse_default_instance_; -} // namespace admin -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::admin::WorkflowAttributes* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesDeleteRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesDeleteResponse>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesGetRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesGetRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesGetResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesGetResponse>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesUpdateRequest* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesUpdateRequest>(Arena*); -template<> ::flyteidl::admin::WorkflowAttributesUpdateResponse* Arena::CreateMaybeMessage<::flyteidl::admin::WorkflowAttributesUpdateResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace admin { - -// =================================================================== - -class WorkflowAttributes final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributes) */ { - public: - WorkflowAttributes(); - virtual ~WorkflowAttributes(); - - WorkflowAttributes(const WorkflowAttributes& from); - - inline WorkflowAttributes& operator=(const WorkflowAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributes(WorkflowAttributes&& from) noexcept - : WorkflowAttributes() { - *this = ::std::move(from); - } - - inline WorkflowAttributes& operator=(WorkflowAttributes&& 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 WorkflowAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributes* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(WorkflowAttributes* other); - friend void swap(WorkflowAttributes& a, WorkflowAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributes* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributes* 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 WorkflowAttributes& from); - void MergeFrom(const WorkflowAttributes& 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(WorkflowAttributes* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string workflow = 3; - void clear_workflow(); - static const int kWorkflowFieldNumber = 3; - const ::std::string& workflow() const; - void set_workflow(const ::std::string& value); - #if LANG_CXX11 - void set_workflow(::std::string&& value); - #endif - void set_workflow(const char* value); - void set_workflow(const char* value, size_t size); - ::std::string* mutable_workflow(); - ::std::string* release_workflow(); - void set_allocated_workflow(::std::string* workflow); - - // .flyteidl.admin.MatchingAttributes matching_attributes = 4; - bool has_matching_attributes() const; - void clear_matching_attributes(); - static const int kMatchingAttributesFieldNumber = 4; - const ::flyteidl::admin::MatchingAttributes& matching_attributes() const; - ::flyteidl::admin::MatchingAttributes* release_matching_attributes(); - ::flyteidl::admin::MatchingAttributes* mutable_matching_attributes(); - void set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr workflow_; - ::flyteidl::admin::MatchingAttributes* matching_attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesUpdateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesUpdateRequest) */ { - public: - WorkflowAttributesUpdateRequest(); - virtual ~WorkflowAttributesUpdateRequest(); - - WorkflowAttributesUpdateRequest(const WorkflowAttributesUpdateRequest& from); - - inline WorkflowAttributesUpdateRequest& operator=(const WorkflowAttributesUpdateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesUpdateRequest(WorkflowAttributesUpdateRequest&& from) noexcept - : WorkflowAttributesUpdateRequest() { - *this = ::std::move(from); - } - - inline WorkflowAttributesUpdateRequest& operator=(WorkflowAttributesUpdateRequest&& 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 WorkflowAttributesUpdateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesUpdateRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesUpdateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(WorkflowAttributesUpdateRequest* other); - friend void swap(WorkflowAttributesUpdateRequest& a, WorkflowAttributesUpdateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesUpdateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesUpdateRequest* 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 WorkflowAttributesUpdateRequest& from); - void MergeFrom(const WorkflowAttributesUpdateRequest& 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(WorkflowAttributesUpdateRequest* 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.WorkflowAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::WorkflowAttributes& attributes() const; - ::flyteidl::admin::WorkflowAttributes* release_attributes(); - ::flyteidl::admin::WorkflowAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::WorkflowAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesUpdateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesUpdateResponse) */ { - public: - WorkflowAttributesUpdateResponse(); - virtual ~WorkflowAttributesUpdateResponse(); - - WorkflowAttributesUpdateResponse(const WorkflowAttributesUpdateResponse& from); - - inline WorkflowAttributesUpdateResponse& operator=(const WorkflowAttributesUpdateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesUpdateResponse(WorkflowAttributesUpdateResponse&& from) noexcept - : WorkflowAttributesUpdateResponse() { - *this = ::std::move(from); - } - - inline WorkflowAttributesUpdateResponse& operator=(WorkflowAttributesUpdateResponse&& 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 WorkflowAttributesUpdateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesUpdateResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesUpdateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(WorkflowAttributesUpdateResponse* other); - friend void swap(WorkflowAttributesUpdateResponse& a, WorkflowAttributesUpdateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesUpdateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesUpdateResponse* 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 WorkflowAttributesUpdateResponse& from); - void MergeFrom(const WorkflowAttributesUpdateResponse& 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(WorkflowAttributesUpdateResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesGetRequest) */ { - public: - WorkflowAttributesGetRequest(); - virtual ~WorkflowAttributesGetRequest(); - - WorkflowAttributesGetRequest(const WorkflowAttributesGetRequest& from); - - inline WorkflowAttributesGetRequest& operator=(const WorkflowAttributesGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesGetRequest(WorkflowAttributesGetRequest&& from) noexcept - : WorkflowAttributesGetRequest() { - *this = ::std::move(from); - } - - inline WorkflowAttributesGetRequest& operator=(WorkflowAttributesGetRequest&& 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 WorkflowAttributesGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesGetRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(WorkflowAttributesGetRequest* other); - friend void swap(WorkflowAttributesGetRequest& a, WorkflowAttributesGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesGetRequest* 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 WorkflowAttributesGetRequest& from); - void MergeFrom(const WorkflowAttributesGetRequest& 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(WorkflowAttributesGetRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string workflow = 3; - void clear_workflow(); - static const int kWorkflowFieldNumber = 3; - const ::std::string& workflow() const; - void set_workflow(const ::std::string& value); - #if LANG_CXX11 - void set_workflow(::std::string&& value); - #endif - void set_workflow(const char* value); - void set_workflow(const char* value, size_t size); - ::std::string* mutable_workflow(); - ::std::string* release_workflow(); - void set_allocated_workflow(::std::string* workflow); - - // .flyteidl.admin.MatchableResource resource_type = 4; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 4; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr workflow_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesGetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesGetResponse) */ { - public: - WorkflowAttributesGetResponse(); - virtual ~WorkflowAttributesGetResponse(); - - WorkflowAttributesGetResponse(const WorkflowAttributesGetResponse& from); - - inline WorkflowAttributesGetResponse& operator=(const WorkflowAttributesGetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesGetResponse(WorkflowAttributesGetResponse&& from) noexcept - : WorkflowAttributesGetResponse() { - *this = ::std::move(from); - } - - inline WorkflowAttributesGetResponse& operator=(WorkflowAttributesGetResponse&& 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 WorkflowAttributesGetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesGetResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesGetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(WorkflowAttributesGetResponse* other); - friend void swap(WorkflowAttributesGetResponse& a, WorkflowAttributesGetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesGetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesGetResponse* 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 WorkflowAttributesGetResponse& from); - void MergeFrom(const WorkflowAttributesGetResponse& 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(WorkflowAttributesGetResponse* 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.WorkflowAttributes attributes = 1; - bool has_attributes() const; - void clear_attributes(); - static const int kAttributesFieldNumber = 1; - const ::flyteidl::admin::WorkflowAttributes& attributes() const; - ::flyteidl::admin::WorkflowAttributes* release_attributes(); - ::flyteidl::admin::WorkflowAttributes* mutable_attributes(); - void set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::WorkflowAttributes* attributes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesDeleteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesDeleteRequest) */ { - public: - WorkflowAttributesDeleteRequest(); - virtual ~WorkflowAttributesDeleteRequest(); - - WorkflowAttributesDeleteRequest(const WorkflowAttributesDeleteRequest& from); - - inline WorkflowAttributesDeleteRequest& operator=(const WorkflowAttributesDeleteRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesDeleteRequest(WorkflowAttributesDeleteRequest&& from) noexcept - : WorkflowAttributesDeleteRequest() { - *this = ::std::move(from); - } - - inline WorkflowAttributesDeleteRequest& operator=(WorkflowAttributesDeleteRequest&& 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 WorkflowAttributesDeleteRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesDeleteRequest* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesDeleteRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(WorkflowAttributesDeleteRequest* other); - friend void swap(WorkflowAttributesDeleteRequest& a, WorkflowAttributesDeleteRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesDeleteRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesDeleteRequest* 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 WorkflowAttributesDeleteRequest& from); - void MergeFrom(const WorkflowAttributesDeleteRequest& 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(WorkflowAttributesDeleteRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string workflow = 3; - void clear_workflow(); - static const int kWorkflowFieldNumber = 3; - const ::std::string& workflow() const; - void set_workflow(const ::std::string& value); - #if LANG_CXX11 - void set_workflow(::std::string&& value); - #endif - void set_workflow(const char* value); - void set_workflow(const char* value, size_t size); - ::std::string* mutable_workflow(); - ::std::string* release_workflow(); - void set_allocated_workflow(::std::string* workflow); - - // .flyteidl.admin.MatchableResource resource_type = 4; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 4; - ::flyteidl::admin::MatchableResource resource_type() const; - void set_resource_type(::flyteidl::admin::MatchableResource value); - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr workflow_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowAttributesDeleteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.admin.WorkflowAttributesDeleteResponse) */ { - public: - WorkflowAttributesDeleteResponse(); - virtual ~WorkflowAttributesDeleteResponse(); - - WorkflowAttributesDeleteResponse(const WorkflowAttributesDeleteResponse& from); - - inline WorkflowAttributesDeleteResponse& operator=(const WorkflowAttributesDeleteResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowAttributesDeleteResponse(WorkflowAttributesDeleteResponse&& from) noexcept - : WorkflowAttributesDeleteResponse() { - *this = ::std::move(from); - } - - inline WorkflowAttributesDeleteResponse& operator=(WorkflowAttributesDeleteResponse&& 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 WorkflowAttributesDeleteResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowAttributesDeleteResponse* internal_default_instance() { - return reinterpret_cast( - &_WorkflowAttributesDeleteResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(WorkflowAttributesDeleteResponse* other); - friend void swap(WorkflowAttributesDeleteResponse& a, WorkflowAttributesDeleteResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowAttributesDeleteResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowAttributesDeleteResponse* 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 WorkflowAttributesDeleteResponse& from); - void MergeFrom(const WorkflowAttributesDeleteResponse& 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(WorkflowAttributesDeleteResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// WorkflowAttributes - -// string project = 1; -inline void WorkflowAttributes::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributes::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.project) - return project_.GetNoArena(); -} -inline void WorkflowAttributes::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.project) -} -#if LANG_CXX11 -inline void WorkflowAttributes::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.project) -} -#endif -inline void WorkflowAttributes::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.project) -} -inline void WorkflowAttributes::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.project) -} -inline ::std::string* WorkflowAttributes::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributes::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributes::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.project) -} - -// string domain = 2; -inline void WorkflowAttributes::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributes::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.domain) - return domain_.GetNoArena(); -} -inline void WorkflowAttributes::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.domain) -} -#if LANG_CXX11 -inline void WorkflowAttributes::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.domain) -} -#endif -inline void WorkflowAttributes::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.domain) -} -inline void WorkflowAttributes::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.domain) -} -inline ::std::string* WorkflowAttributes::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributes::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributes::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.domain) -} - -// string workflow = 3; -inline void WorkflowAttributes::clear_workflow() { - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributes::workflow() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.workflow) - return workflow_.GetNoArena(); -} -inline void WorkflowAttributes::set_workflow(const ::std::string& value) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributes.workflow) -} -#if LANG_CXX11 -inline void WorkflowAttributes::set_workflow(::std::string&& value) { - - workflow_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributes.workflow) -} -#endif -inline void WorkflowAttributes::set_workflow(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributes.workflow) -} -inline void WorkflowAttributes::set_workflow(const char* value, size_t size) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributes.workflow) -} -inline ::std::string* WorkflowAttributes::mutable_workflow() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.workflow) - return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributes::release_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.workflow) - - return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributes::set_allocated_workflow(::std::string* workflow) { - if (workflow != nullptr) { - - } else { - - } - workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.workflow) -} - -// .flyteidl.admin.MatchingAttributes matching_attributes = 4; -inline bool WorkflowAttributes::has_matching_attributes() const { - return this != internal_default_instance() && matching_attributes_ != nullptr; -} -inline const ::flyteidl::admin::MatchingAttributes& WorkflowAttributes::matching_attributes() const { - const ::flyteidl::admin::MatchingAttributes* p = matching_attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributes.matching_attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_MatchingAttributes_default_instance_); -} -inline ::flyteidl::admin::MatchingAttributes* WorkflowAttributes::release_matching_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributes.matching_attributes) - - ::flyteidl::admin::MatchingAttributes* temp = matching_attributes_; - matching_attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::MatchingAttributes* WorkflowAttributes::mutable_matching_attributes() { - - if (matching_attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::MatchingAttributes>(GetArenaNoVirtual()); - matching_attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributes.matching_attributes) - return matching_attributes_; -} -inline void WorkflowAttributes::set_allocated_matching_attributes(::flyteidl::admin::MatchingAttributes* matching_attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(matching_attributes_); - } - if (matching_attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - matching_attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, matching_attributes, submessage_arena); - } - - } else { - - } - matching_attributes_ = matching_attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributes.matching_attributes) -} - -// ------------------------------------------------------------------- - -// WorkflowAttributesUpdateRequest - -// .flyteidl.admin.WorkflowAttributes attributes = 1; -inline bool WorkflowAttributesUpdateRequest::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void WorkflowAttributesUpdateRequest::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::WorkflowAttributes& WorkflowAttributesUpdateRequest::attributes() const { - const ::flyteidl::admin::WorkflowAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_WorkflowAttributes_default_instance_); -} -inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesUpdateRequest::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) - - ::flyteidl::admin::WorkflowAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesUpdateRequest::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) - return attributes_; -} -inline void WorkflowAttributesUpdateRequest::set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesUpdateRequest.attributes) -} - -// ------------------------------------------------------------------- - -// WorkflowAttributesUpdateResponse - -// ------------------------------------------------------------------- - -// WorkflowAttributesGetRequest - -// string project = 1; -inline void WorkflowAttributesGetRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesGetRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.project) - return project_.GetNoArena(); -} -inline void WorkflowAttributesGetRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.project) -} -#if LANG_CXX11 -inline void WorkflowAttributesGetRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.project) -} -#endif -inline void WorkflowAttributesGetRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.project) -} -inline void WorkflowAttributesGetRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.project) -} -inline ::std::string* WorkflowAttributesGetRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesGetRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesGetRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.project) -} - -// string domain = 2; -inline void WorkflowAttributesGetRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesGetRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.domain) - return domain_.GetNoArena(); -} -inline void WorkflowAttributesGetRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.domain) -} -#if LANG_CXX11 -inline void WorkflowAttributesGetRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.domain) -} -#endif -inline void WorkflowAttributesGetRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.domain) -} -inline void WorkflowAttributesGetRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.domain) -} -inline ::std::string* WorkflowAttributesGetRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesGetRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesGetRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.domain) -} - -// string workflow = 3; -inline void WorkflowAttributesGetRequest::clear_workflow() { - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesGetRequest::workflow() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.workflow) - return workflow_.GetNoArena(); -} -inline void WorkflowAttributesGetRequest::set_workflow(const ::std::string& value) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.workflow) -} -#if LANG_CXX11 -inline void WorkflowAttributesGetRequest::set_workflow(::std::string&& value) { - - workflow_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesGetRequest.workflow) -} -#endif -inline void WorkflowAttributesGetRequest::set_workflow(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesGetRequest.workflow) -} -inline void WorkflowAttributesGetRequest::set_workflow(const char* value, size_t size) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesGetRequest.workflow) -} -inline ::std::string* WorkflowAttributesGetRequest::mutable_workflow() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetRequest.workflow) - return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesGetRequest::release_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetRequest.workflow) - - return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesGetRequest::set_allocated_workflow(::std::string* workflow) { - if (workflow != nullptr) { - - } else { - - } - workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetRequest.workflow) -} - -// .flyteidl.admin.MatchableResource resource_type = 4; -inline void WorkflowAttributesGetRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource WorkflowAttributesGetRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void WorkflowAttributesGetRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesGetRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// WorkflowAttributesGetResponse - -// .flyteidl.admin.WorkflowAttributes attributes = 1; -inline bool WorkflowAttributesGetResponse::has_attributes() const { - return this != internal_default_instance() && attributes_ != nullptr; -} -inline void WorkflowAttributesGetResponse::clear_attributes() { - if (GetArenaNoVirtual() == nullptr && attributes_ != nullptr) { - delete attributes_; - } - attributes_ = nullptr; -} -inline const ::flyteidl::admin::WorkflowAttributes& WorkflowAttributesGetResponse::attributes() const { - const ::flyteidl::admin::WorkflowAttributes* p = attributes_; - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesGetResponse.attributes) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_WorkflowAttributes_default_instance_); -} -inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesGetResponse::release_attributes() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesGetResponse.attributes) - - ::flyteidl::admin::WorkflowAttributes* temp = attributes_; - attributes_ = nullptr; - return temp; -} -inline ::flyteidl::admin::WorkflowAttributes* WorkflowAttributesGetResponse::mutable_attributes() { - - if (attributes_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::WorkflowAttributes>(GetArenaNoVirtual()); - attributes_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesGetResponse.attributes) - return attributes_; -} -inline void WorkflowAttributesGetResponse::set_allocated_attributes(::flyteidl::admin::WorkflowAttributes* attributes) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete attributes_; - } - if (attributes) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - attributes = ::google::protobuf::internal::GetOwnedMessage( - message_arena, attributes, submessage_arena); - } - - } else { - - } - attributes_ = attributes; - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesGetResponse.attributes) -} - -// ------------------------------------------------------------------- - -// WorkflowAttributesDeleteRequest - -// string project = 1; -inline void WorkflowAttributesDeleteRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesDeleteRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.project) - return project_.GetNoArena(); -} -inline void WorkflowAttributesDeleteRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.project) -} -#if LANG_CXX11 -inline void WorkflowAttributesDeleteRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.project) -} -#endif -inline void WorkflowAttributesDeleteRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.project) -} -inline void WorkflowAttributesDeleteRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.project) -} -inline ::std::string* WorkflowAttributesDeleteRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesDeleteRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesDeleteRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.project) -} - -// string domain = 2; -inline void WorkflowAttributesDeleteRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesDeleteRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) - return domain_.GetNoArena(); -} -inline void WorkflowAttributesDeleteRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) -} -#if LANG_CXX11 -inline void WorkflowAttributesDeleteRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) -} -#endif -inline void WorkflowAttributesDeleteRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) -} -inline void WorkflowAttributesDeleteRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) -} -inline ::std::string* WorkflowAttributesDeleteRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesDeleteRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesDeleteRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.domain) -} - -// string workflow = 3; -inline void WorkflowAttributesDeleteRequest::clear_workflow() { - workflow_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowAttributesDeleteRequest::workflow() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) - return workflow_.GetNoArena(); -} -inline void WorkflowAttributesDeleteRequest::set_workflow(const ::std::string& value) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) -} -#if LANG_CXX11 -inline void WorkflowAttributesDeleteRequest::set_workflow(::std::string&& value) { - - workflow_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) -} -#endif -inline void WorkflowAttributesDeleteRequest::set_workflow(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) -} -inline void WorkflowAttributesDeleteRequest::set_workflow(const char* value, size_t size) { - - workflow_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) -} -inline ::std::string* WorkflowAttributesDeleteRequest::mutable_workflow() { - - // @@protoc_insertion_point(field_mutable:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) - return workflow_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowAttributesDeleteRequest::release_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) - - return workflow_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowAttributesDeleteRequest::set_allocated_workflow(::std::string* workflow) { - if (workflow != nullptr) { - - } else { - - } - workflow_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow); - // @@protoc_insertion_point(field_set_allocated:flyteidl.admin.WorkflowAttributesDeleteRequest.workflow) -} - -// .flyteidl.admin.MatchableResource resource_type = 4; -inline void WorkflowAttributesDeleteRequest::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::admin::MatchableResource WorkflowAttributesDeleteRequest::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type) - return static_cast< ::flyteidl::admin::MatchableResource >(resource_type_); -} -inline void WorkflowAttributesDeleteRequest::set_resource_type(::flyteidl::admin::MatchableResource value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.admin.WorkflowAttributesDeleteRequest.resource_type) -} - -// ------------------------------------------------------------------- - -// WorkflowAttributesDeleteResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace admin -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc deleted file mode 100644 index bcf5f3f71a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.cc +++ /dev/null @@ -1,463 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/artifact/artifacts.proto - -#include "flyteidl/artifact/artifacts.pb.h" -#include "flyteidl/artifact/artifacts.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace artifact { - -static const char* ArtifactRegistry_method_names[] = { - "/flyteidl.artifact.ArtifactRegistry/CreateArtifact", - "/flyteidl.artifact.ArtifactRegistry/GetArtifact", - "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", - "/flyteidl.artifact.ArtifactRegistry/CreateTrigger", - "/flyteidl.artifact.ArtifactRegistry/DeleteTrigger", - "/flyteidl.artifact.ArtifactRegistry/AddTag", - "/flyteidl.artifact.ArtifactRegistry/RegisterProducer", - "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer", - "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", - "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", -}; - -std::unique_ptr< ArtifactRegistry::Stub> ArtifactRegistry::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< ArtifactRegistry::Stub> stub(new ArtifactRegistry::Stub(channel)); - return stub; -} - -ArtifactRegistry::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateArtifact_(ArtifactRegistry_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetArtifact_(ArtifactRegistry_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SearchArtifacts_(ArtifactRegistry_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateTrigger_(ArtifactRegistry_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteTrigger_(ArtifactRegistry_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AddTag_(ArtifactRegistry_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterProducer_(ArtifactRegistry_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterConsumer_(ArtifactRegistry_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetExecutionInputs_(ArtifactRegistry_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_FindByWorkflowExec_(ArtifactRegistry_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status ArtifactRegistry::Stub::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateArtifact_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>* ArtifactRegistry::Stub::AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>* ArtifactRegistry::Stub::PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::flyteidl::artifact::GetArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetArtifact_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* ArtifactRegistry::Stub::AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* ArtifactRegistry::Stub::PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SearchArtifacts_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SearchArtifacts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_SearchArtifacts_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_SearchArtifacts_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTrigger_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTrigger_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTrigger_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTrigger_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTrigger_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* ArtifactRegistry::Stub::AsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::CreateTriggerResponse>::Create(channel_.get(), cq, rpcmethod_CreateTrigger_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* ArtifactRegistry::Stub::PrepareAsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::CreateTriggerResponse>::Create(channel_.get(), cq, rpcmethod_CreateTrigger_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::flyteidl::artifact::DeleteTriggerResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTrigger_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTrigger_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTrigger_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTrigger_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTrigger_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>* ArtifactRegistry::Stub::AsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::DeleteTriggerResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTrigger_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>* ArtifactRegistry::Stub::PrepareAsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::DeleteTriggerResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTrigger_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::flyteidl::artifact::AddTagResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddTag_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>* ArtifactRegistry::Stub::AsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>* ArtifactRegistry::Stub::PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::flyteidl::artifact::RegisterResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterProducer_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProducer_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProducer_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProducer_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProducer_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* ArtifactRegistry::Stub::AsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::RegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProducer_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* ArtifactRegistry::Stub::PrepareAsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::RegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProducer_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::flyteidl::artifact::RegisterResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterConsumer_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterConsumer_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterConsumer_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterConsumer_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterConsumer_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* ArtifactRegistry::Stub::AsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::RegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterConsumer_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* ArtifactRegistry::Stub::PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::RegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterConsumer_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetExecutionInputs_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetExecutionInputs_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* ArtifactRegistry::Stub::AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ExecutionInputsResponse>::Create(channel_.get(), cq, rpcmethod_SetExecutionInputs_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* ArtifactRegistry::Stub::PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::ExecutionInputsResponse>::Create(channel_.get(), cq, rpcmethod_SetExecutionInputs_, context, request, false); -} - -::grpc::Status ArtifactRegistry::Stub::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_FindByWorkflowExec_, context, request, response); -} - -void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, std::move(f)); -} - -void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, reactor); -} - -void ArtifactRegistry::Stub::experimental_async::FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_FindByWorkflowExec_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_FindByWorkflowExec_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* ArtifactRegistry::Stub::PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::artifact::SearchArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_FindByWorkflowExec_, context, request, false); -} - -ArtifactRegistry::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::CreateArtifactRequest, ::flyteidl::artifact::CreateArtifactResponse>( - std::mem_fn(&ArtifactRegistry::Service::CreateArtifact), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::GetArtifactRequest, ::flyteidl::artifact::GetArtifactResponse>( - std::mem_fn(&ArtifactRegistry::Service::GetArtifact), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>( - std::mem_fn(&ArtifactRegistry::Service::SearchArtifacts), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>( - std::mem_fn(&ArtifactRegistry::Service::CreateTrigger), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>( - std::mem_fn(&ArtifactRegistry::Service::DeleteTrigger), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[5], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>( - std::mem_fn(&ArtifactRegistry::Service::AddTag), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[6], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>( - std::mem_fn(&ArtifactRegistry::Service::RegisterProducer), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>( - std::mem_fn(&ArtifactRegistry::Service::RegisterConsumer), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[8], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>( - std::mem_fn(&ArtifactRegistry::Service::SetExecutionInputs), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ArtifactRegistry_method_names[9], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ArtifactRegistry::Service, ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>( - std::mem_fn(&ArtifactRegistry::Service::FindByWorkflowExec), this))); -} - -ArtifactRegistry::Service::~Service() { -} - -::grpc::Status ArtifactRegistry::Service::CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ArtifactRegistry::Service::FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace artifact - diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h deleted file mode 100644 index 1fbe28eb23..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.grpc.pb.h +++ /dev/null @@ -1,1704 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/artifact/artifacts.proto -#ifndef GRPC_flyteidl_2fartifact_2fartifacts_2eproto__INCLUDED -#define GRPC_flyteidl_2fartifact_2fartifacts_2eproto__INCLUDED - -#include "flyteidl/artifact/artifacts.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace artifact { - -class ArtifactRegistry final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.artifact.ArtifactRegistry"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - virtual ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); - } - virtual ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::flyteidl::artifact::GetArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); - } - virtual ::grpc::Status SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncSearchArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncSearchArtifactsRaw(context, request, cq)); - } - virtual ::grpc::Status CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>> AsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>>(AsyncCreateTriggerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>> PrepareAsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>>(PrepareAsyncCreateTriggerRaw(context, request, cq)); - } - virtual ::grpc::Status DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::flyteidl::artifact::DeleteTriggerResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>> AsyncDeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>>(AsyncDeleteTriggerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>> PrepareAsyncDeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>>(PrepareAsyncDeleteTriggerRaw(context, request, cq)); - } - virtual ::grpc::Status AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::flyteidl::artifact::AddTagResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); - } - virtual ::grpc::Status RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::flyteidl::artifact::RegisterResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>> AsyncRegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>>(AsyncRegisterProducerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterProducerRaw(context, request, cq)); - } - virtual ::grpc::Status RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::flyteidl::artifact::RegisterResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>> AsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>>(AsyncRegisterConsumerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterConsumerRaw(context, request, cq)); - } - virtual ::grpc::Status SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>> AsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>>(AsyncSetExecutionInputsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>> PrepareAsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>>(PrepareAsyncSetExecutionInputsRaw(context, request, cq)); - } - virtual ::grpc::Status FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncFindByWorkflowExecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - virtual void CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; - virtual void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; - virtual void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) = 0; - virtual void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) = 0; - virtual void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function) = 0; - virtual void DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function) = 0; - virtual void DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, std::function) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, std::function) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function) = 0; - virtual void RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) = 0; - virtual void RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function) = 0; - virtual void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) = 0; - virtual void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) = 0; - virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) = 0; - virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; - virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) = 0; - virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>* AsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::CreateTriggerResponse>* PrepareAsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>* AsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::DeleteTriggerResponse>* PrepareAsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>* AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::flyteidl::artifact::CreateArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); - } - ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::flyteidl::artifact::GetArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); - } - ::grpc::Status SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncSearchArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncSearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncSearchArtifactsRaw(context, request, cq)); - } - ::grpc::Status CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::flyteidl::artifact::CreateTriggerResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>> AsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>>(AsyncCreateTriggerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>> PrepareAsyncCreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>>(PrepareAsyncCreateTriggerRaw(context, request, cq)); - } - ::grpc::Status DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::flyteidl::artifact::DeleteTriggerResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>> AsyncDeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>>(AsyncDeleteTriggerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>> PrepareAsyncDeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>>(PrepareAsyncDeleteTriggerRaw(context, request, cq)); - } - ::grpc::Status AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::flyteidl::artifact::AddTagResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); - } - ::grpc::Status RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::flyteidl::artifact::RegisterResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>> AsyncRegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>>(AsyncRegisterProducerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterProducerRaw(context, request, cq)); - } - ::grpc::Status RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::flyteidl::artifact::RegisterResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>> AsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>>(AsyncRegisterConsumerRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>> PrepareAsyncRegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>>(PrepareAsyncRegisterConsumerRaw(context, request, cq)); - } - ::grpc::Status SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::flyteidl::artifact::ExecutionInputsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>> AsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>>(AsyncSetExecutionInputsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>> PrepareAsyncSetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>>(PrepareAsyncSetExecutionInputsRaw(context, request, cq)); - } - ::grpc::Status FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::flyteidl::artifact::SearchArtifactsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> AsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(AsyncFindByWorkflowExecRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>> PrepareAsyncFindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>>(PrepareAsyncFindByWorkflowExecRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function) override; - void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, std::function) override; - void CreateArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) override; - void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, std::function) override; - void GetArtifact(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; - void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; - void SearchArtifacts(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SearchArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) override; - void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, std::function) override; - void CreateTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function) override; - void DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, std::function) override; - void DeleteTrigger(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTrigger(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, std::function) override; - void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, std::function) override; - void AddTag(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function) override; - void RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) override; - void RegisterProducer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterProducer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, std::function) override; - void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, std::function) override; - void RegisterConsumer(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterConsumer(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) override; - void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, std::function) override; - void SetExecutionInputs(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SetExecutionInputs(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; - void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, std::function) override; - void FindByWorkflowExec(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void FindByWorkflowExec(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncSearchArtifactsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::SearchArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* AsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::CreateTriggerResponse>* PrepareAsyncCreateTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::CreateTriggerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>* AsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::DeleteTriggerResponse>* PrepareAsyncDeleteTriggerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::DeleteTriggerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterProducerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterProducerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* AsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::RegisterResponse>* PrepareAsyncRegisterConsumerRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::RegisterConsumerRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* AsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::ExecutionInputsResponse>* PrepareAsyncSetExecutionInputsRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::ExecutionInputsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* AsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::artifact::SearchArtifactsResponse>* PrepareAsyncFindByWorkflowExecRaw(::grpc::ClientContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_SearchArtifacts_; - const ::grpc::internal::RpcMethod rpcmethod_CreateTrigger_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteTrigger_; - const ::grpc::internal::RpcMethod rpcmethod_AddTag_; - const ::grpc::internal::RpcMethod rpcmethod_RegisterProducer_; - const ::grpc::internal::RpcMethod rpcmethod_RegisterConsumer_; - const ::grpc::internal::RpcMethod rpcmethod_SetExecutionInputs_; - const ::grpc::internal::RpcMethod rpcmethod_FindByWorkflowExec_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - virtual ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response); - virtual ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response); - virtual ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response); - virtual ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response); - virtual ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response); - virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response); - virtual ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response); - virtual ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response); - virtual ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response); - virtual ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response); - }; - template - class WithAsyncMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateArtifact() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateArtifact(::grpc::ServerContext* context, ::flyteidl::artifact::CreateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::CreateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetArtifact() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetArtifact(::grpc::ServerContext* context, ::flyteidl::artifact::GetArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::GetArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_SearchArtifacts() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSearchArtifacts(::grpc::ServerContext* context, ::flyteidl::artifact::SearchArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::SearchArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateTrigger() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTrigger(::grpc::ServerContext* context, ::flyteidl::artifact::CreateTriggerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::CreateTriggerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTrigger(::grpc::ServerContext* context, ::flyteidl::artifact::DeleteTriggerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::DeleteTriggerResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_AddTag() { - ::grpc::Service::MarkMethodAsync(5); - } - ~WithAsyncMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTag(::grpc::ServerContext* context, ::flyteidl::artifact::AddTagRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::AddTagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_RegisterProducer() { - ::grpc::Service::MarkMethodAsync(6); - } - ~WithAsyncMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterProducer(::grpc::ServerContext* context, ::flyteidl::artifact::RegisterProducerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::RegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterConsumer(::grpc::ServerContext* context, ::flyteidl::artifact::RegisterConsumerRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::RegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_SetExecutionInputs() { - ::grpc::Service::MarkMethodAsync(8); - } - ~WithAsyncMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetExecutionInputs(::grpc::ServerContext* context, ::flyteidl::artifact::ExecutionInputsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::ExecutionInputsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_FindByWorkflowExec() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestFindByWorkflowExec(::grpc::ServerContext* context, ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::artifact::SearchArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateArtifact > > > > > > > > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateArtifact() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateArtifactRequest, ::flyteidl::artifact::CreateArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::CreateArtifactRequest* request, - ::flyteidl::artifact::CreateArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateArtifact(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateArtifact( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::CreateArtifactRequest, ::flyteidl::artifact::CreateArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateArtifactRequest, ::flyteidl::artifact::CreateArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetArtifact() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::GetArtifactRequest, ::flyteidl::artifact::GetArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::GetArtifactRequest* request, - ::flyteidl::artifact::GetArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetArtifact(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetArtifact( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::GetArtifactRequest, ::flyteidl::artifact::GetArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::GetArtifactRequest, ::flyteidl::artifact::GetArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_SearchArtifacts() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::SearchArtifactsRequest* request, - ::flyteidl::artifact::SearchArtifactsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->SearchArtifacts(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_SearchArtifacts( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateTrigger() { - ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::CreateTriggerRequest* request, - ::flyteidl::artifact::CreateTriggerResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateTrigger(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateTrigger( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>*>( - ::grpc::Service::experimental().GetHandler(3)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteTrigger() { - ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::DeleteTriggerRequest* request, - ::flyteidl::artifact::DeleteTriggerResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteTrigger(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteTrigger( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>*>( - ::grpc::Service::experimental().GetHandler(4)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::AddTagRequest* request, - ::flyteidl::artifact::AddTagResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->AddTag(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_AddTag( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>*>( - ::grpc::Service::experimental().GetHandler(5)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_RegisterProducer() { - ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::RegisterProducerRequest* request, - ::flyteidl::artifact::RegisterResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RegisterProducer(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_RegisterProducer( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>*>( - ::grpc::Service::experimental().GetHandler(6)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_RegisterConsumer() { - ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::RegisterConsumerRequest* request, - ::flyteidl::artifact::RegisterResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RegisterConsumer(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_RegisterConsumer( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>*>( - ::grpc::Service::experimental().GetHandler(7)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_SetExecutionInputs() { - ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::ExecutionInputsRequest* request, - ::flyteidl::artifact::ExecutionInputsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->SetExecutionInputs(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_SetExecutionInputs( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>*>( - ::grpc::Service::experimental().GetHandler(8)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_FindByWorkflowExec() { - ::grpc::Service::experimental().MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::artifact::FindByWorkflowExecRequest* request, - ::flyteidl::artifact::SearchArtifactsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->FindByWorkflowExec(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_FindByWorkflowExec( - ::grpc::experimental::MessageAllocator< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>*>( - ::grpc::Service::experimental().GetHandler(9)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateArtifact > > > > > > > > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateArtifact() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetArtifact() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_SearchArtifacts() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateTrigger() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_AddTag() { - ::grpc::Service::MarkMethodGeneric(5); - } - ~WithGenericMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_RegisterProducer() { - ::grpc::Service::MarkMethodGeneric(6); - } - ~WithGenericMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_SetExecutionInputs() { - ::grpc::Service::MarkMethodGeneric(8); - } - ~WithGenericMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_FindByWorkflowExec() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateArtifact() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetArtifact() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_SearchArtifacts() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSearchArtifacts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateTrigger() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTrigger(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTrigger(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_AddTag() { - ::grpc::Service::MarkMethodRaw(5); - } - ~WithRawMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_RegisterProducer() { - ::grpc::Service::MarkMethodRaw(6); - } - ~WithRawMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterProducer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterConsumer(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_SetExecutionInputs() { - ::grpc::Service::MarkMethodRaw(8); - } - ~WithRawMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetExecutionInputs(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_FindByWorkflowExec() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestFindByWorkflowExec(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateArtifact() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateArtifact(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetArtifact() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetArtifact(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_SearchArtifacts() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->SearchArtifacts(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SearchArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateTrigger() { - ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateTrigger(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTrigger(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteTrigger() { - ::grpc::Service::experimental().MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteTrigger(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTrigger(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->AddTag(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void AddTag(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_RegisterProducer() { - ::grpc::Service::experimental().MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RegisterProducer(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterProducer(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_RegisterConsumer() { - ::grpc::Service::experimental().MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RegisterConsumer(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterConsumer(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_SetExecutionInputs() { - ::grpc::Service::experimental().MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->SetExecutionInputs(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SetExecutionInputs(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_FindByWorkflowExec() { - ::grpc::Service::experimental().MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->FindByWorkflowExec(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void FindByWorkflowExec(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateArtifact() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::CreateArtifactRequest, ::flyteidl::artifact::CreateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_CreateArtifact::StreamedCreateArtifact, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateArtifactRequest* request, ::flyteidl::artifact::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::CreateArtifactRequest,::flyteidl::artifact::CreateArtifactResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetArtifact() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::GetArtifactRequest, ::flyteidl::artifact::GetArtifactResponse>(std::bind(&WithStreamedUnaryMethod_GetArtifact::StreamedGetArtifact, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::flyteidl::artifact::GetArtifactRequest* request, ::flyteidl::artifact::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::GetArtifactRequest,::flyteidl::artifact::GetArtifactResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SearchArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_SearchArtifacts() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::SearchArtifactsRequest, ::flyteidl::artifact::SearchArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_SearchArtifacts::StreamedSearchArtifacts, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_SearchArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SearchArtifacts(::grpc::ServerContext* context, const ::flyteidl::artifact::SearchArtifactsRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSearchArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::SearchArtifactsRequest,::flyteidl::artifact::SearchArtifactsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateTrigger() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::CreateTriggerRequest, ::flyteidl::artifact::CreateTriggerResponse>(std::bind(&WithStreamedUnaryMethod_CreateTrigger::StreamedCreateTrigger, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::CreateTriggerRequest* request, ::flyteidl::artifact::CreateTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateTrigger(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::CreateTriggerRequest,::flyteidl::artifact::CreateTriggerResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteTrigger : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteTrigger() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::DeleteTriggerRequest, ::flyteidl::artifact::DeleteTriggerResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTrigger::StreamedDeleteTrigger, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteTrigger() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteTrigger(::grpc::ServerContext* context, const ::flyteidl::artifact::DeleteTriggerRequest* request, ::flyteidl::artifact::DeleteTriggerResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteTrigger(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::DeleteTriggerRequest,::flyteidl::artifact::DeleteTriggerResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_AddTag() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::AddTagRequest, ::flyteidl::artifact::AddTagResponse>(std::bind(&WithStreamedUnaryMethod_AddTag::StreamedAddTag, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::flyteidl::artifact::AddTagRequest* request, ::flyteidl::artifact::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedAddTag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::AddTagRequest,::flyteidl::artifact::AddTagResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RegisterProducer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_RegisterProducer() { - ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::RegisterProducerRequest, ::flyteidl::artifact::RegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterProducer::StreamedRegisterProducer, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_RegisterProducer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RegisterProducer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterProducerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRegisterProducer(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::RegisterProducerRequest,::flyteidl::artifact::RegisterResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RegisterConsumer : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_RegisterConsumer() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::RegisterConsumerRequest, ::flyteidl::artifact::RegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterConsumer::StreamedRegisterConsumer, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_RegisterConsumer() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RegisterConsumer(::grpc::ServerContext* context, const ::flyteidl::artifact::RegisterConsumerRequest* request, ::flyteidl::artifact::RegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRegisterConsumer(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::RegisterConsumerRequest,::flyteidl::artifact::RegisterResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetExecutionInputs : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_SetExecutionInputs() { - ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::ExecutionInputsRequest, ::flyteidl::artifact::ExecutionInputsResponse>(std::bind(&WithStreamedUnaryMethod_SetExecutionInputs::StreamedSetExecutionInputs, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_SetExecutionInputs() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetExecutionInputs(::grpc::ServerContext* context, const ::flyteidl::artifact::ExecutionInputsRequest* request, ::flyteidl::artifact::ExecutionInputsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetExecutionInputs(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::ExecutionInputsRequest,::flyteidl::artifact::ExecutionInputsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_FindByWorkflowExec : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_FindByWorkflowExec() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::artifact::FindByWorkflowExecRequest, ::flyteidl::artifact::SearchArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_FindByWorkflowExec::StreamedFindByWorkflowExec, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_FindByWorkflowExec() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status FindByWorkflowExec(::grpc::ServerContext* context, const ::flyteidl::artifact::FindByWorkflowExecRequest* request, ::flyteidl::artifact::SearchArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedFindByWorkflowExec(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::artifact::FindByWorkflowExecRequest,::flyteidl::artifact::SearchArtifactsResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateArtifact > > > > > > > > > StreamedService; -}; - -} // namespace artifact -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fartifact_2fartifacts_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc deleted file mode 100644 index 230d0b093a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.cc +++ /dev/null @@ -1,9792 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/artifact/artifacts.proto - -#include "flyteidl/artifact/artifacts.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fadmin_2flaunch_5fplan_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto; -namespace flyteidl { -namespace artifact { -class ArtifactDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Artifact_default_instance_; -class CreateArtifactRequest_PartitionsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_; -class CreateArtifactRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateArtifactRequest_default_instance_; -class ArtifactSourceDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactSource_default_instance_; -class ArtifactSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactSpec_default_instance_; -class CreateArtifactResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateArtifactResponse_default_instance_; -class GetArtifactRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetArtifactRequest_default_instance_; -class GetArtifactResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetArtifactResponse_default_instance_; -class SearchOptionsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SearchOptions_default_instance_; -class SearchArtifactsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SearchArtifactsRequest_default_instance_; -class SearchArtifactsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SearchArtifactsResponse_default_instance_; -class FindByWorkflowExecRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _FindByWorkflowExecRequest_default_instance_; -class AddTagRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AddTagRequest_default_instance_; -class AddTagResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AddTagResponse_default_instance_; -class CreateTriggerRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateTriggerRequest_default_instance_; -class CreateTriggerResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateTriggerResponse_default_instance_; -class DeleteTriggerRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DeleteTriggerRequest_default_instance_; -class DeleteTriggerResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DeleteTriggerResponse_default_instance_; -class ArtifactProducerDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactProducer_default_instance_; -class RegisterProducerRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RegisterProducerRequest_default_instance_; -class ArtifactConsumerDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactConsumer_default_instance_; -class RegisterConsumerRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RegisterConsumerRequest_default_instance_; -class RegisterResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RegisterResponse_default_instance_; -class ExecutionInputsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionInputsRequest_default_instance_; -class ExecutionInputsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionInputsResponse_default_instance_; -} // namespace artifact -} // namespace flyteidl -static void InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_Artifact_default_instance_; - new (ptr) ::flyteidl::artifact::Artifact(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::Artifact::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsArtifact_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base, - &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsCreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse(); - } - ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsCreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_CreateArtifactRequest_default_instance_; - new (ptr) ::flyteidl::artifact::CreateArtifactRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::CreateArtifactRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsCreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base, - &scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base, - &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ArtifactSource_default_instance_; - new (ptr) ::flyteidl::artifact::ArtifactSource(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ArtifactSource::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ArtifactSpec_default_instance_; - new (ptr) ::flyteidl::artifact::ArtifactSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ArtifactSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}}; - -static void InitDefaultsCreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_CreateArtifactResponse_default_instance_; - new (ptr) ::flyteidl::artifact::CreateArtifactResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::CreateArtifactResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsGetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_GetArtifactRequest_default_instance_; - new (ptr) ::flyteidl::artifact::GetArtifactRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::GetArtifactRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsGetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_GetArtifactResponse_default_instance_; - new (ptr) ::flyteidl::artifact::GetArtifactResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::GetArtifactResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsSearchOptions_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_SearchOptions_default_instance_; - new (ptr) ::flyteidl::artifact::SearchOptions(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::SearchOptions::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSearchOptions_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_SearchArtifactsRequest_default_instance_; - new (ptr) ::flyteidl::artifact::SearchArtifactsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::SearchArtifactsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_SearchArtifactsResponse_default_instance_; - new (ptr) ::flyteidl::artifact::SearchArtifactsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::SearchArtifactsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsFindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_; - new (ptr) ::flyteidl::artifact::FindByWorkflowExecRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::FindByWorkflowExecRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsAddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_AddTagRequest_default_instance_; - new (ptr) ::flyteidl::artifact::AddTagRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::AddTagRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsAddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_AddTagResponse_default_instance_; - new (ptr) ::flyteidl::artifact::AddTagResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::AddTagResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsCreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_CreateTriggerRequest_default_instance_; - new (ptr) ::flyteidl::artifact::CreateTriggerRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::CreateTriggerRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_LaunchPlan_flyteidl_2fadmin_2flaunch_5fplan_2eproto.base,}}; - -static void InitDefaultsCreateTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_CreateTriggerResponse_default_instance_; - new (ptr) ::flyteidl::artifact::CreateTriggerResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::CreateTriggerResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CreateTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsDeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_DeleteTriggerRequest_default_instance_; - new (ptr) ::flyteidl::artifact::DeleteTriggerRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::DeleteTriggerRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsDeleteTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_DeleteTriggerResponse_default_instance_; - new (ptr) ::flyteidl::artifact::DeleteTriggerResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::DeleteTriggerResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DeleteTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDeleteTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ArtifactProducer_default_instance_; - new (ptr) ::flyteidl::artifact::ArtifactProducer(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ArtifactProducer::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsRegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_RegisterProducerRequest_default_instance_; - new (ptr) ::flyteidl::artifact::RegisterProducerRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::RegisterProducerRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ArtifactConsumer_default_instance_; - new (ptr) ::flyteidl::artifact::ArtifactConsumer(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ArtifactConsumer::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsRegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_RegisterConsumerRequest_default_instance_; - new (ptr) ::flyteidl::artifact::RegisterConsumerRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::RegisterConsumerRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto.base,}}; - -static void InitDefaultsRegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_RegisterResponse_default_instance_; - new (ptr) ::flyteidl::artifact::RegisterResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::RegisterResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -static void InitDefaultsExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ExecutionInputsRequest_default_instance_; - new (ptr) ::flyteidl::artifact::ExecutionInputsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ExecutionInputsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::artifact::_ExecutionInputsResponse_default_instance_; - new (ptr) ::flyteidl::artifact::ExecutionInputsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::artifact::ExecutionInputsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto}, {}}; - -void InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_PartitionsEntry_DoNotUse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DeleteTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[25]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fartifact_2fartifacts_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, artifact_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, tags_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::Artifact, source_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, artifact_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, partitions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, tag_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactRequest, source_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, workflow_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, task_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, retry_attempt_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSource, principal_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, short_description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, user_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactSpec, metadata_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateArtifactResponse, artifact_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactRequest, query_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactRequest, details_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::GetArtifactResponse, artifact_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, strict_partitions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchOptions, latest_by_key_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, artifact_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, partitions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, principal_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, options_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsRequest, limit_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, artifacts_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::SearchArtifactsResponse, token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, exec_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::FindByWorkflowExecRequest, direction_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, artifact_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagRequest, overwrite_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::AddTagResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateTriggerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateTriggerRequest, trigger_launch_plan_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::CreateTriggerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::DeleteTriggerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::DeleteTriggerRequest, trigger_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::DeleteTriggerResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactProducer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactProducer, entity_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactProducer, outputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::RegisterProducerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::RegisterProducerRequest, producers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactConsumer, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactConsumer, entity_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ArtifactConsumer, inputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::RegisterConsumerRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::RegisterConsumerRequest, consumers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::RegisterResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsRequest, inputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::artifact::ExecutionInputsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::artifact::Artifact)}, - { 9, 16, sizeof(::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse)}, - { 18, -1, sizeof(::flyteidl::artifact::CreateArtifactRequest)}, - { 29, -1, sizeof(::flyteidl::artifact::ArtifactSource)}, - { 39, -1, sizeof(::flyteidl::artifact::ArtifactSpec)}, - { 49, -1, sizeof(::flyteidl::artifact::CreateArtifactResponse)}, - { 55, -1, sizeof(::flyteidl::artifact::GetArtifactRequest)}, - { 62, -1, sizeof(::flyteidl::artifact::GetArtifactResponse)}, - { 68, -1, sizeof(::flyteidl::artifact::SearchOptions)}, - { 75, -1, sizeof(::flyteidl::artifact::SearchArtifactsRequest)}, - { 87, -1, sizeof(::flyteidl::artifact::SearchArtifactsResponse)}, - { 94, -1, sizeof(::flyteidl::artifact::FindByWorkflowExecRequest)}, - { 101, -1, sizeof(::flyteidl::artifact::AddTagRequest)}, - { 109, -1, sizeof(::flyteidl::artifact::AddTagResponse)}, - { 114, -1, sizeof(::flyteidl::artifact::CreateTriggerRequest)}, - { 120, -1, sizeof(::flyteidl::artifact::CreateTriggerResponse)}, - { 125, -1, sizeof(::flyteidl::artifact::DeleteTriggerRequest)}, - { 131, -1, sizeof(::flyteidl::artifact::DeleteTriggerResponse)}, - { 136, -1, sizeof(::flyteidl::artifact::ArtifactProducer)}, - { 143, -1, sizeof(::flyteidl::artifact::RegisterProducerRequest)}, - { 149, -1, sizeof(::flyteidl::artifact::ArtifactConsumer)}, - { 156, -1, sizeof(::flyteidl::artifact::RegisterConsumerRequest)}, - { 162, -1, sizeof(::flyteidl::artifact::RegisterResponse)}, - { 167, -1, sizeof(::flyteidl::artifact::ExecutionInputsRequest)}, - { 174, -1, sizeof(::flyteidl::artifact::ExecutionInputsResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::artifact::_Artifact_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CreateArtifactRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ArtifactSource_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ArtifactSpec_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CreateArtifactResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_GetArtifactRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_GetArtifactResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_SearchOptions_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_SearchArtifactsResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_AddTagRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_AddTagResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CreateTriggerRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_CreateTriggerResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_DeleteTriggerRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_DeleteTriggerResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ArtifactProducer_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_RegisterProducerRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ArtifactConsumer_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_RegisterConsumerRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_RegisterResponse_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsRequest_default_instance_), - reinterpret_cast(&::flyteidl::artifact::_ExecutionInputsResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto = { - {}, AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto, "flyteidl/artifact/artifacts.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fartifact_2fartifacts_2eproto::offsets, - file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto, 25, file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, file_level_service_descriptors_flyteidl_2fartifact_2fartifacts_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto[] = - "\n!flyteidl/artifact/artifacts.proto\022\021fly" - "teidl.artifact\032\031google/protobuf/any.prot" - "o\032\034google/api/annotations.proto\032 flyteid" - "l/admin/launch_plan.proto\032\034flyteidl/core" - "/literals.proto\032\031flyteidl/core/types.pro" - "to\032\036flyteidl/core/identifier.proto\032\037flyt" - "eidl/core/artifact_id.proto\032\035flyteidl/co" - "re/interface.proto\032 flyteidl/event/cloud" - "events.proto\"\252\001\n\010Artifact\022.\n\013artifact_id" - "\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spe" - "c\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec" - "\022\014\n\004tags\030\003 \003(\t\0221\n\006source\030\004 \001(\0132!.flyteid" - "l.artifact.ArtifactSource\"\312\002\n\025CreateArti" - "factRequest\0220\n\014artifact_key\030\001 \001(\0132\032.flyt" - "eidl.core.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-" - "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" - "tSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl.art" - "ifact.CreateArtifactRequest.PartitionsEn" - "try\022\013\n\003tag\030\005 \001(\t\0221\n\006source\030\006 \001(\0132!.flyte" - "idl.artifact.ArtifactSource\0321\n\017Partition" - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\277" - "\001\n\016ArtifactSource\022F\n\022workflow_execution\030" - "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" - "dentifier\022\017\n\007node_id\030\002 \001(\t\022*\n\007task_id\030\003 " - "\001(\0132\031.flyteidl.core.Identifier\022\025\n\rretry_" - "attempt\030\004 \001(\r\022\021\n\tprincipal\030\005 \001(\t\"\276\001\n\014Art" - "ifactSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core" - ".Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" - "iteralType\022\031\n\021short_description\030\003 \001(\t\022+\n" - "\ruser_metadata\030\004 \001(\0132\024.google.protobuf.A" - "ny\022\025\n\rmetadata_type\030\005 \001(\t\"G\n\026CreateArtif" - "actResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl" - ".artifact.Artifact\"R\n\022GetArtifactRequest" - "\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifact" - "Query\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRes" - "ponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.artif" - "act.Artifact\"A\n\rSearchOptions\022\031\n\021strict_" - "partitions\030\001 \001(\010\022\025\n\rlatest_by_key\030\002 \001(\010\"" - "\356\001\n\026SearchArtifactsRequest\0220\n\014artifact_k" - "ey\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022-\n\n" - "partitions\030\002 \001(\0132\031.flyteidl.core.Partiti" - "ons\022\021\n\tprincipal\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022" - "1\n\007options\030\005 \001(\0132 .flyteidl.artifact.Sea" - "rchOptions\022\r\n\005token\030\006 \001(\t\022\r\n\005limit\030\007 \001(\005" - "\"X\n\027SearchArtifactsResponse\022.\n\tartifacts" - "\030\001 \003(\0132\033.flyteidl.artifact.Artifact\022\r\n\005t" - "oken\030\002 \001(\t\"\311\001\n\031FindByWorkflowExecRequest" - "\022;\n\007exec_id\030\001 \001(\0132*.flyteidl.core.Workfl" - "owExecutionIdentifier\022I\n\tdirection\030\002 \001(\016" - "26.flyteidl.artifact.FindByWorkflowExecR" - "equest.Direction\"$\n\tDirection\022\n\n\006INPUTS\020" - "\000\022\013\n\007OUTPUTS\020\001\"a\n\rAddTagRequest\022.\n\013artif" - "act_id\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022" - "\r\n\005value\030\002 \001(\t\022\021\n\toverwrite\030\003 \001(\010\"\020\n\016Add" - "TagResponse\"O\n\024CreateTriggerRequest\0227\n\023t" - "rigger_launch_plan\030\001 \001(\0132\032.flyteidl.admi" - "n.LaunchPlan\"\027\n\025CreateTriggerResponse\"E\n" - "\024DeleteTriggerRequest\022-\n\ntrigger_id\030\001 \001(" - "\0132\031.flyteidl.core.Identifier\"\027\n\025DeleteTr" - "iggerResponse\"m\n\020ArtifactProducer\022,\n\tent" - "ity_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022" - "+\n\007outputs\030\002 \001(\0132\032.flyteidl.core.Variabl" - "eMap\"Q\n\027RegisterProducerRequest\0226\n\tprodu" - "cers\030\001 \003(\0132#.flyteidl.artifact.ArtifactP" - "roducer\"m\n\020ArtifactConsumer\022,\n\tentity_id" - "\030\001 \001(\0132\031.flyteidl.core.Identifier\022+\n\006inp" - "uts\030\002 \001(\0132\033.flyteidl.core.ParameterMap\"Q" - "\n\027RegisterConsumerRequest\0226\n\tconsumers\030\001" - " \003(\0132#.flyteidl.artifact.ArtifactConsume" - "r\"\022\n\020RegisterResponse\"\205\001\n\026ExecutionInput" - "sRequest\022@\n\014execution_id\030\001 \001(\0132*.flyteid" - "l.core.WorkflowExecutionIdentifier\022)\n\006in" - "puts\030\002 \003(\0132\031.flyteidl.core.ArtifactID\"\031\n" - "\027ExecutionInputsResponse2\327\016\n\020ArtifactReg" - "istry\022g\n\016CreateArtifact\022(.flyteidl.artif" - "act.CreateArtifactRequest\032).flyteidl.art" - "ifact.CreateArtifactResponse\"\000\022\205\005\n\013GetAr" - "tifact\022%.flyteidl.artifact.GetArtifactRe" - "quest\032&.flyteidl.artifact.GetArtifactRes" - "ponse\"\246\004\202\323\344\223\002\237\004\022 /artifacts/api/v1/data/" - "artifactsZ\270\001\022\265\001/artifacts/api/v1/data/ar" - "tifact/id/{query.artifact_id.artifact_ke" - "y.project}/{query.artifact_id.artifact_k" - "ey.domain}/{query.artifact_id.artifact_k" - "ey.name}/{query.artifact_id.version}Z\234\001\022" - "\231\001/artifacts/api/v1/data/artifact/id/{qu" - "ery.artifact_id.artifact_key.project}/{q" - "uery.artifact_id.artifact_key.domain}/{q" - "uery.artifact_id.artifact_key.name}Z\240\001\022\235" - "\001/artifacts/api/v1/data/artifact/tag/{qu" - "ery.artifact_tag.artifact_key.project}/{" - "query.artifact_tag.artifact_key.domain}/" - "{query.artifact_tag.artifact_key.name}\022\240" - "\002\n\017SearchArtifacts\022).flyteidl.artifact.S" - "earchArtifactsRequest\032*.flyteidl.artifac" - "t.SearchArtifactsResponse\"\265\001\202\323\344\223\002\256\001\022_/ar" - "tifacts/api/v1/data/query/s/{artifact_ke" - "y.project}/{artifact_key.domain}/{artifa" - "ct_key.name}ZK\022I/artifacts/api/v1/data/q" - "uery/{artifact_key.project}/{artifact_ke" - "y.domain}\022d\n\rCreateTrigger\022\'.flyteidl.ar" - "tifact.CreateTriggerRequest\032(.flyteidl.a" - "rtifact.CreateTriggerResponse\"\000\022d\n\rDelet" - "eTrigger\022\'.flyteidl.artifact.DeleteTrigg" - "erRequest\032(.flyteidl.artifact.DeleteTrig" - "gerResponse\"\000\022O\n\006AddTag\022 .flyteidl.artif" - "act.AddTagRequest\032!.flyteidl.artifact.Ad" - "dTagResponse\"\000\022e\n\020RegisterProducer\022*.fly" - "teidl.artifact.RegisterProducerRequest\032#" - ".flyteidl.artifact.RegisterResponse\"\000\022e\n" - "\020RegisterConsumer\022*.flyteidl.artifact.Re" - "gisterConsumerRequest\032#.flyteidl.artifac" - "t.RegisterResponse\"\000\022m\n\022SetExecutionInpu" - "ts\022).flyteidl.artifact.ExecutionInputsRe" - "quest\032*.flyteidl.artifact.ExecutionInput" - "sResponse\"\000\022\324\001\n\022FindByWorkflowExec\022,.fly" - "teidl.artifact.FindByWorkflowExecRequest" - "\032*.flyteidl.artifact.SearchArtifactsResp" - "onse\"d\202\323\344\223\002^\022\\/artifacts/api/v1/data/que" - "ry/e/{exec_id.project}/{exec_id.domain}/" - "{exec_id.name}/{direction}B@Z>github.com" - "/flyteorg/flyte/flyteidl/gen/pb-go/flyte" - "idl/artifactb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto = { - false, InitDefaults_flyteidl_2fartifact_2fartifacts_2eproto, - descriptor_table_protodef_flyteidl_2fartifact_2fartifacts_2eproto, - "flyteidl/artifact/artifacts.proto", &assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto, 4900, -}; - -void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[9] = - { - ::AddDescriptors_google_2fprotobuf_2fany_2eproto, - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, - ::AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fartifact_2fartifacts_2eproto, deps, 9); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fartifact_2fartifacts_2eproto = []() { AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto(); return true; }(); -namespace flyteidl { -namespace artifact { -const ::google::protobuf::EnumDescriptor* FindByWorkflowExecRequest_Direction_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return file_level_enum_descriptors_flyteidl_2fartifact_2fartifacts_2eproto[0]; -} -bool FindByWorkflowExecRequest_Direction_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::INPUTS; -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::OUTPUTS; -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::Direction_MIN; -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::Direction_MAX; -const int FindByWorkflowExecRequest::Direction_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void Artifact::InitAsDefaultInstance() { - ::flyteidl::artifact::_Artifact_default_instance_._instance.get_mutable()->artifact_id_ = const_cast< ::flyteidl::core::ArtifactID*>( - ::flyteidl::core::ArtifactID::internal_default_instance()); - ::flyteidl::artifact::_Artifact_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::artifact::ArtifactSpec*>( - ::flyteidl::artifact::ArtifactSpec::internal_default_instance()); - ::flyteidl::artifact::_Artifact_default_instance_._instance.get_mutable()->source_ = const_cast< ::flyteidl::artifact::ArtifactSource*>( - ::flyteidl::artifact::ArtifactSource::internal_default_instance()); -} -class Artifact::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactID& artifact_id(const Artifact* msg); - static const ::flyteidl::artifact::ArtifactSpec& spec(const Artifact* msg); - static const ::flyteidl::artifact::ArtifactSource& source(const Artifact* msg); -}; - -const ::flyteidl::core::ArtifactID& -Artifact::HasBitSetters::artifact_id(const Artifact* msg) { - return *msg->artifact_id_; -} -const ::flyteidl::artifact::ArtifactSpec& -Artifact::HasBitSetters::spec(const Artifact* msg) { - return *msg->spec_; -} -const ::flyteidl::artifact::ArtifactSource& -Artifact::HasBitSetters::source(const Artifact* msg) { - return *msg->source_; -} -void Artifact::clear_artifact_id() { - if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { - delete artifact_id_; - } - artifact_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Artifact::kArtifactIdFieldNumber; -const int Artifact::kSpecFieldNumber; -const int Artifact::kTagsFieldNumber; -const int Artifact::kSourceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Artifact::Artifact() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.Artifact) -} -Artifact::Artifact(const Artifact& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact_id()) { - artifact_id_ = new ::flyteidl::core::ArtifactID(*from.artifact_id_); - } else { - artifact_id_ = nullptr; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::artifact::ArtifactSpec(*from.spec_); - } else { - spec_ = nullptr; - } - if (from.has_source()) { - source_ = new ::flyteidl::artifact::ArtifactSource(*from.source_); - } else { - source_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.Artifact) -} - -void Artifact::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::memset(&artifact_id_, 0, static_cast( - reinterpret_cast(&source_) - - reinterpret_cast(&artifact_id_)) + sizeof(source_)); -} - -Artifact::~Artifact() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.Artifact) - SharedDtor(); -} - -void Artifact::SharedDtor() { - if (this != internal_default_instance()) delete artifact_id_; - if (this != internal_default_instance()) delete spec_; - if (this != internal_default_instance()) delete source_; -} - -void Artifact::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Artifact& Artifact::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Artifact_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void Artifact::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { - delete artifact_id_; - } - artifact_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { - delete source_; - } - source_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Artifact::_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.ArtifactID artifact_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::ArtifactID::_InternalParse; - object = msg->mutable_artifact_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; - } - // .flyteidl.artifact.ArtifactSpec spec = 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::artifact::ArtifactSpec::_InternalParse; - object = msg->mutable_spec(); - 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; - } - // repeated string tags = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.Artifact.tags"); - object = msg->add_tags(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // .flyteidl.artifact.ArtifactSource source = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::ArtifactSource::_InternalParse; - object = msg->mutable_source(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Artifact::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.artifact.Artifact) - 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.ArtifactID artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string tags = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tags())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(this->tags_size() - 1).data(), - static_cast(this->tags(this->tags_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.Artifact.tags")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.ArtifactSource source = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_source())); - } 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.artifact.Artifact) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.Artifact) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Artifact::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_id(this), output); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(this), output); - } - - // repeated string tags = 3; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.Artifact.tags"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->tags(i), output); - } - - // .flyteidl.artifact.ArtifactSource source = 4; - if (this->has_source()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::source(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.Artifact) -} - -::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_id(this), target); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(this), target); - } - - // repeated string tags = 3; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.Artifact.tags"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->tags(i), target); - } - - // .flyteidl.artifact.ArtifactSource source = 4; - if (this->has_source()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::source(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.artifact.Artifact) - return target; -} - -size_t Artifact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.Artifact) - 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; - - // repeated string tags = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - for (int i = 0, n = this->tags_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tags(i)); - } - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_id_); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - // .flyteidl.artifact.ArtifactSource source = 4; - if (this->has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *source_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Artifact::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.Artifact) - GOOGLE_DCHECK_NE(&from, this); - const Artifact* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.Artifact) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.Artifact) - MergeFrom(*source); - } -} - -void Artifact::MergeFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.Artifact) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - if (from.has_artifact_id()) { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::artifact::ArtifactSpec::MergeFrom(from.spec()); - } - if (from.has_source()) { - mutable_source()->::flyteidl::artifact::ArtifactSource::MergeFrom(from.source()); - } -} - -void Artifact::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.Artifact) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Artifact::CopyFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.Artifact) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Artifact::IsInitialized() const { - return true; -} - -void Artifact::Swap(Artifact* other) { - if (other == this) return; - InternalSwap(other); -} -void Artifact::InternalSwap(Artifact* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.InternalSwap(CastToBase(&other->tags_)); - swap(artifact_id_, other->artifact_id_); - swap(spec_, other->spec_); - swap(source_, other->source_); -} - -::google::protobuf::Metadata Artifact::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -CreateArtifactRequest_PartitionsEntry_DoNotUse::CreateArtifactRequest_PartitionsEntry_DoNotUse() {} -CreateArtifactRequest_PartitionsEntry_DoNotUse::CreateArtifactRequest_PartitionsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void CreateArtifactRequest_PartitionsEntry_DoNotUse::MergeFrom(const CreateArtifactRequest_PartitionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata CreateArtifactRequest_PartitionsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[1]; -} -void CreateArtifactRequest_PartitionsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateArtifactRequest_PartitionsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - CreateArtifactRequest_PartitionsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void CreateArtifactRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_CreateArtifactRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( - ::flyteidl::core::ArtifactKey::internal_default_instance()); - ::flyteidl::artifact::_CreateArtifactRequest_default_instance_._instance.get_mutable()->spec_ = const_cast< ::flyteidl::artifact::ArtifactSpec*>( - ::flyteidl::artifact::ArtifactSpec::internal_default_instance()); - ::flyteidl::artifact::_CreateArtifactRequest_default_instance_._instance.get_mutable()->source_ = const_cast< ::flyteidl::artifact::ArtifactSource*>( - ::flyteidl::artifact::ArtifactSource::internal_default_instance()); -} -class CreateArtifactRequest::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const CreateArtifactRequest* msg); - static const ::flyteidl::artifact::ArtifactSpec& spec(const CreateArtifactRequest* msg); - static const ::flyteidl::artifact::ArtifactSource& source(const CreateArtifactRequest* msg); -}; - -const ::flyteidl::core::ArtifactKey& -CreateArtifactRequest::HasBitSetters::artifact_key(const CreateArtifactRequest* msg) { - return *msg->artifact_key_; -} -const ::flyteidl::artifact::ArtifactSpec& -CreateArtifactRequest::HasBitSetters::spec(const CreateArtifactRequest* msg) { - return *msg->spec_; -} -const ::flyteidl::artifact::ArtifactSource& -CreateArtifactRequest::HasBitSetters::source(const CreateArtifactRequest* msg) { - return *msg->source_; -} -void CreateArtifactRequest::clear_artifact_key() { - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateArtifactRequest::kArtifactKeyFieldNumber; -const int CreateArtifactRequest::kVersionFieldNumber; -const int CreateArtifactRequest::kSpecFieldNumber; -const int CreateArtifactRequest::kPartitionsFieldNumber; -const int CreateArtifactRequest::kTagFieldNumber; -const int CreateArtifactRequest::kSourceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateArtifactRequest::CreateArtifactRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CreateArtifactRequest) -} -CreateArtifactRequest::CreateArtifactRequest(const CreateArtifactRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - partitions_.MergeFrom(from.partitions_); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.tag().size() > 0) { - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - if (from.has_artifact_key()) { - artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); - } else { - artifact_key_ = nullptr; - } - if (from.has_spec()) { - spec_ = new ::flyteidl::artifact::ArtifactSpec(*from.spec_); - } else { - spec_ = nullptr; - } - if (from.has_source()) { - source_ = new ::flyteidl::artifact::ArtifactSource(*from.source_); - } else { - source_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CreateArtifactRequest) -} - -void CreateArtifactRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&artifact_key_, 0, static_cast( - reinterpret_cast(&source_) - - reinterpret_cast(&artifact_key_)) + sizeof(source_)); -} - -CreateArtifactRequest::~CreateArtifactRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CreateArtifactRequest) - SharedDtor(); -} - -void CreateArtifactRequest::SharedDtor() { - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete artifact_key_; - if (this != internal_default_instance()) delete spec_; - if (this != internal_default_instance()) delete source_; -} - -void CreateArtifactRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateArtifactRequest& CreateArtifactRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void CreateArtifactRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partitions_.Clear(); - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { - delete source_; - } - source_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateArtifactRequest::_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.ArtifactKey artifact_key = 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::ArtifactKey::_InternalParse; - object = msg->mutable_artifact_key(); - 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.artifact.ArtifactSpec spec = 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::artifact::ArtifactSpec::_InternalParse; - object = msg->mutable_spec(); - 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; - } - // string version = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.CreateArtifactRequest.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map partitions = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->partitions_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // string tag = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.CreateArtifactRequest.tag"); - object = msg->mutable_tag(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.artifact.ArtifactSource source = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::ArtifactSource::_InternalParse; - object = msg->mutable_source(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateArtifactRequest::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.artifact.CreateArtifactRequest) - 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.ArtifactKey artifact_key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_key())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } else { - goto handle_unusual; - } - break; - } - - // string version = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.version")); - } else { - goto handle_unusual; - } - break; - } - - // map partitions = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - CreateArtifactRequest_PartitionsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - CreateArtifactRequest_PartitionsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&partitions_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // string tag = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.CreateArtifactRequest.tag")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.ArtifactSource source = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_source())); - } 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.artifact.CreateArtifactRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CreateArtifactRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateArtifactRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_key(this), output); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(this), output); - } - - // string version = 3; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->version(), output); - } - - // map partitions = 4; - if (!this->partitions().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->partitions().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->partitions().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->partitions().begin(); - it != this->partitions().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(partitions_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->partitions().begin(); - it != this->partitions().end(); ++it) { - entry.reset(partitions_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // string tag = 5; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->tag(), output); - } - - // .flyteidl.artifact.ArtifactSource source = 6; - if (this->has_source()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::source(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CreateArtifactRequest) -} - -::google::protobuf::uint8* CreateArtifactRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_key(this), target); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(this), target); - } - - // string version = 3; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->version(), target); - } - - // map partitions = 4; - if (!this->partitions().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry.value"); - } - }; - - if (false && - this->partitions().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->partitions().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->partitions().begin(); - it != this->partitions().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(partitions_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->partitions().begin(); - it != this->partitions().end(); ++it) { - entry.reset(partitions_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // string tag = 5; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.CreateArtifactRequest.tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->tag(), target); - } - - // .flyteidl.artifact.ArtifactSource source = 6; - if (this->has_source()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::source(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.artifact.CreateArtifactRequest) - return target; -} - -size_t CreateArtifactRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CreateArtifactRequest) - 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; - - // map partitions = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->partitions_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->partitions().begin(); - it != this->partitions().end(); ++it) { - entry.reset(partitions_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string version = 3; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // string tag = 5; - if (this->tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag()); - } - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_key_); - } - - // .flyteidl.artifact.ArtifactSpec spec = 2; - if (this->has_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *spec_); - } - - // .flyteidl.artifact.ArtifactSource source = 6; - if (this->has_source()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *source_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CreateArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateArtifactRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CreateArtifactRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CreateArtifactRequest) - MergeFrom(*source); - } -} - -void CreateArtifactRequest::MergeFrom(const CreateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CreateArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partitions_.MergeFrom(from.partitions_); - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - if (from.has_artifact_key()) { - mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); - } - if (from.has_spec()) { - mutable_spec()->::flyteidl::artifact::ArtifactSpec::MergeFrom(from.spec()); - } - if (from.has_source()) { - mutable_source()->::flyteidl::artifact::ArtifactSource::MergeFrom(from.source()); - } -} - -void CreateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CreateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateArtifactRequest::CopyFrom(const CreateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CreateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateArtifactRequest::IsInitialized() const { - return true; -} - -void CreateArtifactRequest::Swap(CreateArtifactRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateArtifactRequest::InternalSwap(CreateArtifactRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partitions_.Swap(&other->partitions_); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - tag_.Swap(&other->tag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(artifact_key_, other->artifact_key_); - swap(spec_, other->spec_); - swap(source_, other->source_); -} - -::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactSource::InitAsDefaultInstance() { - ::flyteidl::artifact::_ArtifactSource_default_instance_._instance.get_mutable()->workflow_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSource_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class ArtifactSource::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution(const ArtifactSource* msg); - static const ::flyteidl::core::Identifier& task_id(const ArtifactSource* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ArtifactSource::HasBitSetters::workflow_execution(const ArtifactSource* msg) { - return *msg->workflow_execution_; -} -const ::flyteidl::core::Identifier& -ArtifactSource::HasBitSetters::task_id(const ArtifactSource* msg) { - return *msg->task_id_; -} -void ArtifactSource::clear_workflow_execution() { - if (GetArenaNoVirtual() == nullptr && workflow_execution_ != nullptr) { - delete workflow_execution_; - } - workflow_execution_ = nullptr; -} -void ArtifactSource::clear_task_id() { - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactSource::kWorkflowExecutionFieldNumber; -const int ArtifactSource::kNodeIdFieldNumber; -const int ArtifactSource::kTaskIdFieldNumber; -const int ArtifactSource::kRetryAttemptFieldNumber; -const int ArtifactSource::kPrincipalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactSource::ArtifactSource() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactSource) -} -ArtifactSource::ArtifactSource(const ArtifactSource& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.node_id().size() > 0) { - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_workflow_execution()) { - workflow_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.workflow_execution_); - } else { - workflow_execution_ = nullptr; - } - if (from.has_task_id()) { - task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); - } else { - task_id_ = nullptr; - } - retry_attempt_ = from.retry_attempt_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactSource) -} - -void ArtifactSource::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&workflow_execution_, 0, static_cast( - reinterpret_cast(&retry_attempt_) - - reinterpret_cast(&workflow_execution_)) + sizeof(retry_attempt_)); -} - -ArtifactSource::~ArtifactSource() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactSource) - SharedDtor(); -} - -void ArtifactSource::SharedDtor() { - node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete workflow_execution_; - if (this != internal_default_instance()) delete task_id_; -} - -void ArtifactSource::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactSource& ArtifactSource::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactSource_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactSource::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactSource) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && workflow_execution_ != nullptr) { - delete workflow_execution_; - } - workflow_execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; - retry_attempt_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactSource::_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.WorkflowExecutionIdentifier workflow_execution = 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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_workflow_execution(); - 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; - } - // string node_id = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSource.node_id"); - object = msg->mutable_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Identifier task_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) 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_task_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; - } - // uint32 retry_attempt = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string principal = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSource.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactSource::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.artifact.ArtifactSource) - 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.WorkflowExecutionIdentifier workflow_execution = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_execution())); - } else { - goto handle_unusual; - } - break; - } - - // string node_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSource.node_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier task_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 retry_attempt = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retry_attempt_))); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSource.principal")); - } 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.artifact.ArtifactSource) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactSource) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactSource::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactSource) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - if (this->has_workflow_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow_execution(this), output); - } - - // string node_id = 2; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSource.node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->node_id(), output); - } - - // .flyteidl.core.Identifier task_id = 3; - if (this->has_task_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::task_id(this), output); - } - - // uint32 retry_attempt = 4; - if (this->retry_attempt() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->retry_attempt(), output); - } - - // string principal = 5; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSource.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->principal(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactSource) -} - -::google::protobuf::uint8* ArtifactSource::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactSource) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - if (this->has_workflow_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow_execution(this), target); - } - - // string node_id = 2; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSource.node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->node_id(), target); - } - - // .flyteidl.core.Identifier task_id = 3; - if (this->has_task_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::task_id(this), target); - } - - // uint32 retry_attempt = 4; - if (this->retry_attempt() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->retry_attempt(), target); - } - - // string principal = 5; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSource.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->principal(), 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.artifact.ArtifactSource) - return target; -} - -size_t ArtifactSource::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactSource) - 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; - - // string node_id = 2; - if (this->node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->node_id()); - } - - // string principal = 5; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - if (this->has_workflow_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_execution_); - } - - // .flyteidl.core.Identifier task_id = 3; - if (this->has_task_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_id_); - } - - // uint32 retry_attempt = 4; - if (this->retry_attempt() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retry_attempt()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactSource::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactSource) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactSource* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactSource) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactSource) - MergeFrom(*source); - } -} - -void ArtifactSource::MergeFrom(const ArtifactSource& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactSource) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.node_id().size() > 0) { - - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_workflow_execution()) { - mutable_workflow_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_execution()); - } - if (from.has_task_id()) { - mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); - } - if (from.retry_attempt() != 0) { - set_retry_attempt(from.retry_attempt()); - } -} - -void ArtifactSource::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactSource::CopyFrom(const ArtifactSource& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactSource) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactSource::IsInitialized() const { - return true; -} - -void ArtifactSource::Swap(ArtifactSource* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactSource::InternalSwap(ArtifactSource* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(workflow_execution_, other->workflow_execution_); - swap(task_id_, other->task_id_); - swap(retry_attempt_, other->retry_attempt_); -} - -::google::protobuf::Metadata ArtifactSource::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactSpec::InitAsDefaultInstance() { - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::artifact::_ArtifactSpec_default_instance_._instance.get_mutable()->user_metadata_ = const_cast< ::google::protobuf::Any*>( - ::google::protobuf::Any::internal_default_instance()); -} -class ArtifactSpec::HasBitSetters { - public: - static const ::flyteidl::core::Literal& value(const ArtifactSpec* msg); - static const ::flyteidl::core::LiteralType& type(const ArtifactSpec* msg); - static const ::google::protobuf::Any& user_metadata(const ArtifactSpec* msg); -}; - -const ::flyteidl::core::Literal& -ArtifactSpec::HasBitSetters::value(const ArtifactSpec* msg) { - return *msg->value_; -} -const ::flyteidl::core::LiteralType& -ArtifactSpec::HasBitSetters::type(const ArtifactSpec* msg) { - return *msg->type_; -} -const ::google::protobuf::Any& -ArtifactSpec::HasBitSetters::user_metadata(const ArtifactSpec* msg) { - return *msg->user_metadata_; -} -void ArtifactSpec::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -void ArtifactSpec::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -void ArtifactSpec::clear_user_metadata() { - if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { - delete user_metadata_; - } - user_metadata_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactSpec::kValueFieldNumber; -const int ArtifactSpec::kTypeFieldNumber; -const int ArtifactSpec::kShortDescriptionFieldNumber; -const int ArtifactSpec::kUserMetadataFieldNumber; -const int ArtifactSpec::kMetadataTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactSpec::ArtifactSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactSpec) -} -ArtifactSpec::ArtifactSpec(const ArtifactSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.short_description().size() > 0) { - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.metadata_type().size() > 0) { - metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); - } - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - if (from.has_user_metadata()) { - user_metadata_ = new ::google::protobuf::Any(*from.user_metadata_); - } else { - user_metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactSpec) -} - -void ArtifactSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); - short_description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&user_metadata_) - - reinterpret_cast(&value_)) + sizeof(user_metadata_)); -} - -ArtifactSpec::~ArtifactSpec() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactSpec) - SharedDtor(); -} - -void ArtifactSpec::SharedDtor() { - short_description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete type_; - if (this != internal_default_instance()) delete user_metadata_; -} - -void ArtifactSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactSpec& ArtifactSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactSpec_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - if (GetArenaNoVirtual() == nullptr && user_metadata_ != nullptr) { - delete user_metadata_; - } - user_metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactSpec::_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.Literal value = 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::Literal::_InternalParse; - object = msg->mutable_value(); - 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.core.LiteralType type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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; - } - // string short_description = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.short_description"); - object = msg->mutable_short_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Any user_metadata = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Any::_InternalParse; - object = msg->mutable_user_metadata(); - 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; - } - // string metadata_type = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.ArtifactSpec.metadata_type"); - object = msg->mutable_metadata_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactSpec::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.artifact.ArtifactSpec) - 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.Literal value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } else { - goto handle_unusual; - } - break; - } - - // string short_description = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_short_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSpec.short_description")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Any user_metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_user_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // string metadata_type = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_metadata_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.ArtifactSpec.metadata_type")); - } 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.artifact.ArtifactSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::value(this), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(this), output); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.short_description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->short_description(), output); - } - - // .google.protobuf.Any user_metadata = 4; - if (this->has_user_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::user_metadata(this), output); - } - - // string metadata_type = 5; - if (this->metadata_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.metadata_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->metadata_type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactSpec) -} - -::google::protobuf::uint8* ArtifactSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::value(this), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(this), target); - } - - // string short_description = 3; - if (this->short_description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->short_description().data(), static_cast(this->short_description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.short_description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->short_description(), target); - } - - // .google.protobuf.Any user_metadata = 4; - if (this->has_user_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::user_metadata(this), target); - } - - // string metadata_type = 5; - if (this->metadata_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->metadata_type().data(), static_cast(this->metadata_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.ArtifactSpec.metadata_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->metadata_type(), 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.artifact.ArtifactSpec) - return target; -} - -size_t ArtifactSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactSpec) - 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; - - // string short_description = 3; - if (this->short_description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->short_description()); - } - - // string metadata_type = 5; - if (this->metadata_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->metadata_type()); - } - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - // .google.protobuf.Any user_metadata = 4; - if (this->has_user_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *user_metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactSpec) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactSpec) - MergeFrom(*source); - } -} - -void ArtifactSpec::MergeFrom(const ArtifactSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.short_description().size() > 0) { - - short_description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.short_description_); - } - if (from.metadata_type().size() > 0) { - - metadata_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.metadata_type_); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } - if (from.has_user_metadata()) { - mutable_user_metadata()->::google::protobuf::Any::MergeFrom(from.user_metadata()); - } -} - -void ArtifactSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactSpec::CopyFrom(const ArtifactSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactSpec::IsInitialized() const { - return true; -} - -void ArtifactSpec::Swap(ArtifactSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactSpec::InternalSwap(ArtifactSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - short_description_.Swap(&other->short_description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - metadata_type_.Swap(&other->metadata_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); - swap(type_, other->type_); - swap(user_metadata_, other->user_metadata_); -} - -::google::protobuf::Metadata ArtifactSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateArtifactResponse::InitAsDefaultInstance() { - ::flyteidl::artifact::_CreateArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::flyteidl::artifact::Artifact*>( - ::flyteidl::artifact::Artifact::internal_default_instance()); -} -class CreateArtifactResponse::HasBitSetters { - public: - static const ::flyteidl::artifact::Artifact& artifact(const CreateArtifactResponse* msg); -}; - -const ::flyteidl::artifact::Artifact& -CreateArtifactResponse::HasBitSetters::artifact(const CreateArtifactResponse* msg) { - return *msg->artifact_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateArtifactResponse::kArtifactFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateArtifactResponse::CreateArtifactResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CreateArtifactResponse) -} -CreateArtifactResponse::CreateArtifactResponse(const CreateArtifactResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact()) { - artifact_ = new ::flyteidl::artifact::Artifact(*from.artifact_); - } else { - artifact_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CreateArtifactResponse) -} - -void CreateArtifactResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - artifact_ = nullptr; -} - -CreateArtifactResponse::~CreateArtifactResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CreateArtifactResponse) - SharedDtor(); -} - -void CreateArtifactResponse::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; -} - -void CreateArtifactResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateArtifactResponse& CreateArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void CreateArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateArtifactResponse::_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.artifact.Artifact artifact = 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::artifact::Artifact::_InternalParse; - object = msg->mutable_artifact(); - 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 CreateArtifactResponse::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.artifact.CreateArtifactResponse) - 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.artifact.Artifact artifact = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); - } 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.artifact.CreateArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CreateArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CreateArtifactResponse) -} - -::google::protobuf::uint8* CreateArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact(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.artifact.CreateArtifactResponse) - return target; -} - -size_t CreateArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CreateArtifactResponse) - 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.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CreateArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CreateArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CreateArtifactResponse) - MergeFrom(*source); - } -} - -void CreateArtifactResponse::MergeFrom(const CreateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CreateArtifactResponse) - 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_artifact()) { - mutable_artifact()->::flyteidl::artifact::Artifact::MergeFrom(from.artifact()); - } -} - -void CreateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CreateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateArtifactResponse::CopyFrom(const CreateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CreateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateArtifactResponse::IsInitialized() const { - return true; -} - -void CreateArtifactResponse::Swap(CreateArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateArtifactResponse::InternalSwap(CreateArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); -} - -::google::protobuf::Metadata CreateArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetArtifactRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_GetArtifactRequest_default_instance_._instance.get_mutable()->query_ = const_cast< ::flyteidl::core::ArtifactQuery*>( - ::flyteidl::core::ArtifactQuery::internal_default_instance()); -} -class GetArtifactRequest::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactQuery& query(const GetArtifactRequest* msg); -}; - -const ::flyteidl::core::ArtifactQuery& -GetArtifactRequest::HasBitSetters::query(const GetArtifactRequest* msg) { - return *msg->query_; -} -void GetArtifactRequest::clear_query() { - if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { - delete query_; - } - query_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetArtifactRequest::kQueryFieldNumber; -const int GetArtifactRequest::kDetailsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetArtifactRequest::GetArtifactRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.GetArtifactRequest) -} -GetArtifactRequest::GetArtifactRequest(const GetArtifactRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_query()) { - query_ = new ::flyteidl::core::ArtifactQuery(*from.query_); - } else { - query_ = nullptr; - } - details_ = from.details_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.GetArtifactRequest) -} - -void GetArtifactRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::memset(&query_, 0, static_cast( - reinterpret_cast(&details_) - - reinterpret_cast(&query_)) + sizeof(details_)); -} - -GetArtifactRequest::~GetArtifactRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.GetArtifactRequest) - SharedDtor(); -} - -void GetArtifactRequest::SharedDtor() { - if (this != internal_default_instance()) delete query_; -} - -void GetArtifactRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetArtifactRequest& GetArtifactRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void GetArtifactRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { - delete query_; - } - query_ = nullptr; - details_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetArtifactRequest::_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.ArtifactQuery query = 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::ArtifactQuery::_InternalParse; - object = msg->mutable_query(); - 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; - } - // bool details = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_details(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 GetArtifactRequest::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.artifact.GetArtifactRequest) - 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.ArtifactQuery query = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_query())); - } else { - goto handle_unusual; - } - break; - } - - // bool details = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &details_))); - } 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.artifact.GetArtifactRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.GetArtifactRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetArtifactRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactQuery query = 1; - if (this->has_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::query(this), output); - } - - // bool details = 2; - if (this->details() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->details(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.GetArtifactRequest) -} - -::google::protobuf::uint8* GetArtifactRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactQuery query = 1; - if (this->has_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::query(this), target); - } - - // bool details = 2; - if (this->details() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->details(), 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.artifact.GetArtifactRequest) - return target; -} - -size_t GetArtifactRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.GetArtifactRequest) - 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.ArtifactQuery query = 1; - if (this->has_query()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *query_); - } - - // bool details = 2; - if (this->details() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.GetArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetArtifactRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.GetArtifactRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.GetArtifactRequest) - MergeFrom(*source); - } -} - -void GetArtifactRequest::MergeFrom(const GetArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.GetArtifactRequest) - 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_query()) { - mutable_query()->::flyteidl::core::ArtifactQuery::MergeFrom(from.query()); - } - if (from.details() != 0) { - set_details(from.details()); - } -} - -void GetArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.GetArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetArtifactRequest::CopyFrom(const GetArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.GetArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetArtifactRequest::IsInitialized() const { - return true; -} - -void GetArtifactRequest::Swap(GetArtifactRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetArtifactRequest::InternalSwap(GetArtifactRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(query_, other->query_); - swap(details_, other->details_); -} - -::google::protobuf::Metadata GetArtifactRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetArtifactResponse::InitAsDefaultInstance() { - ::flyteidl::artifact::_GetArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::flyteidl::artifact::Artifact*>( - ::flyteidl::artifact::Artifact::internal_default_instance()); -} -class GetArtifactResponse::HasBitSetters { - public: - static const ::flyteidl::artifact::Artifact& artifact(const GetArtifactResponse* msg); -}; - -const ::flyteidl::artifact::Artifact& -GetArtifactResponse::HasBitSetters::artifact(const GetArtifactResponse* msg) { - return *msg->artifact_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetArtifactResponse::kArtifactFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetArtifactResponse::GetArtifactResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.GetArtifactResponse) -} -GetArtifactResponse::GetArtifactResponse(const GetArtifactResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact()) { - artifact_ = new ::flyteidl::artifact::Artifact(*from.artifact_); - } else { - artifact_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.GetArtifactResponse) -} - -void GetArtifactResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - artifact_ = nullptr; -} - -GetArtifactResponse::~GetArtifactResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.GetArtifactResponse) - SharedDtor(); -} - -void GetArtifactResponse::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; -} - -void GetArtifactResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetArtifactResponse& GetArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void GetArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetArtifactResponse::_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.artifact.Artifact artifact = 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::artifact::Artifact::_InternalParse; - object = msg->mutable_artifact(); - 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 GetArtifactResponse::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.artifact.GetArtifactResponse) - 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.artifact.Artifact artifact = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); - } 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.artifact.GetArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.GetArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.GetArtifactResponse) -} - -::google::protobuf::uint8* GetArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact(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.artifact.GetArtifactResponse) - return target; -} - -size_t GetArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.GetArtifactResponse) - 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.artifact.Artifact artifact = 1; - if (this->has_artifact()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.GetArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.GetArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.GetArtifactResponse) - MergeFrom(*source); - } -} - -void GetArtifactResponse::MergeFrom(const GetArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.GetArtifactResponse) - 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_artifact()) { - mutable_artifact()->::flyteidl::artifact::Artifact::MergeFrom(from.artifact()); - } -} - -void GetArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.GetArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetArtifactResponse::CopyFrom(const GetArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.GetArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetArtifactResponse::IsInitialized() const { - return true; -} - -void GetArtifactResponse::Swap(GetArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetArtifactResponse::InternalSwap(GetArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); -} - -::google::protobuf::Metadata GetArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SearchOptions::InitAsDefaultInstance() { -} -class SearchOptions::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchOptions::kStrictPartitionsFieldNumber; -const int SearchOptions::kLatestByKeyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchOptions::SearchOptions() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchOptions) -} -SearchOptions::SearchOptions(const SearchOptions& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&strict_partitions_, &from.strict_partitions_, - static_cast(reinterpret_cast(&latest_by_key_) - - reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchOptions) -} - -void SearchOptions::SharedCtor() { - ::memset(&strict_partitions_, 0, static_cast( - reinterpret_cast(&latest_by_key_) - - reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); -} - -SearchOptions::~SearchOptions() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchOptions) - SharedDtor(); -} - -void SearchOptions::SharedDtor() { -} - -void SearchOptions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchOptions& SearchOptions::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchOptions_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void SearchOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&strict_partitions_, 0, static_cast( - reinterpret_cast(&latest_by_key_) - - reinterpret_cast(&strict_partitions_)) + sizeof(latest_by_key_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchOptions::_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) { - // bool strict_partitions = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_strict_partitions(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool latest_by_key = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_latest_by_key(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchOptions::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.artifact.SearchOptions) - 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)) { - // bool strict_partitions = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &strict_partitions_))); - } else { - goto handle_unusual; - } - break; - } - - // bool latest_by_key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &latest_by_key_))); - } 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.artifact.SearchOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchOptions) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool strict_partitions = 1; - if (this->strict_partitions() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->strict_partitions(), output); - } - - // bool latest_by_key = 2; - if (this->latest_by_key() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->latest_by_key(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchOptions) -} - -::google::protobuf::uint8* SearchOptions::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool strict_partitions = 1; - if (this->strict_partitions() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->strict_partitions(), target); - } - - // bool latest_by_key = 2; - if (this->latest_by_key() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->latest_by_key(), 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.artifact.SearchOptions) - return target; -} - -size_t SearchOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchOptions) - 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; - - // bool strict_partitions = 1; - if (this->strict_partitions() != 0) { - total_size += 1 + 1; - } - - // bool latest_by_key = 2; - if (this->latest_by_key() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchOptions::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchOptions) - GOOGLE_DCHECK_NE(&from, this); - const SearchOptions* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchOptions) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchOptions) - MergeFrom(*source); - } -} - -void SearchOptions::MergeFrom(const SearchOptions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchOptions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.strict_partitions() != 0) { - set_strict_partitions(from.strict_partitions()); - } - if (from.latest_by_key() != 0) { - set_latest_by_key(from.latest_by_key()); - } -} - -void SearchOptions::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchOptions::CopyFrom(const SearchOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchOptions::IsInitialized() const { - return true; -} - -void SearchOptions::Swap(SearchOptions* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchOptions::InternalSwap(SearchOptions* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(strict_partitions_, other->strict_partitions_); - swap(latest_by_key_, other->latest_by_key_); -} - -::google::protobuf::Metadata SearchOptions::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SearchArtifactsRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( - ::flyteidl::core::ArtifactKey::internal_default_instance()); - ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->partitions_ = const_cast< ::flyteidl::core::Partitions*>( - ::flyteidl::core::Partitions::internal_default_instance()); - ::flyteidl::artifact::_SearchArtifactsRequest_default_instance_._instance.get_mutable()->options_ = const_cast< ::flyteidl::artifact::SearchOptions*>( - ::flyteidl::artifact::SearchOptions::internal_default_instance()); -} -class SearchArtifactsRequest::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const SearchArtifactsRequest* msg); - static const ::flyteidl::core::Partitions& partitions(const SearchArtifactsRequest* msg); - static const ::flyteidl::artifact::SearchOptions& options(const SearchArtifactsRequest* msg); -}; - -const ::flyteidl::core::ArtifactKey& -SearchArtifactsRequest::HasBitSetters::artifact_key(const SearchArtifactsRequest* msg) { - return *msg->artifact_key_; -} -const ::flyteidl::core::Partitions& -SearchArtifactsRequest::HasBitSetters::partitions(const SearchArtifactsRequest* msg) { - return *msg->partitions_; -} -const ::flyteidl::artifact::SearchOptions& -SearchArtifactsRequest::HasBitSetters::options(const SearchArtifactsRequest* msg) { - return *msg->options_; -} -void SearchArtifactsRequest::clear_artifact_key() { - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; -} -void SearchArtifactsRequest::clear_partitions() { - if (GetArenaNoVirtual() == nullptr && partitions_ != nullptr) { - delete partitions_; - } - partitions_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchArtifactsRequest::kArtifactKeyFieldNumber; -const int SearchArtifactsRequest::kPartitionsFieldNumber; -const int SearchArtifactsRequest::kPrincipalFieldNumber; -const int SearchArtifactsRequest::kVersionFieldNumber; -const int SearchArtifactsRequest::kOptionsFieldNumber; -const int SearchArtifactsRequest::kTokenFieldNumber; -const int SearchArtifactsRequest::kLimitFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchArtifactsRequest::SearchArtifactsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsRequest) -} -SearchArtifactsRequest::SearchArtifactsRequest(const SearchArtifactsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.has_artifact_key()) { - artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); - } else { - artifact_key_ = nullptr; - } - if (from.has_partitions()) { - partitions_ = new ::flyteidl::core::Partitions(*from.partitions_); - } else { - partitions_ = nullptr; - } - if (from.has_options()) { - options_ = new ::flyteidl::artifact::SearchOptions(*from.options_); - } else { - options_ = nullptr; - } - limit_ = from.limit_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsRequest) -} - -void SearchArtifactsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&artifact_key_, 0, static_cast( - reinterpret_cast(&limit_) - - reinterpret_cast(&artifact_key_)) + sizeof(limit_)); -} - -SearchArtifactsRequest::~SearchArtifactsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsRequest) - SharedDtor(); -} - -void SearchArtifactsRequest::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete artifact_key_; - if (this != internal_default_instance()) delete partitions_; - if (this != internal_default_instance()) delete options_; -} - -void SearchArtifactsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchArtifactsRequest& SearchArtifactsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void SearchArtifactsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && partitions_ != nullptr) { - delete partitions_; - } - partitions_ = nullptr; - if (GetArenaNoVirtual() == nullptr && options_ != nullptr) { - delete options_; - } - options_ = nullptr; - limit_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchArtifactsRequest::_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.ArtifactKey artifact_key = 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::ArtifactKey::_InternalParse; - object = msg->mutable_artifact_key(); - 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.core.Partitions partitions = 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::core::Partitions::_InternalParse; - object = msg->mutable_partitions(); - 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; - } - // string principal = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string version = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.artifact.SearchOptions options = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::SearchOptions::_InternalParse; - object = msg->mutable_options(); - 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; - } - // string token = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsRequest.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int32 limit = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchArtifactsRequest::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.artifact.SearchArtifactsRequest) - 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.ArtifactKey artifact_key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_key())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Partitions partitions = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_partitions())); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsRequest.principal")); - } else { - goto handle_unusual; - } - break; - } - - // string version = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsRequest.version")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.SearchOptions options = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_options())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsRequest.token")); - } else { - goto handle_unusual; - } - break; - } - - // int32 limit = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &limit_))); - } 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.artifact.SearchArtifactsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchArtifactsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_key(this), output); - } - - // .flyteidl.core.Partitions partitions = 2; - if (this->has_partitions()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::partitions(this), output); - } - - // string principal = 3; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->principal(), output); - } - - // string version = 4; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->version(), output); - } - - // .flyteidl.artifact.SearchOptions options = 5; - if (this->has_options()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::options(this), output); - } - - // string token = 6; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->token(), output); - } - - // int32 limit = 7; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->limit(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsRequest) -} - -::google::protobuf::uint8* SearchArtifactsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_key(this), target); - } - - // .flyteidl.core.Partitions partitions = 2; - if (this->has_partitions()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::partitions(this), target); - } - - // string principal = 3; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->principal(), target); - } - - // string version = 4; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->version(), target); - } - - // .flyteidl.artifact.SearchOptions options = 5; - if (this->has_options()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::options(this), target); - } - - // string token = 6; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsRequest.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->token(), target); - } - - // int32 limit = 7; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->limit(), 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.artifact.SearchArtifactsRequest) - return target; -} - -size_t SearchArtifactsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsRequest) - 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; - - // string principal = 3; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // string version = 4; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // string token = 6; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_key_); - } - - // .flyteidl.core.Partitions partitions = 2; - if (this->has_partitions()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *partitions_); - } - - // .flyteidl.artifact.SearchOptions options = 5; - if (this->has_options()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *options_); - } - - // int32 limit = 7; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) - GOOGLE_DCHECK_NE(&from, this); - const SearchArtifactsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsRequest) - MergeFrom(*source); - } -} - -void SearchArtifactsRequest::MergeFrom(const SearchArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.has_artifact_key()) { - mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); - } - if (from.has_partitions()) { - mutable_partitions()->::flyteidl::core::Partitions::MergeFrom(from.partitions()); - } - if (from.has_options()) { - mutable_options()->::flyteidl::artifact::SearchOptions::MergeFrom(from.options()); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } -} - -void SearchArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchArtifactsRequest::CopyFrom(const SearchArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchArtifactsRequest::IsInitialized() const { - return true; -} - -void SearchArtifactsRequest::Swap(SearchArtifactsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchArtifactsRequest::InternalSwap(SearchArtifactsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(artifact_key_, other->artifact_key_); - swap(partitions_, other->partitions_); - swap(options_, other->options_); - swap(limit_, other->limit_); -} - -::google::protobuf::Metadata SearchArtifactsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SearchArtifactsResponse::InitAsDefaultInstance() { -} -class SearchArtifactsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SearchArtifactsResponse::kArtifactsFieldNumber; -const int SearchArtifactsResponse::kTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SearchArtifactsResponse::SearchArtifactsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.SearchArtifactsResponse) -} -SearchArtifactsResponse::SearchArtifactsResponse(const SearchArtifactsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifacts_(from.artifacts_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.SearchArtifactsResponse) -} - -void SearchArtifactsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -SearchArtifactsResponse::~SearchArtifactsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.SearchArtifactsResponse) - SharedDtor(); -} - -void SearchArtifactsResponse::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SearchArtifactsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SearchArtifactsResponse& SearchArtifactsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SearchArtifactsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void SearchArtifactsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.SearchArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifacts_.Clear(); - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SearchArtifactsResponse::_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) { - // repeated .flyteidl.artifact.Artifact artifacts = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::Artifact::_InternalParse; - object = msg->add_artifacts(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.SearchArtifactsResponse.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SearchArtifactsResponse::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.artifact.SearchArtifactsResponse) - 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)) { - // repeated .flyteidl.artifact.Artifact artifacts = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifacts())); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.SearchArtifactsResponse.token")); - } 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.artifact.SearchArtifactsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.SearchArtifactsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SearchArtifactsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.SearchArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->artifacts(static_cast(i)), - output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsResponse.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.SearchArtifactsResponse) -} - -::google::protobuf::uint8* SearchArtifactsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.SearchArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->artifacts(static_cast(i)), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.SearchArtifactsResponse.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), 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.artifact.SearchArtifactsResponse) - return target; -} - -size_t SearchArtifactsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.SearchArtifactsResponse) - 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; - - // repeated .flyteidl.artifact.Artifact artifacts = 1; - { - unsigned int count = static_cast(this->artifacts_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifacts(static_cast(i))); - } - } - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SearchArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) - GOOGLE_DCHECK_NE(&from, this); - const SearchArtifactsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.SearchArtifactsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.SearchArtifactsResponse) - MergeFrom(*source); - } -} - -void SearchArtifactsResponse::MergeFrom(const SearchArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.SearchArtifactsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifacts_.MergeFrom(from.artifacts_); - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } -} - -void SearchArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SearchArtifactsResponse::CopyFrom(const SearchArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.SearchArtifactsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SearchArtifactsResponse::IsInitialized() const { - return true; -} - -void SearchArtifactsResponse::Swap(SearchArtifactsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void SearchArtifactsResponse::InternalSwap(SearchArtifactsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata SearchArtifactsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void FindByWorkflowExecRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_FindByWorkflowExecRequest_default_instance_._instance.get_mutable()->exec_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class FindByWorkflowExecRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& exec_id(const FindByWorkflowExecRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -FindByWorkflowExecRequest::HasBitSetters::exec_id(const FindByWorkflowExecRequest* msg) { - return *msg->exec_id_; -} -void FindByWorkflowExecRequest::clear_exec_id() { - if (GetArenaNoVirtual() == nullptr && exec_id_ != nullptr) { - delete exec_id_; - } - exec_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FindByWorkflowExecRequest::kExecIdFieldNumber; -const int FindByWorkflowExecRequest::kDirectionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FindByWorkflowExecRequest::FindByWorkflowExecRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.FindByWorkflowExecRequest) -} -FindByWorkflowExecRequest::FindByWorkflowExecRequest(const FindByWorkflowExecRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_exec_id()) { - exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.exec_id_); - } else { - exec_id_ = nullptr; - } - direction_ = from.direction_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.FindByWorkflowExecRequest) -} - -void FindByWorkflowExecRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::memset(&exec_id_, 0, static_cast( - reinterpret_cast(&direction_) - - reinterpret_cast(&exec_id_)) + sizeof(direction_)); -} - -FindByWorkflowExecRequest::~FindByWorkflowExecRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.FindByWorkflowExecRequest) - SharedDtor(); -} - -void FindByWorkflowExecRequest::SharedDtor() { - if (this != internal_default_instance()) delete exec_id_; -} - -void FindByWorkflowExecRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FindByWorkflowExecRequest& FindByWorkflowExecRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_FindByWorkflowExecRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void FindByWorkflowExecRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.FindByWorkflowExecRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && exec_id_ != nullptr) { - delete exec_id_; - } - exec_id_ = nullptr; - direction_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FindByWorkflowExecRequest::_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.WorkflowExecutionIdentifier exec_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_exec_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; - } - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_direction(static_cast<::flyteidl::artifact::FindByWorkflowExecRequest_Direction>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 FindByWorkflowExecRequest::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.artifact.FindByWorkflowExecRequest) - 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.WorkflowExecutionIdentifier exec_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_exec_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_direction(static_cast< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction >(value)); - } 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.artifact.FindByWorkflowExecRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.FindByWorkflowExecRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FindByWorkflowExecRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.FindByWorkflowExecRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - if (this->has_exec_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::exec_id(this), output); - } - - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - if (this->direction() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->direction(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.FindByWorkflowExecRequest) -} - -::google::protobuf::uint8* FindByWorkflowExecRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.FindByWorkflowExecRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - if (this->has_exec_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::exec_id(this), target); - } - - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - if (this->direction() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->direction(), 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.artifact.FindByWorkflowExecRequest) - return target; -} - -size_t FindByWorkflowExecRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.FindByWorkflowExecRequest) - 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.WorkflowExecutionIdentifier exec_id = 1; - if (this->has_exec_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *exec_id_); - } - - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - if (this->direction() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->direction()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FindByWorkflowExecRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.FindByWorkflowExecRequest) - GOOGLE_DCHECK_NE(&from, this); - const FindByWorkflowExecRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.FindByWorkflowExecRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.FindByWorkflowExecRequest) - MergeFrom(*source); - } -} - -void FindByWorkflowExecRequest::MergeFrom(const FindByWorkflowExecRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.FindByWorkflowExecRequest) - 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_exec_id()) { - mutable_exec_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.exec_id()); - } - if (from.direction() != 0) { - set_direction(from.direction()); - } -} - -void FindByWorkflowExecRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.FindByWorkflowExecRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FindByWorkflowExecRequest::CopyFrom(const FindByWorkflowExecRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.FindByWorkflowExecRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FindByWorkflowExecRequest::IsInitialized() const { - return true; -} - -void FindByWorkflowExecRequest::Swap(FindByWorkflowExecRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void FindByWorkflowExecRequest::InternalSwap(FindByWorkflowExecRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(exec_id_, other->exec_id_); - swap(direction_, other->direction_); -} - -::google::protobuf::Metadata FindByWorkflowExecRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AddTagRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_AddTagRequest_default_instance_._instance.get_mutable()->artifact_id_ = const_cast< ::flyteidl::core::ArtifactID*>( - ::flyteidl::core::ArtifactID::internal_default_instance()); -} -class AddTagRequest::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactID& artifact_id(const AddTagRequest* msg); -}; - -const ::flyteidl::core::ArtifactID& -AddTagRequest::HasBitSetters::artifact_id(const AddTagRequest* msg) { - return *msg->artifact_id_; -} -void AddTagRequest::clear_artifact_id() { - if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { - delete artifact_id_; - } - artifact_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AddTagRequest::kArtifactIdFieldNumber; -const int AddTagRequest::kValueFieldNumber; -const int AddTagRequest::kOverwriteFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AddTagRequest::AddTagRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.AddTagRequest) -} -AddTagRequest::AddTagRequest(const AddTagRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.has_artifact_id()) { - artifact_id_ = new ::flyteidl::core::ArtifactID(*from.artifact_id_); - } else { - artifact_id_ = nullptr; - } - overwrite_ = from.overwrite_; - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.AddTagRequest) -} - -void AddTagRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&artifact_id_, 0, static_cast( - reinterpret_cast(&overwrite_) - - reinterpret_cast(&artifact_id_)) + sizeof(overwrite_)); -} - -AddTagRequest::~AddTagRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.AddTagRequest) - SharedDtor(); -} - -void AddTagRequest::SharedDtor() { - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete artifact_id_; -} - -void AddTagRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AddTagRequest& AddTagRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AddTagRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void AddTagRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && artifact_id_ != nullptr) { - delete artifact_id_; - } - artifact_id_ = nullptr; - overwrite_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AddTagRequest::_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.ArtifactID artifact_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::ArtifactID::_InternalParse; - object = msg->mutable_artifact_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; - } - // string value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.artifact.AddTagRequest.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool overwrite = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_overwrite(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AddTagRequest::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.artifact.AddTagRequest) - 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.ArtifactID artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_id())); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.artifact.AddTagRequest.value")); - } else { - goto handle_unusual; - } - break; - } - - // bool overwrite = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &overwrite_))); - } 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.artifact.AddTagRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.AddTagRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AddTagRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_id(this), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.AddTagRequest.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - // bool overwrite = 3; - if (this->overwrite() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->overwrite(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.AddTagRequest) -} - -::google::protobuf::uint8* AddTagRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_id(this), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.artifact.AddTagRequest.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), target); - } - - // bool overwrite = 3; - if (this->overwrite() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->overwrite(), 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.artifact.AddTagRequest) - return target; -} - -size_t AddTagRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.AddTagRequest) - 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; - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (this->has_artifact_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_id_); - } - - // bool overwrite = 3; - if (this->overwrite() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AddTagRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.AddTagRequest) - GOOGLE_DCHECK_NE(&from, this); - const AddTagRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.AddTagRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.AddTagRequest) - MergeFrom(*source); - } -} - -void AddTagRequest::MergeFrom(const AddTagRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.AddTagRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.has_artifact_id()) { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - } - if (from.overwrite() != 0) { - set_overwrite(from.overwrite()); - } -} - -void AddTagRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.AddTagRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddTagRequest::CopyFrom(const AddTagRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.AddTagRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddTagRequest::IsInitialized() const { - return true; -} - -void AddTagRequest::Swap(AddTagRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void AddTagRequest::InternalSwap(AddTagRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(artifact_id_, other->artifact_id_); - swap(overwrite_, other->overwrite_); -} - -::google::protobuf::Metadata AddTagRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AddTagResponse::InitAsDefaultInstance() { -} -class AddTagResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AddTagResponse::AddTagResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.AddTagResponse) -} -AddTagResponse::AddTagResponse(const AddTagResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.AddTagResponse) -} - -void AddTagResponse::SharedCtor() { -} - -AddTagResponse::~AddTagResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.AddTagResponse) - SharedDtor(); -} - -void AddTagResponse::SharedDtor() { -} - -void AddTagResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AddTagResponse& AddTagResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AddTagResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void AddTagResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AddTagResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AddTagResponse::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.artifact.AddTagResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.AddTagResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.AddTagResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AddTagResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.AddTagResponse) -} - -::google::protobuf::uint8* AddTagResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.artifact.AddTagResponse) - return target; -} - -size_t AddTagResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.AddTagResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AddTagResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.AddTagResponse) - GOOGLE_DCHECK_NE(&from, this); - const AddTagResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.AddTagResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.AddTagResponse) - MergeFrom(*source); - } -} - -void AddTagResponse::MergeFrom(const AddTagResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.AddTagResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void AddTagResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.AddTagResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddTagResponse::CopyFrom(const AddTagResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.AddTagResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddTagResponse::IsInitialized() const { - return true; -} - -void AddTagResponse::Swap(AddTagResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void AddTagResponse::InternalSwap(AddTagResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata AddTagResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateTriggerRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_CreateTriggerRequest_default_instance_._instance.get_mutable()->trigger_launch_plan_ = const_cast< ::flyteidl::admin::LaunchPlan*>( - ::flyteidl::admin::LaunchPlan::internal_default_instance()); -} -class CreateTriggerRequest::HasBitSetters { - public: - static const ::flyteidl::admin::LaunchPlan& trigger_launch_plan(const CreateTriggerRequest* msg); -}; - -const ::flyteidl::admin::LaunchPlan& -CreateTriggerRequest::HasBitSetters::trigger_launch_plan(const CreateTriggerRequest* msg) { - return *msg->trigger_launch_plan_; -} -void CreateTriggerRequest::clear_trigger_launch_plan() { - if (GetArenaNoVirtual() == nullptr && trigger_launch_plan_ != nullptr) { - delete trigger_launch_plan_; - } - trigger_launch_plan_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateTriggerRequest::kTriggerLaunchPlanFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateTriggerRequest::CreateTriggerRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CreateTriggerRequest) -} -CreateTriggerRequest::CreateTriggerRequest(const CreateTriggerRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_trigger_launch_plan()) { - trigger_launch_plan_ = new ::flyteidl::admin::LaunchPlan(*from.trigger_launch_plan_); - } else { - trigger_launch_plan_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CreateTriggerRequest) -} - -void CreateTriggerRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - trigger_launch_plan_ = nullptr; -} - -CreateTriggerRequest::~CreateTriggerRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CreateTriggerRequest) - SharedDtor(); -} - -void CreateTriggerRequest::SharedDtor() { - if (this != internal_default_instance()) delete trigger_launch_plan_; -} - -void CreateTriggerRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateTriggerRequest& CreateTriggerRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void CreateTriggerRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CreateTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && trigger_launch_plan_ != nullptr) { - delete trigger_launch_plan_; - } - trigger_launch_plan_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateTriggerRequest::_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.LaunchPlan trigger_launch_plan = 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::LaunchPlan::_InternalParse; - object = msg->mutable_trigger_launch_plan(); - 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 CreateTriggerRequest::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.artifact.CreateTriggerRequest) - 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.LaunchPlan trigger_launch_plan = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_trigger_launch_plan())); - } 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.artifact.CreateTriggerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CreateTriggerRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateTriggerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CreateTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - if (this->has_trigger_launch_plan()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::trigger_launch_plan(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CreateTriggerRequest) -} - -::google::protobuf::uint8* CreateTriggerRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CreateTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - if (this->has_trigger_launch_plan()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::trigger_launch_plan(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.artifact.CreateTriggerRequest) - return target; -} - -size_t CreateTriggerRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CreateTriggerRequest) - 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.admin.LaunchPlan trigger_launch_plan = 1; - if (this->has_trigger_launch_plan()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *trigger_launch_plan_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateTriggerRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CreateTriggerRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateTriggerRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CreateTriggerRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CreateTriggerRequest) - MergeFrom(*source); - } -} - -void CreateTriggerRequest::MergeFrom(const CreateTriggerRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CreateTriggerRequest) - 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_trigger_launch_plan()) { - mutable_trigger_launch_plan()->::flyteidl::admin::LaunchPlan::MergeFrom(from.trigger_launch_plan()); - } -} - -void CreateTriggerRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CreateTriggerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTriggerRequest::CopyFrom(const CreateTriggerRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CreateTriggerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTriggerRequest::IsInitialized() const { - return true; -} - -void CreateTriggerRequest::Swap(CreateTriggerRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateTriggerRequest::InternalSwap(CreateTriggerRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(trigger_launch_plan_, other->trigger_launch_plan_); -} - -::google::protobuf::Metadata CreateTriggerRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateTriggerResponse::InitAsDefaultInstance() { -} -class CreateTriggerResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateTriggerResponse::CreateTriggerResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.CreateTriggerResponse) -} -CreateTriggerResponse::CreateTriggerResponse(const CreateTriggerResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.CreateTriggerResponse) -} - -void CreateTriggerResponse::SharedCtor() { -} - -CreateTriggerResponse::~CreateTriggerResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.CreateTriggerResponse) - SharedDtor(); -} - -void CreateTriggerResponse::SharedDtor() { -} - -void CreateTriggerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateTriggerResponse& CreateTriggerResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void CreateTriggerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.CreateTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateTriggerResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateTriggerResponse::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.artifact.CreateTriggerResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.CreateTriggerResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.CreateTriggerResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateTriggerResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.CreateTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.CreateTriggerResponse) -} - -::google::protobuf::uint8* CreateTriggerResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.CreateTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.artifact.CreateTriggerResponse) - return target; -} - -size_t CreateTriggerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.CreateTriggerResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateTriggerResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.CreateTriggerResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateTriggerResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.CreateTriggerResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.CreateTriggerResponse) - MergeFrom(*source); - } -} - -void CreateTriggerResponse::MergeFrom(const CreateTriggerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.CreateTriggerResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void CreateTriggerResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.CreateTriggerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateTriggerResponse::CopyFrom(const CreateTriggerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.CreateTriggerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateTriggerResponse::IsInitialized() const { - return true; -} - -void CreateTriggerResponse::Swap(CreateTriggerResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateTriggerResponse::InternalSwap(CreateTriggerResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata CreateTriggerResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DeleteTriggerRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_DeleteTriggerRequest_default_instance_._instance.get_mutable()->trigger_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class DeleteTriggerRequest::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& trigger_id(const DeleteTriggerRequest* msg); -}; - -const ::flyteidl::core::Identifier& -DeleteTriggerRequest::HasBitSetters::trigger_id(const DeleteTriggerRequest* msg) { - return *msg->trigger_id_; -} -void DeleteTriggerRequest::clear_trigger_id() { - if (GetArenaNoVirtual() == nullptr && trigger_id_ != nullptr) { - delete trigger_id_; - } - trigger_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DeleteTriggerRequest::kTriggerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteTriggerRequest::DeleteTriggerRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.DeleteTriggerRequest) -} -DeleteTriggerRequest::DeleteTriggerRequest(const DeleteTriggerRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_trigger_id()) { - trigger_id_ = new ::flyteidl::core::Identifier(*from.trigger_id_); - } else { - trigger_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.DeleteTriggerRequest) -} - -void DeleteTriggerRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - trigger_id_ = nullptr; -} - -DeleteTriggerRequest::~DeleteTriggerRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.DeleteTriggerRequest) - SharedDtor(); -} - -void DeleteTriggerRequest::SharedDtor() { - if (this != internal_default_instance()) delete trigger_id_; -} - -void DeleteTriggerRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteTriggerRequest& DeleteTriggerRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTriggerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteTriggerRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.DeleteTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && trigger_id_ != nullptr) { - delete trigger_id_; - } - trigger_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteTriggerRequest::_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 trigger_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_trigger_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 DeleteTriggerRequest::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.artifact.DeleteTriggerRequest) - 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 trigger_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_trigger_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.artifact.DeleteTriggerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.DeleteTriggerRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteTriggerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.DeleteTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier trigger_id = 1; - if (this->has_trigger_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::trigger_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.artifact.DeleteTriggerRequest) -} - -::google::protobuf::uint8* DeleteTriggerRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.DeleteTriggerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier trigger_id = 1; - if (this->has_trigger_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::trigger_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.artifact.DeleteTriggerRequest) - return target; -} - -size_t DeleteTriggerRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.DeleteTriggerRequest) - 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 trigger_id = 1; - if (this->has_trigger_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *trigger_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteTriggerRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.DeleteTriggerRequest) - GOOGLE_DCHECK_NE(&from, this); - const DeleteTriggerRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.DeleteTriggerRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.DeleteTriggerRequest) - MergeFrom(*source); - } -} - -void DeleteTriggerRequest::MergeFrom(const DeleteTriggerRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.DeleteTriggerRequest) - 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_trigger_id()) { - mutable_trigger_id()->::flyteidl::core::Identifier::MergeFrom(from.trigger_id()); - } -} - -void DeleteTriggerRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.DeleteTriggerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteTriggerRequest::CopyFrom(const DeleteTriggerRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.DeleteTriggerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteTriggerRequest::IsInitialized() const { - return true; -} - -void DeleteTriggerRequest::Swap(DeleteTriggerRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteTriggerRequest::InternalSwap(DeleteTriggerRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(trigger_id_, other->trigger_id_); -} - -::google::protobuf::Metadata DeleteTriggerRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DeleteTriggerResponse::InitAsDefaultInstance() { -} -class DeleteTriggerResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DeleteTriggerResponse::DeleteTriggerResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.DeleteTriggerResponse) -} -DeleteTriggerResponse::DeleteTriggerResponse(const DeleteTriggerResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.DeleteTriggerResponse) -} - -void DeleteTriggerResponse::SharedCtor() { -} - -DeleteTriggerResponse::~DeleteTriggerResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.DeleteTriggerResponse) - SharedDtor(); -} - -void DeleteTriggerResponse::SharedDtor() { -} - -void DeleteTriggerResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DeleteTriggerResponse& DeleteTriggerResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DeleteTriggerResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void DeleteTriggerResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.DeleteTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DeleteTriggerResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DeleteTriggerResponse::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.artifact.DeleteTriggerResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.DeleteTriggerResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.DeleteTriggerResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DeleteTriggerResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.DeleteTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.DeleteTriggerResponse) -} - -::google::protobuf::uint8* DeleteTriggerResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.DeleteTriggerResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.artifact.DeleteTriggerResponse) - return target; -} - -size_t DeleteTriggerResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.DeleteTriggerResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DeleteTriggerResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.DeleteTriggerResponse) - GOOGLE_DCHECK_NE(&from, this); - const DeleteTriggerResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.DeleteTriggerResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.DeleteTriggerResponse) - MergeFrom(*source); - } -} - -void DeleteTriggerResponse::MergeFrom(const DeleteTriggerResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.DeleteTriggerResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void DeleteTriggerResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.DeleteTriggerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DeleteTriggerResponse::CopyFrom(const DeleteTriggerResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.DeleteTriggerResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DeleteTriggerResponse::IsInitialized() const { - return true; -} - -void DeleteTriggerResponse::Swap(DeleteTriggerResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void DeleteTriggerResponse::InternalSwap(DeleteTriggerResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata DeleteTriggerResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactProducer::InitAsDefaultInstance() { - ::flyteidl::artifact::_ArtifactProducer_default_instance_._instance.get_mutable()->entity_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::artifact::_ArtifactProducer_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::VariableMap*>( - ::flyteidl::core::VariableMap::internal_default_instance()); -} -class ArtifactProducer::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& entity_id(const ArtifactProducer* msg); - static const ::flyteidl::core::VariableMap& outputs(const ArtifactProducer* msg); -}; - -const ::flyteidl::core::Identifier& -ArtifactProducer::HasBitSetters::entity_id(const ArtifactProducer* msg) { - return *msg->entity_id_; -} -const ::flyteidl::core::VariableMap& -ArtifactProducer::HasBitSetters::outputs(const ArtifactProducer* msg) { - return *msg->outputs_; -} -void ArtifactProducer::clear_entity_id() { - if (GetArenaNoVirtual() == nullptr && entity_id_ != nullptr) { - delete entity_id_; - } - entity_id_ = nullptr; -} -void ArtifactProducer::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactProducer::kEntityIdFieldNumber; -const int ArtifactProducer::kOutputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactProducer::ArtifactProducer() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactProducer) -} -ArtifactProducer::ArtifactProducer(const ArtifactProducer& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_entity_id()) { - entity_id_ = new ::flyteidl::core::Identifier(*from.entity_id_); - } else { - entity_id_ = nullptr; - } - if (from.has_outputs()) { - outputs_ = new ::flyteidl::core::VariableMap(*from.outputs_); - } else { - outputs_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactProducer) -} - -void ArtifactProducer::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::memset(&entity_id_, 0, static_cast( - reinterpret_cast(&outputs_) - - reinterpret_cast(&entity_id_)) + sizeof(outputs_)); -} - -ArtifactProducer::~ArtifactProducer() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactProducer) - SharedDtor(); -} - -void ArtifactProducer::SharedDtor() { - if (this != internal_default_instance()) delete entity_id_; - if (this != internal_default_instance()) delete outputs_; -} - -void ArtifactProducer::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactProducer& ArtifactProducer::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactProducer_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactProducer::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactProducer) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && entity_id_ != nullptr) { - delete entity_id_; - } - entity_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactProducer::_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 entity_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_entity_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; - } - // .flyteidl.core.VariableMap outputs = 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::core::VariableMap::_InternalParse; - object = msg->mutable_outputs(); - 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 ArtifactProducer::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.artifact.ArtifactProducer) - 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 entity_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.VariableMap outputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } 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.artifact.ArtifactProducer) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactProducer) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactProducer::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactProducer) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier entity_id = 1; - if (this->has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::entity_id(this), output); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactProducer) -} - -::google::protobuf::uint8* ArtifactProducer::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactProducer) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier entity_id = 1; - if (this->has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::entity_id(this), target); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(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.artifact.ArtifactProducer) - return target; -} - -size_t ArtifactProducer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactProducer) - 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 entity_id = 1; - if (this->has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *entity_id_); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactProducer::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactProducer) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactProducer* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactProducer) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactProducer) - MergeFrom(*source); - } -} - -void ArtifactProducer::MergeFrom(const ArtifactProducer& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactProducer) - 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_entity_id()) { - mutable_entity_id()->::flyteidl::core::Identifier::MergeFrom(from.entity_id()); - } - if (from.has_outputs()) { - mutable_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.outputs()); - } -} - -void ArtifactProducer::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactProducer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactProducer::CopyFrom(const ArtifactProducer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactProducer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactProducer::IsInitialized() const { - return true; -} - -void ArtifactProducer::Swap(ArtifactProducer* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactProducer::InternalSwap(ArtifactProducer* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(entity_id_, other->entity_id_); - swap(outputs_, other->outputs_); -} - -::google::protobuf::Metadata ArtifactProducer::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RegisterProducerRequest::InitAsDefaultInstance() { -} -class RegisterProducerRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RegisterProducerRequest::kProducersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RegisterProducerRequest::RegisterProducerRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.RegisterProducerRequest) -} -RegisterProducerRequest::RegisterProducerRequest(const RegisterProducerRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - producers_(from.producers_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.RegisterProducerRequest) -} - -void RegisterProducerRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); -} - -RegisterProducerRequest::~RegisterProducerRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.RegisterProducerRequest) - SharedDtor(); -} - -void RegisterProducerRequest::SharedDtor() { -} - -void RegisterProducerRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RegisterProducerRequest& RegisterProducerRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RegisterProducerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void RegisterProducerRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.RegisterProducerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - producers_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RegisterProducerRequest::_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) { - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::ArtifactProducer::_InternalParse; - object = msg->add_producers(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 RegisterProducerRequest::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.artifact.RegisterProducerRequest) - 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)) { - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_producers())); - } 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.artifact.RegisterProducerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.RegisterProducerRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RegisterProducerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.RegisterProducerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - for (unsigned int i = 0, - n = static_cast(this->producers_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->producers(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.RegisterProducerRequest) -} - -::google::protobuf::uint8* RegisterProducerRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.RegisterProducerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - for (unsigned int i = 0, - n = static_cast(this->producers_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->producers(static_cast(i)), 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.artifact.RegisterProducerRequest) - return target; -} - -size_t RegisterProducerRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.RegisterProducerRequest) - 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; - - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - { - unsigned int count = static_cast(this->producers_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->producers(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RegisterProducerRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.RegisterProducerRequest) - GOOGLE_DCHECK_NE(&from, this); - const RegisterProducerRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.RegisterProducerRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.RegisterProducerRequest) - MergeFrom(*source); - } -} - -void RegisterProducerRequest::MergeFrom(const RegisterProducerRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.RegisterProducerRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - producers_.MergeFrom(from.producers_); -} - -void RegisterProducerRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.RegisterProducerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegisterProducerRequest::CopyFrom(const RegisterProducerRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.RegisterProducerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegisterProducerRequest::IsInitialized() const { - return true; -} - -void RegisterProducerRequest::Swap(RegisterProducerRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void RegisterProducerRequest::InternalSwap(RegisterProducerRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&producers_)->InternalSwap(CastToBase(&other->producers_)); -} - -::google::protobuf::Metadata RegisterProducerRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactConsumer::InitAsDefaultInstance() { - ::flyteidl::artifact::_ArtifactConsumer_default_instance_._instance.get_mutable()->entity_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::artifact::_ArtifactConsumer_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::ParameterMap*>( - ::flyteidl::core::ParameterMap::internal_default_instance()); -} -class ArtifactConsumer::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& entity_id(const ArtifactConsumer* msg); - static const ::flyteidl::core::ParameterMap& inputs(const ArtifactConsumer* msg); -}; - -const ::flyteidl::core::Identifier& -ArtifactConsumer::HasBitSetters::entity_id(const ArtifactConsumer* msg) { - return *msg->entity_id_; -} -const ::flyteidl::core::ParameterMap& -ArtifactConsumer::HasBitSetters::inputs(const ArtifactConsumer* msg) { - return *msg->inputs_; -} -void ArtifactConsumer::clear_entity_id() { - if (GetArenaNoVirtual() == nullptr && entity_id_ != nullptr) { - delete entity_id_; - } - entity_id_ = nullptr; -} -void ArtifactConsumer::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactConsumer::kEntityIdFieldNumber; -const int ArtifactConsumer::kInputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactConsumer::ArtifactConsumer() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ArtifactConsumer) -} -ArtifactConsumer::ArtifactConsumer(const ArtifactConsumer& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_entity_id()) { - entity_id_ = new ::flyteidl::core::Identifier(*from.entity_id_); - } else { - entity_id_ = nullptr; - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::ParameterMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ArtifactConsumer) -} - -void ArtifactConsumer::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto.base); - ::memset(&entity_id_, 0, static_cast( - reinterpret_cast(&inputs_) - - reinterpret_cast(&entity_id_)) + sizeof(inputs_)); -} - -ArtifactConsumer::~ArtifactConsumer() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ArtifactConsumer) - SharedDtor(); -} - -void ArtifactConsumer::SharedDtor() { - if (this != internal_default_instance()) delete entity_id_; - if (this != internal_default_instance()) delete inputs_; -} - -void ArtifactConsumer::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactConsumer& ArtifactConsumer::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactConsumer_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactConsumer::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ArtifactConsumer) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && entity_id_ != nullptr) { - delete entity_id_; - } - entity_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactConsumer::_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 entity_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_entity_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; - } - // .flyteidl.core.ParameterMap inputs = 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::core::ParameterMap::_InternalParse; - object = msg->mutable_inputs(); - 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 ArtifactConsumer::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.artifact.ArtifactConsumer) - 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 entity_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_entity_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ParameterMap inputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } 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.artifact.ArtifactConsumer) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ArtifactConsumer) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactConsumer::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ArtifactConsumer) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier entity_id = 1; - if (this->has_entity_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::entity_id(this), output); - } - - // .flyteidl.core.ParameterMap inputs = 2; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::inputs(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ArtifactConsumer) -} - -::google::protobuf::uint8* ArtifactConsumer::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ArtifactConsumer) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier entity_id = 1; - if (this->has_entity_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::entity_id(this), target); - } - - // .flyteidl.core.ParameterMap inputs = 2; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::inputs(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.artifact.ArtifactConsumer) - return target; -} - -size_t ArtifactConsumer::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ArtifactConsumer) - 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 entity_id = 1; - if (this->has_entity_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *entity_id_); - } - - // .flyteidl.core.ParameterMap inputs = 2; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactConsumer::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ArtifactConsumer) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactConsumer* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ArtifactConsumer) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ArtifactConsumer) - MergeFrom(*source); - } -} - -void ArtifactConsumer::MergeFrom(const ArtifactConsumer& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ArtifactConsumer) - 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_entity_id()) { - mutable_entity_id()->::flyteidl::core::Identifier::MergeFrom(from.entity_id()); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::core::ParameterMap::MergeFrom(from.inputs()); - } -} - -void ArtifactConsumer::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ArtifactConsumer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactConsumer::CopyFrom(const ArtifactConsumer& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ArtifactConsumer) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactConsumer::IsInitialized() const { - return true; -} - -void ArtifactConsumer::Swap(ArtifactConsumer* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactConsumer::InternalSwap(ArtifactConsumer* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(entity_id_, other->entity_id_); - swap(inputs_, other->inputs_); -} - -::google::protobuf::Metadata ArtifactConsumer::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RegisterConsumerRequest::InitAsDefaultInstance() { -} -class RegisterConsumerRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RegisterConsumerRequest::kConsumersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RegisterConsumerRequest::RegisterConsumerRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.RegisterConsumerRequest) -} -RegisterConsumerRequest::RegisterConsumerRequest(const RegisterConsumerRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - consumers_(from.consumers_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.RegisterConsumerRequest) -} - -void RegisterConsumerRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); -} - -RegisterConsumerRequest::~RegisterConsumerRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.RegisterConsumerRequest) - SharedDtor(); -} - -void RegisterConsumerRequest::SharedDtor() { -} - -void RegisterConsumerRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RegisterConsumerRequest& RegisterConsumerRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RegisterConsumerRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void RegisterConsumerRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.RegisterConsumerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - consumers_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RegisterConsumerRequest::_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) { - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::artifact::ArtifactConsumer::_InternalParse; - object = msg->add_consumers(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 RegisterConsumerRequest::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.artifact.RegisterConsumerRequest) - 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)) { - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_consumers())); - } 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.artifact.RegisterConsumerRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.RegisterConsumerRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RegisterConsumerRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.RegisterConsumerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - for (unsigned int i = 0, - n = static_cast(this->consumers_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->consumers(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.RegisterConsumerRequest) -} - -::google::protobuf::uint8* RegisterConsumerRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.RegisterConsumerRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - for (unsigned int i = 0, - n = static_cast(this->consumers_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->consumers(static_cast(i)), 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.artifact.RegisterConsumerRequest) - return target; -} - -size_t RegisterConsumerRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.RegisterConsumerRequest) - 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; - - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - { - unsigned int count = static_cast(this->consumers_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->consumers(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RegisterConsumerRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.RegisterConsumerRequest) - GOOGLE_DCHECK_NE(&from, this); - const RegisterConsumerRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.RegisterConsumerRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.RegisterConsumerRequest) - MergeFrom(*source); - } -} - -void RegisterConsumerRequest::MergeFrom(const RegisterConsumerRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.RegisterConsumerRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - consumers_.MergeFrom(from.consumers_); -} - -void RegisterConsumerRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.RegisterConsumerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegisterConsumerRequest::CopyFrom(const RegisterConsumerRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.RegisterConsumerRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegisterConsumerRequest::IsInitialized() const { - return true; -} - -void RegisterConsumerRequest::Swap(RegisterConsumerRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void RegisterConsumerRequest::InternalSwap(RegisterConsumerRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&consumers_)->InternalSwap(CastToBase(&other->consumers_)); -} - -::google::protobuf::Metadata RegisterConsumerRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RegisterResponse::InitAsDefaultInstance() { -} -class RegisterResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RegisterResponse::RegisterResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.RegisterResponse) -} -RegisterResponse::RegisterResponse(const RegisterResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.RegisterResponse) -} - -void RegisterResponse::SharedCtor() { -} - -RegisterResponse::~RegisterResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.RegisterResponse) - SharedDtor(); -} - -void RegisterResponse::SharedDtor() { -} - -void RegisterResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RegisterResponse& RegisterResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RegisterResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void RegisterResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.RegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RegisterResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RegisterResponse::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.artifact.RegisterResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.RegisterResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.RegisterResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RegisterResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.RegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.RegisterResponse) -} - -::google::protobuf::uint8* RegisterResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.RegisterResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.artifact.RegisterResponse) - return target; -} - -size_t RegisterResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.RegisterResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RegisterResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.RegisterResponse) - GOOGLE_DCHECK_NE(&from, this); - const RegisterResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.RegisterResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.RegisterResponse) - MergeFrom(*source); - } -} - -void RegisterResponse::MergeFrom(const RegisterResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.RegisterResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void RegisterResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.RegisterResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RegisterResponse::CopyFrom(const RegisterResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.RegisterResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RegisterResponse::IsInitialized() const { - return true; -} - -void RegisterResponse::Swap(RegisterResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void RegisterResponse::InternalSwap(RegisterResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata RegisterResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionInputsRequest::InitAsDefaultInstance() { - ::flyteidl::artifact::_ExecutionInputsRequest_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class ExecutionInputsRequest::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const ExecutionInputsRequest* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -ExecutionInputsRequest::HasBitSetters::execution_id(const ExecutionInputsRequest* msg) { - return *msg->execution_id_; -} -void ExecutionInputsRequest::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -void ExecutionInputsRequest::clear_inputs() { - inputs_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionInputsRequest::kExecutionIdFieldNumber; -const int ExecutionInputsRequest::kInputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionInputsRequest::ExecutionInputsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ExecutionInputsRequest) -} -ExecutionInputsRequest::ExecutionInputsRequest(const ExecutionInputsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - inputs_(from.inputs_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ExecutionInputsRequest) -} - -void ExecutionInputsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - execution_id_ = nullptr; -} - -ExecutionInputsRequest::~ExecutionInputsRequest() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ExecutionInputsRequest) - SharedDtor(); -} - -void ExecutionInputsRequest::SharedDtor() { - if (this != internal_default_instance()) delete execution_id_; -} - -void ExecutionInputsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionInputsRequest& ExecutionInputsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionInputsRequest_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionInputsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ExecutionInputsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - inputs_.Clear(); - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionInputsRequest::_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.WorkflowExecutionIdentifier execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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; - } - // repeated .flyteidl.core.ArtifactID inputs = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_inputs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 ExecutionInputsRequest::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.artifact.ExecutionInputsRequest) - 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.WorkflowExecutionIdentifier execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID inputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_inputs())); - } 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.artifact.ExecutionInputsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ExecutionInputsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionInputsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ExecutionInputsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::execution_id(this), output); - } - - // repeated .flyteidl.core.ArtifactID inputs = 2; - for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->inputs(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ExecutionInputsRequest) -} - -::google::protobuf::uint8* ExecutionInputsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ExecutionInputsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::execution_id(this), target); - } - - // repeated .flyteidl.core.ArtifactID inputs = 2; - for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->inputs(static_cast(i)), 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.artifact.ExecutionInputsRequest) - return target; -} - -size_t ExecutionInputsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ExecutionInputsRequest) - 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; - - // repeated .flyteidl.core.ArtifactID inputs = 2; - { - unsigned int count = static_cast(this->inputs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->inputs(static_cast(i))); - } - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionInputsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ExecutionInputsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionInputsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ExecutionInputsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ExecutionInputsRequest) - MergeFrom(*source); - } -} - -void ExecutionInputsRequest::MergeFrom(const ExecutionInputsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ExecutionInputsRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - inputs_.MergeFrom(from.inputs_); - if (from.has_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } -} - -void ExecutionInputsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ExecutionInputsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionInputsRequest::CopyFrom(const ExecutionInputsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ExecutionInputsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionInputsRequest::IsInitialized() const { - return true; -} - -void ExecutionInputsRequest::Swap(ExecutionInputsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionInputsRequest::InternalSwap(ExecutionInputsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); - swap(execution_id_, other->execution_id_); -} - -::google::protobuf::Metadata ExecutionInputsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionInputsResponse::InitAsDefaultInstance() { -} -class ExecutionInputsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionInputsResponse::ExecutionInputsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.artifact.ExecutionInputsResponse) -} -ExecutionInputsResponse::ExecutionInputsResponse(const ExecutionInputsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.artifact.ExecutionInputsResponse) -} - -void ExecutionInputsResponse::SharedCtor() { -} - -ExecutionInputsResponse::~ExecutionInputsResponse() { - // @@protoc_insertion_point(destructor:flyteidl.artifact.ExecutionInputsResponse) - SharedDtor(); -} - -void ExecutionInputsResponse::SharedDtor() { -} - -void ExecutionInputsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionInputsResponse& ExecutionInputsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionInputsResponse_flyteidl_2fartifact_2fartifacts_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionInputsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.artifact.ExecutionInputsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionInputsResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionInputsResponse::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.artifact.ExecutionInputsResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.artifact.ExecutionInputsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.artifact.ExecutionInputsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionInputsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.artifact.ExecutionInputsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.artifact.ExecutionInputsResponse) -} - -::google::protobuf::uint8* ExecutionInputsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.artifact.ExecutionInputsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.artifact.ExecutionInputsResponse) - return target; -} - -size_t ExecutionInputsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.artifact.ExecutionInputsResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionInputsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.artifact.ExecutionInputsResponse) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionInputsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.artifact.ExecutionInputsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.artifact.ExecutionInputsResponse) - MergeFrom(*source); - } -} - -void ExecutionInputsResponse::MergeFrom(const ExecutionInputsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.artifact.ExecutionInputsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ExecutionInputsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.artifact.ExecutionInputsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionInputsResponse::CopyFrom(const ExecutionInputsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.artifact.ExecutionInputsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionInputsResponse::IsInitialized() const { - return true; -} - -void ExecutionInputsResponse::Swap(ExecutionInputsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionInputsResponse::InternalSwap(ExecutionInputsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ExecutionInputsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fartifact_2fartifacts_2eproto); - return ::file_level_metadata_flyteidl_2fartifact_2fartifacts_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace artifact -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::Artifact* Arena::CreateMaybeMessage< ::flyteidl::artifact::Artifact >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::Artifact >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateArtifactRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateArtifactRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CreateArtifactRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactSource* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactSource >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ArtifactSource >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactSpec* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ArtifactSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateArtifactResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateArtifactResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CreateArtifactResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::GetArtifactRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::GetArtifactRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::GetArtifactRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::GetArtifactResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::GetArtifactResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchOptions* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchOptions >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::SearchOptions >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::SearchArtifactsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::SearchArtifactsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::FindByWorkflowExecRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::FindByWorkflowExecRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::FindByWorkflowExecRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::AddTagRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::AddTagRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::AddTagRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::AddTagResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::AddTagResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::AddTagResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateTriggerRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateTriggerRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CreateTriggerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::CreateTriggerResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::CreateTriggerResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::CreateTriggerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::DeleteTriggerRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::DeleteTriggerRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::DeleteTriggerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::DeleteTriggerResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::DeleteTriggerResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::DeleteTriggerResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactProducer* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactProducer >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ArtifactProducer >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::RegisterProducerRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::RegisterProducerRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::RegisterProducerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ArtifactConsumer* Arena::CreateMaybeMessage< ::flyteidl::artifact::ArtifactConsumer >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ArtifactConsumer >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::RegisterConsumerRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::RegisterConsumerRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::RegisterConsumerRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::RegisterResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::RegisterResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsRequest* Arena::CreateMaybeMessage< ::flyteidl::artifact::ExecutionInputsRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ExecutionInputsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMessage< ::flyteidl::artifact::ExecutionInputsResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::artifact::ExecutionInputsResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h b/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h deleted file mode 100644 index bbdb47cfa8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/artifact/artifacts.pb.h +++ /dev/null @@ -1,5605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/artifact/artifacts.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fartifact_2fartifacts_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fartifact_2fartifacts_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -#include "google/api/annotations.pb.h" -#include "flyteidl/admin/launch_plan.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/types.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/artifact_id.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/event/cloudevents.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fartifact_2fartifacts_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fartifact_2fartifacts_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[25] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fartifact_2fartifacts_2eproto(); -namespace flyteidl { -namespace artifact { -class AddTagRequest; -class AddTagRequestDefaultTypeInternal; -extern AddTagRequestDefaultTypeInternal _AddTagRequest_default_instance_; -class AddTagResponse; -class AddTagResponseDefaultTypeInternal; -extern AddTagResponseDefaultTypeInternal _AddTagResponse_default_instance_; -class Artifact; -class ArtifactDefaultTypeInternal; -extern ArtifactDefaultTypeInternal _Artifact_default_instance_; -class ArtifactConsumer; -class ArtifactConsumerDefaultTypeInternal; -extern ArtifactConsumerDefaultTypeInternal _ArtifactConsumer_default_instance_; -class ArtifactProducer; -class ArtifactProducerDefaultTypeInternal; -extern ArtifactProducerDefaultTypeInternal _ArtifactProducer_default_instance_; -class ArtifactSource; -class ArtifactSourceDefaultTypeInternal; -extern ArtifactSourceDefaultTypeInternal _ArtifactSource_default_instance_; -class ArtifactSpec; -class ArtifactSpecDefaultTypeInternal; -extern ArtifactSpecDefaultTypeInternal _ArtifactSpec_default_instance_; -class CreateArtifactRequest; -class CreateArtifactRequestDefaultTypeInternal; -extern CreateArtifactRequestDefaultTypeInternal _CreateArtifactRequest_default_instance_; -class CreateArtifactRequest_PartitionsEntry_DoNotUse; -class CreateArtifactRequest_PartitionsEntry_DoNotUseDefaultTypeInternal; -extern CreateArtifactRequest_PartitionsEntry_DoNotUseDefaultTypeInternal _CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_; -class CreateArtifactResponse; -class CreateArtifactResponseDefaultTypeInternal; -extern CreateArtifactResponseDefaultTypeInternal _CreateArtifactResponse_default_instance_; -class CreateTriggerRequest; -class CreateTriggerRequestDefaultTypeInternal; -extern CreateTriggerRequestDefaultTypeInternal _CreateTriggerRequest_default_instance_; -class CreateTriggerResponse; -class CreateTriggerResponseDefaultTypeInternal; -extern CreateTriggerResponseDefaultTypeInternal _CreateTriggerResponse_default_instance_; -class DeleteTriggerRequest; -class DeleteTriggerRequestDefaultTypeInternal; -extern DeleteTriggerRequestDefaultTypeInternal _DeleteTriggerRequest_default_instance_; -class DeleteTriggerResponse; -class DeleteTriggerResponseDefaultTypeInternal; -extern DeleteTriggerResponseDefaultTypeInternal _DeleteTriggerResponse_default_instance_; -class ExecutionInputsRequest; -class ExecutionInputsRequestDefaultTypeInternal; -extern ExecutionInputsRequestDefaultTypeInternal _ExecutionInputsRequest_default_instance_; -class ExecutionInputsResponse; -class ExecutionInputsResponseDefaultTypeInternal; -extern ExecutionInputsResponseDefaultTypeInternal _ExecutionInputsResponse_default_instance_; -class FindByWorkflowExecRequest; -class FindByWorkflowExecRequestDefaultTypeInternal; -extern FindByWorkflowExecRequestDefaultTypeInternal _FindByWorkflowExecRequest_default_instance_; -class GetArtifactRequest; -class GetArtifactRequestDefaultTypeInternal; -extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instance_; -class GetArtifactResponse; -class GetArtifactResponseDefaultTypeInternal; -extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; -class RegisterConsumerRequest; -class RegisterConsumerRequestDefaultTypeInternal; -extern RegisterConsumerRequestDefaultTypeInternal _RegisterConsumerRequest_default_instance_; -class RegisterProducerRequest; -class RegisterProducerRequestDefaultTypeInternal; -extern RegisterProducerRequestDefaultTypeInternal _RegisterProducerRequest_default_instance_; -class RegisterResponse; -class RegisterResponseDefaultTypeInternal; -extern RegisterResponseDefaultTypeInternal _RegisterResponse_default_instance_; -class SearchArtifactsRequest; -class SearchArtifactsRequestDefaultTypeInternal; -extern SearchArtifactsRequestDefaultTypeInternal _SearchArtifactsRequest_default_instance_; -class SearchArtifactsResponse; -class SearchArtifactsResponseDefaultTypeInternal; -extern SearchArtifactsResponseDefaultTypeInternal _SearchArtifactsResponse_default_instance_; -class SearchOptions; -class SearchOptionsDefaultTypeInternal; -extern SearchOptionsDefaultTypeInternal _SearchOptions_default_instance_; -} // namespace artifact -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::artifact::AddTagRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::AddTagRequest>(Arena*); -template<> ::flyteidl::artifact::AddTagResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::AddTagResponse>(Arena*); -template<> ::flyteidl::artifact::Artifact* Arena::CreateMaybeMessage<::flyteidl::artifact::Artifact>(Arena*); -template<> ::flyteidl::artifact::ArtifactConsumer* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactConsumer>(Arena*); -template<> ::flyteidl::artifact::ArtifactProducer* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactProducer>(Arena*); -template<> ::flyteidl::artifact::ArtifactSource* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(Arena*); -template<> ::flyteidl::artifact::ArtifactSpec* Arena::CreateMaybeMessage<::flyteidl::artifact::ArtifactSpec>(Arena*); -template<> ::flyteidl::artifact::CreateArtifactRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactRequest>(Arena*); -template<> ::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactRequest_PartitionsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::artifact::CreateArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateArtifactResponse>(Arena*); -template<> ::flyteidl::artifact::CreateTriggerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateTriggerRequest>(Arena*); -template<> ::flyteidl::artifact::CreateTriggerResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::CreateTriggerResponse>(Arena*); -template<> ::flyteidl::artifact::DeleteTriggerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::DeleteTriggerRequest>(Arena*); -template<> ::flyteidl::artifact::DeleteTriggerResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::DeleteTriggerResponse>(Arena*); -template<> ::flyteidl::artifact::ExecutionInputsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::ExecutionInputsRequest>(Arena*); -template<> ::flyteidl::artifact::ExecutionInputsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::ExecutionInputsResponse>(Arena*); -template<> ::flyteidl::artifact::FindByWorkflowExecRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::FindByWorkflowExecRequest>(Arena*); -template<> ::flyteidl::artifact::GetArtifactRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactRequest>(Arena*); -template<> ::flyteidl::artifact::GetArtifactResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::GetArtifactResponse>(Arena*); -template<> ::flyteidl::artifact::RegisterConsumerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterConsumerRequest>(Arena*); -template<> ::flyteidl::artifact::RegisterProducerRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterProducerRequest>(Arena*); -template<> ::flyteidl::artifact::RegisterResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::RegisterResponse>(Arena*); -template<> ::flyteidl::artifact::SearchArtifactsRequest* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsRequest>(Arena*); -template<> ::flyteidl::artifact::SearchArtifactsResponse* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchArtifactsResponse>(Arena*); -template<> ::flyteidl::artifact::SearchOptions* Arena::CreateMaybeMessage<::flyteidl::artifact::SearchOptions>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace artifact { - -enum FindByWorkflowExecRequest_Direction { - FindByWorkflowExecRequest_Direction_INPUTS = 0, - FindByWorkflowExecRequest_Direction_OUTPUTS = 1, - FindByWorkflowExecRequest_Direction_FindByWorkflowExecRequest_Direction_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - FindByWorkflowExecRequest_Direction_FindByWorkflowExecRequest_Direction_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool FindByWorkflowExecRequest_Direction_IsValid(int value); -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest_Direction_Direction_MIN = FindByWorkflowExecRequest_Direction_INPUTS; -const FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest_Direction_Direction_MAX = FindByWorkflowExecRequest_Direction_OUTPUTS; -const int FindByWorkflowExecRequest_Direction_Direction_ARRAYSIZE = FindByWorkflowExecRequest_Direction_Direction_MAX + 1; - -const ::google::protobuf::EnumDescriptor* FindByWorkflowExecRequest_Direction_descriptor(); -inline const ::std::string& FindByWorkflowExecRequest_Direction_Name(FindByWorkflowExecRequest_Direction value) { - return ::google::protobuf::internal::NameOfEnum( - FindByWorkflowExecRequest_Direction_descriptor(), value); -} -inline bool FindByWorkflowExecRequest_Direction_Parse( - const ::std::string& name, FindByWorkflowExecRequest_Direction* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FindByWorkflowExecRequest_Direction_descriptor(), name, value); -} -// =================================================================== - -class Artifact final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.Artifact) */ { - public: - Artifact(); - virtual ~Artifact(); - - Artifact(const Artifact& from); - - inline Artifact& operator=(const Artifact& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Artifact(Artifact&& from) noexcept - : Artifact() { - *this = ::std::move(from); - } - - inline Artifact& operator=(Artifact&& 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 Artifact& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Artifact* internal_default_instance() { - return reinterpret_cast( - &_Artifact_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Artifact* other); - friend void swap(Artifact& a, Artifact& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Artifact* New() const final { - return CreateMaybeMessage(nullptr); - } - - Artifact* 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 Artifact& from); - void MergeFrom(const Artifact& 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(Artifact* 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 ------------------------------------------------------- - - // repeated string tags = 3; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 3; - const ::std::string& tags(int index) const; - ::std::string* mutable_tags(int index); - void set_tags(int index, const ::std::string& value); - #if LANG_CXX11 - void set_tags(int index, ::std::string&& value); - #endif - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, size_t size); - ::std::string* add_tags(); - void add_tags(const ::std::string& value); - #if LANG_CXX11 - void add_tags(::std::string&& value); - #endif - void add_tags(const char* value); - void add_tags(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); - - // .flyteidl.core.ArtifactID artifact_id = 1; - bool has_artifact_id() const; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::flyteidl::core::ArtifactID& artifact_id() const; - ::flyteidl::core::ArtifactID* release_artifact_id(); - ::flyteidl::core::ArtifactID* mutable_artifact_id(); - void set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id); - - // .flyteidl.artifact.ArtifactSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::artifact::ArtifactSpec& spec() const; - ::flyteidl::artifact::ArtifactSpec* release_spec(); - ::flyteidl::artifact::ArtifactSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec); - - // .flyteidl.artifact.ArtifactSource source = 4; - bool has_source() const; - void clear_source(); - static const int kSourceFieldNumber = 4; - const ::flyteidl::artifact::ArtifactSource& source() const; - ::flyteidl::artifact::ArtifactSource* release_source(); - ::flyteidl::artifact::ArtifactSource* mutable_source(); - void set_allocated_source(::flyteidl::artifact::ArtifactSource* source); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.Artifact) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> tags_; - ::flyteidl::core::ArtifactID* artifact_id_; - ::flyteidl::artifact::ArtifactSpec* spec_; - ::flyteidl::artifact::ArtifactSource* source_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateArtifactRequest_PartitionsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - CreateArtifactRequest_PartitionsEntry_DoNotUse(); - CreateArtifactRequest_PartitionsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const CreateArtifactRequest_PartitionsEntry_DoNotUse& other); - static const CreateArtifactRequest_PartitionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateArtifactRequest_PartitionsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class CreateArtifactRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CreateArtifactRequest) */ { - public: - CreateArtifactRequest(); - virtual ~CreateArtifactRequest(); - - CreateArtifactRequest(const CreateArtifactRequest& from); - - inline CreateArtifactRequest& operator=(const CreateArtifactRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateArtifactRequest(CreateArtifactRequest&& from) noexcept - : CreateArtifactRequest() { - *this = ::std::move(from); - } - - inline CreateArtifactRequest& operator=(CreateArtifactRequest&& 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 CreateArtifactRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateArtifactRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateArtifactRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CreateArtifactRequest* other); - friend void swap(CreateArtifactRequest& a, CreateArtifactRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateArtifactRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateArtifactRequest* 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 CreateArtifactRequest& from); - void MergeFrom(const CreateArtifactRequest& 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(CreateArtifactRequest* 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 ------------------------------------------------------- - - // map partitions = 4; - int partitions_size() const; - void clear_partitions(); - static const int kPartitionsFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - partitions() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_partitions(); - - // string version = 3; - void clear_version(); - static const int kVersionFieldNumber = 3; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // string tag = 5; - void clear_tag(); - static const int kTagFieldNumber = 5; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); - #if LANG_CXX11 - void set_tag(::std::string&& value); - #endif - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); - - // .flyteidl.core.ArtifactKey artifact_key = 1; - bool has_artifact_key() const; - void clear_artifact_key(); - static const int kArtifactKeyFieldNumber = 1; - const ::flyteidl::core::ArtifactKey& artifact_key() const; - ::flyteidl::core::ArtifactKey* release_artifact_key(); - ::flyteidl::core::ArtifactKey* mutable_artifact_key(); - void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - - // .flyteidl.artifact.ArtifactSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::artifact::ArtifactSpec& spec() const; - ::flyteidl::artifact::ArtifactSpec* release_spec(); - ::flyteidl::artifact::ArtifactSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec); - - // .flyteidl.artifact.ArtifactSource source = 6; - bool has_source() const; - void clear_source(); - static const int kSourceFieldNumber = 6; - const ::flyteidl::artifact::ArtifactSource& source() const; - ::flyteidl::artifact::ArtifactSource* release_source(); - ::flyteidl::artifact::ArtifactSource* mutable_source(); - void set_allocated_source(::flyteidl::artifact::ArtifactSource* source); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateArtifactRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - CreateArtifactRequest_PartitionsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > partitions_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr tag_; - ::flyteidl::core::ArtifactKey* artifact_key_; - ::flyteidl::artifact::ArtifactSpec* spec_; - ::flyteidl::artifact::ArtifactSource* source_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactSource final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ArtifactSource) */ { - public: - ArtifactSource(); - virtual ~ArtifactSource(); - - ArtifactSource(const ArtifactSource& from); - - inline ArtifactSource& operator=(const ArtifactSource& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactSource(ArtifactSource&& from) noexcept - : ArtifactSource() { - *this = ::std::move(from); - } - - inline ArtifactSource& operator=(ArtifactSource&& 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 ArtifactSource& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactSource* internal_default_instance() { - return reinterpret_cast( - &_ArtifactSource_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ArtifactSource* other); - friend void swap(ArtifactSource& a, ArtifactSource& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactSource* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactSource* 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 ArtifactSource& from); - void MergeFrom(const ArtifactSource& 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(ArtifactSource* 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 ------------------------------------------------------- - - // string node_id = 2; - void clear_node_id(); - static const int kNodeIdFieldNumber = 2; - const ::std::string& node_id() const; - void set_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_node_id(::std::string&& value); - #endif - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - ::std::string* mutable_node_id(); - ::std::string* release_node_id(); - void set_allocated_node_id(::std::string* node_id); - - // string principal = 5; - void clear_principal(); - static const int kPrincipalFieldNumber = 5; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - bool has_workflow_execution() const; - void clear_workflow_execution(); - static const int kWorkflowExecutionFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_execution() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_execution(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_execution(); - void set_allocated_workflow_execution(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution); - - // .flyteidl.core.Identifier task_id = 3; - bool has_task_id() const; - void clear_task_id(); - static const int kTaskIdFieldNumber = 3; - const ::flyteidl::core::Identifier& task_id() const; - ::flyteidl::core::Identifier* release_task_id(); - ::flyteidl::core::Identifier* mutable_task_id(); - void set_allocated_task_id(::flyteidl::core::Identifier* task_id); - - // uint32 retry_attempt = 4; - void clear_retry_attempt(); - static const int kRetryAttemptFieldNumber = 4; - ::google::protobuf::uint32 retry_attempt() const; - void set_retry_attempt(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSource) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution_; - ::flyteidl::core::Identifier* task_id_; - ::google::protobuf::uint32 retry_attempt_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ArtifactSpec) */ { - public: - ArtifactSpec(); - virtual ~ArtifactSpec(); - - ArtifactSpec(const ArtifactSpec& from); - - inline ArtifactSpec& operator=(const ArtifactSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactSpec(ArtifactSpec&& from) noexcept - : ArtifactSpec() { - *this = ::std::move(from); - } - - inline ArtifactSpec& operator=(ArtifactSpec&& 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 ArtifactSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactSpec* internal_default_instance() { - return reinterpret_cast( - &_ArtifactSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(ArtifactSpec* other); - friend void swap(ArtifactSpec& a, ArtifactSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactSpec* 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 ArtifactSpec& from); - void MergeFrom(const ArtifactSpec& 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(ArtifactSpec* 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 ------------------------------------------------------- - - // string short_description = 3; - void clear_short_description(); - static const int kShortDescriptionFieldNumber = 3; - const ::std::string& short_description() const; - void set_short_description(const ::std::string& value); - #if LANG_CXX11 - void set_short_description(::std::string&& value); - #endif - void set_short_description(const char* value); - void set_short_description(const char* value, size_t size); - ::std::string* mutable_short_description(); - ::std::string* release_short_description(); - void set_allocated_short_description(::std::string* short_description); - - // string metadata_type = 5; - void clear_metadata_type(); - static const int kMetadataTypeFieldNumber = 5; - const ::std::string& metadata_type() const; - void set_metadata_type(const ::std::string& value); - #if LANG_CXX11 - void set_metadata_type(::std::string&& value); - #endif - void set_metadata_type(const char* value); - void set_metadata_type(const char* value, size_t size); - ::std::string* mutable_metadata_type(); - ::std::string* release_metadata_type(); - void set_allocated_metadata_type(::std::string* metadata_type); - - // .flyteidl.core.Literal value = 1; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // .flyteidl.core.LiteralType type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // .google.protobuf.Any user_metadata = 4; - bool has_user_metadata() const; - void clear_user_metadata(); - static const int kUserMetadataFieldNumber = 4; - const ::google::protobuf::Any& user_metadata() const; - ::google::protobuf::Any* release_user_metadata(); - ::google::protobuf::Any* mutable_user_metadata(); - void set_allocated_user_metadata(::google::protobuf::Any* user_metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr short_description_; - ::google::protobuf::internal::ArenaStringPtr metadata_type_; - ::flyteidl::core::Literal* value_; - ::flyteidl::core::LiteralType* type_; - ::google::protobuf::Any* user_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateArtifactResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CreateArtifactResponse) */ { - public: - CreateArtifactResponse(); - virtual ~CreateArtifactResponse(); - - CreateArtifactResponse(const CreateArtifactResponse& from); - - inline CreateArtifactResponse& operator=(const CreateArtifactResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateArtifactResponse(CreateArtifactResponse&& from) noexcept - : CreateArtifactResponse() { - *this = ::std::move(from); - } - - inline CreateArtifactResponse& operator=(CreateArtifactResponse&& 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 CreateArtifactResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateArtifactResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateArtifactResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(CreateArtifactResponse* other); - friend void swap(CreateArtifactResponse& a, CreateArtifactResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateArtifactResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateArtifactResponse* 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 CreateArtifactResponse& from); - void MergeFrom(const CreateArtifactResponse& 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(CreateArtifactResponse* 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.artifact.Artifact artifact = 1; - bool has_artifact() const; - void clear_artifact(); - static const int kArtifactFieldNumber = 1; - const ::flyteidl::artifact::Artifact& artifact() const; - ::flyteidl::artifact::Artifact* release_artifact(); - ::flyteidl::artifact::Artifact* mutable_artifact(); - void set_allocated_artifact(::flyteidl::artifact::Artifact* artifact); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateArtifactResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::artifact::Artifact* artifact_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class GetArtifactRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.GetArtifactRequest) */ { - public: - GetArtifactRequest(); - virtual ~GetArtifactRequest(); - - GetArtifactRequest(const GetArtifactRequest& from); - - inline GetArtifactRequest& operator=(const GetArtifactRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetArtifactRequest(GetArtifactRequest&& from) noexcept - : GetArtifactRequest() { - *this = ::std::move(from); - } - - inline GetArtifactRequest& operator=(GetArtifactRequest&& 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 GetArtifactRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetArtifactRequest* internal_default_instance() { - return reinterpret_cast( - &_GetArtifactRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(GetArtifactRequest* other); - friend void swap(GetArtifactRequest& a, GetArtifactRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetArtifactRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetArtifactRequest* 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 GetArtifactRequest& from); - void MergeFrom(const GetArtifactRequest& 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(GetArtifactRequest* 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.ArtifactQuery query = 1; - bool has_query() const; - void clear_query(); - static const int kQueryFieldNumber = 1; - const ::flyteidl::core::ArtifactQuery& query() const; - ::flyteidl::core::ArtifactQuery* release_query(); - ::flyteidl::core::ArtifactQuery* mutable_query(); - void set_allocated_query(::flyteidl::core::ArtifactQuery* query); - - // bool details = 2; - void clear_details(); - static const int kDetailsFieldNumber = 2; - bool details() const; - void set_details(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.GetArtifactRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::ArtifactQuery* query_; - bool details_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class GetArtifactResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.GetArtifactResponse) */ { - public: - GetArtifactResponse(); - virtual ~GetArtifactResponse(); - - GetArtifactResponse(const GetArtifactResponse& from); - - inline GetArtifactResponse& operator=(const GetArtifactResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetArtifactResponse(GetArtifactResponse&& from) noexcept - : GetArtifactResponse() { - *this = ::std::move(from); - } - - inline GetArtifactResponse& operator=(GetArtifactResponse&& 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 GetArtifactResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetArtifactResponse* internal_default_instance() { - return reinterpret_cast( - &_GetArtifactResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(GetArtifactResponse* other); - friend void swap(GetArtifactResponse& a, GetArtifactResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetArtifactResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetArtifactResponse* 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 GetArtifactResponse& from); - void MergeFrom(const GetArtifactResponse& 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(GetArtifactResponse* 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.artifact.Artifact artifact = 1; - bool has_artifact() const; - void clear_artifact(); - static const int kArtifactFieldNumber = 1; - const ::flyteidl::artifact::Artifact& artifact() const; - ::flyteidl::artifact::Artifact* release_artifact(); - ::flyteidl::artifact::Artifact* mutable_artifact(); - void set_allocated_artifact(::flyteidl::artifact::Artifact* artifact); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.GetArtifactResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::artifact::Artifact* artifact_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchOptions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchOptions) */ { - public: - SearchOptions(); - virtual ~SearchOptions(); - - SearchOptions(const SearchOptions& from); - - inline SearchOptions& operator=(const SearchOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SearchOptions(SearchOptions&& from) noexcept - : SearchOptions() { - *this = ::std::move(from); - } - - inline SearchOptions& operator=(SearchOptions&& 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 SearchOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchOptions* internal_default_instance() { - return reinterpret_cast( - &_SearchOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(SearchOptions* other); - friend void swap(SearchOptions& a, SearchOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SearchOptions* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchOptions* 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 SearchOptions& from); - void MergeFrom(const SearchOptions& 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(SearchOptions* 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 ------------------------------------------------------- - - // bool strict_partitions = 1; - void clear_strict_partitions(); - static const int kStrictPartitionsFieldNumber = 1; - bool strict_partitions() const; - void set_strict_partitions(bool value); - - // bool latest_by_key = 2; - void clear_latest_by_key(); - static const int kLatestByKeyFieldNumber = 2; - bool latest_by_key() const; - void set_latest_by_key(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchOptions) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool strict_partitions_; - bool latest_by_key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchArtifactsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchArtifactsRequest) */ { - public: - SearchArtifactsRequest(); - virtual ~SearchArtifactsRequest(); - - SearchArtifactsRequest(const SearchArtifactsRequest& from); - - inline SearchArtifactsRequest& operator=(const SearchArtifactsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SearchArtifactsRequest(SearchArtifactsRequest&& from) noexcept - : SearchArtifactsRequest() { - *this = ::std::move(from); - } - - inline SearchArtifactsRequest& operator=(SearchArtifactsRequest&& 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 SearchArtifactsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchArtifactsRequest* internal_default_instance() { - return reinterpret_cast( - &_SearchArtifactsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(SearchArtifactsRequest* other); - friend void swap(SearchArtifactsRequest& a, SearchArtifactsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SearchArtifactsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchArtifactsRequest* 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 SearchArtifactsRequest& from); - void MergeFrom(const SearchArtifactsRequest& 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(SearchArtifactsRequest* 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 ------------------------------------------------------- - - // string principal = 3; - void clear_principal(); - static const int kPrincipalFieldNumber = 3; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // string version = 4; - void clear_version(); - static const int kVersionFieldNumber = 4; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // string token = 6; - void clear_token(); - static const int kTokenFieldNumber = 6; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // .flyteidl.core.ArtifactKey artifact_key = 1; - bool has_artifact_key() const; - void clear_artifact_key(); - static const int kArtifactKeyFieldNumber = 1; - const ::flyteidl::core::ArtifactKey& artifact_key() const; - ::flyteidl::core::ArtifactKey* release_artifact_key(); - ::flyteidl::core::ArtifactKey* mutable_artifact_key(); - void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - - // .flyteidl.core.Partitions partitions = 2; - bool has_partitions() const; - void clear_partitions(); - static const int kPartitionsFieldNumber = 2; - const ::flyteidl::core::Partitions& partitions() const; - ::flyteidl::core::Partitions* release_partitions(); - ::flyteidl::core::Partitions* mutable_partitions(); - void set_allocated_partitions(::flyteidl::core::Partitions* partitions); - - // .flyteidl.artifact.SearchOptions options = 5; - bool has_options() const; - void clear_options(); - static const int kOptionsFieldNumber = 5; - const ::flyteidl::artifact::SearchOptions& options() const; - ::flyteidl::artifact::SearchOptions* release_options(); - ::flyteidl::artifact::SearchOptions* mutable_options(); - void set_allocated_options(::flyteidl::artifact::SearchOptions* options); - - // int32 limit = 7; - void clear_limit(); - static const int kLimitFieldNumber = 7; - ::google::protobuf::int32 limit() const; - void set_limit(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::flyteidl::core::ArtifactKey* artifact_key_; - ::flyteidl::core::Partitions* partitions_; - ::flyteidl::artifact::SearchOptions* options_; - ::google::protobuf::int32 limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class SearchArtifactsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.SearchArtifactsResponse) */ { - public: - SearchArtifactsResponse(); - virtual ~SearchArtifactsResponse(); - - SearchArtifactsResponse(const SearchArtifactsResponse& from); - - inline SearchArtifactsResponse& operator=(const SearchArtifactsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SearchArtifactsResponse(SearchArtifactsResponse&& from) noexcept - : SearchArtifactsResponse() { - *this = ::std::move(from); - } - - inline SearchArtifactsResponse& operator=(SearchArtifactsResponse&& 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 SearchArtifactsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SearchArtifactsResponse* internal_default_instance() { - return reinterpret_cast( - &_SearchArtifactsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(SearchArtifactsResponse* other); - friend void swap(SearchArtifactsResponse& a, SearchArtifactsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SearchArtifactsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - SearchArtifactsResponse* 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 SearchArtifactsResponse& from); - void MergeFrom(const SearchArtifactsResponse& 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(SearchArtifactsResponse* 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 ------------------------------------------------------- - - // repeated .flyteidl.artifact.Artifact artifacts = 1; - int artifacts_size() const; - void clear_artifacts(); - static const int kArtifactsFieldNumber = 1; - ::flyteidl::artifact::Artifact* mutable_artifacts(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >* - mutable_artifacts(); - const ::flyteidl::artifact::Artifact& artifacts(int index) const; - ::flyteidl::artifact::Artifact* add_artifacts(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >& - artifacts() const; - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact > artifacts_; - ::google::protobuf::internal::ArenaStringPtr token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class FindByWorkflowExecRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.FindByWorkflowExecRequest) */ { - public: - FindByWorkflowExecRequest(); - virtual ~FindByWorkflowExecRequest(); - - FindByWorkflowExecRequest(const FindByWorkflowExecRequest& from); - - inline FindByWorkflowExecRequest& operator=(const FindByWorkflowExecRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FindByWorkflowExecRequest(FindByWorkflowExecRequest&& from) noexcept - : FindByWorkflowExecRequest() { - *this = ::std::move(from); - } - - inline FindByWorkflowExecRequest& operator=(FindByWorkflowExecRequest&& 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 FindByWorkflowExecRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FindByWorkflowExecRequest* internal_default_instance() { - return reinterpret_cast( - &_FindByWorkflowExecRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(FindByWorkflowExecRequest* other); - friend void swap(FindByWorkflowExecRequest& a, FindByWorkflowExecRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FindByWorkflowExecRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - FindByWorkflowExecRequest* 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 FindByWorkflowExecRequest& from); - void MergeFrom(const FindByWorkflowExecRequest& 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(FindByWorkflowExecRequest* 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 ---------------------------------------------------- - - typedef FindByWorkflowExecRequest_Direction Direction; - static const Direction INPUTS = - FindByWorkflowExecRequest_Direction_INPUTS; - static const Direction OUTPUTS = - FindByWorkflowExecRequest_Direction_OUTPUTS; - static inline bool Direction_IsValid(int value) { - return FindByWorkflowExecRequest_Direction_IsValid(value); - } - static const Direction Direction_MIN = - FindByWorkflowExecRequest_Direction_Direction_MIN; - static const Direction Direction_MAX = - FindByWorkflowExecRequest_Direction_Direction_MAX; - static const int Direction_ARRAYSIZE = - FindByWorkflowExecRequest_Direction_Direction_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Direction_descriptor() { - return FindByWorkflowExecRequest_Direction_descriptor(); - } - static inline const ::std::string& Direction_Name(Direction value) { - return FindByWorkflowExecRequest_Direction_Name(value); - } - static inline bool Direction_Parse(const ::std::string& name, - Direction* value) { - return FindByWorkflowExecRequest_Direction_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - bool has_exec_id() const; - void clear_exec_id(); - static const int kExecIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& exec_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_exec_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_exec_id(); - void set_allocated_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* exec_id); - - // .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - void clear_direction(); - static const int kDirectionFieldNumber = 2; - ::flyteidl::artifact::FindByWorkflowExecRequest_Direction direction() const; - void set_direction(::flyteidl::artifact::FindByWorkflowExecRequest_Direction value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.FindByWorkflowExecRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* exec_id_; - int direction_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class AddTagRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.AddTagRequest) */ { - public: - AddTagRequest(); - virtual ~AddTagRequest(); - - AddTagRequest(const AddTagRequest& from); - - inline AddTagRequest& operator=(const AddTagRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AddTagRequest(AddTagRequest&& from) noexcept - : AddTagRequest() { - *this = ::std::move(from); - } - - inline AddTagRequest& operator=(AddTagRequest&& 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 AddTagRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AddTagRequest* internal_default_instance() { - return reinterpret_cast( - &_AddTagRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(AddTagRequest* other); - friend void swap(AddTagRequest& a, AddTagRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AddTagRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - AddTagRequest* 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 AddTagRequest& from); - void MergeFrom(const AddTagRequest& 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(AddTagRequest* 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 ------------------------------------------------------- - - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // .flyteidl.core.ArtifactID artifact_id = 1; - bool has_artifact_id() const; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::flyteidl::core::ArtifactID& artifact_id() const; - ::flyteidl::core::ArtifactID* release_artifact_id(); - ::flyteidl::core::ArtifactID* mutable_artifact_id(); - void set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id); - - // bool overwrite = 3; - void clear_overwrite(); - static const int kOverwriteFieldNumber = 3; - bool overwrite() const; - void set_overwrite(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.AddTagRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr value_; - ::flyteidl::core::ArtifactID* artifact_id_; - bool overwrite_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class AddTagResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.AddTagResponse) */ { - public: - AddTagResponse(); - virtual ~AddTagResponse(); - - AddTagResponse(const AddTagResponse& from); - - inline AddTagResponse& operator=(const AddTagResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AddTagResponse(AddTagResponse&& from) noexcept - : AddTagResponse() { - *this = ::std::move(from); - } - - inline AddTagResponse& operator=(AddTagResponse&& 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 AddTagResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AddTagResponse* internal_default_instance() { - return reinterpret_cast( - &_AddTagResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(AddTagResponse* other); - friend void swap(AddTagResponse& a, AddTagResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AddTagResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - AddTagResponse* 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 AddTagResponse& from); - void MergeFrom(const AddTagResponse& 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(AddTagResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.AddTagResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTriggerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CreateTriggerRequest) */ { - public: - CreateTriggerRequest(); - virtual ~CreateTriggerRequest(); - - CreateTriggerRequest(const CreateTriggerRequest& from); - - inline CreateTriggerRequest& operator=(const CreateTriggerRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateTriggerRequest(CreateTriggerRequest&& from) noexcept - : CreateTriggerRequest() { - *this = ::std::move(from); - } - - inline CreateTriggerRequest& operator=(CreateTriggerRequest&& 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 CreateTriggerRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateTriggerRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateTriggerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(CreateTriggerRequest* other); - friend void swap(CreateTriggerRequest& a, CreateTriggerRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateTriggerRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateTriggerRequest* 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 CreateTriggerRequest& from); - void MergeFrom(const CreateTriggerRequest& 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(CreateTriggerRequest* 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.LaunchPlan trigger_launch_plan = 1; - bool has_trigger_launch_plan() const; - void clear_trigger_launch_plan(); - static const int kTriggerLaunchPlanFieldNumber = 1; - const ::flyteidl::admin::LaunchPlan& trigger_launch_plan() const; - ::flyteidl::admin::LaunchPlan* release_trigger_launch_plan(); - ::flyteidl::admin::LaunchPlan* mutable_trigger_launch_plan(); - void set_allocated_trigger_launch_plan(::flyteidl::admin::LaunchPlan* trigger_launch_plan); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateTriggerRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::admin::LaunchPlan* trigger_launch_plan_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateTriggerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.CreateTriggerResponse) */ { - public: - CreateTriggerResponse(); - virtual ~CreateTriggerResponse(); - - CreateTriggerResponse(const CreateTriggerResponse& from); - - inline CreateTriggerResponse& operator=(const CreateTriggerResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateTriggerResponse(CreateTriggerResponse&& from) noexcept - : CreateTriggerResponse() { - *this = ::std::move(from); - } - - inline CreateTriggerResponse& operator=(CreateTriggerResponse&& 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 CreateTriggerResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateTriggerResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateTriggerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(CreateTriggerResponse* other); - friend void swap(CreateTriggerResponse& a, CreateTriggerResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateTriggerResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateTriggerResponse* 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 CreateTriggerResponse& from); - void MergeFrom(const CreateTriggerResponse& 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(CreateTriggerResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateTriggerResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteTriggerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.DeleteTriggerRequest) */ { - public: - DeleteTriggerRequest(); - virtual ~DeleteTriggerRequest(); - - DeleteTriggerRequest(const DeleteTriggerRequest& from); - - inline DeleteTriggerRequest& operator=(const DeleteTriggerRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteTriggerRequest(DeleteTriggerRequest&& from) noexcept - : DeleteTriggerRequest() { - *this = ::std::move(from); - } - - inline DeleteTriggerRequest& operator=(DeleteTriggerRequest&& 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 DeleteTriggerRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteTriggerRequest* internal_default_instance() { - return reinterpret_cast( - &_DeleteTriggerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(DeleteTriggerRequest* other); - friend void swap(DeleteTriggerRequest& a, DeleteTriggerRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteTriggerRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteTriggerRequest* 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 DeleteTriggerRequest& from); - void MergeFrom(const DeleteTriggerRequest& 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(DeleteTriggerRequest* 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 trigger_id = 1; - bool has_trigger_id() const; - void clear_trigger_id(); - static const int kTriggerIdFieldNumber = 1; - const ::flyteidl::core::Identifier& trigger_id() const; - ::flyteidl::core::Identifier* release_trigger_id(); - ::flyteidl::core::Identifier* mutable_trigger_id(); - void set_allocated_trigger_id(::flyteidl::core::Identifier* trigger_id); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.DeleteTriggerRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* trigger_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class DeleteTriggerResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.DeleteTriggerResponse) */ { - public: - DeleteTriggerResponse(); - virtual ~DeleteTriggerResponse(); - - DeleteTriggerResponse(const DeleteTriggerResponse& from); - - inline DeleteTriggerResponse& operator=(const DeleteTriggerResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeleteTriggerResponse(DeleteTriggerResponse&& from) noexcept - : DeleteTriggerResponse() { - *this = ::std::move(from); - } - - inline DeleteTriggerResponse& operator=(DeleteTriggerResponse&& 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 DeleteTriggerResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeleteTriggerResponse* internal_default_instance() { - return reinterpret_cast( - &_DeleteTriggerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(DeleteTriggerResponse* other); - friend void swap(DeleteTriggerResponse& a, DeleteTriggerResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeleteTriggerResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - DeleteTriggerResponse* 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 DeleteTriggerResponse& from); - void MergeFrom(const DeleteTriggerResponse& 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(DeleteTriggerResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.DeleteTriggerResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactProducer final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ArtifactProducer) */ { - public: - ArtifactProducer(); - virtual ~ArtifactProducer(); - - ArtifactProducer(const ArtifactProducer& from); - - inline ArtifactProducer& operator=(const ArtifactProducer& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactProducer(ArtifactProducer&& from) noexcept - : ArtifactProducer() { - *this = ::std::move(from); - } - - inline ArtifactProducer& operator=(ArtifactProducer&& 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 ArtifactProducer& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactProducer* internal_default_instance() { - return reinterpret_cast( - &_ArtifactProducer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void Swap(ArtifactProducer* other); - friend void swap(ArtifactProducer& a, ArtifactProducer& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactProducer* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactProducer* 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 ArtifactProducer& from); - void MergeFrom(const ArtifactProducer& 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(ArtifactProducer* 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 entity_id = 1; - bool has_entity_id() const; - void clear_entity_id(); - static const int kEntityIdFieldNumber = 1; - const ::flyteidl::core::Identifier& entity_id() const; - ::flyteidl::core::Identifier* release_entity_id(); - ::flyteidl::core::Identifier* mutable_entity_id(); - void set_allocated_entity_id(::flyteidl::core::Identifier* entity_id); - - // .flyteidl.core.VariableMap outputs = 2; - bool has_outputs() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 2; - const ::flyteidl::core::VariableMap& outputs() const; - ::flyteidl::core::VariableMap* release_outputs(); - ::flyteidl::core::VariableMap* mutable_outputs(); - void set_allocated_outputs(::flyteidl::core::VariableMap* outputs); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactProducer) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* entity_id_; - ::flyteidl::core::VariableMap* outputs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class RegisterProducerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.RegisterProducerRequest) */ { - public: - RegisterProducerRequest(); - virtual ~RegisterProducerRequest(); - - RegisterProducerRequest(const RegisterProducerRequest& from); - - inline RegisterProducerRequest& operator=(const RegisterProducerRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RegisterProducerRequest(RegisterProducerRequest&& from) noexcept - : RegisterProducerRequest() { - *this = ::std::move(from); - } - - inline RegisterProducerRequest& operator=(RegisterProducerRequest&& 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 RegisterProducerRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RegisterProducerRequest* internal_default_instance() { - return reinterpret_cast( - &_RegisterProducerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(RegisterProducerRequest* other); - friend void swap(RegisterProducerRequest& a, RegisterProducerRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RegisterProducerRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - RegisterProducerRequest* 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 RegisterProducerRequest& from); - void MergeFrom(const RegisterProducerRequest& 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(RegisterProducerRequest* 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 ------------------------------------------------------- - - // repeated .flyteidl.artifact.ArtifactProducer producers = 1; - int producers_size() const; - void clear_producers(); - static const int kProducersFieldNumber = 1; - ::flyteidl::artifact::ArtifactProducer* mutable_producers(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactProducer >* - mutable_producers(); - const ::flyteidl::artifact::ArtifactProducer& producers(int index) const; - ::flyteidl::artifact::ArtifactProducer* add_producers(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactProducer >& - producers() const; - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterProducerRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactProducer > producers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactConsumer final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ArtifactConsumer) */ { - public: - ArtifactConsumer(); - virtual ~ArtifactConsumer(); - - ArtifactConsumer(const ArtifactConsumer& from); - - inline ArtifactConsumer& operator=(const ArtifactConsumer& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactConsumer(ArtifactConsumer&& from) noexcept - : ArtifactConsumer() { - *this = ::std::move(from); - } - - inline ArtifactConsumer& operator=(ArtifactConsumer&& 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 ArtifactConsumer& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactConsumer* internal_default_instance() { - return reinterpret_cast( - &_ArtifactConsumer_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void Swap(ArtifactConsumer* other); - friend void swap(ArtifactConsumer& a, ArtifactConsumer& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactConsumer* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactConsumer* 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 ArtifactConsumer& from); - void MergeFrom(const ArtifactConsumer& 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(ArtifactConsumer* 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 entity_id = 1; - bool has_entity_id() const; - void clear_entity_id(); - static const int kEntityIdFieldNumber = 1; - const ::flyteidl::core::Identifier& entity_id() const; - ::flyteidl::core::Identifier* release_entity_id(); - ::flyteidl::core::Identifier* mutable_entity_id(); - void set_allocated_entity_id(::flyteidl::core::Identifier* entity_id); - - // .flyteidl.core.ParameterMap inputs = 2; - bool has_inputs() const; - void clear_inputs(); - static const int kInputsFieldNumber = 2; - const ::flyteidl::core::ParameterMap& inputs() const; - ::flyteidl::core::ParameterMap* release_inputs(); - ::flyteidl::core::ParameterMap* mutable_inputs(); - void set_allocated_inputs(::flyteidl::core::ParameterMap* inputs); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactConsumer) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* entity_id_; - ::flyteidl::core::ParameterMap* inputs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class RegisterConsumerRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.RegisterConsumerRequest) */ { - public: - RegisterConsumerRequest(); - virtual ~RegisterConsumerRequest(); - - RegisterConsumerRequest(const RegisterConsumerRequest& from); - - inline RegisterConsumerRequest& operator=(const RegisterConsumerRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RegisterConsumerRequest(RegisterConsumerRequest&& from) noexcept - : RegisterConsumerRequest() { - *this = ::std::move(from); - } - - inline RegisterConsumerRequest& operator=(RegisterConsumerRequest&& 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 RegisterConsumerRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RegisterConsumerRequest* internal_default_instance() { - return reinterpret_cast( - &_RegisterConsumerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(RegisterConsumerRequest* other); - friend void swap(RegisterConsumerRequest& a, RegisterConsumerRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RegisterConsumerRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - RegisterConsumerRequest* 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 RegisterConsumerRequest& from); - void MergeFrom(const RegisterConsumerRequest& 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(RegisterConsumerRequest* 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 ------------------------------------------------------- - - // repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - int consumers_size() const; - void clear_consumers(); - static const int kConsumersFieldNumber = 1; - ::flyteidl::artifact::ArtifactConsumer* mutable_consumers(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactConsumer >* - mutable_consumers(); - const ::flyteidl::artifact::ArtifactConsumer& consumers(int index) const; - ::flyteidl::artifact::ArtifactConsumer* add_consumers(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactConsumer >& - consumers() const; - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterConsumerRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactConsumer > consumers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class RegisterResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.RegisterResponse) */ { - public: - RegisterResponse(); - virtual ~RegisterResponse(); - - RegisterResponse(const RegisterResponse& from); - - inline RegisterResponse& operator=(const RegisterResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RegisterResponse(RegisterResponse&& from) noexcept - : RegisterResponse() { - *this = ::std::move(from); - } - - inline RegisterResponse& operator=(RegisterResponse&& 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 RegisterResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RegisterResponse* internal_default_instance() { - return reinterpret_cast( - &_RegisterResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(RegisterResponse* other); - friend void swap(RegisterResponse& a, RegisterResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RegisterResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - RegisterResponse* 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 RegisterResponse& from); - void MergeFrom(const RegisterResponse& 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(RegisterResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionInputsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ExecutionInputsRequest) */ { - public: - ExecutionInputsRequest(); - virtual ~ExecutionInputsRequest(); - - ExecutionInputsRequest(const ExecutionInputsRequest& from); - - inline ExecutionInputsRequest& operator=(const ExecutionInputsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionInputsRequest(ExecutionInputsRequest&& from) noexcept - : ExecutionInputsRequest() { - *this = ::std::move(from); - } - - inline ExecutionInputsRequest& operator=(ExecutionInputsRequest&& 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 ExecutionInputsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionInputsRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecutionInputsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - void Swap(ExecutionInputsRequest* other); - friend void swap(ExecutionInputsRequest& a, ExecutionInputsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionInputsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionInputsRequest* 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 ExecutionInputsRequest& from); - void MergeFrom(const ExecutionInputsRequest& 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(ExecutionInputsRequest* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID inputs = 2; - int inputs_size() const; - void clear_inputs(); - static const int kInputsFieldNumber = 2; - ::flyteidl::core::ArtifactID* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_inputs(); - const ::flyteidl::core::ArtifactID& inputs(int index) const; - ::flyteidl::core::ArtifactID* add_inputs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - inputs() const; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > inputs_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionInputsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.artifact.ExecutionInputsResponse) */ { - public: - ExecutionInputsResponse(); - virtual ~ExecutionInputsResponse(); - - ExecutionInputsResponse(const ExecutionInputsResponse& from); - - inline ExecutionInputsResponse& operator=(const ExecutionInputsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionInputsResponse(ExecutionInputsResponse&& from) noexcept - : ExecutionInputsResponse() { - *this = ::std::move(from); - } - - inline ExecutionInputsResponse& operator=(ExecutionInputsResponse&& 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 ExecutionInputsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionInputsResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecutionInputsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void Swap(ExecutionInputsResponse* other); - friend void swap(ExecutionInputsResponse& a, ExecutionInputsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionInputsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionInputsResponse* 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 ExecutionInputsResponse& from); - void MergeFrom(const ExecutionInputsResponse& 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(ExecutionInputsResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fartifact_2fartifacts_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Artifact - -// .flyteidl.core.ArtifactID artifact_id = 1; -inline bool Artifact::has_artifact_id() const { - return this != internal_default_instance() && artifact_id_ != nullptr; -} -inline const ::flyteidl::core::ArtifactID& Artifact::artifact_id() const { - const ::flyteidl::core::ArtifactID* p = artifact_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.Artifact.artifact_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactID_default_instance_); -} -inline ::flyteidl::core::ArtifactID* Artifact::release_artifact_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.Artifact.artifact_id) - - ::flyteidl::core::ArtifactID* temp = artifact_id_; - artifact_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactID* Artifact::mutable_artifact_id() { - - if (artifact_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactID>(GetArenaNoVirtual()); - artifact_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.Artifact.artifact_id) - return artifact_id_; -} -inline void Artifact::set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_id_); - } - if (artifact_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_id, submessage_arena); - } - - } else { - - } - artifact_id_ = artifact_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.Artifact.artifact_id) -} - -// .flyteidl.artifact.ArtifactSpec spec = 2; -inline bool Artifact::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void Artifact::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::artifact::ArtifactSpec& Artifact::spec() const { - const ::flyteidl::artifact::ArtifactSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.Artifact.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_ArtifactSpec_default_instance_); -} -inline ::flyteidl::artifact::ArtifactSpec* Artifact::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.Artifact.spec) - - ::flyteidl::artifact::ArtifactSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::ArtifactSpec* Artifact::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.Artifact.spec) - return spec_; -} -inline void Artifact::set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.Artifact.spec) -} - -// repeated string tags = 3; -inline int Artifact::tags_size() const { - return tags_.size(); -} -inline void Artifact::clear_tags() { - tags_.Clear(); -} -inline const ::std::string& Artifact::tags(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.Artifact.tags) - return tags_.Get(index); -} -inline ::std::string* Artifact::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.Artifact.tags) - return tags_.Mutable(index); -} -inline void Artifact::set_tags(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.artifact.Artifact.tags) - tags_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Artifact::set_tags(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.artifact.Artifact.tags) - tags_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Artifact::set_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.Artifact.tags) -} -inline void Artifact::set_tags(int index, const char* value, size_t size) { - tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.Artifact.tags) -} -inline ::std::string* Artifact::add_tags() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.artifact.Artifact.tags) - return tags_.Add(); -} -inline void Artifact::add_tags(const ::std::string& value) { - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.artifact.Artifact.tags) -} -#if LANG_CXX11 -inline void Artifact::add_tags(::std::string&& value) { - tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.artifact.Artifact.tags) -} -#endif -inline void Artifact::add_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.artifact.Artifact.tags) -} -inline void Artifact::add_tags(const char* value, size_t size) { - tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.artifact.Artifact.tags) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Artifact::tags() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.Artifact.tags) - return tags_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Artifact::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.Artifact.tags) - return &tags_; -} - -// .flyteidl.artifact.ArtifactSource source = 4; -inline bool Artifact::has_source() const { - return this != internal_default_instance() && source_ != nullptr; -} -inline void Artifact::clear_source() { - if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { - delete source_; - } - source_ = nullptr; -} -inline const ::flyteidl::artifact::ArtifactSource& Artifact::source() const { - const ::flyteidl::artifact::ArtifactSource* p = source_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.Artifact.source) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_ArtifactSource_default_instance_); -} -inline ::flyteidl::artifact::ArtifactSource* Artifact::release_source() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.Artifact.source) - - ::flyteidl::artifact::ArtifactSource* temp = source_; - source_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::ArtifactSource* Artifact::mutable_source() { - - if (source_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(GetArenaNoVirtual()); - source_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.Artifact.source) - return source_; -} -inline void Artifact::set_allocated_source(::flyteidl::artifact::ArtifactSource* source) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete source_; - } - if (source) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - source = ::google::protobuf::internal::GetOwnedMessage( - message_arena, source, submessage_arena); - } - - } else { - - } - source_ = source; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.Artifact.source) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// CreateArtifactRequest - -// .flyteidl.core.ArtifactKey artifact_key = 1; -inline bool CreateArtifactRequest::has_artifact_key() const { - return this != internal_default_instance() && artifact_key_ != nullptr; -} -inline const ::flyteidl::core::ArtifactKey& CreateArtifactRequest::artifact_key() const { - const ::flyteidl::core::ArtifactKey* p = artifact_key_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.artifact_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactKey_default_instance_); -} -inline ::flyteidl::core::ArtifactKey* CreateArtifactRequest::release_artifact_key() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.artifact_key) - - ::flyteidl::core::ArtifactKey* temp = artifact_key_; - artifact_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactKey* CreateArtifactRequest::mutable_artifact_key() { - - if (artifact_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactKey>(GetArenaNoVirtual()); - artifact_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.artifact_key) - return artifact_key_; -} -inline void CreateArtifactRequest::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_key_); - } - if (artifact_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_key, submessage_arena); - } - - } else { - - } - artifact_key_ = artifact_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.artifact_key) -} - -// string version = 3; -inline void CreateArtifactRequest::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateArtifactRequest::version() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.version) - return version_.GetNoArena(); -} -inline void CreateArtifactRequest::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.CreateArtifactRequest.version) -} -#if LANG_CXX11 -inline void CreateArtifactRequest::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.CreateArtifactRequest.version) -} -#endif -inline void CreateArtifactRequest::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.CreateArtifactRequest.version) -} -inline void CreateArtifactRequest::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.CreateArtifactRequest.version) -} -inline ::std::string* CreateArtifactRequest::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateArtifactRequest::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateArtifactRequest::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.version) -} - -// .flyteidl.artifact.ArtifactSpec spec = 2; -inline bool CreateArtifactRequest::has_spec() const { - return this != internal_default_instance() && spec_ != nullptr; -} -inline void CreateArtifactRequest::clear_spec() { - if (GetArenaNoVirtual() == nullptr && spec_ != nullptr) { - delete spec_; - } - spec_ = nullptr; -} -inline const ::flyteidl::artifact::ArtifactSpec& CreateArtifactRequest::spec() const { - const ::flyteidl::artifact::ArtifactSpec* p = spec_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_ArtifactSpec_default_instance_); -} -inline ::flyteidl::artifact::ArtifactSpec* CreateArtifactRequest::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.spec) - - ::flyteidl::artifact::ArtifactSpec* temp = spec_; - spec_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::ArtifactSpec* CreateArtifactRequest::mutable_spec() { - - if (spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSpec>(GetArenaNoVirtual()); - spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.spec) - return spec_; -} -inline void CreateArtifactRequest::set_allocated_spec(::flyteidl::artifact::ArtifactSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete spec_; - } - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - - } else { - - } - spec_ = spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.spec) -} - -// map partitions = 4; -inline int CreateArtifactRequest::partitions_size() const { - return partitions_.size(); -} -inline void CreateArtifactRequest::clear_partitions() { - partitions_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -CreateArtifactRequest::partitions() const { - // @@protoc_insertion_point(field_map:flyteidl.artifact.CreateArtifactRequest.partitions) - return partitions_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -CreateArtifactRequest::mutable_partitions() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.artifact.CreateArtifactRequest.partitions) - return partitions_.MutableMap(); -} - -// string tag = 5; -inline void CreateArtifactRequest::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateArtifactRequest::tag() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.tag) - return tag_.GetNoArena(); -} -inline void CreateArtifactRequest::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.CreateArtifactRequest.tag) -} -#if LANG_CXX11 -inline void CreateArtifactRequest::set_tag(::std::string&& value) { - - tag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.CreateArtifactRequest.tag) -} -#endif -inline void CreateArtifactRequest::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.CreateArtifactRequest.tag) -} -inline void CreateArtifactRequest::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.CreateArtifactRequest.tag) -} -inline ::std::string* CreateArtifactRequest::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateArtifactRequest::release_tag() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateArtifactRequest::set_allocated_tag(::std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.tag) -} - -// .flyteidl.artifact.ArtifactSource source = 6; -inline bool CreateArtifactRequest::has_source() const { - return this != internal_default_instance() && source_ != nullptr; -} -inline void CreateArtifactRequest::clear_source() { - if (GetArenaNoVirtual() == nullptr && source_ != nullptr) { - delete source_; - } - source_ = nullptr; -} -inline const ::flyteidl::artifact::ArtifactSource& CreateArtifactRequest::source() const { - const ::flyteidl::artifact::ArtifactSource* p = source_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactRequest.source) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_ArtifactSource_default_instance_); -} -inline ::flyteidl::artifact::ArtifactSource* CreateArtifactRequest::release_source() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactRequest.source) - - ::flyteidl::artifact::ArtifactSource* temp = source_; - source_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::ArtifactSource* CreateArtifactRequest::mutable_source() { - - if (source_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::ArtifactSource>(GetArenaNoVirtual()); - source_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactRequest.source) - return source_; -} -inline void CreateArtifactRequest::set_allocated_source(::flyteidl::artifact::ArtifactSource* source) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete source_; - } - if (source) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - source = ::google::protobuf::internal::GetOwnedMessage( - message_arena, source, submessage_arena); - } - - } else { - - } - source_ = source; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactRequest.source) -} - -// ------------------------------------------------------------------- - -// ArtifactSource - -// .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; -inline bool ArtifactSource::has_workflow_execution() const { - return this != internal_default_instance() && workflow_execution_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ArtifactSource::workflow_execution() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = workflow_execution_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.workflow_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSource::release_workflow_execution() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.workflow_execution) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = workflow_execution_; - workflow_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ArtifactSource::mutable_workflow_execution() { - - if (workflow_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - workflow_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.workflow_execution) - return workflow_execution_; -} -inline void ArtifactSource::set_allocated_workflow_execution(::flyteidl::core::WorkflowExecutionIdentifier* workflow_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_execution_); - } - if (workflow_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_execution, submessage_arena); - } - - } else { - - } - workflow_execution_ = workflow_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.workflow_execution) -} - -// string node_id = 2; -inline void ArtifactSource::clear_node_id() { - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactSource::node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.node_id) - return node_id_.GetNoArena(); -} -inline void ArtifactSource::set_node_id(const ::std::string& value) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.node_id) -} -#if LANG_CXX11 -inline void ArtifactSource::set_node_id(::std::string&& value) { - - node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSource.node_id) -} -#endif -inline void ArtifactSource::set_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSource.node_id) -} -inline void ArtifactSource::set_node_id(const char* value, size_t size) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSource.node_id) -} -inline ::std::string* ArtifactSource::mutable_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.node_id) - return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactSource::release_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.node_id) - - return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactSource::set_allocated_node_id(::std::string* node_id) { - if (node_id != nullptr) { - - } else { - - } - node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.node_id) -} - -// .flyteidl.core.Identifier task_id = 3; -inline bool ArtifactSource::has_task_id() const { - return this != internal_default_instance() && task_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ArtifactSource::task_id() const { - const ::flyteidl::core::Identifier* p = task_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.task_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ArtifactSource::release_task_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.task_id) - - ::flyteidl::core::Identifier* temp = task_id_; - task_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ArtifactSource::mutable_task_id() { - - if (task_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - task_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.task_id) - return task_id_; -} -inline void ArtifactSource::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_id_); - } - if (task_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_id, submessage_arena); - } - - } else { - - } - task_id_ = task_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.task_id) -} - -// uint32 retry_attempt = 4; -inline void ArtifactSource::clear_retry_attempt() { - retry_attempt_ = 0u; -} -inline ::google::protobuf::uint32 ArtifactSource::retry_attempt() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.retry_attempt) - return retry_attempt_; -} -inline void ArtifactSource::set_retry_attempt(::google::protobuf::uint32 value) { - - retry_attempt_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.retry_attempt) -} - -// string principal = 5; -inline void ArtifactSource::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactSource::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSource.principal) - return principal_.GetNoArena(); -} -inline void ArtifactSource::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSource.principal) -} -#if LANG_CXX11 -inline void ArtifactSource::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSource.principal) -} -#endif -inline void ArtifactSource::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSource.principal) -} -inline void ArtifactSource::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSource.principal) -} -inline ::std::string* ArtifactSource::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSource.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactSource::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSource.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactSource::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSource.principal) -} - -// ------------------------------------------------------------------- - -// ArtifactSpec - -// .flyteidl.core.Literal value = 1; -inline bool ArtifactSpec::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline const ::flyteidl::core::Literal& ArtifactSpec::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* ArtifactSpec::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.value) - - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Literal* ArtifactSpec::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.value) - return value_; -} -inline void ArtifactSpec::set_allocated_value(::flyteidl::core::Literal* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.value) -} - -// .flyteidl.core.LiteralType type = 2; -inline bool ArtifactSpec::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& ArtifactSpec::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* ArtifactSpec::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* ArtifactSpec::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.type) - return type_; -} -inline void ArtifactSpec::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.type) -} - -// string short_description = 3; -inline void ArtifactSpec::clear_short_description() { - short_description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactSpec::short_description() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.short_description) - return short_description_.GetNoArena(); -} -inline void ArtifactSpec::set_short_description(const ::std::string& value) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSpec.short_description) -} -#if LANG_CXX11 -inline void ArtifactSpec::set_short_description(::std::string&& value) { - - short_description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSpec.short_description) -} -#endif -inline void ArtifactSpec::set_short_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSpec.short_description) -} -inline void ArtifactSpec::set_short_description(const char* value, size_t size) { - - short_description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSpec.short_description) -} -inline ::std::string* ArtifactSpec::mutable_short_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.short_description) - return short_description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactSpec::release_short_description() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.short_description) - - return short_description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactSpec::set_allocated_short_description(::std::string* short_description) { - if (short_description != nullptr) { - - } else { - - } - short_description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.short_description) -} - -// .google.protobuf.Any user_metadata = 4; -inline bool ArtifactSpec::has_user_metadata() const { - return this != internal_default_instance() && user_metadata_ != nullptr; -} -inline const ::google::protobuf::Any& ArtifactSpec::user_metadata() const { - const ::google::protobuf::Any* p = user_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.user_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Any_default_instance_); -} -inline ::google::protobuf::Any* ArtifactSpec::release_user_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.user_metadata) - - ::google::protobuf::Any* temp = user_metadata_; - user_metadata_ = nullptr; - return temp; -} -inline ::google::protobuf::Any* ArtifactSpec::mutable_user_metadata() { - - if (user_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Any>(GetArenaNoVirtual()); - user_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.user_metadata) - return user_metadata_; -} -inline void ArtifactSpec::set_allocated_user_metadata(::google::protobuf::Any* user_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(user_metadata_); - } - if (user_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - user_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, user_metadata, submessage_arena); - } - - } else { - - } - user_metadata_ = user_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.user_metadata) -} - -// string metadata_type = 5; -inline void ArtifactSpec::clear_metadata_type() { - metadata_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactSpec::metadata_type() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactSpec.metadata_type) - return metadata_type_.GetNoArena(); -} -inline void ArtifactSpec::set_metadata_type(const ::std::string& value) { - - metadata_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.ArtifactSpec.metadata_type) -} -#if LANG_CXX11 -inline void ArtifactSpec::set_metadata_type(::std::string&& value) { - - metadata_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.ArtifactSpec.metadata_type) -} -#endif -inline void ArtifactSpec::set_metadata_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - metadata_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.ArtifactSpec.metadata_type) -} -inline void ArtifactSpec::set_metadata_type(const char* value, size_t size) { - - metadata_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.ArtifactSpec.metadata_type) -} -inline ::std::string* ArtifactSpec::mutable_metadata_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactSpec.metadata_type) - return metadata_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactSpec::release_metadata_type() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactSpec.metadata_type) - - return metadata_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactSpec::set_allocated_metadata_type(::std::string* metadata_type) { - if (metadata_type != nullptr) { - - } else { - - } - metadata_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metadata_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactSpec.metadata_type) -} - -// ------------------------------------------------------------------- - -// CreateArtifactResponse - -// .flyteidl.artifact.Artifact artifact = 1; -inline bool CreateArtifactResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; -} -inline void CreateArtifactResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; -} -inline const ::flyteidl::artifact::Artifact& CreateArtifactResponse::artifact() const { - const ::flyteidl::artifact::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateArtifactResponse.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_Artifact_default_instance_); -} -inline ::flyteidl::artifact::Artifact* CreateArtifactResponse::release_artifact() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateArtifactResponse.artifact) - - ::flyteidl::artifact::Artifact* temp = artifact_; - artifact_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::Artifact* CreateArtifactResponse::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::Artifact>(GetArenaNoVirtual()); - artifact_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateArtifactResponse.artifact) - return artifact_; -} -inline void CreateArtifactResponse::set_allocated_artifact(::flyteidl::artifact::Artifact* artifact) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_; - } - if (artifact) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); - } - - } else { - - } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateArtifactResponse.artifact) -} - -// ------------------------------------------------------------------- - -// GetArtifactRequest - -// .flyteidl.core.ArtifactQuery query = 1; -inline bool GetArtifactRequest::has_query() const { - return this != internal_default_instance() && query_ != nullptr; -} -inline const ::flyteidl::core::ArtifactQuery& GetArtifactRequest::query() const { - const ::flyteidl::core::ArtifactQuery* p = query_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.GetArtifactRequest.query) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactQuery_default_instance_); -} -inline ::flyteidl::core::ArtifactQuery* GetArtifactRequest::release_query() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.GetArtifactRequest.query) - - ::flyteidl::core::ArtifactQuery* temp = query_; - query_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactQuery* GetArtifactRequest::mutable_query() { - - if (query_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactQuery>(GetArenaNoVirtual()); - query_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.GetArtifactRequest.query) - return query_; -} -inline void GetArtifactRequest::set_allocated_query(::flyteidl::core::ArtifactQuery* query) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(query_); - } - if (query) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - query = ::google::protobuf::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - query_ = query; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.GetArtifactRequest.query) -} - -// bool details = 2; -inline void GetArtifactRequest::clear_details() { - details_ = false; -} -inline bool GetArtifactRequest::details() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.GetArtifactRequest.details) - return details_; -} -inline void GetArtifactRequest::set_details(bool value) { - - details_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.GetArtifactRequest.details) -} - -// ------------------------------------------------------------------- - -// GetArtifactResponse - -// .flyteidl.artifact.Artifact artifact = 1; -inline bool GetArtifactResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; -} -inline void GetArtifactResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; -} -inline const ::flyteidl::artifact::Artifact& GetArtifactResponse::artifact() const { - const ::flyteidl::artifact::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.GetArtifactResponse.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_Artifact_default_instance_); -} -inline ::flyteidl::artifact::Artifact* GetArtifactResponse::release_artifact() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.GetArtifactResponse.artifact) - - ::flyteidl::artifact::Artifact* temp = artifact_; - artifact_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::Artifact* GetArtifactResponse::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::Artifact>(GetArenaNoVirtual()); - artifact_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.GetArtifactResponse.artifact) - return artifact_; -} -inline void GetArtifactResponse::set_allocated_artifact(::flyteidl::artifact::Artifact* artifact) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_; - } - if (artifact) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); - } - - } else { - - } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.GetArtifactResponse.artifact) -} - -// ------------------------------------------------------------------- - -// SearchOptions - -// bool strict_partitions = 1; -inline void SearchOptions::clear_strict_partitions() { - strict_partitions_ = false; -} -inline bool SearchOptions::strict_partitions() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchOptions.strict_partitions) - return strict_partitions_; -} -inline void SearchOptions::set_strict_partitions(bool value) { - - strict_partitions_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchOptions.strict_partitions) -} - -// bool latest_by_key = 2; -inline void SearchOptions::clear_latest_by_key() { - latest_by_key_ = false; -} -inline bool SearchOptions::latest_by_key() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchOptions.latest_by_key) - return latest_by_key_; -} -inline void SearchOptions::set_latest_by_key(bool value) { - - latest_by_key_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchOptions.latest_by_key) -} - -// ------------------------------------------------------------------- - -// SearchArtifactsRequest - -// .flyteidl.core.ArtifactKey artifact_key = 1; -inline bool SearchArtifactsRequest::has_artifact_key() const { - return this != internal_default_instance() && artifact_key_ != nullptr; -} -inline const ::flyteidl::core::ArtifactKey& SearchArtifactsRequest::artifact_key() const { - const ::flyteidl::core::ArtifactKey* p = artifact_key_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.artifact_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactKey_default_instance_); -} -inline ::flyteidl::core::ArtifactKey* SearchArtifactsRequest::release_artifact_key() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.artifact_key) - - ::flyteidl::core::ArtifactKey* temp = artifact_key_; - artifact_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactKey* SearchArtifactsRequest::mutable_artifact_key() { - - if (artifact_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactKey>(GetArenaNoVirtual()); - artifact_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.artifact_key) - return artifact_key_; -} -inline void SearchArtifactsRequest::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_key_); - } - if (artifact_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_key, submessage_arena); - } - - } else { - - } - artifact_key_ = artifact_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.artifact_key) -} - -// .flyteidl.core.Partitions partitions = 2; -inline bool SearchArtifactsRequest::has_partitions() const { - return this != internal_default_instance() && partitions_ != nullptr; -} -inline const ::flyteidl::core::Partitions& SearchArtifactsRequest::partitions() const { - const ::flyteidl::core::Partitions* p = partitions_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.partitions) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Partitions_default_instance_); -} -inline ::flyteidl::core::Partitions* SearchArtifactsRequest::release_partitions() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.partitions) - - ::flyteidl::core::Partitions* temp = partitions_; - partitions_ = nullptr; - return temp; -} -inline ::flyteidl::core::Partitions* SearchArtifactsRequest::mutable_partitions() { - - if (partitions_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Partitions>(GetArenaNoVirtual()); - partitions_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.partitions) - return partitions_; -} -inline void SearchArtifactsRequest::set_allocated_partitions(::flyteidl::core::Partitions* partitions) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(partitions_); - } - if (partitions) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - partitions = ::google::protobuf::internal::GetOwnedMessage( - message_arena, partitions, submessage_arena); - } - - } else { - - } - partitions_ = partitions; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.partitions) -} - -// string principal = 3; -inline void SearchArtifactsRequest::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchArtifactsRequest::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.principal) - return principal_.GetNoArena(); -} -inline void SearchArtifactsRequest::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.principal) -} -#if LANG_CXX11 -inline void SearchArtifactsRequest::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.principal) -} -#endif -inline void SearchArtifactsRequest::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.principal) -} -inline void SearchArtifactsRequest::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.principal) -} -inline ::std::string* SearchArtifactsRequest::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchArtifactsRequest::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchArtifactsRequest::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.principal) -} - -// string version = 4; -inline void SearchArtifactsRequest::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchArtifactsRequest::version() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.version) - return version_.GetNoArena(); -} -inline void SearchArtifactsRequest::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.version) -} -#if LANG_CXX11 -inline void SearchArtifactsRequest::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.version) -} -#endif -inline void SearchArtifactsRequest::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.version) -} -inline void SearchArtifactsRequest::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.version) -} -inline ::std::string* SearchArtifactsRequest::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchArtifactsRequest::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchArtifactsRequest::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.version) -} - -// .flyteidl.artifact.SearchOptions options = 5; -inline bool SearchArtifactsRequest::has_options() const { - return this != internal_default_instance() && options_ != nullptr; -} -inline void SearchArtifactsRequest::clear_options() { - if (GetArenaNoVirtual() == nullptr && options_ != nullptr) { - delete options_; - } - options_ = nullptr; -} -inline const ::flyteidl::artifact::SearchOptions& SearchArtifactsRequest::options() const { - const ::flyteidl::artifact::SearchOptions* p = options_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.options) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::artifact::_SearchOptions_default_instance_); -} -inline ::flyteidl::artifact::SearchOptions* SearchArtifactsRequest::release_options() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.options) - - ::flyteidl::artifact::SearchOptions* temp = options_; - options_ = nullptr; - return temp; -} -inline ::flyteidl::artifact::SearchOptions* SearchArtifactsRequest::mutable_options() { - - if (options_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::artifact::SearchOptions>(GetArenaNoVirtual()); - options_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.options) - return options_; -} -inline void SearchArtifactsRequest::set_allocated_options(::flyteidl::artifact::SearchOptions* options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete options_; - } - if (options) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, options, submessage_arena); - } - - } else { - - } - options_ = options; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.options) -} - -// string token = 6; -inline void SearchArtifactsRequest::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchArtifactsRequest::token() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.token) - return token_.GetNoArena(); -} -inline void SearchArtifactsRequest::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.token) -} -#if LANG_CXX11 -inline void SearchArtifactsRequest::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsRequest.token) -} -#endif -inline void SearchArtifactsRequest::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsRequest.token) -} -inline void SearchArtifactsRequest::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsRequest.token) -} -inline ::std::string* SearchArtifactsRequest::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsRequest.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchArtifactsRequest::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsRequest.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchArtifactsRequest::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsRequest.token) -} - -// int32 limit = 7; -inline void SearchArtifactsRequest::clear_limit() { - limit_ = 0; -} -inline ::google::protobuf::int32 SearchArtifactsRequest::limit() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsRequest.limit) - return limit_; -} -inline void SearchArtifactsRequest::set_limit(::google::protobuf::int32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsRequest.limit) -} - -// ------------------------------------------------------------------- - -// SearchArtifactsResponse - -// repeated .flyteidl.artifact.Artifact artifacts = 1; -inline int SearchArtifactsResponse::artifacts_size() const { - return artifacts_.size(); -} -inline void SearchArtifactsResponse::clear_artifacts() { - artifacts_.Clear(); -} -inline ::flyteidl::artifact::Artifact* SearchArtifactsResponse::mutable_artifacts(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsResponse.artifacts) - return artifacts_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >* -SearchArtifactsResponse::mutable_artifacts() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.SearchArtifactsResponse.artifacts) - return &artifacts_; -} -inline const ::flyteidl::artifact::Artifact& SearchArtifactsResponse::artifacts(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsResponse.artifacts) - return artifacts_.Get(index); -} -inline ::flyteidl::artifact::Artifact* SearchArtifactsResponse::add_artifacts() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.SearchArtifactsResponse.artifacts) - return artifacts_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::Artifact >& -SearchArtifactsResponse::artifacts() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.SearchArtifactsResponse.artifacts) - return artifacts_; -} - -// string token = 2; -inline void SearchArtifactsResponse::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SearchArtifactsResponse::token() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.SearchArtifactsResponse.token) - return token_.GetNoArena(); -} -inline void SearchArtifactsResponse::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.SearchArtifactsResponse.token) -} -#if LANG_CXX11 -inline void SearchArtifactsResponse::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.SearchArtifactsResponse.token) -} -#endif -inline void SearchArtifactsResponse::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.SearchArtifactsResponse.token) -} -inline void SearchArtifactsResponse::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.SearchArtifactsResponse.token) -} -inline ::std::string* SearchArtifactsResponse::mutable_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.SearchArtifactsResponse.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SearchArtifactsResponse::release_token() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.SearchArtifactsResponse.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SearchArtifactsResponse::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.SearchArtifactsResponse.token) -} - -// ------------------------------------------------------------------- - -// FindByWorkflowExecRequest - -// .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; -inline bool FindByWorkflowExecRequest::has_exec_id() const { - return this != internal_default_instance() && exec_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& FindByWorkflowExecRequest::exec_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = exec_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* FindByWorkflowExecRequest::release_exec_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = exec_id_; - exec_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* FindByWorkflowExecRequest::mutable_exec_id() { - - if (exec_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - exec_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) - return exec_id_; -} -inline void FindByWorkflowExecRequest::set_allocated_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* exec_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(exec_id_); - } - if (exec_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - exec_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, exec_id, submessage_arena); - } - - } else { - - } - exec_id_ = exec_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.FindByWorkflowExecRequest.exec_id) -} - -// .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; -inline void FindByWorkflowExecRequest::clear_direction() { - direction_ = 0; -} -inline ::flyteidl::artifact::FindByWorkflowExecRequest_Direction FindByWorkflowExecRequest::direction() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.FindByWorkflowExecRequest.direction) - return static_cast< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction >(direction_); -} -inline void FindByWorkflowExecRequest::set_direction(::flyteidl::artifact::FindByWorkflowExecRequest_Direction value) { - - direction_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.FindByWorkflowExecRequest.direction) -} - -// ------------------------------------------------------------------- - -// AddTagRequest - -// .flyteidl.core.ArtifactID artifact_id = 1; -inline bool AddTagRequest::has_artifact_id() const { - return this != internal_default_instance() && artifact_id_ != nullptr; -} -inline const ::flyteidl::core::ArtifactID& AddTagRequest::artifact_id() const { - const ::flyteidl::core::ArtifactID* p = artifact_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.AddTagRequest.artifact_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactID_default_instance_); -} -inline ::flyteidl::core::ArtifactID* AddTagRequest::release_artifact_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.AddTagRequest.artifact_id) - - ::flyteidl::core::ArtifactID* temp = artifact_id_; - artifact_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactID* AddTagRequest::mutable_artifact_id() { - - if (artifact_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactID>(GetArenaNoVirtual()); - artifact_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.AddTagRequest.artifact_id) - return artifact_id_; -} -inline void AddTagRequest::set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_id_); - } - if (artifact_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_id, submessage_arena); - } - - } else { - - } - artifact_id_ = artifact_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.AddTagRequest.artifact_id) -} - -// string value = 2; -inline void AddTagRequest::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& AddTagRequest::value() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.AddTagRequest.value) - return value_.GetNoArena(); -} -inline void AddTagRequest::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.artifact.AddTagRequest.value) -} -#if LANG_CXX11 -inline void AddTagRequest::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.artifact.AddTagRequest.value) -} -#endif -inline void AddTagRequest::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.artifact.AddTagRequest.value) -} -inline void AddTagRequest::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.artifact.AddTagRequest.value) -} -inline ::std::string* AddTagRequest::mutable_value() { - - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.AddTagRequest.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* AddTagRequest::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.AddTagRequest.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void AddTagRequest::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.AddTagRequest.value) -} - -// bool overwrite = 3; -inline void AddTagRequest::clear_overwrite() { - overwrite_ = false; -} -inline bool AddTagRequest::overwrite() const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.AddTagRequest.overwrite) - return overwrite_; -} -inline void AddTagRequest::set_overwrite(bool value) { - - overwrite_ = value; - // @@protoc_insertion_point(field_set:flyteidl.artifact.AddTagRequest.overwrite) -} - -// ------------------------------------------------------------------- - -// AddTagResponse - -// ------------------------------------------------------------------- - -// CreateTriggerRequest - -// .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; -inline bool CreateTriggerRequest::has_trigger_launch_plan() const { - return this != internal_default_instance() && trigger_launch_plan_ != nullptr; -} -inline const ::flyteidl::admin::LaunchPlan& CreateTriggerRequest::trigger_launch_plan() const { - const ::flyteidl::admin::LaunchPlan* p = trigger_launch_plan_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.CreateTriggerRequest.trigger_launch_plan) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::admin::_LaunchPlan_default_instance_); -} -inline ::flyteidl::admin::LaunchPlan* CreateTriggerRequest::release_trigger_launch_plan() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.CreateTriggerRequest.trigger_launch_plan) - - ::flyteidl::admin::LaunchPlan* temp = trigger_launch_plan_; - trigger_launch_plan_ = nullptr; - return temp; -} -inline ::flyteidl::admin::LaunchPlan* CreateTriggerRequest::mutable_trigger_launch_plan() { - - if (trigger_launch_plan_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::admin::LaunchPlan>(GetArenaNoVirtual()); - trigger_launch_plan_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.CreateTriggerRequest.trigger_launch_plan) - return trigger_launch_plan_; -} -inline void CreateTriggerRequest::set_allocated_trigger_launch_plan(::flyteidl::admin::LaunchPlan* trigger_launch_plan) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(trigger_launch_plan_); - } - if (trigger_launch_plan) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - trigger_launch_plan = ::google::protobuf::internal::GetOwnedMessage( - message_arena, trigger_launch_plan, submessage_arena); - } - - } else { - - } - trigger_launch_plan_ = trigger_launch_plan; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.CreateTriggerRequest.trigger_launch_plan) -} - -// ------------------------------------------------------------------- - -// CreateTriggerResponse - -// ------------------------------------------------------------------- - -// DeleteTriggerRequest - -// .flyteidl.core.Identifier trigger_id = 1; -inline bool DeleteTriggerRequest::has_trigger_id() const { - return this != internal_default_instance() && trigger_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& DeleteTriggerRequest::trigger_id() const { - const ::flyteidl::core::Identifier* p = trigger_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.DeleteTriggerRequest.trigger_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* DeleteTriggerRequest::release_trigger_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.DeleteTriggerRequest.trigger_id) - - ::flyteidl::core::Identifier* temp = trigger_id_; - trigger_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* DeleteTriggerRequest::mutable_trigger_id() { - - if (trigger_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - trigger_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.DeleteTriggerRequest.trigger_id) - return trigger_id_; -} -inline void DeleteTriggerRequest::set_allocated_trigger_id(::flyteidl::core::Identifier* trigger_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(trigger_id_); - } - if (trigger_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - trigger_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, trigger_id, submessage_arena); - } - - } else { - - } - trigger_id_ = trigger_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.DeleteTriggerRequest.trigger_id) -} - -// ------------------------------------------------------------------- - -// DeleteTriggerResponse - -// ------------------------------------------------------------------- - -// ArtifactProducer - -// .flyteidl.core.Identifier entity_id = 1; -inline bool ArtifactProducer::has_entity_id() const { - return this != internal_default_instance() && entity_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ArtifactProducer::entity_id() const { - const ::flyteidl::core::Identifier* p = entity_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactProducer.entity_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ArtifactProducer::release_entity_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactProducer.entity_id) - - ::flyteidl::core::Identifier* temp = entity_id_; - entity_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ArtifactProducer::mutable_entity_id() { - - if (entity_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - entity_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactProducer.entity_id) - return entity_id_; -} -inline void ArtifactProducer::set_allocated_entity_id(::flyteidl::core::Identifier* entity_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(entity_id_); - } - if (entity_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - entity_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, entity_id, submessage_arena); - } - - } else { - - } - entity_id_ = entity_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactProducer.entity_id) -} - -// .flyteidl.core.VariableMap outputs = 2; -inline bool ArtifactProducer::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::core::VariableMap& ArtifactProducer::outputs() const { - const ::flyteidl::core::VariableMap* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactProducer.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_VariableMap_default_instance_); -} -inline ::flyteidl::core::VariableMap* ArtifactProducer::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactProducer.outputs) - - ::flyteidl::core::VariableMap* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::VariableMap* ArtifactProducer::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactProducer.outputs) - return outputs_; -} -inline void ArtifactProducer::set_allocated_outputs(::flyteidl::core::VariableMap* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactProducer.outputs) -} - -// ------------------------------------------------------------------- - -// RegisterProducerRequest - -// repeated .flyteidl.artifact.ArtifactProducer producers = 1; -inline int RegisterProducerRequest::producers_size() const { - return producers_.size(); -} -inline void RegisterProducerRequest::clear_producers() { - producers_.Clear(); -} -inline ::flyteidl::artifact::ArtifactProducer* RegisterProducerRequest::mutable_producers(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.RegisterProducerRequest.producers) - return producers_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactProducer >* -RegisterProducerRequest::mutable_producers() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.RegisterProducerRequest.producers) - return &producers_; -} -inline const ::flyteidl::artifact::ArtifactProducer& RegisterProducerRequest::producers(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.RegisterProducerRequest.producers) - return producers_.Get(index); -} -inline ::flyteidl::artifact::ArtifactProducer* RegisterProducerRequest::add_producers() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.RegisterProducerRequest.producers) - return producers_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactProducer >& -RegisterProducerRequest::producers() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.RegisterProducerRequest.producers) - return producers_; -} - -// ------------------------------------------------------------------- - -// ArtifactConsumer - -// .flyteidl.core.Identifier entity_id = 1; -inline bool ArtifactConsumer::has_entity_id() const { - return this != internal_default_instance() && entity_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& ArtifactConsumer::entity_id() const { - const ::flyteidl::core::Identifier* p = entity_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactConsumer.entity_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* ArtifactConsumer::release_entity_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactConsumer.entity_id) - - ::flyteidl::core::Identifier* temp = entity_id_; - entity_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* ArtifactConsumer::mutable_entity_id() { - - if (entity_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - entity_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactConsumer.entity_id) - return entity_id_; -} -inline void ArtifactConsumer::set_allocated_entity_id(::flyteidl::core::Identifier* entity_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(entity_id_); - } - if (entity_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - entity_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, entity_id, submessage_arena); - } - - } else { - - } - entity_id_ = entity_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactConsumer.entity_id) -} - -// .flyteidl.core.ParameterMap inputs = 2; -inline bool ArtifactConsumer::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::core::ParameterMap& ArtifactConsumer::inputs() const { - const ::flyteidl::core::ParameterMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ArtifactConsumer.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ParameterMap_default_instance_); -} -inline ::flyteidl::core::ParameterMap* ArtifactConsumer::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ArtifactConsumer.inputs) - - ::flyteidl::core::ParameterMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::ParameterMap* ArtifactConsumer::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ParameterMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ArtifactConsumer.inputs) - return inputs_; -} -inline void ArtifactConsumer::set_allocated_inputs(::flyteidl::core::ParameterMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ArtifactConsumer.inputs) -} - -// ------------------------------------------------------------------- - -// RegisterConsumerRequest - -// repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; -inline int RegisterConsumerRequest::consumers_size() const { - return consumers_.size(); -} -inline void RegisterConsumerRequest::clear_consumers() { - consumers_.Clear(); -} -inline ::flyteidl::artifact::ArtifactConsumer* RegisterConsumerRequest::mutable_consumers(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.RegisterConsumerRequest.consumers) - return consumers_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactConsumer >* -RegisterConsumerRequest::mutable_consumers() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.RegisterConsumerRequest.consumers) - return &consumers_; -} -inline const ::flyteidl::artifact::ArtifactConsumer& RegisterConsumerRequest::consumers(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.RegisterConsumerRequest.consumers) - return consumers_.Get(index); -} -inline ::flyteidl::artifact::ArtifactConsumer* RegisterConsumerRequest::add_consumers() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.RegisterConsumerRequest.consumers) - return consumers_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::artifact::ArtifactConsumer >& -RegisterConsumerRequest::consumers() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.RegisterConsumerRequest.consumers) - return consumers_; -} - -// ------------------------------------------------------------------- - -// RegisterResponse - -// ------------------------------------------------------------------- - -// ExecutionInputsRequest - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; -inline bool ExecutionInputsRequest::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& ExecutionInputsRequest::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.artifact.ExecutionInputsRequest.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionInputsRequest::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.artifact.ExecutionInputsRequest.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* ExecutionInputsRequest::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ExecutionInputsRequest.execution_id) - return execution_id_; -} -inline void ExecutionInputsRequest::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.artifact.ExecutionInputsRequest.execution_id) -} - -// repeated .flyteidl.core.ArtifactID inputs = 2; -inline int ExecutionInputsRequest::inputs_size() const { - return inputs_.size(); -} -inline ::flyteidl::core::ArtifactID* ExecutionInputsRequest::mutable_inputs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.artifact.ExecutionInputsRequest.inputs) - return inputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -ExecutionInputsRequest::mutable_inputs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.artifact.ExecutionInputsRequest.inputs) - return &inputs_; -} -inline const ::flyteidl::core::ArtifactID& ExecutionInputsRequest::inputs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.artifact.ExecutionInputsRequest.inputs) - return inputs_.Get(index); -} -inline ::flyteidl::core::ArtifactID* ExecutionInputsRequest::add_inputs() { - // @@protoc_insertion_point(field_add:flyteidl.artifact.ExecutionInputsRequest.inputs) - return inputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -ExecutionInputsRequest::inputs() const { - // @@protoc_insertion_point(field_list:flyteidl.artifact.ExecutionInputsRequest.inputs) - return inputs_; -} - -// ------------------------------------------------------------------- - -// ExecutionInputsResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace artifact -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::artifact::FindByWorkflowExecRequest_Direction>() { - return ::flyteidl::artifact::FindByWorkflowExecRequest_Direction_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fartifact_2fartifacts_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.cc deleted file mode 100644 index 7e2047e59d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/artifact_id.proto - -#include "flyteidl/core/artifact_id.pb.h" -#include "flyteidl/core/artifact_id.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.h deleted file mode 100644 index ff4cbf1920..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/artifact_id.proto -#ifndef GRPC_flyteidl_2fcore_2fartifact_5fid_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fartifact_5fid_2eproto__INCLUDED - -#include "flyteidl/core/artifact_id.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fartifact_5fid_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.cc deleted file mode 100644 index 16b41157e4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.cc +++ /dev/null @@ -1,4252 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/artifact_id.proto - -#include "flyteidl/core/artifact_id.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -namespace flyteidl { -namespace core { -class ArtifactKeyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactKey_default_instance_; -class ArtifactBindingDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactBindingData_default_instance_; -class InputBindingDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _InputBindingData_default_instance_; -class LabelValueDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr static_value_; - const ::flyteidl::core::ArtifactBindingData* triggered_binding_; - const ::flyteidl::core::InputBindingData* input_binding_; -} _LabelValue_default_instance_; -class Partitions_ValueEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Partitions_ValueEntry_DoNotUse_default_instance_; -class PartitionsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Partitions_default_instance_; -class ArtifactIDDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Partitions* partitions_; -} _ArtifactID_default_instance_; -class ArtifactTagDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactTag_default_instance_; -class ArtifactQueryDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::ArtifactID* artifact_id_; - const ::flyteidl::core::ArtifactTag* artifact_tag_; - ::google::protobuf::internal::ArenaStringPtr uri_; - const ::flyteidl::core::ArtifactBindingData* binding_; -} _ArtifactQuery_default_instance_; -class TriggerDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Trigger_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ArtifactKey_default_instance_; - new (ptr) ::flyteidl::core::ArtifactKey(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ArtifactKey::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto}, {}}; - -static void InitDefaultsArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ArtifactBindingData_default_instance_; - new (ptr) ::flyteidl::core::ArtifactBindingData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ArtifactBindingData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto}, {}}; - -static void InitDefaultsInputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_InputBindingData_default_instance_; - new (ptr) ::flyteidl::core::InputBindingData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::InputBindingData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsInputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto}, {}}; - -static void InitDefaultsLabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_LabelValue_default_instance_; - new (ptr) ::flyteidl::core::LabelValue(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::LabelValue::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsLabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsPartitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Partitions_ValueEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::Partitions_ValueEntry_DoNotUse(); - } - ::flyteidl::core::Partitions_ValueEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPartitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsPartitions_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Partitions_default_instance_; - new (ptr) ::flyteidl::core::Partitions(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Partitions::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPartitions_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_Partitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ArtifactID_default_instance_; - new (ptr) ::flyteidl::core::ArtifactID(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ArtifactID::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ArtifactTag_default_instance_; - new (ptr) ::flyteidl::core::ArtifactTag(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ArtifactTag::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ArtifactQuery_default_instance_; - new (ptr) ::flyteidl::core::ArtifactQuery(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ArtifactQuery::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsTrigger_flyteidl_2fcore_2fartifact_5fid_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Trigger_default_instance_; - new (ptr) ::flyteidl::core::Trigger(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Trigger::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Trigger_flyteidl_2fcore_2fartifact_5fid_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTrigger_flyteidl_2fcore_2fartifact_5fid_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fartifact_5fid_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Partitions_ValueEntry_DoNotUse_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Trigger_flyteidl_2fcore_2fartifact_5fid_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[10]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fartifact_5fid_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fartifact_5fid_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactKey, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactKey, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactKey, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactKey, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactBindingData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactBindingData, index_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactBindingData, partition_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactBindingData, transform_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::InputBindingData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::InputBindingData, var_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LabelValue, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LabelValue, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::LabelValueDefaultTypeInternal, static_value_), - offsetof(::flyteidl::core::LabelValueDefaultTypeInternal, triggered_binding_), - offsetof(::flyteidl::core::LabelValueDefaultTypeInternal, input_binding_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LabelValue, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions_ValueEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions_ValueEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions_ValueEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions_ValueEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Partitions, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactID, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactID, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactID, artifact_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactID, version_), - offsetof(::flyteidl::core::ArtifactIDDefaultTypeInternal, partitions_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactID, dimensions_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactTag, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactTag, artifact_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactTag, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactQuery, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactQuery, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::ArtifactQueryDefaultTypeInternal, artifact_id_), - offsetof(::flyteidl::core::ArtifactQueryDefaultTypeInternal, artifact_tag_), - offsetof(::flyteidl::core::ArtifactQueryDefaultTypeInternal, uri_), - offsetof(::flyteidl::core::ArtifactQueryDefaultTypeInternal, binding_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArtifactQuery, identifier_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Trigger, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Trigger, trigger_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Trigger, triggers_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::ArtifactKey)}, - { 8, -1, sizeof(::flyteidl::core::ArtifactBindingData)}, - { 16, -1, sizeof(::flyteidl::core::InputBindingData)}, - { 22, -1, sizeof(::flyteidl::core::LabelValue)}, - { 31, 38, sizeof(::flyteidl::core::Partitions_ValueEntry_DoNotUse)}, - { 40, -1, sizeof(::flyteidl::core::Partitions)}, - { 46, -1, sizeof(::flyteidl::core::ArtifactID)}, - { 55, -1, sizeof(::flyteidl::core::ArtifactTag)}, - { 62, -1, sizeof(::flyteidl::core::ArtifactQuery)}, - { 72, -1, sizeof(::flyteidl::core::Trigger)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_ArtifactKey_default_instance_), - reinterpret_cast(&::flyteidl::core::_ArtifactBindingData_default_instance_), - reinterpret_cast(&::flyteidl::core::_InputBindingData_default_instance_), - reinterpret_cast(&::flyteidl::core::_LabelValue_default_instance_), - reinterpret_cast(&::flyteidl::core::_Partitions_ValueEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_Partitions_default_instance_), - reinterpret_cast(&::flyteidl::core::_ArtifactID_default_instance_), - reinterpret_cast(&::flyteidl::core::_ArtifactTag_default_instance_), - reinterpret_cast(&::flyteidl::core::_ArtifactQuery_default_instance_), - reinterpret_cast(&::flyteidl::core::_Trigger_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, "flyteidl/core/artifact_id.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto, 10, file_level_enum_descriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fartifact_5fid_2eproto[] = - "\n\037flyteidl/core/artifact_id.proto\022\rflyte" - "idl.core\032\036flyteidl/core/identifier.proto" - "\"<\n\013ArtifactKey\022\017\n\007project\030\001 \001(\t\022\016\n\006doma" - "in\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"N\n\023ArtifactBindin" - "gData\022\r\n\005index\030\001 \001(\r\022\025\n\rpartition_key\030\002 " - "\001(\t\022\021\n\ttransform\030\003 \001(\t\"\037\n\020InputBindingDa" - "ta\022\013\n\003var\030\001 \001(\t\"\250\001\n\nLabelValue\022\026\n\014static" - "_value\030\001 \001(\tH\000\022\?\n\021triggered_binding\030\002 \001(" - "\0132\".flyteidl.core.ArtifactBindingDataH\000\022" - "8\n\rinput_binding\030\003 \001(\0132\037.flyteidl.core.I" - "nputBindingDataH\000B\007\n\005value\"\212\001\n\nPartition" - "s\0223\n\005value\030\001 \003(\0132$.flyteidl.core.Partiti" - "ons.ValueEntry\032G\n\nValueEntry\022\013\n\003key\030\001 \001(" - "\t\022(\n\005value\030\002 \001(\0132\031.flyteidl.core.LabelVa" - "lue:\0028\001\"\216\001\n\nArtifactID\0220\n\014artifact_key\030\001" - " \001(\0132\032.flyteidl.core.ArtifactKey\022\017\n\007vers" - "ion\030\002 \001(\t\022/\n\npartitions\030\003 \001(\0132\031.flyteidl" - ".core.PartitionsH\000B\014\n\ndimensions\"i\n\013Arti" - "factTag\0220\n\014artifact_key\030\001 \001(\0132\032.flyteidl" - ".core.ArtifactKey\022(\n\005value\030\002 \001(\0132\031.flyte" - "idl.core.LabelValue\"\311\001\n\rArtifactQuery\0220\n" - "\013artifact_id\030\001 \001(\0132\031.flyteidl.core.Artif" - "actIDH\000\0222\n\014artifact_tag\030\002 \001(\0132\032.flyteidl" - ".core.ArtifactTagH\000\022\r\n\003uri\030\003 \001(\tH\000\0225\n\007bi" - "nding\030\004 \001(\0132\".flyteidl.core.ArtifactBind" - "ingDataH\000B\014\n\nidentifier\"e\n\007Trigger\022-\n\ntr" - "igger_id\030\001 \001(\0132\031.flyteidl.core.Identifie" - "r\022+\n\010triggers\030\002 \003(\0132\031.flyteidl.core.Arti" - "factIDB= 1900 -const int ArtifactKey::kProjectFieldNumber; -const int ArtifactKey::kDomainFieldNumber; -const int ArtifactKey::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactKey::ArtifactKey() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArtifactKey) -} -ArtifactKey::ArtifactKey(const ArtifactKey& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArtifactKey) -} - -void ArtifactKey::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ArtifactKey::~ArtifactKey() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArtifactKey) - SharedDtor(); -} - -void ArtifactKey::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ArtifactKey::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactKey& ArtifactKey::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactKey_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactKey::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArtifactKey) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactKey::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactKey.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactKey.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactKey.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactKey::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.core.ArtifactKey) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactKey.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactKey.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactKey.name")); - } 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.core.ArtifactKey) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArtifactKey) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactKey::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArtifactKey) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArtifactKey) -} - -::google::protobuf::uint8* ArtifactKey::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArtifactKey) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string name = 3; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactKey.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->name(), 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.core.ArtifactKey) - return target; -} - -size_t ArtifactKey::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArtifactKey) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string name = 3; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactKey::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArtifactKey) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactKey* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArtifactKey) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArtifactKey) - MergeFrom(*source); - } -} - -void ArtifactKey::MergeFrom(const ArtifactKey& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArtifactKey) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void ArtifactKey::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArtifactKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactKey::CopyFrom(const ArtifactKey& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArtifactKey) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactKey::IsInitialized() const { - return true; -} - -void ArtifactKey::Swap(ArtifactKey* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactKey::InternalSwap(ArtifactKey* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ArtifactKey::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactBindingData::InitAsDefaultInstance() { -} -class ArtifactBindingData::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactBindingData::kIndexFieldNumber; -const int ArtifactBindingData::kPartitionKeyFieldNumber; -const int ArtifactBindingData::kTransformFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactBindingData::ArtifactBindingData() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArtifactBindingData) -} -ArtifactBindingData::ArtifactBindingData(const ArtifactBindingData& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.partition_key().size() > 0) { - partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_); - } - transform_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.transform().size() > 0) { - transform_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transform_); - } - index_ = from.index_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArtifactBindingData) -} - -void ArtifactBindingData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - partition_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - transform_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_ = 0u; -} - -ArtifactBindingData::~ArtifactBindingData() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArtifactBindingData) - SharedDtor(); -} - -void ArtifactBindingData::SharedDtor() { - partition_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - transform_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ArtifactBindingData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactBindingData& ArtifactBindingData::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactBindingData::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArtifactBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partition_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - transform_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - index_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactBindingData::_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) { - // uint32 index = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_index(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string partition_key = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactBindingData.partition_key"); - object = msg->mutable_partition_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string transform = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactBindingData.transform"); - object = msg->mutable_transform(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactBindingData::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.core.ArtifactBindingData) - 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)) { - // uint32 index = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &index_))); - } else { - goto handle_unusual; - } - break; - } - - // string partition_key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_key().data(), static_cast(this->partition_key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactBindingData.partition_key")); - } else { - goto handle_unusual; - } - break; - } - - // string transform = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_transform())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->transform().data(), static_cast(this->transform().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactBindingData.transform")); - } 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.core.ArtifactBindingData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArtifactBindingData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactBindingData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArtifactBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 index = 1; - if (this->index() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->index(), output); - } - - // string partition_key = 2; - if (this->partition_key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_key().data(), static_cast(this->partition_key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactBindingData.partition_key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->partition_key(), output); - } - - // string transform = 3; - if (this->transform().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->transform().data(), static_cast(this->transform().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactBindingData.transform"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->transform(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArtifactBindingData) -} - -::google::protobuf::uint8* ArtifactBindingData::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArtifactBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 index = 1; - if (this->index() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->index(), target); - } - - // string partition_key = 2; - if (this->partition_key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_key().data(), static_cast(this->partition_key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactBindingData.partition_key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->partition_key(), target); - } - - // string transform = 3; - if (this->transform().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->transform().data(), static_cast(this->transform().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactBindingData.transform"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->transform(), 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.core.ArtifactBindingData) - return target; -} - -size_t ArtifactBindingData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArtifactBindingData) - 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; - - // string partition_key = 2; - if (this->partition_key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_key()); - } - - // string transform = 3; - if (this->transform().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->transform()); - } - - // uint32 index = 1; - if (this->index() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->index()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactBindingData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArtifactBindingData) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactBindingData* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArtifactBindingData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArtifactBindingData) - MergeFrom(*source); - } -} - -void ArtifactBindingData::MergeFrom(const ArtifactBindingData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArtifactBindingData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.partition_key().size() > 0) { - - partition_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_); - } - if (from.transform().size() > 0) { - - transform_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.transform_); - } - if (from.index() != 0) { - set_index(from.index()); - } -} - -void ArtifactBindingData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArtifactBindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactBindingData::CopyFrom(const ArtifactBindingData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArtifactBindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactBindingData::IsInitialized() const { - return true; -} - -void ArtifactBindingData::Swap(ArtifactBindingData* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactBindingData::InternalSwap(ArtifactBindingData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partition_key_.Swap(&other->partition_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - transform_.Swap(&other->transform_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(index_, other->index_); -} - -::google::protobuf::Metadata ArtifactBindingData::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void InputBindingData::InitAsDefaultInstance() { -} -class InputBindingData::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int InputBindingData::kVarFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -InputBindingData::InputBindingData() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.InputBindingData) -} -InputBindingData::InputBindingData(const InputBindingData& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.var().size() > 0) { - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.InputBindingData) -} - -void InputBindingData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -InputBindingData::~InputBindingData() { - // @@protoc_insertion_point(destructor:flyteidl.core.InputBindingData) - SharedDtor(); -} - -void InputBindingData::SharedDtor() { - var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void InputBindingData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const InputBindingData& InputBindingData::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_InputBindingData_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void InputBindingData::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.InputBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* InputBindingData::_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) { - // string var = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.InputBindingData.var"); - object = msg->mutable_var(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool InputBindingData::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.core.InputBindingData) - 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)) { - // string var = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_var())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.InputBindingData.var")); - } 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.core.InputBindingData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.InputBindingData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void InputBindingData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.InputBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.InputBindingData.var"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->var(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.InputBindingData) -} - -::google::protobuf::uint8* InputBindingData::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.InputBindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.InputBindingData.var"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->var(), 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.core.InputBindingData) - return target; -} - -size_t InputBindingData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.InputBindingData) - 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; - - // string var = 1; - if (this->var().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->var()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void InputBindingData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.InputBindingData) - GOOGLE_DCHECK_NE(&from, this); - const InputBindingData* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.InputBindingData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.InputBindingData) - MergeFrom(*source); - } -} - -void InputBindingData::MergeFrom(const InputBindingData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.InputBindingData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.var().size() > 0) { - - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } -} - -void InputBindingData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.InputBindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void InputBindingData::CopyFrom(const InputBindingData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.InputBindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool InputBindingData::IsInitialized() const { - return true; -} - -void InputBindingData::Swap(InputBindingData* other) { - if (other == this) return; - InternalSwap(other); -} -void InputBindingData::InternalSwap(InputBindingData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata InputBindingData::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LabelValue::InitAsDefaultInstance() { - ::flyteidl::core::_LabelValue_default_instance_.static_value_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::core::_LabelValue_default_instance_.triggered_binding_ = const_cast< ::flyteidl::core::ArtifactBindingData*>( - ::flyteidl::core::ArtifactBindingData::internal_default_instance()); - ::flyteidl::core::_LabelValue_default_instance_.input_binding_ = const_cast< ::flyteidl::core::InputBindingData*>( - ::flyteidl::core::InputBindingData::internal_default_instance()); -} -class LabelValue::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactBindingData& triggered_binding(const LabelValue* msg); - static const ::flyteidl::core::InputBindingData& input_binding(const LabelValue* msg); -}; - -const ::flyteidl::core::ArtifactBindingData& -LabelValue::HasBitSetters::triggered_binding(const LabelValue* msg) { - return *msg->value_.triggered_binding_; -} -const ::flyteidl::core::InputBindingData& -LabelValue::HasBitSetters::input_binding(const LabelValue* msg) { - return *msg->value_.input_binding_; -} -void LabelValue::set_allocated_triggered_binding(::flyteidl::core::ArtifactBindingData* triggered_binding) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (triggered_binding) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - triggered_binding = ::google::protobuf::internal::GetOwnedMessage( - message_arena, triggered_binding, submessage_arena); - } - set_has_triggered_binding(); - value_.triggered_binding_ = triggered_binding; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LabelValue.triggered_binding) -} -void LabelValue::set_allocated_input_binding(::flyteidl::core::InputBindingData* input_binding) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (input_binding) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_binding = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_binding, submessage_arena); - } - set_has_input_binding(); - value_.input_binding_ = input_binding; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LabelValue.input_binding) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LabelValue::kStaticValueFieldNumber; -const int LabelValue::kTriggeredBindingFieldNumber; -const int LabelValue::kInputBindingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LabelValue::LabelValue() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.LabelValue) -} -LabelValue::LabelValue(const LabelValue& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kStaticValue: { - set_static_value(from.static_value()); - break; - } - case kTriggeredBinding: { - mutable_triggered_binding()->::flyteidl::core::ArtifactBindingData::MergeFrom(from.triggered_binding()); - break; - } - case kInputBinding: { - mutable_input_binding()->::flyteidl::core::InputBindingData::MergeFrom(from.input_binding()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.LabelValue) -} - -void LabelValue::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - clear_has_value(); -} - -LabelValue::~LabelValue() { - // @@protoc_insertion_point(destructor:flyteidl.core.LabelValue) - SharedDtor(); -} - -void LabelValue::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void LabelValue::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LabelValue& LabelValue::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LabelValue_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void LabelValue::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.LabelValue) - switch (value_case()) { - case kStaticValue: { - value_.static_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kTriggeredBinding: { - delete value_.triggered_binding_; - break; - } - case kInputBinding: { - delete value_.input_binding_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void LabelValue::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.LabelValue) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LabelValue::_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) { - // string static_value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.LabelValue.static_value"); - object = msg->mutable_static_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ArtifactBindingData triggered_binding = 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::core::ArtifactBindingData::_InternalParse; - object = msg->mutable_triggered_binding(); - 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.core.InputBindingData input_binding = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::InputBindingData::_InternalParse; - object = msg->mutable_input_binding(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LabelValue::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.core.LabelValue) - 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)) { - // string static_value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_static_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->static_value().data(), static_cast(this->static_value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.LabelValue.static_value")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactBindingData triggered_binding = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_triggered_binding())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.InputBindingData input_binding = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_binding())); - } 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.core.LabelValue) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.LabelValue) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LabelValue::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.LabelValue) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string static_value = 1; - if (has_static_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->static_value().data(), static_cast(this->static_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.LabelValue.static_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->static_value(), output); - } - - // .flyteidl.core.ArtifactBindingData triggered_binding = 2; - if (has_triggered_binding()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::triggered_binding(this), output); - } - - // .flyteidl.core.InputBindingData input_binding = 3; - if (has_input_binding()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::input_binding(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.LabelValue) -} - -::google::protobuf::uint8* LabelValue::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LabelValue) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string static_value = 1; - if (has_static_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->static_value().data(), static_cast(this->static_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.LabelValue.static_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->static_value(), target); - } - - // .flyteidl.core.ArtifactBindingData triggered_binding = 2; - if (has_triggered_binding()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::triggered_binding(this), target); - } - - // .flyteidl.core.InputBindingData input_binding = 3; - if (has_input_binding()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::input_binding(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.core.LabelValue) - return target; -} - -size_t LabelValue::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LabelValue) - 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 (value_case()) { - // string static_value = 1; - case kStaticValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->static_value()); - break; - } - // .flyteidl.core.ArtifactBindingData triggered_binding = 2; - case kTriggeredBinding: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.triggered_binding_); - break; - } - // .flyteidl.core.InputBindingData input_binding = 3; - case kInputBinding: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.input_binding_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LabelValue::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LabelValue) - GOOGLE_DCHECK_NE(&from, this); - const LabelValue* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LabelValue) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LabelValue) - MergeFrom(*source); - } -} - -void LabelValue::MergeFrom(const LabelValue& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LabelValue) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kStaticValue: { - set_static_value(from.static_value()); - break; - } - case kTriggeredBinding: { - mutable_triggered_binding()->::flyteidl::core::ArtifactBindingData::MergeFrom(from.triggered_binding()); - break; - } - case kInputBinding: { - mutable_input_binding()->::flyteidl::core::InputBindingData::MergeFrom(from.input_binding()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void LabelValue::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LabelValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LabelValue::CopyFrom(const LabelValue& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LabelValue) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LabelValue::IsInitialized() const { - return true; -} - -void LabelValue::Swap(LabelValue* other) { - if (other == this) return; - InternalSwap(other); -} -void LabelValue::InternalSwap(LabelValue* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata LabelValue::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -Partitions_ValueEntry_DoNotUse::Partitions_ValueEntry_DoNotUse() {} -Partitions_ValueEntry_DoNotUse::Partitions_ValueEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void Partitions_ValueEntry_DoNotUse::MergeFrom(const Partitions_ValueEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata Partitions_ValueEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[4]; -} -void Partitions_ValueEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Partitions_ValueEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Partitions_ValueEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Partitions.ValueEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void Partitions::InitAsDefaultInstance() { -} -class Partitions::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Partitions::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Partitions::Partitions() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Partitions) -} -Partitions::Partitions(const Partitions& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.MergeFrom(from.value_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Partitions) -} - -void Partitions::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base); -} - -Partitions::~Partitions() { - // @@protoc_insertion_point(destructor:flyteidl.core.Partitions) - SharedDtor(); -} - -void Partitions::SharedDtor() { -} - -void Partitions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Partitions& Partitions::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Partitions_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void Partitions::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Partitions) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Partitions::_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) { - // map value = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::Partitions_ValueEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->value_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 Partitions::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.core.Partitions) - 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)) { - // map value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - Partitions_ValueEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Partitions_ValueEntry_DoNotUse, - ::std::string, ::flyteidl::core::LabelValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue > > parser(&value_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Partitions.ValueEntry.key")); - } 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.core.Partitions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Partitions) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Partitions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Partitions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map value = 1; - if (!this->value().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Partitions.ValueEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->value().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->value().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_iterator - it = this->value().begin(); - it != this->value().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(value_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_iterator - it = this->value().begin(); - it != this->value().end(); ++it) { - entry.reset(value_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Partitions) -} - -::google::protobuf::uint8* Partitions::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Partitions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map value = 1; - if (!this->value().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Partitions.ValueEntry.key"); - } - }; - - if (false && - this->value().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->value().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_iterator - it = this->value().begin(); - it != this->value().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(value_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_iterator - it = this->value().begin(); - it != this->value().end(); ++it) { - entry.reset(value_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.Partitions) - return target; -} - -size_t Partitions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Partitions) - 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; - - // map value = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->value_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >::const_iterator - it = this->value().begin(); - it != this->value().end(); ++it) { - entry.reset(value_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Partitions::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Partitions) - GOOGLE_DCHECK_NE(&from, this); - const Partitions* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Partitions) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Partitions) - MergeFrom(*source); - } -} - -void Partitions::MergeFrom(const Partitions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Partitions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - value_.MergeFrom(from.value_); -} - -void Partitions::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Partitions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Partitions::CopyFrom(const Partitions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Partitions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Partitions::IsInitialized() const { - return true; -} - -void Partitions::Swap(Partitions* other) { - if (other == this) return; - InternalSwap(other); -} -void Partitions::InternalSwap(Partitions* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_); -} - -::google::protobuf::Metadata Partitions::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactID::InitAsDefaultInstance() { - ::flyteidl::core::_ArtifactID_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( - ::flyteidl::core::ArtifactKey::internal_default_instance()); - ::flyteidl::core::_ArtifactID_default_instance_.partitions_ = const_cast< ::flyteidl::core::Partitions*>( - ::flyteidl::core::Partitions::internal_default_instance()); -} -class ArtifactID::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const ArtifactID* msg); - static const ::flyteidl::core::Partitions& partitions(const ArtifactID* msg); -}; - -const ::flyteidl::core::ArtifactKey& -ArtifactID::HasBitSetters::artifact_key(const ArtifactID* msg) { - return *msg->artifact_key_; -} -const ::flyteidl::core::Partitions& -ArtifactID::HasBitSetters::partitions(const ArtifactID* msg) { - return *msg->dimensions_.partitions_; -} -void ArtifactID::set_allocated_partitions(::flyteidl::core::Partitions* partitions) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_dimensions(); - if (partitions) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - partitions = ::google::protobuf::internal::GetOwnedMessage( - message_arena, partitions, submessage_arena); - } - set_has_partitions(); - dimensions_.partitions_ = partitions; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactID.partitions) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactID::kArtifactKeyFieldNumber; -const int ArtifactID::kVersionFieldNumber; -const int ArtifactID::kPartitionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactID::ArtifactID() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArtifactID) -} -ArtifactID::ArtifactID(const ArtifactID& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.has_artifact_key()) { - artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); - } else { - artifact_key_ = nullptr; - } - clear_has_dimensions(); - switch (from.dimensions_case()) { - case kPartitions: { - mutable_partitions()->::flyteidl::core::Partitions::MergeFrom(from.partitions()); - break; - } - case DIMENSIONS_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArtifactID) -} - -void ArtifactID::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - artifact_key_ = nullptr; - clear_has_dimensions(); -} - -ArtifactID::~ArtifactID() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArtifactID) - SharedDtor(); -} - -void ArtifactID::SharedDtor() { - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete artifact_key_; - if (has_dimensions()) { - clear_dimensions(); - } -} - -void ArtifactID::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactID& ArtifactID::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactID::clear_dimensions() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.ArtifactID) - switch (dimensions_case()) { - case kPartitions: { - delete dimensions_.partitions_; - break; - } - case DIMENSIONS_NOT_SET: { - break; - } - } - _oneof_case_[0] = DIMENSIONS_NOT_SET; -} - - -void ArtifactID::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArtifactID) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; - clear_dimensions(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactID::_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.ArtifactKey artifact_key = 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::ArtifactKey::_InternalParse; - object = msg->mutable_artifact_key(); - 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; - } - // string version = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactID.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Partitions partitions = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Partitions::_InternalParse; - object = msg->mutable_partitions(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactID::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.core.ArtifactID) - 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.ArtifactKey artifact_key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_key())); - } else { - goto handle_unusual; - } - break; - } - - // string version = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactID.version")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Partitions partitions = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_partitions())); - } 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.core.ArtifactID) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArtifactID) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactID::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArtifactID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_key(this), output); - } - - // string version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactID.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->version(), output); - } - - // .flyteidl.core.Partitions partitions = 3; - if (has_partitions()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::partitions(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArtifactID) -} - -::google::protobuf::uint8* ArtifactID::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArtifactID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_key(this), target); - } - - // string version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactID.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->version(), target); - } - - // .flyteidl.core.Partitions partitions = 3; - if (has_partitions()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::partitions(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.core.ArtifactID) - return target; -} - -size_t ArtifactID::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArtifactID) - 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; - - // string version = 2; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_key_); - } - - switch (dimensions_case()) { - // .flyteidl.core.Partitions partitions = 3; - case kPartitions: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dimensions_.partitions_); - break; - } - case DIMENSIONS_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactID::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArtifactID) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactID* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArtifactID) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArtifactID) - MergeFrom(*source); - } -} - -void ArtifactID::MergeFrom(const ArtifactID& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArtifactID) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.has_artifact_key()) { - mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); - } - switch (from.dimensions_case()) { - case kPartitions: { - mutable_partitions()->::flyteidl::core::Partitions::MergeFrom(from.partitions()); - break; - } - case DIMENSIONS_NOT_SET: { - break; - } - } -} - -void ArtifactID::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArtifactID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactID::CopyFrom(const ArtifactID& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArtifactID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactID::IsInitialized() const { - return true; -} - -void ArtifactID::Swap(ArtifactID* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactID::InternalSwap(ArtifactID* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(artifact_key_, other->artifact_key_); - swap(dimensions_, other->dimensions_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ArtifactID::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactTag::InitAsDefaultInstance() { - ::flyteidl::core::_ArtifactTag_default_instance_._instance.get_mutable()->artifact_key_ = const_cast< ::flyteidl::core::ArtifactKey*>( - ::flyteidl::core::ArtifactKey::internal_default_instance()); - ::flyteidl::core::_ArtifactTag_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::LabelValue*>( - ::flyteidl::core::LabelValue::internal_default_instance()); -} -class ArtifactTag::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactKey& artifact_key(const ArtifactTag* msg); - static const ::flyteidl::core::LabelValue& value(const ArtifactTag* msg); -}; - -const ::flyteidl::core::ArtifactKey& -ArtifactTag::HasBitSetters::artifact_key(const ArtifactTag* msg) { - return *msg->artifact_key_; -} -const ::flyteidl::core::LabelValue& -ArtifactTag::HasBitSetters::value(const ArtifactTag* msg) { - return *msg->value_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactTag::kArtifactKeyFieldNumber; -const int ArtifactTag::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactTag::ArtifactTag() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArtifactTag) -} -ArtifactTag::ArtifactTag(const ArtifactTag& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact_key()) { - artifact_key_ = new ::flyteidl::core::ArtifactKey(*from.artifact_key_); - } else { - artifact_key_ = nullptr; - } - if (from.has_value()) { - value_ = new ::flyteidl::core::LabelValue(*from.value_); - } else { - value_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArtifactTag) -} - -void ArtifactTag::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - ::memset(&artifact_key_, 0, static_cast( - reinterpret_cast(&value_) - - reinterpret_cast(&artifact_key_)) + sizeof(value_)); -} - -ArtifactTag::~ArtifactTag() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArtifactTag) - SharedDtor(); -} - -void ArtifactTag::SharedDtor() { - if (this != internal_default_instance()) delete artifact_key_; - if (this != internal_default_instance()) delete value_; -} - -void ArtifactTag::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactTag& ArtifactTag::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactTag::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactTag::_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.ArtifactKey artifact_key = 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::ArtifactKey::_InternalParse; - object = msg->mutable_artifact_key(); - 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.core.LabelValue value = 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::core::LabelValue::_InternalParse; - object = msg->mutable_value(); - 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 ArtifactTag::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.core.ArtifactTag) - 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.ArtifactKey artifact_key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_key())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LabelValue value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } 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.core.ArtifactTag) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArtifactTag) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactTag::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_key(this), output); - } - - // .flyteidl.core.LabelValue value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::value(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArtifactTag) -} - -::google::protobuf::uint8* ArtifactTag::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_key(this), target); - } - - // .flyteidl.core.LabelValue value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::value(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.core.ArtifactTag) - return target; -} - -size_t ArtifactTag::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArtifactTag) - 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.ArtifactKey artifact_key = 1; - if (this->has_artifact_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_key_); - } - - // .flyteidl.core.LabelValue value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactTag::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArtifactTag) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactTag* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArtifactTag) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArtifactTag) - MergeFrom(*source); - } -} - -void ArtifactTag::MergeFrom(const ArtifactTag& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArtifactTag) - 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_artifact_key()) { - mutable_artifact_key()->::flyteidl::core::ArtifactKey::MergeFrom(from.artifact_key()); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::LabelValue::MergeFrom(from.value()); - } -} - -void ArtifactTag::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArtifactTag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactTag::CopyFrom(const ArtifactTag& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArtifactTag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactTag::IsInitialized() const { - return true; -} - -void ArtifactTag::Swap(ArtifactTag* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactTag::InternalSwap(ArtifactTag* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_key_, other->artifact_key_); - swap(value_, other->value_); -} - -::google::protobuf::Metadata ArtifactTag::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactQuery::InitAsDefaultInstance() { - ::flyteidl::core::_ArtifactQuery_default_instance_.artifact_id_ = const_cast< ::flyteidl::core::ArtifactID*>( - ::flyteidl::core::ArtifactID::internal_default_instance()); - ::flyteidl::core::_ArtifactQuery_default_instance_.artifact_tag_ = const_cast< ::flyteidl::core::ArtifactTag*>( - ::flyteidl::core::ArtifactTag::internal_default_instance()); - ::flyteidl::core::_ArtifactQuery_default_instance_.uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::core::_ArtifactQuery_default_instance_.binding_ = const_cast< ::flyteidl::core::ArtifactBindingData*>( - ::flyteidl::core::ArtifactBindingData::internal_default_instance()); -} -class ArtifactQuery::HasBitSetters { - public: - static const ::flyteidl::core::ArtifactID& artifact_id(const ArtifactQuery* msg); - static const ::flyteidl::core::ArtifactTag& artifact_tag(const ArtifactQuery* msg); - static const ::flyteidl::core::ArtifactBindingData& binding(const ArtifactQuery* msg); -}; - -const ::flyteidl::core::ArtifactID& -ArtifactQuery::HasBitSetters::artifact_id(const ArtifactQuery* msg) { - return *msg->identifier_.artifact_id_; -} -const ::flyteidl::core::ArtifactTag& -ArtifactQuery::HasBitSetters::artifact_tag(const ArtifactQuery* msg) { - return *msg->identifier_.artifact_tag_; -} -const ::flyteidl::core::ArtifactBindingData& -ArtifactQuery::HasBitSetters::binding(const ArtifactQuery* msg) { - return *msg->identifier_.binding_; -} -void ArtifactQuery::set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_identifier(); - if (artifact_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_id, submessage_arena); - } - set_has_artifact_id(); - identifier_.artifact_id_ = artifact_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactQuery.artifact_id) -} -void ArtifactQuery::set_allocated_artifact_tag(::flyteidl::core::ArtifactTag* artifact_tag) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_identifier(); - if (artifact_tag) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_tag = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_tag, submessage_arena); - } - set_has_artifact_tag(); - identifier_.artifact_tag_ = artifact_tag; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactQuery.artifact_tag) -} -void ArtifactQuery::set_allocated_binding(::flyteidl::core::ArtifactBindingData* binding) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_identifier(); - if (binding) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - binding = ::google::protobuf::internal::GetOwnedMessage( - message_arena, binding, submessage_arena); - } - set_has_binding(); - identifier_.binding_ = binding; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactQuery.binding) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactQuery::kArtifactIdFieldNumber; -const int ArtifactQuery::kArtifactTagFieldNumber; -const int ArtifactQuery::kUriFieldNumber; -const int ArtifactQuery::kBindingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactQuery::ArtifactQuery() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArtifactQuery) -} -ArtifactQuery::ArtifactQuery(const ArtifactQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_identifier(); - switch (from.identifier_case()) { - case kArtifactId: { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - break; - } - case kArtifactTag: { - mutable_artifact_tag()->::flyteidl::core::ArtifactTag::MergeFrom(from.artifact_tag()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case kBinding: { - mutable_binding()->::flyteidl::core::ArtifactBindingData::MergeFrom(from.binding()); - break; - } - case IDENTIFIER_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArtifactQuery) -} - -void ArtifactQuery::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - clear_has_identifier(); -} - -ArtifactQuery::~ArtifactQuery() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArtifactQuery) - SharedDtor(); -} - -void ArtifactQuery::SharedDtor() { - if (has_identifier()) { - clear_identifier(); - } -} - -void ArtifactQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactQuery& ArtifactQuery::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactQuery::clear_identifier() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.ArtifactQuery) - switch (identifier_case()) { - case kArtifactId: { - delete identifier_.artifact_id_; - break; - } - case kArtifactTag: { - delete identifier_.artifact_tag_; - break; - } - case kUri: { - identifier_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kBinding: { - delete identifier_.binding_; - break; - } - case IDENTIFIER_NOT_SET: { - break; - } - } - _oneof_case_[0] = IDENTIFIER_NOT_SET; -} - - -void ArtifactQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArtifactQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_identifier(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactQuery::_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.ArtifactID artifact_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::ArtifactID::_InternalParse; - object = msg->mutable_artifact_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; - } - // .flyteidl.core.ArtifactTag artifact_tag = 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::core::ArtifactTag::_InternalParse; - object = msg->mutable_artifact_tag(); - 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; - } - // string uri = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ArtifactQuery.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ArtifactBindingData binding = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactBindingData::_InternalParse; - object = msg->mutable_binding(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactQuery::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.core.ArtifactQuery) - 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.ArtifactID artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactTag artifact_tag = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_tag())); - } else { - goto handle_unusual; - } - break; - } - - // string uri = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ArtifactQuery.uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactBindingData binding = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_binding())); - } 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.core.ArtifactQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArtifactQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArtifactQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact_id(this), output); - } - - // .flyteidl.core.ArtifactTag artifact_tag = 2; - if (has_artifact_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::artifact_tag(this), output); - } - - // string uri = 3; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactQuery.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->uri(), output); - } - - // .flyteidl.core.ArtifactBindingData binding = 4; - if (has_binding()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::binding(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArtifactQuery) -} - -::google::protobuf::uint8* ArtifactQuery::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArtifactQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ArtifactID artifact_id = 1; - if (has_artifact_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact_id(this), target); - } - - // .flyteidl.core.ArtifactTag artifact_tag = 2; - if (has_artifact_tag()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::artifact_tag(this), target); - } - - // string uri = 3; - if (has_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ArtifactQuery.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->uri(), target); - } - - // .flyteidl.core.ArtifactBindingData binding = 4; - if (has_binding()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::binding(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.core.ArtifactQuery) - return target; -} - -size_t ArtifactQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArtifactQuery) - 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 (identifier_case()) { - // .flyteidl.core.ArtifactID artifact_id = 1; - case kArtifactId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *identifier_.artifact_id_); - break; - } - // .flyteidl.core.ArtifactTag artifact_tag = 2; - case kArtifactTag: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *identifier_.artifact_tag_); - break; - } - // string uri = 3; - case kUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - break; - } - // .flyteidl.core.ArtifactBindingData binding = 4; - case kBinding: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *identifier_.binding_); - break; - } - case IDENTIFIER_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArtifactQuery) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactQuery* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArtifactQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArtifactQuery) - MergeFrom(*source); - } -} - -void ArtifactQuery::MergeFrom(const ArtifactQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArtifactQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.identifier_case()) { - case kArtifactId: { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - break; - } - case kArtifactTag: { - mutable_artifact_tag()->::flyteidl::core::ArtifactTag::MergeFrom(from.artifact_tag()); - break; - } - case kUri: { - set_uri(from.uri()); - break; - } - case kBinding: { - mutable_binding()->::flyteidl::core::ArtifactBindingData::MergeFrom(from.binding()); - break; - } - case IDENTIFIER_NOT_SET: { - break; - } - } -} - -void ArtifactQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArtifactQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactQuery::CopyFrom(const ArtifactQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArtifactQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactQuery::IsInitialized() const { - return true; -} - -void ArtifactQuery::Swap(ArtifactQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactQuery::InternalSwap(ArtifactQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(identifier_, other->identifier_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ArtifactQuery::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Trigger::InitAsDefaultInstance() { - ::flyteidl::core::_Trigger_default_instance_._instance.get_mutable()->trigger_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class Trigger::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& trigger_id(const Trigger* msg); -}; - -const ::flyteidl::core::Identifier& -Trigger::HasBitSetters::trigger_id(const Trigger* msg) { - return *msg->trigger_id_; -} -void Trigger::clear_trigger_id() { - if (GetArenaNoVirtual() == nullptr && trigger_id_ != nullptr) { - delete trigger_id_; - } - trigger_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Trigger::kTriggerIdFieldNumber; -const int Trigger::kTriggersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Trigger::Trigger() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Trigger) -} -Trigger::Trigger(const Trigger& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - triggers_(from.triggers_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_trigger_id()) { - trigger_id_ = new ::flyteidl::core::Identifier(*from.trigger_id_); - } else { - trigger_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Trigger) -} - -void Trigger::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Trigger_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - trigger_id_ = nullptr; -} - -Trigger::~Trigger() { - // @@protoc_insertion_point(destructor:flyteidl.core.Trigger) - SharedDtor(); -} - -void Trigger::SharedDtor() { - if (this != internal_default_instance()) delete trigger_id_; -} - -void Trigger::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Trigger& Trigger::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Trigger_flyteidl_2fcore_2fartifact_5fid_2eproto.base); - return *internal_default_instance(); -} - - -void Trigger::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Trigger) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - triggers_.Clear(); - if (GetArenaNoVirtual() == nullptr && trigger_id_ != nullptr) { - delete trigger_id_; - } - trigger_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Trigger::_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 trigger_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_trigger_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; - } - // repeated .flyteidl.core.ArtifactID triggers = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_triggers(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 Trigger::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.core.Trigger) - 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 trigger_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_trigger_id())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID triggers = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_triggers())); - } 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.core.Trigger) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Trigger) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Trigger::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Trigger) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier trigger_id = 1; - if (this->has_trigger_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::trigger_id(this), output); - } - - // repeated .flyteidl.core.ArtifactID triggers = 2; - for (unsigned int i = 0, - n = static_cast(this->triggers_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->triggers(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Trigger) -} - -::google::protobuf::uint8* Trigger::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Trigger) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier trigger_id = 1; - if (this->has_trigger_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::trigger_id(this), target); - } - - // repeated .flyteidl.core.ArtifactID triggers = 2; - for (unsigned int i = 0, - n = static_cast(this->triggers_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->triggers(static_cast(i)), 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.core.Trigger) - return target; -} - -size_t Trigger::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Trigger) - 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; - - // repeated .flyteidl.core.ArtifactID triggers = 2; - { - unsigned int count = static_cast(this->triggers_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->triggers(static_cast(i))); - } - } - - // .flyteidl.core.Identifier trigger_id = 1; - if (this->has_trigger_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *trigger_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Trigger::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Trigger) - GOOGLE_DCHECK_NE(&from, this); - const Trigger* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Trigger) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Trigger) - MergeFrom(*source); - } -} - -void Trigger::MergeFrom(const Trigger& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Trigger) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - triggers_.MergeFrom(from.triggers_); - if (from.has_trigger_id()) { - mutable_trigger_id()->::flyteidl::core::Identifier::MergeFrom(from.trigger_id()); - } -} - -void Trigger::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Trigger) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Trigger::CopyFrom(const Trigger& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Trigger) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Trigger::IsInitialized() const { - return true; -} - -void Trigger::Swap(Trigger* other) { - if (other == this) return; - InternalSwap(other); -} -void Trigger::InternalSwap(Trigger* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&triggers_)->InternalSwap(CastToBase(&other->triggers_)); - swap(trigger_id_, other->trigger_id_); -} - -::google::protobuf::Metadata Trigger::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fartifact_5fid_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fartifact_5fid_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArtifactKey* Arena::CreateMaybeMessage< ::flyteidl::core::ArtifactKey >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArtifactKey >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArtifactBindingData* Arena::CreateMaybeMessage< ::flyteidl::core::ArtifactBindingData >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArtifactBindingData >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::InputBindingData* Arena::CreateMaybeMessage< ::flyteidl::core::InputBindingData >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::InputBindingData >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::LabelValue* Arena::CreateMaybeMessage< ::flyteidl::core::LabelValue >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::LabelValue >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Partitions_ValueEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::Partitions_ValueEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Partitions_ValueEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Partitions* Arena::CreateMaybeMessage< ::flyteidl::core::Partitions >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Partitions >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArtifactID* Arena::CreateMaybeMessage< ::flyteidl::core::ArtifactID >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArtifactID >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArtifactTag* Arena::CreateMaybeMessage< ::flyteidl::core::ArtifactTag >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArtifactTag >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArtifactQuery* Arena::CreateMaybeMessage< ::flyteidl::core::ArtifactQuery >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArtifactQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Trigger* Arena::CreateMaybeMessage< ::flyteidl::core::Trigger >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Trigger >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.h deleted file mode 100644 index 12c9cbd59f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/artifact_id.pb.h +++ /dev/null @@ -1,2573 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/artifact_id.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fartifact_5fid_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fartifact_5fid_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "flyteidl/core/identifier.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[10] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto(); -namespace flyteidl { -namespace core { -class ArtifactBindingData; -class ArtifactBindingDataDefaultTypeInternal; -extern ArtifactBindingDataDefaultTypeInternal _ArtifactBindingData_default_instance_; -class ArtifactID; -class ArtifactIDDefaultTypeInternal; -extern ArtifactIDDefaultTypeInternal _ArtifactID_default_instance_; -class ArtifactKey; -class ArtifactKeyDefaultTypeInternal; -extern ArtifactKeyDefaultTypeInternal _ArtifactKey_default_instance_; -class ArtifactQuery; -class ArtifactQueryDefaultTypeInternal; -extern ArtifactQueryDefaultTypeInternal _ArtifactQuery_default_instance_; -class ArtifactTag; -class ArtifactTagDefaultTypeInternal; -extern ArtifactTagDefaultTypeInternal _ArtifactTag_default_instance_; -class InputBindingData; -class InputBindingDataDefaultTypeInternal; -extern InputBindingDataDefaultTypeInternal _InputBindingData_default_instance_; -class LabelValue; -class LabelValueDefaultTypeInternal; -extern LabelValueDefaultTypeInternal _LabelValue_default_instance_; -class Partitions; -class PartitionsDefaultTypeInternal; -extern PartitionsDefaultTypeInternal _Partitions_default_instance_; -class Partitions_ValueEntry_DoNotUse; -class Partitions_ValueEntry_DoNotUseDefaultTypeInternal; -extern Partitions_ValueEntry_DoNotUseDefaultTypeInternal _Partitions_ValueEntry_DoNotUse_default_instance_; -class Trigger; -class TriggerDefaultTypeInternal; -extern TriggerDefaultTypeInternal _Trigger_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::ArtifactBindingData* Arena::CreateMaybeMessage<::flyteidl::core::ArtifactBindingData>(Arena*); -template<> ::flyteidl::core::ArtifactID* Arena::CreateMaybeMessage<::flyteidl::core::ArtifactID>(Arena*); -template<> ::flyteidl::core::ArtifactKey* Arena::CreateMaybeMessage<::flyteidl::core::ArtifactKey>(Arena*); -template<> ::flyteidl::core::ArtifactQuery* Arena::CreateMaybeMessage<::flyteidl::core::ArtifactQuery>(Arena*); -template<> ::flyteidl::core::ArtifactTag* Arena::CreateMaybeMessage<::flyteidl::core::ArtifactTag>(Arena*); -template<> ::flyteidl::core::InputBindingData* Arena::CreateMaybeMessage<::flyteidl::core::InputBindingData>(Arena*); -template<> ::flyteidl::core::LabelValue* Arena::CreateMaybeMessage<::flyteidl::core::LabelValue>(Arena*); -template<> ::flyteidl::core::Partitions* Arena::CreateMaybeMessage<::flyteidl::core::Partitions>(Arena*); -template<> ::flyteidl::core::Partitions_ValueEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::Partitions_ValueEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::Trigger* Arena::CreateMaybeMessage<::flyteidl::core::Trigger>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class ArtifactKey final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArtifactKey) */ { - public: - ArtifactKey(); - virtual ~ArtifactKey(); - - ArtifactKey(const ArtifactKey& from); - - inline ArtifactKey& operator=(const ArtifactKey& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactKey(ArtifactKey&& from) noexcept - : ArtifactKey() { - *this = ::std::move(from); - } - - inline ArtifactKey& operator=(ArtifactKey&& 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 ArtifactKey& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactKey* internal_default_instance() { - return reinterpret_cast( - &_ArtifactKey_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ArtifactKey* other); - friend void swap(ArtifactKey& a, ArtifactKey& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactKey* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactKey* 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 ArtifactKey& from); - void MergeFrom(const ArtifactKey& 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(ArtifactKey* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactKey) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactBindingData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArtifactBindingData) */ { - public: - ArtifactBindingData(); - virtual ~ArtifactBindingData(); - - ArtifactBindingData(const ArtifactBindingData& from); - - inline ArtifactBindingData& operator=(const ArtifactBindingData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactBindingData(ArtifactBindingData&& from) noexcept - : ArtifactBindingData() { - *this = ::std::move(from); - } - - inline ArtifactBindingData& operator=(ArtifactBindingData&& 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 ArtifactBindingData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactBindingData* internal_default_instance() { - return reinterpret_cast( - &_ArtifactBindingData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ArtifactBindingData* other); - friend void swap(ArtifactBindingData& a, ArtifactBindingData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactBindingData* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactBindingData* 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 ArtifactBindingData& from); - void MergeFrom(const ArtifactBindingData& 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(ArtifactBindingData* 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 ------------------------------------------------------- - - // string partition_key = 2; - void clear_partition_key(); - static const int kPartitionKeyFieldNumber = 2; - const ::std::string& partition_key() const; - void set_partition_key(const ::std::string& value); - #if LANG_CXX11 - void set_partition_key(::std::string&& value); - #endif - void set_partition_key(const char* value); - void set_partition_key(const char* value, size_t size); - ::std::string* mutable_partition_key(); - ::std::string* release_partition_key(); - void set_allocated_partition_key(::std::string* partition_key); - - // string transform = 3; - void clear_transform(); - static const int kTransformFieldNumber = 3; - const ::std::string& transform() const; - void set_transform(const ::std::string& value); - #if LANG_CXX11 - void set_transform(::std::string&& value); - #endif - void set_transform(const char* value); - void set_transform(const char* value, size_t size); - ::std::string* mutable_transform(); - ::std::string* release_transform(); - void set_allocated_transform(::std::string* transform); - - // uint32 index = 1; - void clear_index(); - static const int kIndexFieldNumber = 1; - ::google::protobuf::uint32 index() const; - void set_index(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactBindingData) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr partition_key_; - ::google::protobuf::internal::ArenaStringPtr transform_; - ::google::protobuf::uint32 index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class InputBindingData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.InputBindingData) */ { - public: - InputBindingData(); - virtual ~InputBindingData(); - - InputBindingData(const InputBindingData& from); - - inline InputBindingData& operator=(const InputBindingData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - InputBindingData(InputBindingData&& from) noexcept - : InputBindingData() { - *this = ::std::move(from); - } - - inline InputBindingData& operator=(InputBindingData&& 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 InputBindingData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InputBindingData* internal_default_instance() { - return reinterpret_cast( - &_InputBindingData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(InputBindingData* other); - friend void swap(InputBindingData& a, InputBindingData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline InputBindingData* New() const final { - return CreateMaybeMessage(nullptr); - } - - InputBindingData* 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 InputBindingData& from); - void MergeFrom(const InputBindingData& 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(InputBindingData* 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 ------------------------------------------------------- - - // string var = 1; - void clear_var(); - static const int kVarFieldNumber = 1; - const ::std::string& var() const; - void set_var(const ::std::string& value); - #if LANG_CXX11 - void set_var(::std::string&& value); - #endif - void set_var(const char* value); - void set_var(const char* value, size_t size); - ::std::string* mutable_var(); - ::std::string* release_var(); - void set_allocated_var(::std::string* var); - - // @@protoc_insertion_point(class_scope:flyteidl.core.InputBindingData) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr var_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class LabelValue final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LabelValue) */ { - public: - LabelValue(); - virtual ~LabelValue(); - - LabelValue(const LabelValue& from); - - inline LabelValue& operator=(const LabelValue& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LabelValue(LabelValue&& from) noexcept - : LabelValue() { - *this = ::std::move(from); - } - - inline LabelValue& operator=(LabelValue&& 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 LabelValue& default_instance(); - - enum ValueCase { - kStaticValue = 1, - kTriggeredBinding = 2, - kInputBinding = 3, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LabelValue* internal_default_instance() { - return reinterpret_cast( - &_LabelValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(LabelValue* other); - friend void swap(LabelValue& a, LabelValue& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LabelValue* New() const final { - return CreateMaybeMessage(nullptr); - } - - LabelValue* 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 LabelValue& from); - void MergeFrom(const LabelValue& 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(LabelValue* 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 ------------------------------------------------------- - - // string static_value = 1; - private: - bool has_static_value() const; - public: - void clear_static_value(); - static const int kStaticValueFieldNumber = 1; - const ::std::string& static_value() const; - void set_static_value(const ::std::string& value); - #if LANG_CXX11 - void set_static_value(::std::string&& value); - #endif - void set_static_value(const char* value); - void set_static_value(const char* value, size_t size); - ::std::string* mutable_static_value(); - ::std::string* release_static_value(); - void set_allocated_static_value(::std::string* static_value); - - // .flyteidl.core.ArtifactBindingData triggered_binding = 2; - bool has_triggered_binding() const; - void clear_triggered_binding(); - static const int kTriggeredBindingFieldNumber = 2; - const ::flyteidl::core::ArtifactBindingData& triggered_binding() const; - ::flyteidl::core::ArtifactBindingData* release_triggered_binding(); - ::flyteidl::core::ArtifactBindingData* mutable_triggered_binding(); - void set_allocated_triggered_binding(::flyteidl::core::ArtifactBindingData* triggered_binding); - - // .flyteidl.core.InputBindingData input_binding = 3; - bool has_input_binding() const; - void clear_input_binding(); - static const int kInputBindingFieldNumber = 3; - const ::flyteidl::core::InputBindingData& input_binding() const; - ::flyteidl::core::InputBindingData* release_input_binding(); - ::flyteidl::core::InputBindingData* mutable_input_binding(); - void set_allocated_input_binding(::flyteidl::core::InputBindingData* input_binding); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.LabelValue) - private: - class HasBitSetters; - void set_has_static_value(); - void set_has_triggered_binding(); - void set_has_input_binding(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - ::google::protobuf::internal::ArenaStringPtr static_value_; - ::flyteidl::core::ArtifactBindingData* triggered_binding_; - ::flyteidl::core::InputBindingData* input_binding_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class Partitions_ValueEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Partitions_ValueEntry_DoNotUse(); - Partitions_ValueEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Partitions_ValueEntry_DoNotUse& other); - static const Partitions_ValueEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Partitions_ValueEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Partitions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Partitions) */ { - public: - Partitions(); - virtual ~Partitions(); - - Partitions(const Partitions& from); - - inline Partitions& operator=(const Partitions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Partitions(Partitions&& from) noexcept - : Partitions() { - *this = ::std::move(from); - } - - inline Partitions& operator=(Partitions&& 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 Partitions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Partitions* internal_default_instance() { - return reinterpret_cast( - &_Partitions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(Partitions* other); - friend void swap(Partitions& a, Partitions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Partitions* New() const final { - return CreateMaybeMessage(nullptr); - } - - Partitions* 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 Partitions& from); - void MergeFrom(const Partitions& 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(Partitions* 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 ------------------------------------------------------- - - // map value = 1; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >& - value() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >* - mutable_value(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Partitions) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Partitions_ValueEntry_DoNotUse, - ::std::string, ::flyteidl::core::LabelValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactID final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArtifactID) */ { - public: - ArtifactID(); - virtual ~ArtifactID(); - - ArtifactID(const ArtifactID& from); - - inline ArtifactID& operator=(const ArtifactID& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactID(ArtifactID&& from) noexcept - : ArtifactID() { - *this = ::std::move(from); - } - - inline ArtifactID& operator=(ArtifactID&& 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 ArtifactID& default_instance(); - - enum DimensionsCase { - kPartitions = 3, - DIMENSIONS_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactID* internal_default_instance() { - return reinterpret_cast( - &_ArtifactID_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ArtifactID* other); - friend void swap(ArtifactID& a, ArtifactID& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactID* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactID* 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 ArtifactID& from); - void MergeFrom(const ArtifactID& 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(ArtifactID* 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 ------------------------------------------------------- - - // string version = 2; - void clear_version(); - static const int kVersionFieldNumber = 2; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // .flyteidl.core.ArtifactKey artifact_key = 1; - bool has_artifact_key() const; - void clear_artifact_key(); - static const int kArtifactKeyFieldNumber = 1; - const ::flyteidl::core::ArtifactKey& artifact_key() const; - ::flyteidl::core::ArtifactKey* release_artifact_key(); - ::flyteidl::core::ArtifactKey* mutable_artifact_key(); - void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - - // .flyteidl.core.Partitions partitions = 3; - bool has_partitions() const; - void clear_partitions(); - static const int kPartitionsFieldNumber = 3; - const ::flyteidl::core::Partitions& partitions() const; - ::flyteidl::core::Partitions* release_partitions(); - ::flyteidl::core::Partitions* mutable_partitions(); - void set_allocated_partitions(::flyteidl::core::Partitions* partitions); - - void clear_dimensions(); - DimensionsCase dimensions_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactID) - private: - class HasBitSetters; - void set_has_partitions(); - - inline bool has_dimensions() const; - inline void clear_has_dimensions(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::flyteidl::core::ArtifactKey* artifact_key_; - union DimensionsUnion { - DimensionsUnion() {} - ::flyteidl::core::Partitions* partitions_; - } dimensions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactTag final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArtifactTag) */ { - public: - ArtifactTag(); - virtual ~ArtifactTag(); - - ArtifactTag(const ArtifactTag& from); - - inline ArtifactTag& operator=(const ArtifactTag& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactTag(ArtifactTag&& from) noexcept - : ArtifactTag() { - *this = ::std::move(from); - } - - inline ArtifactTag& operator=(ArtifactTag&& 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 ArtifactTag& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactTag* internal_default_instance() { - return reinterpret_cast( - &_ArtifactTag_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(ArtifactTag* other); - friend void swap(ArtifactTag& a, ArtifactTag& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactTag* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactTag* 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 ArtifactTag& from); - void MergeFrom(const ArtifactTag& 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(ArtifactTag* 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.ArtifactKey artifact_key = 1; - bool has_artifact_key() const; - void clear_artifact_key(); - static const int kArtifactKeyFieldNumber = 1; - const ::flyteidl::core::ArtifactKey& artifact_key() const; - ::flyteidl::core::ArtifactKey* release_artifact_key(); - ::flyteidl::core::ArtifactKey* mutable_artifact_key(); - void set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key); - - // .flyteidl.core.LabelValue value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::flyteidl::core::LabelValue& value() const; - ::flyteidl::core::LabelValue* release_value(); - ::flyteidl::core::LabelValue* mutable_value(); - void set_allocated_value(::flyteidl::core::LabelValue* value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactTag) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::ArtifactKey* artifact_key_; - ::flyteidl::core::LabelValue* value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactQuery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArtifactQuery) */ { - public: - ArtifactQuery(); - virtual ~ArtifactQuery(); - - ArtifactQuery(const ArtifactQuery& from); - - inline ArtifactQuery& operator=(const ArtifactQuery& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactQuery(ArtifactQuery&& from) noexcept - : ArtifactQuery() { - *this = ::std::move(from); - } - - inline ArtifactQuery& operator=(ArtifactQuery&& 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 ArtifactQuery& default_instance(); - - enum IdentifierCase { - kArtifactId = 1, - kArtifactTag = 2, - kUri = 3, - kBinding = 4, - IDENTIFIER_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactQuery* internal_default_instance() { - return reinterpret_cast( - &_ArtifactQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(ArtifactQuery* other); - friend void swap(ArtifactQuery& a, ArtifactQuery& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactQuery* 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 ArtifactQuery& from); - void MergeFrom(const ArtifactQuery& 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(ArtifactQuery* 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.ArtifactID artifact_id = 1; - bool has_artifact_id() const; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::flyteidl::core::ArtifactID& artifact_id() const; - ::flyteidl::core::ArtifactID* release_artifact_id(); - ::flyteidl::core::ArtifactID* mutable_artifact_id(); - void set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id); - - // .flyteidl.core.ArtifactTag artifact_tag = 2; - bool has_artifact_tag() const; - void clear_artifact_tag(); - static const int kArtifactTagFieldNumber = 2; - const ::flyteidl::core::ArtifactTag& artifact_tag() const; - ::flyteidl::core::ArtifactTag* release_artifact_tag(); - ::flyteidl::core::ArtifactTag* mutable_artifact_tag(); - void set_allocated_artifact_tag(::flyteidl::core::ArtifactTag* artifact_tag); - - // string uri = 3; - private: - bool has_uri() const; - public: - void clear_uri(); - static const int kUriFieldNumber = 3; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - // .flyteidl.core.ArtifactBindingData binding = 4; - bool has_binding() const; - void clear_binding(); - static const int kBindingFieldNumber = 4; - const ::flyteidl::core::ArtifactBindingData& binding() const; - ::flyteidl::core::ArtifactBindingData* release_binding(); - ::flyteidl::core::ArtifactBindingData* mutable_binding(); - void set_allocated_binding(::flyteidl::core::ArtifactBindingData* binding); - - void clear_identifier(); - IdentifierCase identifier_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactQuery) - private: - class HasBitSetters; - void set_has_artifact_id(); - void set_has_artifact_tag(); - void set_has_uri(); - void set_has_binding(); - - inline bool has_identifier() const; - inline void clear_has_identifier(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union IdentifierUnion { - IdentifierUnion() {} - ::flyteidl::core::ArtifactID* artifact_id_; - ::flyteidl::core::ArtifactTag* artifact_tag_; - ::google::protobuf::internal::ArenaStringPtr uri_; - ::flyteidl::core::ArtifactBindingData* binding_; - } identifier_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// ------------------------------------------------------------------- - -class Trigger final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Trigger) */ { - public: - Trigger(); - virtual ~Trigger(); - - Trigger(const Trigger& from); - - inline Trigger& operator=(const Trigger& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Trigger(Trigger&& from) noexcept - : Trigger() { - *this = ::std::move(from); - } - - inline Trigger& operator=(Trigger&& 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 Trigger& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Trigger* internal_default_instance() { - return reinterpret_cast( - &_Trigger_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(Trigger* other); - friend void swap(Trigger& a, Trigger& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Trigger* New() const final { - return CreateMaybeMessage(nullptr); - } - - Trigger* 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 Trigger& from); - void MergeFrom(const Trigger& 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(Trigger* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID triggers = 2; - int triggers_size() const; - void clear_triggers(); - static const int kTriggersFieldNumber = 2; - ::flyteidl::core::ArtifactID* mutable_triggers(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_triggers(); - const ::flyteidl::core::ArtifactID& triggers(int index) const; - ::flyteidl::core::ArtifactID* add_triggers(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - triggers() const; - - // .flyteidl.core.Identifier trigger_id = 1; - bool has_trigger_id() const; - void clear_trigger_id(); - static const int kTriggerIdFieldNumber = 1; - const ::flyteidl::core::Identifier& trigger_id() const; - ::flyteidl::core::Identifier* release_trigger_id(); - ::flyteidl::core::Identifier* mutable_trigger_id(); - void set_allocated_trigger_id(::flyteidl::core::Identifier* trigger_id); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Trigger) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > triggers_; - ::flyteidl::core::Identifier* trigger_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fartifact_5fid_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ArtifactKey - -// string project = 1; -inline void ArtifactKey::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactKey::project() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactKey.project) - return project_.GetNoArena(); -} -inline void ArtifactKey::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactKey.project) -} -#if LANG_CXX11 -inline void ArtifactKey::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactKey.project) -} -#endif -inline void ArtifactKey::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactKey.project) -} -inline void ArtifactKey::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactKey.project) -} -inline ::std::string* ArtifactKey::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactKey.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactKey::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactKey.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactKey::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactKey.project) -} - -// string domain = 2; -inline void ArtifactKey::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactKey::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactKey.domain) - return domain_.GetNoArena(); -} -inline void ArtifactKey::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactKey.domain) -} -#if LANG_CXX11 -inline void ArtifactKey::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactKey.domain) -} -#endif -inline void ArtifactKey::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactKey.domain) -} -inline void ArtifactKey::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactKey.domain) -} -inline ::std::string* ArtifactKey::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactKey.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactKey::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactKey.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactKey::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactKey.domain) -} - -// string name = 3; -inline void ArtifactKey::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactKey::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactKey.name) - return name_.GetNoArena(); -} -inline void ArtifactKey::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactKey.name) -} -#if LANG_CXX11 -inline void ArtifactKey::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactKey.name) -} -#endif -inline void ArtifactKey::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactKey.name) -} -inline void ArtifactKey::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactKey.name) -} -inline ::std::string* ArtifactKey::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactKey.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactKey::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactKey.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactKey::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactKey.name) -} - -// ------------------------------------------------------------------- - -// ArtifactBindingData - -// uint32 index = 1; -inline void ArtifactBindingData::clear_index() { - index_ = 0u; -} -inline ::google::protobuf::uint32 ArtifactBindingData::index() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactBindingData.index) - return index_; -} -inline void ArtifactBindingData::set_index(::google::protobuf::uint32 value) { - - index_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactBindingData.index) -} - -// string partition_key = 2; -inline void ArtifactBindingData::clear_partition_key() { - partition_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactBindingData::partition_key() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactBindingData.partition_key) - return partition_key_.GetNoArena(); -} -inline void ArtifactBindingData::set_partition_key(const ::std::string& value) { - - partition_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactBindingData.partition_key) -} -#if LANG_CXX11 -inline void ArtifactBindingData::set_partition_key(::std::string&& value) { - - partition_key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactBindingData.partition_key) -} -#endif -inline void ArtifactBindingData::set_partition_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - partition_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactBindingData.partition_key) -} -inline void ArtifactBindingData::set_partition_key(const char* value, size_t size) { - - partition_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactBindingData.partition_key) -} -inline ::std::string* ArtifactBindingData::mutable_partition_key() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactBindingData.partition_key) - return partition_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactBindingData::release_partition_key() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactBindingData.partition_key) - - return partition_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactBindingData::set_allocated_partition_key(::std::string* partition_key) { - if (partition_key != nullptr) { - - } else { - - } - partition_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), partition_key); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactBindingData.partition_key) -} - -// string transform = 3; -inline void ArtifactBindingData::clear_transform() { - transform_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactBindingData::transform() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactBindingData.transform) - return transform_.GetNoArena(); -} -inline void ArtifactBindingData::set_transform(const ::std::string& value) { - - transform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactBindingData.transform) -} -#if LANG_CXX11 -inline void ArtifactBindingData::set_transform(::std::string&& value) { - - transform_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactBindingData.transform) -} -#endif -inline void ArtifactBindingData::set_transform(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - transform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactBindingData.transform) -} -inline void ArtifactBindingData::set_transform(const char* value, size_t size) { - - transform_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactBindingData.transform) -} -inline ::std::string* ArtifactBindingData::mutable_transform() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactBindingData.transform) - return transform_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactBindingData::release_transform() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactBindingData.transform) - - return transform_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactBindingData::set_allocated_transform(::std::string* transform) { - if (transform != nullptr) { - - } else { - - } - transform_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), transform); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactBindingData.transform) -} - -// ------------------------------------------------------------------- - -// InputBindingData - -// string var = 1; -inline void InputBindingData::clear_var() { - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& InputBindingData::var() const { - // @@protoc_insertion_point(field_get:flyteidl.core.InputBindingData.var) - return var_.GetNoArena(); -} -inline void InputBindingData::set_var(const ::std::string& value) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.InputBindingData.var) -} -#if LANG_CXX11 -inline void InputBindingData::set_var(::std::string&& value) { - - var_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.InputBindingData.var) -} -#endif -inline void InputBindingData::set_var(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.InputBindingData.var) -} -inline void InputBindingData::set_var(const char* value, size_t size) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.InputBindingData.var) -} -inline ::std::string* InputBindingData::mutable_var() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.InputBindingData.var) - return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* InputBindingData::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.InputBindingData.var) - - return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void InputBindingData::set_allocated_var(::std::string* var) { - if (var != nullptr) { - - } else { - - } - var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.InputBindingData.var) -} - -// ------------------------------------------------------------------- - -// LabelValue - -// string static_value = 1; -inline bool LabelValue::has_static_value() const { - return value_case() == kStaticValue; -} -inline void LabelValue::set_has_static_value() { - _oneof_case_[0] = kStaticValue; -} -inline void LabelValue::clear_static_value() { - if (has_static_value()) { - value_.static_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_value(); - } -} -inline const ::std::string& LabelValue::static_value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LabelValue.static_value) - if (has_static_value()) { - return value_.static_value_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void LabelValue::set_static_value(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.LabelValue.static_value) - if (!has_static_value()) { - clear_value(); - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.static_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.LabelValue.static_value) -} -#if LANG_CXX11 -inline void LabelValue::set_static_value(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.LabelValue.static_value) - if (!has_static_value()) { - clear_value(); - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.static_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.LabelValue.static_value) -} -#endif -inline void LabelValue::set_static_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_static_value()) { - clear_value(); - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.static_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.LabelValue.static_value) -} -inline void LabelValue::set_static_value(const char* value, size_t size) { - if (!has_static_value()) { - clear_value(); - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.static_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.LabelValue.static_value) -} -inline ::std::string* LabelValue::mutable_static_value() { - if (!has_static_value()) { - clear_value(); - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LabelValue.static_value) - return value_.static_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LabelValue::release_static_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.LabelValue.static_value) - if (has_static_value()) { - clear_has_value(); - return value_.static_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void LabelValue::set_allocated_static_value(::std::string* static_value) { - if (has_value()) { - clear_value(); - } - if (static_value != nullptr) { - set_has_static_value(); - value_.static_value_.UnsafeSetDefault(static_value); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LabelValue.static_value) -} - -// .flyteidl.core.ArtifactBindingData triggered_binding = 2; -inline bool LabelValue::has_triggered_binding() const { - return value_case() == kTriggeredBinding; -} -inline void LabelValue::set_has_triggered_binding() { - _oneof_case_[0] = kTriggeredBinding; -} -inline void LabelValue::clear_triggered_binding() { - if (has_triggered_binding()) { - delete value_.triggered_binding_; - clear_has_value(); - } -} -inline ::flyteidl::core::ArtifactBindingData* LabelValue::release_triggered_binding() { - // @@protoc_insertion_point(field_release:flyteidl.core.LabelValue.triggered_binding) - if (has_triggered_binding()) { - clear_has_value(); - ::flyteidl::core::ArtifactBindingData* temp = value_.triggered_binding_; - value_.triggered_binding_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactBindingData& LabelValue::triggered_binding() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LabelValue.triggered_binding) - return has_triggered_binding() - ? *value_.triggered_binding_ - : *reinterpret_cast< ::flyteidl::core::ArtifactBindingData*>(&::flyteidl::core::_ArtifactBindingData_default_instance_); -} -inline ::flyteidl::core::ArtifactBindingData* LabelValue::mutable_triggered_binding() { - if (!has_triggered_binding()) { - clear_value(); - set_has_triggered_binding(); - value_.triggered_binding_ = CreateMaybeMessage< ::flyteidl::core::ArtifactBindingData >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LabelValue.triggered_binding) - return value_.triggered_binding_; -} - -// .flyteidl.core.InputBindingData input_binding = 3; -inline bool LabelValue::has_input_binding() const { - return value_case() == kInputBinding; -} -inline void LabelValue::set_has_input_binding() { - _oneof_case_[0] = kInputBinding; -} -inline void LabelValue::clear_input_binding() { - if (has_input_binding()) { - delete value_.input_binding_; - clear_has_value(); - } -} -inline ::flyteidl::core::InputBindingData* LabelValue::release_input_binding() { - // @@protoc_insertion_point(field_release:flyteidl.core.LabelValue.input_binding) - if (has_input_binding()) { - clear_has_value(); - ::flyteidl::core::InputBindingData* temp = value_.input_binding_; - value_.input_binding_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::InputBindingData& LabelValue::input_binding() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LabelValue.input_binding) - return has_input_binding() - ? *value_.input_binding_ - : *reinterpret_cast< ::flyteidl::core::InputBindingData*>(&::flyteidl::core::_InputBindingData_default_instance_); -} -inline ::flyteidl::core::InputBindingData* LabelValue::mutable_input_binding() { - if (!has_input_binding()) { - clear_value(); - set_has_input_binding(); - value_.input_binding_ = CreateMaybeMessage< ::flyteidl::core::InputBindingData >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LabelValue.input_binding) - return value_.input_binding_; -} - -inline bool LabelValue::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void LabelValue::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline LabelValue::ValueCase LabelValue::value_case() const { - return LabelValue::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Partitions - -// map value = 1; -inline int Partitions::value_size() const { - return value_.size(); -} -inline void Partitions::clear_value() { - value_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >& -Partitions::value() const { - // @@protoc_insertion_point(field_map:flyteidl.core.Partitions.value) - return value_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::LabelValue >* -Partitions::mutable_value() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.Partitions.value) - return value_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ArtifactID - -// .flyteidl.core.ArtifactKey artifact_key = 1; -inline bool ArtifactID::has_artifact_key() const { - return this != internal_default_instance() && artifact_key_ != nullptr; -} -inline void ArtifactID::clear_artifact_key() { - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; -} -inline const ::flyteidl::core::ArtifactKey& ArtifactID::artifact_key() const { - const ::flyteidl::core::ArtifactKey* p = artifact_key_; - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactID.artifact_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactKey_default_instance_); -} -inline ::flyteidl::core::ArtifactKey* ArtifactID::release_artifact_key() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactID.artifact_key) - - ::flyteidl::core::ArtifactKey* temp = artifact_key_; - artifact_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactKey* ArtifactID::mutable_artifact_key() { - - if (artifact_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactKey>(GetArenaNoVirtual()); - artifact_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactID.artifact_key) - return artifact_key_; -} -inline void ArtifactID::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_key_; - } - if (artifact_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_key, submessage_arena); - } - - } else { - - } - artifact_key_ = artifact_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactID.artifact_key) -} - -// string version = 2; -inline void ArtifactID::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactID::version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactID.version) - return version_.GetNoArena(); -} -inline void ArtifactID::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactID.version) -} -#if LANG_CXX11 -inline void ArtifactID::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactID.version) -} -#endif -inline void ArtifactID::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactID.version) -} -inline void ArtifactID::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactID.version) -} -inline ::std::string* ArtifactID::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactID.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactID::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactID.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactID::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactID.version) -} - -// .flyteidl.core.Partitions partitions = 3; -inline bool ArtifactID::has_partitions() const { - return dimensions_case() == kPartitions; -} -inline void ArtifactID::set_has_partitions() { - _oneof_case_[0] = kPartitions; -} -inline void ArtifactID::clear_partitions() { - if (has_partitions()) { - delete dimensions_.partitions_; - clear_has_dimensions(); - } -} -inline ::flyteidl::core::Partitions* ArtifactID::release_partitions() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactID.partitions) - if (has_partitions()) { - clear_has_dimensions(); - ::flyteidl::core::Partitions* temp = dimensions_.partitions_; - dimensions_.partitions_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Partitions& ArtifactID::partitions() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactID.partitions) - return has_partitions() - ? *dimensions_.partitions_ - : *reinterpret_cast< ::flyteidl::core::Partitions*>(&::flyteidl::core::_Partitions_default_instance_); -} -inline ::flyteidl::core::Partitions* ArtifactID::mutable_partitions() { - if (!has_partitions()) { - clear_dimensions(); - set_has_partitions(); - dimensions_.partitions_ = CreateMaybeMessage< ::flyteidl::core::Partitions >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactID.partitions) - return dimensions_.partitions_; -} - -inline bool ArtifactID::has_dimensions() const { - return dimensions_case() != DIMENSIONS_NOT_SET; -} -inline void ArtifactID::clear_has_dimensions() { - _oneof_case_[0] = DIMENSIONS_NOT_SET; -} -inline ArtifactID::DimensionsCase ArtifactID::dimensions_case() const { - return ArtifactID::DimensionsCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ArtifactTag - -// .flyteidl.core.ArtifactKey artifact_key = 1; -inline bool ArtifactTag::has_artifact_key() const { - return this != internal_default_instance() && artifact_key_ != nullptr; -} -inline void ArtifactTag::clear_artifact_key() { - if (GetArenaNoVirtual() == nullptr && artifact_key_ != nullptr) { - delete artifact_key_; - } - artifact_key_ = nullptr; -} -inline const ::flyteidl::core::ArtifactKey& ArtifactTag::artifact_key() const { - const ::flyteidl::core::ArtifactKey* p = artifact_key_; - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactTag.artifact_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactKey_default_instance_); -} -inline ::flyteidl::core::ArtifactKey* ArtifactTag::release_artifact_key() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactTag.artifact_key) - - ::flyteidl::core::ArtifactKey* temp = artifact_key_; - artifact_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactKey* ArtifactTag::mutable_artifact_key() { - - if (artifact_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactKey>(GetArenaNoVirtual()); - artifact_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactTag.artifact_key) - return artifact_key_; -} -inline void ArtifactTag::set_allocated_artifact_key(::flyteidl::core::ArtifactKey* artifact_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_key_; - } - if (artifact_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_key, submessage_arena); - } - - } else { - - } - artifact_key_ = artifact_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactTag.artifact_key) -} - -// .flyteidl.core.LabelValue value = 2; -inline bool ArtifactTag::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline void ArtifactTag::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -inline const ::flyteidl::core::LabelValue& ArtifactTag::value() const { - const ::flyteidl::core::LabelValue* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactTag.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LabelValue_default_instance_); -} -inline ::flyteidl::core::LabelValue* ArtifactTag::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactTag.value) - - ::flyteidl::core::LabelValue* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::LabelValue* ArtifactTag::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LabelValue>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactTag.value) - return value_; -} -inline void ArtifactTag::set_allocated_value(::flyteidl::core::LabelValue* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete value_; - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactTag.value) -} - -// ------------------------------------------------------------------- - -// ArtifactQuery - -// .flyteidl.core.ArtifactID artifact_id = 1; -inline bool ArtifactQuery::has_artifact_id() const { - return identifier_case() == kArtifactId; -} -inline void ArtifactQuery::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline void ArtifactQuery::clear_artifact_id() { - if (has_artifact_id()) { - delete identifier_.artifact_id_; - clear_has_identifier(); - } -} -inline ::flyteidl::core::ArtifactID* ArtifactQuery::release_artifact_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactQuery.artifact_id) - if (has_artifact_id()) { - clear_has_identifier(); - ::flyteidl::core::ArtifactID* temp = identifier_.artifact_id_; - identifier_.artifact_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactID& ArtifactQuery::artifact_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactQuery.artifact_id) - return has_artifact_id() - ? *identifier_.artifact_id_ - : *reinterpret_cast< ::flyteidl::core::ArtifactID*>(&::flyteidl::core::_ArtifactID_default_instance_); -} -inline ::flyteidl::core::ArtifactID* ArtifactQuery::mutable_artifact_id() { - if (!has_artifact_id()) { - clear_identifier(); - set_has_artifact_id(); - identifier_.artifact_id_ = CreateMaybeMessage< ::flyteidl::core::ArtifactID >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactQuery.artifact_id) - return identifier_.artifact_id_; -} - -// .flyteidl.core.ArtifactTag artifact_tag = 2; -inline bool ArtifactQuery::has_artifact_tag() const { - return identifier_case() == kArtifactTag; -} -inline void ArtifactQuery::set_has_artifact_tag() { - _oneof_case_[0] = kArtifactTag; -} -inline void ArtifactQuery::clear_artifact_tag() { - if (has_artifact_tag()) { - delete identifier_.artifact_tag_; - clear_has_identifier(); - } -} -inline ::flyteidl::core::ArtifactTag* ArtifactQuery::release_artifact_tag() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactQuery.artifact_tag) - if (has_artifact_tag()) { - clear_has_identifier(); - ::flyteidl::core::ArtifactTag* temp = identifier_.artifact_tag_; - identifier_.artifact_tag_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactTag& ArtifactQuery::artifact_tag() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactQuery.artifact_tag) - return has_artifact_tag() - ? *identifier_.artifact_tag_ - : *reinterpret_cast< ::flyteidl::core::ArtifactTag*>(&::flyteidl::core::_ArtifactTag_default_instance_); -} -inline ::flyteidl::core::ArtifactTag* ArtifactQuery::mutable_artifact_tag() { - if (!has_artifact_tag()) { - clear_identifier(); - set_has_artifact_tag(); - identifier_.artifact_tag_ = CreateMaybeMessage< ::flyteidl::core::ArtifactTag >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactQuery.artifact_tag) - return identifier_.artifact_tag_; -} - -// string uri = 3; -inline bool ArtifactQuery::has_uri() const { - return identifier_case() == kUri; -} -inline void ArtifactQuery::set_has_uri() { - _oneof_case_[0] = kUri; -} -inline void ArtifactQuery::clear_uri() { - if (has_uri()) { - identifier_.uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_identifier(); - } -} -inline const ::std::string& ArtifactQuery::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactQuery.uri) - if (has_uri()) { - return identifier_.uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void ArtifactQuery::set_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactQuery.uri) - if (!has_uri()) { - clear_identifier(); - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - identifier_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactQuery.uri) -} -#if LANG_CXX11 -inline void ArtifactQuery::set_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.ArtifactQuery.uri) - if (!has_uri()) { - clear_identifier(); - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - identifier_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ArtifactQuery.uri) -} -#endif -inline void ArtifactQuery::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_uri()) { - clear_identifier(); - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - identifier_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ArtifactQuery.uri) -} -inline void ArtifactQuery::set_uri(const char* value, size_t size) { - if (!has_uri()) { - clear_identifier(); - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - identifier_.uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ArtifactQuery.uri) -} -inline ::std::string* ArtifactQuery::mutable_uri() { - if (!has_uri()) { - clear_identifier(); - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactQuery.uri) - return identifier_.uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactQuery::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactQuery.uri) - if (has_uri()) { - clear_has_identifier(); - return identifier_.uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void ArtifactQuery::set_allocated_uri(::std::string* uri) { - if (has_identifier()) { - clear_identifier(); - } - if (uri != nullptr) { - set_has_uri(); - identifier_.uri_.UnsafeSetDefault(uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArtifactQuery.uri) -} - -// .flyteidl.core.ArtifactBindingData binding = 4; -inline bool ArtifactQuery::has_binding() const { - return identifier_case() == kBinding; -} -inline void ArtifactQuery::set_has_binding() { - _oneof_case_[0] = kBinding; -} -inline void ArtifactQuery::clear_binding() { - if (has_binding()) { - delete identifier_.binding_; - clear_has_identifier(); - } -} -inline ::flyteidl::core::ArtifactBindingData* ArtifactQuery::release_binding() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArtifactQuery.binding) - if (has_binding()) { - clear_has_identifier(); - ::flyteidl::core::ArtifactBindingData* temp = identifier_.binding_; - identifier_.binding_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactBindingData& ArtifactQuery::binding() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArtifactQuery.binding) - return has_binding() - ? *identifier_.binding_ - : *reinterpret_cast< ::flyteidl::core::ArtifactBindingData*>(&::flyteidl::core::_ArtifactBindingData_default_instance_); -} -inline ::flyteidl::core::ArtifactBindingData* ArtifactQuery::mutable_binding() { - if (!has_binding()) { - clear_identifier(); - set_has_binding(); - identifier_.binding_ = CreateMaybeMessage< ::flyteidl::core::ArtifactBindingData >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArtifactQuery.binding) - return identifier_.binding_; -} - -inline bool ArtifactQuery::has_identifier() const { - return identifier_case() != IDENTIFIER_NOT_SET; -} -inline void ArtifactQuery::clear_has_identifier() { - _oneof_case_[0] = IDENTIFIER_NOT_SET; -} -inline ArtifactQuery::IdentifierCase ArtifactQuery::identifier_case() const { - return ArtifactQuery::IdentifierCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Trigger - -// .flyteidl.core.Identifier trigger_id = 1; -inline bool Trigger::has_trigger_id() const { - return this != internal_default_instance() && trigger_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& Trigger::trigger_id() const { - const ::flyteidl::core::Identifier* p = trigger_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.Trigger.trigger_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* Trigger::release_trigger_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Trigger.trigger_id) - - ::flyteidl::core::Identifier* temp = trigger_id_; - trigger_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* Trigger::mutable_trigger_id() { - - if (trigger_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - trigger_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Trigger.trigger_id) - return trigger_id_; -} -inline void Trigger::set_allocated_trigger_id(::flyteidl::core::Identifier* trigger_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(trigger_id_); - } - if (trigger_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - trigger_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, trigger_id, submessage_arena); - } - - } else { - - } - trigger_id_ = trigger_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Trigger.trigger_id) -} - -// repeated .flyteidl.core.ArtifactID triggers = 2; -inline int Trigger::triggers_size() const { - return triggers_.size(); -} -inline void Trigger::clear_triggers() { - triggers_.Clear(); -} -inline ::flyteidl::core::ArtifactID* Trigger::mutable_triggers(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Trigger.triggers) - return triggers_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -Trigger::mutable_triggers() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Trigger.triggers) - return &triggers_; -} -inline const ::flyteidl::core::ArtifactID& Trigger::triggers(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Trigger.triggers) - return triggers_.Get(index); -} -inline ::flyteidl::core::ArtifactID* Trigger::add_triggers() { - // @@protoc_insertion_point(field_add:flyteidl.core.Trigger.triggers) - return triggers_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -Trigger::triggers() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Trigger.triggers) - return triggers_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fartifact_5fid_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc deleted file mode 100644 index 3503ab8884..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/catalog.proto - -#include "flyteidl/core/catalog.pb.h" -#include "flyteidl/core/catalog.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h deleted file mode 100644 index b6c1b8f436..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/catalog.proto -#ifndef GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED - -#include "flyteidl/core/catalog.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fcatalog_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc deleted file mode 100644 index e366a80acd..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.cc +++ /dev/null @@ -1,1297 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/catalog.proto - -#include "flyteidl/core/catalog.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -namespace flyteidl { -namespace core { -class CatalogArtifactTagDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CatalogArtifactTag_default_instance_; -class CatalogMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::TaskExecutionIdentifier* source_task_execution_; -} _CatalogMetadata_default_instance_; -class CatalogReservationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CatalogReservation_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsCatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CatalogArtifactTag_default_instance_; - new (ptr) ::flyteidl::core::CatalogArtifactTag(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CatalogArtifactTag::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto}, {}}; - -static void InitDefaultsCatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CatalogMetadata_default_instance_; - new (ptr) ::flyteidl::core::CatalogMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CatalogMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base, - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsCatalogReservation_flyteidl_2fcore_2fcatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CatalogReservation_default_instance_; - new (ptr) ::flyteidl::core::CatalogReservation(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CatalogReservation::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCatalogReservation_flyteidl_2fcore_2fcatalog_2eproto}, {}}; - -void InitDefaults_flyteidl_2fcore_2fcatalog_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[3]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcatalog_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, artifact_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogArtifactTag, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, dataset_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, artifact_tag_), - offsetof(::flyteidl::core::CatalogMetadataDefaultTypeInternal, source_task_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogMetadata, source_execution_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CatalogReservation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::CatalogArtifactTag)}, - { 7, -1, sizeof(::flyteidl::core::CatalogMetadata)}, - { 16, -1, sizeof(::flyteidl::core::CatalogReservation)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_CatalogArtifactTag_default_instance_), - reinterpret_cast(&::flyteidl::core::_CatalogMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_CatalogReservation_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, "flyteidl/core/catalog.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fcatalog_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto, 3, file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcatalog_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fcatalog_2eproto[] = - "\n\033flyteidl/core/catalog.proto\022\rflyteidl." - "core\032\036flyteidl/core/identifier.proto\"7\n\022" - "CatalogArtifactTag\022\023\n\013artifact_id\030\001 \001(\t\022" - "\014\n\004name\030\002 \001(\t\"\326\001\n\017CatalogMetadata\022-\n\ndat" - "aset_id\030\001 \001(\0132\031.flyteidl.core.Identifier" - "\0227\n\014artifact_tag\030\002 \001(\0132!.flyteidl.core.C" - "atalogArtifactTag\022G\n\025source_task_executi" - "on\030\003 \001(\0132&.flyteidl.core.TaskExecutionId" - "entifierH\000B\022\n\020source_execution\"\236\001\n\022Catal" - "ogReservation\"\207\001\n\006Status\022\030\n\024RESERVATION_" - "DISABLED\020\000\022\030\n\024RESERVATION_ACQUIRED\020\001\022\026\n\022" - "RESERVATION_EXISTS\020\002\022\030\n\024RESERVATION_RELE" - "ASED\020\003\022\027\n\023RESERVATION_FAILURE\020\004*\240\001\n\022Cata" - "logCacheStatus\022\022\n\016CACHE_DISABLED\020\000\022\016\n\nCA" - "CHE_MISS\020\001\022\r\n\tCACHE_HIT\020\002\022\023\n\017CACHE_POPUL" - "ATED\020\003\022\030\n\024CACHE_LOOKUP_FAILURE\020\004\022\025\n\021CACH" - "E_PUT_FAILURE\020\005\022\021\n\rCACHE_SKIPPED\020\006B= 1900 -const CatalogReservation_Status CatalogReservation::RESERVATION_DISABLED; -const CatalogReservation_Status CatalogReservation::RESERVATION_ACQUIRED; -const CatalogReservation_Status CatalogReservation::RESERVATION_EXISTS; -const CatalogReservation_Status CatalogReservation::RESERVATION_RELEASED; -const CatalogReservation_Status CatalogReservation::RESERVATION_FAILURE; -const CatalogReservation_Status CatalogReservation::Status_MIN; -const CatalogReservation_Status CatalogReservation::Status_MAX; -const int CatalogReservation::Status_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* CatalogCacheStatus_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fcatalog_2eproto[1]; -} -bool CatalogCacheStatus_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - - -// =================================================================== - -void CatalogArtifactTag::InitAsDefaultInstance() { -} -class CatalogArtifactTag::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CatalogArtifactTag::kArtifactIdFieldNumber; -const int CatalogArtifactTag::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CatalogArtifactTag::CatalogArtifactTag() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CatalogArtifactTag) -} -CatalogArtifactTag::CatalogArtifactTag(const CatalogArtifactTag& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.artifact_id().size() > 0) { - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogArtifactTag) -} - -void CatalogArtifactTag::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -CatalogArtifactTag::~CatalogArtifactTag() { - // @@protoc_insertion_point(destructor:flyteidl.core.CatalogArtifactTag) - SharedDtor(); -} - -void CatalogArtifactTag::SharedDtor() { - artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void CatalogArtifactTag::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CatalogArtifactTag& CatalogArtifactTag::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CatalogArtifactTag_flyteidl_2fcore_2fcatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CatalogArtifactTag::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CatalogArtifactTag::_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) { - // string artifact_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.CatalogArtifactTag.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.CatalogArtifactTag.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CatalogArtifactTag::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.core.CatalogArtifactTag) - 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)) { - // string artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.CatalogArtifactTag.artifact_id")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.CatalogArtifactTag.name")); - } 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.core.CatalogArtifactTag) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogArtifactTag) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CatalogArtifactTag::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.CatalogArtifactTag.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->artifact_id(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.CatalogArtifactTag.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogArtifactTag) -} - -::google::protobuf::uint8* CatalogArtifactTag::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogArtifactTag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.CatalogArtifactTag.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->artifact_id(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.CatalogArtifactTag.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), 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.core.CatalogArtifactTag) - return target; -} - -size_t CatalogArtifactTag::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogArtifactTag) - 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; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CatalogArtifactTag::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogArtifactTag) - GOOGLE_DCHECK_NE(&from, this); - const CatalogArtifactTag* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogArtifactTag) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogArtifactTag) - MergeFrom(*source); - } -} - -void CatalogArtifactTag::MergeFrom(const CatalogArtifactTag& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogArtifactTag) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.artifact_id().size() > 0) { - - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void CatalogArtifactTag::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogArtifactTag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CatalogArtifactTag::CopyFrom(const CatalogArtifactTag& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogArtifactTag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CatalogArtifactTag::IsInitialized() const { - return true; -} - -void CatalogArtifactTag::Swap(CatalogArtifactTag* other) { - if (other == this) return; - InternalSwap(other); -} -void CatalogArtifactTag::InternalSwap(CatalogArtifactTag* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata CatalogArtifactTag::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CatalogMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_CatalogMetadata_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_CatalogMetadata_default_instance_._instance.get_mutable()->artifact_tag_ = const_cast< ::flyteidl::core::CatalogArtifactTag*>( - ::flyteidl::core::CatalogArtifactTag::internal_default_instance()); - ::flyteidl::core::_CatalogMetadata_default_instance_.source_task_execution_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); -} -class CatalogMetadata::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& dataset_id(const CatalogMetadata* msg); - static const ::flyteidl::core::CatalogArtifactTag& artifact_tag(const CatalogMetadata* msg); - static const ::flyteidl::core::TaskExecutionIdentifier& source_task_execution(const CatalogMetadata* msg); -}; - -const ::flyteidl::core::Identifier& -CatalogMetadata::HasBitSetters::dataset_id(const CatalogMetadata* msg) { - return *msg->dataset_id_; -} -const ::flyteidl::core::CatalogArtifactTag& -CatalogMetadata::HasBitSetters::artifact_tag(const CatalogMetadata* msg) { - return *msg->artifact_tag_; -} -const ::flyteidl::core::TaskExecutionIdentifier& -CatalogMetadata::HasBitSetters::source_task_execution(const CatalogMetadata* msg) { - return *msg->source_execution_.source_task_execution_; -} -void CatalogMetadata::clear_dataset_id() { - if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { - delete dataset_id_; - } - dataset_id_ = nullptr; -} -void CatalogMetadata::set_allocated_source_task_execution(::flyteidl::core::TaskExecutionIdentifier* source_task_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_source_execution(); - if (source_task_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - source_task_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, source_task_execution, submessage_arena); - } - set_has_source_task_execution(); - source_execution_.source_task_execution_ = source_task_execution; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.source_task_execution) -} -void CatalogMetadata::clear_source_task_execution() { - if (has_source_task_execution()) { - delete source_execution_.source_task_execution_; - clear_has_source_execution(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CatalogMetadata::kDatasetIdFieldNumber; -const int CatalogMetadata::kArtifactTagFieldNumber; -const int CatalogMetadata::kSourceTaskExecutionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CatalogMetadata::CatalogMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CatalogMetadata) -} -CatalogMetadata::CatalogMetadata(const CatalogMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset_id()) { - dataset_id_ = new ::flyteidl::core::Identifier(*from.dataset_id_); - } else { - dataset_id_ = nullptr; - } - if (from.has_artifact_tag()) { - artifact_tag_ = new ::flyteidl::core::CatalogArtifactTag(*from.artifact_tag_); - } else { - artifact_tag_ = nullptr; - } - clear_has_source_execution(); - switch (from.source_execution_case()) { - case kSourceTaskExecution: { - mutable_source_task_execution()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.source_task_execution()); - break; - } - case SOURCE_EXECUTION_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogMetadata) -} - -void CatalogMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); - ::memset(&dataset_id_, 0, static_cast( - reinterpret_cast(&artifact_tag_) - - reinterpret_cast(&dataset_id_)) + sizeof(artifact_tag_)); - clear_has_source_execution(); -} - -CatalogMetadata::~CatalogMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.CatalogMetadata) - SharedDtor(); -} - -void CatalogMetadata::SharedDtor() { - if (this != internal_default_instance()) delete dataset_id_; - if (this != internal_default_instance()) delete artifact_tag_; - if (has_source_execution()) { - clear_source_execution(); - } -} - -void CatalogMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CatalogMetadata& CatalogMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CatalogMetadata::clear_source_execution() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.CatalogMetadata) - switch (source_execution_case()) { - case kSourceTaskExecution: { - delete source_execution_.source_task_execution_; - break; - } - case SOURCE_EXECUTION_NOT_SET: { - break; - } - } - _oneof_case_[0] = SOURCE_EXECUTION_NOT_SET; -} - - -void CatalogMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { - delete dataset_id_; - } - dataset_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { - delete artifact_tag_; - } - artifact_tag_ = nullptr; - clear_source_execution(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CatalogMetadata::_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 dataset_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_dataset_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; - } - // .flyteidl.core.CatalogArtifactTag artifact_tag = 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::core::CatalogArtifactTag::_InternalParse; - object = msg->mutable_artifact_tag(); - 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.core.TaskExecutionIdentifier source_task_execution = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_source_task_execution(); - 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 CatalogMetadata::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.core.CatalogMetadata) - 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 dataset_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_tag())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_source_task_execution())); - } 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.core.CatalogMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CatalogMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier dataset_id = 1; - if (this->has_dataset_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset_id(this), output); - } - - // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - if (this->has_artifact_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::artifact_tag(this), output); - } - - // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - if (has_source_task_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::source_task_execution(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogMetadata) -} - -::google::protobuf::uint8* CatalogMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier dataset_id = 1; - if (this->has_dataset_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset_id(this), target); - } - - // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - if (this->has_artifact_tag()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::artifact_tag(this), target); - } - - // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - if (has_source_task_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::source_task_execution(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.core.CatalogMetadata) - return target; -} - -size_t CatalogMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogMetadata) - 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 dataset_id = 1; - if (this->has_dataset_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_id_); - } - - // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - if (this->has_artifact_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_tag_); - } - - switch (source_execution_case()) { - // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - case kSourceTaskExecution: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *source_execution_.source_task_execution_); - break; - } - case SOURCE_EXECUTION_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CatalogMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogMetadata) - GOOGLE_DCHECK_NE(&from, this); - const CatalogMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogMetadata) - MergeFrom(*source); - } -} - -void CatalogMetadata::MergeFrom(const CatalogMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogMetadata) - 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_dataset_id()) { - mutable_dataset_id()->::flyteidl::core::Identifier::MergeFrom(from.dataset_id()); - } - if (from.has_artifact_tag()) { - mutable_artifact_tag()->::flyteidl::core::CatalogArtifactTag::MergeFrom(from.artifact_tag()); - } - switch (from.source_execution_case()) { - case kSourceTaskExecution: { - mutable_source_task_execution()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.source_task_execution()); - break; - } - case SOURCE_EXECUTION_NOT_SET: { - break; - } - } -} - -void CatalogMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CatalogMetadata::CopyFrom(const CatalogMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CatalogMetadata::IsInitialized() const { - return true; -} - -void CatalogMetadata::Swap(CatalogMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void CatalogMetadata::InternalSwap(CatalogMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_id_, other->dataset_id_); - swap(artifact_tag_, other->artifact_tag_); - swap(source_execution_, other->source_execution_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata CatalogMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CatalogReservation::InitAsDefaultInstance() { -} -class CatalogReservation::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CatalogReservation::CatalogReservation() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CatalogReservation) -} -CatalogReservation::CatalogReservation(const CatalogReservation& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CatalogReservation) -} - -void CatalogReservation::SharedCtor() { -} - -CatalogReservation::~CatalogReservation() { - // @@protoc_insertion_point(destructor:flyteidl.core.CatalogReservation) - SharedDtor(); -} - -void CatalogReservation::SharedDtor() { -} - -void CatalogReservation::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CatalogReservation& CatalogReservation::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CatalogReservation_flyteidl_2fcore_2fcatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CatalogReservation::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CatalogReservation) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CatalogReservation::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CatalogReservation::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.core.CatalogReservation) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.core.CatalogReservation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CatalogReservation) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CatalogReservation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CatalogReservation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CatalogReservation) -} - -::google::protobuf::uint8* CatalogReservation::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CatalogReservation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.core.CatalogReservation) - return target; -} - -size_t CatalogReservation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CatalogReservation) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CatalogReservation::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CatalogReservation) - GOOGLE_DCHECK_NE(&from, this); - const CatalogReservation* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CatalogReservation) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CatalogReservation) - MergeFrom(*source); - } -} - -void CatalogReservation::MergeFrom(const CatalogReservation& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CatalogReservation) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void CatalogReservation::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CatalogReservation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CatalogReservation::CopyFrom(const CatalogReservation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CatalogReservation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CatalogReservation::IsInitialized() const { - return true; -} - -void CatalogReservation::Swap(CatalogReservation* other) { - if (other == this) return; - InternalSwap(other); -} -void CatalogReservation::InternalSwap(CatalogReservation* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata CatalogReservation::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcatalog_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcatalog_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogArtifactTag* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogArtifactTag >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CatalogArtifactTag >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CatalogMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::CatalogReservation* Arena::CreateMaybeMessage< ::flyteidl::core::CatalogReservation >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CatalogReservation >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h deleted file mode 100644 index ddc8b7f5d4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/catalog.pb.h +++ /dev/null @@ -1,847 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/catalog.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/identifier.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fcatalog_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto(); -namespace flyteidl { -namespace core { -class CatalogArtifactTag; -class CatalogArtifactTagDefaultTypeInternal; -extern CatalogArtifactTagDefaultTypeInternal _CatalogArtifactTag_default_instance_; -class CatalogMetadata; -class CatalogMetadataDefaultTypeInternal; -extern CatalogMetadataDefaultTypeInternal _CatalogMetadata_default_instance_; -class CatalogReservation; -class CatalogReservationDefaultTypeInternal; -extern CatalogReservationDefaultTypeInternal _CatalogReservation_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::CatalogArtifactTag* Arena::CreateMaybeMessage<::flyteidl::core::CatalogArtifactTag>(Arena*); -template<> ::flyteidl::core::CatalogMetadata* Arena::CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(Arena*); -template<> ::flyteidl::core::CatalogReservation* Arena::CreateMaybeMessage<::flyteidl::core::CatalogReservation>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum CatalogReservation_Status { - CatalogReservation_Status_RESERVATION_DISABLED = 0, - CatalogReservation_Status_RESERVATION_ACQUIRED = 1, - CatalogReservation_Status_RESERVATION_EXISTS = 2, - CatalogReservation_Status_RESERVATION_RELEASED = 3, - CatalogReservation_Status_RESERVATION_FAILURE = 4, - CatalogReservation_Status_CatalogReservation_Status_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - CatalogReservation_Status_CatalogReservation_Status_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool CatalogReservation_Status_IsValid(int value); -const CatalogReservation_Status CatalogReservation_Status_Status_MIN = CatalogReservation_Status_RESERVATION_DISABLED; -const CatalogReservation_Status CatalogReservation_Status_Status_MAX = CatalogReservation_Status_RESERVATION_FAILURE; -const int CatalogReservation_Status_Status_ARRAYSIZE = CatalogReservation_Status_Status_MAX + 1; - -const ::google::protobuf::EnumDescriptor* CatalogReservation_Status_descriptor(); -inline const ::std::string& CatalogReservation_Status_Name(CatalogReservation_Status value) { - return ::google::protobuf::internal::NameOfEnum( - CatalogReservation_Status_descriptor(), value); -} -inline bool CatalogReservation_Status_Parse( - const ::std::string& name, CatalogReservation_Status* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CatalogReservation_Status_descriptor(), name, value); -} -enum CatalogCacheStatus { - CACHE_DISABLED = 0, - CACHE_MISS = 1, - CACHE_HIT = 2, - CACHE_POPULATED = 3, - CACHE_LOOKUP_FAILURE = 4, - CACHE_PUT_FAILURE = 5, - CACHE_SKIPPED = 6, - CatalogCacheStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - CatalogCacheStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool CatalogCacheStatus_IsValid(int value); -const CatalogCacheStatus CatalogCacheStatus_MIN = CACHE_DISABLED; -const CatalogCacheStatus CatalogCacheStatus_MAX = CACHE_SKIPPED; -const int CatalogCacheStatus_ARRAYSIZE = CatalogCacheStatus_MAX + 1; - -const ::google::protobuf::EnumDescriptor* CatalogCacheStatus_descriptor(); -inline const ::std::string& CatalogCacheStatus_Name(CatalogCacheStatus value) { - return ::google::protobuf::internal::NameOfEnum( - CatalogCacheStatus_descriptor(), value); -} -inline bool CatalogCacheStatus_Parse( - const ::std::string& name, CatalogCacheStatus* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CatalogCacheStatus_descriptor(), name, value); -} -// =================================================================== - -class CatalogArtifactTag final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogArtifactTag) */ { - public: - CatalogArtifactTag(); - virtual ~CatalogArtifactTag(); - - CatalogArtifactTag(const CatalogArtifactTag& from); - - inline CatalogArtifactTag& operator=(const CatalogArtifactTag& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CatalogArtifactTag(CatalogArtifactTag&& from) noexcept - : CatalogArtifactTag() { - *this = ::std::move(from); - } - - inline CatalogArtifactTag& operator=(CatalogArtifactTag&& 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 CatalogArtifactTag& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CatalogArtifactTag* internal_default_instance() { - return reinterpret_cast( - &_CatalogArtifactTag_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(CatalogArtifactTag* other); - friend void swap(CatalogArtifactTag& a, CatalogArtifactTag& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CatalogArtifactTag* New() const final { - return CreateMaybeMessage(nullptr); - } - - CatalogArtifactTag* 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 CatalogArtifactTag& from); - void MergeFrom(const CatalogArtifactTag& 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(CatalogArtifactTag* 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 ------------------------------------------------------- - - // string artifact_id = 1; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogArtifactTag) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class CatalogMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogMetadata) */ { - public: - CatalogMetadata(); - virtual ~CatalogMetadata(); - - CatalogMetadata(const CatalogMetadata& from); - - inline CatalogMetadata& operator=(const CatalogMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CatalogMetadata(CatalogMetadata&& from) noexcept - : CatalogMetadata() { - *this = ::std::move(from); - } - - inline CatalogMetadata& operator=(CatalogMetadata&& 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 CatalogMetadata& default_instance(); - - enum SourceExecutionCase { - kSourceTaskExecution = 3, - SOURCE_EXECUTION_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CatalogMetadata* internal_default_instance() { - return reinterpret_cast( - &_CatalogMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(CatalogMetadata* other); - friend void swap(CatalogMetadata& a, CatalogMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CatalogMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - CatalogMetadata* 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 CatalogMetadata& from); - void MergeFrom(const CatalogMetadata& 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(CatalogMetadata* 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 dataset_id = 1; - bool has_dataset_id() const; - void clear_dataset_id(); - static const int kDatasetIdFieldNumber = 1; - const ::flyteidl::core::Identifier& dataset_id() const; - ::flyteidl::core::Identifier* release_dataset_id(); - ::flyteidl::core::Identifier* mutable_dataset_id(); - void set_allocated_dataset_id(::flyteidl::core::Identifier* dataset_id); - - // .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - bool has_artifact_tag() const; - void clear_artifact_tag(); - static const int kArtifactTagFieldNumber = 2; - const ::flyteidl::core::CatalogArtifactTag& artifact_tag() const; - ::flyteidl::core::CatalogArtifactTag* release_artifact_tag(); - ::flyteidl::core::CatalogArtifactTag* mutable_artifact_tag(); - void set_allocated_artifact_tag(::flyteidl::core::CatalogArtifactTag* artifact_tag); - - // .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - bool has_source_task_execution() const; - void clear_source_task_execution(); - static const int kSourceTaskExecutionFieldNumber = 3; - const ::flyteidl::core::TaskExecutionIdentifier& source_task_execution() const; - ::flyteidl::core::TaskExecutionIdentifier* release_source_task_execution(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_source_task_execution(); - void set_allocated_source_task_execution(::flyteidl::core::TaskExecutionIdentifier* source_task_execution); - - void clear_source_execution(); - SourceExecutionCase source_execution_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogMetadata) - private: - class HasBitSetters; - void set_has_source_task_execution(); - - inline bool has_source_execution() const; - inline void clear_has_source_execution(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* dataset_id_; - ::flyteidl::core::CatalogArtifactTag* artifact_tag_; - union SourceExecutionUnion { - SourceExecutionUnion() {} - ::flyteidl::core::TaskExecutionIdentifier* source_task_execution_; - } source_execution_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class CatalogReservation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CatalogReservation) */ { - public: - CatalogReservation(); - virtual ~CatalogReservation(); - - CatalogReservation(const CatalogReservation& from); - - inline CatalogReservation& operator=(const CatalogReservation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CatalogReservation(CatalogReservation&& from) noexcept - : CatalogReservation() { - *this = ::std::move(from); - } - - inline CatalogReservation& operator=(CatalogReservation&& 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 CatalogReservation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CatalogReservation* internal_default_instance() { - return reinterpret_cast( - &_CatalogReservation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CatalogReservation* other); - friend void swap(CatalogReservation& a, CatalogReservation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CatalogReservation* New() const final { - return CreateMaybeMessage(nullptr); - } - - CatalogReservation* 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 CatalogReservation& from); - void MergeFrom(const CatalogReservation& 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(CatalogReservation* 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 ---------------------------------------------------- - - typedef CatalogReservation_Status Status; - static const Status RESERVATION_DISABLED = - CatalogReservation_Status_RESERVATION_DISABLED; - static const Status RESERVATION_ACQUIRED = - CatalogReservation_Status_RESERVATION_ACQUIRED; - static const Status RESERVATION_EXISTS = - CatalogReservation_Status_RESERVATION_EXISTS; - static const Status RESERVATION_RELEASED = - CatalogReservation_Status_RESERVATION_RELEASED; - static const Status RESERVATION_FAILURE = - CatalogReservation_Status_RESERVATION_FAILURE; - static inline bool Status_IsValid(int value) { - return CatalogReservation_Status_IsValid(value); - } - static const Status Status_MIN = - CatalogReservation_Status_Status_MIN; - static const Status Status_MAX = - CatalogReservation_Status_Status_MAX; - static const int Status_ARRAYSIZE = - CatalogReservation_Status_Status_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Status_descriptor() { - return CatalogReservation_Status_descriptor(); - } - static inline const ::std::string& Status_Name(Status value) { - return CatalogReservation_Status_Name(value); - } - static inline bool Status_Parse(const ::std::string& name, - Status* value) { - return CatalogReservation_Status_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogReservation) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcatalog_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CatalogArtifactTag - -// string artifact_id = 1; -inline void CatalogArtifactTag::clear_artifact_id() { - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CatalogArtifactTag::artifact_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.CatalogArtifactTag.artifact_id) - return artifact_id_.GetNoArena(); -} -inline void CatalogArtifactTag::set_artifact_id(const ::std::string& value) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.CatalogArtifactTag.artifact_id) -} -#if LANG_CXX11 -inline void CatalogArtifactTag::set_artifact_id(::std::string&& value) { - - artifact_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.CatalogArtifactTag.artifact_id) -} -#endif -inline void CatalogArtifactTag::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.CatalogArtifactTag.artifact_id) -} -inline void CatalogArtifactTag::set_artifact_id(const char* value, size_t size) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.CatalogArtifactTag.artifact_id) -} -inline ::std::string* CatalogArtifactTag::mutable_artifact_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogArtifactTag.artifact_id) - return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CatalogArtifactTag::release_artifact_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.CatalogArtifactTag.artifact_id) - - return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CatalogArtifactTag::set_allocated_artifact_id(::std::string* artifact_id) { - if (artifact_id != nullptr) { - - } else { - - } - artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogArtifactTag.artifact_id) -} - -// string name = 2; -inline void CatalogArtifactTag::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CatalogArtifactTag::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.CatalogArtifactTag.name) - return name_.GetNoArena(); -} -inline void CatalogArtifactTag::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.CatalogArtifactTag.name) -} -#if LANG_CXX11 -inline void CatalogArtifactTag::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.CatalogArtifactTag.name) -} -#endif -inline void CatalogArtifactTag::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.CatalogArtifactTag.name) -} -inline void CatalogArtifactTag::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.CatalogArtifactTag.name) -} -inline ::std::string* CatalogArtifactTag::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogArtifactTag.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CatalogArtifactTag::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.CatalogArtifactTag.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CatalogArtifactTag::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogArtifactTag.name) -} - -// ------------------------------------------------------------------- - -// CatalogMetadata - -// .flyteidl.core.Identifier dataset_id = 1; -inline bool CatalogMetadata::has_dataset_id() const { - return this != internal_default_instance() && dataset_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& CatalogMetadata::dataset_id() const { - const ::flyteidl::core::Identifier* p = dataset_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.dataset_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* CatalogMetadata::release_dataset_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.dataset_id) - - ::flyteidl::core::Identifier* temp = dataset_id_; - dataset_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* CatalogMetadata::mutable_dataset_id() { - - if (dataset_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - dataset_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.dataset_id) - return dataset_id_; -} -inline void CatalogMetadata::set_allocated_dataset_id(::flyteidl::core::Identifier* dataset_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(dataset_id_); - } - if (dataset_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset_id, submessage_arena); - } - - } else { - - } - dataset_id_ = dataset_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.dataset_id) -} - -// .flyteidl.core.CatalogArtifactTag artifact_tag = 2; -inline bool CatalogMetadata::has_artifact_tag() const { - return this != internal_default_instance() && artifact_tag_ != nullptr; -} -inline void CatalogMetadata::clear_artifact_tag() { - if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { - delete artifact_tag_; - } - artifact_tag_ = nullptr; -} -inline const ::flyteidl::core::CatalogArtifactTag& CatalogMetadata::artifact_tag() const { - const ::flyteidl::core::CatalogArtifactTag* p = artifact_tag_; - // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.artifact_tag) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CatalogArtifactTag_default_instance_); -} -inline ::flyteidl::core::CatalogArtifactTag* CatalogMetadata::release_artifact_tag() { - // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.artifact_tag) - - ::flyteidl::core::CatalogArtifactTag* temp = artifact_tag_; - artifact_tag_ = nullptr; - return temp; -} -inline ::flyteidl::core::CatalogArtifactTag* CatalogMetadata::mutable_artifact_tag() { - - if (artifact_tag_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CatalogArtifactTag>(GetArenaNoVirtual()); - artifact_tag_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.artifact_tag) - return artifact_tag_; -} -inline void CatalogMetadata::set_allocated_artifact_tag(::flyteidl::core::CatalogArtifactTag* artifact_tag) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_tag_; - } - if (artifact_tag) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_tag = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_tag, submessage_arena); - } - - } else { - - } - artifact_tag_ = artifact_tag; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CatalogMetadata.artifact_tag) -} - -// .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; -inline bool CatalogMetadata::has_source_task_execution() const { - return source_execution_case() == kSourceTaskExecution; -} -inline void CatalogMetadata::set_has_source_task_execution() { - _oneof_case_[0] = kSourceTaskExecution; -} -inline ::flyteidl::core::TaskExecutionIdentifier* CatalogMetadata::release_source_task_execution() { - // @@protoc_insertion_point(field_release:flyteidl.core.CatalogMetadata.source_task_execution) - if (has_source_task_execution()) { - clear_has_source_execution(); - ::flyteidl::core::TaskExecutionIdentifier* temp = source_execution_.source_task_execution_; - source_execution_.source_task_execution_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::TaskExecutionIdentifier& CatalogMetadata::source_task_execution() const { - // @@protoc_insertion_point(field_get:flyteidl.core.CatalogMetadata.source_task_execution) - return has_source_task_execution() - ? *source_execution_.source_task_execution_ - : *reinterpret_cast< ::flyteidl::core::TaskExecutionIdentifier*>(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* CatalogMetadata::mutable_source_task_execution() { - if (!has_source_task_execution()) { - clear_source_execution(); - set_has_source_task_execution(); - source_execution_.source_task_execution_ = CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CatalogMetadata.source_task_execution) - return source_execution_.source_task_execution_; -} - -inline bool CatalogMetadata::has_source_execution() const { - return source_execution_case() != SOURCE_EXECUTION_NOT_SET; -} -inline void CatalogMetadata::clear_has_source_execution() { - _oneof_case_[0] = SOURCE_EXECUTION_NOT_SET; -} -inline CatalogMetadata::SourceExecutionCase CatalogMetadata::source_execution_case() const { - return CatalogMetadata::SourceExecutionCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// CatalogReservation - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::CatalogReservation_Status> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::CatalogReservation_Status>() { - return ::flyteidl::core::CatalogReservation_Status_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::CatalogCacheStatus> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::CatalogCacheStatus>() { - return ::flyteidl::core::CatalogCacheStatus_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcatalog_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc deleted file mode 100644 index 67571c8750..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/compiler.proto - -#include "flyteidl/core/compiler.pb.h" -#include "flyteidl/core/compiler.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h deleted file mode 100644 index 30a332b1ed..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/compiler.proto -#ifndef GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED - -#include "flyteidl/core/compiler.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fcompiler_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc deleted file mode 100644 index 1b397f1030..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.cc +++ /dev/null @@ -1,2279 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/compiler.proto - -#include "flyteidl/core/compiler.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; -namespace flyteidl { -namespace core { -class ConnectionSet_IdListDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ConnectionSet_IdList_default_instance_; -class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; -class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; -class ConnectionSetDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ConnectionSet_default_instance_; -class CompiledWorkflowDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CompiledWorkflow_default_instance_; -class CompiledTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CompiledTask_default_instance_; -class CompiledWorkflowClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CompiledWorkflowClosure_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ConnectionSet_IdList_default_instance_; - new (ptr) ::flyteidl::core::ConnectionSet_IdList(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ConnectionSet_IdList::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto}, {}}; - -static void InitDefaultsConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse(); - } - ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse(); - } - ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsConnectionSet_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ConnectionSet_default_instance_; - new (ptr) ::flyteidl::core::ConnectionSet(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ConnectionSet::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsConnectionSet_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base, - &scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsCompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CompiledWorkflow_default_instance_; - new (ptr) ::flyteidl::core::CompiledWorkflow(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CompiledWorkflow::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsCompiledTask_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CompiledTask_default_instance_; - new (ptr) ::flyteidl::core::CompiledTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CompiledTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCompiledTask_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsCompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_CompiledWorkflowClosure_default_instance_; - new (ptr) ::flyteidl::core::CompiledWorkflowClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::CompiledWorkflowClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto}, { - &scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base, - &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fcompiler_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_DownstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_UpstreamEntry_DoNotUse_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[7]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fcompiler_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcompiler_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcompiler_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_IdList, ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, downstream_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConnectionSet, upstream_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, template__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflow, connections_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledTask, template__), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, primary_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, sub_workflows_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::CompiledWorkflowClosure, tasks_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::ConnectionSet_IdList)}, - { 6, 13, sizeof(::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse)}, - { 15, 22, sizeof(::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse)}, - { 24, -1, sizeof(::flyteidl::core::ConnectionSet)}, - { 31, -1, sizeof(::flyteidl::core::CompiledWorkflow)}, - { 38, -1, sizeof(::flyteidl::core::CompiledTask)}, - { 44, -1, sizeof(::flyteidl::core::CompiledWorkflowClosure)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_ConnectionSet_IdList_default_instance_), - reinterpret_cast(&::flyteidl::core::_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_ConnectionSet_default_instance_), - reinterpret_cast(&::flyteidl::core::_CompiledWorkflow_default_instance_), - reinterpret_cast(&::flyteidl::core::_CompiledTask_default_instance_), - reinterpret_cast(&::flyteidl::core::_CompiledWorkflowClosure_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, "flyteidl/core/compiler.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fcompiler_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2fcompiler_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcompiler_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fcompiler_2eproto[] = - "\n\034flyteidl/core/compiler.proto\022\rflyteidl" - ".core\032\034flyteidl/core/workflow.proto\032\031fly" - "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" - "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" - "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" - " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" - "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" - "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" - ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" - "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" - " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" - "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " - "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" - "connections\030\002 \001(\0132\034.flyteidl.core.Connec" - "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" - "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" - "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" - "yteidl.core.CompiledWorkflow\0226\n\rsub_work" - "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" - "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" - "iledTaskB= 1900 -const int ConnectionSet_IdList::kIdsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ConnectionSet_IdList::ConnectionSet_IdList() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet.IdList) -} -ConnectionSet_IdList::ConnectionSet_IdList(const ConnectionSet_IdList& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - ids_(from.ids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet.IdList) -} - -void ConnectionSet_IdList::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); -} - -ConnectionSet_IdList::~ConnectionSet_IdList() { - // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet.IdList) - SharedDtor(); -} - -void ConnectionSet_IdList::SharedDtor() { -} - -void ConnectionSet_IdList::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ConnectionSet_IdList& ConnectionSet_IdList::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ConnectionSet_IdList_flyteidl_2fcore_2fcompiler_2eproto.base); - return *internal_default_instance(); -} - - -void ConnectionSet_IdList::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet.IdList) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ids_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ConnectionSet_IdList::_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) { - // repeated string ids = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ConnectionSet.IdList.ids"); - object = msg->add_ids(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ConnectionSet_IdList::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.core.ConnectionSet.IdList) - 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)) { - // repeated string ids = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_ids())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ids(this->ids_size() - 1).data(), - static_cast(this->ids(this->ids_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ConnectionSet.IdList.ids")); - } 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.core.ConnectionSet.IdList) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet.IdList) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ConnectionSet_IdList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet.IdList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string ids = 1; - for (int i = 0, n = this->ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ids(i).data(), static_cast(this->ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.IdList.ids"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->ids(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet.IdList) -} - -::google::protobuf::uint8* ConnectionSet_IdList::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet.IdList) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string ids = 1; - for (int i = 0, n = this->ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->ids(i).data(), static_cast(this->ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.IdList.ids"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->ids(i), 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.core.ConnectionSet.IdList) - return target; -} - -size_t ConnectionSet_IdList::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet.IdList) - 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; - - // repeated string ids = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->ids_size()); - for (int i = 0, n = this->ids_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->ids(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ConnectionSet_IdList::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet.IdList) - GOOGLE_DCHECK_NE(&from, this); - const ConnectionSet_IdList* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet.IdList) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet.IdList) - MergeFrom(*source); - } -} - -void ConnectionSet_IdList::MergeFrom(const ConnectionSet_IdList& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet.IdList) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ids_.MergeFrom(from.ids_); -} - -void ConnectionSet_IdList::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet.IdList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConnectionSet_IdList::CopyFrom(const ConnectionSet_IdList& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet.IdList) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionSet_IdList::IsInitialized() const { - return true; -} - -void ConnectionSet_IdList::Swap(ConnectionSet_IdList* other) { - if (other == this) return; - InternalSwap(other); -} -void ConnectionSet_IdList::InternalSwap(ConnectionSet_IdList* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ids_.InternalSwap(CastToBase(&other->ids_)); -} - -::google::protobuf::Metadata ConnectionSet_IdList::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse() {} -ConnectionSet_DownstreamEntry_DoNotUse::ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata ConnectionSet_DownstreamEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[1]; -} -void ConnectionSet_DownstreamEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ConnectionSet_DownstreamEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - ConnectionSet_DownstreamEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ConnectionSet.DownstreamEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse() {} -ConnectionSet_UpstreamEntry_DoNotUse::ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata ConnectionSet_UpstreamEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[2]; -} -void ConnectionSet_UpstreamEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ConnectionSet_UpstreamEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - ConnectionSet_UpstreamEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ConnectionSet.UpstreamEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void ConnectionSet::InitAsDefaultInstance() { -} -class ConnectionSet::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ConnectionSet::kDownstreamFieldNumber; -const int ConnectionSet::kUpstreamFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ConnectionSet::ConnectionSet() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ConnectionSet) -} -ConnectionSet::ConnectionSet(const ConnectionSet& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - downstream_.MergeFrom(from.downstream_); - upstream_.MergeFrom(from.upstream_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConnectionSet) -} - -void ConnectionSet::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); -} - -ConnectionSet::~ConnectionSet() { - // @@protoc_insertion_point(destructor:flyteidl.core.ConnectionSet) - SharedDtor(); -} - -void ConnectionSet::SharedDtor() { -} - -void ConnectionSet::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ConnectionSet& ConnectionSet::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ConnectionSet_flyteidl_2fcore_2fcompiler_2eproto.base); - return *internal_default_instance(); -} - - -void ConnectionSet::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConnectionSet) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - downstream_.Clear(); - upstream_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ConnectionSet::_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) { - // map downstream = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->downstream_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); - break; - } - // map upstream = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->upstream_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 66 && (ptr += 1)); - 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 ConnectionSet::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.core.ConnectionSet) - 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)) { - // map downstream = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - ConnectionSet_DownstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - ConnectionSet_DownstreamEntry_DoNotUse, - ::std::string, ::flyteidl::core::ConnectionSet_IdList, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&downstream_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ConnectionSet.DownstreamEntry.key")); - } else { - goto handle_unusual; - } - break; - } - - // map upstream = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - ConnectionSet_UpstreamEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - ConnectionSet_UpstreamEntry_DoNotUse, - ::std::string, ::flyteidl::core::ConnectionSet_IdList, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList > > parser(&upstream_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ConnectionSet.UpstreamEntry.key")); - } 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.core.ConnectionSet) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ConnectionSet) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ConnectionSet::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ConnectionSet) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map downstream = 7; - if (!this->downstream().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.DownstreamEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->downstream().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->downstream().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->downstream().begin(); - it != this->downstream().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(downstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(7, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->downstream().begin(); - it != this->downstream().end(); ++it) { - entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(7, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // map upstream = 8; - if (!this->upstream().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.UpstreamEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->upstream().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->upstream().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->upstream().begin(); - it != this->upstream().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(upstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(8, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->upstream().begin(); - it != this->upstream().end(); ++it) { - entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(8, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ConnectionSet) -} - -::google::protobuf::uint8* ConnectionSet::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConnectionSet) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map downstream = 7; - if (!this->downstream().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.DownstreamEntry.key"); - } - }; - - if (false && - this->downstream().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->downstream().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->downstream().begin(); - it != this->downstream().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(downstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(7, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->downstream().begin(); - it != this->downstream().end(); ++it) { - entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(7, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // map upstream = 8; - if (!this->upstream().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ConnectionSet.UpstreamEntry.key"); - } - }; - - if (false && - this->upstream().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->upstream().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->upstream().begin(); - it != this->upstream().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(upstream_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(8, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->upstream().begin(); - it != this->upstream().end(); ++it) { - entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(8, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.ConnectionSet) - return target; -} - -size_t ConnectionSet::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConnectionSet) - 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; - - // map downstream = 7; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->downstream_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->downstream().begin(); - it != this->downstream().end(); ++it) { - entry.reset(downstream_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // map upstream = 8; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->upstream_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >::const_iterator - it = this->upstream().begin(); - it != this->upstream().end(); ++it) { - entry.reset(upstream_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ConnectionSet::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConnectionSet) - GOOGLE_DCHECK_NE(&from, this); - const ConnectionSet* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConnectionSet) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConnectionSet) - MergeFrom(*source); - } -} - -void ConnectionSet::MergeFrom(const ConnectionSet& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConnectionSet) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - downstream_.MergeFrom(from.downstream_); - upstream_.MergeFrom(from.upstream_); -} - -void ConnectionSet::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConnectionSet) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConnectionSet::CopyFrom(const ConnectionSet& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConnectionSet) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConnectionSet::IsInitialized() const { - return true; -} - -void ConnectionSet::Swap(ConnectionSet* other) { - if (other == this) return; - InternalSwap(other); -} -void ConnectionSet::InternalSwap(ConnectionSet* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - downstream_.Swap(&other->downstream_); - upstream_.Swap(&other->upstream_); -} - -::google::protobuf::Metadata ConnectionSet::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CompiledWorkflow::InitAsDefaultInstance() { - ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::WorkflowTemplate*>( - ::flyteidl::core::WorkflowTemplate::internal_default_instance()); - ::flyteidl::core::_CompiledWorkflow_default_instance_._instance.get_mutable()->connections_ = const_cast< ::flyteidl::core::ConnectionSet*>( - ::flyteidl::core::ConnectionSet::internal_default_instance()); -} -class CompiledWorkflow::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowTemplate& template_(const CompiledWorkflow* msg); - static const ::flyteidl::core::ConnectionSet& connections(const CompiledWorkflow* msg); -}; - -const ::flyteidl::core::WorkflowTemplate& -CompiledWorkflow::HasBitSetters::template_(const CompiledWorkflow* msg) { - return *msg->template__; -} -const ::flyteidl::core::ConnectionSet& -CompiledWorkflow::HasBitSetters::connections(const CompiledWorkflow* msg) { - return *msg->connections_; -} -void CompiledWorkflow::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompiledWorkflow::kTemplateFieldNumber; -const int CompiledWorkflow::kConnectionsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CompiledWorkflow::CompiledWorkflow() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflow) -} -CompiledWorkflow::CompiledWorkflow(const CompiledWorkflow& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_template_()) { - template__ = new ::flyteidl::core::WorkflowTemplate(*from.template__); - } else { - template__ = nullptr; - } - if (from.has_connections()) { - connections_ = new ::flyteidl::core::ConnectionSet(*from.connections_); - } else { - connections_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflow) -} - -void CompiledWorkflow::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); - ::memset(&template__, 0, static_cast( - reinterpret_cast(&connections_) - - reinterpret_cast(&template__)) + sizeof(connections_)); -} - -CompiledWorkflow::~CompiledWorkflow() { - // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflow) - SharedDtor(); -} - -void CompiledWorkflow::SharedDtor() { - if (this != internal_default_instance()) delete template__; - if (this != internal_default_instance()) delete connections_; -} - -void CompiledWorkflow::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompiledWorkflow& CompiledWorkflow::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CompiledWorkflow_flyteidl_2fcore_2fcompiler_2eproto.base); - return *internal_default_instance(); -} - - -void CompiledWorkflow::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflow) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - if (GetArenaNoVirtual() == nullptr && connections_ != nullptr) { - delete connections_; - } - connections_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CompiledWorkflow::_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.WorkflowTemplate template = 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::WorkflowTemplate::_InternalParse; - object = msg->mutable_template_(); - 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.core.ConnectionSet connections = 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::core::ConnectionSet::_InternalParse; - object = msg->mutable_connections(); - 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 CompiledWorkflow::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.core.CompiledWorkflow) - 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.WorkflowTemplate template = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ConnectionSet connections = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_connections())); - } 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.core.CompiledWorkflow) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflow) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CompiledWorkflow::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflow) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate template = 1; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::template_(this), output); - } - - // .flyteidl.core.ConnectionSet connections = 2; - if (this->has_connections()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::connections(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflow) -} - -::google::protobuf::uint8* CompiledWorkflow::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflow) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate template = 1; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::template_(this), target); - } - - // .flyteidl.core.ConnectionSet connections = 2; - if (this->has_connections()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::connections(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.core.CompiledWorkflow) - return target; -} - -size_t CompiledWorkflow::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflow) - 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.WorkflowTemplate template = 1; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - // .flyteidl.core.ConnectionSet connections = 2; - if (this->has_connections()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *connections_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompiledWorkflow::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflow) - GOOGLE_DCHECK_NE(&from, this); - const CompiledWorkflow* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflow) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflow) - MergeFrom(*source); - } -} - -void CompiledWorkflow::MergeFrom(const CompiledWorkflow& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflow) - 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_template_()) { - mutable_template_()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.template_()); - } - if (from.has_connections()) { - mutable_connections()->::flyteidl::core::ConnectionSet::MergeFrom(from.connections()); - } -} - -void CompiledWorkflow::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflow) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompiledWorkflow::CopyFrom(const CompiledWorkflow& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflow) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompiledWorkflow::IsInitialized() const { - return true; -} - -void CompiledWorkflow::Swap(CompiledWorkflow* other) { - if (other == this) return; - InternalSwap(other); -} -void CompiledWorkflow::InternalSwap(CompiledWorkflow* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(template__, other->template__); - swap(connections_, other->connections_); -} - -::google::protobuf::Metadata CompiledWorkflow::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CompiledTask::InitAsDefaultInstance() { - ::flyteidl::core::_CompiledTask_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( - ::flyteidl::core::TaskTemplate::internal_default_instance()); -} -class CompiledTask::HasBitSetters { - public: - static const ::flyteidl::core::TaskTemplate& template_(const CompiledTask* msg); -}; - -const ::flyteidl::core::TaskTemplate& -CompiledTask::HasBitSetters::template_(const CompiledTask* msg) { - return *msg->template__; -} -void CompiledTask::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompiledTask::kTemplateFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CompiledTask::CompiledTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CompiledTask) -} -CompiledTask::CompiledTask(const CompiledTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_template_()) { - template__ = new ::flyteidl::core::TaskTemplate(*from.template__); - } else { - template__ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledTask) -} - -void CompiledTask::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); - template__ = nullptr; -} - -CompiledTask::~CompiledTask() { - // @@protoc_insertion_point(destructor:flyteidl.core.CompiledTask) - SharedDtor(); -} - -void CompiledTask::SharedDtor() { - if (this != internal_default_instance()) delete template__; -} - -void CompiledTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompiledTask& CompiledTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CompiledTask_flyteidl_2fcore_2fcompiler_2eproto.base); - return *internal_default_instance(); -} - - -void CompiledTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CompiledTask::_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.TaskTemplate template = 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::TaskTemplate::_InternalParse; - object = msg->mutable_template_(); - 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 CompiledTask::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.core.CompiledTask) - 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.TaskTemplate template = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } 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.core.CompiledTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CompiledTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskTemplate template = 1; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::template_(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledTask) -} - -::google::protobuf::uint8* CompiledTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskTemplate template = 1; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::template_(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.core.CompiledTask) - return target; -} - -size_t CompiledTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledTask) - 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.TaskTemplate template = 1; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompiledTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledTask) - GOOGLE_DCHECK_NE(&from, this); - const CompiledTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledTask) - MergeFrom(*source); - } -} - -void CompiledTask::MergeFrom(const CompiledTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledTask) - 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_template_()) { - mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); - } -} - -void CompiledTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompiledTask::CopyFrom(const CompiledTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompiledTask::IsInitialized() const { - return true; -} - -void CompiledTask::Swap(CompiledTask* other) { - if (other == this) return; - InternalSwap(other); -} -void CompiledTask::InternalSwap(CompiledTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(template__, other->template__); -} - -::google::protobuf::Metadata CompiledTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CompiledWorkflowClosure::InitAsDefaultInstance() { - ::flyteidl::core::_CompiledWorkflowClosure_default_instance_._instance.get_mutable()->primary_ = const_cast< ::flyteidl::core::CompiledWorkflow*>( - ::flyteidl::core::CompiledWorkflow::internal_default_instance()); -} -class CompiledWorkflowClosure::HasBitSetters { - public: - static const ::flyteidl::core::CompiledWorkflow& primary(const CompiledWorkflowClosure* msg); -}; - -const ::flyteidl::core::CompiledWorkflow& -CompiledWorkflowClosure::HasBitSetters::primary(const CompiledWorkflowClosure* msg) { - return *msg->primary_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CompiledWorkflowClosure::kPrimaryFieldNumber; -const int CompiledWorkflowClosure::kSubWorkflowsFieldNumber; -const int CompiledWorkflowClosure::kTasksFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CompiledWorkflowClosure::CompiledWorkflowClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.CompiledWorkflowClosure) -} -CompiledWorkflowClosure::CompiledWorkflowClosure(const CompiledWorkflowClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - sub_workflows_(from.sub_workflows_), - tasks_(from.tasks_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_primary()) { - primary_ = new ::flyteidl::core::CompiledWorkflow(*from.primary_); - } else { - primary_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.CompiledWorkflowClosure) -} - -void CompiledWorkflowClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); - primary_ = nullptr; -} - -CompiledWorkflowClosure::~CompiledWorkflowClosure() { - // @@protoc_insertion_point(destructor:flyteidl.core.CompiledWorkflowClosure) - SharedDtor(); -} - -void CompiledWorkflowClosure::SharedDtor() { - if (this != internal_default_instance()) delete primary_; -} - -void CompiledWorkflowClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CompiledWorkflowClosure& CompiledWorkflowClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base); - return *internal_default_instance(); -} - - -void CompiledWorkflowClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.CompiledWorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - sub_workflows_.Clear(); - tasks_.Clear(); - if (GetArenaNoVirtual() == nullptr && primary_ != nullptr) { - delete primary_; - } - primary_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CompiledWorkflowClosure::_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.CompiledWorkflow primary = 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::CompiledWorkflow::_InternalParse; - object = msg->mutable_primary(); - 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; - } - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::CompiledWorkflow::_InternalParse; - object = msg->add_sub_workflows(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.CompiledTask tasks = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::CompiledTask::_InternalParse; - object = msg->add_tasks(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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 CompiledWorkflowClosure::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.core.CompiledWorkflowClosure) - 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.CompiledWorkflow primary = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_primary())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_sub_workflows())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.CompiledTask tasks = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tasks())); - } 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.core.CompiledWorkflowClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.CompiledWorkflowClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CompiledWorkflowClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.CompiledWorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledWorkflow primary = 1; - if (this->has_primary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::primary(this), output); - } - - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - for (unsigned int i = 0, - n = static_cast(this->sub_workflows_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->sub_workflows(static_cast(i)), - output); - } - - // repeated .flyteidl.core.CompiledTask tasks = 3; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->tasks(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.CompiledWorkflowClosure) -} - -::google::protobuf::uint8* CompiledWorkflowClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.CompiledWorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CompiledWorkflow primary = 1; - if (this->has_primary()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::primary(this), target); - } - - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - for (unsigned int i = 0, - n = static_cast(this->sub_workflows_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->sub_workflows(static_cast(i)), target); - } - - // repeated .flyteidl.core.CompiledTask tasks = 3; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->tasks(static_cast(i)), 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.core.CompiledWorkflowClosure) - return target; -} - -size_t CompiledWorkflowClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.CompiledWorkflowClosure) - 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; - - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - { - unsigned int count = static_cast(this->sub_workflows_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->sub_workflows(static_cast(i))); - } - } - - // repeated .flyteidl.core.CompiledTask tasks = 3; - { - unsigned int count = static_cast(this->tasks_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tasks(static_cast(i))); - } - } - - // .flyteidl.core.CompiledWorkflow primary = 1; - if (this->has_primary()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *primary_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CompiledWorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.CompiledWorkflowClosure) - GOOGLE_DCHECK_NE(&from, this); - const CompiledWorkflowClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.CompiledWorkflowClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.CompiledWorkflowClosure) - MergeFrom(*source); - } -} - -void CompiledWorkflowClosure::MergeFrom(const CompiledWorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.CompiledWorkflowClosure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - sub_workflows_.MergeFrom(from.sub_workflows_); - tasks_.MergeFrom(from.tasks_); - if (from.has_primary()) { - mutable_primary()->::flyteidl::core::CompiledWorkflow::MergeFrom(from.primary()); - } -} - -void CompiledWorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.CompiledWorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CompiledWorkflowClosure::CopyFrom(const CompiledWorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.CompiledWorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CompiledWorkflowClosure::IsInitialized() const { - return true; -} - -void CompiledWorkflowClosure::Swap(CompiledWorkflowClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void CompiledWorkflowClosure::InternalSwap(CompiledWorkflowClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&sub_workflows_)->InternalSwap(CastToBase(&other->sub_workflows_)); - CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); - swap(primary_, other->primary_); -} - -::google::protobuf::Metadata CompiledWorkflowClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcompiler_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcompiler_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_IdList* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_IdList >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_IdList >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ConnectionSet* Arena::CreateMaybeMessage< ::flyteidl::core::ConnectionSet >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ConnectionSet >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledWorkflow* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledWorkflow >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CompiledWorkflow >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledTask* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CompiledTask >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::CompiledWorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::core::CompiledWorkflowClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::CompiledWorkflowClosure >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h deleted file mode 100644 index 09ab9de1a4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/compiler.pb.h +++ /dev/null @@ -1,1201 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/compiler.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "flyteidl/core/workflow.pb.h" -#include "flyteidl/core/tasks.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fcompiler_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto(); -namespace flyteidl { -namespace core { -class CompiledTask; -class CompiledTaskDefaultTypeInternal; -extern CompiledTaskDefaultTypeInternal _CompiledTask_default_instance_; -class CompiledWorkflow; -class CompiledWorkflowDefaultTypeInternal; -extern CompiledWorkflowDefaultTypeInternal _CompiledWorkflow_default_instance_; -class CompiledWorkflowClosure; -class CompiledWorkflowClosureDefaultTypeInternal; -extern CompiledWorkflowClosureDefaultTypeInternal _CompiledWorkflowClosure_default_instance_; -class ConnectionSet; -class ConnectionSetDefaultTypeInternal; -extern ConnectionSetDefaultTypeInternal _ConnectionSet_default_instance_; -class ConnectionSet_DownstreamEntry_DoNotUse; -class ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal; -extern ConnectionSet_DownstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_DownstreamEntry_DoNotUse_default_instance_; -class ConnectionSet_IdList; -class ConnectionSet_IdListDefaultTypeInternal; -extern ConnectionSet_IdListDefaultTypeInternal _ConnectionSet_IdList_default_instance_; -class ConnectionSet_UpstreamEntry_DoNotUse; -class ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal; -extern ConnectionSet_UpstreamEntry_DoNotUseDefaultTypeInternal _ConnectionSet_UpstreamEntry_DoNotUse_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::CompiledTask* Arena::CreateMaybeMessage<::flyteidl::core::CompiledTask>(Arena*); -template<> ::flyteidl::core::CompiledWorkflow* Arena::CreateMaybeMessage<::flyteidl::core::CompiledWorkflow>(Arena*); -template<> ::flyteidl::core::CompiledWorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(Arena*); -template<> ::flyteidl::core::ConnectionSet* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet>(Arena*); -template<> ::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_DownstreamEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::ConnectionSet_IdList* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_IdList>(Arena*); -template<> ::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ConnectionSet_UpstreamEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class ConnectionSet_IdList final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet.IdList) */ { - public: - ConnectionSet_IdList(); - virtual ~ConnectionSet_IdList(); - - ConnectionSet_IdList(const ConnectionSet_IdList& from); - - inline ConnectionSet_IdList& operator=(const ConnectionSet_IdList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ConnectionSet_IdList(ConnectionSet_IdList&& from) noexcept - : ConnectionSet_IdList() { - *this = ::std::move(from); - } - - inline ConnectionSet_IdList& operator=(ConnectionSet_IdList&& 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 ConnectionSet_IdList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ConnectionSet_IdList* internal_default_instance() { - return reinterpret_cast( - &_ConnectionSet_IdList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ConnectionSet_IdList* other); - friend void swap(ConnectionSet_IdList& a, ConnectionSet_IdList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ConnectionSet_IdList* New() const final { - return CreateMaybeMessage(nullptr); - } - - ConnectionSet_IdList* 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 ConnectionSet_IdList& from); - void MergeFrom(const ConnectionSet_IdList& 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(ConnectionSet_IdList* 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 ------------------------------------------------------- - - // repeated string ids = 1; - int ids_size() const; - void clear_ids(); - static const int kIdsFieldNumber = 1; - const ::std::string& ids(int index) const; - ::std::string* mutable_ids(int index); - void set_ids(int index, const ::std::string& value); - #if LANG_CXX11 - void set_ids(int index, ::std::string&& value); - #endif - void set_ids(int index, const char* value); - void set_ids(int index, const char* value, size_t size); - ::std::string* add_ids(); - void add_ids(const ::std::string& value); - #if LANG_CXX11 - void add_ids(::std::string&& value); - #endif - void add_ids(const char* value); - void add_ids(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& ids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_ids(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> ids_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; -}; -// ------------------------------------------------------------------- - -class ConnectionSet_DownstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - ConnectionSet_DownstreamEntry_DoNotUse(); - ConnectionSet_DownstreamEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ConnectionSet_DownstreamEntry_DoNotUse& other); - static const ConnectionSet_DownstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_DownstreamEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ConnectionSet_UpstreamEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - ConnectionSet_UpstreamEntry_DoNotUse(); - ConnectionSet_UpstreamEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ConnectionSet_UpstreamEntry_DoNotUse& other); - static const ConnectionSet_UpstreamEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ConnectionSet_UpstreamEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ConnectionSet final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConnectionSet) */ { - public: - ConnectionSet(); - virtual ~ConnectionSet(); - - ConnectionSet(const ConnectionSet& from); - - inline ConnectionSet& operator=(const ConnectionSet& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ConnectionSet(ConnectionSet&& from) noexcept - : ConnectionSet() { - *this = ::std::move(from); - } - - inline ConnectionSet& operator=(ConnectionSet&& 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 ConnectionSet& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ConnectionSet* internal_default_instance() { - return reinterpret_cast( - &_ConnectionSet_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ConnectionSet* other); - friend void swap(ConnectionSet& a, ConnectionSet& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ConnectionSet* New() const final { - return CreateMaybeMessage(nullptr); - } - - ConnectionSet* 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 ConnectionSet& from); - void MergeFrom(const ConnectionSet& 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(ConnectionSet* 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 ---------------------------------------------------- - - typedef ConnectionSet_IdList IdList; - - // accessors ------------------------------------------------------- - - // map downstream = 7; - int downstream_size() const; - void clear_downstream(); - static const int kDownstreamFieldNumber = 7; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& - downstream() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* - mutable_downstream(); - - // map upstream = 8; - int upstream_size() const; - void clear_upstream(); - static const int kUpstreamFieldNumber = 8; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& - upstream() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* - mutable_upstream(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - ConnectionSet_DownstreamEntry_DoNotUse, - ::std::string, ::flyteidl::core::ConnectionSet_IdList, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > downstream_; - ::google::protobuf::internal::MapField< - ConnectionSet_UpstreamEntry_DoNotUse, - ::std::string, ::flyteidl::core::ConnectionSet_IdList, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > upstream_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; -}; -// ------------------------------------------------------------------- - -class CompiledWorkflow final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflow) */ { - public: - CompiledWorkflow(); - virtual ~CompiledWorkflow(); - - CompiledWorkflow(const CompiledWorkflow& from); - - inline CompiledWorkflow& operator=(const CompiledWorkflow& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CompiledWorkflow(CompiledWorkflow&& from) noexcept - : CompiledWorkflow() { - *this = ::std::move(from); - } - - inline CompiledWorkflow& operator=(CompiledWorkflow&& 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 CompiledWorkflow& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompiledWorkflow* internal_default_instance() { - return reinterpret_cast( - &_CompiledWorkflow_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(CompiledWorkflow* other); - friend void swap(CompiledWorkflow& a, CompiledWorkflow& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CompiledWorkflow* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompiledWorkflow* 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 CompiledWorkflow& from); - void MergeFrom(const CompiledWorkflow& 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(CompiledWorkflow* 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.WorkflowTemplate template = 1; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 1; - const ::flyteidl::core::WorkflowTemplate& template_() const; - ::flyteidl::core::WorkflowTemplate* release_template_(); - ::flyteidl::core::WorkflowTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_); - - // .flyteidl.core.ConnectionSet connections = 2; - bool has_connections() const; - void clear_connections(); - static const int kConnectionsFieldNumber = 2; - const ::flyteidl::core::ConnectionSet& connections() const; - ::flyteidl::core::ConnectionSet* release_connections(); - ::flyteidl::core::ConnectionSet* mutable_connections(); - void set_allocated_connections(::flyteidl::core::ConnectionSet* connections); - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowTemplate* template__; - ::flyteidl::core::ConnectionSet* connections_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; -}; -// ------------------------------------------------------------------- - -class CompiledTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledTask) */ { - public: - CompiledTask(); - virtual ~CompiledTask(); - - CompiledTask(const CompiledTask& from); - - inline CompiledTask& operator=(const CompiledTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CompiledTask(CompiledTask&& from) noexcept - : CompiledTask() { - *this = ::std::move(from); - } - - inline CompiledTask& operator=(CompiledTask&& 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 CompiledTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompiledTask* internal_default_instance() { - return reinterpret_cast( - &_CompiledTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(CompiledTask* other); - friend void swap(CompiledTask& a, CompiledTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CompiledTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompiledTask* 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 CompiledTask& from); - void MergeFrom(const CompiledTask& 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(CompiledTask* 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.TaskTemplate template = 1; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 1; - const ::flyteidl::core::TaskTemplate& template_() const; - ::flyteidl::core::TaskTemplate* release_template_(); - ::flyteidl::core::TaskTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskTemplate* template__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; -}; -// ------------------------------------------------------------------- - -class CompiledWorkflowClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.CompiledWorkflowClosure) */ { - public: - CompiledWorkflowClosure(); - virtual ~CompiledWorkflowClosure(); - - CompiledWorkflowClosure(const CompiledWorkflowClosure& from); - - inline CompiledWorkflowClosure& operator=(const CompiledWorkflowClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CompiledWorkflowClosure(CompiledWorkflowClosure&& from) noexcept - : CompiledWorkflowClosure() { - *this = ::std::move(from); - } - - inline CompiledWorkflowClosure& operator=(CompiledWorkflowClosure&& 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 CompiledWorkflowClosure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CompiledWorkflowClosure* internal_default_instance() { - return reinterpret_cast( - &_CompiledWorkflowClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(CompiledWorkflowClosure* other); - friend void swap(CompiledWorkflowClosure& a, CompiledWorkflowClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CompiledWorkflowClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - CompiledWorkflowClosure* 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 CompiledWorkflowClosure& from); - void MergeFrom(const CompiledWorkflowClosure& 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(CompiledWorkflowClosure* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - int sub_workflows_size() const; - void clear_sub_workflows(); - static const int kSubWorkflowsFieldNumber = 2; - ::flyteidl::core::CompiledWorkflow* mutable_sub_workflows(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* - mutable_sub_workflows(); - const ::flyteidl::core::CompiledWorkflow& sub_workflows(int index) const; - ::flyteidl::core::CompiledWorkflow* add_sub_workflows(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& - sub_workflows() const; - - // repeated .flyteidl.core.CompiledTask tasks = 3; - int tasks_size() const; - void clear_tasks(); - static const int kTasksFieldNumber = 3; - ::flyteidl::core::CompiledTask* mutable_tasks(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* - mutable_tasks(); - const ::flyteidl::core::CompiledTask& tasks(int index) const; - ::flyteidl::core::CompiledTask* add_tasks(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& - tasks() const; - - // .flyteidl.core.CompiledWorkflow primary = 1; - bool has_primary() const; - void clear_primary(); - static const int kPrimaryFieldNumber = 1; - const ::flyteidl::core::CompiledWorkflow& primary() const; - ::flyteidl::core::CompiledWorkflow* release_primary(); - ::flyteidl::core::CompiledWorkflow* mutable_primary(); - void set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary); - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow > sub_workflows_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask > tasks_; - ::flyteidl::core::CompiledWorkflow* primary_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcompiler_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ConnectionSet_IdList - -// repeated string ids = 1; -inline int ConnectionSet_IdList::ids_size() const { - return ids_.size(); -} -inline void ConnectionSet_IdList::clear_ids() { - ids_.Clear(); -} -inline const ::std::string& ConnectionSet_IdList::ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.ConnectionSet.IdList.ids) - return ids_.Get(index); -} -inline ::std::string* ConnectionSet_IdList::mutable_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.ConnectionSet.IdList.ids) - return ids_.Mutable(index); -} -inline void ConnectionSet_IdList::set_ids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) - ids_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void ConnectionSet_IdList::set_ids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.ConnectionSet.IdList.ids) - ids_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void ConnectionSet_IdList::set_ids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - ids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ConnectionSet.IdList.ids) -} -inline void ConnectionSet_IdList::set_ids(int index, const char* value, size_t size) { - ids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ConnectionSet.IdList.ids) -} -inline ::std::string* ConnectionSet_IdList::add_ids() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.ConnectionSet.IdList.ids) - return ids_.Add(); -} -inline void ConnectionSet_IdList::add_ids(const ::std::string& value) { - ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) -} -#if LANG_CXX11 -inline void ConnectionSet_IdList::add_ids(::std::string&& value) { - ids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.ConnectionSet.IdList.ids) -} -#endif -inline void ConnectionSet_IdList::add_ids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.ConnectionSet.IdList.ids) -} -inline void ConnectionSet_IdList::add_ids(const char* value, size_t size) { - ids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.ConnectionSet.IdList.ids) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -ConnectionSet_IdList::ids() const { - // @@protoc_insertion_point(field_list:flyteidl.core.ConnectionSet.IdList.ids) - return ids_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -ConnectionSet_IdList::mutable_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.ConnectionSet.IdList.ids) - return &ids_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ConnectionSet - -// map downstream = 7; -inline int ConnectionSet::downstream_size() const { - return downstream_.size(); -} -inline void ConnectionSet::clear_downstream() { - downstream_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& -ConnectionSet::downstream() const { - // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.downstream) - return downstream_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* -ConnectionSet::mutable_downstream() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.downstream) - return downstream_.MutableMap(); -} - -// map upstream = 8; -inline int ConnectionSet::upstream_size() const { - return upstream_.size(); -} -inline void ConnectionSet::clear_upstream() { - upstream_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >& -ConnectionSet::upstream() const { - // @@protoc_insertion_point(field_map:flyteidl.core.ConnectionSet.upstream) - return upstream_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::ConnectionSet_IdList >* -ConnectionSet::mutable_upstream() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ConnectionSet.upstream) - return upstream_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// CompiledWorkflow - -// .flyteidl.core.WorkflowTemplate template = 1; -inline bool CompiledWorkflow::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::WorkflowTemplate& CompiledWorkflow::template_() const { - const ::flyteidl::core::WorkflowTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowTemplate_default_instance_); -} -inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.template) - - ::flyteidl::core::WorkflowTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowTemplate* CompiledWorkflow::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.template) - return template__; -} -inline void CompiledWorkflow::set_allocated_template_(::flyteidl::core::WorkflowTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflow.template) -} - -// .flyteidl.core.ConnectionSet connections = 2; -inline bool CompiledWorkflow::has_connections() const { - return this != internal_default_instance() && connections_ != nullptr; -} -inline void CompiledWorkflow::clear_connections() { - if (GetArenaNoVirtual() == nullptr && connections_ != nullptr) { - delete connections_; - } - connections_ = nullptr; -} -inline const ::flyteidl::core::ConnectionSet& CompiledWorkflow::connections() const { - const ::flyteidl::core::ConnectionSet* p = connections_; - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflow.connections) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ConnectionSet_default_instance_); -} -inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::release_connections() { - // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflow.connections) - - ::flyteidl::core::ConnectionSet* temp = connections_; - connections_ = nullptr; - return temp; -} -inline ::flyteidl::core::ConnectionSet* CompiledWorkflow::mutable_connections() { - - if (connections_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ConnectionSet>(GetArenaNoVirtual()); - connections_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflow.connections) - return connections_; -} -inline void CompiledWorkflow::set_allocated_connections(::flyteidl::core::ConnectionSet* connections) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete connections_; - } - if (connections) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - connections = ::google::protobuf::internal::GetOwnedMessage( - message_arena, connections, submessage_arena); - } - - } else { - - } - connections_ = connections; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflow.connections) -} - -// ------------------------------------------------------------------- - -// CompiledTask - -// .flyteidl.core.TaskTemplate template = 1; -inline bool CompiledTask::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::TaskTemplate& CompiledTask::template_() const { - const ::flyteidl::core::TaskTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledTask.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); -} -inline ::flyteidl::core::TaskTemplate* CompiledTask::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.core.CompiledTask.template) - - ::flyteidl::core::TaskTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskTemplate* CompiledTask::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledTask.template) - return template__; -} -inline void CompiledTask::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledTask.template) -} - -// ------------------------------------------------------------------- - -// CompiledWorkflowClosure - -// .flyteidl.core.CompiledWorkflow primary = 1; -inline bool CompiledWorkflowClosure::has_primary() const { - return this != internal_default_instance() && primary_ != nullptr; -} -inline void CompiledWorkflowClosure::clear_primary() { - if (GetArenaNoVirtual() == nullptr && primary_ != nullptr) { - delete primary_; - } - primary_ = nullptr; -} -inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::primary() const { - const ::flyteidl::core::CompiledWorkflow* p = primary_; - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.primary) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CompiledWorkflow_default_instance_); -} -inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::release_primary() { - // @@protoc_insertion_point(field_release:flyteidl.core.CompiledWorkflowClosure.primary) - - ::flyteidl::core::CompiledWorkflow* temp = primary_; - primary_ = nullptr; - return temp; -} -inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_primary() { - - if (primary_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflow>(GetArenaNoVirtual()); - primary_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.primary) - return primary_; -} -inline void CompiledWorkflowClosure::set_allocated_primary(::flyteidl::core::CompiledWorkflow* primary) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete primary_; - } - if (primary) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - primary = ::google::protobuf::internal::GetOwnedMessage( - message_arena, primary, submessage_arena); - } - - } else { - - } - primary_ = primary; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.CompiledWorkflowClosure.primary) -} - -// repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; -inline int CompiledWorkflowClosure::sub_workflows_size() const { - return sub_workflows_.size(); -} -inline void CompiledWorkflowClosure::clear_sub_workflows() { - sub_workflows_.Clear(); -} -inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::mutable_sub_workflows(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.sub_workflows) - return sub_workflows_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >* -CompiledWorkflowClosure::mutable_sub_workflows() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) - return &sub_workflows_; -} -inline const ::flyteidl::core::CompiledWorkflow& CompiledWorkflowClosure::sub_workflows(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.sub_workflows) - return sub_workflows_.Get(index); -} -inline ::flyteidl::core::CompiledWorkflow* CompiledWorkflowClosure::add_sub_workflows() { - // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.sub_workflows) - return sub_workflows_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledWorkflow >& -CompiledWorkflowClosure::sub_workflows() const { - // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.sub_workflows) - return sub_workflows_; -} - -// repeated .flyteidl.core.CompiledTask tasks = 3; -inline int CompiledWorkflowClosure::tasks_size() const { - return tasks_.size(); -} -inline void CompiledWorkflowClosure::clear_tasks() { - tasks_.Clear(); -} -inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::mutable_tasks(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.CompiledWorkflowClosure.tasks) - return tasks_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >* -CompiledWorkflowClosure::mutable_tasks() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.CompiledWorkflowClosure.tasks) - return &tasks_; -} -inline const ::flyteidl::core::CompiledTask& CompiledWorkflowClosure::tasks(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.CompiledWorkflowClosure.tasks) - return tasks_.Get(index); -} -inline ::flyteidl::core::CompiledTask* CompiledWorkflowClosure::add_tasks() { - // @@protoc_insertion_point(field_add:flyteidl.core.CompiledWorkflowClosure.tasks) - return tasks_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::CompiledTask >& -CompiledWorkflowClosure::tasks() const { - // @@protoc_insertion_point(field_list:flyteidl.core.CompiledWorkflowClosure.tasks) - return tasks_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcompiler_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc deleted file mode 100644 index b549057d69..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/condition.proto - -#include "flyteidl/core/condition.pb.h" -#include "flyteidl/core/condition.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h deleted file mode 100644 index d0c0d08f32..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/condition.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/condition.proto -#ifndef GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED - -#include "flyteidl/core/condition.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fcondition_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc deleted file mode 100644 index e3d506cdf1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.cc +++ /dev/null @@ -1,1995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/condition.proto - -#include "flyteidl/core/condition.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto; -namespace flyteidl { -namespace core { -class ComparisonExpressionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ComparisonExpression_default_instance_; -class OperandDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Primitive* primitive_; - ::google::protobuf::internal::ArenaStringPtr var_; - const ::flyteidl::core::Scalar* scalar_; -} _Operand_default_instance_; -class BooleanExpressionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::ConjunctionExpression* conjunction_; - const ::flyteidl::core::ComparisonExpression* comparison_; -} _BooleanExpression_default_instance_; -class ConjunctionExpressionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ConjunctionExpression_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsComparisonExpression_flyteidl_2fcore_2fcondition_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ComparisonExpression_default_instance_; - new (ptr) ::flyteidl::core::ComparisonExpression(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ComparisonExpression::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsComparisonExpression_flyteidl_2fcore_2fcondition_2eproto}, { - &scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base,}}; - -static void InitDefaultsOperand_flyteidl_2fcore_2fcondition_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Operand_default_instance_; - new (ptr) ::flyteidl::core::Operand(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Operand::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsOperand_flyteidl_2fcore_2fcondition_2eproto}, { - &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsBooleanExpression_flyteidl_2fcore_2fcondition_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_BooleanExpression_default_instance_; - new (ptr) ::flyteidl::core::BooleanExpression(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_ConjunctionExpression_default_instance_; - new (ptr) ::flyteidl::core::ConjunctionExpression(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::BooleanExpression::InitAsDefaultInstance(); - ::flyteidl::core::ConjunctionExpression::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBooleanExpression_flyteidl_2fcore_2fcondition_2eproto}, { - &scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fcondition_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[4]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fcondition_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fcondition_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, operator__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, left_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ComparisonExpression, right_value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::OperandDefaultTypeInternal, primitive_), - offsetof(::flyteidl::core::OperandDefaultTypeInternal, var_), - offsetof(::flyteidl::core::OperandDefaultTypeInternal, scalar_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Operand, val_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, conjunction_), - offsetof(::flyteidl::core::BooleanExpressionDefaultTypeInternal, comparison_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BooleanExpression, expr_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, operator__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, left_expression_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ConjunctionExpression, right_expression_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::ComparisonExpression)}, - { 8, -1, sizeof(::flyteidl::core::Operand)}, - { 17, -1, sizeof(::flyteidl::core::BooleanExpression)}, - { 25, -1, sizeof(::flyteidl::core::ConjunctionExpression)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_ComparisonExpression_default_instance_), - reinterpret_cast(&::flyteidl::core::_Operand_default_instance_), - reinterpret_cast(&::flyteidl::core::_BooleanExpression_default_instance_), - reinterpret_cast(&::flyteidl::core::_ConjunctionExpression_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fcondition_2eproto, "flyteidl/core/condition.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fcondition_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fcondition_2eproto, 4, file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fcondition_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fcondition_2eproto[] = - "\n\035flyteidl/core/condition.proto\022\rflyteid" - "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" - "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" - ",.flyteidl.core.ComparisonExpression.Ope" - "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" - "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" - "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" - "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"{\n" - "\007Operand\0221\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" - "ore.PrimitiveB\002\030\001H\000\022\r\n\003var\030\002 \001(\tH\000\022\'\n\006sc" - "alar\030\003 \001(\0132\025.flyteidl.core.ScalarH\000B\005\n\003v" - "al\"\223\001\n\021BooleanExpression\022;\n\013conjunction\030" - "\001 \001(\0132$.flyteidl.core.ConjunctionExpress" - "ionH\000\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.cor" - "e.ComparisonExpressionH\000B\006\n\004expr\"\372\001\n\025Con" - "junctionExpression\022F\n\010operator\030\001 \001(\01624.f" - "lyteidl.core.ConjunctionExpression.Logic" - "alOperator\0229\n\017left_expression\030\002 \001(\0132 .fl" - "yteidl.core.BooleanExpression\022:\n\020right_e" - "xpression\030\003 \001(\0132 .flyteidl.core.BooleanE" - "xpression\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n" - "\002OR\020\001B= 1900 -const ComparisonExpression_Operator ComparisonExpression::EQ; -const ComparisonExpression_Operator ComparisonExpression::NEQ; -const ComparisonExpression_Operator ComparisonExpression::GT; -const ComparisonExpression_Operator ComparisonExpression::GTE; -const ComparisonExpression_Operator ComparisonExpression::LT; -const ComparisonExpression_Operator ComparisonExpression::LTE; -const ComparisonExpression_Operator ComparisonExpression::Operator_MIN; -const ComparisonExpression_Operator ComparisonExpression::Operator_MAX; -const int ComparisonExpression::Operator_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fcondition_2eproto[1]; -} -bool ConjunctionExpression_LogicalOperator_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const ConjunctionExpression_LogicalOperator ConjunctionExpression::AND; -const ConjunctionExpression_LogicalOperator ConjunctionExpression::OR; -const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MIN; -const ConjunctionExpression_LogicalOperator ConjunctionExpression::LogicalOperator_MAX; -const int ConjunctionExpression::LogicalOperator_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void ComparisonExpression::InitAsDefaultInstance() { - ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->left_value_ = const_cast< ::flyteidl::core::Operand*>( - ::flyteidl::core::Operand::internal_default_instance()); - ::flyteidl::core::_ComparisonExpression_default_instance_._instance.get_mutable()->right_value_ = const_cast< ::flyteidl::core::Operand*>( - ::flyteidl::core::Operand::internal_default_instance()); -} -class ComparisonExpression::HasBitSetters { - public: - static const ::flyteidl::core::Operand& left_value(const ComparisonExpression* msg); - static const ::flyteidl::core::Operand& right_value(const ComparisonExpression* msg); -}; - -const ::flyteidl::core::Operand& -ComparisonExpression::HasBitSetters::left_value(const ComparisonExpression* msg) { - return *msg->left_value_; -} -const ::flyteidl::core::Operand& -ComparisonExpression::HasBitSetters::right_value(const ComparisonExpression* msg) { - return *msg->right_value_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ComparisonExpression::kOperatorFieldNumber; -const int ComparisonExpression::kLeftValueFieldNumber; -const int ComparisonExpression::kRightValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ComparisonExpression::ComparisonExpression() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ComparisonExpression) -} -ComparisonExpression::ComparisonExpression(const ComparisonExpression& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_left_value()) { - left_value_ = new ::flyteidl::core::Operand(*from.left_value_); - } else { - left_value_ = nullptr; - } - if (from.has_right_value()) { - right_value_ = new ::flyteidl::core::Operand(*from.right_value_); - } else { - right_value_ = nullptr; - } - operator__ = from.operator__; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ComparisonExpression) -} - -void ComparisonExpression::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); - ::memset(&left_value_, 0, static_cast( - reinterpret_cast(&operator__) - - reinterpret_cast(&left_value_)) + sizeof(operator__)); -} - -ComparisonExpression::~ComparisonExpression() { - // @@protoc_insertion_point(destructor:flyteidl.core.ComparisonExpression) - SharedDtor(); -} - -void ComparisonExpression::SharedDtor() { - if (this != internal_default_instance()) delete left_value_; - if (this != internal_default_instance()) delete right_value_; -} - -void ComparisonExpression::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ComparisonExpression& ComparisonExpression::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ComparisonExpression_flyteidl_2fcore_2fcondition_2eproto.base); - return *internal_default_instance(); -} - - -void ComparisonExpression::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ComparisonExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && left_value_ != nullptr) { - delete left_value_; - } - left_value_ = nullptr; - if (GetArenaNoVirtual() == nullptr && right_value_ != nullptr) { - delete right_value_; - } - right_value_ = nullptr; - operator__ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ComparisonExpression::_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.ComparisonExpression.Operator operator = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_operator_(static_cast<::flyteidl::core::ComparisonExpression_Operator>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.Operand left_value = 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::core::Operand::_InternalParse; - object = msg->mutable_left_value(); - 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.core.Operand right_value = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Operand::_InternalParse; - object = msg->mutable_right_value(); - 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 ComparisonExpression::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.core.ComparisonExpression) - 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.ComparisonExpression.Operator operator = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_operator_(static_cast< ::flyteidl::core::ComparisonExpression_Operator >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Operand left_value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_left_value())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Operand right_value = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_right_value())); - } 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.core.ComparisonExpression) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ComparisonExpression) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ComparisonExpression::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ComparisonExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ComparisonExpression.Operator operator = 1; - if (this->operator_() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->operator_(), output); - } - - // .flyteidl.core.Operand left_value = 2; - if (this->has_left_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::left_value(this), output); - } - - // .flyteidl.core.Operand right_value = 3; - if (this->has_right_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::right_value(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ComparisonExpression) -} - -::google::protobuf::uint8* ComparisonExpression::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ComparisonExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ComparisonExpression.Operator operator = 1; - if (this->operator_() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->operator_(), target); - } - - // .flyteidl.core.Operand left_value = 2; - if (this->has_left_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::left_value(this), target); - } - - // .flyteidl.core.Operand right_value = 3; - if (this->has_right_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::right_value(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.core.ComparisonExpression) - return target; -} - -size_t ComparisonExpression::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ComparisonExpression) - 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.Operand left_value = 2; - if (this->has_left_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *left_value_); - } - - // .flyteidl.core.Operand right_value = 3; - if (this->has_right_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *right_value_); - } - - // .flyteidl.core.ComparisonExpression.Operator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ComparisonExpression::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ComparisonExpression) - GOOGLE_DCHECK_NE(&from, this); - const ComparisonExpression* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ComparisonExpression) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ComparisonExpression) - MergeFrom(*source); - } -} - -void ComparisonExpression::MergeFrom(const ComparisonExpression& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ComparisonExpression) - 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_left_value()) { - mutable_left_value()->::flyteidl::core::Operand::MergeFrom(from.left_value()); - } - if (from.has_right_value()) { - mutable_right_value()->::flyteidl::core::Operand::MergeFrom(from.right_value()); - } - if (from.operator_() != 0) { - set_operator_(from.operator_()); - } -} - -void ComparisonExpression::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ComparisonExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ComparisonExpression::CopyFrom(const ComparisonExpression& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ComparisonExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ComparisonExpression::IsInitialized() const { - return true; -} - -void ComparisonExpression::Swap(ComparisonExpression* other) { - if (other == this) return; - InternalSwap(other); -} -void ComparisonExpression::InternalSwap(ComparisonExpression* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(left_value_, other->left_value_); - swap(right_value_, other->right_value_); - swap(operator__, other->operator__); -} - -::google::protobuf::Metadata ComparisonExpression::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Operand::InitAsDefaultInstance() { - ::flyteidl::core::_Operand_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( - ::flyteidl::core::Primitive::internal_default_instance()); - ::flyteidl::core::_Operand_default_instance_.var_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::core::_Operand_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( - ::flyteidl::core::Scalar::internal_default_instance()); -} -class Operand::HasBitSetters { - public: - static const ::flyteidl::core::Primitive& primitive(const Operand* msg); - static const ::flyteidl::core::Scalar& scalar(const Operand* msg); -}; - -const ::flyteidl::core::Primitive& -Operand::HasBitSetters::primitive(const Operand* msg) { - return *msg->val_.primitive_; -} -const ::flyteidl::core::Scalar& -Operand::HasBitSetters::scalar(const Operand* msg) { - return *msg->val_.scalar_; -} -void Operand::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_val(); - if (primitive) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - primitive = ::google::protobuf::internal::GetOwnedMessage( - message_arena, primitive, submessage_arena); - } - set_has_primitive(); - val_.primitive_ = primitive; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.primitive) -} -void Operand::clear_primitive() { - if (has_primitive()) { - delete val_.primitive_; - clear_has_val(); - } -} -void Operand::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_val(); - if (scalar) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - scalar = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scalar, submessage_arena); - } - set_has_scalar(); - val_.scalar_ = scalar; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.scalar) -} -void Operand::clear_scalar() { - if (has_scalar()) { - delete val_.scalar_; - clear_has_val(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Operand::kPrimitiveFieldNumber; -const int Operand::kVarFieldNumber; -const int Operand::kScalarFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Operand::Operand() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Operand) -} -Operand::Operand(const Operand& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_val(); - switch (from.val_case()) { - case kPrimitive: { - mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); - break; - } - case kVar: { - set_var(from.var()); - break; - } - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case VAL_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Operand) -} - -void Operand::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); - clear_has_val(); -} - -Operand::~Operand() { - // @@protoc_insertion_point(destructor:flyteidl.core.Operand) - SharedDtor(); -} - -void Operand::SharedDtor() { - if (has_val()) { - clear_val(); - } -} - -void Operand::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Operand& Operand::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Operand_flyteidl_2fcore_2fcondition_2eproto.base); - return *internal_default_instance(); -} - - -void Operand::clear_val() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Operand) - switch (val_case()) { - case kPrimitive: { - delete val_.primitive_; - break; - } - case kVar: { - val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kScalar: { - delete val_.scalar_; - break; - } - case VAL_NOT_SET: { - break; - } - } - _oneof_case_[0] = VAL_NOT_SET; -} - - -void Operand::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Operand) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_val(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Operand::_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.Primitive primitive = 1 [deprecated = true]; - 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::Primitive::_InternalParse; - object = msg->mutable_primitive(); - 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; - } - // string var = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Operand.var"); - object = msg->mutable_var(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Scalar scalar = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Scalar::_InternalParse; - object = msg->mutable_scalar(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Operand::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.core.Operand) - 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.Primitive primitive = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_primitive())); - } else { - goto handle_unusual; - } - break; - } - - // string var = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_var())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Operand.var")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Scalar scalar = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scalar())); - } 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.core.Operand) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Operand) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Operand::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Operand) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - if (has_primitive()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::primitive(this), output); - } - - // string var = 2; - if (has_var()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Operand.var"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->var(), output); - } - - // .flyteidl.core.Scalar scalar = 3; - if (has_scalar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::scalar(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Operand) -} - -::google::protobuf::uint8* Operand::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Operand) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - if (has_primitive()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::primitive(this), target); - } - - // string var = 2; - if (has_var()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Operand.var"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->var(), target); - } - - // .flyteidl.core.Scalar scalar = 3; - if (has_scalar()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::scalar(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.core.Operand) - return target; -} - -size_t Operand::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Operand) - 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 (val_case()) { - // .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - case kPrimitive: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *val_.primitive_); - break; - } - // string var = 2; - case kVar: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->var()); - break; - } - // .flyteidl.core.Scalar scalar = 3; - case kScalar: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *val_.scalar_); - break; - } - case VAL_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Operand::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Operand) - GOOGLE_DCHECK_NE(&from, this); - const Operand* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Operand) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Operand) - MergeFrom(*source); - } -} - -void Operand::MergeFrom(const Operand& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Operand) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.val_case()) { - case kPrimitive: { - mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); - break; - } - case kVar: { - set_var(from.var()); - break; - } - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case VAL_NOT_SET: { - break; - } - } -} - -void Operand::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Operand) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Operand::CopyFrom(const Operand& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Operand) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Operand::IsInitialized() const { - return true; -} - -void Operand::Swap(Operand* other) { - if (other == this) return; - InternalSwap(other); -} -void Operand::InternalSwap(Operand* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(val_, other->val_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Operand::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BooleanExpression::InitAsDefaultInstance() { - ::flyteidl::core::_BooleanExpression_default_instance_.conjunction_ = const_cast< ::flyteidl::core::ConjunctionExpression*>( - ::flyteidl::core::ConjunctionExpression::internal_default_instance()); - ::flyteidl::core::_BooleanExpression_default_instance_.comparison_ = const_cast< ::flyteidl::core::ComparisonExpression*>( - ::flyteidl::core::ComparisonExpression::internal_default_instance()); -} -class BooleanExpression::HasBitSetters { - public: - static const ::flyteidl::core::ConjunctionExpression& conjunction(const BooleanExpression* msg); - static const ::flyteidl::core::ComparisonExpression& comparison(const BooleanExpression* msg); -}; - -const ::flyteidl::core::ConjunctionExpression& -BooleanExpression::HasBitSetters::conjunction(const BooleanExpression* msg) { - return *msg->expr_.conjunction_; -} -const ::flyteidl::core::ComparisonExpression& -BooleanExpression::HasBitSetters::comparison(const BooleanExpression* msg) { - return *msg->expr_.comparison_; -} -void BooleanExpression::set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_expr(); - if (conjunction) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - conjunction = ::google::protobuf::internal::GetOwnedMessage( - message_arena, conjunction, submessage_arena); - } - set_has_conjunction(); - expr_.conjunction_ = conjunction; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.conjunction) -} -void BooleanExpression::set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_expr(); - if (comparison) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - comparison = ::google::protobuf::internal::GetOwnedMessage( - message_arena, comparison, submessage_arena); - } - set_has_comparison(); - expr_.comparison_ = comparison; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BooleanExpression.comparison) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BooleanExpression::kConjunctionFieldNumber; -const int BooleanExpression::kComparisonFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BooleanExpression::BooleanExpression() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BooleanExpression) -} -BooleanExpression::BooleanExpression(const BooleanExpression& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_expr(); - switch (from.expr_case()) { - case kConjunction: { - mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); - break; - } - case kComparison: { - mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); - break; - } - case EXPR_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BooleanExpression) -} - -void BooleanExpression::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); - clear_has_expr(); -} - -BooleanExpression::~BooleanExpression() { - // @@protoc_insertion_point(destructor:flyteidl.core.BooleanExpression) - SharedDtor(); -} - -void BooleanExpression::SharedDtor() { - if (has_expr()) { - clear_expr(); - } -} - -void BooleanExpression::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BooleanExpression& BooleanExpression::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); - return *internal_default_instance(); -} - - -void BooleanExpression::clear_expr() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BooleanExpression) - switch (expr_case()) { - case kConjunction: { - delete expr_.conjunction_; - break; - } - case kComparison: { - delete expr_.comparison_; - break; - } - case EXPR_NOT_SET: { - break; - } - } - _oneof_case_[0] = EXPR_NOT_SET; -} - - -void BooleanExpression::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BooleanExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_expr(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BooleanExpression::_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.ConjunctionExpression conjunction = 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::ConjunctionExpression::_InternalParse; - object = msg->mutable_conjunction(); - 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.core.ComparisonExpression comparison = 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::core::ComparisonExpression::_InternalParse; - object = msg->mutable_comparison(); - 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 BooleanExpression::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.core.BooleanExpression) - 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.ConjunctionExpression conjunction = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_conjunction())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ComparisonExpression comparison = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_comparison())); - } 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.core.BooleanExpression) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BooleanExpression) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BooleanExpression::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BooleanExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ConjunctionExpression conjunction = 1; - if (has_conjunction()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::conjunction(this), output); - } - - // .flyteidl.core.ComparisonExpression comparison = 2; - if (has_comparison()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::comparison(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BooleanExpression) -} - -::google::protobuf::uint8* BooleanExpression::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BooleanExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ConjunctionExpression conjunction = 1; - if (has_conjunction()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::conjunction(this), target); - } - - // .flyteidl.core.ComparisonExpression comparison = 2; - if (has_comparison()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::comparison(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.core.BooleanExpression) - return target; -} - -size_t BooleanExpression::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BooleanExpression) - 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 (expr_case()) { - // .flyteidl.core.ConjunctionExpression conjunction = 1; - case kConjunction: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expr_.conjunction_); - break; - } - // .flyteidl.core.ComparisonExpression comparison = 2; - case kComparison: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expr_.comparison_); - break; - } - case EXPR_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BooleanExpression::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BooleanExpression) - GOOGLE_DCHECK_NE(&from, this); - const BooleanExpression* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BooleanExpression) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BooleanExpression) - MergeFrom(*source); - } -} - -void BooleanExpression::MergeFrom(const BooleanExpression& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BooleanExpression) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.expr_case()) { - case kConjunction: { - mutable_conjunction()->::flyteidl::core::ConjunctionExpression::MergeFrom(from.conjunction()); - break; - } - case kComparison: { - mutable_comparison()->::flyteidl::core::ComparisonExpression::MergeFrom(from.comparison()); - break; - } - case EXPR_NOT_SET: { - break; - } - } -} - -void BooleanExpression::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BooleanExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BooleanExpression::CopyFrom(const BooleanExpression& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BooleanExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BooleanExpression::IsInitialized() const { - return true; -} - -void BooleanExpression::Swap(BooleanExpression* other) { - if (other == this) return; - InternalSwap(other); -} -void BooleanExpression::InternalSwap(BooleanExpression* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(expr_, other->expr_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata BooleanExpression::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ConjunctionExpression::InitAsDefaultInstance() { - ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->left_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( - ::flyteidl::core::BooleanExpression::internal_default_instance()); - ::flyteidl::core::_ConjunctionExpression_default_instance_._instance.get_mutable()->right_expression_ = const_cast< ::flyteidl::core::BooleanExpression*>( - ::flyteidl::core::BooleanExpression::internal_default_instance()); -} -class ConjunctionExpression::HasBitSetters { - public: - static const ::flyteidl::core::BooleanExpression& left_expression(const ConjunctionExpression* msg); - static const ::flyteidl::core::BooleanExpression& right_expression(const ConjunctionExpression* msg); -}; - -const ::flyteidl::core::BooleanExpression& -ConjunctionExpression::HasBitSetters::left_expression(const ConjunctionExpression* msg) { - return *msg->left_expression_; -} -const ::flyteidl::core::BooleanExpression& -ConjunctionExpression::HasBitSetters::right_expression(const ConjunctionExpression* msg) { - return *msg->right_expression_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ConjunctionExpression::kOperatorFieldNumber; -const int ConjunctionExpression::kLeftExpressionFieldNumber; -const int ConjunctionExpression::kRightExpressionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ConjunctionExpression::ConjunctionExpression() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ConjunctionExpression) -} -ConjunctionExpression::ConjunctionExpression(const ConjunctionExpression& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_left_expression()) { - left_expression_ = new ::flyteidl::core::BooleanExpression(*from.left_expression_); - } else { - left_expression_ = nullptr; - } - if (from.has_right_expression()) { - right_expression_ = new ::flyteidl::core::BooleanExpression(*from.right_expression_); - } else { - right_expression_ = nullptr; - } - operator__ = from.operator__; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ConjunctionExpression) -} - -void ConjunctionExpression::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); - ::memset(&left_expression_, 0, static_cast( - reinterpret_cast(&operator__) - - reinterpret_cast(&left_expression_)) + sizeof(operator__)); -} - -ConjunctionExpression::~ConjunctionExpression() { - // @@protoc_insertion_point(destructor:flyteidl.core.ConjunctionExpression) - SharedDtor(); -} - -void ConjunctionExpression::SharedDtor() { - if (this != internal_default_instance()) delete left_expression_; - if (this != internal_default_instance()) delete right_expression_; -} - -void ConjunctionExpression::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ConjunctionExpression& ConjunctionExpression::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base); - return *internal_default_instance(); -} - - -void ConjunctionExpression::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ConjunctionExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && left_expression_ != nullptr) { - delete left_expression_; - } - left_expression_ = nullptr; - if (GetArenaNoVirtual() == nullptr && right_expression_ != nullptr) { - delete right_expression_; - } - right_expression_ = nullptr; - operator__ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ConjunctionExpression::_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.ConjunctionExpression.LogicalOperator operator = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_operator_(static_cast<::flyteidl::core::ConjunctionExpression_LogicalOperator>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.BooleanExpression left_expression = 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::core::BooleanExpression::_InternalParse; - object = msg->mutable_left_expression(); - 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.core.BooleanExpression right_expression = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::BooleanExpression::_InternalParse; - object = msg->mutable_right_expression(); - 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 ConjunctionExpression::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.core.ConjunctionExpression) - 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.ConjunctionExpression.LogicalOperator operator = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_operator_(static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BooleanExpression left_expression = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_left_expression())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BooleanExpression right_expression = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_right_expression())); - } 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.core.ConjunctionExpression) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ConjunctionExpression) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ConjunctionExpression::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ConjunctionExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - if (this->operator_() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->operator_(), output); - } - - // .flyteidl.core.BooleanExpression left_expression = 2; - if (this->has_left_expression()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::left_expression(this), output); - } - - // .flyteidl.core.BooleanExpression right_expression = 3; - if (this->has_right_expression()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::right_expression(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ConjunctionExpression) -} - -::google::protobuf::uint8* ConjunctionExpression::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ConjunctionExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - if (this->operator_() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->operator_(), target); - } - - // .flyteidl.core.BooleanExpression left_expression = 2; - if (this->has_left_expression()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::left_expression(this), target); - } - - // .flyteidl.core.BooleanExpression right_expression = 3; - if (this->has_right_expression()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::right_expression(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.core.ConjunctionExpression) - return target; -} - -size_t ConjunctionExpression::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ConjunctionExpression) - 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.BooleanExpression left_expression = 2; - if (this->has_left_expression()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *left_expression_); - } - - // .flyteidl.core.BooleanExpression right_expression = 3; - if (this->has_right_expression()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *right_expression_); - } - - // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - if (this->operator_() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ConjunctionExpression::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ConjunctionExpression) - GOOGLE_DCHECK_NE(&from, this); - const ConjunctionExpression* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ConjunctionExpression) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ConjunctionExpression) - MergeFrom(*source); - } -} - -void ConjunctionExpression::MergeFrom(const ConjunctionExpression& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ConjunctionExpression) - 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_left_expression()) { - mutable_left_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.left_expression()); - } - if (from.has_right_expression()) { - mutable_right_expression()->::flyteidl::core::BooleanExpression::MergeFrom(from.right_expression()); - } - if (from.operator_() != 0) { - set_operator_(from.operator_()); - } -} - -void ConjunctionExpression::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ConjunctionExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ConjunctionExpression::CopyFrom(const ConjunctionExpression& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ConjunctionExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ConjunctionExpression::IsInitialized() const { - return true; -} - -void ConjunctionExpression::Swap(ConjunctionExpression* other) { - if (other == this) return; - InternalSwap(other); -} -void ConjunctionExpression::InternalSwap(ConjunctionExpression* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(left_expression_, other->left_expression_); - swap(right_expression_, other->right_expression_); - swap(operator__, other->operator__); -} - -::google::protobuf::Metadata ConjunctionExpression::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fcondition_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fcondition_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::ComparisonExpression* Arena::CreateMaybeMessage< ::flyteidl::core::ComparisonExpression >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ComparisonExpression >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Operand* Arena::CreateMaybeMessage< ::flyteidl::core::Operand >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Operand >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BooleanExpression* Arena::CreateMaybeMessage< ::flyteidl::core::BooleanExpression >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BooleanExpression >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ConjunctionExpression* Arena::CreateMaybeMessage< ::flyteidl::core::ConjunctionExpression >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ConjunctionExpression >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h deleted file mode 100644 index d90d75750e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/condition.pb.h +++ /dev/null @@ -1,1308 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/condition.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/literals.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fcondition_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fcondition_2eproto(); -namespace flyteidl { -namespace core { -class BooleanExpression; -class BooleanExpressionDefaultTypeInternal; -extern BooleanExpressionDefaultTypeInternal _BooleanExpression_default_instance_; -class ComparisonExpression; -class ComparisonExpressionDefaultTypeInternal; -extern ComparisonExpressionDefaultTypeInternal _ComparisonExpression_default_instance_; -class ConjunctionExpression; -class ConjunctionExpressionDefaultTypeInternal; -extern ConjunctionExpressionDefaultTypeInternal _ConjunctionExpression_default_instance_; -class Operand; -class OperandDefaultTypeInternal; -extern OperandDefaultTypeInternal _Operand_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::BooleanExpression* Arena::CreateMaybeMessage<::flyteidl::core::BooleanExpression>(Arena*); -template<> ::flyteidl::core::ComparisonExpression* Arena::CreateMaybeMessage<::flyteidl::core::ComparisonExpression>(Arena*); -template<> ::flyteidl::core::ConjunctionExpression* Arena::CreateMaybeMessage<::flyteidl::core::ConjunctionExpression>(Arena*); -template<> ::flyteidl::core::Operand* Arena::CreateMaybeMessage<::flyteidl::core::Operand>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum ComparisonExpression_Operator { - ComparisonExpression_Operator_EQ = 0, - ComparisonExpression_Operator_NEQ = 1, - ComparisonExpression_Operator_GT = 2, - ComparisonExpression_Operator_GTE = 3, - ComparisonExpression_Operator_LT = 4, - ComparisonExpression_Operator_LTE = 5, - ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ComparisonExpression_Operator_ComparisonExpression_Operator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ComparisonExpression_Operator_IsValid(int value); -const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MIN = ComparisonExpression_Operator_EQ; -const ComparisonExpression_Operator ComparisonExpression_Operator_Operator_MAX = ComparisonExpression_Operator_LTE; -const int ComparisonExpression_Operator_Operator_ARRAYSIZE = ComparisonExpression_Operator_Operator_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ComparisonExpression_Operator_descriptor(); -inline const ::std::string& ComparisonExpression_Operator_Name(ComparisonExpression_Operator value) { - return ::google::protobuf::internal::NameOfEnum( - ComparisonExpression_Operator_descriptor(), value); -} -inline bool ComparisonExpression_Operator_Parse( - const ::std::string& name, ComparisonExpression_Operator* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ComparisonExpression_Operator_descriptor(), name, value); -} -enum ConjunctionExpression_LogicalOperator { - ConjunctionExpression_LogicalOperator_AND = 0, - ConjunctionExpression_LogicalOperator_OR = 1, - ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ConjunctionExpression_LogicalOperator_ConjunctionExpression_LogicalOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ConjunctionExpression_LogicalOperator_IsValid(int value); -const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MIN = ConjunctionExpression_LogicalOperator_AND; -const ConjunctionExpression_LogicalOperator ConjunctionExpression_LogicalOperator_LogicalOperator_MAX = ConjunctionExpression_LogicalOperator_OR; -const int ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE = ConjunctionExpression_LogicalOperator_LogicalOperator_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ConjunctionExpression_LogicalOperator_descriptor(); -inline const ::std::string& ConjunctionExpression_LogicalOperator_Name(ConjunctionExpression_LogicalOperator value) { - return ::google::protobuf::internal::NameOfEnum( - ConjunctionExpression_LogicalOperator_descriptor(), value); -} -inline bool ConjunctionExpression_LogicalOperator_Parse( - const ::std::string& name, ConjunctionExpression_LogicalOperator* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ConjunctionExpression_LogicalOperator_descriptor(), name, value); -} -// =================================================================== - -class ComparisonExpression final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ComparisonExpression) */ { - public: - ComparisonExpression(); - virtual ~ComparisonExpression(); - - ComparisonExpression(const ComparisonExpression& from); - - inline ComparisonExpression& operator=(const ComparisonExpression& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComparisonExpression(ComparisonExpression&& from) noexcept - : ComparisonExpression() { - *this = ::std::move(from); - } - - inline ComparisonExpression& operator=(ComparisonExpression&& 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 ComparisonExpression& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComparisonExpression* internal_default_instance() { - return reinterpret_cast( - &_ComparisonExpression_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ComparisonExpression* other); - friend void swap(ComparisonExpression& a, ComparisonExpression& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComparisonExpression* New() const final { - return CreateMaybeMessage(nullptr); - } - - ComparisonExpression* 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 ComparisonExpression& from); - void MergeFrom(const ComparisonExpression& 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(ComparisonExpression* 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 ---------------------------------------------------- - - typedef ComparisonExpression_Operator Operator; - static const Operator EQ = - ComparisonExpression_Operator_EQ; - static const Operator NEQ = - ComparisonExpression_Operator_NEQ; - static const Operator GT = - ComparisonExpression_Operator_GT; - static const Operator GTE = - ComparisonExpression_Operator_GTE; - static const Operator LT = - ComparisonExpression_Operator_LT; - static const Operator LTE = - ComparisonExpression_Operator_LTE; - static inline bool Operator_IsValid(int value) { - return ComparisonExpression_Operator_IsValid(value); - } - static const Operator Operator_MIN = - ComparisonExpression_Operator_Operator_MIN; - static const Operator Operator_MAX = - ComparisonExpression_Operator_Operator_MAX; - static const int Operator_ARRAYSIZE = - ComparisonExpression_Operator_Operator_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Operator_descriptor() { - return ComparisonExpression_Operator_descriptor(); - } - static inline const ::std::string& Operator_Name(Operator value) { - return ComparisonExpression_Operator_Name(value); - } - static inline bool Operator_Parse(const ::std::string& name, - Operator* value) { - return ComparisonExpression_Operator_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.core.Operand left_value = 2; - bool has_left_value() const; - void clear_left_value(); - static const int kLeftValueFieldNumber = 2; - const ::flyteidl::core::Operand& left_value() const; - ::flyteidl::core::Operand* release_left_value(); - ::flyteidl::core::Operand* mutable_left_value(); - void set_allocated_left_value(::flyteidl::core::Operand* left_value); - - // .flyteidl.core.Operand right_value = 3; - bool has_right_value() const; - void clear_right_value(); - static const int kRightValueFieldNumber = 3; - const ::flyteidl::core::Operand& right_value() const; - ::flyteidl::core::Operand* release_right_value(); - ::flyteidl::core::Operand* mutable_right_value(); - void set_allocated_right_value(::flyteidl::core::Operand* right_value); - - // .flyteidl.core.ComparisonExpression.Operator operator = 1; - void clear_operator_(); - static const int kOperatorFieldNumber = 1; - ::flyteidl::core::ComparisonExpression_Operator operator_() const; - void set_operator_(::flyteidl::core::ComparisonExpression_Operator value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Operand* left_value_; - ::flyteidl::core::Operand* right_value_; - int operator__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; -}; -// ------------------------------------------------------------------- - -class Operand final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Operand) */ { - public: - Operand(); - virtual ~Operand(); - - Operand(const Operand& from); - - inline Operand& operator=(const Operand& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Operand(Operand&& from) noexcept - : Operand() { - *this = ::std::move(from); - } - - inline Operand& operator=(Operand&& 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 Operand& default_instance(); - - enum ValCase { - kPrimitive = 1, - kVar = 2, - kScalar = 3, - VAL_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Operand* internal_default_instance() { - return reinterpret_cast( - &_Operand_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Operand* other); - friend void swap(Operand& a, Operand& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Operand* New() const final { - return CreateMaybeMessage(nullptr); - } - - Operand* 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 Operand& from); - void MergeFrom(const Operand& 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(Operand* 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.Primitive primitive = 1 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_primitive() const; - PROTOBUF_DEPRECATED void clear_primitive(); - PROTOBUF_DEPRECATED static const int kPrimitiveFieldNumber = 1; - PROTOBUF_DEPRECATED const ::flyteidl::core::Primitive& primitive() const; - PROTOBUF_DEPRECATED ::flyteidl::core::Primitive* release_primitive(); - PROTOBUF_DEPRECATED ::flyteidl::core::Primitive* mutable_primitive(); - PROTOBUF_DEPRECATED void set_allocated_primitive(::flyteidl::core::Primitive* primitive); - - // string var = 2; - private: - bool has_var() const; - public: - void clear_var(); - static const int kVarFieldNumber = 2; - const ::std::string& var() const; - void set_var(const ::std::string& value); - #if LANG_CXX11 - void set_var(::std::string&& value); - #endif - void set_var(const char* value); - void set_var(const char* value, size_t size); - ::std::string* mutable_var(); - ::std::string* release_var(); - void set_allocated_var(::std::string* var); - - // .flyteidl.core.Scalar scalar = 3; - bool has_scalar() const; - void clear_scalar(); - static const int kScalarFieldNumber = 3; - const ::flyteidl::core::Scalar& scalar() const; - ::flyteidl::core::Scalar* release_scalar(); - ::flyteidl::core::Scalar* mutable_scalar(); - void set_allocated_scalar(::flyteidl::core::Scalar* scalar); - - void clear_val(); - ValCase val_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) - private: - class HasBitSetters; - void set_has_primitive(); - void set_has_var(); - void set_has_scalar(); - - inline bool has_val() const; - inline void clear_has_val(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ValUnion { - ValUnion() {} - ::flyteidl::core::Primitive* primitive_; - ::google::protobuf::internal::ArenaStringPtr var_; - ::flyteidl::core::Scalar* scalar_; - } val_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; -}; -// ------------------------------------------------------------------- - -class BooleanExpression final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BooleanExpression) */ { - public: - BooleanExpression(); - virtual ~BooleanExpression(); - - BooleanExpression(const BooleanExpression& from); - - inline BooleanExpression& operator=(const BooleanExpression& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BooleanExpression(BooleanExpression&& from) noexcept - : BooleanExpression() { - *this = ::std::move(from); - } - - inline BooleanExpression& operator=(BooleanExpression&& 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 BooleanExpression& default_instance(); - - enum ExprCase { - kConjunction = 1, - kComparison = 2, - EXPR_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BooleanExpression* internal_default_instance() { - return reinterpret_cast( - &_BooleanExpression_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(BooleanExpression* other); - friend void swap(BooleanExpression& a, BooleanExpression& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BooleanExpression* New() const final { - return CreateMaybeMessage(nullptr); - } - - BooleanExpression* 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 BooleanExpression& from); - void MergeFrom(const BooleanExpression& 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(BooleanExpression* 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.ConjunctionExpression conjunction = 1; - bool has_conjunction() const; - void clear_conjunction(); - static const int kConjunctionFieldNumber = 1; - const ::flyteidl::core::ConjunctionExpression& conjunction() const; - ::flyteidl::core::ConjunctionExpression* release_conjunction(); - ::flyteidl::core::ConjunctionExpression* mutable_conjunction(); - void set_allocated_conjunction(::flyteidl::core::ConjunctionExpression* conjunction); - - // .flyteidl.core.ComparisonExpression comparison = 2; - bool has_comparison() const; - void clear_comparison(); - static const int kComparisonFieldNumber = 2; - const ::flyteidl::core::ComparisonExpression& comparison() const; - ::flyteidl::core::ComparisonExpression* release_comparison(); - ::flyteidl::core::ComparisonExpression* mutable_comparison(); - void set_allocated_comparison(::flyteidl::core::ComparisonExpression* comparison); - - void clear_expr(); - ExprCase expr_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) - private: - class HasBitSetters; - void set_has_conjunction(); - void set_has_comparison(); - - inline bool has_expr() const; - inline void clear_has_expr(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ExprUnion { - ExprUnion() {} - ::flyteidl::core::ConjunctionExpression* conjunction_; - ::flyteidl::core::ComparisonExpression* comparison_; - } expr_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; -}; -// ------------------------------------------------------------------- - -class ConjunctionExpression final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ConjunctionExpression) */ { - public: - ConjunctionExpression(); - virtual ~ConjunctionExpression(); - - ConjunctionExpression(const ConjunctionExpression& from); - - inline ConjunctionExpression& operator=(const ConjunctionExpression& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ConjunctionExpression(ConjunctionExpression&& from) noexcept - : ConjunctionExpression() { - *this = ::std::move(from); - } - - inline ConjunctionExpression& operator=(ConjunctionExpression&& 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 ConjunctionExpression& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ConjunctionExpression* internal_default_instance() { - return reinterpret_cast( - &_ConjunctionExpression_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ConjunctionExpression* other); - friend void swap(ConjunctionExpression& a, ConjunctionExpression& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ConjunctionExpression* New() const final { - return CreateMaybeMessage(nullptr); - } - - ConjunctionExpression* 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 ConjunctionExpression& from); - void MergeFrom(const ConjunctionExpression& 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(ConjunctionExpression* 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 ---------------------------------------------------- - - typedef ConjunctionExpression_LogicalOperator LogicalOperator; - static const LogicalOperator AND = - ConjunctionExpression_LogicalOperator_AND; - static const LogicalOperator OR = - ConjunctionExpression_LogicalOperator_OR; - static inline bool LogicalOperator_IsValid(int value) { - return ConjunctionExpression_LogicalOperator_IsValid(value); - } - static const LogicalOperator LogicalOperator_MIN = - ConjunctionExpression_LogicalOperator_LogicalOperator_MIN; - static const LogicalOperator LogicalOperator_MAX = - ConjunctionExpression_LogicalOperator_LogicalOperator_MAX; - static const int LogicalOperator_ARRAYSIZE = - ConjunctionExpression_LogicalOperator_LogicalOperator_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - LogicalOperator_descriptor() { - return ConjunctionExpression_LogicalOperator_descriptor(); - } - static inline const ::std::string& LogicalOperator_Name(LogicalOperator value) { - return ConjunctionExpression_LogicalOperator_Name(value); - } - static inline bool LogicalOperator_Parse(const ::std::string& name, - LogicalOperator* value) { - return ConjunctionExpression_LogicalOperator_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.core.BooleanExpression left_expression = 2; - bool has_left_expression() const; - void clear_left_expression(); - static const int kLeftExpressionFieldNumber = 2; - const ::flyteidl::core::BooleanExpression& left_expression() const; - ::flyteidl::core::BooleanExpression* release_left_expression(); - ::flyteidl::core::BooleanExpression* mutable_left_expression(); - void set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression); - - // .flyteidl.core.BooleanExpression right_expression = 3; - bool has_right_expression() const; - void clear_right_expression(); - static const int kRightExpressionFieldNumber = 3; - const ::flyteidl::core::BooleanExpression& right_expression() const; - ::flyteidl::core::BooleanExpression* release_right_expression(); - ::flyteidl::core::BooleanExpression* mutable_right_expression(); - void set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression); - - // .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - void clear_operator_(); - static const int kOperatorFieldNumber = 1; - ::flyteidl::core::ConjunctionExpression_LogicalOperator operator_() const; - void set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::BooleanExpression* left_expression_; - ::flyteidl::core::BooleanExpression* right_expression_; - int operator__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fcondition_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ComparisonExpression - -// .flyteidl.core.ComparisonExpression.Operator operator = 1; -inline void ComparisonExpression::clear_operator_() { - operator__ = 0; -} -inline ::flyteidl::core::ComparisonExpression_Operator ComparisonExpression::operator_() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.operator) - return static_cast< ::flyteidl::core::ComparisonExpression_Operator >(operator__); -} -inline void ComparisonExpression::set_operator_(::flyteidl::core::ComparisonExpression_Operator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ComparisonExpression.operator) -} - -// .flyteidl.core.Operand left_value = 2; -inline bool ComparisonExpression::has_left_value() const { - return this != internal_default_instance() && left_value_ != nullptr; -} -inline void ComparisonExpression::clear_left_value() { - if (GetArenaNoVirtual() == nullptr && left_value_ != nullptr) { - delete left_value_; - } - left_value_ = nullptr; -} -inline const ::flyteidl::core::Operand& ComparisonExpression::left_value() const { - const ::flyteidl::core::Operand* p = left_value_; - // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.left_value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Operand_default_instance_); -} -inline ::flyteidl::core::Operand* ComparisonExpression::release_left_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.left_value) - - ::flyteidl::core::Operand* temp = left_value_; - left_value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Operand* ComparisonExpression::mutable_left_value() { - - if (left_value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Operand>(GetArenaNoVirtual()); - left_value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.left_value) - return left_value_; -} -inline void ComparisonExpression::set_allocated_left_value(::flyteidl::core::Operand* left_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete left_value_; - } - if (left_value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - left_value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, left_value, submessage_arena); - } - - } else { - - } - left_value_ = left_value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.left_value) -} - -// .flyteidl.core.Operand right_value = 3; -inline bool ComparisonExpression::has_right_value() const { - return this != internal_default_instance() && right_value_ != nullptr; -} -inline void ComparisonExpression::clear_right_value() { - if (GetArenaNoVirtual() == nullptr && right_value_ != nullptr) { - delete right_value_; - } - right_value_ = nullptr; -} -inline const ::flyteidl::core::Operand& ComparisonExpression::right_value() const { - const ::flyteidl::core::Operand* p = right_value_; - // @@protoc_insertion_point(field_get:flyteidl.core.ComparisonExpression.right_value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Operand_default_instance_); -} -inline ::flyteidl::core::Operand* ComparisonExpression::release_right_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.ComparisonExpression.right_value) - - ::flyteidl::core::Operand* temp = right_value_; - right_value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Operand* ComparisonExpression::mutable_right_value() { - - if (right_value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Operand>(GetArenaNoVirtual()); - right_value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ComparisonExpression.right_value) - return right_value_; -} -inline void ComparisonExpression::set_allocated_right_value(::flyteidl::core::Operand* right_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete right_value_; - } - if (right_value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - right_value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, right_value, submessage_arena); - } - - } else { - - } - right_value_ = right_value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ComparisonExpression.right_value) -} - -// ------------------------------------------------------------------- - -// Operand - -// .flyteidl.core.Primitive primitive = 1 [deprecated = true]; -inline bool Operand::has_primitive() const { - return val_case() == kPrimitive; -} -inline void Operand::set_has_primitive() { - _oneof_case_[0] = kPrimitive; -} -inline ::flyteidl::core::Primitive* Operand::release_primitive() { - // @@protoc_insertion_point(field_release:flyteidl.core.Operand.primitive) - if (has_primitive()) { - clear_has_val(); - ::flyteidl::core::Primitive* temp = val_.primitive_; - val_.primitive_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Primitive& Operand::primitive() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Operand.primitive) - return has_primitive() - ? *val_.primitive_ - : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); -} -inline ::flyteidl::core::Primitive* Operand::mutable_primitive() { - if (!has_primitive()) { - clear_val(); - set_has_primitive(); - val_.primitive_ = CreateMaybeMessage< ::flyteidl::core::Primitive >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.primitive) - return val_.primitive_; -} - -// string var = 2; -inline bool Operand::has_var() const { - return val_case() == kVar; -} -inline void Operand::set_has_var() { - _oneof_case_[0] = kVar; -} -inline void Operand::clear_var() { - if (has_var()) { - val_.var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_val(); - } -} -inline const ::std::string& Operand::var() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Operand.var) - if (has_var()) { - return val_.var_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Operand::set_var(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) - if (!has_var()) { - clear_val(); - set_has_var(); - val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) -} -#if LANG_CXX11 -inline void Operand::set_var(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Operand.var) - if (!has_var()) { - clear_val(); - set_has_var(); - val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Operand.var) -} -#endif -inline void Operand::set_var(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_var()) { - clear_val(); - set_has_var(); - val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Operand.var) -} -inline void Operand::set_var(const char* value, size_t size) { - if (!has_var()) { - clear_val(); - set_has_var(); - val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - val_.var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Operand.var) -} -inline ::std::string* Operand::mutable_var() { - if (!has_var()) { - clear_val(); - set_has_var(); - val_.var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.var) - return val_.var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Operand::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.Operand.var) - if (has_var()) { - clear_has_val(); - return val_.var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Operand::set_allocated_var(::std::string* var) { - if (has_val()) { - clear_val(); - } - if (var != nullptr) { - set_has_var(); - val_.var_.UnsafeSetDefault(var); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Operand.var) -} - -// .flyteidl.core.Scalar scalar = 3; -inline bool Operand::has_scalar() const { - return val_case() == kScalar; -} -inline void Operand::set_has_scalar() { - _oneof_case_[0] = kScalar; -} -inline ::flyteidl::core::Scalar* Operand::release_scalar() { - // @@protoc_insertion_point(field_release:flyteidl.core.Operand.scalar) - if (has_scalar()) { - clear_has_val(); - ::flyteidl::core::Scalar* temp = val_.scalar_; - val_.scalar_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Scalar& Operand::scalar() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Operand.scalar) - return has_scalar() - ? *val_.scalar_ - : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); -} -inline ::flyteidl::core::Scalar* Operand::mutable_scalar() { - if (!has_scalar()) { - clear_val(); - set_has_scalar(); - val_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Operand.scalar) - return val_.scalar_; -} - -inline bool Operand::has_val() const { - return val_case() != VAL_NOT_SET; -} -inline void Operand::clear_has_val() { - _oneof_case_[0] = VAL_NOT_SET; -} -inline Operand::ValCase Operand::val_case() const { - return Operand::ValCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// BooleanExpression - -// .flyteidl.core.ConjunctionExpression conjunction = 1; -inline bool BooleanExpression::has_conjunction() const { - return expr_case() == kConjunction; -} -inline void BooleanExpression::set_has_conjunction() { - _oneof_case_[0] = kConjunction; -} -inline void BooleanExpression::clear_conjunction() { - if (has_conjunction()) { - delete expr_.conjunction_; - clear_has_expr(); - } -} -inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::release_conjunction() { - // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.conjunction) - if (has_conjunction()) { - clear_has_expr(); - ::flyteidl::core::ConjunctionExpression* temp = expr_.conjunction_; - expr_.conjunction_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ConjunctionExpression& BooleanExpression::conjunction() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.conjunction) - return has_conjunction() - ? *expr_.conjunction_ - : *reinterpret_cast< ::flyteidl::core::ConjunctionExpression*>(&::flyteidl::core::_ConjunctionExpression_default_instance_); -} -inline ::flyteidl::core::ConjunctionExpression* BooleanExpression::mutable_conjunction() { - if (!has_conjunction()) { - clear_expr(); - set_has_conjunction(); - expr_.conjunction_ = CreateMaybeMessage< ::flyteidl::core::ConjunctionExpression >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.conjunction) - return expr_.conjunction_; -} - -// .flyteidl.core.ComparisonExpression comparison = 2; -inline bool BooleanExpression::has_comparison() const { - return expr_case() == kComparison; -} -inline void BooleanExpression::set_has_comparison() { - _oneof_case_[0] = kComparison; -} -inline void BooleanExpression::clear_comparison() { - if (has_comparison()) { - delete expr_.comparison_; - clear_has_expr(); - } -} -inline ::flyteidl::core::ComparisonExpression* BooleanExpression::release_comparison() { - // @@protoc_insertion_point(field_release:flyteidl.core.BooleanExpression.comparison) - if (has_comparison()) { - clear_has_expr(); - ::flyteidl::core::ComparisonExpression* temp = expr_.comparison_; - expr_.comparison_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ComparisonExpression& BooleanExpression::comparison() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BooleanExpression.comparison) - return has_comparison() - ? *expr_.comparison_ - : *reinterpret_cast< ::flyteidl::core::ComparisonExpression*>(&::flyteidl::core::_ComparisonExpression_default_instance_); -} -inline ::flyteidl::core::ComparisonExpression* BooleanExpression::mutable_comparison() { - if (!has_comparison()) { - clear_expr(); - set_has_comparison(); - expr_.comparison_ = CreateMaybeMessage< ::flyteidl::core::ComparisonExpression >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BooleanExpression.comparison) - return expr_.comparison_; -} - -inline bool BooleanExpression::has_expr() const { - return expr_case() != EXPR_NOT_SET; -} -inline void BooleanExpression::clear_has_expr() { - _oneof_case_[0] = EXPR_NOT_SET; -} -inline BooleanExpression::ExprCase BooleanExpression::expr_case() const { - return BooleanExpression::ExprCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ConjunctionExpression - -// .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; -inline void ConjunctionExpression::clear_operator_() { - operator__ = 0; -} -inline ::flyteidl::core::ConjunctionExpression_LogicalOperator ConjunctionExpression::operator_() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.operator) - return static_cast< ::flyteidl::core::ConjunctionExpression_LogicalOperator >(operator__); -} -inline void ConjunctionExpression::set_operator_(::flyteidl::core::ConjunctionExpression_LogicalOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ConjunctionExpression.operator) -} - -// .flyteidl.core.BooleanExpression left_expression = 2; -inline bool ConjunctionExpression::has_left_expression() const { - return this != internal_default_instance() && left_expression_ != nullptr; -} -inline void ConjunctionExpression::clear_left_expression() { - if (GetArenaNoVirtual() == nullptr && left_expression_ != nullptr) { - delete left_expression_; - } - left_expression_ = nullptr; -} -inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::left_expression() const { - const ::flyteidl::core::BooleanExpression* p = left_expression_; - // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.left_expression) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BooleanExpression_default_instance_); -} -inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_left_expression() { - // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.left_expression) - - ::flyteidl::core::BooleanExpression* temp = left_expression_; - left_expression_ = nullptr; - return temp; -} -inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_left_expression() { - - if (left_expression_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); - left_expression_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.left_expression) - return left_expression_; -} -inline void ConjunctionExpression::set_allocated_left_expression(::flyteidl::core::BooleanExpression* left_expression) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete left_expression_; - } - if (left_expression) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - left_expression = ::google::protobuf::internal::GetOwnedMessage( - message_arena, left_expression, submessage_arena); - } - - } else { - - } - left_expression_ = left_expression; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.left_expression) -} - -// .flyteidl.core.BooleanExpression right_expression = 3; -inline bool ConjunctionExpression::has_right_expression() const { - return this != internal_default_instance() && right_expression_ != nullptr; -} -inline void ConjunctionExpression::clear_right_expression() { - if (GetArenaNoVirtual() == nullptr && right_expression_ != nullptr) { - delete right_expression_; - } - right_expression_ = nullptr; -} -inline const ::flyteidl::core::BooleanExpression& ConjunctionExpression::right_expression() const { - const ::flyteidl::core::BooleanExpression* p = right_expression_; - // @@protoc_insertion_point(field_get:flyteidl.core.ConjunctionExpression.right_expression) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BooleanExpression_default_instance_); -} -inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::release_right_expression() { - // @@protoc_insertion_point(field_release:flyteidl.core.ConjunctionExpression.right_expression) - - ::flyteidl::core::BooleanExpression* temp = right_expression_; - right_expression_ = nullptr; - return temp; -} -inline ::flyteidl::core::BooleanExpression* ConjunctionExpression::mutable_right_expression() { - - if (right_expression_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); - right_expression_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ConjunctionExpression.right_expression) - return right_expression_; -} -inline void ConjunctionExpression::set_allocated_right_expression(::flyteidl::core::BooleanExpression* right_expression) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete right_expression_; - } - if (right_expression) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - right_expression = ::google::protobuf::internal::GetOwnedMessage( - message_arena, right_expression, submessage_arena); - } - - } else { - - } - right_expression_ = right_expression; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ConjunctionExpression.right_expression) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::ComparisonExpression_Operator> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ComparisonExpression_Operator>() { - return ::flyteidl::core::ComparisonExpression_Operator_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::ConjunctionExpression_LogicalOperator> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ConjunctionExpression_LogicalOperator>() { - return ::flyteidl::core::ConjunctionExpression_LogicalOperator_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fcondition_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc deleted file mode 100644 index 4b2e553c43..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/dynamic_job.proto - -#include "flyteidl/core/dynamic_job.pb.h" -#include "flyteidl/core/dynamic_job.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h deleted file mode 100644 index 0e8e0566f0..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/dynamic_job.proto -#ifndef GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED - -#include "flyteidl/core/dynamic_job.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fdynamic_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc deleted file mode 100644 index 40f059d1ba..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.cc +++ /dev/null @@ -1,646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/dynamic_job.proto - -#include "flyteidl/core/dynamic_job.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto; -namespace flyteidl { -namespace core { -class DynamicJobSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DynamicJobSpec_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsDynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_DynamicJobSpec_default_instance_; - new (ptr) ::flyteidl::core::DynamicJobSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::DynamicJobSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsDynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto}, { - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fdynamic_5fjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, nodes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, min_successes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, tasks_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DynamicJobSpec, subworkflows_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::DynamicJobSpec)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_DynamicJobSpec_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, "flyteidl/core/dynamic_job.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fdynamic_5fjob_2eproto[] = - "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" - "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" - "teidl/core/workflow.proto\032\034flyteidl/core" - "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" - "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" - "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" - "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" - ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" - "2\037.flyteidl.core.WorkflowTemplateB= 1900 -const int DynamicJobSpec::kNodesFieldNumber; -const int DynamicJobSpec::kMinSuccessesFieldNumber; -const int DynamicJobSpec::kOutputsFieldNumber; -const int DynamicJobSpec::kTasksFieldNumber; -const int DynamicJobSpec::kSubworkflowsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DynamicJobSpec::DynamicJobSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.DynamicJobSpec) -} -DynamicJobSpec::DynamicJobSpec(const DynamicJobSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - nodes_(from.nodes_), - outputs_(from.outputs_), - tasks_(from.tasks_), - subworkflows_(from.subworkflows_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - min_successes_ = from.min_successes_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.DynamicJobSpec) -} - -void DynamicJobSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); - min_successes_ = PROTOBUF_LONGLONG(0); -} - -DynamicJobSpec::~DynamicJobSpec() { - // @@protoc_insertion_point(destructor:flyteidl.core.DynamicJobSpec) - SharedDtor(); -} - -void DynamicJobSpec::SharedDtor() { -} - -void DynamicJobSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DynamicJobSpec& DynamicJobSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DynamicJobSpec_flyteidl_2fcore_2fdynamic_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void DynamicJobSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.DynamicJobSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - nodes_.Clear(); - outputs_.Clear(); - tasks_.Clear(); - subworkflows_.Clear(); - min_successes_ = PROTOBUF_LONGLONG(0); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DynamicJobSpec::_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) { - // repeated .flyteidl.core.Node nodes = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Node::_InternalParse; - object = msg->add_nodes(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // int64 min_successes = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .flyteidl.core.Binding outputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Binding::_InternalParse; - object = msg->add_outputs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.TaskTemplate tasks = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; - object = msg->add_tasks(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowTemplate::_InternalParse; - object = msg->add_subworkflows(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - 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 DynamicJobSpec::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.core.DynamicJobSpec) - 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)) { - // repeated .flyteidl.core.Node nodes = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_nodes())); - } else { - goto handle_unusual; - } - break; - } - - // int64 min_successes = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &min_successes_))); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Binding outputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskTemplate tasks = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tasks())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_subworkflows())); - } 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.core.DynamicJobSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.DynamicJobSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DynamicJobSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.DynamicJobSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Node nodes = 1; - for (unsigned int i = 0, - n = static_cast(this->nodes_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->nodes(static_cast(i)), - output); - } - - // int64 min_successes = 2; - if (this->min_successes() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->min_successes(), output); - } - - // repeated .flyteidl.core.Binding outputs = 3; - for (unsigned int i = 0, - n = static_cast(this->outputs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->outputs(static_cast(i)), - output); - } - - // repeated .flyteidl.core.TaskTemplate tasks = 4; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->tasks(static_cast(i)), - output); - } - - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - for (unsigned int i = 0, - n = static_cast(this->subworkflows_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->subworkflows(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.DynamicJobSpec) -} - -::google::protobuf::uint8* DynamicJobSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.DynamicJobSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Node nodes = 1; - for (unsigned int i = 0, - n = static_cast(this->nodes_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->nodes(static_cast(i)), target); - } - - // int64 min_successes = 2; - if (this->min_successes() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->min_successes(), target); - } - - // repeated .flyteidl.core.Binding outputs = 3; - for (unsigned int i = 0, - n = static_cast(this->outputs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->outputs(static_cast(i)), target); - } - - // repeated .flyteidl.core.TaskTemplate tasks = 4; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->tasks(static_cast(i)), target); - } - - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - for (unsigned int i = 0, - n = static_cast(this->subworkflows_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->subworkflows(static_cast(i)), 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.core.DynamicJobSpec) - return target; -} - -size_t DynamicJobSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.DynamicJobSpec) - 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; - - // repeated .flyteidl.core.Node nodes = 1; - { - unsigned int count = static_cast(this->nodes_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->nodes(static_cast(i))); - } - } - - // repeated .flyteidl.core.Binding outputs = 3; - { - unsigned int count = static_cast(this->outputs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->outputs(static_cast(i))); - } - } - - // repeated .flyteidl.core.TaskTemplate tasks = 4; - { - unsigned int count = static_cast(this->tasks_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tasks(static_cast(i))); - } - } - - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - { - unsigned int count = static_cast(this->subworkflows_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->subworkflows(static_cast(i))); - } - } - - // int64 min_successes = 2; - if (this->min_successes() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->min_successes()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DynamicJobSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.DynamicJobSpec) - GOOGLE_DCHECK_NE(&from, this); - const DynamicJobSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.DynamicJobSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.DynamicJobSpec) - MergeFrom(*source); - } -} - -void DynamicJobSpec::MergeFrom(const DynamicJobSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.DynamicJobSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - nodes_.MergeFrom(from.nodes_); - outputs_.MergeFrom(from.outputs_); - tasks_.MergeFrom(from.tasks_); - subworkflows_.MergeFrom(from.subworkflows_); - if (from.min_successes() != 0) { - set_min_successes(from.min_successes()); - } -} - -void DynamicJobSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.DynamicJobSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DynamicJobSpec::CopyFrom(const DynamicJobSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.DynamicJobSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DynamicJobSpec::IsInitialized() const { - return true; -} - -void DynamicJobSpec::Swap(DynamicJobSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void DynamicJobSpec::InternalSwap(DynamicJobSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_)); - CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); - CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); - CastToBase(&subworkflows_)->InternalSwap(CastToBase(&other->subworkflows_)); - swap(min_successes_, other->min_successes_); -} - -::google::protobuf::Metadata DynamicJobSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fdynamic_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fdynamic_5fjob_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::DynamicJobSpec* Arena::CreateMaybeMessage< ::flyteidl::core::DynamicJobSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::DynamicJobSpec >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h deleted file mode 100644 index c4fc525e63..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/dynamic_job.pb.h +++ /dev/null @@ -1,378 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/dynamic_job.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/workflow.pb.h" -#include "flyteidl/core/literals.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fdynamic_5fjob_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fdynamic_5fjob_2eproto(); -namespace flyteidl { -namespace core { -class DynamicJobSpec; -class DynamicJobSpecDefaultTypeInternal; -extern DynamicJobSpecDefaultTypeInternal _DynamicJobSpec_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::DynamicJobSpec* Arena::CreateMaybeMessage<::flyteidl::core::DynamicJobSpec>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class DynamicJobSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.DynamicJobSpec) */ { - public: - DynamicJobSpec(); - virtual ~DynamicJobSpec(); - - DynamicJobSpec(const DynamicJobSpec& from); - - inline DynamicJobSpec& operator=(const DynamicJobSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DynamicJobSpec(DynamicJobSpec&& from) noexcept - : DynamicJobSpec() { - *this = ::std::move(from); - } - - inline DynamicJobSpec& operator=(DynamicJobSpec&& 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 DynamicJobSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DynamicJobSpec* internal_default_instance() { - return reinterpret_cast( - &_DynamicJobSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DynamicJobSpec* other); - friend void swap(DynamicJobSpec& a, DynamicJobSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DynamicJobSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - DynamicJobSpec* 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 DynamicJobSpec& from); - void MergeFrom(const DynamicJobSpec& 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(DynamicJobSpec* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Node nodes = 1; - int nodes_size() const; - void clear_nodes(); - static const int kNodesFieldNumber = 1; - ::flyteidl::core::Node* mutable_nodes(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* - mutable_nodes(); - const ::flyteidl::core::Node& nodes(int index) const; - ::flyteidl::core::Node* add_nodes(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& - nodes() const; - - // repeated .flyteidl.core.Binding outputs = 3; - int outputs_size() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 3; - ::flyteidl::core::Binding* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* - mutable_outputs(); - const ::flyteidl::core::Binding& outputs(int index) const; - ::flyteidl::core::Binding* add_outputs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& - outputs() const; - - // repeated .flyteidl.core.TaskTemplate tasks = 4; - int tasks_size() const; - void clear_tasks(); - static const int kTasksFieldNumber = 4; - ::flyteidl::core::TaskTemplate* mutable_tasks(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* - mutable_tasks(); - const ::flyteidl::core::TaskTemplate& tasks(int index) const; - ::flyteidl::core::TaskTemplate* add_tasks(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& - tasks() const; - - // repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - int subworkflows_size() const; - void clear_subworkflows(); - static const int kSubworkflowsFieldNumber = 5; - ::flyteidl::core::WorkflowTemplate* mutable_subworkflows(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* - mutable_subworkflows(); - const ::flyteidl::core::WorkflowTemplate& subworkflows(int index) const; - ::flyteidl::core::WorkflowTemplate* add_subworkflows(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& - subworkflows() const; - - // int64 min_successes = 2; - void clear_min_successes(); - static const int kMinSuccessesFieldNumber = 2; - ::google::protobuf::int64 min_successes() const; - void set_min_successes(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate > subworkflows_; - ::google::protobuf::int64 min_successes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fdynamic_5fjob_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DynamicJobSpec - -// repeated .flyteidl.core.Node nodes = 1; -inline int DynamicJobSpec::nodes_size() const { - return nodes_.size(); -} -inline ::flyteidl::core::Node* DynamicJobSpec::mutable_nodes(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.nodes) - return nodes_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* -DynamicJobSpec::mutable_nodes() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.nodes) - return &nodes_; -} -inline const ::flyteidl::core::Node& DynamicJobSpec::nodes(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.nodes) - return nodes_.Get(index); -} -inline ::flyteidl::core::Node* DynamicJobSpec::add_nodes() { - // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.nodes) - return nodes_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& -DynamicJobSpec::nodes() const { - // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.nodes) - return nodes_; -} - -// int64 min_successes = 2; -inline void DynamicJobSpec::clear_min_successes() { - min_successes_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 DynamicJobSpec::min_successes() const { - // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.min_successes) - return min_successes_; -} -inline void DynamicJobSpec::set_min_successes(::google::protobuf::int64 value) { - - min_successes_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.DynamicJobSpec.min_successes) -} - -// repeated .flyteidl.core.Binding outputs = 3; -inline int DynamicJobSpec::outputs_size() const { - return outputs_.size(); -} -inline ::flyteidl::core::Binding* DynamicJobSpec::mutable_outputs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.outputs) - return outputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* -DynamicJobSpec::mutable_outputs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.outputs) - return &outputs_; -} -inline const ::flyteidl::core::Binding& DynamicJobSpec::outputs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.outputs) - return outputs_.Get(index); -} -inline ::flyteidl::core::Binding* DynamicJobSpec::add_outputs() { - // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.outputs) - return outputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& -DynamicJobSpec::outputs() const { - // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.outputs) - return outputs_; -} - -// repeated .flyteidl.core.TaskTemplate tasks = 4; -inline int DynamicJobSpec::tasks_size() const { - return tasks_.size(); -} -inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::mutable_tasks(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.tasks) - return tasks_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* -DynamicJobSpec::mutable_tasks() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.tasks) - return &tasks_; -} -inline const ::flyteidl::core::TaskTemplate& DynamicJobSpec::tasks(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.tasks) - return tasks_.Get(index); -} -inline ::flyteidl::core::TaskTemplate* DynamicJobSpec::add_tasks() { - // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.tasks) - return tasks_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& -DynamicJobSpec::tasks() const { - // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.tasks) - return tasks_; -} - -// repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; -inline int DynamicJobSpec::subworkflows_size() const { - return subworkflows_.size(); -} -inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::mutable_subworkflows(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.DynamicJobSpec.subworkflows) - return subworkflows_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >* -DynamicJobSpec::mutable_subworkflows() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.DynamicJobSpec.subworkflows) - return &subworkflows_; -} -inline const ::flyteidl::core::WorkflowTemplate& DynamicJobSpec::subworkflows(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.DynamicJobSpec.subworkflows) - return subworkflows_.Get(index); -} -inline ::flyteidl::core::WorkflowTemplate* DynamicJobSpec::add_subworkflows() { - // @@protoc_insertion_point(field_add:flyteidl.core.DynamicJobSpec.subworkflows) - return subworkflows_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::WorkflowTemplate >& -DynamicJobSpec::subworkflows() const { - // @@protoc_insertion_point(field_list:flyteidl.core.DynamicJobSpec.subworkflows) - return subworkflows_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fdynamic_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc deleted file mode 100644 index 9ff2dd82ba..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/errors.proto - -#include "flyteidl/core/errors.pb.h" -#include "flyteidl/core/errors.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h deleted file mode 100644 index 0556d5e341..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/errors.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/errors.proto -#ifndef GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED - -#include "flyteidl/core/errors.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2ferrors_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc deleted file mode 100644 index 2028b8f067..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.cc +++ /dev/null @@ -1,927 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/errors.proto - -#include "flyteidl/core/errors.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ferrors_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto; -namespace flyteidl { -namespace core { -class ContainerErrorDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ContainerError_default_instance_; -class ErrorDocumentDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ErrorDocument_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsContainerError_flyteidl_2fcore_2ferrors_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ContainerError_default_instance_; - new (ptr) ::flyteidl::core::ContainerError(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ContainerError::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerError_flyteidl_2fcore_2ferrors_2eproto}, {}}; - -static void InitDefaultsErrorDocument_flyteidl_2fcore_2ferrors_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ErrorDocument_default_instance_; - new (ptr) ::flyteidl::core::ErrorDocument(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ErrorDocument::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsErrorDocument_flyteidl_2fcore_2ferrors_2eproto}, { - &scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2ferrors_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[2]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ferrors_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ferrors_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ferrors_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, code_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, message_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, kind_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerError, origin_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ErrorDocument, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ErrorDocument, error_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::ContainerError)}, - { 9, -1, sizeof(::flyteidl::core::ErrorDocument)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_ContainerError_default_instance_), - reinterpret_cast(&::flyteidl::core::_ErrorDocument_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2ferrors_2eproto, "flyteidl/core/errors.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2ferrors_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2ferrors_2eproto, 2, file_level_enum_descriptors_flyteidl_2fcore_2ferrors_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ferrors_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2ferrors_2eproto[] = - "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" - "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" - "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" - " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" - "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" - "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" - "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" - "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" - ".core.ContainerErrorB= 1900 -const ContainerError_Kind ContainerError::NON_RECOVERABLE; -const ContainerError_Kind ContainerError::RECOVERABLE; -const ContainerError_Kind ContainerError::Kind_MIN; -const ContainerError_Kind ContainerError::Kind_MAX; -const int ContainerError::Kind_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void ContainerError::InitAsDefaultInstance() { -} -class ContainerError::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ContainerError::kCodeFieldNumber; -const int ContainerError::kMessageFieldNumber; -const int ContainerError::kKindFieldNumber; -const int ContainerError::kOriginFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ContainerError::ContainerError() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ContainerError) -} -ContainerError::ContainerError(const ContainerError& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.code().size() > 0) { - code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); - } - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.message().size() > 0) { - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - ::memcpy(&kind_, &from.kind_, - static_cast(reinterpret_cast(&origin_) - - reinterpret_cast(&kind_)) + sizeof(origin_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerError) -} - -void ContainerError::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); - code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&kind_, 0, static_cast( - reinterpret_cast(&origin_) - - reinterpret_cast(&kind_)) + sizeof(origin_)); -} - -ContainerError::~ContainerError() { - // @@protoc_insertion_point(destructor:flyteidl.core.ContainerError) - SharedDtor(); -} - -void ContainerError::SharedDtor() { - code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ContainerError::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ContainerError& ContainerError::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContainerError_flyteidl_2fcore_2ferrors_2eproto.base); - return *internal_default_instance(); -} - - -void ContainerError::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerError) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&kind_, 0, static_cast( - reinterpret_cast(&origin_) - - reinterpret_cast(&kind_)) + sizeof(origin_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ContainerError::_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) { - // string code = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ContainerError.code"); - object = msg->mutable_code(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string message = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ContainerError.message"); - object = msg->mutable_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ContainerError.Kind kind = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_kind(static_cast<::flyteidl::core::ContainerError_Kind>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_origin(static_cast<::flyteidl::core::ExecutionError_ErrorKind>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ContainerError::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.core.ContainerError) - 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)) { - // string code = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_code())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ContainerError.code")); - } else { - goto handle_unusual; - } - break; - } - - // string message = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ContainerError.message")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ContainerError.Kind kind = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_kind(static_cast< ::flyteidl::core::ContainerError_Kind >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_origin(static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(value)); - } 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.core.ContainerError) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerError) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ContainerError::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerError) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string code = 1; - if (this->code().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ContainerError.code"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->code(), output); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ContainerError.message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->message(), output); - } - - // .flyteidl.core.ContainerError.Kind kind = 3; - if (this->kind() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->kind(), output); - } - - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - if (this->origin() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->origin(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerError) -} - -::google::protobuf::uint8* ContainerError::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerError) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string code = 1; - if (this->code().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ContainerError.code"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->code(), target); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ContainerError.message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->message(), target); - } - - // .flyteidl.core.ContainerError.Kind kind = 3; - if (this->kind() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->kind(), target); - } - - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - if (this->origin() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->origin(), 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.core.ContainerError) - return target; -} - -size_t ContainerError::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerError) - 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; - - // string code = 1; - if (this->code().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->code()); - } - - // string message = 2; - if (this->message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->message()); - } - - // .flyteidl.core.ContainerError.Kind kind = 3; - if (this->kind() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); - } - - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - if (this->origin() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->origin()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ContainerError::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerError) - GOOGLE_DCHECK_NE(&from, this); - const ContainerError* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerError) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerError) - MergeFrom(*source); - } -} - -void ContainerError::MergeFrom(const ContainerError& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerError) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.code().size() > 0) { - - code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); - } - if (from.message().size() > 0) { - - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.kind() != 0) { - set_kind(from.kind()); - } - if (from.origin() != 0) { - set_origin(from.origin()); - } -} - -void ContainerError::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerError) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContainerError::CopyFrom(const ContainerError& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerError) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContainerError::IsInitialized() const { - return true; -} - -void ContainerError::Swap(ContainerError* other) { - if (other == this) return; - InternalSwap(other); -} -void ContainerError::InternalSwap(ContainerError* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(kind_, other->kind_); - swap(origin_, other->origin_); -} - -::google::protobuf::Metadata ContainerError::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ErrorDocument::InitAsDefaultInstance() { - ::flyteidl::core::_ErrorDocument_default_instance_._instance.get_mutable()->error_ = const_cast< ::flyteidl::core::ContainerError*>( - ::flyteidl::core::ContainerError::internal_default_instance()); -} -class ErrorDocument::HasBitSetters { - public: - static const ::flyteidl::core::ContainerError& error(const ErrorDocument* msg); -}; - -const ::flyteidl::core::ContainerError& -ErrorDocument::HasBitSetters::error(const ErrorDocument* msg) { - return *msg->error_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ErrorDocument::kErrorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ErrorDocument::ErrorDocument() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ErrorDocument) -} -ErrorDocument::ErrorDocument(const ErrorDocument& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_error()) { - error_ = new ::flyteidl::core::ContainerError(*from.error_); - } else { - error_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ErrorDocument) -} - -void ErrorDocument::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); - error_ = nullptr; -} - -ErrorDocument::~ErrorDocument() { - // @@protoc_insertion_point(destructor:flyteidl.core.ErrorDocument) - SharedDtor(); -} - -void ErrorDocument::SharedDtor() { - if (this != internal_default_instance()) delete error_; -} - -void ErrorDocument::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ErrorDocument& ErrorDocument::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ErrorDocument_flyteidl_2fcore_2ferrors_2eproto.base); - return *internal_default_instance(); -} - - -void ErrorDocument::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ErrorDocument) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && error_ != nullptr) { - delete error_; - } - error_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ErrorDocument::_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.ContainerError error = 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::ContainerError::_InternalParse; - object = msg->mutable_error(); - 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 ErrorDocument::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.core.ErrorDocument) - 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.ContainerError error = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } 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.core.ErrorDocument) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ErrorDocument) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ErrorDocument::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ErrorDocument) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ContainerError error = 1; - if (this->has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::error(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ErrorDocument) -} - -::google::protobuf::uint8* ErrorDocument::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ErrorDocument) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ContainerError error = 1; - if (this->has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::error(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.core.ErrorDocument) - return target; -} - -size_t ErrorDocument::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ErrorDocument) - 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.ContainerError error = 1; - if (this->has_error()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *error_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ErrorDocument::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ErrorDocument) - GOOGLE_DCHECK_NE(&from, this); - const ErrorDocument* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ErrorDocument) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ErrorDocument) - MergeFrom(*source); - } -} - -void ErrorDocument::MergeFrom(const ErrorDocument& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ErrorDocument) - 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_error()) { - mutable_error()->::flyteidl::core::ContainerError::MergeFrom(from.error()); - } -} - -void ErrorDocument::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ErrorDocument) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ErrorDocument::CopyFrom(const ErrorDocument& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ErrorDocument) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ErrorDocument::IsInitialized() const { - return true; -} - -void ErrorDocument::Swap(ErrorDocument* other) { - if (other == this) return; - InternalSwap(other); -} -void ErrorDocument::InternalSwap(ErrorDocument* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(error_, other->error_); -} - -::google::protobuf::Metadata ErrorDocument::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ferrors_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ferrors_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::ContainerError* Arena::CreateMaybeMessage< ::flyteidl::core::ContainerError >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ContainerError >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ErrorDocument* Arena::CreateMaybeMessage< ::flyteidl::core::ErrorDocument >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ErrorDocument >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h deleted file mode 100644 index 993d23487c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/errors.pb.h +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/errors.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/execution.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ferrors_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2ferrors_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2ferrors_2eproto(); -namespace flyteidl { -namespace core { -class ContainerError; -class ContainerErrorDefaultTypeInternal; -extern ContainerErrorDefaultTypeInternal _ContainerError_default_instance_; -class ErrorDocument; -class ErrorDocumentDefaultTypeInternal; -extern ErrorDocumentDefaultTypeInternal _ErrorDocument_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::ContainerError* Arena::CreateMaybeMessage<::flyteidl::core::ContainerError>(Arena*); -template<> ::flyteidl::core::ErrorDocument* Arena::CreateMaybeMessage<::flyteidl::core::ErrorDocument>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum ContainerError_Kind { - ContainerError_Kind_NON_RECOVERABLE = 0, - ContainerError_Kind_RECOVERABLE = 1, - ContainerError_Kind_ContainerError_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ContainerError_Kind_ContainerError_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ContainerError_Kind_IsValid(int value); -const ContainerError_Kind ContainerError_Kind_Kind_MIN = ContainerError_Kind_NON_RECOVERABLE; -const ContainerError_Kind ContainerError_Kind_Kind_MAX = ContainerError_Kind_RECOVERABLE; -const int ContainerError_Kind_Kind_ARRAYSIZE = ContainerError_Kind_Kind_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ContainerError_Kind_descriptor(); -inline const ::std::string& ContainerError_Kind_Name(ContainerError_Kind value) { - return ::google::protobuf::internal::NameOfEnum( - ContainerError_Kind_descriptor(), value); -} -inline bool ContainerError_Kind_Parse( - const ::std::string& name, ContainerError_Kind* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ContainerError_Kind_descriptor(), name, value); -} -// =================================================================== - -class ContainerError final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerError) */ { - public: - ContainerError(); - virtual ~ContainerError(); - - ContainerError(const ContainerError& from); - - inline ContainerError& operator=(const ContainerError& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ContainerError(ContainerError&& from) noexcept - : ContainerError() { - *this = ::std::move(from); - } - - inline ContainerError& operator=(ContainerError&& 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 ContainerError& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ContainerError* internal_default_instance() { - return reinterpret_cast( - &_ContainerError_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ContainerError* other); - friend void swap(ContainerError& a, ContainerError& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ContainerError* New() const final { - return CreateMaybeMessage(nullptr); - } - - ContainerError* 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 ContainerError& from); - void MergeFrom(const ContainerError& 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(ContainerError* 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 ---------------------------------------------------- - - typedef ContainerError_Kind Kind; - static const Kind NON_RECOVERABLE = - ContainerError_Kind_NON_RECOVERABLE; - static const Kind RECOVERABLE = - ContainerError_Kind_RECOVERABLE; - static inline bool Kind_IsValid(int value) { - return ContainerError_Kind_IsValid(value); - } - static const Kind Kind_MIN = - ContainerError_Kind_Kind_MIN; - static const Kind Kind_MAX = - ContainerError_Kind_Kind_MAX; - static const int Kind_ARRAYSIZE = - ContainerError_Kind_Kind_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Kind_descriptor() { - return ContainerError_Kind_descriptor(); - } - static inline const ::std::string& Kind_Name(Kind value) { - return ContainerError_Kind_Name(value); - } - static inline bool Kind_Parse(const ::std::string& name, - Kind* value) { - return ContainerError_Kind_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string code = 1; - void clear_code(); - static const int kCodeFieldNumber = 1; - const ::std::string& code() const; - void set_code(const ::std::string& value); - #if LANG_CXX11 - void set_code(::std::string&& value); - #endif - void set_code(const char* value); - void set_code(const char* value, size_t size); - ::std::string* mutable_code(); - ::std::string* release_code(); - void set_allocated_code(::std::string* code); - - // string message = 2; - void clear_message(); - static const int kMessageFieldNumber = 2; - const ::std::string& message() const; - void set_message(const ::std::string& value); - #if LANG_CXX11 - void set_message(::std::string&& value); - #endif - void set_message(const char* value); - void set_message(const char* value, size_t size); - ::std::string* mutable_message(); - ::std::string* release_message(); - void set_allocated_message(::std::string* message); - - // .flyteidl.core.ContainerError.Kind kind = 3; - void clear_kind(); - static const int kKindFieldNumber = 3; - ::flyteidl::core::ContainerError_Kind kind() const; - void set_kind(::flyteidl::core::ContainerError_Kind value); - - // .flyteidl.core.ExecutionError.ErrorKind origin = 4; - void clear_origin(); - static const int kOriginFieldNumber = 4; - ::flyteidl::core::ExecutionError_ErrorKind origin() const; - void set_origin(::flyteidl::core::ExecutionError_ErrorKind value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr code_; - ::google::protobuf::internal::ArenaStringPtr message_; - int kind_; - int origin_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ferrors_2eproto; -}; -// ------------------------------------------------------------------- - -class ErrorDocument final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ErrorDocument) */ { - public: - ErrorDocument(); - virtual ~ErrorDocument(); - - ErrorDocument(const ErrorDocument& from); - - inline ErrorDocument& operator=(const ErrorDocument& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ErrorDocument(ErrorDocument&& from) noexcept - : ErrorDocument() { - *this = ::std::move(from); - } - - inline ErrorDocument& operator=(ErrorDocument&& 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 ErrorDocument& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ErrorDocument* internal_default_instance() { - return reinterpret_cast( - &_ErrorDocument_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ErrorDocument* other); - friend void swap(ErrorDocument& a, ErrorDocument& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ErrorDocument* New() const final { - return CreateMaybeMessage(nullptr); - } - - ErrorDocument* 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 ErrorDocument& from); - void MergeFrom(const ErrorDocument& 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(ErrorDocument* 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.ContainerError error = 1; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 1; - const ::flyteidl::core::ContainerError& error() const; - ::flyteidl::core::ContainerError* release_error(); - ::flyteidl::core::ContainerError* mutable_error(); - void set_allocated_error(::flyteidl::core::ContainerError* error); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::ContainerError* error_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ferrors_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ContainerError - -// string code = 1; -inline void ContainerError::clear_code() { - code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ContainerError::code() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.code) - return code_.GetNoArena(); -} -inline void ContainerError::set_code(const ::std::string& value) { - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.code) -} -#if LANG_CXX11 -inline void ContainerError::set_code(::std::string&& value) { - - code_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.code) -} -#endif -inline void ContainerError::set_code(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.code) -} -inline void ContainerError::set_code(const char* value, size_t size) { - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ContainerError.code) -} -inline ::std::string* ContainerError::mutable_code() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.code) - return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ContainerError::release_code() { - // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.code) - - return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ContainerError::set_allocated_code(::std::string* code) { - if (code != nullptr) { - - } else { - - } - code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.code) -} - -// string message = 2; -inline void ContainerError::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ContainerError::message() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.message) - return message_.GetNoArena(); -} -inline void ContainerError::set_message(const ::std::string& value) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.message) -} -#if LANG_CXX11 -inline void ContainerError::set_message(::std::string&& value) { - - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ContainerError.message) -} -#endif -inline void ContainerError::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ContainerError.message) -} -inline void ContainerError::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ContainerError.message) -} -inline ::std::string* ContainerError::mutable_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ContainerError.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ContainerError::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.core.ContainerError.message) - - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ContainerError::set_allocated_message(::std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ContainerError.message) -} - -// .flyteidl.core.ContainerError.Kind kind = 3; -inline void ContainerError::clear_kind() { - kind_ = 0; -} -inline ::flyteidl::core::ContainerError_Kind ContainerError::kind() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.kind) - return static_cast< ::flyteidl::core::ContainerError_Kind >(kind_); -} -inline void ContainerError::set_kind(::flyteidl::core::ContainerError_Kind value) { - - kind_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.kind) -} - -// .flyteidl.core.ExecutionError.ErrorKind origin = 4; -inline void ContainerError::clear_origin() { - origin_ = 0; -} -inline ::flyteidl::core::ExecutionError_ErrorKind ContainerError::origin() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ContainerError.origin) - return static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(origin_); -} -inline void ContainerError::set_origin(::flyteidl::core::ExecutionError_ErrorKind value) { - - origin_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ContainerError.origin) -} - -// ------------------------------------------------------------------- - -// ErrorDocument - -// .flyteidl.core.ContainerError error = 1; -inline bool ErrorDocument::has_error() const { - return this != internal_default_instance() && error_ != nullptr; -} -inline void ErrorDocument::clear_error() { - if (GetArenaNoVirtual() == nullptr && error_ != nullptr) { - delete error_; - } - error_ = nullptr; -} -inline const ::flyteidl::core::ContainerError& ErrorDocument::error() const { - const ::flyteidl::core::ContainerError* p = error_; - // @@protoc_insertion_point(field_get:flyteidl.core.ErrorDocument.error) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ContainerError_default_instance_); -} -inline ::flyteidl::core::ContainerError* ErrorDocument::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.core.ErrorDocument.error) - - ::flyteidl::core::ContainerError* temp = error_; - error_ = nullptr; - return temp; -} -inline ::flyteidl::core::ContainerError* ErrorDocument::mutable_error() { - - if (error_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ContainerError>(GetArenaNoVirtual()); - error_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ErrorDocument.error) - return error_; -} -inline void ErrorDocument::set_allocated_error(::flyteidl::core::ContainerError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete error_; - } - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - - } else { - - } - error_ = error; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ErrorDocument.error) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::ContainerError_Kind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ContainerError_Kind>() { - return ::flyteidl::core::ContainerError_Kind_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ferrors_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc deleted file mode 100644 index e3dc0e7ad2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/execution.proto - -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/execution.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h deleted file mode 100644 index ad903a7355..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/execution.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/execution.proto -#ifndef GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED - -#include "flyteidl/core/execution.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fexecution_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc deleted file mode 100644 index 2573dbaf41..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.cc +++ /dev/null @@ -1,2798 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/execution.proto - -#include "flyteidl/core/execution.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -namespace flyteidl { -namespace core { -class WorkflowExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecution_default_instance_; -class NodeExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecution_default_instance_; -class TaskExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecution_default_instance_; -class ExecutionErrorDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExecutionError_default_instance_; -class TaskLogDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskLog_default_instance_; -class QualityOfServiceSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _QualityOfServiceSpec_default_instance_; -class QualityOfServiceDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - int tier_; - const ::flyteidl::core::QualityOfServiceSpec* spec_; -} _QualityOfService_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsWorkflowExecution_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowExecution_default_instance_; - new (ptr) ::flyteidl::core::WorkflowExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; - -static void InitDefaultsNodeExecution_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_NodeExecution_default_instance_; - new (ptr) ::flyteidl::core::NodeExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::NodeExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNodeExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; - -static void InitDefaultsTaskExecution_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskExecution_default_instance_; - new (ptr) ::flyteidl::core::TaskExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskExecution_flyteidl_2fcore_2fexecution_2eproto}, {}}; - -static void InitDefaultsExecutionError_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ExecutionError_default_instance_; - new (ptr) ::flyteidl::core::ExecutionError(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ExecutionError::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsExecutionError_flyteidl_2fcore_2fexecution_2eproto}, {}}; - -static void InitDefaultsTaskLog_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskLog_default_instance_; - new (ptr) ::flyteidl::core::TaskLog(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskLog::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskLog_flyteidl_2fcore_2fexecution_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsQualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_QualityOfServiceSpec_default_instance_; - new (ptr) ::flyteidl::core::QualityOfServiceSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::QualityOfServiceSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsQualityOfService_flyteidl_2fcore_2fexecution_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_QualityOfService_default_instance_; - new (ptr) ::flyteidl::core::QualityOfService(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::QualityOfService::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsQualityOfService_flyteidl_2fcore_2fexecution_2eproto}, { - &scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fexecution_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[7]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[6]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fexecution_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fexecution_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, code_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, message_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, error_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExecutionError, kind_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, message_format_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskLog, ttl_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfServiceSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfServiceSpec, queueing_budget_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::QualityOfServiceDefaultTypeInternal, tier_), - offsetof(::flyteidl::core::QualityOfServiceDefaultTypeInternal, spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::QualityOfService, designation_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::WorkflowExecution)}, - { 5, -1, sizeof(::flyteidl::core::NodeExecution)}, - { 10, -1, sizeof(::flyteidl::core::TaskExecution)}, - { 15, -1, sizeof(::flyteidl::core::ExecutionError)}, - { 24, -1, sizeof(::flyteidl::core::TaskLog)}, - { 33, -1, sizeof(::flyteidl::core::QualityOfServiceSpec)}, - { 39, -1, sizeof(::flyteidl::core::QualityOfService)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_WorkflowExecution_default_instance_), - reinterpret_cast(&::flyteidl::core::_NodeExecution_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskExecution_default_instance_), - reinterpret_cast(&::flyteidl::core::_ExecutionError_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskLog_default_instance_), - reinterpret_cast(&::flyteidl::core::_QualityOfServiceSpec_default_instance_), - reinterpret_cast(&::flyteidl::core::_QualityOfService_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, "flyteidl/core/execution.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fexecution_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fexecution_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fexecution_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fexecution_2eproto[] = - "\n\035flyteidl/core/execution.proto\022\rflyteid" - "l.core\032\036google/protobuf/duration.proto\"\247" - "\001\n\021WorkflowExecution\"\221\001\n\005Phase\022\r\n\tUNDEFI" - "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" - "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" - "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\022\014\n\010AB" - "ORTING\020\t\"\266\001\n\rNodeExecution\"\244\001\n\005Phase\022\r\n\t" - "UNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\t" - "SUCCEEDED\020\003\022\013\n\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007" - "ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\r\n\tTIMED_OUT\020\010\022\023\n" - "\017DYNAMIC_RUNNING\020\t\022\r\n\tRECOVERED\020\n\"\226\001\n\rTa" - "skExecution\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006" - "QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007" - "ABORTED\020\004\022\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022" - "\031\n\025WAITING_FOR_RESOURCES\020\007\"\251\001\n\016Execution" - "Error\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\t" - "error_uri\030\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl" - ".core.ExecutionError.ErrorKind\".\n\tErrorK" - "ind\022\013\n\007UNKNOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273" - "\001\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n" - "\016message_format\030\003 \001(\0162$.flyteidl.core.Ta" - "skLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.googl" - "e.protobuf.Duration\"/\n\rMessageFormat\022\013\n\007" - "UNKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityO" - "fServiceSpec\0222\n\017queueing_budget\030\001 \001(\0132\031." - "google.protobuf.Duration\"\302\001\n\020QualityOfSe" - "rvice\0224\n\004tier\030\001 \001(\0162$.flyteidl.core.Qual" - "ityOfService.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyt" - "eidl.core.QualityOfServiceSpecH\000\"4\n\004Tier" - "\022\r\n\tUNDEFINED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n" - "\003LOW\020\003B\r\n\013designationB= 1900 -const WorkflowExecution_Phase WorkflowExecution::UNDEFINED; -const WorkflowExecution_Phase WorkflowExecution::QUEUED; -const WorkflowExecution_Phase WorkflowExecution::RUNNING; -const WorkflowExecution_Phase WorkflowExecution::SUCCEEDING; -const WorkflowExecution_Phase WorkflowExecution::SUCCEEDED; -const WorkflowExecution_Phase WorkflowExecution::FAILING; -const WorkflowExecution_Phase WorkflowExecution::FAILED; -const WorkflowExecution_Phase WorkflowExecution::ABORTED; -const WorkflowExecution_Phase WorkflowExecution::TIMED_OUT; -const WorkflowExecution_Phase WorkflowExecution::ABORTING; -const WorkflowExecution_Phase WorkflowExecution::Phase_MIN; -const WorkflowExecution_Phase WorkflowExecution::Phase_MAX; -const int WorkflowExecution::Phase_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[1]; -} -bool NodeExecution_Phase_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const NodeExecution_Phase NodeExecution::UNDEFINED; -const NodeExecution_Phase NodeExecution::QUEUED; -const NodeExecution_Phase NodeExecution::RUNNING; -const NodeExecution_Phase NodeExecution::SUCCEEDED; -const NodeExecution_Phase NodeExecution::FAILING; -const NodeExecution_Phase NodeExecution::FAILED; -const NodeExecution_Phase NodeExecution::ABORTED; -const NodeExecution_Phase NodeExecution::SKIPPED; -const NodeExecution_Phase NodeExecution::TIMED_OUT; -const NodeExecution_Phase NodeExecution::DYNAMIC_RUNNING; -const NodeExecution_Phase NodeExecution::RECOVERED; -const NodeExecution_Phase NodeExecution::Phase_MIN; -const NodeExecution_Phase NodeExecution::Phase_MAX; -const int NodeExecution::Phase_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[2]; -} -bool TaskExecution_Phase_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const TaskExecution_Phase TaskExecution::UNDEFINED; -const TaskExecution_Phase TaskExecution::QUEUED; -const TaskExecution_Phase TaskExecution::RUNNING; -const TaskExecution_Phase TaskExecution::SUCCEEDED; -const TaskExecution_Phase TaskExecution::ABORTED; -const TaskExecution_Phase TaskExecution::FAILED; -const TaskExecution_Phase TaskExecution::INITIALIZING; -const TaskExecution_Phase TaskExecution::WAITING_FOR_RESOURCES; -const TaskExecution_Phase TaskExecution::Phase_MIN; -const TaskExecution_Phase TaskExecution::Phase_MAX; -const int TaskExecution::Phase_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* ExecutionError_ErrorKind_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[3]; -} -bool ExecutionError_ErrorKind_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const ExecutionError_ErrorKind ExecutionError::UNKNOWN; -const ExecutionError_ErrorKind ExecutionError::USER; -const ExecutionError_ErrorKind ExecutionError::SYSTEM; -const ExecutionError_ErrorKind ExecutionError::ErrorKind_MIN; -const ExecutionError_ErrorKind ExecutionError::ErrorKind_MAX; -const int ExecutionError::ErrorKind_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[4]; -} -bool TaskLog_MessageFormat_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const TaskLog_MessageFormat TaskLog::UNKNOWN; -const TaskLog_MessageFormat TaskLog::CSV; -const TaskLog_MessageFormat TaskLog::JSON; -const TaskLog_MessageFormat TaskLog::MessageFormat_MIN; -const TaskLog_MessageFormat TaskLog::MessageFormat_MAX; -const int TaskLog::MessageFormat_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* QualityOfService_Tier_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fexecution_2eproto[5]; -} -bool QualityOfService_Tier_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const QualityOfService_Tier QualityOfService::UNDEFINED; -const QualityOfService_Tier QualityOfService::HIGH; -const QualityOfService_Tier QualityOfService::MEDIUM; -const QualityOfService_Tier QualityOfService::LOW; -const QualityOfService_Tier QualityOfService::Tier_MIN; -const QualityOfService_Tier QualityOfService::Tier_MAX; -const int QualityOfService::Tier_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void WorkflowExecution::InitAsDefaultInstance() { -} -class WorkflowExecution::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecution::WorkflowExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecution) -} -WorkflowExecution::WorkflowExecution(const WorkflowExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecution) -} - -void WorkflowExecution::SharedCtor() { -} - -WorkflowExecution::~WorkflowExecution() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecution) - SharedDtor(); -} - -void WorkflowExecution::SharedDtor() { -} - -void WorkflowExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecution& WorkflowExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecution_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecution::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowExecution::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.core.WorkflowExecution) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.core.WorkflowExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecution) -} - -::google::protobuf::uint8* WorkflowExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.core.WorkflowExecution) - return target; -} - -size_t WorkflowExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecution) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecution) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecution) - MergeFrom(*source); - } -} - -void WorkflowExecution::MergeFrom(const WorkflowExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void WorkflowExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecution::CopyFrom(const WorkflowExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecution::IsInitialized() const { - return true; -} - -void WorkflowExecution::Swap(WorkflowExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecution::InternalSwap(WorkflowExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata WorkflowExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecution::InitAsDefaultInstance() { -} -class NodeExecution::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecution::NodeExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecution) -} -NodeExecution::NodeExecution(const NodeExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecution) -} - -void NodeExecution::SharedCtor() { -} - -NodeExecution::~NodeExecution() { - // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecution) - SharedDtor(); -} - -void NodeExecution::SharedDtor() { -} - -void NodeExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecution& NodeExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecution_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecution::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecution::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.core.NodeExecution) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.core.NodeExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeExecution) -} - -::google::protobuf::uint8* NodeExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.core.NodeExecution) - return target; -} - -size_t NodeExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecution) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecution) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecution) - MergeFrom(*source); - } -} - -void NodeExecution::MergeFrom(const NodeExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void NodeExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecution::CopyFrom(const NodeExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecution::IsInitialized() const { - return true; -} - -void NodeExecution::Swap(NodeExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecution::InternalSwap(NodeExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata NodeExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecution::InitAsDefaultInstance() { -} -class TaskExecution::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecution::TaskExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecution) -} -TaskExecution::TaskExecution(const TaskExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecution) -} - -void TaskExecution::SharedCtor() { -} - -TaskExecution::~TaskExecution() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecution) - SharedDtor(); -} - -void TaskExecution::SharedDtor() { -} - -void TaskExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecution& TaskExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecution_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecution::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecution::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.core.TaskExecution) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.core.TaskExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecution) -} - -::google::protobuf::uint8* TaskExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.core.TaskExecution) - return target; -} - -size_t TaskExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecution) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecution) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecution) - MergeFrom(*source); - } -} - -void TaskExecution::MergeFrom(const TaskExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void TaskExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecution::CopyFrom(const TaskExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecution::IsInitialized() const { - return true; -} - -void TaskExecution::Swap(TaskExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecution::InternalSwap(TaskExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata TaskExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExecutionError::InitAsDefaultInstance() { -} -class ExecutionError::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExecutionError::kCodeFieldNumber; -const int ExecutionError::kMessageFieldNumber; -const int ExecutionError::kErrorUriFieldNumber; -const int ExecutionError::kKindFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExecutionError::ExecutionError() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ExecutionError) -} -ExecutionError::ExecutionError(const ExecutionError& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.code().size() > 0) { - code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); - } - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.message().size() > 0) { - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.error_uri().size() > 0) { - error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); - } - kind_ = from.kind_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ExecutionError) -} - -void ExecutionError::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); - code_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - error_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kind_ = 0; -} - -ExecutionError::~ExecutionError() { - // @@protoc_insertion_point(destructor:flyteidl.core.ExecutionError) - SharedDtor(); -} - -void ExecutionError::SharedDtor() { - code_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - error_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ExecutionError::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExecutionError& ExecutionError::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void ExecutionError::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ExecutionError) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - kind_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExecutionError::_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) { - // string code = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.code"); - object = msg->mutable_code(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string message = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.message"); - object = msg->mutable_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string error_uri = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ExecutionError.error_uri"); - object = msg->mutable_error_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_kind(static_cast<::flyteidl::core::ExecutionError_ErrorKind>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExecutionError::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.core.ExecutionError) - 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)) { - // string code = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_code())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ExecutionError.code")); - } else { - goto handle_unusual; - } - break; - } - - // string message = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ExecutionError.message")); - } else { - goto handle_unusual; - } - break; - } - - // string error_uri = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_error_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->error_uri().data(), static_cast(this->error_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ExecutionError.error_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_kind(static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(value)); - } 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.core.ExecutionError) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ExecutionError) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExecutionError::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ExecutionError) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string code = 1; - if (this->code().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.code"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->code(), output); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->message(), output); - } - - // string error_uri = 3; - if (this->error_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->error_uri().data(), static_cast(this->error_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.error_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->error_uri(), output); - } - - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - if (this->kind() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->kind(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ExecutionError) -} - -::google::protobuf::uint8* ExecutionError::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ExecutionError) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string code = 1; - if (this->code().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code().data(), static_cast(this->code().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.code"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->code(), target); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->message(), target); - } - - // string error_uri = 3; - if (this->error_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->error_uri().data(), static_cast(this->error_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ExecutionError.error_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->error_uri(), target); - } - - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - if (this->kind() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->kind(), 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.core.ExecutionError) - return target; -} - -size_t ExecutionError::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ExecutionError) - 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; - - // string code = 1; - if (this->code().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->code()); - } - - // string message = 2; - if (this->message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->message()); - } - - // string error_uri = 3; - if (this->error_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->error_uri()); - } - - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - if (this->kind() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->kind()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExecutionError::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ExecutionError) - GOOGLE_DCHECK_NE(&from, this); - const ExecutionError* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ExecutionError) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ExecutionError) - MergeFrom(*source); - } -} - -void ExecutionError::MergeFrom(const ExecutionError& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ExecutionError) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.code().size() > 0) { - - code_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.code_); - } - if (from.message().size() > 0) { - - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - if (from.error_uri().size() > 0) { - - error_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.error_uri_); - } - if (from.kind() != 0) { - set_kind(from.kind()); - } -} - -void ExecutionError::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ExecutionError) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExecutionError::CopyFrom(const ExecutionError& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ExecutionError) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExecutionError::IsInitialized() const { - return true; -} - -void ExecutionError::Swap(ExecutionError* other) { - if (other == this) return; - InternalSwap(other); -} -void ExecutionError::InternalSwap(ExecutionError* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - code_.Swap(&other->code_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - error_uri_.Swap(&other->error_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(kind_, other->kind_); -} - -::google::protobuf::Metadata ExecutionError::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskLog::InitAsDefaultInstance() { - ::flyteidl::core::_TaskLog_default_instance_._instance.get_mutable()->ttl_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class TaskLog::HasBitSetters { - public: - static const ::google::protobuf::Duration& ttl(const TaskLog* msg); -}; - -const ::google::protobuf::Duration& -TaskLog::HasBitSetters::ttl(const TaskLog* msg) { - return *msg->ttl_; -} -void TaskLog::clear_ttl() { - if (GetArenaNoVirtual() == nullptr && ttl_ != nullptr) { - delete ttl_; - } - ttl_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskLog::kUriFieldNumber; -const int TaskLog::kNameFieldNumber; -const int TaskLog::kMessageFormatFieldNumber; -const int TaskLog::kTtlFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskLog::TaskLog() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskLog) -} -TaskLog::TaskLog(const TaskLog& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.uri().size() > 0) { - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_ttl()) { - ttl_ = new ::google::protobuf::Duration(*from.ttl_); - } else { - ttl_ = nullptr; - } - message_format_ = from.message_format_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskLog) -} - -void TaskLog::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&ttl_, 0, static_cast( - reinterpret_cast(&message_format_) - - reinterpret_cast(&ttl_)) + sizeof(message_format_)); -} - -TaskLog::~TaskLog() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskLog) - SharedDtor(); -} - -void TaskLog::SharedDtor() { - uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete ttl_; -} - -void TaskLog::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskLog& TaskLog::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void TaskLog::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskLog) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && ttl_ != nullptr) { - delete ttl_; - } - ttl_ = nullptr; - message_format_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskLog::_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) { - // string uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskLog.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskLog.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_message_format(static_cast<::flyteidl::core::TaskLog_MessageFormat>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Duration ttl = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_ttl(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskLog::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.core.TaskLog) - 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)) { - // string uri = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskLog.uri")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskLog.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_message_format(static_cast< ::flyteidl::core::TaskLog_MessageFormat >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration ttl = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ttl())); - } 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.core.TaskLog) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskLog) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskLog::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskLog) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskLog.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->uri(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskLog.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - if (this->message_format() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->message_format(), output); - } - - // .google.protobuf.Duration ttl = 4; - if (this->has_ttl()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::ttl(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskLog) -} - -::google::protobuf::uint8* TaskLog::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskLog) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskLog.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->uri(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskLog.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - if (this->message_format() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->message_format(), target); - } - - // .google.protobuf.Duration ttl = 4; - if (this->has_ttl()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::ttl(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.core.TaskLog) - return target; -} - -size_t TaskLog::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskLog) - 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; - - // string uri = 1; - if (this->uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .google.protobuf.Duration ttl = 4; - if (this->has_ttl()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ttl_); - } - - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - if (this->message_format() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->message_format()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskLog::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskLog) - GOOGLE_DCHECK_NE(&from, this); - const TaskLog* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskLog) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskLog) - MergeFrom(*source); - } -} - -void TaskLog::MergeFrom(const TaskLog& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskLog) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.uri().size() > 0) { - - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_ttl()) { - mutable_ttl()->::google::protobuf::Duration::MergeFrom(from.ttl()); - } - if (from.message_format() != 0) { - set_message_format(from.message_format()); - } -} - -void TaskLog::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskLog) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskLog::CopyFrom(const TaskLog& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskLog) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskLog::IsInitialized() const { - return true; -} - -void TaskLog::Swap(TaskLog* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskLog::InternalSwap(TaskLog* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(ttl_, other->ttl_); - swap(message_format_, other->message_format_); -} - -::google::protobuf::Metadata TaskLog::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void QualityOfServiceSpec::InitAsDefaultInstance() { - ::flyteidl::core::_QualityOfServiceSpec_default_instance_._instance.get_mutable()->queueing_budget_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class QualityOfServiceSpec::HasBitSetters { - public: - static const ::google::protobuf::Duration& queueing_budget(const QualityOfServiceSpec* msg); -}; - -const ::google::protobuf::Duration& -QualityOfServiceSpec::HasBitSetters::queueing_budget(const QualityOfServiceSpec* msg) { - return *msg->queueing_budget_; -} -void QualityOfServiceSpec::clear_queueing_budget() { - if (GetArenaNoVirtual() == nullptr && queueing_budget_ != nullptr) { - delete queueing_budget_; - } - queueing_budget_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QualityOfServiceSpec::kQueueingBudgetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -QualityOfServiceSpec::QualityOfServiceSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.QualityOfServiceSpec) -} -QualityOfServiceSpec::QualityOfServiceSpec(const QualityOfServiceSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_queueing_budget()) { - queueing_budget_ = new ::google::protobuf::Duration(*from.queueing_budget_); - } else { - queueing_budget_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.QualityOfServiceSpec) -} - -void QualityOfServiceSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); - queueing_budget_ = nullptr; -} - -QualityOfServiceSpec::~QualityOfServiceSpec() { - // @@protoc_insertion_point(destructor:flyteidl.core.QualityOfServiceSpec) - SharedDtor(); -} - -void QualityOfServiceSpec::SharedDtor() { - if (this != internal_default_instance()) delete queueing_budget_; -} - -void QualityOfServiceSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QualityOfServiceSpec& QualityOfServiceSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_QualityOfServiceSpec_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void QualityOfServiceSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.QualityOfServiceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && queueing_budget_ != nullptr) { - delete queueing_budget_; - } - queueing_budget_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QualityOfServiceSpec::_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) { - // .google.protobuf.Duration queueing_budget = 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 = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_queueing_budget(); - 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 QualityOfServiceSpec::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.core.QualityOfServiceSpec) - 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)) { - // .google.protobuf.Duration queueing_budget = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_queueing_budget())); - } 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.core.QualityOfServiceSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.QualityOfServiceSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void QualityOfServiceSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.QualityOfServiceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration queueing_budget = 1; - if (this->has_queueing_budget()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::queueing_budget(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.QualityOfServiceSpec) -} - -::google::protobuf::uint8* QualityOfServiceSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.QualityOfServiceSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration queueing_budget = 1; - if (this->has_queueing_budget()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::queueing_budget(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.core.QualityOfServiceSpec) - return target; -} - -size_t QualityOfServiceSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.QualityOfServiceSpec) - 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; - - // .google.protobuf.Duration queueing_budget = 1; - if (this->has_queueing_budget()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *queueing_budget_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QualityOfServiceSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.QualityOfServiceSpec) - GOOGLE_DCHECK_NE(&from, this); - const QualityOfServiceSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.QualityOfServiceSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.QualityOfServiceSpec) - MergeFrom(*source); - } -} - -void QualityOfServiceSpec::MergeFrom(const QualityOfServiceSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.QualityOfServiceSpec) - 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_queueing_budget()) { - mutable_queueing_budget()->::google::protobuf::Duration::MergeFrom(from.queueing_budget()); - } -} - -void QualityOfServiceSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.QualityOfServiceSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QualityOfServiceSpec::CopyFrom(const QualityOfServiceSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.QualityOfServiceSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QualityOfServiceSpec::IsInitialized() const { - return true; -} - -void QualityOfServiceSpec::Swap(QualityOfServiceSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void QualityOfServiceSpec::InternalSwap(QualityOfServiceSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(queueing_budget_, other->queueing_budget_); -} - -::google::protobuf::Metadata QualityOfServiceSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void QualityOfService::InitAsDefaultInstance() { - ::flyteidl::core::_QualityOfService_default_instance_.tier_ = 0; - ::flyteidl::core::_QualityOfService_default_instance_.spec_ = const_cast< ::flyteidl::core::QualityOfServiceSpec*>( - ::flyteidl::core::QualityOfServiceSpec::internal_default_instance()); -} -class QualityOfService::HasBitSetters { - public: - static const ::flyteidl::core::QualityOfServiceSpec& spec(const QualityOfService* msg); -}; - -const ::flyteidl::core::QualityOfServiceSpec& -QualityOfService::HasBitSetters::spec(const QualityOfService* msg) { - return *msg->designation_.spec_; -} -void QualityOfService::set_allocated_spec(::flyteidl::core::QualityOfServiceSpec* spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_designation(); - if (spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, spec, submessage_arena); - } - set_has_spec(); - designation_.spec_ = spec; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.QualityOfService.spec) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QualityOfService::kTierFieldNumber; -const int QualityOfService::kSpecFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -QualityOfService::QualityOfService() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.QualityOfService) -} -QualityOfService::QualityOfService(const QualityOfService& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_designation(); - switch (from.designation_case()) { - case kTier: { - set_tier(from.tier()); - break; - } - case kSpec: { - mutable_spec()->::flyteidl::core::QualityOfServiceSpec::MergeFrom(from.spec()); - break; - } - case DESIGNATION_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.QualityOfService) -} - -void QualityOfService::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); - clear_has_designation(); -} - -QualityOfService::~QualityOfService() { - // @@protoc_insertion_point(destructor:flyteidl.core.QualityOfService) - SharedDtor(); -} - -void QualityOfService::SharedDtor() { - if (has_designation()) { - clear_designation(); - } -} - -void QualityOfService::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QualityOfService& QualityOfService::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base); - return *internal_default_instance(); -} - - -void QualityOfService::clear_designation() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.QualityOfService) - switch (designation_case()) { - case kTier: { - // No need to clear - break; - } - case kSpec: { - delete designation_.spec_; - break; - } - case DESIGNATION_NOT_SET: { - break; - } - } - _oneof_case_[0] = DESIGNATION_NOT_SET; -} - - -void QualityOfService::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.QualityOfService) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_designation(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QualityOfService::_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.QualityOfService.Tier tier = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_tier(static_cast<::flyteidl::core::QualityOfService_Tier>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.QualityOfServiceSpec spec = 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::core::QualityOfServiceSpec::_InternalParse; - object = msg->mutable_spec(); - 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 QualityOfService::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.core.QualityOfService) - 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.QualityOfService.Tier tier = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_tier(static_cast< ::flyteidl::core::QualityOfService_Tier >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.QualityOfServiceSpec spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_spec())); - } 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.core.QualityOfService) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.QualityOfService) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void QualityOfService::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.QualityOfService) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.QualityOfService.Tier tier = 1; - if (has_tier()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->tier(), output); - } - - // .flyteidl.core.QualityOfServiceSpec spec = 2; - if (has_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::spec(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.QualityOfService) -} - -::google::protobuf::uint8* QualityOfService::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.QualityOfService) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.QualityOfService.Tier tier = 1; - if (has_tier()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->tier(), target); - } - - // .flyteidl.core.QualityOfServiceSpec spec = 2; - if (has_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::spec(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.core.QualityOfService) - return target; -} - -size_t QualityOfService::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.QualityOfService) - 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 (designation_case()) { - // .flyteidl.core.QualityOfService.Tier tier = 1; - case kTier: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->tier()); - break; - } - // .flyteidl.core.QualityOfServiceSpec spec = 2; - case kSpec: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *designation_.spec_); - break; - } - case DESIGNATION_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QualityOfService::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.QualityOfService) - GOOGLE_DCHECK_NE(&from, this); - const QualityOfService* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.QualityOfService) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.QualityOfService) - MergeFrom(*source); - } -} - -void QualityOfService::MergeFrom(const QualityOfService& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.QualityOfService) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.designation_case()) { - case kTier: { - set_tier(from.tier()); - break; - } - case kSpec: { - mutable_spec()->::flyteidl::core::QualityOfServiceSpec::MergeFrom(from.spec()); - break; - } - case DESIGNATION_NOT_SET: { - break; - } - } -} - -void QualityOfService::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.QualityOfService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QualityOfService::CopyFrom(const QualityOfService& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.QualityOfService) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QualityOfService::IsInitialized() const { - return true; -} - -void QualityOfService::Swap(QualityOfService* other) { - if (other == this) return; - InternalSwap(other); -} -void QualityOfService::InternalSwap(QualityOfService* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(designation_, other->designation_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata QualityOfService::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fexecution_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fexecution_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowExecution* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeExecution* Arena::CreateMaybeMessage< ::flyteidl::core::NodeExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::NodeExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskExecution* Arena::CreateMaybeMessage< ::flyteidl::core::TaskExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ExecutionError* Arena::CreateMaybeMessage< ::flyteidl::core::ExecutionError >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ExecutionError >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskLog* Arena::CreateMaybeMessage< ::flyteidl::core::TaskLog >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskLog >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::QualityOfServiceSpec* Arena::CreateMaybeMessage< ::flyteidl::core::QualityOfServiceSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::QualityOfServiceSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::QualityOfService* Arena::CreateMaybeMessage< ::flyteidl::core::QualityOfService >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::QualityOfService >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h deleted file mode 100644 index 6613332d60..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/execution.pb.h +++ /dev/null @@ -1,1897 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/execution.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fexecution_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fexecution_2eproto(); -namespace flyteidl { -namespace core { -class ExecutionError; -class ExecutionErrorDefaultTypeInternal; -extern ExecutionErrorDefaultTypeInternal _ExecutionError_default_instance_; -class NodeExecution; -class NodeExecutionDefaultTypeInternal; -extern NodeExecutionDefaultTypeInternal _NodeExecution_default_instance_; -class QualityOfService; -class QualityOfServiceDefaultTypeInternal; -extern QualityOfServiceDefaultTypeInternal _QualityOfService_default_instance_; -class QualityOfServiceSpec; -class QualityOfServiceSpecDefaultTypeInternal; -extern QualityOfServiceSpecDefaultTypeInternal _QualityOfServiceSpec_default_instance_; -class TaskExecution; -class TaskExecutionDefaultTypeInternal; -extern TaskExecutionDefaultTypeInternal _TaskExecution_default_instance_; -class TaskLog; -class TaskLogDefaultTypeInternal; -extern TaskLogDefaultTypeInternal _TaskLog_default_instance_; -class WorkflowExecution; -class WorkflowExecutionDefaultTypeInternal; -extern WorkflowExecutionDefaultTypeInternal _WorkflowExecution_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::ExecutionError* Arena::CreateMaybeMessage<::flyteidl::core::ExecutionError>(Arena*); -template<> ::flyteidl::core::NodeExecution* Arena::CreateMaybeMessage<::flyteidl::core::NodeExecution>(Arena*); -template<> ::flyteidl::core::QualityOfService* Arena::CreateMaybeMessage<::flyteidl::core::QualityOfService>(Arena*); -template<> ::flyteidl::core::QualityOfServiceSpec* Arena::CreateMaybeMessage<::flyteidl::core::QualityOfServiceSpec>(Arena*); -template<> ::flyteidl::core::TaskExecution* Arena::CreateMaybeMessage<::flyteidl::core::TaskExecution>(Arena*); -template<> ::flyteidl::core::TaskLog* Arena::CreateMaybeMessage<::flyteidl::core::TaskLog>(Arena*); -template<> ::flyteidl::core::WorkflowExecution* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowExecution>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum WorkflowExecution_Phase { - WorkflowExecution_Phase_UNDEFINED = 0, - WorkflowExecution_Phase_QUEUED = 1, - WorkflowExecution_Phase_RUNNING = 2, - WorkflowExecution_Phase_SUCCEEDING = 3, - WorkflowExecution_Phase_SUCCEEDED = 4, - WorkflowExecution_Phase_FAILING = 5, - WorkflowExecution_Phase_FAILED = 6, - WorkflowExecution_Phase_ABORTED = 7, - WorkflowExecution_Phase_TIMED_OUT = 8, - WorkflowExecution_Phase_ABORTING = 9, - WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - WorkflowExecution_Phase_WorkflowExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool WorkflowExecution_Phase_IsValid(int value); -const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MIN = WorkflowExecution_Phase_UNDEFINED; -const WorkflowExecution_Phase WorkflowExecution_Phase_Phase_MAX = WorkflowExecution_Phase_ABORTING; -const int WorkflowExecution_Phase_Phase_ARRAYSIZE = WorkflowExecution_Phase_Phase_MAX + 1; - -const ::google::protobuf::EnumDescriptor* WorkflowExecution_Phase_descriptor(); -inline const ::std::string& WorkflowExecution_Phase_Name(WorkflowExecution_Phase value) { - return ::google::protobuf::internal::NameOfEnum( - WorkflowExecution_Phase_descriptor(), value); -} -inline bool WorkflowExecution_Phase_Parse( - const ::std::string& name, WorkflowExecution_Phase* value) { - return ::google::protobuf::internal::ParseNamedEnum( - WorkflowExecution_Phase_descriptor(), name, value); -} -enum NodeExecution_Phase { - NodeExecution_Phase_UNDEFINED = 0, - NodeExecution_Phase_QUEUED = 1, - NodeExecution_Phase_RUNNING = 2, - NodeExecution_Phase_SUCCEEDED = 3, - NodeExecution_Phase_FAILING = 4, - NodeExecution_Phase_FAILED = 5, - NodeExecution_Phase_ABORTED = 6, - NodeExecution_Phase_SKIPPED = 7, - NodeExecution_Phase_TIMED_OUT = 8, - NodeExecution_Phase_DYNAMIC_RUNNING = 9, - NodeExecution_Phase_RECOVERED = 10, - NodeExecution_Phase_NodeExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - NodeExecution_Phase_NodeExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool NodeExecution_Phase_IsValid(int value); -const NodeExecution_Phase NodeExecution_Phase_Phase_MIN = NodeExecution_Phase_UNDEFINED; -const NodeExecution_Phase NodeExecution_Phase_Phase_MAX = NodeExecution_Phase_RECOVERED; -const int NodeExecution_Phase_Phase_ARRAYSIZE = NodeExecution_Phase_Phase_MAX + 1; - -const ::google::protobuf::EnumDescriptor* NodeExecution_Phase_descriptor(); -inline const ::std::string& NodeExecution_Phase_Name(NodeExecution_Phase value) { - return ::google::protobuf::internal::NameOfEnum( - NodeExecution_Phase_descriptor(), value); -} -inline bool NodeExecution_Phase_Parse( - const ::std::string& name, NodeExecution_Phase* value) { - return ::google::protobuf::internal::ParseNamedEnum( - NodeExecution_Phase_descriptor(), name, value); -} -enum TaskExecution_Phase { - TaskExecution_Phase_UNDEFINED = 0, - TaskExecution_Phase_QUEUED = 1, - TaskExecution_Phase_RUNNING = 2, - TaskExecution_Phase_SUCCEEDED = 3, - TaskExecution_Phase_ABORTED = 4, - TaskExecution_Phase_FAILED = 5, - TaskExecution_Phase_INITIALIZING = 6, - TaskExecution_Phase_WAITING_FOR_RESOURCES = 7, - TaskExecution_Phase_TaskExecution_Phase_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - TaskExecution_Phase_TaskExecution_Phase_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool TaskExecution_Phase_IsValid(int value); -const TaskExecution_Phase TaskExecution_Phase_Phase_MIN = TaskExecution_Phase_UNDEFINED; -const TaskExecution_Phase TaskExecution_Phase_Phase_MAX = TaskExecution_Phase_WAITING_FOR_RESOURCES; -const int TaskExecution_Phase_Phase_ARRAYSIZE = TaskExecution_Phase_Phase_MAX + 1; - -const ::google::protobuf::EnumDescriptor* TaskExecution_Phase_descriptor(); -inline const ::std::string& TaskExecution_Phase_Name(TaskExecution_Phase value) { - return ::google::protobuf::internal::NameOfEnum( - TaskExecution_Phase_descriptor(), value); -} -inline bool TaskExecution_Phase_Parse( - const ::std::string& name, TaskExecution_Phase* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TaskExecution_Phase_descriptor(), name, value); -} -enum ExecutionError_ErrorKind { - ExecutionError_ErrorKind_UNKNOWN = 0, - ExecutionError_ErrorKind_USER = 1, - ExecutionError_ErrorKind_SYSTEM = 2, - ExecutionError_ErrorKind_ExecutionError_ErrorKind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ExecutionError_ErrorKind_ExecutionError_ErrorKind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ExecutionError_ErrorKind_IsValid(int value); -const ExecutionError_ErrorKind ExecutionError_ErrorKind_ErrorKind_MIN = ExecutionError_ErrorKind_UNKNOWN; -const ExecutionError_ErrorKind ExecutionError_ErrorKind_ErrorKind_MAX = ExecutionError_ErrorKind_SYSTEM; -const int ExecutionError_ErrorKind_ErrorKind_ARRAYSIZE = ExecutionError_ErrorKind_ErrorKind_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ExecutionError_ErrorKind_descriptor(); -inline const ::std::string& ExecutionError_ErrorKind_Name(ExecutionError_ErrorKind value) { - return ::google::protobuf::internal::NameOfEnum( - ExecutionError_ErrorKind_descriptor(), value); -} -inline bool ExecutionError_ErrorKind_Parse( - const ::std::string& name, ExecutionError_ErrorKind* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ExecutionError_ErrorKind_descriptor(), name, value); -} -enum TaskLog_MessageFormat { - TaskLog_MessageFormat_UNKNOWN = 0, - TaskLog_MessageFormat_CSV = 1, - TaskLog_MessageFormat_JSON = 2, - TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - TaskLog_MessageFormat_TaskLog_MessageFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool TaskLog_MessageFormat_IsValid(int value); -const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MIN = TaskLog_MessageFormat_UNKNOWN; -const TaskLog_MessageFormat TaskLog_MessageFormat_MessageFormat_MAX = TaskLog_MessageFormat_JSON; -const int TaskLog_MessageFormat_MessageFormat_ARRAYSIZE = TaskLog_MessageFormat_MessageFormat_MAX + 1; - -const ::google::protobuf::EnumDescriptor* TaskLog_MessageFormat_descriptor(); -inline const ::std::string& TaskLog_MessageFormat_Name(TaskLog_MessageFormat value) { - return ::google::protobuf::internal::NameOfEnum( - TaskLog_MessageFormat_descriptor(), value); -} -inline bool TaskLog_MessageFormat_Parse( - const ::std::string& name, TaskLog_MessageFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TaskLog_MessageFormat_descriptor(), name, value); -} -enum QualityOfService_Tier { - QualityOfService_Tier_UNDEFINED = 0, - QualityOfService_Tier_HIGH = 1, - QualityOfService_Tier_MEDIUM = 2, - QualityOfService_Tier_LOW = 3, - QualityOfService_Tier_QualityOfService_Tier_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - QualityOfService_Tier_QualityOfService_Tier_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool QualityOfService_Tier_IsValid(int value); -const QualityOfService_Tier QualityOfService_Tier_Tier_MIN = QualityOfService_Tier_UNDEFINED; -const QualityOfService_Tier QualityOfService_Tier_Tier_MAX = QualityOfService_Tier_LOW; -const int QualityOfService_Tier_Tier_ARRAYSIZE = QualityOfService_Tier_Tier_MAX + 1; - -const ::google::protobuf::EnumDescriptor* QualityOfService_Tier_descriptor(); -inline const ::std::string& QualityOfService_Tier_Name(QualityOfService_Tier value) { - return ::google::protobuf::internal::NameOfEnum( - QualityOfService_Tier_descriptor(), value); -} -inline bool QualityOfService_Tier_Parse( - const ::std::string& name, QualityOfService_Tier* value) { - return ::google::protobuf::internal::ParseNamedEnum( - QualityOfService_Tier_descriptor(), name, value); -} -// =================================================================== - -class WorkflowExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecution) */ { - public: - WorkflowExecution(); - virtual ~WorkflowExecution(); - - WorkflowExecution(const WorkflowExecution& from); - - inline WorkflowExecution& operator=(const WorkflowExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecution(WorkflowExecution&& from) noexcept - : WorkflowExecution() { - *this = ::std::move(from); - } - - inline WorkflowExecution& operator=(WorkflowExecution&& 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 WorkflowExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecution* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(WorkflowExecution* other); - friend void swap(WorkflowExecution& a, WorkflowExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecution* 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 WorkflowExecution& from); - void MergeFrom(const WorkflowExecution& 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(WorkflowExecution* 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 ---------------------------------------------------- - - typedef WorkflowExecution_Phase Phase; - static const Phase UNDEFINED = - WorkflowExecution_Phase_UNDEFINED; - static const Phase QUEUED = - WorkflowExecution_Phase_QUEUED; - static const Phase RUNNING = - WorkflowExecution_Phase_RUNNING; - static const Phase SUCCEEDING = - WorkflowExecution_Phase_SUCCEEDING; - static const Phase SUCCEEDED = - WorkflowExecution_Phase_SUCCEEDED; - static const Phase FAILING = - WorkflowExecution_Phase_FAILING; - static const Phase FAILED = - WorkflowExecution_Phase_FAILED; - static const Phase ABORTED = - WorkflowExecution_Phase_ABORTED; - static const Phase TIMED_OUT = - WorkflowExecution_Phase_TIMED_OUT; - static const Phase ABORTING = - WorkflowExecution_Phase_ABORTING; - static inline bool Phase_IsValid(int value) { - return WorkflowExecution_Phase_IsValid(value); - } - static const Phase Phase_MIN = - WorkflowExecution_Phase_Phase_MIN; - static const Phase Phase_MAX = - WorkflowExecution_Phase_Phase_MAX; - static const int Phase_ARRAYSIZE = - WorkflowExecution_Phase_Phase_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Phase_descriptor() { - return WorkflowExecution_Phase_descriptor(); - } - static inline const ::std::string& Phase_Name(Phase value) { - return WorkflowExecution_Phase_Name(value); - } - static inline bool Phase_Parse(const ::std::string& name, - Phase* value) { - return WorkflowExecution_Phase_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecution) */ { - public: - NodeExecution(); - virtual ~NodeExecution(); - - NodeExecution(const NodeExecution& from); - - inline NodeExecution& operator=(const NodeExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecution(NodeExecution&& from) noexcept - : NodeExecution() { - *this = ::std::move(from); - } - - inline NodeExecution& operator=(NodeExecution&& 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 NodeExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecution* internal_default_instance() { - return reinterpret_cast( - &_NodeExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(NodeExecution* other); - friend void swap(NodeExecution& a, NodeExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecution* 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 NodeExecution& from); - void MergeFrom(const NodeExecution& 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(NodeExecution* 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 ---------------------------------------------------- - - typedef NodeExecution_Phase Phase; - static const Phase UNDEFINED = - NodeExecution_Phase_UNDEFINED; - static const Phase QUEUED = - NodeExecution_Phase_QUEUED; - static const Phase RUNNING = - NodeExecution_Phase_RUNNING; - static const Phase SUCCEEDED = - NodeExecution_Phase_SUCCEEDED; - static const Phase FAILING = - NodeExecution_Phase_FAILING; - static const Phase FAILED = - NodeExecution_Phase_FAILED; - static const Phase ABORTED = - NodeExecution_Phase_ABORTED; - static const Phase SKIPPED = - NodeExecution_Phase_SKIPPED; - static const Phase TIMED_OUT = - NodeExecution_Phase_TIMED_OUT; - static const Phase DYNAMIC_RUNNING = - NodeExecution_Phase_DYNAMIC_RUNNING; - static const Phase RECOVERED = - NodeExecution_Phase_RECOVERED; - static inline bool Phase_IsValid(int value) { - return NodeExecution_Phase_IsValid(value); - } - static const Phase Phase_MIN = - NodeExecution_Phase_Phase_MIN; - static const Phase Phase_MAX = - NodeExecution_Phase_Phase_MAX; - static const int Phase_ARRAYSIZE = - NodeExecution_Phase_Phase_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Phase_descriptor() { - return NodeExecution_Phase_descriptor(); - } - static inline const ::std::string& Phase_Name(Phase value) { - return NodeExecution_Phase_Name(value); - } - static inline bool Phase_Parse(const ::std::string& name, - Phase* value) { - return NodeExecution_Phase_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecution) */ { - public: - TaskExecution(); - virtual ~TaskExecution(); - - TaskExecution(const TaskExecution& from); - - inline TaskExecution& operator=(const TaskExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecution(TaskExecution&& from) noexcept - : TaskExecution() { - *this = ::std::move(from); - } - - inline TaskExecution& operator=(TaskExecution&& 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 TaskExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecution* internal_default_instance() { - return reinterpret_cast( - &_TaskExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(TaskExecution* other); - friend void swap(TaskExecution& a, TaskExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecution* 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 TaskExecution& from); - void MergeFrom(const TaskExecution& 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(TaskExecution* 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 ---------------------------------------------------- - - typedef TaskExecution_Phase Phase; - static const Phase UNDEFINED = - TaskExecution_Phase_UNDEFINED; - static const Phase QUEUED = - TaskExecution_Phase_QUEUED; - static const Phase RUNNING = - TaskExecution_Phase_RUNNING; - static const Phase SUCCEEDED = - TaskExecution_Phase_SUCCEEDED; - static const Phase ABORTED = - TaskExecution_Phase_ABORTED; - static const Phase FAILED = - TaskExecution_Phase_FAILED; - static const Phase INITIALIZING = - TaskExecution_Phase_INITIALIZING; - static const Phase WAITING_FOR_RESOURCES = - TaskExecution_Phase_WAITING_FOR_RESOURCES; - static inline bool Phase_IsValid(int value) { - return TaskExecution_Phase_IsValid(value); - } - static const Phase Phase_MIN = - TaskExecution_Phase_Phase_MIN; - static const Phase Phase_MAX = - TaskExecution_Phase_Phase_MAX; - static const int Phase_ARRAYSIZE = - TaskExecution_Phase_Phase_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Phase_descriptor() { - return TaskExecution_Phase_descriptor(); - } - static inline const ::std::string& Phase_Name(Phase value) { - return TaskExecution_Phase_Name(value); - } - static inline bool Phase_Parse(const ::std::string& name, - Phase* value) { - return TaskExecution_Phase_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class ExecutionError final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ExecutionError) */ { - public: - ExecutionError(); - virtual ~ExecutionError(); - - ExecutionError(const ExecutionError& from); - - inline ExecutionError& operator=(const ExecutionError& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionError(ExecutionError&& from) noexcept - : ExecutionError() { - *this = ::std::move(from); - } - - inline ExecutionError& operator=(ExecutionError&& 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 ExecutionError& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionError* internal_default_instance() { - return reinterpret_cast( - &_ExecutionError_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ExecutionError* other); - friend void swap(ExecutionError& a, ExecutionError& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionError* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExecutionError* 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 ExecutionError& from); - void MergeFrom(const ExecutionError& 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(ExecutionError* 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 ---------------------------------------------------- - - typedef ExecutionError_ErrorKind ErrorKind; - static const ErrorKind UNKNOWN = - ExecutionError_ErrorKind_UNKNOWN; - static const ErrorKind USER = - ExecutionError_ErrorKind_USER; - static const ErrorKind SYSTEM = - ExecutionError_ErrorKind_SYSTEM; - static inline bool ErrorKind_IsValid(int value) { - return ExecutionError_ErrorKind_IsValid(value); - } - static const ErrorKind ErrorKind_MIN = - ExecutionError_ErrorKind_ErrorKind_MIN; - static const ErrorKind ErrorKind_MAX = - ExecutionError_ErrorKind_ErrorKind_MAX; - static const int ErrorKind_ARRAYSIZE = - ExecutionError_ErrorKind_ErrorKind_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ErrorKind_descriptor() { - return ExecutionError_ErrorKind_descriptor(); - } - static inline const ::std::string& ErrorKind_Name(ErrorKind value) { - return ExecutionError_ErrorKind_Name(value); - } - static inline bool ErrorKind_Parse(const ::std::string& name, - ErrorKind* value) { - return ExecutionError_ErrorKind_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string code = 1; - void clear_code(); - static const int kCodeFieldNumber = 1; - const ::std::string& code() const; - void set_code(const ::std::string& value); - #if LANG_CXX11 - void set_code(::std::string&& value); - #endif - void set_code(const char* value); - void set_code(const char* value, size_t size); - ::std::string* mutable_code(); - ::std::string* release_code(); - void set_allocated_code(::std::string* code); - - // string message = 2; - void clear_message(); - static const int kMessageFieldNumber = 2; - const ::std::string& message() const; - void set_message(const ::std::string& value); - #if LANG_CXX11 - void set_message(::std::string&& value); - #endif - void set_message(const char* value); - void set_message(const char* value, size_t size); - ::std::string* mutable_message(); - ::std::string* release_message(); - void set_allocated_message(::std::string* message); - - // string error_uri = 3; - void clear_error_uri(); - static const int kErrorUriFieldNumber = 3; - const ::std::string& error_uri() const; - void set_error_uri(const ::std::string& value); - #if LANG_CXX11 - void set_error_uri(::std::string&& value); - #endif - void set_error_uri(const char* value); - void set_error_uri(const char* value, size_t size); - ::std::string* mutable_error_uri(); - ::std::string* release_error_uri(); - void set_allocated_error_uri(::std::string* error_uri); - - // .flyteidl.core.ExecutionError.ErrorKind kind = 4; - void clear_kind(); - static const int kKindFieldNumber = 4; - ::flyteidl::core::ExecutionError_ErrorKind kind() const; - void set_kind(::flyteidl::core::ExecutionError_ErrorKind value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr code_; - ::google::protobuf::internal::ArenaStringPtr message_; - ::google::protobuf::internal::ArenaStringPtr error_uri_; - int kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskLog final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskLog) */ { - public: - TaskLog(); - virtual ~TaskLog(); - - TaskLog(const TaskLog& from); - - inline TaskLog& operator=(const TaskLog& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskLog(TaskLog&& from) noexcept - : TaskLog() { - *this = ::std::move(from); - } - - inline TaskLog& operator=(TaskLog&& 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 TaskLog& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskLog* internal_default_instance() { - return reinterpret_cast( - &_TaskLog_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(TaskLog* other); - friend void swap(TaskLog& a, TaskLog& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskLog* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskLog* 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 TaskLog& from); - void MergeFrom(const TaskLog& 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(TaskLog* 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 ---------------------------------------------------- - - typedef TaskLog_MessageFormat MessageFormat; - static const MessageFormat UNKNOWN = - TaskLog_MessageFormat_UNKNOWN; - static const MessageFormat CSV = - TaskLog_MessageFormat_CSV; - static const MessageFormat JSON = - TaskLog_MessageFormat_JSON; - static inline bool MessageFormat_IsValid(int value) { - return TaskLog_MessageFormat_IsValid(value); - } - static const MessageFormat MessageFormat_MIN = - TaskLog_MessageFormat_MessageFormat_MIN; - static const MessageFormat MessageFormat_MAX = - TaskLog_MessageFormat_MessageFormat_MAX; - static const int MessageFormat_ARRAYSIZE = - TaskLog_MessageFormat_MessageFormat_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - MessageFormat_descriptor() { - return TaskLog_MessageFormat_descriptor(); - } - static inline const ::std::string& MessageFormat_Name(MessageFormat value) { - return TaskLog_MessageFormat_Name(value); - } - static inline bool MessageFormat_Parse(const ::std::string& name, - MessageFormat* value) { - return TaskLog_MessageFormat_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string uri = 1; - void clear_uri(); - static const int kUriFieldNumber = 1; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .google.protobuf.Duration ttl = 4; - bool has_ttl() const; - void clear_ttl(); - static const int kTtlFieldNumber = 4; - const ::google::protobuf::Duration& ttl() const; - ::google::protobuf::Duration* release_ttl(); - ::google::protobuf::Duration* mutable_ttl(); - void set_allocated_ttl(::google::protobuf::Duration* ttl); - - // .flyteidl.core.TaskLog.MessageFormat message_format = 3; - void clear_message_format(); - static const int kMessageFormatFieldNumber = 3; - ::flyteidl::core::TaskLog_MessageFormat message_format() const; - void set_message_format(::flyteidl::core::TaskLog_MessageFormat value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr uri_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Duration* ttl_; - int message_format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class QualityOfServiceSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.QualityOfServiceSpec) */ { - public: - QualityOfServiceSpec(); - virtual ~QualityOfServiceSpec(); - - QualityOfServiceSpec(const QualityOfServiceSpec& from); - - inline QualityOfServiceSpec& operator=(const QualityOfServiceSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - QualityOfServiceSpec(QualityOfServiceSpec&& from) noexcept - : QualityOfServiceSpec() { - *this = ::std::move(from); - } - - inline QualityOfServiceSpec& operator=(QualityOfServiceSpec&& 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 QualityOfServiceSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QualityOfServiceSpec* internal_default_instance() { - return reinterpret_cast( - &_QualityOfServiceSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(QualityOfServiceSpec* other); - friend void swap(QualityOfServiceSpec& a, QualityOfServiceSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline QualityOfServiceSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - QualityOfServiceSpec* 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 QualityOfServiceSpec& from); - void MergeFrom(const QualityOfServiceSpec& 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(QualityOfServiceSpec* 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 ------------------------------------------------------- - - // .google.protobuf.Duration queueing_budget = 1; - bool has_queueing_budget() const; - void clear_queueing_budget(); - static const int kQueueingBudgetFieldNumber = 1; - const ::google::protobuf::Duration& queueing_budget() const; - ::google::protobuf::Duration* release_queueing_budget(); - ::google::protobuf::Duration* mutable_queueing_budget(); - void set_allocated_queueing_budget(::google::protobuf::Duration* queueing_budget); - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Duration* queueing_budget_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// ------------------------------------------------------------------- - -class QualityOfService final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.QualityOfService) */ { - public: - QualityOfService(); - virtual ~QualityOfService(); - - QualityOfService(const QualityOfService& from); - - inline QualityOfService& operator=(const QualityOfService& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - QualityOfService(QualityOfService&& from) noexcept - : QualityOfService() { - *this = ::std::move(from); - } - - inline QualityOfService& operator=(QualityOfService&& 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 QualityOfService& default_instance(); - - enum DesignationCase { - kTier = 1, - kSpec = 2, - DESIGNATION_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QualityOfService* internal_default_instance() { - return reinterpret_cast( - &_QualityOfService_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(QualityOfService* other); - friend void swap(QualityOfService& a, QualityOfService& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline QualityOfService* New() const final { - return CreateMaybeMessage(nullptr); - } - - QualityOfService* 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 QualityOfService& from); - void MergeFrom(const QualityOfService& 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(QualityOfService* 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 ---------------------------------------------------- - - typedef QualityOfService_Tier Tier; - static const Tier UNDEFINED = - QualityOfService_Tier_UNDEFINED; - static const Tier HIGH = - QualityOfService_Tier_HIGH; - static const Tier MEDIUM = - QualityOfService_Tier_MEDIUM; - static const Tier LOW = - QualityOfService_Tier_LOW; - static inline bool Tier_IsValid(int value) { - return QualityOfService_Tier_IsValid(value); - } - static const Tier Tier_MIN = - QualityOfService_Tier_Tier_MIN; - static const Tier Tier_MAX = - QualityOfService_Tier_Tier_MAX; - static const int Tier_ARRAYSIZE = - QualityOfService_Tier_Tier_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Tier_descriptor() { - return QualityOfService_Tier_descriptor(); - } - static inline const ::std::string& Tier_Name(Tier value) { - return QualityOfService_Tier_Name(value); - } - static inline bool Tier_Parse(const ::std::string& name, - Tier* value) { - return QualityOfService_Tier_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.core.QualityOfService.Tier tier = 1; - private: - bool has_tier() const; - public: - void clear_tier(); - static const int kTierFieldNumber = 1; - ::flyteidl::core::QualityOfService_Tier tier() const; - void set_tier(::flyteidl::core::QualityOfService_Tier value); - - // .flyteidl.core.QualityOfServiceSpec spec = 2; - bool has_spec() const; - void clear_spec(); - static const int kSpecFieldNumber = 2; - const ::flyteidl::core::QualityOfServiceSpec& spec() const; - ::flyteidl::core::QualityOfServiceSpec* release_spec(); - ::flyteidl::core::QualityOfServiceSpec* mutable_spec(); - void set_allocated_spec(::flyteidl::core::QualityOfServiceSpec* spec); - - void clear_designation(); - DesignationCase designation_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) - private: - class HasBitSetters; - void set_has_tier(); - void set_has_spec(); - - inline bool has_designation() const; - inline void clear_has_designation(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union DesignationUnion { - DesignationUnion() {} - int tier_; - ::flyteidl::core::QualityOfServiceSpec* spec_; - } designation_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fexecution_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// WorkflowExecution - -// ------------------------------------------------------------------- - -// NodeExecution - -// ------------------------------------------------------------------- - -// TaskExecution - -// ------------------------------------------------------------------- - -// ExecutionError - -// string code = 1; -inline void ExecutionError::clear_code() { - code_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionError::code() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.code) - return code_.GetNoArena(); -} -inline void ExecutionError::set_code(const ::std::string& value) { - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.code) -} -#if LANG_CXX11 -inline void ExecutionError::set_code(::std::string&& value) { - - code_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.code) -} -#endif -inline void ExecutionError::set_code(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.code) -} -inline void ExecutionError::set_code(const char* value, size_t size) { - - code_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.code) -} -inline ::std::string* ExecutionError::mutable_code() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.code) - return code_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionError::release_code() { - // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.code) - - return code_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionError::set_allocated_code(::std::string* code) { - if (code != nullptr) { - - } else { - - } - code_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), code); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.code) -} - -// string message = 2; -inline void ExecutionError::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionError::message() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.message) - return message_.GetNoArena(); -} -inline void ExecutionError::set_message(const ::std::string& value) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.message) -} -#if LANG_CXX11 -inline void ExecutionError::set_message(::std::string&& value) { - - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.message) -} -#endif -inline void ExecutionError::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.message) -} -inline void ExecutionError::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.message) -} -inline ::std::string* ExecutionError::mutable_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionError::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.message) - - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionError::set_allocated_message(::std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.message) -} - -// string error_uri = 3; -inline void ExecutionError::clear_error_uri() { - error_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExecutionError::error_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.error_uri) - return error_uri_.GetNoArena(); -} -inline void ExecutionError::set_error_uri(const ::std::string& value) { - - error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.error_uri) -} -#if LANG_CXX11 -inline void ExecutionError::set_error_uri(::std::string&& value) { - - error_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ExecutionError.error_uri) -} -#endif -inline void ExecutionError::set_error_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ExecutionError.error_uri) -} -inline void ExecutionError::set_error_uri(const char* value, size_t size) { - - error_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ExecutionError.error_uri) -} -inline ::std::string* ExecutionError::mutable_error_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ExecutionError.error_uri) - return error_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExecutionError::release_error_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.ExecutionError.error_uri) - - return error_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExecutionError::set_allocated_error_uri(::std::string* error_uri) { - if (error_uri != nullptr) { - - } else { - - } - error_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), error_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExecutionError.error_uri) -} - -// .flyteidl.core.ExecutionError.ErrorKind kind = 4; -inline void ExecutionError::clear_kind() { - kind_ = 0; -} -inline ::flyteidl::core::ExecutionError_ErrorKind ExecutionError::kind() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ExecutionError.kind) - return static_cast< ::flyteidl::core::ExecutionError_ErrorKind >(kind_); -} -inline void ExecutionError::set_kind(::flyteidl::core::ExecutionError_ErrorKind value) { - - kind_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ExecutionError.kind) -} - -// ------------------------------------------------------------------- - -// TaskLog - -// string uri = 1; -inline void TaskLog::clear_uri() { - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskLog::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.uri) - return uri_.GetNoArena(); -} -inline void TaskLog::set_uri(const ::std::string& value) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.uri) -} -#if LANG_CXX11 -inline void TaskLog::set_uri(::std::string&& value) { - - uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.uri) -} -#endif -inline void TaskLog::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.uri) -} -inline void TaskLog::set_uri(const char* value, size_t size) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.uri) -} -inline ::std::string* TaskLog::mutable_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.uri) - return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskLog::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.uri) - - return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskLog::set_allocated_uri(::std::string* uri) { - if (uri != nullptr) { - - } else { - - } - uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.uri) -} - -// string name = 2; -inline void TaskLog::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskLog::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.name) - return name_.GetNoArena(); -} -inline void TaskLog::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.name) -} -#if LANG_CXX11 -inline void TaskLog::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskLog.name) -} -#endif -inline void TaskLog::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskLog.name) -} -inline void TaskLog::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskLog.name) -} -inline ::std::string* TaskLog::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskLog::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskLog::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.name) -} - -// .flyteidl.core.TaskLog.MessageFormat message_format = 3; -inline void TaskLog::clear_message_format() { - message_format_ = 0; -} -inline ::flyteidl::core::TaskLog_MessageFormat TaskLog::message_format() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.message_format) - return static_cast< ::flyteidl::core::TaskLog_MessageFormat >(message_format_); -} -inline void TaskLog::set_message_format(::flyteidl::core::TaskLog_MessageFormat value) { - - message_format_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskLog.message_format) -} - -// .google.protobuf.Duration ttl = 4; -inline bool TaskLog::has_ttl() const { - return this != internal_default_instance() && ttl_ != nullptr; -} -inline const ::google::protobuf::Duration& TaskLog::ttl() const { - const ::google::protobuf::Duration* p = ttl_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskLog.ttl) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* TaskLog::release_ttl() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskLog.ttl) - - ::google::protobuf::Duration* temp = ttl_; - ttl_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* TaskLog::mutable_ttl() { - - if (ttl_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - ttl_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskLog.ttl) - return ttl_; -} -inline void TaskLog::set_allocated_ttl(::google::protobuf::Duration* ttl) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(ttl_); - } - if (ttl) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(ttl)->GetArena(); - if (message_arena != submessage_arena) { - ttl = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ttl, submessage_arena); - } - - } else { - - } - ttl_ = ttl; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskLog.ttl) -} - -// ------------------------------------------------------------------- - -// QualityOfServiceSpec - -// .google.protobuf.Duration queueing_budget = 1; -inline bool QualityOfServiceSpec::has_queueing_budget() const { - return this != internal_default_instance() && queueing_budget_ != nullptr; -} -inline const ::google::protobuf::Duration& QualityOfServiceSpec::queueing_budget() const { - const ::google::protobuf::Duration* p = queueing_budget_; - // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfServiceSpec.queueing_budget) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* QualityOfServiceSpec::release_queueing_budget() { - // @@protoc_insertion_point(field_release:flyteidl.core.QualityOfServiceSpec.queueing_budget) - - ::google::protobuf::Duration* temp = queueing_budget_; - queueing_budget_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* QualityOfServiceSpec::mutable_queueing_budget() { - - if (queueing_budget_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - queueing_budget_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.QualityOfServiceSpec.queueing_budget) - return queueing_budget_; -} -inline void QualityOfServiceSpec::set_allocated_queueing_budget(::google::protobuf::Duration* queueing_budget) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(queueing_budget_); - } - if (queueing_budget) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(queueing_budget)->GetArena(); - if (message_arena != submessage_arena) { - queueing_budget = ::google::protobuf::internal::GetOwnedMessage( - message_arena, queueing_budget, submessage_arena); - } - - } else { - - } - queueing_budget_ = queueing_budget; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.QualityOfServiceSpec.queueing_budget) -} - -// ------------------------------------------------------------------- - -// QualityOfService - -// .flyteidl.core.QualityOfService.Tier tier = 1; -inline bool QualityOfService::has_tier() const { - return designation_case() == kTier; -} -inline void QualityOfService::set_has_tier() { - _oneof_case_[0] = kTier; -} -inline void QualityOfService::clear_tier() { - if (has_tier()) { - designation_.tier_ = 0; - clear_has_designation(); - } -} -inline ::flyteidl::core::QualityOfService_Tier QualityOfService::tier() const { - // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfService.tier) - if (has_tier()) { - return static_cast< ::flyteidl::core::QualityOfService_Tier >(designation_.tier_); - } - return static_cast< ::flyteidl::core::QualityOfService_Tier >(0); -} -inline void QualityOfService::set_tier(::flyteidl::core::QualityOfService_Tier value) { - if (!has_tier()) { - clear_designation(); - set_has_tier(); - } - designation_.tier_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.QualityOfService.tier) -} - -// .flyteidl.core.QualityOfServiceSpec spec = 2; -inline bool QualityOfService::has_spec() const { - return designation_case() == kSpec; -} -inline void QualityOfService::set_has_spec() { - _oneof_case_[0] = kSpec; -} -inline void QualityOfService::clear_spec() { - if (has_spec()) { - delete designation_.spec_; - clear_has_designation(); - } -} -inline ::flyteidl::core::QualityOfServiceSpec* QualityOfService::release_spec() { - // @@protoc_insertion_point(field_release:flyteidl.core.QualityOfService.spec) - if (has_spec()) { - clear_has_designation(); - ::flyteidl::core::QualityOfServiceSpec* temp = designation_.spec_; - designation_.spec_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::QualityOfServiceSpec& QualityOfService::spec() const { - // @@protoc_insertion_point(field_get:flyteidl.core.QualityOfService.spec) - return has_spec() - ? *designation_.spec_ - : *reinterpret_cast< ::flyteidl::core::QualityOfServiceSpec*>(&::flyteidl::core::_QualityOfServiceSpec_default_instance_); -} -inline ::flyteidl::core::QualityOfServiceSpec* QualityOfService::mutable_spec() { - if (!has_spec()) { - clear_designation(); - set_has_spec(); - designation_.spec_ = CreateMaybeMessage< ::flyteidl::core::QualityOfServiceSpec >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.QualityOfService.spec) - return designation_.spec_; -} - -inline bool QualityOfService::has_designation() const { - return designation_case() != DESIGNATION_NOT_SET; -} -inline void QualityOfService::clear_has_designation() { - _oneof_case_[0] = DESIGNATION_NOT_SET; -} -inline QualityOfService::DesignationCase QualityOfService::designation_case() const { - return QualityOfService::DesignationCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::WorkflowExecution_Phase> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::WorkflowExecution_Phase>() { - return ::flyteidl::core::WorkflowExecution_Phase_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::NodeExecution_Phase> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::NodeExecution_Phase>() { - return ::flyteidl::core::NodeExecution_Phase_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::TaskExecution_Phase> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskExecution_Phase>() { - return ::flyteidl::core::TaskExecution_Phase_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::ExecutionError_ErrorKind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ExecutionError_ErrorKind>() { - return ::flyteidl::core::ExecutionError_ErrorKind_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::TaskLog_MessageFormat> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::TaskLog_MessageFormat>() { - return ::flyteidl::core::TaskLog_MessageFormat_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::QualityOfService_Tier> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::QualityOfService_Tier>() { - return ::flyteidl::core::QualityOfService_Tier_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fexecution_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc deleted file mode 100644 index 1c8d0f1336..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/identifier.proto - -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/identifier.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h deleted file mode 100644 index 05f26415a6..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/identifier.proto -#ifndef GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED - -#include "flyteidl/core/identifier.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fidentifier_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc deleted file mode 100644 index 23adc9e27e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.cc +++ /dev/null @@ -1,2411 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/identifier.proto - -#include "flyteidl/core/identifier.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -namespace flyteidl { -namespace core { -class IdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Identifier_default_instance_; -class WorkflowExecutionIdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowExecutionIdentifier_default_instance_; -class NodeExecutionIdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _NodeExecutionIdentifier_default_instance_; -class TaskExecutionIdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionIdentifier_default_instance_; -class SignalIdentifierDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalIdentifier_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Identifier_default_instance_; - new (ptr) ::flyteidl::core::Identifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Identifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, {}}; - -static void InitDefaultsWorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_; - new (ptr) ::flyteidl::core::WorkflowExecutionIdentifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowExecutionIdentifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, {}}; - -static void InitDefaultsNodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_NodeExecutionIdentifier_default_instance_; - new (ptr) ::flyteidl::core::NodeExecutionIdentifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::NodeExecutionIdentifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsTaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskExecutionIdentifier_default_instance_; - new (ptr) ::flyteidl::core::TaskExecutionIdentifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskExecutionIdentifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsSignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SignalIdentifier_default_instance_; - new (ptr) ::flyteidl::core::SignalIdentifier(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SignalIdentifier::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fidentifier_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[5]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fidentifier_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fidentifier_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fidentifier_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, resource_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identifier, version_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowExecutionIdentifier, name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeExecutionIdentifier, execution_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, task_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, node_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskExecutionIdentifier, retry_attempt_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, signal_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalIdentifier, execution_id_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Identifier)}, - { 10, -1, sizeof(::flyteidl::core::WorkflowExecutionIdentifier)}, - { 18, -1, sizeof(::flyteidl::core::NodeExecutionIdentifier)}, - { 25, -1, sizeof(::flyteidl::core::TaskExecutionIdentifier)}, - { 33, -1, sizeof(::flyteidl::core::SignalIdentifier)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Identifier_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_), - reinterpret_cast(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_), - reinterpret_cast(&::flyteidl::core::_SignalIdentifier_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, "flyteidl/core/identifier.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fidentifier_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto, 5, file_level_enum_descriptors_flyteidl_2fcore_2fidentifier_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fidentifier_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fidentifier_2eproto[] = - "\n\036flyteidl/core/identifier.proto\022\rflytei" - "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" - "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" - "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" - "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" - "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" - "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" - "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" - "(\0132*.flyteidl.core.WorkflowExecutionIden" - "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" - "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" - "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" - "e.NodeExecutionIdentifier\022\025\n\rretry_attem" - "pt\030\003 \001(\r\"g\n\020SignalIdentifier\022\021\n\tsignal_i" - "d\030\001 \001(\t\022@\n\014execution_id\030\002 \001(\0132*.flyteidl" - ".core.WorkflowExecutionIdentifier*U\n\014Res" - "ourceType\022\017\n\013UNSPECIFIED\020\000\022\010\n\004TASK\020\001\022\014\n\010" - "WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN\020\003\022\013\n\007DATASET\020\004" - "B= 1900 -const int Identifier::kResourceTypeFieldNumber; -const int Identifier::kProjectFieldNumber; -const int Identifier::kDomainFieldNumber; -const int Identifier::kNameFieldNumber; -const int Identifier::kVersionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Identifier::Identifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Identifier) -} -Identifier::Identifier(const Identifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - resource_type_ = from.resource_type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Identifier) -} - -void Identifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; -} - -Identifier::~Identifier() { - // @@protoc_insertion_point(destructor:flyteidl.core.Identifier) - SharedDtor(); -} - -void Identifier::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Identifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Identifier& Identifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base); - return *internal_default_instance(); -} - - -void Identifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Identifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resource_type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Identifier::_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.ResourceType resource_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_resource_type(static_cast<::flyteidl::core::ResourceType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string version = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identifier.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Identifier::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.core.Identifier) - 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.ResourceType resource_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_resource_type(static_cast< ::flyteidl::core::ResourceType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string project = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identifier.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identifier.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identifier.name")); - } else { - goto handle_unusual; - } - break; - } - - // string version = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identifier.version")); - } 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.core.Identifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Identifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Identifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Identifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->resource_type(), output); - } - - // string project = 2; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->project(), output); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->domain(), output); - } - - // string name = 4; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->name(), output); - } - - // string version = 5; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->version(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Identifier) -} - -::google::protobuf::uint8* Identifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Identifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->resource_type(), target); - } - - // string project = 2; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->project(), target); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->domain(), target); - } - - // string name = 4; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), target); - } - - // string version = 5; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identifier.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->version(), 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.core.Identifier) - return target; -} - -size_t Identifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Identifier) - 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; - - // string project = 2; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 3; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string name = 4; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string version = 5; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // .flyteidl.core.ResourceType resource_type = 1; - if (this->resource_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Identifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Identifier) - GOOGLE_DCHECK_NE(&from, this); - const Identifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Identifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Identifier) - MergeFrom(*source); - } -} - -void Identifier::MergeFrom(const Identifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Identifier) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.resource_type() != 0) { - set_resource_type(from.resource_type()); - } -} - -void Identifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Identifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Identifier::CopyFrom(const Identifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Identifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Identifier::IsInitialized() const { - return true; -} - -void Identifier::Swap(Identifier* other) { - if (other == this) return; - InternalSwap(other); -} -void Identifier::InternalSwap(Identifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resource_type_, other->resource_type_); -} - -::google::protobuf::Metadata Identifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowExecutionIdentifier::InitAsDefaultInstance() { -} -class WorkflowExecutionIdentifier::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionIdentifier::kProjectFieldNumber; -const int WorkflowExecutionIdentifier::kDomainFieldNumber; -const int WorkflowExecutionIdentifier::kNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionIdentifier::WorkflowExecutionIdentifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowExecutionIdentifier) -} -WorkflowExecutionIdentifier::WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowExecutionIdentifier) -} - -void WorkflowExecutionIdentifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -WorkflowExecutionIdentifier::~WorkflowExecutionIdentifier() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowExecutionIdentifier) - SharedDtor(); -} - -void WorkflowExecutionIdentifier::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WorkflowExecutionIdentifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionIdentifier& WorkflowExecutionIdentifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionIdentifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionIdentifier::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.WorkflowExecutionIdentifier.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowExecutionIdentifier::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.core.WorkflowExecutionIdentifier) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowExecutionIdentifier.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowExecutionIdentifier.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowExecutionIdentifier.name")); - } 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.core.WorkflowExecutionIdentifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowExecutionIdentifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionIdentifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string name = 4; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowExecutionIdentifier) -} - -::google::protobuf::uint8* WorkflowExecutionIdentifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string name = 4; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowExecutionIdentifier.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->name(), 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.core.WorkflowExecutionIdentifier) - return target; -} - -size_t WorkflowExecutionIdentifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowExecutionIdentifier) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string name = 4; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionIdentifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowExecutionIdentifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowExecutionIdentifier) - MergeFrom(*source); - } -} - -void WorkflowExecutionIdentifier::MergeFrom(const WorkflowExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowExecutionIdentifier) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } -} - -void WorkflowExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionIdentifier::CopyFrom(const WorkflowExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionIdentifier::IsInitialized() const { - return true; -} - -void WorkflowExecutionIdentifier::Swap(WorkflowExecutionIdentifier* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionIdentifier::InternalSwap(WorkflowExecutionIdentifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata WorkflowExecutionIdentifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionIdentifier::InitAsDefaultInstance() { - ::flyteidl::core::_NodeExecutionIdentifier_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class NodeExecutionIdentifier::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const NodeExecutionIdentifier* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -NodeExecutionIdentifier::HasBitSetters::execution_id(const NodeExecutionIdentifier* msg) { - return *msg->execution_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionIdentifier::kNodeIdFieldNumber; -const int NodeExecutionIdentifier::kExecutionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionIdentifier::NodeExecutionIdentifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.NodeExecutionIdentifier) -} -NodeExecutionIdentifier::NodeExecutionIdentifier(const NodeExecutionIdentifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.node_id().size() > 0) { - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeExecutionIdentifier) -} - -void NodeExecutionIdentifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - execution_id_ = nullptr; -} - -NodeExecutionIdentifier::~NodeExecutionIdentifier() { - // @@protoc_insertion_point(destructor:flyteidl.core.NodeExecutionIdentifier) - SharedDtor(); -} - -void NodeExecutionIdentifier::SharedDtor() { - node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete execution_id_; -} - -void NodeExecutionIdentifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionIdentifier& NodeExecutionIdentifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionIdentifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionIdentifier::_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) { - // string node_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.NodeExecutionIdentifier.node_id"); - object = msg->mutable_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 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::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionIdentifier::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.core.NodeExecutionIdentifier) - 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)) { - // string node_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.NodeExecutionIdentifier.node_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_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.core.NodeExecutionIdentifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeExecutionIdentifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionIdentifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.NodeExecutionIdentifier.node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->node_id(), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::execution_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.core.NodeExecutionIdentifier) -} - -::google::protobuf::uint8* NodeExecutionIdentifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.NodeExecutionIdentifier.node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->node_id(), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::execution_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.core.NodeExecutionIdentifier) - return target; -} - -size_t NodeExecutionIdentifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeExecutionIdentifier) - 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; - - // string node_id = 1; - if (this->node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->node_id()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeExecutionIdentifier) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionIdentifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeExecutionIdentifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeExecutionIdentifier) - MergeFrom(*source); - } -} - -void NodeExecutionIdentifier::MergeFrom(const NodeExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeExecutionIdentifier) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.node_id().size() > 0) { - - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - if (from.has_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } -} - -void NodeExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionIdentifier::CopyFrom(const NodeExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionIdentifier::IsInitialized() const { - return true; -} - -void NodeExecutionIdentifier::Swap(NodeExecutionIdentifier* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionIdentifier::InternalSwap(NodeExecutionIdentifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(execution_id_, other->execution_id_); -} - -::google::protobuf::Metadata NodeExecutionIdentifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionIdentifier::InitAsDefaultInstance() { - ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_TaskExecutionIdentifier_default_instance_._instance.get_mutable()->node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); -} -class TaskExecutionIdentifier::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& task_id(const TaskExecutionIdentifier* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const TaskExecutionIdentifier* msg); -}; - -const ::flyteidl::core::Identifier& -TaskExecutionIdentifier::HasBitSetters::task_id(const TaskExecutionIdentifier* msg) { - return *msg->task_id_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -TaskExecutionIdentifier::HasBitSetters::node_execution_id(const TaskExecutionIdentifier* msg) { - return *msg->node_execution_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionIdentifier::kTaskIdFieldNumber; -const int TaskExecutionIdentifier::kNodeExecutionIdFieldNumber; -const int TaskExecutionIdentifier::kRetryAttemptFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionIdentifier::TaskExecutionIdentifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskExecutionIdentifier) -} -TaskExecutionIdentifier::TaskExecutionIdentifier(const TaskExecutionIdentifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_task_id()) { - task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); - } else { - task_id_ = nullptr; - } - if (from.has_node_execution_id()) { - node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.node_execution_id_); - } else { - node_execution_id_ = nullptr; - } - retry_attempt_ = from.retry_attempt_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskExecutionIdentifier) -} - -void TaskExecutionIdentifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - ::memset(&task_id_, 0, static_cast( - reinterpret_cast(&retry_attempt_) - - reinterpret_cast(&task_id_)) + sizeof(retry_attempt_)); -} - -TaskExecutionIdentifier::~TaskExecutionIdentifier() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskExecutionIdentifier) - SharedDtor(); -} - -void TaskExecutionIdentifier::SharedDtor() { - if (this != internal_default_instance()) delete task_id_; - if (this != internal_default_instance()) delete node_execution_id_; -} - -void TaskExecutionIdentifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionIdentifier& TaskExecutionIdentifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionIdentifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { - delete node_execution_id_; - } - node_execution_id_ = nullptr; - retry_attempt_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionIdentifier::_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 task_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_task_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; - } - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 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::core::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_node_execution_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; - } - // uint32 retry_attempt = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 TaskExecutionIdentifier::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.core.TaskExecutionIdentifier) - 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 task_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 retry_attempt = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retry_attempt_))); - } 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.core.TaskExecutionIdentifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskExecutionIdentifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionIdentifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier task_id = 1; - if (this->has_task_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::task_id(this), output); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - if (this->has_node_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::node_execution_id(this), output); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskExecutionIdentifier) -} - -::google::protobuf::uint8* TaskExecutionIdentifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskExecutionIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier task_id = 1; - if (this->has_task_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::task_id(this), target); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - if (this->has_node_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::node_execution_id(this), target); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), 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.core.TaskExecutionIdentifier) - return target; -} - -size_t TaskExecutionIdentifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskExecutionIdentifier) - 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 task_id = 1; - if (this->has_task_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_id_); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - if (this->has_node_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *node_execution_id_); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retry_attempt()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionIdentifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskExecutionIdentifier) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionIdentifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskExecutionIdentifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskExecutionIdentifier) - MergeFrom(*source); - } -} - -void TaskExecutionIdentifier::MergeFrom(const TaskExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskExecutionIdentifier) - 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_task_id()) { - mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); - } - if (from.has_node_execution_id()) { - mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); - } - if (from.retry_attempt() != 0) { - set_retry_attempt(from.retry_attempt()); - } -} - -void TaskExecutionIdentifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionIdentifier::CopyFrom(const TaskExecutionIdentifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskExecutionIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionIdentifier::IsInitialized() const { - return true; -} - -void TaskExecutionIdentifier::Swap(TaskExecutionIdentifier* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionIdentifier::InternalSwap(TaskExecutionIdentifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(task_id_, other->task_id_); - swap(node_execution_id_, other->node_execution_id_); - swap(retry_attempt_, other->retry_attempt_); -} - -::google::protobuf::Metadata TaskExecutionIdentifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalIdentifier::InitAsDefaultInstance() { - ::flyteidl::core::_SignalIdentifier_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class SignalIdentifier::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const SignalIdentifier* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -SignalIdentifier::HasBitSetters::execution_id(const SignalIdentifier* msg) { - return *msg->execution_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalIdentifier::kSignalIdFieldNumber; -const int SignalIdentifier::kExecutionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalIdentifier::SignalIdentifier() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SignalIdentifier) -} -SignalIdentifier::SignalIdentifier(const SignalIdentifier& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.signal_id().size() > 0) { - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SignalIdentifier) -} - -void SignalIdentifier::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - execution_id_ = nullptr; -} - -SignalIdentifier::~SignalIdentifier() { - // @@protoc_insertion_point(destructor:flyteidl.core.SignalIdentifier) - SharedDtor(); -} - -void SignalIdentifier::SharedDtor() { - signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete execution_id_; -} - -void SignalIdentifier::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalIdentifier& SignalIdentifier::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base); - return *internal_default_instance(); -} - - -void SignalIdentifier::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SignalIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalIdentifier::_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) { - // string signal_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalIdentifier.signal_id"); - object = msg->mutable_signal_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 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::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SignalIdentifier::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.core.SignalIdentifier) - 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)) { - // string signal_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_signal_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.SignalIdentifier.signal_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_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.core.SignalIdentifier) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SignalIdentifier) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalIdentifier::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SignalIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalIdentifier.signal_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->signal_id(), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::execution_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.core.SignalIdentifier) -} - -::google::protobuf::uint8* SignalIdentifier::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SignalIdentifier) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalIdentifier.signal_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->signal_id(), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::execution_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.core.SignalIdentifier) - return target; -} - -size_t SignalIdentifier::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SignalIdentifier) - 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; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->signal_id()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalIdentifier::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SignalIdentifier) - GOOGLE_DCHECK_NE(&from, this); - const SignalIdentifier* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SignalIdentifier) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SignalIdentifier) - MergeFrom(*source); - } -} - -void SignalIdentifier::MergeFrom(const SignalIdentifier& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SignalIdentifier) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.signal_id().size() > 0) { - - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } - if (from.has_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } -} - -void SignalIdentifier::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SignalIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalIdentifier::CopyFrom(const SignalIdentifier& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SignalIdentifier) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalIdentifier::IsInitialized() const { - return true; -} - -void SignalIdentifier::Swap(SignalIdentifier* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalIdentifier::InternalSwap(SignalIdentifier* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(execution_id_, other->execution_id_); -} - -::google::protobuf::Metadata SignalIdentifier::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fidentifier_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fidentifier_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Identifier* Arena::CreateMaybeMessage< ::flyteidl::core::Identifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Identifier >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowExecutionIdentifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowExecutionIdentifier >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::NodeExecutionIdentifier >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskExecutionIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskExecutionIdentifier >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::SignalIdentifier* Arena::CreateMaybeMessage< ::flyteidl::core::SignalIdentifier >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SignalIdentifier >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h deleted file mode 100644 index d3ee554d5a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/identifier.pb.h +++ /dev/null @@ -1,1589 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/identifier.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fidentifier_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto(); -namespace flyteidl { -namespace core { -class Identifier; -class IdentifierDefaultTypeInternal; -extern IdentifierDefaultTypeInternal _Identifier_default_instance_; -class NodeExecutionIdentifier; -class NodeExecutionIdentifierDefaultTypeInternal; -extern NodeExecutionIdentifierDefaultTypeInternal _NodeExecutionIdentifier_default_instance_; -class SignalIdentifier; -class SignalIdentifierDefaultTypeInternal; -extern SignalIdentifierDefaultTypeInternal _SignalIdentifier_default_instance_; -class TaskExecutionIdentifier; -class TaskExecutionIdentifierDefaultTypeInternal; -extern TaskExecutionIdentifierDefaultTypeInternal _TaskExecutionIdentifier_default_instance_; -class WorkflowExecutionIdentifier; -class WorkflowExecutionIdentifierDefaultTypeInternal; -extern WorkflowExecutionIdentifierDefaultTypeInternal _WorkflowExecutionIdentifier_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Identifier* Arena::CreateMaybeMessage<::flyteidl::core::Identifier>(Arena*); -template<> ::flyteidl::core::NodeExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(Arena*); -template<> ::flyteidl::core::SignalIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::SignalIdentifier>(Arena*); -template<> ::flyteidl::core::TaskExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(Arena*); -template<> ::flyteidl::core::WorkflowExecutionIdentifier* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum ResourceType { - UNSPECIFIED = 0, - TASK = 1, - WORKFLOW = 2, - LAUNCH_PLAN = 3, - DATASET = 4, - ResourceType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ResourceType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ResourceType_IsValid(int value); -const ResourceType ResourceType_MIN = UNSPECIFIED; -const ResourceType ResourceType_MAX = DATASET; -const int ResourceType_ARRAYSIZE = ResourceType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ResourceType_descriptor(); -inline const ::std::string& ResourceType_Name(ResourceType value) { - return ::google::protobuf::internal::NameOfEnum( - ResourceType_descriptor(), value); -} -inline bool ResourceType_Parse( - const ::std::string& name, ResourceType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ResourceType_descriptor(), name, value); -} -// =================================================================== - -class Identifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Identifier) */ { - public: - Identifier(); - virtual ~Identifier(); - - Identifier(const Identifier& from); - - inline Identifier& operator=(const Identifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Identifier(Identifier&& from) noexcept - : Identifier() { - *this = ::std::move(from); - } - - inline Identifier& operator=(Identifier&& 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 Identifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Identifier* internal_default_instance() { - return reinterpret_cast( - &_Identifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Identifier* other); - friend void swap(Identifier& a, Identifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Identifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - Identifier* 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 Identifier& from); - void MergeFrom(const Identifier& 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(Identifier* 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 ------------------------------------------------------- - - // string project = 2; - void clear_project(); - static const int kProjectFieldNumber = 2; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 3; - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string name = 4; - void clear_name(); - static const int kNameFieldNumber = 4; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string version = 5; - void clear_version(); - static const int kVersionFieldNumber = 5; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // .flyteidl.core.ResourceType resource_type = 1; - void clear_resource_type(); - static const int kResourceTypeFieldNumber = 1; - ::flyteidl::core::ResourceType resource_type() const; - void set_resource_type(::flyteidl::core::ResourceType value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr version_; - int resource_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowExecutionIdentifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowExecutionIdentifier) */ { - public: - WorkflowExecutionIdentifier(); - virtual ~WorkflowExecutionIdentifier(); - - WorkflowExecutionIdentifier(const WorkflowExecutionIdentifier& from); - - inline WorkflowExecutionIdentifier& operator=(const WorkflowExecutionIdentifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionIdentifier(WorkflowExecutionIdentifier&& from) noexcept - : WorkflowExecutionIdentifier() { - *this = ::std::move(from); - } - - inline WorkflowExecutionIdentifier& operator=(WorkflowExecutionIdentifier&& 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 WorkflowExecutionIdentifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionIdentifier* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionIdentifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(WorkflowExecutionIdentifier* other); - friend void swap(WorkflowExecutionIdentifier& a, WorkflowExecutionIdentifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionIdentifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionIdentifier* 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 WorkflowExecutionIdentifier& from); - void MergeFrom(const WorkflowExecutionIdentifier& 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(WorkflowExecutionIdentifier* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string name = 4; - void clear_name(); - static const int kNameFieldNumber = 4; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionIdentifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeExecutionIdentifier) */ { - public: - NodeExecutionIdentifier(); - virtual ~NodeExecutionIdentifier(); - - NodeExecutionIdentifier(const NodeExecutionIdentifier& from); - - inline NodeExecutionIdentifier& operator=(const NodeExecutionIdentifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionIdentifier(NodeExecutionIdentifier&& from) noexcept - : NodeExecutionIdentifier() { - *this = ::std::move(from); - } - - inline NodeExecutionIdentifier& operator=(NodeExecutionIdentifier&& 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 NodeExecutionIdentifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionIdentifier* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionIdentifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(NodeExecutionIdentifier* other); - friend void swap(NodeExecutionIdentifier& a, NodeExecutionIdentifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionIdentifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionIdentifier* 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 NodeExecutionIdentifier& from); - void MergeFrom(const NodeExecutionIdentifier& 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(NodeExecutionIdentifier* 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 ------------------------------------------------------- - - // string node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - const ::std::string& node_id() const; - void set_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_node_id(::std::string&& value); - #endif - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - ::std::string* mutable_node_id(); - ::std::string* release_node_id(); - void set_allocated_node_id(::std::string* node_id); - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 2; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionIdentifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskExecutionIdentifier) */ { - public: - TaskExecutionIdentifier(); - virtual ~TaskExecutionIdentifier(); - - TaskExecutionIdentifier(const TaskExecutionIdentifier& from); - - inline TaskExecutionIdentifier& operator=(const TaskExecutionIdentifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionIdentifier(TaskExecutionIdentifier&& from) noexcept - : TaskExecutionIdentifier() { - *this = ::std::move(from); - } - - inline TaskExecutionIdentifier& operator=(TaskExecutionIdentifier&& 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 TaskExecutionIdentifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionIdentifier* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionIdentifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskExecutionIdentifier* other); - friend void swap(TaskExecutionIdentifier& a, TaskExecutionIdentifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionIdentifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionIdentifier* 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 TaskExecutionIdentifier& from); - void MergeFrom(const TaskExecutionIdentifier& 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(TaskExecutionIdentifier* 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 task_id = 1; - bool has_task_id() const; - void clear_task_id(); - static const int kTaskIdFieldNumber = 1; - const ::flyteidl::core::Identifier& task_id() const; - ::flyteidl::core::Identifier* release_task_id(); - ::flyteidl::core::Identifier* mutable_task_id(); - void set_allocated_task_id(::flyteidl::core::Identifier* task_id); - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - bool has_node_execution_id() const; - void clear_node_execution_id(); - static const int kNodeExecutionIdFieldNumber = 2; - const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); - void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); - - // uint32 retry_attempt = 3; - void clear_retry_attempt(); - static const int kRetryAttemptFieldNumber = 3; - ::google::protobuf::uint32 retry_attempt() const; - void set_retry_attempt(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Identifier* task_id_; - ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; - ::google::protobuf::uint32 retry_attempt_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalIdentifier final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SignalIdentifier) */ { - public: - SignalIdentifier(); - virtual ~SignalIdentifier(); - - SignalIdentifier(const SignalIdentifier& from); - - inline SignalIdentifier& operator=(const SignalIdentifier& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalIdentifier(SignalIdentifier&& from) noexcept - : SignalIdentifier() { - *this = ::std::move(from); - } - - inline SignalIdentifier& operator=(SignalIdentifier&& 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 SignalIdentifier& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalIdentifier* internal_default_instance() { - return reinterpret_cast( - &_SignalIdentifier_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(SignalIdentifier* other); - friend void swap(SignalIdentifier& a, SignalIdentifier& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalIdentifier* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalIdentifier* 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 SignalIdentifier& from); - void MergeFrom(const SignalIdentifier& 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(SignalIdentifier* 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 ------------------------------------------------------- - - // string signal_id = 1; - void clear_signal_id(); - static const int kSignalIdFieldNumber = 1; - const ::std::string& signal_id() const; - void set_signal_id(const ::std::string& value); - #if LANG_CXX11 - void set_signal_id(::std::string&& value); - #endif - void set_signal_id(const char* value); - void set_signal_id(const char* value, size_t size); - ::std::string* mutable_signal_id(); - ::std::string* release_signal_id(); - void set_allocated_signal_id(::std::string* signal_id); - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 2; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // @@protoc_insertion_point(class_scope:flyteidl.core.SignalIdentifier) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr signal_id_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fidentifier_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Identifier - -// .flyteidl.core.ResourceType resource_type = 1; -inline void Identifier::clear_resource_type() { - resource_type_ = 0; -} -inline ::flyteidl::core::ResourceType Identifier::resource_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.resource_type) - return static_cast< ::flyteidl::core::ResourceType >(resource_type_); -} -inline void Identifier::set_resource_type(::flyteidl::core::ResourceType value) { - - resource_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.resource_type) -} - -// string project = 2; -inline void Identifier::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identifier::project() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.project) - return project_.GetNoArena(); -} -inline void Identifier::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.project) -} -#if LANG_CXX11 -inline void Identifier::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.project) -} -#endif -inline void Identifier::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.project) -} -inline void Identifier::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.project) -} -inline ::std::string* Identifier::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identifier::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identifier::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.project) -} - -// string domain = 3; -inline void Identifier::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identifier::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.domain) - return domain_.GetNoArena(); -} -inline void Identifier::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.domain) -} -#if LANG_CXX11 -inline void Identifier::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.domain) -} -#endif -inline void Identifier::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.domain) -} -inline void Identifier::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.domain) -} -inline ::std::string* Identifier::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identifier::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identifier::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.domain) -} - -// string name = 4; -inline void Identifier::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identifier::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.name) - return name_.GetNoArena(); -} -inline void Identifier::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.name) -} -#if LANG_CXX11 -inline void Identifier::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.name) -} -#endif -inline void Identifier::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.name) -} -inline void Identifier::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.name) -} -inline ::std::string* Identifier::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identifier::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identifier::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.name) -} - -// string version = 5; -inline void Identifier::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identifier::version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identifier.version) - return version_.GetNoArena(); -} -inline void Identifier::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identifier.version) -} -#if LANG_CXX11 -inline void Identifier::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identifier.version) -} -#endif -inline void Identifier::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identifier.version) -} -inline void Identifier::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identifier.version) -} -inline ::std::string* Identifier::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identifier.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identifier::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identifier.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identifier::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identifier.version) -} - -// ------------------------------------------------------------------- - -// WorkflowExecutionIdentifier - -// string project = 1; -inline void WorkflowExecutionIdentifier::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowExecutionIdentifier::project() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.project) - return project_.GetNoArena(); -} -inline void WorkflowExecutionIdentifier::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.project) -} -#if LANG_CXX11 -inline void WorkflowExecutionIdentifier::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.project) -} -#endif -inline void WorkflowExecutionIdentifier::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.project) -} -inline void WorkflowExecutionIdentifier::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.project) -} -inline ::std::string* WorkflowExecutionIdentifier::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionIdentifier::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowExecutionIdentifier::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.project) -} - -// string domain = 2; -inline void WorkflowExecutionIdentifier::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowExecutionIdentifier::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.domain) - return domain_.GetNoArena(); -} -inline void WorkflowExecutionIdentifier::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.domain) -} -#if LANG_CXX11 -inline void WorkflowExecutionIdentifier::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.domain) -} -#endif -inline void WorkflowExecutionIdentifier::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.domain) -} -inline void WorkflowExecutionIdentifier::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.domain) -} -inline ::std::string* WorkflowExecutionIdentifier::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionIdentifier::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowExecutionIdentifier::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.domain) -} - -// string name = 4; -inline void WorkflowExecutionIdentifier::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowExecutionIdentifier::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowExecutionIdentifier.name) - return name_.GetNoArena(); -} -inline void WorkflowExecutionIdentifier::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowExecutionIdentifier.name) -} -#if LANG_CXX11 -inline void WorkflowExecutionIdentifier::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.WorkflowExecutionIdentifier.name) -} -#endif -inline void WorkflowExecutionIdentifier::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.WorkflowExecutionIdentifier.name) -} -inline void WorkflowExecutionIdentifier::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.WorkflowExecutionIdentifier.name) -} -inline ::std::string* WorkflowExecutionIdentifier::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowExecutionIdentifier.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionIdentifier::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowExecutionIdentifier.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowExecutionIdentifier::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowExecutionIdentifier.name) -} - -// ------------------------------------------------------------------- - -// NodeExecutionIdentifier - -// string node_id = 1; -inline void NodeExecutionIdentifier::clear_node_id() { - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionIdentifier::node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.node_id) - return node_id_.GetNoArena(); -} -inline void NodeExecutionIdentifier::set_node_id(const ::std::string& value) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.NodeExecutionIdentifier.node_id) -} -#if LANG_CXX11 -inline void NodeExecutionIdentifier::set_node_id(::std::string&& value) { - - node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeExecutionIdentifier.node_id) -} -#endif -inline void NodeExecutionIdentifier::set_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeExecutionIdentifier.node_id) -} -inline void NodeExecutionIdentifier::set_node_id(const char* value, size_t size) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeExecutionIdentifier.node_id) -} -inline ::std::string* NodeExecutionIdentifier::mutable_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.node_id) - return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionIdentifier::release_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.node_id) - - return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionIdentifier::set_allocated_node_id(::std::string* node_id) { - if (node_id != nullptr) { - - } else { - - } - node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.node_id) -} - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; -inline bool NodeExecutionIdentifier::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline void NodeExecutionIdentifier::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& NodeExecutionIdentifier::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.NodeExecutionIdentifier.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.NodeExecutionIdentifier.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* NodeExecutionIdentifier::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeExecutionIdentifier.execution_id) - return execution_id_; -} -inline void NodeExecutionIdentifier::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete execution_id_; - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeExecutionIdentifier.execution_id) -} - -// ------------------------------------------------------------------- - -// TaskExecutionIdentifier - -// .flyteidl.core.Identifier task_id = 1; -inline bool TaskExecutionIdentifier::has_task_id() const { - return this != internal_default_instance() && task_id_ != nullptr; -} -inline void TaskExecutionIdentifier::clear_task_id() { - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; -} -inline const ::flyteidl::core::Identifier& TaskExecutionIdentifier::task_id() const { - const ::flyteidl::core::Identifier* p = task_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.task_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::release_task_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.task_id) - - ::flyteidl::core::Identifier* temp = task_id_; - task_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* TaskExecutionIdentifier::mutable_task_id() { - - if (task_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - task_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.task_id) - return task_id_; -} -inline void TaskExecutionIdentifier::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete task_id_; - } - if (task_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_id, submessage_arena); - } - - } else { - - } - task_id_ = task_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.task_id) -} - -// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; -inline bool TaskExecutionIdentifier::has_node_execution_id() const { - return this != internal_default_instance() && node_execution_id_ != nullptr; -} -inline void TaskExecutionIdentifier::clear_node_execution_id() { - if (GetArenaNoVirtual() == nullptr && node_execution_id_ != nullptr) { - delete node_execution_id_; - } - node_execution_id_ = nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionIdentifier::node_execution_id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = node_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.node_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::release_node_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskExecutionIdentifier.node_execution_id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = node_execution_id_; - node_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionIdentifier::mutable_node_execution_id() { - - if (node_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - node_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskExecutionIdentifier.node_execution_id) - return node_execution_id_; -} -inline void TaskExecutionIdentifier::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete node_execution_id_; - } - if (node_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node_execution_id, submessage_arena); - } - - } else { - - } - node_execution_id_ = node_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskExecutionIdentifier.node_execution_id) -} - -// uint32 retry_attempt = 3; -inline void TaskExecutionIdentifier::clear_retry_attempt() { - retry_attempt_ = 0u; -} -inline ::google::protobuf::uint32 TaskExecutionIdentifier::retry_attempt() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskExecutionIdentifier.retry_attempt) - return retry_attempt_; -} -inline void TaskExecutionIdentifier::set_retry_attempt(::google::protobuf::uint32 value) { - - retry_attempt_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskExecutionIdentifier.retry_attempt) -} - -// ------------------------------------------------------------------- - -// SignalIdentifier - -// string signal_id = 1; -inline void SignalIdentifier::clear_signal_id() { - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalIdentifier::signal_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.SignalIdentifier.signal_id) - return signal_id_.GetNoArena(); -} -inline void SignalIdentifier::set_signal_id(const ::std::string& value) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.SignalIdentifier.signal_id) -} -#if LANG_CXX11 -inline void SignalIdentifier::set_signal_id(::std::string&& value) { - - signal_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalIdentifier.signal_id) -} -#endif -inline void SignalIdentifier::set_signal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalIdentifier.signal_id) -} -inline void SignalIdentifier::set_signal_id(const char* value, size_t size) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalIdentifier.signal_id) -} -inline ::std::string* SignalIdentifier::mutable_signal_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalIdentifier.signal_id) - return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalIdentifier::release_signal_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.SignalIdentifier.signal_id) - - return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalIdentifier::set_allocated_signal_id(::std::string* signal_id) { - if (signal_id != nullptr) { - - } else { - - } - signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalIdentifier.signal_id) -} - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; -inline bool SignalIdentifier::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline void SignalIdentifier::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& SignalIdentifier::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.SignalIdentifier.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalIdentifier::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.SignalIdentifier.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* SignalIdentifier::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalIdentifier.execution_id) - return execution_id_; -} -inline void SignalIdentifier::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete execution_id_; - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalIdentifier.execution_id) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::ResourceType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::ResourceType>() { - return ::flyteidl::core::ResourceType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fidentifier_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc deleted file mode 100644 index 94c018c70b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/interface.proto - -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/interface.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h deleted file mode 100644 index d4b6633cae..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/interface.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/interface.proto -#ifndef GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED - -#include "flyteidl/core/interface.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2finterface_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc deleted file mode 100644 index 96e2d13b02..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.cc +++ /dev/null @@ -1,2659 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/interface.proto - -#include "flyteidl/core/interface.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_Variable_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -namespace flyteidl { -namespace core { -class VariableDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Variable_default_instance_; -class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VariableMap_VariablesEntry_DoNotUse_default_instance_; -class VariableMapDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _VariableMap_default_instance_; -class TypedInterfaceDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TypedInterface_default_instance_; -class ParameterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Literal* default__; - bool required_; - const ::flyteidl::core::ArtifactQuery* artifact_query_; - const ::flyteidl::core::ArtifactID* artifact_id_; -} _Parameter_default_instance_; -class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParameterMap_ParametersEntry_DoNotUse_default_instance_; -class ParameterMapDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParameterMap_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsVariable_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Variable_default_instance_; - new (ptr) ::flyteidl::core::Variable(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Variable::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_Variable_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsVariable_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactTag_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsVariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse(); - } - ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsVariableMap_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_VariableMap_default_instance_; - new (ptr) ::flyteidl::core::VariableMap(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::VariableMap::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsVariableMap_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsTypedInterface_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TypedInterface_default_instance_; - new (ptr) ::flyteidl::core::TypedInterface(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TypedInterface::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTypedInterface_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsParameter_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Parameter_default_instance_; - new (ptr) ::flyteidl::core::Parameter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Parameter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsParameter_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_ArtifactQuery_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -static void InitDefaultsParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse(); - } - ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base,}}; - -static void InitDefaultsParameterMap_flyteidl_2fcore_2finterface_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ParameterMap_default_instance_; - new (ptr) ::flyteidl::core::ParameterMap(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ParameterMap::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParameterMap_flyteidl_2fcore_2finterface_2eproto}, { - &scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2finterface_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VariableMap_VariablesEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterMap_ParametersEntry_DoNotUse_flyteidl_2fcore_2finterface_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2finterface_2eproto[7]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2finterface_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2finterface_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2finterface_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, description_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, artifact_partial_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Variable, artifact_tag_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::VariableMap, variables_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypedInterface, outputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, var_), - offsetof(::flyteidl::core::ParameterDefaultTypeInternal, default__), - offsetof(::flyteidl::core::ParameterDefaultTypeInternal, required_), - offsetof(::flyteidl::core::ParameterDefaultTypeInternal, artifact_query_), - offsetof(::flyteidl::core::ParameterDefaultTypeInternal, artifact_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Parameter, behavior_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ParameterMap, parameters_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Variable)}, - { 9, 16, sizeof(::flyteidl::core::VariableMap_VariablesEntry_DoNotUse)}, - { 18, -1, sizeof(::flyteidl::core::VariableMap)}, - { 24, -1, sizeof(::flyteidl::core::TypedInterface)}, - { 31, -1, sizeof(::flyteidl::core::Parameter)}, - { 42, 49, sizeof(::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse)}, - { 51, -1, sizeof(::flyteidl::core::ParameterMap)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Variable_default_instance_), - reinterpret_cast(&::flyteidl::core::_VariableMap_VariablesEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_VariableMap_default_instance_), - reinterpret_cast(&::flyteidl::core::_TypedInterface_default_instance_), - reinterpret_cast(&::flyteidl::core::_Parameter_default_instance_), - reinterpret_cast(&::flyteidl::core::_ParameterMap_ParametersEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_ParameterMap_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2finterface_2eproto, "flyteidl/core/interface.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2finterface_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2finterface_2eproto, 7, file_level_enum_descriptors_flyteidl_2fcore_2finterface_2eproto, file_level_service_descriptors_flyteidl_2fcore_2finterface_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2finterface_2eproto[] = - "\n\035flyteidl/core/interface.proto\022\rflyteid" - "l.core\032\031flyteidl/core/types.proto\032\034flyte" - "idl/core/literals.proto\032\037flyteidl/core/a" - "rtifact_id.proto\"\263\001\n\010Variable\022(\n\004type\030\001 " - "\001(\0132\032.flyteidl.core.LiteralType\022\023\n\013descr" - "iption\030\002 \001(\t\0226\n\023artifact_partial_id\030\003 \001(" - "\0132\031.flyteidl.core.ArtifactID\0220\n\014artifact" - "_tag\030\004 \001(\0132\032.flyteidl.core.ArtifactTag\"\226" - "\001\n\013VariableMap\022<\n\tvariables\030\001 \003(\0132).flyt" - "eidl.core.VariableMap.VariablesEntry\032I\n\016" - "VariablesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001" - "(\0132\027.flyteidl.core.Variable:\0028\001\"i\n\016Typed" - "Interface\022*\n\006inputs\030\001 \001(\0132\032.flyteidl.cor" - "e.VariableMap\022+\n\007outputs\030\002 \001(\0132\032.flyteid" - "l.core.VariableMap\"\346\001\n\tParameter\022$\n\003var\030" - "\001 \001(\0132\027.flyteidl.core.Variable\022)\n\007defaul" - "t\030\002 \001(\0132\026.flyteidl.core.LiteralH\000\022\022\n\010req" - "uired\030\003 \001(\010H\000\0226\n\016artifact_query\030\004 \001(\0132\034." - "flyteidl.core.ArtifactQueryH\000\0220\n\013artifac" - "t_id\030\005 \001(\0132\031.flyteidl.core.ArtifactIDH\000B" - "\n\n\010behavior\"\234\001\n\014ParameterMap\022\?\n\nparamete" - "rs\030\001 \003(\0132+.flyteidl.core.ParameterMap.Pa" - "rametersEntry\032K\n\017ParametersEntry\022\013\n\003key\030" - "\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.flyteidl.core.Par" - "ameter:\0028\001Btype_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::core::_Variable_default_instance_._instance.get_mutable()->artifact_partial_id_ = const_cast< ::flyteidl::core::ArtifactID*>( - ::flyteidl::core::ArtifactID::internal_default_instance()); - ::flyteidl::core::_Variable_default_instance_._instance.get_mutable()->artifact_tag_ = const_cast< ::flyteidl::core::ArtifactTag*>( - ::flyteidl::core::ArtifactTag::internal_default_instance()); -} -class Variable::HasBitSetters { - public: - static const ::flyteidl::core::LiteralType& type(const Variable* msg); - static const ::flyteidl::core::ArtifactID& artifact_partial_id(const Variable* msg); - static const ::flyteidl::core::ArtifactTag& artifact_tag(const Variable* msg); -}; - -const ::flyteidl::core::LiteralType& -Variable::HasBitSetters::type(const Variable* msg) { - return *msg->type_; -} -const ::flyteidl::core::ArtifactID& -Variable::HasBitSetters::artifact_partial_id(const Variable* msg) { - return *msg->artifact_partial_id_; -} -const ::flyteidl::core::ArtifactTag& -Variable::HasBitSetters::artifact_tag(const Variable* msg) { - return *msg->artifact_tag_; -} -void Variable::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -void Variable::clear_artifact_partial_id() { - if (GetArenaNoVirtual() == nullptr && artifact_partial_id_ != nullptr) { - delete artifact_partial_id_; - } - artifact_partial_id_ = nullptr; -} -void Variable::clear_artifact_tag() { - if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { - delete artifact_tag_; - } - artifact_tag_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Variable::kTypeFieldNumber; -const int Variable::kDescriptionFieldNumber; -const int Variable::kArtifactPartialIdFieldNumber; -const int Variable::kArtifactTagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Variable::Variable() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Variable) -} -Variable::Variable(const Variable& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.description().size() > 0) { - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - if (from.has_artifact_partial_id()) { - artifact_partial_id_ = new ::flyteidl::core::ArtifactID(*from.artifact_partial_id_); - } else { - artifact_partial_id_ = nullptr; - } - if (from.has_artifact_tag()) { - artifact_tag_ = new ::flyteidl::core::ArtifactTag(*from.artifact_tag_); - } else { - artifact_tag_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Variable) -} - -void Variable::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); - description_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&type_, 0, static_cast( - reinterpret_cast(&artifact_tag_) - - reinterpret_cast(&type_)) + sizeof(artifact_tag_)); -} - -Variable::~Variable() { - // @@protoc_insertion_point(destructor:flyteidl.core.Variable) - SharedDtor(); -} - -void Variable::SharedDtor() { - description_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete type_; - if (this != internal_default_instance()) delete artifact_partial_id_; - if (this != internal_default_instance()) delete artifact_tag_; -} - -void Variable::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Variable& Variable::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Variable_flyteidl_2fcore_2finterface_2eproto.base); - return *internal_default_instance(); -} - - -void Variable::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Variable) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - if (GetArenaNoVirtual() == nullptr && artifact_partial_id_ != nullptr) { - delete artifact_partial_id_; - } - artifact_partial_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && artifact_tag_ != nullptr) { - delete artifact_tag_; - } - artifact_tag_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Variable::_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.LiteralType type = 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::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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; - } - // string description = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Variable.description"); - object = msg->mutable_description(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->mutable_artifact_partial_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; - } - // .flyteidl.core.ArtifactTag artifact_tag = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactTag::_InternalParse; - object = msg->mutable_artifact_tag(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Variable::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.core.Variable) - 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.LiteralType type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } else { - goto handle_unusual; - } - break; - } - - // string description = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_description())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Variable.description")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_partial_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactTag artifact_tag = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_tag())); - } 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.core.Variable) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Variable) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Variable::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Variable) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralType type = 1; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::type(this), output); - } - - // string description = 2; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Variable.description"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->description(), output); - } - - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - if (this->has_artifact_partial_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::artifact_partial_id(this), output); - } - - // .flyteidl.core.ArtifactTag artifact_tag = 4; - if (this->has_artifact_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::artifact_tag(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Variable) -} - -::google::protobuf::uint8* Variable::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Variable) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralType type = 1; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::type(this), target); - } - - // string description = 2; - if (this->description().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->description().data(), static_cast(this->description().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Variable.description"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->description(), target); - } - - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - if (this->has_artifact_partial_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::artifact_partial_id(this), target); - } - - // .flyteidl.core.ArtifactTag artifact_tag = 4; - if (this->has_artifact_tag()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::artifact_tag(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.core.Variable) - return target; -} - -size_t Variable::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Variable) - 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; - - // string description = 2; - if (this->description().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->description()); - } - - // .flyteidl.core.LiteralType type = 1; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - if (this->has_artifact_partial_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_partial_id_); - } - - // .flyteidl.core.ArtifactTag artifact_tag = 4; - if (this->has_artifact_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_tag_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Variable::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Variable) - GOOGLE_DCHECK_NE(&from, this); - const Variable* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Variable) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Variable) - MergeFrom(*source); - } -} - -void Variable::MergeFrom(const Variable& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Variable) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.description().size() > 0) { - - description_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.description_); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } - if (from.has_artifact_partial_id()) { - mutable_artifact_partial_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_partial_id()); - } - if (from.has_artifact_tag()) { - mutable_artifact_tag()->::flyteidl::core::ArtifactTag::MergeFrom(from.artifact_tag()); - } -} - -void Variable::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Variable) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Variable::CopyFrom(const Variable& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Variable) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Variable::IsInitialized() const { - return true; -} - -void Variable::Swap(Variable* other) { - if (other == this) return; - InternalSwap(other); -} -void Variable::InternalSwap(Variable* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - description_.Swap(&other->description_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); - swap(artifact_partial_id_, other->artifact_partial_id_); - swap(artifact_tag_, other->artifact_tag_); -} - -::google::protobuf::Metadata Variable::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse() {} -VariableMap_VariablesEntry_DoNotUse::VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void VariableMap_VariablesEntry_DoNotUse::MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata VariableMap_VariablesEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[1]; -} -void VariableMap_VariablesEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool VariableMap_VariablesEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - VariableMap_VariablesEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.VariableMap.VariablesEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void VariableMap::InitAsDefaultInstance() { -} -class VariableMap::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int VariableMap::kVariablesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -VariableMap::VariableMap() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.VariableMap) -} -VariableMap::VariableMap(const VariableMap& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - variables_.MergeFrom(from.variables_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.VariableMap) -} - -void VariableMap::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); -} - -VariableMap::~VariableMap() { - // @@protoc_insertion_point(destructor:flyteidl.core.VariableMap) - SharedDtor(); -} - -void VariableMap::SharedDtor() { -} - -void VariableMap::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const VariableMap& VariableMap::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_VariableMap_flyteidl_2fcore_2finterface_2eproto.base); - return *internal_default_instance(); -} - - -void VariableMap::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.VariableMap) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - variables_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* VariableMap::_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) { - // map variables = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->variables_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 VariableMap::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.core.VariableMap) - 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)) { - // map variables = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - VariableMap_VariablesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - VariableMap_VariablesEntry_DoNotUse, - ::std::string, ::flyteidl::core::Variable, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable > > parser(&variables_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.VariableMap.VariablesEntry.key")); - } 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.core.VariableMap) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.VariableMap) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void VariableMap::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.VariableMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map variables = 1; - if (!this->variables().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.VariableMap.VariablesEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->variables().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->variables().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator - it = this->variables().begin(); - it != this->variables().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator - it = this->variables().begin(); - it != this->variables().end(); ++it) { - entry.reset(variables_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.VariableMap) -} - -::google::protobuf::uint8* VariableMap::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.VariableMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map variables = 1; - if (!this->variables().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.VariableMap.VariablesEntry.key"); - } - }; - - if (false && - this->variables().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->variables().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator - it = this->variables().begin(); - it != this->variables().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(variables_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator - it = this->variables().begin(); - it != this->variables().end(); ++it) { - entry.reset(variables_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.VariableMap) - return target; -} - -size_t VariableMap::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.VariableMap) - 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; - - // map variables = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->variables_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >::const_iterator - it = this->variables().begin(); - it != this->variables().end(); ++it) { - entry.reset(variables_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void VariableMap::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.VariableMap) - GOOGLE_DCHECK_NE(&from, this); - const VariableMap* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.VariableMap) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.VariableMap) - MergeFrom(*source); - } -} - -void VariableMap::MergeFrom(const VariableMap& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.VariableMap) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - variables_.MergeFrom(from.variables_); -} - -void VariableMap::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.VariableMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void VariableMap::CopyFrom(const VariableMap& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.VariableMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool VariableMap::IsInitialized() const { - return true; -} - -void VariableMap::Swap(VariableMap* other) { - if (other == this) return; - InternalSwap(other); -} -void VariableMap::InternalSwap(VariableMap* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - variables_.Swap(&other->variables_); -} - -::google::protobuf::Metadata VariableMap::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TypedInterface::InitAsDefaultInstance() { - ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::VariableMap*>( - ::flyteidl::core::VariableMap::internal_default_instance()); - ::flyteidl::core::_TypedInterface_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::VariableMap*>( - ::flyteidl::core::VariableMap::internal_default_instance()); -} -class TypedInterface::HasBitSetters { - public: - static const ::flyteidl::core::VariableMap& inputs(const TypedInterface* msg); - static const ::flyteidl::core::VariableMap& outputs(const TypedInterface* msg); -}; - -const ::flyteidl::core::VariableMap& -TypedInterface::HasBitSetters::inputs(const TypedInterface* msg) { - return *msg->inputs_; -} -const ::flyteidl::core::VariableMap& -TypedInterface::HasBitSetters::outputs(const TypedInterface* msg) { - return *msg->outputs_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TypedInterface::kInputsFieldNumber; -const int TypedInterface::kOutputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TypedInterface::TypedInterface() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TypedInterface) -} -TypedInterface::TypedInterface(const TypedInterface& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::VariableMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_outputs()) { - outputs_ = new ::flyteidl::core::VariableMap(*from.outputs_); - } else { - outputs_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypedInterface) -} - -void TypedInterface::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); - ::memset(&inputs_, 0, static_cast( - reinterpret_cast(&outputs_) - - reinterpret_cast(&inputs_)) + sizeof(outputs_)); -} - -TypedInterface::~TypedInterface() { - // @@protoc_insertion_point(destructor:flyteidl.core.TypedInterface) - SharedDtor(); -} - -void TypedInterface::SharedDtor() { - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete outputs_; -} - -void TypedInterface::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TypedInterface& TypedInterface::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base); - return *internal_default_instance(); -} - - -void TypedInterface::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypedInterface) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TypedInterface::_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.VariableMap inputs = 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::VariableMap::_InternalParse; - object = msg->mutable_inputs(); - 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.core.VariableMap outputs = 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::core::VariableMap::_InternalParse; - object = msg->mutable_outputs(); - 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 TypedInterface::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.core.TypedInterface) - 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.VariableMap inputs = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.VariableMap outputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } 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.core.TypedInterface) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TypedInterface) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TypedInterface::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TypedInterface) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.VariableMap inputs = 1; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::inputs(this), output); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TypedInterface) -} - -::google::protobuf::uint8* TypedInterface::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypedInterface) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.VariableMap inputs = 1; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::inputs(this), target); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(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.core.TypedInterface) - return target; -} - -size_t TypedInterface::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypedInterface) - 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.VariableMap inputs = 1; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.core.VariableMap outputs = 2; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TypedInterface::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypedInterface) - GOOGLE_DCHECK_NE(&from, this); - const TypedInterface* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypedInterface) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypedInterface) - MergeFrom(*source); - } -} - -void TypedInterface::MergeFrom(const TypedInterface& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypedInterface) - 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_inputs()) { - mutable_inputs()->::flyteidl::core::VariableMap::MergeFrom(from.inputs()); - } - if (from.has_outputs()) { - mutable_outputs()->::flyteidl::core::VariableMap::MergeFrom(from.outputs()); - } -} - -void TypedInterface::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypedInterface) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TypedInterface::CopyFrom(const TypedInterface& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypedInterface) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TypedInterface::IsInitialized() const { - return true; -} - -void TypedInterface::Swap(TypedInterface* other) { - if (other == this) return; - InternalSwap(other); -} -void TypedInterface::InternalSwap(TypedInterface* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(inputs_, other->inputs_); - swap(outputs_, other->outputs_); -} - -::google::protobuf::Metadata TypedInterface::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Parameter::InitAsDefaultInstance() { - ::flyteidl::core::_Parameter_default_instance_._instance.get_mutable()->var_ = const_cast< ::flyteidl::core::Variable*>( - ::flyteidl::core::Variable::internal_default_instance()); - ::flyteidl::core::_Parameter_default_instance_.default__ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); - ::flyteidl::core::_Parameter_default_instance_.required_ = false; - ::flyteidl::core::_Parameter_default_instance_.artifact_query_ = const_cast< ::flyteidl::core::ArtifactQuery*>( - ::flyteidl::core::ArtifactQuery::internal_default_instance()); - ::flyteidl::core::_Parameter_default_instance_.artifact_id_ = const_cast< ::flyteidl::core::ArtifactID*>( - ::flyteidl::core::ArtifactID::internal_default_instance()); -} -class Parameter::HasBitSetters { - public: - static const ::flyteidl::core::Variable& var(const Parameter* msg); - static const ::flyteidl::core::Literal& default_(const Parameter* msg); - static const ::flyteidl::core::ArtifactQuery& artifact_query(const Parameter* msg); - static const ::flyteidl::core::ArtifactID& artifact_id(const Parameter* msg); -}; - -const ::flyteidl::core::Variable& -Parameter::HasBitSetters::var(const Parameter* msg) { - return *msg->var_; -} -const ::flyteidl::core::Literal& -Parameter::HasBitSetters::default_(const Parameter* msg) { - return *msg->behavior_.default__; -} -const ::flyteidl::core::ArtifactQuery& -Parameter::HasBitSetters::artifact_query(const Parameter* msg) { - return *msg->behavior_.artifact_query_; -} -const ::flyteidl::core::ArtifactID& -Parameter::HasBitSetters::artifact_id(const Parameter* msg) { - return *msg->behavior_.artifact_id_; -} -void Parameter::set_allocated_default_(::flyteidl::core::Literal* default_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_behavior(); - if (default_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - default_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, default_, submessage_arena); - } - set_has_default_(); - behavior_.default__ = default_; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.default) -} -void Parameter::clear_default_() { - if (has_default_()) { - delete behavior_.default__; - clear_has_behavior(); - } -} -void Parameter::set_allocated_artifact_query(::flyteidl::core::ArtifactQuery* artifact_query) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_behavior(); - if (artifact_query) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_query = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_query, submessage_arena); - } - set_has_artifact_query(); - behavior_.artifact_query_ = artifact_query; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.artifact_query) -} -void Parameter::clear_artifact_query() { - if (has_artifact_query()) { - delete behavior_.artifact_query_; - clear_has_behavior(); - } -} -void Parameter::set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_behavior(); - if (artifact_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_id, submessage_arena); - } - set_has_artifact_id(); - behavior_.artifact_id_ = artifact_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.artifact_id) -} -void Parameter::clear_artifact_id() { - if (has_artifact_id()) { - delete behavior_.artifact_id_; - clear_has_behavior(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Parameter::kVarFieldNumber; -const int Parameter::kDefaultFieldNumber; -const int Parameter::kRequiredFieldNumber; -const int Parameter::kArtifactQueryFieldNumber; -const int Parameter::kArtifactIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Parameter::Parameter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Parameter) -} -Parameter::Parameter(const Parameter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_var()) { - var_ = new ::flyteidl::core::Variable(*from.var_); - } else { - var_ = nullptr; - } - clear_has_behavior(); - switch (from.behavior_case()) { - case kDefault: { - mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); - break; - } - case kRequired: { - set_required(from.required()); - break; - } - case kArtifactQuery: { - mutable_artifact_query()->::flyteidl::core::ArtifactQuery::MergeFrom(from.artifact_query()); - break; - } - case kArtifactId: { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - break; - } - case BEHAVIOR_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Parameter) -} - -void Parameter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); - var_ = nullptr; - clear_has_behavior(); -} - -Parameter::~Parameter() { - // @@protoc_insertion_point(destructor:flyteidl.core.Parameter) - SharedDtor(); -} - -void Parameter::SharedDtor() { - if (this != internal_default_instance()) delete var_; - if (has_behavior()) { - clear_behavior(); - } -} - -void Parameter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Parameter& Parameter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Parameter_flyteidl_2fcore_2finterface_2eproto.base); - return *internal_default_instance(); -} - - -void Parameter::clear_behavior() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Parameter) - switch (behavior_case()) { - case kDefault: { - delete behavior_.default__; - break; - } - case kRequired: { - // No need to clear - break; - } - case kArtifactQuery: { - delete behavior_.artifact_query_; - break; - } - case kArtifactId: { - delete behavior_.artifact_id_; - break; - } - case BEHAVIOR_NOT_SET: { - break; - } - } - _oneof_case_[0] = BEHAVIOR_NOT_SET; -} - - -void Parameter::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Parameter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && var_ != nullptr) { - delete var_; - } - var_ = nullptr; - clear_behavior(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Parameter::_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.Variable var = 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::Variable::_InternalParse; - object = msg->mutable_var(); - 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.core.Literal default = 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::core::Literal::_InternalParse; - object = msg->mutable_default_(); - 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; - } - // bool required = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_required(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.ArtifactQuery artifact_query = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactQuery::_InternalParse; - object = msg->mutable_artifact_query(); - 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.core.ArtifactID artifact_id = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->mutable_artifact_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 Parameter::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.core.Parameter) - 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.Variable var = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_var())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Literal default = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_default_())); - } else { - goto handle_unusual; - } - break; - } - - // bool required = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - clear_behavior(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &behavior_.required_))); - set_has_required(); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactQuery artifact_query = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_query())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArtifactID artifact_id = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_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.core.Parameter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Parameter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Parameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Parameter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Variable var = 1; - if (this->has_var()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::var(this), output); - } - - // .flyteidl.core.Literal default = 2; - if (has_default_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::default_(this), output); - } - - // bool required = 3; - if (has_required()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->required(), output); - } - - // .flyteidl.core.ArtifactQuery artifact_query = 4; - if (has_artifact_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::artifact_query(this), output); - } - - // .flyteidl.core.ArtifactID artifact_id = 5; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::artifact_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.core.Parameter) -} - -::google::protobuf::uint8* Parameter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Parameter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Variable var = 1; - if (this->has_var()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::var(this), target); - } - - // .flyteidl.core.Literal default = 2; - if (has_default_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::default_(this), target); - } - - // bool required = 3; - if (has_required()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->required(), target); - } - - // .flyteidl.core.ArtifactQuery artifact_query = 4; - if (has_artifact_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::artifact_query(this), target); - } - - // .flyteidl.core.ArtifactID artifact_id = 5; - if (has_artifact_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::artifact_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.core.Parameter) - return target; -} - -size_t Parameter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Parameter) - 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.Variable var = 1; - if (this->has_var()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *var_); - } - - switch (behavior_case()) { - // .flyteidl.core.Literal default = 2; - case kDefault: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *behavior_.default__); - break; - } - // bool required = 3; - case kRequired: { - total_size += 1 + 1; - break; - } - // .flyteidl.core.ArtifactQuery artifact_query = 4; - case kArtifactQuery: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *behavior_.artifact_query_); - break; - } - // .flyteidl.core.ArtifactID artifact_id = 5; - case kArtifactId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *behavior_.artifact_id_); - break; - } - case BEHAVIOR_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Parameter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Parameter) - GOOGLE_DCHECK_NE(&from, this); - const Parameter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Parameter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Parameter) - MergeFrom(*source); - } -} - -void Parameter::MergeFrom(const Parameter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Parameter) - 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_var()) { - mutable_var()->::flyteidl::core::Variable::MergeFrom(from.var()); - } - switch (from.behavior_case()) { - case kDefault: { - mutable_default_()->::flyteidl::core::Literal::MergeFrom(from.default_()); - break; - } - case kRequired: { - set_required(from.required()); - break; - } - case kArtifactQuery: { - mutable_artifact_query()->::flyteidl::core::ArtifactQuery::MergeFrom(from.artifact_query()); - break; - } - case kArtifactId: { - mutable_artifact_id()->::flyteidl::core::ArtifactID::MergeFrom(from.artifact_id()); - break; - } - case BEHAVIOR_NOT_SET: { - break; - } - } -} - -void Parameter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Parameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Parameter::CopyFrom(const Parameter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Parameter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Parameter::IsInitialized() const { - return true; -} - -void Parameter::Swap(Parameter* other) { - if (other == this) return; - InternalSwap(other); -} -void Parameter::InternalSwap(Parameter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(var_, other->var_); - swap(behavior_, other->behavior_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Parameter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse() {} -ParameterMap_ParametersEntry_DoNotUse::ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void ParameterMap_ParametersEntry_DoNotUse::MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata ParameterMap_ParametersEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[5]; -} -void ParameterMap_ParametersEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParameterMap_ParametersEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - ParameterMap_ParametersEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ParameterMap.ParametersEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void ParameterMap::InitAsDefaultInstance() { -} -class ParameterMap::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParameterMap::kParametersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParameterMap::ParameterMap() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ParameterMap) -} -ParameterMap::ParameterMap(const ParameterMap& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - parameters_.MergeFrom(from.parameters_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ParameterMap) -} - -void ParameterMap::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); -} - -ParameterMap::~ParameterMap() { - // @@protoc_insertion_point(destructor:flyteidl.core.ParameterMap) - SharedDtor(); -} - -void ParameterMap::SharedDtor() { -} - -void ParameterMap::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParameterMap& ParameterMap::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParameterMap_flyteidl_2fcore_2finterface_2eproto.base); - return *internal_default_instance(); -} - - -void ParameterMap::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ParameterMap) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - parameters_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ParameterMap::_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) { - // map parameters = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->parameters_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 ParameterMap::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.core.ParameterMap) - 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)) { - // map parameters = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - ParameterMap_ParametersEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - ParameterMap_ParametersEntry_DoNotUse, - ::std::string, ::flyteidl::core::Parameter, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter > > parser(¶meters_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ParameterMap.ParametersEntry.key")); - } 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.core.ParameterMap) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ParameterMap) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParameterMap::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ParameterMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map parameters = 1; - if (!this->parameters().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ParameterMap.ParametersEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->parameters().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->parameters().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator - it = this->parameters().begin(); - it != this->parameters().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(parameters_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator - it = this->parameters().begin(); - it != this->parameters().end(); ++it) { - entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ParameterMap) -} - -::google::protobuf::uint8* ParameterMap::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ParameterMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map parameters = 1; - if (!this->parameters().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ParameterMap.ParametersEntry.key"); - } - }; - - if (false && - this->parameters().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->parameters().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator - it = this->parameters().begin(); - it != this->parameters().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(parameters_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator - it = this->parameters().begin(); - it != this->parameters().end(); ++it) { - entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.ParameterMap) - return target; -} - -size_t ParameterMap::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ParameterMap) - 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; - - // map parameters = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->parameters_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >::const_iterator - it = this->parameters().begin(); - it != this->parameters().end(); ++it) { - entry.reset(parameters_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ParameterMap::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ParameterMap) - GOOGLE_DCHECK_NE(&from, this); - const ParameterMap* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ParameterMap) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ParameterMap) - MergeFrom(*source); - } -} - -void ParameterMap::MergeFrom(const ParameterMap& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ParameterMap) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - parameters_.MergeFrom(from.parameters_); -} - -void ParameterMap::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ParameterMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParameterMap::CopyFrom(const ParameterMap& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ParameterMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParameterMap::IsInitialized() const { - return true; -} - -void ParameterMap::Swap(ParameterMap* other) { - if (other == this) return; - InternalSwap(other); -} -void ParameterMap::InternalSwap(ParameterMap* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - parameters_.Swap(&other->parameters_); -} - -::google::protobuf::Metadata ParameterMap::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2finterface_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2finterface_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Variable* Arena::CreateMaybeMessage< ::flyteidl::core::Variable >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Variable >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::VariableMap* Arena::CreateMaybeMessage< ::flyteidl::core::VariableMap >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::VariableMap >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TypedInterface* Arena::CreateMaybeMessage< ::flyteidl::core::TypedInterface >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TypedInterface >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Parameter* Arena::CreateMaybeMessage< ::flyteidl::core::Parameter >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Parameter >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ParameterMap* Arena::CreateMaybeMessage< ::flyteidl::core::ParameterMap >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ParameterMap >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h deleted file mode 100644 index db01d703d8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/interface.pb.h +++ /dev/null @@ -1,1413 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/interface.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "flyteidl/core/types.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/artifact_id.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2finterface_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[7] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2finterface_2eproto(); -namespace flyteidl { -namespace core { -class Parameter; -class ParameterDefaultTypeInternal; -extern ParameterDefaultTypeInternal _Parameter_default_instance_; -class ParameterMap; -class ParameterMapDefaultTypeInternal; -extern ParameterMapDefaultTypeInternal _ParameterMap_default_instance_; -class ParameterMap_ParametersEntry_DoNotUse; -class ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal; -extern ParameterMap_ParametersEntry_DoNotUseDefaultTypeInternal _ParameterMap_ParametersEntry_DoNotUse_default_instance_; -class TypedInterface; -class TypedInterfaceDefaultTypeInternal; -extern TypedInterfaceDefaultTypeInternal _TypedInterface_default_instance_; -class Variable; -class VariableDefaultTypeInternal; -extern VariableDefaultTypeInternal _Variable_default_instance_; -class VariableMap; -class VariableMapDefaultTypeInternal; -extern VariableMapDefaultTypeInternal _VariableMap_default_instance_; -class VariableMap_VariablesEntry_DoNotUse; -class VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal; -extern VariableMap_VariablesEntry_DoNotUseDefaultTypeInternal _VariableMap_VariablesEntry_DoNotUse_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Parameter* Arena::CreateMaybeMessage<::flyteidl::core::Parameter>(Arena*); -template<> ::flyteidl::core::ParameterMap* Arena::CreateMaybeMessage<::flyteidl::core::ParameterMap>(Arena*); -template<> ::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::ParameterMap_ParametersEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::TypedInterface* Arena::CreateMaybeMessage<::flyteidl::core::TypedInterface>(Arena*); -template<> ::flyteidl::core::Variable* Arena::CreateMaybeMessage<::flyteidl::core::Variable>(Arena*); -template<> ::flyteidl::core::VariableMap* Arena::CreateMaybeMessage<::flyteidl::core::VariableMap>(Arena*); -template<> ::flyteidl::core::VariableMap_VariablesEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::VariableMap_VariablesEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class Variable final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Variable) */ { - public: - Variable(); - virtual ~Variable(); - - Variable(const Variable& from); - - inline Variable& operator=(const Variable& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Variable(Variable&& from) noexcept - : Variable() { - *this = ::std::move(from); - } - - inline Variable& operator=(Variable&& 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 Variable& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Variable* internal_default_instance() { - return reinterpret_cast( - &_Variable_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Variable* other); - friend void swap(Variable& a, Variable& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Variable* New() const final { - return CreateMaybeMessage(nullptr); - } - - Variable* 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 Variable& from); - void MergeFrom(const Variable& 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(Variable* 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 ------------------------------------------------------- - - // string description = 2; - void clear_description(); - static const int kDescriptionFieldNumber = 2; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - - // .flyteidl.core.LiteralType type = 1; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 1; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // .flyteidl.core.ArtifactID artifact_partial_id = 3; - bool has_artifact_partial_id() const; - void clear_artifact_partial_id(); - static const int kArtifactPartialIdFieldNumber = 3; - const ::flyteidl::core::ArtifactID& artifact_partial_id() const; - ::flyteidl::core::ArtifactID* release_artifact_partial_id(); - ::flyteidl::core::ArtifactID* mutable_artifact_partial_id(); - void set_allocated_artifact_partial_id(::flyteidl::core::ArtifactID* artifact_partial_id); - - // .flyteidl.core.ArtifactTag artifact_tag = 4; - bool has_artifact_tag() const; - void clear_artifact_tag(); - static const int kArtifactTagFieldNumber = 4; - const ::flyteidl::core::ArtifactTag& artifact_tag() const; - ::flyteidl::core::ArtifactTag* release_artifact_tag(); - ::flyteidl::core::ArtifactTag* mutable_artifact_tag(); - void set_allocated_artifact_tag(::flyteidl::core::ArtifactTag* artifact_tag); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::flyteidl::core::LiteralType* type_; - ::flyteidl::core::ArtifactID* artifact_partial_id_; - ::flyteidl::core::ArtifactTag* artifact_tag_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; -}; -// ------------------------------------------------------------------- - -class VariableMap_VariablesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - VariableMap_VariablesEntry_DoNotUse(); - VariableMap_VariablesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const VariableMap_VariablesEntry_DoNotUse& other); - static const VariableMap_VariablesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_VariableMap_VariablesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class VariableMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.VariableMap) */ { - public: - VariableMap(); - virtual ~VariableMap(); - - VariableMap(const VariableMap& from); - - inline VariableMap& operator=(const VariableMap& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VariableMap(VariableMap&& from) noexcept - : VariableMap() { - *this = ::std::move(from); - } - - inline VariableMap& operator=(VariableMap&& 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 VariableMap& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VariableMap* internal_default_instance() { - return reinterpret_cast( - &_VariableMap_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(VariableMap* other); - friend void swap(VariableMap& a, VariableMap& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VariableMap* New() const final { - return CreateMaybeMessage(nullptr); - } - - VariableMap* 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 VariableMap& from); - void MergeFrom(const VariableMap& 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(VariableMap* 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 ------------------------------------------------------- - - // map variables = 1; - int variables_size() const; - void clear_variables(); - static const int kVariablesFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& - variables() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* - mutable_variables(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - VariableMap_VariablesEntry_DoNotUse, - ::std::string, ::flyteidl::core::Variable, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > variables_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; -}; -// ------------------------------------------------------------------- - -class TypedInterface final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypedInterface) */ { - public: - TypedInterface(); - virtual ~TypedInterface(); - - TypedInterface(const TypedInterface& from); - - inline TypedInterface& operator=(const TypedInterface& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TypedInterface(TypedInterface&& from) noexcept - : TypedInterface() { - *this = ::std::move(from); - } - - inline TypedInterface& operator=(TypedInterface&& 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 TypedInterface& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TypedInterface* internal_default_instance() { - return reinterpret_cast( - &_TypedInterface_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TypedInterface* other); - friend void swap(TypedInterface& a, TypedInterface& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TypedInterface* New() const final { - return CreateMaybeMessage(nullptr); - } - - TypedInterface* 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 TypedInterface& from); - void MergeFrom(const TypedInterface& 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(TypedInterface* 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.VariableMap inputs = 1; - bool has_inputs() const; - void clear_inputs(); - static const int kInputsFieldNumber = 1; - const ::flyteidl::core::VariableMap& inputs() const; - ::flyteidl::core::VariableMap* release_inputs(); - ::flyteidl::core::VariableMap* mutable_inputs(); - void set_allocated_inputs(::flyteidl::core::VariableMap* inputs); - - // .flyteidl.core.VariableMap outputs = 2; - bool has_outputs() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 2; - const ::flyteidl::core::VariableMap& outputs() const; - ::flyteidl::core::VariableMap* release_outputs(); - ::flyteidl::core::VariableMap* mutable_outputs(); - void set_allocated_outputs(::flyteidl::core::VariableMap* outputs); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::VariableMap* inputs_; - ::flyteidl::core::VariableMap* outputs_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; -}; -// ------------------------------------------------------------------- - -class Parameter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Parameter) */ { - public: - Parameter(); - virtual ~Parameter(); - - Parameter(const Parameter& from); - - inline Parameter& operator=(const Parameter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Parameter(Parameter&& from) noexcept - : Parameter() { - *this = ::std::move(from); - } - - inline Parameter& operator=(Parameter&& 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 Parameter& default_instance(); - - enum BehaviorCase { - kDefault = 2, - kRequired = 3, - kArtifactQuery = 4, - kArtifactId = 5, - BEHAVIOR_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Parameter* internal_default_instance() { - return reinterpret_cast( - &_Parameter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(Parameter* other); - friend void swap(Parameter& a, Parameter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Parameter* New() const final { - return CreateMaybeMessage(nullptr); - } - - Parameter* 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 Parameter& from); - void MergeFrom(const Parameter& 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(Parameter* 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.Variable var = 1; - bool has_var() const; - void clear_var(); - static const int kVarFieldNumber = 1; - const ::flyteidl::core::Variable& var() const; - ::flyteidl::core::Variable* release_var(); - ::flyteidl::core::Variable* mutable_var(); - void set_allocated_var(::flyteidl::core::Variable* var); - - // .flyteidl.core.Literal default = 2; - bool has_default_() const; - void clear_default_(); - static const int kDefaultFieldNumber = 2; - const ::flyteidl::core::Literal& default_() const; - ::flyteidl::core::Literal* release_default_(); - ::flyteidl::core::Literal* mutable_default_(); - void set_allocated_default_(::flyteidl::core::Literal* default_); - - // bool required = 3; - private: - bool has_required() const; - public: - void clear_required(); - static const int kRequiredFieldNumber = 3; - bool required() const; - void set_required(bool value); - - // .flyteidl.core.ArtifactQuery artifact_query = 4; - bool has_artifact_query() const; - void clear_artifact_query(); - static const int kArtifactQueryFieldNumber = 4; - const ::flyteidl::core::ArtifactQuery& artifact_query() const; - ::flyteidl::core::ArtifactQuery* release_artifact_query(); - ::flyteidl::core::ArtifactQuery* mutable_artifact_query(); - void set_allocated_artifact_query(::flyteidl::core::ArtifactQuery* artifact_query); - - // .flyteidl.core.ArtifactID artifact_id = 5; - bool has_artifact_id() const; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 5; - const ::flyteidl::core::ArtifactID& artifact_id() const; - ::flyteidl::core::ArtifactID* release_artifact_id(); - ::flyteidl::core::ArtifactID* mutable_artifact_id(); - void set_allocated_artifact_id(::flyteidl::core::ArtifactID* artifact_id); - - void clear_behavior(); - BehaviorCase behavior_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) - private: - class HasBitSetters; - void set_has_default_(); - void set_has_required(); - void set_has_artifact_query(); - void set_has_artifact_id(); - - inline bool has_behavior() const; - inline void clear_has_behavior(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Variable* var_; - union BehaviorUnion { - BehaviorUnion() {} - ::flyteidl::core::Literal* default__; - bool required_; - ::flyteidl::core::ArtifactQuery* artifact_query_; - ::flyteidl::core::ArtifactID* artifact_id_; - } behavior_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; -}; -// ------------------------------------------------------------------- - -class ParameterMap_ParametersEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - ParameterMap_ParametersEntry_DoNotUse(); - ParameterMap_ParametersEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ParameterMap_ParametersEntry_DoNotUse& other); - static const ParameterMap_ParametersEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ParameterMap_ParametersEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ParameterMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ParameterMap) */ { - public: - ParameterMap(); - virtual ~ParameterMap(); - - ParameterMap(const ParameterMap& from); - - inline ParameterMap& operator=(const ParameterMap& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParameterMap(ParameterMap&& from) noexcept - : ParameterMap() { - *this = ::std::move(from); - } - - inline ParameterMap& operator=(ParameterMap&& 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 ParameterMap& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParameterMap* internal_default_instance() { - return reinterpret_cast( - &_ParameterMap_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ParameterMap* other); - friend void swap(ParameterMap& a, ParameterMap& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParameterMap* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParameterMap* 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 ParameterMap& from); - void MergeFrom(const ParameterMap& 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(ParameterMap* 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 ------------------------------------------------------- - - // map parameters = 1; - int parameters_size() const; - void clear_parameters(); - static const int kParametersFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& - parameters() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* - mutable_parameters(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - ParameterMap_ParametersEntry_DoNotUse, - ::std::string, ::flyteidl::core::Parameter, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > parameters_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2finterface_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Variable - -// .flyteidl.core.LiteralType type = 1; -inline bool Variable::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& Variable::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.core.Variable.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* Variable::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.Variable.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* Variable::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.type) - return type_; -} -inline void Variable::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.type) -} - -// string description = 2; -inline void Variable::clear_description() { - description_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Variable::description() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Variable.description) - return description_.GetNoArena(); -} -inline void Variable::set_description(const ::std::string& value) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Variable.description) -} -#if LANG_CXX11 -inline void Variable::set_description(::std::string&& value) { - - description_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Variable.description) -} -#endif -inline void Variable::set_description(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Variable.description) -} -inline void Variable::set_description(const char* value, size_t size) { - - description_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Variable.description) -} -inline ::std::string* Variable::mutable_description() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.description) - return description_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Variable::release_description() { - // @@protoc_insertion_point(field_release:flyteidl.core.Variable.description) - - return description_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Variable::set_allocated_description(::std::string* description) { - if (description != nullptr) { - - } else { - - } - description_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.description) -} - -// .flyteidl.core.ArtifactID artifact_partial_id = 3; -inline bool Variable::has_artifact_partial_id() const { - return this != internal_default_instance() && artifact_partial_id_ != nullptr; -} -inline const ::flyteidl::core::ArtifactID& Variable::artifact_partial_id() const { - const ::flyteidl::core::ArtifactID* p = artifact_partial_id_; - // @@protoc_insertion_point(field_get:flyteidl.core.Variable.artifact_partial_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactID_default_instance_); -} -inline ::flyteidl::core::ArtifactID* Variable::release_artifact_partial_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Variable.artifact_partial_id) - - ::flyteidl::core::ArtifactID* temp = artifact_partial_id_; - artifact_partial_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactID* Variable::mutable_artifact_partial_id() { - - if (artifact_partial_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactID>(GetArenaNoVirtual()); - artifact_partial_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.artifact_partial_id) - return artifact_partial_id_; -} -inline void Variable::set_allocated_artifact_partial_id(::flyteidl::core::ArtifactID* artifact_partial_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_partial_id_); - } - if (artifact_partial_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_partial_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_partial_id, submessage_arena); - } - - } else { - - } - artifact_partial_id_ = artifact_partial_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.artifact_partial_id) -} - -// .flyteidl.core.ArtifactTag artifact_tag = 4; -inline bool Variable::has_artifact_tag() const { - return this != internal_default_instance() && artifact_tag_ != nullptr; -} -inline const ::flyteidl::core::ArtifactTag& Variable::artifact_tag() const { - const ::flyteidl::core::ArtifactTag* p = artifact_tag_; - // @@protoc_insertion_point(field_get:flyteidl.core.Variable.artifact_tag) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ArtifactTag_default_instance_); -} -inline ::flyteidl::core::ArtifactTag* Variable::release_artifact_tag() { - // @@protoc_insertion_point(field_release:flyteidl.core.Variable.artifact_tag) - - ::flyteidl::core::ArtifactTag* temp = artifact_tag_; - artifact_tag_ = nullptr; - return temp; -} -inline ::flyteidl::core::ArtifactTag* Variable::mutable_artifact_tag() { - - if (artifact_tag_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ArtifactTag>(GetArenaNoVirtual()); - artifact_tag_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Variable.artifact_tag) - return artifact_tag_; -} -inline void Variable::set_allocated_artifact_tag(::flyteidl::core::ArtifactTag* artifact_tag) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(artifact_tag_); - } - if (artifact_tag) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_tag = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_tag, submessage_arena); - } - - } else { - - } - artifact_tag_ = artifact_tag; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Variable.artifact_tag) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// VariableMap - -// map variables = 1; -inline int VariableMap::variables_size() const { - return variables_.size(); -} -inline void VariableMap::clear_variables() { - variables_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >& -VariableMap::variables() const { - // @@protoc_insertion_point(field_map:flyteidl.core.VariableMap.variables) - return variables_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Variable >* -VariableMap::mutable_variables() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.VariableMap.variables) - return variables_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// TypedInterface - -// .flyteidl.core.VariableMap inputs = 1; -inline bool TypedInterface::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline void TypedInterface::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -inline const ::flyteidl::core::VariableMap& TypedInterface::inputs() const { - const ::flyteidl::core::VariableMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_VariableMap_default_instance_); -} -inline ::flyteidl::core::VariableMap* TypedInterface::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.inputs) - - ::flyteidl::core::VariableMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::VariableMap* TypedInterface::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.inputs) - return inputs_; -} -inline void TypedInterface::set_allocated_inputs(::flyteidl::core::VariableMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete inputs_; - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypedInterface.inputs) -} - -// .flyteidl.core.VariableMap outputs = 2; -inline bool TypedInterface::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline void TypedInterface::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -inline const ::flyteidl::core::VariableMap& TypedInterface::outputs() const { - const ::flyteidl::core::VariableMap* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.core.TypedInterface.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_VariableMap_default_instance_); -} -inline ::flyteidl::core::VariableMap* TypedInterface::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.core.TypedInterface.outputs) - - ::flyteidl::core::VariableMap* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::VariableMap* TypedInterface::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::VariableMap>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TypedInterface.outputs) - return outputs_; -} -inline void TypedInterface::set_allocated_outputs(::flyteidl::core::VariableMap* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete outputs_; - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypedInterface.outputs) -} - -// ------------------------------------------------------------------- - -// Parameter - -// .flyteidl.core.Variable var = 1; -inline bool Parameter::has_var() const { - return this != internal_default_instance() && var_ != nullptr; -} -inline void Parameter::clear_var() { - if (GetArenaNoVirtual() == nullptr && var_ != nullptr) { - delete var_; - } - var_ = nullptr; -} -inline const ::flyteidl::core::Variable& Parameter::var() const { - const ::flyteidl::core::Variable* p = var_; - // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.var) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Variable_default_instance_); -} -inline ::flyteidl::core::Variable* Parameter::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.var) - - ::flyteidl::core::Variable* temp = var_; - var_ = nullptr; - return temp; -} -inline ::flyteidl::core::Variable* Parameter::mutable_var() { - - if (var_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Variable>(GetArenaNoVirtual()); - var_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.var) - return var_; -} -inline void Parameter::set_allocated_var(::flyteidl::core::Variable* var) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete var_; - } - if (var) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - var = ::google::protobuf::internal::GetOwnedMessage( - message_arena, var, submessage_arena); - } - - } else { - - } - var_ = var; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Parameter.var) -} - -// .flyteidl.core.Literal default = 2; -inline bool Parameter::has_default_() const { - return behavior_case() == kDefault; -} -inline void Parameter::set_has_default_() { - _oneof_case_[0] = kDefault; -} -inline ::flyteidl::core::Literal* Parameter::release_default_() { - // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.default) - if (has_default_()) { - clear_has_behavior(); - ::flyteidl::core::Literal* temp = behavior_.default__; - behavior_.default__ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Literal& Parameter::default_() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.default) - return has_default_() - ? *behavior_.default__ - : *reinterpret_cast< ::flyteidl::core::Literal*>(&::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* Parameter::mutable_default_() { - if (!has_default_()) { - clear_behavior(); - set_has_default_(); - behavior_.default__ = CreateMaybeMessage< ::flyteidl::core::Literal >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.default) - return behavior_.default__; -} - -// bool required = 3; -inline bool Parameter::has_required() const { - return behavior_case() == kRequired; -} -inline void Parameter::set_has_required() { - _oneof_case_[0] = kRequired; -} -inline void Parameter::clear_required() { - if (has_required()) { - behavior_.required_ = false; - clear_has_behavior(); - } -} -inline bool Parameter::required() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.required) - if (has_required()) { - return behavior_.required_; - } - return false; -} -inline void Parameter::set_required(bool value) { - if (!has_required()) { - clear_behavior(); - set_has_required(); - } - behavior_.required_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Parameter.required) -} - -// .flyteidl.core.ArtifactQuery artifact_query = 4; -inline bool Parameter::has_artifact_query() const { - return behavior_case() == kArtifactQuery; -} -inline void Parameter::set_has_artifact_query() { - _oneof_case_[0] = kArtifactQuery; -} -inline ::flyteidl::core::ArtifactQuery* Parameter::release_artifact_query() { - // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.artifact_query) - if (has_artifact_query()) { - clear_has_behavior(); - ::flyteidl::core::ArtifactQuery* temp = behavior_.artifact_query_; - behavior_.artifact_query_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactQuery& Parameter::artifact_query() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.artifact_query) - return has_artifact_query() - ? *behavior_.artifact_query_ - : *reinterpret_cast< ::flyteidl::core::ArtifactQuery*>(&::flyteidl::core::_ArtifactQuery_default_instance_); -} -inline ::flyteidl::core::ArtifactQuery* Parameter::mutable_artifact_query() { - if (!has_artifact_query()) { - clear_behavior(); - set_has_artifact_query(); - behavior_.artifact_query_ = CreateMaybeMessage< ::flyteidl::core::ArtifactQuery >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.artifact_query) - return behavior_.artifact_query_; -} - -// .flyteidl.core.ArtifactID artifact_id = 5; -inline bool Parameter::has_artifact_id() const { - return behavior_case() == kArtifactId; -} -inline void Parameter::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline ::flyteidl::core::ArtifactID* Parameter::release_artifact_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Parameter.artifact_id) - if (has_artifact_id()) { - clear_has_behavior(); - ::flyteidl::core::ArtifactID* temp = behavior_.artifact_id_; - behavior_.artifact_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArtifactID& Parameter::artifact_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Parameter.artifact_id) - return has_artifact_id() - ? *behavior_.artifact_id_ - : *reinterpret_cast< ::flyteidl::core::ArtifactID*>(&::flyteidl::core::_ArtifactID_default_instance_); -} -inline ::flyteidl::core::ArtifactID* Parameter::mutable_artifact_id() { - if (!has_artifact_id()) { - clear_behavior(); - set_has_artifact_id(); - behavior_.artifact_id_ = CreateMaybeMessage< ::flyteidl::core::ArtifactID >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Parameter.artifact_id) - return behavior_.artifact_id_; -} - -inline bool Parameter::has_behavior() const { - return behavior_case() != BEHAVIOR_NOT_SET; -} -inline void Parameter::clear_has_behavior() { - _oneof_case_[0] = BEHAVIOR_NOT_SET; -} -inline Parameter::BehaviorCase Parameter::behavior_case() const { - return Parameter::BehaviorCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ParameterMap - -// map parameters = 1; -inline int ParameterMap::parameters_size() const { - return parameters_.size(); -} -inline void ParameterMap::clear_parameters() { - parameters_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >& -ParameterMap::parameters() const { - // @@protoc_insertion_point(field_map:flyteidl.core.ParameterMap.parameters) - return parameters_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Parameter >* -ParameterMap::mutable_parameters() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.ParameterMap.parameters) - return parameters_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2finterface_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc deleted file mode 100644 index 96d50e5323..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/literals.proto - -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/literals.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h deleted file mode 100644 index 0f2956748e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/literals.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/literals.proto -#ifndef GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED - -#include "flyteidl/core/literals.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fliterals_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc deleted file mode 100644 index c6ccc044a3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.cc +++ /dev/null @@ -1,9163 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/literals.proto - -#include "flyteidl/core/literals.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Literal_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Void_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace core { -class PrimitiveDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::int64 integer_; - double float_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - bool boolean_; - const ::google::protobuf::Timestamp* datetime_; - const ::google::protobuf::Duration* duration_; -} _Primitive_default_instance_; -class VoidDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Void_default_instance_; -class BlobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Blob_default_instance_; -class BlobMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BlobMetadata_default_instance_; -class BinaryDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Binary_default_instance_; -class SchemaDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Schema_default_instance_; -class UnionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Union_default_instance_; -class StructuredDatasetMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StructuredDatasetMetadata_default_instance_; -class StructuredDatasetDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StructuredDataset_default_instance_; -class ScalarDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Primitive* primitive_; - const ::flyteidl::core::Blob* blob_; - const ::flyteidl::core::Binary* binary_; - const ::flyteidl::core::Schema* schema_; - const ::flyteidl::core::Void* none_type_; - const ::flyteidl::core::Error* error_; - const ::google::protobuf::Struct* generic_; - const ::flyteidl::core::StructuredDataset* structured_dataset_; - const ::flyteidl::core::Union* union__; -} _Scalar_default_instance_; -class Literal_MetadataEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Literal_MetadataEntry_DoNotUse_default_instance_; -class LiteralDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Scalar* scalar_; - const ::flyteidl::core::LiteralCollection* collection_; - const ::flyteidl::core::LiteralMap* map_; -} _Literal_default_instance_; -class LiteralCollectionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LiteralCollection_default_instance_; -class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; -class LiteralMapDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _LiteralMap_default_instance_; -class BindingDataCollectionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BindingDataCollection_default_instance_; -class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; -class BindingDataMapDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BindingDataMap_default_instance_; -class UnionInfoDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UnionInfo_default_instance_; -class BindingDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Scalar* scalar_; - const ::flyteidl::core::BindingDataCollection* collection_; - const ::flyteidl::core::OutputReference* promise_; - const ::flyteidl::core::BindingDataMap* map_; -} _BindingData_default_instance_; -class BindingDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Binding_default_instance_; -class KeyValuePairDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _KeyValuePair_default_instance_; -class RetryStrategyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RetryStrategy_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsPrimitive_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Primitive_default_instance_; - new (ptr) ::flyteidl::core::Primitive(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Primitive::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPrimitive_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsVoid_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Void_default_instance_; - new (ptr) ::flyteidl::core::Void(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Void::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Void_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsVoid_flyteidl_2fcore_2fliterals_2eproto}, {}}; - -static void InitDefaultsBlob_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Blob_default_instance_; - new (ptr) ::flyteidl::core::Blob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Blob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlob_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsBlobMetadata_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_BlobMetadata_default_instance_; - new (ptr) ::flyteidl::core::BlobMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::BlobMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBlobMetadata_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsBinary_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Binary_default_instance_; - new (ptr) ::flyteidl::core::Binary(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Binary::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBinary_flyteidl_2fcore_2fliterals_2eproto}, {}}; - -static void InitDefaultsSchema_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Schema_default_instance_; - new (ptr) ::flyteidl::core::Schema(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Schema::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSchema_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsStructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_StructuredDatasetMetadata_default_instance_; - new (ptr) ::flyteidl::core::StructuredDatasetMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::StructuredDatasetMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsStructuredDataset_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_StructuredDataset_default_instance_; - new (ptr) ::flyteidl::core::StructuredDataset(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::StructuredDataset::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStructuredDataset_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsLiteral_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Literal_MetadataEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::Literal_MetadataEntry_DoNotUse(); - } - ::flyteidl::core::Literal_MetadataEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Literal_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsLiteral_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto}, {}}; - -static void InitDefaultsLiteral_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Union_default_instance_; - new (ptr) ::flyteidl::core::Union(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_Scalar_default_instance_; - new (ptr) ::flyteidl::core::Scalar(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_Literal_default_instance_; - new (ptr) ::flyteidl::core::Literal(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_LiteralCollection_default_instance_; - new (ptr) ::flyteidl::core::LiteralCollection(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse(); - } - { - void* ptr = &::flyteidl::core::_LiteralMap_default_instance_; - new (ptr) ::flyteidl::core::LiteralMap(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Union::InitAsDefaultInstance(); - ::flyteidl::core::Scalar::InitAsDefaultInstance(); - ::flyteidl::core::Literal::InitAsDefaultInstance(); - ::flyteidl::core::LiteralCollection::InitAsDefaultInstance(); - ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse::InitAsDefaultInstance(); - ::flyteidl::core::LiteralMap::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 10, InitDefaultsLiteral_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_Literal_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsUnionInfo_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_UnionInfo_default_instance_; - new (ptr) ::flyteidl::core::UnionInfo(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::UnionInfo::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUnionInfo_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsBindingData_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_BindingDataCollection_default_instance_; - new (ptr) ::flyteidl::core::BindingDataCollection(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse(); - } - { - void* ptr = &::flyteidl::core::_BindingDataMap_default_instance_; - new (ptr) ::flyteidl::core::BindingDataMap(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_BindingData_default_instance_; - new (ptr) ::flyteidl::core::BindingData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::BindingDataCollection::InitAsDefaultInstance(); - ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse::InitAsDefaultInstance(); - ::flyteidl::core::BindingDataMap::InitAsDefaultInstance(); - ::flyteidl::core::BindingData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsBindingData_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsBinding_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Binding_default_instance_; - new (ptr) ::flyteidl::core::Binding(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Binding::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsBinding_flyteidl_2fcore_2fliterals_2eproto}, { - &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsKeyValuePair_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_KeyValuePair_default_instance_; - new (ptr) ::flyteidl::core::KeyValuePair(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::KeyValuePair::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyValuePair_flyteidl_2fcore_2fliterals_2eproto}, {}}; - -static void InitDefaultsRetryStrategy_flyteidl_2fcore_2fliterals_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_RetryStrategy_default_instance_; - new (ptr) ::flyteidl::core::RetryStrategy(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::RetryStrategy::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRetryStrategy_flyteidl_2fcore_2fliterals_2eproto}, {}}; - -void InitDefaults_flyteidl_2fcore_2fliterals_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Literal_MetadataEntry_DoNotUse_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[23]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fliterals_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fliterals_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fliterals_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, integer_), - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, float_value_), - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, string_value_), - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, boolean_), - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, datetime_), - offsetof(::flyteidl::core::PrimitiveDefaultTypeInternal, duration_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Primitive, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Void, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Blob, uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobMetadata, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binary, tag_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Schema, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Union, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetMetadata, structured_dataset_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDataset, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, primitive_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, blob_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, binary_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, schema_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, none_type_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, error_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, generic_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, structured_dataset_), - offsetof(::flyteidl::core::ScalarDefaultTypeInternal, union__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Scalar, value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal_MetadataEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal_MetadataEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal_MetadataEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal_MetadataEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::LiteralDefaultTypeInternal, scalar_), - offsetof(::flyteidl::core::LiteralDefaultTypeInternal, collection_), - offsetof(::flyteidl::core::LiteralDefaultTypeInternal, map_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, hash_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Literal, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralCollection, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralCollection, literals_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralMap, literals_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataCollection, bindings_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingDataMap, bindings_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionInfo, targettype_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, scalar_), - offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, collection_), - offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, promise_), - offsetof(::flyteidl::core::BindingDataDefaultTypeInternal, map_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, union__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BindingData, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, var_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Binding, binding_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::KeyValuePair, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RetryStrategy, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RetryStrategy, retries_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Primitive)}, - { 12, -1, sizeof(::flyteidl::core::Void)}, - { 17, -1, sizeof(::flyteidl::core::Blob)}, - { 24, -1, sizeof(::flyteidl::core::BlobMetadata)}, - { 30, -1, sizeof(::flyteidl::core::Binary)}, - { 37, -1, sizeof(::flyteidl::core::Schema)}, - { 44, -1, sizeof(::flyteidl::core::Union)}, - { 51, -1, sizeof(::flyteidl::core::StructuredDatasetMetadata)}, - { 57, -1, sizeof(::flyteidl::core::StructuredDataset)}, - { 64, -1, sizeof(::flyteidl::core::Scalar)}, - { 79, 86, sizeof(::flyteidl::core::Literal_MetadataEntry_DoNotUse)}, - { 88, -1, sizeof(::flyteidl::core::Literal)}, - { 99, -1, sizeof(::flyteidl::core::LiteralCollection)}, - { 105, 112, sizeof(::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse)}, - { 114, -1, sizeof(::flyteidl::core::LiteralMap)}, - { 120, -1, sizeof(::flyteidl::core::BindingDataCollection)}, - { 126, 133, sizeof(::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse)}, - { 135, -1, sizeof(::flyteidl::core::BindingDataMap)}, - { 141, -1, sizeof(::flyteidl::core::UnionInfo)}, - { 147, -1, sizeof(::flyteidl::core::BindingData)}, - { 158, -1, sizeof(::flyteidl::core::Binding)}, - { 165, -1, sizeof(::flyteidl::core::KeyValuePair)}, - { 172, -1, sizeof(::flyteidl::core::RetryStrategy)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Primitive_default_instance_), - reinterpret_cast(&::flyteidl::core::_Void_default_instance_), - reinterpret_cast(&::flyteidl::core::_Blob_default_instance_), - reinterpret_cast(&::flyteidl::core::_BlobMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_Binary_default_instance_), - reinterpret_cast(&::flyteidl::core::_Schema_default_instance_), - reinterpret_cast(&::flyteidl::core::_Union_default_instance_), - reinterpret_cast(&::flyteidl::core::_StructuredDatasetMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_StructuredDataset_default_instance_), - reinterpret_cast(&::flyteidl::core::_Scalar_default_instance_), - reinterpret_cast(&::flyteidl::core::_Literal_MetadataEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_Literal_default_instance_), - reinterpret_cast(&::flyteidl::core::_LiteralCollection_default_instance_), - reinterpret_cast(&::flyteidl::core::_LiteralMap_LiteralsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_LiteralMap_default_instance_), - reinterpret_cast(&::flyteidl::core::_BindingDataCollection_default_instance_), - reinterpret_cast(&::flyteidl::core::_BindingDataMap_BindingsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_BindingDataMap_default_instance_), - reinterpret_cast(&::flyteidl::core::_UnionInfo_default_instance_), - reinterpret_cast(&::flyteidl::core::_BindingData_default_instance_), - reinterpret_cast(&::flyteidl::core::_Binding_default_instance_), - reinterpret_cast(&::flyteidl::core::_KeyValuePair_default_instance_), - reinterpret_cast(&::flyteidl::core::_RetryStrategy_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, "flyteidl/core/literals.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fliterals_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fliterals_2eproto, 23, file_level_enum_descriptors_flyteidl_2fcore_2fliterals_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fliterals_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fliterals_2eproto[] = - "\n\034flyteidl/core/literals.proto\022\rflyteidl" - ".core\032\037google/protobuf/timestamp.proto\032\036" - "google/protobuf/duration.proto\032\034google/p" - "rotobuf/struct.proto\032\031flyteidl/core/type" - "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" - "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" - "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" - " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" - "ration\030\006 \001(\0132\031.google.protobuf.DurationH" - "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" - " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" - "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" - "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" - "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" - "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" - "ype\"X\n\005Union\022%\n\005value\030\001 \001(\0132\026.flyteidl.c" - "ore.Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.cor" - "e.LiteralType\"b\n\031StructuredDatasetMetada" - "ta\022E\n\027structured_dataset_type\030\001 \001(\0132$.fl" - "yteidl.core.StructuredDatasetType\"\\\n\021Str" - "ucturedDataset\022\013\n\003uri\030\001 \001(\t\022:\n\010metadata\030" - "\002 \001(\0132(.flyteidl.core.StructuredDatasetM" - "etadata\"\233\003\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030." - "flyteidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132" - "\023.flyteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025" - ".flyteidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132" - "\025.flyteidl.core.SchemaH\000\022(\n\tnone_type\030\005 " - "\001(\0132\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(" - "\0132\024.flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001" - "(\0132\027.google.protobuf.StructH\000\022>\n\022structu" - "red_dataset\030\010 \001(\0132 .flyteidl.core.Struct" - "uredDatasetH\000\022%\n\005union\030\t \001(\0132\024.flyteidl." - "core.UnionH\000B\007\n\005value\"\224\002\n\007Literal\022\'\n\006sca" - "lar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\0226\n\nco" - "llection\030\002 \001(\0132 .flyteidl.core.LiteralCo" - "llectionH\000\022(\n\003map\030\003 \001(\0132\031.flyteidl.core." - "LiteralMapH\000\022\014\n\004hash\030\004 \001(\t\0226\n\010metadata\030\005" - " \003(\0132$.flyteidl.core.Literal.MetadataEnt" - "ry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" - "e\030\002 \001(\t:\0028\001B\007\n\005value\"=\n\021LiteralCollectio" - "n\022(\n\010literals\030\001 \003(\0132\026.flyteidl.core.Lite" - "ral\"\220\001\n\nLiteralMap\0229\n\010literals\030\001 \003(\0132\'.f" - "lyteidl.core.LiteralMap.LiteralsEntry\032G\n" - "\rLiteralsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" - "(\0132\026.flyteidl.core.Literal:\0028\001\"E\n\025Bindin" - "gDataCollection\022,\n\010bindings\030\001 \003(\0132\032.flyt" - "eidl.core.BindingData\"\234\001\n\016BindingDataMap" - "\022=\n\010bindings\030\001 \003(\0132+.flyteidl.core.Bindi" - "ngDataMap.BindingsEntry\032K\n\rBindingsEntry" - "\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.flyteidl." - "core.BindingData:\0028\001\";\n\tUnionInfo\022.\n\ntar" - "getType\030\001 \001(\0132\032.flyteidl.core.LiteralTyp" - "e\"\205\002\n\013BindingData\022\'\n\006scalar\030\001 \001(\0132\025.flyt" - "eidl.core.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$" - ".flyteidl.core.BindingDataCollectionH\000\0221" - "\n\007promise\030\003 \001(\0132\036.flyteidl.core.OutputRe" - "ferenceH\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.B" - "indingDataMapH\000\022\'\n\005union\030\005 \001(\0132\030.flyteid" - "l.core.UnionInfoB\007\n\005value\"C\n\007Binding\022\013\n\003" - "var\030\001 \001(\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.co" - "re.BindingData\"*\n\014KeyValuePair\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007r" - "etries\030\005 \001(\rB( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::core::_Primitive_default_instance_.duration_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class Primitive::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& datetime(const Primitive* msg); - static const ::google::protobuf::Duration& duration(const Primitive* msg); -}; - -const ::google::protobuf::Timestamp& -Primitive::HasBitSetters::datetime(const Primitive* msg) { - return *msg->value_.datetime_; -} -const ::google::protobuf::Duration& -Primitive::HasBitSetters::duration(const Primitive* msg) { - return *msg->value_.duration_; -} -void Primitive::set_allocated_datetime(::google::protobuf::Timestamp* datetime) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (datetime) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(datetime)->GetArena(); - if (message_arena != submessage_arena) { - datetime = ::google::protobuf::internal::GetOwnedMessage( - message_arena, datetime, submessage_arena); - } - set_has_datetime(); - value_.datetime_ = datetime; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.datetime) -} -void Primitive::clear_datetime() { - if (has_datetime()) { - delete value_.datetime_; - clear_has_value(); - } -} -void Primitive::set_allocated_duration(::google::protobuf::Duration* duration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (duration) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); - if (message_arena != submessage_arena) { - duration = ::google::protobuf::internal::GetOwnedMessage( - message_arena, duration, submessage_arena); - } - set_has_duration(); - value_.duration_ = duration; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.duration) -} -void Primitive::clear_duration() { - if (has_duration()) { - delete value_.duration_; - clear_has_value(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Primitive::kIntegerFieldNumber; -const int Primitive::kFloatValueFieldNumber; -const int Primitive::kStringValueFieldNumber; -const int Primitive::kBooleanFieldNumber; -const int Primitive::kDatetimeFieldNumber; -const int Primitive::kDurationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Primitive::Primitive() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Primitive) -} -Primitive::Primitive(const Primitive& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kInteger: { - set_integer(from.integer()); - break; - } - case kFloatValue: { - set_float_value(from.float_value()); - break; - } - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kBoolean: { - set_boolean(from.boolean()); - break; - } - case kDatetime: { - mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); - break; - } - case kDuration: { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Primitive) -} - -void Primitive::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); - clear_has_value(); -} - -Primitive::~Primitive() { - // @@protoc_insertion_point(destructor:flyteidl.core.Primitive) - SharedDtor(); -} - -void Primitive::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void Primitive::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Primitive& Primitive::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Primitive_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Primitive::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Primitive) - switch (value_case()) { - case kInteger: { - // No need to clear - break; - } - case kFloatValue: { - // No need to clear - break; - } - case kStringValue: { - value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kBoolean: { - // No need to clear - break; - } - case kDatetime: { - delete value_.datetime_; - break; - } - case kDuration: { - delete value_.duration_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void Primitive::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Primitive) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Primitive::_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) { - // int64 integer = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_integer(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // double float_value = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 17) goto handle_unusual; - msg->set_float_value(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(double); - break; - } - // string string_value = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Primitive.string_value"); - object = msg->mutable_string_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool boolean = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_boolean(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp datetime = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_datetime(); - 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; - } - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_duration(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Primitive::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.core.Primitive) - 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)) { - // int64 integer = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &value_.integer_))); - set_has_integer(); - } else { - goto handle_unusual; - } - break; - } - - // double float_value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (17 & 0xFF)) { - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( - input, &value_.float_value_))); - set_has_float_value(); - } else { - goto handle_unusual; - } - break; - } - - // string string_value = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_string_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Primitive.string_value")); - } else { - goto handle_unusual; - } - break; - } - - // bool boolean = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &value_.boolean_))); - set_has_boolean(); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp datetime = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_datetime())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration duration = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_duration())); - } 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.core.Primitive) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Primitive) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Primitive::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Primitive) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 integer = 1; - if (has_integer()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->integer(), output); - } - - // double float_value = 2; - if (has_float_value()) { - ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->float_value(), output); - } - - // string string_value = 3; - if (has_string_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Primitive.string_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->string_value(), output); - } - - // bool boolean = 4; - if (has_boolean()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->boolean(), output); - } - - // .google.protobuf.Timestamp datetime = 5; - if (has_datetime()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::datetime(this), output); - } - - // .google.protobuf.Duration duration = 6; - if (has_duration()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::duration(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Primitive) -} - -::google::protobuf::uint8* Primitive::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Primitive) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 integer = 1; - if (has_integer()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->integer(), target); - } - - // double float_value = 2; - if (has_float_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->float_value(), target); - } - - // string string_value = 3; - if (has_string_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Primitive.string_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->string_value(), target); - } - - // bool boolean = 4; - if (has_boolean()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->boolean(), target); - } - - // .google.protobuf.Timestamp datetime = 5; - if (has_datetime()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::datetime(this), target); - } - - // .google.protobuf.Duration duration = 6; - if (has_duration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::duration(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.core.Primitive) - return target; -} - -size_t Primitive::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Primitive) - 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 (value_case()) { - // int64 integer = 1; - case kInteger: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->integer()); - break; - } - // double float_value = 2; - case kFloatValue: { - total_size += 1 + 8; - break; - } - // string string_value = 3; - case kStringValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->string_value()); - break; - } - // bool boolean = 4; - case kBoolean: { - total_size += 1 + 1; - break; - } - // .google.protobuf.Timestamp datetime = 5; - case kDatetime: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.datetime_); - break; - } - // .google.protobuf.Duration duration = 6; - case kDuration: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.duration_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Primitive::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Primitive) - GOOGLE_DCHECK_NE(&from, this); - const Primitive* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Primitive) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Primitive) - MergeFrom(*source); - } -} - -void Primitive::MergeFrom(const Primitive& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Primitive) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kInteger: { - set_integer(from.integer()); - break; - } - case kFloatValue: { - set_float_value(from.float_value()); - break; - } - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kBoolean: { - set_boolean(from.boolean()); - break; - } - case kDatetime: { - mutable_datetime()->::google::protobuf::Timestamp::MergeFrom(from.datetime()); - break; - } - case kDuration: { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void Primitive::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Primitive) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Primitive::CopyFrom(const Primitive& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Primitive) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Primitive::IsInitialized() const { - return true; -} - -void Primitive::Swap(Primitive* other) { - if (other == this) return; - InternalSwap(other); -} -void Primitive::InternalSwap(Primitive* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Primitive::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Void::InitAsDefaultInstance() { -} -class Void::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Void::Void() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Void) -} -Void::Void(const Void& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Void) -} - -void Void::SharedCtor() { -} - -Void::~Void() { - // @@protoc_insertion_point(destructor:flyteidl.core.Void) - SharedDtor(); -} - -void Void::SharedDtor() { -} - -void Void::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Void& Void::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Void_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Void::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Void) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Void::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Void::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.core.Void) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.core.Void) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Void) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Void::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Void) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Void) -} - -::google::protobuf::uint8* Void::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Void) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.core.Void) - return target; -} - -size_t Void::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Void) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Void::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Void) - GOOGLE_DCHECK_NE(&from, this); - const Void* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Void) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Void) - MergeFrom(*source); - } -} - -void Void::MergeFrom(const Void& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Void) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void Void::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Void) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Void::CopyFrom(const Void& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Void) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Void::IsInitialized() const { - return true; -} - -void Void::Swap(Void* other) { - if (other == this) return; - InternalSwap(other); -} -void Void::InternalSwap(Void* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata Void::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Blob::InitAsDefaultInstance() { - ::flyteidl::core::_Blob_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::BlobMetadata*>( - ::flyteidl::core::BlobMetadata::internal_default_instance()); -} -class Blob::HasBitSetters { - public: - static const ::flyteidl::core::BlobMetadata& metadata(const Blob* msg); -}; - -const ::flyteidl::core::BlobMetadata& -Blob::HasBitSetters::metadata(const Blob* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Blob::kMetadataFieldNumber; -const int Blob::kUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Blob::Blob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Blob) -} -Blob::Blob(const Blob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.uri().size() > 0) { - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::BlobMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Blob) -} - -void Blob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_ = nullptr; -} - -Blob::~Blob() { - // @@protoc_insertion_point(destructor:flyteidl.core.Blob) - SharedDtor(); -} - -void Blob::SharedDtor() { - uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete metadata_; -} - -void Blob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Blob& Blob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Blob_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Blob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Blob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Blob::_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.BlobMetadata metadata = 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::BlobMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // string uri = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Blob.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Blob::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.core.Blob) - 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.BlobMetadata metadata = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // string uri = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Blob.uri")); - } 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.core.Blob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Blob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Blob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Blob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BlobMetadata metadata = 1; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::metadata(this), output); - } - - // string uri = 3; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Blob.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Blob) -} - -::google::protobuf::uint8* Blob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Blob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BlobMetadata metadata = 1; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::metadata(this), target); - } - - // string uri = 3; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Blob.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->uri(), 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.core.Blob) - return target; -} - -size_t Blob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Blob) - 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; - - // string uri = 3; - if (this->uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - } - - // .flyteidl.core.BlobMetadata metadata = 1; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Blob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Blob) - GOOGLE_DCHECK_NE(&from, this); - const Blob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Blob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Blob) - MergeFrom(*source); - } -} - -void Blob::MergeFrom(const Blob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Blob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.uri().size() > 0) { - - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::core::BlobMetadata::MergeFrom(from.metadata()); - } -} - -void Blob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Blob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Blob::CopyFrom(const Blob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Blob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Blob::IsInitialized() const { - return true; -} - -void Blob::Swap(Blob* other) { - if (other == this) return; - InternalSwap(other); -} -void Blob::InternalSwap(Blob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata Blob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BlobMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_BlobMetadata_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::BlobType*>( - ::flyteidl::core::BlobType::internal_default_instance()); -} -class BlobMetadata::HasBitSetters { - public: - static const ::flyteidl::core::BlobType& type(const BlobMetadata* msg); -}; - -const ::flyteidl::core::BlobType& -BlobMetadata::HasBitSetters::type(const BlobMetadata* msg) { - return *msg->type_; -} -void BlobMetadata::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BlobMetadata::kTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BlobMetadata::BlobMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BlobMetadata) -} -BlobMetadata::BlobMetadata(const BlobMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_type()) { - type_ = new ::flyteidl::core::BlobType(*from.type_); - } else { - type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobMetadata) -} - -void BlobMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - type_ = nullptr; -} - -BlobMetadata::~BlobMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.BlobMetadata) - SharedDtor(); -} - -void BlobMetadata::SharedDtor() { - if (this != internal_default_instance()) delete type_; -} - -void BlobMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BlobMetadata& BlobMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BlobMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void BlobMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BlobMetadata::_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.BlobType type = 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::BlobType::_InternalParse; - object = msg->mutable_type(); - 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 BlobMetadata::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.core.BlobMetadata) - 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.BlobType type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } 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.core.BlobMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BlobMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BlobType type = 1; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::type(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobMetadata) -} - -::google::protobuf::uint8* BlobMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BlobType type = 1; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::type(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.core.BlobMetadata) - return target; -} - -size_t BlobMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobMetadata) - 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.BlobType type = 1; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BlobMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobMetadata) - GOOGLE_DCHECK_NE(&from, this); - const BlobMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobMetadata) - MergeFrom(*source); - } -} - -void BlobMetadata::MergeFrom(const BlobMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobMetadata) - 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_type()) { - mutable_type()->::flyteidl::core::BlobType::MergeFrom(from.type()); - } -} - -void BlobMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobMetadata::CopyFrom(const BlobMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlobMetadata::IsInitialized() const { - return true; -} - -void BlobMetadata::Swap(BlobMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void BlobMetadata::InternalSwap(BlobMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(type_, other->type_); -} - -::google::protobuf::Metadata BlobMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Binary::InitAsDefaultInstance() { -} -class Binary::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Binary::kValueFieldNumber; -const int Binary::kTagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Binary::Binary() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Binary) -} -Binary::Binary(const Binary& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.tag().size() > 0) { - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binary) -} - -void Binary::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Binary::~Binary() { - // @@protoc_insertion_point(destructor:flyteidl.core.Binary) - SharedDtor(); -} - -void Binary::SharedDtor() { - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Binary::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Binary& Binary::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Binary_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Binary::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binary) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Binary::_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) { - // bytes value = 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); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string tag = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Binary.tag"); - object = msg->mutable_tag(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Binary::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.core.Binary) - 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)) { - // bytes value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // string tag = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Binary.tag")); - } 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.core.Binary) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Binary) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Binary::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Binary) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes value = 1; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 1, this->value(), output); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Binary.tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->tag(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Binary) -} - -::google::protobuf::uint8* Binary::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binary) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bytes value = 1; - if (this->value().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 1, this->value(), target); - } - - // string tag = 2; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Binary.tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->tag(), 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.core.Binary) - return target; -} - -size_t Binary::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binary) - 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; - - // bytes value = 1; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->value()); - } - - // string tag = 2; - if (this->tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Binary::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binary) - GOOGLE_DCHECK_NE(&from, this); - const Binary* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binary) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binary) - MergeFrom(*source); - } -} - -void Binary::MergeFrom(const Binary& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binary) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void Binary::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binary) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Binary::CopyFrom(const Binary& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binary) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Binary::IsInitialized() const { - return true; -} - -void Binary::Swap(Binary* other) { - if (other == this) return; - InternalSwap(other); -} -void Binary::InternalSwap(Binary* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - tag_.Swap(&other->tag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Binary::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Schema::InitAsDefaultInstance() { - ::flyteidl::core::_Schema_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::SchemaType*>( - ::flyteidl::core::SchemaType::internal_default_instance()); -} -class Schema::HasBitSetters { - public: - static const ::flyteidl::core::SchemaType& type(const Schema* msg); -}; - -const ::flyteidl::core::SchemaType& -Schema::HasBitSetters::type(const Schema* msg) { - return *msg->type_; -} -void Schema::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Schema::kUriFieldNumber; -const int Schema::kTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Schema::Schema() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Schema) -} -Schema::Schema(const Schema& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.uri().size() > 0) { - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_type()) { - type_ = new ::flyteidl::core::SchemaType(*from.type_); - } else { - type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Schema) -} - -void Schema::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = nullptr; -} - -Schema::~Schema() { - // @@protoc_insertion_point(destructor:flyteidl.core.Schema) - SharedDtor(); -} - -void Schema::SharedDtor() { - uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete type_; -} - -void Schema::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Schema& Schema::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Schema_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Schema::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Schema) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Schema::_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) { - // string uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Schema.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.SchemaType type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SchemaType::_InternalParse; - object = msg->mutable_type(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Schema::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.core.Schema) - 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)) { - // string uri = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Schema.uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SchemaType type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } 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.core.Schema) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Schema) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Schema::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Schema) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Schema.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->uri(), output); - } - - // .flyteidl.core.SchemaType type = 3; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::type(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Schema) -} - -::google::protobuf::uint8* Schema::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Schema) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Schema.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->uri(), target); - } - - // .flyteidl.core.SchemaType type = 3; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::type(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.core.Schema) - return target; -} - -size_t Schema::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Schema) - 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; - - // string uri = 1; - if (this->uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - } - - // .flyteidl.core.SchemaType type = 3; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Schema::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Schema) - GOOGLE_DCHECK_NE(&from, this); - const Schema* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Schema) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Schema) - MergeFrom(*source); - } -} - -void Schema::MergeFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Schema) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.uri().size() > 0) { - - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::SchemaType::MergeFrom(from.type()); - } -} - -void Schema::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Schema::CopyFrom(const Schema& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Schema) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Schema::IsInitialized() const { - return true; -} - -void Schema::Swap(Schema* other) { - if (other == this) return; - InternalSwap(other); -} -void Schema::InternalSwap(Schema* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::google::protobuf::Metadata Schema::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Union::InitAsDefaultInstance() { - ::flyteidl::core::_Union_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); - ::flyteidl::core::_Union_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); -} -class Union::HasBitSetters { - public: - static const ::flyteidl::core::Literal& value(const Union* msg); - static const ::flyteidl::core::LiteralType& type(const Union* msg); -}; - -const ::flyteidl::core::Literal& -Union::HasBitSetters::value(const Union* msg) { - return *msg->value_; -} -const ::flyteidl::core::LiteralType& -Union::HasBitSetters::type(const Union* msg) { - return *msg->type_; -} -void Union::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Union::kValueFieldNumber; -const int Union::kTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Union::Union() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Union) -} -Union::Union(const Union& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Union) -} - -void Union::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - ::memset(&value_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&value_)) + sizeof(type_)); -} - -Union::~Union() { - // @@protoc_insertion_point(destructor:flyteidl.core.Union) - SharedDtor(); -} - -void Union::SharedDtor() { - if (this != internal_default_instance()) delete value_; - if (this != internal_default_instance()) delete type_; -} - -void Union::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Union& Union::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Union::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Union) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Union::_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.Literal value = 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::Literal::_InternalParse; - object = msg->mutable_value(); - 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.core.LiteralType type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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 Union::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.core.Union) - 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.Literal value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } 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.core.Union) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Union) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Union::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Union) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::value(this), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Union) -} - -::google::protobuf::uint8* Union::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Union) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Literal value = 1; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::value(this), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(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.core.Union) - return target; -} - -size_t Union::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Union) - 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.Literal value = 1; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Union::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Union) - GOOGLE_DCHECK_NE(&from, this); - const Union* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Union) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Union) - MergeFrom(*source); - } -} - -void Union::MergeFrom(const Union& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Union) - 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_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } -} - -void Union::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Union) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Union::CopyFrom(const Union& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Union) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Union::IsInitialized() const { - return true; -} - -void Union::Swap(Union* other) { - if (other == this) return; - InternalSwap(other); -} -void Union::InternalSwap(Union* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(type_, other->type_); -} - -::google::protobuf::Metadata Union::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StructuredDatasetMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_StructuredDatasetMetadata_default_instance_._instance.get_mutable()->structured_dataset_type_ = const_cast< ::flyteidl::core::StructuredDatasetType*>( - ::flyteidl::core::StructuredDatasetType::internal_default_instance()); -} -class StructuredDatasetMetadata::HasBitSetters { - public: - static const ::flyteidl::core::StructuredDatasetType& structured_dataset_type(const StructuredDatasetMetadata* msg); -}; - -const ::flyteidl::core::StructuredDatasetType& -StructuredDatasetMetadata::HasBitSetters::structured_dataset_type(const StructuredDatasetMetadata* msg) { - return *msg->structured_dataset_type_; -} -void StructuredDatasetMetadata::clear_structured_dataset_type() { - if (GetArenaNoVirtual() == nullptr && structured_dataset_type_ != nullptr) { - delete structured_dataset_type_; - } - structured_dataset_type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StructuredDatasetMetadata::kStructuredDatasetTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StructuredDatasetMetadata::StructuredDatasetMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetMetadata) -} -StructuredDatasetMetadata::StructuredDatasetMetadata(const StructuredDatasetMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_structured_dataset_type()) { - structured_dataset_type_ = new ::flyteidl::core::StructuredDatasetType(*from.structured_dataset_type_); - } else { - structured_dataset_type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetMetadata) -} - -void StructuredDatasetMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - structured_dataset_type_ = nullptr; -} - -StructuredDatasetMetadata::~StructuredDatasetMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetMetadata) - SharedDtor(); -} - -void StructuredDatasetMetadata::SharedDtor() { - if (this != internal_default_instance()) delete structured_dataset_type_; -} - -void StructuredDatasetMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StructuredDatasetMetadata& StructuredDatasetMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StructuredDatasetMetadata_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void StructuredDatasetMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && structured_dataset_type_ != nullptr) { - delete structured_dataset_type_; - } - structured_dataset_type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StructuredDatasetMetadata::_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.StructuredDatasetType structured_dataset_type = 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::StructuredDatasetType::_InternalParse; - object = msg->mutable_structured_dataset_type(); - 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 StructuredDatasetMetadata::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.core.StructuredDatasetMetadata) - 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.StructuredDatasetType structured_dataset_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_structured_dataset_type())); - } 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.core.StructuredDatasetMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StructuredDatasetMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - if (this->has_structured_dataset_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::structured_dataset_type(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetMetadata) -} - -::google::protobuf::uint8* StructuredDatasetMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - if (this->has_structured_dataset_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::structured_dataset_type(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.core.StructuredDatasetMetadata) - return target; -} - -size_t StructuredDatasetMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetMetadata) - 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.StructuredDatasetType structured_dataset_type = 1; - if (this->has_structured_dataset_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *structured_dataset_type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StructuredDatasetMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetMetadata) - GOOGLE_DCHECK_NE(&from, this); - const StructuredDatasetMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetMetadata) - MergeFrom(*source); - } -} - -void StructuredDatasetMetadata::MergeFrom(const StructuredDatasetMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetMetadata) - 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_structured_dataset_type()) { - mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); - } -} - -void StructuredDatasetMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StructuredDatasetMetadata::CopyFrom(const StructuredDatasetMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StructuredDatasetMetadata::IsInitialized() const { - return true; -} - -void StructuredDatasetMetadata::Swap(StructuredDatasetMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void StructuredDatasetMetadata::InternalSwap(StructuredDatasetMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(structured_dataset_type_, other->structured_dataset_type_); -} - -::google::protobuf::Metadata StructuredDatasetMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StructuredDataset::InitAsDefaultInstance() { - ::flyteidl::core::_StructuredDataset_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::StructuredDatasetMetadata*>( - ::flyteidl::core::StructuredDatasetMetadata::internal_default_instance()); -} -class StructuredDataset::HasBitSetters { - public: - static const ::flyteidl::core::StructuredDatasetMetadata& metadata(const StructuredDataset* msg); -}; - -const ::flyteidl::core::StructuredDatasetMetadata& -StructuredDataset::HasBitSetters::metadata(const StructuredDataset* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StructuredDataset::kUriFieldNumber; -const int StructuredDataset::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StructuredDataset::StructuredDataset() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDataset) -} -StructuredDataset::StructuredDataset(const StructuredDataset& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.uri().size() > 0) { - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::StructuredDatasetMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDataset) -} - -void StructuredDataset::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); - uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_ = nullptr; -} - -StructuredDataset::~StructuredDataset() { - // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDataset) - SharedDtor(); -} - -void StructuredDataset::SharedDtor() { - uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete metadata_; -} - -void StructuredDataset::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StructuredDataset& StructuredDataset::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_StructuredDataset_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void StructuredDataset::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDataset) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StructuredDataset::_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) { - // string uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDataset.uri"); - object = msg->mutable_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.StructuredDatasetMetadata metadata = 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::core::StructuredDatasetMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StructuredDataset::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.core.StructuredDataset) - 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)) { - // string uri = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.StructuredDataset.uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.StructuredDatasetMetadata metadata = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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.core.StructuredDataset) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDataset) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StructuredDataset::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDataset) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDataset.uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->uri(), output); - } - - // .flyteidl.core.StructuredDatasetMetadata metadata = 2; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::metadata(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDataset) -} - -::google::protobuf::uint8* StructuredDataset::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDataset) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string uri = 1; - if (this->uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uri().data(), static_cast(this->uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDataset.uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->uri(), target); - } - - // .flyteidl.core.StructuredDatasetMetadata metadata = 2; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::metadata(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.core.StructuredDataset) - return target; -} - -size_t StructuredDataset::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDataset) - 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; - - // string uri = 1; - if (this->uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uri()); - } - - // .flyteidl.core.StructuredDatasetMetadata metadata = 2; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StructuredDataset::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDataset) - GOOGLE_DCHECK_NE(&from, this); - const StructuredDataset* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDataset) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDataset) - MergeFrom(*source); - } -} - -void StructuredDataset::MergeFrom(const StructuredDataset& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDataset) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.uri().size() > 0) { - - uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uri_); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::core::StructuredDatasetMetadata::MergeFrom(from.metadata()); - } -} - -void StructuredDataset::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDataset) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StructuredDataset::CopyFrom(const StructuredDataset& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDataset) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StructuredDataset::IsInitialized() const { - return true; -} - -void StructuredDataset::Swap(StructuredDataset* other) { - if (other == this) return; - InternalSwap(other); -} -void StructuredDataset::InternalSwap(StructuredDataset* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - uri_.Swap(&other->uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata StructuredDataset::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Scalar::InitAsDefaultInstance() { - ::flyteidl::core::_Scalar_default_instance_.primitive_ = const_cast< ::flyteidl::core::Primitive*>( - ::flyteidl::core::Primitive::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.blob_ = const_cast< ::flyteidl::core::Blob*>( - ::flyteidl::core::Blob::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.binary_ = const_cast< ::flyteidl::core::Binary*>( - ::flyteidl::core::Binary::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.schema_ = const_cast< ::flyteidl::core::Schema*>( - ::flyteidl::core::Schema::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.none_type_ = const_cast< ::flyteidl::core::Void*>( - ::flyteidl::core::Void::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( - ::flyteidl::core::Error::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.generic_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.structured_dataset_ = const_cast< ::flyteidl::core::StructuredDataset*>( - ::flyteidl::core::StructuredDataset::internal_default_instance()); - ::flyteidl::core::_Scalar_default_instance_.union__ = const_cast< ::flyteidl::core::Union*>( - ::flyteidl::core::Union::internal_default_instance()); -} -class Scalar::HasBitSetters { - public: - static const ::flyteidl::core::Primitive& primitive(const Scalar* msg); - static const ::flyteidl::core::Blob& blob(const Scalar* msg); - static const ::flyteidl::core::Binary& binary(const Scalar* msg); - static const ::flyteidl::core::Schema& schema(const Scalar* msg); - static const ::flyteidl::core::Void& none_type(const Scalar* msg); - static const ::flyteidl::core::Error& error(const Scalar* msg); - static const ::google::protobuf::Struct& generic(const Scalar* msg); - static const ::flyteidl::core::StructuredDataset& structured_dataset(const Scalar* msg); - static const ::flyteidl::core::Union& union_(const Scalar* msg); -}; - -const ::flyteidl::core::Primitive& -Scalar::HasBitSetters::primitive(const Scalar* msg) { - return *msg->value_.primitive_; -} -const ::flyteidl::core::Blob& -Scalar::HasBitSetters::blob(const Scalar* msg) { - return *msg->value_.blob_; -} -const ::flyteidl::core::Binary& -Scalar::HasBitSetters::binary(const Scalar* msg) { - return *msg->value_.binary_; -} -const ::flyteidl::core::Schema& -Scalar::HasBitSetters::schema(const Scalar* msg) { - return *msg->value_.schema_; -} -const ::flyteidl::core::Void& -Scalar::HasBitSetters::none_type(const Scalar* msg) { - return *msg->value_.none_type_; -} -const ::flyteidl::core::Error& -Scalar::HasBitSetters::error(const Scalar* msg) { - return *msg->value_.error_; -} -const ::google::protobuf::Struct& -Scalar::HasBitSetters::generic(const Scalar* msg) { - return *msg->value_.generic_; -} -const ::flyteidl::core::StructuredDataset& -Scalar::HasBitSetters::structured_dataset(const Scalar* msg) { - return *msg->value_.structured_dataset_; -} -const ::flyteidl::core::Union& -Scalar::HasBitSetters::union_(const Scalar* msg) { - return *msg->value_.union__; -} -void Scalar::set_allocated_primitive(::flyteidl::core::Primitive* primitive) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (primitive) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - primitive = ::google::protobuf::internal::GetOwnedMessage( - message_arena, primitive, submessage_arena); - } - set_has_primitive(); - value_.primitive_ = primitive; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.primitive) -} -void Scalar::set_allocated_blob(::flyteidl::core::Blob* blob) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (blob) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - blob = ::google::protobuf::internal::GetOwnedMessage( - message_arena, blob, submessage_arena); - } - set_has_blob(); - value_.blob_ = blob; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.blob) -} -void Scalar::set_allocated_binary(::flyteidl::core::Binary* binary) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (binary) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - binary = ::google::protobuf::internal::GetOwnedMessage( - message_arena, binary, submessage_arena); - } - set_has_binary(); - value_.binary_ = binary; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.binary) -} -void Scalar::set_allocated_schema(::flyteidl::core::Schema* schema) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (schema) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::google::protobuf::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - set_has_schema(); - value_.schema_ = schema; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.schema) -} -void Scalar::set_allocated_none_type(::flyteidl::core::Void* none_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (none_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - none_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, none_type, submessage_arena); - } - set_has_none_type(); - value_.none_type_ = none_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.none_type) -} -void Scalar::set_allocated_error(::flyteidl::core::Error* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - value_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.error) -} -void Scalar::clear_error() { - if (has_error()) { - delete value_.error_; - clear_has_value(); - } -} -void Scalar::set_allocated_generic(::google::protobuf::Struct* generic) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (generic) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(generic)->GetArena(); - if (message_arena != submessage_arena) { - generic = ::google::protobuf::internal::GetOwnedMessage( - message_arena, generic, submessage_arena); - } - set_has_generic(); - value_.generic_ = generic; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.generic) -} -void Scalar::clear_generic() { - if (has_generic()) { - delete value_.generic_; - clear_has_value(); - } -} -void Scalar::set_allocated_structured_dataset(::flyteidl::core::StructuredDataset* structured_dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (structured_dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - structured_dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, structured_dataset, submessage_arena); - } - set_has_structured_dataset(); - value_.structured_dataset_ = structured_dataset; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.structured_dataset) -} -void Scalar::set_allocated_union_(::flyteidl::core::Union* union_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (union_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - union_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, union_, submessage_arena); - } - set_has_union_(); - value_.union__ = union_; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Scalar.union) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Scalar::kPrimitiveFieldNumber; -const int Scalar::kBlobFieldNumber; -const int Scalar::kBinaryFieldNumber; -const int Scalar::kSchemaFieldNumber; -const int Scalar::kNoneTypeFieldNumber; -const int Scalar::kErrorFieldNumber; -const int Scalar::kGenericFieldNumber; -const int Scalar::kStructuredDatasetFieldNumber; -const int Scalar::kUnionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Scalar::Scalar() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Scalar) -} -Scalar::Scalar(const Scalar& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kPrimitive: { - mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); - break; - } - case kBlob: { - mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); - break; - } - case kBinary: { - mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); - break; - } - case kSchema: { - mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); - break; - } - case kNoneType: { - mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); - break; - } - case kGeneric: { - mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); - break; - } - case kStructuredDataset: { - mutable_structured_dataset()->::flyteidl::core::StructuredDataset::MergeFrom(from.structured_dataset()); - break; - } - case kUnion: { - mutable_union_()->::flyteidl::core::Union::MergeFrom(from.union_()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Scalar) -} - -void Scalar::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - clear_has_value(); -} - -Scalar::~Scalar() { - // @@protoc_insertion_point(destructor:flyteidl.core.Scalar) - SharedDtor(); -} - -void Scalar::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void Scalar::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Scalar& Scalar::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Scalar::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Scalar) - switch (value_case()) { - case kPrimitive: { - delete value_.primitive_; - break; - } - case kBlob: { - delete value_.blob_; - break; - } - case kBinary: { - delete value_.binary_; - break; - } - case kSchema: { - delete value_.schema_; - break; - } - case kNoneType: { - delete value_.none_type_; - break; - } - case kError: { - delete value_.error_; - break; - } - case kGeneric: { - delete value_.generic_; - break; - } - case kStructuredDataset: { - delete value_.structured_dataset_; - break; - } - case kUnion: { - delete value_.union__; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void Scalar::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Scalar) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Scalar::_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.Primitive primitive = 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::Primitive::_InternalParse; - object = msg->mutable_primitive(); - 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.core.Blob blob = 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::core::Blob::_InternalParse; - object = msg->mutable_blob(); - 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.core.Binary binary = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Binary::_InternalParse; - object = msg->mutable_binary(); - 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.core.Schema schema = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Schema::_InternalParse; - object = msg->mutable_schema(); - 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.core.Void none_type = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Void::_InternalParse; - object = msg->mutable_none_type(); - 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.core.Error error = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Error::_InternalParse; - object = msg->mutable_error(); - 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; - } - // .google.protobuf.Struct generic = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_generic(); - 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.core.StructuredDataset structured_dataset = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::StructuredDataset::_InternalParse; - object = msg->mutable_structured_dataset(); - 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.core.Union union = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Union::_InternalParse; - object = msg->mutable_union_(); - 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 Scalar::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.core.Scalar) - 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.Primitive primitive = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_primitive())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Blob blob = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_blob())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Binary binary = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_binary())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Schema schema = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_schema())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Void none_type = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_none_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Error error = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct generic = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_generic())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.StructuredDataset structured_dataset = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_structured_dataset())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Union union = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_union_())); - } 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.core.Scalar) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Scalar) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Scalar::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Scalar) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Primitive primitive = 1; - if (has_primitive()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::primitive(this), output); - } - - // .flyteidl.core.Blob blob = 2; - if (has_blob()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::blob(this), output); - } - - // .flyteidl.core.Binary binary = 3; - if (has_binary()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::binary(this), output); - } - - // .flyteidl.core.Schema schema = 4; - if (has_schema()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::schema(this), output); - } - - // .flyteidl.core.Void none_type = 5; - if (has_none_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::none_type(this), output); - } - - // .flyteidl.core.Error error = 6; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::error(this), output); - } - - // .google.protobuf.Struct generic = 7; - if (has_generic()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::generic(this), output); - } - - // .flyteidl.core.StructuredDataset structured_dataset = 8; - if (has_structured_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::structured_dataset(this), output); - } - - // .flyteidl.core.Union union = 9; - if (has_union_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::union_(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Scalar) -} - -::google::protobuf::uint8* Scalar::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Scalar) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Primitive primitive = 1; - if (has_primitive()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::primitive(this), target); - } - - // .flyteidl.core.Blob blob = 2; - if (has_blob()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::blob(this), target); - } - - // .flyteidl.core.Binary binary = 3; - if (has_binary()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::binary(this), target); - } - - // .flyteidl.core.Schema schema = 4; - if (has_schema()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::schema(this), target); - } - - // .flyteidl.core.Void none_type = 5; - if (has_none_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::none_type(this), target); - } - - // .flyteidl.core.Error error = 6; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::error(this), target); - } - - // .google.protobuf.Struct generic = 7; - if (has_generic()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::generic(this), target); - } - - // .flyteidl.core.StructuredDataset structured_dataset = 8; - if (has_structured_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::structured_dataset(this), target); - } - - // .flyteidl.core.Union union = 9; - if (has_union_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::union_(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.core.Scalar) - return target; -} - -size_t Scalar::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Scalar) - 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 (value_case()) { - // .flyteidl.core.Primitive primitive = 1; - case kPrimitive: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.primitive_); - break; - } - // .flyteidl.core.Blob blob = 2; - case kBlob: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.blob_); - break; - } - // .flyteidl.core.Binary binary = 3; - case kBinary: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.binary_); - break; - } - // .flyteidl.core.Schema schema = 4; - case kSchema: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.schema_); - break; - } - // .flyteidl.core.Void none_type = 5; - case kNoneType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.none_type_); - break; - } - // .flyteidl.core.Error error = 6; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.error_); - break; - } - // .google.protobuf.Struct generic = 7; - case kGeneric: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.generic_); - break; - } - // .flyteidl.core.StructuredDataset structured_dataset = 8; - case kStructuredDataset: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.structured_dataset_); - break; - } - // .flyteidl.core.Union union = 9; - case kUnion: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.union__); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Scalar::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Scalar) - GOOGLE_DCHECK_NE(&from, this); - const Scalar* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Scalar) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Scalar) - MergeFrom(*source); - } -} - -void Scalar::MergeFrom(const Scalar& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Scalar) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kPrimitive: { - mutable_primitive()->::flyteidl::core::Primitive::MergeFrom(from.primitive()); - break; - } - case kBlob: { - mutable_blob()->::flyteidl::core::Blob::MergeFrom(from.blob()); - break; - } - case kBinary: { - mutable_binary()->::flyteidl::core::Binary::MergeFrom(from.binary()); - break; - } - case kSchema: { - mutable_schema()->::flyteidl::core::Schema::MergeFrom(from.schema()); - break; - } - case kNoneType: { - mutable_none_type()->::flyteidl::core::Void::MergeFrom(from.none_type()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); - break; - } - case kGeneric: { - mutable_generic()->::google::protobuf::Struct::MergeFrom(from.generic()); - break; - } - case kStructuredDataset: { - mutable_structured_dataset()->::flyteidl::core::StructuredDataset::MergeFrom(from.structured_dataset()); - break; - } - case kUnion: { - mutable_union_()->::flyteidl::core::Union::MergeFrom(from.union_()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void Scalar::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Scalar) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Scalar::CopyFrom(const Scalar& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Scalar) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Scalar::IsInitialized() const { - return true; -} - -void Scalar::Swap(Scalar* other) { - if (other == this) return; - InternalSwap(other); -} -void Scalar::InternalSwap(Scalar* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Scalar::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -Literal_MetadataEntry_DoNotUse::Literal_MetadataEntry_DoNotUse() {} -Literal_MetadataEntry_DoNotUse::Literal_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void Literal_MetadataEntry_DoNotUse::MergeFrom(const Literal_MetadataEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata Literal_MetadataEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[10]; -} -void Literal_MetadataEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Literal_MetadataEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Literal_MetadataEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Literal.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Literal.MetadataEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void Literal::InitAsDefaultInstance() { - ::flyteidl::core::_Literal_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( - ::flyteidl::core::Scalar::internal_default_instance()); - ::flyteidl::core::_Literal_default_instance_.collection_ = const_cast< ::flyteidl::core::LiteralCollection*>( - ::flyteidl::core::LiteralCollection::internal_default_instance()); - ::flyteidl::core::_Literal_default_instance_.map_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class Literal::HasBitSetters { - public: - static const ::flyteidl::core::Scalar& scalar(const Literal* msg); - static const ::flyteidl::core::LiteralCollection& collection(const Literal* msg); - static const ::flyteidl::core::LiteralMap& map(const Literal* msg); -}; - -const ::flyteidl::core::Scalar& -Literal::HasBitSetters::scalar(const Literal* msg) { - return *msg->value_.scalar_; -} -const ::flyteidl::core::LiteralCollection& -Literal::HasBitSetters::collection(const Literal* msg) { - return *msg->value_.collection_; -} -const ::flyteidl::core::LiteralMap& -Literal::HasBitSetters::map(const Literal* msg) { - return *msg->value_.map_; -} -void Literal::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (scalar) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - scalar = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scalar, submessage_arena); - } - set_has_scalar(); - value_.scalar_ = scalar; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.scalar) -} -void Literal::set_allocated_collection(::flyteidl::core::LiteralCollection* collection) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (collection) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - collection = ::google::protobuf::internal::GetOwnedMessage( - message_arena, collection, submessage_arena); - } - set_has_collection(); - value_.collection_ = collection; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.collection) -} -void Literal::set_allocated_map(::flyteidl::core::LiteralMap* map) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (map) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - map = ::google::protobuf::internal::GetOwnedMessage( - message_arena, map, submessage_arena); - } - set_has_map(); - value_.map_ = map; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.map) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Literal::kScalarFieldNumber; -const int Literal::kCollectionFieldNumber; -const int Literal::kMapFieldNumber; -const int Literal::kHashFieldNumber; -const int Literal::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Literal::Literal() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Literal) -} -Literal::Literal(const Literal& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - metadata_.MergeFrom(from.metadata_); - hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.hash().size() > 0) { - hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); - } - clear_has_value(); - switch (from.value_case()) { - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case kCollection: { - mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); - break; - } - case kMap: { - mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Literal) -} - -void Literal::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_value(); -} - -Literal::~Literal() { - // @@protoc_insertion_point(destructor:flyteidl.core.Literal) - SharedDtor(); -} - -void Literal::SharedDtor() { - hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (has_value()) { - clear_value(); - } -} - -void Literal::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Literal& Literal::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Literal::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Literal) - switch (value_case()) { - case kScalar: { - delete value_.scalar_; - break; - } - case kCollection: { - delete value_.collection_; - break; - } - case kMap: { - delete value_.map_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void Literal::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Literal) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - metadata_.Clear(); - hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Literal::_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.Scalar scalar = 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::Scalar::_InternalParse; - object = msg->mutable_scalar(); - 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.core.LiteralCollection collection = 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::core::LiteralCollection::_InternalParse; - object = msg->mutable_collection(); - 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.core.LiteralMap map = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_map(); - 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; - } - // string hash = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Literal.hash"); - object = msg->mutable_hash(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map metadata = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::Literal_MetadataEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->metadata_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Literal::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.core.Literal) - 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.Scalar scalar = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scalar())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralCollection collection = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_collection())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap map = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_map())); - } else { - goto handle_unusual; - } - break; - } - - // string hash = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_hash())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->hash().data(), static_cast(this->hash().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Literal.hash")); - } else { - goto handle_unusual; - } - break; - } - - // map metadata = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - Literal_MetadataEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Literal_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&metadata_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Literal.MetadataEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Literal.MetadataEntry.value")); - } 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.core.Literal) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Literal) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Literal::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Literal) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Scalar scalar = 1; - if (has_scalar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::scalar(this), output); - } - - // .flyteidl.core.LiteralCollection collection = 2; - if (has_collection()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::collection(this), output); - } - - // .flyteidl.core.LiteralMap map = 3; - if (has_map()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::map(this), output); - } - - // string hash = 4; - if (this->hash().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->hash().data(), static_cast(this->hash().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.hash"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->hash(), output); - } - - // map metadata = 5; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.MetadataEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Literal) -} - -::google::protobuf::uint8* Literal::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Literal) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Scalar scalar = 1; - if (has_scalar()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::scalar(this), target); - } - - // .flyteidl.core.LiteralCollection collection = 2; - if (has_collection()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::collection(this), target); - } - - // .flyteidl.core.LiteralMap map = 3; - if (has_map()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::map(this), target); - } - - // string hash = 4; - if (this->hash().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->hash().data(), static_cast(this->hash().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.hash"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->hash(), target); - } - - // map metadata = 5; - if (!this->metadata().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.MetadataEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Literal.MetadataEntry.value"); - } - }; - - if (false && - this->metadata().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->metadata().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(metadata_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.Literal) - return target; -} - -size_t Literal::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Literal) - 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; - - // map metadata = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->metadata_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->metadata().begin(); - it != this->metadata().end(); ++it) { - entry.reset(metadata_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string hash = 4; - if (this->hash().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->hash()); - } - - switch (value_case()) { - // .flyteidl.core.Scalar scalar = 1; - case kScalar: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.scalar_); - break; - } - // .flyteidl.core.LiteralCollection collection = 2; - case kCollection: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.collection_); - break; - } - // .flyteidl.core.LiteralMap map = 3; - case kMap: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.map_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Literal::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Literal) - GOOGLE_DCHECK_NE(&from, this); - const Literal* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Literal) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Literal) - MergeFrom(*source); - } -} - -void Literal::MergeFrom(const Literal& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Literal) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - metadata_.MergeFrom(from.metadata_); - if (from.hash().size() > 0) { - - hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hash_); - } - switch (from.value_case()) { - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case kCollection: { - mutable_collection()->::flyteidl::core::LiteralCollection::MergeFrom(from.collection()); - break; - } - case kMap: { - mutable_map()->::flyteidl::core::LiteralMap::MergeFrom(from.map()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void Literal::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Literal) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Literal::CopyFrom(const Literal& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Literal) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Literal::IsInitialized() const { - return true; -} - -void Literal::Swap(Literal* other) { - if (other == this) return; - InternalSwap(other); -} -void Literal::InternalSwap(Literal* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - metadata_.Swap(&other->metadata_); - hash_.Swap(&other->hash_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Literal::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LiteralCollection::InitAsDefaultInstance() { -} -class LiteralCollection::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LiteralCollection::kLiteralsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LiteralCollection::LiteralCollection() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.LiteralCollection) -} -LiteralCollection::LiteralCollection(const LiteralCollection& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - literals_(from.literals_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralCollection) -} - -void LiteralCollection::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); -} - -LiteralCollection::~LiteralCollection() { - // @@protoc_insertion_point(destructor:flyteidl.core.LiteralCollection) - SharedDtor(); -} - -void LiteralCollection::SharedDtor() { -} - -void LiteralCollection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LiteralCollection& LiteralCollection::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void LiteralCollection::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - literals_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LiteralCollection::_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) { - // repeated .flyteidl.core.Literal literals = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Literal::_InternalParse; - object = msg->add_literals(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 LiteralCollection::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.core.LiteralCollection) - 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)) { - // repeated .flyteidl.core.Literal literals = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_literals())); - } 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.core.LiteralCollection) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralCollection) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LiteralCollection::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Literal literals = 1; - for (unsigned int i = 0, - n = static_cast(this->literals_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->literals(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralCollection) -} - -::google::protobuf::uint8* LiteralCollection::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Literal literals = 1; - for (unsigned int i = 0, - n = static_cast(this->literals_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->literals(static_cast(i)), 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.core.LiteralCollection) - return target; -} - -size_t LiteralCollection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralCollection) - 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; - - // repeated .flyteidl.core.Literal literals = 1; - { - unsigned int count = static_cast(this->literals_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->literals(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LiteralCollection::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralCollection) - GOOGLE_DCHECK_NE(&from, this); - const LiteralCollection* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralCollection) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralCollection) - MergeFrom(*source); - } -} - -void LiteralCollection::MergeFrom(const LiteralCollection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralCollection) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - literals_.MergeFrom(from.literals_); -} - -void LiteralCollection::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LiteralCollection::CopyFrom(const LiteralCollection& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LiteralCollection::IsInitialized() const { - return true; -} - -void LiteralCollection::Swap(LiteralCollection* other) { - if (other == this) return; - InternalSwap(other); -} -void LiteralCollection::InternalSwap(LiteralCollection* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&literals_)->InternalSwap(CastToBase(&other->literals_)); -} - -::google::protobuf::Metadata LiteralCollection::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse() {} -LiteralMap_LiteralsEntry_DoNotUse::LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata LiteralMap_LiteralsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[13]; -} -void LiteralMap_LiteralsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool LiteralMap_LiteralsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - LiteralMap_LiteralsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.LiteralMap.LiteralsEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void LiteralMap::InitAsDefaultInstance() { -} -class LiteralMap::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LiteralMap::kLiteralsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LiteralMap::LiteralMap() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.LiteralMap) -} -LiteralMap::LiteralMap(const LiteralMap& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - literals_.MergeFrom(from.literals_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralMap) -} - -void LiteralMap::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); -} - -LiteralMap::~LiteralMap() { - // @@protoc_insertion_point(destructor:flyteidl.core.LiteralMap) - SharedDtor(); -} - -void LiteralMap::SharedDtor() { -} - -void LiteralMap::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LiteralMap& LiteralMap::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void LiteralMap::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralMap) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - literals_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LiteralMap::_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) { - // map literals = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->literals_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 LiteralMap::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.core.LiteralMap) - 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)) { - // map literals = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - LiteralMap_LiteralsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - LiteralMap_LiteralsEntry_DoNotUse, - ::std::string, ::flyteidl::core::Literal, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal > > parser(&literals_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.LiteralMap.LiteralsEntry.key")); - } 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.core.LiteralMap) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralMap) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LiteralMap::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map literals = 1; - if (!this->literals().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.LiteralMap.LiteralsEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->literals().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->literals().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator - it = this->literals().begin(); - it != this->literals().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(literals_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator - it = this->literals().begin(); - it != this->literals().end(); ++it) { - entry.reset(literals_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.LiteralMap) -} - -::google::protobuf::uint8* LiteralMap::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map literals = 1; - if (!this->literals().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.LiteralMap.LiteralsEntry.key"); - } - }; - - if (false && - this->literals().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->literals().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator - it = this->literals().begin(); - it != this->literals().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(literals_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator - it = this->literals().begin(); - it != this->literals().end(); ++it) { - entry.reset(literals_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.LiteralMap) - return target; -} - -size_t LiteralMap::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralMap) - 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; - - // map literals = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->literals_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >::const_iterator - it = this->literals().begin(); - it != this->literals().end(); ++it) { - entry.reset(literals_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LiteralMap::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralMap) - GOOGLE_DCHECK_NE(&from, this); - const LiteralMap* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralMap) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralMap) - MergeFrom(*source); - } -} - -void LiteralMap::MergeFrom(const LiteralMap& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralMap) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - literals_.MergeFrom(from.literals_); -} - -void LiteralMap::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LiteralMap::CopyFrom(const LiteralMap& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LiteralMap::IsInitialized() const { - return true; -} - -void LiteralMap::Swap(LiteralMap* other) { - if (other == this) return; - InternalSwap(other); -} -void LiteralMap::InternalSwap(LiteralMap* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - literals_.Swap(&other->literals_); -} - -::google::protobuf::Metadata LiteralMap::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BindingDataCollection::InitAsDefaultInstance() { -} -class BindingDataCollection::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BindingDataCollection::kBindingsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BindingDataCollection::BindingDataCollection() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataCollection) -} -BindingDataCollection::BindingDataCollection(const BindingDataCollection& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - bindings_(from.bindings_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataCollection) -} - -void BindingDataCollection::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); -} - -BindingDataCollection::~BindingDataCollection() { - // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataCollection) - SharedDtor(); -} - -void BindingDataCollection::SharedDtor() { -} - -void BindingDataCollection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BindingDataCollection& BindingDataCollection::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void BindingDataCollection::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - bindings_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BindingDataCollection::_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) { - // repeated .flyteidl.core.BindingData bindings = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::BindingData::_InternalParse; - object = msg->add_bindings(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 BindingDataCollection::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.core.BindingDataCollection) - 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)) { - // repeated .flyteidl.core.BindingData bindings = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_bindings())); - } 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.core.BindingDataCollection) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataCollection) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BindingDataCollection::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.BindingData bindings = 1; - for (unsigned int i = 0, - n = static_cast(this->bindings_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->bindings(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataCollection) -} - -::google::protobuf::uint8* BindingDataCollection::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.BindingData bindings = 1; - for (unsigned int i = 0, - n = static_cast(this->bindings_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->bindings(static_cast(i)), 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.core.BindingDataCollection) - return target; -} - -size_t BindingDataCollection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataCollection) - 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; - - // repeated .flyteidl.core.BindingData bindings = 1; - { - unsigned int count = static_cast(this->bindings_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->bindings(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BindingDataCollection::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataCollection) - GOOGLE_DCHECK_NE(&from, this); - const BindingDataCollection* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataCollection) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataCollection) - MergeFrom(*source); - } -} - -void BindingDataCollection::MergeFrom(const BindingDataCollection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataCollection) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - bindings_.MergeFrom(from.bindings_); -} - -void BindingDataCollection::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindingDataCollection::CopyFrom(const BindingDataCollection& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindingDataCollection::IsInitialized() const { - return true; -} - -void BindingDataCollection::Swap(BindingDataCollection* other) { - if (other == this) return; - InternalSwap(other); -} -void BindingDataCollection::InternalSwap(BindingDataCollection* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&bindings_)->InternalSwap(CastToBase(&other->bindings_)); -} - -::google::protobuf::Metadata BindingDataCollection::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse() {} -BindingDataMap_BindingsEntry_DoNotUse::BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata BindingDataMap_BindingsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[16]; -} -void BindingDataMap_BindingsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool BindingDataMap_BindingsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - BindingDataMap_BindingsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.BindingDataMap.BindingsEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void BindingDataMap::InitAsDefaultInstance() { -} -class BindingDataMap::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BindingDataMap::kBindingsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BindingDataMap::BindingDataMap() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BindingDataMap) -} -BindingDataMap::BindingDataMap(const BindingDataMap& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - bindings_.MergeFrom(from.bindings_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingDataMap) -} - -void BindingDataMap::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); -} - -BindingDataMap::~BindingDataMap() { - // @@protoc_insertion_point(destructor:flyteidl.core.BindingDataMap) - SharedDtor(); -} - -void BindingDataMap::SharedDtor() { -} - -void BindingDataMap::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BindingDataMap& BindingDataMap::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void BindingDataMap::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingDataMap) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - bindings_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BindingDataMap::_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) { - // map bindings = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->bindings_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 BindingDataMap::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.core.BindingDataMap) - 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)) { - // map bindings = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - BindingDataMap_BindingsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - BindingDataMap_BindingsEntry_DoNotUse, - ::std::string, ::flyteidl::core::BindingData, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData > > parser(&bindings_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.BindingDataMap.BindingsEntry.key")); - } 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.core.BindingDataMap) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingDataMap) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BindingDataMap::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingDataMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map bindings = 1; - if (!this->bindings().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.BindingDataMap.BindingsEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->bindings().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->bindings().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator - it = this->bindings().begin(); - it != this->bindings().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(bindings_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator - it = this->bindings().begin(); - it != this->bindings().end(); ++it) { - entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingDataMap) -} - -::google::protobuf::uint8* BindingDataMap::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingDataMap) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map bindings = 1; - if (!this->bindings().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.BindingDataMap.BindingsEntry.key"); - } - }; - - if (false && - this->bindings().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->bindings().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator - it = this->bindings().begin(); - it != this->bindings().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(bindings_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator - it = this->bindings().begin(); - it != this->bindings().end(); ++it) { - entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.BindingDataMap) - return target; -} - -size_t BindingDataMap::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingDataMap) - 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; - - // map bindings = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->bindings_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >::const_iterator - it = this->bindings().begin(); - it != this->bindings().end(); ++it) { - entry.reset(bindings_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BindingDataMap::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingDataMap) - GOOGLE_DCHECK_NE(&from, this); - const BindingDataMap* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingDataMap) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingDataMap) - MergeFrom(*source); - } -} - -void BindingDataMap::MergeFrom(const BindingDataMap& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingDataMap) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - bindings_.MergeFrom(from.bindings_); -} - -void BindingDataMap::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingDataMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindingDataMap::CopyFrom(const BindingDataMap& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingDataMap) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindingDataMap::IsInitialized() const { - return true; -} - -void BindingDataMap::Swap(BindingDataMap* other) { - if (other == this) return; - InternalSwap(other); -} -void BindingDataMap::InternalSwap(BindingDataMap* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - bindings_.Swap(&other->bindings_); -} - -::google::protobuf::Metadata BindingDataMap::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UnionInfo::InitAsDefaultInstance() { - ::flyteidl::core::_UnionInfo_default_instance_._instance.get_mutable()->targettype_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); -} -class UnionInfo::HasBitSetters { - public: - static const ::flyteidl::core::LiteralType& targettype(const UnionInfo* msg); -}; - -const ::flyteidl::core::LiteralType& -UnionInfo::HasBitSetters::targettype(const UnionInfo* msg) { - return *msg->targettype_; -} -void UnionInfo::clear_targettype() { - if (GetArenaNoVirtual() == nullptr && targettype_ != nullptr) { - delete targettype_; - } - targettype_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UnionInfo::kTargetTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UnionInfo::UnionInfo() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.UnionInfo) -} -UnionInfo::UnionInfo(const UnionInfo& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_targettype()) { - targettype_ = new ::flyteidl::core::LiteralType(*from.targettype_); - } else { - targettype_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.UnionInfo) -} - -void UnionInfo::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); - targettype_ = nullptr; -} - -UnionInfo::~UnionInfo() { - // @@protoc_insertion_point(destructor:flyteidl.core.UnionInfo) - SharedDtor(); -} - -void UnionInfo::SharedDtor() { - if (this != internal_default_instance()) delete targettype_; -} - -void UnionInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UnionInfo& UnionInfo::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UnionInfo_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void UnionInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.UnionInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && targettype_ != nullptr) { - delete targettype_; - } - targettype_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UnionInfo::_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.LiteralType targetType = 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::LiteralType::_InternalParse; - object = msg->mutable_targettype(); - 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 UnionInfo::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.core.UnionInfo) - 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.LiteralType targetType = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_targettype())); - } 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.core.UnionInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.UnionInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UnionInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.UnionInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralType targetType = 1; - if (this->has_targettype()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::targettype(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.UnionInfo) -} - -::google::protobuf::uint8* UnionInfo::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.UnionInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralType targetType = 1; - if (this->has_targettype()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::targettype(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.core.UnionInfo) - return target; -} - -size_t UnionInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.UnionInfo) - 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.LiteralType targetType = 1; - if (this->has_targettype()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *targettype_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UnionInfo::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.UnionInfo) - GOOGLE_DCHECK_NE(&from, this); - const UnionInfo* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.UnionInfo) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.UnionInfo) - MergeFrom(*source); - } -} - -void UnionInfo::MergeFrom(const UnionInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.UnionInfo) - 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_targettype()) { - mutable_targettype()->::flyteidl::core::LiteralType::MergeFrom(from.targettype()); - } -} - -void UnionInfo::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.UnionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnionInfo::CopyFrom(const UnionInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.UnionInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnionInfo::IsInitialized() const { - return true; -} - -void UnionInfo::Swap(UnionInfo* other) { - if (other == this) return; - InternalSwap(other); -} -void UnionInfo::InternalSwap(UnionInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(targettype_, other->targettype_); -} - -::google::protobuf::Metadata UnionInfo::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BindingData::InitAsDefaultInstance() { - ::flyteidl::core::_BindingData_default_instance_.scalar_ = const_cast< ::flyteidl::core::Scalar*>( - ::flyteidl::core::Scalar::internal_default_instance()); - ::flyteidl::core::_BindingData_default_instance_.collection_ = const_cast< ::flyteidl::core::BindingDataCollection*>( - ::flyteidl::core::BindingDataCollection::internal_default_instance()); - ::flyteidl::core::_BindingData_default_instance_.promise_ = const_cast< ::flyteidl::core::OutputReference*>( - ::flyteidl::core::OutputReference::internal_default_instance()); - ::flyteidl::core::_BindingData_default_instance_.map_ = const_cast< ::flyteidl::core::BindingDataMap*>( - ::flyteidl::core::BindingDataMap::internal_default_instance()); - ::flyteidl::core::_BindingData_default_instance_._instance.get_mutable()->union__ = const_cast< ::flyteidl::core::UnionInfo*>( - ::flyteidl::core::UnionInfo::internal_default_instance()); -} -class BindingData::HasBitSetters { - public: - static const ::flyteidl::core::Scalar& scalar(const BindingData* msg); - static const ::flyteidl::core::BindingDataCollection& collection(const BindingData* msg); - static const ::flyteidl::core::OutputReference& promise(const BindingData* msg); - static const ::flyteidl::core::BindingDataMap& map(const BindingData* msg); - static const ::flyteidl::core::UnionInfo& union_(const BindingData* msg); -}; - -const ::flyteidl::core::Scalar& -BindingData::HasBitSetters::scalar(const BindingData* msg) { - return *msg->value_.scalar_; -} -const ::flyteidl::core::BindingDataCollection& -BindingData::HasBitSetters::collection(const BindingData* msg) { - return *msg->value_.collection_; -} -const ::flyteidl::core::OutputReference& -BindingData::HasBitSetters::promise(const BindingData* msg) { - return *msg->value_.promise_; -} -const ::flyteidl::core::BindingDataMap& -BindingData::HasBitSetters::map(const BindingData* msg) { - return *msg->value_.map_; -} -const ::flyteidl::core::UnionInfo& -BindingData::HasBitSetters::union_(const BindingData* msg) { - return *msg->union__; -} -void BindingData::set_allocated_scalar(::flyteidl::core::Scalar* scalar) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (scalar) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - scalar = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scalar, submessage_arena); - } - set_has_scalar(); - value_.scalar_ = scalar; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.scalar) -} -void BindingData::set_allocated_collection(::flyteidl::core::BindingDataCollection* collection) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (collection) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - collection = ::google::protobuf::internal::GetOwnedMessage( - message_arena, collection, submessage_arena); - } - set_has_collection(); - value_.collection_ = collection; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.collection) -} -void BindingData::set_allocated_promise(::flyteidl::core::OutputReference* promise) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (promise) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - promise = ::google::protobuf::internal::GetOwnedMessage( - message_arena, promise, submessage_arena); - } - set_has_promise(); - value_.promise_ = promise; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.promise) -} -void BindingData::clear_promise() { - if (has_promise()) { - delete value_.promise_; - clear_has_value(); - } -} -void BindingData::set_allocated_map(::flyteidl::core::BindingDataMap* map) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_value(); - if (map) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - map = ::google::protobuf::internal::GetOwnedMessage( - message_arena, map, submessage_arena); - } - set_has_map(); - value_.map_ = map; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.map) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BindingData::kScalarFieldNumber; -const int BindingData::kCollectionFieldNumber; -const int BindingData::kPromiseFieldNumber; -const int BindingData::kMapFieldNumber; -const int BindingData::kUnionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BindingData::BindingData() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BindingData) -} -BindingData::BindingData(const BindingData& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_union_()) { - union__ = new ::flyteidl::core::UnionInfo(*from.union__); - } else { - union__ = nullptr; - } - clear_has_value(); - switch (from.value_case()) { - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case kCollection: { - mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); - break; - } - case kPromise: { - mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); - break; - } - case kMap: { - mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BindingData) -} - -void BindingData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); - union__ = nullptr; - clear_has_value(); -} - -BindingData::~BindingData() { - // @@protoc_insertion_point(destructor:flyteidl.core.BindingData) - SharedDtor(); -} - -void BindingData::SharedDtor() { - if (this != internal_default_instance()) delete union__; - if (has_value()) { - clear_value(); - } -} - -void BindingData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BindingData& BindingData::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BindingData_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void BindingData::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.BindingData) - switch (value_case()) { - case kScalar: { - delete value_.scalar_; - break; - } - case kCollection: { - delete value_.collection_; - break; - } - case kPromise: { - delete value_.promise_; - break; - } - case kMap: { - delete value_.map_; - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void BindingData::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && union__ != nullptr) { - delete union__; - } - union__ = nullptr; - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BindingData::_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.Scalar scalar = 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::Scalar::_InternalParse; - object = msg->mutable_scalar(); - 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.core.BindingDataCollection collection = 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::core::BindingDataCollection::_InternalParse; - object = msg->mutable_collection(); - 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.core.OutputReference promise = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::OutputReference::_InternalParse; - object = msg->mutable_promise(); - 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.core.BindingDataMap map = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::BindingDataMap::_InternalParse; - object = msg->mutable_map(); - 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.core.UnionInfo union = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::UnionInfo::_InternalParse; - object = msg->mutable_union_(); - 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 BindingData::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.core.BindingData) - 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.Scalar scalar = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scalar())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BindingDataCollection collection = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_collection())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.OutputReference promise = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_promise())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BindingDataMap map = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_map())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.UnionInfo union = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_union_())); - } 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.core.BindingData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BindingData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BindingData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Scalar scalar = 1; - if (has_scalar()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::scalar(this), output); - } - - // .flyteidl.core.BindingDataCollection collection = 2; - if (has_collection()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::collection(this), output); - } - - // .flyteidl.core.OutputReference promise = 3; - if (has_promise()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::promise(this), output); - } - - // .flyteidl.core.BindingDataMap map = 4; - if (has_map()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::map(this), output); - } - - // .flyteidl.core.UnionInfo union = 5; - if (this->has_union_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::union_(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BindingData) -} - -::google::protobuf::uint8* BindingData::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BindingData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Scalar scalar = 1; - if (has_scalar()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::scalar(this), target); - } - - // .flyteidl.core.BindingDataCollection collection = 2; - if (has_collection()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::collection(this), target); - } - - // .flyteidl.core.OutputReference promise = 3; - if (has_promise()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::promise(this), target); - } - - // .flyteidl.core.BindingDataMap map = 4; - if (has_map()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::map(this), target); - } - - // .flyteidl.core.UnionInfo union = 5; - if (this->has_union_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::union_(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.core.BindingData) - return target; -} - -size_t BindingData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BindingData) - 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.UnionInfo union = 5; - if (this->has_union_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *union__); - } - - switch (value_case()) { - // .flyteidl.core.Scalar scalar = 1; - case kScalar: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.scalar_); - break; - } - // .flyteidl.core.BindingDataCollection collection = 2; - case kCollection: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.collection_); - break; - } - // .flyteidl.core.OutputReference promise = 3; - case kPromise: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.promise_); - break; - } - // .flyteidl.core.BindingDataMap map = 4; - case kMap: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_.map_); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BindingData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BindingData) - GOOGLE_DCHECK_NE(&from, this); - const BindingData* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BindingData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BindingData) - MergeFrom(*source); - } -} - -void BindingData::MergeFrom(const BindingData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BindingData) - 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_union_()) { - mutable_union_()->::flyteidl::core::UnionInfo::MergeFrom(from.union_()); - } - switch (from.value_case()) { - case kScalar: { - mutable_scalar()->::flyteidl::core::Scalar::MergeFrom(from.scalar()); - break; - } - case kCollection: { - mutable_collection()->::flyteidl::core::BindingDataCollection::MergeFrom(from.collection()); - break; - } - case kPromise: { - mutable_promise()->::flyteidl::core::OutputReference::MergeFrom(from.promise()); - break; - } - case kMap: { - mutable_map()->::flyteidl::core::BindingDataMap::MergeFrom(from.map()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void BindingData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BindingData::CopyFrom(const BindingData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BindingData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BindingData::IsInitialized() const { - return true; -} - -void BindingData::Swap(BindingData* other) { - if (other == this) return; - InternalSwap(other); -} -void BindingData::InternalSwap(BindingData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(union__, other->union__); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata BindingData::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Binding::InitAsDefaultInstance() { - ::flyteidl::core::_Binding_default_instance_._instance.get_mutable()->binding_ = const_cast< ::flyteidl::core::BindingData*>( - ::flyteidl::core::BindingData::internal_default_instance()); -} -class Binding::HasBitSetters { - public: - static const ::flyteidl::core::BindingData& binding(const Binding* msg); -}; - -const ::flyteidl::core::BindingData& -Binding::HasBitSetters::binding(const Binding* msg) { - return *msg->binding_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Binding::kVarFieldNumber; -const int Binding::kBindingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Binding::Binding() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Binding) -} -Binding::Binding(const Binding& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.var().size() > 0) { - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - if (from.has_binding()) { - binding_ = new ::flyteidl::core::BindingData(*from.binding_); - } else { - binding_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Binding) -} - -void Binding::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - binding_ = nullptr; -} - -Binding::~Binding() { - // @@protoc_insertion_point(destructor:flyteidl.core.Binding) - SharedDtor(); -} - -void Binding::SharedDtor() { - var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete binding_; -} - -void Binding::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Binding& Binding::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void Binding::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Binding) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && binding_ != nullptr) { - delete binding_; - } - binding_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Binding::_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) { - // string var = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Binding.var"); - object = msg->mutable_var(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.BindingData binding = 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::core::BindingData::_InternalParse; - object = msg->mutable_binding(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Binding::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.core.Binding) - 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)) { - // string var = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_var())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Binding.var")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BindingData binding = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_binding())); - } 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.core.Binding) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Binding) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Binding::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Binding) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Binding.var"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->var(), output); - } - - // .flyteidl.core.BindingData binding = 2; - if (this->has_binding()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::binding(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Binding) -} - -::google::protobuf::uint8* Binding::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Binding) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Binding.var"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->var(), target); - } - - // .flyteidl.core.BindingData binding = 2; - if (this->has_binding()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::binding(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.core.Binding) - return target; -} - -size_t Binding::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Binding) - 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; - - // string var = 1; - if (this->var().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->var()); - } - - // .flyteidl.core.BindingData binding = 2; - if (this->has_binding()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *binding_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Binding::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Binding) - GOOGLE_DCHECK_NE(&from, this); - const Binding* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Binding) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Binding) - MergeFrom(*source); - } -} - -void Binding::MergeFrom(const Binding& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Binding) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.var().size() > 0) { - - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - if (from.has_binding()) { - mutable_binding()->::flyteidl::core::BindingData::MergeFrom(from.binding()); - } -} - -void Binding::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Binding) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Binding::CopyFrom(const Binding& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Binding) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Binding::IsInitialized() const { - return true; -} - -void Binding::Swap(Binding* other) { - if (other == this) return; - InternalSwap(other); -} -void Binding::InternalSwap(Binding* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(binding_, other->binding_); -} - -::google::protobuf::Metadata Binding::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void KeyValuePair::InitAsDefaultInstance() { -} -class KeyValuePair::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KeyValuePair::kKeyFieldNumber; -const int KeyValuePair::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -KeyValuePair::KeyValuePair() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.KeyValuePair) -} -KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.KeyValuePair) -} - -void KeyValuePair::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -KeyValuePair::~KeyValuePair() { - // @@protoc_insertion_point(destructor:flyteidl.core.KeyValuePair) - SharedDtor(); -} - -void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void KeyValuePair::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KeyValuePair& KeyValuePair::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void KeyValuePair::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* KeyValuePair::_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) { - // string key = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.KeyValuePair.key"); - object = msg->mutable_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.KeyValuePair.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool KeyValuePair::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.core.KeyValuePair) - 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)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.KeyValuePair.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.KeyValuePair.value")); - } 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.core.KeyValuePair) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.KeyValuePair) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void KeyValuePair::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.KeyValuePair.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.KeyValuePair.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.KeyValuePair) -} - -::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.KeyValuePair.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.KeyValuePair.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), 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.core.KeyValuePair) - return target; -} - -size_t KeyValuePair::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.KeyValuePair) - 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; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - const KeyValuePair* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.KeyValuePair) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.KeyValuePair) - MergeFrom(*source); - } -} - -void KeyValuePair::MergeFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KeyValuePair::CopyFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeyValuePair::IsInitialized() const { - return true; -} - -void KeyValuePair::Swap(KeyValuePair* other) { - if (other == this) return; - InternalSwap(other); -} -void KeyValuePair::InternalSwap(KeyValuePair* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata KeyValuePair::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RetryStrategy::InitAsDefaultInstance() { -} -class RetryStrategy::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RetryStrategy::kRetriesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RetryStrategy::RetryStrategy() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.RetryStrategy) -} -RetryStrategy::RetryStrategy(const RetryStrategy& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - retries_ = from.retries_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.RetryStrategy) -} - -void RetryStrategy::SharedCtor() { - retries_ = 0u; -} - -RetryStrategy::~RetryStrategy() { - // @@protoc_insertion_point(destructor:flyteidl.core.RetryStrategy) - SharedDtor(); -} - -void RetryStrategy::SharedDtor() { -} - -void RetryStrategy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RetryStrategy& RetryStrategy::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base); - return *internal_default_instance(); -} - - -void RetryStrategy::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.RetryStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - retries_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RetryStrategy::_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) { - // uint32 retries = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_retries(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RetryStrategy::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.core.RetryStrategy) - 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)) { - // uint32 retries = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retries_))); - } 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.core.RetryStrategy) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.RetryStrategy) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RetryStrategy::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.RetryStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 retries = 5; - if (this->retries() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->retries(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.RetryStrategy) -} - -::google::protobuf::uint8* RetryStrategy::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RetryStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 retries = 5; - if (this->retries() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->retries(), 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.core.RetryStrategy) - return target; -} - -size_t RetryStrategy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RetryStrategy) - 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; - - // uint32 retries = 5; - if (this->retries() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retries()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RetryStrategy::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RetryStrategy) - GOOGLE_DCHECK_NE(&from, this); - const RetryStrategy* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RetryStrategy) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RetryStrategy) - MergeFrom(*source); - } -} - -void RetryStrategy::MergeFrom(const RetryStrategy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RetryStrategy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.retries() != 0) { - set_retries(from.retries()); - } -} - -void RetryStrategy::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RetryStrategy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RetryStrategy::CopyFrom(const RetryStrategy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RetryStrategy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RetryStrategy::IsInitialized() const { - return true; -} - -void RetryStrategy::Swap(RetryStrategy* other) { - if (other == this) return; - InternalSwap(other); -} -void RetryStrategy::InternalSwap(RetryStrategy* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(retries_, other->retries_); -} - -::google::protobuf::Metadata RetryStrategy::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fliterals_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fliterals_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Primitive* Arena::CreateMaybeMessage< ::flyteidl::core::Primitive >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Primitive >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Void* Arena::CreateMaybeMessage< ::flyteidl::core::Void >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Void >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Blob* Arena::CreateMaybeMessage< ::flyteidl::core::Blob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Blob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BlobMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::BlobMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BlobMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Binary* Arena::CreateMaybeMessage< ::flyteidl::core::Binary >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Binary >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Schema* Arena::CreateMaybeMessage< ::flyteidl::core::Schema >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Schema >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Union* Arena::CreateMaybeMessage< ::flyteidl::core::Union >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Union >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDataset* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDataset >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::StructuredDataset >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Scalar* Arena::CreateMaybeMessage< ::flyteidl::core::Scalar >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Scalar >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Literal_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::Literal_MetadataEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Literal_MetadataEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Literal* Arena::CreateMaybeMessage< ::flyteidl::core::Literal >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Literal >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralCollection* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralCollection >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::LiteralCollection >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralMap* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralMap >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::LiteralMap >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataCollection* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataCollection >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BindingDataCollection >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingDataMap* Arena::CreateMaybeMessage< ::flyteidl::core::BindingDataMap >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BindingDataMap >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::UnionInfo* Arena::CreateMaybeMessage< ::flyteidl::core::UnionInfo >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::UnionInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BindingData* Arena::CreateMaybeMessage< ::flyteidl::core::BindingData >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BindingData >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Binding* Arena::CreateMaybeMessage< ::flyteidl::core::Binding >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Binding >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::KeyValuePair* Arena::CreateMaybeMessage< ::flyteidl::core::KeyValuePair >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::KeyValuePair >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::RetryStrategy* Arena::CreateMaybeMessage< ::flyteidl::core::RetryStrategy >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::RetryStrategy >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h deleted file mode 100644 index e167eef934..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/literals.pb.h +++ /dev/null @@ -1,5134 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/literals.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -#include -#include "flyteidl/core/types.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fliterals_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[23] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fliterals_2eproto(); -namespace flyteidl { -namespace core { -class Binary; -class BinaryDefaultTypeInternal; -extern BinaryDefaultTypeInternal _Binary_default_instance_; -class Binding; -class BindingDefaultTypeInternal; -extern BindingDefaultTypeInternal _Binding_default_instance_; -class BindingData; -class BindingDataDefaultTypeInternal; -extern BindingDataDefaultTypeInternal _BindingData_default_instance_; -class BindingDataCollection; -class BindingDataCollectionDefaultTypeInternal; -extern BindingDataCollectionDefaultTypeInternal _BindingDataCollection_default_instance_; -class BindingDataMap; -class BindingDataMapDefaultTypeInternal; -extern BindingDataMapDefaultTypeInternal _BindingDataMap_default_instance_; -class BindingDataMap_BindingsEntry_DoNotUse; -class BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal; -extern BindingDataMap_BindingsEntry_DoNotUseDefaultTypeInternal _BindingDataMap_BindingsEntry_DoNotUse_default_instance_; -class Blob; -class BlobDefaultTypeInternal; -extern BlobDefaultTypeInternal _Blob_default_instance_; -class BlobMetadata; -class BlobMetadataDefaultTypeInternal; -extern BlobMetadataDefaultTypeInternal _BlobMetadata_default_instance_; -class KeyValuePair; -class KeyValuePairDefaultTypeInternal; -extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; -class Literal; -class LiteralDefaultTypeInternal; -extern LiteralDefaultTypeInternal _Literal_default_instance_; -class LiteralCollection; -class LiteralCollectionDefaultTypeInternal; -extern LiteralCollectionDefaultTypeInternal _LiteralCollection_default_instance_; -class LiteralMap; -class LiteralMapDefaultTypeInternal; -extern LiteralMapDefaultTypeInternal _LiteralMap_default_instance_; -class LiteralMap_LiteralsEntry_DoNotUse; -class LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal; -extern LiteralMap_LiteralsEntry_DoNotUseDefaultTypeInternal _LiteralMap_LiteralsEntry_DoNotUse_default_instance_; -class Literal_MetadataEntry_DoNotUse; -class Literal_MetadataEntry_DoNotUseDefaultTypeInternal; -extern Literal_MetadataEntry_DoNotUseDefaultTypeInternal _Literal_MetadataEntry_DoNotUse_default_instance_; -class Primitive; -class PrimitiveDefaultTypeInternal; -extern PrimitiveDefaultTypeInternal _Primitive_default_instance_; -class RetryStrategy; -class RetryStrategyDefaultTypeInternal; -extern RetryStrategyDefaultTypeInternal _RetryStrategy_default_instance_; -class Scalar; -class ScalarDefaultTypeInternal; -extern ScalarDefaultTypeInternal _Scalar_default_instance_; -class Schema; -class SchemaDefaultTypeInternal; -extern SchemaDefaultTypeInternal _Schema_default_instance_; -class StructuredDataset; -class StructuredDatasetDefaultTypeInternal; -extern StructuredDatasetDefaultTypeInternal _StructuredDataset_default_instance_; -class StructuredDatasetMetadata; -class StructuredDatasetMetadataDefaultTypeInternal; -extern StructuredDatasetMetadataDefaultTypeInternal _StructuredDatasetMetadata_default_instance_; -class Union; -class UnionDefaultTypeInternal; -extern UnionDefaultTypeInternal _Union_default_instance_; -class UnionInfo; -class UnionInfoDefaultTypeInternal; -extern UnionInfoDefaultTypeInternal _UnionInfo_default_instance_; -class Void; -class VoidDefaultTypeInternal; -extern VoidDefaultTypeInternal _Void_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Binary* Arena::CreateMaybeMessage<::flyteidl::core::Binary>(Arena*); -template<> ::flyteidl::core::Binding* Arena::CreateMaybeMessage<::flyteidl::core::Binding>(Arena*); -template<> ::flyteidl::core::BindingData* Arena::CreateMaybeMessage<::flyteidl::core::BindingData>(Arena*); -template<> ::flyteidl::core::BindingDataCollection* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataCollection>(Arena*); -template<> ::flyteidl::core::BindingDataMap* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataMap>(Arena*); -template<> ::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::BindingDataMap_BindingsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::Blob* Arena::CreateMaybeMessage<::flyteidl::core::Blob>(Arena*); -template<> ::flyteidl::core::BlobMetadata* Arena::CreateMaybeMessage<::flyteidl::core::BlobMetadata>(Arena*); -template<> ::flyteidl::core::KeyValuePair* Arena::CreateMaybeMessage<::flyteidl::core::KeyValuePair>(Arena*); -template<> ::flyteidl::core::Literal* Arena::CreateMaybeMessage<::flyteidl::core::Literal>(Arena*); -template<> ::flyteidl::core::LiteralCollection* Arena::CreateMaybeMessage<::flyteidl::core::LiteralCollection>(Arena*); -template<> ::flyteidl::core::LiteralMap* Arena::CreateMaybeMessage<::flyteidl::core::LiteralMap>(Arena*); -template<> ::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::LiteralMap_LiteralsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::Literal_MetadataEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::Literal_MetadataEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::Primitive* Arena::CreateMaybeMessage<::flyteidl::core::Primitive>(Arena*); -template<> ::flyteidl::core::RetryStrategy* Arena::CreateMaybeMessage<::flyteidl::core::RetryStrategy>(Arena*); -template<> ::flyteidl::core::Scalar* Arena::CreateMaybeMessage<::flyteidl::core::Scalar>(Arena*); -template<> ::flyteidl::core::Schema* Arena::CreateMaybeMessage<::flyteidl::core::Schema>(Arena*); -template<> ::flyteidl::core::StructuredDataset* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDataset>(Arena*); -template<> ::flyteidl::core::StructuredDatasetMetadata* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetMetadata>(Arena*); -template<> ::flyteidl::core::Union* Arena::CreateMaybeMessage<::flyteidl::core::Union>(Arena*); -template<> ::flyteidl::core::UnionInfo* Arena::CreateMaybeMessage<::flyteidl::core::UnionInfo>(Arena*); -template<> ::flyteidl::core::Void* Arena::CreateMaybeMessage<::flyteidl::core::Void>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class Primitive final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Primitive) */ { - public: - Primitive(); - virtual ~Primitive(); - - Primitive(const Primitive& from); - - inline Primitive& operator=(const Primitive& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Primitive(Primitive&& from) noexcept - : Primitive() { - *this = ::std::move(from); - } - - inline Primitive& operator=(Primitive&& 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 Primitive& default_instance(); - - enum ValueCase { - kInteger = 1, - kFloatValue = 2, - kStringValue = 3, - kBoolean = 4, - kDatetime = 5, - kDuration = 6, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Primitive* internal_default_instance() { - return reinterpret_cast( - &_Primitive_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Primitive* other); - friend void swap(Primitive& a, Primitive& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Primitive* New() const final { - return CreateMaybeMessage(nullptr); - } - - Primitive* 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 Primitive& from); - void MergeFrom(const Primitive& 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(Primitive* 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 ------------------------------------------------------- - - // int64 integer = 1; - private: - bool has_integer() const; - public: - void clear_integer(); - static const int kIntegerFieldNumber = 1; - ::google::protobuf::int64 integer() const; - void set_integer(::google::protobuf::int64 value); - - // double float_value = 2; - private: - bool has_float_value() const; - public: - void clear_float_value(); - static const int kFloatValueFieldNumber = 2; - double float_value() const; - void set_float_value(double value); - - // string string_value = 3; - private: - bool has_string_value() const; - public: - void clear_string_value(); - static const int kStringValueFieldNumber = 3; - const ::std::string& string_value() const; - void set_string_value(const ::std::string& value); - #if LANG_CXX11 - void set_string_value(::std::string&& value); - #endif - void set_string_value(const char* value); - void set_string_value(const char* value, size_t size); - ::std::string* mutable_string_value(); - ::std::string* release_string_value(); - void set_allocated_string_value(::std::string* string_value); - - // bool boolean = 4; - private: - bool has_boolean() const; - public: - void clear_boolean(); - static const int kBooleanFieldNumber = 4; - bool boolean() const; - void set_boolean(bool value); - - // .google.protobuf.Timestamp datetime = 5; - bool has_datetime() const; - void clear_datetime(); - static const int kDatetimeFieldNumber = 5; - const ::google::protobuf::Timestamp& datetime() const; - ::google::protobuf::Timestamp* release_datetime(); - ::google::protobuf::Timestamp* mutable_datetime(); - void set_allocated_datetime(::google::protobuf::Timestamp* datetime); - - // .google.protobuf.Duration duration = 6; - bool has_duration() const; - void clear_duration(); - static const int kDurationFieldNumber = 6; - const ::google::protobuf::Duration& duration() const; - ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* duration); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) - private: - class HasBitSetters; - void set_has_integer(); - void set_has_float_value(); - void set_has_string_value(); - void set_has_boolean(); - void set_has_datetime(); - void set_has_duration(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - ::google::protobuf::int64 integer_; - double float_value_; - ::google::protobuf::internal::ArenaStringPtr string_value_; - bool boolean_; - ::google::protobuf::Timestamp* datetime_; - ::google::protobuf::Duration* duration_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Void final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Void) */ { - public: - Void(); - virtual ~Void(); - - Void(const Void& from); - - inline Void& operator=(const Void& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Void(Void&& from) noexcept - : Void() { - *this = ::std::move(from); - } - - inline Void& operator=(Void&& 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 Void& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Void* internal_default_instance() { - return reinterpret_cast( - &_Void_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Void* other); - friend void swap(Void& a, Void& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Void* New() const final { - return CreateMaybeMessage(nullptr); - } - - Void* 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 Void& from); - void MergeFrom(const Void& 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(Void* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.core.Void) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Blob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Blob) */ { - public: - Blob(); - virtual ~Blob(); - - Blob(const Blob& from); - - inline Blob& operator=(const Blob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Blob(Blob&& from) noexcept - : Blob() { - *this = ::std::move(from); - } - - inline Blob& operator=(Blob&& 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 Blob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Blob* internal_default_instance() { - return reinterpret_cast( - &_Blob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Blob* other); - friend void swap(Blob& a, Blob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Blob* New() const final { - return CreateMaybeMessage(nullptr); - } - - Blob* 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 Blob& from); - void MergeFrom(const Blob& 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(Blob* 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 ------------------------------------------------------- - - // string uri = 3; - void clear_uri(); - static const int kUriFieldNumber = 3; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - // .flyteidl.core.BlobMetadata metadata = 1; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 1; - const ::flyteidl::core::BlobMetadata& metadata() const; - ::flyteidl::core::BlobMetadata* release_metadata(); - ::flyteidl::core::BlobMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr uri_; - ::flyteidl::core::BlobMetadata* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class BlobMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobMetadata) */ { - public: - BlobMetadata(); - virtual ~BlobMetadata(); - - BlobMetadata(const BlobMetadata& from); - - inline BlobMetadata& operator=(const BlobMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BlobMetadata(BlobMetadata&& from) noexcept - : BlobMetadata() { - *this = ::std::move(from); - } - - inline BlobMetadata& operator=(BlobMetadata&& 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 BlobMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BlobMetadata* internal_default_instance() { - return reinterpret_cast( - &_BlobMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(BlobMetadata* other); - friend void swap(BlobMetadata& a, BlobMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BlobMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - BlobMetadata* 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 BlobMetadata& from); - void MergeFrom(const BlobMetadata& 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(BlobMetadata* 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.BlobType type = 1; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 1; - const ::flyteidl::core::BlobType& type() const; - ::flyteidl::core::BlobType* release_type(); - ::flyteidl::core::BlobType* mutable_type(); - void set_allocated_type(::flyteidl::core::BlobType* type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::BlobType* type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Binary final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binary) */ { - public: - Binary(); - virtual ~Binary(); - - Binary(const Binary& from); - - inline Binary& operator=(const Binary& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Binary(Binary&& from) noexcept - : Binary() { - *this = ::std::move(from); - } - - inline Binary& operator=(Binary&& 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 Binary& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Binary* internal_default_instance() { - return reinterpret_cast( - &_Binary_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(Binary* other); - friend void swap(Binary& a, Binary& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Binary* New() const final { - return CreateMaybeMessage(nullptr); - } - - Binary* 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 Binary& from); - void MergeFrom(const Binary& 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(Binary* 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 ------------------------------------------------------- - - // bytes value = 1; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const void* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // string tag = 2; - void clear_tag(); - static const int kTagFieldNumber = 2; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); - #if LANG_CXX11 - void set_tag(::std::string&& value); - #endif - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr value_; - ::google::protobuf::internal::ArenaStringPtr tag_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Schema final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Schema) */ { - public: - Schema(); - virtual ~Schema(); - - Schema(const Schema& from); - - inline Schema& operator=(const Schema& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Schema(Schema&& from) noexcept - : Schema() { - *this = ::std::move(from); - } - - inline Schema& operator=(Schema&& 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 Schema& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Schema* internal_default_instance() { - return reinterpret_cast( - &_Schema_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(Schema* other); - friend void swap(Schema& a, Schema& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Schema* New() const final { - return CreateMaybeMessage(nullptr); - } - - Schema* 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 Schema& from); - void MergeFrom(const Schema& 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(Schema* 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 ------------------------------------------------------- - - // string uri = 1; - void clear_uri(); - static const int kUriFieldNumber = 1; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - // .flyteidl.core.SchemaType type = 3; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 3; - const ::flyteidl::core::SchemaType& type() const; - ::flyteidl::core::SchemaType* release_type(); - ::flyteidl::core::SchemaType* mutable_type(); - void set_allocated_type(::flyteidl::core::SchemaType* type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr uri_; - ::flyteidl::core::SchemaType* type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Union final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Union) */ { - public: - Union(); - virtual ~Union(); - - Union(const Union& from); - - inline Union& operator=(const Union& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Union(Union&& from) noexcept - : Union() { - *this = ::std::move(from); - } - - inline Union& operator=(Union&& 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 Union& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Union* internal_default_instance() { - return reinterpret_cast( - &_Union_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(Union* other); - friend void swap(Union& a, Union& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Union* New() const final { - return CreateMaybeMessage(nullptr); - } - - Union* 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 Union& from); - void MergeFrom(const Union& 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(Union* 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.Literal value = 1; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // .flyteidl.core.LiteralType type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Union) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Literal* value_; - ::flyteidl::core::LiteralType* type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class StructuredDatasetMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetMetadata) */ { - public: - StructuredDatasetMetadata(); - virtual ~StructuredDatasetMetadata(); - - StructuredDatasetMetadata(const StructuredDatasetMetadata& from); - - inline StructuredDatasetMetadata& operator=(const StructuredDatasetMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StructuredDatasetMetadata(StructuredDatasetMetadata&& from) noexcept - : StructuredDatasetMetadata() { - *this = ::std::move(from); - } - - inline StructuredDatasetMetadata& operator=(StructuredDatasetMetadata&& 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 StructuredDatasetMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StructuredDatasetMetadata* internal_default_instance() { - return reinterpret_cast( - &_StructuredDatasetMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(StructuredDatasetMetadata* other); - friend void swap(StructuredDatasetMetadata& a, StructuredDatasetMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StructuredDatasetMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - StructuredDatasetMetadata* 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 StructuredDatasetMetadata& from); - void MergeFrom(const StructuredDatasetMetadata& 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(StructuredDatasetMetadata* 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.StructuredDatasetType structured_dataset_type = 1; - bool has_structured_dataset_type() const; - void clear_structured_dataset_type(); - static const int kStructuredDatasetTypeFieldNumber = 1; - const ::flyteidl::core::StructuredDatasetType& structured_dataset_type() const; - ::flyteidl::core::StructuredDatasetType* release_structured_dataset_type(); - ::flyteidl::core::StructuredDatasetType* mutable_structured_dataset_type(); - void set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class StructuredDataset final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDataset) */ { - public: - StructuredDataset(); - virtual ~StructuredDataset(); - - StructuredDataset(const StructuredDataset& from); - - inline StructuredDataset& operator=(const StructuredDataset& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StructuredDataset(StructuredDataset&& from) noexcept - : StructuredDataset() { - *this = ::std::move(from); - } - - inline StructuredDataset& operator=(StructuredDataset&& 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 StructuredDataset& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StructuredDataset* internal_default_instance() { - return reinterpret_cast( - &_StructuredDataset_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(StructuredDataset* other); - friend void swap(StructuredDataset& a, StructuredDataset& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StructuredDataset* New() const final { - return CreateMaybeMessage(nullptr); - } - - StructuredDataset* 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 StructuredDataset& from); - void MergeFrom(const StructuredDataset& 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(StructuredDataset* 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 ------------------------------------------------------- - - // string uri = 1; - void clear_uri(); - static const int kUriFieldNumber = 1; - const ::std::string& uri() const; - void set_uri(const ::std::string& value); - #if LANG_CXX11 - void set_uri(::std::string&& value); - #endif - void set_uri(const char* value); - void set_uri(const char* value, size_t size); - ::std::string* mutable_uri(); - ::std::string* release_uri(); - void set_allocated_uri(::std::string* uri); - - // .flyteidl.core.StructuredDatasetMetadata metadata = 2; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::flyteidl::core::StructuredDatasetMetadata& metadata() const; - ::flyteidl::core::StructuredDatasetMetadata* release_metadata(); - ::flyteidl::core::StructuredDatasetMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::StructuredDatasetMetadata* metadata); - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDataset) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr uri_; - ::flyteidl::core::StructuredDatasetMetadata* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Scalar final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Scalar) */ { - public: - Scalar(); - virtual ~Scalar(); - - Scalar(const Scalar& from); - - inline Scalar& operator=(const Scalar& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Scalar(Scalar&& from) noexcept - : Scalar() { - *this = ::std::move(from); - } - - inline Scalar& operator=(Scalar&& 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 Scalar& default_instance(); - - enum ValueCase { - kPrimitive = 1, - kBlob = 2, - kBinary = 3, - kSchema = 4, - kNoneType = 5, - kError = 6, - kGeneric = 7, - kStructuredDataset = 8, - kUnion = 9, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Scalar* internal_default_instance() { - return reinterpret_cast( - &_Scalar_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(Scalar* other); - friend void swap(Scalar& a, Scalar& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Scalar* New() const final { - return CreateMaybeMessage(nullptr); - } - - Scalar* 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 Scalar& from); - void MergeFrom(const Scalar& 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(Scalar* 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.Primitive primitive = 1; - bool has_primitive() const; - void clear_primitive(); - static const int kPrimitiveFieldNumber = 1; - const ::flyteidl::core::Primitive& primitive() const; - ::flyteidl::core::Primitive* release_primitive(); - ::flyteidl::core::Primitive* mutable_primitive(); - void set_allocated_primitive(::flyteidl::core::Primitive* primitive); - - // .flyteidl.core.Blob blob = 2; - bool has_blob() const; - void clear_blob(); - static const int kBlobFieldNumber = 2; - const ::flyteidl::core::Blob& blob() const; - ::flyteidl::core::Blob* release_blob(); - ::flyteidl::core::Blob* mutable_blob(); - void set_allocated_blob(::flyteidl::core::Blob* blob); - - // .flyteidl.core.Binary binary = 3; - bool has_binary() const; - void clear_binary(); - static const int kBinaryFieldNumber = 3; - const ::flyteidl::core::Binary& binary() const; - ::flyteidl::core::Binary* release_binary(); - ::flyteidl::core::Binary* mutable_binary(); - void set_allocated_binary(::flyteidl::core::Binary* binary); - - // .flyteidl.core.Schema schema = 4; - bool has_schema() const; - void clear_schema(); - static const int kSchemaFieldNumber = 4; - const ::flyteidl::core::Schema& schema() const; - ::flyteidl::core::Schema* release_schema(); - ::flyteidl::core::Schema* mutable_schema(); - void set_allocated_schema(::flyteidl::core::Schema* schema); - - // .flyteidl.core.Void none_type = 5; - bool has_none_type() const; - void clear_none_type(); - static const int kNoneTypeFieldNumber = 5; - const ::flyteidl::core::Void& none_type() const; - ::flyteidl::core::Void* release_none_type(); - ::flyteidl::core::Void* mutable_none_type(); - void set_allocated_none_type(::flyteidl::core::Void* none_type); - - // .flyteidl.core.Error error = 6; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 6; - const ::flyteidl::core::Error& error() const; - ::flyteidl::core::Error* release_error(); - ::flyteidl::core::Error* mutable_error(); - void set_allocated_error(::flyteidl::core::Error* error); - - // .google.protobuf.Struct generic = 7; - bool has_generic() const; - void clear_generic(); - static const int kGenericFieldNumber = 7; - const ::google::protobuf::Struct& generic() const; - ::google::protobuf::Struct* release_generic(); - ::google::protobuf::Struct* mutable_generic(); - void set_allocated_generic(::google::protobuf::Struct* generic); - - // .flyteidl.core.StructuredDataset structured_dataset = 8; - bool has_structured_dataset() const; - void clear_structured_dataset(); - static const int kStructuredDatasetFieldNumber = 8; - const ::flyteidl::core::StructuredDataset& structured_dataset() const; - ::flyteidl::core::StructuredDataset* release_structured_dataset(); - ::flyteidl::core::StructuredDataset* mutable_structured_dataset(); - void set_allocated_structured_dataset(::flyteidl::core::StructuredDataset* structured_dataset); - - // .flyteidl.core.Union union = 9; - bool has_union_() const; - void clear_union_(); - static const int kUnionFieldNumber = 9; - const ::flyteidl::core::Union& union_() const; - ::flyteidl::core::Union* release_union_(); - ::flyteidl::core::Union* mutable_union_(); - void set_allocated_union_(::flyteidl::core::Union* union_); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) - private: - class HasBitSetters; - void set_has_primitive(); - void set_has_blob(); - void set_has_binary(); - void set_has_schema(); - void set_has_none_type(); - void set_has_error(); - void set_has_generic(); - void set_has_structured_dataset(); - void set_has_union_(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - ::flyteidl::core::Primitive* primitive_; - ::flyteidl::core::Blob* blob_; - ::flyteidl::core::Binary* binary_; - ::flyteidl::core::Schema* schema_; - ::flyteidl::core::Void* none_type_; - ::flyteidl::core::Error* error_; - ::google::protobuf::Struct* generic_; - ::flyteidl::core::StructuredDataset* structured_dataset_; - ::flyteidl::core::Union* union__; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Literal_MetadataEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Literal_MetadataEntry_DoNotUse(); - Literal_MetadataEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Literal_MetadataEntry_DoNotUse& other); - static const Literal_MetadataEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Literal_MetadataEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Literal final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Literal) */ { - public: - Literal(); - virtual ~Literal(); - - Literal(const Literal& from); - - inline Literal& operator=(const Literal& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Literal(Literal&& from) noexcept - : Literal() { - *this = ::std::move(from); - } - - inline Literal& operator=(Literal&& 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 Literal& default_instance(); - - enum ValueCase { - kScalar = 1, - kCollection = 2, - kMap = 3, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Literal* internal_default_instance() { - return reinterpret_cast( - &_Literal_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(Literal* other); - friend void swap(Literal& a, Literal& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Literal* New() const final { - return CreateMaybeMessage(nullptr); - } - - Literal* 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 Literal& from); - void MergeFrom(const Literal& 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(Literal* 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 ------------------------------------------------------- - - // map metadata = 5; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 5; - const ::google::protobuf::Map< ::std::string, ::std::string >& - metadata() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_metadata(); - - // string hash = 4; - void clear_hash(); - static const int kHashFieldNumber = 4; - const ::std::string& hash() const; - void set_hash(const ::std::string& value); - #if LANG_CXX11 - void set_hash(::std::string&& value); - #endif - void set_hash(const char* value); - void set_hash(const char* value, size_t size); - ::std::string* mutable_hash(); - ::std::string* release_hash(); - void set_allocated_hash(::std::string* hash); - - // .flyteidl.core.Scalar scalar = 1; - bool has_scalar() const; - void clear_scalar(); - static const int kScalarFieldNumber = 1; - const ::flyteidl::core::Scalar& scalar() const; - ::flyteidl::core::Scalar* release_scalar(); - ::flyteidl::core::Scalar* mutable_scalar(); - void set_allocated_scalar(::flyteidl::core::Scalar* scalar); - - // .flyteidl.core.LiteralCollection collection = 2; - bool has_collection() const; - void clear_collection(); - static const int kCollectionFieldNumber = 2; - const ::flyteidl::core::LiteralCollection& collection() const; - ::flyteidl::core::LiteralCollection* release_collection(); - ::flyteidl::core::LiteralCollection* mutable_collection(); - void set_allocated_collection(::flyteidl::core::LiteralCollection* collection); - - // .flyteidl.core.LiteralMap map = 3; - bool has_map() const; - void clear_map(); - static const int kMapFieldNumber = 3; - const ::flyteidl::core::LiteralMap& map() const; - ::flyteidl::core::LiteralMap* release_map(); - ::flyteidl::core::LiteralMap* mutable_map(); - void set_allocated_map(::flyteidl::core::LiteralMap* map); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) - private: - class HasBitSetters; - void set_has_scalar(); - void set_has_collection(); - void set_has_map(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Literal_MetadataEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > metadata_; - ::google::protobuf::internal::ArenaStringPtr hash_; - union ValueUnion { - ValueUnion() {} - ::flyteidl::core::Scalar* scalar_; - ::flyteidl::core::LiteralCollection* collection_; - ::flyteidl::core::LiteralMap* map_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class LiteralCollection final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralCollection) */ { - public: - LiteralCollection(); - virtual ~LiteralCollection(); - - LiteralCollection(const LiteralCollection& from); - - inline LiteralCollection& operator=(const LiteralCollection& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LiteralCollection(LiteralCollection&& from) noexcept - : LiteralCollection() { - *this = ::std::move(from); - } - - inline LiteralCollection& operator=(LiteralCollection&& 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 LiteralCollection& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LiteralCollection* internal_default_instance() { - return reinterpret_cast( - &_LiteralCollection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(LiteralCollection* other); - friend void swap(LiteralCollection& a, LiteralCollection& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LiteralCollection* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiteralCollection* 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 LiteralCollection& from); - void MergeFrom(const LiteralCollection& 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(LiteralCollection* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Literal literals = 1; - int literals_size() const; - void clear_literals(); - static const int kLiteralsFieldNumber = 1; - ::flyteidl::core::Literal* mutable_literals(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* - mutable_literals(); - const ::flyteidl::core::Literal& literals(int index) const; - ::flyteidl::core::Literal* add_literals(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& - literals() const; - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal > literals_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class LiteralMap_LiteralsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - LiteralMap_LiteralsEntry_DoNotUse(); - LiteralMap_LiteralsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const LiteralMap_LiteralsEntry_DoNotUse& other); - static const LiteralMap_LiteralsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_LiteralMap_LiteralsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class LiteralMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralMap) */ { - public: - LiteralMap(); - virtual ~LiteralMap(); - - LiteralMap(const LiteralMap& from); - - inline LiteralMap& operator=(const LiteralMap& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LiteralMap(LiteralMap&& from) noexcept - : LiteralMap() { - *this = ::std::move(from); - } - - inline LiteralMap& operator=(LiteralMap&& 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 LiteralMap& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LiteralMap* internal_default_instance() { - return reinterpret_cast( - &_LiteralMap_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(LiteralMap* other); - friend void swap(LiteralMap& a, LiteralMap& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LiteralMap* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiteralMap* 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 LiteralMap& from); - void MergeFrom(const LiteralMap& 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(LiteralMap* 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 ------------------------------------------------------- - - // map literals = 1; - int literals_size() const; - void clear_literals(); - static const int kLiteralsFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& - literals() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* - mutable_literals(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - LiteralMap_LiteralsEntry_DoNotUse, - ::std::string, ::flyteidl::core::Literal, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > literals_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class BindingDataCollection final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataCollection) */ { - public: - BindingDataCollection(); - virtual ~BindingDataCollection(); - - BindingDataCollection(const BindingDataCollection& from); - - inline BindingDataCollection& operator=(const BindingDataCollection& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BindingDataCollection(BindingDataCollection&& from) noexcept - : BindingDataCollection() { - *this = ::std::move(from); - } - - inline BindingDataCollection& operator=(BindingDataCollection&& 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 BindingDataCollection& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BindingDataCollection* internal_default_instance() { - return reinterpret_cast( - &_BindingDataCollection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(BindingDataCollection* other); - friend void swap(BindingDataCollection& a, BindingDataCollection& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BindingDataCollection* New() const final { - return CreateMaybeMessage(nullptr); - } - - BindingDataCollection* 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 BindingDataCollection& from); - void MergeFrom(const BindingDataCollection& 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(BindingDataCollection* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.BindingData bindings = 1; - int bindings_size() const; - void clear_bindings(); - static const int kBindingsFieldNumber = 1; - ::flyteidl::core::BindingData* mutable_bindings(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* - mutable_bindings(); - const ::flyteidl::core::BindingData& bindings(int index) const; - ::flyteidl::core::BindingData* add_bindings(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& - bindings() const; - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData > bindings_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class BindingDataMap_BindingsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - BindingDataMap_BindingsEntry_DoNotUse(); - BindingDataMap_BindingsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const BindingDataMap_BindingsEntry_DoNotUse& other); - static const BindingDataMap_BindingsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_BindingDataMap_BindingsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class BindingDataMap final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingDataMap) */ { - public: - BindingDataMap(); - virtual ~BindingDataMap(); - - BindingDataMap(const BindingDataMap& from); - - inline BindingDataMap& operator=(const BindingDataMap& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BindingDataMap(BindingDataMap&& from) noexcept - : BindingDataMap() { - *this = ::std::move(from); - } - - inline BindingDataMap& operator=(BindingDataMap&& 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 BindingDataMap& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BindingDataMap* internal_default_instance() { - return reinterpret_cast( - &_BindingDataMap_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(BindingDataMap* other); - friend void swap(BindingDataMap& a, BindingDataMap& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BindingDataMap* New() const final { - return CreateMaybeMessage(nullptr); - } - - BindingDataMap* 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 BindingDataMap& from); - void MergeFrom(const BindingDataMap& 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(BindingDataMap* 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 ------------------------------------------------------- - - // map bindings = 1; - int bindings_size() const; - void clear_bindings(); - static const int kBindingsFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& - bindings() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* - mutable_bindings(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - BindingDataMap_BindingsEntry_DoNotUse, - ::std::string, ::flyteidl::core::BindingData, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > bindings_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class UnionInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.UnionInfo) */ { - public: - UnionInfo(); - virtual ~UnionInfo(); - - UnionInfo(const UnionInfo& from); - - inline UnionInfo& operator=(const UnionInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnionInfo(UnionInfo&& from) noexcept - : UnionInfo() { - *this = ::std::move(from); - } - - inline UnionInfo& operator=(UnionInfo&& 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 UnionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnionInfo* internal_default_instance() { - return reinterpret_cast( - &_UnionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void Swap(UnionInfo* other); - friend void swap(UnionInfo& a, UnionInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnionInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - UnionInfo* 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 UnionInfo& from); - void MergeFrom(const UnionInfo& 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(UnionInfo* 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.LiteralType targetType = 1; - bool has_targettype() const; - void clear_targettype(); - static const int kTargetTypeFieldNumber = 1; - const ::flyteidl::core::LiteralType& targettype() const; - ::flyteidl::core::LiteralType* release_targettype(); - ::flyteidl::core::LiteralType* mutable_targettype(); - void set_allocated_targettype(::flyteidl::core::LiteralType* targettype); - - // @@protoc_insertion_point(class_scope:flyteidl.core.UnionInfo) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::LiteralType* targettype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class BindingData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BindingData) */ { - public: - BindingData(); - virtual ~BindingData(); - - BindingData(const BindingData& from); - - inline BindingData& operator=(const BindingData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BindingData(BindingData&& from) noexcept - : BindingData() { - *this = ::std::move(from); - } - - inline BindingData& operator=(BindingData&& 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 BindingData& default_instance(); - - enum ValueCase { - kScalar = 1, - kCollection = 2, - kPromise = 3, - kMap = 4, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BindingData* internal_default_instance() { - return reinterpret_cast( - &_BindingData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(BindingData* other); - friend void swap(BindingData& a, BindingData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BindingData* New() const final { - return CreateMaybeMessage(nullptr); - } - - BindingData* 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 BindingData& from); - void MergeFrom(const BindingData& 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(BindingData* 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.UnionInfo union = 5; - bool has_union_() const; - void clear_union_(); - static const int kUnionFieldNumber = 5; - const ::flyteidl::core::UnionInfo& union_() const; - ::flyteidl::core::UnionInfo* release_union_(); - ::flyteidl::core::UnionInfo* mutable_union_(); - void set_allocated_union_(::flyteidl::core::UnionInfo* union_); - - // .flyteidl.core.Scalar scalar = 1; - bool has_scalar() const; - void clear_scalar(); - static const int kScalarFieldNumber = 1; - const ::flyteidl::core::Scalar& scalar() const; - ::flyteidl::core::Scalar* release_scalar(); - ::flyteidl::core::Scalar* mutable_scalar(); - void set_allocated_scalar(::flyteidl::core::Scalar* scalar); - - // .flyteidl.core.BindingDataCollection collection = 2; - bool has_collection() const; - void clear_collection(); - static const int kCollectionFieldNumber = 2; - const ::flyteidl::core::BindingDataCollection& collection() const; - ::flyteidl::core::BindingDataCollection* release_collection(); - ::flyteidl::core::BindingDataCollection* mutable_collection(); - void set_allocated_collection(::flyteidl::core::BindingDataCollection* collection); - - // .flyteidl.core.OutputReference promise = 3; - bool has_promise() const; - void clear_promise(); - static const int kPromiseFieldNumber = 3; - const ::flyteidl::core::OutputReference& promise() const; - ::flyteidl::core::OutputReference* release_promise(); - ::flyteidl::core::OutputReference* mutable_promise(); - void set_allocated_promise(::flyteidl::core::OutputReference* promise); - - // .flyteidl.core.BindingDataMap map = 4; - bool has_map() const; - void clear_map(); - static const int kMapFieldNumber = 4; - const ::flyteidl::core::BindingDataMap& map() const; - ::flyteidl::core::BindingDataMap* release_map(); - ::flyteidl::core::BindingDataMap* mutable_map(); - void set_allocated_map(::flyteidl::core::BindingDataMap* map); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) - private: - class HasBitSetters; - void set_has_scalar(); - void set_has_collection(); - void set_has_promise(); - void set_has_map(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::UnionInfo* union__; - union ValueUnion { - ValueUnion() {} - ::flyteidl::core::Scalar* scalar_; - ::flyteidl::core::BindingDataCollection* collection_; - ::flyteidl::core::OutputReference* promise_; - ::flyteidl::core::BindingDataMap* map_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class Binding final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Binding) */ { - public: - Binding(); - virtual ~Binding(); - - Binding(const Binding& from); - - inline Binding& operator=(const Binding& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Binding(Binding&& from) noexcept - : Binding() { - *this = ::std::move(from); - } - - inline Binding& operator=(Binding&& 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 Binding& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Binding* internal_default_instance() { - return reinterpret_cast( - &_Binding_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void Swap(Binding* other); - friend void swap(Binding& a, Binding& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Binding* New() const final { - return CreateMaybeMessage(nullptr); - } - - Binding* 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 Binding& from); - void MergeFrom(const Binding& 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(Binding* 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 ------------------------------------------------------- - - // string var = 1; - void clear_var(); - static const int kVarFieldNumber = 1; - const ::std::string& var() const; - void set_var(const ::std::string& value); - #if LANG_CXX11 - void set_var(::std::string&& value); - #endif - void set_var(const char* value); - void set_var(const char* value, size_t size); - ::std::string* mutable_var(); - ::std::string* release_var(); - void set_allocated_var(::std::string* var); - - // .flyteidl.core.BindingData binding = 2; - bool has_binding() const; - void clear_binding(); - static const int kBindingFieldNumber = 2; - const ::flyteidl::core::BindingData& binding() const; - ::flyteidl::core::BindingData* release_binding(); - ::flyteidl::core::BindingData* mutable_binding(); - void set_allocated_binding(::flyteidl::core::BindingData* binding); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr var_; - ::flyteidl::core::BindingData* binding_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class KeyValuePair final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.KeyValuePair) */ { - public: - KeyValuePair(); - virtual ~KeyValuePair(); - - KeyValuePair(const KeyValuePair& from); - - inline KeyValuePair& operator=(const KeyValuePair& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - KeyValuePair(KeyValuePair&& from) noexcept - : KeyValuePair() { - *this = ::std::move(from); - } - - inline KeyValuePair& operator=(KeyValuePair&& 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 KeyValuePair& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KeyValuePair* internal_default_instance() { - return reinterpret_cast( - &_KeyValuePair_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(KeyValuePair* other); - friend void swap(KeyValuePair& a, KeyValuePair& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline KeyValuePair* New() const final { - return CreateMaybeMessage(nullptr); - } - - KeyValuePair* 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 KeyValuePair& from); - void MergeFrom(const KeyValuePair& 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(KeyValuePair* 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 ------------------------------------------------------- - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// ------------------------------------------------------------------- - -class RetryStrategy final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RetryStrategy) */ { - public: - RetryStrategy(); - virtual ~RetryStrategy(); - - RetryStrategy(const RetryStrategy& from); - - inline RetryStrategy& operator=(const RetryStrategy& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RetryStrategy(RetryStrategy&& from) noexcept - : RetryStrategy() { - *this = ::std::move(from); - } - - inline RetryStrategy& operator=(RetryStrategy&& 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 RetryStrategy& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RetryStrategy* internal_default_instance() { - return reinterpret_cast( - &_RetryStrategy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(RetryStrategy* other); - friend void swap(RetryStrategy& a, RetryStrategy& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RetryStrategy* New() const final { - return CreateMaybeMessage(nullptr); - } - - RetryStrategy* 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 RetryStrategy& from); - void MergeFrom(const RetryStrategy& 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(RetryStrategy* 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 ------------------------------------------------------- - - // uint32 retries = 5; - void clear_retries(); - static const int kRetriesFieldNumber = 5; - ::google::protobuf::uint32 retries() const; - void set_retries(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::uint32 retries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fliterals_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Primitive - -// int64 integer = 1; -inline bool Primitive::has_integer() const { - return value_case() == kInteger; -} -inline void Primitive::set_has_integer() { - _oneof_case_[0] = kInteger; -} -inline void Primitive::clear_integer() { - if (has_integer()) { - value_.integer_ = PROTOBUF_LONGLONG(0); - clear_has_value(); - } -} -inline ::google::protobuf::int64 Primitive::integer() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.integer) - if (has_integer()) { - return value_.integer_; - } - return PROTOBUF_LONGLONG(0); -} -inline void Primitive::set_integer(::google::protobuf::int64 value) { - if (!has_integer()) { - clear_value(); - set_has_integer(); - } - value_.integer_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.integer) -} - -// double float_value = 2; -inline bool Primitive::has_float_value() const { - return value_case() == kFloatValue; -} -inline void Primitive::set_has_float_value() { - _oneof_case_[0] = kFloatValue; -} -inline void Primitive::clear_float_value() { - if (has_float_value()) { - value_.float_value_ = 0; - clear_has_value(); - } -} -inline double Primitive::float_value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.float_value) - if (has_float_value()) { - return value_.float_value_; - } - return 0; -} -inline void Primitive::set_float_value(double value) { - if (!has_float_value()) { - clear_value(); - set_has_float_value(); - } - value_.float_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.float_value) -} - -// string string_value = 3; -inline bool Primitive::has_string_value() const { - return value_case() == kStringValue; -} -inline void Primitive::set_has_string_value() { - _oneof_case_[0] = kStringValue; -} -inline void Primitive::clear_string_value() { - if (has_string_value()) { - value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_value(); - } -} -inline const ::std::string& Primitive::string_value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.string_value) - if (has_string_value()) { - return value_.string_value_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Primitive::set_string_value(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) -} -#if LANG_CXX11 -inline void Primitive::set_string_value(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.string_value) - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Primitive.string_value) -} -#endif -inline void Primitive::set_string_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Primitive.string_value) -} -inline void Primitive::set_string_value(const char* value, size_t size) { - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Primitive.string_value) -} -inline ::std::string* Primitive::mutable_string_value() { - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.string_value) - return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Primitive::release_string_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.string_value) - if (has_string_value()) { - clear_has_value(); - return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Primitive::set_allocated_string_value(::std::string* string_value) { - if (has_value()) { - clear_value(); - } - if (string_value != nullptr) { - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(string_value); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Primitive.string_value) -} - -// bool boolean = 4; -inline bool Primitive::has_boolean() const { - return value_case() == kBoolean; -} -inline void Primitive::set_has_boolean() { - _oneof_case_[0] = kBoolean; -} -inline void Primitive::clear_boolean() { - if (has_boolean()) { - value_.boolean_ = false; - clear_has_value(); - } -} -inline bool Primitive::boolean() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.boolean) - if (has_boolean()) { - return value_.boolean_; - } - return false; -} -inline void Primitive::set_boolean(bool value) { - if (!has_boolean()) { - clear_value(); - set_has_boolean(); - } - value_.boolean_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Primitive.boolean) -} - -// .google.protobuf.Timestamp datetime = 5; -inline bool Primitive::has_datetime() const { - return value_case() == kDatetime; -} -inline void Primitive::set_has_datetime() { - _oneof_case_[0] = kDatetime; -} -inline ::google::protobuf::Timestamp* Primitive::release_datetime() { - // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.datetime) - if (has_datetime()) { - clear_has_value(); - ::google::protobuf::Timestamp* temp = value_.datetime_; - value_.datetime_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Timestamp& Primitive::datetime() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.datetime) - return has_datetime() - ? *value_.datetime_ - : *reinterpret_cast< ::google::protobuf::Timestamp*>(&::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Primitive::mutable_datetime() { - if (!has_datetime()) { - clear_value(); - set_has_datetime(); - value_.datetime_ = CreateMaybeMessage< ::google::protobuf::Timestamp >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.datetime) - return value_.datetime_; -} - -// .google.protobuf.Duration duration = 6; -inline bool Primitive::has_duration() const { - return value_case() == kDuration; -} -inline void Primitive::set_has_duration() { - _oneof_case_[0] = kDuration; -} -inline ::google::protobuf::Duration* Primitive::release_duration() { - // @@protoc_insertion_point(field_release:flyteidl.core.Primitive.duration) - if (has_duration()) { - clear_has_value(); - ::google::protobuf::Duration* temp = value_.duration_; - value_.duration_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Duration& Primitive::duration() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Primitive.duration) - return has_duration() - ? *value_.duration_ - : *reinterpret_cast< ::google::protobuf::Duration*>(&::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* Primitive::mutable_duration() { - if (!has_duration()) { - clear_value(); - set_has_duration(); - value_.duration_ = CreateMaybeMessage< ::google::protobuf::Duration >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Primitive.duration) - return value_.duration_; -} - -inline bool Primitive::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void Primitive::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline Primitive::ValueCase Primitive::value_case() const { - return Primitive::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Void - -// ------------------------------------------------------------------- - -// Blob - -// .flyteidl.core.BlobMetadata metadata = 1; -inline bool Blob::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void Blob::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::BlobMetadata& Blob::metadata() const { - const ::flyteidl::core::BlobMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.Blob.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BlobMetadata_default_instance_); -} -inline ::flyteidl::core::BlobMetadata* Blob::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.Blob.metadata) - - ::flyteidl::core::BlobMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::BlobMetadata* Blob::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BlobMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.metadata) - return metadata_; -} -inline void Blob::set_allocated_metadata(::flyteidl::core::BlobMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.metadata) -} - -// string uri = 3; -inline void Blob::clear_uri() { - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Blob::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Blob.uri) - return uri_.GetNoArena(); -} -inline void Blob::set_uri(const ::std::string& value) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Blob.uri) -} -#if LANG_CXX11 -inline void Blob::set_uri(::std::string&& value) { - - uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Blob.uri) -} -#endif -inline void Blob::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Blob.uri) -} -inline void Blob::set_uri(const char* value, size_t size) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Blob.uri) -} -inline ::std::string* Blob::mutable_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Blob.uri) - return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Blob::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.Blob.uri) - - return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Blob::set_allocated_uri(::std::string* uri) { - if (uri != nullptr) { - - } else { - - } - uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Blob.uri) -} - -// ------------------------------------------------------------------- - -// BlobMetadata - -// .flyteidl.core.BlobType type = 1; -inline bool BlobMetadata::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::BlobType& BlobMetadata::type() const { - const ::flyteidl::core::BlobType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.core.BlobMetadata.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BlobType_default_instance_); -} -inline ::flyteidl::core::BlobType* BlobMetadata::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.BlobMetadata.type) - - ::flyteidl::core::BlobType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::BlobType* BlobMetadata::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BlobType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobMetadata.type) - return type_; -} -inline void BlobMetadata::set_allocated_type(::flyteidl::core::BlobType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobMetadata.type) -} - -// ------------------------------------------------------------------- - -// Binary - -// bytes value = 1; -inline void Binary::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Binary::value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Binary.value) - return value_.GetNoArena(); -} -inline void Binary::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Binary.value) -} -#if LANG_CXX11 -inline void Binary::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.value) -} -#endif -inline void Binary::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.value) -} -inline void Binary::set_value(const void* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.value) -} -inline ::std::string* Binary::mutable_value() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Binary::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.Binary.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Binary::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.value) -} - -// string tag = 2; -inline void Binary::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Binary::tag() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Binary.tag) - return tag_.GetNoArena(); -} -inline void Binary::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Binary.tag) -} -#if LANG_CXX11 -inline void Binary::set_tag(::std::string&& value) { - - tag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binary.tag) -} -#endif -inline void Binary::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Binary.tag) -} -inline void Binary::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binary.tag) -} -inline ::std::string* Binary::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Binary.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Binary::release_tag() { - // @@protoc_insertion_point(field_release:flyteidl.core.Binary.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Binary::set_allocated_tag(::std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binary.tag) -} - -// ------------------------------------------------------------------- - -// Schema - -// string uri = 1; -inline void Schema::clear_uri() { - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Schema::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Schema.uri) - return uri_.GetNoArena(); -} -inline void Schema::set_uri(const ::std::string& value) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Schema.uri) -} -#if LANG_CXX11 -inline void Schema::set_uri(::std::string&& value) { - - uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Schema.uri) -} -#endif -inline void Schema::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Schema.uri) -} -inline void Schema::set_uri(const char* value, size_t size) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Schema.uri) -} -inline ::std::string* Schema::mutable_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.uri) - return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Schema::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.Schema.uri) - - return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Schema::set_allocated_uri(::std::string* uri) { - if (uri != nullptr) { - - } else { - - } - uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.uri) -} - -// .flyteidl.core.SchemaType type = 3; -inline bool Schema::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::SchemaType& Schema::type() const { - const ::flyteidl::core::SchemaType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.core.Schema.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SchemaType_default_instance_); -} -inline ::flyteidl::core::SchemaType* Schema::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.Schema.type) - - ::flyteidl::core::SchemaType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::SchemaType* Schema::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SchemaType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Schema.type) - return type_; -} -inline void Schema::set_allocated_type(::flyteidl::core::SchemaType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Schema.type) -} - -// ------------------------------------------------------------------- - -// Union - -// .flyteidl.core.Literal value = 1; -inline bool Union::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline void Union::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -inline const ::flyteidl::core::Literal& Union::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:flyteidl.core.Union.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* Union::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.Union.value) - - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Literal* Union::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Union.value) - return value_; -} -inline void Union::set_allocated_value(::flyteidl::core::Literal* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete value_; - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Union.value) -} - -// .flyteidl.core.LiteralType type = 2; -inline bool Union::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& Union::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.core.Union.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* Union::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.Union.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* Union::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Union.type) - return type_; -} -inline void Union::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Union.type) -} - -// ------------------------------------------------------------------- - -// StructuredDatasetMetadata - -// .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; -inline bool StructuredDatasetMetadata::has_structured_dataset_type() const { - return this != internal_default_instance() && structured_dataset_type_ != nullptr; -} -inline const ::flyteidl::core::StructuredDatasetType& StructuredDatasetMetadata::structured_dataset_type() const { - const ::flyteidl::core::StructuredDatasetType* p = structured_dataset_type_; - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_StructuredDatasetType_default_instance_); -} -inline ::flyteidl::core::StructuredDatasetType* StructuredDatasetMetadata::release_structured_dataset_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) - - ::flyteidl::core::StructuredDatasetType* temp = structured_dataset_type_; - structured_dataset_type_ = nullptr; - return temp; -} -inline ::flyteidl::core::StructuredDatasetType* StructuredDatasetMetadata::mutable_structured_dataset_type() { - - if (structured_dataset_type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::StructuredDatasetType>(GetArenaNoVirtual()); - structured_dataset_type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) - return structured_dataset_type_; -} -inline void StructuredDatasetMetadata::set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(structured_dataset_type_); - } - if (structured_dataset_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - structured_dataset_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, structured_dataset_type, submessage_arena); - } - - } else { - - } - structured_dataset_type_ = structured_dataset_type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetMetadata.structured_dataset_type) -} - -// ------------------------------------------------------------------- - -// StructuredDataset - -// string uri = 1; -inline void StructuredDataset::clear_uri() { - uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StructuredDataset::uri() const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDataset.uri) - return uri_.GetNoArena(); -} -inline void StructuredDataset::set_uri(const ::std::string& value) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDataset.uri) -} -#if LANG_CXX11 -inline void StructuredDataset::set_uri(::std::string&& value) { - - uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDataset.uri) -} -#endif -inline void StructuredDataset::set_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDataset.uri) -} -inline void StructuredDataset::set_uri(const char* value, size_t size) { - - uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDataset.uri) -} -inline ::std::string* StructuredDataset::mutable_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDataset.uri) - return uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StructuredDataset::release_uri() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDataset.uri) - - return uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StructuredDataset::set_allocated_uri(::std::string* uri) { - if (uri != nullptr) { - - } else { - - } - uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDataset.uri) -} - -// .flyteidl.core.StructuredDatasetMetadata metadata = 2; -inline bool StructuredDataset::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void StructuredDataset::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::StructuredDatasetMetadata& StructuredDataset::metadata() const { - const ::flyteidl::core::StructuredDatasetMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDataset.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_StructuredDatasetMetadata_default_instance_); -} -inline ::flyteidl::core::StructuredDatasetMetadata* StructuredDataset::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDataset.metadata) - - ::flyteidl::core::StructuredDatasetMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::StructuredDatasetMetadata* StructuredDataset::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::StructuredDatasetMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDataset.metadata) - return metadata_; -} -inline void StructuredDataset::set_allocated_metadata(::flyteidl::core::StructuredDatasetMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDataset.metadata) -} - -// ------------------------------------------------------------------- - -// Scalar - -// .flyteidl.core.Primitive primitive = 1; -inline bool Scalar::has_primitive() const { - return value_case() == kPrimitive; -} -inline void Scalar::set_has_primitive() { - _oneof_case_[0] = kPrimitive; -} -inline void Scalar::clear_primitive() { - if (has_primitive()) { - delete value_.primitive_; - clear_has_value(); - } -} -inline ::flyteidl::core::Primitive* Scalar::release_primitive() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.primitive) - if (has_primitive()) { - clear_has_value(); - ::flyteidl::core::Primitive* temp = value_.primitive_; - value_.primitive_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Primitive& Scalar::primitive() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.primitive) - return has_primitive() - ? *value_.primitive_ - : *reinterpret_cast< ::flyteidl::core::Primitive*>(&::flyteidl::core::_Primitive_default_instance_); -} -inline ::flyteidl::core::Primitive* Scalar::mutable_primitive() { - if (!has_primitive()) { - clear_value(); - set_has_primitive(); - value_.primitive_ = CreateMaybeMessage< ::flyteidl::core::Primitive >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.primitive) - return value_.primitive_; -} - -// .flyteidl.core.Blob blob = 2; -inline bool Scalar::has_blob() const { - return value_case() == kBlob; -} -inline void Scalar::set_has_blob() { - _oneof_case_[0] = kBlob; -} -inline void Scalar::clear_blob() { - if (has_blob()) { - delete value_.blob_; - clear_has_value(); - } -} -inline ::flyteidl::core::Blob* Scalar::release_blob() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.blob) - if (has_blob()) { - clear_has_value(); - ::flyteidl::core::Blob* temp = value_.blob_; - value_.blob_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Blob& Scalar::blob() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.blob) - return has_blob() - ? *value_.blob_ - : *reinterpret_cast< ::flyteidl::core::Blob*>(&::flyteidl::core::_Blob_default_instance_); -} -inline ::flyteidl::core::Blob* Scalar::mutable_blob() { - if (!has_blob()) { - clear_value(); - set_has_blob(); - value_.blob_ = CreateMaybeMessage< ::flyteidl::core::Blob >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.blob) - return value_.blob_; -} - -// .flyteidl.core.Binary binary = 3; -inline bool Scalar::has_binary() const { - return value_case() == kBinary; -} -inline void Scalar::set_has_binary() { - _oneof_case_[0] = kBinary; -} -inline void Scalar::clear_binary() { - if (has_binary()) { - delete value_.binary_; - clear_has_value(); - } -} -inline ::flyteidl::core::Binary* Scalar::release_binary() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.binary) - if (has_binary()) { - clear_has_value(); - ::flyteidl::core::Binary* temp = value_.binary_; - value_.binary_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Binary& Scalar::binary() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.binary) - return has_binary() - ? *value_.binary_ - : *reinterpret_cast< ::flyteidl::core::Binary*>(&::flyteidl::core::_Binary_default_instance_); -} -inline ::flyteidl::core::Binary* Scalar::mutable_binary() { - if (!has_binary()) { - clear_value(); - set_has_binary(); - value_.binary_ = CreateMaybeMessage< ::flyteidl::core::Binary >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.binary) - return value_.binary_; -} - -// .flyteidl.core.Schema schema = 4; -inline bool Scalar::has_schema() const { - return value_case() == kSchema; -} -inline void Scalar::set_has_schema() { - _oneof_case_[0] = kSchema; -} -inline void Scalar::clear_schema() { - if (has_schema()) { - delete value_.schema_; - clear_has_value(); - } -} -inline ::flyteidl::core::Schema* Scalar::release_schema() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.schema) - if (has_schema()) { - clear_has_value(); - ::flyteidl::core::Schema* temp = value_.schema_; - value_.schema_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Schema& Scalar::schema() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.schema) - return has_schema() - ? *value_.schema_ - : *reinterpret_cast< ::flyteidl::core::Schema*>(&::flyteidl::core::_Schema_default_instance_); -} -inline ::flyteidl::core::Schema* Scalar::mutable_schema() { - if (!has_schema()) { - clear_value(); - set_has_schema(); - value_.schema_ = CreateMaybeMessage< ::flyteidl::core::Schema >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.schema) - return value_.schema_; -} - -// .flyteidl.core.Void none_type = 5; -inline bool Scalar::has_none_type() const { - return value_case() == kNoneType; -} -inline void Scalar::set_has_none_type() { - _oneof_case_[0] = kNoneType; -} -inline void Scalar::clear_none_type() { - if (has_none_type()) { - delete value_.none_type_; - clear_has_value(); - } -} -inline ::flyteidl::core::Void* Scalar::release_none_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.none_type) - if (has_none_type()) { - clear_has_value(); - ::flyteidl::core::Void* temp = value_.none_type_; - value_.none_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Void& Scalar::none_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.none_type) - return has_none_type() - ? *value_.none_type_ - : *reinterpret_cast< ::flyteidl::core::Void*>(&::flyteidl::core::_Void_default_instance_); -} -inline ::flyteidl::core::Void* Scalar::mutable_none_type() { - if (!has_none_type()) { - clear_value(); - set_has_none_type(); - value_.none_type_ = CreateMaybeMessage< ::flyteidl::core::Void >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.none_type) - return value_.none_type_; -} - -// .flyteidl.core.Error error = 6; -inline bool Scalar::has_error() const { - return value_case() == kError; -} -inline void Scalar::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::Error* Scalar::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.error) - if (has_error()) { - clear_has_value(); - ::flyteidl::core::Error* temp = value_.error_; - value_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Error& Scalar::error() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.error) - return has_error() - ? *value_.error_ - : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); -} -inline ::flyteidl::core::Error* Scalar::mutable_error() { - if (!has_error()) { - clear_value(); - set_has_error(); - value_.error_ = CreateMaybeMessage< ::flyteidl::core::Error >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.error) - return value_.error_; -} - -// .google.protobuf.Struct generic = 7; -inline bool Scalar::has_generic() const { - return value_case() == kGeneric; -} -inline void Scalar::set_has_generic() { - _oneof_case_[0] = kGeneric; -} -inline ::google::protobuf::Struct* Scalar::release_generic() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.generic) - if (has_generic()) { - clear_has_value(); - ::google::protobuf::Struct* temp = value_.generic_; - value_.generic_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::google::protobuf::Struct& Scalar::generic() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.generic) - return has_generic() - ? *value_.generic_ - : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* Scalar::mutable_generic() { - if (!has_generic()) { - clear_value(); - set_has_generic(); - value_.generic_ = CreateMaybeMessage< ::google::protobuf::Struct >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.generic) - return value_.generic_; -} - -// .flyteidl.core.StructuredDataset structured_dataset = 8; -inline bool Scalar::has_structured_dataset() const { - return value_case() == kStructuredDataset; -} -inline void Scalar::set_has_structured_dataset() { - _oneof_case_[0] = kStructuredDataset; -} -inline void Scalar::clear_structured_dataset() { - if (has_structured_dataset()) { - delete value_.structured_dataset_; - clear_has_value(); - } -} -inline ::flyteidl::core::StructuredDataset* Scalar::release_structured_dataset() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.structured_dataset) - if (has_structured_dataset()) { - clear_has_value(); - ::flyteidl::core::StructuredDataset* temp = value_.structured_dataset_; - value_.structured_dataset_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::StructuredDataset& Scalar::structured_dataset() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.structured_dataset) - return has_structured_dataset() - ? *value_.structured_dataset_ - : *reinterpret_cast< ::flyteidl::core::StructuredDataset*>(&::flyteidl::core::_StructuredDataset_default_instance_); -} -inline ::flyteidl::core::StructuredDataset* Scalar::mutable_structured_dataset() { - if (!has_structured_dataset()) { - clear_value(); - set_has_structured_dataset(); - value_.structured_dataset_ = CreateMaybeMessage< ::flyteidl::core::StructuredDataset >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.structured_dataset) - return value_.structured_dataset_; -} - -// .flyteidl.core.Union union = 9; -inline bool Scalar::has_union_() const { - return value_case() == kUnion; -} -inline void Scalar::set_has_union_() { - _oneof_case_[0] = kUnion; -} -inline void Scalar::clear_union_() { - if (has_union_()) { - delete value_.union__; - clear_has_value(); - } -} -inline ::flyteidl::core::Union* Scalar::release_union_() { - // @@protoc_insertion_point(field_release:flyteidl.core.Scalar.union) - if (has_union_()) { - clear_has_value(); - ::flyteidl::core::Union* temp = value_.union__; - value_.union__ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Union& Scalar::union_() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Scalar.union) - return has_union_() - ? *value_.union__ - : *reinterpret_cast< ::flyteidl::core::Union*>(&::flyteidl::core::_Union_default_instance_); -} -inline ::flyteidl::core::Union* Scalar::mutable_union_() { - if (!has_union_()) { - clear_value(); - set_has_union_(); - value_.union__ = CreateMaybeMessage< ::flyteidl::core::Union >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Scalar.union) - return value_.union__; -} - -inline bool Scalar::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void Scalar::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline Scalar::ValueCase Scalar::value_case() const { - return Scalar::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Literal - -// .flyteidl.core.Scalar scalar = 1; -inline bool Literal::has_scalar() const { - return value_case() == kScalar; -} -inline void Literal::set_has_scalar() { - _oneof_case_[0] = kScalar; -} -inline void Literal::clear_scalar() { - if (has_scalar()) { - delete value_.scalar_; - clear_has_value(); - } -} -inline ::flyteidl::core::Scalar* Literal::release_scalar() { - // @@protoc_insertion_point(field_release:flyteidl.core.Literal.scalar) - if (has_scalar()) { - clear_has_value(); - ::flyteidl::core::Scalar* temp = value_.scalar_; - value_.scalar_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Scalar& Literal::scalar() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Literal.scalar) - return has_scalar() - ? *value_.scalar_ - : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); -} -inline ::flyteidl::core::Scalar* Literal::mutable_scalar() { - if (!has_scalar()) { - clear_value(); - set_has_scalar(); - value_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.scalar) - return value_.scalar_; -} - -// .flyteidl.core.LiteralCollection collection = 2; -inline bool Literal::has_collection() const { - return value_case() == kCollection; -} -inline void Literal::set_has_collection() { - _oneof_case_[0] = kCollection; -} -inline void Literal::clear_collection() { - if (has_collection()) { - delete value_.collection_; - clear_has_value(); - } -} -inline ::flyteidl::core::LiteralCollection* Literal::release_collection() { - // @@protoc_insertion_point(field_release:flyteidl.core.Literal.collection) - if (has_collection()) { - clear_has_value(); - ::flyteidl::core::LiteralCollection* temp = value_.collection_; - value_.collection_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralCollection& Literal::collection() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Literal.collection) - return has_collection() - ? *value_.collection_ - : *reinterpret_cast< ::flyteidl::core::LiteralCollection*>(&::flyteidl::core::_LiteralCollection_default_instance_); -} -inline ::flyteidl::core::LiteralCollection* Literal::mutable_collection() { - if (!has_collection()) { - clear_value(); - set_has_collection(); - value_.collection_ = CreateMaybeMessage< ::flyteidl::core::LiteralCollection >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.collection) - return value_.collection_; -} - -// .flyteidl.core.LiteralMap map = 3; -inline bool Literal::has_map() const { - return value_case() == kMap; -} -inline void Literal::set_has_map() { - _oneof_case_[0] = kMap; -} -inline void Literal::clear_map() { - if (has_map()) { - delete value_.map_; - clear_has_value(); - } -} -inline ::flyteidl::core::LiteralMap* Literal::release_map() { - // @@protoc_insertion_point(field_release:flyteidl.core.Literal.map) - if (has_map()) { - clear_has_value(); - ::flyteidl::core::LiteralMap* temp = value_.map_; - value_.map_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& Literal::map() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Literal.map) - return has_map() - ? *value_.map_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* Literal::mutable_map() { - if (!has_map()) { - clear_value(); - set_has_map(); - value_.map_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.map) - return value_.map_; -} - -// string hash = 4; -inline void Literal::clear_hash() { - hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Literal::hash() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Literal.hash) - return hash_.GetNoArena(); -} -inline void Literal::set_hash(const ::std::string& value) { - - hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Literal.hash) -} -#if LANG_CXX11 -inline void Literal::set_hash(::std::string&& value) { - - hash_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Literal.hash) -} -#endif -inline void Literal::set_hash(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Literal.hash) -} -inline void Literal::set_hash(const char* value, size_t size) { - - hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Literal.hash) -} -inline ::std::string* Literal::mutable_hash() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Literal.hash) - return hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Literal::release_hash() { - // @@protoc_insertion_point(field_release:flyteidl.core.Literal.hash) - - return hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Literal::set_allocated_hash(::std::string* hash) { - if (hash != nullptr) { - - } else { - - } - hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), hash); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Literal.hash) -} - -// map metadata = 5; -inline int Literal::metadata_size() const { - return metadata_.size(); -} -inline void Literal::clear_metadata() { - metadata_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -Literal::metadata() const { - // @@protoc_insertion_point(field_map:flyteidl.core.Literal.metadata) - return metadata_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -Literal::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.Literal.metadata) - return metadata_.MutableMap(); -} - -inline bool Literal::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void Literal::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline Literal::ValueCase Literal::value_case() const { - return Literal::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// LiteralCollection - -// repeated .flyteidl.core.Literal literals = 1; -inline int LiteralCollection::literals_size() const { - return literals_.size(); -} -inline void LiteralCollection::clear_literals() { - literals_.Clear(); -} -inline ::flyteidl::core::Literal* LiteralCollection::mutable_literals(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralCollection.literals) - return literals_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >* -LiteralCollection::mutable_literals() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.LiteralCollection.literals) - return &literals_; -} -inline const ::flyteidl::core::Literal& LiteralCollection::literals(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralCollection.literals) - return literals_.Get(index); -} -inline ::flyteidl::core::Literal* LiteralCollection::add_literals() { - // @@protoc_insertion_point(field_add:flyteidl.core.LiteralCollection.literals) - return literals_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Literal >& -LiteralCollection::literals() const { - // @@protoc_insertion_point(field_list:flyteidl.core.LiteralCollection.literals) - return literals_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// LiteralMap - -// map literals = 1; -inline int LiteralMap::literals_size() const { - return literals_.size(); -} -inline void LiteralMap::clear_literals() { - literals_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >& -LiteralMap::literals() const { - // @@protoc_insertion_point(field_map:flyteidl.core.LiteralMap.literals) - return literals_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::Literal >* -LiteralMap::mutable_literals() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.LiteralMap.literals) - return literals_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// BindingDataCollection - -// repeated .flyteidl.core.BindingData bindings = 1; -inline int BindingDataCollection::bindings_size() const { - return bindings_.size(); -} -inline void BindingDataCollection::clear_bindings() { - bindings_.Clear(); -} -inline ::flyteidl::core::BindingData* BindingDataCollection::mutable_bindings(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingDataCollection.bindings) - return bindings_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >* -BindingDataCollection::mutable_bindings() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.BindingDataCollection.bindings) - return &bindings_; -} -inline const ::flyteidl::core::BindingData& BindingDataCollection::bindings(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.BindingDataCollection.bindings) - return bindings_.Get(index); -} -inline ::flyteidl::core::BindingData* BindingDataCollection::add_bindings() { - // @@protoc_insertion_point(field_add:flyteidl.core.BindingDataCollection.bindings) - return bindings_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::BindingData >& -BindingDataCollection::bindings() const { - // @@protoc_insertion_point(field_list:flyteidl.core.BindingDataCollection.bindings) - return bindings_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// BindingDataMap - -// map bindings = 1; -inline int BindingDataMap::bindings_size() const { - return bindings_.size(); -} -inline void BindingDataMap::clear_bindings() { - bindings_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >& -BindingDataMap::bindings() const { - // @@protoc_insertion_point(field_map:flyteidl.core.BindingDataMap.bindings) - return bindings_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::BindingData >* -BindingDataMap::mutable_bindings() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.BindingDataMap.bindings) - return bindings_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// UnionInfo - -// .flyteidl.core.LiteralType targetType = 1; -inline bool UnionInfo::has_targettype() const { - return this != internal_default_instance() && targettype_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& UnionInfo::targettype() const { - const ::flyteidl::core::LiteralType* p = targettype_; - // @@protoc_insertion_point(field_get:flyteidl.core.UnionInfo.targetType) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* UnionInfo::release_targettype() { - // @@protoc_insertion_point(field_release:flyteidl.core.UnionInfo.targetType) - - ::flyteidl::core::LiteralType* temp = targettype_; - targettype_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* UnionInfo::mutable_targettype() { - - if (targettype_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - targettype_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.UnionInfo.targetType) - return targettype_; -} -inline void UnionInfo::set_allocated_targettype(::flyteidl::core::LiteralType* targettype) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(targettype_); - } - if (targettype) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - targettype = ::google::protobuf::internal::GetOwnedMessage( - message_arena, targettype, submessage_arena); - } - - } else { - - } - targettype_ = targettype; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.UnionInfo.targetType) -} - -// ------------------------------------------------------------------- - -// BindingData - -// .flyteidl.core.Scalar scalar = 1; -inline bool BindingData::has_scalar() const { - return value_case() == kScalar; -} -inline void BindingData::set_has_scalar() { - _oneof_case_[0] = kScalar; -} -inline void BindingData::clear_scalar() { - if (has_scalar()) { - delete value_.scalar_; - clear_has_value(); - } -} -inline ::flyteidl::core::Scalar* BindingData::release_scalar() { - // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.scalar) - if (has_scalar()) { - clear_has_value(); - ::flyteidl::core::Scalar* temp = value_.scalar_; - value_.scalar_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Scalar& BindingData::scalar() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.scalar) - return has_scalar() - ? *value_.scalar_ - : *reinterpret_cast< ::flyteidl::core::Scalar*>(&::flyteidl::core::_Scalar_default_instance_); -} -inline ::flyteidl::core::Scalar* BindingData::mutable_scalar() { - if (!has_scalar()) { - clear_value(); - set_has_scalar(); - value_.scalar_ = CreateMaybeMessage< ::flyteidl::core::Scalar >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.scalar) - return value_.scalar_; -} - -// .flyteidl.core.BindingDataCollection collection = 2; -inline bool BindingData::has_collection() const { - return value_case() == kCollection; -} -inline void BindingData::set_has_collection() { - _oneof_case_[0] = kCollection; -} -inline void BindingData::clear_collection() { - if (has_collection()) { - delete value_.collection_; - clear_has_value(); - } -} -inline ::flyteidl::core::BindingDataCollection* BindingData::release_collection() { - // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.collection) - if (has_collection()) { - clear_has_value(); - ::flyteidl::core::BindingDataCollection* temp = value_.collection_; - value_.collection_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::BindingDataCollection& BindingData::collection() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.collection) - return has_collection() - ? *value_.collection_ - : *reinterpret_cast< ::flyteidl::core::BindingDataCollection*>(&::flyteidl::core::_BindingDataCollection_default_instance_); -} -inline ::flyteidl::core::BindingDataCollection* BindingData::mutable_collection() { - if (!has_collection()) { - clear_value(); - set_has_collection(); - value_.collection_ = CreateMaybeMessage< ::flyteidl::core::BindingDataCollection >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.collection) - return value_.collection_; -} - -// .flyteidl.core.OutputReference promise = 3; -inline bool BindingData::has_promise() const { - return value_case() == kPromise; -} -inline void BindingData::set_has_promise() { - _oneof_case_[0] = kPromise; -} -inline ::flyteidl::core::OutputReference* BindingData::release_promise() { - // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.promise) - if (has_promise()) { - clear_has_value(); - ::flyteidl::core::OutputReference* temp = value_.promise_; - value_.promise_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::OutputReference& BindingData::promise() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.promise) - return has_promise() - ? *value_.promise_ - : *reinterpret_cast< ::flyteidl::core::OutputReference*>(&::flyteidl::core::_OutputReference_default_instance_); -} -inline ::flyteidl::core::OutputReference* BindingData::mutable_promise() { - if (!has_promise()) { - clear_value(); - set_has_promise(); - value_.promise_ = CreateMaybeMessage< ::flyteidl::core::OutputReference >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.promise) - return value_.promise_; -} - -// .flyteidl.core.BindingDataMap map = 4; -inline bool BindingData::has_map() const { - return value_case() == kMap; -} -inline void BindingData::set_has_map() { - _oneof_case_[0] = kMap; -} -inline void BindingData::clear_map() { - if (has_map()) { - delete value_.map_; - clear_has_value(); - } -} -inline ::flyteidl::core::BindingDataMap* BindingData::release_map() { - // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.map) - if (has_map()) { - clear_has_value(); - ::flyteidl::core::BindingDataMap* temp = value_.map_; - value_.map_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::BindingDataMap& BindingData::map() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.map) - return has_map() - ? *value_.map_ - : *reinterpret_cast< ::flyteidl::core::BindingDataMap*>(&::flyteidl::core::_BindingDataMap_default_instance_); -} -inline ::flyteidl::core::BindingDataMap* BindingData::mutable_map() { - if (!has_map()) { - clear_value(); - set_has_map(); - value_.map_ = CreateMaybeMessage< ::flyteidl::core::BindingDataMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.map) - return value_.map_; -} - -// .flyteidl.core.UnionInfo union = 5; -inline bool BindingData::has_union_() const { - return this != internal_default_instance() && union__ != nullptr; -} -inline void BindingData::clear_union_() { - if (GetArenaNoVirtual() == nullptr && union__ != nullptr) { - delete union__; - } - union__ = nullptr; -} -inline const ::flyteidl::core::UnionInfo& BindingData::union_() const { - const ::flyteidl::core::UnionInfo* p = union__; - // @@protoc_insertion_point(field_get:flyteidl.core.BindingData.union) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_UnionInfo_default_instance_); -} -inline ::flyteidl::core::UnionInfo* BindingData::release_union_() { - // @@protoc_insertion_point(field_release:flyteidl.core.BindingData.union) - - ::flyteidl::core::UnionInfo* temp = union__; - union__ = nullptr; - return temp; -} -inline ::flyteidl::core::UnionInfo* BindingData::mutable_union_() { - - if (union__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::UnionInfo>(GetArenaNoVirtual()); - union__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BindingData.union) - return union__; -} -inline void BindingData::set_allocated_union_(::flyteidl::core::UnionInfo* union_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete union__; - } - if (union_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - union_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, union_, submessage_arena); - } - - } else { - - } - union__ = union_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BindingData.union) -} - -inline bool BindingData::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void BindingData::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline BindingData::ValueCase BindingData::value_case() const { - return BindingData::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Binding - -// string var = 1; -inline void Binding::clear_var() { - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Binding::var() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Binding.var) - return var_.GetNoArena(); -} -inline void Binding::set_var(const ::std::string& value) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Binding.var) -} -#if LANG_CXX11 -inline void Binding::set_var(::std::string&& value) { - - var_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Binding.var) -} -#endif -inline void Binding::set_var(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Binding.var) -} -inline void Binding::set_var(const char* value, size_t size) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Binding.var) -} -inline ::std::string* Binding::mutable_var() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.var) - return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Binding::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.Binding.var) - - return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Binding::set_allocated_var(::std::string* var) { - if (var != nullptr) { - - } else { - - } - var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.var) -} - -// .flyteidl.core.BindingData binding = 2; -inline bool Binding::has_binding() const { - return this != internal_default_instance() && binding_ != nullptr; -} -inline void Binding::clear_binding() { - if (GetArenaNoVirtual() == nullptr && binding_ != nullptr) { - delete binding_; - } - binding_ = nullptr; -} -inline const ::flyteidl::core::BindingData& Binding::binding() const { - const ::flyteidl::core::BindingData* p = binding_; - // @@protoc_insertion_point(field_get:flyteidl.core.Binding.binding) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BindingData_default_instance_); -} -inline ::flyteidl::core::BindingData* Binding::release_binding() { - // @@protoc_insertion_point(field_release:flyteidl.core.Binding.binding) - - ::flyteidl::core::BindingData* temp = binding_; - binding_ = nullptr; - return temp; -} -inline ::flyteidl::core::BindingData* Binding::mutable_binding() { - - if (binding_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BindingData>(GetArenaNoVirtual()); - binding_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Binding.binding) - return binding_; -} -inline void Binding::set_allocated_binding(::flyteidl::core::BindingData* binding) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete binding_; - } - if (binding) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - binding = ::google::protobuf::internal::GetOwnedMessage( - message_arena, binding, submessage_arena); - } - - } else { - - } - binding_ = binding; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Binding.binding) -} - -// ------------------------------------------------------------------- - -// KeyValuePair - -// string key = 1; -inline void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.key) - return key_.GetNoArena(); -} -inline void KeyValuePair::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.key) -} -#if LANG_CXX11 -inline void KeyValuePair::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.key) -} -#endif -inline void KeyValuePair::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.key) -} -inline ::std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.key) -} - -// string value = 2; -inline void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.KeyValuePair.value) - return value_.GetNoArena(); -} -inline void KeyValuePair::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.KeyValuePair.value) -} -#if LANG_CXX11 -inline void KeyValuePair::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.KeyValuePair.value) -} -#endif -inline void KeyValuePair::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.KeyValuePair.value) -} -inline ::std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.KeyValuePair.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.KeyValuePair.value) -} - -// ------------------------------------------------------------------- - -// RetryStrategy - -// uint32 retries = 5; -inline void RetryStrategy::clear_retries() { - retries_ = 0u; -} -inline ::google::protobuf::uint32 RetryStrategy::retries() const { - // @@protoc_insertion_point(field_get:flyteidl.core.RetryStrategy.retries) - return retries_; -} -inline void RetryStrategy::set_retries(::google::protobuf::uint32 value) { - - retries_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.RetryStrategy.retries) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fliterals_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc deleted file mode 100644 index e48bb1256e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/metrics.proto - -#include "flyteidl/core/metrics.pb.h" -#include "flyteidl/core/metrics.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h deleted file mode 100644 index 1bd56797b5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/metrics.proto -#ifndef GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED - -#include "flyteidl/core/metrics.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fmetrics_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc deleted file mode 100644 index cc19b46d3c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.cc +++ /dev/null @@ -1,930 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/metrics.proto - -#include "flyteidl/core/metrics.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace core { -class SpanDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::WorkflowExecutionIdentifier* workflow_id_; - const ::flyteidl::core::NodeExecutionIdentifier* node_id_; - const ::flyteidl::core::TaskExecutionIdentifier* task_id_; - ::google::protobuf::internal::ArenaStringPtr operation_id_; -} _Span_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsSpan_flyteidl_2fcore_2fmetrics_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Span_default_instance_; - new (ptr) ::flyteidl::core::Span(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Span::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSpan_flyteidl_2fcore_2fmetrics_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fmetrics_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fmetrics_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, start_time_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, end_time_), - offsetof(::flyteidl::core::SpanDefaultTypeInternal, workflow_id_), - offsetof(::flyteidl::core::SpanDefaultTypeInternal, node_id_), - offsetof(::flyteidl::core::SpanDefaultTypeInternal, task_id_), - offsetof(::flyteidl::core::SpanDefaultTypeInternal, operation_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, spans_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Span, id_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Span)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Span_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto, "flyteidl/core/metrics.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fmetrics_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fmetrics_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fmetrics_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fmetrics_2eproto[] = - "\n\033flyteidl/core/metrics.proto\022\rflyteidl." - "core\032\036flyteidl/core/identifier.proto\032\037go" - "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." - "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" - "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" - "eidl.core.WorkflowExecutionIdentifierH\000\022" - "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" - "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" - "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" - "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" - "lyteidl.core.SpanB\004\n\002idBstart_time_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::core::_Span_default_instance_._instance.get_mutable()->end_time_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::core::_Span_default_instance_.workflow_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::core::_Span_default_instance_.node_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::core::_Span_default_instance_.task_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); - ::flyteidl::core::_Span_default_instance_.operation_id_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class Span::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& start_time(const Span* msg); - static const ::google::protobuf::Timestamp& end_time(const Span* msg); - static const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_id(const Span* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& node_id(const Span* msg); - static const ::flyteidl::core::TaskExecutionIdentifier& task_id(const Span* msg); -}; - -const ::google::protobuf::Timestamp& -Span::HasBitSetters::start_time(const Span* msg) { - return *msg->start_time_; -} -const ::google::protobuf::Timestamp& -Span::HasBitSetters::end_time(const Span* msg) { - return *msg->end_time_; -} -const ::flyteidl::core::WorkflowExecutionIdentifier& -Span::HasBitSetters::workflow_id(const Span* msg) { - return *msg->id_.workflow_id_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -Span::HasBitSetters::node_id(const Span* msg) { - return *msg->id_.node_id_; -} -const ::flyteidl::core::TaskExecutionIdentifier& -Span::HasBitSetters::task_id(const Span* msg) { - return *msg->id_.task_id_; -} -void Span::clear_start_time() { - if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { - delete start_time_; - } - start_time_ = nullptr; -} -void Span::clear_end_time() { - if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { - delete end_time_; - } - end_time_ = nullptr; -} -void Span::set_allocated_workflow_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_id(); - if (workflow_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_id, submessage_arena); - } - set_has_workflow_id(); - id_.workflow_id_ = workflow_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.workflow_id) -} -void Span::clear_workflow_id() { - if (has_workflow_id()) { - delete id_.workflow_id_; - clear_has_id(); - } -} -void Span::set_allocated_node_id(::flyteidl::core::NodeExecutionIdentifier* node_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_id(); - if (node_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node_id, submessage_arena); - } - set_has_node_id(); - id_.node_id_ = node_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.node_id) -} -void Span::clear_node_id() { - if (has_node_id()) { - delete id_.node_id_; - clear_has_id(); - } -} -void Span::set_allocated_task_id(::flyteidl::core::TaskExecutionIdentifier* task_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_id(); - if (task_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_id, submessage_arena); - } - set_has_task_id(); - id_.task_id_ = task_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.task_id) -} -void Span::clear_task_id() { - if (has_task_id()) { - delete id_.task_id_; - clear_has_id(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Span::kStartTimeFieldNumber; -const int Span::kEndTimeFieldNumber; -const int Span::kWorkflowIdFieldNumber; -const int Span::kNodeIdFieldNumber; -const int Span::kTaskIdFieldNumber; -const int Span::kOperationIdFieldNumber; -const int Span::kSpansFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Span::Span() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Span) -} -Span::Span(const Span& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - spans_(from.spans_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_start_time()) { - start_time_ = new ::google::protobuf::Timestamp(*from.start_time_); - } else { - start_time_ = nullptr; - } - if (from.has_end_time()) { - end_time_ = new ::google::protobuf::Timestamp(*from.end_time_); - } else { - end_time_ = nullptr; - } - clear_has_id(); - switch (from.id_case()) { - case kWorkflowId: { - mutable_workflow_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_id()); - break; - } - case kNodeId: { - mutable_node_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_id()); - break; - } - case kTaskId: { - mutable_task_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_id()); - break; - } - case kOperationId: { - set_operation_id(from.operation_id()); - break; - } - case ID_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Span) -} - -void Span::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); - ::memset(&start_time_, 0, static_cast( - reinterpret_cast(&end_time_) - - reinterpret_cast(&start_time_)) + sizeof(end_time_)); - clear_has_id(); -} - -Span::~Span() { - // @@protoc_insertion_point(destructor:flyteidl.core.Span) - SharedDtor(); -} - -void Span::SharedDtor() { - if (this != internal_default_instance()) delete start_time_; - if (this != internal_default_instance()) delete end_time_; - if (has_id()) { - clear_id(); - } -} - -void Span::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Span& Span::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Span_flyteidl_2fcore_2fmetrics_2eproto.base); - return *internal_default_instance(); -} - - -void Span::clear_id() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Span) - switch (id_case()) { - case kWorkflowId: { - delete id_.workflow_id_; - break; - } - case kNodeId: { - delete id_.node_id_; - break; - } - case kTaskId: { - delete id_.task_id_; - break; - } - case kOperationId: { - id_.operation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case ID_NOT_SET: { - break; - } - } - _oneof_case_[0] = ID_NOT_SET; -} - - -void Span::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Span) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - spans_.Clear(); - if (GetArenaNoVirtual() == nullptr && start_time_ != nullptr) { - delete start_time_; - } - start_time_ = nullptr; - if (GetArenaNoVirtual() == nullptr && end_time_ != nullptr) { - delete end_time_; - } - end_time_ = nullptr; - clear_id(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Span::_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) { - // .google.protobuf.Timestamp start_time = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_start_time(); - 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; - } - // .google.protobuf.Timestamp end_time = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_end_time(); - 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.core.WorkflowExecutionIdentifier workflow_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_workflow_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; - } - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_node_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; - } - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_task_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; - } - // string operation_id = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Span.operation_id"); - object = msg->mutable_operation_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.core.Span spans = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Span::_InternalParse; - object = msg->add_spans(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Span::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.core.Span) - 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)) { - // .google.protobuf.Timestamp start_time = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_start_time())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp end_time = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_end_time())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_id())); - } else { - goto handle_unusual; - } - break; - } - - // string operation_id = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_operation_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operation_id().data(), static_cast(this->operation_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Span.operation_id")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Span spans = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_spans())); - } 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.core.Span) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Span) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Span::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Span) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Timestamp start_time = 1; - if (this->has_start_time()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::start_time(this), output); - } - - // .google.protobuf.Timestamp end_time = 2; - if (this->has_end_time()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::end_time(this), output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - if (has_workflow_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::workflow_id(this), output); - } - - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - if (has_node_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::node_id(this), output); - } - - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - if (has_task_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::task_id(this), output); - } - - // string operation_id = 6; - if (has_operation_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operation_id().data(), static_cast(this->operation_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Span.operation_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->operation_id(), output); - } - - // repeated .flyteidl.core.Span spans = 7; - for (unsigned int i = 0, - n = static_cast(this->spans_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, - this->spans(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Span) -} - -::google::protobuf::uint8* Span::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Span) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Timestamp start_time = 1; - if (this->has_start_time()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::start_time(this), target); - } - - // .google.protobuf.Timestamp end_time = 2; - if (this->has_end_time()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::end_time(this), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - if (has_workflow_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::workflow_id(this), target); - } - - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - if (has_node_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::node_id(this), target); - } - - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - if (has_task_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::task_id(this), target); - } - - // string operation_id = 6; - if (has_operation_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->operation_id().data(), static_cast(this->operation_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Span.operation_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->operation_id(), target); - } - - // repeated .flyteidl.core.Span spans = 7; - for (unsigned int i = 0, - n = static_cast(this->spans_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, this->spans(static_cast(i)), 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.core.Span) - return target; -} - -size_t Span::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Span) - 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; - - // repeated .flyteidl.core.Span spans = 7; - { - unsigned int count = static_cast(this->spans_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->spans(static_cast(i))); - } - } - - // .google.protobuf.Timestamp start_time = 1; - if (this->has_start_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *start_time_); - } - - // .google.protobuf.Timestamp end_time = 2; - if (this->has_end_time()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *end_time_); - } - - switch (id_case()) { - // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - case kWorkflowId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_.workflow_id_); - break; - } - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - case kNodeId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_.node_id_); - break; - } - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - case kTaskId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_.task_id_); - break; - } - // string operation_id = 6; - case kOperationId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->operation_id()); - break; - } - case ID_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Span::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Span) - GOOGLE_DCHECK_NE(&from, this); - const Span* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Span) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Span) - MergeFrom(*source); - } -} - -void Span::MergeFrom(const Span& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Span) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - spans_.MergeFrom(from.spans_); - if (from.has_start_time()) { - mutable_start_time()->::google::protobuf::Timestamp::MergeFrom(from.start_time()); - } - if (from.has_end_time()) { - mutable_end_time()->::google::protobuf::Timestamp::MergeFrom(from.end_time()); - } - switch (from.id_case()) { - case kWorkflowId: { - mutable_workflow_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.workflow_id()); - break; - } - case kNodeId: { - mutable_node_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_id()); - break; - } - case kTaskId: { - mutable_task_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_id()); - break; - } - case kOperationId: { - set_operation_id(from.operation_id()); - break; - } - case ID_NOT_SET: { - break; - } - } -} - -void Span::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Span) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Span::CopyFrom(const Span& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Span) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Span::IsInitialized() const { - return true; -} - -void Span::Swap(Span* other) { - if (other == this) return; - InternalSwap(other); -} -void Span::InternalSwap(Span* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&spans_)->InternalSwap(CastToBase(&other->spans_)); - swap(start_time_, other->start_time_); - swap(end_time_, other->end_time_); - swap(id_, other->id_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Span::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fmetrics_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fmetrics_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Span* Arena::CreateMaybeMessage< ::flyteidl::core::Span >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Span >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h deleted file mode 100644 index c19d6f944f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/metrics.pb.h +++ /dev/null @@ -1,627 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/metrics.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/identifier.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fmetrics_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fmetrics_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fmetrics_2eproto(); -namespace flyteidl { -namespace core { -class Span; -class SpanDefaultTypeInternal; -extern SpanDefaultTypeInternal _Span_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Span* Arena::CreateMaybeMessage<::flyteidl::core::Span>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class Span final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Span) */ { - public: - Span(); - virtual ~Span(); - - Span(const Span& from); - - inline Span& operator=(const Span& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Span(Span&& from) noexcept - : Span() { - *this = ::std::move(from); - } - - inline Span& operator=(Span&& 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 Span& default_instance(); - - enum IdCase { - kWorkflowId = 3, - kNodeId = 4, - kTaskId = 5, - kOperationId = 6, - ID_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Span* internal_default_instance() { - return reinterpret_cast( - &_Span_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Span* other); - friend void swap(Span& a, Span& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Span* New() const final { - return CreateMaybeMessage(nullptr); - } - - Span* 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 Span& from); - void MergeFrom(const Span& 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(Span* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Span spans = 7; - int spans_size() const; - void clear_spans(); - static const int kSpansFieldNumber = 7; - ::flyteidl::core::Span* mutable_spans(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >* - mutable_spans(); - const ::flyteidl::core::Span& spans(int index) const; - ::flyteidl::core::Span* add_spans(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >& - spans() const; - - // .google.protobuf.Timestamp start_time = 1; - bool has_start_time() const; - void clear_start_time(); - static const int kStartTimeFieldNumber = 1; - const ::google::protobuf::Timestamp& start_time() const; - ::google::protobuf::Timestamp* release_start_time(); - ::google::protobuf::Timestamp* mutable_start_time(); - void set_allocated_start_time(::google::protobuf::Timestamp* start_time); - - // .google.protobuf.Timestamp end_time = 2; - bool has_end_time() const; - void clear_end_time(); - static const int kEndTimeFieldNumber = 2; - const ::google::protobuf::Timestamp& end_time() const; - ::google::protobuf::Timestamp* release_end_time(); - ::google::protobuf::Timestamp* mutable_end_time(); - void set_allocated_end_time(::google::protobuf::Timestamp* end_time); - - // .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - bool has_workflow_id() const; - void clear_workflow_id(); - static const int kWorkflowIdFieldNumber = 3; - const ::flyteidl::core::WorkflowExecutionIdentifier& workflow_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_workflow_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_workflow_id(); - void set_allocated_workflow_id(::flyteidl::core::WorkflowExecutionIdentifier* workflow_id); - - // .flyteidl.core.NodeExecutionIdentifier node_id = 4; - bool has_node_id() const; - void clear_node_id(); - static const int kNodeIdFieldNumber = 4; - const ::flyteidl::core::NodeExecutionIdentifier& node_id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_node_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_node_id(); - void set_allocated_node_id(::flyteidl::core::NodeExecutionIdentifier* node_id); - - // .flyteidl.core.TaskExecutionIdentifier task_id = 5; - bool has_task_id() const; - void clear_task_id(); - static const int kTaskIdFieldNumber = 5; - const ::flyteidl::core::TaskExecutionIdentifier& task_id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_task_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_task_id(); - void set_allocated_task_id(::flyteidl::core::TaskExecutionIdentifier* task_id); - - // string operation_id = 6; - private: - bool has_operation_id() const; - public: - void clear_operation_id(); - static const int kOperationIdFieldNumber = 6; - const ::std::string& operation_id() const; - void set_operation_id(const ::std::string& value); - #if LANG_CXX11 - void set_operation_id(::std::string&& value); - #endif - void set_operation_id(const char* value); - void set_operation_id(const char* value, size_t size); - ::std::string* mutable_operation_id(); - ::std::string* release_operation_id(); - void set_allocated_operation_id(::std::string* operation_id); - - void clear_id(); - IdCase id_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Span) - private: - class HasBitSetters; - void set_has_workflow_id(); - void set_has_node_id(); - void set_has_task_id(); - void set_has_operation_id(); - - inline bool has_id() const; - inline void clear_has_id(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span > spans_; - ::google::protobuf::Timestamp* start_time_; - ::google::protobuf::Timestamp* end_time_; - union IdUnion { - IdUnion() {} - ::flyteidl::core::WorkflowExecutionIdentifier* workflow_id_; - ::flyteidl::core::NodeExecutionIdentifier* node_id_; - ::flyteidl::core::TaskExecutionIdentifier* task_id_; - ::google::protobuf::internal::ArenaStringPtr operation_id_; - } id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fmetrics_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Span - -// .google.protobuf.Timestamp start_time = 1; -inline bool Span::has_start_time() const { - return this != internal_default_instance() && start_time_ != nullptr; -} -inline const ::google::protobuf::Timestamp& Span::start_time() const { - const ::google::protobuf::Timestamp* p = start_time_; - // @@protoc_insertion_point(field_get:flyteidl.core.Span.start_time) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Span::release_start_time() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.start_time) - - ::google::protobuf::Timestamp* temp = start_time_; - start_time_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Span::mutable_start_time() { - - if (start_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - start_time_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.start_time) - return start_time_; -} -inline void Span::set_allocated_start_time(::google::protobuf::Timestamp* start_time) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(start_time_); - } - if (start_time) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(start_time)->GetArena(); - if (message_arena != submessage_arena) { - start_time = ::google::protobuf::internal::GetOwnedMessage( - message_arena, start_time, submessage_arena); - } - - } else { - - } - start_time_ = start_time; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.start_time) -} - -// .google.protobuf.Timestamp end_time = 2; -inline bool Span::has_end_time() const { - return this != internal_default_instance() && end_time_ != nullptr; -} -inline const ::google::protobuf::Timestamp& Span::end_time() const { - const ::google::protobuf::Timestamp* p = end_time_; - // @@protoc_insertion_point(field_get:flyteidl.core.Span.end_time) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Span::release_end_time() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.end_time) - - ::google::protobuf::Timestamp* temp = end_time_; - end_time_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Span::mutable_end_time() { - - if (end_time_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - end_time_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.end_time) - return end_time_; -} -inline void Span::set_allocated_end_time(::google::protobuf::Timestamp* end_time) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(end_time_); - } - if (end_time) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(end_time)->GetArena(); - if (message_arena != submessage_arena) { - end_time = ::google::protobuf::internal::GetOwnedMessage( - message_arena, end_time, submessage_arena); - } - - } else { - - } - end_time_ = end_time; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.end_time) -} - -// .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; -inline bool Span::has_workflow_id() const { - return id_case() == kWorkflowId; -} -inline void Span::set_has_workflow_id() { - _oneof_case_[0] = kWorkflowId; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Span::release_workflow_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.workflow_id) - if (has_workflow_id()) { - clear_has_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* temp = id_.workflow_id_; - id_.workflow_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& Span::workflow_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Span.workflow_id) - return has_workflow_id() - ? *id_.workflow_id_ - : *reinterpret_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>(&::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Span::mutable_workflow_id() { - if (!has_workflow_id()) { - clear_id(); - set_has_workflow_id(); - id_.workflow_id_ = CreateMaybeMessage< ::flyteidl::core::WorkflowExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.workflow_id) - return id_.workflow_id_; -} - -// .flyteidl.core.NodeExecutionIdentifier node_id = 4; -inline bool Span::has_node_id() const { - return id_case() == kNodeId; -} -inline void Span::set_has_node_id() { - _oneof_case_[0] = kNodeId; -} -inline ::flyteidl::core::NodeExecutionIdentifier* Span::release_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.node_id) - if (has_node_id()) { - clear_has_id(); - ::flyteidl::core::NodeExecutionIdentifier* temp = id_.node_id_; - id_.node_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::NodeExecutionIdentifier& Span::node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Span.node_id) - return has_node_id() - ? *id_.node_id_ - : *reinterpret_cast< ::flyteidl::core::NodeExecutionIdentifier*>(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* Span::mutable_node_id() { - if (!has_node_id()) { - clear_id(); - set_has_node_id(); - id_.node_id_ = CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.node_id) - return id_.node_id_; -} - -// .flyteidl.core.TaskExecutionIdentifier task_id = 5; -inline bool Span::has_task_id() const { - return id_case() == kTaskId; -} -inline void Span::set_has_task_id() { - _oneof_case_[0] = kTaskId; -} -inline ::flyteidl::core::TaskExecutionIdentifier* Span::release_task_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.task_id) - if (has_task_id()) { - clear_has_id(); - ::flyteidl::core::TaskExecutionIdentifier* temp = id_.task_id_; - id_.task_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::TaskExecutionIdentifier& Span::task_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Span.task_id) - return has_task_id() - ? *id_.task_id_ - : *reinterpret_cast< ::flyteidl::core::TaskExecutionIdentifier*>(&::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* Span::mutable_task_id() { - if (!has_task_id()) { - clear_id(); - set_has_task_id(); - id_.task_id_ = CreateMaybeMessage< ::flyteidl::core::TaskExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.task_id) - return id_.task_id_; -} - -// string operation_id = 6; -inline bool Span::has_operation_id() const { - return id_case() == kOperationId; -} -inline void Span::set_has_operation_id() { - _oneof_case_[0] = kOperationId; -} -inline void Span::clear_operation_id() { - if (has_operation_id()) { - id_.operation_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_id(); - } -} -inline const ::std::string& Span::operation_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Span.operation_id) - if (has_operation_id()) { - return id_.operation_id_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Span::set_operation_id(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) - if (!has_operation_id()) { - clear_id(); - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) -} -#if LANG_CXX11 -inline void Span::set_operation_id(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Span.operation_id) - if (!has_operation_id()) { - clear_id(); - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Span.operation_id) -} -#endif -inline void Span::set_operation_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_operation_id()) { - clear_id(); - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Span.operation_id) -} -inline void Span::set_operation_id(const char* value, size_t size) { - if (!has_operation_id()) { - clear_id(); - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - id_.operation_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Span.operation_id) -} -inline ::std::string* Span::mutable_operation_id() { - if (!has_operation_id()) { - clear_id(); - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.operation_id) - return id_.operation_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Span::release_operation_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Span.operation_id) - if (has_operation_id()) { - clear_has_id(); - return id_.operation_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void Span::set_allocated_operation_id(::std::string* operation_id) { - if (has_id()) { - clear_id(); - } - if (operation_id != nullptr) { - set_has_operation_id(); - id_.operation_id_.UnsafeSetDefault(operation_id); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Span.operation_id) -} - -// repeated .flyteidl.core.Span spans = 7; -inline int Span::spans_size() const { - return spans_.size(); -} -inline void Span::clear_spans() { - spans_.Clear(); -} -inline ::flyteidl::core::Span* Span::mutable_spans(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Span.spans) - return spans_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >* -Span::mutable_spans() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Span.spans) - return &spans_; -} -inline const ::flyteidl::core::Span& Span::spans(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Span.spans) - return spans_.Get(index); -} -inline ::flyteidl::core::Span* Span::add_spans() { - // @@protoc_insertion_point(field_add:flyteidl.core.Span.spans) - return spans_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Span >& -Span::spans() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Span.spans) - return spans_; -} - -inline bool Span::has_id() const { - return id_case() != ID_NOT_SET; -} -inline void Span::clear_has_id() { - _oneof_case_[0] = ID_NOT_SET; -} -inline Span::IdCase Span::id_case() const { - return Span::IdCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fmetrics_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc deleted file mode 100644 index 8260e8bed5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/security.proto - -#include "flyteidl/core/security.pb.h" -#include "flyteidl/core/security.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h deleted file mode 100644 index 2bac085949..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/security.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/security.proto -#ifndef GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED - -#include "flyteidl/core/security.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fsecurity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc deleted file mode 100644 index a429955ef2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.cc +++ /dev/null @@ -1,2641 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/security.proto - -#include "flyteidl/core/security.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto; -namespace flyteidl { -namespace core { -class SecretDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Secret_default_instance_; -class OAuth2ClientDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _OAuth2Client_default_instance_; -class IdentityDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Identity_default_instance_; -class OAuth2TokenRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _OAuth2TokenRequest_default_instance_; -class SecurityContextDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SecurityContext_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsSecret_flyteidl_2fcore_2fsecurity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Secret_default_instance_; - new (ptr) ::flyteidl::core::Secret(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Secret::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSecret_flyteidl_2fcore_2fsecurity_2eproto}, {}}; - -static void InitDefaultsOAuth2Client_flyteidl_2fcore_2fsecurity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_OAuth2Client_default_instance_; - new (ptr) ::flyteidl::core::OAuth2Client(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::OAuth2Client::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOAuth2Client_flyteidl_2fcore_2fsecurity_2eproto}, { - &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base,}}; - -static void InitDefaultsIdentity_flyteidl_2fcore_2fsecurity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Identity_default_instance_; - new (ptr) ::flyteidl::core::Identity(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Identity::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsIdentity_flyteidl_2fcore_2fsecurity_2eproto}, { - &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base,}}; - -static void InitDefaultsOAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_OAuth2TokenRequest_default_instance_; - new (ptr) ::flyteidl::core::OAuth2TokenRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::OAuth2TokenRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto}, { - &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base,}}; - -static void InitDefaultsSecurityContext_flyteidl_2fcore_2fsecurity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SecurityContext_default_instance_; - new (ptr) ::flyteidl::core::SecurityContext(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SecurityContext::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSecurityContext_flyteidl_2fcore_2fsecurity_2eproto}, { - &scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fsecurity_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[5]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fsecurity_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fsecurity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, group_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, group_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Secret, mount_requirement_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, client_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2Client, client_secret_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, iam_role_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, k8s_service_account_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, oauth2_client_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Identity, execution_identity_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, client_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, idp_discovery_endpoint_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OAuth2TokenRequest, token_endpoint_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, run_as_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, secrets_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SecurityContext, tokens_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Secret)}, - { 9, -1, sizeof(::flyteidl::core::OAuth2Client)}, - { 16, -1, sizeof(::flyteidl::core::Identity)}, - { 25, -1, sizeof(::flyteidl::core::OAuth2TokenRequest)}, - { 35, -1, sizeof(::flyteidl::core::SecurityContext)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Secret_default_instance_), - reinterpret_cast(&::flyteidl::core::_OAuth2Client_default_instance_), - reinterpret_cast(&::flyteidl::core::_Identity_default_instance_), - reinterpret_cast(&::flyteidl::core::_OAuth2TokenRequest_default_instance_), - reinterpret_cast(&::flyteidl::core::_SecurityContext_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto, "flyteidl/core/security.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fsecurity_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto, 5, file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fsecurity_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fsecurity_2eproto[] = - "\n\034flyteidl/core/security.proto\022\rflyteidl" - ".core\"\244\001\n\006Secret\022\r\n\005group\030\001 \001(\t\022\025\n\rgroup" - "_version\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022:\n\021mount_req" - "uirement\030\004 \001(\0162\037.flyteidl.core.Secret.Mo" - "untType\"+\n\tMountType\022\007\n\003ANY\020\000\022\013\n\007ENV_VAR" - "\020\001\022\010\n\004FILE\020\002\"O\n\014OAuth2Client\022\021\n\tclient_i" - "d\030\001 \001(\t\022,\n\rclient_secret\030\002 \001(\0132\025.flyteid" - "l.core.Secret\"\211\001\n\010Identity\022\020\n\010iam_role\030\001" - " \001(\t\022\033\n\023k8s_service_account\030\002 \001(\t\0222\n\roau" - "th2_client\030\003 \001(\0132\033.flyteidl.core.OAuth2C" - "lient\022\032\n\022execution_identity\030\004 \001(\t\"\335\001\n\022OA" - "uth2TokenRequest\022\014\n\004name\030\001 \001(\t\0224\n\004type\030\002" - " \001(\0162&.flyteidl.core.OAuth2TokenRequest." - "Type\022+\n\006client\030\003 \001(\0132\033.flyteidl.core.OAu" - "th2Client\022\036\n\026idp_discovery_endpoint\030\004 \001(" - "\t\022\026\n\016token_endpoint\030\005 \001(\t\"\036\n\004Type\022\026\n\022CLI" - "ENT_CREDENTIALS\020\000\"\225\001\n\017SecurityContext\022\'\n" - "\006run_as\030\001 \001(\0132\027.flyteidl.core.Identity\022&" - "\n\007secrets\030\002 \003(\0132\025.flyteidl.core.Secret\0221" - "\n\006tokens\030\003 \003(\0132!.flyteidl.core.OAuth2Tok" - "enRequestB= 1900 -const Secret_MountType Secret::ANY; -const Secret_MountType Secret::ENV_VAR; -const Secret_MountType Secret::FILE; -const Secret_MountType Secret::MountType_MIN; -const Secret_MountType Secret::MountType_MAX; -const int Secret::MountType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* OAuth2TokenRequest_Type_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2fsecurity_2eproto[1]; -} -bool OAuth2TokenRequest_Type_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const OAuth2TokenRequest_Type OAuth2TokenRequest::CLIENT_CREDENTIALS; -const OAuth2TokenRequest_Type OAuth2TokenRequest::Type_MIN; -const OAuth2TokenRequest_Type OAuth2TokenRequest::Type_MAX; -const int OAuth2TokenRequest::Type_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void Secret::InitAsDefaultInstance() { -} -class Secret::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Secret::kGroupFieldNumber; -const int Secret::kGroupVersionFieldNumber; -const int Secret::kKeyFieldNumber; -const int Secret::kMountRequirementFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Secret::Secret() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Secret) -} -Secret::Secret(const Secret& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.group().size() > 0) { - group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); - } - group_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.group_version().size() > 0) { - group_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_version_); - } - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - mount_requirement_ = from.mount_requirement_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Secret) -} - -void Secret::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); - group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - group_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mount_requirement_ = 0; -} - -Secret::~Secret() { - // @@protoc_insertion_point(destructor:flyteidl.core.Secret) - SharedDtor(); -} - -void Secret::SharedDtor() { - group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - group_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Secret::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Secret& Secret::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Secret_flyteidl_2fcore_2fsecurity_2eproto.base); - return *internal_default_instance(); -} - - -void Secret::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Secret) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - group_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mount_requirement_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Secret::_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) { - // string group = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.group"); - object = msg->mutable_group(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string group_version = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.group_version"); - object = msg->mutable_group_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string key = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Secret.key"); - object = msg->mutable_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Secret.MountType mount_requirement = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_mount_requirement(static_cast<::flyteidl::core::Secret_MountType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Secret::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.core.Secret) - 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)) { - // string group = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_group())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group().data(), static_cast(this->group().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Secret.group")); - } else { - goto handle_unusual; - } - break; - } - - // string group_version = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_group_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_version().data(), static_cast(this->group_version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Secret.group_version")); - } else { - goto handle_unusual; - } - break; - } - - // string key = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Secret.key")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Secret.MountType mount_requirement = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_mount_requirement(static_cast< ::flyteidl::core::Secret_MountType >(value)); - } 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.core.Secret) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Secret) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Secret::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Secret) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string group = 1; - if (this->group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group().data(), static_cast(this->group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.group"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->group(), output); - } - - // string group_version = 2; - if (this->group_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_version().data(), static_cast(this->group_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.group_version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->group_version(), output); - } - - // string key = 3; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->key(), output); - } - - // .flyteidl.core.Secret.MountType mount_requirement = 4; - if (this->mount_requirement() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->mount_requirement(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Secret) -} - -::google::protobuf::uint8* Secret::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Secret) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string group = 1; - if (this->group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group().data(), static_cast(this->group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.group"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->group(), target); - } - - // string group_version = 2; - if (this->group_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_version().data(), static_cast(this->group_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.group_version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->group_version(), target); - } - - // string key = 3; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Secret.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->key(), target); - } - - // .flyteidl.core.Secret.MountType mount_requirement = 4; - if (this->mount_requirement() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->mount_requirement(), 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.core.Secret) - return target; -} - -size_t Secret::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Secret) - 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; - - // string group = 1; - if (this->group().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->group()); - } - - // string group_version = 2; - if (this->group_version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->group_version()); - } - - // string key = 3; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // .flyteidl.core.Secret.MountType mount_requirement = 4; - if (this->mount_requirement() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->mount_requirement()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Secret::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Secret) - GOOGLE_DCHECK_NE(&from, this); - const Secret* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Secret) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Secret) - MergeFrom(*source); - } -} - -void Secret::MergeFrom(const Secret& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Secret) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.group().size() > 0) { - - group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_); - } - if (from.group_version().size() > 0) { - - group_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_version_); - } - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.mount_requirement() != 0) { - set_mount_requirement(from.mount_requirement()); - } -} - -void Secret::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Secret) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Secret::CopyFrom(const Secret& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Secret) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Secret::IsInitialized() const { - return true; -} - -void Secret::Swap(Secret* other) { - if (other == this) return; - InternalSwap(other); -} -void Secret::InternalSwap(Secret* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - group_.Swap(&other->group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - group_version_.Swap(&other->group_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(mount_requirement_, other->mount_requirement_); -} - -::google::protobuf::Metadata Secret::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void OAuth2Client::InitAsDefaultInstance() { - ::flyteidl::core::_OAuth2Client_default_instance_._instance.get_mutable()->client_secret_ = const_cast< ::flyteidl::core::Secret*>( - ::flyteidl::core::Secret::internal_default_instance()); -} -class OAuth2Client::HasBitSetters { - public: - static const ::flyteidl::core::Secret& client_secret(const OAuth2Client* msg); -}; - -const ::flyteidl::core::Secret& -OAuth2Client::HasBitSetters::client_secret(const OAuth2Client* msg) { - return *msg->client_secret_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int OAuth2Client::kClientIdFieldNumber; -const int OAuth2Client::kClientSecretFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -OAuth2Client::OAuth2Client() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.OAuth2Client) -} -OAuth2Client::OAuth2Client(const OAuth2Client& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.client_id().size() > 0) { - client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); - } - if (from.has_client_secret()) { - client_secret_ = new ::flyteidl::core::Secret(*from.client_secret_); - } else { - client_secret_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.OAuth2Client) -} - -void OAuth2Client::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); - client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - client_secret_ = nullptr; -} - -OAuth2Client::~OAuth2Client() { - // @@protoc_insertion_point(destructor:flyteidl.core.OAuth2Client) - SharedDtor(); -} - -void OAuth2Client::SharedDtor() { - client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete client_secret_; -} - -void OAuth2Client::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OAuth2Client& OAuth2Client::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2Client_flyteidl_2fcore_2fsecurity_2eproto.base); - return *internal_default_instance(); -} - - -void OAuth2Client::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.OAuth2Client) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && client_secret_ != nullptr) { - delete client_secret_; - } - client_secret_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* OAuth2Client::_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) { - // string client_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2Client.client_id"); - object = msg->mutable_client_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Secret client_secret = 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::core::Secret::_InternalParse; - object = msg->mutable_client_secret(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool OAuth2Client::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.core.OAuth2Client) - 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)) { - // string client_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OAuth2Client.client_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Secret client_secret = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_client_secret())); - } 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.core.OAuth2Client) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.OAuth2Client) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void OAuth2Client::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.OAuth2Client) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string client_id = 1; - if (this->client_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2Client.client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->client_id(), output); - } - - // .flyteidl.core.Secret client_secret = 2; - if (this->has_client_secret()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::client_secret(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.OAuth2Client) -} - -::google::protobuf::uint8* OAuth2Client::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OAuth2Client) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string client_id = 1; - if (this->client_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2Client.client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->client_id(), target); - } - - // .flyteidl.core.Secret client_secret = 2; - if (this->has_client_secret()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::client_secret(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.core.OAuth2Client) - return target; -} - -size_t OAuth2Client::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OAuth2Client) - 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; - - // string client_id = 1; - if (this->client_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id()); - } - - // .flyteidl.core.Secret client_secret = 2; - if (this->has_client_secret()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *client_secret_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OAuth2Client::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OAuth2Client) - GOOGLE_DCHECK_NE(&from, this); - const OAuth2Client* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OAuth2Client) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OAuth2Client) - MergeFrom(*source); - } -} - -void OAuth2Client::MergeFrom(const OAuth2Client& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OAuth2Client) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.client_id().size() > 0) { - - client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); - } - if (from.has_client_secret()) { - mutable_client_secret()->::flyteidl::core::Secret::MergeFrom(from.client_secret()); - } -} - -void OAuth2Client::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OAuth2Client) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OAuth2Client::CopyFrom(const OAuth2Client& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OAuth2Client) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OAuth2Client::IsInitialized() const { - return true; -} - -void OAuth2Client::Swap(OAuth2Client* other) { - if (other == this) return; - InternalSwap(other); -} -void OAuth2Client::InternalSwap(OAuth2Client* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - client_id_.Swap(&other->client_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(client_secret_, other->client_secret_); -} - -::google::protobuf::Metadata OAuth2Client::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Identity::InitAsDefaultInstance() { - ::flyteidl::core::_Identity_default_instance_._instance.get_mutable()->oauth2_client_ = const_cast< ::flyteidl::core::OAuth2Client*>( - ::flyteidl::core::OAuth2Client::internal_default_instance()); -} -class Identity::HasBitSetters { - public: - static const ::flyteidl::core::OAuth2Client& oauth2_client(const Identity* msg); -}; - -const ::flyteidl::core::OAuth2Client& -Identity::HasBitSetters::oauth2_client(const Identity* msg) { - return *msg->oauth2_client_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Identity::kIamRoleFieldNumber; -const int Identity::kK8SServiceAccountFieldNumber; -const int Identity::kOauth2ClientFieldNumber; -const int Identity::kExecutionIdentityFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Identity::Identity() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Identity) -} -Identity::Identity(const Identity& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.iam_role().size() > 0) { - iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iam_role_); - } - k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.k8s_service_account().size() > 0) { - k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); - } - execution_identity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.execution_identity().size() > 0) { - execution_identity_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_identity_); - } - if (from.has_oauth2_client()) { - oauth2_client_ = new ::flyteidl::core::OAuth2Client(*from.oauth2_client_); - } else { - oauth2_client_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Identity) -} - -void Identity::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); - iam_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - execution_identity_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - oauth2_client_ = nullptr; -} - -Identity::~Identity() { - // @@protoc_insertion_point(destructor:flyteidl.core.Identity) - SharedDtor(); -} - -void Identity::SharedDtor() { - iam_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - execution_identity_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete oauth2_client_; -} - -void Identity::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Identity& Identity::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Identity_flyteidl_2fcore_2fsecurity_2eproto.base); - return *internal_default_instance(); -} - - -void Identity::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Identity) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - execution_identity_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && oauth2_client_ != nullptr) { - delete oauth2_client_; - } - oauth2_client_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Identity::_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) { - // string iam_role = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.iam_role"); - object = msg->mutable_iam_role(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string k8s_service_account = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.k8s_service_account"); - object = msg->mutable_k8s_service_account(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.OAuth2Client oauth2_client = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::OAuth2Client::_InternalParse; - object = msg->mutable_oauth2_client(); - 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; - } - // string execution_identity = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Identity.execution_identity"); - object = msg->mutable_execution_identity(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Identity::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.core.Identity) - 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)) { - // string iam_role = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_iam_role())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->iam_role().data(), static_cast(this->iam_role().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identity.iam_role")); - } else { - goto handle_unusual; - } - break; - } - - // string k8s_service_account = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_k8s_service_account())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identity.k8s_service_account")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.OAuth2Client oauth2_client = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_oauth2_client())); - } else { - goto handle_unusual; - } - break; - } - - // string execution_identity = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_execution_identity())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_identity().data(), static_cast(this->execution_identity().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Identity.execution_identity")); - } 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.core.Identity) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Identity) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Identity::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Identity) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string iam_role = 1; - if (this->iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->iam_role().data(), static_cast(this->iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.iam_role"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->iam_role(), output); - } - - // string k8s_service_account = 2; - if (this->k8s_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.k8s_service_account"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->k8s_service_account(), output); - } - - // .flyteidl.core.OAuth2Client oauth2_client = 3; - if (this->has_oauth2_client()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::oauth2_client(this), output); - } - - // string execution_identity = 4; - if (this->execution_identity().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_identity().data(), static_cast(this->execution_identity().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.execution_identity"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->execution_identity(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Identity) -} - -::google::protobuf::uint8* Identity::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Identity) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string iam_role = 1; - if (this->iam_role().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->iam_role().data(), static_cast(this->iam_role().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.iam_role"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->iam_role(), target); - } - - // string k8s_service_account = 2; - if (this->k8s_service_account().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->k8s_service_account().data(), static_cast(this->k8s_service_account().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.k8s_service_account"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->k8s_service_account(), target); - } - - // .flyteidl.core.OAuth2Client oauth2_client = 3; - if (this->has_oauth2_client()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::oauth2_client(this), target); - } - - // string execution_identity = 4; - if (this->execution_identity().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->execution_identity().data(), static_cast(this->execution_identity().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Identity.execution_identity"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->execution_identity(), 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.core.Identity) - return target; -} - -size_t Identity::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Identity) - 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; - - // string iam_role = 1; - if (this->iam_role().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->iam_role()); - } - - // string k8s_service_account = 2; - if (this->k8s_service_account().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->k8s_service_account()); - } - - // string execution_identity = 4; - if (this->execution_identity().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->execution_identity()); - } - - // .flyteidl.core.OAuth2Client oauth2_client = 3; - if (this->has_oauth2_client()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *oauth2_client_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Identity::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Identity) - GOOGLE_DCHECK_NE(&from, this); - const Identity* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Identity) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Identity) - MergeFrom(*source); - } -} - -void Identity::MergeFrom(const Identity& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Identity) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.iam_role().size() > 0) { - - iam_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.iam_role_); - } - if (from.k8s_service_account().size() > 0) { - - k8s_service_account_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.k8s_service_account_); - } - if (from.execution_identity().size() > 0) { - - execution_identity_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.execution_identity_); - } - if (from.has_oauth2_client()) { - mutable_oauth2_client()->::flyteidl::core::OAuth2Client::MergeFrom(from.oauth2_client()); - } -} - -void Identity::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Identity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Identity::CopyFrom(const Identity& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Identity) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Identity::IsInitialized() const { - return true; -} - -void Identity::Swap(Identity* other) { - if (other == this) return; - InternalSwap(other); -} -void Identity::InternalSwap(Identity* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - iam_role_.Swap(&other->iam_role_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - k8s_service_account_.Swap(&other->k8s_service_account_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - execution_identity_.Swap(&other->execution_identity_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(oauth2_client_, other->oauth2_client_); -} - -::google::protobuf::Metadata Identity::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void OAuth2TokenRequest::InitAsDefaultInstance() { - ::flyteidl::core::_OAuth2TokenRequest_default_instance_._instance.get_mutable()->client_ = const_cast< ::flyteidl::core::OAuth2Client*>( - ::flyteidl::core::OAuth2Client::internal_default_instance()); -} -class OAuth2TokenRequest::HasBitSetters { - public: - static const ::flyteidl::core::OAuth2Client& client(const OAuth2TokenRequest* msg); -}; - -const ::flyteidl::core::OAuth2Client& -OAuth2TokenRequest::HasBitSetters::client(const OAuth2TokenRequest* msg) { - return *msg->client_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int OAuth2TokenRequest::kNameFieldNumber; -const int OAuth2TokenRequest::kTypeFieldNumber; -const int OAuth2TokenRequest::kClientFieldNumber; -const int OAuth2TokenRequest::kIdpDiscoveryEndpointFieldNumber; -const int OAuth2TokenRequest::kTokenEndpointFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -OAuth2TokenRequest::OAuth2TokenRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.OAuth2TokenRequest) -} -OAuth2TokenRequest::OAuth2TokenRequest(const OAuth2TokenRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - idp_discovery_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.idp_discovery_endpoint().size() > 0) { - idp_discovery_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.idp_discovery_endpoint_); - } - token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token_endpoint().size() > 0) { - token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); - } - if (from.has_client()) { - client_ = new ::flyteidl::core::OAuth2Client(*from.client_); - } else { - client_ = nullptr; - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.OAuth2TokenRequest) -} - -void OAuth2TokenRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - idp_discovery_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&client_, 0, static_cast( - reinterpret_cast(&type_) - - reinterpret_cast(&client_)) + sizeof(type_)); -} - -OAuth2TokenRequest::~OAuth2TokenRequest() { - // @@protoc_insertion_point(destructor:flyteidl.core.OAuth2TokenRequest) - SharedDtor(); -} - -void OAuth2TokenRequest::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - idp_discovery_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete client_; -} - -void OAuth2TokenRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OAuth2TokenRequest& OAuth2TokenRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2TokenRequest_flyteidl_2fcore_2fsecurity_2eproto.base); - return *internal_default_instance(); -} - - -void OAuth2TokenRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.OAuth2TokenRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - idp_discovery_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && client_ != nullptr) { - delete client_; - } - client_ = nullptr; - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* OAuth2TokenRequest::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyteidl::core::OAuth2TokenRequest_Type>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.OAuth2Client client = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::OAuth2Client::_InternalParse; - object = msg->mutable_client(); - 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; - } - // string idp_discovery_endpoint = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); - object = msg->mutable_idp_discovery_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string token_endpoint = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OAuth2TokenRequest.token_endpoint"); - object = msg->mutable_token_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool OAuth2TokenRequest::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.core.OAuth2TokenRequest) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OAuth2TokenRequest.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::flyteidl::core::OAuth2TokenRequest_Type >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.OAuth2Client client = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_client())); - } else { - goto handle_unusual; - } - break; - } - - // string idp_discovery_endpoint = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_idp_discovery_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint")); - } else { - goto handle_unusual; - } - break; - } - - // string token_endpoint = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OAuth2TokenRequest.token_endpoint")); - } 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.core.OAuth2TokenRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.OAuth2TokenRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void OAuth2TokenRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.OAuth2TokenRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // .flyteidl.core.OAuth2Client client = 3; - if (this->has_client()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::client(this), output); - } - - // string idp_discovery_endpoint = 4; - if (this->idp_discovery_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->idp_discovery_endpoint(), output); - } - - // string token_endpoint = 5; - if (this->token_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.token_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->token_endpoint(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.OAuth2TokenRequest) -} - -::google::protobuf::uint8* OAuth2TokenRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OAuth2TokenRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // .flyteidl.core.OAuth2Client client = 3; - if (this->has_client()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::client(this), target); - } - - // string idp_discovery_endpoint = 4; - if (this->idp_discovery_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->idp_discovery_endpoint().data(), static_cast(this->idp_discovery_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->idp_discovery_endpoint(), target); - } - - // string token_endpoint = 5; - if (this->token_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OAuth2TokenRequest.token_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->token_endpoint(), 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.core.OAuth2TokenRequest) - return target; -} - -size_t OAuth2TokenRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OAuth2TokenRequest) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string idp_discovery_endpoint = 4; - if (this->idp_discovery_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->idp_discovery_endpoint()); - } - - // string token_endpoint = 5; - if (this->token_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token_endpoint()); - } - - // .flyteidl.core.OAuth2Client client = 3; - if (this->has_client()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *client_); - } - - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OAuth2TokenRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OAuth2TokenRequest) - GOOGLE_DCHECK_NE(&from, this); - const OAuth2TokenRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OAuth2TokenRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OAuth2TokenRequest) - MergeFrom(*source); - } -} - -void OAuth2TokenRequest::MergeFrom(const OAuth2TokenRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OAuth2TokenRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.idp_discovery_endpoint().size() > 0) { - - idp_discovery_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.idp_discovery_endpoint_); - } - if (from.token_endpoint().size() > 0) { - - token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); - } - if (from.has_client()) { - mutable_client()->::flyteidl::core::OAuth2Client::MergeFrom(from.client()); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void OAuth2TokenRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OAuth2TokenRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OAuth2TokenRequest::CopyFrom(const OAuth2TokenRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OAuth2TokenRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OAuth2TokenRequest::IsInitialized() const { - return true; -} - -void OAuth2TokenRequest::Swap(OAuth2TokenRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void OAuth2TokenRequest::InternalSwap(OAuth2TokenRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - idp_discovery_endpoint_.Swap(&other->idp_discovery_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_endpoint_.Swap(&other->token_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(client_, other->client_); - swap(type_, other->type_); -} - -::google::protobuf::Metadata OAuth2TokenRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SecurityContext::InitAsDefaultInstance() { - ::flyteidl::core::_SecurityContext_default_instance_._instance.get_mutable()->run_as_ = const_cast< ::flyteidl::core::Identity*>( - ::flyteidl::core::Identity::internal_default_instance()); -} -class SecurityContext::HasBitSetters { - public: - static const ::flyteidl::core::Identity& run_as(const SecurityContext* msg); -}; - -const ::flyteidl::core::Identity& -SecurityContext::HasBitSetters::run_as(const SecurityContext* msg) { - return *msg->run_as_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SecurityContext::kRunAsFieldNumber; -const int SecurityContext::kSecretsFieldNumber; -const int SecurityContext::kTokensFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SecurityContext::SecurityContext() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SecurityContext) -} -SecurityContext::SecurityContext(const SecurityContext& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - secrets_(from.secrets_), - tokens_(from.tokens_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_run_as()) { - run_as_ = new ::flyteidl::core::Identity(*from.run_as_); - } else { - run_as_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SecurityContext) -} - -void SecurityContext::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); - run_as_ = nullptr; -} - -SecurityContext::~SecurityContext() { - // @@protoc_insertion_point(destructor:flyteidl.core.SecurityContext) - SharedDtor(); -} - -void SecurityContext::SharedDtor() { - if (this != internal_default_instance()) delete run_as_; -} - -void SecurityContext::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SecurityContext& SecurityContext::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base); - return *internal_default_instance(); -} - - -void SecurityContext::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SecurityContext) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - secrets_.Clear(); - tokens_.Clear(); - if (GetArenaNoVirtual() == nullptr && run_as_ != nullptr) { - delete run_as_; - } - run_as_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SecurityContext::_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.Identity run_as = 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::Identity::_InternalParse; - object = msg->mutable_run_as(); - 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; - } - // repeated .flyteidl.core.Secret secrets = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Secret::_InternalParse; - object = msg->add_secrets(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::OAuth2TokenRequest::_InternalParse; - object = msg->add_tokens(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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 SecurityContext::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.core.SecurityContext) - 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.Identity run_as = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_run_as())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Secret secrets = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_secrets())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tokens())); - } 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.core.SecurityContext) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SecurityContext) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SecurityContext::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SecurityContext) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identity run_as = 1; - if (this->has_run_as()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::run_as(this), output); - } - - // repeated .flyteidl.core.Secret secrets = 2; - for (unsigned int i = 0, - n = static_cast(this->secrets_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->secrets(static_cast(i)), - output); - } - - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - for (unsigned int i = 0, - n = static_cast(this->tokens_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->tokens(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.SecurityContext) -} - -::google::protobuf::uint8* SecurityContext::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SecurityContext) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identity run_as = 1; - if (this->has_run_as()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::run_as(this), target); - } - - // repeated .flyteidl.core.Secret secrets = 2; - for (unsigned int i = 0, - n = static_cast(this->secrets_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->secrets(static_cast(i)), target); - } - - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - for (unsigned int i = 0, - n = static_cast(this->tokens_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->tokens(static_cast(i)), 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.core.SecurityContext) - return target; -} - -size_t SecurityContext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SecurityContext) - 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; - - // repeated .flyteidl.core.Secret secrets = 2; - { - unsigned int count = static_cast(this->secrets_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->secrets(static_cast(i))); - } - } - - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - { - unsigned int count = static_cast(this->tokens_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tokens(static_cast(i))); - } - } - - // .flyteidl.core.Identity run_as = 1; - if (this->has_run_as()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *run_as_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SecurityContext::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SecurityContext) - GOOGLE_DCHECK_NE(&from, this); - const SecurityContext* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SecurityContext) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SecurityContext) - MergeFrom(*source); - } -} - -void SecurityContext::MergeFrom(const SecurityContext& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SecurityContext) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - secrets_.MergeFrom(from.secrets_); - tokens_.MergeFrom(from.tokens_); - if (from.has_run_as()) { - mutable_run_as()->::flyteidl::core::Identity::MergeFrom(from.run_as()); - } -} - -void SecurityContext::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SecurityContext) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SecurityContext::CopyFrom(const SecurityContext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SecurityContext) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SecurityContext::IsInitialized() const { - return true; -} - -void SecurityContext::Swap(SecurityContext* other) { - if (other == this) return; - InternalSwap(other); -} -void SecurityContext::InternalSwap(SecurityContext* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&secrets_)->InternalSwap(CastToBase(&other->secrets_)); - CastToBase(&tokens_)->InternalSwap(CastToBase(&other->tokens_)); - swap(run_as_, other->run_as_); -} - -::google::protobuf::Metadata SecurityContext::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fsecurity_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fsecurity_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Secret* Arena::CreateMaybeMessage< ::flyteidl::core::Secret >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Secret >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::OAuth2Client* Arena::CreateMaybeMessage< ::flyteidl::core::OAuth2Client >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::OAuth2Client >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Identity* Arena::CreateMaybeMessage< ::flyteidl::core::Identity >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Identity >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::OAuth2TokenRequest* Arena::CreateMaybeMessage< ::flyteidl::core::OAuth2TokenRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::OAuth2TokenRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::SecurityContext* Arena::CreateMaybeMessage< ::flyteidl::core::SecurityContext >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SecurityContext >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h deleted file mode 100644 index d503075579..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/security.pb.h +++ /dev/null @@ -1,1818 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/security.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fsecurity_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[5] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fsecurity_2eproto(); -namespace flyteidl { -namespace core { -class Identity; -class IdentityDefaultTypeInternal; -extern IdentityDefaultTypeInternal _Identity_default_instance_; -class OAuth2Client; -class OAuth2ClientDefaultTypeInternal; -extern OAuth2ClientDefaultTypeInternal _OAuth2Client_default_instance_; -class OAuth2TokenRequest; -class OAuth2TokenRequestDefaultTypeInternal; -extern OAuth2TokenRequestDefaultTypeInternal _OAuth2TokenRequest_default_instance_; -class Secret; -class SecretDefaultTypeInternal; -extern SecretDefaultTypeInternal _Secret_default_instance_; -class SecurityContext; -class SecurityContextDefaultTypeInternal; -extern SecurityContextDefaultTypeInternal _SecurityContext_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Identity* Arena::CreateMaybeMessage<::flyteidl::core::Identity>(Arena*); -template<> ::flyteidl::core::OAuth2Client* Arena::CreateMaybeMessage<::flyteidl::core::OAuth2Client>(Arena*); -template<> ::flyteidl::core::OAuth2TokenRequest* Arena::CreateMaybeMessage<::flyteidl::core::OAuth2TokenRequest>(Arena*); -template<> ::flyteidl::core::Secret* Arena::CreateMaybeMessage<::flyteidl::core::Secret>(Arena*); -template<> ::flyteidl::core::SecurityContext* Arena::CreateMaybeMessage<::flyteidl::core::SecurityContext>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum Secret_MountType { - Secret_MountType_ANY = 0, - Secret_MountType_ENV_VAR = 1, - Secret_MountType_FILE = 2, - Secret_MountType_Secret_MountType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Secret_MountType_Secret_MountType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Secret_MountType_IsValid(int value); -const Secret_MountType Secret_MountType_MountType_MIN = Secret_MountType_ANY; -const Secret_MountType Secret_MountType_MountType_MAX = Secret_MountType_FILE; -const int Secret_MountType_MountType_ARRAYSIZE = Secret_MountType_MountType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Secret_MountType_descriptor(); -inline const ::std::string& Secret_MountType_Name(Secret_MountType value) { - return ::google::protobuf::internal::NameOfEnum( - Secret_MountType_descriptor(), value); -} -inline bool Secret_MountType_Parse( - const ::std::string& name, Secret_MountType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Secret_MountType_descriptor(), name, value); -} -enum OAuth2TokenRequest_Type { - OAuth2TokenRequest_Type_CLIENT_CREDENTIALS = 0, - OAuth2TokenRequest_Type_OAuth2TokenRequest_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - OAuth2TokenRequest_Type_OAuth2TokenRequest_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool OAuth2TokenRequest_Type_IsValid(int value); -const OAuth2TokenRequest_Type OAuth2TokenRequest_Type_Type_MIN = OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; -const OAuth2TokenRequest_Type OAuth2TokenRequest_Type_Type_MAX = OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; -const int OAuth2TokenRequest_Type_Type_ARRAYSIZE = OAuth2TokenRequest_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* OAuth2TokenRequest_Type_descriptor(); -inline const ::std::string& OAuth2TokenRequest_Type_Name(OAuth2TokenRequest_Type value) { - return ::google::protobuf::internal::NameOfEnum( - OAuth2TokenRequest_Type_descriptor(), value); -} -inline bool OAuth2TokenRequest_Type_Parse( - const ::std::string& name, OAuth2TokenRequest_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OAuth2TokenRequest_Type_descriptor(), name, value); -} -// =================================================================== - -class Secret final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Secret) */ { - public: - Secret(); - virtual ~Secret(); - - Secret(const Secret& from); - - inline Secret& operator=(const Secret& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Secret(Secret&& from) noexcept - : Secret() { - *this = ::std::move(from); - } - - inline Secret& operator=(Secret&& 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 Secret& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Secret* internal_default_instance() { - return reinterpret_cast( - &_Secret_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Secret* other); - friend void swap(Secret& a, Secret& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Secret* New() const final { - return CreateMaybeMessage(nullptr); - } - - Secret* 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 Secret& from); - void MergeFrom(const Secret& 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(Secret* 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 ---------------------------------------------------- - - typedef Secret_MountType MountType; - static const MountType ANY = - Secret_MountType_ANY; - static const MountType ENV_VAR = - Secret_MountType_ENV_VAR; - static const MountType FILE = - Secret_MountType_FILE; - static inline bool MountType_IsValid(int value) { - return Secret_MountType_IsValid(value); - } - static const MountType MountType_MIN = - Secret_MountType_MountType_MIN; - static const MountType MountType_MAX = - Secret_MountType_MountType_MAX; - static const int MountType_ARRAYSIZE = - Secret_MountType_MountType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - MountType_descriptor() { - return Secret_MountType_descriptor(); - } - static inline const ::std::string& MountType_Name(MountType value) { - return Secret_MountType_Name(value); - } - static inline bool MountType_Parse(const ::std::string& name, - MountType* value) { - return Secret_MountType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string group = 1; - void clear_group(); - static const int kGroupFieldNumber = 1; - const ::std::string& group() const; - void set_group(const ::std::string& value); - #if LANG_CXX11 - void set_group(::std::string&& value); - #endif - void set_group(const char* value); - void set_group(const char* value, size_t size); - ::std::string* mutable_group(); - ::std::string* release_group(); - void set_allocated_group(::std::string* group); - - // string group_version = 2; - void clear_group_version(); - static const int kGroupVersionFieldNumber = 2; - const ::std::string& group_version() const; - void set_group_version(const ::std::string& value); - #if LANG_CXX11 - void set_group_version(::std::string&& value); - #endif - void set_group_version(const char* value); - void set_group_version(const char* value, size_t size); - ::std::string* mutable_group_version(); - ::std::string* release_group_version(); - void set_allocated_group_version(::std::string* group_version); - - // string key = 3; - void clear_key(); - static const int kKeyFieldNumber = 3; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // .flyteidl.core.Secret.MountType mount_requirement = 4; - void clear_mount_requirement(); - static const int kMountRequirementFieldNumber = 4; - ::flyteidl::core::Secret_MountType mount_requirement() const; - void set_mount_requirement(::flyteidl::core::Secret_MountType value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Secret) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr group_; - ::google::protobuf::internal::ArenaStringPtr group_version_; - ::google::protobuf::internal::ArenaStringPtr key_; - int mount_requirement_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; -}; -// ------------------------------------------------------------------- - -class OAuth2Client final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OAuth2Client) */ { - public: - OAuth2Client(); - virtual ~OAuth2Client(); - - OAuth2Client(const OAuth2Client& from); - - inline OAuth2Client& operator=(const OAuth2Client& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OAuth2Client(OAuth2Client&& from) noexcept - : OAuth2Client() { - *this = ::std::move(from); - } - - inline OAuth2Client& operator=(OAuth2Client&& 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 OAuth2Client& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OAuth2Client* internal_default_instance() { - return reinterpret_cast( - &_OAuth2Client_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(OAuth2Client* other); - friend void swap(OAuth2Client& a, OAuth2Client& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OAuth2Client* New() const final { - return CreateMaybeMessage(nullptr); - } - - OAuth2Client* 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 OAuth2Client& from); - void MergeFrom(const OAuth2Client& 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(OAuth2Client* 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 ------------------------------------------------------- - - // string client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - const ::std::string& client_id() const; - void set_client_id(const ::std::string& value); - #if LANG_CXX11 - void set_client_id(::std::string&& value); - #endif - void set_client_id(const char* value); - void set_client_id(const char* value, size_t size); - ::std::string* mutable_client_id(); - ::std::string* release_client_id(); - void set_allocated_client_id(::std::string* client_id); - - // .flyteidl.core.Secret client_secret = 2; - bool has_client_secret() const; - void clear_client_secret(); - static const int kClientSecretFieldNumber = 2; - const ::flyteidl::core::Secret& client_secret() const; - ::flyteidl::core::Secret* release_client_secret(); - ::flyteidl::core::Secret* mutable_client_secret(); - void set_allocated_client_secret(::flyteidl::core::Secret* client_secret); - - // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2Client) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr client_id_; - ::flyteidl::core::Secret* client_secret_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; -}; -// ------------------------------------------------------------------- - -class Identity final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Identity) */ { - public: - Identity(); - virtual ~Identity(); - - Identity(const Identity& from); - - inline Identity& operator=(const Identity& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Identity(Identity&& from) noexcept - : Identity() { - *this = ::std::move(from); - } - - inline Identity& operator=(Identity&& 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 Identity& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Identity* internal_default_instance() { - return reinterpret_cast( - &_Identity_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Identity* other); - friend void swap(Identity& a, Identity& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Identity* New() const final { - return CreateMaybeMessage(nullptr); - } - - Identity* 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 Identity& from); - void MergeFrom(const Identity& 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(Identity* 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 ------------------------------------------------------- - - // string iam_role = 1; - void clear_iam_role(); - static const int kIamRoleFieldNumber = 1; - const ::std::string& iam_role() const; - void set_iam_role(const ::std::string& value); - #if LANG_CXX11 - void set_iam_role(::std::string&& value); - #endif - void set_iam_role(const char* value); - void set_iam_role(const char* value, size_t size); - ::std::string* mutable_iam_role(); - ::std::string* release_iam_role(); - void set_allocated_iam_role(::std::string* iam_role); - - // string k8s_service_account = 2; - void clear_k8s_service_account(); - static const int kK8SServiceAccountFieldNumber = 2; - const ::std::string& k8s_service_account() const; - void set_k8s_service_account(const ::std::string& value); - #if LANG_CXX11 - void set_k8s_service_account(::std::string&& value); - #endif - void set_k8s_service_account(const char* value); - void set_k8s_service_account(const char* value, size_t size); - ::std::string* mutable_k8s_service_account(); - ::std::string* release_k8s_service_account(); - void set_allocated_k8s_service_account(::std::string* k8s_service_account); - - // string execution_identity = 4; - void clear_execution_identity(); - static const int kExecutionIdentityFieldNumber = 4; - const ::std::string& execution_identity() const; - void set_execution_identity(const ::std::string& value); - #if LANG_CXX11 - void set_execution_identity(::std::string&& value); - #endif - void set_execution_identity(const char* value); - void set_execution_identity(const char* value, size_t size); - ::std::string* mutable_execution_identity(); - ::std::string* release_execution_identity(); - void set_allocated_execution_identity(::std::string* execution_identity); - - // .flyteidl.core.OAuth2Client oauth2_client = 3; - bool has_oauth2_client() const; - void clear_oauth2_client(); - static const int kOauth2ClientFieldNumber = 3; - const ::flyteidl::core::OAuth2Client& oauth2_client() const; - ::flyteidl::core::OAuth2Client* release_oauth2_client(); - ::flyteidl::core::OAuth2Client* mutable_oauth2_client(); - void set_allocated_oauth2_client(::flyteidl::core::OAuth2Client* oauth2_client); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identity) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr iam_role_; - ::google::protobuf::internal::ArenaStringPtr k8s_service_account_; - ::google::protobuf::internal::ArenaStringPtr execution_identity_; - ::flyteidl::core::OAuth2Client* oauth2_client_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; -}; -// ------------------------------------------------------------------- - -class OAuth2TokenRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OAuth2TokenRequest) */ { - public: - OAuth2TokenRequest(); - virtual ~OAuth2TokenRequest(); - - OAuth2TokenRequest(const OAuth2TokenRequest& from); - - inline OAuth2TokenRequest& operator=(const OAuth2TokenRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OAuth2TokenRequest(OAuth2TokenRequest&& from) noexcept - : OAuth2TokenRequest() { - *this = ::std::move(from); - } - - inline OAuth2TokenRequest& operator=(OAuth2TokenRequest&& 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 OAuth2TokenRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OAuth2TokenRequest* internal_default_instance() { - return reinterpret_cast( - &_OAuth2TokenRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(OAuth2TokenRequest* other); - friend void swap(OAuth2TokenRequest& a, OAuth2TokenRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OAuth2TokenRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OAuth2TokenRequest* 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 OAuth2TokenRequest& from); - void MergeFrom(const OAuth2TokenRequest& 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(OAuth2TokenRequest* 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 ---------------------------------------------------- - - typedef OAuth2TokenRequest_Type Type; - static const Type CLIENT_CREDENTIALS = - OAuth2TokenRequest_Type_CLIENT_CREDENTIALS; - static inline bool Type_IsValid(int value) { - return OAuth2TokenRequest_Type_IsValid(value); - } - static const Type Type_MIN = - OAuth2TokenRequest_Type_Type_MIN; - static const Type Type_MAX = - OAuth2TokenRequest_Type_Type_MAX; - static const int Type_ARRAYSIZE = - OAuth2TokenRequest_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return OAuth2TokenRequest_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return OAuth2TokenRequest_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return OAuth2TokenRequest_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string idp_discovery_endpoint = 4; - void clear_idp_discovery_endpoint(); - static const int kIdpDiscoveryEndpointFieldNumber = 4; - const ::std::string& idp_discovery_endpoint() const; - void set_idp_discovery_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_idp_discovery_endpoint(::std::string&& value); - #endif - void set_idp_discovery_endpoint(const char* value); - void set_idp_discovery_endpoint(const char* value, size_t size); - ::std::string* mutable_idp_discovery_endpoint(); - ::std::string* release_idp_discovery_endpoint(); - void set_allocated_idp_discovery_endpoint(::std::string* idp_discovery_endpoint); - - // string token_endpoint = 5; - void clear_token_endpoint(); - static const int kTokenEndpointFieldNumber = 5; - const ::std::string& token_endpoint() const; - void set_token_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_token_endpoint(::std::string&& value); - #endif - void set_token_endpoint(const char* value); - void set_token_endpoint(const char* value, size_t size); - ::std::string* mutable_token_endpoint(); - ::std::string* release_token_endpoint(); - void set_allocated_token_endpoint(::std::string* token_endpoint); - - // .flyteidl.core.OAuth2Client client = 3; - bool has_client() const; - void clear_client(); - static const int kClientFieldNumber = 3; - const ::flyteidl::core::OAuth2Client& client() const; - ::flyteidl::core::OAuth2Client* release_client(); - ::flyteidl::core::OAuth2Client* mutable_client(); - void set_allocated_client(::flyteidl::core::OAuth2Client* client); - - // .flyteidl.core.OAuth2TokenRequest.Type type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::flyteidl::core::OAuth2TokenRequest_Type type() const; - void set_type(::flyteidl::core::OAuth2TokenRequest_Type value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2TokenRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr idp_discovery_endpoint_; - ::google::protobuf::internal::ArenaStringPtr token_endpoint_; - ::flyteidl::core::OAuth2Client* client_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; -}; -// ------------------------------------------------------------------- - -class SecurityContext final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SecurityContext) */ { - public: - SecurityContext(); - virtual ~SecurityContext(); - - SecurityContext(const SecurityContext& from); - - inline SecurityContext& operator=(const SecurityContext& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SecurityContext(SecurityContext&& from) noexcept - : SecurityContext() { - *this = ::std::move(from); - } - - inline SecurityContext& operator=(SecurityContext&& 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 SecurityContext& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SecurityContext* internal_default_instance() { - return reinterpret_cast( - &_SecurityContext_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(SecurityContext* other); - friend void swap(SecurityContext& a, SecurityContext& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SecurityContext* New() const final { - return CreateMaybeMessage(nullptr); - } - - SecurityContext* 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 SecurityContext& from); - void MergeFrom(const SecurityContext& 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(SecurityContext* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Secret secrets = 2; - int secrets_size() const; - void clear_secrets(); - static const int kSecretsFieldNumber = 2; - ::flyteidl::core::Secret* mutable_secrets(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >* - mutable_secrets(); - const ::flyteidl::core::Secret& secrets(int index) const; - ::flyteidl::core::Secret* add_secrets(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >& - secrets() const; - - // repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - int tokens_size() const; - void clear_tokens(); - static const int kTokensFieldNumber = 3; - ::flyteidl::core::OAuth2TokenRequest* mutable_tokens(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >* - mutable_tokens(); - const ::flyteidl::core::OAuth2TokenRequest& tokens(int index) const; - ::flyteidl::core::OAuth2TokenRequest* add_tokens(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >& - tokens() const; - - // .flyteidl.core.Identity run_as = 1; - bool has_run_as() const; - void clear_run_as(); - static const int kRunAsFieldNumber = 1; - const ::flyteidl::core::Identity& run_as() const; - ::flyteidl::core::Identity* release_run_as(); - ::flyteidl::core::Identity* mutable_run_as(); - void set_allocated_run_as(::flyteidl::core::Identity* run_as); - - // @@protoc_insertion_point(class_scope:flyteidl.core.SecurityContext) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret > secrets_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest > tokens_; - ::flyteidl::core::Identity* run_as_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fsecurity_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Secret - -// string group = 1; -inline void Secret::clear_group() { - group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Secret::group() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Secret.group) - return group_.GetNoArena(); -} -inline void Secret::set_group(const ::std::string& value) { - - group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Secret.group) -} -#if LANG_CXX11 -inline void Secret::set_group(::std::string&& value) { - - group_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.group) -} -#endif -inline void Secret::set_group(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.group) -} -inline void Secret::set_group(const char* value, size_t size) { - - group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.group) -} -inline ::std::string* Secret::mutable_group() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.group) - return group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Secret::release_group() { - // @@protoc_insertion_point(field_release:flyteidl.core.Secret.group) - - return group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Secret::set_allocated_group(::std::string* group) { - if (group != nullptr) { - - } else { - - } - group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.group) -} - -// string group_version = 2; -inline void Secret::clear_group_version() { - group_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Secret::group_version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Secret.group_version) - return group_version_.GetNoArena(); -} -inline void Secret::set_group_version(const ::std::string& value) { - - group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Secret.group_version) -} -#if LANG_CXX11 -inline void Secret::set_group_version(::std::string&& value) { - - group_version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.group_version) -} -#endif -inline void Secret::set_group_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.group_version) -} -inline void Secret::set_group_version(const char* value, size_t size) { - - group_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.group_version) -} -inline ::std::string* Secret::mutable_group_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.group_version) - return group_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Secret::release_group_version() { - // @@protoc_insertion_point(field_release:flyteidl.core.Secret.group_version) - - return group_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Secret::set_allocated_group_version(::std::string* group_version) { - if (group_version != nullptr) { - - } else { - - } - group_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group_version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.group_version) -} - -// string key = 3; -inline void Secret::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Secret::key() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Secret.key) - return key_.GetNoArena(); -} -inline void Secret::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Secret.key) -} -#if LANG_CXX11 -inline void Secret::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Secret.key) -} -#endif -inline void Secret::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Secret.key) -} -inline void Secret::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Secret.key) -} -inline ::std::string* Secret::mutable_key() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Secret.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Secret::release_key() { - // @@protoc_insertion_point(field_release:flyteidl.core.Secret.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Secret::set_allocated_key(::std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Secret.key) -} - -// .flyteidl.core.Secret.MountType mount_requirement = 4; -inline void Secret::clear_mount_requirement() { - mount_requirement_ = 0; -} -inline ::flyteidl::core::Secret_MountType Secret::mount_requirement() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Secret.mount_requirement) - return static_cast< ::flyteidl::core::Secret_MountType >(mount_requirement_); -} -inline void Secret::set_mount_requirement(::flyteidl::core::Secret_MountType value) { - - mount_requirement_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Secret.mount_requirement) -} - -// ------------------------------------------------------------------- - -// OAuth2Client - -// string client_id = 1; -inline void OAuth2Client::clear_client_id() { - client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2Client::client_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2Client.client_id) - return client_id_.GetNoArena(); -} -inline void OAuth2Client::set_client_id(const ::std::string& value) { - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2Client.client_id) -} -#if LANG_CXX11 -inline void OAuth2Client::set_client_id(::std::string&& value) { - - client_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2Client.client_id) -} -#endif -inline void OAuth2Client::set_client_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2Client.client_id) -} -inline void OAuth2Client::set_client_id(const char* value, size_t size) { - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2Client.client_id) -} -inline ::std::string* OAuth2Client::mutable_client_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2Client.client_id) - return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2Client::release_client_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2Client.client_id) - - return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2Client::set_allocated_client_id(::std::string* client_id) { - if (client_id != nullptr) { - - } else { - - } - client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2Client.client_id) -} - -// .flyteidl.core.Secret client_secret = 2; -inline bool OAuth2Client::has_client_secret() const { - return this != internal_default_instance() && client_secret_ != nullptr; -} -inline void OAuth2Client::clear_client_secret() { - if (GetArenaNoVirtual() == nullptr && client_secret_ != nullptr) { - delete client_secret_; - } - client_secret_ = nullptr; -} -inline const ::flyteidl::core::Secret& OAuth2Client::client_secret() const { - const ::flyteidl::core::Secret* p = client_secret_; - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2Client.client_secret) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Secret_default_instance_); -} -inline ::flyteidl::core::Secret* OAuth2Client::release_client_secret() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2Client.client_secret) - - ::flyteidl::core::Secret* temp = client_secret_; - client_secret_ = nullptr; - return temp; -} -inline ::flyteidl::core::Secret* OAuth2Client::mutable_client_secret() { - - if (client_secret_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Secret>(GetArenaNoVirtual()); - client_secret_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2Client.client_secret) - return client_secret_; -} -inline void OAuth2Client::set_allocated_client_secret(::flyteidl::core::Secret* client_secret) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete client_secret_; - } - if (client_secret) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - client_secret = ::google::protobuf::internal::GetOwnedMessage( - message_arena, client_secret, submessage_arena); - } - - } else { - - } - client_secret_ = client_secret; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2Client.client_secret) -} - -// ------------------------------------------------------------------- - -// Identity - -// string iam_role = 1; -inline void Identity::clear_iam_role() { - iam_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identity::iam_role() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identity.iam_role) - return iam_role_.GetNoArena(); -} -inline void Identity::set_iam_role(const ::std::string& value) { - - iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identity.iam_role) -} -#if LANG_CXX11 -inline void Identity::set_iam_role(::std::string&& value) { - - iam_role_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.iam_role) -} -#endif -inline void Identity::set_iam_role(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.iam_role) -} -inline void Identity::set_iam_role(const char* value, size_t size) { - - iam_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.iam_role) -} -inline ::std::string* Identity::mutable_iam_role() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.iam_role) - return iam_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identity::release_iam_role() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identity.iam_role) - - return iam_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identity::set_allocated_iam_role(::std::string* iam_role) { - if (iam_role != nullptr) { - - } else { - - } - iam_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), iam_role); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.iam_role) -} - -// string k8s_service_account = 2; -inline void Identity::clear_k8s_service_account() { - k8s_service_account_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identity::k8s_service_account() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identity.k8s_service_account) - return k8s_service_account_.GetNoArena(); -} -inline void Identity::set_k8s_service_account(const ::std::string& value) { - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identity.k8s_service_account) -} -#if LANG_CXX11 -inline void Identity::set_k8s_service_account(::std::string&& value) { - - k8s_service_account_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.k8s_service_account) -} -#endif -inline void Identity::set_k8s_service_account(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.k8s_service_account) -} -inline void Identity::set_k8s_service_account(const char* value, size_t size) { - - k8s_service_account_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.k8s_service_account) -} -inline ::std::string* Identity::mutable_k8s_service_account() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.k8s_service_account) - return k8s_service_account_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identity::release_k8s_service_account() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identity.k8s_service_account) - - return k8s_service_account_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identity::set_allocated_k8s_service_account(::std::string* k8s_service_account) { - if (k8s_service_account != nullptr) { - - } else { - - } - k8s_service_account_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), k8s_service_account); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.k8s_service_account) -} - -// .flyteidl.core.OAuth2Client oauth2_client = 3; -inline bool Identity::has_oauth2_client() const { - return this != internal_default_instance() && oauth2_client_ != nullptr; -} -inline void Identity::clear_oauth2_client() { - if (GetArenaNoVirtual() == nullptr && oauth2_client_ != nullptr) { - delete oauth2_client_; - } - oauth2_client_ = nullptr; -} -inline const ::flyteidl::core::OAuth2Client& Identity::oauth2_client() const { - const ::flyteidl::core::OAuth2Client* p = oauth2_client_; - // @@protoc_insertion_point(field_get:flyteidl.core.Identity.oauth2_client) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_OAuth2Client_default_instance_); -} -inline ::flyteidl::core::OAuth2Client* Identity::release_oauth2_client() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identity.oauth2_client) - - ::flyteidl::core::OAuth2Client* temp = oauth2_client_; - oauth2_client_ = nullptr; - return temp; -} -inline ::flyteidl::core::OAuth2Client* Identity::mutable_oauth2_client() { - - if (oauth2_client_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::OAuth2Client>(GetArenaNoVirtual()); - oauth2_client_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.oauth2_client) - return oauth2_client_; -} -inline void Identity::set_allocated_oauth2_client(::flyteidl::core::OAuth2Client* oauth2_client) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete oauth2_client_; - } - if (oauth2_client) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - oauth2_client = ::google::protobuf::internal::GetOwnedMessage( - message_arena, oauth2_client, submessage_arena); - } - - } else { - - } - oauth2_client_ = oauth2_client; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.oauth2_client) -} - -// string execution_identity = 4; -inline void Identity::clear_execution_identity() { - execution_identity_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Identity::execution_identity() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Identity.execution_identity) - return execution_identity_.GetNoArena(); -} -inline void Identity::set_execution_identity(const ::std::string& value) { - - execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Identity.execution_identity) -} -#if LANG_CXX11 -inline void Identity::set_execution_identity(::std::string&& value) { - - execution_identity_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Identity.execution_identity) -} -#endif -inline void Identity::set_execution_identity(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Identity.execution_identity) -} -inline void Identity::set_execution_identity(const char* value, size_t size) { - - execution_identity_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Identity.execution_identity) -} -inline ::std::string* Identity::mutable_execution_identity() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Identity.execution_identity) - return execution_identity_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Identity::release_execution_identity() { - // @@protoc_insertion_point(field_release:flyteidl.core.Identity.execution_identity) - - return execution_identity_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Identity::set_allocated_execution_identity(::std::string* execution_identity) { - if (execution_identity != nullptr) { - - } else { - - } - execution_identity_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_identity); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Identity.execution_identity) -} - -// ------------------------------------------------------------------- - -// OAuth2TokenRequest - -// string name = 1; -inline void OAuth2TokenRequest::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2TokenRequest::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.name) - return name_.GetNoArena(); -} -inline void OAuth2TokenRequest::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.name) -} -#if LANG_CXX11 -inline void OAuth2TokenRequest::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.name) -} -#endif -inline void OAuth2TokenRequest::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.name) -} -inline void OAuth2TokenRequest::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.name) -} -inline ::std::string* OAuth2TokenRequest::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2TokenRequest::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2TokenRequest::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.name) -} - -// .flyteidl.core.OAuth2TokenRequest.Type type = 2; -inline void OAuth2TokenRequest::clear_type() { - type_ = 0; -} -inline ::flyteidl::core::OAuth2TokenRequest_Type OAuth2TokenRequest::type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.type) - return static_cast< ::flyteidl::core::OAuth2TokenRequest_Type >(type_); -} -inline void OAuth2TokenRequest::set_type(::flyteidl::core::OAuth2TokenRequest_Type value) { - - type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.type) -} - -// .flyteidl.core.OAuth2Client client = 3; -inline bool OAuth2TokenRequest::has_client() const { - return this != internal_default_instance() && client_ != nullptr; -} -inline void OAuth2TokenRequest::clear_client() { - if (GetArenaNoVirtual() == nullptr && client_ != nullptr) { - delete client_; - } - client_ = nullptr; -} -inline const ::flyteidl::core::OAuth2Client& OAuth2TokenRequest::client() const { - const ::flyteidl::core::OAuth2Client* p = client_; - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.client) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_OAuth2Client_default_instance_); -} -inline ::flyteidl::core::OAuth2Client* OAuth2TokenRequest::release_client() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.client) - - ::flyteidl::core::OAuth2Client* temp = client_; - client_ = nullptr; - return temp; -} -inline ::flyteidl::core::OAuth2Client* OAuth2TokenRequest::mutable_client() { - - if (client_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::OAuth2Client>(GetArenaNoVirtual()); - client_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.client) - return client_; -} -inline void OAuth2TokenRequest::set_allocated_client(::flyteidl::core::OAuth2Client* client) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete client_; - } - if (client) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - client = ::google::protobuf::internal::GetOwnedMessage( - message_arena, client, submessage_arena); - } - - } else { - - } - client_ = client; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.client) -} - -// string idp_discovery_endpoint = 4; -inline void OAuth2TokenRequest::clear_idp_discovery_endpoint() { - idp_discovery_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2TokenRequest::idp_discovery_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) - return idp_discovery_endpoint_.GetNoArena(); -} -inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const ::std::string& value) { - - idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) -} -#if LANG_CXX11 -inline void OAuth2TokenRequest::set_idp_discovery_endpoint(::std::string&& value) { - - idp_discovery_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) -} -#endif -inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) -} -inline void OAuth2TokenRequest::set_idp_discovery_endpoint(const char* value, size_t size) { - - idp_discovery_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) -} -inline ::std::string* OAuth2TokenRequest::mutable_idp_discovery_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) - return idp_discovery_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2TokenRequest::release_idp_discovery_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) - - return idp_discovery_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2TokenRequest::set_allocated_idp_discovery_endpoint(::std::string* idp_discovery_endpoint) { - if (idp_discovery_endpoint != nullptr) { - - } else { - - } - idp_discovery_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), idp_discovery_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.idp_discovery_endpoint) -} - -// string token_endpoint = 5; -inline void OAuth2TokenRequest::clear_token_endpoint() { - token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2TokenRequest::token_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OAuth2TokenRequest.token_endpoint) - return token_endpoint_.GetNoArena(); -} -inline void OAuth2TokenRequest::set_token_endpoint(const ::std::string& value) { - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OAuth2TokenRequest.token_endpoint) -} -#if LANG_CXX11 -inline void OAuth2TokenRequest::set_token_endpoint(::std::string&& value) { - - token_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OAuth2TokenRequest.token_endpoint) -} -#endif -inline void OAuth2TokenRequest::set_token_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OAuth2TokenRequest.token_endpoint) -} -inline void OAuth2TokenRequest::set_token_endpoint(const char* value, size_t size) { - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OAuth2TokenRequest.token_endpoint) -} -inline ::std::string* OAuth2TokenRequest::mutable_token_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OAuth2TokenRequest.token_endpoint) - return token_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2TokenRequest::release_token_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.core.OAuth2TokenRequest.token_endpoint) - - return token_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2TokenRequest::set_allocated_token_endpoint(::std::string* token_endpoint) { - if (token_endpoint != nullptr) { - - } else { - - } - token_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OAuth2TokenRequest.token_endpoint) -} - -// ------------------------------------------------------------------- - -// SecurityContext - -// .flyteidl.core.Identity run_as = 1; -inline bool SecurityContext::has_run_as() const { - return this != internal_default_instance() && run_as_ != nullptr; -} -inline void SecurityContext::clear_run_as() { - if (GetArenaNoVirtual() == nullptr && run_as_ != nullptr) { - delete run_as_; - } - run_as_ = nullptr; -} -inline const ::flyteidl::core::Identity& SecurityContext::run_as() const { - const ::flyteidl::core::Identity* p = run_as_; - // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.run_as) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identity_default_instance_); -} -inline ::flyteidl::core::Identity* SecurityContext::release_run_as() { - // @@protoc_insertion_point(field_release:flyteidl.core.SecurityContext.run_as) - - ::flyteidl::core::Identity* temp = run_as_; - run_as_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identity* SecurityContext::mutable_run_as() { - - if (run_as_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identity>(GetArenaNoVirtual()); - run_as_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.run_as) - return run_as_; -} -inline void SecurityContext::set_allocated_run_as(::flyteidl::core::Identity* run_as) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete run_as_; - } - if (run_as) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - run_as = ::google::protobuf::internal::GetOwnedMessage( - message_arena, run_as, submessage_arena); - } - - } else { - - } - run_as_ = run_as; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SecurityContext.run_as) -} - -// repeated .flyteidl.core.Secret secrets = 2; -inline int SecurityContext::secrets_size() const { - return secrets_.size(); -} -inline void SecurityContext::clear_secrets() { - secrets_.Clear(); -} -inline ::flyteidl::core::Secret* SecurityContext::mutable_secrets(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.secrets) - return secrets_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >* -SecurityContext::mutable_secrets() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SecurityContext.secrets) - return &secrets_; -} -inline const ::flyteidl::core::Secret& SecurityContext::secrets(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.secrets) - return secrets_.Get(index); -} -inline ::flyteidl::core::Secret* SecurityContext::add_secrets() { - // @@protoc_insertion_point(field_add:flyteidl.core.SecurityContext.secrets) - return secrets_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Secret >& -SecurityContext::secrets() const { - // @@protoc_insertion_point(field_list:flyteidl.core.SecurityContext.secrets) - return secrets_; -} - -// repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; -inline int SecurityContext::tokens_size() const { - return tokens_.size(); -} -inline void SecurityContext::clear_tokens() { - tokens_.Clear(); -} -inline ::flyteidl::core::OAuth2TokenRequest* SecurityContext::mutable_tokens(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.SecurityContext.tokens) - return tokens_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >* -SecurityContext::mutable_tokens() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SecurityContext.tokens) - return &tokens_; -} -inline const ::flyteidl::core::OAuth2TokenRequest& SecurityContext::tokens(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.SecurityContext.tokens) - return tokens_.Get(index); -} -inline ::flyteidl::core::OAuth2TokenRequest* SecurityContext::add_tokens() { - // @@protoc_insertion_point(field_add:flyteidl.core.SecurityContext.tokens) - return tokens_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::OAuth2TokenRequest >& -SecurityContext::tokens() const { - // @@protoc_insertion_point(field_list:flyteidl.core.SecurityContext.tokens) - return tokens_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::Secret_MountType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Secret_MountType>() { - return ::flyteidl::core::Secret_MountType_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::OAuth2TokenRequest_Type> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::OAuth2TokenRequest_Type>() { - return ::flyteidl::core::OAuth2TokenRequest_Type_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fsecurity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc deleted file mode 100644 index 50c654c88e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/tasks.proto - -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/tasks.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h deleted file mode 100644 index f1499d007f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/tasks.proto -#ifndef GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED - -#include "flyteidl/core/tasks.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2ftasks_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc deleted file mode 100644 index 5646e9ab8c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.cc +++ /dev/null @@ -1,8512 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/tasks.proto - -#include "flyteidl/core/tasks.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fsecurity_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Container_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -namespace flyteidl { -namespace core { -class Resources_ResourceEntryDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Resources_ResourceEntry_default_instance_; -class ResourcesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Resources_default_instance_; -class GPUAcceleratorDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - bool unpartitioned_; - ::google::protobuf::internal::ArenaStringPtr partition_size_; -} _GPUAccelerator_default_instance_; -class ExtendedResourcesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExtendedResources_default_instance_; -class RuntimeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RuntimeMetadata_default_instance_; -class TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskMetadata_TagsEntry_DoNotUse_default_instance_; -class TaskMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - bool interruptible_; -} _TaskMetadata_default_instance_; -class TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskTemplate_ConfigEntry_DoNotUse_default_instance_; -class TaskTemplateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Container* container_; - const ::flyteidl::core::K8sPod* k8s_pod_; - const ::flyteidl::core::Sql* sql_; -} _TaskTemplate_default_instance_; -class ContainerPortDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ContainerPort_default_instance_; -class ContainerDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Container_default_instance_; -class IOStrategyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IOStrategy_default_instance_; -class DataLoadingConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DataLoadingConfig_default_instance_; -class K8sPodDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _K8sPod_default_instance_; -class K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; -class K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; -class K8sObjectMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _K8sObjectMetadata_default_instance_; -class SqlDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Sql_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsResources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Resources_ResourceEntry_default_instance_; - new (ptr) ::flyteidl::core::Resources_ResourceEntry(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Resources_ResourceEntry::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsResources_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Resources_default_instance_; - new (ptr) ::flyteidl::core::Resources(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Resources::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsResources_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsGPUAccelerator_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_GPUAccelerator_default_instance_; - new (ptr) ::flyteidl::core::GPUAccelerator(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::GPUAccelerator::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGPUAccelerator_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsExtendedResources_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ExtendedResources_default_instance_; - new (ptr) ::flyteidl::core::ExtendedResources(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ExtendedResources::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExtendedResources_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsRuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_RuntimeMetadata_default_instance_; - new (ptr) ::flyteidl::core::RuntimeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::RuntimeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsTaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskMetadata_TagsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse(); - } - ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsTaskMetadata_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskMetadata_default_instance_; - new (ptr) ::flyteidl::core::TaskMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTaskMetadata_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsTaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskTemplate_ConfigEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse(); - } - ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsTaskTemplate_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskTemplate_default_instance_; - new (ptr) ::flyteidl::core::TaskTemplate(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskTemplate::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 10, InitDefaultsTaskTemplate_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_SecurityContext_flyteidl_2fcore_2fsecurity_2eproto.base, - &scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsContainerPort_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ContainerPort_default_instance_; - new (ptr) ::flyteidl::core::ContainerPort(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ContainerPort::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsContainerPort_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsContainer_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Container_default_instance_; - new (ptr) ::flyteidl::core::Container(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Container::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_Container_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsContainer_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_KeyValuePair_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsIOStrategy_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_IOStrategy_default_instance_; - new (ptr) ::flyteidl::core::IOStrategy(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::IOStrategy::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsIOStrategy_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsDataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_DataLoadingConfig_default_instance_; - new (ptr) ::flyteidl::core::DataLoadingConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::DataLoadingConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsK8sPod_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_K8sPod_default_instance_; - new (ptr) ::flyteidl::core::K8sPod(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::K8sPod::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsK8sPod_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsK8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse(); - } - ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsK8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsK8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse(); - } - ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsK8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -static void InitDefaultsK8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_K8sObjectMetadata_default_instance_; - new (ptr) ::flyteidl::core::K8sObjectMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::K8sObjectMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsK8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto}, { - &scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsSql_flyteidl_2fcore_2ftasks_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Sql_default_instance_; - new (ptr) ::flyteidl::core::Sql(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Sql::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSql_flyteidl_2fcore_2ftasks_2eproto}, {}}; - -void InitDefaults_flyteidl_2fcore_2ftasks_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskTemplate_ConfigEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_LabelsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_AnnotationsEntry_DoNotUse_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[18]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[7]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ftasks_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ftasks_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources_ResourceEntry, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, requests_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Resources, limits_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GPUAccelerator, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GPUAccelerator, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GPUAccelerator, device_), - offsetof(::flyteidl::core::GPUAcceleratorDefaultTypeInternal, unpartitioned_), - offsetof(::flyteidl::core::GPUAcceleratorDefaultTypeInternal, partition_size_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GPUAccelerator, partition_size_value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExtendedResources, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ExtendedResources, gpu_accelerator_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::RuntimeMetadata, flavor_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discoverable_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, runtime_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, timeout_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, retries_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, discovery_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, deprecated_error_message_), - offsetof(::flyteidl::core::TaskMetadataDefaultTypeInternal, interruptible_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, cache_serializable_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, generates_deck_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, tags_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, pod_template_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, cache_ignore_input_vars_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskMetadata, interruptible_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, interface_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, custom_), - offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, container_), - offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, k8s_pod_), - offsetof(::flyteidl::core::TaskTemplateDefaultTypeInternal, sql_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, task_type_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, security_context_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, extended_resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskTemplate, target_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerPort, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ContainerPort, container_port_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, command_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, args_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, env_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, ports_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, data_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Container, architecture_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, download_mode_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IOStrategy, upload_mode_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, enabled_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, input_path_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, output_path_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, format_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::DataLoadingConfig, io_strategy_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, pod_spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sPod, data_config_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, labels_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::K8sObjectMetadata, annotations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, statement_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Sql, dialect_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::Resources_ResourceEntry)}, - { 7, -1, sizeof(::flyteidl::core::Resources)}, - { 14, -1, sizeof(::flyteidl::core::GPUAccelerator)}, - { 23, -1, sizeof(::flyteidl::core::ExtendedResources)}, - { 29, -1, sizeof(::flyteidl::core::RuntimeMetadata)}, - { 37, 44, sizeof(::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse)}, - { 46, -1, sizeof(::flyteidl::core::TaskMetadata)}, - { 64, 71, sizeof(::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse)}, - { 73, -1, sizeof(::flyteidl::core::TaskTemplate)}, - { 91, -1, sizeof(::flyteidl::core::ContainerPort)}, - { 97, -1, sizeof(::flyteidl::core::Container)}, - { 111, -1, sizeof(::flyteidl::core::IOStrategy)}, - { 118, -1, sizeof(::flyteidl::core::DataLoadingConfig)}, - { 128, -1, sizeof(::flyteidl::core::K8sPod)}, - { 136, 143, sizeof(::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse)}, - { 145, 152, sizeof(::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse)}, - { 154, -1, sizeof(::flyteidl::core::K8sObjectMetadata)}, - { 161, -1, sizeof(::flyteidl::core::Sql)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_Resources_ResourceEntry_default_instance_), - reinterpret_cast(&::flyteidl::core::_Resources_default_instance_), - reinterpret_cast(&::flyteidl::core::_GPUAccelerator_default_instance_), - reinterpret_cast(&::flyteidl::core::_ExtendedResources_default_instance_), - reinterpret_cast(&::flyteidl::core::_RuntimeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskMetadata_TagsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskTemplate_ConfigEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskTemplate_default_instance_), - reinterpret_cast(&::flyteidl::core::_ContainerPort_default_instance_), - reinterpret_cast(&::flyteidl::core::_Container_default_instance_), - reinterpret_cast(&::flyteidl::core::_IOStrategy_default_instance_), - reinterpret_cast(&::flyteidl::core::_DataLoadingConfig_default_instance_), - reinterpret_cast(&::flyteidl::core::_K8sPod_default_instance_), - reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_K8sObjectMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_Sql_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, "flyteidl/core/tasks.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2ftasks_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2ftasks_2eproto, 18, file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ftasks_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2ftasks_2eproto[] = - "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" - "re\032\036flyteidl/core/identifier.proto\032\035flyt" - "eidl/core/interface.proto\032\034flyteidl/core" - "/literals.proto\032\034flyteidl/core/security." - "proto\032\036google/protobuf/duration.proto\032\034g" - "oogle/protobuf/struct.proto\"\261\002\n\tResource" - "s\0228\n\010requests\030\001 \003(\0132&.flyteidl.core.Reso" - "urces.ResourceEntry\0226\n\006limits\030\002 \003(\0132&.fl" - "yteidl.core.Resources.ResourceEntry\032S\n\rR" - "esourceEntry\0223\n\004name\030\001 \001(\0162%.flyteidl.co" - "re.Resources.ResourceName\022\r\n\005value\030\002 \001(\t" - "\"]\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022\007\n\003CPU\020\001\022\007" - "\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE\020\004\022\025\n\021EPHE" - "MERAL_STORAGE\020\005\"k\n\016GPUAccelerator\022\016\n\006dev" - "ice\030\001 \001(\t\022\027\n\runpartitioned\030\002 \001(\010H\000\022\030\n\016pa" - "rtition_size\030\003 \001(\tH\000B\026\n\024partition_size_v" - "alue\"K\n\021ExtendedResources\0226\n\017gpu_acceler" - "ator\030\001 \001(\0132\035.flyteidl.core.GPUAccelerato" - "r\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.fl" - "yteidl.core.RuntimeMetadata.RuntimeType\022" - "\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Runt" - "imeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\357\003\n\014Ta" - "skMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007runt" - "ime\030\002 \001(\0132\036.flyteidl.core.RuntimeMetadat" - "a\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Dur" - "ation\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core.R" - "etryStrategy\022\031\n\021discovery_version\030\006 \001(\t\022" - " \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rint" - "erruptible\030\010 \001(\010H\000\022\032\n\022cache_serializable" - "\030\t \001(\010\022\026\n\016generates_deck\030\n \001(\010\0223\n\004tags\030\013" - " \003(\0132%.flyteidl.core.TaskMetadata.TagsEn" - "try\022\031\n\021pod_template_name\030\014 \001(\t\022\037\n\027cache_" - "ignore_input_vars\030\r \003(\t\032+\n\tTagsEntry\022\013\n\003" - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\025\n\023interrup" - "tible_value\"\316\004\n\014TaskTemplate\022%\n\002id\030\001 \001(\013" - "2\031.flyteidl.core.Identifier\022\014\n\004type\030\002 \001(" - "\t\022-\n\010metadata\030\003 \001(\0132\033.flyteidl.core.Task" - "Metadata\0220\n\tinterface\030\004 \001(\0132\035.flyteidl.c" - "ore.TypedInterface\022\'\n\006custom\030\005 \001(\0132\027.goo" - "gle.protobuf.Struct\022-\n\tcontainer\030\006 \001(\0132\030" - ".flyteidl.core.ContainerH\000\022(\n\007k8s_pod\030\021 " - "\001(\0132\025.flyteidl.core.K8sPodH\000\022!\n\003sql\030\022 \001(" - "\0132\022.flyteidl.core.SqlH\000\022\031\n\021task_type_ver" - "sion\030\007 \001(\005\0228\n\020security_context\030\010 \001(\0132\036.f" - "lyteidl.core.SecurityContext\022<\n\022extended" - "_resources\030\t \001(\0132 .flyteidl.core.Extende" - "dResources\0227\n\006config\030\020 \003(\0132\'.flyteidl.co" - "re.TaskTemplate.ConfigEntry\032-\n\013ConfigEnt" - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006ta" - "rget\"\'\n\rContainerPort\022\026\n\016container_port\030" - "\001 \001(\r\"\255\003\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007co" - "mmand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022+\n\tresources\030\004" - " \001(\0132\030.flyteidl.core.Resources\022(\n\003env\030\005 " - "\003(\0132\033.flyteidl.core.KeyValuePair\022/\n\006conf" - "ig\030\006 \003(\0132\033.flyteidl.core.KeyValuePairB\002\030" - "\001\022+\n\005ports\030\007 \003(\0132\034.flyteidl.core.Contain" - "erPort\0225\n\013data_config\030\t \001(\0132 .flyteidl.c" - "ore.DataLoadingConfig\022;\n\014architecture\030\n " - "\001(\0162%.flyteidl.core.Container.Architectu" - "re\"I\n\014Architecture\022\013\n\007UNKNOWN\020\000\022\t\n\005AMD64" - "\020\001\022\t\n\005ARM64\020\002\022\n\n\006ARM_V6\020\003\022\n\n\006ARM_V7\020\004\"\233\002" - "\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&.fl" - "yteidl.core.IOStrategy.DownloadMode\0229\n\013u" - "pload_mode\030\002 \001(\0162$.flyteidl.core.IOStrat" - "egy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOWNLO" - "AD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO_NO" - "T_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_ON_" - "EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UPLOA" - "D\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030\001 \001" - "(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path\030\003 " - "\001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.Data" - "LoadingConfig.LiteralMapFormat\022.\n\013io_str" - "ategy\030\005 \001(\0132\031.flyteidl.core.IOStrategy\"1" - "\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020\001\022\t" - "\n\005PROTO\020\002\"\236\001\n\006K8sPod\0222\n\010metadata\030\001 \001(\0132 " - ".flyteidl.core.K8sObjectMetadata\022)\n\010pod_" - "spec\030\002 \001(\0132\027.google.protobuf.Struct\0225\n\013d" - "ata_config\030\003 \001(\0132 .flyteidl.core.DataLoa" - "dingConfig\"\374\001\n\021K8sObjectMetadata\022<\n\006labe" - "ls\030\001 \003(\0132,.flyteidl.core.K8sObjectMetada" - "ta.LabelsEntry\022F\n\013annotations\030\002 \003(\01321.fl" - "yteidl.core.K8sObjectMetadata.Annotation" - "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - "lue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key" - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"~\n\003Sql\022\021\n\tstat" - "ement\030\001 \001(\t\022+\n\007dialect\030\002 \001(\0162\032.flyteidl." - "core.Sql.Dialect\"7\n\007Dialect\022\r\n\tUNDEFINED" - "\020\000\022\010\n\004ANSI\020\001\022\010\n\004HIVE\020\002\022\t\n\005OTHER\020\003B= 1900 -const Resources_ResourceName Resources::UNKNOWN; -const Resources_ResourceName Resources::CPU; -const Resources_ResourceName Resources::GPU; -const Resources_ResourceName Resources::MEMORY; -const Resources_ResourceName Resources::STORAGE; -const Resources_ResourceName Resources::EPHEMERAL_STORAGE; -const Resources_ResourceName Resources::ResourceName_MIN; -const Resources_ResourceName Resources::ResourceName_MAX; -const int Resources::ResourceName_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[1]; -} -bool RuntimeMetadata_RuntimeType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const RuntimeMetadata_RuntimeType RuntimeMetadata::OTHER; -const RuntimeMetadata_RuntimeType RuntimeMetadata::FLYTE_SDK; -const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MIN; -const RuntimeMetadata_RuntimeType RuntimeMetadata::RuntimeType_MAX; -const int RuntimeMetadata::RuntimeType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* Container_Architecture_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[2]; -} -bool Container_Architecture_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const Container_Architecture Container::UNKNOWN; -const Container_Architecture Container::AMD64; -const Container_Architecture Container::ARM64; -const Container_Architecture Container::ARM_V6; -const Container_Architecture Container::ARM_V7; -const Container_Architecture Container::Architecture_MIN; -const Container_Architecture Container::Architecture_MAX; -const int Container::Architecture_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* IOStrategy_DownloadMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[3]; -} -bool IOStrategy_DownloadMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const IOStrategy_DownloadMode IOStrategy::DOWNLOAD_EAGER; -const IOStrategy_DownloadMode IOStrategy::DOWNLOAD_STREAM; -const IOStrategy_DownloadMode IOStrategy::DO_NOT_DOWNLOAD; -const IOStrategy_DownloadMode IOStrategy::DownloadMode_MIN; -const IOStrategy_DownloadMode IOStrategy::DownloadMode_MAX; -const int IOStrategy::DownloadMode_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* IOStrategy_UploadMode_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[4]; -} -bool IOStrategy_UploadMode_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const IOStrategy_UploadMode IOStrategy::UPLOAD_ON_EXIT; -const IOStrategy_UploadMode IOStrategy::UPLOAD_EAGER; -const IOStrategy_UploadMode IOStrategy::DO_NOT_UPLOAD; -const IOStrategy_UploadMode IOStrategy::UploadMode_MIN; -const IOStrategy_UploadMode IOStrategy::UploadMode_MAX; -const int IOStrategy::UploadMode_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* DataLoadingConfig_LiteralMapFormat_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[5]; -} -bool DataLoadingConfig_LiteralMapFormat_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::JSON; -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::YAML; -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::PROTO; -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::LiteralMapFormat_MIN; -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig::LiteralMapFormat_MAX; -const int DataLoadingConfig::LiteralMapFormat_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* Sql_Dialect_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftasks_2eproto[6]; -} -bool Sql_Dialect_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const Sql_Dialect Sql::UNDEFINED; -const Sql_Dialect Sql::ANSI; -const Sql_Dialect Sql::HIVE; -const Sql_Dialect Sql::OTHER; -const Sql_Dialect Sql::Dialect_MIN; -const Sql_Dialect Sql::Dialect_MAX; -const int Sql::Dialect_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void Resources_ResourceEntry::InitAsDefaultInstance() { -} -class Resources_ResourceEntry::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Resources_ResourceEntry::kNameFieldNumber; -const int Resources_ResourceEntry::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Resources_ResourceEntry::Resources_ResourceEntry() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Resources.ResourceEntry) -} -Resources_ResourceEntry::Resources_ResourceEntry(const Resources_ResourceEntry& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - name_ = from.name_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources.ResourceEntry) -} - -void Resources_ResourceEntry::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_ = 0; -} - -Resources_ResourceEntry::~Resources_ResourceEntry() { - // @@protoc_insertion_point(destructor:flyteidl.core.Resources.ResourceEntry) - SharedDtor(); -} - -void Resources_ResourceEntry::SharedDtor() { - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Resources_ResourceEntry::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Resources_ResourceEntry& Resources_ResourceEntry::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Resources_ResourceEntry_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void Resources_ResourceEntry::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources.ResourceEntry) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Resources_ResourceEntry::_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.Resources.ResourceName name = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_name(static_cast<::flyteidl::core::Resources_ResourceName>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Resources.ResourceEntry.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Resources_ResourceEntry::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.core.Resources.ResourceEntry) - 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.Resources.ResourceName name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_name(static_cast< ::flyteidl::core::Resources_ResourceName >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Resources.ResourceEntry.value")); - } 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.core.Resources.ResourceEntry) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources.ResourceEntry) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Resources_ResourceEntry::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources.ResourceEntry) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Resources.ResourceName name = 1; - if (this->name() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->name(), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Resources.ResourceEntry.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources.ResourceEntry) -} - -::google::protobuf::uint8* Resources_ResourceEntry::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources.ResourceEntry) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Resources.ResourceName name = 1; - if (this->name() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->name(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Resources.ResourceEntry.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), 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.core.Resources.ResourceEntry) - return target; -} - -size_t Resources_ResourceEntry::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources.ResourceEntry) - 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; - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - // .flyteidl.core.Resources.ResourceName name = 1; - if (this->name() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->name()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Resources_ResourceEntry::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources.ResourceEntry) - GOOGLE_DCHECK_NE(&from, this); - const Resources_ResourceEntry* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources.ResourceEntry) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources.ResourceEntry) - MergeFrom(*source); - } -} - -void Resources_ResourceEntry::MergeFrom(const Resources_ResourceEntry& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources.ResourceEntry) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - if (from.name() != 0) { - set_name(from.name()); - } -} - -void Resources_ResourceEntry::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources.ResourceEntry) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Resources_ResourceEntry::CopyFrom(const Resources_ResourceEntry& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources.ResourceEntry) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Resources_ResourceEntry::IsInitialized() const { - return true; -} - -void Resources_ResourceEntry::Swap(Resources_ResourceEntry* other) { - if (other == this) return; - InternalSwap(other); -} -void Resources_ResourceEntry::InternalSwap(Resources_ResourceEntry* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(name_, other->name_); -} - -::google::protobuf::Metadata Resources_ResourceEntry::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Resources::InitAsDefaultInstance() { -} -class Resources::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Resources::kRequestsFieldNumber; -const int Resources::kLimitsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Resources::Resources() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Resources) -} -Resources::Resources(const Resources& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - requests_(from.requests_), - limits_(from.limits_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Resources) -} - -void Resources::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); -} - -Resources::~Resources() { - // @@protoc_insertion_point(destructor:flyteidl.core.Resources) - SharedDtor(); -} - -void Resources::SharedDtor() { -} - -void Resources::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Resources& Resources::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void Resources::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Resources) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - requests_.Clear(); - limits_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Resources::_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) { - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources_ResourceEntry::_InternalParse; - object = msg->add_requests(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources_ResourceEntry::_InternalParse; - object = msg->add_limits(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 Resources::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.core.Resources) - 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)) { - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_requests())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_limits())); - } 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.core.Resources) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Resources) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Resources::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Resources) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - for (unsigned int i = 0, - n = static_cast(this->requests_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->requests(static_cast(i)), - output); - } - - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - for (unsigned int i = 0, - n = static_cast(this->limits_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->limits(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Resources) -} - -::google::protobuf::uint8* Resources::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Resources) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - for (unsigned int i = 0, - n = static_cast(this->requests_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->requests(static_cast(i)), target); - } - - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - for (unsigned int i = 0, - n = static_cast(this->limits_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->limits(static_cast(i)), 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.core.Resources) - return target; -} - -size_t Resources::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Resources) - 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; - - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - { - unsigned int count = static_cast(this->requests_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->requests(static_cast(i))); - } - } - - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - { - unsigned int count = static_cast(this->limits_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->limits(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Resources::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Resources) - GOOGLE_DCHECK_NE(&from, this); - const Resources* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Resources) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Resources) - MergeFrom(*source); - } -} - -void Resources::MergeFrom(const Resources& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Resources) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - requests_.MergeFrom(from.requests_); - limits_.MergeFrom(from.limits_); -} - -void Resources::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Resources) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Resources::CopyFrom(const Resources& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Resources) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Resources::IsInitialized() const { - return true; -} - -void Resources::Swap(Resources* other) { - if (other == this) return; - InternalSwap(other); -} -void Resources::InternalSwap(Resources* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&requests_)->InternalSwap(CastToBase(&other->requests_)); - CastToBase(&limits_)->InternalSwap(CastToBase(&other->limits_)); -} - -::google::protobuf::Metadata Resources::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GPUAccelerator::InitAsDefaultInstance() { - ::flyteidl::core::_GPUAccelerator_default_instance_.unpartitioned_ = false; - ::flyteidl::core::_GPUAccelerator_default_instance_.partition_size_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class GPUAccelerator::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GPUAccelerator::kDeviceFieldNumber; -const int GPUAccelerator::kUnpartitionedFieldNumber; -const int GPUAccelerator::kPartitionSizeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GPUAccelerator::GPUAccelerator() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.GPUAccelerator) -} -GPUAccelerator::GPUAccelerator(const GPUAccelerator& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.device().size() > 0) { - device_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_); - } - clear_has_partition_size_value(); - switch (from.partition_size_value_case()) { - case kUnpartitioned: { - set_unpartitioned(from.unpartitioned()); - break; - } - case kPartitionSize: { - set_partition_size(from.partition_size()); - break; - } - case PARTITION_SIZE_VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.GPUAccelerator) -} - -void GPUAccelerator::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto.base); - device_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_partition_size_value(); -} - -GPUAccelerator::~GPUAccelerator() { - // @@protoc_insertion_point(destructor:flyteidl.core.GPUAccelerator) - SharedDtor(); -} - -void GPUAccelerator::SharedDtor() { - device_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (has_partition_size_value()) { - clear_partition_size_value(); - } -} - -void GPUAccelerator::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GPUAccelerator& GPUAccelerator::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GPUAccelerator_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void GPUAccelerator::clear_partition_size_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.GPUAccelerator) - switch (partition_size_value_case()) { - case kUnpartitioned: { - // No need to clear - break; - } - case kPartitionSize: { - partition_size_value_.partition_size_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case PARTITION_SIZE_VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = PARTITION_SIZE_VALUE_NOT_SET; -} - - -void GPUAccelerator::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.GPUAccelerator) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - device_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_partition_size_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GPUAccelerator::_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) { - // string device = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.GPUAccelerator.device"); - object = msg->mutable_device(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool unpartitioned = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_unpartitioned(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string partition_size = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.GPUAccelerator.partition_size"); - object = msg->mutable_partition_size(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GPUAccelerator::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.core.GPUAccelerator) - 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)) { - // string device = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_device())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), static_cast(this->device().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.GPUAccelerator.device")); - } else { - goto handle_unusual; - } - break; - } - - // bool unpartitioned = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - clear_partition_size_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &partition_size_value_.unpartitioned_))); - set_has_unpartitioned(); - } else { - goto handle_unusual; - } - break; - } - - // string partition_size = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_partition_size())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_size().data(), static_cast(this->partition_size().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.GPUAccelerator.partition_size")); - } 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.core.GPUAccelerator) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.GPUAccelerator) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GPUAccelerator::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.GPUAccelerator) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string device = 1; - if (this->device().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), static_cast(this->device().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.GPUAccelerator.device"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->device(), output); - } - - // bool unpartitioned = 2; - if (has_unpartitioned()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(2, this->unpartitioned(), output); - } - - // string partition_size = 3; - if (has_partition_size()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_size().data(), static_cast(this->partition_size().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.GPUAccelerator.partition_size"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->partition_size(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.GPUAccelerator) -} - -::google::protobuf::uint8* GPUAccelerator::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.GPUAccelerator) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string device = 1; - if (this->device().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device().data(), static_cast(this->device().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.GPUAccelerator.device"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->device(), target); - } - - // bool unpartitioned = 2; - if (has_unpartitioned()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->unpartitioned(), target); - } - - // string partition_size = 3; - if (has_partition_size()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partition_size().data(), static_cast(this->partition_size().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.GPUAccelerator.partition_size"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->partition_size(), 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.core.GPUAccelerator) - return target; -} - -size_t GPUAccelerator::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.GPUAccelerator) - 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; - - // string device = 1; - if (this->device().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->device()); - } - - switch (partition_size_value_case()) { - // bool unpartitioned = 2; - case kUnpartitioned: { - total_size += 1 + 1; - break; - } - // string partition_size = 3; - case kPartitionSize: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->partition_size()); - break; - } - case PARTITION_SIZE_VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GPUAccelerator::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.GPUAccelerator) - GOOGLE_DCHECK_NE(&from, this); - const GPUAccelerator* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.GPUAccelerator) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.GPUAccelerator) - MergeFrom(*source); - } -} - -void GPUAccelerator::MergeFrom(const GPUAccelerator& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.GPUAccelerator) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.device().size() > 0) { - - device_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_); - } - switch (from.partition_size_value_case()) { - case kUnpartitioned: { - set_unpartitioned(from.unpartitioned()); - break; - } - case kPartitionSize: { - set_partition_size(from.partition_size()); - break; - } - case PARTITION_SIZE_VALUE_NOT_SET: { - break; - } - } -} - -void GPUAccelerator::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.GPUAccelerator) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GPUAccelerator::CopyFrom(const GPUAccelerator& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.GPUAccelerator) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GPUAccelerator::IsInitialized() const { - return true; -} - -void GPUAccelerator::Swap(GPUAccelerator* other) { - if (other == this) return; - InternalSwap(other); -} -void GPUAccelerator::InternalSwap(GPUAccelerator* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - device_.Swap(&other->device_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(partition_size_value_, other->partition_size_value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata GPUAccelerator::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExtendedResources::InitAsDefaultInstance() { - ::flyteidl::core::_ExtendedResources_default_instance_._instance.get_mutable()->gpu_accelerator_ = const_cast< ::flyteidl::core::GPUAccelerator*>( - ::flyteidl::core::GPUAccelerator::internal_default_instance()); -} -class ExtendedResources::HasBitSetters { - public: - static const ::flyteidl::core::GPUAccelerator& gpu_accelerator(const ExtendedResources* msg); -}; - -const ::flyteidl::core::GPUAccelerator& -ExtendedResources::HasBitSetters::gpu_accelerator(const ExtendedResources* msg) { - return *msg->gpu_accelerator_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExtendedResources::kGpuAcceleratorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExtendedResources::ExtendedResources() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ExtendedResources) -} -ExtendedResources::ExtendedResources(const ExtendedResources& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_gpu_accelerator()) { - gpu_accelerator_ = new ::flyteidl::core::GPUAccelerator(*from.gpu_accelerator_); - } else { - gpu_accelerator_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ExtendedResources) -} - -void ExtendedResources::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto.base); - gpu_accelerator_ = nullptr; -} - -ExtendedResources::~ExtendedResources() { - // @@protoc_insertion_point(destructor:flyteidl.core.ExtendedResources) - SharedDtor(); -} - -void ExtendedResources::SharedDtor() { - if (this != internal_default_instance()) delete gpu_accelerator_; -} - -void ExtendedResources::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExtendedResources& ExtendedResources::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void ExtendedResources::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ExtendedResources) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && gpu_accelerator_ != nullptr) { - delete gpu_accelerator_; - } - gpu_accelerator_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExtendedResources::_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.GPUAccelerator gpu_accelerator = 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::GPUAccelerator::_InternalParse; - object = msg->mutable_gpu_accelerator(); - 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 ExtendedResources::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.core.ExtendedResources) - 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.GPUAccelerator gpu_accelerator = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_gpu_accelerator())); - } 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.core.ExtendedResources) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ExtendedResources) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExtendedResources::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ExtendedResources) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - if (this->has_gpu_accelerator()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::gpu_accelerator(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ExtendedResources) -} - -::google::protobuf::uint8* ExtendedResources::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ExtendedResources) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - if (this->has_gpu_accelerator()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::gpu_accelerator(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.core.ExtendedResources) - return target; -} - -size_t ExtendedResources::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ExtendedResources) - 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.GPUAccelerator gpu_accelerator = 1; - if (this->has_gpu_accelerator()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *gpu_accelerator_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExtendedResources::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ExtendedResources) - GOOGLE_DCHECK_NE(&from, this); - const ExtendedResources* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ExtendedResources) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ExtendedResources) - MergeFrom(*source); - } -} - -void ExtendedResources::MergeFrom(const ExtendedResources& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ExtendedResources) - 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_gpu_accelerator()) { - mutable_gpu_accelerator()->::flyteidl::core::GPUAccelerator::MergeFrom(from.gpu_accelerator()); - } -} - -void ExtendedResources::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ExtendedResources) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExtendedResources::CopyFrom(const ExtendedResources& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ExtendedResources) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExtendedResources::IsInitialized() const { - return true; -} - -void ExtendedResources::Swap(ExtendedResources* other) { - if (other == this) return; - InternalSwap(other); -} -void ExtendedResources::InternalSwap(ExtendedResources* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(gpu_accelerator_, other->gpu_accelerator_); -} - -::google::protobuf::Metadata ExtendedResources::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RuntimeMetadata::InitAsDefaultInstance() { -} -class RuntimeMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RuntimeMetadata::kTypeFieldNumber; -const int RuntimeMetadata::kVersionFieldNumber; -const int RuntimeMetadata::kFlavorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RuntimeMetadata::RuntimeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.RuntimeMetadata) -} -RuntimeMetadata::RuntimeMetadata(const RuntimeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.flavor().size() > 0) { - flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.RuntimeMetadata) -} - -void RuntimeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - flavor_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -RuntimeMetadata::~RuntimeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.RuntimeMetadata) - SharedDtor(); -} - -void RuntimeMetadata::SharedDtor() { - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - flavor_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void RuntimeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RuntimeMetadata& RuntimeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RuntimeMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void RuntimeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.RuntimeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RuntimeMetadata::_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.RuntimeMetadata.RuntimeType type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyteidl::core::RuntimeMetadata_RuntimeType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string version = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.RuntimeMetadata.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string flavor = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.RuntimeMetadata.flavor"); - object = msg->mutable_flavor(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RuntimeMetadata::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.core.RuntimeMetadata) - 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.RuntimeMetadata.RuntimeType type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string version = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.RuntimeMetadata.version")); - } else { - goto handle_unusual; - } - break; - } - - // string flavor = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_flavor())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flavor().data(), static_cast(this->flavor().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.RuntimeMetadata.flavor")); - } 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.core.RuntimeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.RuntimeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RuntimeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.RuntimeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // string version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.RuntimeMetadata.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->version(), output); - } - - // string flavor = 3; - if (this->flavor().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flavor().data(), static_cast(this->flavor().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.RuntimeMetadata.flavor"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->flavor(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.RuntimeMetadata) -} - -::google::protobuf::uint8* RuntimeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.RuntimeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // string version = 2; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.RuntimeMetadata.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->version(), target); - } - - // string flavor = 3; - if (this->flavor().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flavor().data(), static_cast(this->flavor().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.RuntimeMetadata.flavor"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->flavor(), 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.core.RuntimeMetadata) - return target; -} - -size_t RuntimeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.RuntimeMetadata) - 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; - - // string version = 2; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // string flavor = 3; - if (this->flavor().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->flavor()); - } - - // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RuntimeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.RuntimeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const RuntimeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.RuntimeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.RuntimeMetadata) - MergeFrom(*source); - } -} - -void RuntimeMetadata::MergeFrom(const RuntimeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.RuntimeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.flavor().size() > 0) { - - flavor_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flavor_); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void RuntimeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.RuntimeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RuntimeMetadata::CopyFrom(const RuntimeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.RuntimeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RuntimeMetadata::IsInitialized() const { - return true; -} - -void RuntimeMetadata::Swap(RuntimeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void RuntimeMetadata::InternalSwap(RuntimeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - flavor_.Swap(&other->flavor_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::google::protobuf::Metadata RuntimeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -TaskMetadata_TagsEntry_DoNotUse::TaskMetadata_TagsEntry_DoNotUse() {} -TaskMetadata_TagsEntry_DoNotUse::TaskMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TaskMetadata_TagsEntry_DoNotUse::MergeFrom(const TaskMetadata_TagsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TaskMetadata_TagsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[5]; -} -void TaskMetadata_TagsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskMetadata_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TaskMetadata_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.TagsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.TagsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void TaskMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->runtime_ = const_cast< ::flyteidl::core::RuntimeMetadata*>( - ::flyteidl::core::RuntimeMetadata::internal_default_instance()); - ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::core::_TaskMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( - ::flyteidl::core::RetryStrategy::internal_default_instance()); - ::flyteidl::core::_TaskMetadata_default_instance_.interruptible_ = false; -} -class TaskMetadata::HasBitSetters { - public: - static const ::flyteidl::core::RuntimeMetadata& runtime(const TaskMetadata* msg); - static const ::google::protobuf::Duration& timeout(const TaskMetadata* msg); - static const ::flyteidl::core::RetryStrategy& retries(const TaskMetadata* msg); -}; - -const ::flyteidl::core::RuntimeMetadata& -TaskMetadata::HasBitSetters::runtime(const TaskMetadata* msg) { - return *msg->runtime_; -} -const ::google::protobuf::Duration& -TaskMetadata::HasBitSetters::timeout(const TaskMetadata* msg) { - return *msg->timeout_; -} -const ::flyteidl::core::RetryStrategy& -TaskMetadata::HasBitSetters::retries(const TaskMetadata* msg) { - return *msg->retries_; -} -void TaskMetadata::clear_timeout() { - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; - } - timeout_ = nullptr; -} -void TaskMetadata::clear_retries() { - if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { - delete retries_; - } - retries_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskMetadata::kDiscoverableFieldNumber; -const int TaskMetadata::kRuntimeFieldNumber; -const int TaskMetadata::kTimeoutFieldNumber; -const int TaskMetadata::kRetriesFieldNumber; -const int TaskMetadata::kDiscoveryVersionFieldNumber; -const int TaskMetadata::kDeprecatedErrorMessageFieldNumber; -const int TaskMetadata::kInterruptibleFieldNumber; -const int TaskMetadata::kCacheSerializableFieldNumber; -const int TaskMetadata::kGeneratesDeckFieldNumber; -const int TaskMetadata::kTagsFieldNumber; -const int TaskMetadata::kPodTemplateNameFieldNumber; -const int TaskMetadata::kCacheIgnoreInputVarsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskMetadata::TaskMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskMetadata) -} -TaskMetadata::TaskMetadata(const TaskMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - cache_ignore_input_vars_(from.cache_ignore_input_vars_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tags_.MergeFrom(from.tags_); - discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.discovery_version().size() > 0) { - discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); - } - deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.deprecated_error_message().size() > 0) { - deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); - } - pod_template_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.pod_template_name().size() > 0) { - pod_template_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pod_template_name_); - } - if (from.has_runtime()) { - runtime_ = new ::flyteidl::core::RuntimeMetadata(*from.runtime_); - } else { - runtime_ = nullptr; - } - if (from.has_timeout()) { - timeout_ = new ::google::protobuf::Duration(*from.timeout_); - } else { - timeout_ = nullptr; - } - if (from.has_retries()) { - retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); - } else { - retries_ = nullptr; - } - ::memcpy(&discoverable_, &from.discoverable_, - static_cast(reinterpret_cast(&generates_deck_) - - reinterpret_cast(&discoverable_)) + sizeof(generates_deck_)); - clear_has_interruptible_value(); - switch (from.interruptible_value_case()) { - case kInterruptible: { - set_interruptible(from.interruptible()); - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskMetadata) -} - -void TaskMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - discovery_version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deprecated_error_message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - pod_template_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&runtime_, 0, static_cast( - reinterpret_cast(&generates_deck_) - - reinterpret_cast(&runtime_)) + sizeof(generates_deck_)); - clear_has_interruptible_value(); -} - -TaskMetadata::~TaskMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskMetadata) - SharedDtor(); -} - -void TaskMetadata::SharedDtor() { - discovery_version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deprecated_error_message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - pod_template_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete runtime_; - if (this != internal_default_instance()) delete timeout_; - if (this != internal_default_instance()) delete retries_; - if (has_interruptible_value()) { - clear_interruptible_value(); - } -} - -void TaskMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskMetadata& TaskMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void TaskMetadata::clear_interruptible_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskMetadata) - switch (interruptible_value_case()) { - case kInterruptible: { - // No need to clear - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; -} - - -void TaskMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - cache_ignore_input_vars_.Clear(); - discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - pod_template_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && runtime_ != nullptr) { - delete runtime_; - } - runtime_ = nullptr; - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; - } - timeout_ = nullptr; - if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { - delete retries_; - } - retries_ = nullptr; - ::memset(&discoverable_, 0, static_cast( - reinterpret_cast(&generates_deck_) - - reinterpret_cast(&discoverable_)) + sizeof(generates_deck_)); - clear_interruptible_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskMetadata::_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) { - // bool discoverable = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_discoverable(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.RuntimeMetadata runtime = 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::core::RuntimeMetadata::_InternalParse; - object = msg->mutable_runtime(); - 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; - } - // .google.protobuf.Duration timeout = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_timeout(); - 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.core.RetryStrategy retries = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::RetryStrategy::_InternalParse; - object = msg->mutable_retries(); - 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; - } - // string discovery_version = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.discovery_version"); - object = msg->mutable_discovery_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string deprecated_error_message = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.deprecated_error_message"); - object = msg->mutable_deprecated_error_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool interruptible = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 64) goto handle_unusual; - msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool cache_serializable = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 72) goto handle_unusual; - msg->set_cache_serializable(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool generates_deck = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; - msg->set_generates_deck(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // map tags = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->tags_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 90 && (ptr += 1)); - break; - } - // string pod_template_name = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.pod_template_name"); - object = msg->mutable_pod_template_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string cache_ignore_input_vars = 13; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskMetadata.cache_ignore_input_vars"); - object = msg->add_cache_ignore_input_vars(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 106 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskMetadata::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.core.TaskMetadata) - 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)) { - // bool discoverable = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &discoverable_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.RuntimeMetadata runtime = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_runtime())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration timeout = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_timeout())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.RetryStrategy retries = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_retries())); - } else { - goto handle_unusual; - } - break; - } - - // string discovery_version = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_discovery_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->discovery_version().data(), static_cast(this->discovery_version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.discovery_version")); - } else { - goto handle_unusual; - } - break; - } - - // string deprecated_error_message = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_deprecated_error_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.deprecated_error_message")); - } else { - goto handle_unusual; - } - break; - } - - // bool interruptible = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (64 & 0xFF)) { - clear_interruptible_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &interruptible_value_.interruptible_))); - set_has_interruptible(); - } else { - goto handle_unusual; - } - break; - } - - // bool cache_serializable = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (72 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &cache_serializable_))); - } else { - goto handle_unusual; - } - break; - } - - // bool generates_deck = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &generates_deck_))); - } else { - goto handle_unusual; - } - break; - } - - // map tags = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - TaskMetadata_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TaskMetadata_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.TagsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.TagsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // string pod_template_name = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_pod_template_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pod_template_name().data(), static_cast(this->pod_template_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.pod_template_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string cache_ignore_input_vars = 13; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_cache_ignore_input_vars())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cache_ignore_input_vars(this->cache_ignore_input_vars_size() - 1).data(), - static_cast(this->cache_ignore_input_vars(this->cache_ignore_input_vars_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskMetadata.cache_ignore_input_vars")); - } 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.core.TaskMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool discoverable = 1; - if (this->discoverable() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->discoverable(), output); - } - - // .flyteidl.core.RuntimeMetadata runtime = 2; - if (this->has_runtime()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::runtime(this), output); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::timeout(this), output); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::retries(this), output); - } - - // string discovery_version = 6; - if (this->discovery_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->discovery_version().data(), static_cast(this->discovery_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.discovery_version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->discovery_version(), output); - } - - // string deprecated_error_message = 7; - if (this->deprecated_error_message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.deprecated_error_message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->deprecated_error_message(), output); - } - - // bool interruptible = 8; - if (has_interruptible()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->interruptible(), output); - } - - // bool cache_serializable = 9; - if (this->cache_serializable() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(9, this->cache_serializable(), output); - } - - // bool generates_deck = 10; - if (this->generates_deck() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(10, this->generates_deck(), output); - } - - // map tags = 11; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.TagsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->tags().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(11, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(11, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // string pod_template_name = 12; - if (this->pod_template_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pod_template_name().data(), static_cast(this->pod_template_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.pod_template_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 12, this->pod_template_name(), output); - } - - // repeated string cache_ignore_input_vars = 13; - for (int i = 0, n = this->cache_ignore_input_vars_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cache_ignore_input_vars(i).data(), static_cast(this->cache_ignore_input_vars(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.cache_ignore_input_vars"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 13, this->cache_ignore_input_vars(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskMetadata) -} - -::google::protobuf::uint8* TaskMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool discoverable = 1; - if (this->discoverable() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->discoverable(), target); - } - - // .flyteidl.core.RuntimeMetadata runtime = 2; - if (this->has_runtime()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::runtime(this), target); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::timeout(this), target); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::retries(this), target); - } - - // string discovery_version = 6; - if (this->discovery_version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->discovery_version().data(), static_cast(this->discovery_version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.discovery_version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->discovery_version(), target); - } - - // string deprecated_error_message = 7; - if (this->deprecated_error_message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deprecated_error_message().data(), static_cast(this->deprecated_error_message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.deprecated_error_message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->deprecated_error_message(), target); - } - - // bool interruptible = 8; - if (has_interruptible()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->interruptible(), target); - } - - // bool cache_serializable = 9; - if (this->cache_serializable() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(9, this->cache_serializable(), target); - } - - // bool generates_deck = 10; - if (this->generates_deck() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(10, this->generates_deck(), target); - } - - // map tags = 11; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.TagsEntry.value"); - } - }; - - if (false && - this->tags().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(11, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(11, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // string pod_template_name = 12; - if (this->pod_template_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->pod_template_name().data(), static_cast(this->pod_template_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.pod_template_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->pod_template_name(), target); - } - - // repeated string cache_ignore_input_vars = 13; - for (int i = 0, n = this->cache_ignore_input_vars_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cache_ignore_input_vars(i).data(), static_cast(this->cache_ignore_input_vars(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskMetadata.cache_ignore_input_vars"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(13, this->cache_ignore_input_vars(i), 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.core.TaskMetadata) - return target; -} - -size_t TaskMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskMetadata) - 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; - - // map tags = 11; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // repeated string cache_ignore_input_vars = 13; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->cache_ignore_input_vars_size()); - for (int i = 0, n = this->cache_ignore_input_vars_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->cache_ignore_input_vars(i)); - } - - // string discovery_version = 6; - if (this->discovery_version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->discovery_version()); - } - - // string deprecated_error_message = 7; - if (this->deprecated_error_message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->deprecated_error_message()); - } - - // string pod_template_name = 12; - if (this->pod_template_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->pod_template_name()); - } - - // .flyteidl.core.RuntimeMetadata runtime = 2; - if (this->has_runtime()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *runtime_); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *timeout_); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *retries_); - } - - // bool discoverable = 1; - if (this->discoverable() != 0) { - total_size += 1 + 1; - } - - // bool cache_serializable = 9; - if (this->cache_serializable() != 0) { - total_size += 1 + 1; - } - - // bool generates_deck = 10; - if (this->generates_deck() != 0) { - total_size += 1 + 1; - } - - switch (interruptible_value_case()) { - // bool interruptible = 8; - case kInterruptible: { - total_size += 1 + 1; - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskMetadata) - GOOGLE_DCHECK_NE(&from, this); - const TaskMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskMetadata) - MergeFrom(*source); - } -} - -void TaskMetadata::MergeFrom(const TaskMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - cache_ignore_input_vars_.MergeFrom(from.cache_ignore_input_vars_); - if (from.discovery_version().size() > 0) { - - discovery_version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.discovery_version_); - } - if (from.deprecated_error_message().size() > 0) { - - deprecated_error_message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deprecated_error_message_); - } - if (from.pod_template_name().size() > 0) { - - pod_template_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pod_template_name_); - } - if (from.has_runtime()) { - mutable_runtime()->::flyteidl::core::RuntimeMetadata::MergeFrom(from.runtime()); - } - if (from.has_timeout()) { - mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); - } - if (from.has_retries()) { - mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); - } - if (from.discoverable() != 0) { - set_discoverable(from.discoverable()); - } - if (from.cache_serializable() != 0) { - set_cache_serializable(from.cache_serializable()); - } - if (from.generates_deck() != 0) { - set_generates_deck(from.generates_deck()); - } - switch (from.interruptible_value_case()) { - case kInterruptible: { - set_interruptible(from.interruptible()); - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } -} - -void TaskMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskMetadata::CopyFrom(const TaskMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskMetadata::IsInitialized() const { - return true; -} - -void TaskMetadata::Swap(TaskMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskMetadata::InternalSwap(TaskMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.Swap(&other->tags_); - cache_ignore_input_vars_.InternalSwap(CastToBase(&other->cache_ignore_input_vars_)); - discovery_version_.Swap(&other->discovery_version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - deprecated_error_message_.Swap(&other->deprecated_error_message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - pod_template_name_.Swap(&other->pod_template_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(runtime_, other->runtime_); - swap(timeout_, other->timeout_); - swap(retries_, other->retries_); - swap(discoverable_, other->discoverable_); - swap(cache_serializable_, other->cache_serializable_); - swap(generates_deck_, other->generates_deck_); - swap(interruptible_value_, other->interruptible_value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata TaskMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -TaskTemplate_ConfigEntry_DoNotUse::TaskTemplate_ConfigEntry_DoNotUse() {} -TaskTemplate_ConfigEntry_DoNotUse::TaskTemplate_ConfigEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TaskTemplate_ConfigEntry_DoNotUse::MergeFrom(const TaskTemplate_ConfigEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TaskTemplate_ConfigEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[7]; -} -void TaskTemplate_ConfigEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskTemplate_ConfigEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TaskTemplate_ConfigEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskTemplate.ConfigEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskTemplate.ConfigEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void TaskTemplate::InitAsDefaultInstance() { - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::TaskMetadata*>( - ::flyteidl::core::TaskMetadata::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( - ::flyteidl::core::TypedInterface::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->custom_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_.container_ = const_cast< ::flyteidl::core::Container*>( - ::flyteidl::core::Container::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_.k8s_pod_ = const_cast< ::flyteidl::core::K8sPod*>( - ::flyteidl::core::K8sPod::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_.sql_ = const_cast< ::flyteidl::core::Sql*>( - ::flyteidl::core::Sql::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->security_context_ = const_cast< ::flyteidl::core::SecurityContext*>( - ::flyteidl::core::SecurityContext::internal_default_instance()); - ::flyteidl::core::_TaskTemplate_default_instance_._instance.get_mutable()->extended_resources_ = const_cast< ::flyteidl::core::ExtendedResources*>( - ::flyteidl::core::ExtendedResources::internal_default_instance()); -} -class TaskTemplate::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const TaskTemplate* msg); - static const ::flyteidl::core::TaskMetadata& metadata(const TaskTemplate* msg); - static const ::flyteidl::core::TypedInterface& interface(const TaskTemplate* msg); - static const ::google::protobuf::Struct& custom(const TaskTemplate* msg); - static const ::flyteidl::core::Container& container(const TaskTemplate* msg); - static const ::flyteidl::core::K8sPod& k8s_pod(const TaskTemplate* msg); - static const ::flyteidl::core::Sql& sql(const TaskTemplate* msg); - static const ::flyteidl::core::SecurityContext& security_context(const TaskTemplate* msg); - static const ::flyteidl::core::ExtendedResources& extended_resources(const TaskTemplate* msg); -}; - -const ::flyteidl::core::Identifier& -TaskTemplate::HasBitSetters::id(const TaskTemplate* msg) { - return *msg->id_; -} -const ::flyteidl::core::TaskMetadata& -TaskTemplate::HasBitSetters::metadata(const TaskTemplate* msg) { - return *msg->metadata_; -} -const ::flyteidl::core::TypedInterface& -TaskTemplate::HasBitSetters::interface(const TaskTemplate* msg) { - return *msg->interface_; -} -const ::google::protobuf::Struct& -TaskTemplate::HasBitSetters::custom(const TaskTemplate* msg) { - return *msg->custom_; -} -const ::flyteidl::core::Container& -TaskTemplate::HasBitSetters::container(const TaskTemplate* msg) { - return *msg->target_.container_; -} -const ::flyteidl::core::K8sPod& -TaskTemplate::HasBitSetters::k8s_pod(const TaskTemplate* msg) { - return *msg->target_.k8s_pod_; -} -const ::flyteidl::core::Sql& -TaskTemplate::HasBitSetters::sql(const TaskTemplate* msg) { - return *msg->target_.sql_; -} -const ::flyteidl::core::SecurityContext& -TaskTemplate::HasBitSetters::security_context(const TaskTemplate* msg) { - return *msg->security_context_; -} -const ::flyteidl::core::ExtendedResources& -TaskTemplate::HasBitSetters::extended_resources(const TaskTemplate* msg) { - return *msg->extended_resources_; -} -void TaskTemplate::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void TaskTemplate::clear_interface() { - if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { - delete interface_; - } - interface_ = nullptr; -} -void TaskTemplate::clear_custom() { - if (GetArenaNoVirtual() == nullptr && custom_ != nullptr) { - delete custom_; - } - custom_ = nullptr; -} -void TaskTemplate::set_allocated_container(::flyteidl::core::Container* container) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (container) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - container = ::google::protobuf::internal::GetOwnedMessage( - message_arena, container, submessage_arena); - } - set_has_container(); - target_.container_ = container; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.container) -} -void TaskTemplate::set_allocated_k8s_pod(::flyteidl::core::K8sPod* k8s_pod) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (k8s_pod) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - k8s_pod = ::google::protobuf::internal::GetOwnedMessage( - message_arena, k8s_pod, submessage_arena); - } - set_has_k8s_pod(); - target_.k8s_pod_ = k8s_pod; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.k8s_pod) -} -void TaskTemplate::set_allocated_sql(::flyteidl::core::Sql* sql) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (sql) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sql = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sql, submessage_arena); - } - set_has_sql(); - target_.sql_ = sql; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.sql) -} -void TaskTemplate::clear_security_context() { - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskTemplate::kIdFieldNumber; -const int TaskTemplate::kTypeFieldNumber; -const int TaskTemplate::kMetadataFieldNumber; -const int TaskTemplate::kInterfaceFieldNumber; -const int TaskTemplate::kCustomFieldNumber; -const int TaskTemplate::kContainerFieldNumber; -const int TaskTemplate::kK8SPodFieldNumber; -const int TaskTemplate::kSqlFieldNumber; -const int TaskTemplate::kTaskTypeVersionFieldNumber; -const int TaskTemplate::kSecurityContextFieldNumber; -const int TaskTemplate::kExtendedResourcesFieldNumber; -const int TaskTemplate::kConfigFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskTemplate::TaskTemplate() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskTemplate) -} -TaskTemplate::TaskTemplate(const TaskTemplate& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - config_.MergeFrom(from.config_); - type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.type().size() > 0) { - type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::TaskMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_interface()) { - interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); - } else { - interface_ = nullptr; - } - if (from.has_custom()) { - custom_ = new ::google::protobuf::Struct(*from.custom_); - } else { - custom_ = nullptr; - } - if (from.has_security_context()) { - security_context_ = new ::flyteidl::core::SecurityContext(*from.security_context_); - } else { - security_context_ = nullptr; - } - if (from.has_extended_resources()) { - extended_resources_ = new ::flyteidl::core::ExtendedResources(*from.extended_resources_); - } else { - extended_resources_ = nullptr; - } - task_type_version_ = from.task_type_version_; - clear_has_target(); - switch (from.target_case()) { - case kContainer: { - mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); - break; - } - case kK8SPod: { - mutable_k8s_pod()->::flyteidl::core::K8sPod::MergeFrom(from.k8s_pod()); - break; - } - case kSql: { - mutable_sql()->::flyteidl::core::Sql::MergeFrom(from.sql()); - break; - } - case TARGET_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskTemplate) -} - -void TaskTemplate::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); - type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&task_type_version_) - - reinterpret_cast(&id_)) + sizeof(task_type_version_)); - clear_has_target(); -} - -TaskTemplate::~TaskTemplate() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskTemplate) - SharedDtor(); -} - -void TaskTemplate::SharedDtor() { - type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete interface_; - if (this != internal_default_instance()) delete custom_; - if (this != internal_default_instance()) delete security_context_; - if (this != internal_default_instance()) delete extended_resources_; - if (has_target()) { - clear_target(); - } -} - -void TaskTemplate::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskTemplate& TaskTemplate::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void TaskTemplate::clear_target() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskTemplate) - switch (target_case()) { - case kContainer: { - delete target_.container_; - break; - } - case kK8SPod: { - delete target_.k8s_pod_; - break; - } - case kSql: { - delete target_.sql_; - break; - } - case TARGET_NOT_SET: { - break; - } - } - _oneof_case_[0] = TARGET_NOT_SET; -} - - -void TaskTemplate::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskTemplate) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - config_.Clear(); - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { - delete interface_; - } - interface_ = nullptr; - if (GetArenaNoVirtual() == nullptr && custom_ != nullptr) { - delete custom_; - } - custom_ = nullptr; - if (GetArenaNoVirtual() == nullptr && security_context_ != nullptr) { - delete security_context_; - } - security_context_ = nullptr; - if (GetArenaNoVirtual() == nullptr && extended_resources_ != nullptr) { - delete extended_resources_; - } - extended_resources_ = nullptr; - task_type_version_ = 0; - clear_target(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskTemplate::_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; - } - // string type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TaskTemplate.type"); - object = msg->mutable_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.TaskMetadata metadata = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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.core.TypedInterface interface = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; - object = msg->mutable_interface(); - 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; - } - // .google.protobuf.Struct custom = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_custom(); - 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.core.Container container = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Container::_InternalParse; - object = msg->mutable_container(); - 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; - } - // int32 task_type_version = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 56) goto handle_unusual; - msg->set_task_type_version(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.SecurityContext security_context = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SecurityContext::_InternalParse; - object = msg->mutable_security_context(); - 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.core.ExtendedResources extended_resources = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ExtendedResources::_InternalParse; - object = msg->mutable_extended_resources(); - 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; - } - // map config = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->config_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 386 && (ptr += 2)); - break; - } - // .flyteidl.core.K8sPod k8s_pod = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::K8sPod::_InternalParse; - object = msg->mutable_k8s_pod(); - 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.core.Sql sql = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 146) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Sql::_InternalParse; - object = msg->mutable_sql(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskTemplate::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.core.TaskTemplate) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - 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; - } - - // string type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskTemplate.type")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskMetadata metadata = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypedInterface interface = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interface())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct custom = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_custom())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Container container = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_container())); - } else { - goto handle_unusual; - } - break; - } - - // int32 task_type_version = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (56 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &task_type_version_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SecurityContext security_context = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_security_context())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExtendedResources extended_resources = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_extended_resources())); - } else { - goto handle_unusual; - } - break; - } - - // map config = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - TaskTemplate_ConfigEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TaskTemplate_ConfigEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&config_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskTemplate.ConfigEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TaskTemplate.ConfigEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.K8sPod k8s_pod = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_k8s_pod())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Sql sql = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (146 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sql())); - } 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.core.TaskTemplate) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskTemplate) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskTemplate::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskTemplate) - ::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); - } - - // string type = 2; - if (this->type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->type(), output); - } - - // .flyteidl.core.TaskMetadata metadata = 3; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::metadata(this), output); - } - - // .flyteidl.core.TypedInterface interface = 4; - if (this->has_interface()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::interface(this), output); - } - - // .google.protobuf.Struct custom = 5; - if (this->has_custom()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::custom(this), output); - } - - // .flyteidl.core.Container container = 6; - if (has_container()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::container(this), output); - } - - // int32 task_type_version = 7; - if (this->task_type_version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->task_type_version(), output); - } - - // .flyteidl.core.SecurityContext security_context = 8; - if (this->has_security_context()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::security_context(this), output); - } - - // .flyteidl.core.ExtendedResources extended_resources = 9; - if (this->has_extended_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::extended_resources(this), output); - } - - // map config = 16; - if (!this->config().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.ConfigEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.ConfigEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->config().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->config().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->config().begin(); - it != this->config().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(config_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(16, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->config().begin(); - it != this->config().end(); ++it) { - entry.reset(config_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(16, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // .flyteidl.core.K8sPod k8s_pod = 17; - if (has_k8s_pod()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::k8s_pod(this), output); - } - - // .flyteidl.core.Sql sql = 18; - if (has_sql()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 18, HasBitSetters::sql(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskTemplate) -} - -::google::protobuf::uint8* TaskTemplate::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskTemplate) - ::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); - } - - // string type = 2; - if (this->type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->type().data(), static_cast(this->type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->type(), target); - } - - // .flyteidl.core.TaskMetadata metadata = 3; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::metadata(this), target); - } - - // .flyteidl.core.TypedInterface interface = 4; - if (this->has_interface()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::interface(this), target); - } - - // .google.protobuf.Struct custom = 5; - if (this->has_custom()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::custom(this), target); - } - - // .flyteidl.core.Container container = 6; - if (has_container()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::container(this), target); - } - - // int32 task_type_version = 7; - if (this->task_type_version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->task_type_version(), target); - } - - // .flyteidl.core.SecurityContext security_context = 8; - if (this->has_security_context()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::security_context(this), target); - } - - // .flyteidl.core.ExtendedResources extended_resources = 9; - if (this->has_extended_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::extended_resources(this), target); - } - - // map config = 16; - if (!this->config().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.ConfigEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TaskTemplate.ConfigEntry.value"); - } - }; - - if (false && - this->config().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->config().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->config().begin(); - it != this->config().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(config_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(16, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->config().begin(); - it != this->config().end(); ++it) { - entry.reset(config_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(16, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // .flyteidl.core.K8sPod k8s_pod = 17; - if (has_k8s_pod()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::k8s_pod(this), target); - } - - // .flyteidl.core.Sql sql = 18; - if (has_sql()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 18, HasBitSetters::sql(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.core.TaskTemplate) - return target; -} - -size_t TaskTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskTemplate) - 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; - - // map config = 16; - total_size += 2 * - ::google::protobuf::internal::FromIntSize(this->config_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->config().begin(); - it != this->config().end(); ++it) { - entry.reset(config_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string type = 2; - if (this->type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->type()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.TaskMetadata metadata = 3; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.TypedInterface interface = 4; - if (this->has_interface()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interface_); - } - - // .google.protobuf.Struct custom = 5; - if (this->has_custom()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *custom_); - } - - // .flyteidl.core.SecurityContext security_context = 8; - if (this->has_security_context()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *security_context_); - } - - // .flyteidl.core.ExtendedResources extended_resources = 9; - if (this->has_extended_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *extended_resources_); - } - - // int32 task_type_version = 7; - if (this->task_type_version() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->task_type_version()); - } - - switch (target_case()) { - // .flyteidl.core.Container container = 6; - case kContainer: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.container_); - break; - } - // .flyteidl.core.K8sPod k8s_pod = 17; - case kK8SPod: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.k8s_pod_); - break; - } - // .flyteidl.core.Sql sql = 18; - case kSql: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.sql_); - break; - } - case TARGET_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskTemplate::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskTemplate) - GOOGLE_DCHECK_NE(&from, this); - const TaskTemplate* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskTemplate) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskTemplate) - MergeFrom(*source); - } -} - -void TaskTemplate::MergeFrom(const TaskTemplate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskTemplate) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - config_.MergeFrom(from.config_); - if (from.type().size() > 0) { - - type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::core::TaskMetadata::MergeFrom(from.metadata()); - } - if (from.has_interface()) { - mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); - } - if (from.has_custom()) { - mutable_custom()->::google::protobuf::Struct::MergeFrom(from.custom()); - } - if (from.has_security_context()) { - mutable_security_context()->::flyteidl::core::SecurityContext::MergeFrom(from.security_context()); - } - if (from.has_extended_resources()) { - mutable_extended_resources()->::flyteidl::core::ExtendedResources::MergeFrom(from.extended_resources()); - } - if (from.task_type_version() != 0) { - set_task_type_version(from.task_type_version()); - } - switch (from.target_case()) { - case kContainer: { - mutable_container()->::flyteidl::core::Container::MergeFrom(from.container()); - break; - } - case kK8SPod: { - mutable_k8s_pod()->::flyteidl::core::K8sPod::MergeFrom(from.k8s_pod()); - break; - } - case kSql: { - mutable_sql()->::flyteidl::core::Sql::MergeFrom(from.sql()); - break; - } - case TARGET_NOT_SET: { - break; - } - } -} - -void TaskTemplate::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskTemplate::CopyFrom(const TaskTemplate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskTemplate::IsInitialized() const { - return true; -} - -void TaskTemplate::Swap(TaskTemplate* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskTemplate::InternalSwap(TaskTemplate* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - config_.Swap(&other->config_); - type_.Swap(&other->type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(metadata_, other->metadata_); - swap(interface_, other->interface_); - swap(custom_, other->custom_); - swap(security_context_, other->security_context_); - swap(extended_resources_, other->extended_resources_); - swap(task_type_version_, other->task_type_version_); - swap(target_, other->target_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata TaskTemplate::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ContainerPort::InitAsDefaultInstance() { -} -class ContainerPort::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ContainerPort::kContainerPortFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ContainerPort::ContainerPort() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ContainerPort) -} -ContainerPort::ContainerPort(const ContainerPort& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - container_port_ = from.container_port_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ContainerPort) -} - -void ContainerPort::SharedCtor() { - container_port_ = 0u; -} - -ContainerPort::~ContainerPort() { - // @@protoc_insertion_point(destructor:flyteidl.core.ContainerPort) - SharedDtor(); -} - -void ContainerPort::SharedDtor() { -} - -void ContainerPort::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ContainerPort& ContainerPort::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ContainerPort_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void ContainerPort::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ContainerPort) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - container_port_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ContainerPort::_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) { - // uint32 container_port = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_container_port(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ContainerPort::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.core.ContainerPort) - 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)) { - // uint32 container_port = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &container_port_))); - } 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.core.ContainerPort) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ContainerPort) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ContainerPort::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ContainerPort) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 container_port = 1; - if (this->container_port() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->container_port(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ContainerPort) -} - -::google::protobuf::uint8* ContainerPort::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ContainerPort) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 container_port = 1; - if (this->container_port() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->container_port(), 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.core.ContainerPort) - return target; -} - -size_t ContainerPort::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ContainerPort) - 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; - - // uint32 container_port = 1; - if (this->container_port() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->container_port()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ContainerPort::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ContainerPort) - GOOGLE_DCHECK_NE(&from, this); - const ContainerPort* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ContainerPort) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ContainerPort) - MergeFrom(*source); - } -} - -void ContainerPort::MergeFrom(const ContainerPort& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ContainerPort) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.container_port() != 0) { - set_container_port(from.container_port()); - } -} - -void ContainerPort::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ContainerPort) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ContainerPort::CopyFrom(const ContainerPort& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ContainerPort) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ContainerPort::IsInitialized() const { - return true; -} - -void ContainerPort::Swap(ContainerPort* other) { - if (other == this) return; - InternalSwap(other); -} -void ContainerPort::InternalSwap(ContainerPort* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(container_port_, other->container_port_); -} - -::google::protobuf::Metadata ContainerPort::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Container::InitAsDefaultInstance() { - ::flyteidl::core::_Container_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); - ::flyteidl::core::_Container_default_instance_._instance.get_mutable()->data_config_ = const_cast< ::flyteidl::core::DataLoadingConfig*>( - ::flyteidl::core::DataLoadingConfig::internal_default_instance()); -} -class Container::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const Container* msg); - static const ::flyteidl::core::DataLoadingConfig& data_config(const Container* msg); -}; - -const ::flyteidl::core::Resources& -Container::HasBitSetters::resources(const Container* msg) { - return *msg->resources_; -} -const ::flyteidl::core::DataLoadingConfig& -Container::HasBitSetters::data_config(const Container* msg) { - return *msg->data_config_; -} -void Container::clear_env() { - env_.Clear(); -} -void Container::clear_config() { - config_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Container::kImageFieldNumber; -const int Container::kCommandFieldNumber; -const int Container::kArgsFieldNumber; -const int Container::kResourcesFieldNumber; -const int Container::kEnvFieldNumber; -const int Container::kConfigFieldNumber; -const int Container::kPortsFieldNumber; -const int Container::kDataConfigFieldNumber; -const int Container::kArchitectureFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Container::Container() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Container) -} -Container::Container(const Container& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - command_(from.command_), - args_(from.args_), - env_(from.env_), - config_(from.config_), - ports_(from.ports_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - if (from.has_data_config()) { - data_config_ = new ::flyteidl::core::DataLoadingConfig(*from.data_config_); - } else { - data_config_ = nullptr; - } - architecture_ = from.architecture_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Container) -} - -void Container::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&architecture_) - - reinterpret_cast(&resources_)) + sizeof(architecture_)); -} - -Container::~Container() { - // @@protoc_insertion_point(destructor:flyteidl.core.Container) - SharedDtor(); -} - -void Container::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; - if (this != internal_default_instance()) delete data_config_; -} - -void Container::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Container& Container::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Container_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void Container::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Container) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - command_.Clear(); - args_.Clear(); - env_.Clear(); - config_.Clear(); - ports_.Clear(); - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { - delete data_config_; - } - data_config_ = nullptr; - architecture_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Container::_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) { - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string command = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.command"); - object = msg->add_command(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // repeated string args = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Container.args"); - object = msg->add_args(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // .flyteidl.core.Resources resources = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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; - } - // repeated .flyteidl.core.KeyValuePair env = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; - object = msg->add_env(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::KeyValuePair::_InternalParse; - object = msg->add_config(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.ContainerPort ports = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ContainerPort::_InternalParse; - object = msg->add_ports(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 58 && (ptr += 1)); - break; - } - // .flyteidl.core.DataLoadingConfig data_config = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::DataLoadingConfig::_InternalParse; - object = msg->mutable_data_config(); - 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.core.Container.Architecture architecture = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_architecture(static_cast<::flyteidl::core::Container_Architecture>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Container::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.core.Container) - 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)) { - // string image = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Container.image")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string command = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_command())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(this->command_size() - 1).data(), - static_cast(this->command(this->command_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Container.command")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string args = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_args())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->args(this->args_size() - 1).data(), - static_cast(this->args(this->args_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Container.args")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.KeyValuePair env = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_env())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_config())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ContainerPort ports = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_ports())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.DataLoadingConfig data_config = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data_config())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Container.Architecture architecture = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_architecture(static_cast< ::flyteidl::core::Container_Architecture >(value)); - } 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.core.Container) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Container) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Container::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Container) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string image = 1; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->image(), output); - } - - // repeated string command = 2; - for (int i = 0, n = this->command_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(i).data(), static_cast(this->command(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.command"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->command(i), output); - } - - // repeated string args = 3; - for (int i = 0, n = this->args_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->args(i).data(), static_cast(this->args(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.args"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->args(i), output); - } - - // .flyteidl.core.Resources resources = 4; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::resources(this), output); - } - - // repeated .flyteidl.core.KeyValuePair env = 5; - for (unsigned int i = 0, - n = static_cast(this->env_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->env(static_cast(i)), - output); - } - - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - for (unsigned int i = 0, - n = static_cast(this->config_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->config(static_cast(i)), - output); - } - - // repeated .flyteidl.core.ContainerPort ports = 7; - for (unsigned int i = 0, - n = static_cast(this->ports_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, - this->ports(static_cast(i)), - output); - } - - // .flyteidl.core.DataLoadingConfig data_config = 9; - if (this->has_data_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::data_config(this), output); - } - - // .flyteidl.core.Container.Architecture architecture = 10; - if (this->architecture() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 10, this->architecture(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Container) -} - -::google::protobuf::uint8* Container::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Container) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string image = 1; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->image(), target); - } - - // repeated string command = 2; - for (int i = 0, n = this->command_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(i).data(), static_cast(this->command(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.command"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(2, this->command(i), target); - } - - // repeated string args = 3; - for (int i = 0, n = this->args_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->args(i).data(), static_cast(this->args(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Container.args"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->args(i), target); - } - - // .flyteidl.core.Resources resources = 4; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::resources(this), target); - } - - // repeated .flyteidl.core.KeyValuePair env = 5; - for (unsigned int i = 0, - n = static_cast(this->env_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->env(static_cast(i)), target); - } - - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - for (unsigned int i = 0, - n = static_cast(this->config_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->config(static_cast(i)), target); - } - - // repeated .flyteidl.core.ContainerPort ports = 7; - for (unsigned int i = 0, - n = static_cast(this->ports_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, this->ports(static_cast(i)), target); - } - - // .flyteidl.core.DataLoadingConfig data_config = 9; - if (this->has_data_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::data_config(this), target); - } - - // .flyteidl.core.Container.Architecture architecture = 10; - if (this->architecture() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 10, this->architecture(), 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.core.Container) - return target; -} - -size_t Container::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Container) - 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; - - // repeated string command = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->command_size()); - for (int i = 0, n = this->command_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->command(i)); - } - - // repeated string args = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->args_size()); - for (int i = 0, n = this->args_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->args(i)); - } - - // repeated .flyteidl.core.KeyValuePair env = 5; - { - unsigned int count = static_cast(this->env_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->env(static_cast(i))); - } - } - - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - { - unsigned int count = static_cast(this->config_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->config(static_cast(i))); - } - } - - // repeated .flyteidl.core.ContainerPort ports = 7; - { - unsigned int count = static_cast(this->ports_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->ports(static_cast(i))); - } - } - - // string image = 1; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 4; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // .flyteidl.core.DataLoadingConfig data_config = 9; - if (this->has_data_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_config_); - } - - // .flyteidl.core.Container.Architecture architecture = 10; - if (this->architecture() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->architecture()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Container::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Container) - GOOGLE_DCHECK_NE(&from, this); - const Container* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Container) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Container) - MergeFrom(*source); - } -} - -void Container::MergeFrom(const Container& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Container) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - command_.MergeFrom(from.command_); - args_.MergeFrom(from.args_); - env_.MergeFrom(from.env_); - config_.MergeFrom(from.config_); - ports_.MergeFrom(from.ports_); - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.has_data_config()) { - mutable_data_config()->::flyteidl::core::DataLoadingConfig::MergeFrom(from.data_config()); - } - if (from.architecture() != 0) { - set_architecture(from.architecture()); - } -} - -void Container::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Container) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Container::CopyFrom(const Container& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Container) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Container::IsInitialized() const { - return true; -} - -void Container::Swap(Container* other) { - if (other == this) return; - InternalSwap(other); -} -void Container::InternalSwap(Container* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - command_.InternalSwap(CastToBase(&other->command_)); - args_.InternalSwap(CastToBase(&other->args_)); - CastToBase(&env_)->InternalSwap(CastToBase(&other->env_)); - CastToBase(&config_)->InternalSwap(CastToBase(&other->config_)); - CastToBase(&ports_)->InternalSwap(CastToBase(&other->ports_)); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); - swap(data_config_, other->data_config_); - swap(architecture_, other->architecture_); -} - -::google::protobuf::Metadata Container::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void IOStrategy::InitAsDefaultInstance() { -} -class IOStrategy::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IOStrategy::kDownloadModeFieldNumber; -const int IOStrategy::kUploadModeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IOStrategy::IOStrategy() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.IOStrategy) -} -IOStrategy::IOStrategy(const IOStrategy& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&download_mode_, &from.download_mode_, - static_cast(reinterpret_cast(&upload_mode_) - - reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.IOStrategy) -} - -void IOStrategy::SharedCtor() { - ::memset(&download_mode_, 0, static_cast( - reinterpret_cast(&upload_mode_) - - reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); -} - -IOStrategy::~IOStrategy() { - // @@protoc_insertion_point(destructor:flyteidl.core.IOStrategy) - SharedDtor(); -} - -void IOStrategy::SharedDtor() { -} - -void IOStrategy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IOStrategy& IOStrategy::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_IOStrategy_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void IOStrategy::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.IOStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&download_mode_, 0, static_cast( - reinterpret_cast(&upload_mode_) - - reinterpret_cast(&download_mode_)) + sizeof(upload_mode_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IOStrategy::_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.IOStrategy.DownloadMode download_mode = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_download_mode(static_cast<::flyteidl::core::IOStrategy_DownloadMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_upload_mode(static_cast<::flyteidl::core::IOStrategy_UploadMode>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool IOStrategy::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.core.IOStrategy) - 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.IOStrategy.DownloadMode download_mode = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_download_mode(static_cast< ::flyteidl::core::IOStrategy_DownloadMode >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_upload_mode(static_cast< ::flyteidl::core::IOStrategy_UploadMode >(value)); - } 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.core.IOStrategy) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.IOStrategy) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IOStrategy::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.IOStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - if (this->download_mode() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->download_mode(), output); - } - - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - if (this->upload_mode() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->upload_mode(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.IOStrategy) -} - -::google::protobuf::uint8* IOStrategy::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IOStrategy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - if (this->download_mode() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->download_mode(), target); - } - - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - if (this->upload_mode() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->upload_mode(), 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.core.IOStrategy) - return target; -} - -size_t IOStrategy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IOStrategy) - 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.IOStrategy.DownloadMode download_mode = 1; - if (this->download_mode() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->download_mode()); - } - - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - if (this->upload_mode() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->upload_mode()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IOStrategy::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IOStrategy) - GOOGLE_DCHECK_NE(&from, this); - const IOStrategy* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IOStrategy) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IOStrategy) - MergeFrom(*source); - } -} - -void IOStrategy::MergeFrom(const IOStrategy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IOStrategy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.download_mode() != 0) { - set_download_mode(from.download_mode()); - } - if (from.upload_mode() != 0) { - set_upload_mode(from.upload_mode()); - } -} - -void IOStrategy::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IOStrategy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IOStrategy::CopyFrom(const IOStrategy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IOStrategy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IOStrategy::IsInitialized() const { - return true; -} - -void IOStrategy::Swap(IOStrategy* other) { - if (other == this) return; - InternalSwap(other); -} -void IOStrategy::InternalSwap(IOStrategy* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(download_mode_, other->download_mode_); - swap(upload_mode_, other->upload_mode_); -} - -::google::protobuf::Metadata IOStrategy::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DataLoadingConfig::InitAsDefaultInstance() { - ::flyteidl::core::_DataLoadingConfig_default_instance_._instance.get_mutable()->io_strategy_ = const_cast< ::flyteidl::core::IOStrategy*>( - ::flyteidl::core::IOStrategy::internal_default_instance()); -} -class DataLoadingConfig::HasBitSetters { - public: - static const ::flyteidl::core::IOStrategy& io_strategy(const DataLoadingConfig* msg); -}; - -const ::flyteidl::core::IOStrategy& -DataLoadingConfig::HasBitSetters::io_strategy(const DataLoadingConfig* msg) { - return *msg->io_strategy_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DataLoadingConfig::kEnabledFieldNumber; -const int DataLoadingConfig::kInputPathFieldNumber; -const int DataLoadingConfig::kOutputPathFieldNumber; -const int DataLoadingConfig::kFormatFieldNumber; -const int DataLoadingConfig::kIoStrategyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DataLoadingConfig::DataLoadingConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.DataLoadingConfig) -} -DataLoadingConfig::DataLoadingConfig(const DataLoadingConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - input_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.input_path().size() > 0) { - input_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_path_); - } - output_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.output_path().size() > 0) { - output_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_path_); - } - if (from.has_io_strategy()) { - io_strategy_ = new ::flyteidl::core::IOStrategy(*from.io_strategy_); - } else { - io_strategy_ = nullptr; - } - ::memcpy(&enabled_, &from.enabled_, - static_cast(reinterpret_cast(&format_) - - reinterpret_cast(&enabled_)) + sizeof(format_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.DataLoadingConfig) -} - -void DataLoadingConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); - input_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&io_strategy_, 0, static_cast( - reinterpret_cast(&format_) - - reinterpret_cast(&io_strategy_)) + sizeof(format_)); -} - -DataLoadingConfig::~DataLoadingConfig() { - // @@protoc_insertion_point(destructor:flyteidl.core.DataLoadingConfig) - SharedDtor(); -} - -void DataLoadingConfig::SharedDtor() { - input_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete io_strategy_; -} - -void DataLoadingConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DataLoadingConfig& DataLoadingConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DataLoadingConfig_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void DataLoadingConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.DataLoadingConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - input_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && io_strategy_ != nullptr) { - delete io_strategy_; - } - io_strategy_ = nullptr; - ::memset(&enabled_, 0, static_cast( - reinterpret_cast(&format_) - - reinterpret_cast(&enabled_)) + sizeof(format_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DataLoadingConfig::_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) { - // bool enabled = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_enabled(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string input_path = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.DataLoadingConfig.input_path"); - object = msg->mutable_input_path(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string output_path = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.DataLoadingConfig.output_path"); - object = msg->mutable_output_path(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_format(static_cast<::flyteidl::core::DataLoadingConfig_LiteralMapFormat>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.IOStrategy io_strategy = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::IOStrategy::_InternalParse; - object = msg->mutable_io_strategy(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DataLoadingConfig::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.core.DataLoadingConfig) - 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)) { - // bool enabled = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enabled_))); - } else { - goto handle_unusual; - } - break; - } - - // string input_path = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_input_path())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_path().data(), static_cast(this->input_path().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.DataLoadingConfig.input_path")); - } else { - goto handle_unusual; - } - break; - } - - // string output_path = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_path())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_path().data(), static_cast(this->output_path().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.DataLoadingConfig.output_path")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_format(static_cast< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.IOStrategy io_strategy = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_io_strategy())); - } 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.core.DataLoadingConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.DataLoadingConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DataLoadingConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.DataLoadingConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool enabled = 1; - if (this->enabled() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->enabled(), output); - } - - // string input_path = 2; - if (this->input_path().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_path().data(), static_cast(this->input_path().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.DataLoadingConfig.input_path"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->input_path(), output); - } - - // string output_path = 3; - if (this->output_path().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_path().data(), static_cast(this->output_path().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.DataLoadingConfig.output_path"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->output_path(), output); - } - - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - if (this->format() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->format(), output); - } - - // .flyteidl.core.IOStrategy io_strategy = 5; - if (this->has_io_strategy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::io_strategy(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.DataLoadingConfig) -} - -::google::protobuf::uint8* DataLoadingConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.DataLoadingConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool enabled = 1; - if (this->enabled() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->enabled(), target); - } - - // string input_path = 2; - if (this->input_path().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_path().data(), static_cast(this->input_path().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.DataLoadingConfig.input_path"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->input_path(), target); - } - - // string output_path = 3; - if (this->output_path().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_path().data(), static_cast(this->output_path().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.DataLoadingConfig.output_path"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->output_path(), target); - } - - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - if (this->format() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->format(), target); - } - - // .flyteidl.core.IOStrategy io_strategy = 5; - if (this->has_io_strategy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::io_strategy(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.core.DataLoadingConfig) - return target; -} - -size_t DataLoadingConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.DataLoadingConfig) - 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; - - // string input_path = 2; - if (this->input_path().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->input_path()); - } - - // string output_path = 3; - if (this->output_path().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_path()); - } - - // .flyteidl.core.IOStrategy io_strategy = 5; - if (this->has_io_strategy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *io_strategy_); - } - - // bool enabled = 1; - if (this->enabled() != 0) { - total_size += 1 + 1; - } - - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - if (this->format() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->format()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DataLoadingConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.DataLoadingConfig) - GOOGLE_DCHECK_NE(&from, this); - const DataLoadingConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.DataLoadingConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.DataLoadingConfig) - MergeFrom(*source); - } -} - -void DataLoadingConfig::MergeFrom(const DataLoadingConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.DataLoadingConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.input_path().size() > 0) { - - input_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.input_path_); - } - if (from.output_path().size() > 0) { - - output_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_path_); - } - if (from.has_io_strategy()) { - mutable_io_strategy()->::flyteidl::core::IOStrategy::MergeFrom(from.io_strategy()); - } - if (from.enabled() != 0) { - set_enabled(from.enabled()); - } - if (from.format() != 0) { - set_format(from.format()); - } -} - -void DataLoadingConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.DataLoadingConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DataLoadingConfig::CopyFrom(const DataLoadingConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.DataLoadingConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DataLoadingConfig::IsInitialized() const { - return true; -} - -void DataLoadingConfig::Swap(DataLoadingConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void DataLoadingConfig::InternalSwap(DataLoadingConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - input_path_.Swap(&other->input_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - output_path_.Swap(&other->output_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(io_strategy_, other->io_strategy_); - swap(enabled_, other->enabled_); - swap(format_, other->format_); -} - -::google::protobuf::Metadata DataLoadingConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void K8sPod::InitAsDefaultInstance() { - ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::K8sObjectMetadata*>( - ::flyteidl::core::K8sObjectMetadata::internal_default_instance()); - ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->pod_spec_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::core::_K8sPod_default_instance_._instance.get_mutable()->data_config_ = const_cast< ::flyteidl::core::DataLoadingConfig*>( - ::flyteidl::core::DataLoadingConfig::internal_default_instance()); -} -class K8sPod::HasBitSetters { - public: - static const ::flyteidl::core::K8sObjectMetadata& metadata(const K8sPod* msg); - static const ::google::protobuf::Struct& pod_spec(const K8sPod* msg); - static const ::flyteidl::core::DataLoadingConfig& data_config(const K8sPod* msg); -}; - -const ::flyteidl::core::K8sObjectMetadata& -K8sPod::HasBitSetters::metadata(const K8sPod* msg) { - return *msg->metadata_; -} -const ::google::protobuf::Struct& -K8sPod::HasBitSetters::pod_spec(const K8sPod* msg) { - return *msg->pod_spec_; -} -const ::flyteidl::core::DataLoadingConfig& -K8sPod::HasBitSetters::data_config(const K8sPod* msg) { - return *msg->data_config_; -} -void K8sPod::clear_pod_spec() { - if (GetArenaNoVirtual() == nullptr && pod_spec_ != nullptr) { - delete pod_spec_; - } - pod_spec_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int K8sPod::kMetadataFieldNumber; -const int K8sPod::kPodSpecFieldNumber; -const int K8sPod::kDataConfigFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -K8sPod::K8sPod() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.K8sPod) -} -K8sPod::K8sPod(const K8sPod& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::K8sObjectMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_pod_spec()) { - pod_spec_ = new ::google::protobuf::Struct(*from.pod_spec_); - } else { - pod_spec_ = nullptr; - } - if (from.has_data_config()) { - data_config_ = new ::flyteidl::core::DataLoadingConfig(*from.data_config_); - } else { - data_config_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.K8sPod) -} - -void K8sPod::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); - ::memset(&metadata_, 0, static_cast( - reinterpret_cast(&data_config_) - - reinterpret_cast(&metadata_)) + sizeof(data_config_)); -} - -K8sPod::~K8sPod() { - // @@protoc_insertion_point(destructor:flyteidl.core.K8sPod) - SharedDtor(); -} - -void K8sPod::SharedDtor() { - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete pod_spec_; - if (this != internal_default_instance()) delete data_config_; -} - -void K8sPod::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const K8sPod& K8sPod::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_K8sPod_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void K8sPod::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.K8sPod) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && pod_spec_ != nullptr) { - delete pod_spec_; - } - pod_spec_ = nullptr; - if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { - delete data_config_; - } - data_config_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* K8sPod::_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.K8sObjectMetadata metadata = 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::K8sObjectMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // .google.protobuf.Struct pod_spec = 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 = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_pod_spec(); - 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.core.DataLoadingConfig data_config = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::DataLoadingConfig::_InternalParse; - object = msg->mutable_data_config(); - 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 K8sPod::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.core.K8sPod) - 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.K8sObjectMetadata metadata = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct pod_spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pod_spec())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.DataLoadingConfig data_config = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_data_config())); - } 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.core.K8sPod) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.K8sPod) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void K8sPod::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.K8sPod) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.K8sObjectMetadata metadata = 1; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::metadata(this), output); - } - - // .google.protobuf.Struct pod_spec = 2; - if (this->has_pod_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::pod_spec(this), output); - } - - // .flyteidl.core.DataLoadingConfig data_config = 3; - if (this->has_data_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::data_config(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.K8sPod) -} - -::google::protobuf::uint8* K8sPod::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.K8sPod) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.K8sObjectMetadata metadata = 1; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::metadata(this), target); - } - - // .google.protobuf.Struct pod_spec = 2; - if (this->has_pod_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::pod_spec(this), target); - } - - // .flyteidl.core.DataLoadingConfig data_config = 3; - if (this->has_data_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::data_config(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.core.K8sPod) - return target; -} - -size_t K8sPod::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.K8sPod) - 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.K8sObjectMetadata metadata = 1; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .google.protobuf.Struct pod_spec = 2; - if (this->has_pod_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *pod_spec_); - } - - // .flyteidl.core.DataLoadingConfig data_config = 3; - if (this->has_data_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_config_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void K8sPod::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.K8sPod) - GOOGLE_DCHECK_NE(&from, this); - const K8sPod* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.K8sPod) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.K8sPod) - MergeFrom(*source); - } -} - -void K8sPod::MergeFrom(const K8sPod& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.K8sPod) - 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_metadata()) { - mutable_metadata()->::flyteidl::core::K8sObjectMetadata::MergeFrom(from.metadata()); - } - if (from.has_pod_spec()) { - mutable_pod_spec()->::google::protobuf::Struct::MergeFrom(from.pod_spec()); - } - if (from.has_data_config()) { - mutable_data_config()->::flyteidl::core::DataLoadingConfig::MergeFrom(from.data_config()); - } -} - -void K8sPod::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.K8sPod) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void K8sPod::CopyFrom(const K8sPod& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.K8sPod) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool K8sPod::IsInitialized() const { - return true; -} - -void K8sPod::Swap(K8sPod* other) { - if (other == this) return; - InternalSwap(other); -} -void K8sPod::InternalSwap(K8sPod* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(metadata_, other->metadata_); - swap(pod_spec_, other->pod_spec_); - swap(data_config_, other->data_config_); -} - -::google::protobuf::Metadata K8sPod::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -K8sObjectMetadata_LabelsEntry_DoNotUse::K8sObjectMetadata_LabelsEntry_DoNotUse() {} -K8sObjectMetadata_LabelsEntry_DoNotUse::K8sObjectMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void K8sObjectMetadata_LabelsEntry_DoNotUse::MergeFrom(const K8sObjectMetadata_LabelsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata K8sObjectMetadata_LabelsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[14]; -} -void K8sObjectMetadata_LabelsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool K8sObjectMetadata_LabelsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - K8sObjectMetadata_LabelsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -K8sObjectMetadata_AnnotationsEntry_DoNotUse::K8sObjectMetadata_AnnotationsEntry_DoNotUse() {} -K8sObjectMetadata_AnnotationsEntry_DoNotUse::K8sObjectMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void K8sObjectMetadata_AnnotationsEntry_DoNotUse::MergeFrom(const K8sObjectMetadata_AnnotationsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata K8sObjectMetadata_AnnotationsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[15]; -} -void K8sObjectMetadata_AnnotationsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool K8sObjectMetadata_AnnotationsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - K8sObjectMetadata_AnnotationsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void K8sObjectMetadata::InitAsDefaultInstance() { -} -class K8sObjectMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int K8sObjectMetadata::kLabelsFieldNumber; -const int K8sObjectMetadata::kAnnotationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -K8sObjectMetadata::K8sObjectMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.K8sObjectMetadata) -} -K8sObjectMetadata::K8sObjectMetadata(const K8sObjectMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - labels_.MergeFrom(from.labels_); - annotations_.MergeFrom(from.annotations_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.K8sObjectMetadata) -} - -void K8sObjectMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); -} - -K8sObjectMetadata::~K8sObjectMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.K8sObjectMetadata) - SharedDtor(); -} - -void K8sObjectMetadata::SharedDtor() { -} - -void K8sObjectMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const K8sObjectMetadata& K8sObjectMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_K8sObjectMetadata_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void K8sObjectMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.K8sObjectMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - labels_.Clear(); - annotations_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* K8sObjectMetadata::_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) { - // map labels = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->labels_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // map annotations = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->annotations_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 K8sObjectMetadata::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.core.K8sObjectMetadata) - 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)) { - // map labels = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - K8sObjectMetadata_LabelsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - K8sObjectMetadata_LabelsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&labels_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // map annotations = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - K8sObjectMetadata_AnnotationsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - K8sObjectMetadata_AnnotationsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&annotations_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value")); - } 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.core.K8sObjectMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.K8sObjectMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void K8sObjectMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.K8sObjectMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map labels = 1; - if (!this->labels().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->labels().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->labels().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // map annotations = 2; - if (!this->annotations().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->annotations().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->annotations().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.K8sObjectMetadata) -} - -::google::protobuf::uint8* K8sObjectMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.K8sObjectMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map labels = 1; - if (!this->labels().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.LabelsEntry.value"); - } - }; - - if (false && - this->labels().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->labels().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(labels_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // map annotations = 2; - if (!this->annotations().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.K8sObjectMetadata.AnnotationsEntry.value"); - } - }; - - if (false && - this->annotations().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->annotations().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(annotations_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.K8sObjectMetadata) - return target; -} - -size_t K8sObjectMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.K8sObjectMetadata) - 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; - - // map labels = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->labels_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->labels().begin(); - it != this->labels().end(); ++it) { - entry.reset(labels_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // map annotations = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->annotations_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->annotations().begin(); - it != this->annotations().end(); ++it) { - entry.reset(annotations_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void K8sObjectMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.K8sObjectMetadata) - GOOGLE_DCHECK_NE(&from, this); - const K8sObjectMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.K8sObjectMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.K8sObjectMetadata) - MergeFrom(*source); - } -} - -void K8sObjectMetadata::MergeFrom(const K8sObjectMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.K8sObjectMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - labels_.MergeFrom(from.labels_); - annotations_.MergeFrom(from.annotations_); -} - -void K8sObjectMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.K8sObjectMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void K8sObjectMetadata::CopyFrom(const K8sObjectMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.K8sObjectMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool K8sObjectMetadata::IsInitialized() const { - return true; -} - -void K8sObjectMetadata::Swap(K8sObjectMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void K8sObjectMetadata::InternalSwap(K8sObjectMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - labels_.Swap(&other->labels_); - annotations_.Swap(&other->annotations_); -} - -::google::protobuf::Metadata K8sObjectMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Sql::InitAsDefaultInstance() { -} -class Sql::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Sql::kStatementFieldNumber; -const int Sql::kDialectFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Sql::Sql() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Sql) -} -Sql::Sql(const Sql& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.statement().size() > 0) { - statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); - } - dialect_ = from.dialect_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Sql) -} - -void Sql::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); - statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dialect_ = 0; -} - -Sql::~Sql() { - // @@protoc_insertion_point(destructor:flyteidl.core.Sql) - SharedDtor(); -} - -void Sql::SharedDtor() { - statement_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Sql::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Sql& Sql::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Sql_flyteidl_2fcore_2ftasks_2eproto.base); - return *internal_default_instance(); -} - - -void Sql::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Sql) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dialect_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Sql::_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) { - // string statement = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Sql.statement"); - object = msg->mutable_statement(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Sql.Dialect dialect = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_dialect(static_cast<::flyteidl::core::Sql_Dialect>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Sql::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.core.Sql) - 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)) { - // string statement = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_statement())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Sql.statement")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Sql.Dialect dialect = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_dialect(static_cast< ::flyteidl::core::Sql_Dialect >(value)); - } 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.core.Sql) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Sql) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Sql::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Sql) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string statement = 1; - if (this->statement().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Sql.statement"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->statement(), output); - } - - // .flyteidl.core.Sql.Dialect dialect = 2; - if (this->dialect() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->dialect(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Sql) -} - -::google::protobuf::uint8* Sql::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Sql) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string statement = 1; - if (this->statement().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Sql.statement"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->statement(), target); - } - - // .flyteidl.core.Sql.Dialect dialect = 2; - if (this->dialect() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->dialect(), 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.core.Sql) - return target; -} - -size_t Sql::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Sql) - 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; - - // string statement = 1; - if (this->statement().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->statement()); - } - - // .flyteidl.core.Sql.Dialect dialect = 2; - if (this->dialect() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->dialect()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Sql::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Sql) - GOOGLE_DCHECK_NE(&from, this); - const Sql* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Sql) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Sql) - MergeFrom(*source); - } -} - -void Sql::MergeFrom(const Sql& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Sql) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.statement().size() > 0) { - - statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); - } - if (from.dialect() != 0) { - set_dialect(from.dialect()); - } -} - -void Sql::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Sql) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Sql::CopyFrom(const Sql& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Sql) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Sql::IsInitialized() const { - return true; -} - -void Sql::Swap(Sql* other) { - if (other == this) return; - InternalSwap(other); -} -void Sql::InternalSwap(Sql* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - statement_.Swap(&other->statement_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dialect_, other->dialect_); -} - -::google::protobuf::Metadata Sql::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftasks_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftasks_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::Resources_ResourceEntry* Arena::CreateMaybeMessage< ::flyteidl::core::Resources_ResourceEntry >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Resources_ResourceEntry >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Resources* Arena::CreateMaybeMessage< ::flyteidl::core::Resources >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Resources >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::GPUAccelerator* Arena::CreateMaybeMessage< ::flyteidl::core::GPUAccelerator >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::GPUAccelerator >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ExtendedResources* Arena::CreateMaybeMessage< ::flyteidl::core::ExtendedResources >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ExtendedResources >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::RuntimeMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::RuntimeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::RuntimeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::TaskMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskTemplate* Arena::CreateMaybeMessage< ::flyteidl::core::TaskTemplate >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskTemplate >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ContainerPort* Arena::CreateMaybeMessage< ::flyteidl::core::ContainerPort >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ContainerPort >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Container* Arena::CreateMaybeMessage< ::flyteidl::core::Container >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Container >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::IOStrategy* Arena::CreateMaybeMessage< ::flyteidl::core::IOStrategy >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::IOStrategy >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::DataLoadingConfig* Arena::CreateMaybeMessage< ::flyteidl::core::DataLoadingConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::DataLoadingConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sPod* Arena::CreateMaybeMessage< ::flyteidl::core::K8sPod >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::K8sPod >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::K8sObjectMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::K8sObjectMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::K8sObjectMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Sql* Arena::CreateMaybeMessage< ::flyteidl::core::Sql >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Sql >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h deleted file mode 100644 index 3bd1db9d2e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/tasks.pb.h +++ /dev/null @@ -1,5304 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/tasks.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/security.pb.h" -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2ftasks_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[18] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2ftasks_2eproto(); -namespace flyteidl { -namespace core { -class Container; -class ContainerDefaultTypeInternal; -extern ContainerDefaultTypeInternal _Container_default_instance_; -class ContainerPort; -class ContainerPortDefaultTypeInternal; -extern ContainerPortDefaultTypeInternal _ContainerPort_default_instance_; -class DataLoadingConfig; -class DataLoadingConfigDefaultTypeInternal; -extern DataLoadingConfigDefaultTypeInternal _DataLoadingConfig_default_instance_; -class ExtendedResources; -class ExtendedResourcesDefaultTypeInternal; -extern ExtendedResourcesDefaultTypeInternal _ExtendedResources_default_instance_; -class GPUAccelerator; -class GPUAcceleratorDefaultTypeInternal; -extern GPUAcceleratorDefaultTypeInternal _GPUAccelerator_default_instance_; -class IOStrategy; -class IOStrategyDefaultTypeInternal; -extern IOStrategyDefaultTypeInternal _IOStrategy_default_instance_; -class K8sObjectMetadata; -class K8sObjectMetadataDefaultTypeInternal; -extern K8sObjectMetadataDefaultTypeInternal _K8sObjectMetadata_default_instance_; -class K8sObjectMetadata_AnnotationsEntry_DoNotUse; -class K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal; -extern K8sObjectMetadata_AnnotationsEntry_DoNotUseDefaultTypeInternal _K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_; -class K8sObjectMetadata_LabelsEntry_DoNotUse; -class K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal; -extern K8sObjectMetadata_LabelsEntry_DoNotUseDefaultTypeInternal _K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_; -class K8sPod; -class K8sPodDefaultTypeInternal; -extern K8sPodDefaultTypeInternal _K8sPod_default_instance_; -class Resources; -class ResourcesDefaultTypeInternal; -extern ResourcesDefaultTypeInternal _Resources_default_instance_; -class Resources_ResourceEntry; -class Resources_ResourceEntryDefaultTypeInternal; -extern Resources_ResourceEntryDefaultTypeInternal _Resources_ResourceEntry_default_instance_; -class RuntimeMetadata; -class RuntimeMetadataDefaultTypeInternal; -extern RuntimeMetadataDefaultTypeInternal _RuntimeMetadata_default_instance_; -class Sql; -class SqlDefaultTypeInternal; -extern SqlDefaultTypeInternal _Sql_default_instance_; -class TaskMetadata; -class TaskMetadataDefaultTypeInternal; -extern TaskMetadataDefaultTypeInternal _TaskMetadata_default_instance_; -class TaskMetadata_TagsEntry_DoNotUse; -class TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal; -extern TaskMetadata_TagsEntry_DoNotUseDefaultTypeInternal _TaskMetadata_TagsEntry_DoNotUse_default_instance_; -class TaskTemplate; -class TaskTemplateDefaultTypeInternal; -extern TaskTemplateDefaultTypeInternal _TaskTemplate_default_instance_; -class TaskTemplate_ConfigEntry_DoNotUse; -class TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal; -extern TaskTemplate_ConfigEntry_DoNotUseDefaultTypeInternal _TaskTemplate_ConfigEntry_DoNotUse_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Container* Arena::CreateMaybeMessage<::flyteidl::core::Container>(Arena*); -template<> ::flyteidl::core::ContainerPort* Arena::CreateMaybeMessage<::flyteidl::core::ContainerPort>(Arena*); -template<> ::flyteidl::core::DataLoadingConfig* Arena::CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(Arena*); -template<> ::flyteidl::core::ExtendedResources* Arena::CreateMaybeMessage<::flyteidl::core::ExtendedResources>(Arena*); -template<> ::flyteidl::core::GPUAccelerator* Arena::CreateMaybeMessage<::flyteidl::core::GPUAccelerator>(Arena*); -template<> ::flyteidl::core::IOStrategy* Arena::CreateMaybeMessage<::flyteidl::core::IOStrategy>(Arena*); -template<> ::flyteidl::core::K8sObjectMetadata* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata>(Arena*); -template<> ::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata_AnnotationsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata_LabelsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::K8sPod* Arena::CreateMaybeMessage<::flyteidl::core::K8sPod>(Arena*); -template<> ::flyteidl::core::Resources* Arena::CreateMaybeMessage<::flyteidl::core::Resources>(Arena*); -template<> ::flyteidl::core::Resources_ResourceEntry* Arena::CreateMaybeMessage<::flyteidl::core::Resources_ResourceEntry>(Arena*); -template<> ::flyteidl::core::RuntimeMetadata* Arena::CreateMaybeMessage<::flyteidl::core::RuntimeMetadata>(Arena*); -template<> ::flyteidl::core::Sql* Arena::CreateMaybeMessage<::flyteidl::core::Sql>(Arena*); -template<> ::flyteidl::core::TaskMetadata* Arena::CreateMaybeMessage<::flyteidl::core::TaskMetadata>(Arena*); -template<> ::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::TaskMetadata_TagsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::TaskTemplate* Arena::CreateMaybeMessage<::flyteidl::core::TaskTemplate>(Arena*); -template<> ::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::TaskTemplate_ConfigEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum Resources_ResourceName { - Resources_ResourceName_UNKNOWN = 0, - Resources_ResourceName_CPU = 1, - Resources_ResourceName_GPU = 2, - Resources_ResourceName_MEMORY = 3, - Resources_ResourceName_STORAGE = 4, - Resources_ResourceName_EPHEMERAL_STORAGE = 5, - Resources_ResourceName_Resources_ResourceName_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Resources_ResourceName_Resources_ResourceName_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Resources_ResourceName_IsValid(int value); -const Resources_ResourceName Resources_ResourceName_ResourceName_MIN = Resources_ResourceName_UNKNOWN; -const Resources_ResourceName Resources_ResourceName_ResourceName_MAX = Resources_ResourceName_EPHEMERAL_STORAGE; -const int Resources_ResourceName_ResourceName_ARRAYSIZE = Resources_ResourceName_ResourceName_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Resources_ResourceName_descriptor(); -inline const ::std::string& Resources_ResourceName_Name(Resources_ResourceName value) { - return ::google::protobuf::internal::NameOfEnum( - Resources_ResourceName_descriptor(), value); -} -inline bool Resources_ResourceName_Parse( - const ::std::string& name, Resources_ResourceName* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Resources_ResourceName_descriptor(), name, value); -} -enum RuntimeMetadata_RuntimeType { - RuntimeMetadata_RuntimeType_OTHER = 0, - RuntimeMetadata_RuntimeType_FLYTE_SDK = 1, - RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - RuntimeMetadata_RuntimeType_RuntimeMetadata_RuntimeType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool RuntimeMetadata_RuntimeType_IsValid(int value); -const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MIN = RuntimeMetadata_RuntimeType_OTHER; -const RuntimeMetadata_RuntimeType RuntimeMetadata_RuntimeType_RuntimeType_MAX = RuntimeMetadata_RuntimeType_FLYTE_SDK; -const int RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE = RuntimeMetadata_RuntimeType_RuntimeType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RuntimeMetadata_RuntimeType_descriptor(); -inline const ::std::string& RuntimeMetadata_RuntimeType_Name(RuntimeMetadata_RuntimeType value) { - return ::google::protobuf::internal::NameOfEnum( - RuntimeMetadata_RuntimeType_descriptor(), value); -} -inline bool RuntimeMetadata_RuntimeType_Parse( - const ::std::string& name, RuntimeMetadata_RuntimeType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RuntimeMetadata_RuntimeType_descriptor(), name, value); -} -enum Container_Architecture { - Container_Architecture_UNKNOWN = 0, - Container_Architecture_AMD64 = 1, - Container_Architecture_ARM64 = 2, - Container_Architecture_ARM_V6 = 3, - Container_Architecture_ARM_V7 = 4, - Container_Architecture_Container_Architecture_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Container_Architecture_Container_Architecture_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Container_Architecture_IsValid(int value); -const Container_Architecture Container_Architecture_Architecture_MIN = Container_Architecture_UNKNOWN; -const Container_Architecture Container_Architecture_Architecture_MAX = Container_Architecture_ARM_V7; -const int Container_Architecture_Architecture_ARRAYSIZE = Container_Architecture_Architecture_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Container_Architecture_descriptor(); -inline const ::std::string& Container_Architecture_Name(Container_Architecture value) { - return ::google::protobuf::internal::NameOfEnum( - Container_Architecture_descriptor(), value); -} -inline bool Container_Architecture_Parse( - const ::std::string& name, Container_Architecture* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Container_Architecture_descriptor(), name, value); -} -enum IOStrategy_DownloadMode { - IOStrategy_DownloadMode_DOWNLOAD_EAGER = 0, - IOStrategy_DownloadMode_DOWNLOAD_STREAM = 1, - IOStrategy_DownloadMode_DO_NOT_DOWNLOAD = 2, - IOStrategy_DownloadMode_IOStrategy_DownloadMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - IOStrategy_DownloadMode_IOStrategy_DownloadMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool IOStrategy_DownloadMode_IsValid(int value); -const IOStrategy_DownloadMode IOStrategy_DownloadMode_DownloadMode_MIN = IOStrategy_DownloadMode_DOWNLOAD_EAGER; -const IOStrategy_DownloadMode IOStrategy_DownloadMode_DownloadMode_MAX = IOStrategy_DownloadMode_DO_NOT_DOWNLOAD; -const int IOStrategy_DownloadMode_DownloadMode_ARRAYSIZE = IOStrategy_DownloadMode_DownloadMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* IOStrategy_DownloadMode_descriptor(); -inline const ::std::string& IOStrategy_DownloadMode_Name(IOStrategy_DownloadMode value) { - return ::google::protobuf::internal::NameOfEnum( - IOStrategy_DownloadMode_descriptor(), value); -} -inline bool IOStrategy_DownloadMode_Parse( - const ::std::string& name, IOStrategy_DownloadMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - IOStrategy_DownloadMode_descriptor(), name, value); -} -enum IOStrategy_UploadMode { - IOStrategy_UploadMode_UPLOAD_ON_EXIT = 0, - IOStrategy_UploadMode_UPLOAD_EAGER = 1, - IOStrategy_UploadMode_DO_NOT_UPLOAD = 2, - IOStrategy_UploadMode_IOStrategy_UploadMode_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - IOStrategy_UploadMode_IOStrategy_UploadMode_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool IOStrategy_UploadMode_IsValid(int value); -const IOStrategy_UploadMode IOStrategy_UploadMode_UploadMode_MIN = IOStrategy_UploadMode_UPLOAD_ON_EXIT; -const IOStrategy_UploadMode IOStrategy_UploadMode_UploadMode_MAX = IOStrategy_UploadMode_DO_NOT_UPLOAD; -const int IOStrategy_UploadMode_UploadMode_ARRAYSIZE = IOStrategy_UploadMode_UploadMode_MAX + 1; - -const ::google::protobuf::EnumDescriptor* IOStrategy_UploadMode_descriptor(); -inline const ::std::string& IOStrategy_UploadMode_Name(IOStrategy_UploadMode value) { - return ::google::protobuf::internal::NameOfEnum( - IOStrategy_UploadMode_descriptor(), value); -} -inline bool IOStrategy_UploadMode_Parse( - const ::std::string& name, IOStrategy_UploadMode* value) { - return ::google::protobuf::internal::ParseNamedEnum( - IOStrategy_UploadMode_descriptor(), name, value); -} -enum DataLoadingConfig_LiteralMapFormat { - DataLoadingConfig_LiteralMapFormat_JSON = 0, - DataLoadingConfig_LiteralMapFormat_YAML = 1, - DataLoadingConfig_LiteralMapFormat_PROTO = 2, - DataLoadingConfig_LiteralMapFormat_DataLoadingConfig_LiteralMapFormat_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - DataLoadingConfig_LiteralMapFormat_DataLoadingConfig_LiteralMapFormat_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool DataLoadingConfig_LiteralMapFormat_IsValid(int value); -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MIN = DataLoadingConfig_LiteralMapFormat_JSON; -const DataLoadingConfig_LiteralMapFormat DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX = DataLoadingConfig_LiteralMapFormat_PROTO; -const int DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_ARRAYSIZE = DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataLoadingConfig_LiteralMapFormat_descriptor(); -inline const ::std::string& DataLoadingConfig_LiteralMapFormat_Name(DataLoadingConfig_LiteralMapFormat value) { - return ::google::protobuf::internal::NameOfEnum( - DataLoadingConfig_LiteralMapFormat_descriptor(), value); -} -inline bool DataLoadingConfig_LiteralMapFormat_Parse( - const ::std::string& name, DataLoadingConfig_LiteralMapFormat* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataLoadingConfig_LiteralMapFormat_descriptor(), name, value); -} -enum Sql_Dialect { - Sql_Dialect_UNDEFINED = 0, - Sql_Dialect_ANSI = 1, - Sql_Dialect_HIVE = 2, - Sql_Dialect_OTHER = 3, - Sql_Dialect_Sql_Dialect_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - Sql_Dialect_Sql_Dialect_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool Sql_Dialect_IsValid(int value); -const Sql_Dialect Sql_Dialect_Dialect_MIN = Sql_Dialect_UNDEFINED; -const Sql_Dialect Sql_Dialect_Dialect_MAX = Sql_Dialect_OTHER; -const int Sql_Dialect_Dialect_ARRAYSIZE = Sql_Dialect_Dialect_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Sql_Dialect_descriptor(); -inline const ::std::string& Sql_Dialect_Name(Sql_Dialect value) { - return ::google::protobuf::internal::NameOfEnum( - Sql_Dialect_descriptor(), value); -} -inline bool Sql_Dialect_Parse( - const ::std::string& name, Sql_Dialect* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Sql_Dialect_descriptor(), name, value); -} -// =================================================================== - -class Resources_ResourceEntry final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources.ResourceEntry) */ { - public: - Resources_ResourceEntry(); - virtual ~Resources_ResourceEntry(); - - Resources_ResourceEntry(const Resources_ResourceEntry& from); - - inline Resources_ResourceEntry& operator=(const Resources_ResourceEntry& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Resources_ResourceEntry(Resources_ResourceEntry&& from) noexcept - : Resources_ResourceEntry() { - *this = ::std::move(from); - } - - inline Resources_ResourceEntry& operator=(Resources_ResourceEntry&& 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 Resources_ResourceEntry& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Resources_ResourceEntry* internal_default_instance() { - return reinterpret_cast( - &_Resources_ResourceEntry_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Resources_ResourceEntry* other); - friend void swap(Resources_ResourceEntry& a, Resources_ResourceEntry& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Resources_ResourceEntry* New() const final { - return CreateMaybeMessage(nullptr); - } - - Resources_ResourceEntry* 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 Resources_ResourceEntry& from); - void MergeFrom(const Resources_ResourceEntry& 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(Resources_ResourceEntry* 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 ------------------------------------------------------- - - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // .flyteidl.core.Resources.ResourceName name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - ::flyteidl::core::Resources_ResourceName name() const; - void set_name(::flyteidl::core::Resources_ResourceName value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr value_; - int name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class Resources final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Resources) */ { - public: - Resources(); - virtual ~Resources(); - - Resources(const Resources& from); - - inline Resources& operator=(const Resources& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Resources(Resources&& from) noexcept - : Resources() { - *this = ::std::move(from); - } - - inline Resources& operator=(Resources&& 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 Resources& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Resources* internal_default_instance() { - return reinterpret_cast( - &_Resources_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(Resources* other); - friend void swap(Resources& a, Resources& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Resources* New() const final { - return CreateMaybeMessage(nullptr); - } - - Resources* 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 Resources& from); - void MergeFrom(const Resources& 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(Resources* 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 ---------------------------------------------------- - - typedef Resources_ResourceEntry ResourceEntry; - - typedef Resources_ResourceName ResourceName; - static const ResourceName UNKNOWN = - Resources_ResourceName_UNKNOWN; - static const ResourceName CPU = - Resources_ResourceName_CPU; - static const ResourceName GPU = - Resources_ResourceName_GPU; - static const ResourceName MEMORY = - Resources_ResourceName_MEMORY; - static const ResourceName STORAGE = - Resources_ResourceName_STORAGE; - static const ResourceName EPHEMERAL_STORAGE = - Resources_ResourceName_EPHEMERAL_STORAGE; - static inline bool ResourceName_IsValid(int value) { - return Resources_ResourceName_IsValid(value); - } - static const ResourceName ResourceName_MIN = - Resources_ResourceName_ResourceName_MIN; - static const ResourceName ResourceName_MAX = - Resources_ResourceName_ResourceName_MAX; - static const int ResourceName_ARRAYSIZE = - Resources_ResourceName_ResourceName_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ResourceName_descriptor() { - return Resources_ResourceName_descriptor(); - } - static inline const ::std::string& ResourceName_Name(ResourceName value) { - return Resources_ResourceName_Name(value); - } - static inline bool ResourceName_Parse(const ::std::string& name, - ResourceName* value) { - return Resources_ResourceName_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - int requests_size() const; - void clear_requests(); - static const int kRequestsFieldNumber = 1; - ::flyteidl::core::Resources_ResourceEntry* mutable_requests(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* - mutable_requests(); - const ::flyteidl::core::Resources_ResourceEntry& requests(int index) const; - ::flyteidl::core::Resources_ResourceEntry* add_requests(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& - requests() const; - - // repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - int limits_size() const; - void clear_limits(); - static const int kLimitsFieldNumber = 2; - ::flyteidl::core::Resources_ResourceEntry* mutable_limits(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* - mutable_limits(); - const ::flyteidl::core::Resources_ResourceEntry& limits(int index) const; - ::flyteidl::core::Resources_ResourceEntry* add_limits(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& - limits() const; - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > requests_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry > limits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class GPUAccelerator final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.GPUAccelerator) */ { - public: - GPUAccelerator(); - virtual ~GPUAccelerator(); - - GPUAccelerator(const GPUAccelerator& from); - - inline GPUAccelerator& operator=(const GPUAccelerator& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GPUAccelerator(GPUAccelerator&& from) noexcept - : GPUAccelerator() { - *this = ::std::move(from); - } - - inline GPUAccelerator& operator=(GPUAccelerator&& 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 GPUAccelerator& default_instance(); - - enum PartitionSizeValueCase { - kUnpartitioned = 2, - kPartitionSize = 3, - PARTITION_SIZE_VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GPUAccelerator* internal_default_instance() { - return reinterpret_cast( - &_GPUAccelerator_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(GPUAccelerator* other); - friend void swap(GPUAccelerator& a, GPUAccelerator& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GPUAccelerator* New() const final { - return CreateMaybeMessage(nullptr); - } - - GPUAccelerator* 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 GPUAccelerator& from); - void MergeFrom(const GPUAccelerator& 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(GPUAccelerator* 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 ------------------------------------------------------- - - // string device = 1; - void clear_device(); - static const int kDeviceFieldNumber = 1; - const ::std::string& device() const; - void set_device(const ::std::string& value); - #if LANG_CXX11 - void set_device(::std::string&& value); - #endif - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - - // bool unpartitioned = 2; - private: - bool has_unpartitioned() const; - public: - void clear_unpartitioned(); - static const int kUnpartitionedFieldNumber = 2; - bool unpartitioned() const; - void set_unpartitioned(bool value); - - // string partition_size = 3; - private: - bool has_partition_size() const; - public: - void clear_partition_size(); - static const int kPartitionSizeFieldNumber = 3; - const ::std::string& partition_size() const; - void set_partition_size(const ::std::string& value); - #if LANG_CXX11 - void set_partition_size(::std::string&& value); - #endif - void set_partition_size(const char* value); - void set_partition_size(const char* value, size_t size); - ::std::string* mutable_partition_size(); - ::std::string* release_partition_size(); - void set_allocated_partition_size(::std::string* partition_size); - - void clear_partition_size_value(); - PartitionSizeValueCase partition_size_value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.GPUAccelerator) - private: - class HasBitSetters; - void set_has_unpartitioned(); - void set_has_partition_size(); - - inline bool has_partition_size_value() const; - inline void clear_has_partition_size_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr device_; - union PartitionSizeValueUnion { - PartitionSizeValueUnion() {} - bool unpartitioned_; - ::google::protobuf::internal::ArenaStringPtr partition_size_; - } partition_size_value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class ExtendedResources final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ExtendedResources) */ { - public: - ExtendedResources(); - virtual ~ExtendedResources(); - - ExtendedResources(const ExtendedResources& from); - - inline ExtendedResources& operator=(const ExtendedResources& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExtendedResources(ExtendedResources&& from) noexcept - : ExtendedResources() { - *this = ::std::move(from); - } - - inline ExtendedResources& operator=(ExtendedResources&& 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 ExtendedResources& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExtendedResources* internal_default_instance() { - return reinterpret_cast( - &_ExtendedResources_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ExtendedResources* other); - friend void swap(ExtendedResources& a, ExtendedResources& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExtendedResources* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExtendedResources* 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 ExtendedResources& from); - void MergeFrom(const ExtendedResources& 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(ExtendedResources* 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.GPUAccelerator gpu_accelerator = 1; - bool has_gpu_accelerator() const; - void clear_gpu_accelerator(); - static const int kGpuAcceleratorFieldNumber = 1; - const ::flyteidl::core::GPUAccelerator& gpu_accelerator() const; - ::flyteidl::core::GPUAccelerator* release_gpu_accelerator(); - ::flyteidl::core::GPUAccelerator* mutable_gpu_accelerator(); - void set_allocated_gpu_accelerator(::flyteidl::core::GPUAccelerator* gpu_accelerator); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExtendedResources) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::GPUAccelerator* gpu_accelerator_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class RuntimeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.RuntimeMetadata) */ { - public: - RuntimeMetadata(); - virtual ~RuntimeMetadata(); - - RuntimeMetadata(const RuntimeMetadata& from); - - inline RuntimeMetadata& operator=(const RuntimeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RuntimeMetadata(RuntimeMetadata&& from) noexcept - : RuntimeMetadata() { - *this = ::std::move(from); - } - - inline RuntimeMetadata& operator=(RuntimeMetadata&& 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 RuntimeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RuntimeMetadata* internal_default_instance() { - return reinterpret_cast( - &_RuntimeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(RuntimeMetadata* other); - friend void swap(RuntimeMetadata& a, RuntimeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RuntimeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - RuntimeMetadata* 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 RuntimeMetadata& from); - void MergeFrom(const RuntimeMetadata& 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(RuntimeMetadata* 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 ---------------------------------------------------- - - typedef RuntimeMetadata_RuntimeType RuntimeType; - static const RuntimeType OTHER = - RuntimeMetadata_RuntimeType_OTHER; - static const RuntimeType FLYTE_SDK = - RuntimeMetadata_RuntimeType_FLYTE_SDK; - static inline bool RuntimeType_IsValid(int value) { - return RuntimeMetadata_RuntimeType_IsValid(value); - } - static const RuntimeType RuntimeType_MIN = - RuntimeMetadata_RuntimeType_RuntimeType_MIN; - static const RuntimeType RuntimeType_MAX = - RuntimeMetadata_RuntimeType_RuntimeType_MAX; - static const int RuntimeType_ARRAYSIZE = - RuntimeMetadata_RuntimeType_RuntimeType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - RuntimeType_descriptor() { - return RuntimeMetadata_RuntimeType_descriptor(); - } - static inline const ::std::string& RuntimeType_Name(RuntimeType value) { - return RuntimeMetadata_RuntimeType_Name(value); - } - static inline bool RuntimeType_Parse(const ::std::string& name, - RuntimeType* value) { - return RuntimeMetadata_RuntimeType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string version = 2; - void clear_version(); - static const int kVersionFieldNumber = 2; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // string flavor = 3; - void clear_flavor(); - static const int kFlavorFieldNumber = 3; - const ::std::string& flavor() const; - void set_flavor(const ::std::string& value); - #if LANG_CXX11 - void set_flavor(::std::string&& value); - #endif - void set_flavor(const char* value); - void set_flavor(const char* value, size_t size); - ::std::string* mutable_flavor(); - ::std::string* release_flavor(); - void set_allocated_flavor(::std::string* flavor); - - // .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::flyteidl::core::RuntimeMetadata_RuntimeType type() const; - void set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr flavor_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskMetadata_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TaskMetadata_TagsEntry_DoNotUse(); - TaskMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TaskMetadata_TagsEntry_DoNotUse& other); - static const TaskMetadata_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskMetadata_TagsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TaskMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskMetadata) */ { - public: - TaskMetadata(); - virtual ~TaskMetadata(); - - TaskMetadata(const TaskMetadata& from); - - inline TaskMetadata& operator=(const TaskMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskMetadata(TaskMetadata&& from) noexcept - : TaskMetadata() { - *this = ::std::move(from); - } - - inline TaskMetadata& operator=(TaskMetadata&& 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 TaskMetadata& default_instance(); - - enum InterruptibleValueCase { - kInterruptible = 8, - INTERRUPTIBLE_VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskMetadata* internal_default_instance() { - return reinterpret_cast( - &_TaskMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(TaskMetadata* other); - friend void swap(TaskMetadata& a, TaskMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskMetadata* 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 TaskMetadata& from); - void MergeFrom(const TaskMetadata& 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(TaskMetadata* 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 ------------------------------------------------------- - - // map tags = 11; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 11; - const ::google::protobuf::Map< ::std::string, ::std::string >& - tags() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_tags(); - - // repeated string cache_ignore_input_vars = 13; - int cache_ignore_input_vars_size() const; - void clear_cache_ignore_input_vars(); - static const int kCacheIgnoreInputVarsFieldNumber = 13; - const ::std::string& cache_ignore_input_vars(int index) const; - ::std::string* mutable_cache_ignore_input_vars(int index); - void set_cache_ignore_input_vars(int index, const ::std::string& value); - #if LANG_CXX11 - void set_cache_ignore_input_vars(int index, ::std::string&& value); - #endif - void set_cache_ignore_input_vars(int index, const char* value); - void set_cache_ignore_input_vars(int index, const char* value, size_t size); - ::std::string* add_cache_ignore_input_vars(); - void add_cache_ignore_input_vars(const ::std::string& value); - #if LANG_CXX11 - void add_cache_ignore_input_vars(::std::string&& value); - #endif - void add_cache_ignore_input_vars(const char* value); - void add_cache_ignore_input_vars(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& cache_ignore_input_vars() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_cache_ignore_input_vars(); - - // string discovery_version = 6; - void clear_discovery_version(); - static const int kDiscoveryVersionFieldNumber = 6; - const ::std::string& discovery_version() const; - void set_discovery_version(const ::std::string& value); - #if LANG_CXX11 - void set_discovery_version(::std::string&& value); - #endif - void set_discovery_version(const char* value); - void set_discovery_version(const char* value, size_t size); - ::std::string* mutable_discovery_version(); - ::std::string* release_discovery_version(); - void set_allocated_discovery_version(::std::string* discovery_version); - - // string deprecated_error_message = 7; - void clear_deprecated_error_message(); - static const int kDeprecatedErrorMessageFieldNumber = 7; - const ::std::string& deprecated_error_message() const; - void set_deprecated_error_message(const ::std::string& value); - #if LANG_CXX11 - void set_deprecated_error_message(::std::string&& value); - #endif - void set_deprecated_error_message(const char* value); - void set_deprecated_error_message(const char* value, size_t size); - ::std::string* mutable_deprecated_error_message(); - ::std::string* release_deprecated_error_message(); - void set_allocated_deprecated_error_message(::std::string* deprecated_error_message); - - // string pod_template_name = 12; - void clear_pod_template_name(); - static const int kPodTemplateNameFieldNumber = 12; - const ::std::string& pod_template_name() const; - void set_pod_template_name(const ::std::string& value); - #if LANG_CXX11 - void set_pod_template_name(::std::string&& value); - #endif - void set_pod_template_name(const char* value); - void set_pod_template_name(const char* value, size_t size); - ::std::string* mutable_pod_template_name(); - ::std::string* release_pod_template_name(); - void set_allocated_pod_template_name(::std::string* pod_template_name); - - // .flyteidl.core.RuntimeMetadata runtime = 2; - bool has_runtime() const; - void clear_runtime(); - static const int kRuntimeFieldNumber = 2; - const ::flyteidl::core::RuntimeMetadata& runtime() const; - ::flyteidl::core::RuntimeMetadata* release_runtime(); - ::flyteidl::core::RuntimeMetadata* mutable_runtime(); - void set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime); - - // .google.protobuf.Duration timeout = 4; - bool has_timeout() const; - void clear_timeout(); - static const int kTimeoutFieldNumber = 4; - const ::google::protobuf::Duration& timeout() const; - ::google::protobuf::Duration* release_timeout(); - ::google::protobuf::Duration* mutable_timeout(); - void set_allocated_timeout(::google::protobuf::Duration* timeout); - - // .flyteidl.core.RetryStrategy retries = 5; - bool has_retries() const; - void clear_retries(); - static const int kRetriesFieldNumber = 5; - const ::flyteidl::core::RetryStrategy& retries() const; - ::flyteidl::core::RetryStrategy* release_retries(); - ::flyteidl::core::RetryStrategy* mutable_retries(); - void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); - - // bool discoverable = 1; - void clear_discoverable(); - static const int kDiscoverableFieldNumber = 1; - bool discoverable() const; - void set_discoverable(bool value); - - // bool cache_serializable = 9; - void clear_cache_serializable(); - static const int kCacheSerializableFieldNumber = 9; - bool cache_serializable() const; - void set_cache_serializable(bool value); - - // bool generates_deck = 10; - void clear_generates_deck(); - static const int kGeneratesDeckFieldNumber = 10; - bool generates_deck() const; - void set_generates_deck(bool value); - - // bool interruptible = 8; - private: - bool has_interruptible() const; - public: - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 8; - bool interruptible() const; - void set_interruptible(bool value); - - void clear_interruptible_value(); - InterruptibleValueCase interruptible_value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) - private: - class HasBitSetters; - void set_has_interruptible(); - - inline bool has_interruptible_value() const; - inline void clear_has_interruptible_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - TaskMetadata_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > tags_; - ::google::protobuf::RepeatedPtrField<::std::string> cache_ignore_input_vars_; - ::google::protobuf::internal::ArenaStringPtr discovery_version_; - ::google::protobuf::internal::ArenaStringPtr deprecated_error_message_; - ::google::protobuf::internal::ArenaStringPtr pod_template_name_; - ::flyteidl::core::RuntimeMetadata* runtime_; - ::google::protobuf::Duration* timeout_; - ::flyteidl::core::RetryStrategy* retries_; - bool discoverable_; - bool cache_serializable_; - bool generates_deck_; - union InterruptibleValueUnion { - InterruptibleValueUnion() {} - bool interruptible_; - } interruptible_value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskTemplate_ConfigEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TaskTemplate_ConfigEntry_DoNotUse(); - TaskTemplate_ConfigEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TaskTemplate_ConfigEntry_DoNotUse& other); - static const TaskTemplate_ConfigEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TaskTemplate_ConfigEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TaskTemplate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskTemplate) */ { - public: - TaskTemplate(); - virtual ~TaskTemplate(); - - TaskTemplate(const TaskTemplate& from); - - inline TaskTemplate& operator=(const TaskTemplate& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskTemplate(TaskTemplate&& from) noexcept - : TaskTemplate() { - *this = ::std::move(from); - } - - inline TaskTemplate& operator=(TaskTemplate&& 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 TaskTemplate& default_instance(); - - enum TargetCase { - kContainer = 6, - kK8SPod = 17, - kSql = 18, - TARGET_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskTemplate* internal_default_instance() { - return reinterpret_cast( - &_TaskTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TaskTemplate* other); - friend void swap(TaskTemplate& a, TaskTemplate& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskTemplate* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskTemplate* 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 TaskTemplate& from); - void MergeFrom(const TaskTemplate& 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(TaskTemplate* 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 ------------------------------------------------------- - - // map config = 16; - int config_size() const; - void clear_config(); - static const int kConfigFieldNumber = 16; - const ::google::protobuf::Map< ::std::string, ::std::string >& - config() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_config(); - - // string type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::std::string& type() const; - void set_type(const ::std::string& value); - #if LANG_CXX11 - void set_type(::std::string&& value); - #endif - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - - // .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); - - // .flyteidl.core.TaskMetadata metadata = 3; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 3; - const ::flyteidl::core::TaskMetadata& metadata() const; - ::flyteidl::core::TaskMetadata* release_metadata(); - ::flyteidl::core::TaskMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata); - - // .flyteidl.core.TypedInterface interface = 4; - bool has_interface() const; - void clear_interface(); - static const int kInterfaceFieldNumber = 4; - const ::flyteidl::core::TypedInterface& interface() const; - ::flyteidl::core::TypedInterface* release_interface(); - ::flyteidl::core::TypedInterface* mutable_interface(); - void set_allocated_interface(::flyteidl::core::TypedInterface* interface); - - // .google.protobuf.Struct custom = 5; - bool has_custom() const; - void clear_custom(); - static const int kCustomFieldNumber = 5; - const ::google::protobuf::Struct& custom() const; - ::google::protobuf::Struct* release_custom(); - ::google::protobuf::Struct* mutable_custom(); - void set_allocated_custom(::google::protobuf::Struct* custom); - - // .flyteidl.core.SecurityContext security_context = 8; - bool has_security_context() const; - void clear_security_context(); - static const int kSecurityContextFieldNumber = 8; - const ::flyteidl::core::SecurityContext& security_context() const; - ::flyteidl::core::SecurityContext* release_security_context(); - ::flyteidl::core::SecurityContext* mutable_security_context(); - void set_allocated_security_context(::flyteidl::core::SecurityContext* security_context); - - // .flyteidl.core.ExtendedResources extended_resources = 9; - bool has_extended_resources() const; - void clear_extended_resources(); - static const int kExtendedResourcesFieldNumber = 9; - const ::flyteidl::core::ExtendedResources& extended_resources() const; - ::flyteidl::core::ExtendedResources* release_extended_resources(); - ::flyteidl::core::ExtendedResources* mutable_extended_resources(); - void set_allocated_extended_resources(::flyteidl::core::ExtendedResources* extended_resources); - - // int32 task_type_version = 7; - void clear_task_type_version(); - static const int kTaskTypeVersionFieldNumber = 7; - ::google::protobuf::int32 task_type_version() const; - void set_task_type_version(::google::protobuf::int32 value); - - // .flyteidl.core.Container container = 6; - bool has_container() const; - void clear_container(); - static const int kContainerFieldNumber = 6; - const ::flyteidl::core::Container& container() const; - ::flyteidl::core::Container* release_container(); - ::flyteidl::core::Container* mutable_container(); - void set_allocated_container(::flyteidl::core::Container* container); - - // .flyteidl.core.K8sPod k8s_pod = 17; - bool has_k8s_pod() const; - void clear_k8s_pod(); - static const int kK8SPodFieldNumber = 17; - const ::flyteidl::core::K8sPod& k8s_pod() const; - ::flyteidl::core::K8sPod* release_k8s_pod(); - ::flyteidl::core::K8sPod* mutable_k8s_pod(); - void set_allocated_k8s_pod(::flyteidl::core::K8sPod* k8s_pod); - - // .flyteidl.core.Sql sql = 18; - bool has_sql() const; - void clear_sql(); - static const int kSqlFieldNumber = 18; - const ::flyteidl::core::Sql& sql() const; - ::flyteidl::core::Sql* release_sql(); - ::flyteidl::core::Sql* mutable_sql(); - void set_allocated_sql(::flyteidl::core::Sql* sql); - - void clear_target(); - TargetCase target_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) - private: - class HasBitSetters; - void set_has_container(); - void set_has_k8s_pod(); - void set_has_sql(); - - inline bool has_target() const; - inline void clear_has_target(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - TaskTemplate_ConfigEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > config_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::core::TaskMetadata* metadata_; - ::flyteidl::core::TypedInterface* interface_; - ::google::protobuf::Struct* custom_; - ::flyteidl::core::SecurityContext* security_context_; - ::flyteidl::core::ExtendedResources* extended_resources_; - ::google::protobuf::int32 task_type_version_; - union TargetUnion { - TargetUnion() {} - ::flyteidl::core::Container* container_; - ::flyteidl::core::K8sPod* k8s_pod_; - ::flyteidl::core::Sql* sql_; - } target_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class ContainerPort final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ContainerPort) */ { - public: - ContainerPort(); - virtual ~ContainerPort(); - - ContainerPort(const ContainerPort& from); - - inline ContainerPort& operator=(const ContainerPort& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ContainerPort(ContainerPort&& from) noexcept - : ContainerPort() { - *this = ::std::move(from); - } - - inline ContainerPort& operator=(ContainerPort&& 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 ContainerPort& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ContainerPort* internal_default_instance() { - return reinterpret_cast( - &_ContainerPort_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(ContainerPort* other); - friend void swap(ContainerPort& a, ContainerPort& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ContainerPort* New() const final { - return CreateMaybeMessage(nullptr); - } - - ContainerPort* 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 ContainerPort& from); - void MergeFrom(const ContainerPort& 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(ContainerPort* 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 ------------------------------------------------------- - - // uint32 container_port = 1; - void clear_container_port(); - static const int kContainerPortFieldNumber = 1; - ::google::protobuf::uint32 container_port() const; - void set_container_port(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::uint32 container_port_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class Container final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Container) */ { - public: - Container(); - virtual ~Container(); - - Container(const Container& from); - - inline Container& operator=(const Container& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Container(Container&& from) noexcept - : Container() { - *this = ::std::move(from); - } - - inline Container& operator=(Container&& 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 Container& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Container* internal_default_instance() { - return reinterpret_cast( - &_Container_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(Container* other); - friend void swap(Container& a, Container& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Container* New() const final { - return CreateMaybeMessage(nullptr); - } - - Container* 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 Container& from); - void MergeFrom(const Container& 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(Container* 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 ---------------------------------------------------- - - typedef Container_Architecture Architecture; - static const Architecture UNKNOWN = - Container_Architecture_UNKNOWN; - static const Architecture AMD64 = - Container_Architecture_AMD64; - static const Architecture ARM64 = - Container_Architecture_ARM64; - static const Architecture ARM_V6 = - Container_Architecture_ARM_V6; - static const Architecture ARM_V7 = - Container_Architecture_ARM_V7; - static inline bool Architecture_IsValid(int value) { - return Container_Architecture_IsValid(value); - } - static const Architecture Architecture_MIN = - Container_Architecture_Architecture_MIN; - static const Architecture Architecture_MAX = - Container_Architecture_Architecture_MAX; - static const int Architecture_ARRAYSIZE = - Container_Architecture_Architecture_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Architecture_descriptor() { - return Container_Architecture_descriptor(); - } - static inline const ::std::string& Architecture_Name(Architecture value) { - return Container_Architecture_Name(value); - } - static inline bool Architecture_Parse(const ::std::string& name, - Architecture* value) { - return Container_Architecture_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated string command = 2; - int command_size() const; - void clear_command(); - static const int kCommandFieldNumber = 2; - const ::std::string& command(int index) const; - ::std::string* mutable_command(int index); - void set_command(int index, const ::std::string& value); - #if LANG_CXX11 - void set_command(int index, ::std::string&& value); - #endif - void set_command(int index, const char* value); - void set_command(int index, const char* value, size_t size); - ::std::string* add_command(); - void add_command(const ::std::string& value); - #if LANG_CXX11 - void add_command(::std::string&& value); - #endif - void add_command(const char* value); - void add_command(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& command() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_command(); - - // repeated string args = 3; - int args_size() const; - void clear_args(); - static const int kArgsFieldNumber = 3; - const ::std::string& args(int index) const; - ::std::string* mutable_args(int index); - void set_args(int index, const ::std::string& value); - #if LANG_CXX11 - void set_args(int index, ::std::string&& value); - #endif - void set_args(int index, const char* value); - void set_args(int index, const char* value, size_t size); - ::std::string* add_args(); - void add_args(const ::std::string& value); - #if LANG_CXX11 - void add_args(::std::string&& value); - #endif - void add_args(const char* value); - void add_args(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& args() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_args(); - - // repeated .flyteidl.core.KeyValuePair env = 5; - int env_size() const; - void clear_env(); - static const int kEnvFieldNumber = 5; - ::flyteidl::core::KeyValuePair* mutable_env(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* - mutable_env(); - const ::flyteidl::core::KeyValuePair& env(int index) const; - ::flyteidl::core::KeyValuePair* add_env(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& - env() const; - - // repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - PROTOBUF_DEPRECATED int config_size() const; - PROTOBUF_DEPRECATED void clear_config(); - PROTOBUF_DEPRECATED static const int kConfigFieldNumber = 6; - PROTOBUF_DEPRECATED ::flyteidl::core::KeyValuePair* mutable_config(int index); - PROTOBUF_DEPRECATED ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* - mutable_config(); - PROTOBUF_DEPRECATED const ::flyteidl::core::KeyValuePair& config(int index) const; - PROTOBUF_DEPRECATED ::flyteidl::core::KeyValuePair* add_config(); - PROTOBUF_DEPRECATED const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& - config() const; - - // repeated .flyteidl.core.ContainerPort ports = 7; - int ports_size() const; - void clear_ports(); - static const int kPortsFieldNumber = 7; - ::flyteidl::core::ContainerPort* mutable_ports(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* - mutable_ports(); - const ::flyteidl::core::ContainerPort& ports(int index) const; - ::flyteidl::core::ContainerPort* add_ports(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& - ports() const; - - // string image = 1; - void clear_image(); - static const int kImageFieldNumber = 1; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 4; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 4; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // .flyteidl.core.DataLoadingConfig data_config = 9; - bool has_data_config() const; - void clear_data_config(); - static const int kDataConfigFieldNumber = 9; - const ::flyteidl::core::DataLoadingConfig& data_config() const; - ::flyteidl::core::DataLoadingConfig* release_data_config(); - ::flyteidl::core::DataLoadingConfig* mutable_data_config(); - void set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config); - - // .flyteidl.core.Container.Architecture architecture = 10; - void clear_architecture(); - static const int kArchitectureFieldNumber = 10; - ::flyteidl::core::Container_Architecture architecture() const; - void set_architecture(::flyteidl::core::Container_Architecture value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Container) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> command_; - ::google::protobuf::RepeatedPtrField<::std::string> args_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > env_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair > config_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort > ports_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - ::flyteidl::core::DataLoadingConfig* data_config_; - int architecture_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class IOStrategy final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IOStrategy) */ { - public: - IOStrategy(); - virtual ~IOStrategy(); - - IOStrategy(const IOStrategy& from); - - inline IOStrategy& operator=(const IOStrategy& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IOStrategy(IOStrategy&& from) noexcept - : IOStrategy() { - *this = ::std::move(from); - } - - inline IOStrategy& operator=(IOStrategy&& 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 IOStrategy& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IOStrategy* internal_default_instance() { - return reinterpret_cast( - &_IOStrategy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(IOStrategy* other); - friend void swap(IOStrategy& a, IOStrategy& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IOStrategy* New() const final { - return CreateMaybeMessage(nullptr); - } - - IOStrategy* 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 IOStrategy& from); - void MergeFrom(const IOStrategy& 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(IOStrategy* 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 ---------------------------------------------------- - - typedef IOStrategy_DownloadMode DownloadMode; - static const DownloadMode DOWNLOAD_EAGER = - IOStrategy_DownloadMode_DOWNLOAD_EAGER; - static const DownloadMode DOWNLOAD_STREAM = - IOStrategy_DownloadMode_DOWNLOAD_STREAM; - static const DownloadMode DO_NOT_DOWNLOAD = - IOStrategy_DownloadMode_DO_NOT_DOWNLOAD; - static inline bool DownloadMode_IsValid(int value) { - return IOStrategy_DownloadMode_IsValid(value); - } - static const DownloadMode DownloadMode_MIN = - IOStrategy_DownloadMode_DownloadMode_MIN; - static const DownloadMode DownloadMode_MAX = - IOStrategy_DownloadMode_DownloadMode_MAX; - static const int DownloadMode_ARRAYSIZE = - IOStrategy_DownloadMode_DownloadMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - DownloadMode_descriptor() { - return IOStrategy_DownloadMode_descriptor(); - } - static inline const ::std::string& DownloadMode_Name(DownloadMode value) { - return IOStrategy_DownloadMode_Name(value); - } - static inline bool DownloadMode_Parse(const ::std::string& name, - DownloadMode* value) { - return IOStrategy_DownloadMode_Parse(name, value); - } - - typedef IOStrategy_UploadMode UploadMode; - static const UploadMode UPLOAD_ON_EXIT = - IOStrategy_UploadMode_UPLOAD_ON_EXIT; - static const UploadMode UPLOAD_EAGER = - IOStrategy_UploadMode_UPLOAD_EAGER; - static const UploadMode DO_NOT_UPLOAD = - IOStrategy_UploadMode_DO_NOT_UPLOAD; - static inline bool UploadMode_IsValid(int value) { - return IOStrategy_UploadMode_IsValid(value); - } - static const UploadMode UploadMode_MIN = - IOStrategy_UploadMode_UploadMode_MIN; - static const UploadMode UploadMode_MAX = - IOStrategy_UploadMode_UploadMode_MAX; - static const int UploadMode_ARRAYSIZE = - IOStrategy_UploadMode_UploadMode_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - UploadMode_descriptor() { - return IOStrategy_UploadMode_descriptor(); - } - static inline const ::std::string& UploadMode_Name(UploadMode value) { - return IOStrategy_UploadMode_Name(value); - } - static inline bool UploadMode_Parse(const ::std::string& name, - UploadMode* value) { - return IOStrategy_UploadMode_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - void clear_download_mode(); - static const int kDownloadModeFieldNumber = 1; - ::flyteidl::core::IOStrategy_DownloadMode download_mode() const; - void set_download_mode(::flyteidl::core::IOStrategy_DownloadMode value); - - // .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - void clear_upload_mode(); - static const int kUploadModeFieldNumber = 2; - ::flyteidl::core::IOStrategy_UploadMode upload_mode() const; - void set_upload_mode(::flyteidl::core::IOStrategy_UploadMode value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int download_mode_; - int upload_mode_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class DataLoadingConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.DataLoadingConfig) */ { - public: - DataLoadingConfig(); - virtual ~DataLoadingConfig(); - - DataLoadingConfig(const DataLoadingConfig& from); - - inline DataLoadingConfig& operator=(const DataLoadingConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DataLoadingConfig(DataLoadingConfig&& from) noexcept - : DataLoadingConfig() { - *this = ::std::move(from); - } - - inline DataLoadingConfig& operator=(DataLoadingConfig&& 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 DataLoadingConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DataLoadingConfig* internal_default_instance() { - return reinterpret_cast( - &_DataLoadingConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(DataLoadingConfig* other); - friend void swap(DataLoadingConfig& a, DataLoadingConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DataLoadingConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - DataLoadingConfig* 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 DataLoadingConfig& from); - void MergeFrom(const DataLoadingConfig& 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(DataLoadingConfig* 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 ---------------------------------------------------- - - typedef DataLoadingConfig_LiteralMapFormat LiteralMapFormat; - static const LiteralMapFormat JSON = - DataLoadingConfig_LiteralMapFormat_JSON; - static const LiteralMapFormat YAML = - DataLoadingConfig_LiteralMapFormat_YAML; - static const LiteralMapFormat PROTO = - DataLoadingConfig_LiteralMapFormat_PROTO; - static inline bool LiteralMapFormat_IsValid(int value) { - return DataLoadingConfig_LiteralMapFormat_IsValid(value); - } - static const LiteralMapFormat LiteralMapFormat_MIN = - DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MIN; - static const LiteralMapFormat LiteralMapFormat_MAX = - DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_MAX; - static const int LiteralMapFormat_ARRAYSIZE = - DataLoadingConfig_LiteralMapFormat_LiteralMapFormat_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - LiteralMapFormat_descriptor() { - return DataLoadingConfig_LiteralMapFormat_descriptor(); - } - static inline const ::std::string& LiteralMapFormat_Name(LiteralMapFormat value) { - return DataLoadingConfig_LiteralMapFormat_Name(value); - } - static inline bool LiteralMapFormat_Parse(const ::std::string& name, - LiteralMapFormat* value) { - return DataLoadingConfig_LiteralMapFormat_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string input_path = 2; - void clear_input_path(); - static const int kInputPathFieldNumber = 2; - const ::std::string& input_path() const; - void set_input_path(const ::std::string& value); - #if LANG_CXX11 - void set_input_path(::std::string&& value); - #endif - void set_input_path(const char* value); - void set_input_path(const char* value, size_t size); - ::std::string* mutable_input_path(); - ::std::string* release_input_path(); - void set_allocated_input_path(::std::string* input_path); - - // string output_path = 3; - void clear_output_path(); - static const int kOutputPathFieldNumber = 3; - const ::std::string& output_path() const; - void set_output_path(const ::std::string& value); - #if LANG_CXX11 - void set_output_path(::std::string&& value); - #endif - void set_output_path(const char* value); - void set_output_path(const char* value, size_t size); - ::std::string* mutable_output_path(); - ::std::string* release_output_path(); - void set_allocated_output_path(::std::string* output_path); - - // .flyteidl.core.IOStrategy io_strategy = 5; - bool has_io_strategy() const; - void clear_io_strategy(); - static const int kIoStrategyFieldNumber = 5; - const ::flyteidl::core::IOStrategy& io_strategy() const; - ::flyteidl::core::IOStrategy* release_io_strategy(); - ::flyteidl::core::IOStrategy* mutable_io_strategy(); - void set_allocated_io_strategy(::flyteidl::core::IOStrategy* io_strategy); - - // bool enabled = 1; - void clear_enabled(); - static const int kEnabledFieldNumber = 1; - bool enabled() const; - void set_enabled(bool value); - - // .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - void clear_format(); - static const int kFormatFieldNumber = 4; - ::flyteidl::core::DataLoadingConfig_LiteralMapFormat format() const; - void set_format(::flyteidl::core::DataLoadingConfig_LiteralMapFormat value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr input_path_; - ::google::protobuf::internal::ArenaStringPtr output_path_; - ::flyteidl::core::IOStrategy* io_strategy_; - bool enabled_; - int format_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class K8sPod final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.K8sPod) */ { - public: - K8sPod(); - virtual ~K8sPod(); - - K8sPod(const K8sPod& from); - - inline K8sPod& operator=(const K8sPod& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - K8sPod(K8sPod&& from) noexcept - : K8sPod() { - *this = ::std::move(from); - } - - inline K8sPod& operator=(K8sPod&& 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 K8sPod& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const K8sPod* internal_default_instance() { - return reinterpret_cast( - &_K8sPod_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(K8sPod* other); - friend void swap(K8sPod& a, K8sPod& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline K8sPod* New() const final { - return CreateMaybeMessage(nullptr); - } - - K8sPod* 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 K8sPod& from); - void MergeFrom(const K8sPod& 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(K8sPod* 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.K8sObjectMetadata metadata = 1; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 1; - const ::flyteidl::core::K8sObjectMetadata& metadata() const; - ::flyteidl::core::K8sObjectMetadata* release_metadata(); - ::flyteidl::core::K8sObjectMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::K8sObjectMetadata* metadata); - - // .google.protobuf.Struct pod_spec = 2; - bool has_pod_spec() const; - void clear_pod_spec(); - static const int kPodSpecFieldNumber = 2; - const ::google::protobuf::Struct& pod_spec() const; - ::google::protobuf::Struct* release_pod_spec(); - ::google::protobuf::Struct* mutable_pod_spec(); - void set_allocated_pod_spec(::google::protobuf::Struct* pod_spec); - - // .flyteidl.core.DataLoadingConfig data_config = 3; - bool has_data_config() const; - void clear_data_config(); - static const int kDataConfigFieldNumber = 3; - const ::flyteidl::core::DataLoadingConfig& data_config() const; - ::flyteidl::core::DataLoadingConfig* release_data_config(); - ::flyteidl::core::DataLoadingConfig* mutable_data_config(); - void set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config); - - // @@protoc_insertion_point(class_scope:flyteidl.core.K8sPod) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::K8sObjectMetadata* metadata_; - ::google::protobuf::Struct* pod_spec_; - ::flyteidl::core::DataLoadingConfig* data_config_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class K8sObjectMetadata_LabelsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - K8sObjectMetadata_LabelsEntry_DoNotUse(); - K8sObjectMetadata_LabelsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const K8sObjectMetadata_LabelsEntry_DoNotUse& other); - static const K8sObjectMetadata_LabelsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_K8sObjectMetadata_LabelsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class K8sObjectMetadata_AnnotationsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - K8sObjectMetadata_AnnotationsEntry_DoNotUse(); - K8sObjectMetadata_AnnotationsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const K8sObjectMetadata_AnnotationsEntry_DoNotUse& other); - static const K8sObjectMetadata_AnnotationsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_K8sObjectMetadata_AnnotationsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class K8sObjectMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.K8sObjectMetadata) */ { - public: - K8sObjectMetadata(); - virtual ~K8sObjectMetadata(); - - K8sObjectMetadata(const K8sObjectMetadata& from); - - inline K8sObjectMetadata& operator=(const K8sObjectMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - K8sObjectMetadata(K8sObjectMetadata&& from) noexcept - : K8sObjectMetadata() { - *this = ::std::move(from); - } - - inline K8sObjectMetadata& operator=(K8sObjectMetadata&& 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 K8sObjectMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const K8sObjectMetadata* internal_default_instance() { - return reinterpret_cast( - &_K8sObjectMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(K8sObjectMetadata* other); - friend void swap(K8sObjectMetadata& a, K8sObjectMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline K8sObjectMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - K8sObjectMetadata* 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 K8sObjectMetadata& from); - void MergeFrom(const K8sObjectMetadata& 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(K8sObjectMetadata* 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 ------------------------------------------------------- - - // map labels = 1; - int labels_size() const; - void clear_labels(); - static const int kLabelsFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - labels() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_labels(); - - // map annotations = 2; - int annotations_size() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::std::string >& - annotations() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_annotations(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.K8sObjectMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - K8sObjectMetadata_LabelsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > labels_; - ::google::protobuf::internal::MapField< - K8sObjectMetadata_AnnotationsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > annotations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// ------------------------------------------------------------------- - -class Sql final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Sql) */ { - public: - Sql(); - virtual ~Sql(); - - Sql(const Sql& from); - - inline Sql& operator=(const Sql& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Sql(Sql&& from) noexcept - : Sql() { - *this = ::std::move(from); - } - - inline Sql& operator=(Sql&& 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 Sql& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Sql* internal_default_instance() { - return reinterpret_cast( - &_Sql_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(Sql* other); - friend void swap(Sql& a, Sql& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Sql* New() const final { - return CreateMaybeMessage(nullptr); - } - - Sql* 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 Sql& from); - void MergeFrom(const Sql& 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(Sql* 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 ---------------------------------------------------- - - typedef Sql_Dialect Dialect; - static const Dialect UNDEFINED = - Sql_Dialect_UNDEFINED; - static const Dialect ANSI = - Sql_Dialect_ANSI; - static const Dialect HIVE = - Sql_Dialect_HIVE; - static const Dialect OTHER = - Sql_Dialect_OTHER; - static inline bool Dialect_IsValid(int value) { - return Sql_Dialect_IsValid(value); - } - static const Dialect Dialect_MIN = - Sql_Dialect_Dialect_MIN; - static const Dialect Dialect_MAX = - Sql_Dialect_Dialect_MAX; - static const int Dialect_ARRAYSIZE = - Sql_Dialect_Dialect_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Dialect_descriptor() { - return Sql_Dialect_descriptor(); - } - static inline const ::std::string& Dialect_Name(Dialect value) { - return Sql_Dialect_Name(value); - } - static inline bool Dialect_Parse(const ::std::string& name, - Dialect* value) { - return Sql_Dialect_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string statement = 1; - void clear_statement(); - static const int kStatementFieldNumber = 1; - const ::std::string& statement() const; - void set_statement(const ::std::string& value); - #if LANG_CXX11 - void set_statement(::std::string&& value); - #endif - void set_statement(const char* value); - void set_statement(const char* value, size_t size); - ::std::string* mutable_statement(); - ::std::string* release_statement(); - void set_allocated_statement(::std::string* statement); - - // .flyteidl.core.Sql.Dialect dialect = 2; - void clear_dialect(); - static const int kDialectFieldNumber = 2; - ::flyteidl::core::Sql_Dialect dialect() const; - void set_dialect(::flyteidl::core::Sql_Dialect value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Sql) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr statement_; - int dialect_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftasks_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Resources_ResourceEntry - -// .flyteidl.core.Resources.ResourceName name = 1; -inline void Resources_ResourceEntry::clear_name() { - name_ = 0; -} -inline ::flyteidl::core::Resources_ResourceName Resources_ResourceEntry::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.name) - return static_cast< ::flyteidl::core::Resources_ResourceName >(name_); -} -inline void Resources_ResourceEntry::set_name(::flyteidl::core::Resources_ResourceName value) { - - name_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.name) -} - -// string value = 2; -inline void Resources_ResourceEntry::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Resources_ResourceEntry::value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Resources.ResourceEntry.value) - return value_.GetNoArena(); -} -inline void Resources_ResourceEntry::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Resources.ResourceEntry.value) -} -#if LANG_CXX11 -inline void Resources_ResourceEntry::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Resources.ResourceEntry.value) -} -#endif -inline void Resources_ResourceEntry::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Resources.ResourceEntry.value) -} -inline void Resources_ResourceEntry::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Resources.ResourceEntry.value) -} -inline ::std::string* Resources_ResourceEntry::mutable_value() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.ResourceEntry.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Resources_ResourceEntry::release_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.Resources.ResourceEntry.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Resources_ResourceEntry::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Resources.ResourceEntry.value) -} - -// ------------------------------------------------------------------- - -// Resources - -// repeated .flyteidl.core.Resources.ResourceEntry requests = 1; -inline int Resources::requests_size() const { - return requests_.size(); -} -inline void Resources::clear_requests() { - requests_.Clear(); -} -inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_requests(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.requests) - return requests_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* -Resources::mutable_requests() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.requests) - return &requests_; -} -inline const ::flyteidl::core::Resources_ResourceEntry& Resources::requests(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Resources.requests) - return requests_.Get(index); -} -inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_requests() { - // @@protoc_insertion_point(field_add:flyteidl.core.Resources.requests) - return requests_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& -Resources::requests() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Resources.requests) - return requests_; -} - -// repeated .flyteidl.core.Resources.ResourceEntry limits = 2; -inline int Resources::limits_size() const { - return limits_.size(); -} -inline void Resources::clear_limits() { - limits_.Clear(); -} -inline ::flyteidl::core::Resources_ResourceEntry* Resources::mutable_limits(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Resources.limits) - return limits_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >* -Resources::mutable_limits() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Resources.limits) - return &limits_; -} -inline const ::flyteidl::core::Resources_ResourceEntry& Resources::limits(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Resources.limits) - return limits_.Get(index); -} -inline ::flyteidl::core::Resources_ResourceEntry* Resources::add_limits() { - // @@protoc_insertion_point(field_add:flyteidl.core.Resources.limits) - return limits_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Resources_ResourceEntry >& -Resources::limits() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Resources.limits) - return limits_; -} - -// ------------------------------------------------------------------- - -// GPUAccelerator - -// string device = 1; -inline void GPUAccelerator::clear_device() { - device_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GPUAccelerator::device() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GPUAccelerator.device) - return device_.GetNoArena(); -} -inline void GPUAccelerator::set_device(const ::std::string& value) { - - device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.GPUAccelerator.device) -} -#if LANG_CXX11 -inline void GPUAccelerator::set_device(::std::string&& value) { - - device_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.GPUAccelerator.device) -} -#endif -inline void GPUAccelerator::set_device(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.GPUAccelerator.device) -} -inline void GPUAccelerator::set_device(const char* value, size_t size) { - - device_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.GPUAccelerator.device) -} -inline ::std::string* GPUAccelerator::mutable_device() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.GPUAccelerator.device) - return device_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GPUAccelerator::release_device() { - // @@protoc_insertion_point(field_release:flyteidl.core.GPUAccelerator.device) - - return device_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GPUAccelerator::set_allocated_device(::std::string* device) { - if (device != nullptr) { - - } else { - - } - device_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GPUAccelerator.device) -} - -// bool unpartitioned = 2; -inline bool GPUAccelerator::has_unpartitioned() const { - return partition_size_value_case() == kUnpartitioned; -} -inline void GPUAccelerator::set_has_unpartitioned() { - _oneof_case_[0] = kUnpartitioned; -} -inline void GPUAccelerator::clear_unpartitioned() { - if (has_unpartitioned()) { - partition_size_value_.unpartitioned_ = false; - clear_has_partition_size_value(); - } -} -inline bool GPUAccelerator::unpartitioned() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GPUAccelerator.unpartitioned) - if (has_unpartitioned()) { - return partition_size_value_.unpartitioned_; - } - return false; -} -inline void GPUAccelerator::set_unpartitioned(bool value) { - if (!has_unpartitioned()) { - clear_partition_size_value(); - set_has_unpartitioned(); - } - partition_size_value_.unpartitioned_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.GPUAccelerator.unpartitioned) -} - -// string partition_size = 3; -inline bool GPUAccelerator::has_partition_size() const { - return partition_size_value_case() == kPartitionSize; -} -inline void GPUAccelerator::set_has_partition_size() { - _oneof_case_[0] = kPartitionSize; -} -inline void GPUAccelerator::clear_partition_size() { - if (has_partition_size()) { - partition_size_value_.partition_size_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_partition_size_value(); - } -} -inline const ::std::string& GPUAccelerator::partition_size() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GPUAccelerator.partition_size) - if (has_partition_size()) { - return partition_size_value_.partition_size_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void GPUAccelerator::set_partition_size(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.GPUAccelerator.partition_size) - if (!has_partition_size()) { - clear_partition_size_value(); - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - partition_size_value_.partition_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.GPUAccelerator.partition_size) -} -#if LANG_CXX11 -inline void GPUAccelerator::set_partition_size(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.GPUAccelerator.partition_size) - if (!has_partition_size()) { - clear_partition_size_value(); - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - partition_size_value_.partition_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.GPUAccelerator.partition_size) -} -#endif -inline void GPUAccelerator::set_partition_size(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_partition_size()) { - clear_partition_size_value(); - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - partition_size_value_.partition_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.GPUAccelerator.partition_size) -} -inline void GPUAccelerator::set_partition_size(const char* value, size_t size) { - if (!has_partition_size()) { - clear_partition_size_value(); - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - partition_size_value_.partition_size_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.GPUAccelerator.partition_size) -} -inline ::std::string* GPUAccelerator::mutable_partition_size() { - if (!has_partition_size()) { - clear_partition_size_value(); - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.GPUAccelerator.partition_size) - return partition_size_value_.partition_size_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GPUAccelerator::release_partition_size() { - // @@protoc_insertion_point(field_release:flyteidl.core.GPUAccelerator.partition_size) - if (has_partition_size()) { - clear_has_partition_size_value(); - return partition_size_value_.partition_size_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void GPUAccelerator::set_allocated_partition_size(::std::string* partition_size) { - if (has_partition_size_value()) { - clear_partition_size_value(); - } - if (partition_size != nullptr) { - set_has_partition_size(); - partition_size_value_.partition_size_.UnsafeSetDefault(partition_size); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GPUAccelerator.partition_size) -} - -inline bool GPUAccelerator::has_partition_size_value() const { - return partition_size_value_case() != PARTITION_SIZE_VALUE_NOT_SET; -} -inline void GPUAccelerator::clear_has_partition_size_value() { - _oneof_case_[0] = PARTITION_SIZE_VALUE_NOT_SET; -} -inline GPUAccelerator::PartitionSizeValueCase GPUAccelerator::partition_size_value_case() const { - return GPUAccelerator::PartitionSizeValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ExtendedResources - -// .flyteidl.core.GPUAccelerator gpu_accelerator = 1; -inline bool ExtendedResources::has_gpu_accelerator() const { - return this != internal_default_instance() && gpu_accelerator_ != nullptr; -} -inline void ExtendedResources::clear_gpu_accelerator() { - if (GetArenaNoVirtual() == nullptr && gpu_accelerator_ != nullptr) { - delete gpu_accelerator_; - } - gpu_accelerator_ = nullptr; -} -inline const ::flyteidl::core::GPUAccelerator& ExtendedResources::gpu_accelerator() const { - const ::flyteidl::core::GPUAccelerator* p = gpu_accelerator_; - // @@protoc_insertion_point(field_get:flyteidl.core.ExtendedResources.gpu_accelerator) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_GPUAccelerator_default_instance_); -} -inline ::flyteidl::core::GPUAccelerator* ExtendedResources::release_gpu_accelerator() { - // @@protoc_insertion_point(field_release:flyteidl.core.ExtendedResources.gpu_accelerator) - - ::flyteidl::core::GPUAccelerator* temp = gpu_accelerator_; - gpu_accelerator_ = nullptr; - return temp; -} -inline ::flyteidl::core::GPUAccelerator* ExtendedResources::mutable_gpu_accelerator() { - - if (gpu_accelerator_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::GPUAccelerator>(GetArenaNoVirtual()); - gpu_accelerator_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ExtendedResources.gpu_accelerator) - return gpu_accelerator_; -} -inline void ExtendedResources::set_allocated_gpu_accelerator(::flyteidl::core::GPUAccelerator* gpu_accelerator) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete gpu_accelerator_; - } - if (gpu_accelerator) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gpu_accelerator = ::google::protobuf::internal::GetOwnedMessage( - message_arena, gpu_accelerator, submessage_arena); - } - - } else { - - } - gpu_accelerator_ = gpu_accelerator; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ExtendedResources.gpu_accelerator) -} - -// ------------------------------------------------------------------- - -// RuntimeMetadata - -// .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; -inline void RuntimeMetadata::clear_type() { - type_ = 0; -} -inline ::flyteidl::core::RuntimeMetadata_RuntimeType RuntimeMetadata::type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.type) - return static_cast< ::flyteidl::core::RuntimeMetadata_RuntimeType >(type_); -} -inline void RuntimeMetadata::set_type(::flyteidl::core::RuntimeMetadata_RuntimeType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.type) -} - -// string version = 2; -inline void RuntimeMetadata::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RuntimeMetadata::version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.version) - return version_.GetNoArena(); -} -inline void RuntimeMetadata::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.version) -} -#if LANG_CXX11 -inline void RuntimeMetadata::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.version) -} -#endif -inline void RuntimeMetadata::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.version) -} -inline void RuntimeMetadata::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.version) -} -inline ::std::string* RuntimeMetadata::mutable_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RuntimeMetadata::release_version() { - // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RuntimeMetadata::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.version) -} - -// string flavor = 3; -inline void RuntimeMetadata::clear_flavor() { - flavor_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RuntimeMetadata::flavor() const { - // @@protoc_insertion_point(field_get:flyteidl.core.RuntimeMetadata.flavor) - return flavor_.GetNoArena(); -} -inline void RuntimeMetadata::set_flavor(const ::std::string& value) { - - flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.RuntimeMetadata.flavor) -} -#if LANG_CXX11 -inline void RuntimeMetadata::set_flavor(::std::string&& value) { - - flavor_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.RuntimeMetadata.flavor) -} -#endif -inline void RuntimeMetadata::set_flavor(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.RuntimeMetadata.flavor) -} -inline void RuntimeMetadata::set_flavor(const char* value, size_t size) { - - flavor_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.RuntimeMetadata.flavor) -} -inline ::std::string* RuntimeMetadata::mutable_flavor() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.RuntimeMetadata.flavor) - return flavor_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RuntimeMetadata::release_flavor() { - // @@protoc_insertion_point(field_release:flyteidl.core.RuntimeMetadata.flavor) - - return flavor_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RuntimeMetadata::set_allocated_flavor(::std::string* flavor) { - if (flavor != nullptr) { - - } else { - - } - flavor_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), flavor); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.RuntimeMetadata.flavor) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// TaskMetadata - -// bool discoverable = 1; -inline void TaskMetadata::clear_discoverable() { - discoverable_ = false; -} -inline bool TaskMetadata::discoverable() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discoverable) - return discoverable_; -} -inline void TaskMetadata::set_discoverable(bool value) { - - discoverable_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discoverable) -} - -// .flyteidl.core.RuntimeMetadata runtime = 2; -inline bool TaskMetadata::has_runtime() const { - return this != internal_default_instance() && runtime_ != nullptr; -} -inline void TaskMetadata::clear_runtime() { - if (GetArenaNoVirtual() == nullptr && runtime_ != nullptr) { - delete runtime_; - } - runtime_ = nullptr; -} -inline const ::flyteidl::core::RuntimeMetadata& TaskMetadata::runtime() const { - const ::flyteidl::core::RuntimeMetadata* p = runtime_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.runtime) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_RuntimeMetadata_default_instance_); -} -inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::release_runtime() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.runtime) - - ::flyteidl::core::RuntimeMetadata* temp = runtime_; - runtime_ = nullptr; - return temp; -} -inline ::flyteidl::core::RuntimeMetadata* TaskMetadata::mutable_runtime() { - - if (runtime_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::RuntimeMetadata>(GetArenaNoVirtual()); - runtime_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.runtime) - return runtime_; -} -inline void TaskMetadata::set_allocated_runtime(::flyteidl::core::RuntimeMetadata* runtime) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete runtime_; - } - if (runtime) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - runtime = ::google::protobuf::internal::GetOwnedMessage( - message_arena, runtime, submessage_arena); - } - - } else { - - } - runtime_ = runtime; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.runtime) -} - -// .google.protobuf.Duration timeout = 4; -inline bool TaskMetadata::has_timeout() const { - return this != internal_default_instance() && timeout_ != nullptr; -} -inline const ::google::protobuf::Duration& TaskMetadata::timeout() const { - const ::google::protobuf::Duration* p = timeout_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.timeout) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* TaskMetadata::release_timeout() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.timeout) - - ::google::protobuf::Duration* temp = timeout_; - timeout_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* TaskMetadata::mutable_timeout() { - - if (timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - timeout_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.timeout) - return timeout_; -} -inline void TaskMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); - } - if (timeout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(timeout)->GetArena(); - if (message_arena != submessage_arena) { - timeout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, timeout, submessage_arena); - } - - } else { - - } - timeout_ = timeout; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.timeout) -} - -// .flyteidl.core.RetryStrategy retries = 5; -inline bool TaskMetadata::has_retries() const { - return this != internal_default_instance() && retries_ != nullptr; -} -inline const ::flyteidl::core::RetryStrategy& TaskMetadata::retries() const { - const ::flyteidl::core::RetryStrategy* p = retries_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.retries) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_RetryStrategy_default_instance_); -} -inline ::flyteidl::core::RetryStrategy* TaskMetadata::release_retries() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.retries) - - ::flyteidl::core::RetryStrategy* temp = retries_; - retries_ = nullptr; - return temp; -} -inline ::flyteidl::core::RetryStrategy* TaskMetadata::mutable_retries() { - - if (retries_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::RetryStrategy>(GetArenaNoVirtual()); - retries_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.retries) - return retries_; -} -inline void TaskMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); - } - if (retries) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - retries = ::google::protobuf::internal::GetOwnedMessage( - message_arena, retries, submessage_arena); - } - - } else { - - } - retries_ = retries; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.retries) -} - -// string discovery_version = 6; -inline void TaskMetadata::clear_discovery_version() { - discovery_version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskMetadata::discovery_version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.discovery_version) - return discovery_version_.GetNoArena(); -} -inline void TaskMetadata::set_discovery_version(const ::std::string& value) { - - discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.discovery_version) -} -#if LANG_CXX11 -inline void TaskMetadata::set_discovery_version(::std::string&& value) { - - discovery_version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.discovery_version) -} -#endif -inline void TaskMetadata::set_discovery_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.discovery_version) -} -inline void TaskMetadata::set_discovery_version(const char* value, size_t size) { - - discovery_version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.discovery_version) -} -inline ::std::string* TaskMetadata::mutable_discovery_version() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.discovery_version) - return discovery_version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskMetadata::release_discovery_version() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.discovery_version) - - return discovery_version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskMetadata::set_allocated_discovery_version(::std::string* discovery_version) { - if (discovery_version != nullptr) { - - } else { - - } - discovery_version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), discovery_version); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.discovery_version) -} - -// string deprecated_error_message = 7; -inline void TaskMetadata::clear_deprecated_error_message() { - deprecated_error_message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskMetadata::deprecated_error_message() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.deprecated_error_message) - return deprecated_error_message_.GetNoArena(); -} -inline void TaskMetadata::set_deprecated_error_message(const ::std::string& value) { - - deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.deprecated_error_message) -} -#if LANG_CXX11 -inline void TaskMetadata::set_deprecated_error_message(::std::string&& value) { - - deprecated_error_message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.deprecated_error_message) -} -#endif -inline void TaskMetadata::set_deprecated_error_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.deprecated_error_message) -} -inline void TaskMetadata::set_deprecated_error_message(const char* value, size_t size) { - - deprecated_error_message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.deprecated_error_message) -} -inline ::std::string* TaskMetadata::mutable_deprecated_error_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.deprecated_error_message) - return deprecated_error_message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskMetadata::release_deprecated_error_message() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.deprecated_error_message) - - return deprecated_error_message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskMetadata::set_allocated_deprecated_error_message(::std::string* deprecated_error_message) { - if (deprecated_error_message != nullptr) { - - } else { - - } - deprecated_error_message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deprecated_error_message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.deprecated_error_message) -} - -// bool interruptible = 8; -inline bool TaskMetadata::has_interruptible() const { - return interruptible_value_case() == kInterruptible; -} -inline void TaskMetadata::set_has_interruptible() { - _oneof_case_[0] = kInterruptible; -} -inline void TaskMetadata::clear_interruptible() { - if (has_interruptible()) { - interruptible_value_.interruptible_ = false; - clear_has_interruptible_value(); - } -} -inline bool TaskMetadata::interruptible() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.interruptible) - if (has_interruptible()) { - return interruptible_value_.interruptible_; - } - return false; -} -inline void TaskMetadata::set_interruptible(bool value) { - if (!has_interruptible()) { - clear_interruptible_value(); - set_has_interruptible(); - } - interruptible_value_.interruptible_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.interruptible) -} - -// bool cache_serializable = 9; -inline void TaskMetadata::clear_cache_serializable() { - cache_serializable_ = false; -} -inline bool TaskMetadata::cache_serializable() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.cache_serializable) - return cache_serializable_; -} -inline void TaskMetadata::set_cache_serializable(bool value) { - - cache_serializable_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.cache_serializable) -} - -// bool generates_deck = 10; -inline void TaskMetadata::clear_generates_deck() { - generates_deck_ = false; -} -inline bool TaskMetadata::generates_deck() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.generates_deck) - return generates_deck_; -} -inline void TaskMetadata::set_generates_deck(bool value) { - - generates_deck_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.generates_deck) -} - -// map tags = 11; -inline int TaskMetadata::tags_size() const { - return tags_.size(); -} -inline void TaskMetadata::clear_tags() { - tags_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskMetadata::tags() const { - // @@protoc_insertion_point(field_map:flyteidl.core.TaskMetadata.tags) - return tags_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskMetadata::mutable_tags() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.TaskMetadata.tags) - return tags_.MutableMap(); -} - -// string pod_template_name = 12; -inline void TaskMetadata::clear_pod_template_name() { - pod_template_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskMetadata::pod_template_name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.pod_template_name) - return pod_template_name_.GetNoArena(); -} -inline void TaskMetadata::set_pod_template_name(const ::std::string& value) { - - pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.pod_template_name) -} -#if LANG_CXX11 -inline void TaskMetadata::set_pod_template_name(::std::string&& value) { - - pod_template_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskMetadata.pod_template_name) -} -#endif -inline void TaskMetadata::set_pod_template_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.pod_template_name) -} -inline void TaskMetadata::set_pod_template_name(const char* value, size_t size) { - - pod_template_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.pod_template_name) -} -inline ::std::string* TaskMetadata::mutable_pod_template_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.pod_template_name) - return pod_template_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskMetadata::release_pod_template_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskMetadata.pod_template_name) - - return pod_template_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskMetadata::set_allocated_pod_template_name(::std::string* pod_template_name) { - if (pod_template_name != nullptr) { - - } else { - - } - pod_template_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), pod_template_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskMetadata.pod_template_name) -} - -// repeated string cache_ignore_input_vars = 13; -inline int TaskMetadata::cache_ignore_input_vars_size() const { - return cache_ignore_input_vars_.size(); -} -inline void TaskMetadata::clear_cache_ignore_input_vars() { - cache_ignore_input_vars_.Clear(); -} -inline const ::std::string& TaskMetadata::cache_ignore_input_vars(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - return cache_ignore_input_vars_.Get(index); -} -inline ::std::string* TaskMetadata::mutable_cache_ignore_input_vars(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - return cache_ignore_input_vars_.Mutable(index); -} -inline void TaskMetadata::set_cache_ignore_input_vars(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - cache_ignore_input_vars_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void TaskMetadata::set_cache_ignore_input_vars(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - cache_ignore_input_vars_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void TaskMetadata::set_cache_ignore_input_vars(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - cache_ignore_input_vars_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -inline void TaskMetadata::set_cache_ignore_input_vars(int index, const char* value, size_t size) { - cache_ignore_input_vars_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -inline ::std::string* TaskMetadata::add_cache_ignore_input_vars() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - return cache_ignore_input_vars_.Add(); -} -inline void TaskMetadata::add_cache_ignore_input_vars(const ::std::string& value) { - cache_ignore_input_vars_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -#if LANG_CXX11 -inline void TaskMetadata::add_cache_ignore_input_vars(::std::string&& value) { - cache_ignore_input_vars_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -#endif -inline void TaskMetadata::add_cache_ignore_input_vars(const char* value) { - GOOGLE_DCHECK(value != nullptr); - cache_ignore_input_vars_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -inline void TaskMetadata::add_cache_ignore_input_vars(const char* value, size_t size) { - cache_ignore_input_vars_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.TaskMetadata.cache_ignore_input_vars) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -TaskMetadata::cache_ignore_input_vars() const { - // @@protoc_insertion_point(field_list:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - return cache_ignore_input_vars_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -TaskMetadata::mutable_cache_ignore_input_vars() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.TaskMetadata.cache_ignore_input_vars) - return &cache_ignore_input_vars_; -} - -inline bool TaskMetadata::has_interruptible_value() const { - return interruptible_value_case() != INTERRUPTIBLE_VALUE_NOT_SET; -} -inline void TaskMetadata::clear_has_interruptible_value() { - _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; -} -inline TaskMetadata::InterruptibleValueCase TaskMetadata::interruptible_value_case() const { - return TaskMetadata::InterruptibleValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// TaskTemplate - -// .flyteidl.core.Identifier id = 1; -inline bool TaskTemplate::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& TaskTemplate::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* TaskTemplate::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* TaskTemplate::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.id) - return id_; -} -inline void TaskTemplate::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.core.TaskTemplate.id) -} - -// string type = 2; -inline void TaskTemplate::clear_type() { - type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskTemplate::type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.type) - return type_.GetNoArena(); -} -inline void TaskTemplate::set_type(const ::std::string& value) { - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TaskTemplate.type) -} -#if LANG_CXX11 -inline void TaskTemplate::set_type(::std::string&& value) { - - type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TaskTemplate.type) -} -#endif -inline void TaskTemplate::set_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TaskTemplate.type) -} -inline void TaskTemplate::set_type(const char* value, size_t size) { - - type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TaskTemplate.type) -} -inline ::std::string* TaskTemplate::mutable_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.type) - return type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskTemplate::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.type) - - return type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskTemplate::set_allocated_type(::std::string* type) { - if (type != nullptr) { - - } else { - - } - type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.type) -} - -// .flyteidl.core.TaskMetadata metadata = 3; -inline bool TaskTemplate::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void TaskTemplate::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::TaskMetadata& TaskTemplate::metadata() const { - const ::flyteidl::core::TaskMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskMetadata_default_instance_); -} -inline ::flyteidl::core::TaskMetadata* TaskTemplate::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.metadata) - - ::flyteidl::core::TaskMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskMetadata* TaskTemplate::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.metadata) - return metadata_; -} -inline void TaskTemplate::set_allocated_metadata(::flyteidl::core::TaskMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.metadata) -} - -// .flyteidl.core.TypedInterface interface = 4; -inline bool TaskTemplate::has_interface() const { - return this != internal_default_instance() && interface_ != nullptr; -} -inline const ::flyteidl::core::TypedInterface& TaskTemplate::interface() const { - const ::flyteidl::core::TypedInterface* p = interface_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.interface) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypedInterface_default_instance_); -} -inline ::flyteidl::core::TypedInterface* TaskTemplate::release_interface() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.interface) - - ::flyteidl::core::TypedInterface* temp = interface_; - interface_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypedInterface* TaskTemplate::mutable_interface() { - - if (interface_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); - interface_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.interface) - return interface_; -} -inline void TaskTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); - } - if (interface) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - interface = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interface, submessage_arena); - } - - } else { - - } - interface_ = interface; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.interface) -} - -// .google.protobuf.Struct custom = 5; -inline bool TaskTemplate::has_custom() const { - return this != internal_default_instance() && custom_ != nullptr; -} -inline const ::google::protobuf::Struct& TaskTemplate::custom() const { - const ::google::protobuf::Struct* p = custom_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.custom) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* TaskTemplate::release_custom() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.custom) - - ::google::protobuf::Struct* temp = custom_; - custom_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* TaskTemplate::mutable_custom() { - - if (custom_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - custom_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.custom) - return custom_; -} -inline void TaskTemplate::set_allocated_custom(::google::protobuf::Struct* custom) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_); - } - if (custom) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(custom)->GetArena(); - if (message_arena != submessage_arena) { - custom = ::google::protobuf::internal::GetOwnedMessage( - message_arena, custom, submessage_arena); - } - - } else { - - } - custom_ = custom; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.custom) -} - -// .flyteidl.core.Container container = 6; -inline bool TaskTemplate::has_container() const { - return target_case() == kContainer; -} -inline void TaskTemplate::set_has_container() { - _oneof_case_[0] = kContainer; -} -inline void TaskTemplate::clear_container() { - if (has_container()) { - delete target_.container_; - clear_has_target(); - } -} -inline ::flyteidl::core::Container* TaskTemplate::release_container() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.container) - if (has_container()) { - clear_has_target(); - ::flyteidl::core::Container* temp = target_.container_; - target_.container_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Container& TaskTemplate::container() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.container) - return has_container() - ? *target_.container_ - : *reinterpret_cast< ::flyteidl::core::Container*>(&::flyteidl::core::_Container_default_instance_); -} -inline ::flyteidl::core::Container* TaskTemplate::mutable_container() { - if (!has_container()) { - clear_target(); - set_has_container(); - target_.container_ = CreateMaybeMessage< ::flyteidl::core::Container >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.container) - return target_.container_; -} - -// .flyteidl.core.K8sPod k8s_pod = 17; -inline bool TaskTemplate::has_k8s_pod() const { - return target_case() == kK8SPod; -} -inline void TaskTemplate::set_has_k8s_pod() { - _oneof_case_[0] = kK8SPod; -} -inline void TaskTemplate::clear_k8s_pod() { - if (has_k8s_pod()) { - delete target_.k8s_pod_; - clear_has_target(); - } -} -inline ::flyteidl::core::K8sPod* TaskTemplate::release_k8s_pod() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.k8s_pod) - if (has_k8s_pod()) { - clear_has_target(); - ::flyteidl::core::K8sPod* temp = target_.k8s_pod_; - target_.k8s_pod_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::K8sPod& TaskTemplate::k8s_pod() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.k8s_pod) - return has_k8s_pod() - ? *target_.k8s_pod_ - : *reinterpret_cast< ::flyteidl::core::K8sPod*>(&::flyteidl::core::_K8sPod_default_instance_); -} -inline ::flyteidl::core::K8sPod* TaskTemplate::mutable_k8s_pod() { - if (!has_k8s_pod()) { - clear_target(); - set_has_k8s_pod(); - target_.k8s_pod_ = CreateMaybeMessage< ::flyteidl::core::K8sPod >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.k8s_pod) - return target_.k8s_pod_; -} - -// .flyteidl.core.Sql sql = 18; -inline bool TaskTemplate::has_sql() const { - return target_case() == kSql; -} -inline void TaskTemplate::set_has_sql() { - _oneof_case_[0] = kSql; -} -inline void TaskTemplate::clear_sql() { - if (has_sql()) { - delete target_.sql_; - clear_has_target(); - } -} -inline ::flyteidl::core::Sql* TaskTemplate::release_sql() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.sql) - if (has_sql()) { - clear_has_target(); - ::flyteidl::core::Sql* temp = target_.sql_; - target_.sql_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Sql& TaskTemplate::sql() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.sql) - return has_sql() - ? *target_.sql_ - : *reinterpret_cast< ::flyteidl::core::Sql*>(&::flyteidl::core::_Sql_default_instance_); -} -inline ::flyteidl::core::Sql* TaskTemplate::mutable_sql() { - if (!has_sql()) { - clear_target(); - set_has_sql(); - target_.sql_ = CreateMaybeMessage< ::flyteidl::core::Sql >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.sql) - return target_.sql_; -} - -// int32 task_type_version = 7; -inline void TaskTemplate::clear_task_type_version() { - task_type_version_ = 0; -} -inline ::google::protobuf::int32 TaskTemplate::task_type_version() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.task_type_version) - return task_type_version_; -} -inline void TaskTemplate::set_task_type_version(::google::protobuf::int32 value) { - - task_type_version_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.TaskTemplate.task_type_version) -} - -// .flyteidl.core.SecurityContext security_context = 8; -inline bool TaskTemplate::has_security_context() const { - return this != internal_default_instance() && security_context_ != nullptr; -} -inline const ::flyteidl::core::SecurityContext& TaskTemplate::security_context() const { - const ::flyteidl::core::SecurityContext* p = security_context_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.security_context) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_SecurityContext_default_instance_); -} -inline ::flyteidl::core::SecurityContext* TaskTemplate::release_security_context() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.security_context) - - ::flyteidl::core::SecurityContext* temp = security_context_; - security_context_ = nullptr; - return temp; -} -inline ::flyteidl::core::SecurityContext* TaskTemplate::mutable_security_context() { - - if (security_context_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::SecurityContext>(GetArenaNoVirtual()); - security_context_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.security_context) - return security_context_; -} -inline void TaskTemplate::set_allocated_security_context(::flyteidl::core::SecurityContext* security_context) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(security_context_); - } - if (security_context) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - security_context = ::google::protobuf::internal::GetOwnedMessage( - message_arena, security_context, submessage_arena); - } - - } else { - - } - security_context_ = security_context; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.security_context) -} - -// .flyteidl.core.ExtendedResources extended_resources = 9; -inline bool TaskTemplate::has_extended_resources() const { - return this != internal_default_instance() && extended_resources_ != nullptr; -} -inline void TaskTemplate::clear_extended_resources() { - if (GetArenaNoVirtual() == nullptr && extended_resources_ != nullptr) { - delete extended_resources_; - } - extended_resources_ = nullptr; -} -inline const ::flyteidl::core::ExtendedResources& TaskTemplate::extended_resources() const { - const ::flyteidl::core::ExtendedResources* p = extended_resources_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskTemplate.extended_resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ExtendedResources_default_instance_); -} -inline ::flyteidl::core::ExtendedResources* TaskTemplate::release_extended_resources() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskTemplate.extended_resources) - - ::flyteidl::core::ExtendedResources* temp = extended_resources_; - extended_resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::ExtendedResources* TaskTemplate::mutable_extended_resources() { - - if (extended_resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ExtendedResources>(GetArenaNoVirtual()); - extended_resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskTemplate.extended_resources) - return extended_resources_; -} -inline void TaskTemplate::set_allocated_extended_resources(::flyteidl::core::ExtendedResources* extended_resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete extended_resources_; - } - if (extended_resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - extended_resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, extended_resources, submessage_arena); - } - - } else { - - } - extended_resources_ = extended_resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskTemplate.extended_resources) -} - -// map config = 16; -inline int TaskTemplate::config_size() const { - return config_.size(); -} -inline void TaskTemplate::clear_config() { - config_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -TaskTemplate::config() const { - // @@protoc_insertion_point(field_map:flyteidl.core.TaskTemplate.config) - return config_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -TaskTemplate::mutable_config() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.TaskTemplate.config) - return config_.MutableMap(); -} - -inline bool TaskTemplate::has_target() const { - return target_case() != TARGET_NOT_SET; -} -inline void TaskTemplate::clear_has_target() { - _oneof_case_[0] = TARGET_NOT_SET; -} -inline TaskTemplate::TargetCase TaskTemplate::target_case() const { - return TaskTemplate::TargetCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ContainerPort - -// uint32 container_port = 1; -inline void ContainerPort::clear_container_port() { - container_port_ = 0u; -} -inline ::google::protobuf::uint32 ContainerPort::container_port() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ContainerPort.container_port) - return container_port_; -} -inline void ContainerPort::set_container_port(::google::protobuf::uint32 value) { - - container_port_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ContainerPort.container_port) -} - -// ------------------------------------------------------------------- - -// Container - -// string image = 1; -inline void Container::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Container::image() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.image) - return image_.GetNoArena(); -} -inline void Container::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Container.image) -} -#if LANG_CXX11 -inline void Container::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Container.image) -} -#endif -inline void Container::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.image) -} -inline void Container::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.image) -} -inline ::std::string* Container::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Container::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.core.Container.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Container::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.image) -} - -// repeated string command = 2; -inline int Container::command_size() const { - return command_.size(); -} -inline void Container::clear_command() { - command_.Clear(); -} -inline const ::std::string& Container::command(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.command) - return command_.Get(index); -} -inline ::std::string* Container::mutable_command(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.command) - return command_.Mutable(index); -} -inline void Container::set_command(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) - command_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Container::set_command(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Container.command) - command_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Container::set_command(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - command_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.command) -} -inline void Container::set_command(int index, const char* value, size_t size) { - command_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.command) -} -inline ::std::string* Container::add_command() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.command) - return command_.Add(); -} -inline void Container::add_command(const ::std::string& value) { - command_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) -} -#if LANG_CXX11 -inline void Container::add_command(::std::string&& value) { - command_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.Container.command) -} -#endif -inline void Container::add_command(const char* value) { - GOOGLE_DCHECK(value != nullptr); - command_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.command) -} -inline void Container::add_command(const char* value, size_t size) { - command_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.command) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Container::command() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Container.command) - return command_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Container::mutable_command() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.command) - return &command_; -} - -// repeated string args = 3; -inline int Container::args_size() const { - return args_.size(); -} -inline void Container::clear_args() { - args_.Clear(); -} -inline const ::std::string& Container::args(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.args) - return args_.Get(index); -} -inline ::std::string* Container::mutable_args(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.args) - return args_.Mutable(index); -} -inline void Container::set_args(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) - args_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Container::set_args(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Container.args) - args_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Container::set_args(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - args_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Container.args) -} -inline void Container::set_args(int index, const char* value, size_t size) { - args_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Container.args) -} -inline ::std::string* Container::add_args() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Container.args) - return args_.Add(); -} -inline void Container::add_args(const ::std::string& value) { - args_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) -} -#if LANG_CXX11 -inline void Container::add_args(::std::string&& value) { - args_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.Container.args) -} -#endif -inline void Container::add_args(const char* value) { - GOOGLE_DCHECK(value != nullptr); - args_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.Container.args) -} -inline void Container::add_args(const char* value, size_t size) { - args_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Container.args) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Container::args() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Container.args) - return args_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Container::mutable_args() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.args) - return &args_; -} - -// .flyteidl.core.Resources resources = 4; -inline bool Container::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline void Container::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -inline const ::flyteidl::core::Resources& Container::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.core.Container.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* Container::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.core.Container.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* Container::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.resources) - return resources_; -} -inline void Container::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete resources_; - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.resources) -} - -// repeated .flyteidl.core.KeyValuePair env = 5; -inline int Container::env_size() const { - return env_.size(); -} -inline ::flyteidl::core::KeyValuePair* Container::mutable_env(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.env) - return env_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* -Container::mutable_env() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.env) - return &env_; -} -inline const ::flyteidl::core::KeyValuePair& Container::env(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.env) - return env_.Get(index); -} -inline ::flyteidl::core::KeyValuePair* Container::add_env() { - // @@protoc_insertion_point(field_add:flyteidl.core.Container.env) - return env_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& -Container::env() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Container.env) - return env_; -} - -// repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; -inline int Container::config_size() const { - return config_.size(); -} -inline ::flyteidl::core::KeyValuePair* Container::mutable_config(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.config) - return config_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >* -Container::mutable_config() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.config) - return &config_; -} -inline const ::flyteidl::core::KeyValuePair& Container::config(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.config) - return config_.Get(index); -} -inline ::flyteidl::core::KeyValuePair* Container::add_config() { - // @@protoc_insertion_point(field_add:flyteidl.core.Container.config) - return config_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::KeyValuePair >& -Container::config() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Container.config) - return config_; -} - -// repeated .flyteidl.core.ContainerPort ports = 7; -inline int Container::ports_size() const { - return ports_.size(); -} -inline void Container::clear_ports() { - ports_.Clear(); -} -inline ::flyteidl::core::ContainerPort* Container::mutable_ports(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.ports) - return ports_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >* -Container::mutable_ports() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Container.ports) - return &ports_; -} -inline const ::flyteidl::core::ContainerPort& Container::ports(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.ports) - return ports_.Get(index); -} -inline ::flyteidl::core::ContainerPort* Container::add_ports() { - // @@protoc_insertion_point(field_add:flyteidl.core.Container.ports) - return ports_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ContainerPort >& -Container::ports() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Container.ports) - return ports_; -} - -// .flyteidl.core.DataLoadingConfig data_config = 9; -inline bool Container::has_data_config() const { - return this != internal_default_instance() && data_config_ != nullptr; -} -inline void Container::clear_data_config() { - if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { - delete data_config_; - } - data_config_ = nullptr; -} -inline const ::flyteidl::core::DataLoadingConfig& Container::data_config() const { - const ::flyteidl::core::DataLoadingConfig* p = data_config_; - // @@protoc_insertion_point(field_get:flyteidl.core.Container.data_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_DataLoadingConfig_default_instance_); -} -inline ::flyteidl::core::DataLoadingConfig* Container::release_data_config() { - // @@protoc_insertion_point(field_release:flyteidl.core.Container.data_config) - - ::flyteidl::core::DataLoadingConfig* temp = data_config_; - data_config_ = nullptr; - return temp; -} -inline ::flyteidl::core::DataLoadingConfig* Container::mutable_data_config() { - - if (data_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(GetArenaNoVirtual()); - data_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Container.data_config) - return data_config_; -} -inline void Container::set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete data_config_; - } - if (data_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - data_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data_config, submessage_arena); - } - - } else { - - } - data_config_ = data_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Container.data_config) -} - -// .flyteidl.core.Container.Architecture architecture = 10; -inline void Container::clear_architecture() { - architecture_ = 0; -} -inline ::flyteidl::core::Container_Architecture Container::architecture() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Container.architecture) - return static_cast< ::flyteidl::core::Container_Architecture >(architecture_); -} -inline void Container::set_architecture(::flyteidl::core::Container_Architecture value) { - - architecture_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Container.architecture) -} - -// ------------------------------------------------------------------- - -// IOStrategy - -// .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; -inline void IOStrategy::clear_download_mode() { - download_mode_ = 0; -} -inline ::flyteidl::core::IOStrategy_DownloadMode IOStrategy::download_mode() const { - // @@protoc_insertion_point(field_get:flyteidl.core.IOStrategy.download_mode) - return static_cast< ::flyteidl::core::IOStrategy_DownloadMode >(download_mode_); -} -inline void IOStrategy::set_download_mode(::flyteidl::core::IOStrategy_DownloadMode value) { - - download_mode_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.IOStrategy.download_mode) -} - -// .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; -inline void IOStrategy::clear_upload_mode() { - upload_mode_ = 0; -} -inline ::flyteidl::core::IOStrategy_UploadMode IOStrategy::upload_mode() const { - // @@protoc_insertion_point(field_get:flyteidl.core.IOStrategy.upload_mode) - return static_cast< ::flyteidl::core::IOStrategy_UploadMode >(upload_mode_); -} -inline void IOStrategy::set_upload_mode(::flyteidl::core::IOStrategy_UploadMode value) { - - upload_mode_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.IOStrategy.upload_mode) -} - -// ------------------------------------------------------------------- - -// DataLoadingConfig - -// bool enabled = 1; -inline void DataLoadingConfig::clear_enabled() { - enabled_ = false; -} -inline bool DataLoadingConfig::enabled() const { - // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.enabled) - return enabled_; -} -inline void DataLoadingConfig::set_enabled(bool value) { - - enabled_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.enabled) -} - -// string input_path = 2; -inline void DataLoadingConfig::clear_input_path() { - input_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DataLoadingConfig::input_path() const { - // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.input_path) - return input_path_.GetNoArena(); -} -inline void DataLoadingConfig::set_input_path(const ::std::string& value) { - - input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.input_path) -} -#if LANG_CXX11 -inline void DataLoadingConfig::set_input_path(::std::string&& value) { - - input_path_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.DataLoadingConfig.input_path) -} -#endif -inline void DataLoadingConfig::set_input_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.DataLoadingConfig.input_path) -} -inline void DataLoadingConfig::set_input_path(const char* value, size_t size) { - - input_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.DataLoadingConfig.input_path) -} -inline ::std::string* DataLoadingConfig::mutable_input_path() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.input_path) - return input_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DataLoadingConfig::release_input_path() { - // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.input_path) - - return input_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DataLoadingConfig::set_allocated_input_path(::std::string* input_path) { - if (input_path != nullptr) { - - } else { - - } - input_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), input_path); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.input_path) -} - -// string output_path = 3; -inline void DataLoadingConfig::clear_output_path() { - output_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DataLoadingConfig::output_path() const { - // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.output_path) - return output_path_.GetNoArena(); -} -inline void DataLoadingConfig::set_output_path(const ::std::string& value) { - - output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.output_path) -} -#if LANG_CXX11 -inline void DataLoadingConfig::set_output_path(::std::string&& value) { - - output_path_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.DataLoadingConfig.output_path) -} -#endif -inline void DataLoadingConfig::set_output_path(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.DataLoadingConfig.output_path) -} -inline void DataLoadingConfig::set_output_path(const char* value, size_t size) { - - output_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.DataLoadingConfig.output_path) -} -inline ::std::string* DataLoadingConfig::mutable_output_path() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.output_path) - return output_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DataLoadingConfig::release_output_path() { - // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.output_path) - - return output_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DataLoadingConfig::set_allocated_output_path(::std::string* output_path) { - if (output_path != nullptr) { - - } else { - - } - output_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_path); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.output_path) -} - -// .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; -inline void DataLoadingConfig::clear_format() { - format_ = 0; -} -inline ::flyteidl::core::DataLoadingConfig_LiteralMapFormat DataLoadingConfig::format() const { - // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.format) - return static_cast< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat >(format_); -} -inline void DataLoadingConfig::set_format(::flyteidl::core::DataLoadingConfig_LiteralMapFormat value) { - - format_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.DataLoadingConfig.format) -} - -// .flyteidl.core.IOStrategy io_strategy = 5; -inline bool DataLoadingConfig::has_io_strategy() const { - return this != internal_default_instance() && io_strategy_ != nullptr; -} -inline void DataLoadingConfig::clear_io_strategy() { - if (GetArenaNoVirtual() == nullptr && io_strategy_ != nullptr) { - delete io_strategy_; - } - io_strategy_ = nullptr; -} -inline const ::flyteidl::core::IOStrategy& DataLoadingConfig::io_strategy() const { - const ::flyteidl::core::IOStrategy* p = io_strategy_; - // @@protoc_insertion_point(field_get:flyteidl.core.DataLoadingConfig.io_strategy) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_IOStrategy_default_instance_); -} -inline ::flyteidl::core::IOStrategy* DataLoadingConfig::release_io_strategy() { - // @@protoc_insertion_point(field_release:flyteidl.core.DataLoadingConfig.io_strategy) - - ::flyteidl::core::IOStrategy* temp = io_strategy_; - io_strategy_ = nullptr; - return temp; -} -inline ::flyteidl::core::IOStrategy* DataLoadingConfig::mutable_io_strategy() { - - if (io_strategy_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::IOStrategy>(GetArenaNoVirtual()); - io_strategy_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.DataLoadingConfig.io_strategy) - return io_strategy_; -} -inline void DataLoadingConfig::set_allocated_io_strategy(::flyteidl::core::IOStrategy* io_strategy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete io_strategy_; - } - if (io_strategy) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - io_strategy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, io_strategy, submessage_arena); - } - - } else { - - } - io_strategy_ = io_strategy; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.DataLoadingConfig.io_strategy) -} - -// ------------------------------------------------------------------- - -// K8sPod - -// .flyteidl.core.K8sObjectMetadata metadata = 1; -inline bool K8sPod::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void K8sPod::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::K8sObjectMetadata& K8sPod::metadata() const { - const ::flyteidl::core::K8sObjectMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_K8sObjectMetadata_default_instance_); -} -inline ::flyteidl::core::K8sObjectMetadata* K8sPod::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.metadata) - - ::flyteidl::core::K8sObjectMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::K8sObjectMetadata* K8sPod::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::K8sObjectMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.metadata) - return metadata_; -} -inline void K8sPod::set_allocated_metadata(::flyteidl::core::K8sObjectMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.metadata) -} - -// .google.protobuf.Struct pod_spec = 2; -inline bool K8sPod::has_pod_spec() const { - return this != internal_default_instance() && pod_spec_ != nullptr; -} -inline const ::google::protobuf::Struct& K8sPod::pod_spec() const { - const ::google::protobuf::Struct* p = pod_spec_; - // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.pod_spec) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* K8sPod::release_pod_spec() { - // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.pod_spec) - - ::google::protobuf::Struct* temp = pod_spec_; - pod_spec_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* K8sPod::mutable_pod_spec() { - - if (pod_spec_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - pod_spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.pod_spec) - return pod_spec_; -} -inline void K8sPod::set_allocated_pod_spec(::google::protobuf::Struct* pod_spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(pod_spec_); - } - if (pod_spec) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(pod_spec)->GetArena(); - if (message_arena != submessage_arena) { - pod_spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pod_spec, submessage_arena); - } - - } else { - - } - pod_spec_ = pod_spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.pod_spec) -} - -// .flyteidl.core.DataLoadingConfig data_config = 3; -inline bool K8sPod::has_data_config() const { - return this != internal_default_instance() && data_config_ != nullptr; -} -inline void K8sPod::clear_data_config() { - if (GetArenaNoVirtual() == nullptr && data_config_ != nullptr) { - delete data_config_; - } - data_config_ = nullptr; -} -inline const ::flyteidl::core::DataLoadingConfig& K8sPod::data_config() const { - const ::flyteidl::core::DataLoadingConfig* p = data_config_; - // @@protoc_insertion_point(field_get:flyteidl.core.K8sPod.data_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_DataLoadingConfig_default_instance_); -} -inline ::flyteidl::core::DataLoadingConfig* K8sPod::release_data_config() { - // @@protoc_insertion_point(field_release:flyteidl.core.K8sPod.data_config) - - ::flyteidl::core::DataLoadingConfig* temp = data_config_; - data_config_ = nullptr; - return temp; -} -inline ::flyteidl::core::DataLoadingConfig* K8sPod::mutable_data_config() { - - if (data_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::DataLoadingConfig>(GetArenaNoVirtual()); - data_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.K8sPod.data_config) - return data_config_; -} -inline void K8sPod::set_allocated_data_config(::flyteidl::core::DataLoadingConfig* data_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete data_config_; - } - if (data_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - data_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data_config, submessage_arena); - } - - } else { - - } - data_config_ = data_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.K8sPod.data_config) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// K8sObjectMetadata - -// map labels = 1; -inline int K8sObjectMetadata::labels_size() const { - return labels_.size(); -} -inline void K8sObjectMetadata::clear_labels() { - labels_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -K8sObjectMetadata::labels() const { - // @@protoc_insertion_point(field_map:flyteidl.core.K8sObjectMetadata.labels) - return labels_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -K8sObjectMetadata::mutable_labels() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.K8sObjectMetadata.labels) - return labels_.MutableMap(); -} - -// map annotations = 2; -inline int K8sObjectMetadata::annotations_size() const { - return annotations_.size(); -} -inline void K8sObjectMetadata::clear_annotations() { - annotations_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -K8sObjectMetadata::annotations() const { - // @@protoc_insertion_point(field_map:flyteidl.core.K8sObjectMetadata.annotations) - return annotations_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -K8sObjectMetadata::mutable_annotations() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.K8sObjectMetadata.annotations) - return annotations_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// Sql - -// string statement = 1; -inline void Sql::clear_statement() { - statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Sql::statement() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Sql.statement) - return statement_.GetNoArena(); -} -inline void Sql::set_statement(const ::std::string& value) { - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Sql.statement) -} -#if LANG_CXX11 -inline void Sql::set_statement(::std::string&& value) { - - statement_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Sql.statement) -} -#endif -inline void Sql::set_statement(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Sql.statement) -} -inline void Sql::set_statement(const char* value, size_t size) { - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Sql.statement) -} -inline ::std::string* Sql::mutable_statement() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Sql.statement) - return statement_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Sql::release_statement() { - // @@protoc_insertion_point(field_release:flyteidl.core.Sql.statement) - - return statement_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Sql::set_allocated_statement(::std::string* statement) { - if (statement != nullptr) { - - } else { - - } - statement_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), statement); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Sql.statement) -} - -// .flyteidl.core.Sql.Dialect dialect = 2; -inline void Sql::clear_dialect() { - dialect_ = 0; -} -inline ::flyteidl::core::Sql_Dialect Sql::dialect() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Sql.dialect) - return static_cast< ::flyteidl::core::Sql_Dialect >(dialect_); -} -inline void Sql::set_dialect(::flyteidl::core::Sql_Dialect value) { - - dialect_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.Sql.dialect) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::Resources_ResourceName> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Resources_ResourceName>() { - return ::flyteidl::core::Resources_ResourceName_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::RuntimeMetadata_RuntimeType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::RuntimeMetadata_RuntimeType>() { - return ::flyteidl::core::RuntimeMetadata_RuntimeType_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::Container_Architecture> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Container_Architecture>() { - return ::flyteidl::core::Container_Architecture_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::IOStrategy_DownloadMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::IOStrategy_DownloadMode>() { - return ::flyteidl::core::IOStrategy_DownloadMode_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::IOStrategy_UploadMode> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::IOStrategy_UploadMode>() { - return ::flyteidl::core::IOStrategy_UploadMode_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::DataLoadingConfig_LiteralMapFormat>() { - return ::flyteidl::core::DataLoadingConfig_LiteralMapFormat_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::Sql_Dialect> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::Sql_Dialect>() { - return ::flyteidl::core::Sql_Dialect_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ftasks_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc deleted file mode 100644 index 8d9dc646c4..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/types.proto - -#include "flyteidl/core/types.pb.h" -#include "flyteidl/core/types.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h deleted file mode 100644 index 02aa993e49..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/types.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/types.proto -#ifndef GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED - -#include "flyteidl/core/types.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2ftypes_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc deleted file mode 100644 index 959fbc8858..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.cc +++ /dev/null @@ -1,6043 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/types.proto - -#include "flyteidl/core/types.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -namespace flyteidl { -namespace core { -class SchemaType_SchemaColumnDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SchemaType_SchemaColumn_default_instance_; -class SchemaTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SchemaType_default_instance_; -class StructuredDatasetType_DatasetColumnDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StructuredDatasetType_DatasetColumn_default_instance_; -class StructuredDatasetTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _StructuredDatasetType_default_instance_; -class BlobTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BlobType_default_instance_; -class EnumTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EnumType_default_instance_; -class UnionTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UnionType_default_instance_; -class TypeStructure_DataclassTypeEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TypeStructure_DataclassTypeEntry_DoNotUse_default_instance_; -class TypeStructureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TypeStructure_default_instance_; -class TypeAnnotationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TypeAnnotation_default_instance_; -class LiteralTypeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - int simple_; - const ::flyteidl::core::SchemaType* schema_; - const ::flyteidl::core::LiteralType* collection_type_; - const ::flyteidl::core::LiteralType* map_value_type_; - const ::flyteidl::core::BlobType* blob_; - const ::flyteidl::core::EnumType* enum_type_; - const ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; - const ::flyteidl::core::UnionType* union_type_; -} _LiteralType_default_instance_; -class OutputReferenceDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _OutputReference_default_instance_; -class PromiseAttributeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::int32 int_value_; -} _PromiseAttribute_default_instance_; -class ErrorDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Error_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsSchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SchemaType_SchemaColumn_default_instance_; - new (ptr) ::flyteidl::core::SchemaType_SchemaColumn(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SchemaType_SchemaColumn::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto}, {}}; - -static void InitDefaultsSchemaType_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SchemaType_default_instance_; - new (ptr) ::flyteidl::core::SchemaType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SchemaType::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSchemaType_flyteidl_2fcore_2ftypes_2eproto}, { - &scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsBlobType_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_BlobType_default_instance_; - new (ptr) ::flyteidl::core::BlobType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::BlobType::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsBlobType_flyteidl_2fcore_2ftypes_2eproto}, {}}; - -static void InitDefaultsEnumType_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_EnumType_default_instance_; - new (ptr) ::flyteidl::core::EnumType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::EnumType::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsEnumType_flyteidl_2fcore_2ftypes_2eproto}, {}}; - -static void InitDefaultsTypeAnnotation_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TypeAnnotation_default_instance_; - new (ptr) ::flyteidl::core::TypeAnnotation(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TypeAnnotation::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTypeAnnotation_flyteidl_2fcore_2ftypes_2eproto}, { - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; - -static void InitDefaultsLiteralType_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_; - new (ptr) ::flyteidl::core::StructuredDatasetType_DatasetColumn(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_StructuredDatasetType_default_instance_; - new (ptr) ::flyteidl::core::StructuredDatasetType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_UnionType_default_instance_; - new (ptr) ::flyteidl::core::UnionType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_TypeStructure_DataclassTypeEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse(); - } - { - void* ptr = &::flyteidl::core::_TypeStructure_default_instance_; - new (ptr) ::flyteidl::core::TypeStructure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_LiteralType_default_instance_; - new (ptr) ::flyteidl::core::LiteralType(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::StructuredDatasetType_DatasetColumn::InitAsDefaultInstance(); - ::flyteidl::core::StructuredDatasetType::InitAsDefaultInstance(); - ::flyteidl::core::UnionType::InitAsDefaultInstance(); - ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse::InitAsDefaultInstance(); - ::flyteidl::core::TypeStructure::InitAsDefaultInstance(); - ::flyteidl::core::LiteralType::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 5, InitDefaultsLiteralType_flyteidl_2fcore_2ftypes_2eproto}, { - &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsOutputReference_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_OutputReference_default_instance_; - new (ptr) ::flyteidl::core::OutputReference(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::OutputReference::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsOutputReference_flyteidl_2fcore_2ftypes_2eproto}, { - &scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsPromiseAttribute_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_PromiseAttribute_default_instance_; - new (ptr) ::flyteidl::core::PromiseAttribute(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::PromiseAttribute::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPromiseAttribute_flyteidl_2fcore_2ftypes_2eproto}, {}}; - -static void InitDefaultsError_flyteidl_2fcore_2ftypes_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Error_default_instance_; - new (ptr) ::flyteidl::core::Error(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Error::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsError_flyteidl_2fcore_2ftypes_2eproto}, {}}; - -void InitDefaults_flyteidl_2fcore_2ftypes_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[14]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[3]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2ftypes_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2ftypes_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType_SchemaColumn, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SchemaType, columns_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType_DatasetColumn, literal_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, columns_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, format_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, external_schema_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::StructuredDatasetType, external_schema_bytes_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, format_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BlobType, dimensionality_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::EnumType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::EnumType, values_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionType, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::UnionType, variants_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure, tag_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeStructure, dataclass_type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeAnnotation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TypeAnnotation, annotations_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, simple_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, schema_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, collection_type_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, map_value_type_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, blob_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, enum_type_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, structured_dataset_type_), - offsetof(::flyteidl::core::LiteralTypeDefaultTypeInternal, union_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, annotation_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, structure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::LiteralType, type_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, var_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::OutputReference, attr_path_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::PromiseAttribute, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::PromiseAttribute, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::PromiseAttributeDefaultTypeInternal, string_value_), - offsetof(::flyteidl::core::PromiseAttributeDefaultTypeInternal, int_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::PromiseAttribute, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, failed_node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Error, message_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::SchemaType_SchemaColumn)}, - { 7, -1, sizeof(::flyteidl::core::SchemaType)}, - { 13, -1, sizeof(::flyteidl::core::StructuredDatasetType_DatasetColumn)}, - { 20, -1, sizeof(::flyteidl::core::StructuredDatasetType)}, - { 29, -1, sizeof(::flyteidl::core::BlobType)}, - { 36, -1, sizeof(::flyteidl::core::EnumType)}, - { 42, -1, sizeof(::flyteidl::core::UnionType)}, - { 48, 55, sizeof(::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse)}, - { 57, -1, sizeof(::flyteidl::core::TypeStructure)}, - { 64, -1, sizeof(::flyteidl::core::TypeAnnotation)}, - { 70, -1, sizeof(::flyteidl::core::LiteralType)}, - { 87, -1, sizeof(::flyteidl::core::OutputReference)}, - { 95, -1, sizeof(::flyteidl::core::PromiseAttribute)}, - { 103, -1, sizeof(::flyteidl::core::Error)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_SchemaType_SchemaColumn_default_instance_), - reinterpret_cast(&::flyteidl::core::_SchemaType_default_instance_), - reinterpret_cast(&::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_), - reinterpret_cast(&::flyteidl::core::_StructuredDatasetType_default_instance_), - reinterpret_cast(&::flyteidl::core::_BlobType_default_instance_), - reinterpret_cast(&::flyteidl::core::_EnumType_default_instance_), - reinterpret_cast(&::flyteidl::core::_UnionType_default_instance_), - reinterpret_cast(&::flyteidl::core::_TypeStructure_DataclassTypeEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_TypeStructure_default_instance_), - reinterpret_cast(&::flyteidl::core::_TypeAnnotation_default_instance_), - reinterpret_cast(&::flyteidl::core::_LiteralType_default_instance_), - reinterpret_cast(&::flyteidl::core::_OutputReference_default_instance_), - reinterpret_cast(&::flyteidl::core::_PromiseAttribute_default_instance_), - reinterpret_cast(&::flyteidl::core::_Error_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2ftypes_2eproto, "flyteidl/core/types.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2ftypes_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2ftypes_2eproto, 14, file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto, file_level_service_descriptors_flyteidl_2fcore_2ftypes_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2ftypes_2eproto[] = - "\n\031flyteidl/core/types.proto\022\rflyteidl.co" - "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" - "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" - ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" - "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" - ".core.SchemaType.SchemaColumn.SchemaColu" - "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" - "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" - "ATETIME\020\004\022\014\n\010DURATION\020\005\"\372\001\n\025StructuredDa" - "tasetType\022C\n\007columns\030\001 \003(\01322.flyteidl.co" - "re.StructuredDatasetType.DatasetColumn\022\016" - "\n\006format\030\002 \001(\t\022\034\n\024external_schema_type\030\003" - " \001(\t\022\035\n\025external_schema_bytes\030\004 \001(\014\032O\n\rD" - "atasetColumn\022\014\n\004name\030\001 \001(\t\0220\n\014literal_ty" - "pe\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\217\001\n" - "\010BlobType\022\016\n\006format\030\001 \001(\t\022B\n\016dimensional" - "ity\030\002 \001(\0162*.flyteidl.core.BlobType.BlobD" - "imensionality\"/\n\022BlobDimensionality\022\n\n\006S" - "INGLE\020\000\022\r\n\tMULTIPART\020\001\"\032\n\010EnumType\022\016\n\006va" - "lues\030\001 \003(\t\"9\n\tUnionType\022,\n\010variants\030\001 \003(" - "\0132\032.flyteidl.core.LiteralType\"\267\001\n\rTypeSt" - "ructure\022\013\n\003tag\030\001 \001(\t\022G\n\016dataclass_type\030\002" - " \003(\0132/.flyteidl.core.TypeStructure.Datac" - "lassTypeEntry\032P\n\022DataclassTypeEntry\022\013\n\003k" - "ey\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.flyteidl.core." - "LiteralType:\0028\001\">\n\016TypeAnnotation\022,\n\013ann" - "otations\030\001 \001(\0132\027.google.protobuf.Struct\"" - "\273\004\n\013LiteralType\022+\n\006simple\030\001 \001(\0162\031.flytei" - "dl.core.SimpleTypeH\000\022+\n\006schema\030\002 \001(\0132\031.f" - "lyteidl.core.SchemaTypeH\000\0225\n\017collection_" - "type\030\003 \001(\0132\032.flyteidl.core.LiteralTypeH\000" - "\0224\n\016map_value_type\030\004 \001(\0132\032.flyteidl.core" - ".LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027.flyteidl." - "core.BlobTypeH\000\022,\n\tenum_type\030\007 \001(\0132\027.fly" - "teidl.core.EnumTypeH\000\022G\n\027structured_data" - "set_type\030\010 \001(\0132$.flyteidl.core.Structure" - "dDatasetTypeH\000\022.\n\nunion_type\030\n \001(\0132\030.fly" - "teidl.core.UnionTypeH\000\022)\n\010metadata\030\006 \001(\013" - "2\027.google.protobuf.Struct\0221\n\nannotation\030" - "\t \001(\0132\035.flyteidl.core.TypeAnnotation\022/\n\t" - "structure\030\013 \001(\0132\034.flyteidl.core.TypeStru" - "ctureB\006\n\004type\"c\n\017OutputReference\022\017\n\007node" - "_id\030\001 \001(\t\022\013\n\003var\030\002 \001(\t\0222\n\tattr_path\030\003 \003(" - "\0132\037.flyteidl.core.PromiseAttribute\"H\n\020Pr" - "omiseAttribute\022\026\n\014string_value\030\001 \001(\tH\000\022\023" - "\n\tint_value\030\002 \001(\005H\000B\007\n\005value\"0\n\005Error\022\026\n" - "\016failed_node_id\030\001 \001(\t\022\017\n\007message\030\002 \001(\t*\206" - "\001\n\nSimpleType\022\010\n\004NONE\020\000\022\013\n\007INTEGER\020\001\022\t\n\005" - "FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007BOOLEAN\020\004\022\014\n\010DATE" - "TIME\020\005\022\014\n\010DURATION\020\006\022\n\n\006BINARY\020\007\022\t\n\005ERRO" - "R\020\010\022\n\n\006STRUCT\020\tB= 1900 -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::INTEGER; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::FLOAT; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::STRING; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::BOOLEAN; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DATETIME; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::DURATION; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MIN; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::SchemaColumnType_MAX; -const int SchemaType_SchemaColumn::SchemaColumnType_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[1]; -} -bool BlobType_BlobDimensionality_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const BlobType_BlobDimensionality BlobType::SINGLE; -const BlobType_BlobDimensionality BlobType::MULTIPART; -const BlobType_BlobDimensionality BlobType::BlobDimensionality_MIN; -const BlobType_BlobDimensionality BlobType::BlobDimensionality_MAX; -const int BlobType::BlobDimensionality_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* SimpleType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return file_level_enum_descriptors_flyteidl_2fcore_2ftypes_2eproto[2]; -} -bool SimpleType_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - return true; - default: - return false; - } -} - - -// =================================================================== - -void SchemaType_SchemaColumn::InitAsDefaultInstance() { -} -class SchemaType_SchemaColumn::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SchemaType_SchemaColumn::kNameFieldNumber; -const int SchemaType_SchemaColumn::kTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SchemaType_SchemaColumn::SchemaType_SchemaColumn() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType.SchemaColumn) -} -SchemaType_SchemaColumn::SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - type_ = from.type_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType.SchemaColumn) -} - -void SchemaType_SchemaColumn::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; -} - -SchemaType_SchemaColumn::~SchemaType_SchemaColumn() { - // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType.SchemaColumn) - SharedDtor(); -} - -void SchemaType_SchemaColumn::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void SchemaType_SchemaColumn::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SchemaType_SchemaColumn& SchemaType_SchemaColumn::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SchemaType_SchemaColumn_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void SchemaType_SchemaColumn::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType.SchemaColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SchemaType_SchemaColumn::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.SchemaType.SchemaColumn.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_type(static_cast<::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SchemaType_SchemaColumn::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.core.SchemaType.SchemaColumn) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.SchemaType.SchemaColumn.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_type(static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(value)); - } 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.core.SchemaType.SchemaColumn) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType.SchemaColumn) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SchemaType_SchemaColumn::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType.SchemaColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SchemaType.SchemaColumn.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - if (this->type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType.SchemaColumn) -} - -::google::protobuf::uint8* SchemaType_SchemaColumn::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType.SchemaColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SchemaType.SchemaColumn.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - if (this->type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), 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.core.SchemaType.SchemaColumn) - return target; -} - -size_t SchemaType_SchemaColumn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType.SchemaColumn) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - if (this->type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SchemaType_SchemaColumn::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) - GOOGLE_DCHECK_NE(&from, this); - const SchemaType_SchemaColumn* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType.SchemaColumn) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType.SchemaColumn) - MergeFrom(*source); - } -} - -void SchemaType_SchemaColumn::MergeFrom(const SchemaType_SchemaColumn& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType.SchemaColumn) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.type() != 0) { - set_type(from.type()); - } -} - -void SchemaType_SchemaColumn::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SchemaType_SchemaColumn::CopyFrom(const SchemaType_SchemaColumn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType.SchemaColumn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SchemaType_SchemaColumn::IsInitialized() const { - return true; -} - -void SchemaType_SchemaColumn::Swap(SchemaType_SchemaColumn* other) { - if (other == this) return; - InternalSwap(other); -} -void SchemaType_SchemaColumn::InternalSwap(SchemaType_SchemaColumn* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::google::protobuf::Metadata SchemaType_SchemaColumn::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SchemaType::InitAsDefaultInstance() { -} -class SchemaType::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SchemaType::kColumnsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SchemaType::SchemaType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SchemaType) -} -SchemaType::SchemaType(const SchemaType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - columns_(from.columns_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SchemaType) -} - -void SchemaType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); -} - -SchemaType::~SchemaType() { - // @@protoc_insertion_point(destructor:flyteidl.core.SchemaType) - SharedDtor(); -} - -void SchemaType::SharedDtor() { -} - -void SchemaType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SchemaType& SchemaType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SchemaType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void SchemaType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SchemaType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - columns_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SchemaType::_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) { - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SchemaType_SchemaColumn::_InternalParse; - object = msg->add_columns(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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 SchemaType::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.core.SchemaType) - 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)) { - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_columns())); - } 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.core.SchemaType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SchemaType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SchemaType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SchemaType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - for (unsigned int i = 0, - n = static_cast(this->columns_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->columns(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.SchemaType) -} - -::google::protobuf::uint8* SchemaType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SchemaType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - for (unsigned int i = 0, - n = static_cast(this->columns_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->columns(static_cast(i)), 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.core.SchemaType) - return target; -} - -size_t SchemaType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SchemaType) - 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; - - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - { - unsigned int count = static_cast(this->columns_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->columns(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SchemaType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SchemaType) - GOOGLE_DCHECK_NE(&from, this); - const SchemaType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SchemaType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SchemaType) - MergeFrom(*source); - } -} - -void SchemaType::MergeFrom(const SchemaType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SchemaType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - columns_.MergeFrom(from.columns_); -} - -void SchemaType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SchemaType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SchemaType::CopyFrom(const SchemaType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SchemaType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SchemaType::IsInitialized() const { - return true; -} - -void SchemaType::Swap(SchemaType* other) { - if (other == this) return; - InternalSwap(other); -} -void SchemaType::InternalSwap(SchemaType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_)); -} - -::google::protobuf::Metadata SchemaType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StructuredDatasetType_DatasetColumn::InitAsDefaultInstance() { - ::flyteidl::core::_StructuredDatasetType_DatasetColumn_default_instance_._instance.get_mutable()->literal_type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); -} -class StructuredDatasetType_DatasetColumn::HasBitSetters { - public: - static const ::flyteidl::core::LiteralType& literal_type(const StructuredDatasetType_DatasetColumn* msg); -}; - -const ::flyteidl::core::LiteralType& -StructuredDatasetType_DatasetColumn::HasBitSetters::literal_type(const StructuredDatasetType_DatasetColumn* msg) { - return *msg->literal_type_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StructuredDatasetType_DatasetColumn::kNameFieldNumber; -const int StructuredDatasetType_DatasetColumn::kLiteralTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StructuredDatasetType_DatasetColumn::StructuredDatasetType_DatasetColumn() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetType.DatasetColumn) -} -StructuredDatasetType_DatasetColumn::StructuredDatasetType_DatasetColumn(const StructuredDatasetType_DatasetColumn& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_literal_type()) { - literal_type_ = new ::flyteidl::core::LiteralType(*from.literal_type_); - } else { - literal_type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetType.DatasetColumn) -} - -void StructuredDatasetType_DatasetColumn::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - literal_type_ = nullptr; -} - -StructuredDatasetType_DatasetColumn::~StructuredDatasetType_DatasetColumn() { - // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetType.DatasetColumn) - SharedDtor(); -} - -void StructuredDatasetType_DatasetColumn::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete literal_type_; -} - -void StructuredDatasetType_DatasetColumn::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StructuredDatasetType_DatasetColumn& StructuredDatasetType_DatasetColumn::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void StructuredDatasetType_DatasetColumn::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && literal_type_ != nullptr) { - delete literal_type_; - } - literal_type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StructuredDatasetType_DatasetColumn::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.DatasetColumn.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.LiteralType literal_type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_literal_type(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StructuredDatasetType_DatasetColumn::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.core.StructuredDatasetType.DatasetColumn) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.StructuredDatasetType.DatasetColumn.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType literal_type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_literal_type())); - } 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.core.StructuredDatasetType.DatasetColumn) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetType.DatasetColumn) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StructuredDatasetType_DatasetColumn::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.DatasetColumn.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .flyteidl.core.LiteralType literal_type = 2; - if (this->has_literal_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::literal_type(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetType.DatasetColumn) -} - -::google::protobuf::uint8* StructuredDatasetType_DatasetColumn::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.DatasetColumn.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .flyteidl.core.LiteralType literal_type = 2; - if (this->has_literal_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::literal_type(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.core.StructuredDatasetType.DatasetColumn) - return target; -} - -size_t StructuredDatasetType_DatasetColumn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.core.LiteralType literal_type = 2; - if (this->has_literal_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *literal_type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StructuredDatasetType_DatasetColumn::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - GOOGLE_DCHECK_NE(&from, this); - const StructuredDatasetType_DatasetColumn* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetType.DatasetColumn) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetType.DatasetColumn) - MergeFrom(*source); - } -} - -void StructuredDatasetType_DatasetColumn::MergeFrom(const StructuredDatasetType_DatasetColumn& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_literal_type()) { - mutable_literal_type()->::flyteidl::core::LiteralType::MergeFrom(from.literal_type()); - } -} - -void StructuredDatasetType_DatasetColumn::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StructuredDatasetType_DatasetColumn::CopyFrom(const StructuredDatasetType_DatasetColumn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetType.DatasetColumn) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StructuredDatasetType_DatasetColumn::IsInitialized() const { - return true; -} - -void StructuredDatasetType_DatasetColumn::Swap(StructuredDatasetType_DatasetColumn* other) { - if (other == this) return; - InternalSwap(other); -} -void StructuredDatasetType_DatasetColumn::InternalSwap(StructuredDatasetType_DatasetColumn* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(literal_type_, other->literal_type_); -} - -::google::protobuf::Metadata StructuredDatasetType_DatasetColumn::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void StructuredDatasetType::InitAsDefaultInstance() { -} -class StructuredDatasetType::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int StructuredDatasetType::kColumnsFieldNumber; -const int StructuredDatasetType::kFormatFieldNumber; -const int StructuredDatasetType::kExternalSchemaTypeFieldNumber; -const int StructuredDatasetType::kExternalSchemaBytesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -StructuredDatasetType::StructuredDatasetType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.StructuredDatasetType) -} -StructuredDatasetType::StructuredDatasetType(const StructuredDatasetType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - columns_(from.columns_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.format().size() > 0) { - format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); - } - external_schema_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.external_schema_type().size() > 0) { - external_schema_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_type_); - } - external_schema_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.external_schema_bytes().size() > 0) { - external_schema_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_bytes_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.StructuredDatasetType) -} - -void StructuredDatasetType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_bytes_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -StructuredDatasetType::~StructuredDatasetType() { - // @@protoc_insertion_point(destructor:flyteidl.core.StructuredDatasetType) - SharedDtor(); -} - -void StructuredDatasetType::SharedDtor() { - format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_bytes_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void StructuredDatasetType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const StructuredDatasetType& StructuredDatasetType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void StructuredDatasetType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.StructuredDatasetType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - columns_.Clear(); - format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - external_schema_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* StructuredDatasetType::_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) { - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::StructuredDatasetType_DatasetColumn::_InternalParse; - object = msg->add_columns(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string format = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.format"); - object = msg->mutable_format(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string external_schema_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.StructuredDatasetType.external_schema_type"); - object = msg->mutable_external_schema_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bytes external_schema_bytes = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_external_schema_bytes(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool StructuredDatasetType::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.core.StructuredDatasetType) - 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)) { - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_columns())); - } else { - goto handle_unusual; - } - break; - } - - // string format = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_format())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.StructuredDatasetType.format")); - } else { - goto handle_unusual; - } - break; - } - - // string external_schema_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_external_schema_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_schema_type().data(), static_cast(this->external_schema_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.StructuredDatasetType.external_schema_type")); - } else { - goto handle_unusual; - } - break; - } - - // bytes external_schema_bytes = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_external_schema_bytes())); - } 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.core.StructuredDatasetType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.StructuredDatasetType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void StructuredDatasetType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.StructuredDatasetType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - for (unsigned int i = 0, - n = static_cast(this->columns_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->columns(static_cast(i)), - output); - } - - // string format = 2; - if (this->format().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.format"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->format(), output); - } - - // string external_schema_type = 3; - if (this->external_schema_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_schema_type().data(), static_cast(this->external_schema_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.external_schema_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->external_schema_type(), output); - } - - // bytes external_schema_bytes = 4; - if (this->external_schema_bytes().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 4, this->external_schema_bytes(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.StructuredDatasetType) -} - -::google::protobuf::uint8* StructuredDatasetType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.StructuredDatasetType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - for (unsigned int i = 0, - n = static_cast(this->columns_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->columns(static_cast(i)), target); - } - - // string format = 2; - if (this->format().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.format"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->format(), target); - } - - // string external_schema_type = 3; - if (this->external_schema_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_schema_type().data(), static_cast(this->external_schema_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.StructuredDatasetType.external_schema_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->external_schema_type(), target); - } - - // bytes external_schema_bytes = 4; - if (this->external_schema_bytes().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 4, this->external_schema_bytes(), 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.core.StructuredDatasetType) - return target; -} - -size_t StructuredDatasetType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.StructuredDatasetType) - 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; - - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - { - unsigned int count = static_cast(this->columns_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->columns(static_cast(i))); - } - } - - // string format = 2; - if (this->format().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->format()); - } - - // string external_schema_type = 3; - if (this->external_schema_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->external_schema_type()); - } - - // bytes external_schema_bytes = 4; - if (this->external_schema_bytes().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->external_schema_bytes()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void StructuredDatasetType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.StructuredDatasetType) - GOOGLE_DCHECK_NE(&from, this); - const StructuredDatasetType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.StructuredDatasetType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.StructuredDatasetType) - MergeFrom(*source); - } -} - -void StructuredDatasetType::MergeFrom(const StructuredDatasetType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.StructuredDatasetType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - columns_.MergeFrom(from.columns_); - if (from.format().size() > 0) { - - format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); - } - if (from.external_schema_type().size() > 0) { - - external_schema_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_type_); - } - if (from.external_schema_bytes().size() > 0) { - - external_schema_bytes_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_schema_bytes_); - } -} - -void StructuredDatasetType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.StructuredDatasetType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void StructuredDatasetType::CopyFrom(const StructuredDatasetType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.StructuredDatasetType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool StructuredDatasetType::IsInitialized() const { - return true; -} - -void StructuredDatasetType::Swap(StructuredDatasetType* other) { - if (other == this) return; - InternalSwap(other); -} -void StructuredDatasetType::InternalSwap(StructuredDatasetType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&columns_)->InternalSwap(CastToBase(&other->columns_)); - format_.Swap(&other->format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - external_schema_type_.Swap(&other->external_schema_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - external_schema_bytes_.Swap(&other->external_schema_bytes_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata StructuredDatasetType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BlobType::InitAsDefaultInstance() { -} -class BlobType::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BlobType::kFormatFieldNumber; -const int BlobType::kDimensionalityFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BlobType::BlobType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BlobType) -} -BlobType::BlobType(const BlobType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.format().size() > 0) { - format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); - } - dimensionality_ = from.dimensionality_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BlobType) -} - -void BlobType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); - format_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dimensionality_ = 0; -} - -BlobType::~BlobType() { - // @@protoc_insertion_point(destructor:flyteidl.core.BlobType) - SharedDtor(); -} - -void BlobType::SharedDtor() { - format_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void BlobType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BlobType& BlobType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_BlobType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void BlobType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BlobType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dimensionality_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BlobType::_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) { - // string format = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.BlobType.format"); - object = msg->mutable_format(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_dimensionality(static_cast<::flyteidl::core::BlobType_BlobDimensionality>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool BlobType::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.core.BlobType) - 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)) { - // string format = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_format())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.BlobType.format")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_dimensionality(static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(value)); - } 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.core.BlobType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BlobType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BlobType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BlobType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string format = 1; - if (this->format().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.BlobType.format"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->format(), output); - } - - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - if (this->dimensionality() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->dimensionality(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BlobType) -} - -::google::protobuf::uint8* BlobType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BlobType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string format = 1; - if (this->format().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->format().data(), static_cast(this->format().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.BlobType.format"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->format(), target); - } - - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - if (this->dimensionality() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->dimensionality(), 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.core.BlobType) - return target; -} - -size_t BlobType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BlobType) - 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; - - // string format = 1; - if (this->format().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->format()); - } - - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - if (this->dimensionality() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->dimensionality()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BlobType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BlobType) - GOOGLE_DCHECK_NE(&from, this); - const BlobType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BlobType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BlobType) - MergeFrom(*source); - } -} - -void BlobType::MergeFrom(const BlobType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BlobType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.format().size() > 0) { - - format_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.format_); - } - if (from.dimensionality() != 0) { - set_dimensionality(from.dimensionality()); - } -} - -void BlobType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BlobType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BlobType::CopyFrom(const BlobType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BlobType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BlobType::IsInitialized() const { - return true; -} - -void BlobType::Swap(BlobType* other) { - if (other == this) return; - InternalSwap(other); -} -void BlobType::InternalSwap(BlobType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - format_.Swap(&other->format_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dimensionality_, other->dimensionality_); -} - -::google::protobuf::Metadata BlobType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void EnumType::InitAsDefaultInstance() { -} -class EnumType::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EnumType::kValuesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EnumType::EnumType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.EnumType) -} -EnumType::EnumType(const EnumType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - values_(from.values_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.EnumType) -} - -void EnumType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); -} - -EnumType::~EnumType() { - // @@protoc_insertion_point(destructor:flyteidl.core.EnumType) - SharedDtor(); -} - -void EnumType::SharedDtor() { -} - -void EnumType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EnumType& EnumType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EnumType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void EnumType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.EnumType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - values_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EnumType::_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) { - // repeated string values = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.EnumType.values"); - object = msg->add_values(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EnumType::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.core.EnumType) - 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)) { - // repeated string values = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_values())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(this->values_size() - 1).data(), - static_cast(this->values(this->values_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.EnumType.values")); - } 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.core.EnumType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.EnumType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EnumType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.EnumType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string values = 1; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.EnumType.values"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->values(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.EnumType) -} - -::google::protobuf::uint8* EnumType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.EnumType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string values = 1; - for (int i = 0, n = this->values_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->values(i).data(), static_cast(this->values(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.EnumType.values"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->values(i), 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.core.EnumType) - return target; -} - -size_t EnumType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.EnumType) - 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; - - // repeated string values = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->values_size()); - for (int i = 0, n = this->values_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->values(i)); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EnumType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.EnumType) - GOOGLE_DCHECK_NE(&from, this); - const EnumType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.EnumType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.EnumType) - MergeFrom(*source); - } -} - -void EnumType::MergeFrom(const EnumType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.EnumType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - values_.MergeFrom(from.values_); -} - -void EnumType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.EnumType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EnumType::CopyFrom(const EnumType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.EnumType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EnumType::IsInitialized() const { - return true; -} - -void EnumType::Swap(EnumType* other) { - if (other == this) return; - InternalSwap(other); -} -void EnumType::InternalSwap(EnumType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - values_.InternalSwap(CastToBase(&other->values_)); -} - -::google::protobuf::Metadata EnumType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UnionType::InitAsDefaultInstance() { -} -class UnionType::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UnionType::kVariantsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UnionType::UnionType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.UnionType) -} -UnionType::UnionType(const UnionType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - variants_(from.variants_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.core.UnionType) -} - -void UnionType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); -} - -UnionType::~UnionType() { - // @@protoc_insertion_point(destructor:flyteidl.core.UnionType) - SharedDtor(); -} - -void UnionType::SharedDtor() { -} - -void UnionType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UnionType& UnionType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void UnionType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.UnionType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - variants_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UnionType::_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) { - // repeated .flyteidl.core.LiteralType variants = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; - object = msg->add_variants(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 UnionType::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.core.UnionType) - 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)) { - // repeated .flyteidl.core.LiteralType variants = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_variants())); - } 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.core.UnionType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.UnionType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UnionType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.UnionType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.LiteralType variants = 1; - for (unsigned int i = 0, - n = static_cast(this->variants_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->variants(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.UnionType) -} - -::google::protobuf::uint8* UnionType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.UnionType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.core.LiteralType variants = 1; - for (unsigned int i = 0, - n = static_cast(this->variants_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->variants(static_cast(i)), 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.core.UnionType) - return target; -} - -size_t UnionType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.UnionType) - 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; - - // repeated .flyteidl.core.LiteralType variants = 1; - { - unsigned int count = static_cast(this->variants_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->variants(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UnionType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.UnionType) - GOOGLE_DCHECK_NE(&from, this); - const UnionType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.UnionType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.UnionType) - MergeFrom(*source); - } -} - -void UnionType::MergeFrom(const UnionType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.UnionType) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - variants_.MergeFrom(from.variants_); -} - -void UnionType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.UnionType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UnionType::CopyFrom(const UnionType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.UnionType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UnionType::IsInitialized() const { - return true; -} - -void UnionType::Swap(UnionType* other) { - if (other == this) return; - InternalSwap(other); -} -void UnionType::InternalSwap(UnionType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&variants_)->InternalSwap(CastToBase(&other->variants_)); -} - -::google::protobuf::Metadata UnionType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -TypeStructure_DataclassTypeEntry_DoNotUse::TypeStructure_DataclassTypeEntry_DoNotUse() {} -TypeStructure_DataclassTypeEntry_DoNotUse::TypeStructure_DataclassTypeEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void TypeStructure_DataclassTypeEntry_DoNotUse::MergeFrom(const TypeStructure_DataclassTypeEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata TypeStructure_DataclassTypeEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[7]; -} -void TypeStructure_DataclassTypeEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TypeStructure_DataclassTypeEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - TypeStructure_DataclassTypeEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TypeStructure.DataclassTypeEntry.key")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void TypeStructure::InitAsDefaultInstance() { -} -class TypeStructure::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TypeStructure::kTagFieldNumber; -const int TypeStructure::kDataclassTypeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TypeStructure::TypeStructure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TypeStructure) -} -TypeStructure::TypeStructure(const TypeStructure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - dataclass_type_.MergeFrom(from.dataclass_type_); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.tag().size() > 0) { - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypeStructure) -} - -void TypeStructure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - tag_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TypeStructure::~TypeStructure() { - // @@protoc_insertion_point(destructor:flyteidl.core.TypeStructure) - SharedDtor(); -} - -void TypeStructure::SharedDtor() { - tag_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TypeStructure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TypeStructure& TypeStructure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void TypeStructure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypeStructure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dataclass_type_.Clear(); - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TypeStructure::_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) { - // string tag = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.TypeStructure.tag"); - object = msg->mutable_tag(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map dataclass_type = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->dataclass_type_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TypeStructure::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.core.TypeStructure) - 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)) { - // string tag = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TypeStructure.tag")); - } else { - goto handle_unusual; - } - break; - } - - // map dataclass_type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - TypeStructure_DataclassTypeEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - TypeStructure_DataclassTypeEntry_DoNotUse, - ::std::string, ::flyteidl::core::LiteralType, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 >, - ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType > > parser(&dataclass_type_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.TypeStructure.DataclassTypeEntry.key")); - } 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.core.TypeStructure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TypeStructure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TypeStructure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TypeStructure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag = 1; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TypeStructure.tag"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->tag(), output); - } - - // map dataclass_type = 2; - if (!this->dataclass_type().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TypeStructure.DataclassTypeEntry.key"); - } - }; - - if (output->IsSerializationDeterministic() && - this->dataclass_type().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->dataclass_type().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_iterator - it = this->dataclass_type().begin(); - it != this->dataclass_type().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(dataclass_type_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_iterator - it = this->dataclass_type().begin(); - it != this->dataclass_type().end(); ++it) { - entry.reset(dataclass_type_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(2, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TypeStructure) -} - -::google::protobuf::uint8* TypeStructure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypeStructure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag = 1; - if (this->tag().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag().data(), static_cast(this->tag().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TypeStructure.tag"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->tag(), target); - } - - // map dataclass_type = 2; - if (!this->dataclass_type().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.TypeStructure.DataclassTypeEntry.key"); - } - }; - - if (false && - this->dataclass_type().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->dataclass_type().size()]); - typedef ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_iterator - it = this->dataclass_type().begin(); - it != this->dataclass_type().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(dataclass_type_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_iterator - it = this->dataclass_type().begin(); - it != this->dataclass_type().end(); ++it) { - entry.reset(dataclass_type_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(2, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.TypeStructure) - return target; -} - -size_t TypeStructure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypeStructure) - 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; - - // map dataclass_type = 2; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->dataclass_type_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >::const_iterator - it = this->dataclass_type().begin(); - it != this->dataclass_type().end(); ++it) { - entry.reset(dataclass_type_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string tag = 1; - if (this->tag().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TypeStructure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypeStructure) - GOOGLE_DCHECK_NE(&from, this); - const TypeStructure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypeStructure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypeStructure) - MergeFrom(*source); - } -} - -void TypeStructure::MergeFrom(const TypeStructure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypeStructure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - dataclass_type_.MergeFrom(from.dataclass_type_); - if (from.tag().size() > 0) { - - tag_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_); - } -} - -void TypeStructure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypeStructure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TypeStructure::CopyFrom(const TypeStructure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypeStructure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TypeStructure::IsInitialized() const { - return true; -} - -void TypeStructure::Swap(TypeStructure* other) { - if (other == this) return; - InternalSwap(other); -} -void TypeStructure::InternalSwap(TypeStructure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - dataclass_type_.Swap(&other->dataclass_type_); - tag_.Swap(&other->tag_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TypeStructure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TypeAnnotation::InitAsDefaultInstance() { - ::flyteidl::core::_TypeAnnotation_default_instance_._instance.get_mutable()->annotations_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); -} -class TypeAnnotation::HasBitSetters { - public: - static const ::google::protobuf::Struct& annotations(const TypeAnnotation* msg); -}; - -const ::google::protobuf::Struct& -TypeAnnotation::HasBitSetters::annotations(const TypeAnnotation* msg) { - return *msg->annotations_; -} -void TypeAnnotation::clear_annotations() { - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TypeAnnotation::kAnnotationsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TypeAnnotation::TypeAnnotation() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TypeAnnotation) -} -TypeAnnotation::TypeAnnotation(const TypeAnnotation& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_annotations()) { - annotations_ = new ::google::protobuf::Struct(*from.annotations_); - } else { - annotations_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TypeAnnotation) -} - -void TypeAnnotation::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); - annotations_ = nullptr; -} - -TypeAnnotation::~TypeAnnotation() { - // @@protoc_insertion_point(destructor:flyteidl.core.TypeAnnotation) - SharedDtor(); -} - -void TypeAnnotation::SharedDtor() { - if (this != internal_default_instance()) delete annotations_; -} - -void TypeAnnotation::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TypeAnnotation& TypeAnnotation::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TypeAnnotation_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void TypeAnnotation::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TypeAnnotation) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && annotations_ != nullptr) { - delete annotations_; - } - annotations_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TypeAnnotation::_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) { - // .google.protobuf.Struct annotations = 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 = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_annotations(); - 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 TypeAnnotation::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.core.TypeAnnotation) - 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)) { - // .google.protobuf.Struct annotations = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_annotations())); - } 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.core.TypeAnnotation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TypeAnnotation) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TypeAnnotation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TypeAnnotation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Struct annotations = 1; - if (this->has_annotations()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::annotations(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TypeAnnotation) -} - -::google::protobuf::uint8* TypeAnnotation::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TypeAnnotation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Struct annotations = 1; - if (this->has_annotations()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::annotations(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.core.TypeAnnotation) - return target; -} - -size_t TypeAnnotation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TypeAnnotation) - 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; - - // .google.protobuf.Struct annotations = 1; - if (this->has_annotations()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *annotations_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TypeAnnotation::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TypeAnnotation) - GOOGLE_DCHECK_NE(&from, this); - const TypeAnnotation* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TypeAnnotation) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TypeAnnotation) - MergeFrom(*source); - } -} - -void TypeAnnotation::MergeFrom(const TypeAnnotation& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TypeAnnotation) - 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_annotations()) { - mutable_annotations()->::google::protobuf::Struct::MergeFrom(from.annotations()); - } -} - -void TypeAnnotation::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TypeAnnotation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TypeAnnotation::CopyFrom(const TypeAnnotation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TypeAnnotation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TypeAnnotation::IsInitialized() const { - return true; -} - -void TypeAnnotation::Swap(TypeAnnotation* other) { - if (other == this) return; - InternalSwap(other); -} -void TypeAnnotation::InternalSwap(TypeAnnotation* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(annotations_, other->annotations_); -} - -::google::protobuf::Metadata TypeAnnotation::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void LiteralType::InitAsDefaultInstance() { - ::flyteidl::core::_LiteralType_default_instance_.simple_ = 0; - ::flyteidl::core::_LiteralType_default_instance_.schema_ = const_cast< ::flyteidl::core::SchemaType*>( - ::flyteidl::core::SchemaType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.collection_type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.map_value_type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.blob_ = const_cast< ::flyteidl::core::BlobType*>( - ::flyteidl::core::BlobType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.enum_type_ = const_cast< ::flyteidl::core::EnumType*>( - ::flyteidl::core::EnumType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.structured_dataset_type_ = const_cast< ::flyteidl::core::StructuredDatasetType*>( - ::flyteidl::core::StructuredDatasetType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_.union_type_ = const_cast< ::flyteidl::core::UnionType*>( - ::flyteidl::core::UnionType::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->annotation_ = const_cast< ::flyteidl::core::TypeAnnotation*>( - ::flyteidl::core::TypeAnnotation::internal_default_instance()); - ::flyteidl::core::_LiteralType_default_instance_._instance.get_mutable()->structure_ = const_cast< ::flyteidl::core::TypeStructure*>( - ::flyteidl::core::TypeStructure::internal_default_instance()); -} -class LiteralType::HasBitSetters { - public: - static const ::flyteidl::core::SchemaType& schema(const LiteralType* msg); - static const ::flyteidl::core::LiteralType& collection_type(const LiteralType* msg); - static const ::flyteidl::core::LiteralType& map_value_type(const LiteralType* msg); - static const ::flyteidl::core::BlobType& blob(const LiteralType* msg); - static const ::flyteidl::core::EnumType& enum_type(const LiteralType* msg); - static const ::flyteidl::core::StructuredDatasetType& structured_dataset_type(const LiteralType* msg); - static const ::flyteidl::core::UnionType& union_type(const LiteralType* msg); - static const ::google::protobuf::Struct& metadata(const LiteralType* msg); - static const ::flyteidl::core::TypeAnnotation& annotation(const LiteralType* msg); - static const ::flyteidl::core::TypeStructure& structure(const LiteralType* msg); -}; - -const ::flyteidl::core::SchemaType& -LiteralType::HasBitSetters::schema(const LiteralType* msg) { - return *msg->type_.schema_; -} -const ::flyteidl::core::LiteralType& -LiteralType::HasBitSetters::collection_type(const LiteralType* msg) { - return *msg->type_.collection_type_; -} -const ::flyteidl::core::LiteralType& -LiteralType::HasBitSetters::map_value_type(const LiteralType* msg) { - return *msg->type_.map_value_type_; -} -const ::flyteidl::core::BlobType& -LiteralType::HasBitSetters::blob(const LiteralType* msg) { - return *msg->type_.blob_; -} -const ::flyteidl::core::EnumType& -LiteralType::HasBitSetters::enum_type(const LiteralType* msg) { - return *msg->type_.enum_type_; -} -const ::flyteidl::core::StructuredDatasetType& -LiteralType::HasBitSetters::structured_dataset_type(const LiteralType* msg) { - return *msg->type_.structured_dataset_type_; -} -const ::flyteidl::core::UnionType& -LiteralType::HasBitSetters::union_type(const LiteralType* msg) { - return *msg->type_.union_type_; -} -const ::google::protobuf::Struct& -LiteralType::HasBitSetters::metadata(const LiteralType* msg) { - return *msg->metadata_; -} -const ::flyteidl::core::TypeAnnotation& -LiteralType::HasBitSetters::annotation(const LiteralType* msg) { - return *msg->annotation_; -} -const ::flyteidl::core::TypeStructure& -LiteralType::HasBitSetters::structure(const LiteralType* msg) { - return *msg->structure_; -} -void LiteralType::set_allocated_schema(::flyteidl::core::SchemaType* schema) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (schema) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - schema = ::google::protobuf::internal::GetOwnedMessage( - message_arena, schema, submessage_arena); - } - set_has_schema(); - type_.schema_ = schema; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.schema) -} -void LiteralType::set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (collection_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - collection_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, collection_type, submessage_arena); - } - set_has_collection_type(); - type_.collection_type_ = collection_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.collection_type) -} -void LiteralType::set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (map_value_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - map_value_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, map_value_type, submessage_arena); - } - set_has_map_value_type(); - type_.map_value_type_ = map_value_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.map_value_type) -} -void LiteralType::set_allocated_blob(::flyteidl::core::BlobType* blob) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (blob) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - blob = ::google::protobuf::internal::GetOwnedMessage( - message_arena, blob, submessage_arena); - } - set_has_blob(); - type_.blob_ = blob; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.blob) -} -void LiteralType::set_allocated_enum_type(::flyteidl::core::EnumType* enum_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (enum_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - enum_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, enum_type, submessage_arena); - } - set_has_enum_type(); - type_.enum_type_ = enum_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.enum_type) -} -void LiteralType::set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (structured_dataset_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - structured_dataset_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, structured_dataset_type, submessage_arena); - } - set_has_structured_dataset_type(); - type_.structured_dataset_type_ = structured_dataset_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.structured_dataset_type) -} -void LiteralType::set_allocated_union_type(::flyteidl::core::UnionType* union_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_type(); - if (union_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - union_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, union_type, submessage_arena); - } - set_has_union_type(); - type_.union_type_ = union_type; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.union_type) -} -void LiteralType::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int LiteralType::kSimpleFieldNumber; -const int LiteralType::kSchemaFieldNumber; -const int LiteralType::kCollectionTypeFieldNumber; -const int LiteralType::kMapValueTypeFieldNumber; -const int LiteralType::kBlobFieldNumber; -const int LiteralType::kEnumTypeFieldNumber; -const int LiteralType::kStructuredDatasetTypeFieldNumber; -const int LiteralType::kUnionTypeFieldNumber; -const int LiteralType::kMetadataFieldNumber; -const int LiteralType::kAnnotationFieldNumber; -const int LiteralType::kStructureFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -LiteralType::LiteralType() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.LiteralType) -} -LiteralType::LiteralType(const LiteralType& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_metadata()) { - metadata_ = new ::google::protobuf::Struct(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_annotation()) { - annotation_ = new ::flyteidl::core::TypeAnnotation(*from.annotation_); - } else { - annotation_ = nullptr; - } - if (from.has_structure()) { - structure_ = new ::flyteidl::core::TypeStructure(*from.structure_); - } else { - structure_ = nullptr; - } - clear_has_type(); - switch (from.type_case()) { - case kSimple: { - set_simple(from.simple()); - break; - } - case kSchema: { - mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); - break; - } - case kCollectionType: { - mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); - break; - } - case kMapValueType: { - mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); - break; - } - case kBlob: { - mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); - break; - } - case kEnumType: { - mutable_enum_type()->::flyteidl::core::EnumType::MergeFrom(from.enum_type()); - break; - } - case kStructuredDatasetType: { - mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); - break; - } - case kUnionType: { - mutable_union_type()->::flyteidl::core::UnionType::MergeFrom(from.union_type()); - break; - } - case TYPE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.LiteralType) -} - -void LiteralType::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - ::memset(&metadata_, 0, static_cast( - reinterpret_cast(&structure_) - - reinterpret_cast(&metadata_)) + sizeof(structure_)); - clear_has_type(); -} - -LiteralType::~LiteralType() { - // @@protoc_insertion_point(destructor:flyteidl.core.LiteralType) - SharedDtor(); -} - -void LiteralType::SharedDtor() { - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete annotation_; - if (this != internal_default_instance()) delete structure_; - if (has_type()) { - clear_type(); - } -} - -void LiteralType::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const LiteralType& LiteralType::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void LiteralType::clear_type() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.LiteralType) - switch (type_case()) { - case kSimple: { - // No need to clear - break; - } - case kSchema: { - delete type_.schema_; - break; - } - case kCollectionType: { - delete type_.collection_type_; - break; - } - case kMapValueType: { - delete type_.map_value_type_; - break; - } - case kBlob: { - delete type_.blob_; - break; - } - case kEnumType: { - delete type_.enum_type_; - break; - } - case kStructuredDatasetType: { - delete type_.structured_dataset_type_; - break; - } - case kUnionType: { - delete type_.union_type_; - break; - } - case TYPE_NOT_SET: { - break; - } - } - _oneof_case_[0] = TYPE_NOT_SET; -} - - -void LiteralType::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.LiteralType) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && annotation_ != nullptr) { - delete annotation_; - } - annotation_ = nullptr; - if (GetArenaNoVirtual() == nullptr && structure_ != nullptr) { - delete structure_; - } - structure_ = nullptr; - clear_type(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* LiteralType::_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.SimpleType simple = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_simple(static_cast<::flyteidl::core::SimpleType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.SchemaType schema = 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::core::SchemaType::_InternalParse; - object = msg->mutable_schema(); - 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.core.LiteralType collection_type = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; - object = msg->mutable_collection_type(); - 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.core.LiteralType map_value_type = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralType::_InternalParse; - object = msg->mutable_map_value_type(); - 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.core.BlobType blob = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::BlobType::_InternalParse; - object = msg->mutable_blob(); - 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; - } - // .google.protobuf.Struct metadata = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_metadata(); - 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.core.EnumType enum_type = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::EnumType::_InternalParse; - object = msg->mutable_enum_type(); - 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.core.StructuredDatasetType structured_dataset_type = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::StructuredDatasetType::_InternalParse; - object = msg->mutable_structured_dataset_type(); - 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.core.TypeAnnotation annotation = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypeAnnotation::_InternalParse; - object = msg->mutable_annotation(); - 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.core.UnionType union_type = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::UnionType::_InternalParse; - object = msg->mutable_union_type(); - 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.core.TypeStructure structure = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypeStructure::_InternalParse; - object = msg->mutable_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 LiteralType::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.core.LiteralType) - 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.SimpleType simple = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_simple(static_cast< ::flyteidl::core::SimpleType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SchemaType schema = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_schema())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType collection_type = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_collection_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType map_value_type = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_map_value_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BlobType blob = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_blob())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct metadata = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.EnumType enum_type = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_enum_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_structured_dataset_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypeAnnotation annotation = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_annotation())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.UnionType union_type = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_union_type())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypeStructure structure = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_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.core.LiteralType) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.LiteralType) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void LiteralType::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.LiteralType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SimpleType simple = 1; - if (has_simple()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->simple(), output); - } - - // .flyteidl.core.SchemaType schema = 2; - if (has_schema()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::schema(this), output); - } - - // .flyteidl.core.LiteralType collection_type = 3; - if (has_collection_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::collection_type(this), output); - } - - // .flyteidl.core.LiteralType map_value_type = 4; - if (has_map_value_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::map_value_type(this), output); - } - - // .flyteidl.core.BlobType blob = 5; - if (has_blob()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::blob(this), output); - } - - // .google.protobuf.Struct metadata = 6; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::metadata(this), output); - } - - // .flyteidl.core.EnumType enum_type = 7; - if (has_enum_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::enum_type(this), output); - } - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - if (has_structured_dataset_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::structured_dataset_type(this), output); - } - - // .flyteidl.core.TypeAnnotation annotation = 9; - if (this->has_annotation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::annotation(this), output); - } - - // .flyteidl.core.UnionType union_type = 10; - if (has_union_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::union_type(this), output); - } - - // .flyteidl.core.TypeStructure structure = 11; - if (this->has_structure()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, HasBitSetters::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.core.LiteralType) -} - -::google::protobuf::uint8* LiteralType::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.LiteralType) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.SimpleType simple = 1; - if (has_simple()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->simple(), target); - } - - // .flyteidl.core.SchemaType schema = 2; - if (has_schema()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::schema(this), target); - } - - // .flyteidl.core.LiteralType collection_type = 3; - if (has_collection_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::collection_type(this), target); - } - - // .flyteidl.core.LiteralType map_value_type = 4; - if (has_map_value_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::map_value_type(this), target); - } - - // .flyteidl.core.BlobType blob = 5; - if (has_blob()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::blob(this), target); - } - - // .google.protobuf.Struct metadata = 6; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::metadata(this), target); - } - - // .flyteidl.core.EnumType enum_type = 7; - if (has_enum_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::enum_type(this), target); - } - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - if (has_structured_dataset_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::structured_dataset_type(this), target); - } - - // .flyteidl.core.TypeAnnotation annotation = 9; - if (this->has_annotation()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::annotation(this), target); - } - - // .flyteidl.core.UnionType union_type = 10; - if (has_union_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::union_type(this), target); - } - - // .flyteidl.core.TypeStructure structure = 11; - if (this->has_structure()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, HasBitSetters::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.core.LiteralType) - return target; -} - -size_t LiteralType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.LiteralType) - 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; - - // .google.protobuf.Struct metadata = 6; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.TypeAnnotation annotation = 9; - if (this->has_annotation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *annotation_); - } - - // .flyteidl.core.TypeStructure structure = 11; - if (this->has_structure()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *structure_); - } - - switch (type_case()) { - // .flyteidl.core.SimpleType simple = 1; - case kSimple: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->simple()); - break; - } - // .flyteidl.core.SchemaType schema = 2; - case kSchema: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.schema_); - break; - } - // .flyteidl.core.LiteralType collection_type = 3; - case kCollectionType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.collection_type_); - break; - } - // .flyteidl.core.LiteralType map_value_type = 4; - case kMapValueType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.map_value_type_); - break; - } - // .flyteidl.core.BlobType blob = 5; - case kBlob: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.blob_); - break; - } - // .flyteidl.core.EnumType enum_type = 7; - case kEnumType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.enum_type_); - break; - } - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - case kStructuredDatasetType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.structured_dataset_type_); - break; - } - // .flyteidl.core.UnionType union_type = 10; - case kUnionType: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_.union_type_); - break; - } - case TYPE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void LiteralType::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.LiteralType) - GOOGLE_DCHECK_NE(&from, this); - const LiteralType* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.LiteralType) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.LiteralType) - MergeFrom(*source); - } -} - -void LiteralType::MergeFrom(const LiteralType& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.LiteralType) - 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_metadata()) { - mutable_metadata()->::google::protobuf::Struct::MergeFrom(from.metadata()); - } - if (from.has_annotation()) { - mutable_annotation()->::flyteidl::core::TypeAnnotation::MergeFrom(from.annotation()); - } - if (from.has_structure()) { - mutable_structure()->::flyteidl::core::TypeStructure::MergeFrom(from.structure()); - } - switch (from.type_case()) { - case kSimple: { - set_simple(from.simple()); - break; - } - case kSchema: { - mutable_schema()->::flyteidl::core::SchemaType::MergeFrom(from.schema()); - break; - } - case kCollectionType: { - mutable_collection_type()->::flyteidl::core::LiteralType::MergeFrom(from.collection_type()); - break; - } - case kMapValueType: { - mutable_map_value_type()->::flyteidl::core::LiteralType::MergeFrom(from.map_value_type()); - break; - } - case kBlob: { - mutable_blob()->::flyteidl::core::BlobType::MergeFrom(from.blob()); - break; - } - case kEnumType: { - mutable_enum_type()->::flyteidl::core::EnumType::MergeFrom(from.enum_type()); - break; - } - case kStructuredDatasetType: { - mutable_structured_dataset_type()->::flyteidl::core::StructuredDatasetType::MergeFrom(from.structured_dataset_type()); - break; - } - case kUnionType: { - mutable_union_type()->::flyteidl::core::UnionType::MergeFrom(from.union_type()); - break; - } - case TYPE_NOT_SET: { - break; - } - } -} - -void LiteralType::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.LiteralType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void LiteralType::CopyFrom(const LiteralType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.LiteralType) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool LiteralType::IsInitialized() const { - return true; -} - -void LiteralType::Swap(LiteralType* other) { - if (other == this) return; - InternalSwap(other); -} -void LiteralType::InternalSwap(LiteralType* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(metadata_, other->metadata_); - swap(annotation_, other->annotation_); - swap(structure_, other->structure_); - swap(type_, other->type_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata LiteralType::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void OutputReference::InitAsDefaultInstance() { -} -class OutputReference::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int OutputReference::kNodeIdFieldNumber; -const int OutputReference::kVarFieldNumber; -const int OutputReference::kAttrPathFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -OutputReference::OutputReference() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.OutputReference) -} -OutputReference::OutputReference(const OutputReference& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - attr_path_(from.attr_path_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.node_id().size() > 0) { - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.var().size() > 0) { - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.OutputReference) -} - -void OutputReference::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -OutputReference::~OutputReference() { - // @@protoc_insertion_point(destructor:flyteidl.core.OutputReference) - SharedDtor(); -} - -void OutputReference::SharedDtor() { - node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void OutputReference::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OutputReference& OutputReference::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_OutputReference_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void OutputReference::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.OutputReference) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - attr_path_.Clear(); - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* OutputReference::_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) { - // string node_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OutputReference.node_id"); - object = msg->mutable_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string var = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.OutputReference.var"); - object = msg->mutable_var(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::PromiseAttribute::_InternalParse; - object = msg->add_attr_path(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool OutputReference::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.core.OutputReference) - 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)) { - // string node_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OutputReference.node_id")); - } else { - goto handle_unusual; - } - break; - } - - // string var = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_var())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.OutputReference.var")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_attr_path())); - } 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.core.OutputReference) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.OutputReference) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void OutputReference::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.OutputReference) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OutputReference.node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->node_id(), output); - } - - // string var = 2; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OutputReference.var"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->var(), output); - } - - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - for (unsigned int i = 0, - n = static_cast(this->attr_path_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->attr_path(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.OutputReference) -} - -::google::protobuf::uint8* OutputReference::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.OutputReference) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OutputReference.node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->node_id(), target); - } - - // string var = 2; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.OutputReference.var"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->var(), target); - } - - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - for (unsigned int i = 0, - n = static_cast(this->attr_path_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->attr_path(static_cast(i)), 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.core.OutputReference) - return target; -} - -size_t OutputReference::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.OutputReference) - 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; - - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - { - unsigned int count = static_cast(this->attr_path_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->attr_path(static_cast(i))); - } - } - - // string node_id = 1; - if (this->node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->node_id()); - } - - // string var = 2; - if (this->var().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->var()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OutputReference::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.OutputReference) - GOOGLE_DCHECK_NE(&from, this); - const OutputReference* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.OutputReference) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.OutputReference) - MergeFrom(*source); - } -} - -void OutputReference::MergeFrom(const OutputReference& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.OutputReference) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - attr_path_.MergeFrom(from.attr_path_); - if (from.node_id().size() > 0) { - - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - if (from.var().size() > 0) { - - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } -} - -void OutputReference::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.OutputReference) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OutputReference::CopyFrom(const OutputReference& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.OutputReference) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OutputReference::IsInitialized() const { - return true; -} - -void OutputReference::Swap(OutputReference* other) { - if (other == this) return; - InternalSwap(other); -} -void OutputReference::InternalSwap(OutputReference* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&attr_path_)->InternalSwap(CastToBase(&other->attr_path_)); - node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata OutputReference::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PromiseAttribute::InitAsDefaultInstance() { - ::flyteidl::core::_PromiseAttribute_default_instance_.string_value_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::core::_PromiseAttribute_default_instance_.int_value_ = 0; -} -class PromiseAttribute::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PromiseAttribute::kStringValueFieldNumber; -const int PromiseAttribute::kIntValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PromiseAttribute::PromiseAttribute() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.PromiseAttribute) -} -PromiseAttribute::PromiseAttribute(const PromiseAttribute& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_value(); - switch (from.value_case()) { - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kIntValue: { - set_int_value(from.int_value()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.PromiseAttribute) -} - -void PromiseAttribute::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto.base); - clear_has_value(); -} - -PromiseAttribute::~PromiseAttribute() { - // @@protoc_insertion_point(destructor:flyteidl.core.PromiseAttribute) - SharedDtor(); -} - -void PromiseAttribute::SharedDtor() { - if (has_value()) { - clear_value(); - } -} - -void PromiseAttribute::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PromiseAttribute& PromiseAttribute::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PromiseAttribute_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void PromiseAttribute::clear_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.PromiseAttribute) - switch (value_case()) { - case kStringValue: { - value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kIntValue: { - // No need to clear - break; - } - case VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = VALUE_NOT_SET; -} - - -void PromiseAttribute::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.PromiseAttribute) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PromiseAttribute::_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) { - // string string_value = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.PromiseAttribute.string_value"); - object = msg->mutable_string_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int32 int_value = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_int_value(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PromiseAttribute::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.core.PromiseAttribute) - 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)) { - // string string_value = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_string_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.PromiseAttribute.string_value")); - } else { - goto handle_unusual; - } - break; - } - - // int32 int_value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - clear_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &value_.int_value_))); - set_has_int_value(); - } 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.core.PromiseAttribute) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.PromiseAttribute) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PromiseAttribute::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.PromiseAttribute) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string string_value = 1; - if (has_string_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.PromiseAttribute.string_value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->string_value(), output); - } - - // int32 int_value = 2; - if (has_int_value()) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->int_value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.PromiseAttribute) -} - -::google::protobuf::uint8* PromiseAttribute::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.PromiseAttribute) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string string_value = 1; - if (has_string_value()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->string_value().data(), static_cast(this->string_value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.PromiseAttribute.string_value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->string_value(), target); - } - - // int32 int_value = 2; - if (has_int_value()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->int_value(), 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.core.PromiseAttribute) - return target; -} - -size_t PromiseAttribute::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.PromiseAttribute) - 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 (value_case()) { - // string string_value = 1; - case kStringValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->string_value()); - break; - } - // int32 int_value = 2; - case kIntValue: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->int_value()); - break; - } - case VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PromiseAttribute::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.PromiseAttribute) - GOOGLE_DCHECK_NE(&from, this); - const PromiseAttribute* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.PromiseAttribute) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.PromiseAttribute) - MergeFrom(*source); - } -} - -void PromiseAttribute::MergeFrom(const PromiseAttribute& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.PromiseAttribute) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.value_case()) { - case kStringValue: { - set_string_value(from.string_value()); - break; - } - case kIntValue: { - set_int_value(from.int_value()); - break; - } - case VALUE_NOT_SET: { - break; - } - } -} - -void PromiseAttribute::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.PromiseAttribute) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PromiseAttribute::CopyFrom(const PromiseAttribute& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.PromiseAttribute) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PromiseAttribute::IsInitialized() const { - return true; -} - -void PromiseAttribute::Swap(PromiseAttribute* other) { - if (other == this) return; - InternalSwap(other); -} -void PromiseAttribute::InternalSwap(PromiseAttribute* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(value_, other->value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata PromiseAttribute::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Error::InitAsDefaultInstance() { -} -class Error::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Error::kFailedNodeIdFieldNumber; -const int Error::kMessageFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Error::Error() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Error) -} -Error::Error(const Error& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.failed_node_id().size() > 0) { - failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); - } - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.message().size() > 0) { - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Error) -} - -void Error::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); - failed_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Error::~Error() { - // @@protoc_insertion_point(destructor:flyteidl.core.Error) - SharedDtor(); -} - -void Error::SharedDtor() { - failed_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Error::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Error& Error::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base); - return *internal_default_instance(); -} - - -void Error::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Error) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Error::_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) { - // string failed_node_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Error.failed_node_id"); - object = msg->mutable_failed_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string message = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Error.message"); - object = msg->mutable_message(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Error::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.core.Error) - 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)) { - // string failed_node_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_failed_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->failed_node_id().data(), static_cast(this->failed_node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Error.failed_node_id")); - } else { - goto handle_unusual; - } - break; - } - - // string message = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_message())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Error.message")); - } 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.core.Error) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Error) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Error::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Error) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string failed_node_id = 1; - if (this->failed_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->failed_node_id().data(), static_cast(this->failed_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Error.failed_node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->failed_node_id(), output); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Error.message"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->message(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Error) -} - -::google::protobuf::uint8* Error::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Error) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string failed_node_id = 1; - if (this->failed_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->failed_node_id().data(), static_cast(this->failed_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Error.failed_node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->failed_node_id(), target); - } - - // string message = 2; - if (this->message().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->message().data(), static_cast(this->message().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Error.message"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->message(), 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.core.Error) - return target; -} - -size_t Error::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Error) - 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; - - // string failed_node_id = 1; - if (this->failed_node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->failed_node_id()); - } - - // string message = 2; - if (this->message().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->message()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Error::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Error) - GOOGLE_DCHECK_NE(&from, this); - const Error* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Error) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Error) - MergeFrom(*source); - } -} - -void Error::MergeFrom(const Error& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Error) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.failed_node_id().size() > 0) { - - failed_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.failed_node_id_); - } - if (from.message().size() > 0) { - - message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_); - } -} - -void Error::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Error) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Error::CopyFrom(const Error& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Error) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Error::IsInitialized() const { - return true; -} - -void Error::Swap(Error* other) { - if (other == this) return; - InternalSwap(other); -} -void Error::InternalSwap(Error* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - failed_node_id_.Swap(&other->failed_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - message_.Swap(&other->message_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Error::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2ftypes_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2ftypes_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::SchemaType_SchemaColumn* Arena::CreateMaybeMessage< ::flyteidl::core::SchemaType_SchemaColumn >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SchemaType_SchemaColumn >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::SchemaType* Arena::CreateMaybeMessage< ::flyteidl::core::SchemaType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SchemaType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetType_DatasetColumn* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType_DatasetColumn >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetType_DatasetColumn >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::StructuredDatasetType* Arena::CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::StructuredDatasetType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BlobType* Arena::CreateMaybeMessage< ::flyteidl::core::BlobType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BlobType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::EnumType* Arena::CreateMaybeMessage< ::flyteidl::core::EnumType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::EnumType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::UnionType* Arena::CreateMaybeMessage< ::flyteidl::core::UnionType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::UnionType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TypeStructure* Arena::CreateMaybeMessage< ::flyteidl::core::TypeStructure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TypeStructure >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TypeAnnotation* Arena::CreateMaybeMessage< ::flyteidl::core::TypeAnnotation >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TypeAnnotation >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::LiteralType* Arena::CreateMaybeMessage< ::flyteidl::core::LiteralType >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::LiteralType >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::OutputReference* Arena::CreateMaybeMessage< ::flyteidl::core::OutputReference >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::OutputReference >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::PromiseAttribute* Arena::CreateMaybeMessage< ::flyteidl::core::PromiseAttribute >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::PromiseAttribute >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Error* Arena::CreateMaybeMessage< ::flyteidl::core::Error >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Error >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h deleted file mode 100644 index 014627a096..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/types.pb.h +++ /dev/null @@ -1,3766 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/types.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2ftypes_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[14] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2ftypes_2eproto(); -namespace flyteidl { -namespace core { -class BlobType; -class BlobTypeDefaultTypeInternal; -extern BlobTypeDefaultTypeInternal _BlobType_default_instance_; -class EnumType; -class EnumTypeDefaultTypeInternal; -extern EnumTypeDefaultTypeInternal _EnumType_default_instance_; -class Error; -class ErrorDefaultTypeInternal; -extern ErrorDefaultTypeInternal _Error_default_instance_; -class LiteralType; -class LiteralTypeDefaultTypeInternal; -extern LiteralTypeDefaultTypeInternal _LiteralType_default_instance_; -class OutputReference; -class OutputReferenceDefaultTypeInternal; -extern OutputReferenceDefaultTypeInternal _OutputReference_default_instance_; -class PromiseAttribute; -class PromiseAttributeDefaultTypeInternal; -extern PromiseAttributeDefaultTypeInternal _PromiseAttribute_default_instance_; -class SchemaType; -class SchemaTypeDefaultTypeInternal; -extern SchemaTypeDefaultTypeInternal _SchemaType_default_instance_; -class SchemaType_SchemaColumn; -class SchemaType_SchemaColumnDefaultTypeInternal; -extern SchemaType_SchemaColumnDefaultTypeInternal _SchemaType_SchemaColumn_default_instance_; -class StructuredDatasetType; -class StructuredDatasetTypeDefaultTypeInternal; -extern StructuredDatasetTypeDefaultTypeInternal _StructuredDatasetType_default_instance_; -class StructuredDatasetType_DatasetColumn; -class StructuredDatasetType_DatasetColumnDefaultTypeInternal; -extern StructuredDatasetType_DatasetColumnDefaultTypeInternal _StructuredDatasetType_DatasetColumn_default_instance_; -class TypeAnnotation; -class TypeAnnotationDefaultTypeInternal; -extern TypeAnnotationDefaultTypeInternal _TypeAnnotation_default_instance_; -class TypeStructure; -class TypeStructureDefaultTypeInternal; -extern TypeStructureDefaultTypeInternal _TypeStructure_default_instance_; -class TypeStructure_DataclassTypeEntry_DoNotUse; -class TypeStructure_DataclassTypeEntry_DoNotUseDefaultTypeInternal; -extern TypeStructure_DataclassTypeEntry_DoNotUseDefaultTypeInternal _TypeStructure_DataclassTypeEntry_DoNotUse_default_instance_; -class UnionType; -class UnionTypeDefaultTypeInternal; -extern UnionTypeDefaultTypeInternal _UnionType_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::BlobType* Arena::CreateMaybeMessage<::flyteidl::core::BlobType>(Arena*); -template<> ::flyteidl::core::EnumType* Arena::CreateMaybeMessage<::flyteidl::core::EnumType>(Arena*); -template<> ::flyteidl::core::Error* Arena::CreateMaybeMessage<::flyteidl::core::Error>(Arena*); -template<> ::flyteidl::core::LiteralType* Arena::CreateMaybeMessage<::flyteidl::core::LiteralType>(Arena*); -template<> ::flyteidl::core::OutputReference* Arena::CreateMaybeMessage<::flyteidl::core::OutputReference>(Arena*); -template<> ::flyteidl::core::PromiseAttribute* Arena::CreateMaybeMessage<::flyteidl::core::PromiseAttribute>(Arena*); -template<> ::flyteidl::core::SchemaType* Arena::CreateMaybeMessage<::flyteidl::core::SchemaType>(Arena*); -template<> ::flyteidl::core::SchemaType_SchemaColumn* Arena::CreateMaybeMessage<::flyteidl::core::SchemaType_SchemaColumn>(Arena*); -template<> ::flyteidl::core::StructuredDatasetType* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetType>(Arena*); -template<> ::flyteidl::core::StructuredDatasetType_DatasetColumn* Arena::CreateMaybeMessage<::flyteidl::core::StructuredDatasetType_DatasetColumn>(Arena*); -template<> ::flyteidl::core::TypeAnnotation* Arena::CreateMaybeMessage<::flyteidl::core::TypeAnnotation>(Arena*); -template<> ::flyteidl::core::TypeStructure* Arena::CreateMaybeMessage<::flyteidl::core::TypeStructure>(Arena*); -template<> ::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::TypeStructure_DataclassTypeEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::UnionType* Arena::CreateMaybeMessage<::flyteidl::core::UnionType>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum SchemaType_SchemaColumn_SchemaColumnType { - SchemaType_SchemaColumn_SchemaColumnType_INTEGER = 0, - SchemaType_SchemaColumn_SchemaColumnType_FLOAT = 1, - SchemaType_SchemaColumn_SchemaColumnType_STRING = 2, - SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN = 3, - SchemaType_SchemaColumn_SchemaColumnType_DATETIME = 4, - SchemaType_SchemaColumn_SchemaColumnType_DURATION = 5, - SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - SchemaType_SchemaColumn_SchemaColumnType_SchemaType_SchemaColumn_SchemaColumnType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool SchemaType_SchemaColumn_SchemaColumnType_IsValid(int value); -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN = SchemaType_SchemaColumn_SchemaColumnType_INTEGER; -const SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX = SchemaType_SchemaColumn_SchemaColumnType_DURATION; -const int SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE = SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SchemaType_SchemaColumn_SchemaColumnType_descriptor(); -inline const ::std::string& SchemaType_SchemaColumn_SchemaColumnType_Name(SchemaType_SchemaColumn_SchemaColumnType value) { - return ::google::protobuf::internal::NameOfEnum( - SchemaType_SchemaColumn_SchemaColumnType_descriptor(), value); -} -inline bool SchemaType_SchemaColumn_SchemaColumnType_Parse( - const ::std::string& name, SchemaType_SchemaColumn_SchemaColumnType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SchemaType_SchemaColumn_SchemaColumnType_descriptor(), name, value); -} -enum BlobType_BlobDimensionality { - BlobType_BlobDimensionality_SINGLE = 0, - BlobType_BlobDimensionality_MULTIPART = 1, - BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - BlobType_BlobDimensionality_BlobType_BlobDimensionality_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool BlobType_BlobDimensionality_IsValid(int value); -const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MIN = BlobType_BlobDimensionality_SINGLE; -const BlobType_BlobDimensionality BlobType_BlobDimensionality_BlobDimensionality_MAX = BlobType_BlobDimensionality_MULTIPART; -const int BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE = BlobType_BlobDimensionality_BlobDimensionality_MAX + 1; - -const ::google::protobuf::EnumDescriptor* BlobType_BlobDimensionality_descriptor(); -inline const ::std::string& BlobType_BlobDimensionality_Name(BlobType_BlobDimensionality value) { - return ::google::protobuf::internal::NameOfEnum( - BlobType_BlobDimensionality_descriptor(), value); -} -inline bool BlobType_BlobDimensionality_Parse( - const ::std::string& name, BlobType_BlobDimensionality* value) { - return ::google::protobuf::internal::ParseNamedEnum( - BlobType_BlobDimensionality_descriptor(), name, value); -} -enum SimpleType { - NONE = 0, - INTEGER = 1, - FLOAT = 2, - STRING = 3, - BOOLEAN = 4, - DATETIME = 5, - DURATION = 6, - BINARY = 7, - ERROR = 8, - STRUCT = 9, - SimpleType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - SimpleType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool SimpleType_IsValid(int value); -const SimpleType SimpleType_MIN = NONE; -const SimpleType SimpleType_MAX = STRUCT; -const int SimpleType_ARRAYSIZE = SimpleType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SimpleType_descriptor(); -inline const ::std::string& SimpleType_Name(SimpleType value) { - return ::google::protobuf::internal::NameOfEnum( - SimpleType_descriptor(), value); -} -inline bool SimpleType_Parse( - const ::std::string& name, SimpleType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SimpleType_descriptor(), name, value); -} -// =================================================================== - -class SchemaType_SchemaColumn final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType.SchemaColumn) */ { - public: - SchemaType_SchemaColumn(); - virtual ~SchemaType_SchemaColumn(); - - SchemaType_SchemaColumn(const SchemaType_SchemaColumn& from); - - inline SchemaType_SchemaColumn& operator=(const SchemaType_SchemaColumn& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SchemaType_SchemaColumn(SchemaType_SchemaColumn&& from) noexcept - : SchemaType_SchemaColumn() { - *this = ::std::move(from); - } - - inline SchemaType_SchemaColumn& operator=(SchemaType_SchemaColumn&& 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 SchemaType_SchemaColumn& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SchemaType_SchemaColumn* internal_default_instance() { - return reinterpret_cast( - &_SchemaType_SchemaColumn_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(SchemaType_SchemaColumn* other); - friend void swap(SchemaType_SchemaColumn& a, SchemaType_SchemaColumn& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SchemaType_SchemaColumn* New() const final { - return CreateMaybeMessage(nullptr); - } - - SchemaType_SchemaColumn* 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 SchemaType_SchemaColumn& from); - void MergeFrom(const SchemaType_SchemaColumn& 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(SchemaType_SchemaColumn* 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 ---------------------------------------------------- - - typedef SchemaType_SchemaColumn_SchemaColumnType SchemaColumnType; - static const SchemaColumnType INTEGER = - SchemaType_SchemaColumn_SchemaColumnType_INTEGER; - static const SchemaColumnType FLOAT = - SchemaType_SchemaColumn_SchemaColumnType_FLOAT; - static const SchemaColumnType STRING = - SchemaType_SchemaColumn_SchemaColumnType_STRING; - static const SchemaColumnType BOOLEAN = - SchemaType_SchemaColumn_SchemaColumnType_BOOLEAN; - static const SchemaColumnType DATETIME = - SchemaType_SchemaColumn_SchemaColumnType_DATETIME; - static const SchemaColumnType DURATION = - SchemaType_SchemaColumn_SchemaColumnType_DURATION; - static inline bool SchemaColumnType_IsValid(int value) { - return SchemaType_SchemaColumn_SchemaColumnType_IsValid(value); - } - static const SchemaColumnType SchemaColumnType_MIN = - SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MIN; - static const SchemaColumnType SchemaColumnType_MAX = - SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_MAX; - static const int SchemaColumnType_ARRAYSIZE = - SchemaType_SchemaColumn_SchemaColumnType_SchemaColumnType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SchemaColumnType_descriptor() { - return SchemaType_SchemaColumn_SchemaColumnType_descriptor(); - } - static inline const ::std::string& SchemaColumnType_Name(SchemaColumnType value) { - return SchemaType_SchemaColumn_SchemaColumnType_Name(value); - } - static inline bool SchemaColumnType_Parse(const ::std::string& name, - SchemaColumnType* value) { - return SchemaType_SchemaColumn_SchemaColumnType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType type() const; - void set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class SchemaType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SchemaType) */ { - public: - SchemaType(); - virtual ~SchemaType(); - - SchemaType(const SchemaType& from); - - inline SchemaType& operator=(const SchemaType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SchemaType(SchemaType&& from) noexcept - : SchemaType() { - *this = ::std::move(from); - } - - inline SchemaType& operator=(SchemaType&& 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 SchemaType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SchemaType* internal_default_instance() { - return reinterpret_cast( - &_SchemaType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(SchemaType* other); - friend void swap(SchemaType& a, SchemaType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SchemaType* New() const final { - return CreateMaybeMessage(nullptr); - } - - SchemaType* 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 SchemaType& from); - void MergeFrom(const SchemaType& 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(SchemaType* 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 ---------------------------------------------------- - - typedef SchemaType_SchemaColumn SchemaColumn; - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - int columns_size() const; - void clear_columns(); - static const int kColumnsFieldNumber = 3; - ::flyteidl::core::SchemaType_SchemaColumn* mutable_columns(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* - mutable_columns(); - const ::flyteidl::core::SchemaType_SchemaColumn& columns(int index) const; - ::flyteidl::core::SchemaType_SchemaColumn* add_columns(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& - columns() const; - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn > columns_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class StructuredDatasetType_DatasetColumn final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetType.DatasetColumn) */ { - public: - StructuredDatasetType_DatasetColumn(); - virtual ~StructuredDatasetType_DatasetColumn(); - - StructuredDatasetType_DatasetColumn(const StructuredDatasetType_DatasetColumn& from); - - inline StructuredDatasetType_DatasetColumn& operator=(const StructuredDatasetType_DatasetColumn& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StructuredDatasetType_DatasetColumn(StructuredDatasetType_DatasetColumn&& from) noexcept - : StructuredDatasetType_DatasetColumn() { - *this = ::std::move(from); - } - - inline StructuredDatasetType_DatasetColumn& operator=(StructuredDatasetType_DatasetColumn&& 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 StructuredDatasetType_DatasetColumn& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StructuredDatasetType_DatasetColumn* internal_default_instance() { - return reinterpret_cast( - &_StructuredDatasetType_DatasetColumn_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(StructuredDatasetType_DatasetColumn* other); - friend void swap(StructuredDatasetType_DatasetColumn& a, StructuredDatasetType_DatasetColumn& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StructuredDatasetType_DatasetColumn* New() const final { - return CreateMaybeMessage(nullptr); - } - - StructuredDatasetType_DatasetColumn* 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 StructuredDatasetType_DatasetColumn& from); - void MergeFrom(const StructuredDatasetType_DatasetColumn& 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(StructuredDatasetType_DatasetColumn* 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 ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.LiteralType literal_type = 2; - bool has_literal_type() const; - void clear_literal_type(); - static const int kLiteralTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& literal_type() const; - ::flyteidl::core::LiteralType* release_literal_type(); - ::flyteidl::core::LiteralType* mutable_literal_type(); - void set_allocated_literal_type(::flyteidl::core::LiteralType* literal_type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType.DatasetColumn) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::core::LiteralType* literal_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class StructuredDatasetType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.StructuredDatasetType) */ { - public: - StructuredDatasetType(); - virtual ~StructuredDatasetType(); - - StructuredDatasetType(const StructuredDatasetType& from); - - inline StructuredDatasetType& operator=(const StructuredDatasetType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StructuredDatasetType(StructuredDatasetType&& from) noexcept - : StructuredDatasetType() { - *this = ::std::move(from); - } - - inline StructuredDatasetType& operator=(StructuredDatasetType&& 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 StructuredDatasetType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StructuredDatasetType* internal_default_instance() { - return reinterpret_cast( - &_StructuredDatasetType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(StructuredDatasetType* other); - friend void swap(StructuredDatasetType& a, StructuredDatasetType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StructuredDatasetType* New() const final { - return CreateMaybeMessage(nullptr); - } - - StructuredDatasetType* 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 StructuredDatasetType& from); - void MergeFrom(const StructuredDatasetType& 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(StructuredDatasetType* 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 ---------------------------------------------------- - - typedef StructuredDatasetType_DatasetColumn DatasetColumn; - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - int columns_size() const; - void clear_columns(); - static const int kColumnsFieldNumber = 1; - ::flyteidl::core::StructuredDatasetType_DatasetColumn* mutable_columns(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >* - mutable_columns(); - const ::flyteidl::core::StructuredDatasetType_DatasetColumn& columns(int index) const; - ::flyteidl::core::StructuredDatasetType_DatasetColumn* add_columns(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >& - columns() const; - - // string format = 2; - void clear_format(); - static const int kFormatFieldNumber = 2; - const ::std::string& format() const; - void set_format(const ::std::string& value); - #if LANG_CXX11 - void set_format(::std::string&& value); - #endif - void set_format(const char* value); - void set_format(const char* value, size_t size); - ::std::string* mutable_format(); - ::std::string* release_format(); - void set_allocated_format(::std::string* format); - - // string external_schema_type = 3; - void clear_external_schema_type(); - static const int kExternalSchemaTypeFieldNumber = 3; - const ::std::string& external_schema_type() const; - void set_external_schema_type(const ::std::string& value); - #if LANG_CXX11 - void set_external_schema_type(::std::string&& value); - #endif - void set_external_schema_type(const char* value); - void set_external_schema_type(const char* value, size_t size); - ::std::string* mutable_external_schema_type(); - ::std::string* release_external_schema_type(); - void set_allocated_external_schema_type(::std::string* external_schema_type); - - // bytes external_schema_bytes = 4; - void clear_external_schema_bytes(); - static const int kExternalSchemaBytesFieldNumber = 4; - const ::std::string& external_schema_bytes() const; - void set_external_schema_bytes(const ::std::string& value); - #if LANG_CXX11 - void set_external_schema_bytes(::std::string&& value); - #endif - void set_external_schema_bytes(const char* value); - void set_external_schema_bytes(const void* value, size_t size); - ::std::string* mutable_external_schema_bytes(); - ::std::string* release_external_schema_bytes(); - void set_allocated_external_schema_bytes(::std::string* external_schema_bytes); - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn > columns_; - ::google::protobuf::internal::ArenaStringPtr format_; - ::google::protobuf::internal::ArenaStringPtr external_schema_type_; - ::google::protobuf::internal::ArenaStringPtr external_schema_bytes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class BlobType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BlobType) */ { - public: - BlobType(); - virtual ~BlobType(); - - BlobType(const BlobType& from); - - inline BlobType& operator=(const BlobType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BlobType(BlobType&& from) noexcept - : BlobType() { - *this = ::std::move(from); - } - - inline BlobType& operator=(BlobType&& 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 BlobType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BlobType* internal_default_instance() { - return reinterpret_cast( - &_BlobType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(BlobType* other); - friend void swap(BlobType& a, BlobType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BlobType* New() const final { - return CreateMaybeMessage(nullptr); - } - - BlobType* 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 BlobType& from); - void MergeFrom(const BlobType& 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(BlobType* 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 ---------------------------------------------------- - - typedef BlobType_BlobDimensionality BlobDimensionality; - static const BlobDimensionality SINGLE = - BlobType_BlobDimensionality_SINGLE; - static const BlobDimensionality MULTIPART = - BlobType_BlobDimensionality_MULTIPART; - static inline bool BlobDimensionality_IsValid(int value) { - return BlobType_BlobDimensionality_IsValid(value); - } - static const BlobDimensionality BlobDimensionality_MIN = - BlobType_BlobDimensionality_BlobDimensionality_MIN; - static const BlobDimensionality BlobDimensionality_MAX = - BlobType_BlobDimensionality_BlobDimensionality_MAX; - static const int BlobDimensionality_ARRAYSIZE = - BlobType_BlobDimensionality_BlobDimensionality_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - BlobDimensionality_descriptor() { - return BlobType_BlobDimensionality_descriptor(); - } - static inline const ::std::string& BlobDimensionality_Name(BlobDimensionality value) { - return BlobType_BlobDimensionality_Name(value); - } - static inline bool BlobDimensionality_Parse(const ::std::string& name, - BlobDimensionality* value) { - return BlobType_BlobDimensionality_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string format = 1; - void clear_format(); - static const int kFormatFieldNumber = 1; - const ::std::string& format() const; - void set_format(const ::std::string& value); - #if LANG_CXX11 - void set_format(::std::string&& value); - #endif - void set_format(const char* value); - void set_format(const char* value, size_t size); - ::std::string* mutable_format(); - ::std::string* release_format(); - void set_allocated_format(::std::string* format); - - // .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - void clear_dimensionality(); - static const int kDimensionalityFieldNumber = 2; - ::flyteidl::core::BlobType_BlobDimensionality dimensionality() const; - void set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr format_; - int dimensionality_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class EnumType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.EnumType) */ { - public: - EnumType(); - virtual ~EnumType(); - - EnumType(const EnumType& from); - - inline EnumType& operator=(const EnumType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EnumType(EnumType&& from) noexcept - : EnumType() { - *this = ::std::move(from); - } - - inline EnumType& operator=(EnumType&& 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 EnumType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EnumType* internal_default_instance() { - return reinterpret_cast( - &_EnumType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(EnumType* other); - friend void swap(EnumType& a, EnumType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EnumType* New() const final { - return CreateMaybeMessage(nullptr); - } - - EnumType* 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 EnumType& from); - void MergeFrom(const EnumType& 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(EnumType* 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 ------------------------------------------------------- - - // repeated string values = 1; - int values_size() const; - void clear_values(); - static const int kValuesFieldNumber = 1; - const ::std::string& values(int index) const; - ::std::string* mutable_values(int index); - void set_values(int index, const ::std::string& value); - #if LANG_CXX11 - void set_values(int index, ::std::string&& value); - #endif - void set_values(int index, const char* value); - void set_values(int index, const char* value, size_t size); - ::std::string* add_values(); - void add_values(const ::std::string& value); - #if LANG_CXX11 - void add_values(::std::string&& value); - #endif - void add_values(const char* value); - void add_values(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& values() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_values(); - - // @@protoc_insertion_point(class_scope:flyteidl.core.EnumType) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class UnionType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.UnionType) */ { - public: - UnionType(); - virtual ~UnionType(); - - UnionType(const UnionType& from); - - inline UnionType& operator=(const UnionType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnionType(UnionType&& from) noexcept - : UnionType() { - *this = ::std::move(from); - } - - inline UnionType& operator=(UnionType&& 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 UnionType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnionType* internal_default_instance() { - return reinterpret_cast( - &_UnionType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(UnionType* other); - friend void swap(UnionType& a, UnionType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnionType* New() const final { - return CreateMaybeMessage(nullptr); - } - - UnionType* 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 UnionType& from); - void MergeFrom(const UnionType& 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(UnionType* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.LiteralType variants = 1; - int variants_size() const; - void clear_variants(); - static const int kVariantsFieldNumber = 1; - ::flyteidl::core::LiteralType* mutable_variants(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >* - mutable_variants(); - const ::flyteidl::core::LiteralType& variants(int index) const; - ::flyteidl::core::LiteralType* add_variants(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >& - variants() const; - - // @@protoc_insertion_point(class_scope:flyteidl.core.UnionType) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType > variants_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class TypeStructure_DataclassTypeEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - TypeStructure_DataclassTypeEntry_DoNotUse(); - TypeStructure_DataclassTypeEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const TypeStructure_DataclassTypeEntry_DoNotUse& other); - static const TypeStructure_DataclassTypeEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_TypeStructure_DataclassTypeEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class TypeStructure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypeStructure) */ { - public: - TypeStructure(); - virtual ~TypeStructure(); - - TypeStructure(const TypeStructure& from); - - inline TypeStructure& operator=(const TypeStructure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TypeStructure(TypeStructure&& from) noexcept - : TypeStructure() { - *this = ::std::move(from); - } - - inline TypeStructure& operator=(TypeStructure&& 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 TypeStructure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TypeStructure* internal_default_instance() { - return reinterpret_cast( - &_TypeStructure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TypeStructure* other); - friend void swap(TypeStructure& a, TypeStructure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TypeStructure* New() const final { - return CreateMaybeMessage(nullptr); - } - - TypeStructure* 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 TypeStructure& from); - void MergeFrom(const TypeStructure& 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(TypeStructure* 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 ------------------------------------------------------- - - // map dataclass_type = 2; - int dataclass_type_size() const; - void clear_dataclass_type(); - static const int kDataclassTypeFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >& - dataclass_type() const; - ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >* - mutable_dataclass_type(); - - // string tag = 1; - void clear_tag(); - static const int kTagFieldNumber = 1; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); - #if LANG_CXX11 - void set_tag(::std::string&& value); - #endif - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypeStructure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - TypeStructure_DataclassTypeEntry_DoNotUse, - ::std::string, ::flyteidl::core::LiteralType, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > dataclass_type_; - ::google::protobuf::internal::ArenaStringPtr tag_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class TypeAnnotation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TypeAnnotation) */ { - public: - TypeAnnotation(); - virtual ~TypeAnnotation(); - - TypeAnnotation(const TypeAnnotation& from); - - inline TypeAnnotation& operator=(const TypeAnnotation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TypeAnnotation(TypeAnnotation&& from) noexcept - : TypeAnnotation() { - *this = ::std::move(from); - } - - inline TypeAnnotation& operator=(TypeAnnotation&& 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 TypeAnnotation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TypeAnnotation* internal_default_instance() { - return reinterpret_cast( - &_TypeAnnotation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(TypeAnnotation* other); - friend void swap(TypeAnnotation& a, TypeAnnotation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TypeAnnotation* New() const final { - return CreateMaybeMessage(nullptr); - } - - TypeAnnotation* 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 TypeAnnotation& from); - void MergeFrom(const TypeAnnotation& 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(TypeAnnotation* 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 ------------------------------------------------------- - - // .google.protobuf.Struct annotations = 1; - bool has_annotations() const; - void clear_annotations(); - static const int kAnnotationsFieldNumber = 1; - const ::google::protobuf::Struct& annotations() const; - ::google::protobuf::Struct* release_annotations(); - ::google::protobuf::Struct* mutable_annotations(); - void set_allocated_annotations(::google::protobuf::Struct* annotations); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypeAnnotation) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Struct* annotations_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class LiteralType final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.LiteralType) */ { - public: - LiteralType(); - virtual ~LiteralType(); - - LiteralType(const LiteralType& from); - - inline LiteralType& operator=(const LiteralType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LiteralType(LiteralType&& from) noexcept - : LiteralType() { - *this = ::std::move(from); - } - - inline LiteralType& operator=(LiteralType&& 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 LiteralType& default_instance(); - - enum TypeCase { - kSimple = 1, - kSchema = 2, - kCollectionType = 3, - kMapValueType = 4, - kBlob = 5, - kEnumType = 7, - kStructuredDatasetType = 8, - kUnionType = 10, - TYPE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LiteralType* internal_default_instance() { - return reinterpret_cast( - &_LiteralType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(LiteralType* other); - friend void swap(LiteralType& a, LiteralType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LiteralType* New() const final { - return CreateMaybeMessage(nullptr); - } - - LiteralType* 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 LiteralType& from); - void MergeFrom(const LiteralType& 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(LiteralType* 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 ------------------------------------------------------- - - // .google.protobuf.Struct metadata = 6; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 6; - const ::google::protobuf::Struct& metadata() const; - ::google::protobuf::Struct* release_metadata(); - ::google::protobuf::Struct* mutable_metadata(); - void set_allocated_metadata(::google::protobuf::Struct* metadata); - - // .flyteidl.core.TypeAnnotation annotation = 9; - bool has_annotation() const; - void clear_annotation(); - static const int kAnnotationFieldNumber = 9; - const ::flyteidl::core::TypeAnnotation& annotation() const; - ::flyteidl::core::TypeAnnotation* release_annotation(); - ::flyteidl::core::TypeAnnotation* mutable_annotation(); - void set_allocated_annotation(::flyteidl::core::TypeAnnotation* annotation); - - // .flyteidl.core.TypeStructure structure = 11; - bool has_structure() const; - void clear_structure(); - static const int kStructureFieldNumber = 11; - const ::flyteidl::core::TypeStructure& structure() const; - ::flyteidl::core::TypeStructure* release_structure(); - ::flyteidl::core::TypeStructure* mutable_structure(); - void set_allocated_structure(::flyteidl::core::TypeStructure* structure); - - // .flyteidl.core.SimpleType simple = 1; - private: - bool has_simple() const; - public: - void clear_simple(); - static const int kSimpleFieldNumber = 1; - ::flyteidl::core::SimpleType simple() const; - void set_simple(::flyteidl::core::SimpleType value); - - // .flyteidl.core.SchemaType schema = 2; - bool has_schema() const; - void clear_schema(); - static const int kSchemaFieldNumber = 2; - const ::flyteidl::core::SchemaType& schema() const; - ::flyteidl::core::SchemaType* release_schema(); - ::flyteidl::core::SchemaType* mutable_schema(); - void set_allocated_schema(::flyteidl::core::SchemaType* schema); - - // .flyteidl.core.LiteralType collection_type = 3; - bool has_collection_type() const; - void clear_collection_type(); - static const int kCollectionTypeFieldNumber = 3; - const ::flyteidl::core::LiteralType& collection_type() const; - ::flyteidl::core::LiteralType* release_collection_type(); - ::flyteidl::core::LiteralType* mutable_collection_type(); - void set_allocated_collection_type(::flyteidl::core::LiteralType* collection_type); - - // .flyteidl.core.LiteralType map_value_type = 4; - bool has_map_value_type() const; - void clear_map_value_type(); - static const int kMapValueTypeFieldNumber = 4; - const ::flyteidl::core::LiteralType& map_value_type() const; - ::flyteidl::core::LiteralType* release_map_value_type(); - ::flyteidl::core::LiteralType* mutable_map_value_type(); - void set_allocated_map_value_type(::flyteidl::core::LiteralType* map_value_type); - - // .flyteidl.core.BlobType blob = 5; - bool has_blob() const; - void clear_blob(); - static const int kBlobFieldNumber = 5; - const ::flyteidl::core::BlobType& blob() const; - ::flyteidl::core::BlobType* release_blob(); - ::flyteidl::core::BlobType* mutable_blob(); - void set_allocated_blob(::flyteidl::core::BlobType* blob); - - // .flyteidl.core.EnumType enum_type = 7; - bool has_enum_type() const; - void clear_enum_type(); - static const int kEnumTypeFieldNumber = 7; - const ::flyteidl::core::EnumType& enum_type() const; - ::flyteidl::core::EnumType* release_enum_type(); - ::flyteidl::core::EnumType* mutable_enum_type(); - void set_allocated_enum_type(::flyteidl::core::EnumType* enum_type); - - // .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - bool has_structured_dataset_type() const; - void clear_structured_dataset_type(); - static const int kStructuredDatasetTypeFieldNumber = 8; - const ::flyteidl::core::StructuredDatasetType& structured_dataset_type() const; - ::flyteidl::core::StructuredDatasetType* release_structured_dataset_type(); - ::flyteidl::core::StructuredDatasetType* mutable_structured_dataset_type(); - void set_allocated_structured_dataset_type(::flyteidl::core::StructuredDatasetType* structured_dataset_type); - - // .flyteidl.core.UnionType union_type = 10; - bool has_union_type() const; - void clear_union_type(); - static const int kUnionTypeFieldNumber = 10; - const ::flyteidl::core::UnionType& union_type() const; - ::flyteidl::core::UnionType* release_union_type(); - ::flyteidl::core::UnionType* mutable_union_type(); - void set_allocated_union_type(::flyteidl::core::UnionType* union_type); - - void clear_type(); - TypeCase type_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) - private: - class HasBitSetters; - void set_has_simple(); - void set_has_schema(); - void set_has_collection_type(); - void set_has_map_value_type(); - void set_has_blob(); - void set_has_enum_type(); - void set_has_structured_dataset_type(); - void set_has_union_type(); - - inline bool has_type() const; - inline void clear_has_type(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Struct* metadata_; - ::flyteidl::core::TypeAnnotation* annotation_; - ::flyteidl::core::TypeStructure* structure_; - union TypeUnion { - TypeUnion() {} - int simple_; - ::flyteidl::core::SchemaType* schema_; - ::flyteidl::core::LiteralType* collection_type_; - ::flyteidl::core::LiteralType* map_value_type_; - ::flyteidl::core::BlobType* blob_; - ::flyteidl::core::EnumType* enum_type_; - ::flyteidl::core::StructuredDatasetType* structured_dataset_type_; - ::flyteidl::core::UnionType* union_type_; - } type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class OutputReference final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.OutputReference) */ { - public: - OutputReference(); - virtual ~OutputReference(); - - OutputReference(const OutputReference& from); - - inline OutputReference& operator=(const OutputReference& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OutputReference(OutputReference&& from) noexcept - : OutputReference() { - *this = ::std::move(from); - } - - inline OutputReference& operator=(OutputReference&& 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 OutputReference& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OutputReference* internal_default_instance() { - return reinterpret_cast( - &_OutputReference_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(OutputReference* other); - friend void swap(OutputReference& a, OutputReference& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OutputReference* New() const final { - return CreateMaybeMessage(nullptr); - } - - OutputReference* 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 OutputReference& from); - void MergeFrom(const OutputReference& 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(OutputReference* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.PromiseAttribute attr_path = 3; - int attr_path_size() const; - void clear_attr_path(); - static const int kAttrPathFieldNumber = 3; - ::flyteidl::core::PromiseAttribute* mutable_attr_path(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::PromiseAttribute >* - mutable_attr_path(); - const ::flyteidl::core::PromiseAttribute& attr_path(int index) const; - ::flyteidl::core::PromiseAttribute* add_attr_path(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::PromiseAttribute >& - attr_path() const; - - // string node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - const ::std::string& node_id() const; - void set_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_node_id(::std::string&& value); - #endif - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - ::std::string* mutable_node_id(); - ::std::string* release_node_id(); - void set_allocated_node_id(::std::string* node_id); - - // string var = 2; - void clear_var(); - static const int kVarFieldNumber = 2; - const ::std::string& var() const; - void set_var(const ::std::string& value); - #if LANG_CXX11 - void set_var(::std::string&& value); - #endif - void set_var(const char* value); - void set_var(const char* value, size_t size); - ::std::string* mutable_var(); - ::std::string* release_var(); - void set_allocated_var(::std::string* var); - - // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::PromiseAttribute > attr_path_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - ::google::protobuf::internal::ArenaStringPtr var_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class PromiseAttribute final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.PromiseAttribute) */ { - public: - PromiseAttribute(); - virtual ~PromiseAttribute(); - - PromiseAttribute(const PromiseAttribute& from); - - inline PromiseAttribute& operator=(const PromiseAttribute& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PromiseAttribute(PromiseAttribute&& from) noexcept - : PromiseAttribute() { - *this = ::std::move(from); - } - - inline PromiseAttribute& operator=(PromiseAttribute&& 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 PromiseAttribute& default_instance(); - - enum ValueCase { - kStringValue = 1, - kIntValue = 2, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PromiseAttribute* internal_default_instance() { - return reinterpret_cast( - &_PromiseAttribute_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(PromiseAttribute* other); - friend void swap(PromiseAttribute& a, PromiseAttribute& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PromiseAttribute* New() const final { - return CreateMaybeMessage(nullptr); - } - - PromiseAttribute* 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 PromiseAttribute& from); - void MergeFrom(const PromiseAttribute& 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(PromiseAttribute* 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 ------------------------------------------------------- - - // string string_value = 1; - private: - bool has_string_value() const; - public: - void clear_string_value(); - static const int kStringValueFieldNumber = 1; - const ::std::string& string_value() const; - void set_string_value(const ::std::string& value); - #if LANG_CXX11 - void set_string_value(::std::string&& value); - #endif - void set_string_value(const char* value); - void set_string_value(const char* value, size_t size); - ::std::string* mutable_string_value(); - ::std::string* release_string_value(); - void set_allocated_string_value(::std::string* string_value); - - // int32 int_value = 2; - private: - bool has_int_value() const; - public: - void clear_int_value(); - static const int kIntValueFieldNumber = 2; - ::google::protobuf::int32 int_value() const; - void set_int_value(::google::protobuf::int32 value); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.PromiseAttribute) - private: - class HasBitSetters; - void set_has_string_value(); - void set_has_int_value(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ValueUnion { - ValueUnion() {} - ::google::protobuf::internal::ArenaStringPtr string_value_; - ::google::protobuf::int32 int_value_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// ------------------------------------------------------------------- - -class Error final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Error) */ { - public: - Error(); - virtual ~Error(); - - Error(const Error& from); - - inline Error& operator=(const Error& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Error(Error&& from) noexcept - : Error() { - *this = ::std::move(from); - } - - inline Error& operator=(Error&& 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 Error& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Error* internal_default_instance() { - return reinterpret_cast( - &_Error_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(Error* other); - friend void swap(Error& a, Error& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Error* New() const final { - return CreateMaybeMessage(nullptr); - } - - Error* 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 Error& from); - void MergeFrom(const Error& 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(Error* 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 ------------------------------------------------------- - - // string failed_node_id = 1; - void clear_failed_node_id(); - static const int kFailedNodeIdFieldNumber = 1; - const ::std::string& failed_node_id() const; - void set_failed_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_failed_node_id(::std::string&& value); - #endif - void set_failed_node_id(const char* value); - void set_failed_node_id(const char* value, size_t size); - ::std::string* mutable_failed_node_id(); - ::std::string* release_failed_node_id(); - void set_allocated_failed_node_id(::std::string* failed_node_id); - - // string message = 2; - void clear_message(); - static const int kMessageFieldNumber = 2; - const ::std::string& message() const; - void set_message(const ::std::string& value); - #if LANG_CXX11 - void set_message(::std::string&& value); - #endif - void set_message(const char* value); - void set_message(const char* value, size_t size); - ::std::string* mutable_message(); - ::std::string* release_message(); - void set_allocated_message(::std::string* message); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Error) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr failed_node_id_; - ::google::protobuf::internal::ArenaStringPtr message_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2ftypes_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SchemaType_SchemaColumn - -// string name = 1; -inline void SchemaType_SchemaColumn::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SchemaType_SchemaColumn::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.name) - return name_.GetNoArena(); -} -inline void SchemaType_SchemaColumn::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.name) -} -#if LANG_CXX11 -inline void SchemaType_SchemaColumn::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SchemaType.SchemaColumn.name) -} -#endif -inline void SchemaType_SchemaColumn::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.SchemaType.SchemaColumn.name) -} -inline void SchemaType_SchemaColumn::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SchemaType.SchemaColumn.name) -} -inline ::std::string* SchemaType_SchemaColumn::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.SchemaColumn.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SchemaType_SchemaColumn::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.SchemaType.SchemaColumn.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SchemaType_SchemaColumn::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SchemaType.SchemaColumn.name) -} - -// .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; -inline void SchemaType_SchemaColumn::clear_type() { - type_ = 0; -} -inline ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType SchemaType_SchemaColumn::type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.SchemaColumn.type) - return static_cast< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType >(type_); -} -inline void SchemaType_SchemaColumn::set_type(::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.SchemaType.SchemaColumn.type) -} - -// ------------------------------------------------------------------- - -// SchemaType - -// repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; -inline int SchemaType::columns_size() const { - return columns_.size(); -} -inline void SchemaType::clear_columns() { - columns_.Clear(); -} -inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::mutable_columns(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.SchemaType.columns) - return columns_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >* -SchemaType::mutable_columns() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.SchemaType.columns) - return &columns_; -} -inline const ::flyteidl::core::SchemaType_SchemaColumn& SchemaType::columns(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.SchemaType.columns) - return columns_.Get(index); -} -inline ::flyteidl::core::SchemaType_SchemaColumn* SchemaType::add_columns() { - // @@protoc_insertion_point(field_add:flyteidl.core.SchemaType.columns) - return columns_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::SchemaType_SchemaColumn >& -SchemaType::columns() const { - // @@protoc_insertion_point(field_list:flyteidl.core.SchemaType.columns) - return columns_; -} - -// ------------------------------------------------------------------- - -// StructuredDatasetType_DatasetColumn - -// string name = 1; -inline void StructuredDatasetType_DatasetColumn::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StructuredDatasetType_DatasetColumn::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.DatasetColumn.name) - return name_.GetNoArena(); -} -inline void StructuredDatasetType_DatasetColumn::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.DatasetColumn.name) -} -#if LANG_CXX11 -inline void StructuredDatasetType_DatasetColumn::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.DatasetColumn.name) -} -#endif -inline void StructuredDatasetType_DatasetColumn::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.DatasetColumn.name) -} -inline void StructuredDatasetType_DatasetColumn::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.DatasetColumn.name) -} -inline ::std::string* StructuredDatasetType_DatasetColumn::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.DatasetColumn.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StructuredDatasetType_DatasetColumn::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.DatasetColumn.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StructuredDatasetType_DatasetColumn::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.DatasetColumn.name) -} - -// .flyteidl.core.LiteralType literal_type = 2; -inline bool StructuredDatasetType_DatasetColumn::has_literal_type() const { - return this != internal_default_instance() && literal_type_ != nullptr; -} -inline void StructuredDatasetType_DatasetColumn::clear_literal_type() { - if (GetArenaNoVirtual() == nullptr && literal_type_ != nullptr) { - delete literal_type_; - } - literal_type_ = nullptr; -} -inline const ::flyteidl::core::LiteralType& StructuredDatasetType_DatasetColumn::literal_type() const { - const ::flyteidl::core::LiteralType* p = literal_type_; - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* StructuredDatasetType_DatasetColumn::release_literal_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) - - ::flyteidl::core::LiteralType* temp = literal_type_; - literal_type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* StructuredDatasetType_DatasetColumn::mutable_literal_type() { - - if (literal_type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - literal_type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) - return literal_type_; -} -inline void StructuredDatasetType_DatasetColumn::set_allocated_literal_type(::flyteidl::core::LiteralType* literal_type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete literal_type_; - } - if (literal_type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - literal_type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal_type, submessage_arena); - } - - } else { - - } - literal_type_ = literal_type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.DatasetColumn.literal_type) -} - -// ------------------------------------------------------------------- - -// StructuredDatasetType - -// repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; -inline int StructuredDatasetType::columns_size() const { - return columns_.size(); -} -inline void StructuredDatasetType::clear_columns() { - columns_.Clear(); -} -inline ::flyteidl::core::StructuredDatasetType_DatasetColumn* StructuredDatasetType::mutable_columns(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.columns) - return columns_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >* -StructuredDatasetType::mutable_columns() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.StructuredDatasetType.columns) - return &columns_; -} -inline const ::flyteidl::core::StructuredDatasetType_DatasetColumn& StructuredDatasetType::columns(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.columns) - return columns_.Get(index); -} -inline ::flyteidl::core::StructuredDatasetType_DatasetColumn* StructuredDatasetType::add_columns() { - // @@protoc_insertion_point(field_add:flyteidl.core.StructuredDatasetType.columns) - return columns_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::StructuredDatasetType_DatasetColumn >& -StructuredDatasetType::columns() const { - // @@protoc_insertion_point(field_list:flyteidl.core.StructuredDatasetType.columns) - return columns_; -} - -// string format = 2; -inline void StructuredDatasetType::clear_format() { - format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StructuredDatasetType::format() const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.format) - return format_.GetNoArena(); -} -inline void StructuredDatasetType::set_format(const ::std::string& value) { - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.format) -} -#if LANG_CXX11 -inline void StructuredDatasetType::set_format(::std::string&& value) { - - format_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.format) -} -#endif -inline void StructuredDatasetType::set_format(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.format) -} -inline void StructuredDatasetType::set_format(const char* value, size_t size) { - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.format) -} -inline ::std::string* StructuredDatasetType::mutable_format() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.format) - return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StructuredDatasetType::release_format() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.format) - - return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StructuredDatasetType::set_allocated_format(::std::string* format) { - if (format != nullptr) { - - } else { - - } - format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.format) -} - -// string external_schema_type = 3; -inline void StructuredDatasetType::clear_external_schema_type() { - external_schema_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StructuredDatasetType::external_schema_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.external_schema_type) - return external_schema_type_.GetNoArena(); -} -inline void StructuredDatasetType::set_external_schema_type(const ::std::string& value) { - - external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.external_schema_type) -} -#if LANG_CXX11 -inline void StructuredDatasetType::set_external_schema_type(::std::string&& value) { - - external_schema_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.external_schema_type) -} -#endif -inline void StructuredDatasetType::set_external_schema_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.external_schema_type) -} -inline void StructuredDatasetType::set_external_schema_type(const char* value, size_t size) { - - external_schema_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.external_schema_type) -} -inline ::std::string* StructuredDatasetType::mutable_external_schema_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.external_schema_type) - return external_schema_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StructuredDatasetType::release_external_schema_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.external_schema_type) - - return external_schema_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StructuredDatasetType::set_allocated_external_schema_type(::std::string* external_schema_type) { - if (external_schema_type != nullptr) { - - } else { - - } - external_schema_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_schema_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.external_schema_type) -} - -// bytes external_schema_bytes = 4; -inline void StructuredDatasetType::clear_external_schema_bytes() { - external_schema_bytes_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& StructuredDatasetType::external_schema_bytes() const { - // @@protoc_insertion_point(field_get:flyteidl.core.StructuredDatasetType.external_schema_bytes) - return external_schema_bytes_.GetNoArena(); -} -inline void StructuredDatasetType::set_external_schema_bytes(const ::std::string& value) { - - external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.StructuredDatasetType.external_schema_bytes) -} -#if LANG_CXX11 -inline void StructuredDatasetType::set_external_schema_bytes(::std::string&& value) { - - external_schema_bytes_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.StructuredDatasetType.external_schema_bytes) -} -#endif -inline void StructuredDatasetType::set_external_schema_bytes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.StructuredDatasetType.external_schema_bytes) -} -inline void StructuredDatasetType::set_external_schema_bytes(const void* value, size_t size) { - - external_schema_bytes_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.StructuredDatasetType.external_schema_bytes) -} -inline ::std::string* StructuredDatasetType::mutable_external_schema_bytes() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.StructuredDatasetType.external_schema_bytes) - return external_schema_bytes_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* StructuredDatasetType::release_external_schema_bytes() { - // @@protoc_insertion_point(field_release:flyteidl.core.StructuredDatasetType.external_schema_bytes) - - return external_schema_bytes_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void StructuredDatasetType::set_allocated_external_schema_bytes(::std::string* external_schema_bytes) { - if (external_schema_bytes != nullptr) { - - } else { - - } - external_schema_bytes_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_schema_bytes); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.StructuredDatasetType.external_schema_bytes) -} - -// ------------------------------------------------------------------- - -// BlobType - -// string format = 1; -inline void BlobType::clear_format() { - format_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& BlobType::format() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.format) - return format_.GetNoArena(); -} -inline void BlobType::set_format(const ::std::string& value) { - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.format) -} -#if LANG_CXX11 -inline void BlobType::set_format(::std::string&& value) { - - format_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.BlobType.format) -} -#endif -inline void BlobType::set_format(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.BlobType.format) -} -inline void BlobType::set_format(const char* value, size_t size) { - - format_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.BlobType.format) -} -inline ::std::string* BlobType::mutable_format() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.BlobType.format) - return format_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* BlobType::release_format() { - // @@protoc_insertion_point(field_release:flyteidl.core.BlobType.format) - - return format_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void BlobType::set_allocated_format(::std::string* format) { - if (format != nullptr) { - - } else { - - } - format_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), format); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BlobType.format) -} - -// .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; -inline void BlobType::clear_dimensionality() { - dimensionality_ = 0; -} -inline ::flyteidl::core::BlobType_BlobDimensionality BlobType::dimensionality() const { - // @@protoc_insertion_point(field_get:flyteidl.core.BlobType.dimensionality) - return static_cast< ::flyteidl::core::BlobType_BlobDimensionality >(dimensionality_); -} -inline void BlobType::set_dimensionality(::flyteidl::core::BlobType_BlobDimensionality value) { - - dimensionality_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.BlobType.dimensionality) -} - -// ------------------------------------------------------------------- - -// EnumType - -// repeated string values = 1; -inline int EnumType::values_size() const { - return values_.size(); -} -inline void EnumType::clear_values() { - values_.Clear(); -} -inline const ::std::string& EnumType::values(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.EnumType.values) - return values_.Get(index); -} -inline ::std::string* EnumType::mutable_values(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.EnumType.values) - return values_.Mutable(index); -} -inline void EnumType::set_values(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.EnumType.values) - values_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void EnumType::set_values(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.EnumType.values) - values_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void EnumType::set_values(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.EnumType.values) -} -inline void EnumType::set_values(int index, const char* value, size_t size) { - values_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.EnumType.values) -} -inline ::std::string* EnumType::add_values() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.EnumType.values) - return values_.Add(); -} -inline void EnumType::add_values(const ::std::string& value) { - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.EnumType.values) -} -#if LANG_CXX11 -inline void EnumType::add_values(::std::string&& value) { - values_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.EnumType.values) -} -#endif -inline void EnumType::add_values(const char* value) { - GOOGLE_DCHECK(value != nullptr); - values_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.EnumType.values) -} -inline void EnumType::add_values(const char* value, size_t size) { - values_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.EnumType.values) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -EnumType::values() const { - // @@protoc_insertion_point(field_list:flyteidl.core.EnumType.values) - return values_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -EnumType::mutable_values() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.EnumType.values) - return &values_; -} - -// ------------------------------------------------------------------- - -// UnionType - -// repeated .flyteidl.core.LiteralType variants = 1; -inline int UnionType::variants_size() const { - return variants_.size(); -} -inline void UnionType::clear_variants() { - variants_.Clear(); -} -inline ::flyteidl::core::LiteralType* UnionType::mutable_variants(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.UnionType.variants) - return variants_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >* -UnionType::mutable_variants() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.UnionType.variants) - return &variants_; -} -inline const ::flyteidl::core::LiteralType& UnionType::variants(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.UnionType.variants) - return variants_.Get(index); -} -inline ::flyteidl::core::LiteralType* UnionType::add_variants() { - // @@protoc_insertion_point(field_add:flyteidl.core.UnionType.variants) - return variants_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::LiteralType >& -UnionType::variants() const { - // @@protoc_insertion_point(field_list:flyteidl.core.UnionType.variants) - return variants_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// TypeStructure - -// string tag = 1; -inline void TypeStructure::clear_tag() { - tag_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TypeStructure::tag() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TypeStructure.tag) - return tag_.GetNoArena(); -} -inline void TypeStructure::set_tag(const ::std::string& value) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.TypeStructure.tag) -} -#if LANG_CXX11 -inline void TypeStructure::set_tag(::std::string&& value) { - - tag_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.TypeStructure.tag) -} -#endif -inline void TypeStructure::set_tag(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.TypeStructure.tag) -} -inline void TypeStructure::set_tag(const char* value, size_t size) { - - tag_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.TypeStructure.tag) -} -inline ::std::string* TypeStructure::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.TypeStructure.tag) - return tag_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TypeStructure::release_tag() { - // @@protoc_insertion_point(field_release:flyteidl.core.TypeStructure.tag) - - return tag_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TypeStructure::set_allocated_tag(::std::string* tag) { - if (tag != nullptr) { - - } else { - - } - tag_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypeStructure.tag) -} - -// map dataclass_type = 2; -inline int TypeStructure::dataclass_type_size() const { - return dataclass_type_.size(); -} -inline void TypeStructure::clear_dataclass_type() { - dataclass_type_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >& -TypeStructure::dataclass_type() const { - // @@protoc_insertion_point(field_map:flyteidl.core.TypeStructure.dataclass_type) - return dataclass_type_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::flyteidl::core::LiteralType >* -TypeStructure::mutable_dataclass_type() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.TypeStructure.dataclass_type) - return dataclass_type_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// TypeAnnotation - -// .google.protobuf.Struct annotations = 1; -inline bool TypeAnnotation::has_annotations() const { - return this != internal_default_instance() && annotations_ != nullptr; -} -inline const ::google::protobuf::Struct& TypeAnnotation::annotations() const { - const ::google::protobuf::Struct* p = annotations_; - // @@protoc_insertion_point(field_get:flyteidl.core.TypeAnnotation.annotations) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* TypeAnnotation::release_annotations() { - // @@protoc_insertion_point(field_release:flyteidl.core.TypeAnnotation.annotations) - - ::google::protobuf::Struct* temp = annotations_; - annotations_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* TypeAnnotation::mutable_annotations() { - - if (annotations_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - annotations_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TypeAnnotation.annotations) - return annotations_; -} -inline void TypeAnnotation::set_allocated_annotations(::google::protobuf::Struct* annotations) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(annotations_); - } - if (annotations) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(annotations)->GetArena(); - if (message_arena != submessage_arena) { - annotations = ::google::protobuf::internal::GetOwnedMessage( - message_arena, annotations, submessage_arena); - } - - } else { - - } - annotations_ = annotations; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TypeAnnotation.annotations) -} - -// ------------------------------------------------------------------- - -// LiteralType - -// .flyteidl.core.SimpleType simple = 1; -inline bool LiteralType::has_simple() const { - return type_case() == kSimple; -} -inline void LiteralType::set_has_simple() { - _oneof_case_[0] = kSimple; -} -inline void LiteralType::clear_simple() { - if (has_simple()) { - type_.simple_ = 0; - clear_has_type(); - } -} -inline ::flyteidl::core::SimpleType LiteralType::simple() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.simple) - if (has_simple()) { - return static_cast< ::flyteidl::core::SimpleType >(type_.simple_); - } - return static_cast< ::flyteidl::core::SimpleType >(0); -} -inline void LiteralType::set_simple(::flyteidl::core::SimpleType value) { - if (!has_simple()) { - clear_type(); - set_has_simple(); - } - type_.simple_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.LiteralType.simple) -} - -// .flyteidl.core.SchemaType schema = 2; -inline bool LiteralType::has_schema() const { - return type_case() == kSchema; -} -inline void LiteralType::set_has_schema() { - _oneof_case_[0] = kSchema; -} -inline void LiteralType::clear_schema() { - if (has_schema()) { - delete type_.schema_; - clear_has_type(); - } -} -inline ::flyteidl::core::SchemaType* LiteralType::release_schema() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.schema) - if (has_schema()) { - clear_has_type(); - ::flyteidl::core::SchemaType* temp = type_.schema_; - type_.schema_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::SchemaType& LiteralType::schema() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.schema) - return has_schema() - ? *type_.schema_ - : *reinterpret_cast< ::flyteidl::core::SchemaType*>(&::flyteidl::core::_SchemaType_default_instance_); -} -inline ::flyteidl::core::SchemaType* LiteralType::mutable_schema() { - if (!has_schema()) { - clear_type(); - set_has_schema(); - type_.schema_ = CreateMaybeMessage< ::flyteidl::core::SchemaType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.schema) - return type_.schema_; -} - -// .flyteidl.core.LiteralType collection_type = 3; -inline bool LiteralType::has_collection_type() const { - return type_case() == kCollectionType; -} -inline void LiteralType::set_has_collection_type() { - _oneof_case_[0] = kCollectionType; -} -inline void LiteralType::clear_collection_type() { - if (has_collection_type()) { - delete type_.collection_type_; - clear_has_type(); - } -} -inline ::flyteidl::core::LiteralType* LiteralType::release_collection_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.collection_type) - if (has_collection_type()) { - clear_has_type(); - ::flyteidl::core::LiteralType* temp = type_.collection_type_; - type_.collection_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralType& LiteralType::collection_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.collection_type) - return has_collection_type() - ? *type_.collection_type_ - : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* LiteralType::mutable_collection_type() { - if (!has_collection_type()) { - clear_type(); - set_has_collection_type(); - type_.collection_type_ = CreateMaybeMessage< ::flyteidl::core::LiteralType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.collection_type) - return type_.collection_type_; -} - -// .flyteidl.core.LiteralType map_value_type = 4; -inline bool LiteralType::has_map_value_type() const { - return type_case() == kMapValueType; -} -inline void LiteralType::set_has_map_value_type() { - _oneof_case_[0] = kMapValueType; -} -inline void LiteralType::clear_map_value_type() { - if (has_map_value_type()) { - delete type_.map_value_type_; - clear_has_type(); - } -} -inline ::flyteidl::core::LiteralType* LiteralType::release_map_value_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.map_value_type) - if (has_map_value_type()) { - clear_has_type(); - ::flyteidl::core::LiteralType* temp = type_.map_value_type_; - type_.map_value_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralType& LiteralType::map_value_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.map_value_type) - return has_map_value_type() - ? *type_.map_value_type_ - : *reinterpret_cast< ::flyteidl::core::LiteralType*>(&::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* LiteralType::mutable_map_value_type() { - if (!has_map_value_type()) { - clear_type(); - set_has_map_value_type(); - type_.map_value_type_ = CreateMaybeMessage< ::flyteidl::core::LiteralType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.map_value_type) - return type_.map_value_type_; -} - -// .flyteidl.core.BlobType blob = 5; -inline bool LiteralType::has_blob() const { - return type_case() == kBlob; -} -inline void LiteralType::set_has_blob() { - _oneof_case_[0] = kBlob; -} -inline void LiteralType::clear_blob() { - if (has_blob()) { - delete type_.blob_; - clear_has_type(); - } -} -inline ::flyteidl::core::BlobType* LiteralType::release_blob() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.blob) - if (has_blob()) { - clear_has_type(); - ::flyteidl::core::BlobType* temp = type_.blob_; - type_.blob_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::BlobType& LiteralType::blob() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.blob) - return has_blob() - ? *type_.blob_ - : *reinterpret_cast< ::flyteidl::core::BlobType*>(&::flyteidl::core::_BlobType_default_instance_); -} -inline ::flyteidl::core::BlobType* LiteralType::mutable_blob() { - if (!has_blob()) { - clear_type(); - set_has_blob(); - type_.blob_ = CreateMaybeMessage< ::flyteidl::core::BlobType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.blob) - return type_.blob_; -} - -// .flyteidl.core.EnumType enum_type = 7; -inline bool LiteralType::has_enum_type() const { - return type_case() == kEnumType; -} -inline void LiteralType::set_has_enum_type() { - _oneof_case_[0] = kEnumType; -} -inline void LiteralType::clear_enum_type() { - if (has_enum_type()) { - delete type_.enum_type_; - clear_has_type(); - } -} -inline ::flyteidl::core::EnumType* LiteralType::release_enum_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.enum_type) - if (has_enum_type()) { - clear_has_type(); - ::flyteidl::core::EnumType* temp = type_.enum_type_; - type_.enum_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::EnumType& LiteralType::enum_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.enum_type) - return has_enum_type() - ? *type_.enum_type_ - : *reinterpret_cast< ::flyteidl::core::EnumType*>(&::flyteidl::core::_EnumType_default_instance_); -} -inline ::flyteidl::core::EnumType* LiteralType::mutable_enum_type() { - if (!has_enum_type()) { - clear_type(); - set_has_enum_type(); - type_.enum_type_ = CreateMaybeMessage< ::flyteidl::core::EnumType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.enum_type) - return type_.enum_type_; -} - -// .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; -inline bool LiteralType::has_structured_dataset_type() const { - return type_case() == kStructuredDatasetType; -} -inline void LiteralType::set_has_structured_dataset_type() { - _oneof_case_[0] = kStructuredDatasetType; -} -inline void LiteralType::clear_structured_dataset_type() { - if (has_structured_dataset_type()) { - delete type_.structured_dataset_type_; - clear_has_type(); - } -} -inline ::flyteidl::core::StructuredDatasetType* LiteralType::release_structured_dataset_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.structured_dataset_type) - if (has_structured_dataset_type()) { - clear_has_type(); - ::flyteidl::core::StructuredDatasetType* temp = type_.structured_dataset_type_; - type_.structured_dataset_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::StructuredDatasetType& LiteralType::structured_dataset_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.structured_dataset_type) - return has_structured_dataset_type() - ? *type_.structured_dataset_type_ - : *reinterpret_cast< ::flyteidl::core::StructuredDatasetType*>(&::flyteidl::core::_StructuredDatasetType_default_instance_); -} -inline ::flyteidl::core::StructuredDatasetType* LiteralType::mutable_structured_dataset_type() { - if (!has_structured_dataset_type()) { - clear_type(); - set_has_structured_dataset_type(); - type_.structured_dataset_type_ = CreateMaybeMessage< ::flyteidl::core::StructuredDatasetType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.structured_dataset_type) - return type_.structured_dataset_type_; -} - -// .flyteidl.core.UnionType union_type = 10; -inline bool LiteralType::has_union_type() const { - return type_case() == kUnionType; -} -inline void LiteralType::set_has_union_type() { - _oneof_case_[0] = kUnionType; -} -inline void LiteralType::clear_union_type() { - if (has_union_type()) { - delete type_.union_type_; - clear_has_type(); - } -} -inline ::flyteidl::core::UnionType* LiteralType::release_union_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.union_type) - if (has_union_type()) { - clear_has_type(); - ::flyteidl::core::UnionType* temp = type_.union_type_; - type_.union_type_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::UnionType& LiteralType::union_type() const { - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.union_type) - return has_union_type() - ? *type_.union_type_ - : *reinterpret_cast< ::flyteidl::core::UnionType*>(&::flyteidl::core::_UnionType_default_instance_); -} -inline ::flyteidl::core::UnionType* LiteralType::mutable_union_type() { - if (!has_union_type()) { - clear_type(); - set_has_union_type(); - type_.union_type_ = CreateMaybeMessage< ::flyteidl::core::UnionType >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.union_type) - return type_.union_type_; -} - -// .google.protobuf.Struct metadata = 6; -inline bool LiteralType::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline const ::google::protobuf::Struct& LiteralType::metadata() const { - const ::google::protobuf::Struct* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* LiteralType::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.metadata) - - ::google::protobuf::Struct* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* LiteralType::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.metadata) - return metadata_; -} -inline void LiteralType::set_allocated_metadata(::google::protobuf::Struct* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(metadata)->GetArena(); - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.metadata) -} - -// .flyteidl.core.TypeAnnotation annotation = 9; -inline bool LiteralType::has_annotation() const { - return this != internal_default_instance() && annotation_ != nullptr; -} -inline void LiteralType::clear_annotation() { - if (GetArenaNoVirtual() == nullptr && annotation_ != nullptr) { - delete annotation_; - } - annotation_ = nullptr; -} -inline const ::flyteidl::core::TypeAnnotation& LiteralType::annotation() const { - const ::flyteidl::core::TypeAnnotation* p = annotation_; - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.annotation) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypeAnnotation_default_instance_); -} -inline ::flyteidl::core::TypeAnnotation* LiteralType::release_annotation() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.annotation) - - ::flyteidl::core::TypeAnnotation* temp = annotation_; - annotation_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypeAnnotation* LiteralType::mutable_annotation() { - - if (annotation_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypeAnnotation>(GetArenaNoVirtual()); - annotation_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.annotation) - return annotation_; -} -inline void LiteralType::set_allocated_annotation(::flyteidl::core::TypeAnnotation* annotation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete annotation_; - } - if (annotation) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - annotation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, annotation, submessage_arena); - } - - } else { - - } - annotation_ = annotation; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.annotation) -} - -// .flyteidl.core.TypeStructure structure = 11; -inline bool LiteralType::has_structure() const { - return this != internal_default_instance() && structure_ != nullptr; -} -inline void LiteralType::clear_structure() { - if (GetArenaNoVirtual() == nullptr && structure_ != nullptr) { - delete structure_; - } - structure_ = nullptr; -} -inline const ::flyteidl::core::TypeStructure& LiteralType::structure() const { - const ::flyteidl::core::TypeStructure* p = structure_; - // @@protoc_insertion_point(field_get:flyteidl.core.LiteralType.structure) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypeStructure_default_instance_); -} -inline ::flyteidl::core::TypeStructure* LiteralType::release_structure() { - // @@protoc_insertion_point(field_release:flyteidl.core.LiteralType.structure) - - ::flyteidl::core::TypeStructure* temp = structure_; - structure_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypeStructure* LiteralType::mutable_structure() { - - if (structure_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypeStructure>(GetArenaNoVirtual()); - structure_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.LiteralType.structure) - return structure_; -} -inline void LiteralType::set_allocated_structure(::flyteidl::core::TypeStructure* structure) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete structure_; - } - if (structure) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - structure = ::google::protobuf::internal::GetOwnedMessage( - message_arena, structure, submessage_arena); - } - - } else { - - } - structure_ = structure; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.LiteralType.structure) -} - -inline bool LiteralType::has_type() const { - return type_case() != TYPE_NOT_SET; -} -inline void LiteralType::clear_has_type() { - _oneof_case_[0] = TYPE_NOT_SET; -} -inline LiteralType::TypeCase LiteralType::type_case() const { - return LiteralType::TypeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// OutputReference - -// string node_id = 1; -inline void OutputReference::clear_node_id() { - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OutputReference::node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.node_id) - return node_id_.GetNoArena(); -} -inline void OutputReference::set_node_id(const ::std::string& value) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.node_id) -} -#if LANG_CXX11 -inline void OutputReference::set_node_id(::std::string&& value) { - - node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.node_id) -} -#endif -inline void OutputReference::set_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.node_id) -} -inline void OutputReference::set_node_id(const char* value, size_t size) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.node_id) -} -inline ::std::string* OutputReference::mutable_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.node_id) - return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OutputReference::release_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.node_id) - - return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OutputReference::set_allocated_node_id(::std::string* node_id) { - if (node_id != nullptr) { - - } else { - - } - node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.node_id) -} - -// string var = 2; -inline void OutputReference::clear_var() { - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OutputReference::var() const { - // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.var) - return var_.GetNoArena(); -} -inline void OutputReference::set_var(const ::std::string& value) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.OutputReference.var) -} -#if LANG_CXX11 -inline void OutputReference::set_var(::std::string&& value) { - - var_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.OutputReference.var) -} -#endif -inline void OutputReference::set_var(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.OutputReference.var) -} -inline void OutputReference::set_var(const char* value, size_t size) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.OutputReference.var) -} -inline ::std::string* OutputReference::mutable_var() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.var) - return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OutputReference::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.OutputReference.var) - - return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OutputReference::set_allocated_var(::std::string* var) { - if (var != nullptr) { - - } else { - - } - var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.OutputReference.var) -} - -// repeated .flyteidl.core.PromiseAttribute attr_path = 3; -inline int OutputReference::attr_path_size() const { - return attr_path_.size(); -} -inline void OutputReference::clear_attr_path() { - attr_path_.Clear(); -} -inline ::flyteidl::core::PromiseAttribute* OutputReference::mutable_attr_path(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.OutputReference.attr_path) - return attr_path_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::PromiseAttribute >* -OutputReference::mutable_attr_path() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.OutputReference.attr_path) - return &attr_path_; -} -inline const ::flyteidl::core::PromiseAttribute& OutputReference::attr_path(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.OutputReference.attr_path) - return attr_path_.Get(index); -} -inline ::flyteidl::core::PromiseAttribute* OutputReference::add_attr_path() { - // @@protoc_insertion_point(field_add:flyteidl.core.OutputReference.attr_path) - return attr_path_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::PromiseAttribute >& -OutputReference::attr_path() const { - // @@protoc_insertion_point(field_list:flyteidl.core.OutputReference.attr_path) - return attr_path_; -} - -// ------------------------------------------------------------------- - -// PromiseAttribute - -// string string_value = 1; -inline bool PromiseAttribute::has_string_value() const { - return value_case() == kStringValue; -} -inline void PromiseAttribute::set_has_string_value() { - _oneof_case_[0] = kStringValue; -} -inline void PromiseAttribute::clear_string_value() { - if (has_string_value()) { - value_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_value(); - } -} -inline const ::std::string& PromiseAttribute::string_value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.PromiseAttribute.string_value) - if (has_string_value()) { - return value_.string_value_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void PromiseAttribute::set_string_value(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.PromiseAttribute.string_value) - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.PromiseAttribute.string_value) -} -#if LANG_CXX11 -inline void PromiseAttribute::set_string_value(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.PromiseAttribute.string_value) - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.PromiseAttribute.string_value) -} -#endif -inline void PromiseAttribute::set_string_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.PromiseAttribute.string_value) -} -inline void PromiseAttribute::set_string_value(const char* value, size_t size) { - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.PromiseAttribute.string_value) -} -inline ::std::string* PromiseAttribute::mutable_string_value() { - if (!has_string_value()) { - clear_value(); - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.PromiseAttribute.string_value) - return value_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PromiseAttribute::release_string_value() { - // @@protoc_insertion_point(field_release:flyteidl.core.PromiseAttribute.string_value) - if (has_string_value()) { - clear_has_value(); - return value_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void PromiseAttribute::set_allocated_string_value(::std::string* string_value) { - if (has_value()) { - clear_value(); - } - if (string_value != nullptr) { - set_has_string_value(); - value_.string_value_.UnsafeSetDefault(string_value); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.PromiseAttribute.string_value) -} - -// int32 int_value = 2; -inline bool PromiseAttribute::has_int_value() const { - return value_case() == kIntValue; -} -inline void PromiseAttribute::set_has_int_value() { - _oneof_case_[0] = kIntValue; -} -inline void PromiseAttribute::clear_int_value() { - if (has_int_value()) { - value_.int_value_ = 0; - clear_has_value(); - } -} -inline ::google::protobuf::int32 PromiseAttribute::int_value() const { - // @@protoc_insertion_point(field_get:flyteidl.core.PromiseAttribute.int_value) - if (has_int_value()) { - return value_.int_value_; - } - return 0; -} -inline void PromiseAttribute::set_int_value(::google::protobuf::int32 value) { - if (!has_int_value()) { - clear_value(); - set_has_int_value(); - } - value_.int_value_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.PromiseAttribute.int_value) -} - -inline bool PromiseAttribute::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void PromiseAttribute::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline PromiseAttribute::ValueCase PromiseAttribute::value_case() const { - return PromiseAttribute::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Error - -// string failed_node_id = 1; -inline void Error::clear_failed_node_id() { - failed_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Error::failed_node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Error.failed_node_id) - return failed_node_id_.GetNoArena(); -} -inline void Error::set_failed_node_id(const ::std::string& value) { - - failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Error.failed_node_id) -} -#if LANG_CXX11 -inline void Error::set_failed_node_id(::std::string&& value) { - - failed_node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.failed_node_id) -} -#endif -inline void Error::set_failed_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.failed_node_id) -} -inline void Error::set_failed_node_id(const char* value, size_t size) { - - failed_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Error.failed_node_id) -} -inline ::std::string* Error::mutable_failed_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.failed_node_id) - return failed_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Error::release_failed_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Error.failed_node_id) - - return failed_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Error::set_allocated_failed_node_id(::std::string* failed_node_id) { - if (failed_node_id != nullptr) { - - } else { - - } - failed_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), failed_node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.failed_node_id) -} - -// string message = 2; -inline void Error::clear_message() { - message_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Error::message() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Error.message) - return message_.GetNoArena(); -} -inline void Error::set_message(const ::std::string& value) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Error.message) -} -#if LANG_CXX11 -inline void Error::set_message(::std::string&& value) { - - message_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Error.message) -} -#endif -inline void Error::set_message(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Error.message) -} -inline void Error::set_message(const char* value, size_t size) { - - message_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Error.message) -} -inline ::std::string* Error::mutable_message() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Error.message) - return message_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Error::release_message() { - // @@protoc_insertion_point(field_release:flyteidl.core.Error.message) - - return message_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Error::set_allocated_message(::std::string* message) { - if (message != nullptr) { - - } else { - - } - message_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), message); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Error.message) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType>() { - return ::flyteidl::core::SchemaType_SchemaColumn_SchemaColumnType_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::BlobType_BlobDimensionality> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::BlobType_BlobDimensionality>() { - return ::flyteidl::core::BlobType_BlobDimensionality_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::core::SimpleType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::SimpleType>() { - return ::flyteidl::core::SimpleType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2ftypes_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc deleted file mode 100644 index 7faf2a04a3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/workflow.proto - -#include "flyteidl/core/workflow.pb.h" -#include "flyteidl/core/workflow.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h deleted file mode 100644 index 24dcf482a1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/workflow.proto -#ifndef GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED - -#include "flyteidl/core/workflow.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fworkflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc deleted file mode 100644 index e51e967c13..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.cc +++ /dev/null @@ -1,8538 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow.proto - -#include "flyteidl/core/workflow.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcondition_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Error_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftypes_2eproto ::google::protobuf::internal::SCCInfo<5> scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -namespace flyteidl { -namespace core { -class IfBlockDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _IfBlock_default_instance_; -class IfElseBlockDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Node* else_node_; - const ::flyteidl::core::Error* error_; -} _IfElseBlock_default_instance_; -class BranchNodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _BranchNode_default_instance_; -class TaskNodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Identifier* reference_id_; -} _TaskNode_default_instance_; -class WorkflowNodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::Identifier* launchplan_ref_; - const ::flyteidl::core::Identifier* sub_workflow_ref_; -} _WorkflowNode_default_instance_; -class ApproveConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ApproveCondition_default_instance_; -class SignalConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SignalCondition_default_instance_; -class SleepConditionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SleepCondition_default_instance_; -class GateNodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::ApproveCondition* approve_; - const ::flyteidl::core::SignalCondition* signal_; - const ::flyteidl::core::SleepCondition* sleep_; -} _GateNode_default_instance_; -class ArrayNodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::uint32 min_successes_; - float min_success_ratio_; -} _ArrayNode_default_instance_; -class NodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - bool interruptible_; -} _NodeMetadata_default_instance_; -class AliasDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Alias_default_instance_; -class NodeDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::TaskNode* task_node_; - const ::flyteidl::core::WorkflowNode* workflow_node_; - const ::flyteidl::core::BranchNode* branch_node_; - const ::flyteidl::core::GateNode* gate_node_; - const ::flyteidl::core::ArrayNode* array_node_; -} _Node_default_instance_; -class WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; -class WorkflowMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowMetadata_default_instance_; -class WorkflowMetadataDefaultsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowMetadataDefaults_default_instance_; -class WorkflowTemplateDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowTemplate_default_instance_; -class TaskNodeOverridesDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskNodeOverrides_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsTaskNode_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskNode_default_instance_; - new (ptr) ::flyteidl::core::TaskNode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskNode::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskNode_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -static void InitDefaultsWorkflowNode_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowNode_default_instance_; - new (ptr) ::flyteidl::core::WorkflowNode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowNode::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNode_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsApproveCondition_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_ApproveCondition_default_instance_; - new (ptr) ::flyteidl::core::ApproveCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::ApproveCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsApproveCondition_flyteidl_2fcore_2fworkflow_2eproto}, {}}; - -static void InitDefaultsSignalCondition_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SignalCondition_default_instance_; - new (ptr) ::flyteidl::core::SignalCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SignalCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSignalCondition_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_LiteralType_flyteidl_2fcore_2ftypes_2eproto.base,}}; - -static void InitDefaultsSleepCondition_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_SleepCondition_default_instance_; - new (ptr) ::flyteidl::core::SleepCondition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::SleepCondition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsSleepCondition_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsGateNode_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_GateNode_default_instance_; - new (ptr) ::flyteidl::core::GateNode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::GateNode::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsGateNode_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -static void InitDefaultsArrayNode_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_IfBlock_default_instance_; - new (ptr) ::flyteidl::core::IfBlock(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_IfElseBlock_default_instance_; - new (ptr) ::flyteidl::core::IfElseBlock(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_BranchNode_default_instance_; - new (ptr) ::flyteidl::core::BranchNode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_ArrayNode_default_instance_; - new (ptr) ::flyteidl::core::ArrayNode(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - { - void* ptr = &::flyteidl::core::_Node_default_instance_; - new (ptr) ::flyteidl::core::Node(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::IfBlock::InitAsDefaultInstance(); - ::flyteidl::core::IfElseBlock::InitAsDefaultInstance(); - ::flyteidl::core::BranchNode::InitAsDefaultInstance(); - ::flyteidl::core::ArrayNode::InitAsDefaultInstance(); - ::flyteidl::core::Node::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<8> scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsArrayNode_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_BooleanExpression_flyteidl_2fcore_2fcondition_2eproto.base, - &scc_info_Error_flyteidl_2fcore_2ftypes_2eproto.base, - &scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -static void InitDefaultsNodeMetadata_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_NodeMetadata_default_instance_; - new (ptr) ::flyteidl::core::NodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::NodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsNodeMetadata_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_RetryStrategy_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsAlias_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_Alias_default_instance_; - new (ptr) ::flyteidl::core::Alias(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::Alias::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAlias_flyteidl_2fcore_2fworkflow_2eproto}, {}}; - -static void InitDefaultsWorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse(); - } - ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto}, {}}; - -static void InitDefaultsWorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowMetadata_default_instance_; - new (ptr) ::flyteidl::core::WorkflowMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_QualityOfService_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -static void InitDefaultsWorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowMetadataDefaults_default_instance_; - new (ptr) ::flyteidl::core::WorkflowMetadataDefaults(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowMetadataDefaults::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto}, {}}; - -static void InitDefaultsWorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowTemplate_default_instance_; - new (ptr) ::flyteidl::core::WorkflowTemplate(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowTemplate::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsWorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_Binding_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base,}}; - -static void InitDefaultsTaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_TaskNodeOverrides_default_instance_; - new (ptr) ::flyteidl::core::TaskNodeOverrides(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::TaskNodeOverrides::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base, - &scc_info_ExtendedResources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fworkflow_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadata_TagsEntry_DoNotUse_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[18]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fworkflow_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fworkflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, condition_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfBlock, then_node_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, case__), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, other_), - offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, else_node_), - offsetof(::flyteidl::core::IfElseBlockDefaultTypeInternal, error_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::IfElseBlock, default_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BranchNode, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::BranchNode, if_else_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::TaskNodeDefaultTypeInternal, reference_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, overrides_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNode, reference_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, launchplan_ref_), - offsetof(::flyteidl::core::WorkflowNodeDefaultTypeInternal, sub_workflow_ref_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowNode, reference_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ApproveCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ApproveCondition, signal_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, signal_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SignalCondition, output_variable_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SleepCondition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::SleepCondition, duration_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, approve_), - offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, signal_), - offsetof(::flyteidl::core::GateNodeDefaultTypeInternal, sleep_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::GateNode, condition_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, parallelism_), - offsetof(::flyteidl::core::ArrayNodeDefaultTypeInternal, min_successes_), - offsetof(::flyteidl::core::ArrayNodeDefaultTypeInternal, min_success_ratio_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::ArrayNode, success_criteria_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, timeout_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, retries_), - offsetof(::flyteidl::core::NodeMetadataDefaultTypeInternal, interruptible_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::NodeMetadata, interruptible_value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, var_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Alias, alias_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, upstream_node_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, output_aliases_), - offsetof(::flyteidl::core::NodeDefaultTypeInternal, task_node_), - offsetof(::flyteidl::core::NodeDefaultTypeInternal, workflow_node_), - offsetof(::flyteidl::core::NodeDefaultTypeInternal, branch_node_), - offsetof(::flyteidl::core::NodeDefaultTypeInternal, gate_node_), - offsetof(::flyteidl::core::NodeDefaultTypeInternal, array_node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::Node, target_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, quality_of_service_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, on_failure_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadata, tags_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadataDefaults, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowMetadataDefaults, interruptible_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, interface_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, nodes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, outputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, failure_node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowTemplate, metadata_defaults_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNodeOverrides, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNodeOverrides, resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::TaskNodeOverrides, extended_resources_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::IfBlock)}, - { 7, -1, sizeof(::flyteidl::core::IfElseBlock)}, - { 17, -1, sizeof(::flyteidl::core::BranchNode)}, - { 23, -1, sizeof(::flyteidl::core::TaskNode)}, - { 31, -1, sizeof(::flyteidl::core::WorkflowNode)}, - { 39, -1, sizeof(::flyteidl::core::ApproveCondition)}, - { 45, -1, sizeof(::flyteidl::core::SignalCondition)}, - { 53, -1, sizeof(::flyteidl::core::SleepCondition)}, - { 59, -1, sizeof(::flyteidl::core::GateNode)}, - { 68, -1, sizeof(::flyteidl::core::ArrayNode)}, - { 78, -1, sizeof(::flyteidl::core::NodeMetadata)}, - { 88, -1, sizeof(::flyteidl::core::Alias)}, - { 95, -1, sizeof(::flyteidl::core::Node)}, - { 111, 118, sizeof(::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse)}, - { 120, -1, sizeof(::flyteidl::core::WorkflowMetadata)}, - { 128, -1, sizeof(::flyteidl::core::WorkflowMetadataDefaults)}, - { 134, -1, sizeof(::flyteidl::core::WorkflowTemplate)}, - { 146, -1, sizeof(::flyteidl::core::TaskNodeOverrides)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_IfBlock_default_instance_), - reinterpret_cast(&::flyteidl::core::_IfElseBlock_default_instance_), - reinterpret_cast(&::flyteidl::core::_BranchNode_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskNode_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowNode_default_instance_), - reinterpret_cast(&::flyteidl::core::_ApproveCondition_default_instance_), - reinterpret_cast(&::flyteidl::core::_SignalCondition_default_instance_), - reinterpret_cast(&::flyteidl::core::_SleepCondition_default_instance_), - reinterpret_cast(&::flyteidl::core::_GateNode_default_instance_), - reinterpret_cast(&::flyteidl::core::_ArrayNode_default_instance_), - reinterpret_cast(&::flyteidl::core::_NodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_Alias_default_instance_), - reinterpret_cast(&::flyteidl::core::_Node_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowMetadata_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowMetadataDefaults_default_instance_), - reinterpret_cast(&::flyteidl::core::_WorkflowTemplate_default_instance_), - reinterpret_cast(&::flyteidl::core::_TaskNodeOverrides_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto, "flyteidl/core/workflow.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fworkflow_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto, 18, file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fworkflow_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fworkflow_2eproto[] = - "\n\034flyteidl/core/workflow.proto\022\rflyteidl" - ".core\032\035flyteidl/core/condition.proto\032\035fl" - "yteidl/core/execution.proto\032\036flyteidl/co" - "re/identifier.proto\032\035flyteidl/core/inter" - "face.proto\032\034flyteidl/core/literals.proto" - "\032\031flyteidl/core/tasks.proto\032\031flyteidl/co" - "re/types.proto\032\034flyteidl/core/security.p" - "roto\032\036google/protobuf/duration.proto\"f\n\007" - "IfBlock\0223\n\tcondition\030\001 \001(\0132 .flyteidl.co" - "re.BooleanExpression\022&\n\tthen_node\030\002 \001(\0132" - "\023.flyteidl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004" - "case\030\001 \001(\0132\026.flyteidl.core.IfBlock\022%\n\005ot" - "her\030\002 \003(\0132\026.flyteidl.core.IfBlock\022(\n\tels" - "e_node\030\003 \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005e" - "rror\030\004 \001(\0132\024.flyteidl.core.ErrorH\000B\t\n\007de" - "fault\"9\n\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.f" - "lyteidl.core.IfElseBlock\"\177\n\010TaskNode\0221\n\014" - "reference_id\030\001 \001(\0132\031.flyteidl.core.Ident" - "ifierH\000\0223\n\toverrides\030\002 \001(\0132 .flyteidl.co" - "re.TaskNodeOverridesB\013\n\treference\"\207\001\n\014Wo" - "rkflowNode\0223\n\016launchplan_ref\030\001 \001(\0132\031.fly" - "teidl.core.IdentifierH\000\0225\n\020sub_workflow_" - "ref\030\002 \001(\0132\031.flyteidl.core.IdentifierH\000B\013" - "\n\treference\"%\n\020ApproveCondition\022\021\n\tsigna" - "l_id\030\001 \001(\t\"l\n\017SignalCondition\022\021\n\tsignal_" - "id\030\001 \001(\t\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" - "iteralType\022\034\n\024output_variable_name\030\003 \001(\t" - "\"=\n\016SleepCondition\022+\n\010duration\030\001 \001(\0132\031.g" - "oogle.protobuf.Duration\"\255\001\n\010GateNode\0222\n\007" - "approve\030\001 \001(\0132\037.flyteidl.core.ApproveCon" - "ditionH\000\0220\n\006signal\030\002 \001(\0132\036.flyteidl.core" - ".SignalConditionH\000\022.\n\005sleep\030\003 \001(\0132\035.flyt" - "eidl.core.SleepConditionH\000B\013\n\tcondition\"" - "\215\001\n\tArrayNode\022!\n\004node\030\001 \001(\0132\023.flyteidl.c" - "ore.Node\022\023\n\013parallelism\030\002 \001(\r\022\027\n\rmin_suc" - "cesses\030\003 \001(\rH\000\022\033\n\021min_success_ratio\030\004 \001(" - "\002H\000B\022\n\020success_criteria\"\247\001\n\014NodeMetadata" - "\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google" - ".protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.fl" - "yteidl.core.RetryStrategy\022\027\n\rinterruptib" - "le\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Ali" - "as\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\260\003\n\004Node\022" - "\n\n\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl" - ".core.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.fly" - "teidl.core.Binding\022\031\n\021upstream_node_ids\030" - "\004 \003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl" - ".core.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteid" - "l.core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\013" - "2\033.flyteidl.core.WorkflowNodeH\000\0220\n\013branc" - "h_node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH" - "\000\022,\n\tgate_node\030\t \001(\0132\027.flyteidl.core.Gat" - "eNodeH\000\022.\n\narray_node\030\n \001(\0132\030.flyteidl.c" - "ore.ArrayNodeH\000B\010\n\006target\"\315\002\n\020WorkflowMe" - "tadata\022;\n\022quality_of_service\030\001 \001(\0132\037.fly" - "teidl.core.QualityOfService\022C\n\non_failur" - "e\030\002 \001(\0162/.flyteidl.core.WorkflowMetadata" - ".OnFailurePolicy\0227\n\004tags\030\003 \003(\0132).flyteid" - "l.core.WorkflowMetadata.TagsEntry\032+\n\tTag" - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q" - "\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020\000\022" - "(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\020" - "\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinterru" - "ptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002id\030" - "\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010meta" - "data\030\002 \001(\0132\037.flyteidl.core.WorkflowMetad" - "ata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core.T" - "ypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteidl." - "core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl.co" - "re.Binding\022)\n\014failure_node\030\006 \001(\0132\023.flyte" - "idl.core.Node\022B\n\021metadata_defaults\030\007 \001(\013" - "2\'.flyteidl.core.WorkflowMetadataDefault" - "s\"~\n\021TaskNodeOverrides\022+\n\tresources\030\001 \001(" - "\0132\030.flyteidl.core.Resources\022<\n\022extended_" - "resources\030\002 \001(\0132 .flyteidl.core.Extended" - "ResourcesB= 1900 -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::FAIL_IMMEDIATELY; -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::OnFailurePolicy_MIN; -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata::OnFailurePolicy_MAX; -const int WorkflowMetadata::OnFailurePolicy_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void IfBlock::InitAsDefaultInstance() { - ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->condition_ = const_cast< ::flyteidl::core::BooleanExpression*>( - ::flyteidl::core::BooleanExpression::internal_default_instance()); - ::flyteidl::core::_IfBlock_default_instance_._instance.get_mutable()->then_node_ = const_cast< ::flyteidl::core::Node*>( - ::flyteidl::core::Node::internal_default_instance()); -} -class IfBlock::HasBitSetters { - public: - static const ::flyteidl::core::BooleanExpression& condition(const IfBlock* msg); - static const ::flyteidl::core::Node& then_node(const IfBlock* msg); -}; - -const ::flyteidl::core::BooleanExpression& -IfBlock::HasBitSetters::condition(const IfBlock* msg) { - return *msg->condition_; -} -const ::flyteidl::core::Node& -IfBlock::HasBitSetters::then_node(const IfBlock* msg) { - return *msg->then_node_; -} -void IfBlock::clear_condition() { - if (GetArenaNoVirtual() == nullptr && condition_ != nullptr) { - delete condition_; - } - condition_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IfBlock::kConditionFieldNumber; -const int IfBlock::kThenNodeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IfBlock::IfBlock() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.IfBlock) -} -IfBlock::IfBlock(const IfBlock& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_condition()) { - condition_ = new ::flyteidl::core::BooleanExpression(*from.condition_); - } else { - condition_ = nullptr; - } - if (from.has_then_node()) { - then_node_ = new ::flyteidl::core::Node(*from.then_node_); - } else { - then_node_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfBlock) -} - -void IfBlock::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::memset(&condition_, 0, static_cast( - reinterpret_cast(&then_node_) - - reinterpret_cast(&condition_)) + sizeof(then_node_)); -} - -IfBlock::~IfBlock() { - // @@protoc_insertion_point(destructor:flyteidl.core.IfBlock) - SharedDtor(); -} - -void IfBlock::SharedDtor() { - if (this != internal_default_instance()) delete condition_; - if (this != internal_default_instance()) delete then_node_; -} - -void IfBlock::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IfBlock& IfBlock::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void IfBlock::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && condition_ != nullptr) { - delete condition_; - } - condition_ = nullptr; - if (GetArenaNoVirtual() == nullptr && then_node_ != nullptr) { - delete then_node_; - } - then_node_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IfBlock::_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.BooleanExpression condition = 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::BooleanExpression::_InternalParse; - object = msg->mutable_condition(); - 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.core.Node then_node = 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::core::Node::_InternalParse; - object = msg->mutable_then_node(); - 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 IfBlock::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.core.IfBlock) - 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.BooleanExpression condition = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_condition())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Node then_node = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_then_node())); - } 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.core.IfBlock) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.IfBlock) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IfBlock::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.IfBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BooleanExpression condition = 1; - if (this->has_condition()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::condition(this), output); - } - - // .flyteidl.core.Node then_node = 2; - if (this->has_then_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::then_node(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.IfBlock) -} - -::google::protobuf::uint8* IfBlock::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.BooleanExpression condition = 1; - if (this->has_condition()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::condition(this), target); - } - - // .flyteidl.core.Node then_node = 2; - if (this->has_then_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::then_node(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.core.IfBlock) - return target; -} - -size_t IfBlock::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfBlock) - 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.BooleanExpression condition = 1; - if (this->has_condition()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *condition_); - } - - // .flyteidl.core.Node then_node = 2; - if (this->has_then_node()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *then_node_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IfBlock::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfBlock) - GOOGLE_DCHECK_NE(&from, this); - const IfBlock* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfBlock) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfBlock) - MergeFrom(*source); - } -} - -void IfBlock::MergeFrom(const IfBlock& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfBlock) - 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_condition()) { - mutable_condition()->::flyteidl::core::BooleanExpression::MergeFrom(from.condition()); - } - if (from.has_then_node()) { - mutable_then_node()->::flyteidl::core::Node::MergeFrom(from.then_node()); - } -} - -void IfBlock::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfBlock) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IfBlock::CopyFrom(const IfBlock& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfBlock) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IfBlock::IsInitialized() const { - return true; -} - -void IfBlock::Swap(IfBlock* other) { - if (other == this) return; - InternalSwap(other); -} -void IfBlock::InternalSwap(IfBlock* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(condition_, other->condition_); - swap(then_node_, other->then_node_); -} - -::google::protobuf::Metadata IfBlock::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void IfElseBlock::InitAsDefaultInstance() { - ::flyteidl::core::_IfElseBlock_default_instance_._instance.get_mutable()->case__ = const_cast< ::flyteidl::core::IfBlock*>( - ::flyteidl::core::IfBlock::internal_default_instance()); - ::flyteidl::core::_IfElseBlock_default_instance_.else_node_ = const_cast< ::flyteidl::core::Node*>( - ::flyteidl::core::Node::internal_default_instance()); - ::flyteidl::core::_IfElseBlock_default_instance_.error_ = const_cast< ::flyteidl::core::Error*>( - ::flyteidl::core::Error::internal_default_instance()); -} -class IfElseBlock::HasBitSetters { - public: - static const ::flyteidl::core::IfBlock& case_(const IfElseBlock* msg); - static const ::flyteidl::core::Node& else_node(const IfElseBlock* msg); - static const ::flyteidl::core::Error& error(const IfElseBlock* msg); -}; - -const ::flyteidl::core::IfBlock& -IfElseBlock::HasBitSetters::case_(const IfElseBlock* msg) { - return *msg->case__; -} -const ::flyteidl::core::Node& -IfElseBlock::HasBitSetters::else_node(const IfElseBlock* msg) { - return *msg->default_.else_node_; -} -const ::flyteidl::core::Error& -IfElseBlock::HasBitSetters::error(const IfElseBlock* msg) { - return *msg->default_.error_; -} -void IfElseBlock::set_allocated_else_node(::flyteidl::core::Node* else_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_default(); - if (else_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - else_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, else_node, submessage_arena); - } - set_has_else_node(); - default_.else_node_ = else_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.else_node) -} -void IfElseBlock::set_allocated_error(::flyteidl::core::Error* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_default(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - default_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.error) -} -void IfElseBlock::clear_error() { - if (has_error()) { - delete default_.error_; - clear_has_default(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int IfElseBlock::kCaseFieldNumber; -const int IfElseBlock::kOtherFieldNumber; -const int IfElseBlock::kElseNodeFieldNumber; -const int IfElseBlock::kErrorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -IfElseBlock::IfElseBlock() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.IfElseBlock) -} -IfElseBlock::IfElseBlock(const IfElseBlock& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - other_(from.other_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_case_()) { - case__ = new ::flyteidl::core::IfBlock(*from.case__); - } else { - case__ = nullptr; - } - clear_has_default(); - switch (from.default_case()) { - case kElseNode: { - mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); - break; - } - case DEFAULT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.IfElseBlock) -} - -void IfElseBlock::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - case__ = nullptr; - clear_has_default(); -} - -IfElseBlock::~IfElseBlock() { - // @@protoc_insertion_point(destructor:flyteidl.core.IfElseBlock) - SharedDtor(); -} - -void IfElseBlock::SharedDtor() { - if (this != internal_default_instance()) delete case__; - if (has_default()) { - clear_default(); - } -} - -void IfElseBlock::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const IfElseBlock& IfElseBlock::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void IfElseBlock::clear_default() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.IfElseBlock) - switch (default_case()) { - case kElseNode: { - delete default_.else_node_; - break; - } - case kError: { - delete default_.error_; - break; - } - case DEFAULT_NOT_SET: { - break; - } - } - _oneof_case_[0] = DEFAULT_NOT_SET; -} - - -void IfElseBlock::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.IfElseBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - other_.Clear(); - if (GetArenaNoVirtual() == nullptr && case__ != nullptr) { - delete case__; - } - case__ = nullptr; - clear_default(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* IfElseBlock::_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.IfBlock case = 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::IfBlock::_InternalParse; - object = msg->mutable_case_(); - 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; - } - // repeated .flyteidl.core.IfBlock other = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::IfBlock::_InternalParse; - object = msg->add_other(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // .flyteidl.core.Node else_node = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Node::_InternalParse; - object = msg->mutable_else_node(); - 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.core.Error error = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Error::_InternalParse; - object = msg->mutable_error(); - 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 IfElseBlock::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.core.IfElseBlock) - 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.IfBlock case = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_case_())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.IfBlock other = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_other())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Node else_node = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_else_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Error error = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } 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.core.IfElseBlock) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.IfElseBlock) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void IfElseBlock::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.IfElseBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IfBlock case = 1; - if (this->has_case_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::case_(this), output); - } - - // repeated .flyteidl.core.IfBlock other = 2; - for (unsigned int i = 0, - n = static_cast(this->other_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->other(static_cast(i)), - output); - } - - // .flyteidl.core.Node else_node = 3; - if (has_else_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::else_node(this), output); - } - - // .flyteidl.core.Error error = 4; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::error(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.IfElseBlock) -} - -::google::protobuf::uint8* IfElseBlock::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.IfElseBlock) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IfBlock case = 1; - if (this->has_case_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::case_(this), target); - } - - // repeated .flyteidl.core.IfBlock other = 2; - for (unsigned int i = 0, - n = static_cast(this->other_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->other(static_cast(i)), target); - } - - // .flyteidl.core.Node else_node = 3; - if (has_else_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::else_node(this), target); - } - - // .flyteidl.core.Error error = 4; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::error(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.core.IfElseBlock) - return target; -} - -size_t IfElseBlock::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.IfElseBlock) - 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; - - // repeated .flyteidl.core.IfBlock other = 2; - { - unsigned int count = static_cast(this->other_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->other(static_cast(i))); - } - } - - // .flyteidl.core.IfBlock case = 1; - if (this->has_case_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *case__); - } - - switch (default_case()) { - // .flyteidl.core.Node else_node = 3; - case kElseNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *default_.else_node_); - break; - } - // .flyteidl.core.Error error = 4; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *default_.error_); - break; - } - case DEFAULT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void IfElseBlock::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.IfElseBlock) - GOOGLE_DCHECK_NE(&from, this); - const IfElseBlock* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.IfElseBlock) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.IfElseBlock) - MergeFrom(*source); - } -} - -void IfElseBlock::MergeFrom(const IfElseBlock& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.IfElseBlock) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - other_.MergeFrom(from.other_); - if (from.has_case_()) { - mutable_case_()->::flyteidl::core::IfBlock::MergeFrom(from.case_()); - } - switch (from.default_case()) { - case kElseNode: { - mutable_else_node()->::flyteidl::core::Node::MergeFrom(from.else_node()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::Error::MergeFrom(from.error()); - break; - } - case DEFAULT_NOT_SET: { - break; - } - } -} - -void IfElseBlock::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.IfElseBlock) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void IfElseBlock::CopyFrom(const IfElseBlock& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.IfElseBlock) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool IfElseBlock::IsInitialized() const { - return true; -} - -void IfElseBlock::Swap(IfElseBlock* other) { - if (other == this) return; - InternalSwap(other); -} -void IfElseBlock::InternalSwap(IfElseBlock* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&other_)->InternalSwap(CastToBase(&other->other_)); - swap(case__, other->case__); - swap(default_, other->default_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata IfElseBlock::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void BranchNode::InitAsDefaultInstance() { - ::flyteidl::core::_BranchNode_default_instance_._instance.get_mutable()->if_else_ = const_cast< ::flyteidl::core::IfElseBlock*>( - ::flyteidl::core::IfElseBlock::internal_default_instance()); -} -class BranchNode::HasBitSetters { - public: - static const ::flyteidl::core::IfElseBlock& if_else(const BranchNode* msg); -}; - -const ::flyteidl::core::IfElseBlock& -BranchNode::HasBitSetters::if_else(const BranchNode* msg) { - return *msg->if_else_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int BranchNode::kIfElseFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -BranchNode::BranchNode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.BranchNode) -} -BranchNode::BranchNode(const BranchNode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_if_else()) { - if_else_ = new ::flyteidl::core::IfElseBlock(*from.if_else_); - } else { - if_else_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.BranchNode) -} - -void BranchNode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - if_else_ = nullptr; -} - -BranchNode::~BranchNode() { - // @@protoc_insertion_point(destructor:flyteidl.core.BranchNode) - SharedDtor(); -} - -void BranchNode::SharedDtor() { - if (this != internal_default_instance()) delete if_else_; -} - -void BranchNode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const BranchNode& BranchNode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void BranchNode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.BranchNode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && if_else_ != nullptr) { - delete if_else_; - } - if_else_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* BranchNode::_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.IfElseBlock if_else = 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::IfElseBlock::_InternalParse; - object = msg->mutable_if_else(); - 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 BranchNode::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.core.BranchNode) - 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.IfElseBlock if_else = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_if_else())); - } 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.core.BranchNode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.BranchNode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void BranchNode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.BranchNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IfElseBlock if_else = 1; - if (this->has_if_else()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::if_else(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.BranchNode) -} - -::google::protobuf::uint8* BranchNode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.BranchNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.IfElseBlock if_else = 1; - if (this->has_if_else()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::if_else(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.core.BranchNode) - return target; -} - -size_t BranchNode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.BranchNode) - 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.IfElseBlock if_else = 1; - if (this->has_if_else()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *if_else_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void BranchNode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.BranchNode) - GOOGLE_DCHECK_NE(&from, this); - const BranchNode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.BranchNode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.BranchNode) - MergeFrom(*source); - } -} - -void BranchNode::MergeFrom(const BranchNode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.BranchNode) - 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_if_else()) { - mutable_if_else()->::flyteidl::core::IfElseBlock::MergeFrom(from.if_else()); - } -} - -void BranchNode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.BranchNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void BranchNode::CopyFrom(const BranchNode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.BranchNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool BranchNode::IsInitialized() const { - return true; -} - -void BranchNode::Swap(BranchNode* other) { - if (other == this) return; - InternalSwap(other); -} -void BranchNode::InternalSwap(BranchNode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(if_else_, other->if_else_); -} - -::google::protobuf::Metadata BranchNode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskNode::InitAsDefaultInstance() { - ::flyteidl::core::_TaskNode_default_instance_.reference_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_TaskNode_default_instance_._instance.get_mutable()->overrides_ = const_cast< ::flyteidl::core::TaskNodeOverrides*>( - ::flyteidl::core::TaskNodeOverrides::internal_default_instance()); -} -class TaskNode::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& reference_id(const TaskNode* msg); - static const ::flyteidl::core::TaskNodeOverrides& overrides(const TaskNode* msg); -}; - -const ::flyteidl::core::Identifier& -TaskNode::HasBitSetters::reference_id(const TaskNode* msg) { - return *msg->reference_.reference_id_; -} -const ::flyteidl::core::TaskNodeOverrides& -TaskNode::HasBitSetters::overrides(const TaskNode* msg) { - return *msg->overrides_; -} -void TaskNode::set_allocated_reference_id(::flyteidl::core::Identifier* reference_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_reference(); - if (reference_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reference_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reference_id, submessage_arena); - } - set_has_reference_id(); - reference_.reference_id_ = reference_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNode.reference_id) -} -void TaskNode::clear_reference_id() { - if (has_reference_id()) { - delete reference_.reference_id_; - clear_has_reference(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskNode::kReferenceIdFieldNumber; -const int TaskNode::kOverridesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskNode::TaskNode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskNode) -} -TaskNode::TaskNode(const TaskNode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_overrides()) { - overrides_ = new ::flyteidl::core::TaskNodeOverrides(*from.overrides_); - } else { - overrides_ = nullptr; - } - clear_has_reference(); - switch (from.reference_case()) { - case kReferenceId: { - mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskNode) -} - -void TaskNode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); - overrides_ = nullptr; - clear_has_reference(); -} - -TaskNode::~TaskNode() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskNode) - SharedDtor(); -} - -void TaskNode::SharedDtor() { - if (this != internal_default_instance()) delete overrides_; - if (has_reference()) { - clear_reference(); - } -} - -void TaskNode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskNode& TaskNode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void TaskNode::clear_reference() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.TaskNode) - switch (reference_case()) { - case kReferenceId: { - delete reference_.reference_id_; - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - _oneof_case_[0] = REFERENCE_NOT_SET; -} - - -void TaskNode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskNode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && overrides_ != nullptr) { - delete overrides_; - } - overrides_ = nullptr; - clear_reference(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskNode::_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 reference_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_reference_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; - } - // .flyteidl.core.TaskNodeOverrides overrides = 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::core::TaskNodeOverrides::_InternalParse; - object = msg->mutable_overrides(); - 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 TaskNode::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.core.TaskNode) - 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 reference_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reference_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskNodeOverrides overrides = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_overrides())); - } 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.core.TaskNode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskNode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskNode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier reference_id = 1; - if (has_reference_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::reference_id(this), output); - } - - // .flyteidl.core.TaskNodeOverrides overrides = 2; - if (this->has_overrides()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::overrides(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskNode) -} - -::google::protobuf::uint8* TaskNode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier reference_id = 1; - if (has_reference_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reference_id(this), target); - } - - // .flyteidl.core.TaskNodeOverrides overrides = 2; - if (this->has_overrides()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::overrides(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.core.TaskNode) - return target; -} - -size_t TaskNode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskNode) - 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.TaskNodeOverrides overrides = 2; - if (this->has_overrides()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *overrides_); - } - - switch (reference_case()) { - // .flyteidl.core.Identifier reference_id = 1; - case kReferenceId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_.reference_id_); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskNode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskNode) - GOOGLE_DCHECK_NE(&from, this); - const TaskNode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskNode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskNode) - MergeFrom(*source); - } -} - -void TaskNode::MergeFrom(const TaskNode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskNode) - 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_overrides()) { - mutable_overrides()->::flyteidl::core::TaskNodeOverrides::MergeFrom(from.overrides()); - } - switch (from.reference_case()) { - case kReferenceId: { - mutable_reference_id()->::flyteidl::core::Identifier::MergeFrom(from.reference_id()); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } -} - -void TaskNode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskNode::CopyFrom(const TaskNode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskNode::IsInitialized() const { - return true; -} - -void TaskNode::Swap(TaskNode* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskNode::InternalSwap(TaskNode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(overrides_, other->overrides_); - swap(reference_, other->reference_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata TaskNode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowNode::InitAsDefaultInstance() { - ::flyteidl::core::_WorkflowNode_default_instance_.launchplan_ref_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_WorkflowNode_default_instance_.sub_workflow_ref_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class WorkflowNode::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& launchplan_ref(const WorkflowNode* msg); - static const ::flyteidl::core::Identifier& sub_workflow_ref(const WorkflowNode* msg); -}; - -const ::flyteidl::core::Identifier& -WorkflowNode::HasBitSetters::launchplan_ref(const WorkflowNode* msg) { - return *msg->reference_.launchplan_ref_; -} -const ::flyteidl::core::Identifier& -WorkflowNode::HasBitSetters::sub_workflow_ref(const WorkflowNode* msg) { - return *msg->reference_.sub_workflow_ref_; -} -void WorkflowNode::set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_reference(); - if (launchplan_ref) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launchplan_ref = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launchplan_ref, submessage_arena); - } - set_has_launchplan_ref(); - reference_.launchplan_ref_ = launchplan_ref; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.launchplan_ref) -} -void WorkflowNode::clear_launchplan_ref() { - if (has_launchplan_ref()) { - delete reference_.launchplan_ref_; - clear_has_reference(); - } -} -void WorkflowNode::set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_reference(); - if (sub_workflow_ref) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sub_workflow_ref = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sub_workflow_ref, submessage_arena); - } - set_has_sub_workflow_ref(); - reference_.sub_workflow_ref_ = sub_workflow_ref; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowNode.sub_workflow_ref) -} -void WorkflowNode::clear_sub_workflow_ref() { - if (has_sub_workflow_ref()) { - delete reference_.sub_workflow_ref_; - clear_has_reference(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowNode::kLaunchplanRefFieldNumber; -const int WorkflowNode::kSubWorkflowRefFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowNode::WorkflowNode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowNode) -} -WorkflowNode::WorkflowNode(const WorkflowNode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_reference(); - switch (from.reference_case()) { - case kLaunchplanRef: { - mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); - break; - } - case kSubWorkflowRef: { - mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowNode) -} - -void WorkflowNode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); - clear_has_reference(); -} - -WorkflowNode::~WorkflowNode() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowNode) - SharedDtor(); -} - -void WorkflowNode::SharedDtor() { - if (has_reference()) { - clear_reference(); - } -} - -void WorkflowNode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowNode& WorkflowNode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowNode::clear_reference() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.WorkflowNode) - switch (reference_case()) { - case kLaunchplanRef: { - delete reference_.launchplan_ref_; - break; - } - case kSubWorkflowRef: { - delete reference_.sub_workflow_ref_; - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - _oneof_case_[0] = REFERENCE_NOT_SET; -} - - -void WorkflowNode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowNode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_reference(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowNode::_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 launchplan_ref = 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_launchplan_ref(); - 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.core.Identifier sub_workflow_ref = 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::core::Identifier::_InternalParse; - object = msg->mutable_sub_workflow_ref(); - 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 WorkflowNode::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.core.WorkflowNode) - 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 launchplan_ref = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launchplan_ref())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier sub_workflow_ref = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sub_workflow_ref())); - } 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.core.WorkflowNode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowNode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowNode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier launchplan_ref = 1; - if (has_launchplan_ref()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::launchplan_ref(this), output); - } - - // .flyteidl.core.Identifier sub_workflow_ref = 2; - if (has_sub_workflow_ref()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::sub_workflow_ref(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowNode) -} - -::google::protobuf::uint8* WorkflowNode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier launchplan_ref = 1; - if (has_launchplan_ref()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::launchplan_ref(this), target); - } - - // .flyteidl.core.Identifier sub_workflow_ref = 2; - if (has_sub_workflow_ref()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::sub_workflow_ref(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.core.WorkflowNode) - return target; -} - -size_t WorkflowNode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowNode) - 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 (reference_case()) { - // .flyteidl.core.Identifier launchplan_ref = 1; - case kLaunchplanRef: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_.launchplan_ref_); - break; - } - // .flyteidl.core.Identifier sub_workflow_ref = 2; - case kSubWorkflowRef: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_.sub_workflow_ref_); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowNode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowNode) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowNode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowNode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowNode) - MergeFrom(*source); - } -} - -void WorkflowNode::MergeFrom(const WorkflowNode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowNode) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.reference_case()) { - case kLaunchplanRef: { - mutable_launchplan_ref()->::flyteidl::core::Identifier::MergeFrom(from.launchplan_ref()); - break; - } - case kSubWorkflowRef: { - mutable_sub_workflow_ref()->::flyteidl::core::Identifier::MergeFrom(from.sub_workflow_ref()); - break; - } - case REFERENCE_NOT_SET: { - break; - } - } -} - -void WorkflowNode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowNode::CopyFrom(const WorkflowNode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowNode::IsInitialized() const { - return true; -} - -void WorkflowNode::Swap(WorkflowNode* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowNode::InternalSwap(WorkflowNode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(reference_, other->reference_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata WorkflowNode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ApproveCondition::InitAsDefaultInstance() { -} -class ApproveCondition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ApproveCondition::kSignalIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ApproveCondition::ApproveCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ApproveCondition) -} -ApproveCondition::ApproveCondition(const ApproveCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.signal_id().size() > 0) { - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ApproveCondition) -} - -void ApproveCondition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ApproveCondition::~ApproveCondition() { - // @@protoc_insertion_point(destructor:flyteidl.core.ApproveCondition) - SharedDtor(); -} - -void ApproveCondition::SharedDtor() { - signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ApproveCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ApproveCondition& ApproveCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ApproveCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void ApproveCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ApproveCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ApproveCondition::_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) { - // string signal_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.ApproveCondition.signal_id"); - object = msg->mutable_signal_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ApproveCondition::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.core.ApproveCondition) - 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)) { - // string signal_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_signal_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.ApproveCondition.signal_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.core.ApproveCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ApproveCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ApproveCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ApproveCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ApproveCondition.signal_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->signal_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ApproveCondition) -} - -::google::protobuf::uint8* ApproveCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ApproveCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.ApproveCondition.signal_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->signal_id(), 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.core.ApproveCondition) - return target; -} - -size_t ApproveCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ApproveCondition) - 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; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->signal_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ApproveCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ApproveCondition) - GOOGLE_DCHECK_NE(&from, this); - const ApproveCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ApproveCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ApproveCondition) - MergeFrom(*source); - } -} - -void ApproveCondition::MergeFrom(const ApproveCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ApproveCondition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.signal_id().size() > 0) { - - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } -} - -void ApproveCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ApproveCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ApproveCondition::CopyFrom(const ApproveCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ApproveCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ApproveCondition::IsInitialized() const { - return true; -} - -void ApproveCondition::Swap(ApproveCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void ApproveCondition::InternalSwap(ApproveCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ApproveCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SignalCondition::InitAsDefaultInstance() { - ::flyteidl::core::_SignalCondition_default_instance_._instance.get_mutable()->type_ = const_cast< ::flyteidl::core::LiteralType*>( - ::flyteidl::core::LiteralType::internal_default_instance()); -} -class SignalCondition::HasBitSetters { - public: - static const ::flyteidl::core::LiteralType& type(const SignalCondition* msg); -}; - -const ::flyteidl::core::LiteralType& -SignalCondition::HasBitSetters::type(const SignalCondition* msg) { - return *msg->type_; -} -void SignalCondition::clear_type() { - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SignalCondition::kSignalIdFieldNumber; -const int SignalCondition::kTypeFieldNumber; -const int SignalCondition::kOutputVariableNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SignalCondition::SignalCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SignalCondition) -} -SignalCondition::SignalCondition(const SignalCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.signal_id().size() > 0) { - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } - output_variable_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.output_variable_name().size() > 0) { - output_variable_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_variable_name_); - } - if (from.has_type()) { - type_ = new ::flyteidl::core::LiteralType(*from.type_); - } else { - type_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SignalCondition) -} - -void SignalCondition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - signal_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_variable_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - type_ = nullptr; -} - -SignalCondition::~SignalCondition() { - // @@protoc_insertion_point(destructor:flyteidl.core.SignalCondition) - SharedDtor(); -} - -void SignalCondition::SharedDtor() { - signal_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_variable_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete type_; -} - -void SignalCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SignalCondition& SignalCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SignalCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void SignalCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SignalCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - output_variable_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && type_ != nullptr) { - delete type_; - } - type_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SignalCondition::_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) { - // string signal_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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalCondition.signal_id"); - object = msg->mutable_signal_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.LiteralType type = 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::core::LiteralType::_InternalParse; - object = msg->mutable_type(); - 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; - } - // string output_variable_name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.SignalCondition.output_variable_name"); - object = msg->mutable_output_variable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SignalCondition::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.core.SignalCondition) - 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)) { - // string signal_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_signal_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.SignalCondition.signal_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralType type = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_type())); - } else { - goto handle_unusual; - } - break; - } - - // string output_variable_name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_variable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_variable_name().data(), static_cast(this->output_variable_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.SignalCondition.output_variable_name")); - } 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.core.SignalCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SignalCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SignalCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SignalCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalCondition.signal_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->signal_id(), output); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::type(this), output); - } - - // string output_variable_name = 3; - if (this->output_variable_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_variable_name().data(), static_cast(this->output_variable_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalCondition.output_variable_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->output_variable_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.SignalCondition) -} - -::google::protobuf::uint8* SignalCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SignalCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signal_id().data(), static_cast(this->signal_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalCondition.signal_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->signal_id(), target); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::type(this), target); - } - - // string output_variable_name = 3; - if (this->output_variable_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_variable_name().data(), static_cast(this->output_variable_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.SignalCondition.output_variable_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->output_variable_name(), 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.core.SignalCondition) - return target; -} - -size_t SignalCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SignalCondition) - 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; - - // string signal_id = 1; - if (this->signal_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->signal_id()); - } - - // string output_variable_name = 3; - if (this->output_variable_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_variable_name()); - } - - // .flyteidl.core.LiteralType type = 2; - if (this->has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *type_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SignalCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SignalCondition) - GOOGLE_DCHECK_NE(&from, this); - const SignalCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SignalCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SignalCondition) - MergeFrom(*source); - } -} - -void SignalCondition::MergeFrom(const SignalCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SignalCondition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.signal_id().size() > 0) { - - signal_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signal_id_); - } - if (from.output_variable_name().size() > 0) { - - output_variable_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_variable_name_); - } - if (from.has_type()) { - mutable_type()->::flyteidl::core::LiteralType::MergeFrom(from.type()); - } -} - -void SignalCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SignalCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SignalCondition::CopyFrom(const SignalCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SignalCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SignalCondition::IsInitialized() const { - return true; -} - -void SignalCondition::Swap(SignalCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void SignalCondition::InternalSwap(SignalCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signal_id_.Swap(&other->signal_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - output_variable_name_.Swap(&other->output_variable_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(type_, other->type_); -} - -::google::protobuf::Metadata SignalCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SleepCondition::InitAsDefaultInstance() { - ::flyteidl::core::_SleepCondition_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class SleepCondition::HasBitSetters { - public: - static const ::google::protobuf::Duration& duration(const SleepCondition* msg); -}; - -const ::google::protobuf::Duration& -SleepCondition::HasBitSetters::duration(const SleepCondition* msg) { - return *msg->duration_; -} -void SleepCondition::clear_duration() { - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SleepCondition::kDurationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SleepCondition::SleepCondition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.SleepCondition) -} -SleepCondition::SleepCondition(const SleepCondition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_duration()) { - duration_ = new ::google::protobuf::Duration(*from.duration_); - } else { - duration_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.SleepCondition) -} - -void SleepCondition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - duration_ = nullptr; -} - -SleepCondition::~SleepCondition() { - // @@protoc_insertion_point(destructor:flyteidl.core.SleepCondition) - SharedDtor(); -} - -void SleepCondition::SharedDtor() { - if (this != internal_default_instance()) delete duration_; -} - -void SleepCondition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SleepCondition& SleepCondition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SleepCondition_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void SleepCondition::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.SleepCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && duration_ != nullptr) { - delete duration_; - } - duration_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SleepCondition::_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) { - // .google.protobuf.Duration duration = 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 = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_duration(); - 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 SleepCondition::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.core.SleepCondition) - 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)) { - // .google.protobuf.Duration duration = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_duration())); - } 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.core.SleepCondition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.SleepCondition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SleepCondition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.SleepCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration duration = 1; - if (this->has_duration()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::duration(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.SleepCondition) -} - -::google::protobuf::uint8* SleepCondition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.SleepCondition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .google.protobuf.Duration duration = 1; - if (this->has_duration()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::duration(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.core.SleepCondition) - return target; -} - -size_t SleepCondition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.SleepCondition) - 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; - - // .google.protobuf.Duration duration = 1; - if (this->has_duration()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *duration_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SleepCondition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.SleepCondition) - GOOGLE_DCHECK_NE(&from, this); - const SleepCondition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.SleepCondition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.SleepCondition) - MergeFrom(*source); - } -} - -void SleepCondition::MergeFrom(const SleepCondition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.SleepCondition) - 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_duration()) { - mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration()); - } -} - -void SleepCondition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.SleepCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SleepCondition::CopyFrom(const SleepCondition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.SleepCondition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SleepCondition::IsInitialized() const { - return true; -} - -void SleepCondition::Swap(SleepCondition* other) { - if (other == this) return; - InternalSwap(other); -} -void SleepCondition::InternalSwap(SleepCondition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(duration_, other->duration_); -} - -::google::protobuf::Metadata SleepCondition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GateNode::InitAsDefaultInstance() { - ::flyteidl::core::_GateNode_default_instance_.approve_ = const_cast< ::flyteidl::core::ApproveCondition*>( - ::flyteidl::core::ApproveCondition::internal_default_instance()); - ::flyteidl::core::_GateNode_default_instance_.signal_ = const_cast< ::flyteidl::core::SignalCondition*>( - ::flyteidl::core::SignalCondition::internal_default_instance()); - ::flyteidl::core::_GateNode_default_instance_.sleep_ = const_cast< ::flyteidl::core::SleepCondition*>( - ::flyteidl::core::SleepCondition::internal_default_instance()); -} -class GateNode::HasBitSetters { - public: - static const ::flyteidl::core::ApproveCondition& approve(const GateNode* msg); - static const ::flyteidl::core::SignalCondition& signal(const GateNode* msg); - static const ::flyteidl::core::SleepCondition& sleep(const GateNode* msg); -}; - -const ::flyteidl::core::ApproveCondition& -GateNode::HasBitSetters::approve(const GateNode* msg) { - return *msg->condition_.approve_; -} -const ::flyteidl::core::SignalCondition& -GateNode::HasBitSetters::signal(const GateNode* msg) { - return *msg->condition_.signal_; -} -const ::flyteidl::core::SleepCondition& -GateNode::HasBitSetters::sleep(const GateNode* msg) { - return *msg->condition_.sleep_; -} -void GateNode::set_allocated_approve(::flyteidl::core::ApproveCondition* approve) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_condition(); - if (approve) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - approve = ::google::protobuf::internal::GetOwnedMessage( - message_arena, approve, submessage_arena); - } - set_has_approve(); - condition_.approve_ = approve; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.approve) -} -void GateNode::set_allocated_signal(::flyteidl::core::SignalCondition* signal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_condition(); - if (signal) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - signal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, signal, submessage_arena); - } - set_has_signal(); - condition_.signal_ = signal; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.signal) -} -void GateNode::set_allocated_sleep(::flyteidl::core::SleepCondition* sleep) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_condition(); - if (sleep) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - sleep = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sleep, submessage_arena); - } - set_has_sleep(); - condition_.sleep_ = sleep; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.GateNode.sleep) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GateNode::kApproveFieldNumber; -const int GateNode::kSignalFieldNumber; -const int GateNode::kSleepFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GateNode::GateNode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.GateNode) -} -GateNode::GateNode(const GateNode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_condition(); - switch (from.condition_case()) { - case kApprove: { - mutable_approve()->::flyteidl::core::ApproveCondition::MergeFrom(from.approve()); - break; - } - case kSignal: { - mutable_signal()->::flyteidl::core::SignalCondition::MergeFrom(from.signal()); - break; - } - case kSleep: { - mutable_sleep()->::flyteidl::core::SleepCondition::MergeFrom(from.sleep()); - break; - } - case CONDITION_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.GateNode) -} - -void GateNode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); - clear_has_condition(); -} - -GateNode::~GateNode() { - // @@protoc_insertion_point(destructor:flyteidl.core.GateNode) - SharedDtor(); -} - -void GateNode::SharedDtor() { - if (has_condition()) { - clear_condition(); - } -} - -void GateNode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GateNode& GateNode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GateNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void GateNode::clear_condition() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.GateNode) - switch (condition_case()) { - case kApprove: { - delete condition_.approve_; - break; - } - case kSignal: { - delete condition_.signal_; - break; - } - case kSleep: { - delete condition_.sleep_; - break; - } - case CONDITION_NOT_SET: { - break; - } - } - _oneof_case_[0] = CONDITION_NOT_SET; -} - - -void GateNode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.GateNode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_condition(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GateNode::_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.ApproveCondition approve = 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::ApproveCondition::_InternalParse; - object = msg->mutable_approve(); - 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.core.SignalCondition signal = 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::core::SignalCondition::_InternalParse; - object = msg->mutable_signal(); - 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.core.SleepCondition sleep = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::SleepCondition::_InternalParse; - object = msg->mutable_sleep(); - 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 GateNode::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.core.GateNode) - 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.ApproveCondition approve = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_approve())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SignalCondition signal = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_signal())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.SleepCondition sleep = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_sleep())); - } 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.core.GateNode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.GateNode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GateNode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.GateNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ApproveCondition approve = 1; - if (has_approve()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::approve(this), output); - } - - // .flyteidl.core.SignalCondition signal = 2; - if (has_signal()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::signal(this), output); - } - - // .flyteidl.core.SleepCondition sleep = 3; - if (has_sleep()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::sleep(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.GateNode) -} - -::google::protobuf::uint8* GateNode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.GateNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.ApproveCondition approve = 1; - if (has_approve()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::approve(this), target); - } - - // .flyteidl.core.SignalCondition signal = 2; - if (has_signal()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::signal(this), target); - } - - // .flyteidl.core.SleepCondition sleep = 3; - if (has_sleep()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::sleep(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.core.GateNode) - return target; -} - -size_t GateNode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.GateNode) - 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 (condition_case()) { - // .flyteidl.core.ApproveCondition approve = 1; - case kApprove: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *condition_.approve_); - break; - } - // .flyteidl.core.SignalCondition signal = 2; - case kSignal: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *condition_.signal_); - break; - } - // .flyteidl.core.SleepCondition sleep = 3; - case kSleep: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *condition_.sleep_); - break; - } - case CONDITION_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GateNode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.GateNode) - GOOGLE_DCHECK_NE(&from, this); - const GateNode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.GateNode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.GateNode) - MergeFrom(*source); - } -} - -void GateNode::MergeFrom(const GateNode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.GateNode) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.condition_case()) { - case kApprove: { - mutable_approve()->::flyteidl::core::ApproveCondition::MergeFrom(from.approve()); - break; - } - case kSignal: { - mutable_signal()->::flyteidl::core::SignalCondition::MergeFrom(from.signal()); - break; - } - case kSleep: { - mutable_sleep()->::flyteidl::core::SleepCondition::MergeFrom(from.sleep()); - break; - } - case CONDITION_NOT_SET: { - break; - } - } -} - -void GateNode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.GateNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GateNode::CopyFrom(const GateNode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.GateNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GateNode::IsInitialized() const { - return true; -} - -void GateNode::Swap(GateNode* other) { - if (other == this) return; - InternalSwap(other); -} -void GateNode::InternalSwap(GateNode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(condition_, other->condition_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata GateNode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArrayNode::InitAsDefaultInstance() { - ::flyteidl::core::_ArrayNode_default_instance_._instance.get_mutable()->node_ = const_cast< ::flyteidl::core::Node*>( - ::flyteidl::core::Node::internal_default_instance()); - ::flyteidl::core::_ArrayNode_default_instance_.min_successes_ = 0u; - ::flyteidl::core::_ArrayNode_default_instance_.min_success_ratio_ = 0; -} -class ArrayNode::HasBitSetters { - public: - static const ::flyteidl::core::Node& node(const ArrayNode* msg); -}; - -const ::flyteidl::core::Node& -ArrayNode::HasBitSetters::node(const ArrayNode* msg) { - return *msg->node_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArrayNode::kNodeFieldNumber; -const int ArrayNode::kParallelismFieldNumber; -const int ArrayNode::kMinSuccessesFieldNumber; -const int ArrayNode::kMinSuccessRatioFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArrayNode::ArrayNode() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.ArrayNode) -} -ArrayNode::ArrayNode(const ArrayNode& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_node()) { - node_ = new ::flyteidl::core::Node(*from.node_); - } else { - node_ = nullptr; - } - parallelism_ = from.parallelism_; - clear_has_success_criteria(); - switch (from.success_criteria_case()) { - case kMinSuccesses: { - set_min_successes(from.min_successes()); - break; - } - case kMinSuccessRatio: { - set_min_success_ratio(from.min_success_ratio()); - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.ArrayNode) -} - -void ArrayNode::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - ::memset(&node_, 0, static_cast( - reinterpret_cast(¶llelism_) - - reinterpret_cast(&node_)) + sizeof(parallelism_)); - clear_has_success_criteria(); -} - -ArrayNode::~ArrayNode() { - // @@protoc_insertion_point(destructor:flyteidl.core.ArrayNode) - SharedDtor(); -} - -void ArrayNode::SharedDtor() { - if (this != internal_default_instance()) delete node_; - if (has_success_criteria()) { - clear_success_criteria(); - } -} - -void ArrayNode::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArrayNode& ArrayNode::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void ArrayNode::clear_success_criteria() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.ArrayNode) - switch (success_criteria_case()) { - case kMinSuccesses: { - // No need to clear - break; - } - case kMinSuccessRatio: { - // No need to clear - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; -} - - -void ArrayNode::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.ArrayNode) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && node_ != nullptr) { - delete node_; - } - node_ = nullptr; - parallelism_ = 0u; - clear_success_criteria(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArrayNode::_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.Node node = 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::Node::_InternalParse; - object = msg->mutable_node(); - 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; - } - // uint32 parallelism = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // uint32 min_successes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // float min_success_ratio = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 37) goto handle_unusual; - msg->set_min_success_ratio(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); - 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 ArrayNode::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.core.ArrayNode) - 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.Node node = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 parallelism = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, ¶llelism_))); - } else { - goto handle_unusual; - } - break; - } - - // uint32 min_successes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - clear_success_criteria(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &success_criteria_.min_successes_))); - set_has_min_successes(); - } else { - goto handle_unusual; - } - break; - } - - // float min_success_ratio = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (37 & 0xFF)) { - clear_success_criteria(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &success_criteria_.min_success_ratio_))); - set_has_min_success_ratio(); - } 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.core.ArrayNode) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.ArrayNode) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArrayNode::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.ArrayNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Node node = 1; - if (this->has_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::node(this), output); - } - - // uint32 parallelism = 2; - if (this->parallelism() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->parallelism(), output); - } - - // uint32 min_successes = 3; - if (has_min_successes()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->min_successes(), output); - } - - // float min_success_ratio = 4; - if (has_min_success_ratio()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->min_success_ratio(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.ArrayNode) -} - -::google::protobuf::uint8* ArrayNode::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.ArrayNode) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Node node = 1; - if (this->has_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::node(this), target); - } - - // uint32 parallelism = 2; - if (this->parallelism() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->parallelism(), target); - } - - // uint32 min_successes = 3; - if (has_min_successes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->min_successes(), target); - } - - // float min_success_ratio = 4; - if (has_min_success_ratio()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->min_success_ratio(), 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.core.ArrayNode) - return target; -} - -size_t ArrayNode::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.ArrayNode) - 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.Node node = 1; - if (this->has_node()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *node_); - } - - // uint32 parallelism = 2; - if (this->parallelism() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->parallelism()); - } - - switch (success_criteria_case()) { - // uint32 min_successes = 3; - case kMinSuccesses: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->min_successes()); - break; - } - // float min_success_ratio = 4; - case kMinSuccessRatio: { - total_size += 1 + 4; - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArrayNode::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.ArrayNode) - GOOGLE_DCHECK_NE(&from, this); - const ArrayNode* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.ArrayNode) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.ArrayNode) - MergeFrom(*source); - } -} - -void ArrayNode::MergeFrom(const ArrayNode& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.ArrayNode) - 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_node()) { - mutable_node()->::flyteidl::core::Node::MergeFrom(from.node()); - } - if (from.parallelism() != 0) { - set_parallelism(from.parallelism()); - } - switch (from.success_criteria_case()) { - case kMinSuccesses: { - set_min_successes(from.min_successes()); - break; - } - case kMinSuccessRatio: { - set_min_success_ratio(from.min_success_ratio()); - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } -} - -void ArrayNode::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.ArrayNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArrayNode::CopyFrom(const ArrayNode& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.ArrayNode) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArrayNode::IsInitialized() const { - return true; -} - -void ArrayNode::Swap(ArrayNode* other) { - if (other == this) return; - InternalSwap(other); -} -void ArrayNode::InternalSwap(ArrayNode* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(node_, other->node_); - swap(parallelism_, other->parallelism_); - swap(success_criteria_, other->success_criteria_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ArrayNode::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->timeout_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::core::_NodeMetadata_default_instance_._instance.get_mutable()->retries_ = const_cast< ::flyteidl::core::RetryStrategy*>( - ::flyteidl::core::RetryStrategy::internal_default_instance()); - ::flyteidl::core::_NodeMetadata_default_instance_.interruptible_ = false; -} -class NodeMetadata::HasBitSetters { - public: - static const ::google::protobuf::Duration& timeout(const NodeMetadata* msg); - static const ::flyteidl::core::RetryStrategy& retries(const NodeMetadata* msg); -}; - -const ::google::protobuf::Duration& -NodeMetadata::HasBitSetters::timeout(const NodeMetadata* msg) { - return *msg->timeout_; -} -const ::flyteidl::core::RetryStrategy& -NodeMetadata::HasBitSetters::retries(const NodeMetadata* msg) { - return *msg->retries_; -} -void NodeMetadata::clear_timeout() { - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; - } - timeout_ = nullptr; -} -void NodeMetadata::clear_retries() { - if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { - delete retries_; - } - retries_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeMetadata::kNameFieldNumber; -const int NodeMetadata::kTimeoutFieldNumber; -const int NodeMetadata::kRetriesFieldNumber; -const int NodeMetadata::kInterruptibleFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeMetadata::NodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.NodeMetadata) -} -NodeMetadata::NodeMetadata(const NodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_timeout()) { - timeout_ = new ::google::protobuf::Duration(*from.timeout_); - } else { - timeout_ = nullptr; - } - if (from.has_retries()) { - retries_ = new ::flyteidl::core::RetryStrategy(*from.retries_); - } else { - retries_ = nullptr; - } - clear_has_interruptible_value(); - switch (from.interruptible_value_case()) { - case kInterruptible: { - set_interruptible(from.interruptible()); - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.NodeMetadata) -} - -void NodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&timeout_, 0, static_cast( - reinterpret_cast(&retries_) - - reinterpret_cast(&timeout_)) + sizeof(retries_)); - clear_has_interruptible_value(); -} - -NodeMetadata::~NodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.NodeMetadata) - SharedDtor(); -} - -void NodeMetadata::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete timeout_; - if (this != internal_default_instance()) delete retries_; - if (has_interruptible_value()) { - clear_interruptible_value(); - } -} - -void NodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeMetadata& NodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void NodeMetadata::clear_interruptible_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.NodeMetadata) - switch (interruptible_value_case()) { - case kInterruptible: { - // No need to clear - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; -} - - -void NodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.NodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && timeout_ != nullptr) { - delete timeout_; - } - timeout_ = nullptr; - if (GetArenaNoVirtual() == nullptr && retries_ != nullptr) { - delete retries_; - } - retries_ = nullptr; - clear_interruptible_value(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeMetadata::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.NodeMetadata.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Duration timeout = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_timeout(); - 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.core.RetryStrategy retries = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::RetryStrategy::_InternalParse; - object = msg->mutable_retries(); - 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; - } - // bool interruptible = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 48) goto handle_unusual; - msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeMetadata::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.core.NodeMetadata) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.NodeMetadata.name")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration timeout = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_timeout())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.RetryStrategy retries = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_retries())); - } else { - goto handle_unusual; - } - break; - } - - // bool interruptible = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (48 & 0xFF)) { - clear_interruptible_value(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &interruptible_value_.interruptible_))); - set_has_interruptible(); - } 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.core.NodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.NodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.NodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.NodeMetadata.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::timeout(this), output); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::retries(this), output); - } - - // bool interruptible = 6; - if (has_interruptible()) { - ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->interruptible(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.NodeMetadata) -} - -::google::protobuf::uint8* NodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.NodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.NodeMetadata.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::timeout(this), target); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::retries(this), target); - } - - // bool interruptible = 6; - if (has_interruptible()) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->interruptible(), 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.core.NodeMetadata) - return target; -} - -size_t NodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.NodeMetadata) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .google.protobuf.Duration timeout = 4; - if (this->has_timeout()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *timeout_); - } - - // .flyteidl.core.RetryStrategy retries = 5; - if (this->has_retries()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *retries_); - } - - switch (interruptible_value_case()) { - // bool interruptible = 6; - case kInterruptible: { - total_size += 1 + 1; - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.NodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const NodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.NodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.NodeMetadata) - MergeFrom(*source); - } -} - -void NodeMetadata::MergeFrom(const NodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.NodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_timeout()) { - mutable_timeout()->::google::protobuf::Duration::MergeFrom(from.timeout()); - } - if (from.has_retries()) { - mutable_retries()->::flyteidl::core::RetryStrategy::MergeFrom(from.retries()); - } - switch (from.interruptible_value_case()) { - case kInterruptible: { - set_interruptible(from.interruptible()); - break; - } - case INTERRUPTIBLE_VALUE_NOT_SET: { - break; - } - } -} - -void NodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.NodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeMetadata::CopyFrom(const NodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.NodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeMetadata::IsInitialized() const { - return true; -} - -void NodeMetadata::Swap(NodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeMetadata::InternalSwap(NodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(timeout_, other->timeout_); - swap(retries_, other->retries_); - swap(interruptible_value_, other->interruptible_value_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata NodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Alias::InitAsDefaultInstance() { -} -class Alias::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Alias::kVarFieldNumber; -const int Alias::kAliasFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Alias::Alias() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Alias) -} -Alias::Alias(const Alias& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.var().size() > 0) { - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.alias().size() > 0) { - alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Alias) -} - -void Alias::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); - var_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - alias_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Alias::~Alias() { - // @@protoc_insertion_point(destructor:flyteidl.core.Alias) - SharedDtor(); -} - -void Alias::SharedDtor() { - var_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - alias_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Alias::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Alias& Alias::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Alias_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void Alias::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Alias) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Alias::_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) { - // string var = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Alias.var"); - object = msg->mutable_var(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string alias = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Alias.alias"); - object = msg->mutable_alias(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Alias::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.core.Alias) - 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)) { - // string var = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_var())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Alias.var")); - } else { - goto handle_unusual; - } - break; - } - - // string alias = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_alias())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->alias().data(), static_cast(this->alias().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Alias.alias")); - } 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.core.Alias) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Alias) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Alias::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Alias) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Alias.var"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->var(), output); - } - - // string alias = 2; - if (this->alias().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->alias().data(), static_cast(this->alias().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Alias.alias"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->alias(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Alias) -} - -::google::protobuf::uint8* Alias::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Alias) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string var = 1; - if (this->var().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->var().data(), static_cast(this->var().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Alias.var"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->var(), target); - } - - // string alias = 2; - if (this->alias().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->alias().data(), static_cast(this->alias().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Alias.alias"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->alias(), 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.core.Alias) - return target; -} - -size_t Alias::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Alias) - 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; - - // string var = 1; - if (this->var().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->var()); - } - - // string alias = 2; - if (this->alias().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->alias()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Alias::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Alias) - GOOGLE_DCHECK_NE(&from, this); - const Alias* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Alias) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Alias) - MergeFrom(*source); - } -} - -void Alias::MergeFrom(const Alias& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Alias) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.var().size() > 0) { - - var_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.var_); - } - if (from.alias().size() > 0) { - - alias_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.alias_); - } -} - -void Alias::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Alias) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Alias::CopyFrom(const Alias& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Alias) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Alias::IsInitialized() const { - return true; -} - -void Alias::Swap(Alias* other) { - if (other == this) return; - InternalSwap(other); -} -void Alias::InternalSwap(Alias* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - var_.Swap(&other->var_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - alias_.Swap(&other->alias_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Alias::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Node::InitAsDefaultInstance() { - ::flyteidl::core::_Node_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::NodeMetadata*>( - ::flyteidl::core::NodeMetadata::internal_default_instance()); - ::flyteidl::core::_Node_default_instance_.task_node_ = const_cast< ::flyteidl::core::TaskNode*>( - ::flyteidl::core::TaskNode::internal_default_instance()); - ::flyteidl::core::_Node_default_instance_.workflow_node_ = const_cast< ::flyteidl::core::WorkflowNode*>( - ::flyteidl::core::WorkflowNode::internal_default_instance()); - ::flyteidl::core::_Node_default_instance_.branch_node_ = const_cast< ::flyteidl::core::BranchNode*>( - ::flyteidl::core::BranchNode::internal_default_instance()); - ::flyteidl::core::_Node_default_instance_.gate_node_ = const_cast< ::flyteidl::core::GateNode*>( - ::flyteidl::core::GateNode::internal_default_instance()); - ::flyteidl::core::_Node_default_instance_.array_node_ = const_cast< ::flyteidl::core::ArrayNode*>( - ::flyteidl::core::ArrayNode::internal_default_instance()); -} -class Node::HasBitSetters { - public: - static const ::flyteidl::core::NodeMetadata& metadata(const Node* msg); - static const ::flyteidl::core::TaskNode& task_node(const Node* msg); - static const ::flyteidl::core::WorkflowNode& workflow_node(const Node* msg); - static const ::flyteidl::core::BranchNode& branch_node(const Node* msg); - static const ::flyteidl::core::GateNode& gate_node(const Node* msg); - static const ::flyteidl::core::ArrayNode& array_node(const Node* msg); -}; - -const ::flyteidl::core::NodeMetadata& -Node::HasBitSetters::metadata(const Node* msg) { - return *msg->metadata_; -} -const ::flyteidl::core::TaskNode& -Node::HasBitSetters::task_node(const Node* msg) { - return *msg->target_.task_node_; -} -const ::flyteidl::core::WorkflowNode& -Node::HasBitSetters::workflow_node(const Node* msg) { - return *msg->target_.workflow_node_; -} -const ::flyteidl::core::BranchNode& -Node::HasBitSetters::branch_node(const Node* msg) { - return *msg->target_.branch_node_; -} -const ::flyteidl::core::GateNode& -Node::HasBitSetters::gate_node(const Node* msg) { - return *msg->target_.gate_node_; -} -const ::flyteidl::core::ArrayNode& -Node::HasBitSetters::array_node(const Node* msg) { - return *msg->target_.array_node_; -} -void Node::clear_inputs() { - inputs_.Clear(); -} -void Node::set_allocated_task_node(::flyteidl::core::TaskNode* task_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (task_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_node, submessage_arena); - } - set_has_task_node(); - target_.task_node_ = task_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.task_node) -} -void Node::set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (workflow_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_node, submessage_arena); - } - set_has_workflow_node(); - target_.workflow_node_ = workflow_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.workflow_node) -} -void Node::set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (branch_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - branch_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, branch_node, submessage_arena); - } - set_has_branch_node(); - target_.branch_node_ = branch_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.branch_node) -} -void Node::set_allocated_gate_node(::flyteidl::core::GateNode* gate_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (gate_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - gate_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, gate_node, submessage_arena); - } - set_has_gate_node(); - target_.gate_node_ = gate_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.gate_node) -} -void Node::set_allocated_array_node(::flyteidl::core::ArrayNode* array_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target(); - if (array_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - array_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, array_node, submessage_arena); - } - set_has_array_node(); - target_.array_node_ = array_node; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.array_node) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Node::kIdFieldNumber; -const int Node::kMetadataFieldNumber; -const int Node::kInputsFieldNumber; -const int Node::kUpstreamNodeIdsFieldNumber; -const int Node::kOutputAliasesFieldNumber; -const int Node::kTaskNodeFieldNumber; -const int Node::kWorkflowNodeFieldNumber; -const int Node::kBranchNodeFieldNumber; -const int Node::kGateNodeFieldNumber; -const int Node::kArrayNodeFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Node::Node() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.Node) -} -Node::Node(const Node& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - inputs_(from.inputs_), - upstream_node_ids_(from.upstream_node_ids_), - output_aliases_(from.output_aliases_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::NodeMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - clear_has_target(); - switch (from.target_case()) { - case kTaskNode: { - mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); - break; - } - case kWorkflowNode: { - mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); - break; - } - case kBranchNode: { - mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); - break; - } - case kGateNode: { - mutable_gate_node()->::flyteidl::core::GateNode::MergeFrom(from.gate_node()); - break; - } - case kArrayNode: { - mutable_array_node()->::flyteidl::core::ArrayNode::MergeFrom(from.array_node()); - break; - } - case TARGET_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.Node) -} - -void Node::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - metadata_ = nullptr; - clear_has_target(); -} - -Node::~Node() { - // @@protoc_insertion_point(destructor:flyteidl.core.Node) - SharedDtor(); -} - -void Node::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete metadata_; - if (has_target()) { - clear_target(); - } -} - -void Node::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Node& Node::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayNode_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void Node::clear_target() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.core.Node) - switch (target_case()) { - case kTaskNode: { - delete target_.task_node_; - break; - } - case kWorkflowNode: { - delete target_.workflow_node_; - break; - } - case kBranchNode: { - delete target_.branch_node_; - break; - } - case kGateNode: { - delete target_.gate_node_; - break; - } - case kArrayNode: { - delete target_.array_node_; - break; - } - case TARGET_NOT_SET: { - break; - } - } - _oneof_case_[0] = TARGET_NOT_SET; -} - - -void Node::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.Node) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - inputs_.Clear(); - upstream_node_ids_.Clear(); - output_aliases_.Clear(); - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - clear_target(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Node::_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) { - // string 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); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Node.id"); - object = msg->mutable_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.NodeMetadata metadata = 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::core::NodeMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // repeated .flyteidl.core.Binding inputs = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Binding::_InternalParse; - object = msg->add_inputs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // repeated string upstream_node_ids = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.core.Node.upstream_node_ids"); - object = msg->add_upstream_node_ids(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.Alias output_aliases = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Alias::_InternalParse; - object = msg->add_output_aliases(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // .flyteidl.core.TaskNode task_node = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskNode::_InternalParse; - object = msg->mutable_task_node(); - 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.core.WorkflowNode workflow_node = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowNode::_InternalParse; - object = msg->mutable_workflow_node(); - 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.core.BranchNode branch_node = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::BranchNode::_InternalParse; - object = msg->mutable_branch_node(); - 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.core.GateNode gate_node = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::GateNode::_InternalParse; - object = msg->mutable_gate_node(); - 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.core.ArrayNode array_node = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArrayNode::_InternalParse; - object = msg->mutable_array_node(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Node::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.core.Node) - 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)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Node.id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeMetadata metadata = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Binding inputs = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string upstream_node_ids = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_upstream_node_ids())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->upstream_node_ids(this->upstream_node_ids_size() - 1).data(), - static_cast(this->upstream_node_ids(this->upstream_node_ids_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.Node.upstream_node_ids")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Alias output_aliases = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_output_aliases())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskNode task_node = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowNode workflow_node = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.BranchNode branch_node = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_branch_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.GateNode gate_node = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_gate_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ArrayNode array_node = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_array_node())); - } 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.core.Node) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.Node) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Node::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.Node) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Node.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // .flyteidl.core.NodeMetadata metadata = 2; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::metadata(this), output); - } - - // repeated .flyteidl.core.Binding inputs = 3; - for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->inputs(static_cast(i)), - output); - } - - // repeated string upstream_node_ids = 4; - for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Node.upstream_node_ids"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->upstream_node_ids(i), output); - } - - // repeated .flyteidl.core.Alias output_aliases = 5; - for (unsigned int i = 0, - n = static_cast(this->output_aliases_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->output_aliases(static_cast(i)), - output); - } - - // .flyteidl.core.TaskNode task_node = 6; - if (has_task_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::task_node(this), output); - } - - // .flyteidl.core.WorkflowNode workflow_node = 7; - if (has_workflow_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::workflow_node(this), output); - } - - // .flyteidl.core.BranchNode branch_node = 8; - if (has_branch_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::branch_node(this), output); - } - - // .flyteidl.core.GateNode gate_node = 9; - if (has_gate_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::gate_node(this), output); - } - - // .flyteidl.core.ArrayNode array_node = 10; - if (has_array_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::array_node(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.Node) -} - -::google::protobuf::uint8* Node::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.Node) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Node.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // .flyteidl.core.NodeMetadata metadata = 2; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::metadata(this), target); - } - - // repeated .flyteidl.core.Binding inputs = 3; - for (unsigned int i = 0, - n = static_cast(this->inputs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->inputs(static_cast(i)), target); - } - - // repeated string upstream_node_ids = 4; - for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->upstream_node_ids(i).data(), static_cast(this->upstream_node_ids(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.Node.upstream_node_ids"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(4, this->upstream_node_ids(i), target); - } - - // repeated .flyteidl.core.Alias output_aliases = 5; - for (unsigned int i = 0, - n = static_cast(this->output_aliases_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->output_aliases(static_cast(i)), target); - } - - // .flyteidl.core.TaskNode task_node = 6; - if (has_task_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::task_node(this), target); - } - - // .flyteidl.core.WorkflowNode workflow_node = 7; - if (has_workflow_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::workflow_node(this), target); - } - - // .flyteidl.core.BranchNode branch_node = 8; - if (has_branch_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::branch_node(this), target); - } - - // .flyteidl.core.GateNode gate_node = 9; - if (has_gate_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::gate_node(this), target); - } - - // .flyteidl.core.ArrayNode array_node = 10; - if (has_array_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::array_node(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.core.Node) - return target; -} - -size_t Node::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.Node) - 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; - - // repeated .flyteidl.core.Binding inputs = 3; - { - unsigned int count = static_cast(this->inputs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->inputs(static_cast(i))); - } - } - - // repeated string upstream_node_ids = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->upstream_node_ids_size()); - for (int i = 0, n = this->upstream_node_ids_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->upstream_node_ids(i)); - } - - // repeated .flyteidl.core.Alias output_aliases = 5; - { - unsigned int count = static_cast(this->output_aliases_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->output_aliases(static_cast(i))); - } - } - - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // .flyteidl.core.NodeMetadata metadata = 2; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - switch (target_case()) { - // .flyteidl.core.TaskNode task_node = 6; - case kTaskNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.task_node_); - break; - } - // .flyteidl.core.WorkflowNode workflow_node = 7; - case kWorkflowNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.workflow_node_); - break; - } - // .flyteidl.core.BranchNode branch_node = 8; - case kBranchNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.branch_node_); - break; - } - // .flyteidl.core.GateNode gate_node = 9; - case kGateNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.gate_node_); - break; - } - // .flyteidl.core.ArrayNode array_node = 10; - case kArrayNode: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_.array_node_); - break; - } - case TARGET_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Node::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.Node) - GOOGLE_DCHECK_NE(&from, this); - const Node* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.Node) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.Node) - MergeFrom(*source); - } -} - -void Node::MergeFrom(const Node& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.Node) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - inputs_.MergeFrom(from.inputs_); - upstream_node_ids_.MergeFrom(from.upstream_node_ids_); - output_aliases_.MergeFrom(from.output_aliases_); - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::core::NodeMetadata::MergeFrom(from.metadata()); - } - switch (from.target_case()) { - case kTaskNode: { - mutable_task_node()->::flyteidl::core::TaskNode::MergeFrom(from.task_node()); - break; - } - case kWorkflowNode: { - mutable_workflow_node()->::flyteidl::core::WorkflowNode::MergeFrom(from.workflow_node()); - break; - } - case kBranchNode: { - mutable_branch_node()->::flyteidl::core::BranchNode::MergeFrom(from.branch_node()); - break; - } - case kGateNode: { - mutable_gate_node()->::flyteidl::core::GateNode::MergeFrom(from.gate_node()); - break; - } - case kArrayNode: { - mutable_array_node()->::flyteidl::core::ArrayNode::MergeFrom(from.array_node()); - break; - } - case TARGET_NOT_SET: { - break; - } - } -} - -void Node::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.Node) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Node::CopyFrom(const Node& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.Node) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Node::IsInitialized() const { - return true; -} - -void Node::Swap(Node* other) { - if (other == this) return; - InternalSwap(other); -} -void Node::InternalSwap(Node* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&inputs_)->InternalSwap(CastToBase(&other->inputs_)); - upstream_node_ids_.InternalSwap(CastToBase(&other->upstream_node_ids_)); - CastToBase(&output_aliases_)->InternalSwap(CastToBase(&other->output_aliases_)); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(metadata_, other->metadata_); - swap(target_, other->target_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata Node::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -WorkflowMetadata_TagsEntry_DoNotUse::WorkflowMetadata_TagsEntry_DoNotUse() {} -WorkflowMetadata_TagsEntry_DoNotUse::WorkflowMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void WorkflowMetadata_TagsEntry_DoNotUse::MergeFrom(const WorkflowMetadata_TagsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata WorkflowMetadata_TagsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[13]; -} -void WorkflowMetadata_TagsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowMetadata_TagsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - WorkflowMetadata_TagsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowMetadata.TagsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowMetadata.TagsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void WorkflowMetadata::InitAsDefaultInstance() { - ::flyteidl::core::_WorkflowMetadata_default_instance_._instance.get_mutable()->quality_of_service_ = const_cast< ::flyteidl::core::QualityOfService*>( - ::flyteidl::core::QualityOfService::internal_default_instance()); -} -class WorkflowMetadata::HasBitSetters { - public: - static const ::flyteidl::core::QualityOfService& quality_of_service(const WorkflowMetadata* msg); -}; - -const ::flyteidl::core::QualityOfService& -WorkflowMetadata::HasBitSetters::quality_of_service(const WorkflowMetadata* msg) { - return *msg->quality_of_service_; -} -void WorkflowMetadata::clear_quality_of_service() { - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowMetadata::kQualityOfServiceFieldNumber; -const int WorkflowMetadata::kOnFailureFieldNumber; -const int WorkflowMetadata::kTagsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowMetadata::WorkflowMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowMetadata) -} -WorkflowMetadata::WorkflowMetadata(const WorkflowMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tags_.MergeFrom(from.tags_); - if (from.has_quality_of_service()) { - quality_of_service_ = new ::flyteidl::core::QualityOfService(*from.quality_of_service_); - } else { - quality_of_service_ = nullptr; - } - on_failure_ = from.on_failure_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowMetadata) -} - -void WorkflowMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - ::memset(&quality_of_service_, 0, static_cast( - reinterpret_cast(&on_failure_) - - reinterpret_cast(&quality_of_service_)) + sizeof(on_failure_)); -} - -WorkflowMetadata::~WorkflowMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowMetadata) - SharedDtor(); -} - -void WorkflowMetadata::SharedDtor() { - if (this != internal_default_instance()) delete quality_of_service_; -} - -void WorkflowMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowMetadata& WorkflowMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowMetadata_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - if (GetArenaNoVirtual() == nullptr && quality_of_service_ != nullptr) { - delete quality_of_service_; - } - quality_of_service_ = nullptr; - on_failure_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowMetadata::_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.QualityOfService quality_of_service = 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::QualityOfService::_InternalParse; - object = msg->mutable_quality_of_service(); - 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.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_on_failure(static_cast<::flyteidl::core::WorkflowMetadata_OnFailurePolicy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // map tags = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->tags_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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 WorkflowMetadata::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.core.WorkflowMetadata) - 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.QualityOfService quality_of_service = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_quality_of_service())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_on_failure(static_cast< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy >(value)); - } else { - goto handle_unusual; - } - break; - } - - // map tags = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - WorkflowMetadata_TagsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - WorkflowMetadata_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&tags_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowMetadata.TagsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.core.WorkflowMetadata.TagsEntry.value")); - } 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.core.WorkflowMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.QualityOfService quality_of_service = 1; - if (this->has_quality_of_service()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::quality_of_service(this), output); - } - - // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - if (this->on_failure() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->on_failure(), output); - } - - // map tags = 3; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowMetadata.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowMetadata.TagsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->tags().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(3, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowMetadata) -} - -::google::protobuf::uint8* WorkflowMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.QualityOfService quality_of_service = 1; - if (this->has_quality_of_service()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::quality_of_service(this), target); - } - - // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - if (this->on_failure() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->on_failure(), target); - } - - // map tags = 3; - if (!this->tags().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowMetadata.TagsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.core.WorkflowMetadata.TagsEntry.value"); - } - }; - - if (false && - this->tags().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->tags().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(tags_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(3, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.core.WorkflowMetadata) - return target; -} - -size_t WorkflowMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowMetadata) - 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; - - // map tags = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->tags().begin(); - it != this->tags().end(); ++it) { - entry.reset(tags_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // .flyteidl.core.QualityOfService quality_of_service = 1; - if (this->has_quality_of_service()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *quality_of_service_); - } - - // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - if (this->on_failure() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->on_failure()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowMetadata) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowMetadata) - MergeFrom(*source); - } -} - -void WorkflowMetadata::MergeFrom(const WorkflowMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - if (from.has_quality_of_service()) { - mutable_quality_of_service()->::flyteidl::core::QualityOfService::MergeFrom(from.quality_of_service()); - } - if (from.on_failure() != 0) { - set_on_failure(from.on_failure()); - } -} - -void WorkflowMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowMetadata::CopyFrom(const WorkflowMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowMetadata::IsInitialized() const { - return true; -} - -void WorkflowMetadata::Swap(WorkflowMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowMetadata::InternalSwap(WorkflowMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.Swap(&other->tags_); - swap(quality_of_service_, other->quality_of_service_); - swap(on_failure_, other->on_failure_); -} - -::google::protobuf::Metadata WorkflowMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowMetadataDefaults::InitAsDefaultInstance() { -} -class WorkflowMetadataDefaults::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowMetadataDefaults::kInterruptibleFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowMetadataDefaults::WorkflowMetadataDefaults() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowMetadataDefaults) -} -WorkflowMetadataDefaults::WorkflowMetadataDefaults(const WorkflowMetadataDefaults& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - interruptible_ = from.interruptible_; - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowMetadataDefaults) -} - -void WorkflowMetadataDefaults::SharedCtor() { - interruptible_ = false; -} - -WorkflowMetadataDefaults::~WorkflowMetadataDefaults() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowMetadataDefaults) - SharedDtor(); -} - -void WorkflowMetadataDefaults::SharedDtor() { -} - -void WorkflowMetadataDefaults::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowMetadataDefaults& WorkflowMetadataDefaults::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowMetadataDefaults_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowMetadataDefaults::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowMetadataDefaults) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - interruptible_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowMetadataDefaults::_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) { - // bool interruptible = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_interruptible(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowMetadataDefaults::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.core.WorkflowMetadataDefaults) - 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)) { - // bool interruptible = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &interruptible_))); - } 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.core.WorkflowMetadataDefaults) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowMetadataDefaults) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowMetadataDefaults::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowMetadataDefaults) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool interruptible = 1; - if (this->interruptible() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->interruptible(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowMetadataDefaults) -} - -::google::protobuf::uint8* WorkflowMetadataDefaults::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowMetadataDefaults) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // bool interruptible = 1; - if (this->interruptible() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->interruptible(), 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.core.WorkflowMetadataDefaults) - return target; -} - -size_t WorkflowMetadataDefaults::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowMetadataDefaults) - 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; - - // bool interruptible = 1; - if (this->interruptible() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowMetadataDefaults::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowMetadataDefaults) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowMetadataDefaults* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowMetadataDefaults) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowMetadataDefaults) - MergeFrom(*source); - } -} - -void WorkflowMetadataDefaults::MergeFrom(const WorkflowMetadataDefaults& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowMetadataDefaults) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.interruptible() != 0) { - set_interruptible(from.interruptible()); - } -} - -void WorkflowMetadataDefaults::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowMetadataDefaults) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowMetadataDefaults::CopyFrom(const WorkflowMetadataDefaults& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowMetadataDefaults) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowMetadataDefaults::IsInitialized() const { - return true; -} - -void WorkflowMetadataDefaults::Swap(WorkflowMetadataDefaults* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowMetadataDefaults::InternalSwap(WorkflowMetadataDefaults* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(interruptible_, other->interruptible_); -} - -::google::protobuf::Metadata WorkflowMetadataDefaults::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowTemplate::InitAsDefaultInstance() { - ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::core::WorkflowMetadata*>( - ::flyteidl::core::WorkflowMetadata::internal_default_instance()); - ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->interface_ = const_cast< ::flyteidl::core::TypedInterface*>( - ::flyteidl::core::TypedInterface::internal_default_instance()); - ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->failure_node_ = const_cast< ::flyteidl::core::Node*>( - ::flyteidl::core::Node::internal_default_instance()); - ::flyteidl::core::_WorkflowTemplate_default_instance_._instance.get_mutable()->metadata_defaults_ = const_cast< ::flyteidl::core::WorkflowMetadataDefaults*>( - ::flyteidl::core::WorkflowMetadataDefaults::internal_default_instance()); -} -class WorkflowTemplate::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const WorkflowTemplate* msg); - static const ::flyteidl::core::WorkflowMetadata& metadata(const WorkflowTemplate* msg); - static const ::flyteidl::core::TypedInterface& interface(const WorkflowTemplate* msg); - static const ::flyteidl::core::Node& failure_node(const WorkflowTemplate* msg); - static const ::flyteidl::core::WorkflowMetadataDefaults& metadata_defaults(const WorkflowTemplate* msg); -}; - -const ::flyteidl::core::Identifier& -WorkflowTemplate::HasBitSetters::id(const WorkflowTemplate* msg) { - return *msg->id_; -} -const ::flyteidl::core::WorkflowMetadata& -WorkflowTemplate::HasBitSetters::metadata(const WorkflowTemplate* msg) { - return *msg->metadata_; -} -const ::flyteidl::core::TypedInterface& -WorkflowTemplate::HasBitSetters::interface(const WorkflowTemplate* msg) { - return *msg->interface_; -} -const ::flyteidl::core::Node& -WorkflowTemplate::HasBitSetters::failure_node(const WorkflowTemplate* msg) { - return *msg->failure_node_; -} -const ::flyteidl::core::WorkflowMetadataDefaults& -WorkflowTemplate::HasBitSetters::metadata_defaults(const WorkflowTemplate* msg) { - return *msg->metadata_defaults_; -} -void WorkflowTemplate::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void WorkflowTemplate::clear_interface() { - if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { - delete interface_; - } - interface_ = nullptr; -} -void WorkflowTemplate::clear_outputs() { - outputs_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowTemplate::kIdFieldNumber; -const int WorkflowTemplate::kMetadataFieldNumber; -const int WorkflowTemplate::kInterfaceFieldNumber; -const int WorkflowTemplate::kNodesFieldNumber; -const int WorkflowTemplate::kOutputsFieldNumber; -const int WorkflowTemplate::kFailureNodeFieldNumber; -const int WorkflowTemplate::kMetadataDefaultsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowTemplate::WorkflowTemplate() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowTemplate) -} -WorkflowTemplate::WorkflowTemplate(const WorkflowTemplate& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - nodes_(from.nodes_), - outputs_(from.outputs_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::core::WorkflowMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_interface()) { - interface_ = new ::flyteidl::core::TypedInterface(*from.interface_); - } else { - interface_ = nullptr; - } - if (from.has_failure_node()) { - failure_node_ = new ::flyteidl::core::Node(*from.failure_node_); - } else { - failure_node_ = nullptr; - } - if (from.has_metadata_defaults()) { - metadata_defaults_ = new ::flyteidl::core::WorkflowMetadataDefaults(*from.metadata_defaults_); - } else { - metadata_defaults_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowTemplate) -} - -void WorkflowTemplate::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&metadata_defaults_) - - reinterpret_cast(&id_)) + sizeof(metadata_defaults_)); -} - -WorkflowTemplate::~WorkflowTemplate() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowTemplate) - SharedDtor(); -} - -void WorkflowTemplate::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete interface_; - if (this != internal_default_instance()) delete failure_node_; - if (this != internal_default_instance()) delete metadata_defaults_; -} - -void WorkflowTemplate::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowTemplate& WorkflowTemplate::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowTemplate::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowTemplate) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - nodes_.Clear(); - outputs_.Clear(); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && interface_ != nullptr) { - delete interface_; - } - interface_ = nullptr; - if (GetArenaNoVirtual() == nullptr && failure_node_ != nullptr) { - delete failure_node_; - } - failure_node_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_defaults_ != nullptr) { - delete metadata_defaults_; - } - metadata_defaults_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowTemplate::_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; - } - // .flyteidl.core.WorkflowMetadata metadata = 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::core::WorkflowMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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.core.TypedInterface interface = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; - object = msg->mutable_interface(); - 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; - } - // repeated .flyteidl.core.Node nodes = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Node::_InternalParse; - object = msg->add_nodes(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // repeated .flyteidl.core.Binding outputs = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Binding::_InternalParse; - object = msg->add_outputs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // .flyteidl.core.Node failure_node = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Node::_InternalParse; - object = msg->mutable_failure_node(); - 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.core.WorkflowMetadataDefaults metadata_defaults = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowMetadataDefaults::_InternalParse; - object = msg->mutable_metadata_defaults(); - 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 WorkflowTemplate::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.core.WorkflowTemplate) - 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; - } - - // .flyteidl.core.WorkflowMetadata metadata = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypedInterface interface = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_interface())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Node nodes = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_nodes())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.Binding outputs = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_outputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Node failure_node = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_failure_node())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata_defaults())); - } 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.core.WorkflowTemplate) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowTemplate) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowTemplate::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowTemplate) - ::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); - } - - // .flyteidl.core.WorkflowMetadata metadata = 2; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::metadata(this), output); - } - - // .flyteidl.core.TypedInterface interface = 3; - if (this->has_interface()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::interface(this), output); - } - - // repeated .flyteidl.core.Node nodes = 4; - for (unsigned int i = 0, - n = static_cast(this->nodes_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->nodes(static_cast(i)), - output); - } - - // repeated .flyteidl.core.Binding outputs = 5; - for (unsigned int i = 0, - n = static_cast(this->outputs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->outputs(static_cast(i)), - output); - } - - // .flyteidl.core.Node failure_node = 6; - if (this->has_failure_node()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::failure_node(this), output); - } - - // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - if (this->has_metadata_defaults()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::metadata_defaults(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowTemplate) -} - -::google::protobuf::uint8* WorkflowTemplate::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowTemplate) - ::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); - } - - // .flyteidl.core.WorkflowMetadata metadata = 2; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::metadata(this), target); - } - - // .flyteidl.core.TypedInterface interface = 3; - if (this->has_interface()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::interface(this), target); - } - - // repeated .flyteidl.core.Node nodes = 4; - for (unsigned int i = 0, - n = static_cast(this->nodes_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->nodes(static_cast(i)), target); - } - - // repeated .flyteidl.core.Binding outputs = 5; - for (unsigned int i = 0, - n = static_cast(this->outputs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->outputs(static_cast(i)), target); - } - - // .flyteidl.core.Node failure_node = 6; - if (this->has_failure_node()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::failure_node(this), target); - } - - // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - if (this->has_metadata_defaults()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::metadata_defaults(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.core.WorkflowTemplate) - return target; -} - -size_t WorkflowTemplate::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowTemplate) - 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; - - // repeated .flyteidl.core.Node nodes = 4; - { - unsigned int count = static_cast(this->nodes_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->nodes(static_cast(i))); - } - } - - // repeated .flyteidl.core.Binding outputs = 5; - { - unsigned int count = static_cast(this->outputs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->outputs(static_cast(i))); - } - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.WorkflowMetadata metadata = 2; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .flyteidl.core.TypedInterface interface = 3; - if (this->has_interface()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *interface_); - } - - // .flyteidl.core.Node failure_node = 6; - if (this->has_failure_node()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *failure_node_); - } - - // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - if (this->has_metadata_defaults()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_defaults_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowTemplate::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowTemplate) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowTemplate* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowTemplate) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowTemplate) - MergeFrom(*source); - } -} - -void WorkflowTemplate::MergeFrom(const WorkflowTemplate& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowTemplate) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - nodes_.MergeFrom(from.nodes_); - outputs_.MergeFrom(from.outputs_); - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::core::WorkflowMetadata::MergeFrom(from.metadata()); - } - if (from.has_interface()) { - mutable_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.interface()); - } - if (from.has_failure_node()) { - mutable_failure_node()->::flyteidl::core::Node::MergeFrom(from.failure_node()); - } - if (from.has_metadata_defaults()) { - mutable_metadata_defaults()->::flyteidl::core::WorkflowMetadataDefaults::MergeFrom(from.metadata_defaults()); - } -} - -void WorkflowTemplate::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowTemplate::CopyFrom(const WorkflowTemplate& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowTemplate) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowTemplate::IsInitialized() const { - return true; -} - -void WorkflowTemplate::Swap(WorkflowTemplate* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowTemplate::InternalSwap(WorkflowTemplate* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&nodes_)->InternalSwap(CastToBase(&other->nodes_)); - CastToBase(&outputs_)->InternalSwap(CastToBase(&other->outputs_)); - swap(id_, other->id_); - swap(metadata_, other->metadata_); - swap(interface_, other->interface_); - swap(failure_node_, other->failure_node_); - swap(metadata_defaults_, other->metadata_defaults_); -} - -::google::protobuf::Metadata WorkflowTemplate::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskNodeOverrides::InitAsDefaultInstance() { - ::flyteidl::core::_TaskNodeOverrides_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); - ::flyteidl::core::_TaskNodeOverrides_default_instance_._instance.get_mutable()->extended_resources_ = const_cast< ::flyteidl::core::ExtendedResources*>( - ::flyteidl::core::ExtendedResources::internal_default_instance()); -} -class TaskNodeOverrides::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const TaskNodeOverrides* msg); - static const ::flyteidl::core::ExtendedResources& extended_resources(const TaskNodeOverrides* msg); -}; - -const ::flyteidl::core::Resources& -TaskNodeOverrides::HasBitSetters::resources(const TaskNodeOverrides* msg) { - return *msg->resources_; -} -const ::flyteidl::core::ExtendedResources& -TaskNodeOverrides::HasBitSetters::extended_resources(const TaskNodeOverrides* msg) { - return *msg->extended_resources_; -} -void TaskNodeOverrides::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -void TaskNodeOverrides::clear_extended_resources() { - if (GetArenaNoVirtual() == nullptr && extended_resources_ != nullptr) { - delete extended_resources_; - } - extended_resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskNodeOverrides::kResourcesFieldNumber; -const int TaskNodeOverrides::kExtendedResourcesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskNodeOverrides::TaskNodeOverrides() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.TaskNodeOverrides) -} -TaskNodeOverrides::TaskNodeOverrides(const TaskNodeOverrides& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - if (from.has_extended_resources()) { - extended_resources_ = new ::flyteidl::core::ExtendedResources(*from.extended_resources_); - } else { - extended_resources_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.TaskNodeOverrides) -} - -void TaskNodeOverrides::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&extended_resources_) - - reinterpret_cast(&resources_)) + sizeof(extended_resources_)); -} - -TaskNodeOverrides::~TaskNodeOverrides() { - // @@protoc_insertion_point(destructor:flyteidl.core.TaskNodeOverrides) - SharedDtor(); -} - -void TaskNodeOverrides::SharedDtor() { - if (this != internal_default_instance()) delete resources_; - if (this != internal_default_instance()) delete extended_resources_; -} - -void TaskNodeOverrides::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskNodeOverrides& TaskNodeOverrides::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeOverrides_flyteidl_2fcore_2fworkflow_2eproto.base); - return *internal_default_instance(); -} - - -void TaskNodeOverrides::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.TaskNodeOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - if (GetArenaNoVirtual() == nullptr && extended_resources_ != nullptr) { - delete extended_resources_; - } - extended_resources_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskNodeOverrides::_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.Resources resources = 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::Resources::_InternalParse; - object = msg->mutable_resources(); - 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.core.ExtendedResources extended_resources = 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::core::ExtendedResources::_InternalParse; - object = msg->mutable_extended_resources(); - 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 TaskNodeOverrides::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.core.TaskNodeOverrides) - 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.Resources resources = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExtendedResources extended_resources = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_extended_resources())); - } 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.core.TaskNodeOverrides) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.TaskNodeOverrides) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskNodeOverrides::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.TaskNodeOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Resources resources = 1; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::resources(this), output); - } - - // .flyteidl.core.ExtendedResources extended_resources = 2; - if (this->has_extended_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::extended_resources(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.TaskNodeOverrides) -} - -::google::protobuf::uint8* TaskNodeOverrides::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.TaskNodeOverrides) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Resources resources = 1; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::resources(this), target); - } - - // .flyteidl.core.ExtendedResources extended_resources = 2; - if (this->has_extended_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::extended_resources(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.core.TaskNodeOverrides) - return target; -} - -size_t TaskNodeOverrides::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.TaskNodeOverrides) - 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.Resources resources = 1; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // .flyteidl.core.ExtendedResources extended_resources = 2; - if (this->has_extended_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *extended_resources_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskNodeOverrides::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.TaskNodeOverrides) - GOOGLE_DCHECK_NE(&from, this); - const TaskNodeOverrides* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.TaskNodeOverrides) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.TaskNodeOverrides) - MergeFrom(*source); - } -} - -void TaskNodeOverrides::MergeFrom(const TaskNodeOverrides& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.TaskNodeOverrides) - 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_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.has_extended_resources()) { - mutable_extended_resources()->::flyteidl::core::ExtendedResources::MergeFrom(from.extended_resources()); - } -} - -void TaskNodeOverrides::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.TaskNodeOverrides) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskNodeOverrides::CopyFrom(const TaskNodeOverrides& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.TaskNodeOverrides) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskNodeOverrides::IsInitialized() const { - return true; -} - -void TaskNodeOverrides::Swap(TaskNodeOverrides* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskNodeOverrides::InternalSwap(TaskNodeOverrides* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(resources_, other->resources_); - swap(extended_resources_, other->extended_resources_); -} - -::google::protobuf::Metadata TaskNodeOverrides::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::IfBlock* Arena::CreateMaybeMessage< ::flyteidl::core::IfBlock >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::IfBlock >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::IfElseBlock* Arena::CreateMaybeMessage< ::flyteidl::core::IfElseBlock >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::IfElseBlock >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::BranchNode* Arena::CreateMaybeMessage< ::flyteidl::core::BranchNode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::BranchNode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskNode* Arena::CreateMaybeMessage< ::flyteidl::core::TaskNode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskNode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowNode* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowNode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowNode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ApproveCondition* Arena::CreateMaybeMessage< ::flyteidl::core::ApproveCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ApproveCondition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::SignalCondition* Arena::CreateMaybeMessage< ::flyteidl::core::SignalCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SignalCondition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::SleepCondition* Arena::CreateMaybeMessage< ::flyteidl::core::SleepCondition >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::SleepCondition >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::GateNode* Arena::CreateMaybeMessage< ::flyteidl::core::GateNode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::GateNode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::ArrayNode* Arena::CreateMaybeMessage< ::flyteidl::core::ArrayNode >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::ArrayNode >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::NodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::NodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::NodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Alias* Arena::CreateMaybeMessage< ::flyteidl::core::Alias >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Alias >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::Node* Arena::CreateMaybeMessage< ::flyteidl::core::Node >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::Node >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadata* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowMetadataDefaults* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowMetadataDefaults >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowMetadataDefaults >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowTemplate* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowTemplate >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowTemplate >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::core::TaskNodeOverrides* Arena::CreateMaybeMessage< ::flyteidl::core::TaskNodeOverrides >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::TaskNodeOverrides >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h deleted file mode 100644 index 390fd2e31f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow.pb.h +++ /dev/null @@ -1,5062 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/core/condition.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/types.pb.h" -#include "flyteidl/core/security.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fworkflow_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[18] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fworkflow_2eproto(); -namespace flyteidl { -namespace core { -class Alias; -class AliasDefaultTypeInternal; -extern AliasDefaultTypeInternal _Alias_default_instance_; -class ApproveCondition; -class ApproveConditionDefaultTypeInternal; -extern ApproveConditionDefaultTypeInternal _ApproveCondition_default_instance_; -class ArrayNode; -class ArrayNodeDefaultTypeInternal; -extern ArrayNodeDefaultTypeInternal _ArrayNode_default_instance_; -class BranchNode; -class BranchNodeDefaultTypeInternal; -extern BranchNodeDefaultTypeInternal _BranchNode_default_instance_; -class GateNode; -class GateNodeDefaultTypeInternal; -extern GateNodeDefaultTypeInternal _GateNode_default_instance_; -class IfBlock; -class IfBlockDefaultTypeInternal; -extern IfBlockDefaultTypeInternal _IfBlock_default_instance_; -class IfElseBlock; -class IfElseBlockDefaultTypeInternal; -extern IfElseBlockDefaultTypeInternal _IfElseBlock_default_instance_; -class Node; -class NodeDefaultTypeInternal; -extern NodeDefaultTypeInternal _Node_default_instance_; -class NodeMetadata; -class NodeMetadataDefaultTypeInternal; -extern NodeMetadataDefaultTypeInternal _NodeMetadata_default_instance_; -class SignalCondition; -class SignalConditionDefaultTypeInternal; -extern SignalConditionDefaultTypeInternal _SignalCondition_default_instance_; -class SleepCondition; -class SleepConditionDefaultTypeInternal; -extern SleepConditionDefaultTypeInternal _SleepCondition_default_instance_; -class TaskNode; -class TaskNodeDefaultTypeInternal; -extern TaskNodeDefaultTypeInternal _TaskNode_default_instance_; -class TaskNodeOverrides; -class TaskNodeOverridesDefaultTypeInternal; -extern TaskNodeOverridesDefaultTypeInternal _TaskNodeOverrides_default_instance_; -class WorkflowMetadata; -class WorkflowMetadataDefaultTypeInternal; -extern WorkflowMetadataDefaultTypeInternal _WorkflowMetadata_default_instance_; -class WorkflowMetadataDefaults; -class WorkflowMetadataDefaultsDefaultTypeInternal; -extern WorkflowMetadataDefaultsDefaultTypeInternal _WorkflowMetadataDefaults_default_instance_; -class WorkflowMetadata_TagsEntry_DoNotUse; -class WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal; -extern WorkflowMetadata_TagsEntry_DoNotUseDefaultTypeInternal _WorkflowMetadata_TagsEntry_DoNotUse_default_instance_; -class WorkflowNode; -class WorkflowNodeDefaultTypeInternal; -extern WorkflowNodeDefaultTypeInternal _WorkflowNode_default_instance_; -class WorkflowTemplate; -class WorkflowTemplateDefaultTypeInternal; -extern WorkflowTemplateDefaultTypeInternal _WorkflowTemplate_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::Alias* Arena::CreateMaybeMessage<::flyteidl::core::Alias>(Arena*); -template<> ::flyteidl::core::ApproveCondition* Arena::CreateMaybeMessage<::flyteidl::core::ApproveCondition>(Arena*); -template<> ::flyteidl::core::ArrayNode* Arena::CreateMaybeMessage<::flyteidl::core::ArrayNode>(Arena*); -template<> ::flyteidl::core::BranchNode* Arena::CreateMaybeMessage<::flyteidl::core::BranchNode>(Arena*); -template<> ::flyteidl::core::GateNode* Arena::CreateMaybeMessage<::flyteidl::core::GateNode>(Arena*); -template<> ::flyteidl::core::IfBlock* Arena::CreateMaybeMessage<::flyteidl::core::IfBlock>(Arena*); -template<> ::flyteidl::core::IfElseBlock* Arena::CreateMaybeMessage<::flyteidl::core::IfElseBlock>(Arena*); -template<> ::flyteidl::core::Node* Arena::CreateMaybeMessage<::flyteidl::core::Node>(Arena*); -template<> ::flyteidl::core::NodeMetadata* Arena::CreateMaybeMessage<::flyteidl::core::NodeMetadata>(Arena*); -template<> ::flyteidl::core::SignalCondition* Arena::CreateMaybeMessage<::flyteidl::core::SignalCondition>(Arena*); -template<> ::flyteidl::core::SleepCondition* Arena::CreateMaybeMessage<::flyteidl::core::SleepCondition>(Arena*); -template<> ::flyteidl::core::TaskNode* Arena::CreateMaybeMessage<::flyteidl::core::TaskNode>(Arena*); -template<> ::flyteidl::core::TaskNodeOverrides* Arena::CreateMaybeMessage<::flyteidl::core::TaskNodeOverrides>(Arena*); -template<> ::flyteidl::core::WorkflowMetadata* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadata>(Arena*); -template<> ::flyteidl::core::WorkflowMetadataDefaults* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadataDefaults>(Arena*); -template<> ::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowMetadata_TagsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::core::WorkflowNode* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowNode>(Arena*); -template<> ::flyteidl::core::WorkflowTemplate* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -enum WorkflowMetadata_OnFailurePolicy { - WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY = 0, - WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1, - WorkflowMetadata_OnFailurePolicy_WorkflowMetadata_OnFailurePolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - WorkflowMetadata_OnFailurePolicy_WorkflowMetadata_OnFailurePolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool WorkflowMetadata_OnFailurePolicy_IsValid(int value); -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MIN = WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY; -const WorkflowMetadata_OnFailurePolicy WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX = WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; -const int WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_ARRAYSIZE = WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX + 1; - -const ::google::protobuf::EnumDescriptor* WorkflowMetadata_OnFailurePolicy_descriptor(); -inline const ::std::string& WorkflowMetadata_OnFailurePolicy_Name(WorkflowMetadata_OnFailurePolicy value) { - return ::google::protobuf::internal::NameOfEnum( - WorkflowMetadata_OnFailurePolicy_descriptor(), value); -} -inline bool WorkflowMetadata_OnFailurePolicy_Parse( - const ::std::string& name, WorkflowMetadata_OnFailurePolicy* value) { - return ::google::protobuf::internal::ParseNamedEnum( - WorkflowMetadata_OnFailurePolicy_descriptor(), name, value); -} -// =================================================================== - -class IfBlock final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfBlock) */ { - public: - IfBlock(); - virtual ~IfBlock(); - - IfBlock(const IfBlock& from); - - inline IfBlock& operator=(const IfBlock& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IfBlock(IfBlock&& from) noexcept - : IfBlock() { - *this = ::std::move(from); - } - - inline IfBlock& operator=(IfBlock&& 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 IfBlock& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IfBlock* internal_default_instance() { - return reinterpret_cast( - &_IfBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(IfBlock* other); - friend void swap(IfBlock& a, IfBlock& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IfBlock* New() const final { - return CreateMaybeMessage(nullptr); - } - - IfBlock* 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 IfBlock& from); - void MergeFrom(const IfBlock& 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(IfBlock* 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.BooleanExpression condition = 1; - bool has_condition() const; - void clear_condition(); - static const int kConditionFieldNumber = 1; - const ::flyteidl::core::BooleanExpression& condition() const; - ::flyteidl::core::BooleanExpression* release_condition(); - ::flyteidl::core::BooleanExpression* mutable_condition(); - void set_allocated_condition(::flyteidl::core::BooleanExpression* condition); - - // .flyteidl.core.Node then_node = 2; - bool has_then_node() const; - void clear_then_node(); - static const int kThenNodeFieldNumber = 2; - const ::flyteidl::core::Node& then_node() const; - ::flyteidl::core::Node* release_then_node(); - ::flyteidl::core::Node* mutable_then_node(); - void set_allocated_then_node(::flyteidl::core::Node* then_node); - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::BooleanExpression* condition_; - ::flyteidl::core::Node* then_node_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class IfElseBlock final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.IfElseBlock) */ { - public: - IfElseBlock(); - virtual ~IfElseBlock(); - - IfElseBlock(const IfElseBlock& from); - - inline IfElseBlock& operator=(const IfElseBlock& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IfElseBlock(IfElseBlock&& from) noexcept - : IfElseBlock() { - *this = ::std::move(from); - } - - inline IfElseBlock& operator=(IfElseBlock&& 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 IfElseBlock& default_instance(); - - enum DefaultCase { - kElseNode = 3, - kError = 4, - DEFAULT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IfElseBlock* internal_default_instance() { - return reinterpret_cast( - &_IfElseBlock_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(IfElseBlock* other); - friend void swap(IfElseBlock& a, IfElseBlock& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IfElseBlock* New() const final { - return CreateMaybeMessage(nullptr); - } - - IfElseBlock* 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 IfElseBlock& from); - void MergeFrom(const IfElseBlock& 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(IfElseBlock* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.IfBlock other = 2; - int other_size() const; - void clear_other(); - static const int kOtherFieldNumber = 2; - ::flyteidl::core::IfBlock* mutable_other(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* - mutable_other(); - const ::flyteidl::core::IfBlock& other(int index) const; - ::flyteidl::core::IfBlock* add_other(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& - other() const; - - // .flyteidl.core.IfBlock case = 1; - bool has_case_() const; - void clear_case_(); - static const int kCaseFieldNumber = 1; - const ::flyteidl::core::IfBlock& case_() const; - ::flyteidl::core::IfBlock* release_case_(); - ::flyteidl::core::IfBlock* mutable_case_(); - void set_allocated_case_(::flyteidl::core::IfBlock* case_); - - // .flyteidl.core.Node else_node = 3; - bool has_else_node() const; - void clear_else_node(); - static const int kElseNodeFieldNumber = 3; - const ::flyteidl::core::Node& else_node() const; - ::flyteidl::core::Node* release_else_node(); - ::flyteidl::core::Node* mutable_else_node(); - void set_allocated_else_node(::flyteidl::core::Node* else_node); - - // .flyteidl.core.Error error = 4; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 4; - const ::flyteidl::core::Error& error() const; - ::flyteidl::core::Error* release_error(); - ::flyteidl::core::Error* mutable_error(); - void set_allocated_error(::flyteidl::core::Error* error); - - void clear_default(); - DefaultCase default_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) - private: - class HasBitSetters; - void set_has_else_node(); - void set_has_error(); - - inline bool has_default() const; - inline void clear_has_default(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock > other_; - ::flyteidl::core::IfBlock* case__; - union DefaultUnion { - DefaultUnion() {} - ::flyteidl::core::Node* else_node_; - ::flyteidl::core::Error* error_; - } default_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class BranchNode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.BranchNode) */ { - public: - BranchNode(); - virtual ~BranchNode(); - - BranchNode(const BranchNode& from); - - inline BranchNode& operator=(const BranchNode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BranchNode(BranchNode&& from) noexcept - : BranchNode() { - *this = ::std::move(from); - } - - inline BranchNode& operator=(BranchNode&& 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 BranchNode& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BranchNode* internal_default_instance() { - return reinterpret_cast( - &_BranchNode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(BranchNode* other); - friend void swap(BranchNode& a, BranchNode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BranchNode* New() const final { - return CreateMaybeMessage(nullptr); - } - - BranchNode* 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 BranchNode& from); - void MergeFrom(const BranchNode& 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(BranchNode* 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.IfElseBlock if_else = 1; - bool has_if_else() const; - void clear_if_else(); - static const int kIfElseFieldNumber = 1; - const ::flyteidl::core::IfElseBlock& if_else() const; - ::flyteidl::core::IfElseBlock* release_if_else(); - ::flyteidl::core::IfElseBlock* mutable_if_else(); - void set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else); - - // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::IfElseBlock* if_else_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskNode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskNode) */ { - public: - TaskNode(); - virtual ~TaskNode(); - - TaskNode(const TaskNode& from); - - inline TaskNode& operator=(const TaskNode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskNode(TaskNode&& from) noexcept - : TaskNode() { - *this = ::std::move(from); - } - - inline TaskNode& operator=(TaskNode&& 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 TaskNode& default_instance(); - - enum ReferenceCase { - kReferenceId = 1, - REFERENCE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskNode* internal_default_instance() { - return reinterpret_cast( - &_TaskNode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskNode* other); - friend void swap(TaskNode& a, TaskNode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskNode* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskNode* 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 TaskNode& from); - void MergeFrom(const TaskNode& 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(TaskNode* 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.TaskNodeOverrides overrides = 2; - bool has_overrides() const; - void clear_overrides(); - static const int kOverridesFieldNumber = 2; - const ::flyteidl::core::TaskNodeOverrides& overrides() const; - ::flyteidl::core::TaskNodeOverrides* release_overrides(); - ::flyteidl::core::TaskNodeOverrides* mutable_overrides(); - void set_allocated_overrides(::flyteidl::core::TaskNodeOverrides* overrides); - - // .flyteidl.core.Identifier reference_id = 1; - bool has_reference_id() const; - void clear_reference_id(); - static const int kReferenceIdFieldNumber = 1; - const ::flyteidl::core::Identifier& reference_id() const; - ::flyteidl::core::Identifier* release_reference_id(); - ::flyteidl::core::Identifier* mutable_reference_id(); - void set_allocated_reference_id(::flyteidl::core::Identifier* reference_id); - - void clear_reference(); - ReferenceCase reference_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) - private: - class HasBitSetters; - void set_has_reference_id(); - - inline bool has_reference() const; - inline void clear_has_reference(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskNodeOverrides* overrides_; - union ReferenceUnion { - ReferenceUnion() {} - ::flyteidl::core::Identifier* reference_id_; - } reference_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowNode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowNode) */ { - public: - WorkflowNode(); - virtual ~WorkflowNode(); - - WorkflowNode(const WorkflowNode& from); - - inline WorkflowNode& operator=(const WorkflowNode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowNode(WorkflowNode&& from) noexcept - : WorkflowNode() { - *this = ::std::move(from); - } - - inline WorkflowNode& operator=(WorkflowNode&& 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 WorkflowNode& default_instance(); - - enum ReferenceCase { - kLaunchplanRef = 1, - kSubWorkflowRef = 2, - REFERENCE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowNode* internal_default_instance() { - return reinterpret_cast( - &_WorkflowNode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(WorkflowNode* other); - friend void swap(WorkflowNode& a, WorkflowNode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowNode* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowNode* 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 WorkflowNode& from); - void MergeFrom(const WorkflowNode& 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(WorkflowNode* 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 launchplan_ref = 1; - bool has_launchplan_ref() const; - void clear_launchplan_ref(); - static const int kLaunchplanRefFieldNumber = 1; - const ::flyteidl::core::Identifier& launchplan_ref() const; - ::flyteidl::core::Identifier* release_launchplan_ref(); - ::flyteidl::core::Identifier* mutable_launchplan_ref(); - void set_allocated_launchplan_ref(::flyteidl::core::Identifier* launchplan_ref); - - // .flyteidl.core.Identifier sub_workflow_ref = 2; - bool has_sub_workflow_ref() const; - void clear_sub_workflow_ref(); - static const int kSubWorkflowRefFieldNumber = 2; - const ::flyteidl::core::Identifier& sub_workflow_ref() const; - ::flyteidl::core::Identifier* release_sub_workflow_ref(); - ::flyteidl::core::Identifier* mutable_sub_workflow_ref(); - void set_allocated_sub_workflow_ref(::flyteidl::core::Identifier* sub_workflow_ref); - - void clear_reference(); - ReferenceCase reference_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) - private: - class HasBitSetters; - void set_has_launchplan_ref(); - void set_has_sub_workflow_ref(); - - inline bool has_reference() const; - inline void clear_has_reference(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ReferenceUnion { - ReferenceUnion() {} - ::flyteidl::core::Identifier* launchplan_ref_; - ::flyteidl::core::Identifier* sub_workflow_ref_; - } reference_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class ApproveCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ApproveCondition) */ { - public: - ApproveCondition(); - virtual ~ApproveCondition(); - - ApproveCondition(const ApproveCondition& from); - - inline ApproveCondition& operator=(const ApproveCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApproveCondition(ApproveCondition&& from) noexcept - : ApproveCondition() { - *this = ::std::move(from); - } - - inline ApproveCondition& operator=(ApproveCondition&& 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 ApproveCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApproveCondition* internal_default_instance() { - return reinterpret_cast( - &_ApproveCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ApproveCondition* other); - friend void swap(ApproveCondition& a, ApproveCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApproveCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - ApproveCondition* 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 ApproveCondition& from); - void MergeFrom(const ApproveCondition& 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(ApproveCondition* 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 ------------------------------------------------------- - - // string signal_id = 1; - void clear_signal_id(); - static const int kSignalIdFieldNumber = 1; - const ::std::string& signal_id() const; - void set_signal_id(const ::std::string& value); - #if LANG_CXX11 - void set_signal_id(::std::string&& value); - #endif - void set_signal_id(const char* value); - void set_signal_id(const char* value, size_t size); - ::std::string* mutable_signal_id(); - ::std::string* release_signal_id(); - void set_allocated_signal_id(::std::string* signal_id); - - // @@protoc_insertion_point(class_scope:flyteidl.core.ApproveCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr signal_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class SignalCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SignalCondition) */ { - public: - SignalCondition(); - virtual ~SignalCondition(); - - SignalCondition(const SignalCondition& from); - - inline SignalCondition& operator=(const SignalCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SignalCondition(SignalCondition&& from) noexcept - : SignalCondition() { - *this = ::std::move(from); - } - - inline SignalCondition& operator=(SignalCondition&& 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 SignalCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SignalCondition* internal_default_instance() { - return reinterpret_cast( - &_SignalCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(SignalCondition* other); - friend void swap(SignalCondition& a, SignalCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SignalCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - SignalCondition* 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 SignalCondition& from); - void MergeFrom(const SignalCondition& 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(SignalCondition* 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 ------------------------------------------------------- - - // string signal_id = 1; - void clear_signal_id(); - static const int kSignalIdFieldNumber = 1; - const ::std::string& signal_id() const; - void set_signal_id(const ::std::string& value); - #if LANG_CXX11 - void set_signal_id(::std::string&& value); - #endif - void set_signal_id(const char* value); - void set_signal_id(const char* value, size_t size); - ::std::string* mutable_signal_id(); - ::std::string* release_signal_id(); - void set_allocated_signal_id(::std::string* signal_id); - - // string output_variable_name = 3; - void clear_output_variable_name(); - static const int kOutputVariableNameFieldNumber = 3; - const ::std::string& output_variable_name() const; - void set_output_variable_name(const ::std::string& value); - #if LANG_CXX11 - void set_output_variable_name(::std::string&& value); - #endif - void set_output_variable_name(const char* value); - void set_output_variable_name(const char* value, size_t size); - ::std::string* mutable_output_variable_name(); - ::std::string* release_output_variable_name(); - void set_allocated_output_variable_name(::std::string* output_variable_name); - - // .flyteidl.core.LiteralType type = 2; - bool has_type() const; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::flyteidl::core::LiteralType& type() const; - ::flyteidl::core::LiteralType* release_type(); - ::flyteidl::core::LiteralType* mutable_type(); - void set_allocated_type(::flyteidl::core::LiteralType* type); - - // @@protoc_insertion_point(class_scope:flyteidl.core.SignalCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr signal_id_; - ::google::protobuf::internal::ArenaStringPtr output_variable_name_; - ::flyteidl::core::LiteralType* type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class SleepCondition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.SleepCondition) */ { - public: - SleepCondition(); - virtual ~SleepCondition(); - - SleepCondition(const SleepCondition& from); - - inline SleepCondition& operator=(const SleepCondition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SleepCondition(SleepCondition&& from) noexcept - : SleepCondition() { - *this = ::std::move(from); - } - - inline SleepCondition& operator=(SleepCondition&& 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 SleepCondition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SleepCondition* internal_default_instance() { - return reinterpret_cast( - &_SleepCondition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(SleepCondition* other); - friend void swap(SleepCondition& a, SleepCondition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SleepCondition* New() const final { - return CreateMaybeMessage(nullptr); - } - - SleepCondition* 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 SleepCondition& from); - void MergeFrom(const SleepCondition& 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(SleepCondition* 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 ------------------------------------------------------- - - // .google.protobuf.Duration duration = 1; - bool has_duration() const; - void clear_duration(); - static const int kDurationFieldNumber = 1; - const ::google::protobuf::Duration& duration() const; - ::google::protobuf::Duration* release_duration(); - ::google::protobuf::Duration* mutable_duration(); - void set_allocated_duration(::google::protobuf::Duration* duration); - - // @@protoc_insertion_point(class_scope:flyteidl.core.SleepCondition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Duration* duration_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class GateNode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.GateNode) */ { - public: - GateNode(); - virtual ~GateNode(); - - GateNode(const GateNode& from); - - inline GateNode& operator=(const GateNode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GateNode(GateNode&& from) noexcept - : GateNode() { - *this = ::std::move(from); - } - - inline GateNode& operator=(GateNode&& 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 GateNode& default_instance(); - - enum ConditionCase { - kApprove = 1, - kSignal = 2, - kSleep = 3, - CONDITION_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GateNode* internal_default_instance() { - return reinterpret_cast( - &_GateNode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(GateNode* other); - friend void swap(GateNode& a, GateNode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GateNode* New() const final { - return CreateMaybeMessage(nullptr); - } - - GateNode* 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 GateNode& from); - void MergeFrom(const GateNode& 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(GateNode* 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.ApproveCondition approve = 1; - bool has_approve() const; - void clear_approve(); - static const int kApproveFieldNumber = 1; - const ::flyteidl::core::ApproveCondition& approve() const; - ::flyteidl::core::ApproveCondition* release_approve(); - ::flyteidl::core::ApproveCondition* mutable_approve(); - void set_allocated_approve(::flyteidl::core::ApproveCondition* approve); - - // .flyteidl.core.SignalCondition signal = 2; - bool has_signal() const; - void clear_signal(); - static const int kSignalFieldNumber = 2; - const ::flyteidl::core::SignalCondition& signal() const; - ::flyteidl::core::SignalCondition* release_signal(); - ::flyteidl::core::SignalCondition* mutable_signal(); - void set_allocated_signal(::flyteidl::core::SignalCondition* signal); - - // .flyteidl.core.SleepCondition sleep = 3; - bool has_sleep() const; - void clear_sleep(); - static const int kSleepFieldNumber = 3; - const ::flyteidl::core::SleepCondition& sleep() const; - ::flyteidl::core::SleepCondition* release_sleep(); - ::flyteidl::core::SleepCondition* mutable_sleep(); - void set_allocated_sleep(::flyteidl::core::SleepCondition* sleep); - - void clear_condition(); - ConditionCase condition_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.GateNode) - private: - class HasBitSetters; - void set_has_approve(); - void set_has_signal(); - void set_has_sleep(); - - inline bool has_condition() const; - inline void clear_has_condition(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union ConditionUnion { - ConditionUnion() {} - ::flyteidl::core::ApproveCondition* approve_; - ::flyteidl::core::SignalCondition* signal_; - ::flyteidl::core::SleepCondition* sleep_; - } condition_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class ArrayNode final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.ArrayNode) */ { - public: - ArrayNode(); - virtual ~ArrayNode(); - - ArrayNode(const ArrayNode& from); - - inline ArrayNode& operator=(const ArrayNode& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArrayNode(ArrayNode&& from) noexcept - : ArrayNode() { - *this = ::std::move(from); - } - - inline ArrayNode& operator=(ArrayNode&& 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 ArrayNode& default_instance(); - - enum SuccessCriteriaCase { - kMinSuccesses = 3, - kMinSuccessRatio = 4, - SUCCESS_CRITERIA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArrayNode* internal_default_instance() { - return reinterpret_cast( - &_ArrayNode_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(ArrayNode* other); - friend void swap(ArrayNode& a, ArrayNode& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArrayNode* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArrayNode* 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 ArrayNode& from); - void MergeFrom(const ArrayNode& 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(ArrayNode* 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.Node node = 1; - bool has_node() const; - void clear_node(); - static const int kNodeFieldNumber = 1; - const ::flyteidl::core::Node& node() const; - ::flyteidl::core::Node* release_node(); - ::flyteidl::core::Node* mutable_node(); - void set_allocated_node(::flyteidl::core::Node* node); - - // uint32 parallelism = 2; - void clear_parallelism(); - static const int kParallelismFieldNumber = 2; - ::google::protobuf::uint32 parallelism() const; - void set_parallelism(::google::protobuf::uint32 value); - - // uint32 min_successes = 3; - private: - bool has_min_successes() const; - public: - void clear_min_successes(); - static const int kMinSuccessesFieldNumber = 3; - ::google::protobuf::uint32 min_successes() const; - void set_min_successes(::google::protobuf::uint32 value); - - // float min_success_ratio = 4; - private: - bool has_min_success_ratio() const; - public: - void clear_min_success_ratio(); - static const int kMinSuccessRatioFieldNumber = 4; - float min_success_ratio() const; - void set_min_success_ratio(float value); - - void clear_success_criteria(); - SuccessCriteriaCase success_criteria_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.ArrayNode) - private: - class HasBitSetters; - void set_has_min_successes(); - void set_has_min_success_ratio(); - - inline bool has_success_criteria() const; - inline void clear_has_success_criteria(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Node* node_; - ::google::protobuf::uint32 parallelism_; - union SuccessCriteriaUnion { - SuccessCriteriaUnion() {} - ::google::protobuf::uint32 min_successes_; - float min_success_ratio_; - } success_criteria_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.NodeMetadata) */ { - public: - NodeMetadata(); - virtual ~NodeMetadata(); - - NodeMetadata(const NodeMetadata& from); - - inline NodeMetadata& operator=(const NodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeMetadata(NodeMetadata&& from) noexcept - : NodeMetadata() { - *this = ::std::move(from); - } - - inline NodeMetadata& operator=(NodeMetadata&& 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 NodeMetadata& default_instance(); - - enum InterruptibleValueCase { - kInterruptible = 6, - INTERRUPTIBLE_VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_NodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(NodeMetadata* other); - friend void swap(NodeMetadata& a, NodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeMetadata* 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 NodeMetadata& from); - void MergeFrom(const NodeMetadata& 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(NodeMetadata* 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 ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .google.protobuf.Duration timeout = 4; - bool has_timeout() const; - void clear_timeout(); - static const int kTimeoutFieldNumber = 4; - const ::google::protobuf::Duration& timeout() const; - ::google::protobuf::Duration* release_timeout(); - ::google::protobuf::Duration* mutable_timeout(); - void set_allocated_timeout(::google::protobuf::Duration* timeout); - - // .flyteidl.core.RetryStrategy retries = 5; - bool has_retries() const; - void clear_retries(); - static const int kRetriesFieldNumber = 5; - const ::flyteidl::core::RetryStrategy& retries() const; - ::flyteidl::core::RetryStrategy* release_retries(); - ::flyteidl::core::RetryStrategy* mutable_retries(); - void set_allocated_retries(::flyteidl::core::RetryStrategy* retries); - - // bool interruptible = 6; - private: - bool has_interruptible() const; - public: - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 6; - bool interruptible() const; - void set_interruptible(bool value); - - void clear_interruptible_value(); - InterruptibleValueCase interruptible_value_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) - private: - class HasBitSetters; - void set_has_interruptible(); - - inline bool has_interruptible_value() const; - inline void clear_has_interruptible_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::Duration* timeout_; - ::flyteidl::core::RetryStrategy* retries_; - union InterruptibleValueUnion { - InterruptibleValueUnion() {} - bool interruptible_; - } interruptible_value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class Alias final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Alias) */ { - public: - Alias(); - virtual ~Alias(); - - Alias(const Alias& from); - - inline Alias& operator=(const Alias& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Alias(Alias&& from) noexcept - : Alias() { - *this = ::std::move(from); - } - - inline Alias& operator=(Alias&& 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 Alias& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Alias* internal_default_instance() { - return reinterpret_cast( - &_Alias_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(Alias* other); - friend void swap(Alias& a, Alias& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Alias* New() const final { - return CreateMaybeMessage(nullptr); - } - - Alias* 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 Alias& from); - void MergeFrom(const Alias& 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(Alias* 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 ------------------------------------------------------- - - // string var = 1; - void clear_var(); - static const int kVarFieldNumber = 1; - const ::std::string& var() const; - void set_var(const ::std::string& value); - #if LANG_CXX11 - void set_var(::std::string&& value); - #endif - void set_var(const char* value); - void set_var(const char* value, size_t size); - ::std::string* mutable_var(); - ::std::string* release_var(); - void set_allocated_var(::std::string* var); - - // string alias = 2; - void clear_alias(); - static const int kAliasFieldNumber = 2; - const ::std::string& alias() const; - void set_alias(const ::std::string& value); - #if LANG_CXX11 - void set_alias(::std::string&& value); - #endif - void set_alias(const char* value); - void set_alias(const char* value, size_t size); - ::std::string* mutable_alias(); - ::std::string* release_alias(); - void set_allocated_alias(::std::string* alias); - - // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr var_; - ::google::protobuf::internal::ArenaStringPtr alias_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class Node final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.Node) */ { - public: - Node(); - virtual ~Node(); - - Node(const Node& from); - - inline Node& operator=(const Node& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Node(Node&& from) noexcept - : Node() { - *this = ::std::move(from); - } - - inline Node& operator=(Node&& 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 Node& default_instance(); - - enum TargetCase { - kTaskNode = 6, - kWorkflowNode = 7, - kBranchNode = 8, - kGateNode = 9, - kArrayNode = 10, - TARGET_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Node* internal_default_instance() { - return reinterpret_cast( - &_Node_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(Node* other); - friend void swap(Node& a, Node& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Node* New() const final { - return CreateMaybeMessage(nullptr); - } - - Node* 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 Node& from); - void MergeFrom(const Node& 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(Node* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Binding inputs = 3; - int inputs_size() const; - void clear_inputs(); - static const int kInputsFieldNumber = 3; - ::flyteidl::core::Binding* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* - mutable_inputs(); - const ::flyteidl::core::Binding& inputs(int index) const; - ::flyteidl::core::Binding* add_inputs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& - inputs() const; - - // repeated string upstream_node_ids = 4; - int upstream_node_ids_size() const; - void clear_upstream_node_ids(); - static const int kUpstreamNodeIdsFieldNumber = 4; - const ::std::string& upstream_node_ids(int index) const; - ::std::string* mutable_upstream_node_ids(int index); - void set_upstream_node_ids(int index, const ::std::string& value); - #if LANG_CXX11 - void set_upstream_node_ids(int index, ::std::string&& value); - #endif - void set_upstream_node_ids(int index, const char* value); - void set_upstream_node_ids(int index, const char* value, size_t size); - ::std::string* add_upstream_node_ids(); - void add_upstream_node_ids(const ::std::string& value); - #if LANG_CXX11 - void add_upstream_node_ids(::std::string&& value); - #endif - void add_upstream_node_ids(const char* value); - void add_upstream_node_ids(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& upstream_node_ids() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_upstream_node_ids(); - - // repeated .flyteidl.core.Alias output_aliases = 5; - int output_aliases_size() const; - void clear_output_aliases(); - static const int kOutputAliasesFieldNumber = 5; - ::flyteidl::core::Alias* mutable_output_aliases(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* - mutable_output_aliases(); - const ::flyteidl::core::Alias& output_aliases(int index) const; - ::flyteidl::core::Alias* add_output_aliases(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& - output_aliases() const; - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // .flyteidl.core.NodeMetadata metadata = 2; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::flyteidl::core::NodeMetadata& metadata() const; - ::flyteidl::core::NodeMetadata* release_metadata(); - ::flyteidl::core::NodeMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata); - - // .flyteidl.core.TaskNode task_node = 6; - bool has_task_node() const; - void clear_task_node(); - static const int kTaskNodeFieldNumber = 6; - const ::flyteidl::core::TaskNode& task_node() const; - ::flyteidl::core::TaskNode* release_task_node(); - ::flyteidl::core::TaskNode* mutable_task_node(); - void set_allocated_task_node(::flyteidl::core::TaskNode* task_node); - - // .flyteidl.core.WorkflowNode workflow_node = 7; - bool has_workflow_node() const; - void clear_workflow_node(); - static const int kWorkflowNodeFieldNumber = 7; - const ::flyteidl::core::WorkflowNode& workflow_node() const; - ::flyteidl::core::WorkflowNode* release_workflow_node(); - ::flyteidl::core::WorkflowNode* mutable_workflow_node(); - void set_allocated_workflow_node(::flyteidl::core::WorkflowNode* workflow_node); - - // .flyteidl.core.BranchNode branch_node = 8; - bool has_branch_node() const; - void clear_branch_node(); - static const int kBranchNodeFieldNumber = 8; - const ::flyteidl::core::BranchNode& branch_node() const; - ::flyteidl::core::BranchNode* release_branch_node(); - ::flyteidl::core::BranchNode* mutable_branch_node(); - void set_allocated_branch_node(::flyteidl::core::BranchNode* branch_node); - - // .flyteidl.core.GateNode gate_node = 9; - bool has_gate_node() const; - void clear_gate_node(); - static const int kGateNodeFieldNumber = 9; - const ::flyteidl::core::GateNode& gate_node() const; - ::flyteidl::core::GateNode* release_gate_node(); - ::flyteidl::core::GateNode* mutable_gate_node(); - void set_allocated_gate_node(::flyteidl::core::GateNode* gate_node); - - // .flyteidl.core.ArrayNode array_node = 10; - bool has_array_node() const; - void clear_array_node(); - static const int kArrayNodeFieldNumber = 10; - const ::flyteidl::core::ArrayNode& array_node() const; - ::flyteidl::core::ArrayNode* release_array_node(); - ::flyteidl::core::ArrayNode* mutable_array_node(); - void set_allocated_array_node(::flyteidl::core::ArrayNode* array_node); - - void clear_target(); - TargetCase target_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.core.Node) - private: - class HasBitSetters; - void set_has_task_node(); - void set_has_workflow_node(); - void set_has_branch_node(); - void set_has_gate_node(); - void set_has_array_node(); - - inline bool has_target() const; - inline void clear_has_target(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > inputs_; - ::google::protobuf::RepeatedPtrField<::std::string> upstream_node_ids_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias > output_aliases_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::flyteidl::core::NodeMetadata* metadata_; - union TargetUnion { - TargetUnion() {} - ::flyteidl::core::TaskNode* task_node_; - ::flyteidl::core::WorkflowNode* workflow_node_; - ::flyteidl::core::BranchNode* branch_node_; - ::flyteidl::core::GateNode* gate_node_; - ::flyteidl::core::ArrayNode* array_node_; - } target_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowMetadata_TagsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - WorkflowMetadata_TagsEntry_DoNotUse(); - WorkflowMetadata_TagsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const WorkflowMetadata_TagsEntry_DoNotUse& other); - static const WorkflowMetadata_TagsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_WorkflowMetadata_TagsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class WorkflowMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowMetadata) */ { - public: - WorkflowMetadata(); - virtual ~WorkflowMetadata(); - - WorkflowMetadata(const WorkflowMetadata& from); - - inline WorkflowMetadata& operator=(const WorkflowMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowMetadata(WorkflowMetadata&& from) noexcept - : WorkflowMetadata() { - *this = ::std::move(from); - } - - inline WorkflowMetadata& operator=(WorkflowMetadata&& 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 WorkflowMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowMetadata* internal_default_instance() { - return reinterpret_cast( - &_WorkflowMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(WorkflowMetadata* other); - friend void swap(WorkflowMetadata& a, WorkflowMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowMetadata* 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 WorkflowMetadata& from); - void MergeFrom(const WorkflowMetadata& 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(WorkflowMetadata* 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 ---------------------------------------------------- - - - typedef WorkflowMetadata_OnFailurePolicy OnFailurePolicy; - static const OnFailurePolicy FAIL_IMMEDIATELY = - WorkflowMetadata_OnFailurePolicy_FAIL_IMMEDIATELY; - static const OnFailurePolicy FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = - WorkflowMetadata_OnFailurePolicy_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; - static inline bool OnFailurePolicy_IsValid(int value) { - return WorkflowMetadata_OnFailurePolicy_IsValid(value); - } - static const OnFailurePolicy OnFailurePolicy_MIN = - WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MIN; - static const OnFailurePolicy OnFailurePolicy_MAX = - WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_MAX; - static const int OnFailurePolicy_ARRAYSIZE = - WorkflowMetadata_OnFailurePolicy_OnFailurePolicy_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - OnFailurePolicy_descriptor() { - return WorkflowMetadata_OnFailurePolicy_descriptor(); - } - static inline const ::std::string& OnFailurePolicy_Name(OnFailurePolicy value) { - return WorkflowMetadata_OnFailurePolicy_Name(value); - } - static inline bool OnFailurePolicy_Parse(const ::std::string& name, - OnFailurePolicy* value) { - return WorkflowMetadata_OnFailurePolicy_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // map tags = 3; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 3; - const ::google::protobuf::Map< ::std::string, ::std::string >& - tags() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_tags(); - - // .flyteidl.core.QualityOfService quality_of_service = 1; - bool has_quality_of_service() const; - void clear_quality_of_service(); - static const int kQualityOfServiceFieldNumber = 1; - const ::flyteidl::core::QualityOfService& quality_of_service() const; - ::flyteidl::core::QualityOfService* release_quality_of_service(); - ::flyteidl::core::QualityOfService* mutable_quality_of_service(); - void set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service); - - // .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - void clear_on_failure(); - static const int kOnFailureFieldNumber = 2; - ::flyteidl::core::WorkflowMetadata_OnFailurePolicy on_failure() const; - void set_on_failure(::flyteidl::core::WorkflowMetadata_OnFailurePolicy value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - WorkflowMetadata_TagsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > tags_; - ::flyteidl::core::QualityOfService* quality_of_service_; - int on_failure_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowMetadataDefaults final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowMetadataDefaults) */ { - public: - WorkflowMetadataDefaults(); - virtual ~WorkflowMetadataDefaults(); - - WorkflowMetadataDefaults(const WorkflowMetadataDefaults& from); - - inline WorkflowMetadataDefaults& operator=(const WorkflowMetadataDefaults& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowMetadataDefaults(WorkflowMetadataDefaults&& from) noexcept - : WorkflowMetadataDefaults() { - *this = ::std::move(from); - } - - inline WorkflowMetadataDefaults& operator=(WorkflowMetadataDefaults&& 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 WorkflowMetadataDefaults& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowMetadataDefaults* internal_default_instance() { - return reinterpret_cast( - &_WorkflowMetadataDefaults_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(WorkflowMetadataDefaults* other); - friend void swap(WorkflowMetadataDefaults& a, WorkflowMetadataDefaults& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowMetadataDefaults* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowMetadataDefaults* 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 WorkflowMetadataDefaults& from); - void MergeFrom(const WorkflowMetadataDefaults& 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(WorkflowMetadataDefaults* 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 ------------------------------------------------------- - - // bool interruptible = 1; - void clear_interruptible(); - static const int kInterruptibleFieldNumber = 1; - bool interruptible() const; - void set_interruptible(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - bool interruptible_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowTemplate final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowTemplate) */ { - public: - WorkflowTemplate(); - virtual ~WorkflowTemplate(); - - WorkflowTemplate(const WorkflowTemplate& from); - - inline WorkflowTemplate& operator=(const WorkflowTemplate& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowTemplate(WorkflowTemplate&& from) noexcept - : WorkflowTemplate() { - *this = ::std::move(from); - } - - inline WorkflowTemplate& operator=(WorkflowTemplate&& 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 WorkflowTemplate& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowTemplate* internal_default_instance() { - return reinterpret_cast( - &_WorkflowTemplate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(WorkflowTemplate* other); - friend void swap(WorkflowTemplate& a, WorkflowTemplate& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowTemplate* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowTemplate* 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 WorkflowTemplate& from); - void MergeFrom(const WorkflowTemplate& 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(WorkflowTemplate* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.Node nodes = 4; - int nodes_size() const; - void clear_nodes(); - static const int kNodesFieldNumber = 4; - ::flyteidl::core::Node* mutable_nodes(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* - mutable_nodes(); - const ::flyteidl::core::Node& nodes(int index) const; - ::flyteidl::core::Node* add_nodes(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& - nodes() const; - - // repeated .flyteidl.core.Binding outputs = 5; - int outputs_size() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 5; - ::flyteidl::core::Binding* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* - mutable_outputs(); - const ::flyteidl::core::Binding& outputs(int index) const; - ::flyteidl::core::Binding* add_outputs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& - outputs() const; - - // .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); - - // .flyteidl.core.WorkflowMetadata metadata = 2; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::flyteidl::core::WorkflowMetadata& metadata() const; - ::flyteidl::core::WorkflowMetadata* release_metadata(); - ::flyteidl::core::WorkflowMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata); - - // .flyteidl.core.TypedInterface interface = 3; - bool has_interface() const; - void clear_interface(); - static const int kInterfaceFieldNumber = 3; - const ::flyteidl::core::TypedInterface& interface() const; - ::flyteidl::core::TypedInterface* release_interface(); - ::flyteidl::core::TypedInterface* mutable_interface(); - void set_allocated_interface(::flyteidl::core::TypedInterface* interface); - - // .flyteidl.core.Node failure_node = 6; - bool has_failure_node() const; - void clear_failure_node(); - static const int kFailureNodeFieldNumber = 6; - const ::flyteidl::core::Node& failure_node() const; - ::flyteidl::core::Node* release_failure_node(); - ::flyteidl::core::Node* mutable_failure_node(); - void set_allocated_failure_node(::flyteidl::core::Node* failure_node); - - // .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - bool has_metadata_defaults() const; - void clear_metadata_defaults(); - static const int kMetadataDefaultsFieldNumber = 7; - const ::flyteidl::core::WorkflowMetadataDefaults& metadata_defaults() const; - ::flyteidl::core::WorkflowMetadataDefaults* release_metadata_defaults(); - ::flyteidl::core::WorkflowMetadataDefaults* mutable_metadata_defaults(); - void set_allocated_metadata_defaults(::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults); - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node > nodes_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding > outputs_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::core::WorkflowMetadata* metadata_; - ::flyteidl::core::TypedInterface* interface_; - ::flyteidl::core::Node* failure_node_; - ::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskNodeOverrides final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.TaskNodeOverrides) */ { - public: - TaskNodeOverrides(); - virtual ~TaskNodeOverrides(); - - TaskNodeOverrides(const TaskNodeOverrides& from); - - inline TaskNodeOverrides& operator=(const TaskNodeOverrides& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskNodeOverrides(TaskNodeOverrides&& from) noexcept - : TaskNodeOverrides() { - *this = ::std::move(from); - } - - inline TaskNodeOverrides& operator=(TaskNodeOverrides&& 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 TaskNodeOverrides& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskNodeOverrides* internal_default_instance() { - return reinterpret_cast( - &_TaskNodeOverrides_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(TaskNodeOverrides* other); - friend void swap(TaskNodeOverrides& a, TaskNodeOverrides& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskNodeOverrides* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskNodeOverrides* 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 TaskNodeOverrides& from); - void MergeFrom(const TaskNodeOverrides& 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(TaskNodeOverrides* 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.Resources resources = 1; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 1; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // .flyteidl.core.ExtendedResources extended_resources = 2; - bool has_extended_resources() const; - void clear_extended_resources(); - static const int kExtendedResourcesFieldNumber = 2; - const ::flyteidl::core::ExtendedResources& extended_resources() const; - ::flyteidl::core::ExtendedResources* release_extended_resources(); - ::flyteidl::core::ExtendedResources* mutable_extended_resources(); - void set_allocated_extended_resources(::flyteidl::core::ExtendedResources* extended_resources); - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNodeOverrides) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::Resources* resources_; - ::flyteidl::core::ExtendedResources* extended_resources_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// IfBlock - -// .flyteidl.core.BooleanExpression condition = 1; -inline bool IfBlock::has_condition() const { - return this != internal_default_instance() && condition_ != nullptr; -} -inline const ::flyteidl::core::BooleanExpression& IfBlock::condition() const { - const ::flyteidl::core::BooleanExpression* p = condition_; - // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.condition) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_BooleanExpression_default_instance_); -} -inline ::flyteidl::core::BooleanExpression* IfBlock::release_condition() { - // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.condition) - - ::flyteidl::core::BooleanExpression* temp = condition_; - condition_ = nullptr; - return temp; -} -inline ::flyteidl::core::BooleanExpression* IfBlock::mutable_condition() { - - if (condition_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::BooleanExpression>(GetArenaNoVirtual()); - condition_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.condition) - return condition_; -} -inline void IfBlock::set_allocated_condition(::flyteidl::core::BooleanExpression* condition) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(condition_); - } - if (condition) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - condition = ::google::protobuf::internal::GetOwnedMessage( - message_arena, condition, submessage_arena); - } - - } else { - - } - condition_ = condition; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.condition) -} - -// .flyteidl.core.Node then_node = 2; -inline bool IfBlock::has_then_node() const { - return this != internal_default_instance() && then_node_ != nullptr; -} -inline void IfBlock::clear_then_node() { - if (GetArenaNoVirtual() == nullptr && then_node_ != nullptr) { - delete then_node_; - } - then_node_ = nullptr; -} -inline const ::flyteidl::core::Node& IfBlock::then_node() const { - const ::flyteidl::core::Node* p = then_node_; - // @@protoc_insertion_point(field_get:flyteidl.core.IfBlock.then_node) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Node_default_instance_); -} -inline ::flyteidl::core::Node* IfBlock::release_then_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.IfBlock.then_node) - - ::flyteidl::core::Node* temp = then_node_; - then_node_ = nullptr; - return temp; -} -inline ::flyteidl::core::Node* IfBlock::mutable_then_node() { - - if (then_node_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); - then_node_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfBlock.then_node) - return then_node_; -} -inline void IfBlock::set_allocated_then_node(::flyteidl::core::Node* then_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete then_node_; - } - if (then_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - then_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, then_node, submessage_arena); - } - - } else { - - } - then_node_ = then_node; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfBlock.then_node) -} - -// ------------------------------------------------------------------- - -// IfElseBlock - -// .flyteidl.core.IfBlock case = 1; -inline bool IfElseBlock::has_case_() const { - return this != internal_default_instance() && case__ != nullptr; -} -inline void IfElseBlock::clear_case_() { - if (GetArenaNoVirtual() == nullptr && case__ != nullptr) { - delete case__; - } - case__ = nullptr; -} -inline const ::flyteidl::core::IfBlock& IfElseBlock::case_() const { - const ::flyteidl::core::IfBlock* p = case__; - // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.case) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_IfBlock_default_instance_); -} -inline ::flyteidl::core::IfBlock* IfElseBlock::release_case_() { - // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.case) - - ::flyteidl::core::IfBlock* temp = case__; - case__ = nullptr; - return temp; -} -inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_case_() { - - if (case__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::IfBlock>(GetArenaNoVirtual()); - case__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.case) - return case__; -} -inline void IfElseBlock::set_allocated_case_(::flyteidl::core::IfBlock* case_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete case__; - } - if (case_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - case_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, case_, submessage_arena); - } - - } else { - - } - case__ = case_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.IfElseBlock.case) -} - -// repeated .flyteidl.core.IfBlock other = 2; -inline int IfElseBlock::other_size() const { - return other_.size(); -} -inline void IfElseBlock::clear_other() { - other_.Clear(); -} -inline ::flyteidl::core::IfBlock* IfElseBlock::mutable_other(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.other) - return other_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >* -IfElseBlock::mutable_other() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.IfElseBlock.other) - return &other_; -} -inline const ::flyteidl::core::IfBlock& IfElseBlock::other(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.other) - return other_.Get(index); -} -inline ::flyteidl::core::IfBlock* IfElseBlock::add_other() { - // @@protoc_insertion_point(field_add:flyteidl.core.IfElseBlock.other) - return other_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::IfBlock >& -IfElseBlock::other() const { - // @@protoc_insertion_point(field_list:flyteidl.core.IfElseBlock.other) - return other_; -} - -// .flyteidl.core.Node else_node = 3; -inline bool IfElseBlock::has_else_node() const { - return default_case() == kElseNode; -} -inline void IfElseBlock::set_has_else_node() { - _oneof_case_[0] = kElseNode; -} -inline void IfElseBlock::clear_else_node() { - if (has_else_node()) { - delete default_.else_node_; - clear_has_default(); - } -} -inline ::flyteidl::core::Node* IfElseBlock::release_else_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.else_node) - if (has_else_node()) { - clear_has_default(); - ::flyteidl::core::Node* temp = default_.else_node_; - default_.else_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Node& IfElseBlock::else_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.else_node) - return has_else_node() - ? *default_.else_node_ - : *reinterpret_cast< ::flyteidl::core::Node*>(&::flyteidl::core::_Node_default_instance_); -} -inline ::flyteidl::core::Node* IfElseBlock::mutable_else_node() { - if (!has_else_node()) { - clear_default(); - set_has_else_node(); - default_.else_node_ = CreateMaybeMessage< ::flyteidl::core::Node >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.else_node) - return default_.else_node_; -} - -// .flyteidl.core.Error error = 4; -inline bool IfElseBlock::has_error() const { - return default_case() == kError; -} -inline void IfElseBlock::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::Error* IfElseBlock::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.core.IfElseBlock.error) - if (has_error()) { - clear_has_default(); - ::flyteidl::core::Error* temp = default_.error_; - default_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Error& IfElseBlock::error() const { - // @@protoc_insertion_point(field_get:flyteidl.core.IfElseBlock.error) - return has_error() - ? *default_.error_ - : *reinterpret_cast< ::flyteidl::core::Error*>(&::flyteidl::core::_Error_default_instance_); -} -inline ::flyteidl::core::Error* IfElseBlock::mutable_error() { - if (!has_error()) { - clear_default(); - set_has_error(); - default_.error_ = CreateMaybeMessage< ::flyteidl::core::Error >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.IfElseBlock.error) - return default_.error_; -} - -inline bool IfElseBlock::has_default() const { - return default_case() != DEFAULT_NOT_SET; -} -inline void IfElseBlock::clear_has_default() { - _oneof_case_[0] = DEFAULT_NOT_SET; -} -inline IfElseBlock::DefaultCase IfElseBlock::default_case() const { - return IfElseBlock::DefaultCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// BranchNode - -// .flyteidl.core.IfElseBlock if_else = 1; -inline bool BranchNode::has_if_else() const { - return this != internal_default_instance() && if_else_ != nullptr; -} -inline void BranchNode::clear_if_else() { - if (GetArenaNoVirtual() == nullptr && if_else_ != nullptr) { - delete if_else_; - } - if_else_ = nullptr; -} -inline const ::flyteidl::core::IfElseBlock& BranchNode::if_else() const { - const ::flyteidl::core::IfElseBlock* p = if_else_; - // @@protoc_insertion_point(field_get:flyteidl.core.BranchNode.if_else) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_IfElseBlock_default_instance_); -} -inline ::flyteidl::core::IfElseBlock* BranchNode::release_if_else() { - // @@protoc_insertion_point(field_release:flyteidl.core.BranchNode.if_else) - - ::flyteidl::core::IfElseBlock* temp = if_else_; - if_else_ = nullptr; - return temp; -} -inline ::flyteidl::core::IfElseBlock* BranchNode::mutable_if_else() { - - if (if_else_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::IfElseBlock>(GetArenaNoVirtual()); - if_else_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.BranchNode.if_else) - return if_else_; -} -inline void BranchNode::set_allocated_if_else(::flyteidl::core::IfElseBlock* if_else) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete if_else_; - } - if (if_else) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - if_else = ::google::protobuf::internal::GetOwnedMessage( - message_arena, if_else, submessage_arena); - } - - } else { - - } - if_else_ = if_else; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.BranchNode.if_else) -} - -// ------------------------------------------------------------------- - -// TaskNode - -// .flyteidl.core.Identifier reference_id = 1; -inline bool TaskNode::has_reference_id() const { - return reference_case() == kReferenceId; -} -inline void TaskNode::set_has_reference_id() { - _oneof_case_[0] = kReferenceId; -} -inline ::flyteidl::core::Identifier* TaskNode::release_reference_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskNode.reference_id) - if (has_reference_id()) { - clear_has_reference(); - ::flyteidl::core::Identifier* temp = reference_.reference_id_; - reference_.reference_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Identifier& TaskNode::reference_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.TaskNode.reference_id) - return has_reference_id() - ? *reference_.reference_id_ - : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* TaskNode::mutable_reference_id() { - if (!has_reference_id()) { - clear_reference(); - set_has_reference_id(); - reference_.reference_id_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNode.reference_id) - return reference_.reference_id_; -} - -// .flyteidl.core.TaskNodeOverrides overrides = 2; -inline bool TaskNode::has_overrides() const { - return this != internal_default_instance() && overrides_ != nullptr; -} -inline void TaskNode::clear_overrides() { - if (GetArenaNoVirtual() == nullptr && overrides_ != nullptr) { - delete overrides_; - } - overrides_ = nullptr; -} -inline const ::flyteidl::core::TaskNodeOverrides& TaskNode::overrides() const { - const ::flyteidl::core::TaskNodeOverrides* p = overrides_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskNode.overrides) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskNodeOverrides_default_instance_); -} -inline ::flyteidl::core::TaskNodeOverrides* TaskNode::release_overrides() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskNode.overrides) - - ::flyteidl::core::TaskNodeOverrides* temp = overrides_; - overrides_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskNodeOverrides* TaskNode::mutable_overrides() { - - if (overrides_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskNodeOverrides>(GetArenaNoVirtual()); - overrides_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNode.overrides) - return overrides_; -} -inline void TaskNode::set_allocated_overrides(::flyteidl::core::TaskNodeOverrides* overrides) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete overrides_; - } - if (overrides) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - overrides = ::google::protobuf::internal::GetOwnedMessage( - message_arena, overrides, submessage_arena); - } - - } else { - - } - overrides_ = overrides; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNode.overrides) -} - -inline bool TaskNode::has_reference() const { - return reference_case() != REFERENCE_NOT_SET; -} -inline void TaskNode::clear_has_reference() { - _oneof_case_[0] = REFERENCE_NOT_SET; -} -inline TaskNode::ReferenceCase TaskNode::reference_case() const { - return TaskNode::ReferenceCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// WorkflowNode - -// .flyteidl.core.Identifier launchplan_ref = 1; -inline bool WorkflowNode::has_launchplan_ref() const { - return reference_case() == kLaunchplanRef; -} -inline void WorkflowNode::set_has_launchplan_ref() { - _oneof_case_[0] = kLaunchplanRef; -} -inline ::flyteidl::core::Identifier* WorkflowNode::release_launchplan_ref() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.launchplan_ref) - if (has_launchplan_ref()) { - clear_has_reference(); - ::flyteidl::core::Identifier* temp = reference_.launchplan_ref_; - reference_.launchplan_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Identifier& WorkflowNode::launchplan_ref() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.launchplan_ref) - return has_launchplan_ref() - ? *reference_.launchplan_ref_ - : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* WorkflowNode::mutable_launchplan_ref() { - if (!has_launchplan_ref()) { - clear_reference(); - set_has_launchplan_ref(); - reference_.launchplan_ref_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.launchplan_ref) - return reference_.launchplan_ref_; -} - -// .flyteidl.core.Identifier sub_workflow_ref = 2; -inline bool WorkflowNode::has_sub_workflow_ref() const { - return reference_case() == kSubWorkflowRef; -} -inline void WorkflowNode::set_has_sub_workflow_ref() { - _oneof_case_[0] = kSubWorkflowRef; -} -inline ::flyteidl::core::Identifier* WorkflowNode::release_sub_workflow_ref() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowNode.sub_workflow_ref) - if (has_sub_workflow_ref()) { - clear_has_reference(); - ::flyteidl::core::Identifier* temp = reference_.sub_workflow_ref_; - reference_.sub_workflow_ref_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Identifier& WorkflowNode::sub_workflow_ref() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowNode.sub_workflow_ref) - return has_sub_workflow_ref() - ? *reference_.sub_workflow_ref_ - : *reinterpret_cast< ::flyteidl::core::Identifier*>(&::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* WorkflowNode::mutable_sub_workflow_ref() { - if (!has_sub_workflow_ref()) { - clear_reference(); - set_has_sub_workflow_ref(); - reference_.sub_workflow_ref_ = CreateMaybeMessage< ::flyteidl::core::Identifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowNode.sub_workflow_ref) - return reference_.sub_workflow_ref_; -} - -inline bool WorkflowNode::has_reference() const { - return reference_case() != REFERENCE_NOT_SET; -} -inline void WorkflowNode::clear_has_reference() { - _oneof_case_[0] = REFERENCE_NOT_SET; -} -inline WorkflowNode::ReferenceCase WorkflowNode::reference_case() const { - return WorkflowNode::ReferenceCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ApproveCondition - -// string signal_id = 1; -inline void ApproveCondition::clear_signal_id() { - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ApproveCondition::signal_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ApproveCondition.signal_id) - return signal_id_.GetNoArena(); -} -inline void ApproveCondition::set_signal_id(const ::std::string& value) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.ApproveCondition.signal_id) -} -#if LANG_CXX11 -inline void ApproveCondition::set_signal_id(::std::string&& value) { - - signal_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.ApproveCondition.signal_id) -} -#endif -inline void ApproveCondition::set_signal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.ApproveCondition.signal_id) -} -inline void ApproveCondition::set_signal_id(const char* value, size_t size) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.ApproveCondition.signal_id) -} -inline ::std::string* ApproveCondition::mutable_signal_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.ApproveCondition.signal_id) - return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ApproveCondition::release_signal_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.ApproveCondition.signal_id) - - return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ApproveCondition::set_allocated_signal_id(::std::string* signal_id) { - if (signal_id != nullptr) { - - } else { - - } - signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ApproveCondition.signal_id) -} - -// ------------------------------------------------------------------- - -// SignalCondition - -// string signal_id = 1; -inline void SignalCondition::clear_signal_id() { - signal_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalCondition::signal_id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.signal_id) - return signal_id_.GetNoArena(); -} -inline void SignalCondition::set_signal_id(const ::std::string& value) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.SignalCondition.signal_id) -} -#if LANG_CXX11 -inline void SignalCondition::set_signal_id(::std::string&& value) { - - signal_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalCondition.signal_id) -} -#endif -inline void SignalCondition::set_signal_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalCondition.signal_id) -} -inline void SignalCondition::set_signal_id(const char* value, size_t size) { - - signal_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalCondition.signal_id) -} -inline ::std::string* SignalCondition::mutable_signal_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.signal_id) - return signal_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalCondition::release_signal_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.signal_id) - - return signal_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalCondition::set_allocated_signal_id(::std::string* signal_id) { - if (signal_id != nullptr) { - - } else { - - } - signal_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signal_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.signal_id) -} - -// .flyteidl.core.LiteralType type = 2; -inline bool SignalCondition::has_type() const { - return this != internal_default_instance() && type_ != nullptr; -} -inline const ::flyteidl::core::LiteralType& SignalCondition::type() const { - const ::flyteidl::core::LiteralType* p = type_; - // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.type) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralType_default_instance_); -} -inline ::flyteidl::core::LiteralType* SignalCondition::release_type() { - // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.type) - - ::flyteidl::core::LiteralType* temp = type_; - type_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralType* SignalCondition::mutable_type() { - - if (type_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralType>(GetArenaNoVirtual()); - type_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.type) - return type_; -} -inline void SignalCondition::set_allocated_type(::flyteidl::core::LiteralType* type) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(type_); - } - if (type) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - type = ::google::protobuf::internal::GetOwnedMessage( - message_arena, type, submessage_arena); - } - - } else { - - } - type_ = type; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.type) -} - -// string output_variable_name = 3; -inline void SignalCondition::clear_output_variable_name() { - output_variable_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SignalCondition::output_variable_name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.SignalCondition.output_variable_name) - return output_variable_name_.GetNoArena(); -} -inline void SignalCondition::set_output_variable_name(const ::std::string& value) { - - output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.SignalCondition.output_variable_name) -} -#if LANG_CXX11 -inline void SignalCondition::set_output_variable_name(::std::string&& value) { - - output_variable_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.SignalCondition.output_variable_name) -} -#endif -inline void SignalCondition::set_output_variable_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.SignalCondition.output_variable_name) -} -inline void SignalCondition::set_output_variable_name(const char* value, size_t size) { - - output_variable_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.SignalCondition.output_variable_name) -} -inline ::std::string* SignalCondition::mutable_output_variable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.SignalCondition.output_variable_name) - return output_variable_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SignalCondition::release_output_variable_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.SignalCondition.output_variable_name) - - return output_variable_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SignalCondition::set_allocated_output_variable_name(::std::string* output_variable_name) { - if (output_variable_name != nullptr) { - - } else { - - } - output_variable_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_variable_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SignalCondition.output_variable_name) -} - -// ------------------------------------------------------------------- - -// SleepCondition - -// .google.protobuf.Duration duration = 1; -inline bool SleepCondition::has_duration() const { - return this != internal_default_instance() && duration_ != nullptr; -} -inline const ::google::protobuf::Duration& SleepCondition::duration() const { - const ::google::protobuf::Duration* p = duration_; - // @@protoc_insertion_point(field_get:flyteidl.core.SleepCondition.duration) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* SleepCondition::release_duration() { - // @@protoc_insertion_point(field_release:flyteidl.core.SleepCondition.duration) - - ::google::protobuf::Duration* temp = duration_; - duration_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* SleepCondition::mutable_duration() { - - if (duration_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - duration_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.SleepCondition.duration) - return duration_; -} -inline void SleepCondition::set_allocated_duration(::google::protobuf::Duration* duration) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_); - } - if (duration) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena(); - if (message_arena != submessage_arena) { - duration = ::google::protobuf::internal::GetOwnedMessage( - message_arena, duration, submessage_arena); - } - - } else { - - } - duration_ = duration; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.SleepCondition.duration) -} - -// ------------------------------------------------------------------- - -// GateNode - -// .flyteidl.core.ApproveCondition approve = 1; -inline bool GateNode::has_approve() const { - return condition_case() == kApprove; -} -inline void GateNode::set_has_approve() { - _oneof_case_[0] = kApprove; -} -inline void GateNode::clear_approve() { - if (has_approve()) { - delete condition_.approve_; - clear_has_condition(); - } -} -inline ::flyteidl::core::ApproveCondition* GateNode::release_approve() { - // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.approve) - if (has_approve()) { - clear_has_condition(); - ::flyteidl::core::ApproveCondition* temp = condition_.approve_; - condition_.approve_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ApproveCondition& GateNode::approve() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.approve) - return has_approve() - ? *condition_.approve_ - : *reinterpret_cast< ::flyteidl::core::ApproveCondition*>(&::flyteidl::core::_ApproveCondition_default_instance_); -} -inline ::flyteidl::core::ApproveCondition* GateNode::mutable_approve() { - if (!has_approve()) { - clear_condition(); - set_has_approve(); - condition_.approve_ = CreateMaybeMessage< ::flyteidl::core::ApproveCondition >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.approve) - return condition_.approve_; -} - -// .flyteidl.core.SignalCondition signal = 2; -inline bool GateNode::has_signal() const { - return condition_case() == kSignal; -} -inline void GateNode::set_has_signal() { - _oneof_case_[0] = kSignal; -} -inline void GateNode::clear_signal() { - if (has_signal()) { - delete condition_.signal_; - clear_has_condition(); - } -} -inline ::flyteidl::core::SignalCondition* GateNode::release_signal() { - // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.signal) - if (has_signal()) { - clear_has_condition(); - ::flyteidl::core::SignalCondition* temp = condition_.signal_; - condition_.signal_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::SignalCondition& GateNode::signal() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.signal) - return has_signal() - ? *condition_.signal_ - : *reinterpret_cast< ::flyteidl::core::SignalCondition*>(&::flyteidl::core::_SignalCondition_default_instance_); -} -inline ::flyteidl::core::SignalCondition* GateNode::mutable_signal() { - if (!has_signal()) { - clear_condition(); - set_has_signal(); - condition_.signal_ = CreateMaybeMessage< ::flyteidl::core::SignalCondition >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.signal) - return condition_.signal_; -} - -// .flyteidl.core.SleepCondition sleep = 3; -inline bool GateNode::has_sleep() const { - return condition_case() == kSleep; -} -inline void GateNode::set_has_sleep() { - _oneof_case_[0] = kSleep; -} -inline void GateNode::clear_sleep() { - if (has_sleep()) { - delete condition_.sleep_; - clear_has_condition(); - } -} -inline ::flyteidl::core::SleepCondition* GateNode::release_sleep() { - // @@protoc_insertion_point(field_release:flyteidl.core.GateNode.sleep) - if (has_sleep()) { - clear_has_condition(); - ::flyteidl::core::SleepCondition* temp = condition_.sleep_; - condition_.sleep_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::SleepCondition& GateNode::sleep() const { - // @@protoc_insertion_point(field_get:flyteidl.core.GateNode.sleep) - return has_sleep() - ? *condition_.sleep_ - : *reinterpret_cast< ::flyteidl::core::SleepCondition*>(&::flyteidl::core::_SleepCondition_default_instance_); -} -inline ::flyteidl::core::SleepCondition* GateNode::mutable_sleep() { - if (!has_sleep()) { - clear_condition(); - set_has_sleep(); - condition_.sleep_ = CreateMaybeMessage< ::flyteidl::core::SleepCondition >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.GateNode.sleep) - return condition_.sleep_; -} - -inline bool GateNode::has_condition() const { - return condition_case() != CONDITION_NOT_SET; -} -inline void GateNode::clear_has_condition() { - _oneof_case_[0] = CONDITION_NOT_SET; -} -inline GateNode::ConditionCase GateNode::condition_case() const { - return GateNode::ConditionCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ArrayNode - -// .flyteidl.core.Node node = 1; -inline bool ArrayNode::has_node() const { - return this != internal_default_instance() && node_ != nullptr; -} -inline void ArrayNode::clear_node() { - if (GetArenaNoVirtual() == nullptr && node_ != nullptr) { - delete node_; - } - node_ = nullptr; -} -inline const ::flyteidl::core::Node& ArrayNode::node() const { - const ::flyteidl::core::Node* p = node_; - // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.node) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Node_default_instance_); -} -inline ::flyteidl::core::Node* ArrayNode::release_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.ArrayNode.node) - - ::flyteidl::core::Node* temp = node_; - node_ = nullptr; - return temp; -} -inline ::flyteidl::core::Node* ArrayNode::mutable_node() { - - if (node_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); - node_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.ArrayNode.node) - return node_; -} -inline void ArrayNode::set_allocated_node(::flyteidl::core::Node* node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete node_; - } - if (node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node, submessage_arena); - } - - } else { - - } - node_ = node; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.ArrayNode.node) -} - -// uint32 parallelism = 2; -inline void ArrayNode::clear_parallelism() { - parallelism_ = 0u; -} -inline ::google::protobuf::uint32 ArrayNode::parallelism() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.parallelism) - return parallelism_; -} -inline void ArrayNode::set_parallelism(::google::protobuf::uint32 value) { - - parallelism_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.parallelism) -} - -// uint32 min_successes = 3; -inline bool ArrayNode::has_min_successes() const { - return success_criteria_case() == kMinSuccesses; -} -inline void ArrayNode::set_has_min_successes() { - _oneof_case_[0] = kMinSuccesses; -} -inline void ArrayNode::clear_min_successes() { - if (has_min_successes()) { - success_criteria_.min_successes_ = 0u; - clear_has_success_criteria(); - } -} -inline ::google::protobuf::uint32 ArrayNode::min_successes() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.min_successes) - if (has_min_successes()) { - return success_criteria_.min_successes_; - } - return 0u; -} -inline void ArrayNode::set_min_successes(::google::protobuf::uint32 value) { - if (!has_min_successes()) { - clear_success_criteria(); - set_has_min_successes(); - } - success_criteria_.min_successes_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.min_successes) -} - -// float min_success_ratio = 4; -inline bool ArrayNode::has_min_success_ratio() const { - return success_criteria_case() == kMinSuccessRatio; -} -inline void ArrayNode::set_has_min_success_ratio() { - _oneof_case_[0] = kMinSuccessRatio; -} -inline void ArrayNode::clear_min_success_ratio() { - if (has_min_success_ratio()) { - success_criteria_.min_success_ratio_ = 0; - clear_has_success_criteria(); - } -} -inline float ArrayNode::min_success_ratio() const { - // @@protoc_insertion_point(field_get:flyteidl.core.ArrayNode.min_success_ratio) - if (has_min_success_ratio()) { - return success_criteria_.min_success_ratio_; - } - return 0; -} -inline void ArrayNode::set_min_success_ratio(float value) { - if (!has_min_success_ratio()) { - clear_success_criteria(); - set_has_min_success_ratio(); - } - success_criteria_.min_success_ratio_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.ArrayNode.min_success_ratio) -} - -inline bool ArrayNode::has_success_criteria() const { - return success_criteria_case() != SUCCESS_CRITERIA_NOT_SET; -} -inline void ArrayNode::clear_has_success_criteria() { - _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; -} -inline ArrayNode::SuccessCriteriaCase ArrayNode::success_criteria_case() const { - return ArrayNode::SuccessCriteriaCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// NodeMetadata - -// string name = 1; -inline void NodeMetadata::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeMetadata::name() const { - // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.name) - return name_.GetNoArena(); -} -inline void NodeMetadata::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.NodeMetadata.name) -} -#if LANG_CXX11 -inline void NodeMetadata::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.NodeMetadata.name) -} -#endif -inline void NodeMetadata::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.NodeMetadata.name) -} -inline void NodeMetadata::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.NodeMetadata.name) -} -inline ::std::string* NodeMetadata::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeMetadata::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeMetadata::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.name) -} - -// .google.protobuf.Duration timeout = 4; -inline bool NodeMetadata::has_timeout() const { - return this != internal_default_instance() && timeout_ != nullptr; -} -inline const ::google::protobuf::Duration& NodeMetadata::timeout() const { - const ::google::protobuf::Duration* p = timeout_; - // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.timeout) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* NodeMetadata::release_timeout() { - // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.timeout) - - ::google::protobuf::Duration* temp = timeout_; - timeout_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* NodeMetadata::mutable_timeout() { - - if (timeout_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - timeout_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.timeout) - return timeout_; -} -inline void NodeMetadata::set_allocated_timeout(::google::protobuf::Duration* timeout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeout_); - } - if (timeout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(timeout)->GetArena(); - if (message_arena != submessage_arena) { - timeout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, timeout, submessage_arena); - } - - } else { - - } - timeout_ = timeout; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.timeout) -} - -// .flyteidl.core.RetryStrategy retries = 5; -inline bool NodeMetadata::has_retries() const { - return this != internal_default_instance() && retries_ != nullptr; -} -inline const ::flyteidl::core::RetryStrategy& NodeMetadata::retries() const { - const ::flyteidl::core::RetryStrategy* p = retries_; - // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.retries) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_RetryStrategy_default_instance_); -} -inline ::flyteidl::core::RetryStrategy* NodeMetadata::release_retries() { - // @@protoc_insertion_point(field_release:flyteidl.core.NodeMetadata.retries) - - ::flyteidl::core::RetryStrategy* temp = retries_; - retries_ = nullptr; - return temp; -} -inline ::flyteidl::core::RetryStrategy* NodeMetadata::mutable_retries() { - - if (retries_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::RetryStrategy>(GetArenaNoVirtual()); - retries_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.NodeMetadata.retries) - return retries_; -} -inline void NodeMetadata::set_allocated_retries(::flyteidl::core::RetryStrategy* retries) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(retries_); - } - if (retries) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - retries = ::google::protobuf::internal::GetOwnedMessage( - message_arena, retries, submessage_arena); - } - - } else { - - } - retries_ = retries; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.NodeMetadata.retries) -} - -// bool interruptible = 6; -inline bool NodeMetadata::has_interruptible() const { - return interruptible_value_case() == kInterruptible; -} -inline void NodeMetadata::set_has_interruptible() { - _oneof_case_[0] = kInterruptible; -} -inline void NodeMetadata::clear_interruptible() { - if (has_interruptible()) { - interruptible_value_.interruptible_ = false; - clear_has_interruptible_value(); - } -} -inline bool NodeMetadata::interruptible() const { - // @@protoc_insertion_point(field_get:flyteidl.core.NodeMetadata.interruptible) - if (has_interruptible()) { - return interruptible_value_.interruptible_; - } - return false; -} -inline void NodeMetadata::set_interruptible(bool value) { - if (!has_interruptible()) { - clear_interruptible_value(); - set_has_interruptible(); - } - interruptible_value_.interruptible_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.NodeMetadata.interruptible) -} - -inline bool NodeMetadata::has_interruptible_value() const { - return interruptible_value_case() != INTERRUPTIBLE_VALUE_NOT_SET; -} -inline void NodeMetadata::clear_has_interruptible_value() { - _oneof_case_[0] = INTERRUPTIBLE_VALUE_NOT_SET; -} -inline NodeMetadata::InterruptibleValueCase NodeMetadata::interruptible_value_case() const { - return NodeMetadata::InterruptibleValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Alias - -// string var = 1; -inline void Alias::clear_var() { - var_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Alias::var() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Alias.var) - return var_.GetNoArena(); -} -inline void Alias::set_var(const ::std::string& value) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Alias.var) -} -#if LANG_CXX11 -inline void Alias::set_var(::std::string&& value) { - - var_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.var) -} -#endif -inline void Alias::set_var(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.var) -} -inline void Alias::set_var(const char* value, size_t size) { - - var_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.var) -} -inline ::std::string* Alias::mutable_var() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.var) - return var_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Alias::release_var() { - // @@protoc_insertion_point(field_release:flyteidl.core.Alias.var) - - return var_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Alias::set_allocated_var(::std::string* var) { - if (var != nullptr) { - - } else { - - } - var_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), var); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.var) -} - -// string alias = 2; -inline void Alias::clear_alias() { - alias_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Alias::alias() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Alias.alias) - return alias_.GetNoArena(); -} -inline void Alias::set_alias(const ::std::string& value) { - - alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Alias.alias) -} -#if LANG_CXX11 -inline void Alias::set_alias(::std::string&& value) { - - alias_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Alias.alias) -} -#endif -inline void Alias::set_alias(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Alias.alias) -} -inline void Alias::set_alias(const char* value, size_t size) { - - alias_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Alias.alias) -} -inline ::std::string* Alias::mutable_alias() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Alias.alias) - return alias_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Alias::release_alias() { - // @@protoc_insertion_point(field_release:flyteidl.core.Alias.alias) - - return alias_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Alias::set_allocated_alias(::std::string* alias) { - if (alias != nullptr) { - - } else { - - } - alias_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), alias); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Alias.alias) -} - -// ------------------------------------------------------------------- - -// Node - -// string id = 1; -inline void Node::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Node::id() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.id) - return id_.GetNoArena(); -} -inline void Node::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.core.Node.id) -} -#if LANG_CXX11 -inline void Node::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.core.Node.id) -} -#endif -inline void Node::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.id) -} -inline void Node::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.id) -} -inline ::std::string* Node::mutable_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Node::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Node::set_allocated_id(::std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.id) -} - -// .flyteidl.core.NodeMetadata metadata = 2; -inline bool Node::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void Node::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::NodeMetadata& Node::metadata() const { - const ::flyteidl::core::NodeMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.Node.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeMetadata_default_instance_); -} -inline ::flyteidl::core::NodeMetadata* Node::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.metadata) - - ::flyteidl::core::NodeMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeMetadata* Node::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.metadata) - return metadata_; -} -inline void Node::set_allocated_metadata(::flyteidl::core::NodeMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.Node.metadata) -} - -// repeated .flyteidl.core.Binding inputs = 3; -inline int Node::inputs_size() const { - return inputs_.size(); -} -inline ::flyteidl::core::Binding* Node::mutable_inputs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.inputs) - return inputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* -Node::mutable_inputs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.inputs) - return &inputs_; -} -inline const ::flyteidl::core::Binding& Node::inputs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.inputs) - return inputs_.Get(index); -} -inline ::flyteidl::core::Binding* Node::add_inputs() { - // @@protoc_insertion_point(field_add:flyteidl.core.Node.inputs) - return inputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& -Node::inputs() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Node.inputs) - return inputs_; -} - -// repeated string upstream_node_ids = 4; -inline int Node::upstream_node_ids_size() const { - return upstream_node_ids_.size(); -} -inline void Node::clear_upstream_node_ids() { - upstream_node_ids_.Clear(); -} -inline const ::std::string& Node::upstream_node_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.upstream_node_ids) - return upstream_node_ids_.Get(index); -} -inline ::std::string* Node::mutable_upstream_node_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.upstream_node_ids) - return upstream_node_ids_.Mutable(index); -} -inline void Node::set_upstream_node_ids(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) - upstream_node_ids_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Node::set_upstream_node_ids(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.core.Node.upstream_node_ids) - upstream_node_ids_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Node::set_upstream_node_ids(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - upstream_node_ids_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.core.Node.upstream_node_ids) -} -inline void Node::set_upstream_node_ids(int index, const char* value, size_t size) { - upstream_node_ids_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.core.Node.upstream_node_ids) -} -inline ::std::string* Node::add_upstream_node_ids() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.core.Node.upstream_node_ids) - return upstream_node_ids_.Add(); -} -inline void Node::add_upstream_node_ids(const ::std::string& value) { - upstream_node_ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) -} -#if LANG_CXX11 -inline void Node::add_upstream_node_ids(::std::string&& value) { - upstream_node_ids_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.core.Node.upstream_node_ids) -} -#endif -inline void Node::add_upstream_node_ids(const char* value) { - GOOGLE_DCHECK(value != nullptr); - upstream_node_ids_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.core.Node.upstream_node_ids) -} -inline void Node::add_upstream_node_ids(const char* value, size_t size) { - upstream_node_ids_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.core.Node.upstream_node_ids) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Node::upstream_node_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Node.upstream_node_ids) - return upstream_node_ids_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Node::mutable_upstream_node_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.upstream_node_ids) - return &upstream_node_ids_; -} - -// repeated .flyteidl.core.Alias output_aliases = 5; -inline int Node::output_aliases_size() const { - return output_aliases_.size(); -} -inline void Node::clear_output_aliases() { - output_aliases_.Clear(); -} -inline ::flyteidl::core::Alias* Node::mutable_output_aliases(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.output_aliases) - return output_aliases_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >* -Node::mutable_output_aliases() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.Node.output_aliases) - return &output_aliases_; -} -inline const ::flyteidl::core::Alias& Node::output_aliases(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.output_aliases) - return output_aliases_.Get(index); -} -inline ::flyteidl::core::Alias* Node::add_output_aliases() { - // @@protoc_insertion_point(field_add:flyteidl.core.Node.output_aliases) - return output_aliases_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Alias >& -Node::output_aliases() const { - // @@protoc_insertion_point(field_list:flyteidl.core.Node.output_aliases) - return output_aliases_; -} - -// .flyteidl.core.TaskNode task_node = 6; -inline bool Node::has_task_node() const { - return target_case() == kTaskNode; -} -inline void Node::set_has_task_node() { - _oneof_case_[0] = kTaskNode; -} -inline void Node::clear_task_node() { - if (has_task_node()) { - delete target_.task_node_; - clear_has_target(); - } -} -inline ::flyteidl::core::TaskNode* Node::release_task_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.task_node) - if (has_task_node()) { - clear_has_target(); - ::flyteidl::core::TaskNode* temp = target_.task_node_; - target_.task_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::TaskNode& Node::task_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.task_node) - return has_task_node() - ? *target_.task_node_ - : *reinterpret_cast< ::flyteidl::core::TaskNode*>(&::flyteidl::core::_TaskNode_default_instance_); -} -inline ::flyteidl::core::TaskNode* Node::mutable_task_node() { - if (!has_task_node()) { - clear_target(); - set_has_task_node(); - target_.task_node_ = CreateMaybeMessage< ::flyteidl::core::TaskNode >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.task_node) - return target_.task_node_; -} - -// .flyteidl.core.WorkflowNode workflow_node = 7; -inline bool Node::has_workflow_node() const { - return target_case() == kWorkflowNode; -} -inline void Node::set_has_workflow_node() { - _oneof_case_[0] = kWorkflowNode; -} -inline void Node::clear_workflow_node() { - if (has_workflow_node()) { - delete target_.workflow_node_; - clear_has_target(); - } -} -inline ::flyteidl::core::WorkflowNode* Node::release_workflow_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.workflow_node) - if (has_workflow_node()) { - clear_has_target(); - ::flyteidl::core::WorkflowNode* temp = target_.workflow_node_; - target_.workflow_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::WorkflowNode& Node::workflow_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.workflow_node) - return has_workflow_node() - ? *target_.workflow_node_ - : *reinterpret_cast< ::flyteidl::core::WorkflowNode*>(&::flyteidl::core::_WorkflowNode_default_instance_); -} -inline ::flyteidl::core::WorkflowNode* Node::mutable_workflow_node() { - if (!has_workflow_node()) { - clear_target(); - set_has_workflow_node(); - target_.workflow_node_ = CreateMaybeMessage< ::flyteidl::core::WorkflowNode >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.workflow_node) - return target_.workflow_node_; -} - -// .flyteidl.core.BranchNode branch_node = 8; -inline bool Node::has_branch_node() const { - return target_case() == kBranchNode; -} -inline void Node::set_has_branch_node() { - _oneof_case_[0] = kBranchNode; -} -inline void Node::clear_branch_node() { - if (has_branch_node()) { - delete target_.branch_node_; - clear_has_target(); - } -} -inline ::flyteidl::core::BranchNode* Node::release_branch_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.branch_node) - if (has_branch_node()) { - clear_has_target(); - ::flyteidl::core::BranchNode* temp = target_.branch_node_; - target_.branch_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::BranchNode& Node::branch_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.branch_node) - return has_branch_node() - ? *target_.branch_node_ - : *reinterpret_cast< ::flyteidl::core::BranchNode*>(&::flyteidl::core::_BranchNode_default_instance_); -} -inline ::flyteidl::core::BranchNode* Node::mutable_branch_node() { - if (!has_branch_node()) { - clear_target(); - set_has_branch_node(); - target_.branch_node_ = CreateMaybeMessage< ::flyteidl::core::BranchNode >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.branch_node) - return target_.branch_node_; -} - -// .flyteidl.core.GateNode gate_node = 9; -inline bool Node::has_gate_node() const { - return target_case() == kGateNode; -} -inline void Node::set_has_gate_node() { - _oneof_case_[0] = kGateNode; -} -inline void Node::clear_gate_node() { - if (has_gate_node()) { - delete target_.gate_node_; - clear_has_target(); - } -} -inline ::flyteidl::core::GateNode* Node::release_gate_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.gate_node) - if (has_gate_node()) { - clear_has_target(); - ::flyteidl::core::GateNode* temp = target_.gate_node_; - target_.gate_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::GateNode& Node::gate_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.gate_node) - return has_gate_node() - ? *target_.gate_node_ - : *reinterpret_cast< ::flyteidl::core::GateNode*>(&::flyteidl::core::_GateNode_default_instance_); -} -inline ::flyteidl::core::GateNode* Node::mutable_gate_node() { - if (!has_gate_node()) { - clear_target(); - set_has_gate_node(); - target_.gate_node_ = CreateMaybeMessage< ::flyteidl::core::GateNode >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.gate_node) - return target_.gate_node_; -} - -// .flyteidl.core.ArrayNode array_node = 10; -inline bool Node::has_array_node() const { - return target_case() == kArrayNode; -} -inline void Node::set_has_array_node() { - _oneof_case_[0] = kArrayNode; -} -inline void Node::clear_array_node() { - if (has_array_node()) { - delete target_.array_node_; - clear_has_target(); - } -} -inline ::flyteidl::core::ArrayNode* Node::release_array_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.Node.array_node) - if (has_array_node()) { - clear_has_target(); - ::flyteidl::core::ArrayNode* temp = target_.array_node_; - target_.array_node_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ArrayNode& Node::array_node() const { - // @@protoc_insertion_point(field_get:flyteidl.core.Node.array_node) - return has_array_node() - ? *target_.array_node_ - : *reinterpret_cast< ::flyteidl::core::ArrayNode*>(&::flyteidl::core::_ArrayNode_default_instance_); -} -inline ::flyteidl::core::ArrayNode* Node::mutable_array_node() { - if (!has_array_node()) { - clear_target(); - set_has_array_node(); - target_.array_node_ = CreateMaybeMessage< ::flyteidl::core::ArrayNode >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.Node.array_node) - return target_.array_node_; -} - -inline bool Node::has_target() const { - return target_case() != TARGET_NOT_SET; -} -inline void Node::clear_has_target() { - _oneof_case_[0] = TARGET_NOT_SET; -} -inline Node::TargetCase Node::target_case() const { - return Node::TargetCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// WorkflowMetadata - -// .flyteidl.core.QualityOfService quality_of_service = 1; -inline bool WorkflowMetadata::has_quality_of_service() const { - return this != internal_default_instance() && quality_of_service_ != nullptr; -} -inline const ::flyteidl::core::QualityOfService& WorkflowMetadata::quality_of_service() const { - const ::flyteidl::core::QualityOfService* p = quality_of_service_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadata.quality_of_service) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_QualityOfService_default_instance_); -} -inline ::flyteidl::core::QualityOfService* WorkflowMetadata::release_quality_of_service() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowMetadata.quality_of_service) - - ::flyteidl::core::QualityOfService* temp = quality_of_service_; - quality_of_service_ = nullptr; - return temp; -} -inline ::flyteidl::core::QualityOfService* WorkflowMetadata::mutable_quality_of_service() { - - if (quality_of_service_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::QualityOfService>(GetArenaNoVirtual()); - quality_of_service_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowMetadata.quality_of_service) - return quality_of_service_; -} -inline void WorkflowMetadata::set_allocated_quality_of_service(::flyteidl::core::QualityOfService* quality_of_service) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(quality_of_service_); - } - if (quality_of_service) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - quality_of_service = ::google::protobuf::internal::GetOwnedMessage( - message_arena, quality_of_service, submessage_arena); - } - - } else { - - } - quality_of_service_ = quality_of_service; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowMetadata.quality_of_service) -} - -// .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; -inline void WorkflowMetadata::clear_on_failure() { - on_failure_ = 0; -} -inline ::flyteidl::core::WorkflowMetadata_OnFailurePolicy WorkflowMetadata::on_failure() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadata.on_failure) - return static_cast< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy >(on_failure_); -} -inline void WorkflowMetadata::set_on_failure(::flyteidl::core::WorkflowMetadata_OnFailurePolicy value) { - - on_failure_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowMetadata.on_failure) -} - -// map tags = 3; -inline int WorkflowMetadata::tags_size() const { - return tags_.size(); -} -inline void WorkflowMetadata::clear_tags() { - tags_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -WorkflowMetadata::tags() const { - // @@protoc_insertion_point(field_map:flyteidl.core.WorkflowMetadata.tags) - return tags_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -WorkflowMetadata::mutable_tags() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.core.WorkflowMetadata.tags) - return tags_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// WorkflowMetadataDefaults - -// bool interruptible = 1; -inline void WorkflowMetadataDefaults::clear_interruptible() { - interruptible_ = false; -} -inline bool WorkflowMetadataDefaults::interruptible() const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowMetadataDefaults.interruptible) - return interruptible_; -} -inline void WorkflowMetadataDefaults::set_interruptible(bool value) { - - interruptible_ = value; - // @@protoc_insertion_point(field_set:flyteidl.core.WorkflowMetadataDefaults.interruptible) -} - -// ------------------------------------------------------------------- - -// WorkflowTemplate - -// .flyteidl.core.Identifier id = 1; -inline bool WorkflowTemplate::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& WorkflowTemplate::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* WorkflowTemplate::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* WorkflowTemplate::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.id) - return id_; -} -inline void WorkflowTemplate::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.core.WorkflowTemplate.id) -} - -// .flyteidl.core.WorkflowMetadata metadata = 2; -inline bool WorkflowTemplate::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void WorkflowTemplate::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::core::WorkflowMetadata& WorkflowTemplate::metadata() const { - const ::flyteidl::core::WorkflowMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowMetadata_default_instance_); -} -inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.metadata) - - ::flyteidl::core::WorkflowMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowMetadata* WorkflowTemplate::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.metadata) - return metadata_; -} -inline void WorkflowTemplate::set_allocated_metadata(::flyteidl::core::WorkflowMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.metadata) -} - -// .flyteidl.core.TypedInterface interface = 3; -inline bool WorkflowTemplate::has_interface() const { - return this != internal_default_instance() && interface_ != nullptr; -} -inline const ::flyteidl::core::TypedInterface& WorkflowTemplate::interface() const { - const ::flyteidl::core::TypedInterface* p = interface_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.interface) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypedInterface_default_instance_); -} -inline ::flyteidl::core::TypedInterface* WorkflowTemplate::release_interface() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.interface) - - ::flyteidl::core::TypedInterface* temp = interface_; - interface_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypedInterface* WorkflowTemplate::mutable_interface() { - - if (interface_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); - interface_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.interface) - return interface_; -} -inline void WorkflowTemplate::set_allocated_interface(::flyteidl::core::TypedInterface* interface) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(interface_); - } - if (interface) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - interface = ::google::protobuf::internal::GetOwnedMessage( - message_arena, interface, submessage_arena); - } - - } else { - - } - interface_ = interface; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.interface) -} - -// repeated .flyteidl.core.Node nodes = 4; -inline int WorkflowTemplate::nodes_size() const { - return nodes_.size(); -} -inline void WorkflowTemplate::clear_nodes() { - nodes_.Clear(); -} -inline ::flyteidl::core::Node* WorkflowTemplate::mutable_nodes(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.nodes) - return nodes_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >* -WorkflowTemplate::mutable_nodes() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.nodes) - return &nodes_; -} -inline const ::flyteidl::core::Node& WorkflowTemplate::nodes(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.nodes) - return nodes_.Get(index); -} -inline ::flyteidl::core::Node* WorkflowTemplate::add_nodes() { - // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.nodes) - return nodes_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Node >& -WorkflowTemplate::nodes() const { - // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.nodes) - return nodes_; -} - -// repeated .flyteidl.core.Binding outputs = 5; -inline int WorkflowTemplate::outputs_size() const { - return outputs_.size(); -} -inline ::flyteidl::core::Binding* WorkflowTemplate::mutable_outputs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.outputs) - return outputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >* -WorkflowTemplate::mutable_outputs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowTemplate.outputs) - return &outputs_; -} -inline const ::flyteidl::core::Binding& WorkflowTemplate::outputs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.outputs) - return outputs_.Get(index); -} -inline ::flyteidl::core::Binding* WorkflowTemplate::add_outputs() { - // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowTemplate.outputs) - return outputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::Binding >& -WorkflowTemplate::outputs() const { - // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowTemplate.outputs) - return outputs_; -} - -// .flyteidl.core.Node failure_node = 6; -inline bool WorkflowTemplate::has_failure_node() const { - return this != internal_default_instance() && failure_node_ != nullptr; -} -inline void WorkflowTemplate::clear_failure_node() { - if (GetArenaNoVirtual() == nullptr && failure_node_ != nullptr) { - delete failure_node_; - } - failure_node_ = nullptr; -} -inline const ::flyteidl::core::Node& WorkflowTemplate::failure_node() const { - const ::flyteidl::core::Node* p = failure_node_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.failure_node) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Node_default_instance_); -} -inline ::flyteidl::core::Node* WorkflowTemplate::release_failure_node() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.failure_node) - - ::flyteidl::core::Node* temp = failure_node_; - failure_node_ = nullptr; - return temp; -} -inline ::flyteidl::core::Node* WorkflowTemplate::mutable_failure_node() { - - if (failure_node_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Node>(GetArenaNoVirtual()); - failure_node_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.failure_node) - return failure_node_; -} -inline void WorkflowTemplate::set_allocated_failure_node(::flyteidl::core::Node* failure_node) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete failure_node_; - } - if (failure_node) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - failure_node = ::google::protobuf::internal::GetOwnedMessage( - message_arena, failure_node, submessage_arena); - } - - } else { - - } - failure_node_ = failure_node; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.failure_node) -} - -// .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; -inline bool WorkflowTemplate::has_metadata_defaults() const { - return this != internal_default_instance() && metadata_defaults_ != nullptr; -} -inline void WorkflowTemplate::clear_metadata_defaults() { - if (GetArenaNoVirtual() == nullptr && metadata_defaults_ != nullptr) { - delete metadata_defaults_; - } - metadata_defaults_ = nullptr; -} -inline const ::flyteidl::core::WorkflowMetadataDefaults& WorkflowTemplate::metadata_defaults() const { - const ::flyteidl::core::WorkflowMetadataDefaults* p = metadata_defaults_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowTemplate.metadata_defaults) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowMetadataDefaults_default_instance_); -} -inline ::flyteidl::core::WorkflowMetadataDefaults* WorkflowTemplate::release_metadata_defaults() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowTemplate.metadata_defaults) - - ::flyteidl::core::WorkflowMetadataDefaults* temp = metadata_defaults_; - metadata_defaults_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowMetadataDefaults* WorkflowTemplate::mutable_metadata_defaults() { - - if (metadata_defaults_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowMetadataDefaults>(GetArenaNoVirtual()); - metadata_defaults_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowTemplate.metadata_defaults) - return metadata_defaults_; -} -inline void WorkflowTemplate::set_allocated_metadata_defaults(::flyteidl::core::WorkflowMetadataDefaults* metadata_defaults) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_defaults_; - } - if (metadata_defaults) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata_defaults = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata_defaults, submessage_arena); - } - - } else { - - } - metadata_defaults_ = metadata_defaults; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowTemplate.metadata_defaults) -} - -// ------------------------------------------------------------------- - -// TaskNodeOverrides - -// .flyteidl.core.Resources resources = 1; -inline bool TaskNodeOverrides::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& TaskNodeOverrides::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskNodeOverrides.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* TaskNodeOverrides::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskNodeOverrides.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* TaskNodeOverrides::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNodeOverrides.resources) - return resources_; -} -inline void TaskNodeOverrides::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNodeOverrides.resources) -} - -// .flyteidl.core.ExtendedResources extended_resources = 2; -inline bool TaskNodeOverrides::has_extended_resources() const { - return this != internal_default_instance() && extended_resources_ != nullptr; -} -inline const ::flyteidl::core::ExtendedResources& TaskNodeOverrides::extended_resources() const { - const ::flyteidl::core::ExtendedResources* p = extended_resources_; - // @@protoc_insertion_point(field_get:flyteidl.core.TaskNodeOverrides.extended_resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_ExtendedResources_default_instance_); -} -inline ::flyteidl::core::ExtendedResources* TaskNodeOverrides::release_extended_resources() { - // @@protoc_insertion_point(field_release:flyteidl.core.TaskNodeOverrides.extended_resources) - - ::flyteidl::core::ExtendedResources* temp = extended_resources_; - extended_resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::ExtendedResources* TaskNodeOverrides::mutable_extended_resources() { - - if (extended_resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::ExtendedResources>(GetArenaNoVirtual()); - extended_resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.TaskNodeOverrides.extended_resources) - return extended_resources_; -} -inline void TaskNodeOverrides::set_allocated_extended_resources(::flyteidl::core::ExtendedResources* extended_resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(extended_resources_); - } - if (extended_resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - extended_resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, extended_resources, submessage_arena); - } - - } else { - - } - extended_resources_ = extended_resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.TaskNodeOverrides.extended_resources) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::core::WorkflowMetadata_OnFailurePolicy>() { - return ::flyteidl::core::WorkflowMetadata_OnFailurePolicy_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc deleted file mode 100644 index 680f5eac42..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/workflow_closure.proto - -#include "flyteidl/core/workflow_closure.pb.h" -#include "flyteidl/core/workflow_closure.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace core { - -} // namespace flyteidl -} // namespace core - diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h deleted file mode 100644 index bd096c854c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/core/workflow_closure.proto -#ifndef GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED -#define GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED - -#include "flyteidl/core/workflow_closure.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace core { - -} // namespace core -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fcore_2fworkflow_5fclosure_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc deleted file mode 100644 index d515bf7450..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.cc +++ /dev/null @@ -1,474 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow_closure.proto - -#include "flyteidl/core/workflow_closure.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto; -namespace flyteidl { -namespace core { -class WorkflowClosureDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowClosure_default_instance_; -} // namespace core -} // namespace flyteidl -static void InitDefaultsWorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::core::_WorkflowClosure_default_instance_; - new (ptr) ::flyteidl::core::WorkflowClosure(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::core::WorkflowClosure::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsWorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto}, { - &scc_info_WorkflowTemplate_flyteidl_2fcore_2fworkflow_2eproto.base, - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fcore_2fworkflow_5fclosure_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::core::WorkflowClosure, tasks_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::core::WorkflowClosure)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::core::_WorkflowClosure_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto = { - {}, AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, "flyteidl/core/workflow_closure.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto::offsets, - file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, 1, file_level_enum_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, file_level_service_descriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[] = - "\n$flyteidl/core/workflow_closure.proto\022\r" - "flyteidl.core\032\034flyteidl/core/workflow.pr" - "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" - "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" - "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" - "yteidl.core.TaskTemplateBworkflow_ = const_cast< ::flyteidl::core::WorkflowTemplate*>( - ::flyteidl::core::WorkflowTemplate::internal_default_instance()); -} -class WorkflowClosure::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowTemplate& workflow(const WorkflowClosure* msg); -}; - -const ::flyteidl::core::WorkflowTemplate& -WorkflowClosure::HasBitSetters::workflow(const WorkflowClosure* msg) { - return *msg->workflow_; -} -void WorkflowClosure::clear_workflow() { - if (GetArenaNoVirtual() == nullptr && workflow_ != nullptr) { - delete workflow_; - } - workflow_ = nullptr; -} -void WorkflowClosure::clear_tasks() { - tasks_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowClosure::kWorkflowFieldNumber; -const int WorkflowClosure::kTasksFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowClosure::WorkflowClosure() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.core.WorkflowClosure) -} -WorkflowClosure::WorkflowClosure(const WorkflowClosure& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tasks_(from.tasks_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_workflow()) { - workflow_ = new ::flyteidl::core::WorkflowTemplate(*from.workflow_); - } else { - workflow_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.core.WorkflowClosure) -} - -void WorkflowClosure::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); - workflow_ = nullptr; -} - -WorkflowClosure::~WorkflowClosure() { - // @@protoc_insertion_point(destructor:flyteidl.core.WorkflowClosure) - SharedDtor(); -} - -void WorkflowClosure::SharedDtor() { - if (this != internal_default_instance()) delete workflow_; -} - -void WorkflowClosure::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowClosure& WorkflowClosure::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowClosure_flyteidl_2fcore_2fworkflow_5fclosure_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowClosure::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.core.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tasks_.Clear(); - if (GetArenaNoVirtual() == nullptr && workflow_ != nullptr) { - delete workflow_; - } - workflow_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowClosure::_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.WorkflowTemplate workflow = 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::WorkflowTemplate::_InternalParse; - object = msg->mutable_workflow(); - 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; - } - // repeated .flyteidl.core.TaskTemplate tasks = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskTemplate::_InternalParse; - object = msg->add_tasks(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 WorkflowClosure::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.core.WorkflowClosure) - 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.WorkflowTemplate workflow = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskTemplate tasks = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tasks())); - } 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.core.WorkflowClosure) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.core.WorkflowClosure) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowClosure::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.core.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate workflow = 1; - if (this->has_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::workflow(this), output); - } - - // repeated .flyteidl.core.TaskTemplate tasks = 2; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->tasks(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.core.WorkflowClosure) -} - -::google::protobuf::uint8* WorkflowClosure::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.core.WorkflowClosure) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowTemplate workflow = 1; - if (this->has_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::workflow(this), target); - } - - // repeated .flyteidl.core.TaskTemplate tasks = 2; - for (unsigned int i = 0, - n = static_cast(this->tasks_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->tasks(static_cast(i)), 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.core.WorkflowClosure) - return target; -} - -size_t WorkflowClosure::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.core.WorkflowClosure) - 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; - - // repeated .flyteidl.core.TaskTemplate tasks = 2; - { - unsigned int count = static_cast(this->tasks_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tasks(static_cast(i))); - } - } - - // .flyteidl.core.WorkflowTemplate workflow = 1; - if (this->has_workflow()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowClosure::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.core.WorkflowClosure) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowClosure* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.core.WorkflowClosure) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.core.WorkflowClosure) - MergeFrom(*source); - } -} - -void WorkflowClosure::MergeFrom(const WorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.core.WorkflowClosure) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tasks_.MergeFrom(from.tasks_); - if (from.has_workflow()) { - mutable_workflow()->::flyteidl::core::WorkflowTemplate::MergeFrom(from.workflow()); - } -} - -void WorkflowClosure::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.core.WorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowClosure::CopyFrom(const WorkflowClosure& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.core.WorkflowClosure) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowClosure::IsInitialized() const { - return true; -} - -void WorkflowClosure::Swap(WorkflowClosure* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowClosure::InternalSwap(WorkflowClosure* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&tasks_)->InternalSwap(CastToBase(&other->tasks_)); - swap(workflow_, other->workflow_); -} - -::google::protobuf::Metadata WorkflowClosure::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fcore_2fworkflow_5fclosure_2eproto); - return ::file_level_metadata_flyteidl_2fcore_2fworkflow_5fclosure_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::core::WorkflowClosure* Arena::CreateMaybeMessage< ::flyteidl::core::WorkflowClosure >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::core::WorkflowClosure >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h b/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h deleted file mode 100644 index f70671ea56..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/core/workflow_closure.pb.h +++ /dev/null @@ -1,291 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/workflow_closure.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/workflow.pb.h" -#include "flyteidl/core/tasks.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fworkflow_5fclosure_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fcore_2fworkflow_5fclosure_2eproto(); -namespace flyteidl { -namespace core { -class WorkflowClosure; -class WorkflowClosureDefaultTypeInternal; -extern WorkflowClosureDefaultTypeInternal _WorkflowClosure_default_instance_; -} // namespace core -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::core::WorkflowClosure* Arena::CreateMaybeMessage<::flyteidl::core::WorkflowClosure>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace core { - -// =================================================================== - -class WorkflowClosure final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.core.WorkflowClosure) */ { - public: - WorkflowClosure(); - virtual ~WorkflowClosure(); - - WorkflowClosure(const WorkflowClosure& from); - - inline WorkflowClosure& operator=(const WorkflowClosure& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowClosure(WorkflowClosure&& from) noexcept - : WorkflowClosure() { - *this = ::std::move(from); - } - - inline WorkflowClosure& operator=(WorkflowClosure&& 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 WorkflowClosure& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowClosure* internal_default_instance() { - return reinterpret_cast( - &_WorkflowClosure_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(WorkflowClosure* other); - friend void swap(WorkflowClosure& a, WorkflowClosure& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowClosure* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowClosure* 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 WorkflowClosure& from); - void MergeFrom(const WorkflowClosure& 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(WorkflowClosure* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskTemplate tasks = 2; - int tasks_size() const; - void clear_tasks(); - static const int kTasksFieldNumber = 2; - ::flyteidl::core::TaskTemplate* mutable_tasks(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* - mutable_tasks(); - const ::flyteidl::core::TaskTemplate& tasks(int index) const; - ::flyteidl::core::TaskTemplate* add_tasks(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& - tasks() const; - - // .flyteidl.core.WorkflowTemplate workflow = 1; - bool has_workflow() const; - void clear_workflow(); - static const int kWorkflowFieldNumber = 1; - const ::flyteidl::core::WorkflowTemplate& workflow() const; - ::flyteidl::core::WorkflowTemplate* release_workflow(); - ::flyteidl::core::WorkflowTemplate* mutable_workflow(); - void set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow); - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate > tasks_; - ::flyteidl::core::WorkflowTemplate* workflow_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fcore_2fworkflow_5fclosure_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// WorkflowClosure - -// .flyteidl.core.WorkflowTemplate workflow = 1; -inline bool WorkflowClosure::has_workflow() const { - return this != internal_default_instance() && workflow_ != nullptr; -} -inline const ::flyteidl::core::WorkflowTemplate& WorkflowClosure::workflow() const { - const ::flyteidl::core::WorkflowTemplate* p = workflow_; - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowTemplate_default_instance_); -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::release_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.core.WorkflowClosure.workflow) - - ::flyteidl::core::WorkflowTemplate* temp = workflow_; - workflow_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowTemplate* WorkflowClosure::mutable_workflow() { - - if (workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowTemplate>(GetArenaNoVirtual()); - workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.workflow) - return workflow_; -} -inline void WorkflowClosure::set_allocated_workflow(::flyteidl::core::WorkflowTemplate* workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_); - } - if (workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow, submessage_arena); - } - - } else { - - } - workflow_ = workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.core.WorkflowClosure.workflow) -} - -// repeated .flyteidl.core.TaskTemplate tasks = 2; -inline int WorkflowClosure::tasks_size() const { - return tasks_.size(); -} -inline ::flyteidl::core::TaskTemplate* WorkflowClosure::mutable_tasks(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.core.WorkflowClosure.tasks) - return tasks_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >* -WorkflowClosure::mutable_tasks() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.core.WorkflowClosure.tasks) - return &tasks_; -} -inline const ::flyteidl::core::TaskTemplate& WorkflowClosure::tasks(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.core.WorkflowClosure.tasks) - return tasks_.Get(index); -} -inline ::flyteidl::core::TaskTemplate* WorkflowClosure::add_tasks() { - // @@protoc_insertion_point(field_add:flyteidl.core.WorkflowClosure.tasks) - return tasks_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskTemplate >& -WorkflowClosure::tasks() const { - // @@protoc_insertion_point(field_list:flyteidl.core.WorkflowClosure.tasks) - return tasks_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace core -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fcore_2fworkflow_5fclosure_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc deleted file mode 100644 index 9fa10c82c8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.cc +++ /dev/null @@ -1,461 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/datacatalog/datacatalog.proto - -#include "flyteidl/datacatalog/datacatalog.pb.h" -#include "flyteidl/datacatalog/datacatalog.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace datacatalog { - -static const char* DataCatalog_method_names[] = { - "/datacatalog.DataCatalog/CreateDataset", - "/datacatalog.DataCatalog/GetDataset", - "/datacatalog.DataCatalog/CreateArtifact", - "/datacatalog.DataCatalog/GetArtifact", - "/datacatalog.DataCatalog/AddTag", - "/datacatalog.DataCatalog/ListArtifacts", - "/datacatalog.DataCatalog/ListDatasets", - "/datacatalog.DataCatalog/UpdateArtifact", - "/datacatalog.DataCatalog/GetOrExtendReservation", - "/datacatalog.DataCatalog/ReleaseReservation", -}; - -std::unique_ptr< DataCatalog::Stub> DataCatalog::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< DataCatalog::Stub> stub(new DataCatalog::Stub(channel)); - return stub; -} - -DataCatalog::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateDataset_(DataCatalog_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetDataset_(DataCatalog_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateArtifact_(DataCatalog_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetArtifact_(DataCatalog_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_AddTag_(DataCatalog_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListArtifacts_(DataCatalog_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListDatasets_(DataCatalog_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateArtifact_(DataCatalog_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetOrExtendReservation_(DataCatalog_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ReleaseReservation_(DataCatalog_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status DataCatalog::Stub::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDataset_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDataset_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* DataCatalog::Stub::PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateDatasetResponse>::Create(channel_.get(), cq, rpcmethod_CreateDataset_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDataset_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDataset_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* DataCatalog::Stub::PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetDatasetResponse>::Create(channel_.get(), cq, rpcmethod_GetDataset_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateArtifact_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateArtifact_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* DataCatalog::Stub::PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::CreateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_CreateArtifact_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetArtifact_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetArtifact_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* DataCatalog::Stub::PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetArtifactResponse>::Create(channel_.get(), cq, rpcmethod_GetArtifact_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_AddTag_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_AddTag_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* DataCatalog::Stub::PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::AddTagResponse>::Create(channel_.get(), cq, rpcmethod_AddTag_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListArtifacts_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListArtifacts_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* DataCatalog::Stub::PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListArtifactsResponse>::Create(channel_.get(), cq, rpcmethod_ListArtifacts_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListDatasets_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDatasets_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* DataCatalog::Stub::PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ListDatasetsResponse>::Create(channel_.get(), cq, rpcmethod_ListDatasets_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateArtifact_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateArtifact_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* DataCatalog::Stub::PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::UpdateArtifactResponse>::Create(channel_.get(), cq, rpcmethod_UpdateArtifact_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrExtendReservation_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrExtendReservation_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* DataCatalog::Stub::AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservation_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* DataCatalog::Stub::PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::GetOrExtendReservationResponse>::Create(channel_.get(), cq, rpcmethod_GetOrExtendReservation_, context, request, false); -} - -::grpc::Status DataCatalog::Stub::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ReleaseReservation_, context, request, response); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, std::move(f)); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); -} - -void DataCatalog::Stub::experimental_async::ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ReleaseReservation_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* DataCatalog::Stub::PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::datacatalog::ReleaseReservationResponse>::Create(channel_.get(), cq, rpcmethod_ReleaseReservation_, context, request, false); -} - -DataCatalog::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( - std::mem_fn(&DataCatalog::Service::CreateDataset), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( - std::mem_fn(&DataCatalog::Service::GetDataset), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( - std::mem_fn(&DataCatalog::Service::CreateArtifact), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( - std::mem_fn(&DataCatalog::Service::GetArtifact), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( - std::mem_fn(&DataCatalog::Service::AddTag), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[5], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( - std::mem_fn(&DataCatalog::Service::ListArtifacts), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[6], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( - std::mem_fn(&DataCatalog::Service::ListDatasets), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( - std::mem_fn(&DataCatalog::Service::UpdateArtifact), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[8], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( - std::mem_fn(&DataCatalog::Service::GetOrExtendReservation), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataCatalog_method_names[9], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataCatalog::Service, ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( - std::mem_fn(&DataCatalog::Service::ReleaseReservation), this))); -} - -DataCatalog::Service::~Service() { -} - -::grpc::Status DataCatalog::Service::CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataCatalog::Service::ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace datacatalog - diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h deleted file mode 100644 index 358bfd9ded..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.grpc.pb.h +++ /dev/null @@ -1,1775 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/datacatalog/datacatalog.proto -#ifndef GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED -#define GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED - -#include "flyteidl/datacatalog/datacatalog.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace datacatalog { - -// -// Data Catalog service definition -// Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. -// Artifacts are associated with a Dataset, and can be tagged for retrieval. -class DataCatalog final { - public: - static constexpr char const* service_full_name() { - return "datacatalog.DataCatalog"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - virtual ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(context, request, cq)); - } - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - virtual ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(context, request, cq)); - } - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - virtual ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); - } - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - virtual ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); - } - // Associate a tag with an artifact. Tags are unique within a Dataset. - virtual ::grpc::Status AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); - } - // Return a paginated list of artifacts - virtual ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); - } - // Return a paginated list of datasets - virtual ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); - } - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - virtual ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); - } - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - virtual ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); - } - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - virtual ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - virtual void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; - virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) = 0; - virtual void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; - virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) = 0; - virtual void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Associate a tag with an artifact. Tags are unique within a Dataset. - virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Return a paginated list of artifacts - virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; - virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) = 0; - virtual void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Return a paginated list of datasets - virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; - virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) = 0; - virtual void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; - virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) = 0; - virtual void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) = 0; - virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) = 0; - virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; - virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) = 0; - virtual void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::datacatalog::CreateDatasetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> AsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(AsyncCreateDatasetRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>> PrepareAsyncCreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>>(PrepareAsyncCreateDatasetRaw(context, request, cq)); - } - ::grpc::Status GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::datacatalog::GetDatasetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> AsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(AsyncGetDatasetRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>> PrepareAsyncGetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>>(PrepareAsyncGetDatasetRaw(context, request, cq)); - } - ::grpc::Status CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::datacatalog::CreateArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>> AsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(AsyncCreateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>> PrepareAsyncCreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>>(PrepareAsyncCreateArtifactRaw(context, request, cq)); - } - ::grpc::Status GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::datacatalog::GetArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>> AsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(AsyncGetArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>> PrepareAsyncGetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>>(PrepareAsyncGetArtifactRaw(context, request, cq)); - } - ::grpc::Status AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::datacatalog::AddTagResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>> AsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(AsyncAddTagRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>> PrepareAsyncAddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>>(PrepareAsyncAddTagRaw(context, request, cq)); - } - ::grpc::Status ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::datacatalog::ListArtifactsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> AsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(AsyncListArtifactsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>> PrepareAsyncListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>>(PrepareAsyncListArtifactsRaw(context, request, cq)); - } - ::grpc::Status ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::datacatalog::ListDatasetsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> AsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(AsyncListDatasetsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>> PrepareAsyncListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>>(PrepareAsyncListDatasetsRaw(context, request, cq)); - } - ::grpc::Status UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::datacatalog::UpdateArtifactResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> AsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(AsyncUpdateArtifactRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>> PrepareAsyncUpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>>(PrepareAsyncUpdateArtifactRaw(context, request, cq)); - } - ::grpc::Status GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::datacatalog::GetOrExtendReservationResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> AsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(AsyncGetOrExtendReservationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>> PrepareAsyncGetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>>(PrepareAsyncGetOrExtendReservationRaw(context, request, cq)); - } - ::grpc::Status ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::datacatalog::ReleaseReservationResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> AsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(AsyncReleaseReservationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>> PrepareAsyncReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>>(PrepareAsyncReleaseReservationRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; - void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, std::function) override; - void CreateDataset(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, std::function) override; - void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, std::function) override; - void GetDataset(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetDataset(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; - void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, std::function) override; - void CreateArtifact(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, std::function) override; - void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, std::function) override; - void GetArtifact(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, std::function) override; - void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, std::function) override; - void AddTag(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void AddTag(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; - void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, std::function) override; - void ListArtifacts(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListArtifacts(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; - void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, std::function) override; - void ListDatasets(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListDatasets(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; - void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, std::function) override; - void UpdateArtifact(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateArtifact(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; - void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, std::function) override; - void GetOrExtendReservation(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOrExtendReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; - void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, std::function) override; - void ReleaseReservation(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ReleaseReservation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* AsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateDatasetResponse>* PrepareAsyncCreateDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::CreateDatasetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* AsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetDatasetResponse>* PrepareAsyncGetDatasetRaw(::grpc::ClientContext* context, const ::datacatalog::GetDatasetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* AsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::CreateArtifactResponse>* PrepareAsyncCreateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::CreateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* AsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetArtifactResponse>* PrepareAsyncGetArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::GetArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* AsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::AddTagResponse>* PrepareAsyncAddTagRaw(::grpc::ClientContext* context, const ::datacatalog::AddTagRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* AsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ListArtifactsResponse>* PrepareAsyncListArtifactsRaw(::grpc::ClientContext* context, const ::datacatalog::ListArtifactsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* AsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ListDatasetsResponse>* PrepareAsyncListDatasetsRaw(::grpc::ClientContext* context, const ::datacatalog::ListDatasetsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* AsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::UpdateArtifactResponse>* PrepareAsyncUpdateArtifactRaw(::grpc::ClientContext* context, const ::datacatalog::UpdateArtifactRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* AsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::GetOrExtendReservationResponse>* PrepareAsyncGetOrExtendReservationRaw(::grpc::ClientContext* context, const ::datacatalog::GetOrExtendReservationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* AsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::datacatalog::ReleaseReservationResponse>* PrepareAsyncReleaseReservationRaw(::grpc::ClientContext* context, const ::datacatalog::ReleaseReservationRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateDataset_; - const ::grpc::internal::RpcMethod rpcmethod_GetDataset_; - const ::grpc::internal::RpcMethod rpcmethod_CreateArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_GetArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_AddTag_; - const ::grpc::internal::RpcMethod rpcmethod_ListArtifacts_; - const ::grpc::internal::RpcMethod rpcmethod_ListDatasets_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateArtifact_; - const ::grpc::internal::RpcMethod rpcmethod_GetOrExtendReservation_; - const ::grpc::internal::RpcMethod rpcmethod_ReleaseReservation_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - virtual ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response); - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - virtual ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response); - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - virtual ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response); - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - virtual ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response); - // Associate a tag with an artifact. Tags are unique within a Dataset. - virtual ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response); - // Return a paginated list of artifacts - virtual ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response); - // Return a paginated list of datasets - virtual ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response); - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - virtual ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response); - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - virtual ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response); - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - virtual ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response); - }; - template - class WithAsyncMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateDataset() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDataset(::grpc::ServerContext* context, ::datacatalog::CreateDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateDatasetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetDataset() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetDataset(::grpc::ServerContext* context, ::datacatalog::GetDatasetRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetDatasetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateArtifact() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateArtifact(::grpc::ServerContext* context, ::datacatalog::CreateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::CreateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetArtifact() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetArtifact(::grpc::ServerContext* context, ::datacatalog::GetArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_AddTag() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTag(::grpc::ServerContext* context, ::datacatalog::AddTagRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::AddTagResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListArtifacts() { - ::grpc::Service::MarkMethodAsync(5); - } - ~WithAsyncMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListArtifacts(::grpc::ServerContext* context, ::datacatalog::ListArtifactsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListArtifactsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListDatasets() { - ::grpc::Service::MarkMethodAsync(6); - } - ~WithAsyncMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListDatasets(::grpc::ServerContext* context, ::datacatalog::ListDatasetsRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ListDatasetsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateArtifact() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateArtifact(::grpc::ServerContext* context, ::datacatalog::UpdateArtifactRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::UpdateArtifactResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodAsync(8); - } - ~WithAsyncMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::datacatalog::GetOrExtendReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::GetOrExtendReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReleaseReservation(::grpc::ServerContext* context, ::datacatalog::ReleaseReservationRequest* request, ::grpc::ServerAsyncResponseWriter< ::datacatalog::ReleaseReservationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateDataset > > > > > > > > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateDataset() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::CreateDatasetRequest* request, - ::datacatalog::CreateDatasetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateDataset(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateDataset( - ::grpc::experimental::MessageAllocator< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetDataset() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::GetDatasetRequest* request, - ::datacatalog::GetDatasetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetDataset(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetDataset( - ::grpc::experimental::MessageAllocator< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateArtifact() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::CreateArtifactRequest* request, - ::datacatalog::CreateArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateArtifact(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateArtifact( - ::grpc::experimental::MessageAllocator< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetArtifact() { - ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::GetArtifactRequest* request, - ::datacatalog::GetArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetArtifact(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetArtifact( - ::grpc::experimental::MessageAllocator< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(3)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::AddTagRequest* request, - ::datacatalog::AddTagResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->AddTag(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_AddTag( - ::grpc::experimental::MessageAllocator< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>*>( - ::grpc::Service::experimental().GetHandler(4)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListArtifacts() { - ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::ListArtifactsRequest* request, - ::datacatalog::ListArtifactsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListArtifacts(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListArtifacts( - ::grpc::experimental::MessageAllocator< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>*>( - ::grpc::Service::experimental().GetHandler(5)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListDatasets() { - ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::ListDatasetsRequest* request, - ::datacatalog::ListDatasetsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListDatasets(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListDatasets( - ::grpc::experimental::MessageAllocator< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>*>( - ::grpc::Service::experimental().GetHandler(6)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateArtifact() { - ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::UpdateArtifactRequest* request, - ::datacatalog::UpdateArtifactResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateArtifact(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateArtifact( - ::grpc::experimental::MessageAllocator< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>*>( - ::grpc::Service::experimental().GetHandler(7)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::GetOrExtendReservationRequest* request, - ::datacatalog::GetOrExtendReservationResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetOrExtendReservation(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetOrExtendReservation( - ::grpc::experimental::MessageAllocator< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(8)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>( - [this](::grpc::ServerContext* context, - const ::datacatalog::ReleaseReservationRequest* request, - ::datacatalog::ReleaseReservationResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ReleaseReservation(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ReleaseReservation( - ::grpc::experimental::MessageAllocator< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>*>( - ::grpc::Service::experimental().GetHandler(9)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateDataset > > > > > > > > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateDataset() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetDataset() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateArtifact() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetArtifact() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_AddTag() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListArtifacts() { - ::grpc::Service::MarkMethodGeneric(5); - } - ~WithGenericMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListDatasets() { - ::grpc::Service::MarkMethodGeneric(6); - } - ~WithGenericMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateArtifact() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodGeneric(8); - } - ~WithGenericMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateDataset() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDataset(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetDataset() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetDataset(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateArtifact() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetArtifact() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_AddTag() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestAddTag(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListArtifacts() { - ::grpc::Service::MarkMethodRaw(5); - } - ~WithRawMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListArtifacts(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListDatasets() { - ::grpc::Service::MarkMethodRaw(6); - } - ~WithRawMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListDatasets(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateArtifact() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateArtifact(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodRaw(8); - } - ~WithRawMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrExtendReservation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestReleaseReservation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateDataset() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateDataset(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDataset(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetDataset() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetDataset(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetDataset(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateArtifact() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateArtifact(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetArtifact() { - ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetArtifact(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_AddTag() { - ::grpc::Service::experimental().MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->AddTag(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void AddTag(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListArtifacts() { - ::grpc::Service::experimental().MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListArtifacts(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListArtifacts(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListDatasets() { - ::grpc::Service::experimental().MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListDatasets(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListDatasets(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateArtifact() { - ::grpc::Service::experimental().MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateArtifact(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateArtifact(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetOrExtendReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetOrExtendReservation(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrExtendReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ReleaseReservation() { - ::grpc::Service::experimental().MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ReleaseReservation(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ReleaseReservation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateDataset() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateDatasetRequest, ::datacatalog::CreateDatasetResponse>(std::bind(&WithStreamedUnaryMethod_CreateDataset::StreamedCreateDataset, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateDataset(::grpc::ServerContext* context, const ::datacatalog::CreateDatasetRequest* request, ::datacatalog::CreateDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateDatasetRequest,::datacatalog::CreateDatasetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetDataset : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetDataset() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetDatasetRequest, ::datacatalog::GetDatasetResponse>(std::bind(&WithStreamedUnaryMethod_GetDataset::StreamedGetDataset, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetDataset() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetDataset(::grpc::ServerContext* context, const ::datacatalog::GetDatasetRequest* request, ::datacatalog::GetDatasetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetDataset(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetDatasetRequest,::datacatalog::GetDatasetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateArtifact() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::CreateArtifactRequest, ::datacatalog::CreateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_CreateArtifact::StreamedCreateArtifact, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateArtifact(::grpc::ServerContext* context, const ::datacatalog::CreateArtifactRequest* request, ::datacatalog::CreateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::CreateArtifactRequest,::datacatalog::CreateArtifactResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetArtifact() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetArtifactRequest, ::datacatalog::GetArtifactResponse>(std::bind(&WithStreamedUnaryMethod_GetArtifact::StreamedGetArtifact, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetArtifact(::grpc::ServerContext* context, const ::datacatalog::GetArtifactRequest* request, ::datacatalog::GetArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetArtifactRequest,::datacatalog::GetArtifactResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_AddTag : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_AddTag() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::AddTagRequest, ::datacatalog::AddTagResponse>(std::bind(&WithStreamedUnaryMethod_AddTag::StreamedAddTag, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_AddTag() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status AddTag(::grpc::ServerContext* context, const ::datacatalog::AddTagRequest* request, ::datacatalog::AddTagResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedAddTag(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::AddTagRequest,::datacatalog::AddTagResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListArtifacts : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListArtifacts() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListArtifactsRequest, ::datacatalog::ListArtifactsResponse>(std::bind(&WithStreamedUnaryMethod_ListArtifacts::StreamedListArtifacts, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListArtifacts() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListArtifacts(::grpc::ServerContext* context, const ::datacatalog::ListArtifactsRequest* request, ::datacatalog::ListArtifactsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListArtifacts(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListArtifactsRequest,::datacatalog::ListArtifactsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListDatasets : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListDatasets() { - ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ListDatasetsRequest, ::datacatalog::ListDatasetsResponse>(std::bind(&WithStreamedUnaryMethod_ListDatasets::StreamedListDatasets, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListDatasets() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListDatasets(::grpc::ServerContext* context, const ::datacatalog::ListDatasetsRequest* request, ::datacatalog::ListDatasetsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListDatasets(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ListDatasetsRequest,::datacatalog::ListDatasetsResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateArtifact : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateArtifact() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::UpdateArtifactRequest, ::datacatalog::UpdateArtifactResponse>(std::bind(&WithStreamedUnaryMethod_UpdateArtifact::StreamedUpdateArtifact, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateArtifact() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateArtifact(::grpc::ServerContext* context, const ::datacatalog::UpdateArtifactRequest* request, ::datacatalog::UpdateArtifactResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateArtifact(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::UpdateArtifactRequest,::datacatalog::UpdateArtifactResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetOrExtendReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetOrExtendReservation() { - ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::GetOrExtendReservationRequest, ::datacatalog::GetOrExtendReservationResponse>(std::bind(&WithStreamedUnaryMethod_GetOrExtendReservation::StreamedGetOrExtendReservation, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetOrExtendReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetOrExtendReservation(::grpc::ServerContext* context, const ::datacatalog::GetOrExtendReservationRequest* request, ::datacatalog::GetOrExtendReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetOrExtendReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::GetOrExtendReservationRequest,::datacatalog::GetOrExtendReservationResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ReleaseReservation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ReleaseReservation() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< ::datacatalog::ReleaseReservationRequest, ::datacatalog::ReleaseReservationResponse>(std::bind(&WithStreamedUnaryMethod_ReleaseReservation::StreamedReleaseReservation, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ReleaseReservation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ReleaseReservation(::grpc::ServerContext* context, const ::datacatalog::ReleaseReservationRequest* request, ::datacatalog::ReleaseReservationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedReleaseReservation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::datacatalog::ReleaseReservationRequest,::datacatalog::ReleaseReservationResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateDataset > > > > > > > > > StreamedService; -}; - -} // namespace datacatalog - - -#endif // GRPC_flyteidl_2fdatacatalog_2fdatacatalog_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc deleted file mode 100644 index dbd20da087..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.cc +++ /dev/null @@ -1,15524 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/datacatalog/datacatalog.proto - -#include "flyteidl/datacatalog/datacatalog.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto ::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace datacatalog { -class CreateDatasetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateDatasetRequest_default_instance_; -class CreateDatasetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateDatasetResponse_default_instance_; -class GetDatasetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetDatasetRequest_default_instance_; -class GetDatasetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetDatasetResponse_default_instance_; -class GetArtifactRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::google::protobuf::internal::ArenaStringPtr tag_name_; -} _GetArtifactRequest_default_instance_; -class GetArtifactResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetArtifactResponse_default_instance_; -class CreateArtifactRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateArtifactRequest_default_instance_; -class CreateArtifactResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateArtifactResponse_default_instance_; -class AddTagRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AddTagRequest_default_instance_; -class AddTagResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _AddTagResponse_default_instance_; -class ListArtifactsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactsRequest_default_instance_; -class ListArtifactsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListArtifactsResponse_default_instance_; -class ListDatasetsRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListDatasetsRequest_default_instance_; -class ListDatasetsResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ListDatasetsResponse_default_instance_; -class UpdateArtifactRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::google::protobuf::internal::ArenaStringPtr tag_name_; -} _UpdateArtifactRequest_default_instance_; -class UpdateArtifactResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UpdateArtifactResponse_default_instance_; -class ReservationIDDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReservationID_default_instance_; -class GetOrExtendReservationRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetOrExtendReservationRequest_default_instance_; -class ReservationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Reservation_default_instance_; -class GetOrExtendReservationResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetOrExtendReservationResponse_default_instance_; -class ReleaseReservationRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReleaseReservationRequest_default_instance_; -class ReleaseReservationResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ReleaseReservationResponse_default_instance_; -class DatasetDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Dataset_default_instance_; -class PartitionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Partition_default_instance_; -class DatasetIDDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DatasetID_default_instance_; -class ArtifactDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Artifact_default_instance_; -class ArtifactDataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ArtifactData_default_instance_; -class TagDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Tag_default_instance_; -class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Metadata_KeyMapEntry_DoNotUse_default_instance_; -class MetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Metadata_default_instance_; -class FilterExpressionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _FilterExpression_default_instance_; -class SinglePropertyFilterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::datacatalog::TagPropertyFilter* tag_filter_; - const ::datacatalog::PartitionPropertyFilter* partition_filter_; - const ::datacatalog::ArtifactPropertyFilter* artifact_filter_; - const ::datacatalog::DatasetPropertyFilter* dataset_filter_; -} _SinglePropertyFilter_default_instance_; -class ArtifactPropertyFilterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; -} _ArtifactPropertyFilter_default_instance_; -class TagPropertyFilterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr tag_name_; -} _TagPropertyFilter_default_instance_; -class PartitionPropertyFilterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::datacatalog::KeyValuePair* key_val_; -} _PartitionPropertyFilter_default_instance_; -class KeyValuePairDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _KeyValuePair_default_instance_; -class DatasetPropertyFilterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr version_; -} _DatasetPropertyFilter_default_instance_; -class PaginationOptionsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PaginationOptions_default_instance_; -} // namespace datacatalog -static void InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_CreateDatasetRequest_default_instance_; - new (ptr) ::datacatalog::CreateDatasetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::CreateDatasetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_CreateDatasetResponse_default_instance_; - new (ptr) ::datacatalog::CreateDatasetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::CreateDatasetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetDatasetRequest_default_instance_; - new (ptr) ::datacatalog::GetDatasetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetDatasetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetDatasetResponse_default_instance_; - new (ptr) ::datacatalog::GetDatasetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetDatasetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetArtifactRequest_default_instance_; - new (ptr) ::datacatalog::GetArtifactRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetArtifactRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetArtifactResponse_default_instance_; - new (ptr) ::datacatalog::GetArtifactResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetArtifactResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_CreateArtifactRequest_default_instance_; - new (ptr) ::datacatalog::CreateArtifactRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::CreateArtifactRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_CreateArtifactResponse_default_instance_; - new (ptr) ::datacatalog::CreateArtifactResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::CreateArtifactResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_AddTagRequest_default_instance_; - new (ptr) ::datacatalog::AddTagRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::AddTagRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_AddTagResponse_default_instance_; - new (ptr) ::datacatalog::AddTagResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::AddTagResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ListArtifactsRequest_default_instance_; - new (ptr) ::datacatalog::ListArtifactsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ListArtifactsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ListArtifactsResponse_default_instance_; - new (ptr) ::datacatalog::ListArtifactsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ListArtifactsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ListDatasetsRequest_default_instance_; - new (ptr) ::datacatalog::ListDatasetsRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ListDatasetsRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ListDatasetsResponse_default_instance_; - new (ptr) ::datacatalog::ListDatasetsResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ListDatasetsResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_UpdateArtifactRequest_default_instance_; - new (ptr) ::datacatalog::UpdateArtifactRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::UpdateArtifactRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsUpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_UpdateArtifactResponse_default_instance_; - new (ptr) ::datacatalog::UpdateArtifactResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::UpdateArtifactResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ReservationID_default_instance_; - new (ptr) ::datacatalog::ReservationID(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ReservationID::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsGetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetOrExtendReservationRequest_default_instance_; - new (ptr) ::datacatalog::GetOrExtendReservationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetOrExtendReservationRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsReservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Reservation_default_instance_; - new (ptr) ::datacatalog::Reservation(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Reservation::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsReservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsGetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_GetOrExtendReservationResponse_default_instance_; - new (ptr) ::datacatalog::GetOrExtendReservationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::GetOrExtendReservationResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsGetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ReleaseReservationRequest_default_instance_; - new (ptr) ::datacatalog::ReleaseReservationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ReleaseReservationRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ReleaseReservationResponse_default_instance_; - new (ptr) ::datacatalog::ReleaseReservationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ReleaseReservationResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Dataset_default_instance_; - new (ptr) ::datacatalog::Dataset(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Dataset::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Partition_default_instance_; - new (ptr) ::datacatalog::Partition(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Partition::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPartition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_DatasetID_default_instance_; - new (ptr) ::datacatalog::DatasetID(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::DatasetID::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Artifact_default_instance_; - new (ptr) ::datacatalog::Artifact(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Artifact::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsArtifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ArtifactData_default_instance_; - new (ptr) ::datacatalog::ArtifactData(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ArtifactData::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Tag_default_instance_; - new (ptr) ::datacatalog::Tag(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Tag::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_; - new (ptr) ::datacatalog::Metadata_KeyMapEntry_DoNotUse(); - } - ::datacatalog::Metadata_KeyMapEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsMetadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_Metadata_default_instance_; - new (ptr) ::datacatalog::Metadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::Metadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsMetadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_FilterExpression_default_instance_; - new (ptr) ::datacatalog::FilterExpression(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::FilterExpression::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_SinglePropertyFilter_default_instance_; - new (ptr) ::datacatalog::SinglePropertyFilter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::SinglePropertyFilter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsSinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base, - &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_ArtifactPropertyFilter_default_instance_; - new (ptr) ::datacatalog::ArtifactPropertyFilter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::ArtifactPropertyFilter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_TagPropertyFilter_default_instance_; - new (ptr) ::datacatalog::TagPropertyFilter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::TagPropertyFilter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_PartitionPropertyFilter_default_instance_; - new (ptr) ::datacatalog::PartitionPropertyFilter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::PartitionPropertyFilter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, { - &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base,}}; - -static void InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_KeyValuePair_default_instance_; - new (ptr) ::datacatalog::KeyValuePair(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::KeyValuePair::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsKeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_DatasetPropertyFilter_default_instance_; - new (ptr) ::datacatalog::DatasetPropertyFilter(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::DatasetPropertyFilter::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -static void InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::datacatalog::_PaginationOptions_default_instance_; - new (ptr) ::datacatalog::PaginationOptions(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::datacatalog::PaginationOptions::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto}, {}}; - -void InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Metadata_KeyMapEntry_DoNotUse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[38]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[3]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetRequest, dataset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateDatasetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetRequest, dataset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetDatasetResponse, dataset_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, dataset_), - offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, artifact_id_), - offsetof(::datacatalog::GetArtifactRequestDefaultTypeInternal, tag_name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactRequest, query_handle_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetArtifactResponse, artifact_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactRequest, artifact_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::CreateArtifactResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagRequest, tag_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::AddTagResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, dataset_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, filter_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, artifacts_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ListArtifactsResponse, next_token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, filter_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsRequest, pagination_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, datasets_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ListDatasetsResponse, next_token_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, dataset_), - offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, artifact_id_), - offsetof(::datacatalog::UpdateArtifactRequestDefaultTypeInternal, tag_name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, data_), - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, metadata_), - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactRequest, query_handle_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::UpdateArtifactResponse, artifact_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, dataset_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ReservationID, tag_name_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, reservation_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, owner_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationRequest, heartbeat_interval_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, reservation_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, owner_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, heartbeat_interval_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, expires_at_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Reservation, metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::GetOrExtendReservationResponse, reservation_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, reservation_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationRequest, owner_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ReleaseReservationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, metadata_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Dataset, partitionkeys_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, key_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Partition, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, project_), - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, domain_), - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, version_), - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetID, uuid_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, dataset_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, data_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, metadata_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, partitions_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, tags_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Artifact, created_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactData, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, artifact_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Tag, dataset_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata_KeyMapEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::Metadata, key_map_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::FilterExpression, filters_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, tag_filter_), - offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, partition_filter_), - offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, artifact_filter_), - offsetof(::datacatalog::SinglePropertyFilterDefaultTypeInternal, dataset_filter_), - PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, operator__), - PROTOBUF_FIELD_OFFSET(::datacatalog::SinglePropertyFilter, property_filter_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::datacatalog::ArtifactPropertyFilterDefaultTypeInternal, artifact_id_), - PROTOBUF_FIELD_OFFSET(::datacatalog::ArtifactPropertyFilter, property_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::datacatalog::TagPropertyFilterDefaultTypeInternal, tag_name_), - PROTOBUF_FIELD_OFFSET(::datacatalog::TagPropertyFilter, property_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::datacatalog::PartitionPropertyFilterDefaultTypeInternal, key_val_), - PROTOBUF_FIELD_OFFSET(::datacatalog::PartitionPropertyFilter, property_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, key_), - PROTOBUF_FIELD_OFFSET(::datacatalog::KeyValuePair, value_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, project_), - offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, name_), - offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, domain_), - offsetof(::datacatalog::DatasetPropertyFilterDefaultTypeInternal, version_), - PROTOBUF_FIELD_OFFSET(::datacatalog::DatasetPropertyFilter, property_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, limit_), - PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, token_), - PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortkey_), - PROTOBUF_FIELD_OFFSET(::datacatalog::PaginationOptions, sortorder_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::datacatalog::CreateDatasetRequest)}, - { 6, -1, sizeof(::datacatalog::CreateDatasetResponse)}, - { 11, -1, sizeof(::datacatalog::GetDatasetRequest)}, - { 17, -1, sizeof(::datacatalog::GetDatasetResponse)}, - { 23, -1, sizeof(::datacatalog::GetArtifactRequest)}, - { 32, -1, sizeof(::datacatalog::GetArtifactResponse)}, - { 38, -1, sizeof(::datacatalog::CreateArtifactRequest)}, - { 44, -1, sizeof(::datacatalog::CreateArtifactResponse)}, - { 49, -1, sizeof(::datacatalog::AddTagRequest)}, - { 55, -1, sizeof(::datacatalog::AddTagResponse)}, - { 60, -1, sizeof(::datacatalog::ListArtifactsRequest)}, - { 68, -1, sizeof(::datacatalog::ListArtifactsResponse)}, - { 75, -1, sizeof(::datacatalog::ListDatasetsRequest)}, - { 82, -1, sizeof(::datacatalog::ListDatasetsResponse)}, - { 89, -1, sizeof(::datacatalog::UpdateArtifactRequest)}, - { 100, -1, sizeof(::datacatalog::UpdateArtifactResponse)}, - { 106, -1, sizeof(::datacatalog::ReservationID)}, - { 113, -1, sizeof(::datacatalog::GetOrExtendReservationRequest)}, - { 121, -1, sizeof(::datacatalog::Reservation)}, - { 131, -1, sizeof(::datacatalog::GetOrExtendReservationResponse)}, - { 137, -1, sizeof(::datacatalog::ReleaseReservationRequest)}, - { 144, -1, sizeof(::datacatalog::ReleaseReservationResponse)}, - { 149, -1, sizeof(::datacatalog::Dataset)}, - { 157, -1, sizeof(::datacatalog::Partition)}, - { 164, -1, sizeof(::datacatalog::DatasetID)}, - { 174, -1, sizeof(::datacatalog::Artifact)}, - { 186, -1, sizeof(::datacatalog::ArtifactData)}, - { 193, -1, sizeof(::datacatalog::Tag)}, - { 201, 208, sizeof(::datacatalog::Metadata_KeyMapEntry_DoNotUse)}, - { 210, -1, sizeof(::datacatalog::Metadata)}, - { 216, -1, sizeof(::datacatalog::FilterExpression)}, - { 222, -1, sizeof(::datacatalog::SinglePropertyFilter)}, - { 233, -1, sizeof(::datacatalog::ArtifactPropertyFilter)}, - { 240, -1, sizeof(::datacatalog::TagPropertyFilter)}, - { 247, -1, sizeof(::datacatalog::PartitionPropertyFilter)}, - { 254, -1, sizeof(::datacatalog::KeyValuePair)}, - { 261, -1, sizeof(::datacatalog::DatasetPropertyFilter)}, - { 271, -1, sizeof(::datacatalog::PaginationOptions)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::datacatalog::_CreateDatasetRequest_default_instance_), - reinterpret_cast(&::datacatalog::_CreateDatasetResponse_default_instance_), - reinterpret_cast(&::datacatalog::_GetDatasetRequest_default_instance_), - reinterpret_cast(&::datacatalog::_GetDatasetResponse_default_instance_), - reinterpret_cast(&::datacatalog::_GetArtifactRequest_default_instance_), - reinterpret_cast(&::datacatalog::_GetArtifactResponse_default_instance_), - reinterpret_cast(&::datacatalog::_CreateArtifactRequest_default_instance_), - reinterpret_cast(&::datacatalog::_CreateArtifactResponse_default_instance_), - reinterpret_cast(&::datacatalog::_AddTagRequest_default_instance_), - reinterpret_cast(&::datacatalog::_AddTagResponse_default_instance_), - reinterpret_cast(&::datacatalog::_ListArtifactsRequest_default_instance_), - reinterpret_cast(&::datacatalog::_ListArtifactsResponse_default_instance_), - reinterpret_cast(&::datacatalog::_ListDatasetsRequest_default_instance_), - reinterpret_cast(&::datacatalog::_ListDatasetsResponse_default_instance_), - reinterpret_cast(&::datacatalog::_UpdateArtifactRequest_default_instance_), - reinterpret_cast(&::datacatalog::_UpdateArtifactResponse_default_instance_), - reinterpret_cast(&::datacatalog::_ReservationID_default_instance_), - reinterpret_cast(&::datacatalog::_GetOrExtendReservationRequest_default_instance_), - reinterpret_cast(&::datacatalog::_Reservation_default_instance_), - reinterpret_cast(&::datacatalog::_GetOrExtendReservationResponse_default_instance_), - reinterpret_cast(&::datacatalog::_ReleaseReservationRequest_default_instance_), - reinterpret_cast(&::datacatalog::_ReleaseReservationResponse_default_instance_), - reinterpret_cast(&::datacatalog::_Dataset_default_instance_), - reinterpret_cast(&::datacatalog::_Partition_default_instance_), - reinterpret_cast(&::datacatalog::_DatasetID_default_instance_), - reinterpret_cast(&::datacatalog::_Artifact_default_instance_), - reinterpret_cast(&::datacatalog::_ArtifactData_default_instance_), - reinterpret_cast(&::datacatalog::_Tag_default_instance_), - reinterpret_cast(&::datacatalog::_Metadata_KeyMapEntry_DoNotUse_default_instance_), - reinterpret_cast(&::datacatalog::_Metadata_default_instance_), - reinterpret_cast(&::datacatalog::_FilterExpression_default_instance_), - reinterpret_cast(&::datacatalog::_SinglePropertyFilter_default_instance_), - reinterpret_cast(&::datacatalog::_ArtifactPropertyFilter_default_instance_), - reinterpret_cast(&::datacatalog::_TagPropertyFilter_default_instance_), - reinterpret_cast(&::datacatalog::_PartitionPropertyFilter_default_instance_), - reinterpret_cast(&::datacatalog::_KeyValuePair_default_instance_), - reinterpret_cast(&::datacatalog::_DatasetPropertyFilter_default_instance_), - reinterpret_cast(&::datacatalog::_PaginationOptions_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { - {}, AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, "flyteidl/datacatalog/datacatalog.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto::offsets, - file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 38, file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, file_level_service_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[] = - "\n&flyteidl/datacatalog/datacatalog.proto" - "\022\013datacatalog\032\034flyteidl/core/literals.pr" - "oto\032\036google/protobuf/duration.proto\032\037goo" - "gle/protobuf/timestamp.proto\"=\n\024CreateDa" - "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" - "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" - "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" - "acatalog.DatasetID\";\n\022GetDatasetResponse" - "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" - "x\n\022GetArtifactRequest\022\'\n\007dataset\030\001 \001(\0132\026" - ".datacatalog.DatasetID\022\025\n\013artifact_id\030\002 " - "\001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014query_handl" - "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" - "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" - "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" - "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" - "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" - "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" - "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." - "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." - "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" - "atacatalog.PaginationOptions\"U\n\025ListArti" - "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" - "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" - "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" - "acatalog.FilterExpression\0222\n\npagination\030" - "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" - "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" - "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" - "\t\"\315\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" - " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" - "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" - "\004 \003(\0132\031.datacatalog.ArtifactData\022\'\n\010meta" - "data\030\005 \001(\0132\025.datacatalog.MetadataB\016\n\014que" - "ry_handle\"-\n\026UpdateArtifactResponse\022\023\n\013a" - "rtifact_id\030\001 \001(\t\"M\n\rReservationID\022*\n\ndat" - "aset_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n" - "\010tag_name\030\002 \001(\t\"\234\001\n\035GetOrExtendReservati" - "onRequest\0222\n\016reservation_id\030\001 \001(\0132\032.data" - "catalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\022" - "5\n\022heartbeat_interval\030\003 \001(\0132\031.google.pro" - "tobuf.Duration\"\343\001\n\013Reservation\0222\n\016reserv" - "ation_id\030\001 \001(\0132\032.datacatalog.Reservation" - "ID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interv" - "al\030\003 \001(\0132\031.google.protobuf.Duration\022.\n\ne" - "xpires_at\030\004 \001(\0132\032.google.protobuf.Timest" - "amp\022\'\n\010metadata\030\006 \001(\0132\025.datacatalog.Meta" - "data\"O\n\036GetOrExtendReservationResponse\022-" - "\n\013reservation\030\001 \001(\0132\030.datacatalog.Reserv" - "ation\"a\n\031ReleaseReservationRequest\0222\n\016re" - "servation_id\030\001 \001(\0132\032.datacatalog.Reserva" - "tionID\022\020\n\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReser" - "vationResponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026." - "datacatalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132" - "\025.datacatalog.Metadata\022\025\n\rpartitionKeys\030" - "\003 \003(\t\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - "\030\002 \001(\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004" - "name\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 " - "\001(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001" - "(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Datase" - "tID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Artifact" - "Data\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Met" - "adata\022*\n\npartitions\030\005 \003(\0132\026.datacatalog." - "Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Ta" - "g\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf." - "Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022" - "%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal\"Q" - "\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t" - "\022\'\n\007dataset\030\003 \001(\0132\026.datacatalog.DatasetI" - "D\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacat" - "alog.Metadata.KeyMapEntry\032-\n\013KeyMapEntry" - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filt" - "erExpression\0222\n\007filters\030\001 \003(\0132!.datacata" - "log.SinglePropertyFilter\"\211\003\n\024SinglePrope" - "rtyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacata" - "log.TagPropertyFilterH\000\022@\n\020partition_fil" - "ter\030\002 \001(\0132$.datacatalog.PartitionPropert" - "yFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.dat" - "acatalog.ArtifactPropertyFilterH\000\022<\n\016dat" - "aset_filter\030\004 \001(\0132\".datacatalog.DatasetP" - "ropertyFilterH\000\022F\n\010operator\030\n \001(\01624.data" - "catalog.SinglePropertyFilter.ComparisonO" - "perator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020" - "\000B\021\n\017property_filter\";\n\026ArtifactProperty" - "Filter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010propert" - "y\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\t" - "H\000B\n\n\010property\"S\n\027PartitionPropertyFilte" - "r\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValu" - "ePairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003k" - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetProper" - "tyFilter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(" - "\tH\000\022\020\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000" - "B\n\n\010property\"\361\001\n\021PaginationOptions\022\r\n\005li" - "mit\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(" - "\0162&.datacatalog.PaginationOptions.SortKe" - "y\022;\n\tsortOrder\030\004 \001(\0162(.datacatalog.Pagin" - "ationOptions.SortOrder\"*\n\tSortOrder\022\016\n\nD" - "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n" - "\rCREATION_TIME\020\0002\206\007\n\013DataCatalog\022V\n\rCrea" - "teDataset\022!.datacatalog.CreateDatasetReq" - "uest\032\".datacatalog.CreateDatasetResponse" - "\022M\n\nGetDataset\022\036.datacatalog.GetDatasetR" - "equest\032\037.datacatalog.GetDatasetResponse\022" - "Y\n\016CreateArtifact\022\".datacatalog.CreateAr" - "tifactRequest\032#.datacatalog.CreateArtifa" - "ctResponse\022P\n\013GetArtifact\022\037.datacatalog." - "GetArtifactRequest\032 .datacatalog.GetArti" - "factResponse\022A\n\006AddTag\022\032.datacatalog.Add" - "TagRequest\032\033.datacatalog.AddTagResponse\022" - "V\n\rListArtifacts\022!.datacatalog.ListArtif" - "actsRequest\032\".datacatalog.ListArtifactsR" - "esponse\022S\n\014ListDatasets\022 .datacatalog.Li" - "stDatasetsRequest\032!.datacatalog.ListData" - "setsResponse\022Y\n\016UpdateArtifact\022\".datacat" - "alog.UpdateArtifactRequest\032#.datacatalog" - ".UpdateArtifactResponse\022q\n\026GetOrExtendRe" - "servation\022*.datacatalog.GetOrExtendReser" - "vationRequest\032+.datacatalog.GetOrExtendR" - "eservationResponse\022e\n\022ReleaseReservation" - "\022&.datacatalog.ReleaseReservationRequest" - "\032\'.datacatalog.ReleaseReservationRespons" - "eBCZAgithub.com/flyteorg/flyte/flyteidl/" - "gen/pb-go/flyteidl/datacatalogb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = { - false, InitDefaults_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, - descriptor_table_protodef_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, - "flyteidl/datacatalog/datacatalog.proto", &assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, 4918, -}; - -void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[3] = - { - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto, deps, 3); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fdatacatalog_2fdatacatalog_2eproto = []() { AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); return true; }(); -namespace datacatalog { -const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[0]; -} -bool SinglePropertyFilter_ComparisonOperator_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::EQUALS; -const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MIN; -const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::ComparisonOperator_MAX; -const int SinglePropertyFilter::ComparisonOperator_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[1]; -} -bool PaginationOptions_SortOrder_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const PaginationOptions_SortOrder PaginationOptions::DESCENDING; -const PaginationOptions_SortOrder PaginationOptions::ASCENDING; -const PaginationOptions_SortOrder PaginationOptions::SortOrder_MIN; -const PaginationOptions_SortOrder PaginationOptions::SortOrder_MAX; -const int PaginationOptions::SortOrder_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 -const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return file_level_enum_descriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[2]; -} -bool PaginationOptions_SortKey_IsValid(int value) { - switch (value) { - case 0: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const PaginationOptions_SortKey PaginationOptions::CREATION_TIME; -const PaginationOptions_SortKey PaginationOptions::SortKey_MIN; -const PaginationOptions_SortKey PaginationOptions::SortKey_MAX; -const int PaginationOptions::SortKey_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void CreateDatasetRequest::InitAsDefaultInstance() { - ::datacatalog::_CreateDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( - ::datacatalog::Dataset::internal_default_instance()); -} -class CreateDatasetRequest::HasBitSetters { - public: - static const ::datacatalog::Dataset& dataset(const CreateDatasetRequest* msg); -}; - -const ::datacatalog::Dataset& -CreateDatasetRequest::HasBitSetters::dataset(const CreateDatasetRequest* msg) { - return *msg->dataset_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateDatasetRequest::kDatasetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDatasetRequest::CreateDatasetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetRequest) -} -CreateDatasetRequest::CreateDatasetRequest(const CreateDatasetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::Dataset(*from.dataset_); - } else { - dataset_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetRequest) -} - -void CreateDatasetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - dataset_ = nullptr; -} - -CreateDatasetRequest::~CreateDatasetRequest() { - // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetRequest) - SharedDtor(); -} - -void CreateDatasetRequest::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; -} - -void CreateDatasetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDatasetRequest& CreateDatasetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDatasetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDatasetRequest::_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) { - // .datacatalog.Dataset dataset = 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 = ::datacatalog::Dataset::_InternalParse; - object = msg->mutable_dataset(); - 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 CreateDatasetRequest::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:datacatalog.CreateDatasetRequest) - 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)) { - // .datacatalog.Dataset dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } 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:datacatalog.CreateDatasetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDatasetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetRequest) -} - -::google::protobuf::uint8* CreateDatasetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(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:datacatalog.CreateDatasetRequest) - return target; -} - -size_t CreateDatasetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetRequest) - 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; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateDatasetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetRequest) - MergeFrom(*source); - } -} - -void CreateDatasetRequest::MergeFrom(const CreateDatasetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetRequest) - 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_dataset()) { - mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); - } -} - -void CreateDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDatasetRequest::CopyFrom(const CreateDatasetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDatasetRequest::IsInitialized() const { - return true; -} - -void CreateDatasetRequest::Swap(CreateDatasetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDatasetRequest::InternalSwap(CreateDatasetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_, other->dataset_); -} - -::google::protobuf::Metadata CreateDatasetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateDatasetResponse::InitAsDefaultInstance() { -} -class CreateDatasetResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDatasetResponse::CreateDatasetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.CreateDatasetResponse) -} -CreateDatasetResponse::CreateDatasetResponse(const CreateDatasetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.CreateDatasetResponse) -} - -void CreateDatasetResponse::SharedCtor() { -} - -CreateDatasetResponse::~CreateDatasetResponse() { - // @@protoc_insertion_point(destructor:datacatalog.CreateDatasetResponse) - SharedDtor(); -} - -void CreateDatasetResponse::SharedDtor() { -} - -void CreateDatasetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDatasetResponse& CreateDatasetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDatasetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.CreateDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDatasetResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateDatasetResponse::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:datacatalog.CreateDatasetResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:datacatalog.CreateDatasetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.CreateDatasetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDatasetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.CreateDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.CreateDatasetResponse) -} - -::google::protobuf::uint8* CreateDatasetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateDatasetResponse) - return target; -} - -size_t CreateDatasetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateDatasetResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateDatasetResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateDatasetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateDatasetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateDatasetResponse) - MergeFrom(*source); - } -} - -void CreateDatasetResponse::MergeFrom(const CreateDatasetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateDatasetResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void CreateDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateDatasetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDatasetResponse::CopyFrom(const CreateDatasetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateDatasetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDatasetResponse::IsInitialized() const { - return true; -} - -void CreateDatasetResponse::Swap(CreateDatasetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDatasetResponse::InternalSwap(CreateDatasetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata CreateDatasetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetDatasetRequest::InitAsDefaultInstance() { - ::datacatalog::_GetDatasetRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); -} -class GetDatasetRequest::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const GetDatasetRequest* msg); -}; - -const ::datacatalog::DatasetID& -GetDatasetRequest::HasBitSetters::dataset(const GetDatasetRequest* msg) { - return *msg->dataset_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetDatasetRequest::kDatasetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetDatasetRequest::GetDatasetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetDatasetRequest) -} -GetDatasetRequest::GetDatasetRequest(const GetDatasetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetRequest) -} - -void GetDatasetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - dataset_ = nullptr; -} - -GetDatasetRequest::~GetDatasetRequest() { - // @@protoc_insertion_point(destructor:datacatalog.GetDatasetRequest) - SharedDtor(); -} - -void GetDatasetRequest::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; -} - -void GetDatasetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetDatasetRequest& GetDatasetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetDatasetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetDatasetRequest::_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) { - // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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 GetDatasetRequest::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:datacatalog.GetDatasetRequest) - 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)) { - // .datacatalog.DatasetID dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } 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:datacatalog.GetDatasetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetDatasetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetRequest) -} - -::google::protobuf::uint8* GetDatasetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(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:datacatalog.GetDatasetRequest) - return target; -} - -size_t GetDatasetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetRequest) - 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; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetDatasetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetDatasetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetRequest) - MergeFrom(*source); - } -} - -void GetDatasetRequest::MergeFrom(const GetDatasetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetRequest) - 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_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } -} - -void GetDatasetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDatasetRequest::CopyFrom(const GetDatasetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDatasetRequest::IsInitialized() const { - return true; -} - -void GetDatasetRequest::Swap(GetDatasetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetDatasetRequest::InternalSwap(GetDatasetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_, other->dataset_); -} - -::google::protobuf::Metadata GetDatasetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetDatasetResponse::InitAsDefaultInstance() { - ::datacatalog::_GetDatasetResponse_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::Dataset*>( - ::datacatalog::Dataset::internal_default_instance()); -} -class GetDatasetResponse::HasBitSetters { - public: - static const ::datacatalog::Dataset& dataset(const GetDatasetResponse* msg); -}; - -const ::datacatalog::Dataset& -GetDatasetResponse::HasBitSetters::dataset(const GetDatasetResponse* msg) { - return *msg->dataset_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetDatasetResponse::kDatasetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetDatasetResponse::GetDatasetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetDatasetResponse) -} -GetDatasetResponse::GetDatasetResponse(const GetDatasetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::Dataset(*from.dataset_); - } else { - dataset_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetDatasetResponse) -} - -void GetDatasetResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - dataset_ = nullptr; -} - -GetDatasetResponse::~GetDatasetResponse() { - // @@protoc_insertion_point(destructor:datacatalog.GetDatasetResponse) - SharedDtor(); -} - -void GetDatasetResponse::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; -} - -void GetDatasetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetDatasetResponse& GetDatasetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetDatasetResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetDatasetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetDatasetResponse::_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) { - // .datacatalog.Dataset dataset = 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 = ::datacatalog::Dataset::_InternalParse; - object = msg->mutable_dataset(); - 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 GetDatasetResponse::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:datacatalog.GetDatasetResponse) - 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)) { - // .datacatalog.Dataset dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } 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:datacatalog.GetDatasetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetDatasetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetDatasetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetDatasetResponse) -} - -::google::protobuf::uint8* GetDatasetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetDatasetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(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:datacatalog.GetDatasetResponse) - return target; -} - -size_t GetDatasetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetDatasetResponse) - 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; - - // .datacatalog.Dataset dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetDatasetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetDatasetResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetDatasetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetDatasetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetDatasetResponse) - MergeFrom(*source); - } -} - -void GetDatasetResponse::MergeFrom(const GetDatasetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetDatasetResponse) - 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_dataset()) { - mutable_dataset()->::datacatalog::Dataset::MergeFrom(from.dataset()); - } -} - -void GetDatasetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetDatasetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDatasetResponse::CopyFrom(const GetDatasetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetDatasetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDatasetResponse::IsInitialized() const { - return true; -} - -void GetDatasetResponse::Swap(GetDatasetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetDatasetResponse::InternalSwap(GetDatasetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_, other->dataset_); -} - -::google::protobuf::Metadata GetDatasetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetArtifactRequest::InitAsDefaultInstance() { - ::datacatalog::_GetArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); - ::datacatalog::_GetArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_GetArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class GetArtifactRequest::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const GetArtifactRequest* msg); -}; - -const ::datacatalog::DatasetID& -GetArtifactRequest::HasBitSetters::dataset(const GetArtifactRequest* msg) { - return *msg->dataset_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetArtifactRequest::kDatasetFieldNumber; -const int GetArtifactRequest::kArtifactIdFieldNumber; -const int GetArtifactRequest::kTagNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetArtifactRequest::GetArtifactRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetArtifactRequest) -} -GetArtifactRequest::GetArtifactRequest(const GetArtifactRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - clear_has_query_handle(); - switch (from.query_handle_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactRequest) -} - -void GetArtifactRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - dataset_ = nullptr; - clear_has_query_handle(); -} - -GetArtifactRequest::~GetArtifactRequest() { - // @@protoc_insertion_point(destructor:datacatalog.GetArtifactRequest) - SharedDtor(); -} - -void GetArtifactRequest::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; - if (has_query_handle()) { - clear_query_handle(); - } -} - -void GetArtifactRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetArtifactRequest& GetArtifactRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetArtifactRequest::clear_query_handle() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.GetArtifactRequest) - switch (query_handle_case()) { - case kArtifactId: { - query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kTagName: { - query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - _oneof_case_[0] = QUERY_HANDLE_NOT_SET; -} - - -void GetArtifactRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - clear_query_handle(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetArtifactRequest::_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) { - // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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; - } - // string artifact_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.GetArtifactRequest.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string tag_name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.GetArtifactRequest.tag_name"); - object = msg->mutable_tag_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetArtifactRequest::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:datacatalog.GetArtifactRequest) - 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)) { - // .datacatalog.DatasetID dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } else { - goto handle_unusual; - } - break; - } - - // string artifact_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.GetArtifactRequest.artifact_id")); - } else { - goto handle_unusual; - } - break; - } - - // string tag_name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.GetArtifactRequest.tag_name")); - } 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:datacatalog.GetArtifactRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetArtifactRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - // string artifact_id = 2; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetArtifactRequest.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->artifact_id(), output); - } - - // string tag_name = 3; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetArtifactRequest.tag_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->tag_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetArtifactRequest) -} - -::google::protobuf::uint8* GetArtifactRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(this), target); - } - - // string artifact_id = 2; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetArtifactRequest.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->artifact_id(), target); - } - - // string tag_name = 3; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetArtifactRequest.tag_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->tag_name(), 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:datacatalog.GetArtifactRequest) - return target; -} - -size_t GetArtifactRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactRequest) - 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; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - switch (query_handle_case()) { - // string artifact_id = 2; - case kArtifactId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - break; - } - // string tag_name = 3; - case kTagName: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetArtifactRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactRequest) - MergeFrom(*source); - } -} - -void GetArtifactRequest::MergeFrom(const GetArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactRequest) - 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_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } - switch (from.query_handle_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } -} - -void GetArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetArtifactRequest::CopyFrom(const GetArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetArtifactRequest::IsInitialized() const { - return true; -} - -void GetArtifactRequest::Swap(GetArtifactRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetArtifactRequest::InternalSwap(GetArtifactRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_, other->dataset_); - swap(query_handle_, other->query_handle_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata GetArtifactRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetArtifactResponse::InitAsDefaultInstance() { - ::datacatalog::_GetArtifactResponse_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( - ::datacatalog::Artifact::internal_default_instance()); -} -class GetArtifactResponse::HasBitSetters { - public: - static const ::datacatalog::Artifact& artifact(const GetArtifactResponse* msg); -}; - -const ::datacatalog::Artifact& -GetArtifactResponse::HasBitSetters::artifact(const GetArtifactResponse* msg) { - return *msg->artifact_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetArtifactResponse::kArtifactFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetArtifactResponse::GetArtifactResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetArtifactResponse) -} -GetArtifactResponse::GetArtifactResponse(const GetArtifactResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact()) { - artifact_ = new ::datacatalog::Artifact(*from.artifact_); - } else { - artifact_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetArtifactResponse) -} - -void GetArtifactResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - artifact_ = nullptr; -} - -GetArtifactResponse::~GetArtifactResponse() { - // @@protoc_insertion_point(destructor:datacatalog.GetArtifactResponse) - SharedDtor(); -} - -void GetArtifactResponse::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; -} - -void GetArtifactResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetArtifactResponse& GetArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetArtifactResponse::_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) { - // .datacatalog.Artifact artifact = 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 = ::datacatalog::Artifact::_InternalParse; - object = msg->mutable_artifact(); - 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 GetArtifactResponse::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:datacatalog.GetArtifactResponse) - 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)) { - // .datacatalog.Artifact artifact = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); - } 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:datacatalog.GetArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetArtifactResponse) -} - -::google::protobuf::uint8* GetArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact(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:datacatalog.GetArtifactResponse) - return target; -} - -size_t GetArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetArtifactResponse) - 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; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetArtifactResponse) - MergeFrom(*source); - } -} - -void GetArtifactResponse::MergeFrom(const GetArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetArtifactResponse) - 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_artifact()) { - mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); - } -} - -void GetArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetArtifactResponse::CopyFrom(const GetArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetArtifactResponse::IsInitialized() const { - return true; -} - -void GetArtifactResponse::Swap(GetArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetArtifactResponse::InternalSwap(GetArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); -} - -::google::protobuf::Metadata GetArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateArtifactRequest::InitAsDefaultInstance() { - ::datacatalog::_CreateArtifactRequest_default_instance_._instance.get_mutable()->artifact_ = const_cast< ::datacatalog::Artifact*>( - ::datacatalog::Artifact::internal_default_instance()); -} -class CreateArtifactRequest::HasBitSetters { - public: - static const ::datacatalog::Artifact& artifact(const CreateArtifactRequest* msg); -}; - -const ::datacatalog::Artifact& -CreateArtifactRequest::HasBitSetters::artifact(const CreateArtifactRequest* msg) { - return *msg->artifact_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateArtifactRequest::kArtifactFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateArtifactRequest::CreateArtifactRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactRequest) -} -CreateArtifactRequest::CreateArtifactRequest(const CreateArtifactRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_artifact()) { - artifact_ = new ::datacatalog::Artifact(*from.artifact_); - } else { - artifact_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactRequest) -} - -void CreateArtifactRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - artifact_ = nullptr; -} - -CreateArtifactRequest::~CreateArtifactRequest() { - // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactRequest) - SharedDtor(); -} - -void CreateArtifactRequest::SharedDtor() { - if (this != internal_default_instance()) delete artifact_; -} - -void CreateArtifactRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateArtifactRequest& CreateArtifactRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CreateArtifactRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateArtifactRequest::_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) { - // .datacatalog.Artifact artifact = 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 = ::datacatalog::Artifact::_InternalParse; - object = msg->mutable_artifact(); - 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 CreateArtifactRequest::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:datacatalog.CreateArtifactRequest) - 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)) { - // .datacatalog.Artifact artifact = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact())); - } 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:datacatalog.CreateArtifactRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateArtifactRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::artifact(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.CreateArtifactRequest) -} - -::google::protobuf::uint8* CreateArtifactRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::artifact(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:datacatalog.CreateArtifactRequest) - return target; -} - -size_t CreateArtifactRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactRequest) - 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; - - // .datacatalog.Artifact artifact = 1; - if (this->has_artifact()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *artifact_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateArtifactRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactRequest) - MergeFrom(*source); - } -} - -void CreateArtifactRequest::MergeFrom(const CreateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactRequest) - 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_artifact()) { - mutable_artifact()->::datacatalog::Artifact::MergeFrom(from.artifact()); - } -} - -void CreateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateArtifactRequest::CopyFrom(const CreateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateArtifactRequest::IsInitialized() const { - return true; -} - -void CreateArtifactRequest::Swap(CreateArtifactRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateArtifactRequest::InternalSwap(CreateArtifactRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(artifact_, other->artifact_); -} - -::google::protobuf::Metadata CreateArtifactRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateArtifactResponse::InitAsDefaultInstance() { -} -class CreateArtifactResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateArtifactResponse::CreateArtifactResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.CreateArtifactResponse) -} -CreateArtifactResponse::CreateArtifactResponse(const CreateArtifactResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.CreateArtifactResponse) -} - -void CreateArtifactResponse::SharedCtor() { -} - -CreateArtifactResponse::~CreateArtifactResponse() { - // @@protoc_insertion_point(destructor:datacatalog.CreateArtifactResponse) - SharedDtor(); -} - -void CreateArtifactResponse::SharedDtor() { -} - -void CreateArtifactResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateArtifactResponse& CreateArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void CreateArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateArtifactResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateArtifactResponse::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:datacatalog.CreateArtifactResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:datacatalog.CreateArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.CreateArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.CreateArtifactResponse) -} - -::google::protobuf::uint8* CreateArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.CreateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.CreateArtifactResponse) - return target; -} - -size_t CreateArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.CreateArtifactResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.CreateArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.CreateArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.CreateArtifactResponse) - MergeFrom(*source); - } -} - -void CreateArtifactResponse::MergeFrom(const CreateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.CreateArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void CreateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.CreateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateArtifactResponse::CopyFrom(const CreateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.CreateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateArtifactResponse::IsInitialized() const { - return true; -} - -void CreateArtifactResponse::Swap(CreateArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateArtifactResponse::InternalSwap(CreateArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata CreateArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AddTagRequest::InitAsDefaultInstance() { - ::datacatalog::_AddTagRequest_default_instance_._instance.get_mutable()->tag_ = const_cast< ::datacatalog::Tag*>( - ::datacatalog::Tag::internal_default_instance()); -} -class AddTagRequest::HasBitSetters { - public: - static const ::datacatalog::Tag& tag(const AddTagRequest* msg); -}; - -const ::datacatalog::Tag& -AddTagRequest::HasBitSetters::tag(const AddTagRequest* msg) { - return *msg->tag_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int AddTagRequest::kTagFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AddTagRequest::AddTagRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.AddTagRequest) -} -AddTagRequest::AddTagRequest(const AddTagRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_tag()) { - tag_ = new ::datacatalog::Tag(*from.tag_); - } else { - tag_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagRequest) -} - -void AddTagRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - tag_ = nullptr; -} - -AddTagRequest::~AddTagRequest() { - // @@protoc_insertion_point(destructor:datacatalog.AddTagRequest) - SharedDtor(); -} - -void AddTagRequest::SharedDtor() { - if (this != internal_default_instance()) delete tag_; -} - -void AddTagRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AddTagRequest& AddTagRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AddTagRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void AddTagRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { - delete tag_; - } - tag_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AddTagRequest::_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) { - // .datacatalog.Tag tag = 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 = ::datacatalog::Tag::_InternalParse; - object = msg->mutable_tag(); - 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 AddTagRequest::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:datacatalog.AddTagRequest) - 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)) { - // .datacatalog.Tag tag = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_tag())); - } 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:datacatalog.AddTagRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.AddTagRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AddTagRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Tag tag = 1; - if (this->has_tag()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::tag(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.AddTagRequest) -} - -::google::protobuf::uint8* AddTagRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Tag tag = 1; - if (this->has_tag()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::tag(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:datacatalog.AddTagRequest) - return target; -} - -size_t AddTagRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagRequest) - 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; - - // .datacatalog.Tag tag = 1; - if (this->has_tag()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *tag_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AddTagRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagRequest) - GOOGLE_DCHECK_NE(&from, this); - const AddTagRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagRequest) - MergeFrom(*source); - } -} - -void AddTagRequest::MergeFrom(const AddTagRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagRequest) - 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_tag()) { - mutable_tag()->::datacatalog::Tag::MergeFrom(from.tag()); - } -} - -void AddTagRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddTagRequest::CopyFrom(const AddTagRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddTagRequest::IsInitialized() const { - return true; -} - -void AddTagRequest::Swap(AddTagRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void AddTagRequest::InternalSwap(AddTagRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(tag_, other->tag_); -} - -::google::protobuf::Metadata AddTagRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void AddTagResponse::InitAsDefaultInstance() { -} -class AddTagResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -AddTagResponse::AddTagResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.AddTagResponse) -} -AddTagResponse::AddTagResponse(const AddTagResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.AddTagResponse) -} - -void AddTagResponse::SharedCtor() { -} - -AddTagResponse::~AddTagResponse() { - // @@protoc_insertion_point(destructor:datacatalog.AddTagResponse) - SharedDtor(); -} - -void AddTagResponse::SharedDtor() { -} - -void AddTagResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const AddTagResponse& AddTagResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_AddTagResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void AddTagResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* AddTagResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool AddTagResponse::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:datacatalog.AddTagResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:datacatalog.AddTagResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.AddTagResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void AddTagResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.AddTagResponse) -} - -::google::protobuf::uint8* AddTagResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.AddTagResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.AddTagResponse) - return target; -} - -size_t AddTagResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.AddTagResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void AddTagResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.AddTagResponse) - GOOGLE_DCHECK_NE(&from, this); - const AddTagResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.AddTagResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.AddTagResponse) - MergeFrom(*source); - } -} - -void AddTagResponse::MergeFrom(const AddTagResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.AddTagResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void AddTagResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.AddTagResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AddTagResponse::CopyFrom(const AddTagResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.AddTagResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddTagResponse::IsInitialized() const { - return true; -} - -void AddTagResponse::Swap(AddTagResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void AddTagResponse::InternalSwap(AddTagResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata AddTagResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListArtifactsRequest::InitAsDefaultInstance() { - ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); - ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( - ::datacatalog::FilterExpression::internal_default_instance()); - ::datacatalog::_ListArtifactsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( - ::datacatalog::PaginationOptions::internal_default_instance()); -} -class ListArtifactsRequest::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const ListArtifactsRequest* msg); - static const ::datacatalog::FilterExpression& filter(const ListArtifactsRequest* msg); - static const ::datacatalog::PaginationOptions& pagination(const ListArtifactsRequest* msg); -}; - -const ::datacatalog::DatasetID& -ListArtifactsRequest::HasBitSetters::dataset(const ListArtifactsRequest* msg) { - return *msg->dataset_; -} -const ::datacatalog::FilterExpression& -ListArtifactsRequest::HasBitSetters::filter(const ListArtifactsRequest* msg) { - return *msg->filter_; -} -const ::datacatalog::PaginationOptions& -ListArtifactsRequest::HasBitSetters::pagination(const ListArtifactsRequest* msg) { - return *msg->pagination_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactsRequest::kDatasetFieldNumber; -const int ListArtifactsRequest::kFilterFieldNumber; -const int ListArtifactsRequest::kPaginationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListArtifactsRequest::ListArtifactsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsRequest) -} -ListArtifactsRequest::ListArtifactsRequest(const ListArtifactsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - if (from.has_filter()) { - filter_ = new ::datacatalog::FilterExpression(*from.filter_); - } else { - filter_ = nullptr; - } - if (from.has_pagination()) { - pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsRequest) -} - -void ListArtifactsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::memset(&dataset_, 0, static_cast( - reinterpret_cast(&pagination_) - - reinterpret_cast(&dataset_)) + sizeof(pagination_)); -} - -ListArtifactsRequest::~ListArtifactsRequest() { - // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsRequest) - SharedDtor(); -} - -void ListArtifactsRequest::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; - if (this != internal_default_instance()) delete filter_; - if (this != internal_default_instance()) delete pagination_; -} - -void ListArtifactsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListArtifactsRequest& ListArtifactsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ListArtifactsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; - } - filter_ = nullptr; - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactsRequest::_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) { - // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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; - } - // .datacatalog.FilterExpression filter = 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 = ::datacatalog::FilterExpression::_InternalParse; - object = msg->mutable_filter(); - 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; - } - // .datacatalog.PaginationOptions pagination = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::PaginationOptions::_InternalParse; - object = msg->mutable_pagination(); - 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 ListArtifactsRequest::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:datacatalog.ListArtifactsRequest) - 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)) { - // .datacatalog.DatasetID dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.FilterExpression filter = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.PaginationOptions pagination = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pagination())); - } 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:datacatalog.ListArtifactsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListArtifactsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - // .datacatalog.FilterExpression filter = 2; - if (this->has_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::filter(this), output); - } - - // .datacatalog.PaginationOptions pagination = 3; - if (this->has_pagination()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::pagination(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsRequest) -} - -::google::protobuf::uint8* ListArtifactsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(this), target); - } - - // .datacatalog.FilterExpression filter = 2; - if (this->has_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::filter(this), target); - } - - // .datacatalog.PaginationOptions pagination = 3; - if (this->has_pagination()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::pagination(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:datacatalog.ListArtifactsRequest) - return target; -} - -size_t ListArtifactsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsRequest) - 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; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - // .datacatalog.FilterExpression filter = 2; - if (this->has_filter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *filter_); - } - - // .datacatalog.PaginationOptions pagination = 3; - if (this->has_pagination()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *pagination_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListArtifactsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ListArtifactsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsRequest) - MergeFrom(*source); - } -} - -void ListArtifactsRequest::MergeFrom(const ListArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsRequest) - 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_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } - if (from.has_filter()) { - mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); - } - if (from.has_pagination()) { - mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); - } -} - -void ListArtifactsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListArtifactsRequest::CopyFrom(const ListArtifactsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListArtifactsRequest::IsInitialized() const { - return true; -} - -void ListArtifactsRequest::Swap(ListArtifactsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ListArtifactsRequest::InternalSwap(ListArtifactsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(dataset_, other->dataset_); - swap(filter_, other->filter_); - swap(pagination_, other->pagination_); -} - -::google::protobuf::Metadata ListArtifactsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListArtifactsResponse::InitAsDefaultInstance() { -} -class ListArtifactsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListArtifactsResponse::kArtifactsFieldNumber; -const int ListArtifactsResponse::kNextTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListArtifactsResponse::ListArtifactsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListArtifactsResponse) -} -ListArtifactsResponse::ListArtifactsResponse(const ListArtifactsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifacts_(from.artifacts_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.next_token().size() > 0) { - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ListArtifactsResponse) -} - -void ListArtifactsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ListArtifactsResponse::~ListArtifactsResponse() { - // @@protoc_insertion_point(destructor:datacatalog.ListArtifactsResponse) - SharedDtor(); -} - -void ListArtifactsResponse::SharedDtor() { - next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ListArtifactsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListArtifactsResponse& ListArtifactsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListArtifactsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ListArtifactsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifacts_.Clear(); - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListArtifactsResponse::_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) { - // repeated .datacatalog.Artifact artifacts = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Artifact::_InternalParse; - object = msg->add_artifacts(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string next_token = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.ListArtifactsResponse.next_token"); - object = msg->mutable_next_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListArtifactsResponse::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:datacatalog.ListArtifactsResponse) - 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)) { - // repeated .datacatalog.Artifact artifacts = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifacts())); - } else { - goto handle_unusual; - } - break; - } - - // string next_token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_next_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ListArtifactsResponse.next_token")); - } 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:datacatalog.ListArtifactsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListArtifactsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListArtifactsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->artifacts(static_cast(i)), - output); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListArtifactsResponse.next_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->next_token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ListArtifactsResponse) -} - -::google::protobuf::uint8* ListArtifactsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListArtifactsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Artifact artifacts = 1; - for (unsigned int i = 0, - n = static_cast(this->artifacts_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->artifacts(static_cast(i)), target); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListArtifactsResponse.next_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->next_token(), 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:datacatalog.ListArtifactsResponse) - return target; -} - -size_t ListArtifactsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListArtifactsResponse) - 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; - - // repeated .datacatalog.Artifact artifacts = 1; - { - unsigned int count = static_cast(this->artifacts_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifacts(static_cast(i))); - } - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->next_token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListArtifactsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListArtifactsResponse) - GOOGLE_DCHECK_NE(&from, this); - const ListArtifactsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListArtifactsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListArtifactsResponse) - MergeFrom(*source); - } -} - -void ListArtifactsResponse::MergeFrom(const ListArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListArtifactsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifacts_.MergeFrom(from.artifacts_); - if (from.next_token().size() > 0) { - - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } -} - -void ListArtifactsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListArtifactsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListArtifactsResponse::CopyFrom(const ListArtifactsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListArtifactsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListArtifactsResponse::IsInitialized() const { - return true; -} - -void ListArtifactsResponse::Swap(ListArtifactsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ListArtifactsResponse::InternalSwap(ListArtifactsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifacts_)->InternalSwap(CastToBase(&other->artifacts_)); - next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ListArtifactsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListDatasetsRequest::InitAsDefaultInstance() { - ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->filter_ = const_cast< ::datacatalog::FilterExpression*>( - ::datacatalog::FilterExpression::internal_default_instance()); - ::datacatalog::_ListDatasetsRequest_default_instance_._instance.get_mutable()->pagination_ = const_cast< ::datacatalog::PaginationOptions*>( - ::datacatalog::PaginationOptions::internal_default_instance()); -} -class ListDatasetsRequest::HasBitSetters { - public: - static const ::datacatalog::FilterExpression& filter(const ListDatasetsRequest* msg); - static const ::datacatalog::PaginationOptions& pagination(const ListDatasetsRequest* msg); -}; - -const ::datacatalog::FilterExpression& -ListDatasetsRequest::HasBitSetters::filter(const ListDatasetsRequest* msg) { - return *msg->filter_; -} -const ::datacatalog::PaginationOptions& -ListDatasetsRequest::HasBitSetters::pagination(const ListDatasetsRequest* msg) { - return *msg->pagination_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListDatasetsRequest::kFilterFieldNumber; -const int ListDatasetsRequest::kPaginationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListDatasetsRequest::ListDatasetsRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsRequest) -} -ListDatasetsRequest::ListDatasetsRequest(const ListDatasetsRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_filter()) { - filter_ = new ::datacatalog::FilterExpression(*from.filter_); - } else { - filter_ = nullptr; - } - if (from.has_pagination()) { - pagination_ = new ::datacatalog::PaginationOptions(*from.pagination_); - } else { - pagination_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsRequest) -} - -void ListDatasetsRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::memset(&filter_, 0, static_cast( - reinterpret_cast(&pagination_) - - reinterpret_cast(&filter_)) + sizeof(pagination_)); -} - -ListDatasetsRequest::~ListDatasetsRequest() { - // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsRequest) - SharedDtor(); -} - -void ListDatasetsRequest::SharedDtor() { - if (this != internal_default_instance()) delete filter_; - if (this != internal_default_instance()) delete pagination_; -} - -void ListDatasetsRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListDatasetsRequest& ListDatasetsRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ListDatasetsRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; - } - filter_ = nullptr; - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListDatasetsRequest::_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) { - // .datacatalog.FilterExpression filter = 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 = ::datacatalog::FilterExpression::_InternalParse; - object = msg->mutable_filter(); - 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; - } - // .datacatalog.PaginationOptions pagination = 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 = ::datacatalog::PaginationOptions::_InternalParse; - object = msg->mutable_pagination(); - 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 ListDatasetsRequest::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:datacatalog.ListDatasetsRequest) - 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)) { - // .datacatalog.FilterExpression filter = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.PaginationOptions pagination = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pagination())); - } 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:datacatalog.ListDatasetsRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListDatasetsRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.FilterExpression filter = 1; - if (this->has_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::filter(this), output); - } - - // .datacatalog.PaginationOptions pagination = 2; - if (this->has_pagination()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::pagination(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsRequest) -} - -::google::protobuf::uint8* ListDatasetsRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.FilterExpression filter = 1; - if (this->has_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::filter(this), target); - } - - // .datacatalog.PaginationOptions pagination = 2; - if (this->has_pagination()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::pagination(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:datacatalog.ListDatasetsRequest) - return target; -} - -size_t ListDatasetsRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsRequest) - 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; - - // .datacatalog.FilterExpression filter = 1; - if (this->has_filter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *filter_); - } - - // .datacatalog.PaginationOptions pagination = 2; - if (this->has_pagination()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *pagination_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListDatasetsRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsRequest) - GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsRequest) - MergeFrom(*source); - } -} - -void ListDatasetsRequest::MergeFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsRequest) - 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_filter()) { - mutable_filter()->::datacatalog::FilterExpression::MergeFrom(from.filter()); - } - if (from.has_pagination()) { - mutable_pagination()->::datacatalog::PaginationOptions::MergeFrom(from.pagination()); - } -} - -void ListDatasetsRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListDatasetsRequest::CopyFrom(const ListDatasetsRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListDatasetsRequest::IsInitialized() const { - return true; -} - -void ListDatasetsRequest::Swap(ListDatasetsRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ListDatasetsRequest::InternalSwap(ListDatasetsRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(filter_, other->filter_); - swap(pagination_, other->pagination_); -} - -::google::protobuf::Metadata ListDatasetsRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ListDatasetsResponse::InitAsDefaultInstance() { -} -class ListDatasetsResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ListDatasetsResponse::kDatasetsFieldNumber; -const int ListDatasetsResponse::kNextTokenFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ListDatasetsResponse::ListDatasetsResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ListDatasetsResponse) -} -ListDatasetsResponse::ListDatasetsResponse(const ListDatasetsResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - datasets_(from.datasets_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.next_token().size() > 0) { - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ListDatasetsResponse) -} - -void ListDatasetsResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - next_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ListDatasetsResponse::~ListDatasetsResponse() { - // @@protoc_insertion_point(destructor:datacatalog.ListDatasetsResponse) - SharedDtor(); -} - -void ListDatasetsResponse::SharedDtor() { - next_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ListDatasetsResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ListDatasetsResponse& ListDatasetsResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ListDatasetsResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ListDatasetsResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ListDatasetsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - datasets_.Clear(); - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ListDatasetsResponse::_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) { - // repeated .datacatalog.Dataset datasets = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Dataset::_InternalParse; - object = msg->add_datasets(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // string next_token = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.ListDatasetsResponse.next_token"); - object = msg->mutable_next_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ListDatasetsResponse::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:datacatalog.ListDatasetsResponse) - 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)) { - // repeated .datacatalog.Dataset datasets = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_datasets())); - } else { - goto handle_unusual; - } - break; - } - - // string next_token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_next_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ListDatasetsResponse.next_token")); - } 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:datacatalog.ListDatasetsResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ListDatasetsResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ListDatasetsResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ListDatasetsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Dataset datasets = 1; - for (unsigned int i = 0, - n = static_cast(this->datasets_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->datasets(static_cast(i)), - output); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListDatasetsResponse.next_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->next_token(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ListDatasetsResponse) -} - -::google::protobuf::uint8* ListDatasetsResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ListDatasetsResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.Dataset datasets = 1; - for (unsigned int i = 0, - n = static_cast(this->datasets_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->datasets(static_cast(i)), target); - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->next_token().data(), static_cast(this->next_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ListDatasetsResponse.next_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->next_token(), 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:datacatalog.ListDatasetsResponse) - return target; -} - -size_t ListDatasetsResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ListDatasetsResponse) - 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; - - // repeated .datacatalog.Dataset datasets = 1; - { - unsigned int count = static_cast(this->datasets_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->datasets(static_cast(i))); - } - } - - // string next_token = 2; - if (this->next_token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->next_token()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ListDatasetsResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ListDatasetsResponse) - GOOGLE_DCHECK_NE(&from, this); - const ListDatasetsResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ListDatasetsResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ListDatasetsResponse) - MergeFrom(*source); - } -} - -void ListDatasetsResponse::MergeFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ListDatasetsResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - datasets_.MergeFrom(from.datasets_); - if (from.next_token().size() > 0) { - - next_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.next_token_); - } -} - -void ListDatasetsResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ListDatasetsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ListDatasetsResponse::CopyFrom(const ListDatasetsResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ListDatasetsResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ListDatasetsResponse::IsInitialized() const { - return true; -} - -void ListDatasetsResponse::Swap(ListDatasetsResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ListDatasetsResponse::InternalSwap(ListDatasetsResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&datasets_)->InternalSwap(CastToBase(&other->datasets_)); - next_token_.Swap(&other->next_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ListDatasetsResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UpdateArtifactRequest::InitAsDefaultInstance() { - ::datacatalog::_UpdateArtifactRequest_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); - ::datacatalog::_UpdateArtifactRequest_default_instance_.artifact_id_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_UpdateArtifactRequest_default_instance_.tag_name_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_UpdateArtifactRequest_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( - ::datacatalog::Metadata::internal_default_instance()); -} -class UpdateArtifactRequest::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const UpdateArtifactRequest* msg); - static const ::datacatalog::Metadata& metadata(const UpdateArtifactRequest* msg); -}; - -const ::datacatalog::DatasetID& -UpdateArtifactRequest::HasBitSetters::dataset(const UpdateArtifactRequest* msg) { - return *msg->dataset_; -} -const ::datacatalog::Metadata& -UpdateArtifactRequest::HasBitSetters::metadata(const UpdateArtifactRequest* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UpdateArtifactRequest::kDatasetFieldNumber; -const int UpdateArtifactRequest::kArtifactIdFieldNumber; -const int UpdateArtifactRequest::kTagNameFieldNumber; -const int UpdateArtifactRequest::kDataFieldNumber; -const int UpdateArtifactRequest::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UpdateArtifactRequest::UpdateArtifactRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactRequest) -} -UpdateArtifactRequest::UpdateArtifactRequest(const UpdateArtifactRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - data_(from.data_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::datacatalog::Metadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - clear_has_query_handle(); - switch (from.query_handle_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactRequest) -} - -void UpdateArtifactRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::memset(&dataset_, 0, static_cast( - reinterpret_cast(&metadata_) - - reinterpret_cast(&dataset_)) + sizeof(metadata_)); - clear_has_query_handle(); -} - -UpdateArtifactRequest::~UpdateArtifactRequest() { - // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactRequest) - SharedDtor(); -} - -void UpdateArtifactRequest::SharedDtor() { - if (this != internal_default_instance()) delete dataset_; - if (this != internal_default_instance()) delete metadata_; - if (has_query_handle()) { - clear_query_handle(); - } -} - -void UpdateArtifactRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UpdateArtifactRequest& UpdateArtifactRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void UpdateArtifactRequest::clear_query_handle() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.UpdateArtifactRequest) - switch (query_handle_case()) { - case kArtifactId: { - query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kTagName: { - query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - _oneof_case_[0] = QUERY_HANDLE_NOT_SET; -} - - -void UpdateArtifactRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - clear_query_handle(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UpdateArtifactRequest::_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) { - // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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; - } - // string artifact_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string tag_name = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactRequest.tag_name"); - object = msg->mutable_tag_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .datacatalog.ArtifactData data = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::ArtifactData::_InternalParse; - object = msg->add_data(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // .datacatalog.Metadata metadata = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Metadata::_InternalParse; - object = msg->mutable_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UpdateArtifactRequest::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:datacatalog.UpdateArtifactRequest) - 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)) { - // .datacatalog.DatasetID dataset = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } else { - goto handle_unusual; - } - break; - } - - // string artifact_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.UpdateArtifactRequest.artifact_id")); - } else { - goto handle_unusual; - } - break; - } - - // string tag_name = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.UpdateArtifactRequest.tag_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .datacatalog.ArtifactData data = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_data())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.Metadata metadata = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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:datacatalog.UpdateArtifactRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UpdateArtifactRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset(this), output); - } - - // string artifact_id = 2; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactRequest.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->artifact_id(), output); - } - - // string tag_name = 3; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactRequest.tag_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->tag_name(), output); - } - - // repeated .datacatalog.ArtifactData data = 4; - for (unsigned int i = 0, - n = static_cast(this->data_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->data(static_cast(i)), - output); - } - - // .datacatalog.Metadata metadata = 5; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::metadata(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.UpdateArtifactRequest) -} - -::google::protobuf::uint8* UpdateArtifactRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset(this), target); - } - - // string artifact_id = 2; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactRequest.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->artifact_id(), target); - } - - // string tag_name = 3; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactRequest.tag_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->tag_name(), target); - } - - // repeated .datacatalog.ArtifactData data = 4; - for (unsigned int i = 0, - n = static_cast(this->data_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->data(static_cast(i)), target); - } - - // .datacatalog.Metadata metadata = 5; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::metadata(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:datacatalog.UpdateArtifactRequest) - return target; -} - -size_t UpdateArtifactRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactRequest) - 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; - - // repeated .datacatalog.ArtifactData data = 4; - { - unsigned int count = static_cast(this->data_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->data(static_cast(i))); - } - } - - // .datacatalog.DatasetID dataset = 1; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - // .datacatalog.Metadata metadata = 5; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - switch (query_handle_case()) { - // string artifact_id = 2; - case kArtifactId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - break; - } - // string tag_name = 3; - case kTagName: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UpdateArtifactRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - const UpdateArtifactRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactRequest) - MergeFrom(*source); - } -} - -void UpdateArtifactRequest::MergeFrom(const UpdateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); - if (from.has_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } - if (from.has_metadata()) { - mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); - } - switch (from.query_handle_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case QUERY_HANDLE_NOT_SET: { - break; - } - } -} - -void UpdateArtifactRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateArtifactRequest::CopyFrom(const UpdateArtifactRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateArtifactRequest::IsInitialized() const { - return true; -} - -void UpdateArtifactRequest::Swap(UpdateArtifactRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void UpdateArtifactRequest::InternalSwap(UpdateArtifactRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); - swap(dataset_, other->dataset_); - swap(metadata_, other->metadata_); - swap(query_handle_, other->query_handle_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata UpdateArtifactRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UpdateArtifactResponse::InitAsDefaultInstance() { -} -class UpdateArtifactResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UpdateArtifactResponse::kArtifactIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UpdateArtifactResponse::UpdateArtifactResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.UpdateArtifactResponse) -} -UpdateArtifactResponse::UpdateArtifactResponse(const UpdateArtifactResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.artifact_id().size() > 0) { - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.UpdateArtifactResponse) -} - -void UpdateArtifactResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -UpdateArtifactResponse::~UpdateArtifactResponse() { - // @@protoc_insertion_point(destructor:datacatalog.UpdateArtifactResponse) - SharedDtor(); -} - -void UpdateArtifactResponse::SharedDtor() { - artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void UpdateArtifactResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UpdateArtifactResponse& UpdateArtifactResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UpdateArtifactResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void UpdateArtifactResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.UpdateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UpdateArtifactResponse::_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) { - // string artifact_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); - ctx->extra_parse_data().SetFieldName("datacatalog.UpdateArtifactResponse.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UpdateArtifactResponse::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:datacatalog.UpdateArtifactResponse) - 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)) { - // string artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.UpdateArtifactResponse.artifact_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:datacatalog.UpdateArtifactResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.UpdateArtifactResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UpdateArtifactResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.UpdateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactResponse.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->artifact_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.UpdateArtifactResponse) -} - -::google::protobuf::uint8* UpdateArtifactResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.UpdateArtifactResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.UpdateArtifactResponse.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->artifact_id(), 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:datacatalog.UpdateArtifactResponse) - return target; -} - -size_t UpdateArtifactResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.UpdateArtifactResponse) - 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; - - // string artifact_id = 1; - if (this->artifact_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UpdateArtifactResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.UpdateArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - const UpdateArtifactResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.UpdateArtifactResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.UpdateArtifactResponse) - MergeFrom(*source); - } -} - -void UpdateArtifactResponse::MergeFrom(const UpdateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.UpdateArtifactResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.artifact_id().size() > 0) { - - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } -} - -void UpdateArtifactResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.UpdateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UpdateArtifactResponse::CopyFrom(const UpdateArtifactResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.UpdateArtifactResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UpdateArtifactResponse::IsInitialized() const { - return true; -} - -void UpdateArtifactResponse::Swap(UpdateArtifactResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void UpdateArtifactResponse::InternalSwap(UpdateArtifactResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata UpdateArtifactResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ReservationID::InitAsDefaultInstance() { - ::datacatalog::_ReservationID_default_instance_._instance.get_mutable()->dataset_id_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); -} -class ReservationID::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset_id(const ReservationID* msg); -}; - -const ::datacatalog::DatasetID& -ReservationID::HasBitSetters::dataset_id(const ReservationID* msg) { - return *msg->dataset_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReservationID::kDatasetIdFieldNumber; -const int ReservationID::kTagNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReservationID::ReservationID() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ReservationID) -} -ReservationID::ReservationID(const ReservationID& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.tag_name().size() > 0) { - tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); - } - if (from.has_dataset_id()) { - dataset_id_ = new ::datacatalog::DatasetID(*from.dataset_id_); - } else { - dataset_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ReservationID) -} - -void ReservationID::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dataset_id_ = nullptr; -} - -ReservationID::~ReservationID() { - // @@protoc_insertion_point(destructor:datacatalog.ReservationID) - SharedDtor(); -} - -void ReservationID::SharedDtor() { - tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete dataset_id_; -} - -void ReservationID::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReservationID& ReservationID::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReservationID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ReservationID::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ReservationID) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { - delete dataset_id_; - } - dataset_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReservationID::_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) { - // .datacatalog.DatasetID dataset_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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset_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; - } - // string tag_name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.ReservationID.tag_name"); - object = msg->mutable_tag_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReservationID::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:datacatalog.ReservationID) - 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)) { - // .datacatalog.DatasetID dataset_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset_id())); - } else { - goto handle_unusual; - } - break; - } - - // string tag_name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ReservationID.tag_name")); - } 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:datacatalog.ReservationID) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ReservationID) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReservationID::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ReservationID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset_id = 1; - if (this->has_dataset_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::dataset_id(this), output); - } - - // string tag_name = 2; - if (this->tag_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ReservationID.tag_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->tag_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ReservationID) -} - -::google::protobuf::uint8* ReservationID::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReservationID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID dataset_id = 1; - if (this->has_dataset_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::dataset_id(this), target); - } - - // string tag_name = 2; - if (this->tag_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ReservationID.tag_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->tag_name(), 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:datacatalog.ReservationID) - return target; -} - -size_t ReservationID::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReservationID) - 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; - - // string tag_name = 2; - if (this->tag_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag_name()); - } - - // .datacatalog.DatasetID dataset_id = 1; - if (this->has_dataset_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReservationID::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReservationID) - GOOGLE_DCHECK_NE(&from, this); - const ReservationID* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReservationID) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReservationID) - MergeFrom(*source); - } -} - -void ReservationID::MergeFrom(const ReservationID& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReservationID) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.tag_name().size() > 0) { - - tag_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tag_name_); - } - if (from.has_dataset_id()) { - mutable_dataset_id()->::datacatalog::DatasetID::MergeFrom(from.dataset_id()); - } -} - -void ReservationID::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReservationID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReservationID::CopyFrom(const ReservationID& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReservationID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReservationID::IsInitialized() const { - return true; -} - -void ReservationID::Swap(ReservationID* other) { - if (other == this) return; - InternalSwap(other); -} -void ReservationID::InternalSwap(ReservationID* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tag_name_.Swap(&other->tag_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dataset_id_, other->dataset_id_); -} - -::google::protobuf::Metadata ReservationID::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetOrExtendReservationRequest::InitAsDefaultInstance() { - ::datacatalog::_GetOrExtendReservationRequest_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( - ::datacatalog::ReservationID::internal_default_instance()); - ::datacatalog::_GetOrExtendReservationRequest_default_instance_._instance.get_mutable()->heartbeat_interval_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class GetOrExtendReservationRequest::HasBitSetters { - public: - static const ::datacatalog::ReservationID& reservation_id(const GetOrExtendReservationRequest* msg); - static const ::google::protobuf::Duration& heartbeat_interval(const GetOrExtendReservationRequest* msg); -}; - -const ::datacatalog::ReservationID& -GetOrExtendReservationRequest::HasBitSetters::reservation_id(const GetOrExtendReservationRequest* msg) { - return *msg->reservation_id_; -} -const ::google::protobuf::Duration& -GetOrExtendReservationRequest::HasBitSetters::heartbeat_interval(const GetOrExtendReservationRequest* msg) { - return *msg->heartbeat_interval_; -} -void GetOrExtendReservationRequest::clear_heartbeat_interval() { - if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { - delete heartbeat_interval_; - } - heartbeat_interval_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetOrExtendReservationRequest::kReservationIdFieldNumber; -const int GetOrExtendReservationRequest::kOwnerIdFieldNumber; -const int GetOrExtendReservationRequest::kHeartbeatIntervalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetOrExtendReservationRequest::GetOrExtendReservationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationRequest) -} -GetOrExtendReservationRequest::GetOrExtendReservationRequest(const GetOrExtendReservationRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.owner_id().size() > 0) { - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); - } else { - reservation_id_ = nullptr; - } - if (from.has_heartbeat_interval()) { - heartbeat_interval_ = new ::google::protobuf::Duration(*from.heartbeat_interval_); - } else { - heartbeat_interval_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationRequest) -} - -void GetOrExtendReservationRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&reservation_id_, 0, static_cast( - reinterpret_cast(&heartbeat_interval_) - - reinterpret_cast(&reservation_id_)) + sizeof(heartbeat_interval_)); -} - -GetOrExtendReservationRequest::~GetOrExtendReservationRequest() { - // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationRequest) - SharedDtor(); -} - -void GetOrExtendReservationRequest::SharedDtor() { - owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete reservation_id_; - if (this != internal_default_instance()) delete heartbeat_interval_; -} - -void GetOrExtendReservationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetOrExtendReservationRequest& GetOrExtendReservationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetOrExtendReservationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { - delete heartbeat_interval_; - } - heartbeat_interval_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetOrExtendReservationRequest::_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) { - // .datacatalog.ReservationID reservation_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 = ::datacatalog::ReservationID::_InternalParse; - object = msg->mutable_reservation_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; - } - // string owner_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.GetOrExtendReservationRequest.owner_id"); - object = msg->mutable_owner_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Duration heartbeat_interval = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_heartbeat_interval(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetOrExtendReservationRequest::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:datacatalog.GetOrExtendReservationRequest) - 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)) { - // .datacatalog.ReservationID reservation_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reservation_id())); - } else { - goto handle_unusual; - } - break; - } - - // string owner_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_owner_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.GetOrExtendReservationRequest.owner_id")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration heartbeat_interval = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_heartbeat_interval())); - } 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:datacatalog.GetOrExtendReservationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetOrExtendReservationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::reservation_id(this), output); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetOrExtendReservationRequest.owner_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->owner_id(), output); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::heartbeat_interval(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetOrExtendReservationRequest) -} - -::google::protobuf::uint8* GetOrExtendReservationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reservation_id(this), target); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.GetOrExtendReservationRequest.owner_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->owner_id(), target); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::heartbeat_interval(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:datacatalog.GetOrExtendReservationRequest) - return target; -} - -size_t GetOrExtendReservationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationRequest) - 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; - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->owner_id()); - } - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reservation_id_); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *heartbeat_interval_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetOrExtendReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetOrExtendReservationRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationRequest) - MergeFrom(*source); - } -} - -void GetOrExtendReservationRequest::MergeFrom(const GetOrExtendReservationRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.owner_id().size() > 0) { - - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); - } - if (from.has_heartbeat_interval()) { - mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); - } -} - -void GetOrExtendReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetOrExtendReservationRequest::CopyFrom(const GetOrExtendReservationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetOrExtendReservationRequest::IsInitialized() const { - return true; -} - -void GetOrExtendReservationRequest::Swap(GetOrExtendReservationRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetOrExtendReservationRequest::InternalSwap(GetOrExtendReservationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(reservation_id_, other->reservation_id_); - swap(heartbeat_interval_, other->heartbeat_interval_); -} - -::google::protobuf::Metadata GetOrExtendReservationRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Reservation::InitAsDefaultInstance() { - ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( - ::datacatalog::ReservationID::internal_default_instance()); - ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->heartbeat_interval_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::datacatalog::_Reservation_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( - ::datacatalog::Metadata::internal_default_instance()); -} -class Reservation::HasBitSetters { - public: - static const ::datacatalog::ReservationID& reservation_id(const Reservation* msg); - static const ::google::protobuf::Duration& heartbeat_interval(const Reservation* msg); - static const ::google::protobuf::Timestamp& expires_at(const Reservation* msg); - static const ::datacatalog::Metadata& metadata(const Reservation* msg); -}; - -const ::datacatalog::ReservationID& -Reservation::HasBitSetters::reservation_id(const Reservation* msg) { - return *msg->reservation_id_; -} -const ::google::protobuf::Duration& -Reservation::HasBitSetters::heartbeat_interval(const Reservation* msg) { - return *msg->heartbeat_interval_; -} -const ::google::protobuf::Timestamp& -Reservation::HasBitSetters::expires_at(const Reservation* msg) { - return *msg->expires_at_; -} -const ::datacatalog::Metadata& -Reservation::HasBitSetters::metadata(const Reservation* msg) { - return *msg->metadata_; -} -void Reservation::clear_heartbeat_interval() { - if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { - delete heartbeat_interval_; - } - heartbeat_interval_ = nullptr; -} -void Reservation::clear_expires_at() { - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Reservation::kReservationIdFieldNumber; -const int Reservation::kOwnerIdFieldNumber; -const int Reservation::kHeartbeatIntervalFieldNumber; -const int Reservation::kExpiresAtFieldNumber; -const int Reservation::kMetadataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Reservation::Reservation() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Reservation) -} -Reservation::Reservation(const Reservation& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.owner_id().size() > 0) { - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); - } else { - reservation_id_ = nullptr; - } - if (from.has_heartbeat_interval()) { - heartbeat_interval_ = new ::google::protobuf::Duration(*from.heartbeat_interval_); - } else { - heartbeat_interval_ = nullptr; - } - if (from.has_expires_at()) { - expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); - } else { - expires_at_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::datacatalog::Metadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.Reservation) -} - -void Reservation::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&reservation_id_, 0, static_cast( - reinterpret_cast(&metadata_) - - reinterpret_cast(&reservation_id_)) + sizeof(metadata_)); -} - -Reservation::~Reservation() { - // @@protoc_insertion_point(destructor:datacatalog.Reservation) - SharedDtor(); -} - -void Reservation::SharedDtor() { - owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete reservation_id_; - if (this != internal_default_instance()) delete heartbeat_interval_; - if (this != internal_default_instance()) delete expires_at_; - if (this != internal_default_instance()) delete metadata_; -} - -void Reservation::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Reservation& Reservation::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Reservation_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Reservation::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Reservation) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && heartbeat_interval_ != nullptr) { - delete heartbeat_interval_; - } - heartbeat_interval_ = nullptr; - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Reservation::_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) { - // .datacatalog.ReservationID reservation_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 = ::datacatalog::ReservationID::_InternalParse; - object = msg->mutable_reservation_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; - } - // string owner_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Reservation.owner_id"); - object = msg->mutable_owner_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Duration heartbeat_interval = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_heartbeat_interval(); - 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; - } - // .google.protobuf.Timestamp expires_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_expires_at(); - 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; - } - // .datacatalog.Metadata metadata = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Metadata::_InternalParse; - object = msg->mutable_metadata(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Reservation::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:datacatalog.Reservation) - 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)) { - // .datacatalog.ReservationID reservation_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reservation_id())); - } else { - goto handle_unusual; - } - break; - } - - // string owner_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_owner_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Reservation.owner_id")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration heartbeat_interval = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_heartbeat_interval())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp expires_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_at())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.Metadata metadata = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } 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:datacatalog.Reservation) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Reservation) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Reservation::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Reservation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::reservation_id(this), output); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Reservation.owner_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->owner_id(), output); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::heartbeat_interval(this), output); - } - - // .google.protobuf.Timestamp expires_at = 4; - if (this->has_expires_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::expires_at(this), output); - } - - // .datacatalog.Metadata metadata = 6; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::metadata(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Reservation) -} - -::google::protobuf::uint8* Reservation::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Reservation) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reservation_id(this), target); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Reservation.owner_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->owner_id(), target); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::heartbeat_interval(this), target); - } - - // .google.protobuf.Timestamp expires_at = 4; - if (this->has_expires_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::expires_at(this), target); - } - - // .datacatalog.Metadata metadata = 6; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::metadata(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:datacatalog.Reservation) - return target; -} - -size_t Reservation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Reservation) - 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; - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->owner_id()); - } - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reservation_id_); - } - - // .google.protobuf.Duration heartbeat_interval = 3; - if (this->has_heartbeat_interval()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *heartbeat_interval_); - } - - // .google.protobuf.Timestamp expires_at = 4; - if (this->has_expires_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_at_); - } - - // .datacatalog.Metadata metadata = 6; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Reservation::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Reservation) - GOOGLE_DCHECK_NE(&from, this); - const Reservation* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Reservation) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Reservation) - MergeFrom(*source); - } -} - -void Reservation::MergeFrom(const Reservation& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Reservation) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.owner_id().size() > 0) { - - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); - } - if (from.has_heartbeat_interval()) { - mutable_heartbeat_interval()->::google::protobuf::Duration::MergeFrom(from.heartbeat_interval()); - } - if (from.has_expires_at()) { - mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); - } - if (from.has_metadata()) { - mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); - } -} - -void Reservation::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Reservation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Reservation::CopyFrom(const Reservation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Reservation) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Reservation::IsInitialized() const { - return true; -} - -void Reservation::Swap(Reservation* other) { - if (other == this) return; - InternalSwap(other); -} -void Reservation::InternalSwap(Reservation* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(reservation_id_, other->reservation_id_); - swap(heartbeat_interval_, other->heartbeat_interval_); - swap(expires_at_, other->expires_at_); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata Reservation::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetOrExtendReservationResponse::InitAsDefaultInstance() { - ::datacatalog::_GetOrExtendReservationResponse_default_instance_._instance.get_mutable()->reservation_ = const_cast< ::datacatalog::Reservation*>( - ::datacatalog::Reservation::internal_default_instance()); -} -class GetOrExtendReservationResponse::HasBitSetters { - public: - static const ::datacatalog::Reservation& reservation(const GetOrExtendReservationResponse* msg); -}; - -const ::datacatalog::Reservation& -GetOrExtendReservationResponse::HasBitSetters::reservation(const GetOrExtendReservationResponse* msg) { - return *msg->reservation_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetOrExtendReservationResponse::kReservationFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetOrExtendReservationResponse::GetOrExtendReservationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.GetOrExtendReservationResponse) -} -GetOrExtendReservationResponse::GetOrExtendReservationResponse(const GetOrExtendReservationResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_reservation()) { - reservation_ = new ::datacatalog::Reservation(*from.reservation_); - } else { - reservation_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.GetOrExtendReservationResponse) -} - -void GetOrExtendReservationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - reservation_ = nullptr; -} - -GetOrExtendReservationResponse::~GetOrExtendReservationResponse() { - // @@protoc_insertion_point(destructor:datacatalog.GetOrExtendReservationResponse) - SharedDtor(); -} - -void GetOrExtendReservationResponse::SharedDtor() { - if (this != internal_default_instance()) delete reservation_; -} - -void GetOrExtendReservationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetOrExtendReservationResponse& GetOrExtendReservationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetOrExtendReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void GetOrExtendReservationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.GetOrExtendReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && reservation_ != nullptr) { - delete reservation_; - } - reservation_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetOrExtendReservationResponse::_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) { - // .datacatalog.Reservation reservation = 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 = ::datacatalog::Reservation::_InternalParse; - object = msg->mutable_reservation(); - 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 GetOrExtendReservationResponse::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:datacatalog.GetOrExtendReservationResponse) - 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)) { - // .datacatalog.Reservation reservation = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reservation())); - } 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:datacatalog.GetOrExtendReservationResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.GetOrExtendReservationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetOrExtendReservationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.GetOrExtendReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Reservation reservation = 1; - if (this->has_reservation()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::reservation(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.GetOrExtendReservationResponse) -} - -::google::protobuf::uint8* GetOrExtendReservationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.GetOrExtendReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.Reservation reservation = 1; - if (this->has_reservation()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reservation(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:datacatalog.GetOrExtendReservationResponse) - return target; -} - -size_t GetOrExtendReservationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.GetOrExtendReservationResponse) - 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; - - // .datacatalog.Reservation reservation = 1; - if (this->has_reservation()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reservation_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetOrExtendReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.GetOrExtendReservationResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetOrExtendReservationResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.GetOrExtendReservationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.GetOrExtendReservationResponse) - MergeFrom(*source); - } -} - -void GetOrExtendReservationResponse::MergeFrom(const GetOrExtendReservationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.GetOrExtendReservationResponse) - 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_reservation()) { - mutable_reservation()->::datacatalog::Reservation::MergeFrom(from.reservation()); - } -} - -void GetOrExtendReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.GetOrExtendReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetOrExtendReservationResponse::CopyFrom(const GetOrExtendReservationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.GetOrExtendReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetOrExtendReservationResponse::IsInitialized() const { - return true; -} - -void GetOrExtendReservationResponse::Swap(GetOrExtendReservationResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetOrExtendReservationResponse::InternalSwap(GetOrExtendReservationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(reservation_, other->reservation_); -} - -::google::protobuf::Metadata GetOrExtendReservationResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ReleaseReservationRequest::InitAsDefaultInstance() { - ::datacatalog::_ReleaseReservationRequest_default_instance_._instance.get_mutable()->reservation_id_ = const_cast< ::datacatalog::ReservationID*>( - ::datacatalog::ReservationID::internal_default_instance()); -} -class ReleaseReservationRequest::HasBitSetters { - public: - static const ::datacatalog::ReservationID& reservation_id(const ReleaseReservationRequest* msg); -}; - -const ::datacatalog::ReservationID& -ReleaseReservationRequest::HasBitSetters::reservation_id(const ReleaseReservationRequest* msg) { - return *msg->reservation_id_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ReleaseReservationRequest::kReservationIdFieldNumber; -const int ReleaseReservationRequest::kOwnerIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReleaseReservationRequest::ReleaseReservationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationRequest) -} -ReleaseReservationRequest::ReleaseReservationRequest(const ReleaseReservationRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.owner_id().size() > 0) { - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - reservation_id_ = new ::datacatalog::ReservationID(*from.reservation_id_); - } else { - reservation_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationRequest) -} - -void ReleaseReservationRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - owner_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reservation_id_ = nullptr; -} - -ReleaseReservationRequest::~ReleaseReservationRequest() { - // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationRequest) - SharedDtor(); -} - -void ReleaseReservationRequest::SharedDtor() { - owner_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete reservation_id_; -} - -void ReleaseReservationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReleaseReservationRequest& ReleaseReservationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationRequest_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ReleaseReservationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReleaseReservationRequest::_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) { - // .datacatalog.ReservationID reservation_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 = ::datacatalog::ReservationID::_InternalParse; - object = msg->mutable_reservation_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; - } - // string owner_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.ReleaseReservationRequest.owner_id"); - object = msg->mutable_owner_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReleaseReservationRequest::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:datacatalog.ReleaseReservationRequest) - 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)) { - // .datacatalog.ReservationID reservation_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reservation_id())); - } else { - goto handle_unusual; - } - break; - } - - // string owner_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_owner_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ReleaseReservationRequest.owner_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:datacatalog.ReleaseReservationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReleaseReservationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::reservation_id(this), output); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ReleaseReservationRequest.owner_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->owner_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ReleaseReservationRequest) -} - -::google::protobuf::uint8* ReleaseReservationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::reservation_id(this), target); - } - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->owner_id().data(), static_cast(this->owner_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ReleaseReservationRequest.owner_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->owner_id(), 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:datacatalog.ReleaseReservationRequest) - return target; -} - -size_t ReleaseReservationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationRequest) - 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; - - // string owner_id = 2; - if (this->owner_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->owner_id()); - } - - // .datacatalog.ReservationID reservation_id = 1; - if (this->has_reservation_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reservation_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReleaseReservationRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationRequest) - GOOGLE_DCHECK_NE(&from, this); - const ReleaseReservationRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReleaseReservationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReleaseReservationRequest) - MergeFrom(*source); - } -} - -void ReleaseReservationRequest::MergeFrom(const ReleaseReservationRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.owner_id().size() > 0) { - - owner_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.owner_id_); - } - if (from.has_reservation_id()) { - mutable_reservation_id()->::datacatalog::ReservationID::MergeFrom(from.reservation_id()); - } -} - -void ReleaseReservationRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReleaseReservationRequest::CopyFrom(const ReleaseReservationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReleaseReservationRequest::IsInitialized() const { - return true; -} - -void ReleaseReservationRequest::Swap(ReleaseReservationRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void ReleaseReservationRequest::InternalSwap(ReleaseReservationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - owner_id_.Swap(&other->owner_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(reservation_id_, other->reservation_id_); -} - -::google::protobuf::Metadata ReleaseReservationRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ReleaseReservationResponse::InitAsDefaultInstance() { -} -class ReleaseReservationResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ReleaseReservationResponse::ReleaseReservationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ReleaseReservationResponse) -} -ReleaseReservationResponse::ReleaseReservationResponse(const ReleaseReservationResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.ReleaseReservationResponse) -} - -void ReleaseReservationResponse::SharedCtor() { -} - -ReleaseReservationResponse::~ReleaseReservationResponse() { - // @@protoc_insertion_point(destructor:datacatalog.ReleaseReservationResponse) - SharedDtor(); -} - -void ReleaseReservationResponse::SharedDtor() { -} - -void ReleaseReservationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ReleaseReservationResponse& ReleaseReservationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ReleaseReservationResponse_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ReleaseReservationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ReleaseReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ReleaseReservationResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ReleaseReservationResponse::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:datacatalog.ReleaseReservationResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:datacatalog.ReleaseReservationResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ReleaseReservationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ReleaseReservationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ReleaseReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ReleaseReservationResponse) -} - -::google::protobuf::uint8* ReleaseReservationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ReleaseReservationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.ReleaseReservationResponse) - return target; -} - -size_t ReleaseReservationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ReleaseReservationResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ReleaseReservationResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ReleaseReservationResponse) - GOOGLE_DCHECK_NE(&from, this); - const ReleaseReservationResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ReleaseReservationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ReleaseReservationResponse) - MergeFrom(*source); - } -} - -void ReleaseReservationResponse::MergeFrom(const ReleaseReservationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ReleaseReservationResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void ReleaseReservationResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ReleaseReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ReleaseReservationResponse::CopyFrom(const ReleaseReservationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ReleaseReservationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ReleaseReservationResponse::IsInitialized() const { - return true; -} - -void ReleaseReservationResponse::Swap(ReleaseReservationResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void ReleaseReservationResponse::InternalSwap(ReleaseReservationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata ReleaseReservationResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Dataset::InitAsDefaultInstance() { - ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->id_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); - ::datacatalog::_Dataset_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( - ::datacatalog::Metadata::internal_default_instance()); -} -class Dataset::HasBitSetters { - public: - static const ::datacatalog::DatasetID& id(const Dataset* msg); - static const ::datacatalog::Metadata& metadata(const Dataset* msg); -}; - -const ::datacatalog::DatasetID& -Dataset::HasBitSetters::id(const Dataset* msg) { - return *msg->id_; -} -const ::datacatalog::Metadata& -Dataset::HasBitSetters::metadata(const Dataset* msg) { - return *msg->metadata_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Dataset::kIdFieldNumber; -const int Dataset::kMetadataFieldNumber; -const int Dataset::kPartitionKeysFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Dataset::Dataset() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Dataset) -} -Dataset::Dataset(const Dataset& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - partitionkeys_(from.partitionkeys_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::datacatalog::DatasetID(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::datacatalog::Metadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.Dataset) -} - -void Dataset::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&metadata_) - - reinterpret_cast(&id_)) + sizeof(metadata_)); -} - -Dataset::~Dataset() { - // @@protoc_insertion_point(destructor:datacatalog.Dataset) - SharedDtor(); -} - -void Dataset::SharedDtor() { - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete metadata_; -} - -void Dataset::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Dataset& Dataset::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Dataset_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Dataset::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Dataset) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - partitionkeys_.Clear(); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Dataset::_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) { - // .datacatalog.DatasetID 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 = ::datacatalog::DatasetID::_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; - } - // .datacatalog.Metadata metadata = 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 = ::datacatalog::Metadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // repeated string partitionKeys = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.Dataset.partitionKeys"); - object = msg->add_partitionkeys(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Dataset::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:datacatalog.Dataset) - 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)) { - // .datacatalog.DatasetID 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; - } - - // .datacatalog.Metadata metadata = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string partitionKeys = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_partitionkeys())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partitionkeys(this->partitionkeys_size() - 1).data(), - static_cast(this->partitionkeys(this->partitionkeys_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Dataset.partitionKeys")); - } 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:datacatalog.Dataset) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Dataset) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Dataset::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Dataset) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // .datacatalog.Metadata metadata = 2; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::metadata(this), output); - } - - // repeated string partitionKeys = 3; - for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Dataset.partitionKeys"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->partitionkeys(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Dataset) -} - -::google::protobuf::uint8* Dataset::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Dataset) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.DatasetID id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // .datacatalog.Metadata metadata = 2; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::metadata(this), target); - } - - // repeated string partitionKeys = 3; - for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->partitionkeys(i).data(), static_cast(this->partitionkeys(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Dataset.partitionKeys"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->partitionkeys(i), 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:datacatalog.Dataset) - return target; -} - -size_t Dataset::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Dataset) - 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; - - // repeated string partitionKeys = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->partitionkeys_size()); - for (int i = 0, n = this->partitionkeys_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->partitionkeys(i)); - } - - // .datacatalog.DatasetID id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .datacatalog.Metadata metadata = 2; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Dataset::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Dataset) - GOOGLE_DCHECK_NE(&from, this); - const Dataset* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Dataset) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Dataset) - MergeFrom(*source); - } -} - -void Dataset::MergeFrom(const Dataset& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Dataset) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - partitionkeys_.MergeFrom(from.partitionkeys_); - if (from.has_id()) { - mutable_id()->::datacatalog::DatasetID::MergeFrom(from.id()); - } - if (from.has_metadata()) { - mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); - } -} - -void Dataset::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Dataset) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Dataset::CopyFrom(const Dataset& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Dataset) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Dataset::IsInitialized() const { - return true; -} - -void Dataset::Swap(Dataset* other) { - if (other == this) return; - InternalSwap(other); -} -void Dataset::InternalSwap(Dataset* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - partitionkeys_.InternalSwap(CastToBase(&other->partitionkeys_)); - swap(id_, other->id_); - swap(metadata_, other->metadata_); -} - -::google::protobuf::Metadata Dataset::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Partition::InitAsDefaultInstance() { -} -class Partition::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Partition::kKeyFieldNumber; -const int Partition::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Partition::Partition() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Partition) -} -Partition::Partition(const Partition& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.Partition) -} - -void Partition::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -Partition::~Partition() { - // @@protoc_insertion_point(destructor:datacatalog.Partition) - SharedDtor(); -} - -void Partition::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void Partition::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Partition& Partition::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Partition_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Partition::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Partition) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Partition::_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) { - // string key = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Partition.key"); - object = msg->mutable_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string value = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Partition.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Partition::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:datacatalog.Partition) - 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)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Partition.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Partition.value")); - } 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:datacatalog.Partition) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Partition) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Partition::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Partition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Partition.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Partition.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Partition) -} - -::google::protobuf::uint8* Partition::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Partition) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Partition.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Partition.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), 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:datacatalog.Partition) - return target; -} - -size_t Partition::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Partition) - 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; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Partition::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Partition) - GOOGLE_DCHECK_NE(&from, this); - const Partition* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Partition) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Partition) - MergeFrom(*source); - } -} - -void Partition::MergeFrom(const Partition& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Partition) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void Partition::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Partition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Partition::CopyFrom(const Partition& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Partition) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Partition::IsInitialized() const { - return true; -} - -void Partition::Swap(Partition* other) { - if (other == this) return; - InternalSwap(other); -} -void Partition::InternalSwap(Partition* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata Partition::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DatasetID::InitAsDefaultInstance() { -} -class DatasetID::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DatasetID::kProjectFieldNumber; -const int DatasetID::kNameFieldNumber; -const int DatasetID::kDomainFieldNumber; -const int DatasetID::kVersionFieldNumber; -const int DatasetID::kUUIDFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DatasetID::DatasetID() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.DatasetID) -} -DatasetID::DatasetID(const DatasetID& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.version().size() > 0) { - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.uuid().size() > 0) { - uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetID) -} - -void DatasetID::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -DatasetID::~DatasetID() { - // @@protoc_insertion_point(destructor:datacatalog.DatasetID) - SharedDtor(); -} - -void DatasetID::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void DatasetID::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DatasetID& DatasetID::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DatasetID_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void DatasetID::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetID) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DatasetID::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string version = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string UUID = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetID.UUID"); - object = msg->mutable_uuid(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DatasetID::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:datacatalog.DatasetID) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetID.project")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetID.name")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetID.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string version = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetID.version")); - } else { - goto handle_unusual; - } - break; - } - - // string UUID = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_uuid())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uuid().data(), static_cast(this->uuid().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetID.UUID")); - } 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:datacatalog.DatasetID) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.DatasetID) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DatasetID::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.DatasetID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->domain(), output); - } - - // string version = 4; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->version(), output); - } - - // string UUID = 5; - if (this->uuid().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uuid().data(), static_cast(this->uuid().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.UUID"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->uuid(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.DatasetID) -} - -::google::protobuf::uint8* DatasetID::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetID) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // string domain = 3; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->domain(), target); - } - - // string version = 4; - if (this->version().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->version(), target); - } - - // string UUID = 5; - if (this->uuid().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->uuid().data(), static_cast(this->uuid().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetID.UUID"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->uuid(), 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:datacatalog.DatasetID) - return target; -} - -size_t DatasetID::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetID) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string domain = 3; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string version = 4; - if (this->version().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - } - - // string UUID = 5; - if (this->uuid().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->uuid()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DatasetID::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetID) - GOOGLE_DCHECK_NE(&from, this); - const DatasetID* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetID) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetID) - MergeFrom(*source); - } -} - -void DatasetID::MergeFrom(const DatasetID& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetID) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.version().size() > 0) { - - version_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.version_); - } - if (from.uuid().size() > 0) { - - uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); - } -} - -void DatasetID::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DatasetID::CopyFrom(const DatasetID& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetID) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DatasetID::IsInitialized() const { - return true; -} - -void DatasetID::Swap(DatasetID* other) { - if (other == this) return; - InternalSwap(other); -} -void DatasetID::InternalSwap(DatasetID* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - version_.Swap(&other->version_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata DatasetID::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Artifact::InitAsDefaultInstance() { - ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); - ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::datacatalog::Metadata*>( - ::datacatalog::Metadata::internal_default_instance()); - ::datacatalog::_Artifact_default_instance_._instance.get_mutable()->created_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class Artifact::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const Artifact* msg); - static const ::datacatalog::Metadata& metadata(const Artifact* msg); - static const ::google::protobuf::Timestamp& created_at(const Artifact* msg); -}; - -const ::datacatalog::DatasetID& -Artifact::HasBitSetters::dataset(const Artifact* msg) { - return *msg->dataset_; -} -const ::datacatalog::Metadata& -Artifact::HasBitSetters::metadata(const Artifact* msg) { - return *msg->metadata_; -} -const ::google::protobuf::Timestamp& -Artifact::HasBitSetters::created_at(const Artifact* msg) { - return *msg->created_at_; -} -void Artifact::clear_created_at() { - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Artifact::kIdFieldNumber; -const int Artifact::kDatasetFieldNumber; -const int Artifact::kDataFieldNumber; -const int Artifact::kMetadataFieldNumber; -const int Artifact::kPartitionsFieldNumber; -const int Artifact::kTagsFieldNumber; -const int Artifact::kCreatedAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Artifact::Artifact() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Artifact) -} -Artifact::Artifact(const Artifact& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - data_(from.data_), - partitions_(from.partitions_), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.id().size() > 0) { - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::datacatalog::Metadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_created_at()) { - created_at_ = new ::google::protobuf::Timestamp(*from.created_at_); - } else { - created_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.Artifact) -} - -void Artifact::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&dataset_, 0, static_cast( - reinterpret_cast(&created_at_) - - reinterpret_cast(&dataset_)) + sizeof(created_at_)); -} - -Artifact::~Artifact() { - // @@protoc_insertion_point(destructor:datacatalog.Artifact) - SharedDtor(); -} - -void Artifact::SharedDtor() { - id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete dataset_; - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete created_at_; -} - -void Artifact::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Artifact& Artifact::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Artifact_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Artifact::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - data_.Clear(); - partitions_.Clear(); - tags_.Clear(); - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && created_at_ != nullptr) { - delete created_at_; - } - created_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Artifact::_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) { - // string 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Artifact.id"); - object = msg->mutable_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .datacatalog.DatasetID dataset = 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 = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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; - } - // repeated .datacatalog.ArtifactData data = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::ArtifactData::_InternalParse; - object = msg->add_data(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // .datacatalog.Metadata metadata = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Metadata::_InternalParse; - object = msg->mutable_metadata(); - 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; - } - // repeated .datacatalog.Partition partitions = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Partition::_InternalParse; - object = msg->add_partitions(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // repeated .datacatalog.Tag tags = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::Tag::_InternalParse; - object = msg->add_tags(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - break; - } - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_created_at(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Artifact::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:datacatalog.Artifact) - 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)) { - // string id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Artifact.id")); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.DatasetID dataset = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .datacatalog.ArtifactData data = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_data())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.Metadata metadata = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .datacatalog.Partition partitions = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_partitions())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .datacatalog.Tag tags = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_tags())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp created_at = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_created_at())); - } 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:datacatalog.Artifact) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Artifact) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Artifact::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Artifact.id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->id(), output); - } - - // .datacatalog.DatasetID dataset = 2; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::dataset(this), output); - } - - // repeated .datacatalog.ArtifactData data = 3; - for (unsigned int i = 0, - n = static_cast(this->data_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->data(static_cast(i)), - output); - } - - // .datacatalog.Metadata metadata = 4; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::metadata(this), output); - } - - // repeated .datacatalog.Partition partitions = 5; - for (unsigned int i = 0, - n = static_cast(this->partitions_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->partitions(static_cast(i)), - output); - } - - // repeated .datacatalog.Tag tags = 6; - for (unsigned int i = 0, - n = static_cast(this->tags_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->tags(static_cast(i)), - output); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::created_at(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Artifact) -} - -::google::protobuf::uint8* Artifact::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Artifact) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string id = 1; - if (this->id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->id().data(), static_cast(this->id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Artifact.id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->id(), target); - } - - // .datacatalog.DatasetID dataset = 2; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::dataset(this), target); - } - - // repeated .datacatalog.ArtifactData data = 3; - for (unsigned int i = 0, - n = static_cast(this->data_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->data(static_cast(i)), target); - } - - // .datacatalog.Metadata metadata = 4; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::metadata(this), target); - } - - // repeated .datacatalog.Partition partitions = 5; - for (unsigned int i = 0, - n = static_cast(this->partitions_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->partitions(static_cast(i)), target); - } - - // repeated .datacatalog.Tag tags = 6; - for (unsigned int i = 0, - n = static_cast(this->tags_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->tags(static_cast(i)), target); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::created_at(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:datacatalog.Artifact) - return target; -} - -size_t Artifact::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Artifact) - 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; - - // repeated .datacatalog.ArtifactData data = 3; - { - unsigned int count = static_cast(this->data_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->data(static_cast(i))); - } - } - - // repeated .datacatalog.Partition partitions = 5; - { - unsigned int count = static_cast(this->partitions_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->partitions(static_cast(i))); - } - } - - // repeated .datacatalog.Tag tags = 6; - { - unsigned int count = static_cast(this->tags_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->tags(static_cast(i))); - } - } - - // string id = 1; - if (this->id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->id()); - } - - // .datacatalog.DatasetID dataset = 2; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - // .datacatalog.Metadata metadata = 4; - if (this->has_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .google.protobuf.Timestamp created_at = 7; - if (this->has_created_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *created_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Artifact::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Artifact) - GOOGLE_DCHECK_NE(&from, this); - const Artifact* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Artifact) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Artifact) - MergeFrom(*source); - } -} - -void Artifact::MergeFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Artifact) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - data_.MergeFrom(from.data_); - partitions_.MergeFrom(from.partitions_); - tags_.MergeFrom(from.tags_); - if (from.id().size() > 0) { - - id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_); - } - if (from.has_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } - if (from.has_metadata()) { - mutable_metadata()->::datacatalog::Metadata::MergeFrom(from.metadata()); - } - if (from.has_created_at()) { - mutable_created_at()->::google::protobuf::Timestamp::MergeFrom(from.created_at()); - } -} - -void Artifact::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Artifact) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Artifact::CopyFrom(const Artifact& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Artifact) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Artifact::IsInitialized() const { - return true; -} - -void Artifact::Swap(Artifact* other) { - if (other == this) return; - InternalSwap(other); -} -void Artifact::InternalSwap(Artifact* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&data_)->InternalSwap(CastToBase(&other->data_)); - CastToBase(&partitions_)->InternalSwap(CastToBase(&other->partitions_)); - CastToBase(&tags_)->InternalSwap(CastToBase(&other->tags_)); - id_.Swap(&other->id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dataset_, other->dataset_); - swap(metadata_, other->metadata_); - swap(created_at_, other->created_at_); -} - -::google::protobuf::Metadata Artifact::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactData::InitAsDefaultInstance() { - ::datacatalog::_ArtifactData_default_instance_._instance.get_mutable()->value_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); -} -class ArtifactData::HasBitSetters { - public: - static const ::flyteidl::core::Literal& value(const ArtifactData* msg); -}; - -const ::flyteidl::core::Literal& -ArtifactData::HasBitSetters::value(const ArtifactData* msg) { - return *msg->value_; -} -void ArtifactData::clear_value() { - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactData::kNameFieldNumber; -const int ArtifactData::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactData::ArtifactData() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ArtifactData) -} -ArtifactData::ArtifactData(const ArtifactData& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_value()) { - value_ = new ::flyteidl::core::Literal(*from.value_); - } else { - value_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactData) -} - -void ArtifactData::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_ = nullptr; -} - -ArtifactData::~ArtifactData() { - // @@protoc_insertion_point(destructor:datacatalog.ArtifactData) - SharedDtor(); -} - -void ArtifactData::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete value_; -} - -void ArtifactData::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactData& ArtifactData::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactData_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactData::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactData) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && value_ != nullptr) { - delete value_; - } - value_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactData::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactData.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Literal value = 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::core::Literal::_InternalParse; - object = msg->mutable_value(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactData::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:datacatalog.ArtifactData) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ArtifactData.name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Literal value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_value())); - } 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:datacatalog.ArtifactData) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactData) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactData::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ArtifactData.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::value(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactData) -} - -::google::protobuf::uint8* ArtifactData::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactData) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ArtifactData.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::value(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:datacatalog.ArtifactData) - return target; -} - -size_t ArtifactData::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactData) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // .flyteidl.core.Literal value = 2; - if (this->has_value()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *value_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactData::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactData) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactData* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactData) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactData) - MergeFrom(*source); - } -} - -void ArtifactData::MergeFrom(const ArtifactData& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactData) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.has_value()) { - mutable_value()->::flyteidl::core::Literal::MergeFrom(from.value()); - } -} - -void ArtifactData::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactData::CopyFrom(const ArtifactData& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactData) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactData::IsInitialized() const { - return true; -} - -void ArtifactData::Swap(ArtifactData* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactData::InternalSwap(ArtifactData* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(value_, other->value_); -} - -::google::protobuf::Metadata ArtifactData::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void Tag::InitAsDefaultInstance() { - ::datacatalog::_Tag_default_instance_._instance.get_mutable()->dataset_ = const_cast< ::datacatalog::DatasetID*>( - ::datacatalog::DatasetID::internal_default_instance()); -} -class Tag::HasBitSetters { - public: - static const ::datacatalog::DatasetID& dataset(const Tag* msg); -}; - -const ::datacatalog::DatasetID& -Tag::HasBitSetters::dataset(const Tag* msg) { - return *msg->dataset_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Tag::kNameFieldNumber; -const int Tag::kArtifactIdFieldNumber; -const int Tag::kDatasetFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Tag::Tag() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Tag) -} -Tag::Tag(const Tag& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.artifact_id().size() > 0) { - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } - if (from.has_dataset()) { - dataset_ = new ::datacatalog::DatasetID(*from.dataset_); - } else { - dataset_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:datacatalog.Tag) -} - -void Tag::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - dataset_ = nullptr; -} - -Tag::~Tag() { - // @@protoc_insertion_point(destructor:datacatalog.Tag) - SharedDtor(); -} - -void Tag::SharedDtor() { - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete dataset_; -} - -void Tag::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Tag& Tag::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Tag_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Tag::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Tag) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Tag::_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) { - // string name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Tag.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string artifact_id = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.Tag.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .datacatalog.DatasetID dataset = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::DatasetID::_InternalParse; - object = msg->mutable_dataset(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Tag::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:datacatalog.Tag) - 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)) { - // string name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Tag.name")); - } else { - goto handle_unusual; - } - break; - } - - // string artifact_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Tag.artifact_id")); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.DatasetID dataset = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset())); - } 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:datacatalog.Tag) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Tag) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Tag::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Tag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Tag.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->name(), output); - } - - // string artifact_id = 2; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Tag.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->artifact_id(), output); - } - - // .datacatalog.DatasetID dataset = 3; - if (this->has_dataset()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::dataset(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Tag) -} - -::google::protobuf::uint8* Tag::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Tag) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string name = 1; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Tag.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->name(), target); - } - - // string artifact_id = 2; - if (this->artifact_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Tag.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->artifact_id(), target); - } - - // .datacatalog.DatasetID dataset = 3; - if (this->has_dataset()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::dataset(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:datacatalog.Tag) - return target; -} - -size_t Tag::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Tag) - 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; - - // string name = 1; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string artifact_id = 2; - if (this->artifact_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - } - - // .datacatalog.DatasetID dataset = 3; - if (this->has_dataset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dataset_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Tag::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Tag) - GOOGLE_DCHECK_NE(&from, this); - const Tag* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Tag) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Tag) - MergeFrom(*source); - } -} - -void Tag::MergeFrom(const Tag& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Tag) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.artifact_id().size() > 0) { - - artifact_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.artifact_id_); - } - if (from.has_dataset()) { - mutable_dataset()->::datacatalog::DatasetID::MergeFrom(from.dataset()); - } -} - -void Tag::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Tag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Tag::CopyFrom(const Tag& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Tag) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Tag::IsInitialized() const { - return true; -} - -void Tag::Swap(Tag* other) { - if (other == this) return; - InternalSwap(other); -} -void Tag::InternalSwap(Tag* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - artifact_id_.Swap(&other->artifact_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(dataset_, other->dataset_); -} - -::google::protobuf::Metadata Tag::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse() {} -Metadata_KeyMapEntry_DoNotUse::Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void Metadata_KeyMapEntry_DoNotUse::MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata Metadata_KeyMapEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[28]; -} -void Metadata_KeyMapEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Metadata_KeyMapEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - Metadata_KeyMapEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Metadata.KeyMapEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Metadata.KeyMapEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void Metadata::InitAsDefaultInstance() { -} -class Metadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Metadata::kKeyMapFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Metadata::Metadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.Metadata) -} -Metadata::Metadata(const Metadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_map_.MergeFrom(from.key_map_); - // @@protoc_insertion_point(copy_constructor:datacatalog.Metadata) -} - -void Metadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -Metadata::~Metadata() { - // @@protoc_insertion_point(destructor:datacatalog.Metadata) - SharedDtor(); -} - -void Metadata::SharedDtor() { -} - -void Metadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Metadata& Metadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void Metadata::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.Metadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_map_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Metadata::_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) { - // map key_map = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::datacatalog::Metadata_KeyMapEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->key_map_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 Metadata::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:datacatalog.Metadata) - 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)) { - // map key_map = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - Metadata_KeyMapEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - Metadata_KeyMapEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&key_map_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Metadata.KeyMapEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.Metadata.KeyMapEntry.value")); - } 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:datacatalog.Metadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.Metadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Metadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.Metadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map key_map = 1; - if (!this->key_map().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Metadata.KeyMapEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Metadata.KeyMapEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->key_map().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->key_map().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->key_map().begin(); - it != this->key_map().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->key_map().begin(); - it != this->key_map().end(); ++it) { - entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.Metadata) -} - -::google::protobuf::uint8* Metadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.Metadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map key_map = 1; - if (!this->key_map().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Metadata.KeyMapEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.Metadata.KeyMapEntry.value"); - } - }; - - if (false && - this->key_map().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->key_map().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->key_map().begin(); - it != this->key_map().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(key_map_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->key_map().begin(); - it != this->key_map().end(); ++it) { - entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields(), target); - } - // @@protoc_insertion_point(serialize_to_array_end:datacatalog.Metadata) - return target; -} - -size_t Metadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.Metadata) - 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; - - // map key_map = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->key_map_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->key_map().begin(); - it != this->key_map().end(); ++it) { - entry.reset(key_map_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Metadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.Metadata) - GOOGLE_DCHECK_NE(&from, this); - const Metadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.Metadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.Metadata) - MergeFrom(*source); - } -} - -void Metadata::MergeFrom(const Metadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.Metadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - key_map_.MergeFrom(from.key_map_); -} - -void Metadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.Metadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Metadata::CopyFrom(const Metadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.Metadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Metadata::IsInitialized() const { - return true; -} - -void Metadata::Swap(Metadata* other) { - if (other == this) return; - InternalSwap(other); -} -void Metadata::InternalSwap(Metadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_map_.Swap(&other->key_map_); -} - -::google::protobuf::Metadata Metadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void FilterExpression::InitAsDefaultInstance() { -} -class FilterExpression::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int FilterExpression::kFiltersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -FilterExpression::FilterExpression() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.FilterExpression) -} -FilterExpression::FilterExpression(const FilterExpression& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - filters_(from.filters_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:datacatalog.FilterExpression) -} - -void FilterExpression::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); -} - -FilterExpression::~FilterExpression() { - // @@protoc_insertion_point(destructor:datacatalog.FilterExpression) - SharedDtor(); -} - -void FilterExpression::SharedDtor() { -} - -void FilterExpression::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const FilterExpression& FilterExpression::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_FilterExpression_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void FilterExpression::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.FilterExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - filters_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* FilterExpression::_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) { - // repeated .datacatalog.SinglePropertyFilter filters = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::SinglePropertyFilter::_InternalParse; - object = msg->add_filters(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 FilterExpression::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:datacatalog.FilterExpression) - 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)) { - // repeated .datacatalog.SinglePropertyFilter filters = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_filters())); - } 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:datacatalog.FilterExpression) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.FilterExpression) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void FilterExpression::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.FilterExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.SinglePropertyFilter filters = 1; - for (unsigned int i = 0, - n = static_cast(this->filters_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, - this->filters(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.FilterExpression) -} - -::google::protobuf::uint8* FilterExpression::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.FilterExpression) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .datacatalog.SinglePropertyFilter filters = 1; - for (unsigned int i = 0, - n = static_cast(this->filters_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, this->filters(static_cast(i)), 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:datacatalog.FilterExpression) - return target; -} - -size_t FilterExpression::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.FilterExpression) - 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; - - // repeated .datacatalog.SinglePropertyFilter filters = 1; - { - unsigned int count = static_cast(this->filters_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->filters(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void FilterExpression::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.FilterExpression) - GOOGLE_DCHECK_NE(&from, this); - const FilterExpression* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.FilterExpression) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.FilterExpression) - MergeFrom(*source); - } -} - -void FilterExpression::MergeFrom(const FilterExpression& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.FilterExpression) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - filters_.MergeFrom(from.filters_); -} - -void FilterExpression::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.FilterExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void FilterExpression::CopyFrom(const FilterExpression& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.FilterExpression) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool FilterExpression::IsInitialized() const { - return true; -} - -void FilterExpression::Swap(FilterExpression* other) { - if (other == this) return; - InternalSwap(other); -} -void FilterExpression::InternalSwap(FilterExpression* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&filters_)->InternalSwap(CastToBase(&other->filters_)); -} - -::google::protobuf::Metadata FilterExpression::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void SinglePropertyFilter::InitAsDefaultInstance() { - ::datacatalog::_SinglePropertyFilter_default_instance_.tag_filter_ = const_cast< ::datacatalog::TagPropertyFilter*>( - ::datacatalog::TagPropertyFilter::internal_default_instance()); - ::datacatalog::_SinglePropertyFilter_default_instance_.partition_filter_ = const_cast< ::datacatalog::PartitionPropertyFilter*>( - ::datacatalog::PartitionPropertyFilter::internal_default_instance()); - ::datacatalog::_SinglePropertyFilter_default_instance_.artifact_filter_ = const_cast< ::datacatalog::ArtifactPropertyFilter*>( - ::datacatalog::ArtifactPropertyFilter::internal_default_instance()); - ::datacatalog::_SinglePropertyFilter_default_instance_.dataset_filter_ = const_cast< ::datacatalog::DatasetPropertyFilter*>( - ::datacatalog::DatasetPropertyFilter::internal_default_instance()); -} -class SinglePropertyFilter::HasBitSetters { - public: - static const ::datacatalog::TagPropertyFilter& tag_filter(const SinglePropertyFilter* msg); - static const ::datacatalog::PartitionPropertyFilter& partition_filter(const SinglePropertyFilter* msg); - static const ::datacatalog::ArtifactPropertyFilter& artifact_filter(const SinglePropertyFilter* msg); - static const ::datacatalog::DatasetPropertyFilter& dataset_filter(const SinglePropertyFilter* msg); -}; - -const ::datacatalog::TagPropertyFilter& -SinglePropertyFilter::HasBitSetters::tag_filter(const SinglePropertyFilter* msg) { - return *msg->property_filter_.tag_filter_; -} -const ::datacatalog::PartitionPropertyFilter& -SinglePropertyFilter::HasBitSetters::partition_filter(const SinglePropertyFilter* msg) { - return *msg->property_filter_.partition_filter_; -} -const ::datacatalog::ArtifactPropertyFilter& -SinglePropertyFilter::HasBitSetters::artifact_filter(const SinglePropertyFilter* msg) { - return *msg->property_filter_.artifact_filter_; -} -const ::datacatalog::DatasetPropertyFilter& -SinglePropertyFilter::HasBitSetters::dataset_filter(const SinglePropertyFilter* msg) { - return *msg->property_filter_.dataset_filter_; -} -void SinglePropertyFilter::set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_property_filter(); - if (tag_filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - tag_filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tag_filter, submessage_arena); - } - set_has_tag_filter(); - property_filter_.tag_filter_ = tag_filter; - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.tag_filter) -} -void SinglePropertyFilter::set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_property_filter(); - if (partition_filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - partition_filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, partition_filter, submessage_arena); - } - set_has_partition_filter(); - property_filter_.partition_filter_ = partition_filter; - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.partition_filter) -} -void SinglePropertyFilter::set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_property_filter(); - if (artifact_filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact_filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact_filter, submessage_arena); - } - set_has_artifact_filter(); - property_filter_.artifact_filter_ = artifact_filter; - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.artifact_filter) -} -void SinglePropertyFilter::set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_property_filter(); - if (dataset_filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset_filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset_filter, submessage_arena); - } - set_has_dataset_filter(); - property_filter_.dataset_filter_ = dataset_filter; - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.SinglePropertyFilter.dataset_filter) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SinglePropertyFilter::kTagFilterFieldNumber; -const int SinglePropertyFilter::kPartitionFilterFieldNumber; -const int SinglePropertyFilter::kArtifactFilterFieldNumber; -const int SinglePropertyFilter::kDatasetFilterFieldNumber; -const int SinglePropertyFilter::kOperatorFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SinglePropertyFilter::SinglePropertyFilter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.SinglePropertyFilter) -} -SinglePropertyFilter::SinglePropertyFilter(const SinglePropertyFilter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - operator__ = from.operator__; - clear_has_property_filter(); - switch (from.property_filter_case()) { - case kTagFilter: { - mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); - break; - } - case kPartitionFilter: { - mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); - break; - } - case kArtifactFilter: { - mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); - break; - } - case kDatasetFilter: { - mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); - break; - } - case PROPERTY_FILTER_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.SinglePropertyFilter) -} - -void SinglePropertyFilter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - operator__ = 0; - clear_has_property_filter(); -} - -SinglePropertyFilter::~SinglePropertyFilter() { - // @@protoc_insertion_point(destructor:datacatalog.SinglePropertyFilter) - SharedDtor(); -} - -void SinglePropertyFilter::SharedDtor() { - if (has_property_filter()) { - clear_property_filter(); - } -} - -void SinglePropertyFilter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SinglePropertyFilter& SinglePropertyFilter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SinglePropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void SinglePropertyFilter::clear_property_filter() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.SinglePropertyFilter) - switch (property_filter_case()) { - case kTagFilter: { - delete property_filter_.tag_filter_; - break; - } - case kPartitionFilter: { - delete property_filter_.partition_filter_; - break; - } - case kArtifactFilter: { - delete property_filter_.artifact_filter_; - break; - } - case kDatasetFilter: { - delete property_filter_.dataset_filter_; - break; - } - case PROPERTY_FILTER_NOT_SET: { - break; - } - } - _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; -} - - -void SinglePropertyFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.SinglePropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - operator__ = 0; - clear_property_filter(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SinglePropertyFilter::_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) { - // .datacatalog.TagPropertyFilter tag_filter = 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 = ::datacatalog::TagPropertyFilter::_InternalParse; - object = msg->mutable_tag_filter(); - 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; - } - // .datacatalog.PartitionPropertyFilter partition_filter = 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 = ::datacatalog::PartitionPropertyFilter::_InternalParse; - object = msg->mutable_partition_filter(); - 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; - } - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::ArtifactPropertyFilter::_InternalParse; - object = msg->mutable_artifact_filter(); - 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; - } - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::datacatalog::DatasetPropertyFilter::_InternalParse; - object = msg->mutable_dataset_filter(); - 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; - } - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 80) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_operator_(static_cast<::datacatalog::SinglePropertyFilter_ComparisonOperator>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 SinglePropertyFilter::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:datacatalog.SinglePropertyFilter) - 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)) { - // .datacatalog.TagPropertyFilter tag_filter = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_tag_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_partition_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_artifact_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dataset_filter())); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (80 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_operator_(static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(value)); - } 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:datacatalog.SinglePropertyFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.SinglePropertyFilter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SinglePropertyFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.SinglePropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.TagPropertyFilter tag_filter = 1; - if (has_tag_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::tag_filter(this), output); - } - - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - if (has_partition_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::partition_filter(this), output); - } - - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - if (has_artifact_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::artifact_filter(this), output); - } - - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - if (has_dataset_filter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::dataset_filter(this), output); - } - - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - if (this->operator_() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 10, this->operator_(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.SinglePropertyFilter) -} - -::google::protobuf::uint8* SinglePropertyFilter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.SinglePropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.TagPropertyFilter tag_filter = 1; - if (has_tag_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::tag_filter(this), target); - } - - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - if (has_partition_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::partition_filter(this), target); - } - - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - if (has_artifact_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::artifact_filter(this), target); - } - - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - if (has_dataset_filter()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::dataset_filter(this), target); - } - - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - if (this->operator_() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 10, this->operator_(), 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:datacatalog.SinglePropertyFilter) - return target; -} - -size_t SinglePropertyFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.SinglePropertyFilter) - 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; - - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - if (this->operator_() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->operator_()); - } - - switch (property_filter_case()) { - // .datacatalog.TagPropertyFilter tag_filter = 1; - case kTagFilter: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *property_filter_.tag_filter_); - break; - } - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - case kPartitionFilter: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *property_filter_.partition_filter_); - break; - } - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - case kArtifactFilter: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *property_filter_.artifact_filter_); - break; - } - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - case kDatasetFilter: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *property_filter_.dataset_filter_); - break; - } - case PROPERTY_FILTER_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SinglePropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.SinglePropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - const SinglePropertyFilter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.SinglePropertyFilter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.SinglePropertyFilter) - MergeFrom(*source); - } -} - -void SinglePropertyFilter::MergeFrom(const SinglePropertyFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.SinglePropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.operator_() != 0) { - set_operator_(from.operator_()); - } - switch (from.property_filter_case()) { - case kTagFilter: { - mutable_tag_filter()->::datacatalog::TagPropertyFilter::MergeFrom(from.tag_filter()); - break; - } - case kPartitionFilter: { - mutable_partition_filter()->::datacatalog::PartitionPropertyFilter::MergeFrom(from.partition_filter()); - break; - } - case kArtifactFilter: { - mutable_artifact_filter()->::datacatalog::ArtifactPropertyFilter::MergeFrom(from.artifact_filter()); - break; - } - case kDatasetFilter: { - mutable_dataset_filter()->::datacatalog::DatasetPropertyFilter::MergeFrom(from.dataset_filter()); - break; - } - case PROPERTY_FILTER_NOT_SET: { - break; - } - } -} - -void SinglePropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.SinglePropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SinglePropertyFilter::CopyFrom(const SinglePropertyFilter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.SinglePropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SinglePropertyFilter::IsInitialized() const { - return true; -} - -void SinglePropertyFilter::Swap(SinglePropertyFilter* other) { - if (other == this) return; - InternalSwap(other); -} -void SinglePropertyFilter::InternalSwap(SinglePropertyFilter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(operator__, other->operator__); - swap(property_filter_, other->property_filter_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata SinglePropertyFilter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ArtifactPropertyFilter::InitAsDefaultInstance() { - ::datacatalog::_ArtifactPropertyFilter_default_instance_.artifact_id_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class ArtifactPropertyFilter::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArtifactPropertyFilter::kArtifactIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArtifactPropertyFilter::ArtifactPropertyFilter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.ArtifactPropertyFilter) -} -ArtifactPropertyFilter::ArtifactPropertyFilter(const ArtifactPropertyFilter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_property(); - switch (from.property_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.ArtifactPropertyFilter) -} - -void ArtifactPropertyFilter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_property(); -} - -ArtifactPropertyFilter::~ArtifactPropertyFilter() { - // @@protoc_insertion_point(destructor:datacatalog.ArtifactPropertyFilter) - SharedDtor(); -} - -void ArtifactPropertyFilter::SharedDtor() { - if (has_property()) { - clear_property(); - } -} - -void ArtifactPropertyFilter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArtifactPropertyFilter& ArtifactPropertyFilter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArtifactPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void ArtifactPropertyFilter::clear_property() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.ArtifactPropertyFilter) - switch (property_case()) { - case kArtifactId: { - property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - _oneof_case_[0] = PROPERTY_NOT_SET; -} - - -void ArtifactPropertyFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.ArtifactPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_property(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArtifactPropertyFilter::_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) { - // string artifact_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); - ctx->extra_parse_data().SetFieldName("datacatalog.ArtifactPropertyFilter.artifact_id"); - object = msg->mutable_artifact_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArtifactPropertyFilter::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:datacatalog.ArtifactPropertyFilter) - 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)) { - // string artifact_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_artifact_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.ArtifactPropertyFilter.artifact_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:datacatalog.ArtifactPropertyFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.ArtifactPropertyFilter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArtifactPropertyFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.ArtifactPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ArtifactPropertyFilter.artifact_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->artifact_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.ArtifactPropertyFilter) -} - -::google::protobuf::uint8* ArtifactPropertyFilter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.ArtifactPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string artifact_id = 1; - if (has_artifact_id()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_id().data(), static_cast(this->artifact_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.ArtifactPropertyFilter.artifact_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->artifact_id(), 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:datacatalog.ArtifactPropertyFilter) - return target; -} - -size_t ArtifactPropertyFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.ArtifactPropertyFilter) - 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 (property_case()) { - // string artifact_id = 1; - case kArtifactId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_id()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArtifactPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.ArtifactPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - const ArtifactPropertyFilter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.ArtifactPropertyFilter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.ArtifactPropertyFilter) - MergeFrom(*source); - } -} - -void ArtifactPropertyFilter::MergeFrom(const ArtifactPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.ArtifactPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.property_case()) { - case kArtifactId: { - set_artifact_id(from.artifact_id()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } -} - -void ArtifactPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.ArtifactPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArtifactPropertyFilter::CopyFrom(const ArtifactPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.ArtifactPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArtifactPropertyFilter::IsInitialized() const { - return true; -} - -void ArtifactPropertyFilter::Swap(ArtifactPropertyFilter* other) { - if (other == this) return; - InternalSwap(other); -} -void ArtifactPropertyFilter::InternalSwap(ArtifactPropertyFilter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(property_, other->property_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ArtifactPropertyFilter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TagPropertyFilter::InitAsDefaultInstance() { - ::datacatalog::_TagPropertyFilter_default_instance_.tag_name_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class TagPropertyFilter::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TagPropertyFilter::kTagNameFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TagPropertyFilter::TagPropertyFilter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.TagPropertyFilter) -} -TagPropertyFilter::TagPropertyFilter(const TagPropertyFilter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_property(); - switch (from.property_case()) { - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.TagPropertyFilter) -} - -void TagPropertyFilter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_property(); -} - -TagPropertyFilter::~TagPropertyFilter() { - // @@protoc_insertion_point(destructor:datacatalog.TagPropertyFilter) - SharedDtor(); -} - -void TagPropertyFilter::SharedDtor() { - if (has_property()) { - clear_property(); - } -} - -void TagPropertyFilter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TagPropertyFilter& TagPropertyFilter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TagPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void TagPropertyFilter::clear_property() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.TagPropertyFilter) - switch (property_case()) { - case kTagName: { - property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - _oneof_case_[0] = PROPERTY_NOT_SET; -} - - -void TagPropertyFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.TagPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_property(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TagPropertyFilter::_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) { - // string tag_name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.TagPropertyFilter.tag_name"); - object = msg->mutable_tag_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TagPropertyFilter::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:datacatalog.TagPropertyFilter) - 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)) { - // string tag_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_tag_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.TagPropertyFilter.tag_name")); - } 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:datacatalog.TagPropertyFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.TagPropertyFilter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TagPropertyFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.TagPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag_name = 1; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.TagPropertyFilter.tag_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->tag_name(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.TagPropertyFilter) -} - -::google::protobuf::uint8* TagPropertyFilter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.TagPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string tag_name = 1; - if (has_tag_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tag_name().data(), static_cast(this->tag_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.TagPropertyFilter.tag_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->tag_name(), 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:datacatalog.TagPropertyFilter) - return target; -} - -size_t TagPropertyFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.TagPropertyFilter) - 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 (property_case()) { - // string tag_name = 1; - case kTagName: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->tag_name()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TagPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.TagPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - const TagPropertyFilter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.TagPropertyFilter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.TagPropertyFilter) - MergeFrom(*source); - } -} - -void TagPropertyFilter::MergeFrom(const TagPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.TagPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.property_case()) { - case kTagName: { - set_tag_name(from.tag_name()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } -} - -void TagPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.TagPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TagPropertyFilter::CopyFrom(const TagPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.TagPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TagPropertyFilter::IsInitialized() const { - return true; -} - -void TagPropertyFilter::Swap(TagPropertyFilter* other) { - if (other == this) return; - InternalSwap(other); -} -void TagPropertyFilter::InternalSwap(TagPropertyFilter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(property_, other->property_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata TagPropertyFilter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PartitionPropertyFilter::InitAsDefaultInstance() { - ::datacatalog::_PartitionPropertyFilter_default_instance_.key_val_ = const_cast< ::datacatalog::KeyValuePair*>( - ::datacatalog::KeyValuePair::internal_default_instance()); -} -class PartitionPropertyFilter::HasBitSetters { - public: - static const ::datacatalog::KeyValuePair& key_val(const PartitionPropertyFilter* msg); -}; - -const ::datacatalog::KeyValuePair& -PartitionPropertyFilter::HasBitSetters::key_val(const PartitionPropertyFilter* msg) { - return *msg->property_.key_val_; -} -void PartitionPropertyFilter::set_allocated_key_val(::datacatalog::KeyValuePair* key_val) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_property(); - if (key_val) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - key_val = ::google::protobuf::internal::GetOwnedMessage( - message_arena, key_val, submessage_arena); - } - set_has_key_val(); - property_.key_val_ = key_val; - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.PartitionPropertyFilter.key_val) -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PartitionPropertyFilter::kKeyValFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PartitionPropertyFilter::PartitionPropertyFilter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.PartitionPropertyFilter) -} -PartitionPropertyFilter::PartitionPropertyFilter(const PartitionPropertyFilter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_property(); - switch (from.property_case()) { - case kKeyVal: { - mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.PartitionPropertyFilter) -} - -void PartitionPropertyFilter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_property(); -} - -PartitionPropertyFilter::~PartitionPropertyFilter() { - // @@protoc_insertion_point(destructor:datacatalog.PartitionPropertyFilter) - SharedDtor(); -} - -void PartitionPropertyFilter::SharedDtor() { - if (has_property()) { - clear_property(); - } -} - -void PartitionPropertyFilter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PartitionPropertyFilter& PartitionPropertyFilter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PartitionPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void PartitionPropertyFilter::clear_property() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.PartitionPropertyFilter) - switch (property_case()) { - case kKeyVal: { - delete property_.key_val_; - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - _oneof_case_[0] = PROPERTY_NOT_SET; -} - - -void PartitionPropertyFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.PartitionPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_property(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PartitionPropertyFilter::_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) { - // .datacatalog.KeyValuePair key_val = 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 = ::datacatalog::KeyValuePair::_InternalParse; - object = msg->mutable_key_val(); - 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 PartitionPropertyFilter::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:datacatalog.PartitionPropertyFilter) - 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)) { - // .datacatalog.KeyValuePair key_val = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_key_val())); - } 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:datacatalog.PartitionPropertyFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.PartitionPropertyFilter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PartitionPropertyFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.PartitionPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.KeyValuePair key_val = 1; - if (has_key_val()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::key_val(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.PartitionPropertyFilter) -} - -::google::protobuf::uint8* PartitionPropertyFilter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PartitionPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .datacatalog.KeyValuePair key_val = 1; - if (has_key_val()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::key_val(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:datacatalog.PartitionPropertyFilter) - return target; -} - -size_t PartitionPropertyFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.PartitionPropertyFilter) - 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 (property_case()) { - // .datacatalog.KeyValuePair key_val = 1; - case kKeyVal: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *property_.key_val_); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PartitionPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PartitionPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - const PartitionPropertyFilter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PartitionPropertyFilter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PartitionPropertyFilter) - MergeFrom(*source); - } -} - -void PartitionPropertyFilter::MergeFrom(const PartitionPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PartitionPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.property_case()) { - case kKeyVal: { - mutable_key_val()->::datacatalog::KeyValuePair::MergeFrom(from.key_val()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } -} - -void PartitionPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PartitionPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PartitionPropertyFilter::CopyFrom(const PartitionPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PartitionPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PartitionPropertyFilter::IsInitialized() const { - return true; -} - -void PartitionPropertyFilter::Swap(PartitionPropertyFilter* other) { - if (other == this) return; - InternalSwap(other); -} -void PartitionPropertyFilter::InternalSwap(PartitionPropertyFilter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(property_, other->property_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata PartitionPropertyFilter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void KeyValuePair::InitAsDefaultInstance() { -} -class KeyValuePair::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int KeyValuePair::kKeyFieldNumber; -const int KeyValuePair::kValueFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -KeyValuePair::KeyValuePair() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.KeyValuePair) -} -KeyValuePair::KeyValuePair(const KeyValuePair& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.key().size() > 0) { - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.value().size() > 0) { - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } - // @@protoc_insertion_point(copy_constructor:datacatalog.KeyValuePair) -} - -void KeyValuePair::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -KeyValuePair::~KeyValuePair() { - // @@protoc_insertion_point(destructor:datacatalog.KeyValuePair) - SharedDtor(); -} - -void KeyValuePair::SharedDtor() { - key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void KeyValuePair::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const KeyValuePair& KeyValuePair::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_KeyValuePair_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void KeyValuePair::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* KeyValuePair::_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) { - // string key = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.KeyValuePair.key"); - object = msg->mutable_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string value = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.KeyValuePair.value"); - object = msg->mutable_value(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool KeyValuePair::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:datacatalog.KeyValuePair) - 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)) { - // string key = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.KeyValuePair.key")); - } else { - goto handle_unusual; - } - break; - } - - // string value = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_value())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.KeyValuePair.value")); - } 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:datacatalog.KeyValuePair) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.KeyValuePair) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void KeyValuePair::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.KeyValuePair.key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->key(), output); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.KeyValuePair.value"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->value(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.KeyValuePair) -} - -::google::protobuf::uint8* KeyValuePair::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.KeyValuePair) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string key = 1; - if (this->key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->key().data(), static_cast(this->key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.KeyValuePair.key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->key(), target); - } - - // string value = 2; - if (this->value().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->value().data(), static_cast(this->value().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.KeyValuePair.value"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->value(), 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:datacatalog.KeyValuePair) - return target; -} - -size_t KeyValuePair::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.KeyValuePair) - 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; - - // string key = 1; - if (this->key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->key()); - } - - // string value = 2; - if (this->value().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->value()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void KeyValuePair::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - const KeyValuePair* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.KeyValuePair) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.KeyValuePair) - MergeFrom(*source); - } -} - -void KeyValuePair::MergeFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.KeyValuePair) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.key().size() > 0) { - - key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); - } - if (from.value().size() > 0) { - - value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); - } -} - -void KeyValuePair::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void KeyValuePair::CopyFrom(const KeyValuePair& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.KeyValuePair) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool KeyValuePair::IsInitialized() const { - return true; -} - -void KeyValuePair::Swap(KeyValuePair* other) { - if (other == this) return; - InternalSwap(other); -} -void KeyValuePair::InternalSwap(KeyValuePair* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata KeyValuePair::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DatasetPropertyFilter::InitAsDefaultInstance() { - ::datacatalog::_DatasetPropertyFilter_default_instance_.project_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_DatasetPropertyFilter_default_instance_.name_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_DatasetPropertyFilter_default_instance_.domain_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::datacatalog::_DatasetPropertyFilter_default_instance_.version_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -class DatasetPropertyFilter::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DatasetPropertyFilter::kProjectFieldNumber; -const int DatasetPropertyFilter::kNameFieldNumber; -const int DatasetPropertyFilter::kDomainFieldNumber; -const int DatasetPropertyFilter::kVersionFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DatasetPropertyFilter::DatasetPropertyFilter() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.DatasetPropertyFilter) -} -DatasetPropertyFilter::DatasetPropertyFilter(const DatasetPropertyFilter& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_property(); - switch (from.property_case()) { - case kProject: { - set_project(from.project()); - break; - } - case kName: { - set_name(from.name()); - break; - } - case kDomain: { - set_domain(from.domain()); - break; - } - case kVersion: { - set_version(from.version()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:datacatalog.DatasetPropertyFilter) -} - -void DatasetPropertyFilter::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - clear_has_property(); -} - -DatasetPropertyFilter::~DatasetPropertyFilter() { - // @@protoc_insertion_point(destructor:datacatalog.DatasetPropertyFilter) - SharedDtor(); -} - -void DatasetPropertyFilter::SharedDtor() { - if (has_property()) { - clear_property(); - } -} - -void DatasetPropertyFilter::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DatasetPropertyFilter& DatasetPropertyFilter::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DatasetPropertyFilter_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void DatasetPropertyFilter::clear_property() { -// @@protoc_insertion_point(one_of_clear_start:datacatalog.DatasetPropertyFilter) - switch (property_case()) { - case kProject: { - property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kName: { - property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kDomain: { - property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kVersion: { - property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - _oneof_case_[0] = PROPERTY_NOT_SET; -} - - -void DatasetPropertyFilter::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.DatasetPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_property(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DatasetPropertyFilter::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string version = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("datacatalog.DatasetPropertyFilter.version"); - object = msg->mutable_version(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DatasetPropertyFilter::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:datacatalog.DatasetPropertyFilter) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetPropertyFilter.project")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetPropertyFilter.name")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetPropertyFilter.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string version = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_version())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.DatasetPropertyFilter.version")); - } 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:datacatalog.DatasetPropertyFilter) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.DatasetPropertyFilter) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DatasetPropertyFilter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.DatasetPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (has_project()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // string domain = 3; - if (has_domain()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->domain(), output); - } - - // string version = 4; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.version"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->version(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.DatasetPropertyFilter) -} - -::google::protobuf::uint8* DatasetPropertyFilter::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.DatasetPropertyFilter) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (has_project()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // string domain = 3; - if (has_domain()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->domain(), target); - } - - // string version = 4; - if (has_version()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->version().data(), static_cast(this->version().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.DatasetPropertyFilter.version"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->version(), 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:datacatalog.DatasetPropertyFilter) - return target; -} - -size_t DatasetPropertyFilter::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.DatasetPropertyFilter) - 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 (property_case()) { - // string project = 1; - case kProject: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - break; - } - // string name = 2; - case kName: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - break; - } - // string domain = 3; - case kDomain: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - break; - } - // string version = 4; - case kVersion: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->version()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DatasetPropertyFilter::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.DatasetPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - const DatasetPropertyFilter* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.DatasetPropertyFilter) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.DatasetPropertyFilter) - MergeFrom(*source); - } -} - -void DatasetPropertyFilter::MergeFrom(const DatasetPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.DatasetPropertyFilter) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.property_case()) { - case kProject: { - set_project(from.project()); - break; - } - case kName: { - set_name(from.name()); - break; - } - case kDomain: { - set_domain(from.domain()); - break; - } - case kVersion: { - set_version(from.version()); - break; - } - case PROPERTY_NOT_SET: { - break; - } - } -} - -void DatasetPropertyFilter::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.DatasetPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DatasetPropertyFilter::CopyFrom(const DatasetPropertyFilter& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.DatasetPropertyFilter) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DatasetPropertyFilter::IsInitialized() const { - return true; -} - -void DatasetPropertyFilter::Swap(DatasetPropertyFilter* other) { - if (other == this) return; - InternalSwap(other); -} -void DatasetPropertyFilter::InternalSwap(DatasetPropertyFilter* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(property_, other->property_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata DatasetPropertyFilter::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PaginationOptions::InitAsDefaultInstance() { -} -class PaginationOptions::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PaginationOptions::kLimitFieldNumber; -const int PaginationOptions::kTokenFieldNumber; -const int PaginationOptions::kSortKeyFieldNumber; -const int PaginationOptions::kSortOrderFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PaginationOptions::PaginationOptions() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:datacatalog.PaginationOptions) -} -PaginationOptions::PaginationOptions(const PaginationOptions& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token().size() > 0) { - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - ::memcpy(&limit_, &from.limit_, - static_cast(reinterpret_cast(&sortorder_) - - reinterpret_cast(&limit_)) + sizeof(sortorder_)); - // @@protoc_insertion_point(copy_constructor:datacatalog.PaginationOptions) -} - -void PaginationOptions::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&limit_, 0, static_cast( - reinterpret_cast(&sortorder_) - - reinterpret_cast(&limit_)) + sizeof(sortorder_)); -} - -PaginationOptions::~PaginationOptions() { - // @@protoc_insertion_point(destructor:datacatalog.PaginationOptions) - SharedDtor(); -} - -void PaginationOptions::SharedDtor() { - token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PaginationOptions::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PaginationOptions& PaginationOptions::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PaginationOptions_flyteidl_2fdatacatalog_2fdatacatalog_2eproto.base); - return *internal_default_instance(); -} - - -void PaginationOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:datacatalog.PaginationOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&limit_, 0, static_cast( - reinterpret_cast(&sortorder_) - - reinterpret_cast(&limit_)) + sizeof(sortorder_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PaginationOptions::_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) { - // uint32 limit = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string token = 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); - ctx->extra_parse_data().SetFieldName("datacatalog.PaginationOptions.token"); - object = msg->mutable_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_sortkey(static_cast<::datacatalog::PaginationOptions_SortKey>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_sortorder(static_cast<::datacatalog::PaginationOptions_SortOrder>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PaginationOptions::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:datacatalog.PaginationOptions) - 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)) { - // uint32 limit = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &limit_))); - } else { - goto handle_unusual; - } - break; - } - - // string token = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "datacatalog.PaginationOptions.token")); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_sortkey(static_cast< ::datacatalog::PaginationOptions_SortKey >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_sortorder(static_cast< ::datacatalog::PaginationOptions_SortOrder >(value)); - } 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:datacatalog.PaginationOptions) - return true; -failure: - // @@protoc_insertion_point(parse_failure:datacatalog.PaginationOptions) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PaginationOptions::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:datacatalog.PaginationOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 limit = 1; - if (this->limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->limit(), output); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.PaginationOptions.token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->token(), output); - } - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - if (this->sortkey() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->sortkey(), output); - } - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - if (this->sortorder() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->sortorder(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:datacatalog.PaginationOptions) -} - -::google::protobuf::uint8* PaginationOptions::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:datacatalog.PaginationOptions) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 limit = 1; - if (this->limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->limit(), target); - } - - // string token = 2; - if (this->token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token().data(), static_cast(this->token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "datacatalog.PaginationOptions.token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->token(), target); - } - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - if (this->sortkey() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->sortkey(), target); - } - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - if (this->sortorder() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->sortorder(), 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:datacatalog.PaginationOptions) - return target; -} - -size_t PaginationOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:datacatalog.PaginationOptions) - 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; - - // string token = 2; - if (this->token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token()); - } - - // uint32 limit = 1; - if (this->limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->limit()); - } - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - if (this->sortkey() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortkey()); - } - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - if (this->sortorder() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->sortorder()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PaginationOptions::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:datacatalog.PaginationOptions) - GOOGLE_DCHECK_NE(&from, this); - const PaginationOptions* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:datacatalog.PaginationOptions) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:datacatalog.PaginationOptions) - MergeFrom(*source); - } -} - -void PaginationOptions::MergeFrom(const PaginationOptions& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:datacatalog.PaginationOptions) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.token().size() > 0) { - - token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_); - } - if (from.limit() != 0) { - set_limit(from.limit()); - } - if (from.sortkey() != 0) { - set_sortkey(from.sortkey()); - } - if (from.sortorder() != 0) { - set_sortorder(from.sortorder()); - } -} - -void PaginationOptions::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:datacatalog.PaginationOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PaginationOptions::CopyFrom(const PaginationOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:datacatalog.PaginationOptions) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PaginationOptions::IsInitialized() const { - return true; -} - -void PaginationOptions::Swap(PaginationOptions* other) { - if (other == this) return; - InternalSwap(other); -} -void PaginationOptions::InternalSwap(PaginationOptions* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - token_.Swap(&other->token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(limit_, other->limit_); - swap(sortkey_, other->sortkey_); - swap(sortorder_, other->sortorder_); -} - -::google::protobuf::Metadata PaginationOptions::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fdatacatalog_2fdatacatalog_2eproto); - return ::file_level_metadata_flyteidl_2fdatacatalog_2fdatacatalog_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace datacatalog -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::CreateDatasetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateDatasetResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::CreateDatasetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetDatasetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage< ::datacatalog::GetDatasetResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetDatasetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetArtifactRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::GetArtifactResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetArtifactResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::CreateArtifactRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::CreateArtifactResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::CreateArtifactResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage< ::datacatalog::AddTagRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::AddTagRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage< ::datacatalog::AddTagResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::AddTagResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ListArtifactsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListArtifactsResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ListArtifactsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ListDatasetsRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage< ::datacatalog::ListDatasetsResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ListDatasetsResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::UpdateArtifactRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage< ::datacatalog::UpdateArtifactResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::UpdateArtifactResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ReservationID* Arena::CreateMaybeMessage< ::datacatalog::ReservationID >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ReservationID >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Reservation* Arena::CreateMaybeMessage< ::datacatalog::Reservation >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Reservation >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::GetOrExtendReservationResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::GetOrExtendReservationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationRequest >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ReleaseReservationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage< ::datacatalog::ReleaseReservationResponse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ReleaseReservationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Dataset* Arena::CreateMaybeMessage< ::datacatalog::Dataset >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Dataset >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Partition* Arena::CreateMaybeMessage< ::datacatalog::Partition >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Partition >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::DatasetID* Arena::CreateMaybeMessage< ::datacatalog::DatasetID >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::DatasetID >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Artifact* Arena::CreateMaybeMessage< ::datacatalog::Artifact >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Artifact >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ArtifactData* Arena::CreateMaybeMessage< ::datacatalog::ArtifactData >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ArtifactData >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Tag* Arena::CreateMaybeMessage< ::datacatalog::Tag >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Tag >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Metadata_KeyMapEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::Metadata* Arena::CreateMaybeMessage< ::datacatalog::Metadata >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::Metadata >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::FilterExpression* Arena::CreateMaybeMessage< ::datacatalog::FilterExpression >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::FilterExpression >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::SinglePropertyFilter >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::SinglePropertyFilter >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::ArtifactPropertyFilter >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::TagPropertyFilter >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::TagPropertyFilter >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::PartitionPropertyFilter >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage< ::datacatalog::KeyValuePair >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::KeyValuePair >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::DatasetPropertyFilter >(arena); -} -template<> PROTOBUF_NOINLINE ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage< ::datacatalog::PaginationOptions >(Arena* arena) { - return Arena::CreateInternal< ::datacatalog::PaginationOptions >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h b/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h deleted file mode 100644 index da52d149e1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/datacatalog/datacatalog.pb.h +++ /dev/null @@ -1,9815 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/datacatalog/datacatalog.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "flyteidl/core/literals.pb.h" -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fdatacatalog_2fdatacatalog_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[38] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fdatacatalog_2fdatacatalog_2eproto(); -namespace datacatalog { -class AddTagRequest; -class AddTagRequestDefaultTypeInternal; -extern AddTagRequestDefaultTypeInternal _AddTagRequest_default_instance_; -class AddTagResponse; -class AddTagResponseDefaultTypeInternal; -extern AddTagResponseDefaultTypeInternal _AddTagResponse_default_instance_; -class Artifact; -class ArtifactDefaultTypeInternal; -extern ArtifactDefaultTypeInternal _Artifact_default_instance_; -class ArtifactData; -class ArtifactDataDefaultTypeInternal; -extern ArtifactDataDefaultTypeInternal _ArtifactData_default_instance_; -class ArtifactPropertyFilter; -class ArtifactPropertyFilterDefaultTypeInternal; -extern ArtifactPropertyFilterDefaultTypeInternal _ArtifactPropertyFilter_default_instance_; -class CreateArtifactRequest; -class CreateArtifactRequestDefaultTypeInternal; -extern CreateArtifactRequestDefaultTypeInternal _CreateArtifactRequest_default_instance_; -class CreateArtifactResponse; -class CreateArtifactResponseDefaultTypeInternal; -extern CreateArtifactResponseDefaultTypeInternal _CreateArtifactResponse_default_instance_; -class CreateDatasetRequest; -class CreateDatasetRequestDefaultTypeInternal; -extern CreateDatasetRequestDefaultTypeInternal _CreateDatasetRequest_default_instance_; -class CreateDatasetResponse; -class CreateDatasetResponseDefaultTypeInternal; -extern CreateDatasetResponseDefaultTypeInternal _CreateDatasetResponse_default_instance_; -class Dataset; -class DatasetDefaultTypeInternal; -extern DatasetDefaultTypeInternal _Dataset_default_instance_; -class DatasetID; -class DatasetIDDefaultTypeInternal; -extern DatasetIDDefaultTypeInternal _DatasetID_default_instance_; -class DatasetPropertyFilter; -class DatasetPropertyFilterDefaultTypeInternal; -extern DatasetPropertyFilterDefaultTypeInternal _DatasetPropertyFilter_default_instance_; -class FilterExpression; -class FilterExpressionDefaultTypeInternal; -extern FilterExpressionDefaultTypeInternal _FilterExpression_default_instance_; -class GetArtifactRequest; -class GetArtifactRequestDefaultTypeInternal; -extern GetArtifactRequestDefaultTypeInternal _GetArtifactRequest_default_instance_; -class GetArtifactResponse; -class GetArtifactResponseDefaultTypeInternal; -extern GetArtifactResponseDefaultTypeInternal _GetArtifactResponse_default_instance_; -class GetDatasetRequest; -class GetDatasetRequestDefaultTypeInternal; -extern GetDatasetRequestDefaultTypeInternal _GetDatasetRequest_default_instance_; -class GetDatasetResponse; -class GetDatasetResponseDefaultTypeInternal; -extern GetDatasetResponseDefaultTypeInternal _GetDatasetResponse_default_instance_; -class GetOrExtendReservationRequest; -class GetOrExtendReservationRequestDefaultTypeInternal; -extern GetOrExtendReservationRequestDefaultTypeInternal _GetOrExtendReservationRequest_default_instance_; -class GetOrExtendReservationResponse; -class GetOrExtendReservationResponseDefaultTypeInternal; -extern GetOrExtendReservationResponseDefaultTypeInternal _GetOrExtendReservationResponse_default_instance_; -class KeyValuePair; -class KeyValuePairDefaultTypeInternal; -extern KeyValuePairDefaultTypeInternal _KeyValuePair_default_instance_; -class ListArtifactsRequest; -class ListArtifactsRequestDefaultTypeInternal; -extern ListArtifactsRequestDefaultTypeInternal _ListArtifactsRequest_default_instance_; -class ListArtifactsResponse; -class ListArtifactsResponseDefaultTypeInternal; -extern ListArtifactsResponseDefaultTypeInternal _ListArtifactsResponse_default_instance_; -class ListDatasetsRequest; -class ListDatasetsRequestDefaultTypeInternal; -extern ListDatasetsRequestDefaultTypeInternal _ListDatasetsRequest_default_instance_; -class ListDatasetsResponse; -class ListDatasetsResponseDefaultTypeInternal; -extern ListDatasetsResponseDefaultTypeInternal _ListDatasetsResponse_default_instance_; -class Metadata; -class MetadataDefaultTypeInternal; -extern MetadataDefaultTypeInternal _Metadata_default_instance_; -class Metadata_KeyMapEntry_DoNotUse; -class Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal; -extern Metadata_KeyMapEntry_DoNotUseDefaultTypeInternal _Metadata_KeyMapEntry_DoNotUse_default_instance_; -class PaginationOptions; -class PaginationOptionsDefaultTypeInternal; -extern PaginationOptionsDefaultTypeInternal _PaginationOptions_default_instance_; -class Partition; -class PartitionDefaultTypeInternal; -extern PartitionDefaultTypeInternal _Partition_default_instance_; -class PartitionPropertyFilter; -class PartitionPropertyFilterDefaultTypeInternal; -extern PartitionPropertyFilterDefaultTypeInternal _PartitionPropertyFilter_default_instance_; -class ReleaseReservationRequest; -class ReleaseReservationRequestDefaultTypeInternal; -extern ReleaseReservationRequestDefaultTypeInternal _ReleaseReservationRequest_default_instance_; -class ReleaseReservationResponse; -class ReleaseReservationResponseDefaultTypeInternal; -extern ReleaseReservationResponseDefaultTypeInternal _ReleaseReservationResponse_default_instance_; -class Reservation; -class ReservationDefaultTypeInternal; -extern ReservationDefaultTypeInternal _Reservation_default_instance_; -class ReservationID; -class ReservationIDDefaultTypeInternal; -extern ReservationIDDefaultTypeInternal _ReservationID_default_instance_; -class SinglePropertyFilter; -class SinglePropertyFilterDefaultTypeInternal; -extern SinglePropertyFilterDefaultTypeInternal _SinglePropertyFilter_default_instance_; -class Tag; -class TagDefaultTypeInternal; -extern TagDefaultTypeInternal _Tag_default_instance_; -class TagPropertyFilter; -class TagPropertyFilterDefaultTypeInternal; -extern TagPropertyFilterDefaultTypeInternal _TagPropertyFilter_default_instance_; -class UpdateArtifactRequest; -class UpdateArtifactRequestDefaultTypeInternal; -extern UpdateArtifactRequestDefaultTypeInternal _UpdateArtifactRequest_default_instance_; -class UpdateArtifactResponse; -class UpdateArtifactResponseDefaultTypeInternal; -extern UpdateArtifactResponseDefaultTypeInternal _UpdateArtifactResponse_default_instance_; -} // namespace datacatalog -namespace google { -namespace protobuf { -template<> ::datacatalog::AddTagRequest* Arena::CreateMaybeMessage<::datacatalog::AddTagRequest>(Arena*); -template<> ::datacatalog::AddTagResponse* Arena::CreateMaybeMessage<::datacatalog::AddTagResponse>(Arena*); -template<> ::datacatalog::Artifact* Arena::CreateMaybeMessage<::datacatalog::Artifact>(Arena*); -template<> ::datacatalog::ArtifactData* Arena::CreateMaybeMessage<::datacatalog::ArtifactData>(Arena*); -template<> ::datacatalog::ArtifactPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::ArtifactPropertyFilter>(Arena*); -template<> ::datacatalog::CreateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactRequest>(Arena*); -template<> ::datacatalog::CreateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::CreateArtifactResponse>(Arena*); -template<> ::datacatalog::CreateDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetRequest>(Arena*); -template<> ::datacatalog::CreateDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::CreateDatasetResponse>(Arena*); -template<> ::datacatalog::Dataset* Arena::CreateMaybeMessage<::datacatalog::Dataset>(Arena*); -template<> ::datacatalog::DatasetID* Arena::CreateMaybeMessage<::datacatalog::DatasetID>(Arena*); -template<> ::datacatalog::DatasetPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::DatasetPropertyFilter>(Arena*); -template<> ::datacatalog::FilterExpression* Arena::CreateMaybeMessage<::datacatalog::FilterExpression>(Arena*); -template<> ::datacatalog::GetArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::GetArtifactRequest>(Arena*); -template<> ::datacatalog::GetArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::GetArtifactResponse>(Arena*); -template<> ::datacatalog::GetDatasetRequest* Arena::CreateMaybeMessage<::datacatalog::GetDatasetRequest>(Arena*); -template<> ::datacatalog::GetDatasetResponse* Arena::CreateMaybeMessage<::datacatalog::GetDatasetResponse>(Arena*); -template<> ::datacatalog::GetOrExtendReservationRequest* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationRequest>(Arena*); -template<> ::datacatalog::GetOrExtendReservationResponse* Arena::CreateMaybeMessage<::datacatalog::GetOrExtendReservationResponse>(Arena*); -template<> ::datacatalog::KeyValuePair* Arena::CreateMaybeMessage<::datacatalog::KeyValuePair>(Arena*); -template<> ::datacatalog::ListArtifactsRequest* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsRequest>(Arena*); -template<> ::datacatalog::ListArtifactsResponse* Arena::CreateMaybeMessage<::datacatalog::ListArtifactsResponse>(Arena*); -template<> ::datacatalog::ListDatasetsRequest* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsRequest>(Arena*); -template<> ::datacatalog::ListDatasetsResponse* Arena::CreateMaybeMessage<::datacatalog::ListDatasetsResponse>(Arena*); -template<> ::datacatalog::Metadata* Arena::CreateMaybeMessage<::datacatalog::Metadata>(Arena*); -template<> ::datacatalog::Metadata_KeyMapEntry_DoNotUse* Arena::CreateMaybeMessage<::datacatalog::Metadata_KeyMapEntry_DoNotUse>(Arena*); -template<> ::datacatalog::PaginationOptions* Arena::CreateMaybeMessage<::datacatalog::PaginationOptions>(Arena*); -template<> ::datacatalog::Partition* Arena::CreateMaybeMessage<::datacatalog::Partition>(Arena*); -template<> ::datacatalog::PartitionPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::PartitionPropertyFilter>(Arena*); -template<> ::datacatalog::ReleaseReservationRequest* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationRequest>(Arena*); -template<> ::datacatalog::ReleaseReservationResponse* Arena::CreateMaybeMessage<::datacatalog::ReleaseReservationResponse>(Arena*); -template<> ::datacatalog::Reservation* Arena::CreateMaybeMessage<::datacatalog::Reservation>(Arena*); -template<> ::datacatalog::ReservationID* Arena::CreateMaybeMessage<::datacatalog::ReservationID>(Arena*); -template<> ::datacatalog::SinglePropertyFilter* Arena::CreateMaybeMessage<::datacatalog::SinglePropertyFilter>(Arena*); -template<> ::datacatalog::Tag* Arena::CreateMaybeMessage<::datacatalog::Tag>(Arena*); -template<> ::datacatalog::TagPropertyFilter* Arena::CreateMaybeMessage<::datacatalog::TagPropertyFilter>(Arena*); -template<> ::datacatalog::UpdateArtifactRequest* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactRequest>(Arena*); -template<> ::datacatalog::UpdateArtifactResponse* Arena::CreateMaybeMessage<::datacatalog::UpdateArtifactResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace datacatalog { - -enum SinglePropertyFilter_ComparisonOperator { - SinglePropertyFilter_ComparisonOperator_EQUALS = 0, - SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - SinglePropertyFilter_ComparisonOperator_SinglePropertyFilter_ComparisonOperator_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool SinglePropertyFilter_ComparisonOperator_IsValid(int value); -const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN = SinglePropertyFilter_ComparisonOperator_EQUALS; -const SinglePropertyFilter_ComparisonOperator SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX = SinglePropertyFilter_ComparisonOperator_EQUALS; -const int SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE = SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SinglePropertyFilter_ComparisonOperator_descriptor(); -inline const ::std::string& SinglePropertyFilter_ComparisonOperator_Name(SinglePropertyFilter_ComparisonOperator value) { - return ::google::protobuf::internal::NameOfEnum( - SinglePropertyFilter_ComparisonOperator_descriptor(), value); -} -inline bool SinglePropertyFilter_ComparisonOperator_Parse( - const ::std::string& name, SinglePropertyFilter_ComparisonOperator* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SinglePropertyFilter_ComparisonOperator_descriptor(), name, value); -} -enum PaginationOptions_SortOrder { - PaginationOptions_SortOrder_DESCENDING = 0, - PaginationOptions_SortOrder_ASCENDING = 1, - PaginationOptions_SortOrder_PaginationOptions_SortOrder_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - PaginationOptions_SortOrder_PaginationOptions_SortOrder_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool PaginationOptions_SortOrder_IsValid(int value); -const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MIN = PaginationOptions_SortOrder_DESCENDING; -const PaginationOptions_SortOrder PaginationOptions_SortOrder_SortOrder_MAX = PaginationOptions_SortOrder_ASCENDING; -const int PaginationOptions_SortOrder_SortOrder_ARRAYSIZE = PaginationOptions_SortOrder_SortOrder_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PaginationOptions_SortOrder_descriptor(); -inline const ::std::string& PaginationOptions_SortOrder_Name(PaginationOptions_SortOrder value) { - return ::google::protobuf::internal::NameOfEnum( - PaginationOptions_SortOrder_descriptor(), value); -} -inline bool PaginationOptions_SortOrder_Parse( - const ::std::string& name, PaginationOptions_SortOrder* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PaginationOptions_SortOrder_descriptor(), name, value); -} -enum PaginationOptions_SortKey { - PaginationOptions_SortKey_CREATION_TIME = 0, - PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - PaginationOptions_SortKey_PaginationOptions_SortKey_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool PaginationOptions_SortKey_IsValid(int value); -const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MIN = PaginationOptions_SortKey_CREATION_TIME; -const PaginationOptions_SortKey PaginationOptions_SortKey_SortKey_MAX = PaginationOptions_SortKey_CREATION_TIME; -const int PaginationOptions_SortKey_SortKey_ARRAYSIZE = PaginationOptions_SortKey_SortKey_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PaginationOptions_SortKey_descriptor(); -inline const ::std::string& PaginationOptions_SortKey_Name(PaginationOptions_SortKey value) { - return ::google::protobuf::internal::NameOfEnum( - PaginationOptions_SortKey_descriptor(), value); -} -inline bool PaginationOptions_SortKey_Parse( - const ::std::string& name, PaginationOptions_SortKey* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PaginationOptions_SortKey_descriptor(), name, value); -} -// =================================================================== - -class CreateDatasetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetRequest) */ { - public: - CreateDatasetRequest(); - virtual ~CreateDatasetRequest(); - - CreateDatasetRequest(const CreateDatasetRequest& from); - - inline CreateDatasetRequest& operator=(const CreateDatasetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDatasetRequest(CreateDatasetRequest&& from) noexcept - : CreateDatasetRequest() { - *this = ::std::move(from); - } - - inline CreateDatasetRequest& operator=(CreateDatasetRequest&& 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 CreateDatasetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDatasetRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateDatasetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(CreateDatasetRequest* other); - friend void swap(CreateDatasetRequest& a, CreateDatasetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDatasetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDatasetRequest* 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 CreateDatasetRequest& from); - void MergeFrom(const CreateDatasetRequest& 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(CreateDatasetRequest* 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 ------------------------------------------------------- - - // .datacatalog.Dataset dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::Dataset& dataset() const; - ::datacatalog::Dataset* release_dataset(); - ::datacatalog::Dataset* mutable_dataset(); - void set_allocated_dataset(::datacatalog::Dataset* dataset); - - // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Dataset* dataset_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDatasetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateDatasetResponse) */ { - public: - CreateDatasetResponse(); - virtual ~CreateDatasetResponse(); - - CreateDatasetResponse(const CreateDatasetResponse& from); - - inline CreateDatasetResponse& operator=(const CreateDatasetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDatasetResponse(CreateDatasetResponse&& from) noexcept - : CreateDatasetResponse() { - *this = ::std::move(from); - } - - inline CreateDatasetResponse& operator=(CreateDatasetResponse&& 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 CreateDatasetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDatasetResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateDatasetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(CreateDatasetResponse* other); - friend void swap(CreateDatasetResponse& a, CreateDatasetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDatasetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDatasetResponse* 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 CreateDatasetResponse& from); - void MergeFrom(const CreateDatasetResponse& 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(CreateDatasetResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetDatasetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetRequest) */ { - public: - GetDatasetRequest(); - virtual ~GetDatasetRequest(); - - GetDatasetRequest(const GetDatasetRequest& from); - - inline GetDatasetRequest& operator=(const GetDatasetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDatasetRequest(GetDatasetRequest&& from) noexcept - : GetDatasetRequest() { - *this = ::std::move(from); - } - - inline GetDatasetRequest& operator=(GetDatasetRequest&& 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 GetDatasetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDatasetRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDatasetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(GetDatasetRequest* other); - friend void swap(GetDatasetRequest& a, GetDatasetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDatasetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetDatasetRequest* 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 GetDatasetRequest& from); - void MergeFrom(const GetDatasetRequest& 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(GetDatasetRequest* 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 ------------------------------------------------------- - - // .datacatalog.DatasetID dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::DatasetID* dataset_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetDatasetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetDatasetResponse) */ { - public: - GetDatasetResponse(); - virtual ~GetDatasetResponse(); - - GetDatasetResponse(const GetDatasetResponse& from); - - inline GetDatasetResponse& operator=(const GetDatasetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDatasetResponse(GetDatasetResponse&& from) noexcept - : GetDatasetResponse() { - *this = ::std::move(from); - } - - inline GetDatasetResponse& operator=(GetDatasetResponse&& 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 GetDatasetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDatasetResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDatasetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(GetDatasetResponse* other); - friend void swap(GetDatasetResponse& a, GetDatasetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDatasetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetDatasetResponse* 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 GetDatasetResponse& from); - void MergeFrom(const GetDatasetResponse& 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(GetDatasetResponse* 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 ------------------------------------------------------- - - // .datacatalog.Dataset dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::Dataset& dataset() const; - ::datacatalog::Dataset* release_dataset(); - ::datacatalog::Dataset* mutable_dataset(); - void set_allocated_dataset(::datacatalog::Dataset* dataset); - - // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Dataset* dataset_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetArtifactRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactRequest) */ { - public: - GetArtifactRequest(); - virtual ~GetArtifactRequest(); - - GetArtifactRequest(const GetArtifactRequest& from); - - inline GetArtifactRequest& operator=(const GetArtifactRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetArtifactRequest(GetArtifactRequest&& from) noexcept - : GetArtifactRequest() { - *this = ::std::move(from); - } - - inline GetArtifactRequest& operator=(GetArtifactRequest&& 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 GetArtifactRequest& default_instance(); - - enum QueryHandleCase { - kArtifactId = 2, - kTagName = 3, - QUERY_HANDLE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetArtifactRequest* internal_default_instance() { - return reinterpret_cast( - &_GetArtifactRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(GetArtifactRequest* other); - friend void swap(GetArtifactRequest& a, GetArtifactRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetArtifactRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetArtifactRequest* 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 GetArtifactRequest& from); - void MergeFrom(const GetArtifactRequest& 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(GetArtifactRequest* 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 ------------------------------------------------------- - - // .datacatalog.DatasetID dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // string artifact_id = 2; - private: - bool has_artifact_id() const; - public: - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 2; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - // string tag_name = 3; - private: - bool has_tag_name() const; - public: - void clear_tag_name(); - static const int kTagNameFieldNumber = 3; - const ::std::string& tag_name() const; - void set_tag_name(const ::std::string& value); - #if LANG_CXX11 - void set_tag_name(::std::string&& value); - #endif - void set_tag_name(const char* value); - void set_tag_name(const char* value, size_t size); - ::std::string* mutable_tag_name(); - ::std::string* release_tag_name(); - void set_allocated_tag_name(::std::string* tag_name); - - void clear_query_handle(); - QueryHandleCase query_handle_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) - private: - class HasBitSetters; - void set_has_artifact_id(); - void set_has_tag_name(); - - inline bool has_query_handle() const; - inline void clear_has_query_handle(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::DatasetID* dataset_; - union QueryHandleUnion { - QueryHandleUnion() {} - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::google::protobuf::internal::ArenaStringPtr tag_name_; - } query_handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetArtifactResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetArtifactResponse) */ { - public: - GetArtifactResponse(); - virtual ~GetArtifactResponse(); - - GetArtifactResponse(const GetArtifactResponse& from); - - inline GetArtifactResponse& operator=(const GetArtifactResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetArtifactResponse(GetArtifactResponse&& from) noexcept - : GetArtifactResponse() { - *this = ::std::move(from); - } - - inline GetArtifactResponse& operator=(GetArtifactResponse&& 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 GetArtifactResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetArtifactResponse* internal_default_instance() { - return reinterpret_cast( - &_GetArtifactResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(GetArtifactResponse* other); - friend void swap(GetArtifactResponse& a, GetArtifactResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetArtifactResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetArtifactResponse* 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 GetArtifactResponse& from); - void MergeFrom(const GetArtifactResponse& 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(GetArtifactResponse* 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 ------------------------------------------------------- - - // .datacatalog.Artifact artifact = 1; - bool has_artifact() const; - void clear_artifact(); - static const int kArtifactFieldNumber = 1; - const ::datacatalog::Artifact& artifact() const; - ::datacatalog::Artifact* release_artifact(); - ::datacatalog::Artifact* mutable_artifact(); - void set_allocated_artifact(::datacatalog::Artifact* artifact); - - // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Artifact* artifact_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateArtifactRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactRequest) */ { - public: - CreateArtifactRequest(); - virtual ~CreateArtifactRequest(); - - CreateArtifactRequest(const CreateArtifactRequest& from); - - inline CreateArtifactRequest& operator=(const CreateArtifactRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateArtifactRequest(CreateArtifactRequest&& from) noexcept - : CreateArtifactRequest() { - *this = ::std::move(from); - } - - inline CreateArtifactRequest& operator=(CreateArtifactRequest&& 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 CreateArtifactRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateArtifactRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateArtifactRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(CreateArtifactRequest* other); - friend void swap(CreateArtifactRequest& a, CreateArtifactRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateArtifactRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateArtifactRequest* 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 CreateArtifactRequest& from); - void MergeFrom(const CreateArtifactRequest& 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(CreateArtifactRequest* 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 ------------------------------------------------------- - - // .datacatalog.Artifact artifact = 1; - bool has_artifact() const; - void clear_artifact(); - static const int kArtifactFieldNumber = 1; - const ::datacatalog::Artifact& artifact() const; - ::datacatalog::Artifact* release_artifact(); - ::datacatalog::Artifact* mutable_artifact(); - void set_allocated_artifact(::datacatalog::Artifact* artifact); - - // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Artifact* artifact_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateArtifactResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.CreateArtifactResponse) */ { - public: - CreateArtifactResponse(); - virtual ~CreateArtifactResponse(); - - CreateArtifactResponse(const CreateArtifactResponse& from); - - inline CreateArtifactResponse& operator=(const CreateArtifactResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateArtifactResponse(CreateArtifactResponse&& from) noexcept - : CreateArtifactResponse() { - *this = ::std::move(from); - } - - inline CreateArtifactResponse& operator=(CreateArtifactResponse&& 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 CreateArtifactResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateArtifactResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateArtifactResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(CreateArtifactResponse* other); - friend void swap(CreateArtifactResponse& a, CreateArtifactResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateArtifactResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateArtifactResponse* 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 CreateArtifactResponse& from); - void MergeFrom(const CreateArtifactResponse& 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(CreateArtifactResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class AddTagRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagRequest) */ { - public: - AddTagRequest(); - virtual ~AddTagRequest(); - - AddTagRequest(const AddTagRequest& from); - - inline AddTagRequest& operator=(const AddTagRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AddTagRequest(AddTagRequest&& from) noexcept - : AddTagRequest() { - *this = ::std::move(from); - } - - inline AddTagRequest& operator=(AddTagRequest&& 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 AddTagRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AddTagRequest* internal_default_instance() { - return reinterpret_cast( - &_AddTagRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(AddTagRequest* other); - friend void swap(AddTagRequest& a, AddTagRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AddTagRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - AddTagRequest* 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 AddTagRequest& from); - void MergeFrom(const AddTagRequest& 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(AddTagRequest* 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 ------------------------------------------------------- - - // .datacatalog.Tag tag = 1; - bool has_tag() const; - void clear_tag(); - static const int kTagFieldNumber = 1; - const ::datacatalog::Tag& tag() const; - ::datacatalog::Tag* release_tag(); - ::datacatalog::Tag* mutable_tag(); - void set_allocated_tag(::datacatalog::Tag* tag); - - // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Tag* tag_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class AddTagResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.AddTagResponse) */ { - public: - AddTagResponse(); - virtual ~AddTagResponse(); - - AddTagResponse(const AddTagResponse& from); - - inline AddTagResponse& operator=(const AddTagResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AddTagResponse(AddTagResponse&& from) noexcept - : AddTagResponse() { - *this = ::std::move(from); - } - - inline AddTagResponse& operator=(AddTagResponse&& 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 AddTagResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AddTagResponse* internal_default_instance() { - return reinterpret_cast( - &_AddTagResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(AddTagResponse* other); - friend void swap(AddTagResponse& a, AddTagResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AddTagResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - AddTagResponse* 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 AddTagResponse& from); - void MergeFrom(const AddTagResponse& 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(AddTagResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ListArtifactsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsRequest) */ { - public: - ListArtifactsRequest(); - virtual ~ListArtifactsRequest(); - - ListArtifactsRequest(const ListArtifactsRequest& from); - - inline ListArtifactsRequest& operator=(const ListArtifactsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListArtifactsRequest(ListArtifactsRequest&& from) noexcept - : ListArtifactsRequest() { - *this = ::std::move(from); - } - - inline ListArtifactsRequest& operator=(ListArtifactsRequest&& 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 ListArtifactsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(ListArtifactsRequest* other); - friend void swap(ListArtifactsRequest& a, ListArtifactsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListArtifactsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListArtifactsRequest* 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 ListArtifactsRequest& from); - void MergeFrom(const ListArtifactsRequest& 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(ListArtifactsRequest* 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 ------------------------------------------------------- - - // .datacatalog.DatasetID dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // .datacatalog.FilterExpression filter = 2; - bool has_filter() const; - void clear_filter(); - static const int kFilterFieldNumber = 2; - const ::datacatalog::FilterExpression& filter() const; - ::datacatalog::FilterExpression* release_filter(); - ::datacatalog::FilterExpression* mutable_filter(); - void set_allocated_filter(::datacatalog::FilterExpression* filter); - - // .datacatalog.PaginationOptions pagination = 3; - bool has_pagination() const; - void clear_pagination(); - static const int kPaginationFieldNumber = 3; - const ::datacatalog::PaginationOptions& pagination() const; - ::datacatalog::PaginationOptions* release_pagination(); - ::datacatalog::PaginationOptions* mutable_pagination(); - void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); - - // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::DatasetID* dataset_; - ::datacatalog::FilterExpression* filter_; - ::datacatalog::PaginationOptions* pagination_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ListArtifactsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListArtifactsResponse) */ { - public: - ListArtifactsResponse(); - virtual ~ListArtifactsResponse(); - - ListArtifactsResponse(const ListArtifactsResponse& from); - - inline ListArtifactsResponse& operator=(const ListArtifactsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListArtifactsResponse(ListArtifactsResponse&& from) noexcept - : ListArtifactsResponse() { - *this = ::std::move(from); - } - - inline ListArtifactsResponse& operator=(ListArtifactsResponse&& 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 ListArtifactsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListArtifactsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListArtifactsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(ListArtifactsResponse* other); - friend void swap(ListArtifactsResponse& a, ListArtifactsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListArtifactsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListArtifactsResponse* 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 ListArtifactsResponse& from); - void MergeFrom(const ListArtifactsResponse& 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(ListArtifactsResponse* 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 ------------------------------------------------------- - - // repeated .datacatalog.Artifact artifacts = 1; - int artifacts_size() const; - void clear_artifacts(); - static const int kArtifactsFieldNumber = 1; - ::datacatalog::Artifact* mutable_artifacts(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* - mutable_artifacts(); - const ::datacatalog::Artifact& artifacts(int index) const; - ::datacatalog::Artifact* add_artifacts(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& - artifacts() const; - - // string next_token = 2; - void clear_next_token(); - static const int kNextTokenFieldNumber = 2; - const ::std::string& next_token() const; - void set_next_token(const ::std::string& value); - #if LANG_CXX11 - void set_next_token(::std::string&& value); - #endif - void set_next_token(const char* value); - void set_next_token(const char* value, size_t size); - ::std::string* mutable_next_token(); - ::std::string* release_next_token(); - void set_allocated_next_token(::std::string* next_token); - - // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact > artifacts_; - ::google::protobuf::internal::ArenaStringPtr next_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ListDatasetsRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsRequest) */ { - public: - ListDatasetsRequest(); - virtual ~ListDatasetsRequest(); - - ListDatasetsRequest(const ListDatasetsRequest& from); - - inline ListDatasetsRequest& operator=(const ListDatasetsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListDatasetsRequest(ListDatasetsRequest&& from) noexcept - : ListDatasetsRequest() { - *this = ::std::move(from); - } - - inline ListDatasetsRequest& operator=(ListDatasetsRequest&& 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 ListDatasetsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListDatasetsRequest* internal_default_instance() { - return reinterpret_cast( - &_ListDatasetsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(ListDatasetsRequest* other); - friend void swap(ListDatasetsRequest& a, ListDatasetsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListDatasetsRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListDatasetsRequest* 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 ListDatasetsRequest& from); - void MergeFrom(const ListDatasetsRequest& 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(ListDatasetsRequest* 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 ------------------------------------------------------- - - // .datacatalog.FilterExpression filter = 1; - bool has_filter() const; - void clear_filter(); - static const int kFilterFieldNumber = 1; - const ::datacatalog::FilterExpression& filter() const; - ::datacatalog::FilterExpression* release_filter(); - ::datacatalog::FilterExpression* mutable_filter(); - void set_allocated_filter(::datacatalog::FilterExpression* filter); - - // .datacatalog.PaginationOptions pagination = 2; - bool has_pagination() const; - void clear_pagination(); - static const int kPaginationFieldNumber = 2; - const ::datacatalog::PaginationOptions& pagination() const; - ::datacatalog::PaginationOptions* release_pagination(); - ::datacatalog::PaginationOptions* mutable_pagination(); - void set_allocated_pagination(::datacatalog::PaginationOptions* pagination); - - // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::FilterExpression* filter_; - ::datacatalog::PaginationOptions* pagination_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ListDatasetsResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ListDatasetsResponse) */ { - public: - ListDatasetsResponse(); - virtual ~ListDatasetsResponse(); - - ListDatasetsResponse(const ListDatasetsResponse& from); - - inline ListDatasetsResponse& operator=(const ListDatasetsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ListDatasetsResponse(ListDatasetsResponse&& from) noexcept - : ListDatasetsResponse() { - *this = ::std::move(from); - } - - inline ListDatasetsResponse& operator=(ListDatasetsResponse&& 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 ListDatasetsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ListDatasetsResponse* internal_default_instance() { - return reinterpret_cast( - &_ListDatasetsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(ListDatasetsResponse* other); - friend void swap(ListDatasetsResponse& a, ListDatasetsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ListDatasetsResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ListDatasetsResponse* 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 ListDatasetsResponse& from); - void MergeFrom(const ListDatasetsResponse& 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(ListDatasetsResponse* 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 ------------------------------------------------------- - - // repeated .datacatalog.Dataset datasets = 1; - int datasets_size() const; - void clear_datasets(); - static const int kDatasetsFieldNumber = 1; - ::datacatalog::Dataset* mutable_datasets(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* - mutable_datasets(); - const ::datacatalog::Dataset& datasets(int index) const; - ::datacatalog::Dataset* add_datasets(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& - datasets() const; - - // string next_token = 2; - void clear_next_token(); - static const int kNextTokenFieldNumber = 2; - const ::std::string& next_token() const; - void set_next_token(const ::std::string& value); - #if LANG_CXX11 - void set_next_token(::std::string&& value); - #endif - void set_next_token(const char* value); - void set_next_token(const char* value, size_t size); - ::std::string* mutable_next_token(); - ::std::string* release_next_token(); - void set_allocated_next_token(::std::string* next_token); - - // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset > datasets_; - ::google::protobuf::internal::ArenaStringPtr next_token_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateArtifactRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactRequest) */ { - public: - UpdateArtifactRequest(); - virtual ~UpdateArtifactRequest(); - - UpdateArtifactRequest(const UpdateArtifactRequest& from); - - inline UpdateArtifactRequest& operator=(const UpdateArtifactRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UpdateArtifactRequest(UpdateArtifactRequest&& from) noexcept - : UpdateArtifactRequest() { - *this = ::std::move(from); - } - - inline UpdateArtifactRequest& operator=(UpdateArtifactRequest&& 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 UpdateArtifactRequest& default_instance(); - - enum QueryHandleCase { - kArtifactId = 2, - kTagName = 3, - QUERY_HANDLE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UpdateArtifactRequest* internal_default_instance() { - return reinterpret_cast( - &_UpdateArtifactRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(UpdateArtifactRequest* other); - friend void swap(UpdateArtifactRequest& a, UpdateArtifactRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UpdateArtifactRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - UpdateArtifactRequest* 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 UpdateArtifactRequest& from); - void MergeFrom(const UpdateArtifactRequest& 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(UpdateArtifactRequest* 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 ------------------------------------------------------- - - // repeated .datacatalog.ArtifactData data = 4; - int data_size() const; - void clear_data(); - static const int kDataFieldNumber = 4; - ::datacatalog::ArtifactData* mutable_data(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* - mutable_data(); - const ::datacatalog::ArtifactData& data(int index) const; - ::datacatalog::ArtifactData* add_data(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& - data() const; - - // .datacatalog.DatasetID dataset = 1; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 1; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // .datacatalog.Metadata metadata = 5; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 5; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // string artifact_id = 2; - private: - bool has_artifact_id() const; - public: - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 2; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - // string tag_name = 3; - private: - bool has_tag_name() const; - public: - void clear_tag_name(); - static const int kTagNameFieldNumber = 3; - const ::std::string& tag_name() const; - void set_tag_name(const ::std::string& value); - #if LANG_CXX11 - void set_tag_name(::std::string&& value); - #endif - void set_tag_name(const char* value); - void set_tag_name(const char* value, size_t size); - ::std::string* mutable_tag_name(); - ::std::string* release_tag_name(); - void set_allocated_tag_name(::std::string* tag_name); - - void clear_query_handle(); - QueryHandleCase query_handle_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) - private: - class HasBitSetters; - void set_has_artifact_id(); - void set_has_tag_name(); - - inline bool has_query_handle() const; - inline void clear_has_query_handle(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; - ::datacatalog::DatasetID* dataset_; - ::datacatalog::Metadata* metadata_; - union QueryHandleUnion { - QueryHandleUnion() {} - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::google::protobuf::internal::ArenaStringPtr tag_name_; - } query_handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class UpdateArtifactResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.UpdateArtifactResponse) */ { - public: - UpdateArtifactResponse(); - virtual ~UpdateArtifactResponse(); - - UpdateArtifactResponse(const UpdateArtifactResponse& from); - - inline UpdateArtifactResponse& operator=(const UpdateArtifactResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UpdateArtifactResponse(UpdateArtifactResponse&& from) noexcept - : UpdateArtifactResponse() { - *this = ::std::move(from); - } - - inline UpdateArtifactResponse& operator=(UpdateArtifactResponse&& 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 UpdateArtifactResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UpdateArtifactResponse* internal_default_instance() { - return reinterpret_cast( - &_UpdateArtifactResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(UpdateArtifactResponse* other); - friend void swap(UpdateArtifactResponse& a, UpdateArtifactResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UpdateArtifactResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - UpdateArtifactResponse* 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 UpdateArtifactResponse& from); - void MergeFrom(const UpdateArtifactResponse& 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(UpdateArtifactResponse* 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 ------------------------------------------------------- - - // string artifact_id = 1; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ReservationID final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReservationID) */ { - public: - ReservationID(); - virtual ~ReservationID(); - - ReservationID(const ReservationID& from); - - inline ReservationID& operator=(const ReservationID& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReservationID(ReservationID&& from) noexcept - : ReservationID() { - *this = ::std::move(from); - } - - inline ReservationID& operator=(ReservationID&& 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 ReservationID& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReservationID* internal_default_instance() { - return reinterpret_cast( - &_ReservationID_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(ReservationID* other); - friend void swap(ReservationID& a, ReservationID& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReservationID* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReservationID* 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 ReservationID& from); - void MergeFrom(const ReservationID& 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(ReservationID* 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 ------------------------------------------------------- - - // string tag_name = 2; - void clear_tag_name(); - static const int kTagNameFieldNumber = 2; - const ::std::string& tag_name() const; - void set_tag_name(const ::std::string& value); - #if LANG_CXX11 - void set_tag_name(::std::string&& value); - #endif - void set_tag_name(const char* value); - void set_tag_name(const char* value, size_t size); - ::std::string* mutable_tag_name(); - ::std::string* release_tag_name(); - void set_allocated_tag_name(::std::string* tag_name); - - // .datacatalog.DatasetID dataset_id = 1; - bool has_dataset_id() const; - void clear_dataset_id(); - static const int kDatasetIdFieldNumber = 1; - const ::datacatalog::DatasetID& dataset_id() const; - ::datacatalog::DatasetID* release_dataset_id(); - ::datacatalog::DatasetID* mutable_dataset_id(); - void set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id); - - // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr tag_name_; - ::datacatalog::DatasetID* dataset_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetOrExtendReservationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationRequest) */ { - public: - GetOrExtendReservationRequest(); - virtual ~GetOrExtendReservationRequest(); - - GetOrExtendReservationRequest(const GetOrExtendReservationRequest& from); - - inline GetOrExtendReservationRequest& operator=(const GetOrExtendReservationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetOrExtendReservationRequest(GetOrExtendReservationRequest&& from) noexcept - : GetOrExtendReservationRequest() { - *this = ::std::move(from); - } - - inline GetOrExtendReservationRequest& operator=(GetOrExtendReservationRequest&& 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 GetOrExtendReservationRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetOrExtendReservationRequest* internal_default_instance() { - return reinterpret_cast( - &_GetOrExtendReservationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(GetOrExtendReservationRequest* other); - friend void swap(GetOrExtendReservationRequest& a, GetOrExtendReservationRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetOrExtendReservationRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetOrExtendReservationRequest* 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 GetOrExtendReservationRequest& from); - void MergeFrom(const GetOrExtendReservationRequest& 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(GetOrExtendReservationRequest* 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 ------------------------------------------------------- - - // string owner_id = 2; - void clear_owner_id(); - static const int kOwnerIdFieldNumber = 2; - const ::std::string& owner_id() const; - void set_owner_id(const ::std::string& value); - #if LANG_CXX11 - void set_owner_id(::std::string&& value); - #endif - void set_owner_id(const char* value); - void set_owner_id(const char* value, size_t size); - ::std::string* mutable_owner_id(); - ::std::string* release_owner_id(); - void set_allocated_owner_id(::std::string* owner_id); - - // .datacatalog.ReservationID reservation_id = 1; - bool has_reservation_id() const; - void clear_reservation_id(); - static const int kReservationIdFieldNumber = 1; - const ::datacatalog::ReservationID& reservation_id() const; - ::datacatalog::ReservationID* release_reservation_id(); - ::datacatalog::ReservationID* mutable_reservation_id(); - void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); - - // .google.protobuf.Duration heartbeat_interval = 3; - bool has_heartbeat_interval() const; - void clear_heartbeat_interval(); - static const int kHeartbeatIntervalFieldNumber = 3; - const ::google::protobuf::Duration& heartbeat_interval() const; - ::google::protobuf::Duration* release_heartbeat_interval(); - ::google::protobuf::Duration* mutable_heartbeat_interval(); - void set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval); - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr owner_id_; - ::datacatalog::ReservationID* reservation_id_; - ::google::protobuf::Duration* heartbeat_interval_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Reservation final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Reservation) */ { - public: - Reservation(); - virtual ~Reservation(); - - Reservation(const Reservation& from); - - inline Reservation& operator=(const Reservation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Reservation(Reservation&& from) noexcept - : Reservation() { - *this = ::std::move(from); - } - - inline Reservation& operator=(Reservation&& 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 Reservation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Reservation* internal_default_instance() { - return reinterpret_cast( - &_Reservation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void Swap(Reservation* other); - friend void swap(Reservation& a, Reservation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Reservation* New() const final { - return CreateMaybeMessage(nullptr); - } - - Reservation* 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 Reservation& from); - void MergeFrom(const Reservation& 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(Reservation* 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 ------------------------------------------------------- - - // string owner_id = 2; - void clear_owner_id(); - static const int kOwnerIdFieldNumber = 2; - const ::std::string& owner_id() const; - void set_owner_id(const ::std::string& value); - #if LANG_CXX11 - void set_owner_id(::std::string&& value); - #endif - void set_owner_id(const char* value); - void set_owner_id(const char* value, size_t size); - ::std::string* mutable_owner_id(); - ::std::string* release_owner_id(); - void set_allocated_owner_id(::std::string* owner_id); - - // .datacatalog.ReservationID reservation_id = 1; - bool has_reservation_id() const; - void clear_reservation_id(); - static const int kReservationIdFieldNumber = 1; - const ::datacatalog::ReservationID& reservation_id() const; - ::datacatalog::ReservationID* release_reservation_id(); - ::datacatalog::ReservationID* mutable_reservation_id(); - void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); - - // .google.protobuf.Duration heartbeat_interval = 3; - bool has_heartbeat_interval() const; - void clear_heartbeat_interval(); - static const int kHeartbeatIntervalFieldNumber = 3; - const ::google::protobuf::Duration& heartbeat_interval() const; - ::google::protobuf::Duration* release_heartbeat_interval(); - ::google::protobuf::Duration* mutable_heartbeat_interval(); - void set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval); - - // .google.protobuf.Timestamp expires_at = 4; - bool has_expires_at() const; - void clear_expires_at(); - static const int kExpiresAtFieldNumber = 4; - const ::google::protobuf::Timestamp& expires_at() const; - ::google::protobuf::Timestamp* release_expires_at(); - ::google::protobuf::Timestamp* mutable_expires_at(); - void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); - - // .datacatalog.Metadata metadata = 6; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 6; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // @@protoc_insertion_point(class_scope:datacatalog.Reservation) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr owner_id_; - ::datacatalog::ReservationID* reservation_id_; - ::google::protobuf::Duration* heartbeat_interval_; - ::google::protobuf::Timestamp* expires_at_; - ::datacatalog::Metadata* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class GetOrExtendReservationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.GetOrExtendReservationResponse) */ { - public: - GetOrExtendReservationResponse(); - virtual ~GetOrExtendReservationResponse(); - - GetOrExtendReservationResponse(const GetOrExtendReservationResponse& from); - - inline GetOrExtendReservationResponse& operator=(const GetOrExtendReservationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetOrExtendReservationResponse(GetOrExtendReservationResponse&& from) noexcept - : GetOrExtendReservationResponse() { - *this = ::std::move(from); - } - - inline GetOrExtendReservationResponse& operator=(GetOrExtendReservationResponse&& 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 GetOrExtendReservationResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetOrExtendReservationResponse* internal_default_instance() { - return reinterpret_cast( - &_GetOrExtendReservationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(GetOrExtendReservationResponse* other); - friend void swap(GetOrExtendReservationResponse& a, GetOrExtendReservationResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetOrExtendReservationResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetOrExtendReservationResponse* 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 GetOrExtendReservationResponse& from); - void MergeFrom(const GetOrExtendReservationResponse& 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(GetOrExtendReservationResponse* 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 ------------------------------------------------------- - - // .datacatalog.Reservation reservation = 1; - bool has_reservation() const; - void clear_reservation(); - static const int kReservationFieldNumber = 1; - const ::datacatalog::Reservation& reservation() const; - ::datacatalog::Reservation* release_reservation(); - ::datacatalog::Reservation* mutable_reservation(); - void set_allocated_reservation(::datacatalog::Reservation* reservation); - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::datacatalog::Reservation* reservation_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ReleaseReservationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationRequest) */ { - public: - ReleaseReservationRequest(); - virtual ~ReleaseReservationRequest(); - - ReleaseReservationRequest(const ReleaseReservationRequest& from); - - inline ReleaseReservationRequest& operator=(const ReleaseReservationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReleaseReservationRequest(ReleaseReservationRequest&& from) noexcept - : ReleaseReservationRequest() { - *this = ::std::move(from); - } - - inline ReleaseReservationRequest& operator=(ReleaseReservationRequest&& 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 ReleaseReservationRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReleaseReservationRequest* internal_default_instance() { - return reinterpret_cast( - &_ReleaseReservationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void Swap(ReleaseReservationRequest* other); - friend void swap(ReleaseReservationRequest& a, ReleaseReservationRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReleaseReservationRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReleaseReservationRequest* 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 ReleaseReservationRequest& from); - void MergeFrom(const ReleaseReservationRequest& 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(ReleaseReservationRequest* 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 ------------------------------------------------------- - - // string owner_id = 2; - void clear_owner_id(); - static const int kOwnerIdFieldNumber = 2; - const ::std::string& owner_id() const; - void set_owner_id(const ::std::string& value); - #if LANG_CXX11 - void set_owner_id(::std::string&& value); - #endif - void set_owner_id(const char* value); - void set_owner_id(const char* value, size_t size); - ::std::string* mutable_owner_id(); - ::std::string* release_owner_id(); - void set_allocated_owner_id(::std::string* owner_id); - - // .datacatalog.ReservationID reservation_id = 1; - bool has_reservation_id() const; - void clear_reservation_id(); - static const int kReservationIdFieldNumber = 1; - const ::datacatalog::ReservationID& reservation_id() const; - ::datacatalog::ReservationID* release_reservation_id(); - ::datacatalog::ReservationID* mutable_reservation_id(); - void set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id); - - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr owner_id_; - ::datacatalog::ReservationID* reservation_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ReleaseReservationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ReleaseReservationResponse) */ { - public: - ReleaseReservationResponse(); - virtual ~ReleaseReservationResponse(); - - ReleaseReservationResponse(const ReleaseReservationResponse& from); - - inline ReleaseReservationResponse& operator=(const ReleaseReservationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReleaseReservationResponse(ReleaseReservationResponse&& from) noexcept - : ReleaseReservationResponse() { - *this = ::std::move(from); - } - - inline ReleaseReservationResponse& operator=(ReleaseReservationResponse&& 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 ReleaseReservationResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReleaseReservationResponse* internal_default_instance() { - return reinterpret_cast( - &_ReleaseReservationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(ReleaseReservationResponse* other); - friend void swap(ReleaseReservationResponse& a, ReleaseReservationResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReleaseReservationResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - ReleaseReservationResponse* 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 ReleaseReservationResponse& from); - void MergeFrom(const ReleaseReservationResponse& 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(ReleaseReservationResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Dataset final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Dataset) */ { - public: - Dataset(); - virtual ~Dataset(); - - Dataset(const Dataset& from); - - inline Dataset& operator=(const Dataset& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Dataset(Dataset&& from) noexcept - : Dataset() { - *this = ::std::move(from); - } - - inline Dataset& operator=(Dataset&& 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 Dataset& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Dataset* internal_default_instance() { - return reinterpret_cast( - &_Dataset_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(Dataset* other); - friend void swap(Dataset& a, Dataset& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Dataset* New() const final { - return CreateMaybeMessage(nullptr); - } - - Dataset* 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 Dataset& from); - void MergeFrom(const Dataset& 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(Dataset* 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 ------------------------------------------------------- - - // repeated string partitionKeys = 3; - int partitionkeys_size() const; - void clear_partitionkeys(); - static const int kPartitionKeysFieldNumber = 3; - const ::std::string& partitionkeys(int index) const; - ::std::string* mutable_partitionkeys(int index); - void set_partitionkeys(int index, const ::std::string& value); - #if LANG_CXX11 - void set_partitionkeys(int index, ::std::string&& value); - #endif - void set_partitionkeys(int index, const char* value); - void set_partitionkeys(int index, const char* value, size_t size); - ::std::string* add_partitionkeys(); - void add_partitionkeys(const ::std::string& value); - #if LANG_CXX11 - void add_partitionkeys(::std::string&& value); - #endif - void add_partitionkeys(const char* value); - void add_partitionkeys(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& partitionkeys() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_partitionkeys(); - - // .datacatalog.DatasetID id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::datacatalog::DatasetID& id() const; - ::datacatalog::DatasetID* release_id(); - ::datacatalog::DatasetID* mutable_id(); - void set_allocated_id(::datacatalog::DatasetID* id); - - // .datacatalog.Metadata metadata = 2; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // @@protoc_insertion_point(class_scope:datacatalog.Dataset) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> partitionkeys_; - ::datacatalog::DatasetID* id_; - ::datacatalog::Metadata* metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Partition final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Partition) */ { - public: - Partition(); - virtual ~Partition(); - - Partition(const Partition& from); - - inline Partition& operator=(const Partition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Partition(Partition&& from) noexcept - : Partition() { - *this = ::std::move(from); - } - - inline Partition& operator=(Partition&& 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 Partition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Partition* internal_default_instance() { - return reinterpret_cast( - &_Partition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - void Swap(Partition* other); - friend void swap(Partition& a, Partition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Partition* New() const final { - return CreateMaybeMessage(nullptr); - } - - Partition* 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 Partition& from); - void MergeFrom(const Partition& 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(Partition* 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 ------------------------------------------------------- - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // @@protoc_insertion_point(class_scope:datacatalog.Partition) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class DatasetID final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetID) */ { - public: - DatasetID(); - virtual ~DatasetID(); - - DatasetID(const DatasetID& from); - - inline DatasetID& operator=(const DatasetID& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DatasetID(DatasetID&& from) noexcept - : DatasetID() { - *this = ::std::move(from); - } - - inline DatasetID& operator=(DatasetID&& 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 DatasetID& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DatasetID* internal_default_instance() { - return reinterpret_cast( - &_DatasetID_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void Swap(DatasetID* other); - friend void swap(DatasetID& a, DatasetID& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DatasetID* New() const final { - return CreateMaybeMessage(nullptr); - } - - DatasetID* 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 DatasetID& from); - void MergeFrom(const DatasetID& 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(DatasetID* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string domain = 3; - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string version = 4; - void clear_version(); - static const int kVersionFieldNumber = 4; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - // string UUID = 5; - void clear_uuid(); - static const int kUUIDFieldNumber = 5; - const ::std::string& uuid() const; - void set_uuid(const ::std::string& value); - #if LANG_CXX11 - void set_uuid(::std::string&& value); - #endif - void set_uuid(const char* value); - void set_uuid(const char* value, size_t size); - ::std::string* mutable_uuid(); - ::std::string* release_uuid(); - void set_allocated_uuid(::std::string* uuid); - - // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr version_; - ::google::protobuf::internal::ArenaStringPtr uuid_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Artifact final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Artifact) */ { - public: - Artifact(); - virtual ~Artifact(); - - Artifact(const Artifact& from); - - inline Artifact& operator=(const Artifact& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Artifact(Artifact&& from) noexcept - : Artifact() { - *this = ::std::move(from); - } - - inline Artifact& operator=(Artifact&& 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 Artifact& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Artifact* internal_default_instance() { - return reinterpret_cast( - &_Artifact_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - void Swap(Artifact* other); - friend void swap(Artifact& a, Artifact& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Artifact* New() const final { - return CreateMaybeMessage(nullptr); - } - - Artifact* 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 Artifact& from); - void MergeFrom(const Artifact& 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(Artifact* 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 ------------------------------------------------------- - - // repeated .datacatalog.ArtifactData data = 3; - int data_size() const; - void clear_data(); - static const int kDataFieldNumber = 3; - ::datacatalog::ArtifactData* mutable_data(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* - mutable_data(); - const ::datacatalog::ArtifactData& data(int index) const; - ::datacatalog::ArtifactData* add_data(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& - data() const; - - // repeated .datacatalog.Partition partitions = 5; - int partitions_size() const; - void clear_partitions(); - static const int kPartitionsFieldNumber = 5; - ::datacatalog::Partition* mutable_partitions(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* - mutable_partitions(); - const ::datacatalog::Partition& partitions(int index) const; - ::datacatalog::Partition* add_partitions(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& - partitions() const; - - // repeated .datacatalog.Tag tags = 6; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 6; - ::datacatalog::Tag* mutable_tags(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* - mutable_tags(); - const ::datacatalog::Tag& tags(int index) const; - ::datacatalog::Tag* add_tags(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& - tags() const; - - // string id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::std::string& id() const; - void set_id(const ::std::string& value); - #if LANG_CXX11 - void set_id(::std::string&& value); - #endif - void set_id(const char* value); - void set_id(const char* value, size_t size); - ::std::string* mutable_id(); - ::std::string* release_id(); - void set_allocated_id(::std::string* id); - - // .datacatalog.DatasetID dataset = 2; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 2; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // .datacatalog.Metadata metadata = 4; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 4; - const ::datacatalog::Metadata& metadata() const; - ::datacatalog::Metadata* release_metadata(); - ::datacatalog::Metadata* mutable_metadata(); - void set_allocated_metadata(::datacatalog::Metadata* metadata); - - // .google.protobuf.Timestamp created_at = 7; - bool has_created_at() const; - void clear_created_at(); - static const int kCreatedAtFieldNumber = 7; - const ::google::protobuf::Timestamp& created_at() const; - ::google::protobuf::Timestamp* release_created_at(); - ::google::protobuf::Timestamp* mutable_created_at(); - void set_allocated_created_at(::google::protobuf::Timestamp* created_at); - - // @@protoc_insertion_point(class_scope:datacatalog.Artifact) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData > data_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition > partitions_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag > tags_; - ::google::protobuf::internal::ArenaStringPtr id_; - ::datacatalog::DatasetID* dataset_; - ::datacatalog::Metadata* metadata_; - ::google::protobuf::Timestamp* created_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactData final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactData) */ { - public: - ArtifactData(); - virtual ~ArtifactData(); - - ArtifactData(const ArtifactData& from); - - inline ArtifactData& operator=(const ArtifactData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactData(ArtifactData&& from) noexcept - : ArtifactData() { - *this = ::std::move(from); - } - - inline ArtifactData& operator=(ArtifactData&& 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 ArtifactData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactData* internal_default_instance() { - return reinterpret_cast( - &_ArtifactData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - void Swap(ArtifactData* other); - friend void swap(ArtifactData& a, ArtifactData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactData* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactData* 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 ArtifactData& from); - void MergeFrom(const ArtifactData& 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(ArtifactData* 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 ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // .flyteidl.core.Literal value = 2; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::flyteidl::core::Literal& value() const; - ::flyteidl::core::Literal* release_value(); - ::flyteidl::core::Literal* mutable_value(); - void set_allocated_value(::flyteidl::core::Literal* value); - - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::flyteidl::core::Literal* value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Tag final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Tag) */ { - public: - Tag(); - virtual ~Tag(); - - Tag(const Tag& from); - - inline Tag& operator=(const Tag& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Tag(Tag&& from) noexcept - : Tag() { - *this = ::std::move(from); - } - - inline Tag& operator=(Tag&& 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 Tag& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Tag* internal_default_instance() { - return reinterpret_cast( - &_Tag_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - void Swap(Tag* other); - friend void swap(Tag& a, Tag& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Tag* New() const final { - return CreateMaybeMessage(nullptr); - } - - Tag* 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 Tag& from); - void MergeFrom(const Tag& 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(Tag* 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 ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string artifact_id = 2; - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 2; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - // .datacatalog.DatasetID dataset = 3; - bool has_dataset() const; - void clear_dataset(); - static const int kDatasetFieldNumber = 3; - const ::datacatalog::DatasetID& dataset() const; - ::datacatalog::DatasetID* release_dataset(); - ::datacatalog::DatasetID* mutable_dataset(); - void set_allocated_dataset(::datacatalog::DatasetID* dataset); - - // @@protoc_insertion_point(class_scope:datacatalog.Tag) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - ::datacatalog::DatasetID* dataset_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class Metadata_KeyMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - Metadata_KeyMapEntry_DoNotUse(); - Metadata_KeyMapEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Metadata_KeyMapEntry_DoNotUse& other); - static const Metadata_KeyMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Metadata_KeyMapEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Metadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.Metadata) */ { - public: - Metadata(); - virtual ~Metadata(); - - Metadata(const Metadata& from); - - inline Metadata& operator=(const Metadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Metadata(Metadata&& from) noexcept - : Metadata() { - *this = ::std::move(from); - } - - inline Metadata& operator=(Metadata&& 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 Metadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Metadata* internal_default_instance() { - return reinterpret_cast( - &_Metadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - void Swap(Metadata* other); - friend void swap(Metadata& a, Metadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Metadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - Metadata* 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 Metadata& from); - void MergeFrom(const Metadata& 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(Metadata* 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 ------------------------------------------------------- - - // map key_map = 1; - int key_map_size() const; - void clear_key_map(); - static const int kKeyMapFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - key_map() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_key_map(); - - // @@protoc_insertion_point(class_scope:datacatalog.Metadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - Metadata_KeyMapEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > key_map_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class FilterExpression final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.FilterExpression) */ { - public: - FilterExpression(); - virtual ~FilterExpression(); - - FilterExpression(const FilterExpression& from); - - inline FilterExpression& operator=(const FilterExpression& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FilterExpression(FilterExpression&& from) noexcept - : FilterExpression() { - *this = ::std::move(from); - } - - inline FilterExpression& operator=(FilterExpression&& 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 FilterExpression& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FilterExpression* internal_default_instance() { - return reinterpret_cast( - &_FilterExpression_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - void Swap(FilterExpression* other); - friend void swap(FilterExpression& a, FilterExpression& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FilterExpression* New() const final { - return CreateMaybeMessage(nullptr); - } - - FilterExpression* 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 FilterExpression& from); - void MergeFrom(const FilterExpression& 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(FilterExpression* 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 ------------------------------------------------------- - - // repeated .datacatalog.SinglePropertyFilter filters = 1; - int filters_size() const; - void clear_filters(); - static const int kFiltersFieldNumber = 1; - ::datacatalog::SinglePropertyFilter* mutable_filters(int index); - ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* - mutable_filters(); - const ::datacatalog::SinglePropertyFilter& filters(int index) const; - ::datacatalog::SinglePropertyFilter* add_filters(); - const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& - filters() const; - - // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter > filters_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class SinglePropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.SinglePropertyFilter) */ { - public: - SinglePropertyFilter(); - virtual ~SinglePropertyFilter(); - - SinglePropertyFilter(const SinglePropertyFilter& from); - - inline SinglePropertyFilter& operator=(const SinglePropertyFilter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SinglePropertyFilter(SinglePropertyFilter&& from) noexcept - : SinglePropertyFilter() { - *this = ::std::move(from); - } - - inline SinglePropertyFilter& operator=(SinglePropertyFilter&& 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 SinglePropertyFilter& default_instance(); - - enum PropertyFilterCase { - kTagFilter = 1, - kPartitionFilter = 2, - kArtifactFilter = 3, - kDatasetFilter = 4, - PROPERTY_FILTER_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SinglePropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_SinglePropertyFilter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - void Swap(SinglePropertyFilter* other); - friend void swap(SinglePropertyFilter& a, SinglePropertyFilter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SinglePropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); - } - - SinglePropertyFilter* 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 SinglePropertyFilter& from); - void MergeFrom(const SinglePropertyFilter& 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(SinglePropertyFilter* 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 ---------------------------------------------------- - - typedef SinglePropertyFilter_ComparisonOperator ComparisonOperator; - static const ComparisonOperator EQUALS = - SinglePropertyFilter_ComparisonOperator_EQUALS; - static inline bool ComparisonOperator_IsValid(int value) { - return SinglePropertyFilter_ComparisonOperator_IsValid(value); - } - static const ComparisonOperator ComparisonOperator_MIN = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MIN; - static const ComparisonOperator ComparisonOperator_MAX = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_MAX; - static const int ComparisonOperator_ARRAYSIZE = - SinglePropertyFilter_ComparisonOperator_ComparisonOperator_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ComparisonOperator_descriptor() { - return SinglePropertyFilter_ComparisonOperator_descriptor(); - } - static inline const ::std::string& ComparisonOperator_Name(ComparisonOperator value) { - return SinglePropertyFilter_ComparisonOperator_Name(value); - } - static inline bool ComparisonOperator_Parse(const ::std::string& name, - ComparisonOperator* value) { - return SinglePropertyFilter_ComparisonOperator_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - void clear_operator_(); - static const int kOperatorFieldNumber = 10; - ::datacatalog::SinglePropertyFilter_ComparisonOperator operator_() const; - void set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value); - - // .datacatalog.TagPropertyFilter tag_filter = 1; - bool has_tag_filter() const; - void clear_tag_filter(); - static const int kTagFilterFieldNumber = 1; - const ::datacatalog::TagPropertyFilter& tag_filter() const; - ::datacatalog::TagPropertyFilter* release_tag_filter(); - ::datacatalog::TagPropertyFilter* mutable_tag_filter(); - void set_allocated_tag_filter(::datacatalog::TagPropertyFilter* tag_filter); - - // .datacatalog.PartitionPropertyFilter partition_filter = 2; - bool has_partition_filter() const; - void clear_partition_filter(); - static const int kPartitionFilterFieldNumber = 2; - const ::datacatalog::PartitionPropertyFilter& partition_filter() const; - ::datacatalog::PartitionPropertyFilter* release_partition_filter(); - ::datacatalog::PartitionPropertyFilter* mutable_partition_filter(); - void set_allocated_partition_filter(::datacatalog::PartitionPropertyFilter* partition_filter); - - // .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - bool has_artifact_filter() const; - void clear_artifact_filter(); - static const int kArtifactFilterFieldNumber = 3; - const ::datacatalog::ArtifactPropertyFilter& artifact_filter() const; - ::datacatalog::ArtifactPropertyFilter* release_artifact_filter(); - ::datacatalog::ArtifactPropertyFilter* mutable_artifact_filter(); - void set_allocated_artifact_filter(::datacatalog::ArtifactPropertyFilter* artifact_filter); - - // .datacatalog.DatasetPropertyFilter dataset_filter = 4; - bool has_dataset_filter() const; - void clear_dataset_filter(); - static const int kDatasetFilterFieldNumber = 4; - const ::datacatalog::DatasetPropertyFilter& dataset_filter() const; - ::datacatalog::DatasetPropertyFilter* release_dataset_filter(); - ::datacatalog::DatasetPropertyFilter* mutable_dataset_filter(); - void set_allocated_dataset_filter(::datacatalog::DatasetPropertyFilter* dataset_filter); - - void clear_property_filter(); - PropertyFilterCase property_filter_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) - private: - class HasBitSetters; - void set_has_tag_filter(); - void set_has_partition_filter(); - void set_has_artifact_filter(); - void set_has_dataset_filter(); - - inline bool has_property_filter() const; - inline void clear_has_property_filter(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int operator__; - union PropertyFilterUnion { - PropertyFilterUnion() {} - ::datacatalog::TagPropertyFilter* tag_filter_; - ::datacatalog::PartitionPropertyFilter* partition_filter_; - ::datacatalog::ArtifactPropertyFilter* artifact_filter_; - ::datacatalog::DatasetPropertyFilter* dataset_filter_; - } property_filter_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class ArtifactPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.ArtifactPropertyFilter) */ { - public: - ArtifactPropertyFilter(); - virtual ~ArtifactPropertyFilter(); - - ArtifactPropertyFilter(const ArtifactPropertyFilter& from); - - inline ArtifactPropertyFilter& operator=(const ArtifactPropertyFilter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArtifactPropertyFilter(ArtifactPropertyFilter&& from) noexcept - : ArtifactPropertyFilter() { - *this = ::std::move(from); - } - - inline ArtifactPropertyFilter& operator=(ArtifactPropertyFilter&& 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 ArtifactPropertyFilter& default_instance(); - - enum PropertyCase { - kArtifactId = 1, - PROPERTY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArtifactPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_ArtifactPropertyFilter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - void Swap(ArtifactPropertyFilter* other); - friend void swap(ArtifactPropertyFilter& a, ArtifactPropertyFilter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArtifactPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArtifactPropertyFilter* 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 ArtifactPropertyFilter& from); - void MergeFrom(const ArtifactPropertyFilter& 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(ArtifactPropertyFilter* 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 ------------------------------------------------------- - - // string artifact_id = 1; - private: - bool has_artifact_id() const; - public: - void clear_artifact_id(); - static const int kArtifactIdFieldNumber = 1; - const ::std::string& artifact_id() const; - void set_artifact_id(const ::std::string& value); - #if LANG_CXX11 - void set_artifact_id(::std::string&& value); - #endif - void set_artifact_id(const char* value); - void set_artifact_id(const char* value, size_t size); - ::std::string* mutable_artifact_id(); - ::std::string* release_artifact_id(); - void set_allocated_artifact_id(::std::string* artifact_id); - - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) - private: - class HasBitSetters; - void set_has_artifact_id(); - - inline bool has_property() const; - inline void clear_has_property(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr artifact_id_; - } property_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class TagPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.TagPropertyFilter) */ { - public: - TagPropertyFilter(); - virtual ~TagPropertyFilter(); - - TagPropertyFilter(const TagPropertyFilter& from); - - inline TagPropertyFilter& operator=(const TagPropertyFilter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TagPropertyFilter(TagPropertyFilter&& from) noexcept - : TagPropertyFilter() { - *this = ::std::move(from); - } - - inline TagPropertyFilter& operator=(TagPropertyFilter&& 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 TagPropertyFilter& default_instance(); - - enum PropertyCase { - kTagName = 1, - PROPERTY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TagPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_TagPropertyFilter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - void Swap(TagPropertyFilter* other); - friend void swap(TagPropertyFilter& a, TagPropertyFilter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TagPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); - } - - TagPropertyFilter* 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 TagPropertyFilter& from); - void MergeFrom(const TagPropertyFilter& 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(TagPropertyFilter* 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 ------------------------------------------------------- - - // string tag_name = 1; - private: - bool has_tag_name() const; - public: - void clear_tag_name(); - static const int kTagNameFieldNumber = 1; - const ::std::string& tag_name() const; - void set_tag_name(const ::std::string& value); - #if LANG_CXX11 - void set_tag_name(::std::string&& value); - #endif - void set_tag_name(const char* value); - void set_tag_name(const char* value, size_t size); - ::std::string* mutable_tag_name(); - ::std::string* release_tag_name(); - void set_allocated_tag_name(::std::string* tag_name); - - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) - private: - class HasBitSetters; - void set_has_tag_name(); - - inline bool has_property() const; - inline void clear_has_property(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr tag_name_; - } property_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class PartitionPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PartitionPropertyFilter) */ { - public: - PartitionPropertyFilter(); - virtual ~PartitionPropertyFilter(); - - PartitionPropertyFilter(const PartitionPropertyFilter& from); - - inline PartitionPropertyFilter& operator=(const PartitionPropertyFilter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PartitionPropertyFilter(PartitionPropertyFilter&& from) noexcept - : PartitionPropertyFilter() { - *this = ::std::move(from); - } - - inline PartitionPropertyFilter& operator=(PartitionPropertyFilter&& 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 PartitionPropertyFilter& default_instance(); - - enum PropertyCase { - kKeyVal = 1, - PROPERTY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PartitionPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_PartitionPropertyFilter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - void Swap(PartitionPropertyFilter* other); - friend void swap(PartitionPropertyFilter& a, PartitionPropertyFilter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PartitionPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); - } - - PartitionPropertyFilter* 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 PartitionPropertyFilter& from); - void MergeFrom(const PartitionPropertyFilter& 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(PartitionPropertyFilter* 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 ------------------------------------------------------- - - // .datacatalog.KeyValuePair key_val = 1; - bool has_key_val() const; - void clear_key_val(); - static const int kKeyValFieldNumber = 1; - const ::datacatalog::KeyValuePair& key_val() const; - ::datacatalog::KeyValuePair* release_key_val(); - ::datacatalog::KeyValuePair* mutable_key_val(); - void set_allocated_key_val(::datacatalog::KeyValuePair* key_val); - - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) - private: - class HasBitSetters; - void set_has_key_val(); - - inline bool has_property() const; - inline void clear_has_property(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::datacatalog::KeyValuePair* key_val_; - } property_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class KeyValuePair final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.KeyValuePair) */ { - public: - KeyValuePair(); - virtual ~KeyValuePair(); - - KeyValuePair(const KeyValuePair& from); - - inline KeyValuePair& operator=(const KeyValuePair& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - KeyValuePair(KeyValuePair&& from) noexcept - : KeyValuePair() { - *this = ::std::move(from); - } - - inline KeyValuePair& operator=(KeyValuePair&& 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 KeyValuePair& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KeyValuePair* internal_default_instance() { - return reinterpret_cast( - &_KeyValuePair_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - void Swap(KeyValuePair* other); - friend void swap(KeyValuePair& a, KeyValuePair& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline KeyValuePair* New() const final { - return CreateMaybeMessage(nullptr); - } - - KeyValuePair* 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 KeyValuePair& from); - void MergeFrom(const KeyValuePair& 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(KeyValuePair* 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 ------------------------------------------------------- - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - - // string value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - const ::std::string& value() const; - void set_value(const ::std::string& value); - #if LANG_CXX11 - void set_value(::std::string&& value); - #endif - void set_value(const char* value); - void set_value(const char* value, size_t size); - ::std::string* mutable_value(); - ::std::string* release_value(); - void set_allocated_value(::std::string* value); - - // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - ::google::protobuf::internal::ArenaStringPtr value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class DatasetPropertyFilter final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.DatasetPropertyFilter) */ { - public: - DatasetPropertyFilter(); - virtual ~DatasetPropertyFilter(); - - DatasetPropertyFilter(const DatasetPropertyFilter& from); - - inline DatasetPropertyFilter& operator=(const DatasetPropertyFilter& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DatasetPropertyFilter(DatasetPropertyFilter&& from) noexcept - : DatasetPropertyFilter() { - *this = ::std::move(from); - } - - inline DatasetPropertyFilter& operator=(DatasetPropertyFilter&& 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 DatasetPropertyFilter& default_instance(); - - enum PropertyCase { - kProject = 1, - kName = 2, - kDomain = 3, - kVersion = 4, - PROPERTY_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DatasetPropertyFilter* internal_default_instance() { - return reinterpret_cast( - &_DatasetPropertyFilter_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - void Swap(DatasetPropertyFilter* other); - friend void swap(DatasetPropertyFilter& a, DatasetPropertyFilter& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DatasetPropertyFilter* New() const final { - return CreateMaybeMessage(nullptr); - } - - DatasetPropertyFilter* 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 DatasetPropertyFilter& from); - void MergeFrom(const DatasetPropertyFilter& 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(DatasetPropertyFilter* 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 ------------------------------------------------------- - - // string project = 1; - private: - bool has_project() const; - public: - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string name = 2; - private: - bool has_name() const; - public: - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string domain = 3; - private: - bool has_domain() const; - public: - void clear_domain(); - static const int kDomainFieldNumber = 3; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string version = 4; - private: - bool has_version() const; - public: - void clear_version(); - static const int kVersionFieldNumber = 4; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - - void clear_property(); - PropertyCase property_case() const; - // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) - private: - class HasBitSetters; - void set_has_project(); - void set_has_name(); - void set_has_domain(); - void set_has_version(); - - inline bool has_property() const; - inline void clear_has_property(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union PropertyUnion { - PropertyUnion() {} - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr version_; - } property_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// ------------------------------------------------------------------- - -class PaginationOptions final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:datacatalog.PaginationOptions) */ { - public: - PaginationOptions(); - virtual ~PaginationOptions(); - - PaginationOptions(const PaginationOptions& from); - - inline PaginationOptions& operator=(const PaginationOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PaginationOptions(PaginationOptions&& from) noexcept - : PaginationOptions() { - *this = ::std::move(from); - } - - inline PaginationOptions& operator=(PaginationOptions&& 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 PaginationOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PaginationOptions* internal_default_instance() { - return reinterpret_cast( - &_PaginationOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - void Swap(PaginationOptions* other); - friend void swap(PaginationOptions& a, PaginationOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PaginationOptions* New() const final { - return CreateMaybeMessage(nullptr); - } - - PaginationOptions* 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 PaginationOptions& from); - void MergeFrom(const PaginationOptions& 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(PaginationOptions* 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 ---------------------------------------------------- - - typedef PaginationOptions_SortOrder SortOrder; - static const SortOrder DESCENDING = - PaginationOptions_SortOrder_DESCENDING; - static const SortOrder ASCENDING = - PaginationOptions_SortOrder_ASCENDING; - static inline bool SortOrder_IsValid(int value) { - return PaginationOptions_SortOrder_IsValid(value); - } - static const SortOrder SortOrder_MIN = - PaginationOptions_SortOrder_SortOrder_MIN; - static const SortOrder SortOrder_MAX = - PaginationOptions_SortOrder_SortOrder_MAX; - static const int SortOrder_ARRAYSIZE = - PaginationOptions_SortOrder_SortOrder_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SortOrder_descriptor() { - return PaginationOptions_SortOrder_descriptor(); - } - static inline const ::std::string& SortOrder_Name(SortOrder value) { - return PaginationOptions_SortOrder_Name(value); - } - static inline bool SortOrder_Parse(const ::std::string& name, - SortOrder* value) { - return PaginationOptions_SortOrder_Parse(name, value); - } - - typedef PaginationOptions_SortKey SortKey; - static const SortKey CREATION_TIME = - PaginationOptions_SortKey_CREATION_TIME; - static inline bool SortKey_IsValid(int value) { - return PaginationOptions_SortKey_IsValid(value); - } - static const SortKey SortKey_MIN = - PaginationOptions_SortKey_SortKey_MIN; - static const SortKey SortKey_MAX = - PaginationOptions_SortKey_SortKey_MAX; - static const int SortKey_ARRAYSIZE = - PaginationOptions_SortKey_SortKey_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - SortKey_descriptor() { - return PaginationOptions_SortKey_descriptor(); - } - static inline const ::std::string& SortKey_Name(SortKey value) { - return PaginationOptions_SortKey_Name(value); - } - static inline bool SortKey_Parse(const ::std::string& name, - SortKey* value) { - return PaginationOptions_SortKey_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string token = 2; - void clear_token(); - static const int kTokenFieldNumber = 2; - const ::std::string& token() const; - void set_token(const ::std::string& value); - #if LANG_CXX11 - void set_token(::std::string&& value); - #endif - void set_token(const char* value); - void set_token(const char* value, size_t size); - ::std::string* mutable_token(); - ::std::string* release_token(); - void set_allocated_token(::std::string* token); - - // uint32 limit = 1; - void clear_limit(); - static const int kLimitFieldNumber = 1; - ::google::protobuf::uint32 limit() const; - void set_limit(::google::protobuf::uint32 value); - - // .datacatalog.PaginationOptions.SortKey sortKey = 3; - void clear_sortkey(); - static const int kSortKeyFieldNumber = 3; - ::datacatalog::PaginationOptions_SortKey sortkey() const; - void set_sortkey(::datacatalog::PaginationOptions_SortKey value); - - // .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - void clear_sortorder(); - static const int kSortOrderFieldNumber = 4; - ::datacatalog::PaginationOptions_SortOrder sortorder() const; - void set_sortorder(::datacatalog::PaginationOptions_SortOrder value); - - // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr token_; - ::google::protobuf::uint32 limit_; - int sortkey_; - int sortorder_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fdatacatalog_2fdatacatalog_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CreateDatasetRequest - -// .datacatalog.Dataset dataset = 1; -inline bool CreateDatasetRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void CreateDatasetRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::Dataset& CreateDatasetRequest::dataset() const { - const ::datacatalog::Dataset* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.CreateDatasetRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Dataset_default_instance_); -} -inline ::datacatalog::Dataset* CreateDatasetRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.CreateDatasetRequest.dataset) - - ::datacatalog::Dataset* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::Dataset* CreateDatasetRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.CreateDatasetRequest.dataset) - return dataset_; -} -inline void CreateDatasetRequest::set_allocated_dataset(::datacatalog::Dataset* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateDatasetRequest.dataset) -} - -// ------------------------------------------------------------------- - -// CreateDatasetResponse - -// ------------------------------------------------------------------- - -// GetDatasetRequest - -// .datacatalog.DatasetID dataset = 1; -inline bool GetDatasetRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void GetDatasetRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& GetDatasetRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetDatasetRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* GetDatasetRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetDatasetRequest.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* GetDatasetRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetRequest.dataset) - return dataset_; -} -inline void GetDatasetRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetRequest.dataset) -} - -// ------------------------------------------------------------------- - -// GetDatasetResponse - -// .datacatalog.Dataset dataset = 1; -inline bool GetDatasetResponse::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void GetDatasetResponse::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::Dataset& GetDatasetResponse::dataset() const { - const ::datacatalog::Dataset* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetDatasetResponse.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Dataset_default_instance_); -} -inline ::datacatalog::Dataset* GetDatasetResponse::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetDatasetResponse.dataset) - - ::datacatalog::Dataset* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::Dataset* GetDatasetResponse::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Dataset>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetDatasetResponse.dataset) - return dataset_; -} -inline void GetDatasetResponse::set_allocated_dataset(::datacatalog::Dataset* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetDatasetResponse.dataset) -} - -// ------------------------------------------------------------------- - -// GetArtifactRequest - -// .datacatalog.DatasetID dataset = 1; -inline bool GetArtifactRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void GetArtifactRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& GetArtifactRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* GetArtifactRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* GetArtifactRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.dataset) - return dataset_; -} -inline void GetArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.dataset) -} - -// string artifact_id = 2; -inline bool GetArtifactRequest::has_artifact_id() const { - return query_handle_case() == kArtifactId; -} -inline void GetArtifactRequest::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline void GetArtifactRequest::clear_artifact_id() { - if (has_artifact_id()) { - query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } -} -inline const ::std::string& GetArtifactRequest::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.artifact_id) - if (has_artifact_id()) { - return query_handle_.artifact_id_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void GetArtifactRequest::set_artifact_id(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) -} -#if LANG_CXX11 -inline void GetArtifactRequest::set_artifact_id(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.artifact_id) - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.artifact_id) -} -#endif -inline void GetArtifactRequest::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.artifact_id) -} -inline void GetArtifactRequest::set_artifact_id(const char* value, size_t size) { - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.artifact_id) -} -inline ::std::string* GetArtifactRequest::mutable_artifact_id() { - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.artifact_id) - return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetArtifactRequest::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.artifact_id) - if (has_artifact_id()) { - clear_has_query_handle(); - return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void GetArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { - if (has_query_handle()) { - clear_query_handle(); - } - if (artifact_id != nullptr) { - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.artifact_id) -} - -// string tag_name = 3; -inline bool GetArtifactRequest::has_tag_name() const { - return query_handle_case() == kTagName; -} -inline void GetArtifactRequest::set_has_tag_name() { - _oneof_case_[0] = kTagName; -} -inline void GetArtifactRequest::clear_tag_name() { - if (has_tag_name()) { - query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } -} -inline const ::std::string& GetArtifactRequest::tag_name() const { - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactRequest.tag_name) - if (has_tag_name()) { - return query_handle_.tag_name_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void GetArtifactRequest::set_tag_name(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) -} -#if LANG_CXX11 -inline void GetArtifactRequest::set_tag_name(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.GetArtifactRequest.tag_name) - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetArtifactRequest.tag_name) -} -#endif -inline void GetArtifactRequest::set_tag_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.GetArtifactRequest.tag_name) -} -inline void GetArtifactRequest::set_tag_name(const char* value, size_t size) { - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.GetArtifactRequest.tag_name) -} -inline ::std::string* GetArtifactRequest::mutable_tag_name() { - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactRequest.tag_name) - return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetArtifactRequest::release_tag_name() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactRequest.tag_name) - if (has_tag_name()) { - clear_has_query_handle(); - return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void GetArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { - if (has_query_handle()) { - clear_query_handle(); - } - if (tag_name != nullptr) { - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(tag_name); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactRequest.tag_name) -} - -inline bool GetArtifactRequest::has_query_handle() const { - return query_handle_case() != QUERY_HANDLE_NOT_SET; -} -inline void GetArtifactRequest::clear_has_query_handle() { - _oneof_case_[0] = QUERY_HANDLE_NOT_SET; -} -inline GetArtifactRequest::QueryHandleCase GetArtifactRequest::query_handle_case() const { - return GetArtifactRequest::QueryHandleCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// GetArtifactResponse - -// .datacatalog.Artifact artifact = 1; -inline bool GetArtifactResponse::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; -} -inline void GetArtifactResponse::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; -} -inline const ::datacatalog::Artifact& GetArtifactResponse::artifact() const { - const ::datacatalog::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:datacatalog.GetArtifactResponse.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Artifact_default_instance_); -} -inline ::datacatalog::Artifact* GetArtifactResponse::release_artifact() { - // @@protoc_insertion_point(field_release:datacatalog.GetArtifactResponse.artifact) - - ::datacatalog::Artifact* temp = artifact_; - artifact_ = nullptr; - return temp; -} -inline ::datacatalog::Artifact* GetArtifactResponse::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetArtifactResponse.artifact) - return artifact_; -} -inline void GetArtifactResponse::set_allocated_artifact(::datacatalog::Artifact* artifact) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_; - } - if (artifact) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); - } - - } else { - - } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetArtifactResponse.artifact) -} - -// ------------------------------------------------------------------- - -// CreateArtifactRequest - -// .datacatalog.Artifact artifact = 1; -inline bool CreateArtifactRequest::has_artifact() const { - return this != internal_default_instance() && artifact_ != nullptr; -} -inline void CreateArtifactRequest::clear_artifact() { - if (GetArenaNoVirtual() == nullptr && artifact_ != nullptr) { - delete artifact_; - } - artifact_ = nullptr; -} -inline const ::datacatalog::Artifact& CreateArtifactRequest::artifact() const { - const ::datacatalog::Artifact* p = artifact_; - // @@protoc_insertion_point(field_get:datacatalog.CreateArtifactRequest.artifact) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Artifact_default_instance_); -} -inline ::datacatalog::Artifact* CreateArtifactRequest::release_artifact() { - // @@protoc_insertion_point(field_release:datacatalog.CreateArtifactRequest.artifact) - - ::datacatalog::Artifact* temp = artifact_; - artifact_ = nullptr; - return temp; -} -inline ::datacatalog::Artifact* CreateArtifactRequest::mutable_artifact() { - - if (artifact_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Artifact>(GetArenaNoVirtual()); - artifact_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.CreateArtifactRequest.artifact) - return artifact_; -} -inline void CreateArtifactRequest::set_allocated_artifact(::datacatalog::Artifact* artifact) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete artifact_; - } - if (artifact) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - artifact = ::google::protobuf::internal::GetOwnedMessage( - message_arena, artifact, submessage_arena); - } - - } else { - - } - artifact_ = artifact; - // @@protoc_insertion_point(field_set_allocated:datacatalog.CreateArtifactRequest.artifact) -} - -// ------------------------------------------------------------------- - -// CreateArtifactResponse - -// ------------------------------------------------------------------- - -// AddTagRequest - -// .datacatalog.Tag tag = 1; -inline bool AddTagRequest::has_tag() const { - return this != internal_default_instance() && tag_ != nullptr; -} -inline void AddTagRequest::clear_tag() { - if (GetArenaNoVirtual() == nullptr && tag_ != nullptr) { - delete tag_; - } - tag_ = nullptr; -} -inline const ::datacatalog::Tag& AddTagRequest::tag() const { - const ::datacatalog::Tag* p = tag_; - // @@protoc_insertion_point(field_get:datacatalog.AddTagRequest.tag) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Tag_default_instance_); -} -inline ::datacatalog::Tag* AddTagRequest::release_tag() { - // @@protoc_insertion_point(field_release:datacatalog.AddTagRequest.tag) - - ::datacatalog::Tag* temp = tag_; - tag_ = nullptr; - return temp; -} -inline ::datacatalog::Tag* AddTagRequest::mutable_tag() { - - if (tag_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Tag>(GetArenaNoVirtual()); - tag_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.AddTagRequest.tag) - return tag_; -} -inline void AddTagRequest::set_allocated_tag(::datacatalog::Tag* tag) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete tag_; - } - if (tag) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - tag = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tag, submessage_arena); - } - - } else { - - } - tag_ = tag; - // @@protoc_insertion_point(field_set_allocated:datacatalog.AddTagRequest.tag) -} - -// ------------------------------------------------------------------- - -// AddTagResponse - -// ------------------------------------------------------------------- - -// ListArtifactsRequest - -// .datacatalog.DatasetID dataset = 1; -inline bool ListArtifactsRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void ListArtifactsRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& ListArtifactsRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* ListArtifactsRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* ListArtifactsRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.dataset) - return dataset_; -} -inline void ListArtifactsRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.dataset) -} - -// .datacatalog.FilterExpression filter = 2; -inline bool ListArtifactsRequest::has_filter() const { - return this != internal_default_instance() && filter_ != nullptr; -} -inline void ListArtifactsRequest::clear_filter() { - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; - } - filter_ = nullptr; -} -inline const ::datacatalog::FilterExpression& ListArtifactsRequest::filter() const { - const ::datacatalog::FilterExpression* p = filter_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.filter) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_FilterExpression_default_instance_); -} -inline ::datacatalog::FilterExpression* ListArtifactsRequest::release_filter() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.filter) - - ::datacatalog::FilterExpression* temp = filter_; - filter_ = nullptr; - return temp; -} -inline ::datacatalog::FilterExpression* ListArtifactsRequest::mutable_filter() { - - if (filter_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); - filter_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.filter) - return filter_; -} -inline void ListArtifactsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete filter_; - } - if (filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, filter, submessage_arena); - } - - } else { - - } - filter_ = filter; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.filter) -} - -// .datacatalog.PaginationOptions pagination = 3; -inline bool ListArtifactsRequest::has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline void ListArtifactsRequest::clear_pagination() { - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::datacatalog::PaginationOptions& ListArtifactsRequest::pagination() const { - const ::datacatalog::PaginationOptions* p = pagination_; - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsRequest.pagination) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_PaginationOptions_default_instance_); -} -inline ::datacatalog::PaginationOptions* ListArtifactsRequest::release_pagination() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsRequest.pagination) - - ::datacatalog::PaginationOptions* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::datacatalog::PaginationOptions* ListArtifactsRequest::mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); - pagination_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsRequest.pagination) - return pagination_; -} -inline void ListArtifactsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pagination = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsRequest.pagination) -} - -// ------------------------------------------------------------------- - -// ListArtifactsResponse - -// repeated .datacatalog.Artifact artifacts = 1; -inline int ListArtifactsResponse::artifacts_size() const { - return artifacts_.size(); -} -inline void ListArtifactsResponse::clear_artifacts() { - artifacts_.Clear(); -} -inline ::datacatalog::Artifact* ListArtifactsResponse::mutable_artifacts(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >* -ListArtifactsResponse::mutable_artifacts() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.ListArtifactsResponse.artifacts) - return &artifacts_; -} -inline const ::datacatalog::Artifact& ListArtifactsResponse::artifacts(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Get(index); -} -inline ::datacatalog::Artifact* ListArtifactsResponse::add_artifacts() { - // @@protoc_insertion_point(field_add:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Artifact >& -ListArtifactsResponse::artifacts() const { - // @@protoc_insertion_point(field_list:datacatalog.ListArtifactsResponse.artifacts) - return artifacts_; -} - -// string next_token = 2; -inline void ListArtifactsResponse::clear_next_token() { - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ListArtifactsResponse::next_token() const { - // @@protoc_insertion_point(field_get:datacatalog.ListArtifactsResponse.next_token) - return next_token_.GetNoArena(); -} -inline void ListArtifactsResponse::set_next_token(const ::std::string& value) { - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ListArtifactsResponse.next_token) -} -#if LANG_CXX11 -inline void ListArtifactsResponse::set_next_token(::std::string&& value) { - - next_token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListArtifactsResponse.next_token) -} -#endif -inline void ListArtifactsResponse::set_next_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ListArtifactsResponse.next_token) -} -inline void ListArtifactsResponse::set_next_token(const char* value, size_t size) { - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ListArtifactsResponse.next_token) -} -inline ::std::string* ListArtifactsResponse::mutable_next_token() { - - // @@protoc_insertion_point(field_mutable:datacatalog.ListArtifactsResponse.next_token) - return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ListArtifactsResponse::release_next_token() { - // @@protoc_insertion_point(field_release:datacatalog.ListArtifactsResponse.next_token) - - return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ListArtifactsResponse::set_allocated_next_token(::std::string* next_token) { - if (next_token != nullptr) { - - } else { - - } - next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListArtifactsResponse.next_token) -} - -// ------------------------------------------------------------------- - -// ListDatasetsRequest - -// .datacatalog.FilterExpression filter = 1; -inline bool ListDatasetsRequest::has_filter() const { - return this != internal_default_instance() && filter_ != nullptr; -} -inline void ListDatasetsRequest::clear_filter() { - if (GetArenaNoVirtual() == nullptr && filter_ != nullptr) { - delete filter_; - } - filter_ = nullptr; -} -inline const ::datacatalog::FilterExpression& ListDatasetsRequest::filter() const { - const ::datacatalog::FilterExpression* p = filter_; - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.filter) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_FilterExpression_default_instance_); -} -inline ::datacatalog::FilterExpression* ListDatasetsRequest::release_filter() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.filter) - - ::datacatalog::FilterExpression* temp = filter_; - filter_ = nullptr; - return temp; -} -inline ::datacatalog::FilterExpression* ListDatasetsRequest::mutable_filter() { - - if (filter_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::FilterExpression>(GetArenaNoVirtual()); - filter_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.filter) - return filter_; -} -inline void ListDatasetsRequest::set_allocated_filter(::datacatalog::FilterExpression* filter) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete filter_; - } - if (filter) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - filter = ::google::protobuf::internal::GetOwnedMessage( - message_arena, filter, submessage_arena); - } - - } else { - - } - filter_ = filter; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.filter) -} - -// .datacatalog.PaginationOptions pagination = 2; -inline bool ListDatasetsRequest::has_pagination() const { - return this != internal_default_instance() && pagination_ != nullptr; -} -inline void ListDatasetsRequest::clear_pagination() { - if (GetArenaNoVirtual() == nullptr && pagination_ != nullptr) { - delete pagination_; - } - pagination_ = nullptr; -} -inline const ::datacatalog::PaginationOptions& ListDatasetsRequest::pagination() const { - const ::datacatalog::PaginationOptions* p = pagination_; - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsRequest.pagination) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_PaginationOptions_default_instance_); -} -inline ::datacatalog::PaginationOptions* ListDatasetsRequest::release_pagination() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsRequest.pagination) - - ::datacatalog::PaginationOptions* temp = pagination_; - pagination_ = nullptr; - return temp; -} -inline ::datacatalog::PaginationOptions* ListDatasetsRequest::mutable_pagination() { - - if (pagination_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::PaginationOptions>(GetArenaNoVirtual()); - pagination_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsRequest.pagination) - return pagination_; -} -inline void ListDatasetsRequest::set_allocated_pagination(::datacatalog::PaginationOptions* pagination) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete pagination_; - } - if (pagination) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pagination = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pagination, submessage_arena); - } - - } else { - - } - pagination_ = pagination; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsRequest.pagination) -} - -// ------------------------------------------------------------------- - -// ListDatasetsResponse - -// repeated .datacatalog.Dataset datasets = 1; -inline int ListDatasetsResponse::datasets_size() const { - return datasets_.size(); -} -inline void ListDatasetsResponse::clear_datasets() { - datasets_.Clear(); -} -inline ::datacatalog::Dataset* ListDatasetsResponse::mutable_datasets(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >* -ListDatasetsResponse::mutable_datasets() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.ListDatasetsResponse.datasets) - return &datasets_; -} -inline const ::datacatalog::Dataset& ListDatasetsResponse::datasets(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Get(index); -} -inline ::datacatalog::Dataset* ListDatasetsResponse::add_datasets() { - // @@protoc_insertion_point(field_add:datacatalog.ListDatasetsResponse.datasets) - return datasets_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Dataset >& -ListDatasetsResponse::datasets() const { - // @@protoc_insertion_point(field_list:datacatalog.ListDatasetsResponse.datasets) - return datasets_; -} - -// string next_token = 2; -inline void ListDatasetsResponse::clear_next_token() { - next_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ListDatasetsResponse::next_token() const { - // @@protoc_insertion_point(field_get:datacatalog.ListDatasetsResponse.next_token) - return next_token_.GetNoArena(); -} -inline void ListDatasetsResponse::set_next_token(const ::std::string& value) { - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ListDatasetsResponse.next_token) -} -#if LANG_CXX11 -inline void ListDatasetsResponse::set_next_token(::std::string&& value) { - - next_token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ListDatasetsResponse.next_token) -} -#endif -inline void ListDatasetsResponse::set_next_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ListDatasetsResponse.next_token) -} -inline void ListDatasetsResponse::set_next_token(const char* value, size_t size) { - - next_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ListDatasetsResponse.next_token) -} -inline ::std::string* ListDatasetsResponse::mutable_next_token() { - - // @@protoc_insertion_point(field_mutable:datacatalog.ListDatasetsResponse.next_token) - return next_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ListDatasetsResponse::release_next_token() { - // @@protoc_insertion_point(field_release:datacatalog.ListDatasetsResponse.next_token) - - return next_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ListDatasetsResponse::set_allocated_next_token(::std::string* next_token) { - if (next_token != nullptr) { - - } else { - - } - next_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), next_token); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ListDatasetsResponse.next_token) -} - -// ------------------------------------------------------------------- - -// UpdateArtifactRequest - -// .datacatalog.DatasetID dataset = 1; -inline bool UpdateArtifactRequest::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void UpdateArtifactRequest::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& UpdateArtifactRequest::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* UpdateArtifactRequest::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* UpdateArtifactRequest::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.dataset) - return dataset_; -} -inline void UpdateArtifactRequest::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.dataset) -} - -// string artifact_id = 2; -inline bool UpdateArtifactRequest::has_artifact_id() const { - return query_handle_case() == kArtifactId; -} -inline void UpdateArtifactRequest::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline void UpdateArtifactRequest::clear_artifact_id() { - if (has_artifact_id()) { - query_handle_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } -} -inline const ::std::string& UpdateArtifactRequest::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.artifact_id) - if (has_artifact_id()) { - return query_handle_.artifact_id_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void UpdateArtifactRequest::set_artifact_id(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) -} -#if LANG_CXX11 -inline void UpdateArtifactRequest::set_artifact_id(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.artifact_id) - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.artifact_id) -} -#endif -inline void UpdateArtifactRequest::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.artifact_id) -} -inline void UpdateArtifactRequest::set_artifact_id(const char* value, size_t size) { - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.artifact_id) -} -inline ::std::string* UpdateArtifactRequest::mutable_artifact_id() { - if (!has_artifact_id()) { - clear_query_handle(); - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.artifact_id) - return query_handle_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UpdateArtifactRequest::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.artifact_id) - if (has_artifact_id()) { - clear_has_query_handle(); - return query_handle_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void UpdateArtifactRequest::set_allocated_artifact_id(::std::string* artifact_id) { - if (has_query_handle()) { - clear_query_handle(); - } - if (artifact_id != nullptr) { - set_has_artifact_id(); - query_handle_.artifact_id_.UnsafeSetDefault(artifact_id); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.artifact_id) -} - -// string tag_name = 3; -inline bool UpdateArtifactRequest::has_tag_name() const { - return query_handle_case() == kTagName; -} -inline void UpdateArtifactRequest::set_has_tag_name() { - _oneof_case_[0] = kTagName; -} -inline void UpdateArtifactRequest::clear_tag_name() { - if (has_tag_name()) { - query_handle_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_query_handle(); - } -} -inline const ::std::string& UpdateArtifactRequest::tag_name() const { - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.tag_name) - if (has_tag_name()) { - return query_handle_.tag_name_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void UpdateArtifactRequest::set_tag_name(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) -} -#if LANG_CXX11 -inline void UpdateArtifactRequest::set_tag_name(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactRequest.tag_name) - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactRequest.tag_name) -} -#endif -inline void UpdateArtifactRequest::set_tag_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactRequest.tag_name) -} -inline void UpdateArtifactRequest::set_tag_name(const char* value, size_t size) { - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - query_handle_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactRequest.tag_name) -} -inline ::std::string* UpdateArtifactRequest::mutable_tag_name() { - if (!has_tag_name()) { - clear_query_handle(); - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.tag_name) - return query_handle_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UpdateArtifactRequest::release_tag_name() { - // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.tag_name) - if (has_tag_name()) { - clear_has_query_handle(); - return query_handle_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void UpdateArtifactRequest::set_allocated_tag_name(::std::string* tag_name) { - if (has_query_handle()) { - clear_query_handle(); - } - if (tag_name != nullptr) { - set_has_tag_name(); - query_handle_.tag_name_.UnsafeSetDefault(tag_name); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.tag_name) -} - -// repeated .datacatalog.ArtifactData data = 4; -inline int UpdateArtifactRequest::data_size() const { - return data_.size(); -} -inline void UpdateArtifactRequest::clear_data() { - data_.Clear(); -} -inline ::datacatalog::ArtifactData* UpdateArtifactRequest::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.data) - return data_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* -UpdateArtifactRequest::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.UpdateArtifactRequest.data) - return &data_; -} -inline const ::datacatalog::ArtifactData& UpdateArtifactRequest::data(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.data) - return data_.Get(index); -} -inline ::datacatalog::ArtifactData* UpdateArtifactRequest::add_data() { - // @@protoc_insertion_point(field_add:datacatalog.UpdateArtifactRequest.data) - return data_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& -UpdateArtifactRequest::data() const { - // @@protoc_insertion_point(field_list:datacatalog.UpdateArtifactRequest.data) - return data_; -} - -// .datacatalog.Metadata metadata = 5; -inline bool UpdateArtifactRequest::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void UpdateArtifactRequest::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::datacatalog::Metadata& UpdateArtifactRequest::metadata() const { - const ::datacatalog::Metadata* p = metadata_; - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactRequest.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Metadata_default_instance_); -} -inline ::datacatalog::Metadata* UpdateArtifactRequest::release_metadata() { - // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactRequest.metadata) - - ::datacatalog::Metadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::datacatalog::Metadata* UpdateArtifactRequest::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactRequest.metadata) - return metadata_; -} -inline void UpdateArtifactRequest::set_allocated_metadata(::datacatalog::Metadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactRequest.metadata) -} - -inline bool UpdateArtifactRequest::has_query_handle() const { - return query_handle_case() != QUERY_HANDLE_NOT_SET; -} -inline void UpdateArtifactRequest::clear_has_query_handle() { - _oneof_case_[0] = QUERY_HANDLE_NOT_SET; -} -inline UpdateArtifactRequest::QueryHandleCase UpdateArtifactRequest::query_handle_case() const { - return UpdateArtifactRequest::QueryHandleCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// UpdateArtifactResponse - -// string artifact_id = 1; -inline void UpdateArtifactResponse::clear_artifact_id() { - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UpdateArtifactResponse::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.UpdateArtifactResponse.artifact_id) - return artifact_id_.GetNoArena(); -} -inline void UpdateArtifactResponse::set_artifact_id(const ::std::string& value) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.UpdateArtifactResponse.artifact_id) -} -#if LANG_CXX11 -inline void UpdateArtifactResponse::set_artifact_id(::std::string&& value) { - - artifact_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.UpdateArtifactResponse.artifact_id) -} -#endif -inline void UpdateArtifactResponse::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.UpdateArtifactResponse.artifact_id) -} -inline void UpdateArtifactResponse::set_artifact_id(const char* value, size_t size) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.UpdateArtifactResponse.artifact_id) -} -inline ::std::string* UpdateArtifactResponse::mutable_artifact_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.UpdateArtifactResponse.artifact_id) - return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UpdateArtifactResponse::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.UpdateArtifactResponse.artifact_id) - - return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UpdateArtifactResponse::set_allocated_artifact_id(::std::string* artifact_id) { - if (artifact_id != nullptr) { - - } else { - - } - artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.UpdateArtifactResponse.artifact_id) -} - -// ------------------------------------------------------------------- - -// ReservationID - -// .datacatalog.DatasetID dataset_id = 1; -inline bool ReservationID::has_dataset_id() const { - return this != internal_default_instance() && dataset_id_ != nullptr; -} -inline void ReservationID::clear_dataset_id() { - if (GetArenaNoVirtual() == nullptr && dataset_id_ != nullptr) { - delete dataset_id_; - } - dataset_id_ = nullptr; -} -inline const ::datacatalog::DatasetID& ReservationID::dataset_id() const { - const ::datacatalog::DatasetID* p = dataset_id_; - // @@protoc_insertion_point(field_get:datacatalog.ReservationID.dataset_id) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* ReservationID::release_dataset_id() { - // @@protoc_insertion_point(field_release:datacatalog.ReservationID.dataset_id) - - ::datacatalog::DatasetID* temp = dataset_id_; - dataset_id_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* ReservationID::mutable_dataset_id() { - - if (dataset_id_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_id_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ReservationID.dataset_id) - return dataset_id_; -} -inline void ReservationID::set_allocated_dataset_id(::datacatalog::DatasetID* dataset_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_id_; - } - if (dataset_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset_id, submessage_arena); - } - - } else { - - } - dataset_id_ = dataset_id; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationID.dataset_id) -} - -// string tag_name = 2; -inline void ReservationID::clear_tag_name() { - tag_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ReservationID::tag_name() const { - // @@protoc_insertion_point(field_get:datacatalog.ReservationID.tag_name) - return tag_name_.GetNoArena(); -} -inline void ReservationID::set_tag_name(const ::std::string& value) { - - tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ReservationID.tag_name) -} -#if LANG_CXX11 -inline void ReservationID::set_tag_name(::std::string&& value) { - - tag_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReservationID.tag_name) -} -#endif -inline void ReservationID::set_tag_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ReservationID.tag_name) -} -inline void ReservationID::set_tag_name(const char* value, size_t size) { - - tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ReservationID.tag_name) -} -inline ::std::string* ReservationID::mutable_tag_name() { - - // @@protoc_insertion_point(field_mutable:datacatalog.ReservationID.tag_name) - return tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ReservationID::release_tag_name() { - // @@protoc_insertion_point(field_release:datacatalog.ReservationID.tag_name) - - return tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ReservationID::set_allocated_tag_name(::std::string* tag_name) { - if (tag_name != nullptr) { - - } else { - - } - tag_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag_name); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ReservationID.tag_name) -} - -// ------------------------------------------------------------------- - -// GetOrExtendReservationRequest - -// .datacatalog.ReservationID reservation_id = 1; -inline bool GetOrExtendReservationRequest::has_reservation_id() const { - return this != internal_default_instance() && reservation_id_ != nullptr; -} -inline void GetOrExtendReservationRequest::clear_reservation_id() { - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; -} -inline const ::datacatalog::ReservationID& GetOrExtendReservationRequest::reservation_id() const { - const ::datacatalog::ReservationID* p = reservation_id_; - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.reservation_id) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_ReservationID_default_instance_); -} -inline ::datacatalog::ReservationID* GetOrExtendReservationRequest::release_reservation_id() { - // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.reservation_id) - - ::datacatalog::ReservationID* temp = reservation_id_; - reservation_id_ = nullptr; - return temp; -} -inline ::datacatalog::ReservationID* GetOrExtendReservationRequest::mutable_reservation_id() { - - if (reservation_id_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); - reservation_id_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.reservation_id) - return reservation_id_; -} -inline void GetOrExtendReservationRequest::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reservation_id_; - } - if (reservation_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reservation_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reservation_id, submessage_arena); - } - - } else { - - } - reservation_id_ = reservation_id; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.reservation_id) -} - -// string owner_id = 2; -inline void GetOrExtendReservationRequest::clear_owner_id() { - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetOrExtendReservationRequest::owner_id() const { - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.owner_id) - return owner_id_.GetNoArena(); -} -inline void GetOrExtendReservationRequest::set_owner_id(const ::std::string& value) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.GetOrExtendReservationRequest.owner_id) -} -#if LANG_CXX11 -inline void GetOrExtendReservationRequest::set_owner_id(::std::string&& value) { - - owner_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.GetOrExtendReservationRequest.owner_id) -} -#endif -inline void GetOrExtendReservationRequest::set_owner_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.GetOrExtendReservationRequest.owner_id) -} -inline void GetOrExtendReservationRequest::set_owner_id(const char* value, size_t size) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.GetOrExtendReservationRequest.owner_id) -} -inline ::std::string* GetOrExtendReservationRequest::mutable_owner_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.owner_id) - return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetOrExtendReservationRequest::release_owner_id() { - // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.owner_id) - - return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetOrExtendReservationRequest::set_allocated_owner_id(::std::string* owner_id) { - if (owner_id != nullptr) { - - } else { - - } - owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.owner_id) -} - -// .google.protobuf.Duration heartbeat_interval = 3; -inline bool GetOrExtendReservationRequest::has_heartbeat_interval() const { - return this != internal_default_instance() && heartbeat_interval_ != nullptr; -} -inline const ::google::protobuf::Duration& GetOrExtendReservationRequest::heartbeat_interval() const { - const ::google::protobuf::Duration* p = heartbeat_interval_; - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* GetOrExtendReservationRequest::release_heartbeat_interval() { - // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) - - ::google::protobuf::Duration* temp = heartbeat_interval_; - heartbeat_interval_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* GetOrExtendReservationRequest::mutable_heartbeat_interval() { - - if (heartbeat_interval_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - heartbeat_interval_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) - return heartbeat_interval_; -} -inline void GetOrExtendReservationRequest::set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(heartbeat_interval_); - } - if (heartbeat_interval) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(heartbeat_interval)->GetArena(); - if (message_arena != submessage_arena) { - heartbeat_interval = ::google::protobuf::internal::GetOwnedMessage( - message_arena, heartbeat_interval, submessage_arena); - } - - } else { - - } - heartbeat_interval_ = heartbeat_interval; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationRequest.heartbeat_interval) -} - -// ------------------------------------------------------------------- - -// Reservation - -// .datacatalog.ReservationID reservation_id = 1; -inline bool Reservation::has_reservation_id() const { - return this != internal_default_instance() && reservation_id_ != nullptr; -} -inline void Reservation::clear_reservation_id() { - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; -} -inline const ::datacatalog::ReservationID& Reservation::reservation_id() const { - const ::datacatalog::ReservationID* p = reservation_id_; - // @@protoc_insertion_point(field_get:datacatalog.Reservation.reservation_id) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_ReservationID_default_instance_); -} -inline ::datacatalog::ReservationID* Reservation::release_reservation_id() { - // @@protoc_insertion_point(field_release:datacatalog.Reservation.reservation_id) - - ::datacatalog::ReservationID* temp = reservation_id_; - reservation_id_ = nullptr; - return temp; -} -inline ::datacatalog::ReservationID* Reservation::mutable_reservation_id() { - - if (reservation_id_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); - reservation_id_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.reservation_id) - return reservation_id_; -} -inline void Reservation::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reservation_id_; - } - if (reservation_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reservation_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reservation_id, submessage_arena); - } - - } else { - - } - reservation_id_ = reservation_id; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.reservation_id) -} - -// string owner_id = 2; -inline void Reservation::clear_owner_id() { - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Reservation::owner_id() const { - // @@protoc_insertion_point(field_get:datacatalog.Reservation.owner_id) - return owner_id_.GetNoArena(); -} -inline void Reservation::set_owner_id(const ::std::string& value) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Reservation.owner_id) -} -#if LANG_CXX11 -inline void Reservation::set_owner_id(::std::string&& value) { - - owner_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Reservation.owner_id) -} -#endif -inline void Reservation::set_owner_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Reservation.owner_id) -} -inline void Reservation::set_owner_id(const char* value, size_t size) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Reservation.owner_id) -} -inline ::std::string* Reservation::mutable_owner_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.owner_id) - return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Reservation::release_owner_id() { - // @@protoc_insertion_point(field_release:datacatalog.Reservation.owner_id) - - return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Reservation::set_allocated_owner_id(::std::string* owner_id) { - if (owner_id != nullptr) { - - } else { - - } - owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.owner_id) -} - -// .google.protobuf.Duration heartbeat_interval = 3; -inline bool Reservation::has_heartbeat_interval() const { - return this != internal_default_instance() && heartbeat_interval_ != nullptr; -} -inline const ::google::protobuf::Duration& Reservation::heartbeat_interval() const { - const ::google::protobuf::Duration* p = heartbeat_interval_; - // @@protoc_insertion_point(field_get:datacatalog.Reservation.heartbeat_interval) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* Reservation::release_heartbeat_interval() { - // @@protoc_insertion_point(field_release:datacatalog.Reservation.heartbeat_interval) - - ::google::protobuf::Duration* temp = heartbeat_interval_; - heartbeat_interval_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* Reservation::mutable_heartbeat_interval() { - - if (heartbeat_interval_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - heartbeat_interval_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.heartbeat_interval) - return heartbeat_interval_; -} -inline void Reservation::set_allocated_heartbeat_interval(::google::protobuf::Duration* heartbeat_interval) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(heartbeat_interval_); - } - if (heartbeat_interval) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(heartbeat_interval)->GetArena(); - if (message_arena != submessage_arena) { - heartbeat_interval = ::google::protobuf::internal::GetOwnedMessage( - message_arena, heartbeat_interval, submessage_arena); - } - - } else { - - } - heartbeat_interval_ = heartbeat_interval; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.heartbeat_interval) -} - -// .google.protobuf.Timestamp expires_at = 4; -inline bool Reservation::has_expires_at() const { - return this != internal_default_instance() && expires_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& Reservation::expires_at() const { - const ::google::protobuf::Timestamp* p = expires_at_; - // @@protoc_insertion_point(field_get:datacatalog.Reservation.expires_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Reservation::release_expires_at() { - // @@protoc_insertion_point(field_release:datacatalog.Reservation.expires_at) - - ::google::protobuf::Timestamp* temp = expires_at_; - expires_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Reservation::mutable_expires_at() { - - if (expires_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - expires_at_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.expires_at) - return expires_at_; -} -inline void Reservation::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); - } - if (expires_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); - if (message_arena != submessage_arena) { - expires_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_at, submessage_arena); - } - - } else { - - } - expires_at_ = expires_at; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.expires_at) -} - -// .datacatalog.Metadata metadata = 6; -inline bool Reservation::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void Reservation::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::datacatalog::Metadata& Reservation::metadata() const { - const ::datacatalog::Metadata* p = metadata_; - // @@protoc_insertion_point(field_get:datacatalog.Reservation.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Metadata_default_instance_); -} -inline ::datacatalog::Metadata* Reservation::release_metadata() { - // @@protoc_insertion_point(field_release:datacatalog.Reservation.metadata) - - ::datacatalog::Metadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::datacatalog::Metadata* Reservation::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Reservation.metadata) - return metadata_; -} -inline void Reservation::set_allocated_metadata(::datacatalog::Metadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Reservation.metadata) -} - -// ------------------------------------------------------------------- - -// GetOrExtendReservationResponse - -// .datacatalog.Reservation reservation = 1; -inline bool GetOrExtendReservationResponse::has_reservation() const { - return this != internal_default_instance() && reservation_ != nullptr; -} -inline void GetOrExtendReservationResponse::clear_reservation() { - if (GetArenaNoVirtual() == nullptr && reservation_ != nullptr) { - delete reservation_; - } - reservation_ = nullptr; -} -inline const ::datacatalog::Reservation& GetOrExtendReservationResponse::reservation() const { - const ::datacatalog::Reservation* p = reservation_; - // @@protoc_insertion_point(field_get:datacatalog.GetOrExtendReservationResponse.reservation) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Reservation_default_instance_); -} -inline ::datacatalog::Reservation* GetOrExtendReservationResponse::release_reservation() { - // @@protoc_insertion_point(field_release:datacatalog.GetOrExtendReservationResponse.reservation) - - ::datacatalog::Reservation* temp = reservation_; - reservation_ = nullptr; - return temp; -} -inline ::datacatalog::Reservation* GetOrExtendReservationResponse::mutable_reservation() { - - if (reservation_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Reservation>(GetArenaNoVirtual()); - reservation_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.GetOrExtendReservationResponse.reservation) - return reservation_; -} -inline void GetOrExtendReservationResponse::set_allocated_reservation(::datacatalog::Reservation* reservation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reservation_; - } - if (reservation) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reservation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reservation, submessage_arena); - } - - } else { - - } - reservation_ = reservation; - // @@protoc_insertion_point(field_set_allocated:datacatalog.GetOrExtendReservationResponse.reservation) -} - -// ------------------------------------------------------------------- - -// ReleaseReservationRequest - -// .datacatalog.ReservationID reservation_id = 1; -inline bool ReleaseReservationRequest::has_reservation_id() const { - return this != internal_default_instance() && reservation_id_ != nullptr; -} -inline void ReleaseReservationRequest::clear_reservation_id() { - if (GetArenaNoVirtual() == nullptr && reservation_id_ != nullptr) { - delete reservation_id_; - } - reservation_id_ = nullptr; -} -inline const ::datacatalog::ReservationID& ReleaseReservationRequest::reservation_id() const { - const ::datacatalog::ReservationID* p = reservation_id_; - // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.reservation_id) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_ReservationID_default_instance_); -} -inline ::datacatalog::ReservationID* ReleaseReservationRequest::release_reservation_id() { - // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.reservation_id) - - ::datacatalog::ReservationID* temp = reservation_id_; - reservation_id_ = nullptr; - return temp; -} -inline ::datacatalog::ReservationID* ReleaseReservationRequest::mutable_reservation_id() { - - if (reservation_id_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::ReservationID>(GetArenaNoVirtual()); - reservation_id_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.reservation_id) - return reservation_id_; -} -inline void ReleaseReservationRequest::set_allocated_reservation_id(::datacatalog::ReservationID* reservation_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reservation_id_; - } - if (reservation_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reservation_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reservation_id, submessage_arena); - } - - } else { - - } - reservation_id_ = reservation_id; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.reservation_id) -} - -// string owner_id = 2; -inline void ReleaseReservationRequest::clear_owner_id() { - owner_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ReleaseReservationRequest::owner_id() const { - // @@protoc_insertion_point(field_get:datacatalog.ReleaseReservationRequest.owner_id) - return owner_id_.GetNoArena(); -} -inline void ReleaseReservationRequest::set_owner_id(const ::std::string& value) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ReleaseReservationRequest.owner_id) -} -#if LANG_CXX11 -inline void ReleaseReservationRequest::set_owner_id(::std::string&& value) { - - owner_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ReleaseReservationRequest.owner_id) -} -#endif -inline void ReleaseReservationRequest::set_owner_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ReleaseReservationRequest.owner_id) -} -inline void ReleaseReservationRequest::set_owner_id(const char* value, size_t size) { - - owner_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ReleaseReservationRequest.owner_id) -} -inline ::std::string* ReleaseReservationRequest::mutable_owner_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.ReleaseReservationRequest.owner_id) - return owner_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ReleaseReservationRequest::release_owner_id() { - // @@protoc_insertion_point(field_release:datacatalog.ReleaseReservationRequest.owner_id) - - return owner_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ReleaseReservationRequest::set_allocated_owner_id(::std::string* owner_id) { - if (owner_id != nullptr) { - - } else { - - } - owner_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), owner_id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ReleaseReservationRequest.owner_id) -} - -// ------------------------------------------------------------------- - -// ReleaseReservationResponse - -// ------------------------------------------------------------------- - -// Dataset - -// .datacatalog.DatasetID id = 1; -inline bool Dataset::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline void Dataset::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -inline const ::datacatalog::DatasetID& Dataset::id() const { - const ::datacatalog::DatasetID* p = id_; - // @@protoc_insertion_point(field_get:datacatalog.Dataset.id) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* Dataset::release_id() { - // @@protoc_insertion_point(field_release:datacatalog.Dataset.id) - - ::datacatalog::DatasetID* temp = id_; - id_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* Dataset::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.id) - return id_; -} -inline void Dataset::set_allocated_id(::datacatalog::DatasetID* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete 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:datacatalog.Dataset.id) -} - -// .datacatalog.Metadata metadata = 2; -inline bool Dataset::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void Dataset::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::datacatalog::Metadata& Dataset::metadata() const { - const ::datacatalog::Metadata* p = metadata_; - // @@protoc_insertion_point(field_get:datacatalog.Dataset.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Metadata_default_instance_); -} -inline ::datacatalog::Metadata* Dataset::release_metadata() { - // @@protoc_insertion_point(field_release:datacatalog.Dataset.metadata) - - ::datacatalog::Metadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::datacatalog::Metadata* Dataset::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.metadata) - return metadata_; -} -inline void Dataset::set_allocated_metadata(::datacatalog::Metadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Dataset.metadata) -} - -// repeated string partitionKeys = 3; -inline int Dataset::partitionkeys_size() const { - return partitionkeys_.size(); -} -inline void Dataset::clear_partitionkeys() { - partitionkeys_.Clear(); -} -inline const ::std::string& Dataset::partitionkeys(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.Dataset.partitionKeys) - return partitionkeys_.Get(index); -} -inline ::std::string* Dataset::mutable_partitionkeys(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.Dataset.partitionKeys) - return partitionkeys_.Mutable(index); -} -inline void Dataset::set_partitionkeys(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) - partitionkeys_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void Dataset::set_partitionkeys(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.Dataset.partitionKeys) - partitionkeys_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void Dataset::set_partitionkeys(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - partitionkeys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:datacatalog.Dataset.partitionKeys) -} -inline void Dataset::set_partitionkeys(int index, const char* value, size_t size) { - partitionkeys_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Dataset.partitionKeys) -} -inline ::std::string* Dataset::add_partitionkeys() { - // @@protoc_insertion_point(field_add_mutable:datacatalog.Dataset.partitionKeys) - return partitionkeys_.Add(); -} -inline void Dataset::add_partitionkeys(const ::std::string& value) { - partitionkeys_.Add()->assign(value); - // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) -} -#if LANG_CXX11 -inline void Dataset::add_partitionkeys(::std::string&& value) { - partitionkeys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:datacatalog.Dataset.partitionKeys) -} -#endif -inline void Dataset::add_partitionkeys(const char* value) { - GOOGLE_DCHECK(value != nullptr); - partitionkeys_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:datacatalog.Dataset.partitionKeys) -} -inline void Dataset::add_partitionkeys(const char* value, size_t size) { - partitionkeys_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:datacatalog.Dataset.partitionKeys) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -Dataset::partitionkeys() const { - // @@protoc_insertion_point(field_list:datacatalog.Dataset.partitionKeys) - return partitionkeys_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -Dataset::mutable_partitionkeys() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.Dataset.partitionKeys) - return &partitionkeys_; -} - -// ------------------------------------------------------------------- - -// Partition - -// string key = 1; -inline void Partition::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Partition::key() const { - // @@protoc_insertion_point(field_get:datacatalog.Partition.key) - return key_.GetNoArena(); -} -inline void Partition::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Partition.key) -} -#if LANG_CXX11 -inline void Partition::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.key) -} -#endif -inline void Partition::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Partition.key) -} -inline void Partition::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.key) -} -inline ::std::string* Partition::mutable_key() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Partition.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Partition::release_key() { - // @@protoc_insertion_point(field_release:datacatalog.Partition.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Partition::set_allocated_key(::std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.key) -} - -// string value = 2; -inline void Partition::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Partition::value() const { - // @@protoc_insertion_point(field_get:datacatalog.Partition.value) - return value_.GetNoArena(); -} -inline void Partition::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Partition.value) -} -#if LANG_CXX11 -inline void Partition::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Partition.value) -} -#endif -inline void Partition::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Partition.value) -} -inline void Partition::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Partition.value) -} -inline ::std::string* Partition::mutable_value() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Partition.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Partition::release_value() { - // @@protoc_insertion_point(field_release:datacatalog.Partition.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Partition::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Partition.value) -} - -// ------------------------------------------------------------------- - -// DatasetID - -// string project = 1; -inline void DatasetID::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DatasetID::project() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetID.project) - return project_.GetNoArena(); -} -inline void DatasetID::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetID.project) -} -#if LANG_CXX11 -inline void DatasetID::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.project) -} -#endif -inline void DatasetID::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.project) -} -inline void DatasetID::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.project) -} -inline ::std::string* DatasetID::mutable_project() { - - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetID::release_project() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetID.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DatasetID::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.project) -} - -// string name = 2; -inline void DatasetID::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DatasetID::name() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetID.name) - return name_.GetNoArena(); -} -inline void DatasetID::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetID.name) -} -#if LANG_CXX11 -inline void DatasetID::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.name) -} -#endif -inline void DatasetID::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.name) -} -inline void DatasetID::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.name) -} -inline ::std::string* DatasetID::mutable_name() { - - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetID::release_name() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetID.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DatasetID::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.name) -} - -// string domain = 3; -inline void DatasetID::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DatasetID::domain() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetID.domain) - return domain_.GetNoArena(); -} -inline void DatasetID::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetID.domain) -} -#if LANG_CXX11 -inline void DatasetID::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.domain) -} -#endif -inline void DatasetID::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.domain) -} -inline void DatasetID::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.domain) -} -inline ::std::string* DatasetID::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetID::release_domain() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetID.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DatasetID::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.domain) -} - -// string version = 4; -inline void DatasetID::clear_version() { - version_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DatasetID::version() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetID.version) - return version_.GetNoArena(); -} -inline void DatasetID::set_version(const ::std::string& value) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetID.version) -} -#if LANG_CXX11 -inline void DatasetID::set_version(::std::string&& value) { - - version_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.version) -} -#endif -inline void DatasetID::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.version) -} -inline void DatasetID::set_version(const char* value, size_t size) { - - version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.version) -} -inline ::std::string* DatasetID::mutable_version() { - - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.version) - return version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetID::release_version() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetID.version) - - return version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DatasetID::set_allocated_version(::std::string* version) { - if (version != nullptr) { - - } else { - - } - version_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version); - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.version) -} - -// string UUID = 5; -inline void DatasetID::clear_uuid() { - uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DatasetID::uuid() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetID.UUID) - return uuid_.GetNoArena(); -} -inline void DatasetID::set_uuid(const ::std::string& value) { - - uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetID.UUID) -} -#if LANG_CXX11 -inline void DatasetID::set_uuid(::std::string&& value) { - - uuid_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetID.UUID) -} -#endif -inline void DatasetID::set_uuid(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetID.UUID) -} -inline void DatasetID::set_uuid(const char* value, size_t size) { - - uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetID.UUID) -} -inline ::std::string* DatasetID::mutable_uuid() { - - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetID.UUID) - return uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetID::release_uuid() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetID.UUID) - - return uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DatasetID::set_allocated_uuid(::std::string* uuid) { - if (uuid != nullptr) { - - } else { - - } - uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), uuid); - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetID.UUID) -} - -// ------------------------------------------------------------------- - -// Artifact - -// string id = 1; -inline void Artifact::clear_id() { - id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Artifact::id() const { - // @@protoc_insertion_point(field_get:datacatalog.Artifact.id) - return id_.GetNoArena(); -} -inline void Artifact::set_id(const ::std::string& value) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Artifact.id) -} -#if LANG_CXX11 -inline void Artifact::set_id(::std::string&& value) { - - id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Artifact.id) -} -#endif -inline void Artifact::set_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Artifact.id) -} -inline void Artifact::set_id(const char* value, size_t size) { - - id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Artifact.id) -} -inline ::std::string* Artifact::mutable_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.id) - return id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Artifact::release_id() { - // @@protoc_insertion_point(field_release:datacatalog.Artifact.id) - - return id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Artifact::set_allocated_id(::std::string* id) { - if (id != nullptr) { - - } else { - - } - id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.id) -} - -// .datacatalog.DatasetID dataset = 2; -inline bool Artifact::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void Artifact::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& Artifact::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.Artifact.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* Artifact::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.Artifact.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* Artifact::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.dataset) - return dataset_; -} -inline void Artifact::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.dataset) -} - -// repeated .datacatalog.ArtifactData data = 3; -inline int Artifact::data_size() const { - return data_.size(); -} -inline void Artifact::clear_data() { - data_.Clear(); -} -inline ::datacatalog::ArtifactData* Artifact::mutable_data(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.data) - return data_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >* -Artifact::mutable_data() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.data) - return &data_; -} -inline const ::datacatalog::ArtifactData& Artifact::data(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.Artifact.data) - return data_.Get(index); -} -inline ::datacatalog::ArtifactData* Artifact::add_data() { - // @@protoc_insertion_point(field_add:datacatalog.Artifact.data) - return data_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::ArtifactData >& -Artifact::data() const { - // @@protoc_insertion_point(field_list:datacatalog.Artifact.data) - return data_; -} - -// .datacatalog.Metadata metadata = 4; -inline bool Artifact::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void Artifact::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::datacatalog::Metadata& Artifact::metadata() const { - const ::datacatalog::Metadata* p = metadata_; - // @@protoc_insertion_point(field_get:datacatalog.Artifact.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_Metadata_default_instance_); -} -inline ::datacatalog::Metadata* Artifact::release_metadata() { - // @@protoc_insertion_point(field_release:datacatalog.Artifact.metadata) - - ::datacatalog::Metadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::datacatalog::Metadata* Artifact::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::Metadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.metadata) - return metadata_; -} -inline void Artifact::set_allocated_metadata(::datacatalog::Metadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.metadata) -} - -// repeated .datacatalog.Partition partitions = 5; -inline int Artifact::partitions_size() const { - return partitions_.size(); -} -inline void Artifact::clear_partitions() { - partitions_.Clear(); -} -inline ::datacatalog::Partition* Artifact::mutable_partitions(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.partitions) - return partitions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >* -Artifact::mutable_partitions() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.partitions) - return &partitions_; -} -inline const ::datacatalog::Partition& Artifact::partitions(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.Artifact.partitions) - return partitions_.Get(index); -} -inline ::datacatalog::Partition* Artifact::add_partitions() { - // @@protoc_insertion_point(field_add:datacatalog.Artifact.partitions) - return partitions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Partition >& -Artifact::partitions() const { - // @@protoc_insertion_point(field_list:datacatalog.Artifact.partitions) - return partitions_; -} - -// repeated .datacatalog.Tag tags = 6; -inline int Artifact::tags_size() const { - return tags_.size(); -} -inline void Artifact::clear_tags() { - tags_.Clear(); -} -inline ::datacatalog::Tag* Artifact::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.tags) - return tags_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >* -Artifact::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.Artifact.tags) - return &tags_; -} -inline const ::datacatalog::Tag& Artifact::tags(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.Artifact.tags) - return tags_.Get(index); -} -inline ::datacatalog::Tag* Artifact::add_tags() { - // @@protoc_insertion_point(field_add:datacatalog.Artifact.tags) - return tags_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::Tag >& -Artifact::tags() const { - // @@protoc_insertion_point(field_list:datacatalog.Artifact.tags) - return tags_; -} - -// .google.protobuf.Timestamp created_at = 7; -inline bool Artifact::has_created_at() const { - return this != internal_default_instance() && created_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& Artifact::created_at() const { - const ::google::protobuf::Timestamp* p = created_at_; - // @@protoc_insertion_point(field_get:datacatalog.Artifact.created_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* Artifact::release_created_at() { - // @@protoc_insertion_point(field_release:datacatalog.Artifact.created_at) - - ::google::protobuf::Timestamp* temp = created_at_; - created_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* Artifact::mutable_created_at() { - - if (created_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - created_at_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Artifact.created_at) - return created_at_; -} -inline void Artifact::set_allocated_created_at(::google::protobuf::Timestamp* created_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(created_at_); - } - if (created_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(created_at)->GetArena(); - if (message_arena != submessage_arena) { - created_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, created_at, submessage_arena); - } - - } else { - - } - created_at_ = created_at; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Artifact.created_at) -} - -// ------------------------------------------------------------------- - -// ArtifactData - -// string name = 1; -inline void ArtifactData::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ArtifactData::name() const { - // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.name) - return name_.GetNoArena(); -} -inline void ArtifactData::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ArtifactData.name) -} -#if LANG_CXX11 -inline void ArtifactData::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactData.name) -} -#endif -inline void ArtifactData::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactData.name) -} -inline void ArtifactData::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactData.name) -} -inline ::std::string* ArtifactData::mutable_name() { - - // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactData::release_name() { - // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ArtifactData::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.name) -} - -// .flyteidl.core.Literal value = 2; -inline bool ArtifactData::has_value() const { - return this != internal_default_instance() && value_ != nullptr; -} -inline const ::flyteidl::core::Literal& ArtifactData::value() const { - const ::flyteidl::core::Literal* p = value_; - // @@protoc_insertion_point(field_get:datacatalog.ArtifactData.value) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* ArtifactData::release_value() { - // @@protoc_insertion_point(field_release:datacatalog.ArtifactData.value) - - ::flyteidl::core::Literal* temp = value_; - value_ = nullptr; - return temp; -} -inline ::flyteidl::core::Literal* ArtifactData::mutable_value() { - - if (value_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Literal>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactData.value) - return value_; -} -inline void ArtifactData::set_allocated_value(::flyteidl::core::Literal* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactData.value) -} - -// ------------------------------------------------------------------- - -// Tag - -// string name = 1; -inline void Tag::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Tag::name() const { - // @@protoc_insertion_point(field_get:datacatalog.Tag.name) - return name_.GetNoArena(); -} -inline void Tag::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Tag.name) -} -#if LANG_CXX11 -inline void Tag::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.name) -} -#endif -inline void Tag::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Tag.name) -} -inline void Tag::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.name) -} -inline ::std::string* Tag::mutable_name() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Tag.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Tag::release_name() { - // @@protoc_insertion_point(field_release:datacatalog.Tag.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Tag::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.name) -} - -// string artifact_id = 2; -inline void Tag::clear_artifact_id() { - artifact_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Tag::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.Tag.artifact_id) - return artifact_id_.GetNoArena(); -} -inline void Tag::set_artifact_id(const ::std::string& value) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.Tag.artifact_id) -} -#if LANG_CXX11 -inline void Tag::set_artifact_id(::std::string&& value) { - - artifact_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.Tag.artifact_id) -} -#endif -inline void Tag::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.Tag.artifact_id) -} -inline void Tag::set_artifact_id(const char* value, size_t size) { - - artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.Tag.artifact_id) -} -inline ::std::string* Tag::mutable_artifact_id() { - - // @@protoc_insertion_point(field_mutable:datacatalog.Tag.artifact_id) - return artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Tag::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.Tag.artifact_id) - - return artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Tag::set_allocated_artifact_id(::std::string* artifact_id) { - if (artifact_id != nullptr) { - - } else { - - } - artifact_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), artifact_id); - // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.artifact_id) -} - -// .datacatalog.DatasetID dataset = 3; -inline bool Tag::has_dataset() const { - return this != internal_default_instance() && dataset_ != nullptr; -} -inline void Tag::clear_dataset() { - if (GetArenaNoVirtual() == nullptr && dataset_ != nullptr) { - delete dataset_; - } - dataset_ = nullptr; -} -inline const ::datacatalog::DatasetID& Tag::dataset() const { - const ::datacatalog::DatasetID* p = dataset_; - // @@protoc_insertion_point(field_get:datacatalog.Tag.dataset) - return p != nullptr ? *p : *reinterpret_cast( - &::datacatalog::_DatasetID_default_instance_); -} -inline ::datacatalog::DatasetID* Tag::release_dataset() { - // @@protoc_insertion_point(field_release:datacatalog.Tag.dataset) - - ::datacatalog::DatasetID* temp = dataset_; - dataset_ = nullptr; - return temp; -} -inline ::datacatalog::DatasetID* Tag::mutable_dataset() { - - if (dataset_ == nullptr) { - auto* p = CreateMaybeMessage<::datacatalog::DatasetID>(GetArenaNoVirtual()); - dataset_ = p; - } - // @@protoc_insertion_point(field_mutable:datacatalog.Tag.dataset) - return dataset_; -} -inline void Tag::set_allocated_dataset(::datacatalog::DatasetID* dataset) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dataset_; - } - if (dataset) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dataset = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dataset, submessage_arena); - } - - } else { - - } - dataset_ = dataset; - // @@protoc_insertion_point(field_set_allocated:datacatalog.Tag.dataset) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Metadata - -// map key_map = 1; -inline int Metadata::key_map_size() const { - return key_map_.size(); -} -inline void Metadata::clear_key_map() { - key_map_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -Metadata::key_map() const { - // @@protoc_insertion_point(field_map:datacatalog.Metadata.key_map) - return key_map_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -Metadata::mutable_key_map() { - // @@protoc_insertion_point(field_mutable_map:datacatalog.Metadata.key_map) - return key_map_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// FilterExpression - -// repeated .datacatalog.SinglePropertyFilter filters = 1; -inline int FilterExpression::filters_size() const { - return filters_.size(); -} -inline void FilterExpression::clear_filters() { - filters_.Clear(); -} -inline ::datacatalog::SinglePropertyFilter* FilterExpression::mutable_filters(int index) { - // @@protoc_insertion_point(field_mutable:datacatalog.FilterExpression.filters) - return filters_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >* -FilterExpression::mutable_filters() { - // @@protoc_insertion_point(field_mutable_list:datacatalog.FilterExpression.filters) - return &filters_; -} -inline const ::datacatalog::SinglePropertyFilter& FilterExpression::filters(int index) const { - // @@protoc_insertion_point(field_get:datacatalog.FilterExpression.filters) - return filters_.Get(index); -} -inline ::datacatalog::SinglePropertyFilter* FilterExpression::add_filters() { - // @@protoc_insertion_point(field_add:datacatalog.FilterExpression.filters) - return filters_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::datacatalog::SinglePropertyFilter >& -FilterExpression::filters() const { - // @@protoc_insertion_point(field_list:datacatalog.FilterExpression.filters) - return filters_; -} - -// ------------------------------------------------------------------- - -// SinglePropertyFilter - -// .datacatalog.TagPropertyFilter tag_filter = 1; -inline bool SinglePropertyFilter::has_tag_filter() const { - return property_filter_case() == kTagFilter; -} -inline void SinglePropertyFilter::set_has_tag_filter() { - _oneof_case_[0] = kTagFilter; -} -inline void SinglePropertyFilter::clear_tag_filter() { - if (has_tag_filter()) { - delete property_filter_.tag_filter_; - clear_has_property_filter(); - } -} -inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::release_tag_filter() { - // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.tag_filter) - if (has_tag_filter()) { - clear_has_property_filter(); - ::datacatalog::TagPropertyFilter* temp = property_filter_.tag_filter_; - property_filter_.tag_filter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::datacatalog::TagPropertyFilter& SinglePropertyFilter::tag_filter() const { - // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.tag_filter) - return has_tag_filter() - ? *property_filter_.tag_filter_ - : *reinterpret_cast< ::datacatalog::TagPropertyFilter*>(&::datacatalog::_TagPropertyFilter_default_instance_); -} -inline ::datacatalog::TagPropertyFilter* SinglePropertyFilter::mutable_tag_filter() { - if (!has_tag_filter()) { - clear_property_filter(); - set_has_tag_filter(); - property_filter_.tag_filter_ = CreateMaybeMessage< ::datacatalog::TagPropertyFilter >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.tag_filter) - return property_filter_.tag_filter_; -} - -// .datacatalog.PartitionPropertyFilter partition_filter = 2; -inline bool SinglePropertyFilter::has_partition_filter() const { - return property_filter_case() == kPartitionFilter; -} -inline void SinglePropertyFilter::set_has_partition_filter() { - _oneof_case_[0] = kPartitionFilter; -} -inline void SinglePropertyFilter::clear_partition_filter() { - if (has_partition_filter()) { - delete property_filter_.partition_filter_; - clear_has_property_filter(); - } -} -inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::release_partition_filter() { - // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.partition_filter) - if (has_partition_filter()) { - clear_has_property_filter(); - ::datacatalog::PartitionPropertyFilter* temp = property_filter_.partition_filter_; - property_filter_.partition_filter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::datacatalog::PartitionPropertyFilter& SinglePropertyFilter::partition_filter() const { - // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.partition_filter) - return has_partition_filter() - ? *property_filter_.partition_filter_ - : *reinterpret_cast< ::datacatalog::PartitionPropertyFilter*>(&::datacatalog::_PartitionPropertyFilter_default_instance_); -} -inline ::datacatalog::PartitionPropertyFilter* SinglePropertyFilter::mutable_partition_filter() { - if (!has_partition_filter()) { - clear_property_filter(); - set_has_partition_filter(); - property_filter_.partition_filter_ = CreateMaybeMessage< ::datacatalog::PartitionPropertyFilter >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.partition_filter) - return property_filter_.partition_filter_; -} - -// .datacatalog.ArtifactPropertyFilter artifact_filter = 3; -inline bool SinglePropertyFilter::has_artifact_filter() const { - return property_filter_case() == kArtifactFilter; -} -inline void SinglePropertyFilter::set_has_artifact_filter() { - _oneof_case_[0] = kArtifactFilter; -} -inline void SinglePropertyFilter::clear_artifact_filter() { - if (has_artifact_filter()) { - delete property_filter_.artifact_filter_; - clear_has_property_filter(); - } -} -inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::release_artifact_filter() { - // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.artifact_filter) - if (has_artifact_filter()) { - clear_has_property_filter(); - ::datacatalog::ArtifactPropertyFilter* temp = property_filter_.artifact_filter_; - property_filter_.artifact_filter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::datacatalog::ArtifactPropertyFilter& SinglePropertyFilter::artifact_filter() const { - // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.artifact_filter) - return has_artifact_filter() - ? *property_filter_.artifact_filter_ - : *reinterpret_cast< ::datacatalog::ArtifactPropertyFilter*>(&::datacatalog::_ArtifactPropertyFilter_default_instance_); -} -inline ::datacatalog::ArtifactPropertyFilter* SinglePropertyFilter::mutable_artifact_filter() { - if (!has_artifact_filter()) { - clear_property_filter(); - set_has_artifact_filter(); - property_filter_.artifact_filter_ = CreateMaybeMessage< ::datacatalog::ArtifactPropertyFilter >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.artifact_filter) - return property_filter_.artifact_filter_; -} - -// .datacatalog.DatasetPropertyFilter dataset_filter = 4; -inline bool SinglePropertyFilter::has_dataset_filter() const { - return property_filter_case() == kDatasetFilter; -} -inline void SinglePropertyFilter::set_has_dataset_filter() { - _oneof_case_[0] = kDatasetFilter; -} -inline void SinglePropertyFilter::clear_dataset_filter() { - if (has_dataset_filter()) { - delete property_filter_.dataset_filter_; - clear_has_property_filter(); - } -} -inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::release_dataset_filter() { - // @@protoc_insertion_point(field_release:datacatalog.SinglePropertyFilter.dataset_filter) - if (has_dataset_filter()) { - clear_has_property_filter(); - ::datacatalog::DatasetPropertyFilter* temp = property_filter_.dataset_filter_; - property_filter_.dataset_filter_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::datacatalog::DatasetPropertyFilter& SinglePropertyFilter::dataset_filter() const { - // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.dataset_filter) - return has_dataset_filter() - ? *property_filter_.dataset_filter_ - : *reinterpret_cast< ::datacatalog::DatasetPropertyFilter*>(&::datacatalog::_DatasetPropertyFilter_default_instance_); -} -inline ::datacatalog::DatasetPropertyFilter* SinglePropertyFilter::mutable_dataset_filter() { - if (!has_dataset_filter()) { - clear_property_filter(); - set_has_dataset_filter(); - property_filter_.dataset_filter_ = CreateMaybeMessage< ::datacatalog::DatasetPropertyFilter >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.SinglePropertyFilter.dataset_filter) - return property_filter_.dataset_filter_; -} - -// .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; -inline void SinglePropertyFilter::clear_operator_() { - operator__ = 0; -} -inline ::datacatalog::SinglePropertyFilter_ComparisonOperator SinglePropertyFilter::operator_() const { - // @@protoc_insertion_point(field_get:datacatalog.SinglePropertyFilter.operator) - return static_cast< ::datacatalog::SinglePropertyFilter_ComparisonOperator >(operator__); -} -inline void SinglePropertyFilter::set_operator_(::datacatalog::SinglePropertyFilter_ComparisonOperator value) { - - operator__ = value; - // @@protoc_insertion_point(field_set:datacatalog.SinglePropertyFilter.operator) -} - -inline bool SinglePropertyFilter::has_property_filter() const { - return property_filter_case() != PROPERTY_FILTER_NOT_SET; -} -inline void SinglePropertyFilter::clear_has_property_filter() { - _oneof_case_[0] = PROPERTY_FILTER_NOT_SET; -} -inline SinglePropertyFilter::PropertyFilterCase SinglePropertyFilter::property_filter_case() const { - return SinglePropertyFilter::PropertyFilterCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ArtifactPropertyFilter - -// string artifact_id = 1; -inline bool ArtifactPropertyFilter::has_artifact_id() const { - return property_case() == kArtifactId; -} -inline void ArtifactPropertyFilter::set_has_artifact_id() { - _oneof_case_[0] = kArtifactId; -} -inline void ArtifactPropertyFilter::clear_artifact_id() { - if (has_artifact_id()) { - property_.artifact_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& ArtifactPropertyFilter::artifact_id() const { - // @@protoc_insertion_point(field_get:datacatalog.ArtifactPropertyFilter.artifact_id) - if (has_artifact_id()) { - return property_.artifact_id_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void ArtifactPropertyFilter::set_artifact_id(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) - if (!has_artifact_id()) { - clear_property(); - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) -} -#if LANG_CXX11 -inline void ArtifactPropertyFilter::set_artifact_id(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.ArtifactPropertyFilter.artifact_id) - if (!has_artifact_id()) { - clear_property(); - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.ArtifactPropertyFilter.artifact_id) -} -#endif -inline void ArtifactPropertyFilter::set_artifact_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_artifact_id()) { - clear_property(); - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.ArtifactPropertyFilter.artifact_id) -} -inline void ArtifactPropertyFilter::set_artifact_id(const char* value, size_t size) { - if (!has_artifact_id()) { - clear_property(); - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.artifact_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.ArtifactPropertyFilter.artifact_id) -} -inline ::std::string* ArtifactPropertyFilter::mutable_artifact_id() { - if (!has_artifact_id()) { - clear_property(); - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.ArtifactPropertyFilter.artifact_id) - return property_.artifact_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ArtifactPropertyFilter::release_artifact_id() { - // @@protoc_insertion_point(field_release:datacatalog.ArtifactPropertyFilter.artifact_id) - if (has_artifact_id()) { - clear_has_property(); - return property_.artifact_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void ArtifactPropertyFilter::set_allocated_artifact_id(::std::string* artifact_id) { - if (has_property()) { - clear_property(); - } - if (artifact_id != nullptr) { - set_has_artifact_id(); - property_.artifact_id_.UnsafeSetDefault(artifact_id); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.ArtifactPropertyFilter.artifact_id) -} - -inline bool ArtifactPropertyFilter::has_property() const { - return property_case() != PROPERTY_NOT_SET; -} -inline void ArtifactPropertyFilter::clear_has_property() { - _oneof_case_[0] = PROPERTY_NOT_SET; -} -inline ArtifactPropertyFilter::PropertyCase ArtifactPropertyFilter::property_case() const { - return ArtifactPropertyFilter::PropertyCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// TagPropertyFilter - -// string tag_name = 1; -inline bool TagPropertyFilter::has_tag_name() const { - return property_case() == kTagName; -} -inline void TagPropertyFilter::set_has_tag_name() { - _oneof_case_[0] = kTagName; -} -inline void TagPropertyFilter::clear_tag_name() { - if (has_tag_name()) { - property_.tag_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& TagPropertyFilter::tag_name() const { - // @@protoc_insertion_point(field_get:datacatalog.TagPropertyFilter.tag_name) - if (has_tag_name()) { - return property_.tag_name_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void TagPropertyFilter::set_tag_name(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) - if (!has_tag_name()) { - clear_property(); - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) -} -#if LANG_CXX11 -inline void TagPropertyFilter::set_tag_name(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.TagPropertyFilter.tag_name) - if (!has_tag_name()) { - clear_property(); - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.TagPropertyFilter.tag_name) -} -#endif -inline void TagPropertyFilter::set_tag_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_tag_name()) { - clear_property(); - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.TagPropertyFilter.tag_name) -} -inline void TagPropertyFilter::set_tag_name(const char* value, size_t size) { - if (!has_tag_name()) { - clear_property(); - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.tag_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.TagPropertyFilter.tag_name) -} -inline ::std::string* TagPropertyFilter::mutable_tag_name() { - if (!has_tag_name()) { - clear_property(); - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.TagPropertyFilter.tag_name) - return property_.tag_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TagPropertyFilter::release_tag_name() { - // @@protoc_insertion_point(field_release:datacatalog.TagPropertyFilter.tag_name) - if (has_tag_name()) { - clear_has_property(); - return property_.tag_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void TagPropertyFilter::set_allocated_tag_name(::std::string* tag_name) { - if (has_property()) { - clear_property(); - } - if (tag_name != nullptr) { - set_has_tag_name(); - property_.tag_name_.UnsafeSetDefault(tag_name); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.TagPropertyFilter.tag_name) -} - -inline bool TagPropertyFilter::has_property() const { - return property_case() != PROPERTY_NOT_SET; -} -inline void TagPropertyFilter::clear_has_property() { - _oneof_case_[0] = PROPERTY_NOT_SET; -} -inline TagPropertyFilter::PropertyCase TagPropertyFilter::property_case() const { - return TagPropertyFilter::PropertyCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// PartitionPropertyFilter - -// .datacatalog.KeyValuePair key_val = 1; -inline bool PartitionPropertyFilter::has_key_val() const { - return property_case() == kKeyVal; -} -inline void PartitionPropertyFilter::set_has_key_val() { - _oneof_case_[0] = kKeyVal; -} -inline void PartitionPropertyFilter::clear_key_val() { - if (has_key_val()) { - delete property_.key_val_; - clear_has_property(); - } -} -inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::release_key_val() { - // @@protoc_insertion_point(field_release:datacatalog.PartitionPropertyFilter.key_val) - if (has_key_val()) { - clear_has_property(); - ::datacatalog::KeyValuePair* temp = property_.key_val_; - property_.key_val_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::datacatalog::KeyValuePair& PartitionPropertyFilter::key_val() const { - // @@protoc_insertion_point(field_get:datacatalog.PartitionPropertyFilter.key_val) - return has_key_val() - ? *property_.key_val_ - : *reinterpret_cast< ::datacatalog::KeyValuePair*>(&::datacatalog::_KeyValuePair_default_instance_); -} -inline ::datacatalog::KeyValuePair* PartitionPropertyFilter::mutable_key_val() { - if (!has_key_val()) { - clear_property(); - set_has_key_val(); - property_.key_val_ = CreateMaybeMessage< ::datacatalog::KeyValuePair >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.PartitionPropertyFilter.key_val) - return property_.key_val_; -} - -inline bool PartitionPropertyFilter::has_property() const { - return property_case() != PROPERTY_NOT_SET; -} -inline void PartitionPropertyFilter::clear_has_property() { - _oneof_case_[0] = PROPERTY_NOT_SET; -} -inline PartitionPropertyFilter::PropertyCase PartitionPropertyFilter::property_case() const { - return PartitionPropertyFilter::PropertyCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// KeyValuePair - -// string key = 1; -inline void KeyValuePair::clear_key() { - key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::key() const { - // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.key) - return key_.GetNoArena(); -} -inline void KeyValuePair::set_key(const ::std::string& value) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.key) -} -#if LANG_CXX11 -inline void KeyValuePair::set_key(::std::string&& value) { - - key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.key) -} -#endif -inline void KeyValuePair::set_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.key) -} -inline void KeyValuePair::set_key(const char* value, size_t size) { - - key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.key) -} -inline ::std::string* KeyValuePair::mutable_key() { - - // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.key) - return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_key() { - // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.key) - - return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_key(::std::string* key) { - if (key != nullptr) { - - } else { - - } - key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); - // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.key) -} - -// string value = 2; -inline void KeyValuePair::clear_value() { - value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& KeyValuePair::value() const { - // @@protoc_insertion_point(field_get:datacatalog.KeyValuePair.value) - return value_.GetNoArena(); -} -inline void KeyValuePair::set_value(const ::std::string& value) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.KeyValuePair.value) -} -#if LANG_CXX11 -inline void KeyValuePair::set_value(::std::string&& value) { - - value_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.KeyValuePair.value) -} -#endif -inline void KeyValuePair::set_value(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.KeyValuePair.value) -} -inline void KeyValuePair::set_value(const char* value, size_t size) { - - value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.KeyValuePair.value) -} -inline ::std::string* KeyValuePair::mutable_value() { - - // @@protoc_insertion_point(field_mutable:datacatalog.KeyValuePair.value) - return value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* KeyValuePair::release_value() { - // @@protoc_insertion_point(field_release:datacatalog.KeyValuePair.value) - - return value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void KeyValuePair::set_allocated_value(::std::string* value) { - if (value != nullptr) { - - } else { - - } - value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set_allocated:datacatalog.KeyValuePair.value) -} - -// ------------------------------------------------------------------- - -// DatasetPropertyFilter - -// string project = 1; -inline bool DatasetPropertyFilter::has_project() const { - return property_case() == kProject; -} -inline void DatasetPropertyFilter::set_has_project() { - _oneof_case_[0] = kProject; -} -inline void DatasetPropertyFilter::clear_project() { - if (has_project()) { - property_.project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& DatasetPropertyFilter::project() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.project) - if (has_project()) { - return property_.project_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void DatasetPropertyFilter::set_project(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) - if (!has_project()) { - clear_property(); - set_has_project(); - property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) -} -#if LANG_CXX11 -inline void DatasetPropertyFilter::set_project(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.project) - if (!has_project()) { - clear_property(); - set_has_project(); - property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.project) -} -#endif -inline void DatasetPropertyFilter::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_project()) { - clear_property(); - set_has_project(); - property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.project) -} -inline void DatasetPropertyFilter::set_project(const char* value, size_t size) { - if (!has_project()) { - clear_property(); - set_has_project(); - property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.project) -} -inline ::std::string* DatasetPropertyFilter::mutable_project() { - if (!has_project()) { - clear_property(); - set_has_project(); - property_.project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.project) - return property_.project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetPropertyFilter::release_project() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.project) - if (has_project()) { - clear_has_property(); - return property_.project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DatasetPropertyFilter::set_allocated_project(::std::string* project) { - if (has_property()) { - clear_property(); - } - if (project != nullptr) { - set_has_project(); - property_.project_.UnsafeSetDefault(project); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.project) -} - -// string name = 2; -inline bool DatasetPropertyFilter::has_name() const { - return property_case() == kName; -} -inline void DatasetPropertyFilter::set_has_name() { - _oneof_case_[0] = kName; -} -inline void DatasetPropertyFilter::clear_name() { - if (has_name()) { - property_.name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& DatasetPropertyFilter::name() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.name) - if (has_name()) { - return property_.name_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void DatasetPropertyFilter::set_name(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) - if (!has_name()) { - clear_property(); - set_has_name(); - property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) -} -#if LANG_CXX11 -inline void DatasetPropertyFilter::set_name(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.name) - if (!has_name()) { - clear_property(); - set_has_name(); - property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.name) -} -#endif -inline void DatasetPropertyFilter::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_name()) { - clear_property(); - set_has_name(); - property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.name) -} -inline void DatasetPropertyFilter::set_name(const char* value, size_t size) { - if (!has_name()) { - clear_property(); - set_has_name(); - property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.name) -} -inline ::std::string* DatasetPropertyFilter::mutable_name() { - if (!has_name()) { - clear_property(); - set_has_name(); - property_.name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.name) - return property_.name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetPropertyFilter::release_name() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.name) - if (has_name()) { - clear_has_property(); - return property_.name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DatasetPropertyFilter::set_allocated_name(::std::string* name) { - if (has_property()) { - clear_property(); - } - if (name != nullptr) { - set_has_name(); - property_.name_.UnsafeSetDefault(name); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.name) -} - -// string domain = 3; -inline bool DatasetPropertyFilter::has_domain() const { - return property_case() == kDomain; -} -inline void DatasetPropertyFilter::set_has_domain() { - _oneof_case_[0] = kDomain; -} -inline void DatasetPropertyFilter::clear_domain() { - if (has_domain()) { - property_.domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& DatasetPropertyFilter::domain() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.domain) - if (has_domain()) { - return property_.domain_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void DatasetPropertyFilter::set_domain(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) - if (!has_domain()) { - clear_property(); - set_has_domain(); - property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) -} -#if LANG_CXX11 -inline void DatasetPropertyFilter::set_domain(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.domain) - if (!has_domain()) { - clear_property(); - set_has_domain(); - property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.domain) -} -#endif -inline void DatasetPropertyFilter::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_domain()) { - clear_property(); - set_has_domain(); - property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.domain) -} -inline void DatasetPropertyFilter::set_domain(const char* value, size_t size) { - if (!has_domain()) { - clear_property(); - set_has_domain(); - property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.domain) -} -inline ::std::string* DatasetPropertyFilter::mutable_domain() { - if (!has_domain()) { - clear_property(); - set_has_domain(); - property_.domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.domain) - return property_.domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetPropertyFilter::release_domain() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.domain) - if (has_domain()) { - clear_has_property(); - return property_.domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DatasetPropertyFilter::set_allocated_domain(::std::string* domain) { - if (has_property()) { - clear_property(); - } - if (domain != nullptr) { - set_has_domain(); - property_.domain_.UnsafeSetDefault(domain); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.domain) -} - -// string version = 4; -inline bool DatasetPropertyFilter::has_version() const { - return property_case() == kVersion; -} -inline void DatasetPropertyFilter::set_has_version() { - _oneof_case_[0] = kVersion; -} -inline void DatasetPropertyFilter::clear_version() { - if (has_version()) { - property_.version_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_property(); - } -} -inline const ::std::string& DatasetPropertyFilter::version() const { - // @@protoc_insertion_point(field_get:datacatalog.DatasetPropertyFilter.version) - if (has_version()) { - return property_.version_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void DatasetPropertyFilter::set_version(const ::std::string& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) - if (!has_version()) { - clear_property(); - set_has_version(); - property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) -} -#if LANG_CXX11 -inline void DatasetPropertyFilter::set_version(::std::string&& value) { - // @@protoc_insertion_point(field_set:datacatalog.DatasetPropertyFilter.version) - if (!has_version()) { - clear_property(); - set_has_version(); - property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.DatasetPropertyFilter.version) -} -#endif -inline void DatasetPropertyFilter::set_version(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_version()) { - clear_property(); - set_has_version(); - property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.DatasetPropertyFilter.version) -} -inline void DatasetPropertyFilter::set_version(const char* value, size_t size) { - if (!has_version()) { - clear_property(); - set_has_version(); - property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - property_.version_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.DatasetPropertyFilter.version) -} -inline ::std::string* DatasetPropertyFilter::mutable_version() { - if (!has_version()) { - clear_property(); - set_has_version(); - property_.version_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:datacatalog.DatasetPropertyFilter.version) - return property_.version_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DatasetPropertyFilter::release_version() { - // @@protoc_insertion_point(field_release:datacatalog.DatasetPropertyFilter.version) - if (has_version()) { - clear_has_property(); - return property_.version_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void DatasetPropertyFilter::set_allocated_version(::std::string* version) { - if (has_property()) { - clear_property(); - } - if (version != nullptr) { - set_has_version(); - property_.version_.UnsafeSetDefault(version); - } - // @@protoc_insertion_point(field_set_allocated:datacatalog.DatasetPropertyFilter.version) -} - -inline bool DatasetPropertyFilter::has_property() const { - return property_case() != PROPERTY_NOT_SET; -} -inline void DatasetPropertyFilter::clear_has_property() { - _oneof_case_[0] = PROPERTY_NOT_SET; -} -inline DatasetPropertyFilter::PropertyCase DatasetPropertyFilter::property_case() const { - return DatasetPropertyFilter::PropertyCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// PaginationOptions - -// uint32 limit = 1; -inline void PaginationOptions::clear_limit() { - limit_ = 0u; -} -inline ::google::protobuf::uint32 PaginationOptions::limit() const { - // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.limit) - return limit_; -} -inline void PaginationOptions::set_limit(::google::protobuf::uint32 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.limit) -} - -// string token = 2; -inline void PaginationOptions::clear_token() { - token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PaginationOptions::token() const { - // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.token) - return token_.GetNoArena(); -} -inline void PaginationOptions::set_token(const ::std::string& value) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.token) -} -#if LANG_CXX11 -inline void PaginationOptions::set_token(::std::string&& value) { - - token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:datacatalog.PaginationOptions.token) -} -#endif -inline void PaginationOptions::set_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:datacatalog.PaginationOptions.token) -} -inline void PaginationOptions::set_token(const char* value, size_t size) { - - token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:datacatalog.PaginationOptions.token) -} -inline ::std::string* PaginationOptions::mutable_token() { - - // @@protoc_insertion_point(field_mutable:datacatalog.PaginationOptions.token) - return token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PaginationOptions::release_token() { - // @@protoc_insertion_point(field_release:datacatalog.PaginationOptions.token) - - return token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PaginationOptions::set_allocated_token(::std::string* token) { - if (token != nullptr) { - - } else { - - } - token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token); - // @@protoc_insertion_point(field_set_allocated:datacatalog.PaginationOptions.token) -} - -// .datacatalog.PaginationOptions.SortKey sortKey = 3; -inline void PaginationOptions::clear_sortkey() { - sortkey_ = 0; -} -inline ::datacatalog::PaginationOptions_SortKey PaginationOptions::sortkey() const { - // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortKey) - return static_cast< ::datacatalog::PaginationOptions_SortKey >(sortkey_); -} -inline void PaginationOptions::set_sortkey(::datacatalog::PaginationOptions_SortKey value) { - - sortkey_ = value; - // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortKey) -} - -// .datacatalog.PaginationOptions.SortOrder sortOrder = 4; -inline void PaginationOptions::clear_sortorder() { - sortorder_ = 0; -} -inline ::datacatalog::PaginationOptions_SortOrder PaginationOptions::sortorder() const { - // @@protoc_insertion_point(field_get:datacatalog.PaginationOptions.sortOrder) - return static_cast< ::datacatalog::PaginationOptions_SortOrder >(sortorder_); -} -inline void PaginationOptions::set_sortorder(::datacatalog::PaginationOptions_SortOrder value) { - - sortorder_ = value; - // @@protoc_insertion_point(field_set:datacatalog.PaginationOptions.sortOrder) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace datacatalog - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::datacatalog::SinglePropertyFilter_ComparisonOperator> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::SinglePropertyFilter_ComparisonOperator>() { - return ::datacatalog::SinglePropertyFilter_ComparisonOperator_descriptor(); -} -template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortOrder> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortOrder>() { - return ::datacatalog::PaginationOptions_SortOrder_descriptor(); -} -template <> struct is_proto_enum< ::datacatalog::PaginationOptions_SortKey> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::datacatalog::PaginationOptions_SortKey>() { - return ::datacatalog::PaginationOptions_SortKey_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fdatacatalog_2fdatacatalog_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.cc deleted file mode 100644 index dd34f52276..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/event/cloudevents.proto - -#include "flyteidl/event/cloudevents.pb.h" -#include "flyteidl/event/cloudevents.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace event { - -} // namespace flyteidl -} // namespace event - diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.h deleted file mode 100644 index 3572885d64..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/event/cloudevents.proto -#ifndef GRPC_flyteidl_2fevent_2fcloudevents_2eproto__INCLUDED -#define GRPC_flyteidl_2fevent_2fcloudevents_2eproto__INCLUDED - -#include "flyteidl/event/cloudevents.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace event { - -} // namespace event -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fevent_2fcloudevents_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc deleted file mode 100644 index 5200354c7b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.cc +++ /dev/null @@ -1,2812 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/cloudevents.proto - -#include "flyteidl/event/cloudevents.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fartifact_5fid_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2finterface_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<4> scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<8> scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<9> scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto; -namespace flyteidl { -namespace event { -class CloudEventWorkflowExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CloudEventWorkflowExecution_default_instance_; -class CloudEventNodeExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CloudEventNodeExecution_default_instance_; -class CloudEventTaskExecutionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CloudEventTaskExecution_default_instance_; -class CloudEventExecutionStartDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CloudEventExecutionStart_default_instance_; -} // namespace event -} // namespace flyteidl -static void InitDefaultsCloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_CloudEventWorkflowExecution_default_instance_; - new (ptr) ::flyteidl::event::CloudEventWorkflowExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::CloudEventWorkflowExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsCloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsCloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_CloudEventNodeExecution_default_instance_; - new (ptr) ::flyteidl::event::CloudEventNodeExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::CloudEventNodeExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<6> scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 6, InitDefaultsCloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TypedInterface_flyteidl_2fcore_2finterface_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsCloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_CloudEventTaskExecution_default_instance_; - new (ptr) ::flyteidl::event::CloudEventTaskExecution(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::CloudEventTaskExecution::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsCloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_CloudEventExecutionStart_default_instance_; - new (ptr) ::flyteidl::event::CloudEventExecutionStart(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::CloudEventExecutionStart::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_CloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsCloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_ArtifactID_flyteidl_2fcore_2fartifact_5fid_2eproto.base,}}; - -void InitDefaults_flyteidl_2fevent_2fcloudevents_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto[4]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fevent_2fcloudevents_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fevent_2fcloudevents_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fcloudevents_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, raw_event_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, output_interface_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, input_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, artifact_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, reference_execution_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, principal_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventWorkflowExecution, launch_plan_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, raw_event_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, task_exec_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, output_interface_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, input_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, artifact_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, principal_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventNodeExecution, launch_plan_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventTaskExecution, raw_event_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, launch_plan_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, workflow_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, artifact_ids_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, artifact_keys_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::CloudEventExecutionStart, principal_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::event::CloudEventWorkflowExecution)}, - { 13, -1, sizeof(::flyteidl::event::CloudEventNodeExecution)}, - { 26, -1, sizeof(::flyteidl::event::CloudEventTaskExecution)}, - { 32, -1, sizeof(::flyteidl::event::CloudEventExecutionStart)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::event::_CloudEventWorkflowExecution_default_instance_), - reinterpret_cast(&::flyteidl::event::_CloudEventNodeExecution_default_instance_), - reinterpret_cast(&::flyteidl::event::_CloudEventTaskExecution_default_instance_), - reinterpret_cast(&::flyteidl::event::_CloudEventExecutionStart_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto = { - {}, AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto, "flyteidl/event/cloudevents.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fevent_2fcloudevents_2eproto::offsets, - file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto, 4, file_level_enum_descriptors_flyteidl_2fevent_2fcloudevents_2eproto, file_level_service_descriptors_flyteidl_2fevent_2fcloudevents_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto[] = - "\n flyteidl/event/cloudevents.proto\022\016flyt" - "eidl.event\032\032flyteidl/event/event.proto\032\034" - "flyteidl/core/literals.proto\032\035flyteidl/c" - "ore/interface.proto\032\037flyteidl/core/artif" - "act_id.proto\032\036flyteidl/core/identifier.p" - "roto\032\037google/protobuf/timestamp.proto\"\260\003" - "\n\033CloudEventWorkflowExecution\0229\n\traw_eve" - "nt\030\001 \001(\0132&.flyteidl.event.WorkflowExecut" - "ionEvent\022.\n\013output_data\030\002 \001(\0132\031.flyteidl" - ".core.LiteralMap\0227\n\020output_interface\030\003 \001" - "(\0132\035.flyteidl.core.TypedInterface\022-\n\ninp" - "ut_data\030\004 \001(\0132\031.flyteidl.core.LiteralMap" - "\022/\n\014artifact_ids\030\005 \003(\0132\031.flyteidl.core.A" - "rtifactID\022G\n\023reference_execution\030\006 \001(\0132*" - ".flyteidl.core.WorkflowExecutionIdentifi" - "er\022\021\n\tprincipal\030\007 \001(\t\0221\n\016launch_plan_id\030" - "\010 \001(\0132\031.flyteidl.core.Identifier\"\235\003\n\027Clo" - "udEventNodeExecution\0225\n\traw_event\030\001 \001(\0132" - "\".flyteidl.event.NodeExecutionEvent\022<\n\014t" - "ask_exec_id\030\002 \001(\0132&.flyteidl.core.TaskEx" - "ecutionIdentifier\022.\n\013output_data\030\003 \001(\0132\031" - ".flyteidl.core.LiteralMap\0227\n\020output_inte" - "rface\030\004 \001(\0132\035.flyteidl.core.TypedInterfa" - "ce\022-\n\ninput_data\030\005 \001(\0132\031.flyteidl.core.L" - "iteralMap\022/\n\014artifact_ids\030\006 \003(\0132\031.flytei" - "dl.core.ArtifactID\022\021\n\tprincipal\030\007 \001(\t\0221\n" - "\016launch_plan_id\030\010 \001(\0132\031.flyteidl.core.Id" - "entifier\"P\n\027CloudEventTaskExecution\0225\n\tr" - "aw_event\030\001 \001(\0132\".flyteidl.event.TaskExec" - "utionEvent\"\232\002\n\030CloudEventExecutionStart\022" - "@\n\014execution_id\030\001 \001(\0132*.flyteidl.core.Wo" - "rkflowExecutionIdentifier\0221\n\016launch_plan" - "_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022.\n\013" - "workflow_id\030\003 \001(\0132\031.flyteidl.core.Identi" - "fier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl.co" - "re.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\t\022\021\n\t" - "principal\030\006 \001(\tB=Z;github.com/flyteorg/f" - "lyte/flyteidl/gen/pb-go/flyteidl/eventb\006" - "proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fevent_2fcloudevents_2eproto = { - false, InitDefaults_flyteidl_2fevent_2fcloudevents_2eproto, - descriptor_table_protodef_flyteidl_2fevent_2fcloudevents_2eproto, - "flyteidl/event/cloudevents.proto", &assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto, 1526, -}; - -void AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[6] = - { - ::AddDescriptors_flyteidl_2fevent_2fevent_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fartifact_5fid_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fevent_2fcloudevents_2eproto, deps, 6); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fevent_2fcloudevents_2eproto = []() { AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto(); return true; }(); -namespace flyteidl { -namespace event { - -// =================================================================== - -void CloudEventWorkflowExecution::InitAsDefaultInstance() { - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->raw_event_ = const_cast< ::flyteidl::event::WorkflowExecutionEvent*>( - ::flyteidl::event::WorkflowExecutionEvent::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->output_interface_ = const_cast< ::flyteidl::core::TypedInterface*>( - ::flyteidl::core::TypedInterface::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->reference_execution_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_CloudEventWorkflowExecution_default_instance_._instance.get_mutable()->launch_plan_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class CloudEventWorkflowExecution::HasBitSetters { - public: - static const ::flyteidl::event::WorkflowExecutionEvent& raw_event(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::LiteralMap& output_data(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::TypedInterface& output_interface(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::LiteralMap& input_data(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution(const CloudEventWorkflowExecution* msg); - static const ::flyteidl::core::Identifier& launch_plan_id(const CloudEventWorkflowExecution* msg); -}; - -const ::flyteidl::event::WorkflowExecutionEvent& -CloudEventWorkflowExecution::HasBitSetters::raw_event(const CloudEventWorkflowExecution* msg) { - return *msg->raw_event_; -} -const ::flyteidl::core::LiteralMap& -CloudEventWorkflowExecution::HasBitSetters::output_data(const CloudEventWorkflowExecution* msg) { - return *msg->output_data_; -} -const ::flyteidl::core::TypedInterface& -CloudEventWorkflowExecution::HasBitSetters::output_interface(const CloudEventWorkflowExecution* msg) { - return *msg->output_interface_; -} -const ::flyteidl::core::LiteralMap& -CloudEventWorkflowExecution::HasBitSetters::input_data(const CloudEventWorkflowExecution* msg) { - return *msg->input_data_; -} -const ::flyteidl::core::WorkflowExecutionIdentifier& -CloudEventWorkflowExecution::HasBitSetters::reference_execution(const CloudEventWorkflowExecution* msg) { - return *msg->reference_execution_; -} -const ::flyteidl::core::Identifier& -CloudEventWorkflowExecution::HasBitSetters::launch_plan_id(const CloudEventWorkflowExecution* msg) { - return *msg->launch_plan_id_; -} -void CloudEventWorkflowExecution::clear_raw_event() { - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; -} -void CloudEventWorkflowExecution::clear_output_data() { - if (GetArenaNoVirtual() == nullptr && output_data_ != nullptr) { - delete output_data_; - } - output_data_ = nullptr; -} -void CloudEventWorkflowExecution::clear_output_interface() { - if (GetArenaNoVirtual() == nullptr && output_interface_ != nullptr) { - delete output_interface_; - } - output_interface_ = nullptr; -} -void CloudEventWorkflowExecution::clear_input_data() { - if (GetArenaNoVirtual() == nullptr && input_data_ != nullptr) { - delete input_data_; - } - input_data_ = nullptr; -} -void CloudEventWorkflowExecution::clear_artifact_ids() { - artifact_ids_.Clear(); -} -void CloudEventWorkflowExecution::clear_reference_execution() { - if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { - delete reference_execution_; - } - reference_execution_ = nullptr; -} -void CloudEventWorkflowExecution::clear_launch_plan_id() { - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventWorkflowExecution::kRawEventFieldNumber; -const int CloudEventWorkflowExecution::kOutputDataFieldNumber; -const int CloudEventWorkflowExecution::kOutputInterfaceFieldNumber; -const int CloudEventWorkflowExecution::kInputDataFieldNumber; -const int CloudEventWorkflowExecution::kArtifactIdsFieldNumber; -const int CloudEventWorkflowExecution::kReferenceExecutionFieldNumber; -const int CloudEventWorkflowExecution::kPrincipalFieldNumber; -const int CloudEventWorkflowExecution::kLaunchPlanIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CloudEventWorkflowExecution::CloudEventWorkflowExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.CloudEventWorkflowExecution) -} -CloudEventWorkflowExecution::CloudEventWorkflowExecution(const CloudEventWorkflowExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_ids_(from.artifact_ids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_raw_event()) { - raw_event_ = new ::flyteidl::event::WorkflowExecutionEvent(*from.raw_event_); - } else { - raw_event_ = nullptr; - } - if (from.has_output_data()) { - output_data_ = new ::flyteidl::core::LiteralMap(*from.output_data_); - } else { - output_data_ = nullptr; - } - if (from.has_output_interface()) { - output_interface_ = new ::flyteidl::core::TypedInterface(*from.output_interface_); - } else { - output_interface_ = nullptr; - } - if (from.has_input_data()) { - input_data_ = new ::flyteidl::core::LiteralMap(*from.input_data_); - } else { - input_data_ = nullptr; - } - if (from.has_reference_execution()) { - reference_execution_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.reference_execution_); - } else { - reference_execution_ = nullptr; - } - if (from.has_launch_plan_id()) { - launch_plan_id_ = new ::flyteidl::core::Identifier(*from.launch_plan_id_); - } else { - launch_plan_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.CloudEventWorkflowExecution) -} - -void CloudEventWorkflowExecution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&raw_event_, 0, static_cast( - reinterpret_cast(&launch_plan_id_) - - reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); -} - -CloudEventWorkflowExecution::~CloudEventWorkflowExecution() { - // @@protoc_insertion_point(destructor:flyteidl.event.CloudEventWorkflowExecution) - SharedDtor(); -} - -void CloudEventWorkflowExecution::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete raw_event_; - if (this != internal_default_instance()) delete output_data_; - if (this != internal_default_instance()) delete output_interface_; - if (this != internal_default_instance()) delete input_data_; - if (this != internal_default_instance()) delete reference_execution_; - if (this != internal_default_instance()) delete launch_plan_id_; -} - -void CloudEventWorkflowExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CloudEventWorkflowExecution& CloudEventWorkflowExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventWorkflowExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - return *internal_default_instance(); -} - - -void CloudEventWorkflowExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.CloudEventWorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_ids_.Clear(); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; - if (GetArenaNoVirtual() == nullptr && output_data_ != nullptr) { - delete output_data_; - } - output_data_ = nullptr; - if (GetArenaNoVirtual() == nullptr && output_interface_ != nullptr) { - delete output_interface_; - } - output_interface_ = nullptr; - if (GetArenaNoVirtual() == nullptr && input_data_ != nullptr) { - delete input_data_; - } - input_data_ = nullptr; - if (GetArenaNoVirtual() == nullptr && reference_execution_ != nullptr) { - delete reference_execution_; - } - reference_execution_ = nullptr; - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventWorkflowExecution::_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.event.WorkflowExecutionEvent raw_event = 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::event::WorkflowExecutionEvent::_InternalParse; - object = msg->mutable_raw_event(); - 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.core.LiteralMap output_data = 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::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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.core.TypedInterface output_interface = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; - object = msg->mutable_output_interface(); - 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.core.LiteralMap input_data = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_input_data(); - 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; - } - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_artifact_ids(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_reference_execution(); - 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; - } - // string principal = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventWorkflowExecution.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Identifier launch_plan_id = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) 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_launch_plan_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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CloudEventWorkflowExecution::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.event.CloudEventWorkflowExecution) - 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.event.WorkflowExecutionEvent raw_event = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_event())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypedInterface output_interface = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_interface())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap input_data = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_data())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_ids())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reference_execution())); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.CloudEventWorkflowExecution.principal")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_plan_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.event.CloudEventWorkflowExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.CloudEventWorkflowExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CloudEventWorkflowExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.CloudEventWorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::raw_event(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 2; - if (this->has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::output_data(this), output); - } - - // .flyteidl.core.TypedInterface output_interface = 3; - if (this->has_output_interface()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::output_interface(this), output); - } - - // .flyteidl.core.LiteralMap input_data = 4; - if (this->has_input_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::input_data(this), output); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, - this->artifact_ids(static_cast(i)), - output); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - if (this->has_reference_execution()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::reference_execution(this), output); - } - - // string principal = 7; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventWorkflowExecution.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->principal(), output); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::launch_plan_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.event.CloudEventWorkflowExecution) -} - -::google::protobuf::uint8* CloudEventWorkflowExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.CloudEventWorkflowExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::raw_event(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 2; - if (this->has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::output_data(this), target); - } - - // .flyteidl.core.TypedInterface output_interface = 3; - if (this->has_output_interface()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::output_interface(this), target); - } - - // .flyteidl.core.LiteralMap input_data = 4; - if (this->has_input_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::input_data(this), target); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, this->artifact_ids(static_cast(i)), target); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - if (this->has_reference_execution()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::reference_execution(this), target); - } - - // string principal = 7; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventWorkflowExecution.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->principal(), target); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::launch_plan_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.event.CloudEventWorkflowExecution) - return target; -} - -size_t CloudEventWorkflowExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.CloudEventWorkflowExecution) - 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; - - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - { - unsigned int count = static_cast(this->artifact_ids_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifact_ids(static_cast(i))); - } - } - - // string principal = 7; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_event_); - } - - // .flyteidl.core.LiteralMap output_data = 2; - if (this->has_output_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_data_); - } - - // .flyteidl.core.TypedInterface output_interface = 3; - if (this->has_output_interface()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_interface_); - } - - // .flyteidl.core.LiteralMap input_data = 4; - if (this->has_input_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *input_data_); - } - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - if (this->has_reference_execution()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reference_execution_); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launch_plan_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudEventWorkflowExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.CloudEventWorkflowExecution) - GOOGLE_DCHECK_NE(&from, this); - const CloudEventWorkflowExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.CloudEventWorkflowExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.CloudEventWorkflowExecution) - MergeFrom(*source); - } -} - -void CloudEventWorkflowExecution::MergeFrom(const CloudEventWorkflowExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.CloudEventWorkflowExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifact_ids_.MergeFrom(from.artifact_ids_); - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_raw_event()) { - mutable_raw_event()->::flyteidl::event::WorkflowExecutionEvent::MergeFrom(from.raw_event()); - } - if (from.has_output_data()) { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - } - if (from.has_output_interface()) { - mutable_output_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.output_interface()); - } - if (from.has_input_data()) { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - } - if (from.has_reference_execution()) { - mutable_reference_execution()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.reference_execution()); - } - if (from.has_launch_plan_id()) { - mutable_launch_plan_id()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan_id()); - } -} - -void CloudEventWorkflowExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.CloudEventWorkflowExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CloudEventWorkflowExecution::CopyFrom(const CloudEventWorkflowExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.CloudEventWorkflowExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudEventWorkflowExecution::IsInitialized() const { - return true; -} - -void CloudEventWorkflowExecution::Swap(CloudEventWorkflowExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void CloudEventWorkflowExecution::InternalSwap(CloudEventWorkflowExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(raw_event_, other->raw_event_); - swap(output_data_, other->output_data_); - swap(output_interface_, other->output_interface_); - swap(input_data_, other->input_data_); - swap(reference_execution_, other->reference_execution_); - swap(launch_plan_id_, other->launch_plan_id_); -} - -::google::protobuf::Metadata CloudEventWorkflowExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CloudEventNodeExecution::InitAsDefaultInstance() { - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->raw_event_ = const_cast< ::flyteidl::event::NodeExecutionEvent*>( - ::flyteidl::event::NodeExecutionEvent::internal_default_instance()); - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->task_exec_id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->output_interface_ = const_cast< ::flyteidl::core::TypedInterface*>( - ::flyteidl::core::TypedInterface::internal_default_instance()); - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_CloudEventNodeExecution_default_instance_._instance.get_mutable()->launch_plan_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class CloudEventNodeExecution::HasBitSetters { - public: - static const ::flyteidl::event::NodeExecutionEvent& raw_event(const CloudEventNodeExecution* msg); - static const ::flyteidl::core::TaskExecutionIdentifier& task_exec_id(const CloudEventNodeExecution* msg); - static const ::flyteidl::core::LiteralMap& output_data(const CloudEventNodeExecution* msg); - static const ::flyteidl::core::TypedInterface& output_interface(const CloudEventNodeExecution* msg); - static const ::flyteidl::core::LiteralMap& input_data(const CloudEventNodeExecution* msg); - static const ::flyteidl::core::Identifier& launch_plan_id(const CloudEventNodeExecution* msg); -}; - -const ::flyteidl::event::NodeExecutionEvent& -CloudEventNodeExecution::HasBitSetters::raw_event(const CloudEventNodeExecution* msg) { - return *msg->raw_event_; -} -const ::flyteidl::core::TaskExecutionIdentifier& -CloudEventNodeExecution::HasBitSetters::task_exec_id(const CloudEventNodeExecution* msg) { - return *msg->task_exec_id_; -} -const ::flyteidl::core::LiteralMap& -CloudEventNodeExecution::HasBitSetters::output_data(const CloudEventNodeExecution* msg) { - return *msg->output_data_; -} -const ::flyteidl::core::TypedInterface& -CloudEventNodeExecution::HasBitSetters::output_interface(const CloudEventNodeExecution* msg) { - return *msg->output_interface_; -} -const ::flyteidl::core::LiteralMap& -CloudEventNodeExecution::HasBitSetters::input_data(const CloudEventNodeExecution* msg) { - return *msg->input_data_; -} -const ::flyteidl::core::Identifier& -CloudEventNodeExecution::HasBitSetters::launch_plan_id(const CloudEventNodeExecution* msg) { - return *msg->launch_plan_id_; -} -void CloudEventNodeExecution::clear_raw_event() { - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; -} -void CloudEventNodeExecution::clear_task_exec_id() { - if (GetArenaNoVirtual() == nullptr && task_exec_id_ != nullptr) { - delete task_exec_id_; - } - task_exec_id_ = nullptr; -} -void CloudEventNodeExecution::clear_output_data() { - if (GetArenaNoVirtual() == nullptr && output_data_ != nullptr) { - delete output_data_; - } - output_data_ = nullptr; -} -void CloudEventNodeExecution::clear_output_interface() { - if (GetArenaNoVirtual() == nullptr && output_interface_ != nullptr) { - delete output_interface_; - } - output_interface_ = nullptr; -} -void CloudEventNodeExecution::clear_input_data() { - if (GetArenaNoVirtual() == nullptr && input_data_ != nullptr) { - delete input_data_; - } - input_data_ = nullptr; -} -void CloudEventNodeExecution::clear_artifact_ids() { - artifact_ids_.Clear(); -} -void CloudEventNodeExecution::clear_launch_plan_id() { - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventNodeExecution::kRawEventFieldNumber; -const int CloudEventNodeExecution::kTaskExecIdFieldNumber; -const int CloudEventNodeExecution::kOutputDataFieldNumber; -const int CloudEventNodeExecution::kOutputInterfaceFieldNumber; -const int CloudEventNodeExecution::kInputDataFieldNumber; -const int CloudEventNodeExecution::kArtifactIdsFieldNumber; -const int CloudEventNodeExecution::kPrincipalFieldNumber; -const int CloudEventNodeExecution::kLaunchPlanIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CloudEventNodeExecution::CloudEventNodeExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.CloudEventNodeExecution) -} -CloudEventNodeExecution::CloudEventNodeExecution(const CloudEventNodeExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_ids_(from.artifact_ids_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_raw_event()) { - raw_event_ = new ::flyteidl::event::NodeExecutionEvent(*from.raw_event_); - } else { - raw_event_ = nullptr; - } - if (from.has_task_exec_id()) { - task_exec_id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.task_exec_id_); - } else { - task_exec_id_ = nullptr; - } - if (from.has_output_data()) { - output_data_ = new ::flyteidl::core::LiteralMap(*from.output_data_); - } else { - output_data_ = nullptr; - } - if (from.has_output_interface()) { - output_interface_ = new ::flyteidl::core::TypedInterface(*from.output_interface_); - } else { - output_interface_ = nullptr; - } - if (from.has_input_data()) { - input_data_ = new ::flyteidl::core::LiteralMap(*from.input_data_); - } else { - input_data_ = nullptr; - } - if (from.has_launch_plan_id()) { - launch_plan_id_ = new ::flyteidl::core::Identifier(*from.launch_plan_id_); - } else { - launch_plan_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.CloudEventNodeExecution) -} - -void CloudEventNodeExecution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&raw_event_, 0, static_cast( - reinterpret_cast(&launch_plan_id_) - - reinterpret_cast(&raw_event_)) + sizeof(launch_plan_id_)); -} - -CloudEventNodeExecution::~CloudEventNodeExecution() { - // @@protoc_insertion_point(destructor:flyteidl.event.CloudEventNodeExecution) - SharedDtor(); -} - -void CloudEventNodeExecution::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete raw_event_; - if (this != internal_default_instance()) delete task_exec_id_; - if (this != internal_default_instance()) delete output_data_; - if (this != internal_default_instance()) delete output_interface_; - if (this != internal_default_instance()) delete input_data_; - if (this != internal_default_instance()) delete launch_plan_id_; -} - -void CloudEventNodeExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CloudEventNodeExecution& CloudEventNodeExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventNodeExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - return *internal_default_instance(); -} - - -void CloudEventNodeExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.CloudEventNodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_ids_.Clear(); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; - if (GetArenaNoVirtual() == nullptr && task_exec_id_ != nullptr) { - delete task_exec_id_; - } - task_exec_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && output_data_ != nullptr) { - delete output_data_; - } - output_data_ = nullptr; - if (GetArenaNoVirtual() == nullptr && output_interface_ != nullptr) { - delete output_interface_; - } - output_interface_ = nullptr; - if (GetArenaNoVirtual() == nullptr && input_data_ != nullptr) { - delete input_data_; - } - input_data_ = nullptr; - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventNodeExecution::_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.event.NodeExecutionEvent raw_event = 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::event::NodeExecutionEvent::_InternalParse; - object = msg->mutable_raw_event(); - 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.core.TaskExecutionIdentifier task_exec_id = 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::core::TaskExecutionIdentifier::_InternalParse; - object = msg->mutable_task_exec_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; - } - // .flyteidl.core.LiteralMap output_data = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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.core.TypedInterface output_interface = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TypedInterface::_InternalParse; - object = msg->mutable_output_interface(); - 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.core.LiteralMap input_data = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_input_data(); - 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; - } - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_artifact_ids(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - break; - } - // string principal = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventNodeExecution.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Identifier launch_plan_id = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) 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_launch_plan_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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CloudEventNodeExecution::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.event.CloudEventNodeExecution) - 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.event.NodeExecutionEvent raw_event = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_event())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_exec_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TypedInterface output_interface = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_interface())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap input_data = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_data())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_ids())); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.CloudEventNodeExecution.principal")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_plan_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.event.CloudEventNodeExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.CloudEventNodeExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CloudEventNodeExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.CloudEventNodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.NodeExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::raw_event(this), output); - } - - // .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - if (this->has_task_exec_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::task_exec_id(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 3; - if (this->has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::output_data(this), output); - } - - // .flyteidl.core.TypedInterface output_interface = 4; - if (this->has_output_interface()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::output_interface(this), output); - } - - // .flyteidl.core.LiteralMap input_data = 5; - if (this->has_input_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::input_data(this), output); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->artifact_ids(static_cast(i)), - output); - } - - // string principal = 7; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventNodeExecution.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->principal(), output); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::launch_plan_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.event.CloudEventNodeExecution) -} - -::google::protobuf::uint8* CloudEventNodeExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.CloudEventNodeExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.NodeExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::raw_event(this), target); - } - - // .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - if (this->has_task_exec_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::task_exec_id(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 3; - if (this->has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::output_data(this), target); - } - - // .flyteidl.core.TypedInterface output_interface = 4; - if (this->has_output_interface()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::output_interface(this), target); - } - - // .flyteidl.core.LiteralMap input_data = 5; - if (this->has_input_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::input_data(this), target); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->artifact_ids(static_cast(i)), target); - } - - // string principal = 7; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventNodeExecution.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->principal(), target); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::launch_plan_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.event.CloudEventNodeExecution) - return target; -} - -size_t CloudEventNodeExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.CloudEventNodeExecution) - 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; - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - { - unsigned int count = static_cast(this->artifact_ids_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifact_ids(static_cast(i))); - } - } - - // string principal = 7; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .flyteidl.event.NodeExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_event_); - } - - // .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - if (this->has_task_exec_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_exec_id_); - } - - // .flyteidl.core.LiteralMap output_data = 3; - if (this->has_output_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_data_); - } - - // .flyteidl.core.TypedInterface output_interface = 4; - if (this->has_output_interface()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_interface_); - } - - // .flyteidl.core.LiteralMap input_data = 5; - if (this->has_input_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *input_data_); - } - - // .flyteidl.core.Identifier launch_plan_id = 8; - if (this->has_launch_plan_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launch_plan_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudEventNodeExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.CloudEventNodeExecution) - GOOGLE_DCHECK_NE(&from, this); - const CloudEventNodeExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.CloudEventNodeExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.CloudEventNodeExecution) - MergeFrom(*source); - } -} - -void CloudEventNodeExecution::MergeFrom(const CloudEventNodeExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.CloudEventNodeExecution) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifact_ids_.MergeFrom(from.artifact_ids_); - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_raw_event()) { - mutable_raw_event()->::flyteidl::event::NodeExecutionEvent::MergeFrom(from.raw_event()); - } - if (from.has_task_exec_id()) { - mutable_task_exec_id()->::flyteidl::core::TaskExecutionIdentifier::MergeFrom(from.task_exec_id()); - } - if (from.has_output_data()) { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - } - if (from.has_output_interface()) { - mutable_output_interface()->::flyteidl::core::TypedInterface::MergeFrom(from.output_interface()); - } - if (from.has_input_data()) { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - } - if (from.has_launch_plan_id()) { - mutable_launch_plan_id()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan_id()); - } -} - -void CloudEventNodeExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.CloudEventNodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CloudEventNodeExecution::CopyFrom(const CloudEventNodeExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.CloudEventNodeExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudEventNodeExecution::IsInitialized() const { - return true; -} - -void CloudEventNodeExecution::Swap(CloudEventNodeExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void CloudEventNodeExecution::InternalSwap(CloudEventNodeExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(raw_event_, other->raw_event_); - swap(task_exec_id_, other->task_exec_id_); - swap(output_data_, other->output_data_); - swap(output_interface_, other->output_interface_); - swap(input_data_, other->input_data_); - swap(launch_plan_id_, other->launch_plan_id_); -} - -::google::protobuf::Metadata CloudEventNodeExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CloudEventTaskExecution::InitAsDefaultInstance() { - ::flyteidl::event::_CloudEventTaskExecution_default_instance_._instance.get_mutable()->raw_event_ = const_cast< ::flyteidl::event::TaskExecutionEvent*>( - ::flyteidl::event::TaskExecutionEvent::internal_default_instance()); -} -class CloudEventTaskExecution::HasBitSetters { - public: - static const ::flyteidl::event::TaskExecutionEvent& raw_event(const CloudEventTaskExecution* msg); -}; - -const ::flyteidl::event::TaskExecutionEvent& -CloudEventTaskExecution::HasBitSetters::raw_event(const CloudEventTaskExecution* msg) { - return *msg->raw_event_; -} -void CloudEventTaskExecution::clear_raw_event() { - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventTaskExecution::kRawEventFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CloudEventTaskExecution::CloudEventTaskExecution() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.CloudEventTaskExecution) -} -CloudEventTaskExecution::CloudEventTaskExecution(const CloudEventTaskExecution& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_raw_event()) { - raw_event_ = new ::flyteidl::event::TaskExecutionEvent(*from.raw_event_); - } else { - raw_event_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.CloudEventTaskExecution) -} - -void CloudEventTaskExecution::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - raw_event_ = nullptr; -} - -CloudEventTaskExecution::~CloudEventTaskExecution() { - // @@protoc_insertion_point(destructor:flyteidl.event.CloudEventTaskExecution) - SharedDtor(); -} - -void CloudEventTaskExecution::SharedDtor() { - if (this != internal_default_instance()) delete raw_event_; -} - -void CloudEventTaskExecution::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CloudEventTaskExecution& CloudEventTaskExecution::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventTaskExecution_flyteidl_2fevent_2fcloudevents_2eproto.base); - return *internal_default_instance(); -} - - -void CloudEventTaskExecution::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.CloudEventTaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && raw_event_ != nullptr) { - delete raw_event_; - } - raw_event_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventTaskExecution::_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.event.TaskExecutionEvent raw_event = 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::event::TaskExecutionEvent::_InternalParse; - object = msg->mutable_raw_event(); - 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 CloudEventTaskExecution::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.event.CloudEventTaskExecution) - 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.event.TaskExecutionEvent raw_event = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_raw_event())); - } 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.event.CloudEventTaskExecution) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.CloudEventTaskExecution) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CloudEventTaskExecution::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.CloudEventTaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.TaskExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::raw_event(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.CloudEventTaskExecution) -} - -::google::protobuf::uint8* CloudEventTaskExecution::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.CloudEventTaskExecution) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.event.TaskExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::raw_event(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.event.CloudEventTaskExecution) - return target; -} - -size_t CloudEventTaskExecution::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.CloudEventTaskExecution) - 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.event.TaskExecutionEvent raw_event = 1; - if (this->has_raw_event()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *raw_event_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudEventTaskExecution::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.CloudEventTaskExecution) - GOOGLE_DCHECK_NE(&from, this); - const CloudEventTaskExecution* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.CloudEventTaskExecution) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.CloudEventTaskExecution) - MergeFrom(*source); - } -} - -void CloudEventTaskExecution::MergeFrom(const CloudEventTaskExecution& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.CloudEventTaskExecution) - 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_raw_event()) { - mutable_raw_event()->::flyteidl::event::TaskExecutionEvent::MergeFrom(from.raw_event()); - } -} - -void CloudEventTaskExecution::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.CloudEventTaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CloudEventTaskExecution::CopyFrom(const CloudEventTaskExecution& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.CloudEventTaskExecution) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudEventTaskExecution::IsInitialized() const { - return true; -} - -void CloudEventTaskExecution::Swap(CloudEventTaskExecution* other) { - if (other == this) return; - InternalSwap(other); -} -void CloudEventTaskExecution::InternalSwap(CloudEventTaskExecution* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(raw_event_, other->raw_event_); -} - -::google::protobuf::Metadata CloudEventTaskExecution::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CloudEventExecutionStart::InitAsDefaultInstance() { - ::flyteidl::event::_CloudEventExecutionStart_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_CloudEventExecutionStart_default_instance_._instance.get_mutable()->launch_plan_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::event::_CloudEventExecutionStart_default_instance_._instance.get_mutable()->workflow_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); -} -class CloudEventExecutionStart::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const CloudEventExecutionStart* msg); - static const ::flyteidl::core::Identifier& launch_plan_id(const CloudEventExecutionStart* msg); - static const ::flyteidl::core::Identifier& workflow_id(const CloudEventExecutionStart* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -CloudEventExecutionStart::HasBitSetters::execution_id(const CloudEventExecutionStart* msg) { - return *msg->execution_id_; -} -const ::flyteidl::core::Identifier& -CloudEventExecutionStart::HasBitSetters::launch_plan_id(const CloudEventExecutionStart* msg) { - return *msg->launch_plan_id_; -} -const ::flyteidl::core::Identifier& -CloudEventExecutionStart::HasBitSetters::workflow_id(const CloudEventExecutionStart* msg) { - return *msg->workflow_id_; -} -void CloudEventExecutionStart::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -void CloudEventExecutionStart::clear_launch_plan_id() { - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; -} -void CloudEventExecutionStart::clear_workflow_id() { - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; -} -void CloudEventExecutionStart::clear_artifact_ids() { - artifact_ids_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CloudEventExecutionStart::kExecutionIdFieldNumber; -const int CloudEventExecutionStart::kLaunchPlanIdFieldNumber; -const int CloudEventExecutionStart::kWorkflowIdFieldNumber; -const int CloudEventExecutionStart::kArtifactIdsFieldNumber; -const int CloudEventExecutionStart::kArtifactKeysFieldNumber; -const int CloudEventExecutionStart::kPrincipalFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CloudEventExecutionStart::CloudEventExecutionStart() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.CloudEventExecutionStart) -} -CloudEventExecutionStart::CloudEventExecutionStart(const CloudEventExecutionStart& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - artifact_ids_(from.artifact_ids_), - artifact_keys_(from.artifact_keys_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.principal().size() > 0) { - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - if (from.has_launch_plan_id()) { - launch_plan_id_ = new ::flyteidl::core::Identifier(*from.launch_plan_id_); - } else { - launch_plan_id_ = nullptr; - } - if (from.has_workflow_id()) { - workflow_id_ = new ::flyteidl::core::Identifier(*from.workflow_id_); - } else { - workflow_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.CloudEventExecutionStart) -} - -void CloudEventExecutionStart::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto.base); - principal_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&execution_id_, 0, static_cast( - reinterpret_cast(&workflow_id_) - - reinterpret_cast(&execution_id_)) + sizeof(workflow_id_)); -} - -CloudEventExecutionStart::~CloudEventExecutionStart() { - // @@protoc_insertion_point(destructor:flyteidl.event.CloudEventExecutionStart) - SharedDtor(); -} - -void CloudEventExecutionStart::SharedDtor() { - principal_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete execution_id_; - if (this != internal_default_instance()) delete launch_plan_id_; - if (this != internal_default_instance()) delete workflow_id_; -} - -void CloudEventExecutionStart::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CloudEventExecutionStart& CloudEventExecutionStart::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CloudEventExecutionStart_flyteidl_2fevent_2fcloudevents_2eproto.base); - return *internal_default_instance(); -} - - -void CloudEventExecutionStart::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.CloudEventExecutionStart) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - artifact_ids_.Clear(); - artifact_keys_.Clear(); - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && launch_plan_id_ != nullptr) { - delete launch_plan_id_; - } - launch_plan_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && workflow_id_ != nullptr) { - delete workflow_id_; - } - workflow_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CloudEventExecutionStart::_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.WorkflowExecutionIdentifier execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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; - } - // .flyteidl.core.Identifier launch_plan_id = 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::core::Identifier::_InternalParse; - object = msg->mutable_launch_plan_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; - } - // .flyteidl.core.Identifier workflow_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) 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_workflow_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; - } - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ArtifactID::_InternalParse; - object = msg->add_artifact_ids(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // repeated string artifact_keys = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventExecutionStart.artifact_keys"); - object = msg->add_artifact_keys(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // string principal = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.CloudEventExecutionStart.principal"); - object = msg->mutable_principal(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CloudEventExecutionStart::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.event.CloudEventExecutionStart) - 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.WorkflowExecutionIdentifier execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier launch_plan_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launch_plan_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Identifier workflow_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_id())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_artifact_ids())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string artifact_keys = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_artifact_keys())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_keys(this->artifact_keys_size() - 1).data(), - static_cast(this->artifact_keys(this->artifact_keys_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.CloudEventExecutionStart.artifact_keys")); - } else { - goto handle_unusual; - } - break; - } - - // string principal = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_principal())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.CloudEventExecutionStart.principal")); - } 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.event.CloudEventExecutionStart) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.CloudEventExecutionStart) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CloudEventExecutionStart::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.CloudEventExecutionStart) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::execution_id(this), output); - } - - // .flyteidl.core.Identifier launch_plan_id = 2; - if (this->has_launch_plan_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::launch_plan_id(this), output); - } - - // .flyteidl.core.Identifier workflow_id = 3; - if (this->has_workflow_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::workflow_id(this), output); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, - this->artifact_ids(static_cast(i)), - output); - } - - // repeated string artifact_keys = 5; - for (int i = 0, n = this->artifact_keys_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_keys(i).data(), static_cast(this->artifact_keys(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventExecutionStart.artifact_keys"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->artifact_keys(i), output); - } - - // string principal = 6; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventExecutionStart.principal"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->principal(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.CloudEventExecutionStart) -} - -::google::protobuf::uint8* CloudEventExecutionStart::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.CloudEventExecutionStart) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::execution_id(this), target); - } - - // .flyteidl.core.Identifier launch_plan_id = 2; - if (this->has_launch_plan_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::launch_plan_id(this), target); - } - - // .flyteidl.core.Identifier workflow_id = 3; - if (this->has_workflow_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::workflow_id(this), target); - } - - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - for (unsigned int i = 0, - n = static_cast(this->artifact_ids_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, this->artifact_ids(static_cast(i)), target); - } - - // repeated string artifact_keys = 5; - for (int i = 0, n = this->artifact_keys_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->artifact_keys(i).data(), static_cast(this->artifact_keys(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventExecutionStart.artifact_keys"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->artifact_keys(i), target); - } - - // string principal = 6; - if (this->principal().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->principal().data(), static_cast(this->principal().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.CloudEventExecutionStart.principal"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->principal(), 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.event.CloudEventExecutionStart) - return target; -} - -size_t CloudEventExecutionStart::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.CloudEventExecutionStart) - 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; - - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - { - unsigned int count = static_cast(this->artifact_ids_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->artifact_ids(static_cast(i))); - } - } - - // repeated string artifact_keys = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->artifact_keys_size()); - for (int i = 0, n = this->artifact_keys_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->artifact_keys(i)); - } - - // string principal = 6; - if (this->principal().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->principal()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - // .flyteidl.core.Identifier launch_plan_id = 2; - if (this->has_launch_plan_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launch_plan_id_); - } - - // .flyteidl.core.Identifier workflow_id = 3; - if (this->has_workflow_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workflow_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CloudEventExecutionStart::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.CloudEventExecutionStart) - GOOGLE_DCHECK_NE(&from, this); - const CloudEventExecutionStart* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.CloudEventExecutionStart) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.CloudEventExecutionStart) - MergeFrom(*source); - } -} - -void CloudEventExecutionStart::MergeFrom(const CloudEventExecutionStart& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.CloudEventExecutionStart) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - artifact_ids_.MergeFrom(from.artifact_ids_); - artifact_keys_.MergeFrom(from.artifact_keys_); - if (from.principal().size() > 0) { - - principal_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.principal_); - } - if (from.has_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } - if (from.has_launch_plan_id()) { - mutable_launch_plan_id()->::flyteidl::core::Identifier::MergeFrom(from.launch_plan_id()); - } - if (from.has_workflow_id()) { - mutable_workflow_id()->::flyteidl::core::Identifier::MergeFrom(from.workflow_id()); - } -} - -void CloudEventExecutionStart::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.CloudEventExecutionStart) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CloudEventExecutionStart::CopyFrom(const CloudEventExecutionStart& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.CloudEventExecutionStart) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CloudEventExecutionStart::IsInitialized() const { - return true; -} - -void CloudEventExecutionStart::Swap(CloudEventExecutionStart* other) { - if (other == this) return; - InternalSwap(other); -} -void CloudEventExecutionStart::InternalSwap(CloudEventExecutionStart* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&artifact_ids_)->InternalSwap(CastToBase(&other->artifact_ids_)); - artifact_keys_.InternalSwap(CastToBase(&other->artifact_keys_)); - principal_.Swap(&other->principal_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(execution_id_, other->execution_id_); - swap(launch_plan_id_, other->launch_plan_id_); - swap(workflow_id_, other->workflow_id_); -} - -::google::protobuf::Metadata CloudEventExecutionStart::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fcloudevents_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fcloudevents_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace event -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::event::CloudEventWorkflowExecution* Arena::CreateMaybeMessage< ::flyteidl::event::CloudEventWorkflowExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::CloudEventWorkflowExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::CloudEventNodeExecution* Arena::CreateMaybeMessage< ::flyteidl::event::CloudEventNodeExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::CloudEventNodeExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::CloudEventTaskExecution* Arena::CreateMaybeMessage< ::flyteidl::event::CloudEventTaskExecution >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::CloudEventTaskExecution >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::CloudEventExecutionStart* Arena::CreateMaybeMessage< ::flyteidl::event::CloudEventExecutionStart >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::CloudEventExecutionStart >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h deleted file mode 100644 index 999d5a1137..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/cloudevents.pb.h +++ /dev/null @@ -1,1841 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/cloudevents.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fevent_2fcloudevents_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fevent_2fcloudevents_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/event/event.pb.h" -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/interface.pb.h" -#include "flyteidl/core/artifact_id.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fcloudevents_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fevent_2fcloudevents_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fevent_2fcloudevents_2eproto(); -namespace flyteidl { -namespace event { -class CloudEventExecutionStart; -class CloudEventExecutionStartDefaultTypeInternal; -extern CloudEventExecutionStartDefaultTypeInternal _CloudEventExecutionStart_default_instance_; -class CloudEventNodeExecution; -class CloudEventNodeExecutionDefaultTypeInternal; -extern CloudEventNodeExecutionDefaultTypeInternal _CloudEventNodeExecution_default_instance_; -class CloudEventTaskExecution; -class CloudEventTaskExecutionDefaultTypeInternal; -extern CloudEventTaskExecutionDefaultTypeInternal _CloudEventTaskExecution_default_instance_; -class CloudEventWorkflowExecution; -class CloudEventWorkflowExecutionDefaultTypeInternal; -extern CloudEventWorkflowExecutionDefaultTypeInternal _CloudEventWorkflowExecution_default_instance_; -} // namespace event -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::event::CloudEventExecutionStart* Arena::CreateMaybeMessage<::flyteidl::event::CloudEventExecutionStart>(Arena*); -template<> ::flyteidl::event::CloudEventNodeExecution* Arena::CreateMaybeMessage<::flyteidl::event::CloudEventNodeExecution>(Arena*); -template<> ::flyteidl::event::CloudEventTaskExecution* Arena::CreateMaybeMessage<::flyteidl::event::CloudEventTaskExecution>(Arena*); -template<> ::flyteidl::event::CloudEventWorkflowExecution* Arena::CreateMaybeMessage<::flyteidl::event::CloudEventWorkflowExecution>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace event { - -// =================================================================== - -class CloudEventWorkflowExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.CloudEventWorkflowExecution) */ { - public: - CloudEventWorkflowExecution(); - virtual ~CloudEventWorkflowExecution(); - - CloudEventWorkflowExecution(const CloudEventWorkflowExecution& from); - - inline CloudEventWorkflowExecution& operator=(const CloudEventWorkflowExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CloudEventWorkflowExecution(CloudEventWorkflowExecution&& from) noexcept - : CloudEventWorkflowExecution() { - *this = ::std::move(from); - } - - inline CloudEventWorkflowExecution& operator=(CloudEventWorkflowExecution&& 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 CloudEventWorkflowExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventWorkflowExecution* internal_default_instance() { - return reinterpret_cast( - &_CloudEventWorkflowExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(CloudEventWorkflowExecution* other); - friend void swap(CloudEventWorkflowExecution& a, CloudEventWorkflowExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CloudEventWorkflowExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - CloudEventWorkflowExecution* 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 CloudEventWorkflowExecution& from); - void MergeFrom(const CloudEventWorkflowExecution& 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(CloudEventWorkflowExecution* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID artifact_ids = 5; - int artifact_ids_size() const; - void clear_artifact_ids(); - static const int kArtifactIdsFieldNumber = 5; - ::flyteidl::core::ArtifactID* mutable_artifact_ids(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_artifact_ids(); - const ::flyteidl::core::ArtifactID& artifact_ids(int index) const; - ::flyteidl::core::ArtifactID* add_artifact_ids(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - artifact_ids() const; - - // string principal = 7; - void clear_principal(); - static const int kPrincipalFieldNumber = 7; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - bool has_raw_event() const; - void clear_raw_event(); - static const int kRawEventFieldNumber = 1; - const ::flyteidl::event::WorkflowExecutionEvent& raw_event() const; - ::flyteidl::event::WorkflowExecutionEvent* release_raw_event(); - ::flyteidl::event::WorkflowExecutionEvent* mutable_raw_event(); - void set_allocated_raw_event(::flyteidl::event::WorkflowExecutionEvent* raw_event); - - // .flyteidl.core.LiteralMap output_data = 2; - bool has_output_data() const; - void clear_output_data(); - static const int kOutputDataFieldNumber = 2; - const ::flyteidl::core::LiteralMap& output_data() const; - ::flyteidl::core::LiteralMap* release_output_data(); - ::flyteidl::core::LiteralMap* mutable_output_data(); - void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - // .flyteidl.core.TypedInterface output_interface = 3; - bool has_output_interface() const; - void clear_output_interface(); - static const int kOutputInterfaceFieldNumber = 3; - const ::flyteidl::core::TypedInterface& output_interface() const; - ::flyteidl::core::TypedInterface* release_output_interface(); - ::flyteidl::core::TypedInterface* mutable_output_interface(); - void set_allocated_output_interface(::flyteidl::core::TypedInterface* output_interface); - - // .flyteidl.core.LiteralMap input_data = 4; - bool has_input_data() const; - void clear_input_data(); - static const int kInputDataFieldNumber = 4; - const ::flyteidl::core::LiteralMap& input_data() const; - ::flyteidl::core::LiteralMap* release_input_data(); - ::flyteidl::core::LiteralMap* mutable_input_data(); - void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - - // .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - bool has_reference_execution() const; - void clear_reference_execution(); - static const int kReferenceExecutionFieldNumber = 6; - const ::flyteidl::core::WorkflowExecutionIdentifier& reference_execution() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_reference_execution(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_reference_execution(); - void set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution); - - // .flyteidl.core.Identifier launch_plan_id = 8; - bool has_launch_plan_id() const; - void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 8; - const ::flyteidl::core::Identifier& launch_plan_id() const; - ::flyteidl::core::Identifier* release_launch_plan_id(); - ::flyteidl::core::Identifier* mutable_launch_plan_id(); - void set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventWorkflowExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::flyteidl::event::WorkflowExecutionEvent* raw_event_; - ::flyteidl::core::LiteralMap* output_data_; - ::flyteidl::core::TypedInterface* output_interface_; - ::flyteidl::core::LiteralMap* input_data_; - ::flyteidl::core::WorkflowExecutionIdentifier* reference_execution_; - ::flyteidl::core::Identifier* launch_plan_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fcloudevents_2eproto; -}; -// ------------------------------------------------------------------- - -class CloudEventNodeExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.CloudEventNodeExecution) */ { - public: - CloudEventNodeExecution(); - virtual ~CloudEventNodeExecution(); - - CloudEventNodeExecution(const CloudEventNodeExecution& from); - - inline CloudEventNodeExecution& operator=(const CloudEventNodeExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CloudEventNodeExecution(CloudEventNodeExecution&& from) noexcept - : CloudEventNodeExecution() { - *this = ::std::move(from); - } - - inline CloudEventNodeExecution& operator=(CloudEventNodeExecution&& 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 CloudEventNodeExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventNodeExecution* internal_default_instance() { - return reinterpret_cast( - &_CloudEventNodeExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(CloudEventNodeExecution* other); - friend void swap(CloudEventNodeExecution& a, CloudEventNodeExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CloudEventNodeExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - CloudEventNodeExecution* 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 CloudEventNodeExecution& from); - void MergeFrom(const CloudEventNodeExecution& 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(CloudEventNodeExecution* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID artifact_ids = 6; - int artifact_ids_size() const; - void clear_artifact_ids(); - static const int kArtifactIdsFieldNumber = 6; - ::flyteidl::core::ArtifactID* mutable_artifact_ids(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_artifact_ids(); - const ::flyteidl::core::ArtifactID& artifact_ids(int index) const; - ::flyteidl::core::ArtifactID* add_artifact_ids(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - artifact_ids() const; - - // string principal = 7; - void clear_principal(); - static const int kPrincipalFieldNumber = 7; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .flyteidl.event.NodeExecutionEvent raw_event = 1; - bool has_raw_event() const; - void clear_raw_event(); - static const int kRawEventFieldNumber = 1; - const ::flyteidl::event::NodeExecutionEvent& raw_event() const; - ::flyteidl::event::NodeExecutionEvent* release_raw_event(); - ::flyteidl::event::NodeExecutionEvent* mutable_raw_event(); - void set_allocated_raw_event(::flyteidl::event::NodeExecutionEvent* raw_event); - - // .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - bool has_task_exec_id() const; - void clear_task_exec_id(); - static const int kTaskExecIdFieldNumber = 2; - const ::flyteidl::core::TaskExecutionIdentifier& task_exec_id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_task_exec_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_task_exec_id(); - void set_allocated_task_exec_id(::flyteidl::core::TaskExecutionIdentifier* task_exec_id); - - // .flyteidl.core.LiteralMap output_data = 3; - bool has_output_data() const; - void clear_output_data(); - static const int kOutputDataFieldNumber = 3; - const ::flyteidl::core::LiteralMap& output_data() const; - ::flyteidl::core::LiteralMap* release_output_data(); - ::flyteidl::core::LiteralMap* mutable_output_data(); - void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - // .flyteidl.core.TypedInterface output_interface = 4; - bool has_output_interface() const; - void clear_output_interface(); - static const int kOutputInterfaceFieldNumber = 4; - const ::flyteidl::core::TypedInterface& output_interface() const; - ::flyteidl::core::TypedInterface* release_output_interface(); - ::flyteidl::core::TypedInterface* mutable_output_interface(); - void set_allocated_output_interface(::flyteidl::core::TypedInterface* output_interface); - - // .flyteidl.core.LiteralMap input_data = 5; - bool has_input_data() const; - void clear_input_data(); - static const int kInputDataFieldNumber = 5; - const ::flyteidl::core::LiteralMap& input_data() const; - ::flyteidl::core::LiteralMap* release_input_data(); - ::flyteidl::core::LiteralMap* mutable_input_data(); - void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - - // .flyteidl.core.Identifier launch_plan_id = 8; - bool has_launch_plan_id() const; - void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 8; - const ::flyteidl::core::Identifier& launch_plan_id() const; - ::flyteidl::core::Identifier* release_launch_plan_id(); - ::flyteidl::core::Identifier* mutable_launch_plan_id(); - void set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventNodeExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::flyteidl::event::NodeExecutionEvent* raw_event_; - ::flyteidl::core::TaskExecutionIdentifier* task_exec_id_; - ::flyteidl::core::LiteralMap* output_data_; - ::flyteidl::core::TypedInterface* output_interface_; - ::flyteidl::core::LiteralMap* input_data_; - ::flyteidl::core::Identifier* launch_plan_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fcloudevents_2eproto; -}; -// ------------------------------------------------------------------- - -class CloudEventTaskExecution final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.CloudEventTaskExecution) */ { - public: - CloudEventTaskExecution(); - virtual ~CloudEventTaskExecution(); - - CloudEventTaskExecution(const CloudEventTaskExecution& from); - - inline CloudEventTaskExecution& operator=(const CloudEventTaskExecution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CloudEventTaskExecution(CloudEventTaskExecution&& from) noexcept - : CloudEventTaskExecution() { - *this = ::std::move(from); - } - - inline CloudEventTaskExecution& operator=(CloudEventTaskExecution&& 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 CloudEventTaskExecution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventTaskExecution* internal_default_instance() { - return reinterpret_cast( - &_CloudEventTaskExecution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CloudEventTaskExecution* other); - friend void swap(CloudEventTaskExecution& a, CloudEventTaskExecution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CloudEventTaskExecution* New() const final { - return CreateMaybeMessage(nullptr); - } - - CloudEventTaskExecution* 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 CloudEventTaskExecution& from); - void MergeFrom(const CloudEventTaskExecution& 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(CloudEventTaskExecution* 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.event.TaskExecutionEvent raw_event = 1; - bool has_raw_event() const; - void clear_raw_event(); - static const int kRawEventFieldNumber = 1; - const ::flyteidl::event::TaskExecutionEvent& raw_event() const; - ::flyteidl::event::TaskExecutionEvent* release_raw_event(); - ::flyteidl::event::TaskExecutionEvent* mutable_raw_event(); - void set_allocated_raw_event(::flyteidl::event::TaskExecutionEvent* raw_event); - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventTaskExecution) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::event::TaskExecutionEvent* raw_event_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fcloudevents_2eproto; -}; -// ------------------------------------------------------------------- - -class CloudEventExecutionStart final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.CloudEventExecutionStart) */ { - public: - CloudEventExecutionStart(); - virtual ~CloudEventExecutionStart(); - - CloudEventExecutionStart(const CloudEventExecutionStart& from); - - inline CloudEventExecutionStart& operator=(const CloudEventExecutionStart& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CloudEventExecutionStart(CloudEventExecutionStart&& from) noexcept - : CloudEventExecutionStart() { - *this = ::std::move(from); - } - - inline CloudEventExecutionStart& operator=(CloudEventExecutionStart&& 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 CloudEventExecutionStart& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CloudEventExecutionStart* internal_default_instance() { - return reinterpret_cast( - &_CloudEventExecutionStart_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(CloudEventExecutionStart* other); - friend void swap(CloudEventExecutionStart& a, CloudEventExecutionStart& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CloudEventExecutionStart* New() const final { - return CreateMaybeMessage(nullptr); - } - - CloudEventExecutionStart* 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 CloudEventExecutionStart& from); - void MergeFrom(const CloudEventExecutionStart& 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(CloudEventExecutionStart* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.ArtifactID artifact_ids = 4; - int artifact_ids_size() const; - void clear_artifact_ids(); - static const int kArtifactIdsFieldNumber = 4; - ::flyteidl::core::ArtifactID* mutable_artifact_ids(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* - mutable_artifact_ids(); - const ::flyteidl::core::ArtifactID& artifact_ids(int index) const; - ::flyteidl::core::ArtifactID* add_artifact_ids(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& - artifact_ids() const; - - // repeated string artifact_keys = 5; - int artifact_keys_size() const; - void clear_artifact_keys(); - static const int kArtifactKeysFieldNumber = 5; - const ::std::string& artifact_keys(int index) const; - ::std::string* mutable_artifact_keys(int index); - void set_artifact_keys(int index, const ::std::string& value); - #if LANG_CXX11 - void set_artifact_keys(int index, ::std::string&& value); - #endif - void set_artifact_keys(int index, const char* value); - void set_artifact_keys(int index, const char* value, size_t size); - ::std::string* add_artifact_keys(); - void add_artifact_keys(const ::std::string& value); - #if LANG_CXX11 - void add_artifact_keys(::std::string&& value); - #endif - void add_artifact_keys(const char* value); - void add_artifact_keys(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& artifact_keys() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_artifact_keys(); - - // string principal = 6; - void clear_principal(); - static const int kPrincipalFieldNumber = 6; - const ::std::string& principal() const; - void set_principal(const ::std::string& value); - #if LANG_CXX11 - void set_principal(::std::string&& value); - #endif - void set_principal(const char* value); - void set_principal(const char* value, size_t size); - ::std::string* mutable_principal(); - ::std::string* release_principal(); - void set_allocated_principal(::std::string* principal); - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // .flyteidl.core.Identifier launch_plan_id = 2; - bool has_launch_plan_id() const; - void clear_launch_plan_id(); - static const int kLaunchPlanIdFieldNumber = 2; - const ::flyteidl::core::Identifier& launch_plan_id() const; - ::flyteidl::core::Identifier* release_launch_plan_id(); - ::flyteidl::core::Identifier* mutable_launch_plan_id(); - void set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id); - - // .flyteidl.core.Identifier workflow_id = 3; - bool has_workflow_id() const; - void clear_workflow_id(); - static const int kWorkflowIdFieldNumber = 3; - const ::flyteidl::core::Identifier& workflow_id() const; - ::flyteidl::core::Identifier* release_workflow_id(); - ::flyteidl::core::Identifier* mutable_workflow_id(); - void set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventExecutionStart) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID > artifact_ids_; - ::google::protobuf::RepeatedPtrField<::std::string> artifact_keys_; - ::google::protobuf::internal::ArenaStringPtr principal_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - ::flyteidl::core::Identifier* launch_plan_id_; - ::flyteidl::core::Identifier* workflow_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fcloudevents_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CloudEventWorkflowExecution - -// .flyteidl.event.WorkflowExecutionEvent raw_event = 1; -inline bool CloudEventWorkflowExecution::has_raw_event() const { - return this != internal_default_instance() && raw_event_ != nullptr; -} -inline const ::flyteidl::event::WorkflowExecutionEvent& CloudEventWorkflowExecution::raw_event() const { - const ::flyteidl::event::WorkflowExecutionEvent* p = raw_event_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.raw_event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_WorkflowExecutionEvent_default_instance_); -} -inline ::flyteidl::event::WorkflowExecutionEvent* CloudEventWorkflowExecution::release_raw_event() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.raw_event) - - ::flyteidl::event::WorkflowExecutionEvent* temp = raw_event_; - raw_event_ = nullptr; - return temp; -} -inline ::flyteidl::event::WorkflowExecutionEvent* CloudEventWorkflowExecution::mutable_raw_event() { - - if (raw_event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::WorkflowExecutionEvent>(GetArenaNoVirtual()); - raw_event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.raw_event) - return raw_event_; -} -inline void CloudEventWorkflowExecution::set_allocated_raw_event(::flyteidl::event::WorkflowExecutionEvent* raw_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_event_); - } - if (raw_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_event, submessage_arena); - } - - } else { - - } - raw_event_ = raw_event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.raw_event) -} - -// .flyteidl.core.LiteralMap output_data = 2; -inline bool CloudEventWorkflowExecution::has_output_data() const { - return this != internal_default_instance() && output_data_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& CloudEventWorkflowExecution::output_data() const { - const ::flyteidl::core::LiteralMap* p = output_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.output_data) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* CloudEventWorkflowExecution::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.output_data) - - ::flyteidl::core::LiteralMap* temp = output_data_; - output_data_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* CloudEventWorkflowExecution::mutable_output_data() { - - if (output_data_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - output_data_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.output_data) - return output_data_; -} -inline void CloudEventWorkflowExecution::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_data_); - } - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - - } else { - - } - output_data_ = output_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.output_data) -} - -// .flyteidl.core.TypedInterface output_interface = 3; -inline bool CloudEventWorkflowExecution::has_output_interface() const { - return this != internal_default_instance() && output_interface_ != nullptr; -} -inline const ::flyteidl::core::TypedInterface& CloudEventWorkflowExecution::output_interface() const { - const ::flyteidl::core::TypedInterface* p = output_interface_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.output_interface) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypedInterface_default_instance_); -} -inline ::flyteidl::core::TypedInterface* CloudEventWorkflowExecution::release_output_interface() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.output_interface) - - ::flyteidl::core::TypedInterface* temp = output_interface_; - output_interface_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypedInterface* CloudEventWorkflowExecution::mutable_output_interface() { - - if (output_interface_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); - output_interface_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.output_interface) - return output_interface_; -} -inline void CloudEventWorkflowExecution::set_allocated_output_interface(::flyteidl::core::TypedInterface* output_interface) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_interface_); - } - if (output_interface) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_interface = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_interface, submessage_arena); - } - - } else { - - } - output_interface_ = output_interface; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.output_interface) -} - -// .flyteidl.core.LiteralMap input_data = 4; -inline bool CloudEventWorkflowExecution::has_input_data() const { - return this != internal_default_instance() && input_data_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& CloudEventWorkflowExecution::input_data() const { - const ::flyteidl::core::LiteralMap* p = input_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.input_data) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* CloudEventWorkflowExecution::release_input_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.input_data) - - ::flyteidl::core::LiteralMap* temp = input_data_; - input_data_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* CloudEventWorkflowExecution::mutable_input_data() { - - if (input_data_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - input_data_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.input_data) - return input_data_; -} -inline void CloudEventWorkflowExecution::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(input_data_); - } - if (input_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_data, submessage_arena); - } - - } else { - - } - input_data_ = input_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.input_data) -} - -// repeated .flyteidl.core.ArtifactID artifact_ids = 5; -inline int CloudEventWorkflowExecution::artifact_ids_size() const { - return artifact_ids_.size(); -} -inline ::flyteidl::core::ArtifactID* CloudEventWorkflowExecution::mutable_artifact_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.artifact_ids) - return artifact_ids_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -CloudEventWorkflowExecution::mutable_artifact_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventWorkflowExecution.artifact_ids) - return &artifact_ids_; -} -inline const ::flyteidl::core::ArtifactID& CloudEventWorkflowExecution::artifact_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.artifact_ids) - return artifact_ids_.Get(index); -} -inline ::flyteidl::core::ArtifactID* CloudEventWorkflowExecution::add_artifact_ids() { - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventWorkflowExecution.artifact_ids) - return artifact_ids_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -CloudEventWorkflowExecution::artifact_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventWorkflowExecution.artifact_ids) - return artifact_ids_; -} - -// .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; -inline bool CloudEventWorkflowExecution::has_reference_execution() const { - return this != internal_default_instance() && reference_execution_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& CloudEventWorkflowExecution::reference_execution() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = reference_execution_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.reference_execution) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventWorkflowExecution::release_reference_execution() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.reference_execution) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = reference_execution_; - reference_execution_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventWorkflowExecution::mutable_reference_execution() { - - if (reference_execution_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - reference_execution_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.reference_execution) - return reference_execution_; -} -inline void CloudEventWorkflowExecution::set_allocated_reference_execution(::flyteidl::core::WorkflowExecutionIdentifier* reference_execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(reference_execution_); - } - if (reference_execution) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - reference_execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reference_execution, submessage_arena); - } - - } else { - - } - reference_execution_ = reference_execution; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.reference_execution) -} - -// string principal = 7; -inline void CloudEventWorkflowExecution::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventWorkflowExecution::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.principal) - return principal_.GetNoArena(); -} -inline void CloudEventWorkflowExecution::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventWorkflowExecution.principal) -} -#if LANG_CXX11 -inline void CloudEventWorkflowExecution::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventWorkflowExecution.principal) -} -#endif -inline void CloudEventWorkflowExecution::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventWorkflowExecution.principal) -} -inline void CloudEventWorkflowExecution::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventWorkflowExecution.principal) -} -inline ::std::string* CloudEventWorkflowExecution::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventWorkflowExecution::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventWorkflowExecution::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.principal) -} - -// .flyteidl.core.Identifier launch_plan_id = 8; -inline bool CloudEventWorkflowExecution::has_launch_plan_id() const { - return this != internal_default_instance() && launch_plan_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& CloudEventWorkflowExecution::launch_plan_id() const { - const ::flyteidl::core::Identifier* p = launch_plan_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventWorkflowExecution.launch_plan_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* CloudEventWorkflowExecution::release_launch_plan_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventWorkflowExecution.launch_plan_id) - - ::flyteidl::core::Identifier* temp = launch_plan_id_; - launch_plan_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* CloudEventWorkflowExecution::mutable_launch_plan_id() { - - if (launch_plan_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - launch_plan_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventWorkflowExecution.launch_plan_id) - return launch_plan_id_; -} -inline void CloudEventWorkflowExecution::set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_id_); - } - if (launch_plan_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launch_plan_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launch_plan_id, submessage_arena); - } - - } else { - - } - launch_plan_id_ = launch_plan_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventWorkflowExecution.launch_plan_id) -} - -// ------------------------------------------------------------------- - -// CloudEventNodeExecution - -// .flyteidl.event.NodeExecutionEvent raw_event = 1; -inline bool CloudEventNodeExecution::has_raw_event() const { - return this != internal_default_instance() && raw_event_ != nullptr; -} -inline const ::flyteidl::event::NodeExecutionEvent& CloudEventNodeExecution::raw_event() const { - const ::flyteidl::event::NodeExecutionEvent* p = raw_event_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.raw_event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_NodeExecutionEvent_default_instance_); -} -inline ::flyteidl::event::NodeExecutionEvent* CloudEventNodeExecution::release_raw_event() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.raw_event) - - ::flyteidl::event::NodeExecutionEvent* temp = raw_event_; - raw_event_ = nullptr; - return temp; -} -inline ::flyteidl::event::NodeExecutionEvent* CloudEventNodeExecution::mutable_raw_event() { - - if (raw_event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::NodeExecutionEvent>(GetArenaNoVirtual()); - raw_event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.raw_event) - return raw_event_; -} -inline void CloudEventNodeExecution::set_allocated_raw_event(::flyteidl::event::NodeExecutionEvent* raw_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_event_); - } - if (raw_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_event, submessage_arena); - } - - } else { - - } - raw_event_ = raw_event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.raw_event) -} - -// .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; -inline bool CloudEventNodeExecution::has_task_exec_id() const { - return this != internal_default_instance() && task_exec_id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& CloudEventNodeExecution::task_exec_id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = task_exec_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.task_exec_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* CloudEventNodeExecution::release_task_exec_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.task_exec_id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = task_exec_id_; - task_exec_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* CloudEventNodeExecution::mutable_task_exec_id() { - - if (task_exec_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - task_exec_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.task_exec_id) - return task_exec_id_; -} -inline void CloudEventNodeExecution::set_allocated_task_exec_id(::flyteidl::core::TaskExecutionIdentifier* task_exec_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_exec_id_); - } - if (task_exec_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_exec_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_exec_id, submessage_arena); - } - - } else { - - } - task_exec_id_ = task_exec_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.task_exec_id) -} - -// .flyteidl.core.LiteralMap output_data = 3; -inline bool CloudEventNodeExecution::has_output_data() const { - return this != internal_default_instance() && output_data_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& CloudEventNodeExecution::output_data() const { - const ::flyteidl::core::LiteralMap* p = output_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.output_data) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* CloudEventNodeExecution::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.output_data) - - ::flyteidl::core::LiteralMap* temp = output_data_; - output_data_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* CloudEventNodeExecution::mutable_output_data() { - - if (output_data_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - output_data_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.output_data) - return output_data_; -} -inline void CloudEventNodeExecution::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_data_); - } - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - - } else { - - } - output_data_ = output_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.output_data) -} - -// .flyteidl.core.TypedInterface output_interface = 4; -inline bool CloudEventNodeExecution::has_output_interface() const { - return this != internal_default_instance() && output_interface_ != nullptr; -} -inline const ::flyteidl::core::TypedInterface& CloudEventNodeExecution::output_interface() const { - const ::flyteidl::core::TypedInterface* p = output_interface_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.output_interface) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TypedInterface_default_instance_); -} -inline ::flyteidl::core::TypedInterface* CloudEventNodeExecution::release_output_interface() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.output_interface) - - ::flyteidl::core::TypedInterface* temp = output_interface_; - output_interface_ = nullptr; - return temp; -} -inline ::flyteidl::core::TypedInterface* CloudEventNodeExecution::mutable_output_interface() { - - if (output_interface_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TypedInterface>(GetArenaNoVirtual()); - output_interface_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.output_interface) - return output_interface_; -} -inline void CloudEventNodeExecution::set_allocated_output_interface(::flyteidl::core::TypedInterface* output_interface) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_interface_); - } - if (output_interface) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_interface = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_interface, submessage_arena); - } - - } else { - - } - output_interface_ = output_interface; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.output_interface) -} - -// .flyteidl.core.LiteralMap input_data = 5; -inline bool CloudEventNodeExecution::has_input_data() const { - return this != internal_default_instance() && input_data_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& CloudEventNodeExecution::input_data() const { - const ::flyteidl::core::LiteralMap* p = input_data_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.input_data) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* CloudEventNodeExecution::release_input_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.input_data) - - ::flyteidl::core::LiteralMap* temp = input_data_; - input_data_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* CloudEventNodeExecution::mutable_input_data() { - - if (input_data_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - input_data_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.input_data) - return input_data_; -} -inline void CloudEventNodeExecution::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(input_data_); - } - if (input_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_data, submessage_arena); - } - - } else { - - } - input_data_ = input_data; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.input_data) -} - -// repeated .flyteidl.core.ArtifactID artifact_ids = 6; -inline int CloudEventNodeExecution::artifact_ids_size() const { - return artifact_ids_.size(); -} -inline ::flyteidl::core::ArtifactID* CloudEventNodeExecution::mutable_artifact_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.artifact_ids) - return artifact_ids_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -CloudEventNodeExecution::mutable_artifact_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventNodeExecution.artifact_ids) - return &artifact_ids_; -} -inline const ::flyteidl::core::ArtifactID& CloudEventNodeExecution::artifact_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.artifact_ids) - return artifact_ids_.Get(index); -} -inline ::flyteidl::core::ArtifactID* CloudEventNodeExecution::add_artifact_ids() { - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventNodeExecution.artifact_ids) - return artifact_ids_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -CloudEventNodeExecution::artifact_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventNodeExecution.artifact_ids) - return artifact_ids_; -} - -// string principal = 7; -inline void CloudEventNodeExecution::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventNodeExecution::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.principal) - return principal_.GetNoArena(); -} -inline void CloudEventNodeExecution::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventNodeExecution.principal) -} -#if LANG_CXX11 -inline void CloudEventNodeExecution::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventNodeExecution.principal) -} -#endif -inline void CloudEventNodeExecution::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventNodeExecution.principal) -} -inline void CloudEventNodeExecution::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventNodeExecution.principal) -} -inline ::std::string* CloudEventNodeExecution::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventNodeExecution::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventNodeExecution::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.principal) -} - -// .flyteidl.core.Identifier launch_plan_id = 8; -inline bool CloudEventNodeExecution::has_launch_plan_id() const { - return this != internal_default_instance() && launch_plan_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& CloudEventNodeExecution::launch_plan_id() const { - const ::flyteidl::core::Identifier* p = launch_plan_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventNodeExecution.launch_plan_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* CloudEventNodeExecution::release_launch_plan_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventNodeExecution.launch_plan_id) - - ::flyteidl::core::Identifier* temp = launch_plan_id_; - launch_plan_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* CloudEventNodeExecution::mutable_launch_plan_id() { - - if (launch_plan_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - launch_plan_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventNodeExecution.launch_plan_id) - return launch_plan_id_; -} -inline void CloudEventNodeExecution::set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_id_); - } - if (launch_plan_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launch_plan_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launch_plan_id, submessage_arena); - } - - } else { - - } - launch_plan_id_ = launch_plan_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventNodeExecution.launch_plan_id) -} - -// ------------------------------------------------------------------- - -// CloudEventTaskExecution - -// .flyteidl.event.TaskExecutionEvent raw_event = 1; -inline bool CloudEventTaskExecution::has_raw_event() const { - return this != internal_default_instance() && raw_event_ != nullptr; -} -inline const ::flyteidl::event::TaskExecutionEvent& CloudEventTaskExecution::raw_event() const { - const ::flyteidl::event::TaskExecutionEvent* p = raw_event_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventTaskExecution.raw_event) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_TaskExecutionEvent_default_instance_); -} -inline ::flyteidl::event::TaskExecutionEvent* CloudEventTaskExecution::release_raw_event() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventTaskExecution.raw_event) - - ::flyteidl::event::TaskExecutionEvent* temp = raw_event_; - raw_event_ = nullptr; - return temp; -} -inline ::flyteidl::event::TaskExecutionEvent* CloudEventTaskExecution::mutable_raw_event() { - - if (raw_event_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(GetArenaNoVirtual()); - raw_event_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventTaskExecution.raw_event) - return raw_event_; -} -inline void CloudEventTaskExecution::set_allocated_raw_event(::flyteidl::event::TaskExecutionEvent* raw_event) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(raw_event_); - } - if (raw_event) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - raw_event = ::google::protobuf::internal::GetOwnedMessage( - message_arena, raw_event, submessage_arena); - } - - } else { - - } - raw_event_ = raw_event; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventTaskExecution.raw_event) -} - -// ------------------------------------------------------------------- - -// CloudEventExecutionStart - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; -inline bool CloudEventExecutionStart::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& CloudEventExecutionStart::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventExecutionStart::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventExecutionStart.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* CloudEventExecutionStart::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.execution_id) - return execution_id_; -} -inline void CloudEventExecutionStart::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventExecutionStart.execution_id) -} - -// .flyteidl.core.Identifier launch_plan_id = 2; -inline bool CloudEventExecutionStart::has_launch_plan_id() const { - return this != internal_default_instance() && launch_plan_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& CloudEventExecutionStart::launch_plan_id() const { - const ::flyteidl::core::Identifier* p = launch_plan_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.launch_plan_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* CloudEventExecutionStart::release_launch_plan_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventExecutionStart.launch_plan_id) - - ::flyteidl::core::Identifier* temp = launch_plan_id_; - launch_plan_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* CloudEventExecutionStart::mutable_launch_plan_id() { - - if (launch_plan_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - launch_plan_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.launch_plan_id) - return launch_plan_id_; -} -inline void CloudEventExecutionStart::set_allocated_launch_plan_id(::flyteidl::core::Identifier* launch_plan_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(launch_plan_id_); - } - if (launch_plan_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launch_plan_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launch_plan_id, submessage_arena); - } - - } else { - - } - launch_plan_id_ = launch_plan_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventExecutionStart.launch_plan_id) -} - -// .flyteidl.core.Identifier workflow_id = 3; -inline bool CloudEventExecutionStart::has_workflow_id() const { - return this != internal_default_instance() && workflow_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& CloudEventExecutionStart::workflow_id() const { - const ::flyteidl::core::Identifier* p = workflow_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.workflow_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* CloudEventExecutionStart::release_workflow_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventExecutionStart.workflow_id) - - ::flyteidl::core::Identifier* temp = workflow_id_; - workflow_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* CloudEventExecutionStart::mutable_workflow_id() { - - if (workflow_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - workflow_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.workflow_id) - return workflow_id_; -} -inline void CloudEventExecutionStart::set_allocated_workflow_id(::flyteidl::core::Identifier* workflow_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(workflow_id_); - } - if (workflow_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_id, submessage_arena); - } - - } else { - - } - workflow_id_ = workflow_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventExecutionStart.workflow_id) -} - -// repeated .flyteidl.core.ArtifactID artifact_ids = 4; -inline int CloudEventExecutionStart::artifact_ids_size() const { - return artifact_ids_.size(); -} -inline ::flyteidl::core::ArtifactID* CloudEventExecutionStart::mutable_artifact_ids(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.artifact_ids) - return artifact_ids_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >* -CloudEventExecutionStart::mutable_artifact_ids() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventExecutionStart.artifact_ids) - return &artifact_ids_; -} -inline const ::flyteidl::core::ArtifactID& CloudEventExecutionStart::artifact_ids(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.artifact_ids) - return artifact_ids_.Get(index); -} -inline ::flyteidl::core::ArtifactID* CloudEventExecutionStart::add_artifact_ids() { - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventExecutionStart.artifact_ids) - return artifact_ids_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::ArtifactID >& -CloudEventExecutionStart::artifact_ids() const { - // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventExecutionStart.artifact_ids) - return artifact_ids_; -} - -// repeated string artifact_keys = 5; -inline int CloudEventExecutionStart::artifact_keys_size() const { - return artifact_keys_.size(); -} -inline void CloudEventExecutionStart::clear_artifact_keys() { - artifact_keys_.Clear(); -} -inline const ::std::string& CloudEventExecutionStart::artifact_keys(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.artifact_keys) - return artifact_keys_.Get(index); -} -inline ::std::string* CloudEventExecutionStart::mutable_artifact_keys(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.artifact_keys) - return artifact_keys_.Mutable(index); -} -inline void CloudEventExecutionStart::set_artifact_keys(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventExecutionStart.artifact_keys) - artifact_keys_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void CloudEventExecutionStart::set_artifact_keys(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventExecutionStart.artifact_keys) - artifact_keys_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void CloudEventExecutionStart::set_artifact_keys(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - artifact_keys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -inline void CloudEventExecutionStart::set_artifact_keys(int index, const char* value, size_t size) { - artifact_keys_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -inline ::std::string* CloudEventExecutionStart::add_artifact_keys() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.event.CloudEventExecutionStart.artifact_keys) - return artifact_keys_.Add(); -} -inline void CloudEventExecutionStart::add_artifact_keys(const ::std::string& value) { - artifact_keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -#if LANG_CXX11 -inline void CloudEventExecutionStart::add_artifact_keys(::std::string&& value) { - artifact_keys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -#endif -inline void CloudEventExecutionStart::add_artifact_keys(const char* value) { - GOOGLE_DCHECK(value != nullptr); - artifact_keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -inline void CloudEventExecutionStart::add_artifact_keys(const char* value, size_t size) { - artifact_keys_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.event.CloudEventExecutionStart.artifact_keys) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -CloudEventExecutionStart::artifact_keys() const { - // @@protoc_insertion_point(field_list:flyteidl.event.CloudEventExecutionStart.artifact_keys) - return artifact_keys_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -CloudEventExecutionStart::mutable_artifact_keys() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.CloudEventExecutionStart.artifact_keys) - return &artifact_keys_; -} - -// string principal = 6; -inline void CloudEventExecutionStart::clear_principal() { - principal_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CloudEventExecutionStart::principal() const { - // @@protoc_insertion_point(field_get:flyteidl.event.CloudEventExecutionStart.principal) - return principal_.GetNoArena(); -} -inline void CloudEventExecutionStart::set_principal(const ::std::string& value) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.CloudEventExecutionStart.principal) -} -#if LANG_CXX11 -inline void CloudEventExecutionStart::set_principal(::std::string&& value) { - - principal_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.CloudEventExecutionStart.principal) -} -#endif -inline void CloudEventExecutionStart::set_principal(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.CloudEventExecutionStart.principal) -} -inline void CloudEventExecutionStart::set_principal(const char* value, size_t size) { - - principal_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.CloudEventExecutionStart.principal) -} -inline ::std::string* CloudEventExecutionStart::mutable_principal() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.CloudEventExecutionStart.principal) - return principal_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CloudEventExecutionStart::release_principal() { - // @@protoc_insertion_point(field_release:flyteidl.event.CloudEventExecutionStart.principal) - - return principal_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CloudEventExecutionStart::set_allocated_principal(::std::string* principal) { - if (principal != nullptr) { - - } else { - - } - principal_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), principal); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.CloudEventExecutionStart.principal) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace event -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fevent_2fcloudevents_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc deleted file mode 100644 index e45d92a954..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/event/event.proto - -#include "flyteidl/event/event.pb.h" -#include "flyteidl/event/event.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace event { - -} // namespace flyteidl -} // namespace event - diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h deleted file mode 100644 index 2d2b1a92de..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/event.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/event/event.proto -#ifndef GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED -#define GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED - -#include "flyteidl/event/event.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace event { - -} // namespace event -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fevent_2fevent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc deleted file mode 100644 index 08a81f6438..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.cc +++ /dev/null @@ -1,8589 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/event.proto - -#include "flyteidl/event/event.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcatalog_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fcompiler_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fexecution_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace event { -class WorkflowExecutionEventDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr output_uri_; - const ::flyteidl::core::ExecutionError* error_; - const ::flyteidl::core::LiteralMap* output_data_; -} _WorkflowExecutionEvent_default_instance_; -class NodeExecutionEventDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr input_uri_; - const ::flyteidl::core::LiteralMap* input_data_; - ::google::protobuf::internal::ArenaStringPtr output_uri_; - const ::flyteidl::core::ExecutionError* error_; - const ::flyteidl::core::LiteralMap* output_data_; - const ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; - const ::flyteidl::event::TaskNodeMetadata* task_node_metadata_; -} _NodeExecutionEvent_default_instance_; -class WorkflowNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkflowNodeMetadata_default_instance_; -class TaskNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskNodeMetadata_default_instance_; -class DynamicWorkflowNodeMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DynamicWorkflowNodeMetadata_default_instance_; -class ParentTaskExecutionMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParentTaskExecutionMetadata_default_instance_; -class ParentNodeExecutionMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ParentNodeExecutionMetadata_default_instance_; -class EventReasonDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _EventReason_default_instance_; -class TaskExecutionEventDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::internal::ArenaStringPtr input_uri_; - const ::flyteidl::core::LiteralMap* input_data_; - ::google::protobuf::internal::ArenaStringPtr output_uri_; - const ::flyteidl::core::ExecutionError* error_; - const ::flyteidl::core::LiteralMap* output_data_; -} _TaskExecutionEvent_default_instance_; -class ExternalResourceInfoDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ExternalResourceInfo_default_instance_; -class ResourcePoolInfoDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ResourcePoolInfo_default_instance_; -class TaskExecutionMetadataDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskExecutionMetadata_default_instance_; -} // namespace event -} // namespace flyteidl -static void InitDefaultsWorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_WorkflowExecutionEvent_default_instance_; - new (ptr) ::flyteidl::event::WorkflowExecutionEvent(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::WorkflowExecutionEvent::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<4> scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsWorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsNodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_NodeExecutionEvent_default_instance_; - new (ptr) ::flyteidl::event::NodeExecutionEvent(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::NodeExecutionEvent::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<8> scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 8, InitDefaultsNodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_WorkflowNodeMetadata_default_instance_; - new (ptr) ::flyteidl::event::WorkflowNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::WorkflowNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsTaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_TaskNodeMetadata_default_instance_; - new (ptr) ::flyteidl::event::TaskNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::TaskNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_CatalogMetadata_flyteidl_2fcore_2fcatalog_2eproto.base, - &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_; - new (ptr) ::flyteidl::event::DynamicWorkflowNodeMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::DynamicWorkflowNodeMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_CompiledWorkflowClosure_flyteidl_2fcore_2fcompiler_2eproto.base,}}; - -static void InitDefaultsParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_; - new (ptr) ::flyteidl::event::ParentTaskExecutionMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::ParentTaskExecutionMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_TaskExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_; - new (ptr) ::flyteidl::event::ParentNodeExecutionMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::ParentNodeExecutionMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, {}}; - -static void InitDefaultsEventReason_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_EventReason_default_instance_; - new (ptr) ::flyteidl::event::EventReason(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::EventReason::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsEventReason_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsTaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_TaskExecutionEvent_default_instance_; - new (ptr) ::flyteidl::event::TaskExecutionEvent(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::TaskExecutionEvent::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<9> scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 9, InitDefaultsTaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_Identifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base, - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_ExecutionError_flyteidl_2fcore_2fexecution_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base, - &scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base,}}; - -static void InitDefaultsExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_ExternalResourceInfo_default_instance_; - new (ptr) ::flyteidl::event::ExternalResourceInfo(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::ExternalResourceInfo::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_TaskLog_flyteidl_2fcore_2fexecution_2eproto.base,}}; - -static void InitDefaultsResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_ResourcePoolInfo_default_instance_; - new (ptr) ::flyteidl::event::ResourcePoolInfo(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::ResourcePoolInfo::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto}, {}}; - -static void InitDefaultsTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::event::_TaskExecutionMetadata_default_instance_; - new (ptr) ::flyteidl::event::TaskExecutionMetadata(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::event::TaskExecutionMetadata::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto}, { - &scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base, - &scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base,}}; - -void InitDefaults_flyteidl_2fevent_2fevent_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fevent_2fevent_2eproto[12]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fevent_2fevent_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fevent_2fevent_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, producer_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, occurred_at_), - offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, output_uri_), - offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, error_), - offsetof(::flyteidl::event::WorkflowExecutionEventDefaultTypeInternal, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowExecutionEvent, output_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, producer_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, occurred_at_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, input_uri_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, input_data_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, output_uri_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, error_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, output_data_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, workflow_node_metadata_), - offsetof(::flyteidl::event::NodeExecutionEventDefaultTypeInternal, task_node_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, parent_task_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, parent_node_metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, retry_group_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, spec_node_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, node_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, event_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, is_parent_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, is_dynamic_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, deck_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, reported_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, is_array_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, input_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, output_result_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::NodeExecutionEvent, target_metadata_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::WorkflowNodeMetadata, execution_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, cache_status_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, catalog_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, reservation_status_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, checkpoint_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskNodeMetadata, dynamic_workflow_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, compiled_workflow_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::DynamicWorkflowNodeMetadata, dynamic_job_spec_uri_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentTaskExecutionMetadata, id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentNodeExecutionMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ParentNodeExecutionMetadata, node_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::EventReason, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::EventReason, reason_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::EventReason, occurred_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, task_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, parent_node_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, retry_attempt_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, producer_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, logs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, occurred_at_), - offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, input_uri_), - offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, input_data_), - offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, output_uri_), - offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, error_), - offsetof(::flyteidl::event::TaskExecutionEventDefaultTypeInternal, output_data_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, custom_info_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, phase_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, reason_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, reasons_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, metadata_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, event_version_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, reported_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, input_value_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionEvent, output_result_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, external_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, index_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, retry_attempt_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, cache_status_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ExternalResourceInfo, logs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, allocation_token_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::ResourcePoolInfo, namespace__), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, generated_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, external_resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, resource_pool_info_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, plugin_identifier_), - PROTOBUF_FIELD_OFFSET(::flyteidl::event::TaskExecutionMetadata, instance_class_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::event::WorkflowExecutionEvent)}, - { 13, -1, sizeof(::flyteidl::event::NodeExecutionEvent)}, - { 43, -1, sizeof(::flyteidl::event::WorkflowNodeMetadata)}, - { 49, -1, sizeof(::flyteidl::event::TaskNodeMetadata)}, - { 59, -1, sizeof(::flyteidl::event::DynamicWorkflowNodeMetadata)}, - { 67, -1, sizeof(::flyteidl::event::ParentTaskExecutionMetadata)}, - { 73, -1, sizeof(::flyteidl::event::ParentNodeExecutionMetadata)}, - { 79, -1, sizeof(::flyteidl::event::EventReason)}, - { 86, -1, sizeof(::flyteidl::event::TaskExecutionEvent)}, - { 113, -1, sizeof(::flyteidl::event::ExternalResourceInfo)}, - { 124, -1, sizeof(::flyteidl::event::ResourcePoolInfo)}, - { 131, -1, sizeof(::flyteidl::event::TaskExecutionMetadata)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::event::_WorkflowExecutionEvent_default_instance_), - reinterpret_cast(&::flyteidl::event::_NodeExecutionEvent_default_instance_), - reinterpret_cast(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::event::_TaskNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_), - reinterpret_cast(&::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_), - reinterpret_cast(&::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_), - reinterpret_cast(&::flyteidl::event::_EventReason_default_instance_), - reinterpret_cast(&::flyteidl::event::_TaskExecutionEvent_default_instance_), - reinterpret_cast(&::flyteidl::event::_ExternalResourceInfo_default_instance_), - reinterpret_cast(&::flyteidl::event::_ResourcePoolInfo_default_instance_), - reinterpret_cast(&::flyteidl::event::_TaskExecutionMetadata_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto = { - {}, AddDescriptors_flyteidl_2fevent_2fevent_2eproto, "flyteidl/event/event.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fevent_2fevent_2eproto::offsets, - file_level_metadata_flyteidl_2fevent_2fevent_2eproto, 12, file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto, file_level_service_descriptors_flyteidl_2fevent_2fevent_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fevent_2fevent_2eproto[] = - "\n\032flyteidl/event/event.proto\022\016flyteidl.e" - "vent\032\034flyteidl/core/literals.proto\032\034flyt" - "eidl/core/compiler.proto\032\035flyteidl/core/" - "execution.proto\032\036flyteidl/core/identifie" - "r.proto\032\033flyteidl/core/catalog.proto\032\037go" - "ogle/protobuf/timestamp.proto\032\034google/pr" - "otobuf/struct.proto\"\340\002\n\026WorkflowExecutio" - "nEvent\022@\n\014execution_id\030\001 \001(\0132*.flyteidl." - "core.WorkflowExecutionIdentifier\022\023\n\013prod" - "ucer_id\030\002 \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl." - "core.WorkflowExecution.Phase\022/\n\013occurred" - "_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n" - "\noutput_uri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.fly" - "teidl.core.ExecutionErrorH\000\0220\n\013output_da" - "ta\030\007 \001(\0132\031.flyteidl.core.LiteralMapH\000B\017\n" - "\routput_result\"\241\007\n\022NodeExecutionEvent\0222\n" - "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" - "dentifier\022\023\n\013producer_id\030\002 \001(\t\0221\n\005phase\030" - "\003 \001(\0162\".flyteidl.core.NodeExecution.Phas" - "e\022/\n\013occurred_at\030\004 \001(\0132\032.google.protobuf" - ".Timestamp\022\023\n\tinput_uri\030\005 \001(\tH\000\022/\n\ninput" - "_data\030\024 \001(\0132\031.flyteidl.core.LiteralMapH\000" - "\022\024\n\noutput_uri\030\006 \001(\tH\001\022.\n\005error\030\007 \001(\0132\035." - "flyteidl.core.ExecutionErrorH\001\0220\n\013output" - "_data\030\017 \001(\0132\031.flyteidl.core.LiteralMapH\001" - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" - "idl.event.WorkflowNodeMetadataH\002\022>\n\022task" - "_node_metadata\030\016 \001(\0132 .flyteidl.event.Ta" - "skNodeMetadataH\002\022I\n\024parent_task_metadata" - "\030\t \001(\0132+.flyteidl.event.ParentTaskExecut" - "ionMetadata\022I\n\024parent_node_metadata\030\n \001(" - "\0132+.flyteidl.event.ParentNodeExecutionMe" - "tadata\022\023\n\013retry_group\030\013 \001(\t\022\024\n\014spec_node" - "_id\030\014 \001(\t\022\021\n\tnode_name\030\r \001(\t\022\025\n\revent_ve" - "rsion\030\020 \001(\005\022\021\n\tis_parent\030\021 \001(\010\022\022\n\nis_dyn" - "amic\030\022 \001(\010\022\020\n\010deck_uri\030\023 \001(\t\022/\n\013reported" - "_at\030\025 \001(\0132\032.google.protobuf.Timestamp\022\020\n" - "\010is_array\030\026 \001(\010B\r\n\013input_valueB\017\n\routput" - "_resultB\021\n\017target_metadata\"X\n\024WorkflowNo" - "deMetadata\022@\n\014execution_id\030\001 \001(\0132*.flyte" - "idl.core.WorkflowExecutionIdentifier\"\245\002\n" - "\020TaskNodeMetadata\0227\n\014cache_status\030\001 \001(\0162" - "!.flyteidl.core.CatalogCacheStatus\0223\n\013ca" - "talog_key\030\002 \001(\0132\036.flyteidl.core.CatalogM" - "etadata\022D\n\022reservation_status\030\003 \001(\0162(.fl" - "yteidl.core.CatalogReservation.Status\022\026\n" - "\016checkpoint_uri\030\004 \001(\t\022E\n\020dynamic_workflo" - "w\030\020 \001(\0132+.flyteidl.event.DynamicWorkflow" - "NodeMetadata\"\245\001\n\033DynamicWorkflowNodeMeta" - "data\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identif" - "ier\022A\n\021compiled_workflow\030\002 \001(\0132&.flyteid" - "l.core.CompiledWorkflowClosure\022\034\n\024dynami" - "c_job_spec_uri\030\003 \001(\t\"Q\n\033ParentTaskExecut" - "ionMetadata\0222\n\002id\030\001 \001(\0132&.flyteidl.core." - "TaskExecutionIdentifier\".\n\033ParentNodeExe" - "cutionMetadata\022\017\n\007node_id\030\001 \001(\t\"N\n\013Event" - "Reason\022\016\n\006reason\030\001 \001(\t\022/\n\013occurred_at\030\002 " - "\001(\0132\032.google.protobuf.Timestamp\"\271\006\n\022Task" - "ExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.flytei" - "dl.core.Identifier\022H\n\030parent_node_execut" - "ion_id\030\002 \001(\0132&.flyteidl.core.NodeExecuti" - "onIdentifier\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005p" - "hase\030\004 \001(\0162\".flyteidl.core.TaskExecution" - ".Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs\030\006 \003(" - "\0132\026.flyteidl.core.TaskLog\022/\n\013occurred_at" - "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\023\n\tin" - "put_uri\030\010 \001(\tH\000\022/\n\ninput_data\030\023 \001(\0132\031.fl" - "yteidl.core.LiteralMapH\000\022\024\n\noutput_uri\030\t" - " \001(\tH\001\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Ex" - "ecutionErrorH\001\0220\n\013output_data\030\021 \001(\0132\031.fl" - "yteidl.core.LiteralMapH\001\022,\n\013custom_info\030" - "\013 \001(\0132\027.google.protobuf.Struct\022\025\n\rphase_" - "version\030\014 \001(\r\022\022\n\006reason\030\r \001(\tB\002\030\001\022,\n\007rea" - "sons\030\025 \003(\0132\033.flyteidl.event.EventReason\022" - "\021\n\ttask_type\030\016 \001(\t\0227\n\010metadata\030\020 \001(\0132%.f" - "lyteidl.event.TaskExecutionMetadata\022\025\n\re" - "vent_version\030\022 \001(\005\022/\n\013reported_at\030\024 \001(\0132" - "\032.google.protobuf.TimestampB\r\n\013input_val" - "ueB\017\n\routput_result\"\343\001\n\024ExternalResource" - "Info\022\023\n\013external_id\030\001 \001(\t\022\r\n\005index\030\002 \001(\r" - "\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005phase\030\004 \001(\0162\"" - ".flyteidl.core.TaskExecution.Phase\0227\n\014ca" - "che_status\030\005 \001(\0162!.flyteidl.core.Catalog" - "CacheStatus\022$\n\004logs\030\006 \003(\0132\026.flyteidl.cor" - "e.TaskLog\"\?\n\020ResourcePoolInfo\022\030\n\020allocat" - "ion_token\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\"\310\002\n\025T" - "askExecutionMetadata\022\026\n\016generated_name\030\001" - " \001(\t\022@\n\022external_resources\030\002 \003(\0132$.flyte" - "idl.event.ExternalResourceInfo\022<\n\022resour" - "ce_pool_info\030\003 \003(\0132 .flyteidl.event.Reso" - "urcePoolInfo\022\031\n\021plugin_identifier\030\004 \001(\t\022" - "K\n\016instance_class\030\020 \001(\01623.flyteidl.event" - ".TaskExecutionMetadata.InstanceClass\"/\n\r" - "InstanceClass\022\013\n\007DEFAULT\020\000\022\021\n\rINTERRUPTI" - "BLE\020\001B=Z;github.com/flyteorg/flyte/flyte" - "idl/gen/pb-go/flyteidl/eventb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fevent_2fevent_2eproto = { - false, InitDefaults_flyteidl_2fevent_2fevent_2eproto, - descriptor_table_protodef_flyteidl_2fevent_2fevent_2eproto, - "flyteidl/event/event.proto", &assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto, 3836, -}; - -void AddDescriptors_flyteidl_2fevent_2fevent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[7] = - { - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fcompiler_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fcatalog_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fevent_2fevent_2eproto, deps, 7); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fevent_2fevent_2eproto = []() { AddDescriptors_flyteidl_2fevent_2fevent_2eproto(); return true; }(); -namespace flyteidl { -namespace event { -const ::google::protobuf::EnumDescriptor* TaskExecutionMetadata_InstanceClass_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return file_level_enum_descriptors_flyteidl_2fevent_2fevent_2eproto[0]; -} -bool TaskExecutionMetadata_InstanceClass_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::DEFAULT; -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::INTERRUPTIBLE; -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::InstanceClass_MIN; -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::InstanceClass_MAX; -const int TaskExecutionMetadata::InstanceClass_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void WorkflowExecutionEvent::InitAsDefaultInstance() { - ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_WorkflowExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::event::_WorkflowExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class WorkflowExecutionEvent::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const WorkflowExecutionEvent* msg); - static const ::google::protobuf::Timestamp& occurred_at(const WorkflowExecutionEvent* msg); - static const ::flyteidl::core::ExecutionError& error(const WorkflowExecutionEvent* msg); - static const ::flyteidl::core::LiteralMap& output_data(const WorkflowExecutionEvent* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowExecutionEvent::HasBitSetters::execution_id(const WorkflowExecutionEvent* msg) { - return *msg->execution_id_; -} -const ::google::protobuf::Timestamp& -WorkflowExecutionEvent::HasBitSetters::occurred_at(const WorkflowExecutionEvent* msg) { - return *msg->occurred_at_; -} -const ::flyteidl::core::ExecutionError& -WorkflowExecutionEvent::HasBitSetters::error(const WorkflowExecutionEvent* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::core::LiteralMap& -WorkflowExecutionEvent::HasBitSetters::output_data(const WorkflowExecutionEvent* msg) { - return *msg->output_result_.output_data_; -} -void WorkflowExecutionEvent::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -void WorkflowExecutionEvent::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -void WorkflowExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.error) -} -void WorkflowExecutionEvent::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void WorkflowExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.output_data) -} -void WorkflowExecutionEvent::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowExecutionEvent::kExecutionIdFieldNumber; -const int WorkflowExecutionEvent::kProducerIdFieldNumber; -const int WorkflowExecutionEvent::kPhaseFieldNumber; -const int WorkflowExecutionEvent::kOccurredAtFieldNumber; -const int WorkflowExecutionEvent::kOutputUriFieldNumber; -const int WorkflowExecutionEvent::kErrorFieldNumber; -const int WorkflowExecutionEvent::kOutputDataFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowExecutionEvent::WorkflowExecutionEvent() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowExecutionEvent) -} -WorkflowExecutionEvent::WorkflowExecutionEvent(const WorkflowExecutionEvent& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.producer_id().size() > 0) { - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - phase_ = from.phase_; - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowExecutionEvent) -} - -void WorkflowExecutionEvent::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&execution_id_, 0, static_cast( - reinterpret_cast(&phase_) - - reinterpret_cast(&execution_id_)) + sizeof(phase_)); - clear_has_output_result(); -} - -WorkflowExecutionEvent::~WorkflowExecutionEvent() { - // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowExecutionEvent) - SharedDtor(); -} - -void WorkflowExecutionEvent::SharedDtor() { - producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete execution_id_; - if (this != internal_default_instance()) delete occurred_at_; - if (has_output_result()) { - clear_output_result(); - } -} - -void WorkflowExecutionEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowExecutionEvent& WorkflowExecutionEvent::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowExecutionEvent::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.WorkflowExecutionEvent) - switch (output_result_case()) { - case kOutputUri: { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} - - -void WorkflowExecutionEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - phase_ = 0; - clear_output_result(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowExecutionEvent::_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.WorkflowExecutionIdentifier execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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; - } - // string producer_id = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.WorkflowExecutionEvent.producer_id"); - object = msg->mutable_producer_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp occurred_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; - } - // string output_uri = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.WorkflowExecutionEvent.output_uri"); - object = msg->mutable_output_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError error = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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.core.LiteralMap output_data = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkflowExecutionEvent::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.event.WorkflowExecutionEvent) - 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.WorkflowExecutionIdentifier execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // string producer_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_producer_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.WorkflowExecutionEvent.producer_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp occurred_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } else { - goto handle_unusual; - } - break; - } - - // string output_uri = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.WorkflowExecutionEvent.output_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } 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.event.WorkflowExecutionEvent) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowExecutionEvent) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowExecutionEvent::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::execution_id(this), output); - } - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.WorkflowExecutionEvent.producer_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->producer_id(), output); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->phase(), output); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::occurred_at(this), output); - } - - // string output_uri = 5; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.WorkflowExecutionEvent.output_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->output_uri(), output); - } - - // .flyteidl.core.ExecutionError error = 6; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, HasBitSetters::error(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 7; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::output_data(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.WorkflowExecutionEvent) -} - -::google::protobuf::uint8* WorkflowExecutionEvent::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::execution_id(this), target); - } - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.WorkflowExecutionEvent.producer_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->producer_id(), target); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->phase(), target); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::occurred_at(this), target); - } - - // string output_uri = 5; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.WorkflowExecutionEvent.output_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->output_uri(), target); - } - - // .flyteidl.core.ExecutionError error = 6; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, HasBitSetters::error(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 7; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::output_data(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.event.WorkflowExecutionEvent) - return target; -} - -size_t WorkflowExecutionEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowExecutionEvent) - 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; - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->producer_id()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - switch (output_result_case()) { - // string output_uri = 5; - case kOutputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_uri()); - break; - } - // .flyteidl.core.ExecutionError error = 6; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // .flyteidl.core.LiteralMap output_data = 7; - case kOutputData: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowExecutionEvent* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowExecutionEvent) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowExecutionEvent) - MergeFrom(*source); - } -} - -void WorkflowExecutionEvent::MergeFrom(const WorkflowExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.producer_id().size() > 0) { - - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - if (from.has_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } -} - -void WorkflowExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowExecutionEvent::CopyFrom(const WorkflowExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowExecutionEvent::IsInitialized() const { - return true; -} - -void WorkflowExecutionEvent::Swap(WorkflowExecutionEvent* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowExecutionEvent::InternalSwap(WorkflowExecutionEvent* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(execution_id_, other->execution_id_); - swap(occurred_at_, other->occurred_at_); - swap(phase_, other->phase_); - swap(output_result_, other->output_result_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata WorkflowExecutionEvent::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void NodeExecutionEvent::InitAsDefaultInstance() { - ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.input_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.workflow_node_metadata_ = const_cast< ::flyteidl::event::WorkflowNodeMetadata*>( - ::flyteidl::event::WorkflowNodeMetadata::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_.task_node_metadata_ = const_cast< ::flyteidl::event::TaskNodeMetadata*>( - ::flyteidl::event::TaskNodeMetadata::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->parent_task_metadata_ = const_cast< ::flyteidl::event::ParentTaskExecutionMetadata*>( - ::flyteidl::event::ParentTaskExecutionMetadata::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->parent_node_metadata_ = const_cast< ::flyteidl::event::ParentNodeExecutionMetadata*>( - ::flyteidl::event::ParentNodeExecutionMetadata::internal_default_instance()); - ::flyteidl::event::_NodeExecutionEvent_default_instance_._instance.get_mutable()->reported_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class NodeExecutionEvent::HasBitSetters { - public: - static const ::flyteidl::core::NodeExecutionIdentifier& id(const NodeExecutionEvent* msg); - static const ::google::protobuf::Timestamp& occurred_at(const NodeExecutionEvent* msg); - static const ::flyteidl::core::LiteralMap& input_data(const NodeExecutionEvent* msg); - static const ::flyteidl::core::ExecutionError& error(const NodeExecutionEvent* msg); - static const ::flyteidl::core::LiteralMap& output_data(const NodeExecutionEvent* msg); - static const ::flyteidl::event::WorkflowNodeMetadata& workflow_node_metadata(const NodeExecutionEvent* msg); - static const ::flyteidl::event::TaskNodeMetadata& task_node_metadata(const NodeExecutionEvent* msg); - static const ::flyteidl::event::ParentTaskExecutionMetadata& parent_task_metadata(const NodeExecutionEvent* msg); - static const ::flyteidl::event::ParentNodeExecutionMetadata& parent_node_metadata(const NodeExecutionEvent* msg); - static const ::google::protobuf::Timestamp& reported_at(const NodeExecutionEvent* msg); -}; - -const ::flyteidl::core::NodeExecutionIdentifier& -NodeExecutionEvent::HasBitSetters::id(const NodeExecutionEvent* msg) { - return *msg->id_; -} -const ::google::protobuf::Timestamp& -NodeExecutionEvent::HasBitSetters::occurred_at(const NodeExecutionEvent* msg) { - return *msg->occurred_at_; -} -const ::flyteidl::core::LiteralMap& -NodeExecutionEvent::HasBitSetters::input_data(const NodeExecutionEvent* msg) { - return *msg->input_value_.input_data_; -} -const ::flyteidl::core::ExecutionError& -NodeExecutionEvent::HasBitSetters::error(const NodeExecutionEvent* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::core::LiteralMap& -NodeExecutionEvent::HasBitSetters::output_data(const NodeExecutionEvent* msg) { - return *msg->output_result_.output_data_; -} -const ::flyteidl::event::WorkflowNodeMetadata& -NodeExecutionEvent::HasBitSetters::workflow_node_metadata(const NodeExecutionEvent* msg) { - return *msg->target_metadata_.workflow_node_metadata_; -} -const ::flyteidl::event::TaskNodeMetadata& -NodeExecutionEvent::HasBitSetters::task_node_metadata(const NodeExecutionEvent* msg) { - return *msg->target_metadata_.task_node_metadata_; -} -const ::flyteidl::event::ParentTaskExecutionMetadata& -NodeExecutionEvent::HasBitSetters::parent_task_metadata(const NodeExecutionEvent* msg) { - return *msg->parent_task_metadata_; -} -const ::flyteidl::event::ParentNodeExecutionMetadata& -NodeExecutionEvent::HasBitSetters::parent_node_metadata(const NodeExecutionEvent* msg) { - return *msg->parent_node_metadata_; -} -const ::google::protobuf::Timestamp& -NodeExecutionEvent::HasBitSetters::reported_at(const NodeExecutionEvent* msg) { - return *msg->reported_at_; -} -void NodeExecutionEvent::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void NodeExecutionEvent::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -void NodeExecutionEvent::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_input_value(); - if (input_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_data, submessage_arena); - } - set_has_input_data(); - input_value_.input_data_ = input_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.input_data) -} -void NodeExecutionEvent::clear_input_data() { - if (has_input_data()) { - delete input_value_.input_data_; - clear_has_input_value(); - } -} -void NodeExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.error) -} -void NodeExecutionEvent::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void NodeExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.output_data) -} -void NodeExecutionEvent::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -void NodeExecutionEvent::set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target_metadata(); - if (workflow_node_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workflow_node_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workflow_node_metadata, submessage_arena); - } - set_has_workflow_node_metadata(); - target_metadata_.workflow_node_metadata_ = workflow_node_metadata; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) -} -void NodeExecutionEvent::set_allocated_task_node_metadata(::flyteidl::event::TaskNodeMetadata* task_node_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_target_metadata(); - if (task_node_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_node_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_node_metadata, submessage_arena); - } - set_has_task_node_metadata(); - target_metadata_.task_node_metadata_ = task_node_metadata; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.task_node_metadata) -} -void NodeExecutionEvent::clear_reported_at() { - if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { - delete reported_at_; - } - reported_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int NodeExecutionEvent::kIdFieldNumber; -const int NodeExecutionEvent::kProducerIdFieldNumber; -const int NodeExecutionEvent::kPhaseFieldNumber; -const int NodeExecutionEvent::kOccurredAtFieldNumber; -const int NodeExecutionEvent::kInputUriFieldNumber; -const int NodeExecutionEvent::kInputDataFieldNumber; -const int NodeExecutionEvent::kOutputUriFieldNumber; -const int NodeExecutionEvent::kErrorFieldNumber; -const int NodeExecutionEvent::kOutputDataFieldNumber; -const int NodeExecutionEvent::kWorkflowNodeMetadataFieldNumber; -const int NodeExecutionEvent::kTaskNodeMetadataFieldNumber; -const int NodeExecutionEvent::kParentTaskMetadataFieldNumber; -const int NodeExecutionEvent::kParentNodeMetadataFieldNumber; -const int NodeExecutionEvent::kRetryGroupFieldNumber; -const int NodeExecutionEvent::kSpecNodeIdFieldNumber; -const int NodeExecutionEvent::kNodeNameFieldNumber; -const int NodeExecutionEvent::kEventVersionFieldNumber; -const int NodeExecutionEvent::kIsParentFieldNumber; -const int NodeExecutionEvent::kIsDynamicFieldNumber; -const int NodeExecutionEvent::kDeckUriFieldNumber; -const int NodeExecutionEvent::kReportedAtFieldNumber; -const int NodeExecutionEvent::kIsArrayFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -NodeExecutionEvent::NodeExecutionEvent() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.NodeExecutionEvent) -} -NodeExecutionEvent::NodeExecutionEvent(const NodeExecutionEvent& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.producer_id().size() > 0) { - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.retry_group().size() > 0) { - retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); - } - spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.spec_node_id().size() > 0) { - spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); - } - node_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.node_name().size() > 0) { - node_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_name_); - } - deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.deck_uri().size() > 0) { - deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - if (from.has_parent_task_metadata()) { - parent_task_metadata_ = new ::flyteidl::event::ParentTaskExecutionMetadata(*from.parent_task_metadata_); - } else { - parent_task_metadata_ = nullptr; - } - if (from.has_parent_node_metadata()) { - parent_node_metadata_ = new ::flyteidl::event::ParentNodeExecutionMetadata(*from.parent_node_metadata_); - } else { - parent_node_metadata_ = nullptr; - } - if (from.has_reported_at()) { - reported_at_ = new ::google::protobuf::Timestamp(*from.reported_at_); - } else { - reported_at_ = nullptr; - } - ::memcpy(&phase_, &from.phase_, - static_cast(reinterpret_cast(&is_array_) - - reinterpret_cast(&phase_)) + sizeof(is_array_)); - clear_has_input_value(); - switch (from.input_value_case()) { - case kInputUri: { - set_input_uri(from.input_uri()); - break; - } - case kInputData: { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - clear_has_target_metadata(); - switch (from.target_metadata_case()) { - case kWorkflowNodeMetadata: { - mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); - break; - } - case kTaskNodeMetadata: { - mutable_task_node_metadata()->::flyteidl::event::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.NodeExecutionEvent) -} - -void NodeExecutionEvent::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - retry_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&is_array_) - - reinterpret_cast(&id_)) + sizeof(is_array_)); - clear_has_input_value(); - clear_has_output_result(); - clear_has_target_metadata(); -} - -NodeExecutionEvent::~NodeExecutionEvent() { - // @@protoc_insertion_point(destructor:flyteidl.event.NodeExecutionEvent) - SharedDtor(); -} - -void NodeExecutionEvent::SharedDtor() { - producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - retry_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete occurred_at_; - if (this != internal_default_instance()) delete parent_task_metadata_; - if (this != internal_default_instance()) delete parent_node_metadata_; - if (this != internal_default_instance()) delete reported_at_; - if (has_input_value()) { - clear_input_value(); - } - if (has_output_result()) { - clear_output_result(); - } - if (has_target_metadata()) { - clear_target_metadata(); - } -} - -void NodeExecutionEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const NodeExecutionEvent& NodeExecutionEvent::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_NodeExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void NodeExecutionEvent::clear_input_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) - switch (input_value_case()) { - case kInputUri: { - input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInputData: { - delete input_value_.input_data_; - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = INPUT_VALUE_NOT_SET; -} - -void NodeExecutionEvent::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) - switch (output_result_case()) { - case kOutputUri: { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; -} - -void NodeExecutionEvent::clear_target_metadata() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.NodeExecutionEvent) - switch (target_metadata_case()) { - case kWorkflowNodeMetadata: { - delete target_metadata_.workflow_node_metadata_; - break; - } - case kTaskNodeMetadata: { - delete target_metadata_.task_node_metadata_; - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - _oneof_case_[2] = TARGET_METADATA_NOT_SET; -} - - -void NodeExecutionEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.NodeExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - node_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parent_task_metadata_ != nullptr) { - delete parent_task_metadata_; - } - parent_task_metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parent_node_metadata_ != nullptr) { - delete parent_node_metadata_; - } - parent_node_metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { - delete reported_at_; - } - reported_at_ = nullptr; - ::memset(&phase_, 0, static_cast( - reinterpret_cast(&is_array_) - - reinterpret_cast(&phase_)) + sizeof(is_array_)); - clear_input_value(); - clear_output_result(); - clear_target_metadata(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* NodeExecutionEvent::_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.NodeExecutionIdentifier 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::NodeExecutionIdentifier::_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; - } - // string producer_id = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.producer_id"); - object = msg->mutable_producer_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.NodeExecution.Phase phase = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::NodeExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Timestamp occurred_at = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; - } - // string input_uri = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.input_uri"); - object = msg->mutable_input_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string output_uri = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.output_uri"); - object = msg->mutable_output_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError error = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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.event.WorkflowNodeMetadata workflow_node_metadata = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::WorkflowNodeMetadata::_InternalParse; - object = msg->mutable_workflow_node_metadata(); - 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.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::ParentTaskExecutionMetadata::_InternalParse; - object = msg->mutable_parent_task_metadata(); - 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.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::ParentNodeExecutionMetadata::_InternalParse; - object = msg->mutable_parent_node_metadata(); - 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; - } - // string retry_group = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.retry_group"); - object = msg->mutable_retry_group(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string spec_node_id = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 98) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.spec_node_id"); - object = msg->mutable_spec_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string node_name = 13; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.node_name"); - object = msg->mutable_node_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::TaskNodeMetadata::_InternalParse; - object = msg->mutable_task_node_metadata(); - 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.core.LiteralMap output_data = 15; - case 15: { - if (static_cast<::google::protobuf::uint8>(tag) != 122) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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; - } - // int32 event_version = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 128) goto handle_unusual; - msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool is_parent = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 136) goto handle_unusual; - msg->set_is_parent(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // bool is_dynamic = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; - msg->set_is_dynamic(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string deck_uri = 19; - case 19: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.NodeExecutionEvent.deck_uri"); - object = msg->mutable_deck_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.LiteralMap input_data = 20; - case 20: { - if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_input_data(); - 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; - } - // .google.protobuf.Timestamp reported_at = 21; - case 21: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_reported_at(); - 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; - } - // bool is_array = 22; - case 22: { - if (static_cast<::google::protobuf::uint8>(tag) != 176) goto handle_unusual; - msg->set_is_array(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool NodeExecutionEvent::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.event.NodeExecutionEvent) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.NodeExecutionIdentifier 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; - } - - // string producer_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_producer_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.producer_id")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::NodeExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp occurred_at = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } else { - goto handle_unusual; - } - break; - } - - // string input_uri = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_input_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.input_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string output_uri = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.output_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workflow_node_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_task_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_node_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // string retry_group = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_retry_group())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.retry_group")); - } else { - goto handle_unusual; - } - break; - } - - // string spec_node_id = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (98 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_spec_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.spec_node_id")); - } else { - goto handle_unusual; - } - break; - } - - // string node_name = 13; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_node_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_name().data(), static_cast(this->node_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.node_name")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_node_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 15; - case 15: { - if (static_cast< ::google::protobuf::uint8>(tag) == (122 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // int32 event_version = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (128 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &event_version_))); - } else { - goto handle_unusual; - } - break; - } - - // bool is_parent = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (136 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_parent_))); - } else { - goto handle_unusual; - } - break; - } - - // bool is_dynamic = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_dynamic_))); - } else { - goto handle_unusual; - } - break; - } - - // string deck_uri = 19; - case 19: { - if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_deck_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.NodeExecutionEvent.deck_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap input_data = 20; - case 20: { - if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_data())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp reported_at = 21; - case 21: { - if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reported_at())); - } else { - goto handle_unusual; - } - break; - } - - // bool is_array = 22; - case 22: { - if (static_cast< ::google::protobuf::uint8>(tag) == (176 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &is_array_))); - } 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.event.NodeExecutionEvent) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.NodeExecutionEvent) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void NodeExecutionEvent::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.NodeExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::id(this), output); - } - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.producer_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->producer_id(), output); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->phase(), output); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::occurred_at(this), output); - } - - // string input_uri = 5; - if (has_input_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.input_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->input_uri(), output); - } - - // string output_uri = 6; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.output_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->output_uri(), output); - } - - // .flyteidl.core.ExecutionError error = 7; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::error(this), output); - } - - // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - if (has_workflow_node_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::workflow_node_metadata(this), output); - } - - // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - if (this->has_parent_task_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 9, HasBitSetters::parent_task_metadata(this), output); - } - - // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - if (this->has_parent_node_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::parent_node_metadata(this), output); - } - - // string retry_group = 11; - if (this->retry_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.retry_group"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 11, this->retry_group(), output); - } - - // string spec_node_id = 12; - if (this->spec_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.spec_node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 12, this->spec_node_id(), output); - } - - // string node_name = 13; - if (this->node_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_name().data(), static_cast(this->node_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.node_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 13, this->node_name(), output); - } - - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - if (has_task_node_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 14, HasBitSetters::task_node_metadata(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 15; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 15, HasBitSetters::output_data(this), output); - } - - // int32 event_version = 16; - if (this->event_version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->event_version(), output); - } - - // bool is_parent = 17; - if (this->is_parent() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(17, this->is_parent(), output); - } - - // bool is_dynamic = 18; - if (this->is_dynamic() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(18, this->is_dynamic(), output); - } - - // string deck_uri = 19; - if (this->deck_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.deck_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 19, this->deck_uri(), output); - } - - // .flyteidl.core.LiteralMap input_data = 20; - if (has_input_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, HasBitSetters::input_data(this), output); - } - - // .google.protobuf.Timestamp reported_at = 21; - if (this->has_reported_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, HasBitSetters::reported_at(this), output); - } - - // bool is_array = 22; - if (this->is_array() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(22, this->is_array(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.NodeExecutionEvent) -} - -::google::protobuf::uint8* NodeExecutionEvent::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.NodeExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::id(this), target); - } - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.producer_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->producer_id(), target); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->phase(), target); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::occurred_at(this), target); - } - - // string input_uri = 5; - if (has_input_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.input_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->input_uri(), target); - } - - // string output_uri = 6; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.output_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->output_uri(), target); - } - - // .flyteidl.core.ExecutionError error = 7; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::error(this), target); - } - - // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - if (has_workflow_node_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::workflow_node_metadata(this), target); - } - - // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - if (this->has_parent_task_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 9, HasBitSetters::parent_task_metadata(this), target); - } - - // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - if (this->has_parent_node_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::parent_node_metadata(this), target); - } - - // string retry_group = 11; - if (this->retry_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->retry_group().data(), static_cast(this->retry_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.retry_group"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 11, this->retry_group(), target); - } - - // string spec_node_id = 12; - if (this->spec_node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->spec_node_id().data(), static_cast(this->spec_node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.spec_node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 12, this->spec_node_id(), target); - } - - // string node_name = 13; - if (this->node_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_name().data(), static_cast(this->node_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.node_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->node_name(), target); - } - - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - if (has_task_node_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 14, HasBitSetters::task_node_metadata(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 15; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 15, HasBitSetters::output_data(this), target); - } - - // int32 event_version = 16; - if (this->event_version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->event_version(), target); - } - - // bool is_parent = 17; - if (this->is_parent() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(17, this->is_parent(), target); - } - - // bool is_dynamic = 18; - if (this->is_dynamic() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(18, this->is_dynamic(), target); - } - - // string deck_uri = 19; - if (this->deck_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->deck_uri().data(), static_cast(this->deck_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.NodeExecutionEvent.deck_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 19, this->deck_uri(), target); - } - - // .flyteidl.core.LiteralMap input_data = 20; - if (has_input_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 20, HasBitSetters::input_data(this), target); - } - - // .google.protobuf.Timestamp reported_at = 21; - if (this->has_reported_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 21, HasBitSetters::reported_at(this), target); - } - - // bool is_array = 22; - if (this->is_array() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(22, this->is_array(), 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.event.NodeExecutionEvent) - return target; -} - -size_t NodeExecutionEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.NodeExecutionEvent) - 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; - - // string producer_id = 2; - if (this->producer_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->producer_id()); - } - - // string retry_group = 11; - if (this->retry_group().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->retry_group()); - } - - // string spec_node_id = 12; - if (this->spec_node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->spec_node_id()); - } - - // string node_name = 13; - if (this->node_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->node_name()); - } - - // string deck_uri = 19; - if (this->deck_uri().size() > 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->deck_uri()); - } - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .google.protobuf.Timestamp occurred_at = 4; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - if (this->has_parent_task_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_task_metadata_); - } - - // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - if (this->has_parent_node_metadata()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_node_metadata_); - } - - // .google.protobuf.Timestamp reported_at = 21; - if (this->has_reported_at()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reported_at_); - } - - // .flyteidl.core.NodeExecution.Phase phase = 3; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // int32 event_version = 16; - if (this->event_version() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->event_version()); - } - - // bool is_parent = 17; - if (this->is_parent() != 0) { - total_size += 2 + 1; - } - - // bool is_dynamic = 18; - if (this->is_dynamic() != 0) { - total_size += 2 + 1; - } - - // bool is_array = 22; - if (this->is_array() != 0) { - total_size += 2 + 1; - } - - switch (input_value_case()) { - // string input_uri = 5; - case kInputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->input_uri()); - break; - } - // .flyteidl.core.LiteralMap input_data = 20; - case kInputData: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *input_value_.input_data_); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - switch (output_result_case()) { - // string output_uri = 6; - case kOutputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_uri()); - break; - } - // .flyteidl.core.ExecutionError error = 7; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // .flyteidl.core.LiteralMap output_data = 15; - case kOutputData: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - switch (target_metadata_case()) { - // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - case kWorkflowNodeMetadata: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_metadata_.workflow_node_metadata_); - break; - } - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - case kTaskNodeMetadata: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *target_metadata_.task_node_metadata_); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void NodeExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.NodeExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - const NodeExecutionEvent* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.NodeExecutionEvent) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.NodeExecutionEvent) - MergeFrom(*source); - } -} - -void NodeExecutionEvent::MergeFrom(const NodeExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.NodeExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.producer_id().size() > 0) { - - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - if (from.retry_group().size() > 0) { - - retry_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.retry_group_); - } - if (from.spec_node_id().size() > 0) { - - spec_node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.spec_node_id_); - } - if (from.node_name().size() > 0) { - - node_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_name_); - } - if (from.deck_uri().size() > 0) { - - deck_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.deck_uri_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.id()); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } - if (from.has_parent_task_metadata()) { - mutable_parent_task_metadata()->::flyteidl::event::ParentTaskExecutionMetadata::MergeFrom(from.parent_task_metadata()); - } - if (from.has_parent_node_metadata()) { - mutable_parent_node_metadata()->::flyteidl::event::ParentNodeExecutionMetadata::MergeFrom(from.parent_node_metadata()); - } - if (from.has_reported_at()) { - mutable_reported_at()->::google::protobuf::Timestamp::MergeFrom(from.reported_at()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - if (from.event_version() != 0) { - set_event_version(from.event_version()); - } - if (from.is_parent() != 0) { - set_is_parent(from.is_parent()); - } - if (from.is_dynamic() != 0) { - set_is_dynamic(from.is_dynamic()); - } - if (from.is_array() != 0) { - set_is_array(from.is_array()); - } - switch (from.input_value_case()) { - case kInputUri: { - set_input_uri(from.input_uri()); - break; - } - case kInputData: { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - switch (from.target_metadata_case()) { - case kWorkflowNodeMetadata: { - mutable_workflow_node_metadata()->::flyteidl::event::WorkflowNodeMetadata::MergeFrom(from.workflow_node_metadata()); - break; - } - case kTaskNodeMetadata: { - mutable_task_node_metadata()->::flyteidl::event::TaskNodeMetadata::MergeFrom(from.task_node_metadata()); - break; - } - case TARGET_METADATA_NOT_SET: { - break; - } - } -} - -void NodeExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.NodeExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void NodeExecutionEvent::CopyFrom(const NodeExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.NodeExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool NodeExecutionEvent::IsInitialized() const { - return true; -} - -void NodeExecutionEvent::Swap(NodeExecutionEvent* other) { - if (other == this) return; - InternalSwap(other); -} -void NodeExecutionEvent::InternalSwap(NodeExecutionEvent* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - retry_group_.Swap(&other->retry_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - spec_node_id_.Swap(&other->spec_node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - node_name_.Swap(&other->node_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - deck_uri_.Swap(&other->deck_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(occurred_at_, other->occurred_at_); - swap(parent_task_metadata_, other->parent_task_metadata_); - swap(parent_node_metadata_, other->parent_node_metadata_); - swap(reported_at_, other->reported_at_); - swap(phase_, other->phase_); - swap(event_version_, other->event_version_); - swap(is_parent_, other->is_parent_); - swap(is_dynamic_, other->is_dynamic_); - swap(is_array_, other->is_array_); - swap(input_value_, other->input_value_); - swap(output_result_, other->output_result_); - swap(target_metadata_, other->target_metadata_); - swap(_oneof_case_[0], other->_oneof_case_[0]); - swap(_oneof_case_[1], other->_oneof_case_[1]); - swap(_oneof_case_[2], other->_oneof_case_[2]); -} - -::google::protobuf::Metadata NodeExecutionEvent::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void WorkflowNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::event::_WorkflowNodeMetadata_default_instance_._instance.get_mutable()->execution_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class WorkflowNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id(const WorkflowNodeMetadata* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -WorkflowNodeMetadata::HasBitSetters::execution_id(const WorkflowNodeMetadata* msg) { - return *msg->execution_id_; -} -void WorkflowNodeMetadata::clear_execution_id() { - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkflowNodeMetadata::kExecutionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkflowNodeMetadata::WorkflowNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.WorkflowNodeMetadata) -} -WorkflowNodeMetadata::WorkflowNodeMetadata(const WorkflowNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_execution_id()) { - execution_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.execution_id_); - } else { - execution_id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.WorkflowNodeMetadata) -} - -void WorkflowNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - execution_id_ = nullptr; -} - -WorkflowNodeMetadata::~WorkflowNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.WorkflowNodeMetadata) - SharedDtor(); -} - -void WorkflowNodeMetadata::SharedDtor() { - if (this != internal_default_instance()) delete execution_id_; -} - -void WorkflowNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkflowNodeMetadata& WorkflowNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void WorkflowNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && execution_id_ != nullptr) { - delete execution_id_; - } - execution_id_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkflowNodeMetadata::_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.WorkflowExecutionIdentifier execution_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_execution_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 WorkflowNodeMetadata::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.event.WorkflowNodeMetadata) - 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.WorkflowExecutionIdentifier execution_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_execution_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.event.WorkflowNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.WorkflowNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkflowNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::execution_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.event.WorkflowNodeMetadata) -} - -::google::protobuf::uint8* WorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.WorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::execution_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.event.WorkflowNodeMetadata) - return target; -} - -size_t WorkflowNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.WorkflowNodeMetadata) - 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.WorkflowExecutionIdentifier execution_id = 1; - if (this->has_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *execution_id_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.WorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const WorkflowNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.WorkflowNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.WorkflowNodeMetadata) - MergeFrom(*source); - } -} - -void WorkflowNodeMetadata::MergeFrom(const WorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.WorkflowNodeMetadata) - 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_execution_id()) { - mutable_execution_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.execution_id()); - } -} - -void WorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.WorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkflowNodeMetadata::CopyFrom(const WorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.WorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkflowNodeMetadata::IsInitialized() const { - return true; -} - -void WorkflowNodeMetadata::Swap(WorkflowNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkflowNodeMetadata::InternalSwap(WorkflowNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(execution_id_, other->execution_id_); -} - -::google::protobuf::Metadata WorkflowNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::event::_TaskNodeMetadata_default_instance_._instance.get_mutable()->catalog_key_ = const_cast< ::flyteidl::core::CatalogMetadata*>( - ::flyteidl::core::CatalogMetadata::internal_default_instance()); - ::flyteidl::event::_TaskNodeMetadata_default_instance_._instance.get_mutable()->dynamic_workflow_ = const_cast< ::flyteidl::event::DynamicWorkflowNodeMetadata*>( - ::flyteidl::event::DynamicWorkflowNodeMetadata::internal_default_instance()); -} -class TaskNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::CatalogMetadata& catalog_key(const TaskNodeMetadata* msg); - static const ::flyteidl::event::DynamicWorkflowNodeMetadata& dynamic_workflow(const TaskNodeMetadata* msg); -}; - -const ::flyteidl::core::CatalogMetadata& -TaskNodeMetadata::HasBitSetters::catalog_key(const TaskNodeMetadata* msg) { - return *msg->catalog_key_; -} -const ::flyteidl::event::DynamicWorkflowNodeMetadata& -TaskNodeMetadata::HasBitSetters::dynamic_workflow(const TaskNodeMetadata* msg) { - return *msg->dynamic_workflow_; -} -void TaskNodeMetadata::clear_catalog_key() { - if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { - delete catalog_key_; - } - catalog_key_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskNodeMetadata::kCacheStatusFieldNumber; -const int TaskNodeMetadata::kCatalogKeyFieldNumber; -const int TaskNodeMetadata::kReservationStatusFieldNumber; -const int TaskNodeMetadata::kCheckpointUriFieldNumber; -const int TaskNodeMetadata::kDynamicWorkflowFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskNodeMetadata::TaskNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.TaskNodeMetadata) -} -TaskNodeMetadata::TaskNodeMetadata(const TaskNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.checkpoint_uri().size() > 0) { - checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); - } - if (from.has_catalog_key()) { - catalog_key_ = new ::flyteidl::core::CatalogMetadata(*from.catalog_key_); - } else { - catalog_key_ = nullptr; - } - if (from.has_dynamic_workflow()) { - dynamic_workflow_ = new ::flyteidl::event::DynamicWorkflowNodeMetadata(*from.dynamic_workflow_); - } else { - dynamic_workflow_ = nullptr; - } - ::memcpy(&cache_status_, &from.cache_status_, - static_cast(reinterpret_cast(&reservation_status_) - - reinterpret_cast(&cache_status_)) + sizeof(reservation_status_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskNodeMetadata) -} - -void TaskNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - checkpoint_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&catalog_key_, 0, static_cast( - reinterpret_cast(&reservation_status_) - - reinterpret_cast(&catalog_key_)) + sizeof(reservation_status_)); -} - -TaskNodeMetadata::~TaskNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.TaskNodeMetadata) - SharedDtor(); -} - -void TaskNodeMetadata::SharedDtor() { - checkpoint_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete catalog_key_; - if (this != internal_default_instance()) delete dynamic_workflow_; -} - -void TaskNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskNodeMetadata& TaskNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && catalog_key_ != nullptr) { - delete catalog_key_; - } - catalog_key_ = nullptr; - if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { - delete dynamic_workflow_; - } - dynamic_workflow_ = nullptr; - ::memset(&cache_status_, 0, static_cast( - reinterpret_cast(&reservation_status_) - - reinterpret_cast(&cache_status_)) + sizeof(reservation_status_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskNodeMetadata::_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.CatalogCacheStatus cache_status = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.CatalogMetadata catalog_key = 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::core::CatalogMetadata::_InternalParse; - object = msg->mutable_catalog_key(); - 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.core.CatalogReservation.Status reservation_status = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_reservation_status(static_cast<::flyteidl::core::CatalogReservation_Status>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string checkpoint_uri = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskNodeMetadata.checkpoint_uri"); - object = msg->mutable_checkpoint_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::DynamicWorkflowNodeMetadata::_InternalParse; - object = msg->mutable_dynamic_workflow(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskNodeMetadata::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.event.TaskNodeMetadata) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_catalog_key())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.CatalogReservation.Status reservation_status = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_reservation_status(static_cast< ::flyteidl::core::CatalogReservation_Status >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string checkpoint_uri = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_checkpoint_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskNodeMetadata.checkpoint_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_dynamic_workflow())); - } 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.event.TaskNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->cache_status(), output); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::catalog_key(this), output); - } - - // .flyteidl.core.CatalogReservation.Status reservation_status = 3; - if (this->reservation_status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->reservation_status(), output); - } - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskNodeMetadata.checkpoint_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->checkpoint_uri(), output); - } - - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::dynamic_workflow(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskNodeMetadata) -} - -::google::protobuf::uint8* TaskNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->cache_status(), target); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::catalog_key(this), target); - } - - // .flyteidl.core.CatalogReservation.Status reservation_status = 3; - if (this->reservation_status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->reservation_status(), target); - } - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->checkpoint_uri().data(), static_cast(this->checkpoint_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskNodeMetadata.checkpoint_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->checkpoint_uri(), target); - } - - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::dynamic_workflow(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.event.TaskNodeMetadata) - return target; -} - -size_t TaskNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskNodeMetadata) - 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; - - // string checkpoint_uri = 4; - if (this->checkpoint_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->checkpoint_uri()); - } - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - if (this->has_catalog_key()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *catalog_key_); - } - - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - if (this->has_dynamic_workflow()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *dynamic_workflow_); - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - if (this->cache_status() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); - } - - // .flyteidl.core.CatalogReservation.Status reservation_status = 3; - if (this->reservation_status() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->reservation_status()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const TaskNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskNodeMetadata) - MergeFrom(*source); - } -} - -void TaskNodeMetadata::MergeFrom(const TaskNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.checkpoint_uri().size() > 0) { - - checkpoint_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.checkpoint_uri_); - } - if (from.has_catalog_key()) { - mutable_catalog_key()->::flyteidl::core::CatalogMetadata::MergeFrom(from.catalog_key()); - } - if (from.has_dynamic_workflow()) { - mutable_dynamic_workflow()->::flyteidl::event::DynamicWorkflowNodeMetadata::MergeFrom(from.dynamic_workflow()); - } - if (from.cache_status() != 0) { - set_cache_status(from.cache_status()); - } - if (from.reservation_status() != 0) { - set_reservation_status(from.reservation_status()); - } -} - -void TaskNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskNodeMetadata::CopyFrom(const TaskNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskNodeMetadata::IsInitialized() const { - return true; -} - -void TaskNodeMetadata::Swap(TaskNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskNodeMetadata::InternalSwap(TaskNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - checkpoint_uri_.Swap(&other->checkpoint_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(catalog_key_, other->catalog_key_); - swap(dynamic_workflow_, other->dynamic_workflow_); - swap(cache_status_, other->cache_status_); - swap(reservation_status_, other->reservation_status_); -} - -::google::protobuf::Metadata TaskNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DynamicWorkflowNodeMetadata::InitAsDefaultInstance() { - ::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_._instance.get_mutable()->compiled_workflow_ = const_cast< ::flyteidl::core::CompiledWorkflowClosure*>( - ::flyteidl::core::CompiledWorkflowClosure::internal_default_instance()); -} -class DynamicWorkflowNodeMetadata::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& id(const DynamicWorkflowNodeMetadata* msg); - static const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow(const DynamicWorkflowNodeMetadata* msg); -}; - -const ::flyteidl::core::Identifier& -DynamicWorkflowNodeMetadata::HasBitSetters::id(const DynamicWorkflowNodeMetadata* msg) { - return *msg->id_; -} -const ::flyteidl::core::CompiledWorkflowClosure& -DynamicWorkflowNodeMetadata::HasBitSetters::compiled_workflow(const DynamicWorkflowNodeMetadata* msg) { - return *msg->compiled_workflow_; -} -void DynamicWorkflowNodeMetadata::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -void DynamicWorkflowNodeMetadata::clear_compiled_workflow() { - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DynamicWorkflowNodeMetadata::kIdFieldNumber; -const int DynamicWorkflowNodeMetadata::kCompiledWorkflowFieldNumber; -const int DynamicWorkflowNodeMetadata::kDynamicJobSpecUriFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.DynamicWorkflowNodeMetadata) -} -DynamicWorkflowNodeMetadata::DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.dynamic_job_spec_uri().size() > 0) { - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_id()) { - id_ = new ::flyteidl::core::Identifier(*from.id_); - } else { - id_ = nullptr; - } - if (from.has_compiled_workflow()) { - compiled_workflow_ = new ::flyteidl::core::CompiledWorkflowClosure(*from.compiled_workflow_); - } else { - compiled_workflow_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.DynamicWorkflowNodeMetadata) -} - -void DynamicWorkflowNodeMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - dynamic_job_spec_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&id_, 0, static_cast( - reinterpret_cast(&compiled_workflow_) - - reinterpret_cast(&id_)) + sizeof(compiled_workflow_)); -} - -DynamicWorkflowNodeMetadata::~DynamicWorkflowNodeMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.DynamicWorkflowNodeMetadata) - SharedDtor(); -} - -void DynamicWorkflowNodeMetadata::SharedDtor() { - dynamic_job_spec_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete id_; - if (this != internal_default_instance()) delete compiled_workflow_; -} - -void DynamicWorkflowNodeMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DynamicWorkflowNodeMetadata& DynamicWorkflowNodeMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DynamicWorkflowNodeMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void DynamicWorkflowNodeMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.DynamicWorkflowNodeMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && compiled_workflow_ != nullptr) { - delete compiled_workflow_; - } - compiled_workflow_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DynamicWorkflowNodeMetadata::_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; - } - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 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::core::CompiledWorkflowClosure::_InternalParse; - object = msg->mutable_compiled_workflow(); - 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; - } - // string dynamic_job_spec_uri = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - object = msg->mutable_dynamic_job_spec_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DynamicWorkflowNodeMetadata::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.event.DynamicWorkflowNodeMetadata) - 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; - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_compiled_workflow())); - } else { - goto handle_unusual; - } - break; - } - - // string dynamic_job_spec_uri = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_dynamic_job_spec_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri")); - } 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.event.DynamicWorkflowNodeMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.DynamicWorkflowNodeMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DynamicWorkflowNodeMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.DynamicWorkflowNodeMetadata) - ::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); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::compiled_workflow(this), output); - } - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->dynamic_job_spec_uri(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.DynamicWorkflowNodeMetadata) -} - -::google::protobuf::uint8* DynamicWorkflowNodeMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.DynamicWorkflowNodeMetadata) - ::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); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::compiled_workflow(this), target); - } - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->dynamic_job_spec_uri().data(), static_cast(this->dynamic_job_spec_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->dynamic_job_spec_uri(), 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.event.DynamicWorkflowNodeMetadata) - return target; -} - -size_t DynamicWorkflowNodeMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.DynamicWorkflowNodeMetadata) - 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; - - // string dynamic_job_spec_uri = 3; - if (this->dynamic_job_spec_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->dynamic_job_spec_uri()); - } - - // .flyteidl.core.Identifier id = 1; - if (this->has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *id_); - } - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - if (this->has_compiled_workflow()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *compiled_workflow_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DynamicWorkflowNodeMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - const DynamicWorkflowNodeMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.DynamicWorkflowNodeMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.DynamicWorkflowNodeMetadata) - MergeFrom(*source); - } -} - -void DynamicWorkflowNodeMetadata::MergeFrom(const DynamicWorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.dynamic_job_spec_uri().size() > 0) { - - dynamic_job_spec_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.dynamic_job_spec_uri_); - } - if (from.has_id()) { - mutable_id()->::flyteidl::core::Identifier::MergeFrom(from.id()); - } - if (from.has_compiled_workflow()) { - mutable_compiled_workflow()->::flyteidl::core::CompiledWorkflowClosure::MergeFrom(from.compiled_workflow()); - } -} - -void DynamicWorkflowNodeMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DynamicWorkflowNodeMetadata::CopyFrom(const DynamicWorkflowNodeMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.DynamicWorkflowNodeMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DynamicWorkflowNodeMetadata::IsInitialized() const { - return true; -} - -void DynamicWorkflowNodeMetadata::Swap(DynamicWorkflowNodeMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void DynamicWorkflowNodeMetadata::InternalSwap(DynamicWorkflowNodeMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - dynamic_job_spec_uri_.Swap(&other->dynamic_job_spec_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(id_, other->id_); - swap(compiled_workflow_, other->compiled_workflow_); -} - -::google::protobuf::Metadata DynamicWorkflowNodeMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ParentTaskExecutionMetadata::InitAsDefaultInstance() { - ::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_._instance.get_mutable()->id_ = const_cast< ::flyteidl::core::TaskExecutionIdentifier*>( - ::flyteidl::core::TaskExecutionIdentifier::internal_default_instance()); -} -class ParentTaskExecutionMetadata::HasBitSetters { - public: - static const ::flyteidl::core::TaskExecutionIdentifier& id(const ParentTaskExecutionMetadata* msg); -}; - -const ::flyteidl::core::TaskExecutionIdentifier& -ParentTaskExecutionMetadata::HasBitSetters::id(const ParentTaskExecutionMetadata* msg) { - return *msg->id_; -} -void ParentTaskExecutionMetadata::clear_id() { - if (GetArenaNoVirtual() == nullptr && id_ != nullptr) { - delete id_; - } - id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParentTaskExecutionMetadata::kIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParentTaskExecutionMetadata::ParentTaskExecutionMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.ParentTaskExecutionMetadata) -} -ParentTaskExecutionMetadata::ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_id()) { - id_ = new ::flyteidl::core::TaskExecutionIdentifier(*from.id_); - } else { - id_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.ParentTaskExecutionMetadata) -} - -void ParentTaskExecutionMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - id_ = nullptr; -} - -ParentTaskExecutionMetadata::~ParentTaskExecutionMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.ParentTaskExecutionMetadata) - SharedDtor(); -} - -void ParentTaskExecutionMetadata::SharedDtor() { - if (this != internal_default_instance()) delete id_; -} - -void ParentTaskExecutionMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParentTaskExecutionMetadata& ParentTaskExecutionMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParentTaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void ParentTaskExecutionMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.ParentTaskExecutionMetadata) - ::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* ParentTaskExecutionMetadata::_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.TaskExecutionIdentifier 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::TaskExecutionIdentifier::_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 ParentTaskExecutionMetadata::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.event.ParentTaskExecutionMetadata) - 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.TaskExecutionIdentifier 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.event.ParentTaskExecutionMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.ParentTaskExecutionMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParentTaskExecutionMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.ParentTaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.event.ParentTaskExecutionMetadata) -} - -::google::protobuf::uint8* ParentTaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ParentTaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.TaskExecutionIdentifier 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.event.ParentTaskExecutionMetadata) - return target; -} - -size_t ParentTaskExecutionMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ParentTaskExecutionMetadata) - 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.TaskExecutionIdentifier 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 ParentTaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - const ParentTaskExecutionMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ParentTaskExecutionMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ParentTaskExecutionMetadata) - MergeFrom(*source); - } -} - -void ParentTaskExecutionMetadata::MergeFrom(const ParentTaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ParentTaskExecutionMetadata) - 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::TaskExecutionIdentifier::MergeFrom(from.id()); - } -} - -void ParentTaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParentTaskExecutionMetadata::CopyFrom(const ParentTaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ParentTaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParentTaskExecutionMetadata::IsInitialized() const { - return true; -} - -void ParentTaskExecutionMetadata::Swap(ParentTaskExecutionMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void ParentTaskExecutionMetadata::InternalSwap(ParentTaskExecutionMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(id_, other->id_); -} - -::google::protobuf::Metadata ParentTaskExecutionMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ParentNodeExecutionMetadata::InitAsDefaultInstance() { -} -class ParentNodeExecutionMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ParentNodeExecutionMetadata::kNodeIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ParentNodeExecutionMetadata::ParentNodeExecutionMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.ParentNodeExecutionMetadata) -} -ParentNodeExecutionMetadata::ParentNodeExecutionMetadata(const ParentNodeExecutionMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.node_id().size() > 0) { - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.ParentNodeExecutionMetadata) -} - -void ParentNodeExecutionMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - node_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ParentNodeExecutionMetadata::~ParentNodeExecutionMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.ParentNodeExecutionMetadata) - SharedDtor(); -} - -void ParentNodeExecutionMetadata::SharedDtor() { - node_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ParentNodeExecutionMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ParentNodeExecutionMetadata& ParentNodeExecutionMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ParentNodeExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void ParentNodeExecutionMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.ParentNodeExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ParentNodeExecutionMetadata::_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) { - // string node_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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.ParentNodeExecutionMetadata.node_id"); - object = msg->mutable_node_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ParentNodeExecutionMetadata::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.event.ParentNodeExecutionMetadata) - 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)) { - // string node_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_node_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.ParentNodeExecutionMetadata.node_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.event.ParentNodeExecutionMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.ParentNodeExecutionMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ParentNodeExecutionMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.ParentNodeExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ParentNodeExecutionMetadata.node_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->node_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.ParentNodeExecutionMetadata) -} - -::google::protobuf::uint8* ParentNodeExecutionMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ParentNodeExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string node_id = 1; - if (this->node_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->node_id().data(), static_cast(this->node_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ParentNodeExecutionMetadata.node_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->node_id(), 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.event.ParentNodeExecutionMetadata) - return target; -} - -size_t ParentNodeExecutionMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ParentNodeExecutionMetadata) - 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; - - // string node_id = 1; - if (this->node_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->node_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ParentNodeExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ParentNodeExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - const ParentNodeExecutionMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ParentNodeExecutionMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ParentNodeExecutionMetadata) - MergeFrom(*source); - } -} - -void ParentNodeExecutionMetadata::MergeFrom(const ParentNodeExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ParentNodeExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.node_id().size() > 0) { - - node_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.node_id_); - } -} - -void ParentNodeExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ParentNodeExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ParentNodeExecutionMetadata::CopyFrom(const ParentNodeExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ParentNodeExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ParentNodeExecutionMetadata::IsInitialized() const { - return true; -} - -void ParentNodeExecutionMetadata::Swap(ParentNodeExecutionMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void ParentNodeExecutionMetadata::InternalSwap(ParentNodeExecutionMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - node_id_.Swap(&other->node_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ParentNodeExecutionMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void EventReason::InitAsDefaultInstance() { - ::flyteidl::event::_EventReason_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class EventReason::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& occurred_at(const EventReason* msg); -}; - -const ::google::protobuf::Timestamp& -EventReason::HasBitSetters::occurred_at(const EventReason* msg) { - return *msg->occurred_at_; -} -void EventReason::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int EventReason::kReasonFieldNumber; -const int EventReason::kOccurredAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -EventReason::EventReason() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.EventReason) -} -EventReason::EventReason(const EventReason& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.EventReason) -} - -void EventReason::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto.base); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - occurred_at_ = nullptr; -} - -EventReason::~EventReason() { - // @@protoc_insertion_point(destructor:flyteidl.event.EventReason) - SharedDtor(); -} - -void EventReason::SharedDtor() { - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete occurred_at_; -} - -void EventReason::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const EventReason& EventReason::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_EventReason_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void EventReason::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.EventReason) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* EventReason::_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) { - // string reason = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.EventReason.reason"); - object = msg->mutable_reason(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Timestamp occurred_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool EventReason::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.event.EventReason) - 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)) { - // string reason = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.EventReason.reason")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp occurred_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } 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.event.EventReason) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.EventReason) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void EventReason::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.EventReason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string reason = 1; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.EventReason.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->reason(), output); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::occurred_at(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.EventReason) -} - -::google::protobuf::uint8* EventReason::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.EventReason) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string reason = 1; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.EventReason.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->reason(), target); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::occurred_at(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.event.EventReason) - return target; -} - -size_t EventReason::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.EventReason) - 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; - - // string reason = 1; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - // .google.protobuf.Timestamp occurred_at = 2; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void EventReason::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.EventReason) - GOOGLE_DCHECK_NE(&from, this); - const EventReason* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.EventReason) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.EventReason) - MergeFrom(*source); - } -} - -void EventReason::MergeFrom(const EventReason& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.EventReason) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } -} - -void EventReason::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.EventReason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void EventReason::CopyFrom(const EventReason& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.EventReason) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool EventReason::IsInitialized() const { - return true; -} - -void EventReason::Swap(EventReason* other) { - if (other == this) return; - InternalSwap(other); -} -void EventReason::InternalSwap(EventReason* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(occurred_at_, other->occurred_at_); -} - -::google::protobuf::Metadata EventReason::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionEvent::InitAsDefaultInstance() { - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->task_id_ = const_cast< ::flyteidl::core::Identifier*>( - ::flyteidl::core::Identifier::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->parent_node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->occurred_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_.input_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_.input_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_.output_uri_.UnsafeSetDefault( - &::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_.error_ = const_cast< ::flyteidl::core::ExecutionError*>( - ::flyteidl::core::ExecutionError::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_.output_data_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->custom_info_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->metadata_ = const_cast< ::flyteidl::event::TaskExecutionMetadata*>( - ::flyteidl::event::TaskExecutionMetadata::internal_default_instance()); - ::flyteidl::event::_TaskExecutionEvent_default_instance_._instance.get_mutable()->reported_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class TaskExecutionEvent::HasBitSetters { - public: - static const ::flyteidl::core::Identifier& task_id(const TaskExecutionEvent* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution_id(const TaskExecutionEvent* msg); - static const ::google::protobuf::Timestamp& occurred_at(const TaskExecutionEvent* msg); - static const ::flyteidl::core::LiteralMap& input_data(const TaskExecutionEvent* msg); - static const ::flyteidl::core::ExecutionError& error(const TaskExecutionEvent* msg); - static const ::flyteidl::core::LiteralMap& output_data(const TaskExecutionEvent* msg); - static const ::google::protobuf::Struct& custom_info(const TaskExecutionEvent* msg); - static const ::flyteidl::event::TaskExecutionMetadata& metadata(const TaskExecutionEvent* msg); - static const ::google::protobuf::Timestamp& reported_at(const TaskExecutionEvent* msg); -}; - -const ::flyteidl::core::Identifier& -TaskExecutionEvent::HasBitSetters::task_id(const TaskExecutionEvent* msg) { - return *msg->task_id_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -TaskExecutionEvent::HasBitSetters::parent_node_execution_id(const TaskExecutionEvent* msg) { - return *msg->parent_node_execution_id_; -} -const ::google::protobuf::Timestamp& -TaskExecutionEvent::HasBitSetters::occurred_at(const TaskExecutionEvent* msg) { - return *msg->occurred_at_; -} -const ::flyteidl::core::LiteralMap& -TaskExecutionEvent::HasBitSetters::input_data(const TaskExecutionEvent* msg) { - return *msg->input_value_.input_data_; -} -const ::flyteidl::core::ExecutionError& -TaskExecutionEvent::HasBitSetters::error(const TaskExecutionEvent* msg) { - return *msg->output_result_.error_; -} -const ::flyteidl::core::LiteralMap& -TaskExecutionEvent::HasBitSetters::output_data(const TaskExecutionEvent* msg) { - return *msg->output_result_.output_data_; -} -const ::google::protobuf::Struct& -TaskExecutionEvent::HasBitSetters::custom_info(const TaskExecutionEvent* msg) { - return *msg->custom_info_; -} -const ::flyteidl::event::TaskExecutionMetadata& -TaskExecutionEvent::HasBitSetters::metadata(const TaskExecutionEvent* msg) { - return *msg->metadata_; -} -const ::google::protobuf::Timestamp& -TaskExecutionEvent::HasBitSetters::reported_at(const TaskExecutionEvent* msg) { - return *msg->reported_at_; -} -void TaskExecutionEvent::clear_task_id() { - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; -} -void TaskExecutionEvent::clear_parent_node_execution_id() { - if (GetArenaNoVirtual() == nullptr && parent_node_execution_id_ != nullptr) { - delete parent_node_execution_id_; - } - parent_node_execution_id_ = nullptr; -} -void TaskExecutionEvent::clear_logs() { - logs_.Clear(); -} -void TaskExecutionEvent::clear_occurred_at() { - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; -} -void TaskExecutionEvent::set_allocated_input_data(::flyteidl::core::LiteralMap* input_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_input_value(); - if (input_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - input_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, input_data, submessage_arena); - } - set_has_input_data(); - input_value_.input_data_ = input_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.input_data) -} -void TaskExecutionEvent::clear_input_data() { - if (has_input_data()) { - delete input_value_.input_data_; - clear_has_input_value(); - } -} -void TaskExecutionEvent::set_allocated_error(::flyteidl::core::ExecutionError* error) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (error) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - error = ::google::protobuf::internal::GetOwnedMessage( - message_arena, error, submessage_arena); - } - set_has_error(); - output_result_.error_ = error; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.error) -} -void TaskExecutionEvent::clear_error() { - if (has_error()) { - delete output_result_.error_; - clear_has_output_result(); - } -} -void TaskExecutionEvent::set_allocated_output_data(::flyteidl::core::LiteralMap* output_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_output_result(); - if (output_data) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - output_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_data, submessage_arena); - } - set_has_output_data(); - output_result_.output_data_ = output_data; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.output_data) -} -void TaskExecutionEvent::clear_output_data() { - if (has_output_data()) { - delete output_result_.output_data_; - clear_has_output_result(); - } -} -void TaskExecutionEvent::clear_custom_info() { - if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { - delete custom_info_; - } - custom_info_ = nullptr; -} -void TaskExecutionEvent::clear_reported_at() { - if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { - delete reported_at_; - } - reported_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionEvent::kTaskIdFieldNumber; -const int TaskExecutionEvent::kParentNodeExecutionIdFieldNumber; -const int TaskExecutionEvent::kRetryAttemptFieldNumber; -const int TaskExecutionEvent::kPhaseFieldNumber; -const int TaskExecutionEvent::kProducerIdFieldNumber; -const int TaskExecutionEvent::kLogsFieldNumber; -const int TaskExecutionEvent::kOccurredAtFieldNumber; -const int TaskExecutionEvent::kInputUriFieldNumber; -const int TaskExecutionEvent::kInputDataFieldNumber; -const int TaskExecutionEvent::kOutputUriFieldNumber; -const int TaskExecutionEvent::kErrorFieldNumber; -const int TaskExecutionEvent::kOutputDataFieldNumber; -const int TaskExecutionEvent::kCustomInfoFieldNumber; -const int TaskExecutionEvent::kPhaseVersionFieldNumber; -const int TaskExecutionEvent::kReasonFieldNumber; -const int TaskExecutionEvent::kReasonsFieldNumber; -const int TaskExecutionEvent::kTaskTypeFieldNumber; -const int TaskExecutionEvent::kMetadataFieldNumber; -const int TaskExecutionEvent::kEventVersionFieldNumber; -const int TaskExecutionEvent::kReportedAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionEvent::TaskExecutionEvent() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.TaskExecutionEvent) -} -TaskExecutionEvent::TaskExecutionEvent(const TaskExecutionEvent& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - logs_(from.logs_), - reasons_(from.reasons_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.producer_id().size() > 0) { - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.reason().size() > 0) { - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.has_task_id()) { - task_id_ = new ::flyteidl::core::Identifier(*from.task_id_); - } else { - task_id_ = nullptr; - } - if (from.has_parent_node_execution_id()) { - parent_node_execution_id_ = new ::flyteidl::core::NodeExecutionIdentifier(*from.parent_node_execution_id_); - } else { - parent_node_execution_id_ = nullptr; - } - if (from.has_occurred_at()) { - occurred_at_ = new ::google::protobuf::Timestamp(*from.occurred_at_); - } else { - occurred_at_ = nullptr; - } - if (from.has_custom_info()) { - custom_info_ = new ::google::protobuf::Struct(*from.custom_info_); - } else { - custom_info_ = nullptr; - } - if (from.has_metadata()) { - metadata_ = new ::flyteidl::event::TaskExecutionMetadata(*from.metadata_); - } else { - metadata_ = nullptr; - } - if (from.has_reported_at()) { - reported_at_ = new ::google::protobuf::Timestamp(*from.reported_at_); - } else { - reported_at_ = nullptr; - } - ::memcpy(&retry_attempt_, &from.retry_attempt_, - static_cast(reinterpret_cast(&event_version_) - - reinterpret_cast(&retry_attempt_)) + sizeof(event_version_)); - clear_has_input_value(); - switch (from.input_value_case()) { - case kInputUri: { - set_input_uri(from.input_uri()); - break; - } - case kInputData: { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - clear_has_output_result(); - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskExecutionEvent) -} - -void TaskExecutionEvent::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - producer_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reason_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&task_id_, 0, static_cast( - reinterpret_cast(&event_version_) - - reinterpret_cast(&task_id_)) + sizeof(event_version_)); - clear_has_input_value(); - clear_has_output_result(); -} - -TaskExecutionEvent::~TaskExecutionEvent() { - // @@protoc_insertion_point(destructor:flyteidl.event.TaskExecutionEvent) - SharedDtor(); -} - -void TaskExecutionEvent::SharedDtor() { - producer_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reason_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete task_id_; - if (this != internal_default_instance()) delete parent_node_execution_id_; - if (this != internal_default_instance()) delete occurred_at_; - if (this != internal_default_instance()) delete custom_info_; - if (this != internal_default_instance()) delete metadata_; - if (this != internal_default_instance()) delete reported_at_; - if (has_input_value()) { - clear_input_value(); - } - if (has_output_result()) { - clear_output_result(); - } -} - -void TaskExecutionEvent::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionEvent& TaskExecutionEvent::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionEvent_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionEvent::clear_input_value() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.TaskExecutionEvent) - switch (input_value_case()) { - case kInputUri: { - input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kInputData: { - delete input_value_.input_data_; - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - _oneof_case_[0] = INPUT_VALUE_NOT_SET; -} - -void TaskExecutionEvent::clear_output_result() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.event.TaskExecutionEvent) - switch (output_result_case()) { - case kOutputUri: { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - break; - } - case kError: { - delete output_result_.error_; - break; - } - case kOutputData: { - delete output_result_.output_data_; - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; -} - - -void TaskExecutionEvent::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - logs_.Clear(); - reasons_.Clear(); - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && task_id_ != nullptr) { - delete task_id_; - } - task_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && parent_node_execution_id_ != nullptr) { - delete parent_node_execution_id_; - } - parent_node_execution_id_ = nullptr; - if (GetArenaNoVirtual() == nullptr && occurred_at_ != nullptr) { - delete occurred_at_; - } - occurred_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && custom_info_ != nullptr) { - delete custom_info_; - } - custom_info_ = nullptr; - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; - if (GetArenaNoVirtual() == nullptr && reported_at_ != nullptr) { - delete reported_at_; - } - reported_at_ = nullptr; - ::memset(&retry_attempt_, 0, static_cast( - reinterpret_cast(&event_version_) - - reinterpret_cast(&retry_attempt_)) + sizeof(event_version_)); - clear_input_value(); - clear_output_result(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionEvent::_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 task_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_task_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; - } - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 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::core::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_parent_node_execution_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; - } - // uint32 retry_attempt = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.TaskExecution.Phase phase = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string producer_id = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.producer_id"); - object = msg->mutable_producer_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.core.TaskLog logs = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; - object = msg->add_logs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - break; - } - // .google.protobuf.Timestamp occurred_at = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_occurred_at(); - 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; - } - // string input_uri = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.input_uri"); - object = msg->mutable_input_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string output_uri = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.output_uri"); - object = msg->mutable_output_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.ExecutionError error = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::ExecutionError::_InternalParse; - object = msg->mutable_error(); - 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; - } - // .google.protobuf.Struct custom_info = 11; - case 11: { - if (static_cast<::google::protobuf::uint8>(tag) != 90) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_custom_info(); - 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; - } - // uint32 phase_version = 12; - case 12: { - if (static_cast<::google::protobuf::uint8>(tag) != 96) goto handle_unusual; - msg->set_phase_version(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string reason = 13 [deprecated = true]; - case 13: { - if (static_cast<::google::protobuf::uint8>(tag) != 106) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.reason"); - object = msg->mutable_reason(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string task_type = 14; - case 14: { - if (static_cast<::google::protobuf::uint8>(tag) != 114) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionEvent.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 130) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::TaskExecutionMetadata::_InternalParse; - object = msg->mutable_metadata(); - 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.core.LiteralMap output_data = 17; - case 17: { - if (static_cast<::google::protobuf::uint8>(tag) != 138) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_output_data(); - 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; - } - // int32 event_version = 18; - case 18: { - if (static_cast<::google::protobuf::uint8>(tag) != 144) goto handle_unusual; - msg->set_event_version(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.LiteralMap input_data = 19; - case 19: { - if (static_cast<::google::protobuf::uint8>(tag) != 154) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::LiteralMap::_InternalParse; - object = msg->mutable_input_data(); - 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; - } - // .google.protobuf.Timestamp reported_at = 20; - case 20: { - if (static_cast<::google::protobuf::uint8>(tag) != 162) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_reported_at(); - 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; - } - // repeated .flyteidl.event.EventReason reasons = 21; - case 21: { - if (static_cast<::google::protobuf::uint8>(tag) != 170) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::EventReason::_InternalParse; - object = msg->add_reasons(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 65535) == 426 && (ptr += 2)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionEvent::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.event.TaskExecutionEvent) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // .flyteidl.core.Identifier task_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_task_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_parent_node_execution_id())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 retry_attempt = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retry_attempt_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string producer_id = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_producer_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionEvent.producer_id")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskLog logs = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_logs())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp occurred_at = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_occurred_at())); - } else { - goto handle_unusual; - } - break; - } - - // string input_uri = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_input_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionEvent.input_uri")); - } else { - goto handle_unusual; - } - break; - } - - // string output_uri = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionEvent.output_uri")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.ExecutionError error = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_error())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct custom_info = 11; - case 11: { - if (static_cast< ::google::protobuf::uint8>(tag) == (90 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_custom_info())); - } else { - goto handle_unusual; - } - break; - } - - // uint32 phase_version = 12; - case 12: { - if (static_cast< ::google::protobuf::uint8>(tag) == (96 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &phase_version_))); - } else { - goto handle_unusual; - } - break; - } - - // string reason = 13 [deprecated = true]; - case 13: { - if (static_cast< ::google::protobuf::uint8>(tag) == (106 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_reason())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionEvent.reason")); - } else { - goto handle_unusual; - } - break; - } - - // string task_type = 14; - case 14: { - if (static_cast< ::google::protobuf::uint8>(tag) == (114 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionEvent.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (130 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_metadata())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap output_data = 17; - case 17: { - if (static_cast< ::google::protobuf::uint8>(tag) == (138 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_output_data())); - } else { - goto handle_unusual; - } - break; - } - - // int32 event_version = 18; - case 18: { - if (static_cast< ::google::protobuf::uint8>(tag) == (144 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &event_version_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap input_data = 19; - case 19: { - if (static_cast< ::google::protobuf::uint8>(tag) == (154 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_input_data())); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp reported_at = 20; - case 20: { - if (static_cast< ::google::protobuf::uint8>(tag) == (162 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_reported_at())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.event.EventReason reasons = 21; - case 21: { - if (static_cast< ::google::protobuf::uint8>(tag) == (170 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_reasons())); - } 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.event.TaskExecutionEvent) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskExecutionEvent) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionEvent::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier task_id = 1; - if (this->has_task_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::task_id(this), output); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - if (this->has_parent_node_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::parent_node_execution_id(this), output); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->phase(), output); - } - - // string producer_id = 5; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.producer_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->producer_id(), output); - } - - // repeated .flyteidl.core.TaskLog logs = 6; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->logs(static_cast(i)), - output); - } - - // .google.protobuf.Timestamp occurred_at = 7; - if (this->has_occurred_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::occurred_at(this), output); - } - - // string input_uri = 8; - if (has_input_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.input_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->input_uri(), output); - } - - // string output_uri = 9; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.output_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->output_uri(), output); - } - - // .flyteidl.core.ExecutionError error = 10; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 10, HasBitSetters::error(this), output); - } - - // .google.protobuf.Struct custom_info = 11; - if (this->has_custom_info()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 11, HasBitSetters::custom_info(this), output); - } - - // uint32 phase_version = 12; - if (this->phase_version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(12, this->phase_version(), output); - } - - // string reason = 13 [deprecated = true]; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.reason"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 13, this->reason(), output); - } - - // string task_type = 14; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 14, this->task_type(), output); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 16, HasBitSetters::metadata(this), output); - } - - // .flyteidl.core.LiteralMap output_data = 17; - if (has_output_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 17, HasBitSetters::output_data(this), output); - } - - // int32 event_version = 18; - if (this->event_version() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(18, this->event_version(), output); - } - - // .flyteidl.core.LiteralMap input_data = 19; - if (has_input_data()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 19, HasBitSetters::input_data(this), output); - } - - // .google.protobuf.Timestamp reported_at = 20; - if (this->has_reported_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 20, HasBitSetters::reported_at(this), output); - } - - // repeated .flyteidl.event.EventReason reasons = 21; - for (unsigned int i = 0, - n = static_cast(this->reasons_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 21, - this->reasons(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskExecutionEvent) -} - -::google::protobuf::uint8* TaskExecutionEvent::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskExecutionEvent) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.Identifier task_id = 1; - if (this->has_task_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::task_id(this), target); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - if (this->has_parent_node_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::parent_node_execution_id(this), target); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->phase(), target); - } - - // string producer_id = 5; - if (this->producer_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->producer_id().data(), static_cast(this->producer_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.producer_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->producer_id(), target); - } - - // repeated .flyteidl.core.TaskLog logs = 6; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->logs(static_cast(i)), target); - } - - // .google.protobuf.Timestamp occurred_at = 7; - if (this->has_occurred_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::occurred_at(this), target); - } - - // string input_uri = 8; - if (has_input_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->input_uri().data(), static_cast(this->input_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.input_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->input_uri(), target); - } - - // string output_uri = 9; - if (has_output_uri()) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_uri().data(), static_cast(this->output_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.output_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->output_uri(), target); - } - - // .flyteidl.core.ExecutionError error = 10; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 10, HasBitSetters::error(this), target); - } - - // .google.protobuf.Struct custom_info = 11; - if (this->has_custom_info()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 11, HasBitSetters::custom_info(this), target); - } - - // uint32 phase_version = 12; - if (this->phase_version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(12, this->phase_version(), target); - } - - // string reason = 13 [deprecated = true]; - if (this->reason().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->reason().data(), static_cast(this->reason().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.reason"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 13, this->reason(), target); - } - - // string task_type = 14; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionEvent.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 14, this->task_type(), target); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 16, HasBitSetters::metadata(this), target); - } - - // .flyteidl.core.LiteralMap output_data = 17; - if (has_output_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 17, HasBitSetters::output_data(this), target); - } - - // int32 event_version = 18; - if (this->event_version() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(18, this->event_version(), target); - } - - // .flyteidl.core.LiteralMap input_data = 19; - if (has_input_data()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 19, HasBitSetters::input_data(this), target); - } - - // .google.protobuf.Timestamp reported_at = 20; - if (this->has_reported_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 20, HasBitSetters::reported_at(this), target); - } - - // repeated .flyteidl.event.EventReason reasons = 21; - for (unsigned int i = 0, - n = static_cast(this->reasons_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 21, this->reasons(static_cast(i)), 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.event.TaskExecutionEvent) - return target; -} - -size_t TaskExecutionEvent::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskExecutionEvent) - 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; - - // repeated .flyteidl.core.TaskLog logs = 6; - { - unsigned int count = static_cast(this->logs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->logs(static_cast(i))); - } - } - - // repeated .flyteidl.event.EventReason reasons = 21; - { - unsigned int count = static_cast(this->reasons_size()); - total_size += 2UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->reasons(static_cast(i))); - } - } - - // string producer_id = 5; - if (this->producer_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->producer_id()); - } - - // string reason = 13 [deprecated = true]; - if (this->reason().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->reason()); - } - - // string task_type = 14; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // .flyteidl.core.Identifier task_id = 1; - if (this->has_task_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *task_id_); - } - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - if (this->has_parent_node_execution_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *parent_node_execution_id_); - } - - // .google.protobuf.Timestamp occurred_at = 7; - if (this->has_occurred_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *occurred_at_); - } - - // .google.protobuf.Struct custom_info = 11; - if (this->has_custom_info()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *custom_info_); - } - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - if (this->has_metadata()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *metadata_); - } - - // .google.protobuf.Timestamp reported_at = 20; - if (this->has_reported_at()) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *reported_at_); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retry_attempt()); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // uint32 phase_version = 12; - if (this->phase_version() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->phase_version()); - } - - // int32 event_version = 18; - if (this->event_version() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->event_version()); - } - - switch (input_value_case()) { - // string input_uri = 8; - case kInputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->input_uri()); - break; - } - // .flyteidl.core.LiteralMap input_data = 19; - case kInputData: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *input_value_.input_data_); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - switch (output_result_case()) { - // string output_uri = 9; - case kOutputUri: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_uri()); - break; - } - // .flyteidl.core.ExecutionError error = 10; - case kError: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.error_); - break; - } - // .flyteidl.core.LiteralMap output_data = 17; - case kOutputData: { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *output_result_.output_data_); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionEvent::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionEvent* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskExecutionEvent) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskExecutionEvent) - MergeFrom(*source); - } -} - -void TaskExecutionEvent::MergeFrom(const TaskExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskExecutionEvent) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - logs_.MergeFrom(from.logs_); - reasons_.MergeFrom(from.reasons_); - if (from.producer_id().size() > 0) { - - producer_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.producer_id_); - } - if (from.reason().size() > 0) { - - reason_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.reason_); - } - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.has_task_id()) { - mutable_task_id()->::flyteidl::core::Identifier::MergeFrom(from.task_id()); - } - if (from.has_parent_node_execution_id()) { - mutable_parent_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.parent_node_execution_id()); - } - if (from.has_occurred_at()) { - mutable_occurred_at()->::google::protobuf::Timestamp::MergeFrom(from.occurred_at()); - } - if (from.has_custom_info()) { - mutable_custom_info()->::google::protobuf::Struct::MergeFrom(from.custom_info()); - } - if (from.has_metadata()) { - mutable_metadata()->::flyteidl::event::TaskExecutionMetadata::MergeFrom(from.metadata()); - } - if (from.has_reported_at()) { - mutable_reported_at()->::google::protobuf::Timestamp::MergeFrom(from.reported_at()); - } - if (from.retry_attempt() != 0) { - set_retry_attempt(from.retry_attempt()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - if (from.phase_version() != 0) { - set_phase_version(from.phase_version()); - } - if (from.event_version() != 0) { - set_event_version(from.event_version()); - } - switch (from.input_value_case()) { - case kInputUri: { - set_input_uri(from.input_uri()); - break; - } - case kInputData: { - mutable_input_data()->::flyteidl::core::LiteralMap::MergeFrom(from.input_data()); - break; - } - case INPUT_VALUE_NOT_SET: { - break; - } - } - switch (from.output_result_case()) { - case kOutputUri: { - set_output_uri(from.output_uri()); - break; - } - case kError: { - mutable_error()->::flyteidl::core::ExecutionError::MergeFrom(from.error()); - break; - } - case kOutputData: { - mutable_output_data()->::flyteidl::core::LiteralMap::MergeFrom(from.output_data()); - break; - } - case OUTPUT_RESULT_NOT_SET: { - break; - } - } -} - -void TaskExecutionEvent::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionEvent::CopyFrom(const TaskExecutionEvent& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskExecutionEvent) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionEvent::IsInitialized() const { - return true; -} - -void TaskExecutionEvent::Swap(TaskExecutionEvent* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionEvent::InternalSwap(TaskExecutionEvent* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); - CastToBase(&reasons_)->InternalSwap(CastToBase(&other->reasons_)); - producer_id_.Swap(&other->producer_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - reason_.Swap(&other->reason_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(task_id_, other->task_id_); - swap(parent_node_execution_id_, other->parent_node_execution_id_); - swap(occurred_at_, other->occurred_at_); - swap(custom_info_, other->custom_info_); - swap(metadata_, other->metadata_); - swap(reported_at_, other->reported_at_); - swap(retry_attempt_, other->retry_attempt_); - swap(phase_, other->phase_); - swap(phase_version_, other->phase_version_); - swap(event_version_, other->event_version_); - swap(input_value_, other->input_value_); - swap(output_result_, other->output_result_); - swap(_oneof_case_[0], other->_oneof_case_[0]); - swap(_oneof_case_[1], other->_oneof_case_[1]); -} - -::google::protobuf::Metadata TaskExecutionEvent::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ExternalResourceInfo::InitAsDefaultInstance() { -} -class ExternalResourceInfo::HasBitSetters { - public: -}; - -void ExternalResourceInfo::clear_logs() { - logs_.Clear(); -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ExternalResourceInfo::kExternalIdFieldNumber; -const int ExternalResourceInfo::kIndexFieldNumber; -const int ExternalResourceInfo::kRetryAttemptFieldNumber; -const int ExternalResourceInfo::kPhaseFieldNumber; -const int ExternalResourceInfo::kCacheStatusFieldNumber; -const int ExternalResourceInfo::kLogsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ExternalResourceInfo::ExternalResourceInfo() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.ExternalResourceInfo) -} -ExternalResourceInfo::ExternalResourceInfo(const ExternalResourceInfo& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - logs_(from.logs_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - external_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.external_id().size() > 0) { - external_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_id_); - } - ::memcpy(&index_, &from.index_, - static_cast(reinterpret_cast(&cache_status_) - - reinterpret_cast(&index_)) + sizeof(cache_status_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.event.ExternalResourceInfo) -} - -void ExternalResourceInfo::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); - external_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&index_, 0, static_cast( - reinterpret_cast(&cache_status_) - - reinterpret_cast(&index_)) + sizeof(cache_status_)); -} - -ExternalResourceInfo::~ExternalResourceInfo() { - // @@protoc_insertion_point(destructor:flyteidl.event.ExternalResourceInfo) - SharedDtor(); -} - -void ExternalResourceInfo::SharedDtor() { - external_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ExternalResourceInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ExternalResourceInfo& ExternalResourceInfo::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ExternalResourceInfo_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void ExternalResourceInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.ExternalResourceInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - logs_.Clear(); - external_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&index_, 0, static_cast( - reinterpret_cast(&cache_status_) - - reinterpret_cast(&index_)) + sizeof(cache_status_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ExternalResourceInfo::_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) { - // string external_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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.ExternalResourceInfo.external_id"); - object = msg->mutable_external_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 index = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_index(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // uint32 retry_attempt = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_retry_attempt(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.TaskExecution.Phase phase = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::TaskExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_cache_status(static_cast<::flyteidl::core::CatalogCacheStatus>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated .flyteidl.core.TaskLog logs = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::TaskLog::_InternalParse; - object = msg->add_logs(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ExternalResourceInfo::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.event.ExternalResourceInfo) - 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)) { - // string external_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_external_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_id().data(), static_cast(this->external_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.ExternalResourceInfo.external_id")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 index = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &index_))); - } else { - goto handle_unusual; - } - break; - } - - // uint32 retry_attempt = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retry_attempt_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::TaskExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_cache_status(static_cast< ::flyteidl::core::CatalogCacheStatus >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.core.TaskLog logs = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_logs())); - } 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.event.ExternalResourceInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.ExternalResourceInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ExternalResourceInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.ExternalResourceInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string external_id = 1; - if (this->external_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_id().data(), static_cast(this->external_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ExternalResourceInfo.external_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->external_id(), output); - } - - // uint32 index = 2; - if (this->index() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->index(), output); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retry_attempt(), output); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->phase(), output); - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - if (this->cache_status() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 5, this->cache_status(), output); - } - - // repeated .flyteidl.core.TaskLog logs = 6; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, - this->logs(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.ExternalResourceInfo) -} - -::google::protobuf::uint8* ExternalResourceInfo::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ExternalResourceInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string external_id = 1; - if (this->external_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->external_id().data(), static_cast(this->external_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ExternalResourceInfo.external_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->external_id(), target); - } - - // uint32 index = 2; - if (this->index() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->index(), target); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retry_attempt(), target); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->phase(), target); - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - if (this->cache_status() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 5, this->cache_status(), target); - } - - // repeated .flyteidl.core.TaskLog logs = 6; - for (unsigned int i = 0, - n = static_cast(this->logs_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 6, this->logs(static_cast(i)), 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.event.ExternalResourceInfo) - return target; -} - -size_t ExternalResourceInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ExternalResourceInfo) - 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; - - // repeated .flyteidl.core.TaskLog logs = 6; - { - unsigned int count = static_cast(this->logs_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->logs(static_cast(i))); - } - } - - // string external_id = 1; - if (this->external_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->external_id()); - } - - // uint32 index = 2; - if (this->index() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->index()); - } - - // uint32 retry_attempt = 3; - if (this->retry_attempt() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retry_attempt()); - } - - // .flyteidl.core.TaskExecution.Phase phase = 4; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - if (this->cache_status() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->cache_status()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ExternalResourceInfo::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ExternalResourceInfo) - GOOGLE_DCHECK_NE(&from, this); - const ExternalResourceInfo* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ExternalResourceInfo) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ExternalResourceInfo) - MergeFrom(*source); - } -} - -void ExternalResourceInfo::MergeFrom(const ExternalResourceInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ExternalResourceInfo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - logs_.MergeFrom(from.logs_); - if (from.external_id().size() > 0) { - - external_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.external_id_); - } - if (from.index() != 0) { - set_index(from.index()); - } - if (from.retry_attempt() != 0) { - set_retry_attempt(from.retry_attempt()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } - if (from.cache_status() != 0) { - set_cache_status(from.cache_status()); - } -} - -void ExternalResourceInfo::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ExternalResourceInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ExternalResourceInfo::CopyFrom(const ExternalResourceInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ExternalResourceInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ExternalResourceInfo::IsInitialized() const { - return true; -} - -void ExternalResourceInfo::Swap(ExternalResourceInfo* other) { - if (other == this) return; - InternalSwap(other); -} -void ExternalResourceInfo::InternalSwap(ExternalResourceInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&logs_)->InternalSwap(CastToBase(&other->logs_)); - external_id_.Swap(&other->external_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(index_, other->index_); - swap(retry_attempt_, other->retry_attempt_); - swap(phase_, other->phase_); - swap(cache_status_, other->cache_status_); -} - -::google::protobuf::Metadata ExternalResourceInfo::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void ResourcePoolInfo::InitAsDefaultInstance() { -} -class ResourcePoolInfo::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ResourcePoolInfo::kAllocationTokenFieldNumber; -const int ResourcePoolInfo::kNamespaceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ResourcePoolInfo::ResourcePoolInfo() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.ResourcePoolInfo) -} -ResourcePoolInfo::ResourcePoolInfo(const ResourcePoolInfo& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - allocation_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.allocation_token().size() > 0) { - allocation_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.allocation_token_); - } - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.namespace_().size() > 0) { - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.event.ResourcePoolInfo) -} - -void ResourcePoolInfo::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); - allocation_token_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -ResourcePoolInfo::~ResourcePoolInfo() { - // @@protoc_insertion_point(destructor:flyteidl.event.ResourcePoolInfo) - SharedDtor(); -} - -void ResourcePoolInfo::SharedDtor() { - allocation_token_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ResourcePoolInfo::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ResourcePoolInfo& ResourcePoolInfo::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ResourcePoolInfo_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void ResourcePoolInfo::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.ResourcePoolInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - allocation_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ResourcePoolInfo::_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) { - // string allocation_token = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.ResourcePoolInfo.allocation_token"); - object = msg->mutable_allocation_token(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string namespace = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.ResourcePoolInfo.namespace"); - object = msg->mutable_namespace_(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ResourcePoolInfo::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.event.ResourcePoolInfo) - 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)) { - // string allocation_token = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_allocation_token())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->allocation_token().data(), static_cast(this->allocation_token().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.ResourcePoolInfo.allocation_token")); - } else { - goto handle_unusual; - } - break; - } - - // string namespace = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_namespace_())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.ResourcePoolInfo.namespace")); - } 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.event.ResourcePoolInfo) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.ResourcePoolInfo) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ResourcePoolInfo::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.ResourcePoolInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string allocation_token = 1; - if (this->allocation_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->allocation_token().data(), static_cast(this->allocation_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ResourcePoolInfo.allocation_token"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->allocation_token(), output); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ResourcePoolInfo.namespace"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->namespace_(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.ResourcePoolInfo) -} - -::google::protobuf::uint8* ResourcePoolInfo::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.ResourcePoolInfo) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string allocation_token = 1; - if (this->allocation_token().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->allocation_token().data(), static_cast(this->allocation_token().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ResourcePoolInfo.allocation_token"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->allocation_token(), target); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->namespace_().data(), static_cast(this->namespace_().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.ResourcePoolInfo.namespace"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->namespace_(), 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.event.ResourcePoolInfo) - return target; -} - -size_t ResourcePoolInfo::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.ResourcePoolInfo) - 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; - - // string allocation_token = 1; - if (this->allocation_token().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->allocation_token()); - } - - // string namespace = 2; - if (this->namespace_().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->namespace_()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ResourcePoolInfo::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.ResourcePoolInfo) - GOOGLE_DCHECK_NE(&from, this); - const ResourcePoolInfo* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.ResourcePoolInfo) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.ResourcePoolInfo) - MergeFrom(*source); - } -} - -void ResourcePoolInfo::MergeFrom(const ResourcePoolInfo& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.ResourcePoolInfo) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.allocation_token().size() > 0) { - - allocation_token_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.allocation_token_); - } - if (from.namespace_().size() > 0) { - - namespace__.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace__); - } -} - -void ResourcePoolInfo::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.ResourcePoolInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ResourcePoolInfo::CopyFrom(const ResourcePoolInfo& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.ResourcePoolInfo) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ResourcePoolInfo::IsInitialized() const { - return true; -} - -void ResourcePoolInfo::Swap(ResourcePoolInfo* other) { - if (other == this) return; - InternalSwap(other); -} -void ResourcePoolInfo::InternalSwap(ResourcePoolInfo* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - allocation_token_.Swap(&other->allocation_token_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - namespace__.Swap(&other->namespace__, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata ResourcePoolInfo::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskExecutionMetadata::InitAsDefaultInstance() { -} -class TaskExecutionMetadata::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskExecutionMetadata::kGeneratedNameFieldNumber; -const int TaskExecutionMetadata::kExternalResourcesFieldNumber; -const int TaskExecutionMetadata::kResourcePoolInfoFieldNumber; -const int TaskExecutionMetadata::kPluginIdentifierFieldNumber; -const int TaskExecutionMetadata::kInstanceClassFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskExecutionMetadata::TaskExecutionMetadata() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.event.TaskExecutionMetadata) -} -TaskExecutionMetadata::TaskExecutionMetadata(const TaskExecutionMetadata& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - external_resources_(from.external_resources_), - resource_pool_info_(from.resource_pool_info_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - generated_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.generated_name().size() > 0) { - generated_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.generated_name_); - } - plugin_identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.plugin_identifier().size() > 0) { - plugin_identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plugin_identifier_); - } - instance_class_ = from.instance_class_; - // @@protoc_insertion_point(copy_constructor:flyteidl.event.TaskExecutionMetadata) -} - -void TaskExecutionMetadata::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - generated_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - plugin_identifier_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - instance_class_ = 0; -} - -TaskExecutionMetadata::~TaskExecutionMetadata() { - // @@protoc_insertion_point(destructor:flyteidl.event.TaskExecutionMetadata) - SharedDtor(); -} - -void TaskExecutionMetadata::SharedDtor() { - generated_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - plugin_identifier_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskExecutionMetadata::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskExecutionMetadata& TaskExecutionMetadata::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskExecutionMetadata_flyteidl_2fevent_2fevent_2eproto.base); - return *internal_default_instance(); -} - - -void TaskExecutionMetadata::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.event.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - external_resources_.Clear(); - resource_pool_info_.Clear(); - generated_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - plugin_identifier_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - instance_class_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskExecutionMetadata::_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) { - // string generated_name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionMetadata.generated_name"); - object = msg->mutable_generated_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::ExternalResourceInfo::_InternalParse; - object = msg->add_external_resources(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::event::ResourcePoolInfo::_InternalParse; - object = msg->add_resource_pool_info(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // string plugin_identifier = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.event.TaskExecutionMetadata.plugin_identifier"); - object = msg->mutable_plugin_identifier(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - case 16: { - if (static_cast<::google::protobuf::uint8>(tag) != 128) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_instance_class(static_cast<::flyteidl::event::TaskExecutionMetadata_InstanceClass>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskExecutionMetadata::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.event.TaskExecutionMetadata) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); - tag = p.first; - if (!p.second) goto handle_unusual; - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // string generated_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_generated_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->generated_name().data(), static_cast(this->generated_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionMetadata.generated_name")); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_external_resources())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_resource_pool_info())); - } else { - goto handle_unusual; - } - break; - } - - // string plugin_identifier = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_plugin_identifier())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.event.TaskExecutionMetadata.plugin_identifier")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - case 16: { - if (static_cast< ::google::protobuf::uint8>(tag) == (128 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_instance_class(static_cast< ::flyteidl::event::TaskExecutionMetadata_InstanceClass >(value)); - } 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.event.TaskExecutionMetadata) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.event.TaskExecutionMetadata) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskExecutionMetadata::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.event.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string generated_name = 1; - if (this->generated_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->generated_name().data(), static_cast(this->generated_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionMetadata.generated_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->generated_name(), output); - } - - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - for (unsigned int i = 0, - n = static_cast(this->external_resources_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->external_resources(static_cast(i)), - output); - } - - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - for (unsigned int i = 0, - n = static_cast(this->resource_pool_info_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, - this->resource_pool_info(static_cast(i)), - output); - } - - // string plugin_identifier = 4; - if (this->plugin_identifier().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionMetadata.plugin_identifier"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->plugin_identifier(), output); - } - - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - if (this->instance_class() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 16, this->instance_class(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.event.TaskExecutionMetadata) -} - -::google::protobuf::uint8* TaskExecutionMetadata::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.event.TaskExecutionMetadata) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string generated_name = 1; - if (this->generated_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->generated_name().data(), static_cast(this->generated_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionMetadata.generated_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->generated_name(), target); - } - - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - for (unsigned int i = 0, - n = static_cast(this->external_resources_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->external_resources(static_cast(i)), target); - } - - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - for (unsigned int i = 0, - n = static_cast(this->resource_pool_info_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, this->resource_pool_info(static_cast(i)), target); - } - - // string plugin_identifier = 4; - if (this->plugin_identifier().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->plugin_identifier().data(), static_cast(this->plugin_identifier().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.event.TaskExecutionMetadata.plugin_identifier"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->plugin_identifier(), target); - } - - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - if (this->instance_class() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 16, this->instance_class(), 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.event.TaskExecutionMetadata) - return target; -} - -size_t TaskExecutionMetadata::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.event.TaskExecutionMetadata) - 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; - - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - { - unsigned int count = static_cast(this->external_resources_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->external_resources(static_cast(i))); - } - } - - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - { - unsigned int count = static_cast(this->resource_pool_info_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->resource_pool_info(static_cast(i))); - } - } - - // string generated_name = 1; - if (this->generated_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->generated_name()); - } - - // string plugin_identifier = 4; - if (this->plugin_identifier().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->plugin_identifier()); - } - - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - if (this->instance_class() != 0) { - total_size += 2 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->instance_class()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskExecutionMetadata::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.event.TaskExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - const TaskExecutionMetadata* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.event.TaskExecutionMetadata) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.event.TaskExecutionMetadata) - MergeFrom(*source); - } -} - -void TaskExecutionMetadata::MergeFrom(const TaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.event.TaskExecutionMetadata) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - external_resources_.MergeFrom(from.external_resources_); - resource_pool_info_.MergeFrom(from.resource_pool_info_); - if (from.generated_name().size() > 0) { - - generated_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.generated_name_); - } - if (from.plugin_identifier().size() > 0) { - - plugin_identifier_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.plugin_identifier_); - } - if (from.instance_class() != 0) { - set_instance_class(from.instance_class()); - } -} - -void TaskExecutionMetadata::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.event.TaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskExecutionMetadata::CopyFrom(const TaskExecutionMetadata& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.event.TaskExecutionMetadata) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskExecutionMetadata::IsInitialized() const { - return true; -} - -void TaskExecutionMetadata::Swap(TaskExecutionMetadata* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskExecutionMetadata::InternalSwap(TaskExecutionMetadata* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&external_resources_)->InternalSwap(CastToBase(&other->external_resources_)); - CastToBase(&resource_pool_info_)->InternalSwap(CastToBase(&other->resource_pool_info_)); - generated_name_.Swap(&other->generated_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - plugin_identifier_.Swap(&other->plugin_identifier_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(instance_class_, other->instance_class_); -} - -::google::protobuf::Metadata TaskExecutionMetadata::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fevent_2fevent_2eproto); - return ::file_level_metadata_flyteidl_2fevent_2fevent_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace event -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::event::WorkflowExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::WorkflowExecutionEvent >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::WorkflowExecutionEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::NodeExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::NodeExecutionEvent >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::NodeExecutionEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::WorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::WorkflowNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::WorkflowNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::TaskNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::TaskNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::DynamicWorkflowNodeMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::DynamicWorkflowNodeMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::ParentTaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::ParentTaskExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::ParentTaskExecutionMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::ParentNodeExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::ParentNodeExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::ParentNodeExecutionMetadata >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::EventReason* Arena::CreateMaybeMessage< ::flyteidl::event::EventReason >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::EventReason >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskExecutionEvent* Arena::CreateMaybeMessage< ::flyteidl::event::TaskExecutionEvent >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::TaskExecutionEvent >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::ExternalResourceInfo* Arena::CreateMaybeMessage< ::flyteidl::event::ExternalResourceInfo >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::ExternalResourceInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::ResourcePoolInfo* Arena::CreateMaybeMessage< ::flyteidl::event::ResourcePoolInfo >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::ResourcePoolInfo >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::event::TaskExecutionMetadata* Arena::CreateMaybeMessage< ::flyteidl::event::TaskExecutionMetadata >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::event::TaskExecutionMetadata >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h b/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h deleted file mode 100644 index bca21d5c6d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/event/event.pb.h +++ /dev/null @@ -1,5621 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/event.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/compiler.pb.h" -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/catalog.pb.h" -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fevent_2fevent_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fevent_2fevent_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[12] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fevent_2fevent_2eproto(); -namespace flyteidl { -namespace event { -class DynamicWorkflowNodeMetadata; -class DynamicWorkflowNodeMetadataDefaultTypeInternal; -extern DynamicWorkflowNodeMetadataDefaultTypeInternal _DynamicWorkflowNodeMetadata_default_instance_; -class EventReason; -class EventReasonDefaultTypeInternal; -extern EventReasonDefaultTypeInternal _EventReason_default_instance_; -class ExternalResourceInfo; -class ExternalResourceInfoDefaultTypeInternal; -extern ExternalResourceInfoDefaultTypeInternal _ExternalResourceInfo_default_instance_; -class NodeExecutionEvent; -class NodeExecutionEventDefaultTypeInternal; -extern NodeExecutionEventDefaultTypeInternal _NodeExecutionEvent_default_instance_; -class ParentNodeExecutionMetadata; -class ParentNodeExecutionMetadataDefaultTypeInternal; -extern ParentNodeExecutionMetadataDefaultTypeInternal _ParentNodeExecutionMetadata_default_instance_; -class ParentTaskExecutionMetadata; -class ParentTaskExecutionMetadataDefaultTypeInternal; -extern ParentTaskExecutionMetadataDefaultTypeInternal _ParentTaskExecutionMetadata_default_instance_; -class ResourcePoolInfo; -class ResourcePoolInfoDefaultTypeInternal; -extern ResourcePoolInfoDefaultTypeInternal _ResourcePoolInfo_default_instance_; -class TaskExecutionEvent; -class TaskExecutionEventDefaultTypeInternal; -extern TaskExecutionEventDefaultTypeInternal _TaskExecutionEvent_default_instance_; -class TaskExecutionMetadata; -class TaskExecutionMetadataDefaultTypeInternal; -extern TaskExecutionMetadataDefaultTypeInternal _TaskExecutionMetadata_default_instance_; -class TaskNodeMetadata; -class TaskNodeMetadataDefaultTypeInternal; -extern TaskNodeMetadataDefaultTypeInternal _TaskNodeMetadata_default_instance_; -class WorkflowExecutionEvent; -class WorkflowExecutionEventDefaultTypeInternal; -extern WorkflowExecutionEventDefaultTypeInternal _WorkflowExecutionEvent_default_instance_; -class WorkflowNodeMetadata; -class WorkflowNodeMetadataDefaultTypeInternal; -extern WorkflowNodeMetadataDefaultTypeInternal _WorkflowNodeMetadata_default_instance_; -} // namespace event -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::event::DynamicWorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::DynamicWorkflowNodeMetadata>(Arena*); -template<> ::flyteidl::event::EventReason* Arena::CreateMaybeMessage<::flyteidl::event::EventReason>(Arena*); -template<> ::flyteidl::event::ExternalResourceInfo* Arena::CreateMaybeMessage<::flyteidl::event::ExternalResourceInfo>(Arena*); -template<> ::flyteidl::event::NodeExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::NodeExecutionEvent>(Arena*); -template<> ::flyteidl::event::ParentNodeExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::ParentNodeExecutionMetadata>(Arena*); -template<> ::flyteidl::event::ParentTaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::ParentTaskExecutionMetadata>(Arena*); -template<> ::flyteidl::event::ResourcePoolInfo* Arena::CreateMaybeMessage<::flyteidl::event::ResourcePoolInfo>(Arena*); -template<> ::flyteidl::event::TaskExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::TaskExecutionEvent>(Arena*); -template<> ::flyteidl::event::TaskExecutionMetadata* Arena::CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(Arena*); -template<> ::flyteidl::event::TaskNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::TaskNodeMetadata>(Arena*); -template<> ::flyteidl::event::WorkflowExecutionEvent* Arena::CreateMaybeMessage<::flyteidl::event::WorkflowExecutionEvent>(Arena*); -template<> ::flyteidl::event::WorkflowNodeMetadata* Arena::CreateMaybeMessage<::flyteidl::event::WorkflowNodeMetadata>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace event { - -enum TaskExecutionMetadata_InstanceClass { - TaskExecutionMetadata_InstanceClass_DEFAULT = 0, - TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE = 1, - TaskExecutionMetadata_InstanceClass_TaskExecutionMetadata_InstanceClass_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - TaskExecutionMetadata_InstanceClass_TaskExecutionMetadata_InstanceClass_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool TaskExecutionMetadata_InstanceClass_IsValid(int value); -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata_InstanceClass_InstanceClass_MIN = TaskExecutionMetadata_InstanceClass_DEFAULT; -const TaskExecutionMetadata_InstanceClass TaskExecutionMetadata_InstanceClass_InstanceClass_MAX = TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE; -const int TaskExecutionMetadata_InstanceClass_InstanceClass_ARRAYSIZE = TaskExecutionMetadata_InstanceClass_InstanceClass_MAX + 1; - -const ::google::protobuf::EnumDescriptor* TaskExecutionMetadata_InstanceClass_descriptor(); -inline const ::std::string& TaskExecutionMetadata_InstanceClass_Name(TaskExecutionMetadata_InstanceClass value) { - return ::google::protobuf::internal::NameOfEnum( - TaskExecutionMetadata_InstanceClass_descriptor(), value); -} -inline bool TaskExecutionMetadata_InstanceClass_Parse( - const ::std::string& name, TaskExecutionMetadata_InstanceClass* value) { - return ::google::protobuf::internal::ParseNamedEnum( - TaskExecutionMetadata_InstanceClass_descriptor(), name, value); -} -// =================================================================== - -class WorkflowExecutionEvent final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowExecutionEvent) */ { - public: - WorkflowExecutionEvent(); - virtual ~WorkflowExecutionEvent(); - - WorkflowExecutionEvent(const WorkflowExecutionEvent& from); - - inline WorkflowExecutionEvent& operator=(const WorkflowExecutionEvent& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowExecutionEvent(WorkflowExecutionEvent&& from) noexcept - : WorkflowExecutionEvent() { - *this = ::std::move(from); - } - - inline WorkflowExecutionEvent& operator=(WorkflowExecutionEvent&& 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 WorkflowExecutionEvent& default_instance(); - - enum OutputResultCase { - kOutputUri = 5, - kError = 6, - kOutputData = 7, - OUTPUT_RESULT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowExecutionEvent* internal_default_instance() { - return reinterpret_cast( - &_WorkflowExecutionEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(WorkflowExecutionEvent* other); - friend void swap(WorkflowExecutionEvent& a, WorkflowExecutionEvent& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowExecutionEvent* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowExecutionEvent* 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 WorkflowExecutionEvent& from); - void MergeFrom(const WorkflowExecutionEvent& 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(WorkflowExecutionEvent* 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 ------------------------------------------------------- - - // string producer_id = 2; - void clear_producer_id(); - static const int kProducerIdFieldNumber = 2; - const ::std::string& producer_id() const; - void set_producer_id(const ::std::string& value); - #if LANG_CXX11 - void set_producer_id(::std::string&& value); - #endif - void set_producer_id(const char* value); - void set_producer_id(const char* value, size_t size); - ::std::string* mutable_producer_id(); - ::std::string* release_producer_id(); - void set_allocated_producer_id(::std::string* producer_id); - - // .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // .google.protobuf.Timestamp occurred_at = 4; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 4; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // .flyteidl.core.WorkflowExecution.Phase phase = 3; - void clear_phase(); - static const int kPhaseFieldNumber = 3; - ::flyteidl::core::WorkflowExecution_Phase phase() const; - void set_phase(::flyteidl::core::WorkflowExecution_Phase value); - - // string output_uri = 5; - private: - bool has_output_uri() const; - public: - void clear_output_uri(); - static const int kOutputUriFieldNumber = 5; - const ::std::string& output_uri() const; - void set_output_uri(const ::std::string& value); - #if LANG_CXX11 - void set_output_uri(::std::string&& value); - #endif - void set_output_uri(const char* value); - void set_output_uri(const char* value, size_t size); - ::std::string* mutable_output_uri(); - ::std::string* release_output_uri(); - void set_allocated_output_uri(::std::string* output_uri); - - // .flyteidl.core.ExecutionError error = 6; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 6; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // .flyteidl.core.LiteralMap output_data = 7; - bool has_output_data() const; - void clear_output_data(); - static const int kOutputDataFieldNumber = 7; - const ::flyteidl::core::LiteralMap& output_data() const; - ::flyteidl::core::LiteralMap* release_output_data(); - ::flyteidl::core::LiteralMap* mutable_output_data(); - void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - void clear_output_result(); - OutputResultCase output_result_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) - private: - class HasBitSetters; - void set_has_output_uri(); - void set_has_error(); - void set_has_output_data(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr producer_id_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - ::google::protobuf::Timestamp* occurred_at_; - int phase_; - union OutputResultUnion { - OutputResultUnion() {} - ::google::protobuf::internal::ArenaStringPtr output_uri_; - ::flyteidl::core::ExecutionError* error_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class NodeExecutionEvent final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.NodeExecutionEvent) */ { - public: - NodeExecutionEvent(); - virtual ~NodeExecutionEvent(); - - NodeExecutionEvent(const NodeExecutionEvent& from); - - inline NodeExecutionEvent& operator=(const NodeExecutionEvent& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecutionEvent(NodeExecutionEvent&& from) noexcept - : NodeExecutionEvent() { - *this = ::std::move(from); - } - - inline NodeExecutionEvent& operator=(NodeExecutionEvent&& 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 NodeExecutionEvent& default_instance(); - - enum InputValueCase { - kInputUri = 5, - kInputData = 20, - INPUT_VALUE_NOT_SET = 0, - }; - - enum OutputResultCase { - kOutputUri = 6, - kError = 7, - kOutputData = 15, - OUTPUT_RESULT_NOT_SET = 0, - }; - - enum TargetMetadataCase { - kWorkflowNodeMetadata = 8, - kTaskNodeMetadata = 14, - TARGET_METADATA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecutionEvent* internal_default_instance() { - return reinterpret_cast( - &_NodeExecutionEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(NodeExecutionEvent* other); - friend void swap(NodeExecutionEvent& a, NodeExecutionEvent& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecutionEvent* New() const final { - return CreateMaybeMessage(nullptr); - } - - NodeExecutionEvent* 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 NodeExecutionEvent& from); - void MergeFrom(const NodeExecutionEvent& 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(NodeExecutionEvent* 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 ------------------------------------------------------- - - // string producer_id = 2; - void clear_producer_id(); - static const int kProducerIdFieldNumber = 2; - const ::std::string& producer_id() const; - void set_producer_id(const ::std::string& value); - #if LANG_CXX11 - void set_producer_id(::std::string&& value); - #endif - void set_producer_id(const char* value); - void set_producer_id(const char* value, size_t size); - ::std::string* mutable_producer_id(); - ::std::string* release_producer_id(); - void set_allocated_producer_id(::std::string* producer_id); - - // string retry_group = 11; - void clear_retry_group(); - static const int kRetryGroupFieldNumber = 11; - const ::std::string& retry_group() const; - void set_retry_group(const ::std::string& value); - #if LANG_CXX11 - void set_retry_group(::std::string&& value); - #endif - void set_retry_group(const char* value); - void set_retry_group(const char* value, size_t size); - ::std::string* mutable_retry_group(); - ::std::string* release_retry_group(); - void set_allocated_retry_group(::std::string* retry_group); - - // string spec_node_id = 12; - void clear_spec_node_id(); - static const int kSpecNodeIdFieldNumber = 12; - const ::std::string& spec_node_id() const; - void set_spec_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_spec_node_id(::std::string&& value); - #endif - void set_spec_node_id(const char* value); - void set_spec_node_id(const char* value, size_t size); - ::std::string* mutable_spec_node_id(); - ::std::string* release_spec_node_id(); - void set_allocated_spec_node_id(::std::string* spec_node_id); - - // string node_name = 13; - void clear_node_name(); - static const int kNodeNameFieldNumber = 13; - const ::std::string& node_name() const; - void set_node_name(const ::std::string& value); - #if LANG_CXX11 - void set_node_name(::std::string&& value); - #endif - void set_node_name(const char* value); - void set_node_name(const char* value, size_t size); - ::std::string* mutable_node_name(); - ::std::string* release_node_name(); - void set_allocated_node_name(::std::string* node_name); - - // string deck_uri = 19; - void clear_deck_uri(); - static const int kDeckUriFieldNumber = 19; - const ::std::string& deck_uri() const; - void set_deck_uri(const ::std::string& value); - #if LANG_CXX11 - void set_deck_uri(::std::string&& value); - #endif - void set_deck_uri(const char* value); - void set_deck_uri(const char* value, size_t size); - ::std::string* mutable_deck_uri(); - ::std::string* release_deck_uri(); - void set_allocated_deck_uri(::std::string* deck_uri); - - // .flyteidl.core.NodeExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::NodeExecutionIdentifier& id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* id); - - // .google.protobuf.Timestamp occurred_at = 4; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 4; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - bool has_parent_task_metadata() const; - void clear_parent_task_metadata(); - static const int kParentTaskMetadataFieldNumber = 9; - const ::flyteidl::event::ParentTaskExecutionMetadata& parent_task_metadata() const; - ::flyteidl::event::ParentTaskExecutionMetadata* release_parent_task_metadata(); - ::flyteidl::event::ParentTaskExecutionMetadata* mutable_parent_task_metadata(); - void set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata); - - // .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - bool has_parent_node_metadata() const; - void clear_parent_node_metadata(); - static const int kParentNodeMetadataFieldNumber = 10; - const ::flyteidl::event::ParentNodeExecutionMetadata& parent_node_metadata() const; - ::flyteidl::event::ParentNodeExecutionMetadata* release_parent_node_metadata(); - ::flyteidl::event::ParentNodeExecutionMetadata* mutable_parent_node_metadata(); - void set_allocated_parent_node_metadata(::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata); - - // .google.protobuf.Timestamp reported_at = 21; - bool has_reported_at() const; - void clear_reported_at(); - static const int kReportedAtFieldNumber = 21; - const ::google::protobuf::Timestamp& reported_at() const; - ::google::protobuf::Timestamp* release_reported_at(); - ::google::protobuf::Timestamp* mutable_reported_at(); - void set_allocated_reported_at(::google::protobuf::Timestamp* reported_at); - - // .flyteidl.core.NodeExecution.Phase phase = 3; - void clear_phase(); - static const int kPhaseFieldNumber = 3; - ::flyteidl::core::NodeExecution_Phase phase() const; - void set_phase(::flyteidl::core::NodeExecution_Phase value); - - // int32 event_version = 16; - void clear_event_version(); - static const int kEventVersionFieldNumber = 16; - ::google::protobuf::int32 event_version() const; - void set_event_version(::google::protobuf::int32 value); - - // bool is_parent = 17; - void clear_is_parent(); - static const int kIsParentFieldNumber = 17; - bool is_parent() const; - void set_is_parent(bool value); - - // bool is_dynamic = 18; - void clear_is_dynamic(); - static const int kIsDynamicFieldNumber = 18; - bool is_dynamic() const; - void set_is_dynamic(bool value); - - // bool is_array = 22; - void clear_is_array(); - static const int kIsArrayFieldNumber = 22; - bool is_array() const; - void set_is_array(bool value); - - // string input_uri = 5; - private: - bool has_input_uri() const; - public: - void clear_input_uri(); - static const int kInputUriFieldNumber = 5; - const ::std::string& input_uri() const; - void set_input_uri(const ::std::string& value); - #if LANG_CXX11 - void set_input_uri(::std::string&& value); - #endif - void set_input_uri(const char* value); - void set_input_uri(const char* value, size_t size); - ::std::string* mutable_input_uri(); - ::std::string* release_input_uri(); - void set_allocated_input_uri(::std::string* input_uri); - - // .flyteidl.core.LiteralMap input_data = 20; - bool has_input_data() const; - void clear_input_data(); - static const int kInputDataFieldNumber = 20; - const ::flyteidl::core::LiteralMap& input_data() const; - ::flyteidl::core::LiteralMap* release_input_data(); - ::flyteidl::core::LiteralMap* mutable_input_data(); - void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - - // string output_uri = 6; - private: - bool has_output_uri() const; - public: - void clear_output_uri(); - static const int kOutputUriFieldNumber = 6; - const ::std::string& output_uri() const; - void set_output_uri(const ::std::string& value); - #if LANG_CXX11 - void set_output_uri(::std::string&& value); - #endif - void set_output_uri(const char* value); - void set_output_uri(const char* value, size_t size); - ::std::string* mutable_output_uri(); - ::std::string* release_output_uri(); - void set_allocated_output_uri(::std::string* output_uri); - - // .flyteidl.core.ExecutionError error = 7; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 7; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // .flyteidl.core.LiteralMap output_data = 15; - bool has_output_data() const; - void clear_output_data(); - static const int kOutputDataFieldNumber = 15; - const ::flyteidl::core::LiteralMap& output_data() const; - ::flyteidl::core::LiteralMap* release_output_data(); - ::flyteidl::core::LiteralMap* mutable_output_data(); - void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - // .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - bool has_workflow_node_metadata() const; - void clear_workflow_node_metadata(); - static const int kWorkflowNodeMetadataFieldNumber = 8; - const ::flyteidl::event::WorkflowNodeMetadata& workflow_node_metadata() const; - ::flyteidl::event::WorkflowNodeMetadata* release_workflow_node_metadata(); - ::flyteidl::event::WorkflowNodeMetadata* mutable_workflow_node_metadata(); - void set_allocated_workflow_node_metadata(::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata); - - // .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - bool has_task_node_metadata() const; - void clear_task_node_metadata(); - static const int kTaskNodeMetadataFieldNumber = 14; - const ::flyteidl::event::TaskNodeMetadata& task_node_metadata() const; - ::flyteidl::event::TaskNodeMetadata* release_task_node_metadata(); - ::flyteidl::event::TaskNodeMetadata* mutable_task_node_metadata(); - void set_allocated_task_node_metadata(::flyteidl::event::TaskNodeMetadata* task_node_metadata); - - void clear_input_value(); - InputValueCase input_value_case() const; - void clear_output_result(); - OutputResultCase output_result_case() const; - void clear_target_metadata(); - TargetMetadataCase target_metadata_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) - private: - class HasBitSetters; - void set_has_input_uri(); - void set_has_input_data(); - void set_has_output_uri(); - void set_has_error(); - void set_has_output_data(); - void set_has_workflow_node_metadata(); - void set_has_task_node_metadata(); - - inline bool has_input_value() const; - inline void clear_has_input_value(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - inline bool has_target_metadata() const; - inline void clear_has_target_metadata(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr producer_id_; - ::google::protobuf::internal::ArenaStringPtr retry_group_; - ::google::protobuf::internal::ArenaStringPtr spec_node_id_; - ::google::protobuf::internal::ArenaStringPtr node_name_; - ::google::protobuf::internal::ArenaStringPtr deck_uri_; - ::flyteidl::core::NodeExecutionIdentifier* id_; - ::google::protobuf::Timestamp* occurred_at_; - ::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata_; - ::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata_; - ::google::protobuf::Timestamp* reported_at_; - int phase_; - ::google::protobuf::int32 event_version_; - bool is_parent_; - bool is_dynamic_; - bool is_array_; - union InputValueUnion { - InputValueUnion() {} - ::google::protobuf::internal::ArenaStringPtr input_uri_; - ::flyteidl::core::LiteralMap* input_data_; - } input_value_; - union OutputResultUnion { - OutputResultUnion() {} - ::google::protobuf::internal::ArenaStringPtr output_uri_; - ::flyteidl::core::ExecutionError* error_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - union TargetMetadataUnion { - TargetMetadataUnion() {} - ::flyteidl::event::WorkflowNodeMetadata* workflow_node_metadata_; - ::flyteidl::event::TaskNodeMetadata* task_node_metadata_; - } target_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[3]; - - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkflowNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.WorkflowNodeMetadata) */ { - public: - WorkflowNodeMetadata(); - virtual ~WorkflowNodeMetadata(); - - WorkflowNodeMetadata(const WorkflowNodeMetadata& from); - - inline WorkflowNodeMetadata& operator=(const WorkflowNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkflowNodeMetadata(WorkflowNodeMetadata&& from) noexcept - : WorkflowNodeMetadata() { - *this = ::std::move(from); - } - - inline WorkflowNodeMetadata& operator=(WorkflowNodeMetadata&& 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 WorkflowNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkflowNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_WorkflowNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(WorkflowNodeMetadata* other); - friend void swap(WorkflowNodeMetadata& a, WorkflowNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkflowNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkflowNodeMetadata* 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 WorkflowNodeMetadata& from); - void MergeFrom(const WorkflowNodeMetadata& 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(WorkflowNodeMetadata* 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.WorkflowExecutionIdentifier execution_id = 1; - bool has_execution_id() const; - void clear_execution_id(); - static const int kExecutionIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& execution_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_execution_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_execution_id(); - void set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::WorkflowExecutionIdentifier* execution_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskNodeMetadata) */ { - public: - TaskNodeMetadata(); - virtual ~TaskNodeMetadata(); - - TaskNodeMetadata(const TaskNodeMetadata& from); - - inline TaskNodeMetadata& operator=(const TaskNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskNodeMetadata(TaskNodeMetadata&& from) noexcept - : TaskNodeMetadata() { - *this = ::std::move(from); - } - - inline TaskNodeMetadata& operator=(TaskNodeMetadata&& 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 TaskNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_TaskNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskNodeMetadata* other); - friend void swap(TaskNodeMetadata& a, TaskNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskNodeMetadata* 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 TaskNodeMetadata& from); - void MergeFrom(const TaskNodeMetadata& 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(TaskNodeMetadata* 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 ------------------------------------------------------- - - // string checkpoint_uri = 4; - void clear_checkpoint_uri(); - static const int kCheckpointUriFieldNumber = 4; - const ::std::string& checkpoint_uri() const; - void set_checkpoint_uri(const ::std::string& value); - #if LANG_CXX11 - void set_checkpoint_uri(::std::string&& value); - #endif - void set_checkpoint_uri(const char* value); - void set_checkpoint_uri(const char* value, size_t size); - ::std::string* mutable_checkpoint_uri(); - ::std::string* release_checkpoint_uri(); - void set_allocated_checkpoint_uri(::std::string* checkpoint_uri); - - // .flyteidl.core.CatalogMetadata catalog_key = 2; - bool has_catalog_key() const; - void clear_catalog_key(); - static const int kCatalogKeyFieldNumber = 2; - const ::flyteidl::core::CatalogMetadata& catalog_key() const; - ::flyteidl::core::CatalogMetadata* release_catalog_key(); - ::flyteidl::core::CatalogMetadata* mutable_catalog_key(); - void set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key); - - // .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - bool has_dynamic_workflow() const; - void clear_dynamic_workflow(); - static const int kDynamicWorkflowFieldNumber = 16; - const ::flyteidl::event::DynamicWorkflowNodeMetadata& dynamic_workflow() const; - ::flyteidl::event::DynamicWorkflowNodeMetadata* release_dynamic_workflow(); - ::flyteidl::event::DynamicWorkflowNodeMetadata* mutable_dynamic_workflow(); - void set_allocated_dynamic_workflow(::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow); - - // .flyteidl.core.CatalogCacheStatus cache_status = 1; - void clear_cache_status(); - static const int kCacheStatusFieldNumber = 1; - ::flyteidl::core::CatalogCacheStatus cache_status() const; - void set_cache_status(::flyteidl::core::CatalogCacheStatus value); - - // .flyteidl.core.CatalogReservation.Status reservation_status = 3; - void clear_reservation_status(); - static const int kReservationStatusFieldNumber = 3; - ::flyteidl::core::CatalogReservation_Status reservation_status() const; - void set_reservation_status(::flyteidl::core::CatalogReservation_Status value); - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr checkpoint_uri_; - ::flyteidl::core::CatalogMetadata* catalog_key_; - ::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow_; - int cache_status_; - int reservation_status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class DynamicWorkflowNodeMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.DynamicWorkflowNodeMetadata) */ { - public: - DynamicWorkflowNodeMetadata(); - virtual ~DynamicWorkflowNodeMetadata(); - - DynamicWorkflowNodeMetadata(const DynamicWorkflowNodeMetadata& from); - - inline DynamicWorkflowNodeMetadata& operator=(const DynamicWorkflowNodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DynamicWorkflowNodeMetadata(DynamicWorkflowNodeMetadata&& from) noexcept - : DynamicWorkflowNodeMetadata() { - *this = ::std::move(from); - } - - inline DynamicWorkflowNodeMetadata& operator=(DynamicWorkflowNodeMetadata&& 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 DynamicWorkflowNodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DynamicWorkflowNodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_DynamicWorkflowNodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(DynamicWorkflowNodeMetadata* other); - friend void swap(DynamicWorkflowNodeMetadata& a, DynamicWorkflowNodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DynamicWorkflowNodeMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - DynamicWorkflowNodeMetadata* 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 DynamicWorkflowNodeMetadata& from); - void MergeFrom(const DynamicWorkflowNodeMetadata& 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(DynamicWorkflowNodeMetadata* 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 ------------------------------------------------------- - - // string dynamic_job_spec_uri = 3; - void clear_dynamic_job_spec_uri(); - static const int kDynamicJobSpecUriFieldNumber = 3; - const ::std::string& dynamic_job_spec_uri() const; - void set_dynamic_job_spec_uri(const ::std::string& value); - #if LANG_CXX11 - void set_dynamic_job_spec_uri(::std::string&& value); - #endif - void set_dynamic_job_spec_uri(const char* value); - void set_dynamic_job_spec_uri(const char* value, size_t size); - ::std::string* mutable_dynamic_job_spec_uri(); - ::std::string* release_dynamic_job_spec_uri(); - void set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri); - - // .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); - - // .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - bool has_compiled_workflow() const; - void clear_compiled_workflow(); - static const int kCompiledWorkflowFieldNumber = 2; - const ::flyteidl::core::CompiledWorkflowClosure& compiled_workflow() const; - ::flyteidl::core::CompiledWorkflowClosure* release_compiled_workflow(); - ::flyteidl::core::CompiledWorkflowClosure* mutable_compiled_workflow(); - void set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow); - - // @@protoc_insertion_point(class_scope:flyteidl.event.DynamicWorkflowNodeMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr dynamic_job_spec_uri_; - ::flyteidl::core::Identifier* id_; - ::flyteidl::core::CompiledWorkflowClosure* compiled_workflow_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class ParentTaskExecutionMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ParentTaskExecutionMetadata) */ { - public: - ParentTaskExecutionMetadata(); - virtual ~ParentTaskExecutionMetadata(); - - ParentTaskExecutionMetadata(const ParentTaskExecutionMetadata& from); - - inline ParentTaskExecutionMetadata& operator=(const ParentTaskExecutionMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParentTaskExecutionMetadata(ParentTaskExecutionMetadata&& from) noexcept - : ParentTaskExecutionMetadata() { - *this = ::std::move(from); - } - - inline ParentTaskExecutionMetadata& operator=(ParentTaskExecutionMetadata&& 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 ParentTaskExecutionMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParentTaskExecutionMetadata* internal_default_instance() { - return reinterpret_cast( - &_ParentTaskExecutionMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(ParentTaskExecutionMetadata* other); - friend void swap(ParentTaskExecutionMetadata& a, ParentTaskExecutionMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParentTaskExecutionMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParentTaskExecutionMetadata* 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 ParentTaskExecutionMetadata& from); - void MergeFrom(const ParentTaskExecutionMetadata& 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(ParentTaskExecutionMetadata* 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.TaskExecutionIdentifier id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - const ::flyteidl::core::TaskExecutionIdentifier& id() const; - ::flyteidl::core::TaskExecutionIdentifier* release_id(); - ::flyteidl::core::TaskExecutionIdentifier* mutable_id(); - void set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::TaskExecutionIdentifier* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class ParentNodeExecutionMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ParentNodeExecutionMetadata) */ { - public: - ParentNodeExecutionMetadata(); - virtual ~ParentNodeExecutionMetadata(); - - ParentNodeExecutionMetadata(const ParentNodeExecutionMetadata& from); - - inline ParentNodeExecutionMetadata& operator=(const ParentNodeExecutionMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ParentNodeExecutionMetadata(ParentNodeExecutionMetadata&& from) noexcept - : ParentNodeExecutionMetadata() { - *this = ::std::move(from); - } - - inline ParentNodeExecutionMetadata& operator=(ParentNodeExecutionMetadata&& 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 ParentNodeExecutionMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ParentNodeExecutionMetadata* internal_default_instance() { - return reinterpret_cast( - &_ParentNodeExecutionMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(ParentNodeExecutionMetadata* other); - friend void swap(ParentNodeExecutionMetadata& a, ParentNodeExecutionMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ParentNodeExecutionMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - ParentNodeExecutionMetadata* 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 ParentNodeExecutionMetadata& from); - void MergeFrom(const ParentNodeExecutionMetadata& 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(ParentNodeExecutionMetadata* 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 ------------------------------------------------------- - - // string node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - const ::std::string& node_id() const; - void set_node_id(const ::std::string& value); - #if LANG_CXX11 - void set_node_id(::std::string&& value); - #endif - void set_node_id(const char* value); - void set_node_id(const char* value, size_t size); - ::std::string* mutable_node_id(); - ::std::string* release_node_id(); - void set_allocated_node_id(::std::string* node_id); - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentNodeExecutionMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class EventReason final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.EventReason) */ { - public: - EventReason(); - virtual ~EventReason(); - - EventReason(const EventReason& from); - - inline EventReason& operator=(const EventReason& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - EventReason(EventReason&& from) noexcept - : EventReason() { - *this = ::std::move(from); - } - - inline EventReason& operator=(EventReason&& 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 EventReason& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const EventReason* internal_default_instance() { - return reinterpret_cast( - &_EventReason_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(EventReason* other); - friend void swap(EventReason& a, EventReason& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline EventReason* New() const final { - return CreateMaybeMessage(nullptr); - } - - EventReason* 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 EventReason& from); - void MergeFrom(const EventReason& 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(EventReason* 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 ------------------------------------------------------- - - // string reason = 1; - void clear_reason(); - static const int kReasonFieldNumber = 1; - const ::std::string& reason() const; - void set_reason(const ::std::string& value); - #if LANG_CXX11 - void set_reason(::std::string&& value); - #endif - void set_reason(const char* value); - void set_reason(const char* value, size_t size); - ::std::string* mutable_reason(); - ::std::string* release_reason(); - void set_allocated_reason(::std::string* reason); - - // .google.protobuf.Timestamp occurred_at = 2; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 2; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // @@protoc_insertion_point(class_scope:flyteidl.event.EventReason) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::Timestamp* occurred_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionEvent final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskExecutionEvent) */ { - public: - TaskExecutionEvent(); - virtual ~TaskExecutionEvent(); - - TaskExecutionEvent(const TaskExecutionEvent& from); - - inline TaskExecutionEvent& operator=(const TaskExecutionEvent& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionEvent(TaskExecutionEvent&& from) noexcept - : TaskExecutionEvent() { - *this = ::std::move(from); - } - - inline TaskExecutionEvent& operator=(TaskExecutionEvent&& 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 TaskExecutionEvent& default_instance(); - - enum InputValueCase { - kInputUri = 8, - kInputData = 19, - INPUT_VALUE_NOT_SET = 0, - }; - - enum OutputResultCase { - kOutputUri = 9, - kError = 10, - kOutputData = 17, - OUTPUT_RESULT_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionEvent* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionEvent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TaskExecutionEvent* other); - friend void swap(TaskExecutionEvent& a, TaskExecutionEvent& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionEvent* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionEvent* 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 TaskExecutionEvent& from); - void MergeFrom(const TaskExecutionEvent& 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(TaskExecutionEvent* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskLog logs = 6; - int logs_size() const; - void clear_logs(); - static const int kLogsFieldNumber = 6; - ::flyteidl::core::TaskLog* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* - mutable_logs(); - const ::flyteidl::core::TaskLog& logs(int index) const; - ::flyteidl::core::TaskLog* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& - logs() const; - - // repeated .flyteidl.event.EventReason reasons = 21; - int reasons_size() const; - void clear_reasons(); - static const int kReasonsFieldNumber = 21; - ::flyteidl::event::EventReason* mutable_reasons(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::EventReason >* - mutable_reasons(); - const ::flyteidl::event::EventReason& reasons(int index) const; - ::flyteidl::event::EventReason* add_reasons(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::EventReason >& - reasons() const; - - // string producer_id = 5; - void clear_producer_id(); - static const int kProducerIdFieldNumber = 5; - const ::std::string& producer_id() const; - void set_producer_id(const ::std::string& value); - #if LANG_CXX11 - void set_producer_id(::std::string&& value); - #endif - void set_producer_id(const char* value); - void set_producer_id(const char* value, size_t size); - ::std::string* mutable_producer_id(); - ::std::string* release_producer_id(); - void set_allocated_producer_id(::std::string* producer_id); - - // string reason = 13 [deprecated = true]; - PROTOBUF_DEPRECATED void clear_reason(); - PROTOBUF_DEPRECATED static const int kReasonFieldNumber = 13; - PROTOBUF_DEPRECATED const ::std::string& reason() const; - PROTOBUF_DEPRECATED void set_reason(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_reason(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_reason(const char* value); - PROTOBUF_DEPRECATED void set_reason(const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* mutable_reason(); - PROTOBUF_DEPRECATED ::std::string* release_reason(); - PROTOBUF_DEPRECATED void set_allocated_reason(::std::string* reason); - - // string task_type = 14; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 14; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // .flyteidl.core.Identifier task_id = 1; - bool has_task_id() const; - void clear_task_id(); - static const int kTaskIdFieldNumber = 1; - const ::flyteidl::core::Identifier& task_id() const; - ::flyteidl::core::Identifier* release_task_id(); - ::flyteidl::core::Identifier* mutable_task_id(); - void set_allocated_task_id(::flyteidl::core::Identifier* task_id); - - // .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - bool has_parent_node_execution_id() const; - void clear_parent_node_execution_id(); - static const int kParentNodeExecutionIdFieldNumber = 2; - const ::flyteidl::core::NodeExecutionIdentifier& parent_node_execution_id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_parent_node_execution_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_parent_node_execution_id(); - void set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id); - - // .google.protobuf.Timestamp occurred_at = 7; - bool has_occurred_at() const; - void clear_occurred_at(); - static const int kOccurredAtFieldNumber = 7; - const ::google::protobuf::Timestamp& occurred_at() const; - ::google::protobuf::Timestamp* release_occurred_at(); - ::google::protobuf::Timestamp* mutable_occurred_at(); - void set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at); - - // .google.protobuf.Struct custom_info = 11; - bool has_custom_info() const; - void clear_custom_info(); - static const int kCustomInfoFieldNumber = 11; - const ::google::protobuf::Struct& custom_info() const; - ::google::protobuf::Struct* release_custom_info(); - ::google::protobuf::Struct* mutable_custom_info(); - void set_allocated_custom_info(::google::protobuf::Struct* custom_info); - - // .flyteidl.event.TaskExecutionMetadata metadata = 16; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 16; - const ::flyteidl::event::TaskExecutionMetadata& metadata() const; - ::flyteidl::event::TaskExecutionMetadata* release_metadata(); - ::flyteidl::event::TaskExecutionMetadata* mutable_metadata(); - void set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata); - - // .google.protobuf.Timestamp reported_at = 20; - bool has_reported_at() const; - void clear_reported_at(); - static const int kReportedAtFieldNumber = 20; - const ::google::protobuf::Timestamp& reported_at() const; - ::google::protobuf::Timestamp* release_reported_at(); - ::google::protobuf::Timestamp* mutable_reported_at(); - void set_allocated_reported_at(::google::protobuf::Timestamp* reported_at); - - // uint32 retry_attempt = 3; - void clear_retry_attempt(); - static const int kRetryAttemptFieldNumber = 3; - ::google::protobuf::uint32 retry_attempt() const; - void set_retry_attempt(::google::protobuf::uint32 value); - - // .flyteidl.core.TaskExecution.Phase phase = 4; - void clear_phase(); - static const int kPhaseFieldNumber = 4; - ::flyteidl::core::TaskExecution_Phase phase() const; - void set_phase(::flyteidl::core::TaskExecution_Phase value); - - // uint32 phase_version = 12; - void clear_phase_version(); - static const int kPhaseVersionFieldNumber = 12; - ::google::protobuf::uint32 phase_version() const; - void set_phase_version(::google::protobuf::uint32 value); - - // int32 event_version = 18; - void clear_event_version(); - static const int kEventVersionFieldNumber = 18; - ::google::protobuf::int32 event_version() const; - void set_event_version(::google::protobuf::int32 value); - - // string input_uri = 8; - private: - bool has_input_uri() const; - public: - void clear_input_uri(); - static const int kInputUriFieldNumber = 8; - const ::std::string& input_uri() const; - void set_input_uri(const ::std::string& value); - #if LANG_CXX11 - void set_input_uri(::std::string&& value); - #endif - void set_input_uri(const char* value); - void set_input_uri(const char* value, size_t size); - ::std::string* mutable_input_uri(); - ::std::string* release_input_uri(); - void set_allocated_input_uri(::std::string* input_uri); - - // .flyteidl.core.LiteralMap input_data = 19; - bool has_input_data() const; - void clear_input_data(); - static const int kInputDataFieldNumber = 19; - const ::flyteidl::core::LiteralMap& input_data() const; - ::flyteidl::core::LiteralMap* release_input_data(); - ::flyteidl::core::LiteralMap* mutable_input_data(); - void set_allocated_input_data(::flyteidl::core::LiteralMap* input_data); - - // string output_uri = 9; - private: - bool has_output_uri() const; - public: - void clear_output_uri(); - static const int kOutputUriFieldNumber = 9; - const ::std::string& output_uri() const; - void set_output_uri(const ::std::string& value); - #if LANG_CXX11 - void set_output_uri(::std::string&& value); - #endif - void set_output_uri(const char* value); - void set_output_uri(const char* value, size_t size); - ::std::string* mutable_output_uri(); - ::std::string* release_output_uri(); - void set_allocated_output_uri(::std::string* output_uri); - - // .flyteidl.core.ExecutionError error = 10; - bool has_error() const; - void clear_error(); - static const int kErrorFieldNumber = 10; - const ::flyteidl::core::ExecutionError& error() const; - ::flyteidl::core::ExecutionError* release_error(); - ::flyteidl::core::ExecutionError* mutable_error(); - void set_allocated_error(::flyteidl::core::ExecutionError* error); - - // .flyteidl.core.LiteralMap output_data = 17; - bool has_output_data() const; - void clear_output_data(); - static const int kOutputDataFieldNumber = 17; - const ::flyteidl::core::LiteralMap& output_data() const; - ::flyteidl::core::LiteralMap* release_output_data(); - ::flyteidl::core::LiteralMap* mutable_output_data(); - void set_allocated_output_data(::flyteidl::core::LiteralMap* output_data); - - void clear_input_value(); - InputValueCase input_value_case() const; - void clear_output_result(); - OutputResultCase output_result_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) - private: - class HasBitSetters; - void set_has_input_uri(); - void set_has_input_data(); - void set_has_output_uri(); - void set_has_error(); - void set_has_output_data(); - - inline bool has_input_value() const; - inline void clear_has_input_value(); - - inline bool has_output_result() const; - inline void clear_has_output_result(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::EventReason > reasons_; - ::google::protobuf::internal::ArenaStringPtr producer_id_; - ::google::protobuf::internal::ArenaStringPtr reason_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::flyteidl::core::Identifier* task_id_; - ::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id_; - ::google::protobuf::Timestamp* occurred_at_; - ::google::protobuf::Struct* custom_info_; - ::flyteidl::event::TaskExecutionMetadata* metadata_; - ::google::protobuf::Timestamp* reported_at_; - ::google::protobuf::uint32 retry_attempt_; - int phase_; - ::google::protobuf::uint32 phase_version_; - ::google::protobuf::int32 event_version_; - union InputValueUnion { - InputValueUnion() {} - ::google::protobuf::internal::ArenaStringPtr input_uri_; - ::flyteidl::core::LiteralMap* input_data_; - } input_value_; - union OutputResultUnion { - OutputResultUnion() {} - ::google::protobuf::internal::ArenaStringPtr output_uri_; - ::flyteidl::core::ExecutionError* error_; - ::flyteidl::core::LiteralMap* output_data_; - } output_result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[2]; - - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class ExternalResourceInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ExternalResourceInfo) */ { - public: - ExternalResourceInfo(); - virtual ~ExternalResourceInfo(); - - ExternalResourceInfo(const ExternalResourceInfo& from); - - inline ExternalResourceInfo& operator=(const ExternalResourceInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExternalResourceInfo(ExternalResourceInfo&& from) noexcept - : ExternalResourceInfo() { - *this = ::std::move(from); - } - - inline ExternalResourceInfo& operator=(ExternalResourceInfo&& 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 ExternalResourceInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExternalResourceInfo* internal_default_instance() { - return reinterpret_cast( - &_ExternalResourceInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(ExternalResourceInfo* other); - friend void swap(ExternalResourceInfo& a, ExternalResourceInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExternalResourceInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - ExternalResourceInfo* 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 ExternalResourceInfo& from); - void MergeFrom(const ExternalResourceInfo& 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(ExternalResourceInfo* 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 ------------------------------------------------------- - - // repeated .flyteidl.core.TaskLog logs = 6; - int logs_size() const; - void clear_logs(); - static const int kLogsFieldNumber = 6; - ::flyteidl::core::TaskLog* mutable_logs(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* - mutable_logs(); - const ::flyteidl::core::TaskLog& logs(int index) const; - ::flyteidl::core::TaskLog* add_logs(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& - logs() const; - - // string external_id = 1; - void clear_external_id(); - static const int kExternalIdFieldNumber = 1; - const ::std::string& external_id() const; - void set_external_id(const ::std::string& value); - #if LANG_CXX11 - void set_external_id(::std::string&& value); - #endif - void set_external_id(const char* value); - void set_external_id(const char* value, size_t size); - ::std::string* mutable_external_id(); - ::std::string* release_external_id(); - void set_allocated_external_id(::std::string* external_id); - - // uint32 index = 2; - void clear_index(); - static const int kIndexFieldNumber = 2; - ::google::protobuf::uint32 index() const; - void set_index(::google::protobuf::uint32 value); - - // uint32 retry_attempt = 3; - void clear_retry_attempt(); - static const int kRetryAttemptFieldNumber = 3; - ::google::protobuf::uint32 retry_attempt() const; - void set_retry_attempt(::google::protobuf::uint32 value); - - // .flyteidl.core.TaskExecution.Phase phase = 4; - void clear_phase(); - static const int kPhaseFieldNumber = 4; - ::flyteidl::core::TaskExecution_Phase phase() const; - void set_phase(::flyteidl::core::TaskExecution_Phase value); - - // .flyteidl.core.CatalogCacheStatus cache_status = 5; - void clear_cache_status(); - static const int kCacheStatusFieldNumber = 5; - ::flyteidl::core::CatalogCacheStatus cache_status() const; - void set_cache_status(::flyteidl::core::CatalogCacheStatus value); - - // @@protoc_insertion_point(class_scope:flyteidl.event.ExternalResourceInfo) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog > logs_; - ::google::protobuf::internal::ArenaStringPtr external_id_; - ::google::protobuf::uint32 index_; - ::google::protobuf::uint32 retry_attempt_; - int phase_; - int cache_status_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class ResourcePoolInfo final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.ResourcePoolInfo) */ { - public: - ResourcePoolInfo(); - virtual ~ResourcePoolInfo(); - - ResourcePoolInfo(const ResourcePoolInfo& from); - - inline ResourcePoolInfo& operator=(const ResourcePoolInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResourcePoolInfo(ResourcePoolInfo&& from) noexcept - : ResourcePoolInfo() { - *this = ::std::move(from); - } - - inline ResourcePoolInfo& operator=(ResourcePoolInfo&& 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 ResourcePoolInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResourcePoolInfo* internal_default_instance() { - return reinterpret_cast( - &_ResourcePoolInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(ResourcePoolInfo* other); - friend void swap(ResourcePoolInfo& a, ResourcePoolInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResourcePoolInfo* New() const final { - return CreateMaybeMessage(nullptr); - } - - ResourcePoolInfo* 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 ResourcePoolInfo& from); - void MergeFrom(const ResourcePoolInfo& 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(ResourcePoolInfo* 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 ------------------------------------------------------- - - // string allocation_token = 1; - void clear_allocation_token(); - static const int kAllocationTokenFieldNumber = 1; - const ::std::string& allocation_token() const; - void set_allocation_token(const ::std::string& value); - #if LANG_CXX11 - void set_allocation_token(::std::string&& value); - #endif - void set_allocation_token(const char* value); - void set_allocation_token(const char* value, size_t size); - ::std::string* mutable_allocation_token(); - ::std::string* release_allocation_token(); - void set_allocated_allocation_token(::std::string* allocation_token); - - // string namespace = 2; - void clear_namespace_(); - static const int kNamespaceFieldNumber = 2; - const ::std::string& namespace_() const; - void set_namespace_(const ::std::string& value); - #if LANG_CXX11 - void set_namespace_(::std::string&& value); - #endif - void set_namespace_(const char* value); - void set_namespace_(const char* value, size_t size); - ::std::string* mutable_namespace_(); - ::std::string* release_namespace_(); - void set_allocated_namespace_(::std::string* namespace_); - - // @@protoc_insertion_point(class_scope:flyteidl.event.ResourcePoolInfo) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr allocation_token_; - ::google::protobuf::internal::ArenaStringPtr namespace__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskExecutionMetadata final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.event.TaskExecutionMetadata) */ { - public: - TaskExecutionMetadata(); - virtual ~TaskExecutionMetadata(); - - TaskExecutionMetadata(const TaskExecutionMetadata& from); - - inline TaskExecutionMetadata& operator=(const TaskExecutionMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskExecutionMetadata(TaskExecutionMetadata&& from) noexcept - : TaskExecutionMetadata() { - *this = ::std::move(from); - } - - inline TaskExecutionMetadata& operator=(TaskExecutionMetadata&& 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 TaskExecutionMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskExecutionMetadata* internal_default_instance() { - return reinterpret_cast( - &_TaskExecutionMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(TaskExecutionMetadata* other); - friend void swap(TaskExecutionMetadata& a, TaskExecutionMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskExecutionMetadata* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskExecutionMetadata* 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 TaskExecutionMetadata& from); - void MergeFrom(const TaskExecutionMetadata& 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(TaskExecutionMetadata* 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 ---------------------------------------------------- - - typedef TaskExecutionMetadata_InstanceClass InstanceClass; - static const InstanceClass DEFAULT = - TaskExecutionMetadata_InstanceClass_DEFAULT; - static const InstanceClass INTERRUPTIBLE = - TaskExecutionMetadata_InstanceClass_INTERRUPTIBLE; - static inline bool InstanceClass_IsValid(int value) { - return TaskExecutionMetadata_InstanceClass_IsValid(value); - } - static const InstanceClass InstanceClass_MIN = - TaskExecutionMetadata_InstanceClass_InstanceClass_MIN; - static const InstanceClass InstanceClass_MAX = - TaskExecutionMetadata_InstanceClass_InstanceClass_MAX; - static const int InstanceClass_ARRAYSIZE = - TaskExecutionMetadata_InstanceClass_InstanceClass_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - InstanceClass_descriptor() { - return TaskExecutionMetadata_InstanceClass_descriptor(); - } - static inline const ::std::string& InstanceClass_Name(InstanceClass value) { - return TaskExecutionMetadata_InstanceClass_Name(value); - } - static inline bool InstanceClass_Parse(const ::std::string& name, - InstanceClass* value) { - return TaskExecutionMetadata_InstanceClass_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - int external_resources_size() const; - void clear_external_resources(); - static const int kExternalResourcesFieldNumber = 2; - ::flyteidl::event::ExternalResourceInfo* mutable_external_resources(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >* - mutable_external_resources(); - const ::flyteidl::event::ExternalResourceInfo& external_resources(int index) const; - ::flyteidl::event::ExternalResourceInfo* add_external_resources(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >& - external_resources() const; - - // repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - int resource_pool_info_size() const; - void clear_resource_pool_info(); - static const int kResourcePoolInfoFieldNumber = 3; - ::flyteidl::event::ResourcePoolInfo* mutable_resource_pool_info(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >* - mutable_resource_pool_info(); - const ::flyteidl::event::ResourcePoolInfo& resource_pool_info(int index) const; - ::flyteidl::event::ResourcePoolInfo* add_resource_pool_info(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >& - resource_pool_info() const; - - // string generated_name = 1; - void clear_generated_name(); - static const int kGeneratedNameFieldNumber = 1; - const ::std::string& generated_name() const; - void set_generated_name(const ::std::string& value); - #if LANG_CXX11 - void set_generated_name(::std::string&& value); - #endif - void set_generated_name(const char* value); - void set_generated_name(const char* value, size_t size); - ::std::string* mutable_generated_name(); - ::std::string* release_generated_name(); - void set_allocated_generated_name(::std::string* generated_name); - - // string plugin_identifier = 4; - void clear_plugin_identifier(); - static const int kPluginIdentifierFieldNumber = 4; - const ::std::string& plugin_identifier() const; - void set_plugin_identifier(const ::std::string& value); - #if LANG_CXX11 - void set_plugin_identifier(::std::string&& value); - #endif - void set_plugin_identifier(const char* value); - void set_plugin_identifier(const char* value, size_t size); - ::std::string* mutable_plugin_identifier(); - ::std::string* release_plugin_identifier(); - void set_allocated_plugin_identifier(::std::string* plugin_identifier); - - // .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - void clear_instance_class(); - static const int kInstanceClassFieldNumber = 16; - ::flyteidl::event::TaskExecutionMetadata_InstanceClass instance_class() const; - void set_instance_class(::flyteidl::event::TaskExecutionMetadata_InstanceClass value); - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionMetadata) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo > external_resources_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo > resource_pool_info_; - ::google::protobuf::internal::ArenaStringPtr generated_name_; - ::google::protobuf::internal::ArenaStringPtr plugin_identifier_; - int instance_class_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fevent_2fevent_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// WorkflowExecutionEvent - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; -inline bool WorkflowExecutionEvent::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowExecutionEvent::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowExecutionEvent::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.execution_id) - return execution_id_; -} -inline void WorkflowExecutionEvent::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.execution_id) -} - -// string producer_id = 2; -inline void WorkflowExecutionEvent::clear_producer_id() { - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkflowExecutionEvent::producer_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.producer_id) - return producer_id_.GetNoArena(); -} -inline void WorkflowExecutionEvent::set_producer_id(const ::std::string& value) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.producer_id) -} -#if LANG_CXX11 -inline void WorkflowExecutionEvent::set_producer_id(::std::string&& value) { - - producer_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.producer_id) -} -#endif -inline void WorkflowExecutionEvent::set_producer_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.producer_id) -} -inline void WorkflowExecutionEvent::set_producer_id(const char* value, size_t size) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.producer_id) -} -inline ::std::string* WorkflowExecutionEvent::mutable_producer_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.producer_id) - return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionEvent::release_producer_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.producer_id) - - return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkflowExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { - if (producer_id != nullptr) { - - } else { - - } - producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.producer_id) -} - -// .flyteidl.core.WorkflowExecution.Phase phase = 3; -inline void WorkflowExecutionEvent::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::WorkflowExecution_Phase WorkflowExecutionEvent::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.phase) - return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); -} -inline void WorkflowExecutionEvent::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.phase) -} - -// .google.protobuf.Timestamp occurred_at = 4; -inline bool WorkflowExecutionEvent::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& WorkflowExecutionEvent::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* WorkflowExecutionEvent::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.occurred_at) - return occurred_at_; -} -inline void WorkflowExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.occurred_at) -} - -// string output_uri = 5; -inline bool WorkflowExecutionEvent::has_output_uri() const { - return output_result_case() == kOutputUri; -} -inline void WorkflowExecutionEvent::set_has_output_uri() { - _oneof_case_[0] = kOutputUri; -} -inline void WorkflowExecutionEvent::clear_output_uri() { - if (has_output_uri()) { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& WorkflowExecutionEvent::output_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.output_uri) - if (has_output_uri()) { - return output_result_.output_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void WorkflowExecutionEvent::set_output_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) -} -#if LANG_CXX11 -inline void WorkflowExecutionEvent::set_output_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.WorkflowExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.WorkflowExecutionEvent.output_uri) -} -#endif -inline void WorkflowExecutionEvent::set_output_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.WorkflowExecutionEvent.output_uri) -} -inline void WorkflowExecutionEvent::set_output_uri(const char* value, size_t size) { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.WorkflowExecutionEvent.output_uri) -} -inline ::std::string* WorkflowExecutionEvent::mutable_output_uri() { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.output_uri) - return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkflowExecutionEvent::release_output_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.output_uri) - if (has_output_uri()) { - clear_has_output_result(); - return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void WorkflowExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { - if (has_output_result()) { - clear_output_result(); - } - if (output_uri != nullptr) { - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(output_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowExecutionEvent.output_uri) -} - -// .flyteidl.core.ExecutionError error = 6; -inline bool WorkflowExecutionEvent::has_error() const { - return output_result_case() == kError; -} -inline void WorkflowExecutionEvent::set_has_error() { - _oneof_case_[0] = kError; -} -inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& WorkflowExecutionEvent::error() const { - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* WorkflowExecutionEvent::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.error) - return output_result_.error_; -} - -// .flyteidl.core.LiteralMap output_data = 7; -inline bool WorkflowExecutionEvent::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void WorkflowExecutionEvent::set_has_output_data() { - _oneof_case_[0] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionEvent::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowExecutionEvent.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& WorkflowExecutionEvent::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowExecutionEvent.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* WorkflowExecutionEvent::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowExecutionEvent.output_data) - return output_result_.output_data_; -} - -inline bool WorkflowExecutionEvent::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void WorkflowExecutionEvent::clear_has_output_result() { - _oneof_case_[0] = OUTPUT_RESULT_NOT_SET; -} -inline WorkflowExecutionEvent::OutputResultCase WorkflowExecutionEvent::output_result_case() const { - return WorkflowExecutionEvent::OutputResultCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// NodeExecutionEvent - -// .flyteidl.core.NodeExecutionIdentifier id = 1; -inline bool NodeExecutionEvent::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& NodeExecutionEvent::id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* NodeExecutionEvent::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.id) - return id_; -} -inline void NodeExecutionEvent::set_allocated_id(::flyteidl::core::NodeExecutionIdentifier* 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.event.NodeExecutionEvent.id) -} - -// string producer_id = 2; -inline void NodeExecutionEvent::clear_producer_id() { - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEvent::producer_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.producer_id) - return producer_id_.GetNoArena(); -} -inline void NodeExecutionEvent::set_producer_id(const ::std::string& value) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.producer_id) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_producer_id(::std::string&& value) { - - producer_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.producer_id) -} -#endif -inline void NodeExecutionEvent::set_producer_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.producer_id) -} -inline void NodeExecutionEvent::set_producer_id(const char* value, size_t size) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.producer_id) -} -inline ::std::string* NodeExecutionEvent::mutable_producer_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.producer_id) - return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_producer_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.producer_id) - - return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { - if (producer_id != nullptr) { - - } else { - - } - producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.producer_id) -} - -// .flyteidl.core.NodeExecution.Phase phase = 3; -inline void NodeExecutionEvent::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::NodeExecution_Phase NodeExecutionEvent::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.phase) - return static_cast< ::flyteidl::core::NodeExecution_Phase >(phase_); -} -inline void NodeExecutionEvent::set_phase(::flyteidl::core::NodeExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.phase) -} - -// .google.protobuf.Timestamp occurred_at = 4; -inline bool NodeExecutionEvent::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& NodeExecutionEvent::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* NodeExecutionEvent::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* NodeExecutionEvent::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.occurred_at) - return occurred_at_; -} -inline void NodeExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.occurred_at) -} - -// string input_uri = 5; -inline bool NodeExecutionEvent::has_input_uri() const { - return input_value_case() == kInputUri; -} -inline void NodeExecutionEvent::set_has_input_uri() { - _oneof_case_[0] = kInputUri; -} -inline void NodeExecutionEvent::clear_input_uri() { - if (has_input_uri()) { - input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_input_value(); - } -} -inline const ::std::string& NodeExecutionEvent::input_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.input_uri) - if (has_input_uri()) { - return input_value_.input_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void NodeExecutionEvent::set_input_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_input_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.input_uri) - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.input_uri) -} -#endif -inline void NodeExecutionEvent::set_input_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.input_uri) -} -inline void NodeExecutionEvent::set_input_uri(const char* value, size_t size) { - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.input_uri) -} -inline ::std::string* NodeExecutionEvent::mutable_input_uri() { - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.input_uri) - return input_value_.input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_input_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.input_uri) - if (has_input_uri()) { - clear_has_input_value(); - return input_value_.input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void NodeExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { - if (has_input_value()) { - clear_input_value(); - } - if (input_uri != nullptr) { - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(input_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.input_uri) -} - -// .flyteidl.core.LiteralMap input_data = 20; -inline bool NodeExecutionEvent::has_input_data() const { - return input_value_case() == kInputData; -} -inline void NodeExecutionEvent::set_has_input_data() { - _oneof_case_[0] = kInputData; -} -inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::release_input_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.input_data) - if (has_input_data()) { - clear_has_input_value(); - ::flyteidl::core::LiteralMap* temp = input_value_.input_data_; - input_value_.input_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& NodeExecutionEvent::input_data() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.input_data) - return has_input_data() - ? *input_value_.input_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::mutable_input_data() { - if (!has_input_data()) { - clear_input_value(); - set_has_input_data(); - input_value_.input_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.input_data) - return input_value_.input_data_; -} - -// string output_uri = 6; -inline bool NodeExecutionEvent::has_output_uri() const { - return output_result_case() == kOutputUri; -} -inline void NodeExecutionEvent::set_has_output_uri() { - _oneof_case_[1] = kOutputUri; -} -inline void NodeExecutionEvent::clear_output_uri() { - if (has_output_uri()) { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& NodeExecutionEvent::output_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.output_uri) - if (has_output_uri()) { - return output_result_.output_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void NodeExecutionEvent::set_output_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_output_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.output_uri) -} -#endif -inline void NodeExecutionEvent::set_output_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.output_uri) -} -inline void NodeExecutionEvent::set_output_uri(const char* value, size_t size) { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.output_uri) -} -inline ::std::string* NodeExecutionEvent::mutable_output_uri() { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.output_uri) - return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_output_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.output_uri) - if (has_output_uri()) { - clear_has_output_result(); - return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void NodeExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { - if (has_output_result()) { - clear_output_result(); - } - if (output_uri != nullptr) { - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(output_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.output_uri) -} - -// .flyteidl.core.ExecutionError error = 7; -inline bool NodeExecutionEvent::has_error() const { - return output_result_case() == kError; -} -inline void NodeExecutionEvent::set_has_error() { - _oneof_case_[1] = kError; -} -inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& NodeExecutionEvent::error() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* NodeExecutionEvent::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.error) - return output_result_.error_; -} - -// .flyteidl.core.LiteralMap output_data = 15; -inline bool NodeExecutionEvent::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void NodeExecutionEvent::set_has_output_data() { - _oneof_case_[1] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& NodeExecutionEvent::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* NodeExecutionEvent::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.output_data) - return output_result_.output_data_; -} - -// .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; -inline bool NodeExecutionEvent::has_workflow_node_metadata() const { - return target_metadata_case() == kWorkflowNodeMetadata; -} -inline void NodeExecutionEvent::set_has_workflow_node_metadata() { - _oneof_case_[2] = kWorkflowNodeMetadata; -} -inline void NodeExecutionEvent::clear_workflow_node_metadata() { - if (has_workflow_node_metadata()) { - delete target_metadata_.workflow_node_metadata_; - clear_has_target_metadata(); - } -} -inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::release_workflow_node_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) - if (has_workflow_node_metadata()) { - clear_has_target_metadata(); - ::flyteidl::event::WorkflowNodeMetadata* temp = target_metadata_.workflow_node_metadata_; - target_metadata_.workflow_node_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::event::WorkflowNodeMetadata& NodeExecutionEvent::workflow_node_metadata() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) - return has_workflow_node_metadata() - ? *target_metadata_.workflow_node_metadata_ - : *reinterpret_cast< ::flyteidl::event::WorkflowNodeMetadata*>(&::flyteidl::event::_WorkflowNodeMetadata_default_instance_); -} -inline ::flyteidl::event::WorkflowNodeMetadata* NodeExecutionEvent::mutable_workflow_node_metadata() { - if (!has_workflow_node_metadata()) { - clear_target_metadata(); - set_has_workflow_node_metadata(); - target_metadata_.workflow_node_metadata_ = CreateMaybeMessage< ::flyteidl::event::WorkflowNodeMetadata >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.workflow_node_metadata) - return target_metadata_.workflow_node_metadata_; -} - -// .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; -inline bool NodeExecutionEvent::has_task_node_metadata() const { - return target_metadata_case() == kTaskNodeMetadata; -} -inline void NodeExecutionEvent::set_has_task_node_metadata() { - _oneof_case_[2] = kTaskNodeMetadata; -} -inline void NodeExecutionEvent::clear_task_node_metadata() { - if (has_task_node_metadata()) { - delete target_metadata_.task_node_metadata_; - clear_has_target_metadata(); - } -} -inline ::flyteidl::event::TaskNodeMetadata* NodeExecutionEvent::release_task_node_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.task_node_metadata) - if (has_task_node_metadata()) { - clear_has_target_metadata(); - ::flyteidl::event::TaskNodeMetadata* temp = target_metadata_.task_node_metadata_; - target_metadata_.task_node_metadata_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::event::TaskNodeMetadata& NodeExecutionEvent::task_node_metadata() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.task_node_metadata) - return has_task_node_metadata() - ? *target_metadata_.task_node_metadata_ - : *reinterpret_cast< ::flyteidl::event::TaskNodeMetadata*>(&::flyteidl::event::_TaskNodeMetadata_default_instance_); -} -inline ::flyteidl::event::TaskNodeMetadata* NodeExecutionEvent::mutable_task_node_metadata() { - if (!has_task_node_metadata()) { - clear_target_metadata(); - set_has_task_node_metadata(); - target_metadata_.task_node_metadata_ = CreateMaybeMessage< ::flyteidl::event::TaskNodeMetadata >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.task_node_metadata) - return target_metadata_.task_node_metadata_; -} - -// .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; -inline bool NodeExecutionEvent::has_parent_task_metadata() const { - return this != internal_default_instance() && parent_task_metadata_ != nullptr; -} -inline void NodeExecutionEvent::clear_parent_task_metadata() { - if (GetArenaNoVirtual() == nullptr && parent_task_metadata_ != nullptr) { - delete parent_task_metadata_; - } - parent_task_metadata_ = nullptr; -} -inline const ::flyteidl::event::ParentTaskExecutionMetadata& NodeExecutionEvent::parent_task_metadata() const { - const ::flyteidl::event::ParentTaskExecutionMetadata* p = parent_task_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.parent_task_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_ParentTaskExecutionMetadata_default_instance_); -} -inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::release_parent_task_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.parent_task_metadata) - - ::flyteidl::event::ParentTaskExecutionMetadata* temp = parent_task_metadata_; - parent_task_metadata_ = nullptr; - return temp; -} -inline ::flyteidl::event::ParentTaskExecutionMetadata* NodeExecutionEvent::mutable_parent_task_metadata() { - - if (parent_task_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::ParentTaskExecutionMetadata>(GetArenaNoVirtual()); - parent_task_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.parent_task_metadata) - return parent_task_metadata_; -} -inline void NodeExecutionEvent::set_allocated_parent_task_metadata(::flyteidl::event::ParentTaskExecutionMetadata* parent_task_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete parent_task_metadata_; - } - if (parent_task_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parent_task_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parent_task_metadata, submessage_arena); - } - - } else { - - } - parent_task_metadata_ = parent_task_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.parent_task_metadata) -} - -// .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; -inline bool NodeExecutionEvent::has_parent_node_metadata() const { - return this != internal_default_instance() && parent_node_metadata_ != nullptr; -} -inline void NodeExecutionEvent::clear_parent_node_metadata() { - if (GetArenaNoVirtual() == nullptr && parent_node_metadata_ != nullptr) { - delete parent_node_metadata_; - } - parent_node_metadata_ = nullptr; -} -inline const ::flyteidl::event::ParentNodeExecutionMetadata& NodeExecutionEvent::parent_node_metadata() const { - const ::flyteidl::event::ParentNodeExecutionMetadata* p = parent_node_metadata_; - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.parent_node_metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_ParentNodeExecutionMetadata_default_instance_); -} -inline ::flyteidl::event::ParentNodeExecutionMetadata* NodeExecutionEvent::release_parent_node_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.parent_node_metadata) - - ::flyteidl::event::ParentNodeExecutionMetadata* temp = parent_node_metadata_; - parent_node_metadata_ = nullptr; - return temp; -} -inline ::flyteidl::event::ParentNodeExecutionMetadata* NodeExecutionEvent::mutable_parent_node_metadata() { - - if (parent_node_metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::ParentNodeExecutionMetadata>(GetArenaNoVirtual()); - parent_node_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.parent_node_metadata) - return parent_node_metadata_; -} -inline void NodeExecutionEvent::set_allocated_parent_node_metadata(::flyteidl::event::ParentNodeExecutionMetadata* parent_node_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete parent_node_metadata_; - } - if (parent_node_metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parent_node_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parent_node_metadata, submessage_arena); - } - - } else { - - } - parent_node_metadata_ = parent_node_metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.parent_node_metadata) -} - -// string retry_group = 11; -inline void NodeExecutionEvent::clear_retry_group() { - retry_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEvent::retry_group() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.retry_group) - return retry_group_.GetNoArena(); -} -inline void NodeExecutionEvent::set_retry_group(const ::std::string& value) { - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.retry_group) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_retry_group(::std::string&& value) { - - retry_group_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.retry_group) -} -#endif -inline void NodeExecutionEvent::set_retry_group(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.retry_group) -} -inline void NodeExecutionEvent::set_retry_group(const char* value, size_t size) { - - retry_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.retry_group) -} -inline ::std::string* NodeExecutionEvent::mutable_retry_group() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.retry_group) - return retry_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_retry_group() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.retry_group) - - return retry_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEvent::set_allocated_retry_group(::std::string* retry_group) { - if (retry_group != nullptr) { - - } else { - - } - retry_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), retry_group); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.retry_group) -} - -// string spec_node_id = 12; -inline void NodeExecutionEvent::clear_spec_node_id() { - spec_node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEvent::spec_node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.spec_node_id) - return spec_node_id_.GetNoArena(); -} -inline void NodeExecutionEvent::set_spec_node_id(const ::std::string& value) { - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.spec_node_id) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_spec_node_id(::std::string&& value) { - - spec_node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.spec_node_id) -} -#endif -inline void NodeExecutionEvent::set_spec_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.spec_node_id) -} -inline void NodeExecutionEvent::set_spec_node_id(const char* value, size_t size) { - - spec_node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.spec_node_id) -} -inline ::std::string* NodeExecutionEvent::mutable_spec_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.spec_node_id) - return spec_node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_spec_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.spec_node_id) - - return spec_node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEvent::set_allocated_spec_node_id(::std::string* spec_node_id) { - if (spec_node_id != nullptr) { - - } else { - - } - spec_node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec_node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.spec_node_id) -} - -// string node_name = 13; -inline void NodeExecutionEvent::clear_node_name() { - node_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEvent::node_name() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.node_name) - return node_name_.GetNoArena(); -} -inline void NodeExecutionEvent::set_node_name(const ::std::string& value) { - - node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.node_name) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_node_name(::std::string&& value) { - - node_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.node_name) -} -#endif -inline void NodeExecutionEvent::set_node_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.node_name) -} -inline void NodeExecutionEvent::set_node_name(const char* value, size_t size) { - - node_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.node_name) -} -inline ::std::string* NodeExecutionEvent::mutable_node_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.node_name) - return node_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_node_name() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.node_name) - - return node_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEvent::set_allocated_node_name(::std::string* node_name) { - if (node_name != nullptr) { - - } else { - - } - node_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.node_name) -} - -// int32 event_version = 16; -inline void NodeExecutionEvent::clear_event_version() { - event_version_ = 0; -} -inline ::google::protobuf::int32 NodeExecutionEvent::event_version() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.event_version) - return event_version_; -} -inline void NodeExecutionEvent::set_event_version(::google::protobuf::int32 value) { - - event_version_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.event_version) -} - -// bool is_parent = 17; -inline void NodeExecutionEvent::clear_is_parent() { - is_parent_ = false; -} -inline bool NodeExecutionEvent::is_parent() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.is_parent) - return is_parent_; -} -inline void NodeExecutionEvent::set_is_parent(bool value) { - - is_parent_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.is_parent) -} - -// bool is_dynamic = 18; -inline void NodeExecutionEvent::clear_is_dynamic() { - is_dynamic_ = false; -} -inline bool NodeExecutionEvent::is_dynamic() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.is_dynamic) - return is_dynamic_; -} -inline void NodeExecutionEvent::set_is_dynamic(bool value) { - - is_dynamic_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.is_dynamic) -} - -// string deck_uri = 19; -inline void NodeExecutionEvent::clear_deck_uri() { - deck_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& NodeExecutionEvent::deck_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.deck_uri) - return deck_uri_.GetNoArena(); -} -inline void NodeExecutionEvent::set_deck_uri(const ::std::string& value) { - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.deck_uri) -} -#if LANG_CXX11 -inline void NodeExecutionEvent::set_deck_uri(::std::string&& value) { - - deck_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.NodeExecutionEvent.deck_uri) -} -#endif -inline void NodeExecutionEvent::set_deck_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.NodeExecutionEvent.deck_uri) -} -inline void NodeExecutionEvent::set_deck_uri(const char* value, size_t size) { - - deck_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.NodeExecutionEvent.deck_uri) -} -inline ::std::string* NodeExecutionEvent::mutable_deck_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.deck_uri) - return deck_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* NodeExecutionEvent::release_deck_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.deck_uri) - - return deck_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void NodeExecutionEvent::set_allocated_deck_uri(::std::string* deck_uri) { - if (deck_uri != nullptr) { - - } else { - - } - deck_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deck_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.deck_uri) -} - -// .google.protobuf.Timestamp reported_at = 21; -inline bool NodeExecutionEvent::has_reported_at() const { - return this != internal_default_instance() && reported_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& NodeExecutionEvent::reported_at() const { - const ::google::protobuf::Timestamp* p = reported_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.reported_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* NodeExecutionEvent::release_reported_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.NodeExecutionEvent.reported_at) - - ::google::protobuf::Timestamp* temp = reported_at_; - reported_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* NodeExecutionEvent::mutable_reported_at() { - - if (reported_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - reported_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.NodeExecutionEvent.reported_at) - return reported_at_; -} -inline void NodeExecutionEvent::set_allocated_reported_at(::google::protobuf::Timestamp* reported_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(reported_at_); - } - if (reported_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(reported_at)->GetArena(); - if (message_arena != submessage_arena) { - reported_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reported_at, submessage_arena); - } - - } else { - - } - reported_at_ = reported_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.NodeExecutionEvent.reported_at) -} - -// bool is_array = 22; -inline void NodeExecutionEvent::clear_is_array() { - is_array_ = false; -} -inline bool NodeExecutionEvent::is_array() const { - // @@protoc_insertion_point(field_get:flyteidl.event.NodeExecutionEvent.is_array) - return is_array_; -} -inline void NodeExecutionEvent::set_is_array(bool value) { - - is_array_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.NodeExecutionEvent.is_array) -} - -inline bool NodeExecutionEvent::has_input_value() const { - return input_value_case() != INPUT_VALUE_NOT_SET; -} -inline void NodeExecutionEvent::clear_has_input_value() { - _oneof_case_[0] = INPUT_VALUE_NOT_SET; -} -inline bool NodeExecutionEvent::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void NodeExecutionEvent::clear_has_output_result() { - _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; -} -inline bool NodeExecutionEvent::has_target_metadata() const { - return target_metadata_case() != TARGET_METADATA_NOT_SET; -} -inline void NodeExecutionEvent::clear_has_target_metadata() { - _oneof_case_[2] = TARGET_METADATA_NOT_SET; -} -inline NodeExecutionEvent::InputValueCase NodeExecutionEvent::input_value_case() const { - return NodeExecutionEvent::InputValueCase(_oneof_case_[0]); -} -inline NodeExecutionEvent::OutputResultCase NodeExecutionEvent::output_result_case() const { - return NodeExecutionEvent::OutputResultCase(_oneof_case_[1]); -} -inline NodeExecutionEvent::TargetMetadataCase NodeExecutionEvent::target_metadata_case() const { - return NodeExecutionEvent::TargetMetadataCase(_oneof_case_[2]); -} -// ------------------------------------------------------------------- - -// WorkflowNodeMetadata - -// .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; -inline bool WorkflowNodeMetadata::has_execution_id() const { - return this != internal_default_instance() && execution_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& WorkflowNodeMetadata::execution_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.WorkflowNodeMetadata.execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::release_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.WorkflowNodeMetadata.execution_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = execution_id_; - execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* WorkflowNodeMetadata::mutable_execution_id() { - - if (execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.WorkflowNodeMetadata.execution_id) - return execution_id_; -} -inline void WorkflowNodeMetadata::set_allocated_execution_id(::flyteidl::core::WorkflowExecutionIdentifier* execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_id_); - } - if (execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_id, submessage_arena); - } - - } else { - - } - execution_id_ = execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.WorkflowNodeMetadata.execution_id) -} - -// ------------------------------------------------------------------- - -// TaskNodeMetadata - -// .flyteidl.core.CatalogCacheStatus cache_status = 1; -inline void TaskNodeMetadata::clear_cache_status() { - cache_status_ = 0; -} -inline ::flyteidl::core::CatalogCacheStatus TaskNodeMetadata::cache_status() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.cache_status) - return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); -} -inline void TaskNodeMetadata::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { - - cache_status_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.cache_status) -} - -// .flyteidl.core.CatalogMetadata catalog_key = 2; -inline bool TaskNodeMetadata::has_catalog_key() const { - return this != internal_default_instance() && catalog_key_ != nullptr; -} -inline const ::flyteidl::core::CatalogMetadata& TaskNodeMetadata::catalog_key() const { - const ::flyteidl::core::CatalogMetadata* p = catalog_key_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.catalog_key) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CatalogMetadata_default_instance_); -} -inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::release_catalog_key() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.catalog_key) - - ::flyteidl::core::CatalogMetadata* temp = catalog_key_; - catalog_key_ = nullptr; - return temp; -} -inline ::flyteidl::core::CatalogMetadata* TaskNodeMetadata::mutable_catalog_key() { - - if (catalog_key_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CatalogMetadata>(GetArenaNoVirtual()); - catalog_key_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.catalog_key) - return catalog_key_; -} -inline void TaskNodeMetadata::set_allocated_catalog_key(::flyteidl::core::CatalogMetadata* catalog_key) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(catalog_key_); - } - if (catalog_key) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - catalog_key = ::google::protobuf::internal::GetOwnedMessage( - message_arena, catalog_key, submessage_arena); - } - - } else { - - } - catalog_key_ = catalog_key; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.catalog_key) -} - -// .flyteidl.core.CatalogReservation.Status reservation_status = 3; -inline void TaskNodeMetadata::clear_reservation_status() { - reservation_status_ = 0; -} -inline ::flyteidl::core::CatalogReservation_Status TaskNodeMetadata::reservation_status() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.reservation_status) - return static_cast< ::flyteidl::core::CatalogReservation_Status >(reservation_status_); -} -inline void TaskNodeMetadata::set_reservation_status(::flyteidl::core::CatalogReservation_Status value) { - - reservation_status_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.reservation_status) -} - -// string checkpoint_uri = 4; -inline void TaskNodeMetadata::clear_checkpoint_uri() { - checkpoint_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskNodeMetadata::checkpoint_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.checkpoint_uri) - return checkpoint_uri_.GetNoArena(); -} -inline void TaskNodeMetadata::set_checkpoint_uri(const ::std::string& value) { - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskNodeMetadata.checkpoint_uri) -} -#if LANG_CXX11 -inline void TaskNodeMetadata::set_checkpoint_uri(::std::string&& value) { - - checkpoint_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskNodeMetadata.checkpoint_uri) -} -#endif -inline void TaskNodeMetadata::set_checkpoint_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskNodeMetadata.checkpoint_uri) -} -inline void TaskNodeMetadata::set_checkpoint_uri(const char* value, size_t size) { - - checkpoint_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskNodeMetadata.checkpoint_uri) -} -inline ::std::string* TaskNodeMetadata::mutable_checkpoint_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.checkpoint_uri) - return checkpoint_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskNodeMetadata::release_checkpoint_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.checkpoint_uri) - - return checkpoint_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskNodeMetadata::set_allocated_checkpoint_uri(::std::string* checkpoint_uri) { - if (checkpoint_uri != nullptr) { - - } else { - - } - checkpoint_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), checkpoint_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.checkpoint_uri) -} - -// .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; -inline bool TaskNodeMetadata::has_dynamic_workflow() const { - return this != internal_default_instance() && dynamic_workflow_ != nullptr; -} -inline void TaskNodeMetadata::clear_dynamic_workflow() { - if (GetArenaNoVirtual() == nullptr && dynamic_workflow_ != nullptr) { - delete dynamic_workflow_; - } - dynamic_workflow_ = nullptr; -} -inline const ::flyteidl::event::DynamicWorkflowNodeMetadata& TaskNodeMetadata::dynamic_workflow() const { - const ::flyteidl::event::DynamicWorkflowNodeMetadata* p = dynamic_workflow_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskNodeMetadata.dynamic_workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_DynamicWorkflowNodeMetadata_default_instance_); -} -inline ::flyteidl::event::DynamicWorkflowNodeMetadata* TaskNodeMetadata::release_dynamic_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskNodeMetadata.dynamic_workflow) - - ::flyteidl::event::DynamicWorkflowNodeMetadata* temp = dynamic_workflow_; - dynamic_workflow_ = nullptr; - return temp; -} -inline ::flyteidl::event::DynamicWorkflowNodeMetadata* TaskNodeMetadata::mutable_dynamic_workflow() { - - if (dynamic_workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::DynamicWorkflowNodeMetadata>(GetArenaNoVirtual()); - dynamic_workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskNodeMetadata.dynamic_workflow) - return dynamic_workflow_; -} -inline void TaskNodeMetadata::set_allocated_dynamic_workflow(::flyteidl::event::DynamicWorkflowNodeMetadata* dynamic_workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete dynamic_workflow_; - } - if (dynamic_workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - dynamic_workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dynamic_workflow, submessage_arena); - } - - } else { - - } - dynamic_workflow_ = dynamic_workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskNodeMetadata.dynamic_workflow) -} - -// ------------------------------------------------------------------- - -// DynamicWorkflowNodeMetadata - -// .flyteidl.core.Identifier id = 1; -inline bool DynamicWorkflowNodeMetadata::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& DynamicWorkflowNodeMetadata::id() const { - const ::flyteidl::core::Identifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.id) - - ::flyteidl::core::Identifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* DynamicWorkflowNodeMetadata::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.id) - return id_; -} -inline void DynamicWorkflowNodeMetadata::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.event.DynamicWorkflowNodeMetadata.id) -} - -// .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; -inline bool DynamicWorkflowNodeMetadata::has_compiled_workflow() const { - return this != internal_default_instance() && compiled_workflow_ != nullptr; -} -inline const ::flyteidl::core::CompiledWorkflowClosure& DynamicWorkflowNodeMetadata::compiled_workflow() const { - const ::flyteidl::core::CompiledWorkflowClosure* p = compiled_workflow_; - // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_CompiledWorkflowClosure_default_instance_); -} -inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::release_compiled_workflow() { - // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) - - ::flyteidl::core::CompiledWorkflowClosure* temp = compiled_workflow_; - compiled_workflow_ = nullptr; - return temp; -} -inline ::flyteidl::core::CompiledWorkflowClosure* DynamicWorkflowNodeMetadata::mutable_compiled_workflow() { - - if (compiled_workflow_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::CompiledWorkflowClosure>(GetArenaNoVirtual()); - compiled_workflow_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) - return compiled_workflow_; -} -inline void DynamicWorkflowNodeMetadata::set_allocated_compiled_workflow(::flyteidl::core::CompiledWorkflowClosure* compiled_workflow) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(compiled_workflow_); - } - if (compiled_workflow) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - compiled_workflow = ::google::protobuf::internal::GetOwnedMessage( - message_arena, compiled_workflow, submessage_arena); - } - - } else { - - } - compiled_workflow_ = compiled_workflow; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.DynamicWorkflowNodeMetadata.compiled_workflow) -} - -// string dynamic_job_spec_uri = 3; -inline void DynamicWorkflowNodeMetadata::clear_dynamic_job_spec_uri() { - dynamic_job_spec_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DynamicWorkflowNodeMetadata::dynamic_job_spec_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.GetNoArena(); -} -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const ::std::string& value) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -#if LANG_CXX11 -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(::std::string&& value) { - - dynamic_job_spec_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -#endif -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -inline void DynamicWorkflowNodeMetadata::set_dynamic_job_spec_uri(const char* value, size_t size) { - - dynamic_job_spec_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} -inline ::std::string* DynamicWorkflowNodeMetadata::mutable_dynamic_job_spec_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - return dynamic_job_spec_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DynamicWorkflowNodeMetadata::release_dynamic_job_spec_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) - - return dynamic_job_spec_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DynamicWorkflowNodeMetadata::set_allocated_dynamic_job_spec_uri(::std::string* dynamic_job_spec_uri) { - if (dynamic_job_spec_uri != nullptr) { - - } else { - - } - dynamic_job_spec_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), dynamic_job_spec_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.DynamicWorkflowNodeMetadata.dynamic_job_spec_uri) -} - -// ------------------------------------------------------------------- - -// ParentTaskExecutionMetadata - -// .flyteidl.core.TaskExecutionIdentifier id = 1; -inline bool ParentTaskExecutionMetadata::has_id() const { - return this != internal_default_instance() && id_ != nullptr; -} -inline const ::flyteidl::core::TaskExecutionIdentifier& ParentTaskExecutionMetadata::id() const { - const ::flyteidl::core::TaskExecutionIdentifier* p = id_; - // @@protoc_insertion_point(field_get:flyteidl.event.ParentTaskExecutionMetadata.id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::release_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.ParentTaskExecutionMetadata.id) - - ::flyteidl::core::TaskExecutionIdentifier* temp = id_; - id_ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskExecutionIdentifier* ParentTaskExecutionMetadata::mutable_id() { - - if (id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskExecutionIdentifier>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.ParentTaskExecutionMetadata.id) - return id_; -} -inline void ParentTaskExecutionMetadata::set_allocated_id(::flyteidl::core::TaskExecutionIdentifier* 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.event.ParentTaskExecutionMetadata.id) -} - -// ------------------------------------------------------------------- - -// ParentNodeExecutionMetadata - -// string node_id = 1; -inline void ParentNodeExecutionMetadata::clear_node_id() { - node_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ParentNodeExecutionMetadata::node_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ParentNodeExecutionMetadata.node_id) - return node_id_.GetNoArena(); -} -inline void ParentNodeExecutionMetadata::set_node_id(const ::std::string& value) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.ParentNodeExecutionMetadata.node_id) -} -#if LANG_CXX11 -inline void ParentNodeExecutionMetadata::set_node_id(::std::string&& value) { - - node_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ParentNodeExecutionMetadata.node_id) -} -#endif -inline void ParentNodeExecutionMetadata::set_node_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.ParentNodeExecutionMetadata.node_id) -} -inline void ParentNodeExecutionMetadata::set_node_id(const char* value, size_t size) { - - node_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ParentNodeExecutionMetadata.node_id) -} -inline ::std::string* ParentNodeExecutionMetadata::mutable_node_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.ParentNodeExecutionMetadata.node_id) - return node_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ParentNodeExecutionMetadata::release_node_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.ParentNodeExecutionMetadata.node_id) - - return node_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ParentNodeExecutionMetadata::set_allocated_node_id(::std::string* node_id) { - if (node_id != nullptr) { - - } else { - - } - node_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ParentNodeExecutionMetadata.node_id) -} - -// ------------------------------------------------------------------- - -// EventReason - -// string reason = 1; -inline void EventReason::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& EventReason::reason() const { - // @@protoc_insertion_point(field_get:flyteidl.event.EventReason.reason) - return reason_.GetNoArena(); -} -inline void EventReason::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.EventReason.reason) -} -#if LANG_CXX11 -inline void EventReason::set_reason(::std::string&& value) { - - reason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.EventReason.reason) -} -#endif -inline void EventReason::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.EventReason.reason) -} -inline void EventReason::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.EventReason.reason) -} -inline ::std::string* EventReason::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.EventReason.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* EventReason::release_reason() { - // @@protoc_insertion_point(field_release:flyteidl.event.EventReason.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void EventReason::set_allocated_reason(::std::string* reason) { - if (reason != nullptr) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.EventReason.reason) -} - -// .google.protobuf.Timestamp occurred_at = 2; -inline bool EventReason::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& EventReason::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.EventReason.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* EventReason::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.EventReason.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* EventReason::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.EventReason.occurred_at) - return occurred_at_; -} -inline void EventReason::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.EventReason.occurred_at) -} - -// ------------------------------------------------------------------- - -// TaskExecutionEvent - -// .flyteidl.core.Identifier task_id = 1; -inline bool TaskExecutionEvent::has_task_id() const { - return this != internal_default_instance() && task_id_ != nullptr; -} -inline const ::flyteidl::core::Identifier& TaskExecutionEvent::task_id() const { - const ::flyteidl::core::Identifier* p = task_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.task_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Identifier_default_instance_); -} -inline ::flyteidl::core::Identifier* TaskExecutionEvent::release_task_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.task_id) - - ::flyteidl::core::Identifier* temp = task_id_; - task_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::Identifier* TaskExecutionEvent::mutable_task_id() { - - if (task_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Identifier>(GetArenaNoVirtual()); - task_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.task_id) - return task_id_; -} -inline void TaskExecutionEvent::set_allocated_task_id(::flyteidl::core::Identifier* task_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(task_id_); - } - if (task_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - task_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, task_id, submessage_arena); - } - - } else { - - } - task_id_ = task_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.task_id) -} - -// .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; -inline bool TaskExecutionEvent::has_parent_node_execution_id() const { - return this != internal_default_instance() && parent_node_execution_id_ != nullptr; -} -inline const ::flyteidl::core::NodeExecutionIdentifier& TaskExecutionEvent::parent_node_execution_id() const { - const ::flyteidl::core::NodeExecutionIdentifier* p = parent_node_execution_id_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::release_parent_node_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) - - ::flyteidl::core::NodeExecutionIdentifier* temp = parent_node_execution_id_; - parent_node_execution_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::NodeExecutionIdentifier* TaskExecutionEvent::mutable_parent_node_execution_id() { - - if (parent_node_execution_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::NodeExecutionIdentifier>(GetArenaNoVirtual()); - parent_node_execution_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) - return parent_node_execution_id_; -} -inline void TaskExecutionEvent::set_allocated_parent_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* parent_node_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(parent_node_execution_id_); - } - if (parent_node_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - parent_node_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, parent_node_execution_id, submessage_arena); - } - - } else { - - } - parent_node_execution_id_ = parent_node_execution_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.parent_node_execution_id) -} - -// uint32 retry_attempt = 3; -inline void TaskExecutionEvent::clear_retry_attempt() { - retry_attempt_ = 0u; -} -inline ::google::protobuf::uint32 TaskExecutionEvent::retry_attempt() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.retry_attempt) - return retry_attempt_; -} -inline void TaskExecutionEvent::set_retry_attempt(::google::protobuf::uint32 value) { - - retry_attempt_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.retry_attempt) -} - -// .flyteidl.core.TaskExecution.Phase phase = 4; -inline void TaskExecutionEvent::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::TaskExecution_Phase TaskExecutionEvent::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase) - return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); -} -inline void TaskExecutionEvent::set_phase(::flyteidl::core::TaskExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase) -} - -// string producer_id = 5; -inline void TaskExecutionEvent::clear_producer_id() { - producer_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionEvent::producer_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.producer_id) - return producer_id_.GetNoArena(); -} -inline void TaskExecutionEvent::set_producer_id(const ::std::string& value) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.producer_id) -} -#if LANG_CXX11 -inline void TaskExecutionEvent::set_producer_id(::std::string&& value) { - - producer_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.producer_id) -} -#endif -inline void TaskExecutionEvent::set_producer_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.producer_id) -} -inline void TaskExecutionEvent::set_producer_id(const char* value, size_t size) { - - producer_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.producer_id) -} -inline ::std::string* TaskExecutionEvent::mutable_producer_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.producer_id) - return producer_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEvent::release_producer_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.producer_id) - - return producer_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionEvent::set_allocated_producer_id(::std::string* producer_id) { - if (producer_id != nullptr) { - - } else { - - } - producer_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), producer_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.producer_id) -} - -// repeated .flyteidl.core.TaskLog logs = 6; -inline int TaskExecutionEvent::logs_size() const { - return logs_.size(); -} -inline ::flyteidl::core::TaskLog* TaskExecutionEvent::mutable_logs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.logs) - return logs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -TaskExecutionEvent::mutable_logs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionEvent.logs) - return &logs_; -} -inline const ::flyteidl::core::TaskLog& TaskExecutionEvent::logs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.logs) - return logs_.Get(index); -} -inline ::flyteidl::core::TaskLog* TaskExecutionEvent::add_logs() { - // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionEvent.logs) - return logs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -TaskExecutionEvent::logs() const { - // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionEvent.logs) - return logs_; -} - -// .google.protobuf.Timestamp occurred_at = 7; -inline bool TaskExecutionEvent::has_occurred_at() const { - return this != internal_default_instance() && occurred_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskExecutionEvent::occurred_at() const { - const ::google::protobuf::Timestamp* p = occurred_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.occurred_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskExecutionEvent::release_occurred_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.occurred_at) - - ::google::protobuf::Timestamp* temp = occurred_at_; - occurred_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskExecutionEvent::mutable_occurred_at() { - - if (occurred_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - occurred_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.occurred_at) - return occurred_at_; -} -inline void TaskExecutionEvent::set_allocated_occurred_at(::google::protobuf::Timestamp* occurred_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(occurred_at_); - } - if (occurred_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(occurred_at)->GetArena(); - if (message_arena != submessage_arena) { - occurred_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, occurred_at, submessage_arena); - } - - } else { - - } - occurred_at_ = occurred_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.occurred_at) -} - -// string input_uri = 8; -inline bool TaskExecutionEvent::has_input_uri() const { - return input_value_case() == kInputUri; -} -inline void TaskExecutionEvent::set_has_input_uri() { - _oneof_case_[0] = kInputUri; -} -inline void TaskExecutionEvent::clear_input_uri() { - if (has_input_uri()) { - input_value_.input_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_input_value(); - } -} -inline const ::std::string& TaskExecutionEvent::input_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.input_uri) - if (has_input_uri()) { - return input_value_.input_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void TaskExecutionEvent::set_input_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) -} -#if LANG_CXX11 -inline void TaskExecutionEvent::set_input_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.input_uri) - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.input_uri) -} -#endif -inline void TaskExecutionEvent::set_input_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.input_uri) -} -inline void TaskExecutionEvent::set_input_uri(const char* value, size_t size) { - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - input_value_.input_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.input_uri) -} -inline ::std::string* TaskExecutionEvent::mutable_input_uri() { - if (!has_input_uri()) { - clear_input_value(); - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.input_uri) - return input_value_.input_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEvent::release_input_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.input_uri) - if (has_input_uri()) { - clear_has_input_value(); - return input_value_.input_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void TaskExecutionEvent::set_allocated_input_uri(::std::string* input_uri) { - if (has_input_value()) { - clear_input_value(); - } - if (input_uri != nullptr) { - set_has_input_uri(); - input_value_.input_uri_.UnsafeSetDefault(input_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.input_uri) -} - -// .flyteidl.core.LiteralMap input_data = 19; -inline bool TaskExecutionEvent::has_input_data() const { - return input_value_case() == kInputData; -} -inline void TaskExecutionEvent::set_has_input_data() { - _oneof_case_[0] = kInputData; -} -inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::release_input_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.input_data) - if (has_input_data()) { - clear_has_input_value(); - ::flyteidl::core::LiteralMap* temp = input_value_.input_data_; - input_value_.input_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& TaskExecutionEvent::input_data() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.input_data) - return has_input_data() - ? *input_value_.input_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::mutable_input_data() { - if (!has_input_data()) { - clear_input_value(); - set_has_input_data(); - input_value_.input_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.input_data) - return input_value_.input_data_; -} - -// string output_uri = 9; -inline bool TaskExecutionEvent::has_output_uri() const { - return output_result_case() == kOutputUri; -} -inline void TaskExecutionEvent::set_has_output_uri() { - _oneof_case_[1] = kOutputUri; -} -inline void TaskExecutionEvent::clear_output_uri() { - if (has_output_uri()) { - output_result_.output_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - clear_has_output_result(); - } -} -inline const ::std::string& TaskExecutionEvent::output_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.output_uri) - if (has_output_uri()) { - return output_result_.output_uri_.GetNoArena(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void TaskExecutionEvent::set_output_uri(const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) -} -#if LANG_CXX11 -inline void TaskExecutionEvent::set_output_uri(::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.output_uri) - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.output_uri) -} -#endif -inline void TaskExecutionEvent::set_output_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.output_uri) -} -inline void TaskExecutionEvent::set_output_uri(const char* value, size_t size) { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - output_result_.output_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.output_uri) -} -inline ::std::string* TaskExecutionEvent::mutable_output_uri() { - if (!has_output_uri()) { - clear_output_result(); - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.output_uri) - return output_result_.output_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEvent::release_output_uri() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.output_uri) - if (has_output_uri()) { - clear_has_output_result(); - return output_result_.output_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } else { - return nullptr; - } -} -inline void TaskExecutionEvent::set_allocated_output_uri(::std::string* output_uri) { - if (has_output_result()) { - clear_output_result(); - } - if (output_uri != nullptr) { - set_has_output_uri(); - output_result_.output_uri_.UnsafeSetDefault(output_uri); - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.output_uri) -} - -// .flyteidl.core.ExecutionError error = 10; -inline bool TaskExecutionEvent::has_error() const { - return output_result_case() == kError; -} -inline void TaskExecutionEvent::set_has_error() { - _oneof_case_[1] = kError; -} -inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::release_error() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.error) - if (has_error()) { - clear_has_output_result(); - ::flyteidl::core::ExecutionError* temp = output_result_.error_; - output_result_.error_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::ExecutionError& TaskExecutionEvent::error() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.error) - return has_error() - ? *output_result_.error_ - : *reinterpret_cast< ::flyteidl::core::ExecutionError*>(&::flyteidl::core::_ExecutionError_default_instance_); -} -inline ::flyteidl::core::ExecutionError* TaskExecutionEvent::mutable_error() { - if (!has_error()) { - clear_output_result(); - set_has_error(); - output_result_.error_ = CreateMaybeMessage< ::flyteidl::core::ExecutionError >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.error) - return output_result_.error_; -} - -// .flyteidl.core.LiteralMap output_data = 17; -inline bool TaskExecutionEvent::has_output_data() const { - return output_result_case() == kOutputData; -} -inline void TaskExecutionEvent::set_has_output_data() { - _oneof_case_[1] = kOutputData; -} -inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::release_output_data() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.output_data) - if (has_output_data()) { - clear_has_output_result(); - ::flyteidl::core::LiteralMap* temp = output_result_.output_data_; - output_result_.output_data_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& TaskExecutionEvent::output_data() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.output_data) - return has_output_data() - ? *output_result_.output_data_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskExecutionEvent::mutable_output_data() { - if (!has_output_data()) { - clear_output_result(); - set_has_output_data(); - output_result_.output_data_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.output_data) - return output_result_.output_data_; -} - -// .google.protobuf.Struct custom_info = 11; -inline bool TaskExecutionEvent::has_custom_info() const { - return this != internal_default_instance() && custom_info_ != nullptr; -} -inline const ::google::protobuf::Struct& TaskExecutionEvent::custom_info() const { - const ::google::protobuf::Struct* p = custom_info_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.custom_info) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* TaskExecutionEvent::release_custom_info() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.custom_info) - - ::google::protobuf::Struct* temp = custom_info_; - custom_info_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* TaskExecutionEvent::mutable_custom_info() { - - if (custom_info_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - custom_info_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.custom_info) - return custom_info_; -} -inline void TaskExecutionEvent::set_allocated_custom_info(::google::protobuf::Struct* custom_info) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(custom_info_); - } - if (custom_info) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(custom_info)->GetArena(); - if (message_arena != submessage_arena) { - custom_info = ::google::protobuf::internal::GetOwnedMessage( - message_arena, custom_info, submessage_arena); - } - - } else { - - } - custom_info_ = custom_info; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.custom_info) -} - -// uint32 phase_version = 12; -inline void TaskExecutionEvent::clear_phase_version() { - phase_version_ = 0u; -} -inline ::google::protobuf::uint32 TaskExecutionEvent::phase_version() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.phase_version) - return phase_version_; -} -inline void TaskExecutionEvent::set_phase_version(::google::protobuf::uint32 value) { - - phase_version_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.phase_version) -} - -// string reason = 13 [deprecated = true]; -inline void TaskExecutionEvent::clear_reason() { - reason_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionEvent::reason() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.reason) - return reason_.GetNoArena(); -} -inline void TaskExecutionEvent::set_reason(const ::std::string& value) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.reason) -} -#if LANG_CXX11 -inline void TaskExecutionEvent::set_reason(::std::string&& value) { - - reason_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.reason) -} -#endif -inline void TaskExecutionEvent::set_reason(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.reason) -} -inline void TaskExecutionEvent::set_reason(const char* value, size_t size) { - - reason_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.reason) -} -inline ::std::string* TaskExecutionEvent::mutable_reason() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.reason) - return reason_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEvent::release_reason() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.reason) - - return reason_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionEvent::set_allocated_reason(::std::string* reason) { - if (reason != nullptr) { - - } else { - - } - reason_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), reason); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.reason) -} - -// repeated .flyteidl.event.EventReason reasons = 21; -inline int TaskExecutionEvent::reasons_size() const { - return reasons_.size(); -} -inline void TaskExecutionEvent::clear_reasons() { - reasons_.Clear(); -} -inline ::flyteidl::event::EventReason* TaskExecutionEvent::mutable_reasons(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.reasons) - return reasons_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::event::EventReason >* -TaskExecutionEvent::mutable_reasons() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionEvent.reasons) - return &reasons_; -} -inline const ::flyteidl::event::EventReason& TaskExecutionEvent::reasons(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.reasons) - return reasons_.Get(index); -} -inline ::flyteidl::event::EventReason* TaskExecutionEvent::add_reasons() { - // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionEvent.reasons) - return reasons_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::EventReason >& -TaskExecutionEvent::reasons() const { - // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionEvent.reasons) - return reasons_; -} - -// string task_type = 14; -inline void TaskExecutionEvent::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionEvent::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.task_type) - return task_type_.GetNoArena(); -} -inline void TaskExecutionEvent::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.task_type) -} -#if LANG_CXX11 -inline void TaskExecutionEvent::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionEvent.task_type) -} -#endif -inline void TaskExecutionEvent::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionEvent.task_type) -} -inline void TaskExecutionEvent::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionEvent.task_type) -} -inline ::std::string* TaskExecutionEvent::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionEvent::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionEvent::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.task_type) -} - -// .flyteidl.event.TaskExecutionMetadata metadata = 16; -inline bool TaskExecutionEvent::has_metadata() const { - return this != internal_default_instance() && metadata_ != nullptr; -} -inline void TaskExecutionEvent::clear_metadata() { - if (GetArenaNoVirtual() == nullptr && metadata_ != nullptr) { - delete metadata_; - } - metadata_ = nullptr; -} -inline const ::flyteidl::event::TaskExecutionMetadata& TaskExecutionEvent::metadata() const { - const ::flyteidl::event::TaskExecutionMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.metadata) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::event::_TaskExecutionMetadata_default_instance_); -} -inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionEvent::release_metadata() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.metadata) - - ::flyteidl::event::TaskExecutionMetadata* temp = metadata_; - metadata_ = nullptr; - return temp; -} -inline ::flyteidl::event::TaskExecutionMetadata* TaskExecutionEvent::mutable_metadata() { - - if (metadata_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::event::TaskExecutionMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.metadata) - return metadata_; -} -inline void TaskExecutionEvent::set_allocated_metadata(::flyteidl::event::TaskExecutionMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.metadata) -} - -// int32 event_version = 18; -inline void TaskExecutionEvent::clear_event_version() { - event_version_ = 0; -} -inline ::google::protobuf::int32 TaskExecutionEvent::event_version() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.event_version) - return event_version_; -} -inline void TaskExecutionEvent::set_event_version(::google::protobuf::int32 value) { - - event_version_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionEvent.event_version) -} - -// .google.protobuf.Timestamp reported_at = 20; -inline bool TaskExecutionEvent::has_reported_at() const { - return this != internal_default_instance() && reported_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& TaskExecutionEvent::reported_at() const { - const ::google::protobuf::Timestamp* p = reported_at_; - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionEvent.reported_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* TaskExecutionEvent::release_reported_at() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionEvent.reported_at) - - ::google::protobuf::Timestamp* temp = reported_at_; - reported_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* TaskExecutionEvent::mutable_reported_at() { - - if (reported_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - reported_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionEvent.reported_at) - return reported_at_; -} -inline void TaskExecutionEvent::set_allocated_reported_at(::google::protobuf::Timestamp* reported_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(reported_at_); - } - if (reported_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(reported_at)->GetArena(); - if (message_arena != submessage_arena) { - reported_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, reported_at, submessage_arena); - } - - } else { - - } - reported_at_ = reported_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionEvent.reported_at) -} - -inline bool TaskExecutionEvent::has_input_value() const { - return input_value_case() != INPUT_VALUE_NOT_SET; -} -inline void TaskExecutionEvent::clear_has_input_value() { - _oneof_case_[0] = INPUT_VALUE_NOT_SET; -} -inline bool TaskExecutionEvent::has_output_result() const { - return output_result_case() != OUTPUT_RESULT_NOT_SET; -} -inline void TaskExecutionEvent::clear_has_output_result() { - _oneof_case_[1] = OUTPUT_RESULT_NOT_SET; -} -inline TaskExecutionEvent::InputValueCase TaskExecutionEvent::input_value_case() const { - return TaskExecutionEvent::InputValueCase(_oneof_case_[0]); -} -inline TaskExecutionEvent::OutputResultCase TaskExecutionEvent::output_result_case() const { - return TaskExecutionEvent::OutputResultCase(_oneof_case_[1]); -} -// ------------------------------------------------------------------- - -// ExternalResourceInfo - -// string external_id = 1; -inline void ExternalResourceInfo::clear_external_id() { - external_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ExternalResourceInfo::external_id() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.external_id) - return external_id_.GetNoArena(); -} -inline void ExternalResourceInfo::set_external_id(const ::std::string& value) { - - external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.external_id) -} -#if LANG_CXX11 -inline void ExternalResourceInfo::set_external_id(::std::string&& value) { - - external_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ExternalResourceInfo.external_id) -} -#endif -inline void ExternalResourceInfo::set_external_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.ExternalResourceInfo.external_id) -} -inline void ExternalResourceInfo::set_external_id(const char* value, size_t size) { - - external_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ExternalResourceInfo.external_id) -} -inline ::std::string* ExternalResourceInfo::mutable_external_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.ExternalResourceInfo.external_id) - return external_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ExternalResourceInfo::release_external_id() { - // @@protoc_insertion_point(field_release:flyteidl.event.ExternalResourceInfo.external_id) - - return external_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ExternalResourceInfo::set_allocated_external_id(::std::string* external_id) { - if (external_id != nullptr) { - - } else { - - } - external_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), external_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ExternalResourceInfo.external_id) -} - -// uint32 index = 2; -inline void ExternalResourceInfo::clear_index() { - index_ = 0u; -} -inline ::google::protobuf::uint32 ExternalResourceInfo::index() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.index) - return index_; -} -inline void ExternalResourceInfo::set_index(::google::protobuf::uint32 value) { - - index_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.index) -} - -// uint32 retry_attempt = 3; -inline void ExternalResourceInfo::clear_retry_attempt() { - retry_attempt_ = 0u; -} -inline ::google::protobuf::uint32 ExternalResourceInfo::retry_attempt() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.retry_attempt) - return retry_attempt_; -} -inline void ExternalResourceInfo::set_retry_attempt(::google::protobuf::uint32 value) { - - retry_attempt_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.retry_attempt) -} - -// .flyteidl.core.TaskExecution.Phase phase = 4; -inline void ExternalResourceInfo::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::TaskExecution_Phase ExternalResourceInfo::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.phase) - return static_cast< ::flyteidl::core::TaskExecution_Phase >(phase_); -} -inline void ExternalResourceInfo::set_phase(::flyteidl::core::TaskExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.phase) -} - -// .flyteidl.core.CatalogCacheStatus cache_status = 5; -inline void ExternalResourceInfo::clear_cache_status() { - cache_status_ = 0; -} -inline ::flyteidl::core::CatalogCacheStatus ExternalResourceInfo::cache_status() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.cache_status) - return static_cast< ::flyteidl::core::CatalogCacheStatus >(cache_status_); -} -inline void ExternalResourceInfo::set_cache_status(::flyteidl::core::CatalogCacheStatus value) { - - cache_status_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.ExternalResourceInfo.cache_status) -} - -// repeated .flyteidl.core.TaskLog logs = 6; -inline int ExternalResourceInfo::logs_size() const { - return logs_.size(); -} -inline ::flyteidl::core::TaskLog* ExternalResourceInfo::mutable_logs(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.ExternalResourceInfo.logs) - return logs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >* -ExternalResourceInfo::mutable_logs() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.ExternalResourceInfo.logs) - return &logs_; -} -inline const ::flyteidl::core::TaskLog& ExternalResourceInfo::logs(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.ExternalResourceInfo.logs) - return logs_.Get(index); -} -inline ::flyteidl::core::TaskLog* ExternalResourceInfo::add_logs() { - // @@protoc_insertion_point(field_add:flyteidl.event.ExternalResourceInfo.logs) - return logs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::core::TaskLog >& -ExternalResourceInfo::logs() const { - // @@protoc_insertion_point(field_list:flyteidl.event.ExternalResourceInfo.logs) - return logs_; -} - -// ------------------------------------------------------------------- - -// ResourcePoolInfo - -// string allocation_token = 1; -inline void ResourcePoolInfo::clear_allocation_token() { - allocation_token_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourcePoolInfo::allocation_token() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ResourcePoolInfo.allocation_token) - return allocation_token_.GetNoArena(); -} -inline void ResourcePoolInfo::set_allocation_token(const ::std::string& value) { - - allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.ResourcePoolInfo.allocation_token) -} -#if LANG_CXX11 -inline void ResourcePoolInfo::set_allocation_token(::std::string&& value) { - - allocation_token_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ResourcePoolInfo.allocation_token) -} -#endif -inline void ResourcePoolInfo::set_allocation_token(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.ResourcePoolInfo.allocation_token) -} -inline void ResourcePoolInfo::set_allocation_token(const char* value, size_t size) { - - allocation_token_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ResourcePoolInfo.allocation_token) -} -inline ::std::string* ResourcePoolInfo::mutable_allocation_token() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.ResourcePoolInfo.allocation_token) - return allocation_token_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourcePoolInfo::release_allocation_token() { - // @@protoc_insertion_point(field_release:flyteidl.event.ResourcePoolInfo.allocation_token) - - return allocation_token_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourcePoolInfo::set_allocated_allocation_token(::std::string* allocation_token) { - if (allocation_token != nullptr) { - - } else { - - } - allocation_token_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocation_token); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ResourcePoolInfo.allocation_token) -} - -// string namespace = 2; -inline void ResourcePoolInfo::clear_namespace_() { - namespace__.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ResourcePoolInfo::namespace_() const { - // @@protoc_insertion_point(field_get:flyteidl.event.ResourcePoolInfo.namespace) - return namespace__.GetNoArena(); -} -inline void ResourcePoolInfo::set_namespace_(const ::std::string& value) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.ResourcePoolInfo.namespace) -} -#if LANG_CXX11 -inline void ResourcePoolInfo::set_namespace_(::std::string&& value) { - - namespace__.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.ResourcePoolInfo.namespace) -} -#endif -inline void ResourcePoolInfo::set_namespace_(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.ResourcePoolInfo.namespace) -} -inline void ResourcePoolInfo::set_namespace_(const char* value, size_t size) { - - namespace__.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.ResourcePoolInfo.namespace) -} -inline ::std::string* ResourcePoolInfo::mutable_namespace_() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.ResourcePoolInfo.namespace) - return namespace__.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ResourcePoolInfo::release_namespace_() { - // @@protoc_insertion_point(field_release:flyteidl.event.ResourcePoolInfo.namespace) - - return namespace__.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ResourcePoolInfo::set_allocated_namespace_(::std::string* namespace_) { - if (namespace_ != nullptr) { - - } else { - - } - namespace__.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), namespace_); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.ResourcePoolInfo.namespace) -} - -// ------------------------------------------------------------------- - -// TaskExecutionMetadata - -// string generated_name = 1; -inline void TaskExecutionMetadata::clear_generated_name() { - generated_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionMetadata::generated_name() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.generated_name) - return generated_name_.GetNoArena(); -} -inline void TaskExecutionMetadata::set_generated_name(const ::std::string& value) { - - generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.generated_name) -} -#if LANG_CXX11 -inline void TaskExecutionMetadata::set_generated_name(::std::string&& value) { - - generated_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionMetadata.generated_name) -} -#endif -inline void TaskExecutionMetadata::set_generated_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionMetadata.generated_name) -} -inline void TaskExecutionMetadata::set_generated_name(const char* value, size_t size) { - - generated_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionMetadata.generated_name) -} -inline ::std::string* TaskExecutionMetadata::mutable_generated_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.generated_name) - return generated_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionMetadata::release_generated_name() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionMetadata.generated_name) - - return generated_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionMetadata::set_allocated_generated_name(::std::string* generated_name) { - if (generated_name != nullptr) { - - } else { - - } - generated_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), generated_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionMetadata.generated_name) -} - -// repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; -inline int TaskExecutionMetadata::external_resources_size() const { - return external_resources_.size(); -} -inline void TaskExecutionMetadata::clear_external_resources() { - external_resources_.Clear(); -} -inline ::flyteidl::event::ExternalResourceInfo* TaskExecutionMetadata::mutable_external_resources(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.external_resources) - return external_resources_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >* -TaskExecutionMetadata::mutable_external_resources() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionMetadata.external_resources) - return &external_resources_; -} -inline const ::flyteidl::event::ExternalResourceInfo& TaskExecutionMetadata::external_resources(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.external_resources) - return external_resources_.Get(index); -} -inline ::flyteidl::event::ExternalResourceInfo* TaskExecutionMetadata::add_external_resources() { - // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionMetadata.external_resources) - return external_resources_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ExternalResourceInfo >& -TaskExecutionMetadata::external_resources() const { - // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionMetadata.external_resources) - return external_resources_; -} - -// repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; -inline int TaskExecutionMetadata::resource_pool_info_size() const { - return resource_pool_info_.size(); -} -inline void TaskExecutionMetadata::clear_resource_pool_info() { - resource_pool_info_.Clear(); -} -inline ::flyteidl::event::ResourcePoolInfo* TaskExecutionMetadata::mutable_resource_pool_info(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.resource_pool_info) - return resource_pool_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >* -TaskExecutionMetadata::mutable_resource_pool_info() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.event.TaskExecutionMetadata.resource_pool_info) - return &resource_pool_info_; -} -inline const ::flyteidl::event::ResourcePoolInfo& TaskExecutionMetadata::resource_pool_info(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.resource_pool_info) - return resource_pool_info_.Get(index); -} -inline ::flyteidl::event::ResourcePoolInfo* TaskExecutionMetadata::add_resource_pool_info() { - // @@protoc_insertion_point(field_add:flyteidl.event.TaskExecutionMetadata.resource_pool_info) - return resource_pool_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::event::ResourcePoolInfo >& -TaskExecutionMetadata::resource_pool_info() const { - // @@protoc_insertion_point(field_list:flyteidl.event.TaskExecutionMetadata.resource_pool_info) - return resource_pool_info_; -} - -// string plugin_identifier = 4; -inline void TaskExecutionMetadata::clear_plugin_identifier() { - plugin_identifier_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskExecutionMetadata::plugin_identifier() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.plugin_identifier) - return plugin_identifier_.GetNoArena(); -} -inline void TaskExecutionMetadata::set_plugin_identifier(const ::std::string& value) { - - plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.plugin_identifier) -} -#if LANG_CXX11 -inline void TaskExecutionMetadata::set_plugin_identifier(::std::string&& value) { - - plugin_identifier_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.event.TaskExecutionMetadata.plugin_identifier) -} -#endif -inline void TaskExecutionMetadata::set_plugin_identifier(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.event.TaskExecutionMetadata.plugin_identifier) -} -inline void TaskExecutionMetadata::set_plugin_identifier(const char* value, size_t size) { - - plugin_identifier_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.event.TaskExecutionMetadata.plugin_identifier) -} -inline ::std::string* TaskExecutionMetadata::mutable_plugin_identifier() { - - // @@protoc_insertion_point(field_mutable:flyteidl.event.TaskExecutionMetadata.plugin_identifier) - return plugin_identifier_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskExecutionMetadata::release_plugin_identifier() { - // @@protoc_insertion_point(field_release:flyteidl.event.TaskExecutionMetadata.plugin_identifier) - - return plugin_identifier_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskExecutionMetadata::set_allocated_plugin_identifier(::std::string* plugin_identifier) { - if (plugin_identifier != nullptr) { - - } else { - - } - plugin_identifier_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), plugin_identifier); - // @@protoc_insertion_point(field_set_allocated:flyteidl.event.TaskExecutionMetadata.plugin_identifier) -} - -// .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; -inline void TaskExecutionMetadata::clear_instance_class() { - instance_class_ = 0; -} -inline ::flyteidl::event::TaskExecutionMetadata_InstanceClass TaskExecutionMetadata::instance_class() const { - // @@protoc_insertion_point(field_get:flyteidl.event.TaskExecutionMetadata.instance_class) - return static_cast< ::flyteidl::event::TaskExecutionMetadata_InstanceClass >(instance_class_); -} -inline void TaskExecutionMetadata::set_instance_class(::flyteidl::event::TaskExecutionMetadata_InstanceClass value) { - - instance_class_ = value; - // @@protoc_insertion_point(field_set:flyteidl.event.TaskExecutionMetadata.instance_class) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace event -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::event::TaskExecutionMetadata_InstanceClass> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::event::TaskExecutionMetadata_InstanceClass>() { - return ::flyteidl::event::TaskExecutionMetadata_InstanceClass_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fevent_2fevent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc deleted file mode 100644 index 95f7bc732b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/array_job.proto - -#include "flyteidl/plugins/array_job.pb.h" -#include "flyteidl/plugins/array_job.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h deleted file mode 100644 index d448b70199..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/array_job.proto -#ifndef GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED - -#include "flyteidl/plugins/array_job.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2farray_5fjob_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc deleted file mode 100644 index 82b8aa0bc8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.cc +++ /dev/null @@ -1,560 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/array_job.proto - -#include "flyteidl/plugins/array_job.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace plugins { -class ArrayJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - ::google::protobuf::int64 min_successes_; - float min_success_ratio_; -} _ArrayJob_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_ArrayJob_default_instance_; - new (ptr) ::flyteidl::plugins::ArrayJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::ArrayJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto}, {}}; - -void InitDefaults_flyteidl_2fplugins_2farray_5fjob_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, parallelism_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, size_), - offsetof(::flyteidl::plugins::ArrayJobDefaultTypeInternal, min_successes_), - offsetof(::flyteidl::plugins::ArrayJobDefaultTypeInternal, min_success_ratio_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ArrayJob, success_criteria_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::ArrayJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_ArrayJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, "flyteidl/plugins/array_job.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2farray_5fjob_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2farray_5fjob_2eproto[] = - "\n flyteidl/plugins/array_job.proto\022\020flyt" - "eidl.plugins\"w\n\010ArrayJob\022\023\n\013parallelism\030" - "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\027\n\rmin_successes\030\003 \001" - "(\003H\000\022\033\n\021min_success_ratio\030\004 \001(\002H\000B\022\n\020suc" - "cess_criteriaB\?Z=github.com/flyteorg/fly" - "te/flyteidl/gen/pb-go/flyteidl/pluginsb\006" - "proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2farray_5fjob_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2farray_5fjob_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2farray_5fjob_2eproto, - "flyteidl/plugins/array_job.proto", &assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto, 246, -}; - -void AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2farray_5fjob_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2farray_5fjob_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void ArrayJob::InitAsDefaultInstance() { - ::flyteidl::plugins::_ArrayJob_default_instance_.min_successes_ = PROTOBUF_LONGLONG(0); - ::flyteidl::plugins::_ArrayJob_default_instance_.min_success_ratio_ = 0; -} -class ArrayJob::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ArrayJob::kParallelismFieldNumber; -const int ArrayJob::kSizeFieldNumber; -const int ArrayJob::kMinSuccessesFieldNumber; -const int ArrayJob::kMinSuccessRatioFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ArrayJob::ArrayJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.ArrayJob) -} -ArrayJob::ArrayJob(const ArrayJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(¶llelism_, &from.parallelism_, - static_cast(reinterpret_cast(&size_) - - reinterpret_cast(¶llelism_)) + sizeof(size_)); - clear_has_success_criteria(); - switch (from.success_criteria_case()) { - case kMinSuccesses: { - set_min_successes(from.min_successes()); - break; - } - case kMinSuccessRatio: { - set_min_success_ratio(from.min_success_ratio()); - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.ArrayJob) -} - -void ArrayJob::SharedCtor() { - ::memset(¶llelism_, 0, static_cast( - reinterpret_cast(&size_) - - reinterpret_cast(¶llelism_)) + sizeof(size_)); - clear_has_success_criteria(); -} - -ArrayJob::~ArrayJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.ArrayJob) - SharedDtor(); -} - -void ArrayJob::SharedDtor() { - if (has_success_criteria()) { - clear_success_criteria(); - } -} - -void ArrayJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ArrayJob& ArrayJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ArrayJob_flyteidl_2fplugins_2farray_5fjob_2eproto.base); - return *internal_default_instance(); -} - - -void ArrayJob::clear_success_criteria() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.plugins.ArrayJob) - switch (success_criteria_case()) { - case kMinSuccesses: { - // No need to clear - break; - } - case kMinSuccessRatio: { - // No need to clear - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; -} - - -void ArrayJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.ArrayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(¶llelism_, 0, static_cast( - reinterpret_cast(&size_) - - reinterpret_cast(¶llelism_)) + sizeof(size_)); - clear_success_criteria(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ArrayJob::_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) { - // int64 parallelism = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_parallelism(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 size = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_size(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int64 min_successes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_min_successes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // float min_success_ratio = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 37) goto handle_unusual; - msg->set_min_success_ratio(::google::protobuf::io::UnalignedLoad(ptr)); - ptr += sizeof(float); - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ArrayJob::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.plugins.ArrayJob) - 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)) { - // int64 parallelism = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, ¶llelism_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 size = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &size_))); - } else { - goto handle_unusual; - } - break; - } - - // int64 min_successes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - clear_success_criteria(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &success_criteria_.min_successes_))); - set_has_min_successes(); - } else { - goto handle_unusual; - } - break; - } - - // float min_success_ratio = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (37 & 0xFF)) { - clear_success_criteria(); - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( - input, &success_criteria_.min_success_ratio_))); - set_has_min_success_ratio(); - } 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.plugins.ArrayJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.ArrayJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ArrayJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.ArrayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 parallelism = 1; - if (this->parallelism() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->parallelism(), output); - } - - // int64 size = 2; - if (this->size() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->size(), output); - } - - // int64 min_successes = 3; - if (has_min_successes()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->min_successes(), output); - } - - // float min_success_ratio = 4; - if (has_min_success_ratio()) { - ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->min_success_ratio(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.ArrayJob) -} - -::google::protobuf::uint8* ArrayJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.ArrayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int64 parallelism = 1; - if (this->parallelism() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->parallelism(), target); - } - - // int64 size = 2; - if (this->size() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->size(), target); - } - - // int64 min_successes = 3; - if (has_min_successes()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->min_successes(), target); - } - - // float min_success_ratio = 4; - if (has_min_success_ratio()) { - target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->min_success_ratio(), 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.plugins.ArrayJob) - return target; -} - -size_t ArrayJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.ArrayJob) - 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; - - // int64 parallelism = 1; - if (this->parallelism() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->parallelism()); - } - - // int64 size = 2; - if (this->size() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->size()); - } - - switch (success_criteria_case()) { - // int64 min_successes = 3; - case kMinSuccesses: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->min_successes()); - break; - } - // float min_success_ratio = 4; - case kMinSuccessRatio: { - total_size += 1 + 4; - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ArrayJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.ArrayJob) - GOOGLE_DCHECK_NE(&from, this); - const ArrayJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.ArrayJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.ArrayJob) - MergeFrom(*source); - } -} - -void ArrayJob::MergeFrom(const ArrayJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.ArrayJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.parallelism() != 0) { - set_parallelism(from.parallelism()); - } - if (from.size() != 0) { - set_size(from.size()); - } - switch (from.success_criteria_case()) { - case kMinSuccesses: { - set_min_successes(from.min_successes()); - break; - } - case kMinSuccessRatio: { - set_min_success_ratio(from.min_success_ratio()); - break; - } - case SUCCESS_CRITERIA_NOT_SET: { - break; - } - } -} - -void ArrayJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.ArrayJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ArrayJob::CopyFrom(const ArrayJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.ArrayJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ArrayJob::IsInitialized() const { - return true; -} - -void ArrayJob::Swap(ArrayJob* other) { - if (other == this) return; - InternalSwap(other); -} -void ArrayJob::InternalSwap(ArrayJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(parallelism_, other->parallelism_); - swap(size_, other->size_); - swap(success_criteria_, other->success_criteria_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata ArrayJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2farray_5fjob_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2farray_5fjob_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::ArrayJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::ArrayJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::ArrayJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h deleted file mode 100644 index a0e835f77d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/array_job.pb.h +++ /dev/null @@ -1,341 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/array_job.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2farray_5fjob_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2farray_5fjob_2eproto(); -namespace flyteidl { -namespace plugins { -class ArrayJob; -class ArrayJobDefaultTypeInternal; -extern ArrayJobDefaultTypeInternal _ArrayJob_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::ArrayJob* Arena::CreateMaybeMessage<::flyteidl::plugins::ArrayJob>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class ArrayJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.ArrayJob) */ { - public: - ArrayJob(); - virtual ~ArrayJob(); - - ArrayJob(const ArrayJob& from); - - inline ArrayJob& operator=(const ArrayJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ArrayJob(ArrayJob&& from) noexcept - : ArrayJob() { - *this = ::std::move(from); - } - - inline ArrayJob& operator=(ArrayJob&& 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 ArrayJob& default_instance(); - - enum SuccessCriteriaCase { - kMinSuccesses = 3, - kMinSuccessRatio = 4, - SUCCESS_CRITERIA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ArrayJob* internal_default_instance() { - return reinterpret_cast( - &_ArrayJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ArrayJob* other); - friend void swap(ArrayJob& a, ArrayJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ArrayJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - ArrayJob* 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 ArrayJob& from); - void MergeFrom(const ArrayJob& 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(ArrayJob* 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 ------------------------------------------------------- - - // int64 parallelism = 1; - void clear_parallelism(); - static const int kParallelismFieldNumber = 1; - ::google::protobuf::int64 parallelism() const; - void set_parallelism(::google::protobuf::int64 value); - - // int64 size = 2; - void clear_size(); - static const int kSizeFieldNumber = 2; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // int64 min_successes = 3; - private: - bool has_min_successes() const; - public: - void clear_min_successes(); - static const int kMinSuccessesFieldNumber = 3; - ::google::protobuf::int64 min_successes() const; - void set_min_successes(::google::protobuf::int64 value); - - // float min_success_ratio = 4; - private: - bool has_min_success_ratio() const; - public: - void clear_min_success_ratio(); - static const int kMinSuccessRatioFieldNumber = 4; - float min_success_ratio() const; - void set_min_success_ratio(float value); - - void clear_success_criteria(); - SuccessCriteriaCase success_criteria_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) - private: - class HasBitSetters; - void set_has_min_successes(); - void set_has_min_success_ratio(); - - inline bool has_success_criteria() const; - inline void clear_has_success_criteria(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 parallelism_; - ::google::protobuf::int64 size_; - union SuccessCriteriaUnion { - SuccessCriteriaUnion() {} - ::google::protobuf::int64 min_successes_; - float min_success_ratio_; - } success_criteria_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fplugins_2farray_5fjob_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ArrayJob - -// int64 parallelism = 1; -inline void ArrayJob::clear_parallelism() { - parallelism_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 ArrayJob::parallelism() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.parallelism) - return parallelism_; -} -inline void ArrayJob::set_parallelism(::google::protobuf::int64 value) { - - parallelism_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.parallelism) -} - -// int64 size = 2; -inline void ArrayJob::clear_size() { - size_ = PROTOBUF_LONGLONG(0); -} -inline ::google::protobuf::int64 ArrayJob::size() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.size) - return size_; -} -inline void ArrayJob::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.size) -} - -// int64 min_successes = 3; -inline bool ArrayJob::has_min_successes() const { - return success_criteria_case() == kMinSuccesses; -} -inline void ArrayJob::set_has_min_successes() { - _oneof_case_[0] = kMinSuccesses; -} -inline void ArrayJob::clear_min_successes() { - if (has_min_successes()) { - success_criteria_.min_successes_ = PROTOBUF_LONGLONG(0); - clear_has_success_criteria(); - } -} -inline ::google::protobuf::int64 ArrayJob::min_successes() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.min_successes) - if (has_min_successes()) { - return success_criteria_.min_successes_; - } - return PROTOBUF_LONGLONG(0); -} -inline void ArrayJob::set_min_successes(::google::protobuf::int64 value) { - if (!has_min_successes()) { - clear_success_criteria(); - set_has_min_successes(); - } - success_criteria_.min_successes_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.min_successes) -} - -// float min_success_ratio = 4; -inline bool ArrayJob::has_min_success_ratio() const { - return success_criteria_case() == kMinSuccessRatio; -} -inline void ArrayJob::set_has_min_success_ratio() { - _oneof_case_[0] = kMinSuccessRatio; -} -inline void ArrayJob::clear_min_success_ratio() { - if (has_min_success_ratio()) { - success_criteria_.min_success_ratio_ = 0; - clear_has_success_criteria(); - } -} -inline float ArrayJob::min_success_ratio() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ArrayJob.min_success_ratio) - if (has_min_success_ratio()) { - return success_criteria_.min_success_ratio_; - } - return 0; -} -inline void ArrayJob::set_min_success_ratio(float value) { - if (!has_min_success_ratio()) { - clear_success_criteria(); - set_has_min_success_ratio(); - } - success_criteria_.min_success_ratio_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ArrayJob.min_success_ratio) -} - -inline bool ArrayJob::has_success_criteria() const { - return success_criteria_case() != SUCCESS_CRITERIA_NOT_SET; -} -inline void ArrayJob::clear_has_success_criteria() { - _oneof_case_[0] = SUCCESS_CRITERIA_NOT_SET; -} -inline ArrayJob::SuccessCriteriaCase ArrayJob::success_criteria_case() const { - return ArrayJob::SuccessCriteriaCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2farray_5fjob_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc deleted file mode 100644 index c004653c96..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/dask.proto - -#include "flyteidl/plugins/dask.pb.h" -#include "flyteidl/plugins/dask.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h deleted file mode 100644 index 825c2c6ce3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/dask.proto -#ifndef GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED - -#include "flyteidl/plugins/dask.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fdask_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc deleted file mode 100644 index 934cd52a86..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.cc +++ /dev/null @@ -1,1328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/dask.proto - -#include "flyteidl/plugins/dask.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto; -namespace flyteidl { -namespace plugins { -class DaskJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DaskJob_default_instance_; -class DaskSchedulerDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DaskScheduler_default_instance_; -class DaskWorkerGroupDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DaskWorkerGroup_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsDaskJob_flyteidl_2fplugins_2fdask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DaskJob_default_instance_; - new (ptr) ::flyteidl::plugins::DaskJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DaskJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDaskJob_flyteidl_2fplugins_2fdask_2eproto}, { - &scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base, - &scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base,}}; - -static void InitDefaultsDaskScheduler_flyteidl_2fplugins_2fdask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DaskScheduler_default_instance_; - new (ptr) ::flyteidl::plugins::DaskScheduler(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DaskScheduler::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDaskScheduler_flyteidl_2fplugins_2fdask_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsDaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DaskWorkerGroup_default_instance_; - new (ptr) ::flyteidl::plugins::DaskWorkerGroup(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DaskWorkerGroup::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fdask_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[3]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fdask_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fdask_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fdask_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, scheduler_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskJob, workers_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskScheduler, resources_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, number_of_workers_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DaskWorkerGroup, resources_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::DaskJob)}, - { 7, -1, sizeof(::flyteidl::plugins::DaskScheduler)}, - { 14, -1, sizeof(::flyteidl::plugins::DaskWorkerGroup)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_DaskJob_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_DaskScheduler_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_DaskWorkerGroup_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fdask_2eproto, "flyteidl/plugins/dask.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fdask_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fdask_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fdask_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fdask_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fdask_2eproto[] = - "\n\033flyteidl/plugins/dask.proto\022\020flyteidl." - "plugins\032\031flyteidl/core/tasks.proto\"q\n\007Da" - "skJob\0222\n\tscheduler\030\001 \001(\0132\037.flyteidl.plug" - "ins.DaskScheduler\0222\n\007workers\030\002 \001(\0132!.fly" - "teidl.plugins.DaskWorkerGroup\"K\n\rDaskSch" - "eduler\022\r\n\005image\030\001 \001(\t\022+\n\tresources\030\002 \001(\013" - "2\030.flyteidl.core.Resources\"h\n\017DaskWorker" - "Group\022\031\n\021number_of_workers\030\001 \001(\r\022\r\n\005imag" - "e\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.co" - "re.ResourcesB\?Z=github.com/flyteorg/flyt" - "e/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" - "roto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fdask_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fdask_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fdask_2eproto, - "flyteidl/plugins/dask.proto", &assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto, 445, -}; - -void AddDescriptors_flyteidl_2fplugins_2fdask_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fdask_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fdask_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fdask_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void DaskJob::InitAsDefaultInstance() { - ::flyteidl::plugins::_DaskJob_default_instance_._instance.get_mutable()->scheduler_ = const_cast< ::flyteidl::plugins::DaskScheduler*>( - ::flyteidl::plugins::DaskScheduler::internal_default_instance()); - ::flyteidl::plugins::_DaskJob_default_instance_._instance.get_mutable()->workers_ = const_cast< ::flyteidl::plugins::DaskWorkerGroup*>( - ::flyteidl::plugins::DaskWorkerGroup::internal_default_instance()); -} -class DaskJob::HasBitSetters { - public: - static const ::flyteidl::plugins::DaskScheduler& scheduler(const DaskJob* msg); - static const ::flyteidl::plugins::DaskWorkerGroup& workers(const DaskJob* msg); -}; - -const ::flyteidl::plugins::DaskScheduler& -DaskJob::HasBitSetters::scheduler(const DaskJob* msg) { - return *msg->scheduler_; -} -const ::flyteidl::plugins::DaskWorkerGroup& -DaskJob::HasBitSetters::workers(const DaskJob* msg) { - return *msg->workers_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DaskJob::kSchedulerFieldNumber; -const int DaskJob::kWorkersFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DaskJob::DaskJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskJob) -} -DaskJob::DaskJob(const DaskJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_scheduler()) { - scheduler_ = new ::flyteidl::plugins::DaskScheduler(*from.scheduler_); - } else { - scheduler_ = nullptr; - } - if (from.has_workers()) { - workers_ = new ::flyteidl::plugins::DaskWorkerGroup(*from.workers_); - } else { - workers_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskJob) -} - -void DaskJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); - ::memset(&scheduler_, 0, static_cast( - reinterpret_cast(&workers_) - - reinterpret_cast(&scheduler_)) + sizeof(workers_)); -} - -DaskJob::~DaskJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskJob) - SharedDtor(); -} - -void DaskJob::SharedDtor() { - if (this != internal_default_instance()) delete scheduler_; - if (this != internal_default_instance()) delete workers_; -} - -void DaskJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DaskJob& DaskJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DaskJob_flyteidl_2fplugins_2fdask_2eproto.base); - return *internal_default_instance(); -} - - -void DaskJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && scheduler_ != nullptr) { - delete scheduler_; - } - scheduler_ = nullptr; - if (GetArenaNoVirtual() == nullptr && workers_ != nullptr) { - delete workers_; - } - workers_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DaskJob::_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.plugins.DaskScheduler scheduler = 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::plugins::DaskScheduler::_InternalParse; - object = msg->mutable_scheduler(); - 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.plugins.DaskWorkerGroup workers = 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::plugins::DaskWorkerGroup::_InternalParse; - object = msg->mutable_workers(); - 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 DaskJob::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.plugins.DaskJob) - 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.plugins.DaskScheduler scheduler = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_scheduler())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.DaskWorkerGroup workers = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_workers())); - } 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.plugins.DaskJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DaskJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.DaskScheduler scheduler = 1; - if (this->has_scheduler()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::scheduler(this), output); - } - - // .flyteidl.plugins.DaskWorkerGroup workers = 2; - if (this->has_workers()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::workers(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskJob) -} - -::google::protobuf::uint8* DaskJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.DaskScheduler scheduler = 1; - if (this->has_scheduler()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::scheduler(this), target); - } - - // .flyteidl.plugins.DaskWorkerGroup workers = 2; - if (this->has_workers()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::workers(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.plugins.DaskJob) - return target; -} - -size_t DaskJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskJob) - 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.plugins.DaskScheduler scheduler = 1; - if (this->has_scheduler()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *scheduler_); - } - - // .flyteidl.plugins.DaskWorkerGroup workers = 2; - if (this->has_workers()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *workers_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DaskJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskJob) - GOOGLE_DCHECK_NE(&from, this); - const DaskJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskJob) - MergeFrom(*source); - } -} - -void DaskJob::MergeFrom(const DaskJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskJob) - 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_scheduler()) { - mutable_scheduler()->::flyteidl::plugins::DaskScheduler::MergeFrom(from.scheduler()); - } - if (from.has_workers()) { - mutable_workers()->::flyteidl::plugins::DaskWorkerGroup::MergeFrom(from.workers()); - } -} - -void DaskJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DaskJob::CopyFrom(const DaskJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DaskJob::IsInitialized() const { - return true; -} - -void DaskJob::Swap(DaskJob* other) { - if (other == this) return; - InternalSwap(other); -} -void DaskJob::InternalSwap(DaskJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(scheduler_, other->scheduler_); - swap(workers_, other->workers_); -} - -::google::protobuf::Metadata DaskJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DaskScheduler::InitAsDefaultInstance() { - ::flyteidl::plugins::_DaskScheduler_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); -} -class DaskScheduler::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const DaskScheduler* msg); -}; - -const ::flyteidl::core::Resources& -DaskScheduler::HasBitSetters::resources(const DaskScheduler* msg) { - return *msg->resources_; -} -void DaskScheduler::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DaskScheduler::kImageFieldNumber; -const int DaskScheduler::kResourcesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DaskScheduler::DaskScheduler() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskScheduler) -} -DaskScheduler::DaskScheduler(const DaskScheduler& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskScheduler) -} - -void DaskScheduler::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - resources_ = nullptr; -} - -DaskScheduler::~DaskScheduler() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskScheduler) - SharedDtor(); -} - -void DaskScheduler::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; -} - -void DaskScheduler::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DaskScheduler& DaskScheduler::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DaskScheduler_flyteidl_2fplugins_2fdask_2eproto.base); - return *internal_default_instance(); -} - - -void DaskScheduler::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskScheduler) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DaskScheduler::_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) { - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.DaskScheduler.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Resources resources = 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::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DaskScheduler::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.plugins.DaskScheduler) - 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)) { - // string image = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.DaskScheduler.image")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } 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.plugins.DaskScheduler) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskScheduler) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DaskScheduler::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskScheduler) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string image = 1; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.DaskScheduler.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->image(), output); - } - - // .flyteidl.core.Resources resources = 2; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::resources(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskScheduler) -} - -::google::protobuf::uint8* DaskScheduler::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskScheduler) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string image = 1; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.DaskScheduler.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->image(), target); - } - - // .flyteidl.core.Resources resources = 2; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::resources(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.plugins.DaskScheduler) - return target; -} - -size_t DaskScheduler::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskScheduler) - 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; - - // string image = 1; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 2; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DaskScheduler::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskScheduler) - GOOGLE_DCHECK_NE(&from, this); - const DaskScheduler* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskScheduler) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskScheduler) - MergeFrom(*source); - } -} - -void DaskScheduler::MergeFrom(const DaskScheduler& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskScheduler) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } -} - -void DaskScheduler::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskScheduler) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DaskScheduler::CopyFrom(const DaskScheduler& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskScheduler) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DaskScheduler::IsInitialized() const { - return true; -} - -void DaskScheduler::Swap(DaskScheduler* other) { - if (other == this) return; - InternalSwap(other); -} -void DaskScheduler::InternalSwap(DaskScheduler* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); -} - -::google::protobuf::Metadata DaskScheduler::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DaskWorkerGroup::InitAsDefaultInstance() { - ::flyteidl::plugins::_DaskWorkerGroup_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); -} -class DaskWorkerGroup::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const DaskWorkerGroup* msg); -}; - -const ::flyteidl::core::Resources& -DaskWorkerGroup::HasBitSetters::resources(const DaskWorkerGroup* msg) { - return *msg->resources_; -} -void DaskWorkerGroup::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DaskWorkerGroup::kNumberOfWorkersFieldNumber; -const int DaskWorkerGroup::kImageFieldNumber; -const int DaskWorkerGroup::kResourcesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DaskWorkerGroup::DaskWorkerGroup() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DaskWorkerGroup) -} -DaskWorkerGroup::DaskWorkerGroup(const DaskWorkerGroup& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - number_of_workers_ = from.number_of_workers_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DaskWorkerGroup) -} - -void DaskWorkerGroup::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&number_of_workers_) - - reinterpret_cast(&resources_)) + sizeof(number_of_workers_)); -} - -DaskWorkerGroup::~DaskWorkerGroup() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DaskWorkerGroup) - SharedDtor(); -} - -void DaskWorkerGroup::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; -} - -void DaskWorkerGroup::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DaskWorkerGroup& DaskWorkerGroup::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DaskWorkerGroup_flyteidl_2fplugins_2fdask_2eproto.base); - return *internal_default_instance(); -} - - -void DaskWorkerGroup::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DaskWorkerGroup) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - number_of_workers_ = 0u; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DaskWorkerGroup::_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) { - // uint32 number_of_workers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_number_of_workers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.DaskWorkerGroup.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DaskWorkerGroup::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.plugins.DaskWorkerGroup) - 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)) { - // uint32 number_of_workers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &number_of_workers_))); - } else { - goto handle_unusual; - } - break; - } - - // string image = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.DaskWorkerGroup.image")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } 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.plugins.DaskWorkerGroup) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DaskWorkerGroup) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DaskWorkerGroup::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DaskWorkerGroup) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 number_of_workers = 1; - if (this->number_of_workers() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->number_of_workers(), output); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.DaskWorkerGroup.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->image(), output); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::resources(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DaskWorkerGroup) -} - -::google::protobuf::uint8* DaskWorkerGroup::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DaskWorkerGroup) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // uint32 number_of_workers = 1; - if (this->number_of_workers() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->number_of_workers(), target); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.DaskWorkerGroup.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->image(), target); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::resources(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.plugins.DaskWorkerGroup) - return target; -} - -size_t DaskWorkerGroup::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DaskWorkerGroup) - 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; - - // string image = 2; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // uint32 number_of_workers = 1; - if (this->number_of_workers() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->number_of_workers()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DaskWorkerGroup::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DaskWorkerGroup) - GOOGLE_DCHECK_NE(&from, this); - const DaskWorkerGroup* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DaskWorkerGroup) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DaskWorkerGroup) - MergeFrom(*source); - } -} - -void DaskWorkerGroup::MergeFrom(const DaskWorkerGroup& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DaskWorkerGroup) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.number_of_workers() != 0) { - set_number_of_workers(from.number_of_workers()); - } -} - -void DaskWorkerGroup::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DaskWorkerGroup) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DaskWorkerGroup::CopyFrom(const DaskWorkerGroup& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DaskWorkerGroup) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DaskWorkerGroup::IsInitialized() const { - return true; -} - -void DaskWorkerGroup::Swap(DaskWorkerGroup* other) { - if (other == this) return; - InternalSwap(other); -} -void DaskWorkerGroup::InternalSwap(DaskWorkerGroup* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); - swap(number_of_workers_, other->number_of_workers_); -} - -::google::protobuf::Metadata DaskWorkerGroup::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fdask_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fdask_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DaskJob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskScheduler* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskScheduler >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DaskScheduler >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DaskWorkerGroup* Arena::CreateMaybeMessage< ::flyteidl::plugins::DaskWorkerGroup >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DaskWorkerGroup >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h deleted file mode 100644 index e1371fc2a3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/dask.pb.h +++ /dev/null @@ -1,814 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/dask.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/tasks.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fdask_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fdask_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fdask_2eproto(); -namespace flyteidl { -namespace plugins { -class DaskJob; -class DaskJobDefaultTypeInternal; -extern DaskJobDefaultTypeInternal _DaskJob_default_instance_; -class DaskScheduler; -class DaskSchedulerDefaultTypeInternal; -extern DaskSchedulerDefaultTypeInternal _DaskScheduler_default_instance_; -class DaskWorkerGroup; -class DaskWorkerGroupDefaultTypeInternal; -extern DaskWorkerGroupDefaultTypeInternal _DaskWorkerGroup_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::DaskJob* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskJob>(Arena*); -template<> ::flyteidl::plugins::DaskScheduler* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskScheduler>(Arena*); -template<> ::flyteidl::plugins::DaskWorkerGroup* Arena::CreateMaybeMessage<::flyteidl::plugins::DaskWorkerGroup>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class DaskJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskJob) */ { - public: - DaskJob(); - virtual ~DaskJob(); - - DaskJob(const DaskJob& from); - - inline DaskJob& operator=(const DaskJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DaskJob(DaskJob&& from) noexcept - : DaskJob() { - *this = ::std::move(from); - } - - inline DaskJob& operator=(DaskJob&& 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 DaskJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DaskJob* internal_default_instance() { - return reinterpret_cast( - &_DaskJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DaskJob* other); - friend void swap(DaskJob& a, DaskJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DaskJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - DaskJob* 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 DaskJob& from); - void MergeFrom(const DaskJob& 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(DaskJob* 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.plugins.DaskScheduler scheduler = 1; - bool has_scheduler() const; - void clear_scheduler(); - static const int kSchedulerFieldNumber = 1; - const ::flyteidl::plugins::DaskScheduler& scheduler() const; - ::flyteidl::plugins::DaskScheduler* release_scheduler(); - ::flyteidl::plugins::DaskScheduler* mutable_scheduler(); - void set_allocated_scheduler(::flyteidl::plugins::DaskScheduler* scheduler); - - // .flyteidl.plugins.DaskWorkerGroup workers = 2; - bool has_workers() const; - void clear_workers(); - static const int kWorkersFieldNumber = 2; - const ::flyteidl::plugins::DaskWorkerGroup& workers() const; - ::flyteidl::plugins::DaskWorkerGroup* release_workers(); - ::flyteidl::plugins::DaskWorkerGroup* mutable_workers(); - void set_allocated_workers(::flyteidl::plugins::DaskWorkerGroup* workers); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::DaskScheduler* scheduler_; - ::flyteidl::plugins::DaskWorkerGroup* workers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; -}; -// ------------------------------------------------------------------- - -class DaskScheduler final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskScheduler) */ { - public: - DaskScheduler(); - virtual ~DaskScheduler(); - - DaskScheduler(const DaskScheduler& from); - - inline DaskScheduler& operator=(const DaskScheduler& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DaskScheduler(DaskScheduler&& from) noexcept - : DaskScheduler() { - *this = ::std::move(from); - } - - inline DaskScheduler& operator=(DaskScheduler&& 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 DaskScheduler& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DaskScheduler* internal_default_instance() { - return reinterpret_cast( - &_DaskScheduler_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DaskScheduler* other); - friend void swap(DaskScheduler& a, DaskScheduler& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DaskScheduler* New() const final { - return CreateMaybeMessage(nullptr); - } - - DaskScheduler* 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 DaskScheduler& from); - void MergeFrom(const DaskScheduler& 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(DaskScheduler* 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 ------------------------------------------------------- - - // string image = 1; - void clear_image(); - static const int kImageFieldNumber = 1; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 2; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 2; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskScheduler) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; -}; -// ------------------------------------------------------------------- - -class DaskWorkerGroup final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DaskWorkerGroup) */ { - public: - DaskWorkerGroup(); - virtual ~DaskWorkerGroup(); - - DaskWorkerGroup(const DaskWorkerGroup& from); - - inline DaskWorkerGroup& operator=(const DaskWorkerGroup& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DaskWorkerGroup(DaskWorkerGroup&& from) noexcept - : DaskWorkerGroup() { - *this = ::std::move(from); - } - - inline DaskWorkerGroup& operator=(DaskWorkerGroup&& 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 DaskWorkerGroup& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DaskWorkerGroup* internal_default_instance() { - return reinterpret_cast( - &_DaskWorkerGroup_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(DaskWorkerGroup* other); - friend void swap(DaskWorkerGroup& a, DaskWorkerGroup& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DaskWorkerGroup* New() const final { - return CreateMaybeMessage(nullptr); - } - - DaskWorkerGroup* 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 DaskWorkerGroup& from); - void MergeFrom(const DaskWorkerGroup& 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(DaskWorkerGroup* 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 ------------------------------------------------------- - - // string image = 2; - void clear_image(); - static const int kImageFieldNumber = 2; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 3; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 3; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // uint32 number_of_workers = 1; - void clear_number_of_workers(); - static const int kNumberOfWorkersFieldNumber = 1; - ::google::protobuf::uint32 number_of_workers() const; - void set_number_of_workers(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskWorkerGroup) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - ::google::protobuf::uint32 number_of_workers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fdask_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DaskJob - -// .flyteidl.plugins.DaskScheduler scheduler = 1; -inline bool DaskJob::has_scheduler() const { - return this != internal_default_instance() && scheduler_ != nullptr; -} -inline void DaskJob::clear_scheduler() { - if (GetArenaNoVirtual() == nullptr && scheduler_ != nullptr) { - delete scheduler_; - } - scheduler_ = nullptr; -} -inline const ::flyteidl::plugins::DaskScheduler& DaskJob::scheduler() const { - const ::flyteidl::plugins::DaskScheduler* p = scheduler_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskJob.scheduler) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_DaskScheduler_default_instance_); -} -inline ::flyteidl::plugins::DaskScheduler* DaskJob::release_scheduler() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskJob.scheduler) - - ::flyteidl::plugins::DaskScheduler* temp = scheduler_; - scheduler_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::DaskScheduler* DaskJob::mutable_scheduler() { - - if (scheduler_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::DaskScheduler>(GetArenaNoVirtual()); - scheduler_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskJob.scheduler) - return scheduler_; -} -inline void DaskJob::set_allocated_scheduler(::flyteidl::plugins::DaskScheduler* scheduler) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete scheduler_; - } - if (scheduler) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - scheduler = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scheduler, submessage_arena); - } - - } else { - - } - scheduler_ = scheduler; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskJob.scheduler) -} - -// .flyteidl.plugins.DaskWorkerGroup workers = 2; -inline bool DaskJob::has_workers() const { - return this != internal_default_instance() && workers_ != nullptr; -} -inline void DaskJob::clear_workers() { - if (GetArenaNoVirtual() == nullptr && workers_ != nullptr) { - delete workers_; - } - workers_ = nullptr; -} -inline const ::flyteidl::plugins::DaskWorkerGroup& DaskJob::workers() const { - const ::flyteidl::plugins::DaskWorkerGroup* p = workers_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskJob.workers) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_DaskWorkerGroup_default_instance_); -} -inline ::flyteidl::plugins::DaskWorkerGroup* DaskJob::release_workers() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskJob.workers) - - ::flyteidl::plugins::DaskWorkerGroup* temp = workers_; - workers_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::DaskWorkerGroup* DaskJob::mutable_workers() { - - if (workers_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::DaskWorkerGroup>(GetArenaNoVirtual()); - workers_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskJob.workers) - return workers_; -} -inline void DaskJob::set_allocated_workers(::flyteidl::plugins::DaskWorkerGroup* workers) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete workers_; - } - if (workers) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - workers = ::google::protobuf::internal::GetOwnedMessage( - message_arena, workers, submessage_arena); - } - - } else { - - } - workers_ = workers; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskJob.workers) -} - -// ------------------------------------------------------------------- - -// DaskScheduler - -// string image = 1; -inline void DaskScheduler::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DaskScheduler::image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskScheduler.image) - return image_.GetNoArena(); -} -inline void DaskScheduler::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskScheduler.image) -} -#if LANG_CXX11 -inline void DaskScheduler::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.DaskScheduler.image) -} -#endif -inline void DaskScheduler::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.DaskScheduler.image) -} -inline void DaskScheduler::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.DaskScheduler.image) -} -inline ::std::string* DaskScheduler::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskScheduler.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DaskScheduler::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskScheduler.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DaskScheduler::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskScheduler.image) -} - -// .flyteidl.core.Resources resources = 2; -inline bool DaskScheduler::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& DaskScheduler::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskScheduler.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* DaskScheduler::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskScheduler.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* DaskScheduler::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskScheduler.resources) - return resources_; -} -inline void DaskScheduler::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskScheduler.resources) -} - -// ------------------------------------------------------------------- - -// DaskWorkerGroup - -// uint32 number_of_workers = 1; -inline void DaskWorkerGroup::clear_number_of_workers() { - number_of_workers_ = 0u; -} -inline ::google::protobuf::uint32 DaskWorkerGroup::number_of_workers() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.number_of_workers) - return number_of_workers_; -} -inline void DaskWorkerGroup::set_number_of_workers(::google::protobuf::uint32 value) { - - number_of_workers_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskWorkerGroup.number_of_workers) -} - -// string image = 2; -inline void DaskWorkerGroup::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DaskWorkerGroup::image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.image) - return image_.GetNoArena(); -} -inline void DaskWorkerGroup::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.DaskWorkerGroup.image) -} -#if LANG_CXX11 -inline void DaskWorkerGroup::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.DaskWorkerGroup.image) -} -#endif -inline void DaskWorkerGroup::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.DaskWorkerGroup.image) -} -inline void DaskWorkerGroup::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.DaskWorkerGroup.image) -} -inline ::std::string* DaskWorkerGroup::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskWorkerGroup.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DaskWorkerGroup::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskWorkerGroup.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DaskWorkerGroup::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskWorkerGroup.image) -} - -// .flyteidl.core.Resources resources = 3; -inline bool DaskWorkerGroup::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& DaskWorkerGroup::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.DaskWorkerGroup.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* DaskWorkerGroup::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DaskWorkerGroup.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* DaskWorkerGroup::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DaskWorkerGroup.resources) - return resources_; -} -inline void DaskWorkerGroup::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DaskWorkerGroup.resources) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fdask_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc deleted file mode 100644 index 97c9820090..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/common.proto - -#include "flyteidl/plugins/kubeflow/common.pb.h" -#include "flyteidl/plugins/kubeflow/common.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace flyteidl -} // namespace plugins -} // namespace kubeflow - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h deleted file mode 100644 index 010f31fab1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/common.proto -#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED - -#include "flyteidl/plugins/kubeflow/common.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc deleted file mode 100644 index c94c733714..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.cc +++ /dev/null @@ -1,548 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/common.proto - -#include "flyteidl/plugins/kubeflow/common.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class RunPolicyDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RunPolicy_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsRunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::RunPolicy(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::RunPolicy::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsRunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto}, {}}; - -void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[1]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[2]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, clean_pod_policy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, ttl_seconds_after_finished_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, active_deadline_seconds_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::RunPolicy, backoff_limit_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::kubeflow::RunPolicy)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, "flyteidl/plugins/kubeflow/common.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[] = - "\n&flyteidl/plugins/kubeflow/common.proto" - "\022\031flyteidl.plugins.kubeflow\"\254\001\n\tRunPolic" - "y\022C\n\020clean_pod_policy\030\001 \001(\0162).flyteidl.p" - "lugins.kubeflow.CleanPodPolicy\022\"\n\032ttl_se" - "conds_after_finished\030\002 \001(\005\022\037\n\027active_dea" - "dline_seconds\030\003 \001(\005\022\025\n\rbackoff_limit\030\004 \001" - "(\005*c\n\rRestartPolicy\022\030\n\024RESTART_POLICY_NE" - "VER\020\000\022\035\n\031RESTART_POLICY_ON_FAILURE\020\001\022\031\n\025" - "RESTART_POLICY_ALWAYS\020\002*`\n\016CleanPodPolic" - "y\022\030\n\024CLEANPOD_POLICY_NONE\020\000\022\033\n\027CLEANPOD_" - "POLICY_RUNNING\020\001\022\027\n\023CLEANPOD_POLICY_ALL\020" - "\002B\?Z=github.com/flyteorg/flyte/flyteidl/" - "gen/pb-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, - "flyteidl/plugins/kubeflow/common.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, 514, -}; - -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { -const ::google::protobuf::EnumDescriptor* RestartPolicy_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[0]; -} -bool RestartPolicy_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - -const ::google::protobuf::EnumDescriptor* CleanPodPolicy_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[1]; -} -bool CleanPodPolicy_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - return true; - default: - return false; - } -} - - -// =================================================================== - -void RunPolicy::InitAsDefaultInstance() { -} -class RunPolicy::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RunPolicy::kCleanPodPolicyFieldNumber; -const int RunPolicy::kTtlSecondsAfterFinishedFieldNumber; -const int RunPolicy::kActiveDeadlineSecondsFieldNumber; -const int RunPolicy::kBackoffLimitFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RunPolicy::RunPolicy() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.RunPolicy) -} -RunPolicy::RunPolicy(const RunPolicy& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&clean_pod_policy_, &from.clean_pod_policy_, - static_cast(reinterpret_cast(&backoff_limit_) - - reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.RunPolicy) -} - -void RunPolicy::SharedCtor() { - ::memset(&clean_pod_policy_, 0, static_cast( - reinterpret_cast(&backoff_limit_) - - reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); -} - -RunPolicy::~RunPolicy() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.RunPolicy) - SharedDtor(); -} - -void RunPolicy::SharedDtor() { -} - -void RunPolicy::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RunPolicy& RunPolicy::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base); - return *internal_default_instance(); -} - - -void RunPolicy::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.RunPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&clean_pod_policy_, 0, static_cast( - reinterpret_cast(&backoff_limit_) - - reinterpret_cast(&clean_pod_policy_)) + sizeof(backoff_limit_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RunPolicy::_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.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_clean_pod_policy(static_cast<::flyteidl::plugins::kubeflow::CleanPodPolicy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 ttl_seconds_after_finished = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_ttl_seconds_after_finished(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 active_deadline_seconds = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_active_deadline_seconds(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 backoff_limit = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_backoff_limit(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RunPolicy::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.plugins.kubeflow.RunPolicy) - 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.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_clean_pod_policy(static_cast< ::flyteidl::plugins::kubeflow::CleanPodPolicy >(value)); - } else { - goto handle_unusual; - } - break; - } - - // int32 ttl_seconds_after_finished = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ttl_seconds_after_finished_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 active_deadline_seconds = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &active_deadline_seconds_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 backoff_limit = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &backoff_limit_))); - } 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.plugins.kubeflow.RunPolicy) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.RunPolicy) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RunPolicy::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.RunPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - if (this->clean_pod_policy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->clean_pod_policy(), output); - } - - // int32 ttl_seconds_after_finished = 2; - if (this->ttl_seconds_after_finished() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ttl_seconds_after_finished(), output); - } - - // int32 active_deadline_seconds = 3; - if (this->active_deadline_seconds() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->active_deadline_seconds(), output); - } - - // int32 backoff_limit = 4; - if (this->backoff_limit() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->backoff_limit(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.RunPolicy) -} - -::google::protobuf::uint8* RunPolicy::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.RunPolicy) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - if (this->clean_pod_policy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->clean_pod_policy(), target); - } - - // int32 ttl_seconds_after_finished = 2; - if (this->ttl_seconds_after_finished() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ttl_seconds_after_finished(), target); - } - - // int32 active_deadline_seconds = 3; - if (this->active_deadline_seconds() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->active_deadline_seconds(), target); - } - - // int32 backoff_limit = 4; - if (this->backoff_limit() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->backoff_limit(), 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.plugins.kubeflow.RunPolicy) - return target; -} - -size_t RunPolicy::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.RunPolicy) - 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.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - if (this->clean_pod_policy() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->clean_pod_policy()); - } - - // int32 ttl_seconds_after_finished = 2; - if (this->ttl_seconds_after_finished() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ttl_seconds_after_finished()); - } - - // int32 active_deadline_seconds = 3; - if (this->active_deadline_seconds() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->active_deadline_seconds()); - } - - // int32 backoff_limit = 4; - if (this->backoff_limit() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->backoff_limit()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RunPolicy::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.RunPolicy) - GOOGLE_DCHECK_NE(&from, this); - const RunPolicy* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.RunPolicy) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.RunPolicy) - MergeFrom(*source); - } -} - -void RunPolicy::MergeFrom(const RunPolicy& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.RunPolicy) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.clean_pod_policy() != 0) { - set_clean_pod_policy(from.clean_pod_policy()); - } - if (from.ttl_seconds_after_finished() != 0) { - set_ttl_seconds_after_finished(from.ttl_seconds_after_finished()); - } - if (from.active_deadline_seconds() != 0) { - set_active_deadline_seconds(from.active_deadline_seconds()); - } - if (from.backoff_limit() != 0) { - set_backoff_limit(from.backoff_limit()); - } -} - -void RunPolicy::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.RunPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RunPolicy::CopyFrom(const RunPolicy& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.RunPolicy) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RunPolicy::IsInitialized() const { - return true; -} - -void RunPolicy::Swap(RunPolicy* other) { - if (other == this) return; - InternalSwap(other); -} -void RunPolicy::InternalSwap(RunPolicy* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(clean_pod_policy_, other->clean_pod_policy_); - swap(ttl_seconds_after_finished_, other->ttl_seconds_after_finished_); - swap(active_deadline_seconds_, other->active_deadline_seconds_); - swap(backoff_limit_, other->backoff_limit_); -} - -::google::protobuf::Metadata RunPolicy::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::RunPolicy* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::RunPolicy >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::RunPolicy >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h deleted file mode 100644 index de4d80d2aa..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/common.pb.h +++ /dev/null @@ -1,344 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/common.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class RunPolicy; -class RunPolicyDefaultTypeInternal; -extern RunPolicyDefaultTypeInternal _RunPolicy_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::kubeflow::RunPolicy* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -enum RestartPolicy { - RESTART_POLICY_NEVER = 0, - RESTART_POLICY_ON_FAILURE = 1, - RESTART_POLICY_ALWAYS = 2, - RestartPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - RestartPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool RestartPolicy_IsValid(int value); -const RestartPolicy RestartPolicy_MIN = RESTART_POLICY_NEVER; -const RestartPolicy RestartPolicy_MAX = RESTART_POLICY_ALWAYS; -const int RestartPolicy_ARRAYSIZE = RestartPolicy_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RestartPolicy_descriptor(); -inline const ::std::string& RestartPolicy_Name(RestartPolicy value) { - return ::google::protobuf::internal::NameOfEnum( - RestartPolicy_descriptor(), value); -} -inline bool RestartPolicy_Parse( - const ::std::string& name, RestartPolicy* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RestartPolicy_descriptor(), name, value); -} -enum CleanPodPolicy { - CLEANPOD_POLICY_NONE = 0, - CLEANPOD_POLICY_RUNNING = 1, - CLEANPOD_POLICY_ALL = 2, - CleanPodPolicy_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - CleanPodPolicy_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool CleanPodPolicy_IsValid(int value); -const CleanPodPolicy CleanPodPolicy_MIN = CLEANPOD_POLICY_NONE; -const CleanPodPolicy CleanPodPolicy_MAX = CLEANPOD_POLICY_ALL; -const int CleanPodPolicy_ARRAYSIZE = CleanPodPolicy_MAX + 1; - -const ::google::protobuf::EnumDescriptor* CleanPodPolicy_descriptor(); -inline const ::std::string& CleanPodPolicy_Name(CleanPodPolicy value) { - return ::google::protobuf::internal::NameOfEnum( - CleanPodPolicy_descriptor(), value); -} -inline bool CleanPodPolicy_Parse( - const ::std::string& name, CleanPodPolicy* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CleanPodPolicy_descriptor(), name, value); -} -// =================================================================== - -class RunPolicy final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.RunPolicy) */ { - public: - RunPolicy(); - virtual ~RunPolicy(); - - RunPolicy(const RunPolicy& from); - - inline RunPolicy& operator=(const RunPolicy& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RunPolicy(RunPolicy&& from) noexcept - : RunPolicy() { - *this = ::std::move(from); - } - - inline RunPolicy& operator=(RunPolicy&& 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 RunPolicy& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RunPolicy* internal_default_instance() { - return reinterpret_cast( - &_RunPolicy_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(RunPolicy* other); - friend void swap(RunPolicy& a, RunPolicy& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RunPolicy* New() const final { - return CreateMaybeMessage(nullptr); - } - - RunPolicy* 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 RunPolicy& from); - void MergeFrom(const RunPolicy& 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(RunPolicy* 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.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - void clear_clean_pod_policy(); - static const int kCleanPodPolicyFieldNumber = 1; - ::flyteidl::plugins::kubeflow::CleanPodPolicy clean_pod_policy() const; - void set_clean_pod_policy(::flyteidl::plugins::kubeflow::CleanPodPolicy value); - - // int32 ttl_seconds_after_finished = 2; - void clear_ttl_seconds_after_finished(); - static const int kTtlSecondsAfterFinishedFieldNumber = 2; - ::google::protobuf::int32 ttl_seconds_after_finished() const; - void set_ttl_seconds_after_finished(::google::protobuf::int32 value); - - // int32 active_deadline_seconds = 3; - void clear_active_deadline_seconds(); - static const int kActiveDeadlineSecondsFieldNumber = 3; - ::google::protobuf::int32 active_deadline_seconds() const; - void set_active_deadline_seconds(::google::protobuf::int32 value); - - // int32 backoff_limit = 4; - void clear_backoff_limit(); - static const int kBackoffLimitFieldNumber = 4; - ::google::protobuf::int32 backoff_limit() const; - void set_backoff_limit(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.RunPolicy) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int clean_pod_policy_; - ::google::protobuf::int32 ttl_seconds_after_finished_; - ::google::protobuf::int32 active_deadline_seconds_; - ::google::protobuf::int32 backoff_limit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// RunPolicy - -// .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; -inline void RunPolicy::clear_clean_pod_policy() { - clean_pod_policy_ = 0; -} -inline ::flyteidl::plugins::kubeflow::CleanPodPolicy RunPolicy::clean_pod_policy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy) - return static_cast< ::flyteidl::plugins::kubeflow::CleanPodPolicy >(clean_pod_policy_); -} -inline void RunPolicy::set_clean_pod_policy(::flyteidl::plugins::kubeflow::CleanPodPolicy value) { - - clean_pod_policy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.clean_pod_policy) -} - -// int32 ttl_seconds_after_finished = 2; -inline void RunPolicy::clear_ttl_seconds_after_finished() { - ttl_seconds_after_finished_ = 0; -} -inline ::google::protobuf::int32 RunPolicy::ttl_seconds_after_finished() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.ttl_seconds_after_finished) - return ttl_seconds_after_finished_; -} -inline void RunPolicy::set_ttl_seconds_after_finished(::google::protobuf::int32 value) { - - ttl_seconds_after_finished_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.ttl_seconds_after_finished) -} - -// int32 active_deadline_seconds = 3; -inline void RunPolicy::clear_active_deadline_seconds() { - active_deadline_seconds_ = 0; -} -inline ::google::protobuf::int32 RunPolicy::active_deadline_seconds() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.active_deadline_seconds) - return active_deadline_seconds_; -} -inline void RunPolicy::set_active_deadline_seconds(::google::protobuf::int32 value) { - - active_deadline_seconds_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.active_deadline_seconds) -} - -// int32 backoff_limit = 4; -inline void RunPolicy::clear_backoff_limit() { - backoff_limit_ = 0; -} -inline ::google::protobuf::int32 RunPolicy::backoff_limit() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.RunPolicy.backoff_limit) - return backoff_limit_; -} -inline void RunPolicy::set_backoff_limit(::google::protobuf::int32 value) { - - backoff_limit_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.RunPolicy.backoff_limit) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::kubeflow::RestartPolicy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::kubeflow::RestartPolicy>() { - return ::flyteidl::plugins::kubeflow::RestartPolicy_descriptor(); -} -template <> struct is_proto_enum< ::flyteidl::plugins::kubeflow::CleanPodPolicy> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::kubeflow::CleanPodPolicy>() { - return ::flyteidl::plugins::kubeflow::CleanPodPolicy_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc deleted file mode 100644 index bbf565e022..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/mpi.proto - -#include "flyteidl/plugins/kubeflow/mpi.pb.h" -#include "flyteidl/plugins/kubeflow/mpi.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace flyteidl -} // namespace plugins -} // namespace kubeflow - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h deleted file mode 100644 index c6570dd363..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/mpi.proto -#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED - -#include "flyteidl/plugins/kubeflow/mpi.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc deleted file mode 100644 index e996cb62d6..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.cc +++ /dev/null @@ -1,1174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/mpi.proto - -#include "flyteidl/plugins/kubeflow/mpi.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class DistributedMPITrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedMPITrainingTask_default_instance_; -class DistributedMPITrainingReplicaSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedMPITrainingReplicaSpec_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto}, { - &scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base, - &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base,}}; - -static void InitDefaultsDistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[2]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, worker_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, launcher_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, run_policy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask, slots_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, restart_policy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec, command_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedMPITrainingTask)}, - { 9, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_), - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, "flyteidl/plugins/kubeflow/mpi.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[] = - "\n#flyteidl/plugins/kubeflow/mpi.proto\022\031f" - "lyteidl.plugins.kubeflow\032\031flyteidl/core/" - "tasks.proto\032&flyteidl/plugins/kubeflow/c" - "ommon.proto\"\225\002\n\032DistributedMPITrainingTa" - "sk\022U\n\017worker_replicas\030\001 \001(\0132<.flyteidl.p" - "lugins.kubeflow.DistributedMPITrainingRe" - "plicaSpec\022W\n\021launcher_replicas\030\002 \001(\0132<.f" - "lyteidl.plugins.kubeflow.DistributedMPIT" - "rainingReplicaSpec\0228\n\nrun_policy\030\003 \001(\0132$" - ".flyteidl.plugins.kubeflow.RunPolicy\022\r\n\005" - "slots\030\004 \001(\005\"\304\001\n!DistributedMPITrainingRe" - "plicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001" - "(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Re" - "sources\022@\n\016restart_policy\030\004 \001(\0162(.flytei" - "dl.plugins.kubeflow.RestartPolicy\022\017\n\007com" - "mand\030\005 \003(\tB\?Z=github.com/flyteorg/flyte/" - "flyteidl/gen/pb-go/flyteidl/pluginsb\006pro" - "to3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, - "flyteidl/plugins/kubeflow/mpi.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, 683, -}; - -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -void DistributedMPITrainingTask::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->launcher_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedMPITrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( - ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); -} -class DistributedMPITrainingTask::HasBitSetters { - public: - static const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& worker_replicas(const DistributedMPITrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& launcher_replicas(const DistributedMPITrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedMPITrainingTask* msg); -}; - -const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& -DistributedMPITrainingTask::HasBitSetters::worker_replicas(const DistributedMPITrainingTask* msg) { - return *msg->worker_replicas_; -} -const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& -DistributedMPITrainingTask::HasBitSetters::launcher_replicas(const DistributedMPITrainingTask* msg) { - return *msg->launcher_replicas_; -} -const ::flyteidl::plugins::kubeflow::RunPolicy& -DistributedMPITrainingTask::HasBitSetters::run_policy(const DistributedMPITrainingTask* msg) { - return *msg->run_policy_; -} -void DistributedMPITrainingTask::clear_run_policy() { - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedMPITrainingTask::kWorkerReplicasFieldNumber; -const int DistributedMPITrainingTask::kLauncherReplicasFieldNumber; -const int DistributedMPITrainingTask::kRunPolicyFieldNumber; -const int DistributedMPITrainingTask::kSlotsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedMPITrainingTask::DistributedMPITrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) -} -DistributedMPITrainingTask::DistributedMPITrainingTask(const DistributedMPITrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_worker_replicas()) { - worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(*from.worker_replicas_); - } else { - worker_replicas_ = nullptr; - } - if (from.has_launcher_replicas()) { - launcher_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec(*from.launcher_replicas_); - } else { - launcher_replicas_ = nullptr; - } - if (from.has_run_policy()) { - run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); - } else { - run_policy_ = nullptr; - } - slots_ = from.slots_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) -} - -void DistributedMPITrainingTask::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); - ::memset(&worker_replicas_, 0, static_cast( - reinterpret_cast(&slots_) - - reinterpret_cast(&worker_replicas_)) + sizeof(slots_)); -} - -DistributedMPITrainingTask::~DistributedMPITrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - SharedDtor(); -} - -void DistributedMPITrainingTask::SharedDtor() { - if (this != internal_default_instance()) delete worker_replicas_; - if (this != internal_default_instance()) delete launcher_replicas_; - if (this != internal_default_instance()) delete run_policy_; -} - -void DistributedMPITrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedMPITrainingTask& DistributedMPITrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedMPITrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && launcher_replicas_ != nullptr) { - delete launcher_replicas_; - } - launcher_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; - slots_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedMPITrainingTask::_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.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 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::plugins::kubeflow::DistributedMPITrainingReplicaSpec::_InternalParse; - object = msg->mutable_worker_replicas(); - 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 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::plugins::kubeflow::DistributedMPITrainingReplicaSpec::_InternalParse; - object = msg->mutable_launcher_replicas(); - 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.plugins.kubeflow.RunPolicy run_policy = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; - object = msg->mutable_run_policy(); - 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; - } - // int32 slots = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_slots(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 DistributedMPITrainingTask::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.plugins.kubeflow.DistributedMPITrainingTask) - 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_worker_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_launcher_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_run_policy())); - } else { - goto handle_unusual; - } - break; - } - - // int32 slots = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &slots_))); - } 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.plugins.kubeflow.DistributedMPITrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedMPITrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::worker_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - if (this->has_launcher_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::launcher_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::run_policy(this), output); - } - - // int32 slots = 4; - if (this->slots() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->slots(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) -} - -::google::protobuf::uint8* DistributedMPITrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::worker_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - if (this->has_launcher_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::launcher_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::run_policy(this), target); - } - - // int32 slots = 4; - if (this->slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->slots(), 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.plugins.kubeflow.DistributedMPITrainingTask) - return target; -} - -size_t DistributedMPITrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *worker_replicas_); - } - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - if (this->has_launcher_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *launcher_replicas_); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *run_policy_); - } - - // int32 slots = 4; - if (this->slots() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->slots()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedMPITrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedMPITrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - MergeFrom(*source); - } -} - -void DistributedMPITrainingTask::MergeFrom(const DistributedMPITrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - 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_worker_replicas()) { - mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::MergeFrom(from.worker_replicas()); - } - if (from.has_launcher_replicas()) { - mutable_launcher_replicas()->::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec::MergeFrom(from.launcher_replicas()); - } - if (from.has_run_policy()) { - mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); - } - if (from.slots() != 0) { - set_slots(from.slots()); - } -} - -void DistributedMPITrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedMPITrainingTask::CopyFrom(const DistributedMPITrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedMPITrainingTask::IsInitialized() const { - return true; -} - -void DistributedMPITrainingTask::Swap(DistributedMPITrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedMPITrainingTask::InternalSwap(DistributedMPITrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(worker_replicas_, other->worker_replicas_); - swap(launcher_replicas_, other->launcher_replicas_); - swap(run_policy_, other->run_policy_); - swap(slots_, other->slots_); -} - -::google::protobuf::Metadata DistributedMPITrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DistributedMPITrainingReplicaSpec::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); -} -class DistributedMPITrainingReplicaSpec::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const DistributedMPITrainingReplicaSpec* msg); -}; - -const ::flyteidl::core::Resources& -DistributedMPITrainingReplicaSpec::HasBitSetters::resources(const DistributedMPITrainingReplicaSpec* msg) { - return *msg->resources_; -} -void DistributedMPITrainingReplicaSpec::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedMPITrainingReplicaSpec::kReplicasFieldNumber; -const int DistributedMPITrainingReplicaSpec::kImageFieldNumber; -const int DistributedMPITrainingReplicaSpec::kResourcesFieldNumber; -const int DistributedMPITrainingReplicaSpec::kRestartPolicyFieldNumber; -const int DistributedMPITrainingReplicaSpec::kCommandFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedMPITrainingReplicaSpec::DistributedMPITrainingReplicaSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) -} -DistributedMPITrainingReplicaSpec::DistributedMPITrainingReplicaSpec(const DistributedMPITrainingReplicaSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - command_(from.command_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - ::memcpy(&replicas_, &from.replicas_, - static_cast(reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) -} - -void DistributedMPITrainingReplicaSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&resources_)) + sizeof(restart_policy_)); -} - -DistributedMPITrainingReplicaSpec::~DistributedMPITrainingReplicaSpec() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - SharedDtor(); -} - -void DistributedMPITrainingReplicaSpec::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; -} - -void DistributedMPITrainingReplicaSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedMPITrainingReplicaSpec& DistributedMPITrainingReplicaSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedMPITrainingReplicaSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - command_.Clear(); - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - ::memset(&replicas_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedMPITrainingReplicaSpec::_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) { - // int32 replicas = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // repeated string command = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); - object = msg->add_command(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DistributedMPITrainingReplicaSpec::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.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - 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)) { - // int32 replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // string image = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); - } else { - goto handle_unusual; - } - break; - } - - // repeated string command = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_command())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(this->command_size() - 1).data(), - static_cast(this->command(this->command_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command")); - } 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedMPITrainingReplicaSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->image(), output); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::resources(this), output); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->restart_policy(), output); - } - - // repeated string command = 5; - for (int i = 0, n = this->command_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(i).data(), static_cast(this->command(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->command(i), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) -} - -::google::protobuf::uint8* DistributedMPITrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->image(), target); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::resources(this), target); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->restart_policy(), target); - } - - // repeated string command = 5; - for (int i = 0, n = this->command_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->command(i).data(), static_cast(this->command(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->command(i), 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - return target; -} - -size_t DistributedMPITrainingReplicaSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - 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; - - // repeated string command = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->command_size()); - for (int i = 0, n = this->command_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->command(i)); - } - - // string image = 2; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // int32 replicas = 1; - if (this->replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->replicas()); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedMPITrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - const DistributedMPITrainingReplicaSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - MergeFrom(*source); - } -} - -void DistributedMPITrainingReplicaSpec::MergeFrom(const DistributedMPITrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - command_.MergeFrom(from.command_); - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.replicas() != 0) { - set_replicas(from.replicas()); - } - if (from.restart_policy() != 0) { - set_restart_policy(from.restart_policy()); - } -} - -void DistributedMPITrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedMPITrainingReplicaSpec::CopyFrom(const DistributedMPITrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedMPITrainingReplicaSpec::IsInitialized() const { - return true; -} - -void DistributedMPITrainingReplicaSpec::Swap(DistributedMPITrainingReplicaSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedMPITrainingReplicaSpec::InternalSwap(DistributedMPITrainingReplicaSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - command_.InternalSwap(CastToBase(&other->command_)); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); - swap(replicas_, other->replicas_); - swap(restart_policy_, other->restart_policy_); -} - -::google::protobuf::Metadata DistributedMPITrainingReplicaSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h deleted file mode 100644 index 46d41ed497..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/mpi.pb.h +++ /dev/null @@ -1,770 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/mpi.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/plugins/kubeflow/common.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class DistributedMPITrainingReplicaSpec; -class DistributedMPITrainingReplicaSpecDefaultTypeInternal; -extern DistributedMPITrainingReplicaSpecDefaultTypeInternal _DistributedMPITrainingReplicaSpec_default_instance_; -class DistributedMPITrainingTask; -class DistributedMPITrainingTaskDefaultTypeInternal; -extern DistributedMPITrainingTaskDefaultTypeInternal _DistributedMPITrainingTask_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(Arena*); -template<> ::flyteidl::plugins::kubeflow::DistributedMPITrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingTask>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -class DistributedMPITrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) */ { - public: - DistributedMPITrainingTask(); - virtual ~DistributedMPITrainingTask(); - - DistributedMPITrainingTask(const DistributedMPITrainingTask& from); - - inline DistributedMPITrainingTask& operator=(const DistributedMPITrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedMPITrainingTask(DistributedMPITrainingTask&& from) noexcept - : DistributedMPITrainingTask() { - *this = ::std::move(from); - } - - inline DistributedMPITrainingTask& operator=(DistributedMPITrainingTask&& 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 DistributedMPITrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedMPITrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedMPITrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DistributedMPITrainingTask* other); - friend void swap(DistributedMPITrainingTask& a, DistributedMPITrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedMPITrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedMPITrainingTask* 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 DistributedMPITrainingTask& from); - void MergeFrom(const DistributedMPITrainingTask& 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(DistributedMPITrainingTask* 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.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - bool has_worker_replicas() const; - void clear_worker_replicas(); - static const int kWorkerReplicasFieldNumber = 1; - const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& worker_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* release_worker_replicas(); - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* mutable_worker_replicas(); - void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas); - - // .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - bool has_launcher_replicas() const; - void clear_launcher_replicas(); - static const int kLauncherReplicasFieldNumber = 2; - const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& launcher_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* release_launcher_replicas(); - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* mutable_launcher_replicas(); - void set_allocated_launcher_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas); - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - bool has_run_policy() const; - void clear_run_policy(); - static const int kRunPolicyFieldNumber = 3; - const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; - ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); - ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); - void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); - - // int32 slots = 4; - void clear_slots(); - static const int kSlotsFieldNumber = 4; - ::google::protobuf::int32 slots() const; - void set_slots(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas_; - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas_; - ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; - ::google::protobuf::int32 slots_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; -}; -// ------------------------------------------------------------------- - -class DistributedMPITrainingReplicaSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) */ { - public: - DistributedMPITrainingReplicaSpec(); - virtual ~DistributedMPITrainingReplicaSpec(); - - DistributedMPITrainingReplicaSpec(const DistributedMPITrainingReplicaSpec& from); - - inline DistributedMPITrainingReplicaSpec& operator=(const DistributedMPITrainingReplicaSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedMPITrainingReplicaSpec(DistributedMPITrainingReplicaSpec&& from) noexcept - : DistributedMPITrainingReplicaSpec() { - *this = ::std::move(from); - } - - inline DistributedMPITrainingReplicaSpec& operator=(DistributedMPITrainingReplicaSpec&& 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 DistributedMPITrainingReplicaSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedMPITrainingReplicaSpec* internal_default_instance() { - return reinterpret_cast( - &_DistributedMPITrainingReplicaSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DistributedMPITrainingReplicaSpec* other); - friend void swap(DistributedMPITrainingReplicaSpec& a, DistributedMPITrainingReplicaSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedMPITrainingReplicaSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedMPITrainingReplicaSpec* 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 DistributedMPITrainingReplicaSpec& from); - void MergeFrom(const DistributedMPITrainingReplicaSpec& 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(DistributedMPITrainingReplicaSpec* 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 ------------------------------------------------------- - - // repeated string command = 5; - int command_size() const; - void clear_command(); - static const int kCommandFieldNumber = 5; - const ::std::string& command(int index) const; - ::std::string* mutable_command(int index); - void set_command(int index, const ::std::string& value); - #if LANG_CXX11 - void set_command(int index, ::std::string&& value); - #endif - void set_command(int index, const char* value); - void set_command(int index, const char* value, size_t size); - ::std::string* add_command(); - void add_command(const ::std::string& value); - #if LANG_CXX11 - void add_command(::std::string&& value); - #endif - void add_command(const char* value); - void add_command(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& command() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_command(); - - // string image = 2; - void clear_image(); - static const int kImageFieldNumber = 2; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 3; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 3; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // int32 replicas = 1; - void clear_replicas(); - static const int kReplicasFieldNumber = 1; - ::google::protobuf::int32 replicas() const; - void set_replicas(::google::protobuf::int32 value); - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - void clear_restart_policy(); - static const int kRestartPolicyFieldNumber = 4; - ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; - void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> command_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - ::google::protobuf::int32 replicas_; - int restart_policy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DistributedMPITrainingTask - -// .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; -inline bool DistributedMPITrainingTask::has_worker_replicas() const { - return this != internal_default_instance() && worker_replicas_ != nullptr; -} -inline void DistributedMPITrainingTask::clear_worker_replicas() { - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& DistributedMPITrainingTask::worker_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* p = worker_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::release_worker_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) - - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* temp = worker_replicas_; - worker_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::mutable_worker_replicas() { - - if (worker_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(GetArenaNoVirtual()); - worker_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) - return worker_replicas_; -} -inline void DistributedMPITrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* worker_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete worker_replicas_; - } - if (worker_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - worker_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, worker_replicas, submessage_arena); - } - - } else { - - } - worker_replicas_ = worker_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.worker_replicas) -} - -// .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; -inline bool DistributedMPITrainingTask::has_launcher_replicas() const { - return this != internal_default_instance() && launcher_replicas_ != nullptr; -} -inline void DistributedMPITrainingTask::clear_launcher_replicas() { - if (GetArenaNoVirtual() == nullptr && launcher_replicas_ != nullptr) { - delete launcher_replicas_; - } - launcher_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec& DistributedMPITrainingTask::launcher_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* p = launcher_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedMPITrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::release_launcher_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) - - ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* temp = launcher_replicas_; - launcher_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* DistributedMPITrainingTask::mutable_launcher_replicas() { - - if (launcher_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec>(GetArenaNoVirtual()); - launcher_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) - return launcher_replicas_; -} -inline void DistributedMPITrainingTask::set_allocated_launcher_replicas(::flyteidl::plugins::kubeflow::DistributedMPITrainingReplicaSpec* launcher_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete launcher_replicas_; - } - if (launcher_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - launcher_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, launcher_replicas, submessage_arena); - } - - } else { - - } - launcher_replicas_ = launcher_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.launcher_replicas) -} - -// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; -inline bool DistributedMPITrainingTask::has_run_policy() const { - return this != internal_default_instance() && run_policy_ != nullptr; -} -inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedMPITrainingTask::run_policy() const { - const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedMPITrainingTask::release_run_policy() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) - - ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; - run_policy_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedMPITrainingTask::mutable_run_policy() { - - if (run_policy_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); - run_policy_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) - return run_policy_; -} -inline void DistributedMPITrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); - } - if (run_policy) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - run_policy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, run_policy, submessage_arena); - } - - } else { - - } - run_policy_ = run_policy; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.run_policy) -} - -// int32 slots = 4; -inline void DistributedMPITrainingTask::clear_slots() { - slots_ = 0; -} -inline ::google::protobuf::int32 DistributedMPITrainingTask::slots() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.slots) - return slots_; -} -inline void DistributedMPITrainingTask::set_slots(::google::protobuf::int32 value) { - - slots_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingTask.slots) -} - -// ------------------------------------------------------------------- - -// DistributedMPITrainingReplicaSpec - -// int32 replicas = 1; -inline void DistributedMPITrainingReplicaSpec::clear_replicas() { - replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedMPITrainingReplicaSpec::replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.replicas) - return replicas_; -} -inline void DistributedMPITrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { - - replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.replicas) -} - -// string image = 2; -inline void DistributedMPITrainingReplicaSpec::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DistributedMPITrainingReplicaSpec::image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) - return image_.GetNoArena(); -} -inline void DistributedMPITrainingReplicaSpec::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) -} -#if LANG_CXX11 -inline void DistributedMPITrainingReplicaSpec::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) -} -#endif -inline void DistributedMPITrainingReplicaSpec::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) -} -inline void DistributedMPITrainingReplicaSpec::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) -} -inline ::std::string* DistributedMPITrainingReplicaSpec::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DistributedMPITrainingReplicaSpec::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DistributedMPITrainingReplicaSpec::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.image) -} - -// .flyteidl.core.Resources resources = 3; -inline bool DistributedMPITrainingReplicaSpec::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& DistributedMPITrainingReplicaSpec::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* DistributedMPITrainingReplicaSpec::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* DistributedMPITrainingReplicaSpec::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) - return resources_; -} -inline void DistributedMPITrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.resources) -} - -// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; -inline void DistributedMPITrainingReplicaSpec::clear_restart_policy() { - restart_policy_ = 0; -} -inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedMPITrainingReplicaSpec::restart_policy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy) - return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); -} -inline void DistributedMPITrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { - - restart_policy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.restart_policy) -} - -// repeated string command = 5; -inline int DistributedMPITrainingReplicaSpec::command_size() const { - return command_.size(); -} -inline void DistributedMPITrainingReplicaSpec::clear_command() { - command_.Clear(); -} -inline const ::std::string& DistributedMPITrainingReplicaSpec::command(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - return command_.Get(index); -} -inline ::std::string* DistributedMPITrainingReplicaSpec::mutable_command(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - return command_.Mutable(index); -} -inline void DistributedMPITrainingReplicaSpec::set_command(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - command_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void DistributedMPITrainingReplicaSpec::set_command(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - command_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void DistributedMPITrainingReplicaSpec::set_command(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - command_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -inline void DistributedMPITrainingReplicaSpec::set_command(int index, const char* value, size_t size) { - command_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -inline ::std::string* DistributedMPITrainingReplicaSpec::add_command() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - return command_.Add(); -} -inline void DistributedMPITrainingReplicaSpec::add_command(const ::std::string& value) { - command_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -#if LANG_CXX11 -inline void DistributedMPITrainingReplicaSpec::add_command(::std::string&& value) { - command_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -#endif -inline void DistributedMPITrainingReplicaSpec::add_command(const char* value) { - GOOGLE_DCHECK(value != nullptr); - command_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -inline void DistributedMPITrainingReplicaSpec::add_command(const char* value, size_t size) { - command_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -DistributedMPITrainingReplicaSpec::command() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - return command_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -DistributedMPITrainingReplicaSpec::mutable_command() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec.command) - return &command_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fmpi_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc deleted file mode 100644 index af2f89e97f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/pytorch.proto - -#include "flyteidl/plugins/kubeflow/pytorch.pb.h" -#include "flyteidl/plugins/kubeflow/pytorch.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace flyteidl -} // namespace plugins -} // namespace kubeflow - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h deleted file mode 100644 index 45c83cf06e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/pytorch.proto -#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED - -#include "flyteidl/plugins/kubeflow/pytorch.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc deleted file mode 100644 index 4193ba3c80..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.cc +++ /dev/null @@ -1,1641 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/pytorch.proto - -#include "flyteidl/plugins/kubeflow/pytorch.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class ElasticConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ElasticConfig_default_instance_; -class DistributedPyTorchTrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedPyTorchTrainingTask_default_instance_; -class DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedPyTorchTrainingReplicaSpec_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::ElasticConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::ElasticConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, {}}; - -static void InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, { - &scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base, - &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base, - &scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base,}}; - -static void InitDefaultsDistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[3]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, rdzv_backend_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, min_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, max_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, nproc_per_node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::ElasticConfig, max_restarts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, worker_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, master_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, run_policy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask, elastic_config_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec, restart_policy_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::kubeflow::ElasticConfig)}, - { 10, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask)}, - { 19, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_), - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, "flyteidl/plugins/kubeflow/pytorch.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[] = - "\n\'flyteidl/plugins/kubeflow/pytorch.prot" - "o\022\031flyteidl.plugins.kubeflow\032\031flyteidl/c" - "ore/tasks.proto\032&flyteidl/plugins/kubefl" - "ow/common.proto\"\177\n\rElasticConfig\022\024\n\014rdzv" - "_backend\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014" - "max_replicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001" - "(\005\022\024\n\014max_restarts\030\005 \001(\005\"\322\002\n\036Distributed" - "PyTorchTrainingTask\022Y\n\017worker_replicas\030\001" - " \001(\0132@.flyteidl.plugins.kubeflow.Distrib" - "utedPyTorchTrainingReplicaSpec\022Y\n\017master" - "_replicas\030\002 \001(\0132@.flyteidl.plugins.kubef" - "low.DistributedPyTorchTrainingReplicaSpe" - "c\0228\n\nrun_policy\030\003 \001(\0132$.flyteidl.plugins" - ".kubeflow.RunPolicy\022@\n\016elastic_config\030\004 " - "\001(\0132(.flyteidl.plugins.kubeflow.ElasticC" - "onfig\"\267\001\n%DistributedPyTorchTrainingRepl" - "icaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t" - "\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Reso" - "urces\022@\n\016restart_policy\030\004 \001(\0162(.flyteidl" - ".plugins.kubeflow.RestartPolicyB\?Z=githu" - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" - "flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, - "flyteidl/plugins/kubeflow/pytorch.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, 864, -}; - -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -void ElasticConfig::InitAsDefaultInstance() { -} -class ElasticConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ElasticConfig::kRdzvBackendFieldNumber; -const int ElasticConfig::kMinReplicasFieldNumber; -const int ElasticConfig::kMaxReplicasFieldNumber; -const int ElasticConfig::kNprocPerNodeFieldNumber; -const int ElasticConfig::kMaxRestartsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ElasticConfig::ElasticConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.ElasticConfig) -} -ElasticConfig::ElasticConfig(const ElasticConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.rdzv_backend().size() > 0) { - rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); - } - ::memcpy(&min_replicas_, &from.min_replicas_, - static_cast(reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.ElasticConfig) -} - -void ElasticConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&min_replicas_, 0, static_cast( - reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); -} - -ElasticConfig::~ElasticConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.ElasticConfig) - SharedDtor(); -} - -void ElasticConfig::SharedDtor() { - rdzv_backend_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ElasticConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ElasticConfig& ElasticConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ElasticConfig_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - return *internal_default_instance(); -} - - -void ElasticConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&min_replicas_, 0, static_cast( - reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ElasticConfig::_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) { - // string rdzv_backend = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); - object = msg->mutable_rdzv_backend(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int32 min_replicas = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 max_replicas = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 nproc_per_node = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_nproc_per_node(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 max_restarts = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_max_restarts(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ElasticConfig::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.plugins.kubeflow.ElasticConfig) - 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)) { - // string rdzv_backend = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_rdzv_backend())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend")); - } else { - goto handle_unusual; - } - break; - } - - // int32 min_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &min_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_replicas = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 nproc_per_node = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &nproc_per_node_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_restarts = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_restarts_))); - } 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.plugins.kubeflow.ElasticConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.ElasticConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ElasticConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->rdzv_backend(), output); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_replicas(), output); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_replicas(), output); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nproc_per_node(), output); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->max_restarts(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.ElasticConfig) -} - -::google::protobuf::uint8* ElasticConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->rdzv_backend(), target); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_replicas(), target); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_replicas(), target); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nproc_per_node(), target); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->max_restarts(), 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.plugins.kubeflow.ElasticConfig) - return target; -} - -size_t ElasticConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.ElasticConfig) - 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; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->rdzv_backend()); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->min_replicas()); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_replicas()); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->nproc_per_node()); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_restarts()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ElasticConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.ElasticConfig) - GOOGLE_DCHECK_NE(&from, this); - const ElasticConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.ElasticConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.ElasticConfig) - MergeFrom(*source); - } -} - -void ElasticConfig::MergeFrom(const ElasticConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.ElasticConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.rdzv_backend().size() > 0) { - - rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); - } - if (from.min_replicas() != 0) { - set_min_replicas(from.min_replicas()); - } - if (from.max_replicas() != 0) { - set_max_replicas(from.max_replicas()); - } - if (from.nproc_per_node() != 0) { - set_nproc_per_node(from.nproc_per_node()); - } - if (from.max_restarts() != 0) { - set_max_restarts(from.max_restarts()); - } -} - -void ElasticConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.ElasticConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ElasticConfig::CopyFrom(const ElasticConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.ElasticConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ElasticConfig::IsInitialized() const { - return true; -} - -void ElasticConfig::Swap(ElasticConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void ElasticConfig::InternalSwap(ElasticConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - rdzv_backend_.Swap(&other->rdzv_backend_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(min_replicas_, other->min_replicas_); - swap(max_replicas_, other->max_replicas_); - swap(nproc_per_node_, other->nproc_per_node_); - swap(max_restarts_, other->max_restarts_); -} - -::google::protobuf::Metadata ElasticConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DistributedPyTorchTrainingTask::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->master_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( - ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->elastic_config_ = const_cast< ::flyteidl::plugins::kubeflow::ElasticConfig*>( - ::flyteidl::plugins::kubeflow::ElasticConfig::internal_default_instance()); -} -class DistributedPyTorchTrainingTask::HasBitSetters { - public: - static const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& worker_replicas(const DistributedPyTorchTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& master_replicas(const DistributedPyTorchTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedPyTorchTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::ElasticConfig& elastic_config(const DistributedPyTorchTrainingTask* msg); -}; - -const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& -DistributedPyTorchTrainingTask::HasBitSetters::worker_replicas(const DistributedPyTorchTrainingTask* msg) { - return *msg->worker_replicas_; -} -const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& -DistributedPyTorchTrainingTask::HasBitSetters::master_replicas(const DistributedPyTorchTrainingTask* msg) { - return *msg->master_replicas_; -} -const ::flyteidl::plugins::kubeflow::RunPolicy& -DistributedPyTorchTrainingTask::HasBitSetters::run_policy(const DistributedPyTorchTrainingTask* msg) { - return *msg->run_policy_; -} -const ::flyteidl::plugins::kubeflow::ElasticConfig& -DistributedPyTorchTrainingTask::HasBitSetters::elastic_config(const DistributedPyTorchTrainingTask* msg) { - return *msg->elastic_config_; -} -void DistributedPyTorchTrainingTask::clear_run_policy() { - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedPyTorchTrainingTask::kWorkerReplicasFieldNumber; -const int DistributedPyTorchTrainingTask::kMasterReplicasFieldNumber; -const int DistributedPyTorchTrainingTask::kRunPolicyFieldNumber; -const int DistributedPyTorchTrainingTask::kElasticConfigFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) -} -DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_worker_replicas()) { - worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(*from.worker_replicas_); - } else { - worker_replicas_ = nullptr; - } - if (from.has_master_replicas()) { - master_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec(*from.master_replicas_); - } else { - master_replicas_ = nullptr; - } - if (from.has_run_policy()) { - run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); - } else { - run_policy_ = nullptr; - } - if (from.has_elastic_config()) { - elastic_config_ = new ::flyteidl::plugins::kubeflow::ElasticConfig(*from.elastic_config_); - } else { - elastic_config_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) -} - -void DistributedPyTorchTrainingTask::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - ::memset(&worker_replicas_, 0, static_cast( - reinterpret_cast(&elastic_config_) - - reinterpret_cast(&worker_replicas_)) + sizeof(elastic_config_)); -} - -DistributedPyTorchTrainingTask::~DistributedPyTorchTrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - SharedDtor(); -} - -void DistributedPyTorchTrainingTask::SharedDtor() { - if (this != internal_default_instance()) delete worker_replicas_; - if (this != internal_default_instance()) delete master_replicas_; - if (this != internal_default_instance()) delete run_policy_; - if (this != internal_default_instance()) delete elastic_config_; -} - -void DistributedPyTorchTrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedPyTorchTrainingTask& DistributedPyTorchTrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedPyTorchTrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && master_replicas_ != nullptr) { - delete master_replicas_; - } - master_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; - if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { - delete elastic_config_; - } - elastic_config_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedPyTorchTrainingTask::_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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 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::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::_InternalParse; - object = msg->mutable_worker_replicas(); - 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 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::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::_InternalParse; - object = msg->mutable_master_replicas(); - 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.plugins.kubeflow.RunPolicy run_policy = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; - object = msg->mutable_run_policy(); - 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.plugins.kubeflow.ElasticConfig elastic_config = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::ElasticConfig::_InternalParse; - object = msg->mutable_elastic_config(); - 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 DistributedPyTorchTrainingTask::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.plugins.kubeflow.DistributedPyTorchTrainingTask) - 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_worker_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_master_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_run_policy())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_elastic_config())); - } 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.plugins.kubeflow.DistributedPyTorchTrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedPyTorchTrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::worker_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - if (this->has_master_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::master_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::run_policy(this), output); - } - - // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - if (this->has_elastic_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::elastic_config(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) -} - -::google::protobuf::uint8* DistributedPyTorchTrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::worker_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - if (this->has_master_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::master_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::run_policy(this), target); - } - - // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - if (this->has_elastic_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::elastic_config(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.plugins.kubeflow.DistributedPyTorchTrainingTask) - return target; -} - -size_t DistributedPyTorchTrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *worker_replicas_); - } - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - if (this->has_master_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *master_replicas_); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - if (this->has_run_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *run_policy_); - } - - // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - if (this->has_elastic_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *elastic_config_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedPyTorchTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedPyTorchTrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - MergeFrom(*source); - } -} - -void DistributedPyTorchTrainingTask::MergeFrom(const DistributedPyTorchTrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - 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_worker_replicas()) { - mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::MergeFrom(from.worker_replicas()); - } - if (from.has_master_replicas()) { - mutable_master_replicas()->::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec::MergeFrom(from.master_replicas()); - } - if (from.has_run_policy()) { - mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); - } - if (from.has_elastic_config()) { - mutable_elastic_config()->::flyteidl::plugins::kubeflow::ElasticConfig::MergeFrom(from.elastic_config()); - } -} - -void DistributedPyTorchTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedPyTorchTrainingTask::CopyFrom(const DistributedPyTorchTrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedPyTorchTrainingTask::IsInitialized() const { - return true; -} - -void DistributedPyTorchTrainingTask::Swap(DistributedPyTorchTrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedPyTorchTrainingTask::InternalSwap(DistributedPyTorchTrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(worker_replicas_, other->worker_replicas_); - swap(master_replicas_, other->master_replicas_); - swap(run_policy_, other->run_policy_); - swap(elastic_config_, other->elastic_config_); -} - -::google::protobuf::Metadata DistributedPyTorchTrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DistributedPyTorchTrainingReplicaSpec::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); -} -class DistributedPyTorchTrainingReplicaSpec::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const DistributedPyTorchTrainingReplicaSpec* msg); -}; - -const ::flyteidl::core::Resources& -DistributedPyTorchTrainingReplicaSpec::HasBitSetters::resources(const DistributedPyTorchTrainingReplicaSpec* msg) { - return *msg->resources_; -} -void DistributedPyTorchTrainingReplicaSpec::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedPyTorchTrainingReplicaSpec::kReplicasFieldNumber; -const int DistributedPyTorchTrainingReplicaSpec::kImageFieldNumber; -const int DistributedPyTorchTrainingReplicaSpec::kResourcesFieldNumber; -const int DistributedPyTorchTrainingReplicaSpec::kRestartPolicyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedPyTorchTrainingReplicaSpec::DistributedPyTorchTrainingReplicaSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) -} -DistributedPyTorchTrainingReplicaSpec::DistributedPyTorchTrainingReplicaSpec(const DistributedPyTorchTrainingReplicaSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - ::memcpy(&replicas_, &from.replicas_, - static_cast(reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) -} - -void DistributedPyTorchTrainingReplicaSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&resources_)) + sizeof(restart_policy_)); -} - -DistributedPyTorchTrainingReplicaSpec::~DistributedPyTorchTrainingReplicaSpec() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - SharedDtor(); -} - -void DistributedPyTorchTrainingReplicaSpec::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; -} - -void DistributedPyTorchTrainingReplicaSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingReplicaSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedPyTorchTrainingReplicaSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - ::memset(&replicas_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedPyTorchTrainingReplicaSpec::_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) { - // int32 replicas = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DistributedPyTorchTrainingReplicaSpec::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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - 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)) { - // int32 replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // string image = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); - } 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedPyTorchTrainingReplicaSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->image(), output); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::resources(this), output); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->restart_policy(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) -} - -::google::protobuf::uint8* DistributedPyTorchTrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->image(), target); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::resources(this), target); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->restart_policy(), 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - return target; -} - -size_t DistributedPyTorchTrainingReplicaSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - 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; - - // string image = 2; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // int32 replicas = 1; - if (this->replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->replicas()); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedPyTorchTrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - const DistributedPyTorchTrainingReplicaSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - MergeFrom(*source); - } -} - -void DistributedPyTorchTrainingReplicaSpec::MergeFrom(const DistributedPyTorchTrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.replicas() != 0) { - set_replicas(from.replicas()); - } - if (from.restart_policy() != 0) { - set_restart_policy(from.restart_policy()); - } -} - -void DistributedPyTorchTrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedPyTorchTrainingReplicaSpec::CopyFrom(const DistributedPyTorchTrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedPyTorchTrainingReplicaSpec::IsInitialized() const { - return true; -} - -void DistributedPyTorchTrainingReplicaSpec::Swap(DistributedPyTorchTrainingReplicaSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedPyTorchTrainingReplicaSpec::InternalSwap(DistributedPyTorchTrainingReplicaSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); - swap(replicas_, other->replicas_); - swap(restart_policy_, other->restart_policy_); -} - -::google::protobuf::Metadata DistributedPyTorchTrainingReplicaSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::ElasticConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::ElasticConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::ElasticConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h deleted file mode 100644 index f124f939a9..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/pytorch.pb.h +++ /dev/null @@ -1,985 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/pytorch.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/plugins/kubeflow/common.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class DistributedPyTorchTrainingReplicaSpec; -class DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal; -extern DistributedPyTorchTrainingReplicaSpecDefaultTypeInternal _DistributedPyTorchTrainingReplicaSpec_default_instance_; -class DistributedPyTorchTrainingTask; -class DistributedPyTorchTrainingTaskDefaultTypeInternal; -extern DistributedPyTorchTrainingTaskDefaultTypeInternal _DistributedPyTorchTrainingTask_default_instance_; -class ElasticConfig; -class ElasticConfigDefaultTypeInternal; -extern ElasticConfigDefaultTypeInternal _ElasticConfig_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(Arena*); -template<> ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingTask>(Arena*); -template<> ::flyteidl::plugins::kubeflow::ElasticConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::ElasticConfig>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -class ElasticConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.ElasticConfig) */ { - public: - ElasticConfig(); - virtual ~ElasticConfig(); - - ElasticConfig(const ElasticConfig& from); - - inline ElasticConfig& operator=(const ElasticConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ElasticConfig(ElasticConfig&& from) noexcept - : ElasticConfig() { - *this = ::std::move(from); - } - - inline ElasticConfig& operator=(ElasticConfig&& 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 ElasticConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ElasticConfig* internal_default_instance() { - return reinterpret_cast( - &_ElasticConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ElasticConfig* other); - friend void swap(ElasticConfig& a, ElasticConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ElasticConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - ElasticConfig* 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 ElasticConfig& from); - void MergeFrom(const ElasticConfig& 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(ElasticConfig* 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 ------------------------------------------------------- - - // string rdzv_backend = 1; - void clear_rdzv_backend(); - static const int kRdzvBackendFieldNumber = 1; - const ::std::string& rdzv_backend() const; - void set_rdzv_backend(const ::std::string& value); - #if LANG_CXX11 - void set_rdzv_backend(::std::string&& value); - #endif - void set_rdzv_backend(const char* value); - void set_rdzv_backend(const char* value, size_t size); - ::std::string* mutable_rdzv_backend(); - ::std::string* release_rdzv_backend(); - void set_allocated_rdzv_backend(::std::string* rdzv_backend); - - // int32 min_replicas = 2; - void clear_min_replicas(); - static const int kMinReplicasFieldNumber = 2; - ::google::protobuf::int32 min_replicas() const; - void set_min_replicas(::google::protobuf::int32 value); - - // int32 max_replicas = 3; - void clear_max_replicas(); - static const int kMaxReplicasFieldNumber = 3; - ::google::protobuf::int32 max_replicas() const; - void set_max_replicas(::google::protobuf::int32 value); - - // int32 nproc_per_node = 4; - void clear_nproc_per_node(); - static const int kNprocPerNodeFieldNumber = 4; - ::google::protobuf::int32 nproc_per_node() const; - void set_nproc_per_node(::google::protobuf::int32 value); - - // int32 max_restarts = 5; - void clear_max_restarts(); - static const int kMaxRestartsFieldNumber = 5; - ::google::protobuf::int32 max_restarts() const; - void set_max_restarts(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.ElasticConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr rdzv_backend_; - ::google::protobuf::int32 min_replicas_; - ::google::protobuf::int32 max_replicas_; - ::google::protobuf::int32 nproc_per_node_; - ::google::protobuf::int32 max_restarts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; -}; -// ------------------------------------------------------------------- - -class DistributedPyTorchTrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) */ { - public: - DistributedPyTorchTrainingTask(); - virtual ~DistributedPyTorchTrainingTask(); - - DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from); - - inline DistributedPyTorchTrainingTask& operator=(const DistributedPyTorchTrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedPyTorchTrainingTask(DistributedPyTorchTrainingTask&& from) noexcept - : DistributedPyTorchTrainingTask() { - *this = ::std::move(from); - } - - inline DistributedPyTorchTrainingTask& operator=(DistributedPyTorchTrainingTask&& 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 DistributedPyTorchTrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedPyTorchTrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedPyTorchTrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DistributedPyTorchTrainingTask* other); - friend void swap(DistributedPyTorchTrainingTask& a, DistributedPyTorchTrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedPyTorchTrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedPyTorchTrainingTask* 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 DistributedPyTorchTrainingTask& from); - void MergeFrom(const DistributedPyTorchTrainingTask& 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(DistributedPyTorchTrainingTask* 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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - bool has_worker_replicas() const; - void clear_worker_replicas(); - static const int kWorkerReplicasFieldNumber = 1; - const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& worker_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* release_worker_replicas(); - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* mutable_worker_replicas(); - void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas); - - // .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - bool has_master_replicas() const; - void clear_master_replicas(); - static const int kMasterReplicasFieldNumber = 2; - const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& master_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* release_master_replicas(); - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* mutable_master_replicas(); - void set_allocated_master_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas); - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - bool has_run_policy() const; - void clear_run_policy(); - static const int kRunPolicyFieldNumber = 3; - const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; - ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); - ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); - void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); - - // .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - bool has_elastic_config() const; - void clear_elastic_config(); - static const int kElasticConfigFieldNumber = 4; - const ::flyteidl::plugins::kubeflow::ElasticConfig& elastic_config() const; - ::flyteidl::plugins::kubeflow::ElasticConfig* release_elastic_config(); - ::flyteidl::plugins::kubeflow::ElasticConfig* mutable_elastic_config(); - void set_allocated_elastic_config(::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas_; - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas_; - ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; - ::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; -}; -// ------------------------------------------------------------------- - -class DistributedPyTorchTrainingReplicaSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) */ { - public: - DistributedPyTorchTrainingReplicaSpec(); - virtual ~DistributedPyTorchTrainingReplicaSpec(); - - DistributedPyTorchTrainingReplicaSpec(const DistributedPyTorchTrainingReplicaSpec& from); - - inline DistributedPyTorchTrainingReplicaSpec& operator=(const DistributedPyTorchTrainingReplicaSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedPyTorchTrainingReplicaSpec(DistributedPyTorchTrainingReplicaSpec&& from) noexcept - : DistributedPyTorchTrainingReplicaSpec() { - *this = ::std::move(from); - } - - inline DistributedPyTorchTrainingReplicaSpec& operator=(DistributedPyTorchTrainingReplicaSpec&& 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 DistributedPyTorchTrainingReplicaSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedPyTorchTrainingReplicaSpec* internal_default_instance() { - return reinterpret_cast( - &_DistributedPyTorchTrainingReplicaSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(DistributedPyTorchTrainingReplicaSpec* other); - friend void swap(DistributedPyTorchTrainingReplicaSpec& a, DistributedPyTorchTrainingReplicaSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedPyTorchTrainingReplicaSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedPyTorchTrainingReplicaSpec* 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 DistributedPyTorchTrainingReplicaSpec& from); - void MergeFrom(const DistributedPyTorchTrainingReplicaSpec& 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(DistributedPyTorchTrainingReplicaSpec* 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 ------------------------------------------------------- - - // string image = 2; - void clear_image(); - static const int kImageFieldNumber = 2; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 3; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 3; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // int32 replicas = 1; - void clear_replicas(); - static const int kReplicasFieldNumber = 1; - ::google::protobuf::int32 replicas() const; - void set_replicas(::google::protobuf::int32 value); - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - void clear_restart_policy(); - static const int kRestartPolicyFieldNumber = 4; - ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; - void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - ::google::protobuf::int32 replicas_; - int restart_policy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ElasticConfig - -// string rdzv_backend = 1; -inline void ElasticConfig::clear_rdzv_backend() { - rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ElasticConfig::rdzv_backend() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) - return rdzv_backend_.GetNoArena(); -} -inline void ElasticConfig::set_rdzv_backend(const ::std::string& value) { - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) -} -#if LANG_CXX11 -inline void ElasticConfig::set_rdzv_backend(::std::string&& value) { - - rdzv_backend_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) -} -#endif -inline void ElasticConfig::set_rdzv_backend(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) -} -inline void ElasticConfig::set_rdzv_backend(const char* value, size_t size) { - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) -} -inline ::std::string* ElasticConfig::mutable_rdzv_backend() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) - return rdzv_backend_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ElasticConfig::release_rdzv_backend() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) - - return rdzv_backend_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ElasticConfig::set_allocated_rdzv_backend(::std::string* rdzv_backend) { - if (rdzv_backend != nullptr) { - - } else { - - } - rdzv_backend_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rdzv_backend); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.ElasticConfig.rdzv_backend) -} - -// int32 min_replicas = 2; -inline void ElasticConfig::clear_min_replicas() { - min_replicas_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::min_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.min_replicas) - return min_replicas_; -} -inline void ElasticConfig::set_min_replicas(::google::protobuf::int32 value) { - - min_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.min_replicas) -} - -// int32 max_replicas = 3; -inline void ElasticConfig::clear_max_replicas() { - max_replicas_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::max_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.max_replicas) - return max_replicas_; -} -inline void ElasticConfig::set_max_replicas(::google::protobuf::int32 value) { - - max_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.max_replicas) -} - -// int32 nproc_per_node = 4; -inline void ElasticConfig::clear_nproc_per_node() { - nproc_per_node_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::nproc_per_node() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.nproc_per_node) - return nproc_per_node_; -} -inline void ElasticConfig::set_nproc_per_node(::google::protobuf::int32 value) { - - nproc_per_node_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.nproc_per_node) -} - -// int32 max_restarts = 5; -inline void ElasticConfig::clear_max_restarts() { - max_restarts_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::max_restarts() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.ElasticConfig.max_restarts) - return max_restarts_; -} -inline void ElasticConfig::set_max_restarts(::google::protobuf::int32 value) { - - max_restarts_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.ElasticConfig.max_restarts) -} - -// ------------------------------------------------------------------- - -// DistributedPyTorchTrainingTask - -// .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; -inline bool DistributedPyTorchTrainingTask::has_worker_replicas() const { - return this != internal_default_instance() && worker_replicas_ != nullptr; -} -inline void DistributedPyTorchTrainingTask::clear_worker_replicas() { - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingTask::worker_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* p = worker_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::release_worker_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) - - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* temp = worker_replicas_; - worker_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::mutable_worker_replicas() { - - if (worker_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(GetArenaNoVirtual()); - worker_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) - return worker_replicas_; -} -inline void DistributedPyTorchTrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* worker_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete worker_replicas_; - } - if (worker_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - worker_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, worker_replicas, submessage_arena); - } - - } else { - - } - worker_replicas_ = worker_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.worker_replicas) -} - -// .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; -inline bool DistributedPyTorchTrainingTask::has_master_replicas() const { - return this != internal_default_instance() && master_replicas_ != nullptr; -} -inline void DistributedPyTorchTrainingTask::clear_master_replicas() { - if (GetArenaNoVirtual() == nullptr && master_replicas_ != nullptr) { - delete master_replicas_; - } - master_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec& DistributedPyTorchTrainingTask::master_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* p = master_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedPyTorchTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::release_master_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) - - ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* temp = master_replicas_; - master_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* DistributedPyTorchTrainingTask::mutable_master_replicas() { - - if (master_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec>(GetArenaNoVirtual()); - master_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) - return master_replicas_; -} -inline void DistributedPyTorchTrainingTask::set_allocated_master_replicas(::flyteidl::plugins::kubeflow::DistributedPyTorchTrainingReplicaSpec* master_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete master_replicas_; - } - if (master_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - master_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, master_replicas, submessage_arena); - } - - } else { - - } - master_replicas_ = master_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.master_replicas) -} - -// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; -inline bool DistributedPyTorchTrainingTask::has_run_policy() const { - return this != internal_default_instance() && run_policy_ != nullptr; -} -inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedPyTorchTrainingTask::run_policy() const { - const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedPyTorchTrainingTask::release_run_policy() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) - - ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; - run_policy_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedPyTorchTrainingTask::mutable_run_policy() { - - if (run_policy_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); - run_policy_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) - return run_policy_; -} -inline void DistributedPyTorchTrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); - } - if (run_policy) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - run_policy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, run_policy, submessage_arena); - } - - } else { - - } - run_policy_ = run_policy; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.run_policy) -} - -// .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; -inline bool DistributedPyTorchTrainingTask::has_elastic_config() const { - return this != internal_default_instance() && elastic_config_ != nullptr; -} -inline void DistributedPyTorchTrainingTask::clear_elastic_config() { - if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { - delete elastic_config_; - } - elastic_config_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::ElasticConfig& DistributedPyTorchTrainingTask::elastic_config() const { - const ::flyteidl::plugins::kubeflow::ElasticConfig* p = elastic_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_ElasticConfig_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::ElasticConfig* DistributedPyTorchTrainingTask::release_elastic_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) - - ::flyteidl::plugins::kubeflow::ElasticConfig* temp = elastic_config_; - elastic_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::ElasticConfig* DistributedPyTorchTrainingTask::mutable_elastic_config() { - - if (elastic_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::ElasticConfig>(GetArenaNoVirtual()); - elastic_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) - return elastic_config_; -} -inline void DistributedPyTorchTrainingTask::set_allocated_elastic_config(::flyteidl::plugins::kubeflow::ElasticConfig* elastic_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete elastic_config_; - } - if (elastic_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - elastic_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, elastic_config, submessage_arena); - } - - } else { - - } - elastic_config_ = elastic_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask.elastic_config) -} - -// ------------------------------------------------------------------- - -// DistributedPyTorchTrainingReplicaSpec - -// int32 replicas = 1; -inline void DistributedPyTorchTrainingReplicaSpec::clear_replicas() { - replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedPyTorchTrainingReplicaSpec::replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.replicas) - return replicas_; -} -inline void DistributedPyTorchTrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { - - replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.replicas) -} - -// string image = 2; -inline void DistributedPyTorchTrainingReplicaSpec::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DistributedPyTorchTrainingReplicaSpec::image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) - return image_.GetNoArena(); -} -inline void DistributedPyTorchTrainingReplicaSpec::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) -} -#if LANG_CXX11 -inline void DistributedPyTorchTrainingReplicaSpec::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) -} -#endif -inline void DistributedPyTorchTrainingReplicaSpec::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) -} -inline void DistributedPyTorchTrainingReplicaSpec::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) -} -inline ::std::string* DistributedPyTorchTrainingReplicaSpec::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DistributedPyTorchTrainingReplicaSpec::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DistributedPyTorchTrainingReplicaSpec::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.image) -} - -// .flyteidl.core.Resources resources = 3; -inline bool DistributedPyTorchTrainingReplicaSpec::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& DistributedPyTorchTrainingReplicaSpec::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* DistributedPyTorchTrainingReplicaSpec::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* DistributedPyTorchTrainingReplicaSpec::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) - return resources_; -} -inline void DistributedPyTorchTrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.resources) -} - -// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; -inline void DistributedPyTorchTrainingReplicaSpec::clear_restart_policy() { - restart_policy_ = 0; -} -inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedPyTorchTrainingReplicaSpec::restart_policy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy) - return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); -} -inline void DistributedPyTorchTrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { - - restart_policy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec.restart_policy) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2fpytorch_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc deleted file mode 100644 index 5360384595..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.cc +++ /dev/null @@ -1,26 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" -#include "flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace flyteidl -} // namespace plugins -} // namespace kubeflow - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h deleted file mode 100644 index 2ab6f394d2..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.grpc.pb.h +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/kubeflow/tensorflow.proto -#ifndef GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED - -#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc deleted file mode 100644 index 187cc04817..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.cc +++ /dev/null @@ -1,1198 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -#include "flyteidl/plugins/kubeflow/tensorflow.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class DistributedTensorflowTrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedTensorflowTrainingTask_default_instance_; -class DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedTensorflowTrainingReplicaSpec_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto}, { - &scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base, - &scc_info_RunPolicy_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto.base,}}; - -static void InitDefaultsDistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_; - new (ptr) ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto}, { - &scc_info_Resources_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[2]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, worker_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, ps_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, chief_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, run_policy_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask, evaluator_replicas_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, image_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, resources_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec, restart_policy_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask)}, - { 10, -1, sizeof(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_), - reinterpret_cast(&::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, "flyteidl/plugins/kubeflow/tensorflow.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[] = - "\n*flyteidl/plugins/kubeflow/tensorflow.p" - "roto\022\031flyteidl.plugins.kubeflow\032\031flyteid" - "l/core/tasks.proto\032&flyteidl/plugins/kub" - "eflow/common.proto\"\323\003\n!DistributedTensor" - "flowTrainingTask\022\\\n\017worker_replicas\030\001 \001(" - "\0132C.flyteidl.plugins.kubeflow.Distribute" - "dTensorflowTrainingReplicaSpec\022X\n\013ps_rep" - "licas\030\002 \001(\0132C.flyteidl.plugins.kubeflow." - "DistributedTensorflowTrainingReplicaSpec" - "\022[\n\016chief_replicas\030\003 \001(\0132C.flyteidl.plug" - "ins.kubeflow.DistributedTensorflowTraini" - "ngReplicaSpec\0228\n\nrun_policy\030\004 \001(\0132$.flyt" - "eidl.plugins.kubeflow.RunPolicy\022_\n\022evalu" - "ator_replicas\030\005 \001(\0132C.flyteidl.plugins.k" - "ubeflow.DistributedTensorflowTrainingRep" - "licaSpec\"\272\001\n(DistributedTensorflowTraini" - "ngReplicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image" - "\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.cor" - "e.Resources\022@\n\016restart_policy\030\004 \001(\0162(.fl" - "yteidl.plugins.kubeflow.RestartPolicyB\?Z" - "=github.com/flyteorg/flyte/flyteidl/gen/" - "pb-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, - "flyteidl/plugins/kubeflow/tensorflow.proto", &assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, 870, -}; - -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fplugins_2fkubeflow_2fcommon_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -void DistributedTensorflowTrainingTask::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->worker_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->ps_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->chief_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->run_policy_ = const_cast< ::flyteidl::plugins::kubeflow::RunPolicy*>( - ::flyteidl::plugins::kubeflow::RunPolicy::internal_default_instance()); - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingTask_default_instance_._instance.get_mutable()->evaluator_replicas_ = const_cast< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec*>( - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::internal_default_instance()); -} -class DistributedTensorflowTrainingTask::HasBitSetters { - public: - static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& worker_replicas(const DistributedTensorflowTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& ps_replicas(const DistributedTensorflowTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& chief_replicas(const DistributedTensorflowTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy(const DistributedTensorflowTrainingTask* msg); - static const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& evaluator_replicas(const DistributedTensorflowTrainingTask* msg); -}; - -const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& -DistributedTensorflowTrainingTask::HasBitSetters::worker_replicas(const DistributedTensorflowTrainingTask* msg) { - return *msg->worker_replicas_; -} -const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& -DistributedTensorflowTrainingTask::HasBitSetters::ps_replicas(const DistributedTensorflowTrainingTask* msg) { - return *msg->ps_replicas_; -} -const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& -DistributedTensorflowTrainingTask::HasBitSetters::chief_replicas(const DistributedTensorflowTrainingTask* msg) { - return *msg->chief_replicas_; -} -const ::flyteidl::plugins::kubeflow::RunPolicy& -DistributedTensorflowTrainingTask::HasBitSetters::run_policy(const DistributedTensorflowTrainingTask* msg) { - return *msg->run_policy_; -} -const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& -DistributedTensorflowTrainingTask::HasBitSetters::evaluator_replicas(const DistributedTensorflowTrainingTask* msg) { - return *msg->evaluator_replicas_; -} -void DistributedTensorflowTrainingTask::clear_run_policy() { - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedTensorflowTrainingTask::kWorkerReplicasFieldNumber; -const int DistributedTensorflowTrainingTask::kPsReplicasFieldNumber; -const int DistributedTensorflowTrainingTask::kChiefReplicasFieldNumber; -const int DistributedTensorflowTrainingTask::kRunPolicyFieldNumber; -const int DistributedTensorflowTrainingTask::kEvaluatorReplicasFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) -} -DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_worker_replicas()) { - worker_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.worker_replicas_); - } else { - worker_replicas_ = nullptr; - } - if (from.has_ps_replicas()) { - ps_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.ps_replicas_); - } else { - ps_replicas_ = nullptr; - } - if (from.has_chief_replicas()) { - chief_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.chief_replicas_); - } else { - chief_replicas_ = nullptr; - } - if (from.has_run_policy()) { - run_policy_ = new ::flyteidl::plugins::kubeflow::RunPolicy(*from.run_policy_); - } else { - run_policy_ = nullptr; - } - if (from.has_evaluator_replicas()) { - evaluator_replicas_ = new ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec(*from.evaluator_replicas_); - } else { - evaluator_replicas_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) -} - -void DistributedTensorflowTrainingTask::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); - ::memset(&worker_replicas_, 0, static_cast( - reinterpret_cast(&evaluator_replicas_) - - reinterpret_cast(&worker_replicas_)) + sizeof(evaluator_replicas_)); -} - -DistributedTensorflowTrainingTask::~DistributedTensorflowTrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - SharedDtor(); -} - -void DistributedTensorflowTrainingTask::SharedDtor() { - if (this != internal_default_instance()) delete worker_replicas_; - if (this != internal_default_instance()) delete ps_replicas_; - if (this != internal_default_instance()) delete chief_replicas_; - if (this != internal_default_instance()) delete run_policy_; - if (this != internal_default_instance()) delete evaluator_replicas_; -} - -void DistributedTensorflowTrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedTensorflowTrainingTask& DistributedTensorflowTrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedTensorflowTrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && ps_replicas_ != nullptr) { - delete ps_replicas_; - } - ps_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && chief_replicas_ != nullptr) { - delete chief_replicas_; - } - chief_replicas_ = nullptr; - if (GetArenaNoVirtual() == nullptr && run_policy_ != nullptr) { - delete run_policy_; - } - run_policy_ = nullptr; - if (GetArenaNoVirtual() == nullptr && evaluator_replicas_ != nullptr) { - delete evaluator_replicas_; - } - evaluator_replicas_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedTensorflowTrainingTask::_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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 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::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; - object = msg->mutable_worker_replicas(); - 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 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::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; - object = msg->mutable_ps_replicas(); - 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; - object = msg->mutable_chief_replicas(); - 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.plugins.kubeflow.RunPolicy run_policy = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::RunPolicy::_InternalParse; - object = msg->mutable_run_policy(); - 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::_InternalParse; - object = msg->mutable_evaluator_replicas(); - 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 DistributedTensorflowTrainingTask::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.plugins.kubeflow.DistributedTensorflowTrainingTask) - 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_worker_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ps_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_chief_replicas())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_run_policy())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_evaluator_replicas())); - } 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.plugins.kubeflow.DistributedTensorflowTrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedTensorflowTrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::worker_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - if (this->has_ps_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::ps_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - if (this->has_chief_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::chief_replicas(this), output); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - if (this->has_run_policy()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::run_policy(this), output); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - if (this->has_evaluator_replicas()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, HasBitSetters::evaluator_replicas(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) -} - -::google::protobuf::uint8* DistributedTensorflowTrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::worker_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - if (this->has_ps_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::ps_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - if (this->has_chief_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::chief_replicas(this), target); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - if (this->has_run_policy()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::run_policy(this), target); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - if (this->has_evaluator_replicas()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 5, HasBitSetters::evaluator_replicas(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.plugins.kubeflow.DistributedTensorflowTrainingTask) - return target; -} - -size_t DistributedTensorflowTrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - if (this->has_worker_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *worker_replicas_); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - if (this->has_ps_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ps_replicas_); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - if (this->has_chief_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *chief_replicas_); - } - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - if (this->has_run_policy()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *run_policy_); - } - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - if (this->has_evaluator_replicas()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *evaluator_replicas_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedTensorflowTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedTensorflowTrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - MergeFrom(*source); - } -} - -void DistributedTensorflowTrainingTask::MergeFrom(const DistributedTensorflowTrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - 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_worker_replicas()) { - mutable_worker_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.worker_replicas()); - } - if (from.has_ps_replicas()) { - mutable_ps_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.ps_replicas()); - } - if (from.has_chief_replicas()) { - mutable_chief_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.chief_replicas()); - } - if (from.has_run_policy()) { - mutable_run_policy()->::flyteidl::plugins::kubeflow::RunPolicy::MergeFrom(from.run_policy()); - } - if (from.has_evaluator_replicas()) { - mutable_evaluator_replicas()->::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec::MergeFrom(from.evaluator_replicas()); - } -} - -void DistributedTensorflowTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedTensorflowTrainingTask::CopyFrom(const DistributedTensorflowTrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedTensorflowTrainingTask::IsInitialized() const { - return true; -} - -void DistributedTensorflowTrainingTask::Swap(DistributedTensorflowTrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedTensorflowTrainingTask::InternalSwap(DistributedTensorflowTrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(worker_replicas_, other->worker_replicas_); - swap(ps_replicas_, other->ps_replicas_); - swap(chief_replicas_, other->chief_replicas_); - swap(run_policy_, other->run_policy_); - swap(evaluator_replicas_, other->evaluator_replicas_); -} - -::google::protobuf::Metadata DistributedTensorflowTrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DistributedTensorflowTrainingReplicaSpec::InitAsDefaultInstance() { - ::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_._instance.get_mutable()->resources_ = const_cast< ::flyteidl::core::Resources*>( - ::flyteidl::core::Resources::internal_default_instance()); -} -class DistributedTensorflowTrainingReplicaSpec::HasBitSetters { - public: - static const ::flyteidl::core::Resources& resources(const DistributedTensorflowTrainingReplicaSpec* msg); -}; - -const ::flyteidl::core::Resources& -DistributedTensorflowTrainingReplicaSpec::HasBitSetters::resources(const DistributedTensorflowTrainingReplicaSpec* msg) { - return *msg->resources_; -} -void DistributedTensorflowTrainingReplicaSpec::clear_resources() { - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedTensorflowTrainingReplicaSpec::kReplicasFieldNumber; -const int DistributedTensorflowTrainingReplicaSpec::kImageFieldNumber; -const int DistributedTensorflowTrainingReplicaSpec::kResourcesFieldNumber; -const int DistributedTensorflowTrainingReplicaSpec::kRestartPolicyFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedTensorflowTrainingReplicaSpec::DistributedTensorflowTrainingReplicaSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) -} -DistributedTensorflowTrainingReplicaSpec::DistributedTensorflowTrainingReplicaSpec(const DistributedTensorflowTrainingReplicaSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.image().size() > 0) { - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - resources_ = new ::flyteidl::core::Resources(*from.resources_); - } else { - resources_ = nullptr; - } - ::memcpy(&replicas_, &from.replicas_, - static_cast(reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) -} - -void DistributedTensorflowTrainingReplicaSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); - image_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&resources_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&resources_)) + sizeof(restart_policy_)); -} - -DistributedTensorflowTrainingReplicaSpec::~DistributedTensorflowTrainingReplicaSpec() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - SharedDtor(); -} - -void DistributedTensorflowTrainingReplicaSpec::SharedDtor() { - image_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete resources_; -} - -void DistributedTensorflowTrainingReplicaSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingReplicaSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingReplicaSpec_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedTensorflowTrainingReplicaSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && resources_ != nullptr) { - delete resources_; - } - resources_ = nullptr; - ::memset(&replicas_, 0, static_cast( - reinterpret_cast(&restart_policy_) - - reinterpret_cast(&replicas_)) + sizeof(restart_policy_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedTensorflowTrainingReplicaSpec::_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) { - // int32 replicas = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string image = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); - object = msg->mutable_image(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Resources::_InternalParse; - object = msg->mutable_resources(); - 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.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_restart_policy(static_cast<::flyteidl::plugins::kubeflow::RestartPolicy>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DistributedTensorflowTrainingReplicaSpec::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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - 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)) { - // int32 replicas = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // string image = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_image())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Resources resources = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_resources())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_restart_policy(static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(value)); - } 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedTensorflowTrainingReplicaSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->replicas(), output); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->image(), output); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::resources(this), output); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->restart_policy(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) -} - -::google::protobuf::uint8* DistributedTensorflowTrainingReplicaSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 replicas = 1; - if (this->replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->replicas(), target); - } - - // string image = 2; - if (this->image().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->image().data(), static_cast(this->image().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->image(), target); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::resources(this), target); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->restart_policy(), 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - return target; -} - -size_t DistributedTensorflowTrainingReplicaSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - 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; - - // string image = 2; - if (this->image().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->image()); - } - - // .flyteidl.core.Resources resources = 3; - if (this->has_resources()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *resources_); - } - - // int32 replicas = 1; - if (this->replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->replicas()); - } - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - if (this->restart_policy() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->restart_policy()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedTensorflowTrainingReplicaSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - const DistributedTensorflowTrainingReplicaSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - MergeFrom(*source); - } -} - -void DistributedTensorflowTrainingReplicaSpec::MergeFrom(const DistributedTensorflowTrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.image().size() > 0) { - - image_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.image_); - } - if (from.has_resources()) { - mutable_resources()->::flyteidl::core::Resources::MergeFrom(from.resources()); - } - if (from.replicas() != 0) { - set_replicas(from.replicas()); - } - if (from.restart_policy() != 0) { - set_restart_policy(from.restart_policy()); - } -} - -void DistributedTensorflowTrainingReplicaSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedTensorflowTrainingReplicaSpec::CopyFrom(const DistributedTensorflowTrainingReplicaSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedTensorflowTrainingReplicaSpec::IsInitialized() const { - return true; -} - -void DistributedTensorflowTrainingReplicaSpec::Swap(DistributedTensorflowTrainingReplicaSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedTensorflowTrainingReplicaSpec::InternalSwap(DistributedTensorflowTrainingReplicaSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - image_.Swap(&other->image_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(resources_, other->resources_); - swap(replicas_, other->replicas_); - swap(restart_policy_, other->restart_policy_); -} - -::google::protobuf::Metadata DistributedTensorflowTrainingReplicaSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h deleted file mode 100644 index 4a100b0233..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/kubeflow/tensorflow.pb.h +++ /dev/null @@ -1,779 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/plugins/kubeflow/common.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto(); -namespace flyteidl { -namespace plugins { -namespace kubeflow { -class DistributedTensorflowTrainingReplicaSpec; -class DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal; -extern DistributedTensorflowTrainingReplicaSpecDefaultTypeInternal _DistributedTensorflowTrainingReplicaSpec_default_instance_; -class DistributedTensorflowTrainingTask; -class DistributedTensorflowTrainingTaskDefaultTypeInternal; -extern DistributedTensorflowTrainingTaskDefaultTypeInternal _DistributedTensorflowTrainingTask_default_instance_; -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(Arena*); -template<> ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingTask>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { -namespace kubeflow { - -// =================================================================== - -class DistributedTensorflowTrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) */ { - public: - DistributedTensorflowTrainingTask(); - virtual ~DistributedTensorflowTrainingTask(); - - DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from); - - inline DistributedTensorflowTrainingTask& operator=(const DistributedTensorflowTrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedTensorflowTrainingTask(DistributedTensorflowTrainingTask&& from) noexcept - : DistributedTensorflowTrainingTask() { - *this = ::std::move(from); - } - - inline DistributedTensorflowTrainingTask& operator=(DistributedTensorflowTrainingTask&& 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 DistributedTensorflowTrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedTensorflowTrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedTensorflowTrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DistributedTensorflowTrainingTask* other); - friend void swap(DistributedTensorflowTrainingTask& a, DistributedTensorflowTrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedTensorflowTrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedTensorflowTrainingTask* 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 DistributedTensorflowTrainingTask& from); - void MergeFrom(const DistributedTensorflowTrainingTask& 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(DistributedTensorflowTrainingTask* 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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - bool has_worker_replicas() const; - void clear_worker_replicas(); - static const int kWorkerReplicasFieldNumber = 1; - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& worker_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_worker_replicas(); - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_worker_replicas(); - void set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas); - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - bool has_ps_replicas() const; - void clear_ps_replicas(); - static const int kPsReplicasFieldNumber = 2; - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& ps_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_ps_replicas(); - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_ps_replicas(); - void set_allocated_ps_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas); - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - bool has_chief_replicas() const; - void clear_chief_replicas(); - static const int kChiefReplicasFieldNumber = 3; - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& chief_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_chief_replicas(); - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_chief_replicas(); - void set_allocated_chief_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas); - - // .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - bool has_run_policy() const; - void clear_run_policy(); - static const int kRunPolicyFieldNumber = 4; - const ::flyteidl::plugins::kubeflow::RunPolicy& run_policy() const; - ::flyteidl::plugins::kubeflow::RunPolicy* release_run_policy(); - ::flyteidl::plugins::kubeflow::RunPolicy* mutable_run_policy(); - void set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy); - - // .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - bool has_evaluator_replicas() const; - void clear_evaluator_replicas(); - static const int kEvaluatorReplicasFieldNumber = 5; - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& evaluator_replicas() const; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* release_evaluator_replicas(); - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* mutable_evaluator_replicas(); - void set_allocated_evaluator_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* evaluator_replicas); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas_; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas_; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas_; - ::flyteidl::plugins::kubeflow::RunPolicy* run_policy_; - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* evaluator_replicas_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; -}; -// ------------------------------------------------------------------- - -class DistributedTensorflowTrainingReplicaSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) */ { - public: - DistributedTensorflowTrainingReplicaSpec(); - virtual ~DistributedTensorflowTrainingReplicaSpec(); - - DistributedTensorflowTrainingReplicaSpec(const DistributedTensorflowTrainingReplicaSpec& from); - - inline DistributedTensorflowTrainingReplicaSpec& operator=(const DistributedTensorflowTrainingReplicaSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedTensorflowTrainingReplicaSpec(DistributedTensorflowTrainingReplicaSpec&& from) noexcept - : DistributedTensorflowTrainingReplicaSpec() { - *this = ::std::move(from); - } - - inline DistributedTensorflowTrainingReplicaSpec& operator=(DistributedTensorflowTrainingReplicaSpec&& 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 DistributedTensorflowTrainingReplicaSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedTensorflowTrainingReplicaSpec* internal_default_instance() { - return reinterpret_cast( - &_DistributedTensorflowTrainingReplicaSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DistributedTensorflowTrainingReplicaSpec* other); - friend void swap(DistributedTensorflowTrainingReplicaSpec& a, DistributedTensorflowTrainingReplicaSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedTensorflowTrainingReplicaSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedTensorflowTrainingReplicaSpec* 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 DistributedTensorflowTrainingReplicaSpec& from); - void MergeFrom(const DistributedTensorflowTrainingReplicaSpec& 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(DistributedTensorflowTrainingReplicaSpec* 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 ------------------------------------------------------- - - // string image = 2; - void clear_image(); - static const int kImageFieldNumber = 2; - const ::std::string& image() const; - void set_image(const ::std::string& value); - #if LANG_CXX11 - void set_image(::std::string&& value); - #endif - void set_image(const char* value); - void set_image(const char* value, size_t size); - ::std::string* mutable_image(); - ::std::string* release_image(); - void set_allocated_image(::std::string* image); - - // .flyteidl.core.Resources resources = 3; - bool has_resources() const; - void clear_resources(); - static const int kResourcesFieldNumber = 3; - const ::flyteidl::core::Resources& resources() const; - ::flyteidl::core::Resources* release_resources(); - ::flyteidl::core::Resources* mutable_resources(); - void set_allocated_resources(::flyteidl::core::Resources* resources); - - // int32 replicas = 1; - void clear_replicas(); - static const int kReplicasFieldNumber = 1; - ::google::protobuf::int32 replicas() const; - void set_replicas(::google::protobuf::int32 value); - - // .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - void clear_restart_policy(); - static const int kRestartPolicyFieldNumber = 4; - ::flyteidl::plugins::kubeflow::RestartPolicy restart_policy() const; - void set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr image_; - ::flyteidl::core::Resources* resources_; - ::google::protobuf::int32 replicas_; - int restart_policy_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DistributedTensorflowTrainingTask - -// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; -inline bool DistributedTensorflowTrainingTask::has_worker_replicas() const { - return this != internal_default_instance() && worker_replicas_ != nullptr; -} -inline void DistributedTensorflowTrainingTask::clear_worker_replicas() { - if (GetArenaNoVirtual() == nullptr && worker_replicas_ != nullptr) { - delete worker_replicas_; - } - worker_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::worker_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = worker_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_worker_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) - - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = worker_replicas_; - worker_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_worker_replicas() { - - if (worker_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); - worker_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) - return worker_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_allocated_worker_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* worker_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete worker_replicas_; - } - if (worker_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - worker_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, worker_replicas, submessage_arena); - } - - } else { - - } - worker_replicas_ = worker_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.worker_replicas) -} - -// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; -inline bool DistributedTensorflowTrainingTask::has_ps_replicas() const { - return this != internal_default_instance() && ps_replicas_ != nullptr; -} -inline void DistributedTensorflowTrainingTask::clear_ps_replicas() { - if (GetArenaNoVirtual() == nullptr && ps_replicas_ != nullptr) { - delete ps_replicas_; - } - ps_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::ps_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = ps_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_ps_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) - - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = ps_replicas_; - ps_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_ps_replicas() { - - if (ps_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); - ps_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) - return ps_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_allocated_ps_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* ps_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete ps_replicas_; - } - if (ps_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ps_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ps_replicas, submessage_arena); - } - - } else { - - } - ps_replicas_ = ps_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.ps_replicas) -} - -// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; -inline bool DistributedTensorflowTrainingTask::has_chief_replicas() const { - return this != internal_default_instance() && chief_replicas_ != nullptr; -} -inline void DistributedTensorflowTrainingTask::clear_chief_replicas() { - if (GetArenaNoVirtual() == nullptr && chief_replicas_ != nullptr) { - delete chief_replicas_; - } - chief_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::chief_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = chief_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_chief_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) - - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = chief_replicas_; - chief_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_chief_replicas() { - - if (chief_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); - chief_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) - return chief_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_allocated_chief_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* chief_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete chief_replicas_; - } - if (chief_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - chief_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, chief_replicas, submessage_arena); - } - - } else { - - } - chief_replicas_ = chief_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.chief_replicas) -} - -// .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; -inline bool DistributedTensorflowTrainingTask::has_run_policy() const { - return this != internal_default_instance() && run_policy_ != nullptr; -} -inline const ::flyteidl::plugins::kubeflow::RunPolicy& DistributedTensorflowTrainingTask::run_policy() const { - const ::flyteidl::plugins::kubeflow::RunPolicy* p = run_policy_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_RunPolicy_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedTensorflowTrainingTask::release_run_policy() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) - - ::flyteidl::plugins::kubeflow::RunPolicy* temp = run_policy_; - run_policy_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::RunPolicy* DistributedTensorflowTrainingTask::mutable_run_policy() { - - if (run_policy_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::RunPolicy>(GetArenaNoVirtual()); - run_policy_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) - return run_policy_; -} -inline void DistributedTensorflowTrainingTask::set_allocated_run_policy(::flyteidl::plugins::kubeflow::RunPolicy* run_policy) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(run_policy_); - } - if (run_policy) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - run_policy = ::google::protobuf::internal::GetOwnedMessage( - message_arena, run_policy, submessage_arena); - } - - } else { - - } - run_policy_ = run_policy; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.run_policy) -} - -// .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; -inline bool DistributedTensorflowTrainingTask::has_evaluator_replicas() const { - return this != internal_default_instance() && evaluator_replicas_ != nullptr; -} -inline void DistributedTensorflowTrainingTask::clear_evaluator_replicas() { - if (GetArenaNoVirtual() == nullptr && evaluator_replicas_ != nullptr) { - delete evaluator_replicas_; - } - evaluator_replicas_ = nullptr; -} -inline const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec& DistributedTensorflowTrainingTask::evaluator_replicas() const { - const ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* p = evaluator_replicas_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::kubeflow::_DistributedTensorflowTrainingReplicaSpec_default_instance_); -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::release_evaluator_replicas() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas) - - ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* temp = evaluator_replicas_; - evaluator_replicas_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* DistributedTensorflowTrainingTask::mutable_evaluator_replicas() { - - if (evaluator_replicas_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec>(GetArenaNoVirtual()); - evaluator_replicas_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas) - return evaluator_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_allocated_evaluator_replicas(::flyteidl::plugins::kubeflow::DistributedTensorflowTrainingReplicaSpec* evaluator_replicas) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete evaluator_replicas_; - } - if (evaluator_replicas) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - evaluator_replicas = ::google::protobuf::internal::GetOwnedMessage( - message_arena, evaluator_replicas, submessage_arena); - } - - } else { - - } - evaluator_replicas_ = evaluator_replicas; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask.evaluator_replicas) -} - -// ------------------------------------------------------------------- - -// DistributedTensorflowTrainingReplicaSpec - -// int32 replicas = 1; -inline void DistributedTensorflowTrainingReplicaSpec::clear_replicas() { - replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedTensorflowTrainingReplicaSpec::replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.replicas) - return replicas_; -} -inline void DistributedTensorflowTrainingReplicaSpec::set_replicas(::google::protobuf::int32 value) { - - replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.replicas) -} - -// string image = 2; -inline void DistributedTensorflowTrainingReplicaSpec::clear_image() { - image_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DistributedTensorflowTrainingReplicaSpec::image() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) - return image_.GetNoArena(); -} -inline void DistributedTensorflowTrainingReplicaSpec::set_image(const ::std::string& value) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) -} -#if LANG_CXX11 -inline void DistributedTensorflowTrainingReplicaSpec::set_image(::std::string&& value) { - - image_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) -} -#endif -inline void DistributedTensorflowTrainingReplicaSpec::set_image(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) -} -inline void DistributedTensorflowTrainingReplicaSpec::set_image(const char* value, size_t size) { - - image_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) -} -inline ::std::string* DistributedTensorflowTrainingReplicaSpec::mutable_image() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) - return image_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DistributedTensorflowTrainingReplicaSpec::release_image() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) - - return image_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DistributedTensorflowTrainingReplicaSpec::set_allocated_image(::std::string* image) { - if (image != nullptr) { - - } else { - - } - image_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.image) -} - -// .flyteidl.core.Resources resources = 3; -inline bool DistributedTensorflowTrainingReplicaSpec::has_resources() const { - return this != internal_default_instance() && resources_ != nullptr; -} -inline const ::flyteidl::core::Resources& DistributedTensorflowTrainingReplicaSpec::resources() const { - const ::flyteidl::core::Resources* p = resources_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_Resources_default_instance_); -} -inline ::flyteidl::core::Resources* DistributedTensorflowTrainingReplicaSpec::release_resources() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) - - ::flyteidl::core::Resources* temp = resources_; - resources_ = nullptr; - return temp; -} -inline ::flyteidl::core::Resources* DistributedTensorflowTrainingReplicaSpec::mutable_resources() { - - if (resources_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::Resources>(GetArenaNoVirtual()); - resources_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) - return resources_; -} -inline void DistributedTensorflowTrainingReplicaSpec::set_allocated_resources(::flyteidl::core::Resources* resources) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(resources_); - } - if (resources) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - resources = ::google::protobuf::internal::GetOwnedMessage( - message_arena, resources, submessage_arena); - } - - } else { - - } - resources_ = resources; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.resources) -} - -// .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; -inline void DistributedTensorflowTrainingReplicaSpec::clear_restart_policy() { - restart_policy_ = 0; -} -inline ::flyteidl::plugins::kubeflow::RestartPolicy DistributedTensorflowTrainingReplicaSpec::restart_policy() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy) - return static_cast< ::flyteidl::plugins::kubeflow::RestartPolicy >(restart_policy_); -} -inline void DistributedTensorflowTrainingReplicaSpec::set_restart_policy(::flyteidl::plugins::kubeflow::RestartPolicy value) { - - restart_policy_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec.restart_policy) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace kubeflow -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fkubeflow_2ftensorflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc deleted file mode 100644 index 8a312292c0..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/mpi.proto - -#include "flyteidl/plugins/mpi.pb.h" -#include "flyteidl/plugins/mpi.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h deleted file mode 100644 index 6725f0e0e8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/mpi.proto -#ifndef GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED - -#include "flyteidl/plugins/mpi.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fmpi_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc deleted file mode 100644 index 2b1736c4dd..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.cc +++ /dev/null @@ -1,461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/mpi.proto - -#include "flyteidl/plugins/mpi.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace plugins { -class DistributedMPITrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedMPITrainingTask_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DistributedMPITrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::DistributedMPITrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DistributedMPITrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto}, {}}; - -void InitDefaults_flyteidl_2fplugins_2fmpi_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fmpi_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fmpi_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fmpi_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, num_workers_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, num_launcher_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedMPITrainingTask, slots_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::DistributedMPITrainingTask)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_DistributedMPITrainingTask_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto, "flyteidl/plugins/mpi.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fmpi_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fmpi_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fmpi_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fmpi_2eproto[] = - "\n\032flyteidl/plugins/mpi.proto\022\020flyteidl.p" - "lugins\"_\n\032DistributedMPITrainingTask\022\023\n\013" - "num_workers\030\001 \001(\005\022\035\n\025num_launcher_replic" - "as\030\002 \001(\005\022\r\n\005slots\030\003 \001(\005B\?Z=github.com/fl" - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" - "/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fmpi_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fmpi_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fmpi_2eproto, - "flyteidl/plugins/mpi.proto", &assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto, 216, -}; - -void AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fmpi_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fmpi_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void DistributedMPITrainingTask::InitAsDefaultInstance() { -} -class DistributedMPITrainingTask::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedMPITrainingTask::kNumWorkersFieldNumber; -const int DistributedMPITrainingTask::kNumLauncherReplicasFieldNumber; -const int DistributedMPITrainingTask::kSlotsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedMPITrainingTask::DistributedMPITrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedMPITrainingTask) -} -DistributedMPITrainingTask::DistributedMPITrainingTask(const DistributedMPITrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&num_workers_, &from.num_workers_, - static_cast(reinterpret_cast(&slots_) - - reinterpret_cast(&num_workers_)) + sizeof(slots_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedMPITrainingTask) -} - -void DistributedMPITrainingTask::SharedCtor() { - ::memset(&num_workers_, 0, static_cast( - reinterpret_cast(&slots_) - - reinterpret_cast(&num_workers_)) + sizeof(slots_)); -} - -DistributedMPITrainingTask::~DistributedMPITrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedMPITrainingTask) - SharedDtor(); -} - -void DistributedMPITrainingTask::SharedDtor() { -} - -void DistributedMPITrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedMPITrainingTask& DistributedMPITrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedMPITrainingTask_flyteidl_2fplugins_2fmpi_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedMPITrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&num_workers_, 0, static_cast( - reinterpret_cast(&slots_) - - reinterpret_cast(&num_workers_)) + sizeof(slots_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedMPITrainingTask::_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) { - // int32 num_workers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_num_workers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 num_launcher_replicas = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_num_launcher_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 slots = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_slots(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DistributedMPITrainingTask::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.plugins.DistributedMPITrainingTask) - 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)) { - // int32 num_workers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_workers_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 num_launcher_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &num_launcher_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 slots = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &slots_))); - } 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.plugins.DistributedMPITrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedMPITrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedMPITrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 num_workers = 1; - if (this->num_workers() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->num_workers(), output); - } - - // int32 num_launcher_replicas = 2; - if (this->num_launcher_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->num_launcher_replicas(), output); - } - - // int32 slots = 3; - if (this->slots() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->slots(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedMPITrainingTask) -} - -::google::protobuf::uint8* DistributedMPITrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedMPITrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 num_workers = 1; - if (this->num_workers() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->num_workers(), target); - } - - // int32 num_launcher_replicas = 2; - if (this->num_launcher_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->num_launcher_replicas(), target); - } - - // int32 slots = 3; - if (this->slots() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->slots(), 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.plugins.DistributedMPITrainingTask) - return target; -} - -size_t DistributedMPITrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedMPITrainingTask) - 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; - - // int32 num_workers = 1; - if (this->num_workers() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_workers()); - } - - // int32 num_launcher_replicas = 2; - if (this->num_launcher_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->num_launcher_replicas()); - } - - // int32 slots = 3; - if (this->slots() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->slots()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedMPITrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedMPITrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedMPITrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedMPITrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedMPITrainingTask) - MergeFrom(*source); - } -} - -void DistributedMPITrainingTask::MergeFrom(const DistributedMPITrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedMPITrainingTask) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.num_workers() != 0) { - set_num_workers(from.num_workers()); - } - if (from.num_launcher_replicas() != 0) { - set_num_launcher_replicas(from.num_launcher_replicas()); - } - if (from.slots() != 0) { - set_slots(from.slots()); - } -} - -void DistributedMPITrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedMPITrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedMPITrainingTask::CopyFrom(const DistributedMPITrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedMPITrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedMPITrainingTask::IsInitialized() const { - return true; -} - -void DistributedMPITrainingTask::Swap(DistributedMPITrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedMPITrainingTask::InternalSwap(DistributedMPITrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(num_workers_, other->num_workers_); - swap(num_launcher_replicas_, other->num_launcher_replicas_); - swap(slots_, other->slots_); -} - -::google::protobuf::Metadata DistributedMPITrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fmpi_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fmpi_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedMPITrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedMPITrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DistributedMPITrainingTask >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h deleted file mode 100644 index 119bb2ca98..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/mpi.pb.h +++ /dev/null @@ -1,257 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/mpi.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fmpi_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fmpi_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fmpi_2eproto(); -namespace flyteidl { -namespace plugins { -class DistributedMPITrainingTask; -class DistributedMPITrainingTaskDefaultTypeInternal; -extern DistributedMPITrainingTaskDefaultTypeInternal _DistributedMPITrainingTask_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::DistributedMPITrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedMPITrainingTask>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class DistributedMPITrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedMPITrainingTask) */ { - public: - DistributedMPITrainingTask(); - virtual ~DistributedMPITrainingTask(); - - DistributedMPITrainingTask(const DistributedMPITrainingTask& from); - - inline DistributedMPITrainingTask& operator=(const DistributedMPITrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedMPITrainingTask(DistributedMPITrainingTask&& from) noexcept - : DistributedMPITrainingTask() { - *this = ::std::move(from); - } - - inline DistributedMPITrainingTask& operator=(DistributedMPITrainingTask&& 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 DistributedMPITrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedMPITrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedMPITrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DistributedMPITrainingTask* other); - friend void swap(DistributedMPITrainingTask& a, DistributedMPITrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedMPITrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedMPITrainingTask* 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 DistributedMPITrainingTask& from); - void MergeFrom(const DistributedMPITrainingTask& 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(DistributedMPITrainingTask* 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 ------------------------------------------------------- - - // int32 num_workers = 1; - void clear_num_workers(); - static const int kNumWorkersFieldNumber = 1; - ::google::protobuf::int32 num_workers() const; - void set_num_workers(::google::protobuf::int32 value); - - // int32 num_launcher_replicas = 2; - void clear_num_launcher_replicas(); - static const int kNumLauncherReplicasFieldNumber = 2; - ::google::protobuf::int32 num_launcher_replicas() const; - void set_num_launcher_replicas(::google::protobuf::int32 value); - - // int32 slots = 3; - void clear_slots(); - static const int kSlotsFieldNumber = 3; - ::google::protobuf::int32 slots() const; - void set_slots(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedMPITrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int32 num_workers_; - ::google::protobuf::int32 num_launcher_replicas_; - ::google::protobuf::int32 slots_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fmpi_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DistributedMPITrainingTask - -// int32 num_workers = 1; -inline void DistributedMPITrainingTask::clear_num_workers() { - num_workers_ = 0; -} -inline ::google::protobuf::int32 DistributedMPITrainingTask::num_workers() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.num_workers) - return num_workers_; -} -inline void DistributedMPITrainingTask::set_num_workers(::google::protobuf::int32 value) { - - num_workers_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.num_workers) -} - -// int32 num_launcher_replicas = 2; -inline void DistributedMPITrainingTask::clear_num_launcher_replicas() { - num_launcher_replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedMPITrainingTask::num_launcher_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.num_launcher_replicas) - return num_launcher_replicas_; -} -inline void DistributedMPITrainingTask::set_num_launcher_replicas(::google::protobuf::int32 value) { - - num_launcher_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.num_launcher_replicas) -} - -// int32 slots = 3; -inline void DistributedMPITrainingTask::clear_slots() { - slots_ = 0; -} -inline ::google::protobuf::int32 DistributedMPITrainingTask::slots() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedMPITrainingTask.slots) - return slots_; -} -inline void DistributedMPITrainingTask::set_slots(::google::protobuf::int32 value) { - - slots_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedMPITrainingTask.slots) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fmpi_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc deleted file mode 100644 index 04dda26e33..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/presto.proto - -#include "flyteidl/plugins/presto.pb.h" -#include "flyteidl/plugins/presto.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h deleted file mode 100644 index 8172a55c49..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/presto.proto -#ifndef GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED - -#include "flyteidl/plugins/presto.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fpresto_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc deleted file mode 100644 index b2c1181200..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.cc +++ /dev/null @@ -1,628 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/presto.proto - -#include "flyteidl/plugins/presto.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace plugins { -class PrestoQueryDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PrestoQuery_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsPrestoQuery_flyteidl_2fplugins_2fpresto_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_PrestoQuery_default_instance_; - new (ptr) ::flyteidl::plugins::PrestoQuery(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::PrestoQuery::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPrestoQuery_flyteidl_2fplugins_2fpresto_2eproto}, {}}; - -void InitDefaults_flyteidl_2fplugins_2fpresto_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fpresto_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fpresto_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fpresto_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, routing_group_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, catalog_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, schema_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::PrestoQuery, statement_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::PrestoQuery)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_PrestoQuery_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto, "flyteidl/plugins/presto.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fpresto_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fpresto_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fpresto_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fpresto_2eproto[] = - "\n\035flyteidl/plugins/presto.proto\022\020flyteid" - "l.plugins\"X\n\013PrestoQuery\022\025\n\rrouting_grou" - "p\030\001 \001(\t\022\017\n\007catalog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t" - "\022\021\n\tstatement\030\004 \001(\tB\?Z=github.com/flyteo" - "rg/flyte/flyteidl/gen/pb-go/flyteidl/plu" - "ginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fpresto_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fpresto_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fpresto_2eproto, - "flyteidl/plugins/presto.proto", &assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto, 212, -}; - -void AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fpresto_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fpresto_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void PrestoQuery::InitAsDefaultInstance() { -} -class PrestoQuery::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PrestoQuery::kRoutingGroupFieldNumber; -const int PrestoQuery::kCatalogFieldNumber; -const int PrestoQuery::kSchemaFieldNumber; -const int PrestoQuery::kStatementFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PrestoQuery::PrestoQuery() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.PrestoQuery) -} -PrestoQuery::PrestoQuery(const PrestoQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - routing_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.routing_group().size() > 0) { - routing_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_group_); - } - catalog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.catalog().size() > 0) { - catalog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_); - } - schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.schema().size() > 0) { - schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); - } - statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.statement().size() > 0) { - statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.PrestoQuery) -} - -void PrestoQuery::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); - routing_group_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - catalog_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - schema_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - statement_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -PrestoQuery::~PrestoQuery() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.PrestoQuery) - SharedDtor(); -} - -void PrestoQuery::SharedDtor() { - routing_group_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - catalog_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - schema_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - statement_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PrestoQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PrestoQuery& PrestoQuery::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PrestoQuery_flyteidl_2fplugins_2fpresto_2eproto.base); - return *internal_default_instance(); -} - - -void PrestoQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.PrestoQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - routing_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - catalog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PrestoQuery::_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) { - // string routing_group = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.routing_group"); - object = msg->mutable_routing_group(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string catalog = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.catalog"); - object = msg->mutable_catalog(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string schema = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.schema"); - object = msg->mutable_schema(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string statement = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.PrestoQuery.statement"); - object = msg->mutable_statement(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PrestoQuery::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.plugins.PrestoQuery) - 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)) { - // string routing_group = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_routing_group())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->routing_group().data(), static_cast(this->routing_group().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.PrestoQuery.routing_group")); - } else { - goto handle_unusual; - } - break; - } - - // string catalog = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_catalog())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->catalog().data(), static_cast(this->catalog().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.PrestoQuery.catalog")); - } else { - goto handle_unusual; - } - break; - } - - // string schema = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_schema())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schema().data(), static_cast(this->schema().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.PrestoQuery.schema")); - } else { - goto handle_unusual; - } - break; - } - - // string statement = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_statement())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.PrestoQuery.statement")); - } 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.plugins.PrestoQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.PrestoQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PrestoQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.PrestoQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string routing_group = 1; - if (this->routing_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->routing_group().data(), static_cast(this->routing_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.routing_group"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->routing_group(), output); - } - - // string catalog = 2; - if (this->catalog().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->catalog().data(), static_cast(this->catalog().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.catalog"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->catalog(), output); - } - - // string schema = 3; - if (this->schema().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schema().data(), static_cast(this->schema().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.schema"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->schema(), output); - } - - // string statement = 4; - if (this->statement().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.statement"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->statement(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.PrestoQuery) -} - -::google::protobuf::uint8* PrestoQuery::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.PrestoQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string routing_group = 1; - if (this->routing_group().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->routing_group().data(), static_cast(this->routing_group().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.routing_group"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->routing_group(), target); - } - - // string catalog = 2; - if (this->catalog().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->catalog().data(), static_cast(this->catalog().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.catalog"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->catalog(), target); - } - - // string schema = 3; - if (this->schema().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->schema().data(), static_cast(this->schema().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.schema"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->schema(), target); - } - - // string statement = 4; - if (this->statement().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->statement().data(), static_cast(this->statement().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.PrestoQuery.statement"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->statement(), 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.plugins.PrestoQuery) - return target; -} - -size_t PrestoQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.PrestoQuery) - 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; - - // string routing_group = 1; - if (this->routing_group().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->routing_group()); - } - - // string catalog = 2; - if (this->catalog().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->catalog()); - } - - // string schema = 3; - if (this->schema().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->schema()); - } - - // string statement = 4; - if (this->statement().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->statement()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PrestoQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.PrestoQuery) - GOOGLE_DCHECK_NE(&from, this); - const PrestoQuery* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.PrestoQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.PrestoQuery) - MergeFrom(*source); - } -} - -void PrestoQuery::MergeFrom(const PrestoQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.PrestoQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.routing_group().size() > 0) { - - routing_group_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.routing_group_); - } - if (from.catalog().size() > 0) { - - catalog_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.catalog_); - } - if (from.schema().size() > 0) { - - schema_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.schema_); - } - if (from.statement().size() > 0) { - - statement_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.statement_); - } -} - -void PrestoQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.PrestoQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PrestoQuery::CopyFrom(const PrestoQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.PrestoQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PrestoQuery::IsInitialized() const { - return true; -} - -void PrestoQuery::Swap(PrestoQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void PrestoQuery::InternalSwap(PrestoQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - routing_group_.Swap(&other->routing_group_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - catalog_.Swap(&other->catalog_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - schema_.Swap(&other->schema_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - statement_.Swap(&other->statement_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata PrestoQuery::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpresto_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fpresto_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::PrestoQuery* Arena::CreateMaybeMessage< ::flyteidl::plugins::PrestoQuery >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::PrestoQuery >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h deleted file mode 100644 index e7d19f1b8a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/presto.pb.h +++ /dev/null @@ -1,466 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/presto.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpresto_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fpresto_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fpresto_2eproto(); -namespace flyteidl { -namespace plugins { -class PrestoQuery; -class PrestoQueryDefaultTypeInternal; -extern PrestoQueryDefaultTypeInternal _PrestoQuery_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::PrestoQuery* Arena::CreateMaybeMessage<::flyteidl::plugins::PrestoQuery>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class PrestoQuery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.PrestoQuery) */ { - public: - PrestoQuery(); - virtual ~PrestoQuery(); - - PrestoQuery(const PrestoQuery& from); - - inline PrestoQuery& operator=(const PrestoQuery& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PrestoQuery(PrestoQuery&& from) noexcept - : PrestoQuery() { - *this = ::std::move(from); - } - - inline PrestoQuery& operator=(PrestoQuery&& 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 PrestoQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PrestoQuery* internal_default_instance() { - return reinterpret_cast( - &_PrestoQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(PrestoQuery* other); - friend void swap(PrestoQuery& a, PrestoQuery& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PrestoQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - PrestoQuery* 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 PrestoQuery& from); - void MergeFrom(const PrestoQuery& 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(PrestoQuery* 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 ------------------------------------------------------- - - // string routing_group = 1; - void clear_routing_group(); - static const int kRoutingGroupFieldNumber = 1; - const ::std::string& routing_group() const; - void set_routing_group(const ::std::string& value); - #if LANG_CXX11 - void set_routing_group(::std::string&& value); - #endif - void set_routing_group(const char* value); - void set_routing_group(const char* value, size_t size); - ::std::string* mutable_routing_group(); - ::std::string* release_routing_group(); - void set_allocated_routing_group(::std::string* routing_group); - - // string catalog = 2; - void clear_catalog(); - static const int kCatalogFieldNumber = 2; - const ::std::string& catalog() const; - void set_catalog(const ::std::string& value); - #if LANG_CXX11 - void set_catalog(::std::string&& value); - #endif - void set_catalog(const char* value); - void set_catalog(const char* value, size_t size); - ::std::string* mutable_catalog(); - ::std::string* release_catalog(); - void set_allocated_catalog(::std::string* catalog); - - // string schema = 3; - void clear_schema(); - static const int kSchemaFieldNumber = 3; - const ::std::string& schema() const; - void set_schema(const ::std::string& value); - #if LANG_CXX11 - void set_schema(::std::string&& value); - #endif - void set_schema(const char* value); - void set_schema(const char* value, size_t size); - ::std::string* mutable_schema(); - ::std::string* release_schema(); - void set_allocated_schema(::std::string* schema); - - // string statement = 4; - void clear_statement(); - static const int kStatementFieldNumber = 4; - const ::std::string& statement() const; - void set_statement(const ::std::string& value); - #if LANG_CXX11 - void set_statement(::std::string&& value); - #endif - void set_statement(const char* value); - void set_statement(const char* value, size_t size); - ::std::string* mutable_statement(); - ::std::string* release_statement(); - void set_allocated_statement(::std::string* statement); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr routing_group_; - ::google::protobuf::internal::ArenaStringPtr catalog_; - ::google::protobuf::internal::ArenaStringPtr schema_; - ::google::protobuf::internal::ArenaStringPtr statement_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fpresto_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// PrestoQuery - -// string routing_group = 1; -inline void PrestoQuery::clear_routing_group() { - routing_group_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PrestoQuery::routing_group() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.routing_group) - return routing_group_.GetNoArena(); -} -inline void PrestoQuery::set_routing_group(const ::std::string& value) { - - routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.routing_group) -} -#if LANG_CXX11 -inline void PrestoQuery::set_routing_group(::std::string&& value) { - - routing_group_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.routing_group) -} -#endif -inline void PrestoQuery::set_routing_group(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.routing_group) -} -inline void PrestoQuery::set_routing_group(const char* value, size_t size) { - - routing_group_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.routing_group) -} -inline ::std::string* PrestoQuery::mutable_routing_group() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.routing_group) - return routing_group_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PrestoQuery::release_routing_group() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.routing_group) - - return routing_group_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PrestoQuery::set_allocated_routing_group(::std::string* routing_group) { - if (routing_group != nullptr) { - - } else { - - } - routing_group_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), routing_group); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.routing_group) -} - -// string catalog = 2; -inline void PrestoQuery::clear_catalog() { - catalog_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PrestoQuery::catalog() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.catalog) - return catalog_.GetNoArena(); -} -inline void PrestoQuery::set_catalog(const ::std::string& value) { - - catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.catalog) -} -#if LANG_CXX11 -inline void PrestoQuery::set_catalog(::std::string&& value) { - - catalog_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.catalog) -} -#endif -inline void PrestoQuery::set_catalog(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.catalog) -} -inline void PrestoQuery::set_catalog(const char* value, size_t size) { - - catalog_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.catalog) -} -inline ::std::string* PrestoQuery::mutable_catalog() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.catalog) - return catalog_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PrestoQuery::release_catalog() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.catalog) - - return catalog_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PrestoQuery::set_allocated_catalog(::std::string* catalog) { - if (catalog != nullptr) { - - } else { - - } - catalog_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), catalog); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.catalog) -} - -// string schema = 3; -inline void PrestoQuery::clear_schema() { - schema_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PrestoQuery::schema() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.schema) - return schema_.GetNoArena(); -} -inline void PrestoQuery::set_schema(const ::std::string& value) { - - schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.schema) -} -#if LANG_CXX11 -inline void PrestoQuery::set_schema(::std::string&& value) { - - schema_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.schema) -} -#endif -inline void PrestoQuery::set_schema(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.schema) -} -inline void PrestoQuery::set_schema(const char* value, size_t size) { - - schema_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.schema) -} -inline ::std::string* PrestoQuery::mutable_schema() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.schema) - return schema_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PrestoQuery::release_schema() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.schema) - - return schema_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PrestoQuery::set_allocated_schema(::std::string* schema) { - if (schema != nullptr) { - - } else { - - } - schema_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), schema); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.schema) -} - -// string statement = 4; -inline void PrestoQuery::clear_statement() { - statement_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PrestoQuery::statement() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.PrestoQuery.statement) - return statement_.GetNoArena(); -} -inline void PrestoQuery::set_statement(const ::std::string& value) { - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.PrestoQuery.statement) -} -#if LANG_CXX11 -inline void PrestoQuery::set_statement(::std::string&& value) { - - statement_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.PrestoQuery.statement) -} -#endif -inline void PrestoQuery::set_statement(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.PrestoQuery.statement) -} -inline void PrestoQuery::set_statement(const char* value, size_t size) { - - statement_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.PrestoQuery.statement) -} -inline ::std::string* PrestoQuery::mutable_statement() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.PrestoQuery.statement) - return statement_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PrestoQuery::release_statement() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.PrestoQuery.statement) - - return statement_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PrestoQuery::set_allocated_statement(::std::string* statement) { - if (statement != nullptr) { - - } else { - - } - statement_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), statement); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.PrestoQuery.statement) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpresto_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc deleted file mode 100644 index e626cd085f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/pytorch.proto - -#include "flyteidl/plugins/pytorch.pb.h" -#include "flyteidl/plugins/pytorch.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h deleted file mode 100644 index 8345dd3c68..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/pytorch.proto -#ifndef GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED - -#include "flyteidl/plugins/pytorch.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fpytorch_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc deleted file mode 100644 index f1c6129676..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.cc +++ /dev/null @@ -1,956 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/pytorch.proto - -#include "flyteidl/plugins/pytorch.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpytorch_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto; -namespace flyteidl { -namespace plugins { -class ElasticConfigDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _ElasticConfig_default_instance_; -class DistributedPyTorchTrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedPyTorchTrainingTask_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_ElasticConfig_default_instance_; - new (ptr) ::flyteidl::plugins::ElasticConfig(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::ElasticConfig::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto}, {}}; - -static void InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::DistributedPyTorchTrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DistributedPyTorchTrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto}, { - &scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fpytorch_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[2]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fpytorch_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fpytorch_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fpytorch_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, rdzv_backend_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, min_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, max_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, nproc_per_node_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::ElasticConfig, max_restarts_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, workers_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedPyTorchTrainingTask, elastic_config_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::ElasticConfig)}, - { 10, -1, sizeof(::flyteidl::plugins::DistributedPyTorchTrainingTask)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_ElasticConfig_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto, "flyteidl/plugins/pytorch.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fpytorch_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto, 2, file_level_enum_descriptors_flyteidl_2fplugins_2fpytorch_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fpytorch_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fpytorch_2eproto[] = - "\n\036flyteidl/plugins/pytorch.proto\022\020flytei" - "dl.plugins\"\177\n\rElasticConfig\022\024\n\014rdzv_back" - "end\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014max_r" - "eplicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001(\005\022\024\n" - "\014max_restarts\030\005 \001(\005\"j\n\036DistributedPyTorc" - "hTrainingTask\022\017\n\007workers\030\001 \001(\005\0227\n\016elasti" - "c_config\030\002 \001(\0132\037.flyteidl.plugins.Elasti" - "cConfigB\?Z=github.com/flyteorg/flyte/fly" - "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fpytorch_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fpytorch_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fpytorch_2eproto, - "flyteidl/plugins/pytorch.proto", &assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto, 360, -}; - -void AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fpytorch_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fpytorch_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void ElasticConfig::InitAsDefaultInstance() { -} -class ElasticConfig::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int ElasticConfig::kRdzvBackendFieldNumber; -const int ElasticConfig::kMinReplicasFieldNumber; -const int ElasticConfig::kMaxReplicasFieldNumber; -const int ElasticConfig::kNprocPerNodeFieldNumber; -const int ElasticConfig::kMaxRestartsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -ElasticConfig::ElasticConfig() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.ElasticConfig) -} -ElasticConfig::ElasticConfig(const ElasticConfig& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.rdzv_backend().size() > 0) { - rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); - } - ::memcpy(&min_replicas_, &from.min_replicas_, - static_cast(reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.ElasticConfig) -} - -void ElasticConfig::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); - rdzv_backend_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&min_replicas_, 0, static_cast( - reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); -} - -ElasticConfig::~ElasticConfig() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.ElasticConfig) - SharedDtor(); -} - -void ElasticConfig::SharedDtor() { - rdzv_backend_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void ElasticConfig::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const ElasticConfig& ElasticConfig::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_ElasticConfig_flyteidl_2fplugins_2fpytorch_2eproto.base); - return *internal_default_instance(); -} - - -void ElasticConfig::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&min_replicas_, 0, static_cast( - reinterpret_cast(&max_restarts_) - - reinterpret_cast(&min_replicas_)) + sizeof(max_restarts_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* ElasticConfig::_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) { - // string rdzv_backend = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.ElasticConfig.rdzv_backend"); - object = msg->mutable_rdzv_backend(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int32 min_replicas = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 max_replicas = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 nproc_per_node = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_nproc_per_node(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 max_restarts = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 40) goto handle_unusual; - msg->set_max_restarts(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool ElasticConfig::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.plugins.ElasticConfig) - 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)) { - // string rdzv_backend = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_rdzv_backend())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.ElasticConfig.rdzv_backend")); - } else { - goto handle_unusual; - } - break; - } - - // int32 min_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &min_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_replicas = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 nproc_per_node = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &nproc_per_node_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_restarts = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (40 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_restarts_))); - } 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.plugins.ElasticConfig) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.ElasticConfig) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void ElasticConfig::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.ElasticConfig.rdzv_backend"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->rdzv_backend(), output); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->min_replicas(), output); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->max_replicas(), output); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->nproc_per_node(), output); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->max_restarts(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.ElasticConfig) -} - -::google::protobuf::uint8* ElasticConfig::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.ElasticConfig) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->rdzv_backend().data(), static_cast(this->rdzv_backend().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.ElasticConfig.rdzv_backend"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->rdzv_backend(), target); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->min_replicas(), target); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->max_replicas(), target); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->nproc_per_node(), target); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->max_restarts(), 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.plugins.ElasticConfig) - return target; -} - -size_t ElasticConfig::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.ElasticConfig) - 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; - - // string rdzv_backend = 1; - if (this->rdzv_backend().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->rdzv_backend()); - } - - // int32 min_replicas = 2; - if (this->min_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->min_replicas()); - } - - // int32 max_replicas = 3; - if (this->max_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_replicas()); - } - - // int32 nproc_per_node = 4; - if (this->nproc_per_node() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->nproc_per_node()); - } - - // int32 max_restarts = 5; - if (this->max_restarts() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_restarts()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void ElasticConfig::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.ElasticConfig) - GOOGLE_DCHECK_NE(&from, this); - const ElasticConfig* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.ElasticConfig) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.ElasticConfig) - MergeFrom(*source); - } -} - -void ElasticConfig::MergeFrom(const ElasticConfig& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.ElasticConfig) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.rdzv_backend().size() > 0) { - - rdzv_backend_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.rdzv_backend_); - } - if (from.min_replicas() != 0) { - set_min_replicas(from.min_replicas()); - } - if (from.max_replicas() != 0) { - set_max_replicas(from.max_replicas()); - } - if (from.nproc_per_node() != 0) { - set_nproc_per_node(from.nproc_per_node()); - } - if (from.max_restarts() != 0) { - set_max_restarts(from.max_restarts()); - } -} - -void ElasticConfig::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.ElasticConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void ElasticConfig::CopyFrom(const ElasticConfig& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.ElasticConfig) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ElasticConfig::IsInitialized() const { - return true; -} - -void ElasticConfig::Swap(ElasticConfig* other) { - if (other == this) return; - InternalSwap(other); -} -void ElasticConfig::InternalSwap(ElasticConfig* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - rdzv_backend_.Swap(&other->rdzv_backend_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(min_replicas_, other->min_replicas_); - swap(max_replicas_, other->max_replicas_); - swap(nproc_per_node_, other->nproc_per_node_); - swap(max_restarts_, other->max_restarts_); -} - -::google::protobuf::Metadata ElasticConfig::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void DistributedPyTorchTrainingTask::InitAsDefaultInstance() { - ::flyteidl::plugins::_DistributedPyTorchTrainingTask_default_instance_._instance.get_mutable()->elastic_config_ = const_cast< ::flyteidl::plugins::ElasticConfig*>( - ::flyteidl::plugins::ElasticConfig::internal_default_instance()); -} -class DistributedPyTorchTrainingTask::HasBitSetters { - public: - static const ::flyteidl::plugins::ElasticConfig& elastic_config(const DistributedPyTorchTrainingTask* msg); -}; - -const ::flyteidl::plugins::ElasticConfig& -DistributedPyTorchTrainingTask::HasBitSetters::elastic_config(const DistributedPyTorchTrainingTask* msg) { - return *msg->elastic_config_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedPyTorchTrainingTask::kWorkersFieldNumber; -const int DistributedPyTorchTrainingTask::kElasticConfigFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedPyTorchTrainingTask) -} -DistributedPyTorchTrainingTask::DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_elastic_config()) { - elastic_config_ = new ::flyteidl::plugins::ElasticConfig(*from.elastic_config_); - } else { - elastic_config_ = nullptr; - } - workers_ = from.workers_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedPyTorchTrainingTask) -} - -void DistributedPyTorchTrainingTask::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); - ::memset(&elastic_config_, 0, static_cast( - reinterpret_cast(&workers_) - - reinterpret_cast(&elastic_config_)) + sizeof(workers_)); -} - -DistributedPyTorchTrainingTask::~DistributedPyTorchTrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedPyTorchTrainingTask) - SharedDtor(); -} - -void DistributedPyTorchTrainingTask::SharedDtor() { - if (this != internal_default_instance()) delete elastic_config_; -} - -void DistributedPyTorchTrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedPyTorchTrainingTask& DistributedPyTorchTrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedPyTorchTrainingTask_flyteidl_2fplugins_2fpytorch_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedPyTorchTrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { - delete elastic_config_; - } - elastic_config_ = nullptr; - workers_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedPyTorchTrainingTask::_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) { - // int32 workers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_workers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.plugins.ElasticConfig elastic_config = 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::plugins::ElasticConfig::_InternalParse; - object = msg->mutable_elastic_config(); - 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 DistributedPyTorchTrainingTask::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.plugins.DistributedPyTorchTrainingTask) - 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)) { - // int32 workers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &workers_))); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.ElasticConfig elastic_config = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_elastic_config())); - } 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.plugins.DistributedPyTorchTrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedPyTorchTrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedPyTorchTrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 workers = 1; - if (this->workers() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->workers(), output); - } - - // .flyteidl.plugins.ElasticConfig elastic_config = 2; - if (this->has_elastic_config()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::elastic_config(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedPyTorchTrainingTask) -} - -::google::protobuf::uint8* DistributedPyTorchTrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 workers = 1; - if (this->workers() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->workers(), target); - } - - // .flyteidl.plugins.ElasticConfig elastic_config = 2; - if (this->has_elastic_config()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::elastic_config(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.plugins.DistributedPyTorchTrainingTask) - return target; -} - -size_t DistributedPyTorchTrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - 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.plugins.ElasticConfig elastic_config = 2; - if (this->has_elastic_config()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *elastic_config_); - } - - // int32 workers = 1; - if (this->workers() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->workers()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedPyTorchTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedPyTorchTrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedPyTorchTrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedPyTorchTrainingTask) - MergeFrom(*source); - } -} - -void DistributedPyTorchTrainingTask::MergeFrom(const DistributedPyTorchTrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - 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_elastic_config()) { - mutable_elastic_config()->::flyteidl::plugins::ElasticConfig::MergeFrom(from.elastic_config()); - } - if (from.workers() != 0) { - set_workers(from.workers()); - } -} - -void DistributedPyTorchTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedPyTorchTrainingTask::CopyFrom(const DistributedPyTorchTrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedPyTorchTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedPyTorchTrainingTask::IsInitialized() const { - return true; -} - -void DistributedPyTorchTrainingTask::Swap(DistributedPyTorchTrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedPyTorchTrainingTask::InternalSwap(DistributedPyTorchTrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(elastic_config_, other->elastic_config_); - swap(workers_, other->workers_); -} - -::google::protobuf::Metadata DistributedPyTorchTrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fpytorch_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fpytorch_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::ElasticConfig* Arena::CreateMaybeMessage< ::flyteidl::plugins::ElasticConfig >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::ElasticConfig >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedPyTorchTrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DistributedPyTorchTrainingTask >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h deleted file mode 100644 index b0d9b4a276..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/pytorch.pb.h +++ /dev/null @@ -1,543 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/pytorch.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fpytorch_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fpytorch_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fpytorch_2eproto(); -namespace flyteidl { -namespace plugins { -class DistributedPyTorchTrainingTask; -class DistributedPyTorchTrainingTaskDefaultTypeInternal; -extern DistributedPyTorchTrainingTaskDefaultTypeInternal _DistributedPyTorchTrainingTask_default_instance_; -class ElasticConfig; -class ElasticConfigDefaultTypeInternal; -extern ElasticConfigDefaultTypeInternal _ElasticConfig_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::DistributedPyTorchTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedPyTorchTrainingTask>(Arena*); -template<> ::flyteidl::plugins::ElasticConfig* Arena::CreateMaybeMessage<::flyteidl::plugins::ElasticConfig>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class ElasticConfig final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.ElasticConfig) */ { - public: - ElasticConfig(); - virtual ~ElasticConfig(); - - ElasticConfig(const ElasticConfig& from); - - inline ElasticConfig& operator=(const ElasticConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ElasticConfig(ElasticConfig&& from) noexcept - : ElasticConfig() { - *this = ::std::move(from); - } - - inline ElasticConfig& operator=(ElasticConfig&& 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 ElasticConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ElasticConfig* internal_default_instance() { - return reinterpret_cast( - &_ElasticConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(ElasticConfig* other); - friend void swap(ElasticConfig& a, ElasticConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ElasticConfig* New() const final { - return CreateMaybeMessage(nullptr); - } - - ElasticConfig* 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 ElasticConfig& from); - void MergeFrom(const ElasticConfig& 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(ElasticConfig* 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 ------------------------------------------------------- - - // string rdzv_backend = 1; - void clear_rdzv_backend(); - static const int kRdzvBackendFieldNumber = 1; - const ::std::string& rdzv_backend() const; - void set_rdzv_backend(const ::std::string& value); - #if LANG_CXX11 - void set_rdzv_backend(::std::string&& value); - #endif - void set_rdzv_backend(const char* value); - void set_rdzv_backend(const char* value, size_t size); - ::std::string* mutable_rdzv_backend(); - ::std::string* release_rdzv_backend(); - void set_allocated_rdzv_backend(::std::string* rdzv_backend); - - // int32 min_replicas = 2; - void clear_min_replicas(); - static const int kMinReplicasFieldNumber = 2; - ::google::protobuf::int32 min_replicas() const; - void set_min_replicas(::google::protobuf::int32 value); - - // int32 max_replicas = 3; - void clear_max_replicas(); - static const int kMaxReplicasFieldNumber = 3; - ::google::protobuf::int32 max_replicas() const; - void set_max_replicas(::google::protobuf::int32 value); - - // int32 nproc_per_node = 4; - void clear_nproc_per_node(); - static const int kNprocPerNodeFieldNumber = 4; - ::google::protobuf::int32 nproc_per_node() const; - void set_nproc_per_node(::google::protobuf::int32 value); - - // int32 max_restarts = 5; - void clear_max_restarts(); - static const int kMaxRestartsFieldNumber = 5; - ::google::protobuf::int32 max_restarts() const; - void set_max_restarts(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ElasticConfig) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr rdzv_backend_; - ::google::protobuf::int32 min_replicas_; - ::google::protobuf::int32 max_replicas_; - ::google::protobuf::int32 nproc_per_node_; - ::google::protobuf::int32 max_restarts_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fpytorch_2eproto; -}; -// ------------------------------------------------------------------- - -class DistributedPyTorchTrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedPyTorchTrainingTask) */ { - public: - DistributedPyTorchTrainingTask(); - virtual ~DistributedPyTorchTrainingTask(); - - DistributedPyTorchTrainingTask(const DistributedPyTorchTrainingTask& from); - - inline DistributedPyTorchTrainingTask& operator=(const DistributedPyTorchTrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedPyTorchTrainingTask(DistributedPyTorchTrainingTask&& from) noexcept - : DistributedPyTorchTrainingTask() { - *this = ::std::move(from); - } - - inline DistributedPyTorchTrainingTask& operator=(DistributedPyTorchTrainingTask&& 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 DistributedPyTorchTrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedPyTorchTrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedPyTorchTrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(DistributedPyTorchTrainingTask* other); - friend void swap(DistributedPyTorchTrainingTask& a, DistributedPyTorchTrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedPyTorchTrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedPyTorchTrainingTask* 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 DistributedPyTorchTrainingTask& from); - void MergeFrom(const DistributedPyTorchTrainingTask& 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(DistributedPyTorchTrainingTask* 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.plugins.ElasticConfig elastic_config = 2; - bool has_elastic_config() const; - void clear_elastic_config(); - static const int kElasticConfigFieldNumber = 2; - const ::flyteidl::plugins::ElasticConfig& elastic_config() const; - ::flyteidl::plugins::ElasticConfig* release_elastic_config(); - ::flyteidl::plugins::ElasticConfig* mutable_elastic_config(); - void set_allocated_elastic_config(::flyteidl::plugins::ElasticConfig* elastic_config); - - // int32 workers = 1; - void clear_workers(); - static const int kWorkersFieldNumber = 1; - ::google::protobuf::int32 workers() const; - void set_workers(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::plugins::ElasticConfig* elastic_config_; - ::google::protobuf::int32 workers_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fpytorch_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ElasticConfig - -// string rdzv_backend = 1; -inline void ElasticConfig::clear_rdzv_backend() { - rdzv_backend_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& ElasticConfig::rdzv_backend() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.rdzv_backend) - return rdzv_backend_.GetNoArena(); -} -inline void ElasticConfig::set_rdzv_backend(const ::std::string& value) { - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.rdzv_backend) -} -#if LANG_CXX11 -inline void ElasticConfig::set_rdzv_backend(::std::string&& value) { - - rdzv_backend_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.ElasticConfig.rdzv_backend) -} -#endif -inline void ElasticConfig::set_rdzv_backend(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.ElasticConfig.rdzv_backend) -} -inline void ElasticConfig::set_rdzv_backend(const char* value, size_t size) { - - rdzv_backend_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.ElasticConfig.rdzv_backend) -} -inline ::std::string* ElasticConfig::mutable_rdzv_backend() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.ElasticConfig.rdzv_backend) - return rdzv_backend_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* ElasticConfig::release_rdzv_backend() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.ElasticConfig.rdzv_backend) - - return rdzv_backend_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void ElasticConfig::set_allocated_rdzv_backend(::std::string* rdzv_backend) { - if (rdzv_backend != nullptr) { - - } else { - - } - rdzv_backend_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rdzv_backend); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.ElasticConfig.rdzv_backend) -} - -// int32 min_replicas = 2; -inline void ElasticConfig::clear_min_replicas() { - min_replicas_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::min_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.min_replicas) - return min_replicas_; -} -inline void ElasticConfig::set_min_replicas(::google::protobuf::int32 value) { - - min_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.min_replicas) -} - -// int32 max_replicas = 3; -inline void ElasticConfig::clear_max_replicas() { - max_replicas_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::max_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.max_replicas) - return max_replicas_; -} -inline void ElasticConfig::set_max_replicas(::google::protobuf::int32 value) { - - max_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.max_replicas) -} - -// int32 nproc_per_node = 4; -inline void ElasticConfig::clear_nproc_per_node() { - nproc_per_node_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::nproc_per_node() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.nproc_per_node) - return nproc_per_node_; -} -inline void ElasticConfig::set_nproc_per_node(::google::protobuf::int32 value) { - - nproc_per_node_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.nproc_per_node) -} - -// int32 max_restarts = 5; -inline void ElasticConfig::clear_max_restarts() { - max_restarts_ = 0; -} -inline ::google::protobuf::int32 ElasticConfig::max_restarts() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.ElasticConfig.max_restarts) - return max_restarts_; -} -inline void ElasticConfig::set_max_restarts(::google::protobuf::int32 value) { - - max_restarts_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.ElasticConfig.max_restarts) -} - -// ------------------------------------------------------------------- - -// DistributedPyTorchTrainingTask - -// int32 workers = 1; -inline void DistributedPyTorchTrainingTask::clear_workers() { - workers_ = 0; -} -inline ::google::protobuf::int32 DistributedPyTorchTrainingTask::workers() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedPyTorchTrainingTask.workers) - return workers_; -} -inline void DistributedPyTorchTrainingTask::set_workers(::google::protobuf::int32 value) { - - workers_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedPyTorchTrainingTask.workers) -} - -// .flyteidl.plugins.ElasticConfig elastic_config = 2; -inline bool DistributedPyTorchTrainingTask::has_elastic_config() const { - return this != internal_default_instance() && elastic_config_ != nullptr; -} -inline void DistributedPyTorchTrainingTask::clear_elastic_config() { - if (GetArenaNoVirtual() == nullptr && elastic_config_ != nullptr) { - delete elastic_config_; - } - elastic_config_ = nullptr; -} -inline const ::flyteidl::plugins::ElasticConfig& DistributedPyTorchTrainingTask::elastic_config() const { - const ::flyteidl::plugins::ElasticConfig* p = elastic_config_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_ElasticConfig_default_instance_); -} -inline ::flyteidl::plugins::ElasticConfig* DistributedPyTorchTrainingTask::release_elastic_config() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) - - ::flyteidl::plugins::ElasticConfig* temp = elastic_config_; - elastic_config_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::ElasticConfig* DistributedPyTorchTrainingTask::mutable_elastic_config() { - - if (elastic_config_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::ElasticConfig>(GetArenaNoVirtual()); - elastic_config_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) - return elastic_config_; -} -inline void DistributedPyTorchTrainingTask::set_allocated_elastic_config(::flyteidl::plugins::ElasticConfig* elastic_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete elastic_config_; - } - if (elastic_config) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - elastic_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, elastic_config, submessage_arena); - } - - } else { - - } - elastic_config_ = elastic_config; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.DistributedPyTorchTrainingTask.elastic_config) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fpytorch_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc deleted file mode 100644 index a384ee84a8..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/qubole.proto - -#include "flyteidl/plugins/qubole.pb.h" -#include "flyteidl/plugins/qubole.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h deleted file mode 100644 index 57da539c9e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/qubole.proto -#ifndef GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED - -#include "flyteidl/plugins/qubole.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fqubole_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc deleted file mode 100644 index 8effce416c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.cc +++ /dev/null @@ -1,1354 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/qubole.proto - -#include "flyteidl/plugins/qubole.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto; -namespace flyteidl { -namespace plugins { -class HiveQueryDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HiveQuery_default_instance_; -class HiveQueryCollectionDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HiveQueryCollection_default_instance_; -class QuboleHiveJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _QuboleHiveJob_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsHiveQuery_flyteidl_2fplugins_2fqubole_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_HiveQuery_default_instance_; - new (ptr) ::flyteidl::plugins::HiveQuery(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::HiveQuery::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHiveQuery_flyteidl_2fplugins_2fqubole_2eproto}, {}}; - -static void InitDefaultsHiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_HiveQueryCollection_default_instance_; - new (ptr) ::flyteidl::plugins::HiveQueryCollection(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::HiveQueryCollection::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto}, { - &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base,}}; - -static void InitDefaultsQuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_QuboleHiveJob_default_instance_; - new (ptr) ::flyteidl::plugins::QuboleHiveJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::QuboleHiveJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsQuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto}, { - &scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base, - &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fqubole_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[3]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fqubole_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fqubole_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fqubole_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, query_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, timeout_sec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQuery, retrycount_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HiveQueryCollection, queries_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, cluster_label_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, query_collection_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, tags_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::QuboleHiveJob, query_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::HiveQuery)}, - { 8, -1, sizeof(::flyteidl::plugins::HiveQueryCollection)}, - { 14, -1, sizeof(::flyteidl::plugins::QuboleHiveJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_HiveQuery_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_HiveQueryCollection_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_QuboleHiveJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto, "flyteidl/plugins/qubole.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fqubole_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto, 3, file_level_enum_descriptors_flyteidl_2fplugins_2fqubole_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fqubole_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fqubole_2eproto[] = - "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" - "l.plugins\"C\n\tHiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n" - "\013timeout_sec\030\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C" - "\n\023HiveQueryCollection\022,\n\007queries\030\002 \003(\0132\033" - ".flyteidl.plugins.HiveQuery\"\245\001\n\rQuboleHi" - "veJob\022\025\n\rcluster_label\030\001 \001(\t\022C\n\020query_co" - "llection\030\002 \001(\0132%.flyteidl.plugins.HiveQu" - "eryCollectionB\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query" - "\030\004 \001(\0132\033.flyteidl.plugins.HiveQueryB\?Z=g" - "ithub.com/flyteorg/flyte/flyteidl/gen/pb" - "-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fqubole_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fqubole_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fqubole_2eproto, - "flyteidl/plugins/qubole.proto", &assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto, 428, -}; - -void AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fqubole_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fqubole_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void HiveQuery::InitAsDefaultInstance() { -} -class HiveQuery::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HiveQuery::kQueryFieldNumber; -const int HiveQuery::kTimeoutSecFieldNumber; -const int HiveQuery::kRetryCountFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HiveQuery::HiveQuery() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQuery) -} -HiveQuery::HiveQuery(const HiveQuery& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.query().size() > 0) { - query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); - } - ::memcpy(&timeout_sec_, &from.timeout_sec_, - static_cast(reinterpret_cast(&retrycount_) - - reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQuery) -} - -void HiveQuery::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); - query_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&timeout_sec_, 0, static_cast( - reinterpret_cast(&retrycount_) - - reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); -} - -HiveQuery::~HiveQuery() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQuery) - SharedDtor(); -} - -void HiveQuery::SharedDtor() { - query_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void HiveQuery::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HiveQuery& HiveQuery::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HiveQuery_flyteidl_2fplugins_2fqubole_2eproto.base); - return *internal_default_instance(); -} - - -void HiveQuery::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&timeout_sec_, 0, static_cast( - reinterpret_cast(&retrycount_) - - reinterpret_cast(&timeout_sec_)) + sizeof(retrycount_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HiveQuery::_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) { - // string query = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.HiveQuery.query"); - object = msg->mutable_query(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // uint32 timeout_sec = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_timeout_sec(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // uint32 retryCount = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_retrycount(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HiveQuery::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.plugins.HiveQuery) - 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)) { - // string query = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_query())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->query().data(), static_cast(this->query().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.HiveQuery.query")); - } else { - goto handle_unusual; - } - break; - } - - // uint32 timeout_sec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &timeout_sec_))); - } else { - goto handle_unusual; - } - break; - } - - // uint32 retryCount = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &retrycount_))); - } 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.plugins.HiveQuery) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQuery) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HiveQuery::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string query = 1; - if (this->query().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->query().data(), static_cast(this->query().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HiveQuery.query"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->query(), output); - } - - // uint32 timeout_sec = 2; - if (this->timeout_sec() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->timeout_sec(), output); - } - - // uint32 retryCount = 3; - if (this->retrycount() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->retrycount(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQuery) -} - -::google::protobuf::uint8* HiveQuery::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQuery) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string query = 1; - if (this->query().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->query().data(), static_cast(this->query().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HiveQuery.query"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->query(), target); - } - - // uint32 timeout_sec = 2; - if (this->timeout_sec() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->timeout_sec(), target); - } - - // uint32 retryCount = 3; - if (this->retrycount() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->retrycount(), 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.plugins.HiveQuery) - return target; -} - -size_t HiveQuery::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQuery) - 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; - - // string query = 1; - if (this->query().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->query()); - } - - // uint32 timeout_sec = 2; - if (this->timeout_sec() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->timeout_sec()); - } - - // uint32 retryCount = 3; - if (this->retrycount() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->retrycount()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HiveQuery::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQuery) - GOOGLE_DCHECK_NE(&from, this); - const HiveQuery* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQuery) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQuery) - MergeFrom(*source); - } -} - -void HiveQuery::MergeFrom(const HiveQuery& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQuery) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.query().size() > 0) { - - query_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.query_); - } - if (from.timeout_sec() != 0) { - set_timeout_sec(from.timeout_sec()); - } - if (from.retrycount() != 0) { - set_retrycount(from.retrycount()); - } -} - -void HiveQuery::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HiveQuery::CopyFrom(const HiveQuery& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQuery) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HiveQuery::IsInitialized() const { - return true; -} - -void HiveQuery::Swap(HiveQuery* other) { - if (other == this) return; - InternalSwap(other); -} -void HiveQuery::InternalSwap(HiveQuery* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - query_.Swap(&other->query_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(timeout_sec_, other->timeout_sec_); - swap(retrycount_, other->retrycount_); -} - -::google::protobuf::Metadata HiveQuery::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void HiveQueryCollection::InitAsDefaultInstance() { -} -class HiveQueryCollection::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HiveQueryCollection::kQueriesFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HiveQueryCollection::HiveQueryCollection() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.HiveQueryCollection) -} -HiveQueryCollection::HiveQueryCollection(const HiveQueryCollection& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - queries_(from.queries_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HiveQueryCollection) -} - -void HiveQueryCollection::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); -} - -HiveQueryCollection::~HiveQueryCollection() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.HiveQueryCollection) - SharedDtor(); -} - -void HiveQueryCollection::SharedDtor() { -} - -void HiveQueryCollection::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HiveQueryCollection& HiveQueryCollection::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HiveQueryCollection_flyteidl_2fplugins_2fqubole_2eproto.base); - return *internal_default_instance(); -} - - -void HiveQueryCollection::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HiveQueryCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - queries_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HiveQueryCollection::_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) { - // repeated .flyteidl.plugins.HiveQuery queries = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::HiveQuery::_InternalParse; - object = msg->add_queries(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - 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 HiveQueryCollection::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.plugins.HiveQueryCollection) - 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)) { - // repeated .flyteidl.plugins.HiveQuery queries = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_queries())); - } 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.plugins.HiveQueryCollection) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HiveQueryCollection) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HiveQueryCollection::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HiveQueryCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.plugins.HiveQuery queries = 2; - for (unsigned int i = 0, - n = static_cast(this->queries_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->queries(static_cast(i)), - output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HiveQueryCollection) -} - -::google::protobuf::uint8* HiveQueryCollection::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HiveQueryCollection) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated .flyteidl.plugins.HiveQuery queries = 2; - for (unsigned int i = 0, - n = static_cast(this->queries_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->queries(static_cast(i)), 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.plugins.HiveQueryCollection) - return target; -} - -size_t HiveQueryCollection::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HiveQueryCollection) - 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; - - // repeated .flyteidl.plugins.HiveQuery queries = 2; - { - unsigned int count = static_cast(this->queries_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->queries(static_cast(i))); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HiveQueryCollection::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HiveQueryCollection) - GOOGLE_DCHECK_NE(&from, this); - const HiveQueryCollection* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HiveQueryCollection) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HiveQueryCollection) - MergeFrom(*source); - } -} - -void HiveQueryCollection::MergeFrom(const HiveQueryCollection& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HiveQueryCollection) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - queries_.MergeFrom(from.queries_); -} - -void HiveQueryCollection::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HiveQueryCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HiveQueryCollection::CopyFrom(const HiveQueryCollection& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HiveQueryCollection) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HiveQueryCollection::IsInitialized() const { - return true; -} - -void HiveQueryCollection::Swap(HiveQueryCollection* other) { - if (other == this) return; - InternalSwap(other); -} -void HiveQueryCollection::InternalSwap(HiveQueryCollection* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&queries_)->InternalSwap(CastToBase(&other->queries_)); -} - -::google::protobuf::Metadata HiveQueryCollection::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void QuboleHiveJob::InitAsDefaultInstance() { - ::flyteidl::plugins::_QuboleHiveJob_default_instance_._instance.get_mutable()->query_collection_ = const_cast< ::flyteidl::plugins::HiveQueryCollection*>( - ::flyteidl::plugins::HiveQueryCollection::internal_default_instance()); - ::flyteidl::plugins::_QuboleHiveJob_default_instance_._instance.get_mutable()->query_ = const_cast< ::flyteidl::plugins::HiveQuery*>( - ::flyteidl::plugins::HiveQuery::internal_default_instance()); -} -class QuboleHiveJob::HasBitSetters { - public: - static const ::flyteidl::plugins::HiveQueryCollection& query_collection(const QuboleHiveJob* msg); - static const ::flyteidl::plugins::HiveQuery& query(const QuboleHiveJob* msg); -}; - -const ::flyteidl::plugins::HiveQueryCollection& -QuboleHiveJob::HasBitSetters::query_collection(const QuboleHiveJob* msg) { - return *msg->query_collection_; -} -const ::flyteidl::plugins::HiveQuery& -QuboleHiveJob::HasBitSetters::query(const QuboleHiveJob* msg) { - return *msg->query_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int QuboleHiveJob::kClusterLabelFieldNumber; -const int QuboleHiveJob::kQueryCollectionFieldNumber; -const int QuboleHiveJob::kTagsFieldNumber; -const int QuboleHiveJob::kQueryFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -QuboleHiveJob::QuboleHiveJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.QuboleHiveJob) -} -QuboleHiveJob::QuboleHiveJob(const QuboleHiveJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - tags_(from.tags_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.cluster_label().size() > 0) { - cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); - } - if (from.has_query_collection()) { - query_collection_ = new ::flyteidl::plugins::HiveQueryCollection(*from.query_collection_); - } else { - query_collection_ = nullptr; - } - if (from.has_query()) { - query_ = new ::flyteidl::plugins::HiveQuery(*from.query_); - } else { - query_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.QuboleHiveJob) -} - -void QuboleHiveJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); - cluster_label_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&query_collection_, 0, static_cast( - reinterpret_cast(&query_) - - reinterpret_cast(&query_collection_)) + sizeof(query_)); -} - -QuboleHiveJob::~QuboleHiveJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.QuboleHiveJob) - SharedDtor(); -} - -void QuboleHiveJob::SharedDtor() { - cluster_label_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete query_collection_; - if (this != internal_default_instance()) delete query_; -} - -void QuboleHiveJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const QuboleHiveJob& QuboleHiveJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_QuboleHiveJob_flyteidl_2fplugins_2fqubole_2eproto.base); - return *internal_default_instance(); -} - - -void QuboleHiveJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.QuboleHiveJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - tags_.Clear(); - cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && query_collection_ != nullptr) { - delete query_collection_; - } - query_collection_ = nullptr; - if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { - delete query_; - } - query_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* QuboleHiveJob::_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) { - // string cluster_label = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.QuboleHiveJob.cluster_label"); - object = msg->mutable_cluster_label(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - 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::plugins::HiveQueryCollection::_InternalParse; - object = msg->mutable_query_collection(); - 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; - } - // repeated string tags = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.QuboleHiveJob.tags"); - object = msg->add_tags(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // .flyteidl.plugins.HiveQuery query = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::HiveQuery::_InternalParse; - object = msg->mutable_query(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool QuboleHiveJob::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.plugins.QuboleHiveJob) - 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)) { - // string cluster_label = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_cluster_label())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_label().data(), static_cast(this->cluster_label().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.QuboleHiveJob.cluster_label")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_query_collection())); - } else { - goto handle_unusual; - } - break; - } - - // repeated string tags = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_tags())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(this->tags_size() - 1).data(), - static_cast(this->tags(this->tags_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.QuboleHiveJob.tags")); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.plugins.HiveQuery query = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_query())); - } 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.plugins.QuboleHiveJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.QuboleHiveJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void QuboleHiveJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.QuboleHiveJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster_label = 1; - if (this->cluster_label().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_label().data(), static_cast(this->cluster_label().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.QuboleHiveJob.cluster_label"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->cluster_label(), output); - } - - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - if (this->has_query_collection()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::query_collection(this), output); - } - - // repeated string tags = 3; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.QuboleHiveJob.tags"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->tags(i), output); - } - - // .flyteidl.plugins.HiveQuery query = 4; - if (this->has_query()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::query(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.QuboleHiveJob) -} - -::google::protobuf::uint8* QuboleHiveJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.QuboleHiveJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string cluster_label = 1; - if (this->cluster_label().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->cluster_label().data(), static_cast(this->cluster_label().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.QuboleHiveJob.cluster_label"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->cluster_label(), target); - } - - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - if (this->has_query_collection()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::query_collection(this), target); - } - - // repeated string tags = 3; - for (int i = 0, n = this->tags_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->tags(i).data(), static_cast(this->tags(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.QuboleHiveJob.tags"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->tags(i), target); - } - - // .flyteidl.plugins.HiveQuery query = 4; - if (this->has_query()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::query(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.plugins.QuboleHiveJob) - return target; -} - -size_t QuboleHiveJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.QuboleHiveJob) - 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; - - // repeated string tags = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->tags_size()); - for (int i = 0, n = this->tags_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->tags(i)); - } - - // string cluster_label = 1; - if (this->cluster_label().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->cluster_label()); - } - - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - if (this->has_query_collection()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *query_collection_); - } - - // .flyteidl.plugins.HiveQuery query = 4; - if (this->has_query()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *query_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void QuboleHiveJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.QuboleHiveJob) - GOOGLE_DCHECK_NE(&from, this); - const QuboleHiveJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.QuboleHiveJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.QuboleHiveJob) - MergeFrom(*source); - } -} - -void QuboleHiveJob::MergeFrom(const QuboleHiveJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.QuboleHiveJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - tags_.MergeFrom(from.tags_); - if (from.cluster_label().size() > 0) { - - cluster_label_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.cluster_label_); - } - if (from.has_query_collection()) { - mutable_query_collection()->::flyteidl::plugins::HiveQueryCollection::MergeFrom(from.query_collection()); - } - if (from.has_query()) { - mutable_query()->::flyteidl::plugins::HiveQuery::MergeFrom(from.query()); - } -} - -void QuboleHiveJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.QuboleHiveJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void QuboleHiveJob::CopyFrom(const QuboleHiveJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.QuboleHiveJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool QuboleHiveJob::IsInitialized() const { - return true; -} - -void QuboleHiveJob::Swap(QuboleHiveJob* other) { - if (other == this) return; - InternalSwap(other); -} -void QuboleHiveJob::InternalSwap(QuboleHiveJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - tags_.InternalSwap(CastToBase(&other->tags_)); - cluster_label_.Swap(&other->cluster_label_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(query_collection_, other->query_collection_); - swap(query_, other->query_); -} - -::google::protobuf::Metadata QuboleHiveJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fqubole_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fqubole_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HiveQuery* Arena::CreateMaybeMessage< ::flyteidl::plugins::HiveQuery >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::HiveQuery >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HiveQueryCollection* Arena::CreateMaybeMessage< ::flyteidl::plugins::HiveQueryCollection >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::HiveQueryCollection >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::QuboleHiveJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::QuboleHiveJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::QuboleHiveJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h deleted file mode 100644 index 346fc14645..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/qubole.pb.h +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/qubole.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fqubole_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fqubole_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[3] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fqubole_2eproto(); -namespace flyteidl { -namespace plugins { -class HiveQuery; -class HiveQueryDefaultTypeInternal; -extern HiveQueryDefaultTypeInternal _HiveQuery_default_instance_; -class HiveQueryCollection; -class HiveQueryCollectionDefaultTypeInternal; -extern HiveQueryCollectionDefaultTypeInternal _HiveQueryCollection_default_instance_; -class QuboleHiveJob; -class QuboleHiveJobDefaultTypeInternal; -extern QuboleHiveJobDefaultTypeInternal _QuboleHiveJob_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::HiveQuery* Arena::CreateMaybeMessage<::flyteidl::plugins::HiveQuery>(Arena*); -template<> ::flyteidl::plugins::HiveQueryCollection* Arena::CreateMaybeMessage<::flyteidl::plugins::HiveQueryCollection>(Arena*); -template<> ::flyteidl::plugins::QuboleHiveJob* Arena::CreateMaybeMessage<::flyteidl::plugins::QuboleHiveJob>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class HiveQuery final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQuery) */ { - public: - HiveQuery(); - virtual ~HiveQuery(); - - HiveQuery(const HiveQuery& from); - - inline HiveQuery& operator=(const HiveQuery& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HiveQuery(HiveQuery&& from) noexcept - : HiveQuery() { - *this = ::std::move(from); - } - - inline HiveQuery& operator=(HiveQuery&& 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 HiveQuery& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HiveQuery* internal_default_instance() { - return reinterpret_cast( - &_HiveQuery_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(HiveQuery* other); - friend void swap(HiveQuery& a, HiveQuery& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HiveQuery* New() const final { - return CreateMaybeMessage(nullptr); - } - - HiveQuery* 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 HiveQuery& from); - void MergeFrom(const HiveQuery& 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(HiveQuery* 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 ------------------------------------------------------- - - // string query = 1; - void clear_query(); - static const int kQueryFieldNumber = 1; - const ::std::string& query() const; - void set_query(const ::std::string& value); - #if LANG_CXX11 - void set_query(::std::string&& value); - #endif - void set_query(const char* value); - void set_query(const char* value, size_t size); - ::std::string* mutable_query(); - ::std::string* release_query(); - void set_allocated_query(::std::string* query); - - // uint32 timeout_sec = 2; - void clear_timeout_sec(); - static const int kTimeoutSecFieldNumber = 2; - ::google::protobuf::uint32 timeout_sec() const; - void set_timeout_sec(::google::protobuf::uint32 value); - - // uint32 retryCount = 3; - void clear_retrycount(); - static const int kRetryCountFieldNumber = 3; - ::google::protobuf::uint32 retrycount() const; - void set_retrycount(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr query_; - ::google::protobuf::uint32 timeout_sec_; - ::google::protobuf::uint32 retrycount_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; -}; -// ------------------------------------------------------------------- - -class HiveQueryCollection final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HiveQueryCollection) */ { - public: - HiveQueryCollection(); - virtual ~HiveQueryCollection(); - - HiveQueryCollection(const HiveQueryCollection& from); - - inline HiveQueryCollection& operator=(const HiveQueryCollection& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HiveQueryCollection(HiveQueryCollection&& from) noexcept - : HiveQueryCollection() { - *this = ::std::move(from); - } - - inline HiveQueryCollection& operator=(HiveQueryCollection&& 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 HiveQueryCollection& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HiveQueryCollection* internal_default_instance() { - return reinterpret_cast( - &_HiveQueryCollection_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(HiveQueryCollection* other); - friend void swap(HiveQueryCollection& a, HiveQueryCollection& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HiveQueryCollection* New() const final { - return CreateMaybeMessage(nullptr); - } - - HiveQueryCollection* 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 HiveQueryCollection& from); - void MergeFrom(const HiveQueryCollection& 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(HiveQueryCollection* 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 ------------------------------------------------------- - - // repeated .flyteidl.plugins.HiveQuery queries = 2; - int queries_size() const; - void clear_queries(); - static const int kQueriesFieldNumber = 2; - ::flyteidl::plugins::HiveQuery* mutable_queries(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* - mutable_queries(); - const ::flyteidl::plugins::HiveQuery& queries(int index) const; - ::flyteidl::plugins::HiveQuery* add_queries(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& - queries() const; - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery > queries_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; -}; -// ------------------------------------------------------------------- - -class QuboleHiveJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.QuboleHiveJob) */ { - public: - QuboleHiveJob(); - virtual ~QuboleHiveJob(); - - QuboleHiveJob(const QuboleHiveJob& from); - - inline QuboleHiveJob& operator=(const QuboleHiveJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - QuboleHiveJob(QuboleHiveJob&& from) noexcept - : QuboleHiveJob() { - *this = ::std::move(from); - } - - inline QuboleHiveJob& operator=(QuboleHiveJob&& 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 QuboleHiveJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const QuboleHiveJob* internal_default_instance() { - return reinterpret_cast( - &_QuboleHiveJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(QuboleHiveJob* other); - friend void swap(QuboleHiveJob& a, QuboleHiveJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline QuboleHiveJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - QuboleHiveJob* 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 QuboleHiveJob& from); - void MergeFrom(const QuboleHiveJob& 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(QuboleHiveJob* 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 ------------------------------------------------------- - - // repeated string tags = 3; - int tags_size() const; - void clear_tags(); - static const int kTagsFieldNumber = 3; - const ::std::string& tags(int index) const; - ::std::string* mutable_tags(int index); - void set_tags(int index, const ::std::string& value); - #if LANG_CXX11 - void set_tags(int index, ::std::string&& value); - #endif - void set_tags(int index, const char* value); - void set_tags(int index, const char* value, size_t size); - ::std::string* add_tags(); - void add_tags(const ::std::string& value); - #if LANG_CXX11 - void add_tags(::std::string&& value); - #endif - void add_tags(const char* value); - void add_tags(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& tags() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_tags(); - - // string cluster_label = 1; - void clear_cluster_label(); - static const int kClusterLabelFieldNumber = 1; - const ::std::string& cluster_label() const; - void set_cluster_label(const ::std::string& value); - #if LANG_CXX11 - void set_cluster_label(::std::string&& value); - #endif - void set_cluster_label(const char* value); - void set_cluster_label(const char* value, size_t size); - ::std::string* mutable_cluster_label(); - ::std::string* release_cluster_label(); - void set_allocated_cluster_label(::std::string* cluster_label); - - // .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_query_collection() const; - PROTOBUF_DEPRECATED void clear_query_collection(); - PROTOBUF_DEPRECATED static const int kQueryCollectionFieldNumber = 2; - PROTOBUF_DEPRECATED const ::flyteidl::plugins::HiveQueryCollection& query_collection() const; - PROTOBUF_DEPRECATED ::flyteidl::plugins::HiveQueryCollection* release_query_collection(); - PROTOBUF_DEPRECATED ::flyteidl::plugins::HiveQueryCollection* mutable_query_collection(); - PROTOBUF_DEPRECATED void set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection); - - // .flyteidl.plugins.HiveQuery query = 4; - bool has_query() const; - void clear_query(); - static const int kQueryFieldNumber = 4; - const ::flyteidl::plugins::HiveQuery& query() const; - ::flyteidl::plugins::HiveQuery* release_query(); - ::flyteidl::plugins::HiveQuery* mutable_query(); - void set_allocated_query(::flyteidl::plugins::HiveQuery* query); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> tags_; - ::google::protobuf::internal::ArenaStringPtr cluster_label_; - ::flyteidl::plugins::HiveQueryCollection* query_collection_; - ::flyteidl::plugins::HiveQuery* query_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fqubole_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HiveQuery - -// string query = 1; -inline void HiveQuery::clear_query() { - query_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& HiveQuery::query() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.query) - return query_.GetNoArena(); -} -inline void HiveQuery::set_query(const ::std::string& value) { - - query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.query) -} -#if LANG_CXX11 -inline void HiveQuery::set_query(::std::string&& value) { - - query_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.HiveQuery.query) -} -#endif -inline void HiveQuery::set_query(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.HiveQuery.query) -} -inline void HiveQuery::set_query(const char* value, size_t size) { - - query_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.HiveQuery.query) -} -inline ::std::string* HiveQuery::mutable_query() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQuery.query) - return query_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* HiveQuery::release_query() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.HiveQuery.query) - - return query_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void HiveQuery::set_allocated_query(::std::string* query) { - if (query != nullptr) { - - } else { - - } - query_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), query); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.HiveQuery.query) -} - -// uint32 timeout_sec = 2; -inline void HiveQuery::clear_timeout_sec() { - timeout_sec_ = 0u; -} -inline ::google::protobuf::uint32 HiveQuery::timeout_sec() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.timeout_sec) - return timeout_sec_; -} -inline void HiveQuery::set_timeout_sec(::google::protobuf::uint32 value) { - - timeout_sec_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.timeout_sec) -} - -// uint32 retryCount = 3; -inline void HiveQuery::clear_retrycount() { - retrycount_ = 0u; -} -inline ::google::protobuf::uint32 HiveQuery::retrycount() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQuery.retryCount) - return retrycount_; -} -inline void HiveQuery::set_retrycount(::google::protobuf::uint32 value) { - - retrycount_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.HiveQuery.retryCount) -} - -// ------------------------------------------------------------------- - -// HiveQueryCollection - -// repeated .flyteidl.plugins.HiveQuery queries = 2; -inline int HiveQueryCollection::queries_size() const { - return queries_.size(); -} -inline void HiveQueryCollection::clear_queries() { - queries_.Clear(); -} -inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::mutable_queries(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.HiveQueryCollection.queries) - return queries_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >* -HiveQueryCollection::mutable_queries() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.HiveQueryCollection.queries) - return &queries_; -} -inline const ::flyteidl::plugins::HiveQuery& HiveQueryCollection::queries(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.HiveQueryCollection.queries) - return queries_.Get(index); -} -inline ::flyteidl::plugins::HiveQuery* HiveQueryCollection::add_queries() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.HiveQueryCollection.queries) - return queries_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::HiveQuery >& -HiveQueryCollection::queries() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.HiveQueryCollection.queries) - return queries_; -} - -// ------------------------------------------------------------------- - -// QuboleHiveJob - -// string cluster_label = 1; -inline void QuboleHiveJob::clear_cluster_label() { - cluster_label_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& QuboleHiveJob::cluster_label() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.cluster_label) - return cluster_label_.GetNoArena(); -} -inline void QuboleHiveJob::set_cluster_label(const ::std::string& value) { - - cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.cluster_label) -} -#if LANG_CXX11 -inline void QuboleHiveJob::set_cluster_label(::std::string&& value) { - - cluster_label_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.QuboleHiveJob.cluster_label) -} -#endif -inline void QuboleHiveJob::set_cluster_label(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.cluster_label) -} -inline void QuboleHiveJob::set_cluster_label(const char* value, size_t size) { - - cluster_label_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.cluster_label) -} -inline ::std::string* QuboleHiveJob::mutable_cluster_label() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.cluster_label) - return cluster_label_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* QuboleHiveJob::release_cluster_label() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.cluster_label) - - return cluster_label_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void QuboleHiveJob::set_allocated_cluster_label(::std::string* cluster_label) { - if (cluster_label != nullptr) { - - } else { - - } - cluster_label_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cluster_label); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.cluster_label) -} - -// .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; -inline bool QuboleHiveJob::has_query_collection() const { - return this != internal_default_instance() && query_collection_ != nullptr; -} -inline void QuboleHiveJob::clear_query_collection() { - if (GetArenaNoVirtual() == nullptr && query_collection_ != nullptr) { - delete query_collection_; - } - query_collection_ = nullptr; -} -inline const ::flyteidl::plugins::HiveQueryCollection& QuboleHiveJob::query_collection() const { - const ::flyteidl::plugins::HiveQueryCollection* p = query_collection_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.query_collection) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_HiveQueryCollection_default_instance_); -} -inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::release_query_collection() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.query_collection) - - ::flyteidl::plugins::HiveQueryCollection* temp = query_collection_; - query_collection_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::HiveQueryCollection* QuboleHiveJob::mutable_query_collection() { - - if (query_collection_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::HiveQueryCollection>(GetArenaNoVirtual()); - query_collection_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.query_collection) - return query_collection_; -} -inline void QuboleHiveJob::set_allocated_query_collection(::flyteidl::plugins::HiveQueryCollection* query_collection) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete query_collection_; - } - if (query_collection) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - query_collection = ::google::protobuf::internal::GetOwnedMessage( - message_arena, query_collection, submessage_arena); - } - - } else { - - } - query_collection_ = query_collection; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.query_collection) -} - -// repeated string tags = 3; -inline int QuboleHiveJob::tags_size() const { - return tags_.size(); -} -inline void QuboleHiveJob::clear_tags() { - tags_.Clear(); -} -inline const ::std::string& QuboleHiveJob::tags(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.tags) - return tags_.Get(index); -} -inline ::std::string* QuboleHiveJob::mutable_tags(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.tags) - return tags_.Mutable(index); -} -inline void QuboleHiveJob::set_tags(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) - tags_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void QuboleHiveJob::set_tags(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.plugins.QuboleHiveJob.tags) - tags_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void QuboleHiveJob::set_tags(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.QuboleHiveJob.tags) -} -inline void QuboleHiveJob::set_tags(int index, const char* value, size_t size) { - tags_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.QuboleHiveJob.tags) -} -inline ::std::string* QuboleHiveJob::add_tags() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.plugins.QuboleHiveJob.tags) - return tags_.Add(); -} -inline void QuboleHiveJob::add_tags(const ::std::string& value) { - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) -} -#if LANG_CXX11 -inline void QuboleHiveJob::add_tags(::std::string&& value) { - tags_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.plugins.QuboleHiveJob.tags) -} -#endif -inline void QuboleHiveJob::add_tags(const char* value) { - GOOGLE_DCHECK(value != nullptr); - tags_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.plugins.QuboleHiveJob.tags) -} -inline void QuboleHiveJob::add_tags(const char* value, size_t size) { - tags_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.plugins.QuboleHiveJob.tags) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -QuboleHiveJob::tags() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.QuboleHiveJob.tags) - return tags_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -QuboleHiveJob::mutable_tags() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.QuboleHiveJob.tags) - return &tags_; -} - -// .flyteidl.plugins.HiveQuery query = 4; -inline bool QuboleHiveJob::has_query() const { - return this != internal_default_instance() && query_ != nullptr; -} -inline void QuboleHiveJob::clear_query() { - if (GetArenaNoVirtual() == nullptr && query_ != nullptr) { - delete query_; - } - query_ = nullptr; -} -inline const ::flyteidl::plugins::HiveQuery& QuboleHiveJob::query() const { - const ::flyteidl::plugins::HiveQuery* p = query_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.QuboleHiveJob.query) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_HiveQuery_default_instance_); -} -inline ::flyteidl::plugins::HiveQuery* QuboleHiveJob::release_query() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.QuboleHiveJob.query) - - ::flyteidl::plugins::HiveQuery* temp = query_; - query_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::HiveQuery* QuboleHiveJob::mutable_query() { - - if (query_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::HiveQuery>(GetArenaNoVirtual()); - query_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.QuboleHiveJob.query) - return query_; -} -inline void QuboleHiveJob::set_allocated_query(::flyteidl::plugins::HiveQuery* query) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete query_; - } - if (query) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - query = ::google::protobuf::internal::GetOwnedMessage( - message_arena, query, submessage_arena); - } - - } else { - - } - query_ = query; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.QuboleHiveJob.query) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fqubole_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc deleted file mode 100644 index 035ec928b1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/ray.proto - -#include "flyteidl/plugins/ray.pb.h" -#include "flyteidl/plugins/ray.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h deleted file mode 100644 index 44c8bae408..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/ray.proto -#ifndef GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED - -#include "flyteidl/plugins/ray.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fray_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc deleted file mode 100644 index 7579e59cc0..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.cc +++ /dev/null @@ -1,2200 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/ray.proto - -#include "flyteidl/plugins/ray.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto ::google::protobuf::internal::SCCInfo<2> scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto; -namespace flyteidl { -namespace plugins { -class RayJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RayJob_default_instance_; -class RayClusterDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _RayCluster_default_instance_; -class HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; -class HeadGroupSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _HeadGroupSpec_default_instance_; -class WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; -class WorkerGroupSpecDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _WorkerGroupSpec_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsRayJob_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_RayJob_default_instance_; - new (ptr) ::flyteidl::plugins::RayJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::RayJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRayJob_flyteidl_2fplugins_2fray_2eproto}, { - &scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base,}}; - -static void InitDefaultsRayCluster_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_RayCluster_default_instance_; - new (ptr) ::flyteidl::plugins::RayCluster(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::RayCluster::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsRayCluster_flyteidl_2fplugins_2fray_2eproto}, { - &scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base, - &scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base,}}; - -static void InitDefaultsHeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse(); - } - ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsHeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto}, {}}; - -static void InitDefaultsHeadGroupSpec_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_HeadGroupSpec_default_instance_; - new (ptr) ::flyteidl::plugins::HeadGroupSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::HeadGroupSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsHeadGroupSpec_flyteidl_2fplugins_2fray_2eproto}, { - &scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base,}}; - -static void InitDefaultsWorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse(); - } - ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsWorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto}, {}}; - -static void InitDefaultsWorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_WorkerGroupSpec_default_instance_; - new (ptr) ::flyteidl::plugins::WorkerGroupSpec(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::WorkerGroupSpec::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto}, { - &scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fray_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HeadGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_flyteidl_2fplugins_2fray_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fray_2eproto[6]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fray_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fray_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fray_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, ray_cluster_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, runtime_env_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, shutdown_after_job_finishes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayJob, ttl_seconds_after_finished_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, head_group_spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, worker_group_spec_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::RayCluster, enable_autoscaling_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::HeadGroupSpec, ray_start_params_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, group_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, min_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, max_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::WorkerGroupSpec, ray_start_params_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::RayJob)}, - { 9, -1, sizeof(::flyteidl::plugins::RayCluster)}, - { 17, 24, sizeof(::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse)}, - { 26, -1, sizeof(::flyteidl::plugins::HeadGroupSpec)}, - { 32, 39, sizeof(::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse)}, - { 41, -1, sizeof(::flyteidl::plugins::WorkerGroupSpec)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_RayJob_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_RayCluster_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_HeadGroupSpec_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_WorkerGroupSpec_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fray_2eproto, "flyteidl/plugins/ray.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fray_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fray_2eproto, 6, file_level_enum_descriptors_flyteidl_2fplugins_2fray_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fray_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fray_2eproto[] = - "\n\032flyteidl/plugins/ray.proto\022\020flyteidl.p" - "lugins\"\231\001\n\006RayJob\0221\n\013ray_cluster\030\001 \001(\0132\034" - ".flyteidl.plugins.RayCluster\022\023\n\013runtime_" - "env\030\002 \001(\t\022#\n\033shutdown_after_job_finishes" - "\030\003 \001(\010\022\"\n\032ttl_seconds_after_finished\030\004 \001" - "(\005\"\240\001\n\nRayCluster\0228\n\017head_group_spec\030\001 \001" - "(\0132\037.flyteidl.plugins.HeadGroupSpec\022<\n\021w" - "orker_group_spec\030\002 \003(\0132!.flyteidl.plugin" - "s.WorkerGroupSpec\022\032\n\022enable_autoscaling\030" - "\003 \001(\010\"\225\001\n\rHeadGroupSpec\022M\n\020ray_start_par" - "ams\030\001 \003(\01323.flyteidl.plugins.HeadGroupSp" - "ec.RayStartParamsEntry\0325\n\023RayStartParams" - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\353\001" - "\n\017WorkerGroupSpec\022\022\n\ngroup_name\030\001 \001(\t\022\020\n" - "\010replicas\030\002 \001(\005\022\024\n\014min_replicas\030\003 \001(\005\022\024\n" - "\014max_replicas\030\004 \001(\005\022O\n\020ray_start_params\030" - "\005 \003(\01325.flyteidl.plugins.WorkerGroupSpec" - ".RayStartParamsEntry\0325\n\023RayStartParamsEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\?Z=g" - "ithub.com/flyteorg/flyte/flyteidl/gen/pb" - "-go/flyteidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fray_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fray_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fray_2eproto, - "flyteidl/plugins/ray.proto", &assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto, 828, -}; - -void AddDescriptors_flyteidl_2fplugins_2fray_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fray_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fray_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fray_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void RayJob::InitAsDefaultInstance() { - ::flyteidl::plugins::_RayJob_default_instance_._instance.get_mutable()->ray_cluster_ = const_cast< ::flyteidl::plugins::RayCluster*>( - ::flyteidl::plugins::RayCluster::internal_default_instance()); -} -class RayJob::HasBitSetters { - public: - static const ::flyteidl::plugins::RayCluster& ray_cluster(const RayJob* msg); -}; - -const ::flyteidl::plugins::RayCluster& -RayJob::HasBitSetters::ray_cluster(const RayJob* msg) { - return *msg->ray_cluster_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RayJob::kRayClusterFieldNumber; -const int RayJob::kRuntimeEnvFieldNumber; -const int RayJob::kShutdownAfterJobFinishesFieldNumber; -const int RayJob::kTtlSecondsAfterFinishedFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RayJob::RayJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.RayJob) -} -RayJob::RayJob(const RayJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - runtime_env_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.runtime_env().size() > 0) { - runtime_env_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.runtime_env_); - } - if (from.has_ray_cluster()) { - ray_cluster_ = new ::flyteidl::plugins::RayCluster(*from.ray_cluster_); - } else { - ray_cluster_ = nullptr; - } - ::memcpy(&shutdown_after_job_finishes_, &from.shutdown_after_job_finishes_, - static_cast(reinterpret_cast(&ttl_seconds_after_finished_) - - reinterpret_cast(&shutdown_after_job_finishes_)) + sizeof(ttl_seconds_after_finished_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.RayJob) -} - -void RayJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); - runtime_env_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&ray_cluster_, 0, static_cast( - reinterpret_cast(&ttl_seconds_after_finished_) - - reinterpret_cast(&ray_cluster_)) + sizeof(ttl_seconds_after_finished_)); -} - -RayJob::~RayJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.RayJob) - SharedDtor(); -} - -void RayJob::SharedDtor() { - runtime_env_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete ray_cluster_; -} - -void RayJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RayJob& RayJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RayJob_flyteidl_2fplugins_2fray_2eproto.base); - return *internal_default_instance(); -} - - -void RayJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.RayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - runtime_env_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && ray_cluster_ != nullptr) { - delete ray_cluster_; - } - ray_cluster_ = nullptr; - ::memset(&shutdown_after_job_finishes_, 0, static_cast( - reinterpret_cast(&ttl_seconds_after_finished_) - - reinterpret_cast(&shutdown_after_job_finishes_)) + sizeof(ttl_seconds_after_finished_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RayJob::_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.plugins.RayCluster ray_cluster = 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::plugins::RayCluster::_InternalParse; - object = msg->mutable_ray_cluster(); - 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; - } - // string runtime_env = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.RayJob.runtime_env"); - object = msg->mutable_runtime_env(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // bool shutdown_after_job_finishes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_shutdown_after_job_finishes(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 ttl_seconds_after_finished = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_ttl_seconds_after_finished(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool RayJob::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.plugins.RayJob) - 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.plugins.RayCluster ray_cluster = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_ray_cluster())); - } else { - goto handle_unusual; - } - break; - } - - // string runtime_env = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_runtime_env())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->runtime_env().data(), static_cast(this->runtime_env().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.RayJob.runtime_env")); - } else { - goto handle_unusual; - } - break; - } - - // bool shutdown_after_job_finishes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &shutdown_after_job_finishes_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 ttl_seconds_after_finished = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ttl_seconds_after_finished_))); - } 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.plugins.RayJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.RayJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RayJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.RayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.RayCluster ray_cluster = 1; - if (this->has_ray_cluster()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::ray_cluster(this), output); - } - - // string runtime_env = 2; - if (this->runtime_env().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->runtime_env().data(), static_cast(this->runtime_env().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.RayJob.runtime_env"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->runtime_env(), output); - } - - // bool shutdown_after_job_finishes = 3; - if (this->shutdown_after_job_finishes() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->shutdown_after_job_finishes(), output); - } - - // int32 ttl_seconds_after_finished = 4; - if (this->ttl_seconds_after_finished() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->ttl_seconds_after_finished(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.RayJob) -} - -::google::protobuf::uint8* RayJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.RayJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.RayCluster ray_cluster = 1; - if (this->has_ray_cluster()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::ray_cluster(this), target); - } - - // string runtime_env = 2; - if (this->runtime_env().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->runtime_env().data(), static_cast(this->runtime_env().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.RayJob.runtime_env"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->runtime_env(), target); - } - - // bool shutdown_after_job_finishes = 3; - if (this->shutdown_after_job_finishes() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->shutdown_after_job_finishes(), target); - } - - // int32 ttl_seconds_after_finished = 4; - if (this->ttl_seconds_after_finished() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->ttl_seconds_after_finished(), 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.plugins.RayJob) - return target; -} - -size_t RayJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.RayJob) - 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; - - // string runtime_env = 2; - if (this->runtime_env().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->runtime_env()); - } - - // .flyteidl.plugins.RayCluster ray_cluster = 1; - if (this->has_ray_cluster()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *ray_cluster_); - } - - // bool shutdown_after_job_finishes = 3; - if (this->shutdown_after_job_finishes() != 0) { - total_size += 1 + 1; - } - - // int32 ttl_seconds_after_finished = 4; - if (this->ttl_seconds_after_finished() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ttl_seconds_after_finished()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RayJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.RayJob) - GOOGLE_DCHECK_NE(&from, this); - const RayJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.RayJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.RayJob) - MergeFrom(*source); - } -} - -void RayJob::MergeFrom(const RayJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.RayJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.runtime_env().size() > 0) { - - runtime_env_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.runtime_env_); - } - if (from.has_ray_cluster()) { - mutable_ray_cluster()->::flyteidl::plugins::RayCluster::MergeFrom(from.ray_cluster()); - } - if (from.shutdown_after_job_finishes() != 0) { - set_shutdown_after_job_finishes(from.shutdown_after_job_finishes()); - } - if (from.ttl_seconds_after_finished() != 0) { - set_ttl_seconds_after_finished(from.ttl_seconds_after_finished()); - } -} - -void RayJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.RayJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RayJob::CopyFrom(const RayJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.RayJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RayJob::IsInitialized() const { - return true; -} - -void RayJob::Swap(RayJob* other) { - if (other == this) return; - InternalSwap(other); -} -void RayJob::InternalSwap(RayJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - runtime_env_.Swap(&other->runtime_env_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(ray_cluster_, other->ray_cluster_); - swap(shutdown_after_job_finishes_, other->shutdown_after_job_finishes_); - swap(ttl_seconds_after_finished_, other->ttl_seconds_after_finished_); -} - -::google::protobuf::Metadata RayJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void RayCluster::InitAsDefaultInstance() { - ::flyteidl::plugins::_RayCluster_default_instance_._instance.get_mutable()->head_group_spec_ = const_cast< ::flyteidl::plugins::HeadGroupSpec*>( - ::flyteidl::plugins::HeadGroupSpec::internal_default_instance()); -} -class RayCluster::HasBitSetters { - public: - static const ::flyteidl::plugins::HeadGroupSpec& head_group_spec(const RayCluster* msg); -}; - -const ::flyteidl::plugins::HeadGroupSpec& -RayCluster::HasBitSetters::head_group_spec(const RayCluster* msg) { - return *msg->head_group_spec_; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int RayCluster::kHeadGroupSpecFieldNumber; -const int RayCluster::kWorkerGroupSpecFieldNumber; -const int RayCluster::kEnableAutoscalingFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -RayCluster::RayCluster() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.RayCluster) -} -RayCluster::RayCluster(const RayCluster& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - worker_group_spec_(from.worker_group_spec_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_head_group_spec()) { - head_group_spec_ = new ::flyteidl::plugins::HeadGroupSpec(*from.head_group_spec_); - } else { - head_group_spec_ = nullptr; - } - enable_autoscaling_ = from.enable_autoscaling_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.RayCluster) -} - -void RayCluster::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); - ::memset(&head_group_spec_, 0, static_cast( - reinterpret_cast(&enable_autoscaling_) - - reinterpret_cast(&head_group_spec_)) + sizeof(enable_autoscaling_)); -} - -RayCluster::~RayCluster() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.RayCluster) - SharedDtor(); -} - -void RayCluster::SharedDtor() { - if (this != internal_default_instance()) delete head_group_spec_; -} - -void RayCluster::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const RayCluster& RayCluster::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_RayCluster_flyteidl_2fplugins_2fray_2eproto.base); - return *internal_default_instance(); -} - - -void RayCluster::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.RayCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - worker_group_spec_.Clear(); - if (GetArenaNoVirtual() == nullptr && head_group_spec_ != nullptr) { - delete head_group_spec_; - } - head_group_spec_ = nullptr; - enable_autoscaling_ = false; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* RayCluster::_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.plugins.HeadGroupSpec head_group_spec = 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::plugins::HeadGroupSpec::_InternalParse; - object = msg->mutable_head_group_spec(); - 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; - } - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 18) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::plugins::WorkerGroupSpec::_InternalParse; - object = msg->add_worker_group_spec(); - if (size > end - ptr) goto len_delim_till_end; - ptr += size; - GOOGLE_PROTOBUF_PARSER_ASSERT(ctx->ParseExactRange( - {parser_till_end, object}, ptr - size, ptr)); - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 18 && (ptr += 1)); - break; - } - // bool enable_autoscaling = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_enable_autoscaling(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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 RayCluster::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.plugins.RayCluster) - 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.plugins.HeadGroupSpec head_group_spec = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_head_group_spec())); - } else { - goto handle_unusual; - } - break; - } - - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, add_worker_group_spec())); - } else { - goto handle_unusual; - } - break; - } - - // bool enable_autoscaling = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( - input, &enable_autoscaling_))); - } 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.plugins.RayCluster) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.RayCluster) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void RayCluster::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.RayCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - if (this->has_head_group_spec()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::head_group_spec(this), output); - } - - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - for (unsigned int i = 0, - n = static_cast(this->worker_group_spec_size()); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, - this->worker_group_spec(static_cast(i)), - output); - } - - // bool enable_autoscaling = 3; - if (this->enable_autoscaling() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->enable_autoscaling(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.RayCluster) -} - -::google::protobuf::uint8* RayCluster::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.RayCluster) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - if (this->has_head_group_spec()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::head_group_spec(this), target); - } - - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - for (unsigned int i = 0, - n = static_cast(this->worker_group_spec_size()); i < n; i++) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, this->worker_group_spec(static_cast(i)), target); - } - - // bool enable_autoscaling = 3; - if (this->enable_autoscaling() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->enable_autoscaling(), 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.plugins.RayCluster) - return target; -} - -size_t RayCluster::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.RayCluster) - 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; - - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - { - unsigned int count = static_cast(this->worker_group_spec_size()); - total_size += 1UL * count; - for (unsigned int i = 0; i < count; i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSize( - this->worker_group_spec(static_cast(i))); - } - } - - // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - if (this->has_head_group_spec()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *head_group_spec_); - } - - // bool enable_autoscaling = 3; - if (this->enable_autoscaling() != 0) { - total_size += 1 + 1; - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void RayCluster::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.RayCluster) - GOOGLE_DCHECK_NE(&from, this); - const RayCluster* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.RayCluster) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.RayCluster) - MergeFrom(*source); - } -} - -void RayCluster::MergeFrom(const RayCluster& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.RayCluster) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - worker_group_spec_.MergeFrom(from.worker_group_spec_); - if (from.has_head_group_spec()) { - mutable_head_group_spec()->::flyteidl::plugins::HeadGroupSpec::MergeFrom(from.head_group_spec()); - } - if (from.enable_autoscaling() != 0) { - set_enable_autoscaling(from.enable_autoscaling()); - } -} - -void RayCluster::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.RayCluster) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void RayCluster::CopyFrom(const RayCluster& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.RayCluster) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool RayCluster::IsInitialized() const { - return true; -} - -void RayCluster::Swap(RayCluster* other) { - if (other == this) return; - InternalSwap(other); -} -void RayCluster::InternalSwap(RayCluster* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - CastToBase(&worker_group_spec_)->InternalSwap(CastToBase(&other->worker_group_spec_)); - swap(head_group_spec_, other->head_group_spec_); - swap(enable_autoscaling_, other->enable_autoscaling_); -} - -::google::protobuf::Metadata RayCluster::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -HeadGroupSpec_RayStartParamsEntry_DoNotUse::HeadGroupSpec_RayStartParamsEntry_DoNotUse() {} -HeadGroupSpec_RayStartParamsEntry_DoNotUse::HeadGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void HeadGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom(const HeadGroupSpec_RayStartParamsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata HeadGroupSpec_RayStartParamsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[2]; -} -void HeadGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool HeadGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - HeadGroupSpec_RayStartParamsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void HeadGroupSpec::InitAsDefaultInstance() { -} -class HeadGroupSpec::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int HeadGroupSpec::kRayStartParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -HeadGroupSpec::HeadGroupSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.HeadGroupSpec) -} -HeadGroupSpec::HeadGroupSpec(const HeadGroupSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ray_start_params_.MergeFrom(from.ray_start_params_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.HeadGroupSpec) -} - -void HeadGroupSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); -} - -HeadGroupSpec::~HeadGroupSpec() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.HeadGroupSpec) - SharedDtor(); -} - -void HeadGroupSpec::SharedDtor() { -} - -void HeadGroupSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const HeadGroupSpec& HeadGroupSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_HeadGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); - return *internal_default_instance(); -} - - -void HeadGroupSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.HeadGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ray_start_params_.Clear(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* HeadGroupSpec::_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) { - // map ray_start_params = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->ray_start_params_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - 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 HeadGroupSpec::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.plugins.HeadGroupSpec) - 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)) { - // map ray_start_params = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - HeadGroupSpec_RayStartParamsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - HeadGroupSpec_RayStartParamsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&ray_start_params_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value")); - } 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.plugins.HeadGroupSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.HeadGroupSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void HeadGroupSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.HeadGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map ray_start_params = 1; - if (!this->ray_start_params().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->ray_start_params().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->ray_start_params().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(1, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.HeadGroupSpec) -} - -::google::protobuf::uint8* HeadGroupSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.HeadGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // map ray_start_params = 1; - if (!this->ray_start_params().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry.value"); - } - }; - - if (false && - this->ray_start_params().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->ray_start_params().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(1, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.plugins.HeadGroupSpec) - return target; -} - -size_t HeadGroupSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.HeadGroupSpec) - 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; - - // map ray_start_params = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->ray_start_params_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void HeadGroupSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.HeadGroupSpec) - GOOGLE_DCHECK_NE(&from, this); - const HeadGroupSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.HeadGroupSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.HeadGroupSpec) - MergeFrom(*source); - } -} - -void HeadGroupSpec::MergeFrom(const HeadGroupSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.HeadGroupSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ray_start_params_.MergeFrom(from.ray_start_params_); -} - -void HeadGroupSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.HeadGroupSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void HeadGroupSpec::CopyFrom(const HeadGroupSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.HeadGroupSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool HeadGroupSpec::IsInitialized() const { - return true; -} - -void HeadGroupSpec::Swap(HeadGroupSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void HeadGroupSpec::InternalSwap(HeadGroupSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ray_start_params_.Swap(&other->ray_start_params_); -} - -::google::protobuf::Metadata HeadGroupSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -WorkerGroupSpec_RayStartParamsEntry_DoNotUse::WorkerGroupSpec_RayStartParamsEntry_DoNotUse() {} -WorkerGroupSpec_RayStartParamsEntry_DoNotUse::WorkerGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void WorkerGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom(const WorkerGroupSpec_RayStartParamsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata WorkerGroupSpec_RayStartParamsEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[4]; -} -void WorkerGroupSpec_RayStartParamsEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkerGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - WorkerGroupSpec_RayStartParamsEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void WorkerGroupSpec::InitAsDefaultInstance() { -} -class WorkerGroupSpec::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int WorkerGroupSpec::kGroupNameFieldNumber; -const int WorkerGroupSpec::kReplicasFieldNumber; -const int WorkerGroupSpec::kMinReplicasFieldNumber; -const int WorkerGroupSpec::kMaxReplicasFieldNumber; -const int WorkerGroupSpec::kRayStartParamsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -WorkerGroupSpec::WorkerGroupSpec() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.WorkerGroupSpec) -} -WorkerGroupSpec::WorkerGroupSpec(const WorkerGroupSpec& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ray_start_params_.MergeFrom(from.ray_start_params_); - group_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.group_name().size() > 0) { - group_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_name_); - } - ::memcpy(&replicas_, &from.replicas_, - static_cast(reinterpret_cast(&max_replicas_) - - reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.WorkerGroupSpec) -} - -void WorkerGroupSpec::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); - group_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&replicas_, 0, static_cast( - reinterpret_cast(&max_replicas_) - - reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); -} - -WorkerGroupSpec::~WorkerGroupSpec() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.WorkerGroupSpec) - SharedDtor(); -} - -void WorkerGroupSpec::SharedDtor() { - group_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void WorkerGroupSpec::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const WorkerGroupSpec& WorkerGroupSpec::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_WorkerGroupSpec_flyteidl_2fplugins_2fray_2eproto.base); - return *internal_default_instance(); -} - - -void WorkerGroupSpec::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.WorkerGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ray_start_params_.Clear(); - group_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&replicas_, 0, static_cast( - reinterpret_cast(&max_replicas_) - - reinterpret_cast(&replicas_)) + sizeof(max_replicas_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* WorkerGroupSpec::_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) { - // string group_name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.WorkerGroupSpec.group_name"); - object = msg->mutable_group_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // int32 replicas = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 min_replicas = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_min_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 max_replicas = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_max_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // map ray_start_params = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->ray_start_params_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool WorkerGroupSpec::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.plugins.WorkerGroupSpec) - 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)) { - // string group_name = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_group_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_name().data(), static_cast(this->group_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.WorkerGroupSpec.group_name")); - } else { - goto handle_unusual; - } - break; - } - - // int32 replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 min_replicas = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &min_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 max_replicas = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &max_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // map ray_start_params = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - WorkerGroupSpec_RayStartParamsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - WorkerGroupSpec_RayStartParamsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&ray_start_params_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value")); - } 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.plugins.WorkerGroupSpec) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.WorkerGroupSpec) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void WorkerGroupSpec::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.WorkerGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string group_name = 1; - if (this->group_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_name().data(), static_cast(this->group_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.group_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->group_name(), output); - } - - // int32 replicas = 2; - if (this->replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->replicas(), output); - } - - // int32 min_replicas = 3; - if (this->min_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->min_replicas(), output); - } - - // int32 max_replicas = 4; - if (this->max_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->max_replicas(), output); - } - - // map ray_start_params = 5; - if (!this->ray_start_params().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->ray_start_params().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->ray_start_params().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.WorkerGroupSpec) -} - -::google::protobuf::uint8* WorkerGroupSpec::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.WorkerGroupSpec) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string group_name = 1; - if (this->group_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->group_name().data(), static_cast(this->group_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.group_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->group_name(), target); - } - - // int32 replicas = 2; - if (this->replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->replicas(), target); - } - - // int32 min_replicas = 3; - if (this->min_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->min_replicas(), target); - } - - // int32 max_replicas = 4; - if (this->max_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->max_replicas(), target); - } - - // map ray_start_params = 5; - if (!this->ray_start_params().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry.value"); - } - }; - - if (false && - this->ray_start_params().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->ray_start_params().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(ray_start_params_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - 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.plugins.WorkerGroupSpec) - return target; -} - -size_t WorkerGroupSpec::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.WorkerGroupSpec) - 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; - - // map ray_start_params = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->ray_start_params_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->ray_start_params().begin(); - it != this->ray_start_params().end(); ++it) { - entry.reset(ray_start_params_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string group_name = 1; - if (this->group_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->group_name()); - } - - // int32 replicas = 2; - if (this->replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->replicas()); - } - - // int32 min_replicas = 3; - if (this->min_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->min_replicas()); - } - - // int32 max_replicas = 4; - if (this->max_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->max_replicas()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void WorkerGroupSpec::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.WorkerGroupSpec) - GOOGLE_DCHECK_NE(&from, this); - const WorkerGroupSpec* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.WorkerGroupSpec) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.WorkerGroupSpec) - MergeFrom(*source); - } -} - -void WorkerGroupSpec::MergeFrom(const WorkerGroupSpec& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.WorkerGroupSpec) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - ray_start_params_.MergeFrom(from.ray_start_params_); - if (from.group_name().size() > 0) { - - group_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.group_name_); - } - if (from.replicas() != 0) { - set_replicas(from.replicas()); - } - if (from.min_replicas() != 0) { - set_min_replicas(from.min_replicas()); - } - if (from.max_replicas() != 0) { - set_max_replicas(from.max_replicas()); - } -} - -void WorkerGroupSpec::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.WorkerGroupSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void WorkerGroupSpec::CopyFrom(const WorkerGroupSpec& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.WorkerGroupSpec) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool WorkerGroupSpec::IsInitialized() const { - return true; -} - -void WorkerGroupSpec::Swap(WorkerGroupSpec* other) { - if (other == this) return; - InternalSwap(other); -} -void WorkerGroupSpec::InternalSwap(WorkerGroupSpec* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - ray_start_params_.Swap(&other->ray_start_params_); - group_name_.Swap(&other->group_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(replicas_, other->replicas_); - swap(min_replicas_, other->min_replicas_); - swap(max_replicas_, other->max_replicas_); -} - -::google::protobuf::Metadata WorkerGroupSpec::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fray_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fray_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::RayJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::RayJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::RayJob >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::RayCluster* Arena::CreateMaybeMessage< ::flyteidl::plugins::RayCluster >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::RayCluster >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::HeadGroupSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::HeadGroupSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::HeadGroupSpec >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::WorkerGroupSpec* Arena::CreateMaybeMessage< ::flyteidl::plugins::WorkerGroupSpec >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::WorkerGroupSpec >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h deleted file mode 100644 index 6d49906b97..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/ray.pb.h +++ /dev/null @@ -1,1101 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/ray.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fray_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fray_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - 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] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fray_2eproto(); -namespace flyteidl { -namespace plugins { -class HeadGroupSpec; -class HeadGroupSpecDefaultTypeInternal; -extern HeadGroupSpecDefaultTypeInternal _HeadGroupSpec_default_instance_; -class HeadGroupSpec_RayStartParamsEntry_DoNotUse; -class HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal; -extern HeadGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal _HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; -class RayCluster; -class RayClusterDefaultTypeInternal; -extern RayClusterDefaultTypeInternal _RayCluster_default_instance_; -class RayJob; -class RayJobDefaultTypeInternal; -extern RayJobDefaultTypeInternal _RayJob_default_instance_; -class WorkerGroupSpec; -class WorkerGroupSpecDefaultTypeInternal; -extern WorkerGroupSpecDefaultTypeInternal _WorkerGroupSpec_default_instance_; -class WorkerGroupSpec_RayStartParamsEntry_DoNotUse; -class WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal; -extern WorkerGroupSpec_RayStartParamsEntry_DoNotUseDefaultTypeInternal _WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::HeadGroupSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec>(Arena*); -template<> ::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec_RayStartParamsEntry_DoNotUse>(Arena*); -template<> ::flyteidl::plugins::RayCluster* Arena::CreateMaybeMessage<::flyteidl::plugins::RayCluster>(Arena*); -template<> ::flyteidl::plugins::RayJob* Arena::CreateMaybeMessage<::flyteidl::plugins::RayJob>(Arena*); -template<> ::flyteidl::plugins::WorkerGroupSpec* Arena::CreateMaybeMessage<::flyteidl::plugins::WorkerGroupSpec>(Arena*); -template<> ::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::WorkerGroupSpec_RayStartParamsEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class RayJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.RayJob) */ { - public: - RayJob(); - virtual ~RayJob(); - - RayJob(const RayJob& from); - - inline RayJob& operator=(const RayJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RayJob(RayJob&& from) noexcept - : RayJob() { - *this = ::std::move(from); - } - - inline RayJob& operator=(RayJob&& 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 RayJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RayJob* internal_default_instance() { - return reinterpret_cast( - &_RayJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(RayJob* other); - friend void swap(RayJob& a, RayJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RayJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - RayJob* 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 RayJob& from); - void MergeFrom(const RayJob& 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(RayJob* 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 ------------------------------------------------------- - - // string runtime_env = 2; - void clear_runtime_env(); - static const int kRuntimeEnvFieldNumber = 2; - const ::std::string& runtime_env() const; - void set_runtime_env(const ::std::string& value); - #if LANG_CXX11 - void set_runtime_env(::std::string&& value); - #endif - void set_runtime_env(const char* value); - void set_runtime_env(const char* value, size_t size); - ::std::string* mutable_runtime_env(); - ::std::string* release_runtime_env(); - void set_allocated_runtime_env(::std::string* runtime_env); - - // .flyteidl.plugins.RayCluster ray_cluster = 1; - bool has_ray_cluster() const; - void clear_ray_cluster(); - static const int kRayClusterFieldNumber = 1; - const ::flyteidl::plugins::RayCluster& ray_cluster() const; - ::flyteidl::plugins::RayCluster* release_ray_cluster(); - ::flyteidl::plugins::RayCluster* mutable_ray_cluster(); - void set_allocated_ray_cluster(::flyteidl::plugins::RayCluster* ray_cluster); - - // bool shutdown_after_job_finishes = 3; - void clear_shutdown_after_job_finishes(); - static const int kShutdownAfterJobFinishesFieldNumber = 3; - bool shutdown_after_job_finishes() const; - void set_shutdown_after_job_finishes(bool value); - - // int32 ttl_seconds_after_finished = 4; - void clear_ttl_seconds_after_finished(); - static const int kTtlSecondsAfterFinishedFieldNumber = 4; - ::google::protobuf::int32 ttl_seconds_after_finished() const; - void set_ttl_seconds_after_finished(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr runtime_env_; - ::flyteidl::plugins::RayCluster* ray_cluster_; - bool shutdown_after_job_finishes_; - ::google::protobuf::int32 ttl_seconds_after_finished_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; -}; -// ------------------------------------------------------------------- - -class RayCluster final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.RayCluster) */ { - public: - RayCluster(); - virtual ~RayCluster(); - - RayCluster(const RayCluster& from); - - inline RayCluster& operator=(const RayCluster& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RayCluster(RayCluster&& from) noexcept - : RayCluster() { - *this = ::std::move(from); - } - - inline RayCluster& operator=(RayCluster&& 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 RayCluster& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RayCluster* internal_default_instance() { - return reinterpret_cast( - &_RayCluster_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(RayCluster* other); - friend void swap(RayCluster& a, RayCluster& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RayCluster* New() const final { - return CreateMaybeMessage(nullptr); - } - - RayCluster* 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 RayCluster& from); - void MergeFrom(const RayCluster& 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(RayCluster* 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 ------------------------------------------------------- - - // repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - int worker_group_spec_size() const; - void clear_worker_group_spec(); - static const int kWorkerGroupSpecFieldNumber = 2; - ::flyteidl::plugins::WorkerGroupSpec* mutable_worker_group_spec(int index); - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >* - mutable_worker_group_spec(); - const ::flyteidl::plugins::WorkerGroupSpec& worker_group_spec(int index) const; - ::flyteidl::plugins::WorkerGroupSpec* add_worker_group_spec(); - const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >& - worker_group_spec() const; - - // .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - bool has_head_group_spec() const; - void clear_head_group_spec(); - static const int kHeadGroupSpecFieldNumber = 1; - const ::flyteidl::plugins::HeadGroupSpec& head_group_spec() const; - ::flyteidl::plugins::HeadGroupSpec* release_head_group_spec(); - ::flyteidl::plugins::HeadGroupSpec* mutable_head_group_spec(); - void set_allocated_head_group_spec(::flyteidl::plugins::HeadGroupSpec* head_group_spec); - - // bool enable_autoscaling = 3; - void clear_enable_autoscaling(); - static const int kEnableAutoscalingFieldNumber = 3; - bool enable_autoscaling() const; - void set_enable_autoscaling(bool value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayCluster) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec > worker_group_spec_; - ::flyteidl::plugins::HeadGroupSpec* head_group_spec_; - bool enable_autoscaling_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; -}; -// ------------------------------------------------------------------- - -class HeadGroupSpec_RayStartParamsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - HeadGroupSpec_RayStartParamsEntry_DoNotUse(); - HeadGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const HeadGroupSpec_RayStartParamsEntry_DoNotUse& other); - static const HeadGroupSpec_RayStartParamsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_HeadGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class HeadGroupSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.HeadGroupSpec) */ { - public: - HeadGroupSpec(); - virtual ~HeadGroupSpec(); - - HeadGroupSpec(const HeadGroupSpec& from); - - inline HeadGroupSpec& operator=(const HeadGroupSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HeadGroupSpec(HeadGroupSpec&& from) noexcept - : HeadGroupSpec() { - *this = ::std::move(from); - } - - inline HeadGroupSpec& operator=(HeadGroupSpec&& 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 HeadGroupSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HeadGroupSpec* internal_default_instance() { - return reinterpret_cast( - &_HeadGroupSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(HeadGroupSpec* other); - friend void swap(HeadGroupSpec& a, HeadGroupSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HeadGroupSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - HeadGroupSpec* 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 HeadGroupSpec& from); - void MergeFrom(const HeadGroupSpec& 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(HeadGroupSpec* 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 ------------------------------------------------------- - - // map ray_start_params = 1; - int ray_start_params_size() const; - void clear_ray_start_params(); - static const int kRayStartParamsFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::std::string >& - ray_start_params() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_ray_start_params(); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HeadGroupSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - HeadGroupSpec_RayStartParamsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > ray_start_params_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; -}; -// ------------------------------------------------------------------- - -class WorkerGroupSpec_RayStartParamsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - WorkerGroupSpec_RayStartParamsEntry_DoNotUse(); - WorkerGroupSpec_RayStartParamsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const WorkerGroupSpec_RayStartParamsEntry_DoNotUse& other); - static const WorkerGroupSpec_RayStartParamsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_WorkerGroupSpec_RayStartParamsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class WorkerGroupSpec final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.WorkerGroupSpec) */ { - public: - WorkerGroupSpec(); - virtual ~WorkerGroupSpec(); - - WorkerGroupSpec(const WorkerGroupSpec& from); - - inline WorkerGroupSpec& operator=(const WorkerGroupSpec& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WorkerGroupSpec(WorkerGroupSpec&& from) noexcept - : WorkerGroupSpec() { - *this = ::std::move(from); - } - - inline WorkerGroupSpec& operator=(WorkerGroupSpec&& 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 WorkerGroupSpec& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WorkerGroupSpec* internal_default_instance() { - return reinterpret_cast( - &_WorkerGroupSpec_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(WorkerGroupSpec* other); - friend void swap(WorkerGroupSpec& a, WorkerGroupSpec& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WorkerGroupSpec* New() const final { - return CreateMaybeMessage(nullptr); - } - - WorkerGroupSpec* 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 WorkerGroupSpec& from); - void MergeFrom(const WorkerGroupSpec& 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(WorkerGroupSpec* 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 ------------------------------------------------------- - - // map ray_start_params = 5; - int ray_start_params_size() const; - void clear_ray_start_params(); - static const int kRayStartParamsFieldNumber = 5; - const ::google::protobuf::Map< ::std::string, ::std::string >& - ray_start_params() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_ray_start_params(); - - // string group_name = 1; - void clear_group_name(); - static const int kGroupNameFieldNumber = 1; - const ::std::string& group_name() const; - void set_group_name(const ::std::string& value); - #if LANG_CXX11 - void set_group_name(::std::string&& value); - #endif - void set_group_name(const char* value); - void set_group_name(const char* value, size_t size); - ::std::string* mutable_group_name(); - ::std::string* release_group_name(); - void set_allocated_group_name(::std::string* group_name); - - // int32 replicas = 2; - void clear_replicas(); - static const int kReplicasFieldNumber = 2; - ::google::protobuf::int32 replicas() const; - void set_replicas(::google::protobuf::int32 value); - - // int32 min_replicas = 3; - void clear_min_replicas(); - static const int kMinReplicasFieldNumber = 3; - ::google::protobuf::int32 min_replicas() const; - void set_min_replicas(::google::protobuf::int32 value); - - // int32 max_replicas = 4; - void clear_max_replicas(); - static const int kMaxReplicasFieldNumber = 4; - ::google::protobuf::int32 max_replicas() const; - void set_max_replicas(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.WorkerGroupSpec) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - WorkerGroupSpec_RayStartParamsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > ray_start_params_; - ::google::protobuf::internal::ArenaStringPtr group_name_; - ::google::protobuf::int32 replicas_; - ::google::protobuf::int32 min_replicas_; - ::google::protobuf::int32 max_replicas_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fray_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// RayJob - -// .flyteidl.plugins.RayCluster ray_cluster = 1; -inline bool RayJob::has_ray_cluster() const { - return this != internal_default_instance() && ray_cluster_ != nullptr; -} -inline void RayJob::clear_ray_cluster() { - if (GetArenaNoVirtual() == nullptr && ray_cluster_ != nullptr) { - delete ray_cluster_; - } - ray_cluster_ = nullptr; -} -inline const ::flyteidl::plugins::RayCluster& RayJob::ray_cluster() const { - const ::flyteidl::plugins::RayCluster* p = ray_cluster_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.ray_cluster) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_RayCluster_default_instance_); -} -inline ::flyteidl::plugins::RayCluster* RayJob::release_ray_cluster() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.RayJob.ray_cluster) - - ::flyteidl::plugins::RayCluster* temp = ray_cluster_; - ray_cluster_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::RayCluster* RayJob::mutable_ray_cluster() { - - if (ray_cluster_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::RayCluster>(GetArenaNoVirtual()); - ray_cluster_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayJob.ray_cluster) - return ray_cluster_; -} -inline void RayJob::set_allocated_ray_cluster(::flyteidl::plugins::RayCluster* ray_cluster) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete ray_cluster_; - } - if (ray_cluster) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - ray_cluster = ::google::protobuf::internal::GetOwnedMessage( - message_arena, ray_cluster, submessage_arena); - } - - } else { - - } - ray_cluster_ = ray_cluster; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayJob.ray_cluster) -} - -// string runtime_env = 2; -inline void RayJob::clear_runtime_env() { - runtime_env_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& RayJob::runtime_env() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.runtime_env) - return runtime_env_.GetNoArena(); -} -inline void RayJob::set_runtime_env(const ::std::string& value) { - - runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.RayJob.runtime_env) -} -#if LANG_CXX11 -inline void RayJob::set_runtime_env(::std::string&& value) { - - runtime_env_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.RayJob.runtime_env) -} -#endif -inline void RayJob::set_runtime_env(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.RayJob.runtime_env) -} -inline void RayJob::set_runtime_env(const char* value, size_t size) { - - runtime_env_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.RayJob.runtime_env) -} -inline ::std::string* RayJob::mutable_runtime_env() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayJob.runtime_env) - return runtime_env_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* RayJob::release_runtime_env() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.RayJob.runtime_env) - - return runtime_env_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void RayJob::set_allocated_runtime_env(::std::string* runtime_env) { - if (runtime_env != nullptr) { - - } else { - - } - runtime_env_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), runtime_env); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayJob.runtime_env) -} - -// bool shutdown_after_job_finishes = 3; -inline void RayJob::clear_shutdown_after_job_finishes() { - shutdown_after_job_finishes_ = false; -} -inline bool RayJob::shutdown_after_job_finishes() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.shutdown_after_job_finishes) - return shutdown_after_job_finishes_; -} -inline void RayJob::set_shutdown_after_job_finishes(bool value) { - - shutdown_after_job_finishes_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.RayJob.shutdown_after_job_finishes) -} - -// int32 ttl_seconds_after_finished = 4; -inline void RayJob::clear_ttl_seconds_after_finished() { - ttl_seconds_after_finished_ = 0; -} -inline ::google::protobuf::int32 RayJob::ttl_seconds_after_finished() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayJob.ttl_seconds_after_finished) - return ttl_seconds_after_finished_; -} -inline void RayJob::set_ttl_seconds_after_finished(::google::protobuf::int32 value) { - - ttl_seconds_after_finished_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.RayJob.ttl_seconds_after_finished) -} - -// ------------------------------------------------------------------- - -// RayCluster - -// .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; -inline bool RayCluster::has_head_group_spec() const { - return this != internal_default_instance() && head_group_spec_ != nullptr; -} -inline void RayCluster::clear_head_group_spec() { - if (GetArenaNoVirtual() == nullptr && head_group_spec_ != nullptr) { - delete head_group_spec_; - } - head_group_spec_ = nullptr; -} -inline const ::flyteidl::plugins::HeadGroupSpec& RayCluster::head_group_spec() const { - const ::flyteidl::plugins::HeadGroupSpec* p = head_group_spec_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayCluster.head_group_spec) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::plugins::_HeadGroupSpec_default_instance_); -} -inline ::flyteidl::plugins::HeadGroupSpec* RayCluster::release_head_group_spec() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.RayCluster.head_group_spec) - - ::flyteidl::plugins::HeadGroupSpec* temp = head_group_spec_; - head_group_spec_ = nullptr; - return temp; -} -inline ::flyteidl::plugins::HeadGroupSpec* RayCluster::mutable_head_group_spec() { - - if (head_group_spec_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::plugins::HeadGroupSpec>(GetArenaNoVirtual()); - head_group_spec_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayCluster.head_group_spec) - return head_group_spec_; -} -inline void RayCluster::set_allocated_head_group_spec(::flyteidl::plugins::HeadGroupSpec* head_group_spec) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete head_group_spec_; - } - if (head_group_spec) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - head_group_spec = ::google::protobuf::internal::GetOwnedMessage( - message_arena, head_group_spec, submessage_arena); - } - - } else { - - } - head_group_spec_ = head_group_spec; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.RayCluster.head_group_spec) -} - -// repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; -inline int RayCluster::worker_group_spec_size() const { - return worker_group_spec_.size(); -} -inline void RayCluster::clear_worker_group_spec() { - worker_group_spec_.Clear(); -} -inline ::flyteidl::plugins::WorkerGroupSpec* RayCluster::mutable_worker_group_spec(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.RayCluster.worker_group_spec) - return worker_group_spec_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >* -RayCluster::mutable_worker_group_spec() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.plugins.RayCluster.worker_group_spec) - return &worker_group_spec_; -} -inline const ::flyteidl::plugins::WorkerGroupSpec& RayCluster::worker_group_spec(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayCluster.worker_group_spec) - return worker_group_spec_.Get(index); -} -inline ::flyteidl::plugins::WorkerGroupSpec* RayCluster::add_worker_group_spec() { - // @@protoc_insertion_point(field_add:flyteidl.plugins.RayCluster.worker_group_spec) - return worker_group_spec_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::flyteidl::plugins::WorkerGroupSpec >& -RayCluster::worker_group_spec() const { - // @@protoc_insertion_point(field_list:flyteidl.plugins.RayCluster.worker_group_spec) - return worker_group_spec_; -} - -// bool enable_autoscaling = 3; -inline void RayCluster::clear_enable_autoscaling() { - enable_autoscaling_ = false; -} -inline bool RayCluster::enable_autoscaling() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.RayCluster.enable_autoscaling) - return enable_autoscaling_; -} -inline void RayCluster::set_enable_autoscaling(bool value) { - - enable_autoscaling_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.RayCluster.enable_autoscaling) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// HeadGroupSpec - -// map ray_start_params = 1; -inline int HeadGroupSpec::ray_start_params_size() const { - return ray_start_params_.size(); -} -inline void HeadGroupSpec::clear_ray_start_params() { - ray_start_params_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -HeadGroupSpec::ray_start_params() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.HeadGroupSpec.ray_start_params) - return ray_start_params_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -HeadGroupSpec::mutable_ray_start_params() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.HeadGroupSpec.ray_start_params) - return ray_start_params_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// WorkerGroupSpec - -// string group_name = 1; -inline void WorkerGroupSpec::clear_group_name() { - group_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& WorkerGroupSpec::group_name() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.group_name) - return group_name_.GetNoArena(); -} -inline void WorkerGroupSpec::set_group_name(const ::std::string& value) { - - group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.group_name) -} -#if LANG_CXX11 -inline void WorkerGroupSpec::set_group_name(::std::string&& value) { - - group_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.WorkerGroupSpec.group_name) -} -#endif -inline void WorkerGroupSpec::set_group_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.WorkerGroupSpec.group_name) -} -inline void WorkerGroupSpec::set_group_name(const char* value, size_t size) { - - group_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.WorkerGroupSpec.group_name) -} -inline ::std::string* WorkerGroupSpec::mutable_group_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.WorkerGroupSpec.group_name) - return group_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* WorkerGroupSpec::release_group_name() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.WorkerGroupSpec.group_name) - - return group_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void WorkerGroupSpec::set_allocated_group_name(::std::string* group_name) { - if (group_name != nullptr) { - - } else { - - } - group_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), group_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.WorkerGroupSpec.group_name) -} - -// int32 replicas = 2; -inline void WorkerGroupSpec::clear_replicas() { - replicas_ = 0; -} -inline ::google::protobuf::int32 WorkerGroupSpec::replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.replicas) - return replicas_; -} -inline void WorkerGroupSpec::set_replicas(::google::protobuf::int32 value) { - - replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.replicas) -} - -// int32 min_replicas = 3; -inline void WorkerGroupSpec::clear_min_replicas() { - min_replicas_ = 0; -} -inline ::google::protobuf::int32 WorkerGroupSpec::min_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.min_replicas) - return min_replicas_; -} -inline void WorkerGroupSpec::set_min_replicas(::google::protobuf::int32 value) { - - min_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.min_replicas) -} - -// int32 max_replicas = 4; -inline void WorkerGroupSpec::clear_max_replicas() { - max_replicas_ = 0; -} -inline ::google::protobuf::int32 WorkerGroupSpec::max_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.WorkerGroupSpec.max_replicas) - return max_replicas_; -} -inline void WorkerGroupSpec::set_max_replicas(::google::protobuf::int32 value) { - - max_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.WorkerGroupSpec.max_replicas) -} - -// map ray_start_params = 5; -inline int WorkerGroupSpec::ray_start_params_size() const { - return ray_start_params_.size(); -} -inline void WorkerGroupSpec::clear_ray_start_params() { - ray_start_params_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -WorkerGroupSpec::ray_start_params() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.WorkerGroupSpec.ray_start_params) - return ray_start_params_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -WorkerGroupSpec::mutable_ray_start_params() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.WorkerGroupSpec.ray_start_params) - return ray_start_params_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fray_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc deleted file mode 100644 index 1f9111abee..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/spark.proto - -#include "flyteidl/plugins/spark.pb.h" -#include "flyteidl/plugins/spark.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h deleted file mode 100644 index c6a35b10ad..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/spark.proto -#ifndef GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED - -#include "flyteidl/plugins/spark.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fspark_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc deleted file mode 100644 index 8cb82c83b5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.cc +++ /dev/null @@ -1,1580 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/spark.proto - -#include "flyteidl/plugins/spark.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -namespace flyteidl { -namespace plugins { -class SparkApplicationDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SparkApplication_default_instance_; -class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SparkJob_SparkConfEntry_DoNotUse_default_instance_; -class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; -class SparkJobDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _SparkJob_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsSparkApplication_flyteidl_2fplugins_2fspark_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_SparkApplication_default_instance_; - new (ptr) ::flyteidl::plugins::SparkApplication(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::SparkApplication::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkApplication_flyteidl_2fplugins_2fspark_2eproto}, {}}; - -static void InitDefaultsSparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse(); - } - ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto}, {}}; - -static void InitDefaultsSparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_; - new (ptr) ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse(); - } - ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsSparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto}, {}}; - -static void InitDefaultsSparkJob_flyteidl_2fplugins_2fspark_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_SparkJob_default_instance_; - new (ptr) ::flyteidl::plugins::SparkJob(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::SparkJob::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<3> scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsSparkJob_flyteidl_2fplugins_2fspark_2eproto}, { - &scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base, - &scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base, - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fspark_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_SparkConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_HadoopConfEntry_DoNotUse_flyteidl_2fplugins_2fspark_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[4]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fspark_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fspark_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkApplication, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse, value_), - 0, - 1, - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, applicationtype_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainapplicationfile_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, mainclass_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, sparkconf_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, hadoopconf_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, executorpath_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databricksconf_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databrickstoken_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::SparkJob, databricksinstance_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::SparkApplication)}, - { 5, 12, sizeof(::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse)}, - { 14, 21, sizeof(::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse)}, - { 23, -1, sizeof(::flyteidl::plugins::SparkJob)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_SparkApplication_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_SparkJob_SparkConfEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_SparkJob_HadoopConfEntry_DoNotUse_default_instance_), - reinterpret_cast(&::flyteidl::plugins::_SparkJob_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fspark_2eproto, "flyteidl/plugins/spark.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fspark_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fspark_2eproto, 4, file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fspark_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fspark_2eproto[] = - "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" - ".plugins\032\034google/protobuf/struct.proto\"B" - "\n\020SparkApplication\".\n\004Type\022\n\n\006PYTHON\020\000\022\010" - "\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\333\003\n\010SparkJob\022" - "@\n\017applicationType\030\001 \001(\0162\'.flyteidl.plug" - "ins.SparkApplication.Type\022\033\n\023mainApplica" - "tionFile\030\002 \001(\t\022\021\n\tmainClass\030\003 \001(\t\022<\n\tspa" - "rkConf\030\004 \003(\0132).flyteidl.plugins.SparkJob" - ".SparkConfEntry\022>\n\nhadoopConf\030\005 \003(\0132*.fl" - "yteidl.plugins.SparkJob.HadoopConfEntry\022" - "\024\n\014executorPath\030\006 \001(\t\022/\n\016databricksConf\030" - "\007 \001(\0132\027.google.protobuf.Struct\022\027\n\017databr" - "icksToken\030\010 \001(\t\022\032\n\022databricksInstance\030\t " - "\001(\t\0320\n\016SparkConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - "lue\030\002 \001(\t:\0028\001\0321\n\017HadoopConfEntry\022\013\n\003key\030" - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\?Z=github.com/f" - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" - "l/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fspark_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fspark_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fspark_2eproto, - "flyteidl/plugins/spark.proto", &assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto, 697, -}; - -void AddDescriptors_flyteidl_2fplugins_2fspark_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fspark_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fspark_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fspark_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { -const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); - return file_level_enum_descriptors_flyteidl_2fplugins_2fspark_2eproto[0]; -} -bool SparkApplication_Type_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const SparkApplication_Type SparkApplication::PYTHON; -const SparkApplication_Type SparkApplication::JAVA; -const SparkApplication_Type SparkApplication::SCALA; -const SparkApplication_Type SparkApplication::R; -const SparkApplication_Type SparkApplication::Type_MIN; -const SparkApplication_Type SparkApplication::Type_MAX; -const int SparkApplication::Type_ARRAYSIZE; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -// =================================================================== - -void SparkApplication::InitAsDefaultInstance() { -} -class SparkApplication::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SparkApplication::SparkApplication() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkApplication) -} -SparkApplication::SparkApplication(const SparkApplication& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkApplication) -} - -void SparkApplication::SharedCtor() { -} - -SparkApplication::~SparkApplication() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkApplication) - SharedDtor(); -} - -void SparkApplication::SharedDtor() { -} - -void SparkApplication::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SparkApplication& SparkApplication::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SparkApplication_flyteidl_2fplugins_2fspark_2eproto.base); - return *internal_default_instance(); -} - - -void SparkApplication::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkApplication) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SparkApplication::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SparkApplication::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.plugins.SparkApplication) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.plugins.SparkApplication) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkApplication) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SparkApplication::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkApplication) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkApplication) -} - -::google::protobuf::uint8* SparkApplication::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkApplication) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.plugins.SparkApplication) - return target; -} - -size_t SparkApplication::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkApplication) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SparkApplication::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkApplication) - GOOGLE_DCHECK_NE(&from, this); - const SparkApplication* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkApplication) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkApplication) - MergeFrom(*source); - } -} - -void SparkApplication::MergeFrom(const SparkApplication& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkApplication) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void SparkApplication::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkApplication) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SparkApplication::CopyFrom(const SparkApplication& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkApplication) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SparkApplication::IsInitialized() const { - return true; -} - -void SparkApplication::Swap(SparkApplication* other) { - if (other == this) return; - InternalSwap(other); -} -void SparkApplication::InternalSwap(SparkApplication* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata SparkApplication::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse() {} -SparkJob_SparkConfEntry_DoNotUse::SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void SparkJob_SparkConfEntry_DoNotUse::MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata SparkJob_SparkConfEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[1]; -} -void SparkJob_SparkConfEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SparkJob_SparkConfEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - SparkJob_SparkConfEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.SparkConfEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.SparkConfEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse() {} -SparkJob_HadoopConfEntry_DoNotUse::SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena) - : SuperType(arena) {} -void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::google::protobuf::Metadata SparkJob_HadoopConfEntry_DoNotUse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[2]; -} -void SparkJob_HadoopConfEntry_DoNotUse::MergeFrom( - const ::google::protobuf::Message& other) { - ::google::protobuf::Message::MergeFrom(other); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SparkJob_HadoopConfEntry_DoNotUse::_ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx) { - using MF = ::google::protobuf::internal::MapField< - SparkJob_HadoopConfEntry_DoNotUse, EntryKeyType, EntryValueType, - kEntryKeyFieldType, kEntryValueFieldType, - kEntryDefaultEnumValue>; - auto mf = static_cast(object); - Parser> parser(mf); -#define DO_(x) if (!(x)) return false - DO_(parser.ParseMap(begin, end)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.value")); -#undef DO_ - return true; -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - - -// =================================================================== - -void SparkJob::InitAsDefaultInstance() { - ::flyteidl::plugins::_SparkJob_default_instance_._instance.get_mutable()->databricksconf_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); -} -class SparkJob::HasBitSetters { - public: - static const ::google::protobuf::Struct& databricksconf(const SparkJob* msg); -}; - -const ::google::protobuf::Struct& -SparkJob::HasBitSetters::databricksconf(const SparkJob* msg) { - return *msg->databricksconf_; -} -void SparkJob::clear_databricksconf() { - if (GetArenaNoVirtual() == nullptr && databricksconf_ != nullptr) { - delete databricksconf_; - } - databricksconf_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int SparkJob::kApplicationTypeFieldNumber; -const int SparkJob::kMainApplicationFileFieldNumber; -const int SparkJob::kMainClassFieldNumber; -const int SparkJob::kSparkConfFieldNumber; -const int SparkJob::kHadoopConfFieldNumber; -const int SparkJob::kExecutorPathFieldNumber; -const int SparkJob::kDatabricksConfFieldNumber; -const int SparkJob::kDatabricksTokenFieldNumber; -const int SparkJob::kDatabricksInstanceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -SparkJob::SparkJob() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.SparkJob) -} -SparkJob::SparkJob(const SparkJob& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - sparkconf_.MergeFrom(from.sparkconf_); - hadoopconf_.MergeFrom(from.hadoopconf_); - mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.mainapplicationfile().size() > 0) { - mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); - } - mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.mainclass().size() > 0) { - mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); - } - executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.executorpath().size() > 0) { - executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); - } - databrickstoken_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.databrickstoken().size() > 0) { - databrickstoken_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databrickstoken_); - } - databricksinstance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.databricksinstance().size() > 0) { - databricksinstance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databricksinstance_); - } - if (from.has_databricksconf()) { - databricksconf_ = new ::google::protobuf::Struct(*from.databricksconf_); - } else { - databricksconf_ = nullptr; - } - applicationtype_ = from.applicationtype_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.SparkJob) -} - -void SparkJob::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); - mainapplicationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mainclass_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - executorpath_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databrickstoken_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databricksinstance_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&databricksconf_, 0, static_cast( - reinterpret_cast(&applicationtype_) - - reinterpret_cast(&databricksconf_)) + sizeof(applicationtype_)); -} - -SparkJob::~SparkJob() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.SparkJob) - SharedDtor(); -} - -void SparkJob::SharedDtor() { - mainapplicationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mainclass_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - executorpath_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databrickstoken_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databricksinstance_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete databricksconf_; -} - -void SparkJob::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const SparkJob& SparkJob::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_SparkJob_flyteidl_2fplugins_2fspark_2eproto.base); - return *internal_default_instance(); -} - - -void SparkJob::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.SparkJob) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - sparkconf_.Clear(); - hadoopconf_.Clear(); - mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databrickstoken_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - databricksinstance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && databricksconf_ != nullptr) { - delete databricksconf_; - } - databricksconf_ = nullptr; - applicationtype_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* SparkJob::_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.plugins.SparkApplication.Type applicationType = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_applicationtype(static_cast<::flyteidl::plugins::SparkApplication_Type>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string mainApplicationFile = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.mainApplicationFile"); - object = msg->mutable_mainapplicationfile(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string mainClass = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.mainClass"); - object = msg->mutable_mainclass(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // map sparkConf = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->sparkconf_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // map hadoopConf = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::internal::SlowMapEntryParser; - auto parse_map = ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse::_ParseMap; - ctx->extra_parse_data().payload.clear(); - ctx->extra_parse_data().parse_map = parse_map; - object = &msg->hadoopconf_; - if (size > end - ptr) goto len_delim_till_end; - auto newend = ptr + size; - GOOGLE_PROTOBUF_PARSER_ASSERT(parse_map(ptr, newend, object, ctx)); - ptr = newend; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // string executorPath = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.executorPath"); - object = msg->mutable_executorpath(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Struct databricksConf = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_databricksconf(); - 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; - } - // string databricksToken = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.databricksToken"); - object = msg->mutable_databrickstoken(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string databricksInstance = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.SparkJob.databricksInstance"); - object = msg->mutable_databricksinstance(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool SparkJob::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.plugins.SparkJob) - 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.plugins.SparkApplication.Type applicationType = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_applicationtype(static_cast< ::flyteidl::plugins::SparkApplication_Type >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string mainApplicationFile = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mainapplicationfile())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.mainApplicationFile")); - } else { - goto handle_unusual; - } - break; - } - - // string mainClass = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mainclass())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainclass().data(), static_cast(this->mainclass().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.mainClass")); - } else { - goto handle_unusual; - } - break; - } - - // map sparkConf = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - SparkJob_SparkConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - SparkJob_SparkConfEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&sparkconf_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.SparkConfEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.SparkConfEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // map hadoopConf = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - SparkJob_HadoopConfEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< - SparkJob_HadoopConfEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 >, - ::google::protobuf::Map< ::std::string, ::std::string > > parser(&hadoopconf_); - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, &parser)); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.key().data(), static_cast(parser.key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.key")); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - parser.value().data(), static_cast(parser.value().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.value")); - } else { - goto handle_unusual; - } - break; - } - - // string executorPath = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_executorpath())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->executorpath().data(), static_cast(this->executorpath().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.executorPath")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct databricksConf = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_databricksconf())); - } else { - goto handle_unusual; - } - break; - } - - // string databricksToken = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_databrickstoken())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databrickstoken().data(), static_cast(this->databrickstoken().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.databricksToken")); - } else { - goto handle_unusual; - } - break; - } - - // string databricksInstance = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_databricksinstance())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databricksinstance().data(), static_cast(this->databricksinstance().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.SparkJob.databricksInstance")); - } 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.plugins.SparkJob) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.SparkJob) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void SparkJob::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.SparkJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.SparkApplication.Type applicationType = 1; - if (this->applicationtype() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->applicationtype(), output); - } - - // string mainApplicationFile = 2; - if (this->mainapplicationfile().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.mainApplicationFile"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->mainapplicationfile(), output); - } - - // string mainClass = 3; - if (this->mainclass().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainclass().data(), static_cast(this->mainclass().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.mainClass"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->mainclass(), output); - } - - // map sparkConf = 4; - if (!this->sparkconf().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.SparkConfEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.SparkConfEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->sparkconf().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->sparkconf().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->sparkconf().begin(); - it != this->sparkconf().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(sparkconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->sparkconf().begin(); - it != this->sparkconf().end(); ++it) { - entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(4, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // map hadoopConf = 5; - if (!this->hadoopconf().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); - } - }; - - if (output->IsSerializationDeterministic() && - this->hadoopconf().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->hadoopconf().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->hadoopconf().begin(); - it != this->hadoopconf().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(hadoopconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->hadoopconf().begin(); - it != this->hadoopconf().end(); ++it) { - entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(5, *entry, output); - Utf8Check::Check(&(*it)); - } - } - } - - // string executorPath = 6; - if (this->executorpath().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->executorpath().data(), static_cast(this->executorpath().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.executorPath"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->executorpath(), output); - } - - // .google.protobuf.Struct databricksConf = 7; - if (this->has_databricksconf()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, HasBitSetters::databricksconf(this), output); - } - - // string databricksToken = 8; - if (this->databrickstoken().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databrickstoken().data(), static_cast(this->databrickstoken().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.databricksToken"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 8, this->databrickstoken(), output); - } - - // string databricksInstance = 9; - if (this->databricksinstance().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databricksinstance().data(), static_cast(this->databricksinstance().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.databricksInstance"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 9, this->databricksinstance(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.SparkJob) -} - -::google::protobuf::uint8* SparkJob::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.SparkJob) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.plugins.SparkApplication.Type applicationType = 1; - if (this->applicationtype() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->applicationtype(), target); - } - - // string mainApplicationFile = 2; - if (this->mainapplicationfile().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainapplicationfile().data(), static_cast(this->mainapplicationfile().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.mainApplicationFile"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->mainapplicationfile(), target); - } - - // string mainClass = 3; - if (this->mainclass().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->mainclass().data(), static_cast(this->mainclass().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.mainClass"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->mainclass(), target); - } - - // map sparkConf = 4; - if (!this->sparkconf().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.SparkConfEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.SparkConfEntry.value"); - } - }; - - if (false && - this->sparkconf().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->sparkconf().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->sparkconf().begin(); - it != this->sparkconf().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(sparkconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->sparkconf().begin(); - it != this->sparkconf().end(); ++it) { - entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(4, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // map hadoopConf = 5; - if (!this->hadoopconf().empty()) { - typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer - ConstPtr; - typedef ConstPtr SortItem; - typedef ::google::protobuf::internal::CompareByDerefFirst Less; - struct Utf8Check { - static void Check(ConstPtr p) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->first.data(), static_cast(p->first.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.key"); - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - p->second.data(), static_cast(p->second.length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.HadoopConfEntry.value"); - } - }; - - if (false && - this->hadoopconf().size() > 1) { - ::std::unique_ptr items( - new SortItem[this->hadoopconf().size()]); - typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; - size_type n = 0; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->hadoopconf().begin(); - it != this->hadoopconf().end(); ++it, ++n) { - items[static_cast(n)] = SortItem(&*it); - } - ::std::sort(&items[0], &items[static_cast(n)], Less()); - ::std::unique_ptr entry; - for (size_type i = 0; i < n; i++) { - entry.reset(hadoopconf_.NewEntryWrapper(items[static_cast(i)]->first, items[static_cast(i)]->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*items[static_cast(i)])); - } - } else { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->hadoopconf().begin(); - it != this->hadoopconf().end(); ++it) { - entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); - target = ::google::protobuf::internal::WireFormatLite::InternalWriteMessageNoVirtualToArray(5, *entry, target); - Utf8Check::Check(&(*it)); - } - } - } - - // string executorPath = 6; - if (this->executorpath().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->executorpath().data(), static_cast(this->executorpath().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.executorPath"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->executorpath(), target); - } - - // .google.protobuf.Struct databricksConf = 7; - if (this->has_databricksconf()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 7, HasBitSetters::databricksconf(this), target); - } - - // string databricksToken = 8; - if (this->databrickstoken().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databrickstoken().data(), static_cast(this->databrickstoken().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.databricksToken"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 8, this->databrickstoken(), target); - } - - // string databricksInstance = 9; - if (this->databricksinstance().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->databricksinstance().data(), static_cast(this->databricksinstance().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.SparkJob.databricksInstance"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->databricksinstance(), 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.plugins.SparkJob) - return target; -} - -size_t SparkJob::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.SparkJob) - 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; - - // map sparkConf = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->sparkconf_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->sparkconf().begin(); - it != this->sparkconf().end(); ++it) { - entry.reset(sparkconf_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // map hadoopConf = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->hadoopconf_size()); - { - ::std::unique_ptr entry; - for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator - it = this->hadoopconf().begin(); - it != this->hadoopconf().end(); ++it) { - entry.reset(hadoopconf_.NewEntryWrapper(it->first, it->second)); - total_size += ::google::protobuf::internal::WireFormatLite:: - MessageSizeNoVirtual(*entry); - } - } - - // string mainApplicationFile = 2; - if (this->mainapplicationfile().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mainapplicationfile()); - } - - // string mainClass = 3; - if (this->mainclass().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mainclass()); - } - - // string executorPath = 6; - if (this->executorpath().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->executorpath()); - } - - // string databricksToken = 8; - if (this->databrickstoken().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->databrickstoken()); - } - - // string databricksInstance = 9; - if (this->databricksinstance().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->databricksinstance()); - } - - // .google.protobuf.Struct databricksConf = 7; - if (this->has_databricksconf()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *databricksconf_); - } - - // .flyteidl.plugins.SparkApplication.Type applicationType = 1; - if (this->applicationtype() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->applicationtype()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void SparkJob::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.SparkJob) - GOOGLE_DCHECK_NE(&from, this); - const SparkJob* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.SparkJob) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.SparkJob) - MergeFrom(*source); - } -} - -void SparkJob::MergeFrom(const SparkJob& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.SparkJob) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - sparkconf_.MergeFrom(from.sparkconf_); - hadoopconf_.MergeFrom(from.hadoopconf_); - if (from.mainapplicationfile().size() > 0) { - - mainapplicationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainapplicationfile_); - } - if (from.mainclass().size() > 0) { - - mainclass_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.mainclass_); - } - if (from.executorpath().size() > 0) { - - executorpath_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.executorpath_); - } - if (from.databrickstoken().size() > 0) { - - databrickstoken_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databrickstoken_); - } - if (from.databricksinstance().size() > 0) { - - databricksinstance_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.databricksinstance_); - } - if (from.has_databricksconf()) { - mutable_databricksconf()->::google::protobuf::Struct::MergeFrom(from.databricksconf()); - } - if (from.applicationtype() != 0) { - set_applicationtype(from.applicationtype()); - } -} - -void SparkJob::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.SparkJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void SparkJob::CopyFrom(const SparkJob& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.SparkJob) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SparkJob::IsInitialized() const { - return true; -} - -void SparkJob::Swap(SparkJob* other) { - if (other == this) return; - InternalSwap(other); -} -void SparkJob::InternalSwap(SparkJob* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - sparkconf_.Swap(&other->sparkconf_); - hadoopconf_.Swap(&other->hadoopconf_); - mainapplicationfile_.Swap(&other->mainapplicationfile_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - mainclass_.Swap(&other->mainclass_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - executorpath_.Swap(&other->executorpath_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - databrickstoken_.Swap(&other->databrickstoken_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - databricksinstance_.Swap(&other->databricksinstance_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(databricksconf_, other->databricksconf_); - swap(applicationtype_, other->applicationtype_); -} - -::google::protobuf::Metadata SparkJob::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fspark_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fspark_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkApplication* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkApplication >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::SparkApplication >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::SparkJob* Arena::CreateMaybeMessage< ::flyteidl::plugins::SparkJob >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::SparkJob >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h deleted file mode 100644 index 4b60371d82..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/spark.pb.h +++ /dev/null @@ -1,927 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/spark.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fspark_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fspark_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fspark_2eproto(); -namespace flyteidl { -namespace plugins { -class SparkApplication; -class SparkApplicationDefaultTypeInternal; -extern SparkApplicationDefaultTypeInternal _SparkApplication_default_instance_; -class SparkJob; -class SparkJobDefaultTypeInternal; -extern SparkJobDefaultTypeInternal _SparkJob_default_instance_; -class SparkJob_HadoopConfEntry_DoNotUse; -class SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal; -extern SparkJob_HadoopConfEntry_DoNotUseDefaultTypeInternal _SparkJob_HadoopConfEntry_DoNotUse_default_instance_; -class SparkJob_SparkConfEntry_DoNotUse; -class SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal; -extern SparkJob_SparkConfEntry_DoNotUseDefaultTypeInternal _SparkJob_SparkConfEntry_DoNotUse_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::SparkApplication* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkApplication>(Arena*); -template<> ::flyteidl::plugins::SparkJob* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob>(Arena*); -template<> ::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob_HadoopConfEntry_DoNotUse>(Arena*); -template<> ::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse* Arena::CreateMaybeMessage<::flyteidl::plugins::SparkJob_SparkConfEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -enum SparkApplication_Type { - SparkApplication_Type_PYTHON = 0, - SparkApplication_Type_JAVA = 1, - SparkApplication_Type_SCALA = 2, - SparkApplication_Type_R = 3, - SparkApplication_Type_SparkApplication_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - SparkApplication_Type_SparkApplication_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool SparkApplication_Type_IsValid(int value); -const SparkApplication_Type SparkApplication_Type_Type_MIN = SparkApplication_Type_PYTHON; -const SparkApplication_Type SparkApplication_Type_Type_MAX = SparkApplication_Type_R; -const int SparkApplication_Type_Type_ARRAYSIZE = SparkApplication_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* SparkApplication_Type_descriptor(); -inline const ::std::string& SparkApplication_Type_Name(SparkApplication_Type value) { - return ::google::protobuf::internal::NameOfEnum( - SparkApplication_Type_descriptor(), value); -} -inline bool SparkApplication_Type_Parse( - const ::std::string& name, SparkApplication_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - SparkApplication_Type_descriptor(), name, value); -} -// =================================================================== - -class SparkApplication final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkApplication) */ { - public: - SparkApplication(); - virtual ~SparkApplication(); - - SparkApplication(const SparkApplication& from); - - inline SparkApplication& operator=(const SparkApplication& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SparkApplication(SparkApplication&& from) noexcept - : SparkApplication() { - *this = ::std::move(from); - } - - inline SparkApplication& operator=(SparkApplication&& 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 SparkApplication& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SparkApplication* internal_default_instance() { - return reinterpret_cast( - &_SparkApplication_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(SparkApplication* other); - friend void swap(SparkApplication& a, SparkApplication& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SparkApplication* New() const final { - return CreateMaybeMessage(nullptr); - } - - SparkApplication* 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 SparkApplication& from); - void MergeFrom(const SparkApplication& 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(SparkApplication* 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 ---------------------------------------------------- - - typedef SparkApplication_Type Type; - static const Type PYTHON = - SparkApplication_Type_PYTHON; - static const Type JAVA = - SparkApplication_Type_JAVA; - static const Type SCALA = - SparkApplication_Type_SCALA; - static const Type R = - SparkApplication_Type_R; - static inline bool Type_IsValid(int value) { - return SparkApplication_Type_IsValid(value); - } - static const Type Type_MIN = - SparkApplication_Type_Type_MIN; - static const Type Type_MAX = - SparkApplication_Type_Type_MAX; - static const int Type_ARRAYSIZE = - SparkApplication_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return SparkApplication_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return SparkApplication_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return SparkApplication_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fspark_2eproto; -}; -// ------------------------------------------------------------------- - -class SparkJob_SparkConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - SparkJob_SparkConfEntry_DoNotUse(); - SparkJob_SparkConfEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const SparkJob_SparkConfEntry_DoNotUse& other); - static const SparkJob_SparkConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_SparkConfEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class SparkJob_HadoopConfEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -static bool _ParseMap(const char* begin, const char* end, void* object, ::google::protobuf::internal::ParseContext* ctx); -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - typedef ::google::protobuf::internal::MapEntry SuperType; - SparkJob_HadoopConfEntry_DoNotUse(); - SparkJob_HadoopConfEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const SparkJob_HadoopConfEntry_DoNotUse& other); - static const SparkJob_HadoopConfEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_SparkJob_HadoopConfEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class SparkJob final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.SparkJob) */ { - public: - SparkJob(); - virtual ~SparkJob(); - - SparkJob(const SparkJob& from); - - inline SparkJob& operator=(const SparkJob& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SparkJob(SparkJob&& from) noexcept - : SparkJob() { - *this = ::std::move(from); - } - - inline SparkJob& operator=(SparkJob&& 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 SparkJob& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SparkJob* internal_default_instance() { - return reinterpret_cast( - &_SparkJob_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(SparkJob* other); - friend void swap(SparkJob& a, SparkJob& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SparkJob* New() const final { - return CreateMaybeMessage(nullptr); - } - - SparkJob* 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 SparkJob& from); - void MergeFrom(const SparkJob& 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(SparkJob* 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 ------------------------------------------------------- - - // map sparkConf = 4; - int sparkconf_size() const; - void clear_sparkconf(); - static const int kSparkConfFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - sparkconf() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_sparkconf(); - - // map hadoopConf = 5; - int hadoopconf_size() const; - void clear_hadoopconf(); - static const int kHadoopConfFieldNumber = 5; - const ::google::protobuf::Map< ::std::string, ::std::string >& - hadoopconf() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_hadoopconf(); - - // string mainApplicationFile = 2; - void clear_mainapplicationfile(); - static const int kMainApplicationFileFieldNumber = 2; - const ::std::string& mainapplicationfile() const; - void set_mainapplicationfile(const ::std::string& value); - #if LANG_CXX11 - void set_mainapplicationfile(::std::string&& value); - #endif - void set_mainapplicationfile(const char* value); - void set_mainapplicationfile(const char* value, size_t size); - ::std::string* mutable_mainapplicationfile(); - ::std::string* release_mainapplicationfile(); - void set_allocated_mainapplicationfile(::std::string* mainapplicationfile); - - // string mainClass = 3; - void clear_mainclass(); - static const int kMainClassFieldNumber = 3; - const ::std::string& mainclass() const; - void set_mainclass(const ::std::string& value); - #if LANG_CXX11 - void set_mainclass(::std::string&& value); - #endif - void set_mainclass(const char* value); - void set_mainclass(const char* value, size_t size); - ::std::string* mutable_mainclass(); - ::std::string* release_mainclass(); - void set_allocated_mainclass(::std::string* mainclass); - - // string executorPath = 6; - void clear_executorpath(); - static const int kExecutorPathFieldNumber = 6; - const ::std::string& executorpath() const; - void set_executorpath(const ::std::string& value); - #if LANG_CXX11 - void set_executorpath(::std::string&& value); - #endif - void set_executorpath(const char* value); - void set_executorpath(const char* value, size_t size); - ::std::string* mutable_executorpath(); - ::std::string* release_executorpath(); - void set_allocated_executorpath(::std::string* executorpath); - - // string databricksToken = 8; - void clear_databrickstoken(); - static const int kDatabricksTokenFieldNumber = 8; - const ::std::string& databrickstoken() const; - void set_databrickstoken(const ::std::string& value); - #if LANG_CXX11 - void set_databrickstoken(::std::string&& value); - #endif - void set_databrickstoken(const char* value); - void set_databrickstoken(const char* value, size_t size); - ::std::string* mutable_databrickstoken(); - ::std::string* release_databrickstoken(); - void set_allocated_databrickstoken(::std::string* databrickstoken); - - // string databricksInstance = 9; - void clear_databricksinstance(); - static const int kDatabricksInstanceFieldNumber = 9; - const ::std::string& databricksinstance() const; - void set_databricksinstance(const ::std::string& value); - #if LANG_CXX11 - void set_databricksinstance(::std::string&& value); - #endif - void set_databricksinstance(const char* value); - void set_databricksinstance(const char* value, size_t size); - ::std::string* mutable_databricksinstance(); - ::std::string* release_databricksinstance(); - void set_allocated_databricksinstance(::std::string* databricksinstance); - - // .google.protobuf.Struct databricksConf = 7; - bool has_databricksconf() const; - void clear_databricksconf(); - static const int kDatabricksConfFieldNumber = 7; - const ::google::protobuf::Struct& databricksconf() const; - ::google::protobuf::Struct* release_databricksconf(); - ::google::protobuf::Struct* mutable_databricksconf(); - void set_allocated_databricksconf(::google::protobuf::Struct* databricksconf); - - // .flyteidl.plugins.SparkApplication.Type applicationType = 1; - void clear_applicationtype(); - static const int kApplicationTypeFieldNumber = 1; - ::flyteidl::plugins::SparkApplication_Type applicationtype() const; - void set_applicationtype(::flyteidl::plugins::SparkApplication_Type value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::MapField< - SparkJob_SparkConfEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > sparkconf_; - ::google::protobuf::internal::MapField< - SparkJob_HadoopConfEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > hadoopconf_; - ::google::protobuf::internal::ArenaStringPtr mainapplicationfile_; - ::google::protobuf::internal::ArenaStringPtr mainclass_; - ::google::protobuf::internal::ArenaStringPtr executorpath_; - ::google::protobuf::internal::ArenaStringPtr databrickstoken_; - ::google::protobuf::internal::ArenaStringPtr databricksinstance_; - ::google::protobuf::Struct* databricksconf_; - int applicationtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fspark_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SparkApplication - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// SparkJob - -// .flyteidl.plugins.SparkApplication.Type applicationType = 1; -inline void SparkJob::clear_applicationtype() { - applicationtype_ = 0; -} -inline ::flyteidl::plugins::SparkApplication_Type SparkJob::applicationtype() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.applicationType) - return static_cast< ::flyteidl::plugins::SparkApplication_Type >(applicationtype_); -} -inline void SparkJob::set_applicationtype(::flyteidl::plugins::SparkApplication_Type value) { - - applicationtype_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.applicationType) -} - -// string mainApplicationFile = 2; -inline void SparkJob::clear_mainapplicationfile() { - mainapplicationfile_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SparkJob::mainapplicationfile() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainApplicationFile) - return mainapplicationfile_.GetNoArena(); -} -inline void SparkJob::set_mainapplicationfile(const ::std::string& value) { - - mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainApplicationFile) -} -#if LANG_CXX11 -inline void SparkJob::set_mainapplicationfile(::std::string&& value) { - - mainapplicationfile_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainApplicationFile) -} -#endif -inline void SparkJob::set_mainapplicationfile(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainApplicationFile) -} -inline void SparkJob::set_mainapplicationfile(const char* value, size_t size) { - - mainapplicationfile_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainApplicationFile) -} -inline ::std::string* SparkJob::mutable_mainapplicationfile() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainApplicationFile) - return mainapplicationfile_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SparkJob::release_mainapplicationfile() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainApplicationFile) - - return mainapplicationfile_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SparkJob::set_allocated_mainapplicationfile(::std::string* mainapplicationfile) { - if (mainapplicationfile != nullptr) { - - } else { - - } - mainapplicationfile_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainapplicationfile); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainApplicationFile) -} - -// string mainClass = 3; -inline void SparkJob::clear_mainclass() { - mainclass_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SparkJob::mainclass() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.mainClass) - return mainclass_.GetNoArena(); -} -inline void SparkJob::set_mainclass(const ::std::string& value) { - - mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.mainClass) -} -#if LANG_CXX11 -inline void SparkJob::set_mainclass(::std::string&& value) { - - mainclass_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.mainClass) -} -#endif -inline void SparkJob::set_mainclass(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.mainClass) -} -inline void SparkJob::set_mainclass(const char* value, size_t size) { - - mainclass_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.mainClass) -} -inline ::std::string* SparkJob::mutable_mainclass() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.mainClass) - return mainclass_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SparkJob::release_mainclass() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.mainClass) - - return mainclass_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SparkJob::set_allocated_mainclass(::std::string* mainclass) { - if (mainclass != nullptr) { - - } else { - - } - mainclass_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), mainclass); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.mainClass) -} - -// map sparkConf = 4; -inline int SparkJob::sparkconf_size() const { - return sparkconf_.size(); -} -inline void SparkJob::clear_sparkconf() { - sparkconf_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -SparkJob::sparkconf() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.sparkConf) - return sparkconf_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -SparkJob::mutable_sparkconf() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.sparkConf) - return sparkconf_.MutableMap(); -} - -// map hadoopConf = 5; -inline int SparkJob::hadoopconf_size() const { - return hadoopconf_.size(); -} -inline void SparkJob::clear_hadoopconf() { - hadoopconf_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -SparkJob::hadoopconf() const { - // @@protoc_insertion_point(field_map:flyteidl.plugins.SparkJob.hadoopConf) - return hadoopconf_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -SparkJob::mutable_hadoopconf() { - // @@protoc_insertion_point(field_mutable_map:flyteidl.plugins.SparkJob.hadoopConf) - return hadoopconf_.MutableMap(); -} - -// string executorPath = 6; -inline void SparkJob::clear_executorpath() { - executorpath_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SparkJob::executorpath() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.executorPath) - return executorpath_.GetNoArena(); -} -inline void SparkJob::set_executorpath(const ::std::string& value) { - - executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.executorPath) -} -#if LANG_CXX11 -inline void SparkJob::set_executorpath(::std::string&& value) { - - executorpath_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.executorPath) -} -#endif -inline void SparkJob::set_executorpath(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.executorPath) -} -inline void SparkJob::set_executorpath(const char* value, size_t size) { - - executorpath_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.executorPath) -} -inline ::std::string* SparkJob::mutable_executorpath() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.executorPath) - return executorpath_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SparkJob::release_executorpath() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.executorPath) - - return executorpath_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SparkJob::set_allocated_executorpath(::std::string* executorpath) { - if (executorpath != nullptr) { - - } else { - - } - executorpath_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), executorpath); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.executorPath) -} - -// .google.protobuf.Struct databricksConf = 7; -inline bool SparkJob::has_databricksconf() const { - return this != internal_default_instance() && databricksconf_ != nullptr; -} -inline const ::google::protobuf::Struct& SparkJob::databricksconf() const { - const ::google::protobuf::Struct* p = databricksconf_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksConf) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* SparkJob::release_databricksconf() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksConf) - - ::google::protobuf::Struct* temp = databricksconf_; - databricksconf_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* SparkJob::mutable_databricksconf() { - - if (databricksconf_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - databricksconf_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksConf) - return databricksconf_; -} -inline void SparkJob::set_allocated_databricksconf(::google::protobuf::Struct* databricksconf) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(databricksconf_); - } - if (databricksconf) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(databricksconf)->GetArena(); - if (message_arena != submessage_arena) { - databricksconf = ::google::protobuf::internal::GetOwnedMessage( - message_arena, databricksconf, submessage_arena); - } - - } else { - - } - databricksconf_ = databricksconf; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksConf) -} - -// string databricksToken = 8; -inline void SparkJob::clear_databrickstoken() { - databrickstoken_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SparkJob::databrickstoken() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksToken) - return databrickstoken_.GetNoArena(); -} -inline void SparkJob::set_databrickstoken(const ::std::string& value) { - - databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.databricksToken) -} -#if LANG_CXX11 -inline void SparkJob::set_databrickstoken(::std::string&& value) { - - databrickstoken_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.databricksToken) -} -#endif -inline void SparkJob::set_databrickstoken(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.databricksToken) -} -inline void SparkJob::set_databrickstoken(const char* value, size_t size) { - - databrickstoken_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.databricksToken) -} -inline ::std::string* SparkJob::mutable_databrickstoken() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksToken) - return databrickstoken_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SparkJob::release_databrickstoken() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksToken) - - return databrickstoken_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SparkJob::set_allocated_databrickstoken(::std::string* databrickstoken) { - if (databrickstoken != nullptr) { - - } else { - - } - databrickstoken_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databrickstoken); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksToken) -} - -// string databricksInstance = 9; -inline void SparkJob::clear_databricksinstance() { - databricksinstance_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& SparkJob::databricksinstance() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.SparkJob.databricksInstance) - return databricksinstance_.GetNoArena(); -} -inline void SparkJob::set_databricksinstance(const ::std::string& value) { - - databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.SparkJob.databricksInstance) -} -#if LANG_CXX11 -inline void SparkJob::set_databricksinstance(::std::string&& value) { - - databricksinstance_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.SparkJob.databricksInstance) -} -#endif -inline void SparkJob::set_databricksinstance(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.SparkJob.databricksInstance) -} -inline void SparkJob::set_databricksinstance(const char* value, size_t size) { - - databricksinstance_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.SparkJob.databricksInstance) -} -inline ::std::string* SparkJob::mutable_databricksinstance() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.SparkJob.databricksInstance) - return databricksinstance_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* SparkJob::release_databricksinstance() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.SparkJob.databricksInstance) - - return databricksinstance_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void SparkJob::set_allocated_databricksinstance(::std::string* databricksinstance) { - if (databricksinstance != nullptr) { - - } else { - - } - databricksinstance_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), databricksinstance); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.SparkJob.databricksInstance) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::plugins::SparkApplication_Type> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::plugins::SparkApplication_Type>() { - return ::flyteidl::plugins::SparkApplication_Type_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fspark_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc deleted file mode 100644 index f3a3c56229..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/tensorflow.proto - -#include "flyteidl/plugins/tensorflow.pb.h" -#include "flyteidl/plugins/tensorflow.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h deleted file mode 100644 index 1bc80de44e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/tensorflow.proto -#ifndef GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED - -#include "flyteidl/plugins/tensorflow.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2ftensorflow_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc deleted file mode 100644 index 23d343be1a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.cc +++ /dev/null @@ -1,505 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/tensorflow.proto - -#include "flyteidl/plugins/tensorflow.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace plugins { -class DistributedTensorflowTrainingTaskDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _DistributedTensorflowTrainingTask_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_DistributedTensorflowTrainingTask_default_instance_; - new (ptr) ::flyteidl::plugins::DistributedTensorflowTrainingTask(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::DistributedTensorflowTrainingTask::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsDistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto}, {}}; - -void InitDefaults_flyteidl_2fplugins_2ftensorflow_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, workers_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, ps_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, chief_replicas_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::DistributedTensorflowTrainingTask, evaluator_replicas_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::DistributedTensorflowTrainingTask)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_DistributedTensorflowTrainingTask_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto, "flyteidl/plugins/tensorflow.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2ftensorflow_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2ftensorflow_2eproto[] = - "\n!flyteidl/plugins/tensorflow.proto\022\020fly" - "teidl.plugins\"}\n!DistributedTensorflowTr" - "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" - "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005\022\032\n\022eval" - "uator_replicas\030\004 \001(\005B\?Z=github.com/flyte" - "org/flyte/flyteidl/gen/pb-go/flyteidl/pl" - "uginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2ftensorflow_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2ftensorflow_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2ftensorflow_2eproto, - "flyteidl/plugins/tensorflow.proto", &assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto, 253, -}; - -void AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2ftensorflow_2eproto, deps, 0); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2ftensorflow_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void DistributedTensorflowTrainingTask::InitAsDefaultInstance() { -} -class DistributedTensorflowTrainingTask::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int DistributedTensorflowTrainingTask::kWorkersFieldNumber; -const int DistributedTensorflowTrainingTask::kPsReplicasFieldNumber; -const int DistributedTensorflowTrainingTask::kChiefReplicasFieldNumber; -const int DistributedTensorflowTrainingTask::kEvaluatorReplicasFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.DistributedTensorflowTrainingTask) -} -DistributedTensorflowTrainingTask::DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::memcpy(&workers_, &from.workers_, - static_cast(reinterpret_cast(&evaluator_replicas_) - - reinterpret_cast(&workers_)) + sizeof(evaluator_replicas_)); - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.DistributedTensorflowTrainingTask) -} - -void DistributedTensorflowTrainingTask::SharedCtor() { - ::memset(&workers_, 0, static_cast( - reinterpret_cast(&evaluator_replicas_) - - reinterpret_cast(&workers_)) + sizeof(evaluator_replicas_)); -} - -DistributedTensorflowTrainingTask::~DistributedTensorflowTrainingTask() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.DistributedTensorflowTrainingTask) - SharedDtor(); -} - -void DistributedTensorflowTrainingTask::SharedDtor() { -} - -void DistributedTensorflowTrainingTask::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const DistributedTensorflowTrainingTask& DistributedTensorflowTrainingTask::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_DistributedTensorflowTrainingTask_flyteidl_2fplugins_2ftensorflow_2eproto.base); - return *internal_default_instance(); -} - - -void DistributedTensorflowTrainingTask::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - ::memset(&workers_, 0, static_cast( - reinterpret_cast(&evaluator_replicas_) - - reinterpret_cast(&workers_)) + sizeof(evaluator_replicas_)); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* DistributedTensorflowTrainingTask::_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) { - // int32 workers = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - msg->set_workers(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 ps_replicas = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - msg->set_ps_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 chief_replicas = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 24) goto handle_unusual; - msg->set_chief_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // int32 evaluator_replicas = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 32) goto handle_unusual; - msg->set_evaluator_replicas(::google::protobuf::internal::ReadVarint(&ptr)); - GOOGLE_PROTOBUF_PARSER_ASSERT(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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool DistributedTensorflowTrainingTask::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.plugins.DistributedTensorflowTrainingTask) - 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)) { - // int32 workers = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &workers_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 ps_replicas = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &ps_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 chief_replicas = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (24 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &chief_replicas_))); - } else { - goto handle_unusual; - } - break; - } - - // int32 evaluator_replicas = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (32 & 0xFF)) { - - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( - input, &evaluator_replicas_))); - } 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.plugins.DistributedTensorflowTrainingTask) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.DistributedTensorflowTrainingTask) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void DistributedTensorflowTrainingTask::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 workers = 1; - if (this->workers() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->workers(), output); - } - - // int32 ps_replicas = 2; - if (this->ps_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->ps_replicas(), output); - } - - // int32 chief_replicas = 3; - if (this->chief_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->chief_replicas(), output); - } - - // int32 evaluator_replicas = 4; - if (this->evaluator_replicas() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->evaluator_replicas(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.DistributedTensorflowTrainingTask) -} - -::google::protobuf::uint8* DistributedTensorflowTrainingTask::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // int32 workers = 1; - if (this->workers() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->workers(), target); - } - - // int32 ps_replicas = 2; - if (this->ps_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->ps_replicas(), target); - } - - // int32 chief_replicas = 3; - if (this->chief_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->chief_replicas(), target); - } - - // int32 evaluator_replicas = 4; - if (this->evaluator_replicas() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->evaluator_replicas(), 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.plugins.DistributedTensorflowTrainingTask) - return target; -} - -size_t DistributedTensorflowTrainingTask::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - 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; - - // int32 workers = 1; - if (this->workers() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->workers()); - } - - // int32 ps_replicas = 2; - if (this->ps_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->ps_replicas()); - } - - // int32 chief_replicas = 3; - if (this->chief_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->chief_replicas()); - } - - // int32 evaluator_replicas = 4; - if (this->evaluator_replicas() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int32Size( - this->evaluator_replicas()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void DistributedTensorflowTrainingTask::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - GOOGLE_DCHECK_NE(&from, this); - const DistributedTensorflowTrainingTask* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.DistributedTensorflowTrainingTask) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.DistributedTensorflowTrainingTask) - MergeFrom(*source); - } -} - -void DistributedTensorflowTrainingTask::MergeFrom(const DistributedTensorflowTrainingTask& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.workers() != 0) { - set_workers(from.workers()); - } - if (from.ps_replicas() != 0) { - set_ps_replicas(from.ps_replicas()); - } - if (from.chief_replicas() != 0) { - set_chief_replicas(from.chief_replicas()); - } - if (from.evaluator_replicas() != 0) { - set_evaluator_replicas(from.evaluator_replicas()); - } -} - -void DistributedTensorflowTrainingTask::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void DistributedTensorflowTrainingTask::CopyFrom(const DistributedTensorflowTrainingTask& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.DistributedTensorflowTrainingTask) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool DistributedTensorflowTrainingTask::IsInitialized() const { - return true; -} - -void DistributedTensorflowTrainingTask::Swap(DistributedTensorflowTrainingTask* other) { - if (other == this) return; - InternalSwap(other); -} -void DistributedTensorflowTrainingTask::InternalSwap(DistributedTensorflowTrainingTask* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(workers_, other->workers_); - swap(ps_replicas_, other->ps_replicas_); - swap(chief_replicas_, other->chief_replicas_); - swap(evaluator_replicas_, other->evaluator_replicas_); -} - -::google::protobuf::Metadata DistributedTensorflowTrainingTask::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2ftensorflow_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2ftensorflow_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage< ::flyteidl::plugins::DistributedTensorflowTrainingTask >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::DistributedTensorflowTrainingTask >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h deleted file mode 100644 index 4150592a60..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/tensorflow.pb.h +++ /dev/null @@ -1,278 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/tensorflow.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2ftensorflow_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2ftensorflow_2eproto(); -namespace flyteidl { -namespace plugins { -class DistributedTensorflowTrainingTask; -class DistributedTensorflowTrainingTaskDefaultTypeInternal; -extern DistributedTensorflowTrainingTaskDefaultTypeInternal _DistributedTensorflowTrainingTask_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::DistributedTensorflowTrainingTask* Arena::CreateMaybeMessage<::flyteidl::plugins::DistributedTensorflowTrainingTask>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class DistributedTensorflowTrainingTask final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.DistributedTensorflowTrainingTask) */ { - public: - DistributedTensorflowTrainingTask(); - virtual ~DistributedTensorflowTrainingTask(); - - DistributedTensorflowTrainingTask(const DistributedTensorflowTrainingTask& from); - - inline DistributedTensorflowTrainingTask& operator=(const DistributedTensorflowTrainingTask& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DistributedTensorflowTrainingTask(DistributedTensorflowTrainingTask&& from) noexcept - : DistributedTensorflowTrainingTask() { - *this = ::std::move(from); - } - - inline DistributedTensorflowTrainingTask& operator=(DistributedTensorflowTrainingTask&& 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 DistributedTensorflowTrainingTask& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DistributedTensorflowTrainingTask* internal_default_instance() { - return reinterpret_cast( - &_DistributedTensorflowTrainingTask_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(DistributedTensorflowTrainingTask* other); - friend void swap(DistributedTensorflowTrainingTask& a, DistributedTensorflowTrainingTask& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DistributedTensorflowTrainingTask* New() const final { - return CreateMaybeMessage(nullptr); - } - - DistributedTensorflowTrainingTask* 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 DistributedTensorflowTrainingTask& from); - void MergeFrom(const DistributedTensorflowTrainingTask& 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(DistributedTensorflowTrainingTask* 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 ------------------------------------------------------- - - // int32 workers = 1; - void clear_workers(); - static const int kWorkersFieldNumber = 1; - ::google::protobuf::int32 workers() const; - void set_workers(::google::protobuf::int32 value); - - // int32 ps_replicas = 2; - void clear_ps_replicas(); - static const int kPsReplicasFieldNumber = 2; - ::google::protobuf::int32 ps_replicas() const; - void set_ps_replicas(::google::protobuf::int32 value); - - // int32 chief_replicas = 3; - void clear_chief_replicas(); - static const int kChiefReplicasFieldNumber = 3; - ::google::protobuf::int32 chief_replicas() const; - void set_chief_replicas(::google::protobuf::int32 value); - - // int32 evaluator_replicas = 4; - void clear_evaluator_replicas(); - static const int kEvaluatorReplicasFieldNumber = 4; - ::google::protobuf::int32 evaluator_replicas() const; - void set_evaluator_replicas(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int32 workers_; - ::google::protobuf::int32 ps_replicas_; - ::google::protobuf::int32 chief_replicas_; - ::google::protobuf::int32 evaluator_replicas_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2ftensorflow_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// DistributedTensorflowTrainingTask - -// int32 workers = 1; -inline void DistributedTensorflowTrainingTask::clear_workers() { - workers_ = 0; -} -inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::workers() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.workers) - return workers_; -} -inline void DistributedTensorflowTrainingTask::set_workers(::google::protobuf::int32 value) { - - workers_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.workers) -} - -// int32 ps_replicas = 2; -inline void DistributedTensorflowTrainingTask::clear_ps_replicas() { - ps_replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::ps_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.ps_replicas) - return ps_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_ps_replicas(::google::protobuf::int32 value) { - - ps_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.ps_replicas) -} - -// int32 chief_replicas = 3; -inline void DistributedTensorflowTrainingTask::clear_chief_replicas() { - chief_replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::chief_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.chief_replicas) - return chief_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_chief_replicas(::google::protobuf::int32 value) { - - chief_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.chief_replicas) -} - -// int32 evaluator_replicas = 4; -inline void DistributedTensorflowTrainingTask::clear_evaluator_replicas() { - evaluator_replicas_ = 0; -} -inline ::google::protobuf::int32 DistributedTensorflowTrainingTask::evaluator_replicas() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.DistributedTensorflowTrainingTask.evaluator_replicas) - return evaluator_replicas_; -} -inline void DistributedTensorflowTrainingTask::set_evaluator_replicas(::google::protobuf::int32 value) { - - evaluator_replicas_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.DistributedTensorflowTrainingTask.evaluator_replicas) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2ftensorflow_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc deleted file mode 100644 index 4f9aeb135a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.cc +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/waitable.proto - -#include "flyteidl/plugins/waitable.pb.h" -#include "flyteidl/plugins/waitable.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace plugins { - -} // namespace flyteidl -} // namespace plugins - diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h deleted file mode 100644 index 960be6017f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.grpc.pb.h +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/plugins/waitable.proto -#ifndef GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED -#define GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED - -#include "flyteidl/plugins/waitable.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace plugins { - -} // namespace plugins -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fplugins_2fwaitable_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc deleted file mode 100644 index da360d5ab5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.cc +++ /dev/null @@ -1,537 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/waitable.proto - -#include "flyteidl/plugins/waitable.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -namespace flyteidl { -namespace plugins { -class WaitableDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _Waitable_default_instance_; -} // namespace plugins -} // namespace flyteidl -static void InitDefaultsWaitable_flyteidl_2fplugins_2fwaitable_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::plugins::_Waitable_default_instance_; - new (ptr) ::flyteidl::plugins::Waitable(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::plugins::Waitable::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsWaitable_flyteidl_2fplugins_2fwaitable_2eproto}, { - &scc_info_WorkflowExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -void InitDefaults_flyteidl_2fplugins_2fwaitable_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto[1]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fplugins_2fwaitable_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fplugins_2fwaitable_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fplugins_2fwaitable_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, wf_exec_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, phase_), - PROTOBUF_FIELD_OFFSET(::flyteidl::plugins::Waitable, workflow_id_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::plugins::Waitable)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::plugins::_Waitable_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto = { - {}, AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto, "flyteidl/plugins/waitable.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fplugins_2fwaitable_2eproto::offsets, - file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto, 1, file_level_enum_descriptors_flyteidl_2fplugins_2fwaitable_2eproto, file_level_service_descriptors_flyteidl_2fplugins_2fwaitable_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fplugins_2fwaitable_2eproto[] = - "\n\037flyteidl/plugins/waitable.proto\022\020flyte" - "idl.plugins\032\035flyteidl/core/execution.pro" - "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" - "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" - "ore.WorkflowExecutionIdentifier\0225\n\005phase" - "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" - ".Phase\022\023\n\013workflow_id\030\003 \001(\tB\?Z=github.co" - "m/flyteorg/flyte/flyteidl/gen/pb-go/flyt" - "eidl/pluginsb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fplugins_2fwaitable_2eproto = { - false, InitDefaults_flyteidl_2fplugins_2fwaitable_2eproto, - descriptor_table_protodef_flyteidl_2fplugins_2fwaitable_2eproto, - "flyteidl/plugins/waitable.proto", &assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto, 340, -}; - -void AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_flyteidl_2fcore_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fplugins_2fwaitable_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fplugins_2fwaitable_2eproto = []() { AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto(); return true; }(); -namespace flyteidl { -namespace plugins { - -// =================================================================== - -void Waitable::InitAsDefaultInstance() { - ::flyteidl::plugins::_Waitable_default_instance_._instance.get_mutable()->wf_exec_id_ = const_cast< ::flyteidl::core::WorkflowExecutionIdentifier*>( - ::flyteidl::core::WorkflowExecutionIdentifier::internal_default_instance()); -} -class Waitable::HasBitSetters { - public: - static const ::flyteidl::core::WorkflowExecutionIdentifier& wf_exec_id(const Waitable* msg); -}; - -const ::flyteidl::core::WorkflowExecutionIdentifier& -Waitable::HasBitSetters::wf_exec_id(const Waitable* msg) { - return *msg->wf_exec_id_; -} -void Waitable::clear_wf_exec_id() { - if (GetArenaNoVirtual() == nullptr && wf_exec_id_ != nullptr) { - delete wf_exec_id_; - } - wf_exec_id_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int Waitable::kWfExecIdFieldNumber; -const int Waitable::kPhaseFieldNumber; -const int Waitable::kWorkflowIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -Waitable::Waitable() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.plugins.Waitable) -} -Waitable::Waitable(const Waitable& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.workflow_id().size() > 0) { - workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); - } - if (from.has_wf_exec_id()) { - wf_exec_id_ = new ::flyteidl::core::WorkflowExecutionIdentifier(*from.wf_exec_id_); - } else { - wf_exec_id_ = nullptr; - } - phase_ = from.phase_; - // @@protoc_insertion_point(copy_constructor:flyteidl.plugins.Waitable) -} - -void Waitable::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); - workflow_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&wf_exec_id_, 0, static_cast( - reinterpret_cast(&phase_) - - reinterpret_cast(&wf_exec_id_)) + sizeof(phase_)); -} - -Waitable::~Waitable() { - // @@protoc_insertion_point(destructor:flyteidl.plugins.Waitable) - SharedDtor(); -} - -void Waitable::SharedDtor() { - workflow_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete wf_exec_id_; -} - -void Waitable::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const Waitable& Waitable::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_Waitable_flyteidl_2fplugins_2fwaitable_2eproto.base); - return *internal_default_instance(); -} - - -void Waitable::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.plugins.Waitable) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && wf_exec_id_ != nullptr) { - delete wf_exec_id_; - } - wf_exec_id_ = nullptr; - phase_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* Waitable::_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.WorkflowExecutionIdentifier wf_exec_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::WorkflowExecutionIdentifier::_InternalParse; - object = msg->mutable_wf_exec_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; - } - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - case 2: { - if (static_cast<::google::protobuf::uint8>(tag) != 16) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_phase(static_cast<::flyteidl::core::WorkflowExecution_Phase>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // string workflow_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.plugins.Waitable.workflow_id"); - object = msg->mutable_workflow_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool Waitable::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.plugins.Waitable) - 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.WorkflowExecutionIdentifier wf_exec_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_wf_exec_id())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (16 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_phase(static_cast< ::flyteidl::core::WorkflowExecution_Phase >(value)); - } else { - goto handle_unusual; - } - break; - } - - // string workflow_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_workflow_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow_id().data(), static_cast(this->workflow_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.plugins.Waitable.workflow_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.plugins.Waitable) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.plugins.Waitable) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void Waitable::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.plugins.Waitable) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - if (this->has_wf_exec_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::wf_exec_id(this), output); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - if (this->phase() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->phase(), output); - } - - // string workflow_id = 3; - if (this->workflow_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow_id().data(), static_cast(this->workflow_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.Waitable.workflow_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->workflow_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.plugins.Waitable) -} - -::google::protobuf::uint8* Waitable::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.plugins.Waitable) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - if (this->has_wf_exec_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::wf_exec_id(this), target); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - if (this->phase() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->phase(), target); - } - - // string workflow_id = 3; - if (this->workflow_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->workflow_id().data(), static_cast(this->workflow_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.plugins.Waitable.workflow_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->workflow_id(), 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.plugins.Waitable) - return target; -} - -size_t Waitable::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.plugins.Waitable) - 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; - - // string workflow_id = 3; - if (this->workflow_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->workflow_id()); - } - - // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - if (this->has_wf_exec_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *wf_exec_id_); - } - - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - if (this->phase() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->phase()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void Waitable::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.plugins.Waitable) - GOOGLE_DCHECK_NE(&from, this); - const Waitable* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.plugins.Waitable) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.plugins.Waitable) - MergeFrom(*source); - } -} - -void Waitable::MergeFrom(const Waitable& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.plugins.Waitable) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.workflow_id().size() > 0) { - - workflow_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.workflow_id_); - } - if (from.has_wf_exec_id()) { - mutable_wf_exec_id()->::flyteidl::core::WorkflowExecutionIdentifier::MergeFrom(from.wf_exec_id()); - } - if (from.phase() != 0) { - set_phase(from.phase()); - } -} - -void Waitable::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.plugins.Waitable) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void Waitable::CopyFrom(const Waitable& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.plugins.Waitable) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool Waitable::IsInitialized() const { - return true; -} - -void Waitable::Swap(Waitable* other) { - if (other == this) return; - InternalSwap(other); -} -void Waitable::InternalSwap(Waitable* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - workflow_id_.Swap(&other->workflow_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(wf_exec_id_, other->wf_exec_id_); - swap(phase_, other->phase_); -} - -::google::protobuf::Metadata Waitable::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fplugins_2fwaitable_2eproto); - return ::file_level_metadata_flyteidl_2fplugins_2fwaitable_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::plugins::Waitable* Arena::CreateMaybeMessage< ::flyteidl::plugins::Waitable >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::plugins::Waitable >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h b/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h deleted file mode 100644 index 3820c3dcfa..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/plugins/waitable.pb.h +++ /dev/null @@ -1,340 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/waitable.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "flyteidl/core/execution.pb.h" -#include "flyteidl/core/identifier.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fplugins_2fwaitable_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fplugins_2fwaitable_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fplugins_2fwaitable_2eproto(); -namespace flyteidl { -namespace plugins { -class Waitable; -class WaitableDefaultTypeInternal; -extern WaitableDefaultTypeInternal _Waitable_default_instance_; -} // namespace plugins -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::plugins::Waitable* Arena::CreateMaybeMessage<::flyteidl::plugins::Waitable>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace plugins { - -// =================================================================== - -class Waitable final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.plugins.Waitable) */ { - public: - Waitable(); - virtual ~Waitable(); - - Waitable(const Waitable& from); - - inline Waitable& operator=(const Waitable& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Waitable(Waitable&& from) noexcept - : Waitable() { - *this = ::std::move(from); - } - - inline Waitable& operator=(Waitable&& 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 Waitable& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Waitable* internal_default_instance() { - return reinterpret_cast( - &_Waitable_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Waitable* other); - friend void swap(Waitable& a, Waitable& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Waitable* New() const final { - return CreateMaybeMessage(nullptr); - } - - Waitable* 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 Waitable& from); - void MergeFrom(const Waitable& 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(Waitable* 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 ------------------------------------------------------- - - // string workflow_id = 3; - void clear_workflow_id(); - static const int kWorkflowIdFieldNumber = 3; - const ::std::string& workflow_id() const; - void set_workflow_id(const ::std::string& value); - #if LANG_CXX11 - void set_workflow_id(::std::string&& value); - #endif - void set_workflow_id(const char* value); - void set_workflow_id(const char* value, size_t size); - ::std::string* mutable_workflow_id(); - ::std::string* release_workflow_id(); - void set_allocated_workflow_id(::std::string* workflow_id); - - // .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - bool has_wf_exec_id() const; - void clear_wf_exec_id(); - static const int kWfExecIdFieldNumber = 1; - const ::flyteidl::core::WorkflowExecutionIdentifier& wf_exec_id() const; - ::flyteidl::core::WorkflowExecutionIdentifier* release_wf_exec_id(); - ::flyteidl::core::WorkflowExecutionIdentifier* mutable_wf_exec_id(); - void set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id); - - // .flyteidl.core.WorkflowExecution.Phase phase = 2; - void clear_phase(); - static const int kPhaseFieldNumber = 2; - ::flyteidl::core::WorkflowExecution_Phase phase() const; - void set_phase(::flyteidl::core::WorkflowExecution_Phase value); - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr workflow_id_; - ::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id_; - int phase_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fplugins_2fwaitable_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Waitable - -// .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; -inline bool Waitable::has_wf_exec_id() const { - return this != internal_default_instance() && wf_exec_id_ != nullptr; -} -inline const ::flyteidl::core::WorkflowExecutionIdentifier& Waitable::wf_exec_id() const { - const ::flyteidl::core::WorkflowExecutionIdentifier* p = wf_exec_id_; - // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.wf_exec_id) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_WorkflowExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::release_wf_exec_id() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.wf_exec_id) - - ::flyteidl::core::WorkflowExecutionIdentifier* temp = wf_exec_id_; - wf_exec_id_ = nullptr; - return temp; -} -inline ::flyteidl::core::WorkflowExecutionIdentifier* Waitable::mutable_wf_exec_id() { - - if (wf_exec_id_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::WorkflowExecutionIdentifier>(GetArenaNoVirtual()); - wf_exec_id_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.wf_exec_id) - return wf_exec_id_; -} -inline void Waitable::set_allocated_wf_exec_id(::flyteidl::core::WorkflowExecutionIdentifier* wf_exec_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(wf_exec_id_); - } - if (wf_exec_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - wf_exec_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, wf_exec_id, submessage_arena); - } - - } else { - - } - wf_exec_id_ = wf_exec_id; - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.wf_exec_id) -} - -// .flyteidl.core.WorkflowExecution.Phase phase = 2; -inline void Waitable::clear_phase() { - phase_ = 0; -} -inline ::flyteidl::core::WorkflowExecution_Phase Waitable::phase() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.phase) - return static_cast< ::flyteidl::core::WorkflowExecution_Phase >(phase_); -} -inline void Waitable::set_phase(::flyteidl::core::WorkflowExecution_Phase value) { - - phase_ = value; - // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.phase) -} - -// string workflow_id = 3; -inline void Waitable::clear_workflow_id() { - workflow_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& Waitable::workflow_id() const { - // @@protoc_insertion_point(field_get:flyteidl.plugins.Waitable.workflow_id) - return workflow_id_.GetNoArena(); -} -inline void Waitable::set_workflow_id(const ::std::string& value) { - - workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.plugins.Waitable.workflow_id) -} -#if LANG_CXX11 -inline void Waitable::set_workflow_id(::std::string&& value) { - - workflow_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.plugins.Waitable.workflow_id) -} -#endif -inline void Waitable::set_workflow_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.plugins.Waitable.workflow_id) -} -inline void Waitable::set_workflow_id(const char* value, size_t size) { - - workflow_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.plugins.Waitable.workflow_id) -} -inline ::std::string* Waitable::mutable_workflow_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.plugins.Waitable.workflow_id) - return workflow_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* Waitable::release_workflow_id() { - // @@protoc_insertion_point(field_release:flyteidl.plugins.Waitable.workflow_id) - - return workflow_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void Waitable::set_allocated_workflow_id(::std::string* workflow_id) { - if (workflow_id != nullptr) { - - } else { - - } - workflow_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), workflow_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.plugins.Waitable.workflow_id) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace plugins -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fplugins_2fwaitable_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc deleted file mode 100644 index cf8c19b8a1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.cc +++ /dev/null @@ -1,2269 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/admin.proto - -#include "flyteidl/service/admin.pb.h" -#include "flyteidl/service/admin.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* AdminService_method_names[] = { - "/flyteidl.service.AdminService/CreateTask", - "/flyteidl.service.AdminService/GetTask", - "/flyteidl.service.AdminService/ListTaskIds", - "/flyteidl.service.AdminService/ListTasks", - "/flyteidl.service.AdminService/CreateWorkflow", - "/flyteidl.service.AdminService/GetWorkflow", - "/flyteidl.service.AdminService/ListWorkflowIds", - "/flyteidl.service.AdminService/ListWorkflows", - "/flyteidl.service.AdminService/CreateLaunchPlan", - "/flyteidl.service.AdminService/GetLaunchPlan", - "/flyteidl.service.AdminService/GetActiveLaunchPlan", - "/flyteidl.service.AdminService/ListActiveLaunchPlans", - "/flyteidl.service.AdminService/ListLaunchPlanIds", - "/flyteidl.service.AdminService/ListLaunchPlans", - "/flyteidl.service.AdminService/UpdateLaunchPlan", - "/flyteidl.service.AdminService/CreateExecution", - "/flyteidl.service.AdminService/RelaunchExecution", - "/flyteidl.service.AdminService/RecoverExecution", - "/flyteidl.service.AdminService/GetExecution", - "/flyteidl.service.AdminService/UpdateExecution", - "/flyteidl.service.AdminService/GetExecutionData", - "/flyteidl.service.AdminService/ListExecutions", - "/flyteidl.service.AdminService/TerminateExecution", - "/flyteidl.service.AdminService/GetNodeExecution", - "/flyteidl.service.AdminService/ListNodeExecutions", - "/flyteidl.service.AdminService/ListNodeExecutionsForTask", - "/flyteidl.service.AdminService/GetNodeExecutionData", - "/flyteidl.service.AdminService/RegisterProject", - "/flyteidl.service.AdminService/UpdateProject", - "/flyteidl.service.AdminService/ListProjects", - "/flyteidl.service.AdminService/CreateWorkflowEvent", - "/flyteidl.service.AdminService/CreateNodeEvent", - "/flyteidl.service.AdminService/CreateTaskEvent", - "/flyteidl.service.AdminService/GetTaskExecution", - "/flyteidl.service.AdminService/ListTaskExecutions", - "/flyteidl.service.AdminService/GetTaskExecutionData", - "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", - "/flyteidl.service.AdminService/GetProjectDomainAttributes", - "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", - "/flyteidl.service.AdminService/UpdateProjectAttributes", - "/flyteidl.service.AdminService/GetProjectAttributes", - "/flyteidl.service.AdminService/DeleteProjectAttributes", - "/flyteidl.service.AdminService/UpdateWorkflowAttributes", - "/flyteidl.service.AdminService/GetWorkflowAttributes", - "/flyteidl.service.AdminService/DeleteWorkflowAttributes", - "/flyteidl.service.AdminService/ListMatchableAttributes", - "/flyteidl.service.AdminService/ListNamedEntities", - "/flyteidl.service.AdminService/GetNamedEntity", - "/flyteidl.service.AdminService/UpdateNamedEntity", - "/flyteidl.service.AdminService/GetVersion", - "/flyteidl.service.AdminService/GetDescriptionEntity", - "/flyteidl.service.AdminService/ListDescriptionEntities", - "/flyteidl.service.AdminService/GetExecutionMetrics", -}; - -std::unique_ptr< AdminService::Stub> AdminService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< AdminService::Stub> stub(new AdminService::Stub(channel)); - return stub; -} - -AdminService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateTask_(AdminService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTask_(AdminService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListTaskIds_(AdminService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListTasks_(AdminService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateWorkflow_(AdminService_method_names[4], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetWorkflow_(AdminService_method_names[5], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListWorkflowIds_(AdminService_method_names[6], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListWorkflows_(AdminService_method_names[7], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateLaunchPlan_(AdminService_method_names[8], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetLaunchPlan_(AdminService_method_names[9], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetActiveLaunchPlan_(AdminService_method_names[10], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListActiveLaunchPlans_(AdminService_method_names[11], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListLaunchPlanIds_(AdminService_method_names[12], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListLaunchPlans_(AdminService_method_names[13], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateLaunchPlan_(AdminService_method_names[14], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateExecution_(AdminService_method_names[15], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RelaunchExecution_(AdminService_method_names[16], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RecoverExecution_(AdminService_method_names[17], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetExecution_(AdminService_method_names[18], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateExecution_(AdminService_method_names[19], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetExecutionData_(AdminService_method_names[20], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListExecutions_(AdminService_method_names[21], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_TerminateExecution_(AdminService_method_names[22], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNodeExecution_(AdminService_method_names[23], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListNodeExecutions_(AdminService_method_names[24], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListNodeExecutionsForTask_(AdminService_method_names[25], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNodeExecutionData_(AdminService_method_names[26], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_RegisterProject_(AdminService_method_names[27], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateProject_(AdminService_method_names[28], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListProjects_(AdminService_method_names[29], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateWorkflowEvent_(AdminService_method_names[30], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateNodeEvent_(AdminService_method_names[31], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateTaskEvent_(AdminService_method_names[32], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTaskExecution_(AdminService_method_names[33], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListTaskExecutions_(AdminService_method_names[34], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTaskExecutionData_(AdminService_method_names[35], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateProjectDomainAttributes_(AdminService_method_names[36], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProjectDomainAttributes_(AdminService_method_names[37], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteProjectDomainAttributes_(AdminService_method_names[38], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateProjectAttributes_(AdminService_method_names[39], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetProjectAttributes_(AdminService_method_names[40], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteProjectAttributes_(AdminService_method_names[41], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateWorkflowAttributes_(AdminService_method_names[42], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetWorkflowAttributes_(AdminService_method_names[43], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteWorkflowAttributes_(AdminService_method_names[44], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListMatchableAttributes_(AdminService_method_names[45], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListNamedEntities_(AdminService_method_names[46], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetNamedEntity_(AdminService_method_names[47], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_UpdateNamedEntity_(AdminService_method_names[48], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetVersion_(AdminService_method_names[49], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetDescriptionEntity_(AdminService_method_names[50], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListDescriptionEntities_(AdminService_method_names[51], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetExecutionMetrics_(AdminService_method_names[52], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status AdminService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AdminService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AdminService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Task>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskIds_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskIds_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListTaskIds_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTasks_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTasks_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AdminService::Stub::PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskList>::Create(channel_.get(), cq, rpcmethod_ListTasks_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflow_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflow_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflow_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWorkflow_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflow_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AdminService::Stub::PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Workflow>::Create(channel_.get(), cq, rpcmethod_GetWorkflow_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflowIds_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflowIds_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListWorkflowIds_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListWorkflows_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListWorkflows_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AdminService::Stub::PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowList>::Create(channel_.get(), cq, rpcmethod_ListWorkflows_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateLaunchPlan_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateLaunchPlan_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AdminService::Stub::PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateLaunchPlan_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetLaunchPlan_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetLaunchPlan_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetLaunchPlan_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetActiveLaunchPlan_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetActiveLaunchPlan_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetActiveLaunchPlan_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AdminService::Stub::PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlan>::Create(channel_.get(), cq, rpcmethod_GetActiveLaunchPlan_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListActiveLaunchPlans_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListActiveLaunchPlans_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListActiveLaunchPlans_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListActiveLaunchPlans_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlanIds_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlanIds_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AdminService::Stub::PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityIdentifierList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlanIds_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListLaunchPlans_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListLaunchPlans_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AdminService::Stub::PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanList>::Create(channel_.get(), cq, rpcmethod_ListLaunchPlans_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateLaunchPlan_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateLaunchPlan_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::LaunchPlanUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateLaunchPlan_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RelaunchExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RelaunchExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RelaunchExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RecoverExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RecoverExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RecoverExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AdminService::Stub::PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionCreateResponse>::Create(channel_.get(), cq, rpcmethod_RecoverExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AdminService::Stub::PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Execution>::Create(channel_.get(), cq, rpcmethod_GetExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AdminService::Stub::AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecutionData_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionData_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionData_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListExecutions_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListExecutions_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AdminService::Stub::PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionList>::Create(channel_.get(), cq, rpcmethod_ListExecutions_, context, request, false); -} - -::grpc::Status AdminService::Stub::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_TerminateExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_TerminateExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AdminService::Stub::PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ExecutionTerminateResponse>::Create(channel_.get(), cq, rpcmethod_TerminateExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AdminService::Stub::PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecution>::Create(channel_.get(), cq, rpcmethod_GetNodeExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutions_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutions_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutions_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNodeExecutionsForTask_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNodeExecutionsForTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AdminService::Stub::PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionList>::Create(channel_.get(), cq, rpcmethod_ListNodeExecutionsForTask_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNodeExecutionData_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNodeExecutionData_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetNodeExecutionData_, context, request, false); -} - -::grpc::Status AdminService::Stub::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_RegisterProject_, context, request, response); -} - -void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_RegisterProject_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AdminService::Stub::PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectRegisterResponse>::Create(channel_.get(), cq, rpcmethod_RegisterProject_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProject_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProject_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AdminService::Stub::AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProject_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProject_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListProjects_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListProjects_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AdminService::Stub::PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Projects>::Create(channel_.get(), cq, rpcmethod_ListProjects_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateWorkflowEvent_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateWorkflowEvent_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateWorkflowEvent_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateNodeEvent_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateNodeEvent_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NodeExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateNodeEvent_, context, request, false); -} - -::grpc::Status AdminService::Stub::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTaskEvent_, context, request, response); -} - -void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTaskEvent_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AdminService::Stub::PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionEventResponse>::Create(channel_.get(), cq, rpcmethod_CreateTaskEvent_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecution_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecution_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AdminService::Stub::PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecution>::Create(channel_.get(), cq, rpcmethod_GetTaskExecution_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListTaskExecutions_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListTaskExecutions_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AdminService::Stub::PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionList>::Create(channel_.get(), cq, rpcmethod_ListTaskExecutions_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTaskExecutionData_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTaskExecutionData_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AdminService::Stub::PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::TaskExecutionGetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetTaskExecutionData_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProjectDomainAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectDomainAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectDomainAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectDomainAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProjectDomainAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectDomainAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AdminService::Stub::AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectDomainAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectDomainAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteProjectDomainAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectDomainAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectDomainAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectDomainAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateProjectAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateProjectAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateProjectAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetProjectAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetProjectAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AdminService::Stub::AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetProjectAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteProjectAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteProjectAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ProjectAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteProjectAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateWorkflowAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateWorkflowAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AdminService::Stub::AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateWorkflowAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateWorkflowAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetWorkflowAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetWorkflowAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AdminService::Stub::AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetWorkflowAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AdminService::Stub::PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesGetResponse>::Create(channel_.get(), cq, rpcmethod_GetWorkflowAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteWorkflowAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteWorkflowAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AdminService::Stub::AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteWorkflowAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AdminService::Stub::PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowAttributesDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteWorkflowAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListMatchableAttributes_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListMatchableAttributes_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AdminService::Stub::AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListMatchableAttributesResponse>::Create(channel_.get(), cq, rpcmethod_ListMatchableAttributes_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AdminService::Stub::PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListMatchableAttributesResponse>::Create(channel_.get(), cq, rpcmethod_ListMatchableAttributes_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListNamedEntities_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListNamedEntities_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AdminService::Stub::AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityList>::Create(channel_.get(), cq, rpcmethod_ListNamedEntities_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AdminService::Stub::PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityList>::Create(channel_.get(), cq, rpcmethod_ListNamedEntities_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetNamedEntity_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetNamedEntity_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AdminService::Stub::AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntity>::Create(channel_.get(), cq, rpcmethod_GetNamedEntity_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AdminService::Stub::PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntity>::Create(channel_.get(), cq, rpcmethod_GetNamedEntity_, context, request, false); -} - -::grpc::Status AdminService::Stub::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UpdateNamedEntity_, context, request, response); -} - -void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UpdateNamedEntity_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AdminService::Stub::AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateNamedEntity_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AdminService::Stub::PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::NamedEntityUpdateResponse>::Create(channel_.get(), cq, rpcmethod_UpdateNamedEntity_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetVersion_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetVersion_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AdminService::Stub::AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AdminService::Stub::PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetVersionResponse>::Create(channel_.get(), cq, rpcmethod_GetVersion_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetDescriptionEntity_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetDescriptionEntity_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AdminService::Stub::AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntity>::Create(channel_.get(), cq, rpcmethod_GetDescriptionEntity_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AdminService::Stub::PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntity>::Create(channel_.get(), cq, rpcmethod_GetDescriptionEntity_, context, request, false); -} - -::grpc::Status AdminService::Stub::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListDescriptionEntities_, context, request, response); -} - -void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListDescriptionEntities_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AdminService::Stub::AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntityList>::Create(channel_.get(), cq, rpcmethod_ListDescriptionEntities_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AdminService::Stub::PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DescriptionEntityList>::Create(channel_.get(), cq, rpcmethod_ListDescriptionEntities_, context, request, false); -} - -::grpc::Status AdminService::Stub::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetExecutionMetrics_, context, request, response); -} - -void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, std::move(f)); -} - -void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, reactor); -} - -void AdminService::Stub::experimental_async::GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetExecutionMetrics_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AdminService::Stub::AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionMetrics_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AdminService::Stub::PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>::Create(channel_.get(), cq, rpcmethod_GetExecutionMetrics_, context, request, false); -} - -AdminService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>( - std::mem_fn(&AdminService::Service::CreateTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>( - std::mem_fn(&AdminService::Service::GetTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - std::mem_fn(&AdminService::Service::ListTaskIds), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>( - std::mem_fn(&AdminService::Service::ListTasks), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[4], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>( - std::mem_fn(&AdminService::Service::CreateWorkflow), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[5], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>( - std::mem_fn(&AdminService::Service::GetWorkflow), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[6], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - std::mem_fn(&AdminService::Service::ListWorkflowIds), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[7], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>( - std::mem_fn(&AdminService::Service::ListWorkflows), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[8], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>( - std::mem_fn(&AdminService::Service::CreateLaunchPlan), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[9], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>( - std::mem_fn(&AdminService::Service::GetLaunchPlan), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[10], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>( - std::mem_fn(&AdminService::Service::GetActiveLaunchPlan), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[11], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>( - std::mem_fn(&AdminService::Service::ListActiveLaunchPlans), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[12], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - std::mem_fn(&AdminService::Service::ListLaunchPlanIds), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[13], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>( - std::mem_fn(&AdminService::Service::ListLaunchPlans), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[14], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateLaunchPlan), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[15], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>( - std::mem_fn(&AdminService::Service::CreateExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[16], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>( - std::mem_fn(&AdminService::Service::RelaunchExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[17], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>( - std::mem_fn(&AdminService::Service::RecoverExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[18], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>( - std::mem_fn(&AdminService::Service::GetExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[19], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[20], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>( - std::mem_fn(&AdminService::Service::GetExecutionData), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[21], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>( - std::mem_fn(&AdminService::Service::ListExecutions), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[22], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>( - std::mem_fn(&AdminService::Service::TerminateExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[23], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>( - std::mem_fn(&AdminService::Service::GetNodeExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[24], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>( - std::mem_fn(&AdminService::Service::ListNodeExecutions), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[25], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>( - std::mem_fn(&AdminService::Service::ListNodeExecutionsForTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[26], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>( - std::mem_fn(&AdminService::Service::GetNodeExecutionData), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[27], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>( - std::mem_fn(&AdminService::Service::RegisterProject), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[28], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateProject), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[29], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>( - std::mem_fn(&AdminService::Service::ListProjects), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[30], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>( - std::mem_fn(&AdminService::Service::CreateWorkflowEvent), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[31], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>( - std::mem_fn(&AdminService::Service::CreateNodeEvent), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[32], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>( - std::mem_fn(&AdminService::Service::CreateTaskEvent), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[33], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>( - std::mem_fn(&AdminService::Service::GetTaskExecution), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[34], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>( - std::mem_fn(&AdminService::Service::ListTaskExecutions), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[35], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>( - std::mem_fn(&AdminService::Service::GetTaskExecutionData), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[36], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateProjectDomainAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[37], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>( - std::mem_fn(&AdminService::Service::GetProjectDomainAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[38], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>( - std::mem_fn(&AdminService::Service::DeleteProjectDomainAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[39], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateProjectAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[40], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>( - std::mem_fn(&AdminService::Service::GetProjectAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[41], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>( - std::mem_fn(&AdminService::Service::DeleteProjectAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[42], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateWorkflowAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[43], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>( - std::mem_fn(&AdminService::Service::GetWorkflowAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[44], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>( - std::mem_fn(&AdminService::Service::DeleteWorkflowAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[45], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>( - std::mem_fn(&AdminService::Service::ListMatchableAttributes), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[46], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>( - std::mem_fn(&AdminService::Service::ListNamedEntities), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[47], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>( - std::mem_fn(&AdminService::Service::GetNamedEntity), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[48], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>( - std::mem_fn(&AdminService::Service::UpdateNamedEntity), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[49], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>( - std::mem_fn(&AdminService::Service::GetVersion), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[50], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>( - std::mem_fn(&AdminService::Service::GetDescriptionEntity), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[51], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>( - std::mem_fn(&AdminService::Service::ListDescriptionEntities), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AdminService_method_names[52], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AdminService::Service, ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>( - std::mem_fn(&AdminService::Service::GetExecutionMetrics), this))); -} - -AdminService::Service::~Service() { -} - -::grpc::Status AdminService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AdminService::Service::GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h deleted file mode 100644 index 77f3dc1487..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/admin.grpc.pb.h +++ /dev/null @@ -1,8803 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/admin.proto -#ifndef GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED - -#include "flyteidl/service/admin.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// The following defines an RPC service that is also served over HTTP via grpc-gateway. -// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go -class AdminService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.AdminService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - virtual ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - virtual ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); - } - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - virtual ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); - } - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - virtual ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - virtual ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - virtual ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); - } - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - virtual ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); - } - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - virtual ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); - } - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> AsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(AsyncGetActiveLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetActiveLaunchPlanRaw(context, request, cq)); - } - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> AsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(AsyncListActiveLaunchPlansRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListActiveLaunchPlansRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - virtual ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - virtual ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); - } - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); - } - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - virtual ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); - } - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - virtual ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); - } - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - virtual ::grpc::Status RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRecoverExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRecoverExecutionRaw(context, request, cq)); - } - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); - } - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>> AsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>>(AsyncUpdateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>> PrepareAsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>>(PrepareAsyncUpdateExecutionRaw(context, request, cq)); - } - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); - } - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); - } - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); - } - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); - } - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - virtual ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); - } - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - virtual ::grpc::Status UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>> AsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>>(AsyncUpdateProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>> PrepareAsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>>(PrepareAsyncUpdateProjectRaw(context, request, cq)); - } - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - virtual ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); - } - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - virtual ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); - } - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - virtual ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); - } - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - virtual ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); - } - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); - } - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); - } - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); - } - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> AsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(AsyncUpdateProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> PrepareAsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(PrepareAsyncUpdateProjectDomainAttributesRaw(context, request, cq)); - } - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> AsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(AsyncGetProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> PrepareAsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(PrepareAsyncGetProjectDomainAttributesRaw(context, request, cq)); - } - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> AsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(AsyncDeleteProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> PrepareAsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(PrepareAsyncDeleteProjectDomainAttributesRaw(context, request, cq)); - } - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - virtual ::grpc::Status UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>> AsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(AsyncUpdateProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>> PrepareAsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(PrepareAsyncUpdateProjectAttributesRaw(context, request, cq)); - } - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>> AsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>>(AsyncGetProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>> PrepareAsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>>(PrepareAsyncGetProjectAttributesRaw(context, request, cq)); - } - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>> AsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(AsyncDeleteProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>> PrepareAsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(PrepareAsyncDeleteProjectAttributesRaw(context, request, cq)); - } - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> AsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(AsyncUpdateWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> PrepareAsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(PrepareAsyncUpdateWorkflowAttributesRaw(context, request, cq)); - } - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>> AsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>>(AsyncGetWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>> PrepareAsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>>(PrepareAsyncGetWorkflowAttributesRaw(context, request, cq)); - } - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> AsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(AsyncDeleteWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> PrepareAsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(PrepareAsyncDeleteWorkflowAttributesRaw(context, request, cq)); - } - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - virtual ::grpc::Status ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>> AsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>>(AsyncListMatchableAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>> PrepareAsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>>(PrepareAsyncListMatchableAttributesRaw(context, request, cq)); - } - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - virtual ::grpc::Status ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>> AsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>>(AsyncListNamedEntitiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>> PrepareAsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>>(PrepareAsyncListNamedEntitiesRaw(context, request, cq)); - } - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual ::grpc::Status GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>> AsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>>(AsyncGetNamedEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>> PrepareAsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>>(PrepareAsyncGetNamedEntityRaw(context, request, cq)); - } - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual ::grpc::Status UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>> AsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>>(AsyncUpdateNamedEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>> PrepareAsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>>(PrepareAsyncUpdateNamedEntityRaw(context, request, cq)); - } - virtual ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); - } - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - virtual ::grpc::Status GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>> AsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>>(AsyncGetDescriptionEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>> PrepareAsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>>(PrepareAsyncGetDescriptionEntityRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - virtual ::grpc::Status ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>> AsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>>(AsyncListDescriptionEntitiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>> PrepareAsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>>(PrepareAsyncListDescriptionEntitiesRaw(context, request, cq)); - } - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> AsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(AsyncGetExecutionMetricsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> PrepareAsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(PrepareAsyncGetExecutionMetricsRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - virtual void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - virtual void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function) = 0; - virtual void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function) = 0; - virtual void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - virtual void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) = 0; - virtual void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) = 0; - virtual void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - virtual void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function) = 0; - virtual void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function) = 0; - virtual void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - virtual void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function) = 0; - virtual void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function) = 0; - virtual void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) = 0; - virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) = 0; - virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; - virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; - virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; - virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) = 0; - virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; - virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; - virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) = 0; - virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; - virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) = 0; - virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) = 0; - virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) = 0; - virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - virtual void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - virtual void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - virtual void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) = 0; - virtual void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - virtual void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function) = 0; - virtual void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function) = 0; - virtual void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - virtual void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) = 0; - virtual void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) = 0; - virtual void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - virtual void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) = 0; - virtual void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) = 0; - virtual void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - virtual void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function) = 0; - virtual void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function) = 0; - virtual void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - virtual void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) = 0; - virtual void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) = 0; - virtual void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function) = 0; - virtual void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function) = 0; - virtual void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; - virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; - virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; - virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) = 0; - virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) = 0; - virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) = 0; - virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - virtual void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) = 0; - virtual void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) = 0; - virtual void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - virtual void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) = 0; - virtual void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) = 0; - virtual void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - virtual void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function) = 0; - virtual void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function) = 0; - virtual void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) = 0; - virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) = 0; - virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) = 0; - virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) = 0; - virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) = 0; - virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) = 0; - virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function) = 0; - virtual void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function) = 0; - virtual void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function) = 0; - virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function) = 0; - virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) = 0; - virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) = 0; - virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) = 0; - virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) = 0; - virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) = 0; - virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) = 0; - virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) = 0; - virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) = 0; - virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) = 0; - virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) = 0; - virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) = 0; - virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) = 0; - virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - virtual void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function) = 0; - virtual void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function) = 0; - virtual void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function) = 0; - virtual void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function) = 0; - virtual void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) = 0; - virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) = 0; - virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function) = 0; - virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function) = 0; - virtual void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function) = 0; - virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function) = 0; - virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) = 0; - virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) = 0; - virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) = 0; - virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) = 0; - virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>* AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionUpdateResponse>* PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>* AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectUpdateResponse>* PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesUpdateResponse>* PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>* AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesGetResponse>* PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ProjectAttributesDeleteResponse>* PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>* AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesGetResponse>* PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>* AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListMatchableAttributesResponse>* PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>* AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityList>* PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>* AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntity>* PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>* AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::NamedEntityUpdateResponse>* PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>* AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntity>* PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>* AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DescriptionEntityList>* PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::flyteidl::admin::TaskCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Task* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - ::grpc::Status ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListTaskIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListTaskIdsRaw(context, request, cq)); - } - ::grpc::Status ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::TaskList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> AsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(AsyncListTasksRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>> PrepareAsyncListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>>(PrepareAsyncListTasksRaw(context, request, cq)); - } - ::grpc::Status CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::flyteidl::admin::WorkflowCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> AsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(AsyncCreateWorkflowRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>> PrepareAsyncCreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>>(PrepareAsyncCreateWorkflowRaw(context, request, cq)); - } - ::grpc::Status GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::Workflow* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> AsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(AsyncGetWorkflowRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>> PrepareAsyncGetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>>(PrepareAsyncGetWorkflowRaw(context, request, cq)); - } - ::grpc::Status ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListWorkflowIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListWorkflowIdsRaw(context, request, cq)); - } - ::grpc::Status ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::WorkflowList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> AsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(AsyncListWorkflowsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>> PrepareAsyncListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>>(PrepareAsyncListWorkflowsRaw(context, request, cq)); - } - ::grpc::Status CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> AsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(AsyncCreateLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>> PrepareAsyncCreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>>(PrepareAsyncCreateLaunchPlanRaw(context, request, cq)); - } - ::grpc::Status GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::LaunchPlan* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> AsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(AsyncGetLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetLaunchPlanRaw(context, request, cq)); - } - ::grpc::Status GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::flyteidl::admin::LaunchPlan* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> AsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(AsyncGetActiveLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>> PrepareAsyncGetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>>(PrepareAsyncGetActiveLaunchPlanRaw(context, request, cq)); - } - ::grpc::Status ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::flyteidl::admin::LaunchPlanList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> AsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(AsyncListActiveLaunchPlansRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListActiveLaunchPlansRaw(context, request, cq)); - } - ::grpc::Status ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::flyteidl::admin::NamedEntityIdentifierList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> AsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(AsyncListLaunchPlanIdsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>> PrepareAsyncListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>>(PrepareAsyncListLaunchPlanIdsRaw(context, request, cq)); - } - ::grpc::Status ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::LaunchPlanList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> AsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(AsyncListLaunchPlansRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>> PrepareAsyncListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>>(PrepareAsyncListLaunchPlansRaw(context, request, cq)); - } - ::grpc::Status UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> AsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(AsyncUpdateLaunchPlanRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>> PrepareAsyncUpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>>(PrepareAsyncUpdateLaunchPlanRaw(context, request, cq)); - } - ::grpc::Status CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncCreateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncCreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncCreateExecutionRaw(context, request, cq)); - } - ::grpc::Status RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRelaunchExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRelaunchExecutionRaw(context, request, cq)); - } - ::grpc::Status RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::flyteidl::admin::ExecutionCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> AsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(AsyncRecoverExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>> PrepareAsyncRecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>>(PrepareAsyncRecoverExecutionRaw(context, request, cq)); - } - ::grpc::Status GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::flyteidl::admin::Execution* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> AsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(AsyncGetExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>> PrepareAsyncGetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>>(PrepareAsyncGetExecutionRaw(context, request, cq)); - } - ::grpc::Status UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::flyteidl::admin::ExecutionUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>> AsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>>(AsyncUpdateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>> PrepareAsyncUpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>>(PrepareAsyncUpdateExecutionRaw(context, request, cq)); - } - ::grpc::Status GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> AsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(AsyncGetExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>> PrepareAsyncGetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>>(PrepareAsyncGetExecutionDataRaw(context, request, cq)); - } - ::grpc::Status ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::flyteidl::admin::ExecutionList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> AsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(AsyncListExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>> PrepareAsyncListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>>(PrepareAsyncListExecutionsRaw(context, request, cq)); - } - ::grpc::Status TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::flyteidl::admin::ExecutionTerminateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> AsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(AsyncTerminateExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>> PrepareAsyncTerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>>(PrepareAsyncTerminateExecutionRaw(context, request, cq)); - } - ::grpc::Status GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::flyteidl::admin::NodeExecution* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> AsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(AsyncGetNodeExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>> PrepareAsyncGetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>>(PrepareAsyncGetNodeExecutionRaw(context, request, cq)); - } - ::grpc::Status ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsRaw(context, request, cq)); - } - ::grpc::Status ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::flyteidl::admin::NodeExecutionList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> AsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(AsyncListNodeExecutionsForTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>> PrepareAsyncListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>>(PrepareAsyncListNodeExecutionsForTaskRaw(context, request, cq)); - } - ::grpc::Status GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> AsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(AsyncGetNodeExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>> PrepareAsyncGetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>>(PrepareAsyncGetNodeExecutionDataRaw(context, request, cq)); - } - ::grpc::Status RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::flyteidl::admin::ProjectRegisterResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> AsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(AsyncRegisterProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>> PrepareAsyncRegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>>(PrepareAsyncRegisterProjectRaw(context, request, cq)); - } - ::grpc::Status UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::flyteidl::admin::ProjectUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>> AsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>>(AsyncUpdateProjectRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>> PrepareAsyncUpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>>(PrepareAsyncUpdateProjectRaw(context, request, cq)); - } - ::grpc::Status ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::flyteidl::admin::Projects* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> AsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(AsyncListProjectsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>> PrepareAsyncListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>>(PrepareAsyncListProjectsRaw(context, request, cq)); - } - ::grpc::Status CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> AsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(AsyncCreateWorkflowEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>> PrepareAsyncCreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>>(PrepareAsyncCreateWorkflowEventRaw(context, request, cq)); - } - ::grpc::Status CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::flyteidl::admin::NodeExecutionEventResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> AsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(AsyncCreateNodeEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>> PrepareAsyncCreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>>(PrepareAsyncCreateNodeEventRaw(context, request, cq)); - } - ::grpc::Status CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::flyteidl::admin::TaskExecutionEventResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> AsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(AsyncCreateTaskEventRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>> PrepareAsyncCreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>>(PrepareAsyncCreateTaskEventRaw(context, request, cq)); - } - ::grpc::Status GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::flyteidl::admin::TaskExecution* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> AsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(AsyncGetTaskExecutionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>> PrepareAsyncGetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>>(PrepareAsyncGetTaskExecutionRaw(context, request, cq)); - } - ::grpc::Status ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::flyteidl::admin::TaskExecutionList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> AsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(AsyncListTaskExecutionsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>> PrepareAsyncListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>>(PrepareAsyncListTaskExecutionsRaw(context, request, cq)); - } - ::grpc::Status GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> AsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(AsyncGetTaskExecutionDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>> PrepareAsyncGetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>>(PrepareAsyncGetTaskExecutionDataRaw(context, request, cq)); - } - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> AsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(AsyncUpdateProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>> PrepareAsyncUpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>>(PrepareAsyncUpdateProjectDomainAttributesRaw(context, request, cq)); - } - ::grpc::Status GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> AsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(AsyncGetProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>> PrepareAsyncGetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>>(PrepareAsyncGetProjectDomainAttributesRaw(context, request, cq)); - } - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> AsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(AsyncDeleteProjectDomainAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>> PrepareAsyncDeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>>(PrepareAsyncDeleteProjectDomainAttributesRaw(context, request, cq)); - } - ::grpc::Status UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>> AsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(AsyncUpdateProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>> PrepareAsyncUpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>>(PrepareAsyncUpdateProjectAttributesRaw(context, request, cq)); - } - ::grpc::Status GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>> AsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>>(AsyncGetProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>> PrepareAsyncGetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>>(PrepareAsyncGetProjectAttributesRaw(context, request, cq)); - } - ::grpc::Status DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>> AsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(AsyncDeleteProjectAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>> PrepareAsyncDeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>>(PrepareAsyncDeleteProjectAttributesRaw(context, request, cq)); - } - ::grpc::Status UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> AsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(AsyncUpdateWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>> PrepareAsyncUpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>>(PrepareAsyncUpdateWorkflowAttributesRaw(context, request, cq)); - } - ::grpc::Status GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>> AsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>>(AsyncGetWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>> PrepareAsyncGetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>>(PrepareAsyncGetWorkflowAttributesRaw(context, request, cq)); - } - ::grpc::Status DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> AsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(AsyncDeleteWorkflowAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>> PrepareAsyncDeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>>(PrepareAsyncDeleteWorkflowAttributesRaw(context, request, cq)); - } - ::grpc::Status ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>> AsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>>(AsyncListMatchableAttributesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>> PrepareAsyncListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>>(PrepareAsyncListMatchableAttributesRaw(context, request, cq)); - } - ::grpc::Status ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::flyteidl::admin::NamedEntityList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>> AsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>>(AsyncListNamedEntitiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>> PrepareAsyncListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>>(PrepareAsyncListNamedEntitiesRaw(context, request, cq)); - } - ::grpc::Status GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::flyteidl::admin::NamedEntity* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>> AsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>>(AsyncGetNamedEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>> PrepareAsyncGetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>>(PrepareAsyncGetNamedEntityRaw(context, request, cq)); - } - ::grpc::Status UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>> AsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>>(AsyncUpdateNamedEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>> PrepareAsyncUpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>>(PrepareAsyncUpdateNamedEntityRaw(context, request, cq)); - } - ::grpc::Status GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::flyteidl::admin::GetVersionResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>> AsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>>(AsyncGetVersionRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>> PrepareAsyncGetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>>(PrepareAsyncGetVersionRaw(context, request, cq)); - } - ::grpc::Status GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::flyteidl::admin::DescriptionEntity* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>> AsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>>(AsyncGetDescriptionEntityRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>> PrepareAsyncGetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>>(PrepareAsyncGetDescriptionEntityRaw(context, request, cq)); - } - ::grpc::Status ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::flyteidl::admin::DescriptionEntityList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>> AsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>>(AsyncListDescriptionEntitiesRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>> PrepareAsyncListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>>(PrepareAsyncListDescriptionEntitiesRaw(context, request, cq)); - } - ::grpc::Status GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> AsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(AsyncGetExecutionMetricsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>> PrepareAsyncGetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>>(PrepareAsyncGetExecutionMetricsRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListTaskIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTaskIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, std::function) override; - void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, std::function) override; - void ListTasks(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTasks(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) override; - void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, std::function) override; - void CreateWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, std::function) override; - void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, std::function) override; - void GetWorkflow(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetWorkflow(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListWorkflowIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListWorkflowIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, std::function) override; - void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, std::function) override; - void ListWorkflows(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListWorkflows(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) override; - void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, std::function) override; - void CreateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; - void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; - void GetLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; - void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, std::function) override; - void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetActiveLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; - void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; - void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListActiveLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, std::function) override; - void ListLaunchPlanIds(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListLaunchPlanIds(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; - void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, std::function) override; - void ListLaunchPlans(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListLaunchPlans(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) override; - void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, std::function) override; - void UpdateLaunchPlan(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateLaunchPlan(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void CreateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void RelaunchExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RelaunchExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, std::function) override; - void RecoverExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RecoverExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, std::function) override; - void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, std::function) override; - void GetExecution(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) override; - void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, std::function) override; - void UpdateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) override; - void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, std::function) override; - void GetExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, std::function) override; - void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, std::function) override; - void ListExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) override; - void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, std::function) override; - void TerminateExecution(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void TerminateExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, std::function) override; - void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, std::function) override; - void GetNodeExecution(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNodeExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; - void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; - void ListNodeExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNodeExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; - void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, std::function) override; - void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNodeExecutionsForTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) override; - void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, std::function) override; - void GetNodeExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNodeExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) override; - void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, std::function) override; - void RegisterProject(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void RegisterProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) override; - void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, std::function) override; - void UpdateProject(::grpc::ClientContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProject(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, std::function) override; - void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, std::function) override; - void ListProjects(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListProjects(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) override; - void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, std::function) override; - void CreateWorkflowEvent(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateWorkflowEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) override; - void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, std::function) override; - void CreateNodeEvent(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateNodeEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) override; - void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, std::function) override; - void CreateTaskEvent(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTaskEvent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, std::function) override; - void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, std::function) override; - void GetTaskExecution(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTaskExecution(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, std::function) override; - void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, std::function) override; - void ListTaskExecutions(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListTaskExecutions(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) override; - void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, std::function) override; - void GetTaskExecutionData(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTaskExecutionData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) override; - void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, std::function) override; - void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) override; - void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, std::function) override; - void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) override; - void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, std::function) override; - void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteProjectDomainAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) override; - void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, std::function) override; - void UpdateProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) override; - void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, std::function) override; - void GetProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) override; - void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, std::function) override; - void DeleteProjectAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteProjectAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) override; - void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, std::function) override; - void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) override; - void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, std::function) override; - void GetWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) override; - void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, std::function) override; - void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteWorkflowAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) override; - void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, std::function) override; - void ListMatchableAttributes(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListMatchableAttributes(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, std::function) override; - void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, std::function) override; - void ListNamedEntities(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListNamedEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, std::function) override; - void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, std::function) override; - void GetNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) override; - void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, std::function) override; - void UpdateNamedEntity(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UpdateNamedEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, std::function) override; - void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, std::function) override; - void GetVersion(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetVersion(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, std::function) override; - void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, std::function) override; - void GetDescriptionEntity(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetDescriptionEntity(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) override; - void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, std::function) override; - void ListDescriptionEntities(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListDescriptionEntities(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) override; - void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, std::function) override; - void GetExecutionMetrics(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetExecutionMetrics(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Task>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListTaskIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* AsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskList>* PrepareAsyncListTasksRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* AsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowCreateResponse>* PrepareAsyncCreateWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* AsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Workflow>* PrepareAsyncGetWorkflowRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListWorkflowIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* AsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowList>* PrepareAsyncListWorkflowsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* AsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanCreateResponse>* PrepareAsyncCreateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* AsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlan>* PrepareAsyncGetActiveLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListActiveLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* AsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityIdentifierList>* PrepareAsyncListLaunchPlanIdsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* AsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanList>* PrepareAsyncListLaunchPlansRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* AsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::LaunchPlanUpdateResponse>* PrepareAsyncUpdateLaunchPlanRaw(::grpc::ClientContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncCreateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRelaunchExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* AsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionCreateResponse>* PrepareAsyncRecoverExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionRecoverRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* AsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Execution>* PrepareAsyncGetExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* AsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionUpdateResponse>* PrepareAsyncUpdateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* AsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* PrepareAsyncGetExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* AsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionList>* PrepareAsyncListExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ResourceListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* AsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ExecutionTerminateResponse>* PrepareAsyncTerminateExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ExecutionTerminateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* AsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecution>* PrepareAsyncGetNodeExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* AsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionList>* PrepareAsyncListNodeExecutionsForTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* AsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionGetDataResponse>* PrepareAsyncGetNodeExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* AsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectRegisterResponse>* PrepareAsyncRegisterProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectRegisterRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* AsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectUpdateResponse>* PrepareAsyncUpdateProjectRaw(::grpc::ClientContext* context, const ::flyteidl::admin::Project& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* AsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Projects>* PrepareAsyncListProjectsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* AsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionEventResponse>* PrepareAsyncCreateWorkflowEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* AsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NodeExecutionEventResponse>* PrepareAsyncCreateNodeEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NodeExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* AsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionEventResponse>* PrepareAsyncCreateTaskEventRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionEventRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* AsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecution>* PrepareAsyncGetTaskExecutionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* AsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionList>* PrepareAsyncListTaskExecutionsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* AsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::TaskExecutionGetDataResponse>* PrepareAsyncGetTaskExecutionDataRaw(::grpc::ClientContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* AsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* PrepareAsyncUpdateProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* AsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* PrepareAsyncGetProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* AsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* PrepareAsyncDeleteProjectDomainAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* AsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesUpdateResponse>* PrepareAsyncUpdateProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* AsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesGetResponse>* PrepareAsyncGetProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* AsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ProjectAttributesDeleteResponse>* PrepareAsyncDeleteProjectAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* AsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* PrepareAsyncUpdateWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* AsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesGetResponse>* PrepareAsyncGetWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* AsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* PrepareAsyncDeleteWorkflowAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* AsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListMatchableAttributesResponse>* PrepareAsyncListMatchableAttributesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* AsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityList>* PrepareAsyncListNamedEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* AsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntity>* PrepareAsyncGetNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* AsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::NamedEntityUpdateResponse>* PrepareAsyncUpdateNamedEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* AsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetVersionResponse>* PrepareAsyncGetVersionRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetVersionRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* AsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntity>* PrepareAsyncGetDescriptionEntityRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ObjectGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* AsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DescriptionEntityList>* PrepareAsyncListDescriptionEntitiesRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DescriptionEntityListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* AsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* PrepareAsyncGetExecutionMetricsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; - const ::grpc::internal::RpcMethod rpcmethod_GetTask_; - const ::grpc::internal::RpcMethod rpcmethod_ListTaskIds_; - const ::grpc::internal::RpcMethod rpcmethod_ListTasks_; - const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflow_; - const ::grpc::internal::RpcMethod rpcmethod_GetWorkflow_; - const ::grpc::internal::RpcMethod rpcmethod_ListWorkflowIds_; - const ::grpc::internal::RpcMethod rpcmethod_ListWorkflows_; - const ::grpc::internal::RpcMethod rpcmethod_CreateLaunchPlan_; - const ::grpc::internal::RpcMethod rpcmethod_GetLaunchPlan_; - const ::grpc::internal::RpcMethod rpcmethod_GetActiveLaunchPlan_; - const ::grpc::internal::RpcMethod rpcmethod_ListActiveLaunchPlans_; - const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlanIds_; - const ::grpc::internal::RpcMethod rpcmethod_ListLaunchPlans_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateLaunchPlan_; - const ::grpc::internal::RpcMethod rpcmethod_CreateExecution_; - const ::grpc::internal::RpcMethod rpcmethod_RelaunchExecution_; - const ::grpc::internal::RpcMethod rpcmethod_RecoverExecution_; - const ::grpc::internal::RpcMethod rpcmethod_GetExecution_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateExecution_; - const ::grpc::internal::RpcMethod rpcmethod_GetExecutionData_; - const ::grpc::internal::RpcMethod rpcmethod_ListExecutions_; - const ::grpc::internal::RpcMethod rpcmethod_TerminateExecution_; - const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecution_; - const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutions_; - const ::grpc::internal::RpcMethod rpcmethod_ListNodeExecutionsForTask_; - const ::grpc::internal::RpcMethod rpcmethod_GetNodeExecutionData_; - const ::grpc::internal::RpcMethod rpcmethod_RegisterProject_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateProject_; - const ::grpc::internal::RpcMethod rpcmethod_ListProjects_; - const ::grpc::internal::RpcMethod rpcmethod_CreateWorkflowEvent_; - const ::grpc::internal::RpcMethod rpcmethod_CreateNodeEvent_; - const ::grpc::internal::RpcMethod rpcmethod_CreateTaskEvent_; - const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecution_; - const ::grpc::internal::RpcMethod rpcmethod_ListTaskExecutions_; - const ::grpc::internal::RpcMethod rpcmethod_GetTaskExecutionData_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateProjectDomainAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_GetProjectDomainAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteProjectDomainAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateProjectAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_GetProjectAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteProjectAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateWorkflowAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_GetWorkflowAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteWorkflowAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_ListMatchableAttributes_; - const ::grpc::internal::RpcMethod rpcmethod_ListNamedEntities_; - const ::grpc::internal::RpcMethod rpcmethod_GetNamedEntity_; - const ::grpc::internal::RpcMethod rpcmethod_UpdateNamedEntity_; - const ::grpc::internal::RpcMethod rpcmethod_GetVersion_; - const ::grpc::internal::RpcMethod rpcmethod_GetDescriptionEntity_; - const ::grpc::internal::RpcMethod rpcmethod_ListDescriptionEntities_; - const ::grpc::internal::RpcMethod rpcmethod_GetExecutionMetrics_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response); - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response); - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - virtual ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - virtual ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response); - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - virtual ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response); - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - virtual ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response); - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - virtual ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - virtual ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response); - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - virtual ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response); - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - virtual ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response); - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response); - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response); - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - virtual ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response); - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - virtual ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response); - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - virtual ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response); - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - virtual ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - virtual ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - virtual ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response); - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response); - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response); - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response); - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response); - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response); - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response); - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response); - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response); - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - virtual ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response); - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - virtual ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response); - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - virtual ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response); - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - virtual ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response); - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - virtual ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response); - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - virtual ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response); - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - virtual ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response); - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response); - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response); - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - virtual ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response); - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response); - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response); - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response); - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - virtual ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response); - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response); - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - virtual ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response); - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response); - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response); - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - virtual ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response); - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - virtual ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response); - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - virtual ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response); - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response); - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - virtual ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response); - virtual ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response); - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - virtual ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response); - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - virtual ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response); - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - virtual ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response); - }; - template - class WithAsyncMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateTask() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::TaskCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetTask() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Task>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListTaskIds() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTaskIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListTasks() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTasks(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateWorkflow() { - ::grpc::Service::MarkMethodAsync(4); - } - ~WithAsyncMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetWorkflow() { - ::grpc::Service::MarkMethodAsync(5); - } - ~WithAsyncMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetWorkflow(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Workflow>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListWorkflowIds() { - ::grpc::Service::MarkMethodAsync(6); - } - ~WithAsyncMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListWorkflowIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListWorkflows() { - ::grpc::Service::MarkMethodAsync(7); - } - ~WithAsyncMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListWorkflows(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateLaunchPlan() { - ::grpc::Service::MarkMethodAsync(8); - } - ~WithAsyncMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetLaunchPlan() { - ::grpc::Service::MarkMethodAsync(9); - } - ~WithAsyncMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlan>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetActiveLaunchPlan() { - ::grpc::Service::MarkMethodAsync(10); - } - ~WithAsyncMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetActiveLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlan>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListActiveLaunchPlans() { - ::grpc::Service::MarkMethodAsync(11); - } - ~WithAsyncMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListActiveLaunchPlans(::grpc::ServerContext* context, ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListLaunchPlanIds() { - ::grpc::Service::MarkMethodAsync(12); - } - ~WithAsyncMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListLaunchPlanIds(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityIdentifierList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListLaunchPlans() { - ::grpc::Service::MarkMethodAsync(13); - } - ~WithAsyncMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListLaunchPlans(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateLaunchPlan() { - ::grpc::Service::MarkMethodAsync(14); - } - ~WithAsyncMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateLaunchPlan(::grpc::ServerContext* context, ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::LaunchPlanUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateExecution() { - ::grpc::Service::MarkMethodAsync(15); - } - ~WithAsyncMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_RelaunchExecution() { - ::grpc::Service::MarkMethodAsync(16); - } - ~WithAsyncMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRelaunchExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionRelaunchRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_RecoverExecution() { - ::grpc::Service::MarkMethodAsync(17); - } - ~WithAsyncMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRecoverExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionRecoverRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetExecution() { - ::grpc::Service::MarkMethodAsync(18); - } - ~WithAsyncMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecution(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Execution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateExecution() { - ::grpc::Service::MarkMethodAsync(19); - } - ~WithAsyncMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetExecutionData() { - ::grpc::Service::MarkMethodAsync(20); - } - ~WithAsyncMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListExecutions() { - ::grpc::Service::MarkMethodAsync(21); - } - ~WithAsyncMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListExecutions(::grpc::ServerContext* context, ::flyteidl::admin::ResourceListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_TerminateExecution() { - ::grpc::Service::MarkMethodAsync(22); - } - ~WithAsyncMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTerminateExecution(::grpc::ServerContext* context, ::flyteidl::admin::ExecutionTerminateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ExecutionTerminateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetNodeExecution() { - ::grpc::Service::MarkMethodAsync(23); - } - ~WithAsyncMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeExecution(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListNodeExecutions() { - ::grpc::Service::MarkMethodAsync(24); - } - ~WithAsyncMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNodeExecutions(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListNodeExecutionsForTask() { - ::grpc::Service::MarkMethodAsync(25); - } - ~WithAsyncMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNodeExecutionsForTask(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetNodeExecutionData() { - ::grpc::Service::MarkMethodAsync(26); - } - ~WithAsyncMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_RegisterProject() { - ::grpc::Service::MarkMethodAsync(27); - } - ~WithAsyncMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterProject(::grpc::ServerContext* context, ::flyteidl::admin::ProjectRegisterRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectRegisterResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateProject() { - ::grpc::Service::MarkMethodAsync(28); - } - ~WithAsyncMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProject(::grpc::ServerContext* context, ::flyteidl::admin::Project* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListProjects() { - ::grpc::Service::MarkMethodAsync(29); - } - ~WithAsyncMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListProjects(::grpc::ServerContext* context, ::flyteidl::admin::ProjectListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Projects>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateWorkflowEvent() { - ::grpc::Service::MarkMethodAsync(30); - } - ~WithAsyncMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateWorkflowEvent(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateNodeEvent() { - ::grpc::Service::MarkMethodAsync(31); - } - ~WithAsyncMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateNodeEvent(::grpc::ServerContext* context, ::flyteidl::admin::NodeExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NodeExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateTaskEvent() { - ::grpc::Service::MarkMethodAsync(32); - } - ~WithAsyncMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTaskEvent(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionEventRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionEventResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetTaskExecution() { - ::grpc::Service::MarkMethodAsync(33); - } - ~WithAsyncMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTaskExecution(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecution>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListTaskExecutions() { - ::grpc::Service::MarkMethodAsync(34); - } - ~WithAsyncMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTaskExecutions(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetTaskExecutionData() { - ::grpc::Service::MarkMethodAsync(35); - } - ~WithAsyncMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTaskExecutionData(::grpc::ServerContext* context, ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::TaskExecutionGetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::MarkMethodAsync(36); - } - ~WithAsyncMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetProjectDomainAttributes() { - ::grpc::Service::MarkMethodAsync(37); - } - ~WithAsyncMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::MarkMethodAsync(38); - } - ~WithAsyncMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateProjectAttributes() { - ::grpc::Service::MarkMethodAsync(39); - } - ~WithAsyncMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetProjectAttributes() { - ::grpc::Service::MarkMethodAsync(40); - } - ~WithAsyncMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteProjectAttributes() { - ::grpc::Service::MarkMethodAsync(41); - } - ~WithAsyncMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteProjectAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ProjectAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateWorkflowAttributes() { - ::grpc::Service::MarkMethodAsync(42); - } - ~WithAsyncMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetWorkflowAttributes() { - ::grpc::Service::MarkMethodAsync(43); - } - ~WithAsyncMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteWorkflowAttributes() { - ::grpc::Service::MarkMethodAsync(44); - } - ~WithAsyncMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteWorkflowAttributes(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowAttributesDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListMatchableAttributes() { - ::grpc::Service::MarkMethodAsync(45); - } - ~WithAsyncMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListMatchableAttributes(::grpc::ServerContext* context, ::flyteidl::admin::ListMatchableAttributesRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ListMatchableAttributesResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListNamedEntities() { - ::grpc::Service::MarkMethodAsync(46); - } - ~WithAsyncMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNamedEntities(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(46, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetNamedEntity() { - ::grpc::Service::MarkMethodAsync(47); - } - ~WithAsyncMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNamedEntity(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntity>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UpdateNamedEntity() { - ::grpc::Service::MarkMethodAsync(48); - } - ~WithAsyncMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateNamedEntity(::grpc::ServerContext* context, ::flyteidl::admin::NamedEntityUpdateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::NamedEntityUpdateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetVersion() { - ::grpc::Service::MarkMethodAsync(49); - } - ~WithAsyncMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVersion(::grpc::ServerContext* context, ::flyteidl::admin::GetVersionRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetVersionResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetDescriptionEntity() { - ::grpc::Service::MarkMethodAsync(50); - } - ~WithAsyncMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetDescriptionEntity(::grpc::ServerContext* context, ::flyteidl::admin::ObjectGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DescriptionEntity>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListDescriptionEntities() { - ::grpc::Service::MarkMethodAsync(51); - } - ~WithAsyncMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListDescriptionEntities(::grpc::ServerContext* context, ::flyteidl::admin::DescriptionEntityListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DescriptionEntityList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetExecutionMetrics() { - ::grpc::Service::MarkMethodAsync(52); - } - ~WithAsyncMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecutionMetrics(::grpc::ServerContext* context, ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::TaskCreateRequest* request, - ::flyteidl::admin::TaskCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ObjectGetRequest* request, - ::flyteidl::admin::Task* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListTaskIds() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, - ::flyteidl::admin::NamedEntityIdentifierList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListTaskIds(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListTaskIds( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListTasks() { - ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ResourceListRequest* request, - ::flyteidl::admin::TaskList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListTasks(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListTasks( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>*>( - ::grpc::Service::experimental().GetHandler(3)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateWorkflow() { - ::grpc::Service::experimental().MarkMethodCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowCreateRequest* request, - ::flyteidl::admin::WorkflowCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateWorkflow(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateWorkflow( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(4)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetWorkflow() { - ::grpc::Service::experimental().MarkMethodCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ObjectGetRequest* request, - ::flyteidl::admin::Workflow* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetWorkflow(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetWorkflow( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>*>( - ::grpc::Service::experimental().GetHandler(5)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListWorkflowIds() { - ::grpc::Service::experimental().MarkMethodCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, - ::flyteidl::admin::NamedEntityIdentifierList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListWorkflowIds(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListWorkflowIds( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( - ::grpc::Service::experimental().GetHandler(6)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListWorkflows() { - ::grpc::Service::experimental().MarkMethodCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ResourceListRequest* request, - ::flyteidl::admin::WorkflowList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListWorkflows(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListWorkflows( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>*>( - ::grpc::Service::experimental().GetHandler(7)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateLaunchPlan() { - ::grpc::Service::experimental().MarkMethodCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::LaunchPlanCreateRequest* request, - ::flyteidl::admin::LaunchPlanCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateLaunchPlan(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateLaunchPlan( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(8)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetLaunchPlan() { - ::grpc::Service::experimental().MarkMethodCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ObjectGetRequest* request, - ::flyteidl::admin::LaunchPlan* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetLaunchPlan(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetLaunchPlan( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>*>( - ::grpc::Service::experimental().GetHandler(9)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetActiveLaunchPlan() { - ::grpc::Service::experimental().MarkMethodCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ActiveLaunchPlanRequest* request, - ::flyteidl::admin::LaunchPlan* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetActiveLaunchPlan(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetActiveLaunchPlan( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>*>( - ::grpc::Service::experimental().GetHandler(10)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListActiveLaunchPlans() { - ::grpc::Service::experimental().MarkMethodCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, - ::flyteidl::admin::LaunchPlanList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListActiveLaunchPlans(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListActiveLaunchPlans( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>*>( - ::grpc::Service::experimental().GetHandler(11)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListLaunchPlanIds() { - ::grpc::Service::experimental().MarkMethodCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, - ::flyteidl::admin::NamedEntityIdentifierList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListLaunchPlanIds(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListLaunchPlanIds( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>*>( - ::grpc::Service::experimental().GetHandler(12)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListLaunchPlans() { - ::grpc::Service::experimental().MarkMethodCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ResourceListRequest* request, - ::flyteidl::admin::LaunchPlanList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListLaunchPlans(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListLaunchPlans( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>*>( - ::grpc::Service::experimental().GetHandler(13)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateLaunchPlan() { - ::grpc::Service::experimental().MarkMethodCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::LaunchPlanUpdateRequest* request, - ::flyteidl::admin::LaunchPlanUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateLaunchPlan(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateLaunchPlan( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(14)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateExecution() { - ::grpc::Service::experimental().MarkMethodCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ExecutionCreateRequest* request, - ::flyteidl::admin::ExecutionCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(15)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_RelaunchExecution() { - ::grpc::Service::experimental().MarkMethodCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ExecutionRelaunchRequest* request, - ::flyteidl::admin::ExecutionCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RelaunchExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_RelaunchExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(16)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_RecoverExecution() { - ::grpc::Service::experimental().MarkMethodCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ExecutionRecoverRequest* request, - ::flyteidl::admin::ExecutionCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RecoverExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_RecoverExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(17)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetExecution() { - ::grpc::Service::experimental().MarkMethodCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowExecutionGetRequest* request, - ::flyteidl::admin::Execution* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>*>( - ::grpc::Service::experimental().GetHandler(18)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateExecution() { - ::grpc::Service::experimental().MarkMethodCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ExecutionUpdateRequest* request, - ::flyteidl::admin::ExecutionUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(19)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetExecutionData() { - ::grpc::Service::experimental().MarkMethodCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, - ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetExecutionData(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetExecutionData( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>*>( - ::grpc::Service::experimental().GetHandler(20)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListExecutions() { - ::grpc::Service::experimental().MarkMethodCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ResourceListRequest* request, - ::flyteidl::admin::ExecutionList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListExecutions(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListExecutions( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>*>( - ::grpc::Service::experimental().GetHandler(21)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_TerminateExecution() { - ::grpc::Service::experimental().MarkMethodCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ExecutionTerminateRequest* request, - ::flyteidl::admin::ExecutionTerminateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->TerminateExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_TerminateExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>*>( - ::grpc::Service::experimental().GetHandler(22)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetNodeExecution() { - ::grpc::Service::experimental().MarkMethodCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NodeExecutionGetRequest* request, - ::flyteidl::admin::NodeExecution* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetNodeExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetNodeExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>*>( - ::grpc::Service::experimental().GetHandler(23)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListNodeExecutions() { - ::grpc::Service::experimental().MarkMethodCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NodeExecutionListRequest* request, - ::flyteidl::admin::NodeExecutionList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListNodeExecutions(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListNodeExecutions( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>*>( - ::grpc::Service::experimental().GetHandler(24)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListNodeExecutionsForTask() { - ::grpc::Service::experimental().MarkMethodCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, - ::flyteidl::admin::NodeExecutionList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListNodeExecutionsForTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListNodeExecutionsForTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>*>( - ::grpc::Service::experimental().GetHandler(25)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetNodeExecutionData() { - ::grpc::Service::experimental().MarkMethodCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NodeExecutionGetDataRequest* request, - ::flyteidl::admin::NodeExecutionGetDataResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetNodeExecutionData(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetNodeExecutionData( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>*>( - ::grpc::Service::experimental().GetHandler(26)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_RegisterProject() { - ::grpc::Service::experimental().MarkMethodCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectRegisterRequest* request, - ::flyteidl::admin::ProjectRegisterResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->RegisterProject(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_RegisterProject( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>*>( - ::grpc::Service::experimental().GetHandler(27)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateProject() { - ::grpc::Service::experimental().MarkMethodCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::Project* request, - ::flyteidl::admin::ProjectUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateProject(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateProject( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(28)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListProjects() { - ::grpc::Service::experimental().MarkMethodCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectListRequest* request, - ::flyteidl::admin::Projects* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListProjects(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListProjects( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>*>( - ::grpc::Service::experimental().GetHandler(29)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateWorkflowEvent() { - ::grpc::Service::experimental().MarkMethodCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowExecutionEventRequest* request, - ::flyteidl::admin::WorkflowExecutionEventResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateWorkflowEvent(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateWorkflowEvent( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>*>( - ::grpc::Service::experimental().GetHandler(30)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateNodeEvent() { - ::grpc::Service::experimental().MarkMethodCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NodeExecutionEventRequest* request, - ::flyteidl::admin::NodeExecutionEventResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateNodeEvent(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateNodeEvent( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>*>( - ::grpc::Service::experimental().GetHandler(31)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateTaskEvent() { - ::grpc::Service::experimental().MarkMethodCallback(32, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::TaskExecutionEventRequest* request, - ::flyteidl::admin::TaskExecutionEventResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateTaskEvent(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateTaskEvent( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>*>( - ::grpc::Service::experimental().GetHandler(32)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetTaskExecution() { - ::grpc::Service::experimental().MarkMethodCallback(33, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::TaskExecutionGetRequest* request, - ::flyteidl::admin::TaskExecution* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTaskExecution(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetTaskExecution( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>*>( - ::grpc::Service::experimental().GetHandler(33)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListTaskExecutions() { - ::grpc::Service::experimental().MarkMethodCallback(34, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::TaskExecutionListRequest* request, - ::flyteidl::admin::TaskExecutionList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListTaskExecutions(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListTaskExecutions( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>*>( - ::grpc::Service::experimental().GetHandler(34)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetTaskExecutionData() { - ::grpc::Service::experimental().MarkMethodCallback(35, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::TaskExecutionGetDataRequest* request, - ::flyteidl::admin::TaskExecutionGetDataResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTaskExecutionData(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetTaskExecutionData( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>*>( - ::grpc::Service::experimental().GetHandler(35)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(36, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, - ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateProjectDomainAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateProjectDomainAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(36)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, - ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetProjectDomainAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetProjectDomainAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>*>( - ::grpc::Service::experimental().GetHandler(37)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, - ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteProjectDomainAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteProjectDomainAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>*>( - ::grpc::Service::experimental().GetHandler(38)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateProjectAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, - ::flyteidl::admin::ProjectAttributesUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateProjectAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateProjectAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(39)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetProjectAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(40, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectAttributesGetRequest* request, - ::flyteidl::admin::ProjectAttributesGetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetProjectAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetProjectAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>*>( - ::grpc::Service::experimental().GetHandler(40)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteProjectAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(41, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, - ::flyteidl::admin::ProjectAttributesDeleteResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteProjectAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteProjectAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>*>( - ::grpc::Service::experimental().GetHandler(41)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(42, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, - ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateWorkflowAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateWorkflowAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(42)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(43, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowAttributesGetRequest* request, - ::flyteidl::admin::WorkflowAttributesGetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetWorkflowAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetWorkflowAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>*>( - ::grpc::Service::experimental().GetHandler(43)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(44, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, - ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteWorkflowAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteWorkflowAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>*>( - ::grpc::Service::experimental().GetHandler(44)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListMatchableAttributes() { - ::grpc::Service::experimental().MarkMethodCallback(45, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ListMatchableAttributesRequest* request, - ::flyteidl::admin::ListMatchableAttributesResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListMatchableAttributes(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListMatchableAttributes( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>*>( - ::grpc::Service::experimental().GetHandler(45)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListNamedEntities() { - ::grpc::Service::experimental().MarkMethodCallback(46, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityListRequest* request, - ::flyteidl::admin::NamedEntityList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListNamedEntities(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListNamedEntities( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>*>( - ::grpc::Service::experimental().GetHandler(46)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetNamedEntity() { - ::grpc::Service::experimental().MarkMethodCallback(47, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityGetRequest* request, - ::flyteidl::admin::NamedEntity* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetNamedEntity(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetNamedEntity( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>*>( - ::grpc::Service::experimental().GetHandler(47)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UpdateNamedEntity() { - ::grpc::Service::experimental().MarkMethodCallback(48, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::NamedEntityUpdateRequest* request, - ::flyteidl::admin::NamedEntityUpdateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UpdateNamedEntity(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UpdateNamedEntity( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>*>( - ::grpc::Service::experimental().GetHandler(48)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetVersion() { - ::grpc::Service::experimental().MarkMethodCallback(49, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::GetVersionRequest* request, - ::flyteidl::admin::GetVersionResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetVersion(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetVersion( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>*>( - ::grpc::Service::experimental().GetHandler(49)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetDescriptionEntity() { - ::grpc::Service::experimental().MarkMethodCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ObjectGetRequest* request, - ::flyteidl::admin::DescriptionEntity* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetDescriptionEntity(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetDescriptionEntity( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>*>( - ::grpc::Service::experimental().GetHandler(50)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListDescriptionEntities() { - ::grpc::Service::experimental().MarkMethodCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::DescriptionEntityListRequest* request, - ::flyteidl::admin::DescriptionEntityList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListDescriptionEntities(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListDescriptionEntities( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>*>( - ::grpc::Service::experimental().GetHandler(51)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetExecutionMetrics() { - ::grpc::Service::experimental().MarkMethodCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, - ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetExecutionMetrics(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetExecutionMetrics( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>*>( - ::grpc::Service::experimental().GetHandler(52)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateTask() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetTask() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListTaskIds() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListTasks() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateWorkflow() { - ::grpc::Service::MarkMethodGeneric(4); - } - ~WithGenericMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetWorkflow() { - ::grpc::Service::MarkMethodGeneric(5); - } - ~WithGenericMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListWorkflowIds() { - ::grpc::Service::MarkMethodGeneric(6); - } - ~WithGenericMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListWorkflows() { - ::grpc::Service::MarkMethodGeneric(7); - } - ~WithGenericMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateLaunchPlan() { - ::grpc::Service::MarkMethodGeneric(8); - } - ~WithGenericMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetLaunchPlan() { - ::grpc::Service::MarkMethodGeneric(9); - } - ~WithGenericMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetActiveLaunchPlan() { - ::grpc::Service::MarkMethodGeneric(10); - } - ~WithGenericMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListActiveLaunchPlans() { - ::grpc::Service::MarkMethodGeneric(11); - } - ~WithGenericMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListLaunchPlanIds() { - ::grpc::Service::MarkMethodGeneric(12); - } - ~WithGenericMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListLaunchPlans() { - ::grpc::Service::MarkMethodGeneric(13); - } - ~WithGenericMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateLaunchPlan() { - ::grpc::Service::MarkMethodGeneric(14); - } - ~WithGenericMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateExecution() { - ::grpc::Service::MarkMethodGeneric(15); - } - ~WithGenericMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_RelaunchExecution() { - ::grpc::Service::MarkMethodGeneric(16); - } - ~WithGenericMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_RecoverExecution() { - ::grpc::Service::MarkMethodGeneric(17); - } - ~WithGenericMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetExecution() { - ::grpc::Service::MarkMethodGeneric(18); - } - ~WithGenericMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateExecution() { - ::grpc::Service::MarkMethodGeneric(19); - } - ~WithGenericMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetExecutionData() { - ::grpc::Service::MarkMethodGeneric(20); - } - ~WithGenericMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListExecutions() { - ::grpc::Service::MarkMethodGeneric(21); - } - ~WithGenericMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_TerminateExecution() { - ::grpc::Service::MarkMethodGeneric(22); - } - ~WithGenericMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetNodeExecution() { - ::grpc::Service::MarkMethodGeneric(23); - } - ~WithGenericMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListNodeExecutions() { - ::grpc::Service::MarkMethodGeneric(24); - } - ~WithGenericMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListNodeExecutionsForTask() { - ::grpc::Service::MarkMethodGeneric(25); - } - ~WithGenericMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetNodeExecutionData() { - ::grpc::Service::MarkMethodGeneric(26); - } - ~WithGenericMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_RegisterProject() { - ::grpc::Service::MarkMethodGeneric(27); - } - ~WithGenericMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateProject() { - ::grpc::Service::MarkMethodGeneric(28); - } - ~WithGenericMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListProjects() { - ::grpc::Service::MarkMethodGeneric(29); - } - ~WithGenericMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateWorkflowEvent() { - ::grpc::Service::MarkMethodGeneric(30); - } - ~WithGenericMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateNodeEvent() { - ::grpc::Service::MarkMethodGeneric(31); - } - ~WithGenericMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateTaskEvent() { - ::grpc::Service::MarkMethodGeneric(32); - } - ~WithGenericMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetTaskExecution() { - ::grpc::Service::MarkMethodGeneric(33); - } - ~WithGenericMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListTaskExecutions() { - ::grpc::Service::MarkMethodGeneric(34); - } - ~WithGenericMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetTaskExecutionData() { - ::grpc::Service::MarkMethodGeneric(35); - } - ~WithGenericMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::MarkMethodGeneric(36); - } - ~WithGenericMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetProjectDomainAttributes() { - ::grpc::Service::MarkMethodGeneric(37); - } - ~WithGenericMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::MarkMethodGeneric(38); - } - ~WithGenericMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateProjectAttributes() { - ::grpc::Service::MarkMethodGeneric(39); - } - ~WithGenericMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetProjectAttributes() { - ::grpc::Service::MarkMethodGeneric(40); - } - ~WithGenericMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteProjectAttributes() { - ::grpc::Service::MarkMethodGeneric(41); - } - ~WithGenericMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateWorkflowAttributes() { - ::grpc::Service::MarkMethodGeneric(42); - } - ~WithGenericMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetWorkflowAttributes() { - ::grpc::Service::MarkMethodGeneric(43); - } - ~WithGenericMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteWorkflowAttributes() { - ::grpc::Service::MarkMethodGeneric(44); - } - ~WithGenericMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListMatchableAttributes() { - ::grpc::Service::MarkMethodGeneric(45); - } - ~WithGenericMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListNamedEntities() { - ::grpc::Service::MarkMethodGeneric(46); - } - ~WithGenericMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetNamedEntity() { - ::grpc::Service::MarkMethodGeneric(47); - } - ~WithGenericMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UpdateNamedEntity() { - ::grpc::Service::MarkMethodGeneric(48); - } - ~WithGenericMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetVersion() { - ::grpc::Service::MarkMethodGeneric(49); - } - ~WithGenericMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetDescriptionEntity() { - ::grpc::Service::MarkMethodGeneric(50); - } - ~WithGenericMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListDescriptionEntities() { - ::grpc::Service::MarkMethodGeneric(51); - } - ~WithGenericMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetExecutionMetrics() { - ::grpc::Service::MarkMethodGeneric(52); - } - ~WithGenericMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateTask() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetTask() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListTaskIds() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTaskIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListTasks() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTasks(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateWorkflow() { - ::grpc::Service::MarkMethodRaw(4); - } - ~WithRawMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateWorkflow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(4, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetWorkflow() { - ::grpc::Service::MarkMethodRaw(5); - } - ~WithRawMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetWorkflow(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(5, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListWorkflowIds() { - ::grpc::Service::MarkMethodRaw(6); - } - ~WithRawMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListWorkflowIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(6, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListWorkflows() { - ::grpc::Service::MarkMethodRaw(7); - } - ~WithRawMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListWorkflows(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(7, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateLaunchPlan() { - ::grpc::Service::MarkMethodRaw(8); - } - ~WithRawMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(8, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetLaunchPlan() { - ::grpc::Service::MarkMethodRaw(9); - } - ~WithRawMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(9, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetActiveLaunchPlan() { - ::grpc::Service::MarkMethodRaw(10); - } - ~WithRawMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetActiveLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(10, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListActiveLaunchPlans() { - ::grpc::Service::MarkMethodRaw(11); - } - ~WithRawMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListActiveLaunchPlans(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(11, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListLaunchPlanIds() { - ::grpc::Service::MarkMethodRaw(12); - } - ~WithRawMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListLaunchPlanIds(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(12, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListLaunchPlans() { - ::grpc::Service::MarkMethodRaw(13); - } - ~WithRawMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListLaunchPlans(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(13, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateLaunchPlan() { - ::grpc::Service::MarkMethodRaw(14); - } - ~WithRawMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateLaunchPlan(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(14, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateExecution() { - ::grpc::Service::MarkMethodRaw(15); - } - ~WithRawMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(15, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_RelaunchExecution() { - ::grpc::Service::MarkMethodRaw(16); - } - ~WithRawMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRelaunchExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(16, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_RecoverExecution() { - ::grpc::Service::MarkMethodRaw(17); - } - ~WithRawMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRecoverExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(17, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetExecution() { - ::grpc::Service::MarkMethodRaw(18); - } - ~WithRawMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(18, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateExecution() { - ::grpc::Service::MarkMethodRaw(19); - } - ~WithRawMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(19, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetExecutionData() { - ::grpc::Service::MarkMethodRaw(20); - } - ~WithRawMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(20, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListExecutions() { - ::grpc::Service::MarkMethodRaw(21); - } - ~WithRawMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(21, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_TerminateExecution() { - ::grpc::Service::MarkMethodRaw(22); - } - ~WithRawMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestTerminateExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(22, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetNodeExecution() { - ::grpc::Service::MarkMethodRaw(23); - } - ~WithRawMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(23, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListNodeExecutions() { - ::grpc::Service::MarkMethodRaw(24); - } - ~WithRawMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNodeExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(24, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListNodeExecutionsForTask() { - ::grpc::Service::MarkMethodRaw(25); - } - ~WithRawMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNodeExecutionsForTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(25, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetNodeExecutionData() { - ::grpc::Service::MarkMethodRaw(26); - } - ~WithRawMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNodeExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(26, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_RegisterProject() { - ::grpc::Service::MarkMethodRaw(27); - } - ~WithRawMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestRegisterProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(27, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateProject() { - ::grpc::Service::MarkMethodRaw(28); - } - ~WithRawMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProject(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(28, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListProjects() { - ::grpc::Service::MarkMethodRaw(29); - } - ~WithRawMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListProjects(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(29, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateWorkflowEvent() { - ::grpc::Service::MarkMethodRaw(30); - } - ~WithRawMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateWorkflowEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(30, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateNodeEvent() { - ::grpc::Service::MarkMethodRaw(31); - } - ~WithRawMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateNodeEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(31, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateTaskEvent() { - ::grpc::Service::MarkMethodRaw(32); - } - ~WithRawMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTaskEvent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(32, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetTaskExecution() { - ::grpc::Service::MarkMethodRaw(33); - } - ~WithRawMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTaskExecution(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(33, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListTaskExecutions() { - ::grpc::Service::MarkMethodRaw(34); - } - ~WithRawMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListTaskExecutions(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(34, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetTaskExecutionData() { - ::grpc::Service::MarkMethodRaw(35); - } - ~WithRawMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTaskExecutionData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(35, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::MarkMethodRaw(36); - } - ~WithRawMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(36, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetProjectDomainAttributes() { - ::grpc::Service::MarkMethodRaw(37); - } - ~WithRawMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(37, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::MarkMethodRaw(38); - } - ~WithRawMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(38, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateProjectAttributes() { - ::grpc::Service::MarkMethodRaw(39); - } - ~WithRawMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(39, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetProjectAttributes() { - ::grpc::Service::MarkMethodRaw(40); - } - ~WithRawMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(40, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteProjectAttributes() { - ::grpc::Service::MarkMethodRaw(41); - } - ~WithRawMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteProjectAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(41, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateWorkflowAttributes() { - ::grpc::Service::MarkMethodRaw(42); - } - ~WithRawMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(42, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetWorkflowAttributes() { - ::grpc::Service::MarkMethodRaw(43); - } - ~WithRawMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(43, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteWorkflowAttributes() { - ::grpc::Service::MarkMethodRaw(44); - } - ~WithRawMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(44, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListMatchableAttributes() { - ::grpc::Service::MarkMethodRaw(45); - } - ~WithRawMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListMatchableAttributes(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(45, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListNamedEntities() { - ::grpc::Service::MarkMethodRaw(46); - } - ~WithRawMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListNamedEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(46, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetNamedEntity() { - ::grpc::Service::MarkMethodRaw(47); - } - ~WithRawMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetNamedEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(47, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UpdateNamedEntity() { - ::grpc::Service::MarkMethodRaw(48); - } - ~WithRawMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUpdateNamedEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(48, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetVersion() { - ::grpc::Service::MarkMethodRaw(49); - } - ~WithRawMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetVersion(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(49, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetDescriptionEntity() { - ::grpc::Service::MarkMethodRaw(50); - } - ~WithRawMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetDescriptionEntity(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(50, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListDescriptionEntities() { - ::grpc::Service::MarkMethodRaw(51); - } - ~WithRawMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListDescriptionEntities(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(51, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetExecutionMetrics() { - ::grpc::Service::MarkMethodRaw(52); - } - ~WithRawMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetExecutionMetrics(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(52, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListTaskIds() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListTaskIds(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTaskIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListTasks() { - ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListTasks(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTasks(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateWorkflow() { - ::grpc::Service::experimental().MarkMethodRawCallback(4, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateWorkflow(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateWorkflow(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetWorkflow() { - ::grpc::Service::experimental().MarkMethodRawCallback(5, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetWorkflow(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetWorkflow(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListWorkflowIds() { - ::grpc::Service::experimental().MarkMethodRawCallback(6, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListWorkflowIds(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListWorkflowIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListWorkflows() { - ::grpc::Service::experimental().MarkMethodRawCallback(7, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListWorkflows(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListWorkflows(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateLaunchPlan() { - ::grpc::Service::experimental().MarkMethodRawCallback(8, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateLaunchPlan(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetLaunchPlan() { - ::grpc::Service::experimental().MarkMethodRawCallback(9, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetLaunchPlan(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan() { - ::grpc::Service::experimental().MarkMethodRawCallback(10, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetActiveLaunchPlan(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetActiveLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans() { - ::grpc::Service::experimental().MarkMethodRawCallback(11, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListActiveLaunchPlans(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListActiveLaunchPlans(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListLaunchPlanIds() { - ::grpc::Service::experimental().MarkMethodRawCallback(12, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListLaunchPlanIds(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListLaunchPlanIds(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListLaunchPlans() { - ::grpc::Service::experimental().MarkMethodRawCallback(13, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListLaunchPlans(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListLaunchPlans(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateLaunchPlan() { - ::grpc::Service::experimental().MarkMethodRawCallback(14, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateLaunchPlan(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateLaunchPlan(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(15, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_RelaunchExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(16, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RelaunchExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RelaunchExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_RecoverExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(17, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RecoverExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RecoverExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(18, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(19, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetExecutionData() { - ::grpc::Service::experimental().MarkMethodRawCallback(20, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetExecutionData(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListExecutions() { - ::grpc::Service::experimental().MarkMethodRawCallback(21, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListExecutions(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_TerminateExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(22, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->TerminateExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void TerminateExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetNodeExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(23, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetNodeExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNodeExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListNodeExecutions() { - ::grpc::Service::experimental().MarkMethodRawCallback(24, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListNodeExecutions(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNodeExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(25, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListNodeExecutionsForTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetNodeExecutionData() { - ::grpc::Service::experimental().MarkMethodRawCallback(26, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetNodeExecutionData(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNodeExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_RegisterProject() { - ::grpc::Service::experimental().MarkMethodRawCallback(27, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->RegisterProject(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void RegisterProject(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateProject() { - ::grpc::Service::experimental().MarkMethodRawCallback(28, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateProject(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProject(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListProjects() { - ::grpc::Service::experimental().MarkMethodRawCallback(29, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListProjects(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListProjects(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateWorkflowEvent() { - ::grpc::Service::experimental().MarkMethodRawCallback(30, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateWorkflowEvent(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateWorkflowEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateNodeEvent() { - ::grpc::Service::experimental().MarkMethodRawCallback(31, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateNodeEvent(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateNodeEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateTaskEvent() { - ::grpc::Service::experimental().MarkMethodRawCallback(32, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateTaskEvent(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTaskEvent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetTaskExecution() { - ::grpc::Service::experimental().MarkMethodRawCallback(33, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetTaskExecution(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTaskExecution(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListTaskExecutions() { - ::grpc::Service::experimental().MarkMethodRawCallback(34, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListTaskExecutions(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListTaskExecutions(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetTaskExecutionData() { - ::grpc::Service::experimental().MarkMethodRawCallback(35, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetTaskExecutionData(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTaskExecutionData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(36, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateProjectDomainAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(37, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetProjectDomainAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(38, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteProjectDomainAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateProjectAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(39, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateProjectAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetProjectAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(40, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetProjectAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteProjectAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(41, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteProjectAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteProjectAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(42, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateWorkflowAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(43, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetWorkflowAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(44, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteWorkflowAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListMatchableAttributes() { - ::grpc::Service::experimental().MarkMethodRawCallback(45, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListMatchableAttributes(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListMatchableAttributes(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListNamedEntities() { - ::grpc::Service::experimental().MarkMethodRawCallback(46, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListNamedEntities(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListNamedEntities(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetNamedEntity() { - ::grpc::Service::experimental().MarkMethodRawCallback(47, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetNamedEntity(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetNamedEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UpdateNamedEntity() { - ::grpc::Service::experimental().MarkMethodRawCallback(48, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UpdateNamedEntity(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UpdateNamedEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetVersion() { - ::grpc::Service::experimental().MarkMethodRawCallback(49, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetVersion(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetVersion(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetDescriptionEntity() { - ::grpc::Service::experimental().MarkMethodRawCallback(50, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetDescriptionEntity(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetDescriptionEntity(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListDescriptionEntities() { - ::grpc::Service::experimental().MarkMethodRawCallback(51, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListDescriptionEntities(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListDescriptionEntities(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetExecutionMetrics() { - ::grpc::Service::experimental().MarkMethodRawCallback(52, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetExecutionMetrics(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetExecutionMetrics(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateTask() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskCreateRequest, ::flyteidl::admin::TaskCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::TaskCreateRequest* request, ::flyteidl::admin::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskCreateRequest,::flyteidl::admin::TaskCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetTask() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Task>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Task* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Task>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListTaskIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListTaskIds() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListTaskIds::StreamedListTaskIds, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListTaskIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListTaskIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListTaskIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListTasks : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListTasks() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::TaskList>(std::bind(&WithStreamedUnaryMethod_ListTasks::StreamedListTasks, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListTasks() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListTasks(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::TaskList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListTasks(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::TaskList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateWorkflow() { - ::grpc::Service::MarkMethodStreamed(4, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowCreateRequest, ::flyteidl::admin::WorkflowCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflow::StreamedCreateWorkflow, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowCreateRequest* request, ::flyteidl::admin::WorkflowCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowCreateRequest,::flyteidl::admin::WorkflowCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetWorkflow : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetWorkflow() { - ::grpc::Service::MarkMethodStreamed(5, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::Workflow>(std::bind(&WithStreamedUnaryMethod_GetWorkflow::StreamedGetWorkflow, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetWorkflow() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetWorkflow(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::Workflow* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetWorkflow(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::Workflow>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListWorkflowIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListWorkflowIds() { - ::grpc::Service::MarkMethodStreamed(6, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListWorkflowIds::StreamedListWorkflowIds, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListWorkflowIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListWorkflowIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListWorkflowIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListWorkflows : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListWorkflows() { - ::grpc::Service::MarkMethodStreamed(7, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::WorkflowList>(std::bind(&WithStreamedUnaryMethod_ListWorkflows::StreamedListWorkflows, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListWorkflows() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListWorkflows(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::WorkflowList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListWorkflows(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::WorkflowList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateLaunchPlan() { - ::grpc::Service::MarkMethodStreamed(8, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanCreateRequest, ::flyteidl::admin::LaunchPlanCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateLaunchPlan::StreamedCreateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanCreateRequest* request, ::flyteidl::admin::LaunchPlanCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanCreateRequest,::flyteidl::admin::LaunchPlanCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetLaunchPlan() { - ::grpc::Service::MarkMethodStreamed(9, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::LaunchPlan>(std::bind(&WithStreamedUnaryMethod_GetLaunchPlan::StreamedGetLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::LaunchPlan>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetActiveLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetActiveLaunchPlan() { - ::grpc::Service::MarkMethodStreamed(10, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanRequest, ::flyteidl::admin::LaunchPlan>(std::bind(&WithStreamedUnaryMethod_GetActiveLaunchPlan::StreamedGetActiveLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetActiveLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetActiveLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanRequest* request, ::flyteidl::admin::LaunchPlan* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetActiveLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ActiveLaunchPlanRequest,::flyteidl::admin::LaunchPlan>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListActiveLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListActiveLaunchPlans() { - ::grpc::Service::MarkMethodStreamed(11, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ActiveLaunchPlanListRequest, ::flyteidl::admin::LaunchPlanList>(std::bind(&WithStreamedUnaryMethod_ListActiveLaunchPlans::StreamedListActiveLaunchPlans, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListActiveLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListActiveLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ActiveLaunchPlanListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListActiveLaunchPlans(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ActiveLaunchPlanListRequest,::flyteidl::admin::LaunchPlanList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListLaunchPlanIds : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListLaunchPlanIds() { - ::grpc::Service::MarkMethodStreamed(12, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityIdentifierListRequest, ::flyteidl::admin::NamedEntityIdentifierList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlanIds::StreamedListLaunchPlanIds, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListLaunchPlanIds() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListLaunchPlanIds(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityIdentifierListRequest* request, ::flyteidl::admin::NamedEntityIdentifierList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListLaunchPlanIds(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityIdentifierListRequest,::flyteidl::admin::NamedEntityIdentifierList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListLaunchPlans : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListLaunchPlans() { - ::grpc::Service::MarkMethodStreamed(13, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::LaunchPlanList>(std::bind(&WithStreamedUnaryMethod_ListLaunchPlans::StreamedListLaunchPlans, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListLaunchPlans() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListLaunchPlans(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::LaunchPlanList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListLaunchPlans(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::LaunchPlanList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateLaunchPlan : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateLaunchPlan() { - ::grpc::Service::MarkMethodStreamed(14, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::LaunchPlanUpdateRequest, ::flyteidl::admin::LaunchPlanUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateLaunchPlan::StreamedUpdateLaunchPlan, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateLaunchPlan() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateLaunchPlan(::grpc::ServerContext* context, const ::flyteidl::admin::LaunchPlanUpdateRequest* request, ::flyteidl::admin::LaunchPlanUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateLaunchPlan(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::LaunchPlanUpdateRequest,::flyteidl::admin::LaunchPlanUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateExecution() { - ::grpc::Service::MarkMethodStreamed(15, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionCreateRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateExecution::StreamedCreateExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionCreateRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionCreateRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RelaunchExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_RelaunchExecution() { - ::grpc::Service::MarkMethodStreamed(16, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionRelaunchRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_RelaunchExecution::StreamedRelaunchExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_RelaunchExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RelaunchExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRelaunchRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRelaunchExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionRelaunchRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RecoverExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_RecoverExecution() { - ::grpc::Service::MarkMethodStreamed(17, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionRecoverRequest, ::flyteidl::admin::ExecutionCreateResponse>(std::bind(&WithStreamedUnaryMethod_RecoverExecution::StreamedRecoverExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_RecoverExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RecoverExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionRecoverRequest* request, ::flyteidl::admin::ExecutionCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRecoverExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionRecoverRequest,::flyteidl::admin::ExecutionCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetExecution() { - ::grpc::Service::MarkMethodStreamed(18, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetRequest, ::flyteidl::admin::Execution>(std::bind(&WithStreamedUnaryMethod_GetExecution::StreamedGetExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetExecution(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetRequest* request, ::flyteidl::admin::Execution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetRequest,::flyteidl::admin::Execution>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateExecution() { - ::grpc::Service::MarkMethodStreamed(19, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionUpdateRequest, ::flyteidl::admin::ExecutionUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateExecution::StreamedUpdateExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionUpdateRequest* request, ::flyteidl::admin::ExecutionUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionUpdateRequest,::flyteidl::admin::ExecutionUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetExecutionData() { - ::grpc::Service::MarkMethodStreamed(20, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetDataRequest, ::flyteidl::admin::WorkflowExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetExecutionData::StreamedGetExecutionData, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetDataRequest* request, ::flyteidl::admin::WorkflowExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetDataRequest,::flyteidl::admin::WorkflowExecutionGetDataResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListExecutions() { - ::grpc::Service::MarkMethodStreamed(21, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ResourceListRequest, ::flyteidl::admin::ExecutionList>(std::bind(&WithStreamedUnaryMethod_ListExecutions::StreamedListExecutions, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::ResourceListRequest* request, ::flyteidl::admin::ExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ResourceListRequest,::flyteidl::admin::ExecutionList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_TerminateExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_TerminateExecution() { - ::grpc::Service::MarkMethodStreamed(22, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ExecutionTerminateRequest, ::flyteidl::admin::ExecutionTerminateResponse>(std::bind(&WithStreamedUnaryMethod_TerminateExecution::StreamedTerminateExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_TerminateExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status TerminateExecution(::grpc::ServerContext* context, const ::flyteidl::admin::ExecutionTerminateRequest* request, ::flyteidl::admin::ExecutionTerminateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedTerminateExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ExecutionTerminateRequest,::flyteidl::admin::ExecutionTerminateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNodeExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetNodeExecution() { - ::grpc::Service::MarkMethodStreamed(23, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetRequest, ::flyteidl::admin::NodeExecution>(std::bind(&WithStreamedUnaryMethod_GetNodeExecution::StreamedGetNodeExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetNodeExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNodeExecution(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetRequest* request, ::flyteidl::admin::NodeExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNodeExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetRequest,::flyteidl::admin::NodeExecution>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListNodeExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListNodeExecutions() { - ::grpc::Service::MarkMethodStreamed(24, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutions::StreamedListNodeExecutions, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListNodeExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListNodeExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListNodeExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListNodeExecutionsForTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListNodeExecutionsForTask() { - ::grpc::Service::MarkMethodStreamed(25, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionForTaskListRequest, ::flyteidl::admin::NodeExecutionList>(std::bind(&WithStreamedUnaryMethod_ListNodeExecutionsForTask::StreamedListNodeExecutionsForTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListNodeExecutionsForTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListNodeExecutionsForTask(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionForTaskListRequest* request, ::flyteidl::admin::NodeExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListNodeExecutionsForTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionForTaskListRequest,::flyteidl::admin::NodeExecutionList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNodeExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetNodeExecutionData() { - ::grpc::Service::MarkMethodStreamed(26, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionGetDataRequest, ::flyteidl::admin::NodeExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetNodeExecutionData::StreamedGetNodeExecutionData, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetNodeExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNodeExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionGetDataRequest* request, ::flyteidl::admin::NodeExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNodeExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionGetDataRequest,::flyteidl::admin::NodeExecutionGetDataResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_RegisterProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_RegisterProject() { - ::grpc::Service::MarkMethodStreamed(27, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectRegisterRequest, ::flyteidl::admin::ProjectRegisterResponse>(std::bind(&WithStreamedUnaryMethod_RegisterProject::StreamedRegisterProject, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_RegisterProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status RegisterProject(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectRegisterRequest* request, ::flyteidl::admin::ProjectRegisterResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedRegisterProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectRegisterRequest,::flyteidl::admin::ProjectRegisterResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateProject : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateProject() { - ::grpc::Service::MarkMethodStreamed(28, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::Project, ::flyteidl::admin::ProjectUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProject::StreamedUpdateProject, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateProject() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateProject(::grpc::ServerContext* context, const ::flyteidl::admin::Project* request, ::flyteidl::admin::ProjectUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateProject(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::Project,::flyteidl::admin::ProjectUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListProjects : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListProjects() { - ::grpc::Service::MarkMethodStreamed(29, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectListRequest, ::flyteidl::admin::Projects>(std::bind(&WithStreamedUnaryMethod_ListProjects::StreamedListProjects, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListProjects() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListProjects(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectListRequest* request, ::flyteidl::admin::Projects* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListProjects(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectListRequest,::flyteidl::admin::Projects>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateWorkflowEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateWorkflowEvent() { - ::grpc::Service::MarkMethodStreamed(30, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionEventRequest, ::flyteidl::admin::WorkflowExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateWorkflowEvent::StreamedCreateWorkflowEvent, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateWorkflowEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateWorkflowEvent(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionEventRequest* request, ::flyteidl::admin::WorkflowExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateWorkflowEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionEventRequest,::flyteidl::admin::WorkflowExecutionEventResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateNodeEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateNodeEvent() { - ::grpc::Service::MarkMethodStreamed(31, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NodeExecutionEventRequest, ::flyteidl::admin::NodeExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateNodeEvent::StreamedCreateNodeEvent, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateNodeEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateNodeEvent(::grpc::ServerContext* context, const ::flyteidl::admin::NodeExecutionEventRequest* request, ::flyteidl::admin::NodeExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateNodeEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NodeExecutionEventRequest,::flyteidl::admin::NodeExecutionEventResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateTaskEvent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateTaskEvent() { - ::grpc::Service::MarkMethodStreamed(32, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionEventRequest, ::flyteidl::admin::TaskExecutionEventResponse>(std::bind(&WithStreamedUnaryMethod_CreateTaskEvent::StreamedCreateTaskEvent, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateTaskEvent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateTaskEvent(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionEventRequest* request, ::flyteidl::admin::TaskExecutionEventResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateTaskEvent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionEventRequest,::flyteidl::admin::TaskExecutionEventResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetTaskExecution : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetTaskExecution() { - ::grpc::Service::MarkMethodStreamed(33, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetRequest, ::flyteidl::admin::TaskExecution>(std::bind(&WithStreamedUnaryMethod_GetTaskExecution::StreamedGetTaskExecution, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetTaskExecution() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetTaskExecution(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetRequest* request, ::flyteidl::admin::TaskExecution* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTaskExecution(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetRequest,::flyteidl::admin::TaskExecution>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListTaskExecutions : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListTaskExecutions() { - ::grpc::Service::MarkMethodStreamed(34, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionListRequest, ::flyteidl::admin::TaskExecutionList>(std::bind(&WithStreamedUnaryMethod_ListTaskExecutions::StreamedListTaskExecutions, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListTaskExecutions() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListTaskExecutions(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionListRequest* request, ::flyteidl::admin::TaskExecutionList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListTaskExecutions(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionListRequest,::flyteidl::admin::TaskExecutionList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetTaskExecutionData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetTaskExecutionData() { - ::grpc::Service::MarkMethodStreamed(35, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::TaskExecutionGetDataRequest, ::flyteidl::admin::TaskExecutionGetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetTaskExecutionData::StreamedGetTaskExecutionData, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetTaskExecutionData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetTaskExecutionData(::grpc::ServerContext* context, const ::flyteidl::admin::TaskExecutionGetDataRequest* request, ::flyteidl::admin::TaskExecutionGetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTaskExecutionData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::TaskExecutionGetDataRequest,::flyteidl::admin::TaskExecutionGetDataResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateProjectDomainAttributes() { - ::grpc::Service::MarkMethodStreamed(36, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProjectDomainAttributes::StreamedUpdateProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesUpdateRequest* request, ::flyteidl::admin::ProjectDomainAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesUpdateRequest,::flyteidl::admin::ProjectDomainAttributesUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetProjectDomainAttributes() { - ::grpc::Service::MarkMethodStreamed(37, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesGetRequest, ::flyteidl::admin::ProjectDomainAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetProjectDomainAttributes::StreamedGetProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesGetRequest* request, ::flyteidl::admin::ProjectDomainAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesGetRequest,::flyteidl::admin::ProjectDomainAttributesGetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteProjectDomainAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteProjectDomainAttributes() { - ::grpc::Service::MarkMethodStreamed(38, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteProjectDomainAttributes::StreamedDeleteProjectDomainAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteProjectDomainAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteProjectDomainAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectDomainAttributesDeleteRequest* request, ::flyteidl::admin::ProjectDomainAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteProjectDomainAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectDomainAttributesDeleteRequest,::flyteidl::admin::ProjectDomainAttributesDeleteResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateProjectAttributes() { - ::grpc::Service::MarkMethodStreamed(39, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesUpdateRequest, ::flyteidl::admin::ProjectAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateProjectAttributes::StreamedUpdateProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesUpdateRequest* request, ::flyteidl::admin::ProjectAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesUpdateRequest,::flyteidl::admin::ProjectAttributesUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetProjectAttributes() { - ::grpc::Service::MarkMethodStreamed(40, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesGetRequest, ::flyteidl::admin::ProjectAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetProjectAttributes::StreamedGetProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesGetRequest* request, ::flyteidl::admin::ProjectAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesGetRequest,::flyteidl::admin::ProjectAttributesGetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteProjectAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteProjectAttributes() { - ::grpc::Service::MarkMethodStreamed(41, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ProjectAttributesDeleteRequest, ::flyteidl::admin::ProjectAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteProjectAttributes::StreamedDeleteProjectAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteProjectAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteProjectAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ProjectAttributesDeleteRequest* request, ::flyteidl::admin::ProjectAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteProjectAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ProjectAttributesDeleteRequest,::flyteidl::admin::ProjectAttributesDeleteResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateWorkflowAttributes() { - ::grpc::Service::MarkMethodStreamed(42, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesUpdateRequest, ::flyteidl::admin::WorkflowAttributesUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateWorkflowAttributes::StreamedUpdateWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesUpdateRequest* request, ::flyteidl::admin::WorkflowAttributesUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesUpdateRequest,::flyteidl::admin::WorkflowAttributesUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetWorkflowAttributes() { - ::grpc::Service::MarkMethodStreamed(43, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesGetRequest, ::flyteidl::admin::WorkflowAttributesGetResponse>(std::bind(&WithStreamedUnaryMethod_GetWorkflowAttributes::StreamedGetWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesGetRequest* request, ::flyteidl::admin::WorkflowAttributesGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesGetRequest,::flyteidl::admin::WorkflowAttributesGetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteWorkflowAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteWorkflowAttributes() { - ::grpc::Service::MarkMethodStreamed(44, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowAttributesDeleteRequest, ::flyteidl::admin::WorkflowAttributesDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteWorkflowAttributes::StreamedDeleteWorkflowAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteWorkflowAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteWorkflowAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowAttributesDeleteRequest* request, ::flyteidl::admin::WorkflowAttributesDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteWorkflowAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowAttributesDeleteRequest,::flyteidl::admin::WorkflowAttributesDeleteResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListMatchableAttributes : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListMatchableAttributes() { - ::grpc::Service::MarkMethodStreamed(45, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ListMatchableAttributesRequest, ::flyteidl::admin::ListMatchableAttributesResponse>(std::bind(&WithStreamedUnaryMethod_ListMatchableAttributes::StreamedListMatchableAttributes, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListMatchableAttributes() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListMatchableAttributes(::grpc::ServerContext* context, const ::flyteidl::admin::ListMatchableAttributesRequest* request, ::flyteidl::admin::ListMatchableAttributesResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListMatchableAttributes(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ListMatchableAttributesRequest,::flyteidl::admin::ListMatchableAttributesResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListNamedEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListNamedEntities() { - ::grpc::Service::MarkMethodStreamed(46, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityListRequest, ::flyteidl::admin::NamedEntityList>(std::bind(&WithStreamedUnaryMethod_ListNamedEntities::StreamedListNamedEntities, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListNamedEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListNamedEntities(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityListRequest* request, ::flyteidl::admin::NamedEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListNamedEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityListRequest,::flyteidl::admin::NamedEntityList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetNamedEntity() { - ::grpc::Service::MarkMethodStreamed(47, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityGetRequest, ::flyteidl::admin::NamedEntity>(std::bind(&WithStreamedUnaryMethod_GetNamedEntity::StreamedGetNamedEntity, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityGetRequest* request, ::flyteidl::admin::NamedEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetNamedEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityGetRequest,::flyteidl::admin::NamedEntity>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_UpdateNamedEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UpdateNamedEntity() { - ::grpc::Service::MarkMethodStreamed(48, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::NamedEntityUpdateRequest, ::flyteidl::admin::NamedEntityUpdateResponse>(std::bind(&WithStreamedUnaryMethod_UpdateNamedEntity::StreamedUpdateNamedEntity, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UpdateNamedEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UpdateNamedEntity(::grpc::ServerContext* context, const ::flyteidl::admin::NamedEntityUpdateRequest* request, ::flyteidl::admin::NamedEntityUpdateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUpdateNamedEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::NamedEntityUpdateRequest,::flyteidl::admin::NamedEntityUpdateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetVersion : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetVersion() { - ::grpc::Service::MarkMethodStreamed(49, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetVersionRequest, ::flyteidl::admin::GetVersionResponse>(std::bind(&WithStreamedUnaryMethod_GetVersion::StreamedGetVersion, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetVersion() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetVersion(::grpc::ServerContext* context, const ::flyteidl::admin::GetVersionRequest* request, ::flyteidl::admin::GetVersionResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetVersion(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetVersionRequest,::flyteidl::admin::GetVersionResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetDescriptionEntity : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetDescriptionEntity() { - ::grpc::Service::MarkMethodStreamed(50, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ObjectGetRequest, ::flyteidl::admin::DescriptionEntity>(std::bind(&WithStreamedUnaryMethod_GetDescriptionEntity::StreamedGetDescriptionEntity, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetDescriptionEntity() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetDescriptionEntity(::grpc::ServerContext* context, const ::flyteidl::admin::ObjectGetRequest* request, ::flyteidl::admin::DescriptionEntity* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetDescriptionEntity(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ObjectGetRequest,::flyteidl::admin::DescriptionEntity>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListDescriptionEntities : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListDescriptionEntities() { - ::grpc::Service::MarkMethodStreamed(51, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::DescriptionEntityListRequest, ::flyteidl::admin::DescriptionEntityList>(std::bind(&WithStreamedUnaryMethod_ListDescriptionEntities::StreamedListDescriptionEntities, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListDescriptionEntities() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListDescriptionEntities(::grpc::ServerContext* context, const ::flyteidl::admin::DescriptionEntityListRequest* request, ::flyteidl::admin::DescriptionEntityList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListDescriptionEntities(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DescriptionEntityListRequest,::flyteidl::admin::DescriptionEntityList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetExecutionMetrics : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetExecutionMetrics() { - ::grpc::Service::MarkMethodStreamed(52, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse>(std::bind(&WithStreamedUnaryMethod_GetExecutionMetrics::StreamedGetExecutionMetrics, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetExecutionMetrics() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetExecutionMetrics(::grpc::ServerContext* context, const ::flyteidl::admin::WorkflowExecutionGetMetricsRequest* request, ::flyteidl::admin::WorkflowExecutionGetMetricsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetExecutionMetrics(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::WorkflowExecutionGetMetricsRequest,::flyteidl::admin::WorkflowExecutionGetMetricsResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateTask > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fadmin_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc deleted file mode 100644 index 991c8bb312..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.cc +++ /dev/null @@ -1,351 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/admin.proto - -#include "flyteidl/service/admin.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace service { -} // namespace service -} // namespace flyteidl -void InitDefaults_flyteidl_2fservice_2fadmin_2eproto() { -} - -constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fadmin_2eproto = nullptr; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fadmin_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fadmin_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fadmin_2eproto::offsets[1] = {}; -static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; -static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fadmin_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fadmin_2eproto, "flyteidl/service/admin.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fadmin_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fadmin_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fadmin_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fadmin_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fadmin_2eproto[] = - "\n\034flyteidl/service/admin.proto\022\020flyteidl" - ".service\032\034google/api/annotations.proto\032\034" - "flyteidl/admin/project.proto\032.flyteidl/a" - "dmin/project_domain_attributes.proto\032\'fl" - "yteidl/admin/project_attributes.proto\032\031f" - "lyteidl/admin/task.proto\032\035flyteidl/admin" - "/workflow.proto\032(flyteidl/admin/workflow" - "_attributes.proto\032 flyteidl/admin/launch" - "_plan.proto\032\032flyteidl/admin/event.proto\032" - "\036flyteidl/admin/execution.proto\032\'flyteid" - "l/admin/matchable_resource.proto\032#flytei" - "dl/admin/node_execution.proto\032#flyteidl/" - "admin/task_execution.proto\032\034flyteidl/adm" - "in/version.proto\032\033flyteidl/admin/common." - "proto\032\'flyteidl/admin/description_entity" - ".proto2\204N\n\014AdminService\022m\n\nCreateTask\022!." - "flyteidl.admin.TaskCreateRequest\032\".flyte" - "idl.admin.TaskCreateResponse\"\030\202\323\344\223\002\022\"\r/a" - "pi/v1/tasks:\001*\022\210\001\n\007GetTask\022 .flyteidl.ad" - "min.ObjectGetRequest\032\024.flyteidl.admin.Ta" - "sk\"E\202\323\344\223\002\?\022=/api/v1/tasks/{id.project}/{" - "id.domain}/{id.name}/{id.version}\022\227\001\n\013Li" - "stTaskIds\0220.flyteidl.admin.NamedEntityId" - "entifierListRequest\032).flyteidl.admin.Nam" - "edEntityIdentifierList\"+\202\323\344\223\002%\022#/api/v1/" - "task_ids/{project}/{domain}\022\256\001\n\tListTask" - "s\022#.flyteidl.admin.ResourceListRequest\032\030" - ".flyteidl.admin.TaskList\"b\202\323\344\223\002\\\0220/api/v" - "1/tasks/{id.project}/{id.domain}/{id.nam" - "e}Z(\022&/api/v1/tasks/{id.project}/{id.dom" - "ain}\022}\n\016CreateWorkflow\022%.flyteidl.admin." - "WorkflowCreateRequest\032&.flyteidl.admin.W" - "orkflowCreateResponse\"\034\202\323\344\223\002\026\"\021/api/v1/w" - "orkflows:\001*\022\224\001\n\013GetWorkflow\022 .flyteidl.a" - "dmin.ObjectGetRequest\032\030.flyteidl.admin.W" - "orkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.p" - "roject}/{id.domain}/{id.name}/{id.versio" - "n}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin." - "NamedEntityIdentifierListRequest\032).flyte" - "idl.admin.NamedEntityIdentifierList\"/\202\323\344" - "\223\002)\022\'/api/v1/workflow_ids/{project}/{dom" - "ain}\022\276\001\n\rListWorkflows\022#.flyteidl.admin." - "ResourceListRequest\032\034.flyteidl.admin.Wor" - "kflowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id" - ".project}/{id.domain}/{id.name}Z,\022*/api/" - "v1/workflows/{id.project}/{id.domain}\022\206\001" - "\n\020CreateLaunchPlan\022\'.flyteidl.admin.Laun" - "chPlanCreateRequest\032(.flyteidl.admin.Lau" - "nchPlanCreateResponse\"\037\202\323\344\223\002\031\"\024/api/v1/l" - "aunch_plans:\001*\022\233\001\n\rGetLaunchPlan\022 .flyte" - "idl.admin.ObjectGetRequest\032\032.flyteidl.ad" - "min.LaunchPlan\"L\202\323\344\223\002F\022D/api/v1/launch_p" - "lans/{id.project}/{id.domain}/{id.name}/" - "{id.version}\022\242\001\n\023GetActiveLaunchPlan\022\'.f" - "lyteidl.admin.ActiveLaunchPlanRequest\032\032." - "flyteidl.admin.LaunchPlan\"F\202\323\344\223\002@\022>/api/" - "v1/active_launch_plans/{id.project}/{id." - "domain}/{id.name}\022\234\001\n\025ListActiveLaunchPl" - "ans\022+.flyteidl.admin.ActiveLaunchPlanLis" - "tRequest\032\036.flyteidl.admin.LaunchPlanList" - "\"6\202\323\344\223\0020\022./api/v1/active_launch_plans/{p" - "roject}/{domain}\022\244\001\n\021ListLaunchPlanIds\0220" - ".flyteidl.admin.NamedEntityIdentifierLis" - "tRequest\032).flyteidl.admin.NamedEntityIde" - "ntifierList\"2\202\323\344\223\002,\022*/api/v1/launch_plan" - "_ids/{project}/{domain}\022\310\001\n\017ListLaunchPl" - "ans\022#.flyteidl.admin.ResourceListRequest" - "\032\036.flyteidl.admin.LaunchPlanList\"p\202\323\344\223\002j" - "\0227/api/v1/launch_plans/{id.project}/{id." - "domain}/{id.name}Z/\022-/api/v1/launch_plan" - "s/{id.project}/{id.domain}\022\266\001\n\020UpdateLau" - "nchPlan\022\'.flyteidl.admin.LaunchPlanUpdat" - "eRequest\032(.flyteidl.admin.LaunchPlanUpda" - "teResponse\"O\202\323\344\223\002I\032D/api/v1/launch_plans" - "/{id.project}/{id.domain}/{id.name}/{id." - "version}:\001*\022\201\001\n\017CreateExecution\022&.flytei" - "dl.admin.ExecutionCreateRequest\032\'.flytei" - "dl.admin.ExecutionCreateResponse\"\035\202\323\344\223\002\027" - "\"\022/api/v1/executions:\001*\022\216\001\n\021RelaunchExec" - "ution\022(.flyteidl.admin.ExecutionRelaunch" - "Request\032\'.flyteidl.admin.ExecutionCreate" - "Response\"&\202\323\344\223\002 \"\033/api/v1/executions/rel" - "aunch:\001*\022\213\001\n\020RecoverExecution\022\'.flyteidl" - ".admin.ExecutionRecoverRequest\032\'.flyteid" - "l.admin.ExecutionCreateResponse\"%\202\323\344\223\002\037\"" - "\032/api/v1/executions/recover:\001*\022\225\001\n\014GetEx" - "ecution\022+.flyteidl.admin.WorkflowExecuti" - "onGetRequest\032\031.flyteidl.admin.Execution\"" - "=\202\323\344\223\0027\0225/api/v1/executions/{id.project}" - "/{id.domain}/{id.name}\022\244\001\n\017UpdateExecuti" - "on\022&.flyteidl.admin.ExecutionUpdateReque" - "st\032\'.flyteidl.admin.ExecutionUpdateRespo" - "nse\"@\202\323\344\223\002:\0325/api/v1/executions/{id.proj" - "ect}/{id.domain}/{id.name}:\001*\022\271\001\n\020GetExe" - "cutionData\022/.flyteidl.admin.WorkflowExec" - "utionGetDataRequest\0320.flyteidl.admin.Wor" - "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" - "api/v1/data/executions/{id.project}/{id." - "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" - "lyteidl.admin.ResourceListRequest\032\035.flyt" - "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" - "1/executions/{id.project}/{id.domain}\022\255\001" - "\n\022TerminateExecution\022).flyteidl.admin.Ex" - "ecutionTerminateRequest\032*.flyteidl.admin" - ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" - "i/v1/executions/{id.project}/{id.domain}" - "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" - "teidl.admin.NodeExecutionGetRequest\032\035.fl" - "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" - "/v1/node_executions/{id.execution_id.pro" - "ject}/{id.execution_id.domain}/{id.execu" - "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" - "xecutions\022(.flyteidl.admin.NodeExecution" - "ListRequest\032!.flyteidl.admin.NodeExecuti" - "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" - "{workflow_execution_id.project}/{workflo" - "w_execution_id.domain}/{workflow_executi" - "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" - "k\022/.flyteidl.admin.NodeExecutionForTaskL" - "istRequest\032!.flyteidl.admin.NodeExecutio" - "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" - "executions/{task_execution_id.node_execu" - "tion_id.execution_id.project}/{task_exec" - "ution_id.node_execution_id.execution_id." - "domain}/{task_execution_id.node_executio" - "n_id.execution_id.name}/{task_execution_" - "id.node_execution_id.node_id}/{task_exec" - "ution_id.task_id.project}/{task_executio" - "n_id.task_id.domain}/{task_execution_id." - "task_id.name}/{task_execution_id.task_id" - ".version}/{task_execution_id.retry_attem" - "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." - "admin.NodeExecutionGetDataRequest\032,.flyt" - "eidl.admin.NodeExecutionGetDataResponse\"" - "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" - "d.execution_id.project}/{id.execution_id" - ".domain}/{id.execution_id.name}/{id.node" - "_id}\022\177\n\017RegisterProject\022&.flyteidl.admin" - ".ProjectRegisterRequest\032\'.flyteidl.admin" - ".ProjectRegisterResponse\"\033\202\323\344\223\002\025\"\020/api/v" - "1/projects:\001*\022q\n\rUpdateProject\022\027.flyteid" - "l.admin.Project\032%.flyteidl.admin.Project" - "UpdateResponse\" \202\323\344\223\002\032\032\025/api/v1/projects" - "/{id}:\001*\022f\n\014ListProjects\022\".flyteidl.admi" - "n.ProjectListRequest\032\030.flyteidl.admin.Pr" - "ojects\"\030\202\323\344\223\002\022\022\020/api/v1/projects\022\231\001\n\023Cre" - "ateWorkflowEvent\022-.flyteidl.admin.Workfl" - "owExecutionEventRequest\032..flyteidl.admin" - ".WorkflowExecutionEventResponse\"#\202\323\344\223\002\035\"" - "\030/api/v1/events/workflows:\001*\022\211\001\n\017CreateN" - "odeEvent\022).flyteidl.admin.NodeExecutionE" - "ventRequest\032*.flyteidl.admin.NodeExecuti" - "onEventResponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/" - "nodes:\001*\022\211\001\n\017CreateTaskEvent\022).flyteidl." - "admin.TaskExecutionEventRequest\032*.flytei" - "dl.admin.TaskExecutionEventResponse\"\037\202\323\344" - "\223\002\031\"\024/api/v1/events/tasks:\001*\022\200\003\n\020GetTask" - "Execution\022\'.flyteidl.admin.TaskExecution" - "GetRequest\032\035.flyteidl.admin.TaskExecutio" - "n\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{i" - "d.node_execution_id.execution_id.project" - "}/{id.node_execution_id.execution_id.dom" - "ain}/{id.node_execution_id.execution_id." - "name}/{id.node_execution_id.node_id}/{id" - ".task_id.project}/{id.task_id.domain}/{i" - "d.task_id.name}/{id.task_id.version}/{id" - ".retry_attempt}\022\230\002\n\022ListTaskExecutions\022(" - ".flyteidl.admin.TaskExecutionListRequest" - "\032!.flyteidl.admin.TaskExecutionList\"\264\001\202\323" - "\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_ex" - "ecution_id.execution_id.project}/{node_e" - "xecution_id.execution_id.domain}/{node_e" - "xecution_id.execution_id.name}/{node_exe" - "cution_id.node_id}\022\234\003\n\024GetTaskExecutionD" - "ata\022+.flyteidl.admin.TaskExecutionGetDat" - "aRequest\032,.flyteidl.admin.TaskExecutionG" - "etDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/api/v1/data/" - "task_executions/{id.node_execution_id.ex" - "ecution_id.project}/{id.node_execution_i" - "d.execution_id.domain}/{id.node_executio" - "n_id.execution_id.name}/{id.node_executi" - "on_id.node_id}/{id.task_id.project}/{id." - "task_id.domain}/{id.task_id.name}/{id.ta" - "sk_id.version}/{id.retry_attempt}\022\343\001\n\035Up" - "dateProjectDomainAttributes\0224.flyteidl.a" - "dmin.ProjectDomainAttributesUpdateReques" - "t\0325.flyteidl.admin.ProjectDomainAttribut" - "esUpdateResponse\"U\202\323\344\223\002O\032J/api/v1/projec" - "t_domain_attributes/{attributes.project}" - "/{attributes.domain}:\001*\022\301\001\n\032GetProjectDo" - "mainAttributes\0221.flyteidl.admin.ProjectD" - "omainAttributesGetRequest\0322.flyteidl.adm" - "in.ProjectDomainAttributesGetResponse\"<\202" - "\323\344\223\0026\0224/api/v1/project_domain_attributes" - "/{project}/{domain}\022\315\001\n\035DeleteProjectDom" - "ainAttributes\0224.flyteidl.admin.ProjectDo" - "mainAttributesDeleteRequest\0325.flyteidl.a" - "dmin.ProjectDomainAttributesDeleteRespon" - "se\"\?\202\323\344\223\0029*4/api/v1/project_domain_attri" - "butes/{project}/{domain}:\001*\022\266\001\n\027UpdatePr" - "ojectAttributes\022..flyteidl.admin.Project" - "AttributesUpdateRequest\032/.flyteidl.admin" - ".ProjectAttributesUpdateResponse\":\202\323\344\223\0024" - "\032//api/v1/project_attributes/{attributes" - ".project}:\001*\022\237\001\n\024GetProjectAttributes\022+." - "flyteidl.admin.ProjectAttributesGetReque" - "st\032,.flyteidl.admin.ProjectAttributesGet" - "Response\",\202\323\344\223\002&\022$/api/v1/project_attrib" - "utes/{project}\022\253\001\n\027DeleteProjectAttribut" - "es\022..flyteidl.admin.ProjectAttributesDel" - "eteRequest\032/.flyteidl.admin.ProjectAttri" - "butesDeleteResponse\"/\202\323\344\223\002)*$/api/v1/pro" - "ject_attributes/{project}:\001*\022\344\001\n\030UpdateW" - "orkflowAttributes\022/.flyteidl.admin.Workf" - "lowAttributesUpdateRequest\0320.flyteidl.ad" - "min.WorkflowAttributesUpdateResponse\"e\202\323" - "\344\223\002_\032Z/api/v1/workflow_attributes/{attri" - "butes.project}/{attributes.domain}/{attr" - "ibutes.workflow}:\001*\022\267\001\n\025GetWorkflowAttri" - "butes\022,.flyteidl.admin.WorkflowAttribute" - "sGetRequest\032-.flyteidl.admin.WorkflowAtt" - "ributesGetResponse\"A\202\323\344\223\002;\0229/api/v1/work" - "flow_attributes/{project}/{domain}/{work" - "flow}\022\303\001\n\030DeleteWorkflowAttributes\022/.fly" - "teidl.admin.WorkflowAttributesDeleteRequ" - "est\0320.flyteidl.admin.WorkflowAttributesD" - "eleteResponse\"D\202\323\344\223\002>*9/api/v1/workflow_" - "attributes/{project}/{domain}/{workflow}" - ":\001*\022\240\001\n\027ListMatchableAttributes\022..flytei" - "dl.admin.ListMatchableAttributesRequest\032" - "/.flyteidl.admin.ListMatchableAttributes" - "Response\"$\202\323\344\223\002\036\022\034/api/v1/matchable_attr" - "ibutes\022\237\001\n\021ListNamedEntities\022&.flyteidl." - "admin.NamedEntityListRequest\032\037.flyteidl." - "admin.NamedEntityList\"A\202\323\344\223\002;\0229/api/v1/n" - "amed_entities/{resource_type}/{project}/" - "{domain}\022\247\001\n\016GetNamedEntity\022%.flyteidl.a" - "dmin.NamedEntityGetRequest\032\033.flyteidl.ad" - "min.NamedEntity\"Q\202\323\344\223\002K\022I/api/v1/named_e" - "ntities/{resource_type}/{id.project}/{id" - ".domain}/{id.name}\022\276\001\n\021UpdateNamedEntity" - "\022(.flyteidl.admin.NamedEntityUpdateReque" - "st\032).flyteidl.admin.NamedEntityUpdateRes" - "ponse\"T\202\323\344\223\002N\032I/api/v1/named_entities/{r" - "esource_type}/{id.project}/{id.domain}/{" - "id.name}:\001*\022l\n\nGetVersion\022!.flyteidl.adm" - "in.GetVersionRequest\032\".flyteidl.admin.Ge" - "tVersionResponse\"\027\202\323\344\223\002\021\022\017/api/v1/versio" - "n\022\304\001\n\024GetDescriptionEntity\022 .flyteidl.ad" - "min.ObjectGetRequest\032!.flyteidl.admin.De" - "scriptionEntity\"g\202\323\344\223\002a\022_/api/v1/descrip" - "tion_entities/{id.resource_type}/{id.pro" - "ject}/{id.domain}/{id.name}/{id.version}" - "\022\222\002\n\027ListDescriptionEntities\022,.flyteidl." - "admin.DescriptionEntityListRequest\032%.fly" - "teidl.admin.DescriptionEntityList\"\241\001\202\323\344\223" - "\002\232\001\022O/api/v1/description_entities/{resou" - "rce_type}/{id.project}/{id.domain}/{id.n" - "ame}ZG\022E/api/v1/description_entities/{re" - "source_type}/{id.project}/{id.domain}\022\305\001" - "\n\023GetExecutionMetrics\0222.flyteidl.admin.W" - "orkflowExecutionGetMetricsRequest\0323.flyt" - "eidl.admin.WorkflowExecutionGetMetricsRe" - "sponse\"E\202\323\344\223\002\?\022=/api/v1/metrics/executio" - "ns/{id.project}/{id.domain}/{id.name}B\?Z" - "=github.com/flyteorg/flyte/flyteidl/gen/" - "pb-go/flyteidl/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fadmin_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fadmin_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fadmin_2eproto, - "flyteidl/service/admin.proto", &assign_descriptors_table_flyteidl_2fservice_2fadmin_2eproto, 10670, -}; - -void AddDescriptors_flyteidl_2fservice_2fadmin_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[16] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fproject_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fproject_5fdomain_5fattributes_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fproject_5fattributes_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2ftask_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fworkflow_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fworkflow_5fattributes_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2flaunch_5fplan_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fevent_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fexecution_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fmatchable_5fresource_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fnode_5fexecution_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2ftask_5fexecution_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fversion_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fcommon_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fdescription_5fentity_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fadmin_2eproto, deps, 16); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fadmin_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fadmin_2eproto(); return true; }(); -namespace flyteidl { -namespace service { - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h deleted file mode 100644 index ca8c835a94..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/admin.pb.h +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/admin.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "google/api/annotations.pb.h" -#include "flyteidl/admin/project.pb.h" -#include "flyteidl/admin/project_domain_attributes.pb.h" -#include "flyteidl/admin/project_attributes.pb.h" -#include "flyteidl/admin/task.pb.h" -#include "flyteidl/admin/workflow.pb.h" -#include "flyteidl/admin/workflow_attributes.pb.h" -#include "flyteidl/admin/launch_plan.pb.h" -#include "flyteidl/admin/event.pb.h" -#include "flyteidl/admin/execution.pb.h" -#include "flyteidl/admin/matchable_resource.pb.h" -#include "flyteidl/admin/node_execution.pb.h" -#include "flyteidl/admin/task_execution.pb.h" -#include "flyteidl/admin/version.pb.h" -#include "flyteidl/admin/common.pb.h" -#include "flyteidl/admin/description_entity.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fadmin_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fadmin_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fadmin_2eproto(); -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -// =================================================================== - - -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fadmin_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc deleted file mode 100644 index 0dd9e3d2d1..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.cc +++ /dev/null @@ -1,272 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/agent.proto - -#include "flyteidl/service/agent.pb.h" -#include "flyteidl/service/agent.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* AsyncAgentService_method_names[] = { - "/flyteidl.service.AsyncAgentService/CreateTask", - "/flyteidl.service.AsyncAgentService/GetTask", - "/flyteidl.service.AsyncAgentService/DeleteTask", -}; - -std::unique_ptr< AsyncAgentService::Stub> AsyncAgentService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< AsyncAgentService::Stub> stub(new AsyncAgentService::Stub(channel)); - return stub; -} - -AsyncAgentService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateTask_(AsyncAgentService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTask_(AsyncAgentService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteTask_(AsyncAgentService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status AsyncAgentService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); -} - -void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -void AsyncAgentService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncAgentService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::CreateTaskResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); -} - -::grpc::Status AsyncAgentService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); -} - -void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -void AsyncAgentService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncAgentService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetTaskResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); -} - -::grpc::Status AsyncAgentService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); -} - -void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -void AsyncAgentService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncAgentService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::DeleteTaskResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); -} - -AsyncAgentService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - AsyncAgentService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( - std::mem_fn(&AsyncAgentService::Service::CreateTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AsyncAgentService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( - std::mem_fn(&AsyncAgentService::Service::GetTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AsyncAgentService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AsyncAgentService::Service, ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( - std::mem_fn(&AsyncAgentService::Service::DeleteTask), this))); -} - -AsyncAgentService::Service::~Service() { -} - -::grpc::Status AsyncAgentService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AsyncAgentService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AsyncAgentService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -static const char* AgentMetadataService_method_names[] = { - "/flyteidl.service.AgentMetadataService/GetAgent", - "/flyteidl.service.AgentMetadataService/ListAgents", -}; - -std::unique_ptr< AgentMetadataService::Stub> AgentMetadataService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< AgentMetadataService::Stub> stub(new AgentMetadataService::Stub(channel)); - return stub; -} - -AgentMetadataService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_GetAgent_(AgentMetadataService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListAgents_(AgentMetadataService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status AgentMetadataService::Stub::GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::flyteidl::admin::GetAgentResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetAgent_, context, request, response); -} - -void AgentMetadataService::Stub::experimental_async::GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgent_, context, request, response, std::move(f)); -} - -void AgentMetadataService::Stub::experimental_async::GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetAgent_, context, request, response, std::move(f)); -} - -void AgentMetadataService::Stub::experimental_async::GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAgent_, context, request, response, reactor); -} - -void AgentMetadataService::Stub::experimental_async::GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetAgent_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>* AgentMetadataService::Stub::AsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetAgentResponse>::Create(channel_.get(), cq, rpcmethod_GetAgent_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>* AgentMetadataService::Stub::PrepareAsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::GetAgentResponse>::Create(channel_.get(), cq, rpcmethod_GetAgent_, context, request, false); -} - -::grpc::Status AgentMetadataService::Stub::ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::flyteidl::admin::ListAgentsResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListAgents_, context, request, response); -} - -void AgentMetadataService::Stub::experimental_async::ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListAgents_, context, request, response, std::move(f)); -} - -void AgentMetadataService::Stub::experimental_async::ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListAgents_, context, request, response, std::move(f)); -} - -void AgentMetadataService::Stub::experimental_async::ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListAgents_, context, request, response, reactor); -} - -void AgentMetadataService::Stub::experimental_async::ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListAgents_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>* AgentMetadataService::Stub::AsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListAgentsResponse>::Create(channel_.get(), cq, rpcmethod_ListAgents_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>* AgentMetadataService::Stub::PrepareAsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::ListAgentsResponse>::Create(channel_.get(), cq, rpcmethod_ListAgents_, context, request, false); -} - -AgentMetadataService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - AgentMetadataService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AgentMetadataService::Service, ::flyteidl::admin::GetAgentRequest, ::flyteidl::admin::GetAgentResponse>( - std::mem_fn(&AgentMetadataService::Service::GetAgent), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AgentMetadataService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AgentMetadataService::Service, ::flyteidl::admin::ListAgentsRequest, ::flyteidl::admin::ListAgentsResponse>( - std::mem_fn(&AgentMetadataService::Service::ListAgents), this))); -} - -AgentMetadataService::Service::~Service() { -} - -::grpc::Status AgentMetadataService::Service::GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AgentMetadataService::Service::ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h deleted file mode 100644 index e1cb5da223..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.grpc.pb.h +++ /dev/null @@ -1,964 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/agent.proto -#ifndef GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED - -#include "flyteidl/service/agent.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. -class AsyncAgentService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.AsyncAgentService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Send a task create request to the agent server. - virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - // Get job status. - virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - // Delete the task resource. - virtual ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Send a task create request to the agent server. - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Get job status. - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Delete the task resource. - virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::flyteidl::admin::CreateTaskResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::flyteidl::admin::GetTaskResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::flyteidl::admin::DeleteTaskResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(AsyncDeleteTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; - void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, std::function) override; - void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::CreateTaskResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::CreateTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetTaskResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::DeleteTaskResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::admin::DeleteTaskRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; - const ::grpc::internal::RpcMethod rpcmethod_GetTask_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Send a task create request to the agent server. - virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response); - // Get job status. - virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response); - // Delete the task resource. - virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response); - }; - template - class WithAsyncMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateTask() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::admin::CreateTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::CreateTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetTask() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::admin::GetTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteTask() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTask(::grpc::ServerContext* context, ::flyteidl::admin::DeleteTaskRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::DeleteTaskResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateTask > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::CreateTaskRequest* request, - ::flyteidl::admin::CreateTaskResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::GetTaskRequest* request, - ::flyteidl::admin::GetTaskResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteTask() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::DeleteTaskRequest* request, - ::flyteidl::admin::DeleteTaskResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateTask() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetTask() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteTask() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateTask() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetTask() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteTask() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateTask() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::CreateTaskRequest, ::flyteidl::admin::CreateTaskResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::admin::CreateTaskRequest* request, ::flyteidl::admin::CreateTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::CreateTaskRequest,::flyteidl::admin::CreateTaskResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetTask() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetTaskRequest, ::flyteidl::admin::GetTaskResponse>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::admin::GetTaskRequest* request, ::flyteidl::admin::GetTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetTaskRequest,::flyteidl::admin::GetTaskResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteTask() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::DeleteTaskRequest, ::flyteidl::admin::DeleteTaskResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTask::StreamedDeleteTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::admin::DeleteTaskRequest* request, ::flyteidl::admin::DeleteTaskResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::DeleteTaskRequest,::flyteidl::admin::DeleteTaskResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; -}; - -// AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. -// This service allows propeller or users to get the metadata of agents. -class AgentMetadataService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.AgentMetadataService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - virtual ::grpc::Status GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::flyteidl::admin::GetAgentResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>> AsyncGetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>>(AsyncGetAgentRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>> PrepareAsyncGetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>>(PrepareAsyncGetAgentRaw(context, request, cq)); - } - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - virtual ::grpc::Status ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::flyteidl::admin::ListAgentsResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>> AsyncListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>>(AsyncListAgentsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>> PrepareAsyncListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>>(PrepareAsyncListAgentsRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - virtual void GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, std::function) = 0; - virtual void GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, std::function) = 0; - virtual void GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - virtual void ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, std::function) = 0; - virtual void ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, std::function) = 0; - virtual void ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>* AsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::GetAgentResponse>* PrepareAsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>* AsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::ListAgentsResponse>* PrepareAsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::flyteidl::admin::GetAgentResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>> AsyncGetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>>(AsyncGetAgentRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>> PrepareAsyncGetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>>(PrepareAsyncGetAgentRaw(context, request, cq)); - } - ::grpc::Status ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::flyteidl::admin::ListAgentsResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>> AsyncListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>>(AsyncListAgentsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>> PrepareAsyncListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>>(PrepareAsyncListAgentsRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, std::function) override; - void GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, std::function) override; - void GetAgent(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetAgent(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, std::function) override; - void ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, std::function) override; - void ListAgents(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListAgents(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>* AsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::GetAgentResponse>* PrepareAsyncGetAgentRaw(::grpc::ClientContext* context, const ::flyteidl::admin::GetAgentRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>* AsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::ListAgentsResponse>* PrepareAsyncListAgentsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::ListAgentsRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_GetAgent_; - const ::grpc::internal::RpcMethod rpcmethod_ListAgents_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - virtual ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response); - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - virtual ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response); - }; - template - class WithAsyncMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetAgent() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetAgent(::grpc::ServerContext* context, ::flyteidl::admin::GetAgentRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::GetAgentResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListAgents() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListAgents(::grpc::ServerContext* context, ::flyteidl::admin::ListAgentsRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::ListAgentsResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_GetAgent > AsyncService; - template - class ExperimentalWithCallbackMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetAgent() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetAgentRequest, ::flyteidl::admin::GetAgentResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::GetAgentRequest* request, - ::flyteidl::admin::GetAgentResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetAgent(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetAgent( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::GetAgentRequest, ::flyteidl::admin::GetAgentResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::GetAgentRequest, ::flyteidl::admin::GetAgentResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListAgents() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListAgentsRequest, ::flyteidl::admin::ListAgentsResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::ListAgentsRequest* request, - ::flyteidl::admin::ListAgentsResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListAgents(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListAgents( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::ListAgentsRequest, ::flyteidl::admin::ListAgentsResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::ListAgentsRequest, ::flyteidl::admin::ListAgentsResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_GetAgent > ExperimentalCallbackService; - template - class WithGenericMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetAgent() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListAgents() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetAgent() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetAgent(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListAgents() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListAgents(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetAgent() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetAgent(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetAgent(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListAgents() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListAgents(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListAgents(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_GetAgent : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetAgent() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::GetAgentRequest, ::flyteidl::admin::GetAgentResponse>(std::bind(&WithStreamedUnaryMethod_GetAgent::StreamedGetAgent, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetAgent() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetAgent(::grpc::ServerContext* context, const ::flyteidl::admin::GetAgentRequest* request, ::flyteidl::admin::GetAgentResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetAgent(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::GetAgentRequest,::flyteidl::admin::GetAgentResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListAgents : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListAgents() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::ListAgentsRequest, ::flyteidl::admin::ListAgentsResponse>(std::bind(&WithStreamedUnaryMethod_ListAgents::StreamedListAgents, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListAgents() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListAgents(::grpc::ServerContext* context, const ::flyteidl::admin::ListAgentsRequest* request, ::flyteidl::admin::ListAgentsResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListAgents(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::ListAgentsRequest,::flyteidl::admin::ListAgentsResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_GetAgent > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetAgent > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fagent_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc deleted file mode 100644 index 4b7c5d0557..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.cc +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent.proto - -#include "flyteidl/service/agent.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace service { -} // namespace service -} // namespace flyteidl -void InitDefaults_flyteidl_2fservice_2fagent_2eproto() { -} - -constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fagent_2eproto = nullptr; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets[1] = {}; -static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; -static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fagent_2eproto, "flyteidl/service/agent.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fagent_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fagent_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fagent_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fagent_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto[] = - "\n\034flyteidl/service/agent.proto\022\020flyteidl" - ".service\032\034google/api/annotations.proto\032\032" - "flyteidl/admin/agent.proto2\217\002\n\021AsyncAgen" - "tService\022U\n\nCreateTask\022!.flyteidl.admin." - "CreateTaskRequest\032\".flyteidl.admin.Creat" - "eTaskResponse\"\000\022L\n\007GetTask\022\036.flyteidl.ad" - "min.GetTaskRequest\032\037.flyteidl.admin.GetT" - "askResponse\"\000\022U\n\nDeleteTask\022!.flyteidl.a" - "dmin.DeleteTaskRequest\032\".flyteidl.admin." - "DeleteTaskResponse\"\0002\360\001\n\024AgentMetadataSe" - "rvice\022k\n\010GetAgent\022\037.flyteidl.admin.GetAg" - "entRequest\032 .flyteidl.admin.GetAgentResp" - "onse\"\034\202\323\344\223\002\026\022\024/api/v1/agent/{name}\022k\n\nLi" - "stAgents\022!.flyteidl.admin.ListAgentsRequ" - "est\032\".flyteidl.admin.ListAgentsResponse\"" - "\026\202\323\344\223\002\020\022\016/api/v1/agentsB\?Z=github.com/fl" - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" - "/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fagent_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fagent_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fagent_2eproto, - "flyteidl/service/agent.proto", &assign_descriptors_table_flyteidl_2fservice_2fagent_2eproto, 696, -}; - -void AddDescriptors_flyteidl_2fservice_2fagent_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fagent_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fagent_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fagent_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); return true; }(); -namespace flyteidl { -namespace service { - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h deleted file mode 100644 index 2b91672863..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/agent.pb.h +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "google/api/annotations.pb.h" -#include "flyteidl/admin/agent.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fagent_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fagent_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fagent_2eproto(); -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -// =================================================================== - - -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fagent_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc deleted file mode 100644 index c56ddb445d..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.cc +++ /dev/null @@ -1,127 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/auth.proto - -#include "flyteidl/service/auth.pb.h" -#include "flyteidl/service/auth.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* AuthMetadataService_method_names[] = { - "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", - "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", -}; - -std::unique_ptr< AuthMetadataService::Stub> AuthMetadataService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< AuthMetadataService::Stub> stub(new AuthMetadataService::Stub(channel)); - return stub; -} - -AuthMetadataService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_GetOAuth2Metadata_(AuthMetadataService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetPublicClientConfig_(AuthMetadataService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status AuthMetadataService::Stub::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOAuth2Metadata_, context, request, response); -} - -void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, std::move(f)); -} - -void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, std::move(f)); -} - -void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, reactor); -} - -void AuthMetadataService::Stub::experimental_async::GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOAuth2Metadata_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AuthMetadataService::Stub::AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::OAuth2MetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetOAuth2Metadata_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AuthMetadataService::Stub::PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::OAuth2MetadataResponse>::Create(channel_.get(), cq, rpcmethod_GetOAuth2Metadata_, context, request, false); -} - -::grpc::Status AuthMetadataService::Stub::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetPublicClientConfig_, context, request, response); -} - -void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, std::move(f)); -} - -void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, std::move(f)); -} - -void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, reactor); -} - -void AuthMetadataService::Stub::experimental_async::GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetPublicClientConfig_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AuthMetadataService::Stub::AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::PublicClientAuthConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetPublicClientConfig_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AuthMetadataService::Stub::PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::PublicClientAuthConfigResponse>::Create(channel_.get(), cq, rpcmethod_GetPublicClientConfig_, context, request, false); -} - -AuthMetadataService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - AuthMetadataService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AuthMetadataService::Service, ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>( - std::mem_fn(&AuthMetadataService::Service::GetOAuth2Metadata), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - AuthMetadataService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< AuthMetadataService::Service, ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>( - std::mem_fn(&AuthMetadataService::Service::GetPublicClientConfig), this))); -} - -AuthMetadataService::Service::~Service() { -} - -::grpc::Status AuthMetadataService::Service::GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status AuthMetadataService::Service::GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h deleted file mode 100644 index 756b4eaa03..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/auth.grpc.pb.h +++ /dev/null @@ -1,428 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/auth.proto -#ifndef GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED - -#include "flyteidl/service/auth.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// The following defines an RPC service that is also served over HTTP via grpc-gateway. -// Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go -// RPCs defined in this service must be anonymously accessible. -class AuthMetadataService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.AuthMetadataService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - virtual ::grpc::Status GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>> AsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>>(AsyncGetOAuth2MetadataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>> PrepareAsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>>(PrepareAsyncGetOAuth2MetadataRaw(context, request, cq)); - } - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - virtual ::grpc::Status GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>> AsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>>(AsyncGetPublicClientConfigRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>> PrepareAsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>>(PrepareAsyncGetPublicClientConfigRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) = 0; - virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) = 0; - virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) = 0; - virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) = 0; - virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>* AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::OAuth2MetadataResponse>* PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>* AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::PublicClientAuthConfigResponse>* PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::flyteidl::service::OAuth2MetadataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>> AsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>>(AsyncGetOAuth2MetadataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>> PrepareAsyncGetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>>(PrepareAsyncGetOAuth2MetadataRaw(context, request, cq)); - } - ::grpc::Status GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>> AsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>>(AsyncGetPublicClientConfigRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>> PrepareAsyncGetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>>(PrepareAsyncGetPublicClientConfigRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) override; - void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, std::function) override; - void GetOAuth2Metadata(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOAuth2Metadata(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) override; - void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, std::function) override; - void GetPublicClientConfig(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetPublicClientConfig(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* AsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::OAuth2MetadataResponse>* PrepareAsyncGetOAuth2MetadataRaw(::grpc::ClientContext* context, const ::flyteidl::service::OAuth2MetadataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* AsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::PublicClientAuthConfigResponse>* PrepareAsyncGetPublicClientConfigRaw(::grpc::ClientContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_GetOAuth2Metadata_; - const ::grpc::internal::RpcMethod rpcmethod_GetPublicClientConfig_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - virtual ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response); - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - virtual ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response); - }; - template - class WithAsyncMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetOAuth2Metadata() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOAuth2Metadata(::grpc::ServerContext* context, ::flyteidl::service::OAuth2MetadataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::OAuth2MetadataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetPublicClientConfig() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetPublicClientConfig(::grpc::ServerContext* context, ::flyteidl::service::PublicClientAuthConfigRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::PublicClientAuthConfigResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_GetOAuth2Metadata > AsyncService; - template - class ExperimentalWithCallbackMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetOAuth2Metadata() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::OAuth2MetadataRequest* request, - ::flyteidl::service::OAuth2MetadataResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetOAuth2Metadata(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetOAuth2Metadata( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetPublicClientConfig() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::PublicClientAuthConfigRequest* request, - ::flyteidl::service::PublicClientAuthConfigResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetPublicClientConfig(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetPublicClientConfig( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_GetOAuth2Metadata > ExperimentalCallbackService; - template - class WithGenericMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetOAuth2Metadata() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetPublicClientConfig() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetOAuth2Metadata() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOAuth2Metadata(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetPublicClientConfig() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetPublicClientConfig(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetOAuth2Metadata() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetOAuth2Metadata(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOAuth2Metadata(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetPublicClientConfig() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetPublicClientConfig(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetPublicClientConfig(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_GetOAuth2Metadata : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetOAuth2Metadata() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::OAuth2MetadataRequest, ::flyteidl::service::OAuth2MetadataResponse>(std::bind(&WithStreamedUnaryMethod_GetOAuth2Metadata::StreamedGetOAuth2Metadata, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetOAuth2Metadata() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetOAuth2Metadata(::grpc::ServerContext* context, const ::flyteidl::service::OAuth2MetadataRequest* request, ::flyteidl::service::OAuth2MetadataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetOAuth2Metadata(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::OAuth2MetadataRequest,::flyteidl::service::OAuth2MetadataResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetPublicClientConfig : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetPublicClientConfig() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::PublicClientAuthConfigRequest, ::flyteidl::service::PublicClientAuthConfigResponse>(std::bind(&WithStreamedUnaryMethod_GetPublicClientConfig::StreamedGetPublicClientConfig, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetPublicClientConfig() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetPublicClientConfig(::grpc::ServerContext* context, const ::flyteidl::service::PublicClientAuthConfigRequest* request, ::flyteidl::service::PublicClientAuthConfigResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetPublicClientConfig(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::PublicClientAuthConfigRequest,::flyteidl::service::PublicClientAuthConfigResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_GetOAuth2Metadata > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetOAuth2Metadata > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fauth_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc deleted file mode 100644 index d505a960aa..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.cc +++ /dev/null @@ -1,2237 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/auth.proto - -#include "flyteidl/service/auth.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace service { -class OAuth2MetadataRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _OAuth2MetadataRequest_default_instance_; -class OAuth2MetadataResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _OAuth2MetadataResponse_default_instance_; -class PublicClientAuthConfigRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PublicClientAuthConfigRequest_default_instance_; -class PublicClientAuthConfigResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PublicClientAuthConfigResponse_default_instance_; -} // namespace service -} // namespace flyteidl -static void InitDefaultsOAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_OAuth2MetadataRequest_default_instance_; - new (ptr) ::flyteidl::service::OAuth2MetadataRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::OAuth2MetadataRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto}, {}}; - -static void InitDefaultsOAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_OAuth2MetadataResponse_default_instance_; - new (ptr) ::flyteidl::service::OAuth2MetadataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::OAuth2MetadataResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsOAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto}, {}}; - -static void InitDefaultsPublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_PublicClientAuthConfigRequest_default_instance_; - new (ptr) ::flyteidl::service::PublicClientAuthConfigRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::PublicClientAuthConfigRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto}, {}}; - -static void InitDefaultsPublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_PublicClientAuthConfigResponse_default_instance_; - new (ptr) ::flyteidl::service::PublicClientAuthConfigResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::PublicClientAuthConfigResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto}, {}}; - -void InitDefaults_flyteidl_2fservice_2fauth_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fauth_2eproto[4]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fauth_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fauth_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fauth_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, issuer_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, authorization_endpoint_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, token_endpoint_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, response_types_supported_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, scopes_supported_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, token_endpoint_auth_methods_supported_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, jwks_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, code_challenge_methods_supported_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, grant_types_supported_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::OAuth2MetadataResponse, device_authorization_endpoint_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, client_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, redirect_uri_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, scopes_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, authorization_metadata_key_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, service_http_endpoint_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PublicClientAuthConfigResponse, audience_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::service::OAuth2MetadataRequest)}, - { 5, -1, sizeof(::flyteidl::service::OAuth2MetadataResponse)}, - { 20, -1, sizeof(::flyteidl::service::PublicClientAuthConfigRequest)}, - { 25, -1, sizeof(::flyteidl::service::PublicClientAuthConfigResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::service::_OAuth2MetadataRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_OAuth2MetadataResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_PublicClientAuthConfigRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_PublicClientAuthConfigResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fauth_2eproto, "flyteidl/service/auth.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fauth_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fauth_2eproto, 4, file_level_enum_descriptors_flyteidl_2fservice_2fauth_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fauth_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fauth_2eproto[] = - "\n\033flyteidl/service/auth.proto\022\020flyteidl." - "service\032\034google/api/annotations.proto\"\027\n" - "\025OAuth2MetadataRequest\"\315\002\n\026OAuth2Metadat" - "aResponse\022\016\n\006issuer\030\001 \001(\t\022\036\n\026authorizati" - "on_endpoint\030\002 \001(\t\022\026\n\016token_endpoint\030\003 \001(" - "\t\022 \n\030response_types_supported\030\004 \003(\t\022\030\n\020s" - "copes_supported\030\005 \003(\t\022-\n%token_endpoint_" - "auth_methods_supported\030\006 \003(\t\022\020\n\010jwks_uri" - "\030\007 \001(\t\022(\n code_challenge_methods_support" - "ed\030\010 \003(\t\022\035\n\025grant_types_supported\030\t \003(\t\022" - "%\n\035device_authorization_endpoint\030\n \001(\t\"\037" - "\n\035PublicClientAuthConfigRequest\"\256\001\n\036Publ" - "icClientAuthConfigResponse\022\021\n\tclient_id\030" - "\001 \001(\t\022\024\n\014redirect_uri\030\002 \001(\t\022\016\n\006scopes\030\003 " - "\003(\t\022\"\n\032authorization_metadata_key\030\004 \001(\t\022" - "\035\n\025service_http_endpoint\030\005 \001(\t\022\020\n\010audien" - "ce\030\006 \001(\t2\315\002\n\023AuthMetadataService\022\227\001\n\021Get" - "OAuth2Metadata\022\'.flyteidl.service.OAuth2" - "MetadataRequest\032(.flyteidl.service.OAuth" - "2MetadataResponse\"/\202\323\344\223\002)\022\'/.well-known/" - "oauth-authorization-server\022\233\001\n\025GetPublic" - "ClientConfig\022/.flyteidl.service.PublicCl" - "ientAuthConfigRequest\0320.flyteidl.service" - ".PublicClientAuthConfigResponse\"\037\202\323\344\223\002\031\022" - "\027/config/v1/flyte_clientB\?Z=github.com/f" - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" - "l/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fauth_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fauth_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fauth_2eproto, - "flyteidl/service/auth.proto", &assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto, 1057, -}; - -void AddDescriptors_flyteidl_2fservice_2fauth_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[1] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fauth_2eproto, deps, 1); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fauth_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fauth_2eproto(); return true; }(); -namespace flyteidl { -namespace service { - -// =================================================================== - -void OAuth2MetadataRequest::InitAsDefaultInstance() { -} -class OAuth2MetadataRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -OAuth2MetadataRequest::OAuth2MetadataRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.OAuth2MetadataRequest) -} -OAuth2MetadataRequest::OAuth2MetadataRequest(const OAuth2MetadataRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.service.OAuth2MetadataRequest) -} - -void OAuth2MetadataRequest::SharedCtor() { -} - -OAuth2MetadataRequest::~OAuth2MetadataRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.OAuth2MetadataRequest) - SharedDtor(); -} - -void OAuth2MetadataRequest::SharedDtor() { -} - -void OAuth2MetadataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OAuth2MetadataRequest& OAuth2MetadataRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2MetadataRequest_flyteidl_2fservice_2fauth_2eproto.base); - return *internal_default_instance(); -} - - -void OAuth2MetadataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.OAuth2MetadataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* OAuth2MetadataRequest::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool OAuth2MetadataRequest::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.service.OAuth2MetadataRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.service.OAuth2MetadataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.OAuth2MetadataRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void OAuth2MetadataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.OAuth2MetadataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.OAuth2MetadataRequest) -} - -::google::protobuf::uint8* OAuth2MetadataRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.OAuth2MetadataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.service.OAuth2MetadataRequest) - return target; -} - -size_t OAuth2MetadataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.OAuth2MetadataRequest) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OAuth2MetadataRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.OAuth2MetadataRequest) - GOOGLE_DCHECK_NE(&from, this); - const OAuth2MetadataRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.OAuth2MetadataRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.OAuth2MetadataRequest) - MergeFrom(*source); - } -} - -void OAuth2MetadataRequest::MergeFrom(const OAuth2MetadataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.OAuth2MetadataRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void OAuth2MetadataRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.OAuth2MetadataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OAuth2MetadataRequest::CopyFrom(const OAuth2MetadataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.OAuth2MetadataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OAuth2MetadataRequest::IsInitialized() const { - return true; -} - -void OAuth2MetadataRequest::Swap(OAuth2MetadataRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void OAuth2MetadataRequest::InternalSwap(OAuth2MetadataRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata OAuth2MetadataRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void OAuth2MetadataResponse::InitAsDefaultInstance() { -} -class OAuth2MetadataResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int OAuth2MetadataResponse::kIssuerFieldNumber; -const int OAuth2MetadataResponse::kAuthorizationEndpointFieldNumber; -const int OAuth2MetadataResponse::kTokenEndpointFieldNumber; -const int OAuth2MetadataResponse::kResponseTypesSupportedFieldNumber; -const int OAuth2MetadataResponse::kScopesSupportedFieldNumber; -const int OAuth2MetadataResponse::kTokenEndpointAuthMethodsSupportedFieldNumber; -const int OAuth2MetadataResponse::kJwksUriFieldNumber; -const int OAuth2MetadataResponse::kCodeChallengeMethodsSupportedFieldNumber; -const int OAuth2MetadataResponse::kGrantTypesSupportedFieldNumber; -const int OAuth2MetadataResponse::kDeviceAuthorizationEndpointFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -OAuth2MetadataResponse::OAuth2MetadataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.OAuth2MetadataResponse) -} -OAuth2MetadataResponse::OAuth2MetadataResponse(const OAuth2MetadataResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - response_types_supported_(from.response_types_supported_), - scopes_supported_(from.scopes_supported_), - token_endpoint_auth_methods_supported_(from.token_endpoint_auth_methods_supported_), - code_challenge_methods_supported_(from.code_challenge_methods_supported_), - grant_types_supported_(from.grant_types_supported_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.issuer().size() > 0) { - issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); - } - authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.authorization_endpoint().size() > 0) { - authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_endpoint_); - } - token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.token_endpoint().size() > 0) { - token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); - } - jwks_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.jwks_uri().size() > 0) { - jwks_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.jwks_uri_); - } - device_authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.device_authorization_endpoint().size() > 0) { - device_authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_authorization_endpoint_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.OAuth2MetadataResponse) -} - -void OAuth2MetadataResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); - issuer_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - jwks_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - device_authorization_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -OAuth2MetadataResponse::~OAuth2MetadataResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.OAuth2MetadataResponse) - SharedDtor(); -} - -void OAuth2MetadataResponse::SharedDtor() { - issuer_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - jwks_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - device_authorization_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void OAuth2MetadataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const OAuth2MetadataResponse& OAuth2MetadataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_OAuth2MetadataResponse_flyteidl_2fservice_2fauth_2eproto.base); - return *internal_default_instance(); -} - - -void OAuth2MetadataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.OAuth2MetadataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - response_types_supported_.Clear(); - scopes_supported_.Clear(); - token_endpoint_auth_methods_supported_.Clear(); - code_challenge_methods_supported_.Clear(); - grant_types_supported_.Clear(); - issuer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - jwks_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - device_authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* OAuth2MetadataResponse::_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) { - // string issuer = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.issuer"); - object = msg->mutable_issuer(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string authorization_endpoint = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); - object = msg->mutable_authorization_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string token_endpoint = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.token_endpoint"); - object = msg->mutable_token_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string response_types_supported = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.response_types_supported"); - object = msg->add_response_types_supported(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 34 && (ptr += 1)); - break; - } - // repeated string scopes_supported = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.scopes_supported"); - object = msg->add_scopes_supported(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 42 && (ptr += 1)); - break; - } - // repeated string token_endpoint_auth_methods_supported = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); - object = msg->add_token_endpoint_auth_methods_supported(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 50 && (ptr += 1)); - break; - } - // string jwks_uri = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.jwks_uri"); - object = msg->mutable_jwks_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string code_challenge_methods_supported = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); - object = msg->add_code_challenge_methods_supported(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 66 && (ptr += 1)); - break; - } - // repeated string grant_types_supported = 9; - case 9: { - if (static_cast<::google::protobuf::uint8>(tag) != 74) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); - object = msg->add_grant_types_supported(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 74 && (ptr += 1)); - break; - } - // string device_authorization_endpoint = 10; - case 10: { - if (static_cast<::google::protobuf::uint8>(tag) != 82) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); - object = msg->mutable_device_authorization_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool OAuth2MetadataResponse::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.service.OAuth2MetadataResponse) - 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)) { - // string issuer = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_issuer())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->issuer().data(), static_cast(this->issuer().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.issuer")); - } else { - goto handle_unusual; - } - break; - } - - // string authorization_endpoint = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_authorization_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint")); - } else { - goto handle_unusual; - } - break; - } - - // string token_endpoint = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_token_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string response_types_supported = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_response_types_supported())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->response_types_supported(this->response_types_supported_size() - 1).data(), - static_cast(this->response_types_supported(this->response_types_supported_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.response_types_supported")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string scopes_supported = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_scopes_supported())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes_supported(this->scopes_supported_size() - 1).data(), - static_cast(this->scopes_supported(this->scopes_supported_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.scopes_supported")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string token_endpoint_auth_methods_supported = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_token_endpoint_auth_methods_supported())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint_auth_methods_supported(this->token_endpoint_auth_methods_supported_size() - 1).data(), - static_cast(this->token_endpoint_auth_methods_supported(this->token_endpoint_auth_methods_supported_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported")); - } else { - goto handle_unusual; - } - break; - } - - // string jwks_uri = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_jwks_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->jwks_uri().data(), static_cast(this->jwks_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.jwks_uri")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string code_challenge_methods_supported = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_code_challenge_methods_supported())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code_challenge_methods_supported(this->code_challenge_methods_supported_size() - 1).data(), - static_cast(this->code_challenge_methods_supported(this->code_challenge_methods_supported_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string grant_types_supported = 9; - case 9: { - if (static_cast< ::google::protobuf::uint8>(tag) == (74 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_grant_types_supported())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->grant_types_supported(this->grant_types_supported_size() - 1).data(), - static_cast(this->grant_types_supported(this->grant_types_supported_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.grant_types_supported")); - } else { - goto handle_unusual; - } - break; - } - - // string device_authorization_endpoint = 10; - case 10: { - if (static_cast< ::google::protobuf::uint8>(tag) == (82 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_device_authorization_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint")); - } 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.service.OAuth2MetadataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.OAuth2MetadataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void OAuth2MetadataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.OAuth2MetadataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string issuer = 1; - if (this->issuer().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->issuer().data(), static_cast(this->issuer().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.issuer"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->issuer(), output); - } - - // string authorization_endpoint = 2; - if (this->authorization_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->authorization_endpoint(), output); - } - - // string token_endpoint = 3; - if (this->token_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->token_endpoint(), output); - } - - // repeated string response_types_supported = 4; - for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->response_types_supported(i).data(), static_cast(this->response_types_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.response_types_supported"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 4, this->response_types_supported(i), output); - } - - // repeated string scopes_supported = 5; - for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes_supported(i).data(), static_cast(this->scopes_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.scopes_supported"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 5, this->scopes_supported(i), output); - } - - // repeated string token_endpoint_auth_methods_supported = 6; - for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint_auth_methods_supported(i).data(), static_cast(this->token_endpoint_auth_methods_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 6, this->token_endpoint_auth_methods_supported(i), output); - } - - // string jwks_uri = 7; - if (this->jwks_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->jwks_uri().data(), static_cast(this->jwks_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.jwks_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->jwks_uri(), output); - } - - // repeated string code_challenge_methods_supported = 8; - for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code_challenge_methods_supported(i).data(), static_cast(this->code_challenge_methods_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 8, this->code_challenge_methods_supported(i), output); - } - - // repeated string grant_types_supported = 9; - for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->grant_types_supported(i).data(), static_cast(this->grant_types_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 9, this->grant_types_supported(i), output); - } - - // string device_authorization_endpoint = 10; - if (this->device_authorization_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 10, this->device_authorization_endpoint(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.OAuth2MetadataResponse) -} - -::google::protobuf::uint8* OAuth2MetadataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.OAuth2MetadataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string issuer = 1; - if (this->issuer().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->issuer().data(), static_cast(this->issuer().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.issuer"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->issuer(), target); - } - - // string authorization_endpoint = 2; - if (this->authorization_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_endpoint().data(), static_cast(this->authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.authorization_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->authorization_endpoint(), target); - } - - // string token_endpoint = 3; - if (this->token_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint().data(), static_cast(this->token_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->token_endpoint(), target); - } - - // repeated string response_types_supported = 4; - for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->response_types_supported(i).data(), static_cast(this->response_types_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.response_types_supported"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(4, this->response_types_supported(i), target); - } - - // repeated string scopes_supported = 5; - for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes_supported(i).data(), static_cast(this->scopes_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.scopes_supported"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(5, this->scopes_supported(i), target); - } - - // repeated string token_endpoint_auth_methods_supported = 6; - for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->token_endpoint_auth_methods_supported(i).data(), static_cast(this->token_endpoint_auth_methods_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(6, this->token_endpoint_auth_methods_supported(i), target); - } - - // string jwks_uri = 7; - if (this->jwks_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->jwks_uri().data(), static_cast(this->jwks_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.jwks_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->jwks_uri(), target); - } - - // repeated string code_challenge_methods_supported = 8; - for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->code_challenge_methods_supported(i).data(), static_cast(this->code_challenge_methods_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(8, this->code_challenge_methods_supported(i), target); - } - - // repeated string grant_types_supported = 9; - for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->grant_types_supported(i).data(), static_cast(this->grant_types_supported(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.grant_types_supported"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(9, this->grant_types_supported(i), target); - } - - // string device_authorization_endpoint = 10; - if (this->device_authorization_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->device_authorization_endpoint().data(), static_cast(this->device_authorization_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->device_authorization_endpoint(), 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.service.OAuth2MetadataResponse) - return target; -} - -size_t OAuth2MetadataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.OAuth2MetadataResponse) - 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; - - // repeated string response_types_supported = 4; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->response_types_supported_size()); - for (int i = 0, n = this->response_types_supported_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->response_types_supported(i)); - } - - // repeated string scopes_supported = 5; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->scopes_supported_size()); - for (int i = 0, n = this->scopes_supported_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->scopes_supported(i)); - } - - // repeated string token_endpoint_auth_methods_supported = 6; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->token_endpoint_auth_methods_supported_size()); - for (int i = 0, n = this->token_endpoint_auth_methods_supported_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->token_endpoint_auth_methods_supported(i)); - } - - // repeated string code_challenge_methods_supported = 8; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->code_challenge_methods_supported_size()); - for (int i = 0, n = this->code_challenge_methods_supported_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->code_challenge_methods_supported(i)); - } - - // repeated string grant_types_supported = 9; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->grant_types_supported_size()); - for (int i = 0, n = this->grant_types_supported_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->grant_types_supported(i)); - } - - // string issuer = 1; - if (this->issuer().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->issuer()); - } - - // string authorization_endpoint = 2; - if (this->authorization_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->authorization_endpoint()); - } - - // string token_endpoint = 3; - if (this->token_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->token_endpoint()); - } - - // string jwks_uri = 7; - if (this->jwks_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->jwks_uri()); - } - - // string device_authorization_endpoint = 10; - if (this->device_authorization_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->device_authorization_endpoint()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void OAuth2MetadataResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.OAuth2MetadataResponse) - GOOGLE_DCHECK_NE(&from, this); - const OAuth2MetadataResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.OAuth2MetadataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.OAuth2MetadataResponse) - MergeFrom(*source); - } -} - -void OAuth2MetadataResponse::MergeFrom(const OAuth2MetadataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.OAuth2MetadataResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - response_types_supported_.MergeFrom(from.response_types_supported_); - scopes_supported_.MergeFrom(from.scopes_supported_); - token_endpoint_auth_methods_supported_.MergeFrom(from.token_endpoint_auth_methods_supported_); - code_challenge_methods_supported_.MergeFrom(from.code_challenge_methods_supported_); - grant_types_supported_.MergeFrom(from.grant_types_supported_); - if (from.issuer().size() > 0) { - - issuer_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.issuer_); - } - if (from.authorization_endpoint().size() > 0) { - - authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_endpoint_); - } - if (from.token_endpoint().size() > 0) { - - token_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.token_endpoint_); - } - if (from.jwks_uri().size() > 0) { - - jwks_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.jwks_uri_); - } - if (from.device_authorization_endpoint().size() > 0) { - - device_authorization_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.device_authorization_endpoint_); - } -} - -void OAuth2MetadataResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.OAuth2MetadataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void OAuth2MetadataResponse::CopyFrom(const OAuth2MetadataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.OAuth2MetadataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool OAuth2MetadataResponse::IsInitialized() const { - return true; -} - -void OAuth2MetadataResponse::Swap(OAuth2MetadataResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void OAuth2MetadataResponse::InternalSwap(OAuth2MetadataResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - response_types_supported_.InternalSwap(CastToBase(&other->response_types_supported_)); - scopes_supported_.InternalSwap(CastToBase(&other->scopes_supported_)); - token_endpoint_auth_methods_supported_.InternalSwap(CastToBase(&other->token_endpoint_auth_methods_supported_)); - code_challenge_methods_supported_.InternalSwap(CastToBase(&other->code_challenge_methods_supported_)); - grant_types_supported_.InternalSwap(CastToBase(&other->grant_types_supported_)); - issuer_.Swap(&other->issuer_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - authorization_endpoint_.Swap(&other->authorization_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - token_endpoint_.Swap(&other->token_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - jwks_uri_.Swap(&other->jwks_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - device_authorization_endpoint_.Swap(&other->device_authorization_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata OAuth2MetadataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PublicClientAuthConfigRequest::InitAsDefaultInstance() { -} -class PublicClientAuthConfigRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PublicClientAuthConfigRequest::PublicClientAuthConfigRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.PublicClientAuthConfigRequest) -} -PublicClientAuthConfigRequest::PublicClientAuthConfigRequest(const PublicClientAuthConfigRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.service.PublicClientAuthConfigRequest) -} - -void PublicClientAuthConfigRequest::SharedCtor() { -} - -PublicClientAuthConfigRequest::~PublicClientAuthConfigRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.PublicClientAuthConfigRequest) - SharedDtor(); -} - -void PublicClientAuthConfigRequest::SharedDtor() { -} - -void PublicClientAuthConfigRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PublicClientAuthConfigRequest& PublicClientAuthConfigRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PublicClientAuthConfigRequest_flyteidl_2fservice_2fauth_2eproto.base); - return *internal_default_instance(); -} - - -void PublicClientAuthConfigRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.PublicClientAuthConfigRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PublicClientAuthConfigRequest::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PublicClientAuthConfigRequest::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.service.PublicClientAuthConfigRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.service.PublicClientAuthConfigRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.PublicClientAuthConfigRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PublicClientAuthConfigRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.PublicClientAuthConfigRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.PublicClientAuthConfigRequest) -} - -::google::protobuf::uint8* PublicClientAuthConfigRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PublicClientAuthConfigRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.service.PublicClientAuthConfigRequest) - return target; -} - -size_t PublicClientAuthConfigRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PublicClientAuthConfigRequest) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PublicClientAuthConfigRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PublicClientAuthConfigRequest) - GOOGLE_DCHECK_NE(&from, this); - const PublicClientAuthConfigRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PublicClientAuthConfigRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PublicClientAuthConfigRequest) - MergeFrom(*source); - } -} - -void PublicClientAuthConfigRequest::MergeFrom(const PublicClientAuthConfigRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PublicClientAuthConfigRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void PublicClientAuthConfigRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PublicClientAuthConfigRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PublicClientAuthConfigRequest::CopyFrom(const PublicClientAuthConfigRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PublicClientAuthConfigRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PublicClientAuthConfigRequest::IsInitialized() const { - return true; -} - -void PublicClientAuthConfigRequest::Swap(PublicClientAuthConfigRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void PublicClientAuthConfigRequest::InternalSwap(PublicClientAuthConfigRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata PublicClientAuthConfigRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PublicClientAuthConfigResponse::InitAsDefaultInstance() { -} -class PublicClientAuthConfigResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PublicClientAuthConfigResponse::kClientIdFieldNumber; -const int PublicClientAuthConfigResponse::kRedirectUriFieldNumber; -const int PublicClientAuthConfigResponse::kScopesFieldNumber; -const int PublicClientAuthConfigResponse::kAuthorizationMetadataKeyFieldNumber; -const int PublicClientAuthConfigResponse::kServiceHttpEndpointFieldNumber; -const int PublicClientAuthConfigResponse::kAudienceFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PublicClientAuthConfigResponse::PublicClientAuthConfigResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.PublicClientAuthConfigResponse) -} -PublicClientAuthConfigResponse::PublicClientAuthConfigResponse(const PublicClientAuthConfigResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - scopes_(from.scopes_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.client_id().size() > 0) { - client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); - } - redirect_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.redirect_uri().size() > 0) { - redirect_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.redirect_uri_); - } - authorization_metadata_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.authorization_metadata_key().size() > 0) { - authorization_metadata_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_metadata_key_); - } - service_http_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.service_http_endpoint().size() > 0) { - service_http_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_http_endpoint_); - } - audience_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.audience().size() > 0) { - audience_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audience_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.PublicClientAuthConfigResponse) -} - -void PublicClientAuthConfigResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); - client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - redirect_uri_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_metadata_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - service_http_endpoint_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - audience_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -PublicClientAuthConfigResponse::~PublicClientAuthConfigResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.PublicClientAuthConfigResponse) - SharedDtor(); -} - -void PublicClientAuthConfigResponse::SharedDtor() { - client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - redirect_uri_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_metadata_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - service_http_endpoint_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - audience_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void PublicClientAuthConfigResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PublicClientAuthConfigResponse& PublicClientAuthConfigResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PublicClientAuthConfigResponse_flyteidl_2fservice_2fauth_2eproto.base); - return *internal_default_instance(); -} - - -void PublicClientAuthConfigResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.PublicClientAuthConfigResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - scopes_.Clear(); - client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - redirect_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - authorization_metadata_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - service_http_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - audience_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PublicClientAuthConfigResponse::_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) { - // string client_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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.client_id"); - object = msg->mutable_client_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string redirect_uri = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); - object = msg->mutable_redirect_uri(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // repeated string scopes = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.scopes"); - object = msg->add_scopes(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 26 && (ptr += 1)); - break; - } - // string authorization_metadata_key = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); - object = msg->mutable_authorization_metadata_key(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string service_http_endpoint = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); - object = msg->mutable_service_http_endpoint(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string audience = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PublicClientAuthConfigResponse.audience"); - object = msg->mutable_audience(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PublicClientAuthConfigResponse::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.service.PublicClientAuthConfigResponse) - 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)) { - // string client_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_client_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.client_id")); - } else { - goto handle_unusual; - } - break; - } - - // string redirect_uri = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_redirect_uri())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->redirect_uri().data(), static_cast(this->redirect_uri().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri")); - } else { - goto handle_unusual; - } - break; - } - - // repeated string scopes = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_scopes())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes(this->scopes_size() - 1).data(), - static_cast(this->scopes(this->scopes_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.scopes")); - } else { - goto handle_unusual; - } - break; - } - - // string authorization_metadata_key = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_authorization_metadata_key())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key")); - } else { - goto handle_unusual; - } - break; - } - - // string service_http_endpoint = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_service_http_endpoint())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint")); - } else { - goto handle_unusual; - } - break; - } - - // string audience = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_audience())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PublicClientAuthConfigResponse.audience")); - } 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.service.PublicClientAuthConfigResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.PublicClientAuthConfigResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PublicClientAuthConfigResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.PublicClientAuthConfigResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string client_id = 1; - if (this->client_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.client_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->client_id(), output); - } - - // string redirect_uri = 2; - if (this->redirect_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->redirect_uri().data(), static_cast(this->redirect_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->redirect_uri(), output); - } - - // repeated string scopes = 3; - for (int i = 0, n = this->scopes_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes(i).data(), static_cast(this->scopes(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.scopes"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 3, this->scopes(i), output); - } - - // string authorization_metadata_key = 4; - if (this->authorization_metadata_key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->authorization_metadata_key(), output); - } - - // string service_http_endpoint = 5; - if (this->service_http_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->service_http_endpoint(), output); - } - - // string audience = 6; - if (this->audience().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.audience"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->audience(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.PublicClientAuthConfigResponse) -} - -::google::protobuf::uint8* PublicClientAuthConfigResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PublicClientAuthConfigResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string client_id = 1; - if (this->client_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->client_id().data(), static_cast(this->client_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.client_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->client_id(), target); - } - - // string redirect_uri = 2; - if (this->redirect_uri().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->redirect_uri().data(), static_cast(this->redirect_uri().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.redirect_uri"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->redirect_uri(), target); - } - - // repeated string scopes = 3; - for (int i = 0, n = this->scopes_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->scopes(i).data(), static_cast(this->scopes(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.scopes"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(3, this->scopes(i), target); - } - - // string authorization_metadata_key = 4; - if (this->authorization_metadata_key().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->authorization_metadata_key().data(), static_cast(this->authorization_metadata_key().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->authorization_metadata_key(), target); - } - - // string service_http_endpoint = 5; - if (this->service_http_endpoint().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->service_http_endpoint().data(), static_cast(this->service_http_endpoint().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->service_http_endpoint(), target); - } - - // string audience = 6; - if (this->audience().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->audience().data(), static_cast(this->audience().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PublicClientAuthConfigResponse.audience"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->audience(), 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.service.PublicClientAuthConfigResponse) - return target; -} - -size_t PublicClientAuthConfigResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PublicClientAuthConfigResponse) - 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; - - // repeated string scopes = 3; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->scopes_size()); - for (int i = 0, n = this->scopes_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->scopes(i)); - } - - // string client_id = 1; - if (this->client_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->client_id()); - } - - // string redirect_uri = 2; - if (this->redirect_uri().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->redirect_uri()); - } - - // string authorization_metadata_key = 4; - if (this->authorization_metadata_key().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->authorization_metadata_key()); - } - - // string service_http_endpoint = 5; - if (this->service_http_endpoint().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->service_http_endpoint()); - } - - // string audience = 6; - if (this->audience().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->audience()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PublicClientAuthConfigResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PublicClientAuthConfigResponse) - GOOGLE_DCHECK_NE(&from, this); - const PublicClientAuthConfigResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PublicClientAuthConfigResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PublicClientAuthConfigResponse) - MergeFrom(*source); - } -} - -void PublicClientAuthConfigResponse::MergeFrom(const PublicClientAuthConfigResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PublicClientAuthConfigResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - scopes_.MergeFrom(from.scopes_); - if (from.client_id().size() > 0) { - - client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_); - } - if (from.redirect_uri().size() > 0) { - - redirect_uri_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.redirect_uri_); - } - if (from.authorization_metadata_key().size() > 0) { - - authorization_metadata_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.authorization_metadata_key_); - } - if (from.service_http_endpoint().size() > 0) { - - service_http_endpoint_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.service_http_endpoint_); - } - if (from.audience().size() > 0) { - - audience_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.audience_); - } -} - -void PublicClientAuthConfigResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PublicClientAuthConfigResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PublicClientAuthConfigResponse::CopyFrom(const PublicClientAuthConfigResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PublicClientAuthConfigResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PublicClientAuthConfigResponse::IsInitialized() const { - return true; -} - -void PublicClientAuthConfigResponse::Swap(PublicClientAuthConfigResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void PublicClientAuthConfigResponse::InternalSwap(PublicClientAuthConfigResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - scopes_.InternalSwap(CastToBase(&other->scopes_)); - client_id_.Swap(&other->client_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - redirect_uri_.Swap(&other->redirect_uri_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - authorization_metadata_key_.Swap(&other->authorization_metadata_key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - service_http_endpoint_.Swap(&other->service_http_endpoint_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - audience_.Swap(&other->audience_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata PublicClientAuthConfigResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fauth_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fauth_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::service::OAuth2MetadataRequest* Arena::CreateMaybeMessage< ::flyteidl::service::OAuth2MetadataRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::OAuth2MetadataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::OAuth2MetadataResponse* Arena::CreateMaybeMessage< ::flyteidl::service::OAuth2MetadataResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::OAuth2MetadataResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::PublicClientAuthConfigRequest* Arena::CreateMaybeMessage< ::flyteidl::service::PublicClientAuthConfigRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::PublicClientAuthConfigRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::PublicClientAuthConfigResponse* Arena::CreateMaybeMessage< ::flyteidl::service::PublicClientAuthConfigResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::PublicClientAuthConfigResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h deleted file mode 100644 index c188b22a72..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/auth.pb.h +++ /dev/null @@ -1,1772 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/auth.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "google/api/annotations.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fauth_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fauth_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[4] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fauth_2eproto(); -namespace flyteidl { -namespace service { -class OAuth2MetadataRequest; -class OAuth2MetadataRequestDefaultTypeInternal; -extern OAuth2MetadataRequestDefaultTypeInternal _OAuth2MetadataRequest_default_instance_; -class OAuth2MetadataResponse; -class OAuth2MetadataResponseDefaultTypeInternal; -extern OAuth2MetadataResponseDefaultTypeInternal _OAuth2MetadataResponse_default_instance_; -class PublicClientAuthConfigRequest; -class PublicClientAuthConfigRequestDefaultTypeInternal; -extern PublicClientAuthConfigRequestDefaultTypeInternal _PublicClientAuthConfigRequest_default_instance_; -class PublicClientAuthConfigResponse; -class PublicClientAuthConfigResponseDefaultTypeInternal; -extern PublicClientAuthConfigResponseDefaultTypeInternal _PublicClientAuthConfigResponse_default_instance_; -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::service::OAuth2MetadataRequest* Arena::CreateMaybeMessage<::flyteidl::service::OAuth2MetadataRequest>(Arena*); -template<> ::flyteidl::service::OAuth2MetadataResponse* Arena::CreateMaybeMessage<::flyteidl::service::OAuth2MetadataResponse>(Arena*); -template<> ::flyteidl::service::PublicClientAuthConfigRequest* Arena::CreateMaybeMessage<::flyteidl::service::PublicClientAuthConfigRequest>(Arena*); -template<> ::flyteidl::service::PublicClientAuthConfigResponse* Arena::CreateMaybeMessage<::flyteidl::service::PublicClientAuthConfigResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -// =================================================================== - -class OAuth2MetadataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.OAuth2MetadataRequest) */ { - public: - OAuth2MetadataRequest(); - virtual ~OAuth2MetadataRequest(); - - OAuth2MetadataRequest(const OAuth2MetadataRequest& from); - - inline OAuth2MetadataRequest& operator=(const OAuth2MetadataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OAuth2MetadataRequest(OAuth2MetadataRequest&& from) noexcept - : OAuth2MetadataRequest() { - *this = ::std::move(from); - } - - inline OAuth2MetadataRequest& operator=(OAuth2MetadataRequest&& 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 OAuth2MetadataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OAuth2MetadataRequest* internal_default_instance() { - return reinterpret_cast( - &_OAuth2MetadataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(OAuth2MetadataRequest* other); - friend void swap(OAuth2MetadataRequest& a, OAuth2MetadataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OAuth2MetadataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - OAuth2MetadataRequest* 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 OAuth2MetadataRequest& from); - void MergeFrom(const OAuth2MetadataRequest& 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(OAuth2MetadataRequest* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; -}; -// ------------------------------------------------------------------- - -class OAuth2MetadataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.OAuth2MetadataResponse) */ { - public: - OAuth2MetadataResponse(); - virtual ~OAuth2MetadataResponse(); - - OAuth2MetadataResponse(const OAuth2MetadataResponse& from); - - inline OAuth2MetadataResponse& operator=(const OAuth2MetadataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OAuth2MetadataResponse(OAuth2MetadataResponse&& from) noexcept - : OAuth2MetadataResponse() { - *this = ::std::move(from); - } - - inline OAuth2MetadataResponse& operator=(OAuth2MetadataResponse&& 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 OAuth2MetadataResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OAuth2MetadataResponse* internal_default_instance() { - return reinterpret_cast( - &_OAuth2MetadataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(OAuth2MetadataResponse* other); - friend void swap(OAuth2MetadataResponse& a, OAuth2MetadataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OAuth2MetadataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - OAuth2MetadataResponse* 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 OAuth2MetadataResponse& from); - void MergeFrom(const OAuth2MetadataResponse& 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(OAuth2MetadataResponse* 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 ------------------------------------------------------- - - // repeated string response_types_supported = 4; - int response_types_supported_size() const; - void clear_response_types_supported(); - static const int kResponseTypesSupportedFieldNumber = 4; - const ::std::string& response_types_supported(int index) const; - ::std::string* mutable_response_types_supported(int index); - void set_response_types_supported(int index, const ::std::string& value); - #if LANG_CXX11 - void set_response_types_supported(int index, ::std::string&& value); - #endif - void set_response_types_supported(int index, const char* value); - void set_response_types_supported(int index, const char* value, size_t size); - ::std::string* add_response_types_supported(); - void add_response_types_supported(const ::std::string& value); - #if LANG_CXX11 - void add_response_types_supported(::std::string&& value); - #endif - void add_response_types_supported(const char* value); - void add_response_types_supported(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& response_types_supported() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_response_types_supported(); - - // repeated string scopes_supported = 5; - int scopes_supported_size() const; - void clear_scopes_supported(); - static const int kScopesSupportedFieldNumber = 5; - const ::std::string& scopes_supported(int index) const; - ::std::string* mutable_scopes_supported(int index); - void set_scopes_supported(int index, const ::std::string& value); - #if LANG_CXX11 - void set_scopes_supported(int index, ::std::string&& value); - #endif - void set_scopes_supported(int index, const char* value); - void set_scopes_supported(int index, const char* value, size_t size); - ::std::string* add_scopes_supported(); - void add_scopes_supported(const ::std::string& value); - #if LANG_CXX11 - void add_scopes_supported(::std::string&& value); - #endif - void add_scopes_supported(const char* value); - void add_scopes_supported(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& scopes_supported() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_scopes_supported(); - - // repeated string token_endpoint_auth_methods_supported = 6; - int token_endpoint_auth_methods_supported_size() const; - void clear_token_endpoint_auth_methods_supported(); - static const int kTokenEndpointAuthMethodsSupportedFieldNumber = 6; - const ::std::string& token_endpoint_auth_methods_supported(int index) const; - ::std::string* mutable_token_endpoint_auth_methods_supported(int index); - void set_token_endpoint_auth_methods_supported(int index, const ::std::string& value); - #if LANG_CXX11 - void set_token_endpoint_auth_methods_supported(int index, ::std::string&& value); - #endif - void set_token_endpoint_auth_methods_supported(int index, const char* value); - void set_token_endpoint_auth_methods_supported(int index, const char* value, size_t size); - ::std::string* add_token_endpoint_auth_methods_supported(); - void add_token_endpoint_auth_methods_supported(const ::std::string& value); - #if LANG_CXX11 - void add_token_endpoint_auth_methods_supported(::std::string&& value); - #endif - void add_token_endpoint_auth_methods_supported(const char* value); - void add_token_endpoint_auth_methods_supported(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& token_endpoint_auth_methods_supported() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_token_endpoint_auth_methods_supported(); - - // repeated string code_challenge_methods_supported = 8; - int code_challenge_methods_supported_size() const; - void clear_code_challenge_methods_supported(); - static const int kCodeChallengeMethodsSupportedFieldNumber = 8; - const ::std::string& code_challenge_methods_supported(int index) const; - ::std::string* mutable_code_challenge_methods_supported(int index); - void set_code_challenge_methods_supported(int index, const ::std::string& value); - #if LANG_CXX11 - void set_code_challenge_methods_supported(int index, ::std::string&& value); - #endif - void set_code_challenge_methods_supported(int index, const char* value); - void set_code_challenge_methods_supported(int index, const char* value, size_t size); - ::std::string* add_code_challenge_methods_supported(); - void add_code_challenge_methods_supported(const ::std::string& value); - #if LANG_CXX11 - void add_code_challenge_methods_supported(::std::string&& value); - #endif - void add_code_challenge_methods_supported(const char* value); - void add_code_challenge_methods_supported(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& code_challenge_methods_supported() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_code_challenge_methods_supported(); - - // repeated string grant_types_supported = 9; - int grant_types_supported_size() const; - void clear_grant_types_supported(); - static const int kGrantTypesSupportedFieldNumber = 9; - const ::std::string& grant_types_supported(int index) const; - ::std::string* mutable_grant_types_supported(int index); - void set_grant_types_supported(int index, const ::std::string& value); - #if LANG_CXX11 - void set_grant_types_supported(int index, ::std::string&& value); - #endif - void set_grant_types_supported(int index, const char* value); - void set_grant_types_supported(int index, const char* value, size_t size); - ::std::string* add_grant_types_supported(); - void add_grant_types_supported(const ::std::string& value); - #if LANG_CXX11 - void add_grant_types_supported(::std::string&& value); - #endif - void add_grant_types_supported(const char* value); - void add_grant_types_supported(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& grant_types_supported() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_grant_types_supported(); - - // string issuer = 1; - void clear_issuer(); - static const int kIssuerFieldNumber = 1; - const ::std::string& issuer() const; - void set_issuer(const ::std::string& value); - #if LANG_CXX11 - void set_issuer(::std::string&& value); - #endif - void set_issuer(const char* value); - void set_issuer(const char* value, size_t size); - ::std::string* mutable_issuer(); - ::std::string* release_issuer(); - void set_allocated_issuer(::std::string* issuer); - - // string authorization_endpoint = 2; - void clear_authorization_endpoint(); - static const int kAuthorizationEndpointFieldNumber = 2; - const ::std::string& authorization_endpoint() const; - void set_authorization_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_authorization_endpoint(::std::string&& value); - #endif - void set_authorization_endpoint(const char* value); - void set_authorization_endpoint(const char* value, size_t size); - ::std::string* mutable_authorization_endpoint(); - ::std::string* release_authorization_endpoint(); - void set_allocated_authorization_endpoint(::std::string* authorization_endpoint); - - // string token_endpoint = 3; - void clear_token_endpoint(); - static const int kTokenEndpointFieldNumber = 3; - const ::std::string& token_endpoint() const; - void set_token_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_token_endpoint(::std::string&& value); - #endif - void set_token_endpoint(const char* value); - void set_token_endpoint(const char* value, size_t size); - ::std::string* mutable_token_endpoint(); - ::std::string* release_token_endpoint(); - void set_allocated_token_endpoint(::std::string* token_endpoint); - - // string jwks_uri = 7; - void clear_jwks_uri(); - static const int kJwksUriFieldNumber = 7; - const ::std::string& jwks_uri() const; - void set_jwks_uri(const ::std::string& value); - #if LANG_CXX11 - void set_jwks_uri(::std::string&& value); - #endif - void set_jwks_uri(const char* value); - void set_jwks_uri(const char* value, size_t size); - ::std::string* mutable_jwks_uri(); - ::std::string* release_jwks_uri(); - void set_allocated_jwks_uri(::std::string* jwks_uri); - - // string device_authorization_endpoint = 10; - void clear_device_authorization_endpoint(); - static const int kDeviceAuthorizationEndpointFieldNumber = 10; - const ::std::string& device_authorization_endpoint() const; - void set_device_authorization_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_device_authorization_endpoint(::std::string&& value); - #endif - void set_device_authorization_endpoint(const char* value); - void set_device_authorization_endpoint(const char* value, size_t size); - ::std::string* mutable_device_authorization_endpoint(); - ::std::string* release_device_authorization_endpoint(); - void set_allocated_device_authorization_endpoint(::std::string* device_authorization_endpoint); - - // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> response_types_supported_; - ::google::protobuf::RepeatedPtrField<::std::string> scopes_supported_; - ::google::protobuf::RepeatedPtrField<::std::string> token_endpoint_auth_methods_supported_; - ::google::protobuf::RepeatedPtrField<::std::string> code_challenge_methods_supported_; - ::google::protobuf::RepeatedPtrField<::std::string> grant_types_supported_; - ::google::protobuf::internal::ArenaStringPtr issuer_; - ::google::protobuf::internal::ArenaStringPtr authorization_endpoint_; - ::google::protobuf::internal::ArenaStringPtr token_endpoint_; - ::google::protobuf::internal::ArenaStringPtr jwks_uri_; - ::google::protobuf::internal::ArenaStringPtr device_authorization_endpoint_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; -}; -// ------------------------------------------------------------------- - -class PublicClientAuthConfigRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PublicClientAuthConfigRequest) */ { - public: - PublicClientAuthConfigRequest(); - virtual ~PublicClientAuthConfigRequest(); - - PublicClientAuthConfigRequest(const PublicClientAuthConfigRequest& from); - - inline PublicClientAuthConfigRequest& operator=(const PublicClientAuthConfigRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PublicClientAuthConfigRequest(PublicClientAuthConfigRequest&& from) noexcept - : PublicClientAuthConfigRequest() { - *this = ::std::move(from); - } - - inline PublicClientAuthConfigRequest& operator=(PublicClientAuthConfigRequest&& 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 PublicClientAuthConfigRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PublicClientAuthConfigRequest* internal_default_instance() { - return reinterpret_cast( - &_PublicClientAuthConfigRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(PublicClientAuthConfigRequest* other); - friend void swap(PublicClientAuthConfigRequest& a, PublicClientAuthConfigRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PublicClientAuthConfigRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - PublicClientAuthConfigRequest* 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 PublicClientAuthConfigRequest& from); - void MergeFrom(const PublicClientAuthConfigRequest& 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(PublicClientAuthConfigRequest* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; -}; -// ------------------------------------------------------------------- - -class PublicClientAuthConfigResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PublicClientAuthConfigResponse) */ { - public: - PublicClientAuthConfigResponse(); - virtual ~PublicClientAuthConfigResponse(); - - PublicClientAuthConfigResponse(const PublicClientAuthConfigResponse& from); - - inline PublicClientAuthConfigResponse& operator=(const PublicClientAuthConfigResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PublicClientAuthConfigResponse(PublicClientAuthConfigResponse&& from) noexcept - : PublicClientAuthConfigResponse() { - *this = ::std::move(from); - } - - inline PublicClientAuthConfigResponse& operator=(PublicClientAuthConfigResponse&& 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 PublicClientAuthConfigResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PublicClientAuthConfigResponse* internal_default_instance() { - return reinterpret_cast( - &_PublicClientAuthConfigResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(PublicClientAuthConfigResponse* other); - friend void swap(PublicClientAuthConfigResponse& a, PublicClientAuthConfigResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PublicClientAuthConfigResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - PublicClientAuthConfigResponse* 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 PublicClientAuthConfigResponse& from); - void MergeFrom(const PublicClientAuthConfigResponse& 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(PublicClientAuthConfigResponse* 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 ------------------------------------------------------- - - // repeated string scopes = 3; - int scopes_size() const; - void clear_scopes(); - static const int kScopesFieldNumber = 3; - const ::std::string& scopes(int index) const; - ::std::string* mutable_scopes(int index); - void set_scopes(int index, const ::std::string& value); - #if LANG_CXX11 - void set_scopes(int index, ::std::string&& value); - #endif - void set_scopes(int index, const char* value); - void set_scopes(int index, const char* value, size_t size); - ::std::string* add_scopes(); - void add_scopes(const ::std::string& value); - #if LANG_CXX11 - void add_scopes(::std::string&& value); - #endif - void add_scopes(const char* value); - void add_scopes(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& scopes() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_scopes(); - - // string client_id = 1; - void clear_client_id(); - static const int kClientIdFieldNumber = 1; - const ::std::string& client_id() const; - void set_client_id(const ::std::string& value); - #if LANG_CXX11 - void set_client_id(::std::string&& value); - #endif - void set_client_id(const char* value); - void set_client_id(const char* value, size_t size); - ::std::string* mutable_client_id(); - ::std::string* release_client_id(); - void set_allocated_client_id(::std::string* client_id); - - // string redirect_uri = 2; - void clear_redirect_uri(); - static const int kRedirectUriFieldNumber = 2; - const ::std::string& redirect_uri() const; - void set_redirect_uri(const ::std::string& value); - #if LANG_CXX11 - void set_redirect_uri(::std::string&& value); - #endif - void set_redirect_uri(const char* value); - void set_redirect_uri(const char* value, size_t size); - ::std::string* mutable_redirect_uri(); - ::std::string* release_redirect_uri(); - void set_allocated_redirect_uri(::std::string* redirect_uri); - - // string authorization_metadata_key = 4; - void clear_authorization_metadata_key(); - static const int kAuthorizationMetadataKeyFieldNumber = 4; - const ::std::string& authorization_metadata_key() const; - void set_authorization_metadata_key(const ::std::string& value); - #if LANG_CXX11 - void set_authorization_metadata_key(::std::string&& value); - #endif - void set_authorization_metadata_key(const char* value); - void set_authorization_metadata_key(const char* value, size_t size); - ::std::string* mutable_authorization_metadata_key(); - ::std::string* release_authorization_metadata_key(); - void set_allocated_authorization_metadata_key(::std::string* authorization_metadata_key); - - // string service_http_endpoint = 5; - void clear_service_http_endpoint(); - static const int kServiceHttpEndpointFieldNumber = 5; - const ::std::string& service_http_endpoint() const; - void set_service_http_endpoint(const ::std::string& value); - #if LANG_CXX11 - void set_service_http_endpoint(::std::string&& value); - #endif - void set_service_http_endpoint(const char* value); - void set_service_http_endpoint(const char* value, size_t size); - ::std::string* mutable_service_http_endpoint(); - ::std::string* release_service_http_endpoint(); - void set_allocated_service_http_endpoint(::std::string* service_http_endpoint); - - // string audience = 6; - void clear_audience(); - static const int kAudienceFieldNumber = 6; - const ::std::string& audience() const; - void set_audience(const ::std::string& value); - #if LANG_CXX11 - void set_audience(::std::string&& value); - #endif - void set_audience(const char* value); - void set_audience(const char* value, size_t size); - ::std::string* mutable_audience(); - ::std::string* release_audience(); - void set_allocated_audience(::std::string* audience); - - // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> scopes_; - ::google::protobuf::internal::ArenaStringPtr client_id_; - ::google::protobuf::internal::ArenaStringPtr redirect_uri_; - ::google::protobuf::internal::ArenaStringPtr authorization_metadata_key_; - ::google::protobuf::internal::ArenaStringPtr service_http_endpoint_; - ::google::protobuf::internal::ArenaStringPtr audience_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fauth_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// OAuth2MetadataRequest - -// ------------------------------------------------------------------- - -// OAuth2MetadataResponse - -// string issuer = 1; -inline void OAuth2MetadataResponse::clear_issuer() { - issuer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2MetadataResponse::issuer() const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.issuer) - return issuer_.GetNoArena(); -} -inline void OAuth2MetadataResponse::set_issuer(const ::std::string& value) { - - issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.issuer) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_issuer(::std::string&& value) { - - issuer_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.issuer) -} -#endif -inline void OAuth2MetadataResponse::set_issuer(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.issuer) -} -inline void OAuth2MetadataResponse::set_issuer(const char* value, size_t size) { - - issuer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.issuer) -} -inline ::std::string* OAuth2MetadataResponse::mutable_issuer() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.issuer) - return issuer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2MetadataResponse::release_issuer() { - // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.issuer) - - return issuer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2MetadataResponse::set_allocated_issuer(::std::string* issuer) { - if (issuer != nullptr) { - - } else { - - } - issuer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), issuer); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.issuer) -} - -// string authorization_endpoint = 2; -inline void OAuth2MetadataResponse::clear_authorization_endpoint() { - authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2MetadataResponse::authorization_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) - return authorization_endpoint_.GetNoArena(); -} -inline void OAuth2MetadataResponse::set_authorization_endpoint(const ::std::string& value) { - - authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_authorization_endpoint(::std::string&& value) { - - authorization_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) -} -#endif -inline void OAuth2MetadataResponse::set_authorization_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) -} -inline void OAuth2MetadataResponse::set_authorization_endpoint(const char* value, size_t size) { - - authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) -} -inline ::std::string* OAuth2MetadataResponse::mutable_authorization_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) - return authorization_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2MetadataResponse::release_authorization_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) - - return authorization_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2MetadataResponse::set_allocated_authorization_endpoint(::std::string* authorization_endpoint) { - if (authorization_endpoint != nullptr) { - - } else { - - } - authorization_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), authorization_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.authorization_endpoint) -} - -// string token_endpoint = 3; -inline void OAuth2MetadataResponse::clear_token_endpoint() { - token_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2MetadataResponse::token_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.token_endpoint) - return token_endpoint_.GetNoArena(); -} -inline void OAuth2MetadataResponse::set_token_endpoint(const ::std::string& value) { - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_token_endpoint(::std::string&& value) { - - token_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.token_endpoint) -} -#endif -inline void OAuth2MetadataResponse::set_token_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint) -} -inline void OAuth2MetadataResponse::set_token_endpoint(const char* value, size_t size) { - - token_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint) -} -inline ::std::string* OAuth2MetadataResponse::mutable_token_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint) - return token_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2MetadataResponse::release_token_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.token_endpoint) - - return token_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2MetadataResponse::set_allocated_token_endpoint(::std::string* token_endpoint) { - if (token_endpoint != nullptr) { - - } else { - - } - token_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), token_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.token_endpoint) -} - -// repeated string response_types_supported = 4; -inline int OAuth2MetadataResponse::response_types_supported_size() const { - return response_types_supported_.size(); -} -inline void OAuth2MetadataResponse::clear_response_types_supported() { - response_types_supported_.Clear(); -} -inline const ::std::string& OAuth2MetadataResponse::response_types_supported(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - return response_types_supported_.Get(index); -} -inline ::std::string* OAuth2MetadataResponse::mutable_response_types_supported(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - return response_types_supported_.Mutable(index); -} -inline void OAuth2MetadataResponse::set_response_types_supported(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - response_types_supported_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_response_types_supported(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - response_types_supported_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void OAuth2MetadataResponse::set_response_types_supported(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - response_types_supported_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -inline void OAuth2MetadataResponse::set_response_types_supported(int index, const char* value, size_t size) { - response_types_supported_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -inline ::std::string* OAuth2MetadataResponse::add_response_types_supported() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - return response_types_supported_.Add(); -} -inline void OAuth2MetadataResponse::add_response_types_supported(const ::std::string& value) { - response_types_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::add_response_types_supported(::std::string&& value) { - response_types_supported_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -#endif -inline void OAuth2MetadataResponse::add_response_types_supported(const char* value) { - GOOGLE_DCHECK(value != nullptr); - response_types_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -inline void OAuth2MetadataResponse::add_response_types_supported(const char* value, size_t size) { - response_types_supported_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.response_types_supported) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -OAuth2MetadataResponse::response_types_supported() const { - // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - return response_types_supported_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -OAuth2MetadataResponse::mutable_response_types_supported() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.response_types_supported) - return &response_types_supported_; -} - -// repeated string scopes_supported = 5; -inline int OAuth2MetadataResponse::scopes_supported_size() const { - return scopes_supported_.size(); -} -inline void OAuth2MetadataResponse::clear_scopes_supported() { - scopes_supported_.Clear(); -} -inline const ::std::string& OAuth2MetadataResponse::scopes_supported(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - return scopes_supported_.Get(index); -} -inline ::std::string* OAuth2MetadataResponse::mutable_scopes_supported(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - return scopes_supported_.Mutable(index); -} -inline void OAuth2MetadataResponse::set_scopes_supported(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - scopes_supported_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_scopes_supported(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - scopes_supported_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void OAuth2MetadataResponse::set_scopes_supported(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - scopes_supported_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -inline void OAuth2MetadataResponse::set_scopes_supported(int index, const char* value, size_t size) { - scopes_supported_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -inline ::std::string* OAuth2MetadataResponse::add_scopes_supported() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - return scopes_supported_.Add(); -} -inline void OAuth2MetadataResponse::add_scopes_supported(const ::std::string& value) { - scopes_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::add_scopes_supported(::std::string&& value) { - scopes_supported_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -#endif -inline void OAuth2MetadataResponse::add_scopes_supported(const char* value) { - GOOGLE_DCHECK(value != nullptr); - scopes_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -inline void OAuth2MetadataResponse::add_scopes_supported(const char* value, size_t size) { - scopes_supported_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.scopes_supported) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -OAuth2MetadataResponse::scopes_supported() const { - // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - return scopes_supported_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -OAuth2MetadataResponse::mutable_scopes_supported() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.scopes_supported) - return &scopes_supported_; -} - -// repeated string token_endpoint_auth_methods_supported = 6; -inline int OAuth2MetadataResponse::token_endpoint_auth_methods_supported_size() const { - return token_endpoint_auth_methods_supported_.size(); -} -inline void OAuth2MetadataResponse::clear_token_endpoint_auth_methods_supported() { - token_endpoint_auth_methods_supported_.Clear(); -} -inline const ::std::string& OAuth2MetadataResponse::token_endpoint_auth_methods_supported(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - return token_endpoint_auth_methods_supported_.Get(index); -} -inline ::std::string* OAuth2MetadataResponse::mutable_token_endpoint_auth_methods_supported(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - return token_endpoint_auth_methods_supported_.Mutable(index); -} -inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - token_endpoint_auth_methods_supported_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - token_endpoint_auth_methods_supported_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - token_endpoint_auth_methods_supported_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -inline void OAuth2MetadataResponse::set_token_endpoint_auth_methods_supported(int index, const char* value, size_t size) { - token_endpoint_auth_methods_supported_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -inline ::std::string* OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - return token_endpoint_auth_methods_supported_.Add(); -} -inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const ::std::string& value) { - token_endpoint_auth_methods_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(::std::string&& value) { - token_endpoint_auth_methods_supported_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -#endif -inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const char* value) { - GOOGLE_DCHECK(value != nullptr); - token_endpoint_auth_methods_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -inline void OAuth2MetadataResponse::add_token_endpoint_auth_methods_supported(const char* value, size_t size) { - token_endpoint_auth_methods_supported_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -OAuth2MetadataResponse::token_endpoint_auth_methods_supported() const { - // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - return token_endpoint_auth_methods_supported_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -OAuth2MetadataResponse::mutable_token_endpoint_auth_methods_supported() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.token_endpoint_auth_methods_supported) - return &token_endpoint_auth_methods_supported_; -} - -// string jwks_uri = 7; -inline void OAuth2MetadataResponse::clear_jwks_uri() { - jwks_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2MetadataResponse::jwks_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.jwks_uri) - return jwks_uri_.GetNoArena(); -} -inline void OAuth2MetadataResponse::set_jwks_uri(const ::std::string& value) { - - jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.jwks_uri) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_jwks_uri(::std::string&& value) { - - jwks_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.jwks_uri) -} -#endif -inline void OAuth2MetadataResponse::set_jwks_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.jwks_uri) -} -inline void OAuth2MetadataResponse::set_jwks_uri(const char* value, size_t size) { - - jwks_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.jwks_uri) -} -inline ::std::string* OAuth2MetadataResponse::mutable_jwks_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.jwks_uri) - return jwks_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2MetadataResponse::release_jwks_uri() { - // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.jwks_uri) - - return jwks_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2MetadataResponse::set_allocated_jwks_uri(::std::string* jwks_uri) { - if (jwks_uri != nullptr) { - - } else { - - } - jwks_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), jwks_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.jwks_uri) -} - -// repeated string code_challenge_methods_supported = 8; -inline int OAuth2MetadataResponse::code_challenge_methods_supported_size() const { - return code_challenge_methods_supported_.size(); -} -inline void OAuth2MetadataResponse::clear_code_challenge_methods_supported() { - code_challenge_methods_supported_.Clear(); -} -inline const ::std::string& OAuth2MetadataResponse::code_challenge_methods_supported(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - return code_challenge_methods_supported_.Get(index); -} -inline ::std::string* OAuth2MetadataResponse::mutable_code_challenge_methods_supported(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - return code_challenge_methods_supported_.Mutable(index); -} -inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - code_challenge_methods_supported_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - code_challenge_methods_supported_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - code_challenge_methods_supported_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -inline void OAuth2MetadataResponse::set_code_challenge_methods_supported(int index, const char* value, size_t size) { - code_challenge_methods_supported_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -inline ::std::string* OAuth2MetadataResponse::add_code_challenge_methods_supported() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - return code_challenge_methods_supported_.Add(); -} -inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const ::std::string& value) { - code_challenge_methods_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(::std::string&& value) { - code_challenge_methods_supported_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -#endif -inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const char* value) { - GOOGLE_DCHECK(value != nullptr); - code_challenge_methods_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -inline void OAuth2MetadataResponse::add_code_challenge_methods_supported(const char* value, size_t size) { - code_challenge_methods_supported_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -OAuth2MetadataResponse::code_challenge_methods_supported() const { - // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - return code_challenge_methods_supported_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -OAuth2MetadataResponse::mutable_code_challenge_methods_supported() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.code_challenge_methods_supported) - return &code_challenge_methods_supported_; -} - -// repeated string grant_types_supported = 9; -inline int OAuth2MetadataResponse::grant_types_supported_size() const { - return grant_types_supported_.size(); -} -inline void OAuth2MetadataResponse::clear_grant_types_supported() { - grant_types_supported_.Clear(); -} -inline const ::std::string& OAuth2MetadataResponse::grant_types_supported(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - return grant_types_supported_.Get(index); -} -inline ::std::string* OAuth2MetadataResponse::mutable_grant_types_supported(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - return grant_types_supported_.Mutable(index); -} -inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - grant_types_supported_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_grant_types_supported(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - grant_types_supported_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - grant_types_supported_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -inline void OAuth2MetadataResponse::set_grant_types_supported(int index, const char* value, size_t size) { - grant_types_supported_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -inline ::std::string* OAuth2MetadataResponse::add_grant_types_supported() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - return grant_types_supported_.Add(); -} -inline void OAuth2MetadataResponse::add_grant_types_supported(const ::std::string& value) { - grant_types_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::add_grant_types_supported(::std::string&& value) { - grant_types_supported_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -#endif -inline void OAuth2MetadataResponse::add_grant_types_supported(const char* value) { - GOOGLE_DCHECK(value != nullptr); - grant_types_supported_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -inline void OAuth2MetadataResponse::add_grant_types_supported(const char* value, size_t size) { - grant_types_supported_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -OAuth2MetadataResponse::grant_types_supported() const { - // @@protoc_insertion_point(field_list:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - return grant_types_supported_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -OAuth2MetadataResponse::mutable_grant_types_supported() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.OAuth2MetadataResponse.grant_types_supported) - return &grant_types_supported_; -} - -// string device_authorization_endpoint = 10; -inline void OAuth2MetadataResponse::clear_device_authorization_endpoint() { - device_authorization_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& OAuth2MetadataResponse::device_authorization_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) - return device_authorization_endpoint_.GetNoArena(); -} -inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const ::std::string& value) { - - device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) -} -#if LANG_CXX11 -inline void OAuth2MetadataResponse::set_device_authorization_endpoint(::std::string&& value) { - - device_authorization_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) -} -#endif -inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) -} -inline void OAuth2MetadataResponse::set_device_authorization_endpoint(const char* value, size_t size) { - - device_authorization_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) -} -inline ::std::string* OAuth2MetadataResponse::mutable_device_authorization_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) - return device_authorization_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* OAuth2MetadataResponse::release_device_authorization_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) - - return device_authorization_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void OAuth2MetadataResponse::set_allocated_device_authorization_endpoint(::std::string* device_authorization_endpoint) { - if (device_authorization_endpoint != nullptr) { - - } else { - - } - device_authorization_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_authorization_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.OAuth2MetadataResponse.device_authorization_endpoint) -} - -// ------------------------------------------------------------------- - -// PublicClientAuthConfigRequest - -// ------------------------------------------------------------------- - -// PublicClientAuthConfigResponse - -// string client_id = 1; -inline void PublicClientAuthConfigResponse::clear_client_id() { - client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublicClientAuthConfigResponse::client_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.client_id) - return client_id_.GetNoArena(); -} -inline void PublicClientAuthConfigResponse::set_client_id(const ::std::string& value) { - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.client_id) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_client_id(::std::string&& value) { - - client_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.client_id) -} -#endif -inline void PublicClientAuthConfigResponse::set_client_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.client_id) -} -inline void PublicClientAuthConfigResponse::set_client_id(const char* value, size_t size) { - - client_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.client_id) -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_client_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.client_id) - return client_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublicClientAuthConfigResponse::release_client_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.client_id) - - return client_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublicClientAuthConfigResponse::set_allocated_client_id(::std::string* client_id) { - if (client_id != nullptr) { - - } else { - - } - client_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), client_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.client_id) -} - -// string redirect_uri = 2; -inline void PublicClientAuthConfigResponse::clear_redirect_uri() { - redirect_uri_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublicClientAuthConfigResponse::redirect_uri() const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) - return redirect_uri_.GetNoArena(); -} -inline void PublicClientAuthConfigResponse::set_redirect_uri(const ::std::string& value) { - - redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_redirect_uri(::std::string&& value) { - - redirect_uri_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) -} -#endif -inline void PublicClientAuthConfigResponse::set_redirect_uri(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) -} -inline void PublicClientAuthConfigResponse::set_redirect_uri(const char* value, size_t size) { - - redirect_uri_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_redirect_uri() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) - return redirect_uri_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublicClientAuthConfigResponse::release_redirect_uri() { - // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) - - return redirect_uri_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublicClientAuthConfigResponse::set_allocated_redirect_uri(::std::string* redirect_uri) { - if (redirect_uri != nullptr) { - - } else { - - } - redirect_uri_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), redirect_uri); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.redirect_uri) -} - -// repeated string scopes = 3; -inline int PublicClientAuthConfigResponse::scopes_size() const { - return scopes_.size(); -} -inline void PublicClientAuthConfigResponse::clear_scopes() { - scopes_.Clear(); -} -inline const ::std::string& PublicClientAuthConfigResponse::scopes(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.scopes) - return scopes_.Get(index); -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_scopes(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.scopes) - return scopes_.Mutable(index); -} -inline void PublicClientAuthConfigResponse::set_scopes(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.scopes) - scopes_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_scopes(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.scopes) - scopes_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void PublicClientAuthConfigResponse::set_scopes(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - scopes_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -inline void PublicClientAuthConfigResponse::set_scopes(int index, const char* value, size_t size) { - scopes_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -inline ::std::string* PublicClientAuthConfigResponse::add_scopes() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.PublicClientAuthConfigResponse.scopes) - return scopes_.Add(); -} -inline void PublicClientAuthConfigResponse::add_scopes(const ::std::string& value) { - scopes_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::add_scopes(::std::string&& value) { - scopes_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -#endif -inline void PublicClientAuthConfigResponse::add_scopes(const char* value) { - GOOGLE_DCHECK(value != nullptr); - scopes_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -inline void PublicClientAuthConfigResponse::add_scopes(const char* value, size_t size) { - scopes_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.PublicClientAuthConfigResponse.scopes) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -PublicClientAuthConfigResponse::scopes() const { - // @@protoc_insertion_point(field_list:flyteidl.service.PublicClientAuthConfigResponse.scopes) - return scopes_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -PublicClientAuthConfigResponse::mutable_scopes() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.PublicClientAuthConfigResponse.scopes) - return &scopes_; -} - -// string authorization_metadata_key = 4; -inline void PublicClientAuthConfigResponse::clear_authorization_metadata_key() { - authorization_metadata_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublicClientAuthConfigResponse::authorization_metadata_key() const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) - return authorization_metadata_key_.GetNoArena(); -} -inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const ::std::string& value) { - - authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(::std::string&& value) { - - authorization_metadata_key_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) -} -#endif -inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) -} -inline void PublicClientAuthConfigResponse::set_authorization_metadata_key(const char* value, size_t size) { - - authorization_metadata_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_authorization_metadata_key() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) - return authorization_metadata_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublicClientAuthConfigResponse::release_authorization_metadata_key() { - // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) - - return authorization_metadata_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublicClientAuthConfigResponse::set_allocated_authorization_metadata_key(::std::string* authorization_metadata_key) { - if (authorization_metadata_key != nullptr) { - - } else { - - } - authorization_metadata_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), authorization_metadata_key); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.authorization_metadata_key) -} - -// string service_http_endpoint = 5; -inline void PublicClientAuthConfigResponse::clear_service_http_endpoint() { - service_http_endpoint_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublicClientAuthConfigResponse::service_http_endpoint() const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) - return service_http_endpoint_.GetNoArena(); -} -inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const ::std::string& value) { - - service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_service_http_endpoint(::std::string&& value) { - - service_http_endpoint_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) -} -#endif -inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) -} -inline void PublicClientAuthConfigResponse::set_service_http_endpoint(const char* value, size_t size) { - - service_http_endpoint_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_service_http_endpoint() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) - return service_http_endpoint_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublicClientAuthConfigResponse::release_service_http_endpoint() { - // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) - - return service_http_endpoint_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublicClientAuthConfigResponse::set_allocated_service_http_endpoint(::std::string* service_http_endpoint) { - if (service_http_endpoint != nullptr) { - - } else { - - } - service_http_endpoint_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), service_http_endpoint); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.service_http_endpoint) -} - -// string audience = 6; -inline void PublicClientAuthConfigResponse::clear_audience() { - audience_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& PublicClientAuthConfigResponse::audience() const { - // @@protoc_insertion_point(field_get:flyteidl.service.PublicClientAuthConfigResponse.audience) - return audience_.GetNoArena(); -} -inline void PublicClientAuthConfigResponse::set_audience(const ::std::string& value) { - - audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.PublicClientAuthConfigResponse.audience) -} -#if LANG_CXX11 -inline void PublicClientAuthConfigResponse::set_audience(::std::string&& value) { - - audience_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.PublicClientAuthConfigResponse.audience) -} -#endif -inline void PublicClientAuthConfigResponse::set_audience(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PublicClientAuthConfigResponse.audience) -} -inline void PublicClientAuthConfigResponse::set_audience(const char* value, size_t size) { - - audience_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PublicClientAuthConfigResponse.audience) -} -inline ::std::string* PublicClientAuthConfigResponse::mutable_audience() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.PublicClientAuthConfigResponse.audience) - return audience_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* PublicClientAuthConfigResponse::release_audience() { - // @@protoc_insertion_point(field_release:flyteidl.service.PublicClientAuthConfigResponse.audience) - - return audience_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void PublicClientAuthConfigResponse::set_allocated_audience(::std::string* audience) { - if (audience != nullptr) { - - } else { - - } - audience_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), audience); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PublicClientAuthConfigResponse.audience) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fauth_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc deleted file mode 100644 index 2bff0c5a85..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.cc +++ /dev/null @@ -1,211 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/dataproxy.proto - -#include "flyteidl/service/dataproxy.pb.h" -#include "flyteidl/service/dataproxy.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* DataProxyService_method_names[] = { - "/flyteidl.service.DataProxyService/CreateUploadLocation", - "/flyteidl.service.DataProxyService/CreateDownloadLocation", - "/flyteidl.service.DataProxyService/CreateDownloadLink", - "/flyteidl.service.DataProxyService/GetData", -}; - -std::unique_ptr< DataProxyService::Stub> DataProxyService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< DataProxyService::Stub> stub(new DataProxyService::Stub(channel)); - return stub; -} - -DataProxyService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateUploadLocation_(DataProxyService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateDownloadLocation_(DataProxyService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_CreateDownloadLink_(DataProxyService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetData_(DataProxyService_method_names[3], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status DataProxyService::Stub::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateUploadLocation_, context, request, response); -} - -void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, reactor); -} - -void DataProxyService::Stub::experimental_async::CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateUploadLocation_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* DataProxyService::Stub::AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateUploadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateUploadLocation_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* DataProxyService::Stub::PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateUploadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateUploadLocation_, context, request, false); -} - -::grpc::Status DataProxyService::Stub::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDownloadLocation_, context, request, response); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, reactor); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLocation_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* DataProxyService::Stub::AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLocation_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* DataProxyService::Stub::PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLocationResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLocation_, context, request, false); -} - -::grpc::Status DataProxyService::Stub::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateDownloadLink_, context, request, response); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, reactor); -} - -void DataProxyService::Stub::experimental_async::CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateDownloadLink_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* DataProxyService::Stub::AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLinkResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLink_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* DataProxyService::Stub::PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::CreateDownloadLinkResponse>::Create(channel_.get(), cq, rpcmethod_CreateDownloadLink_, context, request, false); -} - -::grpc::Status DataProxyService::Stub::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetData_, context, request, response); -} - -void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, std::move(f)); -} - -void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, reactor); -} - -void DataProxyService::Stub::experimental_async::GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetData_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* DataProxyService::Stub::AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::GetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetData_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* DataProxyService::Stub::PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::GetDataResponse>::Create(channel_.get(), cq, rpcmethod_GetData_, context, request, false); -} - -DataProxyService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataProxyService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>( - std::mem_fn(&DataProxyService::Service::CreateUploadLocation), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataProxyService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>( - std::mem_fn(&DataProxyService::Service::CreateDownloadLocation), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataProxyService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>( - std::mem_fn(&DataProxyService::Service::CreateDownloadLink), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - DataProxyService_method_names[3], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< DataProxyService::Service, ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>( - std::mem_fn(&DataProxyService::Service::GetData), this))); -} - -DataProxyService::Service::~Service() { -} - -::grpc::Status DataProxyService::Service::CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataProxyService::Service::CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataProxyService::Service::CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status DataProxyService::Service::GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h deleted file mode 100644 index aaf05b601a..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.grpc.pb.h +++ /dev/null @@ -1,748 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/dataproxy.proto -#ifndef GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED - -#include "flyteidl/service/dataproxy.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. -class DataProxyService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.DataProxyService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - virtual ::grpc::Status CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>> AsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>>(AsyncCreateUploadLocationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>> PrepareAsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>>(PrepareAsyncCreateUploadLocationRaw(context, request, cq)); - } - // CreateDownloadLocation creates a signed url to download artifacts. - virtual ::grpc::Status CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>> AsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>>(AsyncCreateDownloadLocationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>> PrepareAsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>>(PrepareAsyncCreateDownloadLocationRaw(context, request, cq)); - } - // CreateDownloadLocation creates a signed url to download artifacts. - virtual ::grpc::Status CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>> AsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>>(AsyncCreateDownloadLinkRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>> PrepareAsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>>(PrepareAsyncCreateDownloadLinkRaw(context, request, cq)); - } - virtual ::grpc::Status GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>> AsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>>(AsyncGetDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>> PrepareAsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>>(PrepareAsyncGetDataRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) = 0; - virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) = 0; - virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // CreateDownloadLocation creates a signed url to download artifacts. - virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) = 0; - virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) = 0; - virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // CreateDownloadLocation creates a signed url to download artifacts. - virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) = 0; - virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) = 0; - virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function) = 0; - virtual void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function) = 0; - virtual void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>* AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateUploadLocationResponse>* PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>* AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLocationResponse>* PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>* AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::CreateDownloadLinkResponse>* PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>* AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::GetDataResponse>* PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::flyteidl::service::CreateUploadLocationResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>> AsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>>(AsyncCreateUploadLocationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>> PrepareAsyncCreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>>(PrepareAsyncCreateUploadLocationRaw(context, request, cq)); - } - ::grpc::Status CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::flyteidl::service::CreateDownloadLocationResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>> AsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>>(AsyncCreateDownloadLocationRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>> PrepareAsyncCreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>>(PrepareAsyncCreateDownloadLocationRaw(context, request, cq)); - } - ::grpc::Status CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::flyteidl::service::CreateDownloadLinkResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>> AsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>>(AsyncCreateDownloadLinkRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>> PrepareAsyncCreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>>(PrepareAsyncCreateDownloadLinkRaw(context, request, cq)); - } - ::grpc::Status GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::flyteidl::service::GetDataResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>> AsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>>(AsyncGetDataRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>> PrepareAsyncGetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>>(PrepareAsyncGetDataRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) override; - void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, std::function) override; - void CreateUploadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateUploadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) override; - void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, std::function) override; - void CreateDownloadLocation(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateDownloadLocation(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) override; - void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, std::function) override; - void CreateDownloadLink(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateDownloadLink(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, std::function) override; - void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, std::function) override; - void GetData(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetData(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* AsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateUploadLocationResponse>* PrepareAsyncCreateUploadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateUploadLocationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* AsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLocationResponse>* PrepareAsyncCreateDownloadLocationRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLocationRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* AsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::CreateDownloadLinkResponse>* PrepareAsyncCreateDownloadLinkRaw(::grpc::ClientContext* context, const ::flyteidl::service::CreateDownloadLinkRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* AsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::GetDataResponse>* PrepareAsyncGetDataRaw(::grpc::ClientContext* context, const ::flyteidl::service::GetDataRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateUploadLocation_; - const ::grpc::internal::RpcMethod rpcmethod_CreateDownloadLocation_; - const ::grpc::internal::RpcMethod rpcmethod_CreateDownloadLink_; - const ::grpc::internal::RpcMethod rpcmethod_GetData_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - virtual ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response); - // CreateDownloadLocation creates a signed url to download artifacts. - virtual ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response); - // CreateDownloadLocation creates a signed url to download artifacts. - virtual ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response); - virtual ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response); - }; - template - class WithAsyncMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateUploadLocation() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateUploadLocation(::grpc::ServerContext* context, ::flyteidl::service::CreateUploadLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateUploadLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateDownloadLocation() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDownloadLocation(::grpc::ServerContext* context, ::flyteidl::service::CreateDownloadLocationRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateDownloadLocationResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateDownloadLink() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDownloadLink(::grpc::ServerContext* context, ::flyteidl::service::CreateDownloadLinkRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::CreateDownloadLinkResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetData() { - ::grpc::Service::MarkMethodAsync(3); - } - ~WithAsyncMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetData(::grpc::ServerContext* context, ::flyteidl::service::GetDataRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::GetDataResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateUploadLocation > > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateUploadLocation() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::CreateUploadLocationRequest* request, - ::flyteidl::service::CreateUploadLocationResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateUploadLocation(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateUploadLocation( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateDownloadLocation() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::CreateDownloadLocationRequest* request, - ::flyteidl::service::CreateDownloadLocationResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateDownloadLocation(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateDownloadLocation( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateDownloadLink() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::CreateDownloadLinkRequest* request, - ::flyteidl::service::CreateDownloadLinkResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateDownloadLink(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateDownloadLink( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetData() { - ::grpc::Service::experimental().MarkMethodCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::GetDataRequest* request, - ::flyteidl::service::GetDataResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetData(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetData( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>*>( - ::grpc::Service::experimental().GetHandler(3)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateUploadLocation > > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateUploadLocation() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateDownloadLocation() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateDownloadLink() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetData() { - ::grpc::Service::MarkMethodGeneric(3); - } - ~WithGenericMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateUploadLocation() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateUploadLocation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateDownloadLocation() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDownloadLocation(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateDownloadLink() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateDownloadLink(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetData() { - ::grpc::Service::MarkMethodRaw(3); - } - ~WithRawMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetData(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(3, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateUploadLocation() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateUploadLocation(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateUploadLocation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateDownloadLocation() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateDownloadLocation(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDownloadLocation(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateDownloadLink() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateDownloadLink(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateDownloadLink(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetData() { - ::grpc::Service::experimental().MarkMethodRawCallback(3, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetData(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetData(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateUploadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateUploadLocation() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateUploadLocationRequest, ::flyteidl::service::CreateUploadLocationResponse>(std::bind(&WithStreamedUnaryMethod_CreateUploadLocation::StreamedCreateUploadLocation, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateUploadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateUploadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateUploadLocationRequest* request, ::flyteidl::service::CreateUploadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateUploadLocation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateUploadLocationRequest,::flyteidl::service::CreateUploadLocationResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateDownloadLocation : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateDownloadLocation() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateDownloadLocationRequest, ::flyteidl::service::CreateDownloadLocationResponse>(std::bind(&WithStreamedUnaryMethod_CreateDownloadLocation::StreamedCreateDownloadLocation, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateDownloadLocation() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateDownloadLocation(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLocationRequest* request, ::flyteidl::service::CreateDownloadLocationResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateDownloadLocation(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateDownloadLocationRequest,::flyteidl::service::CreateDownloadLocationResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_CreateDownloadLink : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateDownloadLink() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::CreateDownloadLinkRequest, ::flyteidl::service::CreateDownloadLinkResponse>(std::bind(&WithStreamedUnaryMethod_CreateDownloadLink::StreamedCreateDownloadLink, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateDownloadLink() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateDownloadLink(::grpc::ServerContext* context, const ::flyteidl::service::CreateDownloadLinkRequest* request, ::flyteidl::service::CreateDownloadLinkResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateDownloadLink(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::CreateDownloadLinkRequest,::flyteidl::service::CreateDownloadLinkResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetData : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetData() { - ::grpc::Service::MarkMethodStreamed(3, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::GetDataRequest, ::flyteidl::service::GetDataResponse>(std::bind(&WithStreamedUnaryMethod_GetData::StreamedGetData, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetData() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetData(::grpc::ServerContext* context, const ::flyteidl::service::GetDataRequest* request, ::flyteidl::service::GetDataResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetData(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::GetDataRequest,::flyteidl::service::GetDataResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateUploadLocation > > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateUploadLocation > > > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fdataproxy_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc deleted file mode 100644 index 8f6df06102..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.cc +++ /dev/null @@ -1,4341 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/dataproxy.proto - -#include "flyteidl/service/dataproxy.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fidentifier_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fdataproxy_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration_google_2fprotobuf_2fduration_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto; -namespace flyteidl { -namespace service { -class CreateUploadLocationResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateUploadLocationResponse_default_instance_; -class CreateUploadLocationRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateUploadLocationRequest_default_instance_; -class CreateDownloadLocationRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateDownloadLocationRequest_default_instance_; -class CreateDownloadLocationResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateDownloadLocationResponse_default_instance_; -class CreateDownloadLinkRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; -} _CreateDownloadLinkRequest_default_instance_; -class CreateDownloadLinkResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _CreateDownloadLinkResponse_default_instance_; -class PreSignedURLsDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _PreSignedURLs_default_instance_; -class GetDataRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _GetDataRequest_default_instance_; -class GetDataResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; - const ::flyteidl::core::LiteralMap* literal_map_; - const ::flyteidl::service::PreSignedURLs* pre_signed_urls_; - const ::flyteidl::core::Literal* literal_; -} _GetDataResponse_default_instance_; -} // namespace service -} // namespace flyteidl -static void InitDefaultsCreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateUploadLocationResponse_default_instance_; - new (ptr) ::flyteidl::service::CreateUploadLocationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateUploadLocationResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsCreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateUploadLocationRequest_default_instance_; - new (ptr) ::flyteidl::service::CreateUploadLocationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateUploadLocationRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsCreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateDownloadLocationRequest_default_instance_; - new (ptr) ::flyteidl::service::CreateDownloadLocationRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateDownloadLocationRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base,}}; - -static void InitDefaultsCreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateDownloadLocationResponse_default_instance_; - new (ptr) ::flyteidl::service::CreateDownloadLocationResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateDownloadLocationResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsCreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsCreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateDownloadLinkRequest_default_instance_; - new (ptr) ::flyteidl::service::CreateDownloadLinkRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateDownloadLinkRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Duration_google_2fprotobuf_2fduration_2eproto.base, - &scc_info_NodeExecutionIdentifier_flyteidl_2fcore_2fidentifier_2eproto.base,}}; - -static void InitDefaultsCreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_CreateDownloadLinkResponse_default_instance_; - new (ptr) ::flyteidl::service::CreateDownloadLinkResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::CreateDownloadLinkResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsCreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base, - &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base,}}; - -static void InitDefaultsPreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_PreSignedURLs_default_instance_; - new (ptr) ::flyteidl::service::PreSignedURLs(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::PreSignedURLs::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsPreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Timestamp_google_2fprotobuf_2ftimestamp_2eproto.base,}}; - -static void InitDefaultsGetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_GetDataRequest_default_instance_; - new (ptr) ::flyteidl::service::GetDataRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::GetDataRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsGetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto}, {}}; - -static void InitDefaultsGetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_GetDataResponse_default_instance_; - new (ptr) ::flyteidl::service::GetDataResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::GetDataResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsGetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base,}}; - -void InitDefaults_flyteidl_2fservice_2fdataproxy_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[9]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fdataproxy_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fdataproxy_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, signed_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, native_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationResponse, expires_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, project_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, domain_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, filename_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, expires_in_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, content_md5_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateUploadLocationRequest, filename_root_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, native_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationRequest, expires_in_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, signed_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLocationResponse, expires_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, artifact_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, expires_in_), - offsetof(::flyteidl::service::CreateDownloadLinkRequestDefaultTypeInternal, node_execution_id_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkRequest, source_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, signed_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, expires_at_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::CreateDownloadLinkResponse, pre_signed_urls_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, signed_url_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::PreSignedURLs, expires_at_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataRequest, flyte_url_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, _internal_metadata_), - ~0u, // no _extensions_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, _oneof_case_[0]), - ~0u, // no _weak_field_map_ - offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, literal_map_), - offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, pre_signed_urls_), - offsetof(::flyteidl::service::GetDataResponseDefaultTypeInternal, literal_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::GetDataResponse, data_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::service::CreateUploadLocationResponse)}, - { 8, -1, sizeof(::flyteidl::service::CreateUploadLocationRequest)}, - { 19, -1, sizeof(::flyteidl::service::CreateDownloadLocationRequest)}, - { 26, -1, sizeof(::flyteidl::service::CreateDownloadLocationResponse)}, - { 33, -1, sizeof(::flyteidl::service::CreateDownloadLinkRequest)}, - { 42, -1, sizeof(::flyteidl::service::CreateDownloadLinkResponse)}, - { 50, -1, sizeof(::flyteidl::service::PreSignedURLs)}, - { 57, -1, sizeof(::flyteidl::service::GetDataRequest)}, - { 63, -1, sizeof(::flyteidl::service::GetDataResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::service::_CreateUploadLocationResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_CreateUploadLocationRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_CreateDownloadLocationRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_CreateDownloadLocationResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_CreateDownloadLinkRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_CreateDownloadLinkResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_PreSignedURLs_default_instance_), - reinterpret_cast(&::flyteidl::service::_GetDataRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_GetDataResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto, "flyteidl/service/dataproxy.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fdataproxy_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto, 9, file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fdataproxy_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fdataproxy_2eproto[] = - "\n flyteidl/service/dataproxy.proto\022\020flyt" - "eidl.service\032\034google/api/annotations.pro" - "to\032\036google/protobuf/duration.proto\032\037goog" - "le/protobuf/timestamp.proto\032\036flyteidl/co" - "re/identifier.proto\032\034flyteidl/core/liter" - "als.proto\"v\n\034CreateUploadLocationRespons" - "e\022\022\n\nsigned_url\030\001 \001(\t\022\022\n\nnative_url\030\002 \001(" - "\t\022.\n\nexpires_at\030\003 \001(\0132\032.google.protobuf." - "Timestamp\"\253\001\n\033CreateUploadLocationReques" - "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010fi" - "lename\030\003 \001(\t\022-\n\nexpires_in\030\004 \001(\0132\031.googl" - "e.protobuf.Duration\022\023\n\013content_md5\030\005 \001(\014" - "\022\025\n\rfilename_root\030\006 \001(\t\"f\n\035CreateDownloa" - "dLocationRequest\022\022\n\nnative_url\030\001 \001(\t\022-\n\n" - "expires_in\030\002 \001(\0132\031.google.protobuf.Durat" - "ion:\002\030\001\"h\n\036CreateDownloadLocationRespons" - "e\022\022\n\nsigned_url\030\001 \001(\t\022.\n\nexpires_at\030\002 \001(" - "\0132\032.google.protobuf.Timestamp:\002\030\001\"\320\001\n\031Cr" - "eateDownloadLinkRequest\0225\n\rartifact_type" - "\030\001 \001(\0162\036.flyteidl.service.ArtifactType\022-" - "\n\nexpires_in\030\002 \001(\0132\031.google.protobuf.Dur" - "ation\022C\n\021node_execution_id\030\003 \001(\0132&.flyte" - "idl.core.NodeExecutionIdentifierH\000B\010\n\006so" - "urce\"\242\001\n\032CreateDownloadLinkResponse\022\026\n\ns" - "igned_url\030\001 \003(\tB\002\030\001\0222\n\nexpires_at\030\002 \001(\0132" - "\032.google.protobuf.TimestampB\002\030\001\0228\n\017pre_s" - "igned_urls\030\003 \001(\0132\037.flyteidl.service.PreS" - "ignedURLs\"S\n\rPreSignedURLs\022\022\n\nsigned_url" - "\030\001 \003(\t\022.\n\nexpires_at\030\002 \001(\0132\032.google.prot" - "obuf.Timestamp\"#\n\016GetDataRequest\022\021\n\tflyt" - "e_url\030\001 \001(\t\"\262\001\n\017GetDataResponse\0220\n\013liter" - "al_map\030\001 \001(\0132\031.flyteidl.core.LiteralMapH" - "\000\022:\n\017pre_signed_urls\030\002 \001(\0132\037.flyteidl.se" - "rvice.PreSignedURLsH\000\022)\n\007literal\030\003 \001(\0132\026" - ".flyteidl.core.LiteralH\000B\006\n\004data*C\n\014Arti" - "factType\022\033\n\027ARTIFACT_TYPE_UNDEFINED\020\000\022\026\n" - "\022ARTIFACT_TYPE_DECK\020\0012\342\004\n\020DataProxyServi" - "ce\022\240\001\n\024CreateUploadLocation\022-.flyteidl.s" - "ervice.CreateUploadLocationRequest\032..fly" - "teidl.service.CreateUploadLocationRespon" - "se\")\202\323\344\223\002#\"\036/api/v1/dataproxy/artifact_u" - "rn:\001*\022\246\001\n\026CreateDownloadLocation\022/.flyte" - "idl.service.CreateDownloadLocationReques" - "t\0320.flyteidl.service.CreateDownloadLocat" - "ionResponse\")\210\002\001\202\323\344\223\002 \022\036/api/v1/dataprox" - "y/artifact_urn\022\233\001\n\022CreateDownloadLink\022+." - "flyteidl.service.CreateDownloadLinkReque" - "st\032,.flyteidl.service.CreateDownloadLink" - "Response\"*\202\323\344\223\002$\"\037/api/v1/dataproxy/arti" - "fact_link:\001*\022d\n\007GetData\022 .flyteidl.servi" - "ce.GetDataRequest\032!.flyteidl.service.Get" - "DataResponse\"\024\202\323\344\223\002\016\022\014/api/v1/dataB\?Z=gi" - "thub.com/flyteorg/flyte/flyteidl/gen/pb-" - "go/flyteidl/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fdataproxy_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fdataproxy_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fdataproxy_2eproto, - "flyteidl/service/dataproxy.proto", &assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto, 2147, -}; - -void AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[5] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_google_2fprotobuf_2fduration_2eproto, - ::AddDescriptors_google_2fprotobuf_2ftimestamp_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fidentifier_2eproto, - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fdataproxy_2eproto, deps, 5); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fdataproxy_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto(); return true; }(); -namespace flyteidl { -namespace service { -const ::google::protobuf::EnumDescriptor* ArtifactType_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return file_level_enum_descriptors_flyteidl_2fservice_2fdataproxy_2eproto[0]; -} -bool ArtifactType_IsValid(int value) { - switch (value) { - case 0: - case 1: - return true; - default: - return false; - } -} - - -// =================================================================== - -void CreateUploadLocationResponse::InitAsDefaultInstance() { - ::flyteidl::service::_CreateUploadLocationResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class CreateUploadLocationResponse::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& expires_at(const CreateUploadLocationResponse* msg); -}; - -const ::google::protobuf::Timestamp& -CreateUploadLocationResponse::HasBitSetters::expires_at(const CreateUploadLocationResponse* msg) { - return *msg->expires_at_; -} -void CreateUploadLocationResponse::clear_expires_at() { - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateUploadLocationResponse::kSignedUrlFieldNumber; -const int CreateUploadLocationResponse::kNativeUrlFieldNumber; -const int CreateUploadLocationResponse::kExpiresAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateUploadLocationResponse::CreateUploadLocationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateUploadLocationResponse) -} -CreateUploadLocationResponse::CreateUploadLocationResponse(const CreateUploadLocationResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.signed_url().size() > 0) { - signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); - } - native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.native_url().size() > 0) { - native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); - } - if (from.has_expires_at()) { - expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); - } else { - expires_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateUploadLocationResponse) -} - -void CreateUploadLocationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - expires_at_ = nullptr; -} - -CreateUploadLocationResponse::~CreateUploadLocationResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateUploadLocationResponse) - SharedDtor(); -} - -void CreateUploadLocationResponse::SharedDtor() { - signed_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - native_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete expires_at_; -} - -void CreateUploadLocationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateUploadLocationResponse& CreateUploadLocationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateUploadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateUploadLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateUploadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateUploadLocationResponse::_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) { - // string signed_url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationResponse.signed_url"); - object = msg->mutable_signed_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string native_url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationResponse.native_url"); - object = msg->mutable_native_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Timestamp expires_at = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_expires_at(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateUploadLocationResponse::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.service.CreateUploadLocationResponse) - 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)) { - // string signed_url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_signed_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationResponse.signed_url")); - } else { - goto handle_unusual; - } - break; - } - - // string native_url = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_native_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationResponse.native_url")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp expires_at = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_at())); - } 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.service.CreateUploadLocationResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateUploadLocationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateUploadLocationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateUploadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationResponse.signed_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->signed_url(), output); - } - - // string native_url = 2; - if (this->native_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationResponse.native_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->native_url(), output); - } - - // .google.protobuf.Timestamp expires_at = 3; - if (this->has_expires_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::expires_at(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateUploadLocationResponse) -} - -::google::protobuf::uint8* CreateUploadLocationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateUploadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationResponse.signed_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->signed_url(), target); - } - - // string native_url = 2; - if (this->native_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationResponse.native_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->native_url(), target); - } - - // .google.protobuf.Timestamp expires_at = 3; - if (this->has_expires_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::expires_at(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.service.CreateUploadLocationResponse) - return target; -} - -size_t CreateUploadLocationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateUploadLocationResponse) - 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; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->signed_url()); - } - - // string native_url = 2; - if (this->native_url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->native_url()); - } - - // .google.protobuf.Timestamp expires_at = 3; - if (this->has_expires_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateUploadLocationResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateUploadLocationResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateUploadLocationResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateUploadLocationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateUploadLocationResponse) - MergeFrom(*source); - } -} - -void CreateUploadLocationResponse::MergeFrom(const CreateUploadLocationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateUploadLocationResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.signed_url().size() > 0) { - - signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); - } - if (from.native_url().size() > 0) { - - native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); - } - if (from.has_expires_at()) { - mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); - } -} - -void CreateUploadLocationResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateUploadLocationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateUploadLocationResponse::CopyFrom(const CreateUploadLocationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateUploadLocationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateUploadLocationResponse::IsInitialized() const { - return true; -} - -void CreateUploadLocationResponse::Swap(CreateUploadLocationResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateUploadLocationResponse::InternalSwap(CreateUploadLocationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signed_url_.Swap(&other->signed_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - native_url_.Swap(&other->native_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(expires_at_, other->expires_at_); -} - -::google::protobuf::Metadata CreateUploadLocationResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateUploadLocationRequest::InitAsDefaultInstance() { - ::flyteidl::service::_CreateUploadLocationRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class CreateUploadLocationRequest::HasBitSetters { - public: - static const ::google::protobuf::Duration& expires_in(const CreateUploadLocationRequest* msg); -}; - -const ::google::protobuf::Duration& -CreateUploadLocationRequest::HasBitSetters::expires_in(const CreateUploadLocationRequest* msg) { - return *msg->expires_in_; -} -void CreateUploadLocationRequest::clear_expires_in() { - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateUploadLocationRequest::kProjectFieldNumber; -const int CreateUploadLocationRequest::kDomainFieldNumber; -const int CreateUploadLocationRequest::kFilenameFieldNumber; -const int CreateUploadLocationRequest::kExpiresInFieldNumber; -const int CreateUploadLocationRequest::kContentMd5FieldNumber; -const int CreateUploadLocationRequest::kFilenameRootFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateUploadLocationRequest::CreateUploadLocationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateUploadLocationRequest) -} -CreateUploadLocationRequest::CreateUploadLocationRequest(const CreateUploadLocationRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.project().size() > 0) { - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.domain().size() > 0) { - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filename().size() > 0) { - filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); - } - content_md5_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.content_md5().size() > 0) { - content_md5_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_md5_); - } - filename_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.filename_root().size() > 0) { - filename_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_root_); - } - if (from.has_expires_in()) { - expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); - } else { - expires_in_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateUploadLocationRequest) -} - -void CreateUploadLocationRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - project_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - content_md5_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_root_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - expires_in_ = nullptr; -} - -CreateUploadLocationRequest::~CreateUploadLocationRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateUploadLocationRequest) - SharedDtor(); -} - -void CreateUploadLocationRequest::SharedDtor() { - project_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - content_md5_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_root_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete expires_in_; -} - -void CreateUploadLocationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateUploadLocationRequest& CreateUploadLocationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateUploadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateUploadLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateUploadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - content_md5_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - filename_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateUploadLocationRequest::_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) { - // string project = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.project"); - object = msg->mutable_project(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string domain = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.domain"); - object = msg->mutable_domain(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filename = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.filename"); - object = msg->mutable_filename(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Duration expires_in = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_expires_in(); - 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; - } - // bytes content_md5 = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - object = msg->mutable_content_md5(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParser; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheck(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string filename_root = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateUploadLocationRequest.filename_root"); - object = msg->mutable_filename_root(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateUploadLocationRequest::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.service.CreateUploadLocationRequest) - 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)) { - // string project = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_project())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationRequest.project")); - } else { - goto handle_unusual; - } - break; - } - - // string domain = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_domain())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationRequest.domain")); - } else { - goto handle_unusual; - } - break; - } - - // string filename = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filename())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationRequest.filename")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration expires_in = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_in())); - } else { - goto handle_unusual; - } - break; - } - - // bytes content_md5 = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_content_md5())); - } else { - goto handle_unusual; - } - break; - } - - // string filename_root = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_filename_root())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename_root().data(), static_cast(this->filename_root().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateUploadLocationRequest.filename_root")); - } 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.service.CreateUploadLocationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateUploadLocationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateUploadLocationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateUploadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.project"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->project(), output); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.domain"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->domain(), output); - } - - // string filename = 3; - if (this->filename().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.filename"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->filename(), output); - } - - // .google.protobuf.Duration expires_in = 4; - if (this->has_expires_in()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, HasBitSetters::expires_in(this), output); - } - - // bytes content_md5 = 5; - if (this->content_md5().size() > 0) { - ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( - 5, this->content_md5(), output); - } - - // string filename_root = 6; - if (this->filename_root().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename_root().data(), static_cast(this->filename_root().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.filename_root"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->filename_root(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateUploadLocationRequest) -} - -::google::protobuf::uint8* CreateUploadLocationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateUploadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string project = 1; - if (this->project().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->project().data(), static_cast(this->project().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.project"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->project(), target); - } - - // string domain = 2; - if (this->domain().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->domain().data(), static_cast(this->domain().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.domain"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->domain(), target); - } - - // string filename = 3; - if (this->filename().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename().data(), static_cast(this->filename().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.filename"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->filename(), target); - } - - // .google.protobuf.Duration expires_in = 4; - if (this->has_expires_in()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 4, HasBitSetters::expires_in(this), target); - } - - // bytes content_md5 = 5; - if (this->content_md5().size() > 0) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 5, this->content_md5(), target); - } - - // string filename_root = 6; - if (this->filename_root().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->filename_root().data(), static_cast(this->filename_root().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateUploadLocationRequest.filename_root"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->filename_root(), 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.service.CreateUploadLocationRequest) - return target; -} - -size_t CreateUploadLocationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateUploadLocationRequest) - 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; - - // string project = 1; - if (this->project().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->project()); - } - - // string domain = 2; - if (this->domain().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->domain()); - } - - // string filename = 3; - if (this->filename().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filename()); - } - - // bytes content_md5 = 5; - if (this->content_md5().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->content_md5()); - } - - // string filename_root = 6; - if (this->filename_root().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->filename_root()); - } - - // .google.protobuf.Duration expires_in = 4; - if (this->has_expires_in()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_in_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateUploadLocationRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateUploadLocationRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateUploadLocationRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateUploadLocationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateUploadLocationRequest) - MergeFrom(*source); - } -} - -void CreateUploadLocationRequest::MergeFrom(const CreateUploadLocationRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateUploadLocationRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.project().size() > 0) { - - project_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.project_); - } - if (from.domain().size() > 0) { - - domain_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.domain_); - } - if (from.filename().size() > 0) { - - filename_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_); - } - if (from.content_md5().size() > 0) { - - content_md5_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.content_md5_); - } - if (from.filename_root().size() > 0) { - - filename_root_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.filename_root_); - } - if (from.has_expires_in()) { - mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); - } -} - -void CreateUploadLocationRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateUploadLocationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateUploadLocationRequest::CopyFrom(const CreateUploadLocationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateUploadLocationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateUploadLocationRequest::IsInitialized() const { - return true; -} - -void CreateUploadLocationRequest::Swap(CreateUploadLocationRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateUploadLocationRequest::InternalSwap(CreateUploadLocationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - project_.Swap(&other->project_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - domain_.Swap(&other->domain_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filename_.Swap(&other->filename_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - content_md5_.Swap(&other->content_md5_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - filename_root_.Swap(&other->filename_root_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(expires_in_, other->expires_in_); -} - -::google::protobuf::Metadata CreateUploadLocationRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateDownloadLocationRequest::InitAsDefaultInstance() { - ::flyteidl::service::_CreateDownloadLocationRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); -} -class CreateDownloadLocationRequest::HasBitSetters { - public: - static const ::google::protobuf::Duration& expires_in(const CreateDownloadLocationRequest* msg); -}; - -const ::google::protobuf::Duration& -CreateDownloadLocationRequest::HasBitSetters::expires_in(const CreateDownloadLocationRequest* msg) { - return *msg->expires_in_; -} -void CreateDownloadLocationRequest::clear_expires_in() { - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateDownloadLocationRequest::kNativeUrlFieldNumber; -const int CreateDownloadLocationRequest::kExpiresInFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDownloadLocationRequest::CreateDownloadLocationRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLocationRequest) -} -CreateDownloadLocationRequest::CreateDownloadLocationRequest(const CreateDownloadLocationRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.native_url().size() > 0) { - native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); - } - if (from.has_expires_in()) { - expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); - } else { - expires_in_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLocationRequest) -} - -void CreateDownloadLocationRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - native_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - expires_in_ = nullptr; -} - -CreateDownloadLocationRequest::~CreateDownloadLocationRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLocationRequest) - SharedDtor(); -} - -void CreateDownloadLocationRequest::SharedDtor() { - native_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete expires_in_; -} - -void CreateDownloadLocationRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDownloadLocationRequest& CreateDownloadLocationRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLocationRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDownloadLocationRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDownloadLocationRequest::_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) { - // string native_url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLocationRequest.native_url"); - object = msg->mutable_native_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Duration expires_in = 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 = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_expires_in(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateDownloadLocationRequest::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.service.CreateDownloadLocationRequest) - 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)) { - // string native_url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_native_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateDownloadLocationRequest.native_url")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration expires_in = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_in())); - } 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.service.CreateDownloadLocationRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLocationRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDownloadLocationRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string native_url = 1; - if (this->native_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLocationRequest.native_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->native_url(), output); - } - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expires_in(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLocationRequest) -} - -::google::protobuf::uint8* CreateDownloadLocationRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLocationRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string native_url = 1; - if (this->native_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->native_url().data(), static_cast(this->native_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLocationRequest.native_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->native_url(), target); - } - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expires_in(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.service.CreateDownloadLocationRequest) - return target; -} - -size_t CreateDownloadLocationRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLocationRequest) - 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; - - // string native_url = 1; - if (this->native_url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->native_url()); - } - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_in_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDownloadLocationRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLocationRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateDownloadLocationRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLocationRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLocationRequest) - MergeFrom(*source); - } -} - -void CreateDownloadLocationRequest::MergeFrom(const CreateDownloadLocationRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLocationRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.native_url().size() > 0) { - - native_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.native_url_); - } - if (from.has_expires_in()) { - mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); - } -} - -void CreateDownloadLocationRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLocationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDownloadLocationRequest::CopyFrom(const CreateDownloadLocationRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLocationRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDownloadLocationRequest::IsInitialized() const { - return true; -} - -void CreateDownloadLocationRequest::Swap(CreateDownloadLocationRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDownloadLocationRequest::InternalSwap(CreateDownloadLocationRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - native_url_.Swap(&other->native_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(expires_in_, other->expires_in_); -} - -::google::protobuf::Metadata CreateDownloadLocationRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateDownloadLocationResponse::InitAsDefaultInstance() { - ::flyteidl::service::_CreateDownloadLocationResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class CreateDownloadLocationResponse::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& expires_at(const CreateDownloadLocationResponse* msg); -}; - -const ::google::protobuf::Timestamp& -CreateDownloadLocationResponse::HasBitSetters::expires_at(const CreateDownloadLocationResponse* msg) { - return *msg->expires_at_; -} -void CreateDownloadLocationResponse::clear_expires_at() { - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateDownloadLocationResponse::kSignedUrlFieldNumber; -const int CreateDownloadLocationResponse::kExpiresAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDownloadLocationResponse::CreateDownloadLocationResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLocationResponse) -} -CreateDownloadLocationResponse::CreateDownloadLocationResponse(const CreateDownloadLocationResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.signed_url().size() > 0) { - signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); - } - if (from.has_expires_at()) { - expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); - } else { - expires_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLocationResponse) -} - -void CreateDownloadLocationResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - signed_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - expires_at_ = nullptr; -} - -CreateDownloadLocationResponse::~CreateDownloadLocationResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLocationResponse) - SharedDtor(); -} - -void CreateDownloadLocationResponse::SharedDtor() { - signed_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete expires_at_; -} - -void CreateDownloadLocationResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDownloadLocationResponse& CreateDownloadLocationResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLocationResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDownloadLocationResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDownloadLocationResponse::_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) { - // string signed_url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLocationResponse.signed_url"); - object = msg->mutable_signed_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Timestamp expires_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_expires_at(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateDownloadLocationResponse::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.service.CreateDownloadLocationResponse) - 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)) { - // string signed_url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_signed_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateDownloadLocationResponse.signed_url")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp expires_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_at())); - } 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.service.CreateDownloadLocationResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLocationResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDownloadLocationResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLocationResponse.signed_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->signed_url(), output); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expires_at(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLocationResponse) -} - -::google::protobuf::uint8* CreateDownloadLocationResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLocationResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url().data(), static_cast(this->signed_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLocationResponse.signed_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->signed_url(), target); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expires_at(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.service.CreateDownloadLocationResponse) - return target; -} - -size_t CreateDownloadLocationResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLocationResponse) - 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; - - // string signed_url = 1; - if (this->signed_url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->signed_url()); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDownloadLocationResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLocationResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateDownloadLocationResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLocationResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLocationResponse) - MergeFrom(*source); - } -} - -void CreateDownloadLocationResponse::MergeFrom(const CreateDownloadLocationResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLocationResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.signed_url().size() > 0) { - - signed_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.signed_url_); - } - if (from.has_expires_at()) { - mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); - } -} - -void CreateDownloadLocationResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLocationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDownloadLocationResponse::CopyFrom(const CreateDownloadLocationResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLocationResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDownloadLocationResponse::IsInitialized() const { - return true; -} - -void CreateDownloadLocationResponse::Swap(CreateDownloadLocationResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDownloadLocationResponse::InternalSwap(CreateDownloadLocationResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signed_url_.Swap(&other->signed_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(expires_at_, other->expires_at_); -} - -::google::protobuf::Metadata CreateDownloadLocationResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateDownloadLinkRequest::InitAsDefaultInstance() { - ::flyteidl::service::_CreateDownloadLinkRequest_default_instance_._instance.get_mutable()->expires_in_ = const_cast< ::google::protobuf::Duration*>( - ::google::protobuf::Duration::internal_default_instance()); - ::flyteidl::service::_CreateDownloadLinkRequest_default_instance_.node_execution_id_ = const_cast< ::flyteidl::core::NodeExecutionIdentifier*>( - ::flyteidl::core::NodeExecutionIdentifier::internal_default_instance()); -} -class CreateDownloadLinkRequest::HasBitSetters { - public: - static const ::google::protobuf::Duration& expires_in(const CreateDownloadLinkRequest* msg); - static const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id(const CreateDownloadLinkRequest* msg); -}; - -const ::google::protobuf::Duration& -CreateDownloadLinkRequest::HasBitSetters::expires_in(const CreateDownloadLinkRequest* msg) { - return *msg->expires_in_; -} -const ::flyteidl::core::NodeExecutionIdentifier& -CreateDownloadLinkRequest::HasBitSetters::node_execution_id(const CreateDownloadLinkRequest* msg) { - return *msg->source_.node_execution_id_; -} -void CreateDownloadLinkRequest::clear_expires_in() { - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; -} -void CreateDownloadLinkRequest::set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_source(); - if (node_execution_id) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - node_execution_id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, node_execution_id, submessage_arena); - } - set_has_node_execution_id(); - source_.node_execution_id_ = node_execution_id; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) -} -void CreateDownloadLinkRequest::clear_node_execution_id() { - if (has_node_execution_id()) { - delete source_.node_execution_id_; - clear_has_source(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateDownloadLinkRequest::kArtifactTypeFieldNumber; -const int CreateDownloadLinkRequest::kExpiresInFieldNumber; -const int CreateDownloadLinkRequest::kNodeExecutionIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDownloadLinkRequest::CreateDownloadLinkRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLinkRequest) -} -CreateDownloadLinkRequest::CreateDownloadLinkRequest(const CreateDownloadLinkRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_expires_in()) { - expires_in_ = new ::google::protobuf::Duration(*from.expires_in_); - } else { - expires_in_ = nullptr; - } - artifact_type_ = from.artifact_type_; - clear_has_source(); - switch (from.source_case()) { - case kNodeExecutionId: { - mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); - break; - } - case SOURCE_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLinkRequest) -} - -void CreateDownloadLinkRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::memset(&expires_in_, 0, static_cast( - reinterpret_cast(&artifact_type_) - - reinterpret_cast(&expires_in_)) + sizeof(artifact_type_)); - clear_has_source(); -} - -CreateDownloadLinkRequest::~CreateDownloadLinkRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLinkRequest) - SharedDtor(); -} - -void CreateDownloadLinkRequest::SharedDtor() { - if (this != internal_default_instance()) delete expires_in_; - if (has_source()) { - clear_source(); - } -} - -void CreateDownloadLinkRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDownloadLinkRequest& CreateDownloadLinkRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLinkRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDownloadLinkRequest::clear_source() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.service.CreateDownloadLinkRequest) - switch (source_case()) { - case kNodeExecutionId: { - delete source_.node_execution_id_; - break; - } - case SOURCE_NOT_SET: { - break; - } - } - _oneof_case_[0] = SOURCE_NOT_SET; -} - - -void CreateDownloadLinkRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLinkRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && expires_in_ != nullptr) { - delete expires_in_; - } - expires_in_ = nullptr; - artifact_type_ = 0; - clear_source(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDownloadLinkRequest::_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.service.ArtifactType artifact_type = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_artifact_type(static_cast<::flyteidl::service::ArtifactType>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .google.protobuf.Duration expires_in = 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 = ::google::protobuf::Duration::_InternalParse; - object = msg->mutable_expires_in(); - 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.core.NodeExecutionIdentifier node_execution_id = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::NodeExecutionIdentifier::_InternalParse; - object = msg->mutable_node_execution_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 CreateDownloadLinkRequest::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.service.CreateDownloadLinkRequest) - 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.service.ArtifactType artifact_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_artifact_type(static_cast< ::flyteidl::service::ArtifactType >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Duration expires_in = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_in())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_node_execution_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.service.CreateDownloadLinkRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLinkRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDownloadLinkRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLinkRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.service.ArtifactType artifact_type = 1; - if (this->artifact_type() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->artifact_type(), output); - } - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expires_in(this), output); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - if (has_node_execution_id()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::node_execution_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.service.CreateDownloadLinkRequest) -} - -::google::protobuf::uint8* CreateDownloadLinkRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLinkRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.service.ArtifactType artifact_type = 1; - if (this->artifact_type() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->artifact_type(), target); - } - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expires_in(this), target); - } - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - if (has_node_execution_id()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::node_execution_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.service.CreateDownloadLinkRequest) - return target; -} - -size_t CreateDownloadLinkRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLinkRequest) - 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; - - // .google.protobuf.Duration expires_in = 2; - if (this->has_expires_in()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_in_); - } - - // .flyteidl.service.ArtifactType artifact_type = 1; - if (this->artifact_type() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->artifact_type()); - } - - switch (source_case()) { - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - case kNodeExecutionId: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *source_.node_execution_id_); - break; - } - case SOURCE_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDownloadLinkRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLinkRequest) - GOOGLE_DCHECK_NE(&from, this); - const CreateDownloadLinkRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLinkRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLinkRequest) - MergeFrom(*source); - } -} - -void CreateDownloadLinkRequest::MergeFrom(const CreateDownloadLinkRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLinkRequest) - 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_expires_in()) { - mutable_expires_in()->::google::protobuf::Duration::MergeFrom(from.expires_in()); - } - if (from.artifact_type() != 0) { - set_artifact_type(from.artifact_type()); - } - switch (from.source_case()) { - case kNodeExecutionId: { - mutable_node_execution_id()->::flyteidl::core::NodeExecutionIdentifier::MergeFrom(from.node_execution_id()); - break; - } - case SOURCE_NOT_SET: { - break; - } - } -} - -void CreateDownloadLinkRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLinkRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDownloadLinkRequest::CopyFrom(const CreateDownloadLinkRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLinkRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDownloadLinkRequest::IsInitialized() const { - return true; -} - -void CreateDownloadLinkRequest::Swap(CreateDownloadLinkRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDownloadLinkRequest::InternalSwap(CreateDownloadLinkRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(expires_in_, other->expires_in_); - swap(artifact_type_, other->artifact_type_); - swap(source_, other->source_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata CreateDownloadLinkRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void CreateDownloadLinkResponse::InitAsDefaultInstance() { - ::flyteidl::service::_CreateDownloadLinkResponse_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); - ::flyteidl::service::_CreateDownloadLinkResponse_default_instance_._instance.get_mutable()->pre_signed_urls_ = const_cast< ::flyteidl::service::PreSignedURLs*>( - ::flyteidl::service::PreSignedURLs::internal_default_instance()); -} -class CreateDownloadLinkResponse::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& expires_at(const CreateDownloadLinkResponse* msg); - static const ::flyteidl::service::PreSignedURLs& pre_signed_urls(const CreateDownloadLinkResponse* msg); -}; - -const ::google::protobuf::Timestamp& -CreateDownloadLinkResponse::HasBitSetters::expires_at(const CreateDownloadLinkResponse* msg) { - return *msg->expires_at_; -} -const ::flyteidl::service::PreSignedURLs& -CreateDownloadLinkResponse::HasBitSetters::pre_signed_urls(const CreateDownloadLinkResponse* msg) { - return *msg->pre_signed_urls_; -} -void CreateDownloadLinkResponse::clear_expires_at() { - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int CreateDownloadLinkResponse::kSignedUrlFieldNumber; -const int CreateDownloadLinkResponse::kExpiresAtFieldNumber; -const int CreateDownloadLinkResponse::kPreSignedUrlsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -CreateDownloadLinkResponse::CreateDownloadLinkResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.CreateDownloadLinkResponse) -} -CreateDownloadLinkResponse::CreateDownloadLinkResponse(const CreateDownloadLinkResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - signed_url_(from.signed_url_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_expires_at()) { - expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); - } else { - expires_at_ = nullptr; - } - if (from.has_pre_signed_urls()) { - pre_signed_urls_ = new ::flyteidl::service::PreSignedURLs(*from.pre_signed_urls_); - } else { - pre_signed_urls_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.CreateDownloadLinkResponse) -} - -void CreateDownloadLinkResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - ::memset(&expires_at_, 0, static_cast( - reinterpret_cast(&pre_signed_urls_) - - reinterpret_cast(&expires_at_)) + sizeof(pre_signed_urls_)); -} - -CreateDownloadLinkResponse::~CreateDownloadLinkResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.CreateDownloadLinkResponse) - SharedDtor(); -} - -void CreateDownloadLinkResponse::SharedDtor() { - if (this != internal_default_instance()) delete expires_at_; - if (this != internal_default_instance()) delete pre_signed_urls_; -} - -void CreateDownloadLinkResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const CreateDownloadLinkResponse& CreateDownloadLinkResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_CreateDownloadLinkResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void CreateDownloadLinkResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.CreateDownloadLinkResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signed_url_.Clear(); - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; - if (GetArenaNoVirtual() == nullptr && pre_signed_urls_ != nullptr) { - delete pre_signed_urls_; - } - pre_signed_urls_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* CreateDownloadLinkResponse::_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) { - // repeated string signed_url = 1 [deprecated = true]; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.CreateDownloadLinkResponse.signed_url"); - object = msg->add_signed_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_expires_at(); - 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.service.PreSignedURLs pre_signed_urls = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::service::PreSignedURLs::_InternalParse; - object = msg->mutable_pre_signed_urls(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool CreateDownloadLinkResponse::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.service.CreateDownloadLinkResponse) - 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)) { - // repeated string signed_url = 1 [deprecated = true]; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_signed_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(this->signed_url_size() - 1).data(), - static_cast(this->signed_url(this->signed_url_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.CreateDownloadLinkResponse.signed_url")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_at())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pre_signed_urls())); - } 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.service.CreateDownloadLinkResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.CreateDownloadLinkResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void CreateDownloadLinkResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.CreateDownloadLinkResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string signed_url = 1 [deprecated = true]; - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(i).data(), static_cast(this->signed_url(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLinkResponse.signed_url"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->signed_url(i), output); - } - - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - if (this->has_expires_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expires_at(this), output); - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - if (this->has_pre_signed_urls()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::pre_signed_urls(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.CreateDownloadLinkResponse) -} - -::google::protobuf::uint8* CreateDownloadLinkResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.CreateDownloadLinkResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string signed_url = 1 [deprecated = true]; - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(i).data(), static_cast(this->signed_url(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.CreateDownloadLinkResponse.signed_url"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->signed_url(i), target); - } - - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - if (this->has_expires_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expires_at(this), target); - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - if (this->has_pre_signed_urls()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::pre_signed_urls(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.service.CreateDownloadLinkResponse) - return target; -} - -size_t CreateDownloadLinkResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.CreateDownloadLinkResponse) - 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; - - // repeated string signed_url = 1 [deprecated = true]; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->signed_url_size()); - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->signed_url(i)); - } - - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - if (this->has_expires_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_at_); - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - if (this->has_pre_signed_urls()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *pre_signed_urls_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void CreateDownloadLinkResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.CreateDownloadLinkResponse) - GOOGLE_DCHECK_NE(&from, this); - const CreateDownloadLinkResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.CreateDownloadLinkResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.CreateDownloadLinkResponse) - MergeFrom(*source); - } -} - -void CreateDownloadLinkResponse::MergeFrom(const CreateDownloadLinkResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.CreateDownloadLinkResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - signed_url_.MergeFrom(from.signed_url_); - if (from.has_expires_at()) { - mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); - } - if (from.has_pre_signed_urls()) { - mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); - } -} - -void CreateDownloadLinkResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.CreateDownloadLinkResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CreateDownloadLinkResponse::CopyFrom(const CreateDownloadLinkResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.CreateDownloadLinkResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CreateDownloadLinkResponse::IsInitialized() const { - return true; -} - -void CreateDownloadLinkResponse::Swap(CreateDownloadLinkResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void CreateDownloadLinkResponse::InternalSwap(CreateDownloadLinkResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signed_url_.InternalSwap(CastToBase(&other->signed_url_)); - swap(expires_at_, other->expires_at_); - swap(pre_signed_urls_, other->pre_signed_urls_); -} - -::google::protobuf::Metadata CreateDownloadLinkResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void PreSignedURLs::InitAsDefaultInstance() { - ::flyteidl::service::_PreSignedURLs_default_instance_._instance.get_mutable()->expires_at_ = const_cast< ::google::protobuf::Timestamp*>( - ::google::protobuf::Timestamp::internal_default_instance()); -} -class PreSignedURLs::HasBitSetters { - public: - static const ::google::protobuf::Timestamp& expires_at(const PreSignedURLs* msg); -}; - -const ::google::protobuf::Timestamp& -PreSignedURLs::HasBitSetters::expires_at(const PreSignedURLs* msg) { - return *msg->expires_at_; -} -void PreSignedURLs::clear_expires_at() { - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int PreSignedURLs::kSignedUrlFieldNumber; -const int PreSignedURLs::kExpiresAtFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -PreSignedURLs::PreSignedURLs() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.PreSignedURLs) -} -PreSignedURLs::PreSignedURLs(const PreSignedURLs& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr), - signed_url_(from.signed_url_) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_expires_at()) { - expires_at_ = new ::google::protobuf::Timestamp(*from.expires_at_); - } else { - expires_at_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.PreSignedURLs) -} - -void PreSignedURLs::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); - expires_at_ = nullptr; -} - -PreSignedURLs::~PreSignedURLs() { - // @@protoc_insertion_point(destructor:flyteidl.service.PreSignedURLs) - SharedDtor(); -} - -void PreSignedURLs::SharedDtor() { - if (this != internal_default_instance()) delete expires_at_; -} - -void PreSignedURLs::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const PreSignedURLs& PreSignedURLs::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_PreSignedURLs_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void PreSignedURLs::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.PreSignedURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - signed_url_.Clear(); - if (GetArenaNoVirtual() == nullptr && expires_at_ != nullptr) { - delete expires_at_; - } - expires_at_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* PreSignedURLs::_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) { - // repeated string signed_url = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 10) goto handle_unusual; - do { - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.PreSignedURLs.signed_url"); - object = msg->add_signed_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - if (ptr >= end) break; - } while ((::google::protobuf::io::UnalignedLoad<::google::protobuf::uint64>(ptr) & 255) == 10 && (ptr += 1)); - break; - } - // .google.protobuf.Timestamp expires_at = 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 = ::google::protobuf::Timestamp::_InternalParse; - object = msg->mutable_expires_at(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool PreSignedURLs::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.service.PreSignedURLs) - 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)) { - // repeated string signed_url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->add_signed_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(this->signed_url_size() - 1).data(), - static_cast(this->signed_url(this->signed_url_size() - 1).length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.PreSignedURLs.signed_url")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Timestamp expires_at = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_expires_at())); - } 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.service.PreSignedURLs) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.PreSignedURLs) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void PreSignedURLs::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.PreSignedURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string signed_url = 1; - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(i).data(), static_cast(this->signed_url(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PreSignedURLs.signed_url"); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->signed_url(i), output); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::expires_at(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.PreSignedURLs) -} - -::google::protobuf::uint8* PreSignedURLs::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.PreSignedURLs) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // repeated string signed_url = 1; - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->signed_url(i).data(), static_cast(this->signed_url(i).length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.PreSignedURLs.signed_url"); - target = ::google::protobuf::internal::WireFormatLite:: - WriteStringToArray(1, this->signed_url(i), target); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::expires_at(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.service.PreSignedURLs) - return target; -} - -size_t PreSignedURLs::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.PreSignedURLs) - 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; - - // repeated string signed_url = 1; - total_size += 1 * - ::google::protobuf::internal::FromIntSize(this->signed_url_size()); - for (int i = 0, n = this->signed_url_size(); i < n; i++) { - total_size += ::google::protobuf::internal::WireFormatLite::StringSize( - this->signed_url(i)); - } - - // .google.protobuf.Timestamp expires_at = 2; - if (this->has_expires_at()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *expires_at_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void PreSignedURLs::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.PreSignedURLs) - GOOGLE_DCHECK_NE(&from, this); - const PreSignedURLs* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.PreSignedURLs) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.PreSignedURLs) - MergeFrom(*source); - } -} - -void PreSignedURLs::MergeFrom(const PreSignedURLs& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.PreSignedURLs) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - signed_url_.MergeFrom(from.signed_url_); - if (from.has_expires_at()) { - mutable_expires_at()->::google::protobuf::Timestamp::MergeFrom(from.expires_at()); - } -} - -void PreSignedURLs::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.PreSignedURLs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void PreSignedURLs::CopyFrom(const PreSignedURLs& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.PreSignedURLs) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool PreSignedURLs::IsInitialized() const { - return true; -} - -void PreSignedURLs::Swap(PreSignedURLs* other) { - if (other == this) return; - InternalSwap(other); -} -void PreSignedURLs::InternalSwap(PreSignedURLs* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - signed_url_.InternalSwap(CastToBase(&other->signed_url_)); - swap(expires_at_, other->expires_at_); -} - -::google::protobuf::Metadata PreSignedURLs::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetDataRequest::InitAsDefaultInstance() { -} -class GetDataRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetDataRequest::kFlyteUrlFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetDataRequest::GetDataRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.GetDataRequest) -} -GetDataRequest::GetDataRequest(const GetDataRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - flyte_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.flyte_url().size() > 0) { - flyte_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flyte_url_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.GetDataRequest) -} - -void GetDataRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - flyte_url_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -GetDataRequest::~GetDataRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.GetDataRequest) - SharedDtor(); -} - -void GetDataRequest::SharedDtor() { - flyte_url_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void GetDataRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetDataRequest& GetDataRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetDataRequest_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void GetDataRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.GetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - flyte_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetDataRequest::_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) { - // string flyte_url = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.GetDataRequest.flyte_url"); - object = msg->mutable_flyte_url(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool GetDataRequest::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.service.GetDataRequest) - 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)) { - // string flyte_url = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_flyte_url())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flyte_url().data(), static_cast(this->flyte_url().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.GetDataRequest.flyte_url")); - } 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.service.GetDataRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.GetDataRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetDataRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.GetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string flyte_url = 1; - if (this->flyte_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flyte_url().data(), static_cast(this->flyte_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.GetDataRequest.flyte_url"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->flyte_url(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.GetDataRequest) -} - -::google::protobuf::uint8* GetDataRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.GetDataRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string flyte_url = 1; - if (this->flyte_url().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->flyte_url().data(), static_cast(this->flyte_url().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.GetDataRequest.flyte_url"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->flyte_url(), 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.service.GetDataRequest) - return target; -} - -size_t GetDataRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.GetDataRequest) - 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; - - // string flyte_url = 1; - if (this->flyte_url().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->flyte_url()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetDataRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.GetDataRequest) - GOOGLE_DCHECK_NE(&from, this); - const GetDataRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.GetDataRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.GetDataRequest) - MergeFrom(*source); - } -} - -void GetDataRequest::MergeFrom(const GetDataRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.GetDataRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.flyte_url().size() > 0) { - - flyte_url_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.flyte_url_); - } -} - -void GetDataRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.GetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDataRequest::CopyFrom(const GetDataRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.GetDataRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDataRequest::IsInitialized() const { - return true; -} - -void GetDataRequest::Swap(GetDataRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void GetDataRequest::InternalSwap(GetDataRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - flyte_url_.Swap(&other->flyte_url_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata GetDataRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void GetDataResponse::InitAsDefaultInstance() { - ::flyteidl::service::_GetDataResponse_default_instance_.literal_map_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::service::_GetDataResponse_default_instance_.pre_signed_urls_ = const_cast< ::flyteidl::service::PreSignedURLs*>( - ::flyteidl::service::PreSignedURLs::internal_default_instance()); - ::flyteidl::service::_GetDataResponse_default_instance_.literal_ = const_cast< ::flyteidl::core::Literal*>( - ::flyteidl::core::Literal::internal_default_instance()); -} -class GetDataResponse::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& literal_map(const GetDataResponse* msg); - static const ::flyteidl::service::PreSignedURLs& pre_signed_urls(const GetDataResponse* msg); - static const ::flyteidl::core::Literal& literal(const GetDataResponse* msg); -}; - -const ::flyteidl::core::LiteralMap& -GetDataResponse::HasBitSetters::literal_map(const GetDataResponse* msg) { - return *msg->data_.literal_map_; -} -const ::flyteidl::service::PreSignedURLs& -GetDataResponse::HasBitSetters::pre_signed_urls(const GetDataResponse* msg) { - return *msg->data_.pre_signed_urls_; -} -const ::flyteidl::core::Literal& -GetDataResponse::HasBitSetters::literal(const GetDataResponse* msg) { - return *msg->data_.literal_; -} -void GetDataResponse::set_allocated_literal_map(::flyteidl::core::LiteralMap* literal_map) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (literal_map) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - literal_map = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal_map, submessage_arena); - } - set_has_literal_map(); - data_.literal_map_ = literal_map; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.literal_map) -} -void GetDataResponse::clear_literal_map() { - if (has_literal_map()) { - delete data_.literal_map_; - clear_has_data(); - } -} -void GetDataResponse::set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (pre_signed_urls) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pre_signed_urls = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pre_signed_urls, submessage_arena); - } - set_has_pre_signed_urls(); - data_.pre_signed_urls_ = pre_signed_urls; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.pre_signed_urls) -} -void GetDataResponse::set_allocated_literal(::flyteidl::core::Literal* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - clear_data(); - if (literal) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - set_has_literal(); - data_.literal_ = literal; - } - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataResponse.literal) -} -void GetDataResponse::clear_literal() { - if (has_literal()) { - delete data_.literal_; - clear_has_data(); - } -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int GetDataResponse::kLiteralMapFieldNumber; -const int GetDataResponse::kPreSignedUrlsFieldNumber; -const int GetDataResponse::kLiteralFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -GetDataResponse::GetDataResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.GetDataResponse) -} -GetDataResponse::GetDataResponse(const GetDataResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - clear_has_data(); - switch (from.data_case()) { - case kLiteralMap: { - mutable_literal_map()->::flyteidl::core::LiteralMap::MergeFrom(from.literal_map()); - break; - } - case kPreSignedUrls: { - mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); - break; - } - case kLiteral: { - mutable_literal()->::flyteidl::core::Literal::MergeFrom(from.literal()); - break; - } - case DATA_NOT_SET: { - break; - } - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.GetDataResponse) -} - -void GetDataResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - clear_has_data(); -} - -GetDataResponse::~GetDataResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.GetDataResponse) - SharedDtor(); -} - -void GetDataResponse::SharedDtor() { - if (has_data()) { - clear_data(); - } -} - -void GetDataResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const GetDataResponse& GetDataResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_GetDataResponse_flyteidl_2fservice_2fdataproxy_2eproto.base); - return *internal_default_instance(); -} - - -void GetDataResponse::clear_data() { -// @@protoc_insertion_point(one_of_clear_start:flyteidl.service.GetDataResponse) - switch (data_case()) { - case kLiteralMap: { - delete data_.literal_map_; - break; - } - case kPreSignedUrls: { - delete data_.pre_signed_urls_; - break; - } - case kLiteral: { - delete data_.literal_; - break; - } - case DATA_NOT_SET: { - break; - } - } - _oneof_case_[0] = DATA_NOT_SET; -} - - -void GetDataResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.GetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - clear_data(); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* GetDataResponse::_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.LiteralMap literal_map = 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::LiteralMap::_InternalParse; - object = msg->mutable_literal_map(); - 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.service.PreSignedURLs pre_signed_urls = 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::service::PreSignedURLs::_InternalParse; - object = msg->mutable_pre_signed_urls(); - 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.core.Literal literal = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::flyteidl::core::Literal::_InternalParse; - object = msg->mutable_literal(); - 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 GetDataResponse::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.service.GetDataResponse) - 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.LiteralMap literal_map = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_literal_map())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_pre_signed_urls())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.Literal literal = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_literal())); - } 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.service.GetDataResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.GetDataResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void GetDataResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.GetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap literal_map = 1; - if (has_literal_map()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::literal_map(this), output); - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - if (has_pre_signed_urls()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::pre_signed_urls(this), output); - } - - // .flyteidl.core.Literal literal = 3; - if (has_literal()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, HasBitSetters::literal(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.GetDataResponse) -} - -::google::protobuf::uint8* GetDataResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.GetDataResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap literal_map = 1; - if (has_literal_map()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::literal_map(this), target); - } - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - if (has_pre_signed_urls()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::pre_signed_urls(this), target); - } - - // .flyteidl.core.Literal literal = 3; - if (has_literal()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 3, HasBitSetters::literal(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.service.GetDataResponse) - return target; -} - -size_t GetDataResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.GetDataResponse) - 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 (data_case()) { - // .flyteidl.core.LiteralMap literal_map = 1; - case kLiteralMap: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.literal_map_); - break; - } - // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - case kPreSignedUrls: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.pre_signed_urls_); - break; - } - // .flyteidl.core.Literal literal = 3; - case kLiteral: { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *data_.literal_); - break; - } - case DATA_NOT_SET: { - break; - } - } - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void GetDataResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.GetDataResponse) - GOOGLE_DCHECK_NE(&from, this); - const GetDataResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.GetDataResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.GetDataResponse) - MergeFrom(*source); - } -} - -void GetDataResponse::MergeFrom(const GetDataResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.GetDataResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - switch (from.data_case()) { - case kLiteralMap: { - mutable_literal_map()->::flyteidl::core::LiteralMap::MergeFrom(from.literal_map()); - break; - } - case kPreSignedUrls: { - mutable_pre_signed_urls()->::flyteidl::service::PreSignedURLs::MergeFrom(from.pre_signed_urls()); - break; - } - case kLiteral: { - mutable_literal()->::flyteidl::core::Literal::MergeFrom(from.literal()); - break; - } - case DATA_NOT_SET: { - break; - } - } -} - -void GetDataResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.GetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void GetDataResponse::CopyFrom(const GetDataResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.GetDataResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool GetDataResponse::IsInitialized() const { - return true; -} - -void GetDataResponse::Swap(GetDataResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void GetDataResponse::InternalSwap(GetDataResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(data_, other->data_); - swap(_oneof_case_[0], other->_oneof_case_[0]); -} - -::google::protobuf::Metadata GetDataResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fdataproxy_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fdataproxy_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateUploadLocationResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateUploadLocationResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateUploadLocationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateUploadLocationRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateUploadLocationRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateUploadLocationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLocationRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLocationRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLocationRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLocationResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLocationResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLocationResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLinkRequest* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLinkRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLinkRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::CreateDownloadLinkResponse* Arena::CreateMaybeMessage< ::flyteidl::service::CreateDownloadLinkResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::CreateDownloadLinkResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::PreSignedURLs* Arena::CreateMaybeMessage< ::flyteidl::service::PreSignedURLs >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::PreSignedURLs >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::GetDataRequest* Arena::CreateMaybeMessage< ::flyteidl::service::GetDataRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::GetDataRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::GetDataResponse* Arena::CreateMaybeMessage< ::flyteidl::service::GetDataResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::GetDataResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h deleted file mode 100644 index 3332d747b5..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/dataproxy.pb.h +++ /dev/null @@ -1,2731 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/dataproxy.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "google/api/annotations.pb.h" -#include -#include -#include "flyteidl/core/identifier.pb.h" -#include "flyteidl/core/literals.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fdataproxy_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fdataproxy_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - 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[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fdataproxy_2eproto(); -namespace flyteidl { -namespace service { -class CreateDownloadLinkRequest; -class CreateDownloadLinkRequestDefaultTypeInternal; -extern CreateDownloadLinkRequestDefaultTypeInternal _CreateDownloadLinkRequest_default_instance_; -class CreateDownloadLinkResponse; -class CreateDownloadLinkResponseDefaultTypeInternal; -extern CreateDownloadLinkResponseDefaultTypeInternal _CreateDownloadLinkResponse_default_instance_; -class CreateDownloadLocationRequest; -class CreateDownloadLocationRequestDefaultTypeInternal; -extern CreateDownloadLocationRequestDefaultTypeInternal _CreateDownloadLocationRequest_default_instance_; -class CreateDownloadLocationResponse; -class CreateDownloadLocationResponseDefaultTypeInternal; -extern CreateDownloadLocationResponseDefaultTypeInternal _CreateDownloadLocationResponse_default_instance_; -class CreateUploadLocationRequest; -class CreateUploadLocationRequestDefaultTypeInternal; -extern CreateUploadLocationRequestDefaultTypeInternal _CreateUploadLocationRequest_default_instance_; -class CreateUploadLocationResponse; -class CreateUploadLocationResponseDefaultTypeInternal; -extern CreateUploadLocationResponseDefaultTypeInternal _CreateUploadLocationResponse_default_instance_; -class GetDataRequest; -class GetDataRequestDefaultTypeInternal; -extern GetDataRequestDefaultTypeInternal _GetDataRequest_default_instance_; -class GetDataResponse; -class GetDataResponseDefaultTypeInternal; -extern GetDataResponseDefaultTypeInternal _GetDataResponse_default_instance_; -class PreSignedURLs; -class PreSignedURLsDefaultTypeInternal; -extern PreSignedURLsDefaultTypeInternal _PreSignedURLs_default_instance_; -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::service::CreateDownloadLinkRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLinkRequest>(Arena*); -template<> ::flyteidl::service::CreateDownloadLinkResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLinkResponse>(Arena*); -template<> ::flyteidl::service::CreateDownloadLocationRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLocationRequest>(Arena*); -template<> ::flyteidl::service::CreateDownloadLocationResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateDownloadLocationResponse>(Arena*); -template<> ::flyteidl::service::CreateUploadLocationRequest* Arena::CreateMaybeMessage<::flyteidl::service::CreateUploadLocationRequest>(Arena*); -template<> ::flyteidl::service::CreateUploadLocationResponse* Arena::CreateMaybeMessage<::flyteidl::service::CreateUploadLocationResponse>(Arena*); -template<> ::flyteidl::service::GetDataRequest* Arena::CreateMaybeMessage<::flyteidl::service::GetDataRequest>(Arena*); -template<> ::flyteidl::service::GetDataResponse* Arena::CreateMaybeMessage<::flyteidl::service::GetDataResponse>(Arena*); -template<> ::flyteidl::service::PreSignedURLs* Arena::CreateMaybeMessage<::flyteidl::service::PreSignedURLs>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -enum ArtifactType { - ARTIFACT_TYPE_UNDEFINED = 0, - ARTIFACT_TYPE_DECK = 1, - ArtifactType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - ArtifactType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool ArtifactType_IsValid(int value); -const ArtifactType ArtifactType_MIN = ARTIFACT_TYPE_UNDEFINED; -const ArtifactType ArtifactType_MAX = ARTIFACT_TYPE_DECK; -const int ArtifactType_ARRAYSIZE = ArtifactType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ArtifactType_descriptor(); -inline const ::std::string& ArtifactType_Name(ArtifactType value) { - return ::google::protobuf::internal::NameOfEnum( - ArtifactType_descriptor(), value); -} -inline bool ArtifactType_Parse( - const ::std::string& name, ArtifactType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ArtifactType_descriptor(), name, value); -} -// =================================================================== - -class CreateUploadLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateUploadLocationResponse) */ { - public: - CreateUploadLocationResponse(); - virtual ~CreateUploadLocationResponse(); - - CreateUploadLocationResponse(const CreateUploadLocationResponse& from); - - inline CreateUploadLocationResponse& operator=(const CreateUploadLocationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateUploadLocationResponse(CreateUploadLocationResponse&& from) noexcept - : CreateUploadLocationResponse() { - *this = ::std::move(from); - } - - inline CreateUploadLocationResponse& operator=(CreateUploadLocationResponse&& 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 CreateUploadLocationResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateUploadLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateUploadLocationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(CreateUploadLocationResponse* other); - friend void swap(CreateUploadLocationResponse& a, CreateUploadLocationResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateUploadLocationResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateUploadLocationResponse* 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 CreateUploadLocationResponse& from); - void MergeFrom(const CreateUploadLocationResponse& 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(CreateUploadLocationResponse* 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 ------------------------------------------------------- - - // string signed_url = 1; - void clear_signed_url(); - static const int kSignedUrlFieldNumber = 1; - const ::std::string& signed_url() const; - void set_signed_url(const ::std::string& value); - #if LANG_CXX11 - void set_signed_url(::std::string&& value); - #endif - void set_signed_url(const char* value); - void set_signed_url(const char* value, size_t size); - ::std::string* mutable_signed_url(); - ::std::string* release_signed_url(); - void set_allocated_signed_url(::std::string* signed_url); - - // string native_url = 2; - void clear_native_url(); - static const int kNativeUrlFieldNumber = 2; - const ::std::string& native_url() const; - void set_native_url(const ::std::string& value); - #if LANG_CXX11 - void set_native_url(::std::string&& value); - #endif - void set_native_url(const char* value); - void set_native_url(const char* value, size_t size); - ::std::string* mutable_native_url(); - ::std::string* release_native_url(); - void set_allocated_native_url(::std::string* native_url); - - // .google.protobuf.Timestamp expires_at = 3; - bool has_expires_at() const; - void clear_expires_at(); - static const int kExpiresAtFieldNumber = 3; - const ::google::protobuf::Timestamp& expires_at() const; - ::google::protobuf::Timestamp* release_expires_at(); - ::google::protobuf::Timestamp* mutable_expires_at(); - void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr signed_url_; - ::google::protobuf::internal::ArenaStringPtr native_url_; - ::google::protobuf::Timestamp* expires_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateUploadLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateUploadLocationRequest) */ { - public: - CreateUploadLocationRequest(); - virtual ~CreateUploadLocationRequest(); - - CreateUploadLocationRequest(const CreateUploadLocationRequest& from); - - inline CreateUploadLocationRequest& operator=(const CreateUploadLocationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateUploadLocationRequest(CreateUploadLocationRequest&& from) noexcept - : CreateUploadLocationRequest() { - *this = ::std::move(from); - } - - inline CreateUploadLocationRequest& operator=(CreateUploadLocationRequest&& 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 CreateUploadLocationRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateUploadLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateUploadLocationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(CreateUploadLocationRequest* other); - friend void swap(CreateUploadLocationRequest& a, CreateUploadLocationRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateUploadLocationRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateUploadLocationRequest* 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 CreateUploadLocationRequest& from); - void MergeFrom(const CreateUploadLocationRequest& 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(CreateUploadLocationRequest* 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 ------------------------------------------------------- - - // string project = 1; - void clear_project(); - static const int kProjectFieldNumber = 1; - const ::std::string& project() const; - void set_project(const ::std::string& value); - #if LANG_CXX11 - void set_project(::std::string&& value); - #endif - void set_project(const char* value); - void set_project(const char* value, size_t size); - ::std::string* mutable_project(); - ::std::string* release_project(); - void set_allocated_project(::std::string* project); - - // string domain = 2; - void clear_domain(); - static const int kDomainFieldNumber = 2; - const ::std::string& domain() const; - void set_domain(const ::std::string& value); - #if LANG_CXX11 - void set_domain(::std::string&& value); - #endif - void set_domain(const char* value); - void set_domain(const char* value, size_t size); - ::std::string* mutable_domain(); - ::std::string* release_domain(); - void set_allocated_domain(::std::string* domain); - - // string filename = 3; - void clear_filename(); - static const int kFilenameFieldNumber = 3; - const ::std::string& filename() const; - void set_filename(const ::std::string& value); - #if LANG_CXX11 - void set_filename(::std::string&& value); - #endif - void set_filename(const char* value); - void set_filename(const char* value, size_t size); - ::std::string* mutable_filename(); - ::std::string* release_filename(); - void set_allocated_filename(::std::string* filename); - - // bytes content_md5 = 5; - void clear_content_md5(); - static const int kContentMd5FieldNumber = 5; - const ::std::string& content_md5() const; - void set_content_md5(const ::std::string& value); - #if LANG_CXX11 - void set_content_md5(::std::string&& value); - #endif - void set_content_md5(const char* value); - void set_content_md5(const void* value, size_t size); - ::std::string* mutable_content_md5(); - ::std::string* release_content_md5(); - void set_allocated_content_md5(::std::string* content_md5); - - // string filename_root = 6; - void clear_filename_root(); - static const int kFilenameRootFieldNumber = 6; - const ::std::string& filename_root() const; - void set_filename_root(const ::std::string& value); - #if LANG_CXX11 - void set_filename_root(::std::string&& value); - #endif - void set_filename_root(const char* value); - void set_filename_root(const char* value, size_t size); - ::std::string* mutable_filename_root(); - ::std::string* release_filename_root(); - void set_allocated_filename_root(::std::string* filename_root); - - // .google.protobuf.Duration expires_in = 4; - bool has_expires_in() const; - void clear_expires_in(); - static const int kExpiresInFieldNumber = 4; - const ::google::protobuf::Duration& expires_in() const; - ::google::protobuf::Duration* release_expires_in(); - ::google::protobuf::Duration* mutable_expires_in(); - void set_allocated_expires_in(::google::protobuf::Duration* expires_in); - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr project_; - ::google::protobuf::internal::ArenaStringPtr domain_; - ::google::protobuf::internal::ArenaStringPtr filename_; - ::google::protobuf::internal::ArenaStringPtr content_md5_; - ::google::protobuf::internal::ArenaStringPtr filename_root_; - ::google::protobuf::Duration* expires_in_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDownloadLocationRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLocationRequest) */ { - public: - CreateDownloadLocationRequest(); - virtual ~CreateDownloadLocationRequest(); - - CreateDownloadLocationRequest(const CreateDownloadLocationRequest& from); - - inline CreateDownloadLocationRequest& operator=(const CreateDownloadLocationRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDownloadLocationRequest(CreateDownloadLocationRequest&& from) noexcept - : CreateDownloadLocationRequest() { - *this = ::std::move(from); - } - - inline CreateDownloadLocationRequest& operator=(CreateDownloadLocationRequest&& 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 CreateDownloadLocationRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDownloadLocationRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateDownloadLocationRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(CreateDownloadLocationRequest* other); - friend void swap(CreateDownloadLocationRequest& a, CreateDownloadLocationRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDownloadLocationRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDownloadLocationRequest* 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 CreateDownloadLocationRequest& from); - void MergeFrom(const CreateDownloadLocationRequest& 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(CreateDownloadLocationRequest* 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 ------------------------------------------------------- - - // string native_url = 1; - void clear_native_url(); - static const int kNativeUrlFieldNumber = 1; - const ::std::string& native_url() const; - void set_native_url(const ::std::string& value); - #if LANG_CXX11 - void set_native_url(::std::string&& value); - #endif - void set_native_url(const char* value); - void set_native_url(const char* value, size_t size); - ::std::string* mutable_native_url(); - ::std::string* release_native_url(); - void set_allocated_native_url(::std::string* native_url); - - // .google.protobuf.Duration expires_in = 2; - bool has_expires_in() const; - void clear_expires_in(); - static const int kExpiresInFieldNumber = 2; - const ::google::protobuf::Duration& expires_in() const; - ::google::protobuf::Duration* release_expires_in(); - ::google::protobuf::Duration* mutable_expires_in(); - void set_allocated_expires_in(::google::protobuf::Duration* expires_in); - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr native_url_; - ::google::protobuf::Duration* expires_in_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDownloadLocationResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLocationResponse) */ { - public: - CreateDownloadLocationResponse(); - virtual ~CreateDownloadLocationResponse(); - - CreateDownloadLocationResponse(const CreateDownloadLocationResponse& from); - - inline CreateDownloadLocationResponse& operator=(const CreateDownloadLocationResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDownloadLocationResponse(CreateDownloadLocationResponse&& from) noexcept - : CreateDownloadLocationResponse() { - *this = ::std::move(from); - } - - inline CreateDownloadLocationResponse& operator=(CreateDownloadLocationResponse&& 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 CreateDownloadLocationResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDownloadLocationResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateDownloadLocationResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(CreateDownloadLocationResponse* other); - friend void swap(CreateDownloadLocationResponse& a, CreateDownloadLocationResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDownloadLocationResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDownloadLocationResponse* 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 CreateDownloadLocationResponse& from); - void MergeFrom(const CreateDownloadLocationResponse& 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(CreateDownloadLocationResponse* 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 ------------------------------------------------------- - - // string signed_url = 1; - void clear_signed_url(); - static const int kSignedUrlFieldNumber = 1; - const ::std::string& signed_url() const; - void set_signed_url(const ::std::string& value); - #if LANG_CXX11 - void set_signed_url(::std::string&& value); - #endif - void set_signed_url(const char* value); - void set_signed_url(const char* value, size_t size); - ::std::string* mutable_signed_url(); - ::std::string* release_signed_url(); - void set_allocated_signed_url(::std::string* signed_url); - - // .google.protobuf.Timestamp expires_at = 2; - bool has_expires_at() const; - void clear_expires_at(); - static const int kExpiresAtFieldNumber = 2; - const ::google::protobuf::Timestamp& expires_at() const; - ::google::protobuf::Timestamp* release_expires_at(); - ::google::protobuf::Timestamp* mutable_expires_at(); - void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr signed_url_; - ::google::protobuf::Timestamp* expires_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDownloadLinkRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLinkRequest) */ { - public: - CreateDownloadLinkRequest(); - virtual ~CreateDownloadLinkRequest(); - - CreateDownloadLinkRequest(const CreateDownloadLinkRequest& from); - - inline CreateDownloadLinkRequest& operator=(const CreateDownloadLinkRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDownloadLinkRequest(CreateDownloadLinkRequest&& from) noexcept - : CreateDownloadLinkRequest() { - *this = ::std::move(from); - } - - inline CreateDownloadLinkRequest& operator=(CreateDownloadLinkRequest&& 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 CreateDownloadLinkRequest& default_instance(); - - enum SourceCase { - kNodeExecutionId = 3, - SOURCE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDownloadLinkRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateDownloadLinkRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(CreateDownloadLinkRequest* other); - friend void swap(CreateDownloadLinkRequest& a, CreateDownloadLinkRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDownloadLinkRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDownloadLinkRequest* 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 CreateDownloadLinkRequest& from); - void MergeFrom(const CreateDownloadLinkRequest& 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(CreateDownloadLinkRequest* 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 ------------------------------------------------------- - - // .google.protobuf.Duration expires_in = 2; - bool has_expires_in() const; - void clear_expires_in(); - static const int kExpiresInFieldNumber = 2; - const ::google::protobuf::Duration& expires_in() const; - ::google::protobuf::Duration* release_expires_in(); - ::google::protobuf::Duration* mutable_expires_in(); - void set_allocated_expires_in(::google::protobuf::Duration* expires_in); - - // .flyteidl.service.ArtifactType artifact_type = 1; - void clear_artifact_type(); - static const int kArtifactTypeFieldNumber = 1; - ::flyteidl::service::ArtifactType artifact_type() const; - void set_artifact_type(::flyteidl::service::ArtifactType value); - - // .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - bool has_node_execution_id() const; - void clear_node_execution_id(); - static const int kNodeExecutionIdFieldNumber = 3; - const ::flyteidl::core::NodeExecutionIdentifier& node_execution_id() const; - ::flyteidl::core::NodeExecutionIdentifier* release_node_execution_id(); - ::flyteidl::core::NodeExecutionIdentifier* mutable_node_execution_id(); - void set_allocated_node_execution_id(::flyteidl::core::NodeExecutionIdentifier* node_execution_id); - - void clear_source(); - SourceCase source_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkRequest) - private: - class HasBitSetters; - void set_has_node_execution_id(); - - inline bool has_source() const; - inline void clear_has_source(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::Duration* expires_in_; - int artifact_type_; - union SourceUnion { - SourceUnion() {} - ::flyteidl::core::NodeExecutionIdentifier* node_execution_id_; - } source_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class CreateDownloadLinkResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.CreateDownloadLinkResponse) */ { - public: - CreateDownloadLinkResponse(); - virtual ~CreateDownloadLinkResponse(); - - CreateDownloadLinkResponse(const CreateDownloadLinkResponse& from); - - inline CreateDownloadLinkResponse& operator=(const CreateDownloadLinkResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateDownloadLinkResponse(CreateDownloadLinkResponse&& from) noexcept - : CreateDownloadLinkResponse() { - *this = ::std::move(from); - } - - inline CreateDownloadLinkResponse& operator=(CreateDownloadLinkResponse&& 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 CreateDownloadLinkResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateDownloadLinkResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateDownloadLinkResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(CreateDownloadLinkResponse* other); - friend void swap(CreateDownloadLinkResponse& a, CreateDownloadLinkResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateDownloadLinkResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - CreateDownloadLinkResponse* 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 CreateDownloadLinkResponse& from); - void MergeFrom(const CreateDownloadLinkResponse& 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(CreateDownloadLinkResponse* 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 ------------------------------------------------------- - - // repeated string signed_url = 1 [deprecated = true]; - PROTOBUF_DEPRECATED int signed_url_size() const; - PROTOBUF_DEPRECATED void clear_signed_url(); - PROTOBUF_DEPRECATED static const int kSignedUrlFieldNumber = 1; - PROTOBUF_DEPRECATED const ::std::string& signed_url(int index) const; - PROTOBUF_DEPRECATED ::std::string* mutable_signed_url(int index); - PROTOBUF_DEPRECATED void set_signed_url(int index, const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void set_signed_url(int index, ::std::string&& value); - #endif - PROTOBUF_DEPRECATED void set_signed_url(int index, const char* value); - PROTOBUF_DEPRECATED void set_signed_url(int index, const char* value, size_t size); - PROTOBUF_DEPRECATED ::std::string* add_signed_url(); - PROTOBUF_DEPRECATED void add_signed_url(const ::std::string& value); - #if LANG_CXX11 - PROTOBUF_DEPRECATED void add_signed_url(::std::string&& value); - #endif - PROTOBUF_DEPRECATED void add_signed_url(const char* value); - PROTOBUF_DEPRECATED void add_signed_url(const char* value, size_t size); - PROTOBUF_DEPRECATED const ::google::protobuf::RepeatedPtrField<::std::string>& signed_url() const; - PROTOBUF_DEPRECATED ::google::protobuf::RepeatedPtrField<::std::string>* mutable_signed_url(); - - // .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - PROTOBUF_DEPRECATED bool has_expires_at() const; - PROTOBUF_DEPRECATED void clear_expires_at(); - PROTOBUF_DEPRECATED static const int kExpiresAtFieldNumber = 2; - PROTOBUF_DEPRECATED const ::google::protobuf::Timestamp& expires_at() const; - PROTOBUF_DEPRECATED ::google::protobuf::Timestamp* release_expires_at(); - PROTOBUF_DEPRECATED ::google::protobuf::Timestamp* mutable_expires_at(); - PROTOBUF_DEPRECATED void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - bool has_pre_signed_urls() const; - void clear_pre_signed_urls(); - static const int kPreSignedUrlsFieldNumber = 3; - const ::flyteidl::service::PreSignedURLs& pre_signed_urls() const; - ::flyteidl::service::PreSignedURLs* release_pre_signed_urls(); - ::flyteidl::service::PreSignedURLs* mutable_pre_signed_urls(); - void set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls); - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> signed_url_; - ::google::protobuf::Timestamp* expires_at_; - ::flyteidl::service::PreSignedURLs* pre_signed_urls_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class PreSignedURLs final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.PreSignedURLs) */ { - public: - PreSignedURLs(); - virtual ~PreSignedURLs(); - - PreSignedURLs(const PreSignedURLs& from); - - inline PreSignedURLs& operator=(const PreSignedURLs& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PreSignedURLs(PreSignedURLs&& from) noexcept - : PreSignedURLs() { - *this = ::std::move(from); - } - - inline PreSignedURLs& operator=(PreSignedURLs&& 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 PreSignedURLs& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PreSignedURLs* internal_default_instance() { - return reinterpret_cast( - &_PreSignedURLs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(PreSignedURLs* other); - friend void swap(PreSignedURLs& a, PreSignedURLs& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PreSignedURLs* New() const final { - return CreateMaybeMessage(nullptr); - } - - PreSignedURLs* 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 PreSignedURLs& from); - void MergeFrom(const PreSignedURLs& 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(PreSignedURLs* 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 ------------------------------------------------------- - - // repeated string signed_url = 1; - int signed_url_size() const; - void clear_signed_url(); - static const int kSignedUrlFieldNumber = 1; - const ::std::string& signed_url(int index) const; - ::std::string* mutable_signed_url(int index); - void set_signed_url(int index, const ::std::string& value); - #if LANG_CXX11 - void set_signed_url(int index, ::std::string&& value); - #endif - void set_signed_url(int index, const char* value); - void set_signed_url(int index, const char* value, size_t size); - ::std::string* add_signed_url(); - void add_signed_url(const ::std::string& value); - #if LANG_CXX11 - void add_signed_url(::std::string&& value); - #endif - void add_signed_url(const char* value); - void add_signed_url(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField<::std::string>& signed_url() const; - ::google::protobuf::RepeatedPtrField<::std::string>* mutable_signed_url(); - - // .google.protobuf.Timestamp expires_at = 2; - bool has_expires_at() const; - void clear_expires_at(); - static const int kExpiresAtFieldNumber = 2; - const ::google::protobuf::Timestamp& expires_at() const; - ::google::protobuf::Timestamp* release_expires_at(); - ::google::protobuf::Timestamp* mutable_expires_at(); - void set_allocated_expires_at(::google::protobuf::Timestamp* expires_at); - - // @@protoc_insertion_point(class_scope:flyteidl.service.PreSignedURLs) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField<::std::string> signed_url_; - ::google::protobuf::Timestamp* expires_at_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class GetDataRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.GetDataRequest) */ { - public: - GetDataRequest(); - virtual ~GetDataRequest(); - - GetDataRequest(const GetDataRequest& from); - - inline GetDataRequest& operator=(const GetDataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDataRequest(GetDataRequest&& from) noexcept - : GetDataRequest() { - *this = ::std::move(from); - } - - inline GetDataRequest& operator=(GetDataRequest&& 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 GetDataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDataRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(GetDataRequest* other); - friend void swap(GetDataRequest& a, GetDataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDataRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetDataRequest* 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 GetDataRequest& from); - void MergeFrom(const GetDataRequest& 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(GetDataRequest* 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 ------------------------------------------------------- - - // string flyte_url = 1; - void clear_flyte_url(); - static const int kFlyteUrlFieldNumber = 1; - const ::std::string& flyte_url() const; - void set_flyte_url(const ::std::string& value); - #if LANG_CXX11 - void set_flyte_url(::std::string&& value); - #endif - void set_flyte_url(const char* value); - void set_flyte_url(const char* value, size_t size); - ::std::string* mutable_flyte_url(); - ::std::string* release_flyte_url(); - void set_allocated_flyte_url(::std::string* flyte_url); - - // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr flyte_url_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// ------------------------------------------------------------------- - -class GetDataResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.GetDataResponse) */ { - public: - GetDataResponse(); - virtual ~GetDataResponse(); - - GetDataResponse(const GetDataResponse& from); - - inline GetDataResponse& operator=(const GetDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDataResponse(GetDataResponse&& from) noexcept - : GetDataResponse() { - *this = ::std::move(from); - } - - inline GetDataResponse& operator=(GetDataResponse&& 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 GetDataResponse& default_instance(); - - enum DataCase { - kLiteralMap = 1, - kPreSignedUrls = 2, - kLiteral = 3, - DATA_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDataResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(GetDataResponse* other); - friend void swap(GetDataResponse& a, GetDataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDataResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - GetDataResponse* 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 GetDataResponse& from); - void MergeFrom(const GetDataResponse& 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(GetDataResponse* 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.LiteralMap literal_map = 1; - bool has_literal_map() const; - void clear_literal_map(); - static const int kLiteralMapFieldNumber = 1; - const ::flyteidl::core::LiteralMap& literal_map() const; - ::flyteidl::core::LiteralMap* release_literal_map(); - ::flyteidl::core::LiteralMap* mutable_literal_map(); - void set_allocated_literal_map(::flyteidl::core::LiteralMap* literal_map); - - // .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - bool has_pre_signed_urls() const; - void clear_pre_signed_urls(); - static const int kPreSignedUrlsFieldNumber = 2; - const ::flyteidl::service::PreSignedURLs& pre_signed_urls() const; - ::flyteidl::service::PreSignedURLs* release_pre_signed_urls(); - ::flyteidl::service::PreSignedURLs* mutable_pre_signed_urls(); - void set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls); - - // .flyteidl.core.Literal literal = 3; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 3; - const ::flyteidl::core::Literal& literal() const; - ::flyteidl::core::Literal* release_literal(); - ::flyteidl::core::Literal* mutable_literal(); - void set_allocated_literal(::flyteidl::core::Literal* literal); - - void clear_data(); - DataCase data_case() const; - // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataResponse) - private: - class HasBitSetters; - void set_has_literal_map(); - void set_has_pre_signed_urls(); - void set_has_literal(); - - inline bool has_data() const; - inline void clear_has_data(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - union DataUnion { - DataUnion() {} - ::flyteidl::core::LiteralMap* literal_map_; - ::flyteidl::service::PreSignedURLs* pre_signed_urls_; - ::flyteidl::core::Literal* literal_; - } data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::TableStruct_flyteidl_2fservice_2fdataproxy_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CreateUploadLocationResponse - -// string signed_url = 1; -inline void CreateUploadLocationResponse::clear_signed_url() { - signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationResponse::signed_url() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.signed_url) - return signed_url_.GetNoArena(); -} -inline void CreateUploadLocationResponse::set_signed_url(const ::std::string& value) { - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationResponse.signed_url) -} -#if LANG_CXX11 -inline void CreateUploadLocationResponse::set_signed_url(::std::string&& value) { - - signed_url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationResponse.signed_url) -} -#endif -inline void CreateUploadLocationResponse::set_signed_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationResponse.signed_url) -} -inline void CreateUploadLocationResponse::set_signed_url(const char* value, size_t size) { - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationResponse.signed_url) -} -inline ::std::string* CreateUploadLocationResponse::mutable_signed_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.signed_url) - return signed_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationResponse::release_signed_url() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.signed_url) - - return signed_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationResponse::set_allocated_signed_url(::std::string* signed_url) { - if (signed_url != nullptr) { - - } else { - - } - signed_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signed_url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.signed_url) -} - -// string native_url = 2; -inline void CreateUploadLocationResponse::clear_native_url() { - native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationResponse::native_url() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.native_url) - return native_url_.GetNoArena(); -} -inline void CreateUploadLocationResponse::set_native_url(const ::std::string& value) { - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationResponse.native_url) -} -#if LANG_CXX11 -inline void CreateUploadLocationResponse::set_native_url(::std::string&& value) { - - native_url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationResponse.native_url) -} -#endif -inline void CreateUploadLocationResponse::set_native_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationResponse.native_url) -} -inline void CreateUploadLocationResponse::set_native_url(const char* value, size_t size) { - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationResponse.native_url) -} -inline ::std::string* CreateUploadLocationResponse::mutable_native_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.native_url) - return native_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationResponse::release_native_url() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.native_url) - - return native_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationResponse::set_allocated_native_url(::std::string* native_url) { - if (native_url != nullptr) { - - } else { - - } - native_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), native_url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.native_url) -} - -// .google.protobuf.Timestamp expires_at = 3; -inline bool CreateUploadLocationResponse::has_expires_at() const { - return this != internal_default_instance() && expires_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& CreateUploadLocationResponse::expires_at() const { - const ::google::protobuf::Timestamp* p = expires_at_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationResponse.expires_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* CreateUploadLocationResponse::release_expires_at() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationResponse.expires_at) - - ::google::protobuf::Timestamp* temp = expires_at_; - expires_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* CreateUploadLocationResponse::mutable_expires_at() { - - if (expires_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - expires_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationResponse.expires_at) - return expires_at_; -} -inline void CreateUploadLocationResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); - } - if (expires_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); - if (message_arena != submessage_arena) { - expires_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_at, submessage_arena); - } - - } else { - - } - expires_at_ = expires_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationResponse.expires_at) -} - -// ------------------------------------------------------------------- - -// CreateUploadLocationRequest - -// string project = 1; -inline void CreateUploadLocationRequest::clear_project() { - project_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationRequest::project() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.project) - return project_.GetNoArena(); -} -inline void CreateUploadLocationRequest::set_project(const ::std::string& value) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.project) -} -#if LANG_CXX11 -inline void CreateUploadLocationRequest::set_project(::std::string&& value) { - - project_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.project) -} -#endif -inline void CreateUploadLocationRequest::set_project(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.project) -} -inline void CreateUploadLocationRequest::set_project(const char* value, size_t size) { - - project_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.project) -} -inline ::std::string* CreateUploadLocationRequest::mutable_project() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.project) - return project_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationRequest::release_project() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.project) - - return project_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationRequest::set_allocated_project(::std::string* project) { - if (project != nullptr) { - - } else { - - } - project_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), project); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.project) -} - -// string domain = 2; -inline void CreateUploadLocationRequest::clear_domain() { - domain_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationRequest::domain() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.domain) - return domain_.GetNoArena(); -} -inline void CreateUploadLocationRequest::set_domain(const ::std::string& value) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.domain) -} -#if LANG_CXX11 -inline void CreateUploadLocationRequest::set_domain(::std::string&& value) { - - domain_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.domain) -} -#endif -inline void CreateUploadLocationRequest::set_domain(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.domain) -} -inline void CreateUploadLocationRequest::set_domain(const char* value, size_t size) { - - domain_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.domain) -} -inline ::std::string* CreateUploadLocationRequest::mutable_domain() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.domain) - return domain_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationRequest::release_domain() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.domain) - - return domain_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationRequest::set_allocated_domain(::std::string* domain) { - if (domain != nullptr) { - - } else { - - } - domain_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), domain); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.domain) -} - -// string filename = 3; -inline void CreateUploadLocationRequest::clear_filename() { - filename_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationRequest::filename() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.filename) - return filename_.GetNoArena(); -} -inline void CreateUploadLocationRequest::set_filename(const ::std::string& value) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.filename) -} -#if LANG_CXX11 -inline void CreateUploadLocationRequest::set_filename(::std::string&& value) { - - filename_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.filename) -} -#endif -inline void CreateUploadLocationRequest::set_filename(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.filename) -} -inline void CreateUploadLocationRequest::set_filename(const char* value, size_t size) { - - filename_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.filename) -} -inline ::std::string* CreateUploadLocationRequest::mutable_filename() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.filename) - return filename_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationRequest::release_filename() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.filename) - - return filename_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationRequest::set_allocated_filename(::std::string* filename) { - if (filename != nullptr) { - - } else { - - } - filename_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.filename) -} - -// .google.protobuf.Duration expires_in = 4; -inline bool CreateUploadLocationRequest::has_expires_in() const { - return this != internal_default_instance() && expires_in_ != nullptr; -} -inline const ::google::protobuf::Duration& CreateUploadLocationRequest::expires_in() const { - const ::google::protobuf::Duration* p = expires_in_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.expires_in) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* CreateUploadLocationRequest::release_expires_in() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.expires_in) - - ::google::protobuf::Duration* temp = expires_in_; - expires_in_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* CreateUploadLocationRequest::mutable_expires_in() { - - if (expires_in_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - expires_in_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.expires_in) - return expires_in_; -} -inline void CreateUploadLocationRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); - } - if (expires_in) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); - if (message_arena != submessage_arena) { - expires_in = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_in, submessage_arena); - } - - } else { - - } - expires_in_ = expires_in; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.expires_in) -} - -// bytes content_md5 = 5; -inline void CreateUploadLocationRequest::clear_content_md5() { - content_md5_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationRequest::content_md5() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.content_md5) - return content_md5_.GetNoArena(); -} -inline void CreateUploadLocationRequest::set_content_md5(const ::std::string& value) { - - content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.content_md5) -} -#if LANG_CXX11 -inline void CreateUploadLocationRequest::set_content_md5(::std::string&& value) { - - content_md5_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.content_md5) -} -#endif -inline void CreateUploadLocationRequest::set_content_md5(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.content_md5) -} -inline void CreateUploadLocationRequest::set_content_md5(const void* value, size_t size) { - - content_md5_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.content_md5) -} -inline ::std::string* CreateUploadLocationRequest::mutable_content_md5() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.content_md5) - return content_md5_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationRequest::release_content_md5() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.content_md5) - - return content_md5_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationRequest::set_allocated_content_md5(::std::string* content_md5) { - if (content_md5 != nullptr) { - - } else { - - } - content_md5_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content_md5); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.content_md5) -} - -// string filename_root = 6; -inline void CreateUploadLocationRequest::clear_filename_root() { - filename_root_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateUploadLocationRequest::filename_root() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateUploadLocationRequest.filename_root) - return filename_root_.GetNoArena(); -} -inline void CreateUploadLocationRequest::set_filename_root(const ::std::string& value) { - - filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateUploadLocationRequest.filename_root) -} -#if LANG_CXX11 -inline void CreateUploadLocationRequest::set_filename_root(::std::string&& value) { - - filename_root_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateUploadLocationRequest.filename_root) -} -#endif -inline void CreateUploadLocationRequest::set_filename_root(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateUploadLocationRequest.filename_root) -} -inline void CreateUploadLocationRequest::set_filename_root(const char* value, size_t size) { - - filename_root_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateUploadLocationRequest.filename_root) -} -inline ::std::string* CreateUploadLocationRequest::mutable_filename_root() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateUploadLocationRequest.filename_root) - return filename_root_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateUploadLocationRequest::release_filename_root() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateUploadLocationRequest.filename_root) - - return filename_root_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateUploadLocationRequest::set_allocated_filename_root(::std::string* filename_root) { - if (filename_root != nullptr) { - - } else { - - } - filename_root_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), filename_root); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateUploadLocationRequest.filename_root) -} - -// ------------------------------------------------------------------- - -// CreateDownloadLocationRequest - -// string native_url = 1; -inline void CreateDownloadLocationRequest::clear_native_url() { - native_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateDownloadLocationRequest::native_url() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationRequest.native_url) - return native_url_.GetNoArena(); -} -inline void CreateDownloadLocationRequest::set_native_url(const ::std::string& value) { - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLocationRequest.native_url) -} -#if LANG_CXX11 -inline void CreateDownloadLocationRequest::set_native_url(::std::string&& value) { - - native_url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateDownloadLocationRequest.native_url) -} -#endif -inline void CreateDownloadLocationRequest::set_native_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLocationRequest.native_url) -} -inline void CreateDownloadLocationRequest::set_native_url(const char* value, size_t size) { - - native_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLocationRequest.native_url) -} -inline ::std::string* CreateDownloadLocationRequest::mutable_native_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationRequest.native_url) - return native_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateDownloadLocationRequest::release_native_url() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationRequest.native_url) - - return native_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateDownloadLocationRequest::set_allocated_native_url(::std::string* native_url) { - if (native_url != nullptr) { - - } else { - - } - native_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), native_url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationRequest.native_url) -} - -// .google.protobuf.Duration expires_in = 2; -inline bool CreateDownloadLocationRequest::has_expires_in() const { - return this != internal_default_instance() && expires_in_ != nullptr; -} -inline const ::google::protobuf::Duration& CreateDownloadLocationRequest::expires_in() const { - const ::google::protobuf::Duration* p = expires_in_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationRequest.expires_in) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* CreateDownloadLocationRequest::release_expires_in() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationRequest.expires_in) - - ::google::protobuf::Duration* temp = expires_in_; - expires_in_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* CreateDownloadLocationRequest::mutable_expires_in() { - - if (expires_in_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - expires_in_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationRequest.expires_in) - return expires_in_; -} -inline void CreateDownloadLocationRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); - } - if (expires_in) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); - if (message_arena != submessage_arena) { - expires_in = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_in, submessage_arena); - } - - } else { - - } - expires_in_ = expires_in; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationRequest.expires_in) -} - -// ------------------------------------------------------------------- - -// CreateDownloadLocationResponse - -// string signed_url = 1; -inline void CreateDownloadLocationResponse::clear_signed_url() { - signed_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& CreateDownloadLocationResponse::signed_url() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationResponse.signed_url) - return signed_url_.GetNoArena(); -} -inline void CreateDownloadLocationResponse::set_signed_url(const ::std::string& value) { - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLocationResponse.signed_url) -} -#if LANG_CXX11 -inline void CreateDownloadLocationResponse::set_signed_url(::std::string&& value) { - - signed_url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.CreateDownloadLocationResponse.signed_url) -} -#endif -inline void CreateDownloadLocationResponse::set_signed_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLocationResponse.signed_url) -} -inline void CreateDownloadLocationResponse::set_signed_url(const char* value, size_t size) { - - signed_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLocationResponse.signed_url) -} -inline ::std::string* CreateDownloadLocationResponse::mutable_signed_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationResponse.signed_url) - return signed_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* CreateDownloadLocationResponse::release_signed_url() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationResponse.signed_url) - - return signed_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void CreateDownloadLocationResponse::set_allocated_signed_url(::std::string* signed_url) { - if (signed_url != nullptr) { - - } else { - - } - signed_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), signed_url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationResponse.signed_url) -} - -// .google.protobuf.Timestamp expires_at = 2; -inline bool CreateDownloadLocationResponse::has_expires_at() const { - return this != internal_default_instance() && expires_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& CreateDownloadLocationResponse::expires_at() const { - const ::google::protobuf::Timestamp* p = expires_at_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLocationResponse.expires_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* CreateDownloadLocationResponse::release_expires_at() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLocationResponse.expires_at) - - ::google::protobuf::Timestamp* temp = expires_at_; - expires_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* CreateDownloadLocationResponse::mutable_expires_at() { - - if (expires_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - expires_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLocationResponse.expires_at) - return expires_at_; -} -inline void CreateDownloadLocationResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); - } - if (expires_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); - if (message_arena != submessage_arena) { - expires_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_at, submessage_arena); - } - - } else { - - } - expires_at_ = expires_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLocationResponse.expires_at) -} - -// ------------------------------------------------------------------- - -// CreateDownloadLinkRequest - -// .flyteidl.service.ArtifactType artifact_type = 1; -inline void CreateDownloadLinkRequest::clear_artifact_type() { - artifact_type_ = 0; -} -inline ::flyteidl::service::ArtifactType CreateDownloadLinkRequest::artifact_type() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.artifact_type) - return static_cast< ::flyteidl::service::ArtifactType >(artifact_type_); -} -inline void CreateDownloadLinkRequest::set_artifact_type(::flyteidl::service::ArtifactType value) { - - artifact_type_ = value; - // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkRequest.artifact_type) -} - -// .google.protobuf.Duration expires_in = 2; -inline bool CreateDownloadLinkRequest::has_expires_in() const { - return this != internal_default_instance() && expires_in_ != nullptr; -} -inline const ::google::protobuf::Duration& CreateDownloadLinkRequest::expires_in() const { - const ::google::protobuf::Duration* p = expires_in_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.expires_in) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Duration_default_instance_); -} -inline ::google::protobuf::Duration* CreateDownloadLinkRequest::release_expires_in() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkRequest.expires_in) - - ::google::protobuf::Duration* temp = expires_in_; - expires_in_ = nullptr; - return temp; -} -inline ::google::protobuf::Duration* CreateDownloadLinkRequest::mutable_expires_in() { - - if (expires_in_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual()); - expires_in_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkRequest.expires_in) - return expires_in_; -} -inline void CreateDownloadLinkRequest::set_allocated_expires_in(::google::protobuf::Duration* expires_in) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_in_); - } - if (expires_in) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_in)->GetArena(); - if (message_arena != submessage_arena) { - expires_in = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_in, submessage_arena); - } - - } else { - - } - expires_in_ = expires_in; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkRequest.expires_in) -} - -// .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; -inline bool CreateDownloadLinkRequest::has_node_execution_id() const { - return source_case() == kNodeExecutionId; -} -inline void CreateDownloadLinkRequest::set_has_node_execution_id() { - _oneof_case_[0] = kNodeExecutionId; -} -inline ::flyteidl::core::NodeExecutionIdentifier* CreateDownloadLinkRequest::release_node_execution_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) - if (has_node_execution_id()) { - clear_has_source(); - ::flyteidl::core::NodeExecutionIdentifier* temp = source_.node_execution_id_; - source_.node_execution_id_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::NodeExecutionIdentifier& CreateDownloadLinkRequest::node_execution_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) - return has_node_execution_id() - ? *source_.node_execution_id_ - : *reinterpret_cast< ::flyteidl::core::NodeExecutionIdentifier*>(&::flyteidl::core::_NodeExecutionIdentifier_default_instance_); -} -inline ::flyteidl::core::NodeExecutionIdentifier* CreateDownloadLinkRequest::mutable_node_execution_id() { - if (!has_node_execution_id()) { - clear_source(); - set_has_node_execution_id(); - source_.node_execution_id_ = CreateMaybeMessage< ::flyteidl::core::NodeExecutionIdentifier >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkRequest.node_execution_id) - return source_.node_execution_id_; -} - -inline bool CreateDownloadLinkRequest::has_source() const { - return source_case() != SOURCE_NOT_SET; -} -inline void CreateDownloadLinkRequest::clear_has_source() { - _oneof_case_[0] = SOURCE_NOT_SET; -} -inline CreateDownloadLinkRequest::SourceCase CreateDownloadLinkRequest::source_case() const { - return CreateDownloadLinkRequest::SourceCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// CreateDownloadLinkResponse - -// repeated string signed_url = 1 [deprecated = true]; -inline int CreateDownloadLinkResponse::signed_url_size() const { - return signed_url_.size(); -} -inline void CreateDownloadLinkResponse::clear_signed_url() { - signed_url_.Clear(); -} -inline const ::std::string& CreateDownloadLinkResponse::signed_url(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.signed_url) - return signed_url_.Get(index); -} -inline ::std::string* CreateDownloadLinkResponse::mutable_signed_url(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.signed_url) - return signed_url_.Mutable(index); -} -inline void CreateDownloadLinkResponse::set_signed_url(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkResponse.signed_url) - signed_url_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void CreateDownloadLinkResponse::set_signed_url(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.CreateDownloadLinkResponse.signed_url) - signed_url_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void CreateDownloadLinkResponse::set_signed_url(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - signed_url_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -inline void CreateDownloadLinkResponse::set_signed_url(int index, const char* value, size_t size) { - signed_url_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -inline ::std::string* CreateDownloadLinkResponse::add_signed_url() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.CreateDownloadLinkResponse.signed_url) - return signed_url_.Add(); -} -inline void CreateDownloadLinkResponse::add_signed_url(const ::std::string& value) { - signed_url_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -#if LANG_CXX11 -inline void CreateDownloadLinkResponse::add_signed_url(::std::string&& value) { - signed_url_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -#endif -inline void CreateDownloadLinkResponse::add_signed_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - signed_url_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -inline void CreateDownloadLinkResponse::add_signed_url(const char* value, size_t size) { - signed_url_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.CreateDownloadLinkResponse.signed_url) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -CreateDownloadLinkResponse::signed_url() const { - // @@protoc_insertion_point(field_list:flyteidl.service.CreateDownloadLinkResponse.signed_url) - return signed_url_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -CreateDownloadLinkResponse::mutable_signed_url() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.CreateDownloadLinkResponse.signed_url) - return &signed_url_; -} - -// .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; -inline bool CreateDownloadLinkResponse::has_expires_at() const { - return this != internal_default_instance() && expires_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& CreateDownloadLinkResponse::expires_at() const { - const ::google::protobuf::Timestamp* p = expires_at_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.expires_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* CreateDownloadLinkResponse::release_expires_at() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkResponse.expires_at) - - ::google::protobuf::Timestamp* temp = expires_at_; - expires_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* CreateDownloadLinkResponse::mutable_expires_at() { - - if (expires_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - expires_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.expires_at) - return expires_at_; -} -inline void CreateDownloadLinkResponse::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); - } - if (expires_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); - if (message_arena != submessage_arena) { - expires_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_at, submessage_arena); - } - - } else { - - } - expires_at_ = expires_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkResponse.expires_at) -} - -// .flyteidl.service.PreSignedURLs pre_signed_urls = 3; -inline bool CreateDownloadLinkResponse::has_pre_signed_urls() const { - return this != internal_default_instance() && pre_signed_urls_ != nullptr; -} -inline void CreateDownloadLinkResponse::clear_pre_signed_urls() { - if (GetArenaNoVirtual() == nullptr && pre_signed_urls_ != nullptr) { - delete pre_signed_urls_; - } - pre_signed_urls_ = nullptr; -} -inline const ::flyteidl::service::PreSignedURLs& CreateDownloadLinkResponse::pre_signed_urls() const { - const ::flyteidl::service::PreSignedURLs* p = pre_signed_urls_; - // @@protoc_insertion_point(field_get:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::service::_PreSignedURLs_default_instance_); -} -inline ::flyteidl::service::PreSignedURLs* CreateDownloadLinkResponse::release_pre_signed_urls() { - // @@protoc_insertion_point(field_release:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) - - ::flyteidl::service::PreSignedURLs* temp = pre_signed_urls_; - pre_signed_urls_ = nullptr; - return temp; -} -inline ::flyteidl::service::PreSignedURLs* CreateDownloadLinkResponse::mutable_pre_signed_urls() { - - if (pre_signed_urls_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::service::PreSignedURLs>(GetArenaNoVirtual()); - pre_signed_urls_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) - return pre_signed_urls_; -} -inline void CreateDownloadLinkResponse::set_allocated_pre_signed_urls(::flyteidl::service::PreSignedURLs* pre_signed_urls) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete pre_signed_urls_; - } - if (pre_signed_urls) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - pre_signed_urls = ::google::protobuf::internal::GetOwnedMessage( - message_arena, pre_signed_urls, submessage_arena); - } - - } else { - - } - pre_signed_urls_ = pre_signed_urls; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.CreateDownloadLinkResponse.pre_signed_urls) -} - -// ------------------------------------------------------------------- - -// PreSignedURLs - -// repeated string signed_url = 1; -inline int PreSignedURLs::signed_url_size() const { - return signed_url_.size(); -} -inline void PreSignedURLs::clear_signed_url() { - signed_url_.Clear(); -} -inline const ::std::string& PreSignedURLs::signed_url(int index) const { - // @@protoc_insertion_point(field_get:flyteidl.service.PreSignedURLs.signed_url) - return signed_url_.Get(index); -} -inline ::std::string* PreSignedURLs::mutable_signed_url(int index) { - // @@protoc_insertion_point(field_mutable:flyteidl.service.PreSignedURLs.signed_url) - return signed_url_.Mutable(index); -} -inline void PreSignedURLs::set_signed_url(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.PreSignedURLs.signed_url) - signed_url_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void PreSignedURLs::set_signed_url(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:flyteidl.service.PreSignedURLs.signed_url) - signed_url_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void PreSignedURLs::set_signed_url(int index, const char* value) { - GOOGLE_DCHECK(value != nullptr); - signed_url_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:flyteidl.service.PreSignedURLs.signed_url) -} -inline void PreSignedURLs::set_signed_url(int index, const char* value, size_t size) { - signed_url_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.PreSignedURLs.signed_url) -} -inline ::std::string* PreSignedURLs::add_signed_url() { - // @@protoc_insertion_point(field_add_mutable:flyteidl.service.PreSignedURLs.signed_url) - return signed_url_.Add(); -} -inline void PreSignedURLs::add_signed_url(const ::std::string& value) { - signed_url_.Add()->assign(value); - // @@protoc_insertion_point(field_add:flyteidl.service.PreSignedURLs.signed_url) -} -#if LANG_CXX11 -inline void PreSignedURLs::add_signed_url(::std::string&& value) { - signed_url_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:flyteidl.service.PreSignedURLs.signed_url) -} -#endif -inline void PreSignedURLs::add_signed_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - signed_url_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:flyteidl.service.PreSignedURLs.signed_url) -} -inline void PreSignedURLs::add_signed_url(const char* value, size_t size) { - signed_url_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:flyteidl.service.PreSignedURLs.signed_url) -} -inline const ::google::protobuf::RepeatedPtrField<::std::string>& -PreSignedURLs::signed_url() const { - // @@protoc_insertion_point(field_list:flyteidl.service.PreSignedURLs.signed_url) - return signed_url_; -} -inline ::google::protobuf::RepeatedPtrField<::std::string>* -PreSignedURLs::mutable_signed_url() { - // @@protoc_insertion_point(field_mutable_list:flyteidl.service.PreSignedURLs.signed_url) - return &signed_url_; -} - -// .google.protobuf.Timestamp expires_at = 2; -inline bool PreSignedURLs::has_expires_at() const { - return this != internal_default_instance() && expires_at_ != nullptr; -} -inline const ::google::protobuf::Timestamp& PreSignedURLs::expires_at() const { - const ::google::protobuf::Timestamp* p = expires_at_; - // @@protoc_insertion_point(field_get:flyteidl.service.PreSignedURLs.expires_at) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Timestamp_default_instance_); -} -inline ::google::protobuf::Timestamp* PreSignedURLs::release_expires_at() { - // @@protoc_insertion_point(field_release:flyteidl.service.PreSignedURLs.expires_at) - - ::google::protobuf::Timestamp* temp = expires_at_; - expires_at_ = nullptr; - return temp; -} -inline ::google::protobuf::Timestamp* PreSignedURLs::mutable_expires_at() { - - if (expires_at_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual()); - expires_at_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.PreSignedURLs.expires_at) - return expires_at_; -} -inline void PreSignedURLs::set_allocated_expires_at(::google::protobuf::Timestamp* expires_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(expires_at_); - } - if (expires_at) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(expires_at)->GetArena(); - if (message_arena != submessage_arena) { - expires_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, expires_at, submessage_arena); - } - - } else { - - } - expires_at_ = expires_at; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.PreSignedURLs.expires_at) -} - -// ------------------------------------------------------------------- - -// GetDataRequest - -// string flyte_url = 1; -inline void GetDataRequest::clear_flyte_url() { - flyte_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& GetDataRequest::flyte_url() const { - // @@protoc_insertion_point(field_get:flyteidl.service.GetDataRequest.flyte_url) - return flyte_url_.GetNoArena(); -} -inline void GetDataRequest::set_flyte_url(const ::std::string& value) { - - flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.GetDataRequest.flyte_url) -} -#if LANG_CXX11 -inline void GetDataRequest::set_flyte_url(::std::string&& value) { - - flyte_url_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.GetDataRequest.flyte_url) -} -#endif -inline void GetDataRequest::set_flyte_url(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.GetDataRequest.flyte_url) -} -inline void GetDataRequest::set_flyte_url(const char* value, size_t size) { - - flyte_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.GetDataRequest.flyte_url) -} -inline ::std::string* GetDataRequest::mutable_flyte_url() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataRequest.flyte_url) - return flyte_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* GetDataRequest::release_flyte_url() { - // @@protoc_insertion_point(field_release:flyteidl.service.GetDataRequest.flyte_url) - - return flyte_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void GetDataRequest::set_allocated_flyte_url(::std::string* flyte_url) { - if (flyte_url != nullptr) { - - } else { - - } - flyte_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), flyte_url); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.GetDataRequest.flyte_url) -} - -// ------------------------------------------------------------------- - -// GetDataResponse - -// .flyteidl.core.LiteralMap literal_map = 1; -inline bool GetDataResponse::has_literal_map() const { - return data_case() == kLiteralMap; -} -inline void GetDataResponse::set_has_literal_map() { - _oneof_case_[0] = kLiteralMap; -} -inline ::flyteidl::core::LiteralMap* GetDataResponse::release_literal_map() { - // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.literal_map) - if (has_literal_map()) { - clear_has_data(); - ::flyteidl::core::LiteralMap* temp = data_.literal_map_; - data_.literal_map_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::LiteralMap& GetDataResponse::literal_map() const { - // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.literal_map) - return has_literal_map() - ? *data_.literal_map_ - : *reinterpret_cast< ::flyteidl::core::LiteralMap*>(&::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* GetDataResponse::mutable_literal_map() { - if (!has_literal_map()) { - clear_data(); - set_has_literal_map(); - data_.literal_map_ = CreateMaybeMessage< ::flyteidl::core::LiteralMap >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.literal_map) - return data_.literal_map_; -} - -// .flyteidl.service.PreSignedURLs pre_signed_urls = 2; -inline bool GetDataResponse::has_pre_signed_urls() const { - return data_case() == kPreSignedUrls; -} -inline void GetDataResponse::set_has_pre_signed_urls() { - _oneof_case_[0] = kPreSignedUrls; -} -inline void GetDataResponse::clear_pre_signed_urls() { - if (has_pre_signed_urls()) { - delete data_.pre_signed_urls_; - clear_has_data(); - } -} -inline ::flyteidl::service::PreSignedURLs* GetDataResponse::release_pre_signed_urls() { - // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.pre_signed_urls) - if (has_pre_signed_urls()) { - clear_has_data(); - ::flyteidl::service::PreSignedURLs* temp = data_.pre_signed_urls_; - data_.pre_signed_urls_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::service::PreSignedURLs& GetDataResponse::pre_signed_urls() const { - // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.pre_signed_urls) - return has_pre_signed_urls() - ? *data_.pre_signed_urls_ - : *reinterpret_cast< ::flyteidl::service::PreSignedURLs*>(&::flyteidl::service::_PreSignedURLs_default_instance_); -} -inline ::flyteidl::service::PreSignedURLs* GetDataResponse::mutable_pre_signed_urls() { - if (!has_pre_signed_urls()) { - clear_data(); - set_has_pre_signed_urls(); - data_.pre_signed_urls_ = CreateMaybeMessage< ::flyteidl::service::PreSignedURLs >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.pre_signed_urls) - return data_.pre_signed_urls_; -} - -// .flyteidl.core.Literal literal = 3; -inline bool GetDataResponse::has_literal() const { - return data_case() == kLiteral; -} -inline void GetDataResponse::set_has_literal() { - _oneof_case_[0] = kLiteral; -} -inline ::flyteidl::core::Literal* GetDataResponse::release_literal() { - // @@protoc_insertion_point(field_release:flyteidl.service.GetDataResponse.literal) - if (has_literal()) { - clear_has_data(); - ::flyteidl::core::Literal* temp = data_.literal_; - data_.literal_ = nullptr; - return temp; - } else { - return nullptr; - } -} -inline const ::flyteidl::core::Literal& GetDataResponse::literal() const { - // @@protoc_insertion_point(field_get:flyteidl.service.GetDataResponse.literal) - return has_literal() - ? *data_.literal_ - : *reinterpret_cast< ::flyteidl::core::Literal*>(&::flyteidl::core::_Literal_default_instance_); -} -inline ::flyteidl::core::Literal* GetDataResponse::mutable_literal() { - if (!has_literal()) { - clear_data(); - set_has_literal(); - data_.literal_ = CreateMaybeMessage< ::flyteidl::core::Literal >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.GetDataResponse.literal) - return data_.literal_; -} - -inline bool GetDataResponse::has_data() const { - return data_case() != DATA_NOT_SET; -} -inline void GetDataResponse::clear_has_data() { - _oneof_case_[0] = DATA_NOT_SET; -} -inline GetDataResponse::DataCase GetDataResponse::data_case() const { - return GetDataResponse::DataCase(_oneof_case_[0]); -} -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::service::ArtifactType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::ArtifactType>() { - return ::flyteidl::service::ArtifactType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fdataproxy_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc deleted file mode 100644 index be7a2ec520..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.cc +++ /dev/null @@ -1,169 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/external_plugin_service.proto - -#include "flyteidl/service/external_plugin_service.pb.h" -#include "flyteidl/service/external_plugin_service.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* ExternalPluginService_method_names[] = { - "/flyteidl.service.ExternalPluginService/CreateTask", - "/flyteidl.service.ExternalPluginService/GetTask", - "/flyteidl.service.ExternalPluginService/DeleteTask", -}; - -std::unique_ptr< ExternalPluginService::Stub> ExternalPluginService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< ExternalPluginService::Stub> stub(new ExternalPluginService::Stub(channel)); - return stub; -} - -ExternalPluginService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_CreateTask_(ExternalPluginService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_GetTask_(ExternalPluginService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_DeleteTask_(ExternalPluginService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status ExternalPluginService::Stub::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_CreateTask_, context, request, response); -} - -void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -void ExternalPluginService::Stub::experimental_async::CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_CreateTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* ExternalPluginService::Stub::PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskCreateResponse>::Create(channel_.get(), cq, rpcmethod_CreateTask_, context, request, false); -} - -::grpc::Status ExternalPluginService::Stub::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetTask_, context, request, response); -} - -void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -void ExternalPluginService::Stub::experimental_async::GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* ExternalPluginService::Stub::PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskGetResponse>::Create(channel_.get(), cq, rpcmethod_GetTask_, context, request, false); -} - -::grpc::Status ExternalPluginService::Stub::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_DeleteTask_, context, request, response); -} - -void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, std::move(f)); -} - -void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -void ExternalPluginService::Stub::experimental_async::DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_DeleteTask_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* ExternalPluginService::Stub::PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::TaskDeleteResponse>::Create(channel_.get(), cq, rpcmethod_DeleteTask_, context, request, false); -} - -ExternalPluginService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - ExternalPluginService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( - std::mem_fn(&ExternalPluginService::Service::CreateTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ExternalPluginService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( - std::mem_fn(&ExternalPluginService::Service::GetTask), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - ExternalPluginService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< ExternalPluginService::Service, ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( - std::mem_fn(&ExternalPluginService::Service::DeleteTask), this))); -} - -ExternalPluginService::Service::~Service() { -} - -::grpc::Status ExternalPluginService::Service::CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ExternalPluginService::Service::GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status ExternalPluginService::Service::DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h deleted file mode 100644 index bd26ab1805..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.grpc.pb.h +++ /dev/null @@ -1,587 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/external_plugin_service.proto -#ifndef GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED - -#include "flyteidl/service/external_plugin_service.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. -class ExternalPluginService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.ExternalPluginService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Send a task create request to the backend plugin server. - virtual ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - // Get job status. - virtual ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - // Delete the task resource. - virtual ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>>(AsyncDeleteTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Send a task create request to the backend plugin server. - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Get job status. - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Delete the task resource. - virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskGetResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::TaskDeleteResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::flyteidl::service::TaskCreateResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>> AsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>>(AsyncCreateTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>> PrepareAsyncCreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>>(PrepareAsyncCreateTaskRaw(context, request, cq)); - } - ::grpc::Status GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::flyteidl::service::TaskGetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>> AsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>>(AsyncGetTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>> PrepareAsyncGetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>>(PrepareAsyncGetTaskRaw(context, request, cq)); - } - ::grpc::Status DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::flyteidl::service::TaskDeleteResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>> AsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>>(AsyncDeleteTaskRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>> PrepareAsyncDeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>>(PrepareAsyncDeleteTaskRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, std::function) override; - void CreateTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void CreateTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, std::function) override; - void GetTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) override; - void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, std::function) override; - void DeleteTask(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void DeleteTask(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* AsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskCreateResponse>* PrepareAsyncCreateTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* AsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskGetResponse>* PrepareAsyncGetTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskGetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* AsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::TaskDeleteResponse>* PrepareAsyncDeleteTaskRaw(::grpc::ClientContext* context, const ::flyteidl::service::TaskDeleteRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_CreateTask_; - const ::grpc::internal::RpcMethod rpcmethod_GetTask_; - const ::grpc::internal::RpcMethod rpcmethod_DeleteTask_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Send a task create request to the backend plugin server. - virtual ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response); - // Get job status. - virtual ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response); - // Delete the task resource. - virtual ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response); - }; - template - class WithAsyncMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_CreateTask() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::flyteidl::service::TaskCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskCreateResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetTask() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::flyteidl::service::TaskGetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskGetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_DeleteTask() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTask(::grpc::ServerContext* context, ::flyteidl::service::TaskDeleteRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::TaskDeleteResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_CreateTask > > AsyncService; - template - class ExperimentalWithCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::TaskCreateRequest* request, - ::flyteidl::service::TaskCreateResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->CreateTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_CreateTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::TaskGetRequest* request, - ::flyteidl::service::TaskGetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_DeleteTask() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::TaskDeleteRequest* request, - ::flyteidl::service::TaskDeleteResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->DeleteTask(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_DeleteTask( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_CreateTask > > ExperimentalCallbackService; - template - class WithGenericMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_CreateTask() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetTask() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_DeleteTask() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_CreateTask() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestCreateTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetTask() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_DeleteTask() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestDeleteTask(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_CreateTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->CreateTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void CreateTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_DeleteTask() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->DeleteTask(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void DeleteTask(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_CreateTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_CreateTask() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskCreateRequest, ::flyteidl::service::TaskCreateResponse>(std::bind(&WithStreamedUnaryMethod_CreateTask::StreamedCreateTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_CreateTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status CreateTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskCreateRequest* request, ::flyteidl::service::TaskCreateResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedCreateTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskCreateRequest,::flyteidl::service::TaskCreateResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_GetTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetTask() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskGetRequest, ::flyteidl::service::TaskGetResponse>(std::bind(&WithStreamedUnaryMethod_GetTask::StreamedGetTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskGetRequest* request, ::flyteidl::service::TaskGetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskGetRequest,::flyteidl::service::TaskGetResponse>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_DeleteTask : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_DeleteTask() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::TaskDeleteRequest, ::flyteidl::service::TaskDeleteResponse>(std::bind(&WithStreamedUnaryMethod_DeleteTask::StreamedDeleteTask, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_DeleteTask() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status DeleteTask(::grpc::ServerContext* context, const ::flyteidl::service::TaskDeleteRequest* request, ::flyteidl::service::TaskDeleteResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedDeleteTask(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::TaskDeleteRequest,::flyteidl::service::TaskDeleteResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_CreateTask > > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc deleted file mode 100644 index 481be2619e..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.cc +++ /dev/null @@ -1,2341 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto - -#include "flyteidl/service/external_plugin_service.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2fliterals_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto; -extern PROTOBUF_INTERNAL_EXPORT_flyteidl_2fcore_2ftasks_2eproto ::google::protobuf::internal::SCCInfo<10> scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto; -namespace flyteidl { -namespace service { -class TaskCreateRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskCreateRequest_default_instance_; -class TaskCreateResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskCreateResponse_default_instance_; -class TaskGetRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskGetRequest_default_instance_; -class TaskGetResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskGetResponse_default_instance_; -class TaskDeleteRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskDeleteRequest_default_instance_; -class TaskDeleteResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _TaskDeleteResponse_default_instance_; -} // namespace service -} // namespace flyteidl -static void InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskCreateRequest_default_instance_; - new (ptr) ::flyteidl::service::TaskCreateRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskCreateRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<2> scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base, - &scc_info_TaskTemplate_flyteidl_2fcore_2ftasks_2eproto.base,}}; - -static void InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskCreateResponse_default_instance_; - new (ptr) ::flyteidl::service::TaskCreateResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskCreateResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; - -static void InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskGetRequest_default_instance_; - new (ptr) ::flyteidl::service::TaskGetRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskGetRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; - -static void InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskGetResponse_default_instance_; - new (ptr) ::flyteidl::service::TaskGetResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskGetResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, { - &scc_info_Literal_flyteidl_2fcore_2fliterals_2eproto.base,}}; - -static void InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskDeleteRequest_default_instance_; - new (ptr) ::flyteidl::service::TaskDeleteRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskDeleteRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; - -static void InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_TaskDeleteResponse_default_instance_; - new (ptr) ::flyteidl::service::TaskDeleteResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::TaskDeleteResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto}, {}}; - -void InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[6]; -const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[1]; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, inputs_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, template__), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateRequest, output_prefix_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskCreateResponse, job_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetRequest, job_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, state_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskGetResponse, outputs_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, task_type_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteRequest, job_id_), - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::TaskDeleteResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::service::TaskCreateRequest)}, - { 8, -1, sizeof(::flyteidl::service::TaskCreateResponse)}, - { 14, -1, sizeof(::flyteidl::service::TaskGetRequest)}, - { 21, -1, sizeof(::flyteidl::service::TaskGetResponse)}, - { 28, -1, sizeof(::flyteidl::service::TaskDeleteRequest)}, - { 35, -1, sizeof(::flyteidl::service::TaskDeleteResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::service::_TaskCreateRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_TaskCreateResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_TaskGetRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_TaskGetResponse_default_instance_), - reinterpret_cast(&::flyteidl::service::_TaskDeleteRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_TaskDeleteResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, "flyteidl/service/external_plugin_service.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 6, file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[] = - "\n.flyteidl/service/external_plugin_servi" - "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" - "e/literals.proto\032\031flyteidl/core/tasks.pr" - "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" - "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" - "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." - "flyteidl.core.TaskTemplate\022\025\n\routput_pre" - "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" - "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" - "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" - "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" - "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." - "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" - "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" - "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" - "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" - "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" - "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" - "eTask\022#.flyteidl.service.TaskCreateReque" - "st\032$.flyteidl.service.TaskCreateResponse" - "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" - "GetRequest\032!.flyteidl.service.TaskGetRes" - "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" - "ice.TaskDeleteRequest\032$.flyteidl.service" - ".TaskDeleteResponse\"\003\210\002\001B\?Z=github.com/f" - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" - "l/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, - "flyteidl/service/external_plugin_service.proto", &assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, 1057, -}; - -void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[3] = - { - ::AddDescriptors_flyteidl_2fcore_2fliterals_2eproto, - ::AddDescriptors_flyteidl_2fcore_2ftasks_2eproto, - ::AddDescriptors_flyteidl_2fcore_2finterface_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto, deps, 3); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); return true; }(); -namespace flyteidl { -namespace service { -const ::google::protobuf::EnumDescriptor* State_descriptor() { - ::google::protobuf::internal::AssignDescriptors(&assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return file_level_enum_descriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[0]; -} -bool State_IsValid(int value) { - switch (value) { - case 0: - case 1: - case 2: - case 3: - case 4: - return true; - default: - return false; - } -} - - -// =================================================================== - -void TaskCreateRequest::InitAsDefaultInstance() { - ::flyteidl::service::_TaskCreateRequest_default_instance_._instance.get_mutable()->inputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); - ::flyteidl::service::_TaskCreateRequest_default_instance_._instance.get_mutable()->template__ = const_cast< ::flyteidl::core::TaskTemplate*>( - ::flyteidl::core::TaskTemplate::internal_default_instance()); -} -class TaskCreateRequest::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& inputs(const TaskCreateRequest* msg); - static const ::flyteidl::core::TaskTemplate& template_(const TaskCreateRequest* msg); -}; - -const ::flyteidl::core::LiteralMap& -TaskCreateRequest::HasBitSetters::inputs(const TaskCreateRequest* msg) { - return *msg->inputs_; -} -const ::flyteidl::core::TaskTemplate& -TaskCreateRequest::HasBitSetters::template_(const TaskCreateRequest* msg) { - return *msg->template__; -} -void TaskCreateRequest::clear_inputs() { - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; -} -void TaskCreateRequest::clear_template_() { - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskCreateRequest::kInputsFieldNumber; -const int TaskCreateRequest::kTemplateFieldNumber; -const int TaskCreateRequest::kOutputPrefixFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskCreateRequest::TaskCreateRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskCreateRequest) -} -TaskCreateRequest::TaskCreateRequest(const TaskCreateRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.output_prefix().size() > 0) { - output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); - } - if (from.has_inputs()) { - inputs_ = new ::flyteidl::core::LiteralMap(*from.inputs_); - } else { - inputs_ = nullptr; - } - if (from.has_template_()) { - template__ = new ::flyteidl::core::TaskTemplate(*from.template__); - } else { - template__ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskCreateRequest) -} - -void TaskCreateRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - output_prefix_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - ::memset(&inputs_, 0, static_cast( - reinterpret_cast(&template__) - - reinterpret_cast(&inputs_)) + sizeof(template__)); -} - -TaskCreateRequest::~TaskCreateRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskCreateRequest) - SharedDtor(); -} - -void TaskCreateRequest::SharedDtor() { - output_prefix_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete inputs_; - if (this != internal_default_instance()) delete template__; -} - -void TaskCreateRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskCreateRequest& TaskCreateRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskCreateRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && inputs_ != nullptr) { - delete inputs_; - } - inputs_ = nullptr; - if (GetArenaNoVirtual() == nullptr && template__ != nullptr) { - delete template__; - } - template__ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskCreateRequest::_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.LiteralMap inputs = 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::LiteralMap::_InternalParse; - object = msg->mutable_inputs(); - 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.core.TaskTemplate template = 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::core::TaskTemplate::_InternalParse; - object = msg->mutable_template_(); - 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; - } - // string output_prefix = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskCreateRequest.output_prefix"); - object = msg->mutable_output_prefix(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskCreateRequest::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.service.TaskCreateRequest) - 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.LiteralMap inputs = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_inputs())); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.TaskTemplate template = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_template_())); - } else { - goto handle_unusual; - } - break; - } - - // string output_prefix = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_output_prefix())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskCreateRequest.output_prefix")); - } 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.service.TaskCreateRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskCreateRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskCreateRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, HasBitSetters::inputs(this), output); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::template_(this), output); - } - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskCreateRequest.output_prefix"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->output_prefix(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskCreateRequest) -} - -::google::protobuf::uint8* TaskCreateRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskCreateRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 1, HasBitSetters::inputs(this), target); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::template_(this), target); - } - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->output_prefix().data(), static_cast(this->output_prefix().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskCreateRequest.output_prefix"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->output_prefix(), 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.service.TaskCreateRequest) - return target; -} - -size_t TaskCreateRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskCreateRequest) - 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; - - // string output_prefix = 3; - if (this->output_prefix().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->output_prefix()); - } - - // .flyteidl.core.LiteralMap inputs = 1; - if (this->has_inputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *inputs_); - } - - // .flyteidl.core.TaskTemplate template = 2; - if (this->has_template_()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *template__); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskCreateRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskCreateRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskCreateRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskCreateRequest) - MergeFrom(*source); - } -} - -void TaskCreateRequest::MergeFrom(const TaskCreateRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskCreateRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.output_prefix().size() > 0) { - - output_prefix_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.output_prefix_); - } - if (from.has_inputs()) { - mutable_inputs()->::flyteidl::core::LiteralMap::MergeFrom(from.inputs()); - } - if (from.has_template_()) { - mutable_template_()->::flyteidl::core::TaskTemplate::MergeFrom(from.template_()); - } -} - -void TaskCreateRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskCreateRequest::CopyFrom(const TaskCreateRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskCreateRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskCreateRequest::IsInitialized() const { - return true; -} - -void TaskCreateRequest::Swap(TaskCreateRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskCreateRequest::InternalSwap(TaskCreateRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - output_prefix_.Swap(&other->output_prefix_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(inputs_, other->inputs_); - swap(template__, other->template__); -} - -::google::protobuf::Metadata TaskCreateRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskCreateResponse::InitAsDefaultInstance() { -} -class TaskCreateResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskCreateResponse::kJobIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskCreateResponse::TaskCreateResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskCreateResponse) -} -TaskCreateResponse::TaskCreateResponse(const TaskCreateResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.job_id().size() > 0) { - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskCreateResponse) -} - -void TaskCreateResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskCreateResponse::~TaskCreateResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskCreateResponse) - SharedDtor(); -} - -void TaskCreateResponse::SharedDtor() { - job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskCreateResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskCreateResponse& TaskCreateResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskCreateResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskCreateResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskCreateResponse::_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) { - // string job_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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskCreateResponse.job_id"); - object = msg->mutable_job_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskCreateResponse::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.service.TaskCreateResponse) - 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)) { - // string job_id = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_job_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskCreateResponse.job_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.service.TaskCreateResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskCreateResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskCreateResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string job_id = 1; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskCreateResponse.job_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->job_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskCreateResponse) -} - -::google::protobuf::uint8* TaskCreateResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskCreateResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string job_id = 1; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskCreateResponse.job_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->job_id(), 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.service.TaskCreateResponse) - return target; -} - -size_t TaskCreateResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskCreateResponse) - 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; - - // string job_id = 1; - if (this->job_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->job_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskCreateResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskCreateResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskCreateResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskCreateResponse) - MergeFrom(*source); - } -} - -void TaskCreateResponse::MergeFrom(const TaskCreateResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskCreateResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.job_id().size() > 0) { - - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } -} - -void TaskCreateResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskCreateResponse::CopyFrom(const TaskCreateResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskCreateResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskCreateResponse::IsInitialized() const { - return true; -} - -void TaskCreateResponse::Swap(TaskCreateResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskCreateResponse::InternalSwap(TaskCreateResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskCreateResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskGetRequest::InitAsDefaultInstance() { -} -class TaskGetRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskGetRequest::kTaskTypeFieldNumber; -const int TaskGetRequest::kJobIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskGetRequest::TaskGetRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskGetRequest) -} -TaskGetRequest::TaskGetRequest(const TaskGetRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.job_id().size() > 0) { - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskGetRequest) -} - -void TaskGetRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskGetRequest::~TaskGetRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskGetRequest) - SharedDtor(); -} - -void TaskGetRequest::SharedDtor() { - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskGetRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskGetRequest& TaskGetRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskGetRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskGetRequest::_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) { - // string task_type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskGetRequest.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string job_id = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskGetRequest.job_id"); - object = msg->mutable_job_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskGetRequest::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.service.TaskGetRequest) - 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)) { - // string task_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskGetRequest.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // string job_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_job_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskGetRequest.job_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.service.TaskGetRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskGetRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskGetRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskGetRequest.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->task_type(), output); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskGetRequest.job_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->job_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskGetRequest) -} - -::google::protobuf::uint8* TaskGetRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskGetRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskGetRequest.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->task_type(), target); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskGetRequest.job_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->job_id(), 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.service.TaskGetRequest) - return target; -} - -size_t TaskGetRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskGetRequest) - 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; - - // string task_type = 1; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->job_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskGetRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskGetRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskGetRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskGetRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskGetRequest) - MergeFrom(*source); - } -} - -void TaskGetRequest::MergeFrom(const TaskGetRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskGetRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.job_id().size() > 0) { - - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } -} - -void TaskGetRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskGetRequest::CopyFrom(const TaskGetRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskGetRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskGetRequest::IsInitialized() const { - return true; -} - -void TaskGetRequest::Swap(TaskGetRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskGetRequest::InternalSwap(TaskGetRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskGetRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskGetResponse::InitAsDefaultInstance() { - ::flyteidl::service::_TaskGetResponse_default_instance_._instance.get_mutable()->outputs_ = const_cast< ::flyteidl::core::LiteralMap*>( - ::flyteidl::core::LiteralMap::internal_default_instance()); -} -class TaskGetResponse::HasBitSetters { - public: - static const ::flyteidl::core::LiteralMap& outputs(const TaskGetResponse* msg); -}; - -const ::flyteidl::core::LiteralMap& -TaskGetResponse::HasBitSetters::outputs(const TaskGetResponse* msg) { - return *msg->outputs_; -} -void TaskGetResponse::clear_outputs() { - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskGetResponse::kStateFieldNumber; -const int TaskGetResponse::kOutputsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskGetResponse::TaskGetResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskGetResponse) -} -TaskGetResponse::TaskGetResponse(const TaskGetResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - if (from.has_outputs()) { - outputs_ = new ::flyteidl::core::LiteralMap(*from.outputs_); - } else { - outputs_ = nullptr; - } - state_ = from.state_; - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskGetResponse) -} - -void TaskGetResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - ::memset(&outputs_, 0, static_cast( - reinterpret_cast(&state_) - - reinterpret_cast(&outputs_)) + sizeof(state_)); -} - -TaskGetResponse::~TaskGetResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskGetResponse) - SharedDtor(); -} - -void TaskGetResponse::SharedDtor() { - if (this != internal_default_instance()) delete outputs_; -} - -void TaskGetResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskGetResponse& TaskGetResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskGetResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskGetResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - if (GetArenaNoVirtual() == nullptr && outputs_ != nullptr) { - delete outputs_; - } - outputs_ = nullptr; - state_ = 0; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskGetResponse::_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.service.State state = 1; - case 1: { - if (static_cast<::google::protobuf::uint8>(tag) != 8) goto handle_unusual; - ::google::protobuf::uint64 val = ::google::protobuf::internal::ReadVarint(&ptr); - msg->set_state(static_cast<::flyteidl::service::State>(val)); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - break; - } - // .flyteidl.core.LiteralMap outputs = 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::core::LiteralMap::_InternalParse; - object = msg->mutable_outputs(); - 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 TaskGetResponse::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.service.TaskGetResponse) - 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.service.State state = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (8 & 0xFF)) { - int value = 0; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - set_state(static_cast< ::flyteidl::service::State >(value)); - } else { - goto handle_unusual; - } - break; - } - - // .flyteidl.core.LiteralMap outputs = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_outputs())); - } 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.service.TaskGetResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskGetResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskGetResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.service.State state = 1; - if (this->state() != 0) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->state(), output); - } - - // .flyteidl.core.LiteralMap outputs = 2; - if (this->has_outputs()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, HasBitSetters::outputs(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskGetResponse) -} - -::google::protobuf::uint8* TaskGetResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskGetResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // .flyteidl.service.State state = 1; - if (this->state() != 0) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->state(), target); - } - - // .flyteidl.core.LiteralMap outputs = 2; - if (this->has_outputs()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 2, HasBitSetters::outputs(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.service.TaskGetResponse) - return target; -} - -size_t TaskGetResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskGetResponse) - 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.LiteralMap outputs = 2; - if (this->has_outputs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *outputs_); - } - - // .flyteidl.service.State state = 1; - if (this->state() != 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->state()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskGetResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskGetResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskGetResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskGetResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskGetResponse) - MergeFrom(*source); - } -} - -void TaskGetResponse::MergeFrom(const TaskGetResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskGetResponse) - 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_outputs()) { - mutable_outputs()->::flyteidl::core::LiteralMap::MergeFrom(from.outputs()); - } - if (from.state() != 0) { - set_state(from.state()); - } -} - -void TaskGetResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskGetResponse::CopyFrom(const TaskGetResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskGetResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskGetResponse::IsInitialized() const { - return true; -} - -void TaskGetResponse::Swap(TaskGetResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskGetResponse::InternalSwap(TaskGetResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - swap(outputs_, other->outputs_); - swap(state_, other->state_); -} - -::google::protobuf::Metadata TaskGetResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskDeleteRequest::InitAsDefaultInstance() { -} -class TaskDeleteRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int TaskDeleteRequest::kTaskTypeFieldNumber; -const int TaskDeleteRequest::kJobIdFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskDeleteRequest::TaskDeleteRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskDeleteRequest) -} -TaskDeleteRequest::TaskDeleteRequest(const TaskDeleteRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.task_type().size() > 0) { - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.job_id().size() > 0) { - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskDeleteRequest) -} - -void TaskDeleteRequest::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - task_type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -TaskDeleteRequest::~TaskDeleteRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskDeleteRequest) - SharedDtor(); -} - -void TaskDeleteRequest::SharedDtor() { - task_type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} - -void TaskDeleteRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskDeleteRequest& TaskDeleteRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteRequest_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskDeleteRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskDeleteRequest::_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) { - // string task_type = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskDeleteRequest.task_type"); - object = msg->mutable_task_type(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string job_id = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.TaskDeleteRequest.job_id"); - object = msg->mutable_job_id(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskDeleteRequest::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.service.TaskDeleteRequest) - 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)) { - // string task_type = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_task_type())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskDeleteRequest.task_type")); - } else { - goto handle_unusual; - } - break; - } - - // string job_id = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_job_id())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.TaskDeleteRequest.job_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.service.TaskDeleteRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskDeleteRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskDeleteRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskDeleteRequest.task_type"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->task_type(), output); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskDeleteRequest.job_id"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->job_id(), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskDeleteRequest) -} - -::google::protobuf::uint8* TaskDeleteRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskDeleteRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string task_type = 1; - if (this->task_type().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->task_type().data(), static_cast(this->task_type().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskDeleteRequest.task_type"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->task_type(), target); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->job_id().data(), static_cast(this->job_id().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.TaskDeleteRequest.job_id"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->job_id(), 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.service.TaskDeleteRequest) - return target; -} - -size_t TaskDeleteRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskDeleteRequest) - 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; - - // string task_type = 1; - if (this->task_type().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->task_type()); - } - - // string job_id = 2; - if (this->job_id().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->job_id()); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskDeleteRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - const TaskDeleteRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskDeleteRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskDeleteRequest) - MergeFrom(*source); - } -} - -void TaskDeleteRequest::MergeFrom(const TaskDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskDeleteRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.task_type().size() > 0) { - - task_type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.task_type_); - } - if (from.job_id().size() > 0) { - - job_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.job_id_); - } -} - -void TaskDeleteRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskDeleteRequest::CopyFrom(const TaskDeleteRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskDeleteRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskDeleteRequest::IsInitialized() const { - return true; -} - -void TaskDeleteRequest::Swap(TaskDeleteRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskDeleteRequest::InternalSwap(TaskDeleteRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - task_type_.Swap(&other->task_type_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - job_id_.Swap(&other->job_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} - -::google::protobuf::Metadata TaskDeleteRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void TaskDeleteResponse::InitAsDefaultInstance() { -} -class TaskDeleteResponse::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -TaskDeleteResponse::TaskDeleteResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.TaskDeleteResponse) -} -TaskDeleteResponse::TaskDeleteResponse(const TaskDeleteResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.service.TaskDeleteResponse) -} - -void TaskDeleteResponse::SharedCtor() { -} - -TaskDeleteResponse::~TaskDeleteResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.TaskDeleteResponse) - SharedDtor(); -} - -void TaskDeleteResponse::SharedDtor() { -} - -void TaskDeleteResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const TaskDeleteResponse& TaskDeleteResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_TaskDeleteResponse_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto.base); - return *internal_default_instance(); -} - - -void TaskDeleteResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.TaskDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* TaskDeleteResponse::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool TaskDeleteResponse::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.service.TaskDeleteResponse) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.service.TaskDeleteResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.TaskDeleteResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void TaskDeleteResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.TaskDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.TaskDeleteResponse) -} - -::google::protobuf::uint8* TaskDeleteResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.TaskDeleteResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.service.TaskDeleteResponse) - return target; -} - -size_t TaskDeleteResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.TaskDeleteResponse) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void TaskDeleteResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.TaskDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - const TaskDeleteResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.TaskDeleteResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.TaskDeleteResponse) - MergeFrom(*source); - } -} - -void TaskDeleteResponse::MergeFrom(const TaskDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.TaskDeleteResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void TaskDeleteResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.TaskDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void TaskDeleteResponse::CopyFrom(const TaskDeleteResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.TaskDeleteResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TaskDeleteResponse::IsInitialized() const { - return true; -} - -void TaskDeleteResponse::Swap(TaskDeleteResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void TaskDeleteResponse::InternalSwap(TaskDeleteResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata TaskDeleteResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskCreateRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskCreateRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskCreateRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskCreateResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskCreateResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskCreateResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskGetRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskGetRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskGetRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskGetResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskGetResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskGetResponse >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskDeleteRequest* Arena::CreateMaybeMessage< ::flyteidl::service::TaskDeleteRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskDeleteRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::TaskDeleteResponse* Arena::CreateMaybeMessage< ::flyteidl::service::TaskDeleteResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::TaskDeleteResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h deleted file mode 100644 index 82d5616c5c..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/external_plugin_service.pb.h +++ /dev/null @@ -1,1403 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "flyteidl/core/literals.pb.h" -#include "flyteidl/core/tasks.pb.h" -#include "flyteidl/core/interface.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - 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] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto(); -namespace flyteidl { -namespace service { -class TaskCreateRequest; -class TaskCreateRequestDefaultTypeInternal; -extern TaskCreateRequestDefaultTypeInternal _TaskCreateRequest_default_instance_; -class TaskCreateResponse; -class TaskCreateResponseDefaultTypeInternal; -extern TaskCreateResponseDefaultTypeInternal _TaskCreateResponse_default_instance_; -class TaskDeleteRequest; -class TaskDeleteRequestDefaultTypeInternal; -extern TaskDeleteRequestDefaultTypeInternal _TaskDeleteRequest_default_instance_; -class TaskDeleteResponse; -class TaskDeleteResponseDefaultTypeInternal; -extern TaskDeleteResponseDefaultTypeInternal _TaskDeleteResponse_default_instance_; -class TaskGetRequest; -class TaskGetRequestDefaultTypeInternal; -extern TaskGetRequestDefaultTypeInternal _TaskGetRequest_default_instance_; -class TaskGetResponse; -class TaskGetResponseDefaultTypeInternal; -extern TaskGetResponseDefaultTypeInternal _TaskGetResponse_default_instance_; -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::service::TaskCreateRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskCreateRequest>(Arena*); -template<> ::flyteidl::service::TaskCreateResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskCreateResponse>(Arena*); -template<> ::flyteidl::service::TaskDeleteRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskDeleteRequest>(Arena*); -template<> ::flyteidl::service::TaskDeleteResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskDeleteResponse>(Arena*); -template<> ::flyteidl::service::TaskGetRequest* Arena::CreateMaybeMessage<::flyteidl::service::TaskGetRequest>(Arena*); -template<> ::flyteidl::service::TaskGetResponse* Arena::CreateMaybeMessage<::flyteidl::service::TaskGetResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4, - State_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::min(), - State_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::google::protobuf::int32>::max() -}; -bool State_IsValid(int value); -const State State_MIN = RETRYABLE_FAILURE; -const State State_MAX = SUCCEEDED; -const int State_ARRAYSIZE = State_MAX + 1; - -const ::google::protobuf::EnumDescriptor* State_descriptor(); -inline const ::std::string& State_Name(State value) { - return ::google::protobuf::internal::NameOfEnum( - State_descriptor(), value); -} -inline bool State_Parse( - const ::std::string& name, State* value) { - return ::google::protobuf::internal::ParseNamedEnum( - State_descriptor(), name, value); -} -// =================================================================== - -class TaskCreateRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskCreateRequest) */ { - public: - TaskCreateRequest(); - virtual ~TaskCreateRequest(); - - TaskCreateRequest(const TaskCreateRequest& from); - - inline TaskCreateRequest& operator=(const TaskCreateRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskCreateRequest(TaskCreateRequest&& from) noexcept - : TaskCreateRequest() { - *this = ::std::move(from); - } - - inline TaskCreateRequest& operator=(TaskCreateRequest&& 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 TaskCreateRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskCreateRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskCreateRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(TaskCreateRequest* other); - friend void swap(TaskCreateRequest& a, TaskCreateRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskCreateRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskCreateRequest* 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 TaskCreateRequest& from); - void MergeFrom(const TaskCreateRequest& 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(TaskCreateRequest* 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 ------------------------------------------------------- - - // string output_prefix = 3; - void clear_output_prefix(); - static const int kOutputPrefixFieldNumber = 3; - const ::std::string& output_prefix() const; - void set_output_prefix(const ::std::string& value); - #if LANG_CXX11 - void set_output_prefix(::std::string&& value); - #endif - void set_output_prefix(const char* value); - void set_output_prefix(const char* value, size_t size); - ::std::string* mutable_output_prefix(); - ::std::string* release_output_prefix(); - void set_allocated_output_prefix(::std::string* output_prefix); - - // .flyteidl.core.LiteralMap inputs = 1; - bool has_inputs() const; - void clear_inputs(); - static const int kInputsFieldNumber = 1; - const ::flyteidl::core::LiteralMap& inputs() const; - ::flyteidl::core::LiteralMap* release_inputs(); - ::flyteidl::core::LiteralMap* mutable_inputs(); - void set_allocated_inputs(::flyteidl::core::LiteralMap* inputs); - - // .flyteidl.core.TaskTemplate template = 2; - bool has_template_() const; - void clear_template_(); - static const int kTemplateFieldNumber = 2; - const ::flyteidl::core::TaskTemplate& template_() const; - ::flyteidl::core::TaskTemplate* release_template_(); - ::flyteidl::core::TaskTemplate* mutable_template_(); - void set_allocated_template_(::flyteidl::core::TaskTemplate* template_); - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr output_prefix_; - ::flyteidl::core::LiteralMap* inputs_; - ::flyteidl::core::TaskTemplate* template__; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskCreateResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskCreateResponse) */ { - public: - TaskCreateResponse(); - virtual ~TaskCreateResponse(); - - TaskCreateResponse(const TaskCreateResponse& from); - - inline TaskCreateResponse& operator=(const TaskCreateResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskCreateResponse(TaskCreateResponse&& from) noexcept - : TaskCreateResponse() { - *this = ::std::move(from); - } - - inline TaskCreateResponse& operator=(TaskCreateResponse&& 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 TaskCreateResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskCreateResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskCreateResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(TaskCreateResponse* other); - friend void swap(TaskCreateResponse& a, TaskCreateResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskCreateResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskCreateResponse* 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 TaskCreateResponse& from); - void MergeFrom(const TaskCreateResponse& 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(TaskCreateResponse* 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 ------------------------------------------------------- - - // string job_id = 1; - void clear_job_id(); - static const int kJobIdFieldNumber = 1; - const ::std::string& job_id() const; - void set_job_id(const ::std::string& value); - #if LANG_CXX11 - void set_job_id(::std::string&& value); - #endif - void set_job_id(const char* value); - void set_job_id(const char* value, size_t size); - ::std::string* mutable_job_id(); - ::std::string* release_job_id(); - void set_allocated_job_id(::std::string* job_id); - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr job_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskGetRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskGetRequest) */ { - public: - TaskGetRequest(); - virtual ~TaskGetRequest(); - - TaskGetRequest(const TaskGetRequest& from); - - inline TaskGetRequest& operator=(const TaskGetRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskGetRequest(TaskGetRequest&& from) noexcept - : TaskGetRequest() { - *this = ::std::move(from); - } - - inline TaskGetRequest& operator=(TaskGetRequest&& 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 TaskGetRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskGetRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskGetRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(TaskGetRequest* other); - friend void swap(TaskGetRequest& a, TaskGetRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskGetRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskGetRequest* 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 TaskGetRequest& from); - void MergeFrom(const TaskGetRequest& 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(TaskGetRequest* 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 ------------------------------------------------------- - - // string task_type = 1; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 1; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // string job_id = 2; - void clear_job_id(); - static const int kJobIdFieldNumber = 2; - const ::std::string& job_id() const; - void set_job_id(const ::std::string& value); - #if LANG_CXX11 - void set_job_id(::std::string&& value); - #endif - void set_job_id(const char* value); - void set_job_id(const char* value, size_t size); - ::std::string* mutable_job_id(); - ::std::string* release_job_id(); - void set_allocated_job_id(::std::string* job_id); - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::google::protobuf::internal::ArenaStringPtr job_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskGetResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskGetResponse) */ { - public: - TaskGetResponse(); - virtual ~TaskGetResponse(); - - TaskGetResponse(const TaskGetResponse& from); - - inline TaskGetResponse& operator=(const TaskGetResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskGetResponse(TaskGetResponse&& from) noexcept - : TaskGetResponse() { - *this = ::std::move(from); - } - - inline TaskGetResponse& operator=(TaskGetResponse&& 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 TaskGetResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskGetResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskGetResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(TaskGetResponse* other); - friend void swap(TaskGetResponse& a, TaskGetResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskGetResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskGetResponse* 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 TaskGetResponse& from); - void MergeFrom(const TaskGetResponse& 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(TaskGetResponse* 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.LiteralMap outputs = 2; - bool has_outputs() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 2; - const ::flyteidl::core::LiteralMap& outputs() const; - ::flyteidl::core::LiteralMap* release_outputs(); - ::flyteidl::core::LiteralMap* mutable_outputs(); - void set_allocated_outputs(::flyteidl::core::LiteralMap* outputs); - - // .flyteidl.service.State state = 1; - void clear_state(); - static const int kStateFieldNumber = 1; - ::flyteidl::service::State state() const; - void set_state(::flyteidl::service::State value); - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::flyteidl::core::LiteralMap* outputs_; - int state_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskDeleteRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskDeleteRequest) */ { - public: - TaskDeleteRequest(); - virtual ~TaskDeleteRequest(); - - TaskDeleteRequest(const TaskDeleteRequest& from); - - inline TaskDeleteRequest& operator=(const TaskDeleteRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskDeleteRequest(TaskDeleteRequest&& from) noexcept - : TaskDeleteRequest() { - *this = ::std::move(from); - } - - inline TaskDeleteRequest& operator=(TaskDeleteRequest&& 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 TaskDeleteRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskDeleteRequest* internal_default_instance() { - return reinterpret_cast( - &_TaskDeleteRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(TaskDeleteRequest* other); - friend void swap(TaskDeleteRequest& a, TaskDeleteRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskDeleteRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskDeleteRequest* 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 TaskDeleteRequest& from); - void MergeFrom(const TaskDeleteRequest& 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(TaskDeleteRequest* 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 ------------------------------------------------------- - - // string task_type = 1; - void clear_task_type(); - static const int kTaskTypeFieldNumber = 1; - const ::std::string& task_type() const; - void set_task_type(const ::std::string& value); - #if LANG_CXX11 - void set_task_type(::std::string&& value); - #endif - void set_task_type(const char* value); - void set_task_type(const char* value, size_t size); - ::std::string* mutable_task_type(); - ::std::string* release_task_type(); - void set_allocated_task_type(::std::string* task_type); - - // string job_id = 2; - void clear_job_id(); - static const int kJobIdFieldNumber = 2; - const ::std::string& job_id() const; - void set_job_id(const ::std::string& value); - #if LANG_CXX11 - void set_job_id(::std::string&& value); - #endif - void set_job_id(const char* value); - void set_job_id(const char* value, size_t size); - ::std::string* mutable_job_id(); - ::std::string* release_job_id(); - void set_allocated_job_id(::std::string* job_id); - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr task_type_; - ::google::protobuf::internal::ArenaStringPtr job_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// ------------------------------------------------------------------- - -class TaskDeleteResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.TaskDeleteResponse) */ { - public: - TaskDeleteResponse(); - virtual ~TaskDeleteResponse(); - - TaskDeleteResponse(const TaskDeleteResponse& from); - - inline TaskDeleteResponse& operator=(const TaskDeleteResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TaskDeleteResponse(TaskDeleteResponse&& from) noexcept - : TaskDeleteResponse() { - *this = ::std::move(from); - } - - inline TaskDeleteResponse& operator=(TaskDeleteResponse&& 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 TaskDeleteResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TaskDeleteResponse* internal_default_instance() { - return reinterpret_cast( - &_TaskDeleteResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(TaskDeleteResponse* other); - friend void swap(TaskDeleteResponse& a, TaskDeleteResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TaskDeleteResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - TaskDeleteResponse* 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 TaskDeleteResponse& from); - void MergeFrom(const TaskDeleteResponse& 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(TaskDeleteResponse* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TaskCreateRequest - -// .flyteidl.core.LiteralMap inputs = 1; -inline bool TaskCreateRequest::has_inputs() const { - return this != internal_default_instance() && inputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& TaskCreateRequest::inputs() const { - const ::flyteidl::core::LiteralMap* p = inputs_; - // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.inputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskCreateRequest::release_inputs() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.inputs) - - ::flyteidl::core::LiteralMap* temp = inputs_; - inputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* TaskCreateRequest::mutable_inputs() { - - if (inputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - inputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.inputs) - return inputs_; -} -inline void TaskCreateRequest::set_allocated_inputs(::flyteidl::core::LiteralMap* inputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(inputs_); - } - if (inputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - inputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, inputs, submessage_arena); - } - - } else { - - } - inputs_ = inputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.inputs) -} - -// .flyteidl.core.TaskTemplate template = 2; -inline bool TaskCreateRequest::has_template_() const { - return this != internal_default_instance() && template__ != nullptr; -} -inline const ::flyteidl::core::TaskTemplate& TaskCreateRequest::template_() const { - const ::flyteidl::core::TaskTemplate* p = template__; - // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.template) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_TaskTemplate_default_instance_); -} -inline ::flyteidl::core::TaskTemplate* TaskCreateRequest::release_template_() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.template) - - ::flyteidl::core::TaskTemplate* temp = template__; - template__ = nullptr; - return temp; -} -inline ::flyteidl::core::TaskTemplate* TaskCreateRequest::mutable_template_() { - - if (template__ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::TaskTemplate>(GetArenaNoVirtual()); - template__ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.template) - return template__; -} -inline void TaskCreateRequest::set_allocated_template_(::flyteidl::core::TaskTemplate* template_) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(template__); - } - if (template_) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - template_ = ::google::protobuf::internal::GetOwnedMessage( - message_arena, template_, submessage_arena); - } - - } else { - - } - template__ = template_; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.template) -} - -// string output_prefix = 3; -inline void TaskCreateRequest::clear_output_prefix() { - output_prefix_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskCreateRequest::output_prefix() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateRequest.output_prefix) - return output_prefix_.GetNoArena(); -} -inline void TaskCreateRequest::set_output_prefix(const ::std::string& value) { - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskCreateRequest.output_prefix) -} -#if LANG_CXX11 -inline void TaskCreateRequest::set_output_prefix(::std::string&& value) { - - output_prefix_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskCreateRequest.output_prefix) -} -#endif -inline void TaskCreateRequest::set_output_prefix(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskCreateRequest.output_prefix) -} -inline void TaskCreateRequest::set_output_prefix(const char* value, size_t size) { - - output_prefix_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskCreateRequest.output_prefix) -} -inline ::std::string* TaskCreateRequest::mutable_output_prefix() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateRequest.output_prefix) - return output_prefix_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskCreateRequest::release_output_prefix() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateRequest.output_prefix) - - return output_prefix_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskCreateRequest::set_allocated_output_prefix(::std::string* output_prefix) { - if (output_prefix != nullptr) { - - } else { - - } - output_prefix_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_prefix); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateRequest.output_prefix) -} - -// ------------------------------------------------------------------- - -// TaskCreateResponse - -// string job_id = 1; -inline void TaskCreateResponse::clear_job_id() { - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskCreateResponse::job_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskCreateResponse.job_id) - return job_id_.GetNoArena(); -} -inline void TaskCreateResponse::set_job_id(const ::std::string& value) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskCreateResponse.job_id) -} -#if LANG_CXX11 -inline void TaskCreateResponse::set_job_id(::std::string&& value) { - - job_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskCreateResponse.job_id) -} -#endif -inline void TaskCreateResponse::set_job_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskCreateResponse.job_id) -} -inline void TaskCreateResponse::set_job_id(const char* value, size_t size) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskCreateResponse.job_id) -} -inline ::std::string* TaskCreateResponse::mutable_job_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskCreateResponse.job_id) - return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskCreateResponse::release_job_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskCreateResponse.job_id) - - return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskCreateResponse::set_allocated_job_id(::std::string* job_id) { - if (job_id != nullptr) { - - } else { - - } - job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskCreateResponse.job_id) -} - -// ------------------------------------------------------------------- - -// TaskGetRequest - -// string task_type = 1; -inline void TaskGetRequest::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskGetRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetRequest.task_type) - return task_type_.GetNoArena(); -} -inline void TaskGetRequest::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetRequest.task_type) -} -#if LANG_CXX11 -inline void TaskGetRequest::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskGetRequest.task_type) -} -#endif -inline void TaskGetRequest::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskGetRequest.task_type) -} -inline void TaskGetRequest::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskGetRequest.task_type) -} -inline ::std::string* TaskGetRequest::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetRequest.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskGetRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetRequest.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskGetRequest::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetRequest.task_type) -} - -// string job_id = 2; -inline void TaskGetRequest::clear_job_id() { - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskGetRequest::job_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetRequest.job_id) - return job_id_.GetNoArena(); -} -inline void TaskGetRequest::set_job_id(const ::std::string& value) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetRequest.job_id) -} -#if LANG_CXX11 -inline void TaskGetRequest::set_job_id(::std::string&& value) { - - job_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskGetRequest.job_id) -} -#endif -inline void TaskGetRequest::set_job_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskGetRequest.job_id) -} -inline void TaskGetRequest::set_job_id(const char* value, size_t size) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskGetRequest.job_id) -} -inline ::std::string* TaskGetRequest::mutable_job_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetRequest.job_id) - return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskGetRequest::release_job_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetRequest.job_id) - - return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskGetRequest::set_allocated_job_id(::std::string* job_id) { - if (job_id != nullptr) { - - } else { - - } - job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetRequest.job_id) -} - -// ------------------------------------------------------------------- - -// TaskGetResponse - -// .flyteidl.service.State state = 1; -inline void TaskGetResponse::clear_state() { - state_ = 0; -} -inline ::flyteidl::service::State TaskGetResponse::state() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetResponse.state) - return static_cast< ::flyteidl::service::State >(state_); -} -inline void TaskGetResponse::set_state(::flyteidl::service::State value) { - - state_ = value; - // @@protoc_insertion_point(field_set:flyteidl.service.TaskGetResponse.state) -} - -// .flyteidl.core.LiteralMap outputs = 2; -inline bool TaskGetResponse::has_outputs() const { - return this != internal_default_instance() && outputs_ != nullptr; -} -inline const ::flyteidl::core::LiteralMap& TaskGetResponse::outputs() const { - const ::flyteidl::core::LiteralMap* p = outputs_; - // @@protoc_insertion_point(field_get:flyteidl.service.TaskGetResponse.outputs) - return p != nullptr ? *p : *reinterpret_cast( - &::flyteidl::core::_LiteralMap_default_instance_); -} -inline ::flyteidl::core::LiteralMap* TaskGetResponse::release_outputs() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskGetResponse.outputs) - - ::flyteidl::core::LiteralMap* temp = outputs_; - outputs_ = nullptr; - return temp; -} -inline ::flyteidl::core::LiteralMap* TaskGetResponse::mutable_outputs() { - - if (outputs_ == nullptr) { - auto* p = CreateMaybeMessage<::flyteidl::core::LiteralMap>(GetArenaNoVirtual()); - outputs_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskGetResponse.outputs) - return outputs_; -} -inline void TaskGetResponse::set_allocated_outputs(::flyteidl::core::LiteralMap* outputs) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outputs_); - } - if (outputs) { - ::google::protobuf::Arena* submessage_arena = nullptr; - if (message_arena != submessage_arena) { - outputs = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outputs, submessage_arena); - } - - } else { - - } - outputs_ = outputs; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskGetResponse.outputs) -} - -// ------------------------------------------------------------------- - -// TaskDeleteRequest - -// string task_type = 1; -inline void TaskDeleteRequest::clear_task_type() { - task_type_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskDeleteRequest::task_type() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskDeleteRequest.task_type) - return task_type_.GetNoArena(); -} -inline void TaskDeleteRequest::set_task_type(const ::std::string& value) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskDeleteRequest.task_type) -} -#if LANG_CXX11 -inline void TaskDeleteRequest::set_task_type(::std::string&& value) { - - task_type_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskDeleteRequest.task_type) -} -#endif -inline void TaskDeleteRequest::set_task_type(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskDeleteRequest.task_type) -} -inline void TaskDeleteRequest::set_task_type(const char* value, size_t size) { - - task_type_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskDeleteRequest.task_type) -} -inline ::std::string* TaskDeleteRequest::mutable_task_type() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskDeleteRequest.task_type) - return task_type_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskDeleteRequest::release_task_type() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskDeleteRequest.task_type) - - return task_type_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskDeleteRequest::set_allocated_task_type(::std::string* task_type) { - if (task_type != nullptr) { - - } else { - - } - task_type_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), task_type); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskDeleteRequest.task_type) -} - -// string job_id = 2; -inline void TaskDeleteRequest::clear_job_id() { - job_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& TaskDeleteRequest::job_id() const { - // @@protoc_insertion_point(field_get:flyteidl.service.TaskDeleteRequest.job_id) - return job_id_.GetNoArena(); -} -inline void TaskDeleteRequest::set_job_id(const ::std::string& value) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.TaskDeleteRequest.job_id) -} -#if LANG_CXX11 -inline void TaskDeleteRequest::set_job_id(::std::string&& value) { - - job_id_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.TaskDeleteRequest.job_id) -} -#endif -inline void TaskDeleteRequest::set_job_id(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.TaskDeleteRequest.job_id) -} -inline void TaskDeleteRequest::set_job_id(const char* value, size_t size) { - - job_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.TaskDeleteRequest.job_id) -} -inline ::std::string* TaskDeleteRequest::mutable_job_id() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.TaskDeleteRequest.job_id) - return job_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* TaskDeleteRequest::release_job_id() { - // @@protoc_insertion_point(field_release:flyteidl.service.TaskDeleteRequest.job_id) - - return job_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void TaskDeleteRequest::set_allocated_job_id(::std::string* job_id) { - if (job_id != nullptr) { - - } else { - - } - job_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), job_id); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.TaskDeleteRequest.job_id) -} - -// ------------------------------------------------------------------- - -// TaskDeleteResponse - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::flyteidl::service::State> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::flyteidl::service::State>() { - return ::flyteidl::service::State_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fexternal_5fplugin_5fservice_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc deleted file mode 100644 index 31c587db24..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.cc +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/identity.proto - -#include "flyteidl/service/identity.pb.h" -#include "flyteidl/service/identity.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* IdentityService_method_names[] = { - "/flyteidl.service.IdentityService/UserInfo", -}; - -std::unique_ptr< IdentityService::Stub> IdentityService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< IdentityService::Stub> stub(new IdentityService::Stub(channel)); - return stub; -} - -IdentityService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_UserInfo_(IdentityService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status IdentityService::Stub::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_UserInfo_, context, request, response); -} - -void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, std::move(f)); -} - -void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, std::move(f)); -} - -void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, reactor); -} - -void IdentityService::Stub::experimental_async::UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_UserInfo_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* IdentityService::Stub::AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::UserInfoResponse>::Create(channel_.get(), cq, rpcmethod_UserInfo_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* IdentityService::Stub::PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::service::UserInfoResponse>::Create(channel_.get(), cq, rpcmethod_UserInfo_, context, request, false); -} - -IdentityService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - IdentityService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< IdentityService::Service, ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>( - std::mem_fn(&IdentityService::Service::UserInfo), this))); -} - -IdentityService::Service::~Service() { -} - -::grpc::Status IdentityService::Service::UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h deleted file mode 100644 index 241c042b09..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/identity.grpc.pb.h +++ /dev/null @@ -1,259 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/identity.proto -#ifndef GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED - -#include "flyteidl/service/identity.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// IdentityService defines an RPC Service that interacts with user/app identities. -class IdentityService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.IdentityService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Retrieves user information about the currently logged in user. - virtual ::grpc::Status UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>> AsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>>(AsyncUserInfoRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>> PrepareAsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>>(PrepareAsyncUserInfoRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Retrieves user information about the currently logged in user. - virtual void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function) = 0; - virtual void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function) = 0; - virtual void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>* AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::service::UserInfoResponse>* PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::flyteidl::service::UserInfoResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>> AsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>>(AsyncUserInfoRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>> PrepareAsyncUserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>>(PrepareAsyncUserInfoRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, std::function) override; - void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, std::function) override; - void UserInfo(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void UserInfo(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* AsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::service::UserInfoResponse>* PrepareAsyncUserInfoRaw(::grpc::ClientContext* context, const ::flyteidl::service::UserInfoRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_UserInfo_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Retrieves user information about the currently logged in user. - virtual ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response); - }; - template - class WithAsyncMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_UserInfo() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUserInfo(::grpc::ServerContext* context, ::flyteidl::service::UserInfoRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::service::UserInfoResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_UserInfo AsyncService; - template - class ExperimentalWithCallbackMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_UserInfo() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::service::UserInfoRequest* request, - ::flyteidl::service::UserInfoResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->UserInfo(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_UserInfo( - ::grpc::experimental::MessageAllocator< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_UserInfo ExperimentalCallbackService; - template - class WithGenericMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_UserInfo() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_UserInfo() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestUserInfo(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_UserInfo() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->UserInfo(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void UserInfo(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_UserInfo : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_UserInfo() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::service::UserInfoRequest, ::flyteidl::service::UserInfoResponse>(std::bind(&WithStreamedUnaryMethod_UserInfo::StreamedUserInfo, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_UserInfo() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status UserInfo(::grpc::ServerContext* context, const ::flyteidl::service::UserInfoRequest* request, ::flyteidl::service::UserInfoResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedUserInfo(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::service::UserInfoRequest,::flyteidl::service::UserInfoResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_UserInfo StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_UserInfo StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fidentity_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc deleted file mode 100644 index c17f9bd542..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.cc +++ /dev/null @@ -1,1174 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/identity.proto - -#include "flyteidl/service/identity.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fstruct_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto; -namespace flyteidl { -namespace service { -class UserInfoRequestDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UserInfoRequest_default_instance_; -class UserInfoResponseDefaultTypeInternal { - public: - ::google::protobuf::internal::ExplicitlyConstructed _instance; -} _UserInfoResponse_default_instance_; -} // namespace service -} // namespace flyteidl -static void InitDefaultsUserInfoRequest_flyteidl_2fservice_2fidentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_UserInfoRequest_default_instance_; - new (ptr) ::flyteidl::service::UserInfoRequest(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::UserInfoRequest::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<0> scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsUserInfoRequest_flyteidl_2fservice_2fidentity_2eproto}, {}}; - -static void InitDefaultsUserInfoResponse_flyteidl_2fservice_2fidentity_2eproto() { - GOOGLE_PROTOBUF_VERIFY_VERSION; - - { - void* ptr = &::flyteidl::service::_UserInfoResponse_default_instance_; - new (ptr) ::flyteidl::service::UserInfoResponse(); - ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); - } - ::flyteidl::service::UserInfoResponse::InitAsDefaultInstance(); -} - -::google::protobuf::internal::SCCInfo<1> scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto = - {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsUserInfoResponse_flyteidl_2fservice_2fidentity_2eproto}, { - &scc_info_ListValue_google_2fprotobuf_2fstruct_2eproto.base,}}; - -void InitDefaults_flyteidl_2fservice_2fidentity_2eproto() { - ::google::protobuf::internal::InitSCC(&scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto.base); - ::google::protobuf::internal::InitSCC(&scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); -} - -::google::protobuf::Metadata file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[2]; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fidentity_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fidentity_2eproto = nullptr; - -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fidentity_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoRequest, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, subject_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, preferred_username_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, given_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, family_name_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, email_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, picture_), - PROTOBUF_FIELD_OFFSET(::flyteidl::service::UserInfoResponse, additional_claims_), -}; -static const ::google::protobuf::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { - { 0, -1, sizeof(::flyteidl::service::UserInfoRequest)}, - { 5, -1, sizeof(::flyteidl::service::UserInfoResponse)}, -}; - -static ::google::protobuf::Message const * const file_default_instances[] = { - reinterpret_cast(&::flyteidl::service::_UserInfoRequest_default_instance_), - reinterpret_cast(&::flyteidl::service::_UserInfoResponse_default_instance_), -}; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fidentity_2eproto, "flyteidl/service/identity.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fidentity_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fidentity_2eproto, 2, file_level_enum_descriptors_flyteidl_2fservice_2fidentity_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fidentity_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fidentity_2eproto[] = - "\n\037flyteidl/service/identity.proto\022\020flyte" - "idl.service\032\034google/api/annotations.prot" - "o\032\034google/protobuf/struct.proto\"\021\n\017UserI" - "nfoRequest\"\312\001\n\020UserInfoResponse\022\017\n\007subje" - "ct\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\032\n\022preferred_user" - "name\030\003 \001(\t\022\022\n\ngiven_name\030\004 \001(\t\022\023\n\013family" - "_name\030\005 \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007picture\030\007 " - "\001(\t\0222\n\021additional_claims\030\010 \001(\0132\027.google." - "protobuf.Struct2q\n\017IdentityService\022^\n\010Us" - "erInfo\022!.flyteidl.service.UserInfoReques" - "t\032\".flyteidl.service.UserInfoResponse\"\013\202" - "\323\344\223\002\005\022\003/meB\?Z=github.com/flyteorg/flyte/" - "flyteidl/gen/pb-go/flyteidl/serviceb\006pro" - "to3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fidentity_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fidentity_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fidentity_2eproto, - "flyteidl/service/identity.proto", &assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto, 523, -}; - -void AddDescriptors_flyteidl_2fservice_2fidentity_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_google_2fprotobuf_2fstruct_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fidentity_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fidentity_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fidentity_2eproto(); return true; }(); -namespace flyteidl { -namespace service { - -// =================================================================== - -void UserInfoRequest::InitAsDefaultInstance() { -} -class UserInfoRequest::HasBitSetters { - public: -}; - -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UserInfoRequest::UserInfoRequest() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.UserInfoRequest) -} -UserInfoRequest::UserInfoRequest(const UserInfoRequest& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:flyteidl.service.UserInfoRequest) -} - -void UserInfoRequest::SharedCtor() { -} - -UserInfoRequest::~UserInfoRequest() { - // @@protoc_insertion_point(destructor:flyteidl.service.UserInfoRequest) - SharedDtor(); -} - -void UserInfoRequest::SharedDtor() { -} - -void UserInfoRequest::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UserInfoRequest& UserInfoRequest::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UserInfoRequest_flyteidl_2fservice_2fidentity_2eproto.base); - return *internal_default_instance(); -} - - -void UserInfoRequest::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.UserInfoRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UserInfoRequest::_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) { - default: { - 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; -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UserInfoRequest::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.service.UserInfoRequest) - for (;;) { - ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); - tag = p.first; - if (!p.second) goto handle_unusual; - handle_unusual: - if (tag == 0) { - goto success; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, _internal_metadata_.mutable_unknown_fields())); - } -success: - // @@protoc_insertion_point(parse_success:flyteidl.service.UserInfoRequest) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.UserInfoRequest) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UserInfoRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.UserInfoRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.UserInfoRequest) -} - -::google::protobuf::uint8* UserInfoRequest::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.UserInfoRequest) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - 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.service.UserInfoRequest) - return target; -} - -size_t UserInfoRequest::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.UserInfoRequest) - 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; - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UserInfoRequest::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.UserInfoRequest) - GOOGLE_DCHECK_NE(&from, this); - const UserInfoRequest* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.UserInfoRequest) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.UserInfoRequest) - MergeFrom(*source); - } -} - -void UserInfoRequest::MergeFrom(const UserInfoRequest& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.UserInfoRequest) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - -} - -void UserInfoRequest::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.UserInfoRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UserInfoRequest::CopyFrom(const UserInfoRequest& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.UserInfoRequest) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UserInfoRequest::IsInitialized() const { - return true; -} - -void UserInfoRequest::Swap(UserInfoRequest* other) { - if (other == this) return; - InternalSwap(other); -} -void UserInfoRequest::InternalSwap(UserInfoRequest* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); -} - -::google::protobuf::Metadata UserInfoRequest::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[kIndexInFileMessages]; -} - - -// =================================================================== - -void UserInfoResponse::InitAsDefaultInstance() { - ::flyteidl::service::_UserInfoResponse_default_instance_._instance.get_mutable()->additional_claims_ = const_cast< ::google::protobuf::Struct*>( - ::google::protobuf::Struct::internal_default_instance()); -} -class UserInfoResponse::HasBitSetters { - public: - static const ::google::protobuf::Struct& additional_claims(const UserInfoResponse* msg); -}; - -const ::google::protobuf::Struct& -UserInfoResponse::HasBitSetters::additional_claims(const UserInfoResponse* msg) { - return *msg->additional_claims_; -} -void UserInfoResponse::clear_additional_claims() { - if (GetArenaNoVirtual() == nullptr && additional_claims_ != nullptr) { - delete additional_claims_; - } - additional_claims_ = nullptr; -} -#if !defined(_MSC_VER) || _MSC_VER >= 1900 -const int UserInfoResponse::kSubjectFieldNumber; -const int UserInfoResponse::kNameFieldNumber; -const int UserInfoResponse::kPreferredUsernameFieldNumber; -const int UserInfoResponse::kGivenNameFieldNumber; -const int UserInfoResponse::kFamilyNameFieldNumber; -const int UserInfoResponse::kEmailFieldNumber; -const int UserInfoResponse::kPictureFieldNumber; -const int UserInfoResponse::kAdditionalClaimsFieldNumber; -#endif // !defined(_MSC_VER) || _MSC_VER >= 1900 - -UserInfoResponse::UserInfoResponse() - : ::google::protobuf::Message(), _internal_metadata_(nullptr) { - SharedCtor(); - // @@protoc_insertion_point(constructor:flyteidl.service.UserInfoResponse) -} -UserInfoResponse::UserInfoResponse(const UserInfoResponse& from) - : ::google::protobuf::Message(), - _internal_metadata_(nullptr) { - _internal_metadata_.MergeFrom(from._internal_metadata_); - subject_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.subject().size() > 0) { - subject_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_); - } - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.name().size() > 0) { - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - preferred_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.preferred_username().size() > 0) { - preferred_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.preferred_username_); - } - given_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.given_name().size() > 0) { - given_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.given_name_); - } - family_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.family_name().size() > 0) { - family_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.family_name_); - } - email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.email().size() > 0) { - email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_); - } - picture_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (from.picture().size() > 0) { - picture_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.picture_); - } - if (from.has_additional_claims()) { - additional_claims_ = new ::google::protobuf::Struct(*from.additional_claims_); - } else { - additional_claims_ = nullptr; - } - // @@protoc_insertion_point(copy_constructor:flyteidl.service.UserInfoResponse) -} - -void UserInfoResponse::SharedCtor() { - ::google::protobuf::internal::InitSCC( - &scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); - subject_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - preferred_username_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - given_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - family_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - email_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - picture_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - additional_claims_ = nullptr; -} - -UserInfoResponse::~UserInfoResponse() { - // @@protoc_insertion_point(destructor:flyteidl.service.UserInfoResponse) - SharedDtor(); -} - -void UserInfoResponse::SharedDtor() { - subject_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - preferred_username_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - given_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - family_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - email_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - picture_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (this != internal_default_instance()) delete additional_claims_; -} - -void UserInfoResponse::SetCachedSize(int size) const { - _cached_size_.Set(size); -} -const UserInfoResponse& UserInfoResponse::default_instance() { - ::google::protobuf::internal::InitSCC(&::scc_info_UserInfoResponse_flyteidl_2fservice_2fidentity_2eproto.base); - return *internal_default_instance(); -} - - -void UserInfoResponse::Clear() { -// @@protoc_insertion_point(message_clear_start:flyteidl.service.UserInfoResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - subject_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - preferred_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - given_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - family_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - picture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - if (GetArenaNoVirtual() == nullptr && additional_claims_ != nullptr) { - delete additional_claims_; - } - additional_claims_ = nullptr; - _internal_metadata_.Clear(); -} - -#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -const char* UserInfoResponse::_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) { - // string subject = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.subject"); - object = msg->mutable_subject(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string name = 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); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.name"); - object = msg->mutable_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string preferred_username = 3; - case 3: { - if (static_cast<::google::protobuf::uint8>(tag) != 26) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.preferred_username"); - object = msg->mutable_preferred_username(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string given_name = 4; - case 4: { - if (static_cast<::google::protobuf::uint8>(tag) != 34) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.given_name"); - object = msg->mutable_given_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string family_name = 5; - case 5: { - if (static_cast<::google::protobuf::uint8>(tag) != 42) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.family_name"); - object = msg->mutable_family_name(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string email = 6; - case 6: { - if (static_cast<::google::protobuf::uint8>(tag) != 50) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.email"); - object = msg->mutable_email(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // string picture = 7; - case 7: { - if (static_cast<::google::protobuf::uint8>(tag) != 58) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - ctx->extra_parse_data().SetFieldName("flyteidl.service.UserInfoResponse.picture"); - object = msg->mutable_picture(); - if (size > end - ptr + ::google::protobuf::internal::ParseContext::kSlopBytes) { - parser_till_end = ::google::protobuf::internal::GreedyStringParserUTF8; - goto string_till_end; - } - GOOGLE_PROTOBUF_PARSER_ASSERT(::google::protobuf::internal::StringCheckUTF8(ptr, size, ctx)); - ::google::protobuf::internal::InlineGreedyStringParser(object, ptr, size, ctx); - ptr += size; - break; - } - // .google.protobuf.Struct additional_claims = 8; - case 8: { - if (static_cast<::google::protobuf::uint8>(tag) != 66) goto handle_unusual; - ptr = ::google::protobuf::io::ReadSize(ptr, &size); - GOOGLE_PROTOBUF_PARSER_ASSERT(ptr); - parser_till_end = ::google::protobuf::Struct::_InternalParse; - object = msg->mutable_additional_claims(); - 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; -string_till_end: - static_cast<::std::string*>(object)->clear(); - static_cast<::std::string*>(object)->reserve(size); - goto len_delim_till_end; -len_delim_till_end: - return ctx->StoreAndTailCall(ptr, end, {_InternalParse, msg}, - {parser_till_end, object}, size); -} -#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER -bool UserInfoResponse::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.service.UserInfoResponse) - 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)) { - // string subject = 1; - case 1: { - if (static_cast< ::google::protobuf::uint8>(tag) == (10 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_subject())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject().data(), static_cast(this->subject().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.subject")); - } else { - goto handle_unusual; - } - break; - } - - // string name = 2; - case 2: { - if (static_cast< ::google::protobuf::uint8>(tag) == (18 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.name")); - } else { - goto handle_unusual; - } - break; - } - - // string preferred_username = 3; - case 3: { - if (static_cast< ::google::protobuf::uint8>(tag) == (26 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_preferred_username())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preferred_username().data(), static_cast(this->preferred_username().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.preferred_username")); - } else { - goto handle_unusual; - } - break; - } - - // string given_name = 4; - case 4: { - if (static_cast< ::google::protobuf::uint8>(tag) == (34 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_given_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->given_name().data(), static_cast(this->given_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.given_name")); - } else { - goto handle_unusual; - } - break; - } - - // string family_name = 5; - case 5: { - if (static_cast< ::google::protobuf::uint8>(tag) == (42 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_family_name())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->family_name().data(), static_cast(this->family_name().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.family_name")); - } else { - goto handle_unusual; - } - break; - } - - // string email = 6; - case 6: { - if (static_cast< ::google::protobuf::uint8>(tag) == (50 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_email())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->email().data(), static_cast(this->email().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.email")); - } else { - goto handle_unusual; - } - break; - } - - // string picture = 7; - case 7: { - if (static_cast< ::google::protobuf::uint8>(tag) == (58 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_picture())); - DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->picture().data(), static_cast(this->picture().length()), - ::google::protobuf::internal::WireFormatLite::PARSE, - "flyteidl.service.UserInfoResponse.picture")); - } else { - goto handle_unusual; - } - break; - } - - // .google.protobuf.Struct additional_claims = 8; - case 8: { - if (static_cast< ::google::protobuf::uint8>(tag) == (66 & 0xFF)) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( - input, mutable_additional_claims())); - } 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.service.UserInfoResponse) - return true; -failure: - // @@protoc_insertion_point(parse_failure:flyteidl.service.UserInfoResponse) - return false; -#undef DO_ -} -#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER - -void UserInfoResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // @@protoc_insertion_point(serialize_start:flyteidl.service.UserInfoResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string subject = 1; - if (this->subject().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject().data(), static_cast(this->subject().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.subject"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 1, this->subject(), output); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 2, this->name(), output); - } - - // string preferred_username = 3; - if (this->preferred_username().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preferred_username().data(), static_cast(this->preferred_username().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.preferred_username"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 3, this->preferred_username(), output); - } - - // string given_name = 4; - if (this->given_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->given_name().data(), static_cast(this->given_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.given_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 4, this->given_name(), output); - } - - // string family_name = 5; - if (this->family_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->family_name().data(), static_cast(this->family_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.family_name"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 5, this->family_name(), output); - } - - // string email = 6; - if (this->email().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->email().data(), static_cast(this->email().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.email"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 6, this->email(), output); - } - - // string picture = 7; - if (this->picture().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->picture().data(), static_cast(this->picture().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.picture"); - ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( - 7, this->picture(), output); - } - - // .google.protobuf.Struct additional_claims = 8; - if (this->has_additional_claims()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 8, HasBitSetters::additional_claims(this), output); - } - - if (_internal_metadata_.have_unknown_fields()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - _internal_metadata_.unknown_fields(), output); - } - // @@protoc_insertion_point(serialize_end:flyteidl.service.UserInfoResponse) -} - -::google::protobuf::uint8* UserInfoResponse::InternalSerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // @@protoc_insertion_point(serialize_to_array_start:flyteidl.service.UserInfoResponse) - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - // string subject = 1; - if (this->subject().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->subject().data(), static_cast(this->subject().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.subject"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->subject(), target); - } - - // string name = 2; - if (this->name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->name().data(), static_cast(this->name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - // string preferred_username = 3; - if (this->preferred_username().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->preferred_username().data(), static_cast(this->preferred_username().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.preferred_username"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 3, this->preferred_username(), target); - } - - // string given_name = 4; - if (this->given_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->given_name().data(), static_cast(this->given_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.given_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 4, this->given_name(), target); - } - - // string family_name = 5; - if (this->family_name().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->family_name().data(), static_cast(this->family_name().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.family_name"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 5, this->family_name(), target); - } - - // string email = 6; - if (this->email().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->email().data(), static_cast(this->email().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.email"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 6, this->email(), target); - } - - // string picture = 7; - if (this->picture().size() > 0) { - ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( - this->picture().data(), static_cast(this->picture().length()), - ::google::protobuf::internal::WireFormatLite::SERIALIZE, - "flyteidl.service.UserInfoResponse.picture"); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->picture(), target); - } - - // .google.protobuf.Struct additional_claims = 8; - if (this->has_additional_claims()) { - target = ::google::protobuf::internal::WireFormatLite:: - InternalWriteMessageToArray( - 8, HasBitSetters::additional_claims(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.service.UserInfoResponse) - return target; -} - -size_t UserInfoResponse::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:flyteidl.service.UserInfoResponse) - 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; - - // string subject = 1; - if (this->subject().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->subject()); - } - - // string name = 2; - if (this->name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // string preferred_username = 3; - if (this->preferred_username().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->preferred_username()); - } - - // string given_name = 4; - if (this->given_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->given_name()); - } - - // string family_name = 5; - if (this->family_name().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->family_name()); - } - - // string email = 6; - if (this->email().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->email()); - } - - // string picture = 7; - if (this->picture().size() > 0) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->picture()); - } - - // .google.protobuf.Struct additional_claims = 8; - if (this->has_additional_claims()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSize( - *additional_claims_); - } - - int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); - SetCachedSize(cached_size); - return total_size; -} - -void UserInfoResponse::MergeFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_merge_from_start:flyteidl.service.UserInfoResponse) - GOOGLE_DCHECK_NE(&from, this); - const UserInfoResponse* source = - ::google::protobuf::DynamicCastToGenerated( - &from); - if (source == nullptr) { - // @@protoc_insertion_point(generalized_merge_from_cast_fail:flyteidl.service.UserInfoResponse) - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - // @@protoc_insertion_point(generalized_merge_from_cast_success:flyteidl.service.UserInfoResponse) - MergeFrom(*source); - } -} - -void UserInfoResponse::MergeFrom(const UserInfoResponse& from) { -// @@protoc_insertion_point(class_specific_merge_from_start:flyteidl.service.UserInfoResponse) - GOOGLE_DCHECK_NE(&from, this); - _internal_metadata_.MergeFrom(from._internal_metadata_); - ::google::protobuf::uint32 cached_has_bits = 0; - (void) cached_has_bits; - - if (from.subject().size() > 0) { - - subject_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.subject_); - } - if (from.name().size() > 0) { - - name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); - } - if (from.preferred_username().size() > 0) { - - preferred_username_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.preferred_username_); - } - if (from.given_name().size() > 0) { - - given_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.given_name_); - } - if (from.family_name().size() > 0) { - - family_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.family_name_); - } - if (from.email().size() > 0) { - - email_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.email_); - } - if (from.picture().size() > 0) { - - picture_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.picture_); - } - if (from.has_additional_claims()) { - mutable_additional_claims()->::google::protobuf::Struct::MergeFrom(from.additional_claims()); - } -} - -void UserInfoResponse::CopyFrom(const ::google::protobuf::Message& from) { -// @@protoc_insertion_point(generalized_copy_from_start:flyteidl.service.UserInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void UserInfoResponse::CopyFrom(const UserInfoResponse& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:flyteidl.service.UserInfoResponse) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool UserInfoResponse::IsInitialized() const { - return true; -} - -void UserInfoResponse::Swap(UserInfoResponse* other) { - if (other == this) return; - InternalSwap(other); -} -void UserInfoResponse::InternalSwap(UserInfoResponse* other) { - using std::swap; - _internal_metadata_.Swap(&other->_internal_metadata_); - subject_.Swap(&other->subject_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - preferred_username_.Swap(&other->preferred_username_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - given_name_.Swap(&other->given_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - family_name_.Swap(&other->family_name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - email_.Swap(&other->email_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - picture_.Swap(&other->picture_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - swap(additional_claims_, other->additional_claims_); -} - -::google::protobuf::Metadata UserInfoResponse::GetMetadata() const { - ::google::protobuf::internal::AssignDescriptors(&::assign_descriptors_table_flyteidl_2fservice_2fidentity_2eproto); - return ::file_level_metadata_flyteidl_2fservice_2fidentity_2eproto[kIndexInFileMessages]; -} - - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> PROTOBUF_NOINLINE ::flyteidl::service::UserInfoRequest* Arena::CreateMaybeMessage< ::flyteidl::service::UserInfoRequest >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::UserInfoRequest >(arena); -} -template<> PROTOBUF_NOINLINE ::flyteidl::service::UserInfoResponse* Arena::CreateMaybeMessage< ::flyteidl::service::UserInfoResponse >(Arena* arena) { - return Arena::CreateInternal< ::flyteidl::service::UserInfoResponse >(arena); -} -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h deleted file mode 100644 index 6e7d6946c3..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/identity.pb.h +++ /dev/null @@ -1,843 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/identity.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "google/api/annotations.pb.h" -#include -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fidentity_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fidentity_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[2] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fidentity_2eproto(); -namespace flyteidl { -namespace service { -class UserInfoRequest; -class UserInfoRequestDefaultTypeInternal; -extern UserInfoRequestDefaultTypeInternal _UserInfoRequest_default_instance_; -class UserInfoResponse; -class UserInfoResponseDefaultTypeInternal; -extern UserInfoResponseDefaultTypeInternal _UserInfoResponse_default_instance_; -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -template<> ::flyteidl::service::UserInfoRequest* Arena::CreateMaybeMessage<::flyteidl::service::UserInfoRequest>(Arena*); -template<> ::flyteidl::service::UserInfoResponse* Arena::CreateMaybeMessage<::flyteidl::service::UserInfoResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -// =================================================================== - -class UserInfoRequest final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.UserInfoRequest) */ { - public: - UserInfoRequest(); - virtual ~UserInfoRequest(); - - UserInfoRequest(const UserInfoRequest& from); - - inline UserInfoRequest& operator=(const UserInfoRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UserInfoRequest(UserInfoRequest&& from) noexcept - : UserInfoRequest() { - *this = ::std::move(from); - } - - inline UserInfoRequest& operator=(UserInfoRequest&& 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 UserInfoRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UserInfoRequest* internal_default_instance() { - return reinterpret_cast( - &_UserInfoRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(UserInfoRequest* other); - friend void swap(UserInfoRequest& a, UserInfoRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UserInfoRequest* New() const final { - return CreateMaybeMessage(nullptr); - } - - UserInfoRequest* 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 UserInfoRequest& from); - void MergeFrom(const UserInfoRequest& 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(UserInfoRequest* 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoRequest) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fidentity_2eproto; -}; -// ------------------------------------------------------------------- - -class UserInfoResponse final : - public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:flyteidl.service.UserInfoResponse) */ { - public: - UserInfoResponse(); - virtual ~UserInfoResponse(); - - UserInfoResponse(const UserInfoResponse& from); - - inline UserInfoResponse& operator=(const UserInfoResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UserInfoResponse(UserInfoResponse&& from) noexcept - : UserInfoResponse() { - *this = ::std::move(from); - } - - inline UserInfoResponse& operator=(UserInfoResponse&& 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 UserInfoResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UserInfoResponse* internal_default_instance() { - return reinterpret_cast( - &_UserInfoResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(UserInfoResponse* other); - friend void swap(UserInfoResponse& a, UserInfoResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UserInfoResponse* New() const final { - return CreateMaybeMessage(nullptr); - } - - UserInfoResponse* 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 UserInfoResponse& from); - void MergeFrom(const UserInfoResponse& 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(UserInfoResponse* 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 ------------------------------------------------------- - - // string subject = 1; - void clear_subject(); - static const int kSubjectFieldNumber = 1; - const ::std::string& subject() const; - void set_subject(const ::std::string& value); - #if LANG_CXX11 - void set_subject(::std::string&& value); - #endif - void set_subject(const char* value); - void set_subject(const char* value, size_t size); - ::std::string* mutable_subject(); - ::std::string* release_subject(); - void set_allocated_subject(::std::string* subject); - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - - // string preferred_username = 3; - void clear_preferred_username(); - static const int kPreferredUsernameFieldNumber = 3; - const ::std::string& preferred_username() const; - void set_preferred_username(const ::std::string& value); - #if LANG_CXX11 - void set_preferred_username(::std::string&& value); - #endif - void set_preferred_username(const char* value); - void set_preferred_username(const char* value, size_t size); - ::std::string* mutable_preferred_username(); - ::std::string* release_preferred_username(); - void set_allocated_preferred_username(::std::string* preferred_username); - - // string given_name = 4; - void clear_given_name(); - static const int kGivenNameFieldNumber = 4; - const ::std::string& given_name() const; - void set_given_name(const ::std::string& value); - #if LANG_CXX11 - void set_given_name(::std::string&& value); - #endif - void set_given_name(const char* value); - void set_given_name(const char* value, size_t size); - ::std::string* mutable_given_name(); - ::std::string* release_given_name(); - void set_allocated_given_name(::std::string* given_name); - - // string family_name = 5; - void clear_family_name(); - static const int kFamilyNameFieldNumber = 5; - const ::std::string& family_name() const; - void set_family_name(const ::std::string& value); - #if LANG_CXX11 - void set_family_name(::std::string&& value); - #endif - void set_family_name(const char* value); - void set_family_name(const char* value, size_t size); - ::std::string* mutable_family_name(); - ::std::string* release_family_name(); - void set_allocated_family_name(::std::string* family_name); - - // string email = 6; - void clear_email(); - static const int kEmailFieldNumber = 6; - const ::std::string& email() const; - void set_email(const ::std::string& value); - #if LANG_CXX11 - void set_email(::std::string&& value); - #endif - void set_email(const char* value); - void set_email(const char* value, size_t size); - ::std::string* mutable_email(); - ::std::string* release_email(); - void set_allocated_email(::std::string* email); - - // string picture = 7; - void clear_picture(); - static const int kPictureFieldNumber = 7; - const ::std::string& picture() const; - void set_picture(const ::std::string& value); - #if LANG_CXX11 - void set_picture(::std::string&& value); - #endif - void set_picture(const char* value); - void set_picture(const char* value, size_t size); - ::std::string* mutable_picture(); - ::std::string* release_picture(); - void set_allocated_picture(::std::string* picture); - - // .google.protobuf.Struct additional_claims = 8; - bool has_additional_claims() const; - void clear_additional_claims(); - static const int kAdditionalClaimsFieldNumber = 8; - const ::google::protobuf::Struct& additional_claims() const; - ::google::protobuf::Struct* release_additional_claims(); - ::google::protobuf::Struct* mutable_additional_claims(); - void set_allocated_additional_claims(::google::protobuf::Struct* additional_claims); - - // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoResponse) - private: - class HasBitSetters; - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr subject_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr preferred_username_; - ::google::protobuf::internal::ArenaStringPtr given_name_; - ::google::protobuf::internal::ArenaStringPtr family_name_; - ::google::protobuf::internal::ArenaStringPtr email_; - ::google::protobuf::internal::ArenaStringPtr picture_; - ::google::protobuf::Struct* additional_claims_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::TableStruct_flyteidl_2fservice_2fidentity_2eproto; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// UserInfoRequest - -// ------------------------------------------------------------------- - -// UserInfoResponse - -// string subject = 1; -inline void UserInfoResponse::clear_subject() { - subject_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::subject() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.subject) - return subject_.GetNoArena(); -} -inline void UserInfoResponse::set_subject(const ::std::string& value) { - - subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.subject) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_subject(::std::string&& value) { - - subject_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.subject) -} -#endif -inline void UserInfoResponse::set_subject(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.subject) -} -inline void UserInfoResponse::set_subject(const char* value, size_t size) { - - subject_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.subject) -} -inline ::std::string* UserInfoResponse::mutable_subject() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.subject) - return subject_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_subject() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.subject) - - return subject_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_subject(::std::string* subject) { - if (subject != nullptr) { - - } else { - - } - subject_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), subject); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.subject) -} - -// string name = 2; -inline void UserInfoResponse::clear_name() { - name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::name() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.name) - return name_.GetNoArena(); -} -inline void UserInfoResponse::set_name(const ::std::string& value) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.name) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_name(::std::string&& value) { - - name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.name) -} -#endif -inline void UserInfoResponse::set_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.name) -} -inline void UserInfoResponse::set_name(const char* value, size_t size) { - - name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.name) -} -inline ::std::string* UserInfoResponse::mutable_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.name) - return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_name() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.name) - - return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_name(::std::string* name) { - if (name != nullptr) { - - } else { - - } - name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.name) -} - -// string preferred_username = 3; -inline void UserInfoResponse::clear_preferred_username() { - preferred_username_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::preferred_username() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.preferred_username) - return preferred_username_.GetNoArena(); -} -inline void UserInfoResponse::set_preferred_username(const ::std::string& value) { - - preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.preferred_username) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_preferred_username(::std::string&& value) { - - preferred_username_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.preferred_username) -} -#endif -inline void UserInfoResponse::set_preferred_username(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.preferred_username) -} -inline void UserInfoResponse::set_preferred_username(const char* value, size_t size) { - - preferred_username_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.preferred_username) -} -inline ::std::string* UserInfoResponse::mutable_preferred_username() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.preferred_username) - return preferred_username_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_preferred_username() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.preferred_username) - - return preferred_username_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_preferred_username(::std::string* preferred_username) { - if (preferred_username != nullptr) { - - } else { - - } - preferred_username_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), preferred_username); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.preferred_username) -} - -// string given_name = 4; -inline void UserInfoResponse::clear_given_name() { - given_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::given_name() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.given_name) - return given_name_.GetNoArena(); -} -inline void UserInfoResponse::set_given_name(const ::std::string& value) { - - given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.given_name) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_given_name(::std::string&& value) { - - given_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.given_name) -} -#endif -inline void UserInfoResponse::set_given_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.given_name) -} -inline void UserInfoResponse::set_given_name(const char* value, size_t size) { - - given_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.given_name) -} -inline ::std::string* UserInfoResponse::mutable_given_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.given_name) - return given_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_given_name() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.given_name) - - return given_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_given_name(::std::string* given_name) { - if (given_name != nullptr) { - - } else { - - } - given_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), given_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.given_name) -} - -// string family_name = 5; -inline void UserInfoResponse::clear_family_name() { - family_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::family_name() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.family_name) - return family_name_.GetNoArena(); -} -inline void UserInfoResponse::set_family_name(const ::std::string& value) { - - family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.family_name) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_family_name(::std::string&& value) { - - family_name_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.family_name) -} -#endif -inline void UserInfoResponse::set_family_name(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.family_name) -} -inline void UserInfoResponse::set_family_name(const char* value, size_t size) { - - family_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.family_name) -} -inline ::std::string* UserInfoResponse::mutable_family_name() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.family_name) - return family_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_family_name() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.family_name) - - return family_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_family_name(::std::string* family_name) { - if (family_name != nullptr) { - - } else { - - } - family_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), family_name); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.family_name) -} - -// string email = 6; -inline void UserInfoResponse::clear_email() { - email_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::email() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.email) - return email_.GetNoArena(); -} -inline void UserInfoResponse::set_email(const ::std::string& value) { - - email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.email) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_email(::std::string&& value) { - - email_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.email) -} -#endif -inline void UserInfoResponse::set_email(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.email) -} -inline void UserInfoResponse::set_email(const char* value, size_t size) { - - email_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.email) -} -inline ::std::string* UserInfoResponse::mutable_email() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.email) - return email_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_email() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.email) - - return email_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_email(::std::string* email) { - if (email != nullptr) { - - } else { - - } - email_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), email); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.email) -} - -// string picture = 7; -inline void UserInfoResponse::clear_picture() { - picture_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& UserInfoResponse::picture() const { - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.picture) - return picture_.GetNoArena(); -} -inline void UserInfoResponse::set_picture(const ::std::string& value) { - - picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:flyteidl.service.UserInfoResponse.picture) -} -#if LANG_CXX11 -inline void UserInfoResponse::set_picture(::std::string&& value) { - - picture_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:flyteidl.service.UserInfoResponse.picture) -} -#endif -inline void UserInfoResponse::set_picture(const char* value) { - GOOGLE_DCHECK(value != nullptr); - - picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:flyteidl.service.UserInfoResponse.picture) -} -inline void UserInfoResponse::set_picture(const char* value, size_t size) { - - picture_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:flyteidl.service.UserInfoResponse.picture) -} -inline ::std::string* UserInfoResponse::mutable_picture() { - - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.picture) - return picture_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* UserInfoResponse::release_picture() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.picture) - - return picture_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void UserInfoResponse::set_allocated_picture(::std::string* picture) { - if (picture != nullptr) { - - } else { - - } - picture_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), picture); - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.picture) -} - -// .google.protobuf.Struct additional_claims = 8; -inline bool UserInfoResponse::has_additional_claims() const { - return this != internal_default_instance() && additional_claims_ != nullptr; -} -inline const ::google::protobuf::Struct& UserInfoResponse::additional_claims() const { - const ::google::protobuf::Struct* p = additional_claims_; - // @@protoc_insertion_point(field_get:flyteidl.service.UserInfoResponse.additional_claims) - return p != nullptr ? *p : *reinterpret_cast( - &::google::protobuf::_Struct_default_instance_); -} -inline ::google::protobuf::Struct* UserInfoResponse::release_additional_claims() { - // @@protoc_insertion_point(field_release:flyteidl.service.UserInfoResponse.additional_claims) - - ::google::protobuf::Struct* temp = additional_claims_; - additional_claims_ = nullptr; - return temp; -} -inline ::google::protobuf::Struct* UserInfoResponse::mutable_additional_claims() { - - if (additional_claims_ == nullptr) { - auto* p = CreateMaybeMessage<::google::protobuf::Struct>(GetArenaNoVirtual()); - additional_claims_ = p; - } - // @@protoc_insertion_point(field_mutable:flyteidl.service.UserInfoResponse.additional_claims) - return additional_claims_; -} -inline void UserInfoResponse::set_allocated_additional_claims(::google::protobuf::Struct* additional_claims) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == nullptr) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(additional_claims_); - } - if (additional_claims) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(additional_claims)->GetArena(); - if (message_arena != submessage_arena) { - additional_claims = ::google::protobuf::internal::GetOwnedMessage( - message_arena, additional_claims, submessage_arena); - } - - } else { - - } - additional_claims_ = additional_claims; - // @@protoc_insertion_point(field_set_allocated:flyteidl.service.UserInfoResponse.additional_claims) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fidentity_2eproto diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc deleted file mode 100644 index 892874328b..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.cc +++ /dev/null @@ -1,169 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/signal.proto - -#include "flyteidl/service/signal.pb.h" -#include "flyteidl/service/signal.grpc.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -namespace flyteidl { -namespace service { - -static const char* SignalService_method_names[] = { - "/flyteidl.service.SignalService/GetOrCreateSignal", - "/flyteidl.service.SignalService/ListSignals", - "/flyteidl.service.SignalService/SetSignal", -}; - -std::unique_ptr< SignalService::Stub> SignalService::NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options) { - (void)options; - std::unique_ptr< SignalService::Stub> stub(new SignalService::Stub(channel)); - return stub; -} - -SignalService::Stub::Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel) - : channel_(channel), rpcmethod_GetOrCreateSignal_(SignalService_method_names[0], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_ListSignals_(SignalService_method_names[1], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - , rpcmethod_SetSignal_(SignalService_method_names[2], ::grpc::internal::RpcMethod::NORMAL_RPC, channel) - {} - -::grpc::Status SignalService::Stub::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_GetOrCreateSignal_, context, request, response); -} - -void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, reactor); -} - -void SignalService::Stub::experimental_async::GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_GetOrCreateSignal_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* SignalService::Stub::AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Signal>::Create(channel_.get(), cq, rpcmethod_GetOrCreateSignal_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* SignalService::Stub::PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::Signal>::Create(channel_.get(), cq, rpcmethod_GetOrCreateSignal_, context, request, false); -} - -::grpc::Status SignalService::Stub::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_ListSignals_, context, request, response); -} - -void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, reactor); -} - -void SignalService::Stub::experimental_async::ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_ListSignals_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* SignalService::Stub::AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalList>::Create(channel_.get(), cq, rpcmethod_ListSignals_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* SignalService::Stub::PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalList>::Create(channel_.get(), cq, rpcmethod_ListSignals_, context, request, false); -} - -::grpc::Status SignalService::Stub::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) { - return ::grpc::internal::BlockingUnaryCall(channel_.get(), rpcmethod_SetSignal_, context, request, response); -} - -void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function f) { - ::grpc::internal::CallbackUnaryCall(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, std::move(f)); -} - -void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, reactor); -} - -void SignalService::Stub::experimental_async::SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) { - ::grpc::internal::ClientCallbackUnaryFactory::Create(stub_->channel_.get(), stub_->rpcmethod_SetSignal_, context, request, response, reactor); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* SignalService::Stub::AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalSetResponse>::Create(channel_.get(), cq, rpcmethod_SetSignal_, context, request, true); -} - -::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* SignalService::Stub::PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return ::grpc::internal::ClientAsyncResponseReaderFactory< ::flyteidl::admin::SignalSetResponse>::Create(channel_.get(), cq, rpcmethod_SetSignal_, context, request, false); -} - -SignalService::Service::Service() { - AddMethod(new ::grpc::internal::RpcServiceMethod( - SignalService_method_names[0], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>( - std::mem_fn(&SignalService::Service::GetOrCreateSignal), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - SignalService_method_names[1], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>( - std::mem_fn(&SignalService::Service::ListSignals), this))); - AddMethod(new ::grpc::internal::RpcServiceMethod( - SignalService_method_names[2], - ::grpc::internal::RpcMethod::NORMAL_RPC, - new ::grpc::internal::RpcMethodHandler< SignalService::Service, ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>( - std::mem_fn(&SignalService::Service::SetSignal), this))); -} - -SignalService::Service::~Service() { -} - -::grpc::Status SignalService::Service::GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status SignalService::Service::ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - -::grpc::Status SignalService::Service::SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) { - (void) context; - (void) request; - (void) response; - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); -} - - -} // namespace flyteidl -} // namespace service - diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h deleted file mode 100644 index 7a27d5490f..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/signal.grpc.pb.h +++ /dev/null @@ -1,608 +0,0 @@ -// Generated by the gRPC C++ plugin. -// If you make any local change, they will be lost. -// source: flyteidl/service/signal.proto -#ifndef GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED -#define GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED - -#include "flyteidl/service/signal.pb.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -namespace grpc_impl { -class Channel; -class CompletionQueue; -class ServerCompletionQueue; -} // namespace grpc_impl - -namespace grpc { -namespace experimental { -template -class MessageAllocator; -} // namespace experimental -} // namespace grpc_impl - -namespace grpc { -class ServerContext; -} // namespace grpc - -namespace flyteidl { -namespace service { - -// SignalService defines an RPC Service that may create, update, and retrieve signal(s). -class SignalService final { - public: - static constexpr char const* service_full_name() { - return "flyteidl.service.SignalService"; - } - class StubInterface { - public: - virtual ~StubInterface() {} - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - virtual ::grpc::Status GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>> AsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>>(AsyncGetOrCreateSignalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>> PrepareAsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>>(PrepareAsyncGetOrCreateSignalRaw(context, request, cq)); - } - // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve - // a signal, meaning the first call will create the signal and all subsequent calls will - // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore - // is not exposed to mitigate unintended behavior. - // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { - // description: "Retrieve a signal, creating it if it does not exist." - // }; - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - virtual ::grpc::Status ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>> AsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>>(AsyncListSignalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>> PrepareAsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>>(PrepareAsyncListSignalsRaw(context, request, cq)); - } - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - virtual ::grpc::Status SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) = 0; - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>> AsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>>(AsyncSetSignalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>> PrepareAsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>>(PrepareAsyncSetSignalRaw(context, request, cq)); - } - class experimental_async_interface { - public: - virtual ~experimental_async_interface() {} - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function) = 0; - virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function) = 0; - virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve - // a signal, meaning the first call will create the signal and all subsequent calls will - // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore - // is not exposed to mitigate unintended behavior. - // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { - // description: "Retrieve a signal, creating it if it does not exist." - // }; - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - virtual void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function) = 0; - virtual void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function) = 0; - virtual void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - virtual void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function) = 0; - virtual void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function) = 0; - virtual void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - virtual void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) = 0; - }; - virtual class experimental_async_interface* experimental_async() { return nullptr; } - private: - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>* AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::Signal>* PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>* AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalList>* PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>* AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) = 0; - virtual ::grpc::ClientAsyncResponseReaderInterface< ::flyteidl::admin::SignalSetResponse>* PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) = 0; - }; - class Stub final : public StubInterface { - public: - Stub(const std::shared_ptr< ::grpc::ChannelInterface>& channel); - ::grpc::Status GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::flyteidl::admin::Signal* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>> AsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>>(AsyncGetOrCreateSignalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>> PrepareAsyncGetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>>(PrepareAsyncGetOrCreateSignalRaw(context, request, cq)); - } - ::grpc::Status ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::flyteidl::admin::SignalList* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>> AsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>>(AsyncListSignalsRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>> PrepareAsyncListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>>(PrepareAsyncListSignalsRaw(context, request, cq)); - } - ::grpc::Status SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::flyteidl::admin::SignalSetResponse* response) override; - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>> AsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>>(AsyncSetSignalRaw(context, request, cq)); - } - std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>> PrepareAsyncSetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) { - return std::unique_ptr< ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>>(PrepareAsyncSetSignalRaw(context, request, cq)); - } - class experimental_async final : - public StubInterface::experimental_async_interface { - public: - void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, std::function) override; - void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, std::function) override; - void GetOrCreateSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void GetOrCreateSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, std::function) override; - void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, std::function) override; - void ListSignals(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void ListSignals(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, std::function) override; - void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, std::function) override; - void SetSignal(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - void SetSignal(::grpc::ClientContext* context, const ::grpc::ByteBuffer* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ClientUnaryReactor* reactor) override; - private: - friend class Stub; - explicit experimental_async(Stub* stub): stub_(stub) { } - Stub* stub() { return stub_; } - Stub* stub_; - }; - class experimental_async_interface* experimental_async() override { return &async_stub_; } - - private: - std::shared_ptr< ::grpc::ChannelInterface> channel_; - class experimental_async async_stub_{this}; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* AsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::Signal>* PrepareAsyncGetOrCreateSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* AsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalList>* PrepareAsyncListSignalsRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalListRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* AsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) override; - ::grpc::ClientAsyncResponseReader< ::flyteidl::admin::SignalSetResponse>* PrepareAsyncSetSignalRaw(::grpc::ClientContext* context, const ::flyteidl::admin::SignalSetRequest& request, ::grpc::CompletionQueue* cq) override; - const ::grpc::internal::RpcMethod rpcmethod_GetOrCreateSignal_; - const ::grpc::internal::RpcMethod rpcmethod_ListSignals_; - const ::grpc::internal::RpcMethod rpcmethod_SetSignal_; - }; - static std::unique_ptr NewStub(const std::shared_ptr< ::grpc::ChannelInterface>& channel, const ::grpc::StubOptions& options = ::grpc::StubOptions()); - - class Service : public ::grpc::Service { - public: - Service(); - virtual ~Service(); - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - virtual ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response); - // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve - // a signal, meaning the first call will create the signal and all subsequent calls will - // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore - // is not exposed to mitigate unintended behavior. - // option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { - // description: "Retrieve a signal, creating it if it does not exist." - // }; - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - virtual ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response); - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - virtual ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response); - }; - template - class WithAsyncMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_GetOrCreateSignal() { - ::grpc::Service::MarkMethodAsync(0); - } - ~WithAsyncMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrCreateSignal(::grpc::ServerContext* context, ::flyteidl::admin::SignalGetOrCreateRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::Signal>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_ListSignals() { - ::grpc::Service::MarkMethodAsync(1); - } - ~WithAsyncMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListSignals(::grpc::ServerContext* context, ::flyteidl::admin::SignalListRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::SignalList>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithAsyncMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithAsyncMethod_SetSignal() { - ::grpc::Service::MarkMethodAsync(2); - } - ~WithAsyncMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetSignal(::grpc::ServerContext* context, ::flyteidl::admin::SignalSetRequest* request, ::grpc::ServerAsyncResponseWriter< ::flyteidl::admin::SignalSetResponse>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - typedef WithAsyncMethod_GetOrCreateSignal > > AsyncService; - template - class ExperimentalWithCallbackMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_GetOrCreateSignal() { - ::grpc::Service::experimental().MarkMethodCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::SignalGetOrCreateRequest* request, - ::flyteidl::admin::Signal* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->GetOrCreateSignal(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_GetOrCreateSignal( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>*>( - ::grpc::Service::experimental().GetHandler(0)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_ListSignals() { - ::grpc::Service::experimental().MarkMethodCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::SignalListRequest* request, - ::flyteidl::admin::SignalList* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->ListSignals(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_ListSignals( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>*>( - ::grpc::Service::experimental().GetHandler(1)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithCallbackMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithCallbackMethod_SetSignal() { - ::grpc::Service::experimental().MarkMethodCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>( - [this](::grpc::ServerContext* context, - const ::flyteidl::admin::SignalSetRequest* request, - ::flyteidl::admin::SignalSetResponse* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - return this->SetSignal(context, request, response, controller); - })); - } - void SetMessageAllocatorFor_SetSignal( - ::grpc::experimental::MessageAllocator< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>* allocator) { - static_cast<::grpc::internal::CallbackUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>*>( - ::grpc::Service::experimental().GetHandler(2)) - ->SetMessageAllocator(allocator); - } - ~ExperimentalWithCallbackMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - typedef ExperimentalWithCallbackMethod_GetOrCreateSignal > > ExperimentalCallbackService; - template - class WithGenericMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_GetOrCreateSignal() { - ::grpc::Service::MarkMethodGeneric(0); - } - ~WithGenericMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_ListSignals() { - ::grpc::Service::MarkMethodGeneric(1); - } - ~WithGenericMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithGenericMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithGenericMethod_SetSignal() { - ::grpc::Service::MarkMethodGeneric(2); - } - ~WithGenericMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - }; - template - class WithRawMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_GetOrCreateSignal() { - ::grpc::Service::MarkMethodRaw(0); - } - ~WithRawMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestGetOrCreateSignal(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(0, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_ListSignals() { - ::grpc::Service::MarkMethodRaw(1); - } - ~WithRawMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestListSignals(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(1, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class WithRawMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithRawMethod_SetSignal() { - ::grpc::Service::MarkMethodRaw(2); - } - ~WithRawMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - void RequestSetSignal(::grpc::ServerContext* context, ::grpc::ByteBuffer* request, ::grpc::ServerAsyncResponseWriter< ::grpc::ByteBuffer>* response, ::grpc::CompletionQueue* new_call_cq, ::grpc::ServerCompletionQueue* notification_cq, void *tag) { - ::grpc::Service::RequestAsyncUnary(2, context, request, response, new_call_cq, notification_cq, tag); - } - }; - template - class ExperimentalWithRawCallbackMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_GetOrCreateSignal() { - ::grpc::Service::experimental().MarkMethodRawCallback(0, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->GetOrCreateSignal(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void GetOrCreateSignal(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_ListSignals() { - ::grpc::Service::experimental().MarkMethodRawCallback(1, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->ListSignals(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void ListSignals(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class ExperimentalWithRawCallbackMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - ExperimentalWithRawCallbackMethod_SetSignal() { - ::grpc::Service::experimental().MarkMethodRawCallback(2, - new ::grpc::internal::CallbackUnaryHandler< ::grpc::ByteBuffer, ::grpc::ByteBuffer>( - [this](::grpc::ServerContext* context, - const ::grpc::ByteBuffer* request, - ::grpc::ByteBuffer* response, - ::grpc::experimental::ServerCallbackRpcController* controller) { - this->SetSignal(context, request, response, controller); - })); - } - ~ExperimentalWithRawCallbackMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable synchronous version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - virtual void SetSignal(::grpc::ServerContext* context, const ::grpc::ByteBuffer* request, ::grpc::ByteBuffer* response, ::grpc::experimental::ServerCallbackRpcController* controller) { controller->Finish(::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, "")); } - }; - template - class WithStreamedUnaryMethod_GetOrCreateSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_GetOrCreateSignal() { - ::grpc::Service::MarkMethodStreamed(0, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalGetOrCreateRequest, ::flyteidl::admin::Signal>(std::bind(&WithStreamedUnaryMethod_GetOrCreateSignal::StreamedGetOrCreateSignal, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_GetOrCreateSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status GetOrCreateSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalGetOrCreateRequest* request, ::flyteidl::admin::Signal* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedGetOrCreateSignal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalGetOrCreateRequest,::flyteidl::admin::Signal>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_ListSignals : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_ListSignals() { - ::grpc::Service::MarkMethodStreamed(1, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalListRequest, ::flyteidl::admin::SignalList>(std::bind(&WithStreamedUnaryMethod_ListSignals::StreamedListSignals, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_ListSignals() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status ListSignals(::grpc::ServerContext* context, const ::flyteidl::admin::SignalListRequest* request, ::flyteidl::admin::SignalList* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedListSignals(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalListRequest,::flyteidl::admin::SignalList>* server_unary_streamer) = 0; - }; - template - class WithStreamedUnaryMethod_SetSignal : public BaseClass { - private: - void BaseClassMustBeDerivedFromService(const Service *service) {} - public: - WithStreamedUnaryMethod_SetSignal() { - ::grpc::Service::MarkMethodStreamed(2, - new ::grpc::internal::StreamedUnaryHandler< ::flyteidl::admin::SignalSetRequest, ::flyteidl::admin::SignalSetResponse>(std::bind(&WithStreamedUnaryMethod_SetSignal::StreamedSetSignal, this, std::placeholders::_1, std::placeholders::_2))); - } - ~WithStreamedUnaryMethod_SetSignal() override { - BaseClassMustBeDerivedFromService(this); - } - // disable regular version of this method - ::grpc::Status SetSignal(::grpc::ServerContext* context, const ::flyteidl::admin::SignalSetRequest* request, ::flyteidl::admin::SignalSetResponse* response) override { - abort(); - return ::grpc::Status(::grpc::StatusCode::UNIMPLEMENTED, ""); - } - // replace default version of method with streamed unary - virtual ::grpc::Status StreamedSetSignal(::grpc::ServerContext* context, ::grpc::ServerUnaryStreamer< ::flyteidl::admin::SignalSetRequest,::flyteidl::admin::SignalSetResponse>* server_unary_streamer) = 0; - }; - typedef WithStreamedUnaryMethod_GetOrCreateSignal > > StreamedUnaryService; - typedef Service SplitStreamedService; - typedef WithStreamedUnaryMethod_GetOrCreateSignal > > StreamedService; -}; - -} // namespace service -} // namespace flyteidl - - -#endif // GRPC_flyteidl_2fservice_2fsignal_2eproto__INCLUDED diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc deleted file mode 100644 index a1f4aa5982..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.cc +++ /dev/null @@ -1,85 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/signal.proto - -#include "flyteidl/service/signal.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) -#include - -namespace flyteidl { -namespace service { -} // namespace service -} // namespace flyteidl -void InitDefaults_flyteidl_2fservice_2fsignal_2eproto() { -} - -constexpr ::google::protobuf::Metadata* file_level_metadata_flyteidl_2fservice_2fsignal_2eproto = nullptr; -constexpr ::google::protobuf::EnumDescriptor const** file_level_enum_descriptors_flyteidl_2fservice_2fsignal_2eproto = nullptr; -constexpr ::google::protobuf::ServiceDescriptor const** file_level_service_descriptors_flyteidl_2fservice_2fsignal_2eproto = nullptr; -const ::google::protobuf::uint32 TableStruct_flyteidl_2fservice_2fsignal_2eproto::offsets[1] = {}; -static constexpr ::google::protobuf::internal::MigrationSchema* schemas = nullptr; -static constexpr ::google::protobuf::Message* const* file_default_instances = nullptr; - -::google::protobuf::internal::AssignDescriptorsTable assign_descriptors_table_flyteidl_2fservice_2fsignal_2eproto = { - {}, AddDescriptors_flyteidl_2fservice_2fsignal_2eproto, "flyteidl/service/signal.proto", schemas, - file_default_instances, TableStruct_flyteidl_2fservice_2fsignal_2eproto::offsets, - file_level_metadata_flyteidl_2fservice_2fsignal_2eproto, 0, file_level_enum_descriptors_flyteidl_2fservice_2fsignal_2eproto, file_level_service_descriptors_flyteidl_2fservice_2fsignal_2eproto, -}; - -const char descriptor_table_protodef_flyteidl_2fservice_2fsignal_2eproto[] = - "\n\035flyteidl/service/signal.proto\022\020flyteid" - "l.service\032\034google/api/annotations.proto\032" - "\033flyteidl/admin/signal.proto2\232\003\n\rSignalS" - "ervice\022W\n\021GetOrCreateSignal\022(.flyteidl.a" - "dmin.SignalGetOrCreateRequest\032\026.flyteidl" - ".admin.Signal\"\000\022\301\001\n\013ListSignals\022!.flytei" - "dl.admin.SignalListRequest\032\032.flyteidl.ad" - "min.SignalList\"s\202\323\344\223\002m\022k/api/v1/signals/" - "{workflow_execution_id.project}/{workflo" - "w_execution_id.domain}/{workflow_executi" - "on_id.name}\022l\n\tSetSignal\022 .flyteidl.admi" - "n.SignalSetRequest\032!.flyteidl.admin.Sign" - "alSetResponse\"\032\202\323\344\223\002\024\"\017/api/v1/signals:\001" - "*B\?Z=github.com/flyteorg/flyte/flyteidl/" - "gen/pb-go/flyteidl/serviceb\006proto3" - ; -::google::protobuf::internal::DescriptorTable descriptor_table_flyteidl_2fservice_2fsignal_2eproto = { - false, InitDefaults_flyteidl_2fservice_2fsignal_2eproto, - descriptor_table_protodef_flyteidl_2fservice_2fsignal_2eproto, - "flyteidl/service/signal.proto", &assign_descriptors_table_flyteidl_2fservice_2fsignal_2eproto, 594, -}; - -void AddDescriptors_flyteidl_2fservice_2fsignal_2eproto() { - static constexpr ::google::protobuf::internal::InitFunc deps[2] = - { - ::AddDescriptors_google_2fapi_2fannotations_2eproto, - ::AddDescriptors_flyteidl_2fadmin_2fsignal_2eproto, - }; - ::google::protobuf::internal::AddDescriptors(&descriptor_table_flyteidl_2fservice_2fsignal_2eproto, deps, 2); -} - -// Force running AddDescriptors() at dynamic initialization time. -static bool dynamic_init_dummy_flyteidl_2fservice_2fsignal_2eproto = []() { AddDescriptors_flyteidl_2fservice_2fsignal_2eproto(); return true; }(); -namespace flyteidl { -namespace service { - -// @@protoc_insertion_point(namespace_scope) -} // namespace service -} // namespace flyteidl -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) -#include diff --git a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h b/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h deleted file mode 100644 index 0b0d9c7373..0000000000 --- a/flyteidl/gen/pb-cpp/flyteidl/service/signal.pb.h +++ /dev/null @@ -1,82 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/signal.proto - -#ifndef PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto -#define PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto - -#include -#include - -#include -#if PROTOBUF_VERSION < 3007000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3007000 < PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include "google/api/annotations.pb.h" -#include "flyteidl/admin/signal.pb.h" -// @@protoc_insertion_point(includes) -#include -#define PROTOBUF_INTERNAL_EXPORT_flyteidl_2fservice_2fsignal_2eproto - -// Internal implementation detail -- do not use these members. -struct TableStruct_flyteidl_2fservice_2fsignal_2eproto { - static const ::google::protobuf::internal::ParseTableField entries[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::AuxillaryParseTableField aux[] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::ParseTable schema[1] - PROTOBUF_SECTION_VARIABLE(protodesc_cold); - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors_flyteidl_2fservice_2fsignal_2eproto(); -namespace google { -namespace protobuf { -} // namespace protobuf -} // namespace google -namespace flyteidl { -namespace service { - -// =================================================================== - - -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace service -} // namespace flyteidl - -// @@protoc_insertion_point(global_scope) - -#include -#endif // PROTOBUF_INCLUDED_flyteidl_2fservice_2fsignal_2eproto diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go deleted file mode 100644 index 2e255f5c88..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.pb.go +++ /dev/null @@ -1,833 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/agent.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The state of the execution is used to control its visibility in the UI/CLI. -type State int32 - -const ( - State_RETRYABLE_FAILURE State = 0 - State_PERMANENT_FAILURE State = 1 - State_PENDING State = 2 - State_RUNNING State = 3 - State_SUCCEEDED State = 4 -) - -var State_name = map[int32]string{ - 0: "RETRYABLE_FAILURE", - 1: "PERMANENT_FAILURE", - 2: "PENDING", - 3: "RUNNING", - 4: "SUCCEEDED", -} - -var State_value = map[string]int32{ - "RETRYABLE_FAILURE": 0, - "PERMANENT_FAILURE": 1, - "PENDING": 2, - "RUNNING": 3, - "SUCCEEDED": 4, -} - -func (x State) String() string { - return proto.EnumName(State_name, int32(x)) -} - -func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{0} -} - -// Represents a subset of runtime task execution metadata that are relevant to external plugins. -type TaskExecutionMetadata struct { - // ID of the task execution - TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` - // k8s namespace where the task is executed in - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - // Labels attached to the task execution - Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Annotations attached to the task execution - Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // k8s service account associated with the task execution - K8SServiceAccount string `protobuf:"bytes,5,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` - // Environment variables attached to the task execution - EnvironmentVariables map[string]string `protobuf:"bytes,6,rep,name=environment_variables,json=environmentVariables,proto3" json:"environment_variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionMetadata) Reset() { *m = TaskExecutionMetadata{} } -func (m *TaskExecutionMetadata) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionMetadata) ProtoMessage() {} -func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{0} -} - -func (m *TaskExecutionMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionMetadata.Unmarshal(m, b) -} -func (m *TaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionMetadata.Marshal(b, m, deterministic) -} -func (m *TaskExecutionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionMetadata.Merge(m, src) -} -func (m *TaskExecutionMetadata) XXX_Size() int { - return xxx_messageInfo_TaskExecutionMetadata.Size(m) -} -func (m *TaskExecutionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionMetadata proto.InternalMessageInfo - -func (m *TaskExecutionMetadata) GetTaskExecutionId() *core.TaskExecutionIdentifier { - if m != nil { - return m.TaskExecutionId - } - return nil -} - -func (m *TaskExecutionMetadata) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -func (m *TaskExecutionMetadata) GetLabels() map[string]string { - if m != nil { - return m.Labels - } - return nil -} - -func (m *TaskExecutionMetadata) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations - } - return nil -} - -func (m *TaskExecutionMetadata) GetK8SServiceAccount() string { - if m != nil { - return m.K8SServiceAccount - } - return "" -} - -func (m *TaskExecutionMetadata) GetEnvironmentVariables() map[string]string { - if m != nil { - return m.EnvironmentVariables - } - return nil -} - -// Represents a request structure to create task. -type CreateTaskRequest struct { - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` - // subset of runtime task execution metadata. - TaskExecutionMetadata *TaskExecutionMetadata `protobuf:"bytes,4,opt,name=task_execution_metadata,json=taskExecutionMetadata,proto3" json:"task_execution_metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } -func (m *CreateTaskRequest) String() string { return proto.CompactTextString(m) } -func (*CreateTaskRequest) ProtoMessage() {} -func (*CreateTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{1} -} - -func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTaskRequest.Unmarshal(m, b) -} -func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) -} -func (m *CreateTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTaskRequest.Merge(m, src) -} -func (m *CreateTaskRequest) XXX_Size() int { - return xxx_messageInfo_CreateTaskRequest.Size(m) -} -func (m *CreateTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo - -func (m *CreateTaskRequest) GetInputs() *core.LiteralMap { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *CreateTaskRequest) GetTemplate() *core.TaskTemplate { - if m != nil { - return m.Template - } - return nil -} - -func (m *CreateTaskRequest) GetOutputPrefix() string { - if m != nil { - return m.OutputPrefix - } - return "" -} - -func (m *CreateTaskRequest) GetTaskExecutionMetadata() *TaskExecutionMetadata { - if m != nil { - return m.TaskExecutionMetadata - } - return nil -} - -// Represents a create response structure. -type CreateTaskResponse struct { - // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - // Resource is for synchronous task execution. - // - // Types that are valid to be assigned to Res: - // *CreateTaskResponse_ResourceMeta - // *CreateTaskResponse_Resource - Res isCreateTaskResponse_Res `protobuf_oneof:"res"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} } -func (m *CreateTaskResponse) String() string { return proto.CompactTextString(m) } -func (*CreateTaskResponse) ProtoMessage() {} -func (*CreateTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{2} -} - -func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTaskResponse.Unmarshal(m, b) -} -func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic) -} -func (m *CreateTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTaskResponse.Merge(m, src) -} -func (m *CreateTaskResponse) XXX_Size() int { - return xxx_messageInfo_CreateTaskResponse.Size(m) -} -func (m *CreateTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo - -type isCreateTaskResponse_Res interface { - isCreateTaskResponse_Res() -} - -type CreateTaskResponse_ResourceMeta struct { - ResourceMeta []byte `protobuf:"bytes,1,opt,name=resource_meta,json=resourceMeta,proto3,oneof"` -} - -type CreateTaskResponse_Resource struct { - Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3,oneof"` -} - -func (*CreateTaskResponse_ResourceMeta) isCreateTaskResponse_Res() {} - -func (*CreateTaskResponse_Resource) isCreateTaskResponse_Res() {} - -func (m *CreateTaskResponse) GetRes() isCreateTaskResponse_Res { - if m != nil { - return m.Res - } - return nil -} - -func (m *CreateTaskResponse) GetResourceMeta() []byte { - if x, ok := m.GetRes().(*CreateTaskResponse_ResourceMeta); ok { - return x.ResourceMeta - } - return nil -} - -func (m *CreateTaskResponse) GetResource() *Resource { - if x, ok := m.GetRes().(*CreateTaskResponse_Resource); ok { - return x.Resource - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CreateTaskResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CreateTaskResponse_ResourceMeta)(nil), - (*CreateTaskResponse_Resource)(nil), - } -} - -// A message used to fetch a job resource from flyte agent server. -type GetTaskRequest struct { - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata about the resource to be pass to the agent. - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTaskRequest) Reset() { *m = GetTaskRequest{} } -func (m *GetTaskRequest) String() string { return proto.CompactTextString(m) } -func (*GetTaskRequest) ProtoMessage() {} -func (*GetTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{3} -} - -func (m *GetTaskRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTaskRequest.Unmarshal(m, b) -} -func (m *GetTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTaskRequest.Marshal(b, m, deterministic) -} -func (m *GetTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTaskRequest.Merge(m, src) -} -func (m *GetTaskRequest) XXX_Size() int { - return xxx_messageInfo_GetTaskRequest.Size(m) -} -func (m *GetTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetTaskRequest proto.InternalMessageInfo - -func (m *GetTaskRequest) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *GetTaskRequest) GetResourceMeta() []byte { - if m != nil { - return m.ResourceMeta - } - return nil -} - -// Response to get an individual task resource. -type GetTaskResponse struct { - Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` - // log information for the task execution - LogLinks []*core.TaskLog `protobuf:"bytes,2,rep,name=log_links,json=logLinks,proto3" json:"log_links,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetTaskResponse) Reset() { *m = GetTaskResponse{} } -func (m *GetTaskResponse) String() string { return proto.CompactTextString(m) } -func (*GetTaskResponse) ProtoMessage() {} -func (*GetTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{4} -} - -func (m *GetTaskResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetTaskResponse.Unmarshal(m, b) -} -func (m *GetTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetTaskResponse.Marshal(b, m, deterministic) -} -func (m *GetTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTaskResponse.Merge(m, src) -} -func (m *GetTaskResponse) XXX_Size() int { - return xxx_messageInfo_GetTaskResponse.Size(m) -} -func (m *GetTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetTaskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetTaskResponse proto.InternalMessageInfo - -func (m *GetTaskResponse) GetResource() *Resource { - if m != nil { - return m.Resource - } - return nil -} - -func (m *GetTaskResponse) GetLogLinks() []*core.TaskLog { - if m != nil { - return m.LogLinks - } - return nil -} - -type Resource struct { - // The state of the execution is used to control its visibility in the UI/CLI. - State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.State" json:"state,omitempty"` - // The outputs of the execution. It's typically used by sql task. Agent service will create a - // Structured dataset pointing to the query result table. - // +optional - Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - // A descriptive message for the current state. e.g. waiting for cluster. - Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` - // log information for the task execution. - LogLinks []*core.TaskLog `protobuf:"bytes,4,rep,name=log_links,json=logLinks,proto3" json:"log_links,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Resource) Reset() { *m = Resource{} } -func (m *Resource) String() string { return proto.CompactTextString(m) } -func (*Resource) ProtoMessage() {} -func (*Resource) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{5} -} - -func (m *Resource) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Resource.Unmarshal(m, b) -} -func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Resource.Marshal(b, m, deterministic) -} -func (m *Resource) XXX_Merge(src proto.Message) { - xxx_messageInfo_Resource.Merge(m, src) -} -func (m *Resource) XXX_Size() int { - return xxx_messageInfo_Resource.Size(m) -} -func (m *Resource) XXX_DiscardUnknown() { - xxx_messageInfo_Resource.DiscardUnknown(m) -} - -var xxx_messageInfo_Resource proto.InternalMessageInfo - -func (m *Resource) GetState() State { - if m != nil { - return m.State - } - return State_RETRYABLE_FAILURE -} - -func (m *Resource) GetOutputs() *core.LiteralMap { - if m != nil { - return m.Outputs - } - return nil -} - -func (m *Resource) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *Resource) GetLogLinks() []*core.TaskLog { - if m != nil { - return m.LogLinks - } - return nil -} - -// A message used to delete a task. -type DeleteTaskRequest struct { - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata about the resource to be pass to the agent. - ResourceMeta []byte `protobuf:"bytes,2,opt,name=resource_meta,json=resourceMeta,proto3" json:"resource_meta,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} } -func (m *DeleteTaskRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteTaskRequest) ProtoMessage() {} -func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{6} -} - -func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTaskRequest.Unmarshal(m, b) -} -func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic) -} -func (m *DeleteTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTaskRequest.Merge(m, src) -} -func (m *DeleteTaskRequest) XXX_Size() int { - return xxx_messageInfo_DeleteTaskRequest.Size(m) -} -func (m *DeleteTaskRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo - -func (m *DeleteTaskRequest) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *DeleteTaskRequest) GetResourceMeta() []byte { - if m != nil { - return m.ResourceMeta - } - return nil -} - -// Response to delete a task. -type DeleteTaskResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteTaskResponse) Reset() { *m = DeleteTaskResponse{} } -func (m *DeleteTaskResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteTaskResponse) ProtoMessage() {} -func (*DeleteTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{7} -} - -func (m *DeleteTaskResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTaskResponse.Unmarshal(m, b) -} -func (m *DeleteTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTaskResponse.Marshal(b, m, deterministic) -} -func (m *DeleteTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTaskResponse.Merge(m, src) -} -func (m *DeleteTaskResponse) XXX_Size() int { - return xxx_messageInfo_DeleteTaskResponse.Size(m) -} -func (m *DeleteTaskResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTaskResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTaskResponse proto.InternalMessageInfo - -// A message containing the agent metadata. -type Agent struct { - // Name is the developer-assigned name of the agent. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // SupportedTaskTypes are the types of the tasks that the agent can handle. - SupportedTaskTypes []string `protobuf:"bytes,2,rep,name=supported_task_types,json=supportedTaskTypes,proto3" json:"supported_task_types,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Agent) Reset() { *m = Agent{} } -func (m *Agent) String() string { return proto.CompactTextString(m) } -func (*Agent) ProtoMessage() {} -func (*Agent) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{8} -} - -func (m *Agent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Agent.Unmarshal(m, b) -} -func (m *Agent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Agent.Marshal(b, m, deterministic) -} -func (m *Agent) XXX_Merge(src proto.Message) { - xxx_messageInfo_Agent.Merge(m, src) -} -func (m *Agent) XXX_Size() int { - return xxx_messageInfo_Agent.Size(m) -} -func (m *Agent) XXX_DiscardUnknown() { - xxx_messageInfo_Agent.DiscardUnknown(m) -} - -var xxx_messageInfo_Agent proto.InternalMessageInfo - -func (m *Agent) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Agent) GetSupportedTaskTypes() []string { - if m != nil { - return m.SupportedTaskTypes - } - return nil -} - -// A request to get an agent. -type GetAgentRequest struct { - // The name of the agent. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAgentRequest) Reset() { *m = GetAgentRequest{} } -func (m *GetAgentRequest) String() string { return proto.CompactTextString(m) } -func (*GetAgentRequest) ProtoMessage() {} -func (*GetAgentRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{9} -} - -func (m *GetAgentRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetAgentRequest.Unmarshal(m, b) -} -func (m *GetAgentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetAgentRequest.Marshal(b, m, deterministic) -} -func (m *GetAgentRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAgentRequest.Merge(m, src) -} -func (m *GetAgentRequest) XXX_Size() int { - return xxx_messageInfo_GetAgentRequest.Size(m) -} -func (m *GetAgentRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetAgentRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAgentRequest proto.InternalMessageInfo - -func (m *GetAgentRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// A response containing an agent. -type GetAgentResponse struct { - Agent *Agent `protobuf:"bytes,1,opt,name=agent,proto3" json:"agent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetAgentResponse) Reset() { *m = GetAgentResponse{} } -func (m *GetAgentResponse) String() string { return proto.CompactTextString(m) } -func (*GetAgentResponse) ProtoMessage() {} -func (*GetAgentResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{10} -} - -func (m *GetAgentResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetAgentResponse.Unmarshal(m, b) -} -func (m *GetAgentResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetAgentResponse.Marshal(b, m, deterministic) -} -func (m *GetAgentResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetAgentResponse.Merge(m, src) -} -func (m *GetAgentResponse) XXX_Size() int { - return xxx_messageInfo_GetAgentResponse.Size(m) -} -func (m *GetAgentResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetAgentResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetAgentResponse proto.InternalMessageInfo - -func (m *GetAgentResponse) GetAgent() *Agent { - if m != nil { - return m.Agent - } - return nil -} - -// A request to list all agents. -type ListAgentsRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListAgentsRequest) Reset() { *m = ListAgentsRequest{} } -func (m *ListAgentsRequest) String() string { return proto.CompactTextString(m) } -func (*ListAgentsRequest) ProtoMessage() {} -func (*ListAgentsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{11} -} - -func (m *ListAgentsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListAgentsRequest.Unmarshal(m, b) -} -func (m *ListAgentsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListAgentsRequest.Marshal(b, m, deterministic) -} -func (m *ListAgentsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListAgentsRequest.Merge(m, src) -} -func (m *ListAgentsRequest) XXX_Size() int { - return xxx_messageInfo_ListAgentsRequest.Size(m) -} -func (m *ListAgentsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListAgentsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListAgentsRequest proto.InternalMessageInfo - -// A response containing a list of agents. -type ListAgentsResponse struct { - Agents []*Agent `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListAgentsResponse) Reset() { *m = ListAgentsResponse{} } -func (m *ListAgentsResponse) String() string { return proto.CompactTextString(m) } -func (*ListAgentsResponse) ProtoMessage() {} -func (*ListAgentsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_c434e52bb0028071, []int{12} -} - -func (m *ListAgentsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListAgentsResponse.Unmarshal(m, b) -} -func (m *ListAgentsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListAgentsResponse.Marshal(b, m, deterministic) -} -func (m *ListAgentsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListAgentsResponse.Merge(m, src) -} -func (m *ListAgentsResponse) XXX_Size() int { - return xxx_messageInfo_ListAgentsResponse.Size(m) -} -func (m *ListAgentsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListAgentsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListAgentsResponse proto.InternalMessageInfo - -func (m *ListAgentsResponse) GetAgents() []*Agent { - if m != nil { - return m.Agents - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.admin.State", State_name, State_value) - proto.RegisterType((*TaskExecutionMetadata)(nil), "flyteidl.admin.TaskExecutionMetadata") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntry") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.TaskExecutionMetadata.LabelsEntry") - proto.RegisterType((*CreateTaskRequest)(nil), "flyteidl.admin.CreateTaskRequest") - proto.RegisterType((*CreateTaskResponse)(nil), "flyteidl.admin.CreateTaskResponse") - proto.RegisterType((*GetTaskRequest)(nil), "flyteidl.admin.GetTaskRequest") - proto.RegisterType((*GetTaskResponse)(nil), "flyteidl.admin.GetTaskResponse") - proto.RegisterType((*Resource)(nil), "flyteidl.admin.Resource") - proto.RegisterType((*DeleteTaskRequest)(nil), "flyteidl.admin.DeleteTaskRequest") - proto.RegisterType((*DeleteTaskResponse)(nil), "flyteidl.admin.DeleteTaskResponse") - proto.RegisterType((*Agent)(nil), "flyteidl.admin.Agent") - proto.RegisterType((*GetAgentRequest)(nil), "flyteidl.admin.GetAgentRequest") - proto.RegisterType((*GetAgentResponse)(nil), "flyteidl.admin.GetAgentResponse") - proto.RegisterType((*ListAgentsRequest)(nil), "flyteidl.admin.ListAgentsRequest") - proto.RegisterType((*ListAgentsResponse)(nil), "flyteidl.admin.ListAgentsResponse") -} - -func init() { proto.RegisterFile("flyteidl/admin/agent.proto", fileDescriptor_c434e52bb0028071) } - -var fileDescriptor_c434e52bb0028071 = []byte{ - // 901 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x7f, 0x6f, 0xe3, 0x44, - 0x10, 0x6d, 0x7e, 0x36, 0x99, 0xb4, 0xbd, 0x64, 0xaf, 0x01, 0x37, 0x77, 0xa0, 0xca, 0xa8, 0xa8, - 0xe2, 0x74, 0x09, 0xd7, 0xa2, 0xa3, 0x80, 0xe0, 0x94, 0xb6, 0xa6, 0x57, 0x29, 0x8d, 0xaa, 0x6d, - 0x8a, 0x00, 0x09, 0xa2, 0x4d, 0x32, 0x35, 0x56, 0x1c, 0xdb, 0x78, 0xd7, 0xd5, 0x05, 0xf1, 0x1f, - 0x5f, 0x82, 0xef, 0xc2, 0x97, 0x43, 0xde, 0x5d, 0x3b, 0x71, 0xc8, 0x9d, 0x7a, 0xe2, 0x3f, 0xef, - 0xbc, 0xb7, 0x6f, 0xde, 0xce, 0xcc, 0x66, 0x03, 0xad, 0x3b, 0x77, 0x2e, 0xd0, 0x99, 0xb8, 0x1d, - 0x36, 0x99, 0x39, 0x5e, 0x87, 0xd9, 0xe8, 0x89, 0x76, 0x10, 0xfa, 0xc2, 0x27, 0x3b, 0x09, 0xd6, - 0x96, 0x58, 0xeb, 0x69, 0xca, 0x1d, 0xfb, 0x21, 0x76, 0x5c, 0x47, 0x60, 0xc8, 0x5c, 0xae, 0xd8, - 0xad, 0xbd, 0x2c, 0x2a, 0x18, 0x9f, 0x26, 0xd0, 0x47, 0x59, 0xc8, 0xf1, 0x04, 0x86, 0x77, 0x6c, - 0x8c, 0x1a, 0xfe, 0x78, 0x05, 0x9e, 0xa0, 0x27, 0x9c, 0x3b, 0x07, 0xc3, 0xf5, 0xdb, 0xf1, 0x0d, - 0x8e, 0x23, 0xe1, 0xf8, 0x9e, 0x82, 0xcd, 0xbf, 0x4b, 0xd0, 0x1c, 0x30, 0x3e, 0xb5, 0x92, 0xf8, - 0x15, 0x0a, 0x36, 0x61, 0x82, 0x11, 0x0a, 0x8d, 0xd8, 0xc6, 0x30, 0xdd, 0x31, 0x74, 0x26, 0x46, - 0x6e, 0x3f, 0x77, 0x58, 0x3b, 0xfa, 0xb4, 0x9d, 0x1e, 0x2e, 0x16, 0x6d, 0x67, 0x04, 0x2e, 0x53, - 0x07, 0xf4, 0x91, 0xc8, 0x02, 0xe4, 0x29, 0x54, 0x3d, 0x36, 0x43, 0x1e, 0xb0, 0x31, 0x1a, 0xf9, - 0xfd, 0xdc, 0x61, 0x95, 0x2e, 0x02, 0xe4, 0x12, 0xca, 0x2e, 0x1b, 0xa1, 0xcb, 0x8d, 0xc2, 0x7e, - 0xe1, 0xb0, 0x76, 0xf4, 0xa2, 0x9d, 0xad, 0x61, 0x7b, 0xad, 0xd1, 0x76, 0x4f, 0xee, 0xb1, 0x3c, - 0x11, 0xce, 0xa9, 0x16, 0x20, 0x3f, 0x42, 0x8d, 0x79, 0x9e, 0x2f, 0x58, 0xcc, 0xe4, 0x46, 0x51, - 0xea, 0xbd, 0x7c, 0x98, 0x5e, 0x77, 0xb1, 0x51, 0x89, 0x2e, 0x4b, 0x91, 0x36, 0x3c, 0x9e, 0x9e, - 0xf0, 0x21, 0xc7, 0xf0, 0xde, 0x19, 0xe3, 0x90, 0x8d, 0xc7, 0x7e, 0xe4, 0x09, 0xa3, 0x24, 0x0f, - 0xd3, 0x98, 0x9e, 0xf0, 0x1b, 0x85, 0x74, 0x15, 0x40, 0x04, 0x34, 0xd1, 0xbb, 0x77, 0x42, 0xdf, - 0x9b, 0xa1, 0x27, 0x86, 0xf7, 0x2c, 0x74, 0xd8, 0xc8, 0x45, 0x6e, 0x94, 0xa5, 0xa7, 0x57, 0x0f, - 0xf3, 0x64, 0x2d, 0x24, 0x7e, 0x48, 0x14, 0x94, 0xb9, 0x5d, 0x5c, 0x03, 0xb5, 0xbe, 0x82, 0xda, - 0x52, 0x59, 0x48, 0x1d, 0x0a, 0x53, 0x9c, 0xcb, 0xee, 0x55, 0x69, 0xfc, 0x49, 0x76, 0xa1, 0x74, - 0xcf, 0xdc, 0x28, 0xe9, 0x82, 0x5a, 0x7c, 0x9d, 0x3f, 0xc9, 0xb5, 0xbe, 0x83, 0xfa, 0x6a, 0x05, - 0xde, 0x6b, 0xff, 0x05, 0xec, 0xbd, 0xd5, 0xed, 0xfb, 0x08, 0x99, 0x7f, 0xe5, 0xa1, 0x71, 0x16, - 0x22, 0x13, 0x18, 0xd7, 0x84, 0xe2, 0xef, 0x11, 0x72, 0x41, 0x5e, 0x40, 0xd9, 0xf1, 0x82, 0x48, - 0x70, 0x3d, 0x8b, 0x7b, 0x2b, 0xb3, 0xd8, 0x53, 0x17, 0xeb, 0x8a, 0x05, 0x54, 0x13, 0xc9, 0x97, - 0x50, 0x11, 0x38, 0x0b, 0x5c, 0x26, 0x54, 0x96, 0xda, 0xd1, 0x93, 0x35, 0x03, 0x3c, 0xd0, 0x14, - 0x9a, 0x92, 0xc9, 0x27, 0xb0, 0xed, 0x47, 0x22, 0x88, 0xc4, 0x30, 0x08, 0xf1, 0xce, 0x79, 0x63, - 0x14, 0xa4, 0xc7, 0x2d, 0x15, 0xbc, 0x96, 0x31, 0xf2, 0x0b, 0x7c, 0xb8, 0x72, 0x4f, 0x66, 0xba, - 0x6b, 0x46, 0x51, 0x26, 0x3b, 0x78, 0x50, 0x8b, 0x69, 0x53, 0xac, 0x0b, 0x9b, 0x7f, 0x00, 0x59, - 0x2e, 0x02, 0x0f, 0x7c, 0x8f, 0x23, 0x39, 0x80, 0xed, 0x10, 0xb9, 0x1f, 0x85, 0x63, 0x94, 0xe9, - 0x64, 0x31, 0xb6, 0x5e, 0x6f, 0xd0, 0xad, 0x24, 0x1c, 0x0b, 0x90, 0x97, 0x50, 0x49, 0xd6, 0xfa, - 0xe4, 0xc6, 0xaa, 0x19, 0xaa, 0xf1, 0xd7, 0x1b, 0x34, 0xe5, 0x9e, 0x96, 0xa0, 0x10, 0x22, 0x37, - 0x29, 0xec, 0x5c, 0xa0, 0x58, 0xae, 0xfe, 0x13, 0xa8, 0xca, 0xc3, 0x8a, 0x79, 0x80, 0xba, 0x8b, - 0x95, 0x38, 0x30, 0x98, 0x07, 0xb2, 0x5c, 0x59, 0x53, 0x71, 0xca, 0xad, 0xac, 0x25, 0xf3, 0x4f, - 0x78, 0x94, 0x6a, 0xea, 0xc3, 0x7c, 0xb1, 0xe4, 0x32, 0xf7, 0x6e, 0x97, 0x0b, 0x8f, 0xe4, 0x18, - 0xaa, 0xae, 0x6f, 0x0f, 0x5d, 0xc7, 0x9b, 0x72, 0x23, 0x2f, 0x2f, 0xd3, 0x07, 0x6b, 0xda, 0xda, - 0xf3, 0x6d, 0x5a, 0x71, 0x7d, 0xbb, 0x17, 0xf3, 0xcc, 0x7f, 0x72, 0x50, 0x49, 0xb4, 0xc8, 0x33, - 0x28, 0x71, 0x11, 0x0f, 0x45, 0x9c, 0x74, 0xe7, 0xa8, 0xb9, 0x9a, 0xf4, 0x26, 0x06, 0xa9, 0xe2, - 0x90, 0x63, 0xd8, 0x54, 0x6d, 0xe7, 0xba, 0x92, 0xef, 0x18, 0xbc, 0x84, 0x49, 0x0c, 0xd8, 0x9c, - 0x21, 0xe7, 0xcc, 0x46, 0x3d, 0x3a, 0xc9, 0x32, 0xeb, 0xbe, 0xf8, 0x40, 0xf7, 0xb7, 0xd0, 0x38, - 0x47, 0x17, 0xb3, 0x17, 0xe2, 0xff, 0xb7, 0x64, 0x17, 0xc8, 0xb2, 0xac, 0xea, 0x8a, 0x79, 0x05, - 0xa5, 0x6e, 0xfc, 0x9e, 0x11, 0x02, 0xc5, 0xf8, 0x37, 0x5a, 0x6b, 0xcb, 0x6f, 0xf2, 0x39, 0xec, - 0xf2, 0x28, 0x08, 0xfc, 0x50, 0xe0, 0x64, 0x98, 0xa6, 0x57, 0x7d, 0xa8, 0x52, 0x92, 0x62, 0x03, - 0x6d, 0x84, 0x9b, 0x07, 0xb2, 0xef, 0x52, 0x31, 0x71, 0xbe, 0x46, 0xd8, 0x7c, 0x05, 0xf5, 0x05, - 0x4d, 0xcf, 0xc7, 0x33, 0x28, 0xc9, 0x97, 0x55, 0x0f, 0xc7, 0x7f, 0xfa, 0xa4, 0xd8, 0x8a, 0x63, - 0x3e, 0x86, 0x46, 0xcf, 0xe1, 0x4a, 0x81, 0xeb, 0x4c, 0xe6, 0x19, 0x90, 0xe5, 0xa0, 0xd6, 0x7d, - 0x0e, 0x65, 0xb9, 0x27, 0xfe, 0x29, 0x29, 0xbc, 0x5d, 0x58, 0x93, 0x3e, 0xfb, 0x15, 0x4a, 0x72, - 0x22, 0x48, 0x13, 0x1a, 0xd4, 0x1a, 0xd0, 0x9f, 0xba, 0xa7, 0x3d, 0x6b, 0xf8, 0x7d, 0xf7, 0xb2, - 0x77, 0x4b, 0xad, 0xfa, 0x46, 0x1c, 0xbe, 0xb6, 0xe8, 0x55, 0xb7, 0x6f, 0xf5, 0x07, 0x69, 0x38, - 0x47, 0x6a, 0xb0, 0x79, 0x6d, 0xf5, 0xcf, 0x2f, 0xfb, 0x17, 0xf5, 0x7c, 0xbc, 0xa0, 0xb7, 0xfd, - 0x7e, 0xbc, 0x28, 0x90, 0x6d, 0xa8, 0xde, 0xdc, 0x9e, 0x9d, 0x59, 0xd6, 0xb9, 0x75, 0x5e, 0x2f, - 0x9e, 0x7e, 0xfb, 0xf3, 0x37, 0xb6, 0x23, 0x7e, 0x8b, 0x46, 0xed, 0xb1, 0x3f, 0xeb, 0x48, 0x2b, - 0x7e, 0x68, 0xab, 0x8f, 0x4e, 0xfa, 0x8a, 0xdb, 0xe8, 0x75, 0x82, 0xd1, 0x73, 0xdb, 0xef, 0x64, - 0xff, 0x7c, 0x8c, 0xca, 0xf2, 0x41, 0x3f, 0xfe, 0x37, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x11, 0x18, - 0x7d, 0x95, 0x08, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json deleted file mode 100644 index 64f4adef58..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/agent.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/agent.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go deleted file mode 100644 index d6f0efa314..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.pb.go +++ /dev/null @@ -1,84 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/cluster_assignment.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Encapsulates specifications for routing an execution onto a specific cluster. -type ClusterAssignment struct { - ClusterPoolName string `protobuf:"bytes,3,opt,name=cluster_pool_name,json=clusterPoolName,proto3" json:"cluster_pool_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterAssignment) Reset() { *m = ClusterAssignment{} } -func (m *ClusterAssignment) String() string { return proto.CompactTextString(m) } -func (*ClusterAssignment) ProtoMessage() {} -func (*ClusterAssignment) Descriptor() ([]byte, []int) { - return fileDescriptor_c5699de6e686ea15, []int{0} -} - -func (m *ClusterAssignment) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClusterAssignment.Unmarshal(m, b) -} -func (m *ClusterAssignment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClusterAssignment.Marshal(b, m, deterministic) -} -func (m *ClusterAssignment) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterAssignment.Merge(m, src) -} -func (m *ClusterAssignment) XXX_Size() int { - return xxx_messageInfo_ClusterAssignment.Size(m) -} -func (m *ClusterAssignment) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterAssignment.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterAssignment proto.InternalMessageInfo - -func (m *ClusterAssignment) GetClusterPoolName() string { - if m != nil { - return m.ClusterPoolName - } - return "" -} - -func init() { - proto.RegisterType((*ClusterAssignment)(nil), "flyteidl.admin.ClusterAssignment") -} - -func init() { - proto.RegisterFile("flyteidl/admin/cluster_assignment.proto", fileDescriptor_c5699de6e686ea15) -} - -var fileDescriptor_c5699de6e686ea15 = []byte{ - // 170 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x4f, 0xcb, 0xa9, 0x2c, - 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0x4c, 0xc9, 0xcd, 0xcc, 0xd3, 0x4f, 0xce, 0x29, 0x2d, 0x2e, - 0x49, 0x2d, 0x8a, 0x4f, 0x2c, 0x2e, 0xce, 0x4c, 0xcf, 0xcb, 0x4d, 0xcd, 0x2b, 0xd1, 0x2b, 0x28, - 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x83, 0x29, 0xd4, 0x03, 0x2b, 0x54, 0xf2, 0xe6, 0x12, 0x74, 0x86, - 0xa8, 0x75, 0x84, 0x2b, 0x15, 0xd2, 0xe2, 0x12, 0x84, 0x19, 0x50, 0x90, 0x9f, 0x9f, 0x13, 0x9f, - 0x97, 0x98, 0x9b, 0x2a, 0xc1, 0xac, 0xc0, 0xa8, 0xc1, 0x19, 0xc4, 0x0f, 0x95, 0x08, 0xc8, 0xcf, - 0xcf, 0xf1, 0x4b, 0xcc, 0x4d, 0xf5, 0x62, 0xe1, 0x60, 0x14, 0x60, 0xf2, 0x62, 0xe1, 0x60, 0x12, - 0x60, 0x76, 0xb2, 0x8d, 0xb2, 0x4e, 0xcf, 0x2c, 0xc9, 0x28, 0x4d, 0xd2, 0x4b, 0xce, 0xcf, 0xd5, - 0x07, 0xdb, 0x94, 0x5f, 0x94, 0x0e, 0x61, 0xe8, 0xc3, 0x5d, 0x98, 0x9e, 0x9a, 0xa7, 0x5f, 0x90, - 0xa4, 0x9b, 0x9e, 0xaf, 0x8f, 0xea, 0xe8, 0x24, 0x36, 0xb0, 0x13, 0x8d, 0x01, 0x01, 0x00, 0x00, - 0xff, 0xff, 0x38, 0x72, 0xe8, 0xf0, 0xcd, 0x00, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json deleted file mode 100644 index 4c180efe77..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/cluster_assignment.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/cluster_assignment.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go deleted file mode 100644 index 3703dfb22e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/common.pb.go +++ /dev/null @@ -1,1563 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/common.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The status of the named entity is used to control its visibility in the UI. -type NamedEntityState int32 - -const ( - // By default, all named entities are considered active and under development. - NamedEntityState_NAMED_ENTITY_ACTIVE NamedEntityState = 0 - // Archived named entities are no longer visible in the UI. - NamedEntityState_NAMED_ENTITY_ARCHIVED NamedEntityState = 1 - // System generated entities that aren't explicitly created or managed by a user. - NamedEntityState_SYSTEM_GENERATED NamedEntityState = 2 -) - -var NamedEntityState_name = map[int32]string{ - 0: "NAMED_ENTITY_ACTIVE", - 1: "NAMED_ENTITY_ARCHIVED", - 2: "SYSTEM_GENERATED", -} - -var NamedEntityState_value = map[string]int32{ - "NAMED_ENTITY_ACTIVE": 0, - "NAMED_ENTITY_ARCHIVED": 1, - "SYSTEM_GENERATED": 2, -} - -func (x NamedEntityState) String() string { - return proto.EnumName(NamedEntityState_name, int32(x)) -} - -func (NamedEntityState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{0} -} - -type Sort_Direction int32 - -const ( - // By default, fields are sorted in descending order. - Sort_DESCENDING Sort_Direction = 0 - Sort_ASCENDING Sort_Direction = 1 -) - -var Sort_Direction_name = map[int32]string{ - 0: "DESCENDING", - 1: "ASCENDING", -} - -var Sort_Direction_value = map[string]int32{ - "DESCENDING": 0, - "ASCENDING": 1, -} - -func (x Sort_Direction) String() string { - return proto.EnumName(Sort_Direction_name, int32(x)) -} - -func (Sort_Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{3, 0} -} - -// Encapsulation of fields that identifies a Flyte resource. -// A Flyte resource can be a task, workflow or launch plan. -// A resource can internally have multiple versions and is uniquely identified -// by project, domain, and name. -type NamedEntityIdentifier struct { - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - // The combination of project + domain + name uniquely identifies the resource. - // +optional - in certain contexts - like 'List API', 'Launch plans' - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityIdentifier) Reset() { *m = NamedEntityIdentifier{} } -func (m *NamedEntityIdentifier) String() string { return proto.CompactTextString(m) } -func (*NamedEntityIdentifier) ProtoMessage() {} -func (*NamedEntityIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{0} -} - -func (m *NamedEntityIdentifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityIdentifier.Unmarshal(m, b) -} -func (m *NamedEntityIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityIdentifier.Marshal(b, m, deterministic) -} -func (m *NamedEntityIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityIdentifier.Merge(m, src) -} -func (m *NamedEntityIdentifier) XXX_Size() int { - return xxx_messageInfo_NamedEntityIdentifier.Size(m) -} -func (m *NamedEntityIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityIdentifier proto.InternalMessageInfo - -func (m *NamedEntityIdentifier) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *NamedEntityIdentifier) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *NamedEntityIdentifier) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Additional metadata around a named entity. -type NamedEntityMetadata struct { - // Common description across all versions of the entity - // +optional - Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` - // Shared state across all version of the entity - // At this point in time, only workflow entities can have their state archived. - State NamedEntityState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.NamedEntityState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityMetadata) Reset() { *m = NamedEntityMetadata{} } -func (m *NamedEntityMetadata) String() string { return proto.CompactTextString(m) } -func (*NamedEntityMetadata) ProtoMessage() {} -func (*NamedEntityMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{1} -} - -func (m *NamedEntityMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityMetadata.Unmarshal(m, b) -} -func (m *NamedEntityMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityMetadata.Marshal(b, m, deterministic) -} -func (m *NamedEntityMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityMetadata.Merge(m, src) -} -func (m *NamedEntityMetadata) XXX_Size() int { - return xxx_messageInfo_NamedEntityMetadata.Size(m) -} -func (m *NamedEntityMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityMetadata proto.InternalMessageInfo - -func (m *NamedEntityMetadata) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *NamedEntityMetadata) GetState() NamedEntityState { - if m != nil { - return m.State - } - return NamedEntityState_NAMED_ENTITY_ACTIVE -} - -// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, -// workflow or launch plan. A NamedEntity is exclusively identified by its resource type -// and identifier. -type NamedEntity struct { - // Resource type of the named entity. One of Task, Workflow or LaunchPlan. - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Additional metadata around a named entity. - Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntity) Reset() { *m = NamedEntity{} } -func (m *NamedEntity) String() string { return proto.CompactTextString(m) } -func (*NamedEntity) ProtoMessage() {} -func (*NamedEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{2} -} - -func (m *NamedEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntity.Unmarshal(m, b) -} -func (m *NamedEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntity.Marshal(b, m, deterministic) -} -func (m *NamedEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntity.Merge(m, src) -} -func (m *NamedEntity) XXX_Size() int { - return xxx_messageInfo_NamedEntity.Size(m) -} -func (m *NamedEntity) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntity proto.InternalMessageInfo - -func (m *NamedEntity) GetResourceType() core.ResourceType { - if m != nil { - return m.ResourceType - } - return core.ResourceType_UNSPECIFIED -} - -func (m *NamedEntity) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *NamedEntity) GetMetadata() *NamedEntityMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -// Specifies sort ordering in a list request. -type Sort struct { - // Indicates an attribute to sort the response values. - // +required - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - // Indicates the direction to apply sort key for response values. - // +optional - Direction Sort_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.admin.Sort_Direction" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Sort) Reset() { *m = Sort{} } -func (m *Sort) String() string { return proto.CompactTextString(m) } -func (*Sort) ProtoMessage() {} -func (*Sort) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{3} -} - -func (m *Sort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Sort.Unmarshal(m, b) -} -func (m *Sort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Sort.Marshal(b, m, deterministic) -} -func (m *Sort) XXX_Merge(src proto.Message) { - xxx_messageInfo_Sort.Merge(m, src) -} -func (m *Sort) XXX_Size() int { - return xxx_messageInfo_Sort.Size(m) -} -func (m *Sort) XXX_DiscardUnknown() { - xxx_messageInfo_Sort.DiscardUnknown(m) -} - -var xxx_messageInfo_Sort proto.InternalMessageInfo - -func (m *Sort) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *Sort) GetDirection() Sort_Direction { - if m != nil { - return m.Direction - } - return Sort_DESCENDING -} - -// Represents a request structure to list NamedEntityIdentifiers. -type NamedEntityIdentifierListRequest struct { - // Name of the project that contains the identifiers. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Specifies how listed entities should be sorted in the response. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,6,opt,name=filters,proto3" json:"filters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityIdentifierListRequest) Reset() { *m = NamedEntityIdentifierListRequest{} } -func (m *NamedEntityIdentifierListRequest) String() string { return proto.CompactTextString(m) } -func (*NamedEntityIdentifierListRequest) ProtoMessage() {} -func (*NamedEntityIdentifierListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{4} -} - -func (m *NamedEntityIdentifierListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityIdentifierListRequest.Unmarshal(m, b) -} -func (m *NamedEntityIdentifierListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityIdentifierListRequest.Marshal(b, m, deterministic) -} -func (m *NamedEntityIdentifierListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityIdentifierListRequest.Merge(m, src) -} -func (m *NamedEntityIdentifierListRequest) XXX_Size() int { - return xxx_messageInfo_NamedEntityIdentifierListRequest.Size(m) -} -func (m *NamedEntityIdentifierListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityIdentifierListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityIdentifierListRequest proto.InternalMessageInfo - -func (m *NamedEntityIdentifierListRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *NamedEntityIdentifierListRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *NamedEntityIdentifierListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *NamedEntityIdentifierListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *NamedEntityIdentifierListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -func (m *NamedEntityIdentifierListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -// Represents a request structure to list NamedEntity objects -type NamedEntityListRequest struct { - // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Name of the project that contains the identifiers. - // +required - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,5,opt,name=token,proto3" json:"token,omitempty"` - // Specifies how listed entities should be sorted in the response. - // +optional - SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,7,opt,name=filters,proto3" json:"filters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityListRequest) Reset() { *m = NamedEntityListRequest{} } -func (m *NamedEntityListRequest) String() string { return proto.CompactTextString(m) } -func (*NamedEntityListRequest) ProtoMessage() {} -func (*NamedEntityListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{5} -} - -func (m *NamedEntityListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityListRequest.Unmarshal(m, b) -} -func (m *NamedEntityListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityListRequest.Marshal(b, m, deterministic) -} -func (m *NamedEntityListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityListRequest.Merge(m, src) -} -func (m *NamedEntityListRequest) XXX_Size() int { - return xxx_messageInfo_NamedEntityListRequest.Size(m) -} -func (m *NamedEntityListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityListRequest proto.InternalMessageInfo - -func (m *NamedEntityListRequest) GetResourceType() core.ResourceType { - if m != nil { - return m.ResourceType - } - return core.ResourceType_UNSPECIFIED -} - -func (m *NamedEntityListRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *NamedEntityListRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *NamedEntityListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *NamedEntityListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *NamedEntityListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -func (m *NamedEntityListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -// Represents a list of NamedEntityIdentifiers. -type NamedEntityIdentifierList struct { - // A list of identifiers. - Entities []*NamedEntityIdentifier `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityIdentifierList) Reset() { *m = NamedEntityIdentifierList{} } -func (m *NamedEntityIdentifierList) String() string { return proto.CompactTextString(m) } -func (*NamedEntityIdentifierList) ProtoMessage() {} -func (*NamedEntityIdentifierList) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{6} -} - -func (m *NamedEntityIdentifierList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityIdentifierList.Unmarshal(m, b) -} -func (m *NamedEntityIdentifierList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityIdentifierList.Marshal(b, m, deterministic) -} -func (m *NamedEntityIdentifierList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityIdentifierList.Merge(m, src) -} -func (m *NamedEntityIdentifierList) XXX_Size() int { - return xxx_messageInfo_NamedEntityIdentifierList.Size(m) -} -func (m *NamedEntityIdentifierList) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityIdentifierList.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityIdentifierList proto.InternalMessageInfo - -func (m *NamedEntityIdentifierList) GetEntities() []*NamedEntityIdentifier { - if m != nil { - return m.Entities - } - return nil -} - -func (m *NamedEntityIdentifierList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Represents a list of NamedEntityIdentifiers. -type NamedEntityList struct { - // A list of NamedEntity objects - Entities []*NamedEntity `protobuf:"bytes,1,rep,name=entities,proto3" json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityList) Reset() { *m = NamedEntityList{} } -func (m *NamedEntityList) String() string { return proto.CompactTextString(m) } -func (*NamedEntityList) ProtoMessage() {} -func (*NamedEntityList) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{7} -} - -func (m *NamedEntityList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityList.Unmarshal(m, b) -} -func (m *NamedEntityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityList.Marshal(b, m, deterministic) -} -func (m *NamedEntityList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityList.Merge(m, src) -} -func (m *NamedEntityList) XXX_Size() int { - return xxx_messageInfo_NamedEntityList.Size(m) -} -func (m *NamedEntityList) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityList.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityList proto.InternalMessageInfo - -func (m *NamedEntityList) GetEntities() []*NamedEntity { - if m != nil { - return m.Entities - } - return nil -} - -func (m *NamedEntityList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// A request to retrieve the metadata associated with a NamedEntityIdentifier -type NamedEntityGetRequest struct { - // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // The identifier for the named entity for which to fetch metadata. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityGetRequest) Reset() { *m = NamedEntityGetRequest{} } -func (m *NamedEntityGetRequest) String() string { return proto.CompactTextString(m) } -func (*NamedEntityGetRequest) ProtoMessage() {} -func (*NamedEntityGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{8} -} - -func (m *NamedEntityGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityGetRequest.Unmarshal(m, b) -} -func (m *NamedEntityGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityGetRequest.Marshal(b, m, deterministic) -} -func (m *NamedEntityGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityGetRequest.Merge(m, src) -} -func (m *NamedEntityGetRequest) XXX_Size() int { - return xxx_messageInfo_NamedEntityGetRequest.Size(m) -} -func (m *NamedEntityGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityGetRequest proto.InternalMessageInfo - -func (m *NamedEntityGetRequest) GetResourceType() core.ResourceType { - if m != nil { - return m.ResourceType - } - return core.ResourceType_UNSPECIFIED -} - -func (m *NamedEntityGetRequest) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Request to set the referenced named entity state to the configured value. -type NamedEntityUpdateRequest struct { - // Resource type of the metadata to update - // +required - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Identifier of the metadata to update - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Metadata object to set as the new value - // +required - Metadata *NamedEntityMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityUpdateRequest) Reset() { *m = NamedEntityUpdateRequest{} } -func (m *NamedEntityUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*NamedEntityUpdateRequest) ProtoMessage() {} -func (*NamedEntityUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{9} -} - -func (m *NamedEntityUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityUpdateRequest.Unmarshal(m, b) -} -func (m *NamedEntityUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityUpdateRequest.Marshal(b, m, deterministic) -} -func (m *NamedEntityUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityUpdateRequest.Merge(m, src) -} -func (m *NamedEntityUpdateRequest) XXX_Size() int { - return xxx_messageInfo_NamedEntityUpdateRequest.Size(m) -} -func (m *NamedEntityUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityUpdateRequest proto.InternalMessageInfo - -func (m *NamedEntityUpdateRequest) GetResourceType() core.ResourceType { - if m != nil { - return m.ResourceType - } - return core.ResourceType_UNSPECIFIED -} - -func (m *NamedEntityUpdateRequest) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *NamedEntityUpdateRequest) GetMetadata() *NamedEntityMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -// Purposefully empty, may be populated in the future. -type NamedEntityUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NamedEntityUpdateResponse) Reset() { *m = NamedEntityUpdateResponse{} } -func (m *NamedEntityUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*NamedEntityUpdateResponse) ProtoMessage() {} -func (*NamedEntityUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{10} -} - -func (m *NamedEntityUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NamedEntityUpdateResponse.Unmarshal(m, b) -} -func (m *NamedEntityUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NamedEntityUpdateResponse.Marshal(b, m, deterministic) -} -func (m *NamedEntityUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NamedEntityUpdateResponse.Merge(m, src) -} -func (m *NamedEntityUpdateResponse) XXX_Size() int { - return xxx_messageInfo_NamedEntityUpdateResponse.Size(m) -} -func (m *NamedEntityUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NamedEntityUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_NamedEntityUpdateResponse proto.InternalMessageInfo - -// Shared request structure to fetch a single resource. -// Resources include: Task, Workflow, LaunchPlan -type ObjectGetRequest struct { - // Indicates a unique version of resource. - // +required - 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 *ObjectGetRequest) Reset() { *m = ObjectGetRequest{} } -func (m *ObjectGetRequest) String() string { return proto.CompactTextString(m) } -func (*ObjectGetRequest) ProtoMessage() {} -func (*ObjectGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{11} -} - -func (m *ObjectGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ObjectGetRequest.Unmarshal(m, b) -} -func (m *ObjectGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ObjectGetRequest.Marshal(b, m, deterministic) -} -func (m *ObjectGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ObjectGetRequest.Merge(m, src) -} -func (m *ObjectGetRequest) XXX_Size() int { - return xxx_messageInfo_ObjectGetRequest.Size(m) -} -func (m *ObjectGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ObjectGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ObjectGetRequest proto.InternalMessageInfo - -func (m *ObjectGetRequest) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -// Shared request structure to retrieve a list of resources. -// Resources include: Task, Workflow, LaunchPlan -type ResourceListRequest struct { - // id represents the unique identifier of the resource. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, this server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourceListRequest) Reset() { *m = ResourceListRequest{} } -func (m *ResourceListRequest) String() string { return proto.CompactTextString(m) } -func (*ResourceListRequest) ProtoMessage() {} -func (*ResourceListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{12} -} - -func (m *ResourceListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourceListRequest.Unmarshal(m, b) -} -func (m *ResourceListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourceListRequest.Marshal(b, m, deterministic) -} -func (m *ResourceListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourceListRequest.Merge(m, src) -} -func (m *ResourceListRequest) XXX_Size() int { - return xxx_messageInfo_ResourceListRequest.Size(m) -} -func (m *ResourceListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ResourceListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourceListRequest proto.InternalMessageInfo - -func (m *ResourceListRequest) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *ResourceListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ResourceListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *ResourceListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *ResourceListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -// Defines an email notification specification. -type EmailNotification struct { - // The list of email addresses recipients for this notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EmailNotification) Reset() { *m = EmailNotification{} } -func (m *EmailNotification) String() string { return proto.CompactTextString(m) } -func (*EmailNotification) ProtoMessage() {} -func (*EmailNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{13} -} - -func (m *EmailNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EmailNotification.Unmarshal(m, b) -} -func (m *EmailNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EmailNotification.Marshal(b, m, deterministic) -} -func (m *EmailNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmailNotification.Merge(m, src) -} -func (m *EmailNotification) XXX_Size() int { - return xxx_messageInfo_EmailNotification.Size(m) -} -func (m *EmailNotification) XXX_DiscardUnknown() { - xxx_messageInfo_EmailNotification.DiscardUnknown(m) -} - -var xxx_messageInfo_EmailNotification proto.InternalMessageInfo - -func (m *EmailNotification) GetRecipientsEmail() []string { - if m != nil { - return m.RecipientsEmail - } - return nil -} - -// Defines a pager duty notification specification. -type PagerDutyNotification struct { - // Currently, PagerDuty notifications leverage email to trigger a notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PagerDutyNotification) Reset() { *m = PagerDutyNotification{} } -func (m *PagerDutyNotification) String() string { return proto.CompactTextString(m) } -func (*PagerDutyNotification) ProtoMessage() {} -func (*PagerDutyNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{14} -} - -func (m *PagerDutyNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PagerDutyNotification.Unmarshal(m, b) -} -func (m *PagerDutyNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PagerDutyNotification.Marshal(b, m, deterministic) -} -func (m *PagerDutyNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_PagerDutyNotification.Merge(m, src) -} -func (m *PagerDutyNotification) XXX_Size() int { - return xxx_messageInfo_PagerDutyNotification.Size(m) -} -func (m *PagerDutyNotification) XXX_DiscardUnknown() { - xxx_messageInfo_PagerDutyNotification.DiscardUnknown(m) -} - -var xxx_messageInfo_PagerDutyNotification proto.InternalMessageInfo - -func (m *PagerDutyNotification) GetRecipientsEmail() []string { - if m != nil { - return m.RecipientsEmail - } - return nil -} - -// Defines a slack notification specification. -type SlackNotification struct { - // Currently, Slack notifications leverage email to trigger a notification. - // +required - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SlackNotification) Reset() { *m = SlackNotification{} } -func (m *SlackNotification) String() string { return proto.CompactTextString(m) } -func (*SlackNotification) ProtoMessage() {} -func (*SlackNotification) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{15} -} - -func (m *SlackNotification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SlackNotification.Unmarshal(m, b) -} -func (m *SlackNotification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SlackNotification.Marshal(b, m, deterministic) -} -func (m *SlackNotification) XXX_Merge(src proto.Message) { - xxx_messageInfo_SlackNotification.Merge(m, src) -} -func (m *SlackNotification) XXX_Size() int { - return xxx_messageInfo_SlackNotification.Size(m) -} -func (m *SlackNotification) XXX_DiscardUnknown() { - xxx_messageInfo_SlackNotification.DiscardUnknown(m) -} - -var xxx_messageInfo_SlackNotification proto.InternalMessageInfo - -func (m *SlackNotification) GetRecipientsEmail() []string { - if m != nil { - return m.RecipientsEmail - } - return nil -} - -// Represents a structure for notifications based on execution status. -// The notification content is configured within flyte admin but can be templatized. -// Future iterations could expose configuring notifications with custom content. -type Notification struct { - // A list of phases to which users can associate the notifications to. - // +required - Phases []core.WorkflowExecution_Phase `protobuf:"varint,1,rep,packed,name=phases,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phases,omitempty"` - // The type of notification to trigger. - // +required - // - // Types that are valid to be assigned to Type: - // *Notification_Email - // *Notification_PagerDuty - // *Notification_Slack - Type isNotification_Type `protobuf_oneof:"type"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Notification) Reset() { *m = Notification{} } -func (m *Notification) String() string { return proto.CompactTextString(m) } -func (*Notification) ProtoMessage() {} -func (*Notification) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{16} -} - -func (m *Notification) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Notification.Unmarshal(m, b) -} -func (m *Notification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Notification.Marshal(b, m, deterministic) -} -func (m *Notification) XXX_Merge(src proto.Message) { - xxx_messageInfo_Notification.Merge(m, src) -} -func (m *Notification) XXX_Size() int { - return xxx_messageInfo_Notification.Size(m) -} -func (m *Notification) XXX_DiscardUnknown() { - xxx_messageInfo_Notification.DiscardUnknown(m) -} - -var xxx_messageInfo_Notification proto.InternalMessageInfo - -func (m *Notification) GetPhases() []core.WorkflowExecution_Phase { - if m != nil { - return m.Phases - } - return nil -} - -type isNotification_Type interface { - isNotification_Type() -} - -type Notification_Email struct { - Email *EmailNotification `protobuf:"bytes,2,opt,name=email,proto3,oneof"` -} - -type Notification_PagerDuty struct { - PagerDuty *PagerDutyNotification `protobuf:"bytes,3,opt,name=pager_duty,json=pagerDuty,proto3,oneof"` -} - -type Notification_Slack struct { - Slack *SlackNotification `protobuf:"bytes,4,opt,name=slack,proto3,oneof"` -} - -func (*Notification_Email) isNotification_Type() {} - -func (*Notification_PagerDuty) isNotification_Type() {} - -func (*Notification_Slack) isNotification_Type() {} - -func (m *Notification) GetType() isNotification_Type { - if m != nil { - return m.Type - } - return nil -} - -func (m *Notification) GetEmail() *EmailNotification { - if x, ok := m.GetType().(*Notification_Email); ok { - return x.Email - } - return nil -} - -func (m *Notification) GetPagerDuty() *PagerDutyNotification { - if x, ok := m.GetType().(*Notification_PagerDuty); ok { - return x.PagerDuty - } - return nil -} - -func (m *Notification) GetSlack() *SlackNotification { - if x, ok := m.GetType().(*Notification_Slack); ok { - return x.Slack - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Notification) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Notification_Email)(nil), - (*Notification_PagerDuty)(nil), - (*Notification_Slack)(nil), - } -} - -// Represents a string url and associated metadata used throughout the platform. -// -// Deprecated: Do not use. -type UrlBlob struct { - // Actual url value. - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - // Represents the size of the file accessible at the above url. - Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UrlBlob) Reset() { *m = UrlBlob{} } -func (m *UrlBlob) String() string { return proto.CompactTextString(m) } -func (*UrlBlob) ProtoMessage() {} -func (*UrlBlob) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{17} -} - -func (m *UrlBlob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UrlBlob.Unmarshal(m, b) -} -func (m *UrlBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UrlBlob.Marshal(b, m, deterministic) -} -func (m *UrlBlob) XXX_Merge(src proto.Message) { - xxx_messageInfo_UrlBlob.Merge(m, src) -} -func (m *UrlBlob) XXX_Size() int { - return xxx_messageInfo_UrlBlob.Size(m) -} -func (m *UrlBlob) XXX_DiscardUnknown() { - xxx_messageInfo_UrlBlob.DiscardUnknown(m) -} - -var xxx_messageInfo_UrlBlob proto.InternalMessageInfo - -func (m *UrlBlob) GetUrl() string { - if m != nil { - return m.Url - } - return "" -} - -func (m *UrlBlob) GetBytes() int64 { - if m != nil { - return m.Bytes - } - return 0 -} - -// Label values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge labels defined at registration and execution time. -type Labels struct { - // Map of custom labels to be applied to the execution resource. - Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Labels) Reset() { *m = Labels{} } -func (m *Labels) String() string { return proto.CompactTextString(m) } -func (*Labels) ProtoMessage() {} -func (*Labels) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{18} -} - -func (m *Labels) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Labels.Unmarshal(m, b) -} -func (m *Labels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Labels.Marshal(b, m, deterministic) -} -func (m *Labels) XXX_Merge(src proto.Message) { - xxx_messageInfo_Labels.Merge(m, src) -} -func (m *Labels) XXX_Size() int { - return xxx_messageInfo_Labels.Size(m) -} -func (m *Labels) XXX_DiscardUnknown() { - xxx_messageInfo_Labels.DiscardUnknown(m) -} - -var xxx_messageInfo_Labels proto.InternalMessageInfo - -func (m *Labels) GetValues() map[string]string { - if m != nil { - return m.Values - } - return nil -} - -// Annotation values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge annotations defined at registration and execution time. -type Annotations struct { - // Map of custom annotations to be applied to the execution resource. - Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Annotations) Reset() { *m = Annotations{} } -func (m *Annotations) String() string { return proto.CompactTextString(m) } -func (*Annotations) ProtoMessage() {} -func (*Annotations) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{19} -} - -func (m *Annotations) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Annotations.Unmarshal(m, b) -} -func (m *Annotations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Annotations.Marshal(b, m, deterministic) -} -func (m *Annotations) XXX_Merge(src proto.Message) { - xxx_messageInfo_Annotations.Merge(m, src) -} -func (m *Annotations) XXX_Size() int { - return xxx_messageInfo_Annotations.Size(m) -} -func (m *Annotations) XXX_DiscardUnknown() { - xxx_messageInfo_Annotations.DiscardUnknown(m) -} - -var xxx_messageInfo_Annotations proto.InternalMessageInfo - -func (m *Annotations) GetValues() map[string]string { - if m != nil { - return m.Values - } - return nil -} - -// Environment variable values to be applied to an execution resource. -// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -// to specify how to merge environment variables defined at registration and execution time. -type Envs struct { - // Map of custom environment variables to be applied to the execution resource. - Values []*core.KeyValuePair `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Envs) Reset() { *m = Envs{} } -func (m *Envs) String() string { return proto.CompactTextString(m) } -func (*Envs) ProtoMessage() {} -func (*Envs) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{20} -} - -func (m *Envs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Envs.Unmarshal(m, b) -} -func (m *Envs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Envs.Marshal(b, m, deterministic) -} -func (m *Envs) XXX_Merge(src proto.Message) { - xxx_messageInfo_Envs.Merge(m, src) -} -func (m *Envs) XXX_Size() int { - return xxx_messageInfo_Envs.Size(m) -} -func (m *Envs) XXX_DiscardUnknown() { - xxx_messageInfo_Envs.DiscardUnknown(m) -} - -var xxx_messageInfo_Envs proto.InternalMessageInfo - -func (m *Envs) GetValues() []*core.KeyValuePair { - if m != nil { - return m.Values - } - return nil -} - -// Defines permissions associated with executions created by this launch plan spec. -// Use either of these roles when they have permissions required by your workflow execution. -// Deprecated. -// -// Deprecated: Do not use. -type AuthRole struct { - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AuthRole) Reset() { *m = AuthRole{} } -func (m *AuthRole) String() string { return proto.CompactTextString(m) } -func (*AuthRole) ProtoMessage() {} -func (*AuthRole) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{21} -} - -func (m *AuthRole) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AuthRole.Unmarshal(m, b) -} -func (m *AuthRole) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AuthRole.Marshal(b, m, deterministic) -} -func (m *AuthRole) XXX_Merge(src proto.Message) { - xxx_messageInfo_AuthRole.Merge(m, src) -} -func (m *AuthRole) XXX_Size() int { - return xxx_messageInfo_AuthRole.Size(m) -} -func (m *AuthRole) XXX_DiscardUnknown() { - xxx_messageInfo_AuthRole.DiscardUnknown(m) -} - -var xxx_messageInfo_AuthRole proto.InternalMessageInfo - -func (m *AuthRole) GetAssumableIamRole() string { - if m != nil { - return m.AssumableIamRole - } - return "" -} - -func (m *AuthRole) GetKubernetesServiceAccount() string { - if m != nil { - return m.KubernetesServiceAccount - } - return "" -} - -// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). -// See https://github.com/flyteorg/flyte/issues/211 for more background information. -type RawOutputDataConfig struct { - // Prefix for where offloaded data from user workflows will be written - // e.g. s3://bucket/key or s3://bucket/ - OutputLocationPrefix string `protobuf:"bytes,1,opt,name=output_location_prefix,json=outputLocationPrefix,proto3" json:"output_location_prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RawOutputDataConfig) Reset() { *m = RawOutputDataConfig{} } -func (m *RawOutputDataConfig) String() string { return proto.CompactTextString(m) } -func (*RawOutputDataConfig) ProtoMessage() {} -func (*RawOutputDataConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{22} -} - -func (m *RawOutputDataConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RawOutputDataConfig.Unmarshal(m, b) -} -func (m *RawOutputDataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RawOutputDataConfig.Marshal(b, m, deterministic) -} -func (m *RawOutputDataConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_RawOutputDataConfig.Merge(m, src) -} -func (m *RawOutputDataConfig) XXX_Size() int { - return xxx_messageInfo_RawOutputDataConfig.Size(m) -} -func (m *RawOutputDataConfig) XXX_DiscardUnknown() { - xxx_messageInfo_RawOutputDataConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_RawOutputDataConfig proto.InternalMessageInfo - -func (m *RawOutputDataConfig) GetOutputLocationPrefix() string { - if m != nil { - return m.OutputLocationPrefix - } - return "" -} - -// These URLs are returned as part of node and task execution data requests. -type FlyteURLs struct { - Inputs string `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - Outputs string `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - Deck string `protobuf:"bytes,3,opt,name=deck,proto3" json:"deck,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FlyteURLs) Reset() { *m = FlyteURLs{} } -func (m *FlyteURLs) String() string { return proto.CompactTextString(m) } -func (*FlyteURLs) ProtoMessage() {} -func (*FlyteURLs) Descriptor() ([]byte, []int) { - return fileDescriptor_7c2cf612a185829c, []int{23} -} - -func (m *FlyteURLs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FlyteURLs.Unmarshal(m, b) -} -func (m *FlyteURLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FlyteURLs.Marshal(b, m, deterministic) -} -func (m *FlyteURLs) XXX_Merge(src proto.Message) { - xxx_messageInfo_FlyteURLs.Merge(m, src) -} -func (m *FlyteURLs) XXX_Size() int { - return xxx_messageInfo_FlyteURLs.Size(m) -} -func (m *FlyteURLs) XXX_DiscardUnknown() { - xxx_messageInfo_FlyteURLs.DiscardUnknown(m) -} - -var xxx_messageInfo_FlyteURLs proto.InternalMessageInfo - -func (m *FlyteURLs) GetInputs() string { - if m != nil { - return m.Inputs - } - return "" -} - -func (m *FlyteURLs) GetOutputs() string { - if m != nil { - return m.Outputs - } - return "" -} - -func (m *FlyteURLs) GetDeck() string { - if m != nil { - return m.Deck - } - return "" -} - -func init() { - proto.RegisterEnum("flyteidl.admin.NamedEntityState", NamedEntityState_name, NamedEntityState_value) - proto.RegisterEnum("flyteidl.admin.Sort_Direction", Sort_Direction_name, Sort_Direction_value) - proto.RegisterType((*NamedEntityIdentifier)(nil), "flyteidl.admin.NamedEntityIdentifier") - proto.RegisterType((*NamedEntityMetadata)(nil), "flyteidl.admin.NamedEntityMetadata") - proto.RegisterType((*NamedEntity)(nil), "flyteidl.admin.NamedEntity") - proto.RegisterType((*Sort)(nil), "flyteidl.admin.Sort") - proto.RegisterType((*NamedEntityIdentifierListRequest)(nil), "flyteidl.admin.NamedEntityIdentifierListRequest") - proto.RegisterType((*NamedEntityListRequest)(nil), "flyteidl.admin.NamedEntityListRequest") - proto.RegisterType((*NamedEntityIdentifierList)(nil), "flyteidl.admin.NamedEntityIdentifierList") - proto.RegisterType((*NamedEntityList)(nil), "flyteidl.admin.NamedEntityList") - proto.RegisterType((*NamedEntityGetRequest)(nil), "flyteidl.admin.NamedEntityGetRequest") - proto.RegisterType((*NamedEntityUpdateRequest)(nil), "flyteidl.admin.NamedEntityUpdateRequest") - proto.RegisterType((*NamedEntityUpdateResponse)(nil), "flyteidl.admin.NamedEntityUpdateResponse") - proto.RegisterType((*ObjectGetRequest)(nil), "flyteidl.admin.ObjectGetRequest") - proto.RegisterType((*ResourceListRequest)(nil), "flyteidl.admin.ResourceListRequest") - proto.RegisterType((*EmailNotification)(nil), "flyteidl.admin.EmailNotification") - proto.RegisterType((*PagerDutyNotification)(nil), "flyteidl.admin.PagerDutyNotification") - proto.RegisterType((*SlackNotification)(nil), "flyteidl.admin.SlackNotification") - proto.RegisterType((*Notification)(nil), "flyteidl.admin.Notification") - proto.RegisterType((*UrlBlob)(nil), "flyteidl.admin.UrlBlob") - proto.RegisterType((*Labels)(nil), "flyteidl.admin.Labels") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Labels.ValuesEntry") - proto.RegisterType((*Annotations)(nil), "flyteidl.admin.Annotations") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.Annotations.ValuesEntry") - proto.RegisterType((*Envs)(nil), "flyteidl.admin.Envs") - proto.RegisterType((*AuthRole)(nil), "flyteidl.admin.AuthRole") - proto.RegisterType((*RawOutputDataConfig)(nil), "flyteidl.admin.RawOutputDataConfig") - proto.RegisterType((*FlyteURLs)(nil), "flyteidl.admin.FlyteURLs") -} - -func init() { proto.RegisterFile("flyteidl/admin/common.proto", fileDescriptor_7c2cf612a185829c) } - -var fileDescriptor_7c2cf612a185829c = []byte{ - // 1192 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0xdf, 0x73, 0xdb, 0xc4, - 0x13, 0x8f, 0x1c, 0xc7, 0xa9, 0x37, 0x6d, 0xea, 0x5e, 0xd2, 0x7e, 0xdd, 0xe4, 0x4b, 0x09, 0x62, - 0xf8, 0xd1, 0x0e, 0xb5, 0x67, 0x52, 0x0a, 0xf4, 0x37, 0x4e, 0xac, 0xb6, 0x99, 0xa6, 0x6e, 0x90, - 0xd3, 0x32, 0x65, 0x60, 0xc4, 0x59, 0x3a, 0xbb, 0x47, 0x24, 0x9d, 0xb8, 0x3b, 0xb5, 0x15, 0x2f, - 0x0c, 0xbc, 0xf1, 0xc6, 0x03, 0xff, 0x10, 0x4f, 0x0c, 0xef, 0xfc, 0x41, 0xcc, 0x9d, 0x24, 0x5b, - 0x56, 0xdc, 0x42, 0xd3, 0xce, 0xf0, 0x76, 0x7b, 0xbb, 0x7b, 0xfb, 0xd9, 0xcf, 0xed, 0xae, 0x4e, - 0xb0, 0x3e, 0xf4, 0x13, 0x49, 0xa8, 0xe7, 0xb7, 0xb1, 0x17, 0xd0, 0xb0, 0xed, 0xb2, 0x20, 0x60, - 0x61, 0x2b, 0xe2, 0x4c, 0x32, 0xb4, 0x9c, 0x2b, 0x5b, 0x5a, 0xb9, 0xf6, 0xd6, 0xd8, 0xd8, 0x65, - 0x9c, 0xb4, 0xc9, 0x73, 0xe2, 0xc6, 0x92, 0xe6, 0xe6, 0x6b, 0xe7, 0xa6, 0xd5, 0xd4, 0x23, 0xa1, - 0xa4, 0x43, 0x4a, 0x78, 0xa6, 0xff, 0xff, 0xb4, 0xde, 0xa7, 0x92, 0x70, 0xec, 0x8b, 0x4c, 0xfb, - 0xf6, 0x88, 0xb1, 0x91, 0x4f, 0xda, 0x5a, 0x1a, 0xc4, 0xc3, 0xb6, 0xa4, 0x01, 0x11, 0x12, 0x07, - 0x51, 0x6a, 0x60, 0x7e, 0x03, 0xa7, 0x7b, 0x38, 0x20, 0x9e, 0x15, 0x4a, 0x2a, 0x93, 0x9d, 0xf1, - 0xe9, 0xa8, 0x09, 0x8b, 0x11, 0x67, 0xdf, 0x11, 0x57, 0x36, 0x8d, 0x0d, 0xe3, 0xc3, 0xba, 0x9d, - 0x8b, 0xe8, 0x0c, 0xd4, 0x3c, 0x16, 0x60, 0x1a, 0x36, 0x2b, 0x5a, 0x91, 0x49, 0x08, 0x41, 0x35, - 0xc4, 0x01, 0x69, 0xce, 0xeb, 0x5d, 0xbd, 0x36, 0x19, 0xac, 0x14, 0x8e, 0xbf, 0x4f, 0x24, 0xf6, - 0xb0, 0xc4, 0x68, 0x03, 0x96, 0x3c, 0x22, 0x5c, 0x4e, 0x23, 0x95, 0x69, 0x16, 0xa0, 0xb8, 0x85, - 0x3e, 0x81, 0x05, 0x21, 0xb1, 0x24, 0x3a, 0xc6, 0xf2, 0xe6, 0x46, 0x6b, 0x9a, 0xb5, 0x56, 0xe1, - 0xd4, 0xbe, 0xb2, 0xb3, 0x53, 0x73, 0xf3, 0x0f, 0x03, 0x96, 0x0a, 0x3a, 0xf4, 0x39, 0x9c, 0xe0, - 0x44, 0xb0, 0x98, 0xbb, 0xc4, 0x91, 0x49, 0x44, 0x74, 0xac, 0xe5, 0xcd, 0xf5, 0xc9, 0x79, 0x8a, - 0xb6, 0x96, 0x9d, 0xd9, 0xec, 0x27, 0x11, 0xb1, 0x8f, 0xf3, 0x82, 0x84, 0x2e, 0x43, 0x85, 0x7a, - 0x1a, 0xc6, 0xd2, 0xe6, 0x7b, 0x2f, 0x81, 0x31, 0xe1, 0xce, 0xae, 0x50, 0x0f, 0xdd, 0x82, 0x63, - 0x41, 0x96, 0xae, 0x66, 0x64, 0x69, 0xf3, 0xdd, 0x97, 0x38, 0xe7, 0xcc, 0xd8, 0x63, 0x27, 0xf3, - 0x67, 0x03, 0xaa, 0x7d, 0xc6, 0x25, 0x6a, 0xc0, 0xfc, 0x01, 0x49, 0x32, 0x92, 0xd4, 0x12, 0x5d, - 0x87, 0xba, 0x47, 0x39, 0x71, 0x35, 0x79, 0x29, 0x41, 0xe7, 0xca, 0x87, 0x2b, 0xd7, 0x56, 0x37, - 0xb7, 0xb2, 0x27, 0x0e, 0xe6, 0x05, 0xa8, 0x8f, 0xf7, 0xd1, 0x32, 0x40, 0xd7, 0xea, 0x6f, 0x5b, - 0xbd, 0xee, 0x4e, 0xef, 0x4e, 0x63, 0x0e, 0x9d, 0x80, 0x7a, 0x67, 0x2c, 0x1a, 0xe6, 0x9f, 0x06, - 0x6c, 0xcc, 0xcc, 0x71, 0x97, 0x0a, 0x69, 0x93, 0xef, 0x63, 0x22, 0xe4, 0x11, 0x4a, 0x65, 0x15, - 0x16, 0x7c, 0x1a, 0x50, 0xa9, 0x99, 0x39, 0x61, 0xa7, 0x82, 0xda, 0x95, 0xec, 0x80, 0x84, 0xcd, - 0xaa, 0x36, 0x4e, 0x05, 0x74, 0x11, 0x16, 0x05, 0xe3, 0xd2, 0x19, 0x24, 0xcd, 0x05, 0xcd, 0xe3, - 0xea, 0xac, 0x54, 0xed, 0x9a, 0x32, 0xda, 0x4a, 0x14, 0x98, 0x21, 0xf5, 0x25, 0xe1, 0xa2, 0x59, - 0x4b, 0xc1, 0x64, 0xa2, 0xf9, 0x53, 0x05, 0xce, 0x14, 0x72, 0x29, 0x66, 0xf0, 0xfa, 0x55, 0x52, - 0xe0, 0xa0, 0xf2, 0x22, 0x0e, 0xe6, 0x67, 0x73, 0x50, 0x9d, 0xc9, 0xc1, 0xc2, 0x0b, 0x38, 0xa8, - 0xbd, 0x1a, 0x07, 0x8b, 0xd3, 0x1c, 0x48, 0x38, 0xfb, 0xc2, 0xeb, 0x44, 0x1d, 0x38, 0xa6, 0x64, - 0x49, 0x89, 0x68, 0x1a, 0x1b, 0xf3, 0xff, 0xbe, 0xde, 0xc7, 0x6e, 0x13, 0xf8, 0x95, 0x02, 0x7c, - 0xf3, 0x5b, 0x38, 0x59, 0x22, 0x1e, 0x7d, 0x7a, 0x28, 0xd6, 0xfa, 0x4b, 0x62, 0xfd, 0x63, 0x84, - 0x5f, 0x8d, 0xa9, 0x39, 0x76, 0x87, 0xbc, 0xc1, 0xab, 0x3d, 0xda, 0x00, 0x30, 0xff, 0x32, 0xa0, - 0x59, 0xd0, 0x3e, 0x8c, 0x3c, 0x35, 0xa6, 0xfe, 0x63, 0x54, 0xaf, 0x3f, 0x96, 0xd6, 0xa7, 0x2a, - 0x28, 0xcf, 0x4a, 0x44, 0x2c, 0x14, 0xc4, 0xbc, 0x01, 0x8d, 0x07, 0x03, 0x55, 0xf5, 0x85, 0x0b, - 0x38, 0xaf, 0x81, 0x1a, 0x3a, 0xd6, 0xd9, 0x52, 0x7e, 0x25, 0xca, 0x7e, 0x37, 0x60, 0x25, 0x4f, - 0xb9, 0xd8, 0x9e, 0x97, 0x0b, 0x47, 0xbc, 0x42, 0xae, 0xe3, 0x0e, 0xab, 0xcc, 0xec, 0xb0, 0xf9, - 0x62, 0x87, 0x15, 0x5a, 0xa6, 0x3a, 0xd5, 0x32, 0xaf, 0x38, 0x7f, 0xcc, 0x9b, 0x70, 0xca, 0x0a, - 0x30, 0xf5, 0x7b, 0x4c, 0x21, 0x71, 0xb1, 0x9e, 0xb2, 0xe7, 0xa1, 0xc1, 0x89, 0x4b, 0x23, 0x4a, - 0x42, 0x29, 0x1c, 0xa2, 0xf4, 0xba, 0xea, 0xeb, 0xf6, 0xc9, 0xc9, 0xbe, 0x76, 0x33, 0xb7, 0xe0, - 0xf4, 0x1e, 0x1e, 0x11, 0xde, 0x8d, 0x65, 0x72, 0xd4, 0x33, 0x6e, 0xc2, 0xa9, 0xbe, 0x8f, 0xdd, - 0x83, 0xa3, 0xfa, 0xff, 0x56, 0x81, 0xe3, 0x53, 0xbe, 0x37, 0xa1, 0x16, 0x3d, 0xc1, 0x22, 0xeb, - 0xd5, 0xe5, 0xcd, 0xf7, 0x4b, 0xf7, 0xf8, 0x25, 0xe3, 0x07, 0x43, 0x9f, 0x3d, 0xb3, 0xc6, 0x8f, - 0x97, 0x3d, 0x65, 0x6e, 0x67, 0x5e, 0xe8, 0x0a, 0x2c, 0xa4, 0x01, 0xd3, 0x7a, 0x7d, 0xa7, 0xcc, - 0xe0, 0x21, 0xc6, 0xee, 0xce, 0xd9, 0xa9, 0x07, 0xba, 0x0d, 0x10, 0x29, 0x3e, 0x1c, 0x2f, 0x96, - 0x49, 0x56, 0xb2, 0x87, 0x6a, 0x60, 0x26, 0x63, 0x77, 0xe7, 0xec, 0x7a, 0x94, 0x2b, 0x14, 0x04, - 0xa1, 0x38, 0xd1, 0xd7, 0x3b, 0x03, 0xc2, 0x21, 0xc2, 0x14, 0x04, 0xed, 0xb1, 0x55, 0x83, 0xaa, - 0xea, 0x51, 0xf3, 0x32, 0x2c, 0x3e, 0xe4, 0xfe, 0x96, 0xcf, 0x06, 0xea, 0x9b, 0x1c, 0x73, 0x3f, - 0xff, 0x26, 0xc7, 0xdc, 0x57, 0x65, 0x35, 0x48, 0x24, 0x11, 0x3a, 0xc5, 0x79, 0x3b, 0x15, 0xae, - 0x56, 0x9a, 0x86, 0xf9, 0x23, 0xd4, 0x76, 0xf1, 0x80, 0xf8, 0x02, 0x5d, 0x85, 0xda, 0x53, 0xec, - 0xc7, 0xe3, 0x91, 0x67, 0x96, 0x41, 0xa4, 0x76, 0xad, 0x47, 0xda, 0xc8, 0x0a, 0x25, 0x4f, 0xec, - 0xcc, 0x63, 0xed, 0x0a, 0x2c, 0x15, 0xb6, 0x67, 0x3c, 0x0a, 0x56, 0x61, 0x41, 0x9b, 0xe6, 0x83, - 0x51, 0x0b, 0x57, 0x2b, 0x9f, 0x19, 0xe6, 0x2f, 0x06, 0x2c, 0x75, 0xc2, 0x90, 0x49, 0x9d, 0x97, - 0x40, 0xb7, 0x4a, 0x30, 0x3e, 0x28, 0xc3, 0x28, 0x18, 0xbf, 0x69, 0x2c, 0xd7, 0xa0, 0x6a, 0x85, - 0x4f, 0x05, 0xba, 0x54, 0xc2, 0x50, 0x9e, 0x7c, 0xf7, 0x48, 0xa2, 0x43, 0xec, 0x61, 0xca, 0xf3, - 0xb8, 0xe6, 0x0f, 0x70, 0xac, 0x13, 0xcb, 0x27, 0x36, 0xf3, 0x09, 0xfa, 0x08, 0x10, 0x16, 0x22, - 0x0e, 0xf0, 0xc0, 0x27, 0x0e, 0xc5, 0x81, 0xc3, 0x99, 0x4f, 0x32, 0x0c, 0x8d, 0xb1, 0x66, 0x07, - 0x07, 0xda, 0xfa, 0x3a, 0xac, 0x1d, 0xc4, 0x03, 0xc2, 0x43, 0x22, 0x89, 0x70, 0x04, 0xe1, 0x4f, - 0xa9, 0x4b, 0x1c, 0xec, 0xba, 0x2c, 0x0e, 0xf3, 0x2f, 0x76, 0x73, 0x62, 0xd1, 0x4f, 0x0d, 0x3a, - 0xa9, 0x5e, 0xdf, 0xe2, 0x3d, 0x58, 0xb1, 0xf1, 0xb3, 0x07, 0xb1, 0x8c, 0x62, 0xd9, 0xc5, 0x12, - 0x6f, 0xb3, 0x70, 0x48, 0x47, 0xe8, 0x63, 0x38, 0xc3, 0xf4, 0x9e, 0xe3, 0xb3, 0xb4, 0x6e, 0x9c, - 0x88, 0x93, 0x21, 0x7d, 0x9e, 0x41, 0x59, 0x4d, 0xb5, 0xbb, 0x99, 0x72, 0x4f, 0xeb, 0xcc, 0x2f, - 0xa0, 0x7e, 0x5b, 0xa5, 0xfb, 0xd0, 0xde, 0x15, 0xea, 0x81, 0x40, 0xc3, 0x28, 0x96, 0x22, 0x73, - 0xc9, 0x24, 0x35, 0x92, 0x52, 0x67, 0x91, 0x3f, 0x29, 0x32, 0x51, 0xbd, 0xb4, 0x3d, 0xe2, 0x1e, - 0xe4, 0x2f, 0x6d, 0xb5, 0xbe, 0xf0, 0x35, 0x34, 0xca, 0x6f, 0x62, 0xf4, 0x3f, 0x58, 0xe9, 0x75, - 0xee, 0x5b, 0x5d, 0xc7, 0xea, 0xed, 0xef, 0xec, 0x3f, 0x76, 0x3a, 0xdb, 0xfb, 0x3b, 0x8f, 0xac, - 0xc6, 0x1c, 0x3a, 0x0b, 0xa7, 0xa7, 0x15, 0xf6, 0xf6, 0xdd, 0x9d, 0x47, 0x56, 0xb7, 0x61, 0xa0, - 0x55, 0x68, 0xf4, 0x1f, 0xf7, 0xf7, 0xad, 0xfb, 0xce, 0x1d, 0xab, 0x67, 0xd9, 0x9d, 0x7d, 0xab, - 0xdb, 0xa8, 0x6c, 0xdd, 0xf8, 0xea, 0xda, 0x88, 0xca, 0x27, 0xf1, 0xa0, 0xe5, 0xb2, 0xa0, 0xad, - 0xaf, 0x8a, 0xf1, 0x51, 0xba, 0x68, 0x8f, 0xff, 0x40, 0x46, 0x24, 0x6c, 0x47, 0x83, 0x8b, 0x23, - 0xd6, 0x9e, 0xfe, 0x01, 0x1a, 0xd4, 0xf4, 0xcf, 0xc6, 0xa5, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, - 0x5a, 0xee, 0x56, 0xed, 0x19, 0x0d, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json deleted file mode 100644 index 69acf06451..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/common.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/common.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go deleted file mode 100644 index 2b63707adf..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.pb.go +++ /dev/null @@ -1,476 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/description_entity.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The format of the long description -type DescriptionFormat int32 - -const ( - DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN DescriptionFormat = 0 - DescriptionFormat_DESCRIPTION_FORMAT_MARKDOWN DescriptionFormat = 1 - DescriptionFormat_DESCRIPTION_FORMAT_HTML DescriptionFormat = 2 - // python default documentation - comments is rst - DescriptionFormat_DESCRIPTION_FORMAT_RST DescriptionFormat = 3 -) - -var DescriptionFormat_name = map[int32]string{ - 0: "DESCRIPTION_FORMAT_UNKNOWN", - 1: "DESCRIPTION_FORMAT_MARKDOWN", - 2: "DESCRIPTION_FORMAT_HTML", - 3: "DESCRIPTION_FORMAT_RST", -} - -var DescriptionFormat_value = map[string]int32{ - "DESCRIPTION_FORMAT_UNKNOWN": 0, - "DESCRIPTION_FORMAT_MARKDOWN": 1, - "DESCRIPTION_FORMAT_HTML": 2, - "DESCRIPTION_FORMAT_RST": 3, -} - -func (x DescriptionFormat) String() string { - return proto.EnumName(DescriptionFormat_name, int32(x)) -} - -func (DescriptionFormat) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{0} -} - -// DescriptionEntity contains detailed description for the task/workflow. -// Documentation could provide insight into the algorithms, business use case, etc. -type DescriptionEntity struct { - // id represents the unique identifier of the description entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` - // Full user description with formatting preserved. - LongDescription *Description `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` - // Optional link to source code used to define this entity. - SourceCode *SourceCode `protobuf:"bytes,4,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"` - // User-specified tags. These are arbitrary and can be used for searching - // filtering and discovering tasks. - Tags []string `protobuf:"bytes,5,rep,name=tags,proto3" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptionEntity) Reset() { *m = DescriptionEntity{} } -func (m *DescriptionEntity) String() string { return proto.CompactTextString(m) } -func (*DescriptionEntity) ProtoMessage() {} -func (*DescriptionEntity) Descriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{0} -} - -func (m *DescriptionEntity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptionEntity.Unmarshal(m, b) -} -func (m *DescriptionEntity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptionEntity.Marshal(b, m, deterministic) -} -func (m *DescriptionEntity) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptionEntity.Merge(m, src) -} -func (m *DescriptionEntity) XXX_Size() int { - return xxx_messageInfo_DescriptionEntity.Size(m) -} -func (m *DescriptionEntity) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptionEntity.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptionEntity proto.InternalMessageInfo - -func (m *DescriptionEntity) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *DescriptionEntity) GetShortDescription() string { - if m != nil { - return m.ShortDescription - } - return "" -} - -func (m *DescriptionEntity) GetLongDescription() *Description { - if m != nil { - return m.LongDescription - } - return nil -} - -func (m *DescriptionEntity) GetSourceCode() *SourceCode { - if m != nil { - return m.SourceCode - } - return nil -} - -func (m *DescriptionEntity) GetTags() []string { - if m != nil { - return m.Tags - } - return nil -} - -// Full user description with formatting preserved. This can be rendered -// by clients, such as the console or command line tools with in-tact -// formatting. -type Description struct { - // Types that are valid to be assigned to Content: - // *Description_Value - // *Description_Uri - Content isDescription_Content `protobuf_oneof:"content"` - // Format of the long description - Format DescriptionFormat `protobuf:"varint,3,opt,name=format,proto3,enum=flyteidl.admin.DescriptionFormat" json:"format,omitempty"` - // Optional link to an icon for the entity - IconLink string `protobuf:"bytes,4,opt,name=icon_link,json=iconLink,proto3" json:"icon_link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Description) Reset() { *m = Description{} } -func (m *Description) String() string { return proto.CompactTextString(m) } -func (*Description) ProtoMessage() {} -func (*Description) Descriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{1} -} - -func (m *Description) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Description.Unmarshal(m, b) -} -func (m *Description) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Description.Marshal(b, m, deterministic) -} -func (m *Description) XXX_Merge(src proto.Message) { - xxx_messageInfo_Description.Merge(m, src) -} -func (m *Description) XXX_Size() int { - return xxx_messageInfo_Description.Size(m) -} -func (m *Description) XXX_DiscardUnknown() { - xxx_messageInfo_Description.DiscardUnknown(m) -} - -var xxx_messageInfo_Description proto.InternalMessageInfo - -type isDescription_Content interface { - isDescription_Content() -} - -type Description_Value struct { - Value string `protobuf:"bytes,1,opt,name=value,proto3,oneof"` -} - -type Description_Uri struct { - Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` -} - -func (*Description_Value) isDescription_Content() {} - -func (*Description_Uri) isDescription_Content() {} - -func (m *Description) GetContent() isDescription_Content { - if m != nil { - return m.Content - } - return nil -} - -func (m *Description) GetValue() string { - if x, ok := m.GetContent().(*Description_Value); ok { - return x.Value - } - return "" -} - -func (m *Description) GetUri() string { - if x, ok := m.GetContent().(*Description_Uri); ok { - return x.Uri - } - return "" -} - -func (m *Description) GetFormat() DescriptionFormat { - if m != nil { - return m.Format - } - return DescriptionFormat_DESCRIPTION_FORMAT_UNKNOWN -} - -func (m *Description) GetIconLink() string { - if m != nil { - return m.IconLink - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Description) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Description_Value)(nil), - (*Description_Uri)(nil), - } -} - -// Link to source code used to define this entity -type SourceCode struct { - Link string `protobuf:"bytes,1,opt,name=link,proto3" json:"link,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SourceCode) Reset() { *m = SourceCode{} } -func (m *SourceCode) String() string { return proto.CompactTextString(m) } -func (*SourceCode) ProtoMessage() {} -func (*SourceCode) Descriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{2} -} - -func (m *SourceCode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SourceCode.Unmarshal(m, b) -} -func (m *SourceCode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SourceCode.Marshal(b, m, deterministic) -} -func (m *SourceCode) XXX_Merge(src proto.Message) { - xxx_messageInfo_SourceCode.Merge(m, src) -} -func (m *SourceCode) XXX_Size() int { - return xxx_messageInfo_SourceCode.Size(m) -} -func (m *SourceCode) XXX_DiscardUnknown() { - xxx_messageInfo_SourceCode.DiscardUnknown(m) -} - -var xxx_messageInfo_SourceCode proto.InternalMessageInfo - -func (m *SourceCode) GetLink() string { - if m != nil { - return m.Link - } - return "" -} - -// Represents a list of DescriptionEntities returned from the admin. -// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -type DescriptionEntityList struct { - // A list of DescriptionEntities returned based on the request. - DescriptionEntities []*DescriptionEntity `protobuf:"bytes,1,rep,name=descriptionEntities,proto3" json:"descriptionEntities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptionEntityList) Reset() { *m = DescriptionEntityList{} } -func (m *DescriptionEntityList) String() string { return proto.CompactTextString(m) } -func (*DescriptionEntityList) ProtoMessage() {} -func (*DescriptionEntityList) Descriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{3} -} - -func (m *DescriptionEntityList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptionEntityList.Unmarshal(m, b) -} -func (m *DescriptionEntityList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptionEntityList.Marshal(b, m, deterministic) -} -func (m *DescriptionEntityList) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptionEntityList.Merge(m, src) -} -func (m *DescriptionEntityList) XXX_Size() int { - return xxx_messageInfo_DescriptionEntityList.Size(m) -} -func (m *DescriptionEntityList) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptionEntityList.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptionEntityList proto.InternalMessageInfo - -func (m *DescriptionEntityList) GetDescriptionEntities() []*DescriptionEntity { - if m != nil { - return m.DescriptionEntities - } - return nil -} - -func (m *DescriptionEntityList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Represents a request structure to retrieve a list of DescriptionEntities. -// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -type DescriptionEntityListRequest struct { - // Identifies the specific type of resource that this identifier corresponds to. - ResourceType core.ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // The identifier for the description entity. - // +required - Id *NamedEntityIdentifier `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,5,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering for returned list. - // +optional - SortBy *Sort `protobuf:"bytes,6,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DescriptionEntityListRequest) Reset() { *m = DescriptionEntityListRequest{} } -func (m *DescriptionEntityListRequest) String() string { return proto.CompactTextString(m) } -func (*DescriptionEntityListRequest) ProtoMessage() {} -func (*DescriptionEntityListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2715f55631fe48ea, []int{4} -} - -func (m *DescriptionEntityListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DescriptionEntityListRequest.Unmarshal(m, b) -} -func (m *DescriptionEntityListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DescriptionEntityListRequest.Marshal(b, m, deterministic) -} -func (m *DescriptionEntityListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DescriptionEntityListRequest.Merge(m, src) -} -func (m *DescriptionEntityListRequest) XXX_Size() int { - return xxx_messageInfo_DescriptionEntityListRequest.Size(m) -} -func (m *DescriptionEntityListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DescriptionEntityListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DescriptionEntityListRequest proto.InternalMessageInfo - -func (m *DescriptionEntityListRequest) GetResourceType() core.ResourceType { - if m != nil { - return m.ResourceType - } - return core.ResourceType_UNSPECIFIED -} - -func (m *DescriptionEntityListRequest) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *DescriptionEntityListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *DescriptionEntityListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *DescriptionEntityListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *DescriptionEntityListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.admin.DescriptionFormat", DescriptionFormat_name, DescriptionFormat_value) - proto.RegisterType((*DescriptionEntity)(nil), "flyteidl.admin.DescriptionEntity") - proto.RegisterType((*Description)(nil), "flyteidl.admin.Description") - proto.RegisterType((*SourceCode)(nil), "flyteidl.admin.SourceCode") - proto.RegisterType((*DescriptionEntityList)(nil), "flyteidl.admin.DescriptionEntityList") - proto.RegisterType((*DescriptionEntityListRequest)(nil), "flyteidl.admin.DescriptionEntityListRequest") -} - -func init() { - proto.RegisterFile("flyteidl/admin/description_entity.proto", fileDescriptor_2715f55631fe48ea) -} - -var fileDescriptor_2715f55631fe48ea = []byte{ - // 600 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x5d, 0xd2, 0xb5, 0x23, 0xb7, 0x6c, 0x74, 0x66, 0x8c, 0xd0, 0xa2, 0x51, 0x2a, 0x21, 0x0a, - 0x68, 0x89, 0x34, 0xc4, 0x03, 0x9a, 0x90, 0xd8, 0x57, 0xd5, 0x6a, 0xfd, 0x40, 0x6e, 0x11, 0x12, - 0x2f, 0x51, 0x9b, 0xb8, 0x99, 0xd5, 0x24, 0x2e, 0x8e, 0x8b, 0x94, 0x57, 0xc4, 0x23, 0xfc, 0x03, - 0x7e, 0x2c, 0x8a, 0xdd, 0x76, 0x69, 0x57, 0xed, 0xcd, 0x37, 0xf7, 0xdc, 0x73, 0xef, 0xf1, 0xb9, - 0x31, 0xbc, 0x1e, 0x07, 0x89, 0x20, 0xd4, 0x0b, 0xec, 0xa1, 0x17, 0xd2, 0xc8, 0xf6, 0x48, 0xec, - 0x72, 0x3a, 0x15, 0x94, 0x45, 0x0e, 0x89, 0x04, 0x15, 0x89, 0x35, 0xe5, 0x4c, 0x30, 0xb4, 0xb7, - 0x00, 0x5a, 0x12, 0x58, 0x3e, 0x5a, 0x16, 0xba, 0x8c, 0x13, 0x9b, 0x7a, 0x29, 0x7a, 0x4c, 0x09, - 0x57, 0xf8, 0x72, 0x65, 0x8d, 0xd8, 0x65, 0x61, 0xc8, 0x22, 0x95, 0xac, 0xfd, 0xd6, 0x61, 0xff, - 0xf2, 0xb6, 0xd3, 0x95, 0x6c, 0x84, 0xde, 0x80, 0x4e, 0x3d, 0x53, 0xab, 0x6a, 0xf5, 0xe2, 0xc9, - 0x33, 0x6b, 0xd9, 0x2f, 0xe5, 0xb7, 0x5a, 0x4b, 0x7e, 0xac, 0x53, 0x0f, 0xbd, 0x83, 0xfd, 0xf8, - 0x86, 0x71, 0xe1, 0x64, 0xe6, 0x35, 0xf5, 0xaa, 0x56, 0x37, 0x70, 0x49, 0x26, 0x32, 0xec, 0xa8, - 0x01, 0xa5, 0x80, 0x45, 0xfe, 0x0a, 0x36, 0x27, 0xbb, 0x54, 0xac, 0x55, 0x55, 0x56, 0xa6, 0x0c, - 0x3f, 0x4a, 0x8b, 0xb2, 0x3c, 0xa7, 0x50, 0x8c, 0xd9, 0x8c, 0xbb, 0xc4, 0x71, 0x99, 0x47, 0xcc, - 0x6d, 0x49, 0x51, 0x5e, 0xa7, 0xe8, 0x4b, 0xc8, 0x05, 0xf3, 0x08, 0x86, 0x78, 0x79, 0x46, 0x08, - 0xb6, 0xc5, 0xd0, 0x8f, 0xcd, 0x7c, 0x35, 0x57, 0x37, 0xb0, 0x3c, 0xd7, 0xfe, 0x69, 0x50, 0xcc, - 0x36, 0x38, 0x84, 0xfc, 0xcf, 0x61, 0x30, 0x23, 0xf2, 0x0e, 0x8c, 0xe6, 0x16, 0x56, 0x21, 0x42, - 0x90, 0x9b, 0x71, 0xaa, 0xf4, 0x35, 0xb7, 0x70, 0x1a, 0xa0, 0x8f, 0x50, 0x18, 0x33, 0x1e, 0x0e, - 0x85, 0x94, 0xb2, 0x77, 0xf2, 0xf2, 0x1e, 0x29, 0x0d, 0x09, 0xc4, 0xf3, 0x02, 0x54, 0x01, 0x83, - 0xba, 0x2c, 0x72, 0x02, 0x1a, 0x4d, 0xa4, 0x0a, 0x03, 0x3f, 0x48, 0x3f, 0xb4, 0x69, 0x34, 0x39, - 0x37, 0x60, 0xc7, 0x65, 0x91, 0x20, 0x91, 0xa8, 0x55, 0x01, 0xfa, 0x2b, 0x02, 0x64, 0x81, 0x9c, - 0x0d, 0xcb, 0x73, 0xed, 0x97, 0x06, 0x4f, 0xee, 0xf8, 0xd8, 0xa6, 0xb1, 0x40, 0x7d, 0x78, 0xec, - 0xad, 0x25, 0x28, 0x89, 0x4d, 0xad, 0x9a, 0xab, 0x17, 0xef, 0x9d, 0x55, 0x71, 0xe0, 0x4d, 0xd5, - 0xe8, 0x00, 0xf2, 0x82, 0x4d, 0xc8, 0xc2, 0x69, 0x15, 0xd4, 0xfe, 0xe8, 0xf0, 0x7c, 0xe3, 0x10, - 0x98, 0xfc, 0x98, 0x91, 0x58, 0xa0, 0xcf, 0xb0, 0xcb, 0xc9, 0xdc, 0x39, 0x91, 0x4c, 0xd5, 0xf5, - 0xee, 0x65, 0xcd, 0x97, 0x2b, 0x86, 0xe7, 0x98, 0x41, 0x32, 0x25, 0xf8, 0x21, 0xcf, 0x44, 0xe8, - 0x83, 0xdc, 0x4c, 0x5d, 0x1a, 0xfe, 0x6a, 0x7d, 0xf8, 0xee, 0x30, 0x24, 0x9e, 0xea, 0xba, 0xb6, - 0xa5, 0x07, 0x90, 0x0f, 0x68, 0x48, 0x95, 0x45, 0xbb, 0x58, 0x05, 0xb7, 0x2a, 0xb6, 0x33, 0x2a, - 0x90, 0x09, 0x3b, 0x63, 0x1a, 0x08, 0xc2, 0xd3, 0x15, 0x49, 0xbf, 0x2f, 0x42, 0x74, 0x0c, 0x3b, - 0x71, 0xba, 0xea, 0xa3, 0xc4, 0x2c, 0xc8, 0x09, 0x0e, 0xee, 0xae, 0x1c, 0x17, 0xb8, 0x90, 0x82, - 0xce, 0x93, 0xb7, 0x7f, 0xb5, 0x95, 0x7f, 0x4b, 0x79, 0x8f, 0x8e, 0xa0, 0x7c, 0x79, 0xd5, 0xbf, - 0xc0, 0xad, 0x2f, 0x83, 0x56, 0xaf, 0xeb, 0x34, 0x7a, 0xb8, 0x73, 0x36, 0x70, 0xbe, 0x76, 0xaf, - 0xbb, 0xbd, 0x6f, 0xdd, 0xd2, 0x16, 0x7a, 0x01, 0x95, 0x0d, 0xf9, 0xce, 0x19, 0xbe, 0xbe, 0x4c, - 0x01, 0x1a, 0xaa, 0xc0, 0xd3, 0x0d, 0x80, 0xe6, 0xa0, 0xd3, 0x2e, 0xe9, 0xa8, 0x0c, 0x87, 0x1b, - 0x92, 0xb8, 0x3f, 0x28, 0xe5, 0xce, 0x3f, 0x7d, 0x3f, 0xf5, 0xa9, 0xb8, 0x99, 0x8d, 0x2c, 0x97, - 0x85, 0xb6, 0x9c, 0x9c, 0x71, 0x5f, 0x1d, 0xec, 0xe5, 0x23, 0xe1, 0x93, 0xc8, 0x9e, 0x8e, 0x8e, - 0x7d, 0x66, 0xaf, 0xbe, 0x1b, 0xa3, 0x82, 0x7c, 0x31, 0xde, 0xff, 0x0f, 0x00, 0x00, 0xff, 0xff, - 0x01, 0x53, 0xea, 0xcd, 0xa9, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json deleted file mode 100644 index 78fb4c13d6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/description_entity.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/description_entity.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go deleted file mode 100644 index d718496c80..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/event.pb.go +++ /dev/null @@ -1,478 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/event.proto - -package admin - -import ( - fmt "fmt" - event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Indicates that a sent event was not used to update execution state due to -// the referenced execution already being terminated (and therefore ineligible -// for further state transitions). -type EventErrorAlreadyInTerminalState struct { - // +required - CurrentPhase string `protobuf:"bytes,1,opt,name=current_phase,json=currentPhase,proto3" json:"current_phase,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventErrorAlreadyInTerminalState) Reset() { *m = EventErrorAlreadyInTerminalState{} } -func (m *EventErrorAlreadyInTerminalState) String() string { return proto.CompactTextString(m) } -func (*EventErrorAlreadyInTerminalState) ProtoMessage() {} -func (*EventErrorAlreadyInTerminalState) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{0} -} - -func (m *EventErrorAlreadyInTerminalState) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventErrorAlreadyInTerminalState.Unmarshal(m, b) -} -func (m *EventErrorAlreadyInTerminalState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventErrorAlreadyInTerminalState.Marshal(b, m, deterministic) -} -func (m *EventErrorAlreadyInTerminalState) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventErrorAlreadyInTerminalState.Merge(m, src) -} -func (m *EventErrorAlreadyInTerminalState) XXX_Size() int { - return xxx_messageInfo_EventErrorAlreadyInTerminalState.Size(m) -} -func (m *EventErrorAlreadyInTerminalState) XXX_DiscardUnknown() { - xxx_messageInfo_EventErrorAlreadyInTerminalState.DiscardUnknown(m) -} - -var xxx_messageInfo_EventErrorAlreadyInTerminalState proto.InternalMessageInfo - -func (m *EventErrorAlreadyInTerminalState) GetCurrentPhase() string { - if m != nil { - return m.CurrentPhase - } - return "" -} - -// Indicates an event was rejected because it came from a different cluster than -// is on record as running the execution. -type EventErrorIncompatibleCluster struct { - // The cluster which has been recorded as processing the execution. - // +required - Cluster string `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventErrorIncompatibleCluster) Reset() { *m = EventErrorIncompatibleCluster{} } -func (m *EventErrorIncompatibleCluster) String() string { return proto.CompactTextString(m) } -func (*EventErrorIncompatibleCluster) ProtoMessage() {} -func (*EventErrorIncompatibleCluster) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{1} -} - -func (m *EventErrorIncompatibleCluster) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventErrorIncompatibleCluster.Unmarshal(m, b) -} -func (m *EventErrorIncompatibleCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventErrorIncompatibleCluster.Marshal(b, m, deterministic) -} -func (m *EventErrorIncompatibleCluster) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventErrorIncompatibleCluster.Merge(m, src) -} -func (m *EventErrorIncompatibleCluster) XXX_Size() int { - return xxx_messageInfo_EventErrorIncompatibleCluster.Size(m) -} -func (m *EventErrorIncompatibleCluster) XXX_DiscardUnknown() { - xxx_messageInfo_EventErrorIncompatibleCluster.DiscardUnknown(m) -} - -var xxx_messageInfo_EventErrorIncompatibleCluster proto.InternalMessageInfo - -func (m *EventErrorIncompatibleCluster) GetCluster() string { - if m != nil { - return m.Cluster - } - return "" -} - -// Indicates why a sent event was not used to update execution. -type EventFailureReason struct { - // +required - // - // Types that are valid to be assigned to Reason: - // *EventFailureReason_AlreadyInTerminalState - // *EventFailureReason_IncompatibleCluster - Reason isEventFailureReason_Reason `protobuf_oneof:"reason"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventFailureReason) Reset() { *m = EventFailureReason{} } -func (m *EventFailureReason) String() string { return proto.CompactTextString(m) } -func (*EventFailureReason) ProtoMessage() {} -func (*EventFailureReason) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{2} -} - -func (m *EventFailureReason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventFailureReason.Unmarshal(m, b) -} -func (m *EventFailureReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventFailureReason.Marshal(b, m, deterministic) -} -func (m *EventFailureReason) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventFailureReason.Merge(m, src) -} -func (m *EventFailureReason) XXX_Size() int { - return xxx_messageInfo_EventFailureReason.Size(m) -} -func (m *EventFailureReason) XXX_DiscardUnknown() { - xxx_messageInfo_EventFailureReason.DiscardUnknown(m) -} - -var xxx_messageInfo_EventFailureReason proto.InternalMessageInfo - -type isEventFailureReason_Reason interface { - isEventFailureReason_Reason() -} - -type EventFailureReason_AlreadyInTerminalState struct { - AlreadyInTerminalState *EventErrorAlreadyInTerminalState `protobuf:"bytes,1,opt,name=already_in_terminal_state,json=alreadyInTerminalState,proto3,oneof"` -} - -type EventFailureReason_IncompatibleCluster struct { - IncompatibleCluster *EventErrorIncompatibleCluster `protobuf:"bytes,2,opt,name=incompatible_cluster,json=incompatibleCluster,proto3,oneof"` -} - -func (*EventFailureReason_AlreadyInTerminalState) isEventFailureReason_Reason() {} - -func (*EventFailureReason_IncompatibleCluster) isEventFailureReason_Reason() {} - -func (m *EventFailureReason) GetReason() isEventFailureReason_Reason { - if m != nil { - return m.Reason - } - return nil -} - -func (m *EventFailureReason) GetAlreadyInTerminalState() *EventErrorAlreadyInTerminalState { - if x, ok := m.GetReason().(*EventFailureReason_AlreadyInTerminalState); ok { - return x.AlreadyInTerminalState - } - return nil -} - -func (m *EventFailureReason) GetIncompatibleCluster() *EventErrorIncompatibleCluster { - if x, ok := m.GetReason().(*EventFailureReason_IncompatibleCluster); ok { - return x.IncompatibleCluster - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*EventFailureReason) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*EventFailureReason_AlreadyInTerminalState)(nil), - (*EventFailureReason_IncompatibleCluster)(nil), - } -} - -// Request to send a notification that a workflow execution event has occurred. -type WorkflowExecutionEventRequest struct { - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.WorkflowExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionEventRequest) Reset() { *m = WorkflowExecutionEventRequest{} } -func (m *WorkflowExecutionEventRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionEventRequest) ProtoMessage() {} -func (*WorkflowExecutionEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{3} -} - -func (m *WorkflowExecutionEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionEventRequest.Unmarshal(m, b) -} -func (m *WorkflowExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionEventRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionEventRequest.Merge(m, src) -} -func (m *WorkflowExecutionEventRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionEventRequest.Size(m) -} -func (m *WorkflowExecutionEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionEventRequest proto.InternalMessageInfo - -func (m *WorkflowExecutionEventRequest) GetRequestId() string { - if m != nil { - return m.RequestId - } - return "" -} - -func (m *WorkflowExecutionEventRequest) GetEvent() *event.WorkflowExecutionEvent { - if m != nil { - return m.Event - } - return nil -} - -type WorkflowExecutionEventResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionEventResponse) Reset() { *m = WorkflowExecutionEventResponse{} } -func (m *WorkflowExecutionEventResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionEventResponse) ProtoMessage() {} -func (*WorkflowExecutionEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{4} -} - -func (m *WorkflowExecutionEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionEventResponse.Unmarshal(m, b) -} -func (m *WorkflowExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionEventResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionEventResponse.Merge(m, src) -} -func (m *WorkflowExecutionEventResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionEventResponse.Size(m) -} -func (m *WorkflowExecutionEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionEventResponse proto.InternalMessageInfo - -// Request to send a notification that a node execution event has occurred. -type NodeExecutionEventRequest struct { - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.NodeExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionEventRequest) Reset() { *m = NodeExecutionEventRequest{} } -func (m *NodeExecutionEventRequest) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionEventRequest) ProtoMessage() {} -func (*NodeExecutionEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{5} -} - -func (m *NodeExecutionEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionEventRequest.Unmarshal(m, b) -} -func (m *NodeExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionEventRequest.Marshal(b, m, deterministic) -} -func (m *NodeExecutionEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionEventRequest.Merge(m, src) -} -func (m *NodeExecutionEventRequest) XXX_Size() int { - return xxx_messageInfo_NodeExecutionEventRequest.Size(m) -} -func (m *NodeExecutionEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionEventRequest proto.InternalMessageInfo - -func (m *NodeExecutionEventRequest) GetRequestId() string { - if m != nil { - return m.RequestId - } - return "" -} - -func (m *NodeExecutionEventRequest) GetEvent() *event.NodeExecutionEvent { - if m != nil { - return m.Event - } - return nil -} - -type NodeExecutionEventResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionEventResponse) Reset() { *m = NodeExecutionEventResponse{} } -func (m *NodeExecutionEventResponse) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionEventResponse) ProtoMessage() {} -func (*NodeExecutionEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{6} -} - -func (m *NodeExecutionEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionEventResponse.Unmarshal(m, b) -} -func (m *NodeExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionEventResponse.Marshal(b, m, deterministic) -} -func (m *NodeExecutionEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionEventResponse.Merge(m, src) -} -func (m *NodeExecutionEventResponse) XXX_Size() int { - return xxx_messageInfo_NodeExecutionEventResponse.Size(m) -} -func (m *NodeExecutionEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionEventResponse proto.InternalMessageInfo - -// Request to send a notification that a task execution event has occurred. -type TaskExecutionEventRequest struct { - // Unique ID for this request that can be traced between services - RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"` - // Details about the event that occurred. - Event *event.TaskExecutionEvent `protobuf:"bytes,2,opt,name=event,proto3" json:"event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionEventRequest) Reset() { *m = TaskExecutionEventRequest{} } -func (m *TaskExecutionEventRequest) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionEventRequest) ProtoMessage() {} -func (*TaskExecutionEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{7} -} - -func (m *TaskExecutionEventRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionEventRequest.Unmarshal(m, b) -} -func (m *TaskExecutionEventRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionEventRequest.Marshal(b, m, deterministic) -} -func (m *TaskExecutionEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionEventRequest.Merge(m, src) -} -func (m *TaskExecutionEventRequest) XXX_Size() int { - return xxx_messageInfo_TaskExecutionEventRequest.Size(m) -} -func (m *TaskExecutionEventRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionEventRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionEventRequest proto.InternalMessageInfo - -func (m *TaskExecutionEventRequest) GetRequestId() string { - if m != nil { - return m.RequestId - } - return "" -} - -func (m *TaskExecutionEventRequest) GetEvent() *event.TaskExecutionEvent { - if m != nil { - return m.Event - } - return nil -} - -type TaskExecutionEventResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionEventResponse) Reset() { *m = TaskExecutionEventResponse{} } -func (m *TaskExecutionEventResponse) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionEventResponse) ProtoMessage() {} -func (*TaskExecutionEventResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4581752dea61f248, []int{8} -} - -func (m *TaskExecutionEventResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionEventResponse.Unmarshal(m, b) -} -func (m *TaskExecutionEventResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionEventResponse.Marshal(b, m, deterministic) -} -func (m *TaskExecutionEventResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionEventResponse.Merge(m, src) -} -func (m *TaskExecutionEventResponse) XXX_Size() int { - return xxx_messageInfo_TaskExecutionEventResponse.Size(m) -} -func (m *TaskExecutionEventResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionEventResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionEventResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*EventErrorAlreadyInTerminalState)(nil), "flyteidl.admin.EventErrorAlreadyInTerminalState") - proto.RegisterType((*EventErrorIncompatibleCluster)(nil), "flyteidl.admin.EventErrorIncompatibleCluster") - proto.RegisterType((*EventFailureReason)(nil), "flyteidl.admin.EventFailureReason") - proto.RegisterType((*WorkflowExecutionEventRequest)(nil), "flyteidl.admin.WorkflowExecutionEventRequest") - proto.RegisterType((*WorkflowExecutionEventResponse)(nil), "flyteidl.admin.WorkflowExecutionEventResponse") - proto.RegisterType((*NodeExecutionEventRequest)(nil), "flyteidl.admin.NodeExecutionEventRequest") - proto.RegisterType((*NodeExecutionEventResponse)(nil), "flyteidl.admin.NodeExecutionEventResponse") - proto.RegisterType((*TaskExecutionEventRequest)(nil), "flyteidl.admin.TaskExecutionEventRequest") - proto.RegisterType((*TaskExecutionEventResponse)(nil), "flyteidl.admin.TaskExecutionEventResponse") -} - -func init() { proto.RegisterFile("flyteidl/admin/event.proto", fileDescriptor_4581752dea61f248) } - -var fileDescriptor_4581752dea61f248 = []byte{ - // 406 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xdf, 0x6b, 0xdb, 0x30, - 0x10, 0xc7, 0x93, 0xc1, 0xb2, 0xe5, 0xf6, 0xe3, 0xc1, 0x1b, 0x23, 0x09, 0xcb, 0x08, 0x1e, 0x8c, - 0xbd, 0xc4, 0x1e, 0xdb, 0xcb, 0x4a, 0xdb, 0x87, 0xa6, 0xa4, 0x4d, 0x5e, 0x4a, 0x71, 0x03, 0x85, - 0xbe, 0x18, 0xd9, 0xbe, 0x38, 0x22, 0xb2, 0xe4, 0x4a, 0x72, 0xdb, 0x40, 0xff, 0xe9, 0xfe, 0x07, - 0x25, 0xb2, 0x53, 0x27, 0xad, 0x43, 0xa1, 0xd0, 0xb7, 0xd3, 0xe9, 0xee, 0x7b, 0x9f, 0xaf, 0xc4, - 0x41, 0x67, 0xca, 0x16, 0x1a, 0x69, 0xc4, 0x5c, 0x12, 0x25, 0x94, 0xbb, 0x78, 0x85, 0x5c, 0x3b, - 0xa9, 0x14, 0x5a, 0x58, 0x9f, 0x57, 0x77, 0x8e, 0xb9, 0xeb, 0x94, 0xb5, 0xa6, 0x6a, 0xbd, 0xd6, - 0x3e, 0x86, 0xde, 0x70, 0x79, 0x1c, 0x4a, 0x29, 0xe4, 0x01, 0x93, 0x48, 0xa2, 0xc5, 0x98, 0x4f, - 0x50, 0x26, 0x94, 0x13, 0x76, 0xa6, 0x89, 0x46, 0xeb, 0x27, 0x7c, 0x0a, 0x33, 0x29, 0x91, 0x6b, - 0x3f, 0x9d, 0x11, 0x85, 0xad, 0x7a, 0xaf, 0xfe, 0xbb, 0xe9, 0x7d, 0x2c, 0x92, 0xa7, 0xcb, 0x9c, - 0xbd, 0x03, 0xdd, 0x52, 0x68, 0xcc, 0x43, 0x91, 0xa4, 0x44, 0xd3, 0x80, 0xe1, 0x21, 0xcb, 0x94, - 0x46, 0x69, 0xb5, 0xe0, 0x5d, 0x98, 0x87, 0x45, 0xff, 0xea, 0x68, 0xdf, 0xd5, 0xc1, 0x32, 0xbd, - 0x47, 0x84, 0xb2, 0x4c, 0xa2, 0x87, 0x44, 0x09, 0x6e, 0x25, 0xd0, 0x26, 0x39, 0x90, 0x4f, 0xb9, - 0xaf, 0x0b, 0x24, 0x5f, 0x2d, 0x99, 0x8c, 0xc4, 0x87, 0xbf, 0x7f, 0x9c, 0x4d, 0xab, 0xce, 0x73, - 0x5e, 0x46, 0x35, 0xef, 0x1b, 0xa9, 0x76, 0x19, 0xc0, 0x57, 0xba, 0x86, 0xed, 0xaf, 0x60, 0xdf, - 0x98, 0x49, 0xfd, 0xed, 0x93, 0x2a, 0xcc, 0x8e, 0x6a, 0xde, 0x17, 0xfa, 0x34, 0x3d, 0x78, 0x0f, - 0x0d, 0x69, 0xcc, 0xd9, 0xb7, 0xd0, 0x3d, 0x17, 0x72, 0x3e, 0x65, 0xe2, 0x7a, 0x78, 0x83, 0x61, - 0xa6, 0xa9, 0xe0, 0x46, 0xd2, 0xc3, 0xcb, 0x0c, 0x95, 0xb6, 0xba, 0x00, 0x32, 0x0f, 0x7d, 0x1a, - 0x15, 0x2f, 0xd6, 0x2c, 0x32, 0xe3, 0xc8, 0xda, 0x83, 0xb7, 0xe6, 0x1b, 0x0b, 0xbc, 0x5f, 0x25, - 0x5e, 0xfe, 0xbb, 0x5b, 0xc4, 0xf3, 0x26, 0xbb, 0x07, 0x3f, 0xb6, 0x4d, 0x57, 0xa9, 0xe0, 0x0a, - 0x6d, 0x0d, 0xed, 0x13, 0x11, 0xe1, 0x8b, 0xd8, 0xfe, 0x6f, 0xb2, 0xd9, 0x8f, 0xd9, 0x2a, 0x84, - 0x0b, 0xae, 0xef, 0xd0, 0xa9, 0x9a, 0x5a, 0x32, 0x4d, 0x88, 0x9a, 0xbf, 0x0a, 0x53, 0x85, 0x70, - 0xc9, 0x54, 0x35, 0x35, 0x67, 0x1a, 0xec, 0x5f, 0xec, 0xc6, 0x54, 0xcf, 0xb2, 0xc0, 0x09, 0x45, - 0xe2, 0x1a, 0x51, 0x21, 0xe3, 0x3c, 0x70, 0x1f, 0xf6, 0x2e, 0x46, 0xee, 0xa6, 0x41, 0x3f, 0x16, - 0xee, 0xe6, 0xda, 0x06, 0x0d, 0xb3, 0x85, 0xff, 0xee, 0x03, 0x00, 0x00, 0xff, 0xff, 0xea, 0x29, - 0x98, 0x7c, 0xcf, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json deleted file mode 100644 index aca0ee85d4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/event.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/event.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go deleted file mode 100644 index 6ee9c5dc15..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/execution.pb.go +++ /dev/null @@ -1,1860 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/execution.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The state of the execution is used to control its visibility in the UI/CLI. -type ExecutionState int32 - -const ( - // By default, all executions are considered active. - ExecutionState_EXECUTION_ACTIVE ExecutionState = 0 - // Archived executions are no longer visible in the UI. - ExecutionState_EXECUTION_ARCHIVED ExecutionState = 1 -) - -var ExecutionState_name = map[int32]string{ - 0: "EXECUTION_ACTIVE", - 1: "EXECUTION_ARCHIVED", -} - -var ExecutionState_value = map[string]int32{ - "EXECUTION_ACTIVE": 0, - "EXECUTION_ARCHIVED": 1, -} - -func (x ExecutionState) String() string { - return proto.EnumName(ExecutionState_name, int32(x)) -} - -func (ExecutionState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{0} -} - -// The method by which this execution was launched. -type ExecutionMetadata_ExecutionMode int32 - -const ( - // The default execution mode, MANUAL implies that an execution was launched by an individual. - ExecutionMetadata_MANUAL ExecutionMetadata_ExecutionMode = 0 - // A schedule triggered this execution launch. - ExecutionMetadata_SCHEDULED ExecutionMetadata_ExecutionMode = 1 - // A system process was responsible for launching this execution rather an individual. - ExecutionMetadata_SYSTEM ExecutionMetadata_ExecutionMode = 2 - // This execution was launched with identical inputs as a previous execution. - ExecutionMetadata_RELAUNCH ExecutionMetadata_ExecutionMode = 3 - // This execution was triggered by another execution. - ExecutionMetadata_CHILD_WORKFLOW ExecutionMetadata_ExecutionMode = 4 - // This execution was recovered from another execution. - ExecutionMetadata_RECOVERED ExecutionMetadata_ExecutionMode = 5 -) - -var ExecutionMetadata_ExecutionMode_name = map[int32]string{ - 0: "MANUAL", - 1: "SCHEDULED", - 2: "SYSTEM", - 3: "RELAUNCH", - 4: "CHILD_WORKFLOW", - 5: "RECOVERED", -} - -var ExecutionMetadata_ExecutionMode_value = map[string]int32{ - "MANUAL": 0, - "SCHEDULED": 1, - "SYSTEM": 2, - "RELAUNCH": 3, - "CHILD_WORKFLOW": 4, - "RECOVERED": 5, -} - -func (x ExecutionMetadata_ExecutionMode) String() string { - return proto.EnumName(ExecutionMetadata_ExecutionMode_name, int32(x)) -} - -func (ExecutionMetadata_ExecutionMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{11, 0} -} - -// Request to launch an execution with the given project, domain and optionally-assigned name. -type ExecutionCreateRequest struct { - // Name of the project the execution belongs to. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the execution belongs to. - // A domain can be considered as a subset within a specific project. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Additional fields necessary to launch the execution. - // +optional - Spec *ExecutionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,5,opt,name=inputs,proto3" json:"inputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionCreateRequest) Reset() { *m = ExecutionCreateRequest{} } -func (m *ExecutionCreateRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionCreateRequest) ProtoMessage() {} -func (*ExecutionCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{0} -} - -func (m *ExecutionCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionCreateRequest.Unmarshal(m, b) -} -func (m *ExecutionCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionCreateRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionCreateRequest.Merge(m, src) -} -func (m *ExecutionCreateRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionCreateRequest.Size(m) -} -func (m *ExecutionCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionCreateRequest proto.InternalMessageInfo - -func (m *ExecutionCreateRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ExecutionCreateRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ExecutionCreateRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ExecutionCreateRequest) GetSpec() *ExecutionSpec { - if m != nil { - return m.Spec - } - return nil -} - -func (m *ExecutionCreateRequest) GetInputs() *core.LiteralMap { - if m != nil { - return m.Inputs - } - return nil -} - -// Request to relaunch the referenced execution. -type ExecutionRelaunchRequest struct { - // Identifier of the workflow execution to relaunch. - // +required - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User provided value for the relaunched execution. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,4,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionRelaunchRequest) Reset() { *m = ExecutionRelaunchRequest{} } -func (m *ExecutionRelaunchRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionRelaunchRequest) ProtoMessage() {} -func (*ExecutionRelaunchRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{1} -} - -func (m *ExecutionRelaunchRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionRelaunchRequest.Unmarshal(m, b) -} -func (m *ExecutionRelaunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionRelaunchRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionRelaunchRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionRelaunchRequest.Merge(m, src) -} -func (m *ExecutionRelaunchRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionRelaunchRequest.Size(m) -} -func (m *ExecutionRelaunchRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionRelaunchRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionRelaunchRequest proto.InternalMessageInfo - -func (m *ExecutionRelaunchRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *ExecutionRelaunchRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ExecutionRelaunchRequest) GetOverwriteCache() bool { - if m != nil { - return m.OverwriteCache - } - return false -} - -// Request to recover the referenced execution. -type ExecutionRecoverRequest struct { - // Identifier of the workflow execution to recover. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User provided value for the recovered execution. - // If none is provided the system will generate a unique string. - // +optional - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionRecoverRequest) Reset() { *m = ExecutionRecoverRequest{} } -func (m *ExecutionRecoverRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionRecoverRequest) ProtoMessage() {} -func (*ExecutionRecoverRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{2} -} - -func (m *ExecutionRecoverRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionRecoverRequest.Unmarshal(m, b) -} -func (m *ExecutionRecoverRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionRecoverRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionRecoverRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionRecoverRequest.Merge(m, src) -} -func (m *ExecutionRecoverRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionRecoverRequest.Size(m) -} -func (m *ExecutionRecoverRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionRecoverRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionRecoverRequest proto.InternalMessageInfo - -func (m *ExecutionRecoverRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *ExecutionRecoverRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ExecutionRecoverRequest) GetMetadata() *ExecutionMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -// The unique identifier for a successfully created execution. -// If the name was *not* specified in the create request, this identifier will include a generated name. -type ExecutionCreateResponse struct { - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionCreateResponse) Reset() { *m = ExecutionCreateResponse{} } -func (m *ExecutionCreateResponse) String() string { return proto.CompactTextString(m) } -func (*ExecutionCreateResponse) ProtoMessage() {} -func (*ExecutionCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{3} -} - -func (m *ExecutionCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionCreateResponse.Unmarshal(m, b) -} -func (m *ExecutionCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionCreateResponse.Marshal(b, m, deterministic) -} -func (m *ExecutionCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionCreateResponse.Merge(m, src) -} -func (m *ExecutionCreateResponse) XXX_Size() int { - return xxx_messageInfo_ExecutionCreateResponse.Size(m) -} -func (m *ExecutionCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionCreateResponse proto.InternalMessageInfo - -func (m *ExecutionCreateResponse) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// A message used to fetch a single workflow execution entity. -// See :ref:`ref_flyteidl.admin.Execution` for more details -type WorkflowExecutionGetRequest struct { - // Uniquely identifies an individual workflow execution. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionGetRequest) Reset() { *m = WorkflowExecutionGetRequest{} } -func (m *WorkflowExecutionGetRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionGetRequest) ProtoMessage() {} -func (*WorkflowExecutionGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{4} -} - -func (m *WorkflowExecutionGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionGetRequest.Unmarshal(m, b) -} -func (m *WorkflowExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionGetRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionGetRequest.Merge(m, src) -} -func (m *WorkflowExecutionGetRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionGetRequest.Size(m) -} -func (m *WorkflowExecutionGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionGetRequest proto.InternalMessageInfo - -func (m *WorkflowExecutionGetRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// A workflow execution represents an instantiated workflow, including all inputs and additional -// metadata as well as computed results included state, outputs, and duration-based attributes. -// Used as a response object used in Get and List execution requests. -type Execution struct { - // Unique identifier of the workflow execution. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided configuration and inputs for launching the execution. - Spec *ExecutionSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // Execution results. - Closure *ExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Execution) Reset() { *m = Execution{} } -func (m *Execution) String() string { return proto.CompactTextString(m) } -func (*Execution) ProtoMessage() {} -func (*Execution) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{5} -} - -func (m *Execution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Execution.Unmarshal(m, b) -} -func (m *Execution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Execution.Marshal(b, m, deterministic) -} -func (m *Execution) XXX_Merge(src proto.Message) { - xxx_messageInfo_Execution.Merge(m, src) -} -func (m *Execution) XXX_Size() int { - return xxx_messageInfo_Execution.Size(m) -} -func (m *Execution) XXX_DiscardUnknown() { - xxx_messageInfo_Execution.DiscardUnknown(m) -} - -var xxx_messageInfo_Execution proto.InternalMessageInfo - -func (m *Execution) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *Execution) GetSpec() *ExecutionSpec { - if m != nil { - return m.Spec - } - return nil -} - -func (m *Execution) GetClosure() *ExecutionClosure { - if m != nil { - return m.Closure - } - return nil -} - -// Used as a response for request to list executions. -// See :ref:`ref_flyteidl.admin.Execution` for more details -type ExecutionList struct { - Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionList) Reset() { *m = ExecutionList{} } -func (m *ExecutionList) String() string { return proto.CompactTextString(m) } -func (*ExecutionList) ProtoMessage() {} -func (*ExecutionList) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{6} -} - -func (m *ExecutionList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionList.Unmarshal(m, b) -} -func (m *ExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionList.Marshal(b, m, deterministic) -} -func (m *ExecutionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionList.Merge(m, src) -} -func (m *ExecutionList) XXX_Size() int { - return xxx_messageInfo_ExecutionList.Size(m) -} -func (m *ExecutionList) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionList.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionList proto.InternalMessageInfo - -func (m *ExecutionList) GetExecutions() []*Execution { - if m != nil { - return m.Executions - } - return nil -} - -func (m *ExecutionList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Input/output data can represented by actual values or a link to where values are stored -type LiteralMapBlob struct { - // Types that are valid to be assigned to Data: - // *LiteralMapBlob_Values - // *LiteralMapBlob_Uri - Data isLiteralMapBlob_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LiteralMapBlob) Reset() { *m = LiteralMapBlob{} } -func (m *LiteralMapBlob) String() string { return proto.CompactTextString(m) } -func (*LiteralMapBlob) ProtoMessage() {} -func (*LiteralMapBlob) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{7} -} - -func (m *LiteralMapBlob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiteralMapBlob.Unmarshal(m, b) -} -func (m *LiteralMapBlob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiteralMapBlob.Marshal(b, m, deterministic) -} -func (m *LiteralMapBlob) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiteralMapBlob.Merge(m, src) -} -func (m *LiteralMapBlob) XXX_Size() int { - return xxx_messageInfo_LiteralMapBlob.Size(m) -} -func (m *LiteralMapBlob) XXX_DiscardUnknown() { - xxx_messageInfo_LiteralMapBlob.DiscardUnknown(m) -} - -var xxx_messageInfo_LiteralMapBlob proto.InternalMessageInfo - -type isLiteralMapBlob_Data interface { - isLiteralMapBlob_Data() -} - -type LiteralMapBlob_Values struct { - Values *core.LiteralMap `protobuf:"bytes,1,opt,name=values,proto3,oneof"` -} - -type LiteralMapBlob_Uri struct { - Uri string `protobuf:"bytes,2,opt,name=uri,proto3,oneof"` -} - -func (*LiteralMapBlob_Values) isLiteralMapBlob_Data() {} - -func (*LiteralMapBlob_Uri) isLiteralMapBlob_Data() {} - -func (m *LiteralMapBlob) GetData() isLiteralMapBlob_Data { - if m != nil { - return m.Data - } - return nil -} - -// Deprecated: Do not use. -func (m *LiteralMapBlob) GetValues() *core.LiteralMap { - if x, ok := m.GetData().(*LiteralMapBlob_Values); ok { - return x.Values - } - return nil -} - -func (m *LiteralMapBlob) GetUri() string { - if x, ok := m.GetData().(*LiteralMapBlob_Uri); ok { - return x.Uri - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*LiteralMapBlob) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*LiteralMapBlob_Values)(nil), - (*LiteralMapBlob_Uri)(nil), - } -} - -// Specifies metadata around an aborted workflow execution. -type AbortMetadata struct { - // In the case of a user-specified abort, this will pass along the user-supplied cause. - Cause string `protobuf:"bytes,1,opt,name=cause,proto3" json:"cause,omitempty"` - // Identifies the entity (if any) responsible for terminating the execution - Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AbortMetadata) Reset() { *m = AbortMetadata{} } -func (m *AbortMetadata) String() string { return proto.CompactTextString(m) } -func (*AbortMetadata) ProtoMessage() {} -func (*AbortMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{8} -} - -func (m *AbortMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AbortMetadata.Unmarshal(m, b) -} -func (m *AbortMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AbortMetadata.Marshal(b, m, deterministic) -} -func (m *AbortMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_AbortMetadata.Merge(m, src) -} -func (m *AbortMetadata) XXX_Size() int { - return xxx_messageInfo_AbortMetadata.Size(m) -} -func (m *AbortMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_AbortMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_AbortMetadata proto.InternalMessageInfo - -func (m *AbortMetadata) GetCause() string { - if m != nil { - return m.Cause - } - return "" -} - -func (m *AbortMetadata) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -// Encapsulates the results of the Execution -type ExecutionClosure struct { - // A result produced by a terminated execution. - // A pending (non-terminal) execution will not have any output result. - // - // Types that are valid to be assigned to OutputResult: - // *ExecutionClosure_Outputs - // *ExecutionClosure_Error - // *ExecutionClosure_AbortCause - // *ExecutionClosure_AbortMetadata - // *ExecutionClosure_OutputData - OutputResult isExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // Inputs computed and passed for execution. - // computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan - ComputedInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=computed_inputs,json=computedInputs,proto3" json:"computed_inputs,omitempty"` // Deprecated: Do not use. - // Most recent recorded phase for the execution. - Phase core.WorkflowExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - // Reported time at which the execution began running. - StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the execution spent running. - Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` - // Reported time at which the execution was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Reported time at which the execution was last updated. - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // The notification settings to use after merging the CreateExecutionRequest and the launch plan - // notification settings. An execution launched with notifications will always prefer that definition - // to notifications defined statically in a launch plan. - Notifications []*Notification `protobuf:"bytes,9,rep,name=notifications,proto3" json:"notifications,omitempty"` - // Identifies the workflow definition for this execution. - WorkflowId *core.Identifier `protobuf:"bytes,11,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Provides the details of the last stage change - StateChangeDetails *ExecutionStateChangeDetails `protobuf:"bytes,14,opt,name=state_change_details,json=stateChangeDetails,proto3" json:"state_change_details,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionClosure) Reset() { *m = ExecutionClosure{} } -func (m *ExecutionClosure) String() string { return proto.CompactTextString(m) } -func (*ExecutionClosure) ProtoMessage() {} -func (*ExecutionClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{9} -} - -func (m *ExecutionClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionClosure.Unmarshal(m, b) -} -func (m *ExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionClosure.Marshal(b, m, deterministic) -} -func (m *ExecutionClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionClosure.Merge(m, src) -} -func (m *ExecutionClosure) XXX_Size() int { - return xxx_messageInfo_ExecutionClosure.Size(m) -} -func (m *ExecutionClosure) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionClosure proto.InternalMessageInfo - -type isExecutionClosure_OutputResult interface { - isExecutionClosure_OutputResult() -} - -type ExecutionClosure_Outputs struct { - Outputs *LiteralMapBlob `protobuf:"bytes,1,opt,name=outputs,proto3,oneof"` -} - -type ExecutionClosure_Error struct { - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type ExecutionClosure_AbortCause struct { - AbortCause string `protobuf:"bytes,10,opt,name=abort_cause,json=abortCause,proto3,oneof"` -} - -type ExecutionClosure_AbortMetadata struct { - AbortMetadata *AbortMetadata `protobuf:"bytes,12,opt,name=abort_metadata,json=abortMetadata,proto3,oneof"` -} - -type ExecutionClosure_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,13,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*ExecutionClosure_Outputs) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_Error) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_AbortCause) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_AbortMetadata) isExecutionClosure_OutputResult() {} - -func (*ExecutionClosure_OutputData) isExecutionClosure_OutputResult() {} - -func (m *ExecutionClosure) GetOutputResult() isExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionClosure) GetOutputs() *LiteralMapBlob { - if x, ok := m.GetOutputResult().(*ExecutionClosure_Outputs); ok { - return x.Outputs - } - return nil -} - -func (m *ExecutionClosure) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*ExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionClosure) GetAbortCause() string { - if x, ok := m.GetOutputResult().(*ExecutionClosure_AbortCause); ok { - return x.AbortCause - } - return "" -} - -func (m *ExecutionClosure) GetAbortMetadata() *AbortMetadata { - if x, ok := m.GetOutputResult().(*ExecutionClosure_AbortMetadata); ok { - return x.AbortMetadata - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*ExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionClosure) GetComputedInputs() *core.LiteralMap { - if m != nil { - return m.ComputedInputs - } - return nil -} - -func (m *ExecutionClosure) GetPhase() core.WorkflowExecution_Phase { - if m != nil { - return m.Phase - } - return core.WorkflowExecution_UNDEFINED -} - -func (m *ExecutionClosure) GetStartedAt() *timestamp.Timestamp { - if m != nil { - return m.StartedAt - } - return nil -} - -func (m *ExecutionClosure) GetDuration() *duration.Duration { - if m != nil { - return m.Duration - } - return nil -} - -func (m *ExecutionClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -func (m *ExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { - if m != nil { - return m.UpdatedAt - } - return nil -} - -func (m *ExecutionClosure) GetNotifications() []*Notification { - if m != nil { - return m.Notifications - } - return nil -} - -func (m *ExecutionClosure) GetWorkflowId() *core.Identifier { - if m != nil { - return m.WorkflowId - } - return nil -} - -func (m *ExecutionClosure) GetStateChangeDetails() *ExecutionStateChangeDetails { - if m != nil { - return m.StateChangeDetails - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ExecutionClosure) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ExecutionClosure_Outputs)(nil), - (*ExecutionClosure_Error)(nil), - (*ExecutionClosure_AbortCause)(nil), - (*ExecutionClosure_AbortMetadata)(nil), - (*ExecutionClosure_OutputData)(nil), - } -} - -// Represents system, rather than user-facing, metadata about an execution. -type SystemMetadata struct { - // Which execution cluster this execution ran on. - ExecutionCluster string `protobuf:"bytes,1,opt,name=execution_cluster,json=executionCluster,proto3" json:"execution_cluster,omitempty"` - // Which kubernetes namespace the execution ran under. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SystemMetadata) Reset() { *m = SystemMetadata{} } -func (m *SystemMetadata) String() string { return proto.CompactTextString(m) } -func (*SystemMetadata) ProtoMessage() {} -func (*SystemMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{10} -} - -func (m *SystemMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SystemMetadata.Unmarshal(m, b) -} -func (m *SystemMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SystemMetadata.Marshal(b, m, deterministic) -} -func (m *SystemMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_SystemMetadata.Merge(m, src) -} -func (m *SystemMetadata) XXX_Size() int { - return xxx_messageInfo_SystemMetadata.Size(m) -} -func (m *SystemMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_SystemMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_SystemMetadata proto.InternalMessageInfo - -func (m *SystemMetadata) GetExecutionCluster() string { - if m != nil { - return m.ExecutionCluster - } - return "" -} - -func (m *SystemMetadata) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -// Represents attributes about an execution which are not required to launch the execution but are useful to record. -// These attributes are assigned at launch time and do not change. -type ExecutionMetadata struct { - Mode ExecutionMetadata_ExecutionMode `protobuf:"varint,1,opt,name=mode,proto3,enum=flyteidl.admin.ExecutionMetadata_ExecutionMode" json:"mode,omitempty"` - // Identifier of the entity that triggered this execution. - // For systems using back-end authentication any value set here will be discarded in favor of the - // authenticated user context. - Principal string `protobuf:"bytes,2,opt,name=principal,proto3" json:"principal,omitempty"` - // Indicates the nestedness of this execution. - // If a user launches a workflow execution, the default nesting is 0. - // If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 - // Generally, if workflow at nesting level k launches a workflow then the child workflow will have - // nesting = k + 1. - Nesting uint32 `protobuf:"varint,3,opt,name=nesting,proto3" json:"nesting,omitempty"` - // For scheduled executions, the requested time for execution for this specific schedule invocation. - ScheduledAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"` - // Which subworkflow node (if any) launched this execution - ParentNodeExecution *core.NodeExecutionIdentifier `protobuf:"bytes,5,opt,name=parent_node_execution,json=parentNodeExecution,proto3" json:"parent_node_execution,omitempty"` - // Optional, a reference workflow execution related to this execution. - // In the case of a relaunch, this references the original workflow execution. - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,16,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` - // Optional, platform-specific metadata about the execution. - // In this the future this may be gated behind an ACL or some sort of authorization. - SystemMetadata *SystemMetadata `protobuf:"bytes,17,opt,name=system_metadata,json=systemMetadata,proto3" json:"system_metadata,omitempty"` - // Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping - // since we don't have a structure to handle nested ones anyways. - ArtifactIds []*core.ArtifactID `protobuf:"bytes,18,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionMetadata) Reset() { *m = ExecutionMetadata{} } -func (m *ExecutionMetadata) String() string { return proto.CompactTextString(m) } -func (*ExecutionMetadata) ProtoMessage() {} -func (*ExecutionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{11} -} - -func (m *ExecutionMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionMetadata.Unmarshal(m, b) -} -func (m *ExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionMetadata.Marshal(b, m, deterministic) -} -func (m *ExecutionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionMetadata.Merge(m, src) -} -func (m *ExecutionMetadata) XXX_Size() int { - return xxx_messageInfo_ExecutionMetadata.Size(m) -} -func (m *ExecutionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionMetadata proto.InternalMessageInfo - -func (m *ExecutionMetadata) GetMode() ExecutionMetadata_ExecutionMode { - if m != nil { - return m.Mode - } - return ExecutionMetadata_MANUAL -} - -func (m *ExecutionMetadata) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -func (m *ExecutionMetadata) GetNesting() uint32 { - if m != nil { - return m.Nesting - } - return 0 -} - -func (m *ExecutionMetadata) GetScheduledAt() *timestamp.Timestamp { - if m != nil { - return m.ScheduledAt - } - return nil -} - -func (m *ExecutionMetadata) GetParentNodeExecution() *core.NodeExecutionIdentifier { - if m != nil { - return m.ParentNodeExecution - } - return nil -} - -func (m *ExecutionMetadata) GetReferenceExecution() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ReferenceExecution - } - return nil -} - -func (m *ExecutionMetadata) GetSystemMetadata() *SystemMetadata { - if m != nil { - return m.SystemMetadata - } - return nil -} - -func (m *ExecutionMetadata) GetArtifactIds() []*core.ArtifactID { - if m != nil { - return m.ArtifactIds - } - return nil -} - -type NotificationList struct { - Notifications []*Notification `protobuf:"bytes,1,rep,name=notifications,proto3" json:"notifications,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NotificationList) Reset() { *m = NotificationList{} } -func (m *NotificationList) String() string { return proto.CompactTextString(m) } -func (*NotificationList) ProtoMessage() {} -func (*NotificationList) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{12} -} - -func (m *NotificationList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NotificationList.Unmarshal(m, b) -} -func (m *NotificationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NotificationList.Marshal(b, m, deterministic) -} -func (m *NotificationList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NotificationList.Merge(m, src) -} -func (m *NotificationList) XXX_Size() int { - return xxx_messageInfo_NotificationList.Size(m) -} -func (m *NotificationList) XXX_DiscardUnknown() { - xxx_messageInfo_NotificationList.DiscardUnknown(m) -} - -var xxx_messageInfo_NotificationList proto.InternalMessageInfo - -func (m *NotificationList) GetNotifications() []*Notification { - if m != nil { - return m.Notifications - } - return nil -} - -// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime -// of an execution as it progresses across phase changes. -type ExecutionSpec struct { - // Launch plan to be executed - LaunchPlan *core.Identifier `protobuf:"bytes,1,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` - // Input values to be passed for the execution - Inputs *core.LiteralMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. - // Metadata for the execution - Metadata *ExecutionMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Types that are valid to be assigned to NotificationOverrides: - // *ExecutionSpec_Notifications - // *ExecutionSpec_DisableAll - NotificationOverrides isExecutionSpec_NotificationOverrides `protobuf_oneof:"notification_overrides"` - // Labels to apply to the execution resource. - Labels *Labels `protobuf:"bytes,7,opt,name=labels,proto3" json:"labels,omitempty"` - // Annotations to apply to the execution resource. - Annotations *Annotations `protobuf:"bytes,8,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Optional: security context override to apply this execution. - SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Optional: auth override to apply this execution. - AuthRole *AuthRole `protobuf:"bytes,16,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` // Deprecated: Do not use. - // Indicates the runtime priority of the execution. - QualityOfService *core.QualityOfService `protobuf:"bytes,17,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. - // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - // and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). - // This should be a prefix like s3://my-bucket/my-data - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,19,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Controls how to select an available cluster on which this execution should run. - ClusterAssignment *ClusterAssignment `protobuf:"bytes,20,opt,name=cluster_assignment,json=clusterAssignment,proto3" json:"cluster_assignment,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrappers.BoolValue `protobuf:"bytes,21,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,22,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,23,opt,name=envs,proto3" json:"envs,omitempty"` - // Tags to be set for the execution. - Tags []string `protobuf:"bytes,24,rep,name=tags,proto3" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionSpec) Reset() { *m = ExecutionSpec{} } -func (m *ExecutionSpec) String() string { return proto.CompactTextString(m) } -func (*ExecutionSpec) ProtoMessage() {} -func (*ExecutionSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{13} -} - -func (m *ExecutionSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionSpec.Unmarshal(m, b) -} -func (m *ExecutionSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionSpec.Marshal(b, m, deterministic) -} -func (m *ExecutionSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionSpec.Merge(m, src) -} -func (m *ExecutionSpec) XXX_Size() int { - return xxx_messageInfo_ExecutionSpec.Size(m) -} -func (m *ExecutionSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionSpec proto.InternalMessageInfo - -func (m *ExecutionSpec) GetLaunchPlan() *core.Identifier { - if m != nil { - return m.LaunchPlan - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionSpec) GetInputs() *core.LiteralMap { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *ExecutionSpec) GetMetadata() *ExecutionMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -type isExecutionSpec_NotificationOverrides interface { - isExecutionSpec_NotificationOverrides() -} - -type ExecutionSpec_Notifications struct { - Notifications *NotificationList `protobuf:"bytes,5,opt,name=notifications,proto3,oneof"` -} - -type ExecutionSpec_DisableAll struct { - DisableAll bool `protobuf:"varint,6,opt,name=disable_all,json=disableAll,proto3,oneof"` -} - -func (*ExecutionSpec_Notifications) isExecutionSpec_NotificationOverrides() {} - -func (*ExecutionSpec_DisableAll) isExecutionSpec_NotificationOverrides() {} - -func (m *ExecutionSpec) GetNotificationOverrides() isExecutionSpec_NotificationOverrides { - if m != nil { - return m.NotificationOverrides - } - return nil -} - -func (m *ExecutionSpec) GetNotifications() *NotificationList { - if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_Notifications); ok { - return x.Notifications - } - return nil -} - -func (m *ExecutionSpec) GetDisableAll() bool { - if x, ok := m.GetNotificationOverrides().(*ExecutionSpec_DisableAll); ok { - return x.DisableAll - } - return false -} - -func (m *ExecutionSpec) GetLabels() *Labels { - if m != nil { - return m.Labels - } - return nil -} - -func (m *ExecutionSpec) GetAnnotations() *Annotations { - if m != nil { - return m.Annotations - } - return nil -} - -func (m *ExecutionSpec) GetSecurityContext() *core.SecurityContext { - if m != nil { - return m.SecurityContext - } - return nil -} - -// Deprecated: Do not use. -func (m *ExecutionSpec) GetAuthRole() *AuthRole { - if m != nil { - return m.AuthRole - } - return nil -} - -func (m *ExecutionSpec) GetQualityOfService() *core.QualityOfService { - if m != nil { - return m.QualityOfService - } - return nil -} - -func (m *ExecutionSpec) GetMaxParallelism() int32 { - if m != nil { - return m.MaxParallelism - } - return 0 -} - -func (m *ExecutionSpec) GetRawOutputDataConfig() *RawOutputDataConfig { - if m != nil { - return m.RawOutputDataConfig - } - return nil -} - -func (m *ExecutionSpec) GetClusterAssignment() *ClusterAssignment { - if m != nil { - return m.ClusterAssignment - } - return nil -} - -func (m *ExecutionSpec) GetInterruptible() *wrappers.BoolValue { - if m != nil { - return m.Interruptible - } - return nil -} - -func (m *ExecutionSpec) GetOverwriteCache() bool { - if m != nil { - return m.OverwriteCache - } - return false -} - -func (m *ExecutionSpec) GetEnvs() *Envs { - if m != nil { - return m.Envs - } - return nil -} - -func (m *ExecutionSpec) GetTags() []string { - if m != nil { - return m.Tags - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ExecutionSpec) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ExecutionSpec_Notifications)(nil), - (*ExecutionSpec_DisableAll)(nil), - } -} - -// Request to terminate an in-progress execution. This action is irreversible. -// If an execution is already terminated, this request will simply be a no-op. -// This request will fail if it references a non-existent execution. -// If the request succeeds the phase "ABORTED" will be recorded for the termination -// with the optional cause added to the output_result. -type ExecutionTerminateRequest struct { - // Uniquely identifies the individual workflow execution to be terminated. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Optional reason for aborting. - Cause string `protobuf:"bytes,2,opt,name=cause,proto3" json:"cause,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionTerminateRequest) Reset() { *m = ExecutionTerminateRequest{} } -func (m *ExecutionTerminateRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionTerminateRequest) ProtoMessage() {} -func (*ExecutionTerminateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{14} -} - -func (m *ExecutionTerminateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionTerminateRequest.Unmarshal(m, b) -} -func (m *ExecutionTerminateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionTerminateRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionTerminateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionTerminateRequest.Merge(m, src) -} -func (m *ExecutionTerminateRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionTerminateRequest.Size(m) -} -func (m *ExecutionTerminateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionTerminateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionTerminateRequest proto.InternalMessageInfo - -func (m *ExecutionTerminateRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *ExecutionTerminateRequest) GetCause() string { - if m != nil { - return m.Cause - } - return "" -} - -type ExecutionTerminateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionTerminateResponse) Reset() { *m = ExecutionTerminateResponse{} } -func (m *ExecutionTerminateResponse) String() string { return proto.CompactTextString(m) } -func (*ExecutionTerminateResponse) ProtoMessage() {} -func (*ExecutionTerminateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{15} -} - -func (m *ExecutionTerminateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionTerminateResponse.Unmarshal(m, b) -} -func (m *ExecutionTerminateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionTerminateResponse.Marshal(b, m, deterministic) -} -func (m *ExecutionTerminateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionTerminateResponse.Merge(m, src) -} -func (m *ExecutionTerminateResponse) XXX_Size() int { - return xxx_messageInfo_ExecutionTerminateResponse.Size(m) -} -func (m *ExecutionTerminateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionTerminateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionTerminateResponse proto.InternalMessageInfo - -// Request structure to fetch inputs, output and other data produced by an execution. -// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` -type WorkflowExecutionGetDataRequest struct { - // The identifier of the execution for which to fetch inputs and outputs. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionGetDataRequest) Reset() { *m = WorkflowExecutionGetDataRequest{} } -func (m *WorkflowExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionGetDataRequest) ProtoMessage() {} -func (*WorkflowExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{16} -} - -func (m *WorkflowExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionGetDataRequest.Unmarshal(m, b) -} -func (m *WorkflowExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionGetDataRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionGetDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionGetDataRequest.Merge(m, src) -} -func (m *WorkflowExecutionGetDataRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionGetDataRequest.Size(m) -} -func (m *WorkflowExecutionGetDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionGetDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionGetDataRequest proto.InternalMessageInfo - -func (m *WorkflowExecutionGetDataRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. -type WorkflowExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of execution outputs. - // Deprecated: Please use full_outputs instead. - Outputs *UrlBlob `protobuf:"bytes,1,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. - // Signed url to fetch a core.LiteralMap of execution inputs. - // Deprecated: Please use full_inputs instead. - Inputs *UrlBlob `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionGetDataResponse) Reset() { *m = WorkflowExecutionGetDataResponse{} } -func (m *WorkflowExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionGetDataResponse) ProtoMessage() {} -func (*WorkflowExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{17} -} - -func (m *WorkflowExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionGetDataResponse.Unmarshal(m, b) -} -func (m *WorkflowExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionGetDataResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionGetDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionGetDataResponse.Merge(m, src) -} -func (m *WorkflowExecutionGetDataResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionGetDataResponse.Size(m) -} -func (m *WorkflowExecutionGetDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionGetDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionGetDataResponse proto.InternalMessageInfo - -// Deprecated: Do not use. -func (m *WorkflowExecutionGetDataResponse) GetOutputs() *UrlBlob { - if m != nil { - return m.Outputs - } - return nil -} - -// Deprecated: Do not use. -func (m *WorkflowExecutionGetDataResponse) GetInputs() *UrlBlob { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *WorkflowExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if m != nil { - return m.FullInputs - } - return nil -} - -func (m *WorkflowExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if m != nil { - return m.FullOutputs - } - return nil -} - -type ExecutionUpdateRequest struct { - // Identifier of the execution to update - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // State to set as the new value active/archive - State ExecutionState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionUpdateRequest) Reset() { *m = ExecutionUpdateRequest{} } -func (m *ExecutionUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionUpdateRequest) ProtoMessage() {} -func (*ExecutionUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{18} -} - -func (m *ExecutionUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionUpdateRequest.Unmarshal(m, b) -} -func (m *ExecutionUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionUpdateRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionUpdateRequest.Merge(m, src) -} -func (m *ExecutionUpdateRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionUpdateRequest.Size(m) -} -func (m *ExecutionUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionUpdateRequest proto.InternalMessageInfo - -func (m *ExecutionUpdateRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *ExecutionUpdateRequest) GetState() ExecutionState { - if m != nil { - return m.State - } - return ExecutionState_EXECUTION_ACTIVE -} - -type ExecutionStateChangeDetails struct { - // The state of the execution is used to control its visibility in the UI/CLI. - State ExecutionState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.ExecutionState" json:"state,omitempty"` - // This timestamp represents when the state changed. - OccurredAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Identifies the entity (if any) responsible for causing the state change of the execution - Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionStateChangeDetails) Reset() { *m = ExecutionStateChangeDetails{} } -func (m *ExecutionStateChangeDetails) String() string { return proto.CompactTextString(m) } -func (*ExecutionStateChangeDetails) ProtoMessage() {} -func (*ExecutionStateChangeDetails) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{19} -} - -func (m *ExecutionStateChangeDetails) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionStateChangeDetails.Unmarshal(m, b) -} -func (m *ExecutionStateChangeDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionStateChangeDetails.Marshal(b, m, deterministic) -} -func (m *ExecutionStateChangeDetails) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionStateChangeDetails.Merge(m, src) -} -func (m *ExecutionStateChangeDetails) XXX_Size() int { - return xxx_messageInfo_ExecutionStateChangeDetails.Size(m) -} -func (m *ExecutionStateChangeDetails) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionStateChangeDetails.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionStateChangeDetails proto.InternalMessageInfo - -func (m *ExecutionStateChangeDetails) GetState() ExecutionState { - if m != nil { - return m.State - } - return ExecutionState_EXECUTION_ACTIVE -} - -func (m *ExecutionStateChangeDetails) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -func (m *ExecutionStateChangeDetails) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -type ExecutionUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionUpdateResponse) Reset() { *m = ExecutionUpdateResponse{} } -func (m *ExecutionUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*ExecutionUpdateResponse) ProtoMessage() {} -func (*ExecutionUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{20} -} - -func (m *ExecutionUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionUpdateResponse.Unmarshal(m, b) -} -func (m *ExecutionUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionUpdateResponse.Marshal(b, m, deterministic) -} -func (m *ExecutionUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionUpdateResponse.Merge(m, src) -} -func (m *ExecutionUpdateResponse) XXX_Size() int { - return xxx_messageInfo_ExecutionUpdateResponse.Size(m) -} -func (m *ExecutionUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionUpdateResponse proto.InternalMessageInfo - -// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. -type WorkflowExecutionGetMetricsRequest struct { - // id defines the workflow execution to query for. - Id *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // depth defines the number of Flyte entity levels to traverse when breaking down execution details. - Depth int32 `protobuf:"varint,2,opt,name=depth,proto3" json:"depth,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionGetMetricsRequest) Reset() { *m = WorkflowExecutionGetMetricsRequest{} } -func (m *WorkflowExecutionGetMetricsRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionGetMetricsRequest) ProtoMessage() {} -func (*WorkflowExecutionGetMetricsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{21} -} - -func (m *WorkflowExecutionGetMetricsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Unmarshal(m, b) -} -func (m *WorkflowExecutionGetMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionGetMetricsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Merge(m, src) -} -func (m *WorkflowExecutionGetMetricsRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionGetMetricsRequest.Size(m) -} -func (m *WorkflowExecutionGetMetricsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionGetMetricsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionGetMetricsRequest proto.InternalMessageInfo - -func (m *WorkflowExecutionGetMetricsRequest) GetId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *WorkflowExecutionGetMetricsRequest) GetDepth() int32 { - if m != nil { - return m.Depth - } - return 0 -} - -// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. -type WorkflowExecutionGetMetricsResponse struct { - // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a - // hierarchical structure using Flyte entity references. - Span *core.Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionGetMetricsResponse) Reset() { *m = WorkflowExecutionGetMetricsResponse{} } -func (m *WorkflowExecutionGetMetricsResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionGetMetricsResponse) ProtoMessage() {} -func (*WorkflowExecutionGetMetricsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4e2785d91b3809ec, []int{22} -} - -func (m *WorkflowExecutionGetMetricsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Unmarshal(m, b) -} -func (m *WorkflowExecutionGetMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionGetMetricsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Merge(m, src) -} -func (m *WorkflowExecutionGetMetricsResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionGetMetricsResponse.Size(m) -} -func (m *WorkflowExecutionGetMetricsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionGetMetricsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionGetMetricsResponse proto.InternalMessageInfo - -func (m *WorkflowExecutionGetMetricsResponse) GetSpan() *core.Span { - if m != nil { - return m.Span - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.admin.ExecutionState", ExecutionState_name, ExecutionState_value) - proto.RegisterEnum("flyteidl.admin.ExecutionMetadata_ExecutionMode", ExecutionMetadata_ExecutionMode_name, ExecutionMetadata_ExecutionMode_value) - proto.RegisterType((*ExecutionCreateRequest)(nil), "flyteidl.admin.ExecutionCreateRequest") - proto.RegisterType((*ExecutionRelaunchRequest)(nil), "flyteidl.admin.ExecutionRelaunchRequest") - proto.RegisterType((*ExecutionRecoverRequest)(nil), "flyteidl.admin.ExecutionRecoverRequest") - proto.RegisterType((*ExecutionCreateResponse)(nil), "flyteidl.admin.ExecutionCreateResponse") - proto.RegisterType((*WorkflowExecutionGetRequest)(nil), "flyteidl.admin.WorkflowExecutionGetRequest") - proto.RegisterType((*Execution)(nil), "flyteidl.admin.Execution") - proto.RegisterType((*ExecutionList)(nil), "flyteidl.admin.ExecutionList") - proto.RegisterType((*LiteralMapBlob)(nil), "flyteidl.admin.LiteralMapBlob") - proto.RegisterType((*AbortMetadata)(nil), "flyteidl.admin.AbortMetadata") - proto.RegisterType((*ExecutionClosure)(nil), "flyteidl.admin.ExecutionClosure") - proto.RegisterType((*SystemMetadata)(nil), "flyteidl.admin.SystemMetadata") - proto.RegisterType((*ExecutionMetadata)(nil), "flyteidl.admin.ExecutionMetadata") - proto.RegisterType((*NotificationList)(nil), "flyteidl.admin.NotificationList") - proto.RegisterType((*ExecutionSpec)(nil), "flyteidl.admin.ExecutionSpec") - proto.RegisterType((*ExecutionTerminateRequest)(nil), "flyteidl.admin.ExecutionTerminateRequest") - proto.RegisterType((*ExecutionTerminateResponse)(nil), "flyteidl.admin.ExecutionTerminateResponse") - proto.RegisterType((*WorkflowExecutionGetDataRequest)(nil), "flyteidl.admin.WorkflowExecutionGetDataRequest") - proto.RegisterType((*WorkflowExecutionGetDataResponse)(nil), "flyteidl.admin.WorkflowExecutionGetDataResponse") - proto.RegisterType((*ExecutionUpdateRequest)(nil), "flyteidl.admin.ExecutionUpdateRequest") - proto.RegisterType((*ExecutionStateChangeDetails)(nil), "flyteidl.admin.ExecutionStateChangeDetails") - proto.RegisterType((*ExecutionUpdateResponse)(nil), "flyteidl.admin.ExecutionUpdateResponse") - proto.RegisterType((*WorkflowExecutionGetMetricsRequest)(nil), "flyteidl.admin.WorkflowExecutionGetMetricsRequest") - proto.RegisterType((*WorkflowExecutionGetMetricsResponse)(nil), "flyteidl.admin.WorkflowExecutionGetMetricsResponse") -} - -func init() { proto.RegisterFile("flyteidl/admin/execution.proto", fileDescriptor_4e2785d91b3809ec) } - -var fileDescriptor_4e2785d91b3809ec = []byte{ - // 1862 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x73, 0xdb, 0xc6, - 0x15, 0x16, 0x29, 0x52, 0xa2, 0x0e, 0x25, 0x8a, 0x5e, 0x29, 0x0a, 0x2c, 0x3b, 0xb6, 0x82, 0x4c, - 0x6b, 0x4f, 0x32, 0x25, 0x27, 0x4a, 0x3d, 0x9d, 0x38, 0x71, 0x26, 0x14, 0x45, 0x87, 0x4c, 0x75, - 0x71, 0x57, 0x17, 0xe7, 0x32, 0x19, 0x74, 0x09, 0x2c, 0x49, 0x34, 0xb8, 0x79, 0x77, 0x21, 0xd9, - 0xff, 0xa0, 0xd3, 0xa7, 0x3e, 0xb6, 0xff, 0xa0, 0x4f, 0x7d, 0xec, 0x2f, 0xe8, 0x8f, 0xea, 0x63, - 0x07, 0x8b, 0x05, 0x08, 0x80, 0x94, 0x25, 0x8f, 0xf5, 0x86, 0x3d, 0xe7, 0x3b, 0x67, 0xcf, 0x9e, - 0x3d, 0xb7, 0x05, 0x3c, 0x18, 0x39, 0x6f, 0x04, 0xb5, 0x2d, 0xa7, 0x4d, 0x2c, 0xd7, 0xf6, 0xda, - 0xf4, 0x35, 0x35, 0x43, 0x61, 0xfb, 0x5e, 0x2b, 0x60, 0xbe, 0xf0, 0x51, 0x23, 0xe1, 0xb7, 0x24, - 0x7f, 0xfb, 0x51, 0x01, 0x6f, 0x3a, 0x21, 0x17, 0x94, 0x19, 0x84, 0x73, 0x7b, 0xec, 0xb9, 0xd4, - 0x13, 0xb1, 0xe0, 0xf6, 0xbd, 0x22, 0xd0, 0x77, 0xdd, 0x44, 0xeb, 0xf6, 0xfd, 0x94, 0x69, 0xfa, - 0x8c, 0xb6, 0x1d, 0x5b, 0x50, 0x46, 0x1c, 0xae, 0xb8, 0x1f, 0xe5, 0xb9, 0x05, 0x93, 0xb6, 0x1f, - 0xe6, 0xd9, 0x84, 0x09, 0x7b, 0x44, 0x4c, 0x61, 0xd8, 0x96, 0x02, 0x3c, 0xc8, 0x03, 0x6c, 0x8b, - 0x7a, 0xc2, 0x1e, 0xd9, 0x94, 0xcd, 0x98, 0x26, 0xf9, 0x2e, 0x15, 0xcc, 0x36, 0xf9, 0x7c, 0xd3, - 0x38, 0x35, 0x43, 0x66, 0x8b, 0x37, 0x89, 0xea, 0xb1, 0xef, 0x8f, 0x1d, 0xda, 0x96, 0xab, 0x61, - 0x38, 0x6a, 0x5b, 0x21, 0x23, 0x59, 0xdb, 0x8a, 0x7c, 0x61, 0xbb, 0x94, 0x0b, 0xe2, 0x06, 0x57, - 0x29, 0xb8, 0x64, 0x24, 0x08, 0x28, 0x53, 0xdb, 0xeb, 0xff, 0x2d, 0xc1, 0x56, 0x2f, 0x39, 0x70, - 0x97, 0x51, 0x22, 0x28, 0xa6, 0xaf, 0x42, 0xca, 0x05, 0xd2, 0x60, 0x39, 0x60, 0xfe, 0x5f, 0xa8, - 0x29, 0xb4, 0xd2, 0x4e, 0xe9, 0xf1, 0x0a, 0x4e, 0x96, 0x68, 0x0b, 0x96, 0x2c, 0xdf, 0x25, 0xb6, - 0xa7, 0x95, 0x25, 0x43, 0xad, 0x10, 0x82, 0x8a, 0x47, 0x5c, 0xaa, 0x2d, 0x4a, 0xaa, 0xfc, 0x46, - 0x9f, 0x43, 0x85, 0x07, 0xd4, 0xd4, 0x2a, 0x3b, 0xa5, 0xc7, 0xf5, 0xdd, 0x8f, 0x5a, 0xf9, 0xfb, - 0x6d, 0xa5, 0x7b, 0x9f, 0x04, 0xd4, 0xc4, 0x12, 0x8a, 0x3e, 0x87, 0x25, 0xdb, 0x0b, 0x42, 0xc1, - 0xb5, 0xaa, 0x14, 0xba, 0x3b, 0x15, 0x8a, 0x7c, 0xd4, 0x3a, 0x88, 0xaf, 0xef, 0x90, 0x04, 0x58, - 0x01, 0xf5, 0x7f, 0x96, 0x40, 0x4b, 0x55, 0x61, 0xea, 0x90, 0xd0, 0x33, 0x27, 0xc9, 0x41, 0x9e, - 0x42, 0xd9, 0xb6, 0xe4, 0x19, 0xea, 0xbb, 0x9f, 0x16, 0x74, 0xbd, 0xf4, 0xd9, 0xaf, 0x23, 0xc7, - 0xbf, 0x4c, 0x85, 0x07, 0xe9, 0xed, 0xe1, 0xb2, 0x6d, 0xcd, 0x3d, 0xd2, 0x23, 0x58, 0xf7, 0x2f, - 0x28, 0xbb, 0x64, 0xb6, 0xa0, 0x86, 0x49, 0xcc, 0x09, 0x95, 0xa7, 0xab, 0xe1, 0x46, 0x4a, 0xee, - 0x46, 0xd4, 0xef, 0x2b, 0xb5, 0x72, 0x73, 0x51, 0xff, 0x57, 0x09, 0x3e, 0xcc, 0xd8, 0x66, 0x46, - 0xa0, 0xdb, 0x34, 0xad, 0x9c, 0x31, 0xed, 0x19, 0xd4, 0x5c, 0x2a, 0x88, 0x45, 0x04, 0x91, 0x26, - 0xd7, 0x77, 0x3f, 0xbe, 0xd2, 0xe3, 0x87, 0x0a, 0x88, 0x53, 0x11, 0xfd, 0x2c, 0x63, 0x69, 0x12, - 0x0c, 0x3c, 0xf0, 0x3d, 0x4e, 0xdf, 0xc7, 0x52, 0xfd, 0x47, 0xb8, 0x37, 0x03, 0xf9, 0x8e, 0x8a, - 0x5b, 0x70, 0x82, 0xfe, 0x9f, 0x12, 0xac, 0xa4, 0xbc, 0xf7, 0x72, 0x67, 0x12, 0xa8, 0xe5, 0x9b, - 0x07, 0xea, 0x53, 0x58, 0x36, 0x1d, 0x9f, 0x87, 0x8c, 0x2a, 0x67, 0xef, 0x5c, 0x29, 0xd5, 0x8d, - 0x71, 0x38, 0x11, 0xd0, 0xff, 0x0c, 0x6b, 0x29, 0xf3, 0xc0, 0xe6, 0x02, 0x7d, 0x09, 0x90, 0x56, - 0x1e, 0xae, 0x95, 0x76, 0x16, 0xf3, 0x91, 0x5f, 0xd0, 0x87, 0x33, 0x60, 0xb4, 0x09, 0x55, 0xe1, - 0xff, 0x4a, 0x93, 0x74, 0x8c, 0x17, 0x3a, 0x85, 0xc6, 0x34, 0x53, 0xf6, 0x1c, 0x7f, 0x88, 0xfe, - 0x00, 0x4b, 0x17, 0xc4, 0x09, 0x29, 0x57, 0x2e, 0xba, 0x3a, 0xb1, 0xf6, 0xca, 0x5a, 0xa9, 0xbf, - 0x80, 0x15, 0x1c, 0x21, 0x58, 0x0c, 0x99, 0x1d, 0xab, 0xef, 0x2f, 0xe0, 0x68, 0xb1, 0xb7, 0x04, - 0x15, 0x19, 0x33, 0x5d, 0x58, 0xeb, 0x0c, 0x7d, 0x26, 0x92, 0x70, 0x8a, 0xac, 0x31, 0x49, 0xc8, - 0xa9, 0xaa, 0x1a, 0xf1, 0x02, 0xdd, 0x87, 0x95, 0x80, 0xd9, 0x9e, 0x69, 0x07, 0xc4, 0x51, 0x76, - 0x4e, 0x09, 0xfa, 0x3f, 0x96, 0xa1, 0x59, 0xf4, 0x15, 0xfa, 0x06, 0x96, 0xfd, 0x50, 0xc8, 0x42, - 0x10, 0xdb, 0xfb, 0xa0, 0xe8, 0x8e, 0xfc, 0xf9, 0x94, 0xd1, 0x89, 0x10, 0x7a, 0x02, 0x55, 0xca, - 0x98, 0xcf, 0x66, 0xaf, 0x54, 0x9e, 0x36, 0xdd, 0xaf, 0x17, 0x81, 0xfa, 0x0b, 0x38, 0x46, 0xa3, - 0xdf, 0x40, 0x9d, 0x44, 0x07, 0x32, 0xe2, 0x53, 0x40, 0x64, 0xab, 0x52, 0x0d, 0x92, 0xd1, 0x95, - 0x07, 0x7a, 0x0e, 0x8d, 0x18, 0x96, 0x26, 0xdc, 0xea, 0xfc, 0xc8, 0xc9, 0x79, 0xa7, 0xbf, 0x80, - 0xd7, 0x48, 0xce, 0x5d, 0xdf, 0x42, 0x3d, 0x36, 0xd8, 0x90, 0x4a, 0xd6, 0x6e, 0x76, 0x33, 0x10, - 0xcb, 0xec, 0x47, 0x1a, 0x9e, 0xc3, 0xba, 0xe9, 0xbb, 0x41, 0x28, 0xa8, 0x65, 0xa8, 0xc2, 0xb9, - 0x78, 0x03, 0x2d, 0xb8, 0x91, 0x48, 0x0d, 0xa4, 0x10, 0xfa, 0x1a, 0xaa, 0xc1, 0x84, 0xf0, 0xb8, - 0x9a, 0x35, 0x76, 0x7f, 0x7b, 0x5d, 0x02, 0xb5, 0x5e, 0x44, 0x68, 0x1c, 0x0b, 0x45, 0xf1, 0xcb, - 0x05, 0x61, 0x91, 0x11, 0x44, 0xa8, 0xca, 0xbd, 0xdd, 0x8a, 0xdb, 0x4f, 0x2b, 0x69, 0x3f, 0xad, - 0xd3, 0xa4, 0x3f, 0xe1, 0x15, 0x85, 0xee, 0x08, 0xf4, 0x04, 0x6a, 0x49, 0x5f, 0xd3, 0x96, 0x94, - 0xe5, 0x45, 0xc1, 0x7d, 0x05, 0xc0, 0x29, 0x34, 0xda, 0xd1, 0x94, 0x45, 0x4a, 0xee, 0xb8, 0x7c, - 0xfd, 0x8e, 0x0a, 0xdd, 0x91, 0xc9, 0x16, 0x06, 0x56, 0x22, 0x5a, 0xbb, 0x5e, 0x54, 0xa1, 0x3b, - 0x02, 0xed, 0xc1, 0x9a, 0xe7, 0x47, 0x75, 0xc3, 0x24, 0x71, 0xaa, 0xae, 0xc8, 0x54, 0xbd, 0x5f, - 0xbc, 0xf6, 0xa3, 0x0c, 0x08, 0xe7, 0x45, 0xd0, 0x53, 0xa8, 0x5f, 0x2a, 0x6f, 0x1a, 0xb6, 0xa5, - 0xd5, 0xe7, 0xde, 0x56, 0xa6, 0x3e, 0x41, 0x82, 0x1e, 0x58, 0xe8, 0x17, 0xd8, 0xe4, 0x82, 0x44, - 0x9d, 0x67, 0x42, 0xbc, 0x31, 0x35, 0x2c, 0x2a, 0x88, 0xed, 0x70, 0xad, 0x21, 0x95, 0x7c, 0x76, - 0x75, 0xdd, 0x8a, 0x84, 0xba, 0x52, 0x66, 0x3f, 0x16, 0xc1, 0x88, 0xcf, 0xd0, 0xf6, 0xd6, 0x61, - 0x4d, 0x85, 0x23, 0xa3, 0x3c, 0x74, 0x84, 0xfe, 0x33, 0x34, 0x4e, 0xde, 0x70, 0x41, 0xdd, 0x34, - 0x62, 0x3f, 0x83, 0x3b, 0x69, 0xf1, 0x31, 0xd4, 0x40, 0xa6, 0x92, 0xbd, 0x49, 0xa7, 0x49, 0x2c, - 0xe9, 0x51, 0xde, 0x47, 0x9d, 0x89, 0x07, 0xc4, 0x4c, 0x5a, 0xd5, 0x94, 0xa0, 0xff, 0xaf, 0x02, - 0x77, 0x66, 0x1a, 0x12, 0xea, 0x42, 0xc5, 0xf5, 0xad, 0xb8, 0x80, 0x34, 0x76, 0xdb, 0xd7, 0x76, - 0xb0, 0x0c, 0xc5, 0xb7, 0x28, 0x96, 0xc2, 0x6f, 0x2f, 0x38, 0xd1, 0x70, 0xe3, 0x51, 0x2e, 0x6c, - 0x6f, 0x2c, 0x73, 0x65, 0x0d, 0x27, 0x4b, 0xf4, 0x0c, 0x56, 0xb9, 0x39, 0xa1, 0x56, 0xe8, 0xc4, - 0xc1, 0x51, 0xb9, 0x36, 0x38, 0xea, 0x29, 0xbe, 0x23, 0xd0, 0x4f, 0xf0, 0x41, 0x40, 0x18, 0xf5, - 0x84, 0xe1, 0xf9, 0x16, 0x35, 0x52, 0x7f, 0xa8, 0x8c, 0x28, 0x26, 0xd5, 0x91, 0x6f, 0xd1, 0x79, - 0x1d, 0x69, 0x23, 0x56, 0x92, 0x63, 0xa3, 0x9f, 0x61, 0x83, 0xd1, 0x11, 0x65, 0xd4, 0x33, 0xb3, - 0x9a, 0x9b, 0xef, 0xdc, 0xef, 0x50, 0xaa, 0x66, 0xaa, 0xfc, 0x3b, 0x58, 0xe7, 0xf2, 0x9e, 0xa7, - 0x05, 0xed, 0xce, 0xfc, 0xaa, 0x9b, 0x0f, 0x07, 0xdc, 0xe0, 0xf9, 0xf0, 0xf8, 0x1a, 0x56, 0x33, - 0x33, 0x32, 0xd7, 0x50, 0xb1, 0x95, 0x49, 0xf3, 0x3a, 0x0a, 0x32, 0xd8, 0xc7, 0xf5, 0x04, 0x3e, - 0xb0, 0xb8, 0x3e, 0xce, 0xf4, 0xc5, 0xe8, 0x36, 0x11, 0xc0, 0xd2, 0x61, 0xe7, 0xe8, 0xac, 0x73, - 0xd0, 0x5c, 0x40, 0x6b, 0xb0, 0x72, 0xd2, 0xed, 0xf7, 0xf6, 0xcf, 0x0e, 0x7a, 0xfb, 0xcd, 0x52, - 0xc4, 0x3a, 0xf9, 0xf1, 0xe4, 0xb4, 0x77, 0xd8, 0x2c, 0xa3, 0x55, 0xa8, 0xe1, 0xde, 0x41, 0xe7, - 0xec, 0xa8, 0xdb, 0x6f, 0x2e, 0x22, 0x04, 0x8d, 0x6e, 0x7f, 0x70, 0xb0, 0x6f, 0xbc, 0x3c, 0xc6, - 0x7f, 0x7c, 0x7e, 0x70, 0xfc, 0xb2, 0x59, 0x89, 0x84, 0x71, 0xaf, 0x7b, 0x7c, 0xde, 0xc3, 0xbd, - 0xfd, 0x66, 0x55, 0x3f, 0x87, 0x66, 0x36, 0x45, 0x65, 0x0f, 0x9e, 0xc9, 0xed, 0xd2, 0x3b, 0xe7, - 0xb6, 0xfe, 0xf7, 0x5a, 0xe6, 0x04, 0x27, 0xf1, 0x98, 0x50, 0x8f, 0x07, 0x52, 0x23, 0x70, 0x88, - 0x77, 0x45, 0xef, 0xcd, 0x66, 0x7b, 0x8c, 0x7e, 0xe1, 0x10, 0x0f, 0x3d, 0x49, 0x67, 0xe1, 0xf2, - 0x4d, 0x4a, 0xba, 0x02, 0xbf, 0xe7, 0x1c, 0x88, 0xfa, 0x45, 0x3f, 0x54, 0xe7, 0x8f, 0x37, 0x45, - 0x07, 0x46, 0xdd, 0x2d, 0x5f, 0xe9, 0x3e, 0x86, 0xba, 0x65, 0x73, 0x32, 0x74, 0xa8, 0x41, 0x1c, - 0x47, 0x56, 0xf7, 0x5a, 0xd4, 0xbe, 0x14, 0xb1, 0xe3, 0x38, 0xa8, 0x05, 0x4b, 0x0e, 0x19, 0x52, - 0x87, 0xab, 0x12, 0xbe, 0x35, 0xd3, 0xe5, 0x25, 0x17, 0x2b, 0x14, 0x7a, 0x06, 0x75, 0xe2, 0x79, - 0xbe, 0x50, 0xa6, 0xc5, 0xc5, 0xfb, 0xde, 0x4c, 0xd7, 0x9d, 0x42, 0x70, 0x16, 0x8f, 0x06, 0xd0, - 0x4c, 0x1e, 0x59, 0x86, 0xe9, 0x7b, 0x82, 0xbe, 0x16, 0xb2, 0xc7, 0xe7, 0x02, 0x5d, 0xfa, 0xf6, - 0x44, 0xc1, 0xba, 0x31, 0x0a, 0xaf, 0xf3, 0x3c, 0x01, 0x7d, 0x09, 0x2b, 0x24, 0x14, 0x13, 0x83, - 0xf9, 0x0e, 0x55, 0x59, 0xa8, 0xcd, 0xd8, 0x11, 0x8a, 0x09, 0xf6, 0x1d, 0x2a, 0xaf, 0xa7, 0x46, - 0xd4, 0x0a, 0x1d, 0x02, 0x7a, 0x15, 0x12, 0x27, 0x32, 0xc2, 0x1f, 0x19, 0x9c, 0xb2, 0x0b, 0xdb, - 0xa4, 0x2a, 0xe1, 0x1e, 0x16, 0xec, 0xf8, 0x53, 0x0c, 0x3c, 0x1e, 0x9d, 0xc4, 0x30, 0xdc, 0x7c, - 0x55, 0xa0, 0x44, 0x4f, 0x12, 0x97, 0xbc, 0x36, 0x02, 0xc2, 0x88, 0xe3, 0x50, 0xc7, 0xe6, 0xae, - 0x86, 0x76, 0x4a, 0x8f, 0xab, 0xb8, 0xe1, 0x92, 0xd7, 0x2f, 0xa6, 0x54, 0xf4, 0x03, 0x6c, 0x31, - 0x72, 0x69, 0x64, 0x26, 0x8e, 0xc8, 0x09, 0x23, 0x7b, 0xac, 0x6d, 0xc8, 0xbd, 0x3f, 0x29, 0xda, - 0x8f, 0xc9, 0xe5, 0x71, 0x3a, 0x6a, 0x74, 0x25, 0x14, 0x6f, 0xb0, 0x59, 0x22, 0x7a, 0x01, 0x68, - 0xf6, 0x71, 0xae, 0x6d, 0xce, 0x0f, 0x3e, 0xd5, 0x1d, 0x3a, 0x29, 0x10, 0xdf, 0x31, 0x8b, 0x24, - 0xf4, 0x2d, 0xac, 0xd9, 0x9e, 0xa0, 0x8c, 0x85, 0x81, 0xb0, 0x87, 0x0e, 0xd5, 0x3e, 0xb8, 0xa2, - 0x14, 0xef, 0xf9, 0xbe, 0x73, 0x1e, 0x4d, 0xaa, 0x38, 0x2f, 0x30, 0xef, 0xa5, 0xb6, 0x35, 0xef, - 0xa5, 0x86, 0x1e, 0x43, 0x85, 0x7a, 0x17, 0x5c, 0xfb, 0x50, 0xee, 0xb0, 0x39, 0x93, 0x2b, 0xde, - 0x05, 0xc7, 0x12, 0x11, 0xbd, 0xba, 0x04, 0x19, 0x73, 0x4d, 0xdb, 0x59, 0x8c, 0x5e, 0x5d, 0xd1, - 0xf7, 0x9e, 0x06, 0x5b, 0xd9, 0xa8, 0x37, 0x22, 0xe5, 0xcc, 0xb6, 0x28, 0xff, 0xbe, 0x52, 0xab, - 0x34, 0xab, 0xba, 0x0b, 0x77, 0xd3, 0x6c, 0x3b, 0xa5, 0xcc, 0xb5, 0xbd, 0xcc, 0x33, 0xfb, 0x7d, - 0xde, 0x2c, 0xe9, 0xa8, 0x5d, 0xce, 0x8c, 0xda, 0xfa, 0x7d, 0xd8, 0x9e, 0xb7, 0x5d, 0xfc, 0x90, - 0xd3, 0x7f, 0x81, 0x87, 0xf3, 0x1e, 0x63, 0xd1, 0x4d, 0xde, 0xc6, 0x83, 0xec, 0xaf, 0x65, 0xd8, - 0xb9, 0x5a, 0xbf, 0x7a, 0x4c, 0x3e, 0x29, 0x4e, 0xf6, 0x1f, 0x16, 0x3d, 0x7e, 0xc6, 0x9c, 0x64, - 0xa4, 0x9f, 0x0e, 0xf4, 0x5f, 0x14, 0x8a, 0xe1, 0x5b, 0xa5, 0x92, 0x52, 0xf8, 0x14, 0xea, 0xa3, - 0xd0, 0x71, 0x6e, 0x3a, 0x19, 0x63, 0x88, 0xd0, 0xe9, 0x44, 0xbc, 0x2a, 0x65, 0x13, 0x63, 0x2b, - 0xd7, 0x09, 0xcb, 0xad, 0xe2, 0xd4, 0xe0, 0xfa, 0xdf, 0xb2, 0xff, 0x56, 0xce, 0xe4, 0x00, 0x79, - 0x1b, 0x97, 0xfe, 0x7b, 0xa8, 0xca, 0xb9, 0x4d, 0x3a, 0xa1, 0x31, 0xdb, 0x9e, 0xf3, 0x13, 0x1f, - 0x8e, 0xc1, 0xfa, 0xbf, 0x4b, 0x70, 0xef, 0x2d, 0xb3, 0xe0, 0x54, 0x6b, 0xe9, 0x1d, 0xb4, 0xa2, - 0xaf, 0xa0, 0xee, 0x9b, 0x66, 0xc8, 0x58, 0x3c, 0x2b, 0x95, 0xaf, 0x9d, 0x95, 0x20, 0x81, 0x77, - 0x44, 0x7e, 0x42, 0x5b, 0x2c, 0x3e, 0x09, 0xef, 0x66, 0xfe, 0x45, 0x24, 0xce, 0x53, 0x21, 0x7c, - 0x01, 0xfa, 0xbc, 0x10, 0x3b, 0x8c, 0x7f, 0xac, 0xdd, 0x52, 0x62, 0x59, 0x34, 0x10, 0x13, 0x79, - 0xa2, 0x2a, 0x8e, 0x17, 0xfa, 0x11, 0x7c, 0xf2, 0xd6, 0x7d, 0x55, 0x74, 0x3f, 0x82, 0x0a, 0x0f, - 0xd2, 0x46, 0xbf, 0x51, 0xec, 0x2a, 0x01, 0xf1, 0xb0, 0x04, 0x7c, 0xfa, 0x0d, 0x34, 0xf2, 0x6e, - 0x45, 0x9b, 0xd0, 0xec, 0xfd, 0xd0, 0xeb, 0x9e, 0x9d, 0x0e, 0x8e, 0x8f, 0x8c, 0x4e, 0xf7, 0x74, - 0x70, 0xde, 0x6b, 0x2e, 0xa0, 0x2d, 0x40, 0x19, 0x2a, 0xee, 0xf6, 0x07, 0xe7, 0xd1, 0xfc, 0xb3, - 0xf7, 0xec, 0xa7, 0xaf, 0xc6, 0xb6, 0x98, 0x84, 0xc3, 0x96, 0xe9, 0xbb, 0x6d, 0xb9, 0x8d, 0xcf, - 0xc6, 0xf1, 0x47, 0x3b, 0xfd, 0xaf, 0x38, 0xa6, 0x5e, 0x3b, 0x18, 0xfe, 0x6e, 0xec, 0xb7, 0xf3, - 0xbf, 0x48, 0x87, 0x4b, 0xf2, 0x7e, 0xbe, 0xf8, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae, 0xc9, - 0xe4, 0xb3, 0x94, 0x15, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json deleted file mode 100644 index c689c48651..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/execution.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/execution.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go deleted file mode 100644 index 5e7b95f8ca..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.pb.go +++ /dev/null @@ -1,938 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/launch_plan.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - any "github.com/golang/protobuf/ptypes/any" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// By default any launch plan regardless of state can be used to launch a workflow execution. -// However, at most one version of a launch plan -// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be -// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier -// group will be observed and trigger executions at a defined cadence. -type LaunchPlanState int32 - -const ( - LaunchPlanState_INACTIVE LaunchPlanState = 0 - LaunchPlanState_ACTIVE LaunchPlanState = 1 -) - -var LaunchPlanState_name = map[int32]string{ - 0: "INACTIVE", - 1: "ACTIVE", -} - -var LaunchPlanState_value = map[string]int32{ - "INACTIVE": 0, - "ACTIVE": 1, -} - -func (x LaunchPlanState) String() string { - return proto.EnumName(LaunchPlanState_name, int32(x)) -} - -func (LaunchPlanState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{0} -} - -// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required -// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to -// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. -type LaunchPlanCreateRequest struct { - // Uniquely identifies a launch plan entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanCreateRequest) Reset() { *m = LaunchPlanCreateRequest{} } -func (m *LaunchPlanCreateRequest) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanCreateRequest) ProtoMessage() {} -func (*LaunchPlanCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{0} -} - -func (m *LaunchPlanCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanCreateRequest.Unmarshal(m, b) -} -func (m *LaunchPlanCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanCreateRequest.Marshal(b, m, deterministic) -} -func (m *LaunchPlanCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanCreateRequest.Merge(m, src) -} -func (m *LaunchPlanCreateRequest) XXX_Size() int { - return xxx_messageInfo_LaunchPlanCreateRequest.Size(m) -} -func (m *LaunchPlanCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanCreateRequest proto.InternalMessageInfo - -func (m *LaunchPlanCreateRequest) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *LaunchPlanCreateRequest) GetSpec() *LaunchPlanSpec { - if m != nil { - return m.Spec - } - return nil -} - -type LaunchPlanCreateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanCreateResponse) Reset() { *m = LaunchPlanCreateResponse{} } -func (m *LaunchPlanCreateResponse) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanCreateResponse) ProtoMessage() {} -func (*LaunchPlanCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{1} -} - -func (m *LaunchPlanCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanCreateResponse.Unmarshal(m, b) -} -func (m *LaunchPlanCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanCreateResponse.Marshal(b, m, deterministic) -} -func (m *LaunchPlanCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanCreateResponse.Merge(m, src) -} -func (m *LaunchPlanCreateResponse) XXX_Size() int { - return xxx_messageInfo_LaunchPlanCreateResponse.Size(m) -} -func (m *LaunchPlanCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanCreateResponse proto.InternalMessageInfo - -// A LaunchPlan provides the capability to templatize workflow executions. -// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. -// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow -// definition doesn't necessarily have a default value for said input. -type LaunchPlan struct { - // Uniquely identifies a launch plan entity. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *LaunchPlanSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // Values computed by the flyte platform after launch plan registration. - Closure *LaunchPlanClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlan) Reset() { *m = LaunchPlan{} } -func (m *LaunchPlan) String() string { return proto.CompactTextString(m) } -func (*LaunchPlan) ProtoMessage() {} -func (*LaunchPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{2} -} - -func (m *LaunchPlan) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlan.Unmarshal(m, b) -} -func (m *LaunchPlan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlan.Marshal(b, m, deterministic) -} -func (m *LaunchPlan) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlan.Merge(m, src) -} -func (m *LaunchPlan) XXX_Size() int { - return xxx_messageInfo_LaunchPlan.Size(m) -} -func (m *LaunchPlan) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlan.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlan proto.InternalMessageInfo - -func (m *LaunchPlan) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *LaunchPlan) GetSpec() *LaunchPlanSpec { - if m != nil { - return m.Spec - } - return nil -} - -func (m *LaunchPlan) GetClosure() *LaunchPlanClosure { - if m != nil { - return m.Closure - } - return nil -} - -// Response object for list launch plan requests. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type LaunchPlanList struct { - LaunchPlans []*LaunchPlan `protobuf:"bytes,1,rep,name=launch_plans,json=launchPlans,proto3" json:"launch_plans,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanList) Reset() { *m = LaunchPlanList{} } -func (m *LaunchPlanList) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanList) ProtoMessage() {} -func (*LaunchPlanList) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{3} -} - -func (m *LaunchPlanList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanList.Unmarshal(m, b) -} -func (m *LaunchPlanList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanList.Marshal(b, m, deterministic) -} -func (m *LaunchPlanList) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanList.Merge(m, src) -} -func (m *LaunchPlanList) XXX_Size() int { - return xxx_messageInfo_LaunchPlanList.Size(m) -} -func (m *LaunchPlanList) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanList.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanList proto.InternalMessageInfo - -func (m *LaunchPlanList) GetLaunchPlans() []*LaunchPlan { - if m != nil { - return m.LaunchPlans - } - return nil -} - -func (m *LaunchPlanList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Defines permissions associated with executions created by this launch plan spec. -// Use either of these roles when they have permissions required by your workflow execution. -// Deprecated. -// -// Deprecated: Do not use. -type Auth struct { - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `protobuf:"bytes,1,opt,name=assumable_iam_role,json=assumableIamRole,proto3" json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `protobuf:"bytes,2,opt,name=kubernetes_service_account,json=kubernetesServiceAccount,proto3" json:"kubernetes_service_account,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Auth) Reset() { *m = Auth{} } -func (m *Auth) String() string { return proto.CompactTextString(m) } -func (*Auth) ProtoMessage() {} -func (*Auth) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{4} -} - -func (m *Auth) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Auth.Unmarshal(m, b) -} -func (m *Auth) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Auth.Marshal(b, m, deterministic) -} -func (m *Auth) XXX_Merge(src proto.Message) { - xxx_messageInfo_Auth.Merge(m, src) -} -func (m *Auth) XXX_Size() int { - return xxx_messageInfo_Auth.Size(m) -} -func (m *Auth) XXX_DiscardUnknown() { - xxx_messageInfo_Auth.DiscardUnknown(m) -} - -var xxx_messageInfo_Auth proto.InternalMessageInfo - -func (m *Auth) GetAssumableIamRole() string { - if m != nil { - return m.AssumableIamRole - } - return "" -} - -func (m *Auth) GetKubernetesServiceAccount() string { - if m != nil { - return m.KubernetesServiceAccount - } - return "" -} - -// User-provided launch plan definition and configuration values. -type LaunchPlanSpec struct { - // Reference to the Workflow template that the launch plan references - WorkflowId *core.Identifier `protobuf:"bytes,1,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Metadata for the Launch Plan - EntityMetadata *LaunchPlanMetadata `protobuf:"bytes,2,opt,name=entity_metadata,json=entityMetadata,proto3" json:"entity_metadata,omitempty"` - // Input values to be passed for the execution. - // These can be overridden when an execution is created with this launch plan. - DefaultInputs *core.ParameterMap `protobuf:"bytes,3,opt,name=default_inputs,json=defaultInputs,proto3" json:"default_inputs,omitempty"` - // Fixed, non-overridable inputs for the Launch Plan. - // These can not be overridden when an execution is created with this launch plan. - FixedInputs *core.LiteralMap `protobuf:"bytes,4,opt,name=fixed_inputs,json=fixedInputs,proto3" json:"fixed_inputs,omitempty"` - // String to indicate the role to use to execute the workflow underneath - Role string `protobuf:"bytes,5,opt,name=role,proto3" json:"role,omitempty"` // Deprecated: Do not use. - // Custom labels to be applied to the execution resource. - Labels *Labels `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` - // Custom annotations to be applied to the execution resource. - Annotations *Annotations `protobuf:"bytes,7,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Indicates the permission associated with workflow executions triggered with this launch plan. - Auth *Auth `protobuf:"bytes,8,opt,name=auth,proto3" json:"auth,omitempty"` // Deprecated: Do not use. - AuthRole *AuthRole `protobuf:"bytes,9,opt,name=auth_role,json=authRole,proto3" json:"auth_role,omitempty"` // Deprecated: Do not use. - // Indicates security context for permissions triggered with this launch plan - SecurityContext *core.SecurityContext `protobuf:"bytes,10,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Indicates the runtime priority of the execution. - QualityOfService *core.QualityOfService `protobuf:"bytes,16,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,17,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. - // This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - // and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `protobuf:"varint,18,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrappers.BoolValue `protobuf:"bytes,19,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,20,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,21,opt,name=envs,proto3" json:"envs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanSpec) Reset() { *m = LaunchPlanSpec{} } -func (m *LaunchPlanSpec) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanSpec) ProtoMessage() {} -func (*LaunchPlanSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{5} -} - -func (m *LaunchPlanSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanSpec.Unmarshal(m, b) -} -func (m *LaunchPlanSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanSpec.Marshal(b, m, deterministic) -} -func (m *LaunchPlanSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanSpec.Merge(m, src) -} -func (m *LaunchPlanSpec) XXX_Size() int { - return xxx_messageInfo_LaunchPlanSpec.Size(m) -} -func (m *LaunchPlanSpec) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanSpec proto.InternalMessageInfo - -func (m *LaunchPlanSpec) GetWorkflowId() *core.Identifier { - if m != nil { - return m.WorkflowId - } - return nil -} - -func (m *LaunchPlanSpec) GetEntityMetadata() *LaunchPlanMetadata { - if m != nil { - return m.EntityMetadata - } - return nil -} - -func (m *LaunchPlanSpec) GetDefaultInputs() *core.ParameterMap { - if m != nil { - return m.DefaultInputs - } - return nil -} - -func (m *LaunchPlanSpec) GetFixedInputs() *core.LiteralMap { - if m != nil { - return m.FixedInputs - } - return nil -} - -// Deprecated: Do not use. -func (m *LaunchPlanSpec) GetRole() string { - if m != nil { - return m.Role - } - return "" -} - -func (m *LaunchPlanSpec) GetLabels() *Labels { - if m != nil { - return m.Labels - } - return nil -} - -func (m *LaunchPlanSpec) GetAnnotations() *Annotations { - if m != nil { - return m.Annotations - } - return nil -} - -// Deprecated: Do not use. -func (m *LaunchPlanSpec) GetAuth() *Auth { - if m != nil { - return m.Auth - } - return nil -} - -// Deprecated: Do not use. -func (m *LaunchPlanSpec) GetAuthRole() *AuthRole { - if m != nil { - return m.AuthRole - } - return nil -} - -func (m *LaunchPlanSpec) GetSecurityContext() *core.SecurityContext { - if m != nil { - return m.SecurityContext - } - return nil -} - -func (m *LaunchPlanSpec) GetQualityOfService() *core.QualityOfService { - if m != nil { - return m.QualityOfService - } - return nil -} - -func (m *LaunchPlanSpec) GetRawOutputDataConfig() *RawOutputDataConfig { - if m != nil { - return m.RawOutputDataConfig - } - return nil -} - -func (m *LaunchPlanSpec) GetMaxParallelism() int32 { - if m != nil { - return m.MaxParallelism - } - return 0 -} - -func (m *LaunchPlanSpec) GetInterruptible() *wrappers.BoolValue { - if m != nil { - return m.Interruptible - } - return nil -} - -func (m *LaunchPlanSpec) GetOverwriteCache() bool { - if m != nil { - return m.OverwriteCache - } - return false -} - -func (m *LaunchPlanSpec) GetEnvs() *Envs { - if m != nil { - return m.Envs - } - return nil -} - -// Values computed by the flyte platform after launch plan registration. -// These include expected_inputs required to be present in a CreateExecutionRequest -// to launch the reference workflow as well timestamp values associated with the launch plan. -type LaunchPlanClosure struct { - // Indicate the Launch plan state. - State LaunchPlanState `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` - // Indicates the set of inputs expected when creating an execution with the Launch plan - ExpectedInputs *core.ParameterMap `protobuf:"bytes,2,opt,name=expected_inputs,json=expectedInputs,proto3" json:"expected_inputs,omitempty"` - // Indicates the set of outputs expected to be produced by creating an execution with the Launch plan - ExpectedOutputs *core.VariableMap `protobuf:"bytes,3,opt,name=expected_outputs,json=expectedOutputs,proto3" json:"expected_outputs,omitempty"` - // Time at which the launch plan was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the launch plan was last updated. - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanClosure) Reset() { *m = LaunchPlanClosure{} } -func (m *LaunchPlanClosure) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanClosure) ProtoMessage() {} -func (*LaunchPlanClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{6} -} - -func (m *LaunchPlanClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanClosure.Unmarshal(m, b) -} -func (m *LaunchPlanClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanClosure.Marshal(b, m, deterministic) -} -func (m *LaunchPlanClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanClosure.Merge(m, src) -} -func (m *LaunchPlanClosure) XXX_Size() int { - return xxx_messageInfo_LaunchPlanClosure.Size(m) -} -func (m *LaunchPlanClosure) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanClosure proto.InternalMessageInfo - -func (m *LaunchPlanClosure) GetState() LaunchPlanState { - if m != nil { - return m.State - } - return LaunchPlanState_INACTIVE -} - -func (m *LaunchPlanClosure) GetExpectedInputs() *core.ParameterMap { - if m != nil { - return m.ExpectedInputs - } - return nil -} - -func (m *LaunchPlanClosure) GetExpectedOutputs() *core.VariableMap { - if m != nil { - return m.ExpectedOutputs - } - return nil -} - -func (m *LaunchPlanClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -func (m *LaunchPlanClosure) GetUpdatedAt() *timestamp.Timestamp { - if m != nil { - return m.UpdatedAt - } - return nil -} - -// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch -// the reference workflow. -type LaunchPlanMetadata struct { - // Schedule to execute the Launch Plan - Schedule *Schedule `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` - // List of notifications based on Execution status transitions - Notifications []*Notification `protobuf:"bytes,2,rep,name=notifications,proto3" json:"notifications,omitempty"` - // Additional metadata for how to launch the launch plan - LaunchConditions *any.Any `protobuf:"bytes,3,opt,name=launch_conditions,json=launchConditions,proto3" json:"launch_conditions,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanMetadata) Reset() { *m = LaunchPlanMetadata{} } -func (m *LaunchPlanMetadata) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanMetadata) ProtoMessage() {} -func (*LaunchPlanMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{7} -} - -func (m *LaunchPlanMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanMetadata.Unmarshal(m, b) -} -func (m *LaunchPlanMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanMetadata.Marshal(b, m, deterministic) -} -func (m *LaunchPlanMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanMetadata.Merge(m, src) -} -func (m *LaunchPlanMetadata) XXX_Size() int { - return xxx_messageInfo_LaunchPlanMetadata.Size(m) -} -func (m *LaunchPlanMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanMetadata proto.InternalMessageInfo - -func (m *LaunchPlanMetadata) GetSchedule() *Schedule { - if m != nil { - return m.Schedule - } - return nil -} - -func (m *LaunchPlanMetadata) GetNotifications() []*Notification { - if m != nil { - return m.Notifications - } - return nil -} - -func (m *LaunchPlanMetadata) GetLaunchConditions() *any.Any { - if m != nil { - return m.LaunchConditions - } - return nil -} - -// Request to set the referenced launch plan state to the configured value. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type LaunchPlanUpdateRequest struct { - // Identifier of launch plan for which to change state. - // +required. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Desired state to apply to the launch plan. - // +required. - State LaunchPlanState `protobuf:"varint,2,opt,name=state,proto3,enum=flyteidl.admin.LaunchPlanState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanUpdateRequest) Reset() { *m = LaunchPlanUpdateRequest{} } -func (m *LaunchPlanUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanUpdateRequest) ProtoMessage() {} -func (*LaunchPlanUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{8} -} - -func (m *LaunchPlanUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanUpdateRequest.Unmarshal(m, b) -} -func (m *LaunchPlanUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanUpdateRequest.Marshal(b, m, deterministic) -} -func (m *LaunchPlanUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanUpdateRequest.Merge(m, src) -} -func (m *LaunchPlanUpdateRequest) XXX_Size() int { - return xxx_messageInfo_LaunchPlanUpdateRequest.Size(m) -} -func (m *LaunchPlanUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanUpdateRequest proto.InternalMessageInfo - -func (m *LaunchPlanUpdateRequest) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *LaunchPlanUpdateRequest) GetState() LaunchPlanState { - if m != nil { - return m.State - } - return LaunchPlanState_INACTIVE -} - -// Purposefully empty, may be populated in the future. -type LaunchPlanUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LaunchPlanUpdateResponse) Reset() { *m = LaunchPlanUpdateResponse{} } -func (m *LaunchPlanUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*LaunchPlanUpdateResponse) ProtoMessage() {} -func (*LaunchPlanUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{9} -} - -func (m *LaunchPlanUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LaunchPlanUpdateResponse.Unmarshal(m, b) -} -func (m *LaunchPlanUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LaunchPlanUpdateResponse.Marshal(b, m, deterministic) -} -func (m *LaunchPlanUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_LaunchPlanUpdateResponse.Merge(m, src) -} -func (m *LaunchPlanUpdateResponse) XXX_Size() int { - return xxx_messageInfo_LaunchPlanUpdateResponse.Size(m) -} -func (m *LaunchPlanUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_LaunchPlanUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_LaunchPlanUpdateResponse proto.InternalMessageInfo - -// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type ActiveLaunchPlanRequest struct { - // +required. - Id *NamedEntityIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ActiveLaunchPlanRequest) Reset() { *m = ActiveLaunchPlanRequest{} } -func (m *ActiveLaunchPlanRequest) String() string { return proto.CompactTextString(m) } -func (*ActiveLaunchPlanRequest) ProtoMessage() {} -func (*ActiveLaunchPlanRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{10} -} - -func (m *ActiveLaunchPlanRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ActiveLaunchPlanRequest.Unmarshal(m, b) -} -func (m *ActiveLaunchPlanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ActiveLaunchPlanRequest.Marshal(b, m, deterministic) -} -func (m *ActiveLaunchPlanRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActiveLaunchPlanRequest.Merge(m, src) -} -func (m *ActiveLaunchPlanRequest) XXX_Size() int { - return xxx_messageInfo_ActiveLaunchPlanRequest.Size(m) -} -func (m *ActiveLaunchPlanRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ActiveLaunchPlanRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ActiveLaunchPlanRequest proto.InternalMessageInfo - -func (m *ActiveLaunchPlanRequest) GetId() *NamedEntityIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Represents a request structure to list active launch plans within a project/domain. -// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -type ActiveLaunchPlanListRequest struct { - // Name of the project that contains the identifiers. - // +required. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the identifiers belongs to within the project. - // +required. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Indicates the number of resources to be returned. - // +required. - Limit uint32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ActiveLaunchPlanListRequest) Reset() { *m = ActiveLaunchPlanListRequest{} } -func (m *ActiveLaunchPlanListRequest) String() string { return proto.CompactTextString(m) } -func (*ActiveLaunchPlanListRequest) ProtoMessage() {} -func (*ActiveLaunchPlanListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_368a863574f5e699, []int{11} -} - -func (m *ActiveLaunchPlanListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ActiveLaunchPlanListRequest.Unmarshal(m, b) -} -func (m *ActiveLaunchPlanListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ActiveLaunchPlanListRequest.Marshal(b, m, deterministic) -} -func (m *ActiveLaunchPlanListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ActiveLaunchPlanListRequest.Merge(m, src) -} -func (m *ActiveLaunchPlanListRequest) XXX_Size() int { - return xxx_messageInfo_ActiveLaunchPlanListRequest.Size(m) -} -func (m *ActiveLaunchPlanListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ActiveLaunchPlanListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ActiveLaunchPlanListRequest proto.InternalMessageInfo - -func (m *ActiveLaunchPlanListRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ActiveLaunchPlanListRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ActiveLaunchPlanListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ActiveLaunchPlanListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *ActiveLaunchPlanListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.admin.LaunchPlanState", LaunchPlanState_name, LaunchPlanState_value) - proto.RegisterType((*LaunchPlanCreateRequest)(nil), "flyteidl.admin.LaunchPlanCreateRequest") - proto.RegisterType((*LaunchPlanCreateResponse)(nil), "flyteidl.admin.LaunchPlanCreateResponse") - proto.RegisterType((*LaunchPlan)(nil), "flyteidl.admin.LaunchPlan") - proto.RegisterType((*LaunchPlanList)(nil), "flyteidl.admin.LaunchPlanList") - proto.RegisterType((*Auth)(nil), "flyteidl.admin.Auth") - proto.RegisterType((*LaunchPlanSpec)(nil), "flyteidl.admin.LaunchPlanSpec") - proto.RegisterType((*LaunchPlanClosure)(nil), "flyteidl.admin.LaunchPlanClosure") - proto.RegisterType((*LaunchPlanMetadata)(nil), "flyteidl.admin.LaunchPlanMetadata") - proto.RegisterType((*LaunchPlanUpdateRequest)(nil), "flyteidl.admin.LaunchPlanUpdateRequest") - proto.RegisterType((*LaunchPlanUpdateResponse)(nil), "flyteidl.admin.LaunchPlanUpdateResponse") - proto.RegisterType((*ActiveLaunchPlanRequest)(nil), "flyteidl.admin.ActiveLaunchPlanRequest") - proto.RegisterType((*ActiveLaunchPlanListRequest)(nil), "flyteidl.admin.ActiveLaunchPlanListRequest") -} - -func init() { proto.RegisterFile("flyteidl/admin/launch_plan.proto", fileDescriptor_368a863574f5e699) } - -var fileDescriptor_368a863574f5e699 = []byte{ - // 1183 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdd, 0x8e, 0x1b, 0x35, - 0x14, 0x26, 0x69, 0xf6, 0xef, 0x6c, 0x37, 0x9b, 0xba, 0x65, 0x3b, 0x4d, 0x4b, 0xbb, 0x04, 0x21, - 0x16, 0x68, 0x13, 0xa9, 0xd0, 0x8b, 0xfe, 0x49, 0x64, 0xd3, 0xbd, 0x88, 0xe8, 0xcf, 0xe2, 0x2d, - 0x15, 0xe2, 0x66, 0xe4, 0xcc, 0x9c, 0x24, 0xa6, 0x9e, 0xf1, 0xd4, 0xf6, 0xec, 0x66, 0xc5, 0x0b, - 0x21, 0xde, 0x81, 0x47, 0xe0, 0x82, 0x37, 0x42, 0xe3, 0xf1, 0x4c, 0x92, 0xc9, 0x56, 0x05, 0x24, - 0xae, 0x66, 0xec, 0xf3, 0x7d, 0x9f, 0x7d, 0x8e, 0x8f, 0xcf, 0x31, 0xec, 0x8f, 0xc5, 0xb9, 0x41, - 0x1e, 0x8a, 0x1e, 0x0b, 0x23, 0x1e, 0xf7, 0x04, 0x4b, 0xe3, 0x60, 0xea, 0x27, 0x82, 0xc5, 0xdd, - 0x44, 0x49, 0x23, 0x49, 0xb3, 0x40, 0x74, 0x2d, 0xa2, 0xfd, 0x49, 0xc9, 0x08, 0xa4, 0xc2, 0x1e, - 0xce, 0x30, 0x48, 0x0d, 0x97, 0x0e, 0xde, 0xbe, 0xb5, 0x6c, 0x16, 0xdc, 0xa0, 0x62, 0x42, 0x3b, - 0xeb, 0xed, 0x65, 0x2b, 0x0f, 0x31, 0x36, 0x7c, 0xcc, 0x51, 0x39, 0x7b, 0x45, 0x9c, 0xc7, 0x06, - 0xd5, 0x98, 0x05, 0x78, 0xb1, 0xb8, 0xc6, 0x20, 0x55, 0xdc, 0x9c, 0xaf, 0x90, 0x73, 0x5f, 0x74, - 0x30, 0xc5, 0x30, 0x15, 0x05, 0xf9, 0x66, 0xc5, 0x1c, 0xc8, 0x28, 0x2a, 0xb7, 0x7d, 0x63, 0x22, - 0xe5, 0x44, 0x60, 0xcf, 0x8e, 0x46, 0xe9, 0xb8, 0xc7, 0xe2, 0x42, 0xf6, 0x4e, 0xd5, 0x64, 0x78, - 0x84, 0xda, 0xb0, 0x28, 0x29, 0x9c, 0xaa, 0x02, 0xce, 0x14, 0x4b, 0x12, 0x54, 0xce, 0xe9, 0xce, - 0x0c, 0xae, 0x3f, 0xb7, 0x61, 0x3d, 0x16, 0x2c, 0x1e, 0x28, 0x64, 0x06, 0x29, 0xbe, 0x4b, 0x51, - 0x1b, 0xf2, 0x25, 0xd4, 0x79, 0xe8, 0xd5, 0xf6, 0x6b, 0x07, 0xdb, 0xf7, 0x6f, 0x74, 0xcb, 0x48, - 0x67, 0xde, 0x75, 0x87, 0x65, 0x70, 0x68, 0x9d, 0x87, 0xe4, 0x3e, 0x34, 0x74, 0x82, 0x81, 0x57, - 0xb7, 0xe0, 0xdb, 0xdd, 0xe5, 0x63, 0xe9, 0xce, 0x57, 0x38, 0x49, 0x30, 0xa0, 0x16, 0xdb, 0x69, - 0x83, 0xb7, 0xba, 0xb2, 0x4e, 0x64, 0xac, 0xb1, 0xf3, 0x5b, 0x0d, 0x60, 0x6e, 0xfc, 0x9f, 0x77, - 0x42, 0x1e, 0xc3, 0x46, 0x20, 0xa4, 0x4e, 0x15, 0x7a, 0x97, 0x2c, 0xed, 0xd3, 0xf7, 0xd3, 0x06, - 0x39, 0x90, 0x16, 0x8c, 0x0e, 0x42, 0x73, 0x6e, 0x7d, 0xce, 0xb5, 0x21, 0x4f, 0xe1, 0xf2, 0x42, - 0xa6, 0x6a, 0xaf, 0xb6, 0x7f, 0xe9, 0x60, 0xfb, 0x7e, 0xfb, 0xfd, 0x9a, 0x74, 0x5b, 0x94, 0xff, - 0x9a, 0x5c, 0x83, 0x35, 0x23, 0xdf, 0x62, 0x6c, 0x5d, 0xd8, 0xa2, 0xf9, 0xa0, 0x73, 0x0a, 0x8d, - 0x7e, 0x6a, 0xa6, 0xe4, 0x2e, 0x10, 0xa6, 0x75, 0x1a, 0xb1, 0x91, 0x40, 0x9f, 0xb3, 0xc8, 0x57, - 0x52, 0xa0, 0x0d, 0xcd, 0x16, 0x6d, 0x95, 0x96, 0x21, 0x8b, 0xa8, 0x14, 0x48, 0x9e, 0x40, 0xfb, - 0x6d, 0x3a, 0x42, 0x15, 0xa3, 0x41, 0xed, 0x6b, 0x54, 0xa7, 0x3c, 0x40, 0x9f, 0x05, 0x81, 0x4c, - 0x63, 0xe3, 0x16, 0xf0, 0xe6, 0x88, 0x93, 0x1c, 0xd0, 0xcf, 0xed, 0x8f, 0xea, 0x5e, 0xad, 0xf3, - 0xc7, 0xc6, 0xa2, 0x7f, 0x59, 0xd0, 0xc8, 0x23, 0xd8, 0x3e, 0x93, 0xea, 0xed, 0x58, 0xc8, 0x33, - 0xff, 0x9f, 0x1c, 0x0b, 0x14, 0xe8, 0x61, 0x48, 0xbe, 0x87, 0xdd, 0x6c, 0xde, 0x9c, 0xfb, 0x11, - 0x1a, 0x16, 0x32, 0xc3, 0xdc, 0x49, 0x75, 0xde, 0x1f, 0x9e, 0x17, 0x0e, 0x49, 0x9b, 0x39, 0xb5, - 0x18, 0x93, 0x43, 0x68, 0x86, 0x38, 0x66, 0xa9, 0x30, 0x3e, 0x8f, 0x93, 0xd4, 0x68, 0x77, 0x7c, - 0x37, 0x2b, 0x7b, 0x39, 0x66, 0x8a, 0x45, 0x68, 0x50, 0xbd, 0x60, 0x09, 0xdd, 0x71, 0x94, 0xa1, - 0x65, 0x90, 0x27, 0x70, 0x79, 0xcc, 0x67, 0x18, 0x16, 0x0a, 0x8d, 0x0b, 0xbd, 0x79, 0x9e, 0x57, - 0x8a, 0x8c, 0xbf, 0x6d, 0xe1, 0x8e, 0xbd, 0x07, 0x0d, 0x1b, 0xff, 0xb5, 0x2c, 0x92, 0x87, 0x75, - 0xaf, 0x46, 0xed, 0x98, 0x74, 0x61, 0x5d, 0xb0, 0x11, 0x0a, 0xed, 0xad, 0x5b, 0xbd, 0xbd, 0x55, - 0xef, 0x32, 0x2b, 0x75, 0x28, 0xf2, 0x14, 0xb6, 0x59, 0x1c, 0x4b, 0xc3, 0xb2, 0x62, 0xa5, 0xbd, - 0x8d, 0xaa, 0x1b, 0x39, 0xa9, 0x3f, 0x87, 0xd0, 0x45, 0x3c, 0xb9, 0x0b, 0x0d, 0x96, 0x9a, 0xa9, - 0xb7, 0x69, 0x79, 0xd7, 0x56, 0x78, 0xa9, 0x99, 0xe6, 0x9b, 0xcb, 0x50, 0xe4, 0x21, 0x6c, 0x65, - 0xdf, 0x3c, 0x73, 0xb6, 0x2c, 0xc5, 0xbb, 0x88, 0x92, 0x65, 0x90, 0xa5, 0x6d, 0x32, 0x37, 0x22, - 0x43, 0x68, 0x15, 0x75, 0xcd, 0x0f, 0x64, 0x6c, 0x70, 0x66, 0x3c, 0xa8, 0xde, 0x34, 0x1b, 0xb1, - 0x13, 0x07, 0x1b, 0xe4, 0x28, 0xba, 0xab, 0x97, 0x27, 0xc8, 0x0b, 0x20, 0xef, 0x52, 0x26, 0x32, - 0x25, 0x39, 0x2e, 0x52, 0xd3, 0x6b, 0x59, 0xb1, 0x3b, 0x15, 0xb1, 0x1f, 0x72, 0xe0, 0xab, 0xb1, - 0x4b, 0x50, 0xda, 0x7a, 0x57, 0x99, 0x21, 0x3f, 0xc1, 0x9e, 0x62, 0x67, 0xbe, 0x4c, 0x4d, 0x92, - 0x1a, 0x3f, 0x4b, 0x8f, 0x6c, 0x83, 0x63, 0x3e, 0xf1, 0xae, 0x58, 0xc9, 0xcf, 0xaa, 0x1e, 0x52, - 0x76, 0xf6, 0xca, 0x82, 0x9f, 0x31, 0xc3, 0x06, 0x16, 0x4a, 0xaf, 0xaa, 0xd5, 0x49, 0xf2, 0x05, - 0xec, 0x46, 0x6c, 0xe6, 0x27, 0x4c, 0x31, 0x21, 0x50, 0x70, 0x1d, 0x79, 0x64, 0xbf, 0x76, 0xb0, - 0x46, 0x9b, 0x11, 0x9b, 0x1d, 0xcf, 0x67, 0xc9, 0x77, 0xb0, 0x63, 0x7b, 0x82, 0x4a, 0x13, 0xc3, - 0x47, 0x02, 0xbd, 0xab, 0x76, 0xe5, 0x76, 0x37, 0x2f, 0xc1, 0xdd, 0xa2, 0x04, 0x77, 0x0f, 0xa5, - 0x14, 0x6f, 0x98, 0x48, 0x91, 0x2e, 0x13, 0xb2, 0xa5, 0xe4, 0x29, 0xaa, 0x33, 0xc5, 0x0d, 0xfa, - 0x01, 0x0b, 0xa6, 0xe8, 0x5d, 0xdb, 0xaf, 0x1d, 0x6c, 0xd2, 0x66, 0x39, 0x3d, 0xc8, 0x66, 0xc9, - 0x01, 0x34, 0x30, 0x3e, 0xd5, 0xde, 0xc7, 0x17, 0x1f, 0xf8, 0x51, 0x7c, 0xaa, 0xa9, 0x45, 0x74, - 0xfe, 0xac, 0xc3, 0x95, 0x95, 0xea, 0x45, 0x1e, 0xc0, 0x9a, 0x36, 0xcc, 0xe4, 0x85, 0xa3, 0xb9, - 0x18, 0xef, 0x95, 0x32, 0x99, 0xc1, 0x68, 0x8e, 0x26, 0xcf, 0x60, 0x17, 0x67, 0x09, 0x06, 0x66, - 0x7e, 0x5f, 0xea, 0x1f, 0xbe, 0x71, 0xcd, 0x82, 0xe3, 0x2e, 0xcd, 0x11, 0xb4, 0x4a, 0x95, 0xfc, - 0xbc, 0x8a, 0x8b, 0xdb, 0xae, 0xc8, 0xbc, 0x61, 0x8a, 0x67, 0xe5, 0x2c, 0x53, 0x29, 0x57, 0xce, - 0x0f, 0x48, 0x93, 0x87, 0x00, 0x81, 0xed, 0x1a, 0xa1, 0xcf, 0x8c, 0xbb, 0xb7, 0xab, 0xb1, 0x7e, - 0x5d, 0xf4, 0x43, 0xba, 0xe5, 0xd0, 0x7d, 0x93, 0x51, 0xd3, 0x24, 0x2c, 0xa8, 0x6b, 0x1f, 0xa6, - 0x3a, 0x74, 0xdf, 0x74, 0xfe, 0xaa, 0x01, 0x59, 0x2d, 0x4d, 0xe4, 0x5b, 0xd8, 0x2c, 0x3a, 0xba, - 0x2b, 0x88, 0x2b, 0x57, 0xea, 0xc4, 0xd9, 0x69, 0x89, 0x24, 0x87, 0xb0, 0x13, 0xcb, 0xac, 0x4a, - 0x06, 0xee, 0xe2, 0xd7, 0x6d, 0xab, 0xb8, 0x55, 0xa5, 0xbe, 0x5c, 0x00, 0xd1, 0x65, 0x0a, 0xe9, - 0xc3, 0x15, 0xd7, 0x6d, 0x02, 0x19, 0x87, 0x3c, 0xd7, 0xb9, 0xe4, 0xf2, 0xa2, 0xea, 0x52, 0x3f, - 0x3e, 0xa7, 0xad, 0x1c, 0x3e, 0x28, 0xd1, 0x9d, 0x5f, 0x17, 0xdf, 0x00, 0x3f, 0x5a, 0x57, 0xff, - 0xc3, 0x1b, 0xa0, 0xcc, 0xa9, 0xfa, 0xbf, 0xc9, 0xa9, 0xe5, 0x67, 0x40, 0xb1, 0xb8, 0x7b, 0x06, - 0x1c, 0xc3, 0xf5, 0x7e, 0x60, 0xf8, 0x29, 0x2e, 0xf4, 0x4a, 0xb7, 0xb1, 0x07, 0x0b, 0x1b, 0xfb, - 0x7c, 0x25, 0x5e, 0x2c, 0xc2, 0xf0, 0xc8, 0x36, 0x8b, 0xe5, 0x4d, 0x76, 0x7e, 0xaf, 0xc1, 0xcd, - 0xaa, 0x64, 0xd6, 0xb4, 0x0b, 0x59, 0x0f, 0x36, 0x12, 0x25, 0x7f, 0xc1, 0xc0, 0xb8, 0x9e, 0x5a, - 0x0c, 0xc9, 0x1e, 0xac, 0x87, 0x32, 0x62, 0xbc, 0xe8, 0xcb, 0x6e, 0x94, 0xb5, 0x6b, 0xc1, 0x23, - 0x6e, 0x6c, 0xcc, 0x77, 0x68, 0x3e, 0x98, 0x37, 0xf1, 0xc6, 0x42, 0x13, 0x27, 0xf7, 0x60, 0x43, - 0x4b, 0x65, 0xfc, 0xd1, 0xb9, 0x4b, 0xba, 0x95, 0x9b, 0x7b, 0x22, 0x95, 0xa1, 0xeb, 0x19, 0xe8, - 0xf0, 0xfc, 0xab, 0xaf, 0x61, 0xb7, 0x12, 0x34, 0x72, 0x19, 0x36, 0x87, 0x2f, 0xfb, 0x83, 0xd7, - 0xc3, 0x37, 0x47, 0xad, 0x8f, 0x08, 0xc0, 0xba, 0xfb, 0xaf, 0x1d, 0x3e, 0xfd, 0xf9, 0xf1, 0x84, - 0x9b, 0x69, 0x3a, 0xea, 0x06, 0x32, 0xea, 0x59, 0x59, 0xa9, 0x26, 0xf9, 0x4f, 0xaf, 0x7c, 0x5d, - 0x4e, 0x30, 0xee, 0x25, 0xa3, 0x7b, 0x13, 0xd9, 0x5b, 0x7e, 0x70, 0x8e, 0xd6, 0x6d, 0x8e, 0x7c, - 0xf3, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x0d, 0xba, 0x5e, 0x97, 0x74, 0x0b, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json deleted file mode 100644 index 6a473691ef..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/launch_plan.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/launch_plan.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go deleted file mode 100644 index b721e43d73..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.pb.go +++ /dev/null @@ -1,993 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/matchable_resource.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - wrappers "github.com/golang/protobuf/ptypes/wrappers" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes -// based on matching tags. -type MatchableResource int32 - -const ( - // Applies to customizable task resource requests and limits. - MatchableResource_TASK_RESOURCE MatchableResource = 0 - // Applies to configuring templated kubernetes cluster resources. - MatchableResource_CLUSTER_RESOURCE MatchableResource = 1 - // Configures task and dynamic task execution queue assignment. - MatchableResource_EXECUTION_QUEUE MatchableResource = 2 - // Configures the K8s cluster label to be used for execution to be run - MatchableResource_EXECUTION_CLUSTER_LABEL MatchableResource = 3 - // Configures default quality of service when undefined in an execution spec. - MatchableResource_QUALITY_OF_SERVICE_SPECIFICATION MatchableResource = 4 - // Selects configurable plugin implementation behavior for a given task type. - MatchableResource_PLUGIN_OVERRIDE MatchableResource = 5 - // Adds defaults for customizable workflow-execution specifications and overrides. - MatchableResource_WORKFLOW_EXECUTION_CONFIG MatchableResource = 6 - // Controls how to select an available cluster on which this execution should run. - MatchableResource_CLUSTER_ASSIGNMENT MatchableResource = 7 -) - -var MatchableResource_name = map[int32]string{ - 0: "TASK_RESOURCE", - 1: "CLUSTER_RESOURCE", - 2: "EXECUTION_QUEUE", - 3: "EXECUTION_CLUSTER_LABEL", - 4: "QUALITY_OF_SERVICE_SPECIFICATION", - 5: "PLUGIN_OVERRIDE", - 6: "WORKFLOW_EXECUTION_CONFIG", - 7: "CLUSTER_ASSIGNMENT", -} - -var MatchableResource_value = map[string]int32{ - "TASK_RESOURCE": 0, - "CLUSTER_RESOURCE": 1, - "EXECUTION_QUEUE": 2, - "EXECUTION_CLUSTER_LABEL": 3, - "QUALITY_OF_SERVICE_SPECIFICATION": 4, - "PLUGIN_OVERRIDE": 5, - "WORKFLOW_EXECUTION_CONFIG": 6, - "CLUSTER_ASSIGNMENT": 7, -} - -func (x MatchableResource) String() string { - return proto.EnumName(MatchableResource_name, int32(x)) -} - -func (MatchableResource) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{0} -} - -type PluginOverride_MissingPluginBehavior int32 - -const ( - // By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - PluginOverride_FAIL PluginOverride_MissingPluginBehavior = 0 - // Uses the system-configured default implementation. - PluginOverride_USE_DEFAULT PluginOverride_MissingPluginBehavior = 1 -) - -var PluginOverride_MissingPluginBehavior_name = map[int32]string{ - 0: "FAIL", - 1: "USE_DEFAULT", -} - -var PluginOverride_MissingPluginBehavior_value = map[string]int32{ - "FAIL": 0, - "USE_DEFAULT": 1, -} - -func (x PluginOverride_MissingPluginBehavior) String() string { - return proto.EnumName(PluginOverride_MissingPluginBehavior_name, int32(x)) -} - -func (PluginOverride_MissingPluginBehavior) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{5, 0} -} - -// Defines a set of overridable task resource attributes set during task registration. -type TaskResourceSpec struct { - Cpu string `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` - Gpu string `protobuf:"bytes,2,opt,name=gpu,proto3" json:"gpu,omitempty"` - Memory string `protobuf:"bytes,3,opt,name=memory,proto3" json:"memory,omitempty"` - Storage string `protobuf:"bytes,4,opt,name=storage,proto3" json:"storage,omitempty"` - EphemeralStorage string `protobuf:"bytes,5,opt,name=ephemeral_storage,json=ephemeralStorage,proto3" json:"ephemeral_storage,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskResourceSpec) Reset() { *m = TaskResourceSpec{} } -func (m *TaskResourceSpec) String() string { return proto.CompactTextString(m) } -func (*TaskResourceSpec) ProtoMessage() {} -func (*TaskResourceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{0} -} - -func (m *TaskResourceSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskResourceSpec.Unmarshal(m, b) -} -func (m *TaskResourceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskResourceSpec.Marshal(b, m, deterministic) -} -func (m *TaskResourceSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskResourceSpec.Merge(m, src) -} -func (m *TaskResourceSpec) XXX_Size() int { - return xxx_messageInfo_TaskResourceSpec.Size(m) -} -func (m *TaskResourceSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TaskResourceSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskResourceSpec proto.InternalMessageInfo - -func (m *TaskResourceSpec) GetCpu() string { - if m != nil { - return m.Cpu - } - return "" -} - -func (m *TaskResourceSpec) GetGpu() string { - if m != nil { - return m.Gpu - } - return "" -} - -func (m *TaskResourceSpec) GetMemory() string { - if m != nil { - return m.Memory - } - return "" -} - -func (m *TaskResourceSpec) GetStorage() string { - if m != nil { - return m.Storage - } - return "" -} - -func (m *TaskResourceSpec) GetEphemeralStorage() string { - if m != nil { - return m.EphemeralStorage - } - return "" -} - -// Defines task resource defaults and limits that will be applied at task registration. -type TaskResourceAttributes struct { - Defaults *TaskResourceSpec `protobuf:"bytes,1,opt,name=defaults,proto3" json:"defaults,omitempty"` - Limits *TaskResourceSpec `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskResourceAttributes) Reset() { *m = TaskResourceAttributes{} } -func (m *TaskResourceAttributes) String() string { return proto.CompactTextString(m) } -func (*TaskResourceAttributes) ProtoMessage() {} -func (*TaskResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{1} -} - -func (m *TaskResourceAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskResourceAttributes.Unmarshal(m, b) -} -func (m *TaskResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskResourceAttributes.Marshal(b, m, deterministic) -} -func (m *TaskResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskResourceAttributes.Merge(m, src) -} -func (m *TaskResourceAttributes) XXX_Size() int { - return xxx_messageInfo_TaskResourceAttributes.Size(m) -} -func (m *TaskResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_TaskResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskResourceAttributes proto.InternalMessageInfo - -func (m *TaskResourceAttributes) GetDefaults() *TaskResourceSpec { - if m != nil { - return m.Defaults - } - return nil -} - -func (m *TaskResourceAttributes) GetLimits() *TaskResourceSpec { - if m != nil { - return m.Limits - } - return nil -} - -type ClusterResourceAttributes struct { - // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). - // Map keys are the *case-sensitive* names of variables in templatized resource files. - // Map values should be the custom values which get substituted during resource creation. - Attributes map[string]string `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ClusterResourceAttributes) Reset() { *m = ClusterResourceAttributes{} } -func (m *ClusterResourceAttributes) String() string { return proto.CompactTextString(m) } -func (*ClusterResourceAttributes) ProtoMessage() {} -func (*ClusterResourceAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{2} -} - -func (m *ClusterResourceAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ClusterResourceAttributes.Unmarshal(m, b) -} -func (m *ClusterResourceAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ClusterResourceAttributes.Marshal(b, m, deterministic) -} -func (m *ClusterResourceAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ClusterResourceAttributes.Merge(m, src) -} -func (m *ClusterResourceAttributes) XXX_Size() int { - return xxx_messageInfo_ClusterResourceAttributes.Size(m) -} -func (m *ClusterResourceAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ClusterResourceAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ClusterResourceAttributes proto.InternalMessageInfo - -func (m *ClusterResourceAttributes) GetAttributes() map[string]string { - if m != nil { - return m.Attributes - } - return nil -} - -type ExecutionQueueAttributes struct { - // Tags used for assigning execution queues for tasks defined within this project. - Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionQueueAttributes) Reset() { *m = ExecutionQueueAttributes{} } -func (m *ExecutionQueueAttributes) String() string { return proto.CompactTextString(m) } -func (*ExecutionQueueAttributes) ProtoMessage() {} -func (*ExecutionQueueAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{3} -} - -func (m *ExecutionQueueAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionQueueAttributes.Unmarshal(m, b) -} -func (m *ExecutionQueueAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionQueueAttributes.Marshal(b, m, deterministic) -} -func (m *ExecutionQueueAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionQueueAttributes.Merge(m, src) -} -func (m *ExecutionQueueAttributes) XXX_Size() int { - return xxx_messageInfo_ExecutionQueueAttributes.Size(m) -} -func (m *ExecutionQueueAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionQueueAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionQueueAttributes proto.InternalMessageInfo - -func (m *ExecutionQueueAttributes) GetTags() []string { - if m != nil { - return m.Tags - } - return nil -} - -type ExecutionClusterLabel struct { - // Label value to determine where the execution will be run - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionClusterLabel) Reset() { *m = ExecutionClusterLabel{} } -func (m *ExecutionClusterLabel) String() string { return proto.CompactTextString(m) } -func (*ExecutionClusterLabel) ProtoMessage() {} -func (*ExecutionClusterLabel) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{4} -} - -func (m *ExecutionClusterLabel) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionClusterLabel.Unmarshal(m, b) -} -func (m *ExecutionClusterLabel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionClusterLabel.Marshal(b, m, deterministic) -} -func (m *ExecutionClusterLabel) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionClusterLabel.Merge(m, src) -} -func (m *ExecutionClusterLabel) XXX_Size() int { - return xxx_messageInfo_ExecutionClusterLabel.Size(m) -} -func (m *ExecutionClusterLabel) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionClusterLabel.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionClusterLabel proto.InternalMessageInfo - -func (m *ExecutionClusterLabel) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. -// In addition to an override implementation a selection of fallbacks can be provided or other modes -// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. -type PluginOverride struct { - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - PluginId []string `protobuf:"bytes,2,rep,name=plugin_id,json=pluginId,proto3" json:"plugin_id,omitempty"` - // Defines the behavior when no plugin from the plugin_id list is not found. - MissingPluginBehavior PluginOverride_MissingPluginBehavior `protobuf:"varint,4,opt,name=missing_plugin_behavior,json=missingPluginBehavior,proto3,enum=flyteidl.admin.PluginOverride_MissingPluginBehavior" json:"missing_plugin_behavior,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PluginOverride) Reset() { *m = PluginOverride{} } -func (m *PluginOverride) String() string { return proto.CompactTextString(m) } -func (*PluginOverride) ProtoMessage() {} -func (*PluginOverride) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{5} -} - -func (m *PluginOverride) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PluginOverride.Unmarshal(m, b) -} -func (m *PluginOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PluginOverride.Marshal(b, m, deterministic) -} -func (m *PluginOverride) XXX_Merge(src proto.Message) { - xxx_messageInfo_PluginOverride.Merge(m, src) -} -func (m *PluginOverride) XXX_Size() int { - return xxx_messageInfo_PluginOverride.Size(m) -} -func (m *PluginOverride) XXX_DiscardUnknown() { - xxx_messageInfo_PluginOverride.DiscardUnknown(m) -} - -var xxx_messageInfo_PluginOverride proto.InternalMessageInfo - -func (m *PluginOverride) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *PluginOverride) GetPluginId() []string { - if m != nil { - return m.PluginId - } - return nil -} - -func (m *PluginOverride) GetMissingPluginBehavior() PluginOverride_MissingPluginBehavior { - if m != nil { - return m.MissingPluginBehavior - } - return PluginOverride_FAIL -} - -type PluginOverrides struct { - Overrides []*PluginOverride `protobuf:"bytes,1,rep,name=overrides,proto3" json:"overrides,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PluginOverrides) Reset() { *m = PluginOverrides{} } -func (m *PluginOverrides) String() string { return proto.CompactTextString(m) } -func (*PluginOverrides) ProtoMessage() {} -func (*PluginOverrides) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{6} -} - -func (m *PluginOverrides) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PluginOverrides.Unmarshal(m, b) -} -func (m *PluginOverrides) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PluginOverrides.Marshal(b, m, deterministic) -} -func (m *PluginOverrides) XXX_Merge(src proto.Message) { - xxx_messageInfo_PluginOverrides.Merge(m, src) -} -func (m *PluginOverrides) XXX_Size() int { - return xxx_messageInfo_PluginOverrides.Size(m) -} -func (m *PluginOverrides) XXX_DiscardUnknown() { - xxx_messageInfo_PluginOverrides.DiscardUnknown(m) -} - -var xxx_messageInfo_PluginOverrides proto.InternalMessageInfo - -func (m *PluginOverrides) GetOverrides() []*PluginOverride { - if m != nil { - return m.Overrides - } - return nil -} - -// Adds defaults for customizable workflow-execution specifications and overrides. -type WorkflowExecutionConfig struct { - // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - MaxParallelism int32 `protobuf:"varint,1,opt,name=max_parallelism,json=maxParallelism,proto3" json:"max_parallelism,omitempty"` - // Indicates security context permissions for executions triggered with this matchable attribute. - SecurityContext *core.SecurityContext `protobuf:"bytes,2,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *RawOutputDataConfig `protobuf:"bytes,3,opt,name=raw_output_data_config,json=rawOutputDataConfig,proto3" json:"raw_output_data_config,omitempty"` - // Custom labels to be applied to a triggered execution resource. - Labels *Labels `protobuf:"bytes,4,opt,name=labels,proto3" json:"labels,omitempty"` - // Custom annotations to be applied to a triggered execution resource. - Annotations *Annotations `protobuf:"bytes,5,opt,name=annotations,proto3" json:"annotations,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. - // Omitting this field uses the workflow's value as a default. - // As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - // around the bool field. - Interruptible *wrappers.BoolValue `protobuf:"bytes,6,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - // If enabled, all calculations are performed even if cached results would be available, overwriting the stored - // data once execution finishes successfully. - OverwriteCache bool `protobuf:"varint,7,opt,name=overwrite_cache,json=overwriteCache,proto3" json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *Envs `protobuf:"bytes,8,opt,name=envs,proto3" json:"envs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionConfig) Reset() { *m = WorkflowExecutionConfig{} } -func (m *WorkflowExecutionConfig) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionConfig) ProtoMessage() {} -func (*WorkflowExecutionConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{7} -} - -func (m *WorkflowExecutionConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionConfig.Unmarshal(m, b) -} -func (m *WorkflowExecutionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionConfig.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionConfig.Merge(m, src) -} -func (m *WorkflowExecutionConfig) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionConfig.Size(m) -} -func (m *WorkflowExecutionConfig) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionConfig proto.InternalMessageInfo - -func (m *WorkflowExecutionConfig) GetMaxParallelism() int32 { - if m != nil { - return m.MaxParallelism - } - return 0 -} - -func (m *WorkflowExecutionConfig) GetSecurityContext() *core.SecurityContext { - if m != nil { - return m.SecurityContext - } - return nil -} - -func (m *WorkflowExecutionConfig) GetRawOutputDataConfig() *RawOutputDataConfig { - if m != nil { - return m.RawOutputDataConfig - } - return nil -} - -func (m *WorkflowExecutionConfig) GetLabels() *Labels { - if m != nil { - return m.Labels - } - return nil -} - -func (m *WorkflowExecutionConfig) GetAnnotations() *Annotations { - if m != nil { - return m.Annotations - } - return nil -} - -func (m *WorkflowExecutionConfig) GetInterruptible() *wrappers.BoolValue { - if m != nil { - return m.Interruptible - } - return nil -} - -func (m *WorkflowExecutionConfig) GetOverwriteCache() bool { - if m != nil { - return m.OverwriteCache - } - return false -} - -func (m *WorkflowExecutionConfig) GetEnvs() *Envs { - if m != nil { - return m.Envs - } - return nil -} - -// Generic container for encapsulating all types of the above attributes messages. -type MatchingAttributes struct { - // Types that are valid to be assigned to Target: - // *MatchingAttributes_TaskResourceAttributes - // *MatchingAttributes_ClusterResourceAttributes - // *MatchingAttributes_ExecutionQueueAttributes - // *MatchingAttributes_ExecutionClusterLabel - // *MatchingAttributes_QualityOfService - // *MatchingAttributes_PluginOverrides - // *MatchingAttributes_WorkflowExecutionConfig - // *MatchingAttributes_ClusterAssignment - Target isMatchingAttributes_Target `protobuf_oneof:"target"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MatchingAttributes) Reset() { *m = MatchingAttributes{} } -func (m *MatchingAttributes) String() string { return proto.CompactTextString(m) } -func (*MatchingAttributes) ProtoMessage() {} -func (*MatchingAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{8} -} - -func (m *MatchingAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MatchingAttributes.Unmarshal(m, b) -} -func (m *MatchingAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MatchingAttributes.Marshal(b, m, deterministic) -} -func (m *MatchingAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_MatchingAttributes.Merge(m, src) -} -func (m *MatchingAttributes) XXX_Size() int { - return xxx_messageInfo_MatchingAttributes.Size(m) -} -func (m *MatchingAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_MatchingAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_MatchingAttributes proto.InternalMessageInfo - -type isMatchingAttributes_Target interface { - isMatchingAttributes_Target() -} - -type MatchingAttributes_TaskResourceAttributes struct { - TaskResourceAttributes *TaskResourceAttributes `protobuf:"bytes,1,opt,name=task_resource_attributes,json=taskResourceAttributes,proto3,oneof"` -} - -type MatchingAttributes_ClusterResourceAttributes struct { - ClusterResourceAttributes *ClusterResourceAttributes `protobuf:"bytes,2,opt,name=cluster_resource_attributes,json=clusterResourceAttributes,proto3,oneof"` -} - -type MatchingAttributes_ExecutionQueueAttributes struct { - ExecutionQueueAttributes *ExecutionQueueAttributes `protobuf:"bytes,3,opt,name=execution_queue_attributes,json=executionQueueAttributes,proto3,oneof"` -} - -type MatchingAttributes_ExecutionClusterLabel struct { - ExecutionClusterLabel *ExecutionClusterLabel `protobuf:"bytes,4,opt,name=execution_cluster_label,json=executionClusterLabel,proto3,oneof"` -} - -type MatchingAttributes_QualityOfService struct { - QualityOfService *core.QualityOfService `protobuf:"bytes,5,opt,name=quality_of_service,json=qualityOfService,proto3,oneof"` -} - -type MatchingAttributes_PluginOverrides struct { - PluginOverrides *PluginOverrides `protobuf:"bytes,6,opt,name=plugin_overrides,json=pluginOverrides,proto3,oneof"` -} - -type MatchingAttributes_WorkflowExecutionConfig struct { - WorkflowExecutionConfig *WorkflowExecutionConfig `protobuf:"bytes,7,opt,name=workflow_execution_config,json=workflowExecutionConfig,proto3,oneof"` -} - -type MatchingAttributes_ClusterAssignment struct { - ClusterAssignment *ClusterAssignment `protobuf:"bytes,8,opt,name=cluster_assignment,json=clusterAssignment,proto3,oneof"` -} - -func (*MatchingAttributes_TaskResourceAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ClusterResourceAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ExecutionQueueAttributes) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ExecutionClusterLabel) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_QualityOfService) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_PluginOverrides) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_WorkflowExecutionConfig) isMatchingAttributes_Target() {} - -func (*MatchingAttributes_ClusterAssignment) isMatchingAttributes_Target() {} - -func (m *MatchingAttributes) GetTarget() isMatchingAttributes_Target { - if m != nil { - return m.Target - } - return nil -} - -func (m *MatchingAttributes) GetTaskResourceAttributes() *TaskResourceAttributes { - if x, ok := m.GetTarget().(*MatchingAttributes_TaskResourceAttributes); ok { - return x.TaskResourceAttributes - } - return nil -} - -func (m *MatchingAttributes) GetClusterResourceAttributes() *ClusterResourceAttributes { - if x, ok := m.GetTarget().(*MatchingAttributes_ClusterResourceAttributes); ok { - return x.ClusterResourceAttributes - } - return nil -} - -func (m *MatchingAttributes) GetExecutionQueueAttributes() *ExecutionQueueAttributes { - if x, ok := m.GetTarget().(*MatchingAttributes_ExecutionQueueAttributes); ok { - return x.ExecutionQueueAttributes - } - return nil -} - -func (m *MatchingAttributes) GetExecutionClusterLabel() *ExecutionClusterLabel { - if x, ok := m.GetTarget().(*MatchingAttributes_ExecutionClusterLabel); ok { - return x.ExecutionClusterLabel - } - return nil -} - -func (m *MatchingAttributes) GetQualityOfService() *core.QualityOfService { - if x, ok := m.GetTarget().(*MatchingAttributes_QualityOfService); ok { - return x.QualityOfService - } - return nil -} - -func (m *MatchingAttributes) GetPluginOverrides() *PluginOverrides { - if x, ok := m.GetTarget().(*MatchingAttributes_PluginOverrides); ok { - return x.PluginOverrides - } - return nil -} - -func (m *MatchingAttributes) GetWorkflowExecutionConfig() *WorkflowExecutionConfig { - if x, ok := m.GetTarget().(*MatchingAttributes_WorkflowExecutionConfig); ok { - return x.WorkflowExecutionConfig - } - return nil -} - -func (m *MatchingAttributes) GetClusterAssignment() *ClusterAssignment { - if x, ok := m.GetTarget().(*MatchingAttributes_ClusterAssignment); ok { - return x.ClusterAssignment - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*MatchingAttributes) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*MatchingAttributes_TaskResourceAttributes)(nil), - (*MatchingAttributes_ClusterResourceAttributes)(nil), - (*MatchingAttributes_ExecutionQueueAttributes)(nil), - (*MatchingAttributes_ExecutionClusterLabel)(nil), - (*MatchingAttributes_QualityOfService)(nil), - (*MatchingAttributes_PluginOverrides)(nil), - (*MatchingAttributes_WorkflowExecutionConfig)(nil), - (*MatchingAttributes_ClusterAssignment)(nil), - } -} - -// Represents a custom set of attributes applied for either a domain; a domain and project; or -// domain, project and workflow name. -// These are used to override system level defaults for kubernetes cluster resource management, -// default execution values, and more all across different levels of specificity. -type MatchableAttributesConfiguration struct { - Attributes *MatchingAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` - Workflow string `protobuf:"bytes,4,opt,name=workflow,proto3" json:"workflow,omitempty"` - LaunchPlan string `protobuf:"bytes,5,opt,name=launch_plan,json=launchPlan,proto3" json:"launch_plan,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *MatchableAttributesConfiguration) Reset() { *m = MatchableAttributesConfiguration{} } -func (m *MatchableAttributesConfiguration) String() string { return proto.CompactTextString(m) } -func (*MatchableAttributesConfiguration) ProtoMessage() {} -func (*MatchableAttributesConfiguration) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{9} -} - -func (m *MatchableAttributesConfiguration) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_MatchableAttributesConfiguration.Unmarshal(m, b) -} -func (m *MatchableAttributesConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_MatchableAttributesConfiguration.Marshal(b, m, deterministic) -} -func (m *MatchableAttributesConfiguration) XXX_Merge(src proto.Message) { - xxx_messageInfo_MatchableAttributesConfiguration.Merge(m, src) -} -func (m *MatchableAttributesConfiguration) XXX_Size() int { - return xxx_messageInfo_MatchableAttributesConfiguration.Size(m) -} -func (m *MatchableAttributesConfiguration) XXX_DiscardUnknown() { - xxx_messageInfo_MatchableAttributesConfiguration.DiscardUnknown(m) -} - -var xxx_messageInfo_MatchableAttributesConfiguration proto.InternalMessageInfo - -func (m *MatchableAttributesConfiguration) GetAttributes() *MatchingAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -func (m *MatchableAttributesConfiguration) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *MatchableAttributesConfiguration) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *MatchableAttributesConfiguration) GetWorkflow() string { - if m != nil { - return m.Workflow - } - return "" -} - -func (m *MatchableAttributesConfiguration) GetLaunchPlan() string { - if m != nil { - return m.LaunchPlan - } - return "" -} - -// Request all matching resource attributes for a resource type. -// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -type ListMatchableAttributesRequest struct { - // +required - ResourceType MatchableResource `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListMatchableAttributesRequest) Reset() { *m = ListMatchableAttributesRequest{} } -func (m *ListMatchableAttributesRequest) String() string { return proto.CompactTextString(m) } -func (*ListMatchableAttributesRequest) ProtoMessage() {} -func (*ListMatchableAttributesRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{10} -} - -func (m *ListMatchableAttributesRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListMatchableAttributesRequest.Unmarshal(m, b) -} -func (m *ListMatchableAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListMatchableAttributesRequest.Marshal(b, m, deterministic) -} -func (m *ListMatchableAttributesRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMatchableAttributesRequest.Merge(m, src) -} -func (m *ListMatchableAttributesRequest) XXX_Size() int { - return xxx_messageInfo_ListMatchableAttributesRequest.Size(m) -} -func (m *ListMatchableAttributesRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListMatchableAttributesRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListMatchableAttributesRequest proto.InternalMessageInfo - -func (m *ListMatchableAttributesRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Response for a request for all matching resource attributes for a resource type. -// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -type ListMatchableAttributesResponse struct { - Configurations []*MatchableAttributesConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListMatchableAttributesResponse) Reset() { *m = ListMatchableAttributesResponse{} } -func (m *ListMatchableAttributesResponse) String() string { return proto.CompactTextString(m) } -func (*ListMatchableAttributesResponse) ProtoMessage() {} -func (*ListMatchableAttributesResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_1d15bcabb02640f4, []int{11} -} - -func (m *ListMatchableAttributesResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListMatchableAttributesResponse.Unmarshal(m, b) -} -func (m *ListMatchableAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListMatchableAttributesResponse.Marshal(b, m, deterministic) -} -func (m *ListMatchableAttributesResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListMatchableAttributesResponse.Merge(m, src) -} -func (m *ListMatchableAttributesResponse) XXX_Size() int { - return xxx_messageInfo_ListMatchableAttributesResponse.Size(m) -} -func (m *ListMatchableAttributesResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListMatchableAttributesResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListMatchableAttributesResponse proto.InternalMessageInfo - -func (m *ListMatchableAttributesResponse) GetConfigurations() []*MatchableAttributesConfiguration { - if m != nil { - return m.Configurations - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.admin.MatchableResource", MatchableResource_name, MatchableResource_value) - proto.RegisterEnum("flyteidl.admin.PluginOverride_MissingPluginBehavior", PluginOverride_MissingPluginBehavior_name, PluginOverride_MissingPluginBehavior_value) - proto.RegisterType((*TaskResourceSpec)(nil), "flyteidl.admin.TaskResourceSpec") - proto.RegisterType((*TaskResourceAttributes)(nil), "flyteidl.admin.TaskResourceAttributes") - proto.RegisterType((*ClusterResourceAttributes)(nil), "flyteidl.admin.ClusterResourceAttributes") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.admin.ClusterResourceAttributes.AttributesEntry") - proto.RegisterType((*ExecutionQueueAttributes)(nil), "flyteidl.admin.ExecutionQueueAttributes") - proto.RegisterType((*ExecutionClusterLabel)(nil), "flyteidl.admin.ExecutionClusterLabel") - proto.RegisterType((*PluginOverride)(nil), "flyteidl.admin.PluginOverride") - proto.RegisterType((*PluginOverrides)(nil), "flyteidl.admin.PluginOverrides") - proto.RegisterType((*WorkflowExecutionConfig)(nil), "flyteidl.admin.WorkflowExecutionConfig") - proto.RegisterType((*MatchingAttributes)(nil), "flyteidl.admin.MatchingAttributes") - proto.RegisterType((*MatchableAttributesConfiguration)(nil), "flyteidl.admin.MatchableAttributesConfiguration") - proto.RegisterType((*ListMatchableAttributesRequest)(nil), "flyteidl.admin.ListMatchableAttributesRequest") - proto.RegisterType((*ListMatchableAttributesResponse)(nil), "flyteidl.admin.ListMatchableAttributesResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/matchable_resource.proto", fileDescriptor_1d15bcabb02640f4) -} - -var fileDescriptor_1d15bcabb02640f4 = []byte{ - // 1338 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x59, 0x73, 0x1a, 0x47, - 0x10, 0x66, 0x75, 0x20, 0xd4, 0xc4, 0xb0, 0x1a, 0x5b, 0x12, 0x92, 0x62, 0x5b, 0xd9, 0x1c, 0x56, - 0x92, 0x32, 0xa4, 0x48, 0x1e, 0x9c, 0xc3, 0x55, 0x41, 0x78, 0x31, 0x94, 0x91, 0x90, 0x06, 0xf0, - 0x91, 0x97, 0xad, 0x61, 0x19, 0x96, 0x8d, 0xf6, 0xd2, 0xec, 0xac, 0x10, 0x95, 0x3f, 0x91, 0x87, - 0xe4, 0xa7, 0xe4, 0xa7, 0xe4, 0x3d, 0xef, 0xc9, 0x8f, 0x48, 0xed, 0x09, 0xac, 0xc0, 0xe5, 0xb7, - 0x99, 0x9e, 0xaf, 0x8f, 0xe9, 0xe9, 0xfe, 0x7a, 0xe0, 0xc9, 0xc8, 0x98, 0x72, 0xaa, 0x0f, 0x8d, - 0x0a, 0x19, 0x9a, 0xba, 0x55, 0x31, 0x09, 0x57, 0xc7, 0x64, 0x60, 0x50, 0x85, 0x51, 0xd7, 0xf6, - 0x98, 0x4a, 0xcb, 0x0e, 0xb3, 0xb9, 0x8d, 0x0a, 0x31, 0xb0, 0x1c, 0x00, 0x0f, 0x8f, 0x52, 0x8a, - 0xaa, 0x6d, 0x9a, 0xb6, 0x15, 0x82, 0x0f, 0xd3, 0x56, 0x55, 0xc3, 0x73, 0x39, 0x65, 0x0a, 0x71, - 0x5d, 0x5d, 0xb3, 0x4c, 0x6a, 0xf1, 0x08, 0xf8, 0x30, 0x01, 0xaa, 0x36, 0xa3, 0x15, 0x7a, 0x4b, - 0x55, 0x8f, 0xeb, 0x89, 0x9d, 0x8f, 0x17, 0x8f, 0x5d, 0xaa, 0x7a, 0x4c, 0xe7, 0xd3, 0xe8, 0xf4, - 0x91, 0x66, 0xdb, 0x9a, 0x41, 0x2b, 0xc1, 0x6e, 0xe0, 0x8d, 0x2a, 0x13, 0x46, 0x1c, 0x87, 0x32, - 0x37, 0x3c, 0x97, 0xfe, 0x14, 0x40, 0xec, 0x11, 0xf7, 0x0a, 0x47, 0x37, 0xe9, 0x3a, 0x54, 0x45, - 0x22, 0xac, 0xab, 0x8e, 0x57, 0x12, 0x8e, 0x85, 0x93, 0x6d, 0xec, 0x2f, 0x7d, 0x89, 0xe6, 0x78, - 0xa5, 0xb5, 0x50, 0xa2, 0x39, 0x1e, 0xda, 0x83, 0xac, 0x49, 0x4d, 0x9b, 0x4d, 0x4b, 0xeb, 0x81, - 0x30, 0xda, 0xa1, 0x12, 0x6c, 0xb9, 0xdc, 0x66, 0x44, 0xa3, 0xa5, 0x8d, 0xe0, 0x20, 0xde, 0xa2, - 0xaf, 0x61, 0x87, 0x3a, 0x63, 0x6a, 0x52, 0x46, 0x0c, 0x25, 0xc6, 0x6c, 0x06, 0x18, 0x31, 0x39, - 0xe8, 0x86, 0x72, 0xe9, 0x77, 0x01, 0xf6, 0xe6, 0xe3, 0xaa, 0x71, 0xce, 0xf4, 0x81, 0xc7, 0xa9, - 0x8b, 0x7e, 0x82, 0xdc, 0x90, 0x8e, 0x88, 0x67, 0x70, 0x37, 0x08, 0x31, 0x5f, 0x3d, 0x2e, 0x2f, - 0x26, 0xbe, 0x9c, 0xbe, 0x11, 0x4e, 0x34, 0xd0, 0x33, 0xc8, 0x1a, 0xba, 0xa9, 0x73, 0x37, 0xb8, - 0xcc, 0x87, 0xe8, 0x46, 0x78, 0xe9, 0x2f, 0x01, 0x0e, 0xea, 0xe1, 0x23, 0x2d, 0x89, 0xea, 0x1d, - 0x00, 0x49, 0x76, 0x25, 0xe1, 0x78, 0xfd, 0x24, 0x5f, 0xfd, 0x3e, 0x6d, 0x7b, 0xa5, 0x7a, 0x79, - 0xb6, 0x94, 0x2d, 0xce, 0xa6, 0x78, 0xce, 0xd8, 0xe1, 0x73, 0x28, 0xa6, 0x8e, 0xfd, 0xf7, 0xb8, - 0xa2, 0xd3, 0xf8, 0x85, 0xae, 0xe8, 0x14, 0x3d, 0x80, 0xcd, 0x1b, 0x62, 0x78, 0x34, 0x7a, 0xa3, - 0x70, 0xf3, 0xc3, 0xda, 0x33, 0x41, 0x2a, 0x43, 0x49, 0x8e, 0x6b, 0xe6, 0xd2, 0xa3, 0xde, 0x7c, - 0xd4, 0x08, 0x36, 0x38, 0xd1, 0xc2, 0x78, 0xb7, 0x71, 0xb0, 0x96, 0x9e, 0xc2, 0x6e, 0x82, 0x8f, - 0x02, 0x6e, 0x93, 0x01, 0x35, 0x66, 0x2e, 0x84, 0x39, 0x17, 0xd2, 0x7f, 0x02, 0x14, 0x2e, 0x0c, - 0x4f, 0xd3, 0xad, 0xce, 0x0d, 0x65, 0x4c, 0x1f, 0x52, 0x74, 0x04, 0xdb, 0x9c, 0xb8, 0x57, 0x0a, - 0x9f, 0x3a, 0x31, 0x38, 0xe7, 0x0b, 0x7a, 0x53, 0x27, 0x38, 0x74, 0x02, 0xb8, 0xa2, 0x0f, 0x4b, - 0x6b, 0x81, 0xdf, 0x5c, 0x28, 0x68, 0x0d, 0x91, 0x01, 0xfb, 0xa6, 0xee, 0xba, 0xba, 0xa5, 0x29, - 0x11, 0x68, 0x40, 0xc7, 0xe4, 0x46, 0xb7, 0x59, 0x50, 0x4d, 0x85, 0xea, 0x77, 0xe9, 0x94, 0x2e, - 0xba, 0x2e, 0x9f, 0x85, 0xda, 0xa1, 0xf4, 0x34, 0xd2, 0xc5, 0xbb, 0xe6, 0x32, 0xb1, 0x54, 0x85, - 0xdd, 0xa5, 0x78, 0x94, 0x83, 0x8d, 0x46, 0xad, 0xd5, 0x16, 0x33, 0xa8, 0x08, 0xf9, 0x7e, 0x57, - 0x56, 0x5e, 0xc8, 0x8d, 0x5a, 0xbf, 0xdd, 0x13, 0x05, 0xa9, 0x03, 0xc5, 0x45, 0x97, 0x7e, 0x41, - 0x6e, 0xdb, 0xf1, 0x26, 0x7a, 0xf9, 0x47, 0xef, 0x0f, 0x13, 0xcf, 0x14, 0xa4, 0x7f, 0xd7, 0x61, - 0xff, 0x8d, 0xcd, 0xae, 0x46, 0x86, 0x3d, 0x99, 0xe5, 0xdd, 0xb6, 0x46, 0xba, 0x86, 0x9e, 0x40, - 0xd1, 0x24, 0xb7, 0x8a, 0x43, 0x18, 0x31, 0x0c, 0x6a, 0xe8, 0xae, 0x19, 0xa4, 0x73, 0x13, 0x17, - 0x4c, 0x72, 0x7b, 0x31, 0x93, 0xa2, 0x16, 0x88, 0x71, 0xe3, 0x2b, 0xaa, 0x6d, 0x71, 0x7a, 0xcb, - 0xa3, 0xfa, 0x9e, 0x8b, 0xc4, 0xe7, 0x87, 0x72, 0x37, 0x82, 0xd5, 0x43, 0x14, 0x2e, 0xba, 0x8b, - 0x02, 0xf4, 0x16, 0xf6, 0x18, 0x99, 0x28, 0xb6, 0xc7, 0x1d, 0x8f, 0x2b, 0x43, 0xc2, 0x89, 0x6f, - 0x71, 0xa4, 0x6b, 0x41, 0xa3, 0xe7, 0xab, 0x9f, 0xa6, 0xaf, 0x86, 0xc9, 0xa4, 0x13, 0x80, 0x5f, - 0x10, 0x4e, 0xc2, 0xc0, 0xf1, 0x7d, 0x76, 0x57, 0x88, 0xca, 0x90, 0x35, 0xfc, 0x42, 0x72, 0x83, - 0xb7, 0xcc, 0x57, 0xf7, 0xd2, 0x96, 0x82, 0x32, 0x73, 0x71, 0x84, 0x42, 0xcf, 0x21, 0x4f, 0x2c, - 0xcb, 0xe6, 0xc4, 0xcf, 0x88, 0x1b, 0x50, 0x45, 0xbe, 0x7a, 0x94, 0x56, 0xaa, 0xcd, 0x20, 0x78, - 0x1e, 0x8f, 0x7e, 0x86, 0x7b, 0xba, 0xc5, 0x29, 0x63, 0x9e, 0xc3, 0xf5, 0x81, 0x41, 0x4b, 0xd9, - 0xc0, 0xc0, 0x61, 0x39, 0xa4, 0xc4, 0x72, 0x4c, 0x89, 0xe5, 0x53, 0xdb, 0x36, 0x5e, 0xfb, 0xb5, - 0x8c, 0x17, 0x15, 0xfc, 0xf4, 0xfb, 0xef, 0x34, 0x61, 0x3a, 0xa7, 0x8a, 0x4a, 0xd4, 0x31, 0x2d, - 0x6d, 0x1d, 0x0b, 0x27, 0x39, 0x5c, 0x48, 0xc4, 0x75, 0x5f, 0x8a, 0x4e, 0x60, 0x83, 0x5a, 0x37, - 0x6e, 0x29, 0x17, 0x78, 0x78, 0x90, 0x0e, 0x51, 0xb6, 0x6e, 0x5c, 0x1c, 0x20, 0xa4, 0x3f, 0xb2, - 0x80, 0xce, 0xfc, 0xf9, 0xa1, 0x5b, 0xda, 0x5c, 0x1f, 0x0e, 0xa0, 0x14, 0x74, 0x4c, 0x3c, 0x50, - 0x94, 0x05, 0x2e, 0xf1, 0x8d, 0x7e, 0xf1, 0x3e, 0x9e, 0x9a, 0x59, 0x6a, 0x66, 0xf0, 0x1e, 0x5f, - 0xce, 0x9b, 0x57, 0x70, 0x14, 0xcf, 0x98, 0x65, 0x6e, 0xc2, 0x72, 0xf9, 0xf2, 0x83, 0x29, 0xab, - 0x99, 0xc1, 0x07, 0xea, 0x4a, 0x3a, 0x1c, 0xc3, 0x61, 0x32, 0xa8, 0x94, 0x6b, 0x9f, 0x75, 0xe6, - 0x7d, 0x85, 0x95, 0x74, 0x72, 0x27, 0x4f, 0x2b, 0x68, 0xaa, 0x99, 0xc1, 0x25, 0xba, 0x8a, 0xc2, - 0x14, 0xd8, 0x9f, 0x79, 0x8a, 0x2f, 0x18, 0x54, 0x50, 0x54, 0x66, 0x9f, 0xaf, 0x74, 0x33, 0xcf, - 0x6e, 0xcd, 0x0c, 0xde, 0xa5, 0x4b, 0x69, 0xaf, 0x03, 0xe8, 0xda, 0x23, 0x86, 0xdf, 0x5a, 0xf6, - 0x48, 0x71, 0x29, 0xbb, 0xd1, 0x55, 0x1a, 0x55, 0xe3, 0xe3, 0x54, 0x77, 0x5d, 0x86, 0xc0, 0xce, - 0xa8, 0x1b, 0xc2, 0x9a, 0x19, 0x2c, 0x5e, 0xa7, 0x64, 0xa8, 0x0d, 0x62, 0x44, 0x6e, 0x33, 0xda, - 0xc8, 0xa6, 0xcd, 0x2d, 0xa3, 0x0d, 0x3f, 0x11, 0x45, 0x27, 0xc5, 0x3e, 0x14, 0x0e, 0x26, 0x11, - 0x7d, 0x28, 0x73, 0x89, 0x08, 0x5b, 0x76, 0x2b, 0x30, 0xfb, 0x24, 0x6d, 0x76, 0x05, 0xdf, 0x34, - 0x33, 0x78, 0x7f, 0xb2, 0x82, 0x8a, 0x30, 0xa0, 0xbb, 0x3f, 0x94, 0xa8, 0xe0, 0x3f, 0x59, 0x51, - 0x34, 0xb5, 0x04, 0xd8, 0xcc, 0xe0, 0x1d, 0x35, 0x2d, 0x3c, 0xcd, 0x41, 0x96, 0x13, 0xa6, 0x51, - 0x2e, 0xfd, 0x2d, 0xc0, 0xf1, 0x59, 0xfc, 0xad, 0x9a, 0x3d, 0x6e, 0xe8, 0xdb, 0x63, 0x41, 0x47, - 0xa3, 0xd3, 0xd4, 0x88, 0xf5, 0x5d, 0x4b, 0x69, 0xd7, 0x77, 0x9b, 0x6b, 0x7e, 0x96, 0xfa, 0xdf, - 0x96, 0xa1, 0x6d, 0x12, 0xdd, 0x8a, 0xe6, 0x64, 0xb4, 0xf3, 0xbf, 0x2d, 0x0e, 0xb3, 0x7f, 0xa5, - 0x2a, 0x8f, 0xfe, 0x33, 0xf1, 0x16, 0x1d, 0x42, 0x2e, 0xce, 0x49, 0xf4, 0xa3, 0x49, 0xf6, 0xe8, - 0x31, 0xe4, 0x0d, 0xe2, 0x59, 0xea, 0x58, 0x71, 0x0c, 0x62, 0x45, 0x9f, 0x19, 0x08, 0x45, 0x17, - 0x06, 0xb1, 0xa4, 0x31, 0x3c, 0x6a, 0xeb, 0x2e, 0x5f, 0x72, 0x35, 0x4c, 0xaf, 0x3d, 0xea, 0x72, - 0xd4, 0x80, 0x7b, 0x49, 0x37, 0x26, 0xf3, 0xb2, 0x70, 0x37, 0xa5, 0x89, 0x89, 0xb8, 0xd9, 0xf0, - 0x47, 0xb1, 0x9e, 0x3f, 0x56, 0xa5, 0xdf, 0xe0, 0xf1, 0x4a, 0x4f, 0xae, 0x63, 0x5b, 0x2e, 0x45, - 0x6f, 0xa1, 0xa0, 0xce, 0x27, 0x34, 0x1e, 0x56, 0xdf, 0xac, 0xf4, 0xb5, 0xe2, 0x25, 0x70, 0xca, - 0xce, 0x57, 0xff, 0x08, 0xb0, 0x73, 0x27, 0x40, 0xb4, 0x03, 0xf7, 0x7a, 0xb5, 0xee, 0x2b, 0x05, - 0xcb, 0xdd, 0x4e, 0x1f, 0xd7, 0x65, 0x31, 0x83, 0x1e, 0x80, 0x58, 0x6f, 0xf7, 0xbb, 0x3d, 0x19, - 0xcf, 0xa4, 0x02, 0xba, 0x0f, 0x45, 0xf9, 0xad, 0x5c, 0xef, 0xf7, 0x5a, 0x9d, 0x73, 0xe5, 0xb2, - 0x2f, 0xf7, 0x65, 0x71, 0x0d, 0x1d, 0xc1, 0xfe, 0x4c, 0x18, 0x2b, 0xb5, 0x6b, 0xa7, 0x72, 0x5b, - 0x5c, 0x47, 0x9f, 0xc1, 0xf1, 0x65, 0xbf, 0xd6, 0x6e, 0xf5, 0xde, 0x29, 0x9d, 0x86, 0xd2, 0x95, - 0xf1, 0xeb, 0x56, 0x5d, 0x56, 0xba, 0x17, 0x72, 0xbd, 0xd5, 0x68, 0xd5, 0x6b, 0xbe, 0x8e, 0xb8, - 0xe1, 0xdb, 0xbd, 0x68, 0xf7, 0x5f, 0xb6, 0xce, 0x95, 0xce, 0x6b, 0x19, 0xe3, 0xd6, 0x0b, 0x59, - 0xdc, 0x44, 0x0f, 0xe1, 0xe0, 0x4d, 0x07, 0xbf, 0x6a, 0xb4, 0x3b, 0x6f, 0x94, 0x39, 0x07, 0x9d, - 0xf3, 0x46, 0xeb, 0xa5, 0x98, 0x45, 0x7b, 0x80, 0x62, 0x67, 0xb5, 0x6e, 0xb7, 0xf5, 0xf2, 0xfc, - 0x4c, 0x3e, 0xef, 0x89, 0x5b, 0xa7, 0xcf, 0x7f, 0xf9, 0x51, 0xd3, 0xf9, 0xd8, 0x1b, 0x94, 0x55, - 0xdb, 0xac, 0x04, 0x09, 0xb3, 0x99, 0x16, 0x2e, 0x2a, 0xc9, 0x17, 0x5c, 0xa3, 0x56, 0xc5, 0x19, - 0x3c, 0xd5, 0xec, 0xca, 0xe2, 0xef, 0x7e, 0x90, 0x0d, 0xa6, 0xcd, 0xb7, 0xff, 0x07, 0x00, 0x00, - 0xff, 0xff, 0x9e, 0xa4, 0xff, 0x06, 0x4c, 0x0c, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json deleted file mode 100644 index 4f9f550804..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/matchable_resource.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/matchable_resource.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go deleted file mode 100644 index f1e7505a38..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.pb.go +++ /dev/null @@ -1,1050 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/node_execution.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// A message used to fetch a single node execution entity. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionGetRequest struct { - // Uniquely identifies an individual node execution. - // +required - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionGetRequest) Reset() { *m = NodeExecutionGetRequest{} } -func (m *NodeExecutionGetRequest) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionGetRequest) ProtoMessage() {} -func (*NodeExecutionGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{0} -} - -func (m *NodeExecutionGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionGetRequest.Unmarshal(m, b) -} -func (m *NodeExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionGetRequest.Marshal(b, m, deterministic) -} -func (m *NodeExecutionGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionGetRequest.Merge(m, src) -} -func (m *NodeExecutionGetRequest) XXX_Size() int { - return xxx_messageInfo_NodeExecutionGetRequest.Size(m) -} -func (m *NodeExecutionGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionGetRequest proto.InternalMessageInfo - -func (m *NodeExecutionGetRequest) GetId() *core.NodeExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Represents a request structure to retrieve a list of node execution entities. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionListRequest struct { - // Indicates the workflow execution to filter by. - // +required - WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - // Unique identifier of the parent node in the execution - // +optional - UniqueParentId string `protobuf:"bytes,6,opt,name=unique_parent_id,json=uniqueParentId,proto3" json:"unique_parent_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionListRequest) Reset() { *m = NodeExecutionListRequest{} } -func (m *NodeExecutionListRequest) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionListRequest) ProtoMessage() {} -func (*NodeExecutionListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{1} -} - -func (m *NodeExecutionListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionListRequest.Unmarshal(m, b) -} -func (m *NodeExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionListRequest.Marshal(b, m, deterministic) -} -func (m *NodeExecutionListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionListRequest.Merge(m, src) -} -func (m *NodeExecutionListRequest) XXX_Size() int { - return xxx_messageInfo_NodeExecutionListRequest.Size(m) -} -func (m *NodeExecutionListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionListRequest proto.InternalMessageInfo - -func (m *NodeExecutionListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.WorkflowExecutionId - } - return nil -} - -func (m *NodeExecutionListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *NodeExecutionListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *NodeExecutionListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *NodeExecutionListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -func (m *NodeExecutionListRequest) GetUniqueParentId() string { - if m != nil { - return m.UniqueParentId - } - return "" -} - -// Represents a request structure to retrieve a list of node execution entities launched by a specific task. -// This can arise when a task yields a subworkflow. -type NodeExecutionForTaskListRequest struct { - // Indicates the node execution to filter by. - // +required - TaskExecutionId *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=task_execution_id,json=taskExecutionId,proto3" json:"task_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionForTaskListRequest) Reset() { *m = NodeExecutionForTaskListRequest{} } -func (m *NodeExecutionForTaskListRequest) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionForTaskListRequest) ProtoMessage() {} -func (*NodeExecutionForTaskListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{2} -} - -func (m *NodeExecutionForTaskListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionForTaskListRequest.Unmarshal(m, b) -} -func (m *NodeExecutionForTaskListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionForTaskListRequest.Marshal(b, m, deterministic) -} -func (m *NodeExecutionForTaskListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionForTaskListRequest.Merge(m, src) -} -func (m *NodeExecutionForTaskListRequest) XXX_Size() int { - return xxx_messageInfo_NodeExecutionForTaskListRequest.Size(m) -} -func (m *NodeExecutionForTaskListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionForTaskListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionForTaskListRequest proto.InternalMessageInfo - -func (m *NodeExecutionForTaskListRequest) GetTaskExecutionId() *core.TaskExecutionIdentifier { - if m != nil { - return m.TaskExecutionId - } - return nil -} - -func (m *NodeExecutionForTaskListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *NodeExecutionForTaskListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *NodeExecutionForTaskListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *NodeExecutionForTaskListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -// Encapsulates all details for a single node execution entity. -// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested -// sub-workflow, or even a separate child-workflow execution. -// The same task can be called repeatedly in a single workflow but each node is unique. -type NodeExecution struct { - // Uniquely identifies an individual node execution. - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` - // Computed results associated with this node execution. - Closure *NodeExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - // Metadata for Node Execution - Metadata *NodeExecutionMetaData `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecution) Reset() { *m = NodeExecution{} } -func (m *NodeExecution) String() string { return proto.CompactTextString(m) } -func (*NodeExecution) ProtoMessage() {} -func (*NodeExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{3} -} - -func (m *NodeExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecution.Unmarshal(m, b) -} -func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) -} -func (m *NodeExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecution.Merge(m, src) -} -func (m *NodeExecution) XXX_Size() int { - return xxx_messageInfo_NodeExecution.Size(m) -} -func (m *NodeExecution) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecution proto.InternalMessageInfo - -func (m *NodeExecution) GetId() *core.NodeExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *NodeExecution) GetInputUri() string { - if m != nil { - return m.InputUri - } - return "" -} - -func (m *NodeExecution) GetClosure() *NodeExecutionClosure { - if m != nil { - return m.Closure - } - return nil -} - -func (m *NodeExecution) GetMetadata() *NodeExecutionMetaData { - if m != nil { - return m.Metadata - } - return nil -} - -// Represents additional attributes related to a Node Execution -type NodeExecutionMetaData struct { - // Node executions are grouped depending on retries of the parent - // Retry group is unique within the context of a parent node. - RetryGroup string `protobuf:"bytes,1,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` - // Boolean flag indicating if the node has child nodes under it - // This can be true when a node contains a dynamic workflow which then produces - // child nodes. - IsParentNode bool `protobuf:"varint,2,opt,name=is_parent_node,json=isParentNode,proto3" json:"is_parent_node,omitempty"` - // Node id of the node in the original workflow - // This maps to value of WorkflowTemplate.nodes[X].id - SpecNodeId string `protobuf:"bytes,3,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` - // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. - // This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - IsDynamic bool `protobuf:"varint,4,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` - // Boolean flag indicating if the node is an array node. This is intended to uniquely identify - // array nodes from other nodes which can have is_parent_node as true. - IsArray bool `protobuf:"varint,5,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionMetaData) Reset() { *m = NodeExecutionMetaData{} } -func (m *NodeExecutionMetaData) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionMetaData) ProtoMessage() {} -func (*NodeExecutionMetaData) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{4} -} - -func (m *NodeExecutionMetaData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionMetaData.Unmarshal(m, b) -} -func (m *NodeExecutionMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionMetaData.Marshal(b, m, deterministic) -} -func (m *NodeExecutionMetaData) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionMetaData.Merge(m, src) -} -func (m *NodeExecutionMetaData) XXX_Size() int { - return xxx_messageInfo_NodeExecutionMetaData.Size(m) -} -func (m *NodeExecutionMetaData) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionMetaData.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionMetaData proto.InternalMessageInfo - -func (m *NodeExecutionMetaData) GetRetryGroup() string { - if m != nil { - return m.RetryGroup - } - return "" -} - -func (m *NodeExecutionMetaData) GetIsParentNode() bool { - if m != nil { - return m.IsParentNode - } - return false -} - -func (m *NodeExecutionMetaData) GetSpecNodeId() string { - if m != nil { - return m.SpecNodeId - } - return "" -} - -func (m *NodeExecutionMetaData) GetIsDynamic() bool { - if m != nil { - return m.IsDynamic - } - return false -} - -func (m *NodeExecutionMetaData) GetIsArray() bool { - if m != nil { - return m.IsArray - } - return false -} - -// Request structure to retrieve a list of node execution entities. -// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -type NodeExecutionList struct { - NodeExecutions []*NodeExecution `protobuf:"bytes,1,rep,name=node_executions,json=nodeExecutions,proto3" json:"node_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionList) Reset() { *m = NodeExecutionList{} } -func (m *NodeExecutionList) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionList) ProtoMessage() {} -func (*NodeExecutionList) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{5} -} - -func (m *NodeExecutionList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionList.Unmarshal(m, b) -} -func (m *NodeExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionList.Marshal(b, m, deterministic) -} -func (m *NodeExecutionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionList.Merge(m, src) -} -func (m *NodeExecutionList) XXX_Size() int { - return xxx_messageInfo_NodeExecutionList.Size(m) -} -func (m *NodeExecutionList) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionList.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionList proto.InternalMessageInfo - -func (m *NodeExecutionList) GetNodeExecutions() []*NodeExecution { - if m != nil { - return m.NodeExecutions - } - return nil -} - -func (m *NodeExecutionList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Container for node execution details and results. -type NodeExecutionClosure struct { - // Only a node in a terminal state will have a non-empty output_result. - // - // Types that are valid to be assigned to OutputResult: - // *NodeExecutionClosure_OutputUri - // *NodeExecutionClosure_Error - // *NodeExecutionClosure_OutputData - OutputResult isNodeExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // The last recorded phase for this node execution. - Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` - // Time at which the node execution began running. - StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the node execution spent running. - Duration *duration.Duration `protobuf:"bytes,5,opt,name=duration,proto3" json:"duration,omitempty"` - // Time at which the node execution was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the node execution was last updated. - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // Store metadata for what the node launched. - // for ex: if this is a workflow node, we store information for the launched workflow. - // - // Types that are valid to be assigned to TargetMetadata: - // *NodeExecutionClosure_WorkflowNodeMetadata - // *NodeExecutionClosure_TaskNodeMetadata - TargetMetadata isNodeExecutionClosure_TargetMetadata `protobuf_oneof:"target_metadata"` - // String location uniquely identifying where the deck HTML file is. - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - DeckUri string `protobuf:"bytes,11,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required - // to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,12,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionClosure) Reset() { *m = NodeExecutionClosure{} } -func (m *NodeExecutionClosure) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionClosure) ProtoMessage() {} -func (*NodeExecutionClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{6} -} - -func (m *NodeExecutionClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionClosure.Unmarshal(m, b) -} -func (m *NodeExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionClosure.Marshal(b, m, deterministic) -} -func (m *NodeExecutionClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionClosure.Merge(m, src) -} -func (m *NodeExecutionClosure) XXX_Size() int { - return xxx_messageInfo_NodeExecutionClosure.Size(m) -} -func (m *NodeExecutionClosure) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionClosure proto.InternalMessageInfo - -type isNodeExecutionClosure_OutputResult interface { - isNodeExecutionClosure_OutputResult() -} - -type NodeExecutionClosure_OutputUri struct { - OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type NodeExecutionClosure_Error struct { - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type NodeExecutionClosure_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,10,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*NodeExecutionClosure_OutputUri) isNodeExecutionClosure_OutputResult() {} - -func (*NodeExecutionClosure_Error) isNodeExecutionClosure_OutputResult() {} - -func (*NodeExecutionClosure_OutputData) isNodeExecutionClosure_OutputResult() {} - -func (m *NodeExecutionClosure) GetOutputResult() isNodeExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Do not use. -func (m *NodeExecutionClosure) GetOutputUri() string { - if x, ok := m.GetOutputResult().(*NodeExecutionClosure_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (m *NodeExecutionClosure) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*NodeExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Do not use. -func (m *NodeExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*NodeExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -func (m *NodeExecutionClosure) GetPhase() core.NodeExecution_Phase { - if m != nil { - return m.Phase - } - return core.NodeExecution_UNDEFINED -} - -func (m *NodeExecutionClosure) GetStartedAt() *timestamp.Timestamp { - if m != nil { - return m.StartedAt - } - return nil -} - -func (m *NodeExecutionClosure) GetDuration() *duration.Duration { - if m != nil { - return m.Duration - } - return nil -} - -func (m *NodeExecutionClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -func (m *NodeExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { - if m != nil { - return m.UpdatedAt - } - return nil -} - -type isNodeExecutionClosure_TargetMetadata interface { - isNodeExecutionClosure_TargetMetadata() -} - -type NodeExecutionClosure_WorkflowNodeMetadata struct { - WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` -} - -type NodeExecutionClosure_TaskNodeMetadata struct { - TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,9,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` -} - -func (*NodeExecutionClosure_WorkflowNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} - -func (*NodeExecutionClosure_TaskNodeMetadata) isNodeExecutionClosure_TargetMetadata() {} - -func (m *NodeExecutionClosure) GetTargetMetadata() isNodeExecutionClosure_TargetMetadata { - if m != nil { - return m.TargetMetadata - } - return nil -} - -func (m *NodeExecutionClosure) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { - if x, ok := m.GetTargetMetadata().(*NodeExecutionClosure_WorkflowNodeMetadata); ok { - return x.WorkflowNodeMetadata - } - return nil -} - -func (m *NodeExecutionClosure) GetTaskNodeMetadata() *TaskNodeMetadata { - if x, ok := m.GetTargetMetadata().(*NodeExecutionClosure_TaskNodeMetadata); ok { - return x.TaskNodeMetadata - } - return nil -} - -func (m *NodeExecutionClosure) GetDeckUri() string { - if m != nil { - return m.DeckUri - } - return "" -} - -func (m *NodeExecutionClosure) GetDynamicJobSpecUri() string { - if m != nil { - return m.DynamicJobSpecUri - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*NodeExecutionClosure) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*NodeExecutionClosure_OutputUri)(nil), - (*NodeExecutionClosure_Error)(nil), - (*NodeExecutionClosure_OutputData)(nil), - (*NodeExecutionClosure_WorkflowNodeMetadata)(nil), - (*NodeExecutionClosure_TaskNodeMetadata)(nil), - } -} - -// Metadata for a WorkflowNode -type WorkflowNodeMetadata struct { - // The identifier for a workflow execution launched by a node. - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=executionId,proto3" json:"executionId,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } -func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*WorkflowNodeMetadata) ProtoMessage() {} -func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{7} -} - -func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) -} -func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) -} -func (m *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowNodeMetadata.Merge(m, src) -} -func (m *WorkflowNodeMetadata) XXX_Size() int { - return xxx_messageInfo_WorkflowNodeMetadata.Size(m) -} -func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo - -func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -// Metadata for the case in which the node is a TaskNode -type TaskNodeMetadata struct { - // Captures the status of caching for this execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // This structure carries the catalog artifact information - CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` - // The latest checkpoint location - CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskNodeMetadata) Reset() { *m = TaskNodeMetadata{} } -func (m *TaskNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*TaskNodeMetadata) ProtoMessage() {} -func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{8} -} - -func (m *TaskNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskNodeMetadata.Unmarshal(m, b) -} -func (m *TaskNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskNodeMetadata.Marshal(b, m, deterministic) -} -func (m *TaskNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskNodeMetadata.Merge(m, src) -} -func (m *TaskNodeMetadata) XXX_Size() int { - return xxx_messageInfo_TaskNodeMetadata.Size(m) -} -func (m *TaskNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskNodeMetadata proto.InternalMessageInfo - -func (m *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { - if m != nil { - return m.CacheStatus - } - return core.CatalogCacheStatus_CACHE_DISABLED -} - -func (m *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { - if m != nil { - return m.CatalogKey - } - return nil -} - -func (m *TaskNodeMetadata) GetCheckpointUri() string { - if m != nil { - return m.CheckpointUri - } - return "" -} - -// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. -type DynamicWorkflowNodeMetadata struct { - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - // required to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DynamicWorkflowNodeMetadata) Reset() { *m = DynamicWorkflowNodeMetadata{} } -func (m *DynamicWorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} -func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{9} -} - -func (m *DynamicWorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Unmarshal(m, b) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Marshal(b, m, deterministic) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_DynamicWorkflowNodeMetadata.Merge(m, src) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Size() int { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Size(m) -} -func (m *DynamicWorkflowNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_DynamicWorkflowNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_DynamicWorkflowNodeMetadata proto.InternalMessageInfo - -func (m *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if m != nil { - return m.CompiledWorkflow - } - return nil -} - -func (m *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { - if m != nil { - return m.DynamicJobSpecUri - } - return "" -} - -// Request structure to fetch inputs and output for a node execution. -// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` -type NodeExecutionGetDataRequest struct { - // The identifier of the node execution for which to fetch inputs and outputs. - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionGetDataRequest) Reset() { *m = NodeExecutionGetDataRequest{} } -func (m *NodeExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionGetDataRequest) ProtoMessage() {} -func (*NodeExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{10} -} - -func (m *NodeExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionGetDataRequest.Unmarshal(m, b) -} -func (m *NodeExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionGetDataRequest.Marshal(b, m, deterministic) -} -func (m *NodeExecutionGetDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionGetDataRequest.Merge(m, src) -} -func (m *NodeExecutionGetDataRequest) XXX_Size() int { - return xxx_messageInfo_NodeExecutionGetDataRequest.Size(m) -} -func (m *NodeExecutionGetDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionGetDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionGetDataRequest proto.InternalMessageInfo - -func (m *NodeExecutionGetDataRequest) GetId() *core.NodeExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. -type NodeExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of node execution inputs. - // Deprecated: Please use full_inputs instead. - Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. - // Signed url to fetch a core.LiteralMap of node execution outputs. - // Deprecated: Please use full_outputs instead. - Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` - // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` - FlyteUrls *FlyteURLs `protobuf:"bytes,17,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionGetDataResponse) Reset() { *m = NodeExecutionGetDataResponse{} } -func (m *NodeExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionGetDataResponse) ProtoMessage() {} -func (*NodeExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_f73b3eae493fd736, []int{11} -} - -func (m *NodeExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionGetDataResponse.Unmarshal(m, b) -} -func (m *NodeExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionGetDataResponse.Marshal(b, m, deterministic) -} -func (m *NodeExecutionGetDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionGetDataResponse.Merge(m, src) -} -func (m *NodeExecutionGetDataResponse) XXX_Size() int { - return xxx_messageInfo_NodeExecutionGetDataResponse.Size(m) -} -func (m *NodeExecutionGetDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionGetDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionGetDataResponse proto.InternalMessageInfo - -// Deprecated: Do not use. -func (m *NodeExecutionGetDataResponse) GetInputs() *UrlBlob { - if m != nil { - return m.Inputs - } - return nil -} - -// Deprecated: Do not use. -func (m *NodeExecutionGetDataResponse) GetOutputs() *UrlBlob { - if m != nil { - return m.Outputs - } - return nil -} - -func (m *NodeExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if m != nil { - return m.FullInputs - } - return nil -} - -func (m *NodeExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if m != nil { - return m.FullOutputs - } - return nil -} - -func (m *NodeExecutionGetDataResponse) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { - if m != nil { - return m.DynamicWorkflow - } - return nil -} - -func (m *NodeExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { - if m != nil { - return m.FlyteUrls - } - return nil -} - -func init() { - proto.RegisterType((*NodeExecutionGetRequest)(nil), "flyteidl.admin.NodeExecutionGetRequest") - proto.RegisterType((*NodeExecutionListRequest)(nil), "flyteidl.admin.NodeExecutionListRequest") - proto.RegisterType((*NodeExecutionForTaskListRequest)(nil), "flyteidl.admin.NodeExecutionForTaskListRequest") - proto.RegisterType((*NodeExecution)(nil), "flyteidl.admin.NodeExecution") - proto.RegisterType((*NodeExecutionMetaData)(nil), "flyteidl.admin.NodeExecutionMetaData") - proto.RegisterType((*NodeExecutionList)(nil), "flyteidl.admin.NodeExecutionList") - proto.RegisterType((*NodeExecutionClosure)(nil), "flyteidl.admin.NodeExecutionClosure") - proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.admin.WorkflowNodeMetadata") - proto.RegisterType((*TaskNodeMetadata)(nil), "flyteidl.admin.TaskNodeMetadata") - proto.RegisterType((*DynamicWorkflowNodeMetadata)(nil), "flyteidl.admin.DynamicWorkflowNodeMetadata") - proto.RegisterType((*NodeExecutionGetDataRequest)(nil), "flyteidl.admin.NodeExecutionGetDataRequest") - proto.RegisterType((*NodeExecutionGetDataResponse)(nil), "flyteidl.admin.NodeExecutionGetDataResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/node_execution.proto", fileDescriptor_f73b3eae493fd736) -} - -var fileDescriptor_f73b3eae493fd736 = []byte{ - // 1208 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x6d, 0x6f, 0x1b, 0xc5, - 0x13, 0xef, 0x25, 0x4d, 0x62, 0x8f, 0x13, 0x27, 0xd9, 0xbf, 0xfb, 0xaf, 0xdb, 0xf4, 0xc1, 0x5c, - 0x5b, 0x14, 0x40, 0xb5, 0x25, 0x57, 0x45, 0xe5, 0x99, 0x38, 0xe9, 0x43, 0x20, 0x85, 0xb2, 0xa9, - 0x41, 0x42, 0x88, 0xd3, 0xfa, 0x6e, 0xed, 0x2c, 0x3e, 0xdf, 0x5e, 0x77, 0xf7, 0x14, 0xfc, 0x45, - 0x90, 0xf8, 0x2a, 0xbc, 0xe2, 0x13, 0xf0, 0x35, 0x90, 0xf8, 0x00, 0xbc, 0x46, 0xbb, 0xb7, 0x77, - 0xf6, 0x5d, 0xdc, 0x44, 0x2a, 0x2f, 0x78, 0xe7, 0x9d, 0xf9, 0xcd, 0xcc, 0xce, 0xcc, 0x6f, 0x66, - 0xcf, 0x70, 0x67, 0x18, 0x4e, 0x15, 0x65, 0x41, 0xd8, 0x21, 0xc1, 0x84, 0x45, 0x9d, 0x88, 0x07, - 0xd4, 0xa3, 0x3f, 0x53, 0x3f, 0x51, 0x8c, 0x47, 0xed, 0x58, 0x70, 0xc5, 0x51, 0x3d, 0x03, 0xb5, - 0x0d, 0xe8, 0xfa, 0x4e, 0xc9, 0xc8, 0xe7, 0x93, 0x49, 0x06, 0xbe, 0x7e, 0x33, 0x57, 0xfa, 0x5c, - 0xd0, 0x4e, 0xc9, 0xd7, 0x9c, 0xad, 0x51, 0xfb, 0x44, 0x91, 0x90, 0x8f, 0xac, 0xf2, 0x46, 0x49, - 0xc9, 0x27, 0x31, 0x0b, 0xa9, 0xb0, 0xda, 0x5b, 0x45, 0x2d, 0x0b, 0x68, 0xa4, 0xd8, 0x90, 0xe5, - 0xfa, 0x92, 0x75, 0xc8, 0x14, 0x15, 0x24, 0x94, 0x56, 0x7b, 0x7b, 0xc4, 0xf9, 0x28, 0xa4, 0x1d, - 0x73, 0x1a, 0x24, 0xc3, 0x8e, 0x62, 0x13, 0x2a, 0x15, 0x99, 0xc4, 0x99, 0xfb, 0x32, 0x20, 0x48, - 0x04, 0x99, 0xdd, 0xdc, 0xfd, 0x06, 0xae, 0x7e, 0xc5, 0x03, 0xfa, 0x38, 0x4b, 0xe8, 0x29, 0x55, - 0x98, 0xbe, 0x4a, 0xa8, 0x54, 0xe8, 0x7d, 0x58, 0x62, 0x41, 0xd3, 0x69, 0x39, 0xbb, 0xb5, 0xee, - 0xdb, 0xed, 0xbc, 0x5a, 0xfa, 0x1a, 0xed, 0x82, 0xcd, 0x61, 0x7e, 0x67, 0xbc, 0xc4, 0x02, 0xf7, - 0xd7, 0x25, 0x68, 0x16, 0xf4, 0x47, 0x4c, 0xe6, 0x4e, 0x7f, 0x84, 0x2b, 0xa7, 0x5c, 0x8c, 0x87, - 0x21, 0x3f, 0x9d, 0x75, 0xc4, 0xcb, 0xe3, 0xbc, 0x5b, 0x8a, 0xf3, 0x9d, 0xc5, 0x2e, 0x8a, 0xf5, - 0xbf, 0xd3, 0xb3, 0x4a, 0xd4, 0x80, 0x95, 0x90, 0x4d, 0x98, 0x6a, 0x2e, 0xb5, 0x9c, 0xdd, 0x0d, - 0x9c, 0x1e, 0xb4, 0x54, 0xf1, 0x31, 0x8d, 0x9a, 0xcb, 0x2d, 0x67, 0xb7, 0x8a, 0xd3, 0x03, 0x6a, - 0xc2, 0xda, 0x90, 0x85, 0x8a, 0x0a, 0xd9, 0xbc, 0x6c, 0xe4, 0xd9, 0x11, 0xdd, 0x87, 0x35, 0xc9, - 0x85, 0xf2, 0x06, 0xd3, 0xe6, 0x8a, 0xb9, 0x57, 0xa3, 0x5d, 0x64, 0x4b, 0xfb, 0x98, 0x0b, 0x85, - 0x57, 0x35, 0xa8, 0x37, 0x45, 0xbb, 0xb0, 0x95, 0x44, 0xec, 0x55, 0x42, 0xbd, 0x98, 0x08, 0x1a, - 0x29, 0x9d, 0xcf, 0xaa, 0xf1, 0x58, 0x4f, 0xe5, 0x2f, 0x8c, 0xf8, 0x30, 0x70, 0xff, 0x72, 0xe0, - 0x76, 0xa1, 0x36, 0x4f, 0xb8, 0x78, 0x49, 0xe4, 0x78, 0xbe, 0x44, 0x18, 0xb6, 0x15, 0x91, 0xe3, - 0x45, 0xe5, 0x29, 0xb7, 0x41, 0x9b, 0x2e, 0x2a, 0xcd, 0xa6, 0x2a, 0x2a, 0xfe, 0x93, 0xb2, 0xb8, - 0x7f, 0x3a, 0xb0, 0x51, 0x48, 0xf6, 0x4d, 0x29, 0x85, 0x76, 0xa0, 0xca, 0xa2, 0x38, 0x51, 0x5e, - 0x22, 0x98, 0x49, 0xa1, 0x8a, 0x2b, 0x46, 0xd0, 0x17, 0x0c, 0x7d, 0x0a, 0x6b, 0x7e, 0xc8, 0x65, - 0x22, 0xa8, 0xc9, 0xa3, 0xd6, 0xbd, 0x5b, 0xbe, 0x55, 0xc1, 0xf5, 0x7e, 0x8a, 0xc5, 0x99, 0x11, - 0xda, 0x83, 0xca, 0x84, 0x2a, 0x12, 0x10, 0x45, 0x4c, 0xc2, 0xb5, 0xee, 0xbd, 0x73, 0x1d, 0x3c, - 0xa7, 0x8a, 0x1c, 0x10, 0x45, 0x70, 0x6e, 0xe6, 0xfe, 0xe6, 0xc0, 0x95, 0x85, 0x18, 0x74, 0x1b, - 0x6a, 0x82, 0x2a, 0x31, 0xf5, 0x46, 0x82, 0x27, 0xb1, 0x49, 0xbd, 0x8a, 0xc1, 0x88, 0x9e, 0x6a, - 0x09, 0xba, 0x0b, 0x75, 0x26, 0x33, 0xde, 0xe8, 0x45, 0x65, 0xf2, 0xab, 0xe0, 0x75, 0x26, 0x53, - 0xd6, 0x68, 0xbf, 0xa8, 0x05, 0xeb, 0x32, 0xa6, 0xbe, 0x01, 0x68, 0x3a, 0xa4, 0x0d, 0x03, 0x2d, - 0xd3, 0xfa, 0xc3, 0x00, 0xdd, 0x04, 0x60, 0xd2, 0x0b, 0xa6, 0x11, 0x99, 0x30, 0xdf, 0xe4, 0x51, - 0xc1, 0x55, 0x26, 0x0f, 0x52, 0x01, 0xba, 0x06, 0x15, 0x26, 0x3d, 0x22, 0x04, 0x49, 0x7b, 0x57, - 0xc1, 0x6b, 0x4c, 0xee, 0xe9, 0xa3, 0xfb, 0x0a, 0xb6, 0xcf, 0x8c, 0x2b, 0x7a, 0x02, 0x9b, 0xc5, - 0xad, 0x29, 0x9b, 0x4e, 0x6b, 0x79, 0xb7, 0xd6, 0xbd, 0x79, 0x6e, 0x6d, 0x70, 0x3d, 0x9a, 0x3f, - 0xca, 0x19, 0xc5, 0x96, 0xe6, 0x28, 0xe6, 0xfe, 0xbd, 0x02, 0x8d, 0x45, 0x4d, 0x41, 0x77, 0x00, - 0x78, 0xa2, 0xb2, 0x4e, 0x9b, 0x6a, 0xf5, 0x96, 0x9a, 0xce, 0xb3, 0x4b, 0xb8, 0x9a, 0xca, 0x75, - 0xc3, 0x1f, 0xc2, 0x0a, 0x15, 0x82, 0x0b, 0xe3, 0xb3, 0x70, 0x23, 0x43, 0xa4, 0xdc, 0xe9, 0x63, - 0x0d, 0x7a, 0x76, 0x09, 0xa7, 0x68, 0xf4, 0x39, 0xd4, 0xac, 0x6f, 0xd3, 0x6a, 0x30, 0xc6, 0xd7, - 0x4a, 0xc6, 0x47, 0xe9, 0x7e, 0x7d, 0x4e, 0x62, 0x1b, 0xd7, 0xde, 0xc7, 0x34, 0xf3, 0x11, 0xac, - 0xc4, 0x27, 0x44, 0xa6, 0x3c, 0xab, 0x77, 0xdd, 0xf3, 0x18, 0xdc, 0x7e, 0xa1, 0x91, 0x38, 0x35, - 0x40, 0x1f, 0x00, 0x48, 0x45, 0x84, 0xa2, 0x81, 0x47, 0x94, 0x65, 0xd9, 0xf5, 0x76, 0xba, 0x9b, - 0xdb, 0xd9, 0x6e, 0x6e, 0xbf, 0xcc, 0x96, 0x37, 0xae, 0x5a, 0xf4, 0x9e, 0x42, 0x0f, 0xa1, 0x92, - 0xed, 0x6c, 0x3b, 0x75, 0xd7, 0xce, 0x18, 0x1e, 0x58, 0x00, 0xce, 0xa1, 0x3a, 0xa2, 0x2f, 0x28, - 0xb1, 0x11, 0x57, 0x2f, 0x8e, 0x68, 0xd1, 0x7b, 0x4a, 0x9b, 0x26, 0x71, 0x90, 0x99, 0xae, 0x5d, - 0x6c, 0x6a, 0xd1, 0x7b, 0x0a, 0xfd, 0x00, 0xff, 0xcf, 0xd7, 0xbb, 0xe1, 0x4f, 0x3e, 0x59, 0x95, - 0xc5, 0xa3, 0x99, 0x2d, 0x78, 0x5d, 0xbb, 0xe7, 0x16, 0xfb, 0xcc, 0xc1, 0x8d, 0xd3, 0x05, 0x72, - 0xf4, 0x02, 0x90, 0xd9, 0x8c, 0x45, 0xcf, 0x55, 0xe3, 0xb9, 0x55, 0xf6, 0xac, 0x77, 0x63, 0xc9, - 0xeb, 0x96, 0x2a, 0xc9, 0xf4, 0x58, 0x04, 0xd4, 0x1f, 0x1b, 0xb6, 0xd5, 0xd2, 0x65, 0xa7, 0xcf, - 0x9a, 0x65, 0x1d, 0x68, 0xd8, 0x69, 0xf2, 0x7e, 0xe2, 0x03, 0xcf, 0x8c, 0x9f, 0x86, 0xad, 0x1b, - 0xd8, 0xb6, 0xd5, 0x7d, 0xc1, 0x07, 0xc7, 0x31, 0xf5, 0xfb, 0x82, 0xf5, 0x36, 0x61, 0xc3, 0xf2, - 0x4b, 0x50, 0x99, 0x84, 0xaa, 0xb7, 0x0d, 0x9b, 0x8a, 0x88, 0x11, 0x55, 0xf9, 0x5d, 0xdd, 0x00, - 0x1a, 0x8b, 0x32, 0x46, 0x47, 0x50, 0xa3, 0xb3, 0xdd, 0xf7, 0x06, 0x8f, 0xe1, 0xbc, 0xb9, 0xfb, - 0xbb, 0x03, 0x5b, 0xe5, 0xf4, 0xd1, 0x01, 0xac, 0xfb, 0xc4, 0x3f, 0xa1, 0x9e, 0x54, 0x44, 0x25, - 0xd2, 0xc4, 0xa8, 0x77, 0xdf, 0x2a, 0xc5, 0xd8, 0x4f, 0x3f, 0x5d, 0xf6, 0x35, 0xf2, 0xd8, 0x00, - 0x71, 0xcd, 0x9f, 0x1d, 0xd0, 0x67, 0x50, 0xb3, 0x5f, 0x37, 0xde, 0x98, 0x4e, 0xed, 0x04, 0xde, - 0x5a, 0xec, 0x24, 0x0b, 0x8d, 0xc1, 0x9a, 0x7c, 0x49, 0xa7, 0xe8, 0x1e, 0xd4, 0xfd, 0x13, 0xea, - 0x8f, 0x63, 0xce, 0xa2, 0x74, 0xca, 0xd3, 0x47, 0x66, 0x63, 0x26, 0xed, 0x0b, 0xe6, 0xfe, 0xe1, - 0xc0, 0x8e, 0xdd, 0x5d, 0x0b, 0x0b, 0xf6, 0xce, 0xdc, 0x4b, 0x52, 0x9e, 0xe1, 0xd2, 0xe3, 0x71, - 0x0c, 0xdb, 0xf6, 0x9b, 0x2b, 0xf0, 0x32, 0x5a, 0xd9, 0x8b, 0x97, 0xdf, 0xa0, 0x7d, 0x8b, 0xcb, - 0x42, 0x66, 0x6f, 0xc5, 0x96, 0x5f, 0x52, 0xbc, 0x96, 0x1d, 0xcb, 0xaf, 0x61, 0x87, 0xdb, 0x87, - 0x9d, 0xf2, 0x87, 0x96, 0x79, 0x44, 0xfe, 0xe5, 0xc7, 0xd6, 0x2f, 0xcb, 0x70, 0x63, 0xb1, 0x5f, - 0x19, 0xf3, 0x48, 0x52, 0xf4, 0x00, 0x56, 0xcd, 0x4b, 0x29, 0xad, 0xf3, 0xab, 0xe5, 0x39, 0xe9, - 0x8b, 0xb0, 0x17, 0xf2, 0x81, 0x5e, 0x77, 0xd8, 0x42, 0xd1, 0x43, 0x58, 0x4b, 0xa9, 0x2c, 0x6d, - 0xa1, 0xce, 0xb5, 0xca, 0xb0, 0xe8, 0x43, 0xa8, 0x0d, 0x93, 0x30, 0xf4, 0x6c, 0xc0, 0xe5, 0x0b, - 0x36, 0x2c, 0x06, 0x8d, 0x3e, 0x4c, 0x43, 0x7e, 0x0c, 0xeb, 0xc6, 0x36, 0x8b, 0x7b, 0xf9, 0x22, - 0x63, 0x13, 0xea, 0x6b, 0x1b, 0xf9, 0x5b, 0xd8, 0xca, 0xda, 0x91, 0xb7, 0x78, 0xcb, 0x78, 0x78, - 0xaf, 0x7c, 0xf3, 0x73, 0x58, 0x85, 0x37, 0x83, 0xa2, 0x12, 0x3d, 0x02, 0x30, 0xe6, 0x5e, 0x22, - 0x42, 0xd9, 0xdc, 0x2e, 0xdf, 0x29, 0xf5, 0xf8, 0x44, 0x1f, 0xfb, 0xf8, 0x48, 0xe2, 0xaa, 0xd1, - 0xf4, 0x45, 0x28, 0x7b, 0x9f, 0x7c, 0xff, 0xd1, 0x88, 0xa9, 0x93, 0x64, 0xd0, 0xf6, 0xf9, 0xa4, - 0x63, 0xe4, 0x5c, 0x8c, 0xd2, 0x1f, 0x9d, 0xfc, 0x9b, 0x7e, 0x44, 0xa3, 0x4e, 0x3c, 0xb8, 0x3f, - 0xe2, 0x9d, 0xe2, 0xbf, 0x8f, 0xc1, 0xaa, 0xd9, 0xb3, 0x0f, 0xfe, 0x09, 0x00, 0x00, 0xff, 0xff, - 0xe3, 0xde, 0x8f, 0xda, 0xcb, 0x0c, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json deleted file mode 100644 index 3562c6f709..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/node_execution.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/node_execution.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go deleted file mode 100644 index 3e5480bbf9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/notification.pb.go +++ /dev/null @@ -1,120 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/notification.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Represents the Email object that is sent to a publisher/subscriber -// to forward the notification. -// Note: This is internal to Admin and doesn't need to be exposed to other components. -type EmailMessage struct { - // The list of email addresses to receive an email with the content populated in the other fields. - // Currently, each email recipient will receive its own email. - // This populates the TO field. - RecipientsEmail []string `protobuf:"bytes,1,rep,name=recipients_email,json=recipientsEmail,proto3" json:"recipients_email,omitempty"` - // The email of the sender. - // This populates the FROM field. - SenderEmail string `protobuf:"bytes,2,opt,name=sender_email,json=senderEmail,proto3" json:"sender_email,omitempty"` - // The content of the subject line. - // This populates the SUBJECT field. - SubjectLine string `protobuf:"bytes,3,opt,name=subject_line,json=subjectLine,proto3" json:"subject_line,omitempty"` - // The content of the email body. - // This populates the BODY field. - Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EmailMessage) Reset() { *m = EmailMessage{} } -func (m *EmailMessage) String() string { return proto.CompactTextString(m) } -func (*EmailMessage) ProtoMessage() {} -func (*EmailMessage) Descriptor() ([]byte, []int) { - return fileDescriptor_cbe32eb21e00da05, []int{0} -} - -func (m *EmailMessage) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EmailMessage.Unmarshal(m, b) -} -func (m *EmailMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EmailMessage.Marshal(b, m, deterministic) -} -func (m *EmailMessage) XXX_Merge(src proto.Message) { - xxx_messageInfo_EmailMessage.Merge(m, src) -} -func (m *EmailMessage) XXX_Size() int { - return xxx_messageInfo_EmailMessage.Size(m) -} -func (m *EmailMessage) XXX_DiscardUnknown() { - xxx_messageInfo_EmailMessage.DiscardUnknown(m) -} - -var xxx_messageInfo_EmailMessage proto.InternalMessageInfo - -func (m *EmailMessage) GetRecipientsEmail() []string { - if m != nil { - return m.RecipientsEmail - } - return nil -} - -func (m *EmailMessage) GetSenderEmail() string { - if m != nil { - return m.SenderEmail - } - return "" -} - -func (m *EmailMessage) GetSubjectLine() string { - if m != nil { - return m.SubjectLine - } - return "" -} - -func (m *EmailMessage) GetBody() string { - if m != nil { - return m.Body - } - return "" -} - -func init() { - proto.RegisterType((*EmailMessage)(nil), "flyteidl.admin.EmailMessage") -} - -func init() { proto.RegisterFile("flyteidl/admin/notification.proto", fileDescriptor_cbe32eb21e00da05) } - -var fileDescriptor_cbe32eb21e00da05 = []byte{ - // 210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x8f, 0x3f, 0x4f, 0xc3, 0x30, - 0x10, 0xc5, 0x15, 0x5a, 0x21, 0xd5, 0x54, 0x80, 0x3c, 0x65, 0x6c, 0x99, 0xca, 0x40, 0x3c, 0x30, - 0x22, 0x16, 0x24, 0x36, 0x58, 0x3a, 0xb2, 0x54, 0xfe, 0x73, 0x31, 0x87, 0x9c, 0xbb, 0xc8, 0x76, - 0x86, 0x7c, 0x0e, 0xbe, 0x30, 0xc2, 0x09, 0x44, 0xdd, 0x9e, 0xde, 0xfb, 0x9d, 0x74, 0x3f, 0xb1, - 0x6f, 0xc3, 0x98, 0x01, 0x5d, 0x50, 0xda, 0x75, 0x48, 0x8a, 0x38, 0x63, 0x8b, 0x56, 0x67, 0x64, - 0x6a, 0xfa, 0xc8, 0x99, 0xe5, 0xf5, 0x1f, 0xd2, 0x14, 0xe4, 0xee, 0xbb, 0x12, 0xdb, 0xd7, 0x4e, - 0x63, 0x78, 0x87, 0x94, 0xb4, 0x07, 0x79, 0x2f, 0x6e, 0x23, 0x58, 0xec, 0x11, 0x28, 0xa7, 0x13, - 0xfc, 0x4e, 0x75, 0xb5, 0x5b, 0x1d, 0x36, 0xc7, 0x9b, 0xa5, 0x2f, 0x17, 0x72, 0x2f, 0xb6, 0x09, - 0xc8, 0x41, 0x9c, 0xb1, 0x8b, 0x5d, 0x75, 0xd8, 0x1c, 0xaf, 0xa6, 0x6e, 0x41, 0x06, 0xf3, 0x05, - 0x36, 0x9f, 0x02, 0x12, 0xd4, 0xab, 0x19, 0x99, 0xba, 0x37, 0x24, 0x90, 0x52, 0xac, 0x0d, 0xbb, - 0xb1, 0x5e, 0x97, 0xa9, 0xe4, 0x97, 0xe7, 0x8f, 0x27, 0x8f, 0xf9, 0x73, 0x30, 0x8d, 0xe5, 0x4e, - 0x95, 0x97, 0x39, 0xfa, 0x29, 0xa8, 0x7f, 0x49, 0x0f, 0xa4, 0x7a, 0xf3, 0xe0, 0x59, 0x9d, 0x7b, - 0x9b, 0xcb, 0xe2, 0xfa, 0xf8, 0x13, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x54, 0x10, 0xff, 0x10, 0x01, - 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json deleted file mode 100644 index 919aad7298..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/notification.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/notification.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go deleted file mode 100644 index 662d2311ac..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project.pb.go +++ /dev/null @@ -1,466 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/project.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The state of the project is used to control its visibility in the UI and validity. -type Project_ProjectState int32 - -const ( - // By default, all projects are considered active. - Project_ACTIVE Project_ProjectState = 0 - // Archived projects are no longer visible in the UI and no longer valid. - Project_ARCHIVED Project_ProjectState = 1 - // System generated projects that aren't explicitly created or managed by a user. - Project_SYSTEM_GENERATED Project_ProjectState = 2 -) - -var Project_ProjectState_name = map[int32]string{ - 0: "ACTIVE", - 1: "ARCHIVED", - 2: "SYSTEM_GENERATED", -} - -var Project_ProjectState_value = map[string]int32{ - "ACTIVE": 0, - "ARCHIVED": 1, - "SYSTEM_GENERATED": 2, -} - -func (x Project_ProjectState) String() string { - return proto.EnumName(Project_ProjectState_name, int32(x)) -} - -func (Project_ProjectState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{1, 0} -} - -// Namespace within a project commonly used to differentiate between different service instances. -// e.g. "production", "development", etc. -type Domain struct { - // Globally unique domain name. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Display name. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Domain) Reset() { *m = Domain{} } -func (m *Domain) String() string { return proto.CompactTextString(m) } -func (*Domain) ProtoMessage() {} -func (*Domain) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{0} -} - -func (m *Domain) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Domain.Unmarshal(m, b) -} -func (m *Domain) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Domain.Marshal(b, m, deterministic) -} -func (m *Domain) XXX_Merge(src proto.Message) { - xxx_messageInfo_Domain.Merge(m, src) -} -func (m *Domain) XXX_Size() int { - return xxx_messageInfo_Domain.Size(m) -} -func (m *Domain) XXX_DiscardUnknown() { - xxx_messageInfo_Domain.DiscardUnknown(m) -} - -var xxx_messageInfo_Domain proto.InternalMessageInfo - -func (m *Domain) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Domain) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Top-level namespace used to classify different entities like workflows and executions. -type Project struct { - // Globally unique project name. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Display name. - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Domains []*Domain `protobuf:"bytes,3,rep,name=domains,proto3" json:"domains,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - // Leverage Labels from flyteidl.admin.common.proto to - // tag projects with ownership information. - Labels *Labels `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` - State Project_ProjectState `protobuf:"varint,6,opt,name=state,proto3,enum=flyteidl.admin.Project_ProjectState" json:"state,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Project) Reset() { *m = Project{} } -func (m *Project) String() string { return proto.CompactTextString(m) } -func (*Project) ProtoMessage() {} -func (*Project) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{1} -} - -func (m *Project) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Project.Unmarshal(m, b) -} -func (m *Project) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Project.Marshal(b, m, deterministic) -} -func (m *Project) XXX_Merge(src proto.Message) { - xxx_messageInfo_Project.Merge(m, src) -} -func (m *Project) XXX_Size() int { - return xxx_messageInfo_Project.Size(m) -} -func (m *Project) XXX_DiscardUnknown() { - xxx_messageInfo_Project.DiscardUnknown(m) -} - -var xxx_messageInfo_Project proto.InternalMessageInfo - -func (m *Project) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Project) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Project) GetDomains() []*Domain { - if m != nil { - return m.Domains - } - return nil -} - -func (m *Project) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *Project) GetLabels() *Labels { - if m != nil { - return m.Labels - } - return nil -} - -func (m *Project) GetState() Project_ProjectState { - if m != nil { - return m.State - } - return Project_ACTIVE -} - -// Represents a list of projects. -// See :ref:`ref_flyteidl.admin.Project` for more details -type Projects struct { - Projects []*Project `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Projects) Reset() { *m = Projects{} } -func (m *Projects) String() string { return proto.CompactTextString(m) } -func (*Projects) ProtoMessage() {} -func (*Projects) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{2} -} - -func (m *Projects) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Projects.Unmarshal(m, b) -} -func (m *Projects) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Projects.Marshal(b, m, deterministic) -} -func (m *Projects) XXX_Merge(src proto.Message) { - xxx_messageInfo_Projects.Merge(m, src) -} -func (m *Projects) XXX_Size() int { - return xxx_messageInfo_Projects.Size(m) -} -func (m *Projects) XXX_DiscardUnknown() { - xxx_messageInfo_Projects.DiscardUnknown(m) -} - -var xxx_messageInfo_Projects proto.InternalMessageInfo - -func (m *Projects) GetProjects() []*Project { - if m != nil { - return m.Projects - } - return nil -} - -func (m *Projects) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Request to retrieve a list of projects matching specified filters. -// See :ref:`ref_flyteidl.admin.Project` for more details -type ProjectListRequest struct { - // Indicates the number of projects to be returned. - // +required - Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, this server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,3,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,4,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectListRequest) Reset() { *m = ProjectListRequest{} } -func (m *ProjectListRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectListRequest) ProtoMessage() {} -func (*ProjectListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{3} -} - -func (m *ProjectListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectListRequest.Unmarshal(m, b) -} -func (m *ProjectListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectListRequest.Marshal(b, m, deterministic) -} -func (m *ProjectListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectListRequest.Merge(m, src) -} -func (m *ProjectListRequest) XXX_Size() int { - return xxx_messageInfo_ProjectListRequest.Size(m) -} -func (m *ProjectListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectListRequest proto.InternalMessageInfo - -func (m *ProjectListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *ProjectListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *ProjectListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *ProjectListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -// Adds a new user-project within the Flyte deployment. -// See :ref:`ref_flyteidl.admin.Project` for more details -type ProjectRegisterRequest struct { - // +required - Project *Project `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRegisterRequest) Reset() { *m = ProjectRegisterRequest{} } -func (m *ProjectRegisterRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectRegisterRequest) ProtoMessage() {} -func (*ProjectRegisterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{4} -} - -func (m *ProjectRegisterRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRegisterRequest.Unmarshal(m, b) -} -func (m *ProjectRegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRegisterRequest.Marshal(b, m, deterministic) -} -func (m *ProjectRegisterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRegisterRequest.Merge(m, src) -} -func (m *ProjectRegisterRequest) XXX_Size() int { - return xxx_messageInfo_ProjectRegisterRequest.Size(m) -} -func (m *ProjectRegisterRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRegisterRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRegisterRequest proto.InternalMessageInfo - -func (m *ProjectRegisterRequest) GetProject() *Project { - if m != nil { - return m.Project - } - return nil -} - -// Purposefully empty, may be updated in the future. -type ProjectRegisterResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectRegisterResponse) Reset() { *m = ProjectRegisterResponse{} } -func (m *ProjectRegisterResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectRegisterResponse) ProtoMessage() {} -func (*ProjectRegisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{5} -} - -func (m *ProjectRegisterResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectRegisterResponse.Unmarshal(m, b) -} -func (m *ProjectRegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectRegisterResponse.Marshal(b, m, deterministic) -} -func (m *ProjectRegisterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectRegisterResponse.Merge(m, src) -} -func (m *ProjectRegisterResponse) XXX_Size() int { - return xxx_messageInfo_ProjectRegisterResponse.Size(m) -} -func (m *ProjectRegisterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectRegisterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectRegisterResponse proto.InternalMessageInfo - -// Purposefully empty, may be updated in the future. -type ProjectUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectUpdateResponse) Reset() { *m = ProjectUpdateResponse{} } -func (m *ProjectUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectUpdateResponse) ProtoMessage() {} -func (*ProjectUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_2db065ce03bf106d, []int{6} -} - -func (m *ProjectUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectUpdateResponse.Unmarshal(m, b) -} -func (m *ProjectUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectUpdateResponse.Marshal(b, m, deterministic) -} -func (m *ProjectUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectUpdateResponse.Merge(m, src) -} -func (m *ProjectUpdateResponse) XXX_Size() int { - return xxx_messageInfo_ProjectUpdateResponse.Size(m) -} -func (m *ProjectUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectUpdateResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("flyteidl.admin.Project_ProjectState", Project_ProjectState_name, Project_ProjectState_value) - proto.RegisterType((*Domain)(nil), "flyteidl.admin.Domain") - proto.RegisterType((*Project)(nil), "flyteidl.admin.Project") - proto.RegisterType((*Projects)(nil), "flyteidl.admin.Projects") - proto.RegisterType((*ProjectListRequest)(nil), "flyteidl.admin.ProjectListRequest") - proto.RegisterType((*ProjectRegisterRequest)(nil), "flyteidl.admin.ProjectRegisterRequest") - proto.RegisterType((*ProjectRegisterResponse)(nil), "flyteidl.admin.ProjectRegisterResponse") - proto.RegisterType((*ProjectUpdateResponse)(nil), "flyteidl.admin.ProjectUpdateResponse") -} - -func init() { proto.RegisterFile("flyteidl/admin/project.proto", fileDescriptor_2db065ce03bf106d) } - -var fileDescriptor_2db065ce03bf106d = []byte{ - // 459 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0xc7, 0xb1, 0xdb, 0xd8, 0x61, 0x52, 0xa2, 0x68, 0x14, 0x1a, 0xf3, 0x71, 0xb0, 0x2c, 0x0e, - 0x39, 0x50, 0x1b, 0xd2, 0x1b, 0x08, 0xa4, 0xb4, 0xb1, 0xa0, 0xa2, 0x20, 0xb4, 0x49, 0x2b, 0xc1, - 0xa5, 0xf2, 0xc7, 0xd6, 0x2c, 0xd8, 0x5e, 0xe3, 0xdd, 0x1e, 0xf2, 0x08, 0x3c, 0x0c, 0xef, 0x88, - 0xbc, 0x5e, 0x57, 0x6d, 0x08, 0xa8, 0x27, 0xef, 0xcc, 0xfc, 0x76, 0xe6, 0x3f, 0x33, 0x5e, 0x78, - 0x7a, 0x99, 0xaf, 0x25, 0x65, 0x69, 0x1e, 0x44, 0x69, 0xc1, 0xca, 0xa0, 0xaa, 0xf9, 0x77, 0x9a, - 0x48, 0xbf, 0xaa, 0xb9, 0xe4, 0x38, 0xec, 0xa2, 0xbe, 0x8a, 0x3e, 0x7e, 0xb2, 0x41, 0x27, 0xbc, - 0x28, 0x78, 0xd9, 0xc2, 0xde, 0x73, 0xb0, 0x16, 0xbc, 0x88, 0x58, 0x89, 0x43, 0x30, 0x59, 0xea, - 0x18, 0xae, 0x31, 0xbd, 0x4f, 0x4c, 0x96, 0x22, 0xc2, 0x6e, 0x19, 0x15, 0xd4, 0x31, 0x95, 0x47, - 0x9d, 0xbd, 0xdf, 0x26, 0xd8, 0x9f, 0xdb, 0x62, 0x77, 0xe1, 0xf1, 0x05, 0xd8, 0xa9, 0xca, 0x2e, - 0x9c, 0x1d, 0x77, 0x67, 0x3a, 0x98, 0xed, 0xfb, 0xb7, 0xc5, 0xf9, 0x6d, 0x71, 0xd2, 0x61, 0xe8, - 0xc2, 0x20, 0xa5, 0x22, 0xa9, 0x59, 0x25, 0x19, 0x2f, 0x9d, 0x5d, 0x95, 0xec, 0xa6, 0x0b, 0x7d, - 0xb0, 0xf2, 0x28, 0xa6, 0xb9, 0x70, 0x7a, 0xae, 0xb1, 0x2d, 0xe5, 0xa9, 0x8a, 0x12, 0x4d, 0xe1, - 0x2b, 0xe8, 0x09, 0x19, 0x49, 0xea, 0x58, 0xae, 0x31, 0x1d, 0xce, 0x9e, 0x6d, 0xe2, 0xba, 0x9f, - 0xee, 0xbb, 0x6c, 0x58, 0xd2, 0x5e, 0xf1, 0xde, 0xc2, 0xde, 0x4d, 0x37, 0x02, 0x58, 0xf3, 0xe3, - 0xd5, 0xc9, 0x79, 0x38, 0xba, 0x87, 0x7b, 0xd0, 0x9f, 0x93, 0xe3, 0xf7, 0x27, 0xe7, 0xe1, 0x62, - 0x64, 0xe0, 0x18, 0x46, 0xcb, 0x2f, 0xcb, 0x55, 0xf8, 0xf1, 0xe2, 0x5d, 0xf8, 0x29, 0x24, 0xf3, - 0x55, 0xb8, 0x18, 0x99, 0xde, 0x19, 0xf4, 0xf5, 0x7d, 0x81, 0x87, 0xd0, 0xd7, 0x7b, 0x12, 0x8e, - 0xa1, 0x86, 0x31, 0xf9, 0x87, 0x14, 0x72, 0x0d, 0xe2, 0x18, 0x7a, 0x92, 0xff, 0xa0, 0xa5, 0x9e, - 0x6a, 0x6b, 0x78, 0xbf, 0x0c, 0x40, 0xcd, 0x9e, 0x32, 0x21, 0x09, 0xfd, 0x79, 0x45, 0x85, 0x6c, - 0xe0, 0x9c, 0x15, 0x4c, 0xaa, 0xa5, 0x3c, 0x20, 0xad, 0xb1, 0x3d, 0x05, 0x3a, 0x60, 0x5f, 0xb2, - 0x5c, 0xd2, 0xba, 0xd9, 0x4c, 0xe3, 0xef, 0x4c, 0x3c, 0x00, 0x5b, 0xf0, 0x5a, 0x5e, 0xc4, 0x6b, - 0x35, 0xfd, 0xc1, 0x6c, 0xbc, 0x29, 0x73, 0xc9, 0x6b, 0x49, 0xac, 0x06, 0x3a, 0x5a, 0x7b, 0x1f, - 0x60, 0xbf, 0x93, 0x4d, 0x33, 0x26, 0x24, 0xad, 0x3b, 0x39, 0x2f, 0xc1, 0xd6, 0x7d, 0x28, 0x41, - 0xff, 0xe9, 0xb7, 0xe3, 0xbc, 0x47, 0x30, 0xf9, 0x2b, 0x99, 0xa8, 0x78, 0x29, 0xa8, 0x37, 0x81, - 0x87, 0x3a, 0x74, 0x56, 0xa5, 0xcd, 0x8a, 0x74, 0xe0, 0xe8, 0xcd, 0xd7, 0xd7, 0x19, 0x93, 0xdf, - 0xae, 0x62, 0x3f, 0xe1, 0x45, 0xa0, 0x2a, 0xf0, 0x3a, 0x6b, 0x0f, 0xc1, 0xf5, 0xaf, 0x9f, 0xd1, - 0x32, 0xa8, 0xe2, 0x83, 0x8c, 0x07, 0xb7, 0x5f, 0x43, 0x6c, 0xa9, 0x77, 0x70, 0xf8, 0x27, 0x00, - 0x00, 0xff, 0xff, 0x33, 0x79, 0x69, 0x68, 0x54, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json deleted file mode 100644 index 5eae55af8c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go deleted file mode 100644 index 349d2cfd85..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.pb.go +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/project_attributes.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a set of custom matching attributes at the project level. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,2,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributes) Reset() { *m = ProjectAttributes{} } -func (m *ProjectAttributes) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributes) ProtoMessage() {} -func (*ProjectAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{0} -} - -func (m *ProjectAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributes.Unmarshal(m, b) -} -func (m *ProjectAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributes.Marshal(b, m, deterministic) -} -func (m *ProjectAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributes.Merge(m, src) -} -func (m *ProjectAttributes) XXX_Size() int { - return xxx_messageInfo_ProjectAttributes.Size(m) -} -func (m *ProjectAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributes proto.InternalMessageInfo - -func (m *ProjectAttributes) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectAttributes) GetMatchingAttributes() *MatchingAttributes { - if m != nil { - return m.MatchingAttributes - } - return nil -} - -// Sets custom attributes for a project -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesUpdateRequest struct { - // +required - Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesUpdateRequest) Reset() { *m = ProjectAttributesUpdateRequest{} } -func (m *ProjectAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesUpdateRequest) ProtoMessage() {} -func (*ProjectAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{1} -} - -func (m *ProjectAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesUpdateRequest.Unmarshal(m, b) -} -func (m *ProjectAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesUpdateRequest.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesUpdateRequest.Merge(m, src) -} -func (m *ProjectAttributesUpdateRequest) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesUpdateRequest.Size(m) -} -func (m *ProjectAttributesUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesUpdateRequest proto.InternalMessageInfo - -func (m *ProjectAttributesUpdateRequest) GetAttributes() *ProjectAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type ProjectAttributesUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesUpdateResponse) Reset() { *m = ProjectAttributesUpdateResponse{} } -func (m *ProjectAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesUpdateResponse) ProtoMessage() {} -func (*ProjectAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{2} -} - -func (m *ProjectAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesUpdateResponse.Unmarshal(m, b) -} -func (m *ProjectAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesUpdateResponse.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesUpdateResponse.Merge(m, src) -} -func (m *ProjectAttributesUpdateResponse) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesUpdateResponse.Size(m) -} -func (m *ProjectAttributesUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesUpdateResponse proto.InternalMessageInfo - -// Request to get an individual project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesGetRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesGetRequest) Reset() { *m = ProjectAttributesGetRequest{} } -func (m *ProjectAttributesGetRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesGetRequest) ProtoMessage() {} -func (*ProjectAttributesGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{3} -} - -func (m *ProjectAttributesGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesGetRequest.Unmarshal(m, b) -} -func (m *ProjectAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesGetRequest.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesGetRequest.Merge(m, src) -} -func (m *ProjectAttributesGetRequest) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesGetRequest.Size(m) -} -func (m *ProjectAttributesGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesGetRequest proto.InternalMessageInfo - -func (m *ProjectAttributesGetRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectAttributesGetRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Response to get an individual project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesGetResponse struct { - Attributes *ProjectAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesGetResponse) Reset() { *m = ProjectAttributesGetResponse{} } -func (m *ProjectAttributesGetResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesGetResponse) ProtoMessage() {} -func (*ProjectAttributesGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{4} -} - -func (m *ProjectAttributesGetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesGetResponse.Unmarshal(m, b) -} -func (m *ProjectAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesGetResponse.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesGetResponse.Merge(m, src) -} -func (m *ProjectAttributesGetResponse) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesGetResponse.Size(m) -} -func (m *ProjectAttributesGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesGetResponse proto.InternalMessageInfo - -func (m *ProjectAttributesGetResponse) GetAttributes() *ProjectAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Request to delete a set matchable project level attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectAttributesDeleteRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,2,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesDeleteRequest) Reset() { *m = ProjectAttributesDeleteRequest{} } -func (m *ProjectAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesDeleteRequest) ProtoMessage() {} -func (*ProjectAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{5} -} - -func (m *ProjectAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesDeleteRequest.Unmarshal(m, b) -} -func (m *ProjectAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesDeleteRequest.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesDeleteRequest.Merge(m, src) -} -func (m *ProjectAttributesDeleteRequest) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesDeleteRequest.Size(m) -} -func (m *ProjectAttributesDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesDeleteRequest proto.InternalMessageInfo - -func (m *ProjectAttributesDeleteRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectAttributesDeleteRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Purposefully empty, may be populated in the future. -type ProjectAttributesDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectAttributesDeleteResponse) Reset() { *m = ProjectAttributesDeleteResponse{} } -func (m *ProjectAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectAttributesDeleteResponse) ProtoMessage() {} -func (*ProjectAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_cb8dc9faa9640256, []int{6} -} - -func (m *ProjectAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectAttributesDeleteResponse.Unmarshal(m, b) -} -func (m *ProjectAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectAttributesDeleteResponse.Marshal(b, m, deterministic) -} -func (m *ProjectAttributesDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectAttributesDeleteResponse.Merge(m, src) -} -func (m *ProjectAttributesDeleteResponse) XXX_Size() int { - return xxx_messageInfo_ProjectAttributesDeleteResponse.Size(m) -} -func (m *ProjectAttributesDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectAttributesDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectAttributesDeleteResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ProjectAttributes)(nil), "flyteidl.admin.ProjectAttributes") - proto.RegisterType((*ProjectAttributesUpdateRequest)(nil), "flyteidl.admin.ProjectAttributesUpdateRequest") - proto.RegisterType((*ProjectAttributesUpdateResponse)(nil), "flyteidl.admin.ProjectAttributesUpdateResponse") - proto.RegisterType((*ProjectAttributesGetRequest)(nil), "flyteidl.admin.ProjectAttributesGetRequest") - proto.RegisterType((*ProjectAttributesGetResponse)(nil), "flyteidl.admin.ProjectAttributesGetResponse") - proto.RegisterType((*ProjectAttributesDeleteRequest)(nil), "flyteidl.admin.ProjectAttributesDeleteRequest") - proto.RegisterType((*ProjectAttributesDeleteResponse)(nil), "flyteidl.admin.ProjectAttributesDeleteResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/project_attributes.proto", fileDescriptor_cb8dc9faa9640256) -} - -var fileDescriptor_cb8dc9faa9640256 = []byte{ - // 317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x92, 0x31, 0x4f, 0xc3, 0x30, - 0x10, 0x85, 0x65, 0x06, 0x10, 0x06, 0x2a, 0x11, 0x96, 0x0a, 0x10, 0xb4, 0x5e, 0xe8, 0x42, 0x2c, - 0xc1, 0x88, 0x18, 0x8a, 0x10, 0x4c, 0x95, 0x90, 0x81, 0x85, 0xa5, 0x72, 0xd2, 0x23, 0x0d, 0x4a, - 0x62, 0xe3, 0x5c, 0x86, 0x4c, 0x48, 0xfd, 0xe5, 0x48, 0x4e, 0xdc, 0xa6, 0x4d, 0xba, 0xc1, 0x96, - 0x58, 0xef, 0xde, 0xfb, 0xfc, 0x7c, 0xf4, 0xea, 0x33, 0x29, 0x11, 0xe2, 0x59, 0xc2, 0xe5, 0x2c, - 0x8d, 0x33, 0xae, 0x8d, 0xfa, 0x82, 0x10, 0xa7, 0x12, 0xd1, 0xc4, 0x41, 0x81, 0x90, 0xfb, 0xda, - 0x28, 0x54, 0x5e, 0xcf, 0x09, 0x7d, 0x2b, 0x3c, 0xdd, 0x1c, 0x4c, 0x25, 0x86, 0x73, 0x19, 0x24, - 0x30, 0x35, 0x90, 0xab, 0xc2, 0x84, 0x50, 0x0d, 0xb2, 0x05, 0xa1, 0xc7, 0x2f, 0x95, 0xeb, 0x78, - 0x69, 0xea, 0xf5, 0xe9, 0x5e, 0x1d, 0xd5, 0x27, 0x03, 0x32, 0xda, 0x17, 0xee, 0xd7, 0x7b, 0xa5, - 0x27, 0xd6, 0x2b, 0xce, 0xa2, 0x06, 0x45, 0x7f, 0x67, 0x40, 0x46, 0x07, 0x37, 0xcc, 0x5f, 0xc7, - 0xf0, 0x27, 0xb5, 0x74, 0x65, 0x2d, 0xbc, 0xb4, 0x75, 0xc6, 0x42, 0x7a, 0xd1, 0x62, 0x78, 0xd7, - 0x33, 0x89, 0x20, 0xe0, 0xbb, 0x80, 0x1c, 0xbd, 0x31, 0xa5, 0x8d, 0x34, 0x62, 0xd3, 0x86, 0x9b, - 0x69, 0x2d, 0x0f, 0xd1, 0x18, 0x62, 0x43, 0x7a, 0xb9, 0x35, 0x24, 0xd7, 0x2a, 0xcb, 0x81, 0xfd, - 0xd0, 0xb3, 0x96, 0xe4, 0x19, 0xd0, 0x41, 0x6c, 0x6f, 0xe5, 0x89, 0x1e, 0xb9, 0x5e, 0xa7, 0x58, - 0x6a, 0xb0, 0x7d, 0xf4, 0xda, 0x84, 0x13, 0xf7, 0x0c, 0xa2, 0x56, 0x8b, 0x43, 0x37, 0xf7, 0x56, - 0x6a, 0x60, 0x92, 0x9e, 0x77, 0x03, 0x54, 0x80, 0x7f, 0x51, 0xc3, 0x82, 0x74, 0x94, 0xfd, 0x08, - 0x09, 0xac, 0xca, 0xfe, 0xff, 0x7b, 0x76, 0xbd, 0x85, 0x63, 0xa8, 0xae, 0xfa, 0x70, 0xff, 0x71, - 0x17, 0xc5, 0x38, 0x2f, 0x02, 0x3f, 0x54, 0x29, 0xb7, 0xfe, 0xca, 0x44, 0xd5, 0x07, 0x5f, 0x6e, - 0x77, 0x04, 0x19, 0xd7, 0xc1, 0x75, 0xa4, 0xf8, 0xfa, 0xc2, 0x07, 0xbb, 0x76, 0xbd, 0x6f, 0x7f, - 0x03, 0x00, 0x00, 0xff, 0xff, 0xda, 0x8d, 0xf5, 0x81, 0x42, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json deleted file mode 100644 index 4280d59371..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_attributes.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project_attributes.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go deleted file mode 100644 index 4708ef1e5e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.pb.go +++ /dev/null @@ -1,393 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/project_domain_attributes.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a set of custom matching attributes which defines resource defaults for a project and domain. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,3,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributes) Reset() { *m = ProjectDomainAttributes{} } -func (m *ProjectDomainAttributes) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributes) ProtoMessage() {} -func (*ProjectDomainAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{0} -} - -func (m *ProjectDomainAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributes.Unmarshal(m, b) -} -func (m *ProjectDomainAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributes.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributes.Merge(m, src) -} -func (m *ProjectDomainAttributes) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributes.Size(m) -} -func (m *ProjectDomainAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributes proto.InternalMessageInfo - -func (m *ProjectDomainAttributes) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectDomainAttributes) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ProjectDomainAttributes) GetMatchingAttributes() *MatchingAttributes { - if m != nil { - return m.MatchingAttributes - } - return nil -} - -// Sets custom attributes for a project-domain combination. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesUpdateRequest struct { - // +required - Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesUpdateRequest) Reset() { *m = ProjectDomainAttributesUpdateRequest{} } -func (m *ProjectDomainAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesUpdateRequest) ProtoMessage() {} -func (*ProjectDomainAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{1} -} - -func (m *ProjectDomainAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Merge(m, src) -} -func (m *ProjectDomainAttributesUpdateRequest) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesUpdateRequest.Size(m) -} -func (m *ProjectDomainAttributesUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesUpdateRequest proto.InternalMessageInfo - -func (m *ProjectDomainAttributesUpdateRequest) GetAttributes() *ProjectDomainAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type ProjectDomainAttributesUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesUpdateResponse) Reset() { *m = ProjectDomainAttributesUpdateResponse{} } -func (m *ProjectDomainAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesUpdateResponse) ProtoMessage() {} -func (*ProjectDomainAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{2} -} - -func (m *ProjectDomainAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Merge(m, src) -} -func (m *ProjectDomainAttributesUpdateResponse) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesUpdateResponse.Size(m) -} -func (m *ProjectDomainAttributesUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesUpdateResponse proto.InternalMessageInfo - -// Request to get an individual project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesGetRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesGetRequest) Reset() { *m = ProjectDomainAttributesGetRequest{} } -func (m *ProjectDomainAttributesGetRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesGetRequest) ProtoMessage() {} -func (*ProjectDomainAttributesGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{3} -} - -func (m *ProjectDomainAttributesGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesGetRequest.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesGetRequest.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesGetRequest.Merge(m, src) -} -func (m *ProjectDomainAttributesGetRequest) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesGetRequest.Size(m) -} -func (m *ProjectDomainAttributesGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesGetRequest proto.InternalMessageInfo - -func (m *ProjectDomainAttributesGetRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectDomainAttributesGetRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ProjectDomainAttributesGetRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Response to get an individual project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesGetResponse struct { - Attributes *ProjectDomainAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesGetResponse) Reset() { *m = ProjectDomainAttributesGetResponse{} } -func (m *ProjectDomainAttributesGetResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesGetResponse) ProtoMessage() {} -func (*ProjectDomainAttributesGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{4} -} - -func (m *ProjectDomainAttributesGetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesGetResponse.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesGetResponse.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesGetResponse.Merge(m, src) -} -func (m *ProjectDomainAttributesGetResponse) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesGetResponse.Size(m) -} -func (m *ProjectDomainAttributesGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesGetResponse proto.InternalMessageInfo - -func (m *ProjectDomainAttributesGetResponse) GetAttributes() *ProjectDomainAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Request to delete a set matchable project domain attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type ProjectDomainAttributesDeleteRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,3,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesDeleteRequest) Reset() { *m = ProjectDomainAttributesDeleteRequest{} } -func (m *ProjectDomainAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesDeleteRequest) ProtoMessage() {} -func (*ProjectDomainAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{5} -} - -func (m *ProjectDomainAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Merge(m, src) -} -func (m *ProjectDomainAttributesDeleteRequest) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesDeleteRequest.Size(m) -} -func (m *ProjectDomainAttributesDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesDeleteRequest proto.InternalMessageInfo - -func (m *ProjectDomainAttributesDeleteRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ProjectDomainAttributesDeleteRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ProjectDomainAttributesDeleteRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Purposefully empty, may be populated in the future. -type ProjectDomainAttributesDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ProjectDomainAttributesDeleteResponse) Reset() { *m = ProjectDomainAttributesDeleteResponse{} } -func (m *ProjectDomainAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*ProjectDomainAttributesDeleteResponse) ProtoMessage() {} -func (*ProjectDomainAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_e8ab0b551a649f05, []int{6} -} - -func (m *ProjectDomainAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Unmarshal(m, b) -} -func (m *ProjectDomainAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Marshal(b, m, deterministic) -} -func (m *ProjectDomainAttributesDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Merge(m, src) -} -func (m *ProjectDomainAttributesDeleteResponse) XXX_Size() int { - return xxx_messageInfo_ProjectDomainAttributesDeleteResponse.Size(m) -} -func (m *ProjectDomainAttributesDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ProjectDomainAttributesDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ProjectDomainAttributesDeleteResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*ProjectDomainAttributes)(nil), "flyteidl.admin.ProjectDomainAttributes") - proto.RegisterType((*ProjectDomainAttributesUpdateRequest)(nil), "flyteidl.admin.ProjectDomainAttributesUpdateRequest") - proto.RegisterType((*ProjectDomainAttributesUpdateResponse)(nil), "flyteidl.admin.ProjectDomainAttributesUpdateResponse") - proto.RegisterType((*ProjectDomainAttributesGetRequest)(nil), "flyteidl.admin.ProjectDomainAttributesGetRequest") - proto.RegisterType((*ProjectDomainAttributesGetResponse)(nil), "flyteidl.admin.ProjectDomainAttributesGetResponse") - proto.RegisterType((*ProjectDomainAttributesDeleteRequest)(nil), "flyteidl.admin.ProjectDomainAttributesDeleteRequest") - proto.RegisterType((*ProjectDomainAttributesDeleteResponse)(nil), "flyteidl.admin.ProjectDomainAttributesDeleteResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/project_domain_attributes.proto", fileDescriptor_e8ab0b551a649f05) -} - -var fileDescriptor_e8ab0b551a649f05 = []byte{ - // 342 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x53, 0x4f, 0x4b, 0xfb, 0x40, - 0x10, 0x65, 0x7f, 0x3f, 0xa8, 0x38, 0x6a, 0x0f, 0x11, 0x34, 0x78, 0x6a, 0x17, 0xa5, 0xbd, 0x98, - 0x40, 0x3d, 0x8a, 0x07, 0xa5, 0xd8, 0x93, 0x20, 0x51, 0x2f, 0x5e, 0x42, 0xfe, 0x8c, 0x69, 0x24, - 0xc9, 0xae, 0xc9, 0xe4, 0xd0, 0x0f, 0x23, 0xf4, 0xa3, 0x8a, 0xbb, 0xd9, 0xfe, 0xd3, 0x28, 0x82, - 0xe0, 0x2d, 0x93, 0xbc, 0x79, 0xef, 0xe5, 0x3d, 0x06, 0x9c, 0xa7, 0x6c, 0x46, 0x98, 0xc6, 0x99, - 0x1b, 0xc4, 0x79, 0x5a, 0xb8, 0xb2, 0x14, 0xcf, 0x18, 0x91, 0x1f, 0x8b, 0x3c, 0x48, 0x0b, 0x3f, - 0x20, 0x2a, 0xd3, 0xb0, 0x26, 0xac, 0x1c, 0x59, 0x0a, 0x12, 0x56, 0xd7, 0xe0, 0x1d, 0x85, 0x3f, - 0x1a, 0x6c, 0xec, 0xe7, 0x01, 0x45, 0xd3, 0x20, 0xcc, 0xd0, 0x2f, 0xb1, 0x12, 0x75, 0x19, 0xa1, - 0x5e, 0xe4, 0x73, 0x06, 0x87, 0xb7, 0x9a, 0x7c, 0xac, 0xb8, 0x2f, 0x17, 0xd4, 0x96, 0x0d, 0x5b, - 0x8d, 0xae, 0xcd, 0x7a, 0x6c, 0xb8, 0xed, 0x99, 0xd1, 0x3a, 0x80, 0x8e, 0x76, 0x62, 0xff, 0x53, - 0x1f, 0x9a, 0xc9, 0xba, 0x83, 0x7d, 0xa5, 0x94, 0x16, 0xc9, 0x8a, 0x47, 0xfb, 0x7f, 0x8f, 0x0d, - 0x77, 0x46, 0xdc, 0x59, 0x37, 0xe9, 0xdc, 0x34, 0xd0, 0xa5, 0xa4, 0x67, 0xe5, 0x1f, 0xde, 0x71, - 0x01, 0xc7, 0x2d, 0x0e, 0x1f, 0x64, 0x1c, 0x10, 0x7a, 0xf8, 0x52, 0x63, 0x45, 0xd6, 0x04, 0x60, - 0x45, 0x93, 0x29, 0xcd, 0xc1, 0xa6, 0x66, 0x0b, 0x93, 0xb7, 0xb2, 0xca, 0x07, 0x70, 0xf2, 0x8d, - 0x60, 0x25, 0x45, 0x51, 0x21, 0x7f, 0x65, 0xd0, 0x6f, 0x41, 0x4e, 0x90, 0x8c, 0xaf, 0x9f, 0xc7, - 0x78, 0x0d, 0x7b, 0xa6, 0x26, 0x9f, 0x66, 0x12, 0x55, 0x80, 0xdd, 0x51, 0xff, 0xd3, 0x00, 0xdf, - 0x5b, 0xf5, 0x1a, 0xb4, 0xb7, 0x6b, 0xf6, 0xee, 0x67, 0x12, 0x79, 0x0e, 0xfc, 0x2b, 0x7b, 0xfa, - 0x2f, 0x7e, 0x2f, 0xb7, 0x39, 0x6b, 0x6d, 0x6a, 0x8c, 0x19, 0x2e, 0x9b, 0xfa, 0xbb, 0x44, 0xda, - 0xab, 0x35, 0x0e, 0x75, 0x28, 0x57, 0x17, 0x8f, 0xe7, 0x49, 0x4a, 0xd3, 0x3a, 0x74, 0x22, 0x91, - 0xbb, 0x4a, 0x45, 0x94, 0x89, 0x7e, 0x70, 0x17, 0xc7, 0x95, 0x60, 0xe1, 0xca, 0xf0, 0x34, 0x11, - 0xee, 0xfa, 0xbd, 0x85, 0x1d, 0x75, 0x5d, 0x67, 0x6f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd5, 0x3f, - 0x53, 0x68, 0xc8, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json deleted file mode 100644 index 61ce4b8922..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/project_domain_attributes.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/project_domain_attributes.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go deleted file mode 100644 index 52116abf93..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/schedule.pb.go +++ /dev/null @@ -1,293 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/schedule.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Represents a frequency at which to run a schedule. -type FixedRateUnit int32 - -const ( - FixedRateUnit_MINUTE FixedRateUnit = 0 - FixedRateUnit_HOUR FixedRateUnit = 1 - FixedRateUnit_DAY FixedRateUnit = 2 -) - -var FixedRateUnit_name = map[int32]string{ - 0: "MINUTE", - 1: "HOUR", - 2: "DAY", -} - -var FixedRateUnit_value = map[string]int32{ - "MINUTE": 0, - "HOUR": 1, - "DAY": 2, -} - -func (x FixedRateUnit) String() string { - return proto.EnumName(FixedRateUnit_name, int32(x)) -} - -func (FixedRateUnit) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_a71cf75647fcd25a, []int{0} -} - -// Option for schedules run at a certain frequency e.g. every 2 minutes. -type FixedRate struct { - Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - Unit FixedRateUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=flyteidl.admin.FixedRateUnit" json:"unit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FixedRate) Reset() { *m = FixedRate{} } -func (m *FixedRate) String() string { return proto.CompactTextString(m) } -func (*FixedRate) ProtoMessage() {} -func (*FixedRate) Descriptor() ([]byte, []int) { - return fileDescriptor_a71cf75647fcd25a, []int{0} -} - -func (m *FixedRate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FixedRate.Unmarshal(m, b) -} -func (m *FixedRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FixedRate.Marshal(b, m, deterministic) -} -func (m *FixedRate) XXX_Merge(src proto.Message) { - xxx_messageInfo_FixedRate.Merge(m, src) -} -func (m *FixedRate) XXX_Size() int { - return xxx_messageInfo_FixedRate.Size(m) -} -func (m *FixedRate) XXX_DiscardUnknown() { - xxx_messageInfo_FixedRate.DiscardUnknown(m) -} - -var xxx_messageInfo_FixedRate proto.InternalMessageInfo - -func (m *FixedRate) GetValue() uint32 { - if m != nil { - return m.Value - } - return 0 -} - -func (m *FixedRate) GetUnit() FixedRateUnit { - if m != nil { - return m.Unit - } - return FixedRateUnit_MINUTE -} - -// Options for schedules to run according to a cron expression. -type CronSchedule struct { - // Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression; - // Also supports nonstandard predefined scheduling definitions - // as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions - // except @reboot - Schedule string `protobuf:"bytes,1,opt,name=schedule,proto3" json:"schedule,omitempty"` - // ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations - Offset string `protobuf:"bytes,2,opt,name=offset,proto3" json:"offset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CronSchedule) Reset() { *m = CronSchedule{} } -func (m *CronSchedule) String() string { return proto.CompactTextString(m) } -func (*CronSchedule) ProtoMessage() {} -func (*CronSchedule) Descriptor() ([]byte, []int) { - return fileDescriptor_a71cf75647fcd25a, []int{1} -} - -func (m *CronSchedule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CronSchedule.Unmarshal(m, b) -} -func (m *CronSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CronSchedule.Marshal(b, m, deterministic) -} -func (m *CronSchedule) XXX_Merge(src proto.Message) { - xxx_messageInfo_CronSchedule.Merge(m, src) -} -func (m *CronSchedule) XXX_Size() int { - return xxx_messageInfo_CronSchedule.Size(m) -} -func (m *CronSchedule) XXX_DiscardUnknown() { - xxx_messageInfo_CronSchedule.DiscardUnknown(m) -} - -var xxx_messageInfo_CronSchedule proto.InternalMessageInfo - -func (m *CronSchedule) GetSchedule() string { - if m != nil { - return m.Schedule - } - return "" -} - -func (m *CronSchedule) GetOffset() string { - if m != nil { - return m.Offset - } - return "" -} - -// Defines complete set of information required to trigger an execution on a schedule. -type Schedule struct { - // Types that are valid to be assigned to ScheduleExpression: - // *Schedule_CronExpression - // *Schedule_Rate - // *Schedule_CronSchedule - ScheduleExpression isSchedule_ScheduleExpression `protobuf_oneof:"ScheduleExpression"` - // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - KickoffTimeInputArg string `protobuf:"bytes,3,opt,name=kickoff_time_input_arg,json=kickoffTimeInputArg,proto3" json:"kickoff_time_input_arg,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Schedule) Reset() { *m = Schedule{} } -func (m *Schedule) String() string { return proto.CompactTextString(m) } -func (*Schedule) ProtoMessage() {} -func (*Schedule) Descriptor() ([]byte, []int) { - return fileDescriptor_a71cf75647fcd25a, []int{2} -} - -func (m *Schedule) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Schedule.Unmarshal(m, b) -} -func (m *Schedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Schedule.Marshal(b, m, deterministic) -} -func (m *Schedule) XXX_Merge(src proto.Message) { - xxx_messageInfo_Schedule.Merge(m, src) -} -func (m *Schedule) XXX_Size() int { - return xxx_messageInfo_Schedule.Size(m) -} -func (m *Schedule) XXX_DiscardUnknown() { - xxx_messageInfo_Schedule.DiscardUnknown(m) -} - -var xxx_messageInfo_Schedule proto.InternalMessageInfo - -type isSchedule_ScheduleExpression interface { - isSchedule_ScheduleExpression() -} - -type Schedule_CronExpression struct { - CronExpression string `protobuf:"bytes,1,opt,name=cron_expression,json=cronExpression,proto3,oneof"` -} - -type Schedule_Rate struct { - Rate *FixedRate `protobuf:"bytes,2,opt,name=rate,proto3,oneof"` -} - -type Schedule_CronSchedule struct { - CronSchedule *CronSchedule `protobuf:"bytes,4,opt,name=cron_schedule,json=cronSchedule,proto3,oneof"` -} - -func (*Schedule_CronExpression) isSchedule_ScheduleExpression() {} - -func (*Schedule_Rate) isSchedule_ScheduleExpression() {} - -func (*Schedule_CronSchedule) isSchedule_ScheduleExpression() {} - -func (m *Schedule) GetScheduleExpression() isSchedule_ScheduleExpression { - if m != nil { - return m.ScheduleExpression - } - return nil -} - -// Deprecated: Do not use. -func (m *Schedule) GetCronExpression() string { - if x, ok := m.GetScheduleExpression().(*Schedule_CronExpression); ok { - return x.CronExpression - } - return "" -} - -func (m *Schedule) GetRate() *FixedRate { - if x, ok := m.GetScheduleExpression().(*Schedule_Rate); ok { - return x.Rate - } - return nil -} - -func (m *Schedule) GetCronSchedule() *CronSchedule { - if x, ok := m.GetScheduleExpression().(*Schedule_CronSchedule); ok { - return x.CronSchedule - } - return nil -} - -func (m *Schedule) GetKickoffTimeInputArg() string { - if m != nil { - return m.KickoffTimeInputArg - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Schedule) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Schedule_CronExpression)(nil), - (*Schedule_Rate)(nil), - (*Schedule_CronSchedule)(nil), - } -} - -func init() { - proto.RegisterEnum("flyteidl.admin.FixedRateUnit", FixedRateUnit_name, FixedRateUnit_value) - proto.RegisterType((*FixedRate)(nil), "flyteidl.admin.FixedRate") - proto.RegisterType((*CronSchedule)(nil), "flyteidl.admin.CronSchedule") - proto.RegisterType((*Schedule)(nil), "flyteidl.admin.Schedule") -} - -func init() { proto.RegisterFile("flyteidl/admin/schedule.proto", fileDescriptor_a71cf75647fcd25a) } - -var fileDescriptor_a71cf75647fcd25a = []byte{ - // 361 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x8b, 0xda, 0x40, - 0x14, 0xc6, 0x13, 0x4d, 0xad, 0xbe, 0xaa, 0x95, 0xa9, 0x48, 0x5a, 0x2a, 0x88, 0x27, 0x29, 0x98, - 0x50, 0x3d, 0x96, 0x1e, 0x8c, 0xb5, 0xc4, 0x43, 0x5b, 0x98, 0xea, 0x61, 0xf7, 0x12, 0x62, 0x32, - 0x89, 0x83, 0xc9, 0x4c, 0x98, 0x4c, 0x16, 0xf7, 0x5f, 0xdf, 0xd3, 0xe2, 0x44, 0xb3, 0xba, 0xb0, - 0xb7, 0x79, 0x7c, 0xef, 0xfd, 0xde, 0xf7, 0x0d, 0x0f, 0x86, 0x51, 0xf2, 0x28, 0x09, 0x0d, 0x13, - 0xdb, 0x0f, 0x53, 0xca, 0xec, 0x3c, 0xd8, 0x93, 0xb0, 0x48, 0x88, 0x95, 0x09, 0x2e, 0x39, 0xea, - 0x5e, 0x64, 0x4b, 0xc9, 0xe3, 0x0d, 0xb4, 0x7e, 0xd3, 0x23, 0x09, 0xb1, 0x2f, 0x09, 0xea, 0xc3, - 0xbb, 0x07, 0x3f, 0x29, 0x88, 0xa9, 0x8f, 0xf4, 0x49, 0x07, 0x97, 0x05, 0xfa, 0x0e, 0x46, 0xc1, - 0xa8, 0x34, 0x6b, 0x23, 0x7d, 0xd2, 0x9d, 0x0d, 0xad, 0x5b, 0x82, 0x55, 0x8d, 0x6f, 0x19, 0x95, - 0x58, 0xb5, 0x8e, 0x1d, 0x68, 0x2f, 0x05, 0x67, 0xff, 0xcf, 0xbb, 0xd1, 0x17, 0x68, 0x5e, 0x7c, - 0x28, 0x76, 0x0b, 0x57, 0x35, 0x1a, 0x40, 0x83, 0x47, 0x51, 0x4e, 0xca, 0x05, 0x2d, 0x7c, 0xae, - 0xc6, 0x4f, 0x3a, 0x34, 0x2b, 0xc0, 0x14, 0x3e, 0x06, 0x82, 0x33, 0x8f, 0x1c, 0x33, 0x41, 0xf2, - 0x9c, 0x72, 0x56, 0x72, 0x9c, 0x9a, 0xa9, 0xbb, 0x1a, 0xee, 0x9e, 0xc4, 0x55, 0xa5, 0x21, 0x1b, - 0x0c, 0xe1, 0x4b, 0xa2, 0x88, 0x1f, 0x66, 0x9f, 0xdf, 0xb4, 0xec, 0x6a, 0x58, 0x35, 0xa2, 0x25, - 0x74, 0x14, 0xbf, 0x72, 0x69, 0xa8, 0xc9, 0xaf, 0xaf, 0x27, 0xaf, 0x53, 0xb9, 0x1a, 0x6e, 0x07, - 0xd7, 0x29, 0xe7, 0x30, 0x38, 0xd0, 0xe0, 0xc0, 0xa3, 0xc8, 0x93, 0x34, 0x25, 0x1e, 0x65, 0x59, - 0x21, 0x3d, 0x5f, 0xc4, 0x66, 0x5d, 0x25, 0xfb, 0x74, 0x56, 0x37, 0x34, 0x25, 0xeb, 0x93, 0xb6, - 0x10, 0xb1, 0xd3, 0x07, 0x74, 0x01, 0xbc, 0x04, 0xf8, 0x66, 0x41, 0xe7, 0xe6, 0x5f, 0x11, 0x40, - 0xe3, 0xcf, 0xfa, 0xef, 0x76, 0xb3, 0xea, 0x69, 0xa8, 0x09, 0x86, 0xfb, 0x6f, 0x8b, 0x7b, 0x3a, - 0x7a, 0x0f, 0xf5, 0x5f, 0x8b, 0xbb, 0x5e, 0xcd, 0xf9, 0x79, 0xff, 0x23, 0xa6, 0x72, 0x5f, 0xec, - 0xac, 0x80, 0xa7, 0xb6, 0x32, 0xcd, 0x45, 0x5c, 0x3e, 0xec, 0xea, 0x22, 0x62, 0xc2, 0xec, 0x6c, - 0x37, 0x8d, 0xb9, 0x7d, 0x7b, 0x24, 0xbb, 0x86, 0x3a, 0x8e, 0xf9, 0x73, 0x00, 0x00, 0x00, 0xff, - 0xff, 0xab, 0xa0, 0xaf, 0x50, 0x3d, 0x02, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json deleted file mode 100644 index 5891c05c04..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/schedule.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/schedule.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go deleted file mode 100644 index f71f6003ad..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/signal.pb.go +++ /dev/null @@ -1,397 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/signal.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalGetOrCreateRequest struct { - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A type denoting the required value type for this signal. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalGetOrCreateRequest) Reset() { *m = SignalGetOrCreateRequest{} } -func (m *SignalGetOrCreateRequest) String() string { return proto.CompactTextString(m) } -func (*SignalGetOrCreateRequest) ProtoMessage() {} -func (*SignalGetOrCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{0} -} - -func (m *SignalGetOrCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalGetOrCreateRequest.Unmarshal(m, b) -} -func (m *SignalGetOrCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalGetOrCreateRequest.Marshal(b, m, deterministic) -} -func (m *SignalGetOrCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalGetOrCreateRequest.Merge(m, src) -} -func (m *SignalGetOrCreateRequest) XXX_Size() int { - return xxx_messageInfo_SignalGetOrCreateRequest.Size(m) -} -func (m *SignalGetOrCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalGetOrCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalGetOrCreateRequest proto.InternalMessageInfo - -func (m *SignalGetOrCreateRequest) GetId() *core.SignalIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *SignalGetOrCreateRequest) GetType() *core.LiteralType { - if m != nil { - return m.Type - } - return nil -} - -// SignalListRequest represents a request structure to retrieve a collection of signals. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalListRequest struct { - // Indicates the workflow execution to filter by. - // +required - WorkflowExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution_id,json=workflowExecutionId,proto3" json:"workflow_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalListRequest) Reset() { *m = SignalListRequest{} } -func (m *SignalListRequest) String() string { return proto.CompactTextString(m) } -func (*SignalListRequest) ProtoMessage() {} -func (*SignalListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{1} -} - -func (m *SignalListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalListRequest.Unmarshal(m, b) -} -func (m *SignalListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalListRequest.Marshal(b, m, deterministic) -} -func (m *SignalListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalListRequest.Merge(m, src) -} -func (m *SignalListRequest) XXX_Size() int { - return xxx_messageInfo_SignalListRequest.Size(m) -} -func (m *SignalListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalListRequest proto.InternalMessageInfo - -func (m *SignalListRequest) GetWorkflowExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.WorkflowExecutionId - } - return nil -} - -func (m *SignalListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *SignalListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *SignalListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *SignalListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -// SignalList represents collection of signals along with the token of the last result. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalList struct { - // A list of signals matching the input filters. - Signals []*Signal `protobuf:"bytes,1,rep,name=signals,proto3" json:"signals,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalList) Reset() { *m = SignalList{} } -func (m *SignalList) String() string { return proto.CompactTextString(m) } -func (*SignalList) ProtoMessage() {} -func (*SignalList) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{2} -} - -func (m *SignalList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalList.Unmarshal(m, b) -} -func (m *SignalList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalList.Marshal(b, m, deterministic) -} -func (m *SignalList) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalList.Merge(m, src) -} -func (m *SignalList) XXX_Size() int { - return xxx_messageInfo_SignalList.Size(m) -} -func (m *SignalList) XXX_DiscardUnknown() { - xxx_messageInfo_SignalList.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalList proto.InternalMessageInfo - -func (m *SignalList) GetSignals() []*Signal { - if m != nil { - return m.Signals - } - return nil -} - -func (m *SignalList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal -// effetively satisfies the signal condition within a Flyte workflow. -// See :ref:`ref_flyteidl.admin.Signal` for more details -type SignalSetRequest struct { - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // The value of this signal, must match the defining signal type. - Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalSetRequest) Reset() { *m = SignalSetRequest{} } -func (m *SignalSetRequest) String() string { return proto.CompactTextString(m) } -func (*SignalSetRequest) ProtoMessage() {} -func (*SignalSetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{3} -} - -func (m *SignalSetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalSetRequest.Unmarshal(m, b) -} -func (m *SignalSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalSetRequest.Marshal(b, m, deterministic) -} -func (m *SignalSetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalSetRequest.Merge(m, src) -} -func (m *SignalSetRequest) XXX_Size() int { - return xxx_messageInfo_SignalSetRequest.Size(m) -} -func (m *SignalSetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SignalSetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalSetRequest proto.InternalMessageInfo - -func (m *SignalSetRequest) GetId() *core.SignalIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *SignalSetRequest) GetValue() *core.Literal { - if m != nil { - return m.Value - } - return nil -} - -// SignalSetResponse represents a response structure if signal setting succeeds. -type SignalSetResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalSetResponse) Reset() { *m = SignalSetResponse{} } -func (m *SignalSetResponse) String() string { return proto.CompactTextString(m) } -func (*SignalSetResponse) ProtoMessage() {} -func (*SignalSetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{4} -} - -func (m *SignalSetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalSetResponse.Unmarshal(m, b) -} -func (m *SignalSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalSetResponse.Marshal(b, m, deterministic) -} -func (m *SignalSetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalSetResponse.Merge(m, src) -} -func (m *SignalSetResponse) XXX_Size() int { - return xxx_messageInfo_SignalSetResponse.Size(m) -} -func (m *SignalSetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SignalSetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalSetResponse proto.InternalMessageInfo - -// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte -// signal. Signals may exist either without a set value (representing a signal request) or with a -// populated value (indicating the signal has been given). -type Signal struct { - // A unique identifier for the requested signal. - Id *core.SignalIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A type denoting the required value type for this signal. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // The value of the signal. This is only available if the signal has been "set" and must match - // the defined the type. - Value *core.Literal `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Signal) Reset() { *m = Signal{} } -func (m *Signal) String() string { return proto.CompactTextString(m) } -func (*Signal) ProtoMessage() {} -func (*Signal) Descriptor() ([]byte, []int) { - return fileDescriptor_4b1c2d4aa3794afa, []int{5} -} - -func (m *Signal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Signal.Unmarshal(m, b) -} -func (m *Signal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Signal.Marshal(b, m, deterministic) -} -func (m *Signal) XXX_Merge(src proto.Message) { - xxx_messageInfo_Signal.Merge(m, src) -} -func (m *Signal) XXX_Size() int { - return xxx_messageInfo_Signal.Size(m) -} -func (m *Signal) XXX_DiscardUnknown() { - xxx_messageInfo_Signal.DiscardUnknown(m) -} - -var xxx_messageInfo_Signal proto.InternalMessageInfo - -func (m *Signal) GetId() *core.SignalIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *Signal) GetType() *core.LiteralType { - if m != nil { - return m.Type - } - return nil -} - -func (m *Signal) GetValue() *core.Literal { - if m != nil { - return m.Value - } - return nil -} - -func init() { - proto.RegisterType((*SignalGetOrCreateRequest)(nil), "flyteidl.admin.SignalGetOrCreateRequest") - proto.RegisterType((*SignalListRequest)(nil), "flyteidl.admin.SignalListRequest") - proto.RegisterType((*SignalList)(nil), "flyteidl.admin.SignalList") - proto.RegisterType((*SignalSetRequest)(nil), "flyteidl.admin.SignalSetRequest") - proto.RegisterType((*SignalSetResponse)(nil), "flyteidl.admin.SignalSetResponse") - proto.RegisterType((*Signal)(nil), "flyteidl.admin.Signal") -} - -func init() { proto.RegisterFile("flyteidl/admin/signal.proto", fileDescriptor_4b1c2d4aa3794afa) } - -var fileDescriptor_4b1c2d4aa3794afa = []byte{ - // 432 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x93, 0xd1, 0x8a, 0x13, 0x31, - 0x14, 0x86, 0x99, 0x76, 0xdb, 0x62, 0x16, 0x45, 0x67, 0xd7, 0x25, 0x56, 0xd1, 0x32, 0x57, 0x45, - 0xdc, 0x44, 0xd6, 0x4b, 0xf1, 0x66, 0x45, 0x44, 0x58, 0x10, 0xd2, 0x05, 0xc1, 0x0b, 0xcb, 0xb4, - 0x73, 0x3a, 0x86, 0xcd, 0x24, 0xb3, 0xc9, 0xa9, 0x75, 0xf0, 0x41, 0x7c, 0x45, 0x1f, 0x43, 0x9a, - 0xcc, 0x4c, 0x77, 0xba, 0x5e, 0x88, 0xe0, 0xdd, 0xe4, 0xfc, 0xff, 0x39, 0xf9, 0x86, 0x3f, 0x87, - 0x3c, 0x5e, 0xa9, 0x0a, 0x41, 0x66, 0x8a, 0xa7, 0x59, 0x21, 0x35, 0x77, 0x32, 0xd7, 0xa9, 0x62, - 0xa5, 0x35, 0x68, 0xe2, 0x7b, 0x8d, 0xc8, 0xbc, 0x38, 0xde, 0x37, 0x2f, 0x4d, 0x51, 0x18, 0x1d, - 0xcc, 0xe3, 0xa7, 0xad, 0xb8, 0x34, 0x16, 0xb8, 0xcc, 0x40, 0xa3, 0x5c, 0x49, 0xb0, 0xb5, 0xfe, - 0xa4, 0xab, 0x2b, 0x89, 0x60, 0x53, 0xe5, 0x6a, 0xf5, 0x51, 0x57, 0xc5, 0xaa, 0x84, 0x5a, 0x4a, - 0x7e, 0x10, 0x3a, 0xf3, 0x54, 0xef, 0x01, 0x3f, 0xda, 0xb7, 0x16, 0x52, 0x04, 0x01, 0xd7, 0x6b, - 0x70, 0x18, 0x73, 0xd2, 0x93, 0x19, 0x8d, 0x26, 0xd1, 0xf4, 0xf0, 0xec, 0x19, 0x6b, 0x71, 0xb7, - 0x33, 0x58, 0x68, 0xfa, 0xd0, 0x72, 0x88, 0x9e, 0xcc, 0x62, 0x46, 0x0e, 0xb6, 0xb3, 0x69, 0xcf, - 0xb7, 0x8c, 0xf7, 0x5a, 0x2e, 0x02, 0xd4, 0x65, 0x55, 0x82, 0xf0, 0xbe, 0xe4, 0x57, 0x44, 0x1e, - 0x84, 0x41, 0x17, 0xd2, 0x61, 0x73, 0xed, 0x17, 0xf2, 0x70, 0x63, 0xec, 0xd5, 0x4a, 0x99, 0xcd, - 0x1c, 0xbe, 0xc3, 0x72, 0x8d, 0xd2, 0xe8, 0x79, 0x4b, 0xf2, 0x7c, 0x6f, 0xec, 0xa7, 0xda, 0xfb, - 0xae, 0xb1, 0xde, 0x80, 0x3a, 0xda, 0xdc, 0x16, 0xe3, 0x63, 0x32, 0x50, 0xb2, 0x90, 0xe8, 0x31, - 0xef, 0x8a, 0x70, 0xd8, 0x56, 0xd1, 0x5c, 0x81, 0xa6, 0xfd, 0x49, 0x34, 0xbd, 0x23, 0xc2, 0x21, - 0xa6, 0x64, 0xb4, 0x92, 0x0a, 0xc1, 0x3a, 0x7a, 0xe0, 0xeb, 0xcd, 0x31, 0x3e, 0x25, 0x23, 0x67, - 0x2c, 0xce, 0x17, 0x15, 0x1d, 0x78, 0xae, 0x63, 0xd6, 0x0d, 0x94, 0xcd, 0x8c, 0x45, 0x31, 0xdc, - 0x9a, 0xce, 0xab, 0xe4, 0x92, 0x90, 0xdd, 0x9f, 0xc6, 0x2f, 0xc9, 0x28, 0xbc, 0x05, 0x47, 0xa3, - 0x49, 0x7f, 0x7a, 0x78, 0x76, 0x72, 0xab, 0xd9, 0xcb, 0xa2, 0xb1, 0xed, 0xf0, 0x7a, 0x37, 0xf0, - 0x92, 0x6b, 0x72, 0x3f, 0x18, 0x67, 0x80, 0xff, 0x9c, 0xda, 0x0b, 0x32, 0xf8, 0x96, 0xaa, 0x75, - 0x13, 0xdb, 0xc9, 0x9f, 0x63, 0x13, 0xc1, 0x94, 0x1c, 0x35, 0x91, 0xf9, 0x2b, 0x5d, 0x69, 0xb4, - 0x83, 0xe4, 0x67, 0x44, 0x86, 0xa1, 0xfa, 0xdf, 0x1f, 0xcd, 0x0e, 0xb7, 0xff, 0x17, 0xb8, 0xe7, - 0x6f, 0x3e, 0xbf, 0xce, 0x25, 0x7e, 0x5d, 0x2f, 0xd8, 0xd2, 0x14, 0xdc, 0x5b, 0x8d, 0xcd, 0xc3, - 0x07, 0x6f, 0xd7, 0x22, 0x07, 0xcd, 0xcb, 0xc5, 0x69, 0x6e, 0x78, 0x77, 0x09, 0x17, 0x43, 0xbf, - 0x25, 0xaf, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x5e, 0xa5, 0xbf, 0xca, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json deleted file mode 100644 index 968dff5b23..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/signal.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/signal.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go deleted file mode 100644 index 6125274763..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task.pb.go +++ /dev/null @@ -1,366 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/task.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Represents a request structure to create a revision of a task. -// See :ref:`ref_flyteidl.admin.Task` for more details -type TaskCreateRequest struct { - // id represents the unique identifier of the task. - // +required - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the specification for task. - // +required - Spec *TaskSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } -func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } -func (*TaskCreateRequest) ProtoMessage() {} -func (*TaskCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{0} -} - -func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b) -} -func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic) -} -func (m *TaskCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskCreateRequest.Merge(m, src) -} -func (m *TaskCreateRequest) XXX_Size() int { - return xxx_messageInfo_TaskCreateRequest.Size(m) -} -func (m *TaskCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo - -func (m *TaskCreateRequest) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *TaskCreateRequest) GetSpec() *TaskSpec { - if m != nil { - return m.Spec - } - return nil -} - -// Represents a response structure if task creation succeeds. -type TaskCreateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } -func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } -func (*TaskCreateResponse) ProtoMessage() {} -func (*TaskCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{1} -} - -func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b) -} -func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic) -} -func (m *TaskCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskCreateResponse.Merge(m, src) -} -func (m *TaskCreateResponse) XXX_Size() int { - return xxx_messageInfo_TaskCreateResponse.Size(m) -} -func (m *TaskCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo - -// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks -// arranged to process workflow inputs and produce a deterministic set of outputs. -// Tasks can come in many varieties tuned for specialized behavior. -type Task struct { - // id represents the unique identifier of the task. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the task. - Closure *TaskClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Task) Reset() { *m = Task{} } -func (m *Task) String() string { return proto.CompactTextString(m) } -func (*Task) ProtoMessage() {} -func (*Task) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{2} -} - -func (m *Task) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Task.Unmarshal(m, b) -} -func (m *Task) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Task.Marshal(b, m, deterministic) -} -func (m *Task) XXX_Merge(src proto.Message) { - xxx_messageInfo_Task.Merge(m, src) -} -func (m *Task) XXX_Size() int { - return xxx_messageInfo_Task.Size(m) -} -func (m *Task) XXX_DiscardUnknown() { - xxx_messageInfo_Task.DiscardUnknown(m) -} - -var xxx_messageInfo_Task proto.InternalMessageInfo - -func (m *Task) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *Task) GetClosure() *TaskClosure { - if m != nil { - return m.Closure - } - return nil -} - -func (m *Task) GetShortDescription() string { - if m != nil { - return m.ShortDescription - } - return "" -} - -// Represents a list of tasks returned from the admin. -// See :ref:`ref_flyteidl.admin.Task` for more details -type TaskList struct { - // A list of tasks returned based on the request. - Tasks []*Task `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskList) Reset() { *m = TaskList{} } -func (m *TaskList) String() string { return proto.CompactTextString(m) } -func (*TaskList) ProtoMessage() {} -func (*TaskList) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{3} -} - -func (m *TaskList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskList.Unmarshal(m, b) -} -func (m *TaskList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskList.Marshal(b, m, deterministic) -} -func (m *TaskList) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskList.Merge(m, src) -} -func (m *TaskList) XXX_Size() int { - return xxx_messageInfo_TaskList.Size(m) -} -func (m *TaskList) XXX_DiscardUnknown() { - xxx_messageInfo_TaskList.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskList proto.InternalMessageInfo - -func (m *TaskList) GetTasks() []*Task { - if m != nil { - return m.Tasks - } - return nil -} - -func (m *TaskList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Represents a structure that encapsulates the user-configured specification of the task. -type TaskSpec struct { - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // Represents the specification for description entity. - Description *DescriptionEntity `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskSpec) Reset() { *m = TaskSpec{} } -func (m *TaskSpec) String() string { return proto.CompactTextString(m) } -func (*TaskSpec) ProtoMessage() {} -func (*TaskSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{4} -} - -func (m *TaskSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskSpec.Unmarshal(m, b) -} -func (m *TaskSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskSpec.Marshal(b, m, deterministic) -} -func (m *TaskSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskSpec.Merge(m, src) -} -func (m *TaskSpec) XXX_Size() int { - return xxx_messageInfo_TaskSpec.Size(m) -} -func (m *TaskSpec) XXX_DiscardUnknown() { - xxx_messageInfo_TaskSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskSpec proto.InternalMessageInfo - -func (m *TaskSpec) GetTemplate() *core.TaskTemplate { - if m != nil { - return m.Template - } - return nil -} - -func (m *TaskSpec) GetDescription() *DescriptionEntity { - if m != nil { - return m.Description - } - return nil -} - -// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data -// and task metadata. -type TaskClosure struct { - // Represents the compiled representation of the task from the specification provided. - CompiledTask *core.CompiledTask `protobuf:"bytes,1,opt,name=compiled_task,json=compiledTask,proto3" json:"compiled_task,omitempty"` - // Time at which the task was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskClosure) Reset() { *m = TaskClosure{} } -func (m *TaskClosure) String() string { return proto.CompactTextString(m) } -func (*TaskClosure) ProtoMessage() {} -func (*TaskClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_9204120d588b2162, []int{5} -} - -func (m *TaskClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskClosure.Unmarshal(m, b) -} -func (m *TaskClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskClosure.Marshal(b, m, deterministic) -} -func (m *TaskClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskClosure.Merge(m, src) -} -func (m *TaskClosure) XXX_Size() int { - return xxx_messageInfo_TaskClosure.Size(m) -} -func (m *TaskClosure) XXX_DiscardUnknown() { - xxx_messageInfo_TaskClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskClosure proto.InternalMessageInfo - -func (m *TaskClosure) GetCompiledTask() *core.CompiledTask { - if m != nil { - return m.CompiledTask - } - return nil -} - -func (m *TaskClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -func init() { - proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.admin.TaskCreateRequest") - proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.admin.TaskCreateResponse") - proto.RegisterType((*Task)(nil), "flyteidl.admin.Task") - proto.RegisterType((*TaskList)(nil), "flyteidl.admin.TaskList") - proto.RegisterType((*TaskSpec)(nil), "flyteidl.admin.TaskSpec") - proto.RegisterType((*TaskClosure)(nil), "flyteidl.admin.TaskClosure") -} - -func init() { proto.RegisterFile("flyteidl/admin/task.proto", fileDescriptor_9204120d588b2162) } - -var fileDescriptor_9204120d588b2162 = []byte{ - // 457 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x4f, 0x8f, 0xd3, 0x30, - 0x10, 0xc5, 0x95, 0xee, 0x2e, 0x6c, 0x5d, 0x40, 0xac, 0xd5, 0x43, 0xdb, 0x45, 0x50, 0x72, 0xa1, - 0xfc, 0xb3, 0xa5, 0x45, 0x08, 0x21, 0x84, 0x04, 0x14, 0x0e, 0x48, 0x7b, 0x32, 0x3d, 0x71, 0xa9, - 0x52, 0x67, 0x9a, 0xb5, 0x9a, 0xc4, 0x26, 0x9e, 0x1e, 0xf6, 0x1b, 0x20, 0xee, 0x7c, 0x5f, 0xe4, - 0x3f, 0x0d, 0x69, 0xb5, 0x1c, 0xb8, 0xc5, 0x99, 0x9f, 0x67, 0xde, 0x1b, 0x3f, 0x32, 0x5e, 0x97, - 0xd7, 0x08, 0x2a, 0x2f, 0x79, 0x96, 0x57, 0xaa, 0xe6, 0x98, 0xd9, 0x0d, 0x33, 0x8d, 0x46, 0x4d, - 0xef, 0xed, 0x4a, 0xcc, 0x97, 0x26, 0x0f, 0x5b, 0x54, 0xea, 0x06, 0xb8, 0xca, 0xa1, 0x46, 0xb5, - 0x56, 0xd0, 0x04, 0x7e, 0x32, 0xde, 0xaf, 0xbb, 0x4e, 0x36, 0x96, 0x1e, 0xec, 0x97, 0xa4, 0xae, - 0x8c, 0x2a, 0xdb, 0x8b, 0x4f, 0x0e, 0x34, 0xe4, 0x60, 0x65, 0xa3, 0x0c, 0x2a, 0x5d, 0x2f, 0xdd, - 0x0c, 0xbc, 0x8e, 0xe0, 0xa3, 0x42, 0xeb, 0xa2, 0x04, 0xee, 0x4f, 0xab, 0xed, 0x9a, 0xa3, 0xaa, - 0xc0, 0x62, 0x56, 0x99, 0x00, 0xa4, 0x25, 0x39, 0x5b, 0x64, 0x76, 0x33, 0x6f, 0x20, 0x43, 0x10, - 0xf0, 0x63, 0x0b, 0x16, 0xe9, 0x53, 0xd2, 0x53, 0xf9, 0x28, 0x99, 0x26, 0xb3, 0xc1, 0xc5, 0x98, - 0xb5, 0xa6, 0x9c, 0x12, 0xf6, 0xb5, 0x35, 0x21, 0x7a, 0x2a, 0xa7, 0x2f, 0xc8, 0xb1, 0x35, 0x20, - 0x47, 0x3d, 0x0f, 0x8f, 0xd8, 0xfe, 0x06, 0x98, 0xeb, 0xfd, 0xcd, 0x80, 0x14, 0x9e, 0x4a, 0x87, - 0x84, 0x76, 0xa7, 0x59, 0xa3, 0x6b, 0x0b, 0xe9, 0xef, 0x84, 0x1c, 0xbb, 0xdf, 0xff, 0x33, 0xf7, - 0x35, 0xb9, 0x2d, 0x4b, 0x6d, 0xb7, 0x0d, 0xc4, 0xd1, 0xe7, 0x37, 0x8d, 0x9e, 0x07, 0x44, 0xec, - 0x58, 0xfa, 0x9c, 0x9c, 0xd9, 0x2b, 0xdd, 0xe0, 0xb2, 0xb3, 0xb1, 0xd1, 0xd1, 0x34, 0x99, 0xf5, - 0xc5, 0x7d, 0x5f, 0xf8, 0xfc, 0xf7, 0x7f, 0x7a, 0x49, 0x4e, 0x5d, 0x93, 0x4b, 0x65, 0x91, 0x3e, - 0x23, 0x27, 0xfe, 0x79, 0x46, 0xc9, 0xf4, 0x68, 0x36, 0xb8, 0x18, 0xde, 0x34, 0x4d, 0x04, 0x84, - 0x0e, 0xc9, 0x09, 0xea, 0x0d, 0xd4, 0x5e, 0x59, 0x5f, 0x84, 0x43, 0xfa, 0x33, 0x09, 0xed, 0xdc, - 0x3a, 0xe8, 0x1b, 0x72, 0x8a, 0x50, 0x99, 0x32, 0x43, 0x88, 0x7e, 0xcf, 0x0f, 0xfc, 0x3a, 0x74, - 0x11, 0x11, 0xd1, 0xc2, 0x74, 0x4e, 0x06, 0x5d, 0xe9, 0xc1, 0xfb, 0xe3, 0x43, 0x35, 0x1d, 0x17, - 0x5f, 0x7c, 0x1c, 0x44, 0xf7, 0x56, 0xfa, 0x2b, 0x21, 0x83, 0xce, 0x7a, 0xe8, 0x07, 0x72, 0x37, - 0x06, 0x2c, 0x5f, 0x3a, 0x0b, 0xff, 0x90, 0x34, 0x8f, 0x8c, 0xf7, 0x7a, 0x47, 0x76, 0x4e, 0xf4, - 0x2d, 0x21, 0xd2, 0x3f, 0x6a, 0xbe, 0xcc, 0x30, 0xaa, 0x9a, 0xb0, 0x10, 0x3e, 0xb6, 0x0b, 0x1f, - 0x5b, 0xec, 0xc2, 0x27, 0xfa, 0x91, 0xfe, 0x88, 0x9f, 0xde, 0x7f, 0x7f, 0x57, 0x28, 0xbc, 0xda, - 0xae, 0x98, 0xd4, 0x15, 0xf7, 0x13, 0x75, 0x53, 0x84, 0x0f, 0xde, 0xe6, 0xbc, 0x80, 0x9a, 0x9b, - 0xd5, 0xcb, 0x42, 0xf3, 0xfd, 0xe8, 0xaf, 0x6e, 0xf9, 0xee, 0xaf, 0xfe, 0x04, 0x00, 0x00, 0xff, - 0xff, 0xcf, 0xb2, 0xc0, 0xd6, 0x97, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json deleted file mode 100644 index 8c7e13c9d3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/task.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go deleted file mode 100644 index e4dd62374f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.pb.go +++ /dev/null @@ -1,737 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/task_execution.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - event "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// A message used to fetch a single task execution entity. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionGetRequest struct { - // Unique identifier for the task execution. - // +required - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionGetRequest) Reset() { *m = TaskExecutionGetRequest{} } -func (m *TaskExecutionGetRequest) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionGetRequest) ProtoMessage() {} -func (*TaskExecutionGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{0} -} - -func (m *TaskExecutionGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionGetRequest.Unmarshal(m, b) -} -func (m *TaskExecutionGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionGetRequest.Marshal(b, m, deterministic) -} -func (m *TaskExecutionGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionGetRequest.Merge(m, src) -} -func (m *TaskExecutionGetRequest) XXX_Size() int { - return xxx_messageInfo_TaskExecutionGetRequest.Size(m) -} -func (m *TaskExecutionGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionGetRequest proto.InternalMessageInfo - -func (m *TaskExecutionGetRequest) GetId() *core.TaskExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionListRequest struct { - // Indicates the node execution to filter by. - // +required - NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` - // Indicates the number of resources to be returned. - // +required - Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. - // +optional - Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` - // Indicates a list of filters passed as string. - // More info on constructing filters : - // +optional - Filters string `protobuf:"bytes,4,opt,name=filters,proto3" json:"filters,omitempty"` - // Sort ordering for returned list. - // +optional - SortBy *Sort `protobuf:"bytes,5,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionListRequest) Reset() { *m = TaskExecutionListRequest{} } -func (m *TaskExecutionListRequest) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionListRequest) ProtoMessage() {} -func (*TaskExecutionListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{1} -} - -func (m *TaskExecutionListRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionListRequest.Unmarshal(m, b) -} -func (m *TaskExecutionListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionListRequest.Marshal(b, m, deterministic) -} -func (m *TaskExecutionListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionListRequest.Merge(m, src) -} -func (m *TaskExecutionListRequest) XXX_Size() int { - return xxx_messageInfo_TaskExecutionListRequest.Size(m) -} -func (m *TaskExecutionListRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionListRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionListRequest proto.InternalMessageInfo - -func (m *TaskExecutionListRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { - if m != nil { - return m.NodeExecutionId - } - return nil -} - -func (m *TaskExecutionListRequest) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *TaskExecutionListRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *TaskExecutionListRequest) GetFilters() string { - if m != nil { - return m.Filters - } - return "" -} - -func (m *TaskExecutionListRequest) GetSortBy() *Sort { - if m != nil { - return m.SortBy - } - return nil -} - -// Encapsulates all details for a single task execution entity. -// A task execution represents an instantiated task, including all inputs and additional -// metadata as well as computed results included state, outputs, and duration-based attributes. -type TaskExecution struct { - // Unique identifier for the task execution. - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `protobuf:"bytes,2,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` - // Task execution details and results. - Closure *TaskExecutionClosure `protobuf:"bytes,3,opt,name=closure,proto3" json:"closure,omitempty"` - // Whether this task spawned nodes. - IsParent bool `protobuf:"varint,4,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecution) Reset() { *m = TaskExecution{} } -func (m *TaskExecution) String() string { return proto.CompactTextString(m) } -func (*TaskExecution) ProtoMessage() {} -func (*TaskExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{2} -} - -func (m *TaskExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecution.Unmarshal(m, b) -} -func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) -} -func (m *TaskExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecution.Merge(m, src) -} -func (m *TaskExecution) XXX_Size() int { - return xxx_messageInfo_TaskExecution.Size(m) -} -func (m *TaskExecution) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecution proto.InternalMessageInfo - -func (m *TaskExecution) GetId() *core.TaskExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *TaskExecution) GetInputUri() string { - if m != nil { - return m.InputUri - } - return "" -} - -func (m *TaskExecution) GetClosure() *TaskExecutionClosure { - if m != nil { - return m.Closure - } - return nil -} - -func (m *TaskExecution) GetIsParent() bool { - if m != nil { - return m.IsParent - } - return false -} - -// Response structure for a query to list of task execution entities. -// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -type TaskExecutionList struct { - TaskExecutions []*TaskExecution `protobuf:"bytes,1,rep,name=task_executions,json=taskExecutions,proto3" json:"task_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionList) Reset() { *m = TaskExecutionList{} } -func (m *TaskExecutionList) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionList) ProtoMessage() {} -func (*TaskExecutionList) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{3} -} - -func (m *TaskExecutionList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionList.Unmarshal(m, b) -} -func (m *TaskExecutionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionList.Marshal(b, m, deterministic) -} -func (m *TaskExecutionList) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionList.Merge(m, src) -} -func (m *TaskExecutionList) XXX_Size() int { - return xxx_messageInfo_TaskExecutionList.Size(m) -} -func (m *TaskExecutionList) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionList.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionList proto.InternalMessageInfo - -func (m *TaskExecutionList) GetTaskExecutions() []*TaskExecution { - if m != nil { - return m.TaskExecutions - } - return nil -} - -func (m *TaskExecutionList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Container for task execution details and results. -type TaskExecutionClosure struct { - // Types that are valid to be assigned to OutputResult: - // *TaskExecutionClosure_OutputUri - // *TaskExecutionClosure_Error - // *TaskExecutionClosure_OutputData - OutputResult isTaskExecutionClosure_OutputResult `protobuf_oneof:"output_result"` - // The last recorded phase for this task execution. - Phase core.TaskExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // Detailed log information output by the task execution. - Logs []*core.TaskLog `protobuf:"bytes,4,rep,name=logs,proto3" json:"logs,omitempty"` - // Time at which the task execution began running. - StartedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - // The amount of time the task execution spent running. - Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"` - // Time at which the task execution was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - // Time at which the task execution was last updated. - UpdatedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - // Custom data specific to the task plugin. - CustomInfo *_struct.Struct `protobuf:"bytes,9,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` - // If there is an explanation for the most recent phase transition, the reason will capture it. - Reason string `protobuf:"bytes,10,opt,name=reason,proto3" json:"reason,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,11,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *event.TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is maintained using this - // proto message. For example, event_verison > 0 means that maps tasks logs use the - // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - // in this message. - EventVersion int32 `protobuf:"varint,17,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason - // as previously done, is much more valuable in visualizing and understanding historical evaluations. - Reasons []*Reason `protobuf:"bytes,18,rep,name=reasons,proto3" json:"reasons,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionClosure) Reset() { *m = TaskExecutionClosure{} } -func (m *TaskExecutionClosure) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionClosure) ProtoMessage() {} -func (*TaskExecutionClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{4} -} - -func (m *TaskExecutionClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionClosure.Unmarshal(m, b) -} -func (m *TaskExecutionClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionClosure.Marshal(b, m, deterministic) -} -func (m *TaskExecutionClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionClosure.Merge(m, src) -} -func (m *TaskExecutionClosure) XXX_Size() int { - return xxx_messageInfo_TaskExecutionClosure.Size(m) -} -func (m *TaskExecutionClosure) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionClosure proto.InternalMessageInfo - -type isTaskExecutionClosure_OutputResult interface { - isTaskExecutionClosure_OutputResult() -} - -type TaskExecutionClosure_OutputUri struct { - OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type TaskExecutionClosure_Error struct { - Error *core.ExecutionError `protobuf:"bytes,2,opt,name=error,proto3,oneof"` -} - -type TaskExecutionClosure_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,12,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*TaskExecutionClosure_OutputUri) isTaskExecutionClosure_OutputResult() {} - -func (*TaskExecutionClosure_Error) isTaskExecutionClosure_OutputResult() {} - -func (*TaskExecutionClosure_OutputData) isTaskExecutionClosure_OutputResult() {} - -func (m *TaskExecutionClosure) GetOutputResult() isTaskExecutionClosure_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -// Deprecated: Do not use. -func (m *TaskExecutionClosure) GetOutputUri() string { - if x, ok := m.GetOutputResult().(*TaskExecutionClosure_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (m *TaskExecutionClosure) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*TaskExecutionClosure_Error); ok { - return x.Error - } - return nil -} - -// Deprecated: Do not use. -func (m *TaskExecutionClosure) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*TaskExecutionClosure_OutputData); ok { - return x.OutputData - } - return nil -} - -func (m *TaskExecutionClosure) GetPhase() core.TaskExecution_Phase { - if m != nil { - return m.Phase - } - return core.TaskExecution_UNDEFINED -} - -func (m *TaskExecutionClosure) GetLogs() []*core.TaskLog { - if m != nil { - return m.Logs - } - return nil -} - -func (m *TaskExecutionClosure) GetStartedAt() *timestamp.Timestamp { - if m != nil { - return m.StartedAt - } - return nil -} - -func (m *TaskExecutionClosure) GetDuration() *duration.Duration { - if m != nil { - return m.Duration - } - return nil -} - -func (m *TaskExecutionClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -func (m *TaskExecutionClosure) GetUpdatedAt() *timestamp.Timestamp { - if m != nil { - return m.UpdatedAt - } - return nil -} - -func (m *TaskExecutionClosure) GetCustomInfo() *_struct.Struct { - if m != nil { - return m.CustomInfo - } - return nil -} - -func (m *TaskExecutionClosure) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *TaskExecutionClosure) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *TaskExecutionClosure) GetMetadata() *event.TaskExecutionMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *TaskExecutionClosure) GetEventVersion() int32 { - if m != nil { - return m.EventVersion - } - return 0 -} - -func (m *TaskExecutionClosure) GetReasons() []*Reason { - if m != nil { - return m.Reasons - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TaskExecutionClosure) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TaskExecutionClosure_OutputUri)(nil), - (*TaskExecutionClosure_Error)(nil), - (*TaskExecutionClosure_OutputData)(nil), - } -} - -// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. -type Reason struct { - // occurred_at is the timestamp indicating the instant that this reason happened. - OccurredAt *timestamp.Timestamp `protobuf:"bytes,1,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // message is the explanation for the most recent phase transition or status update. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Reason) Reset() { *m = Reason{} } -func (m *Reason) String() string { return proto.CompactTextString(m) } -func (*Reason) ProtoMessage() {} -func (*Reason) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{5} -} - -func (m *Reason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Reason.Unmarshal(m, b) -} -func (m *Reason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Reason.Marshal(b, m, deterministic) -} -func (m *Reason) XXX_Merge(src proto.Message) { - xxx_messageInfo_Reason.Merge(m, src) -} -func (m *Reason) XXX_Size() int { - return xxx_messageInfo_Reason.Size(m) -} -func (m *Reason) XXX_DiscardUnknown() { - xxx_messageInfo_Reason.DiscardUnknown(m) -} - -var xxx_messageInfo_Reason proto.InternalMessageInfo - -func (m *Reason) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -func (m *Reason) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -// Request structure to fetch inputs and output for a task execution. -// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` -type TaskExecutionGetDataRequest struct { - // The identifier of the task execution for which to fetch inputs and outputs. - // +required - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionGetDataRequest) Reset() { *m = TaskExecutionGetDataRequest{} } -func (m *TaskExecutionGetDataRequest) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionGetDataRequest) ProtoMessage() {} -func (*TaskExecutionGetDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{6} -} - -func (m *TaskExecutionGetDataRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionGetDataRequest.Unmarshal(m, b) -} -func (m *TaskExecutionGetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionGetDataRequest.Marshal(b, m, deterministic) -} -func (m *TaskExecutionGetDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionGetDataRequest.Merge(m, src) -} -func (m *TaskExecutionGetDataRequest) XXX_Size() int { - return xxx_messageInfo_TaskExecutionGetDataRequest.Size(m) -} -func (m *TaskExecutionGetDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionGetDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionGetDataRequest proto.InternalMessageInfo - -func (m *TaskExecutionGetDataRequest) GetId() *core.TaskExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. -type TaskExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of task execution inputs. - // Deprecated: Please use full_inputs instead. - Inputs *UrlBlob `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` // Deprecated: Do not use. - // Signed url to fetch a core.LiteralMap of task execution outputs. - // Deprecated: Please use full_outputs instead. - Outputs *UrlBlob `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` // Deprecated: Do not use. - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *core.LiteralMap `protobuf:"bytes,3,opt,name=full_inputs,json=fullInputs,proto3" json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *core.LiteralMap `protobuf:"bytes,4,opt,name=full_outputs,json=fullOutputs,proto3" json:"full_outputs,omitempty"` - // flyte tiny url to fetch a core.LiteralMap of task execution's IO - // Deck will be empty for task - FlyteUrls *FlyteURLs `protobuf:"bytes,5,opt,name=flyte_urls,json=flyteUrls,proto3" json:"flyte_urls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionGetDataResponse) Reset() { *m = TaskExecutionGetDataResponse{} } -func (m *TaskExecutionGetDataResponse) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionGetDataResponse) ProtoMessage() {} -func (*TaskExecutionGetDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8cde4c3aa101642e, []int{7} -} - -func (m *TaskExecutionGetDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionGetDataResponse.Unmarshal(m, b) -} -func (m *TaskExecutionGetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionGetDataResponse.Marshal(b, m, deterministic) -} -func (m *TaskExecutionGetDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionGetDataResponse.Merge(m, src) -} -func (m *TaskExecutionGetDataResponse) XXX_Size() int { - return xxx_messageInfo_TaskExecutionGetDataResponse.Size(m) -} -func (m *TaskExecutionGetDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionGetDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionGetDataResponse proto.InternalMessageInfo - -// Deprecated: Do not use. -func (m *TaskExecutionGetDataResponse) GetInputs() *UrlBlob { - if m != nil { - return m.Inputs - } - return nil -} - -// Deprecated: Do not use. -func (m *TaskExecutionGetDataResponse) GetOutputs() *UrlBlob { - if m != nil { - return m.Outputs - } - return nil -} - -func (m *TaskExecutionGetDataResponse) GetFullInputs() *core.LiteralMap { - if m != nil { - return m.FullInputs - } - return nil -} - -func (m *TaskExecutionGetDataResponse) GetFullOutputs() *core.LiteralMap { - if m != nil { - return m.FullOutputs - } - return nil -} - -func (m *TaskExecutionGetDataResponse) GetFlyteUrls() *FlyteURLs { - if m != nil { - return m.FlyteUrls - } - return nil -} - -func init() { - proto.RegisterType((*TaskExecutionGetRequest)(nil), "flyteidl.admin.TaskExecutionGetRequest") - proto.RegisterType((*TaskExecutionListRequest)(nil), "flyteidl.admin.TaskExecutionListRequest") - proto.RegisterType((*TaskExecution)(nil), "flyteidl.admin.TaskExecution") - proto.RegisterType((*TaskExecutionList)(nil), "flyteidl.admin.TaskExecutionList") - proto.RegisterType((*TaskExecutionClosure)(nil), "flyteidl.admin.TaskExecutionClosure") - proto.RegisterType((*Reason)(nil), "flyteidl.admin.Reason") - proto.RegisterType((*TaskExecutionGetDataRequest)(nil), "flyteidl.admin.TaskExecutionGetDataRequest") - proto.RegisterType((*TaskExecutionGetDataResponse)(nil), "flyteidl.admin.TaskExecutionGetDataResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/task_execution.proto", fileDescriptor_8cde4c3aa101642e) -} - -var fileDescriptor_8cde4c3aa101642e = []byte{ - // 927 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xeb, 0x6e, 0x1b, 0x45, - 0x14, 0xee, 0x3a, 0x89, 0x2f, 0xc7, 0xb9, 0x90, 0x51, 0xd4, 0x6c, 0x93, 0x14, 0x2c, 0x07, 0x90, - 0x85, 0xd4, 0x35, 0x4a, 0x15, 0x14, 0x28, 0x20, 0x6c, 0xda, 0xd2, 0x48, 0x29, 0x94, 0x69, 0xcc, - 0x0f, 0xfe, 0xac, 0xc6, 0xbb, 0x63, 0x77, 0x94, 0xdd, 0x9d, 0xed, 0xcc, 0x6c, 0x85, 0xdf, 0x85, - 0x67, 0x41, 0xe2, 0x59, 0x78, 0x11, 0x34, 0x97, 0x75, 0xb2, 0xdb, 0x10, 0x4b, 0xf4, 0x8f, 0xe5, - 0x73, 0xce, 0xf7, 0x9d, 0xfb, 0x19, 0x2d, 0x1c, 0xcf, 0x92, 0x85, 0xa2, 0x2c, 0x4e, 0x86, 0x24, - 0x4e, 0x59, 0x36, 0x54, 0x44, 0x5e, 0x85, 0xf4, 0x0f, 0x1a, 0x15, 0x8a, 0xf1, 0x2c, 0xc8, 0x05, - 0x57, 0x1c, 0x6d, 0x97, 0xa0, 0xc0, 0x80, 0x0e, 0x0e, 0x6b, 0xa4, 0x88, 0xa7, 0x69, 0x09, 0x3e, - 0x78, 0xb8, 0x34, 0x46, 0x5c, 0xd0, 0x61, 0xcd, 0xd7, 0xc1, 0xc7, 0x55, 0x33, 0x8b, 0x69, 0xa6, - 0xd8, 0x8c, 0x51, 0xe1, 0xec, 0x47, 0x55, 0x7b, 0xc2, 0x14, 0x15, 0x24, 0x91, 0xce, 0x7a, 0xb0, - 0xb4, 0xd2, 0x77, 0x34, 0x53, 0xf6, 0xd7, 0xd9, 0x3e, 0x99, 0x73, 0x3e, 0x4f, 0xe8, 0xd0, 0x48, - 0xd3, 0x62, 0x36, 0x54, 0x2c, 0xa5, 0x52, 0x91, 0x34, 0x2f, 0x43, 0xd7, 0x01, 0x71, 0x21, 0xc8, - 0x8d, 0xd4, 0x8e, 0xea, 0x76, 0xa9, 0x44, 0x11, 0x39, 0xf7, 0xfd, 0x5f, 0x61, 0xff, 0x92, 0xc8, - 0xab, 0x67, 0x65, 0x3d, 0x3f, 0x51, 0x85, 0xe9, 0xdb, 0x82, 0x4a, 0x85, 0xbe, 0x82, 0x06, 0x8b, - 0x7d, 0xaf, 0xe7, 0x0d, 0xba, 0x27, 0x9f, 0x07, 0xcb, 0x66, 0xe9, 0x02, 0x82, 0x0a, 0xe7, 0x7c, - 0x59, 0x2d, 0x6e, 0xb0, 0xb8, 0xff, 0x8f, 0x07, 0x7e, 0xc5, 0x7e, 0xc1, 0xe4, 0xd2, 0x29, 0x86, - 0xdd, 0x8c, 0xc7, 0xf4, 0x7a, 0x18, 0xe1, 0x7f, 0xc6, 0xf8, 0x99, 0xc7, 0xf4, 0xb6, 0x18, 0x3b, - 0x59, 0xd5, 0x80, 0xf6, 0x60, 0x23, 0x61, 0x29, 0x53, 0x7e, 0xa3, 0xe7, 0x0d, 0xb6, 0xb0, 0x15, - 0xb4, 0x56, 0xf1, 0x2b, 0x9a, 0xf9, 0x6b, 0x3d, 0x6f, 0xd0, 0xc1, 0x56, 0x40, 0x3e, 0xb4, 0x66, - 0x2c, 0x51, 0x54, 0x48, 0x7f, 0xdd, 0xe8, 0x4b, 0x11, 0x3d, 0x82, 0x96, 0xe4, 0x42, 0x85, 0xd3, - 0x85, 0xbf, 0x61, 0xf2, 0xd9, 0x0b, 0xaa, 0x0b, 0x12, 0xbc, 0xe6, 0x42, 0xe1, 0xa6, 0x06, 0x8d, - 0x17, 0xfd, 0xbf, 0x3d, 0xd8, 0xaa, 0x54, 0xf9, 0x7f, 0xfb, 0x85, 0x0e, 0xa1, 0xc3, 0xb2, 0xbc, - 0x50, 0x61, 0x21, 0x98, 0x29, 0xa1, 0x83, 0xdb, 0x46, 0x31, 0x11, 0x0c, 0x7d, 0x0f, 0xad, 0x28, - 0xe1, 0xb2, 0x10, 0xd4, 0xd4, 0xd1, 0x3d, 0xf9, 0xb4, 0x9e, 0x55, 0xc5, 0xf5, 0x8f, 0x16, 0x8b, - 0x4b, 0x92, 0x71, 0x2e, 0xc3, 0x9c, 0x08, 0x9a, 0x29, 0x53, 0x71, 0x1b, 0xb7, 0x99, 0x7c, 0x65, - 0xe4, 0xfe, 0x5b, 0xd8, 0x7d, 0x6f, 0x50, 0xe8, 0x39, 0xec, 0x54, 0xcf, 0x45, 0xfa, 0x5e, 0x6f, - 0x6d, 0xd0, 0x3d, 0x79, 0x78, 0x67, 0x64, 0xbc, 0xad, 0x6e, 0x8a, 0xf2, 0xba, 0xff, 0x8d, 0x1b, - 0xfd, 0xef, 0xff, 0xd9, 0x84, 0xbd, 0xdb, 0x32, 0x46, 0xc7, 0x00, 0xbc, 0x50, 0x65, 0x1b, 0x74, - 0x17, 0x3b, 0xe3, 0x86, 0xef, 0xbd, 0xb8, 0x87, 0x3b, 0x56, 0xaf, 0xbb, 0x71, 0x0a, 0x1b, 0x54, - 0x08, 0x2e, 0x8c, 0xcf, 0x4a, 0x46, 0xa6, 0xcb, 0x4b, 0xa7, 0xcf, 0x34, 0xe8, 0xc5, 0x3d, 0x6c, - 0xd1, 0xe8, 0x07, 0xe8, 0x3a, 0xdf, 0x31, 0x51, 0xc4, 0xdf, 0x34, 0xe4, 0x07, 0x35, 0xf2, 0x85, - 0xbd, 0xc9, 0x97, 0x24, 0x77, 0x71, 0x5d, 0x3e, 0x4f, 0x89, 0x22, 0xe8, 0x0c, 0x36, 0xf2, 0x37, - 0x44, 0xda, 0x21, 0x6c, 0x9f, 0xf4, 0xef, 0x1a, 0x6f, 0xf0, 0x4a, 0x23, 0xb1, 0x25, 0xa0, 0x2f, - 0x60, 0x3d, 0xe1, 0x73, 0xbd, 0x6d, 0xba, 0x87, 0xf7, 0x6f, 0x21, 0x5e, 0xf0, 0x39, 0x36, 0x18, - 0xf4, 0x35, 0x80, 0x54, 0x44, 0x28, 0x1a, 0x87, 0x44, 0xb9, 0x2d, 0x3c, 0x08, 0xec, 0xfd, 0x06, - 0xe5, 0xfd, 0x06, 0x97, 0xe5, 0x03, 0x80, 0x3b, 0x0e, 0x3d, 0x52, 0xe8, 0x14, 0xda, 0xe5, 0xdd, - 0xfb, 0x4d, 0x57, 0x5f, 0x9d, 0xf8, 0xd4, 0x01, 0xf0, 0x12, 0xaa, 0x23, 0x46, 0x82, 0x12, 0x17, - 0xb1, 0xb5, 0x3a, 0xa2, 0x43, 0x8f, 0x94, 0xa6, 0x16, 0x79, 0x5c, 0x52, 0xdb, 0xab, 0xa9, 0x0e, - 0x3d, 0x52, 0xe8, 0x0c, 0xba, 0x51, 0x21, 0x15, 0x4f, 0x43, 0x96, 0xcd, 0xb8, 0xdf, 0x31, 0xdc, - 0xfd, 0xf7, 0xb8, 0xaf, 0xcd, 0x43, 0x85, 0xc1, 0x62, 0xcf, 0xb3, 0x19, 0x47, 0xf7, 0xa1, 0x29, - 0x28, 0x91, 0x3c, 0xf3, 0xc1, 0x6c, 0x95, 0x93, 0xf4, 0x9a, 0x9b, 0xa5, 0x55, 0x8b, 0x9c, 0xfa, - 0x5d, 0x7b, 0x43, 0x5a, 0x71, 0xb9, 0xc8, 0x29, 0x1a, 0x41, 0x3b, 0xa5, 0x8a, 0x98, 0xd9, 0x7f, - 0x64, 0x62, 0x7d, 0x76, 0x3d, 0x06, 0xfb, 0xd6, 0x56, 0x06, 0xf8, 0xd2, 0x81, 0xf1, 0x92, 0x86, - 0x8e, 0x61, 0xcb, 0x00, 0xc3, 0x77, 0x54, 0x48, 0xdd, 0xe3, 0xdd, 0x9e, 0x37, 0xd8, 0xc0, 0x9b, - 0x46, 0xf9, 0x9b, 0xd5, 0xa1, 0x2f, 0xa1, 0x65, 0xd3, 0x91, 0x3e, 0xaa, 0x4f, 0xdb, 0x5e, 0x0c, - 0x36, 0x66, 0x5c, 0xc2, 0xc6, 0x3b, 0xb0, 0xe5, 0x16, 0x53, 0x50, 0x59, 0x24, 0xaa, 0x1f, 0x42, - 0xd3, 0x62, 0xd0, 0x13, 0xe8, 0xf2, 0x28, 0x2a, 0x84, 0xb0, 0xfd, 0xf5, 0x56, 0xf6, 0x17, 0x4a, - 0xf8, 0x48, 0xe9, 0x57, 0x2e, 0xa5, 0x52, 0x92, 0x39, 0x75, 0xd7, 0x57, 0x8a, 0xfd, 0x09, 0x1c, - 0xd6, 0xdf, 0x7b, 0xbd, 0xe0, 0x1f, 0xfa, 0xe6, 0xff, 0xd5, 0x80, 0xa3, 0xdb, 0xfd, 0xca, 0x9c, - 0x67, 0x92, 0xa2, 0xc7, 0xd0, 0x34, 0x6f, 0x9a, 0x74, 0xce, 0xf7, 0xeb, 0xad, 0x99, 0x88, 0x64, - 0x9c, 0xf0, 0xa9, 0xbe, 0x3d, 0xec, 0xa0, 0xe8, 0x14, 0x5a, 0xb6, 0x3d, 0xd2, 0x1d, 0xfc, 0x9d, - 0xac, 0x12, 0x8b, 0xbe, 0x81, 0xee, 0xac, 0x48, 0x92, 0xd0, 0x05, 0x5c, 0x5b, 0x71, 0xee, 0x18, - 0x34, 0xfa, 0xdc, 0x86, 0xfc, 0x16, 0x36, 0x0d, 0xb7, 0x8c, 0xbb, 0xbe, 0x8a, 0x6c, 0x42, 0xfd, - 0xe2, 0x22, 0x9f, 0x01, 0x18, 0x60, 0x58, 0x88, 0x44, 0xba, 0x03, 0x7e, 0x50, 0xcf, 0xf9, 0xb9, - 0x16, 0x27, 0xf8, 0x42, 0xe2, 0x8e, 0xb1, 0x4c, 0x44, 0x22, 0xc7, 0xdf, 0xfd, 0xfe, 0x64, 0xce, - 0xd4, 0x9b, 0x62, 0x1a, 0x44, 0x3c, 0x1d, 0x1a, 0x3d, 0x17, 0x73, 0xfb, 0x67, 0xb8, 0xfc, 0x3c, - 0x98, 0xd3, 0x6c, 0x98, 0x4f, 0x1f, 0xcd, 0xf9, 0xb0, 0xfa, 0xad, 0x32, 0x6d, 0x9a, 0x85, 0x78, - 0xfc, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x5e, 0xcb, 0x61, 0x27, 0xf9, 0x08, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json deleted file mode 100644 index 8e73cb6c5b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/task_execution.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/task_execution.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go deleted file mode 100644 index e2c88d1e89..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/version.pb.go +++ /dev/null @@ -1,180 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/version.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Response for the GetVersion API -type GetVersionResponse struct { - // The control plane version information. FlyteAdmin and related components - // form the control plane of Flyte - ControlPlaneVersion *Version `protobuf:"bytes,1,opt,name=control_plane_version,json=controlPlaneVersion,proto3" json:"control_plane_version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionResponse) Reset() { *m = GetVersionResponse{} } -func (m *GetVersionResponse) String() string { return proto.CompactTextString(m) } -func (*GetVersionResponse) ProtoMessage() {} -func (*GetVersionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_a025621cd13402e3, []int{0} -} - -func (m *GetVersionResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetVersionResponse.Unmarshal(m, b) -} -func (m *GetVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetVersionResponse.Marshal(b, m, deterministic) -} -func (m *GetVersionResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionResponse.Merge(m, src) -} -func (m *GetVersionResponse) XXX_Size() int { - return xxx_messageInfo_GetVersionResponse.Size(m) -} -func (m *GetVersionResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetVersionResponse proto.InternalMessageInfo - -func (m *GetVersionResponse) GetControlPlaneVersion() *Version { - if m != nil { - return m.ControlPlaneVersion - } - return nil -} - -// Provides Version information for a component -type Version struct { - // Specifies the GIT sha of the build - Build string `protobuf:"bytes,1,opt,name=Build,proto3" json:"Build,omitempty"` - // Version for the build, should follow a semver - Version string `protobuf:"bytes,2,opt,name=Version,proto3" json:"Version,omitempty"` - // Build timestamp - BuildTime string `protobuf:"bytes,3,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Version) Reset() { *m = Version{} } -func (m *Version) String() string { return proto.CompactTextString(m) } -func (*Version) ProtoMessage() {} -func (*Version) Descriptor() ([]byte, []int) { - return fileDescriptor_a025621cd13402e3, []int{1} -} - -func (m *Version) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Version.Unmarshal(m, b) -} -func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Version.Marshal(b, m, deterministic) -} -func (m *Version) XXX_Merge(src proto.Message) { - xxx_messageInfo_Version.Merge(m, src) -} -func (m *Version) XXX_Size() int { - return xxx_messageInfo_Version.Size(m) -} -func (m *Version) XXX_DiscardUnknown() { - xxx_messageInfo_Version.DiscardUnknown(m) -} - -var xxx_messageInfo_Version proto.InternalMessageInfo - -func (m *Version) GetBuild() string { - if m != nil { - return m.Build - } - return "" -} - -func (m *Version) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *Version) GetBuildTime() string { - if m != nil { - return m.BuildTime - } - return "" -} - -// Empty request for GetVersion -type GetVersionRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetVersionRequest) Reset() { *m = GetVersionRequest{} } -func (m *GetVersionRequest) String() string { return proto.CompactTextString(m) } -func (*GetVersionRequest) ProtoMessage() {} -func (*GetVersionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_a025621cd13402e3, []int{2} -} - -func (m *GetVersionRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetVersionRequest.Unmarshal(m, b) -} -func (m *GetVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetVersionRequest.Marshal(b, m, deterministic) -} -func (m *GetVersionRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetVersionRequest.Merge(m, src) -} -func (m *GetVersionRequest) XXX_Size() int { - return xxx_messageInfo_GetVersionRequest.Size(m) -} -func (m *GetVersionRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetVersionRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetVersionRequest proto.InternalMessageInfo - -func init() { - proto.RegisterType((*GetVersionResponse)(nil), "flyteidl.admin.GetVersionResponse") - proto.RegisterType((*Version)(nil), "flyteidl.admin.Version") - proto.RegisterType((*GetVersionRequest)(nil), "flyteidl.admin.GetVersionRequest") -} - -func init() { proto.RegisterFile("flyteidl/admin/version.proto", fileDescriptor_a025621cd13402e3) } - -var fileDescriptor_a025621cd13402e3 = []byte{ - // 219 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x50, 0xbd, 0x4b, 0xc7, 0x30, - 0x10, 0xe5, 0xa7, 0xa8, 0x34, 0x82, 0x60, 0xaa, 0x98, 0xa1, 0x83, 0x74, 0x72, 0x31, 0x01, 0x1d, - 0xc5, 0xa5, 0x8b, 0x83, 0x8b, 0x14, 0x51, 0x70, 0x29, 0xfd, 0x38, 0x63, 0x20, 0xcd, 0xc5, 0x24, - 0x15, 0xfc, 0xef, 0xc5, 0x34, 0xad, 0x76, 0xbb, 0x7b, 0x5f, 0x3c, 0x1e, 0x29, 0xde, 0xf5, 0x77, - 0x00, 0x35, 0x68, 0xd1, 0x0e, 0xa3, 0x32, 0xe2, 0x0b, 0x9c, 0x57, 0x68, 0xb8, 0x75, 0x18, 0x90, - 0x9e, 0x2c, 0x2c, 0x8f, 0x6c, 0xd9, 0x12, 0xfa, 0x00, 0xe1, 0x65, 0xd6, 0xd4, 0xe0, 0x2d, 0x1a, - 0x0f, 0xf4, 0x91, 0x9c, 0xf7, 0x68, 0x82, 0x43, 0xdd, 0x58, 0xdd, 0x1a, 0x68, 0x52, 0x08, 0xdb, - 0x5d, 0xee, 0xae, 0x8e, 0x6f, 0x2e, 0xf8, 0x36, 0x85, 0x2f, 0xfe, 0x3c, 0xb9, 0x9e, 0x7e, 0x4d, - 0x09, 0x2c, 0x5f, 0xc9, 0x51, 0x3a, 0xe9, 0x19, 0x39, 0xa8, 0x26, 0xa5, 0x87, 0x98, 0x93, 0xd5, - 0xf3, 0x43, 0xd9, 0x2a, 0x60, 0x7b, 0x11, 0x5f, 0xf5, 0x05, 0xc9, 0xa2, 0xe4, 0x59, 0x8d, 0xc0, - 0xf6, 0x23, 0xf7, 0x07, 0x94, 0x39, 0x39, 0xfd, 0xdf, 0xfd, 0x73, 0x02, 0x1f, 0xaa, 0xfb, 0xb7, - 0x3b, 0xa9, 0xc2, 0xc7, 0xd4, 0xf1, 0x1e, 0x47, 0x11, 0x7b, 0xa2, 0x93, 0xf3, 0x21, 0xd6, 0x69, - 0x24, 0x18, 0x61, 0xbb, 0x6b, 0x89, 0x62, 0xbb, 0x56, 0x77, 0x18, 0x67, 0xba, 0xfd, 0x09, 0x00, - 0x00, 0xff, 0xff, 0x3b, 0x51, 0x09, 0x37, 0x46, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json deleted file mode 100644 index bb45296df2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/version.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/version.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go deleted file mode 100644 index 0297513f72..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow.pb.go +++ /dev/null @@ -1,547 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/workflow.proto - -package admin - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Represents a request structure to create a revision of a workflow. -// See :ref:`ref_flyteidl.admin.Workflow` for more details -type WorkflowCreateRequest struct { - // id represents the unique identifier of the workflow. - // +required - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the specification for workflow. - // +required - Spec *WorkflowSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowCreateRequest) Reset() { *m = WorkflowCreateRequest{} } -func (m *WorkflowCreateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowCreateRequest) ProtoMessage() {} -func (*WorkflowCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{0} -} - -func (m *WorkflowCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowCreateRequest.Unmarshal(m, b) -} -func (m *WorkflowCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowCreateRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowCreateRequest.Merge(m, src) -} -func (m *WorkflowCreateRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowCreateRequest.Size(m) -} -func (m *WorkflowCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowCreateRequest proto.InternalMessageInfo - -func (m *WorkflowCreateRequest) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *WorkflowCreateRequest) GetSpec() *WorkflowSpec { - if m != nil { - return m.Spec - } - return nil -} - -type WorkflowCreateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowCreateResponse) Reset() { *m = WorkflowCreateResponse{} } -func (m *WorkflowCreateResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowCreateResponse) ProtoMessage() {} -func (*WorkflowCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{1} -} - -func (m *WorkflowCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowCreateResponse.Unmarshal(m, b) -} -func (m *WorkflowCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowCreateResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowCreateResponse.Merge(m, src) -} -func (m *WorkflowCreateResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowCreateResponse.Size(m) -} -func (m *WorkflowCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowCreateResponse proto.InternalMessageInfo - -// Represents the workflow structure stored in the Admin -// A workflow is created by ordering tasks and associating outputs to inputs -// in order to produce a directed-acyclic execution graph. -type Workflow struct { - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the workflow. - Closure *WorkflowClosure `protobuf:"bytes,2,opt,name=closure,proto3" json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Workflow) Reset() { *m = Workflow{} } -func (m *Workflow) String() string { return proto.CompactTextString(m) } -func (*Workflow) ProtoMessage() {} -func (*Workflow) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{2} -} - -func (m *Workflow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Workflow.Unmarshal(m, b) -} -func (m *Workflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Workflow.Marshal(b, m, deterministic) -} -func (m *Workflow) XXX_Merge(src proto.Message) { - xxx_messageInfo_Workflow.Merge(m, src) -} -func (m *Workflow) XXX_Size() int { - return xxx_messageInfo_Workflow.Size(m) -} -func (m *Workflow) XXX_DiscardUnknown() { - xxx_messageInfo_Workflow.DiscardUnknown(m) -} - -var xxx_messageInfo_Workflow proto.InternalMessageInfo - -func (m *Workflow) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *Workflow) GetClosure() *WorkflowClosure { - if m != nil { - return m.Closure - } - return nil -} - -func (m *Workflow) GetShortDescription() string { - if m != nil { - return m.ShortDescription - } - return "" -} - -// Represents a list of workflows returned from the admin. -// See :ref:`ref_flyteidl.admin.Workflow` for more details -type WorkflowList struct { - // A list of workflows returned based on the request. - Workflows []*Workflow `protobuf:"bytes,1,rep,name=workflows,proto3" json:"workflows,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page - // in a query. If there are no more results, this value will be empty. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowList) Reset() { *m = WorkflowList{} } -func (m *WorkflowList) String() string { return proto.CompactTextString(m) } -func (*WorkflowList) ProtoMessage() {} -func (*WorkflowList) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{3} -} - -func (m *WorkflowList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowList.Unmarshal(m, b) -} -func (m *WorkflowList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowList.Marshal(b, m, deterministic) -} -func (m *WorkflowList) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowList.Merge(m, src) -} -func (m *WorkflowList) XXX_Size() int { - return xxx_messageInfo_WorkflowList.Size(m) -} -func (m *WorkflowList) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowList.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowList proto.InternalMessageInfo - -func (m *WorkflowList) GetWorkflows() []*Workflow { - if m != nil { - return m.Workflows - } - return nil -} - -func (m *WorkflowList) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -// Represents a structure that encapsulates the specification of the workflow. -type WorkflowSpec struct { - // Template of the task that encapsulates all the metadata of the workflow. - Template *core.WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the - // propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out - // to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - SubWorkflows []*core.WorkflowTemplate `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` - // Represents the specification for description entity. - Description *DescriptionEntity `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowSpec) Reset() { *m = WorkflowSpec{} } -func (m *WorkflowSpec) String() string { return proto.CompactTextString(m) } -func (*WorkflowSpec) ProtoMessage() {} -func (*WorkflowSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{4} -} - -func (m *WorkflowSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowSpec.Unmarshal(m, b) -} -func (m *WorkflowSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowSpec.Marshal(b, m, deterministic) -} -func (m *WorkflowSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowSpec.Merge(m, src) -} -func (m *WorkflowSpec) XXX_Size() int { - return xxx_messageInfo_WorkflowSpec.Size(m) -} -func (m *WorkflowSpec) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowSpec proto.InternalMessageInfo - -func (m *WorkflowSpec) GetTemplate() *core.WorkflowTemplate { - if m != nil { - return m.Template - } - return nil -} - -func (m *WorkflowSpec) GetSubWorkflows() []*core.WorkflowTemplate { - if m != nil { - return m.SubWorkflows - } - return nil -} - -func (m *WorkflowSpec) GetDescription() *DescriptionEntity { - if m != nil { - return m.Description - } - return nil -} - -// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. -type WorkflowClosure struct { - // Represents the compiled representation of the workflow from the specification provided. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,1,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // Time at which the workflow was created. - CreatedAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } -func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } -func (*WorkflowClosure) ProtoMessage() {} -func (*WorkflowClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_827ade3f2372dc85, []int{5} -} - -func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) -} -func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) -} -func (m *WorkflowClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowClosure.Merge(m, src) -} -func (m *WorkflowClosure) XXX_Size() int { - return xxx_messageInfo_WorkflowClosure.Size(m) -} -func (m *WorkflowClosure) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo - -func (m *WorkflowClosure) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if m != nil { - return m.CompiledWorkflow - } - return nil -} - -func (m *WorkflowClosure) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - 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 fails 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") - proto.RegisterType((*Workflow)(nil), "flyteidl.admin.Workflow") - 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{ - // 592 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x25, 0x19, 0x8c, 0xd5, 0x1d, 0xb0, 0x45, 0x80, 0x42, 0x19, 0x6c, 0x44, 0x02, 0x8a, 0x10, - 0x09, 0x2a, 0x02, 0x69, 0x9a, 0x78, 0x60, 0x6d, 0x11, 0x48, 0x3c, 0xb9, 0x93, 0x26, 0x21, 0xa4, - 0x28, 0x1f, 0x37, 0x99, 0xb5, 0x24, 0x0e, 0xb6, 0xa3, 0xb1, 0x1f, 0xc2, 0x23, 0x0f, 0xfc, 0x29, - 0x7e, 0x0f, 0xaa, 0x63, 0x27, 0x6d, 0xa6, 0xc2, 0xe0, 0xad, 0xe9, 0x3d, 0x3e, 0xe7, 0xdc, 0xe3, - 0x7b, 0x8d, 0x1e, 0x24, 0xd9, 0xb9, 0x00, 0x12, 0x67, 0x5e, 0x10, 0xe7, 0xa4, 0xf0, 0xce, 0x28, - 0x3b, 0x4d, 0x32, 0x7a, 0xe6, 0x96, 0x8c, 0x0a, 0x6a, 0xdd, 0xd4, 0x65, 0x57, 0x96, 0x07, 0x3b, - 0x0d, 0x3c, 0xa2, 0x0c, 0xbc, 0x88, 0xe6, 0x25, 0xc9, 0x80, 0xd5, 0xe8, 0xc1, 0xc3, 0xe5, 0x2a, - 0x89, 0xa1, 0x10, 0x24, 0x21, 0x4d, 0xbd, 0x73, 0x7a, 0x59, 0x6b, 0xf0, 0xb4, 0x63, 0x25, 0x06, - 0x1e, 0x31, 0x52, 0x0a, 0x42, 0x0b, 0x7f, 0x4e, 0x24, 0xce, 0x15, 0x70, 0x37, 0xa5, 0x34, 0xcd, - 0xc0, 0x93, 0x5f, 0x61, 0x95, 0x78, 0x82, 0xe4, 0xc0, 0x45, 0x90, 0x97, 0x35, 0xc0, 0x11, 0xe8, - 0xce, 0xb1, 0xe2, 0x1e, 0x33, 0x08, 0x04, 0x60, 0xf8, 0x5a, 0x01, 0x17, 0xd6, 0x33, 0x64, 0x92, - 0xd8, 0x36, 0xf6, 0x8c, 0x61, 0x7f, 0x74, 0xcf, 0x6d, 0x7a, 0x9b, 0xbb, 0x71, 0x3f, 0x36, 0x6e, - 0xb1, 0x49, 0x62, 0xeb, 0x25, 0xba, 0xca, 0x4b, 0x88, 0x6c, 0x53, 0x82, 0x77, 0xdc, 0xe5, 0x20, - 0x5c, 0xcd, 0x3f, 0x2b, 0x21, 0xc2, 0x12, 0xe9, 0xd8, 0xe8, 0x6e, 0x57, 0x95, 0x97, 0xb4, 0xe0, - 0xe0, 0xfc, 0x30, 0xd0, 0x86, 0x2e, 0xfd, 0x8b, 0x87, 0x7d, 0x74, 0x3d, 0xca, 0x28, 0xaf, 0x18, - 0x28, 0x1b, 0xbb, 0xab, 0x6c, 0x8c, 0x6b, 0x18, 0xd6, 0x78, 0xeb, 0x39, 0xda, 0xe6, 0x27, 0x94, - 0x09, 0x7f, 0x21, 0x45, 0x7b, 0x6d, 0xcf, 0x18, 0xf6, 0xf0, 0x96, 0x2c, 0x4c, 0xda, 0xff, 0x9d, - 0x2f, 0x68, 0x53, 0x13, 0x7d, 0x22, 0x5c, 0x58, 0x6f, 0x50, 0x4f, 0xdf, 0x0d, 0xb7, 0x8d, 0xbd, - 0xb5, 0x61, 0x7f, 0x64, 0xaf, 0x52, 0xc6, 0x2d, 0xd4, 0xba, 0x8d, 0xae, 0x09, 0x7a, 0x0a, 0x85, - 0x74, 0xdb, 0xc3, 0xf5, 0x87, 0xf3, 0xcb, 0x68, 0xe9, 0xe7, 0x71, 0x59, 0x07, 0x68, 0x43, 0x40, - 0x5e, 0x66, 0x81, 0x00, 0x95, 0xc3, 0x6e, 0x27, 0x07, 0x0d, 0x3f, 0x52, 0x30, 0xdc, 0x1c, 0xb0, - 0x26, 0xe8, 0x06, 0xaf, 0x42, 0xbf, 0xf5, 0x67, 0x4a, 0x7f, 0x7f, 0x65, 0xd8, 0xe4, 0x55, 0x78, - 0xdc, 0x38, 0x1d, 0xa3, 0x7e, 0x37, 0x98, 0xfe, 0xe8, 0x51, 0xb7, 0xc7, 0x85, 0x8c, 0xa6, 0x72, - 0x00, 0xf1, 0xe2, 0x29, 0xe7, 0xa7, 0x81, 0x6e, 0x75, 0x2e, 0xc0, 0x9a, 0xa1, 0x6d, 0xb5, 0x14, - 0x71, 0xe3, 0x51, 0x35, 0xf9, 0xa4, 0x63, 0x71, 0xac, 0x70, 0xdd, 0x3b, 0xdc, 0x8a, 0x3a, 0x05, - 0x6b, 0x1f, 0xa1, 0x48, 0x4e, 0x54, 0xec, 0x07, 0x42, 0x8d, 0xc2, 0xc0, 0xad, 0xb7, 0xc0, 0xd5, - 0x5b, 0xe0, 0x1e, 0xe9, 0x2d, 0xc0, 0x3d, 0x85, 0x7e, 0x27, 0x1c, 0x8c, 0x1e, 0x6b, 0x9a, 0x29, - 0x63, 0x94, 0x4d, 0xbf, 0x11, 0x2e, 0xf8, 0x84, 0x24, 0x09, 0x30, 0x28, 0xc4, 0x4c, 0xb0, 0x2a, - 0x12, 0x73, 0xe3, 0x97, 0x1f, 0xcb, 0x15, 0x9c, 0x35, 0x28, 0x0a, 0xb2, 0xff, 0xe2, 0xfc, 0x6e, - 0xa2, 0xfb, 0xf5, 0xd6, 0x68, 0xea, 0xf7, 0x01, 0xc9, 0xe6, 0x71, 0x40, 0xc0, 0x69, 0x61, 0x55, - 0x68, 0x00, 0x52, 0xc6, 0x8f, 0xb5, 0x77, 0x9f, 0x6b, 0x21, 0x25, 0xf1, 0x7a, 0xd5, 0x8c, 0xfe, - 0xb1, 0xf3, 0x0f, 0x57, 0xb0, 0x0d, 0xab, 0x52, 0x69, 0x65, 0x89, 0x6e, 0x6f, 0x41, 0xd6, 0xbc, - 0xb4, 0xec, 0xc5, 0x70, 0x5a, 0xd9, 0x8b, 0xb5, 0xc3, 0x0d, 0xb4, 0xce, 0x64, 0xdf, 0x87, 0x6f, - 0x3f, 0x1f, 0xa4, 0x44, 0x9c, 0x54, 0xa1, 0x1b, 0xd1, 0xdc, 0x93, 0x42, 0x94, 0xa5, 0xf5, 0x0f, - 0xaf, 0x79, 0x30, 0x53, 0x28, 0xbc, 0x32, 0x7c, 0x91, 0x52, 0x6f, 0xf9, 0x0d, 0x0d, 0xd7, 0xe5, - 0x74, 0xbc, 0xfa, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x31, 0xff, 0x42, 0x9e, 0xe7, 0x05, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json deleted file mode 100644 index 7e1bd220f5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/workflow.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go deleted file mode 100644 index 5b3d82dce6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.pb.go +++ /dev/null @@ -1,420 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/admin/workflow_attributes.proto - -package admin - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name for which this set of attributes will be applied. - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - MatchingAttributes *MatchingAttributes `protobuf:"bytes,4,opt,name=matching_attributes,json=matchingAttributes,proto3" json:"matching_attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributes) Reset() { *m = WorkflowAttributes{} } -func (m *WorkflowAttributes) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributes) ProtoMessage() {} -func (*WorkflowAttributes) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{0} -} - -func (m *WorkflowAttributes) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributes.Unmarshal(m, b) -} -func (m *WorkflowAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributes.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributes) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributes.Merge(m, src) -} -func (m *WorkflowAttributes) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributes.Size(m) -} -func (m *WorkflowAttributes) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributes.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributes proto.InternalMessageInfo - -func (m *WorkflowAttributes) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *WorkflowAttributes) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *WorkflowAttributes) GetWorkflow() string { - if m != nil { - return m.Workflow - } - return "" -} - -func (m *WorkflowAttributes) GetMatchingAttributes() *MatchingAttributes { - if m != nil { - return m.MatchingAttributes - } - return nil -} - -// Sets custom attributes for a project, domain and workflow combination. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesUpdateRequest struct { - Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesUpdateRequest) Reset() { *m = WorkflowAttributesUpdateRequest{} } -func (m *WorkflowAttributesUpdateRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesUpdateRequest) ProtoMessage() {} -func (*WorkflowAttributesUpdateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{1} -} - -func (m *WorkflowAttributesUpdateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesUpdateRequest.Unmarshal(m, b) -} -func (m *WorkflowAttributesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesUpdateRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesUpdateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesUpdateRequest.Merge(m, src) -} -func (m *WorkflowAttributesUpdateRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesUpdateRequest.Size(m) -} -func (m *WorkflowAttributesUpdateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesUpdateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesUpdateRequest proto.InternalMessageInfo - -func (m *WorkflowAttributesUpdateRequest) GetAttributes() *WorkflowAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Purposefully empty, may be populated in the future. -type WorkflowAttributesUpdateResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesUpdateResponse) Reset() { *m = WorkflowAttributesUpdateResponse{} } -func (m *WorkflowAttributesUpdateResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesUpdateResponse) ProtoMessage() {} -func (*WorkflowAttributesUpdateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{2} -} - -func (m *WorkflowAttributesUpdateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesUpdateResponse.Unmarshal(m, b) -} -func (m *WorkflowAttributesUpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesUpdateResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesUpdateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesUpdateResponse.Merge(m, src) -} -func (m *WorkflowAttributesUpdateResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesUpdateResponse.Size(m) -} -func (m *WorkflowAttributesUpdateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesUpdateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesUpdateResponse proto.InternalMessageInfo - -// Request to get an individual workflow attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesGetRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name which this set of attributes references. - // +required - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - // Which type of matchable attributes to return. - // +required - ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesGetRequest) Reset() { *m = WorkflowAttributesGetRequest{} } -func (m *WorkflowAttributesGetRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesGetRequest) ProtoMessage() {} -func (*WorkflowAttributesGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{3} -} - -func (m *WorkflowAttributesGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesGetRequest.Unmarshal(m, b) -} -func (m *WorkflowAttributesGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesGetRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesGetRequest.Merge(m, src) -} -func (m *WorkflowAttributesGetRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesGetRequest.Size(m) -} -func (m *WorkflowAttributesGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesGetRequest proto.InternalMessageInfo - -func (m *WorkflowAttributesGetRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *WorkflowAttributesGetRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *WorkflowAttributesGetRequest) GetWorkflow() string { - if m != nil { - return m.Workflow - } - return "" -} - -func (m *WorkflowAttributesGetRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Response to get an individual workflow attribute override. -type WorkflowAttributesGetResponse struct { - Attributes *WorkflowAttributes `protobuf:"bytes,1,opt,name=attributes,proto3" json:"attributes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesGetResponse) Reset() { *m = WorkflowAttributesGetResponse{} } -func (m *WorkflowAttributesGetResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesGetResponse) ProtoMessage() {} -func (*WorkflowAttributesGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{4} -} - -func (m *WorkflowAttributesGetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesGetResponse.Unmarshal(m, b) -} -func (m *WorkflowAttributesGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesGetResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesGetResponse.Merge(m, src) -} -func (m *WorkflowAttributesGetResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesGetResponse.Size(m) -} -func (m *WorkflowAttributesGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesGetResponse proto.InternalMessageInfo - -func (m *WorkflowAttributesGetResponse) GetAttributes() *WorkflowAttributes { - if m != nil { - return m.Attributes - } - return nil -} - -// Request to delete a set matchable workflow attribute override. -// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -type WorkflowAttributesDeleteRequest struct { - // Unique project id which this set of attributes references. - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Unique domain id which this set of attributes references. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Workflow name which this set of attributes references. - // +required - Workflow string `protobuf:"bytes,3,opt,name=workflow,proto3" json:"workflow,omitempty"` - // Which type of matchable attributes to delete. - // +required - ResourceType MatchableResource `protobuf:"varint,4,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.admin.MatchableResource" json:"resource_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesDeleteRequest) Reset() { *m = WorkflowAttributesDeleteRequest{} } -func (m *WorkflowAttributesDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesDeleteRequest) ProtoMessage() {} -func (*WorkflowAttributesDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{5} -} - -func (m *WorkflowAttributesDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesDeleteRequest.Unmarshal(m, b) -} -func (m *WorkflowAttributesDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesDeleteRequest.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesDeleteRequest.Merge(m, src) -} -func (m *WorkflowAttributesDeleteRequest) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesDeleteRequest.Size(m) -} -func (m *WorkflowAttributesDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesDeleteRequest proto.InternalMessageInfo - -func (m *WorkflowAttributesDeleteRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *WorkflowAttributesDeleteRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *WorkflowAttributesDeleteRequest) GetWorkflow() string { - if m != nil { - return m.Workflow - } - return "" -} - -func (m *WorkflowAttributesDeleteRequest) GetResourceType() MatchableResource { - if m != nil { - return m.ResourceType - } - return MatchableResource_TASK_RESOURCE -} - -// Purposefully empty, may be populated in the future. -type WorkflowAttributesDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowAttributesDeleteResponse) Reset() { *m = WorkflowAttributesDeleteResponse{} } -func (m *WorkflowAttributesDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*WorkflowAttributesDeleteResponse) ProtoMessage() {} -func (*WorkflowAttributesDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_8ba8a51ab86bc38c, []int{6} -} - -func (m *WorkflowAttributesDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowAttributesDeleteResponse.Unmarshal(m, b) -} -func (m *WorkflowAttributesDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowAttributesDeleteResponse.Marshal(b, m, deterministic) -} -func (m *WorkflowAttributesDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowAttributesDeleteResponse.Merge(m, src) -} -func (m *WorkflowAttributesDeleteResponse) XXX_Size() int { - return xxx_messageInfo_WorkflowAttributesDeleteResponse.Size(m) -} -func (m *WorkflowAttributesDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowAttributesDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowAttributesDeleteResponse proto.InternalMessageInfo - -func init() { - proto.RegisterType((*WorkflowAttributes)(nil), "flyteidl.admin.WorkflowAttributes") - proto.RegisterType((*WorkflowAttributesUpdateRequest)(nil), "flyteidl.admin.WorkflowAttributesUpdateRequest") - proto.RegisterType((*WorkflowAttributesUpdateResponse)(nil), "flyteidl.admin.WorkflowAttributesUpdateResponse") - proto.RegisterType((*WorkflowAttributesGetRequest)(nil), "flyteidl.admin.WorkflowAttributesGetRequest") - proto.RegisterType((*WorkflowAttributesGetResponse)(nil), "flyteidl.admin.WorkflowAttributesGetResponse") - proto.RegisterType((*WorkflowAttributesDeleteRequest)(nil), "flyteidl.admin.WorkflowAttributesDeleteRequest") - proto.RegisterType((*WorkflowAttributesDeleteResponse)(nil), "flyteidl.admin.WorkflowAttributesDeleteResponse") -} - -func init() { - proto.RegisterFile("flyteidl/admin/workflow_attributes.proto", fileDescriptor_8ba8a51ab86bc38c) -} - -var fileDescriptor_8ba8a51ab86bc38c = []byte{ - // 349 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x93, 0x4f, 0x4b, 0xc3, 0x40, - 0x10, 0xc5, 0x59, 0x95, 0xaa, 0xa3, 0xf6, 0xb0, 0x82, 0x84, 0xa2, 0x58, 0xf7, 0x62, 0x2f, 0x26, - 0x50, 0x8f, 0xe2, 0xc1, 0x22, 0x7a, 0xf2, 0x12, 0x15, 0xc1, 0x4b, 0xc9, 0x9f, 0x69, 0x1a, 0x4d, - 0xb2, 0xeb, 0x66, 0x43, 0xe9, 0xf7, 0x12, 0xfa, 0xf5, 0xc4, 0x4d, 0xb6, 0x7f, 0x4c, 0x7a, 0xeb, - 0xc1, 0x5b, 0xa7, 0xfb, 0x66, 0xe6, 0x97, 0xf7, 0x18, 0xe8, 0x8d, 0x92, 0xa9, 0xc2, 0x38, 0x4c, - 0x1c, 0x2f, 0x4c, 0xe3, 0xcc, 0x99, 0x70, 0xf9, 0x39, 0x4a, 0xf8, 0x64, 0xe8, 0x29, 0x25, 0x63, - 0xbf, 0x50, 0x98, 0xdb, 0x42, 0x72, 0xc5, 0x69, 0xdb, 0x28, 0x6d, 0xad, 0xec, 0x5c, 0xfe, 0xe9, - 0x4c, 0x3d, 0x15, 0x8c, 0x3d, 0x3f, 0xc1, 0xa1, 0xc4, 0x9c, 0x17, 0x32, 0xc0, 0xb2, 0x91, 0xcd, - 0x08, 0xd0, 0xb7, 0x6a, 0xec, 0xdd, 0x7c, 0x2a, 0xb5, 0x60, 0x57, 0x48, 0xfe, 0x81, 0x81, 0xb2, - 0x48, 0x97, 0xf4, 0xf6, 0x5d, 0x53, 0xd2, 0x13, 0x68, 0x85, 0x3c, 0xf5, 0xe2, 0xcc, 0xda, 0xd2, - 0x0f, 0x55, 0x45, 0x3b, 0xb0, 0x67, 0xf0, 0xac, 0x6d, 0xfd, 0x32, 0xaf, 0xe9, 0x33, 0x1c, 0x6b, - 0x80, 0x38, 0x8b, 0x96, 0xd0, 0xad, 0x9d, 0x2e, 0xe9, 0x1d, 0xf4, 0x99, 0xbd, 0xca, 0x6e, 0x3f, - 0x55, 0xd2, 0x05, 0x8e, 0x4b, 0xd3, 0xda, 0x7f, 0x0c, 0xe1, 0xbc, 0x0e, 0xfe, 0x2a, 0x42, 0x4f, - 0xa1, 0x8b, 0x5f, 0x05, 0xe6, 0x8a, 0x0e, 0x00, 0x96, 0xd6, 0x91, 0xe6, 0x75, 0xf5, 0x21, 0xee, - 0x52, 0x17, 0x63, 0xd0, 0x5d, 0xbf, 0x26, 0x17, 0x3c, 0xcb, 0x91, 0x7d, 0x13, 0x38, 0xad, 0x8b, - 0x1e, 0x51, 0x19, 0x90, 0xcd, 0xda, 0xf9, 0x00, 0x47, 0x26, 0xc5, 0xa1, 0x9a, 0x0a, 0xd4, 0x46, - 0xb6, 0xfb, 0x17, 0x8d, 0x46, 0xfe, 0x86, 0xee, 0x56, 0x6a, 0xf7, 0xd0, 0xf4, 0xbd, 0x4c, 0x05, - 0xb2, 0x00, 0xce, 0xd6, 0x50, 0x97, 0xdf, 0xb5, 0x11, 0xff, 0x66, 0xa4, 0x29, 0xa7, 0x7b, 0x4c, - 0x70, 0x91, 0xd3, 0xff, 0xb4, 0xa7, 0x31, 0x79, 0x03, 0x5e, 0x3a, 0x34, 0xb8, 0x7d, 0xbf, 0x89, - 0x62, 0x35, 0x2e, 0x7c, 0x3b, 0xe0, 0xa9, 0xa3, 0x17, 0x70, 0x19, 0x95, 0x3f, 0x9c, 0xf9, 0x0d, - 0x46, 0x98, 0x39, 0xc2, 0xbf, 0x8a, 0xb8, 0xb3, 0x7a, 0x96, 0x7e, 0x4b, 0x1f, 0xe1, 0xf5, 0x4f, - 0x00, 0x00, 0x00, 0xff, 0xff, 0x90, 0x9e, 0xe0, 0xf5, 0xe9, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json b/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json deleted file mode 100644 index 96d8d580c0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/admin/workflow_attributes.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/admin/workflow_attributes.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go deleted file mode 100644 index 1145a30d04..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.go +++ /dev/null @@ -1,1762 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/artifact/artifacts.proto - -package artifact - -import ( - context "context" - fmt "fmt" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - _ "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event" - proto "github.com/golang/protobuf/proto" - any "github.com/golang/protobuf/ptypes/any" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type FindByWorkflowExecRequest_Direction int32 - -const ( - FindByWorkflowExecRequest_INPUTS FindByWorkflowExecRequest_Direction = 0 - FindByWorkflowExecRequest_OUTPUTS FindByWorkflowExecRequest_Direction = 1 -) - -var FindByWorkflowExecRequest_Direction_name = map[int32]string{ - 0: "INPUTS", - 1: "OUTPUTS", -} - -var FindByWorkflowExecRequest_Direction_value = map[string]int32{ - "INPUTS": 0, - "OUTPUTS": 1, -} - -func (x FindByWorkflowExecRequest_Direction) String() string { - return proto.EnumName(FindByWorkflowExecRequest_Direction_name, int32(x)) -} - -func (FindByWorkflowExecRequest_Direction) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{10, 0} -} - -type Artifact struct { - ArtifactId *core.ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - Spec *ArtifactSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - // references the tag field in ArtifactTag - Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` - Source *ArtifactSource `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Artifact) Reset() { *m = Artifact{} } -func (m *Artifact) String() string { return proto.CompactTextString(m) } -func (*Artifact) ProtoMessage() {} -func (*Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{0} -} - -func (m *Artifact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Artifact.Unmarshal(m, b) -} -func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Artifact.Marshal(b, m, deterministic) -} -func (m *Artifact) XXX_Merge(src proto.Message) { - xxx_messageInfo_Artifact.Merge(m, src) -} -func (m *Artifact) XXX_Size() int { - return xxx_messageInfo_Artifact.Size(m) -} -func (m *Artifact) XXX_DiscardUnknown() { - xxx_messageInfo_Artifact.DiscardUnknown(m) -} - -var xxx_messageInfo_Artifact proto.InternalMessageInfo - -func (m *Artifact) GetArtifactId() *core.ArtifactID { - if m != nil { - return m.ArtifactId - } - return nil -} - -func (m *Artifact) GetSpec() *ArtifactSpec { - if m != nil { - return m.Spec - } - return nil -} - -func (m *Artifact) GetTags() []string { - if m != nil { - return m.Tags - } - return nil -} - -func (m *Artifact) GetSource() *ArtifactSource { - if m != nil { - return m.Source - } - return nil -} - -type CreateArtifactRequest struct { - // Specify just project/domain on creation - ArtifactKey *core.ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` - Spec *ArtifactSpec `protobuf:"bytes,2,opt,name=spec,proto3" json:"spec,omitempty"` - Partitions map[string]string `protobuf:"bytes,4,rep,name=partitions,proto3" json:"partitions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Tag string `protobuf:"bytes,5,opt,name=tag,proto3" json:"tag,omitempty"` - Source *ArtifactSource `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateArtifactRequest) Reset() { *m = CreateArtifactRequest{} } -func (m *CreateArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*CreateArtifactRequest) ProtoMessage() {} -func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{1} -} - -func (m *CreateArtifactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateArtifactRequest.Unmarshal(m, b) -} -func (m *CreateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateArtifactRequest.Marshal(b, m, deterministic) -} -func (m *CreateArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateArtifactRequest.Merge(m, src) -} -func (m *CreateArtifactRequest) XXX_Size() int { - return xxx_messageInfo_CreateArtifactRequest.Size(m) -} -func (m *CreateArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateArtifactRequest proto.InternalMessageInfo - -func (m *CreateArtifactRequest) GetArtifactKey() *core.ArtifactKey { - if m != nil { - return m.ArtifactKey - } - return nil -} - -func (m *CreateArtifactRequest) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *CreateArtifactRequest) GetSpec() *ArtifactSpec { - if m != nil { - return m.Spec - } - return nil -} - -func (m *CreateArtifactRequest) GetPartitions() map[string]string { - if m != nil { - return m.Partitions - } - return nil -} - -func (m *CreateArtifactRequest) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -func (m *CreateArtifactRequest) GetSource() *ArtifactSource { - if m != nil { - return m.Source - } - return nil -} - -type ArtifactSource struct { - WorkflowExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=workflow_execution,json=workflowExecution,proto3" json:"workflow_execution,omitempty"` - NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - TaskId *core.Identifier `protobuf:"bytes,3,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - RetryAttempt uint32 `protobuf:"varint,4,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - // Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. - Principal string `protobuf:"bytes,5,opt,name=principal,proto3" json:"principal,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactSource) Reset() { *m = ArtifactSource{} } -func (m *ArtifactSource) String() string { return proto.CompactTextString(m) } -func (*ArtifactSource) ProtoMessage() {} -func (*ArtifactSource) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{2} -} - -func (m *ArtifactSource) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactSource.Unmarshal(m, b) -} -func (m *ArtifactSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactSource.Marshal(b, m, deterministic) -} -func (m *ArtifactSource) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactSource.Merge(m, src) -} -func (m *ArtifactSource) XXX_Size() int { - return xxx_messageInfo_ArtifactSource.Size(m) -} -func (m *ArtifactSource) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactSource.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactSource proto.InternalMessageInfo - -func (m *ArtifactSource) GetWorkflowExecution() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.WorkflowExecution - } - return nil -} - -func (m *ArtifactSource) GetNodeId() string { - if m != nil { - return m.NodeId - } - return "" -} - -func (m *ArtifactSource) GetTaskId() *core.Identifier { - if m != nil { - return m.TaskId - } - return nil -} - -func (m *ArtifactSource) GetRetryAttempt() uint32 { - if m != nil { - return m.RetryAttempt - } - return 0 -} - -func (m *ArtifactSource) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -type ArtifactSpec struct { - Value *core.Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - // This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but - // forgets to change the name, that is okay. And the reason why this is a separate field is because adding the - // type to all Literals is a lot of work. - Type *core.LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` - // Additional user metadata - UserMetadata *any.Any `protobuf:"bytes,4,opt,name=user_metadata,json=userMetadata,proto3" json:"user_metadata,omitempty"` - MetadataType string `protobuf:"bytes,5,opt,name=metadata_type,json=metadataType,proto3" json:"metadata_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactSpec) Reset() { *m = ArtifactSpec{} } -func (m *ArtifactSpec) String() string { return proto.CompactTextString(m) } -func (*ArtifactSpec) ProtoMessage() {} -func (*ArtifactSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{3} -} - -func (m *ArtifactSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactSpec.Unmarshal(m, b) -} -func (m *ArtifactSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactSpec.Marshal(b, m, deterministic) -} -func (m *ArtifactSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactSpec.Merge(m, src) -} -func (m *ArtifactSpec) XXX_Size() int { - return xxx_messageInfo_ArtifactSpec.Size(m) -} -func (m *ArtifactSpec) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactSpec proto.InternalMessageInfo - -func (m *ArtifactSpec) GetValue() *core.Literal { - if m != nil { - return m.Value - } - return nil -} - -func (m *ArtifactSpec) GetType() *core.LiteralType { - if m != nil { - return m.Type - } - return nil -} - -func (m *ArtifactSpec) GetShortDescription() string { - if m != nil { - return m.ShortDescription - } - return "" -} - -func (m *ArtifactSpec) GetUserMetadata() *any.Any { - if m != nil { - return m.UserMetadata - } - return nil -} - -func (m *ArtifactSpec) GetMetadataType() string { - if m != nil { - return m.MetadataType - } - return "" -} - -type CreateArtifactResponse struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateArtifactResponse) Reset() { *m = CreateArtifactResponse{} } -func (m *CreateArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*CreateArtifactResponse) ProtoMessage() {} -func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{4} -} - -func (m *CreateArtifactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateArtifactResponse.Unmarshal(m, b) -} -func (m *CreateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateArtifactResponse.Marshal(b, m, deterministic) -} -func (m *CreateArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateArtifactResponse.Merge(m, src) -} -func (m *CreateArtifactResponse) XXX_Size() int { - return xxx_messageInfo_CreateArtifactResponse.Size(m) -} -func (m *CreateArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateArtifactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateArtifactResponse proto.InternalMessageInfo - -func (m *CreateArtifactResponse) GetArtifact() *Artifact { - if m != nil { - return m.Artifact - } - return nil -} - -type GetArtifactRequest struct { - Query *core.ArtifactQuery `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` - // If false, then long_description is not returned. - Details bool `protobuf:"varint,2,opt,name=details,proto3" json:"details,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetArtifactRequest) Reset() { *m = GetArtifactRequest{} } -func (m *GetArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*GetArtifactRequest) ProtoMessage() {} -func (*GetArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{5} -} - -func (m *GetArtifactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArtifactRequest.Unmarshal(m, b) -} -func (m *GetArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArtifactRequest.Marshal(b, m, deterministic) -} -func (m *GetArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArtifactRequest.Merge(m, src) -} -func (m *GetArtifactRequest) XXX_Size() int { - return xxx_messageInfo_GetArtifactRequest.Size(m) -} -func (m *GetArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetArtifactRequest proto.InternalMessageInfo - -func (m *GetArtifactRequest) GetQuery() *core.ArtifactQuery { - if m != nil { - return m.Query - } - return nil -} - -func (m *GetArtifactRequest) GetDetails() bool { - if m != nil { - return m.Details - } - return false -} - -type GetArtifactResponse struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetArtifactResponse) Reset() { *m = GetArtifactResponse{} } -func (m *GetArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*GetArtifactResponse) ProtoMessage() {} -func (*GetArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{6} -} - -func (m *GetArtifactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArtifactResponse.Unmarshal(m, b) -} -func (m *GetArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArtifactResponse.Marshal(b, m, deterministic) -} -func (m *GetArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArtifactResponse.Merge(m, src) -} -func (m *GetArtifactResponse) XXX_Size() int { - return xxx_messageInfo_GetArtifactResponse.Size(m) -} -func (m *GetArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetArtifactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetArtifactResponse proto.InternalMessageInfo - -func (m *GetArtifactResponse) GetArtifact() *Artifact { - if m != nil { - return m.Artifact - } - return nil -} - -type SearchOptions struct { - // If true, this means a strict partition search. meaning if you don't specify the partition - // field, that will mean, non-partitioned, rather than any partition. - StrictPartitions bool `protobuf:"varint,1,opt,name=strict_partitions,json=strictPartitions,proto3" json:"strict_partitions,omitempty"` - // If true, only one artifact per key will be returned. It will be the latest one by creation time. - LatestByKey bool `protobuf:"varint,2,opt,name=latest_by_key,json=latestByKey,proto3" json:"latest_by_key,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchOptions) Reset() { *m = SearchOptions{} } -func (m *SearchOptions) String() string { return proto.CompactTextString(m) } -func (*SearchOptions) ProtoMessage() {} -func (*SearchOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{7} -} - -func (m *SearchOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchOptions.Unmarshal(m, b) -} -func (m *SearchOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchOptions.Marshal(b, m, deterministic) -} -func (m *SearchOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchOptions.Merge(m, src) -} -func (m *SearchOptions) XXX_Size() int { - return xxx_messageInfo_SearchOptions.Size(m) -} -func (m *SearchOptions) XXX_DiscardUnknown() { - xxx_messageInfo_SearchOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchOptions proto.InternalMessageInfo - -func (m *SearchOptions) GetStrictPartitions() bool { - if m != nil { - return m.StrictPartitions - } - return false -} - -func (m *SearchOptions) GetLatestByKey() bool { - if m != nil { - return m.LatestByKey - } - return false -} - -type SearchArtifactsRequest struct { - ArtifactKey *core.ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Partitions *core.Partitions `protobuf:"bytes,2,opt,name=partitions,proto3" json:"partitions,omitempty"` - Principal string `protobuf:"bytes,3,opt,name=principal,proto3" json:"principal,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - Options *SearchOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` - Token string `protobuf:"bytes,6,opt,name=token,proto3" json:"token,omitempty"` - Limit int32 `protobuf:"varint,7,opt,name=limit,proto3" json:"limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchArtifactsRequest) Reset() { *m = SearchArtifactsRequest{} } -func (m *SearchArtifactsRequest) String() string { return proto.CompactTextString(m) } -func (*SearchArtifactsRequest) ProtoMessage() {} -func (*SearchArtifactsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{8} -} - -func (m *SearchArtifactsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchArtifactsRequest.Unmarshal(m, b) -} -func (m *SearchArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchArtifactsRequest.Marshal(b, m, deterministic) -} -func (m *SearchArtifactsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchArtifactsRequest.Merge(m, src) -} -func (m *SearchArtifactsRequest) XXX_Size() int { - return xxx_messageInfo_SearchArtifactsRequest.Size(m) -} -func (m *SearchArtifactsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_SearchArtifactsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchArtifactsRequest proto.InternalMessageInfo - -func (m *SearchArtifactsRequest) GetArtifactKey() *core.ArtifactKey { - if m != nil { - return m.ArtifactKey - } - return nil -} - -func (m *SearchArtifactsRequest) GetPartitions() *core.Partitions { - if m != nil { - return m.Partitions - } - return nil -} - -func (m *SearchArtifactsRequest) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -func (m *SearchArtifactsRequest) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *SearchArtifactsRequest) GetOptions() *SearchOptions { - if m != nil { - return m.Options - } - return nil -} - -func (m *SearchArtifactsRequest) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *SearchArtifactsRequest) GetLimit() int32 { - if m != nil { - return m.Limit - } - return 0 -} - -type SearchArtifactsResponse struct { - // If artifact specs are not requested, the resultant artifacts may be empty. - Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - // continuation token if relevant. - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SearchArtifactsResponse) Reset() { *m = SearchArtifactsResponse{} } -func (m *SearchArtifactsResponse) String() string { return proto.CompactTextString(m) } -func (*SearchArtifactsResponse) ProtoMessage() {} -func (*SearchArtifactsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{9} -} - -func (m *SearchArtifactsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SearchArtifactsResponse.Unmarshal(m, b) -} -func (m *SearchArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SearchArtifactsResponse.Marshal(b, m, deterministic) -} -func (m *SearchArtifactsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SearchArtifactsResponse.Merge(m, src) -} -func (m *SearchArtifactsResponse) XXX_Size() int { - return xxx_messageInfo_SearchArtifactsResponse.Size(m) -} -func (m *SearchArtifactsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_SearchArtifactsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_SearchArtifactsResponse proto.InternalMessageInfo - -func (m *SearchArtifactsResponse) GetArtifacts() []*Artifact { - if m != nil { - return m.Artifacts - } - return nil -} - -func (m *SearchArtifactsResponse) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -type FindByWorkflowExecRequest struct { - ExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` - Direction FindByWorkflowExecRequest_Direction `protobuf:"varint,2,opt,name=direction,proto3,enum=flyteidl.artifact.FindByWorkflowExecRequest_Direction" json:"direction,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FindByWorkflowExecRequest) Reset() { *m = FindByWorkflowExecRequest{} } -func (m *FindByWorkflowExecRequest) String() string { return proto.CompactTextString(m) } -func (*FindByWorkflowExecRequest) ProtoMessage() {} -func (*FindByWorkflowExecRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{10} -} - -func (m *FindByWorkflowExecRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FindByWorkflowExecRequest.Unmarshal(m, b) -} -func (m *FindByWorkflowExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FindByWorkflowExecRequest.Marshal(b, m, deterministic) -} -func (m *FindByWorkflowExecRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_FindByWorkflowExecRequest.Merge(m, src) -} -func (m *FindByWorkflowExecRequest) XXX_Size() int { - return xxx_messageInfo_FindByWorkflowExecRequest.Size(m) -} -func (m *FindByWorkflowExecRequest) XXX_DiscardUnknown() { - xxx_messageInfo_FindByWorkflowExecRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_FindByWorkflowExecRequest proto.InternalMessageInfo - -func (m *FindByWorkflowExecRequest) GetExecId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecId - } - return nil -} - -func (m *FindByWorkflowExecRequest) GetDirection() FindByWorkflowExecRequest_Direction { - if m != nil { - return m.Direction - } - return FindByWorkflowExecRequest_INPUTS -} - -// Aliases identify a particular version of an artifact. They are different than tags in that they -// have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind, -// at most one version can have any given value at any point. -type AddTagRequest struct { - ArtifactId *core.ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - // If true, and another version already has the specified kind/value, set this version instead - Overwrite bool `protobuf:"varint,3,opt,name=overwrite,proto3" json:"overwrite,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddTagRequest) Reset() { *m = AddTagRequest{} } -func (m *AddTagRequest) String() string { return proto.CompactTextString(m) } -func (*AddTagRequest) ProtoMessage() {} -func (*AddTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{11} -} - -func (m *AddTagRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddTagRequest.Unmarshal(m, b) -} -func (m *AddTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddTagRequest.Marshal(b, m, deterministic) -} -func (m *AddTagRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddTagRequest.Merge(m, src) -} -func (m *AddTagRequest) XXX_Size() int { - return xxx_messageInfo_AddTagRequest.Size(m) -} -func (m *AddTagRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddTagRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AddTagRequest proto.InternalMessageInfo - -func (m *AddTagRequest) GetArtifactId() *core.ArtifactID { - if m != nil { - return m.ArtifactId - } - return nil -} - -func (m *AddTagRequest) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -func (m *AddTagRequest) GetOverwrite() bool { - if m != nil { - return m.Overwrite - } - return false -} - -type AddTagResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddTagResponse) Reset() { *m = AddTagResponse{} } -func (m *AddTagResponse) String() string { return proto.CompactTextString(m) } -func (*AddTagResponse) ProtoMessage() {} -func (*AddTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{12} -} - -func (m *AddTagResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddTagResponse.Unmarshal(m, b) -} -func (m *AddTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddTagResponse.Marshal(b, m, deterministic) -} -func (m *AddTagResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddTagResponse.Merge(m, src) -} -func (m *AddTagResponse) XXX_Size() int { - return xxx_messageInfo_AddTagResponse.Size(m) -} -func (m *AddTagResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddTagResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AddTagResponse proto.InternalMessageInfo - -type CreateTriggerRequest struct { - TriggerLaunchPlan *admin.LaunchPlan `protobuf:"bytes,1,opt,name=trigger_launch_plan,json=triggerLaunchPlan,proto3" json:"trigger_launch_plan,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTriggerRequest) Reset() { *m = CreateTriggerRequest{} } -func (m *CreateTriggerRequest) String() string { return proto.CompactTextString(m) } -func (*CreateTriggerRequest) ProtoMessage() {} -func (*CreateTriggerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{13} -} - -func (m *CreateTriggerRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTriggerRequest.Unmarshal(m, b) -} -func (m *CreateTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTriggerRequest.Marshal(b, m, deterministic) -} -func (m *CreateTriggerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTriggerRequest.Merge(m, src) -} -func (m *CreateTriggerRequest) XXX_Size() int { - return xxx_messageInfo_CreateTriggerRequest.Size(m) -} -func (m *CreateTriggerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTriggerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTriggerRequest proto.InternalMessageInfo - -func (m *CreateTriggerRequest) GetTriggerLaunchPlan() *admin.LaunchPlan { - if m != nil { - return m.TriggerLaunchPlan - } - return nil -} - -type CreateTriggerResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateTriggerResponse) Reset() { *m = CreateTriggerResponse{} } -func (m *CreateTriggerResponse) String() string { return proto.CompactTextString(m) } -func (*CreateTriggerResponse) ProtoMessage() {} -func (*CreateTriggerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{14} -} - -func (m *CreateTriggerResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateTriggerResponse.Unmarshal(m, b) -} -func (m *CreateTriggerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateTriggerResponse.Marshal(b, m, deterministic) -} -func (m *CreateTriggerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateTriggerResponse.Merge(m, src) -} -func (m *CreateTriggerResponse) XXX_Size() int { - return xxx_messageInfo_CreateTriggerResponse.Size(m) -} -func (m *CreateTriggerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateTriggerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateTriggerResponse proto.InternalMessageInfo - -type DeleteTriggerRequest struct { - TriggerId *core.Identifier `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteTriggerRequest) Reset() { *m = DeleteTriggerRequest{} } -func (m *DeleteTriggerRequest) String() string { return proto.CompactTextString(m) } -func (*DeleteTriggerRequest) ProtoMessage() {} -func (*DeleteTriggerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{15} -} - -func (m *DeleteTriggerRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTriggerRequest.Unmarshal(m, b) -} -func (m *DeleteTriggerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTriggerRequest.Marshal(b, m, deterministic) -} -func (m *DeleteTriggerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTriggerRequest.Merge(m, src) -} -func (m *DeleteTriggerRequest) XXX_Size() int { - return xxx_messageInfo_DeleteTriggerRequest.Size(m) -} -func (m *DeleteTriggerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTriggerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTriggerRequest proto.InternalMessageInfo - -func (m *DeleteTriggerRequest) GetTriggerId() *core.Identifier { - if m != nil { - return m.TriggerId - } - return nil -} - -type DeleteTriggerResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DeleteTriggerResponse) Reset() { *m = DeleteTriggerResponse{} } -func (m *DeleteTriggerResponse) String() string { return proto.CompactTextString(m) } -func (*DeleteTriggerResponse) ProtoMessage() {} -func (*DeleteTriggerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{16} -} - -func (m *DeleteTriggerResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DeleteTriggerResponse.Unmarshal(m, b) -} -func (m *DeleteTriggerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DeleteTriggerResponse.Marshal(b, m, deterministic) -} -func (m *DeleteTriggerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_DeleteTriggerResponse.Merge(m, src) -} -func (m *DeleteTriggerResponse) XXX_Size() int { - return xxx_messageInfo_DeleteTriggerResponse.Size(m) -} -func (m *DeleteTriggerResponse) XXX_DiscardUnknown() { - xxx_messageInfo_DeleteTriggerResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_DeleteTriggerResponse proto.InternalMessageInfo - -type ArtifactProducer struct { - // These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in - // Admin's domain. - EntityId *core.Identifier `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - Outputs *core.VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactProducer) Reset() { *m = ArtifactProducer{} } -func (m *ArtifactProducer) String() string { return proto.CompactTextString(m) } -func (*ArtifactProducer) ProtoMessage() {} -func (*ArtifactProducer) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{17} -} - -func (m *ArtifactProducer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactProducer.Unmarshal(m, b) -} -func (m *ArtifactProducer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactProducer.Marshal(b, m, deterministic) -} -func (m *ArtifactProducer) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactProducer.Merge(m, src) -} -func (m *ArtifactProducer) XXX_Size() int { - return xxx_messageInfo_ArtifactProducer.Size(m) -} -func (m *ArtifactProducer) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactProducer.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactProducer proto.InternalMessageInfo - -func (m *ArtifactProducer) GetEntityId() *core.Identifier { - if m != nil { - return m.EntityId - } - return nil -} - -func (m *ArtifactProducer) GetOutputs() *core.VariableMap { - if m != nil { - return m.Outputs - } - return nil -} - -type RegisterProducerRequest struct { - Producers []*ArtifactProducer `protobuf:"bytes,1,rep,name=producers,proto3" json:"producers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterProducerRequest) Reset() { *m = RegisterProducerRequest{} } -func (m *RegisterProducerRequest) String() string { return proto.CompactTextString(m) } -func (*RegisterProducerRequest) ProtoMessage() {} -func (*RegisterProducerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{18} -} - -func (m *RegisterProducerRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterProducerRequest.Unmarshal(m, b) -} -func (m *RegisterProducerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterProducerRequest.Marshal(b, m, deterministic) -} -func (m *RegisterProducerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterProducerRequest.Merge(m, src) -} -func (m *RegisterProducerRequest) XXX_Size() int { - return xxx_messageInfo_RegisterProducerRequest.Size(m) -} -func (m *RegisterProducerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterProducerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterProducerRequest proto.InternalMessageInfo - -func (m *RegisterProducerRequest) GetProducers() []*ArtifactProducer { - if m != nil { - return m.Producers - } - return nil -} - -type ArtifactConsumer struct { - // These should all be launch plan IDs - EntityId *core.Identifier `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` - Inputs *core.ParameterMap `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactConsumer) Reset() { *m = ArtifactConsumer{} } -func (m *ArtifactConsumer) String() string { return proto.CompactTextString(m) } -func (*ArtifactConsumer) ProtoMessage() {} -func (*ArtifactConsumer) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{19} -} - -func (m *ArtifactConsumer) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactConsumer.Unmarshal(m, b) -} -func (m *ArtifactConsumer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactConsumer.Marshal(b, m, deterministic) -} -func (m *ArtifactConsumer) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactConsumer.Merge(m, src) -} -func (m *ArtifactConsumer) XXX_Size() int { - return xxx_messageInfo_ArtifactConsumer.Size(m) -} -func (m *ArtifactConsumer) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactConsumer.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactConsumer proto.InternalMessageInfo - -func (m *ArtifactConsumer) GetEntityId() *core.Identifier { - if m != nil { - return m.EntityId - } - return nil -} - -func (m *ArtifactConsumer) GetInputs() *core.ParameterMap { - if m != nil { - return m.Inputs - } - return nil -} - -type RegisterConsumerRequest struct { - Consumers []*ArtifactConsumer `protobuf:"bytes,1,rep,name=consumers,proto3" json:"consumers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterConsumerRequest) Reset() { *m = RegisterConsumerRequest{} } -func (m *RegisterConsumerRequest) String() string { return proto.CompactTextString(m) } -func (*RegisterConsumerRequest) ProtoMessage() {} -func (*RegisterConsumerRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{20} -} - -func (m *RegisterConsumerRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterConsumerRequest.Unmarshal(m, b) -} -func (m *RegisterConsumerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterConsumerRequest.Marshal(b, m, deterministic) -} -func (m *RegisterConsumerRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterConsumerRequest.Merge(m, src) -} -func (m *RegisterConsumerRequest) XXX_Size() int { - return xxx_messageInfo_RegisterConsumerRequest.Size(m) -} -func (m *RegisterConsumerRequest) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterConsumerRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterConsumerRequest proto.InternalMessageInfo - -func (m *RegisterConsumerRequest) GetConsumers() []*ArtifactConsumer { - if m != nil { - return m.Consumers - } - return nil -} - -type RegisterResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegisterResponse) Reset() { *m = RegisterResponse{} } -func (m *RegisterResponse) String() string { return proto.CompactTextString(m) } -func (*RegisterResponse) ProtoMessage() {} -func (*RegisterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{21} -} - -func (m *RegisterResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RegisterResponse.Unmarshal(m, b) -} -func (m *RegisterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RegisterResponse.Marshal(b, m, deterministic) -} -func (m *RegisterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegisterResponse.Merge(m, src) -} -func (m *RegisterResponse) XXX_Size() int { - return xxx_messageInfo_RegisterResponse.Size(m) -} -func (m *RegisterResponse) XXX_DiscardUnknown() { - xxx_messageInfo_RegisterResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_RegisterResponse proto.InternalMessageInfo - -type ExecutionInputsRequest struct { - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - // can make this a map in the future, currently no need. - Inputs []*core.ArtifactID `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionInputsRequest) Reset() { *m = ExecutionInputsRequest{} } -func (m *ExecutionInputsRequest) String() string { return proto.CompactTextString(m) } -func (*ExecutionInputsRequest) ProtoMessage() {} -func (*ExecutionInputsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{22} -} - -func (m *ExecutionInputsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionInputsRequest.Unmarshal(m, b) -} -func (m *ExecutionInputsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionInputsRequest.Marshal(b, m, deterministic) -} -func (m *ExecutionInputsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionInputsRequest.Merge(m, src) -} -func (m *ExecutionInputsRequest) XXX_Size() int { - return xxx_messageInfo_ExecutionInputsRequest.Size(m) -} -func (m *ExecutionInputsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionInputsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionInputsRequest proto.InternalMessageInfo - -func (m *ExecutionInputsRequest) GetExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -func (m *ExecutionInputsRequest) GetInputs() []*core.ArtifactID { - if m != nil { - return m.Inputs - } - return nil -} - -type ExecutionInputsResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionInputsResponse) Reset() { *m = ExecutionInputsResponse{} } -func (m *ExecutionInputsResponse) String() string { return proto.CompactTextString(m) } -func (*ExecutionInputsResponse) ProtoMessage() {} -func (*ExecutionInputsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_804518da5936dedb, []int{23} -} - -func (m *ExecutionInputsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionInputsResponse.Unmarshal(m, b) -} -func (m *ExecutionInputsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionInputsResponse.Marshal(b, m, deterministic) -} -func (m *ExecutionInputsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionInputsResponse.Merge(m, src) -} -func (m *ExecutionInputsResponse) XXX_Size() int { - return xxx_messageInfo_ExecutionInputsResponse.Size(m) -} -func (m *ExecutionInputsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionInputsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionInputsResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("flyteidl.artifact.FindByWorkflowExecRequest_Direction", FindByWorkflowExecRequest_Direction_name, FindByWorkflowExecRequest_Direction_value) - proto.RegisterType((*Artifact)(nil), "flyteidl.artifact.Artifact") - proto.RegisterType((*CreateArtifactRequest)(nil), "flyteidl.artifact.CreateArtifactRequest") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.artifact.CreateArtifactRequest.PartitionsEntry") - proto.RegisterType((*ArtifactSource)(nil), "flyteidl.artifact.ArtifactSource") - proto.RegisterType((*ArtifactSpec)(nil), "flyteidl.artifact.ArtifactSpec") - proto.RegisterType((*CreateArtifactResponse)(nil), "flyteidl.artifact.CreateArtifactResponse") - proto.RegisterType((*GetArtifactRequest)(nil), "flyteidl.artifact.GetArtifactRequest") - proto.RegisterType((*GetArtifactResponse)(nil), "flyteidl.artifact.GetArtifactResponse") - proto.RegisterType((*SearchOptions)(nil), "flyteidl.artifact.SearchOptions") - proto.RegisterType((*SearchArtifactsRequest)(nil), "flyteidl.artifact.SearchArtifactsRequest") - proto.RegisterType((*SearchArtifactsResponse)(nil), "flyteidl.artifact.SearchArtifactsResponse") - proto.RegisterType((*FindByWorkflowExecRequest)(nil), "flyteidl.artifact.FindByWorkflowExecRequest") - proto.RegisterType((*AddTagRequest)(nil), "flyteidl.artifact.AddTagRequest") - proto.RegisterType((*AddTagResponse)(nil), "flyteidl.artifact.AddTagResponse") - proto.RegisterType((*CreateTriggerRequest)(nil), "flyteidl.artifact.CreateTriggerRequest") - proto.RegisterType((*CreateTriggerResponse)(nil), "flyteidl.artifact.CreateTriggerResponse") - proto.RegisterType((*DeleteTriggerRequest)(nil), "flyteidl.artifact.DeleteTriggerRequest") - proto.RegisterType((*DeleteTriggerResponse)(nil), "flyteidl.artifact.DeleteTriggerResponse") - proto.RegisterType((*ArtifactProducer)(nil), "flyteidl.artifact.ArtifactProducer") - proto.RegisterType((*RegisterProducerRequest)(nil), "flyteidl.artifact.RegisterProducerRequest") - proto.RegisterType((*ArtifactConsumer)(nil), "flyteidl.artifact.ArtifactConsumer") - proto.RegisterType((*RegisterConsumerRequest)(nil), "flyteidl.artifact.RegisterConsumerRequest") - proto.RegisterType((*RegisterResponse)(nil), "flyteidl.artifact.RegisterResponse") - proto.RegisterType((*ExecutionInputsRequest)(nil), "flyteidl.artifact.ExecutionInputsRequest") - proto.RegisterType((*ExecutionInputsResponse)(nil), "flyteidl.artifact.ExecutionInputsResponse") -} - -func init() { proto.RegisterFile("flyteidl/artifact/artifacts.proto", fileDescriptor_804518da5936dedb) } - -var fileDescriptor_804518da5936dedb = []byte{ - // 1635 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xcb, 0x6f, 0xdb, 0x46, - 0x1a, 0x37, 0x2d, 0x59, 0xb2, 0x3e, 0x59, 0x8e, 0x3d, 0xf1, 0xda, 0xb2, 0x92, 0xdd, 0x28, 0xcc, - 0x3e, 0x9c, 0x6c, 0x56, 0x44, 0x9c, 0x45, 0x36, 0x0e, 0x90, 0x45, 0x9d, 0x38, 0x2d, 0x54, 0xe7, - 0xe1, 0xd0, 0x4e, 0x1f, 0x46, 0x50, 0x75, 0x44, 0x8e, 0x65, 0xc6, 0x14, 0xc9, 0x0c, 0x47, 0x76, - 0x89, 0x20, 0x48, 0x51, 0xa0, 0xa7, 0x1e, 0x7b, 0x6a, 0xd1, 0xa2, 0x39, 0xf5, 0xd8, 0x43, 0x81, - 0x00, 0xfd, 0x1b, 0x7a, 0x6d, 0x81, 0x5e, 0x7a, 0xec, 0x3f, 0x51, 0xf4, 0x52, 0x70, 0xc8, 0xe1, - 0x43, 0xa2, 0x64, 0x3b, 0xe9, 0xa1, 0x37, 0xce, 0x37, 0xbf, 0xef, 0x39, 0xdf, 0x4b, 0x82, 0xb3, - 0x3b, 0xa6, 0xc7, 0x88, 0xa1, 0x9b, 0x0a, 0xa6, 0xcc, 0xd8, 0xc1, 0x1a, 0x8b, 0x3e, 0xdc, 0x86, - 0x43, 0x6d, 0x66, 0xa3, 0x59, 0x01, 0x69, 0x88, 0x9b, 0xda, 0x62, 0xc7, 0xb6, 0x3b, 0x26, 0x51, - 0x38, 0xa0, 0xdd, 0xdb, 0x51, 0xb0, 0xe5, 0x05, 0xe8, 0xda, 0xe9, 0xf0, 0x0a, 0x3b, 0x86, 0x82, - 0x2d, 0xcb, 0x66, 0x98, 0x19, 0xb6, 0x15, 0xca, 0xaa, 0xd5, 0x63, 0x75, 0x7a, 0xd7, 0xb0, 0x14, - 0x13, 0xf7, 0x2c, 0x6d, 0xb7, 0xe5, 0x98, 0xd8, 0x12, 0xfc, 0x11, 0x42, 0xb3, 0x29, 0x51, 0x4c, - 0x83, 0x11, 0x8a, 0x4d, 0xc1, 0xbf, 0x98, 0xbe, 0x65, 0x9e, 0x43, 0xc4, 0xd5, 0xdf, 0xd2, 0x57, - 0x86, 0x4e, 0x2c, 0x66, 0xec, 0x18, 0x84, 0x86, 0xf7, 0x67, 0xd2, 0xf7, 0xc2, 0x97, 0x96, 0xa1, - 0x87, 0x80, 0xbf, 0xf6, 0x09, 0xb0, 0x18, 0xa1, 0x3b, 0x58, 0x23, 0x03, 0xa6, 0x93, 0x7d, 0x62, - 0x31, 0x45, 0x33, 0xed, 0x9e, 0xce, 0x3f, 0x43, 0x0b, 0xe4, 0xef, 0x25, 0x98, 0x5c, 0x0d, 0xc5, - 0xa2, 0x6b, 0x50, 0x4e, 0xa8, 0xa8, 0x4a, 0x75, 0x69, 0xa9, 0xbc, 0xbc, 0xd8, 0x88, 0x62, 0xe9, - 0xeb, 0x68, 0x08, 0x74, 0x73, 0x4d, 0x05, 0x81, 0x6e, 0xea, 0xe8, 0x32, 0xe4, 0x5d, 0x87, 0x68, - 0xd5, 0x71, 0xce, 0x74, 0xa6, 0x31, 0xf0, 0x00, 0x11, 0xe3, 0xa6, 0x43, 0x34, 0x95, 0x83, 0x11, - 0x82, 0x3c, 0xc3, 0x1d, 0xb7, 0x9a, 0xab, 0xe7, 0x96, 0x4a, 0x2a, 0xff, 0x46, 0x2b, 0x50, 0x70, - 0xed, 0x1e, 0xd5, 0x48, 0x35, 0xcf, 0x45, 0x9d, 0x1d, 0x25, 0x8a, 0x03, 0xd5, 0x90, 0x41, 0xfe, - 0x24, 0x07, 0x7f, 0xb9, 0x49, 0x09, 0x66, 0x44, 0x00, 0x54, 0xf2, 0xb8, 0x47, 0x5c, 0x86, 0xae, - 0xc3, 0x54, 0xe4, 0xd9, 0x1e, 0xf1, 0x42, 0xd7, 0x6a, 0x43, 0x5c, 0x5b, 0x27, 0x9e, 0x1a, 0x45, - 0x62, 0x9d, 0x78, 0xa8, 0x0a, 0xc5, 0x7d, 0x42, 0x5d, 0xc3, 0xb6, 0xaa, 0xb9, 0xba, 0xb4, 0x54, - 0x52, 0xc5, 0xf1, 0xe5, 0xdc, 0x7e, 0x07, 0xc0, 0xf1, 0xef, 0x79, 0x96, 0x55, 0xf3, 0xf5, 0xdc, - 0x52, 0x79, 0xf9, 0x6a, 0x06, 0x6b, 0xa6, 0x2f, 0x8d, 0x8d, 0x88, 0xf5, 0x96, 0xc5, 0xa8, 0xa7, - 0x26, 0x64, 0xa1, 0x19, 0xc8, 0x31, 0xdc, 0xa9, 0x4e, 0x70, 0x23, 0xfd, 0xcf, 0x44, 0x38, 0x0b, - 0xc7, 0x0c, 0x67, 0xed, 0x3a, 0x9c, 0xe8, 0xd3, 0xe5, 0xcb, 0x17, 0xe1, 0x2b, 0xa9, 0xfe, 0x27, - 0x9a, 0x83, 0x89, 0x7d, 0x6c, 0xf6, 0x08, 0x8f, 0x40, 0x49, 0x0d, 0x0e, 0xd7, 0xc6, 0xaf, 0x4a, - 0xf2, 0x6f, 0x12, 0x4c, 0xa7, 0x25, 0xa3, 0x77, 0x01, 0x1d, 0xd8, 0x74, 0x6f, 0xc7, 0xb4, 0x0f, - 0x5a, 0xe4, 0x03, 0xa2, 0xf5, 0x7c, 0xd1, 0xe1, 0x63, 0x5c, 0xe8, 0x7b, 0x8c, 0xb7, 0x43, 0xe0, - 0x2d, 0x81, 0x6b, 0x46, 0xd5, 0xa1, 0xce, 0x1e, 0xf4, 0x5f, 0xa2, 0x05, 0x28, 0x5a, 0xb6, 0x4e, - 0xfc, 0xbc, 0x0d, 0x2c, 0x29, 0xf8, 0xc7, 0xa6, 0x8e, 0x96, 0xa1, 0xc8, 0xb0, 0xbb, 0xe7, 0x5f, - 0xe4, 0x32, 0x13, 0x3a, 0x21, 0xb7, 0xe0, 0x23, 0x9b, 0x3a, 0x3a, 0x07, 0x15, 0x4a, 0x18, 0xf5, - 0x5a, 0x98, 0x31, 0xd2, 0x75, 0x18, 0x4f, 0xc5, 0x8a, 0x3a, 0xc5, 0x89, 0xab, 0x01, 0x0d, 0x9d, - 0x86, 0x92, 0x43, 0x0d, 0x4b, 0x33, 0x1c, 0x6c, 0x86, 0x11, 0x8f, 0x09, 0xf2, 0xaf, 0x12, 0x4c, - 0x25, 0x9f, 0x1e, 0x5d, 0x14, 0x81, 0x0a, 0xdc, 0x9d, 0xef, 0xb3, 0xe2, 0x76, 0xd0, 0x34, 0xc2, - 0x00, 0xa2, 0x06, 0xe4, 0xfd, 0x46, 0x11, 0xe6, 0x55, 0x2d, 0x1b, 0xbc, 0xe5, 0x39, 0x44, 0xe5, - 0x38, 0xf4, 0x6f, 0x98, 0x75, 0x77, 0x6d, 0xca, 0x5a, 0x3a, 0x71, 0x35, 0x6a, 0x38, 0x2c, 0xce, - 0xd5, 0x19, 0x7e, 0xb1, 0x16, 0xd3, 0xd1, 0x0a, 0x54, 0x7a, 0x2e, 0xa1, 0xad, 0x2e, 0x61, 0x58, - 0xc7, 0x0c, 0x87, 0x95, 0x36, 0xd7, 0x08, 0xfa, 0x60, 0x43, 0xb4, 0xc8, 0xc6, 0xaa, 0xe5, 0xa9, - 0x53, 0x3e, 0xf4, 0x4e, 0x88, 0xf4, 0x23, 0x23, 0xb8, 0x5a, 0xdc, 0xc0, 0xc0, 0xf1, 0x29, 0x41, - 0xf4, 0x4d, 0x92, 0xef, 0xc3, 0x7c, 0x7f, 0xea, 0xba, 0x8e, 0x6d, 0xb9, 0x04, 0xfd, 0x0f, 0x26, - 0x45, 0xd6, 0x85, 0x71, 0x38, 0x35, 0x22, 0x1f, 0xd5, 0x08, 0x2c, 0xb7, 0x01, 0xbd, 0x41, 0x58, - 0x7f, 0x59, 0x2f, 0xc3, 0xc4, 0xe3, 0x1e, 0xa1, 0xa2, 0x9e, 0x4f, 0x0f, 0xa9, 0xe7, 0xfb, 0x3e, - 0x46, 0x0d, 0xa0, 0x7e, 0x2d, 0xeb, 0x84, 0x61, 0xc3, 0x74, 0x79, 0x70, 0x27, 0x55, 0x71, 0x94, - 0xef, 0xc2, 0xc9, 0x94, 0x8e, 0x57, 0xb5, 0xf9, 0x7d, 0xa8, 0x6c, 0x12, 0x4c, 0xb5, 0xdd, 0x7b, - 0x4e, 0x50, 0x9d, 0xfe, 0x23, 0x31, 0x6a, 0x68, 0xac, 0x95, 0x28, 0x7f, 0x89, 0x1b, 0x31, 0x13, - 0x5c, 0xc4, 0xf5, 0x86, 0x64, 0xa8, 0x98, 0x98, 0x11, 0x97, 0xb5, 0xda, 0x1e, 0xef, 0x59, 0x81, - 0xb5, 0xe5, 0x80, 0x78, 0xc3, 0x5b, 0x27, 0x9e, 0xfc, 0xed, 0x38, 0xcc, 0x07, 0x2a, 0x84, 0x7a, - 0xf7, 0x0f, 0xea, 0x78, 0x2b, 0xa9, 0x16, 0x35, 0x9e, 0x59, 0x38, 0xb1, 0xb1, 0xa9, 0x1e, 0x94, - 0xaa, 0x8b, 0x5c, 0x5f, 0x5d, 0x24, 0x5b, 0x69, 0x3e, 0xdd, 0x4a, 0xaf, 0x41, 0xd1, 0x0e, 0x02, - 0xc5, 0x93, 0xaa, 0xbc, 0x5c, 0xcf, 0x08, 0x73, 0x2a, 0xa0, 0xaa, 0x60, 0xf0, 0xbb, 0x10, 0xb3, - 0xf7, 0x88, 0xc5, 0x9b, 0x5c, 0x49, 0x0d, 0x0e, 0x3e, 0xd5, 0x34, 0xba, 0x06, 0xab, 0x16, 0xeb, - 0xd2, 0xd2, 0x84, 0x1a, 0x1c, 0xe4, 0x47, 0xb0, 0x30, 0x10, 0xb3, 0xf0, 0xa9, 0x57, 0xa0, 0x14, - 0x6d, 0x12, 0x55, 0x89, 0xf7, 0xe5, 0x91, 0x6f, 0x1d, 0xa3, 0x63, 0x0b, 0xc6, 0x13, 0x16, 0xc8, - 0x3f, 0x4b, 0xb0, 0xf8, 0xba, 0x61, 0xe9, 0x37, 0xbc, 0x64, 0x3b, 0x13, 0x6f, 0x74, 0x13, 0x8a, - 0x7e, 0x17, 0x8c, 0x67, 0xed, 0x71, 0x7a, 0x60, 0xc1, 0x67, 0x6d, 0xea, 0x68, 0x0b, 0x4a, 0xba, - 0x41, 0x89, 0xc6, 0x2b, 0xde, 0x57, 0x3e, 0xbd, 0x7c, 0x25, 0xc3, 0xe6, 0xa1, 0x56, 0x34, 0xd6, - 0x04, 0xb7, 0x1a, 0x0b, 0x92, 0xff, 0x0e, 0xa5, 0x88, 0x8e, 0x00, 0x0a, 0xcd, 0xbb, 0x1b, 0x0f, - 0xb6, 0x36, 0x67, 0xc6, 0x50, 0x19, 0x8a, 0xf7, 0x1e, 0x6c, 0xf1, 0x83, 0x24, 0x3f, 0x83, 0xca, - 0xaa, 0xae, 0x6f, 0xe1, 0x8e, 0xf0, 0xe8, 0x55, 0x36, 0x88, 0xcc, 0x49, 0xe2, 0x67, 0x93, 0xbd, - 0x4f, 0xe8, 0x01, 0x35, 0x18, 0xe1, 0xd9, 0x34, 0xa9, 0xc6, 0x04, 0x79, 0x06, 0xa6, 0x85, 0x01, - 0xc1, 0x13, 0xca, 0x6d, 0x98, 0x0b, 0x7a, 0xcf, 0x16, 0x35, 0x3a, 0x1d, 0x42, 0x85, 0x65, 0x6f, - 0xc2, 0x49, 0x16, 0x50, 0x5a, 0x89, 0x05, 0x6e, 0xb0, 0x2c, 0xf8, 0x8e, 0xd7, 0xb8, 0xcd, 0x21, - 0x1b, 0x26, 0xb6, 0xd4, 0xd9, 0x90, 0x2d, 0x26, 0xc9, 0x0b, 0x62, 0xcd, 0x88, 0x74, 0x84, 0xca, - 0x37, 0x60, 0x6e, 0x8d, 0x98, 0x64, 0x40, 0xf9, 0x55, 0x00, 0xa1, 0x7c, 0x68, 0x54, 0x12, 0x4f, - 0x5b, 0x0a, 0xc1, 0x4d, 0xdd, 0x57, 0xd5, 0x27, 0x31, 0x54, 0xf5, 0xa1, 0x04, 0x33, 0x22, 0x90, - 0x1b, 0xd4, 0xd6, 0x7b, 0x1a, 0xa1, 0xe8, 0x0a, 0x94, 0x7c, 0x21, 0xcc, 0x3b, 0x92, 0x9a, 0xc9, - 0x00, 0xdb, 0xd4, 0xd1, 0x7f, 0xa1, 0x68, 0xf7, 0x98, 0xd3, 0x63, 0xee, 0x90, 0x81, 0xf3, 0x16, - 0xa6, 0x06, 0x6e, 0x9b, 0xe4, 0x0e, 0x76, 0x54, 0x01, 0x95, 0x1f, 0xc2, 0x82, 0x4a, 0x3a, 0x86, - 0xcb, 0x08, 0x15, 0x16, 0x08, 0x87, 0x57, 0xfd, 0x1e, 0x10, 0x90, 0x44, 0x21, 0x9d, 0x1b, 0x51, - 0x48, 0x11, 0x7b, 0xcc, 0x25, 0x3f, 0x8b, 0xfd, 0xbb, 0x69, 0x5b, 0x6e, 0xaf, 0xfb, 0x0a, 0xfe, - 0x5d, 0x86, 0x82, 0x61, 0x25, 0xdc, 0x3b, 0x35, 0xd8, 0xc9, 0x70, 0x97, 0x30, 0x42, 0x7d, 0xff, - 0x42, 0x68, 0xd2, 0x3d, 0x61, 0x40, 0xc2, 0x3d, 0x2d, 0x24, 0x1d, 0xc5, 0xbd, 0x88, 0x3d, 0xe6, - 0x92, 0x11, 0xcc, 0x08, 0xe9, 0xd1, 0x9b, 0x7e, 0x2e, 0xc1, 0x7c, 0x5c, 0xea, 0xdc, 0x0a, 0xa1, - 0xf1, 0x0e, 0x4c, 0x45, 0x0b, 0xd3, 0xcb, 0xf5, 0x8b, 0x32, 0x89, 0x89, 0xe8, 0x52, 0x22, 0x20, - 0xb9, 0xd1, 0x25, 0x2a, 0xc2, 0xb1, 0x08, 0x0b, 0x03, 0xb6, 0x05, 0x76, 0x2f, 0xff, 0x34, 0x1d, - 0xbf, 0x55, 0xe0, 0x14, 0xf5, 0x50, 0x07, 0xa6, 0xd3, 0x4b, 0x00, 0x5a, 0x3a, 0xea, 0x8a, 0x5b, - 0x3b, 0x7f, 0x04, 0x64, 0x18, 0xb3, 0x31, 0xf4, 0xf1, 0x04, 0x94, 0x13, 0x73, 0x1b, 0xfd, 0x23, - 0x83, 0x79, 0x70, 0x77, 0xa8, 0xfd, 0xf3, 0x30, 0x58, 0xa8, 0xe0, 0xeb, 0xfc, 0x47, 0x3f, 0xfc, - 0xf2, 0xe9, 0xf8, 0x57, 0x79, 0x54, 0x8f, 0x7f, 0x66, 0xf2, 0x9f, 0x8a, 0xfb, 0x97, 0x14, 0x7f, - 0xe5, 0x89, 0xa9, 0xdb, 0xdf, 0x49, 0xe8, 0x85, 0x74, 0x08, 0x4a, 0x31, 0x74, 0xe5, 0x09, 0x5f, - 0x45, 0x1a, 0xc9, 0xdf, 0x73, 0xc9, 0x61, 0xed, 0x2f, 0x60, 0x8f, 0x88, 0xc6, 0x9e, 0x1e, 0x0a, - 0xd4, 0xed, 0x2e, 0x36, 0xac, 0xc3, 0x71, 0x16, 0xee, 0x92, 0x4c, 0x54, 0x38, 0x7c, 0x9f, 0x6e, - 0x7f, 0x21, 0xa1, 0xcf, 0xfe, 0xbc, 0xa6, 0x6f, 0x3f, 0x97, 0xd0, 0x97, 0x87, 0x9a, 0xc7, 0x70, - 0x67, 0x40, 0x1c, 0xc3, 0x9d, 0x23, 0x1a, 0x38, 0x80, 0x1c, 0x66, 0xe1, 0x00, 0x90, 0x9b, 0x88, - 0x9e, 0x8f, 0xc3, 0x89, 0xbe, 0xc5, 0x02, 0x9d, 0x1f, 0xba, 0xc2, 0xf4, 0x2f, 0x6c, 0xb5, 0x0b, - 0x47, 0x81, 0x86, 0x39, 0xf9, 0x42, 0xe2, 0x39, 0xf9, 0x8d, 0x84, 0x5a, 0x43, 0x62, 0xc2, 0x4d, - 0x56, 0x5c, 0xe5, 0xc9, 0x10, 0xdf, 0xb3, 0x1d, 0xcd, 0x08, 0xfc, 0x3a, 0x6a, 0x8e, 0x54, 0x71, - 0x1c, 0x05, 0x48, 0x87, 0x4a, 0x6a, 0x70, 0xa2, 0x7f, 0x0d, 0x2d, 0xf4, 0xf4, 0x04, 0xad, 0x2d, - 0x1d, 0x0e, 0x8c, 0x1a, 0x82, 0x0e, 0x95, 0xd4, 0xcc, 0xcc, 0xd4, 0x92, 0x35, 0xa7, 0x33, 0xb5, - 0x64, 0x8f, 0xdf, 0x31, 0x74, 0x0f, 0x0a, 0xc1, 0xea, 0x81, 0xb2, 0xf6, 0xd4, 0xd4, 0x5a, 0x54, - 0x3b, 0x3b, 0x02, 0x11, 0x09, 0x24, 0xf1, 0x44, 0x88, 0x06, 0x7a, 0x56, 0x52, 0x0c, 0x99, 0xb9, - 0xb5, 0x73, 0x23, 0xb0, 0xd9, 0x6a, 0xa2, 0xb9, 0x3a, 0x4a, 0x4d, 0xdf, 0xec, 0x3b, 0xaa, 0x9a, - 0x2e, 0xa0, 0x4d, 0xc2, 0xfa, 0x26, 0x46, 0x66, 0x3d, 0x64, 0x4f, 0xbc, 0xcc, 0x7a, 0x18, 0x32, - 0x80, 0xe4, 0x31, 0xf4, 0xa3, 0x04, 0x68, 0x70, 0xc5, 0x45, 0x17, 0x8f, 0xb3, 0x09, 0x1f, 0xab, - 0x04, 0x75, 0x5e, 0x81, 0xef, 0xa1, 0x87, 0x23, 0xab, 0x83, 0x28, 0x4f, 0xc2, 0x0d, 0x3f, 0x51, - 0x1a, 0x82, 0x12, 0x95, 0x9d, 0x20, 0x84, 0x5d, 0x3a, 0xda, 0xc2, 0x9f, 0xde, 0x78, 0x6d, 0xfb, - 0xff, 0x1d, 0x83, 0xed, 0xf6, 0xda, 0x0d, 0xcd, 0xee, 0x2a, 0xdc, 0x3a, 0x9b, 0x76, 0x82, 0x0f, - 0x25, 0xfa, 0x73, 0xaf, 0x43, 0x2c, 0xc5, 0x69, 0xff, 0xa7, 0x63, 0x2b, 0x03, 0xff, 0x8c, 0xb6, - 0x0b, 0xfc, 0xc7, 0xfc, 0xe5, 0xdf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x8a, 0xd7, 0x3b, 0x35, - 0x15, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ArtifactRegistryClient is the client API for ArtifactRegistry service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ArtifactRegistryClient interface { - CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) - GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) - SearchArtifacts(ctx context.Context, in *SearchArtifactsRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) - CreateTrigger(ctx context.Context, in *CreateTriggerRequest, opts ...grpc.CallOption) (*CreateTriggerResponse, error) - DeleteTrigger(ctx context.Context, in *DeleteTriggerRequest, opts ...grpc.CallOption) (*DeleteTriggerResponse, error) - AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) - RegisterProducer(ctx context.Context, in *RegisterProducerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) - RegisterConsumer(ctx context.Context, in *RegisterConsumerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) - SetExecutionInputs(ctx context.Context, in *ExecutionInputsRequest, opts ...grpc.CallOption) (*ExecutionInputsResponse, error) - FindByWorkflowExec(ctx context.Context, in *FindByWorkflowExecRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) -} - -type artifactRegistryClient struct { - cc *grpc.ClientConn -} - -func NewArtifactRegistryClient(cc *grpc.ClientConn) ArtifactRegistryClient { - return &artifactRegistryClient{cc} -} - -func (c *artifactRegistryClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { - out := new(CreateArtifactResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/CreateArtifact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { - out := new(GetArtifactResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/GetArtifact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) SearchArtifacts(ctx context.Context, in *SearchArtifactsRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) { - out := new(SearchArtifactsResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) CreateTrigger(ctx context.Context, in *CreateTriggerRequest, opts ...grpc.CallOption) (*CreateTriggerResponse, error) { - out := new(CreateTriggerResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/CreateTrigger", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) DeleteTrigger(ctx context.Context, in *DeleteTriggerRequest, opts ...grpc.CallOption) (*DeleteTriggerResponse, error) { - out := new(DeleteTriggerResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/DeleteTrigger", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { - out := new(AddTagResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/AddTag", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) RegisterProducer(ctx context.Context, in *RegisterProducerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) { - out := new(RegisterResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/RegisterProducer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) RegisterConsumer(ctx context.Context, in *RegisterConsumerRequest, opts ...grpc.CallOption) (*RegisterResponse, error) { - out := new(RegisterResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) SetExecutionInputs(ctx context.Context, in *ExecutionInputsRequest, opts ...grpc.CallOption) (*ExecutionInputsResponse, error) { - out := new(ExecutionInputsResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *artifactRegistryClient) FindByWorkflowExec(ctx context.Context, in *FindByWorkflowExecRequest, opts ...grpc.CallOption) (*SearchArtifactsResponse, error) { - out := new(SearchArtifactsResponse) - err := c.cc.Invoke(ctx, "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ArtifactRegistryServer is the server API for ArtifactRegistry service. -type ArtifactRegistryServer interface { - CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) - GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) - SearchArtifacts(context.Context, *SearchArtifactsRequest) (*SearchArtifactsResponse, error) - CreateTrigger(context.Context, *CreateTriggerRequest) (*CreateTriggerResponse, error) - DeleteTrigger(context.Context, *DeleteTriggerRequest) (*DeleteTriggerResponse, error) - AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) - RegisterProducer(context.Context, *RegisterProducerRequest) (*RegisterResponse, error) - RegisterConsumer(context.Context, *RegisterConsumerRequest) (*RegisterResponse, error) - SetExecutionInputs(context.Context, *ExecutionInputsRequest) (*ExecutionInputsResponse, error) - FindByWorkflowExec(context.Context, *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) -} - -// UnimplementedArtifactRegistryServer can be embedded to have forward compatible implementations. -type UnimplementedArtifactRegistryServer struct { -} - -func (*UnimplementedArtifactRegistryServer) CreateArtifact(ctx context.Context, req *CreateArtifactRequest) (*CreateArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") -} -func (*UnimplementedArtifactRegistryServer) GetArtifact(ctx context.Context, req *GetArtifactRequest) (*GetArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") -} -func (*UnimplementedArtifactRegistryServer) SearchArtifacts(ctx context.Context, req *SearchArtifactsRequest) (*SearchArtifactsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SearchArtifacts not implemented") -} -func (*UnimplementedArtifactRegistryServer) CreateTrigger(ctx context.Context, req *CreateTriggerRequest) (*CreateTriggerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTrigger not implemented") -} -func (*UnimplementedArtifactRegistryServer) DeleteTrigger(ctx context.Context, req *DeleteTriggerRequest) (*DeleteTriggerResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTrigger not implemented") -} -func (*UnimplementedArtifactRegistryServer) AddTag(ctx context.Context, req *AddTagRequest) (*AddTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") -} -func (*UnimplementedArtifactRegistryServer) RegisterProducer(ctx context.Context, req *RegisterProducerRequest) (*RegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterProducer not implemented") -} -func (*UnimplementedArtifactRegistryServer) RegisterConsumer(ctx context.Context, req *RegisterConsumerRequest) (*RegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterConsumer not implemented") -} -func (*UnimplementedArtifactRegistryServer) SetExecutionInputs(ctx context.Context, req *ExecutionInputsRequest) (*ExecutionInputsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetExecutionInputs not implemented") -} -func (*UnimplementedArtifactRegistryServer) FindByWorkflowExec(ctx context.Context, req *FindByWorkflowExecRequest) (*SearchArtifactsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method FindByWorkflowExec not implemented") -} - -func RegisterArtifactRegistryServer(s *grpc.Server, srv ArtifactRegistryServer) { - s.RegisterService(&_ArtifactRegistry_serviceDesc, srv) -} - -func _ArtifactRegistry_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).CreateArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/CreateArtifact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).GetArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/GetArtifact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).GetArtifact(ctx, req.(*GetArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_SearchArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(SearchArtifactsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).SearchArtifacts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).SearchArtifacts(ctx, req.(*SearchArtifactsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_CreateTrigger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateTriggerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).CreateTrigger(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/CreateTrigger", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).CreateTrigger(ctx, req.(*CreateTriggerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_DeleteTrigger_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(DeleteTriggerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).DeleteTrigger(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/DeleteTrigger", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).DeleteTrigger(ctx, req.(*DeleteTriggerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).AddTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/AddTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).AddTag(ctx, req.(*AddTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_RegisterProducer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterProducerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).RegisterProducer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/RegisterProducer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).RegisterProducer(ctx, req.(*RegisterProducerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_RegisterConsumer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RegisterConsumerRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).RegisterConsumer(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).RegisterConsumer(ctx, req.(*RegisterConsumerRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_SetExecutionInputs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecutionInputsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).SetExecutionInputs(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).SetExecutionInputs(ctx, req.(*ExecutionInputsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ArtifactRegistry_FindByWorkflowExec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(FindByWorkflowExecRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ArtifactRegistryServer).FindByWorkflowExec(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ArtifactRegistryServer).FindByWorkflowExec(ctx, req.(*FindByWorkflowExecRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ArtifactRegistry_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.artifact.ArtifactRegistry", - HandlerType: (*ArtifactRegistryServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateArtifact", - Handler: _ArtifactRegistry_CreateArtifact_Handler, - }, - { - MethodName: "GetArtifact", - Handler: _ArtifactRegistry_GetArtifact_Handler, - }, - { - MethodName: "SearchArtifacts", - Handler: _ArtifactRegistry_SearchArtifacts_Handler, - }, - { - MethodName: "CreateTrigger", - Handler: _ArtifactRegistry_CreateTrigger_Handler, - }, - { - MethodName: "DeleteTrigger", - Handler: _ArtifactRegistry_DeleteTrigger_Handler, - }, - { - MethodName: "AddTag", - Handler: _ArtifactRegistry_AddTag_Handler, - }, - { - MethodName: "RegisterProducer", - Handler: _ArtifactRegistry_RegisterProducer_Handler, - }, - { - MethodName: "RegisterConsumer", - Handler: _ArtifactRegistry_RegisterConsumer_Handler, - }, - { - MethodName: "SetExecutionInputs", - Handler: _ArtifactRegistry_SetExecutionInputs_Handler, - }, - { - MethodName: "FindByWorkflowExec", - Handler: _ArtifactRegistry_FindByWorkflowExec_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/artifact/artifacts.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go deleted file mode 100644 index b6e603f774..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.pb.gw.go +++ /dev/null @@ -1,636 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/artifact/artifacts.proto - -/* -Package artifact is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package artifact - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -var ( - filter_ArtifactRegistry_GetArtifact_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_ArtifactRegistry_GetArtifact_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArtifactRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_GetArtifact_1 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_id": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5, "version": 6}, Base: []int{1, 13, 1, 1, 1, 4, 3, 2, 0, 0, 9, 7, 6, 0, 9, 9, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 5, 8, 2, 11, 12, 13, 2, 15, 16}} -) - -func request_ArtifactRegistry_GetArtifact_1(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArtifactRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["query.artifact_id.artifact_key.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.project", err) - } - - val, ok = pathParams["query.artifact_id.artifact_key.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.domain", err) - } - - val, ok = pathParams["query.artifact_id.artifact_key.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.name", err) - } - - val, ok = pathParams["query.artifact_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_GetArtifact_2 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_id": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 9, 1, 1, 1, 4, 4, 0, 3, 0, 9, 7, 7, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 5, 7, 9, 2, 11, 12, 13}} -) - -func request_ArtifactRegistry_GetArtifact_2(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArtifactRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["query.artifact_id.artifact_key.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.project", err) - } - - val, ok = pathParams["query.artifact_id.artifact_key.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.domain", err) - } - - val, ok = pathParams["query.artifact_id.artifact_key.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_id.artifact_key.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_id.artifact_key.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_id.artifact_key.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_2); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_GetArtifact_3 = &utilities.DoubleArray{Encoding: map[string]int{"query": 0, "artifact_tag": 1, "artifact_key": 2, "project": 3, "domain": 4, "name": 5}, Base: []int{1, 9, 1, 1, 1, 4, 4, 0, 3, 0, 9, 7, 7, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 5, 7, 9, 2, 11, 12, 13}} -) - -func request_ArtifactRegistry_GetArtifact_3(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetArtifactRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["query.artifact_tag.artifact_key.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.project", err) - } - - val, ok = pathParams["query.artifact_tag.artifact_key.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.domain", err) - } - - val, ok = pathParams["query.artifact_tag.artifact_key.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "query.artifact_tag.artifact_key.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "query.artifact_tag.artifact_key.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "query.artifact_tag.artifact_key.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_GetArtifact_3); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetArtifact(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_SearchArtifacts_0 = &utilities.DoubleArray{Encoding: map[string]int{"artifact_key": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_ArtifactRegistry_SearchArtifacts_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SearchArtifactsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["artifact_key.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.project", err) - } - - val, ok = pathParams["artifact_key.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.domain", err) - } - - val, ok = pathParams["artifact_key.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_SearchArtifacts_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_SearchArtifacts_1 = &utilities.DoubleArray{Encoding: map[string]int{"artifact_key": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} -) - -func request_ArtifactRegistry_SearchArtifacts_1(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq SearchArtifactsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["artifact_key.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.project", err) - } - - val, ok = pathParams["artifact_key.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "artifact_key.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "artifact_key.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "artifact_key.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_SearchArtifacts_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SearchArtifacts(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_ArtifactRegistry_FindByWorkflowExec_0 = &utilities.DoubleArray{Encoding: map[string]int{"exec_id": 0, "project": 1, "domain": 2, "name": 3, "direction": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 1, 3, 4, 5, 6}} -) - -func request_ArtifactRegistry_FindByWorkflowExec_0(ctx context.Context, marshaler runtime.Marshaler, client ArtifactRegistryClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq FindByWorkflowExecRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["exec_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.project", err) - } - - val, ok = pathParams["exec_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.domain", err) - } - - val, ok = pathParams["exec_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "exec_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "exec_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "exec_id.name", err) - } - - val, ok = pathParams["direction"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "direction") - } - - e, err = runtime.Enum(val, FindByWorkflowExecRequest_Direction_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "direction", err) - } - - protoReq.Direction = FindByWorkflowExecRequest_Direction(e) - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_ArtifactRegistry_FindByWorkflowExec_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.FindByWorkflowExec(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterArtifactRegistryHandlerFromEndpoint is same as RegisterArtifactRegistryHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterArtifactRegistryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterArtifactRegistryHandler(ctx, mux, conn) -} - -// RegisterArtifactRegistryHandler registers the http handlers for service ArtifactRegistry to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterArtifactRegistryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterArtifactRegistryHandlerClient(ctx, mux, NewArtifactRegistryClient(conn)) -} - -// RegisterArtifactRegistryHandlerClient registers the http handlers for service ArtifactRegistry -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ArtifactRegistryClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ArtifactRegistryClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "ArtifactRegistryClient" to call the correct interceptors. -func RegisterArtifactRegistryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactRegistryClient) error { - - mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_GetArtifact_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_GetArtifact_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_GetArtifact_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_GetArtifact_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_2, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_GetArtifact_2(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_GetArtifact_2(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_GetArtifact_3, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_GetArtifact_3(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_GetArtifact_3(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_SearchArtifacts_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_SearchArtifacts_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_SearchArtifacts_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_SearchArtifacts_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_SearchArtifacts_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_SearchArtifacts_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_ArtifactRegistry_FindByWorkflowExec_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_ArtifactRegistry_FindByWorkflowExec_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_ArtifactRegistry_FindByWorkflowExec_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_ArtifactRegistry_GetArtifact_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 0}, []string{"artifacts", "api", "v1", "data"}, "")) - - pattern_ArtifactRegistry_GetArtifact_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9}, []string{"artifacts", "api", "v1", "data", "artifact", "id", "query.artifact_id.artifact_key.project", "query.artifact_id.artifact_key.domain", "query.artifact_id.artifact_key.name", "query.artifact_id.version"}, "")) - - pattern_ArtifactRegistry_GetArtifact_2 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8}, []string{"artifacts", "api", "v1", "data", "artifact", "id", "query.artifact_id.artifact_key.project", "query.artifact_id.artifact_key.domain", "query.artifact_id.artifact_key.name"}, "")) - - pattern_ArtifactRegistry_GetArtifact_3 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8}, []string{"artifacts", "api", "v1", "data", "artifact", "tag", "query.artifact_tag.artifact_key.project", "query.artifact_tag.artifact_key.domain", "query.artifact_tag.artifact_key.name"}, "")) - - pattern_ArtifactRegistry_SearchArtifacts_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8}, []string{"artifacts", "api", "v1", "data", "query", "s", "artifact_key.project", "artifact_key.domain", "artifact_key.name"}, "")) - - pattern_ArtifactRegistry_SearchArtifacts_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"artifacts", "api", "v1", "data", "query", "artifact_key.project", "artifact_key.domain"}, "")) - - pattern_ArtifactRegistry_FindByWorkflowExec_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9}, []string{"artifacts", "api", "v1", "data", "query", "e", "exec_id.project", "exec_id.domain", "exec_id.name", "direction"}, "")) -) - -var ( - forward_ArtifactRegistry_GetArtifact_0 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_GetArtifact_1 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_GetArtifact_2 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_GetArtifact_3 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_SearchArtifacts_0 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_SearchArtifacts_1 = runtime.ForwardResponseMessage - - forward_ArtifactRegistry_FindByWorkflowExec_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json b/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json deleted file mode 100644 index 8617ff5fee..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/artifact/artifacts.swagger.json +++ /dev/null @@ -1,2117 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/artifact/artifacts.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}": { - "get": { - "operationId": "GetArtifact3", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactGetArtifactResponse" - } - } - }, - "parameters": [ - { - "name": "query.artifact_id.artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.version", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.static_value", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.artifact_tag.value.triggered_binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.input_binding.var", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.uri", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "details", - "description": "If false, then long_description is not returned.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}": { - "get": { - "operationId": "GetArtifact2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactGetArtifactResponse" - } - } - }, - "parameters": [ - { - "name": "query.artifact_id.artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.version", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_tag.value.static_value", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.artifact_tag.value.triggered_binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.input_binding.var", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.uri", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "details", - "description": "If false, then long_description is not returned.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}": { - "get": { - "operationId": "GetArtifact4", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactGetArtifactResponse" - } - } - }, - "parameters": [ - { - "name": "query.artifact_tag.artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_tag.artifact_key.domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_tag.artifact_key.name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "query.artifact_id.version", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.static_value", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.artifact_tag.value.triggered_binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.input_binding.var", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.uri", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "details", - "description": "If false, then long_description is not returned.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/artifacts": { - "get": { - "operationId": "GetArtifact", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactGetArtifactResponse" - } - } - }, - "parameters": [ - { - "name": "query.artifact_id.artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.domain", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_id.artifact_key.name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_id.version", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.artifact_key.domain", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.artifact_key.name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.static_value", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.artifact_tag.value.triggered_binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.triggered_binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.artifact_tag.value.input_binding.var", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.uri", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.index", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "query.binding.partition_key", - "description": "These two fields are only relevant in the partition value case.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "query.binding.transform", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "details", - "description": "If false, then long_description is not returned.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}": { - "get": { - "operationId": "FindByWorkflowExec", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactSearchArtifactsResponse" - } - } - }, - "parameters": [ - { - "name": "exec_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "exec_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "exec_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "direction", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "INPUTS", - "OUTPUTS" - ] - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}": { - "get": { - "operationId": "SearchArtifacts", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactSearchArtifactsResponse" - } - } - }, - "parameters": [ - { - "name": "artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "artifact_key.domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "artifact_key.name", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "principal", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "version", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "options.strict_partitions", - "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - }, - { - "name": "options.latest_by_key", - "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - }, - "/artifacts/api/v1/data/query/{artifact_key.project}/{artifact_key.domain}": { - "get": { - "operationId": "SearchArtifacts2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/artifactSearchArtifactsResponse" - } - } - }, - "parameters": [ - { - "name": "artifact_key.project", - "description": "Project and domain and suffix needs to be unique across a given artifact store.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "artifact_key.domain", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "artifact_key.name", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "principal", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "version", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "options.strict_partitions", - "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - }, - { - "name": "options.latest_by_key", - "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time.", - "in": "query", - "required": false, - "type": "boolean", - "format": "boolean" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "ArtifactRegistry" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "QualityOfServiceTier": { - "type": "string", - "enum": [ - "UNDEFINED", - "HIGH", - "MEDIUM", - "LOW" - ], - "default": "UNDEFINED", - "description": " - UNDEFINED: Default: no quality of service specified." - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "adminAnnotations": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom annotations to be applied to the execution resource." - } - }, - "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." - }, - "adminAuth": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminAuthRole": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminCronSchedule": { - "type": "object", - "properties": { - "schedule": { - "type": "string", - "title": "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\nAlso supports nonstandard predefined scheduling definitions\nas described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\nexcept @reboot" - }, - "offset": { - "type": "string", - "title": "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" - } - }, - "description": "Options for schedules to run according to a cron expression." - }, - "adminEmailNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The list of email addresses recipients for this notification.\n+required" - } - }, - "description": "Defines an email notification specification." - }, - "adminEnvs": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Map of custom environment variables to be applied to the execution resource." - } - }, - "description": "Environment variable values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge environment variables defined at registration and execution time." - }, - "adminFixedRate": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - }, - "unit": { - "$ref": "#/definitions/adminFixedRateUnit" - } - }, - "description": "Option for schedules run at a certain frequency e.g. every 2 minutes." - }, - "adminFixedRateUnit": { - "type": "string", - "enum": [ - "MINUTE", - "HOUR", - "DAY" - ], - "default": "MINUTE", - "description": "Represents a frequency at which to run a schedule." - }, - "adminLabels": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom labels to be applied to the execution resource." - } - }, - "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." - }, - "adminLaunchPlan": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Uniquely identifies a launch plan entity." - }, - "spec": { - "$ref": "#/definitions/adminLaunchPlanSpec", - "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." - }, - "closure": { - "$ref": "#/definitions/adminLaunchPlanClosure", - "description": "Values computed by the flyte platform after launch plan registration." - } - }, - "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." - }, - "adminLaunchPlanClosure": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/adminLaunchPlanState", - "description": "Indicate the Launch plan state." - }, - "expected_inputs": { - "$ref": "#/definitions/coreParameterMap", - "title": "Indicates the set of inputs expected when creating an execution with the Launch plan" - }, - "expected_outputs": { - "$ref": "#/definitions/coreVariableMap", - "title": "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was last updated." - } - }, - "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." - }, - "adminLaunchPlanMetadata": { - "type": "object", - "properties": { - "schedule": { - "$ref": "#/definitions/adminSchedule", - "title": "Schedule to execute the Launch Plan" - }, - "notifications": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNotification" - }, - "title": "List of notifications based on Execution status transitions" - }, - "launch_conditions": { - "$ref": "#/definitions/protobufAny", - "title": "Additional metadata for how to launch the launch plan" - } - }, - "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." - }, - "adminLaunchPlanSpec": { - "type": "object", - "properties": { - "workflow_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "Reference to the Workflow template that the launch plan references" - }, - "entity_metadata": { - "$ref": "#/definitions/adminLaunchPlanMetadata", - "title": "Metadata for the Launch Plan" - }, - "default_inputs": { - "$ref": "#/definitions/coreParameterMap", - "description": "Input values to be passed for the execution.\nThese can be overridden when an execution is created with this launch plan." - }, - "fixed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Fixed, non-overridable inputs for the Launch Plan.\nThese can not be overridden when an execution is created with this launch plan." - }, - "role": { - "type": "string", - "title": "String to indicate the role to use to execute the workflow underneath" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Custom labels to be applied to the execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Custom annotations to be applied to the execution resource." - }, - "auth": { - "$ref": "#/definitions/adminAuth", - "description": "Indicates the permission associated with workflow executions triggered with this launch plan." - }, - "auth_role": { - "$ref": "#/definitions/adminAuthRole" - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "title": "Indicates security context for permissions triggered with this launch plan" - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of the execution." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." - }, - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." - }, - "interruptible": { - "type": "boolean", - "format": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "format": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - } - }, - "description": "User-provided launch plan definition and configuration values." - }, - "adminLaunchPlanState": { - "type": "string", - "enum": [ - "INACTIVE", - "ACTIVE" - ], - "default": "INACTIVE", - "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." - }, - "adminNotification": { - "type": "object", - "properties": { - "phases": { - "type": "array", - "items": { - "$ref": "#/definitions/coreWorkflowExecutionPhase" - }, - "title": "A list of phases to which users can associate the notifications to.\n+required" - }, - "email": { - "$ref": "#/definitions/adminEmailNotification" - }, - "pager_duty": { - "$ref": "#/definitions/adminPagerDutyNotification" - }, - "slack": { - "$ref": "#/definitions/adminSlackNotification" - } - }, - "description": "Represents a structure for notifications based on execution status.\nThe notification content is configured within flyte admin but can be templatized.\nFuture iterations could expose configuring notifications with custom content." - }, - "adminPagerDutyNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, PagerDuty notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a pager duty notification specification." - }, - "adminRawOutputDataConfig": { - "type": "object", - "properties": { - "output_location_prefix": { - "type": "string", - "title": "Prefix for where offloaded data from user workflows will be written\ne.g. s3://bucket/key or s3://bucket/" - } - }, - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211 for more background information." - }, - "adminSchedule": { - "type": "object", - "properties": { - "cron_expression": { - "type": "string", - "title": "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\ne.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" - }, - "rate": { - "$ref": "#/definitions/adminFixedRate" - }, - "cron_schedule": { - "$ref": "#/definitions/adminCronSchedule" - }, - "kickoff_time_input_arg": { - "type": "string", - "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." - } - }, - "description": "Defines complete set of information required to trigger an execution on a schedule." - }, - "adminSlackNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, Slack notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a slack notification specification." - }, - "artifactAddTagResponse": { - "type": "object" - }, - "artifactArtifact": { - "type": "object", - "properties": { - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - }, - "spec": { - "$ref": "#/definitions/artifactArtifactSpec" - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "title": "references the tag field in ArtifactTag" - }, - "source": { - "$ref": "#/definitions/artifactArtifactSource" - } - } - }, - "artifactArtifactConsumer": { - "type": "object", - "properties": { - "entity_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "These should all be launch plan IDs" - }, - "inputs": { - "$ref": "#/definitions/coreParameterMap" - } - } - }, - "artifactArtifactProducer": { - "type": "object", - "properties": { - "entity_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in\nAdmin's domain." - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - } - }, - "artifactArtifactSource": { - "type": "object", - "properties": { - "workflow_execution": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - }, - "node_id": { - "type": "string" - }, - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - }, - "principal": { - "type": "string", - "description": "Uploads, either from the UI or from the CLI, or FlyteRemote, will have this." - } - } - }, - "artifactArtifactSpec": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but\nforgets to change the name, that is okay. And the reason why this is a separate field is because adding the\ntype to all Literals is a lot of work." - }, - "short_description": { - "type": "string" - }, - "user_metadata": { - "$ref": "#/definitions/protobufAny", - "title": "Additional user metadata" - }, - "metadata_type": { - "type": "string" - } - } - }, - "artifactCreateArtifactResponse": { - "type": "object", - "properties": { - "artifact": { - "$ref": "#/definitions/artifactArtifact" - } - } - }, - "artifactCreateTriggerResponse": { - "type": "object" - }, - "artifactDeleteTriggerResponse": { - "type": "object" - }, - "artifactExecutionInputsResponse": { - "type": "object" - }, - "artifactFindByWorkflowExecRequestDirection": { - "type": "string", - "enum": [ - "INPUTS", - "OUTPUTS" - ], - "default": "INPUTS" - }, - "artifactGetArtifactResponse": { - "type": "object", - "properties": { - "artifact": { - "$ref": "#/definitions/artifactArtifact" - } - } - }, - "artifactRegisterResponse": { - "type": "object" - }, - "artifactSearchArtifactsResponse": { - "type": "object", - "properties": { - "artifacts": { - "type": "array", - "items": { - "$ref": "#/definitions/artifactArtifact" - }, - "description": "If artifact specs are not requested, the resultant artifacts may be empty." - }, - "token": { - "type": "string", - "description": "continuation token if relevant." - } - } - }, - "artifactSearchOptions": { - "type": "object", - "properties": { - "strict_partitions": { - "type": "boolean", - "format": "boolean", - "description": "If true, this means a strict partition search. meaning if you don't specify the partition\nfield, that will mean, non-partitioned, rather than any partition." - }, - "latest_by_key": { - "type": "boolean", - "format": "boolean", - "description": "If true, only one artifact per key will be returned. It will be the latest one by creation time." - } - } - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string", - "title": "These two fields are only relevant in the partition value case" - }, - "transform": { - "type": "string" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions" - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "coreArtifactQuery": { - "type": "object", - "properties": { - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - }, - "uri": { - "type": "string" - }, - "binding": { - "$ref": "#/definitions/coreArtifactBindingData", - "description": "This is used in the trigger case, where a user specifies a value for an input that is one of the triggering\nartifacts, or a partition value derived from a triggering artifact." - } - }, - "title": "Uniqueness constraints for Artifacts\n - project, domain, name, version, partitions\nOption 2 (tags are standalone, point to an individual artifact id):\n - project, domain, name, alias (points to one partition if partitioned)\n - project, domain, name, partition key, partition value" - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "coreParameter": { - "type": "object", - "properties": { - "var": { - "$ref": "#/definitions/coreVariable", - "description": "+required Variable. Defines the type of the variable backing this parameter." - }, - "default": { - "$ref": "#/definitions/coreLiteral", - "description": "Defines a default value that has to match the variable type defined." - }, - "required": { - "type": "boolean", - "format": "boolean", - "description": "+optional, is this value required to be filled." - }, - "artifact_query": { - "$ref": "#/definitions/coreArtifactQuery", - "description": "This is an execution time search basically that should result in exactly one Artifact with a Type that\nmatches the type of the variable." - }, - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - } - }, - "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." - }, - "coreParameterMap": { - "type": "object", - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreParameter" - }, - "description": "Defines a map of parameter names to parameters." - } - }, - "description": "A map of Parameters." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreQualityOfService": { - "type": "object", - "properties": { - "tier": { - "$ref": "#/definitions/QualityOfServiceTier" - }, - "spec": { - "$ref": "#/definitions/coreQualityOfServiceSpec" - } - }, - "description": "Indicates the priority of an execution." - }, - "coreQualityOfServiceSpec": { - "type": "object", - "properties": { - "queueing_budget": { - "type": "string", - "description": "Indicates how much queueing delay an execution can tolerate." - } - }, - "description": "Represents customized execution run-time attributes." - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "coreWorkflowExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDING", - "SUCCEEDED", - "FAILING", - "FAILED", - "ABORTED", - "TIMED_OUT", - "ABORTING" - ], - "default": "UNDEFINED" - }, - "protobufAny": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - }, - "value": { - "type": "string", - "format": "byte", - "description": "Must be a valid serialized protocol buffer of the above specified type." - } - }, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go b/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go deleted file mode 100644 index bf7ba4679f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.pb.go +++ /dev/null @@ -1,665 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/artifact_id.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type ArtifactKey struct { - // Project and domain and suffix needs to be unique across a given artifact store. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactKey) Reset() { *m = ArtifactKey{} } -func (m *ArtifactKey) String() string { return proto.CompactTextString(m) } -func (*ArtifactKey) ProtoMessage() {} -func (*ArtifactKey) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{0} -} - -func (m *ArtifactKey) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactKey.Unmarshal(m, b) -} -func (m *ArtifactKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactKey.Marshal(b, m, deterministic) -} -func (m *ArtifactKey) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactKey.Merge(m, src) -} -func (m *ArtifactKey) XXX_Size() int { - return xxx_messageInfo_ArtifactKey.Size(m) -} -func (m *ArtifactKey) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactKey.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactKey proto.InternalMessageInfo - -func (m *ArtifactKey) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *ArtifactKey) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *ArtifactKey) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Only valid for triggers -type ArtifactBindingData struct { - Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` - // These two fields are only relevant in the partition value case - PartitionKey string `protobuf:"bytes,2,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` - Transform string `protobuf:"bytes,3,opt,name=transform,proto3" json:"transform,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactBindingData) Reset() { *m = ArtifactBindingData{} } -func (m *ArtifactBindingData) String() string { return proto.CompactTextString(m) } -func (*ArtifactBindingData) ProtoMessage() {} -func (*ArtifactBindingData) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{1} -} - -func (m *ArtifactBindingData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactBindingData.Unmarshal(m, b) -} -func (m *ArtifactBindingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactBindingData.Marshal(b, m, deterministic) -} -func (m *ArtifactBindingData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactBindingData.Merge(m, src) -} -func (m *ArtifactBindingData) XXX_Size() int { - return xxx_messageInfo_ArtifactBindingData.Size(m) -} -func (m *ArtifactBindingData) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactBindingData.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactBindingData proto.InternalMessageInfo - -func (m *ArtifactBindingData) GetIndex() uint32 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *ArtifactBindingData) GetPartitionKey() string { - if m != nil { - return m.PartitionKey - } - return "" -} - -func (m *ArtifactBindingData) GetTransform() string { - if m != nil { - return m.Transform - } - return "" -} - -type InputBindingData struct { - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *InputBindingData) Reset() { *m = InputBindingData{} } -func (m *InputBindingData) String() string { return proto.CompactTextString(m) } -func (*InputBindingData) ProtoMessage() {} -func (*InputBindingData) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{2} -} - -func (m *InputBindingData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_InputBindingData.Unmarshal(m, b) -} -func (m *InputBindingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_InputBindingData.Marshal(b, m, deterministic) -} -func (m *InputBindingData) XXX_Merge(src proto.Message) { - xxx_messageInfo_InputBindingData.Merge(m, src) -} -func (m *InputBindingData) XXX_Size() int { - return xxx_messageInfo_InputBindingData.Size(m) -} -func (m *InputBindingData) XXX_DiscardUnknown() { - xxx_messageInfo_InputBindingData.DiscardUnknown(m) -} - -var xxx_messageInfo_InputBindingData proto.InternalMessageInfo - -func (m *InputBindingData) GetVar() string { - if m != nil { - return m.Var - } - return "" -} - -type LabelValue struct { - // Types that are valid to be assigned to Value: - // *LabelValue_StaticValue - // *LabelValue_TriggeredBinding - // *LabelValue_InputBinding - Value isLabelValue_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LabelValue) Reset() { *m = LabelValue{} } -func (m *LabelValue) String() string { return proto.CompactTextString(m) } -func (*LabelValue) ProtoMessage() {} -func (*LabelValue) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{3} -} - -func (m *LabelValue) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LabelValue.Unmarshal(m, b) -} -func (m *LabelValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LabelValue.Marshal(b, m, deterministic) -} -func (m *LabelValue) XXX_Merge(src proto.Message) { - xxx_messageInfo_LabelValue.Merge(m, src) -} -func (m *LabelValue) XXX_Size() int { - return xxx_messageInfo_LabelValue.Size(m) -} -func (m *LabelValue) XXX_DiscardUnknown() { - xxx_messageInfo_LabelValue.DiscardUnknown(m) -} - -var xxx_messageInfo_LabelValue proto.InternalMessageInfo - -type isLabelValue_Value interface { - isLabelValue_Value() -} - -type LabelValue_StaticValue struct { - StaticValue string `protobuf:"bytes,1,opt,name=static_value,json=staticValue,proto3,oneof"` -} - -type LabelValue_TriggeredBinding struct { - TriggeredBinding *ArtifactBindingData `protobuf:"bytes,2,opt,name=triggered_binding,json=triggeredBinding,proto3,oneof"` -} - -type LabelValue_InputBinding struct { - InputBinding *InputBindingData `protobuf:"bytes,3,opt,name=input_binding,json=inputBinding,proto3,oneof"` -} - -func (*LabelValue_StaticValue) isLabelValue_Value() {} - -func (*LabelValue_TriggeredBinding) isLabelValue_Value() {} - -func (*LabelValue_InputBinding) isLabelValue_Value() {} - -func (m *LabelValue) GetValue() isLabelValue_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *LabelValue) GetStaticValue() string { - if x, ok := m.GetValue().(*LabelValue_StaticValue); ok { - return x.StaticValue - } - return "" -} - -func (m *LabelValue) GetTriggeredBinding() *ArtifactBindingData { - if x, ok := m.GetValue().(*LabelValue_TriggeredBinding); ok { - return x.TriggeredBinding - } - return nil -} - -func (m *LabelValue) GetInputBinding() *InputBindingData { - if x, ok := m.GetValue().(*LabelValue_InputBinding); ok { - return x.InputBinding - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*LabelValue) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*LabelValue_StaticValue)(nil), - (*LabelValue_TriggeredBinding)(nil), - (*LabelValue_InputBinding)(nil), - } -} - -type Partitions struct { - Value map[string]*LabelValue `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Partitions) Reset() { *m = Partitions{} } -func (m *Partitions) String() string { return proto.CompactTextString(m) } -func (*Partitions) ProtoMessage() {} -func (*Partitions) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{4} -} - -func (m *Partitions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Partitions.Unmarshal(m, b) -} -func (m *Partitions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Partitions.Marshal(b, m, deterministic) -} -func (m *Partitions) XXX_Merge(src proto.Message) { - xxx_messageInfo_Partitions.Merge(m, src) -} -func (m *Partitions) XXX_Size() int { - return xxx_messageInfo_Partitions.Size(m) -} -func (m *Partitions) XXX_DiscardUnknown() { - xxx_messageInfo_Partitions.DiscardUnknown(m) -} - -var xxx_messageInfo_Partitions proto.InternalMessageInfo - -func (m *Partitions) GetValue() map[string]*LabelValue { - if m != nil { - return m.Value - } - return nil -} - -type ArtifactID struct { - ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - // Think of a partition as a tag on an Artifact, except it's a key-value pair. - // Different partitions naturally have different versions (execution ids). - // This is a oneof because of partition querying... we need a way to distinguish between - // a user not-specifying partitions when searching, and specifically searching for an Artifact - // that is not partitioned (this can happen if an Artifact goes from partitioned to non- - // partitioned across executions). - // - // Types that are valid to be assigned to Dimensions: - // *ArtifactID_Partitions - Dimensions isArtifactID_Dimensions `protobuf_oneof:"dimensions"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactID) Reset() { *m = ArtifactID{} } -func (m *ArtifactID) String() string { return proto.CompactTextString(m) } -func (*ArtifactID) ProtoMessage() {} -func (*ArtifactID) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{5} -} - -func (m *ArtifactID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactID.Unmarshal(m, b) -} -func (m *ArtifactID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactID.Marshal(b, m, deterministic) -} -func (m *ArtifactID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactID.Merge(m, src) -} -func (m *ArtifactID) XXX_Size() int { - return xxx_messageInfo_ArtifactID.Size(m) -} -func (m *ArtifactID) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactID.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactID proto.InternalMessageInfo - -func (m *ArtifactID) GetArtifactKey() *ArtifactKey { - if m != nil { - return m.ArtifactKey - } - return nil -} - -func (m *ArtifactID) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -type isArtifactID_Dimensions interface { - isArtifactID_Dimensions() -} - -type ArtifactID_Partitions struct { - Partitions *Partitions `protobuf:"bytes,3,opt,name=partitions,proto3,oneof"` -} - -func (*ArtifactID_Partitions) isArtifactID_Dimensions() {} - -func (m *ArtifactID) GetDimensions() isArtifactID_Dimensions { - if m != nil { - return m.Dimensions - } - return nil -} - -func (m *ArtifactID) GetPartitions() *Partitions { - if x, ok := m.GetDimensions().(*ArtifactID_Partitions); ok { - return x.Partitions - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ArtifactID) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ArtifactID_Partitions)(nil), - } -} - -type ArtifactTag struct { - ArtifactKey *ArtifactKey `protobuf:"bytes,1,opt,name=artifact_key,json=artifactKey,proto3" json:"artifact_key,omitempty"` - Value *LabelValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactTag) Reset() { *m = ArtifactTag{} } -func (m *ArtifactTag) String() string { return proto.CompactTextString(m) } -func (*ArtifactTag) ProtoMessage() {} -func (*ArtifactTag) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{6} -} - -func (m *ArtifactTag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactTag.Unmarshal(m, b) -} -func (m *ArtifactTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactTag.Marshal(b, m, deterministic) -} -func (m *ArtifactTag) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactTag.Merge(m, src) -} -func (m *ArtifactTag) XXX_Size() int { - return xxx_messageInfo_ArtifactTag.Size(m) -} -func (m *ArtifactTag) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactTag.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactTag proto.InternalMessageInfo - -func (m *ArtifactTag) GetArtifactKey() *ArtifactKey { - if m != nil { - return m.ArtifactKey - } - return nil -} - -func (m *ArtifactTag) GetValue() *LabelValue { - if m != nil { - return m.Value - } - return nil -} - -// Uniqueness constraints for Artifacts -// - project, domain, name, version, partitions -// Option 2 (tags are standalone, point to an individual artifact id): -// - project, domain, name, alias (points to one partition if partitioned) -// - project, domain, name, partition key, partition value -type ArtifactQuery struct { - // Types that are valid to be assigned to Identifier: - // *ArtifactQuery_ArtifactId - // *ArtifactQuery_ArtifactTag - // *ArtifactQuery_Uri - // *ArtifactQuery_Binding - Identifier isArtifactQuery_Identifier `protobuf_oneof:"identifier"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactQuery) Reset() { *m = ArtifactQuery{} } -func (m *ArtifactQuery) String() string { return proto.CompactTextString(m) } -func (*ArtifactQuery) ProtoMessage() {} -func (*ArtifactQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{7} -} - -func (m *ArtifactQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactQuery.Unmarshal(m, b) -} -func (m *ArtifactQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactQuery.Marshal(b, m, deterministic) -} -func (m *ArtifactQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactQuery.Merge(m, src) -} -func (m *ArtifactQuery) XXX_Size() int { - return xxx_messageInfo_ArtifactQuery.Size(m) -} -func (m *ArtifactQuery) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactQuery proto.InternalMessageInfo - -type isArtifactQuery_Identifier interface { - isArtifactQuery_Identifier() -} - -type ArtifactQuery_ArtifactId struct { - ArtifactId *ArtifactID `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type ArtifactQuery_ArtifactTag struct { - ArtifactTag *ArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3,oneof"` -} - -type ArtifactQuery_Uri struct { - Uri string `protobuf:"bytes,3,opt,name=uri,proto3,oneof"` -} - -type ArtifactQuery_Binding struct { - Binding *ArtifactBindingData `protobuf:"bytes,4,opt,name=binding,proto3,oneof"` -} - -func (*ArtifactQuery_ArtifactId) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_ArtifactTag) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_Uri) isArtifactQuery_Identifier() {} - -func (*ArtifactQuery_Binding) isArtifactQuery_Identifier() {} - -func (m *ArtifactQuery) GetIdentifier() isArtifactQuery_Identifier { - if m != nil { - return m.Identifier - } - return nil -} - -func (m *ArtifactQuery) GetArtifactId() *ArtifactID { - if x, ok := m.GetIdentifier().(*ArtifactQuery_ArtifactId); ok { - return x.ArtifactId - } - return nil -} - -func (m *ArtifactQuery) GetArtifactTag() *ArtifactTag { - if x, ok := m.GetIdentifier().(*ArtifactQuery_ArtifactTag); ok { - return x.ArtifactTag - } - return nil -} - -func (m *ArtifactQuery) GetUri() string { - if x, ok := m.GetIdentifier().(*ArtifactQuery_Uri); ok { - return x.Uri - } - return "" -} - -func (m *ArtifactQuery) GetBinding() *ArtifactBindingData { - if x, ok := m.GetIdentifier().(*ArtifactQuery_Binding); ok { - return x.Binding - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ArtifactQuery) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ArtifactQuery_ArtifactId)(nil), - (*ArtifactQuery_ArtifactTag)(nil), - (*ArtifactQuery_Uri)(nil), - (*ArtifactQuery_Binding)(nil), - } -} - -type Trigger struct { - // This will be set to a launch plan type, but note that this is different than the actual launch plan type. - TriggerId *Identifier `protobuf:"bytes,1,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"` - // These are partial artifact IDs that will be triggered on - // Consider making these ArtifactQuery instead. - Triggers []*ArtifactID `protobuf:"bytes,2,rep,name=triggers,proto3" json:"triggers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Trigger) Reset() { *m = Trigger{} } -func (m *Trigger) String() string { return proto.CompactTextString(m) } -func (*Trigger) ProtoMessage() {} -func (*Trigger) Descriptor() ([]byte, []int) { - return fileDescriptor_1079b0707e23f978, []int{8} -} - -func (m *Trigger) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Trigger.Unmarshal(m, b) -} -func (m *Trigger) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Trigger.Marshal(b, m, deterministic) -} -func (m *Trigger) XXX_Merge(src proto.Message) { - xxx_messageInfo_Trigger.Merge(m, src) -} -func (m *Trigger) XXX_Size() int { - return xxx_messageInfo_Trigger.Size(m) -} -func (m *Trigger) XXX_DiscardUnknown() { - xxx_messageInfo_Trigger.DiscardUnknown(m) -} - -var xxx_messageInfo_Trigger proto.InternalMessageInfo - -func (m *Trigger) GetTriggerId() *Identifier { - if m != nil { - return m.TriggerId - } - return nil -} - -func (m *Trigger) GetTriggers() []*ArtifactID { - if m != nil { - return m.Triggers - } - return nil -} - -func init() { - proto.RegisterType((*ArtifactKey)(nil), "flyteidl.core.ArtifactKey") - proto.RegisterType((*ArtifactBindingData)(nil), "flyteidl.core.ArtifactBindingData") - proto.RegisterType((*InputBindingData)(nil), "flyteidl.core.InputBindingData") - proto.RegisterType((*LabelValue)(nil), "flyteidl.core.LabelValue") - proto.RegisterType((*Partitions)(nil), "flyteidl.core.Partitions") - proto.RegisterMapType((map[string]*LabelValue)(nil), "flyteidl.core.Partitions.ValueEntry") - proto.RegisterType((*ArtifactID)(nil), "flyteidl.core.ArtifactID") - proto.RegisterType((*ArtifactTag)(nil), "flyteidl.core.ArtifactTag") - proto.RegisterType((*ArtifactQuery)(nil), "flyteidl.core.ArtifactQuery") - proto.RegisterType((*Trigger)(nil), "flyteidl.core.Trigger") -} - -func init() { proto.RegisterFile("flyteidl/core/artifact_id.proto", fileDescriptor_1079b0707e23f978) } - -var fileDescriptor_1079b0707e23f978 = []byte{ - // 612 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc1, 0x6e, 0xd3, 0x4c, - 0x10, 0x8e, 0x9b, 0xb6, 0xf9, 0x3b, 0x4e, 0xa4, 0xfe, 0x0b, 0x42, 0x4e, 0x84, 0x68, 0xe5, 0xf6, - 0xd0, 0x0b, 0xb6, 0x14, 0x84, 0x54, 0x85, 0x02, 0x22, 0x0a, 0x28, 0x56, 0x39, 0x50, 0x37, 0xe2, - 0xc0, 0x25, 0xda, 0xc4, 0x1b, 0xb3, 0x34, 0x59, 0x47, 0xeb, 0x4d, 0x84, 0x91, 0x78, 0x14, 0xde, - 0x81, 0x97, 0xe1, 0x3d, 0x78, 0x04, 0xb4, 0xeb, 0x5d, 0x3b, 0x89, 0xf0, 0xa1, 0xe2, 0xb6, 0x33, - 0xf9, 0xe6, 0xf3, 0x37, 0x5f, 0x66, 0x06, 0x4e, 0x66, 0xf3, 0x4c, 0x10, 0x1a, 0xcd, 0xfd, 0x69, - 0xc2, 0x89, 0x8f, 0xb9, 0xa0, 0x33, 0x3c, 0x15, 0x63, 0x1a, 0x79, 0x4b, 0x9e, 0x88, 0x04, 0xb5, - 0x0c, 0xc0, 0x93, 0x80, 0xce, 0x93, 0x6d, 0x3c, 0x8d, 0x08, 0x13, 0x74, 0x46, 0x09, 0xcf, 0xe1, - 0xee, 0x2d, 0xd8, 0x6f, 0x34, 0xc7, 0x35, 0xc9, 0x90, 0x03, 0x8d, 0x25, 0x4f, 0xbe, 0x90, 0xa9, - 0x70, 0xac, 0x53, 0xeb, 0xe2, 0x28, 0x34, 0x21, 0x7a, 0x04, 0x87, 0x51, 0xb2, 0xc0, 0x94, 0x39, - 0x7b, 0xea, 0x07, 0x1d, 0x21, 0x04, 0xfb, 0x0c, 0x2f, 0x88, 0x53, 0x57, 0x59, 0xf5, 0x76, 0x19, - 0x3c, 0x30, 0xa4, 0x7d, 0xca, 0x22, 0xca, 0xe2, 0x01, 0x16, 0x18, 0x3d, 0x84, 0x03, 0xca, 0x22, - 0xf2, 0x55, 0x51, 0xb7, 0xc2, 0x3c, 0x40, 0x67, 0xd0, 0x5a, 0xca, 0x36, 0x04, 0x4d, 0xd8, 0xf8, - 0x8e, 0x64, 0x9a, 0xbf, 0x59, 0x24, 0xa5, 0xae, 0xc7, 0x70, 0x24, 0x38, 0x66, 0xe9, 0x2c, 0xe1, - 0x0b, 0xfd, 0xa9, 0x32, 0xe1, 0x9e, 0xc3, 0x71, 0xc0, 0x96, 0xab, 0xad, 0x8f, 0x1d, 0x43, 0x7d, - 0x8d, 0xb9, 0xee, 0x42, 0x3e, 0xdd, 0x5f, 0x16, 0xc0, 0x7b, 0x3c, 0x21, 0xf3, 0x8f, 0x78, 0xbe, - 0x22, 0xe8, 0x0c, 0x9a, 0xa9, 0xc0, 0x82, 0x4e, 0xc7, 0x6b, 0x19, 0xe7, 0xc8, 0x61, 0x2d, 0xb4, - 0xf3, 0x6c, 0x0e, 0xba, 0x81, 0xff, 0x05, 0xa7, 0x71, 0x4c, 0x38, 0x89, 0xc6, 0x93, 0x9c, 0x5e, - 0x09, 0xb4, 0xbb, 0xae, 0xb7, 0xe5, 0xb4, 0xf7, 0x97, 0x8e, 0x87, 0xb5, 0xf0, 0xb8, 0x28, 0xd7, - 0x79, 0xf4, 0x0e, 0x5a, 0x54, 0x8a, 0x2d, 0xe8, 0xea, 0x8a, 0xee, 0x64, 0x87, 0x6e, 0xb7, 0xa1, - 0x61, 0x2d, 0x6c, 0xd2, 0x8d, 0x5c, 0xbf, 0x01, 0x07, 0x4a, 0xb8, 0xfb, 0xc3, 0x02, 0xf8, 0x60, - 0xcc, 0x4a, 0x51, 0x4f, 0xe7, 0x1d, 0xeb, 0xb4, 0x7e, 0x61, 0x77, 0xcf, 0x77, 0x78, 0x4b, 0xa4, - 0xa7, 0x5a, 0x7c, 0xcb, 0x04, 0xcf, 0xc2, 0xbc, 0xa4, 0x73, 0x0b, 0x50, 0x26, 0xa5, 0x85, 0xf2, - 0xff, 0xd0, 0x16, 0xde, 0x91, 0x0c, 0xf9, 0x86, 0x3b, 0xb7, 0xa0, 0xbd, 0xc3, 0x5d, 0xba, 0xab, - 0x09, 0x7b, 0x7b, 0x97, 0x96, 0xfb, 0xd3, 0x02, 0x30, 0xe6, 0x04, 0x03, 0xf4, 0x12, 0x9a, 0xc5, - 0xd4, 0x1a, 0x7a, 0xbb, 0xdb, 0xa9, 0x70, 0xf3, 0x9a, 0x64, 0xa1, 0x8d, 0xb7, 0x27, 0x74, 0x4d, - 0x78, 0x4a, 0x13, 0x33, 0x88, 0x26, 0x44, 0x2f, 0x00, 0x8a, 0x99, 0x49, 0xb5, 0xab, 0xed, 0xca, - 0xee, 0x87, 0xb5, 0x70, 0x03, 0xde, 0x6f, 0x02, 0x44, 0x74, 0x41, 0x98, 0x64, 0x4a, 0xdd, 0xef, - 0xe5, 0x56, 0x8c, 0x70, 0xfc, 0xaf, 0x92, 0xef, 0xeb, 0x9a, 0xfb, 0xdb, 0x82, 0x96, 0x61, 0xbb, - 0x59, 0x11, 0x9e, 0xa1, 0x2b, 0xb0, 0x37, 0x56, 0x5d, 0x0b, 0x68, 0x57, 0x08, 0x08, 0x06, 0xb2, - 0x39, 0x83, 0x0f, 0x22, 0xf4, 0x7a, 0x43, 0xbf, 0xc0, 0x66, 0x80, 0xab, 0xf4, 0x8f, 0x70, 0x2c, - 0xd7, 0x00, 0x6f, 0x18, 0x80, 0xa0, 0xbe, 0xe2, 0x34, 0x5f, 0xbc, 0x61, 0x2d, 0x94, 0x01, 0x7a, - 0x05, 0x0d, 0x33, 0xc1, 0xfb, 0xf7, 0x58, 0x08, 0x53, 0x24, 0x1d, 0x2f, 0xaf, 0x91, 0xfb, 0x0d, - 0x1a, 0xa3, 0x7c, 0x53, 0xd0, 0x25, 0x80, 0x5e, 0x9a, 0xea, 0x56, 0x83, 0xa2, 0x52, 0xde, 0x01, - 0x05, 0x0e, 0x22, 0xf4, 0x1c, 0xfe, 0xd3, 0x41, 0xea, 0xec, 0xa9, 0xe9, 0xaf, 0xb6, 0x28, 0x2c, - 0xa0, 0xfd, 0xab, 0x4f, 0xbd, 0x98, 0x8a, 0xcf, 0xab, 0x89, 0x37, 0x4d, 0x16, 0xbe, 0x2a, 0x48, - 0x78, 0x9c, 0x3f, 0xfc, 0xe2, 0x7e, 0xc6, 0x84, 0xf9, 0xcb, 0xc9, 0xd3, 0x38, 0xf1, 0xb7, 0x4e, - 0xea, 0xe4, 0x50, 0x1d, 0xd2, 0x67, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x29, 0x9b, 0xf7, 0x47, - 0x9a, 0x05, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/artifact_id.swagger.json deleted file mode 100644 index f668848aa5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/artifact_id.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/artifact_id.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go b/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go deleted file mode 100644 index 47675cbb7a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/catalog.pb.go +++ /dev/null @@ -1,319 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/catalog.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future -type CatalogCacheStatus int32 - -const ( - // Used to indicate that caching was disabled - CatalogCacheStatus_CACHE_DISABLED CatalogCacheStatus = 0 - // Used to indicate that the cache lookup resulted in no matches - CatalogCacheStatus_CACHE_MISS CatalogCacheStatus = 1 - // used to indicate that the associated artifact was a result of a previous execution - CatalogCacheStatus_CACHE_HIT CatalogCacheStatus = 2 - // used to indicate that the resultant artifact was added to the cache - CatalogCacheStatus_CACHE_POPULATED CatalogCacheStatus = 3 - // Used to indicate that cache lookup failed because of an error - CatalogCacheStatus_CACHE_LOOKUP_FAILURE CatalogCacheStatus = 4 - // Used to indicate that cache lookup failed because of an error - CatalogCacheStatus_CACHE_PUT_FAILURE CatalogCacheStatus = 5 - // Used to indicate the cache lookup was skipped - CatalogCacheStatus_CACHE_SKIPPED CatalogCacheStatus = 6 -) - -var CatalogCacheStatus_name = map[int32]string{ - 0: "CACHE_DISABLED", - 1: "CACHE_MISS", - 2: "CACHE_HIT", - 3: "CACHE_POPULATED", - 4: "CACHE_LOOKUP_FAILURE", - 5: "CACHE_PUT_FAILURE", - 6: "CACHE_SKIPPED", -} - -var CatalogCacheStatus_value = map[string]int32{ - "CACHE_DISABLED": 0, - "CACHE_MISS": 1, - "CACHE_HIT": 2, - "CACHE_POPULATED": 3, - "CACHE_LOOKUP_FAILURE": 4, - "CACHE_PUT_FAILURE": 5, - "CACHE_SKIPPED": 6, -} - -func (x CatalogCacheStatus) String() string { - return proto.EnumName(CatalogCacheStatus_name, int32(x)) -} - -func (CatalogCacheStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_534f5d1443565574, []int{0} -} - -// Indicates the status of a catalog reservation operation. -type CatalogReservation_Status int32 - -const ( - // Used to indicate that reservations are disabled - CatalogReservation_RESERVATION_DISABLED CatalogReservation_Status = 0 - // Used to indicate that a reservation was successfully acquired or extended - CatalogReservation_RESERVATION_ACQUIRED CatalogReservation_Status = 1 - // Used to indicate that an active reservation currently exists - CatalogReservation_RESERVATION_EXISTS CatalogReservation_Status = 2 - // Used to indicate that the reservation has been successfully released - CatalogReservation_RESERVATION_RELEASED CatalogReservation_Status = 3 - // Used to indicate that a reservation operation resulted in failure - CatalogReservation_RESERVATION_FAILURE CatalogReservation_Status = 4 -) - -var CatalogReservation_Status_name = map[int32]string{ - 0: "RESERVATION_DISABLED", - 1: "RESERVATION_ACQUIRED", - 2: "RESERVATION_EXISTS", - 3: "RESERVATION_RELEASED", - 4: "RESERVATION_FAILURE", -} - -var CatalogReservation_Status_value = map[string]int32{ - "RESERVATION_DISABLED": 0, - "RESERVATION_ACQUIRED": 1, - "RESERVATION_EXISTS": 2, - "RESERVATION_RELEASED": 3, - "RESERVATION_FAILURE": 4, -} - -func (x CatalogReservation_Status) String() string { - return proto.EnumName(CatalogReservation_Status_name, int32(x)) -} - -func (CatalogReservation_Status) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_534f5d1443565574, []int{2, 0} -} - -type CatalogArtifactTag struct { - // Artifact ID is generated name - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - // Flyte computes the tag automatically, as the hash of the values - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CatalogArtifactTag) Reset() { *m = CatalogArtifactTag{} } -func (m *CatalogArtifactTag) String() string { return proto.CompactTextString(m) } -func (*CatalogArtifactTag) ProtoMessage() {} -func (*CatalogArtifactTag) Descriptor() ([]byte, []int) { - return fileDescriptor_534f5d1443565574, []int{0} -} - -func (m *CatalogArtifactTag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CatalogArtifactTag.Unmarshal(m, b) -} -func (m *CatalogArtifactTag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CatalogArtifactTag.Marshal(b, m, deterministic) -} -func (m *CatalogArtifactTag) XXX_Merge(src proto.Message) { - xxx_messageInfo_CatalogArtifactTag.Merge(m, src) -} -func (m *CatalogArtifactTag) XXX_Size() int { - return xxx_messageInfo_CatalogArtifactTag.Size(m) -} -func (m *CatalogArtifactTag) XXX_DiscardUnknown() { - xxx_messageInfo_CatalogArtifactTag.DiscardUnknown(m) -} - -var xxx_messageInfo_CatalogArtifactTag proto.InternalMessageInfo - -func (m *CatalogArtifactTag) GetArtifactId() string { - if m != nil { - return m.ArtifactId - } - return "" -} - -func (m *CatalogArtifactTag) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Catalog artifact information with specific metadata -type CatalogMetadata struct { - // Dataset ID in the catalog - DatasetId *Identifier `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` - // Artifact tag in the catalog - ArtifactTag *CatalogArtifactTag `protobuf:"bytes,2,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` - // Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - // - // Types that are valid to be assigned to SourceExecution: - // *CatalogMetadata_SourceTaskExecution - SourceExecution isCatalogMetadata_SourceExecution `protobuf_oneof:"source_execution"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CatalogMetadata) Reset() { *m = CatalogMetadata{} } -func (m *CatalogMetadata) String() string { return proto.CompactTextString(m) } -func (*CatalogMetadata) ProtoMessage() {} -func (*CatalogMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_534f5d1443565574, []int{1} -} - -func (m *CatalogMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CatalogMetadata.Unmarshal(m, b) -} -func (m *CatalogMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CatalogMetadata.Marshal(b, m, deterministic) -} -func (m *CatalogMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_CatalogMetadata.Merge(m, src) -} -func (m *CatalogMetadata) XXX_Size() int { - return xxx_messageInfo_CatalogMetadata.Size(m) -} -func (m *CatalogMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_CatalogMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_CatalogMetadata proto.InternalMessageInfo - -func (m *CatalogMetadata) GetDatasetId() *Identifier { - if m != nil { - return m.DatasetId - } - return nil -} - -func (m *CatalogMetadata) GetArtifactTag() *CatalogArtifactTag { - if m != nil { - return m.ArtifactTag - } - return nil -} - -type isCatalogMetadata_SourceExecution interface { - isCatalogMetadata_SourceExecution() -} - -type CatalogMetadata_SourceTaskExecution struct { - SourceTaskExecution *TaskExecutionIdentifier `protobuf:"bytes,3,opt,name=source_task_execution,json=sourceTaskExecution,proto3,oneof"` -} - -func (*CatalogMetadata_SourceTaskExecution) isCatalogMetadata_SourceExecution() {} - -func (m *CatalogMetadata) GetSourceExecution() isCatalogMetadata_SourceExecution { - if m != nil { - return m.SourceExecution - } - return nil -} - -func (m *CatalogMetadata) GetSourceTaskExecution() *TaskExecutionIdentifier { - if x, ok := m.GetSourceExecution().(*CatalogMetadata_SourceTaskExecution); ok { - return x.SourceTaskExecution - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CatalogMetadata) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CatalogMetadata_SourceTaskExecution)(nil), - } -} - -type CatalogReservation struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CatalogReservation) Reset() { *m = CatalogReservation{} } -func (m *CatalogReservation) String() string { return proto.CompactTextString(m) } -func (*CatalogReservation) ProtoMessage() {} -func (*CatalogReservation) Descriptor() ([]byte, []int) { - return fileDescriptor_534f5d1443565574, []int{2} -} - -func (m *CatalogReservation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CatalogReservation.Unmarshal(m, b) -} -func (m *CatalogReservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CatalogReservation.Marshal(b, m, deterministic) -} -func (m *CatalogReservation) XXX_Merge(src proto.Message) { - xxx_messageInfo_CatalogReservation.Merge(m, src) -} -func (m *CatalogReservation) XXX_Size() int { - return xxx_messageInfo_CatalogReservation.Size(m) -} -func (m *CatalogReservation) XXX_DiscardUnknown() { - xxx_messageInfo_CatalogReservation.DiscardUnknown(m) -} - -var xxx_messageInfo_CatalogReservation proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("flyteidl.core.CatalogCacheStatus", CatalogCacheStatus_name, CatalogCacheStatus_value) - proto.RegisterEnum("flyteidl.core.CatalogReservation_Status", CatalogReservation_Status_name, CatalogReservation_Status_value) - proto.RegisterType((*CatalogArtifactTag)(nil), "flyteidl.core.CatalogArtifactTag") - proto.RegisterType((*CatalogMetadata)(nil), "flyteidl.core.CatalogMetadata") - proto.RegisterType((*CatalogReservation)(nil), "flyteidl.core.CatalogReservation") -} - -func init() { proto.RegisterFile("flyteidl/core/catalog.proto", fileDescriptor_534f5d1443565574) } - -var fileDescriptor_534f5d1443565574 = []byte{ - // 468 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x52, 0x4f, 0x6f, 0xd3, 0x4e, - 0x10, 0xad, 0xd3, 0xfe, 0x22, 0x65, 0xf2, 0x4b, 0xeb, 0x6e, 0x5a, 0x30, 0x20, 0xf1, 0x27, 0x07, - 0x84, 0x90, 0xb0, 0xa5, 0x72, 0x41, 0x88, 0x8b, 0x63, 0x2f, 0xca, 0xaa, 0x2e, 0x31, 0xbb, 0x36, - 0x42, 0x08, 0x29, 0xda, 0xd8, 0x1b, 0xd7, 0x6a, 0x9a, 0xad, 0xec, 0x0d, 0x82, 0x33, 0x07, 0xbe, - 0x05, 0xe2, 0xa3, 0xa2, 0x78, 0x1d, 0xe7, 0x0f, 0x27, 0xcf, 0xbc, 0xf7, 0xe6, 0xcd, 0xb3, 0x3d, - 0xf0, 0x68, 0x36, 0xff, 0xa1, 0x44, 0x9e, 0xce, 0x9d, 0x44, 0x16, 0xc2, 0x49, 0xb8, 0xe2, 0x73, - 0x99, 0xd9, 0x77, 0x85, 0x54, 0x12, 0xf5, 0xd6, 0xa4, 0xbd, 0x22, 0x1f, 0x3e, 0xde, 0xd5, 0xe6, - 0xa9, 0x58, 0xa8, 0x7c, 0x96, 0x8b, 0x42, 0xcb, 0x07, 0x04, 0x90, 0xa7, 0xe7, 0xdd, 0x42, 0xe5, - 0x33, 0x9e, 0xa8, 0x88, 0x67, 0xe8, 0x09, 0x74, 0x79, 0xdd, 0x4e, 0xf2, 0xd4, 0x32, 0x9e, 0x1a, - 0x2f, 0x3a, 0x14, 0xd6, 0x10, 0x49, 0x11, 0x82, 0xa3, 0x05, 0xbf, 0x15, 0x56, 0xab, 0x62, 0xaa, - 0x7a, 0xf0, 0xb3, 0x05, 0x27, 0xb5, 0xd7, 0x95, 0x50, 0x3c, 0xe5, 0x8a, 0xa3, 0x37, 0x00, 0xab, - 0x67, 0x29, 0x1a, 0x9f, 0xee, 0xc5, 0x03, 0x7b, 0x27, 0xa2, 0x4d, 0x9a, 0x4c, 0xb4, 0x53, 0x8b, - 0x49, 0x8a, 0x7c, 0xf8, 0xbf, 0x89, 0xa0, 0x78, 0x56, 0x6d, 0xea, 0x5e, 0x3c, 0xdb, 0x9b, 0xfd, - 0x37, 0x3b, 0x6d, 0x92, 0xaf, 0x5e, 0xe4, 0x2b, 0x9c, 0x97, 0x72, 0x59, 0x24, 0x62, 0xa2, 0x78, - 0x79, 0x33, 0x11, 0xdf, 0x45, 0xb2, 0x54, 0xb9, 0x5c, 0x58, 0x87, 0x95, 0xdd, 0xf3, 0x3d, 0xbb, - 0x88, 0x97, 0x37, 0x78, 0xad, 0xd9, 0xe4, 0x1a, 0x1d, 0xd0, 0xbe, 0xb6, 0xd9, 0x11, 0x0c, 0x11, - 0x98, 0xb5, 0x7b, 0x63, 0x3c, 0xf8, 0x6d, 0x34, 0x5f, 0x94, 0x8a, 0x52, 0x14, 0xdf, 0x78, 0x05, - 0xff, 0x32, 0xa0, 0xcd, 0x14, 0x57, 0xcb, 0x12, 0x59, 0x70, 0x46, 0x31, 0xc3, 0xf4, 0x93, 0x1b, - 0x91, 0xf1, 0x87, 0x89, 0x4f, 0x98, 0x3b, 0x0c, 0xb0, 0x6f, 0x1e, 0xec, 0x33, 0xae, 0xf7, 0x31, - 0x26, 0x14, 0xfb, 0xa6, 0x81, 0xee, 0x01, 0xda, 0x66, 0xf0, 0x67, 0xc2, 0x22, 0x66, 0xb6, 0xf6, - 0x27, 0x28, 0x0e, 0xb0, 0xcb, 0xb0, 0x6f, 0x1e, 0xa2, 0xfb, 0xd0, 0xdf, 0x66, 0xde, 0xbb, 0x24, - 0x88, 0x29, 0x36, 0x8f, 0x5e, 0xfe, 0xd9, 0x04, 0xf4, 0x78, 0x72, 0x2d, 0xea, 0x54, 0x08, 0x8e, - 0x3d, 0xd7, 0x1b, 0xe1, 0xed, 0x3c, 0xc7, 0x00, 0x1a, 0xbb, 0x22, 0x8c, 0x99, 0x06, 0xea, 0x41, - 0x47, 0xf7, 0x23, 0x12, 0x99, 0x2d, 0xd4, 0x87, 0x13, 0xdd, 0x86, 0xe3, 0x30, 0x0e, 0xdc, 0xa8, - 0xda, 0x6b, 0xc1, 0x99, 0x06, 0x83, 0xf1, 0xf8, 0x32, 0x0e, 0x37, 0x8b, 0xd1, 0x39, 0x9c, 0xd6, - 0xf2, 0x38, 0x6a, 0xe0, 0xff, 0xd0, 0x29, 0xf4, 0x34, 0xcc, 0x2e, 0x49, 0x18, 0x62, 0xdf, 0x6c, - 0x0f, 0xdf, 0x7d, 0x79, 0x9b, 0xe5, 0xea, 0x7a, 0x39, 0xb5, 0x13, 0x79, 0xeb, 0x54, 0xbf, 0x48, - 0x16, 0x99, 0x2e, 0x9c, 0xe6, 0xa0, 0x33, 0xb1, 0x70, 0xee, 0xa6, 0xaf, 0x32, 0xe9, 0xec, 0xdc, - 0xf8, 0xb4, 0x5d, 0x5d, 0xf6, 0xeb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x7c, 0xed, 0xa2, 0x14, - 0x27, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json deleted file mode 100644 index be5e05b196..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/catalog.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/catalog.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go b/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go deleted file mode 100644 index e04866564d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/compiler.pb.go +++ /dev/null @@ -1,311 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/compiler.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation -// step uses this created ConnectionSet -type ConnectionSet struct { - // A list of all the node ids that are downstream from a given node id - Downstream map[string]*ConnectionSet_IdList `protobuf:"bytes,7,rep,name=downstream,proto3" json:"downstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // A list of all the node ids, that are upstream of this node id - Upstream map[string]*ConnectionSet_IdList `protobuf:"bytes,8,rep,name=upstream,proto3" json:"upstream,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConnectionSet) Reset() { *m = ConnectionSet{} } -func (m *ConnectionSet) String() string { return proto.CompactTextString(m) } -func (*ConnectionSet) ProtoMessage() {} -func (*ConnectionSet) Descriptor() ([]byte, []int) { - return fileDescriptor_d310dba155e4f065, []int{0} -} - -func (m *ConnectionSet) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConnectionSet.Unmarshal(m, b) -} -func (m *ConnectionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConnectionSet.Marshal(b, m, deterministic) -} -func (m *ConnectionSet) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConnectionSet.Merge(m, src) -} -func (m *ConnectionSet) XXX_Size() int { - return xxx_messageInfo_ConnectionSet.Size(m) -} -func (m *ConnectionSet) XXX_DiscardUnknown() { - xxx_messageInfo_ConnectionSet.DiscardUnknown(m) -} - -var xxx_messageInfo_ConnectionSet proto.InternalMessageInfo - -func (m *ConnectionSet) GetDownstream() map[string]*ConnectionSet_IdList { - if m != nil { - return m.Downstream - } - return nil -} - -func (m *ConnectionSet) GetUpstream() map[string]*ConnectionSet_IdList { - if m != nil { - return m.Upstream - } - return nil -} - -type ConnectionSet_IdList struct { - Ids []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConnectionSet_IdList) Reset() { *m = ConnectionSet_IdList{} } -func (m *ConnectionSet_IdList) String() string { return proto.CompactTextString(m) } -func (*ConnectionSet_IdList) ProtoMessage() {} -func (*ConnectionSet_IdList) Descriptor() ([]byte, []int) { - return fileDescriptor_d310dba155e4f065, []int{0, 0} -} - -func (m *ConnectionSet_IdList) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConnectionSet_IdList.Unmarshal(m, b) -} -func (m *ConnectionSet_IdList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConnectionSet_IdList.Marshal(b, m, deterministic) -} -func (m *ConnectionSet_IdList) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConnectionSet_IdList.Merge(m, src) -} -func (m *ConnectionSet_IdList) XXX_Size() int { - return xxx_messageInfo_ConnectionSet_IdList.Size(m) -} -func (m *ConnectionSet_IdList) XXX_DiscardUnknown() { - xxx_messageInfo_ConnectionSet_IdList.DiscardUnknown(m) -} - -var xxx_messageInfo_ConnectionSet_IdList proto.InternalMessageInfo - -func (m *ConnectionSet_IdList) GetIds() []string { - if m != nil { - return m.Ids - } - return nil -} - -// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer -type CompiledWorkflow struct { - // Completely contained Workflow Template - Template *WorkflowTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - Connections *ConnectionSet `protobuf:"bytes,2,opt,name=connections,proto3" json:"connections,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompiledWorkflow) Reset() { *m = CompiledWorkflow{} } -func (m *CompiledWorkflow) String() string { return proto.CompactTextString(m) } -func (*CompiledWorkflow) ProtoMessage() {} -func (*CompiledWorkflow) Descriptor() ([]byte, []int) { - return fileDescriptor_d310dba155e4f065, []int{1} -} - -func (m *CompiledWorkflow) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompiledWorkflow.Unmarshal(m, b) -} -func (m *CompiledWorkflow) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompiledWorkflow.Marshal(b, m, deterministic) -} -func (m *CompiledWorkflow) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompiledWorkflow.Merge(m, src) -} -func (m *CompiledWorkflow) XXX_Size() int { - return xxx_messageInfo_CompiledWorkflow.Size(m) -} -func (m *CompiledWorkflow) XXX_DiscardUnknown() { - xxx_messageInfo_CompiledWorkflow.DiscardUnknown(m) -} - -var xxx_messageInfo_CompiledWorkflow proto.InternalMessageInfo - -func (m *CompiledWorkflow) GetTemplate() *WorkflowTemplate { - if m != nil { - return m.Template - } - return nil -} - -func (m *CompiledWorkflow) GetConnections() *ConnectionSet { - if m != nil { - return m.Connections - } - return nil -} - -// Output of the Compilation step. This object represent one Task. We store more metadata at this layer -type CompiledTask struct { - // Completely contained TaskTemplate - Template *TaskTemplate `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompiledTask) Reset() { *m = CompiledTask{} } -func (m *CompiledTask) String() string { return proto.CompactTextString(m) } -func (*CompiledTask) ProtoMessage() {} -func (*CompiledTask) Descriptor() ([]byte, []int) { - return fileDescriptor_d310dba155e4f065, []int{2} -} - -func (m *CompiledTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompiledTask.Unmarshal(m, b) -} -func (m *CompiledTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompiledTask.Marshal(b, m, deterministic) -} -func (m *CompiledTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompiledTask.Merge(m, src) -} -func (m *CompiledTask) XXX_Size() int { - return xxx_messageInfo_CompiledTask.Size(m) -} -func (m *CompiledTask) XXX_DiscardUnknown() { - xxx_messageInfo_CompiledTask.DiscardUnknown(m) -} - -var xxx_messageInfo_CompiledTask proto.InternalMessageInfo - -func (m *CompiledTask) GetTemplate() *TaskTemplate { - if m != nil { - return m.Template - } - return nil -} - -// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow -// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that -// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of -// compiled subworkflows. -type CompiledWorkflowClosure struct { - //+required - Primary *CompiledWorkflow `protobuf:"bytes,1,opt,name=primary,proto3" json:"primary,omitempty"` - // Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a - // unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow - // as an inlined workflow - //+optional - SubWorkflows []*CompiledWorkflow `protobuf:"bytes,2,rep,name=sub_workflows,json=subWorkflows,proto3" json:"sub_workflows,omitempty"` - // Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id - //+required (at least 1) - Tasks []*CompiledTask `protobuf:"bytes,3,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CompiledWorkflowClosure) Reset() { *m = CompiledWorkflowClosure{} } -func (m *CompiledWorkflowClosure) String() string { return proto.CompactTextString(m) } -func (*CompiledWorkflowClosure) ProtoMessage() {} -func (*CompiledWorkflowClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_d310dba155e4f065, []int{3} -} - -func (m *CompiledWorkflowClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CompiledWorkflowClosure.Unmarshal(m, b) -} -func (m *CompiledWorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CompiledWorkflowClosure.Marshal(b, m, deterministic) -} -func (m *CompiledWorkflowClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_CompiledWorkflowClosure.Merge(m, src) -} -func (m *CompiledWorkflowClosure) XXX_Size() int { - return xxx_messageInfo_CompiledWorkflowClosure.Size(m) -} -func (m *CompiledWorkflowClosure) XXX_DiscardUnknown() { - xxx_messageInfo_CompiledWorkflowClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_CompiledWorkflowClosure proto.InternalMessageInfo - -func (m *CompiledWorkflowClosure) GetPrimary() *CompiledWorkflow { - if m != nil { - return m.Primary - } - return nil -} - -func (m *CompiledWorkflowClosure) GetSubWorkflows() []*CompiledWorkflow { - if m != nil { - return m.SubWorkflows - } - return nil -} - -func (m *CompiledWorkflowClosure) GetTasks() []*CompiledTask { - if m != nil { - return m.Tasks - } - return nil -} - -func init() { - proto.RegisterType((*ConnectionSet)(nil), "flyteidl.core.ConnectionSet") - proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.DownstreamEntry") - proto.RegisterMapType((map[string]*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.UpstreamEntry") - proto.RegisterType((*ConnectionSet_IdList)(nil), "flyteidl.core.ConnectionSet.IdList") - proto.RegisterType((*CompiledWorkflow)(nil), "flyteidl.core.CompiledWorkflow") - proto.RegisterType((*CompiledTask)(nil), "flyteidl.core.CompiledTask") - proto.RegisterType((*CompiledWorkflowClosure)(nil), "flyteidl.core.CompiledWorkflowClosure") -} - -func init() { proto.RegisterFile("flyteidl/core/compiler.proto", fileDescriptor_d310dba155e4f065) } - -var fileDescriptor_d310dba155e4f065 = []byte{ - // 425 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcb, 0xea, 0xd3, 0x40, - 0x14, 0xc6, 0x49, 0x43, 0x2f, 0x9e, 0x34, 0x58, 0x66, 0x63, 0x4c, 0x0b, 0x86, 0xb8, 0x29, 0xa2, - 0x09, 0xd6, 0x85, 0xb6, 0x8a, 0x0b, 0x5b, 0x15, 0xa1, 0xab, 0x58, 0x11, 0xdc, 0x68, 0x2e, 0xd3, - 0x18, 0x72, 0x99, 0x30, 0x33, 0xb1, 0xe4, 0x09, 0x5c, 0xfa, 0x64, 0xbe, 0x93, 0xe4, 0x4a, 0x93, - 0xd2, 0xe2, 0xe2, 0xbf, 0x9b, 0x70, 0x7e, 0xdf, 0x77, 0xbe, 0xc3, 0xc9, 0x81, 0xc5, 0x31, 0xca, - 0x39, 0x0e, 0xbc, 0xc8, 0x74, 0x09, 0xc5, 0xa6, 0x4b, 0xe2, 0x34, 0x88, 0x30, 0x35, 0x52, 0x4a, - 0x38, 0x41, 0x72, 0x53, 0x35, 0x8a, 0xaa, 0xda, 0x83, 0x4f, 0x84, 0x86, 0xc7, 0x88, 0x9c, 0x2a, - 0x58, 0x7d, 0xd8, 0xad, 0x72, 0x9b, 0x85, 0xac, 0x2a, 0xe9, 0xbf, 0x45, 0x90, 0xb7, 0x24, 0x49, - 0xb0, 0xcb, 0x03, 0x92, 0x7c, 0xc6, 0x1c, 0xed, 0x01, 0x3c, 0x72, 0x4a, 0x18, 0xa7, 0xd8, 0x8e, - 0x95, 0xb1, 0x26, 0x2e, 0xa5, 0xd5, 0x53, 0xa3, 0xd3, 0xce, 0xe8, 0x28, 0x8c, 0x5d, 0x8b, 0xbf, - 0x4f, 0x38, 0xcd, 0xad, 0x33, 0x3d, 0xfa, 0x00, 0x93, 0x2c, 0xad, 0xbd, 0x26, 0xa5, 0xd7, 0x93, - 0x9b, 0x5e, 0x5f, 0xd2, 0x73, 0xa7, 0x56, 0xab, 0xaa, 0x30, 0xfa, 0xe4, 0xed, 0x03, 0xc6, 0xd1, - 0x0c, 0xc4, 0xc0, 0x63, 0x8a, 0xa0, 0x89, 0xcb, 0x7b, 0x56, 0xf1, 0x54, 0x1d, 0xb8, 0xdf, 0x8b, - 0x50, 0x40, 0x21, 0xce, 0x15, 0x41, 0x13, 0x0a, 0x28, 0xc4, 0x39, 0x5a, 0xc3, 0xf0, 0x97, 0x1d, - 0x65, 0x58, 0x19, 0x68, 0xc2, 0x52, 0x5a, 0x3d, 0xbe, 0x99, 0xa2, 0x6a, 0x65, 0x55, 0x8a, 0xcd, - 0xe0, 0x95, 0xa0, 0xfe, 0x00, 0xb9, 0x13, 0xed, 0xce, 0x3b, 0xe8, 0x7f, 0x04, 0x98, 0x6d, 0xab, - 0x25, 0x7b, 0x5f, 0xeb, 0xfd, 0xa1, 0xd7, 0x30, 0xe1, 0x38, 0x4e, 0x23, 0x9b, 0xe3, 0xb2, 0x95, - 0xb4, 0x7a, 0xd4, 0xb3, 0x6d, 0xd0, 0x43, 0x8d, 0x59, 0xad, 0x00, 0xbd, 0x05, 0xc9, 0x6d, 0x9b, - 0xb2, 0x3a, 0xd6, 0xe2, 0x56, 0x2c, 0xeb, 0x5c, 0xa0, 0x7f, 0x84, 0x69, 0x13, 0xe8, 0x60, 0xb3, - 0x10, 0xbd, 0xbc, 0x08, 0x33, 0xef, 0x99, 0x15, 0xd8, 0x65, 0x10, 0xfd, 0xaf, 0x00, 0x0f, 0xfa, - 0xa3, 0x6d, 0x23, 0xc2, 0x32, 0x8a, 0xd1, 0x1a, 0xc6, 0x29, 0x0d, 0x62, 0x9b, 0xe6, 0x57, 0x06, - 0xec, 0x0b, 0xad, 0x86, 0x47, 0x3b, 0x90, 0x59, 0xe6, 0x7c, 0x6f, 0x7e, 0xf6, 0x62, 0x42, 0xf1, - 0x7f, 0x0c, 0xa6, 0x2c, 0x73, 0x9a, 0x0f, 0x86, 0x9e, 0xc3, 0xb0, 0x3c, 0x08, 0x45, 0x2c, 0xd5, - 0xf3, 0x2b, 0xea, 0x62, 0x34, 0xab, 0x22, 0xdf, 0xbd, 0xf9, 0xb6, 0xf1, 0x03, 0xfe, 0x33, 0x73, - 0x0c, 0x97, 0xc4, 0x66, 0xc9, 0x13, 0xea, 0x57, 0x0f, 0xb3, 0xbd, 0x35, 0x1f, 0x27, 0x66, 0xea, - 0x3c, 0xf3, 0x89, 0xd9, 0x39, 0x3f, 0x67, 0x54, 0x5e, 0xde, 0x8b, 0x7f, 0x01, 0x00, 0x00, 0xff, - 0xff, 0x11, 0xab, 0xdf, 0xee, 0xe1, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json deleted file mode 100644 index 872bee4245..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/compiler.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/compiler.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go b/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go deleted file mode 100644 index 9617f5bef4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/condition.pb.go +++ /dev/null @@ -1,427 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/condition.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Binary Operator for each expression -type ComparisonExpression_Operator int32 - -const ( - ComparisonExpression_EQ ComparisonExpression_Operator = 0 - ComparisonExpression_NEQ ComparisonExpression_Operator = 1 - // Greater Than - ComparisonExpression_GT ComparisonExpression_Operator = 2 - ComparisonExpression_GTE ComparisonExpression_Operator = 3 - // Less Than - ComparisonExpression_LT ComparisonExpression_Operator = 4 - ComparisonExpression_LTE ComparisonExpression_Operator = 5 -) - -var ComparisonExpression_Operator_name = map[int32]string{ - 0: "EQ", - 1: "NEQ", - 2: "GT", - 3: "GTE", - 4: "LT", - 5: "LTE", -} - -var ComparisonExpression_Operator_value = map[string]int32{ - "EQ": 0, - "NEQ": 1, - "GT": 2, - "GTE": 3, - "LT": 4, - "LTE": 5, -} - -func (x ComparisonExpression_Operator) String() string { - return proto.EnumName(ComparisonExpression_Operator_name, int32(x)) -} - -func (ComparisonExpression_Operator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{0, 0} -} - -// Nested conditions. They can be conjoined using AND / OR -// Order of evaluation is not important as the operators are Commutative -type ConjunctionExpression_LogicalOperator int32 - -const ( - // Conjunction - ConjunctionExpression_AND ConjunctionExpression_LogicalOperator = 0 - ConjunctionExpression_OR ConjunctionExpression_LogicalOperator = 1 -) - -var ConjunctionExpression_LogicalOperator_name = map[int32]string{ - 0: "AND", - 1: "OR", -} - -var ConjunctionExpression_LogicalOperator_value = map[string]int32{ - "AND": 0, - "OR": 1, -} - -func (x ConjunctionExpression_LogicalOperator) String() string { - return proto.EnumName(ConjunctionExpression_LogicalOperator_name, int32(x)) -} - -func (ConjunctionExpression_LogicalOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{3, 0} -} - -// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. -// Each expression results in a boolean result. -type ComparisonExpression struct { - Operator ComparisonExpression_Operator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ComparisonExpression_Operator" json:"operator,omitempty"` - LeftValue *Operand `protobuf:"bytes,2,opt,name=left_value,json=leftValue,proto3" json:"left_value,omitempty"` - RightValue *Operand `protobuf:"bytes,3,opt,name=right_value,json=rightValue,proto3" json:"right_value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ComparisonExpression) Reset() { *m = ComparisonExpression{} } -func (m *ComparisonExpression) String() string { return proto.CompactTextString(m) } -func (*ComparisonExpression) ProtoMessage() {} -func (*ComparisonExpression) Descriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{0} -} - -func (m *ComparisonExpression) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ComparisonExpression.Unmarshal(m, b) -} -func (m *ComparisonExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ComparisonExpression.Marshal(b, m, deterministic) -} -func (m *ComparisonExpression) XXX_Merge(src proto.Message) { - xxx_messageInfo_ComparisonExpression.Merge(m, src) -} -func (m *ComparisonExpression) XXX_Size() int { - return xxx_messageInfo_ComparisonExpression.Size(m) -} -func (m *ComparisonExpression) XXX_DiscardUnknown() { - xxx_messageInfo_ComparisonExpression.DiscardUnknown(m) -} - -var xxx_messageInfo_ComparisonExpression proto.InternalMessageInfo - -func (m *ComparisonExpression) GetOperator() ComparisonExpression_Operator { - if m != nil { - return m.Operator - } - return ComparisonExpression_EQ -} - -func (m *ComparisonExpression) GetLeftValue() *Operand { - if m != nil { - return m.LeftValue - } - return nil -} - -func (m *ComparisonExpression) GetRightValue() *Operand { - if m != nil { - return m.RightValue - } - return nil -} - -// Defines an operand to a comparison expression. -type Operand struct { - // Types that are valid to be assigned to Val: - // *Operand_Primitive - // *Operand_Var - // *Operand_Scalar - Val isOperand_Val `protobuf_oneof:"val"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Operand) Reset() { *m = Operand{} } -func (m *Operand) String() string { return proto.CompactTextString(m) } -func (*Operand) ProtoMessage() {} -func (*Operand) Descriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{1} -} - -func (m *Operand) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Operand.Unmarshal(m, b) -} -func (m *Operand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Operand.Marshal(b, m, deterministic) -} -func (m *Operand) XXX_Merge(src proto.Message) { - xxx_messageInfo_Operand.Merge(m, src) -} -func (m *Operand) XXX_Size() int { - return xxx_messageInfo_Operand.Size(m) -} -func (m *Operand) XXX_DiscardUnknown() { - xxx_messageInfo_Operand.DiscardUnknown(m) -} - -var xxx_messageInfo_Operand proto.InternalMessageInfo - -type isOperand_Val interface { - isOperand_Val() -} - -type Operand_Primitive struct { - Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` -} - -type Operand_Var struct { - Var string `protobuf:"bytes,2,opt,name=var,proto3,oneof"` -} - -type Operand_Scalar struct { - Scalar *Scalar `protobuf:"bytes,3,opt,name=scalar,proto3,oneof"` -} - -func (*Operand_Primitive) isOperand_Val() {} - -func (*Operand_Var) isOperand_Val() {} - -func (*Operand_Scalar) isOperand_Val() {} - -func (m *Operand) GetVal() isOperand_Val { - if m != nil { - return m.Val - } - return nil -} - -// Deprecated: Do not use. -func (m *Operand) GetPrimitive() *Primitive { - if x, ok := m.GetVal().(*Operand_Primitive); ok { - return x.Primitive - } - return nil -} - -func (m *Operand) GetVar() string { - if x, ok := m.GetVal().(*Operand_Var); ok { - return x.Var - } - return "" -} - -func (m *Operand) GetScalar() *Scalar { - if x, ok := m.GetVal().(*Operand_Scalar); ok { - return x.Scalar - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Operand) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Operand_Primitive)(nil), - (*Operand_Var)(nil), - (*Operand_Scalar)(nil), - } -} - -// Defines a boolean expression tree. It can be a simple or a conjunction expression. -// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -type BooleanExpression struct { - // Types that are valid to be assigned to Expr: - // *BooleanExpression_Conjunction - // *BooleanExpression_Comparison - Expr isBooleanExpression_Expr `protobuf_oneof:"expr"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BooleanExpression) Reset() { *m = BooleanExpression{} } -func (m *BooleanExpression) String() string { return proto.CompactTextString(m) } -func (*BooleanExpression) ProtoMessage() {} -func (*BooleanExpression) Descriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{2} -} - -func (m *BooleanExpression) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BooleanExpression.Unmarshal(m, b) -} -func (m *BooleanExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BooleanExpression.Marshal(b, m, deterministic) -} -func (m *BooleanExpression) XXX_Merge(src proto.Message) { - xxx_messageInfo_BooleanExpression.Merge(m, src) -} -func (m *BooleanExpression) XXX_Size() int { - return xxx_messageInfo_BooleanExpression.Size(m) -} -func (m *BooleanExpression) XXX_DiscardUnknown() { - xxx_messageInfo_BooleanExpression.DiscardUnknown(m) -} - -var xxx_messageInfo_BooleanExpression proto.InternalMessageInfo - -type isBooleanExpression_Expr interface { - isBooleanExpression_Expr() -} - -type BooleanExpression_Conjunction struct { - Conjunction *ConjunctionExpression `protobuf:"bytes,1,opt,name=conjunction,proto3,oneof"` -} - -type BooleanExpression_Comparison struct { - Comparison *ComparisonExpression `protobuf:"bytes,2,opt,name=comparison,proto3,oneof"` -} - -func (*BooleanExpression_Conjunction) isBooleanExpression_Expr() {} - -func (*BooleanExpression_Comparison) isBooleanExpression_Expr() {} - -func (m *BooleanExpression) GetExpr() isBooleanExpression_Expr { - if m != nil { - return m.Expr - } - return nil -} - -func (m *BooleanExpression) GetConjunction() *ConjunctionExpression { - if x, ok := m.GetExpr().(*BooleanExpression_Conjunction); ok { - return x.Conjunction - } - return nil -} - -func (m *BooleanExpression) GetComparison() *ComparisonExpression { - if x, ok := m.GetExpr().(*BooleanExpression_Comparison); ok { - return x.Comparison - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BooleanExpression) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BooleanExpression_Conjunction)(nil), - (*BooleanExpression_Comparison)(nil), - } -} - -// Defines a conjunction expression of two boolean expressions. -type ConjunctionExpression struct { - Operator ConjunctionExpression_LogicalOperator `protobuf:"varint,1,opt,name=operator,proto3,enum=flyteidl.core.ConjunctionExpression_LogicalOperator" json:"operator,omitempty"` - LeftExpression *BooleanExpression `protobuf:"bytes,2,opt,name=left_expression,json=leftExpression,proto3" json:"left_expression,omitempty"` - RightExpression *BooleanExpression `protobuf:"bytes,3,opt,name=right_expression,json=rightExpression,proto3" json:"right_expression,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ConjunctionExpression) Reset() { *m = ConjunctionExpression{} } -func (m *ConjunctionExpression) String() string { return proto.CompactTextString(m) } -func (*ConjunctionExpression) ProtoMessage() {} -func (*ConjunctionExpression) Descriptor() ([]byte, []int) { - return fileDescriptor_df35c44899db166a, []int{3} -} - -func (m *ConjunctionExpression) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ConjunctionExpression.Unmarshal(m, b) -} -func (m *ConjunctionExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ConjunctionExpression.Marshal(b, m, deterministic) -} -func (m *ConjunctionExpression) XXX_Merge(src proto.Message) { - xxx_messageInfo_ConjunctionExpression.Merge(m, src) -} -func (m *ConjunctionExpression) XXX_Size() int { - return xxx_messageInfo_ConjunctionExpression.Size(m) -} -func (m *ConjunctionExpression) XXX_DiscardUnknown() { - xxx_messageInfo_ConjunctionExpression.DiscardUnknown(m) -} - -var xxx_messageInfo_ConjunctionExpression proto.InternalMessageInfo - -func (m *ConjunctionExpression) GetOperator() ConjunctionExpression_LogicalOperator { - if m != nil { - return m.Operator - } - return ConjunctionExpression_AND -} - -func (m *ConjunctionExpression) GetLeftExpression() *BooleanExpression { - if m != nil { - return m.LeftExpression - } - return nil -} - -func (m *ConjunctionExpression) GetRightExpression() *BooleanExpression { - if m != nil { - return m.RightExpression - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.core.ComparisonExpression_Operator", ComparisonExpression_Operator_name, ComparisonExpression_Operator_value) - proto.RegisterEnum("flyteidl.core.ConjunctionExpression_LogicalOperator", ConjunctionExpression_LogicalOperator_name, ConjunctionExpression_LogicalOperator_value) - proto.RegisterType((*ComparisonExpression)(nil), "flyteidl.core.ComparisonExpression") - proto.RegisterType((*Operand)(nil), "flyteidl.core.Operand") - proto.RegisterType((*BooleanExpression)(nil), "flyteidl.core.BooleanExpression") - proto.RegisterType((*ConjunctionExpression)(nil), "flyteidl.core.ConjunctionExpression") -} - -func init() { proto.RegisterFile("flyteidl/core/condition.proto", fileDescriptor_df35c44899db166a) } - -var fileDescriptor_df35c44899db166a = []byte{ - // 489 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x4f, 0x6f, 0xd3, 0x30, - 0x18, 0xc6, 0xf3, 0x67, 0xeb, 0xb6, 0xb7, 0x62, 0x35, 0x16, 0x43, 0x15, 0x02, 0xa9, 0x0a, 0x1c, - 0x76, 0x80, 0x44, 0x2a, 0x20, 0x24, 0x34, 0x0e, 0x04, 0xa2, 0x05, 0x51, 0xed, 0x8f, 0xa9, 0x38, - 0x70, 0x41, 0x6e, 0xea, 0x65, 0x46, 0x6e, 0x1c, 0x39, 0x69, 0x35, 0x3e, 0x05, 0x07, 0x3e, 0x03, - 0x37, 0x3e, 0x24, 0xb2, 0x9b, 0xa6, 0x6d, 0x5a, 0xa1, 0xde, 0xda, 0xf7, 0x7d, 0x7e, 0x4f, 0x1e, - 0xfb, 0x7d, 0x0d, 0x4f, 0x6e, 0xc4, 0xcf, 0x92, 0xf1, 0xb1, 0x08, 0x12, 0xa9, 0x58, 0x90, 0xc8, - 0x6c, 0xcc, 0x4b, 0x2e, 0x33, 0x3f, 0x57, 0xb2, 0x94, 0xf8, 0xde, 0xa2, 0xed, 0xeb, 0xf6, 0xa3, - 0xc7, 0xeb, 0x6a, 0xc1, 0x4b, 0xa6, 0xa8, 0x28, 0xe6, 0x62, 0xef, 0x97, 0x03, 0x0f, 0x3e, 0xc8, - 0x49, 0x4e, 0x15, 0x2f, 0x64, 0x16, 0xdd, 0xe5, 0x8a, 0x15, 0x05, 0x97, 0x19, 0x8e, 0xe1, 0x50, - 0xe6, 0x4c, 0xd1, 0x52, 0xaa, 0xae, 0xdd, 0xb3, 0x4f, 0x8f, 0xfb, 0xcf, 0xfd, 0x35, 0x63, 0x7f, - 0x1b, 0xe6, 0x5f, 0x56, 0x0c, 0xa9, 0x69, 0xfc, 0x1a, 0x40, 0xb0, 0x9b, 0xf2, 0xfb, 0x8c, 0x8a, - 0x29, 0xeb, 0x3a, 0x3d, 0xfb, 0xb4, 0xdd, 0x7f, 0xd8, 0xf0, 0x32, 0x58, 0x36, 0x26, 0x47, 0x5a, - 0xf9, 0x55, 0x0b, 0xf1, 0x1b, 0x68, 0x2b, 0x9e, 0xde, 0x2e, 0x38, 0xf7, 0xbf, 0x1c, 0x18, 0xa9, - 0x01, 0xbd, 0x77, 0x70, 0xb8, 0x48, 0x81, 0x5b, 0xe0, 0x44, 0xd7, 0xc8, 0xc2, 0x07, 0xe0, 0x5e, - 0x44, 0xd7, 0xc8, 0xd6, 0x85, 0xf3, 0x21, 0x72, 0x74, 0xe1, 0x7c, 0x18, 0x21, 0x57, 0x17, 0x06, - 0x43, 0xb4, 0xa7, 0x0b, 0x83, 0x61, 0x84, 0xf6, 0xbd, 0xdf, 0x36, 0x1c, 0x54, 0xb6, 0xf8, 0x0c, - 0x8e, 0x72, 0xc5, 0x27, 0xbc, 0xe4, 0x33, 0x66, 0x6e, 0xa1, 0xdd, 0xef, 0x36, 0x12, 0x5c, 0x2d, - 0xfa, 0xa1, 0xd3, 0xb5, 0x63, 0x8b, 0x2c, 0x01, 0x8c, 0xc1, 0x9d, 0x51, 0x65, 0x4e, 0x7c, 0x14, - 0x5b, 0x44, 0xff, 0xc1, 0x01, 0xb4, 0x8a, 0x84, 0x0a, 0xaa, 0xaa, 0x03, 0x9d, 0x34, 0xec, 0xbe, - 0x98, 0x66, 0x6c, 0x91, 0x4a, 0x16, 0xee, 0x6b, 0x13, 0xe1, 0xfd, 0xb5, 0xe1, 0x7e, 0x28, 0xa5, - 0x60, 0x74, 0x7d, 0x48, 0xed, 0x44, 0x66, 0x3f, 0xa6, 0x59, 0xa2, 0xe7, 0x5f, 0x25, 0x7c, 0xb6, - 0x31, 0xa7, 0x5a, 0xb1, 0x44, 0x63, 0x8b, 0xac, 0xa2, 0x38, 0x02, 0x48, 0xea, 0x79, 0x56, 0x43, - 0x7a, 0xba, 0xc3, 0xc0, 0x63, 0x8b, 0xac, 0x80, 0x61, 0x0b, 0xf6, 0xd8, 0x5d, 0xae, 0xbc, 0x3f, - 0x0e, 0x9c, 0x6c, 0xfd, 0x2e, 0xbe, 0xda, 0xd8, 0xab, 0x57, 0xbb, 0xe4, 0xf5, 0x07, 0x32, 0xe5, - 0x09, 0x15, 0x5b, 0xf6, 0xeb, 0x13, 0x74, 0xcc, 0x7e, 0xb1, 0x5a, 0x5c, 0xe5, 0xef, 0x35, 0x8c, - 0x37, 0xee, 0x8f, 0x1c, 0x6b, 0x70, 0x25, 0xdc, 0x67, 0x40, 0xf3, 0x9d, 0x5b, 0xf1, 0x72, 0x77, - 0xf4, 0xea, 0x18, 0x72, 0x59, 0xf0, 0x3c, 0xe8, 0x34, 0x42, 0xeb, 0x25, 0x7b, 0x7f, 0xf1, 0x11, - 0x59, 0x7a, 0xeb, 0x2e, 0x09, 0xb2, 0xc3, 0xb3, 0x6f, 0x6f, 0x53, 0x5e, 0xde, 0x4e, 0x47, 0x7e, - 0x22, 0x27, 0x81, 0xf9, 0x84, 0x54, 0xe9, 0xfc, 0x47, 0x50, 0x3f, 0xdc, 0x94, 0x65, 0x41, 0x3e, - 0x7a, 0x91, 0xca, 0x60, 0xed, 0x2d, 0x8f, 0x5a, 0xe6, 0x0d, 0xbf, 0xfc, 0x17, 0x00, 0x00, 0xff, - 0xff, 0x19, 0x6a, 0x99, 0xdd, 0x11, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json deleted file mode 100644 index 003c697275..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/condition.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/condition.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go deleted file mode 100644 index 5db3bbeb88..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.pb.go +++ /dev/null @@ -1,131 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/dynamic_job.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Describes a set of tasks to execute and how the final outputs are produced. -type DynamicJobSpec struct { - // A collection of nodes to execute. - Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"` - // An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this - // criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number - // becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < - // min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not - // specified, is the count of nodes repeated field. - MinSuccesses int64 `protobuf:"varint,2,opt,name=min_successes,json=minSuccesses,proto3" json:"min_successes,omitempty"` - // Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids - // in bindings should have the generated id for the subtask. - Outputs []*Binding `protobuf:"bytes,3,rep,name=outputs,proto3" json:"outputs,omitempty"` - // [Optional] A complete list of task specs referenced in nodes. - Tasks []*TaskTemplate `protobuf:"bytes,4,rep,name=tasks,proto3" json:"tasks,omitempty"` - // [Optional] A complete list of task specs referenced in nodes. - Subworkflows []*WorkflowTemplate `protobuf:"bytes,5,rep,name=subworkflows,proto3" json:"subworkflows,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DynamicJobSpec) Reset() { *m = DynamicJobSpec{} } -func (m *DynamicJobSpec) String() string { return proto.CompactTextString(m) } -func (*DynamicJobSpec) ProtoMessage() {} -func (*DynamicJobSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_87e0015f5a750c69, []int{0} -} - -func (m *DynamicJobSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DynamicJobSpec.Unmarshal(m, b) -} -func (m *DynamicJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DynamicJobSpec.Marshal(b, m, deterministic) -} -func (m *DynamicJobSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DynamicJobSpec.Merge(m, src) -} -func (m *DynamicJobSpec) XXX_Size() int { - return xxx_messageInfo_DynamicJobSpec.Size(m) -} -func (m *DynamicJobSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DynamicJobSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DynamicJobSpec proto.InternalMessageInfo - -func (m *DynamicJobSpec) GetNodes() []*Node { - if m != nil { - return m.Nodes - } - return nil -} - -func (m *DynamicJobSpec) GetMinSuccesses() int64 { - if m != nil { - return m.MinSuccesses - } - return 0 -} - -func (m *DynamicJobSpec) GetOutputs() []*Binding { - if m != nil { - return m.Outputs - } - return nil -} - -func (m *DynamicJobSpec) GetTasks() []*TaskTemplate { - if m != nil { - return m.Tasks - } - return nil -} - -func (m *DynamicJobSpec) GetSubworkflows() []*WorkflowTemplate { - if m != nil { - return m.Subworkflows - } - return nil -} - -func init() { - proto.RegisterType((*DynamicJobSpec)(nil), "flyteidl.core.DynamicJobSpec") -} - -func init() { proto.RegisterFile("flyteidl/core/dynamic_job.proto", fileDescriptor_87e0015f5a750c69) } - -var fileDescriptor_87e0015f5a750c69 = []byte{ - // 288 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xcf, 0x4b, 0xc3, 0x30, - 0x14, 0xc7, 0xd9, 0xe6, 0x14, 0xe2, 0xe6, 0x21, 0x82, 0xd4, 0x29, 0x6c, 0xe8, 0x65, 0x1e, 0x6c, - 0xfc, 0x71, 0x13, 0x4f, 0xd3, 0x93, 0x07, 0x0f, 0xdd, 0x40, 0xf0, 0x32, 0x9a, 0xf4, 0xad, 0xc6, - 0xa5, 0x79, 0xa5, 0x2f, 0x65, 0xec, 0x5f, 0xf0, 0xaf, 0x16, 0xd3, 0x75, 0xd0, 0xe2, 0x2d, 0xe4, - 0xfb, 0xf9, 0xbc, 0xe4, 0x7d, 0xd9, 0x78, 0x65, 0xb6, 0x0e, 0x74, 0x62, 0x84, 0xc2, 0x02, 0x44, - 0xb2, 0xb5, 0x71, 0xa6, 0xd5, 0xf2, 0x1b, 0x65, 0x98, 0x17, 0xe8, 0x90, 0x0f, 0x6b, 0x20, 0xfc, - 0x03, 0x46, 0xe7, 0x4d, 0xde, 0xc5, 0xb4, 0xa6, 0x8a, 0x1c, 0x5d, 0x36, 0xa3, 0x0d, 0x16, 0xeb, - 0x95, 0xc1, 0xcd, 0xff, 0xa9, 0xd1, 0x0e, 0x8a, 0xd8, 0xec, 0xdc, 0xab, 0x9f, 0x2e, 0x3b, 0x79, - 0xad, 0xde, 0x7e, 0x43, 0x39, 0xcf, 0x41, 0xf1, 0x1b, 0xd6, 0xb7, 0x98, 0x00, 0x05, 0x9d, 0x49, - 0x6f, 0x7a, 0xfc, 0x70, 0x1a, 0x36, 0x3e, 0x12, 0xbe, 0x63, 0x02, 0x51, 0x45, 0xf0, 0x6b, 0x36, - 0xcc, 0xb4, 0x5d, 0x52, 0xa9, 0x14, 0x10, 0x01, 0x05, 0xdd, 0x49, 0x67, 0xda, 0x8b, 0x06, 0x99, - 0xb6, 0xf3, 0xfa, 0x8e, 0xdf, 0xb1, 0x23, 0x2c, 0x5d, 0x5e, 0x3a, 0x0a, 0x7a, 0x7e, 0xe2, 0x59, - 0x6b, 0xe2, 0x4c, 0xdb, 0x44, 0xdb, 0x34, 0xaa, 0x31, 0x7e, 0xcf, 0xfa, 0x7e, 0xbf, 0xe0, 0xc0, - 0xf3, 0x17, 0x2d, 0x7e, 0x11, 0xd3, 0x7a, 0x01, 0x59, 0x6e, 0x62, 0x07, 0x51, 0x45, 0xf2, 0x17, - 0x36, 0xa0, 0x52, 0xd6, 0xab, 0x53, 0xd0, 0xf7, 0xe6, 0xb8, 0x65, 0x7e, 0xec, 0xf2, 0xbd, 0xdd, - 0x90, 0x66, 0xcf, 0x9f, 0x4f, 0xa9, 0x76, 0x5f, 0xa5, 0x0c, 0x15, 0x66, 0xc2, 0xab, 0x58, 0xa4, - 0xd5, 0x41, 0xec, 0x6b, 0x4c, 0xc1, 0x8a, 0x5c, 0xde, 0xa6, 0x28, 0x1a, 0xcd, 0xca, 0x43, 0xdf, - 0xe8, 0xe3, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xfe, 0xc3, 0xc1, 0xda, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json deleted file mode 100644 index 7b0edff585..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/dynamic_job.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/dynamic_job.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go b/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go deleted file mode 100644 index 301bbb4e94..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/errors.pb.go +++ /dev/null @@ -1,188 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/errors.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a generic error type that dictates the behavior of the retry strategy. -type ContainerError_Kind int32 - -const ( - ContainerError_NON_RECOVERABLE ContainerError_Kind = 0 - ContainerError_RECOVERABLE ContainerError_Kind = 1 -) - -var ContainerError_Kind_name = map[int32]string{ - 0: "NON_RECOVERABLE", - 1: "RECOVERABLE", -} - -var ContainerError_Kind_value = map[string]int32{ - "NON_RECOVERABLE": 0, - "RECOVERABLE": 1, -} - -func (x ContainerError_Kind) String() string { - return proto.EnumName(ContainerError_Kind_name, int32(x)) -} - -func (ContainerError_Kind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_c2a49b99f342b879, []int{0, 0} -} - -// Error message to propagate detailed errors from container executions to the execution -// engine. -type ContainerError struct { - // A simplified code for errors, so that we can provide a glossary of all possible errors. - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - // A detailed error message. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // An abstract error kind for this error. Defaults to Non_Recoverable if not specified. - Kind ContainerError_Kind `protobuf:"varint,3,opt,name=kind,proto3,enum=flyteidl.core.ContainerError_Kind" json:"kind,omitempty"` - // Defines the origin of the error (system, user, unknown). - Origin ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=origin,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"origin,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContainerError) Reset() { *m = ContainerError{} } -func (m *ContainerError) String() string { return proto.CompactTextString(m) } -func (*ContainerError) ProtoMessage() {} -func (*ContainerError) Descriptor() ([]byte, []int) { - return fileDescriptor_c2a49b99f342b879, []int{0} -} - -func (m *ContainerError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContainerError.Unmarshal(m, b) -} -func (m *ContainerError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContainerError.Marshal(b, m, deterministic) -} -func (m *ContainerError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerError.Merge(m, src) -} -func (m *ContainerError) XXX_Size() int { - return xxx_messageInfo_ContainerError.Size(m) -} -func (m *ContainerError) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerError.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerError proto.InternalMessageInfo - -func (m *ContainerError) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -func (m *ContainerError) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *ContainerError) GetKind() ContainerError_Kind { - if m != nil { - return m.Kind - } - return ContainerError_NON_RECOVERABLE -} - -func (m *ContainerError) GetOrigin() ExecutionError_ErrorKind { - if m != nil { - return m.Origin - } - return ExecutionError_UNKNOWN -} - -// Defines the errors.pb file format the container can produce to communicate -// failure reasons to the execution engine. -type ErrorDocument struct { - // The error raised during execution. - Error *ContainerError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ErrorDocument) Reset() { *m = ErrorDocument{} } -func (m *ErrorDocument) String() string { return proto.CompactTextString(m) } -func (*ErrorDocument) ProtoMessage() {} -func (*ErrorDocument) Descriptor() ([]byte, []int) { - return fileDescriptor_c2a49b99f342b879, []int{1} -} - -func (m *ErrorDocument) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ErrorDocument.Unmarshal(m, b) -} -func (m *ErrorDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ErrorDocument.Marshal(b, m, deterministic) -} -func (m *ErrorDocument) XXX_Merge(src proto.Message) { - xxx_messageInfo_ErrorDocument.Merge(m, src) -} -func (m *ErrorDocument) XXX_Size() int { - return xxx_messageInfo_ErrorDocument.Size(m) -} -func (m *ErrorDocument) XXX_DiscardUnknown() { - xxx_messageInfo_ErrorDocument.DiscardUnknown(m) -} - -var xxx_messageInfo_ErrorDocument proto.InternalMessageInfo - -func (m *ErrorDocument) GetError() *ContainerError { - if m != nil { - return m.Error - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.core.ContainerError_Kind", ContainerError_Kind_name, ContainerError_Kind_value) - proto.RegisterType((*ContainerError)(nil), "flyteidl.core.ContainerError") - proto.RegisterType((*ErrorDocument)(nil), "flyteidl.core.ErrorDocument") -} - -func init() { proto.RegisterFile("flyteidl/core/errors.proto", fileDescriptor_c2a49b99f342b879) } - -var fileDescriptor_c2a49b99f342b879 = []byte{ - // 286 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0x4f, 0x4b, 0xc3, 0x40, - 0x10, 0xc5, 0x8d, 0xc6, 0x8a, 0x53, 0xda, 0xca, 0x7a, 0x09, 0x85, 0x42, 0xc9, 0xc5, 0x1e, 0x74, - 0x17, 0x5a, 0xf0, 0x20, 0x82, 0xd8, 0x36, 0x27, 0xa5, 0x85, 0x1c, 0x3c, 0x78, 0x91, 0x26, 0x59, - 0xd7, 0xc5, 0x66, 0xa7, 0x6c, 0x36, 0xa0, 0x1f, 0xd8, 0xef, 0x21, 0x99, 0x18, 0x31, 0x3d, 0x78, - 0x09, 0xf3, 0xe7, 0xfd, 0x5e, 0x66, 0x1f, 0x0c, 0x5f, 0xb7, 0x9f, 0x4e, 0xea, 0x6c, 0x2b, 0x52, - 0xb4, 0x52, 0x48, 0x6b, 0xd1, 0x16, 0x7c, 0x67, 0xd1, 0x21, 0xeb, 0x35, 0x3b, 0x5e, 0xed, 0x86, - 0xa3, 0x3d, 0xe9, 0x87, 0x4c, 0x4b, 0xa7, 0xd1, 0xd4, 0xea, 0xf0, 0xcb, 0x83, 0xfe, 0x02, 0x8d, - 0xdb, 0x68, 0x23, 0x6d, 0x54, 0xf9, 0x30, 0x06, 0x7e, 0x8a, 0x99, 0x0c, 0xbc, 0xb1, 0x37, 0x39, - 0x8d, 0xa9, 0x66, 0x01, 0x9c, 0xe4, 0xb2, 0x28, 0x36, 0x4a, 0x06, 0x87, 0x34, 0x6e, 0x5a, 0x76, - 0x0d, 0xfe, 0xbb, 0x36, 0x59, 0x70, 0x34, 0xf6, 0x26, 0xfd, 0x69, 0xc8, 0x5b, 0x7f, 0xe7, 0x6d, - 0x6b, 0xfe, 0xa0, 0x4d, 0x16, 0x93, 0x9e, 0xdd, 0x41, 0x07, 0xad, 0x56, 0xda, 0x04, 0x3e, 0x91, - 0x17, 0x7b, 0x64, 0xd4, 0x1c, 0x5a, 0x93, 0xf4, 0x25, 0xfc, 0x07, 0x0b, 0x2f, 0xc1, 0xaf, 0x7a, - 0x76, 0x0e, 0x83, 0xd5, 0x7a, 0xf5, 0x12, 0x47, 0x8b, 0xf5, 0x53, 0x14, 0xdf, 0xcf, 0x1f, 0xa3, - 0xb3, 0x03, 0x36, 0x80, 0xee, 0xdf, 0x81, 0x17, 0x2e, 0xa1, 0x47, 0x16, 0x4b, 0x4c, 0xcb, 0x5c, - 0x1a, 0xc7, 0x66, 0x70, 0x4c, 0xb1, 0xd1, 0x33, 0xbb, 0xd3, 0xd1, 0xbf, 0x87, 0xc7, 0xb5, 0x76, - 0x7e, 0xfb, 0x7c, 0xa3, 0xb4, 0x7b, 0x2b, 0x13, 0x9e, 0x62, 0x2e, 0x88, 0x40, 0xab, 0xea, 0x42, - 0xfc, 0x06, 0xad, 0xa4, 0x11, 0xbb, 0xe4, 0x4a, 0xa1, 0x68, 0x65, 0x9f, 0x74, 0x28, 0xf2, 0xd9, - 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7f, 0x9d, 0x42, 0xed, 0xbe, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json deleted file mode 100644 index 24332df82c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/errors.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/errors.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go b/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go deleted file mode 100644 index 0a5d20005c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/execution.pb.go +++ /dev/null @@ -1,677 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/execution.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type WorkflowExecution_Phase int32 - -const ( - WorkflowExecution_UNDEFINED WorkflowExecution_Phase = 0 - WorkflowExecution_QUEUED WorkflowExecution_Phase = 1 - WorkflowExecution_RUNNING WorkflowExecution_Phase = 2 - WorkflowExecution_SUCCEEDING WorkflowExecution_Phase = 3 - WorkflowExecution_SUCCEEDED WorkflowExecution_Phase = 4 - WorkflowExecution_FAILING WorkflowExecution_Phase = 5 - WorkflowExecution_FAILED WorkflowExecution_Phase = 6 - WorkflowExecution_ABORTED WorkflowExecution_Phase = 7 - WorkflowExecution_TIMED_OUT WorkflowExecution_Phase = 8 - WorkflowExecution_ABORTING WorkflowExecution_Phase = 9 -) - -var WorkflowExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDING", - 4: "SUCCEEDED", - 5: "FAILING", - 6: "FAILED", - 7: "ABORTED", - 8: "TIMED_OUT", - 9: "ABORTING", -} - -var WorkflowExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDING": 3, - "SUCCEEDED": 4, - "FAILING": 5, - "FAILED": 6, - "ABORTED": 7, - "TIMED_OUT": 8, - "ABORTING": 9, -} - -func (x WorkflowExecution_Phase) String() string { - return proto.EnumName(WorkflowExecution_Phase_name, int32(x)) -} - -func (WorkflowExecution_Phase) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{0, 0} -} - -type NodeExecution_Phase int32 - -const ( - NodeExecution_UNDEFINED NodeExecution_Phase = 0 - NodeExecution_QUEUED NodeExecution_Phase = 1 - NodeExecution_RUNNING NodeExecution_Phase = 2 - NodeExecution_SUCCEEDED NodeExecution_Phase = 3 - NodeExecution_FAILING NodeExecution_Phase = 4 - NodeExecution_FAILED NodeExecution_Phase = 5 - NodeExecution_ABORTED NodeExecution_Phase = 6 - NodeExecution_SKIPPED NodeExecution_Phase = 7 - NodeExecution_TIMED_OUT NodeExecution_Phase = 8 - NodeExecution_DYNAMIC_RUNNING NodeExecution_Phase = 9 - NodeExecution_RECOVERED NodeExecution_Phase = 10 -) - -var NodeExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "FAILING", - 5: "FAILED", - 6: "ABORTED", - 7: "SKIPPED", - 8: "TIMED_OUT", - 9: "DYNAMIC_RUNNING", - 10: "RECOVERED", -} - -var NodeExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "FAILING": 4, - "FAILED": 5, - "ABORTED": 6, - "SKIPPED": 7, - "TIMED_OUT": 8, - "DYNAMIC_RUNNING": 9, - "RECOVERED": 10, -} - -func (x NodeExecution_Phase) String() string { - return proto.EnumName(NodeExecution_Phase_name, int32(x)) -} - -func (NodeExecution_Phase) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{1, 0} -} - -type TaskExecution_Phase int32 - -const ( - TaskExecution_UNDEFINED TaskExecution_Phase = 0 - TaskExecution_QUEUED TaskExecution_Phase = 1 - TaskExecution_RUNNING TaskExecution_Phase = 2 - TaskExecution_SUCCEEDED TaskExecution_Phase = 3 - TaskExecution_ABORTED TaskExecution_Phase = 4 - TaskExecution_FAILED TaskExecution_Phase = 5 - // To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing - TaskExecution_INITIALIZING TaskExecution_Phase = 6 - // To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded - TaskExecution_WAITING_FOR_RESOURCES TaskExecution_Phase = 7 -) - -var TaskExecution_Phase_name = map[int32]string{ - 0: "UNDEFINED", - 1: "QUEUED", - 2: "RUNNING", - 3: "SUCCEEDED", - 4: "ABORTED", - 5: "FAILED", - 6: "INITIALIZING", - 7: "WAITING_FOR_RESOURCES", -} - -var TaskExecution_Phase_value = map[string]int32{ - "UNDEFINED": 0, - "QUEUED": 1, - "RUNNING": 2, - "SUCCEEDED": 3, - "ABORTED": 4, - "FAILED": 5, - "INITIALIZING": 6, - "WAITING_FOR_RESOURCES": 7, -} - -func (x TaskExecution_Phase) String() string { - return proto.EnumName(TaskExecution_Phase_name, int32(x)) -} - -func (TaskExecution_Phase) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{2, 0} -} - -// Error type: System or User -type ExecutionError_ErrorKind int32 - -const ( - ExecutionError_UNKNOWN ExecutionError_ErrorKind = 0 - ExecutionError_USER ExecutionError_ErrorKind = 1 - ExecutionError_SYSTEM ExecutionError_ErrorKind = 2 -) - -var ExecutionError_ErrorKind_name = map[int32]string{ - 0: "UNKNOWN", - 1: "USER", - 2: "SYSTEM", -} - -var ExecutionError_ErrorKind_value = map[string]int32{ - "UNKNOWN": 0, - "USER": 1, - "SYSTEM": 2, -} - -func (x ExecutionError_ErrorKind) String() string { - return proto.EnumName(ExecutionError_ErrorKind_name, int32(x)) -} - -func (ExecutionError_ErrorKind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{3, 0} -} - -type TaskLog_MessageFormat int32 - -const ( - TaskLog_UNKNOWN TaskLog_MessageFormat = 0 - TaskLog_CSV TaskLog_MessageFormat = 1 - TaskLog_JSON TaskLog_MessageFormat = 2 -) - -var TaskLog_MessageFormat_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CSV", - 2: "JSON", -} - -var TaskLog_MessageFormat_value = map[string]int32{ - "UNKNOWN": 0, - "CSV": 1, - "JSON": 2, -} - -func (x TaskLog_MessageFormat) String() string { - return proto.EnumName(TaskLog_MessageFormat_name, int32(x)) -} - -func (TaskLog_MessageFormat) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{4, 0} -} - -type QualityOfService_Tier int32 - -const ( - // Default: no quality of service specified. - QualityOfService_UNDEFINED QualityOfService_Tier = 0 - QualityOfService_HIGH QualityOfService_Tier = 1 - QualityOfService_MEDIUM QualityOfService_Tier = 2 - QualityOfService_LOW QualityOfService_Tier = 3 -) - -var QualityOfService_Tier_name = map[int32]string{ - 0: "UNDEFINED", - 1: "HIGH", - 2: "MEDIUM", - 3: "LOW", -} - -var QualityOfService_Tier_value = map[string]int32{ - "UNDEFINED": 0, - "HIGH": 1, - "MEDIUM": 2, - "LOW": 3, -} - -func (x QualityOfService_Tier) String() string { - return proto.EnumName(QualityOfService_Tier_name, int32(x)) -} - -func (QualityOfService_Tier) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{6, 0} -} - -// Indicates various phases of Workflow Execution -type WorkflowExecution struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecution) Reset() { *m = WorkflowExecution{} } -func (m *WorkflowExecution) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecution) ProtoMessage() {} -func (*WorkflowExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{0} -} - -func (m *WorkflowExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecution.Unmarshal(m, b) -} -func (m *WorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecution.Marshal(b, m, deterministic) -} -func (m *WorkflowExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecution.Merge(m, src) -} -func (m *WorkflowExecution) XXX_Size() int { - return xxx_messageInfo_WorkflowExecution.Size(m) -} -func (m *WorkflowExecution) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecution proto.InternalMessageInfo - -// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows -type NodeExecution struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecution) Reset() { *m = NodeExecution{} } -func (m *NodeExecution) String() string { return proto.CompactTextString(m) } -func (*NodeExecution) ProtoMessage() {} -func (*NodeExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{1} -} - -func (m *NodeExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecution.Unmarshal(m, b) -} -func (m *NodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecution.Marshal(b, m, deterministic) -} -func (m *NodeExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecution.Merge(m, src) -} -func (m *NodeExecution) XXX_Size() int { - return xxx_messageInfo_NodeExecution.Size(m) -} -func (m *NodeExecution) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecution proto.InternalMessageInfo - -// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, -// but this is the cumulative list that customers may want to know about for their task. -type TaskExecution struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecution) Reset() { *m = TaskExecution{} } -func (m *TaskExecution) String() string { return proto.CompactTextString(m) } -func (*TaskExecution) ProtoMessage() {} -func (*TaskExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{2} -} - -func (m *TaskExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecution.Unmarshal(m, b) -} -func (m *TaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecution.Marshal(b, m, deterministic) -} -func (m *TaskExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecution.Merge(m, src) -} -func (m *TaskExecution) XXX_Size() int { - return xxx_messageInfo_TaskExecution.Size(m) -} -func (m *TaskExecution) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecution proto.InternalMessageInfo - -// Represents the error message from the execution. -type ExecutionError struct { - // Error code indicates a grouping of a type of error. - // More Info: - Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` - // Detailed description of the error - including stack trace. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - // Full error contents accessible via a URI - ErrorUri string `protobuf:"bytes,3,opt,name=error_uri,json=errorUri,proto3" json:"error_uri,omitempty"` - Kind ExecutionError_ErrorKind `protobuf:"varint,4,opt,name=kind,proto3,enum=flyteidl.core.ExecutionError_ErrorKind" json:"kind,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExecutionError) Reset() { *m = ExecutionError{} } -func (m *ExecutionError) String() string { return proto.CompactTextString(m) } -func (*ExecutionError) ProtoMessage() {} -func (*ExecutionError) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{3} -} - -func (m *ExecutionError) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExecutionError.Unmarshal(m, b) -} -func (m *ExecutionError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExecutionError.Marshal(b, m, deterministic) -} -func (m *ExecutionError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecutionError.Merge(m, src) -} -func (m *ExecutionError) XXX_Size() int { - return xxx_messageInfo_ExecutionError.Size(m) -} -func (m *ExecutionError) XXX_DiscardUnknown() { - xxx_messageInfo_ExecutionError.DiscardUnknown(m) -} - -var xxx_messageInfo_ExecutionError proto.InternalMessageInfo - -func (m *ExecutionError) GetCode() string { - if m != nil { - return m.Code - } - return "" -} - -func (m *ExecutionError) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func (m *ExecutionError) GetErrorUri() string { - if m != nil { - return m.ErrorUri - } - return "" -} - -func (m *ExecutionError) GetKind() ExecutionError_ErrorKind { - if m != nil { - return m.Kind - } - return ExecutionError_UNKNOWN -} - -// Log information for the task that is specific to a log sink -// When our log story is flushed out, we may have more metadata here like log link expiry -type TaskLog struct { - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - MessageFormat TaskLog_MessageFormat `protobuf:"varint,3,opt,name=message_format,json=messageFormat,proto3,enum=flyteidl.core.TaskLog_MessageFormat" json:"message_format,omitempty"` - Ttl *duration.Duration `protobuf:"bytes,4,opt,name=ttl,proto3" json:"ttl,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskLog) Reset() { *m = TaskLog{} } -func (m *TaskLog) String() string { return proto.CompactTextString(m) } -func (*TaskLog) ProtoMessage() {} -func (*TaskLog) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{4} -} - -func (m *TaskLog) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskLog.Unmarshal(m, b) -} -func (m *TaskLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskLog.Marshal(b, m, deterministic) -} -func (m *TaskLog) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskLog.Merge(m, src) -} -func (m *TaskLog) XXX_Size() int { - return xxx_messageInfo_TaskLog.Size(m) -} -func (m *TaskLog) XXX_DiscardUnknown() { - xxx_messageInfo_TaskLog.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskLog proto.InternalMessageInfo - -func (m *TaskLog) GetUri() string { - if m != nil { - return m.Uri - } - return "" -} - -func (m *TaskLog) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *TaskLog) GetMessageFormat() TaskLog_MessageFormat { - if m != nil { - return m.MessageFormat - } - return TaskLog_UNKNOWN -} - -func (m *TaskLog) GetTtl() *duration.Duration { - if m != nil { - return m.Ttl - } - return nil -} - -// Represents customized execution run-time attributes. -type QualityOfServiceSpec struct { - // Indicates how much queueing delay an execution can tolerate. - QueueingBudget *duration.Duration `protobuf:"bytes,1,opt,name=queueing_budget,json=queueingBudget,proto3" json:"queueing_budget,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QualityOfServiceSpec) Reset() { *m = QualityOfServiceSpec{} } -func (m *QualityOfServiceSpec) String() string { return proto.CompactTextString(m) } -func (*QualityOfServiceSpec) ProtoMessage() {} -func (*QualityOfServiceSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{5} -} - -func (m *QualityOfServiceSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QualityOfServiceSpec.Unmarshal(m, b) -} -func (m *QualityOfServiceSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QualityOfServiceSpec.Marshal(b, m, deterministic) -} -func (m *QualityOfServiceSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_QualityOfServiceSpec.Merge(m, src) -} -func (m *QualityOfServiceSpec) XXX_Size() int { - return xxx_messageInfo_QualityOfServiceSpec.Size(m) -} -func (m *QualityOfServiceSpec) XXX_DiscardUnknown() { - xxx_messageInfo_QualityOfServiceSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_QualityOfServiceSpec proto.InternalMessageInfo - -func (m *QualityOfServiceSpec) GetQueueingBudget() *duration.Duration { - if m != nil { - return m.QueueingBudget - } - return nil -} - -// Indicates the priority of an execution. -type QualityOfService struct { - // Types that are valid to be assigned to Designation: - // *QualityOfService_Tier_ - // *QualityOfService_Spec - Designation isQualityOfService_Designation `protobuf_oneof:"designation"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QualityOfService) Reset() { *m = QualityOfService{} } -func (m *QualityOfService) String() string { return proto.CompactTextString(m) } -func (*QualityOfService) ProtoMessage() {} -func (*QualityOfService) Descriptor() ([]byte, []int) { - return fileDescriptor_1523842fd9084ee4, []int{6} -} - -func (m *QualityOfService) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QualityOfService.Unmarshal(m, b) -} -func (m *QualityOfService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QualityOfService.Marshal(b, m, deterministic) -} -func (m *QualityOfService) XXX_Merge(src proto.Message) { - xxx_messageInfo_QualityOfService.Merge(m, src) -} -func (m *QualityOfService) XXX_Size() int { - return xxx_messageInfo_QualityOfService.Size(m) -} -func (m *QualityOfService) XXX_DiscardUnknown() { - xxx_messageInfo_QualityOfService.DiscardUnknown(m) -} - -var xxx_messageInfo_QualityOfService proto.InternalMessageInfo - -type isQualityOfService_Designation interface { - isQualityOfService_Designation() -} - -type QualityOfService_Tier_ struct { - Tier QualityOfService_Tier `protobuf:"varint,1,opt,name=tier,proto3,enum=flyteidl.core.QualityOfService_Tier,oneof"` -} - -type QualityOfService_Spec struct { - Spec *QualityOfServiceSpec `protobuf:"bytes,2,opt,name=spec,proto3,oneof"` -} - -func (*QualityOfService_Tier_) isQualityOfService_Designation() {} - -func (*QualityOfService_Spec) isQualityOfService_Designation() {} - -func (m *QualityOfService) GetDesignation() isQualityOfService_Designation { - if m != nil { - return m.Designation - } - return nil -} - -func (m *QualityOfService) GetTier() QualityOfService_Tier { - if x, ok := m.GetDesignation().(*QualityOfService_Tier_); ok { - return x.Tier - } - return QualityOfService_UNDEFINED -} - -func (m *QualityOfService) GetSpec() *QualityOfServiceSpec { - if x, ok := m.GetDesignation().(*QualityOfService_Spec); ok { - return x.Spec - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*QualityOfService) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*QualityOfService_Tier_)(nil), - (*QualityOfService_Spec)(nil), - } -} - -func init() { - proto.RegisterEnum("flyteidl.core.WorkflowExecution_Phase", WorkflowExecution_Phase_name, WorkflowExecution_Phase_value) - proto.RegisterEnum("flyteidl.core.NodeExecution_Phase", NodeExecution_Phase_name, NodeExecution_Phase_value) - proto.RegisterEnum("flyteidl.core.TaskExecution_Phase", TaskExecution_Phase_name, TaskExecution_Phase_value) - proto.RegisterEnum("flyteidl.core.ExecutionError_ErrorKind", ExecutionError_ErrorKind_name, ExecutionError_ErrorKind_value) - proto.RegisterEnum("flyteidl.core.TaskLog_MessageFormat", TaskLog_MessageFormat_name, TaskLog_MessageFormat_value) - proto.RegisterEnum("flyteidl.core.QualityOfService_Tier", QualityOfService_Tier_name, QualityOfService_Tier_value) - proto.RegisterType((*WorkflowExecution)(nil), "flyteidl.core.WorkflowExecution") - proto.RegisterType((*NodeExecution)(nil), "flyteidl.core.NodeExecution") - proto.RegisterType((*TaskExecution)(nil), "flyteidl.core.TaskExecution") - proto.RegisterType((*ExecutionError)(nil), "flyteidl.core.ExecutionError") - proto.RegisterType((*TaskLog)(nil), "flyteidl.core.TaskLog") - proto.RegisterType((*QualityOfServiceSpec)(nil), "flyteidl.core.QualityOfServiceSpec") - proto.RegisterType((*QualityOfService)(nil), "flyteidl.core.QualityOfService") -} - -func init() { proto.RegisterFile("flyteidl/core/execution.proto", fileDescriptor_1523842fd9084ee4) } - -var fileDescriptor_1523842fd9084ee4 = []byte{ - // 731 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0xcf, 0x6e, 0xda, 0x4a, - 0x14, 0xc6, 0x63, 0x70, 0xf8, 0x73, 0x08, 0x64, 0xee, 0xdc, 0x7b, 0x25, 0x72, 0xaf, 0x5a, 0x45, - 0x6e, 0xa5, 0x46, 0xaa, 0x6a, 0x4b, 0xb4, 0x9b, 0xa6, 0xdd, 0x00, 0x1e, 0x12, 0x17, 0xb0, 0x13, - 0x1b, 0x07, 0x25, 0x1b, 0x04, 0x78, 0x70, 0xac, 0x00, 0x43, 0x8d, 0xdd, 0x36, 0xfb, 0xbe, 0x40, - 0x37, 0x7d, 0x82, 0x4a, 0x7d, 0x83, 0x3e, 0x43, 0x57, 0x7d, 0x80, 0x3e, 0x4d, 0x35, 0x03, 0x4e, - 0x80, 0x56, 0xad, 0x2a, 0x75, 0x83, 0xe6, 0xcc, 0x39, 0xdf, 0x99, 0xdf, 0x77, 0xf0, 0x0c, 0xdc, - 0x19, 0x8d, 0xaf, 0x23, 0x1a, 0x78, 0x63, 0x6d, 0xc8, 0x42, 0xaa, 0xd1, 0x37, 0x74, 0x18, 0x47, - 0x01, 0x9b, 0xaa, 0xb3, 0x90, 0x45, 0x0c, 0x17, 0x93, 0xb4, 0xca, 0xd3, 0xff, 0xdd, 0xf5, 0x19, - 0xf3, 0xc7, 0x54, 0x13, 0xc9, 0x41, 0x3c, 0xd2, 0xbc, 0x38, 0xec, 0xdf, 0x96, 0x2b, 0x1f, 0x25, - 0xf8, 0xab, 0xcb, 0xc2, 0xab, 0xd1, 0x98, 0xbd, 0x26, 0x49, 0x2b, 0xe5, 0x9d, 0x04, 0xdb, 0x27, - 0x97, 0xfd, 0x39, 0xc5, 0x45, 0xc8, 0xbb, 0xa6, 0x4e, 0x1a, 0x86, 0x49, 0x74, 0xb4, 0x85, 0x01, - 0x32, 0xa7, 0x2e, 0x71, 0x89, 0x8e, 0x24, 0x5c, 0x80, 0xac, 0xed, 0x9a, 0xa6, 0x61, 0x1e, 0xa1, - 0x14, 0x2e, 0x01, 0x38, 0x6e, 0xbd, 0x4e, 0x88, 0xce, 0xe3, 0x34, 0xd7, 0x2d, 0x63, 0xa2, 0x23, - 0x99, 0xd7, 0x36, 0xaa, 0x46, 0x8b, 0xe7, 0xb6, 0x79, 0x13, 0x1e, 0x10, 0x1d, 0x65, 0x78, 0xa2, - 0x5a, 0xb3, 0xec, 0x0e, 0xd1, 0x51, 0x96, 0x8b, 0x3a, 0x46, 0x9b, 0xe8, 0x3d, 0xcb, 0xed, 0xa0, - 0x1c, 0xde, 0x81, 0x9c, 0xc8, 0x71, 0x55, 0x5e, 0xf9, 0x24, 0x41, 0xd1, 0x64, 0x1e, 0xbd, 0xa5, - 0xfc, 0xf0, 0xdb, 0x94, 0x6b, 0x54, 0xe9, 0x55, 0x2a, 0x79, 0x85, 0x6a, 0x7b, 0x95, 0x4a, 0x20, - 0x3a, 0x4d, 0xe3, 0xe4, 0xe4, 0x47, 0x88, 0x7f, 0xc3, 0xae, 0x7e, 0x6e, 0x56, 0xdb, 0x46, 0xbd, - 0x97, 0x9c, 0x92, 0xe7, 0x35, 0x36, 0xa9, 0x5b, 0x67, 0xc4, 0x26, 0x3a, 0x02, 0xe5, 0xbd, 0x04, - 0xc5, 0x4e, 0x7f, 0x7e, 0x75, 0x0b, 0xfe, 0xf6, 0x0f, 0x80, 0x27, 0x7c, 0xeb, 0xe0, 0x08, 0x76, - 0x0c, 0xd3, 0xe8, 0x18, 0xd5, 0x96, 0x71, 0xc1, 0x95, 0x19, 0xbc, 0x07, 0xff, 0x76, 0xab, 0x06, - 0x9f, 0x61, 0xaf, 0x61, 0xd9, 0x3d, 0x9b, 0x38, 0x96, 0x6b, 0xd7, 0x89, 0x83, 0xb2, 0xca, 0x67, - 0x09, 0x4a, 0x37, 0x50, 0x24, 0x0c, 0x59, 0x88, 0x31, 0xc8, 0x43, 0xe6, 0xd1, 0xb2, 0xb4, 0x2f, - 0x1d, 0xe4, 0x6d, 0xb1, 0xc6, 0x65, 0xc8, 0x4e, 0xe8, 0x7c, 0xde, 0xf7, 0x69, 0x39, 0x25, 0xb6, - 0x93, 0x10, 0xff, 0x0f, 0x79, 0xca, 0x65, 0xbd, 0x38, 0x0c, 0xca, 0x69, 0x91, 0xcb, 0x89, 0x0d, - 0x37, 0x0c, 0xf0, 0x33, 0x90, 0xaf, 0x82, 0xa9, 0x57, 0x96, 0xf7, 0xa5, 0x83, 0x52, 0xe5, 0x81, - 0xba, 0xf6, 0x5d, 0xaa, 0xeb, 0xe7, 0xaa, 0xe2, 0xb7, 0x19, 0x4c, 0x3d, 0x5b, 0x88, 0x14, 0x15, - 0xf2, 0x37, 0x5b, 0xdc, 0xad, 0x6b, 0x36, 0x4d, 0xab, 0x6b, 0xa2, 0x2d, 0x9c, 0x03, 0xd9, 0x75, - 0x88, 0x8d, 0x24, 0xee, 0xdb, 0x39, 0x77, 0x3a, 0xa4, 0x8d, 0x52, 0xca, 0x57, 0x09, 0xb2, 0x7c, - 0xc6, 0x2d, 0xe6, 0x63, 0x04, 0x69, 0xce, 0xb3, 0xb0, 0xc0, 0x97, 0xdc, 0xd5, 0xb4, 0x3f, 0x49, - 0xf0, 0xc5, 0x1a, 0x37, 0xa1, 0xb4, 0xb4, 0xd1, 0x1b, 0xb1, 0x70, 0xd2, 0x8f, 0x84, 0x81, 0x52, - 0xe5, 0xfe, 0x06, 0xe8, 0xb2, 0xab, 0xda, 0x5e, 0x14, 0x37, 0x44, 0xad, 0x5d, 0x9c, 0xac, 0x86, - 0xf8, 0x21, 0xa4, 0xa3, 0x68, 0x2c, 0xac, 0x16, 0x2a, 0x7b, 0xea, 0xe2, 0xce, 0xa9, 0xc9, 0x9d, - 0x53, 0xf5, 0xe5, 0x9d, 0xb3, 0x79, 0x95, 0xa2, 0x41, 0x71, 0xad, 0xd9, 0xba, 0xbf, 0x2c, 0xa4, - 0xeb, 0xce, 0x19, 0x92, 0xb8, 0xd1, 0x17, 0x8e, 0x65, 0xa2, 0x94, 0x72, 0x01, 0xff, 0x9c, 0xc6, - 0xfd, 0x71, 0x10, 0x5d, 0x5b, 0x23, 0x87, 0x86, 0xaf, 0x82, 0x21, 0x75, 0x66, 0x74, 0x88, 0x6b, - 0xb0, 0xfb, 0x32, 0xa6, 0x31, 0x0d, 0xa6, 0x7e, 0x6f, 0x10, 0x7b, 0x3e, 0x8d, 0x84, 0xe9, 0x9f, - 0x12, 0x94, 0x12, 0x45, 0x4d, 0x08, 0x94, 0x2f, 0x12, 0xa0, 0xcd, 0xe6, 0xf8, 0x10, 0xe4, 0x28, - 0xa0, 0xa1, 0xe8, 0xf6, 0xfd, 0x44, 0x36, 0xcb, 0xd5, 0x4e, 0x40, 0xc3, 0xe3, 0x2d, 0x5b, 0x68, - 0xf0, 0x53, 0x90, 0xe7, 0x33, 0x3a, 0x14, 0xb3, 0x2e, 0x54, 0xee, 0xfd, 0x42, 0xcb, 0x7d, 0x70, - 0x29, 0x97, 0x28, 0x4f, 0x40, 0xe6, 0xad, 0x36, 0x2f, 0x45, 0x0e, 0xe4, 0x63, 0xe3, 0xe8, 0x78, - 0xf1, 0x8f, 0xb7, 0x89, 0x6e, 0xb8, 0x6d, 0x94, 0xe2, 0x73, 0x6a, 0x59, 0x5d, 0x94, 0xae, 0x15, - 0xa1, 0xe0, 0xd1, 0x79, 0xe0, 0x4f, 0x85, 0xc1, 0xda, 0xf3, 0x8b, 0x43, 0x3f, 0x88, 0x2e, 0xe3, - 0x81, 0x3a, 0x64, 0x13, 0x4d, 0x9c, 0xce, 0x42, 0x7f, 0xb1, 0xd0, 0x6e, 0x9e, 0x4e, 0x9f, 0x4e, - 0xb5, 0xd9, 0xe0, 0x91, 0xcf, 0xb4, 0xb5, 0xd7, 0x74, 0x90, 0x11, 0x13, 0x7b, 0xfc, 0x2d, 0x00, - 0x00, 0xff, 0xff, 0x52, 0x5d, 0xa0, 0x56, 0x65, 0x05, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json deleted file mode 100644 index 920ed79fa4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/execution.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/execution.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go b/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go deleted file mode 100644 index 4ea56b88f2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/identifier.pb.go +++ /dev/null @@ -1,396 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/identifier.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Indicates a resource type within Flyte. -type ResourceType int32 - -const ( - ResourceType_UNSPECIFIED ResourceType = 0 - ResourceType_TASK ResourceType = 1 - ResourceType_WORKFLOW ResourceType = 2 - ResourceType_LAUNCH_PLAN ResourceType = 3 - // A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. - // Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects - // in a similar manner to other Flyte objects - ResourceType_DATASET ResourceType = 4 -) - -var ResourceType_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "TASK", - 2: "WORKFLOW", - 3: "LAUNCH_PLAN", - 4: "DATASET", -} - -var ResourceType_value = map[string]int32{ - "UNSPECIFIED": 0, - "TASK": 1, - "WORKFLOW": 2, - "LAUNCH_PLAN": 3, - "DATASET": 4, -} - -func (x ResourceType) String() string { - return proto.EnumName(ResourceType_name, int32(x)) -} - -func (ResourceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{0} -} - -// Encapsulation of fields that uniquely identifies a Flyte resource. -type Identifier struct { - // Identifies the specific type of resource that this identifier corresponds to. - ResourceType ResourceType `protobuf:"varint,1,opt,name=resource_type,json=resourceType,proto3,enum=flyteidl.core.ResourceType" json:"resource_type,omitempty"` - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - // User provided value for the resource. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - // Specific version of the resource. - Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Identifier) Reset() { *m = Identifier{} } -func (m *Identifier) String() string { return proto.CompactTextString(m) } -func (*Identifier) ProtoMessage() {} -func (*Identifier) Descriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{0} -} - -func (m *Identifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Identifier.Unmarshal(m, b) -} -func (m *Identifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Identifier.Marshal(b, m, deterministic) -} -func (m *Identifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_Identifier.Merge(m, src) -} -func (m *Identifier) XXX_Size() int { - return xxx_messageInfo_Identifier.Size(m) -} -func (m *Identifier) XXX_DiscardUnknown() { - xxx_messageInfo_Identifier.DiscardUnknown(m) -} - -var xxx_messageInfo_Identifier proto.InternalMessageInfo - -func (m *Identifier) GetResourceType() ResourceType { - if m != nil { - return m.ResourceType - } - return ResourceType_UNSPECIFIED -} - -func (m *Identifier) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *Identifier) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *Identifier) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Identifier) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -// Encapsulation of fields that uniquely identifies a Flyte workflow execution -type WorkflowExecutionIdentifier struct { - // Name of the project the resource belongs to. - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Name of the domain the resource belongs to. - // A domain can be considered as a subset within a specific project. - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // User or system provided value for the resource. - Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionIdentifier) Reset() { *m = WorkflowExecutionIdentifier{} } -func (m *WorkflowExecutionIdentifier) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionIdentifier) ProtoMessage() {} -func (*WorkflowExecutionIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{1} -} - -func (m *WorkflowExecutionIdentifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionIdentifier.Unmarshal(m, b) -} -func (m *WorkflowExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionIdentifier.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionIdentifier.Merge(m, src) -} -func (m *WorkflowExecutionIdentifier) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionIdentifier.Size(m) -} -func (m *WorkflowExecutionIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionIdentifier proto.InternalMessageInfo - -func (m *WorkflowExecutionIdentifier) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *WorkflowExecutionIdentifier) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *WorkflowExecutionIdentifier) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -// Encapsulation of fields that identify a Flyte node execution entity. -type NodeExecutionIdentifier struct { - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionIdentifier) Reset() { *m = NodeExecutionIdentifier{} } -func (m *NodeExecutionIdentifier) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionIdentifier) ProtoMessage() {} -func (*NodeExecutionIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{2} -} - -func (m *NodeExecutionIdentifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionIdentifier.Unmarshal(m, b) -} -func (m *NodeExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionIdentifier.Marshal(b, m, deterministic) -} -func (m *NodeExecutionIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionIdentifier.Merge(m, src) -} -func (m *NodeExecutionIdentifier) XXX_Size() int { - return xxx_messageInfo_NodeExecutionIdentifier.Size(m) -} -func (m *NodeExecutionIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionIdentifier proto.InternalMessageInfo - -func (m *NodeExecutionIdentifier) GetNodeId() string { - if m != nil { - return m.NodeId - } - return "" -} - -func (m *NodeExecutionIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -// Encapsulation of fields that identify a Flyte task execution entity. -type TaskExecutionIdentifier struct { - TaskId *Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - NodeExecutionId *NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=node_execution_id,json=nodeExecutionId,proto3" json:"node_execution_id,omitempty"` - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionIdentifier) Reset() { *m = TaskExecutionIdentifier{} } -func (m *TaskExecutionIdentifier) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionIdentifier) ProtoMessage() {} -func (*TaskExecutionIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{3} -} - -func (m *TaskExecutionIdentifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionIdentifier.Unmarshal(m, b) -} -func (m *TaskExecutionIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionIdentifier.Marshal(b, m, deterministic) -} -func (m *TaskExecutionIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionIdentifier.Merge(m, src) -} -func (m *TaskExecutionIdentifier) XXX_Size() int { - return xxx_messageInfo_TaskExecutionIdentifier.Size(m) -} -func (m *TaskExecutionIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionIdentifier proto.InternalMessageInfo - -func (m *TaskExecutionIdentifier) GetTaskId() *Identifier { - if m != nil { - return m.TaskId - } - return nil -} - -func (m *TaskExecutionIdentifier) GetNodeExecutionId() *NodeExecutionIdentifier { - if m != nil { - return m.NodeExecutionId - } - return nil -} - -func (m *TaskExecutionIdentifier) GetRetryAttempt() uint32 { - if m != nil { - return m.RetryAttempt - } - return 0 -} - -// Encapsulation of fields the uniquely identify a signal. -type SignalIdentifier struct { - // Unique identifier for a signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // Identifies the Flyte workflow execution this signal belongs to. - ExecutionId *WorkflowExecutionIdentifier `protobuf:"bytes,2,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalIdentifier) Reset() { *m = SignalIdentifier{} } -func (m *SignalIdentifier) String() string { return proto.CompactTextString(m) } -func (*SignalIdentifier) ProtoMessage() {} -func (*SignalIdentifier) Descriptor() ([]byte, []int) { - return fileDescriptor_adfa846a86e1fa0c, []int{4} -} - -func (m *SignalIdentifier) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalIdentifier.Unmarshal(m, b) -} -func (m *SignalIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalIdentifier.Marshal(b, m, deterministic) -} -func (m *SignalIdentifier) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalIdentifier.Merge(m, src) -} -func (m *SignalIdentifier) XXX_Size() int { - return xxx_messageInfo_SignalIdentifier.Size(m) -} -func (m *SignalIdentifier) XXX_DiscardUnknown() { - xxx_messageInfo_SignalIdentifier.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalIdentifier proto.InternalMessageInfo - -func (m *SignalIdentifier) GetSignalId() string { - if m != nil { - return m.SignalId - } - return "" -} - -func (m *SignalIdentifier) GetExecutionId() *WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.core.ResourceType", ResourceType_name, ResourceType_value) - proto.RegisterType((*Identifier)(nil), "flyteidl.core.Identifier") - proto.RegisterType((*WorkflowExecutionIdentifier)(nil), "flyteidl.core.WorkflowExecutionIdentifier") - proto.RegisterType((*NodeExecutionIdentifier)(nil), "flyteidl.core.NodeExecutionIdentifier") - proto.RegisterType((*TaskExecutionIdentifier)(nil), "flyteidl.core.TaskExecutionIdentifier") - proto.RegisterType((*SignalIdentifier)(nil), "flyteidl.core.SignalIdentifier") -} - -func init() { proto.RegisterFile("flyteidl/core/identifier.proto", fileDescriptor_adfa846a86e1fa0c) } - -var fileDescriptor_adfa846a86e1fa0c = []byte{ - // 467 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x53, 0x41, 0x8f, 0xd2, 0x50, - 0x10, 0xb6, 0x2c, 0x02, 0x3b, 0x05, 0xb7, 0xbe, 0x83, 0xd4, 0x90, 0x98, 0x4d, 0x4d, 0xcc, 0x66, - 0x13, 0xdb, 0x04, 0x6f, 0xc6, 0x83, 0x75, 0x97, 0x8d, 0xcd, 0x22, 0xbb, 0x29, 0x25, 0x24, 0x5e, - 0x48, 0x69, 0x87, 0xfa, 0x04, 0xfa, 0x9a, 0xd7, 0x87, 0xda, 0x8b, 0x89, 0x7f, 0xc8, 0x9f, 0xe1, - 0xef, 0x32, 0xaf, 0x94, 0xdd, 0x42, 0x40, 0x2f, 0x7b, 0xeb, 0xcc, 0xf7, 0xbd, 0xf9, 0xbe, 0x99, - 0xce, 0xc0, 0x8b, 0xd9, 0x22, 0x13, 0x48, 0xc3, 0x85, 0x15, 0x30, 0x8e, 0x16, 0x0d, 0x31, 0x16, - 0x74, 0x46, 0x91, 0x9b, 0x09, 0x67, 0x82, 0x91, 0xd6, 0x06, 0x37, 0x25, 0x6e, 0xfc, 0x56, 0x00, - 0x9c, 0x3b, 0x0e, 0x79, 0x0f, 0x2d, 0x8e, 0x29, 0x5b, 0xf1, 0x00, 0x27, 0x22, 0x4b, 0x50, 0x57, - 0x4e, 0x95, 0xb3, 0x27, 0xdd, 0x8e, 0xb9, 0xf5, 0xca, 0x74, 0x0b, 0x8e, 0x97, 0x25, 0xe8, 0x36, - 0x79, 0x29, 0x22, 0x3a, 0xd4, 0x13, 0xce, 0xbe, 0x62, 0x20, 0xf4, 0xca, 0xa9, 0x72, 0x76, 0xec, - 0x6e, 0x42, 0xf2, 0x0c, 0x6a, 0x21, 0x5b, 0xfa, 0x34, 0xd6, 0x8f, 0x72, 0xa0, 0x88, 0x08, 0x81, - 0x6a, 0xec, 0x2f, 0x51, 0xaf, 0xe6, 0xd9, 0xfc, 0x5b, 0x56, 0xf9, 0x86, 0x3c, 0xa5, 0x2c, 0xd6, - 0x1f, 0xaf, 0xab, 0x14, 0xa1, 0x11, 0x40, 0x67, 0xcc, 0xf8, 0x7c, 0xb6, 0x60, 0xdf, 0x7b, 0x3f, - 0x30, 0x58, 0x09, 0xca, 0xe2, 0x52, 0x03, 0x25, 0x79, 0xe5, 0x90, 0x7c, 0xe5, 0x7f, 0xf2, 0xc6, - 0x2f, 0x05, 0xda, 0x03, 0x16, 0xe2, 0x3e, 0x85, 0x36, 0xd4, 0x63, 0x16, 0xe2, 0x84, 0x86, 0x85, - 0x42, 0x4d, 0x86, 0x4e, 0x48, 0x3e, 0x41, 0x13, 0x37, 0x7c, 0x89, 0x4a, 0x19, 0xb5, 0x7b, 0xbe, - 0x33, 0xba, 0x7f, 0x98, 0x77, 0x55, 0xbc, 0x4f, 0x1a, 0x7f, 0x14, 0x68, 0x7b, 0x7e, 0x3a, 0xdf, - 0xe7, 0xa1, 0x0b, 0x75, 0xe1, 0xa7, 0xf3, 0x8d, 0x07, 0xb5, 0xfb, 0x7c, 0x47, 0xa5, 0x54, 0xb4, - 0x26, 0x99, 0x4e, 0x48, 0x5c, 0x78, 0x9a, 0xfb, 0xde, 0xe3, 0xf1, 0xd5, 0xce, 0xeb, 0x03, 0xad, - 0xbb, 0x27, 0xf1, 0x36, 0x40, 0x5e, 0xca, 0x75, 0x11, 0x3c, 0x9b, 0xf8, 0x42, 0xe0, 0x32, 0x11, - 0xf9, 0x9f, 0x6d, 0xc9, 0x8d, 0x10, 0x3c, 0xb3, 0xd7, 0x39, 0xe3, 0x27, 0x68, 0x43, 0x1a, 0xc5, - 0xfe, 0xa2, 0xd4, 0x40, 0x07, 0x8e, 0xd3, 0x3c, 0x77, 0x3f, 0xc6, 0x46, 0x5a, 0x90, 0x1e, 0x78, - 0x90, 0xe7, 0x23, 0x68, 0x96, 0xf7, 0x95, 0x9c, 0x80, 0x3a, 0x1a, 0x0c, 0x6f, 0x7b, 0x17, 0xce, - 0x95, 0xd3, 0xbb, 0xd4, 0x1e, 0x91, 0x06, 0x54, 0x3d, 0x7b, 0x78, 0xad, 0x29, 0xa4, 0x09, 0x8d, - 0xf1, 0x8d, 0x7b, 0x7d, 0xd5, 0xbf, 0x19, 0x6b, 0x15, 0x49, 0xec, 0xdb, 0xa3, 0xc1, 0xc5, 0xc7, - 0xc9, 0x6d, 0xdf, 0x1e, 0x68, 0x47, 0x44, 0x85, 0xfa, 0xa5, 0xed, 0xd9, 0xc3, 0x9e, 0xa7, 0x55, - 0x3f, 0xbc, 0xfb, 0xfc, 0x36, 0xa2, 0xe2, 0xcb, 0x6a, 0x6a, 0x06, 0x6c, 0x69, 0xe5, 0xde, 0x18, - 0x8f, 0xd6, 0x1f, 0xd6, 0xdd, 0x11, 0x46, 0x18, 0x5b, 0xc9, 0xf4, 0x75, 0xc4, 0xac, 0xad, 0xbb, - 0x9c, 0xd6, 0xf2, 0x6b, 0x7c, 0xf3, 0x37, 0x00, 0x00, 0xff, 0xff, 0x4a, 0x34, 0xd8, 0xe0, 0xaf, - 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json deleted file mode 100644 index 879a523929..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/identifier.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/identifier.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go b/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go deleted file mode 100644 index 521b92942d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/interface.pb.go +++ /dev/null @@ -1,392 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/interface.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a strongly typed variable. -type Variable struct { - // Variable literal type. - Type *LiteralType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - //+optional string describing input variable - Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` - //+optional This object allows the user to specify how Artifacts are created. - // name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - ArtifactPartialId *ArtifactID `protobuf:"bytes,3,opt,name=artifact_partial_id,json=artifactPartialId,proto3" json:"artifact_partial_id,omitempty"` - ArtifactTag *ArtifactTag `protobuf:"bytes,4,opt,name=artifact_tag,json=artifactTag,proto3" json:"artifact_tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Variable) Reset() { *m = Variable{} } -func (m *Variable) String() string { return proto.CompactTextString(m) } -func (*Variable) ProtoMessage() {} -func (*Variable) Descriptor() ([]byte, []int) { - return fileDescriptor_cd7be6cbe85c3def, []int{0} -} - -func (m *Variable) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Variable.Unmarshal(m, b) -} -func (m *Variable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Variable.Marshal(b, m, deterministic) -} -func (m *Variable) XXX_Merge(src proto.Message) { - xxx_messageInfo_Variable.Merge(m, src) -} -func (m *Variable) XXX_Size() int { - return xxx_messageInfo_Variable.Size(m) -} -func (m *Variable) XXX_DiscardUnknown() { - xxx_messageInfo_Variable.DiscardUnknown(m) -} - -var xxx_messageInfo_Variable proto.InternalMessageInfo - -func (m *Variable) GetType() *LiteralType { - if m != nil { - return m.Type - } - return nil -} - -func (m *Variable) GetDescription() string { - if m != nil { - return m.Description - } - return "" -} - -func (m *Variable) GetArtifactPartialId() *ArtifactID { - if m != nil { - return m.ArtifactPartialId - } - return nil -} - -func (m *Variable) GetArtifactTag() *ArtifactTag { - if m != nil { - return m.ArtifactTag - } - return nil -} - -// A map of Variables -type VariableMap struct { - // Defines a map of variable names to variables. - Variables map[string]*Variable `protobuf:"bytes,1,rep,name=variables,proto3" json:"variables,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *VariableMap) Reset() { *m = VariableMap{} } -func (m *VariableMap) String() string { return proto.CompactTextString(m) } -func (*VariableMap) ProtoMessage() {} -func (*VariableMap) Descriptor() ([]byte, []int) { - return fileDescriptor_cd7be6cbe85c3def, []int{1} -} - -func (m *VariableMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_VariableMap.Unmarshal(m, b) -} -func (m *VariableMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_VariableMap.Marshal(b, m, deterministic) -} -func (m *VariableMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_VariableMap.Merge(m, src) -} -func (m *VariableMap) XXX_Size() int { - return xxx_messageInfo_VariableMap.Size(m) -} -func (m *VariableMap) XXX_DiscardUnknown() { - xxx_messageInfo_VariableMap.DiscardUnknown(m) -} - -var xxx_messageInfo_VariableMap proto.InternalMessageInfo - -func (m *VariableMap) GetVariables() map[string]*Variable { - if m != nil { - return m.Variables - } - return nil -} - -// Defines strongly typed inputs and outputs. -type TypedInterface struct { - Inputs *VariableMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - Outputs *VariableMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TypedInterface) Reset() { *m = TypedInterface{} } -func (m *TypedInterface) String() string { return proto.CompactTextString(m) } -func (*TypedInterface) ProtoMessage() {} -func (*TypedInterface) Descriptor() ([]byte, []int) { - return fileDescriptor_cd7be6cbe85c3def, []int{2} -} - -func (m *TypedInterface) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TypedInterface.Unmarshal(m, b) -} -func (m *TypedInterface) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TypedInterface.Marshal(b, m, deterministic) -} -func (m *TypedInterface) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypedInterface.Merge(m, src) -} -func (m *TypedInterface) XXX_Size() int { - return xxx_messageInfo_TypedInterface.Size(m) -} -func (m *TypedInterface) XXX_DiscardUnknown() { - xxx_messageInfo_TypedInterface.DiscardUnknown(m) -} - -var xxx_messageInfo_TypedInterface proto.InternalMessageInfo - -func (m *TypedInterface) GetInputs() *VariableMap { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *TypedInterface) GetOutputs() *VariableMap { - if m != nil { - return m.Outputs - } - return nil -} - -// A parameter is used as input to a launch plan and has -// the special ability to have a default value or mark itself as required. -type Parameter struct { - //+required Variable. Defines the type of the variable backing this parameter. - Var *Variable `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - //+optional - // - // Types that are valid to be assigned to Behavior: - // *Parameter_Default - // *Parameter_Required - // *Parameter_ArtifactQuery - // *Parameter_ArtifactId - Behavior isParameter_Behavior `protobuf_oneof:"behavior"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Parameter) Reset() { *m = Parameter{} } -func (m *Parameter) String() string { return proto.CompactTextString(m) } -func (*Parameter) ProtoMessage() {} -func (*Parameter) Descriptor() ([]byte, []int) { - return fileDescriptor_cd7be6cbe85c3def, []int{3} -} - -func (m *Parameter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Parameter.Unmarshal(m, b) -} -func (m *Parameter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Parameter.Marshal(b, m, deterministic) -} -func (m *Parameter) XXX_Merge(src proto.Message) { - xxx_messageInfo_Parameter.Merge(m, src) -} -func (m *Parameter) XXX_Size() int { - return xxx_messageInfo_Parameter.Size(m) -} -func (m *Parameter) XXX_DiscardUnknown() { - xxx_messageInfo_Parameter.DiscardUnknown(m) -} - -var xxx_messageInfo_Parameter proto.InternalMessageInfo - -func (m *Parameter) GetVar() *Variable { - if m != nil { - return m.Var - } - return nil -} - -type isParameter_Behavior interface { - isParameter_Behavior() -} - -type Parameter_Default struct { - Default *Literal `protobuf:"bytes,2,opt,name=default,proto3,oneof"` -} - -type Parameter_Required struct { - Required bool `protobuf:"varint,3,opt,name=required,proto3,oneof"` -} - -type Parameter_ArtifactQuery struct { - ArtifactQuery *ArtifactQuery `protobuf:"bytes,4,opt,name=artifact_query,json=artifactQuery,proto3,oneof"` -} - -type Parameter_ArtifactId struct { - ArtifactId *ArtifactID `protobuf:"bytes,5,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -func (*Parameter_Default) isParameter_Behavior() {} - -func (*Parameter_Required) isParameter_Behavior() {} - -func (*Parameter_ArtifactQuery) isParameter_Behavior() {} - -func (*Parameter_ArtifactId) isParameter_Behavior() {} - -func (m *Parameter) GetBehavior() isParameter_Behavior { - if m != nil { - return m.Behavior - } - return nil -} - -func (m *Parameter) GetDefault() *Literal { - if x, ok := m.GetBehavior().(*Parameter_Default); ok { - return x.Default - } - return nil -} - -func (m *Parameter) GetRequired() bool { - if x, ok := m.GetBehavior().(*Parameter_Required); ok { - return x.Required - } - return false -} - -func (m *Parameter) GetArtifactQuery() *ArtifactQuery { - if x, ok := m.GetBehavior().(*Parameter_ArtifactQuery); ok { - return x.ArtifactQuery - } - return nil -} - -func (m *Parameter) GetArtifactId() *ArtifactID { - if x, ok := m.GetBehavior().(*Parameter_ArtifactId); ok { - return x.ArtifactId - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Parameter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Parameter_Default)(nil), - (*Parameter_Required)(nil), - (*Parameter_ArtifactQuery)(nil), - (*Parameter_ArtifactId)(nil), - } -} - -// A map of Parameters. -type ParameterMap struct { - // Defines a map of parameter names to parameters. - Parameters map[string]*Parameter `protobuf:"bytes,1,rep,name=parameters,proto3" json:"parameters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParameterMap) Reset() { *m = ParameterMap{} } -func (m *ParameterMap) String() string { return proto.CompactTextString(m) } -func (*ParameterMap) ProtoMessage() {} -func (*ParameterMap) Descriptor() ([]byte, []int) { - return fileDescriptor_cd7be6cbe85c3def, []int{4} -} - -func (m *ParameterMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParameterMap.Unmarshal(m, b) -} -func (m *ParameterMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParameterMap.Marshal(b, m, deterministic) -} -func (m *ParameterMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParameterMap.Merge(m, src) -} -func (m *ParameterMap) XXX_Size() int { - return xxx_messageInfo_ParameterMap.Size(m) -} -func (m *ParameterMap) XXX_DiscardUnknown() { - xxx_messageInfo_ParameterMap.DiscardUnknown(m) -} - -var xxx_messageInfo_ParameterMap proto.InternalMessageInfo - -func (m *ParameterMap) GetParameters() map[string]*Parameter { - if m != nil { - return m.Parameters - } - return nil -} - -func init() { - proto.RegisterType((*Variable)(nil), "flyteidl.core.Variable") - proto.RegisterType((*VariableMap)(nil), "flyteidl.core.VariableMap") - proto.RegisterMapType((map[string]*Variable)(nil), "flyteidl.core.VariableMap.VariablesEntry") - proto.RegisterType((*TypedInterface)(nil), "flyteidl.core.TypedInterface") - proto.RegisterType((*Parameter)(nil), "flyteidl.core.Parameter") - proto.RegisterType((*ParameterMap)(nil), "flyteidl.core.ParameterMap") - proto.RegisterMapType((map[string]*Parameter)(nil), "flyteidl.core.ParameterMap.ParametersEntry") -} - -func init() { proto.RegisterFile("flyteidl/core/interface.proto", fileDescriptor_cd7be6cbe85c3def) } - -var fileDescriptor_cd7be6cbe85c3def = []byte{ - // 535 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xcd, 0x6e, 0xd3, 0x40, - 0x10, 0x8e, 0x93, 0xfe, 0x24, 0xe3, 0x36, 0xc0, 0x22, 0x81, 0x1b, 0x05, 0x11, 0xf9, 0x94, 0x0a, - 0xd5, 0x96, 0x0c, 0x07, 0x54, 0x95, 0x03, 0x15, 0x15, 0xb1, 0x00, 0xa9, 0xac, 0x0a, 0x48, 0x5c, - 0xaa, 0xb5, 0xbd, 0x71, 0x57, 0xb8, 0xb6, 0xbb, 0x5e, 0x47, 0x32, 0x6f, 0xc2, 0x43, 0x70, 0xe3, - 0x99, 0x78, 0x8e, 0xca, 0x3f, 0xeb, 0xd8, 0x51, 0xac, 0xde, 0x66, 0x3c, 0xdf, 0x37, 0xdf, 0x78, - 0xe6, 0xd3, 0xc2, 0x8b, 0x65, 0x90, 0x09, 0xca, 0xbc, 0xc0, 0x74, 0x23, 0x4e, 0x4d, 0x16, 0x0a, - 0xca, 0x97, 0xc4, 0xa5, 0x46, 0xcc, 0x23, 0x11, 0xa1, 0x43, 0x59, 0x36, 0xf2, 0xf2, 0xe4, 0xa8, - 0x8d, 0x16, 0x59, 0x4c, 0x93, 0x12, 0x39, 0x99, 0xb6, 0x4b, 0x01, 0x13, 0x94, 0x93, 0x40, 0x56, - 0x5f, 0xb6, 0xab, 0x84, 0x0b, 0xb6, 0x24, 0xae, 0xb8, 0x66, 0x5e, 0x09, 0xd0, 0xff, 0x2b, 0x30, - 0xfc, 0x4e, 0x38, 0x23, 0x4e, 0x40, 0x91, 0x01, 0x3b, 0x79, 0x6b, 0x4d, 0x99, 0x29, 0x73, 0xd5, - 0x9a, 0x18, 0xad, 0x21, 0x8c, 0xcf, 0x65, 0xeb, 0xab, 0x2c, 0xa6, 0xb8, 0xc0, 0xa1, 0x19, 0xa8, - 0x1e, 0x4d, 0x5c, 0xce, 0x62, 0xc1, 0xa2, 0x50, 0xeb, 0xcf, 0x94, 0xf9, 0x08, 0x37, 0x3f, 0x21, - 0x1b, 0x9e, 0xd6, 0x9a, 0x71, 0x1e, 0x91, 0xe0, 0x9a, 0x79, 0xda, 0xa0, 0x10, 0x38, 0xda, 0x10, - 0x78, 0x5f, 0x21, 0xed, 0x0f, 0xf8, 0x89, 0x64, 0x5d, 0x96, 0x24, 0xdb, 0x43, 0xef, 0xe0, 0xa0, - 0x6e, 0x25, 0x88, 0xaf, 0xed, 0x6c, 0x1d, 0x52, 0xf6, 0xb8, 0x22, 0x3e, 0x56, 0xc9, 0x3a, 0xd1, - 0xff, 0x2a, 0xa0, 0xca, 0x1f, 0xfd, 0x42, 0x62, 0xf4, 0x11, 0x46, 0xab, 0x2a, 0x4d, 0x34, 0x65, - 0x36, 0x98, 0xab, 0xd6, 0xf1, 0x46, 0xaf, 0x06, 0xbc, 0x8e, 0x93, 0x8b, 0x50, 0xf0, 0x0c, 0xaf, - 0xb9, 0x93, 0x6f, 0x30, 0x6e, 0x17, 0xd1, 0x63, 0x18, 0xfc, 0xa2, 0x59, 0xb1, 0xc5, 0x11, 0xce, - 0x43, 0x74, 0x02, 0xbb, 0x2b, 0x12, 0xa4, 0xb4, 0x58, 0x91, 0x6a, 0x3d, 0xef, 0x10, 0xc2, 0x25, - 0xea, 0xb4, 0xff, 0x56, 0xd1, 0x7f, 0xc3, 0x38, 0xdf, 0xb4, 0x67, 0x4b, 0x67, 0x20, 0x0b, 0xf6, - 0x58, 0x18, 0xa7, 0x22, 0xe9, 0xb8, 0x4f, 0x63, 0x5c, 0x5c, 0x21, 0xd1, 0x1b, 0xd8, 0x8f, 0x52, - 0x51, 0x90, 0xfa, 0x0f, 0x92, 0x24, 0x54, 0xff, 0xd3, 0x87, 0xd1, 0x25, 0xe1, 0xe4, 0x96, 0x0a, - 0xca, 0xd1, 0x31, 0x0c, 0x56, 0x84, 0x57, 0xa2, 0x9d, 0xa3, 0xe7, 0x18, 0x64, 0xc1, 0xbe, 0x47, - 0x97, 0x24, 0x0d, 0x44, 0x25, 0xf7, 0x6c, 0xbb, 0x87, 0x16, 0x3d, 0x2c, 0x81, 0x68, 0x0a, 0x43, - 0x4e, 0xef, 0x52, 0xc6, 0x69, 0xe9, 0x8b, 0xe1, 0xa2, 0x87, 0xeb, 0x2f, 0xe8, 0x02, 0xc6, 0xf5, - 0xd5, 0xef, 0x52, 0xca, 0xb3, 0xea, 0xee, 0xd3, 0x8e, 0xbb, 0x7f, 0xcd, 0x31, 0x8b, 0x1e, 0x3e, - 0x24, 0xcd, 0x0f, 0xe8, 0x0c, 0xd4, 0x86, 0xf7, 0xb5, 0xdd, 0x07, 0xfc, 0xb7, 0xe8, 0x61, 0x90, - 0x78, 0xdb, 0x3b, 0x07, 0x18, 0x3a, 0xf4, 0x86, 0xac, 0x58, 0xc4, 0xf5, 0x7f, 0x0a, 0x1c, 0xd4, - 0xbb, 0xc9, 0x8d, 0xf4, 0x09, 0x20, 0x96, 0xb9, 0x74, 0xd2, 0xab, 0x8d, 0xce, 0x4d, 0xc2, 0x3a, - 0xa9, 0xbc, 0xd4, 0xa0, 0x4f, 0x7e, 0xc0, 0xa3, 0x8d, 0xf2, 0x16, 0x37, 0x19, 0x6d, 0x37, 0x69, - 0x5d, 0x62, 0x0d, 0x3b, 0x9d, 0x9f, 0xfd, 0x3c, 0xf5, 0x99, 0xb8, 0x49, 0x1d, 0xc3, 0x8d, 0x6e, - 0xcd, 0x82, 0x10, 0x71, 0xbf, 0x0c, 0xcc, 0xfa, 0x91, 0xf0, 0x69, 0x68, 0xc6, 0xce, 0x89, 0x1f, - 0x99, 0xad, 0x77, 0xc3, 0xd9, 0x2b, 0x1e, 0x8b, 0xd7, 0xf7, 0x01, 0x00, 0x00, 0xff, 0xff, 0x1d, - 0xd6, 0x76, 0x1a, 0xb6, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json deleted file mode 100644 index 249d4d650e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/interface.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/interface.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go b/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go deleted file mode 100644 index cc53755642..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/literals.pb.go +++ /dev/null @@ -1,1391 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/literals.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Primitive Types -type Primitive struct { - // Defines one of simple primitive types. These types will get translated into different programming languages as - // described in https://developers.google.com/protocol-buffers/docs/proto#scalar. - // - // Types that are valid to be assigned to Value: - // *Primitive_Integer - // *Primitive_FloatValue - // *Primitive_StringValue - // *Primitive_Boolean - // *Primitive_Datetime - // *Primitive_Duration - Value isPrimitive_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Primitive) Reset() { *m = Primitive{} } -func (m *Primitive) String() string { return proto.CompactTextString(m) } -func (*Primitive) ProtoMessage() {} -func (*Primitive) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{0} -} - -func (m *Primitive) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Primitive.Unmarshal(m, b) -} -func (m *Primitive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Primitive.Marshal(b, m, deterministic) -} -func (m *Primitive) XXX_Merge(src proto.Message) { - xxx_messageInfo_Primitive.Merge(m, src) -} -func (m *Primitive) XXX_Size() int { - return xxx_messageInfo_Primitive.Size(m) -} -func (m *Primitive) XXX_DiscardUnknown() { - xxx_messageInfo_Primitive.DiscardUnknown(m) -} - -var xxx_messageInfo_Primitive proto.InternalMessageInfo - -type isPrimitive_Value interface { - isPrimitive_Value() -} - -type Primitive_Integer struct { - Integer int64 `protobuf:"varint,1,opt,name=integer,proto3,oneof"` -} - -type Primitive_FloatValue struct { - FloatValue float64 `protobuf:"fixed64,2,opt,name=float_value,json=floatValue,proto3,oneof"` -} - -type Primitive_StringValue struct { - StringValue string `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof"` -} - -type Primitive_Boolean struct { - Boolean bool `protobuf:"varint,4,opt,name=boolean,proto3,oneof"` -} - -type Primitive_Datetime struct { - Datetime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=datetime,proto3,oneof"` -} - -type Primitive_Duration struct { - Duration *duration.Duration `protobuf:"bytes,6,opt,name=duration,proto3,oneof"` -} - -func (*Primitive_Integer) isPrimitive_Value() {} - -func (*Primitive_FloatValue) isPrimitive_Value() {} - -func (*Primitive_StringValue) isPrimitive_Value() {} - -func (*Primitive_Boolean) isPrimitive_Value() {} - -func (*Primitive_Datetime) isPrimitive_Value() {} - -func (*Primitive_Duration) isPrimitive_Value() {} - -func (m *Primitive) GetValue() isPrimitive_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *Primitive) GetInteger() int64 { - if x, ok := m.GetValue().(*Primitive_Integer); ok { - return x.Integer - } - return 0 -} - -func (m *Primitive) GetFloatValue() float64 { - if x, ok := m.GetValue().(*Primitive_FloatValue); ok { - return x.FloatValue - } - return 0 -} - -func (m *Primitive) GetStringValue() string { - if x, ok := m.GetValue().(*Primitive_StringValue); ok { - return x.StringValue - } - return "" -} - -func (m *Primitive) GetBoolean() bool { - if x, ok := m.GetValue().(*Primitive_Boolean); ok { - return x.Boolean - } - return false -} - -func (m *Primitive) GetDatetime() *timestamp.Timestamp { - if x, ok := m.GetValue().(*Primitive_Datetime); ok { - return x.Datetime - } - return nil -} - -func (m *Primitive) GetDuration() *duration.Duration { - if x, ok := m.GetValue().(*Primitive_Duration); ok { - return x.Duration - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Primitive) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Primitive_Integer)(nil), - (*Primitive_FloatValue)(nil), - (*Primitive_StringValue)(nil), - (*Primitive_Boolean)(nil), - (*Primitive_Datetime)(nil), - (*Primitive_Duration)(nil), - } -} - -// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally -// undefined since it can be assigned to a scalar of any LiteralType. -type Void struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Void) Reset() { *m = Void{} } -func (m *Void) String() string { return proto.CompactTextString(m) } -func (*Void) ProtoMessage() {} -func (*Void) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{1} -} - -func (m *Void) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Void.Unmarshal(m, b) -} -func (m *Void) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Void.Marshal(b, m, deterministic) -} -func (m *Void) XXX_Merge(src proto.Message) { - xxx_messageInfo_Void.Merge(m, src) -} -func (m *Void) XXX_Size() int { - return xxx_messageInfo_Void.Size(m) -} -func (m *Void) XXX_DiscardUnknown() { - xxx_messageInfo_Void.DiscardUnknown(m) -} - -var xxx_messageInfo_Void proto.InternalMessageInfo - -// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. -// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. -type Blob struct { - Metadata *BlobMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - Uri string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Blob) Reset() { *m = Blob{} } -func (m *Blob) String() string { return proto.CompactTextString(m) } -func (*Blob) ProtoMessage() {} -func (*Blob) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{2} -} - -func (m *Blob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Blob.Unmarshal(m, b) -} -func (m *Blob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Blob.Marshal(b, m, deterministic) -} -func (m *Blob) XXX_Merge(src proto.Message) { - xxx_messageInfo_Blob.Merge(m, src) -} -func (m *Blob) XXX_Size() int { - return xxx_messageInfo_Blob.Size(m) -} -func (m *Blob) XXX_DiscardUnknown() { - xxx_messageInfo_Blob.DiscardUnknown(m) -} - -var xxx_messageInfo_Blob proto.InternalMessageInfo - -func (m *Blob) GetMetadata() *BlobMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *Blob) GetUri() string { - if m != nil { - return m.Uri - } - return "" -} - -type BlobMetadata struct { - Type *BlobType `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlobMetadata) Reset() { *m = BlobMetadata{} } -func (m *BlobMetadata) String() string { return proto.CompactTextString(m) } -func (*BlobMetadata) ProtoMessage() {} -func (*BlobMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{3} -} - -func (m *BlobMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlobMetadata.Unmarshal(m, b) -} -func (m *BlobMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlobMetadata.Marshal(b, m, deterministic) -} -func (m *BlobMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlobMetadata.Merge(m, src) -} -func (m *BlobMetadata) XXX_Size() int { - return xxx_messageInfo_BlobMetadata.Size(m) -} -func (m *BlobMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_BlobMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_BlobMetadata proto.InternalMessageInfo - -func (m *BlobMetadata) GetType() *BlobType { - if m != nil { - return m.Type - } - return nil -} - -// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. -// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. -type Binary struct { - Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Binary) Reset() { *m = Binary{} } -func (m *Binary) String() string { return proto.CompactTextString(m) } -func (*Binary) ProtoMessage() {} -func (*Binary) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{4} -} - -func (m *Binary) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Binary.Unmarshal(m, b) -} -func (m *Binary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Binary.Marshal(b, m, deterministic) -} -func (m *Binary) XXX_Merge(src proto.Message) { - xxx_messageInfo_Binary.Merge(m, src) -} -func (m *Binary) XXX_Size() int { - return xxx_messageInfo_Binary.Size(m) -} -func (m *Binary) XXX_DiscardUnknown() { - xxx_messageInfo_Binary.DiscardUnknown(m) -} - -var xxx_messageInfo_Binary proto.InternalMessageInfo - -func (m *Binary) GetValue() []byte { - if m != nil { - return m.Value - } - return nil -} - -func (m *Binary) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. -type Schema struct { - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Type *SchemaType `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Schema) Reset() { *m = Schema{} } -func (m *Schema) String() string { return proto.CompactTextString(m) } -func (*Schema) ProtoMessage() {} -func (*Schema) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{5} -} - -func (m *Schema) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Schema.Unmarshal(m, b) -} -func (m *Schema) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Schema.Marshal(b, m, deterministic) -} -func (m *Schema) XXX_Merge(src proto.Message) { - xxx_messageInfo_Schema.Merge(m, src) -} -func (m *Schema) XXX_Size() int { - return xxx_messageInfo_Schema.Size(m) -} -func (m *Schema) XXX_DiscardUnknown() { - xxx_messageInfo_Schema.DiscardUnknown(m) -} - -var xxx_messageInfo_Schema proto.InternalMessageInfo - -func (m *Schema) GetUri() string { - if m != nil { - return m.Uri - } - return "" -} - -func (m *Schema) GetType() *SchemaType { - if m != nil { - return m.Type - } - return nil -} - -// The runtime representation of a tagged union value. See `UnionType` for more details. -type Union struct { - Value *Literal `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Union) Reset() { *m = Union{} } -func (m *Union) String() string { return proto.CompactTextString(m) } -func (*Union) ProtoMessage() {} -func (*Union) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{6} -} - -func (m *Union) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Union.Unmarshal(m, b) -} -func (m *Union) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Union.Marshal(b, m, deterministic) -} -func (m *Union) XXX_Merge(src proto.Message) { - xxx_messageInfo_Union.Merge(m, src) -} -func (m *Union) XXX_Size() int { - return xxx_messageInfo_Union.Size(m) -} -func (m *Union) XXX_DiscardUnknown() { - xxx_messageInfo_Union.DiscardUnknown(m) -} - -var xxx_messageInfo_Union proto.InternalMessageInfo - -func (m *Union) GetValue() *Literal { - if m != nil { - return m.Value - } - return nil -} - -func (m *Union) GetType() *LiteralType { - if m != nil { - return m.Type - } - return nil -} - -type StructuredDatasetMetadata struct { - // Bundle the type information along with the literal. - // This is here because StructuredDatasets can often be more defined at run time than at compile time. - // That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, - // without any column information, but at run time, you might have that column information. - // flytekit python will copy this type information into the literal, from the type information, if not provided by - // the various plugins (encoders). - // Since this field is run time generated, it's not used for any type checking. - StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,1,opt,name=structured_dataset_type,json=structuredDatasetType,proto3" json:"structured_dataset_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StructuredDatasetMetadata) Reset() { *m = StructuredDatasetMetadata{} } -func (m *StructuredDatasetMetadata) String() string { return proto.CompactTextString(m) } -func (*StructuredDatasetMetadata) ProtoMessage() {} -func (*StructuredDatasetMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{7} -} - -func (m *StructuredDatasetMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StructuredDatasetMetadata.Unmarshal(m, b) -} -func (m *StructuredDatasetMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StructuredDatasetMetadata.Marshal(b, m, deterministic) -} -func (m *StructuredDatasetMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_StructuredDatasetMetadata.Merge(m, src) -} -func (m *StructuredDatasetMetadata) XXX_Size() int { - return xxx_messageInfo_StructuredDatasetMetadata.Size(m) -} -func (m *StructuredDatasetMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_StructuredDatasetMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_StructuredDatasetMetadata proto.InternalMessageInfo - -func (m *StructuredDatasetMetadata) GetStructuredDatasetType() *StructuredDatasetType { - if m != nil { - return m.StructuredDatasetType - } - return nil -} - -type StructuredDataset struct { - // String location uniquely identifying where the data is. - // Should start with the storage location (e.g. s3://, gs://, bq://, etc.) - Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` - Metadata *StructuredDatasetMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StructuredDataset) Reset() { *m = StructuredDataset{} } -func (m *StructuredDataset) String() string { return proto.CompactTextString(m) } -func (*StructuredDataset) ProtoMessage() {} -func (*StructuredDataset) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{8} -} - -func (m *StructuredDataset) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StructuredDataset.Unmarshal(m, b) -} -func (m *StructuredDataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StructuredDataset.Marshal(b, m, deterministic) -} -func (m *StructuredDataset) XXX_Merge(src proto.Message) { - xxx_messageInfo_StructuredDataset.Merge(m, src) -} -func (m *StructuredDataset) XXX_Size() int { - return xxx_messageInfo_StructuredDataset.Size(m) -} -func (m *StructuredDataset) XXX_DiscardUnknown() { - xxx_messageInfo_StructuredDataset.DiscardUnknown(m) -} - -var xxx_messageInfo_StructuredDataset proto.InternalMessageInfo - -func (m *StructuredDataset) GetUri() string { - if m != nil { - return m.Uri - } - return "" -} - -func (m *StructuredDataset) GetMetadata() *StructuredDatasetMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -type Scalar struct { - // Types that are valid to be assigned to Value: - // *Scalar_Primitive - // *Scalar_Blob - // *Scalar_Binary - // *Scalar_Schema - // *Scalar_NoneType - // *Scalar_Error - // *Scalar_Generic - // *Scalar_StructuredDataset - // *Scalar_Union - Value isScalar_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Scalar) Reset() { *m = Scalar{} } -func (m *Scalar) String() string { return proto.CompactTextString(m) } -func (*Scalar) ProtoMessage() {} -func (*Scalar) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{9} -} - -func (m *Scalar) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Scalar.Unmarshal(m, b) -} -func (m *Scalar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Scalar.Marshal(b, m, deterministic) -} -func (m *Scalar) XXX_Merge(src proto.Message) { - xxx_messageInfo_Scalar.Merge(m, src) -} -func (m *Scalar) XXX_Size() int { - return xxx_messageInfo_Scalar.Size(m) -} -func (m *Scalar) XXX_DiscardUnknown() { - xxx_messageInfo_Scalar.DiscardUnknown(m) -} - -var xxx_messageInfo_Scalar proto.InternalMessageInfo - -type isScalar_Value interface { - isScalar_Value() -} - -type Scalar_Primitive struct { - Primitive *Primitive `protobuf:"bytes,1,opt,name=primitive,proto3,oneof"` -} - -type Scalar_Blob struct { - Blob *Blob `protobuf:"bytes,2,opt,name=blob,proto3,oneof"` -} - -type Scalar_Binary struct { - Binary *Binary `protobuf:"bytes,3,opt,name=binary,proto3,oneof"` -} - -type Scalar_Schema struct { - Schema *Schema `protobuf:"bytes,4,opt,name=schema,proto3,oneof"` -} - -type Scalar_NoneType struct { - NoneType *Void `protobuf:"bytes,5,opt,name=none_type,json=noneType,proto3,oneof"` -} - -type Scalar_Error struct { - Error *Error `protobuf:"bytes,6,opt,name=error,proto3,oneof"` -} - -type Scalar_Generic struct { - Generic *_struct.Struct `protobuf:"bytes,7,opt,name=generic,proto3,oneof"` -} - -type Scalar_StructuredDataset struct { - StructuredDataset *StructuredDataset `protobuf:"bytes,8,opt,name=structured_dataset,json=structuredDataset,proto3,oneof"` -} - -type Scalar_Union struct { - Union *Union `protobuf:"bytes,9,opt,name=union,proto3,oneof"` -} - -func (*Scalar_Primitive) isScalar_Value() {} - -func (*Scalar_Blob) isScalar_Value() {} - -func (*Scalar_Binary) isScalar_Value() {} - -func (*Scalar_Schema) isScalar_Value() {} - -func (*Scalar_NoneType) isScalar_Value() {} - -func (*Scalar_Error) isScalar_Value() {} - -func (*Scalar_Generic) isScalar_Value() {} - -func (*Scalar_StructuredDataset) isScalar_Value() {} - -func (*Scalar_Union) isScalar_Value() {} - -func (m *Scalar) GetValue() isScalar_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *Scalar) GetPrimitive() *Primitive { - if x, ok := m.GetValue().(*Scalar_Primitive); ok { - return x.Primitive - } - return nil -} - -func (m *Scalar) GetBlob() *Blob { - if x, ok := m.GetValue().(*Scalar_Blob); ok { - return x.Blob - } - return nil -} - -func (m *Scalar) GetBinary() *Binary { - if x, ok := m.GetValue().(*Scalar_Binary); ok { - return x.Binary - } - return nil -} - -func (m *Scalar) GetSchema() *Schema { - if x, ok := m.GetValue().(*Scalar_Schema); ok { - return x.Schema - } - return nil -} - -func (m *Scalar) GetNoneType() *Void { - if x, ok := m.GetValue().(*Scalar_NoneType); ok { - return x.NoneType - } - return nil -} - -func (m *Scalar) GetError() *Error { - if x, ok := m.GetValue().(*Scalar_Error); ok { - return x.Error - } - return nil -} - -func (m *Scalar) GetGeneric() *_struct.Struct { - if x, ok := m.GetValue().(*Scalar_Generic); ok { - return x.Generic - } - return nil -} - -func (m *Scalar) GetStructuredDataset() *StructuredDataset { - if x, ok := m.GetValue().(*Scalar_StructuredDataset); ok { - return x.StructuredDataset - } - return nil -} - -func (m *Scalar) GetUnion() *Union { - if x, ok := m.GetValue().(*Scalar_Union); ok { - return x.Union - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Scalar) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Scalar_Primitive)(nil), - (*Scalar_Blob)(nil), - (*Scalar_Binary)(nil), - (*Scalar_Schema)(nil), - (*Scalar_NoneType)(nil), - (*Scalar_Error)(nil), - (*Scalar_Generic)(nil), - (*Scalar_StructuredDataset)(nil), - (*Scalar_Union)(nil), - } -} - -// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. -type Literal struct { - // Types that are valid to be assigned to Value: - // *Literal_Scalar - // *Literal_Collection - // *Literal_Map - Value isLiteral_Value `protobuf_oneof:"value"` - // A hash representing this literal. - // This is used for caching purposes. For more details refer to RFC 1893 - // (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md) - Hash string `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` - // Additional metadata for literals. - Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Literal) Reset() { *m = Literal{} } -func (m *Literal) String() string { return proto.CompactTextString(m) } -func (*Literal) ProtoMessage() {} -func (*Literal) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{10} -} - -func (m *Literal) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Literal.Unmarshal(m, b) -} -func (m *Literal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Literal.Marshal(b, m, deterministic) -} -func (m *Literal) XXX_Merge(src proto.Message) { - xxx_messageInfo_Literal.Merge(m, src) -} -func (m *Literal) XXX_Size() int { - return xxx_messageInfo_Literal.Size(m) -} -func (m *Literal) XXX_DiscardUnknown() { - xxx_messageInfo_Literal.DiscardUnknown(m) -} - -var xxx_messageInfo_Literal proto.InternalMessageInfo - -type isLiteral_Value interface { - isLiteral_Value() -} - -type Literal_Scalar struct { - Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` -} - -type Literal_Collection struct { - Collection *LiteralCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` -} - -type Literal_Map struct { - Map *LiteralMap `protobuf:"bytes,3,opt,name=map,proto3,oneof"` -} - -func (*Literal_Scalar) isLiteral_Value() {} - -func (*Literal_Collection) isLiteral_Value() {} - -func (*Literal_Map) isLiteral_Value() {} - -func (m *Literal) GetValue() isLiteral_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *Literal) GetScalar() *Scalar { - if x, ok := m.GetValue().(*Literal_Scalar); ok { - return x.Scalar - } - return nil -} - -func (m *Literal) GetCollection() *LiteralCollection { - if x, ok := m.GetValue().(*Literal_Collection); ok { - return x.Collection - } - return nil -} - -func (m *Literal) GetMap() *LiteralMap { - if x, ok := m.GetValue().(*Literal_Map); ok { - return x.Map - } - return nil -} - -func (m *Literal) GetHash() string { - if m != nil { - return m.Hash - } - return "" -} - -func (m *Literal) GetMetadata() map[string]string { - if m != nil { - return m.Metadata - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Literal) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Literal_Scalar)(nil), - (*Literal_Collection)(nil), - (*Literal_Map)(nil), - } -} - -// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type LiteralCollection struct { - Literals []*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LiteralCollection) Reset() { *m = LiteralCollection{} } -func (m *LiteralCollection) String() string { return proto.CompactTextString(m) } -func (*LiteralCollection) ProtoMessage() {} -func (*LiteralCollection) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{11} -} - -func (m *LiteralCollection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiteralCollection.Unmarshal(m, b) -} -func (m *LiteralCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiteralCollection.Marshal(b, m, deterministic) -} -func (m *LiteralCollection) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiteralCollection.Merge(m, src) -} -func (m *LiteralCollection) XXX_Size() int { - return xxx_messageInfo_LiteralCollection.Size(m) -} -func (m *LiteralCollection) XXX_DiscardUnknown() { - xxx_messageInfo_LiteralCollection.DiscardUnknown(m) -} - -var xxx_messageInfo_LiteralCollection proto.InternalMessageInfo - -func (m *LiteralCollection) GetLiterals() []*Literal { - if m != nil { - return m.Literals - } - return nil -} - -// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type LiteralMap struct { - Literals map[string]*Literal `protobuf:"bytes,1,rep,name=literals,proto3" json:"literals,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LiteralMap) Reset() { *m = LiteralMap{} } -func (m *LiteralMap) String() string { return proto.CompactTextString(m) } -func (*LiteralMap) ProtoMessage() {} -func (*LiteralMap) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{12} -} - -func (m *LiteralMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiteralMap.Unmarshal(m, b) -} -func (m *LiteralMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiteralMap.Marshal(b, m, deterministic) -} -func (m *LiteralMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiteralMap.Merge(m, src) -} -func (m *LiteralMap) XXX_Size() int { - return xxx_messageInfo_LiteralMap.Size(m) -} -func (m *LiteralMap) XXX_DiscardUnknown() { - xxx_messageInfo_LiteralMap.DiscardUnknown(m) -} - -var xxx_messageInfo_LiteralMap proto.InternalMessageInfo - -func (m *LiteralMap) GetLiterals() map[string]*Literal { - if m != nil { - return m.Literals - } - return nil -} - -// A collection of BindingData items. -type BindingDataCollection struct { - Bindings []*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BindingDataCollection) Reset() { *m = BindingDataCollection{} } -func (m *BindingDataCollection) String() string { return proto.CompactTextString(m) } -func (*BindingDataCollection) ProtoMessage() {} -func (*BindingDataCollection) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{13} -} - -func (m *BindingDataCollection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingDataCollection.Unmarshal(m, b) -} -func (m *BindingDataCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingDataCollection.Marshal(b, m, deterministic) -} -func (m *BindingDataCollection) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingDataCollection.Merge(m, src) -} -func (m *BindingDataCollection) XXX_Size() int { - return xxx_messageInfo_BindingDataCollection.Size(m) -} -func (m *BindingDataCollection) XXX_DiscardUnknown() { - xxx_messageInfo_BindingDataCollection.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingDataCollection proto.InternalMessageInfo - -func (m *BindingDataCollection) GetBindings() []*BindingData { - if m != nil { - return m.Bindings - } - return nil -} - -// A map of BindingData items. -type BindingDataMap struct { - Bindings map[string]*BindingData `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BindingDataMap) Reset() { *m = BindingDataMap{} } -func (m *BindingDataMap) String() string { return proto.CompactTextString(m) } -func (*BindingDataMap) ProtoMessage() {} -func (*BindingDataMap) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{14} -} - -func (m *BindingDataMap) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingDataMap.Unmarshal(m, b) -} -func (m *BindingDataMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingDataMap.Marshal(b, m, deterministic) -} -func (m *BindingDataMap) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingDataMap.Merge(m, src) -} -func (m *BindingDataMap) XXX_Size() int { - return xxx_messageInfo_BindingDataMap.Size(m) -} -func (m *BindingDataMap) XXX_DiscardUnknown() { - xxx_messageInfo_BindingDataMap.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingDataMap proto.InternalMessageInfo - -func (m *BindingDataMap) GetBindings() map[string]*BindingData { - if m != nil { - return m.Bindings - } - return nil -} - -type UnionInfo struct { - TargetType *LiteralType `protobuf:"bytes,1,opt,name=targetType,proto3" json:"targetType,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UnionInfo) Reset() { *m = UnionInfo{} } -func (m *UnionInfo) String() string { return proto.CompactTextString(m) } -func (*UnionInfo) ProtoMessage() {} -func (*UnionInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{15} -} - -func (m *UnionInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnionInfo.Unmarshal(m, b) -} -func (m *UnionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnionInfo.Marshal(b, m, deterministic) -} -func (m *UnionInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnionInfo.Merge(m, src) -} -func (m *UnionInfo) XXX_Size() int { - return xxx_messageInfo_UnionInfo.Size(m) -} -func (m *UnionInfo) XXX_DiscardUnknown() { - xxx_messageInfo_UnionInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_UnionInfo proto.InternalMessageInfo - -func (m *UnionInfo) GetTargetType() *LiteralType { - if m != nil { - return m.TargetType - } - return nil -} - -// Specifies either a simple value or a reference to another output. -type BindingData struct { - // Types that are valid to be assigned to Value: - // *BindingData_Scalar - // *BindingData_Collection - // *BindingData_Promise - // *BindingData_Map - Value isBindingData_Value `protobuf_oneof:"value"` - Union *UnionInfo `protobuf:"bytes,5,opt,name=union,proto3" json:"union,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BindingData) Reset() { *m = BindingData{} } -func (m *BindingData) String() string { return proto.CompactTextString(m) } -func (*BindingData) ProtoMessage() {} -func (*BindingData) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{16} -} - -func (m *BindingData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BindingData.Unmarshal(m, b) -} -func (m *BindingData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BindingData.Marshal(b, m, deterministic) -} -func (m *BindingData) XXX_Merge(src proto.Message) { - xxx_messageInfo_BindingData.Merge(m, src) -} -func (m *BindingData) XXX_Size() int { - return xxx_messageInfo_BindingData.Size(m) -} -func (m *BindingData) XXX_DiscardUnknown() { - xxx_messageInfo_BindingData.DiscardUnknown(m) -} - -var xxx_messageInfo_BindingData proto.InternalMessageInfo - -type isBindingData_Value interface { - isBindingData_Value() -} - -type BindingData_Scalar struct { - Scalar *Scalar `protobuf:"bytes,1,opt,name=scalar,proto3,oneof"` -} - -type BindingData_Collection struct { - Collection *BindingDataCollection `protobuf:"bytes,2,opt,name=collection,proto3,oneof"` -} - -type BindingData_Promise struct { - Promise *OutputReference `protobuf:"bytes,3,opt,name=promise,proto3,oneof"` -} - -type BindingData_Map struct { - Map *BindingDataMap `protobuf:"bytes,4,opt,name=map,proto3,oneof"` -} - -func (*BindingData_Scalar) isBindingData_Value() {} - -func (*BindingData_Collection) isBindingData_Value() {} - -func (*BindingData_Promise) isBindingData_Value() {} - -func (*BindingData_Map) isBindingData_Value() {} - -func (m *BindingData) GetValue() isBindingData_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *BindingData) GetScalar() *Scalar { - if x, ok := m.GetValue().(*BindingData_Scalar); ok { - return x.Scalar - } - return nil -} - -func (m *BindingData) GetCollection() *BindingDataCollection { - if x, ok := m.GetValue().(*BindingData_Collection); ok { - return x.Collection - } - return nil -} - -func (m *BindingData) GetPromise() *OutputReference { - if x, ok := m.GetValue().(*BindingData_Promise); ok { - return x.Promise - } - return nil -} - -func (m *BindingData) GetMap() *BindingDataMap { - if x, ok := m.GetValue().(*BindingData_Map); ok { - return x.Map - } - return nil -} - -func (m *BindingData) GetUnion() *UnionInfo { - if m != nil { - return m.Union - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*BindingData) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*BindingData_Scalar)(nil), - (*BindingData_Collection)(nil), - (*BindingData_Promise)(nil), - (*BindingData_Map)(nil), - } -} - -// An input/output binding of a variable to either static value or a node output. -type Binding struct { - // Variable name must match an input/output variable of the node. - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - // Data to use to bind this variable. - Binding *BindingData `protobuf:"bytes,2,opt,name=binding,proto3" json:"binding,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Binding) Reset() { *m = Binding{} } -func (m *Binding) String() string { return proto.CompactTextString(m) } -func (*Binding) ProtoMessage() {} -func (*Binding) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{17} -} - -func (m *Binding) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Binding.Unmarshal(m, b) -} -func (m *Binding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Binding.Marshal(b, m, deterministic) -} -func (m *Binding) XXX_Merge(src proto.Message) { - xxx_messageInfo_Binding.Merge(m, src) -} -func (m *Binding) XXX_Size() int { - return xxx_messageInfo_Binding.Size(m) -} -func (m *Binding) XXX_DiscardUnknown() { - xxx_messageInfo_Binding.DiscardUnknown(m) -} - -var xxx_messageInfo_Binding proto.InternalMessageInfo - -func (m *Binding) GetVar() string { - if m != nil { - return m.Var - } - return "" -} - -func (m *Binding) GetBinding() *BindingData { - if m != nil { - return m.Binding - } - return nil -} - -// A generic key value pair. -type KeyValuePair struct { - //required. - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - //+optional. - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } -func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } -func (*KeyValuePair) ProtoMessage() {} -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{18} -} - -func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) -} -func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) -} -func (m *KeyValuePair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValuePair.Merge(m, src) -} -func (m *KeyValuePair) XXX_Size() int { - return xxx_messageInfo_KeyValuePair.Size(m) -} -func (m *KeyValuePair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValuePair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo - -func (m *KeyValuePair) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *KeyValuePair) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// Retry strategy associated with an executable unit. -type RetryStrategy struct { - // Number of retries. Retries will be consumed when the job fails with a recoverable error. - // The number of retries must be less than or equals to 10. - Retries uint32 `protobuf:"varint,5,opt,name=retries,proto3" json:"retries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RetryStrategy) Reset() { *m = RetryStrategy{} } -func (m *RetryStrategy) String() string { return proto.CompactTextString(m) } -func (*RetryStrategy) ProtoMessage() {} -func (*RetryStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_a1a523b10667cdfb, []int{19} -} - -func (m *RetryStrategy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RetryStrategy.Unmarshal(m, b) -} -func (m *RetryStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RetryStrategy.Marshal(b, m, deterministic) -} -func (m *RetryStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RetryStrategy.Merge(m, src) -} -func (m *RetryStrategy) XXX_Size() int { - return xxx_messageInfo_RetryStrategy.Size(m) -} -func (m *RetryStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_RetryStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_RetryStrategy proto.InternalMessageInfo - -func (m *RetryStrategy) GetRetries() uint32 { - if m != nil { - return m.Retries - } - return 0 -} - -func init() { - proto.RegisterType((*Primitive)(nil), "flyteidl.core.Primitive") - proto.RegisterType((*Void)(nil), "flyteidl.core.Void") - proto.RegisterType((*Blob)(nil), "flyteidl.core.Blob") - proto.RegisterType((*BlobMetadata)(nil), "flyteidl.core.BlobMetadata") - proto.RegisterType((*Binary)(nil), "flyteidl.core.Binary") - proto.RegisterType((*Schema)(nil), "flyteidl.core.Schema") - proto.RegisterType((*Union)(nil), "flyteidl.core.Union") - proto.RegisterType((*StructuredDatasetMetadata)(nil), "flyteidl.core.StructuredDatasetMetadata") - proto.RegisterType((*StructuredDataset)(nil), "flyteidl.core.StructuredDataset") - proto.RegisterType((*Scalar)(nil), "flyteidl.core.Scalar") - proto.RegisterType((*Literal)(nil), "flyteidl.core.Literal") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.Literal.MetadataEntry") - proto.RegisterType((*LiteralCollection)(nil), "flyteidl.core.LiteralCollection") - proto.RegisterType((*LiteralMap)(nil), "flyteidl.core.LiteralMap") - proto.RegisterMapType((map[string]*Literal)(nil), "flyteidl.core.LiteralMap.LiteralsEntry") - proto.RegisterType((*BindingDataCollection)(nil), "flyteidl.core.BindingDataCollection") - proto.RegisterType((*BindingDataMap)(nil), "flyteidl.core.BindingDataMap") - proto.RegisterMapType((map[string]*BindingData)(nil), "flyteidl.core.BindingDataMap.BindingsEntry") - proto.RegisterType((*UnionInfo)(nil), "flyteidl.core.UnionInfo") - proto.RegisterType((*BindingData)(nil), "flyteidl.core.BindingData") - proto.RegisterType((*Binding)(nil), "flyteidl.core.Binding") - proto.RegisterType((*KeyValuePair)(nil), "flyteidl.core.KeyValuePair") - proto.RegisterType((*RetryStrategy)(nil), "flyteidl.core.RetryStrategy") -} - -func init() { proto.RegisterFile("flyteidl/core/literals.proto", fileDescriptor_a1a523b10667cdfb) } - -var fileDescriptor_a1a523b10667cdfb = []byte{ - // 1095 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x56, 0xdd, 0x6e, 0x1b, 0x45, - 0x14, 0xf6, 0xfa, 0xdf, 0xc7, 0x31, 0x22, 0x43, 0x43, 0x37, 0xa6, 0x14, 0xb3, 0x54, 0xc2, 0x55, - 0x9b, 0x75, 0x49, 0x51, 0x89, 0x52, 0x2e, 0x90, 0x9b, 0x12, 0x57, 0x50, 0xb5, 0xd9, 0x94, 0x22, - 0x21, 0xa4, 0x68, 0x6c, 0x8f, 0x37, 0xab, 0xac, 0x77, 0xac, 0xd9, 0x71, 0x24, 0x3f, 0x01, 0x6f, - 0xc2, 0x25, 0x17, 0xbc, 0x05, 0x6f, 0xc3, 0x23, 0xa0, 0xf9, 0x5b, 0xaf, 0x77, 0xd7, 0x49, 0xb9, - 0x9b, 0x9d, 0xf3, 0x9d, 0xff, 0xf3, 0x9d, 0x59, 0xb8, 0x37, 0x0b, 0x57, 0x9c, 0x04, 0xd3, 0x70, - 0x30, 0xa1, 0x8c, 0x0c, 0xc2, 0x80, 0x13, 0x86, 0xc3, 0xd8, 0x5d, 0x30, 0xca, 0x29, 0xea, 0x18, - 0xa9, 0x2b, 0xa4, 0xdd, 0x2f, 0x7c, 0x4a, 0xfd, 0x90, 0x0c, 0xa4, 0x70, 0xbc, 0x9c, 0x0d, 0x78, - 0x30, 0x27, 0x31, 0xc7, 0xf3, 0x85, 0xc2, 0x77, 0xef, 0x67, 0x01, 0xd3, 0x25, 0xc3, 0x3c, 0xa0, - 0x91, 0x96, 0xdf, 0xcb, 0xca, 0x63, 0xce, 0x96, 0x13, 0xae, 0xa5, 0xfb, 0x9b, 0xb1, 0xf0, 0xd5, - 0x82, 0xe8, 0x40, 0x9c, 0x3f, 0xca, 0xd0, 0x7a, 0xcb, 0x82, 0x79, 0xc0, 0x83, 0x6b, 0x82, 0xba, - 0xd0, 0x08, 0x22, 0x4e, 0x7c, 0xc2, 0x6c, 0xab, 0x67, 0xf5, 0x2b, 0xa3, 0x92, 0x67, 0x2e, 0xd0, - 0x97, 0xd0, 0x9e, 0x85, 0x14, 0xf3, 0x8b, 0x6b, 0x1c, 0x2e, 0x89, 0x5d, 0xee, 0x59, 0x7d, 0x6b, - 0x54, 0xf2, 0x40, 0x5e, 0xbe, 0x17, 0x77, 0xe8, 0x2b, 0xd8, 0x89, 0x39, 0x0b, 0x22, 0x5f, 0x63, - 0x2a, 0x3d, 0xab, 0xdf, 0x1a, 0x95, 0xbc, 0xb6, 0xba, 0x55, 0xa0, 0x2e, 0x34, 0xc6, 0x94, 0x86, - 0x04, 0x47, 0x76, 0xb5, 0x67, 0xf5, 0x9b, 0xc2, 0x87, 0xbe, 0x40, 0x47, 0xd0, 0x9c, 0x62, 0x4e, - 0x44, 0xf6, 0x76, 0xad, 0x67, 0xf5, 0xdb, 0x87, 0x5d, 0x57, 0x65, 0xe6, 0x9a, 0xcc, 0xdc, 0x77, - 0xa6, 0x34, 0xa3, 0x92, 0x97, 0xa0, 0xd1, 0x77, 0xd0, 0x34, 0x25, 0xb1, 0xeb, 0x52, 0x73, 0x3f, - 0xa7, 0x79, 0xa2, 0x01, 0x52, 0x51, 0x9f, 0x87, 0x0d, 0xa8, 0xc9, 0x60, 0x9d, 0x3a, 0x54, 0xdf, - 0xd3, 0x60, 0xea, 0x9c, 0x41, 0x75, 0x18, 0xd2, 0xb1, 0xb0, 0x38, 0x27, 0x1c, 0x4f, 0x31, 0xc7, - 0xb2, 0x18, 0xed, 0xc3, 0xcf, 0xdc, 0x8d, 0xae, 0xb9, 0x02, 0xf6, 0x5a, 0x43, 0xbc, 0x04, 0x8c, - 0x3e, 0x86, 0xca, 0x92, 0x05, 0x2a, 0x79, 0x4f, 0x1c, 0x9d, 0xe7, 0xb0, 0x93, 0xc6, 0xa2, 0x47, - 0x50, 0x15, 0x3d, 0xd0, 0x66, 0xef, 0x16, 0x98, 0x7d, 0xb7, 0x5a, 0x10, 0x4f, 0x82, 0x9c, 0x27, - 0x50, 0x1f, 0x06, 0x11, 0x66, 0x2b, 0x74, 0x47, 0x87, 0x2a, 0xf5, 0x76, 0x3c, 0xf5, 0x21, 0xdc, - 0x71, 0xec, 0xcb, 0x7e, 0xb4, 0x3c, 0x71, 0x74, 0x5e, 0x41, 0xfd, 0x7c, 0x72, 0x49, 0xe6, 0x49, - 0x28, 0x56, 0x12, 0x0a, 0x3a, 0xd0, 0xae, 0x2b, 0xba, 0x46, 0x9b, 0xae, 0x95, 0x5a, 0xca, 0x39, - 0x81, 0xda, 0x2f, 0x51, 0x40, 0x23, 0xf4, 0x38, 0xed, 0xbb, 0x7d, 0xf8, 0x69, 0x46, 0xf1, 0x67, - 0x35, 0xde, 0x26, 0x26, 0x57, 0x7b, 0x29, 0xeb, 0x1e, 0x16, 0x82, 0x53, 0x6e, 0x56, 0xb0, 0x7f, - 0x2e, 0x07, 0x76, 0xc9, 0xc8, 0xf4, 0x04, 0x73, 0x1c, 0x13, 0x9e, 0x54, 0xeb, 0x77, 0xb8, 0x1b, - 0x27, 0xc2, 0x8b, 0xa9, 0x92, 0x5e, 0xa4, 0x0a, 0xf8, 0x20, 0x9b, 0x45, 0xd6, 0x94, 0xf4, 0xb4, - 0x17, 0x17, 0x5d, 0x3b, 0x57, 0xb0, 0x9b, 0xc3, 0x17, 0xd4, 0xed, 0x24, 0x35, 0x0d, 0x2a, 0xab, - 0xfe, 0x6d, 0x5e, 0xf3, 0xa3, 0xe1, 0xfc, 0x5b, 0x11, 0xad, 0xc1, 0x21, 0x66, 0xe8, 0x08, 0x5a, - 0x0b, 0xc3, 0x3b, 0x9d, 0x87, 0x9d, 0xb1, 0x98, 0xf0, 0x72, 0x54, 0xf2, 0xd6, 0x60, 0xf4, 0x10, - 0xaa, 0xe3, 0x90, 0x8e, 0x75, 0x18, 0x9f, 0x14, 0x4c, 0xcf, 0xa8, 0xe4, 0x49, 0x08, 0x1a, 0x40, - 0x7d, 0x2c, 0x67, 0x47, 0xf7, 0x7b, 0x2f, 0x0b, 0x96, 0xc2, 0x51, 0xc9, 0xd3, 0x30, 0xa1, 0x10, - 0xcb, 0x19, 0x90, 0xdc, 0xcc, 0x2b, 0xa8, 0x01, 0x11, 0x0a, 0x0a, 0x86, 0x0e, 0xa1, 0x15, 0xd1, - 0x88, 0xa8, 0x76, 0xd4, 0x0a, 0x23, 0x12, 0xac, 0x12, 0x94, 0x13, 0x38, 0x51, 0x72, 0x31, 0x4b, - 0x84, 0x31, 0xca, 0x34, 0x51, 0xef, 0x64, 0xf0, 0x2f, 0x85, 0x6c, 0x54, 0xf2, 0x14, 0x08, 0x3d, - 0x85, 0x86, 0x4f, 0x22, 0xc2, 0x82, 0x89, 0xdd, 0xd0, 0x7c, 0xc9, 0x12, 0x5b, 0x95, 0x5e, 0x2c, - 0x12, 0x8d, 0x44, 0x67, 0x80, 0xf2, 0x33, 0x63, 0x37, 0xa5, 0x7e, 0xef, 0xb6, 0xc6, 0x8d, 0x4a, - 0xde, 0x6e, 0x6e, 0x58, 0x44, 0xd4, 0x4b, 0x41, 0x05, 0xbb, 0x55, 0x18, 0xb5, 0xa4, 0x89, 0x88, - 0x5a, 0x82, 0xd6, 0x6b, 0xe5, 0x9f, 0x32, 0x34, 0xf4, 0xc0, 0xab, 0xea, 0x8a, 0xee, 0xeb, 0x86, - 0xe7, 0xab, 0x2b, 0x84, 0xaa, 0xba, 0x72, 0x48, 0x86, 0x00, 0x13, 0x1a, 0x86, 0x64, 0x22, 0xf7, - 0x5a, 0xb9, 0x30, 0x7c, 0x6d, 0xfc, 0x45, 0x82, 0x13, 0x4b, 0x79, 0xad, 0x85, 0x0e, 0xa0, 0x32, - 0xc7, 0x8b, 0x2d, 0x84, 0xd7, 0xca, 0xaf, 0xb1, 0xd8, 0xa6, 0x02, 0x87, 0x10, 0x54, 0x2f, 0x71, - 0x7c, 0x29, 0xfb, 0xdf, 0xf2, 0xe4, 0x19, 0xfd, 0x90, 0x1a, 0xfe, 0x5a, 0xaf, 0x52, 0x40, 0x39, - 0x6d, 0xc7, 0x35, 0x33, 0xff, 0x32, 0xe2, 0x6c, 0xb5, 0x1e, 0xfc, 0xee, 0x73, 0xe8, 0x6c, 0x88, - 0x04, 0xc3, 0xae, 0xc8, 0xca, 0x30, 0xec, 0x8a, 0xa4, 0xb6, 0x9b, 0xda, 0x64, 0xea, 0xe3, 0xb8, - 0x7c, 0x64, 0xad, 0x6b, 0x79, 0x0a, 0xbb, 0xb9, 0x6c, 0xd1, 0x21, 0x34, 0xcd, 0xe3, 0x6a, 0x5b, - 0x32, 0xb8, 0x6d, 0xcb, 0x29, 0xc1, 0x39, 0x7f, 0x5a, 0x00, 0xeb, 0xd4, 0xd1, 0x8b, 0x9c, 0x89, - 0xaf, 0xb7, 0xd6, 0xc9, 0x1c, 0x63, 0x9d, 0xa2, 0x51, 0xec, 0x9e, 0x43, 0x67, 0x43, 0x54, 0x90, - 0xe2, 0xe3, 0x74, 0x8a, 0xb7, 0x2d, 0x51, 0x91, 0xba, 0xf3, 0x06, 0xf6, 0x86, 0x41, 0x34, 0x0d, - 0x22, 0x5f, 0x8c, 0x61, 0x2a, 0xeb, 0x67, 0xd0, 0x1c, 0x2b, 0x81, 0x09, 0xb9, 0x9b, 0xe7, 0xb6, - 0xd1, 0xf3, 0x12, 0xac, 0xf3, 0xb7, 0x05, 0x1f, 0xa5, 0x24, 0x22, 0xfb, 0xd3, 0x9c, 0xa9, 0x47, - 0xdb, 0x4d, 0x89, 0x0a, 0xe8, 0x4f, 0x53, 0x01, 0xa3, 0xdc, 0xfd, 0x15, 0x3a, 0x1b, 0xa2, 0x82, - 0x0a, 0x3c, 0xd9, 0xac, 0xc0, 0x4d, 0x31, 0xa7, 0xaa, 0x70, 0x0a, 0x2d, 0x49, 0xaf, 0x57, 0xd1, - 0x8c, 0xa2, 0x63, 0x00, 0x8e, 0x99, 0xaf, 0xd6, 0xb7, 0x26, 0xd2, 0x4d, 0x2f, 0x4c, 0x0a, 0xed, - 0xfc, 0x55, 0x86, 0x76, 0xca, 0xc7, 0xff, 0x27, 0xe4, 0x8f, 0x05, 0x84, 0x7c, 0xb0, 0x3d, 0x89, - 0xad, 0xa4, 0x3c, 0x86, 0xc6, 0x82, 0xd1, 0x79, 0x10, 0x9b, 0x97, 0xf8, 0x7e, 0xc6, 0xc8, 0x9b, - 0x25, 0x5f, 0x2c, 0xb9, 0x47, 0x66, 0x84, 0x91, 0x68, 0x22, 0x5e, 0x00, 0xa3, 0x80, 0xbe, 0x51, - 0x84, 0x56, 0x0b, 0xfa, 0xf3, 0x1b, 0x5b, 0x65, 0x48, 0xed, 0x9a, 0xdd, 0x55, 0x2b, 0x7c, 0x68, - 0x92, 0xe2, 0xe6, 0xb6, 0xd7, 0x19, 0x34, 0xb4, 0x45, 0xd1, 0xcc, 0x6b, 0x5d, 0xa8, 0x96, 0x27, - 0x8e, 0xe8, 0x5b, 0x68, 0xe8, 0xde, 0x7f, 0x40, 0x3b, 0x0d, 0xd4, 0x79, 0x06, 0x3b, 0x3f, 0x91, - 0x95, 0xfc, 0x17, 0x7c, 0x8b, 0x03, 0xf6, 0xa1, 0x9b, 0xc0, 0x79, 0x08, 0x1d, 0x8f, 0x70, 0xb6, - 0x3a, 0xe7, 0x0c, 0x73, 0xe2, 0xaf, 0x90, 0x0d, 0x0d, 0x46, 0x38, 0x0b, 0x48, 0x2c, 0xd3, 0xea, - 0x78, 0xe6, 0x73, 0xf8, 0xfd, 0x6f, 0xc7, 0x7e, 0xc0, 0x2f, 0x97, 0x63, 0x77, 0x42, 0xe7, 0x03, - 0x19, 0x13, 0x65, 0xbe, 0x3a, 0x0c, 0x92, 0x7f, 0x61, 0x9f, 0x44, 0x83, 0xc5, 0xf8, 0xc0, 0xa7, - 0x83, 0x8d, 0xdf, 0xe3, 0x71, 0x5d, 0xbe, 0x2b, 0x4f, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x3f, - 0xe5, 0x71, 0xce, 0xc2, 0x0b, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json deleted file mode 100644 index 9e24ec5e5f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/literals.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/literals.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go b/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go deleted file mode 100644 index 447a918a48..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/metrics.pb.go +++ /dev/null @@ -1,194 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/metrics.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -// precise definitions. -type Span struct { - // start_time defines the instance this span began. - StartTime *timestamp.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` - // end_time defines the instance this span completed. - EndTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` - // Types that are valid to be assigned to Id: - // *Span_WorkflowId - // *Span_NodeId - // *Span_TaskId - // *Span_OperationId - Id isSpan_Id `protobuf_oneof:"id"` - // spans defines a collection of Spans that breakdown this execution. - Spans []*Span `protobuf:"bytes,7,rep,name=spans,proto3" json:"spans,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Span) Reset() { *m = Span{} } -func (m *Span) String() string { return proto.CompactTextString(m) } -func (*Span) ProtoMessage() {} -func (*Span) Descriptor() ([]byte, []int) { - return fileDescriptor_756935f796ae3119, []int{0} -} - -func (m *Span) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Span.Unmarshal(m, b) -} -func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Span.Marshal(b, m, deterministic) -} -func (m *Span) XXX_Merge(src proto.Message) { - xxx_messageInfo_Span.Merge(m, src) -} -func (m *Span) XXX_Size() int { - return xxx_messageInfo_Span.Size(m) -} -func (m *Span) XXX_DiscardUnknown() { - xxx_messageInfo_Span.DiscardUnknown(m) -} - -var xxx_messageInfo_Span proto.InternalMessageInfo - -func (m *Span) GetStartTime() *timestamp.Timestamp { - if m != nil { - return m.StartTime - } - return nil -} - -func (m *Span) GetEndTime() *timestamp.Timestamp { - if m != nil { - return m.EndTime - } - return nil -} - -type isSpan_Id interface { - isSpan_Id() -} - -type Span_WorkflowId struct { - WorkflowId *WorkflowExecutionIdentifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3,oneof"` -} - -type Span_NodeId struct { - NodeId *NodeExecutionIdentifier `protobuf:"bytes,4,opt,name=node_id,json=nodeId,proto3,oneof"` -} - -type Span_TaskId struct { - TaskId *TaskExecutionIdentifier `protobuf:"bytes,5,opt,name=task_id,json=taskId,proto3,oneof"` -} - -type Span_OperationId struct { - OperationId string `protobuf:"bytes,6,opt,name=operation_id,json=operationId,proto3,oneof"` -} - -func (*Span_WorkflowId) isSpan_Id() {} - -func (*Span_NodeId) isSpan_Id() {} - -func (*Span_TaskId) isSpan_Id() {} - -func (*Span_OperationId) isSpan_Id() {} - -func (m *Span) GetId() isSpan_Id { - if m != nil { - return m.Id - } - return nil -} - -func (m *Span) GetWorkflowId() *WorkflowExecutionIdentifier { - if x, ok := m.GetId().(*Span_WorkflowId); ok { - return x.WorkflowId - } - return nil -} - -func (m *Span) GetNodeId() *NodeExecutionIdentifier { - if x, ok := m.GetId().(*Span_NodeId); ok { - return x.NodeId - } - return nil -} - -func (m *Span) GetTaskId() *TaskExecutionIdentifier { - if x, ok := m.GetId().(*Span_TaskId); ok { - return x.TaskId - } - return nil -} - -func (m *Span) GetOperationId() string { - if x, ok := m.GetId().(*Span_OperationId); ok { - return x.OperationId - } - return "" -} - -func (m *Span) GetSpans() []*Span { - if m != nil { - return m.Spans - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Span) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Span_WorkflowId)(nil), - (*Span_NodeId)(nil), - (*Span_TaskId)(nil), - (*Span_OperationId)(nil), - } -} - -func init() { - proto.RegisterType((*Span)(nil), "flyteidl.core.Span") -} - -func init() { proto.RegisterFile("flyteidl/core/metrics.proto", fileDescriptor_756935f796ae3119) } - -var fileDescriptor_756935f796ae3119 = []byte{ - // 341 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xdf, 0x4b, 0xeb, 0x30, - 0x14, 0x80, 0xf7, 0x7b, 0x77, 0xe9, 0xbd, 0x2f, 0xbd, 0x2f, 0x63, 0x17, 0xae, 0x43, 0x41, 0xa6, - 0x60, 0x02, 0x13, 0x1f, 0x14, 0x5f, 0x1c, 0x08, 0xeb, 0x83, 0x3e, 0xd4, 0x81, 0xe0, 0xcb, 0x68, - 0x9b, 0xd3, 0x1a, 0xd6, 0xe6, 0x94, 0x34, 0x63, 0xfa, 0xf7, 0xf8, 0x8f, 0x4a, 0x12, 0x3b, 0xd8, - 0x98, 0xf8, 0xd6, 0x34, 0xdf, 0xf7, 0x85, 0x90, 0x43, 0xfe, 0xa5, 0xf9, 0xbb, 0x06, 0xc1, 0x73, - 0x96, 0xa0, 0x02, 0x56, 0x80, 0x56, 0x22, 0xa9, 0x68, 0xa9, 0x50, 0xa3, 0xff, 0xa7, 0xde, 0xa4, - 0x66, 0x73, 0xf4, 0x7f, 0x97, 0x15, 0x1c, 0xa4, 0x16, 0xa9, 0x00, 0xe5, 0xf0, 0xd1, 0x51, 0x86, - 0x98, 0xe5, 0xc0, 0xec, 0x2a, 0x5e, 0xa7, 0x4c, 0x8b, 0x02, 0x2a, 0x1d, 0x15, 0xa5, 0x03, 0x8e, - 0x3f, 0xda, 0xa4, 0xf3, 0x54, 0x46, 0xd2, 0xbf, 0x26, 0xa4, 0xd2, 0x91, 0xd2, 0x4b, 0x43, 0x0c, - 0x9b, 0xe3, 0xe6, 0xc4, 0x9b, 0x8e, 0xa8, 0xd3, 0x69, 0xad, 0xd3, 0x45, 0xad, 0x87, 0x03, 0x4b, - 0x9b, 0xb5, 0x7f, 0x45, 0x7e, 0x81, 0xe4, 0x4e, 0x6c, 0xfd, 0x28, 0xf6, 0x41, 0x72, 0xab, 0x3d, - 0x10, 0x6f, 0x83, 0x6a, 0x95, 0xe6, 0xb8, 0x59, 0x0a, 0x3e, 0x6c, 0x5b, 0xf3, 0x9c, 0xee, 0x5c, - 0x90, 0x3e, 0x7f, 0x11, 0xf7, 0x6f, 0x90, 0xac, 0xb5, 0x40, 0x19, 0x6c, 0xaf, 0x38, 0x6f, 0x84, - 0xa4, 0x0e, 0x04, 0xdc, 0xbf, 0x23, 0x7d, 0x89, 0x1c, 0x4c, 0xaa, 0x63, 0x53, 0xa7, 0x7b, 0xa9, - 0x47, 0xe4, 0x70, 0x38, 0xd3, 0x33, 0xa2, 0x4b, 0xe8, 0xa8, 0x5a, 0x99, 0x44, 0xf7, 0x60, 0x62, - 0x11, 0x55, 0xab, 0x6f, 0x12, 0x46, 0x0c, 0xb8, 0x7f, 0x42, 0x7e, 0x63, 0x09, 0x2a, 0x32, 0x80, - 0xe9, 0xf4, 0xc6, 0xcd, 0xc9, 0x60, 0xde, 0x08, 0xbd, 0xed, 0xdf, 0x80, 0xfb, 0x67, 0xa4, 0x5b, - 0x95, 0x91, 0xac, 0x86, 0xfd, 0x71, 0x7b, 0xe2, 0x4d, 0xff, 0xee, 0x9d, 0x62, 0xde, 0x23, 0x74, - 0xc4, 0xac, 0x43, 0x5a, 0x82, 0xcf, 0x6e, 0x5f, 0x6e, 0x32, 0xa1, 0x5f, 0xd7, 0x31, 0x4d, 0xb0, - 0x60, 0x96, 0x46, 0x95, 0xb9, 0x0f, 0xb6, 0x1d, 0x81, 0x0c, 0x24, 0x2b, 0xe3, 0x8b, 0x0c, 0xd9, - 0xce, 0x54, 0xc4, 0x3d, 0xfb, 0x0a, 0x97, 0x9f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xff, 0xa7, 0xb8, - 0x33, 0x59, 0x02, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json deleted file mode 100644 index f6b3727f91..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/metrics.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/metrics.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go b/flyteidl/gen/pb-go/flyteidl/core/security.pb.go deleted file mode 100644 index 32cc824530..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/security.pb.go +++ /dev/null @@ -1,491 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/security.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type Secret_MountType int32 - -const ( - // Default case, indicates the client can tolerate either mounting options. - Secret_ANY Secret_MountType = 0 - // ENV_VAR indicates the secret needs to be mounted as an environment variable. - Secret_ENV_VAR Secret_MountType = 1 - // FILE indicates the secret needs to be mounted as a file. - Secret_FILE Secret_MountType = 2 -) - -var Secret_MountType_name = map[int32]string{ - 0: "ANY", - 1: "ENV_VAR", - 2: "FILE", -} - -var Secret_MountType_value = map[string]int32{ - "ANY": 0, - "ENV_VAR": 1, - "FILE": 2, -} - -func (x Secret_MountType) String() string { - return proto.EnumName(Secret_MountType_name, int32(x)) -} - -func (Secret_MountType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{0, 0} -} - -// Type of the token requested. -type OAuth2TokenRequest_Type int32 - -const ( - // CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - OAuth2TokenRequest_CLIENT_CREDENTIALS OAuth2TokenRequest_Type = 0 -) - -var OAuth2TokenRequest_Type_name = map[int32]string{ - 0: "CLIENT_CREDENTIALS", -} - -var OAuth2TokenRequest_Type_value = map[string]int32{ - "CLIENT_CREDENTIALS": 0, -} - -func (x OAuth2TokenRequest_Type) String() string { - return proto.EnumName(OAuth2TokenRequest_Type_name, int32(x)) -} - -func (OAuth2TokenRequest_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{3, 0} -} - -// Secret encapsulates information about the secret a task needs to proceed. An environment variable -// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -// secrets are passed through environment variables. -// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets -// are passed through file mounts. -type Secret struct { - // The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - // the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - // For AWS Secret Manager, this should be the name of the secret. - // +required - Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"` - // The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones - // that do not support it. - // +optional - GroupVersion string `protobuf:"bytes,2,opt,name=group_version,json=groupVersion,proto3" json:"group_version,omitempty"` - // The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation - // of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should - // match one of the keys inside the secret. For AWS Secret Manager, it's ignored. - // +optional - Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` - // mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail - // if the underlying key management system cannot satisfy that requirement. If not provided, the default location - // will depend on the key management system. - // +optional - MountRequirement Secret_MountType `protobuf:"varint,4,opt,name=mount_requirement,json=mountRequirement,proto3,enum=flyteidl.core.Secret_MountType" json:"mount_requirement,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Secret) Reset() { *m = Secret{} } -func (m *Secret) String() string { return proto.CompactTextString(m) } -func (*Secret) ProtoMessage() {} -func (*Secret) Descriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{0} -} - -func (m *Secret) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Secret.Unmarshal(m, b) -} -func (m *Secret) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Secret.Marshal(b, m, deterministic) -} -func (m *Secret) XXX_Merge(src proto.Message) { - xxx_messageInfo_Secret.Merge(m, src) -} -func (m *Secret) XXX_Size() int { - return xxx_messageInfo_Secret.Size(m) -} -func (m *Secret) XXX_DiscardUnknown() { - xxx_messageInfo_Secret.DiscardUnknown(m) -} - -var xxx_messageInfo_Secret proto.InternalMessageInfo - -func (m *Secret) GetGroup() string { - if m != nil { - return m.Group - } - return "" -} - -func (m *Secret) GetGroupVersion() string { - if m != nil { - return m.GroupVersion - } - return "" -} - -func (m *Secret) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *Secret) GetMountRequirement() Secret_MountType { - if m != nil { - return m.MountRequirement - } - return Secret_ANY -} - -// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. -type OAuth2Client struct { - // client_id is the public id for the client to use. The system will not perform any pre-auth validation that the - // secret requested matches the client_id indicated here. - // +required - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - // client_secret is a reference to the secret used to authenticate the OAuth2 client. - // +required - ClientSecret *Secret `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OAuth2Client) Reset() { *m = OAuth2Client{} } -func (m *OAuth2Client) String() string { return proto.CompactTextString(m) } -func (*OAuth2Client) ProtoMessage() {} -func (*OAuth2Client) Descriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{1} -} - -func (m *OAuth2Client) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OAuth2Client.Unmarshal(m, b) -} -func (m *OAuth2Client) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OAuth2Client.Marshal(b, m, deterministic) -} -func (m *OAuth2Client) XXX_Merge(src proto.Message) { - xxx_messageInfo_OAuth2Client.Merge(m, src) -} -func (m *OAuth2Client) XXX_Size() int { - return xxx_messageInfo_OAuth2Client.Size(m) -} -func (m *OAuth2Client) XXX_DiscardUnknown() { - xxx_messageInfo_OAuth2Client.DiscardUnknown(m) -} - -var xxx_messageInfo_OAuth2Client proto.InternalMessageInfo - -func (m *OAuth2Client) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *OAuth2Client) GetClientSecret() *Secret { - if m != nil { - return m.ClientSecret - } - return nil -} - -// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the -// right identity for the execution environment. -type Identity struct { - // iam_role references the fully qualified name of Identity & Access Management role to impersonate. - IamRole string `protobuf:"bytes,1,opt,name=iam_role,json=iamRole,proto3" json:"iam_role,omitempty"` - // k8s_service_account references a kubernetes service account to impersonate. - K8SServiceAccount string `protobuf:"bytes,2,opt,name=k8s_service_account,json=k8sServiceAccount,proto3" json:"k8s_service_account,omitempty"` - // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when - // making external calls. - Oauth2Client *OAuth2Client `protobuf:"bytes,3,opt,name=oauth2_client,json=oauth2Client,proto3" json:"oauth2_client,omitempty"` - // execution_identity references the subject who makes the execution - ExecutionIdentity string `protobuf:"bytes,4,opt,name=execution_identity,json=executionIdentity,proto3" json:"execution_identity,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Identity) Reset() { *m = Identity{} } -func (m *Identity) String() string { return proto.CompactTextString(m) } -func (*Identity) ProtoMessage() {} -func (*Identity) Descriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{2} -} - -func (m *Identity) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Identity.Unmarshal(m, b) -} -func (m *Identity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Identity.Marshal(b, m, deterministic) -} -func (m *Identity) XXX_Merge(src proto.Message) { - xxx_messageInfo_Identity.Merge(m, src) -} -func (m *Identity) XXX_Size() int { - return xxx_messageInfo_Identity.Size(m) -} -func (m *Identity) XXX_DiscardUnknown() { - xxx_messageInfo_Identity.DiscardUnknown(m) -} - -var xxx_messageInfo_Identity proto.InternalMessageInfo - -func (m *Identity) GetIamRole() string { - if m != nil { - return m.IamRole - } - return "" -} - -func (m *Identity) GetK8SServiceAccount() string { - if m != nil { - return m.K8SServiceAccount - } - return "" -} - -func (m *Identity) GetOauth2Client() *OAuth2Client { - if m != nil { - return m.Oauth2Client - } - return nil -} - -func (m *Identity) GetExecutionIdentity() string { - if m != nil { - return m.ExecutionIdentity - } - return "" -} - -// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. -// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -// tokens are passed through environment variables. -// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens -// are passed through file mounts. -type OAuth2TokenRequest struct { - // name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for - // environment variables and as a filename for mounting tokens as files. - // +required - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. - // +required - Type OAuth2TokenRequest_Type `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.OAuth2TokenRequest_Type" json:"type,omitempty"` - // client references the client_id/secret to use to request the OAuth2 token. - // +required - Client *OAuth2Client `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"` - // idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related - // information. - // +optional - IdpDiscoveryEndpoint string `protobuf:"bytes,4,opt,name=idp_discovery_endpoint,json=idpDiscoveryEndpoint,proto3" json:"idp_discovery_endpoint,omitempty"` - // token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is - // mandatory. - // +optional - TokenEndpoint string `protobuf:"bytes,5,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OAuth2TokenRequest) Reset() { *m = OAuth2TokenRequest{} } -func (m *OAuth2TokenRequest) String() string { return proto.CompactTextString(m) } -func (*OAuth2TokenRequest) ProtoMessage() {} -func (*OAuth2TokenRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{3} -} - -func (m *OAuth2TokenRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OAuth2TokenRequest.Unmarshal(m, b) -} -func (m *OAuth2TokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OAuth2TokenRequest.Marshal(b, m, deterministic) -} -func (m *OAuth2TokenRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OAuth2TokenRequest.Merge(m, src) -} -func (m *OAuth2TokenRequest) XXX_Size() int { - return xxx_messageInfo_OAuth2TokenRequest.Size(m) -} -func (m *OAuth2TokenRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OAuth2TokenRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OAuth2TokenRequest proto.InternalMessageInfo - -func (m *OAuth2TokenRequest) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *OAuth2TokenRequest) GetType() OAuth2TokenRequest_Type { - if m != nil { - return m.Type - } - return OAuth2TokenRequest_CLIENT_CREDENTIALS -} - -func (m *OAuth2TokenRequest) GetClient() *OAuth2Client { - if m != nil { - return m.Client - } - return nil -} - -func (m *OAuth2TokenRequest) GetIdpDiscoveryEndpoint() string { - if m != nil { - return m.IdpDiscoveryEndpoint - } - return "" -} - -func (m *OAuth2TokenRequest) GetTokenEndpoint() string { - if m != nil { - return m.TokenEndpoint - } - return "" -} - -// SecurityContext holds security attributes that apply to tasks. -type SecurityContext struct { - // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the - // backend plugin to choose the appropriate identity for the execution engine the task will run on. - RunAs *Identity `protobuf:"bytes,1,opt,name=run_as,json=runAs,proto3" json:"run_as,omitempty"` - // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the - // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - // to the secret) and to pass it to the remote execution engine. - Secrets []*Secret `protobuf:"bytes,2,rep,name=secrets,proto3" json:"secrets,omitempty"` - // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the - // pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - // Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - // to the secret) and to pass it to the remote execution engine. - Tokens []*OAuth2TokenRequest `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SecurityContext) Reset() { *m = SecurityContext{} } -func (m *SecurityContext) String() string { return proto.CompactTextString(m) } -func (*SecurityContext) ProtoMessage() {} -func (*SecurityContext) Descriptor() ([]byte, []int) { - return fileDescriptor_0996009b6d39c02f, []int{4} -} - -func (m *SecurityContext) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SecurityContext.Unmarshal(m, b) -} -func (m *SecurityContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SecurityContext.Marshal(b, m, deterministic) -} -func (m *SecurityContext) XXX_Merge(src proto.Message) { - xxx_messageInfo_SecurityContext.Merge(m, src) -} -func (m *SecurityContext) XXX_Size() int { - return xxx_messageInfo_SecurityContext.Size(m) -} -func (m *SecurityContext) XXX_DiscardUnknown() { - xxx_messageInfo_SecurityContext.DiscardUnknown(m) -} - -var xxx_messageInfo_SecurityContext proto.InternalMessageInfo - -func (m *SecurityContext) GetRunAs() *Identity { - if m != nil { - return m.RunAs - } - return nil -} - -func (m *SecurityContext) GetSecrets() []*Secret { - if m != nil { - return m.Secrets - } - return nil -} - -func (m *SecurityContext) GetTokens() []*OAuth2TokenRequest { - if m != nil { - return m.Tokens - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.core.Secret_MountType", Secret_MountType_name, Secret_MountType_value) - proto.RegisterEnum("flyteidl.core.OAuth2TokenRequest_Type", OAuth2TokenRequest_Type_name, OAuth2TokenRequest_Type_value) - proto.RegisterType((*Secret)(nil), "flyteidl.core.Secret") - proto.RegisterType((*OAuth2Client)(nil), "flyteidl.core.OAuth2Client") - proto.RegisterType((*Identity)(nil), "flyteidl.core.Identity") - proto.RegisterType((*OAuth2TokenRequest)(nil), "flyteidl.core.OAuth2TokenRequest") - proto.RegisterType((*SecurityContext)(nil), "flyteidl.core.SecurityContext") -} - -func init() { proto.RegisterFile("flyteidl/core/security.proto", fileDescriptor_0996009b6d39c02f) } - -var fileDescriptor_0996009b6d39c02f = []byte{ - // 601 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xdd, 0x6e, 0xd3, 0x4c, - 0x10, 0xad, 0x93, 0x34, 0x3f, 0x93, 0xa4, 0x5f, 0xba, 0x5f, 0x29, 0x41, 0x45, 0x50, 0x8c, 0x40, - 0x95, 0x50, 0x6d, 0x29, 0xe5, 0xa2, 0x54, 0x5c, 0x10, 0xd2, 0x20, 0x45, 0x0a, 0x41, 0x72, 0xa2, - 0x4a, 0x70, 0xb3, 0x4a, 0xed, 0x21, 0x5d, 0x25, 0xde, 0x35, 0xeb, 0x75, 0x55, 0xbf, 0x08, 0x6f, - 0xc1, 0x6b, 0x70, 0xcd, 0x23, 0x21, 0xef, 0xda, 0xe9, 0x8f, 0x8a, 0xe0, 0x6e, 0x3c, 0xe7, 0xcc, - 0xee, 0x39, 0x27, 0x93, 0x85, 0xc7, 0x5f, 0x57, 0xa9, 0x42, 0x16, 0xac, 0x5c, 0x5f, 0x48, 0x74, - 0x63, 0xf4, 0x13, 0xc9, 0x54, 0xea, 0x44, 0x52, 0x28, 0x41, 0xda, 0x05, 0xea, 0x64, 0xa8, 0xfd, - 0xcb, 0x82, 0xea, 0x14, 0x7d, 0x89, 0x8a, 0xec, 0xc0, 0xe6, 0x42, 0x8a, 0x24, 0xea, 0x5a, 0xfb, - 0xd6, 0x41, 0xc3, 0x33, 0x1f, 0xe4, 0x39, 0xb4, 0x75, 0x41, 0x2f, 0x51, 0xc6, 0x4c, 0xf0, 0x6e, - 0x49, 0xa3, 0x2d, 0xdd, 0x3c, 0x33, 0x3d, 0xd2, 0x81, 0xf2, 0x12, 0xd3, 0x6e, 0x59, 0x43, 0x59, - 0x49, 0xc6, 0xb0, 0x1d, 0x8a, 0x84, 0x2b, 0x2a, 0xf1, 0x5b, 0xc2, 0x24, 0x86, 0xc8, 0x55, 0xb7, - 0xb2, 0x6f, 0x1d, 0x6c, 0xf5, 0x9e, 0x3a, 0xb7, 0x24, 0x38, 0xe6, 0x7a, 0xe7, 0x63, 0x46, 0x9f, - 0xa5, 0x11, 0x7a, 0x1d, 0x3d, 0xe9, 0x5d, 0x0f, 0xda, 0xaf, 0xa0, 0xb1, 0x86, 0x49, 0x0d, 0xca, - 0xfd, 0xc9, 0xe7, 0xce, 0x06, 0x69, 0x42, 0x6d, 0x38, 0x39, 0xa3, 0x67, 0x7d, 0xaf, 0x63, 0x91, - 0x3a, 0x54, 0x3e, 0x8c, 0xc6, 0xc3, 0x4e, 0xc9, 0x5e, 0x40, 0xeb, 0x53, 0x3f, 0x51, 0x17, 0xbd, - 0xc1, 0x8a, 0x21, 0x57, 0x64, 0x0f, 0x1a, 0xbe, 0xae, 0x28, 0x0b, 0x72, 0x6f, 0x75, 0xd3, 0x18, - 0x05, 0xe4, 0x04, 0xda, 0x39, 0x18, 0x6b, 0x19, 0xda, 0x5e, 0xb3, 0xf7, 0xe0, 0x5e, 0x8d, 0x5e, - 0xcb, 0x70, 0xcd, 0x97, 0xfd, 0xd3, 0x82, 0xfa, 0x28, 0x40, 0xae, 0x98, 0x4a, 0xc9, 0x23, 0xa8, - 0xb3, 0x79, 0x48, 0xa5, 0x58, 0x61, 0x7e, 0x49, 0x8d, 0xcd, 0x43, 0x4f, 0xac, 0x90, 0x38, 0xf0, - 0xff, 0xf2, 0x38, 0xa6, 0x31, 0xca, 0x4b, 0xe6, 0x23, 0x9d, 0xfb, 0x7e, 0xe6, 0x25, 0x0f, 0x72, - 0x7b, 0x79, 0x1c, 0x4f, 0x0d, 0xd2, 0x37, 0x00, 0x79, 0x07, 0x6d, 0x31, 0xcf, 0x0c, 0x50, 0x73, - 0x9d, 0xce, 0xb5, 0xd9, 0xdb, 0xbb, 0xa3, 0xe9, 0xa6, 0x49, 0xaf, 0x65, 0x26, 0x72, 0xcb, 0x87, - 0x40, 0xf0, 0x0a, 0xfd, 0x44, 0x31, 0xc1, 0x29, 0xcb, 0x25, 0xea, 0xf8, 0x1b, 0xde, 0xf6, 0x1a, - 0x29, 0xb4, 0xdb, 0xdf, 0x4b, 0x40, 0xcc, 0x69, 0x33, 0xb1, 0x44, 0x9e, 0x25, 0x8f, 0xb1, 0x22, - 0x04, 0x2a, 0x7c, 0x1e, 0x16, 0x76, 0x74, 0x4d, 0x4e, 0xa0, 0xa2, 0xd2, 0x08, 0xb5, 0xf8, 0xad, - 0xde, 0xcb, 0x7b, 0x25, 0xdd, 0x3c, 0xc4, 0xd1, 0xbf, 0xa8, 0x9e, 0x21, 0x47, 0x50, 0xfd, 0x77, - 0x43, 0x39, 0x95, 0xbc, 0x86, 0x5d, 0x16, 0x44, 0x34, 0x60, 0xb1, 0x2f, 0x2e, 0x51, 0xa6, 0x14, - 0x79, 0x10, 0x09, 0x96, 0x6f, 0x53, 0xc3, 0xdb, 0x61, 0x41, 0x74, 0x5a, 0x80, 0xc3, 0x1c, 0x23, - 0x2f, 0x60, 0x4b, 0x65, 0x2a, 0xae, 0xd9, 0x9b, 0x9a, 0xdd, 0xd6, 0xdd, 0x82, 0x66, 0x3f, 0x81, - 0x8a, 0x5e, 0xa9, 0x5d, 0x20, 0x83, 0xf1, 0x68, 0x38, 0x99, 0xd1, 0x81, 0x37, 0x3c, 0x1d, 0x4e, - 0x66, 0xa3, 0xfe, 0x78, 0xda, 0xd9, 0xb0, 0x7f, 0x58, 0xf0, 0xdf, 0x34, 0xff, 0xff, 0x0c, 0x04, - 0x57, 0x78, 0xa5, 0x88, 0x03, 0x55, 0x99, 0x70, 0x3a, 0x8f, 0x75, 0x2e, 0xcd, 0xde, 0xc3, 0x3b, - 0x2e, 0x8a, 0x54, 0xbd, 0x4d, 0x99, 0xf0, 0x7e, 0x4c, 0x5c, 0xa8, 0x99, 0xd5, 0x8a, 0xbb, 0xa5, - 0xfd, 0xf2, 0x9f, 0x77, 0xab, 0x60, 0x91, 0x37, 0x50, 0xd5, 0x2a, 0xe3, 0x6e, 0x59, 0xf3, 0x9f, - 0xfd, 0x35, 0x64, 0x2f, 0x1f, 0x78, 0xff, 0xf6, 0xcb, 0xc9, 0x82, 0xa9, 0x8b, 0xe4, 0xdc, 0xf1, - 0x45, 0xe8, 0xea, 0x31, 0x21, 0x17, 0xa6, 0x70, 0xd7, 0xcf, 0xc2, 0x02, 0xb9, 0x1b, 0x9d, 0x1f, - 0x2e, 0x84, 0x7b, 0xeb, 0xa5, 0x38, 0xaf, 0xea, 0x17, 0xe2, 0xe8, 0x77, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x01, 0x4e, 0xd8, 0x7d, 0x41, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json deleted file mode 100644 index 687a127245..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/security.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/security.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go b/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go deleted file mode 100644 index 1073668fea..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/tasks.pb.go +++ /dev/null @@ -1,1536 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/tasks.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - _struct "github.com/golang/protobuf/ptypes/struct" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Known resource names. -type Resources_ResourceName int32 - -const ( - Resources_UNKNOWN Resources_ResourceName = 0 - Resources_CPU Resources_ResourceName = 1 - Resources_GPU Resources_ResourceName = 2 - Resources_MEMORY Resources_ResourceName = 3 - Resources_STORAGE Resources_ResourceName = 4 - // For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. - Resources_EPHEMERAL_STORAGE Resources_ResourceName = 5 -) - -var Resources_ResourceName_name = map[int32]string{ - 0: "UNKNOWN", - 1: "CPU", - 2: "GPU", - 3: "MEMORY", - 4: "STORAGE", - 5: "EPHEMERAL_STORAGE", -} - -var Resources_ResourceName_value = map[string]int32{ - "UNKNOWN": 0, - "CPU": 1, - "GPU": 2, - "MEMORY": 3, - "STORAGE": 4, - "EPHEMERAL_STORAGE": 5, -} - -func (x Resources_ResourceName) String() string { - return proto.EnumName(Resources_ResourceName_name, int32(x)) -} - -func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{0, 0} -} - -type RuntimeMetadata_RuntimeType int32 - -const ( - RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0 - RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1 -) - -var RuntimeMetadata_RuntimeType_name = map[int32]string{ - 0: "OTHER", - 1: "FLYTE_SDK", -} - -var RuntimeMetadata_RuntimeType_value = map[string]int32{ - "OTHER": 0, - "FLYTE_SDK": 1, -} - -func (x RuntimeMetadata_RuntimeType) String() string { - return proto.EnumName(RuntimeMetadata_RuntimeType_name, int32(x)) -} - -func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{3, 0} -} - -// Architecture-type the container image supports. -type Container_Architecture int32 - -const ( - Container_UNKNOWN Container_Architecture = 0 - Container_AMD64 Container_Architecture = 1 - Container_ARM64 Container_Architecture = 2 - Container_ARM_V6 Container_Architecture = 3 - Container_ARM_V7 Container_Architecture = 4 -) - -var Container_Architecture_name = map[int32]string{ - 0: "UNKNOWN", - 1: "AMD64", - 2: "ARM64", - 3: "ARM_V6", - 4: "ARM_V7", -} - -var Container_Architecture_value = map[string]int32{ - "UNKNOWN": 0, - "AMD64": 1, - "ARM64": 2, - "ARM_V6": 3, - "ARM_V7": 4, -} - -func (x Container_Architecture) String() string { - return proto.EnumName(Container_Architecture_name, int32(x)) -} - -func (Container_Architecture) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{7, 0} -} - -// Mode to use for downloading -type IOStrategy_DownloadMode int32 - -const ( - // All data will be downloaded before the main container is executed - IOStrategy_DOWNLOAD_EAGER IOStrategy_DownloadMode = 0 - // Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - IOStrategy_DOWNLOAD_STREAM IOStrategy_DownloadMode = 1 - // Large objects (offloaded) will not be downloaded - IOStrategy_DO_NOT_DOWNLOAD IOStrategy_DownloadMode = 2 -) - -var IOStrategy_DownloadMode_name = map[int32]string{ - 0: "DOWNLOAD_EAGER", - 1: "DOWNLOAD_STREAM", - 2: "DO_NOT_DOWNLOAD", -} - -var IOStrategy_DownloadMode_value = map[string]int32{ - "DOWNLOAD_EAGER": 0, - "DOWNLOAD_STREAM": 1, - "DO_NOT_DOWNLOAD": 2, -} - -func (x IOStrategy_DownloadMode) String() string { - return proto.EnumName(IOStrategy_DownloadMode_name, int32(x)) -} - -func (IOStrategy_DownloadMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{8, 0} -} - -// Mode to use for uploading -type IOStrategy_UploadMode int32 - -const ( - // All data will be uploaded after the main container exits - IOStrategy_UPLOAD_ON_EXIT IOStrategy_UploadMode = 0 - // Data will be uploaded as it appears. Refer to protocol specification for details - IOStrategy_UPLOAD_EAGER IOStrategy_UploadMode = 1 - // Data will not be uploaded, only references will be written - IOStrategy_DO_NOT_UPLOAD IOStrategy_UploadMode = 2 -) - -var IOStrategy_UploadMode_name = map[int32]string{ - 0: "UPLOAD_ON_EXIT", - 1: "UPLOAD_EAGER", - 2: "DO_NOT_UPLOAD", -} - -var IOStrategy_UploadMode_value = map[string]int32{ - "UPLOAD_ON_EXIT": 0, - "UPLOAD_EAGER": 1, - "DO_NOT_UPLOAD": 2, -} - -func (x IOStrategy_UploadMode) String() string { - return proto.EnumName(IOStrategy_UploadMode_name, int32(x)) -} - -func (IOStrategy_UploadMode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{8, 1} -} - -// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. -// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. -// JSON and YAML do not need any protobuf definitions to read it -// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) -type DataLoadingConfig_LiteralMapFormat int32 - -const ( - // JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html - DataLoadingConfig_JSON DataLoadingConfig_LiteralMapFormat = 0 - DataLoadingConfig_YAML DataLoadingConfig_LiteralMapFormat = 1 - // Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core - DataLoadingConfig_PROTO DataLoadingConfig_LiteralMapFormat = 2 -) - -var DataLoadingConfig_LiteralMapFormat_name = map[int32]string{ - 0: "JSON", - 1: "YAML", - 2: "PROTO", -} - -var DataLoadingConfig_LiteralMapFormat_value = map[string]int32{ - "JSON": 0, - "YAML": 1, - "PROTO": 2, -} - -func (x DataLoadingConfig_LiteralMapFormat) String() string { - return proto.EnumName(DataLoadingConfig_LiteralMapFormat_name, int32(x)) -} - -func (DataLoadingConfig_LiteralMapFormat) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{9, 0} -} - -// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid -// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. -// We support the following dialect: ansi, hive. -type Sql_Dialect int32 - -const ( - Sql_UNDEFINED Sql_Dialect = 0 - Sql_ANSI Sql_Dialect = 1 - Sql_HIVE Sql_Dialect = 2 - Sql_OTHER Sql_Dialect = 3 -) - -var Sql_Dialect_name = map[int32]string{ - 0: "UNDEFINED", - 1: "ANSI", - 2: "HIVE", - 3: "OTHER", -} - -var Sql_Dialect_value = map[string]int32{ - "UNDEFINED": 0, - "ANSI": 1, - "HIVE": 2, - "OTHER": 3, -} - -func (x Sql_Dialect) String() string { - return proto.EnumName(Sql_Dialect_name, int32(x)) -} - -func (Sql_Dialect) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{12, 0} -} - -// A customizable interface to convey resources requested for a container. This can be interpreted differently for different -// container engines. -type Resources struct { - // The desired set of resources requested. ResourceNames must be unique within the list. - Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` - // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique - // within the list. - Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Resources) Reset() { *m = Resources{} } -func (m *Resources) String() string { return proto.CompactTextString(m) } -func (*Resources) ProtoMessage() {} -func (*Resources) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{0} -} - -func (m *Resources) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Resources.Unmarshal(m, b) -} -func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Resources.Marshal(b, m, deterministic) -} -func (m *Resources) XXX_Merge(src proto.Message) { - xxx_messageInfo_Resources.Merge(m, src) -} -func (m *Resources) XXX_Size() int { - return xxx_messageInfo_Resources.Size(m) -} -func (m *Resources) XXX_DiscardUnknown() { - xxx_messageInfo_Resources.DiscardUnknown(m) -} - -var xxx_messageInfo_Resources proto.InternalMessageInfo - -func (m *Resources) GetRequests() []*Resources_ResourceEntry { - if m != nil { - return m.Requests - } - return nil -} - -func (m *Resources) GetLimits() []*Resources_ResourceEntry { - if m != nil { - return m.Limits - } - return nil -} - -// Encapsulates a resource name and value. -type Resources_ResourceEntry struct { - // Resource name. - Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"` - // Value must be a valid k8s quantity. See - // https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80 - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Resources_ResourceEntry) Reset() { *m = Resources_ResourceEntry{} } -func (m *Resources_ResourceEntry) String() string { return proto.CompactTextString(m) } -func (*Resources_ResourceEntry) ProtoMessage() {} -func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{0, 0} -} - -func (m *Resources_ResourceEntry) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Resources_ResourceEntry.Unmarshal(m, b) -} -func (m *Resources_ResourceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Resources_ResourceEntry.Marshal(b, m, deterministic) -} -func (m *Resources_ResourceEntry) XXX_Merge(src proto.Message) { - xxx_messageInfo_Resources_ResourceEntry.Merge(m, src) -} -func (m *Resources_ResourceEntry) XXX_Size() int { - return xxx_messageInfo_Resources_ResourceEntry.Size(m) -} -func (m *Resources_ResourceEntry) XXX_DiscardUnknown() { - xxx_messageInfo_Resources_ResourceEntry.DiscardUnknown(m) -} - -var xxx_messageInfo_Resources_ResourceEntry proto.InternalMessageInfo - -func (m *Resources_ResourceEntry) GetName() Resources_ResourceName { - if m != nil { - return m.Name - } - return Resources_UNKNOWN -} - -func (m *Resources_ResourceEntry) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// Metadata associated with the GPU accelerator to allocate to a task. Contains -// information about device type, and for multi-instance GPUs, the partition size to -// use. -type GPUAccelerator struct { - // This can be any arbitrary string, and should be informed by the labels or taints - // associated with the nodes in question. Default cloud provider labels typically - // use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` - // Types that are valid to be assigned to PartitionSizeValue: - // *GPUAccelerator_Unpartitioned - // *GPUAccelerator_PartitionSize - PartitionSizeValue isGPUAccelerator_PartitionSizeValue `protobuf_oneof:"partition_size_value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GPUAccelerator) Reset() { *m = GPUAccelerator{} } -func (m *GPUAccelerator) String() string { return proto.CompactTextString(m) } -func (*GPUAccelerator) ProtoMessage() {} -func (*GPUAccelerator) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{1} -} - -func (m *GPUAccelerator) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GPUAccelerator.Unmarshal(m, b) -} -func (m *GPUAccelerator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GPUAccelerator.Marshal(b, m, deterministic) -} -func (m *GPUAccelerator) XXX_Merge(src proto.Message) { - xxx_messageInfo_GPUAccelerator.Merge(m, src) -} -func (m *GPUAccelerator) XXX_Size() int { - return xxx_messageInfo_GPUAccelerator.Size(m) -} -func (m *GPUAccelerator) XXX_DiscardUnknown() { - xxx_messageInfo_GPUAccelerator.DiscardUnknown(m) -} - -var xxx_messageInfo_GPUAccelerator proto.InternalMessageInfo - -func (m *GPUAccelerator) GetDevice() string { - if m != nil { - return m.Device - } - return "" -} - -type isGPUAccelerator_PartitionSizeValue interface { - isGPUAccelerator_PartitionSizeValue() -} - -type GPUAccelerator_Unpartitioned struct { - Unpartitioned bool `protobuf:"varint,2,opt,name=unpartitioned,proto3,oneof"` -} - -type GPUAccelerator_PartitionSize struct { - PartitionSize string `protobuf:"bytes,3,opt,name=partition_size,json=partitionSize,proto3,oneof"` -} - -func (*GPUAccelerator_Unpartitioned) isGPUAccelerator_PartitionSizeValue() {} - -func (*GPUAccelerator_PartitionSize) isGPUAccelerator_PartitionSizeValue() {} - -func (m *GPUAccelerator) GetPartitionSizeValue() isGPUAccelerator_PartitionSizeValue { - if m != nil { - return m.PartitionSizeValue - } - return nil -} - -func (m *GPUAccelerator) GetUnpartitioned() bool { - if x, ok := m.GetPartitionSizeValue().(*GPUAccelerator_Unpartitioned); ok { - return x.Unpartitioned - } - return false -} - -func (m *GPUAccelerator) GetPartitionSize() string { - if x, ok := m.GetPartitionSizeValue().(*GPUAccelerator_PartitionSize); ok { - return x.PartitionSize - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*GPUAccelerator) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*GPUAccelerator_Unpartitioned)(nil), - (*GPUAccelerator_PartitionSize)(nil), - } -} - -// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to -// allocate to a task. -type ExtendedResources struct { - // GPU accelerator to select for task. Contains information about device type, and - // for multi-instance GPUs, the partition size to use. - GpuAccelerator *GPUAccelerator `protobuf:"bytes,1,opt,name=gpu_accelerator,json=gpuAccelerator,proto3" json:"gpu_accelerator,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExtendedResources) Reset() { *m = ExtendedResources{} } -func (m *ExtendedResources) String() string { return proto.CompactTextString(m) } -func (*ExtendedResources) ProtoMessage() {} -func (*ExtendedResources) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{2} -} - -func (m *ExtendedResources) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExtendedResources.Unmarshal(m, b) -} -func (m *ExtendedResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExtendedResources.Marshal(b, m, deterministic) -} -func (m *ExtendedResources) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExtendedResources.Merge(m, src) -} -func (m *ExtendedResources) XXX_Size() int { - return xxx_messageInfo_ExtendedResources.Size(m) -} -func (m *ExtendedResources) XXX_DiscardUnknown() { - xxx_messageInfo_ExtendedResources.DiscardUnknown(m) -} - -var xxx_messageInfo_ExtendedResources proto.InternalMessageInfo - -func (m *ExtendedResources) GetGpuAccelerator() *GPUAccelerator { - if m != nil { - return m.GpuAccelerator - } - return nil -} - -// Runtime information. This is loosely defined to allow for extensibility. -type RuntimeMetadata struct { - // Type of runtime. - Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"` - // Version of the runtime. All versions should be backward compatible. However, certain cases call for version - // checks to ensure tighter validation or setting expectations. - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` - //+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RuntimeMetadata) Reset() { *m = RuntimeMetadata{} } -func (m *RuntimeMetadata) String() string { return proto.CompactTextString(m) } -func (*RuntimeMetadata) ProtoMessage() {} -func (*RuntimeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{3} -} - -func (m *RuntimeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RuntimeMetadata.Unmarshal(m, b) -} -func (m *RuntimeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RuntimeMetadata.Marshal(b, m, deterministic) -} -func (m *RuntimeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_RuntimeMetadata.Merge(m, src) -} -func (m *RuntimeMetadata) XXX_Size() int { - return xxx_messageInfo_RuntimeMetadata.Size(m) -} -func (m *RuntimeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_RuntimeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_RuntimeMetadata proto.InternalMessageInfo - -func (m *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType { - if m != nil { - return m.Type - } - return RuntimeMetadata_OTHER -} - -func (m *RuntimeMetadata) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *RuntimeMetadata) GetFlavor() string { - if m != nil { - return m.Flavor - } - return "" -} - -// Task Metadata -type TaskMetadata struct { - // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"` - // Runtime information about the task. - Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` - // The overall timeout of a task including user-triggered retries. - Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Number of retries per task. - Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` - // Indicates a logical version to apply to this task for the purpose of discovery. - DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"` - // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers - // of the ending of support for a given task. - DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"` - // Identify whether task is interruptible - // - // Types that are valid to be assigned to InterruptibleValue: - // *TaskMetadata_Interruptible - InterruptibleValue isTaskMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` - // Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work - CacheSerializable bool `protobuf:"varint,9,opt,name=cache_serializable,json=cacheSerializable,proto3" json:"cache_serializable,omitempty"` - // Indicates whether the task will generate a Deck URI when it finishes executing. - GeneratesDeck bool `protobuf:"varint,10,opt,name=generates_deck,json=generatesDeck,proto3" json:"generates_deck,omitempty"` - // Arbitrary tags that allow users and the platform to store small but arbitrary labels - Tags map[string]string `protobuf:"bytes,11,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this - // task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied - // identically as, the default PodTemplate configured in FlytePropeller. - PodTemplateName string `protobuf:"bytes,12,opt,name=pod_template_name,json=podTemplateName,proto3" json:"pod_template_name,omitempty"` - // cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - CacheIgnoreInputVars []string `protobuf:"bytes,13,rep,name=cache_ignore_input_vars,json=cacheIgnoreInputVars,proto3" json:"cache_ignore_input_vars,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskMetadata) Reset() { *m = TaskMetadata{} } -func (m *TaskMetadata) String() string { return proto.CompactTextString(m) } -func (*TaskMetadata) ProtoMessage() {} -func (*TaskMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{4} -} - -func (m *TaskMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskMetadata.Unmarshal(m, b) -} -func (m *TaskMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskMetadata.Marshal(b, m, deterministic) -} -func (m *TaskMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskMetadata.Merge(m, src) -} -func (m *TaskMetadata) XXX_Size() int { - return xxx_messageInfo_TaskMetadata.Size(m) -} -func (m *TaskMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskMetadata proto.InternalMessageInfo - -func (m *TaskMetadata) GetDiscoverable() bool { - if m != nil { - return m.Discoverable - } - return false -} - -func (m *TaskMetadata) GetRuntime() *RuntimeMetadata { - if m != nil { - return m.Runtime - } - return nil -} - -func (m *TaskMetadata) GetTimeout() *duration.Duration { - if m != nil { - return m.Timeout - } - return nil -} - -func (m *TaskMetadata) GetRetries() *RetryStrategy { - if m != nil { - return m.Retries - } - return nil -} - -func (m *TaskMetadata) GetDiscoveryVersion() string { - if m != nil { - return m.DiscoveryVersion - } - return "" -} - -func (m *TaskMetadata) GetDeprecatedErrorMessage() string { - if m != nil { - return m.DeprecatedErrorMessage - } - return "" -} - -type isTaskMetadata_InterruptibleValue interface { - isTaskMetadata_InterruptibleValue() -} - -type TaskMetadata_Interruptible struct { - Interruptible bool `protobuf:"varint,8,opt,name=interruptible,proto3,oneof"` -} - -func (*TaskMetadata_Interruptible) isTaskMetadata_InterruptibleValue() {} - -func (m *TaskMetadata) GetInterruptibleValue() isTaskMetadata_InterruptibleValue { - if m != nil { - return m.InterruptibleValue - } - return nil -} - -func (m *TaskMetadata) GetInterruptible() bool { - if x, ok := m.GetInterruptibleValue().(*TaskMetadata_Interruptible); ok { - return x.Interruptible - } - return false -} - -func (m *TaskMetadata) GetCacheSerializable() bool { - if m != nil { - return m.CacheSerializable - } - return false -} - -func (m *TaskMetadata) GetGeneratesDeck() bool { - if m != nil { - return m.GeneratesDeck - } - return false -} - -func (m *TaskMetadata) GetTags() map[string]string { - if m != nil { - return m.Tags - } - return nil -} - -func (m *TaskMetadata) GetPodTemplateName() string { - if m != nil { - return m.PodTemplateName - } - return "" -} - -func (m *TaskMetadata) GetCacheIgnoreInputVars() []string { - if m != nil { - return m.CacheIgnoreInputVars - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TaskMetadata) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TaskMetadata_Interruptible)(nil), - } -} - -// A Task structure that uniquely identifies a task in the system -// Tasks are registered as a first step in the system. -type TaskTemplate struct { - // Auto generated taskId by the system. Task Id uniquely identifies this task globally. - Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no - // extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the - // implementation registered for the TaskCategory. - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // Extra metadata about the task. - Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees - // compile-time validation of the workflow to avoid costly runtime failures. - Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"` - // Custom data about the task. This is extensible to allow various plugins in the system. - Custom *_struct.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"` - // Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - // If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - // handlers. - // - // Types that are valid to be assigned to Target: - // *TaskTemplate_Container - // *TaskTemplate_K8SPod - // *TaskTemplate_Sql - Target isTaskTemplate_Target `protobuf_oneof:"target"` - // This can be used to customize task handling at execution time for the same task type. - TaskTypeVersion int32 `protobuf:"varint,7,opt,name=task_type_version,json=taskTypeVersion,proto3" json:"task_type_version,omitempty"` - // security_context encapsulates security attributes requested to run this task. - SecurityContext *SecurityContext `protobuf:"bytes,8,opt,name=security_context,json=securityContext,proto3" json:"security_context,omitempty"` - // Encapsulates all non-standard resources, not captured by - // v1.ResourceRequirements, to allocate to a task. - ExtendedResources *ExtendedResources `protobuf:"bytes,9,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` - // Metadata about the custom defined for this task. This is extensible to allow various plugins in the system - // to use as required. - // reserve the field numbers 1 through 15 for very frequently occurring message elements - Config map[string]string `protobuf:"bytes,16,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskTemplate) Reset() { *m = TaskTemplate{} } -func (m *TaskTemplate) String() string { return proto.CompactTextString(m) } -func (*TaskTemplate) ProtoMessage() {} -func (*TaskTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{5} -} - -func (m *TaskTemplate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskTemplate.Unmarshal(m, b) -} -func (m *TaskTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskTemplate.Marshal(b, m, deterministic) -} -func (m *TaskTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskTemplate.Merge(m, src) -} -func (m *TaskTemplate) XXX_Size() int { - return xxx_messageInfo_TaskTemplate.Size(m) -} -func (m *TaskTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_TaskTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskTemplate proto.InternalMessageInfo - -func (m *TaskTemplate) GetId() *Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *TaskTemplate) GetType() string { - if m != nil { - return m.Type - } - return "" -} - -func (m *TaskTemplate) GetMetadata() *TaskMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *TaskTemplate) GetInterface() *TypedInterface { - if m != nil { - return m.Interface - } - return nil -} - -func (m *TaskTemplate) GetCustom() *_struct.Struct { - if m != nil { - return m.Custom - } - return nil -} - -type isTaskTemplate_Target interface { - isTaskTemplate_Target() -} - -type TaskTemplate_Container struct { - Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"` -} - -type TaskTemplate_K8SPod struct { - K8SPod *K8SPod `protobuf:"bytes,17,opt,name=k8s_pod,json=k8sPod,proto3,oneof"` -} - -type TaskTemplate_Sql struct { - Sql *Sql `protobuf:"bytes,18,opt,name=sql,proto3,oneof"` -} - -func (*TaskTemplate_Container) isTaskTemplate_Target() {} - -func (*TaskTemplate_K8SPod) isTaskTemplate_Target() {} - -func (*TaskTemplate_Sql) isTaskTemplate_Target() {} - -func (m *TaskTemplate) GetTarget() isTaskTemplate_Target { - if m != nil { - return m.Target - } - return nil -} - -func (m *TaskTemplate) GetContainer() *Container { - if x, ok := m.GetTarget().(*TaskTemplate_Container); ok { - return x.Container - } - return nil -} - -func (m *TaskTemplate) GetK8SPod() *K8SPod { - if x, ok := m.GetTarget().(*TaskTemplate_K8SPod); ok { - return x.K8SPod - } - return nil -} - -func (m *TaskTemplate) GetSql() *Sql { - if x, ok := m.GetTarget().(*TaskTemplate_Sql); ok { - return x.Sql - } - return nil -} - -func (m *TaskTemplate) GetTaskTypeVersion() int32 { - if m != nil { - return m.TaskTypeVersion - } - return 0 -} - -func (m *TaskTemplate) GetSecurityContext() *SecurityContext { - if m != nil { - return m.SecurityContext - } - return nil -} - -func (m *TaskTemplate) GetExtendedResources() *ExtendedResources { - if m != nil { - return m.ExtendedResources - } - return nil -} - -func (m *TaskTemplate) GetConfig() map[string]string { - if m != nil { - return m.Config - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TaskTemplate) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TaskTemplate_Container)(nil), - (*TaskTemplate_K8SPod)(nil), - (*TaskTemplate_Sql)(nil), - } -} - -// Defines port properties for a container. -type ContainerPort struct { - // Number of port to expose on the pod's IP address. - // This must be a valid port number, 0 < x < 65536. - ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ContainerPort) Reset() { *m = ContainerPort{} } -func (m *ContainerPort) String() string { return proto.CompactTextString(m) } -func (*ContainerPort) ProtoMessage() {} -func (*ContainerPort) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{6} -} - -func (m *ContainerPort) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ContainerPort.Unmarshal(m, b) -} -func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ContainerPort.Marshal(b, m, deterministic) -} -func (m *ContainerPort) XXX_Merge(src proto.Message) { - xxx_messageInfo_ContainerPort.Merge(m, src) -} -func (m *ContainerPort) XXX_Size() int { - return xxx_messageInfo_ContainerPort.Size(m) -} -func (m *ContainerPort) XXX_DiscardUnknown() { - xxx_messageInfo_ContainerPort.DiscardUnknown(m) -} - -var xxx_messageInfo_ContainerPort proto.InternalMessageInfo - -func (m *ContainerPort) GetContainerPort() uint32 { - if m != nil { - return m.ContainerPort - } - return 0 -} - -type Container struct { - // Container image url. Eg: docker/redis:latest - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - // Command to be executed, if not provided, the default entrypoint in the container image will be used. - Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` - // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still - // needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the - // system will populate these before executing the container. - Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` - // Container resources requirement as specified by the container engine. - Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"` - // Environment variables will be set as the container is starting up. - Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"` - // Allows extra configs to be available for the container. - // TODO: elaborate on how configs will become available. - // Deprecated, please use TaskTemplate.config instead. - Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"` // Deprecated: Do not use. - // Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but - // not supported on AWS Batch) - // Only K8s - Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` - // BETA: Optional configuration for DataLoading. If not specified, then default values are used. - // This makes it possible to to run a completely portable container, that uses inputs and outputs - // only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. - // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - // to understand the default paths. - // Only K8s - DataConfig *DataLoadingConfig `protobuf:"bytes,9,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` - Architecture Container_Architecture `protobuf:"varint,10,opt,name=architecture,proto3,enum=flyteidl.core.Container_Architecture" json:"architecture,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Container) Reset() { *m = Container{} } -func (m *Container) String() string { return proto.CompactTextString(m) } -func (*Container) ProtoMessage() {} -func (*Container) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{7} -} - -func (m *Container) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Container.Unmarshal(m, b) -} -func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Container.Marshal(b, m, deterministic) -} -func (m *Container) XXX_Merge(src proto.Message) { - xxx_messageInfo_Container.Merge(m, src) -} -func (m *Container) XXX_Size() int { - return xxx_messageInfo_Container.Size(m) -} -func (m *Container) XXX_DiscardUnknown() { - xxx_messageInfo_Container.DiscardUnknown(m) -} - -var xxx_messageInfo_Container proto.InternalMessageInfo - -func (m *Container) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *Container) GetCommand() []string { - if m != nil { - return m.Command - } - return nil -} - -func (m *Container) GetArgs() []string { - if m != nil { - return m.Args - } - return nil -} - -func (m *Container) GetResources() *Resources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *Container) GetEnv() []*KeyValuePair { - if m != nil { - return m.Env - } - return nil -} - -// Deprecated: Do not use. -func (m *Container) GetConfig() []*KeyValuePair { - if m != nil { - return m.Config - } - return nil -} - -func (m *Container) GetPorts() []*ContainerPort { - if m != nil { - return m.Ports - } - return nil -} - -func (m *Container) GetDataConfig() *DataLoadingConfig { - if m != nil { - return m.DataConfig - } - return nil -} - -func (m *Container) GetArchitecture() Container_Architecture { - if m != nil { - return m.Architecture - } - return Container_UNKNOWN -} - -// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) -type IOStrategy struct { - // Mode to use to manage downloads - DownloadMode IOStrategy_DownloadMode `protobuf:"varint,1,opt,name=download_mode,json=downloadMode,proto3,enum=flyteidl.core.IOStrategy_DownloadMode" json:"download_mode,omitempty"` - // Mode to use to manage uploads - UploadMode IOStrategy_UploadMode `protobuf:"varint,2,opt,name=upload_mode,json=uploadMode,proto3,enum=flyteidl.core.IOStrategy_UploadMode" json:"upload_mode,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IOStrategy) Reset() { *m = IOStrategy{} } -func (m *IOStrategy) String() string { return proto.CompactTextString(m) } -func (*IOStrategy) ProtoMessage() {} -func (*IOStrategy) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{8} -} - -func (m *IOStrategy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IOStrategy.Unmarshal(m, b) -} -func (m *IOStrategy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IOStrategy.Marshal(b, m, deterministic) -} -func (m *IOStrategy) XXX_Merge(src proto.Message) { - xxx_messageInfo_IOStrategy.Merge(m, src) -} -func (m *IOStrategy) XXX_Size() int { - return xxx_messageInfo_IOStrategy.Size(m) -} -func (m *IOStrategy) XXX_DiscardUnknown() { - xxx_messageInfo_IOStrategy.DiscardUnknown(m) -} - -var xxx_messageInfo_IOStrategy proto.InternalMessageInfo - -func (m *IOStrategy) GetDownloadMode() IOStrategy_DownloadMode { - if m != nil { - return m.DownloadMode - } - return IOStrategy_DOWNLOAD_EAGER -} - -func (m *IOStrategy) GetUploadMode() IOStrategy_UploadMode { - if m != nil { - return m.UploadMode - } - return IOStrategy_UPLOAD_ON_EXIT -} - -// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. -// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path -// Any outputs generated by the user container - within output_path are automatically uploaded. -type DataLoadingConfig struct { - // Flag enables DataLoading Config. If this is not set, data loading will not be used! - Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` - // File system path (start at root). This folder will contain all the inputs exploded to a separate file. - // Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like - // /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations - // /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format - // /var/flyte/inputs/y -> Y is a file in Binary format - // /var/flyte/inputs/z/... -> Note Z itself is a directory - // More information about the protocol - refer to docs #TODO reference docs here - InputPath string `protobuf:"bytes,2,opt,name=input_path,json=inputPath,proto3" json:"input_path,omitempty"` - // File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file - OutputPath string `protobuf:"bytes,3,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"` - // In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. - // This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding - Format DataLoadingConfig_LiteralMapFormat `protobuf:"varint,4,opt,name=format,proto3,enum=flyteidl.core.DataLoadingConfig_LiteralMapFormat" json:"format,omitempty"` - IoStrategy *IOStrategy `protobuf:"bytes,5,opt,name=io_strategy,json=ioStrategy,proto3" json:"io_strategy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DataLoadingConfig) Reset() { *m = DataLoadingConfig{} } -func (m *DataLoadingConfig) String() string { return proto.CompactTextString(m) } -func (*DataLoadingConfig) ProtoMessage() {} -func (*DataLoadingConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{9} -} - -func (m *DataLoadingConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DataLoadingConfig.Unmarshal(m, b) -} -func (m *DataLoadingConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DataLoadingConfig.Marshal(b, m, deterministic) -} -func (m *DataLoadingConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_DataLoadingConfig.Merge(m, src) -} -func (m *DataLoadingConfig) XXX_Size() int { - return xxx_messageInfo_DataLoadingConfig.Size(m) -} -func (m *DataLoadingConfig) XXX_DiscardUnknown() { - xxx_messageInfo_DataLoadingConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_DataLoadingConfig proto.InternalMessageInfo - -func (m *DataLoadingConfig) GetEnabled() bool { - if m != nil { - return m.Enabled - } - return false -} - -func (m *DataLoadingConfig) GetInputPath() string { - if m != nil { - return m.InputPath - } - return "" -} - -func (m *DataLoadingConfig) GetOutputPath() string { - if m != nil { - return m.OutputPath - } - return "" -} - -func (m *DataLoadingConfig) GetFormat() DataLoadingConfig_LiteralMapFormat { - if m != nil { - return m.Format - } - return DataLoadingConfig_JSON -} - -func (m *DataLoadingConfig) GetIoStrategy() *IOStrategy { - if m != nil { - return m.IoStrategy - } - return nil -} - -// Defines a pod spec and additional pod metadata that is created when a task is executed. -type K8SPod struct { - // Contains additional metadata for building a kubernetes pod. - Metadata *K8SObjectMetadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Defines the primary pod spec created when a task is executed. - // This should be a JSON-marshalled pod spec, which can be defined in - // - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936 - // - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py - PodSpec *_struct.Struct `protobuf:"bytes,2,opt,name=pod_spec,json=podSpec,proto3" json:"pod_spec,omitempty"` - // BETA: Optional configuration for DataLoading. If not specified, then default values are used. - // This makes it possible to to run a completely portable container, that uses inputs and outputs - // only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. - // If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - // are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - // to understand the default paths. - // Only K8s - DataConfig *DataLoadingConfig `protobuf:"bytes,3,opt,name=data_config,json=dataConfig,proto3" json:"data_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *K8SPod) Reset() { *m = K8SPod{} } -func (m *K8SPod) String() string { return proto.CompactTextString(m) } -func (*K8SPod) ProtoMessage() {} -func (*K8SPod) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{10} -} - -func (m *K8SPod) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_K8SPod.Unmarshal(m, b) -} -func (m *K8SPod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_K8SPod.Marshal(b, m, deterministic) -} -func (m *K8SPod) XXX_Merge(src proto.Message) { - xxx_messageInfo_K8SPod.Merge(m, src) -} -func (m *K8SPod) XXX_Size() int { - return xxx_messageInfo_K8SPod.Size(m) -} -func (m *K8SPod) XXX_DiscardUnknown() { - xxx_messageInfo_K8SPod.DiscardUnknown(m) -} - -var xxx_messageInfo_K8SPod proto.InternalMessageInfo - -func (m *K8SPod) GetMetadata() *K8SObjectMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *K8SPod) GetPodSpec() *_struct.Struct { - if m != nil { - return m.PodSpec - } - return nil -} - -func (m *K8SPod) GetDataConfig() *DataLoadingConfig { - if m != nil { - return m.DataConfig - } - return nil -} - -// Metadata for building a kubernetes object when a task is executed. -type K8SObjectMetadata struct { - // Optional labels to add to the pod definition. - Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // Optional annotations to add to the pod definition. - Annotations map[string]string `protobuf:"bytes,2,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *K8SObjectMetadata) Reset() { *m = K8SObjectMetadata{} } -func (m *K8SObjectMetadata) String() string { return proto.CompactTextString(m) } -func (*K8SObjectMetadata) ProtoMessage() {} -func (*K8SObjectMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{11} -} - -func (m *K8SObjectMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_K8SObjectMetadata.Unmarshal(m, b) -} -func (m *K8SObjectMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_K8SObjectMetadata.Marshal(b, m, deterministic) -} -func (m *K8SObjectMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_K8SObjectMetadata.Merge(m, src) -} -func (m *K8SObjectMetadata) XXX_Size() int { - return xxx_messageInfo_K8SObjectMetadata.Size(m) -} -func (m *K8SObjectMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_K8SObjectMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_K8SObjectMetadata proto.InternalMessageInfo - -func (m *K8SObjectMetadata) GetLabels() map[string]string { - if m != nil { - return m.Labels - } - return nil -} - -func (m *K8SObjectMetadata) GetAnnotations() map[string]string { - if m != nil { - return m.Annotations - } - return nil -} - -// Sql represents a generic sql workload with a statement and dialect. -type Sql struct { - // The actual query to run, the query can have templated parameters. - // We use Flyte's Golang templating format for Query templating. - // Refer to the templating documentation. - // https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py - // For example, - // insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet - // select * - // from my_table - // where ds = '{{ .Inputs.ds }}' - Statement string `protobuf:"bytes,1,opt,name=statement,proto3" json:"statement,omitempty"` - Dialect Sql_Dialect `protobuf:"varint,2,opt,name=dialect,proto3,enum=flyteidl.core.Sql_Dialect" json:"dialect,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Sql) Reset() { *m = Sql{} } -func (m *Sql) String() string { return proto.CompactTextString(m) } -func (*Sql) ProtoMessage() {} -func (*Sql) Descriptor() ([]byte, []int) { - return fileDescriptor_bd8423ba58d6ed80, []int{12} -} - -func (m *Sql) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Sql.Unmarshal(m, b) -} -func (m *Sql) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Sql.Marshal(b, m, deterministic) -} -func (m *Sql) XXX_Merge(src proto.Message) { - xxx_messageInfo_Sql.Merge(m, src) -} -func (m *Sql) XXX_Size() int { - return xxx_messageInfo_Sql.Size(m) -} -func (m *Sql) XXX_DiscardUnknown() { - xxx_messageInfo_Sql.DiscardUnknown(m) -} - -var xxx_messageInfo_Sql proto.InternalMessageInfo - -func (m *Sql) GetStatement() string { - if m != nil { - return m.Statement - } - return "" -} - -func (m *Sql) GetDialect() Sql_Dialect { - if m != nil { - return m.Dialect - } - return Sql_UNDEFINED -} - -func init() { - proto.RegisterEnum("flyteidl.core.Resources_ResourceName", Resources_ResourceName_name, Resources_ResourceName_value) - proto.RegisterEnum("flyteidl.core.RuntimeMetadata_RuntimeType", RuntimeMetadata_RuntimeType_name, RuntimeMetadata_RuntimeType_value) - proto.RegisterEnum("flyteidl.core.Container_Architecture", Container_Architecture_name, Container_Architecture_value) - proto.RegisterEnum("flyteidl.core.IOStrategy_DownloadMode", IOStrategy_DownloadMode_name, IOStrategy_DownloadMode_value) - proto.RegisterEnum("flyteidl.core.IOStrategy_UploadMode", IOStrategy_UploadMode_name, IOStrategy_UploadMode_value) - proto.RegisterEnum("flyteidl.core.DataLoadingConfig_LiteralMapFormat", DataLoadingConfig_LiteralMapFormat_name, DataLoadingConfig_LiteralMapFormat_value) - proto.RegisterEnum("flyteidl.core.Sql_Dialect", Sql_Dialect_name, Sql_Dialect_value) - proto.RegisterType((*Resources)(nil), "flyteidl.core.Resources") - proto.RegisterType((*Resources_ResourceEntry)(nil), "flyteidl.core.Resources.ResourceEntry") - proto.RegisterType((*GPUAccelerator)(nil), "flyteidl.core.GPUAccelerator") - proto.RegisterType((*ExtendedResources)(nil), "flyteidl.core.ExtendedResources") - proto.RegisterType((*RuntimeMetadata)(nil), "flyteidl.core.RuntimeMetadata") - proto.RegisterType((*TaskMetadata)(nil), "flyteidl.core.TaskMetadata") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.TaskMetadata.TagsEntry") - proto.RegisterType((*TaskTemplate)(nil), "flyteidl.core.TaskTemplate") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.TaskTemplate.ConfigEntry") - proto.RegisterType((*ContainerPort)(nil), "flyteidl.core.ContainerPort") - proto.RegisterType((*Container)(nil), "flyteidl.core.Container") - proto.RegisterType((*IOStrategy)(nil), "flyteidl.core.IOStrategy") - proto.RegisterType((*DataLoadingConfig)(nil), "flyteidl.core.DataLoadingConfig") - proto.RegisterType((*K8SPod)(nil), "flyteidl.core.K8sPod") - proto.RegisterType((*K8SObjectMetadata)(nil), "flyteidl.core.K8sObjectMetadata") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.K8sObjectMetadata.AnnotationsEntry") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.K8sObjectMetadata.LabelsEntry") - proto.RegisterType((*Sql)(nil), "flyteidl.core.Sql") -} - -func init() { proto.RegisterFile("flyteidl/core/tasks.proto", fileDescriptor_bd8423ba58d6ed80) } - -var fileDescriptor_bd8423ba58d6ed80 = []byte{ - // 1818 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x58, 0xdd, 0x72, 0xdb, 0xb8, - 0x15, 0xb6, 0x24, 0x5b, 0xb2, 0x8e, 0x2c, 0x9b, 0xc2, 0x6e, 0xb2, 0x8c, 0x9b, 0xa4, 0x1e, 0x4e, - 0x37, 0x49, 0xb7, 0x8d, 0xdc, 0x68, 0x53, 0xdb, 0x9b, 0xee, 0xa4, 0x23, 0x47, 0x4a, 0xac, 0xda, - 0xfa, 0x19, 0x48, 0xf6, 0x36, 0xed, 0x74, 0x58, 0x98, 0x84, 0x69, 0xd6, 0x14, 0xc1, 0x80, 0xa0, - 0xbb, 0xca, 0x5b, 0xb4, 0x2f, 0xd1, 0xe9, 0xcc, 0xde, 0xf6, 0xb2, 0xef, 0xd0, 0xab, 0x3e, 0x4d, - 0x2f, 0x3a, 0x00, 0x7f, 0xf4, 0xe7, 0xac, 0xc7, 0x57, 0xc2, 0x39, 0xe7, 0x3b, 0x07, 0xc0, 0xc1, - 0xf9, 0xa3, 0xe0, 0xc1, 0x85, 0x37, 0x11, 0xd4, 0xb5, 0xbd, 0x5d, 0x8b, 0x71, 0xba, 0x2b, 0x48, - 0x78, 0x15, 0xd6, 0x03, 0xce, 0x04, 0x43, 0xd5, 0x54, 0x54, 0x97, 0xa2, 0xed, 0xc7, 0xf3, 0x48, - 0xd7, 0xa6, 0xbe, 0x70, 0x2f, 0x5c, 0xca, 0x63, 0xf8, 0xf6, 0xa3, 0x05, 0xb9, 0x2f, 0x28, 0xbf, - 0x20, 0x16, 0x4d, 0xc4, 0x0f, 0xe7, 0xc5, 0x9e, 0x2b, 0x28, 0x27, 0x5e, 0x78, 0xb3, 0x34, 0xa4, - 0x56, 0xc4, 0x5d, 0x31, 0x49, 0xa4, 0x8f, 0x1d, 0xc6, 0x1c, 0x8f, 0xee, 0x2a, 0xea, 0x3c, 0xba, - 0xd8, 0xb5, 0x23, 0x4e, 0x84, 0xcb, 0xfc, 0x54, 0x7b, 0x51, 0x1e, 0x0a, 0x1e, 0x59, 0x22, 0x96, - 0x1a, 0xff, 0xc9, 0x43, 0x19, 0xd3, 0x90, 0x45, 0xdc, 0xa2, 0x21, 0x3a, 0x84, 0x75, 0x4e, 0x3f, - 0x44, 0x34, 0x14, 0xa1, 0x9e, 0xdb, 0x29, 0x3c, 0xab, 0x34, 0x9e, 0xd4, 0xe7, 0x2e, 0x5a, 0xcf, - 0xb0, 0xd9, 0xaa, 0xed, 0x0b, 0x3e, 0xc1, 0x99, 0x1e, 0x7a, 0x0d, 0x45, 0xcf, 0x1d, 0xbb, 0x22, - 0xd4, 0xf3, 0x77, 0xb2, 0x90, 0x68, 0x6d, 0xff, 0x19, 0xaa, 0x73, 0x02, 0xf4, 0x0d, 0xac, 0xfa, - 0x64, 0x4c, 0xf5, 0xdc, 0x4e, 0xee, 0xd9, 0x66, 0xe3, 0xcb, 0x5b, 0xcd, 0xf5, 0xc8, 0x98, 0x62, - 0xa5, 0x82, 0x3e, 0x87, 0xb5, 0x6b, 0xe2, 0x45, 0x54, 0xcf, 0xef, 0xe4, 0x9e, 0x95, 0x71, 0x4c, - 0x18, 0x7f, 0x82, 0x8d, 0x59, 0x2c, 0xaa, 0x40, 0xe9, 0xb4, 0x77, 0xdc, 0xeb, 0x7f, 0xd7, 0xd3, - 0x56, 0x50, 0x09, 0x0a, 0x6f, 0x06, 0xa7, 0x5a, 0x4e, 0x2e, 0xde, 0x0d, 0x4e, 0xb5, 0x3c, 0x02, - 0x28, 0x76, 0xdb, 0xdd, 0x3e, 0x7e, 0xaf, 0x15, 0x24, 0x74, 0x38, 0xea, 0xe3, 0xe6, 0xbb, 0xb6, - 0xb6, 0x8a, 0xee, 0x41, 0xad, 0x3d, 0x38, 0x6a, 0x77, 0xdb, 0xb8, 0x79, 0x62, 0xa6, 0xec, 0x35, - 0xe3, 0x6f, 0x39, 0xd8, 0x7c, 0x37, 0x38, 0x6d, 0x5a, 0x16, 0xf5, 0x28, 0x27, 0x82, 0x71, 0x74, - 0x1f, 0x8a, 0x36, 0xbd, 0x76, 0xad, 0xf8, 0x12, 0x65, 0x9c, 0x50, 0xe8, 0x09, 0x54, 0x23, 0x3f, - 0x20, 0x5c, 0xb8, 0xf2, 0xc1, 0xa8, 0xad, 0xce, 0xb9, 0x7e, 0xb4, 0x82, 0xe7, 0xd9, 0xe8, 0x29, - 0x6c, 0x66, 0xa4, 0x19, 0xba, 0x1f, 0xa9, 0x5e, 0x90, 0x76, 0x24, 0x30, 0xe3, 0x0f, 0xdd, 0x8f, - 0xf4, 0xf0, 0x3e, 0x7c, 0x3e, 0x0f, 0x34, 0xe3, 0x2b, 0xff, 0x11, 0x6a, 0xed, 0xef, 0x05, 0xf5, - 0x6d, 0x6a, 0x4f, 0x5f, 0xfb, 0x2d, 0x6c, 0x39, 0x41, 0x64, 0x92, 0xe9, 0x41, 0xd5, 0xf1, 0x2a, - 0x8d, 0x47, 0x0b, 0x3e, 0x9e, 0xbf, 0x0d, 0xde, 0x74, 0x82, 0x68, 0x86, 0x36, 0x7e, 0xc8, 0xc1, - 0x16, 0x8e, 0x7c, 0xe1, 0x8e, 0x69, 0x97, 0x0a, 0x62, 0x13, 0x41, 0xd0, 0x6b, 0x58, 0x15, 0x93, - 0x20, 0x7d, 0xb4, 0xaf, 0x16, 0x1f, 0x6d, 0x1e, 0x9d, 0xd2, 0xa3, 0x49, 0x40, 0xb1, 0xd2, 0x43, - 0x3a, 0x94, 0xae, 0x29, 0x0f, 0x5d, 0xe6, 0x27, 0x6f, 0x97, 0x92, 0xd2, 0x97, 0x17, 0x1e, 0xb9, - 0x66, 0x3c, 0xf6, 0x01, 0x4e, 0x28, 0xe3, 0x29, 0x54, 0x66, 0xcc, 0xa0, 0x32, 0xac, 0xf5, 0x47, - 0x47, 0x6d, 0xac, 0xad, 0xa0, 0x2a, 0x94, 0xdf, 0x9e, 0xbc, 0x1f, 0xb5, 0xcd, 0x61, 0xeb, 0x58, - 0xcb, 0x19, 0x3f, 0xac, 0xc1, 0xc6, 0x88, 0x84, 0x57, 0xd9, 0x59, 0x0d, 0xd8, 0xb0, 0xdd, 0xd0, - 0x62, 0xd7, 0x94, 0x93, 0x73, 0x2f, 0x3e, 0xf3, 0x3a, 0x9e, 0xe3, 0xa1, 0x03, 0x28, 0xf1, 0xd8, - 0xba, 0x3a, 0x4f, 0xa5, 0xf1, 0xf8, 0xc7, 0xaf, 0x84, 0x53, 0x38, 0xfa, 0x1a, 0x4a, 0xf2, 0x97, - 0x45, 0x42, 0x5f, 0x55, 0x9a, 0x0f, 0xea, 0x71, 0x46, 0xd6, 0xd3, 0x8c, 0xac, 0xb7, 0x92, 0x8c, - 0xc5, 0x29, 0x12, 0xed, 0x41, 0x89, 0x53, 0xc1, 0x5d, 0x1a, 0xea, 0x6b, 0x4a, 0xe9, 0xe1, 0x52, - 0xd8, 0x0b, 0x3e, 0x19, 0x0a, 0x4e, 0x04, 0x75, 0x26, 0x38, 0x05, 0xa3, 0x5f, 0x40, 0x2d, 0x3d, - 0xf6, 0xc4, 0x4c, 0x1d, 0x58, 0x54, 0x7e, 0xd2, 0x32, 0xc1, 0x59, 0xe2, 0xc9, 0x03, 0xd0, 0x6d, - 0x1a, 0x70, 0x6a, 0x11, 0x41, 0x6d, 0x93, 0x72, 0xce, 0xb8, 0x39, 0xa6, 0x61, 0x48, 0x1c, 0xaa, - 0x97, 0x94, 0xce, 0xfd, 0xa9, 0xbc, 0x2d, 0xc5, 0xdd, 0x58, 0x2a, 0xe3, 0x56, 0x95, 0x30, 0x1e, - 0x05, 0xc2, 0x95, 0x2e, 0x5b, 0x4f, 0xe3, 0x76, 0x8e, 0x8d, 0x9e, 0x03, 0xb2, 0x88, 0x75, 0x49, - 0xcd, 0x90, 0x72, 0x97, 0x78, 0xee, 0x47, 0xe5, 0xdf, 0xb2, 0xf2, 0x6f, 0x4d, 0x49, 0x86, 0x33, - 0x02, 0xf4, 0x25, 0x6c, 0x3a, 0xd4, 0x97, 0x51, 0x45, 0x43, 0xd3, 0xa6, 0xd6, 0x95, 0x0e, 0x0a, - 0x5a, 0xcd, 0xb8, 0x2d, 0x6a, 0x5d, 0xc9, 0x82, 0x20, 0x88, 0x13, 0xea, 0x15, 0x55, 0x5f, 0x16, - 0x0b, 0xc2, 0xec, 0xd3, 0xd6, 0x47, 0xc4, 0x09, 0xe3, 0xf2, 0xa2, 0x54, 0xd0, 0x57, 0x50, 0x0b, - 0x98, 0x6d, 0x0a, 0x3a, 0x0e, 0x3c, 0x22, 0xa8, 0xa9, 0x0a, 0xcb, 0x86, 0xba, 0xeb, 0x56, 0xc0, - 0xec, 0x51, 0xc2, 0x57, 0x65, 0xe1, 0xd7, 0xf0, 0x45, 0x7c, 0x78, 0xd7, 0xf1, 0x19, 0xa7, 0xa6, - 0xeb, 0x07, 0x91, 0x30, 0xaf, 0x09, 0x0f, 0xf5, 0xea, 0x4e, 0xe1, 0x59, 0x19, 0x7f, 0xae, 0xc4, - 0x1d, 0x25, 0xed, 0x48, 0xe1, 0x19, 0xe1, 0xe1, 0xf6, 0x3e, 0x94, 0xb3, 0x5d, 0x91, 0x06, 0x85, - 0x2b, 0x3a, 0x49, 0xb2, 0x5e, 0x2e, 0x6f, 0x2e, 0x49, 0xaf, 0xf2, 0x07, 0xb9, 0xc3, 0x7b, 0xf0, - 0xd9, 0x9c, 0xf7, 0x92, 0xd4, 0xfd, 0x6f, 0x12, 0xae, 0xe9, 0xd9, 0xd0, 0xcf, 0x21, 0xef, 0xda, - 0x49, 0xa6, 0x3e, 0x58, 0xb8, 0x7c, 0x27, 0x6b, 0x3c, 0x38, 0xef, 0xda, 0x08, 0x25, 0x59, 0x18, - 0xef, 0x15, 0x67, 0xd6, 0x3e, 0xac, 0x8f, 0x13, 0xf7, 0xa8, 0x0c, 0xaa, 0x34, 0x7e, 0xf2, 0x23, - 0x1e, 0xc4, 0x19, 0x18, 0xfd, 0x06, 0xca, 0x59, 0xdf, 0x4a, 0x42, 0x79, 0xb1, 0x50, 0xc8, 0xcc, - 0xb3, 0x3b, 0x29, 0x08, 0x4f, 0xf1, 0x68, 0x17, 0x8a, 0x56, 0x14, 0x0a, 0x36, 0x4e, 0xe2, 0xf9, - 0x8b, 0xa5, 0x24, 0x18, 0xaa, 0xb6, 0x84, 0x13, 0x18, 0x3a, 0x80, 0xb2, 0xc5, 0x7c, 0x41, 0x5c, - 0x9f, 0x72, 0x15, 0xc1, 0x95, 0x86, 0xbe, 0xb0, 0xdb, 0x9b, 0x54, 0x7e, 0xb4, 0x82, 0xa7, 0x60, - 0xf4, 0x2b, 0x28, 0x5d, 0x1d, 0x84, 0x66, 0xc0, 0x6c, 0xbd, 0xa6, 0xf4, 0xee, 0x2d, 0xe8, 0x1d, - 0x1f, 0x84, 0x03, 0x66, 0x1f, 0xad, 0xe0, 0xe2, 0x95, 0x5a, 0xa1, 0x27, 0x50, 0x08, 0x3f, 0x78, - 0x3a, 0x52, 0x68, 0xb4, 0x80, 0x1e, 0x7e, 0xf0, 0x8e, 0x56, 0xb0, 0x04, 0xc8, 0xe8, 0x91, 0x33, - 0x80, 0x29, 0xfd, 0x98, 0x65, 0x97, 0xcc, 0x94, 0x35, 0xbc, 0x25, 0x05, 0xf2, 0xfa, 0x69, 0x72, - 0x75, 0x40, 0x4b, 0x1b, 0xb5, 0x29, 0xcf, 0x46, 0xbf, 0x17, 0x2a, 0x4b, 0x96, 0x2b, 0xc7, 0x30, - 0x81, 0xbd, 0x89, 0x51, 0x78, 0x2b, 0x9c, 0x67, 0xa0, 0x3e, 0x20, 0x9a, 0x14, 0x6f, 0x93, 0xa7, - 0xd5, 0x5b, 0x65, 0x51, 0xa5, 0xb1, 0xb3, 0x60, 0x6c, 0xa9, 0xca, 0xe3, 0x1a, 0x5d, 0x2a, 0xfc, - 0xbf, 0x85, 0xa2, 0xc5, 0xfc, 0x0b, 0xd7, 0xd1, 0x35, 0x95, 0x42, 0x4f, 0x6f, 0x08, 0x80, 0x34, - 0xdc, 0xa4, 0x97, 0x2f, 0x5c, 0x27, 0xe9, 0xd1, 0xb1, 0xda, 0xf6, 0x37, 0x50, 0x99, 0x61, 0xdf, - 0x29, 0xca, 0xd7, 0xa1, 0x28, 0x08, 0x77, 0xa8, 0x30, 0xf6, 0xa0, 0x9a, 0xbd, 0xe0, 0x80, 0x71, - 0x21, 0xd3, 0x3f, 0x7b, 0x45, 0x33, 0x60, 0x5c, 0x28, 0x8b, 0x55, 0x5c, 0xb5, 0x66, 0x61, 0xc6, - 0xff, 0x0a, 0x50, 0xce, 0x14, 0xe5, 0x4e, 0xee, 0x58, 0x56, 0xac, 0x78, 0xf7, 0x98, 0x90, 0xed, - 0xc3, 0x62, 0xe3, 0x31, 0xf1, 0x6d, 0x35, 0x85, 0x94, 0x71, 0x4a, 0xca, 0x94, 0x20, 0xdc, 0x09, - 0xf5, 0x82, 0x62, 0xab, 0x35, 0xda, 0x83, 0xf2, 0xd4, 0xaf, 0xab, 0x37, 0xc6, 0xda, 0xd4, 0x9f, - 0x53, 0x28, 0x7a, 0x0e, 0x05, 0xea, 0x5f, 0xeb, 0x6b, 0xca, 0x89, 0x8b, 0x59, 0x74, 0x4c, 0x27, - 0x67, 0xf2, 0xd6, 0x03, 0xe2, 0x72, 0x2c, 0x71, 0x68, 0x3f, 0x73, 0x7b, 0xf1, 0x56, 0x8d, 0xc3, - 0xbc, 0x9e, 0x4b, 0xdd, 0x8d, 0x1a, 0xb0, 0x26, 0xdd, 0x11, 0xea, 0x25, 0xa5, 0xf7, 0xf0, 0x53, - 0x79, 0x20, 0xdd, 0x83, 0x63, 0x28, 0x6a, 0x42, 0x45, 0x66, 0xad, 0x99, 0xec, 0x78, 0x73, 0xb4, - 0xb4, 0x88, 0x20, 0x27, 0x8c, 0xd8, 0xae, 0xef, 0xc4, 0xef, 0x89, 0x41, 0x2a, 0xc5, 0x6b, 0xd4, - 0x81, 0x0d, 0xc2, 0xad, 0x4b, 0x57, 0x50, 0x4b, 0x44, 0x9c, 0xaa, 0x62, 0xbc, 0x3c, 0x80, 0x65, - 0xbb, 0xd7, 0x9b, 0x33, 0x60, 0x3c, 0xa7, 0x6a, 0x74, 0x60, 0x63, 0x56, 0x3a, 0x3f, 0x72, 0x95, - 0x61, 0xad, 0xd9, 0x6d, 0xed, 0xbd, 0xd4, 0x72, 0x6a, 0x89, 0xbb, 0x7b, 0x2f, 0xe3, 0xb1, 0xab, - 0x89, 0xbb, 0xe6, 0xd9, 0x9e, 0x56, 0xc8, 0xd6, 0xfb, 0xda, 0xaa, 0xf1, 0xaf, 0x3c, 0x40, 0xa7, - 0x9f, 0xb6, 0x3e, 0x74, 0x0c, 0x55, 0x9b, 0xfd, 0xd5, 0xf7, 0x18, 0xb1, 0xcd, 0x31, 0xb3, 0xd3, - 0x89, 0x63, 0x71, 0xea, 0x9c, 0x6a, 0xd4, 0x5b, 0x09, 0xbc, 0xcb, 0x6c, 0x8a, 0x37, 0xec, 0x19, - 0x0a, 0xb5, 0xa1, 0x12, 0x05, 0x53, 0x53, 0x79, 0x65, 0xea, 0x67, 0x9f, 0x36, 0x75, 0x1a, 0x64, - 0x86, 0x20, 0xca, 0xd6, 0xc6, 0x09, 0x6c, 0xcc, 0x6e, 0x82, 0x10, 0x6c, 0xb6, 0xfa, 0xdf, 0xf5, - 0x4e, 0xfa, 0xcd, 0x96, 0xd9, 0x6e, 0xbe, 0x53, 0x43, 0xc9, 0x67, 0xb0, 0x95, 0xf1, 0x86, 0x23, - 0xdc, 0x6e, 0x76, 0xb5, 0x5c, 0xcc, 0x34, 0x7b, 0xfd, 0x91, 0x99, 0xca, 0xb4, 0xbc, 0xd1, 0x06, - 0x98, 0xee, 0x23, 0x6d, 0x9d, 0x0e, 0x94, 0x56, 0xbf, 0x67, 0xb6, 0x7f, 0xdf, 0x19, 0x69, 0x2b, - 0x48, 0x83, 0x8d, 0x84, 0x17, 0x5b, 0xcf, 0xa1, 0x1a, 0x54, 0x13, 0x43, 0xb1, 0x40, 0xcb, 0x1b, - 0xff, 0xc8, 0x43, 0x6d, 0xe9, 0xbd, 0x65, 0xa2, 0x50, 0x5f, 0x36, 0x5f, 0x3b, 0x19, 0x7b, 0x52, - 0x12, 0x3d, 0x02, 0x88, 0x3b, 0x5e, 0x40, 0xc4, 0x65, 0x92, 0xc7, 0x65, 0xc5, 0x19, 0x10, 0x71, - 0x89, 0x7e, 0x0a, 0x15, 0x16, 0x89, 0x4c, 0x1e, 0xcf, 0x62, 0x10, 0xb3, 0x14, 0xa0, 0x03, 0xc5, - 0x0b, 0xc6, 0xc7, 0x24, 0x1e, 0x7b, 0x36, 0x1b, 0x2f, 0x6e, 0x8b, 0xbd, 0xfa, 0x49, 0xfc, 0xd9, - 0xd3, 0x25, 0xc1, 0x5b, 0xa5, 0x88, 0x13, 0x03, 0xe8, 0x15, 0x54, 0x5c, 0x66, 0x86, 0x89, 0xd7, - 0x93, 0x0e, 0xf2, 0xe0, 0x93, 0xcf, 0x82, 0xc1, 0x65, 0xe9, 0xda, 0x78, 0x01, 0xda, 0xa2, 0x5d, - 0xb4, 0x0e, 0xab, 0xbf, 0x1b, 0xf6, 0x65, 0xe8, 0xad, 0xc3, 0xea, 0xfb, 0x66, 0xf7, 0x24, 0x8e, - 0xbc, 0x01, 0xee, 0x8f, 0xfa, 0x5a, 0xde, 0xf8, 0x77, 0x0e, 0x8a, 0x71, 0x8f, 0x40, 0xdf, 0xce, - 0x34, 0xcb, 0xdc, 0x8d, 0x29, 0x74, 0x7c, 0x10, 0xf6, 0xcf, 0xff, 0x42, 0x2d, 0x71, 0x43, 0xc7, - 0x6c, 0xc0, 0xba, 0x9c, 0x36, 0xc2, 0x80, 0x5a, 0xc9, 0xd4, 0xf8, 0xc9, 0xb6, 0x57, 0x0a, 0x98, - 0x3d, 0x0c, 0xa8, 0xb5, 0x98, 0xb7, 0x85, 0xbb, 0xe7, 0xad, 0xf1, 0xcf, 0x3c, 0xd4, 0x96, 0x8e, - 0x85, 0x5a, 0x50, 0xf4, 0xc8, 0x39, 0xf5, 0xd2, 0x2f, 0xbb, 0x5f, 0xde, 0x76, 0x91, 0xfa, 0x89, - 0x82, 0xa7, 0x5f, 0x67, 0x8a, 0x40, 0x43, 0xa8, 0x10, 0xdf, 0x67, 0x42, 0xcd, 0xab, 0xe9, 0x27, - 0xde, 0x8b, 0x5b, 0x4d, 0x35, 0xa7, 0x3a, 0xb1, 0xbd, 0x59, 0x2b, 0xb2, 0x9d, 0xcc, 0xec, 0x75, - 0x97, 0x76, 0xb2, 0xfd, 0x1a, 0xb4, 0x45, 0xdb, 0x77, 0xd1, 0x37, 0xfe, 0x9e, 0x83, 0xc2, 0xf0, - 0x83, 0x87, 0x1e, 0x42, 0x39, 0x14, 0x44, 0xd0, 0x31, 0xf5, 0x45, 0xa2, 0x39, 0x65, 0xa0, 0x97, - 0x50, 0xb2, 0x5d, 0xe2, 0x51, 0x4b, 0x24, 0x35, 0x61, 0x7b, 0x79, 0x48, 0xa8, 0xb7, 0x62, 0x04, - 0x4e, 0xa1, 0xc6, 0x3e, 0x94, 0x12, 0x9e, 0xfc, 0x04, 0x39, 0xed, 0xb5, 0xda, 0x6f, 0x3b, 0xbd, - 0x76, 0x2b, 0x0e, 0xbb, 0x66, 0x6f, 0xd8, 0xd1, 0x72, 0x72, 0x75, 0xd4, 0x39, 0x6b, 0x6b, 0xf9, - 0xe9, 0x07, 0x4b, 0xe1, 0xf0, 0xdb, 0x3f, 0xbc, 0x72, 0x5c, 0x71, 0x19, 0x9d, 0xd7, 0x2d, 0x36, - 0xde, 0x55, 0x3b, 0x31, 0xee, 0xc4, 0x8b, 0xdd, 0xec, 0xcf, 0x00, 0x87, 0xfa, 0xbb, 0xc1, 0xf9, - 0x73, 0x87, 0xed, 0xce, 0xfd, 0x3f, 0x70, 0x5e, 0x54, 0xb1, 0xf5, 0xf5, 0xff, 0x03, 0x00, 0x00, - 0xff, 0xff, 0x7b, 0x34, 0xd9, 0xba, 0xbe, 0x10, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json deleted file mode 100644 index 35cf925ff8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/tasks.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/tasks.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go b/flyteidl/gen/pb-go/flyteidl/core/types.pb.go deleted file mode 100644 index 1f5833ded9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/types.pb.go +++ /dev/null @@ -1,1070 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/types.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _struct "github.com/golang/protobuf/ptypes/struct" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Define a set of simple types. -type SimpleType int32 - -const ( - SimpleType_NONE SimpleType = 0 - SimpleType_INTEGER SimpleType = 1 - SimpleType_FLOAT SimpleType = 2 - SimpleType_STRING SimpleType = 3 - SimpleType_BOOLEAN SimpleType = 4 - SimpleType_DATETIME SimpleType = 5 - SimpleType_DURATION SimpleType = 6 - SimpleType_BINARY SimpleType = 7 - SimpleType_ERROR SimpleType = 8 - SimpleType_STRUCT SimpleType = 9 -) - -var SimpleType_name = map[int32]string{ - 0: "NONE", - 1: "INTEGER", - 2: "FLOAT", - 3: "STRING", - 4: "BOOLEAN", - 5: "DATETIME", - 6: "DURATION", - 7: "BINARY", - 8: "ERROR", - 9: "STRUCT", -} - -var SimpleType_value = map[string]int32{ - "NONE": 0, - "INTEGER": 1, - "FLOAT": 2, - "STRING": 3, - "BOOLEAN": 4, - "DATETIME": 5, - "DURATION": 6, - "BINARY": 7, - "ERROR": 8, - "STRUCT": 9, -} - -func (x SimpleType) String() string { - return proto.EnumName(SimpleType_name, int32(x)) -} - -func (SimpleType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{0} -} - -type SchemaType_SchemaColumn_SchemaColumnType int32 - -const ( - SchemaType_SchemaColumn_INTEGER SchemaType_SchemaColumn_SchemaColumnType = 0 - SchemaType_SchemaColumn_FLOAT SchemaType_SchemaColumn_SchemaColumnType = 1 - SchemaType_SchemaColumn_STRING SchemaType_SchemaColumn_SchemaColumnType = 2 - SchemaType_SchemaColumn_BOOLEAN SchemaType_SchemaColumn_SchemaColumnType = 3 - SchemaType_SchemaColumn_DATETIME SchemaType_SchemaColumn_SchemaColumnType = 4 - SchemaType_SchemaColumn_DURATION SchemaType_SchemaColumn_SchemaColumnType = 5 -) - -var SchemaType_SchemaColumn_SchemaColumnType_name = map[int32]string{ - 0: "INTEGER", - 1: "FLOAT", - 2: "STRING", - 3: "BOOLEAN", - 4: "DATETIME", - 5: "DURATION", -} - -var SchemaType_SchemaColumn_SchemaColumnType_value = map[string]int32{ - "INTEGER": 0, - "FLOAT": 1, - "STRING": 2, - "BOOLEAN": 3, - "DATETIME": 4, - "DURATION": 5, -} - -func (x SchemaType_SchemaColumn_SchemaColumnType) String() string { - return proto.EnumName(SchemaType_SchemaColumn_SchemaColumnType_name, int32(x)) -} - -func (SchemaType_SchemaColumn_SchemaColumnType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{0, 0, 0} -} - -type BlobType_BlobDimensionality int32 - -const ( - BlobType_SINGLE BlobType_BlobDimensionality = 0 - BlobType_MULTIPART BlobType_BlobDimensionality = 1 -) - -var BlobType_BlobDimensionality_name = map[int32]string{ - 0: "SINGLE", - 1: "MULTIPART", -} - -var BlobType_BlobDimensionality_value = map[string]int32{ - "SINGLE": 0, - "MULTIPART": 1, -} - -func (x BlobType_BlobDimensionality) String() string { - return proto.EnumName(BlobType_BlobDimensionality_name, int32(x)) -} - -func (BlobType_BlobDimensionality) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{2, 0} -} - -// Defines schema columns and types to strongly type-validate schemas interoperability. -type SchemaType struct { - // A list of ordered columns this schema comprises of. - Columns []*SchemaType_SchemaColumn `protobuf:"bytes,3,rep,name=columns,proto3" json:"columns,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SchemaType) Reset() { *m = SchemaType{} } -func (m *SchemaType) String() string { return proto.CompactTextString(m) } -func (*SchemaType) ProtoMessage() {} -func (*SchemaType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{0} -} - -func (m *SchemaType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemaType.Unmarshal(m, b) -} -func (m *SchemaType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemaType.Marshal(b, m, deterministic) -} -func (m *SchemaType) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaType.Merge(m, src) -} -func (m *SchemaType) XXX_Size() int { - return xxx_messageInfo_SchemaType.Size(m) -} -func (m *SchemaType) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaType.DiscardUnknown(m) -} - -var xxx_messageInfo_SchemaType proto.InternalMessageInfo - -func (m *SchemaType) GetColumns() []*SchemaType_SchemaColumn { - if m != nil { - return m.Columns - } - return nil -} - -type SchemaType_SchemaColumn struct { - // A unique name -within the schema type- for the column - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The column type. This allows a limited set of types currently. - Type SchemaType_SchemaColumn_SchemaColumnType `protobuf:"varint,2,opt,name=type,proto3,enum=flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType" json:"type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SchemaType_SchemaColumn) Reset() { *m = SchemaType_SchemaColumn{} } -func (m *SchemaType_SchemaColumn) String() string { return proto.CompactTextString(m) } -func (*SchemaType_SchemaColumn) ProtoMessage() {} -func (*SchemaType_SchemaColumn) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{0, 0} -} - -func (m *SchemaType_SchemaColumn) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SchemaType_SchemaColumn.Unmarshal(m, b) -} -func (m *SchemaType_SchemaColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SchemaType_SchemaColumn.Marshal(b, m, deterministic) -} -func (m *SchemaType_SchemaColumn) XXX_Merge(src proto.Message) { - xxx_messageInfo_SchemaType_SchemaColumn.Merge(m, src) -} -func (m *SchemaType_SchemaColumn) XXX_Size() int { - return xxx_messageInfo_SchemaType_SchemaColumn.Size(m) -} -func (m *SchemaType_SchemaColumn) XXX_DiscardUnknown() { - xxx_messageInfo_SchemaType_SchemaColumn.DiscardUnknown(m) -} - -var xxx_messageInfo_SchemaType_SchemaColumn proto.InternalMessageInfo - -func (m *SchemaType_SchemaColumn) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *SchemaType_SchemaColumn) GetType() SchemaType_SchemaColumn_SchemaColumnType { - if m != nil { - return m.Type - } - return SchemaType_SchemaColumn_INTEGER -} - -type StructuredDatasetType struct { - // A list of ordered columns this schema comprises of. - Columns []*StructuredDatasetType_DatasetColumn `protobuf:"bytes,1,rep,name=columns,proto3" json:"columns,omitempty"` - // This is the storage format, the format of the bits at rest - // parquet, feather, csv, etc. - // For two types to be compatible, the format will need to be an exact match. - Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"` - // This is a string representing the type that the bytes in external_schema_bytes are formatted in. - // This is an optional field that will not be used for type checking. - ExternalSchemaType string `protobuf:"bytes,3,opt,name=external_schema_type,json=externalSchemaType,proto3" json:"external_schema_type,omitempty"` - // The serialized bytes of a third-party schema library like Arrow. - // This is an optional field that will not be used for type checking. - ExternalSchemaBytes []byte `protobuf:"bytes,4,opt,name=external_schema_bytes,json=externalSchemaBytes,proto3" json:"external_schema_bytes,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StructuredDatasetType) Reset() { *m = StructuredDatasetType{} } -func (m *StructuredDatasetType) String() string { return proto.CompactTextString(m) } -func (*StructuredDatasetType) ProtoMessage() {} -func (*StructuredDatasetType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{1} -} - -func (m *StructuredDatasetType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StructuredDatasetType.Unmarshal(m, b) -} -func (m *StructuredDatasetType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StructuredDatasetType.Marshal(b, m, deterministic) -} -func (m *StructuredDatasetType) XXX_Merge(src proto.Message) { - xxx_messageInfo_StructuredDatasetType.Merge(m, src) -} -func (m *StructuredDatasetType) XXX_Size() int { - return xxx_messageInfo_StructuredDatasetType.Size(m) -} -func (m *StructuredDatasetType) XXX_DiscardUnknown() { - xxx_messageInfo_StructuredDatasetType.DiscardUnknown(m) -} - -var xxx_messageInfo_StructuredDatasetType proto.InternalMessageInfo - -func (m *StructuredDatasetType) GetColumns() []*StructuredDatasetType_DatasetColumn { - if m != nil { - return m.Columns - } - return nil -} - -func (m *StructuredDatasetType) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *StructuredDatasetType) GetExternalSchemaType() string { - if m != nil { - return m.ExternalSchemaType - } - return "" -} - -func (m *StructuredDatasetType) GetExternalSchemaBytes() []byte { - if m != nil { - return m.ExternalSchemaBytes - } - return nil -} - -type StructuredDatasetType_DatasetColumn struct { - // A unique name within the schema type for the column. - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The column type. - LiteralType *LiteralType `protobuf:"bytes,2,opt,name=literal_type,json=literalType,proto3" json:"literal_type,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *StructuredDatasetType_DatasetColumn) Reset() { *m = StructuredDatasetType_DatasetColumn{} } -func (m *StructuredDatasetType_DatasetColumn) String() string { return proto.CompactTextString(m) } -func (*StructuredDatasetType_DatasetColumn) ProtoMessage() {} -func (*StructuredDatasetType_DatasetColumn) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{1, 0} -} - -func (m *StructuredDatasetType_DatasetColumn) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Unmarshal(m, b) -} -func (m *StructuredDatasetType_DatasetColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Marshal(b, m, deterministic) -} -func (m *StructuredDatasetType_DatasetColumn) XXX_Merge(src proto.Message) { - xxx_messageInfo_StructuredDatasetType_DatasetColumn.Merge(m, src) -} -func (m *StructuredDatasetType_DatasetColumn) XXX_Size() int { - return xxx_messageInfo_StructuredDatasetType_DatasetColumn.Size(m) -} -func (m *StructuredDatasetType_DatasetColumn) XXX_DiscardUnknown() { - xxx_messageInfo_StructuredDatasetType_DatasetColumn.DiscardUnknown(m) -} - -var xxx_messageInfo_StructuredDatasetType_DatasetColumn proto.InternalMessageInfo - -func (m *StructuredDatasetType_DatasetColumn) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *StructuredDatasetType_DatasetColumn) GetLiteralType() *LiteralType { - if m != nil { - return m.LiteralType - } - return nil -} - -// Defines type behavior for blob objects -type BlobType struct { - // Format can be a free form string understood by SDK/UI etc like - // csv, parquet etc - Format string `protobuf:"bytes,1,opt,name=format,proto3" json:"format,omitempty"` - Dimensionality BlobType_BlobDimensionality `protobuf:"varint,2,opt,name=dimensionality,proto3,enum=flyteidl.core.BlobType_BlobDimensionality" json:"dimensionality,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BlobType) Reset() { *m = BlobType{} } -func (m *BlobType) String() string { return proto.CompactTextString(m) } -func (*BlobType) ProtoMessage() {} -func (*BlobType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{2} -} - -func (m *BlobType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BlobType.Unmarshal(m, b) -} -func (m *BlobType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BlobType.Marshal(b, m, deterministic) -} -func (m *BlobType) XXX_Merge(src proto.Message) { - xxx_messageInfo_BlobType.Merge(m, src) -} -func (m *BlobType) XXX_Size() int { - return xxx_messageInfo_BlobType.Size(m) -} -func (m *BlobType) XXX_DiscardUnknown() { - xxx_messageInfo_BlobType.DiscardUnknown(m) -} - -var xxx_messageInfo_BlobType proto.InternalMessageInfo - -func (m *BlobType) GetFormat() string { - if m != nil { - return m.Format - } - return "" -} - -func (m *BlobType) GetDimensionality() BlobType_BlobDimensionality { - if m != nil { - return m.Dimensionality - } - return BlobType_SINGLE -} - -// Enables declaring enum types, with predefined string values -// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish -// To provide no defaults, make the first value as undefined. -type EnumType struct { - // Predefined set of enum values. - Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EnumType) Reset() { *m = EnumType{} } -func (m *EnumType) String() string { return proto.CompactTextString(m) } -func (*EnumType) ProtoMessage() {} -func (*EnumType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{3} -} - -func (m *EnumType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EnumType.Unmarshal(m, b) -} -func (m *EnumType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EnumType.Marshal(b, m, deterministic) -} -func (m *EnumType) XXX_Merge(src proto.Message) { - xxx_messageInfo_EnumType.Merge(m, src) -} -func (m *EnumType) XXX_Size() int { - return xxx_messageInfo_EnumType.Size(m) -} -func (m *EnumType) XXX_DiscardUnknown() { - xxx_messageInfo_EnumType.DiscardUnknown(m) -} - -var xxx_messageInfo_EnumType proto.InternalMessageInfo - -func (m *EnumType) GetValues() []string { - if m != nil { - return m.Values - } - return nil -} - -// Defines a tagged union type, also known as a variant (and formally as the sum type). -// -// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag -// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by -// storing the varaint's tag with the literal value and can be examined in runtime. -// -// Type S is typically written as -// S := Apple A | Banana B | Cantaloupe C | ... -// -// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: -// Optional X := X | Null -// -// See also: https://en.wikipedia.org/wiki/Tagged_union -type UnionType struct { - // Predefined set of variants in union. - Variants []*LiteralType `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UnionType) Reset() { *m = UnionType{} } -func (m *UnionType) String() string { return proto.CompactTextString(m) } -func (*UnionType) ProtoMessage() {} -func (*UnionType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{4} -} - -func (m *UnionType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UnionType.Unmarshal(m, b) -} -func (m *UnionType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UnionType.Marshal(b, m, deterministic) -} -func (m *UnionType) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnionType.Merge(m, src) -} -func (m *UnionType) XXX_Size() int { - return xxx_messageInfo_UnionType.Size(m) -} -func (m *UnionType) XXX_DiscardUnknown() { - xxx_messageInfo_UnionType.DiscardUnknown(m) -} - -var xxx_messageInfo_UnionType proto.InternalMessageInfo - -func (m *UnionType) GetVariants() []*LiteralType { - if m != nil { - return m.Variants - } - return nil -} - -// Hints to improve type matching -// e.g. allows distinguishing output from custom type transformers -// even if the underlying IDL serialization matches. -type TypeStructure struct { - // Must exactly match for types to be castable - Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - // dataclass_type only exists for dataclasses. - // This is used to resolve the type of the fields of dataclass - // The key is the field name, and the value is the literal type of the field - // e.g. For dataclass Foo, with fields a, and a is a string - // Foo.a will be resolved as a literal type of string from dataclass_type - DataclassType map[string]*LiteralType `protobuf:"bytes,2,rep,name=dataclass_type,json=dataclassType,proto3" json:"dataclass_type,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TypeStructure) Reset() { *m = TypeStructure{} } -func (m *TypeStructure) String() string { return proto.CompactTextString(m) } -func (*TypeStructure) ProtoMessage() {} -func (*TypeStructure) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{5} -} - -func (m *TypeStructure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TypeStructure.Unmarshal(m, b) -} -func (m *TypeStructure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TypeStructure.Marshal(b, m, deterministic) -} -func (m *TypeStructure) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeStructure.Merge(m, src) -} -func (m *TypeStructure) XXX_Size() int { - return xxx_messageInfo_TypeStructure.Size(m) -} -func (m *TypeStructure) XXX_DiscardUnknown() { - xxx_messageInfo_TypeStructure.DiscardUnknown(m) -} - -var xxx_messageInfo_TypeStructure proto.InternalMessageInfo - -func (m *TypeStructure) GetTag() string { - if m != nil { - return m.Tag - } - return "" -} - -func (m *TypeStructure) GetDataclassType() map[string]*LiteralType { - if m != nil { - return m.DataclassType - } - return nil -} - -// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. -type TypeAnnotation struct { - // A arbitrary JSON payload to describe a type. - Annotations *_struct.Struct `protobuf:"bytes,1,opt,name=annotations,proto3" json:"annotations,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TypeAnnotation) Reset() { *m = TypeAnnotation{} } -func (m *TypeAnnotation) String() string { return proto.CompactTextString(m) } -func (*TypeAnnotation) ProtoMessage() {} -func (*TypeAnnotation) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{6} -} - -func (m *TypeAnnotation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TypeAnnotation.Unmarshal(m, b) -} -func (m *TypeAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TypeAnnotation.Marshal(b, m, deterministic) -} -func (m *TypeAnnotation) XXX_Merge(src proto.Message) { - xxx_messageInfo_TypeAnnotation.Merge(m, src) -} -func (m *TypeAnnotation) XXX_Size() int { - return xxx_messageInfo_TypeAnnotation.Size(m) -} -func (m *TypeAnnotation) XXX_DiscardUnknown() { - xxx_messageInfo_TypeAnnotation.DiscardUnknown(m) -} - -var xxx_messageInfo_TypeAnnotation proto.InternalMessageInfo - -func (m *TypeAnnotation) GetAnnotations() *_struct.Struct { - if m != nil { - return m.Annotations - } - return nil -} - -// Defines a strong type to allow type checking between interfaces. -type LiteralType struct { - // Types that are valid to be assigned to Type: - // *LiteralType_Simple - // *LiteralType_Schema - // *LiteralType_CollectionType - // *LiteralType_MapValueType - // *LiteralType_Blob - // *LiteralType_EnumType - // *LiteralType_StructuredDatasetType - // *LiteralType_UnionType - Type isLiteralType_Type `protobuf_oneof:"type"` - // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by - // consumers to identify special behavior or display extended information for the type. - Metadata *_struct.Struct `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - // This field contains arbitrary data that might have special semantic - // meaning for the client but does not effect internal flyte behavior. - Annotation *TypeAnnotation `protobuf:"bytes,9,opt,name=annotation,proto3" json:"annotation,omitempty"` - // Hints to improve type matching. - Structure *TypeStructure `protobuf:"bytes,11,opt,name=structure,proto3" json:"structure,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *LiteralType) Reset() { *m = LiteralType{} } -func (m *LiteralType) String() string { return proto.CompactTextString(m) } -func (*LiteralType) ProtoMessage() {} -func (*LiteralType) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{7} -} - -func (m *LiteralType) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_LiteralType.Unmarshal(m, b) -} -func (m *LiteralType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_LiteralType.Marshal(b, m, deterministic) -} -func (m *LiteralType) XXX_Merge(src proto.Message) { - xxx_messageInfo_LiteralType.Merge(m, src) -} -func (m *LiteralType) XXX_Size() int { - return xxx_messageInfo_LiteralType.Size(m) -} -func (m *LiteralType) XXX_DiscardUnknown() { - xxx_messageInfo_LiteralType.DiscardUnknown(m) -} - -var xxx_messageInfo_LiteralType proto.InternalMessageInfo - -type isLiteralType_Type interface { - isLiteralType_Type() -} - -type LiteralType_Simple struct { - Simple SimpleType `protobuf:"varint,1,opt,name=simple,proto3,enum=flyteidl.core.SimpleType,oneof"` -} - -type LiteralType_Schema struct { - Schema *SchemaType `protobuf:"bytes,2,opt,name=schema,proto3,oneof"` -} - -type LiteralType_CollectionType struct { - CollectionType *LiteralType `protobuf:"bytes,3,opt,name=collection_type,json=collectionType,proto3,oneof"` -} - -type LiteralType_MapValueType struct { - MapValueType *LiteralType `protobuf:"bytes,4,opt,name=map_value_type,json=mapValueType,proto3,oneof"` -} - -type LiteralType_Blob struct { - Blob *BlobType `protobuf:"bytes,5,opt,name=blob,proto3,oneof"` -} - -type LiteralType_EnumType struct { - EnumType *EnumType `protobuf:"bytes,7,opt,name=enum_type,json=enumType,proto3,oneof"` -} - -type LiteralType_StructuredDatasetType struct { - StructuredDatasetType *StructuredDatasetType `protobuf:"bytes,8,opt,name=structured_dataset_type,json=structuredDatasetType,proto3,oneof"` -} - -type LiteralType_UnionType struct { - UnionType *UnionType `protobuf:"bytes,10,opt,name=union_type,json=unionType,proto3,oneof"` -} - -func (*LiteralType_Simple) isLiteralType_Type() {} - -func (*LiteralType_Schema) isLiteralType_Type() {} - -func (*LiteralType_CollectionType) isLiteralType_Type() {} - -func (*LiteralType_MapValueType) isLiteralType_Type() {} - -func (*LiteralType_Blob) isLiteralType_Type() {} - -func (*LiteralType_EnumType) isLiteralType_Type() {} - -func (*LiteralType_StructuredDatasetType) isLiteralType_Type() {} - -func (*LiteralType_UnionType) isLiteralType_Type() {} - -func (m *LiteralType) GetType() isLiteralType_Type { - if m != nil { - return m.Type - } - return nil -} - -func (m *LiteralType) GetSimple() SimpleType { - if x, ok := m.GetType().(*LiteralType_Simple); ok { - return x.Simple - } - return SimpleType_NONE -} - -func (m *LiteralType) GetSchema() *SchemaType { - if x, ok := m.GetType().(*LiteralType_Schema); ok { - return x.Schema - } - return nil -} - -func (m *LiteralType) GetCollectionType() *LiteralType { - if x, ok := m.GetType().(*LiteralType_CollectionType); ok { - return x.CollectionType - } - return nil -} - -func (m *LiteralType) GetMapValueType() *LiteralType { - if x, ok := m.GetType().(*LiteralType_MapValueType); ok { - return x.MapValueType - } - return nil -} - -func (m *LiteralType) GetBlob() *BlobType { - if x, ok := m.GetType().(*LiteralType_Blob); ok { - return x.Blob - } - return nil -} - -func (m *LiteralType) GetEnumType() *EnumType { - if x, ok := m.GetType().(*LiteralType_EnumType); ok { - return x.EnumType - } - return nil -} - -func (m *LiteralType) GetStructuredDatasetType() *StructuredDatasetType { - if x, ok := m.GetType().(*LiteralType_StructuredDatasetType); ok { - return x.StructuredDatasetType - } - return nil -} - -func (m *LiteralType) GetUnionType() *UnionType { - if x, ok := m.GetType().(*LiteralType_UnionType); ok { - return x.UnionType - } - return nil -} - -func (m *LiteralType) GetMetadata() *_struct.Struct { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *LiteralType) GetAnnotation() *TypeAnnotation { - if m != nil { - return m.Annotation - } - return nil -} - -func (m *LiteralType) GetStructure() *TypeStructure { - if m != nil { - return m.Structure - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*LiteralType) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*LiteralType_Simple)(nil), - (*LiteralType_Schema)(nil), - (*LiteralType_CollectionType)(nil), - (*LiteralType_MapValueType)(nil), - (*LiteralType_Blob)(nil), - (*LiteralType_EnumType)(nil), - (*LiteralType_StructuredDatasetType)(nil), - (*LiteralType_UnionType)(nil), - } -} - -// A reference to an output produced by a node. The type can be retrieved -and validated- from -// the underlying interface of the node. -type OutputReference struct { - // Node id must exist at the graph layer. - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - // Variable name must refer to an output variable for the node. - Var string `protobuf:"bytes,2,opt,name=var,proto3" json:"var,omitempty"` - AttrPath []*PromiseAttribute `protobuf:"bytes,3,rep,name=attr_path,json=attrPath,proto3" json:"attr_path,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OutputReference) Reset() { *m = OutputReference{} } -func (m *OutputReference) String() string { return proto.CompactTextString(m) } -func (*OutputReference) ProtoMessage() {} -func (*OutputReference) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{8} -} - -func (m *OutputReference) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OutputReference.Unmarshal(m, b) -} -func (m *OutputReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OutputReference.Marshal(b, m, deterministic) -} -func (m *OutputReference) XXX_Merge(src proto.Message) { - xxx_messageInfo_OutputReference.Merge(m, src) -} -func (m *OutputReference) XXX_Size() int { - return xxx_messageInfo_OutputReference.Size(m) -} -func (m *OutputReference) XXX_DiscardUnknown() { - xxx_messageInfo_OutputReference.DiscardUnknown(m) -} - -var xxx_messageInfo_OutputReference proto.InternalMessageInfo - -func (m *OutputReference) GetNodeId() string { - if m != nil { - return m.NodeId - } - return "" -} - -func (m *OutputReference) GetVar() string { - if m != nil { - return m.Var - } - return "" -} - -func (m *OutputReference) GetAttrPath() []*PromiseAttribute { - if m != nil { - return m.AttrPath - } - return nil -} - -type PromiseAttribute struct { - // Types that are valid to be assigned to Value: - // *PromiseAttribute_StringValue - // *PromiseAttribute_IntValue - Value isPromiseAttribute_Value `protobuf_oneof:"value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PromiseAttribute) Reset() { *m = PromiseAttribute{} } -func (m *PromiseAttribute) String() string { return proto.CompactTextString(m) } -func (*PromiseAttribute) ProtoMessage() {} -func (*PromiseAttribute) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{9} -} - -func (m *PromiseAttribute) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PromiseAttribute.Unmarshal(m, b) -} -func (m *PromiseAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PromiseAttribute.Marshal(b, m, deterministic) -} -func (m *PromiseAttribute) XXX_Merge(src proto.Message) { - xxx_messageInfo_PromiseAttribute.Merge(m, src) -} -func (m *PromiseAttribute) XXX_Size() int { - return xxx_messageInfo_PromiseAttribute.Size(m) -} -func (m *PromiseAttribute) XXX_DiscardUnknown() { - xxx_messageInfo_PromiseAttribute.DiscardUnknown(m) -} - -var xxx_messageInfo_PromiseAttribute proto.InternalMessageInfo - -type isPromiseAttribute_Value interface { - isPromiseAttribute_Value() -} - -type PromiseAttribute_StringValue struct { - StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` -} - -type PromiseAttribute_IntValue struct { - IntValue int32 `protobuf:"varint,2,opt,name=int_value,json=intValue,proto3,oneof"` -} - -func (*PromiseAttribute_StringValue) isPromiseAttribute_Value() {} - -func (*PromiseAttribute_IntValue) isPromiseAttribute_Value() {} - -func (m *PromiseAttribute) GetValue() isPromiseAttribute_Value { - if m != nil { - return m.Value - } - return nil -} - -func (m *PromiseAttribute) GetStringValue() string { - if x, ok := m.GetValue().(*PromiseAttribute_StringValue); ok { - return x.StringValue - } - return "" -} - -func (m *PromiseAttribute) GetIntValue() int32 { - if x, ok := m.GetValue().(*PromiseAttribute_IntValue); ok { - return x.IntValue - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*PromiseAttribute) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*PromiseAttribute_StringValue)(nil), - (*PromiseAttribute_IntValue)(nil), - } -} - -// Represents an error thrown from a node. -type Error struct { - // The node id that threw the error. - FailedNodeId string `protobuf:"bytes,1,opt,name=failed_node_id,json=failedNodeId,proto3" json:"failed_node_id,omitempty"` - // Error message thrown. - Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Error) Reset() { *m = Error{} } -func (m *Error) String() string { return proto.CompactTextString(m) } -func (*Error) ProtoMessage() {} -func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_51e8add38f4caaed, []int{10} -} - -func (m *Error) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Error.Unmarshal(m, b) -} -func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Error.Marshal(b, m, deterministic) -} -func (m *Error) XXX_Merge(src proto.Message) { - xxx_messageInfo_Error.Merge(m, src) -} -func (m *Error) XXX_Size() int { - return xxx_messageInfo_Error.Size(m) -} -func (m *Error) XXX_DiscardUnknown() { - xxx_messageInfo_Error.DiscardUnknown(m) -} - -var xxx_messageInfo_Error proto.InternalMessageInfo - -func (m *Error) GetFailedNodeId() string { - if m != nil { - return m.FailedNodeId - } - return "" -} - -func (m *Error) GetMessage() string { - if m != nil { - return m.Message - } - return "" -} - -func init() { - proto.RegisterEnum("flyteidl.core.SimpleType", SimpleType_name, SimpleType_value) - proto.RegisterEnum("flyteidl.core.SchemaType_SchemaColumn_SchemaColumnType", SchemaType_SchemaColumn_SchemaColumnType_name, SchemaType_SchemaColumn_SchemaColumnType_value) - proto.RegisterEnum("flyteidl.core.BlobType_BlobDimensionality", BlobType_BlobDimensionality_name, BlobType_BlobDimensionality_value) - proto.RegisterType((*SchemaType)(nil), "flyteidl.core.SchemaType") - proto.RegisterType((*SchemaType_SchemaColumn)(nil), "flyteidl.core.SchemaType.SchemaColumn") - proto.RegisterType((*StructuredDatasetType)(nil), "flyteidl.core.StructuredDatasetType") - proto.RegisterType((*StructuredDatasetType_DatasetColumn)(nil), "flyteidl.core.StructuredDatasetType.DatasetColumn") - proto.RegisterType((*BlobType)(nil), "flyteidl.core.BlobType") - proto.RegisterType((*EnumType)(nil), "flyteidl.core.EnumType") - proto.RegisterType((*UnionType)(nil), "flyteidl.core.UnionType") - proto.RegisterType((*TypeStructure)(nil), "flyteidl.core.TypeStructure") - proto.RegisterMapType((map[string]*LiteralType)(nil), "flyteidl.core.TypeStructure.DataclassTypeEntry") - proto.RegisterType((*TypeAnnotation)(nil), "flyteidl.core.TypeAnnotation") - proto.RegisterType((*LiteralType)(nil), "flyteidl.core.LiteralType") - proto.RegisterType((*OutputReference)(nil), "flyteidl.core.OutputReference") - proto.RegisterType((*PromiseAttribute)(nil), "flyteidl.core.PromiseAttribute") - proto.RegisterType((*Error)(nil), "flyteidl.core.Error") -} - -func init() { proto.RegisterFile("flyteidl/core/types.proto", fileDescriptor_51e8add38f4caaed) } - -var fileDescriptor_51e8add38f4caaed = []byte{ - // 1075 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0xdb, 0x6e, 0xdb, 0x46, - 0x13, 0x16, 0x75, 0xe6, 0x48, 0x56, 0x88, 0xfd, 0x7f, 0xd7, 0xb2, 0x91, 0xa0, 0x06, 0x1b, 0x14, - 0x46, 0x80, 0x48, 0x81, 0x0c, 0xa4, 0x8d, 0x91, 0x00, 0x95, 0x6c, 0xd6, 0x12, 0xa2, 0x48, 0xc6, - 0x5a, 0x0e, 0xd0, 0xa2, 0xa8, 0xb0, 0x12, 0xd7, 0x32, 0x11, 0x92, 0x2b, 0x90, 0x4b, 0xa3, 0xea, - 0x03, 0xf4, 0x3d, 0x7a, 0xd5, 0x97, 0xe8, 0x7d, 0x6f, 0x7b, 0xd7, 0xd7, 0x29, 0x76, 0x79, 0x12, - 0x19, 0xd5, 0xf0, 0xdd, 0xce, 0xce, 0x79, 0xf6, 0x9b, 0x99, 0x85, 0xc3, 0x5b, 0x7b, 0xc3, 0xa9, - 0x65, 0xda, 0xdd, 0x25, 0xf3, 0x68, 0x97, 0x6f, 0xd6, 0xd4, 0xef, 0xac, 0x3d, 0xc6, 0x19, 0xda, - 0x8b, 0x59, 0x1d, 0xc1, 0x3a, 0x7a, 0xba, 0x62, 0x6c, 0x65, 0xd3, 0xae, 0x64, 0x2e, 0x82, 0xdb, - 0xae, 0xcf, 0xbd, 0x60, 0xc9, 0x43, 0x61, 0xfd, 0xf7, 0x22, 0xc0, 0xf5, 0xf2, 0x8e, 0x3a, 0x64, - 0xb6, 0x59, 0x53, 0xf4, 0x1d, 0xd4, 0x96, 0xcc, 0x0e, 0x1c, 0xd7, 0x6f, 0x97, 0x8e, 0x4b, 0x27, - 0x8d, 0xde, 0xd7, 0x9d, 0x8c, 0xb5, 0x4e, 0x2a, 0x1b, 0x1d, 0xcf, 0xa5, 0x38, 0x8e, 0xd5, 0x8e, - 0xfe, 0x56, 0xa0, 0xb9, 0xcd, 0x41, 0x08, 0xca, 0x2e, 0x71, 0x68, 0x5b, 0x39, 0x56, 0x4e, 0x54, - 0x2c, 0xcf, 0xe8, 0x3d, 0x94, 0x45, 0xc4, 0xed, 0xe2, 0xb1, 0x72, 0xd2, 0xea, 0x7d, 0xf3, 0x38, - 0x1f, 0x19, 0x42, 0x70, 0xb1, 0x34, 0xa2, 0xcf, 0x41, 0xcb, 0x73, 0x50, 0x03, 0x6a, 0xa3, 0xc9, - 0xcc, 0xb8, 0x34, 0xb0, 0x56, 0x40, 0x2a, 0x54, 0xbe, 0x1f, 0x4f, 0xfb, 0x33, 0x4d, 0x41, 0x00, - 0xd5, 0xeb, 0x19, 0x1e, 0x4d, 0x2e, 0xb5, 0xa2, 0x90, 0x19, 0x4c, 0xa7, 0x63, 0xa3, 0x3f, 0xd1, - 0x4a, 0xa8, 0x09, 0xf5, 0x8b, 0xfe, 0xcc, 0x98, 0x8d, 0x3e, 0x18, 0x5a, 0x59, 0x52, 0x37, 0xb8, - 0x3f, 0x1b, 0x4d, 0x27, 0x5a, 0x45, 0xff, 0xab, 0x08, 0xfb, 0xd7, 0xb2, 0x68, 0x81, 0x47, 0xcd, - 0x0b, 0xc2, 0x89, 0x4f, 0xb9, 0x74, 0x33, 0x4e, 0xcb, 0xa5, 0xc8, 0x72, 0xf5, 0xf2, 0xa9, 0xec, - 0x52, 0xeb, 0x44, 0xe7, 0x5c, 0xe9, 0xd0, 0x17, 0x50, 0xbd, 0x65, 0x9e, 0x43, 0xb8, 0xac, 0x8b, - 0x8a, 0x23, 0x0a, 0xbd, 0x82, 0xff, 0xd3, 0x5f, 0x38, 0xf5, 0x5c, 0x62, 0xcf, 0x7d, 0x99, 0xe9, - 0x5c, 0x56, 0xaf, 0x24, 0xa5, 0x50, 0xcc, 0xdb, 0x7a, 0xc6, 0x1e, 0xec, 0xe7, 0x35, 0x16, 0x1b, - 0x4e, 0xfd, 0x76, 0xf9, 0x58, 0x39, 0x69, 0xe2, 0xff, 0x65, 0x55, 0x06, 0x82, 0x75, 0xb4, 0x80, - 0xbd, 0x4c, 0x5c, 0x3b, 0x1f, 0xee, 0x1d, 0x34, 0x6d, 0x8b, 0x53, 0x8f, 0xd8, 0xf3, 0xe4, 0x01, - 0x1b, 0xbd, 0xa3, 0x5c, 0xd6, 0xe3, 0x50, 0x44, 0xbe, 0x51, 0xc3, 0x4e, 0x09, 0xfd, 0x0f, 0x05, - 0xea, 0x03, 0x9b, 0x2d, 0x64, 0x90, 0x69, 0xba, 0x4a, 0x26, 0x5d, 0x0c, 0x2d, 0xd3, 0x72, 0xa8, - 0xeb, 0x5b, 0xcc, 0x25, 0xb6, 0xc5, 0x37, 0x11, 0x4c, 0x5e, 0xe4, 0xbc, 0xc4, 0x86, 0xe4, 0xe1, - 0x22, 0xa3, 0x81, 0x73, 0x16, 0xf4, 0x2e, 0xa0, 0xcf, 0xa5, 0x24, 0x1a, 0x46, 0x93, 0xcb, 0xb1, - 0xa1, 0x15, 0xd0, 0x1e, 0xa8, 0x1f, 0x6e, 0xc6, 0xb3, 0xd1, 0x55, 0x1f, 0xcf, 0x34, 0x45, 0xd7, - 0xa1, 0x6e, 0xb8, 0x81, 0x13, 0x07, 0x7a, 0x4f, 0xec, 0x80, 0x86, 0x8f, 0xac, 0xe2, 0x88, 0xd2, - 0xcf, 0x41, 0xbd, 0x71, 0x2d, 0x16, 0x22, 0xee, 0x35, 0xd4, 0xef, 0x89, 0x67, 0x11, 0x97, 0xc7, - 0x58, 0x78, 0xa8, 0x2a, 0x89, 0xac, 0xfe, 0x8f, 0x02, 0x7b, 0xe2, 0x2a, 0x41, 0x0a, 0xd2, 0xa0, - 0xc4, 0xc9, 0x2a, 0x2a, 0x8a, 0x38, 0xa2, 0x8f, 0xd0, 0x32, 0x09, 0x27, 0x4b, 0x9b, 0xf8, 0x7e, - 0x5c, 0x77, 0xe1, 0xa1, 0x9b, 0xf3, 0x90, 0xb1, 0x23, 0x51, 0x26, 0x55, 0xc4, 0xb5, 0xe1, 0x72, - 0x6f, 0x83, 0xf7, 0xcc, 0xed, 0xbb, 0xa3, 0x9f, 0x00, 0x7d, 0x2e, 0x24, 0xfc, 0x7f, 0xa2, 0x9b, - 0xd8, 0xff, 0x27, 0xba, 0x41, 0xaf, 0xa0, 0x22, 0x53, 0x7e, 0xc4, 0x73, 0x87, 0x82, 0x67, 0xc5, - 0x6f, 0x15, 0xfd, 0x3d, 0xb4, 0xc4, 0x55, 0xdf, 0x75, 0x19, 0x27, 0xdc, 0x62, 0x2e, 0x7a, 0x03, - 0x0d, 0x92, 0x50, 0xbe, 0xf4, 0xd0, 0xe8, 0x1d, 0x74, 0xc2, 0x01, 0xd5, 0x89, 0x07, 0x54, 0xd4, - 0x34, 0x78, 0x5b, 0x56, 0xff, 0xb3, 0x02, 0x8d, 0x2d, 0x3f, 0xe8, 0x14, 0xaa, 0xbe, 0xe5, 0xac, - 0xed, 0x10, 0x9e, 0xad, 0xde, 0x61, 0xbe, 0xf1, 0x24, 0x53, 0x88, 0x0e, 0x0b, 0x38, 0x12, 0x95, - 0x4a, 0x12, 0xf1, 0x51, 0x22, 0x87, 0xff, 0x39, 0x78, 0xa4, 0x92, 0xa4, 0x90, 0x01, 0x4f, 0x96, - 0xcc, 0xb6, 0xe9, 0x52, 0x04, 0x92, 0x36, 0xde, 0x83, 0x65, 0x18, 0x16, 0x70, 0x2b, 0x55, 0x92, - 0x01, 0x0f, 0xa0, 0xe5, 0x90, 0xf5, 0x5c, 0x96, 0x27, 0xb4, 0x52, 0x7e, 0x84, 0x95, 0xa6, 0x43, - 0xd6, 0x1f, 0x85, 0x8a, 0xb4, 0xf1, 0x12, 0xca, 0x0b, 0x9b, 0x2d, 0xda, 0x95, 0xa8, 0x70, 0xbb, - 0xfb, 0x61, 0x58, 0xc0, 0x52, 0x0c, 0xbd, 0x06, 0x95, 0xba, 0x81, 0x13, 0x7a, 0xab, 0xed, 0xd4, - 0x89, 0x31, 0x3e, 0x2c, 0xe0, 0x3a, 0x8d, 0xf1, 0xfe, 0x33, 0x1c, 0xf8, 0xc9, 0xdc, 0x9a, 0x9b, - 0xe1, 0x50, 0x08, 0xad, 0xd4, 0xa5, 0x95, 0xe7, 0x8f, 0x99, 0x72, 0xc3, 0x02, 0xde, 0xf7, 0x77, - 0x4e, 0xcd, 0x37, 0x00, 0x81, 0x9b, 0x14, 0x13, 0xa4, 0xc9, 0x76, 0xce, 0x64, 0xd2, 0x58, 0xc3, - 0x02, 0x56, 0x83, 0xa4, 0xcb, 0x4e, 0xa1, 0xee, 0x50, 0x4e, 0x44, 0x4c, 0xed, 0xea, 0xc3, 0xf0, - 0x49, 0x04, 0xd1, 0x3b, 0x80, 0x14, 0x4a, 0x6d, 0x55, 0xaa, 0x3d, 0xdb, 0xd1, 0x3a, 0x29, 0x52, - 0xf1, 0x96, 0x02, 0x3a, 0x03, 0x35, 0xc9, 0xa3, 0xdd, 0x90, 0xda, 0x4f, 0x1f, 0x6a, 0x3c, 0x9c, - 0x8a, 0x0f, 0xaa, 0xe1, 0xa2, 0xd3, 0x7f, 0x85, 0x27, 0xd3, 0x80, 0xaf, 0x03, 0x8e, 0xe9, 0x2d, - 0xf5, 0xa8, 0xbb, 0xa4, 0xe8, 0x00, 0x6a, 0x2e, 0x33, 0xe9, 0xdc, 0x32, 0xe3, 0xf9, 0x27, 0xc8, - 0x91, 0x29, 0xfa, 0xef, 0x9e, 0x78, 0xd1, 0x0e, 0x10, 0x47, 0xf4, 0x16, 0x54, 0xc2, 0xb9, 0x37, - 0x5f, 0x13, 0x7e, 0x17, 0xed, 0xe5, 0x2f, 0x73, 0x11, 0x5c, 0x79, 0xcc, 0xb1, 0x7c, 0xda, 0xe7, - 0xdc, 0xb3, 0x16, 0x01, 0xa7, 0xb8, 0x2e, 0x34, 0xae, 0x08, 0xbf, 0x13, 0xfb, 0x31, 0xcf, 0x45, - 0x5f, 0x41, 0xd3, 0xe7, 0x9e, 0xe5, 0xae, 0x42, 0x40, 0x86, 0x11, 0x0c, 0x0b, 0xb8, 0x11, 0xde, - 0x4a, 0xc8, 0xa1, 0x67, 0xa0, 0x5a, 0x2e, 0x9f, 0xa7, 0xad, 0x5f, 0x11, 0x30, 0xb1, 0x5c, 0x2e, - 0xd9, 0x83, 0x5a, 0x34, 0x15, 0xf4, 0x4b, 0xa8, 0x18, 0x9e, 0xc7, 0x3c, 0xf4, 0x1c, 0x5a, 0xb7, - 0xc4, 0xb2, 0xa9, 0x39, 0xcf, 0x66, 0xd6, 0x0c, 0x6f, 0x27, 0x61, 0x7e, 0x6d, 0xa8, 0x39, 0xd4, - 0xf7, 0xc9, 0x8a, 0x46, 0x39, 0xc6, 0xe4, 0x8b, 0xdf, 0x14, 0x80, 0xb4, 0x71, 0x51, 0x1d, 0xca, - 0x93, 0xe9, 0x44, 0x0c, 0xe7, 0xad, 0x75, 0xae, 0xa4, 0xeb, 0xbc, 0xb8, 0xb5, 0xce, 0x4b, 0xdb, - 0xeb, 0xbc, 0x9c, 0x59, 0xe7, 0x95, 0xcc, 0x3a, 0xaf, 0x0a, 0xa5, 0xc1, 0x68, 0xd2, 0xc7, 0x3f, - 0x68, 0x35, 0x61, 0xcb, 0xc0, 0x78, 0x8a, 0xb5, 0x7a, 0x64, 0xeb, 0xe6, 0x7c, 0xa6, 0xa9, 0x83, - 0xb7, 0x3f, 0x9e, 0xad, 0x2c, 0x7e, 0x17, 0x2c, 0x3a, 0x4b, 0xe6, 0x74, 0x65, 0xa5, 0x99, 0xb7, - 0x0a, 0x0f, 0xdd, 0xe4, 0xe7, 0xb5, 0xa2, 0x6e, 0x77, 0xbd, 0x78, 0xb9, 0x62, 0xdd, 0xcc, 0x67, - 0x6c, 0x51, 0x95, 0x50, 0x3c, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0xae, 0xa5, 0x65, 0x5e, 0xa4, - 0x09, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json deleted file mode 100644 index 388060aaab..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/types.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/types.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go deleted file mode 100644 index 8ab1496330..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow.pb.go +++ /dev/null @@ -1,1452 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/workflow.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Failure Handling Strategy -type WorkflowMetadata_OnFailurePolicy int32 - -const ( - // FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically - // abort all currently running nodes and clean up resources before finally marking the workflow executions as - // failed. - WorkflowMetadata_FAIL_IMMEDIATELY WorkflowMetadata_OnFailurePolicy = 0 - // FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will - // not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. - // Other nodes that will be executed to completion before cleaning up resources and marking the workflow - // execution as failed. - WorkflowMetadata_FAIL_AFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadata_OnFailurePolicy = 1 -) - -var WorkflowMetadata_OnFailurePolicy_name = map[int32]string{ - 0: "FAIL_IMMEDIATELY", - 1: "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", -} - -var WorkflowMetadata_OnFailurePolicy_value = map[string]int32{ - "FAIL_IMMEDIATELY": 0, - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE": 1, -} - -func (x WorkflowMetadata_OnFailurePolicy) String() string { - return proto.EnumName(WorkflowMetadata_OnFailurePolicy_name, int32(x)) -} - -func (WorkflowMetadata_OnFailurePolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{13, 0} -} - -// Defines a condition and the execution unit that should be executed if the condition is satisfied. -type IfBlock struct { - Condition *BooleanExpression `protobuf:"bytes,1,opt,name=condition,proto3" json:"condition,omitempty"` - ThenNode *Node `protobuf:"bytes,2,opt,name=then_node,json=thenNode,proto3" json:"then_node,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IfBlock) Reset() { *m = IfBlock{} } -func (m *IfBlock) String() string { return proto.CompactTextString(m) } -func (*IfBlock) ProtoMessage() {} -func (*IfBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{0} -} - -func (m *IfBlock) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IfBlock.Unmarshal(m, b) -} -func (m *IfBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IfBlock.Marshal(b, m, deterministic) -} -func (m *IfBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_IfBlock.Merge(m, src) -} -func (m *IfBlock) XXX_Size() int { - return xxx_messageInfo_IfBlock.Size(m) -} -func (m *IfBlock) XXX_DiscardUnknown() { - xxx_messageInfo_IfBlock.DiscardUnknown(m) -} - -var xxx_messageInfo_IfBlock proto.InternalMessageInfo - -func (m *IfBlock) GetCondition() *BooleanExpression { - if m != nil { - return m.Condition - } - return nil -} - -func (m *IfBlock) GetThenNode() *Node { - if m != nil { - return m.ThenNode - } - return nil -} - -// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. -// If no conditions were satisfied, the else_node or the error will execute. -type IfElseBlock struct { - //+required. First condition to evaluate. - Case *IfBlock `protobuf:"bytes,1,opt,name=case,proto3" json:"case,omitempty"` - //+optional. Additional branches to evaluate. - Other []*IfBlock `protobuf:"bytes,2,rep,name=other,proto3" json:"other,omitempty"` - //+required. - // - // Types that are valid to be assigned to Default: - // *IfElseBlock_ElseNode - // *IfElseBlock_Error - Default isIfElseBlock_Default `protobuf_oneof:"default"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *IfElseBlock) Reset() { *m = IfElseBlock{} } -func (m *IfElseBlock) String() string { return proto.CompactTextString(m) } -func (*IfElseBlock) ProtoMessage() {} -func (*IfElseBlock) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{1} -} - -func (m *IfElseBlock) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_IfElseBlock.Unmarshal(m, b) -} -func (m *IfElseBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_IfElseBlock.Marshal(b, m, deterministic) -} -func (m *IfElseBlock) XXX_Merge(src proto.Message) { - xxx_messageInfo_IfElseBlock.Merge(m, src) -} -func (m *IfElseBlock) XXX_Size() int { - return xxx_messageInfo_IfElseBlock.Size(m) -} -func (m *IfElseBlock) XXX_DiscardUnknown() { - xxx_messageInfo_IfElseBlock.DiscardUnknown(m) -} - -var xxx_messageInfo_IfElseBlock proto.InternalMessageInfo - -func (m *IfElseBlock) GetCase() *IfBlock { - if m != nil { - return m.Case - } - return nil -} - -func (m *IfElseBlock) GetOther() []*IfBlock { - if m != nil { - return m.Other - } - return nil -} - -type isIfElseBlock_Default interface { - isIfElseBlock_Default() -} - -type IfElseBlock_ElseNode struct { - ElseNode *Node `protobuf:"bytes,3,opt,name=else_node,json=elseNode,proto3,oneof"` -} - -type IfElseBlock_Error struct { - Error *Error `protobuf:"bytes,4,opt,name=error,proto3,oneof"` -} - -func (*IfElseBlock_ElseNode) isIfElseBlock_Default() {} - -func (*IfElseBlock_Error) isIfElseBlock_Default() {} - -func (m *IfElseBlock) GetDefault() isIfElseBlock_Default { - if m != nil { - return m.Default - } - return nil -} - -func (m *IfElseBlock) GetElseNode() *Node { - if x, ok := m.GetDefault().(*IfElseBlock_ElseNode); ok { - return x.ElseNode - } - return nil -} - -func (m *IfElseBlock) GetError() *Error { - if x, ok := m.GetDefault().(*IfElseBlock_Error); ok { - return x.Error - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*IfElseBlock) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*IfElseBlock_ElseNode)(nil), - (*IfElseBlock_Error)(nil), - } -} - -// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at -// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). -type BranchNode struct { - //+required - IfElse *IfElseBlock `protobuf:"bytes,1,opt,name=if_else,json=ifElse,proto3" json:"if_else,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *BranchNode) Reset() { *m = BranchNode{} } -func (m *BranchNode) String() string { return proto.CompactTextString(m) } -func (*BranchNode) ProtoMessage() {} -func (*BranchNode) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{2} -} - -func (m *BranchNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_BranchNode.Unmarshal(m, b) -} -func (m *BranchNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_BranchNode.Marshal(b, m, deterministic) -} -func (m *BranchNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_BranchNode.Merge(m, src) -} -func (m *BranchNode) XXX_Size() int { - return xxx_messageInfo_BranchNode.Size(m) -} -func (m *BranchNode) XXX_DiscardUnknown() { - xxx_messageInfo_BranchNode.DiscardUnknown(m) -} - -var xxx_messageInfo_BranchNode proto.InternalMessageInfo - -func (m *BranchNode) GetIfElse() *IfElseBlock { - if m != nil { - return m.IfElse - } - return nil -} - -// Refers to the task that the Node is to execute. -type TaskNode struct { - // Types that are valid to be assigned to Reference: - // *TaskNode_ReferenceId - Reference isTaskNode_Reference `protobuf_oneof:"reference"` - // Optional overrides applied at task execution time. - Overrides *TaskNodeOverrides `protobuf:"bytes,2,opt,name=overrides,proto3" json:"overrides,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskNode) Reset() { *m = TaskNode{} } -func (m *TaskNode) String() string { return proto.CompactTextString(m) } -func (*TaskNode) ProtoMessage() {} -func (*TaskNode) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{3} -} - -func (m *TaskNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskNode.Unmarshal(m, b) -} -func (m *TaskNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskNode.Marshal(b, m, deterministic) -} -func (m *TaskNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskNode.Merge(m, src) -} -func (m *TaskNode) XXX_Size() int { - return xxx_messageInfo_TaskNode.Size(m) -} -func (m *TaskNode) XXX_DiscardUnknown() { - xxx_messageInfo_TaskNode.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskNode proto.InternalMessageInfo - -type isTaskNode_Reference interface { - isTaskNode_Reference() -} - -type TaskNode_ReferenceId struct { - ReferenceId *Identifier `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3,oneof"` -} - -func (*TaskNode_ReferenceId) isTaskNode_Reference() {} - -func (m *TaskNode) GetReference() isTaskNode_Reference { - if m != nil { - return m.Reference - } - return nil -} - -func (m *TaskNode) GetReferenceId() *Identifier { - if x, ok := m.GetReference().(*TaskNode_ReferenceId); ok { - return x.ReferenceId - } - return nil -} - -func (m *TaskNode) GetOverrides() *TaskNodeOverrides { - if m != nil { - return m.Overrides - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TaskNode) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TaskNode_ReferenceId)(nil), - } -} - -// Refers to a the workflow the node is to execute. -type WorkflowNode struct { - // Types that are valid to be assigned to Reference: - // *WorkflowNode_LaunchplanRef - // *WorkflowNode_SubWorkflowRef - Reference isWorkflowNode_Reference `protobuf_oneof:"reference"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowNode) Reset() { *m = WorkflowNode{} } -func (m *WorkflowNode) String() string { return proto.CompactTextString(m) } -func (*WorkflowNode) ProtoMessage() {} -func (*WorkflowNode) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{4} -} - -func (m *WorkflowNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowNode.Unmarshal(m, b) -} -func (m *WorkflowNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowNode.Marshal(b, m, deterministic) -} -func (m *WorkflowNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowNode.Merge(m, src) -} -func (m *WorkflowNode) XXX_Size() int { - return xxx_messageInfo_WorkflowNode.Size(m) -} -func (m *WorkflowNode) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowNode.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowNode proto.InternalMessageInfo - -type isWorkflowNode_Reference interface { - isWorkflowNode_Reference() -} - -type WorkflowNode_LaunchplanRef struct { - LaunchplanRef *Identifier `protobuf:"bytes,1,opt,name=launchplan_ref,json=launchplanRef,proto3,oneof"` -} - -type WorkflowNode_SubWorkflowRef struct { - SubWorkflowRef *Identifier `protobuf:"bytes,2,opt,name=sub_workflow_ref,json=subWorkflowRef,proto3,oneof"` -} - -func (*WorkflowNode_LaunchplanRef) isWorkflowNode_Reference() {} - -func (*WorkflowNode_SubWorkflowRef) isWorkflowNode_Reference() {} - -func (m *WorkflowNode) GetReference() isWorkflowNode_Reference { - if m != nil { - return m.Reference - } - return nil -} - -func (m *WorkflowNode) GetLaunchplanRef() *Identifier { - if x, ok := m.GetReference().(*WorkflowNode_LaunchplanRef); ok { - return x.LaunchplanRef - } - return nil -} - -func (m *WorkflowNode) GetSubWorkflowRef() *Identifier { - if x, ok := m.GetReference().(*WorkflowNode_SubWorkflowRef); ok { - return x.SubWorkflowRef - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*WorkflowNode) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*WorkflowNode_LaunchplanRef)(nil), - (*WorkflowNode_SubWorkflowRef)(nil), - } -} - -// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean -// signal with the provided signal_id. -type ApproveCondition struct { - // A unique identifier for the requested boolean signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ApproveCondition) Reset() { *m = ApproveCondition{} } -func (m *ApproveCondition) String() string { return proto.CompactTextString(m) } -func (*ApproveCondition) ProtoMessage() {} -func (*ApproveCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{5} -} - -func (m *ApproveCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ApproveCondition.Unmarshal(m, b) -} -func (m *ApproveCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ApproveCondition.Marshal(b, m, deterministic) -} -func (m *ApproveCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_ApproveCondition.Merge(m, src) -} -func (m *ApproveCondition) XXX_Size() int { - return xxx_messageInfo_ApproveCondition.Size(m) -} -func (m *ApproveCondition) XXX_DiscardUnknown() { - xxx_messageInfo_ApproveCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_ApproveCondition proto.InternalMessageInfo - -func (m *ApproveCondition) GetSignalId() string { - if m != nil { - return m.SignalId - } - return "" -} - -// SignalCondition represents a dependency on an signal. -type SignalCondition struct { - // A unique identifier for the requested signal. - SignalId string `protobuf:"bytes,1,opt,name=signal_id,json=signalId,proto3" json:"signal_id,omitempty"` - // A type denoting the required value type for this signal. - Type *LiteralType `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // The variable name for the signal value in this nodes outputs. - OutputVariableName string `protobuf:"bytes,3,opt,name=output_variable_name,json=outputVariableName,proto3" json:"output_variable_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SignalCondition) Reset() { *m = SignalCondition{} } -func (m *SignalCondition) String() string { return proto.CompactTextString(m) } -func (*SignalCondition) ProtoMessage() {} -func (*SignalCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{6} -} - -func (m *SignalCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SignalCondition.Unmarshal(m, b) -} -func (m *SignalCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SignalCondition.Marshal(b, m, deterministic) -} -func (m *SignalCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_SignalCondition.Merge(m, src) -} -func (m *SignalCondition) XXX_Size() int { - return xxx_messageInfo_SignalCondition.Size(m) -} -func (m *SignalCondition) XXX_DiscardUnknown() { - xxx_messageInfo_SignalCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_SignalCondition proto.InternalMessageInfo - -func (m *SignalCondition) GetSignalId() string { - if m != nil { - return m.SignalId - } - return "" -} - -func (m *SignalCondition) GetType() *LiteralType { - if m != nil { - return m.Type - } - return nil -} - -func (m *SignalCondition) GetOutputVariableName() string { - if m != nil { - return m.OutputVariableName - } - return "" -} - -// SleepCondition represents a dependency on waiting for the specified duration. -type SleepCondition struct { - // The overall duration for this sleep. - Duration *duration.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SleepCondition) Reset() { *m = SleepCondition{} } -func (m *SleepCondition) String() string { return proto.CompactTextString(m) } -func (*SleepCondition) ProtoMessage() {} -func (*SleepCondition) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{7} -} - -func (m *SleepCondition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SleepCondition.Unmarshal(m, b) -} -func (m *SleepCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SleepCondition.Marshal(b, m, deterministic) -} -func (m *SleepCondition) XXX_Merge(src proto.Message) { - xxx_messageInfo_SleepCondition.Merge(m, src) -} -func (m *SleepCondition) XXX_Size() int { - return xxx_messageInfo_SleepCondition.Size(m) -} -func (m *SleepCondition) XXX_DiscardUnknown() { - xxx_messageInfo_SleepCondition.DiscardUnknown(m) -} - -var xxx_messageInfo_SleepCondition proto.InternalMessageInfo - -func (m *SleepCondition) GetDuration() *duration.Duration { - if m != nil { - return m.Duration - } - return nil -} - -// GateNode refers to the condition that is required for the gate to successfully complete. -type GateNode struct { - // Types that are valid to be assigned to Condition: - // *GateNode_Approve - // *GateNode_Signal - // *GateNode_Sleep - Condition isGateNode_Condition `protobuf_oneof:"condition"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GateNode) Reset() { *m = GateNode{} } -func (m *GateNode) String() string { return proto.CompactTextString(m) } -func (*GateNode) ProtoMessage() {} -func (*GateNode) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{8} -} - -func (m *GateNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GateNode.Unmarshal(m, b) -} -func (m *GateNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GateNode.Marshal(b, m, deterministic) -} -func (m *GateNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_GateNode.Merge(m, src) -} -func (m *GateNode) XXX_Size() int { - return xxx_messageInfo_GateNode.Size(m) -} -func (m *GateNode) XXX_DiscardUnknown() { - xxx_messageInfo_GateNode.DiscardUnknown(m) -} - -var xxx_messageInfo_GateNode proto.InternalMessageInfo - -type isGateNode_Condition interface { - isGateNode_Condition() -} - -type GateNode_Approve struct { - Approve *ApproveCondition `protobuf:"bytes,1,opt,name=approve,proto3,oneof"` -} - -type GateNode_Signal struct { - Signal *SignalCondition `protobuf:"bytes,2,opt,name=signal,proto3,oneof"` -} - -type GateNode_Sleep struct { - Sleep *SleepCondition `protobuf:"bytes,3,opt,name=sleep,proto3,oneof"` -} - -func (*GateNode_Approve) isGateNode_Condition() {} - -func (*GateNode_Signal) isGateNode_Condition() {} - -func (*GateNode_Sleep) isGateNode_Condition() {} - -func (m *GateNode) GetCondition() isGateNode_Condition { - if m != nil { - return m.Condition - } - return nil -} - -func (m *GateNode) GetApprove() *ApproveCondition { - if x, ok := m.GetCondition().(*GateNode_Approve); ok { - return x.Approve - } - return nil -} - -func (m *GateNode) GetSignal() *SignalCondition { - if x, ok := m.GetCondition().(*GateNode_Signal); ok { - return x.Signal - } - return nil -} - -func (m *GateNode) GetSleep() *SleepCondition { - if x, ok := m.GetCondition().(*GateNode_Sleep); ok { - return x.Sleep - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*GateNode) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*GateNode_Approve)(nil), - (*GateNode_Signal)(nil), - (*GateNode_Sleep)(nil), - } -} - -// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input -// values. An ArrayNode can be executed with configurable parallelism (separate from the parent -// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. -type ArrayNode struct { - // node is the sub-node that will be executed for each element in the array. - Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` - // parallelism defines the minimum number of instances to bring up concurrently at any given - // point. Note that this is an optimistic restriction and that, due to network partitioning or - // other failures, the actual number of currently running instances might be more. This has to - // be a positive number if assigned. Default value is size. - Parallelism uint32 `protobuf:"varint,2,opt,name=parallelism,proto3" json:"parallelism,omitempty"` - // Types that are valid to be assigned to SuccessCriteria: - // *ArrayNode_MinSuccesses - // *ArrayNode_MinSuccessRatio - SuccessCriteria isArrayNode_SuccessCriteria `protobuf_oneof:"success_criteria"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArrayNode) Reset() { *m = ArrayNode{} } -func (m *ArrayNode) String() string { return proto.CompactTextString(m) } -func (*ArrayNode) ProtoMessage() {} -func (*ArrayNode) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{9} -} - -func (m *ArrayNode) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArrayNode.Unmarshal(m, b) -} -func (m *ArrayNode) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArrayNode.Marshal(b, m, deterministic) -} -func (m *ArrayNode) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArrayNode.Merge(m, src) -} -func (m *ArrayNode) XXX_Size() int { - return xxx_messageInfo_ArrayNode.Size(m) -} -func (m *ArrayNode) XXX_DiscardUnknown() { - xxx_messageInfo_ArrayNode.DiscardUnknown(m) -} - -var xxx_messageInfo_ArrayNode proto.InternalMessageInfo - -func (m *ArrayNode) GetNode() *Node { - if m != nil { - return m.Node - } - return nil -} - -func (m *ArrayNode) GetParallelism() uint32 { - if m != nil { - return m.Parallelism - } - return 0 -} - -type isArrayNode_SuccessCriteria interface { - isArrayNode_SuccessCriteria() -} - -type ArrayNode_MinSuccesses struct { - MinSuccesses uint32 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` -} - -type ArrayNode_MinSuccessRatio struct { - MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` -} - -func (*ArrayNode_MinSuccesses) isArrayNode_SuccessCriteria() {} - -func (*ArrayNode_MinSuccessRatio) isArrayNode_SuccessCriteria() {} - -func (m *ArrayNode) GetSuccessCriteria() isArrayNode_SuccessCriteria { - if m != nil { - return m.SuccessCriteria - } - return nil -} - -func (m *ArrayNode) GetMinSuccesses() uint32 { - if x, ok := m.GetSuccessCriteria().(*ArrayNode_MinSuccesses); ok { - return x.MinSuccesses - } - return 0 -} - -func (m *ArrayNode) GetMinSuccessRatio() float32 { - if x, ok := m.GetSuccessCriteria().(*ArrayNode_MinSuccessRatio); ok { - return x.MinSuccessRatio - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ArrayNode) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ArrayNode_MinSuccesses)(nil), - (*ArrayNode_MinSuccessRatio)(nil), - } -} - -// Defines extra information about the Node. -type NodeMetadata struct { - // A friendly name for the Node - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - // The overall timeout of a task. - Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"` - // Number of retries per task. - Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"` - // Identify whether node is interruptible - // - // Types that are valid to be assigned to InterruptibleValue: - // *NodeMetadata_Interruptible - InterruptibleValue isNodeMetadata_InterruptibleValue `protobuf_oneof:"interruptible_value"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeMetadata) Reset() { *m = NodeMetadata{} } -func (m *NodeMetadata) String() string { return proto.CompactTextString(m) } -func (*NodeMetadata) ProtoMessage() {} -func (*NodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{10} -} - -func (m *NodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeMetadata.Unmarshal(m, b) -} -func (m *NodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeMetadata.Marshal(b, m, deterministic) -} -func (m *NodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeMetadata.Merge(m, src) -} -func (m *NodeMetadata) XXX_Size() int { - return xxx_messageInfo_NodeMetadata.Size(m) -} -func (m *NodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_NodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeMetadata proto.InternalMessageInfo - -func (m *NodeMetadata) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *NodeMetadata) GetTimeout() *duration.Duration { - if m != nil { - return m.Timeout - } - return nil -} - -func (m *NodeMetadata) GetRetries() *RetryStrategy { - if m != nil { - return m.Retries - } - return nil -} - -type isNodeMetadata_InterruptibleValue interface { - isNodeMetadata_InterruptibleValue() -} - -type NodeMetadata_Interruptible struct { - Interruptible bool `protobuf:"varint,6,opt,name=interruptible,proto3,oneof"` -} - -func (*NodeMetadata_Interruptible) isNodeMetadata_InterruptibleValue() {} - -func (m *NodeMetadata) GetInterruptibleValue() isNodeMetadata_InterruptibleValue { - if m != nil { - return m.InterruptibleValue - } - return nil -} - -func (m *NodeMetadata) GetInterruptible() bool { - if x, ok := m.GetInterruptibleValue().(*NodeMetadata_Interruptible); ok { - return x.Interruptible - } - return false -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*NodeMetadata) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*NodeMetadata_Interruptible)(nil), - } -} - -// Links a variable to an alias. -type Alias struct { - // Must match one of the output variable names on a node. - Var string `protobuf:"bytes,1,opt,name=var,proto3" json:"var,omitempty"` - // A workflow-level unique alias that downstream nodes can refer to in their input. - Alias string `protobuf:"bytes,2,opt,name=alias,proto3" json:"alias,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Alias) Reset() { *m = Alias{} } -func (m *Alias) String() string { return proto.CompactTextString(m) } -func (*Alias) ProtoMessage() {} -func (*Alias) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{11} -} - -func (m *Alias) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Alias.Unmarshal(m, b) -} -func (m *Alias) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Alias.Marshal(b, m, deterministic) -} -func (m *Alias) XXX_Merge(src proto.Message) { - xxx_messageInfo_Alias.Merge(m, src) -} -func (m *Alias) XXX_Size() int { - return xxx_messageInfo_Alias.Size(m) -} -func (m *Alias) XXX_DiscardUnknown() { - xxx_messageInfo_Alias.DiscardUnknown(m) -} - -var xxx_messageInfo_Alias proto.InternalMessageInfo - -func (m *Alias) GetVar() string { - if m != nil { - return m.Var - } - return "" -} - -func (m *Alias) GetAlias() string { - if m != nil { - return m.Alias - } - return "" -} - -// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch -// node. -type Node struct { - // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved - // node ids that cannot be used by other nodes. - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Extra metadata about the node. - Metadata *NodeMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface - // must be fulfilled. - Inputs []*Binding `protobuf:"bytes,3,rep,name=inputs,proto3" json:"inputs,omitempty"` - //+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its - // upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs - // field. - UpstreamNodeIds []string `protobuf:"bytes,4,rep,name=upstream_node_ids,json=upstreamNodeIds,proto3" json:"upstream_node_ids,omitempty"` - //+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes - // need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this - // nodes outputs using the alias if one's specified. - OutputAliases []*Alias `protobuf:"bytes,5,rep,name=output_aliases,json=outputAliases,proto3" json:"output_aliases,omitempty"` - // Information about the target to execute in this node. - // - // Types that are valid to be assigned to Target: - // *Node_TaskNode - // *Node_WorkflowNode - // *Node_BranchNode - // *Node_GateNode - // *Node_ArrayNode - Target isNode_Target `protobuf_oneof:"target"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Node) Reset() { *m = Node{} } -func (m *Node) String() string { return proto.CompactTextString(m) } -func (*Node) ProtoMessage() {} -func (*Node) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{12} -} - -func (m *Node) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Node.Unmarshal(m, b) -} -func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Node.Marshal(b, m, deterministic) -} -func (m *Node) XXX_Merge(src proto.Message) { - xxx_messageInfo_Node.Merge(m, src) -} -func (m *Node) XXX_Size() int { - return xxx_messageInfo_Node.Size(m) -} -func (m *Node) XXX_DiscardUnknown() { - xxx_messageInfo_Node.DiscardUnknown(m) -} - -var xxx_messageInfo_Node proto.InternalMessageInfo - -func (m *Node) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Node) GetMetadata() *NodeMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *Node) GetInputs() []*Binding { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *Node) GetUpstreamNodeIds() []string { - if m != nil { - return m.UpstreamNodeIds - } - return nil -} - -func (m *Node) GetOutputAliases() []*Alias { - if m != nil { - return m.OutputAliases - } - return nil -} - -type isNode_Target interface { - isNode_Target() -} - -type Node_TaskNode struct { - TaskNode *TaskNode `protobuf:"bytes,6,opt,name=task_node,json=taskNode,proto3,oneof"` -} - -type Node_WorkflowNode struct { - WorkflowNode *WorkflowNode `protobuf:"bytes,7,opt,name=workflow_node,json=workflowNode,proto3,oneof"` -} - -type Node_BranchNode struct { - BranchNode *BranchNode `protobuf:"bytes,8,opt,name=branch_node,json=branchNode,proto3,oneof"` -} - -type Node_GateNode struct { - GateNode *GateNode `protobuf:"bytes,9,opt,name=gate_node,json=gateNode,proto3,oneof"` -} - -type Node_ArrayNode struct { - ArrayNode *ArrayNode `protobuf:"bytes,10,opt,name=array_node,json=arrayNode,proto3,oneof"` -} - -func (*Node_TaskNode) isNode_Target() {} - -func (*Node_WorkflowNode) isNode_Target() {} - -func (*Node_BranchNode) isNode_Target() {} - -func (*Node_GateNode) isNode_Target() {} - -func (*Node_ArrayNode) isNode_Target() {} - -func (m *Node) GetTarget() isNode_Target { - if m != nil { - return m.Target - } - return nil -} - -func (m *Node) GetTaskNode() *TaskNode { - if x, ok := m.GetTarget().(*Node_TaskNode); ok { - return x.TaskNode - } - return nil -} - -func (m *Node) GetWorkflowNode() *WorkflowNode { - if x, ok := m.GetTarget().(*Node_WorkflowNode); ok { - return x.WorkflowNode - } - return nil -} - -func (m *Node) GetBranchNode() *BranchNode { - if x, ok := m.GetTarget().(*Node_BranchNode); ok { - return x.BranchNode - } - return nil -} - -func (m *Node) GetGateNode() *GateNode { - if x, ok := m.GetTarget().(*Node_GateNode); ok { - return x.GateNode - } - return nil -} - -func (m *Node) GetArrayNode() *ArrayNode { - if x, ok := m.GetTarget().(*Node_ArrayNode); ok { - return x.ArrayNode - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*Node) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*Node_TaskNode)(nil), - (*Node_WorkflowNode)(nil), - (*Node_BranchNode)(nil), - (*Node_GateNode)(nil), - (*Node_ArrayNode)(nil), - } -} - -// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not -// percolate down to child entities (like tasks) launched by the workflow. -type WorkflowMetadata struct { - // Indicates the runtime priority of workflow executions. - QualityOfService *QualityOfService `protobuf:"bytes,1,opt,name=quality_of_service,json=qualityOfService,proto3" json:"quality_of_service,omitempty"` - // Defines how the system should behave when a failure is detected in the workflow execution. - OnFailure WorkflowMetadata_OnFailurePolicy `protobuf:"varint,2,opt,name=on_failure,json=onFailure,proto3,enum=flyteidl.core.WorkflowMetadata_OnFailurePolicy" json:"on_failure,omitempty"` - // Arbitrary tags that allow users and the platform to store small but arbitrary labels - Tags map[string]string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowMetadata) Reset() { *m = WorkflowMetadata{} } -func (m *WorkflowMetadata) String() string { return proto.CompactTextString(m) } -func (*WorkflowMetadata) ProtoMessage() {} -func (*WorkflowMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{13} -} - -func (m *WorkflowMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowMetadata.Unmarshal(m, b) -} -func (m *WorkflowMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowMetadata.Marshal(b, m, deterministic) -} -func (m *WorkflowMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowMetadata.Merge(m, src) -} -func (m *WorkflowMetadata) XXX_Size() int { - return xxx_messageInfo_WorkflowMetadata.Size(m) -} -func (m *WorkflowMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowMetadata proto.InternalMessageInfo - -func (m *WorkflowMetadata) GetQualityOfService() *QualityOfService { - if m != nil { - return m.QualityOfService - } - return nil -} - -func (m *WorkflowMetadata) GetOnFailure() WorkflowMetadata_OnFailurePolicy { - if m != nil { - return m.OnFailure - } - return WorkflowMetadata_FAIL_IMMEDIATELY -} - -func (m *WorkflowMetadata) GetTags() map[string]string { - if m != nil { - return m.Tags - } - return nil -} - -// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to -// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it -// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes -// unless explicitly overridden at the node layer. -// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be -// added to both this object and the WorkflowMetadata object above. -type WorkflowMetadataDefaults struct { - // Whether child nodes of the workflow are interruptible. - Interruptible bool `protobuf:"varint,1,opt,name=interruptible,proto3" json:"interruptible,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowMetadataDefaults) Reset() { *m = WorkflowMetadataDefaults{} } -func (m *WorkflowMetadataDefaults) String() string { return proto.CompactTextString(m) } -func (*WorkflowMetadataDefaults) ProtoMessage() {} -func (*WorkflowMetadataDefaults) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{14} -} - -func (m *WorkflowMetadataDefaults) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowMetadataDefaults.Unmarshal(m, b) -} -func (m *WorkflowMetadataDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowMetadataDefaults.Marshal(b, m, deterministic) -} -func (m *WorkflowMetadataDefaults) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowMetadataDefaults.Merge(m, src) -} -func (m *WorkflowMetadataDefaults) XXX_Size() int { - return xxx_messageInfo_WorkflowMetadataDefaults.Size(m) -} -func (m *WorkflowMetadataDefaults) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowMetadataDefaults.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowMetadataDefaults proto.InternalMessageInfo - -func (m *WorkflowMetadataDefaults) GetInterruptible() bool { - if m != nil { - return m.Interruptible - } - return false -} - -// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, -// directed acyclic graph. -type WorkflowTemplate struct { - // A globally unique identifier for the workflow. - Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Extra metadata about the workflow. - Metadata *WorkflowMetadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - // Defines a strongly typed interface for the Workflow. This can include some optional parameters. - Interface *TypedInterface `protobuf:"bytes,3,opt,name=interface,proto3" json:"interface,omitempty"` - // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - Nodes []*Node `protobuf:"bytes,4,rep,name=nodes,proto3" json:"nodes,omitempty"` - // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or - // specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow - // to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to - // bind final outputs. - // Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can - // just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling - // outputs from the output of a task. - Outputs []*Binding `protobuf:"bytes,5,rep,name=outputs,proto3" json:"outputs,omitempty"` - //+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. - // The interface of this node must match the Workflow interface with an additional input named 'error' of type - // pb.lyft.flyte.core.Error. - FailureNode *Node `protobuf:"bytes,6,opt,name=failure_node,json=failureNode,proto3" json:"failure_node,omitempty"` - // workflow defaults - MetadataDefaults *WorkflowMetadataDefaults `protobuf:"bytes,7,opt,name=metadata_defaults,json=metadataDefaults,proto3" json:"metadata_defaults,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowTemplate) Reset() { *m = WorkflowTemplate{} } -func (m *WorkflowTemplate) String() string { return proto.CompactTextString(m) } -func (*WorkflowTemplate) ProtoMessage() {} -func (*WorkflowTemplate) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{15} -} - -func (m *WorkflowTemplate) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowTemplate.Unmarshal(m, b) -} -func (m *WorkflowTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowTemplate.Marshal(b, m, deterministic) -} -func (m *WorkflowTemplate) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowTemplate.Merge(m, src) -} -func (m *WorkflowTemplate) XXX_Size() int { - return xxx_messageInfo_WorkflowTemplate.Size(m) -} -func (m *WorkflowTemplate) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowTemplate.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowTemplate proto.InternalMessageInfo - -func (m *WorkflowTemplate) GetId() *Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *WorkflowTemplate) GetMetadata() *WorkflowMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *WorkflowTemplate) GetInterface() *TypedInterface { - if m != nil { - return m.Interface - } - return nil -} - -func (m *WorkflowTemplate) GetNodes() []*Node { - if m != nil { - return m.Nodes - } - return nil -} - -func (m *WorkflowTemplate) GetOutputs() []*Binding { - if m != nil { - return m.Outputs - } - return nil -} - -func (m *WorkflowTemplate) GetFailureNode() *Node { - if m != nil { - return m.FailureNode - } - return nil -} - -func (m *WorkflowTemplate) GetMetadataDefaults() *WorkflowMetadataDefaults { - if m != nil { - return m.MetadataDefaults - } - return nil -} - -// Optional task node overrides that will be applied at task execution time. -type TaskNodeOverrides struct { - // A customizable interface to convey resources requested for a task container. - Resources *Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` - // Overrides for all non-standard resources, not captured by - // v1.ResourceRequirements, to allocate to a task. - ExtendedResources *ExtendedResources `protobuf:"bytes,2,opt,name=extended_resources,json=extendedResources,proto3" json:"extended_resources,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskNodeOverrides) Reset() { *m = TaskNodeOverrides{} } -func (m *TaskNodeOverrides) String() string { return proto.CompactTextString(m) } -func (*TaskNodeOverrides) ProtoMessage() {} -func (*TaskNodeOverrides) Descriptor() ([]byte, []int) { - return fileDescriptor_fccede37486c456e, []int{16} -} - -func (m *TaskNodeOverrides) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskNodeOverrides.Unmarshal(m, b) -} -func (m *TaskNodeOverrides) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskNodeOverrides.Marshal(b, m, deterministic) -} -func (m *TaskNodeOverrides) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskNodeOverrides.Merge(m, src) -} -func (m *TaskNodeOverrides) XXX_Size() int { - return xxx_messageInfo_TaskNodeOverrides.Size(m) -} -func (m *TaskNodeOverrides) XXX_DiscardUnknown() { - xxx_messageInfo_TaskNodeOverrides.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskNodeOverrides proto.InternalMessageInfo - -func (m *TaskNodeOverrides) GetResources() *Resources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *TaskNodeOverrides) GetExtendedResources() *ExtendedResources { - if m != nil { - return m.ExtendedResources - } - return nil -} - -func init() { - proto.RegisterEnum("flyteidl.core.WorkflowMetadata_OnFailurePolicy", WorkflowMetadata_OnFailurePolicy_name, WorkflowMetadata_OnFailurePolicy_value) - proto.RegisterType((*IfBlock)(nil), "flyteidl.core.IfBlock") - proto.RegisterType((*IfElseBlock)(nil), "flyteidl.core.IfElseBlock") - proto.RegisterType((*BranchNode)(nil), "flyteidl.core.BranchNode") - proto.RegisterType((*TaskNode)(nil), "flyteidl.core.TaskNode") - proto.RegisterType((*WorkflowNode)(nil), "flyteidl.core.WorkflowNode") - proto.RegisterType((*ApproveCondition)(nil), "flyteidl.core.ApproveCondition") - proto.RegisterType((*SignalCondition)(nil), "flyteidl.core.SignalCondition") - proto.RegisterType((*SleepCondition)(nil), "flyteidl.core.SleepCondition") - proto.RegisterType((*GateNode)(nil), "flyteidl.core.GateNode") - proto.RegisterType((*ArrayNode)(nil), "flyteidl.core.ArrayNode") - proto.RegisterType((*NodeMetadata)(nil), "flyteidl.core.NodeMetadata") - proto.RegisterType((*Alias)(nil), "flyteidl.core.Alias") - proto.RegisterType((*Node)(nil), "flyteidl.core.Node") - proto.RegisterType((*WorkflowMetadata)(nil), "flyteidl.core.WorkflowMetadata") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.core.WorkflowMetadata.TagsEntry") - proto.RegisterType((*WorkflowMetadataDefaults)(nil), "flyteidl.core.WorkflowMetadataDefaults") - proto.RegisterType((*WorkflowTemplate)(nil), "flyteidl.core.WorkflowTemplate") - proto.RegisterType((*TaskNodeOverrides)(nil), "flyteidl.core.TaskNodeOverrides") -} - -func init() { proto.RegisterFile("flyteidl/core/workflow.proto", fileDescriptor_fccede37486c456e) } - -var fileDescriptor_fccede37486c456e = []byte{ - // 1473 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x57, 0x4d, 0x6f, 0xdb, 0xcc, - 0x11, 0x96, 0x64, 0xd9, 0x16, 0xc7, 0x96, 0x2d, 0x6f, 0xdc, 0x56, 0xf9, 0x36, 0x88, 0xb4, 0x71, - 0x82, 0x54, 0x0a, 0x12, 0xc4, 0x49, 0xe3, 0x34, 0xa8, 0x14, 0x2b, 0x91, 0x00, 0x7f, 0x24, 0x6b, - 0xf5, 0xf3, 0x42, 0xac, 0xc8, 0xa1, 0xbc, 0x30, 0x45, 0x2a, 0xcb, 0xa5, 0x13, 0xa1, 0x7f, 0xa2, - 0xb7, 0x5e, 0x0a, 0x14, 0xe8, 0xa1, 0x7f, 0xa3, 0xa7, 0x5e, 0xdf, 0xd3, 0xfb, 0x73, 0xde, 0xc3, - 0x8b, 0x5d, 0x7e, 0xc8, 0xa2, 0xa5, 0x38, 0x37, 0xee, 0xce, 0x33, 0xc3, 0xd9, 0xd9, 0x79, 0x9e, - 0x21, 0xe1, 0x8e, 0xeb, 0x4d, 0x24, 0x72, 0xc7, 0x6b, 0xda, 0x81, 0xc0, 0xe6, 0x97, 0x40, 0x9c, - 0xbb, 0x5e, 0xf0, 0xa5, 0x31, 0x16, 0x81, 0x0c, 0x48, 0x35, 0xb5, 0x36, 0x94, 0xf5, 0xd6, 0xdd, - 0x59, 0xb0, 0x1d, 0xf8, 0x0e, 0x97, 0x3c, 0xf0, 0x63, 0x74, 0xde, 0x8c, 0x5f, 0xd1, 0x8e, 0x2e, - 0x99, 0xef, 0xcd, 0x9a, 0xb9, 0x83, 0xbe, 0xe4, 0x2e, 0x47, 0x31, 0xdf, 0x9d, 0xfb, 0x12, 0x85, - 0xcb, 0x6c, 0x4c, 0xcc, 0xb9, 0x4c, 0x3d, 0x2e, 0x51, 0x30, 0x2f, 0x4c, 0xac, 0x37, 0x67, 0xad, - 0x92, 0x85, 0xe7, 0x8b, 0x4c, 0x93, 0x31, 0x86, 0xf3, 0x63, 0x86, 0x68, 0x47, 0x82, 0xcb, 0x49, - 0x9a, 0xf0, 0x30, 0x08, 0x86, 0x1e, 0x36, 0xf5, 0x6a, 0x10, 0xb9, 0x4d, 0x27, 0x12, 0x6c, 0x7a, - 0x20, 0xf3, 0xef, 0xb0, 0xda, 0x73, 0xdb, 0x5e, 0x60, 0x9f, 0x93, 0xb7, 0x60, 0x64, 0xd5, 0xa8, - 0x17, 0x77, 0x8a, 0xbb, 0x6b, 0xcf, 0x76, 0x1a, 0x33, 0xc5, 0x6b, 0xb4, 0x83, 0xc0, 0x43, 0xe6, - 0x77, 0xbe, 0x8e, 0x05, 0x86, 0x21, 0x0f, 0x7c, 0x3a, 0x75, 0x21, 0x4f, 0xc1, 0x90, 0x67, 0xe8, - 0x5b, 0x7e, 0xe0, 0x60, 0xbd, 0xa4, 0xfd, 0x6f, 0xe4, 0xfc, 0x8f, 0x03, 0x07, 0x69, 0x45, 0xa1, - 0xd4, 0x93, 0xf9, 0x63, 0x11, 0xd6, 0x7a, 0x6e, 0xc7, 0x0b, 0x31, 0xce, 0xe0, 0x31, 0x94, 0x6d, - 0x16, 0x62, 0xf2, 0xf2, 0x5f, 0xe6, 0x9c, 0x93, 0x3c, 0xa9, 0xc6, 0x90, 0x27, 0xb0, 0x1c, 0xc8, - 0x33, 0x14, 0xf5, 0xd2, 0xce, 0xd2, 0x37, 0xc0, 0x31, 0x88, 0x3c, 0x03, 0x03, 0xbd, 0x10, 0xe3, - 0xdc, 0x96, 0x16, 0xe6, 0xd6, 0x2d, 0xd0, 0x8a, 0xc2, 0xa9, 0x67, 0xf5, 0x06, 0x14, 0x22, 0x10, - 0xf5, 0xb2, 0xc6, 0x6f, 0xe7, 0xf0, 0x1d, 0x65, 0xeb, 0x16, 0x68, 0x0c, 0x6a, 0x1b, 0xb0, 0xea, - 0xa0, 0xcb, 0x22, 0x4f, 0x9a, 0x2d, 0x80, 0xb6, 0x60, 0xbe, 0x7d, 0xa6, 0xc3, 0x3c, 0x87, 0x55, - 0xee, 0x5a, 0x2a, 0x6a, 0x72, 0xae, 0x5b, 0x57, 0x52, 0xcd, 0x2a, 0x40, 0x57, 0xb8, 0x5e, 0x98, - 0xff, 0x2c, 0x42, 0xa5, 0xcf, 0xc2, 0x73, 0x1d, 0xe1, 0x2d, 0xac, 0x0b, 0x74, 0x51, 0xa0, 0x6f, - 0xa3, 0xc5, 0x9d, 0x24, 0xcc, 0xcd, 0x7c, 0x98, 0xac, 0x17, 0xbb, 0x05, 0xba, 0x96, 0x39, 0xf4, - 0x1c, 0x75, 0xb1, 0xc1, 0x05, 0x0a, 0xc1, 0x1d, 0x0c, 0x93, 0x8b, 0xc9, 0x5f, 0x6c, 0xfa, 0xae, - 0x93, 0x14, 0x47, 0xa7, 0x2e, 0xed, 0x35, 0x30, 0xb2, 0x70, 0xe6, 0x7f, 0x8b, 0xb0, 0xfe, 0xe7, - 0x84, 0x61, 0x3a, 0xbb, 0x36, 0x6c, 0x78, 0x2c, 0xf2, 0xed, 0xb3, 0xb1, 0xc7, 0x7c, 0x4b, 0xa0, - 0xfb, 0x3d, 0xf9, 0x55, 0xa7, 0x2e, 0x14, 0x5d, 0xd2, 0x81, 0x5a, 0x18, 0x0d, 0xac, 0x94, 0xb9, - 0x3a, 0x4a, 0xe9, 0xfa, 0x28, 0x1b, 0x61, 0x34, 0x48, 0x73, 0xa1, 0xe8, 0xce, 0x26, 0xda, 0x84, - 0x5a, 0x6b, 0x3c, 0x16, 0xc1, 0x05, 0xbe, 0xcb, 0x5a, 0xf4, 0x36, 0x18, 0x21, 0x1f, 0xfa, 0xcc, - 0x4b, 0xcb, 0x68, 0xd0, 0x4a, 0xbc, 0xd1, 0x73, 0xcc, 0x7f, 0x14, 0x61, 0xf3, 0x54, 0x2f, 0xbe, - 0xcf, 0x81, 0x34, 0xa0, 0xac, 0x88, 0x98, 0x64, 0x9a, 0xbf, 0xd6, 0xc3, 0x98, 0xdc, 0xfd, 0xc9, - 0x18, 0xa9, 0xc6, 0x91, 0xa7, 0xb0, 0x1d, 0x44, 0x72, 0x1c, 0x49, 0xeb, 0x82, 0x09, 0xce, 0x06, - 0x1e, 0x5a, 0x3e, 0x1b, 0xc5, 0xfd, 0x68, 0x50, 0x12, 0xdb, 0xfe, 0x94, 0x98, 0x8e, 0xd9, 0x08, - 0xcd, 0x0f, 0xb0, 0x71, 0xea, 0x21, 0x8e, 0xa7, 0x09, 0xbd, 0x80, 0x4a, 0xca, 0xe0, 0xac, 0xce, - 0x31, 0xc5, 0x1b, 0x29, 0xc5, 0x1b, 0x07, 0x09, 0x80, 0x66, 0x50, 0xf3, 0xff, 0x45, 0xa8, 0x7c, - 0x60, 0x32, 0x6e, 0xec, 0x7d, 0x58, 0x65, 0x71, 0x65, 0x92, 0x10, 0xf7, 0x73, 0xa9, 0xe7, 0xeb, - 0xd6, 0x2d, 0xd0, 0xd4, 0x83, 0xbc, 0x82, 0x95, 0xb8, 0x00, 0xc9, 0xb1, 0xef, 0xe5, 0x7c, 0x73, - 0x15, 0xec, 0x16, 0x68, 0x82, 0x27, 0x2f, 0x60, 0x39, 0x54, 0x87, 0x49, 0xf8, 0x77, 0x37, 0xef, - 0x38, 0x73, 0x50, 0x45, 0x2c, 0x8d, 0x56, 0x97, 0x9a, 0x69, 0x8c, 0xf9, 0xbf, 0x22, 0x18, 0x2d, - 0x21, 0xd8, 0x44, 0x1f, 0xe4, 0x21, 0x94, 0x35, 0xa1, 0x8b, 0x8b, 0xc5, 0x46, 0x03, 0xc8, 0x0e, - 0xac, 0x8d, 0x99, 0x60, 0x9e, 0x87, 0x1e, 0x0f, 0x47, 0x3a, 0xf3, 0x2a, 0xbd, 0xbc, 0x45, 0x7e, - 0x0d, 0xd5, 0x11, 0xf7, 0xad, 0x30, 0xb2, 0x6d, 0x0c, 0x43, 0x0c, 0x75, 0x92, 0xd5, 0x6e, 0x81, - 0xae, 0x8f, 0xb8, 0x7f, 0x9a, 0xee, 0x92, 0x27, 0xb0, 0x75, 0x09, 0x66, 0xe9, 0xea, 0x6a, 0x7d, - 0x28, 0x75, 0x0b, 0x74, 0x73, 0x0a, 0xa5, 0xca, 0xd0, 0x26, 0xaa, 0xad, 0x63, 0xa4, 0x2d, 0x54, - 0x3b, 0x70, 0x66, 0xfe, 0x50, 0x84, 0x75, 0x95, 0xd9, 0x11, 0x4a, 0xe6, 0x30, 0xc9, 0x08, 0x81, - 0xb2, 0xee, 0x82, 0xb8, 0xbb, 0xf4, 0xb3, 0xd2, 0x0c, 0xc9, 0x47, 0x18, 0x44, 0x32, 0x11, 0x9f, - 0x6f, 0x5c, 0x72, 0x8a, 0x24, 0x7b, 0xb0, 0x2a, 0x50, 0x0a, 0x8e, 0x61, 0x7d, 0x59, 0x3b, 0xdd, - 0xc9, 0x15, 0x84, 0xa2, 0x14, 0x93, 0x53, 0x29, 0x98, 0xc4, 0xe1, 0x84, 0xa6, 0x60, 0xf2, 0x1b, - 0xa8, 0xea, 0x39, 0x25, 0xa2, 0xb1, 0xe4, 0x03, 0x0f, 0xeb, 0x2b, 0x3b, 0xc5, 0xdd, 0x8a, 0x22, - 0xe9, 0xcc, 0x76, 0xfb, 0x17, 0x70, 0x63, 0x66, 0xc3, 0xba, 0x60, 0x5e, 0xa4, 0x78, 0xb6, 0xdc, - 0xf2, 0x38, 0x0b, 0x49, 0x0d, 0x96, 0x2e, 0x98, 0x48, 0xce, 0xa1, 0x1e, 0xc9, 0x36, 0x2c, 0x33, - 0x65, 0xd2, 0x05, 0x37, 0x68, 0xbc, 0x30, 0xff, 0x5d, 0x86, 0xb2, 0xbe, 0xbe, 0x0d, 0x28, 0x65, - 0xac, 0x2a, 0x71, 0x87, 0xbc, 0x84, 0xca, 0x28, 0xa9, 0x4a, 0xd2, 0x5c, 0xb7, 0xe7, 0x5c, 0x69, - 0x5a, 0x38, 0x9a, 0x81, 0x49, 0x03, 0x56, 0xb8, 0x3f, 0x8e, 0xa4, 0xba, 0xb5, 0x79, 0xc3, 0xa0, - 0xcd, 0x7d, 0x87, 0xfb, 0x43, 0x9a, 0xa0, 0xc8, 0x63, 0xd8, 0x8a, 0xc6, 0xa1, 0x14, 0xc8, 0x46, - 0x7a, 0x22, 0x58, 0xdc, 0x09, 0xeb, 0xe5, 0x9d, 0xa5, 0x5d, 0x83, 0x6e, 0xa6, 0x06, 0xf5, 0xaa, - 0x9e, 0x13, 0x92, 0x7d, 0xd8, 0x48, 0x48, 0xab, 0xb3, 0xd7, 0xc5, 0x5d, 0x9a, 0x33, 0x0e, 0x74, - 0x0d, 0x68, 0x35, 0xc6, 0xb6, 0x62, 0x28, 0xd9, 0x03, 0x43, 0x4d, 0xf1, 0x78, 0xec, 0xac, 0xe8, - 0x23, 0xfd, 0x6a, 0x81, 0xf2, 0xaa, 0xd1, 0x23, 0x53, 0xc5, 0x6f, 0x43, 0x35, 0xd3, 0x42, 0xed, - 0xbb, 0x3a, 0xb7, 0x1c, 0x97, 0x75, 0x58, 0xb5, 0xea, 0x97, 0xcb, 0xba, 0xfc, 0x06, 0xd6, 0x06, - 0x7a, 0x0a, 0xc5, 0x11, 0x2a, 0x73, 0xe5, 0x74, 0x3a, 0xa7, 0xba, 0x05, 0x0a, 0x83, 0xe9, 0xd4, - 0xda, 0x03, 0x63, 0xc8, 0x64, 0x32, 0x30, 0x8d, 0xb9, 0x99, 0xa7, 0x7a, 0xa2, 0x32, 0x1f, 0xa6, - 0xda, 0xf2, 0x3b, 0x00, 0xa6, 0xf8, 0x19, 0x3b, 0x82, 0x76, 0xac, 0xe7, 0x4b, 0x95, 0x12, 0xb8, - 0x5b, 0xa0, 0x06, 0x4b, 0x17, 0xed, 0x0a, 0xac, 0x48, 0x26, 0x86, 0x28, 0xcd, 0x9f, 0x4a, 0x50, - 0x4b, 0xcf, 0x96, 0xf1, 0xe4, 0x08, 0xc8, 0xe7, 0x88, 0x79, 0x5c, 0x4e, 0xac, 0xc0, 0xb5, 0x42, - 0x14, 0x17, 0xdc, 0x5e, 0x24, 0x60, 0x9f, 0x62, 0xe0, 0x89, 0x7b, 0x1a, 0xc3, 0x68, 0xed, 0x73, - 0x6e, 0x87, 0x1c, 0x03, 0x04, 0xbe, 0xe5, 0x32, 0xee, 0x45, 0x22, 0x96, 0xf0, 0x8d, 0x67, 0xcd, - 0x05, 0xf5, 0x4d, 0x73, 0x68, 0x9c, 0xf8, 0xef, 0x63, 0x87, 0x8f, 0x81, 0xc7, 0xed, 0x09, 0x35, - 0x82, 0x74, 0x83, 0xfc, 0x1e, 0xca, 0x92, 0x0d, 0xd3, 0x0e, 0x7c, 0x74, 0x5d, 0xa4, 0x3e, 0x1b, - 0x86, 0x1d, 0x5f, 0x8a, 0x09, 0xd5, 0x6e, 0xb7, 0x5e, 0x82, 0x91, 0x6d, 0x29, 0x26, 0x9d, 0xe3, - 0x24, 0x65, 0xd2, 0x39, 0x4e, 0x14, 0x93, 0x34, 0xdb, 0x52, 0x26, 0xe9, 0xc5, 0xeb, 0xd2, 0xab, - 0xa2, 0xf9, 0x09, 0x36, 0x73, 0x59, 0x91, 0x6d, 0xa8, 0xbd, 0x6f, 0xf5, 0x0e, 0xad, 0xde, 0xd1, - 0x51, 0xe7, 0xa0, 0xd7, 0xea, 0x77, 0x0e, 0xff, 0x5a, 0x2b, 0x90, 0x5d, 0x78, 0xa0, 0x77, 0x5b, - 0xef, 0xfb, 0x1d, 0x6a, 0x75, 0xfe, 0xd2, 0x79, 0xf7, 0xc7, 0x7e, 0xab, 0x7d, 0xd8, 0xb1, 0x8e, - 0x4f, 0x0e, 0x3a, 0xa7, 0xd6, 0xbb, 0x93, 0xa3, 0x8f, 0x87, 0x9d, 0x7e, 0xa7, 0x56, 0x34, 0xff, - 0x00, 0xf5, 0x7c, 0xbe, 0x07, 0xf1, 0xa7, 0x4d, 0x48, 0x1e, 0xe4, 0xc5, 0x42, 0x25, 0x59, 0xc9, - 0x49, 0x85, 0xf9, 0x9f, 0xa5, 0xe9, 0x05, 0xf6, 0x71, 0x34, 0xf6, 0x98, 0x44, 0xf2, 0x28, 0xa3, - 0xfb, 0xb7, 0xc6, 0xba, 0x56, 0x82, 0xfd, 0x2b, 0x4a, 0x70, 0xff, 0x9a, 0x82, 0x5e, 0x52, 0x83, - 0x7d, 0x30, 0xb2, 0xef, 0xee, 0x05, 0xb3, 0x46, 0x0d, 0x65, 0xa7, 0x97, 0x82, 0xe8, 0x14, 0x4f, - 0x1e, 0xc1, 0xb2, 0xea, 0xdc, 0x58, 0x0e, 0x16, 0xcc, 0x94, 0x18, 0x41, 0x9e, 0xc2, 0x6a, 0xcc, - 0xf6, 0x54, 0x12, 0x16, 0xc9, 0x4e, 0x0a, 0x23, 0x7b, 0xb0, 0x9e, 0x34, 0xdc, 0x65, 0x45, 0x98, - 0xfb, 0x8e, 0xb5, 0x04, 0xa8, 0x49, 0xd5, 0x87, 0xad, 0xf4, 0x74, 0x56, 0xf2, 0x91, 0x19, 0x26, - 0x92, 0xf0, 0xf0, 0x9a, 0xba, 0xa4, 0x17, 0x47, 0x6b, 0xa3, 0xdc, 0x8e, 0xf9, 0xaf, 0x22, 0x6c, - 0x5d, 0xf9, 0xee, 0x53, 0xc4, 0x17, 0x18, 0x06, 0x91, 0xb0, 0x31, 0x4c, 0x2e, 0xab, 0x7e, 0x65, - 0x8e, 0x24, 0x76, 0x3a, 0x85, 0x92, 0x13, 0x20, 0xf8, 0x55, 0xa2, 0xef, 0xa0, 0x63, 0x4d, 0x03, - 0xcc, 0xff, 0xda, 0xec, 0x24, 0xc0, 0x69, 0xa0, 0x2d, 0xcc, 0x6f, 0xb5, 0xdf, 0xfc, 0xed, 0xf5, - 0x90, 0xcb, 0xb3, 0x68, 0xd0, 0xb0, 0x83, 0x51, 0x53, 0x07, 0x08, 0xc4, 0x30, 0x7e, 0x68, 0x66, - 0xff, 0x3c, 0x43, 0xf4, 0x9b, 0xe3, 0xc1, 0x6f, 0x87, 0x41, 0x73, 0xe6, 0x37, 0x68, 0xb0, 0xa2, - 0x07, 0xe5, 0xf3, 0x9f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x84, 0xd9, 0xfd, 0xdc, 0x1c, 0x0e, 0x00, - 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json deleted file mode 100644 index fe64388e3d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/workflow.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go deleted file mode 100644 index b52b6d4608..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.pb.go +++ /dev/null @@ -1,97 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/core/workflow_closure.proto - -package core - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines an enclosed package of workflow and tasks it references. -type WorkflowClosure struct { - //required. Workflow template. - Workflow *WorkflowTemplate `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"` - //optional. A collection of tasks referenced by the workflow. Only needed if the workflow - // references tasks. - Tasks []*TaskTemplate `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowClosure) Reset() { *m = WorkflowClosure{} } -func (m *WorkflowClosure) String() string { return proto.CompactTextString(m) } -func (*WorkflowClosure) ProtoMessage() {} -func (*WorkflowClosure) Descriptor() ([]byte, []int) { - return fileDescriptor_76071051330050c4, []int{0} -} - -func (m *WorkflowClosure) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowClosure.Unmarshal(m, b) -} -func (m *WorkflowClosure) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowClosure.Marshal(b, m, deterministic) -} -func (m *WorkflowClosure) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowClosure.Merge(m, src) -} -func (m *WorkflowClosure) XXX_Size() int { - return xxx_messageInfo_WorkflowClosure.Size(m) -} -func (m *WorkflowClosure) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowClosure.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowClosure proto.InternalMessageInfo - -func (m *WorkflowClosure) GetWorkflow() *WorkflowTemplate { - if m != nil { - return m.Workflow - } - return nil -} - -func (m *WorkflowClosure) GetTasks() []*TaskTemplate { - if m != nil { - return m.Tasks - } - return nil -} - -func init() { - proto.RegisterType((*WorkflowClosure)(nil), "flyteidl.core.WorkflowClosure") -} - -func init() { - proto.RegisterFile("flyteidl/core/workflow_closure.proto", fileDescriptor_76071051330050c4) -} - -var fileDescriptor_76071051330050c4 = []byte{ - // 196 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x49, 0xcb, 0xa9, 0x2c, - 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x4f, 0xce, 0x2f, 0x4a, 0xd5, 0x2f, 0xcf, 0x2f, 0xca, 0x4e, 0xcb, - 0xc9, 0x2f, 0x8f, 0x4f, 0xce, 0xc9, 0x2f, 0x2e, 0x2d, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, - 0x17, 0xe2, 0x85, 0xa9, 0xd2, 0x03, 0xa9, 0x92, 0x92, 0xc1, 0xae, 0x09, 0xa2, 0x58, 0x4a, 0x12, - 0x55, 0xb6, 0x24, 0xb1, 0x38, 0xbb, 0x18, 0x22, 0xa5, 0xd4, 0xc8, 0xc8, 0xc5, 0x1f, 0x0e, 0x55, - 0xed, 0x0c, 0xb1, 0x41, 0xc8, 0x9a, 0x8b, 0x03, 0x66, 0x80, 0x04, 0xa3, 0x02, 0xa3, 0x06, 0xb7, - 0x91, 0xbc, 0x1e, 0x8a, 0x75, 0x7a, 0x30, 0x1d, 0x21, 0xa9, 0xb9, 0x05, 0x39, 0x89, 0x25, 0xa9, - 0x41, 0x70, 0x0d, 0x42, 0x86, 0x5c, 0xac, 0x60, 0xf3, 0x25, 0x98, 0x14, 0x98, 0x35, 0xb8, 0x8d, - 0xa4, 0xd1, 0x74, 0x86, 0x24, 0x16, 0x67, 0xc3, 0x75, 0x41, 0x54, 0x3a, 0xd9, 0x44, 0x59, 0xa5, - 0x67, 0x96, 0x64, 0x94, 0x26, 0xe9, 0x25, 0xe7, 0xe7, 0xea, 0x83, 0xd5, 0xe7, 0x17, 0xa5, 0x43, - 0x18, 0xfa, 0x70, 0xa7, 0xa7, 0xa7, 0xe6, 0xe9, 0x17, 0x24, 0xe9, 0xa6, 0xe7, 0xeb, 0xa3, 0xf8, - 0x26, 0x89, 0x0d, 0xec, 0x11, 0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x02, 0xc9, 0xbd, 0x17, - 0x38, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json b/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json deleted file mode 100644 index a3531fed5a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/core/workflow_closure.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/core/workflow_closure.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go deleted file mode 100644 index 1095091b5c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalog.pb.go +++ /dev/null @@ -1,2819 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/datacatalog/datacatalog.proto - -package datacatalog - -import ( - context "context" - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// as use-cases come up we can add more operators, ex: gte, like, not eq etc. -type SinglePropertyFilter_ComparisonOperator int32 - -const ( - SinglePropertyFilter_EQUALS SinglePropertyFilter_ComparisonOperator = 0 -) - -var SinglePropertyFilter_ComparisonOperator_name = map[int32]string{ - 0: "EQUALS", -} - -var SinglePropertyFilter_ComparisonOperator_value = map[string]int32{ - "EQUALS": 0, -} - -func (x SinglePropertyFilter_ComparisonOperator) String() string { - return proto.EnumName(SinglePropertyFilter_ComparisonOperator_name, int32(x)) -} - -func (SinglePropertyFilter_ComparisonOperator) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{30, 0} -} - -type PaginationOptions_SortOrder int32 - -const ( - PaginationOptions_DESCENDING PaginationOptions_SortOrder = 0 - PaginationOptions_ASCENDING PaginationOptions_SortOrder = 1 -) - -var PaginationOptions_SortOrder_name = map[int32]string{ - 0: "DESCENDING", - 1: "ASCENDING", -} - -var PaginationOptions_SortOrder_value = map[string]int32{ - "DESCENDING": 0, - "ASCENDING": 1, -} - -func (x PaginationOptions_SortOrder) String() string { - return proto.EnumName(PaginationOptions_SortOrder_name, int32(x)) -} - -func (PaginationOptions_SortOrder) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{36, 0} -} - -type PaginationOptions_SortKey int32 - -const ( - PaginationOptions_CREATION_TIME PaginationOptions_SortKey = 0 -) - -var PaginationOptions_SortKey_name = map[int32]string{ - 0: "CREATION_TIME", -} - -var PaginationOptions_SortKey_value = map[string]int32{ - "CREATION_TIME": 0, -} - -func (x PaginationOptions_SortKey) String() string { - return proto.EnumName(PaginationOptions_SortKey_name, int32(x)) -} - -func (PaginationOptions_SortKey) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{36, 1} -} - -// -// Request message for creating a Dataset. -type CreateDatasetRequest struct { - Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDatasetRequest) Reset() { *m = CreateDatasetRequest{} } -func (m *CreateDatasetRequest) String() string { return proto.CompactTextString(m) } -func (*CreateDatasetRequest) ProtoMessage() {} -func (*CreateDatasetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{0} -} - -func (m *CreateDatasetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDatasetRequest.Unmarshal(m, b) -} -func (m *CreateDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDatasetRequest.Marshal(b, m, deterministic) -} -func (m *CreateDatasetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDatasetRequest.Merge(m, src) -} -func (m *CreateDatasetRequest) XXX_Size() int { - return xxx_messageInfo_CreateDatasetRequest.Size(m) -} -func (m *CreateDatasetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDatasetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDatasetRequest proto.InternalMessageInfo - -func (m *CreateDatasetRequest) GetDataset() *Dataset { - if m != nil { - return m.Dataset - } - return nil -} - -// -// Response message for creating a Dataset -type CreateDatasetResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDatasetResponse) Reset() { *m = CreateDatasetResponse{} } -func (m *CreateDatasetResponse) String() string { return proto.CompactTextString(m) } -func (*CreateDatasetResponse) ProtoMessage() {} -func (*CreateDatasetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{1} -} - -func (m *CreateDatasetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDatasetResponse.Unmarshal(m, b) -} -func (m *CreateDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDatasetResponse.Marshal(b, m, deterministic) -} -func (m *CreateDatasetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDatasetResponse.Merge(m, src) -} -func (m *CreateDatasetResponse) XXX_Size() int { - return xxx_messageInfo_CreateDatasetResponse.Size(m) -} -func (m *CreateDatasetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDatasetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDatasetResponse proto.InternalMessageInfo - -// -// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier -// which is a combination of several fields. -type GetDatasetRequest struct { - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDatasetRequest) Reset() { *m = GetDatasetRequest{} } -func (m *GetDatasetRequest) String() string { return proto.CompactTextString(m) } -func (*GetDatasetRequest) ProtoMessage() {} -func (*GetDatasetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{2} -} - -func (m *GetDatasetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDatasetRequest.Unmarshal(m, b) -} -func (m *GetDatasetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDatasetRequest.Marshal(b, m, deterministic) -} -func (m *GetDatasetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDatasetRequest.Merge(m, src) -} -func (m *GetDatasetRequest) XXX_Size() int { - return xxx_messageInfo_GetDatasetRequest.Size(m) -} -func (m *GetDatasetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDatasetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDatasetRequest proto.InternalMessageInfo - -func (m *GetDatasetRequest) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -// -// Response message for retrieving a Dataset. The response will include the metadata for the -// Dataset. -type GetDatasetResponse struct { - Dataset *Dataset `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDatasetResponse) Reset() { *m = GetDatasetResponse{} } -func (m *GetDatasetResponse) String() string { return proto.CompactTextString(m) } -func (*GetDatasetResponse) ProtoMessage() {} -func (*GetDatasetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{3} -} - -func (m *GetDatasetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDatasetResponse.Unmarshal(m, b) -} -func (m *GetDatasetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDatasetResponse.Marshal(b, m, deterministic) -} -func (m *GetDatasetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDatasetResponse.Merge(m, src) -} -func (m *GetDatasetResponse) XXX_Size() int { - return xxx_messageInfo_GetDatasetResponse.Size(m) -} -func (m *GetDatasetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDatasetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDatasetResponse proto.InternalMessageInfo - -func (m *GetDatasetResponse) GetDataset() *Dataset { - if m != nil { - return m.Dataset - } - return nil -} - -// -// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that -// can be one of artifact_id or tag. The result returned will include the artifact data and metadata -// associated with the artifact. -type GetArtifactRequest struct { - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Types that are valid to be assigned to QueryHandle: - // *GetArtifactRequest_ArtifactId - // *GetArtifactRequest_TagName - QueryHandle isGetArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetArtifactRequest) Reset() { *m = GetArtifactRequest{} } -func (m *GetArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*GetArtifactRequest) ProtoMessage() {} -func (*GetArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{4} -} - -func (m *GetArtifactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArtifactRequest.Unmarshal(m, b) -} -func (m *GetArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArtifactRequest.Marshal(b, m, deterministic) -} -func (m *GetArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArtifactRequest.Merge(m, src) -} -func (m *GetArtifactRequest) XXX_Size() int { - return xxx_messageInfo_GetArtifactRequest.Size(m) -} -func (m *GetArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetArtifactRequest proto.InternalMessageInfo - -func (m *GetArtifactRequest) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -type isGetArtifactRequest_QueryHandle interface { - isGetArtifactRequest_QueryHandle() -} - -type GetArtifactRequest_ArtifactId struct { - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type GetArtifactRequest_TagName struct { - TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*GetArtifactRequest_ArtifactId) isGetArtifactRequest_QueryHandle() {} - -func (*GetArtifactRequest_TagName) isGetArtifactRequest_QueryHandle() {} - -func (m *GetArtifactRequest) GetQueryHandle() isGetArtifactRequest_QueryHandle { - if m != nil { - return m.QueryHandle - } - return nil -} - -func (m *GetArtifactRequest) GetArtifactId() string { - if x, ok := m.GetQueryHandle().(*GetArtifactRequest_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -func (m *GetArtifactRequest) GetTagName() string { - if x, ok := m.GetQueryHandle().(*GetArtifactRequest_TagName); ok { - return x.TagName - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*GetArtifactRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*GetArtifactRequest_ArtifactId)(nil), - (*GetArtifactRequest_TagName)(nil), - } -} - -// -// Response message for retrieving an Artifact. The result returned will include the artifact data -// and metadata associated with the artifact. -type GetArtifactResponse struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetArtifactResponse) Reset() { *m = GetArtifactResponse{} } -func (m *GetArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*GetArtifactResponse) ProtoMessage() {} -func (*GetArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{5} -} - -func (m *GetArtifactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetArtifactResponse.Unmarshal(m, b) -} -func (m *GetArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetArtifactResponse.Marshal(b, m, deterministic) -} -func (m *GetArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetArtifactResponse.Merge(m, src) -} -func (m *GetArtifactResponse) XXX_Size() int { - return xxx_messageInfo_GetArtifactResponse.Size(m) -} -func (m *GetArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetArtifactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetArtifactResponse proto.InternalMessageInfo - -func (m *GetArtifactResponse) GetArtifact() *Artifact { - if m != nil { - return m.Artifact - } - return nil -} - -// -// Request message for creating an Artifact and its associated artifact Data. -type CreateArtifactRequest struct { - Artifact *Artifact `protobuf:"bytes,1,opt,name=artifact,proto3" json:"artifact,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateArtifactRequest) Reset() { *m = CreateArtifactRequest{} } -func (m *CreateArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*CreateArtifactRequest) ProtoMessage() {} -func (*CreateArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{6} -} - -func (m *CreateArtifactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateArtifactRequest.Unmarshal(m, b) -} -func (m *CreateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateArtifactRequest.Marshal(b, m, deterministic) -} -func (m *CreateArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateArtifactRequest.Merge(m, src) -} -func (m *CreateArtifactRequest) XXX_Size() int { - return xxx_messageInfo_CreateArtifactRequest.Size(m) -} -func (m *CreateArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateArtifactRequest proto.InternalMessageInfo - -func (m *CreateArtifactRequest) GetArtifact() *Artifact { - if m != nil { - return m.Artifact - } - return nil -} - -// -// Response message for creating an Artifact. -type CreateArtifactResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateArtifactResponse) Reset() { *m = CreateArtifactResponse{} } -func (m *CreateArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*CreateArtifactResponse) ProtoMessage() {} -func (*CreateArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{7} -} - -func (m *CreateArtifactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateArtifactResponse.Unmarshal(m, b) -} -func (m *CreateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateArtifactResponse.Marshal(b, m, deterministic) -} -func (m *CreateArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateArtifactResponse.Merge(m, src) -} -func (m *CreateArtifactResponse) XXX_Size() int { - return xxx_messageInfo_CreateArtifactResponse.Size(m) -} -func (m *CreateArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateArtifactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateArtifactResponse proto.InternalMessageInfo - -// -// Request message for tagging an Artifact. -type AddTagRequest struct { - Tag *Tag `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddTagRequest) Reset() { *m = AddTagRequest{} } -func (m *AddTagRequest) String() string { return proto.CompactTextString(m) } -func (*AddTagRequest) ProtoMessage() {} -func (*AddTagRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{8} -} - -func (m *AddTagRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddTagRequest.Unmarshal(m, b) -} -func (m *AddTagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddTagRequest.Marshal(b, m, deterministic) -} -func (m *AddTagRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddTagRequest.Merge(m, src) -} -func (m *AddTagRequest) XXX_Size() int { - return xxx_messageInfo_AddTagRequest.Size(m) -} -func (m *AddTagRequest) XXX_DiscardUnknown() { - xxx_messageInfo_AddTagRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_AddTagRequest proto.InternalMessageInfo - -func (m *AddTagRequest) GetTag() *Tag { - if m != nil { - return m.Tag - } - return nil -} - -// -// Response message for tagging an Artifact. -type AddTagResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *AddTagResponse) Reset() { *m = AddTagResponse{} } -func (m *AddTagResponse) String() string { return proto.CompactTextString(m) } -func (*AddTagResponse) ProtoMessage() {} -func (*AddTagResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{9} -} - -func (m *AddTagResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_AddTagResponse.Unmarshal(m, b) -} -func (m *AddTagResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_AddTagResponse.Marshal(b, m, deterministic) -} -func (m *AddTagResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_AddTagResponse.Merge(m, src) -} -func (m *AddTagResponse) XXX_Size() int { - return xxx_messageInfo_AddTagResponse.Size(m) -} -func (m *AddTagResponse) XXX_DiscardUnknown() { - xxx_messageInfo_AddTagResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_AddTagResponse proto.InternalMessageInfo - -// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. -type ListArtifactsRequest struct { - // Use a datasetID for which you want to retrieve the artifacts - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Apply the filter expression to this query - Filter *FilterExpression `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` - // Pagination options to get a page of artifacts - Pagination *PaginationOptions `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListArtifactsRequest) Reset() { *m = ListArtifactsRequest{} } -func (m *ListArtifactsRequest) String() string { return proto.CompactTextString(m) } -func (*ListArtifactsRequest) ProtoMessage() {} -func (*ListArtifactsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{10} -} - -func (m *ListArtifactsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactsRequest.Unmarshal(m, b) -} -func (m *ListArtifactsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactsRequest.Marshal(b, m, deterministic) -} -func (m *ListArtifactsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactsRequest.Merge(m, src) -} -func (m *ListArtifactsRequest) XXX_Size() int { - return xxx_messageInfo_ListArtifactsRequest.Size(m) -} -func (m *ListArtifactsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListArtifactsRequest proto.InternalMessageInfo - -func (m *ListArtifactsRequest) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -func (m *ListArtifactsRequest) GetFilter() *FilterExpression { - if m != nil { - return m.Filter - } - return nil -} - -func (m *ListArtifactsRequest) GetPagination() *PaginationOptions { - if m != nil { - return m.Pagination - } - return nil -} - -// Response to list artifacts -type ListArtifactsResponse struct { - // The list of artifacts - Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"` - // Token to use to request the next page, pass this into the next requests PaginationOptions - NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListArtifactsResponse) Reset() { *m = ListArtifactsResponse{} } -func (m *ListArtifactsResponse) String() string { return proto.CompactTextString(m) } -func (*ListArtifactsResponse) ProtoMessage() {} -func (*ListArtifactsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{11} -} - -func (m *ListArtifactsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListArtifactsResponse.Unmarshal(m, b) -} -func (m *ListArtifactsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListArtifactsResponse.Marshal(b, m, deterministic) -} -func (m *ListArtifactsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListArtifactsResponse.Merge(m, src) -} -func (m *ListArtifactsResponse) XXX_Size() int { - return xxx_messageInfo_ListArtifactsResponse.Size(m) -} -func (m *ListArtifactsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListArtifactsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListArtifactsResponse proto.InternalMessageInfo - -func (m *ListArtifactsResponse) GetArtifacts() []*Artifact { - if m != nil { - return m.Artifacts - } - return nil -} - -func (m *ListArtifactsResponse) GetNextToken() string { - if m != nil { - return m.NextToken - } - return "" -} - -// List the datasets for the given query -type ListDatasetsRequest struct { - // Apply the filter expression to this query - Filter *FilterExpression `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - // Pagination options to get a page of datasets - Pagination *PaginationOptions `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListDatasetsRequest) Reset() { *m = ListDatasetsRequest{} } -func (m *ListDatasetsRequest) String() string { return proto.CompactTextString(m) } -func (*ListDatasetsRequest) ProtoMessage() {} -func (*ListDatasetsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{12} -} - -func (m *ListDatasetsRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListDatasetsRequest.Unmarshal(m, b) -} -func (m *ListDatasetsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListDatasetsRequest.Marshal(b, m, deterministic) -} -func (m *ListDatasetsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListDatasetsRequest.Merge(m, src) -} -func (m *ListDatasetsRequest) XXX_Size() int { - return xxx_messageInfo_ListDatasetsRequest.Size(m) -} -func (m *ListDatasetsRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ListDatasetsRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ListDatasetsRequest proto.InternalMessageInfo - -func (m *ListDatasetsRequest) GetFilter() *FilterExpression { - if m != nil { - return m.Filter - } - return nil -} - -func (m *ListDatasetsRequest) GetPagination() *PaginationOptions { - if m != nil { - return m.Pagination - } - return nil -} - -// List the datasets response with token for next pagination -type ListDatasetsResponse struct { - // The list of datasets - Datasets []*Dataset `protobuf:"bytes,1,rep,name=datasets,proto3" json:"datasets,omitempty"` - // Token to use to request the next page, pass this into the next requests PaginationOptions - NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ListDatasetsResponse) Reset() { *m = ListDatasetsResponse{} } -func (m *ListDatasetsResponse) String() string { return proto.CompactTextString(m) } -func (*ListDatasetsResponse) ProtoMessage() {} -func (*ListDatasetsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{13} -} - -func (m *ListDatasetsResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ListDatasetsResponse.Unmarshal(m, b) -} -func (m *ListDatasetsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ListDatasetsResponse.Marshal(b, m, deterministic) -} -func (m *ListDatasetsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ListDatasetsResponse.Merge(m, src) -} -func (m *ListDatasetsResponse) XXX_Size() int { - return xxx_messageInfo_ListDatasetsResponse.Size(m) -} -func (m *ListDatasetsResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ListDatasetsResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ListDatasetsResponse proto.InternalMessageInfo - -func (m *ListDatasetsResponse) GetDatasets() []*Dataset { - if m != nil { - return m.Datasets - } - return nil -} - -func (m *ListDatasetsResponse) GetNextToken() string { - if m != nil { - return m.NextToken - } - return "" -} - -// -// Request message for updating an Artifact and overwriting its associated ArtifactData. -type UpdateArtifactRequest struct { - // ID of dataset the artifact is associated with - Dataset *DatasetID `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"` - // Either ID of artifact or name of tag to retrieve existing artifact from - // - // Types that are valid to be assigned to QueryHandle: - // *UpdateArtifactRequest_ArtifactId - // *UpdateArtifactRequest_TagName - QueryHandle isUpdateArtifactRequest_QueryHandle `protobuf_oneof:"query_handle"` - // List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing - // ArtifactData entries will be removed from the underlying blob storage and database. - Data []*ArtifactData `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` - // Update execution metadata(including execution domain, name, node, project data) when overwriting cache - Metadata *Metadata `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateArtifactRequest) Reset() { *m = UpdateArtifactRequest{} } -func (m *UpdateArtifactRequest) String() string { return proto.CompactTextString(m) } -func (*UpdateArtifactRequest) ProtoMessage() {} -func (*UpdateArtifactRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{14} -} - -func (m *UpdateArtifactRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateArtifactRequest.Unmarshal(m, b) -} -func (m *UpdateArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateArtifactRequest.Marshal(b, m, deterministic) -} -func (m *UpdateArtifactRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateArtifactRequest.Merge(m, src) -} -func (m *UpdateArtifactRequest) XXX_Size() int { - return xxx_messageInfo_UpdateArtifactRequest.Size(m) -} -func (m *UpdateArtifactRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateArtifactRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateArtifactRequest proto.InternalMessageInfo - -func (m *UpdateArtifactRequest) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -type isUpdateArtifactRequest_QueryHandle interface { - isUpdateArtifactRequest_QueryHandle() -} - -type UpdateArtifactRequest_ArtifactId struct { - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -type UpdateArtifactRequest_TagName struct { - TagName string `protobuf:"bytes,3,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*UpdateArtifactRequest_ArtifactId) isUpdateArtifactRequest_QueryHandle() {} - -func (*UpdateArtifactRequest_TagName) isUpdateArtifactRequest_QueryHandle() {} - -func (m *UpdateArtifactRequest) GetQueryHandle() isUpdateArtifactRequest_QueryHandle { - if m != nil { - return m.QueryHandle - } - return nil -} - -func (m *UpdateArtifactRequest) GetArtifactId() string { - if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -func (m *UpdateArtifactRequest) GetTagName() string { - if x, ok := m.GetQueryHandle().(*UpdateArtifactRequest_TagName); ok { - return x.TagName - } - return "" -} - -func (m *UpdateArtifactRequest) GetData() []*ArtifactData { - if m != nil { - return m.Data - } - return nil -} - -func (m *UpdateArtifactRequest) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*UpdateArtifactRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*UpdateArtifactRequest_ArtifactId)(nil), - (*UpdateArtifactRequest_TagName)(nil), - } -} - -// -// Response message for updating an Artifact. -type UpdateArtifactResponse struct { - // The unique ID of the artifact updated - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UpdateArtifactResponse) Reset() { *m = UpdateArtifactResponse{} } -func (m *UpdateArtifactResponse) String() string { return proto.CompactTextString(m) } -func (*UpdateArtifactResponse) ProtoMessage() {} -func (*UpdateArtifactResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{15} -} - -func (m *UpdateArtifactResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UpdateArtifactResponse.Unmarshal(m, b) -} -func (m *UpdateArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UpdateArtifactResponse.Marshal(b, m, deterministic) -} -func (m *UpdateArtifactResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateArtifactResponse.Merge(m, src) -} -func (m *UpdateArtifactResponse) XXX_Size() int { - return xxx_messageInfo_UpdateArtifactResponse.Size(m) -} -func (m *UpdateArtifactResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UpdateArtifactResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UpdateArtifactResponse proto.InternalMessageInfo - -func (m *UpdateArtifactResponse) GetArtifactId() string { - if m != nil { - return m.ArtifactId - } - return "" -} - -// -// ReservationID message that is composed of several string fields. -type ReservationID struct { - // The unique ID for the reserved dataset - DatasetId *DatasetID `protobuf:"bytes,1,opt,name=dataset_id,json=datasetId,proto3" json:"dataset_id,omitempty"` - // The specific artifact tag for the reservation - TagName string `protobuf:"bytes,2,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReservationID) Reset() { *m = ReservationID{} } -func (m *ReservationID) String() string { return proto.CompactTextString(m) } -func (*ReservationID) ProtoMessage() {} -func (*ReservationID) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{16} -} - -func (m *ReservationID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReservationID.Unmarshal(m, b) -} -func (m *ReservationID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReservationID.Marshal(b, m, deterministic) -} -func (m *ReservationID) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReservationID.Merge(m, src) -} -func (m *ReservationID) XXX_Size() int { - return xxx_messageInfo_ReservationID.Size(m) -} -func (m *ReservationID) XXX_DiscardUnknown() { - xxx_messageInfo_ReservationID.DiscardUnknown(m) -} - -var xxx_messageInfo_ReservationID proto.InternalMessageInfo - -func (m *ReservationID) GetDatasetId() *DatasetID { - if m != nil { - return m.DatasetId - } - return nil -} - -func (m *ReservationID) GetTagName() string { - if m != nil { - return m.TagName - } - return "" -} - -// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. -type GetOrExtendReservationRequest struct { - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Requested reservation extension heartbeat interval - HeartbeatInterval *duration.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetOrExtendReservationRequest) Reset() { *m = GetOrExtendReservationRequest{} } -func (m *GetOrExtendReservationRequest) String() string { return proto.CompactTextString(m) } -func (*GetOrExtendReservationRequest) ProtoMessage() {} -func (*GetOrExtendReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{17} -} - -func (m *GetOrExtendReservationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetOrExtendReservationRequest.Unmarshal(m, b) -} -func (m *GetOrExtendReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetOrExtendReservationRequest.Marshal(b, m, deterministic) -} -func (m *GetOrExtendReservationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOrExtendReservationRequest.Merge(m, src) -} -func (m *GetOrExtendReservationRequest) XXX_Size() int { - return xxx_messageInfo_GetOrExtendReservationRequest.Size(m) -} -func (m *GetOrExtendReservationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetOrExtendReservationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetOrExtendReservationRequest proto.InternalMessageInfo - -func (m *GetOrExtendReservationRequest) GetReservationId() *ReservationID { - if m != nil { - return m.ReservationId - } - return nil -} - -func (m *GetOrExtendReservationRequest) GetOwnerId() string { - if m != nil { - return m.OwnerId - } - return "" -} - -func (m *GetOrExtendReservationRequest) GetHeartbeatInterval() *duration.Duration { - if m != nil { - return m.HeartbeatInterval - } - return nil -} - -// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. -type Reservation struct { - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - // Recommended heartbeat interval to extend reservation - HeartbeatInterval *duration.Duration `protobuf:"bytes,3,opt,name=heartbeat_interval,json=heartbeatInterval,proto3" json:"heartbeat_interval,omitempty"` - // Expiration timestamp of this reservation - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - // Free-form metadata associated with the artifact - Metadata *Metadata `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Reservation) Reset() { *m = Reservation{} } -func (m *Reservation) String() string { return proto.CompactTextString(m) } -func (*Reservation) ProtoMessage() {} -func (*Reservation) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{18} -} - -func (m *Reservation) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Reservation.Unmarshal(m, b) -} -func (m *Reservation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Reservation.Marshal(b, m, deterministic) -} -func (m *Reservation) XXX_Merge(src proto.Message) { - xxx_messageInfo_Reservation.Merge(m, src) -} -func (m *Reservation) XXX_Size() int { - return xxx_messageInfo_Reservation.Size(m) -} -func (m *Reservation) XXX_DiscardUnknown() { - xxx_messageInfo_Reservation.DiscardUnknown(m) -} - -var xxx_messageInfo_Reservation proto.InternalMessageInfo - -func (m *Reservation) GetReservationId() *ReservationID { - if m != nil { - return m.ReservationId - } - return nil -} - -func (m *Reservation) GetOwnerId() string { - if m != nil { - return m.OwnerId - } - return "" -} - -func (m *Reservation) GetHeartbeatInterval() *duration.Duration { - if m != nil { - return m.HeartbeatInterval - } - return nil -} - -func (m *Reservation) GetExpiresAt() *timestamp.Timestamp { - if m != nil { - return m.ExpiresAt - } - return nil -} - -func (m *Reservation) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -// Response including either a newly minted reservation or the existing reservation -type GetOrExtendReservationResponse struct { - // The reservation to be acquired or extended - Reservation *Reservation `protobuf:"bytes,1,opt,name=reservation,proto3" json:"reservation,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetOrExtendReservationResponse) Reset() { *m = GetOrExtendReservationResponse{} } -func (m *GetOrExtendReservationResponse) String() string { return proto.CompactTextString(m) } -func (*GetOrExtendReservationResponse) ProtoMessage() {} -func (*GetOrExtendReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{19} -} - -func (m *GetOrExtendReservationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetOrExtendReservationResponse.Unmarshal(m, b) -} -func (m *GetOrExtendReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetOrExtendReservationResponse.Marshal(b, m, deterministic) -} -func (m *GetOrExtendReservationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetOrExtendReservationResponse.Merge(m, src) -} -func (m *GetOrExtendReservationResponse) XXX_Size() int { - return xxx_messageInfo_GetOrExtendReservationResponse.Size(m) -} -func (m *GetOrExtendReservationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetOrExtendReservationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetOrExtendReservationResponse proto.InternalMessageInfo - -func (m *GetOrExtendReservationResponse) GetReservation() *Reservation { - if m != nil { - return m.Reservation - } - return nil -} - -// Request to release reservation -type ReleaseReservationRequest struct { - // The unique ID for the reservation - ReservationId *ReservationID `protobuf:"bytes,1,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` - // The unique ID of the owner for the reservation - OwnerId string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReleaseReservationRequest) Reset() { *m = ReleaseReservationRequest{} } -func (m *ReleaseReservationRequest) String() string { return proto.CompactTextString(m) } -func (*ReleaseReservationRequest) ProtoMessage() {} -func (*ReleaseReservationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{20} -} - -func (m *ReleaseReservationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReleaseReservationRequest.Unmarshal(m, b) -} -func (m *ReleaseReservationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReleaseReservationRequest.Marshal(b, m, deterministic) -} -func (m *ReleaseReservationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReleaseReservationRequest.Merge(m, src) -} -func (m *ReleaseReservationRequest) XXX_Size() int { - return xxx_messageInfo_ReleaseReservationRequest.Size(m) -} -func (m *ReleaseReservationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_ReleaseReservationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_ReleaseReservationRequest proto.InternalMessageInfo - -func (m *ReleaseReservationRequest) GetReservationId() *ReservationID { - if m != nil { - return m.ReservationId - } - return nil -} - -func (m *ReleaseReservationRequest) GetOwnerId() string { - if m != nil { - return m.OwnerId - } - return "" -} - -// Response to release reservation -type ReleaseReservationResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReleaseReservationResponse) Reset() { *m = ReleaseReservationResponse{} } -func (m *ReleaseReservationResponse) String() string { return proto.CompactTextString(m) } -func (*ReleaseReservationResponse) ProtoMessage() {} -func (*ReleaseReservationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{21} -} - -func (m *ReleaseReservationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ReleaseReservationResponse.Unmarshal(m, b) -} -func (m *ReleaseReservationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ReleaseReservationResponse.Marshal(b, m, deterministic) -} -func (m *ReleaseReservationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReleaseReservationResponse.Merge(m, src) -} -func (m *ReleaseReservationResponse) XXX_Size() int { - return xxx_messageInfo_ReleaseReservationResponse.Size(m) -} -func (m *ReleaseReservationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_ReleaseReservationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_ReleaseReservationResponse proto.InternalMessageInfo - -// -// Dataset message. It is uniquely identified by DatasetID. -type Dataset struct { - Id *DatasetID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` - PartitionKeys []string `protobuf:"bytes,3,rep,name=partitionKeys,proto3" json:"partitionKeys,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Dataset) Reset() { *m = Dataset{} } -func (m *Dataset) String() string { return proto.CompactTextString(m) } -func (*Dataset) ProtoMessage() {} -func (*Dataset) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{22} -} - -func (m *Dataset) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Dataset.Unmarshal(m, b) -} -func (m *Dataset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Dataset.Marshal(b, m, deterministic) -} -func (m *Dataset) XXX_Merge(src proto.Message) { - xxx_messageInfo_Dataset.Merge(m, src) -} -func (m *Dataset) XXX_Size() int { - return xxx_messageInfo_Dataset.Size(m) -} -func (m *Dataset) XXX_DiscardUnknown() { - xxx_messageInfo_Dataset.DiscardUnknown(m) -} - -var xxx_messageInfo_Dataset proto.InternalMessageInfo - -func (m *Dataset) GetId() *DatasetID { - if m != nil { - return m.Id - } - return nil -} - -func (m *Dataset) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *Dataset) GetPartitionKeys() []string { - if m != nil { - return m.PartitionKeys - } - return nil -} - -// -// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair -type Partition struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Partition) Reset() { *m = Partition{} } -func (m *Partition) String() string { return proto.CompactTextString(m) } -func (*Partition) ProtoMessage() {} -func (*Partition) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{23} -} - -func (m *Partition) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Partition.Unmarshal(m, b) -} -func (m *Partition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Partition.Marshal(b, m, deterministic) -} -func (m *Partition) XXX_Merge(src proto.Message) { - xxx_messageInfo_Partition.Merge(m, src) -} -func (m *Partition) XXX_Size() int { - return xxx_messageInfo_Partition.Size(m) -} -func (m *Partition) XXX_DiscardUnknown() { - xxx_messageInfo_Partition.DiscardUnknown(m) -} - -var xxx_messageInfo_Partition proto.InternalMessageInfo - -func (m *Partition) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *Partition) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// -// DatasetID message that is composed of several string fields. -type DatasetID struct { - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"` - Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` - UUID string `protobuf:"bytes,5,opt,name=UUID,proto3" json:"UUID,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DatasetID) Reset() { *m = DatasetID{} } -func (m *DatasetID) String() string { return proto.CompactTextString(m) } -func (*DatasetID) ProtoMessage() {} -func (*DatasetID) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{24} -} - -func (m *DatasetID) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatasetID.Unmarshal(m, b) -} -func (m *DatasetID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatasetID.Marshal(b, m, deterministic) -} -func (m *DatasetID) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatasetID.Merge(m, src) -} -func (m *DatasetID) XXX_Size() int { - return xxx_messageInfo_DatasetID.Size(m) -} -func (m *DatasetID) XXX_DiscardUnknown() { - xxx_messageInfo_DatasetID.DiscardUnknown(m) -} - -var xxx_messageInfo_DatasetID proto.InternalMessageInfo - -func (m *DatasetID) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *DatasetID) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *DatasetID) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *DatasetID) GetVersion() string { - if m != nil { - return m.Version - } - return "" -} - -func (m *DatasetID) GetUUID() string { - if m != nil { - return m.UUID - } - return "" -} - -// -// Artifact message. It is composed of several string fields. -type Artifact struct { - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Dataset *DatasetID `protobuf:"bytes,2,opt,name=dataset,proto3" json:"dataset,omitempty"` - Data []*ArtifactData `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` - Metadata *Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` - Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` - Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"` - CreatedAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Artifact) Reset() { *m = Artifact{} } -func (m *Artifact) String() string { return proto.CompactTextString(m) } -func (*Artifact) ProtoMessage() {} -func (*Artifact) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{25} -} - -func (m *Artifact) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Artifact.Unmarshal(m, b) -} -func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Artifact.Marshal(b, m, deterministic) -} -func (m *Artifact) XXX_Merge(src proto.Message) { - xxx_messageInfo_Artifact.Merge(m, src) -} -func (m *Artifact) XXX_Size() int { - return xxx_messageInfo_Artifact.Size(m) -} -func (m *Artifact) XXX_DiscardUnknown() { - xxx_messageInfo_Artifact.DiscardUnknown(m) -} - -var xxx_messageInfo_Artifact proto.InternalMessageInfo - -func (m *Artifact) GetId() string { - if m != nil { - return m.Id - } - return "" -} - -func (m *Artifact) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -func (m *Artifact) GetData() []*ArtifactData { - if m != nil { - return m.Data - } - return nil -} - -func (m *Artifact) GetMetadata() *Metadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *Artifact) GetPartitions() []*Partition { - if m != nil { - return m.Partitions - } - return nil -} - -func (m *Artifact) GetTags() []*Tag { - if m != nil { - return m.Tags - } - return nil -} - -func (m *Artifact) GetCreatedAt() *timestamp.Timestamp { - if m != nil { - return m.CreatedAt - } - return nil -} - -// -// ArtifactData that belongs to an artifact -type ArtifactData struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value *core.Literal `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactData) Reset() { *m = ArtifactData{} } -func (m *ArtifactData) String() string { return proto.CompactTextString(m) } -func (*ArtifactData) ProtoMessage() {} -func (*ArtifactData) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{26} -} - -func (m *ArtifactData) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactData.Unmarshal(m, b) -} -func (m *ArtifactData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactData.Marshal(b, m, deterministic) -} -func (m *ArtifactData) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactData.Merge(m, src) -} -func (m *ArtifactData) XXX_Size() int { - return xxx_messageInfo_ArtifactData.Size(m) -} -func (m *ArtifactData) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactData.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactData proto.InternalMessageInfo - -func (m *ArtifactData) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *ArtifactData) GetValue() *core.Literal { - if m != nil { - return m.Value - } - return nil -} - -// -// Tag message that is unique to a Dataset. It is associated to a single artifact and -// can be retrieved by name later. -type Tag struct { - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"` - Dataset *DatasetID `protobuf:"bytes,3,opt,name=dataset,proto3" json:"dataset,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Tag) Reset() { *m = Tag{} } -func (m *Tag) String() string { return proto.CompactTextString(m) } -func (*Tag) ProtoMessage() {} -func (*Tag) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{27} -} - -func (m *Tag) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Tag.Unmarshal(m, b) -} -func (m *Tag) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Tag.Marshal(b, m, deterministic) -} -func (m *Tag) XXX_Merge(src proto.Message) { - xxx_messageInfo_Tag.Merge(m, src) -} -func (m *Tag) XXX_Size() int { - return xxx_messageInfo_Tag.Size(m) -} -func (m *Tag) XXX_DiscardUnknown() { - xxx_messageInfo_Tag.DiscardUnknown(m) -} - -var xxx_messageInfo_Tag proto.InternalMessageInfo - -func (m *Tag) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *Tag) GetArtifactId() string { - if m != nil { - return m.ArtifactId - } - return "" -} - -func (m *Tag) GetDataset() *DatasetID { - if m != nil { - return m.Dataset - } - return nil -} - -// -// Metadata representation for artifacts and datasets -type Metadata struct { - KeyMap map[string]string `protobuf:"bytes,1,rep,name=key_map,json=keyMap,proto3" json:"key_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Metadata) Reset() { *m = Metadata{} } -func (m *Metadata) String() string { return proto.CompactTextString(m) } -func (*Metadata) ProtoMessage() {} -func (*Metadata) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{28} -} - -func (m *Metadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Metadata.Unmarshal(m, b) -} -func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Metadata.Marshal(b, m, deterministic) -} -func (m *Metadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_Metadata.Merge(m, src) -} -func (m *Metadata) XXX_Size() int { - return xxx_messageInfo_Metadata.Size(m) -} -func (m *Metadata) XXX_DiscardUnknown() { - xxx_messageInfo_Metadata.DiscardUnknown(m) -} - -var xxx_messageInfo_Metadata proto.InternalMessageInfo - -func (m *Metadata) GetKeyMap() map[string]string { - if m != nil { - return m.KeyMap - } - return nil -} - -// Filter expression that is composed of a combination of single filters -type FilterExpression struct { - Filters []*SinglePropertyFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *FilterExpression) Reset() { *m = FilterExpression{} } -func (m *FilterExpression) String() string { return proto.CompactTextString(m) } -func (*FilterExpression) ProtoMessage() {} -func (*FilterExpression) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{29} -} - -func (m *FilterExpression) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_FilterExpression.Unmarshal(m, b) -} -func (m *FilterExpression) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_FilterExpression.Marshal(b, m, deterministic) -} -func (m *FilterExpression) XXX_Merge(src proto.Message) { - xxx_messageInfo_FilterExpression.Merge(m, src) -} -func (m *FilterExpression) XXX_Size() int { - return xxx_messageInfo_FilterExpression.Size(m) -} -func (m *FilterExpression) XXX_DiscardUnknown() { - xxx_messageInfo_FilterExpression.DiscardUnknown(m) -} - -var xxx_messageInfo_FilterExpression proto.InternalMessageInfo - -func (m *FilterExpression) GetFilters() []*SinglePropertyFilter { - if m != nil { - return m.Filters - } - return nil -} - -// A single property to filter on. -type SinglePropertyFilter struct { - // Types that are valid to be assigned to PropertyFilter: - // *SinglePropertyFilter_TagFilter - // *SinglePropertyFilter_PartitionFilter - // *SinglePropertyFilter_ArtifactFilter - // *SinglePropertyFilter_DatasetFilter - PropertyFilter isSinglePropertyFilter_PropertyFilter `protobuf_oneof:"property_filter"` - Operator SinglePropertyFilter_ComparisonOperator `protobuf:"varint,10,opt,name=operator,proto3,enum=datacatalog.SinglePropertyFilter_ComparisonOperator" json:"operator,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SinglePropertyFilter) Reset() { *m = SinglePropertyFilter{} } -func (m *SinglePropertyFilter) String() string { return proto.CompactTextString(m) } -func (*SinglePropertyFilter) ProtoMessage() {} -func (*SinglePropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{30} -} - -func (m *SinglePropertyFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SinglePropertyFilter.Unmarshal(m, b) -} -func (m *SinglePropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SinglePropertyFilter.Marshal(b, m, deterministic) -} -func (m *SinglePropertyFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_SinglePropertyFilter.Merge(m, src) -} -func (m *SinglePropertyFilter) XXX_Size() int { - return xxx_messageInfo_SinglePropertyFilter.Size(m) -} -func (m *SinglePropertyFilter) XXX_DiscardUnknown() { - xxx_messageInfo_SinglePropertyFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_SinglePropertyFilter proto.InternalMessageInfo - -type isSinglePropertyFilter_PropertyFilter interface { - isSinglePropertyFilter_PropertyFilter() -} - -type SinglePropertyFilter_TagFilter struct { - TagFilter *TagPropertyFilter `protobuf:"bytes,1,opt,name=tag_filter,json=tagFilter,proto3,oneof"` -} - -type SinglePropertyFilter_PartitionFilter struct { - PartitionFilter *PartitionPropertyFilter `protobuf:"bytes,2,opt,name=partition_filter,json=partitionFilter,proto3,oneof"` -} - -type SinglePropertyFilter_ArtifactFilter struct { - ArtifactFilter *ArtifactPropertyFilter `protobuf:"bytes,3,opt,name=artifact_filter,json=artifactFilter,proto3,oneof"` -} - -type SinglePropertyFilter_DatasetFilter struct { - DatasetFilter *DatasetPropertyFilter `protobuf:"bytes,4,opt,name=dataset_filter,json=datasetFilter,proto3,oneof"` -} - -func (*SinglePropertyFilter_TagFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_PartitionFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_ArtifactFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (*SinglePropertyFilter_DatasetFilter) isSinglePropertyFilter_PropertyFilter() {} - -func (m *SinglePropertyFilter) GetPropertyFilter() isSinglePropertyFilter_PropertyFilter { - if m != nil { - return m.PropertyFilter - } - return nil -} - -func (m *SinglePropertyFilter) GetTagFilter() *TagPropertyFilter { - if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_TagFilter); ok { - return x.TagFilter - } - return nil -} - -func (m *SinglePropertyFilter) GetPartitionFilter() *PartitionPropertyFilter { - if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_PartitionFilter); ok { - return x.PartitionFilter - } - return nil -} - -func (m *SinglePropertyFilter) GetArtifactFilter() *ArtifactPropertyFilter { - if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_ArtifactFilter); ok { - return x.ArtifactFilter - } - return nil -} - -func (m *SinglePropertyFilter) GetDatasetFilter() *DatasetPropertyFilter { - if x, ok := m.GetPropertyFilter().(*SinglePropertyFilter_DatasetFilter); ok { - return x.DatasetFilter - } - return nil -} - -func (m *SinglePropertyFilter) GetOperator() SinglePropertyFilter_ComparisonOperator { - if m != nil { - return m.Operator - } - return SinglePropertyFilter_EQUALS -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*SinglePropertyFilter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*SinglePropertyFilter_TagFilter)(nil), - (*SinglePropertyFilter_PartitionFilter)(nil), - (*SinglePropertyFilter_ArtifactFilter)(nil), - (*SinglePropertyFilter_DatasetFilter)(nil), - } -} - -// Artifact properties we can filter by -type ArtifactPropertyFilter struct { - // oneof because we can add more properties in the future - // - // Types that are valid to be assigned to Property: - // *ArtifactPropertyFilter_ArtifactId - Property isArtifactPropertyFilter_Property `protobuf_oneof:"property"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArtifactPropertyFilter) Reset() { *m = ArtifactPropertyFilter{} } -func (m *ArtifactPropertyFilter) String() string { return proto.CompactTextString(m) } -func (*ArtifactPropertyFilter) ProtoMessage() {} -func (*ArtifactPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{31} -} - -func (m *ArtifactPropertyFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArtifactPropertyFilter.Unmarshal(m, b) -} -func (m *ArtifactPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArtifactPropertyFilter.Marshal(b, m, deterministic) -} -func (m *ArtifactPropertyFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArtifactPropertyFilter.Merge(m, src) -} -func (m *ArtifactPropertyFilter) XXX_Size() int { - return xxx_messageInfo_ArtifactPropertyFilter.Size(m) -} -func (m *ArtifactPropertyFilter) XXX_DiscardUnknown() { - xxx_messageInfo_ArtifactPropertyFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_ArtifactPropertyFilter proto.InternalMessageInfo - -type isArtifactPropertyFilter_Property interface { - isArtifactPropertyFilter_Property() -} - -type ArtifactPropertyFilter_ArtifactId struct { - ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3,oneof"` -} - -func (*ArtifactPropertyFilter_ArtifactId) isArtifactPropertyFilter_Property() {} - -func (m *ArtifactPropertyFilter) GetProperty() isArtifactPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (m *ArtifactPropertyFilter) GetArtifactId() string { - if x, ok := m.GetProperty().(*ArtifactPropertyFilter_ArtifactId); ok { - return x.ArtifactId - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ArtifactPropertyFilter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ArtifactPropertyFilter_ArtifactId)(nil), - } -} - -// Tag properties we can filter by -type TagPropertyFilter struct { - // Types that are valid to be assigned to Property: - // *TagPropertyFilter_TagName - Property isTagPropertyFilter_Property `protobuf_oneof:"property"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TagPropertyFilter) Reset() { *m = TagPropertyFilter{} } -func (m *TagPropertyFilter) String() string { return proto.CompactTextString(m) } -func (*TagPropertyFilter) ProtoMessage() {} -func (*TagPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{32} -} - -func (m *TagPropertyFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TagPropertyFilter.Unmarshal(m, b) -} -func (m *TagPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TagPropertyFilter.Marshal(b, m, deterministic) -} -func (m *TagPropertyFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_TagPropertyFilter.Merge(m, src) -} -func (m *TagPropertyFilter) XXX_Size() int { - return xxx_messageInfo_TagPropertyFilter.Size(m) -} -func (m *TagPropertyFilter) XXX_DiscardUnknown() { - xxx_messageInfo_TagPropertyFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_TagPropertyFilter proto.InternalMessageInfo - -type isTagPropertyFilter_Property interface { - isTagPropertyFilter_Property() -} - -type TagPropertyFilter_TagName struct { - TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3,oneof"` -} - -func (*TagPropertyFilter_TagName) isTagPropertyFilter_Property() {} - -func (m *TagPropertyFilter) GetProperty() isTagPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (m *TagPropertyFilter) GetTagName() string { - if x, ok := m.GetProperty().(*TagPropertyFilter_TagName); ok { - return x.TagName - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TagPropertyFilter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TagPropertyFilter_TagName)(nil), - } -} - -// Partition properties we can filter by -type PartitionPropertyFilter struct { - // Types that are valid to be assigned to Property: - // *PartitionPropertyFilter_KeyVal - Property isPartitionPropertyFilter_Property `protobuf_oneof:"property"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PartitionPropertyFilter) Reset() { *m = PartitionPropertyFilter{} } -func (m *PartitionPropertyFilter) String() string { return proto.CompactTextString(m) } -func (*PartitionPropertyFilter) ProtoMessage() {} -func (*PartitionPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{33} -} - -func (m *PartitionPropertyFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PartitionPropertyFilter.Unmarshal(m, b) -} -func (m *PartitionPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PartitionPropertyFilter.Marshal(b, m, deterministic) -} -func (m *PartitionPropertyFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_PartitionPropertyFilter.Merge(m, src) -} -func (m *PartitionPropertyFilter) XXX_Size() int { - return xxx_messageInfo_PartitionPropertyFilter.Size(m) -} -func (m *PartitionPropertyFilter) XXX_DiscardUnknown() { - xxx_messageInfo_PartitionPropertyFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_PartitionPropertyFilter proto.InternalMessageInfo - -type isPartitionPropertyFilter_Property interface { - isPartitionPropertyFilter_Property() -} - -type PartitionPropertyFilter_KeyVal struct { - KeyVal *KeyValuePair `protobuf:"bytes,1,opt,name=key_val,json=keyVal,proto3,oneof"` -} - -func (*PartitionPropertyFilter_KeyVal) isPartitionPropertyFilter_Property() {} - -func (m *PartitionPropertyFilter) GetProperty() isPartitionPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (m *PartitionPropertyFilter) GetKeyVal() *KeyValuePair { - if x, ok := m.GetProperty().(*PartitionPropertyFilter_KeyVal); ok { - return x.KeyVal - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*PartitionPropertyFilter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*PartitionPropertyFilter_KeyVal)(nil), - } -} - -type KeyValuePair struct { - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *KeyValuePair) Reset() { *m = KeyValuePair{} } -func (m *KeyValuePair) String() string { return proto.CompactTextString(m) } -func (*KeyValuePair) ProtoMessage() {} -func (*KeyValuePair) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{34} -} - -func (m *KeyValuePair) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_KeyValuePair.Unmarshal(m, b) -} -func (m *KeyValuePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_KeyValuePair.Marshal(b, m, deterministic) -} -func (m *KeyValuePair) XXX_Merge(src proto.Message) { - xxx_messageInfo_KeyValuePair.Merge(m, src) -} -func (m *KeyValuePair) XXX_Size() int { - return xxx_messageInfo_KeyValuePair.Size(m) -} -func (m *KeyValuePair) XXX_DiscardUnknown() { - xxx_messageInfo_KeyValuePair.DiscardUnknown(m) -} - -var xxx_messageInfo_KeyValuePair proto.InternalMessageInfo - -func (m *KeyValuePair) GetKey() string { - if m != nil { - return m.Key - } - return "" -} - -func (m *KeyValuePair) GetValue() string { - if m != nil { - return m.Value - } - return "" -} - -// Dataset properties we can filter by -type DatasetPropertyFilter struct { - // Types that are valid to be assigned to Property: - // *DatasetPropertyFilter_Project - // *DatasetPropertyFilter_Name - // *DatasetPropertyFilter_Domain - // *DatasetPropertyFilter_Version - Property isDatasetPropertyFilter_Property `protobuf_oneof:"property"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DatasetPropertyFilter) Reset() { *m = DatasetPropertyFilter{} } -func (m *DatasetPropertyFilter) String() string { return proto.CompactTextString(m) } -func (*DatasetPropertyFilter) ProtoMessage() {} -func (*DatasetPropertyFilter) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{35} -} - -func (m *DatasetPropertyFilter) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DatasetPropertyFilter.Unmarshal(m, b) -} -func (m *DatasetPropertyFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DatasetPropertyFilter.Marshal(b, m, deterministic) -} -func (m *DatasetPropertyFilter) XXX_Merge(src proto.Message) { - xxx_messageInfo_DatasetPropertyFilter.Merge(m, src) -} -func (m *DatasetPropertyFilter) XXX_Size() int { - return xxx_messageInfo_DatasetPropertyFilter.Size(m) -} -func (m *DatasetPropertyFilter) XXX_DiscardUnknown() { - xxx_messageInfo_DatasetPropertyFilter.DiscardUnknown(m) -} - -var xxx_messageInfo_DatasetPropertyFilter proto.InternalMessageInfo - -type isDatasetPropertyFilter_Property interface { - isDatasetPropertyFilter_Property() -} - -type DatasetPropertyFilter_Project struct { - Project string `protobuf:"bytes,1,opt,name=project,proto3,oneof"` -} - -type DatasetPropertyFilter_Name struct { - Name string `protobuf:"bytes,2,opt,name=name,proto3,oneof"` -} - -type DatasetPropertyFilter_Domain struct { - Domain string `protobuf:"bytes,3,opt,name=domain,proto3,oneof"` -} - -type DatasetPropertyFilter_Version struct { - Version string `protobuf:"bytes,4,opt,name=version,proto3,oneof"` -} - -func (*DatasetPropertyFilter_Project) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Name) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Domain) isDatasetPropertyFilter_Property() {} - -func (*DatasetPropertyFilter_Version) isDatasetPropertyFilter_Property() {} - -func (m *DatasetPropertyFilter) GetProperty() isDatasetPropertyFilter_Property { - if m != nil { - return m.Property - } - return nil -} - -func (m *DatasetPropertyFilter) GetProject() string { - if x, ok := m.GetProperty().(*DatasetPropertyFilter_Project); ok { - return x.Project - } - return "" -} - -func (m *DatasetPropertyFilter) GetName() string { - if x, ok := m.GetProperty().(*DatasetPropertyFilter_Name); ok { - return x.Name - } - return "" -} - -func (m *DatasetPropertyFilter) GetDomain() string { - if x, ok := m.GetProperty().(*DatasetPropertyFilter_Domain); ok { - return x.Domain - } - return "" -} - -func (m *DatasetPropertyFilter) GetVersion() string { - if x, ok := m.GetProperty().(*DatasetPropertyFilter_Version); ok { - return x.Version - } - return "" -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*DatasetPropertyFilter) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*DatasetPropertyFilter_Project)(nil), - (*DatasetPropertyFilter_Name)(nil), - (*DatasetPropertyFilter_Domain)(nil), - (*DatasetPropertyFilter_Version)(nil), - } -} - -// Pagination options for making list requests -type PaginationOptions struct { - // the max number of results to return - Limit uint32 `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"` - // the token to pass to fetch the next page - Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` - // the property that we want to sort the results by - SortKey PaginationOptions_SortKey `protobuf:"varint,3,opt,name=sortKey,proto3,enum=datacatalog.PaginationOptions_SortKey" json:"sortKey,omitempty"` - // the sort order of the results - SortOrder PaginationOptions_SortOrder `protobuf:"varint,4,opt,name=sortOrder,proto3,enum=datacatalog.PaginationOptions_SortOrder" json:"sortOrder,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PaginationOptions) Reset() { *m = PaginationOptions{} } -func (m *PaginationOptions) String() string { return proto.CompactTextString(m) } -func (*PaginationOptions) ProtoMessage() {} -func (*PaginationOptions) Descriptor() ([]byte, []int) { - return fileDescriptor_275951237ff4368a, []int{36} -} - -func (m *PaginationOptions) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PaginationOptions.Unmarshal(m, b) -} -func (m *PaginationOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PaginationOptions.Marshal(b, m, deterministic) -} -func (m *PaginationOptions) XXX_Merge(src proto.Message) { - xxx_messageInfo_PaginationOptions.Merge(m, src) -} -func (m *PaginationOptions) XXX_Size() int { - return xxx_messageInfo_PaginationOptions.Size(m) -} -func (m *PaginationOptions) XXX_DiscardUnknown() { - xxx_messageInfo_PaginationOptions.DiscardUnknown(m) -} - -var xxx_messageInfo_PaginationOptions proto.InternalMessageInfo - -func (m *PaginationOptions) GetLimit() uint32 { - if m != nil { - return m.Limit - } - return 0 -} - -func (m *PaginationOptions) GetToken() string { - if m != nil { - return m.Token - } - return "" -} - -func (m *PaginationOptions) GetSortKey() PaginationOptions_SortKey { - if m != nil { - return m.SortKey - } - return PaginationOptions_CREATION_TIME -} - -func (m *PaginationOptions) GetSortOrder() PaginationOptions_SortOrder { - if m != nil { - return m.SortOrder - } - return PaginationOptions_DESCENDING -} - -func init() { - proto.RegisterEnum("datacatalog.SinglePropertyFilter_ComparisonOperator", SinglePropertyFilter_ComparisonOperator_name, SinglePropertyFilter_ComparisonOperator_value) - proto.RegisterEnum("datacatalog.PaginationOptions_SortOrder", PaginationOptions_SortOrder_name, PaginationOptions_SortOrder_value) - proto.RegisterEnum("datacatalog.PaginationOptions_SortKey", PaginationOptions_SortKey_name, PaginationOptions_SortKey_value) - proto.RegisterType((*CreateDatasetRequest)(nil), "datacatalog.CreateDatasetRequest") - proto.RegisterType((*CreateDatasetResponse)(nil), "datacatalog.CreateDatasetResponse") - proto.RegisterType((*GetDatasetRequest)(nil), "datacatalog.GetDatasetRequest") - proto.RegisterType((*GetDatasetResponse)(nil), "datacatalog.GetDatasetResponse") - proto.RegisterType((*GetArtifactRequest)(nil), "datacatalog.GetArtifactRequest") - proto.RegisterType((*GetArtifactResponse)(nil), "datacatalog.GetArtifactResponse") - proto.RegisterType((*CreateArtifactRequest)(nil), "datacatalog.CreateArtifactRequest") - proto.RegisterType((*CreateArtifactResponse)(nil), "datacatalog.CreateArtifactResponse") - proto.RegisterType((*AddTagRequest)(nil), "datacatalog.AddTagRequest") - proto.RegisterType((*AddTagResponse)(nil), "datacatalog.AddTagResponse") - proto.RegisterType((*ListArtifactsRequest)(nil), "datacatalog.ListArtifactsRequest") - proto.RegisterType((*ListArtifactsResponse)(nil), "datacatalog.ListArtifactsResponse") - proto.RegisterType((*ListDatasetsRequest)(nil), "datacatalog.ListDatasetsRequest") - proto.RegisterType((*ListDatasetsResponse)(nil), "datacatalog.ListDatasetsResponse") - proto.RegisterType((*UpdateArtifactRequest)(nil), "datacatalog.UpdateArtifactRequest") - proto.RegisterType((*UpdateArtifactResponse)(nil), "datacatalog.UpdateArtifactResponse") - proto.RegisterType((*ReservationID)(nil), "datacatalog.ReservationID") - proto.RegisterType((*GetOrExtendReservationRequest)(nil), "datacatalog.GetOrExtendReservationRequest") - proto.RegisterType((*Reservation)(nil), "datacatalog.Reservation") - proto.RegisterType((*GetOrExtendReservationResponse)(nil), "datacatalog.GetOrExtendReservationResponse") - proto.RegisterType((*ReleaseReservationRequest)(nil), "datacatalog.ReleaseReservationRequest") - proto.RegisterType((*ReleaseReservationResponse)(nil), "datacatalog.ReleaseReservationResponse") - proto.RegisterType((*Dataset)(nil), "datacatalog.Dataset") - proto.RegisterType((*Partition)(nil), "datacatalog.Partition") - proto.RegisterType((*DatasetID)(nil), "datacatalog.DatasetID") - proto.RegisterType((*Artifact)(nil), "datacatalog.Artifact") - proto.RegisterType((*ArtifactData)(nil), "datacatalog.ArtifactData") - proto.RegisterType((*Tag)(nil), "datacatalog.Tag") - proto.RegisterType((*Metadata)(nil), "datacatalog.Metadata") - proto.RegisterMapType((map[string]string)(nil), "datacatalog.Metadata.KeyMapEntry") - proto.RegisterType((*FilterExpression)(nil), "datacatalog.FilterExpression") - proto.RegisterType((*SinglePropertyFilter)(nil), "datacatalog.SinglePropertyFilter") - proto.RegisterType((*ArtifactPropertyFilter)(nil), "datacatalog.ArtifactPropertyFilter") - proto.RegisterType((*TagPropertyFilter)(nil), "datacatalog.TagPropertyFilter") - proto.RegisterType((*PartitionPropertyFilter)(nil), "datacatalog.PartitionPropertyFilter") - proto.RegisterType((*KeyValuePair)(nil), "datacatalog.KeyValuePair") - proto.RegisterType((*DatasetPropertyFilter)(nil), "datacatalog.DatasetPropertyFilter") - proto.RegisterType((*PaginationOptions)(nil), "datacatalog.PaginationOptions") -} - -func init() { - proto.RegisterFile("flyteidl/datacatalog/datacatalog.proto", fileDescriptor_275951237ff4368a) -} - -var fileDescriptor_275951237ff4368a = []byte{ - // 1675 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x58, 0x4b, 0x6f, 0xdb, 0xc6, - 0x13, 0x37, 0x25, 0x47, 0x32, 0x47, 0x96, 0x22, 0x6f, 0x6c, 0x47, 0x56, 0x12, 0x5b, 0x61, 0x02, - 0xff, 0x8d, 0xfc, 0x1b, 0x29, 0xb5, 0x93, 0xa0, 0x49, 0x8b, 0xb6, 0xb2, 0xa5, 0xd8, 0xaa, 0xe3, - 0x47, 0xe8, 0x07, 0xd0, 0x07, 0x20, 0xac, 0xcd, 0x35, 0xc3, 0x9a, 0x12, 0x19, 0x72, 0x9d, 0x5a, - 0xa7, 0xa2, 0x97, 0x1e, 0xda, 0xde, 0x0a, 0xf4, 0x0b, 0xf4, 0x83, 0xf4, 0x98, 0x5b, 0xbf, 0x50, - 0x2f, 0xc5, 0x92, 0xbb, 0x14, 0x49, 0x51, 0xb6, 0xe2, 0x43, 0x80, 0x5e, 0x08, 0xee, 0xee, 0xcc, - 0x6f, 0xe7, 0xb1, 0xb3, 0x33, 0xb3, 0xb0, 0x78, 0x62, 0xf6, 0x28, 0x31, 0x34, 0xb3, 0xa6, 0x61, - 0x8a, 0x8f, 0x31, 0xc5, 0xa6, 0xa5, 0x87, 0xff, 0xab, 0xb6, 0x63, 0x51, 0x0b, 0xe5, 0x42, 0x53, - 0xe5, 0xdb, 0x01, 0xd3, 0xb1, 0xe5, 0x90, 0x9a, 0x69, 0x50, 0xe2, 0x60, 0xd3, 0xf5, 0x49, 0xcb, - 0xf3, 0xba, 0x65, 0xe9, 0x26, 0xa9, 0x79, 0xa3, 0xa3, 0xb3, 0x93, 0x9a, 0x76, 0xe6, 0x60, 0x6a, - 0x58, 0x5d, 0xbe, 0xbe, 0x10, 0x5f, 0xa7, 0x46, 0x87, 0xb8, 0x14, 0x77, 0x6c, 0x9f, 0x40, 0x79, - 0x01, 0xd3, 0x6b, 0x0e, 0xc1, 0x94, 0x34, 0x30, 0xc5, 0x2e, 0xa1, 0x2a, 0x79, 0x73, 0x46, 0x5c, - 0x8a, 0xaa, 0x90, 0xd5, 0xfc, 0x99, 0x92, 0x54, 0x91, 0x96, 0x72, 0xcb, 0xd3, 0xd5, 0xb0, 0xa0, - 0x82, 0x5a, 0x10, 0x29, 0x37, 0x61, 0x26, 0x86, 0xe3, 0xda, 0x56, 0xd7, 0x25, 0x4a, 0x13, 0xa6, - 0xd6, 0x09, 0x8d, 0xa1, 0x3f, 0x8a, 0xa3, 0xcf, 0x26, 0xa1, 0xb7, 0x1a, 0x7d, 0xfc, 0x06, 0xa0, - 0x30, 0x8c, 0x0f, 0xfe, 0xde, 0x52, 0xfe, 0x21, 0x79, 0x30, 0x75, 0x87, 0x1a, 0x27, 0xf8, 0xf8, - 0xea, 0xe2, 0xa0, 0xbb, 0x90, 0xc3, 0x1c, 0xa4, 0x6d, 0x68, 0xa5, 0x54, 0x45, 0x5a, 0x92, 0x37, - 0xc6, 0x54, 0x10, 0x93, 0x2d, 0x0d, 0xdd, 0x82, 0x09, 0x8a, 0xf5, 0x76, 0x17, 0x77, 0x48, 0x29, - 0xcd, 0xd7, 0xb3, 0x14, 0xeb, 0xdb, 0xb8, 0x43, 0x56, 0x0b, 0x30, 0xf9, 0xe6, 0x8c, 0x38, 0xbd, - 0xf6, 0x6b, 0xdc, 0xd5, 0x4c, 0xa2, 0x6c, 0xc0, 0x8d, 0x88, 0x5c, 0x5c, 0xbf, 0x8f, 0x61, 0x42, - 0x20, 0x72, 0xc9, 0x66, 0x22, 0x92, 0x05, 0x0c, 0x01, 0x99, 0xf2, 0x95, 0x70, 0x44, 0x5c, 0xc9, - 0x2b, 0x60, 0x95, 0x60, 0x36, 0x8e, 0xc5, 0xbd, 0xba, 0x02, 0xf9, 0xba, 0xa6, 0xed, 0x63, 0x5d, - 0xa0, 0x2b, 0x90, 0xa6, 0x58, 0xe7, 0xc0, 0xc5, 0x08, 0x30, 0xa3, 0x62, 0x8b, 0x4a, 0x11, 0x0a, - 0x82, 0x89, 0xc3, 0xfc, 0x25, 0xc1, 0xf4, 0x4b, 0xc3, 0x0d, 0x14, 0x77, 0xaf, 0xee, 0x91, 0x27, - 0x90, 0x39, 0x31, 0x4c, 0x4a, 0x1c, 0xcf, 0x19, 0xb9, 0xe5, 0x3b, 0x11, 0x86, 0x17, 0xde, 0x52, - 0xf3, 0xdc, 0x76, 0x88, 0xeb, 0x1a, 0x56, 0x57, 0xe5, 0xc4, 0xe8, 0x73, 0x00, 0x1b, 0xeb, 0x46, - 0xd7, 0x0b, 0x1a, 0xcf, 0x4f, 0xb9, 0xe5, 0xf9, 0x08, 0xeb, 0x6e, 0xb0, 0xbc, 0x63, 0xb3, 0xaf, - 0xab, 0x86, 0x38, 0x94, 0x53, 0x98, 0x89, 0x29, 0xc0, 0x5d, 0xb7, 0x02, 0xb2, 0xb0, 0xa3, 0x5b, - 0x92, 0x2a, 0xe9, 0xe1, 0xf6, 0xee, 0xd3, 0xa1, 0x3b, 0x00, 0x5d, 0x72, 0x4e, 0xdb, 0xd4, 0x3a, - 0x25, 0x5d, 0xff, 0x54, 0xa9, 0x32, 0x9b, 0xd9, 0x67, 0x13, 0xca, 0x6f, 0x12, 0xdc, 0x60, 0xbb, - 0x71, 0xf5, 0x03, 0x6b, 0xf5, 0x75, 0x97, 0xae, 0xae, 0x7b, 0xea, 0xbd, 0x75, 0xd7, 0x7d, 0xe7, - 0xf5, 0xa5, 0xe1, 0xaa, 0x3f, 0x82, 0x09, 0xee, 0x15, 0xa1, 0x79, 0x72, 0x58, 0x06, 0x54, 0x97, - 0xe9, 0xfd, 0x8f, 0x04, 0x33, 0x07, 0xb6, 0x96, 0x70, 0xa8, 0x3f, 0x78, 0xe4, 0xa2, 0x87, 0x30, - 0xce, 0xa0, 0x4a, 0xe3, 0x9e, 0x62, 0x73, 0x89, 0x2e, 0x65, 0xdb, 0xaa, 0x1e, 0x19, 0x8b, 0xba, - 0x0e, 0xa1, 0xd8, 0x63, 0xb9, 0x96, 0x10, 0x75, 0x5b, 0x7c, 0x51, 0x0d, 0xc8, 0x06, 0xee, 0x86, - 0x67, 0x30, 0x1b, 0x57, 0x9e, 0x1b, 0x7a, 0x21, 0xaa, 0x8b, 0xe4, 0xd9, 0x2d, 0xa4, 0x89, 0x82, - 0x21, 0xaf, 0x12, 0x97, 0x38, 0x6f, 0x3d, 0x87, 0xb5, 0x1a, 0xe8, 0x09, 0x00, 0x37, 0x84, 0x60, - 0x18, 0x6e, 0x32, 0x99, 0x53, 0xb6, 0x34, 0x34, 0x17, 0xb2, 0x88, 0xef, 0x1d, 0x61, 0x0f, 0xe5, - 0x9d, 0x04, 0x77, 0xd6, 0x09, 0xdd, 0x71, 0x9a, 0xe7, 0x94, 0x74, 0xb5, 0xd0, 0x76, 0xc2, 0x47, - 0x75, 0x28, 0x38, 0xfd, 0xd9, 0xfe, 0xbe, 0xe5, 0xc8, 0xbe, 0x11, 0x39, 0xd5, 0x7c, 0x88, 0xc3, - 0xdf, 0xdf, 0xfa, 0xa1, 0x4b, 0x9c, 0xc0, 0x63, 0x6a, 0xd6, 0x1b, 0xb7, 0x34, 0xb4, 0x01, 0xe8, - 0x35, 0xc1, 0x0e, 0x3d, 0x22, 0x98, 0xb6, 0x8d, 0x2e, 0x65, 0x5c, 0x26, 0x0f, 0xe4, 0xb9, 0xaa, - 0x9f, 0xfe, 0xaa, 0x22, 0xfd, 0x55, 0x1b, 0x3c, 0x3d, 0xaa, 0x53, 0x01, 0x53, 0x8b, 0xf3, 0x28, - 0x7f, 0xa6, 0x20, 0x17, 0x92, 0xe2, 0xbf, 0x22, 0x37, 0x7a, 0x06, 0x40, 0xce, 0x6d, 0xc3, 0x21, - 0x6e, 0x1b, 0xd3, 0xd2, 0x38, 0x97, 0x31, 0x8e, 0xb0, 0x2f, 0x12, 0xbf, 0x2a, 0x73, 0xea, 0x3a, - 0x8d, 0x9c, 0xce, 0xcc, 0x48, 0xa7, 0x53, 0xf9, 0x0e, 0xe6, 0x87, 0xb9, 0x9b, 0x9f, 0xca, 0xe7, - 0x90, 0x0b, 0x59, 0x81, 0x1b, 0xad, 0x34, 0xcc, 0x68, 0x6a, 0x98, 0x58, 0xe9, 0xc1, 0x9c, 0x4a, - 0x4c, 0x82, 0x5d, 0xf2, 0xa1, 0x0f, 0x92, 0x72, 0x1b, 0xca, 0x49, 0x5b, 0xf3, 0x4c, 0xf5, 0x8b, - 0x04, 0x59, 0x1e, 0x1a, 0x68, 0x11, 0x52, 0x97, 0x06, 0x4f, 0xca, 0xd0, 0x22, 0xd6, 0x4d, 0x8d, - 0x64, 0x5d, 0x74, 0x1f, 0xf2, 0x36, 0x8b, 0x5f, 0xb6, 0xf7, 0x26, 0xe9, 0xb9, 0xa5, 0x74, 0x25, - 0xbd, 0x24, 0xab, 0xd1, 0x49, 0x65, 0x05, 0xe4, 0x5d, 0x31, 0x81, 0x8a, 0x90, 0x3e, 0x25, 0x3d, - 0x1e, 0xfc, 0xec, 0x17, 0x4d, 0xc3, 0xb5, 0xb7, 0xd8, 0x3c, 0x13, 0xa1, 0xea, 0x0f, 0x94, 0x1f, - 0x41, 0x0e, 0xc4, 0x43, 0x25, 0xc8, 0xda, 0x8e, 0xf5, 0x3d, 0xe1, 0xb5, 0x80, 0xac, 0x8a, 0x21, - 0x42, 0x30, 0x1e, 0x0a, 0x73, 0xef, 0x1f, 0xcd, 0x42, 0x46, 0xb3, 0x3a, 0xd8, 0xf0, 0x13, 0xa4, - 0xac, 0xf2, 0x11, 0x43, 0x79, 0x4b, 0x1c, 0x96, 0x53, 0xbc, 0x63, 0x27, 0xab, 0x62, 0xc8, 0x50, - 0x0e, 0x0e, 0x5a, 0x0d, 0xef, 0xca, 0x93, 0x55, 0xef, 0x5f, 0x79, 0x97, 0x82, 0x09, 0x71, 0x85, - 0xa1, 0x42, 0x60, 0x43, 0xd9, 0xb3, 0x55, 0xe8, 0x22, 0x4f, 0x8d, 0x76, 0x91, 0x8b, 0x8b, 0x38, - 0xfd, 0xfe, 0x17, 0xf1, 0xf8, 0x68, 0xce, 0x78, 0xca, 0xf2, 0x23, 0x37, 0xb3, 0x5b, 0xba, 0xe6, - 0xed, 0x33, 0x1b, 0xcb, 0x8f, 0x7c, 0x59, 0x0d, 0x51, 0xa2, 0xfb, 0x30, 0x4e, 0xb1, 0xee, 0x96, - 0x32, 0x1e, 0xc7, 0x60, 0x31, 0xe4, 0xad, 0xb2, 0xb0, 0x3d, 0xf6, 0x8a, 0x2b, 0x8d, 0x85, 0x6d, - 0xf6, 0xf2, 0xb0, 0xe5, 0xd4, 0x75, 0xaa, 0xec, 0xc2, 0x64, 0x58, 0xc3, 0xc0, 0x67, 0x52, 0xc8, - 0x67, 0x1f, 0x85, 0x0f, 0x01, 0x93, 0x5b, 0xf4, 0x11, 0x55, 0xd6, 0x47, 0x54, 0x5f, 0xfa, 0x7d, - 0x84, 0x38, 0x1c, 0x26, 0xa4, 0xf7, 0xb1, 0x9e, 0x08, 0xb4, 0x90, 0x90, 0x30, 0x23, 0xe9, 0x32, - 0xe4, 0xba, 0xf4, 0x68, 0xc5, 0xfc, 0x4f, 0x12, 0x4c, 0x08, 0x7b, 0xa3, 0xe7, 0x90, 0x3d, 0x25, - 0xbd, 0x76, 0x07, 0xdb, 0xbc, 0x58, 0xb8, 0x9b, 0xe8, 0x97, 0xea, 0x26, 0xe9, 0x6d, 0x61, 0xbb, - 0xd9, 0xa5, 0x4e, 0x4f, 0xcd, 0x9c, 0x7a, 0x83, 0xf2, 0x33, 0xc8, 0x85, 0xa6, 0x47, 0x0d, 0x85, - 0xe7, 0xa9, 0x4f, 0x24, 0x65, 0x07, 0x8a, 0xf1, 0xc2, 0x08, 0x7d, 0x0a, 0x59, 0xbf, 0x34, 0x72, - 0x13, 0x45, 0xd9, 0x33, 0xba, 0xba, 0x49, 0x76, 0x1d, 0xcb, 0x26, 0x0e, 0xed, 0xf9, 0xdc, 0xaa, - 0xe0, 0x50, 0xfe, 0x4e, 0xc3, 0x74, 0x12, 0x05, 0xfa, 0x02, 0x80, 0x25, 0xcf, 0x48, 0x85, 0x36, - 0x1f, 0x3f, 0x14, 0x51, 0x9e, 0x8d, 0x31, 0x55, 0xa6, 0x58, 0xe7, 0x00, 0xaf, 0xa0, 0x18, 0x9c, - 0xae, 0x76, 0xa4, 0xc8, 0xbd, 0x9f, 0x7c, 0x1a, 0x07, 0xc0, 0xae, 0x07, 0xfc, 0x1c, 0x72, 0x1b, - 0xae, 0x07, 0x4e, 0xe5, 0x88, 0xbe, 0xef, 0xee, 0x25, 0xc6, 0xd1, 0x00, 0x60, 0x41, 0x70, 0x73, - 0xbc, 0x4d, 0x28, 0x88, 0xba, 0x82, 0xc3, 0xf9, 0x31, 0xa6, 0x24, 0x1d, 0x85, 0x01, 0xb4, 0x3c, - 0xe7, 0xe5, 0x60, 0xbb, 0x30, 0xc1, 0x08, 0x30, 0xb5, 0x9c, 0x12, 0x54, 0xa4, 0xa5, 0xc2, 0xf2, - 0xe3, 0x4b, 0xfd, 0x50, 0x5d, 0xb3, 0x3a, 0x36, 0x76, 0x0c, 0x97, 0x95, 0xaa, 0x3e, 0xaf, 0x1a, - 0xa0, 0x28, 0x15, 0x40, 0x83, 0xeb, 0x08, 0x20, 0xd3, 0x7c, 0x75, 0x50, 0x7f, 0xb9, 0x57, 0x1c, - 0x5b, 0x9d, 0x82, 0xeb, 0x36, 0x07, 0xe4, 0x1a, 0x28, 0xeb, 0x30, 0x9b, 0xac, 0x7f, 0xbc, 0x86, - 0x94, 0x06, 0x6b, 0xc8, 0x55, 0x80, 0x09, 0x81, 0xa7, 0x7c, 0x06, 0x53, 0x03, 0x1e, 0x8e, 0x14, - 0x99, 0x52, 0xbc, 0x3d, 0x0c, 0x73, 0x7f, 0x0b, 0x37, 0x87, 0x38, 0x16, 0x3d, 0xf6, 0x43, 0x87, - 0x15, 0x0e, 0x12, 0x2f, 0x1c, 0xc2, 0x76, 0xda, 0x24, 0xbd, 0x43, 0x76, 0xde, 0x77, 0xb1, 0xc1, - 0xac, 0xcc, 0x82, 0xe6, 0x10, 0x9b, 0x11, 0xf0, 0xa7, 0x30, 0x19, 0xa6, 0x1a, 0x39, 0x99, 0xfc, - 0x2a, 0xc1, 0x4c, 0xa2, 0x37, 0x51, 0x39, 0x96, 0x59, 0x98, 0x5a, 0x22, 0xb7, 0x4c, 0x87, 0x73, - 0xcb, 0xc6, 0x18, 0xbf, 0x60, 0x4a, 0xd1, 0xec, 0xc2, 0x24, 0xe5, 0xf9, 0xa5, 0x1c, 0xcb, 0x2f, - 0x0c, 0x8b, 0x4f, 0x44, 0xb4, 0xf8, 0x3d, 0x05, 0x53, 0x03, 0xad, 0x0a, 0x93, 0xdc, 0x34, 0x3a, - 0x86, 0x2f, 0x47, 0x5e, 0xf5, 0x07, 0x6c, 0x36, 0xdc, 0x65, 0xf8, 0x03, 0xf4, 0x25, 0x64, 0x5d, - 0xcb, 0xa1, 0x9b, 0xa4, 0xe7, 0x09, 0x51, 0x58, 0x5e, 0xbc, 0xb8, 0x0f, 0xaa, 0xee, 0xf9, 0xd4, - 0xaa, 0x60, 0x43, 0x2f, 0x40, 0x66, 0xbf, 0x3b, 0x8e, 0xc6, 0x0f, 0x7f, 0x61, 0x79, 0x69, 0x04, - 0x0c, 0x8f, 0x5e, 0xed, 0xb3, 0x2a, 0x0f, 0x40, 0x0e, 0xe6, 0x51, 0x01, 0xa0, 0xd1, 0xdc, 0x5b, - 0x6b, 0x6e, 0x37, 0x5a, 0xdb, 0xeb, 0xc5, 0x31, 0x94, 0x07, 0xb9, 0x1e, 0x0c, 0x25, 0xe5, 0x36, - 0x64, 0xb9, 0x1c, 0x68, 0x0a, 0xf2, 0x6b, 0x6a, 0xb3, 0xbe, 0xdf, 0xda, 0xd9, 0x6e, 0xef, 0xb7, - 0xb6, 0x9a, 0xc5, 0xb1, 0xe5, 0x9f, 0xb3, 0x90, 0x63, 0x3e, 0x5a, 0xf3, 0x05, 0x40, 0x87, 0x90, - 0x8f, 0x3c, 0xd1, 0xa0, 0xe8, 0xed, 0x96, 0xf4, 0x0c, 0x54, 0x56, 0x2e, 0x22, 0xe1, 0xf5, 0xde, - 0x16, 0x40, 0xff, 0x69, 0x06, 0x45, 0x6f, 0xb6, 0x81, 0xa7, 0x9f, 0xf2, 0xc2, 0xd0, 0x75, 0x0e, - 0xf7, 0x35, 0x14, 0xa2, 0x8f, 0x0e, 0x28, 0x49, 0x88, 0x58, 0x23, 0x58, 0xbe, 0x77, 0x21, 0x0d, - 0x87, 0xde, 0x85, 0x5c, 0xe8, 0x95, 0x05, 0x0d, 0x88, 0x12, 0x07, 0xad, 0x0c, 0x27, 0xe0, 0x88, - 0x75, 0xc8, 0xf8, 0x4f, 0x1a, 0x28, 0x5a, 0x84, 0x46, 0x1e, 0x47, 0xca, 0xb7, 0x12, 0xd7, 0x38, - 0xc4, 0x21, 0xe4, 0x23, 0x2f, 0x08, 0x31, 0xb7, 0x24, 0x3d, 0x8f, 0xc4, 0xdc, 0x92, 0xfc, 0x00, - 0xb1, 0x07, 0x93, 0xe1, 0xee, 0x1c, 0x55, 0x06, 0x78, 0x62, 0xcf, 0x08, 0xe5, 0xbb, 0x17, 0x50, - 0xf4, 0x9d, 0x13, 0xed, 0x45, 0x63, 0xce, 0x49, 0xec, 0xd2, 0x63, 0xce, 0x19, 0xd2, 0xcc, 0xbe, - 0x81, 0xd9, 0xe4, 0xc6, 0x02, 0x3d, 0x88, 0xbb, 0x61, 0x78, 0xb3, 0x59, 0xfe, 0xff, 0x48, 0xb4, - 0x7c, 0x4b, 0x02, 0x68, 0xb0, 0xe4, 0x47, 0x8b, 0xb1, 0x76, 0x62, 0x48, 0x3b, 0x52, 0xfe, 0xdf, - 0xa5, 0x74, 0xfe, 0x36, 0xab, 0x6b, 0xdf, 0xd4, 0x75, 0x83, 0xbe, 0x3e, 0x3b, 0xaa, 0x1e, 0x5b, - 0x9d, 0x9a, 0x57, 0x87, 0x59, 0x8e, 0xee, 0xff, 0xd4, 0x82, 0xe7, 0x5d, 0x9d, 0x74, 0x6b, 0xf6, - 0xd1, 0x43, 0xdd, 0xaa, 0x25, 0x3d, 0x13, 0x1f, 0x65, 0xbc, 0x92, 0x70, 0xe5, 0xdf, 0x00, 0x00, - 0x00, 0xff, 0xff, 0x62, 0x68, 0x58, 0x86, 0x45, 0x16, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DataCatalogClient is the client API for DataCatalog service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DataCatalogClient interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) - // Return a paginated list of artifacts - ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) - // Return a paginated list of datasets - ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) -} - -type dataCatalogClient struct { - cc *grpc.ClientConn -} - -func NewDataCatalogClient(cc *grpc.ClientConn) DataCatalogClient { - return &dataCatalogClient{cc} -} - -func (c *dataCatalogClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*CreateDatasetResponse, error) { - out := new(CreateDatasetResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateDataset", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*GetDatasetResponse, error) { - out := new(GetDatasetResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetDataset", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) CreateArtifact(ctx context.Context, in *CreateArtifactRequest, opts ...grpc.CallOption) (*CreateArtifactResponse, error) { - out := new(CreateArtifactResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/CreateArtifact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetArtifact(ctx context.Context, in *GetArtifactRequest, opts ...grpc.CallOption) (*GetArtifactResponse, error) { - out := new(GetArtifactResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetArtifact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) AddTag(ctx context.Context, in *AddTagRequest, opts ...grpc.CallOption) (*AddTagResponse, error) { - out := new(AddTagResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/AddTag", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error) { - out := new(ListArtifactsResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListArtifacts", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { - out := new(ListDatasetsResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ListDatasets", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, in *UpdateArtifactRequest, opts ...grpc.CallOption) (*UpdateArtifactResponse, error) { - out := new(UpdateArtifactResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/UpdateArtifact", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, in *GetOrExtendReservationRequest, opts ...grpc.CallOption) (*GetOrExtendReservationResponse, error) { - out := new(GetOrExtendReservationResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/GetOrExtendReservation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, in *ReleaseReservationRequest, opts ...grpc.CallOption) (*ReleaseReservationResponse, error) { - out := new(ReleaseReservationResponse) - err := c.cc.Invoke(ctx, "/datacatalog.DataCatalog/ReleaseReservation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DataCatalogServer is the server API for DataCatalog service. -type DataCatalogServer interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(context.Context, *CreateDatasetRequest) (*CreateDatasetResponse, error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(context.Context, *GetDatasetRequest) (*GetDatasetResponse, error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(context.Context, *CreateArtifactRequest) (*CreateArtifactResponse, error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(context.Context, *GetArtifactRequest) (*GetArtifactResponse, error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(context.Context, *AddTagRequest) (*AddTagResponse, error) - // Return a paginated list of artifacts - ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error) - // Return a paginated list of datasets - ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(context.Context, *UpdateArtifactRequest) (*UpdateArtifactResponse, error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(context.Context, *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(context.Context, *ReleaseReservationRequest) (*ReleaseReservationResponse, error) -} - -// UnimplementedDataCatalogServer can be embedded to have forward compatible implementations. -type UnimplementedDataCatalogServer struct { -} - -func (*UnimplementedDataCatalogServer) CreateDataset(ctx context.Context, req *CreateDatasetRequest) (*CreateDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") -} -func (*UnimplementedDataCatalogServer) GetDataset(ctx context.Context, req *GetDatasetRequest) (*GetDatasetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") -} -func (*UnimplementedDataCatalogServer) CreateArtifact(ctx context.Context, req *CreateArtifactRequest) (*CreateArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateArtifact not implemented") -} -func (*UnimplementedDataCatalogServer) GetArtifact(ctx context.Context, req *GetArtifactRequest) (*GetArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetArtifact not implemented") -} -func (*UnimplementedDataCatalogServer) AddTag(ctx context.Context, req *AddTagRequest) (*AddTagResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method AddTag not implemented") -} -func (*UnimplementedDataCatalogServer) ListArtifacts(ctx context.Context, req *ListArtifactsRequest) (*ListArtifactsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListArtifacts not implemented") -} -func (*UnimplementedDataCatalogServer) ListDatasets(ctx context.Context, req *ListDatasetsRequest) (*ListDatasetsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") -} -func (*UnimplementedDataCatalogServer) UpdateArtifact(ctx context.Context, req *UpdateArtifactRequest) (*UpdateArtifactResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateArtifact not implemented") -} -func (*UnimplementedDataCatalogServer) GetOrExtendReservation(ctx context.Context, req *GetOrExtendReservationRequest) (*GetOrExtendReservationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrExtendReservation not implemented") -} -func (*UnimplementedDataCatalogServer) ReleaseReservation(ctx context.Context, req *ReleaseReservationRequest) (*ReleaseReservationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ReleaseReservation not implemented") -} - -func RegisterDataCatalogServer(s *grpc.Server, srv DataCatalogServer) { - s.RegisterService(&_DataCatalog_serviceDesc, srv) -} - -func _DataCatalog_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDatasetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).CreateDataset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/CreateDataset", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDatasetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetDataset(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/GetDataset", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetDataset(ctx, req.(*GetDatasetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_CreateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).CreateArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/CreateArtifact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).CreateArtifact(ctx, req.(*CreateArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/GetArtifact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetArtifact(ctx, req.(*GetArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_AddTag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(AddTagRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).AddTag(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/AddTag", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).AddTag(ctx, req.(*AddTagRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ListArtifacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListArtifactsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ListArtifacts(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/ListArtifacts", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ListArtifacts(ctx, req.(*ListArtifactsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ListDatasetsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ListDatasets(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/ListDatasets", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_UpdateArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UpdateArtifactRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).UpdateArtifact(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/UpdateArtifact", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).UpdateArtifact(ctx, req.(*UpdateArtifactRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_GetOrExtendReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetOrExtendReservationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).GetOrExtendReservation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/GetOrExtendReservation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).GetOrExtendReservation(ctx, req.(*GetOrExtendReservationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataCatalog_ReleaseReservation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ReleaseReservationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataCatalogServer).ReleaseReservation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/datacatalog.DataCatalog/ReleaseReservation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataCatalogServer).ReleaseReservation(ctx, req.(*ReleaseReservationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _DataCatalog_serviceDesc = grpc.ServiceDesc{ - ServiceName: "datacatalog.DataCatalog", - HandlerType: (*DataCatalogServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateDataset", - Handler: _DataCatalog_CreateDataset_Handler, - }, - { - MethodName: "GetDataset", - Handler: _DataCatalog_GetDataset_Handler, - }, - { - MethodName: "CreateArtifact", - Handler: _DataCatalog_CreateArtifact_Handler, - }, - { - MethodName: "GetArtifact", - Handler: _DataCatalog_GetArtifact_Handler, - }, - { - MethodName: "AddTag", - Handler: _DataCatalog_AddTag_Handler, - }, - { - MethodName: "ListArtifacts", - Handler: _DataCatalog_ListArtifacts_Handler, - }, - { - MethodName: "ListDatasets", - Handler: _DataCatalog_ListDatasets_Handler, - }, - { - MethodName: "UpdateArtifact", - Handler: _DataCatalog_UpdateArtifact_Handler, - }, - { - MethodName: "GetOrExtendReservation", - Handler: _DataCatalog_GetOrExtendReservation_Handler, - }, - { - MethodName: "ReleaseReservation", - Handler: _DataCatalog_ReleaseReservation_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/datacatalog/datacatalog.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go deleted file mode 100644 index b692594368..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.pb.go +++ /dev/null @@ -1,402 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/event/cloudevents.proto - -package event - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - _ "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional -// information that downstream consumers may find useful. -type CloudEventWorkflowExecution struct { - RawEvent *WorkflowExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - OutputData *core.LiteralMap `protobuf:"bytes,2,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` - OutputInterface *core.TypedInterface `protobuf:"bytes,3,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` - InputData *core.LiteralMap `protobuf:"bytes,4,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"` - // The following are ExecutionMetadata fields - // We can't have the ExecutionMetadata object directly because of import cycle - ArtifactIds []*core.ArtifactID `protobuf:"bytes,5,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - ReferenceExecution *core.WorkflowExecutionIdentifier `protobuf:"bytes,6,opt,name=reference_execution,json=referenceExecution,proto3" json:"reference_execution,omitempty"` - Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` - // The ID of the LP that generated the execution that generated the Artifact. - // Here for provenance information. - // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,8,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventWorkflowExecution) Reset() { *m = CloudEventWorkflowExecution{} } -func (m *CloudEventWorkflowExecution) String() string { return proto.CompactTextString(m) } -func (*CloudEventWorkflowExecution) ProtoMessage() {} -func (*CloudEventWorkflowExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_f8af3ecc827e5d5e, []int{0} -} - -func (m *CloudEventWorkflowExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventWorkflowExecution.Unmarshal(m, b) -} -func (m *CloudEventWorkflowExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventWorkflowExecution.Marshal(b, m, deterministic) -} -func (m *CloudEventWorkflowExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventWorkflowExecution.Merge(m, src) -} -func (m *CloudEventWorkflowExecution) XXX_Size() int { - return xxx_messageInfo_CloudEventWorkflowExecution.Size(m) -} -func (m *CloudEventWorkflowExecution) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventWorkflowExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_CloudEventWorkflowExecution proto.InternalMessageInfo - -func (m *CloudEventWorkflowExecution) GetRawEvent() *WorkflowExecutionEvent { - if m != nil { - return m.RawEvent - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetOutputData() *core.LiteralMap { - if m != nil { - return m.OutputData - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetOutputInterface() *core.TypedInterface { - if m != nil { - return m.OutputInterface - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetInputData() *core.LiteralMap { - if m != nil { - return m.InputData - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetArtifactIds() []*core.ArtifactID { - if m != nil { - return m.ArtifactIds - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetReferenceExecution() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ReferenceExecution - } - return nil -} - -func (m *CloudEventWorkflowExecution) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -func (m *CloudEventWorkflowExecution) GetLaunchPlanId() *core.Identifier { - if m != nil { - return m.LaunchPlanId - } - return nil -} - -type CloudEventNodeExecution struct { - RawEvent *NodeExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - // The relevant task execution if applicable - TaskExecId *core.TaskExecutionIdentifier `protobuf:"bytes,2,opt,name=task_exec_id,json=taskExecId,proto3" json:"task_exec_id,omitempty"` - // Hydrated output - OutputData *core.LiteralMap `protobuf:"bytes,3,opt,name=output_data,json=outputData,proto3" json:"output_data,omitempty"` - // The typed interface for the task that produced the event. - OutputInterface *core.TypedInterface `protobuf:"bytes,4,opt,name=output_interface,json=outputInterface,proto3" json:"output_interface,omitempty"` - InputData *core.LiteralMap `protobuf:"bytes,5,opt,name=input_data,json=inputData,proto3" json:"input_data,omitempty"` - // The following are ExecutionMetadata fields - // We can't have the ExecutionMetadata object directly because of import cycle - ArtifactIds []*core.ArtifactID `protobuf:"bytes,6,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - Principal string `protobuf:"bytes,7,opt,name=principal,proto3" json:"principal,omitempty"` - // The ID of the LP that generated the execution that generated the Artifact. - // Here for provenance information. - // Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - LaunchPlanId *core.Identifier `protobuf:"bytes,8,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventNodeExecution) Reset() { *m = CloudEventNodeExecution{} } -func (m *CloudEventNodeExecution) String() string { return proto.CompactTextString(m) } -func (*CloudEventNodeExecution) ProtoMessage() {} -func (*CloudEventNodeExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_f8af3ecc827e5d5e, []int{1} -} - -func (m *CloudEventNodeExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventNodeExecution.Unmarshal(m, b) -} -func (m *CloudEventNodeExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventNodeExecution.Marshal(b, m, deterministic) -} -func (m *CloudEventNodeExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventNodeExecution.Merge(m, src) -} -func (m *CloudEventNodeExecution) XXX_Size() int { - return xxx_messageInfo_CloudEventNodeExecution.Size(m) -} -func (m *CloudEventNodeExecution) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventNodeExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_CloudEventNodeExecution proto.InternalMessageInfo - -func (m *CloudEventNodeExecution) GetRawEvent() *NodeExecutionEvent { - if m != nil { - return m.RawEvent - } - return nil -} - -func (m *CloudEventNodeExecution) GetTaskExecId() *core.TaskExecutionIdentifier { - if m != nil { - return m.TaskExecId - } - return nil -} - -func (m *CloudEventNodeExecution) GetOutputData() *core.LiteralMap { - if m != nil { - return m.OutputData - } - return nil -} - -func (m *CloudEventNodeExecution) GetOutputInterface() *core.TypedInterface { - if m != nil { - return m.OutputInterface - } - return nil -} - -func (m *CloudEventNodeExecution) GetInputData() *core.LiteralMap { - if m != nil { - return m.InputData - } - return nil -} - -func (m *CloudEventNodeExecution) GetArtifactIds() []*core.ArtifactID { - if m != nil { - return m.ArtifactIds - } - return nil -} - -func (m *CloudEventNodeExecution) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -func (m *CloudEventNodeExecution) GetLaunchPlanId() *core.Identifier { - if m != nil { - return m.LaunchPlanId - } - return nil -} - -type CloudEventTaskExecution struct { - RawEvent *TaskExecutionEvent `protobuf:"bytes,1,opt,name=raw_event,json=rawEvent,proto3" json:"raw_event,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventTaskExecution) Reset() { *m = CloudEventTaskExecution{} } -func (m *CloudEventTaskExecution) String() string { return proto.CompactTextString(m) } -func (*CloudEventTaskExecution) ProtoMessage() {} -func (*CloudEventTaskExecution) Descriptor() ([]byte, []int) { - return fileDescriptor_f8af3ecc827e5d5e, []int{2} -} - -func (m *CloudEventTaskExecution) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventTaskExecution.Unmarshal(m, b) -} -func (m *CloudEventTaskExecution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventTaskExecution.Marshal(b, m, deterministic) -} -func (m *CloudEventTaskExecution) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventTaskExecution.Merge(m, src) -} -func (m *CloudEventTaskExecution) XXX_Size() int { - return xxx_messageInfo_CloudEventTaskExecution.Size(m) -} -func (m *CloudEventTaskExecution) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventTaskExecution.DiscardUnknown(m) -} - -var xxx_messageInfo_CloudEventTaskExecution proto.InternalMessageInfo - -func (m *CloudEventTaskExecution) GetRawEvent() *TaskExecutionEvent { - if m != nil { - return m.RawEvent - } - return nil -} - -// This event is to be sent by Admin after it creates an execution. -type CloudEventExecutionStart struct { - // The execution created. - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - // The launch plan used. - LaunchPlanId *core.Identifier `protobuf:"bytes,2,opt,name=launch_plan_id,json=launchPlanId,proto3" json:"launch_plan_id,omitempty"` - WorkflowId *core.Identifier `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - // Artifact IDs found - ArtifactIds []*core.ArtifactID `protobuf:"bytes,4,rep,name=artifact_ids,json=artifactIds,proto3" json:"artifact_ids,omitempty"` - // Artifact keys found. - ArtifactKeys []string `protobuf:"bytes,5,rep,name=artifact_keys,json=artifactKeys,proto3" json:"artifact_keys,omitempty"` - Principal string `protobuf:"bytes,6,opt,name=principal,proto3" json:"principal,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CloudEventExecutionStart) Reset() { *m = CloudEventExecutionStart{} } -func (m *CloudEventExecutionStart) String() string { return proto.CompactTextString(m) } -func (*CloudEventExecutionStart) ProtoMessage() {} -func (*CloudEventExecutionStart) Descriptor() ([]byte, []int) { - return fileDescriptor_f8af3ecc827e5d5e, []int{3} -} - -func (m *CloudEventExecutionStart) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CloudEventExecutionStart.Unmarshal(m, b) -} -func (m *CloudEventExecutionStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CloudEventExecutionStart.Marshal(b, m, deterministic) -} -func (m *CloudEventExecutionStart) XXX_Merge(src proto.Message) { - xxx_messageInfo_CloudEventExecutionStart.Merge(m, src) -} -func (m *CloudEventExecutionStart) XXX_Size() int { - return xxx_messageInfo_CloudEventExecutionStart.Size(m) -} -func (m *CloudEventExecutionStart) XXX_DiscardUnknown() { - xxx_messageInfo_CloudEventExecutionStart.DiscardUnknown(m) -} - -var xxx_messageInfo_CloudEventExecutionStart proto.InternalMessageInfo - -func (m *CloudEventExecutionStart) GetExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -func (m *CloudEventExecutionStart) GetLaunchPlanId() *core.Identifier { - if m != nil { - return m.LaunchPlanId - } - return nil -} - -func (m *CloudEventExecutionStart) GetWorkflowId() *core.Identifier { - if m != nil { - return m.WorkflowId - } - return nil -} - -func (m *CloudEventExecutionStart) GetArtifactIds() []*core.ArtifactID { - if m != nil { - return m.ArtifactIds - } - return nil -} - -func (m *CloudEventExecutionStart) GetArtifactKeys() []string { - if m != nil { - return m.ArtifactKeys - } - return nil -} - -func (m *CloudEventExecutionStart) GetPrincipal() string { - if m != nil { - return m.Principal - } - return "" -} - -func init() { - proto.RegisterType((*CloudEventWorkflowExecution)(nil), "flyteidl.event.CloudEventWorkflowExecution") - proto.RegisterType((*CloudEventNodeExecution)(nil), "flyteidl.event.CloudEventNodeExecution") - proto.RegisterType((*CloudEventTaskExecution)(nil), "flyteidl.event.CloudEventTaskExecution") - proto.RegisterType((*CloudEventExecutionStart)(nil), "flyteidl.event.CloudEventExecutionStart") -} - -func init() { proto.RegisterFile("flyteidl/event/cloudevents.proto", fileDescriptor_f8af3ecc827e5d5e) } - -var fileDescriptor_f8af3ecc827e5d5e = []byte{ - // 595 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5d, 0x6f, 0xd3, 0x30, - 0x14, 0x55, 0x3f, 0x56, 0x56, 0xb7, 0x0c, 0x14, 0x1e, 0x08, 0x65, 0x83, 0xaa, 0x48, 0x68, 0x42, - 0x22, 0x91, 0xe0, 0x05, 0xf1, 0xa1, 0x09, 0xb6, 0x49, 0x8b, 0x60, 0x08, 0x05, 0x24, 0xa4, 0xf1, - 0x10, 0xb9, 0xf1, 0x4d, 0x66, 0x35, 0x8d, 0x23, 0xc7, 0xa1, 0xf4, 0x91, 0xff, 0xc1, 0xff, 0xe3, - 0x6f, 0xa0, 0x38, 0x89, 0xd3, 0xb8, 0x95, 0x46, 0x35, 0x78, 0x99, 0x3c, 0xdf, 0x73, 0x8e, 0xaf, - 0xcf, 0x3d, 0xa9, 0xd1, 0x38, 0x88, 0x96, 0x02, 0x28, 0x89, 0x6c, 0xf8, 0x0e, 0xb1, 0xb0, 0xfd, - 0x88, 0x65, 0x44, 0x2e, 0x53, 0x2b, 0xe1, 0x4c, 0x30, 0x63, 0xaf, 0x42, 0x58, 0x72, 0x7b, 0x34, - 0xd2, 0x18, 0xf2, 0x6f, 0x81, 0x1d, 0xed, 0xab, 0x9a, 0xcf, 0x38, 0xd8, 0x11, 0x15, 0xc0, 0x71, - 0x54, 0x2a, 0x8d, 0x0e, 0x9a, 0x55, 0x1a, 0x0b, 0xe0, 0x01, 0xf6, 0xa1, 0x2c, 0x3f, 0x6c, 0x96, - 0x31, 0x17, 0x34, 0xc0, 0xbe, 0xf0, 0x28, 0x29, 0x01, 0x0f, 0x34, 0x3e, 0x81, 0x58, 0xd0, 0x80, - 0x02, 0xaf, 0x04, 0x42, 0xc6, 0xc2, 0x08, 0x6c, 0xf9, 0xdf, 0x34, 0x0b, 0x6c, 0x41, 0xe7, 0x90, - 0x0a, 0x3c, 0x4f, 0x0a, 0xc0, 0xe4, 0x57, 0x17, 0xdd, 0x3f, 0xce, 0x2f, 0x78, 0x9a, 0xf7, 0xfc, - 0x95, 0xf1, 0x59, 0x10, 0xb1, 0xc5, 0xe9, 0x0f, 0xf0, 0x33, 0x41, 0x59, 0x6c, 0x1c, 0xa3, 0x3e, - 0xc7, 0x0b, 0x4f, 0xde, 0xc8, 0x6c, 0x8d, 0x5b, 0x87, 0x83, 0x67, 0x8f, 0xad, 0xe6, 0xf5, 0xad, - 0x35, 0x96, 0xd4, 0x72, 0x77, 0x39, 0x5e, 0xc8, 0x95, 0xf1, 0x12, 0x0d, 0x58, 0x26, 0x92, 0x4c, - 0x78, 0x04, 0x0b, 0x6c, 0xb6, 0xa5, 0xcc, 0xbd, 0x5a, 0x26, 0xef, 0xdd, 0xfa, 0x50, 0x38, 0x73, - 0x8e, 0x13, 0x17, 0x15, 0xe8, 0x13, 0x2c, 0xb0, 0x71, 0x86, 0x6e, 0x97, 0x5c, 0x65, 0x8e, 0xd9, - 0x91, 0x02, 0x07, 0x9a, 0xc0, 0x97, 0x65, 0x02, 0xc4, 0xa9, 0x40, 0xee, 0xad, 0x82, 0xa6, 0x36, - 0x8c, 0x17, 0x08, 0xd1, 0x58, 0x35, 0xd1, 0xbd, 0xaa, 0x89, 0xbe, 0x04, 0xcb, 0x1e, 0x5e, 0xa3, - 0xe1, 0x8a, 0xf5, 0xa9, 0xb9, 0x33, 0xee, 0x6c, 0xe0, 0xbe, 0x2d, 0x21, 0xce, 0x89, 0x3b, 0xa8, - 0xe0, 0x0e, 0x49, 0x8d, 0x6f, 0xe8, 0x0e, 0x87, 0x00, 0x38, 0xc4, 0x3e, 0x78, 0x50, 0x79, 0x64, - 0xf6, 0x64, 0x03, 0x4f, 0x34, 0x91, 0x35, 0x2f, 0x1d, 0x35, 0x52, 0xd7, 0x50, 0x32, 0xf5, 0x7c, - 0xf6, 0x51, 0x3f, 0xe1, 0x34, 0xf6, 0x69, 0x82, 0x23, 0xf3, 0xc6, 0xb8, 0x75, 0xd8, 0x77, 0xeb, - 0x0d, 0xe3, 0x08, 0xed, 0x45, 0x38, 0x8b, 0xfd, 0x4b, 0x2f, 0x89, 0x70, 0xec, 0x51, 0x62, 0xee, - 0x6e, 0xbc, 0xf6, 0xca, 0x21, 0xc3, 0x82, 0xf0, 0x29, 0xc2, 0xb1, 0x43, 0x26, 0x3f, 0xbb, 0xe8, - 0x6e, 0x1d, 0x8f, 0x8f, 0x8c, 0xac, 0x1c, 0x7d, 0xb4, 0x1e, 0x8d, 0x89, 0x1e, 0x8d, 0x06, 0x43, - 0x8f, 0xc5, 0x19, 0x1a, 0x0a, 0x9c, 0xce, 0xa4, 0x27, 0x79, 0x6f, 0x6d, 0x3d, 0x5e, 0xc5, 0x58, - 0x71, 0x3a, 0xdb, 0xe4, 0x06, 0x12, 0x65, 0xc1, 0x21, 0x7a, 0xc0, 0x3a, 0xd7, 0x0d, 0x58, 0xf7, - 0x1f, 0x04, 0x6c, 0xe7, 0x1a, 0x01, 0xeb, 0x6d, 0x15, 0xb0, 0xff, 0x9c, 0x81, 0x8b, 0xd5, 0x08, - 0x34, 0xa6, 0xf1, 0x57, 0x11, 0x68, 0x30, 0xb4, 0x08, 0x4c, 0x7e, 0xb7, 0x91, 0x59, 0x8b, 0x2b, - 0xd8, 0x67, 0x81, 0xb9, 0x30, 0xce, 0xd1, 0x50, 0x7d, 0x2e, 0x79, 0xdf, 0xad, 0xad, 0xbf, 0x98, - 0x01, 0xd4, 0x9b, 0x1b, 0x8c, 0x68, 0x6f, 0x65, 0x44, 0x9e, 0xb2, 0x45, 0x79, 0x58, 0xce, 0xee, - 0x5c, 0xc5, 0x46, 0x15, 0xda, 0x21, 0x6b, 0x13, 0xee, 0x6e, 0x35, 0xe1, 0x47, 0xe8, 0xa6, 0x62, - 0xcf, 0x60, 0x59, 0xfc, 0x02, 0xf5, 0x5d, 0x25, 0xf9, 0x1e, 0x96, 0x5a, 0x0c, 0x7a, 0x5a, 0x0c, - 0xde, 0xbd, 0xb9, 0x78, 0x15, 0x52, 0x71, 0x99, 0x4d, 0x2d, 0x9f, 0xcd, 0x6d, 0x79, 0x2c, 0xe3, - 0x61, 0xb1, 0xb0, 0xd5, 0x2b, 0x12, 0x42, 0x6c, 0x27, 0xd3, 0xa7, 0x21, 0xb3, 0x9b, 0x4f, 0xda, - 0xb4, 0x27, 0x9f, 0x8b, 0xe7, 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0x96, 0x62, 0x9e, 0x02, 0x1d, - 0x07, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.swagger.json b/flyteidl/gen/pb-go/flyteidl/event/cloudevents.swagger.json deleted file mode 100644 index c18a52a3ca..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/cloudevents.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/event/cloudevents.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go b/flyteidl/gen/pb-go/flyteidl/event/event.pb.go deleted file mode 100644 index 204d000a99..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/event.pb.go +++ /dev/null @@ -1,1439 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/event/event.proto - -package event - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - _struct "github.com/golang/protobuf/ptypes/struct" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Includes the broad category of machine used for this specific task execution. -type TaskExecutionMetadata_InstanceClass int32 - -const ( - // The default instance class configured for the flyte application platform. - TaskExecutionMetadata_DEFAULT TaskExecutionMetadata_InstanceClass = 0 - // The instance class configured for interruptible tasks. - TaskExecutionMetadata_INTERRUPTIBLE TaskExecutionMetadata_InstanceClass = 1 -) - -var TaskExecutionMetadata_InstanceClass_name = map[int32]string{ - 0: "DEFAULT", - 1: "INTERRUPTIBLE", -} - -var TaskExecutionMetadata_InstanceClass_value = map[string]int32{ - "DEFAULT": 0, - "INTERRUPTIBLE": 1, -} - -func (x TaskExecutionMetadata_InstanceClass) String() string { - return proto.EnumName(TaskExecutionMetadata_InstanceClass_name, int32(x)) -} - -func (TaskExecutionMetadata_InstanceClass) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{11, 0} -} - -type WorkflowExecutionEvent struct { - // Workflow execution id - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - // the id of the originator (Propeller) of the event - ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - Phase core.WorkflowExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the workflow. - OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are valid to be assigned to OutputResult: - // *WorkflowExecutionEvent_OutputUri - // *WorkflowExecutionEvent_Error - // *WorkflowExecutionEvent_OutputData - OutputResult isWorkflowExecutionEvent_OutputResult `protobuf_oneof:"output_result"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowExecutionEvent) Reset() { *m = WorkflowExecutionEvent{} } -func (m *WorkflowExecutionEvent) String() string { return proto.CompactTextString(m) } -func (*WorkflowExecutionEvent) ProtoMessage() {} -func (*WorkflowExecutionEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{0} -} - -func (m *WorkflowExecutionEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowExecutionEvent.Unmarshal(m, b) -} -func (m *WorkflowExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowExecutionEvent.Marshal(b, m, deterministic) -} -func (m *WorkflowExecutionEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowExecutionEvent.Merge(m, src) -} -func (m *WorkflowExecutionEvent) XXX_Size() int { - return xxx_messageInfo_WorkflowExecutionEvent.Size(m) -} -func (m *WorkflowExecutionEvent) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowExecutionEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowExecutionEvent proto.InternalMessageInfo - -func (m *WorkflowExecutionEvent) GetExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -func (m *WorkflowExecutionEvent) GetProducerId() string { - if m != nil { - return m.ProducerId - } - return "" -} - -func (m *WorkflowExecutionEvent) GetPhase() core.WorkflowExecution_Phase { - if m != nil { - return m.Phase - } - return core.WorkflowExecution_UNDEFINED -} - -func (m *WorkflowExecutionEvent) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -type isWorkflowExecutionEvent_OutputResult interface { - isWorkflowExecutionEvent_OutputResult() -} - -type WorkflowExecutionEvent_OutputUri struct { - OutputUri string `protobuf:"bytes,5,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type WorkflowExecutionEvent_Error struct { - Error *core.ExecutionError `protobuf:"bytes,6,opt,name=error,proto3,oneof"` -} - -type WorkflowExecutionEvent_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,7,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*WorkflowExecutionEvent_OutputUri) isWorkflowExecutionEvent_OutputResult() {} - -func (*WorkflowExecutionEvent_Error) isWorkflowExecutionEvent_OutputResult() {} - -func (*WorkflowExecutionEvent_OutputData) isWorkflowExecutionEvent_OutputResult() {} - -func (m *WorkflowExecutionEvent) GetOutputResult() isWorkflowExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (m *WorkflowExecutionEvent) GetOutputUri() string { - if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (m *WorkflowExecutionEvent) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (m *WorkflowExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*WorkflowExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*WorkflowExecutionEvent) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*WorkflowExecutionEvent_OutputUri)(nil), - (*WorkflowExecutionEvent_Error)(nil), - (*WorkflowExecutionEvent_OutputData)(nil), - } -} - -type NodeExecutionEvent struct { - // Unique identifier for this node execution - Id *core.NodeExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // the id of the originator (Propeller) of the event - ProducerId string `protobuf:"bytes,2,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - Phase core.NodeExecution_Phase `protobuf:"varint,3,opt,name=phase,proto3,enum=flyteidl.core.NodeExecution_Phase" json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the node. - OccurredAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are valid to be assigned to InputValue: - // *NodeExecutionEvent_InputUri - // *NodeExecutionEvent_InputData - InputValue isNodeExecutionEvent_InputValue `protobuf_oneof:"input_value"` - // Types that are valid to be assigned to OutputResult: - // *NodeExecutionEvent_OutputUri - // *NodeExecutionEvent_Error - // *NodeExecutionEvent_OutputData - OutputResult isNodeExecutionEvent_OutputResult `protobuf_oneof:"output_result"` - // Additional metadata to do with this event's node target based - // on the node type - // - // Types that are valid to be assigned to TargetMetadata: - // *NodeExecutionEvent_WorkflowNodeMetadata - // *NodeExecutionEvent_TaskNodeMetadata - TargetMetadata isNodeExecutionEvent_TargetMetadata `protobuf_oneof:"target_metadata"` - // [To be deprecated] Specifies which task (if any) launched this node. - ParentTaskMetadata *ParentTaskExecutionMetadata `protobuf:"bytes,9,opt,name=parent_task_metadata,json=parentTaskMetadata,proto3" json:"parent_task_metadata,omitempty"` - // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - ParentNodeMetadata *ParentNodeExecutionMetadata `protobuf:"bytes,10,opt,name=parent_node_metadata,json=parentNodeMetadata,proto3" json:"parent_node_metadata,omitempty"` - // Retry group to indicate grouping of nodes by retries - RetryGroup string `protobuf:"bytes,11,opt,name=retry_group,json=retryGroup,proto3" json:"retry_group,omitempty"` - // Identifier of the node in the original workflow/graph - // This maps to value of WorkflowTemplate.nodes[X].id - SpecNodeId string `protobuf:"bytes,12,opt,name=spec_node_id,json=specNodeId,proto3" json:"spec_node_id,omitempty"` - // Friendly readable name for the node - NodeName string `protobuf:"bytes,13,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - EventVersion int32 `protobuf:"varint,16,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // Whether this node launched a subworkflow. - IsParent bool `protobuf:"varint,17,opt,name=is_parent,json=isParent,proto3" json:"is_parent,omitempty"` - // Whether this node yielded a dynamic workflow. - IsDynamic bool `protobuf:"varint,18,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` - // String location uniquely identifying where the deck HTML file is - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - DeckUri string `protobuf:"bytes,19,opt,name=deck_uri,json=deckUri,proto3" json:"deck_uri,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, - // when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when - // literal inputs are initially copied. The event however will not be sent until after the copy completes. - // Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt *timestamp.Timestamp `protobuf:"bytes,21,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` - // Indicates if this node is an ArrayNode. - IsArray bool `protobuf:"varint,22,opt,name=is_array,json=isArray,proto3" json:"is_array,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *NodeExecutionEvent) Reset() { *m = NodeExecutionEvent{} } -func (m *NodeExecutionEvent) String() string { return proto.CompactTextString(m) } -func (*NodeExecutionEvent) ProtoMessage() {} -func (*NodeExecutionEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{1} -} - -func (m *NodeExecutionEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_NodeExecutionEvent.Unmarshal(m, b) -} -func (m *NodeExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_NodeExecutionEvent.Marshal(b, m, deterministic) -} -func (m *NodeExecutionEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_NodeExecutionEvent.Merge(m, src) -} -func (m *NodeExecutionEvent) XXX_Size() int { - return xxx_messageInfo_NodeExecutionEvent.Size(m) -} -func (m *NodeExecutionEvent) XXX_DiscardUnknown() { - xxx_messageInfo_NodeExecutionEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_NodeExecutionEvent proto.InternalMessageInfo - -func (m *NodeExecutionEvent) GetId() *core.NodeExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *NodeExecutionEvent) GetProducerId() string { - if m != nil { - return m.ProducerId - } - return "" -} - -func (m *NodeExecutionEvent) GetPhase() core.NodeExecution_Phase { - if m != nil { - return m.Phase - } - return core.NodeExecution_UNDEFINED -} - -func (m *NodeExecutionEvent) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -type isNodeExecutionEvent_InputValue interface { - isNodeExecutionEvent_InputValue() -} - -type NodeExecutionEvent_InputUri struct { - InputUri string `protobuf:"bytes,5,opt,name=input_uri,json=inputUri,proto3,oneof"` -} - -type NodeExecutionEvent_InputData struct { - InputData *core.LiteralMap `protobuf:"bytes,20,opt,name=input_data,json=inputData,proto3,oneof"` -} - -func (*NodeExecutionEvent_InputUri) isNodeExecutionEvent_InputValue() {} - -func (*NodeExecutionEvent_InputData) isNodeExecutionEvent_InputValue() {} - -func (m *NodeExecutionEvent) GetInputValue() isNodeExecutionEvent_InputValue { - if m != nil { - return m.InputValue - } - return nil -} - -func (m *NodeExecutionEvent) GetInputUri() string { - if x, ok := m.GetInputValue().(*NodeExecutionEvent_InputUri); ok { - return x.InputUri - } - return "" -} - -func (m *NodeExecutionEvent) GetInputData() *core.LiteralMap { - if x, ok := m.GetInputValue().(*NodeExecutionEvent_InputData); ok { - return x.InputData - } - return nil -} - -type isNodeExecutionEvent_OutputResult interface { - isNodeExecutionEvent_OutputResult() -} - -type NodeExecutionEvent_OutputUri struct { - OutputUri string `protobuf:"bytes,6,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type NodeExecutionEvent_Error struct { - Error *core.ExecutionError `protobuf:"bytes,7,opt,name=error,proto3,oneof"` -} - -type NodeExecutionEvent_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,15,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*NodeExecutionEvent_OutputUri) isNodeExecutionEvent_OutputResult() {} - -func (*NodeExecutionEvent_Error) isNodeExecutionEvent_OutputResult() {} - -func (*NodeExecutionEvent_OutputData) isNodeExecutionEvent_OutputResult() {} - -func (m *NodeExecutionEvent) GetOutputResult() isNodeExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (m *NodeExecutionEvent) GetOutputUri() string { - if x, ok := m.GetOutputResult().(*NodeExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (m *NodeExecutionEvent) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*NodeExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (m *NodeExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*NodeExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -type isNodeExecutionEvent_TargetMetadata interface { - isNodeExecutionEvent_TargetMetadata() -} - -type NodeExecutionEvent_WorkflowNodeMetadata struct { - WorkflowNodeMetadata *WorkflowNodeMetadata `protobuf:"bytes,8,opt,name=workflow_node_metadata,json=workflowNodeMetadata,proto3,oneof"` -} - -type NodeExecutionEvent_TaskNodeMetadata struct { - TaskNodeMetadata *TaskNodeMetadata `protobuf:"bytes,14,opt,name=task_node_metadata,json=taskNodeMetadata,proto3,oneof"` -} - -func (*NodeExecutionEvent_WorkflowNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} - -func (*NodeExecutionEvent_TaskNodeMetadata) isNodeExecutionEvent_TargetMetadata() {} - -func (m *NodeExecutionEvent) GetTargetMetadata() isNodeExecutionEvent_TargetMetadata { - if m != nil { - return m.TargetMetadata - } - return nil -} - -func (m *NodeExecutionEvent) GetWorkflowNodeMetadata() *WorkflowNodeMetadata { - if x, ok := m.GetTargetMetadata().(*NodeExecutionEvent_WorkflowNodeMetadata); ok { - return x.WorkflowNodeMetadata - } - return nil -} - -func (m *NodeExecutionEvent) GetTaskNodeMetadata() *TaskNodeMetadata { - if x, ok := m.GetTargetMetadata().(*NodeExecutionEvent_TaskNodeMetadata); ok { - return x.TaskNodeMetadata - } - return nil -} - -func (m *NodeExecutionEvent) GetParentTaskMetadata() *ParentTaskExecutionMetadata { - if m != nil { - return m.ParentTaskMetadata - } - return nil -} - -func (m *NodeExecutionEvent) GetParentNodeMetadata() *ParentNodeExecutionMetadata { - if m != nil { - return m.ParentNodeMetadata - } - return nil -} - -func (m *NodeExecutionEvent) GetRetryGroup() string { - if m != nil { - return m.RetryGroup - } - return "" -} - -func (m *NodeExecutionEvent) GetSpecNodeId() string { - if m != nil { - return m.SpecNodeId - } - return "" -} - -func (m *NodeExecutionEvent) GetNodeName() string { - if m != nil { - return m.NodeName - } - return "" -} - -func (m *NodeExecutionEvent) GetEventVersion() int32 { - if m != nil { - return m.EventVersion - } - return 0 -} - -func (m *NodeExecutionEvent) GetIsParent() bool { - if m != nil { - return m.IsParent - } - return false -} - -func (m *NodeExecutionEvent) GetIsDynamic() bool { - if m != nil { - return m.IsDynamic - } - return false -} - -func (m *NodeExecutionEvent) GetDeckUri() string { - if m != nil { - return m.DeckUri - } - return "" -} - -func (m *NodeExecutionEvent) GetReportedAt() *timestamp.Timestamp { - if m != nil { - return m.ReportedAt - } - return nil -} - -func (m *NodeExecutionEvent) GetIsArray() bool { - if m != nil { - return m.IsArray - } - return false -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*NodeExecutionEvent) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*NodeExecutionEvent_InputUri)(nil), - (*NodeExecutionEvent_InputData)(nil), - (*NodeExecutionEvent_OutputUri)(nil), - (*NodeExecutionEvent_Error)(nil), - (*NodeExecutionEvent_OutputData)(nil), - (*NodeExecutionEvent_WorkflowNodeMetadata)(nil), - (*NodeExecutionEvent_TaskNodeMetadata)(nil), - } -} - -// For Workflow Nodes we need to send information about the workflow that's launched -type WorkflowNodeMetadata struct { - ExecutionId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=execution_id,json=executionId,proto3" json:"execution_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkflowNodeMetadata) Reset() { *m = WorkflowNodeMetadata{} } -func (m *WorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*WorkflowNodeMetadata) ProtoMessage() {} -func (*WorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{2} -} - -func (m *WorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkflowNodeMetadata.Unmarshal(m, b) -} -func (m *WorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkflowNodeMetadata.Marshal(b, m, deterministic) -} -func (m *WorkflowNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkflowNodeMetadata.Merge(m, src) -} -func (m *WorkflowNodeMetadata) XXX_Size() int { - return xxx_messageInfo_WorkflowNodeMetadata.Size(m) -} -func (m *WorkflowNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_WorkflowNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkflowNodeMetadata proto.InternalMessageInfo - -func (m *WorkflowNodeMetadata) GetExecutionId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.ExecutionId - } - return nil -} - -type TaskNodeMetadata struct { - // Captures the status of caching for this execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,1,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // This structure carries the catalog artifact information - CatalogKey *core.CatalogMetadata `protobuf:"bytes,2,opt,name=catalog_key,json=catalogKey,proto3" json:"catalog_key,omitempty"` - // Captures the status of cache reservations for this execution. - ReservationStatus core.CatalogReservation_Status `protobuf:"varint,3,opt,name=reservation_status,json=reservationStatus,proto3,enum=flyteidl.core.CatalogReservation_Status" json:"reservation_status,omitempty"` - // The latest checkpoint location - CheckpointUri string `protobuf:"bytes,4,opt,name=checkpoint_uri,json=checkpointUri,proto3" json:"checkpoint_uri,omitempty"` - // In the case this task launched a dynamic workflow we capture its structure here. - DynamicWorkflow *DynamicWorkflowNodeMetadata `protobuf:"bytes,16,opt,name=dynamic_workflow,json=dynamicWorkflow,proto3" json:"dynamic_workflow,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskNodeMetadata) Reset() { *m = TaskNodeMetadata{} } -func (m *TaskNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*TaskNodeMetadata) ProtoMessage() {} -func (*TaskNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{3} -} - -func (m *TaskNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskNodeMetadata.Unmarshal(m, b) -} -func (m *TaskNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskNodeMetadata.Marshal(b, m, deterministic) -} -func (m *TaskNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskNodeMetadata.Merge(m, src) -} -func (m *TaskNodeMetadata) XXX_Size() int { - return xxx_messageInfo_TaskNodeMetadata.Size(m) -} -func (m *TaskNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskNodeMetadata proto.InternalMessageInfo - -func (m *TaskNodeMetadata) GetCacheStatus() core.CatalogCacheStatus { - if m != nil { - return m.CacheStatus - } - return core.CatalogCacheStatus_CACHE_DISABLED -} - -func (m *TaskNodeMetadata) GetCatalogKey() *core.CatalogMetadata { - if m != nil { - return m.CatalogKey - } - return nil -} - -func (m *TaskNodeMetadata) GetReservationStatus() core.CatalogReservation_Status { - if m != nil { - return m.ReservationStatus - } - return core.CatalogReservation_RESERVATION_DISABLED -} - -func (m *TaskNodeMetadata) GetCheckpointUri() string { - if m != nil { - return m.CheckpointUri - } - return "" -} - -func (m *TaskNodeMetadata) GetDynamicWorkflow() *DynamicWorkflowNodeMetadata { - if m != nil { - return m.DynamicWorkflow - } - return nil -} - -// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. -type DynamicWorkflowNodeMetadata struct { - // id represents the unique identifier of the workflow. - Id *core.Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *core.CompiledWorkflowClosure `protobuf:"bytes,2,opt,name=compiled_workflow,json=compiledWorkflow,proto3" json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - // required to correctly recover partially completed executions where the workflow has already been compiled. - DynamicJobSpecUri string `protobuf:"bytes,3,opt,name=dynamic_job_spec_uri,json=dynamicJobSpecUri,proto3" json:"dynamic_job_spec_uri,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DynamicWorkflowNodeMetadata) Reset() { *m = DynamicWorkflowNodeMetadata{} } -func (m *DynamicWorkflowNodeMetadata) String() string { return proto.CompactTextString(m) } -func (*DynamicWorkflowNodeMetadata) ProtoMessage() {} -func (*DynamicWorkflowNodeMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{4} -} - -func (m *DynamicWorkflowNodeMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Unmarshal(m, b) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Marshal(b, m, deterministic) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_DynamicWorkflowNodeMetadata.Merge(m, src) -} -func (m *DynamicWorkflowNodeMetadata) XXX_Size() int { - return xxx_messageInfo_DynamicWorkflowNodeMetadata.Size(m) -} -func (m *DynamicWorkflowNodeMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_DynamicWorkflowNodeMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_DynamicWorkflowNodeMetadata proto.InternalMessageInfo - -func (m *DynamicWorkflowNodeMetadata) GetId() *core.Identifier { - if m != nil { - return m.Id - } - return nil -} - -func (m *DynamicWorkflowNodeMetadata) GetCompiledWorkflow() *core.CompiledWorkflowClosure { - if m != nil { - return m.CompiledWorkflow - } - return nil -} - -func (m *DynamicWorkflowNodeMetadata) GetDynamicJobSpecUri() string { - if m != nil { - return m.DynamicJobSpecUri - } - return "" -} - -type ParentTaskExecutionMetadata struct { - Id *core.TaskExecutionIdentifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParentTaskExecutionMetadata) Reset() { *m = ParentTaskExecutionMetadata{} } -func (m *ParentTaskExecutionMetadata) String() string { return proto.CompactTextString(m) } -func (*ParentTaskExecutionMetadata) ProtoMessage() {} -func (*ParentTaskExecutionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{5} -} - -func (m *ParentTaskExecutionMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParentTaskExecutionMetadata.Unmarshal(m, b) -} -func (m *ParentTaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParentTaskExecutionMetadata.Marshal(b, m, deterministic) -} -func (m *ParentTaskExecutionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParentTaskExecutionMetadata.Merge(m, src) -} -func (m *ParentTaskExecutionMetadata) XXX_Size() int { - return xxx_messageInfo_ParentTaskExecutionMetadata.Size(m) -} -func (m *ParentTaskExecutionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ParentTaskExecutionMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_ParentTaskExecutionMetadata proto.InternalMessageInfo - -func (m *ParentTaskExecutionMetadata) GetId() *core.TaskExecutionIdentifier { - if m != nil { - return m.Id - } - return nil -} - -type ParentNodeExecutionMetadata struct { - // Unique identifier of the parent node id within the execution - // This is value of core.NodeExecutionIdentifier.node_id of the parent node - NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ParentNodeExecutionMetadata) Reset() { *m = ParentNodeExecutionMetadata{} } -func (m *ParentNodeExecutionMetadata) String() string { return proto.CompactTextString(m) } -func (*ParentNodeExecutionMetadata) ProtoMessage() {} -func (*ParentNodeExecutionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{6} -} - -func (m *ParentNodeExecutionMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ParentNodeExecutionMetadata.Unmarshal(m, b) -} -func (m *ParentNodeExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ParentNodeExecutionMetadata.Marshal(b, m, deterministic) -} -func (m *ParentNodeExecutionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_ParentNodeExecutionMetadata.Merge(m, src) -} -func (m *ParentNodeExecutionMetadata) XXX_Size() int { - return xxx_messageInfo_ParentNodeExecutionMetadata.Size(m) -} -func (m *ParentNodeExecutionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_ParentNodeExecutionMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_ParentNodeExecutionMetadata proto.InternalMessageInfo - -func (m *ParentNodeExecutionMetadata) GetNodeId() string { - if m != nil { - return m.NodeId - } - return "" -} - -type EventReason struct { - // An explanation for this event - Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"` - // The time this reason occurred - OccurredAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *EventReason) Reset() { *m = EventReason{} } -func (m *EventReason) String() string { return proto.CompactTextString(m) } -func (*EventReason) ProtoMessage() {} -func (*EventReason) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{7} -} - -func (m *EventReason) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_EventReason.Unmarshal(m, b) -} -func (m *EventReason) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_EventReason.Marshal(b, m, deterministic) -} -func (m *EventReason) XXX_Merge(src proto.Message) { - xxx_messageInfo_EventReason.Merge(m, src) -} -func (m *EventReason) XXX_Size() int { - return xxx_messageInfo_EventReason.Size(m) -} -func (m *EventReason) XXX_DiscardUnknown() { - xxx_messageInfo_EventReason.DiscardUnknown(m) -} - -var xxx_messageInfo_EventReason proto.InternalMessageInfo - -func (m *EventReason) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *EventReason) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. -type TaskExecutionEvent struct { - // ID of the task. In combination with the retryAttempt this will indicate - // the task execution uniquely for a given parent node execution. - TaskId *core.Identifier `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` - // A task execution is always kicked off by a node execution, the event consumer - // will use the parent_id to relate the task to it's parent node execution - ParentNodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,2,opt,name=parent_node_execution_id,json=parentNodeExecutionId,proto3" json:"parent_node_execution_id,omitempty"` - // retry attempt number for this task, ie., 2 for the second attempt - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - // Phase associated with the event - Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // id of the process that sent this event, mainly for trace debugging - ProducerId string `protobuf:"bytes,5,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"` - // log information for the task execution - Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` - // This timestamp represents when the original event occurred, it is generated - // by the executor of the task. - OccurredAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=occurred_at,json=occurredAt,proto3" json:"occurred_at,omitempty"` - // Types that are valid to be assigned to InputValue: - // *TaskExecutionEvent_InputUri - // *TaskExecutionEvent_InputData - InputValue isTaskExecutionEvent_InputValue `protobuf_oneof:"input_value"` - // Types that are valid to be assigned to OutputResult: - // *TaskExecutionEvent_OutputUri - // *TaskExecutionEvent_Error - // *TaskExecutionEvent_OutputData - OutputResult isTaskExecutionEvent_OutputResult `protobuf_oneof:"output_result"` - // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - CustomInfo *_struct.Struct `protobuf:"bytes,11,opt,name=custom_info,json=customInfo,proto3" json:"custom_info,omitempty"` - // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) - // that should be recorded regardless of the lack of phase change. - // The version field should be incremented when metadata changes across the duration of an individual phase. - PhaseVersion uint32 `protobuf:"varint,12,opt,name=phase_version,json=phaseVersion,proto3" json:"phase_version,omitempty"` - // An optional explanation for the phase transition. - // Deprecated: Use reasons instead. - Reason string `protobuf:"bytes,13,opt,name=reason,proto3" json:"reason,omitempty"` // Deprecated: Do not use. - // An optional list of explanations for the phase transition. - Reasons []*EventReason `protobuf:"bytes,21,rep,name=reasons,proto3" json:"reasons,omitempty"` - // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin - // this type will be identical, but not all task executions necessarily use pre-registered definitions and this - // type is useful to render the task in the UI, filter task executions, etc. - TaskType string `protobuf:"bytes,14,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *TaskExecutionMetadata `protobuf:"bytes,16,opt,name=metadata,proto3" json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is reported using this - // proto message. For example, event_verison > 0 means that maps tasks report logs using the - // TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - // in this message. - EventVersion int32 `protobuf:"varint,18,opt,name=event_version,json=eventVersion,proto3" json:"event_version,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s - // pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, - // but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps - // facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt *timestamp.Timestamp `protobuf:"bytes,20,opt,name=reported_at,json=reportedAt,proto3" json:"reported_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionEvent) Reset() { *m = TaskExecutionEvent{} } -func (m *TaskExecutionEvent) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionEvent) ProtoMessage() {} -func (*TaskExecutionEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{8} -} - -func (m *TaskExecutionEvent) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionEvent.Unmarshal(m, b) -} -func (m *TaskExecutionEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionEvent.Marshal(b, m, deterministic) -} -func (m *TaskExecutionEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionEvent.Merge(m, src) -} -func (m *TaskExecutionEvent) XXX_Size() int { - return xxx_messageInfo_TaskExecutionEvent.Size(m) -} -func (m *TaskExecutionEvent) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionEvent.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionEvent proto.InternalMessageInfo - -func (m *TaskExecutionEvent) GetTaskId() *core.Identifier { - if m != nil { - return m.TaskId - } - return nil -} - -func (m *TaskExecutionEvent) GetParentNodeExecutionId() *core.NodeExecutionIdentifier { - if m != nil { - return m.ParentNodeExecutionId - } - return nil -} - -func (m *TaskExecutionEvent) GetRetryAttempt() uint32 { - if m != nil { - return m.RetryAttempt - } - return 0 -} - -func (m *TaskExecutionEvent) GetPhase() core.TaskExecution_Phase { - if m != nil { - return m.Phase - } - return core.TaskExecution_UNDEFINED -} - -func (m *TaskExecutionEvent) GetProducerId() string { - if m != nil { - return m.ProducerId - } - return "" -} - -func (m *TaskExecutionEvent) GetLogs() []*core.TaskLog { - if m != nil { - return m.Logs - } - return nil -} - -func (m *TaskExecutionEvent) GetOccurredAt() *timestamp.Timestamp { - if m != nil { - return m.OccurredAt - } - return nil -} - -type isTaskExecutionEvent_InputValue interface { - isTaskExecutionEvent_InputValue() -} - -type TaskExecutionEvent_InputUri struct { - InputUri string `protobuf:"bytes,8,opt,name=input_uri,json=inputUri,proto3,oneof"` -} - -type TaskExecutionEvent_InputData struct { - InputData *core.LiteralMap `protobuf:"bytes,19,opt,name=input_data,json=inputData,proto3,oneof"` -} - -func (*TaskExecutionEvent_InputUri) isTaskExecutionEvent_InputValue() {} - -func (*TaskExecutionEvent_InputData) isTaskExecutionEvent_InputValue() {} - -func (m *TaskExecutionEvent) GetInputValue() isTaskExecutionEvent_InputValue { - if m != nil { - return m.InputValue - } - return nil -} - -func (m *TaskExecutionEvent) GetInputUri() string { - if x, ok := m.GetInputValue().(*TaskExecutionEvent_InputUri); ok { - return x.InputUri - } - return "" -} - -func (m *TaskExecutionEvent) GetInputData() *core.LiteralMap { - if x, ok := m.GetInputValue().(*TaskExecutionEvent_InputData); ok { - return x.InputData - } - return nil -} - -type isTaskExecutionEvent_OutputResult interface { - isTaskExecutionEvent_OutputResult() -} - -type TaskExecutionEvent_OutputUri struct { - OutputUri string `protobuf:"bytes,9,opt,name=output_uri,json=outputUri,proto3,oneof"` -} - -type TaskExecutionEvent_Error struct { - Error *core.ExecutionError `protobuf:"bytes,10,opt,name=error,proto3,oneof"` -} - -type TaskExecutionEvent_OutputData struct { - OutputData *core.LiteralMap `protobuf:"bytes,17,opt,name=output_data,json=outputData,proto3,oneof"` -} - -func (*TaskExecutionEvent_OutputUri) isTaskExecutionEvent_OutputResult() {} - -func (*TaskExecutionEvent_Error) isTaskExecutionEvent_OutputResult() {} - -func (*TaskExecutionEvent_OutputData) isTaskExecutionEvent_OutputResult() {} - -func (m *TaskExecutionEvent) GetOutputResult() isTaskExecutionEvent_OutputResult { - if m != nil { - return m.OutputResult - } - return nil -} - -func (m *TaskExecutionEvent) GetOutputUri() string { - if x, ok := m.GetOutputResult().(*TaskExecutionEvent_OutputUri); ok { - return x.OutputUri - } - return "" -} - -func (m *TaskExecutionEvent) GetError() *core.ExecutionError { - if x, ok := m.GetOutputResult().(*TaskExecutionEvent_Error); ok { - return x.Error - } - return nil -} - -func (m *TaskExecutionEvent) GetOutputData() *core.LiteralMap { - if x, ok := m.GetOutputResult().(*TaskExecutionEvent_OutputData); ok { - return x.OutputData - } - return nil -} - -func (m *TaskExecutionEvent) GetCustomInfo() *_struct.Struct { - if m != nil { - return m.CustomInfo - } - return nil -} - -func (m *TaskExecutionEvent) GetPhaseVersion() uint32 { - if m != nil { - return m.PhaseVersion - } - return 0 -} - -// Deprecated: Do not use. -func (m *TaskExecutionEvent) GetReason() string { - if m != nil { - return m.Reason - } - return "" -} - -func (m *TaskExecutionEvent) GetReasons() []*EventReason { - if m != nil { - return m.Reasons - } - return nil -} - -func (m *TaskExecutionEvent) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *TaskExecutionEvent) GetMetadata() *TaskExecutionMetadata { - if m != nil { - return m.Metadata - } - return nil -} - -func (m *TaskExecutionEvent) GetEventVersion() int32 { - if m != nil { - return m.EventVersion - } - return 0 -} - -func (m *TaskExecutionEvent) GetReportedAt() *timestamp.Timestamp { - if m != nil { - return m.ReportedAt - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*TaskExecutionEvent) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*TaskExecutionEvent_InputUri)(nil), - (*TaskExecutionEvent_InputData)(nil), - (*TaskExecutionEvent_OutputUri)(nil), - (*TaskExecutionEvent_Error)(nil), - (*TaskExecutionEvent_OutputData)(nil), - } -} - -// This message contains metadata about external resources produced or used by a specific task execution. -type ExternalResourceInfo struct { - // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - ExternalId string `protobuf:"bytes,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"` - // A unique index for the external resource with respect to all external resources for this task. Although the - // identifier may change between task reporting events or retries, this will remain the same to enable aggregating - // information from multiple reports. - Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` - // Retry attempt number for this external resource, ie., 2 for the second attempt - RetryAttempt uint32 `protobuf:"varint,3,opt,name=retry_attempt,json=retryAttempt,proto3" json:"retry_attempt,omitempty"` - // Phase associated with the external resource - Phase core.TaskExecution_Phase `protobuf:"varint,4,opt,name=phase,proto3,enum=flyteidl.core.TaskExecution_Phase" json:"phase,omitempty"` - // Captures the status of caching for this external resource execution. - CacheStatus core.CatalogCacheStatus `protobuf:"varint,5,opt,name=cache_status,json=cacheStatus,proto3,enum=flyteidl.core.CatalogCacheStatus" json:"cache_status,omitempty"` - // log information for the external resource execution - Logs []*core.TaskLog `protobuf:"bytes,6,rep,name=logs,proto3" json:"logs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ExternalResourceInfo) Reset() { *m = ExternalResourceInfo{} } -func (m *ExternalResourceInfo) String() string { return proto.CompactTextString(m) } -func (*ExternalResourceInfo) ProtoMessage() {} -func (*ExternalResourceInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{9} -} - -func (m *ExternalResourceInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ExternalResourceInfo.Unmarshal(m, b) -} -func (m *ExternalResourceInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ExternalResourceInfo.Marshal(b, m, deterministic) -} -func (m *ExternalResourceInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExternalResourceInfo.Merge(m, src) -} -func (m *ExternalResourceInfo) XXX_Size() int { - return xxx_messageInfo_ExternalResourceInfo.Size(m) -} -func (m *ExternalResourceInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ExternalResourceInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ExternalResourceInfo proto.InternalMessageInfo - -func (m *ExternalResourceInfo) GetExternalId() string { - if m != nil { - return m.ExternalId - } - return "" -} - -func (m *ExternalResourceInfo) GetIndex() uint32 { - if m != nil { - return m.Index - } - return 0 -} - -func (m *ExternalResourceInfo) GetRetryAttempt() uint32 { - if m != nil { - return m.RetryAttempt - } - return 0 -} - -func (m *ExternalResourceInfo) GetPhase() core.TaskExecution_Phase { - if m != nil { - return m.Phase - } - return core.TaskExecution_UNDEFINED -} - -func (m *ExternalResourceInfo) GetCacheStatus() core.CatalogCacheStatus { - if m != nil { - return m.CacheStatus - } - return core.CatalogCacheStatus_CACHE_DISABLED -} - -func (m *ExternalResourceInfo) GetLogs() []*core.TaskLog { - if m != nil { - return m.Logs - } - return nil -} - -// This message holds task execution metadata specific to resource allocation used to manage concurrent -// executions for a project namespace. -type ResourcePoolInfo struct { - // Unique resource ID used to identify this execution when allocating a token. - AllocationToken string `protobuf:"bytes,1,opt,name=allocation_token,json=allocationToken,proto3" json:"allocation_token,omitempty"` - // Namespace under which this task execution requested an allocation token. - Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ResourcePoolInfo) Reset() { *m = ResourcePoolInfo{} } -func (m *ResourcePoolInfo) String() string { return proto.CompactTextString(m) } -func (*ResourcePoolInfo) ProtoMessage() {} -func (*ResourcePoolInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{10} -} - -func (m *ResourcePoolInfo) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ResourcePoolInfo.Unmarshal(m, b) -} -func (m *ResourcePoolInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ResourcePoolInfo.Marshal(b, m, deterministic) -} -func (m *ResourcePoolInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ResourcePoolInfo.Merge(m, src) -} -func (m *ResourcePoolInfo) XXX_Size() int { - return xxx_messageInfo_ResourcePoolInfo.Size(m) -} -func (m *ResourcePoolInfo) XXX_DiscardUnknown() { - xxx_messageInfo_ResourcePoolInfo.DiscardUnknown(m) -} - -var xxx_messageInfo_ResourcePoolInfo proto.InternalMessageInfo - -func (m *ResourcePoolInfo) GetAllocationToken() string { - if m != nil { - return m.AllocationToken - } - return "" -} - -func (m *ResourcePoolInfo) GetNamespace() string { - if m != nil { - return m.Namespace - } - return "" -} - -// Holds metadata around how a task was executed. -// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, -// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. -// Metadata is a container for these attributes across the task execution lifecycle. -type TaskExecutionMetadata struct { - // Unique, generated name for this task execution used by the backend. - GeneratedName string `protobuf:"bytes,1,opt,name=generated_name,json=generatedName,proto3" json:"generated_name,omitempty"` - // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - ExternalResources []*ExternalResourceInfo `protobuf:"bytes,2,rep,name=external_resources,json=externalResources,proto3" json:"external_resources,omitempty"` - // Includes additional data on concurrent resource management used during execution.. - // This is a repeated field because a plugin can request multiple resource allocations during execution. - ResourcePoolInfo []*ResourcePoolInfo `protobuf:"bytes,3,rep,name=resource_pool_info,json=resourcePoolInfo,proto3" json:"resource_pool_info,omitempty"` - // The identifier of the plugin used to execute this task. - PluginIdentifier string `protobuf:"bytes,4,opt,name=plugin_identifier,json=pluginIdentifier,proto3" json:"plugin_identifier,omitempty"` - InstanceClass TaskExecutionMetadata_InstanceClass `protobuf:"varint,16,opt,name=instance_class,json=instanceClass,proto3,enum=flyteidl.event.TaskExecutionMetadata_InstanceClass" json:"instance_class,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskExecutionMetadata) Reset() { *m = TaskExecutionMetadata{} } -func (m *TaskExecutionMetadata) String() string { return proto.CompactTextString(m) } -func (*TaskExecutionMetadata) ProtoMessage() {} -func (*TaskExecutionMetadata) Descriptor() ([]byte, []int) { - return fileDescriptor_4b035d24120b1b12, []int{11} -} - -func (m *TaskExecutionMetadata) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskExecutionMetadata.Unmarshal(m, b) -} -func (m *TaskExecutionMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskExecutionMetadata.Marshal(b, m, deterministic) -} -func (m *TaskExecutionMetadata) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskExecutionMetadata.Merge(m, src) -} -func (m *TaskExecutionMetadata) XXX_Size() int { - return xxx_messageInfo_TaskExecutionMetadata.Size(m) -} -func (m *TaskExecutionMetadata) XXX_DiscardUnknown() { - xxx_messageInfo_TaskExecutionMetadata.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskExecutionMetadata proto.InternalMessageInfo - -func (m *TaskExecutionMetadata) GetGeneratedName() string { - if m != nil { - return m.GeneratedName - } - return "" -} - -func (m *TaskExecutionMetadata) GetExternalResources() []*ExternalResourceInfo { - if m != nil { - return m.ExternalResources - } - return nil -} - -func (m *TaskExecutionMetadata) GetResourcePoolInfo() []*ResourcePoolInfo { - if m != nil { - return m.ResourcePoolInfo - } - return nil -} - -func (m *TaskExecutionMetadata) GetPluginIdentifier() string { - if m != nil { - return m.PluginIdentifier - } - return "" -} - -func (m *TaskExecutionMetadata) GetInstanceClass() TaskExecutionMetadata_InstanceClass { - if m != nil { - return m.InstanceClass - } - return TaskExecutionMetadata_DEFAULT -} - -func init() { - proto.RegisterEnum("flyteidl.event.TaskExecutionMetadata_InstanceClass", TaskExecutionMetadata_InstanceClass_name, TaskExecutionMetadata_InstanceClass_value) - proto.RegisterType((*WorkflowExecutionEvent)(nil), "flyteidl.event.WorkflowExecutionEvent") - proto.RegisterType((*NodeExecutionEvent)(nil), "flyteidl.event.NodeExecutionEvent") - proto.RegisterType((*WorkflowNodeMetadata)(nil), "flyteidl.event.WorkflowNodeMetadata") - proto.RegisterType((*TaskNodeMetadata)(nil), "flyteidl.event.TaskNodeMetadata") - proto.RegisterType((*DynamicWorkflowNodeMetadata)(nil), "flyteidl.event.DynamicWorkflowNodeMetadata") - proto.RegisterType((*ParentTaskExecutionMetadata)(nil), "flyteidl.event.ParentTaskExecutionMetadata") - proto.RegisterType((*ParentNodeExecutionMetadata)(nil), "flyteidl.event.ParentNodeExecutionMetadata") - proto.RegisterType((*EventReason)(nil), "flyteidl.event.EventReason") - proto.RegisterType((*TaskExecutionEvent)(nil), "flyteidl.event.TaskExecutionEvent") - proto.RegisterType((*ExternalResourceInfo)(nil), "flyteidl.event.ExternalResourceInfo") - proto.RegisterType((*ResourcePoolInfo)(nil), "flyteidl.event.ResourcePoolInfo") - proto.RegisterType((*TaskExecutionMetadata)(nil), "flyteidl.event.TaskExecutionMetadata") -} - -func init() { proto.RegisterFile("flyteidl/event/event.proto", fileDescriptor_4b035d24120b1b12) } - -var fileDescriptor_4b035d24120b1b12 = []byte{ - // 1553 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xfb, 0x6e, 0xdb, 0xb6, - 0x1a, 0x8f, 0x9d, 0x8b, 0xed, 0x4f, 0xb1, 0x63, 0xb3, 0x4e, 0xaa, 0x26, 0x4d, 0xe3, 0xe3, 0x73, - 0x7a, 0x90, 0xb6, 0x98, 0x0d, 0xb8, 0x68, 0x51, 0xac, 0x1d, 0x86, 0xdc, 0xb6, 0x78, 0x4b, 0x83, - 0x40, 0x49, 0x5a, 0xa0, 0xdb, 0x20, 0x30, 0x12, 0xe3, 0x68, 0x91, 0x45, 0x81, 0xa2, 0xd2, 0xfa, - 0x49, 0xf6, 0xd7, 0xf6, 0x00, 0x7d, 0x98, 0xbd, 0xcb, 0xde, 0x60, 0x20, 0x29, 0xc9, 0x91, 0xac, - 0xe5, 0xd2, 0x76, 0xff, 0x04, 0xe6, 0x77, 0xf9, 0xf1, 0xe3, 0x77, 0x57, 0x60, 0xf9, 0xd4, 0x1d, - 0x71, 0xe2, 0xd8, 0x6e, 0x97, 0x5c, 0x10, 0x8f, 0xab, 0xbf, 0x1d, 0x9f, 0x51, 0x4e, 0x51, 0x2d, - 0xe6, 0x75, 0x24, 0x75, 0xf9, 0x7e, 0x22, 0x6b, 0x51, 0x46, 0xba, 0xae, 0xc3, 0x09, 0xc3, 0x6e, - 0xa0, 0xa4, 0xb3, 0x5c, 0x8b, 0x0e, 0x7d, 0xc7, 0x25, 0x2c, 0xe2, 0xae, 0xa6, 0xb9, 0xe4, 0x03, - 0xb1, 0x42, 0xee, 0x50, 0x2f, 0x62, 0x3f, 0x48, 0xb3, 0x1d, 0x9b, 0x78, 0xdc, 0x39, 0x75, 0x12, - 0xf5, 0x95, 0x0c, 0x38, 0xe6, 0xd8, 0xa5, 0x83, 0x88, 0xb9, 0x36, 0xa0, 0x74, 0xe0, 0x92, 0xae, - 0x3c, 0x9d, 0x84, 0xa7, 0x5d, 0xee, 0x0c, 0x49, 0xc0, 0xf1, 0xd0, 0x8f, 0x4d, 0xcb, 0x0a, 0x04, - 0x9c, 0x85, 0x56, 0xf4, 0xcc, 0xf6, 0xc7, 0x69, 0x58, 0x7a, 0x4b, 0xd9, 0xf9, 0xa9, 0x4b, 0xdf, - 0xef, 0xc4, 0x76, 0xed, 0x88, 0x17, 0xa3, 0xd7, 0x30, 0x9f, 0x58, 0x6a, 0x3a, 0xb6, 0x5e, 0x68, - 0x15, 0xd6, 0xb5, 0xde, 0xe3, 0x4e, 0xe2, 0x18, 0x61, 0x4d, 0x67, 0x42, 0xb9, 0x9f, 0x98, 0x6f, - 0x68, 0x64, 0x4c, 0x44, 0x6b, 0xa0, 0xf9, 0x8c, 0xda, 0xa1, 0x45, 0x98, 0x40, 0x2b, 0xb6, 0x0a, - 0xeb, 0x15, 0x03, 0x62, 0x52, 0xdf, 0x46, 0xaf, 0x60, 0xd6, 0x3f, 0xc3, 0x01, 0xd1, 0xa7, 0x5b, - 0x85, 0xf5, 0x5a, 0xef, 0xff, 0xd7, 0x5d, 0xd4, 0x39, 0x10, 0xd2, 0x86, 0x52, 0x42, 0x2f, 0x41, - 0xa3, 0x96, 0x15, 0x32, 0x46, 0x6c, 0x13, 0x73, 0x7d, 0x46, 0x1a, 0xbb, 0xdc, 0x51, 0x8f, 0xef, - 0xc4, 0x8f, 0xef, 0x1c, 0xc5, 0xde, 0x31, 0x20, 0x16, 0xdf, 0xe0, 0x68, 0x0d, 0x80, 0x86, 0xdc, - 0x0f, 0xb9, 0x19, 0x32, 0x47, 0x9f, 0x15, 0xa6, 0xed, 0x4e, 0x19, 0x15, 0x45, 0x3b, 0x66, 0x0e, - 0x7a, 0x06, 0xb3, 0x84, 0x31, 0xca, 0xf4, 0x39, 0x89, 0xbb, 0x9a, 0xb1, 0x6d, 0xec, 0x39, 0x21, - 0xb4, 0x3b, 0x65, 0x28, 0x69, 0xf4, 0x0a, 0xb4, 0x08, 0xd7, 0xc6, 0x1c, 0xeb, 0x25, 0xa9, 0x7c, - 0x2f, 0xa3, 0xbc, 0xa7, 0x52, 0xe9, 0x35, 0xf6, 0x77, 0xa7, 0x8c, 0xc8, 0x8e, 0x6d, 0xcc, 0xf1, - 0xe6, 0x02, 0x54, 0x23, 0x6d, 0x46, 0x82, 0xd0, 0xe5, 0xed, 0x8f, 0x15, 0x40, 0xfb, 0xd4, 0x26, - 0x99, 0x40, 0x3d, 0x87, 0x62, 0x12, 0x9e, 0xac, 0xd7, 0x52, 0xe2, 0x97, 0x42, 0x53, 0x74, 0x6e, - 0x10, 0x91, 0x17, 0xe9, 0x88, 0xb4, 0xaf, 0xc2, 0xfe, 0x82, 0xd1, 0x58, 0x85, 0x8a, 0xe3, 0x65, - 0x83, 0x51, 0x96, 0x24, 0x11, 0x8b, 0xaf, 0x01, 0x14, 0x5b, 0xfa, 0xb4, 0x79, 0xbd, 0x4f, 0x15, - 0x9a, 0x70, 0x69, 0x26, 0xd0, 0x73, 0x12, 0xbb, 0x90, 0x1b, 0xe8, 0xd2, 0x4d, 0x02, 0x5d, 0xf8, - 0x87, 0x40, 0x2f, 0x5c, 0x67, 0x54, 0xe1, 0x72, 0xa0, 0xd1, 0xcf, 0xb0, 0xf4, 0x3e, 0xca, 0x6e, - 0xd3, 0xa3, 0x36, 0x31, 0x87, 0x84, 0x63, 0x09, 0x54, 0x96, 0x40, 0xff, 0xeb, 0xa4, 0x9b, 0x51, - 0x52, 0x0b, 0x22, 0x02, 0xaf, 0x23, 0xd9, 0xdd, 0xa2, 0xd1, 0x7c, 0x9f, 0x43, 0x47, 0x07, 0x80, - 0x38, 0x0e, 0xce, 0x33, 0xc8, 0x35, 0x89, 0xdc, 0xca, 0x22, 0x1f, 0xe1, 0xe0, 0x3c, 0x83, 0x5a, - 0xe7, 0x19, 0x1a, 0xfa, 0x05, 0x9a, 0x3e, 0x66, 0xc4, 0xe3, 0xa6, 0x04, 0x4e, 0x30, 0x2b, 0x12, - 0xf3, 0x49, 0x16, 0xf3, 0x40, 0xca, 0x0a, 0xe4, 0xc4, 0x7d, 0x31, 0x94, 0x81, 0xfc, 0x84, 0x99, - 0x03, 0x9f, 0x36, 0x19, 0xae, 0x82, 0x4f, 0x25, 0x63, 0x16, 0x3e, 0x65, 0xfd, 0x1a, 0x68, 0x8c, - 0x70, 0x36, 0x32, 0x07, 0x8c, 0x86, 0xbe, 0xae, 0xa9, 0xb4, 0x97, 0xa4, 0xef, 0x05, 0x05, 0xb5, - 0x60, 0x3e, 0xf0, 0x89, 0xa5, 0x6e, 0x77, 0x6c, 0x7d, 0x5e, 0x49, 0x08, 0x9a, 0x00, 0xea, 0xdb, - 0x68, 0x05, 0x2a, 0x92, 0xe9, 0xe1, 0x21, 0xd1, 0xab, 0x92, 0x5d, 0x16, 0x84, 0x7d, 0x3c, 0x24, - 0xe8, 0xbf, 0x50, 0x95, 0x86, 0x99, 0x17, 0x84, 0x05, 0x0e, 0xf5, 0xf4, 0x7a, 0xab, 0xb0, 0x3e, - 0x6b, 0xcc, 0x4b, 0xe2, 0x1b, 0x45, 0x13, 0x08, 0x4e, 0x60, 0x2a, 0xeb, 0xf4, 0x46, 0xab, 0xb0, - 0x5e, 0x36, 0xca, 0x4e, 0xa0, 0x9e, 0x82, 0x56, 0x01, 0x9c, 0xc0, 0xb4, 0x47, 0x1e, 0x1e, 0x3a, - 0x96, 0x8e, 0x24, 0xb7, 0xe2, 0x04, 0xdb, 0x8a, 0x80, 0xee, 0x41, 0xd9, 0x26, 0xd6, 0xb9, 0x4c, - 0xe1, 0x3b, 0xf2, 0xf2, 0x92, 0x38, 0x8b, 0xf4, 0x7d, 0x29, 0xde, 0xe6, 0x53, 0xc6, 0x55, 0xdd, - 0x2d, 0x5e, 0x5f, 0x77, 0xb1, 0xf8, 0x06, 0x17, 0xb8, 0x4e, 0x60, 0x62, 0xc6, 0xf0, 0x48, 0x5f, - 0x92, 0x97, 0x96, 0x9c, 0x60, 0x43, 0x1c, 0x37, 0xab, 0xa0, 0xa9, 0x9a, 0xbb, 0xc0, 0x6e, 0x48, - 0x26, 0x3a, 0xd3, 0x66, 0x03, 0x16, 0x38, 0x66, 0x03, 0xc2, 0x93, 0x68, 0xb5, 0x09, 0x34, 0xf3, - 0xd2, 0xf4, 0x0b, 0x8f, 0x95, 0xf6, 0x5f, 0x45, 0xa8, 0x67, 0x93, 0x16, 0x6d, 0xc3, 0xbc, 0x85, - 0xad, 0x33, 0x62, 0x06, 0x1c, 0xf3, 0x30, 0x90, 0x77, 0xd4, 0x7a, 0xff, 0xc9, 0xdc, 0xb1, 0xa5, - 0x06, 0xe9, 0x96, 0x90, 0x3c, 0x94, 0x82, 0x86, 0x66, 0x8d, 0x0f, 0xe8, 0x5b, 0xd0, 0xa2, 0x59, - 0x6b, 0x9e, 0x93, 0x91, 0xec, 0x8f, 0x5a, 0xef, 0x41, 0x3e, 0x48, 0x92, 0x71, 0x10, 0xa9, 0xfc, - 0x48, 0x46, 0xe8, 0x2d, 0x20, 0x46, 0x02, 0xc2, 0x2e, 0xb0, 0x7c, 0x6c, 0x64, 0x8c, 0x6a, 0xa6, - 0xeb, 0xf9, 0x38, 0xc6, 0x58, 0xbe, 0x13, 0xd9, 0xd4, 0xb8, 0x84, 0x11, 0x59, 0xf6, 0x10, 0x6a, - 0xd6, 0x19, 0xb1, 0xce, 0x7d, 0xea, 0x78, 0xaa, 0x95, 0xcd, 0xc8, 0x3c, 0xa8, 0x8e, 0xa9, 0x22, - 0x1b, 0xde, 0x40, 0x3d, 0x4a, 0x22, 0x33, 0xee, 0x0c, 0x32, 0x19, 0x73, 0x8a, 0x28, 0xca, 0xad, - 0xbc, 0x88, 0x19, 0x0b, 0x76, 0x9a, 0xd9, 0xfe, 0xb3, 0x00, 0x2b, 0x57, 0x28, 0xa0, 0x47, 0x97, - 0x06, 0x52, 0xb6, 0x09, 0x66, 0x66, 0xd0, 0x21, 0x34, 0xa2, 0x65, 0xc9, 0x1e, 0xdb, 0x58, 0xcc, - 0x1d, 0x65, 0x5b, 0x91, 0x5c, 0x7c, 0xe5, 0x96, 0x4b, 0x83, 0x90, 0x11, 0xa3, 0x6e, 0x65, 0x18, - 0xa8, 0x0b, 0xcd, 0xf8, 0xdd, 0xbf, 0xd2, 0x13, 0x53, 0x16, 0xb3, 0x70, 0xd2, 0xb4, 0x74, 0x52, - 0x23, 0xe2, 0xfd, 0x40, 0x4f, 0x0e, 0x7d, 0x62, 0x1d, 0x33, 0xa7, 0x7d, 0x0c, 0x2b, 0x57, 0x34, - 0xa9, 0x2b, 0x07, 0x6c, 0x4a, 0x23, 0xfd, 0xb8, 0xf6, 0xf3, 0x18, 0x36, 0xb7, 0x39, 0xa1, 0xbb, - 0x50, 0x8a, 0x5b, 0x4c, 0x41, 0x5a, 0x36, 0xe7, 0xc9, 0xf6, 0xd2, 0x3e, 0x01, 0x4d, 0x4e, 0x76, - 0x83, 0xe0, 0x80, 0x7a, 0x68, 0x09, 0xe6, 0x98, 0xfc, 0x15, 0x8b, 0xa9, 0x53, 0x76, 0xc8, 0x16, - 0x6f, 0x33, 0x64, 0xdb, 0xbf, 0x95, 0x01, 0xa5, 0x6c, 0x57, 0xbb, 0x44, 0x0f, 0x4a, 0xb2, 0xa7, - 0xdf, 0x24, 0x7e, 0x73, 0x42, 0xb2, 0x6f, 0x23, 0x13, 0xf4, 0xcb, 0xfd, 0x3a, 0x55, 0xdd, 0xc5, - 0x5b, 0x6d, 0x25, 0x8b, 0xfe, 0xa4, 0xbb, 0xfa, 0xb6, 0xe8, 0xa8, 0xaa, 0x63, 0x63, 0xce, 0xc9, - 0xd0, 0xe7, 0x32, 0x90, 0x55, 0x63, 0x5e, 0x12, 0x37, 0x14, 0x6d, 0xbc, 0xac, 0xcc, 0xe4, 0x2e, - 0x2b, 0xa9, 0xb7, 0xa6, 0x97, 0x95, 0xcc, 0x1e, 0x34, 0x3b, 0xb1, 0x07, 0x3d, 0x86, 0x19, 0x97, - 0x0e, 0x02, 0x7d, 0xae, 0x35, 0xbd, 0xae, 0xf5, 0x96, 0x72, 0x90, 0xf7, 0xe8, 0xc0, 0x90, 0x32, - 0xd9, 0xa0, 0x94, 0x3e, 0x7d, 0xf3, 0x29, 0x5f, 0xb3, 0xf9, 0xdc, 0xf9, 0x8c, 0xcd, 0xa7, 0x72, - 0xc5, 0xe6, 0x03, 0x9f, 0xb3, 0xf9, 0x34, 0x6e, 0xb7, 0xf9, 0xbc, 0x00, 0xcd, 0x0a, 0x03, 0x4e, - 0x87, 0xa6, 0xe3, 0x9d, 0x52, 0x39, 0x8b, 0xb5, 0xde, 0xdd, 0x09, 0x6f, 0x1d, 0xca, 0x4f, 0x16, - 0x03, 0x94, 0x6c, 0xdf, 0x3b, 0xa5, 0x22, 0x27, 0x64, 0xf4, 0x92, 0x29, 0x3b, 0xaf, 0x72, 0x42, - 0x12, 0xe3, 0x29, 0xbb, 0x9c, 0x54, 0x8e, 0x1c, 0xd2, 0x9b, 0x45, 0xbd, 0x90, 0x54, 0xcf, 0x33, - 0x28, 0xa9, 0x5f, 0x81, 0xbe, 0x28, 0xe3, 0xba, 0x92, 0xed, 0x89, 0x97, 0x6a, 0xd0, 0x88, 0x65, - 0xc5, 0xe0, 0x96, 0x05, 0xc2, 0x47, 0x3e, 0x91, 0x4b, 0x54, 0xc5, 0x28, 0x0b, 0xc2, 0xd1, 0xc8, - 0x27, 0x68, 0x03, 0xca, 0xc9, 0xb6, 0xa2, 0x1a, 0xed, 0xc3, 0xbc, 0x05, 0x6b, 0x72, 0x4f, 0x49, - 0xd4, 0x26, 0xb7, 0x07, 0x94, 0xb3, 0x3d, 0x64, 0xc6, 0x7c, 0xf3, 0x36, 0x63, 0xfe, 0xba, 0x59, - 0xde, 0xfe, 0xa3, 0x08, 0xcd, 0x9d, 0x0f, 0x9c, 0x30, 0x0f, 0xbb, 0x06, 0x09, 0x68, 0xc8, 0x2c, - 0x22, 0x5d, 0xbe, 0x06, 0x1a, 0x89, 0xe8, 0xe3, 0x9e, 0x05, 0x31, 0xa9, 0x6f, 0xa3, 0x26, 0xcc, - 0x3a, 0x9e, 0x4d, 0x3e, 0xc8, 0xaa, 0xaf, 0x1a, 0xea, 0xf0, 0x6f, 0x57, 0x6f, 0x76, 0xd6, 0xcf, - 0x7e, 0xd2, 0xac, 0xbf, 0x45, 0x89, 0xb7, 0x7f, 0x82, 0x7a, 0xec, 0x97, 0x03, 0x4a, 0x5d, 0xe9, - 0x9b, 0x47, 0x50, 0xc7, 0xae, 0x4b, 0x2d, 0x35, 0xe9, 0x39, 0x3d, 0x27, 0x71, 0xb7, 0x5e, 0x18, - 0xd3, 0x8f, 0x04, 0x19, 0xdd, 0x87, 0x8a, 0xd8, 0x1b, 0x03, 0x1f, 0x5b, 0x24, 0xfa, 0xe8, 0x1a, - 0x13, 0xda, 0xbf, 0x4f, 0xc3, 0x62, 0xfe, 0x14, 0x7a, 0x08, 0xb5, 0x01, 0xf1, 0x08, 0xc3, 0x22, - 0xea, 0x72, 0xf3, 0x54, 0x17, 0x54, 0x13, 0xaa, 0x5c, 0x3f, 0x0f, 0x01, 0x25, 0x51, 0x62, 0x91, - 0x99, 0x81, 0x5e, 0x94, 0xef, 0x9a, 0xf8, 0x90, 0xc8, 0x8b, 0xb3, 0xd1, 0x20, 0x19, 0x6a, 0x80, - 0xf6, 0xe5, 0x26, 0x23, 0x0f, 0xa6, 0x4f, 0xa9, 0xab, 0xca, 0x75, 0x5a, 0x82, 0x4e, 0x7c, 0x43, - 0x64, 0x9d, 0x63, 0xd4, 0x59, 0xd6, 0x5d, 0x4f, 0xa0, 0xe1, 0xbb, 0xe1, 0xc0, 0x11, 0x33, 0x22, - 0xee, 0xfe, 0xd1, 0x0e, 0x53, 0x57, 0x8c, 0xf1, 0x54, 0x40, 0xef, 0xa0, 0xe6, 0x78, 0x01, 0xc7, - 0x9e, 0x45, 0x4c, 0xcb, 0xc5, 0x41, 0x20, 0x6b, 0xab, 0xd6, 0x7b, 0x7a, 0xa3, 0xda, 0xea, 0xf4, - 0x23, 0xdd, 0x2d, 0xa1, 0x6a, 0x54, 0x9d, 0xcb, 0xc7, 0x76, 0x17, 0xaa, 0x29, 0x3e, 0xd2, 0xa0, - 0xb4, 0xbd, 0xf3, 0xdd, 0xc6, 0xf1, 0xde, 0x51, 0x7d, 0x0a, 0x35, 0xa0, 0xda, 0xdf, 0x3f, 0xda, - 0x31, 0x8c, 0xe3, 0x83, 0xa3, 0xfe, 0xe6, 0xde, 0x4e, 0xbd, 0xb0, 0xf9, 0xcd, 0xbb, 0x97, 0x03, - 0x87, 0x9f, 0x85, 0x27, 0x1d, 0x8b, 0x0e, 0xbb, 0xd2, 0x00, 0xca, 0x06, 0xea, 0x47, 0x37, 0xf9, - 0x47, 0xcd, 0x80, 0x78, 0x5d, 0xff, 0xe4, 0xab, 0x01, 0xed, 0xa6, 0xff, 0xc5, 0x74, 0x32, 0x27, - 0x8b, 0xf3, 0xe9, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xe7, 0x7d, 0x76, 0xa2, 0x7b, 0x12, 0x00, - 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json b/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json deleted file mode 100644 index 0f9d66da37..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/event/event.swagger.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/event/event.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": {} -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go deleted file mode 100644 index 5ad3bfdce9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/array_job.pb.go +++ /dev/null @@ -1,149 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/array_job.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component -// will be executed concurrently. -type ArrayJob struct { - // Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an - // optimistic restriction and that, due to network partitioning or other failures, the actual number of currently - // running instances might be more. This has to be a positive number if assigned. Default value is size. - Parallelism int64 `protobuf:"varint,1,opt,name=parallelism,proto3" json:"parallelism,omitempty"` - // Defines the number of instances to launch at most. This number should match the size of the input if the job - // requires processing of all input data. This has to be a positive number. - // In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. - Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - // Types that are valid to be assigned to SuccessCriteria: - // *ArrayJob_MinSuccesses - // *ArrayJob_MinSuccessRatio - SuccessCriteria isArrayJob_SuccessCriteria `protobuf_oneof:"success_criteria"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ArrayJob) Reset() { *m = ArrayJob{} } -func (m *ArrayJob) String() string { return proto.CompactTextString(m) } -func (*ArrayJob) ProtoMessage() {} -func (*ArrayJob) Descriptor() ([]byte, []int) { - return fileDescriptor_794211c91ec6cd2b, []int{0} -} - -func (m *ArrayJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ArrayJob.Unmarshal(m, b) -} -func (m *ArrayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ArrayJob.Marshal(b, m, deterministic) -} -func (m *ArrayJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_ArrayJob.Merge(m, src) -} -func (m *ArrayJob) XXX_Size() int { - return xxx_messageInfo_ArrayJob.Size(m) -} -func (m *ArrayJob) XXX_DiscardUnknown() { - xxx_messageInfo_ArrayJob.DiscardUnknown(m) -} - -var xxx_messageInfo_ArrayJob proto.InternalMessageInfo - -func (m *ArrayJob) GetParallelism() int64 { - if m != nil { - return m.Parallelism - } - return 0 -} - -func (m *ArrayJob) GetSize() int64 { - if m != nil { - return m.Size - } - return 0 -} - -type isArrayJob_SuccessCriteria interface { - isArrayJob_SuccessCriteria() -} - -type ArrayJob_MinSuccesses struct { - MinSuccesses int64 `protobuf:"varint,3,opt,name=min_successes,json=minSuccesses,proto3,oneof"` -} - -type ArrayJob_MinSuccessRatio struct { - MinSuccessRatio float32 `protobuf:"fixed32,4,opt,name=min_success_ratio,json=minSuccessRatio,proto3,oneof"` -} - -func (*ArrayJob_MinSuccesses) isArrayJob_SuccessCriteria() {} - -func (*ArrayJob_MinSuccessRatio) isArrayJob_SuccessCriteria() {} - -func (m *ArrayJob) GetSuccessCriteria() isArrayJob_SuccessCriteria { - if m != nil { - return m.SuccessCriteria - } - return nil -} - -func (m *ArrayJob) GetMinSuccesses() int64 { - if x, ok := m.GetSuccessCriteria().(*ArrayJob_MinSuccesses); ok { - return x.MinSuccesses - } - return 0 -} - -func (m *ArrayJob) GetMinSuccessRatio() float32 { - if x, ok := m.GetSuccessCriteria().(*ArrayJob_MinSuccessRatio); ok { - return x.MinSuccessRatio - } - return 0 -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*ArrayJob) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*ArrayJob_MinSuccesses)(nil), - (*ArrayJob_MinSuccessRatio)(nil), - } -} - -func init() { - proto.RegisterType((*ArrayJob)(nil), "flyteidl.plugins.ArrayJob") -} - -func init() { proto.RegisterFile("flyteidl/plugins/array_job.proto", fileDescriptor_794211c91ec6cd2b) } - -var fileDescriptor_794211c91ec6cd2b = []byte{ - // 224 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x90, 0x31, 0x4f, 0xc3, 0x30, - 0x14, 0x84, 0x9b, 0xb6, 0x42, 0xc8, 0x80, 0x28, 0x9e, 0x32, 0x46, 0x48, 0x48, 0x1d, 0x20, 0x1e, - 0x98, 0x11, 0xa2, 0x53, 0xc5, 0x18, 0x36, 0x96, 0xc8, 0x36, 0xc6, 0x3c, 0x64, 0xfb, 0x59, 0xcf, - 0xce, 0x50, 0xfe, 0x11, 0xff, 0x12, 0xc5, 0x10, 0x88, 0xd8, 0x4e, 0xf7, 0x7d, 0xcb, 0x1d, 0x6b, - 0x5e, 0xdd, 0x21, 0x1b, 0x78, 0x71, 0x22, 0xba, 0xc1, 0x42, 0x48, 0x42, 0x12, 0xc9, 0x43, 0xff, - 0x8e, 0xaa, 0x8d, 0x84, 0x19, 0xf9, 0x66, 0x32, 0xda, 0x1f, 0xe3, 0xf2, 0xb3, 0x62, 0xc7, 0x0f, - 0xa3, 0xf5, 0x88, 0x8a, 0x37, 0xec, 0x24, 0x4a, 0x92, 0xce, 0x19, 0x07, 0xc9, 0xd7, 0x55, 0x53, - 0x6d, 0x57, 0xdd, 0xbc, 0xe2, 0x9c, 0xad, 0x13, 0x7c, 0x98, 0x7a, 0x59, 0x50, 0xc9, 0xfc, 0x8a, - 0x9d, 0x79, 0x08, 0x7d, 0x1a, 0xb4, 0x36, 0x29, 0x99, 0x54, 0xaf, 0x46, 0xb8, 0x5f, 0x74, 0xa7, - 0x1e, 0xc2, 0xd3, 0xd4, 0xf2, 0x6b, 0x76, 0x31, 0xd3, 0x7a, 0x92, 0x19, 0xb0, 0x5e, 0x37, 0xd5, - 0x76, 0xb9, 0x5f, 0x74, 0xe7, 0x7f, 0x6a, 0x37, 0x82, 0x1d, 0x67, 0x9b, 0xc9, 0xd4, 0x04, 0xd9, - 0x10, 0xc8, 0xdd, 0xfd, 0xf3, 0x9d, 0x85, 0xfc, 0x36, 0xa8, 0x56, 0xa3, 0x17, 0x65, 0x0a, 0x92, - 0xfd, 0x0e, 0xe2, 0x77, 0xbb, 0x35, 0x41, 0x44, 0x75, 0x63, 0x51, 0xfc, 0xbf, 0x43, 0x1d, 0x95, - 0x17, 0x6e, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x0f, 0x21, 0xff, 0x98, 0x29, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go deleted file mode 100644 index b60dbebf4c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/dask.pb.go +++ /dev/null @@ -1,214 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/dask.proto - -package plugins - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Custom Proto for Dask Plugin. -type DaskJob struct { - // Spec for the scheduler pod. - Scheduler *DaskScheduler `protobuf:"bytes,1,opt,name=scheduler,proto3" json:"scheduler,omitempty"` - // Spec of the default worker group. - Workers *DaskWorkerGroup `protobuf:"bytes,2,opt,name=workers,proto3" json:"workers,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DaskJob) Reset() { *m = DaskJob{} } -func (m *DaskJob) String() string { return proto.CompactTextString(m) } -func (*DaskJob) ProtoMessage() {} -func (*DaskJob) Descriptor() ([]byte, []int) { - return fileDescriptor_d719e18eb4f4b89f, []int{0} -} - -func (m *DaskJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DaskJob.Unmarshal(m, b) -} -func (m *DaskJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DaskJob.Marshal(b, m, deterministic) -} -func (m *DaskJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaskJob.Merge(m, src) -} -func (m *DaskJob) XXX_Size() int { - return xxx_messageInfo_DaskJob.Size(m) -} -func (m *DaskJob) XXX_DiscardUnknown() { - xxx_messageInfo_DaskJob.DiscardUnknown(m) -} - -var xxx_messageInfo_DaskJob proto.InternalMessageInfo - -func (m *DaskJob) GetScheduler() *DaskScheduler { - if m != nil { - return m.Scheduler - } - return nil -} - -func (m *DaskJob) GetWorkers() *DaskWorkerGroup { - if m != nil { - return m.Workers - } - return nil -} - -// Specification for the scheduler pod. -type DaskScheduler struct { - // Optional image to use. If unset, will use the default image. - Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` - // Resources assigned to the scheduler pod. - Resources *core.Resources `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DaskScheduler) Reset() { *m = DaskScheduler{} } -func (m *DaskScheduler) String() string { return proto.CompactTextString(m) } -func (*DaskScheduler) ProtoMessage() {} -func (*DaskScheduler) Descriptor() ([]byte, []int) { - return fileDescriptor_d719e18eb4f4b89f, []int{1} -} - -func (m *DaskScheduler) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DaskScheduler.Unmarshal(m, b) -} -func (m *DaskScheduler) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DaskScheduler.Marshal(b, m, deterministic) -} -func (m *DaskScheduler) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaskScheduler.Merge(m, src) -} -func (m *DaskScheduler) XXX_Size() int { - return xxx_messageInfo_DaskScheduler.Size(m) -} -func (m *DaskScheduler) XXX_DiscardUnknown() { - xxx_messageInfo_DaskScheduler.DiscardUnknown(m) -} - -var xxx_messageInfo_DaskScheduler proto.InternalMessageInfo - -func (m *DaskScheduler) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *DaskScheduler) GetResources() *core.Resources { - if m != nil { - return m.Resources - } - return nil -} - -type DaskWorkerGroup struct { - // Number of workers in the group. - NumberOfWorkers uint32 `protobuf:"varint,1,opt,name=number_of_workers,json=numberOfWorkers,proto3" json:"number_of_workers,omitempty"` - // Optional image to use for the pods of the worker group. If unset, will use the default image. - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources assigned to the all pods of the worker group. - // As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices - // it is advised to only set limits. If requests are not explicitly set, the plugin will make - // sure to set requests==limits. - // The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DaskWorkerGroup) Reset() { *m = DaskWorkerGroup{} } -func (m *DaskWorkerGroup) String() string { return proto.CompactTextString(m) } -func (*DaskWorkerGroup) ProtoMessage() {} -func (*DaskWorkerGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_d719e18eb4f4b89f, []int{2} -} - -func (m *DaskWorkerGroup) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DaskWorkerGroup.Unmarshal(m, b) -} -func (m *DaskWorkerGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DaskWorkerGroup.Marshal(b, m, deterministic) -} -func (m *DaskWorkerGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_DaskWorkerGroup.Merge(m, src) -} -func (m *DaskWorkerGroup) XXX_Size() int { - return xxx_messageInfo_DaskWorkerGroup.Size(m) -} -func (m *DaskWorkerGroup) XXX_DiscardUnknown() { - xxx_messageInfo_DaskWorkerGroup.DiscardUnknown(m) -} - -var xxx_messageInfo_DaskWorkerGroup proto.InternalMessageInfo - -func (m *DaskWorkerGroup) GetNumberOfWorkers() uint32 { - if m != nil { - return m.NumberOfWorkers - } - return 0 -} - -func (m *DaskWorkerGroup) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *DaskWorkerGroup) GetResources() *core.Resources { - if m != nil { - return m.Resources - } - return nil -} - -func init() { - proto.RegisterType((*DaskJob)(nil), "flyteidl.plugins.DaskJob") - proto.RegisterType((*DaskScheduler)(nil), "flyteidl.plugins.DaskScheduler") - proto.RegisterType((*DaskWorkerGroup)(nil), "flyteidl.plugins.DaskWorkerGroup") -} - -func init() { proto.RegisterFile("flyteidl/plugins/dask.proto", fileDescriptor_d719e18eb4f4b89f) } - -var fileDescriptor_d719e18eb4f4b89f = []byte{ - // 283 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x91, 0x4f, 0x4b, 0xc4, 0x30, - 0x14, 0xc4, 0xe9, 0x8a, 0x2e, 0x8d, 0x2c, 0xab, 0xc1, 0x43, 0xd5, 0x83, 0xda, 0x93, 0x08, 0x26, - 0xa0, 0xe0, 0x45, 0x16, 0x41, 0x04, 0xc1, 0x8b, 0x10, 0x0f, 0x82, 0x20, 0x4b, 0xff, 0xa4, 0xd9, - 0xd2, 0x3f, 0xaf, 0xbc, 0x34, 0x88, 0x1f, 0xc0, 0x93, 0x5f, 0x5a, 0xda, 0x98, 0x2d, 0x16, 0x05, - 0x6f, 0x2d, 0xf3, 0x9b, 0x37, 0x13, 0x86, 0x1c, 0x66, 0xe5, 0x7b, 0x2b, 0xf3, 0xb4, 0xe4, 0x4d, - 0x69, 0x54, 0x5e, 0x6b, 0x9e, 0x46, 0xba, 0x60, 0x0d, 0x42, 0x0b, 0x74, 0xc7, 0x89, 0xec, 0x5b, - 0x3c, 0xd8, 0x5f, 0xe3, 0x09, 0xa0, 0xe4, 0x6d, 0xa4, 0x0b, 0x6d, 0xe1, 0xf0, 0xc3, 0x23, 0xd3, - 0xbb, 0x48, 0x17, 0x0f, 0x10, 0xd3, 0x05, 0xf1, 0x75, 0xb2, 0x92, 0xa9, 0x29, 0x25, 0x06, 0xde, - 0xb1, 0x77, 0xba, 0x7d, 0x71, 0xc4, 0xc6, 0xc7, 0x58, 0x47, 0x3f, 0x39, 0x4c, 0x0c, 0x0e, 0x7a, - 0x4d, 0xa6, 0x6f, 0x80, 0x85, 0x44, 0x1d, 0x4c, 0x7a, 0xf3, 0xc9, 0xef, 0xe6, 0xe7, 0x1e, 0xba, - 0x47, 0x30, 0x8d, 0x70, 0x8e, 0xf0, 0x95, 0xcc, 0x7e, 0x1c, 0xa6, 0x7b, 0x64, 0x33, 0xaf, 0x22, - 0x25, 0xfb, 0x22, 0xbe, 0xb0, 0x3f, 0xf4, 0x8a, 0xf8, 0x28, 0x35, 0x18, 0x4c, 0xa4, 0x4b, 0x09, - 0x86, 0x94, 0xee, 0x75, 0x4c, 0x38, 0x5d, 0x0c, 0x68, 0xf8, 0xe9, 0x91, 0xf9, 0x28, 0x9b, 0x9e, - 0x91, 0xdd, 0xda, 0x54, 0xb1, 0xc4, 0x25, 0x64, 0x4b, 0xd7, 0xbc, 0x4b, 0x9b, 0x89, 0xb9, 0x15, - 0x1e, 0x33, 0xcb, 0xeb, 0xa1, 0xcd, 0xe4, 0xcf, 0x36, 0x1b, 0xff, 0x6e, 0x73, 0x7b, 0xf3, 0xb2, - 0x50, 0x79, 0xbb, 0x32, 0x31, 0x4b, 0xa0, 0xe2, 0xbd, 0x01, 0x50, 0xd9, 0x0f, 0xbe, 0xde, 0x4a, - 0xc9, 0x9a, 0x37, 0xf1, 0xb9, 0x02, 0x3e, 0x5e, 0x3b, 0xde, 0xea, 0xc7, 0xbb, 0xfc, 0x0a, 0x00, - 0x00, 0xff, 0xff, 0x6f, 0x43, 0xcc, 0x98, 0x08, 0x02, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go deleted file mode 100644 index 86882fd35b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/common.pb.go +++ /dev/null @@ -1,183 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/kubeflow/common.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type RestartPolicy int32 - -const ( - RestartPolicy_RESTART_POLICY_NEVER RestartPolicy = 0 - RestartPolicy_RESTART_POLICY_ON_FAILURE RestartPolicy = 1 - RestartPolicy_RESTART_POLICY_ALWAYS RestartPolicy = 2 -) - -var RestartPolicy_name = map[int32]string{ - 0: "RESTART_POLICY_NEVER", - 1: "RESTART_POLICY_ON_FAILURE", - 2: "RESTART_POLICY_ALWAYS", -} - -var RestartPolicy_value = map[string]int32{ - "RESTART_POLICY_NEVER": 0, - "RESTART_POLICY_ON_FAILURE": 1, - "RESTART_POLICY_ALWAYS": 2, -} - -func (x RestartPolicy) String() string { - return proto.EnumName(RestartPolicy_name, int32(x)) -} - -func (RestartPolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f625aa9156a15090, []int{0} -} - -type CleanPodPolicy int32 - -const ( - CleanPodPolicy_CLEANPOD_POLICY_NONE CleanPodPolicy = 0 - CleanPodPolicy_CLEANPOD_POLICY_RUNNING CleanPodPolicy = 1 - CleanPodPolicy_CLEANPOD_POLICY_ALL CleanPodPolicy = 2 -) - -var CleanPodPolicy_name = map[int32]string{ - 0: "CLEANPOD_POLICY_NONE", - 1: "CLEANPOD_POLICY_RUNNING", - 2: "CLEANPOD_POLICY_ALL", -} - -var CleanPodPolicy_value = map[string]int32{ - "CLEANPOD_POLICY_NONE": 0, - "CLEANPOD_POLICY_RUNNING": 1, - "CLEANPOD_POLICY_ALL": 2, -} - -func (x CleanPodPolicy) String() string { - return proto.EnumName(CleanPodPolicy_name, int32(x)) -} - -func (CleanPodPolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_f625aa9156a15090, []int{1} -} - -type RunPolicy struct { - // Defines the policy to kill pods after the job completes. Default to None. - CleanPodPolicy CleanPodPolicy `protobuf:"varint,1,opt,name=clean_pod_policy,json=cleanPodPolicy,proto3,enum=flyteidl.plugins.kubeflow.CleanPodPolicy" json:"clean_pod_policy,omitempty"` - // TTL to clean up jobs. Default to infinite. - TtlSecondsAfterFinished int32 `protobuf:"varint,2,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` - // Specifies the duration in seconds relative to the startTime that the job may be active - // before the system tries to terminate it; value must be positive integer. - ActiveDeadlineSeconds int32 `protobuf:"varint,3,opt,name=active_deadline_seconds,json=activeDeadlineSeconds,proto3" json:"active_deadline_seconds,omitempty"` - // Number of retries before marking this job failed. - BackoffLimit int32 `protobuf:"varint,4,opt,name=backoff_limit,json=backoffLimit,proto3" json:"backoff_limit,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RunPolicy) Reset() { *m = RunPolicy{} } -func (m *RunPolicy) String() string { return proto.CompactTextString(m) } -func (*RunPolicy) ProtoMessage() {} -func (*RunPolicy) Descriptor() ([]byte, []int) { - return fileDescriptor_f625aa9156a15090, []int{0} -} - -func (m *RunPolicy) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RunPolicy.Unmarshal(m, b) -} -func (m *RunPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RunPolicy.Marshal(b, m, deterministic) -} -func (m *RunPolicy) XXX_Merge(src proto.Message) { - xxx_messageInfo_RunPolicy.Merge(m, src) -} -func (m *RunPolicy) XXX_Size() int { - return xxx_messageInfo_RunPolicy.Size(m) -} -func (m *RunPolicy) XXX_DiscardUnknown() { - xxx_messageInfo_RunPolicy.DiscardUnknown(m) -} - -var xxx_messageInfo_RunPolicy proto.InternalMessageInfo - -func (m *RunPolicy) GetCleanPodPolicy() CleanPodPolicy { - if m != nil { - return m.CleanPodPolicy - } - return CleanPodPolicy_CLEANPOD_POLICY_NONE -} - -func (m *RunPolicy) GetTtlSecondsAfterFinished() int32 { - if m != nil { - return m.TtlSecondsAfterFinished - } - return 0 -} - -func (m *RunPolicy) GetActiveDeadlineSeconds() int32 { - if m != nil { - return m.ActiveDeadlineSeconds - } - return 0 -} - -func (m *RunPolicy) GetBackoffLimit() int32 { - if m != nil { - return m.BackoffLimit - } - return 0 -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.kubeflow.RestartPolicy", RestartPolicy_name, RestartPolicy_value) - proto.RegisterEnum("flyteidl.plugins.kubeflow.CleanPodPolicy", CleanPodPolicy_name, CleanPodPolicy_value) - proto.RegisterType((*RunPolicy)(nil), "flyteidl.plugins.kubeflow.RunPolicy") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/kubeflow/common.proto", fileDescriptor_f625aa9156a15090) -} - -var fileDescriptor_f625aa9156a15090 = []byte{ - // 383 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdf, 0xab, 0xd3, 0x30, - 0x1c, 0xc5, 0x6f, 0xe7, 0x0f, 0x30, 0x78, 0x47, 0x89, 0x5e, 0xda, 0x29, 0xc2, 0x45, 0x41, 0xae, - 0x03, 0x5b, 0x50, 0xf0, 0x45, 0x44, 0xea, 0xd6, 0xc9, 0xa0, 0xb4, 0x25, 0xdd, 0x94, 0xf9, 0x12, - 0xdb, 0x34, 0xed, 0xc2, 0xd2, 0xa4, 0xb4, 0xa9, 0xb2, 0x7f, 0xdd, 0x27, 0xe9, 0x8f, 0x0d, 0x56, - 0xb8, 0x6f, 0xed, 0xf9, 0x9c, 0xef, 0xf9, 0x86, 0xe4, 0x80, 0xb7, 0x19, 0x3f, 0x2a, 0xca, 0x52, - 0x6e, 0x97, 0xbc, 0xc9, 0x99, 0xa8, 0xed, 0x43, 0x93, 0xd0, 0x8c, 0xcb, 0xbf, 0x36, 0x91, 0x45, - 0x21, 0x85, 0x55, 0x56, 0x52, 0x49, 0x38, 0x3b, 0xf9, 0xac, 0xc1, 0x67, 0x9d, 0x7c, 0xaf, 0xff, - 0x69, 0xe0, 0x09, 0x6a, 0x44, 0x28, 0x39, 0x23, 0x47, 0x18, 0x01, 0x9d, 0x70, 0x1a, 0x0b, 0x5c, - 0xca, 0x14, 0x97, 0x9d, 0x66, 0x6a, 0xb7, 0xda, 0xdd, 0xf4, 0xc3, 0x3b, 0xeb, 0xde, 0x0c, 0x6b, - 0xd1, 0x8e, 0x84, 0x32, 0xed, 0x43, 0xd0, 0x94, 0x5c, 0xfc, 0xc3, 0xcf, 0xe0, 0x85, 0x52, 0x1c, - 0xd7, 0x94, 0x48, 0x91, 0xd6, 0x38, 0xce, 0x14, 0xad, 0x70, 0xc6, 0x04, 0xab, 0xf7, 0x34, 0x35, - 0x27, 0xb7, 0xda, 0xdd, 0x23, 0x64, 0x28, 0xc5, 0xa3, 0xde, 0xe0, 0xb4, 0x7c, 0x35, 0x60, 0xf8, - 0x09, 0x18, 0x31, 0x51, 0xec, 0x0f, 0xc5, 0x29, 0x8d, 0x53, 0xce, 0x04, 0x3d, 0x05, 0x99, 0x0f, - 0xba, 0xc9, 0x9b, 0x1e, 0x2f, 0x07, 0x3a, 0x84, 0xc0, 0x37, 0xe0, 0x3a, 0x89, 0xc9, 0x41, 0x66, - 0x19, 0xe6, 0xac, 0x60, 0xca, 0x7c, 0xd8, 0xb9, 0x9f, 0x0e, 0xa2, 0xd7, 0x6a, 0x73, 0x02, 0xae, - 0x11, 0xad, 0x55, 0x5c, 0xa9, 0xe1, 0xa8, 0x26, 0x78, 0x8e, 0xdc, 0x68, 0xe3, 0xa0, 0x0d, 0x0e, - 0x03, 0x6f, 0xbd, 0xd8, 0x61, 0xdf, 0xfd, 0xe1, 0x22, 0xfd, 0x0a, 0xbe, 0x02, 0xb3, 0x11, 0x09, - 0x7c, 0xbc, 0x72, 0xd6, 0xde, 0x16, 0xb9, 0xba, 0x06, 0x67, 0xe0, 0x66, 0x84, 0x1d, 0xef, 0xa7, - 0xb3, 0x8b, 0xf4, 0xc9, 0xfc, 0x37, 0x98, 0x5e, 0x5e, 0x50, 0xbb, 0x65, 0xe1, 0xb9, 0x8e, 0x1f, - 0x06, 0xcb, 0xf3, 0x9a, 0xc0, 0x77, 0xf5, 0x2b, 0xf8, 0x12, 0x18, 0x63, 0x82, 0xb6, 0xbe, 0xbf, - 0xf6, 0xbf, 0xeb, 0x1a, 0x34, 0xc0, 0xb3, 0x31, 0x74, 0x3c, 0x4f, 0x9f, 0x7c, 0xfb, 0xfa, 0xeb, - 0x4b, 0xce, 0xd4, 0xbe, 0x49, 0x2c, 0x22, 0x0b, 0xbb, 0x7b, 0x27, 0x59, 0xe5, 0xfd, 0x87, 0x7d, - 0xae, 0x48, 0x4e, 0x85, 0x5d, 0x26, 0xef, 0x73, 0x69, 0x8f, 0x5b, 0x93, 0x3c, 0xee, 0x6a, 0xf2, - 0xf1, 0x7f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd4, 0xd4, 0xfd, 0x1c, 0x50, 0x02, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go deleted file mode 100644 index aa56485d6a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/mpi.pb.go +++ /dev/null @@ -1,206 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/kubeflow/mpi.proto - -package plugins - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator -type DistributedMPITrainingTask struct { - // Worker replicas spec - WorkerReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Master replicas spec - LauncherReplicas *DistributedMPITrainingReplicaSpec `protobuf:"bytes,2,opt,name=launcher_replicas,json=launcherReplicas,proto3" json:"launcher_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // Number of slots per worker - Slots int32 `protobuf:"varint,4,opt,name=slots,proto3" json:"slots,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedMPITrainingTask) Reset() { *m = DistributedMPITrainingTask{} } -func (m *DistributedMPITrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedMPITrainingTask) ProtoMessage() {} -func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_298b02c608b0cddf, []int{0} -} - -func (m *DistributedMPITrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedMPITrainingTask.Unmarshal(m, b) -} -func (m *DistributedMPITrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedMPITrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedMPITrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedMPITrainingTask.Merge(m, src) -} -func (m *DistributedMPITrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedMPITrainingTask.Size(m) -} -func (m *DistributedMPITrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedMPITrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedMPITrainingTask proto.InternalMessageInfo - -func (m *DistributedMPITrainingTask) GetWorkerReplicas() *DistributedMPITrainingReplicaSpec { - if m != nil { - return m.WorkerReplicas - } - return nil -} - -func (m *DistributedMPITrainingTask) GetLauncherReplicas() *DistributedMPITrainingReplicaSpec { - if m != nil { - return m.LauncherReplicas - } - return nil -} - -func (m *DistributedMPITrainingTask) GetRunPolicy() *RunPolicy { - if m != nil { - return m.RunPolicy - } - return nil -} - -func (m *DistributedMPITrainingTask) GetSlots() int32 { - if m != nil { - return m.Slots - } - return 0 -} - -// Replica specification for distributed MPI training -type DistributedMPITrainingReplicaSpec struct { - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // Restart policy determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` - // MPI sometimes requires different command set for different replica groups - Command []string `protobuf:"bytes,5,rep,name=command,proto3" json:"command,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedMPITrainingReplicaSpec) Reset() { *m = DistributedMPITrainingReplicaSpec{} } -func (m *DistributedMPITrainingReplicaSpec) String() string { return proto.CompactTextString(m) } -func (*DistributedMPITrainingReplicaSpec) ProtoMessage() {} -func (*DistributedMPITrainingReplicaSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_298b02c608b0cddf, []int{1} -} - -func (m *DistributedMPITrainingReplicaSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Unmarshal(m, b) -} -func (m *DistributedMPITrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Marshal(b, m, deterministic) -} -func (m *DistributedMPITrainingReplicaSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedMPITrainingReplicaSpec.Merge(m, src) -} -func (m *DistributedMPITrainingReplicaSpec) XXX_Size() int { - return xxx_messageInfo_DistributedMPITrainingReplicaSpec.Size(m) -} -func (m *DistributedMPITrainingReplicaSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedMPITrainingReplicaSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedMPITrainingReplicaSpec proto.InternalMessageInfo - -func (m *DistributedMPITrainingReplicaSpec) GetReplicas() int32 { - if m != nil { - return m.Replicas - } - return 0 -} - -func (m *DistributedMPITrainingReplicaSpec) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *DistributedMPITrainingReplicaSpec) GetResources() *core.Resources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *DistributedMPITrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if m != nil { - return m.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -func (m *DistributedMPITrainingReplicaSpec) GetCommand() []string { - if m != nil { - return m.Command - } - return nil -} - -func init() { - proto.RegisterType((*DistributedMPITrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedMPITrainingTask") - proto.RegisterType((*DistributedMPITrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/kubeflow/mpi.proto", fileDescriptor_298b02c608b0cddf) -} - -var fileDescriptor_298b02c608b0cddf = []byte{ - // 376 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x52, 0x3f, 0x8f, 0xd3, 0x30, - 0x1c, 0x55, 0x5a, 0x02, 0xc4, 0x88, 0x02, 0x16, 0x43, 0xc8, 0x54, 0x0a, 0x42, 0x59, 0x88, 0xa5, - 0x22, 0x31, 0x81, 0x90, 0x80, 0x85, 0x01, 0x5d, 0xe5, 0xeb, 0x74, 0x4b, 0xe5, 0xb8, 0x6e, 0x6a, - 0xc5, 0xb1, 0x23, 0xff, 0x51, 0xd5, 0x8f, 0x78, 0xdf, 0xe8, 0xc6, 0x53, 0xe2, 0x24, 0xed, 0x9d, - 0xae, 0xbd, 0xe5, 0x36, 0xbf, 0xf8, 0xfd, 0xde, 0x7b, 0xbf, 0xf8, 0x81, 0x4f, 0x1b, 0xb1, 0xb7, - 0x8c, 0xaf, 0x05, 0xaa, 0x85, 0x2b, 0xb8, 0x34, 0xa8, 0x74, 0x39, 0xdb, 0x08, 0xb5, 0x43, 0x55, - 0xcd, 0xb3, 0x5a, 0x2b, 0xab, 0xe0, 0x87, 0x9e, 0x94, 0x75, 0xa4, 0xac, 0x27, 0x25, 0xc3, 0x15, - 0xa2, 0x4a, 0x33, 0x64, 0x89, 0x29, 0x8d, 0x9f, 0x4a, 0xbe, 0x9c, 0x96, 0xa6, 0xaa, 0xaa, 0x94, - 0xf4, 0xbc, 0xd9, 0xf5, 0x08, 0x24, 0x7f, 0xb9, 0xb1, 0x9a, 0xe7, 0xce, 0xb2, 0xf5, 0xff, 0xc5, - 0xbf, 0xa5, 0x26, 0x5c, 0x72, 0x59, 0x2c, 0x89, 0x29, 0x21, 0x03, 0x6f, 0x76, 0x4a, 0x97, 0x4c, - 0xaf, 0x34, 0xab, 0x05, 0xa7, 0xc4, 0xc4, 0xc1, 0x34, 0x48, 0x5f, 0xcd, 0x7f, 0x64, 0x27, 0x63, - 0x65, 0x0f, 0xeb, 0x61, 0x2f, 0x70, 0x59, 0x33, 0x8a, 0x27, 0x5e, 0xb4, 0xfb, 0x64, 0x20, 0x07, - 0xef, 0x04, 0x71, 0x92, 0x6e, 0x8f, 0x8d, 0x46, 0x4f, 0x60, 0xf4, 0xb6, 0x97, 0x1d, 0xac, 0xfe, - 0x00, 0xa0, 0x9d, 0x5c, 0xd5, 0x4a, 0x70, 0xba, 0x8f, 0xc7, 0xad, 0xc7, 0xe7, 0x33, 0x1e, 0xd8, - 0xc9, 0x45, 0xcb, 0xc5, 0x91, 0xee, 0x8f, 0xf0, 0x3d, 0x08, 0x8d, 0x50, 0xd6, 0xc4, 0xcf, 0xa6, - 0x41, 0x1a, 0x62, 0x0f, 0x66, 0x37, 0x01, 0xf8, 0xf8, 0x68, 0x24, 0x98, 0x80, 0x97, 0x77, 0xfe, - 0x65, 0x88, 0x07, 0xdc, 0xe8, 0xf2, 0x8a, 0x14, 0xac, 0xdd, 0x3d, 0xc2, 0x1e, 0xc0, 0xef, 0x20, - 0xd2, 0xcc, 0x28, 0xa7, 0x29, 0x33, 0x5d, 0xe2, 0xf8, 0x90, 0xb8, 0x79, 0xfa, 0x0c, 0xf7, 0xf7, - 0xf8, 0x40, 0x85, 0x17, 0x60, 0xa2, 0x99, 0xb1, 0x44, 0xdb, 0x7e, 0xdd, 0x26, 0xee, 0x64, 0x9e, - 0x9e, 0x5b, 0xd7, 0x0f, 0x74, 0x2b, 0xbf, 0xd6, 0xc7, 0x10, 0xc6, 0xe0, 0x45, 0x53, 0x1e, 0x22, - 0xd7, 0x71, 0x38, 0x1d, 0xa7, 0x11, 0xee, 0xe1, 0xef, 0x5f, 0x57, 0x3f, 0x0b, 0x6e, 0xb7, 0x2e, - 0xcf, 0xa8, 0xaa, 0x50, 0x2b, 0xaf, 0x74, 0xe1, 0x0f, 0x68, 0xa8, 0x62, 0xc1, 0x24, 0xaa, 0xf3, - 0xaf, 0x85, 0x42, 0xf7, 0xdb, 0x99, 0x3f, 0x6f, 0xeb, 0xf8, 0xed, 0x36, 0x00, 0x00, 0xff, 0xff, - 0x4b, 0x54, 0x61, 0xa1, 0x13, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go deleted file mode 100644 index dbf68eb61c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/pytorch.pb.go +++ /dev/null @@ -1,276 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/kubeflow/pytorch.proto - -package plugins - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Custom proto for torch elastic config for distributed training using -// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go -type ElasticConfig struct { - RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` - MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` - MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ElasticConfig) Reset() { *m = ElasticConfig{} } -func (m *ElasticConfig) String() string { return proto.CompactTextString(m) } -func (*ElasticConfig) ProtoMessage() {} -func (*ElasticConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_37e97bee6e09d707, []int{0} -} - -func (m *ElasticConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ElasticConfig.Unmarshal(m, b) -} -func (m *ElasticConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ElasticConfig.Marshal(b, m, deterministic) -} -func (m *ElasticConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ElasticConfig.Merge(m, src) -} -func (m *ElasticConfig) XXX_Size() int { - return xxx_messageInfo_ElasticConfig.Size(m) -} -func (m *ElasticConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ElasticConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ElasticConfig proto.InternalMessageInfo - -func (m *ElasticConfig) GetRdzvBackend() string { - if m != nil { - return m.RdzvBackend - } - return "" -} - -func (m *ElasticConfig) GetMinReplicas() int32 { - if m != nil { - return m.MinReplicas - } - return 0 -} - -func (m *ElasticConfig) GetMaxReplicas() int32 { - if m != nil { - return m.MaxReplicas - } - return 0 -} - -func (m *ElasticConfig) GetNprocPerNode() int32 { - if m != nil { - return m.NprocPerNode - } - return 0 -} - -func (m *ElasticConfig) GetMaxRestarts() int32 { - if m != nil { - return m.MaxRestarts - } - return 0 -} - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator -type DistributedPyTorchTrainingTask struct { - // Worker replicas spec - WorkerReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Master replicas spec, master replicas can only have 1 replica - MasterReplicas *DistributedPyTorchTrainingReplicaSpec `protobuf:"bytes,2,opt,name=master_replicas,json=masterReplicas,proto3" json:"master_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,3,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // config for an elastic pytorch job - ElasticConfig *ElasticConfig `protobuf:"bytes,4,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedPyTorchTrainingTask) Reset() { *m = DistributedPyTorchTrainingTask{} } -func (m *DistributedPyTorchTrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedPyTorchTrainingTask) ProtoMessage() {} -func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_37e97bee6e09d707, []int{1} -} - -func (m *DistributedPyTorchTrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Unmarshal(m, b) -} -func (m *DistributedPyTorchTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedPyTorchTrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedPyTorchTrainingTask.Merge(m, src) -} -func (m *DistributedPyTorchTrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Size(m) -} -func (m *DistributedPyTorchTrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedPyTorchTrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedPyTorchTrainingTask proto.InternalMessageInfo - -func (m *DistributedPyTorchTrainingTask) GetWorkerReplicas() *DistributedPyTorchTrainingReplicaSpec { - if m != nil { - return m.WorkerReplicas - } - return nil -} - -func (m *DistributedPyTorchTrainingTask) GetMasterReplicas() *DistributedPyTorchTrainingReplicaSpec { - if m != nil { - return m.MasterReplicas - } - return nil -} - -func (m *DistributedPyTorchTrainingTask) GetRunPolicy() *RunPolicy { - if m != nil { - return m.RunPolicy - } - return nil -} - -func (m *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { - if m != nil { - return m.ElasticConfig - } - return nil -} - -type DistributedPyTorchTrainingReplicaSpec struct { - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // RestartPolicy determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedPyTorchTrainingReplicaSpec) Reset() { *m = DistributedPyTorchTrainingReplicaSpec{} } -func (m *DistributedPyTorchTrainingReplicaSpec) String() string { return proto.CompactTextString(m) } -func (*DistributedPyTorchTrainingReplicaSpec) ProtoMessage() {} -func (*DistributedPyTorchTrainingReplicaSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_37e97bee6e09d707, []int{2} -} - -func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Unmarshal(m, b) -} -func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Marshal(b, m, deterministic) -} -func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Merge(m, src) -} -func (m *DistributedPyTorchTrainingReplicaSpec) XXX_Size() int { - return xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.Size(m) -} -func (m *DistributedPyTorchTrainingReplicaSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedPyTorchTrainingReplicaSpec proto.InternalMessageInfo - -func (m *DistributedPyTorchTrainingReplicaSpec) GetReplicas() int32 { - if m != nil { - return m.Replicas - } - return 0 -} - -func (m *DistributedPyTorchTrainingReplicaSpec) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *DistributedPyTorchTrainingReplicaSpec) GetResources() *core.Resources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *DistributedPyTorchTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if m != nil { - return m.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -func init() { - proto.RegisterType((*ElasticConfig)(nil), "flyteidl.plugins.kubeflow.ElasticConfig") - proto.RegisterType((*DistributedPyTorchTrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask") - proto.RegisterType((*DistributedPyTorchTrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/kubeflow/pytorch.proto", fileDescriptor_37e97bee6e09d707) -} - -var fileDescriptor_37e97bee6e09d707 = []byte{ - // 470 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xcf, 0x8e, 0xd3, 0x30, - 0x10, 0xc6, 0xd5, 0x5d, 0x8a, 0xa8, 0xb3, 0xed, 0x4a, 0x11, 0x87, 0xd0, 0x03, 0x5a, 0xaa, 0x05, - 0x7a, 0x21, 0x91, 0x8a, 0xc4, 0x0d, 0x81, 0x76, 0xe1, 0x0a, 0x95, 0xe9, 0x89, 0x4b, 0xe4, 0x38, - 0xd3, 0xac, 0x95, 0xc4, 0x8e, 0xc6, 0x0e, 0xbb, 0xe5, 0x19, 0x78, 0x29, 0x5e, 0x85, 0x27, 0x41, - 0xb1, 0xf3, 0xa7, 0x8b, 0xd4, 0x8a, 0xc3, 0xde, 0x32, 0xe3, 0x5f, 0xbe, 0xf1, 0x37, 0x9e, 0x21, - 0xaf, 0xb7, 0xc5, 0xce, 0x80, 0x48, 0x8b, 0xa8, 0x2a, 0xea, 0x4c, 0x48, 0x1d, 0xe5, 0x75, 0x02, - 0xdb, 0x42, 0xdd, 0x46, 0xd5, 0xce, 0x28, 0xe4, 0x37, 0x61, 0x85, 0xca, 0x28, 0xff, 0x59, 0x07, - 0x86, 0x2d, 0x18, 0x76, 0xe0, 0xbc, 0x3f, 0x8a, 0xb8, 0x42, 0x88, 0x0c, 0xd3, 0xb9, 0x76, 0x7f, - 0xcd, 0x5f, 0x1d, 0x96, 0xe7, 0xaa, 0x2c, 0x95, 0x74, 0xdc, 0xe2, 0xf7, 0x88, 0x4c, 0x3f, 0x17, - 0x4c, 0x1b, 0xc1, 0xaf, 0x95, 0xdc, 0x8a, 0xcc, 0x7f, 0x41, 0xce, 0x30, 0xfd, 0xf9, 0x23, 0x4e, - 0x18, 0xcf, 0x41, 0xa6, 0xc1, 0xe8, 0x62, 0xb4, 0x9c, 0x50, 0xaf, 0xc9, 0x5d, 0xb9, 0x54, 0x83, - 0x94, 0x42, 0xc6, 0x08, 0x55, 0x21, 0x38, 0xd3, 0xc1, 0xc9, 0xc5, 0x68, 0x39, 0xa6, 0x5e, 0x29, - 0x24, 0x6d, 0x53, 0x16, 0x61, 0x77, 0x03, 0x72, 0xda, 0x22, 0xec, 0xae, 0x47, 0x2e, 0xc9, 0x4c, - 0x56, 0xa8, 0x78, 0x5c, 0x01, 0xc6, 0x52, 0xa5, 0x10, 0x3c, 0xb2, 0xd0, 0x99, 0xcd, 0xae, 0x01, - 0xbf, 0xa8, 0x14, 0x06, 0x21, 0x6d, 0x18, 0x1a, 0x1d, 0x8c, 0xf7, 0x84, 0x5c, 0x6a, 0xf1, 0xeb, - 0x94, 0x3c, 0xff, 0x24, 0xb4, 0x41, 0x91, 0xd4, 0x06, 0xd2, 0xf5, 0x6e, 0xd3, 0xb4, 0x6f, 0x83, - 0x4c, 0x48, 0x21, 0xb3, 0x0d, 0xd3, 0xb9, 0x2f, 0xc8, 0xf9, 0xad, 0xc2, 0x1c, 0x70, 0xb8, 0x51, - 0xe3, 0xcb, 0x5b, 0x7d, 0x0c, 0x0f, 0xb6, 0x37, 0x3c, 0xac, 0xd9, 0x7a, 0xf8, 0x56, 0x01, 0xa7, - 0x33, 0x27, 0xdc, 0xdb, 0x12, 0xe4, 0xbc, 0x64, 0xda, 0xec, 0x97, 0x3a, 0x79, 0xa8, 0x52, 0x4e, - 0xb8, 0x2f, 0x75, 0x4d, 0x08, 0xd6, 0x32, 0xae, 0x54, 0x21, 0xf8, 0xce, 0xb6, 0xd8, 0x5b, 0x5d, - 0x1e, 0xa9, 0x42, 0x6b, 0xb9, 0xb6, 0x2c, 0x9d, 0x60, 0xf7, 0xe9, 0x7f, 0x25, 0x33, 0x70, 0x03, - 0x10, 0x73, 0x3b, 0x01, 0xf6, 0x19, 0xbc, 0xd5, 0xf2, 0x88, 0xd0, 0xbd, 0x89, 0xa1, 0x53, 0xd8, - 0x0f, 0x17, 0x7f, 0x46, 0xe4, 0xe5, 0x7f, 0xf9, 0xf1, 0xe7, 0xe4, 0xc9, 0xbd, 0xe7, 0x18, 0xd3, - 0x3e, 0xf6, 0x9f, 0x92, 0xb1, 0x28, 0x59, 0x06, 0xb6, 0x79, 0x13, 0xea, 0x02, 0xff, 0x1d, 0x99, - 0x20, 0x68, 0x55, 0x23, 0x07, 0xdd, 0x1a, 0x0e, 0x86, 0x7b, 0x36, 0x5b, 0x10, 0xd2, 0xee, 0x9c, - 0x0e, 0x68, 0x63, 0xb2, 0x9d, 0xa0, 0xae, 0x5b, 0x8d, 0xc9, 0xd9, 0x51, 0x93, 0xed, 0x7c, 0xb5, - 0x1d, 0x9b, 0xe2, 0x7e, 0x78, 0xf5, 0xe1, 0xfb, 0xfb, 0x4c, 0x98, 0x9b, 0x3a, 0x09, 0xb9, 0x2a, - 0x23, 0x2b, 0xa2, 0x30, 0x73, 0x1f, 0x51, 0xbf, 0x7b, 0x19, 0xc8, 0xa8, 0x4a, 0xde, 0x64, 0x2a, - 0xfa, 0x77, 0x1d, 0x93, 0xc7, 0x76, 0xff, 0xde, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x8b, 0x2e, - 0x7b, 0x3a, 0x08, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go deleted file mode 100644 index 04243dec6e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/kubeflow/tensorflow.pb.go +++ /dev/null @@ -1,207 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -package plugins - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator -type DistributedTensorflowTrainingTask struct { - // Worker replicas spec - WorkerReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,1,opt,name=worker_replicas,json=workerReplicas,proto3" json:"worker_replicas,omitempty"` - // Parameter server replicas spec - PsReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` - // Chief replicas spec - ChiefReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` - // RunPolicy encapsulates various runtime policies of the distributed training - // job, for example how to clean up resources and how long the job can stay - // active. - RunPolicy *RunPolicy `protobuf:"bytes,4,opt,name=run_policy,json=runPolicy,proto3" json:"run_policy,omitempty"` - // Evaluator replicas spec - EvaluatorReplicas *DistributedTensorflowTrainingReplicaSpec `protobuf:"bytes,5,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedTensorflowTrainingTask) Reset() { *m = DistributedTensorflowTrainingTask{} } -func (m *DistributedTensorflowTrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedTensorflowTrainingTask) ProtoMessage() {} -func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_93de2bd764ddf01a, []int{0} -} - -func (m *DistributedTensorflowTrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Unmarshal(m, b) -} -func (m *DistributedTensorflowTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedTensorflowTrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedTensorflowTrainingTask.Merge(m, src) -} -func (m *DistributedTensorflowTrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Size(m) -} -func (m *DistributedTensorflowTrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedTensorflowTrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedTensorflowTrainingTask proto.InternalMessageInfo - -func (m *DistributedTensorflowTrainingTask) GetWorkerReplicas() *DistributedTensorflowTrainingReplicaSpec { - if m != nil { - return m.WorkerReplicas - } - return nil -} - -func (m *DistributedTensorflowTrainingTask) GetPsReplicas() *DistributedTensorflowTrainingReplicaSpec { - if m != nil { - return m.PsReplicas - } - return nil -} - -func (m *DistributedTensorflowTrainingTask) GetChiefReplicas() *DistributedTensorflowTrainingReplicaSpec { - if m != nil { - return m.ChiefReplicas - } - return nil -} - -func (m *DistributedTensorflowTrainingTask) GetRunPolicy() *RunPolicy { - if m != nil { - return m.RunPolicy - } - return nil -} - -func (m *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() *DistributedTensorflowTrainingReplicaSpec { - if m != nil { - return m.EvaluatorReplicas - } - return nil -} - -type DistributedTensorflowTrainingReplicaSpec struct { - // Number of replicas - Replicas int32 `protobuf:"varint,1,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Image used for the replica group - Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` - // Resources required for the replica group - Resources *core.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` - // RestartPolicy Determines whether pods will be restarted when they exit - RestartPolicy RestartPolicy `protobuf:"varint,4,opt,name=restart_policy,json=restartPolicy,proto3,enum=flyteidl.plugins.kubeflow.RestartPolicy" json:"restart_policy,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedTensorflowTrainingReplicaSpec) Reset() { - *m = DistributedTensorflowTrainingReplicaSpec{} -} -func (m *DistributedTensorflowTrainingReplicaSpec) String() string { return proto.CompactTextString(m) } -func (*DistributedTensorflowTrainingReplicaSpec) ProtoMessage() {} -func (*DistributedTensorflowTrainingReplicaSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_93de2bd764ddf01a, []int{1} -} - -func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Unmarshal(m, b) -} -func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Marshal(b, m, deterministic) -} -func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Merge(m, src) -} -func (m *DistributedTensorflowTrainingReplicaSpec) XXX_Size() int { - return xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.Size(m) -} -func (m *DistributedTensorflowTrainingReplicaSpec) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedTensorflowTrainingReplicaSpec proto.InternalMessageInfo - -func (m *DistributedTensorflowTrainingReplicaSpec) GetReplicas() int32 { - if m != nil { - return m.Replicas - } - return 0 -} - -func (m *DistributedTensorflowTrainingReplicaSpec) GetImage() string { - if m != nil { - return m.Image - } - return "" -} - -func (m *DistributedTensorflowTrainingReplicaSpec) GetResources() *core.Resources { - if m != nil { - return m.Resources - } - return nil -} - -func (m *DistributedTensorflowTrainingReplicaSpec) GetRestartPolicy() RestartPolicy { - if m != nil { - return m.RestartPolicy - } - return RestartPolicy_RESTART_POLICY_NEVER -} - -func init() { - proto.RegisterType((*DistributedTensorflowTrainingTask)(nil), "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask") - proto.RegisterType((*DistributedTensorflowTrainingReplicaSpec)(nil), "flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec") -} - -func init() { - proto.RegisterFile("flyteidl/plugins/kubeflow/tensorflow.proto", fileDescriptor_93de2bd764ddf01a) -} - -var fileDescriptor_93de2bd764ddf01a = []byte{ - // 382 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xc1, 0x6a, 0xe3, 0x30, - 0x10, 0x86, 0xc9, 0x6e, 0xb2, 0x6c, 0x14, 0xe2, 0x65, 0xc5, 0x1e, 0xb2, 0x39, 0xed, 0x86, 0x65, - 0x09, 0x85, 0x5a, 0x90, 0x42, 0x6f, 0xa5, 0xd0, 0xf4, 0xde, 0xa2, 0xe6, 0xd4, 0x4b, 0x90, 0x15, - 0xc5, 0x51, 0x2d, 0x4b, 0x62, 0x24, 0x35, 0xe4, 0x5d, 0xfa, 0x7a, 0x7d, 0x8f, 0x12, 0x3b, 0xb6, - 0xd3, 0x42, 0x42, 0x0f, 0xb9, 0xcd, 0x58, 0xff, 0xfc, 0xdf, 0x78, 0xa4, 0x41, 0x67, 0x4b, 0xb5, - 0xf1, 0x42, 0x2e, 0x14, 0xb1, 0x2a, 0xa4, 0x52, 0x3b, 0x92, 0x85, 0x44, 0x2c, 0x95, 0x59, 0x13, - 0x2f, 0xb4, 0x33, 0xb0, 0x0d, 0x63, 0x0b, 0xc6, 0x1b, 0xfc, 0xbb, 0xd2, 0xc6, 0x3b, 0x6d, 0x5c, - 0x69, 0x87, 0xf5, 0x11, 0xe1, 0x06, 0x04, 0xf1, 0xcc, 0x65, 0xae, 0xac, 0x1a, 0xfe, 0x3f, 0x4c, - 0xe0, 0x26, 0xcf, 0x8d, 0x2e, 0x75, 0xa3, 0x97, 0x36, 0xfa, 0x7b, 0x2b, 0x9d, 0x07, 0x99, 0x04, - 0x2f, 0x16, 0xb3, 0x9a, 0x3e, 0x03, 0x26, 0xb5, 0xd4, 0xe9, 0x8c, 0xb9, 0x0c, 0x2b, 0xf4, 0x63, - 0x6d, 0x20, 0x13, 0x30, 0x07, 0x61, 0x95, 0xe4, 0xcc, 0x0d, 0x5a, 0x7f, 0x5a, 0xe3, 0xde, 0x64, - 0x1a, 0x1f, 0xec, 0x2e, 0x3e, 0x6a, 0x4b, 0x4b, 0x9f, 0x07, 0x2b, 0x38, 0x8d, 0x4a, 0xef, 0xdd, - 0x27, 0x87, 0x17, 0xa8, 0x67, 0x5d, 0x43, 0xfa, 0x72, 0x3a, 0x12, 0xb2, 0xae, 0xa6, 0x3c, 0xa1, - 0x88, 0xaf, 0xa4, 0x58, 0x36, 0xa0, 0xaf, 0xa7, 0x03, 0xf5, 0x0b, 0xeb, 0x9a, 0x35, 0x45, 0x08, - 0x82, 0x9e, 0x5b, 0xa3, 0x24, 0xdf, 0x0c, 0xda, 0x05, 0xe7, 0xdf, 0x11, 0x0e, 0x0d, 0xfa, 0xbe, - 0xd0, 0xd2, 0x2e, 0x54, 0x21, 0x06, 0x84, 0xc5, 0x33, 0x53, 0x81, 0x79, 0xb3, 0x77, 0x0f, 0x9d, - 0xd3, 0x35, 0xfd, 0xb3, 0xb6, 0xaf, 0x1a, 0x1f, 0xbd, 0xb6, 0xd0, 0xf8, 0xb3, 0xf5, 0x78, 0x88, - 0xbe, 0xbf, 0x7b, 0x1e, 0x1d, 0x5a, 0xe7, 0xf8, 0x17, 0xea, 0xc8, 0x9c, 0xa5, 0xa2, 0xb8, 0xcd, - 0x2e, 0x2d, 0x13, 0x7c, 0x89, 0xba, 0x20, 0x9c, 0x09, 0xc0, 0x45, 0x35, 0xfe, 0x41, 0xf3, 0x27, - 0xdb, 0x47, 0x1d, 0xd3, 0xea, 0x9c, 0x36, 0x52, 0x7c, 0x87, 0x22, 0x10, 0xce, 0x33, 0xf0, 0xfb, - 0x33, 0x8d, 0x26, 0xe3, 0x63, 0x33, 0x2d, 0x0b, 0x76, 0x73, 0xed, 0xc3, 0x7e, 0x7a, 0x73, 0xfd, - 0x78, 0x95, 0x4a, 0xbf, 0x0a, 0x49, 0xcc, 0x4d, 0x4e, 0x0a, 0x13, 0x03, 0x69, 0x19, 0x90, 0x7a, - 0x95, 0x52, 0xa1, 0x89, 0x4d, 0xce, 0x53, 0x43, 0x3e, 0x6e, 0x57, 0xf2, 0xad, 0x58, 0xa7, 0x8b, - 0xb7, 0x00, 0x00, 0x00, 0xff, 0xff, 0x74, 0xcf, 0x60, 0xf4, 0xda, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go deleted file mode 100644 index 5dd2499e87..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/mpi.pb.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/mpi.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator -type DistributedMPITrainingTask struct { - // number of worker spawned in the cluster for this job - NumWorkers int32 `protobuf:"varint,1,opt,name=num_workers,json=numWorkers,proto3" json:"num_workers,omitempty"` - // number of launcher replicas spawned in the cluster for this job - // The launcher pod invokes mpirun and communicates with worker pods through MPI. - NumLauncherReplicas int32 `protobuf:"varint,2,opt,name=num_launcher_replicas,json=numLauncherReplicas,proto3" json:"num_launcher_replicas,omitempty"` - // number of slots per worker used in hostfile. - // The available slots (GPUs) in each pod. - Slots int32 `protobuf:"varint,3,opt,name=slots,proto3" json:"slots,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedMPITrainingTask) Reset() { *m = DistributedMPITrainingTask{} } -func (m *DistributedMPITrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedMPITrainingTask) ProtoMessage() {} -func (*DistributedMPITrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_13cf3fae00e5b069, []int{0} -} - -func (m *DistributedMPITrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedMPITrainingTask.Unmarshal(m, b) -} -func (m *DistributedMPITrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedMPITrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedMPITrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedMPITrainingTask.Merge(m, src) -} -func (m *DistributedMPITrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedMPITrainingTask.Size(m) -} -func (m *DistributedMPITrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedMPITrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedMPITrainingTask proto.InternalMessageInfo - -func (m *DistributedMPITrainingTask) GetNumWorkers() int32 { - if m != nil { - return m.NumWorkers - } - return 0 -} - -func (m *DistributedMPITrainingTask) GetNumLauncherReplicas() int32 { - if m != nil { - return m.NumLauncherReplicas - } - return 0 -} - -func (m *DistributedMPITrainingTask) GetSlots() int32 { - if m != nil { - return m.Slots - } - return 0 -} - -func init() { - proto.RegisterType((*DistributedMPITrainingTask)(nil), "flyteidl.plugins.DistributedMPITrainingTask") -} - -func init() { proto.RegisterFile("flyteidl/plugins/mpi.proto", fileDescriptor_13cf3fae00e5b069) } - -var fileDescriptor_13cf3fae00e5b069 = []byte{ - // 210 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x8f, 0x31, 0x4b, 0xc6, 0x30, - 0x10, 0x40, 0xa9, 0xf2, 0x39, 0xc4, 0x45, 0xa2, 0x42, 0xe9, 0xa2, 0x38, 0xb9, 0xd8, 0x80, 0xce, - 0x22, 0x88, 0x8b, 0xa0, 0x20, 0xa5, 0x20, 0xb8, 0x94, 0xa4, 0x8d, 0xe9, 0xd1, 0xe4, 0x12, 0x2e, - 0x09, 0xe2, 0x2f, 0xf0, 0x6f, 0x8b, 0x69, 0x75, 0x70, 0xbb, 0xbb, 0xf7, 0x86, 0x7b, 0xac, 0x79, - 0xb7, 0x9f, 0x49, 0xc3, 0x64, 0x45, 0xb0, 0xd9, 0x00, 0x46, 0xe1, 0x02, 0xb4, 0x81, 0x7c, 0xf2, - 0xfc, 0xe8, 0x97, 0xb5, 0x1b, 0xbb, 0xf8, 0xaa, 0x58, 0xf3, 0x00, 0x31, 0x11, 0xa8, 0x9c, 0xf4, - 0xf4, 0xfc, 0xf2, 0xd8, 0x93, 0x04, 0x04, 0x34, 0xbd, 0x8c, 0x0b, 0x3f, 0x63, 0x87, 0x98, 0xdd, - 0xf0, 0xe1, 0x69, 0xd1, 0x14, 0xeb, 0xea, 0xbc, 0xba, 0xdc, 0x75, 0x0c, 0xb3, 0x7b, 0x5d, 0x2f, - 0xfc, 0x9a, 0x9d, 0xfe, 0x08, 0x56, 0x66, 0x1c, 0x67, 0x4d, 0x03, 0xe9, 0x60, 0x61, 0x94, 0xb1, - 0xde, 0x2b, 0xea, 0x31, 0x66, 0xf7, 0xb4, 0xb1, 0x6e, 0x43, 0xfc, 0x84, 0xed, 0xa2, 0xf5, 0x29, - 0xd6, 0xfb, 0xc5, 0x59, 0x97, 0xfb, 0xbb, 0xb7, 0x5b, 0x03, 0x69, 0xce, 0xaa, 0x1d, 0xbd, 0x13, - 0xe5, 0x51, 0x4f, 0x66, 0x1d, 0xc4, 0x5f, 0x93, 0xd1, 0x28, 0x82, 0xba, 0x32, 0x5e, 0xfc, 0xcf, - 0x54, 0x07, 0xa5, 0xf1, 0xe6, 0x3b, 0x00, 0x00, 0xff, 0xff, 0x65, 0x77, 0xd7, 0x89, 0x01, 0x01, - 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go deleted file mode 100644 index 2dc6422b6d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/presto.pb.go +++ /dev/null @@ -1,109 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/presto.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field -// of a Presto task's TaskTemplate -type PrestoQuery struct { - RoutingGroup string `protobuf:"bytes,1,opt,name=routing_group,json=routingGroup,proto3" json:"routing_group,omitempty"` - Catalog string `protobuf:"bytes,2,opt,name=catalog,proto3" json:"catalog,omitempty"` - Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"` - Statement string `protobuf:"bytes,4,opt,name=statement,proto3" json:"statement,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PrestoQuery) Reset() { *m = PrestoQuery{} } -func (m *PrestoQuery) String() string { return proto.CompactTextString(m) } -func (*PrestoQuery) ProtoMessage() {} -func (*PrestoQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_881edc23a44f4737, []int{0} -} - -func (m *PrestoQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PrestoQuery.Unmarshal(m, b) -} -func (m *PrestoQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PrestoQuery.Marshal(b, m, deterministic) -} -func (m *PrestoQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_PrestoQuery.Merge(m, src) -} -func (m *PrestoQuery) XXX_Size() int { - return xxx_messageInfo_PrestoQuery.Size(m) -} -func (m *PrestoQuery) XXX_DiscardUnknown() { - xxx_messageInfo_PrestoQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_PrestoQuery proto.InternalMessageInfo - -func (m *PrestoQuery) GetRoutingGroup() string { - if m != nil { - return m.RoutingGroup - } - return "" -} - -func (m *PrestoQuery) GetCatalog() string { - if m != nil { - return m.Catalog - } - return "" -} - -func (m *PrestoQuery) GetSchema() string { - if m != nil { - return m.Schema - } - return "" -} - -func (m *PrestoQuery) GetStatement() string { - if m != nil { - return m.Statement - } - return "" -} - -func init() { - proto.RegisterType((*PrestoQuery)(nil), "flyteidl.plugins.PrestoQuery") -} - -func init() { proto.RegisterFile("flyteidl/plugins/presto.proto", fileDescriptor_881edc23a44f4737) } - -var fileDescriptor_881edc23a44f4737 = []byte{ - // 198 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4d, 0xcb, 0xa9, 0x2c, - 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x28, 0x4a, - 0x2d, 0x2e, 0xc9, 0xd7, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x49, 0xeb, 0x41, 0xa5, - 0x95, 0x9a, 0x18, 0xb9, 0xb8, 0x03, 0xc0, 0x4a, 0x02, 0x4b, 0x53, 0x8b, 0x2a, 0x85, 0x94, 0xb9, - 0x78, 0x8b, 0xf2, 0x4b, 0x4b, 0x32, 0xf3, 0xd2, 0xe3, 0xd3, 0x8b, 0xf2, 0x4b, 0x0b, 0x24, 0x18, - 0x15, 0x18, 0x35, 0x38, 0x83, 0x78, 0xa0, 0x82, 0xee, 0x20, 0x31, 0x21, 0x09, 0x2e, 0xf6, 0xe4, - 0xc4, 0x92, 0xc4, 0x9c, 0xfc, 0x74, 0x09, 0x26, 0xb0, 0x34, 0x8c, 0x2b, 0x24, 0xc6, 0xc5, 0x56, - 0x9c, 0x9c, 0x91, 0x9a, 0x9b, 0x28, 0xc1, 0x0c, 0x96, 0x80, 0xf2, 0x84, 0x64, 0xb8, 0x38, 0x8b, - 0x4b, 0x12, 0x4b, 0x52, 0x73, 0x53, 0xf3, 0x4a, 0x24, 0x58, 0xc0, 0x52, 0x08, 0x01, 0x27, 0xfb, - 0x28, 0xdb, 0xf4, 0xcc, 0x92, 0x8c, 0xd2, 0x24, 0xbd, 0xe4, 0xfc, 0x5c, 0x7d, 0xb0, 0x1b, 0xf3, - 0x8b, 0xd2, 0x21, 0x0c, 0x7d, 0xb8, 0x8f, 0xd2, 0x53, 0xf3, 0xf4, 0x0b, 0x92, 0x74, 0xd3, 0xf3, - 0xf5, 0xd1, 0x3d, 0x99, 0xc4, 0x06, 0xf6, 0x9e, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0xf2, 0xdf, - 0x0e, 0x21, 0xff, 0x00, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go deleted file mode 100644 index 84dda381a4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/pytorch.pb.go +++ /dev/null @@ -1,175 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/pytorch.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Custom proto for torch elastic config for distributed training using -// https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go -type ElasticConfig struct { - RdzvBackend string `protobuf:"bytes,1,opt,name=rdzv_backend,json=rdzvBackend,proto3" json:"rdzv_backend,omitempty"` - MinReplicas int32 `protobuf:"varint,2,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - MaxReplicas int32 `protobuf:"varint,3,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - NprocPerNode int32 `protobuf:"varint,4,opt,name=nproc_per_node,json=nprocPerNode,proto3" json:"nproc_per_node,omitempty"` - MaxRestarts int32 `protobuf:"varint,5,opt,name=max_restarts,json=maxRestarts,proto3" json:"max_restarts,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ElasticConfig) Reset() { *m = ElasticConfig{} } -func (m *ElasticConfig) String() string { return proto.CompactTextString(m) } -func (*ElasticConfig) ProtoMessage() {} -func (*ElasticConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_4df8a9374b28b766, []int{0} -} - -func (m *ElasticConfig) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_ElasticConfig.Unmarshal(m, b) -} -func (m *ElasticConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_ElasticConfig.Marshal(b, m, deterministic) -} -func (m *ElasticConfig) XXX_Merge(src proto.Message) { - xxx_messageInfo_ElasticConfig.Merge(m, src) -} -func (m *ElasticConfig) XXX_Size() int { - return xxx_messageInfo_ElasticConfig.Size(m) -} -func (m *ElasticConfig) XXX_DiscardUnknown() { - xxx_messageInfo_ElasticConfig.DiscardUnknown(m) -} - -var xxx_messageInfo_ElasticConfig proto.InternalMessageInfo - -func (m *ElasticConfig) GetRdzvBackend() string { - if m != nil { - return m.RdzvBackend - } - return "" -} - -func (m *ElasticConfig) GetMinReplicas() int32 { - if m != nil { - return m.MinReplicas - } - return 0 -} - -func (m *ElasticConfig) GetMaxReplicas() int32 { - if m != nil { - return m.MaxReplicas - } - return 0 -} - -func (m *ElasticConfig) GetNprocPerNode() int32 { - if m != nil { - return m.NprocPerNode - } - return 0 -} - -func (m *ElasticConfig) GetMaxRestarts() int32 { - if m != nil { - return m.MaxRestarts - } - return 0 -} - -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator -type DistributedPyTorchTrainingTask struct { - // number of worker replicas spawned in the cluster for this job - Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` - // config for an elastic pytorch job - // - ElasticConfig *ElasticConfig `protobuf:"bytes,2,opt,name=elastic_config,json=elasticConfig,proto3" json:"elastic_config,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedPyTorchTrainingTask) Reset() { *m = DistributedPyTorchTrainingTask{} } -func (m *DistributedPyTorchTrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedPyTorchTrainingTask) ProtoMessage() {} -func (*DistributedPyTorchTrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_4df8a9374b28b766, []int{1} -} - -func (m *DistributedPyTorchTrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Unmarshal(m, b) -} -func (m *DistributedPyTorchTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedPyTorchTrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedPyTorchTrainingTask.Merge(m, src) -} -func (m *DistributedPyTorchTrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedPyTorchTrainingTask.Size(m) -} -func (m *DistributedPyTorchTrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedPyTorchTrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedPyTorchTrainingTask proto.InternalMessageInfo - -func (m *DistributedPyTorchTrainingTask) GetWorkers() int32 { - if m != nil { - return m.Workers - } - return 0 -} - -func (m *DistributedPyTorchTrainingTask) GetElasticConfig() *ElasticConfig { - if m != nil { - return m.ElasticConfig - } - return nil -} - -func init() { - proto.RegisterType((*ElasticConfig)(nil), "flyteidl.plugins.ElasticConfig") - proto.RegisterType((*DistributedPyTorchTrainingTask)(nil), "flyteidl.plugins.DistributedPyTorchTrainingTask") -} - -func init() { proto.RegisterFile("flyteidl/plugins/pytorch.proto", fileDescriptor_4df8a9374b28b766) } - -var fileDescriptor_4df8a9374b28b766 = []byte{ - // 300 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x91, 0xbd, 0x4f, 0xc3, 0x30, - 0x10, 0xc5, 0x15, 0xa0, 0x20, 0xdc, 0x0f, 0xa1, 0x4c, 0x99, 0x4a, 0xa9, 0x18, 0xba, 0x90, 0x48, - 0x30, 0x23, 0xa4, 0xf2, 0x31, 0xa2, 0x2a, 0xea, 0xc4, 0x12, 0x39, 0xf6, 0xd5, 0x3d, 0x35, 0xb5, - 0xad, 0xb3, 0x0b, 0x2d, 0x23, 0xff, 0x19, 0xff, 0x19, 0xaa, 0xd3, 0x2f, 0xba, 0xf9, 0xde, 0xfd, - 0x7c, 0xd2, 0x7b, 0x8f, 0x75, 0x27, 0xd5, 0xca, 0x03, 0xca, 0x2a, 0xb3, 0xd5, 0x42, 0xa1, 0x76, - 0x99, 0x5d, 0x79, 0x43, 0x62, 0x9a, 0x5a, 0x32, 0xde, 0xc4, 0x57, 0xdb, 0x7d, 0xba, 0xd9, 0xf7, - 0x7f, 0x23, 0xd6, 0x7e, 0xad, 0xb8, 0xf3, 0x28, 0x9e, 0x8d, 0x9e, 0xa0, 0x8a, 0x6f, 0x58, 0x8b, - 0xe4, 0xf7, 0x67, 0x51, 0x72, 0x31, 0x03, 0x2d, 0x93, 0xa8, 0x17, 0x0d, 0x2e, 0xf3, 0xe6, 0x5a, - 0x1b, 0xd6, 0xd2, 0x1a, 0x99, 0xa3, 0x2e, 0x08, 0x6c, 0x85, 0x82, 0xbb, 0xe4, 0xa4, 0x17, 0x0d, - 0x1a, 0x79, 0x73, 0x8e, 0x3a, 0xdf, 0x48, 0x01, 0xe1, 0xcb, 0x3d, 0x72, 0xba, 0x41, 0xf8, 0x72, - 0x87, 0xdc, 0xb2, 0x8e, 0xb6, 0x64, 0x44, 0x61, 0x81, 0x0a, 0x6d, 0x24, 0x24, 0x67, 0x01, 0x6a, - 0x05, 0x75, 0x04, 0xf4, 0x6e, 0x24, 0xec, 0x0f, 0x39, 0xcf, 0xc9, 0xbb, 0xa4, 0x71, 0x70, 0xa8, - 0x96, 0xfa, 0x3f, 0x11, 0xeb, 0xbe, 0xa0, 0xf3, 0x84, 0xe5, 0xc2, 0x83, 0x1c, 0xad, 0xc6, 0x6b, - 0xcb, 0x63, 0xe2, 0xa8, 0x51, 0xab, 0x31, 0x77, 0xb3, 0x38, 0x61, 0x17, 0x5f, 0x86, 0x66, 0x40, - 0x2e, 0xf8, 0x69, 0xe4, 0xdb, 0x31, 0x7e, 0x63, 0x1d, 0xa8, 0xfd, 0x17, 0x22, 0x04, 0x10, 0xdc, - 0x34, 0xef, 0xaf, 0xd3, 0xe3, 0xac, 0xd2, 0x7f, 0x39, 0xe5, 0x6d, 0x38, 0x1c, 0x87, 0x4f, 0x1f, - 0x8f, 0x0a, 0xfd, 0x74, 0x51, 0xa6, 0xc2, 0xcc, 0xb3, 0xf0, 0xd7, 0x90, 0xaa, 0x1f, 0xd9, 0xae, - 0x16, 0x05, 0x3a, 0xb3, 0xe5, 0x9d, 0x32, 0xd9, 0x71, 0x53, 0xe5, 0x79, 0xa8, 0xe8, 0xe1, 0x2f, - 0x00, 0x00, 0xff, 0xff, 0xdb, 0xc8, 0x1d, 0x82, 0xc4, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go deleted file mode 100644 index 6883115069..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/qubole.pb.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/qubole.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Defines a query to execute on a hive cluster. -type HiveQuery struct { - Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` - TimeoutSec uint32 `protobuf:"varint,2,opt,name=timeout_sec,json=timeoutSec,proto3" json:"timeout_sec,omitempty"` - RetryCount uint32 `protobuf:"varint,3,opt,name=retryCount,proto3" json:"retryCount,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HiveQuery) Reset() { *m = HiveQuery{} } -func (m *HiveQuery) String() string { return proto.CompactTextString(m) } -func (*HiveQuery) ProtoMessage() {} -func (*HiveQuery) Descriptor() ([]byte, []int) { - return fileDescriptor_7cb86d766c12ee2e, []int{0} -} - -func (m *HiveQuery) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HiveQuery.Unmarshal(m, b) -} -func (m *HiveQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HiveQuery.Marshal(b, m, deterministic) -} -func (m *HiveQuery) XXX_Merge(src proto.Message) { - xxx_messageInfo_HiveQuery.Merge(m, src) -} -func (m *HiveQuery) XXX_Size() int { - return xxx_messageInfo_HiveQuery.Size(m) -} -func (m *HiveQuery) XXX_DiscardUnknown() { - xxx_messageInfo_HiveQuery.DiscardUnknown(m) -} - -var xxx_messageInfo_HiveQuery proto.InternalMessageInfo - -func (m *HiveQuery) GetQuery() string { - if m != nil { - return m.Query - } - return "" -} - -func (m *HiveQuery) GetTimeoutSec() uint32 { - if m != nil { - return m.TimeoutSec - } - return 0 -} - -func (m *HiveQuery) GetRetryCount() uint32 { - if m != nil { - return m.RetryCount - } - return 0 -} - -// Defines a collection of hive queries. -type HiveQueryCollection struct { - Queries []*HiveQuery `protobuf:"bytes,2,rep,name=queries,proto3" json:"queries,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HiveQueryCollection) Reset() { *m = HiveQueryCollection{} } -func (m *HiveQueryCollection) String() string { return proto.CompactTextString(m) } -func (*HiveQueryCollection) ProtoMessage() {} -func (*HiveQueryCollection) Descriptor() ([]byte, []int) { - return fileDescriptor_7cb86d766c12ee2e, []int{1} -} - -func (m *HiveQueryCollection) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HiveQueryCollection.Unmarshal(m, b) -} -func (m *HiveQueryCollection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HiveQueryCollection.Marshal(b, m, deterministic) -} -func (m *HiveQueryCollection) XXX_Merge(src proto.Message) { - xxx_messageInfo_HiveQueryCollection.Merge(m, src) -} -func (m *HiveQueryCollection) XXX_Size() int { - return xxx_messageInfo_HiveQueryCollection.Size(m) -} -func (m *HiveQueryCollection) XXX_DiscardUnknown() { - xxx_messageInfo_HiveQueryCollection.DiscardUnknown(m) -} - -var xxx_messageInfo_HiveQueryCollection proto.InternalMessageInfo - -func (m *HiveQueryCollection) GetQueries() []*HiveQuery { - if m != nil { - return m.Queries - } - return nil -} - -// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field -// of a hive task's TaskTemplate -type QuboleHiveJob struct { - ClusterLabel string `protobuf:"bytes,1,opt,name=cluster_label,json=clusterLabel,proto3" json:"cluster_label,omitempty"` - QueryCollection *HiveQueryCollection `protobuf:"bytes,2,opt,name=query_collection,json=queryCollection,proto3" json:"query_collection,omitempty"` // Deprecated: Do not use. - Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` - Query *HiveQuery `protobuf:"bytes,4,opt,name=query,proto3" json:"query,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *QuboleHiveJob) Reset() { *m = QuboleHiveJob{} } -func (m *QuboleHiveJob) String() string { return proto.CompactTextString(m) } -func (*QuboleHiveJob) ProtoMessage() {} -func (*QuboleHiveJob) Descriptor() ([]byte, []int) { - return fileDescriptor_7cb86d766c12ee2e, []int{2} -} - -func (m *QuboleHiveJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_QuboleHiveJob.Unmarshal(m, b) -} -func (m *QuboleHiveJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_QuboleHiveJob.Marshal(b, m, deterministic) -} -func (m *QuboleHiveJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_QuboleHiveJob.Merge(m, src) -} -func (m *QuboleHiveJob) XXX_Size() int { - return xxx_messageInfo_QuboleHiveJob.Size(m) -} -func (m *QuboleHiveJob) XXX_DiscardUnknown() { - xxx_messageInfo_QuboleHiveJob.DiscardUnknown(m) -} - -var xxx_messageInfo_QuboleHiveJob proto.InternalMessageInfo - -func (m *QuboleHiveJob) GetClusterLabel() string { - if m != nil { - return m.ClusterLabel - } - return "" -} - -// Deprecated: Do not use. -func (m *QuboleHiveJob) GetQueryCollection() *HiveQueryCollection { - if m != nil { - return m.QueryCollection - } - return nil -} - -func (m *QuboleHiveJob) GetTags() []string { - if m != nil { - return m.Tags - } - return nil -} - -func (m *QuboleHiveJob) GetQuery() *HiveQuery { - if m != nil { - return m.Query - } - return nil -} - -func init() { - proto.RegisterType((*HiveQuery)(nil), "flyteidl.plugins.HiveQuery") - proto.RegisterType((*HiveQueryCollection)(nil), "flyteidl.plugins.HiveQueryCollection") - proto.RegisterType((*QuboleHiveJob)(nil), "flyteidl.plugins.QuboleHiveJob") -} - -func init() { proto.RegisterFile("flyteidl/plugins/qubole.proto", fileDescriptor_7cb86d766c12ee2e) } - -var fileDescriptor_7cb86d766c12ee2e = []byte{ - // 306 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x41, 0x4b, 0xc3, 0x30, - 0x18, 0xa5, 0xeb, 0x54, 0xf6, 0xcd, 0xe1, 0x88, 0x1e, 0x0a, 0xa2, 0x96, 0x89, 0xd0, 0x8b, 0x0d, - 0x4e, 0x3c, 0x8a, 0xb0, 0x5d, 0x44, 0x76, 0x59, 0xf5, 0xe4, 0x65, 0x2c, 0xf1, 0x33, 0x06, 0xb2, - 0x66, 0x4b, 0x13, 0x61, 0x3f, 0xd3, 0x7f, 0x24, 0x4d, 0xbb, 0x0e, 0x7a, 0xd8, 0xed, 0xcb, 0x7b, - 0x5f, 0xf2, 0xde, 0xcb, 0x83, 0xab, 0x6f, 0xb5, 0xb5, 0x28, 0xbf, 0x14, 0x5d, 0x2b, 0x27, 0x64, - 0x5e, 0xd0, 0x8d, 0x63, 0x5a, 0x61, 0xba, 0x36, 0xda, 0x6a, 0x32, 0xdc, 0xd1, 0x69, 0x4d, 0x8f, - 0x18, 0xf4, 0x5e, 0xe5, 0x2f, 0xce, 0x1d, 0x9a, 0x2d, 0xb9, 0x80, 0xa3, 0x4d, 0x39, 0x44, 0x41, - 0x1c, 0x24, 0xbd, 0xac, 0x3a, 0x90, 0x1b, 0xe8, 0x5b, 0xb9, 0x42, 0xed, 0xec, 0xa2, 0x40, 0x1e, - 0x75, 0xe2, 0x20, 0x19, 0x64, 0x50, 0x43, 0xef, 0xc8, 0xc9, 0x35, 0x80, 0x41, 0x6b, 0xb6, 0x53, - 0xed, 0x72, 0x1b, 0x85, 0x15, 0xbf, 0x47, 0x46, 0x33, 0x38, 0x6f, 0x34, 0xa6, 0x5a, 0x29, 0xe4, - 0x56, 0xea, 0x9c, 0x3c, 0xc1, 0x49, 0x29, 0x20, 0xb1, 0x88, 0x3a, 0x71, 0x98, 0xf4, 0xc7, 0x97, - 0x69, 0xdb, 0x5e, 0xda, 0xdc, 0xcb, 0x76, 0xbb, 0xa3, 0xbf, 0x00, 0x06, 0x73, 0x1f, 0xaa, 0x24, - 0xdf, 0x34, 0x23, 0xb7, 0x30, 0xe0, 0xca, 0x15, 0x16, 0xcd, 0x42, 0x2d, 0x19, 0xaa, 0xda, 0xfe, - 0x69, 0x0d, 0xce, 0x4a, 0x8c, 0x7c, 0xc0, 0xd0, 0xc7, 0x59, 0xf0, 0xc6, 0x81, 0x8f, 0xd2, 0x1f, - 0xdf, 0x1d, 0x90, 0xdd, 0xdb, 0x9d, 0x74, 0xa2, 0x20, 0x3b, 0xdb, 0xb4, 0x32, 0x10, 0xe8, 0xda, - 0xa5, 0x28, 0xa2, 0x30, 0x0e, 0x93, 0x5e, 0xe6, 0x67, 0xf2, 0xb0, 0xfb, 0xc5, 0xae, 0x7f, 0xfe, - 0x60, 0xaa, 0x6a, 0x73, 0xf2, 0xf2, 0xf9, 0x2c, 0xa4, 0xfd, 0x71, 0x2c, 0xe5, 0x7a, 0x45, 0xfd, - 0xbe, 0x36, 0xa2, 0x1a, 0x68, 0x53, 0xa9, 0xc0, 0x9c, 0xae, 0xd9, 0xbd, 0xd0, 0xb4, 0xdd, 0x32, - 0x3b, 0xf6, 0xfd, 0x3e, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xee, 0x0b, 0x00, 0x6a, 0x00, 0x02, - 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go deleted file mode 100644 index b092b143cc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/ray.pb.go +++ /dev/null @@ -1,316 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/ray.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// RayJobSpec defines the desired state of RayJob -type RayJob struct { - // RayClusterSpec is the cluster template to run the job - RayCluster *RayCluster `protobuf:"bytes,1,opt,name=ray_cluster,json=rayCluster,proto3" json:"ray_cluster,omitempty"` - // runtime_env is base64 encoded. - // Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments - RuntimeEnv string `protobuf:"bytes,2,opt,name=runtime_env,json=runtimeEnv,proto3" json:"runtime_env,omitempty"` - // shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. - ShutdownAfterJobFinishes bool `protobuf:"varint,3,opt,name=shutdown_after_job_finishes,json=shutdownAfterJobFinishes,proto3" json:"shutdown_after_job_finishes,omitempty"` - // ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. - TtlSecondsAfterFinished int32 `protobuf:"varint,4,opt,name=ttl_seconds_after_finished,json=ttlSecondsAfterFinished,proto3" json:"ttl_seconds_after_finished,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RayJob) Reset() { *m = RayJob{} } -func (m *RayJob) String() string { return proto.CompactTextString(m) } -func (*RayJob) ProtoMessage() {} -func (*RayJob) Descriptor() ([]byte, []int) { - return fileDescriptor_b980f6d58c7489d7, []int{0} -} - -func (m *RayJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RayJob.Unmarshal(m, b) -} -func (m *RayJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RayJob.Marshal(b, m, deterministic) -} -func (m *RayJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_RayJob.Merge(m, src) -} -func (m *RayJob) XXX_Size() int { - return xxx_messageInfo_RayJob.Size(m) -} -func (m *RayJob) XXX_DiscardUnknown() { - xxx_messageInfo_RayJob.DiscardUnknown(m) -} - -var xxx_messageInfo_RayJob proto.InternalMessageInfo - -func (m *RayJob) GetRayCluster() *RayCluster { - if m != nil { - return m.RayCluster - } - return nil -} - -func (m *RayJob) GetRuntimeEnv() string { - if m != nil { - return m.RuntimeEnv - } - return "" -} - -func (m *RayJob) GetShutdownAfterJobFinishes() bool { - if m != nil { - return m.ShutdownAfterJobFinishes - } - return false -} - -func (m *RayJob) GetTtlSecondsAfterFinished() int32 { - if m != nil { - return m.TtlSecondsAfterFinished - } - return 0 -} - -// Define Ray cluster defines the desired state of RayCluster -type RayCluster struct { - // HeadGroupSpecs are the spec for the head pod - HeadGroupSpec *HeadGroupSpec `protobuf:"bytes,1,opt,name=head_group_spec,json=headGroupSpec,proto3" json:"head_group_spec,omitempty"` - // WorkerGroupSpecs are the specs for the worker pods - WorkerGroupSpec []*WorkerGroupSpec `protobuf:"bytes,2,rep,name=worker_group_spec,json=workerGroupSpec,proto3" json:"worker_group_spec,omitempty"` - // Whether to enable autoscaling. - EnableAutoscaling bool `protobuf:"varint,3,opt,name=enable_autoscaling,json=enableAutoscaling,proto3" json:"enable_autoscaling,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RayCluster) Reset() { *m = RayCluster{} } -func (m *RayCluster) String() string { return proto.CompactTextString(m) } -func (*RayCluster) ProtoMessage() {} -func (*RayCluster) Descriptor() ([]byte, []int) { - return fileDescriptor_b980f6d58c7489d7, []int{1} -} - -func (m *RayCluster) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_RayCluster.Unmarshal(m, b) -} -func (m *RayCluster) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_RayCluster.Marshal(b, m, deterministic) -} -func (m *RayCluster) XXX_Merge(src proto.Message) { - xxx_messageInfo_RayCluster.Merge(m, src) -} -func (m *RayCluster) XXX_Size() int { - return xxx_messageInfo_RayCluster.Size(m) -} -func (m *RayCluster) XXX_DiscardUnknown() { - xxx_messageInfo_RayCluster.DiscardUnknown(m) -} - -var xxx_messageInfo_RayCluster proto.InternalMessageInfo - -func (m *RayCluster) GetHeadGroupSpec() *HeadGroupSpec { - if m != nil { - return m.HeadGroupSpec - } - return nil -} - -func (m *RayCluster) GetWorkerGroupSpec() []*WorkerGroupSpec { - if m != nil { - return m.WorkerGroupSpec - } - return nil -} - -func (m *RayCluster) GetEnableAutoscaling() bool { - if m != nil { - return m.EnableAutoscaling - } - return false -} - -// HeadGroupSpec are the spec for the head pod -type HeadGroupSpec struct { - // Optional. RayStartParams are the params of the start command: address, object-store-memory. - // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - RayStartParams map[string]string `protobuf:"bytes,1,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *HeadGroupSpec) Reset() { *m = HeadGroupSpec{} } -func (m *HeadGroupSpec) String() string { return proto.CompactTextString(m) } -func (*HeadGroupSpec) ProtoMessage() {} -func (*HeadGroupSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_b980f6d58c7489d7, []int{2} -} - -func (m *HeadGroupSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_HeadGroupSpec.Unmarshal(m, b) -} -func (m *HeadGroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_HeadGroupSpec.Marshal(b, m, deterministic) -} -func (m *HeadGroupSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_HeadGroupSpec.Merge(m, src) -} -func (m *HeadGroupSpec) XXX_Size() int { - return xxx_messageInfo_HeadGroupSpec.Size(m) -} -func (m *HeadGroupSpec) XXX_DiscardUnknown() { - xxx_messageInfo_HeadGroupSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_HeadGroupSpec proto.InternalMessageInfo - -func (m *HeadGroupSpec) GetRayStartParams() map[string]string { - if m != nil { - return m.RayStartParams - } - return nil -} - -// WorkerGroupSpec are the specs for the worker pods -type WorkerGroupSpec struct { - // Required. RayCluster can have multiple worker groups, and it distinguishes them by name - GroupName string `protobuf:"bytes,1,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` - // Required. Desired replicas of the worker group. Defaults to 1. - Replicas int32 `protobuf:"varint,2,opt,name=replicas,proto3" json:"replicas,omitempty"` - // Optional. Min replicas of the worker group. MinReplicas defaults to 1. - MinReplicas int32 `protobuf:"varint,3,opt,name=min_replicas,json=minReplicas,proto3" json:"min_replicas,omitempty"` - // Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 - MaxReplicas int32 `protobuf:"varint,4,opt,name=max_replicas,json=maxReplicas,proto3" json:"max_replicas,omitempty"` - // Optional. RayStartParams are the params of the start command: address, object-store-memory. - // Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start - RayStartParams map[string]string `protobuf:"bytes,5,rep,name=ray_start_params,json=rayStartParams,proto3" json:"ray_start_params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *WorkerGroupSpec) Reset() { *m = WorkerGroupSpec{} } -func (m *WorkerGroupSpec) String() string { return proto.CompactTextString(m) } -func (*WorkerGroupSpec) ProtoMessage() {} -func (*WorkerGroupSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_b980f6d58c7489d7, []int{3} -} - -func (m *WorkerGroupSpec) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_WorkerGroupSpec.Unmarshal(m, b) -} -func (m *WorkerGroupSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_WorkerGroupSpec.Marshal(b, m, deterministic) -} -func (m *WorkerGroupSpec) XXX_Merge(src proto.Message) { - xxx_messageInfo_WorkerGroupSpec.Merge(m, src) -} -func (m *WorkerGroupSpec) XXX_Size() int { - return xxx_messageInfo_WorkerGroupSpec.Size(m) -} -func (m *WorkerGroupSpec) XXX_DiscardUnknown() { - xxx_messageInfo_WorkerGroupSpec.DiscardUnknown(m) -} - -var xxx_messageInfo_WorkerGroupSpec proto.InternalMessageInfo - -func (m *WorkerGroupSpec) GetGroupName() string { - if m != nil { - return m.GroupName - } - return "" -} - -func (m *WorkerGroupSpec) GetReplicas() int32 { - if m != nil { - return m.Replicas - } - return 0 -} - -func (m *WorkerGroupSpec) GetMinReplicas() int32 { - if m != nil { - return m.MinReplicas - } - return 0 -} - -func (m *WorkerGroupSpec) GetMaxReplicas() int32 { - if m != nil { - return m.MaxReplicas - } - return 0 -} - -func (m *WorkerGroupSpec) GetRayStartParams() map[string]string { - if m != nil { - return m.RayStartParams - } - return nil -} - -func init() { - proto.RegisterType((*RayJob)(nil), "flyteidl.plugins.RayJob") - proto.RegisterType((*RayCluster)(nil), "flyteidl.plugins.RayCluster") - proto.RegisterType((*HeadGroupSpec)(nil), "flyteidl.plugins.HeadGroupSpec") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.HeadGroupSpec.RayStartParamsEntry") - proto.RegisterType((*WorkerGroupSpec)(nil), "flyteidl.plugins.WorkerGroupSpec") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntry") -} - -func init() { proto.RegisterFile("flyteidl/plugins/ray.proto", fileDescriptor_b980f6d58c7489d7) } - -var fileDescriptor_b980f6d58c7489d7 = []byte{ - // 512 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0xdd, 0x6a, 0xdb, 0x30, - 0x14, 0xc6, 0x49, 0x53, 0x9a, 0x93, 0x75, 0x49, 0xb5, 0xc1, 0x4c, 0xb6, 0xd1, 0x34, 0x57, 0xb9, - 0x69, 0x0c, 0x2d, 0x83, 0xb1, 0x11, 0x46, 0x36, 0xba, 0x8e, 0xc2, 0xc6, 0x50, 0x2e, 0x06, 0x83, - 0x21, 0x64, 0x5b, 0x71, 0xbc, 0xda, 0x92, 0x91, 0xe4, 0xa4, 0x7e, 0xac, 0xdd, 0xec, 0x45, 0xf6, - 0x0a, 0x7b, 0x90, 0x61, 0x59, 0x75, 0x7e, 0x5a, 0xe8, 0xdd, 0xee, 0xa4, 0xf3, 0xfd, 0x70, 0xce, - 0x77, 0x6c, 0x41, 0x7f, 0x9e, 0x14, 0x9a, 0xc5, 0x61, 0xe2, 0x65, 0x49, 0x1e, 0xc5, 0x5c, 0x79, - 0x92, 0x16, 0xe3, 0x4c, 0x0a, 0x2d, 0x50, 0xef, 0x16, 0x1b, 0x5b, 0x6c, 0xf8, 0xd7, 0x81, 0x7d, - 0x4c, 0x8b, 0x2b, 0xe1, 0xa3, 0x09, 0x74, 0x24, 0x2d, 0x48, 0x90, 0xe4, 0x4a, 0x33, 0xe9, 0x3a, - 0x03, 0x67, 0xd4, 0x39, 0x7b, 0x31, 0xde, 0x95, 0x8c, 0x31, 0x2d, 0x3e, 0x54, 0x1c, 0x0c, 0xb2, - 0x3e, 0xa3, 0x63, 0xe8, 0xc8, 0x9c, 0xeb, 0x38, 0x65, 0x84, 0xf1, 0xa5, 0xdb, 0x18, 0x38, 0xa3, - 0x36, 0x06, 0x5b, 0xba, 0xe0, 0x4b, 0x34, 0x81, 0xe7, 0x6a, 0x91, 0xeb, 0x50, 0xac, 0x38, 0xa1, - 0x73, 0xcd, 0x24, 0xf9, 0x29, 0x7c, 0x32, 0x8f, 0x79, 0xac, 0x16, 0x4c, 0xb9, 0xcd, 0x81, 0x33, - 0x3a, 0xc0, 0xee, 0x2d, 0x65, 0x5a, 0x32, 0xae, 0x84, 0xff, 0xd1, 0xe2, 0xe8, 0x2d, 0xf4, 0xb5, - 0x4e, 0x88, 0x62, 0x81, 0xe0, 0xa1, 0xb2, 0x0e, 0x56, 0x1d, 0xba, 0x7b, 0x03, 0x67, 0xd4, 0xc2, - 0xcf, 0xb4, 0x4e, 0x66, 0x15, 0xc1, 0xe8, 0xad, 0x38, 0x1c, 0xfe, 0x71, 0x00, 0xd6, 0x7d, 0xa3, - 0x4b, 0xe8, 0x2e, 0x18, 0x0d, 0x49, 0x24, 0x45, 0x9e, 0x11, 0x95, 0xb1, 0xc0, 0x8e, 0x7b, 0x7c, - 0x77, 0xdc, 0x4f, 0x8c, 0x86, 0x97, 0x25, 0x6f, 0x96, 0xb1, 0x00, 0x1f, 0x2e, 0x36, 0xaf, 0xe8, - 0x33, 0x1c, 0xad, 0x84, 0xbc, 0x66, 0x72, 0xd3, 0xaa, 0x31, 0x68, 0x8e, 0x3a, 0x67, 0x27, 0x77, - 0xad, 0xbe, 0x19, 0xea, 0xda, 0xac, 0xbb, 0xda, 0x2e, 0xa0, 0x53, 0x40, 0x8c, 0x53, 0x3f, 0x61, - 0x84, 0xe6, 0x5a, 0xa8, 0x80, 0x26, 0x31, 0x8f, 0x6c, 0x32, 0x47, 0x15, 0x32, 0x5d, 0x03, 0xc3, - 0x5f, 0x0e, 0x1c, 0x6e, 0xb5, 0x87, 0x7e, 0x40, 0xaf, 0xdc, 0xa1, 0xd2, 0x54, 0x6a, 0x92, 0x51, - 0x49, 0x53, 0xe5, 0x3a, 0xa6, 0x9d, 0xf3, 0x07, 0x26, 0x2b, 0xd7, 0x3a, 0x2b, 0x65, 0x5f, 0x8d, - 0xea, 0x82, 0x6b, 0x59, 0xe0, 0xc7, 0x72, 0xab, 0xd8, 0x9f, 0xc2, 0x93, 0x7b, 0x68, 0xa8, 0x07, - 0xcd, 0x6b, 0x56, 0x98, 0x08, 0xdb, 0xb8, 0x3c, 0xa2, 0xa7, 0xd0, 0x5a, 0xd2, 0x24, 0x67, 0xf6, - 0x33, 0xa8, 0x2e, 0x6f, 0x1a, 0xaf, 0x9d, 0xe1, 0xef, 0x06, 0x74, 0x77, 0x72, 0x40, 0x2f, 0x01, - 0xaa, 0xf8, 0x38, 0x4d, 0x99, 0xb5, 0x69, 0x9b, 0xca, 0x17, 0x9a, 0x32, 0xd4, 0x87, 0x03, 0xc9, - 0xb2, 0x24, 0x0e, 0xa8, 0x32, 0x7e, 0x2d, 0x5c, 0xdf, 0xd1, 0x09, 0x3c, 0x4a, 0x63, 0x4e, 0x6a, - 0xbc, 0x69, 0xf0, 0x4e, 0x1a, 0x73, 0xbc, 0x49, 0xa1, 0x37, 0x6b, 0xca, 0x9e, 0xa5, 0xd0, 0x9b, - 0x9a, 0x42, 0xee, 0x89, 0xad, 0x65, 0x62, 0x7b, 0xf5, 0xe0, 0x16, 0xff, 0x53, 0x70, 0xef, 0xdf, - 0x7d, 0x9f, 0x44, 0xb1, 0x5e, 0xe4, 0xfe, 0x38, 0x10, 0xa9, 0x67, 0xba, 0x12, 0x32, 0xaa, 0x0e, - 0x5e, 0xfd, 0xcf, 0x47, 0x8c, 0x7b, 0x99, 0x7f, 0x1a, 0x09, 0x6f, 0xf7, 0x19, 0xf0, 0xf7, 0xcd, - 0x1b, 0x70, 0xfe, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xe5, 0x00, 0x39, 0x5b, 0x21, 0x04, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go deleted file mode 100644 index 1825fa266a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/spark.pb.go +++ /dev/null @@ -1,236 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/spark.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _struct "github.com/golang/protobuf/ptypes/struct" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type SparkApplication_Type int32 - -const ( - SparkApplication_PYTHON SparkApplication_Type = 0 - SparkApplication_JAVA SparkApplication_Type = 1 - SparkApplication_SCALA SparkApplication_Type = 2 - SparkApplication_R SparkApplication_Type = 3 -) - -var SparkApplication_Type_name = map[int32]string{ - 0: "PYTHON", - 1: "JAVA", - 2: "SCALA", - 3: "R", -} - -var SparkApplication_Type_value = map[string]int32{ - "PYTHON": 0, - "JAVA": 1, - "SCALA": 2, - "R": 3, -} - -func (x SparkApplication_Type) String() string { - return proto.EnumName(SparkApplication_Type_name, int32(x)) -} - -func (SparkApplication_Type) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_ca8a069b9820144a, []int{0, 0} -} - -type SparkApplication struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SparkApplication) Reset() { *m = SparkApplication{} } -func (m *SparkApplication) String() string { return proto.CompactTextString(m) } -func (*SparkApplication) ProtoMessage() {} -func (*SparkApplication) Descriptor() ([]byte, []int) { - return fileDescriptor_ca8a069b9820144a, []int{0} -} - -func (m *SparkApplication) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SparkApplication.Unmarshal(m, b) -} -func (m *SparkApplication) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SparkApplication.Marshal(b, m, deterministic) -} -func (m *SparkApplication) XXX_Merge(src proto.Message) { - xxx_messageInfo_SparkApplication.Merge(m, src) -} -func (m *SparkApplication) XXX_Size() int { - return xxx_messageInfo_SparkApplication.Size(m) -} -func (m *SparkApplication) XXX_DiscardUnknown() { - xxx_messageInfo_SparkApplication.DiscardUnknown(m) -} - -var xxx_messageInfo_SparkApplication proto.InternalMessageInfo - -// Custom Proto for Spark Plugin. -type SparkJob struct { - ApplicationType SparkApplication_Type `protobuf:"varint,1,opt,name=applicationType,proto3,enum=flyteidl.plugins.SparkApplication_Type" json:"applicationType,omitempty"` - MainApplicationFile string `protobuf:"bytes,2,opt,name=mainApplicationFile,proto3" json:"mainApplicationFile,omitempty"` - MainClass string `protobuf:"bytes,3,opt,name=mainClass,proto3" json:"mainClass,omitempty"` - SparkConf map[string]string `protobuf:"bytes,4,rep,name=sparkConf,proto3" json:"sparkConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - HadoopConf map[string]string `protobuf:"bytes,5,rep,name=hadoopConf,proto3" json:"hadoopConf,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - ExecutorPath string `protobuf:"bytes,6,opt,name=executorPath,proto3" json:"executorPath,omitempty"` - // Databricks job configuration. - // Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure. - DatabricksConf *_struct.Struct `protobuf:"bytes,7,opt,name=databricksConf,proto3" json:"databricksConf,omitempty"` - // Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html - // This token can be set in either flytepropeller or flytekit. - DatabricksToken string `protobuf:"bytes,8,opt,name=databricksToken,proto3" json:"databricksToken,omitempty"` - // Domain name of your deployment. Use the form .cloud.databricks.com. - // This instance name can be set in either flytepropeller or flytekit. - DatabricksInstance string `protobuf:"bytes,9,opt,name=databricksInstance,proto3" json:"databricksInstance,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *SparkJob) Reset() { *m = SparkJob{} } -func (m *SparkJob) String() string { return proto.CompactTextString(m) } -func (*SparkJob) ProtoMessage() {} -func (*SparkJob) Descriptor() ([]byte, []int) { - return fileDescriptor_ca8a069b9820144a, []int{1} -} - -func (m *SparkJob) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_SparkJob.Unmarshal(m, b) -} -func (m *SparkJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_SparkJob.Marshal(b, m, deterministic) -} -func (m *SparkJob) XXX_Merge(src proto.Message) { - xxx_messageInfo_SparkJob.Merge(m, src) -} -func (m *SparkJob) XXX_Size() int { - return xxx_messageInfo_SparkJob.Size(m) -} -func (m *SparkJob) XXX_DiscardUnknown() { - xxx_messageInfo_SparkJob.DiscardUnknown(m) -} - -var xxx_messageInfo_SparkJob proto.InternalMessageInfo - -func (m *SparkJob) GetApplicationType() SparkApplication_Type { - if m != nil { - return m.ApplicationType - } - return SparkApplication_PYTHON -} - -func (m *SparkJob) GetMainApplicationFile() string { - if m != nil { - return m.MainApplicationFile - } - return "" -} - -func (m *SparkJob) GetMainClass() string { - if m != nil { - return m.MainClass - } - return "" -} - -func (m *SparkJob) GetSparkConf() map[string]string { - if m != nil { - return m.SparkConf - } - return nil -} - -func (m *SparkJob) GetHadoopConf() map[string]string { - if m != nil { - return m.HadoopConf - } - return nil -} - -func (m *SparkJob) GetExecutorPath() string { - if m != nil { - return m.ExecutorPath - } - return "" -} - -func (m *SparkJob) GetDatabricksConf() *_struct.Struct { - if m != nil { - return m.DatabricksConf - } - return nil -} - -func (m *SparkJob) GetDatabricksToken() string { - if m != nil { - return m.DatabricksToken - } - return "" -} - -func (m *SparkJob) GetDatabricksInstance() string { - if m != nil { - return m.DatabricksInstance - } - return "" -} - -func init() { - proto.RegisterEnum("flyteidl.plugins.SparkApplication_Type", SparkApplication_Type_name, SparkApplication_Type_value) - proto.RegisterType((*SparkApplication)(nil), "flyteidl.plugins.SparkApplication") - proto.RegisterType((*SparkJob)(nil), "flyteidl.plugins.SparkJob") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.HadoopConfEntry") - proto.RegisterMapType((map[string]string)(nil), "flyteidl.plugins.SparkJob.SparkConfEntry") -} - -func init() { proto.RegisterFile("flyteidl/plugins/spark.proto", fileDescriptor_ca8a069b9820144a) } - -var fileDescriptor_ca8a069b9820144a = []byte{ - // 443 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xdf, 0x8b, 0xd3, 0x40, - 0x10, 0x36, 0xfd, 0x65, 0x33, 0x27, 0x6d, 0x18, 0x05, 0x43, 0xe9, 0x43, 0xe9, 0x8b, 0x51, 0x70, - 0x23, 0xf5, 0x45, 0xc4, 0xe3, 0xc8, 0x15, 0xf5, 0x2c, 0xa2, 0x67, 0x5a, 0x04, 0x7d, 0xdb, 0xa4, - 0xdb, 0x34, 0x74, 0x6f, 0x77, 0x49, 0x36, 0x62, 0xfe, 0x79, 0x91, 0x6c, 0xec, 0xe5, 0x2e, 0x9c, - 0x82, 0x6f, 0xb3, 0xdf, 0x7c, 0xf3, 0xcd, 0xf0, 0x7d, 0x2c, 0x4c, 0x77, 0xbc, 0xd4, 0x2c, 0xdd, - 0x72, 0x5f, 0xf1, 0x22, 0x49, 0x45, 0xee, 0xe7, 0x8a, 0x66, 0x07, 0xa2, 0x32, 0xa9, 0x25, 0x3a, - 0xc7, 0x2e, 0xf9, 0xd3, 0x9d, 0x4c, 0x13, 0x29, 0x13, 0xce, 0x7c, 0xd3, 0x8f, 0x8a, 0x9d, 0x9f, - 0xeb, 0xac, 0x88, 0x75, 0xcd, 0x9f, 0x9f, 0x83, 0xb3, 0xae, 0xc6, 0x03, 0xa5, 0x78, 0x1a, 0x53, - 0x9d, 0x4a, 0x31, 0x27, 0xd0, 0xdb, 0x94, 0x8a, 0x21, 0xc0, 0xe0, 0xf2, 0xdb, 0xe6, 0xe2, 0xf3, - 0x27, 0xe7, 0x1e, 0x0e, 0xa1, 0xb7, 0x0a, 0xbe, 0x06, 0x8e, 0x85, 0x36, 0xf4, 0xd7, 0xcb, 0xe0, - 0x63, 0xe0, 0x74, 0xb0, 0x0f, 0x56, 0xe8, 0x74, 0xe7, 0xbf, 0x7a, 0x30, 0x34, 0x22, 0x2b, 0x19, - 0xe1, 0x17, 0x18, 0xd3, 0x46, 0xab, 0xd2, 0x71, 0xad, 0x99, 0xe5, 0x8d, 0x16, 0x4f, 0x48, 0xfb, - 0x34, 0xd2, 0xde, 0x4c, 0x2a, 0x7a, 0xd8, 0x9e, 0xc7, 0x17, 0xf0, 0xf0, 0x8a, 0xa6, 0xe2, 0x06, - 0xf1, 0x5d, 0xca, 0x99, 0xdb, 0x99, 0x59, 0x9e, 0x1d, 0xde, 0xd5, 0xc2, 0x29, 0xd8, 0x15, 0xbc, - 0xe4, 0x34, 0xcf, 0xdd, 0xae, 0xe1, 0x35, 0x00, 0xbe, 0x07, 0xdb, 0x58, 0xb6, 0x94, 0x62, 0xe7, - 0xf6, 0x66, 0x5d, 0xef, 0x64, 0xf1, 0xf4, 0x2f, 0xc7, 0xad, 0x64, 0x54, 0x17, 0x15, 0xf7, 0xad, - 0xd0, 0x59, 0x19, 0x36, 0xb3, 0xb8, 0x02, 0xd8, 0xd3, 0xad, 0x94, 0xca, 0x28, 0xf5, 0x8d, 0xd2, - 0xb3, 0x7f, 0x28, 0x5d, 0x5c, 0x93, 0x6b, 0xa9, 0x1b, 0xd3, 0x38, 0x87, 0x07, 0xec, 0x27, 0x8b, - 0x0b, 0x2d, 0xb3, 0x4b, 0xaa, 0xf7, 0xee, 0xc0, 0x5c, 0x7d, 0x0b, 0xc3, 0x33, 0x18, 0x6d, 0xa9, - 0xa6, 0x51, 0x96, 0xc6, 0x87, 0xdc, 0xec, 0xbc, 0x3f, 0xb3, 0xbc, 0x93, 0xc5, 0x63, 0x52, 0x67, - 0x4c, 0x8e, 0x19, 0x93, 0xb5, 0xc9, 0x38, 0x6c, 0xd1, 0xd1, 0x83, 0x71, 0x83, 0x6c, 0xe4, 0x81, - 0x09, 0x77, 0x68, 0xf6, 0xb4, 0x61, 0x24, 0x80, 0x0d, 0xf4, 0x41, 0xe4, 0x9a, 0x8a, 0x98, 0xb9, - 0xb6, 0x21, 0xdf, 0xd1, 0x99, 0xbc, 0x81, 0xd1, 0x6d, 0x9f, 0xd0, 0x81, 0xee, 0x81, 0x95, 0x26, - 0x7c, 0x3b, 0xac, 0x4a, 0x7c, 0x04, 0xfd, 0x1f, 0x94, 0x17, 0xc7, 0xe4, 0xea, 0xc7, 0xeb, 0xce, - 0x2b, 0x6b, 0x72, 0x0a, 0xe3, 0x96, 0x37, 0xff, 0x33, 0x7e, 0x7e, 0xf6, 0xfd, 0x34, 0x49, 0xf5, - 0xbe, 0x88, 0x48, 0x2c, 0xaf, 0x7c, 0xe3, 0xbf, 0xcc, 0x92, 0xba, 0xf0, 0xaf, 0xbf, 0x4b, 0xc2, - 0x84, 0xaf, 0xa2, 0xe7, 0x89, 0xf4, 0xdb, 0x3f, 0x28, 0x1a, 0x18, 0xe3, 0x5e, 0xfe, 0x0e, 0x00, - 0x00, 0xff, 0xff, 0x07, 0x7f, 0xfa, 0xf2, 0x5c, 0x03, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go deleted file mode 100644 index a07ff3feeb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/tensorflow.pb.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/tensorflow.proto - -package plugins - -import ( - fmt "fmt" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator -type DistributedTensorflowTrainingTask struct { - // number of worker replicas spawned in the cluster for this job - Workers int32 `protobuf:"varint,1,opt,name=workers,proto3" json:"workers,omitempty"` - // PS -> Parameter server - // number of ps replicas spawned in the cluster for this job - PsReplicas int32 `protobuf:"varint,2,opt,name=ps_replicas,json=psReplicas,proto3" json:"ps_replicas,omitempty"` - // number of chief replicas spawned in the cluster for this job - ChiefReplicas int32 `protobuf:"varint,3,opt,name=chief_replicas,json=chiefReplicas,proto3" json:"chief_replicas,omitempty"` - // number of evaluator replicas spawned in the cluster for this job - EvaluatorReplicas int32 `protobuf:"varint,4,opt,name=evaluator_replicas,json=evaluatorReplicas,proto3" json:"evaluator_replicas,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DistributedTensorflowTrainingTask) Reset() { *m = DistributedTensorflowTrainingTask{} } -func (m *DistributedTensorflowTrainingTask) String() string { return proto.CompactTextString(m) } -func (*DistributedTensorflowTrainingTask) ProtoMessage() {} -func (*DistributedTensorflowTrainingTask) Descriptor() ([]byte, []int) { - return fileDescriptor_8da02783614e1bcc, []int{0} -} - -func (m *DistributedTensorflowTrainingTask) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Unmarshal(m, b) -} -func (m *DistributedTensorflowTrainingTask) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Marshal(b, m, deterministic) -} -func (m *DistributedTensorflowTrainingTask) XXX_Merge(src proto.Message) { - xxx_messageInfo_DistributedTensorflowTrainingTask.Merge(m, src) -} -func (m *DistributedTensorflowTrainingTask) XXX_Size() int { - return xxx_messageInfo_DistributedTensorflowTrainingTask.Size(m) -} -func (m *DistributedTensorflowTrainingTask) XXX_DiscardUnknown() { - xxx_messageInfo_DistributedTensorflowTrainingTask.DiscardUnknown(m) -} - -var xxx_messageInfo_DistributedTensorflowTrainingTask proto.InternalMessageInfo - -func (m *DistributedTensorflowTrainingTask) GetWorkers() int32 { - if m != nil { - return m.Workers - } - return 0 -} - -func (m *DistributedTensorflowTrainingTask) GetPsReplicas() int32 { - if m != nil { - return m.PsReplicas - } - return 0 -} - -func (m *DistributedTensorflowTrainingTask) GetChiefReplicas() int32 { - if m != nil { - return m.ChiefReplicas - } - return 0 -} - -func (m *DistributedTensorflowTrainingTask) GetEvaluatorReplicas() int32 { - if m != nil { - return m.EvaluatorReplicas - } - return 0 -} - -func init() { - proto.RegisterType((*DistributedTensorflowTrainingTask)(nil), "flyteidl.plugins.DistributedTensorflowTrainingTask") -} - -func init() { proto.RegisterFile("flyteidl/plugins/tensorflow.proto", fileDescriptor_8da02783614e1bcc) } - -var fileDescriptor_8da02783614e1bcc = []byte{ - // 220 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0xd0, 0xbf, 0x4a, 0x04, 0x31, - 0x10, 0x06, 0x70, 0xd6, 0xbf, 0x10, 0x51, 0x34, 0xd5, 0x76, 0x7a, 0x82, 0x60, 0x73, 0x9b, 0xc2, - 0x5a, 0x04, 0xf1, 0x09, 0x8e, 0xad, 0x6c, 0x24, 0xbb, 0x37, 0x9b, 0x1b, 0x2e, 0x66, 0xc2, 0x4c, - 0xe2, 0xe1, 0x7b, 0xf9, 0x80, 0x42, 0xbc, 0xcd, 0x81, 0x5d, 0xf2, 0x7d, 0xbf, 0x14, 0xf9, 0xd4, - 0x62, 0xf2, 0xdf, 0x09, 0x70, 0xed, 0x4d, 0xf4, 0xd9, 0x61, 0x10, 0x93, 0x20, 0x08, 0xf1, 0xe4, - 0x69, 0xd7, 0x45, 0xa6, 0x44, 0xfa, 0x7a, 0x26, 0xdd, 0x9e, 0xdc, 0xff, 0x34, 0x6a, 0xf1, 0x86, - 0x92, 0x18, 0x87, 0x9c, 0x60, 0xdd, 0xd7, 0x17, 0x3d, 0x5b, 0x0c, 0x18, 0x5c, 0x6f, 0x65, 0xab, - 0x5b, 0x75, 0xbe, 0x23, 0xde, 0x02, 0x4b, 0xdb, 0xdc, 0x35, 0x8f, 0xa7, 0xab, 0xf9, 0xaa, 0x6f, - 0xd5, 0x45, 0x94, 0x0f, 0x86, 0xe8, 0x71, 0xb4, 0xd2, 0x1e, 0x95, 0x56, 0x45, 0x59, 0xed, 0x13, - 0xfd, 0xa0, 0xae, 0xc6, 0x0d, 0xc2, 0x74, 0x30, 0xc7, 0xc5, 0x5c, 0x96, 0xb4, 0xb2, 0xa5, 0xd2, - 0xf0, 0x65, 0x7d, 0xb6, 0x89, 0xf8, 0x40, 0x4f, 0x0a, 0xbd, 0xa9, 0xcd, 0xcc, 0x5f, 0x5f, 0xde, - 0x9f, 0x1d, 0xa6, 0x4d, 0x1e, 0xba, 0x91, 0x3e, 0x4d, 0xf9, 0x15, 0xb1, 0xfb, 0x3b, 0x98, 0xba, - 0x83, 0x83, 0x60, 0xe2, 0xb0, 0x74, 0x64, 0xfe, 0x4f, 0x33, 0x9c, 0x95, 0x41, 0x9e, 0x7e, 0x03, - 0x00, 0x00, 0xff, 0xff, 0xa6, 0x22, 0x34, 0xcf, 0x35, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go b/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go deleted file mode 100644 index 36c4a56679..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/plugins/waitable.pb.go +++ /dev/null @@ -1,104 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/plugins/waitable.proto - -package plugins - -import ( - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// Represents an Execution that was launched and could be waited on. -type Waitable struct { - WfExecId *core.WorkflowExecutionIdentifier `protobuf:"bytes,1,opt,name=wf_exec_id,json=wfExecId,proto3" json:"wf_exec_id,omitempty"` - Phase core.WorkflowExecution_Phase `protobuf:"varint,2,opt,name=phase,proto3,enum=flyteidl.core.WorkflowExecution_Phase" json:"phase,omitempty"` - WorkflowId string `protobuf:"bytes,3,opt,name=workflow_id,json=workflowId,proto3" json:"workflow_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *Waitable) Reset() { *m = Waitable{} } -func (m *Waitable) String() string { return proto.CompactTextString(m) } -func (*Waitable) ProtoMessage() {} -func (*Waitable) Descriptor() ([]byte, []int) { - return fileDescriptor_6ff9364c45e52921, []int{0} -} - -func (m *Waitable) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_Waitable.Unmarshal(m, b) -} -func (m *Waitable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_Waitable.Marshal(b, m, deterministic) -} -func (m *Waitable) XXX_Merge(src proto.Message) { - xxx_messageInfo_Waitable.Merge(m, src) -} -func (m *Waitable) XXX_Size() int { - return xxx_messageInfo_Waitable.Size(m) -} -func (m *Waitable) XXX_DiscardUnknown() { - xxx_messageInfo_Waitable.DiscardUnknown(m) -} - -var xxx_messageInfo_Waitable proto.InternalMessageInfo - -func (m *Waitable) GetWfExecId() *core.WorkflowExecutionIdentifier { - if m != nil { - return m.WfExecId - } - return nil -} - -func (m *Waitable) GetPhase() core.WorkflowExecution_Phase { - if m != nil { - return m.Phase - } - return core.WorkflowExecution_UNDEFINED -} - -func (m *Waitable) GetWorkflowId() string { - if m != nil { - return m.WorkflowId - } - return "" -} - -func init() { - proto.RegisterType((*Waitable)(nil), "flyteidl.plugins.Waitable") -} - -func init() { proto.RegisterFile("flyteidl/plugins/waitable.proto", fileDescriptor_6ff9364c45e52921) } - -var fileDescriptor_6ff9364c45e52921 = []byte{ - // 246 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x92, 0x4f, 0xcb, 0xa9, 0x2c, - 0x49, 0xcd, 0x4c, 0xc9, 0xd1, 0x2f, 0xc8, 0x29, 0x4d, 0xcf, 0xcc, 0x2b, 0xd6, 0x2f, 0x4f, 0xcc, - 0x2c, 0x49, 0x4c, 0xca, 0x49, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x80, 0x29, 0xd0, - 0x83, 0x2a, 0x90, 0x92, 0x85, 0x6b, 0x49, 0xce, 0x2f, 0x4a, 0xd5, 0x4f, 0xad, 0x48, 0x4d, 0x2e, - 0x2d, 0xc9, 0xcc, 0xcf, 0x83, 0x68, 0x90, 0x92, 0x43, 0x95, 0xce, 0x4c, 0x49, 0xcd, 0x2b, 0xc9, - 0x4c, 0xcb, 0x4c, 0x2d, 0x82, 0xc8, 0x2b, 0x6d, 0x66, 0xe4, 0xe2, 0x08, 0x87, 0xda, 0x21, 0xe4, - 0xc1, 0xc5, 0x55, 0x9e, 0x16, 0x0f, 0x32, 0x22, 0x3e, 0x33, 0x45, 0x82, 0x51, 0x81, 0x51, 0x83, - 0xdb, 0x48, 0x4b, 0x0f, 0x6e, 0x25, 0xc8, 0x04, 0xbd, 0xf0, 0xfc, 0xa2, 0xec, 0xb4, 0x9c, 0xfc, - 0x72, 0x57, 0x98, 0x45, 0x9e, 0x70, 0x23, 0x83, 0x38, 0xca, 0xd3, 0x40, 0xc2, 0x9e, 0x29, 0x42, - 0x36, 0x5c, 0xac, 0x05, 0x19, 0x89, 0xc5, 0xa9, 0x12, 0x4c, 0x0a, 0x8c, 0x1a, 0x7c, 0x46, 0x6a, - 0x84, 0x0c, 0xd1, 0x0b, 0x00, 0xa9, 0x0e, 0x82, 0x68, 0x12, 0x92, 0xe7, 0xe2, 0x2e, 0x87, 0xaa, - 0x00, 0x39, 0x84, 0x59, 0x81, 0x51, 0x83, 0x33, 0x88, 0x0b, 0x26, 0xe4, 0x99, 0xe2, 0x64, 0x1f, - 0x65, 0x9b, 0x9e, 0x59, 0x92, 0x51, 0x9a, 0xa4, 0x97, 0x9c, 0x9f, 0xab, 0x0f, 0x36, 0x3b, 0xbf, - 0x28, 0x1d, 0xc2, 0xd0, 0x87, 0xfb, 0x38, 0x3d, 0x35, 0x4f, 0xbf, 0x20, 0x49, 0x37, 0x3d, 0x5f, - 0x1f, 0x3d, 0x58, 0x93, 0xd8, 0xc0, 0xbe, 0x37, 0x06, 0x04, 0x00, 0x00, 0xff, 0xff, 0x8f, 0x78, - 0xb5, 0x11, 0x71, 0x01, 0x00, 0x00, -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go deleted file mode 100644 index 60bc47c3ec..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.go +++ /dev/null @@ -1,2237 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/admin.proto - -package service - -import ( - context "context" - fmt "fmt" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("flyteidl/service/admin.proto", fileDescriptor_5cfa31da1d67295d) } - -var fileDescriptor_5cfa31da1d67295d = []byte{ - // 2165 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x9a, 0xdf, 0x6f, 0x1d, 0x47, - 0x15, 0xc7, 0x35, 0x36, 0x02, 0x31, 0x4d, 0x62, 0x7b, 0x9a, 0x60, 0x67, 0x63, 0x27, 0xe9, 0xba, - 0x8e, 0x7f, 0xdf, 0x75, 0x93, 0xb4, 0x55, 0x43, 0xd3, 0xd4, 0xad, 0x9d, 0x2b, 0x43, 0x9a, 0x14, - 0x93, 0x82, 0x64, 0x21, 0x5d, 0xad, 0xef, 0x4e, 0x9c, 0x4d, 0xee, 0xbd, 0x7b, 0xbb, 0x3b, 0x76, - 0xb1, 0x2c, 0x8b, 0x1f, 0x42, 0x88, 0x0a, 0x89, 0x07, 0x7e, 0x08, 0x0a, 0x11, 0xa5, 0x50, 0xc4, - 0xcf, 0xf2, 0x02, 0x2a, 0xe2, 0xa5, 0x12, 0x02, 0x24, 0x5e, 0x78, 0x81, 0x77, 0x5e, 0xe8, 0x33, - 0x7f, 0x03, 0xda, 0x33, 0x33, 0x7b, 0x77, 0x76, 0x77, 0x76, 0x67, 0x4d, 0xca, 0x13, 0x6f, 0xf6, - 0x3d, 0xdf, 0x99, 0xf9, 0x9c, 0x33, 0x67, 0xce, 0xcc, 0xee, 0x0e, 0x9e, 0xbc, 0xd3, 0xd9, 0x67, - 0xd4, 0xf7, 0x3a, 0x4e, 0x44, 0xc3, 0x3d, 0xbf, 0x4d, 0x1d, 0xd7, 0xeb, 0xfa, 0xbd, 0x46, 0x3f, - 0x0c, 0x58, 0x40, 0x46, 0xa5, 0xb5, 0x21, 0xac, 0xd6, 0xe4, 0x4e, 0x10, 0xec, 0x74, 0xa8, 0xe3, - 0xf6, 0x7d, 0xc7, 0xed, 0xf5, 0x02, 0xe6, 0x32, 0x3f, 0xe8, 0x45, 0x5c, 0x6f, 0x0d, 0x7a, 0x83, - 0x5e, 0x9c, 0x7e, 0x18, 0xdc, 0xa3, 0x6d, 0x26, 0xac, 0x8d, 0x62, 0x6b, 0xcb, 0x0b, 0xba, 0xae, - 0xdf, 0x6b, 0xb9, 0x8c, 0x85, 0xfe, 0xf6, 0x2e, 0xa3, 0xb2, 0xb7, 0x59, 0x8d, 0x3e, 0x27, 0x3c, - 0x9d, 0x11, 0x32, 0x37, 0xba, 0x2f, 0x4c, 0x53, 0x19, 0xd3, 0x6b, 0x41, 0x78, 0xff, 0x4e, 0x27, - 0x78, 0x4d, 0x98, 0xe7, 0x34, 0xe6, 0xfc, 0x18, 0xe7, 0x33, 0xca, 0x8e, 0xbb, 0xdb, 0x6b, 0xdf, - 0x6d, 0xf5, 0x3b, 0xae, 0x08, 0x96, 0x65, 0x65, 0x14, 0x74, 0x8f, 0xf6, 0xa4, 0xeb, 0x67, 0xb3, - 0xb6, 0xcf, 0xd3, 0xf6, 0x6e, 0x1c, 0x39, 0x8d, 0xab, 0x5d, 0x97, 0xb5, 0xef, 0xba, 0xdb, 0x1d, - 0xda, 0x0a, 0x69, 0x14, 0xec, 0x86, 0x6d, 0x2a, 0x84, 0xd3, 0x19, 0x61, 0x2f, 0xf0, 0x68, 0x2b, - 0xdb, 0xdb, 0x74, 0x41, 0x3c, 0x72, 0xa2, 0xec, 0x5c, 0xed, 0xd1, 0x30, 0x1a, 0x58, 0xcf, 0x64, - 0xac, 0xed, 0xa0, 0xdb, 0xd5, 0xd2, 0x7a, 0x34, 0x6a, 0x87, 0x7e, 0x3f, 0xee, 0xbc, 0x45, 0x7b, - 0xcc, 0x67, 0xfb, 0x5c, 0x78, 0xf1, 0x2b, 0x37, 0xf1, 0xb1, 0xd5, 0x58, 0xf2, 0x69, 0x9e, 0x3e, - 0xa4, 0x8b, 0xf1, 0x8b, 0x21, 0x75, 0x19, 0xbd, 0xed, 0x46, 0xf7, 0xc9, 0x63, 0x49, 0x46, 0x34, - 0x78, 0xd6, 0xc5, 0xbf, 0x72, 0xfb, 0x26, 0x7d, 0x75, 0x97, 0x46, 0xcc, 0xb2, 0xcb, 0x24, 0x51, - 0x3f, 0xe8, 0x45, 0xd4, 0x9e, 0xf8, 0xf2, 0x3f, 0xde, 0xff, 0xd6, 0x10, 0xb1, 0x8f, 0x43, 0x56, - 0xee, 0x3d, 0x01, 0xfe, 0x46, 0x57, 0xd0, 0x02, 0xf9, 0x1a, 0xc2, 0x1f, 0x69, 0x52, 0x06, 0x83, - 0x9d, 0xcf, 0xf6, 0x74, 0x6b, 0x3b, 0xce, 0xa6, 0x26, 0x65, 0x72, 0xac, 0x93, 0x45, 0x63, 0xd9, - 0xeb, 0xd0, 0xfb, 0x35, 0x72, 0x55, 0xe9, 0xdd, 0x39, 0xf0, 0xbd, 0x86, 0x48, 0xc8, 0x43, 0xf8, - 0x87, 0x67, 0x31, 0xff, 0xbb, 0xe7, 0x76, 0x29, 0xff, 0x4b, 0x44, 0xf5, 0x90, 0x7c, 0x17, 0xe1, - 0x47, 0x6e, 0xf8, 0x11, 0xb0, 0x6c, 0x78, 0x11, 0x59, 0xc9, 0x0e, 0x76, 0xd3, 0xed, 0x52, 0x6f, - 0x1d, 0xa2, 0xb7, 0xe1, 0xc5, 0x51, 0xbc, 0xe3, 0xd3, 0x30, 0x6e, 0x21, 0xf1, 0xe6, 0x8d, 0x5b, - 0xd8, 0x8b, 0xc0, 0x3c, 0x43, 0xa6, 0xd3, 0xcc, 0x2d, 0xdf, 0x8b, 0x9c, 0x83, 0x01, 0xb3, 0x00, - 0x26, 0xbf, 0x41, 0xf8, 0xa3, 0x92, 0x2c, 0x22, 0xd3, 0xd9, 0x51, 0x36, 0x45, 0x02, 0xa6, 0x51, - 0x26, 0x8a, 0x22, 0x05, 0x23, 0x6f, 0xc3, 0xc8, 0x9f, 0x23, 0x2b, 0x75, 0xa3, 0xb5, 0x35, 0x47, - 0x2e, 0x98, 0xb5, 0x21, 0x87, 0xf8, 0x04, 0xcf, 0x80, 0xcf, 0x8a, 0xd5, 0x4a, 0x66, 0xb2, 0x3c, - 0xd2, 0xa2, 0x26, 0xd3, 0x85, 0x2a, 0x99, 0x48, 0xa8, 0x49, 0x70, 0xe2, 0x63, 0xf6, 0x98, 0x04, - 0x92, 0x65, 0x01, 0x92, 0xea, 0xdb, 0x08, 0x3f, 0xd2, 0xa4, 0x2c, 0x19, 0xbc, 0x3a, 0xb1, 0x26, - 0x74, 0xe3, 0xda, 0x1b, 0x30, 0xd2, 0x8b, 0x64, 0x35, 0x37, 0x52, 0xed, 0x04, 0x7b, 0x13, 0xe1, - 0x91, 0x78, 0x0a, 0x64, 0xdf, 0x1f, 0x78, 0x92, 0x39, 0xc0, 0x3e, 0x4f, 0x66, 0xb3, 0xec, 0xba, - 0x44, 0x7b, 0x0f, 0xe1, 0xe3, 0x69, 0x42, 0xc3, 0x64, 0x9b, 0xd4, 0x45, 0x0f, 0x28, 0xee, 0x01, - 0x85, 0x47, 0x2e, 0x1f, 0x25, 0x82, 0x5b, 0x4b, 0x64, 0xc1, 0xbc, 0x1d, 0xf9, 0x2a, 0xc2, 0xa3, - 0x3c, 0x55, 0x6e, 0x40, 0xf5, 0x7f, 0xb9, 0xe3, 0xf6, 0xc8, 0x6c, 0x16, 0x6f, 0x60, 0x53, 0xb3, - 0x6f, 0xae, 0x5a, 0x28, 0xf2, 0xef, 0x1c, 0xf8, 0x74, 0xda, 0x3e, 0x29, 0xd9, 0x52, 0x9b, 0x0d, - 0xa4, 0xe0, 0x0f, 0x10, 0x3e, 0xde, 0xa4, 0x2c, 0x45, 0x51, 0x9d, 0x84, 0x96, 0x7e, 0x78, 0xfb, - 0x06, 0x0c, 0x78, 0x9d, 0xac, 0x15, 0x0d, 0x58, 0x3b, 0x13, 0x7f, 0x8c, 0xf0, 0xa3, 0x4d, 0xca, - 0x56, 0xdb, 0xcc, 0xdf, 0x2b, 0x8d, 0x54, 0x56, 0x61, 0x82, 0x7a, 0x1d, 0x50, 0x9f, 0x27, 0xcf, - 0x49, 0x54, 0x17, 0x3a, 0x69, 0xd5, 0x24, 0x26, 0x0f, 0x10, 0x3e, 0x15, 0x27, 0x50, 0x96, 0x21, - 0x22, 0x8b, 0x55, 0x98, 0xe9, 0xe4, 0x3c, 0xab, 0x47, 0x85, 0xf4, 0x7c, 0x0a, 0x70, 0x57, 0x48, - 0xa3, 0x14, 0x37, 0xbf, 0x56, 0xde, 0x46, 0x78, 0x2c, 0xee, 0x60, 0xd0, 0xdd, 0x07, 0xbe, 0x9e, - 0x2f, 0x02, 0x6a, 0x6a, 0x45, 0xa4, 0x18, 0x75, 0x4b, 0xfa, 0xaf, 0xa2, 0xe8, 0xa4, 0xe3, 0x67, - 0xb4, 0xa8, 0xab, 0xe2, 0xd6, 0x07, 0x98, 0x7b, 0xe4, 0xe9, 0x23, 0x66, 0xe4, 0x96, 0x43, 0x96, - 0x6b, 0x35, 0x25, 0xef, 0x22, 0x3c, 0xfa, 0x4a, 0xdf, 0x33, 0x5e, 0xdc, 0x5c, 0x6b, 0xb0, 0xb8, - 0xa5, 0x50, 0x2c, 0xee, 0x5b, 0xe0, 0xd9, 0x86, 0xf5, 0x50, 0xd6, 0x5a, 0x5c, 0x0c, 0xbe, 0x84, - 0xf0, 0x08, 0x2f, 0x20, 0xeb, 0xf2, 0x88, 0x47, 0x72, 0x3b, 0x5d, 0x62, 0x52, 0x6b, 0xd2, 0x6c, - 0xa5, 0x4e, 0x50, 0x4f, 0x01, 0xf5, 0xb8, 0x4d, 0x24, 0x75, 0x72, 0x9c, 0x84, 0x82, 0xf4, 0x0d, - 0x84, 0xc7, 0x36, 0x29, 0xf7, 0x64, 0x40, 0x31, 0xa7, 0xed, 0x5d, 0x6a, 0x6b, 0x73, 0x5c, 0x00, - 0x8e, 0xf3, 0xf6, 0x99, 0x3c, 0x87, 0x13, 0x8a, 0x4e, 0x63, 0xa0, 0xaf, 0x23, 0x3c, 0xba, 0x49, - 0xdb, 0xc1, 0x1e, 0x0d, 0x07, 0x3c, 0xb3, 0x25, 0x3c, 0x20, 0xad, 0x8d, 0x33, 0x03, 0x38, 0xe7, - 0x6c, 0xab, 0x10, 0x07, 0xfa, 0x8c, 0x69, 0xbe, 0x83, 0xf0, 0xb1, 0x26, 0x65, 0x03, 0x92, 0x45, - 0xdd, 0x9e, 0x96, 0x48, 0x52, 0x95, 0xfb, 0xb4, 0x96, 0xc6, 0xbe, 0x0a, 0xe3, 0x3f, 0x4d, 0x9e, - 0x2c, 0x18, 0xdf, 0xa0, 0x08, 0xbe, 0x8d, 0xf0, 0x08, 0x4f, 0x4f, 0x93, 0xd4, 0x51, 0x33, 0x7e, - 0xb6, 0x52, 0x27, 0x62, 0xf4, 0x3c, 0x30, 0x5e, 0xb1, 0x8e, 0xc6, 0x18, 0x87, 0xef, 0x0f, 0x08, - 0x8f, 0xa6, 0xc3, 0xb7, 0xe6, 0x32, 0x97, 0x38, 0x26, 0x21, 0x8c, 0x95, 0x12, 0x78, 0xc5, 0xbc, - 0x81, 0x20, 0x7f, 0x01, 0xc8, 0x9f, 0x25, 0x57, 0x24, 0xb9, 0xe7, 0x32, 0xb7, 0x66, 0x88, 0x5f, - 0x47, 0xf8, 0x44, 0x5c, 0xd1, 0x92, 0x41, 0x0c, 0x0b, 0xe4, 0x94, 0x36, 0xbc, 0x50, 0x1f, 0x2f, - 0x01, 0xda, 0x32, 0x59, 0xac, 0x11, 0x54, 0xf2, 0x0e, 0xc2, 0xe4, 0x36, 0x0d, 0xbb, 0x7e, 0x4f, - 0x99, 0xf1, 0x79, 0xed, 0x50, 0x89, 0x58, 0x52, 0x2d, 0x98, 0x48, 0xd5, 0x79, 0x5f, 0x38, 0xfa, - 0xbc, 0xff, 0x9d, 0xcf, 0xfb, 0xcd, 0xc0, 0xa3, 0x25, 0x8b, 0x58, 0x31, 0xa7, 0x96, 0xcd, 0x54, - 0xa9, 0xd0, 0xde, 0x03, 0xbc, 0x3e, 0xe9, 0x49, 0x3c, 0xf5, 0x51, 0x9a, 0x33, 0x26, 0xff, 0xb6, - 0xb2, 0xc0, 0x8a, 0x25, 0x4d, 0xaf, 0x18, 0x06, 0x15, 0x1b, 0x7a, 0xf7, 0xbd, 0x43, 0xf2, 0x4f, - 0x84, 0x49, 0x3c, 0x85, 0x0a, 0x4d, 0x94, 0xaf, 0x95, 0x8a, 0x3d, 0x9d, 0x19, 0x8f, 0x55, 0x2a, - 0xed, 0x03, 0xf0, 0x6d, 0x97, 0x44, 0x5a, 0xdf, 0x92, 0xb3, 0xba, 0xc6, 0xc3, 0x62, 0x7b, 0xe2, - 0x67, 0xb1, 0x99, 0x67, 0xfc, 0x4f, 0x3f, 0x84, 0x4f, 0xe7, 0x1d, 0xbc, 0x1e, 0x84, 0xf0, 0x18, - 0xee, 0x94, 0xd2, 0x0b, 0x55, 0x4d, 0x77, 0x7f, 0x3b, 0x0c, 0xfe, 0xfe, 0x7a, 0x98, 0xfc, 0x62, - 0x58, 0x7a, 0xdc, 0xbe, 0xeb, 0x77, 0xbc, 0x90, 0x66, 0x5f, 0x7e, 0x44, 0xce, 0x81, 0xfa, 0x43, - 0x4b, 0xce, 0x8d, 0xf2, 0x8b, 0x26, 0x2a, 0xb5, 0x9b, 0x26, 0x01, 0xab, 0xdd, 0x52, 0x64, 0x8e, - 0x49, 0x3b, 0x99, 0x5a, 0x45, 0x6a, 0xf1, 0xe0, 0x5f, 0xea, 0x83, 0xd4, 0x94, 0xc0, 0x4a, 0x89, - 0x96, 0x4a, 0x0a, 0xe4, 0xc1, 0xa4, 0x48, 0x13, 0x52, 0x16, 0xee, 0xb7, 0x5c, 0xc6, 0x68, 0xb7, - 0xcf, 0x0e, 0xc9, 0xbf, 0x11, 0x3e, 0x99, 0x5d, 0xdd, 0x50, 0xd9, 0x17, 0xab, 0x56, 0x78, 0xba, - 0xaa, 0x2f, 0x99, 0x89, 0x45, 0x4d, 0xca, 0x2d, 0x0c, 0xa8, 0xe8, 0xff, 0xa3, 0x95, 0xff, 0x05, - 0x3c, 0xb2, 0x49, 0x77, 0xfc, 0x88, 0xd1, 0xf0, 0x65, 0xde, 0x61, 0x7e, 0xb3, 0x15, 0x06, 0xa9, - 0xd3, 0x6e, 0xb6, 0x39, 0x9d, 0x70, 0xf0, 0x0c, 0x38, 0x78, 0xca, 0x1e, 0x95, 0x0e, 0x0a, 0x74, - 0x38, 0xa5, 0xbd, 0x8a, 0x8f, 0xf3, 0xbd, 0x59, 0x0e, 0x3f, 0xae, 0xe9, 0xd6, 0x9a, 0xd1, 0x18, - 0x32, 0x5b, 0xfb, 0x79, 0x18, 0xcd, 0xb2, 0x4e, 0x65, 0x47, 0x8b, 0x1d, 0x87, 0x12, 0x7e, 0x07, - 0x1f, 0x8b, 0x97, 0xa8, 0x68, 0x1e, 0x11, 0x5b, 0xd3, 0x71, 0xe9, 0xdb, 0x25, 0xd9, 0x5a, 0xbe, - 0xe9, 0x23, 0x39, 0xef, 0xc8, 0x1b, 0x08, 0x3f, 0xaa, 0xbe, 0x14, 0x5a, 0xdf, 0xa3, 0x3d, 0x46, - 0x96, 0x2b, 0x37, 0x7d, 0xd0, 0xc9, 0xa1, 0x1b, 0xa6, 0x72, 0x11, 0x80, 0x69, 0x00, 0x9a, 0xb2, - 0x27, 0x92, 0x3d, 0x2e, 0x36, 0x47, 0xea, 0x0b, 0xa3, 0xd7, 0x93, 0x03, 0x3a, 0xe4, 0x26, 0x70, - 0xcd, 0x97, 0xa6, 0xad, 0xc2, 0xb4, 0x60, 0x22, 0xd5, 0xbd, 0x39, 0x10, 0x3c, 0x71, 0x0e, 0x66, - 0x58, 0xe2, 0x3a, 0xab, 0x61, 0x01, 0x93, 0x19, 0x4b, 0x91, 0xb4, 0x82, 0x25, 0x79, 0x3b, 0xfb, - 0xc5, 0x61, 0xd8, 0xde, 0x95, 0x2e, 0xf2, 0xdb, 0xbb, 0x62, 0x2e, 0xdb, 0xde, 0x15, 0xa1, 0xfd, - 0x93, 0x21, 0x18, 0xfe, 0xc1, 0x10, 0x79, 0x63, 0x48, 0x79, 0x0b, 0x9a, 0x59, 0xe7, 0xc6, 0xb5, - 0xbf, 0x46, 0xb1, 0x37, 0xae, 0xee, 0x15, 0xe5, 0xbc, 0xb0, 0x7e, 0x17, 0x15, 0xec, 0x7c, 0x85, - 0x2e, 0x2c, 0xc9, 0xf9, 0x1a, 0xfc, 0xbd, 0x21, 0x7e, 0x18, 0x51, 0x62, 0x57, 0x70, 0x18, 0x51, - 0xec, 0xa5, 0xbb, 0x73, 0x4e, 0x69, 0xff, 0x0e, 0xc1, 0x4c, 0xbc, 0x83, 0xc8, 0x2f, 0x91, 0x76, - 0x26, 0x8c, 0xa7, 0xc1, 0x74, 0x0e, 0xcc, 0x26, 0x40, 0x1f, 0x7d, 0xf2, 0x60, 0x18, 0xb6, 0x27, - 0xc5, 0x9f, 0xe2, 0xed, 0x29, 0x9b, 0xa1, 0xa5, 0xdb, 0x53, 0xb1, 0x58, 0x2c, 0x99, 0x9f, 0xf3, - 0xa4, 0x7d, 0x6b, 0x88, 0xfc, 0x70, 0x48, 0xd9, 0xa1, 0xfe, 0x9f, 0xb9, 0xd9, 0xcc, 0xfd, 0x17, - 0xc2, 0x53, 0xca, 0x66, 0xb6, 0x06, 0x5d, 0xae, 0x26, 0xdf, 0xed, 0xc8, 0x65, 0xcd, 0x36, 0x92, - 0x15, 0xaa, 0x8f, 0xb5, 0x4f, 0xd6, 0x6c, 0x25, 0x66, 0xee, 0x15, 0x98, 0xb8, 0x5b, 0xd6, 0x27, - 0x32, 0x3b, 0x53, 0xfe, 0xe3, 0xa6, 0x73, 0xa0, 0x7e, 0x5b, 0x14, 0xc1, 0x49, 0xfd, 0x28, 0x82, - 0x13, 0x97, 0xc8, 0x3f, 0x22, 0x6c, 0x35, 0x29, 0xd3, 0xb9, 0xf8, 0x84, 0x21, 0x6c, 0xaa, 0x6c, - 0x5e, 0xac, 0xd3, 0x44, 0x38, 0xf7, 0x2c, 0x38, 0xf7, 0xd4, 0xe0, 0x1d, 0x7b, 0x89, 0x73, 0xf9, - 0x77, 0x84, 0x7f, 0x43, 0x78, 0x6a, 0x8d, 0x76, 0xe8, 0x7f, 0x3f, 0x53, 0xbc, 0x97, 0xba, 0x33, - 0x25, 0x5b, 0x09, 0x67, 0xae, 0x81, 0x33, 0xcf, 0x2c, 0x1c, 0xc9, 0x99, 0x78, 0x4e, 0xde, 0x45, - 0x78, 0x5c, 0xc9, 0xbc, 0x94, 0x27, 0x0d, 0x0d, 0x93, 0x2e, 0xdb, 0x1c, 0x63, 0xbd, 0xa0, 0xbf, - 0x02, 0xf4, 0x97, 0x2d, 0x27, 0x4b, 0x5f, 0x91, 0x60, 0x31, 0xf8, 0x9b, 0xfc, 0xc0, 0x9d, 0xa7, - 0x5e, 0xac, 0xa4, 0x48, 0x25, 0xd0, 0x92, 0x99, 0x58, 0xf0, 0x2e, 0x01, 0xef, 0x05, 0xf2, 0x78, - 0x19, 0xaf, 0x84, 0x24, 0xbf, 0x42, 0x78, 0x5c, 0x49, 0x95, 0x5a, 0xa1, 0x55, 0xd3, 0xc3, 0x31, - 0xd6, 0x0b, 0x54, 0xf1, 0x3d, 0x6b, 0xc1, 0x08, 0x35, 0x8e, 0xe7, 0xfb, 0x08, 0x4f, 0xf0, 0xe9, - 0x91, 0xa7, 0xc4, 0x14, 0xae, 0xf6, 0xf5, 0x94, 0x2e, 0x15, 0x56, 0xcc, 0x1b, 0x08, 0x60, 0x0a, - 0xc0, 0x2d, 0x6b, 0x2b, 0xf7, 0x01, 0xee, 0x08, 0xd5, 0x46, 0xf9, 0x4d, 0x76, 0x04, 0x6e, 0xfe, - 0x1e, 0xe1, 0x53, 0xa9, 0xef, 0x9d, 0x29, 0x1f, 0x97, 0xaa, 0x91, 0x53, 0x89, 0xb3, 0x6c, 0xa8, - 0x16, 0xde, 0xad, 0x82, 0x77, 0x1f, 0x27, 0xcf, 0x94, 0x7a, 0x97, 0x5b, 0xa1, 0x83, 0x77, 0x13, - 0x87, 0xe4, 0x4f, 0x08, 0x4f, 0xf0, 0x49, 0x3e, 0xda, 0x04, 0xa9, 0x09, 0xb5, 0x62, 0xde, 0x40, - 0xb8, 0xb0, 0x06, 0x2e, 0x3c, 0xb7, 0x70, 0x74, 0x17, 0xe2, 0xf8, 0xff, 0x08, 0xe1, 0xf1, 0xf8, - 0x20, 0xf5, 0x92, 0xbc, 0x13, 0x52, 0xb6, 0x28, 0x34, 0x42, 0xed, 0xa2, 0xd0, 0xea, 0x85, 0x0b, - 0x8f, 0x83, 0x0b, 0x67, 0xc9, 0xa4, 0x74, 0x61, 0x70, 0x33, 0x65, 0xe0, 0x43, 0x5c, 0x59, 0xe0, - 0x6b, 0xd5, 0xe0, 0xe3, 0x92, 0x4f, 0xa3, 0xfc, 0xc3, 0x6d, 0xea, 0xdb, 0x53, 0xfa, 0x0c, 0x79, - 0xae, 0x42, 0x97, 0x4f, 0x85, 0xf8, 0xa8, 0xe0, 0xf1, 0xab, 0x26, 0x7e, 0x1c, 0x42, 0x79, 0x49, - 0xa6, 0xc5, 0xf6, 0xfb, 0xf1, 0x19, 0x22, 0xbf, 0x09, 0xfd, 0x0c, 0xe1, 0x13, 0x4d, 0x9a, 0x02, - 0xdc, 0xcf, 0x5f, 0x1a, 0x48, 0x19, 0x53, 0x69, 0x7b, 0xa6, 0x44, 0x66, 0x7f, 0x0a, 0xc8, 0x3e, - 0x49, 0x36, 0x4c, 0xc9, 0xaa, 0x5f, 0x18, 0xbf, 0x87, 0xf0, 0x18, 0x5f, 0xe8, 0x69, 0xd8, 0xb9, - 0x12, 0x0a, 0xb5, 0x8e, 0xcc, 0x1b, 0x28, 0xc5, 0xe4, 0xde, 0x06, 0xfa, 0x9b, 0xd6, 0xc3, 0xa3, - 0x8f, 0xf3, 0xb5, 0x83, 0x71, 0x93, 0xb2, 0xcf, 0xf0, 0xb3, 0x5b, 0xfe, 0x8e, 0xcf, 0xc0, 0xa6, - 0xbd, 0xe3, 0x93, 0x96, 0x08, 0xd4, 0x71, 0x40, 0x1d, 0x23, 0x23, 0x12, 0x55, 0x9c, 0x0d, 0xc9, - 0x9f, 0xf9, 0xa6, 0xb6, 0x36, 0xb8, 0x82, 0x24, 0x22, 0x56, 0xfd, 0x45, 0x3c, 0x87, 0x96, 0xeb, - 0xc4, 0xde, 0x81, 0x61, 0x5d, 0xd2, 0x4a, 0x4e, 0xe3, 0xd9, 0xab, 0x4e, 0x10, 0x27, 0x38, 0x9e, - 0xd6, 0x0c, 0x95, 0xfa, 0xcd, 0xfc, 0x9b, 0x43, 0x7c, 0x91, 0x67, 0x11, 0xfc, 0xa2, 0x32, 0x9b, - 0xe3, 0x4c, 0xaf, 0xa6, 0x19, 0x23, 0xb5, 0xfd, 0x16, 0x7f, 0x2a, 0xfb, 0x3e, 0x22, 0xb7, 0xca, - 0x7d, 0xab, 0xed, 0xd8, 0x56, 0x93, 0xac, 0x3f, 0x94, 0x2e, 0xc9, 0x5f, 0xf8, 0x45, 0x82, 0xe4, - 0x71, 0xe9, 0x25, 0xca, 0x42, 0xbf, 0x1d, 0x91, 0x8b, 0x26, 0x5f, 0x72, 0x84, 0x58, 0x86, 0xe5, - 0x52, 0xad, 0x36, 0x22, 0xeb, 0x72, 0x77, 0xbf, 0xba, 0x5c, 0x50, 0xef, 0x53, 0xc6, 0x0b, 0xd7, - 0xb6, 0xae, 0xee, 0xf8, 0xec, 0xee, 0xee, 0x76, 0xa3, 0x1d, 0x74, 0x1d, 0xe0, 0x08, 0xc2, 0x1d, - 0xfe, 0x87, 0x93, 0xdc, 0xa5, 0xdb, 0xa1, 0x3d, 0xa7, 0xbf, 0xbd, 0xbc, 0x13, 0x38, 0xd9, 0x3b, - 0x99, 0xdb, 0x1f, 0x86, 0xeb, 0x74, 0x97, 0xfe, 0x13, 0x00, 0x00, 0xff, 0xff, 0x69, 0x42, 0xd8, - 0x48, 0xae, 0x29, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// AdminServiceClient is the client API for AdminService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AdminServiceClient interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) - GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) -} - -type adminServiceClient struct { - cc *grpc.ClientConn -} - -func NewAdminServiceClient(cc *grpc.ClientConn) AdminServiceClient { - return &adminServiceClient{cc} -} - -func (c *adminServiceClient) CreateTask(ctx context.Context, in *admin.TaskCreateRequest, opts ...grpc.CallOption) (*admin.TaskCreateResponse, error) { - out := new(admin.TaskCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTask(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Task, error) { - out := new(admin.Task) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTaskIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskIds", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTasks(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.TaskList, error) { - out := new(admin.TaskList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTasks", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateWorkflow(ctx context.Context, in *admin.WorkflowCreateRequest, opts ...grpc.CallOption) (*admin.WorkflowCreateResponse, error) { - out := new(admin.WorkflowCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetWorkflow(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.Workflow, error) { - out := new(admin.Workflow) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetWorkflow", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflowIds", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListWorkflows(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.WorkflowList, error) { - out := new(admin.WorkflowList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListWorkflows", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, in *admin.LaunchPlanCreateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanCreateResponse, error) { - out := new(admin.LaunchPlanCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateLaunchPlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { - out := new(admin.LaunchPlan) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetLaunchPlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetActiveLaunchPlan(ctx context.Context, in *admin.ActiveLaunchPlanRequest, opts ...grpc.CallOption) (*admin.LaunchPlan, error) { - out := new(admin.LaunchPlan) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetActiveLaunchPlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListActiveLaunchPlans(ctx context.Context, in *admin.ActiveLaunchPlanListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { - out := new(admin.LaunchPlanList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListActiveLaunchPlans", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, in *admin.NamedEntityIdentifierListRequest, opts ...grpc.CallOption) (*admin.NamedEntityIdentifierList, error) { - out := new(admin.NamedEntityIdentifierList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlanIds", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.LaunchPlanList, error) { - out := new(admin.LaunchPlanList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListLaunchPlans", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, in *admin.LaunchPlanUpdateRequest, opts ...grpc.CallOption) (*admin.LaunchPlanUpdateResponse, error) { - out := new(admin.LaunchPlanUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateLaunchPlan", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateExecution(ctx context.Context, in *admin.ExecutionCreateRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RelaunchExecution(ctx context.Context, in *admin.ExecutionRelaunchRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RelaunchExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RecoverExecution(ctx context.Context, in *admin.ExecutionRecoverRequest, opts ...grpc.CallOption) (*admin.ExecutionCreateResponse, error) { - out := new(admin.ExecutionCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RecoverExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecution(ctx context.Context, in *admin.WorkflowExecutionGetRequest, opts ...grpc.CallOption) (*admin.Execution, error) { - out := new(admin.Execution) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateExecution(ctx context.Context, in *admin.ExecutionUpdateRequest, opts ...grpc.CallOption) (*admin.ExecutionUpdateResponse, error) { - out := new(admin.ExecutionUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecutionData(ctx context.Context, in *admin.WorkflowExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetDataResponse, error) { - out := new(admin.WorkflowExecutionGetDataResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecutionData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListExecutions(ctx context.Context, in *admin.ResourceListRequest, opts ...grpc.CallOption) (*admin.ExecutionList, error) { - out := new(admin.ExecutionList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) TerminateExecution(ctx context.Context, in *admin.ExecutionTerminateRequest, opts ...grpc.CallOption) (*admin.ExecutionTerminateResponse, error) { - out := new(admin.ExecutionTerminateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/TerminateExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNodeExecution(ctx context.Context, in *admin.NodeExecutionGetRequest, opts ...grpc.CallOption) (*admin.NodeExecution, error) { - out := new(admin.NodeExecution) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, in *admin.NodeExecutionListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { - out := new(admin.NodeExecutionList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, in *admin.NodeExecutionForTaskListRequest, opts ...grpc.CallOption) (*admin.NodeExecutionList, error) { - out := new(admin.NodeExecutionList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNodeExecutionsForTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, in *admin.NodeExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.NodeExecutionGetDataResponse, error) { - out := new(admin.NodeExecutionGetDataResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNodeExecutionData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) RegisterProject(ctx context.Context, in *admin.ProjectRegisterRequest, opts ...grpc.CallOption) (*admin.ProjectRegisterResponse, error) { - out := new(admin.ProjectRegisterResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/RegisterProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProject(ctx context.Context, in *admin.Project, opts ...grpc.CallOption) (*admin.ProjectUpdateResponse, error) { - out := new(admin.ProjectUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProject", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListProjects(ctx context.Context, in *admin.ProjectListRequest, opts ...grpc.CallOption) (*admin.Projects, error) { - out := new(admin.Projects) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListProjects", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, in *admin.WorkflowExecutionEventRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionEventResponse, error) { - out := new(admin.WorkflowExecutionEventResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateWorkflowEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, in *admin.NodeExecutionEventRequest, opts ...grpc.CallOption) (*admin.NodeExecutionEventResponse, error) { - out := new(admin.NodeExecutionEventResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateNodeEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, in *admin.TaskExecutionEventRequest, opts ...grpc.CallOption) (*admin.TaskExecutionEventResponse, error) { - out := new(admin.TaskExecutionEventResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/CreateTaskEvent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTaskExecution(ctx context.Context, in *admin.TaskExecutionGetRequest, opts ...grpc.CallOption) (*admin.TaskExecution, error) { - out := new(admin.TaskExecution) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecution", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, in *admin.TaskExecutionListRequest, opts ...grpc.CallOption) (*admin.TaskExecutionList, error) { - out := new(admin.TaskExecutionList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListTaskExecutions", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, in *admin.TaskExecutionGetDataRequest, opts ...grpc.CallOption) (*admin.TaskExecutionGetDataResponse, error) { - out := new(admin.TaskExecutionGetDataResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetTaskExecutionData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesUpdateResponse, error) { - out := new(admin.ProjectDomainAttributesUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesGetResponse, error) { - out := new(admin.ProjectDomainAttributesGetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetProjectDomainAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, in *admin.ProjectDomainAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectDomainAttributesDeleteResponse, error) { - out := new(admin.ProjectDomainAttributesDeleteResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateProjectAttributes(ctx context.Context, in *admin.ProjectAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesUpdateResponse, error) { - out := new(admin.ProjectAttributesUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateProjectAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetProjectAttributes(ctx context.Context, in *admin.ProjectAttributesGetRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesGetResponse, error) { - out := new(admin.ProjectAttributesGetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetProjectAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteProjectAttributes(ctx context.Context, in *admin.ProjectAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.ProjectAttributesDeleteResponse, error) { - out := new(admin.ProjectAttributesDeleteResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteProjectAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesUpdateRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesUpdateResponse, error) { - out := new(admin.WorkflowAttributesUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateWorkflowAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesGetRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesGetResponse, error) { - out := new(admin.WorkflowAttributesGetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetWorkflowAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) DeleteWorkflowAttributes(ctx context.Context, in *admin.WorkflowAttributesDeleteRequest, opts ...grpc.CallOption) (*admin.WorkflowAttributesDeleteResponse, error) { - out := new(admin.WorkflowAttributesDeleteResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/DeleteWorkflowAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListMatchableAttributes(ctx context.Context, in *admin.ListMatchableAttributesRequest, opts ...grpc.CallOption) (*admin.ListMatchableAttributesResponse, error) { - out := new(admin.ListMatchableAttributesResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListMatchableAttributes", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListNamedEntities(ctx context.Context, in *admin.NamedEntityListRequest, opts ...grpc.CallOption) (*admin.NamedEntityList, error) { - out := new(admin.NamedEntityList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListNamedEntities", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetNamedEntity(ctx context.Context, in *admin.NamedEntityGetRequest, opts ...grpc.CallOption) (*admin.NamedEntity, error) { - out := new(admin.NamedEntity) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetNamedEntity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) UpdateNamedEntity(ctx context.Context, in *admin.NamedEntityUpdateRequest, opts ...grpc.CallOption) (*admin.NamedEntityUpdateResponse, error) { - out := new(admin.NamedEntityUpdateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/UpdateNamedEntity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetVersion(ctx context.Context, in *admin.GetVersionRequest, opts ...grpc.CallOption) (*admin.GetVersionResponse, error) { - out := new(admin.GetVersionResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetVersion", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetDescriptionEntity(ctx context.Context, in *admin.ObjectGetRequest, opts ...grpc.CallOption) (*admin.DescriptionEntity, error) { - out := new(admin.DescriptionEntity) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetDescriptionEntity", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) ListDescriptionEntities(ctx context.Context, in *admin.DescriptionEntityListRequest, opts ...grpc.CallOption) (*admin.DescriptionEntityList, error) { - out := new(admin.DescriptionEntityList) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/ListDescriptionEntities", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *adminServiceClient) GetExecutionMetrics(ctx context.Context, in *admin.WorkflowExecutionGetMetricsRequest, opts ...grpc.CallOption) (*admin.WorkflowExecutionGetMetricsResponse, error) { - out := new(admin.WorkflowExecutionGetMetricsResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AdminService/GetExecutionMetrics", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AdminServiceServer is the server API for AdminService service. -type AdminServiceServer interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(context.Context, *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(context.Context, *admin.ObjectGetRequest) (*admin.Task, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(context.Context, *admin.ResourceListRequest) (*admin.TaskList, error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(context.Context, *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(context.Context, *admin.ObjectGetRequest) (*admin.Workflow, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(context.Context, *admin.ResourceListRequest) (*admin.WorkflowList, error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(context.Context, *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(context.Context, *admin.ObjectGetRequest) (*admin.LaunchPlan, error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(context.Context, *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(context.Context, *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(context.Context, *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(context.Context, *admin.ResourceListRequest) (*admin.LaunchPlanList, error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(context.Context, *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(context.Context, *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(context.Context, *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(context.Context, *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(context.Context, *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(context.Context, *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(context.Context, *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(context.Context, *admin.ResourceListRequest) (*admin.ExecutionList, error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(context.Context, *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(context.Context, *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(context.Context, *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(context.Context, *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(context.Context, *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(context.Context, *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(context.Context, *admin.Project) (*admin.ProjectUpdateResponse, error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(context.Context, *admin.ProjectListRequest) (*admin.Projects, error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(context.Context, *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(context.Context, *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(context.Context, *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(context.Context, *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(context.Context, *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(context.Context, *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(context.Context, *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(context.Context, *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(context.Context, *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(context.Context, *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(context.Context, *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(context.Context, *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(context.Context, *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(context.Context, *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(context.Context, *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(context.Context, *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(context.Context, *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) - GetVersion(context.Context, *admin.GetVersionRequest) (*admin.GetVersionResponse, error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(context.Context, *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(context.Context, *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(context.Context, *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) -} - -// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAdminServiceServer struct { -} - -func (*UnimplementedAdminServiceServer) CreateTask(ctx context.Context, req *admin.TaskCreateRequest) (*admin.TaskCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (*UnimplementedAdminServiceServer) GetTask(ctx context.Context, req *admin.ObjectGetRequest) (*admin.Task, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (*UnimplementedAdminServiceServer) ListTaskIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskIds not implemented") -} -func (*UnimplementedAdminServiceServer) ListTasks(ctx context.Context, req *admin.ResourceListRequest) (*admin.TaskList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTasks not implemented") -} -func (*UnimplementedAdminServiceServer) CreateWorkflow(ctx context.Context, req *admin.WorkflowCreateRequest) (*admin.WorkflowCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflow not implemented") -} -func (*UnimplementedAdminServiceServer) GetWorkflow(ctx context.Context, req *admin.ObjectGetRequest) (*admin.Workflow, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflow not implemented") -} -func (*UnimplementedAdminServiceServer) ListWorkflowIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflowIds not implemented") -} -func (*UnimplementedAdminServiceServer) ListWorkflows(ctx context.Context, req *admin.ResourceListRequest) (*admin.WorkflowList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListWorkflows not implemented") -} -func (*UnimplementedAdminServiceServer) CreateLaunchPlan(ctx context.Context, req *admin.LaunchPlanCreateRequest) (*admin.LaunchPlanCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateLaunchPlan not implemented") -} -func (*UnimplementedAdminServiceServer) GetLaunchPlan(ctx context.Context, req *admin.ObjectGetRequest) (*admin.LaunchPlan, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetLaunchPlan not implemented") -} -func (*UnimplementedAdminServiceServer) GetActiveLaunchPlan(ctx context.Context, req *admin.ActiveLaunchPlanRequest) (*admin.LaunchPlan, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetActiveLaunchPlan not implemented") -} -func (*UnimplementedAdminServiceServer) ListActiveLaunchPlans(ctx context.Context, req *admin.ActiveLaunchPlanListRequest) (*admin.LaunchPlanList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListActiveLaunchPlans not implemented") -} -func (*UnimplementedAdminServiceServer) ListLaunchPlanIds(ctx context.Context, req *admin.NamedEntityIdentifierListRequest) (*admin.NamedEntityIdentifierList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlanIds not implemented") -} -func (*UnimplementedAdminServiceServer) ListLaunchPlans(ctx context.Context, req *admin.ResourceListRequest) (*admin.LaunchPlanList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListLaunchPlans not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateLaunchPlan(ctx context.Context, req *admin.LaunchPlanUpdateRequest) (*admin.LaunchPlanUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateLaunchPlan not implemented") -} -func (*UnimplementedAdminServiceServer) CreateExecution(ctx context.Context, req *admin.ExecutionCreateRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateExecution not implemented") -} -func (*UnimplementedAdminServiceServer) RelaunchExecution(ctx context.Context, req *admin.ExecutionRelaunchRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RelaunchExecution not implemented") -} -func (*UnimplementedAdminServiceServer) RecoverExecution(ctx context.Context, req *admin.ExecutionRecoverRequest) (*admin.ExecutionCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RecoverExecution not implemented") -} -func (*UnimplementedAdminServiceServer) GetExecution(ctx context.Context, req *admin.WorkflowExecutionGetRequest) (*admin.Execution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecution not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateExecution(ctx context.Context, req *admin.ExecutionUpdateRequest) (*admin.ExecutionUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateExecution not implemented") -} -func (*UnimplementedAdminServiceServer) GetExecutionData(ctx context.Context, req *admin.WorkflowExecutionGetDataRequest) (*admin.WorkflowExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecutionData not implemented") -} -func (*UnimplementedAdminServiceServer) ListExecutions(ctx context.Context, req *admin.ResourceListRequest) (*admin.ExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListExecutions not implemented") -} -func (*UnimplementedAdminServiceServer) TerminateExecution(ctx context.Context, req *admin.ExecutionTerminateRequest) (*admin.ExecutionTerminateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method TerminateExecution not implemented") -} -func (*UnimplementedAdminServiceServer) GetNodeExecution(ctx context.Context, req *admin.NodeExecutionGetRequest) (*admin.NodeExecution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecution not implemented") -} -func (*UnimplementedAdminServiceServer) ListNodeExecutions(ctx context.Context, req *admin.NodeExecutionListRequest) (*admin.NodeExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutions not implemented") -} -func (*UnimplementedAdminServiceServer) ListNodeExecutionsForTask(ctx context.Context, req *admin.NodeExecutionForTaskListRequest) (*admin.NodeExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNodeExecutionsForTask not implemented") -} -func (*UnimplementedAdminServiceServer) GetNodeExecutionData(ctx context.Context, req *admin.NodeExecutionGetDataRequest) (*admin.NodeExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNodeExecutionData not implemented") -} -func (*UnimplementedAdminServiceServer) RegisterProject(ctx context.Context, req *admin.ProjectRegisterRequest) (*admin.ProjectRegisterResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method RegisterProject not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateProject(ctx context.Context, req *admin.Project) (*admin.ProjectUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProject not implemented") -} -func (*UnimplementedAdminServiceServer) ListProjects(ctx context.Context, req *admin.ProjectListRequest) (*admin.Projects, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListProjects not implemented") -} -func (*UnimplementedAdminServiceServer) CreateWorkflowEvent(ctx context.Context, req *admin.WorkflowExecutionEventRequest) (*admin.WorkflowExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateWorkflowEvent not implemented") -} -func (*UnimplementedAdminServiceServer) CreateNodeEvent(ctx context.Context, req *admin.NodeExecutionEventRequest) (*admin.NodeExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateNodeEvent not implemented") -} -func (*UnimplementedAdminServiceServer) CreateTaskEvent(ctx context.Context, req *admin.TaskExecutionEventRequest) (*admin.TaskExecutionEventResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTaskEvent not implemented") -} -func (*UnimplementedAdminServiceServer) GetTaskExecution(ctx context.Context, req *admin.TaskExecutionGetRequest) (*admin.TaskExecution, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecution not implemented") -} -func (*UnimplementedAdminServiceServer) ListTaskExecutions(ctx context.Context, req *admin.TaskExecutionListRequest) (*admin.TaskExecutionList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListTaskExecutions not implemented") -} -func (*UnimplementedAdminServiceServer) GetTaskExecutionData(ctx context.Context, req *admin.TaskExecutionGetDataRequest) (*admin.TaskExecutionGetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTaskExecutionData not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesUpdateRequest) (*admin.ProjectDomainAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectDomainAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) GetProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesGetRequest) (*admin.ProjectDomainAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectDomainAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) DeleteProjectDomainAttributes(ctx context.Context, req *admin.ProjectDomainAttributesDeleteRequest) (*admin.ProjectDomainAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectDomainAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateProjectAttributes(ctx context.Context, req *admin.ProjectAttributesUpdateRequest) (*admin.ProjectAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateProjectAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) GetProjectAttributes(ctx context.Context, req *admin.ProjectAttributesGetRequest) (*admin.ProjectAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetProjectAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) DeleteProjectAttributes(ctx context.Context, req *admin.ProjectAttributesDeleteRequest) (*admin.ProjectAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteProjectAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesUpdateRequest) (*admin.WorkflowAttributesUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkflowAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) GetWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesGetRequest) (*admin.WorkflowAttributesGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetWorkflowAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) DeleteWorkflowAttributes(ctx context.Context, req *admin.WorkflowAttributesDeleteRequest) (*admin.WorkflowAttributesDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkflowAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) ListMatchableAttributes(ctx context.Context, req *admin.ListMatchableAttributesRequest) (*admin.ListMatchableAttributesResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListMatchableAttributes not implemented") -} -func (*UnimplementedAdminServiceServer) ListNamedEntities(ctx context.Context, req *admin.NamedEntityListRequest) (*admin.NamedEntityList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListNamedEntities not implemented") -} -func (*UnimplementedAdminServiceServer) GetNamedEntity(ctx context.Context, req *admin.NamedEntityGetRequest) (*admin.NamedEntity, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetNamedEntity not implemented") -} -func (*UnimplementedAdminServiceServer) UpdateNamedEntity(ctx context.Context, req *admin.NamedEntityUpdateRequest) (*admin.NamedEntityUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UpdateNamedEntity not implemented") -} -func (*UnimplementedAdminServiceServer) GetVersion(ctx context.Context, req *admin.GetVersionRequest) (*admin.GetVersionResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetVersion not implemented") -} -func (*UnimplementedAdminServiceServer) GetDescriptionEntity(ctx context.Context, req *admin.ObjectGetRequest) (*admin.DescriptionEntity, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDescriptionEntity not implemented") -} -func (*UnimplementedAdminServiceServer) ListDescriptionEntities(ctx context.Context, req *admin.DescriptionEntityListRequest) (*admin.DescriptionEntityList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListDescriptionEntities not implemented") -} -func (*UnimplementedAdminServiceServer) GetExecutionMetrics(ctx context.Context, req *admin.WorkflowExecutionGetMetricsRequest) (*admin.WorkflowExecutionGetMetricsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetExecutionMetrics not implemented") -} - -func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) { - s.RegisterService(&_AdminService_serviceDesc, srv) -} - -func _AdminService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateTask(ctx, req.(*admin.TaskCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTask(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTaskIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTaskIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListTaskIds", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTaskIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTasks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTasks(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListTasks", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTasks(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateWorkflow(ctx, req.(*admin.WorkflowCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetWorkflow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetWorkflow(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetWorkflow", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetWorkflow(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListWorkflowIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListWorkflowIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListWorkflowIds", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListWorkflowIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListWorkflows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListWorkflows(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListWorkflows", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListWorkflows(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.LaunchPlanCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateLaunchPlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateLaunchPlan(ctx, req.(*admin.LaunchPlanCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetLaunchPlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetLaunchPlan(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetActiveLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ActiveLaunchPlanRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetActiveLaunchPlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetActiveLaunchPlan(ctx, req.(*admin.ActiveLaunchPlanRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListActiveLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ActiveLaunchPlanListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListActiveLaunchPlans", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListActiveLaunchPlans(ctx, req.(*admin.ActiveLaunchPlanListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListLaunchPlanIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityIdentifierListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListLaunchPlanIds", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListLaunchPlanIds(ctx, req.(*admin.NamedEntityIdentifierListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListLaunchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListLaunchPlans(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListLaunchPlans", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListLaunchPlans(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateLaunchPlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.LaunchPlanUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateLaunchPlan", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateLaunchPlan(ctx, req.(*admin.LaunchPlanUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateExecution(ctx, req.(*admin.ExecutionCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RelaunchExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionRelaunchRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RelaunchExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/RelaunchExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RelaunchExecution(ctx, req.(*admin.ExecutionRelaunchRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RecoverExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionRecoverRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RecoverExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/RecoverExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RecoverExecution(ctx, req.(*admin.ExecutionRecoverRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecution(ctx, req.(*admin.WorkflowExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateExecution(ctx, req.(*admin.ExecutionUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetExecutionData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecutionData(ctx, req.(*admin.WorkflowExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ResourceListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListExecutions(ctx, req.(*admin.ResourceListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_TerminateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ExecutionTerminateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).TerminateExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/TerminateExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).TerminateExecution(ctx, req.(*admin.ExecutionTerminateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNodeExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNodeExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetNodeExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNodeExecution(ctx, req.(*admin.NodeExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNodeExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNodeExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListNodeExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNodeExecutions(ctx, req.(*admin.NodeExecutionListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNodeExecutionsForTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionForTaskListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListNodeExecutionsForTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNodeExecutionsForTask(ctx, req.(*admin.NodeExecutionForTaskListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNodeExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNodeExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetNodeExecutionData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNodeExecutionData(ctx, req.(*admin.NodeExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_RegisterProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectRegisterRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).RegisterProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/RegisterProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).RegisterProject(ctx, req.(*admin.ProjectRegisterRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.Project) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProject(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateProject", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProject(ctx, req.(*admin.Project)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListProjects_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListProjects(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListProjects", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListProjects(ctx, req.(*admin.ProjectListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateWorkflowEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateWorkflowEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateWorkflowEvent(ctx, req.(*admin.WorkflowExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateNodeEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NodeExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateNodeEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateNodeEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateNodeEvent(ctx, req.(*admin.NodeExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_CreateTaskEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionEventRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).CreateTaskEvent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/CreateTaskEvent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).CreateTaskEvent(ctx, req.(*admin.TaskExecutionEventRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTaskExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTaskExecution(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetTaskExecution", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTaskExecution(ctx, req.(*admin.TaskExecutionGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListTaskExecutions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListTaskExecutions(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListTaskExecutions", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListTaskExecutions(ctx, req.(*admin.TaskExecutionListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetTaskExecutionData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.TaskExecutionGetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetTaskExecutionData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetTaskExecutionData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetTaskExecutionData(ctx, req.(*admin.TaskExecutionGetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateProjectDomainAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetProjectDomainAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteProjectDomainAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectDomainAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/DeleteProjectDomainAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteProjectDomainAttributes(ctx, req.(*admin.ProjectDomainAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateProjectAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateProjectAttributes(ctx, req.(*admin.ProjectAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetProjectAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetProjectAttributes(ctx, req.(*admin.ProjectAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteProjectAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ProjectAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/DeleteProjectAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteProjectAttributes(ctx, req.(*admin.ProjectAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateWorkflowAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetWorkflowAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_DeleteWorkflowAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowAttributesDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/DeleteWorkflowAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).DeleteWorkflowAttributes(ctx, req.(*admin.WorkflowAttributesDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListMatchableAttributes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ListMatchableAttributesRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListMatchableAttributes(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListMatchableAttributes", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListMatchableAttributes(ctx, req.(*admin.ListMatchableAttributesRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListNamedEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListNamedEntities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListNamedEntities", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListNamedEntities(ctx, req.(*admin.NamedEntityListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetNamedEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetNamedEntity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetNamedEntity(ctx, req.(*admin.NamedEntityGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_UpdateNamedEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.NamedEntityUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).UpdateNamedEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/UpdateNamedEntity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).UpdateNamedEntity(ctx, req.(*admin.NamedEntityUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetVersionRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetVersion(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetVersion", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetVersion(ctx, req.(*admin.GetVersionRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetDescriptionEntity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ObjectGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetDescriptionEntity(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetDescriptionEntity", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetDescriptionEntity(ctx, req.(*admin.ObjectGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_ListDescriptionEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.DescriptionEntityListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).ListDescriptionEntities(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/ListDescriptionEntities", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).ListDescriptionEntities(ctx, req.(*admin.DescriptionEntityListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AdminService_GetExecutionMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.WorkflowExecutionGetMetricsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AdminServiceServer).GetExecutionMetrics(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AdminService/GetExecutionMetrics", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AdminServiceServer).GetExecutionMetrics(ctx, req.(*admin.WorkflowExecutionGetMetricsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AdminService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AdminService", - HandlerType: (*AdminServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _AdminService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _AdminService_GetTask_Handler, - }, - { - MethodName: "ListTaskIds", - Handler: _AdminService_ListTaskIds_Handler, - }, - { - MethodName: "ListTasks", - Handler: _AdminService_ListTasks_Handler, - }, - { - MethodName: "CreateWorkflow", - Handler: _AdminService_CreateWorkflow_Handler, - }, - { - MethodName: "GetWorkflow", - Handler: _AdminService_GetWorkflow_Handler, - }, - { - MethodName: "ListWorkflowIds", - Handler: _AdminService_ListWorkflowIds_Handler, - }, - { - MethodName: "ListWorkflows", - Handler: _AdminService_ListWorkflows_Handler, - }, - { - MethodName: "CreateLaunchPlan", - Handler: _AdminService_CreateLaunchPlan_Handler, - }, - { - MethodName: "GetLaunchPlan", - Handler: _AdminService_GetLaunchPlan_Handler, - }, - { - MethodName: "GetActiveLaunchPlan", - Handler: _AdminService_GetActiveLaunchPlan_Handler, - }, - { - MethodName: "ListActiveLaunchPlans", - Handler: _AdminService_ListActiveLaunchPlans_Handler, - }, - { - MethodName: "ListLaunchPlanIds", - Handler: _AdminService_ListLaunchPlanIds_Handler, - }, - { - MethodName: "ListLaunchPlans", - Handler: _AdminService_ListLaunchPlans_Handler, - }, - { - MethodName: "UpdateLaunchPlan", - Handler: _AdminService_UpdateLaunchPlan_Handler, - }, - { - MethodName: "CreateExecution", - Handler: _AdminService_CreateExecution_Handler, - }, - { - MethodName: "RelaunchExecution", - Handler: _AdminService_RelaunchExecution_Handler, - }, - { - MethodName: "RecoverExecution", - Handler: _AdminService_RecoverExecution_Handler, - }, - { - MethodName: "GetExecution", - Handler: _AdminService_GetExecution_Handler, - }, - { - MethodName: "UpdateExecution", - Handler: _AdminService_UpdateExecution_Handler, - }, - { - MethodName: "GetExecutionData", - Handler: _AdminService_GetExecutionData_Handler, - }, - { - MethodName: "ListExecutions", - Handler: _AdminService_ListExecutions_Handler, - }, - { - MethodName: "TerminateExecution", - Handler: _AdminService_TerminateExecution_Handler, - }, - { - MethodName: "GetNodeExecution", - Handler: _AdminService_GetNodeExecution_Handler, - }, - { - MethodName: "ListNodeExecutions", - Handler: _AdminService_ListNodeExecutions_Handler, - }, - { - MethodName: "ListNodeExecutionsForTask", - Handler: _AdminService_ListNodeExecutionsForTask_Handler, - }, - { - MethodName: "GetNodeExecutionData", - Handler: _AdminService_GetNodeExecutionData_Handler, - }, - { - MethodName: "RegisterProject", - Handler: _AdminService_RegisterProject_Handler, - }, - { - MethodName: "UpdateProject", - Handler: _AdminService_UpdateProject_Handler, - }, - { - MethodName: "ListProjects", - Handler: _AdminService_ListProjects_Handler, - }, - { - MethodName: "CreateWorkflowEvent", - Handler: _AdminService_CreateWorkflowEvent_Handler, - }, - { - MethodName: "CreateNodeEvent", - Handler: _AdminService_CreateNodeEvent_Handler, - }, - { - MethodName: "CreateTaskEvent", - Handler: _AdminService_CreateTaskEvent_Handler, - }, - { - MethodName: "GetTaskExecution", - Handler: _AdminService_GetTaskExecution_Handler, - }, - { - MethodName: "ListTaskExecutions", - Handler: _AdminService_ListTaskExecutions_Handler, - }, - { - MethodName: "GetTaskExecutionData", - Handler: _AdminService_GetTaskExecutionData_Handler, - }, - { - MethodName: "UpdateProjectDomainAttributes", - Handler: _AdminService_UpdateProjectDomainAttributes_Handler, - }, - { - MethodName: "GetProjectDomainAttributes", - Handler: _AdminService_GetProjectDomainAttributes_Handler, - }, - { - MethodName: "DeleteProjectDomainAttributes", - Handler: _AdminService_DeleteProjectDomainAttributes_Handler, - }, - { - MethodName: "UpdateProjectAttributes", - Handler: _AdminService_UpdateProjectAttributes_Handler, - }, - { - MethodName: "GetProjectAttributes", - Handler: _AdminService_GetProjectAttributes_Handler, - }, - { - MethodName: "DeleteProjectAttributes", - Handler: _AdminService_DeleteProjectAttributes_Handler, - }, - { - MethodName: "UpdateWorkflowAttributes", - Handler: _AdminService_UpdateWorkflowAttributes_Handler, - }, - { - MethodName: "GetWorkflowAttributes", - Handler: _AdminService_GetWorkflowAttributes_Handler, - }, - { - MethodName: "DeleteWorkflowAttributes", - Handler: _AdminService_DeleteWorkflowAttributes_Handler, - }, - { - MethodName: "ListMatchableAttributes", - Handler: _AdminService_ListMatchableAttributes_Handler, - }, - { - MethodName: "ListNamedEntities", - Handler: _AdminService_ListNamedEntities_Handler, - }, - { - MethodName: "GetNamedEntity", - Handler: _AdminService_GetNamedEntity_Handler, - }, - { - MethodName: "UpdateNamedEntity", - Handler: _AdminService_UpdateNamedEntity_Handler, - }, - { - MethodName: "GetVersion", - Handler: _AdminService_GetVersion_Handler, - }, - { - MethodName: "GetDescriptionEntity", - Handler: _AdminService_GetDescriptionEntity_Handler, - }, - { - MethodName: "ListDescriptionEntities", - Handler: _AdminService_ListDescriptionEntities_Handler, - }, - { - MethodName: "GetExecutionMetrics", - Handler: _AdminService_GetExecutionMetrics_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/admin.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go deleted file mode 100644 index ea8c99459c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/admin.pb.gw.go +++ /dev/null @@ -1,4409 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/admin.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_AdminService_CreateTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.TaskCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} -) - -func request_AdminService_GetTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTaskIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AdminService_ListTaskIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTaskIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTasks_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_ListTasks_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTasks_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} -) - -func request_AdminService_ListTasks_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTasks_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTasks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetWorkflow_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} -) - -func request_AdminService_GetWorkflow_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflow_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetWorkflow(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflowIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AdminService_ListWorkflowIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflowIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflowIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflows_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_ListWorkflows_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListWorkflows_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} -) - -func request_AdminService_ListWorkflows_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListWorkflows_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListWorkflows(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.LaunchPlanCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3, "version": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 3, 4, 5, 6}} -) - -func request_AdminService_GetLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetActiveLaunchPlan_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_GetActiveLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ActiveLaunchPlanRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetActiveLaunchPlan_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetActiveLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListActiveLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AdminService_ListActiveLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ActiveLaunchPlanListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListActiveLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListActiveLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlanIds_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AdminService_ListLaunchPlanIds_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityIdentifierListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlanIds_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlanIds(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlans_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_ListLaunchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListLaunchPlans_1 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} -) - -func request_AdminService_ListLaunchPlans_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListLaunchPlans_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListLaunchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateLaunchPlan_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.LaunchPlanUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - msg, err := client.UpdateLaunchPlan(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ExecutionCreateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_RelaunchExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ExecutionRelaunchRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RelaunchExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_RecoverExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ExecutionRecoverRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RecoverExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_GetExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ExecutionUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.UpdateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_GetExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 1, 2, 0, 0}, Check: []int{0, 1, 2, 2, 3, 4}} -) - -func request_AdminService_ListExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ResourceListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_TerminateExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ExecutionTerminateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.TerminateExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNodeExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} -) - -func request_AdminService_GetNodeExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NodeExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNodeExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNodeExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_ListNodeExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NodeExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNodeExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNodeExecutionsForTask_0 = &utilities.DoubleArray{Encoding: map[string]int{"task_execution_id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} -) - -func request_AdminService_ListNodeExecutionsForTask_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NodeExecutionForTaskListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["task_execution_id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.node_execution_id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.node_execution_id.node_id", err) - } - - val, ok = pathParams["task_execution_id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.project", err) - } - - val, ok = pathParams["task_execution_id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.domain", err) - } - - val, ok = pathParams["task_execution_id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.name", err) - } - - val, ok = pathParams["task_execution_id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.task_id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.task_id.version", err) - } - - val, ok = pathParams["task_execution_id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "task_execution_id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "task_execution_id.retry_attempt", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "task_execution_id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNodeExecutionsForTask_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNodeExecutionsForTask(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNodeExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} -) - -func request_AdminService_GetNodeExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NodeExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.project", err) - } - - val, ok = pathParams["id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.domain", err) - } - - val, ok = pathParams["id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.execution_id.name", err) - } - - val, ok = pathParams["id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNodeExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNodeExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_RegisterProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectRegisterRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.RegisterProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateProject_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.Project - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id") - } - - protoReq.Id, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id", err) - } - - msg, err := client.UpdateProject(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListProjects_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AdminService_ListProjects_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectListRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListProjects_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListProjects(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateWorkflowEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateWorkflowEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateNodeEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NodeExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateNodeEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_CreateTaskEvent_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.TaskExecutionEventRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateTaskEvent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTaskExecution_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} -) - -func request_AdminService_GetTaskExecution_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.TaskExecutionGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecution_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTaskExecution(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListTaskExecutions_0 = &utilities.DoubleArray{Encoding: map[string]int{"node_execution_id": 0, "execution_id": 1, "project": 2, "domain": 3, "name": 4, "node_id": 5}, Base: []int{1, 6, 1, 1, 2, 2, 5, 0, 0, 4, 0, 6, 0}, Check: []int{0, 1, 2, 3, 2, 5, 2, 4, 6, 7, 10, 2, 12}} -) - -func request_AdminService_ListTaskExecutions_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.TaskExecutionListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "node_execution_id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "node_execution_id.node_id", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListTaskExecutions_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListTaskExecutions(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetTaskExecutionData_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "node_execution_id": 1, "execution_id": 2, "project": 3, "domain": 4, "name": 5, "node_id": 6, "task_id": 7, "version": 8, "retry_attempt": 9}, Base: []int{1, 20, 1, 1, 1, 4, 3, 2, 7, 5, 3, 0, 0, 0, 9, 6, 0, 15, 9, 0, 17, 12, 0, 19, 15, 0, 19, 18, 0, 20, 0}, Check: []int{0, 1, 2, 3, 4, 2, 6, 7, 2, 9, 10, 5, 8, 11, 2, 15, 16, 2, 18, 19, 2, 21, 22, 2, 24, 25, 2, 27, 28, 2, 30}} -) - -func request_AdminService_GetTaskExecutionData_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.TaskExecutionGetDataRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.node_execution_id.execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.project", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.domain", err) - } - - val, ok = pathParams["id.node_execution_id.execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.execution_id.name", err) - } - - val, ok = pathParams["id.node_execution_id.node_id"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.node_execution_id.node_id") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.node_execution_id.node_id", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.node_execution_id.node_id", err) - } - - val, ok = pathParams["id.task_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.project", err) - } - - val, ok = pathParams["id.task_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.domain", err) - } - - val, ok = pathParams["id.task_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.name", err) - } - - val, ok = pathParams["id.task_id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.task_id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.task_id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.task_id.version", err) - } - - val, ok = pathParams["id.retry_attempt"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.retry_attempt") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.retry_attempt", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.retry_attempt", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetTaskExecutionData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetTaskExecutionData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectDomainAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - msg, err := client.UpdateProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetProjectDomainAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1}, Base: []int{1, 1, 2, 0, 0}, Check: []int{0, 1, 1, 2, 3}} -) - -func request_AdminService_GetProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectDomainAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectDomainAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_DeleteProjectDomainAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectDomainAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - msg, err := client.DeleteProjectDomainAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - msg, err := client.UpdateProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetProjectAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} -) - -func request_AdminService_GetProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetProjectAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_DeleteProjectAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ProjectAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - msg, err := client.DeleteProjectAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowAttributesUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["attributes.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.project", err) - } - - val, ok = pathParams["attributes.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.domain", err) - } - - val, ok = pathParams["attributes.workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "attributes.workflow") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "attributes.workflow", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "attributes.workflow", err) - } - - msg, err := client.UpdateWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetWorkflowAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{"project": 0, "domain": 1, "workflow": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} -) - -func request_AdminService_GetWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowAttributesGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetWorkflowAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_DeleteWorkflowAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowAttributesDeleteRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - val, ok = pathParams["workflow"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow") - } - - protoReq.Workflow, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow", err) - } - - msg, err := client.DeleteWorkflowAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListMatchableAttributes_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_AdminService_ListMatchableAttributes_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ListMatchableAttributesRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListMatchableAttributes_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListMatchableAttributes(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListNamedEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "project": 1, "domain": 2}, Base: []int{1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 1, 2, 3, 4}} -) - -func request_AdminService_ListNamedEntities_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, core.ResourceType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = core.ResourceType(e) - - val, ok = pathParams["project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "project") - } - - protoReq.Project, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "project", err) - } - - val, ok = pathParams["domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "domain") - } - - protoReq.Domain, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListNamedEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListNamedEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetNamedEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3, "name": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 3, 2, 4, 5, 6}} -) - -func request_AdminService_GetNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, core.ResourceType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = core.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetNamedEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_UpdateNamedEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.NamedEntityUpdateRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, core.ResourceType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = core.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - msg, err := client.UpdateNamedEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AdminService_GetVersion_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.GetVersionRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetVersion(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetDescriptionEntity_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "resource_type": 1, "project": 2, "domain": 3, "name": 4, "version": 5}, Base: []int{1, 1, 1, 2, 3, 4, 5, 0, 0, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 2, 2, 3, 4, 5, 6, 7}} -) - -func request_AdminService_GetDescriptionEntity_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ObjectGetRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.resource_type") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.resource_type", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.resource_type", err) - } - - protoReq.Id.ResourceType = core.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - val, ok = pathParams["id.version"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.version") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.version", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.version", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetDescriptionEntity_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetDescriptionEntity(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListDescriptionEntities_0 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3, "name": 4}, Base: []int{1, 1, 1, 2, 3, 4, 0, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 3, 2, 4, 5, 6}} -) - -func request_AdminService_ListDescriptionEntities_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, core.ResourceType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = core.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_ListDescriptionEntities_1 = &utilities.DoubleArray{Encoding: map[string]int{"resource_type": 0, "id": 1, "project": 2, "domain": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 1, 3, 3, 2, 4, 5}} -) - -func request_AdminService_ListDescriptionEntities_1(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.DescriptionEntityListRequest - var metadata runtime.ServerMetadata - - var ( - val string - e int32 - ok bool - err error - _ = err - ) - - val, ok = pathParams["resource_type"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "resource_type") - } - - e, err = runtime.Enum(val, core.ResourceType_value) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "resource_type", err) - } - - protoReq.ResourceType = core.ResourceType(e) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_ListDescriptionEntities_1); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListDescriptionEntities(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_AdminService_GetExecutionMetrics_0 = &utilities.DoubleArray{Encoding: map[string]int{"id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_AdminService_GetExecutionMetrics_0(ctx context.Context, marshaler runtime.Marshaler, client AdminServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.WorkflowExecutionGetMetricsRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.project", err) - } - - val, ok = pathParams["id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.domain", err) - } - - val, ok = pathParams["id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_AdminService_GetExecutionMetrics_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetExecutionMetrics(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterAdminServiceHandlerFromEndpoint is same as RegisterAdminServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAdminServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAdminServiceHandler(ctx, mux, conn) -} - -// RegisterAdminServiceHandler registers the http handlers for service AdminService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAdminServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAdminServiceHandlerClient(ctx, mux, NewAdminServiceClient(conn)) -} - -// RegisterAdminServiceHandlerClient registers the http handlers for service AdminService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdminServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdminServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AdminServiceClient" to call the correct interceptors. -func RegisterAdminServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdminServiceClient) error { - - mux.Handle("POST", pattern_AdminService_CreateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateTask_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTask_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTaskIds_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTasks_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTasks_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTasks_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTasks_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflow_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetWorkflow_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflow_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflowIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflowIds_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflowIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflows_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListWorkflows_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListWorkflows_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListWorkflows_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetActiveLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetActiveLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetActiveLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListActiveLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListActiveLaunchPlans_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListActiveLaunchPlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlanIds_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlanIds_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlanIds_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlans_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListLaunchPlans_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListLaunchPlans_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListLaunchPlans_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateLaunchPlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateLaunchPlan_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateLaunchPlan_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RelaunchExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RelaunchExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RelaunchExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RecoverExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RecoverExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RecoverExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListExecutions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_TerminateExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_TerminateExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_TerminateExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNodeExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNodeExecutions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNodeExecutionsForTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNodeExecutionsForTask_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNodeExecutionsForTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNodeExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNodeExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNodeExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_RegisterProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_RegisterProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_RegisterProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProject_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProject_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProject_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListProjects_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListProjects_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListProjects_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateWorkflowEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateWorkflowEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateWorkflowEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateNodeEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateNodeEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateNodeEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_AdminService_CreateTaskEvent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_CreateTaskEvent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_CreateTaskEvent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecution_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTaskExecution_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecution_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListTaskExecutions_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListTaskExecutions_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListTaskExecutions_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetTaskExecutionData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetTaskExecutionData_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetTaskExecutionData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProjectDomainAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetProjectDomainAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectDomainAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteProjectDomainAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectDomainAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateProjectAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetProjectAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteProjectAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteProjectAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteProjectAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateWorkflowAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetWorkflowAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("DELETE", pattern_AdminService_DeleteWorkflowAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_DeleteWorkflowAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_DeleteWorkflowAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListMatchableAttributes_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListMatchableAttributes_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListMatchableAttributes_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListNamedEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListNamedEntities_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListNamedEntities_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetNamedEntity_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetNamedEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("PUT", pattern_AdminService_UpdateNamedEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_UpdateNamedEntity_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_UpdateNamedEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetVersion_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetVersion_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetVersion_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetDescriptionEntity_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetDescriptionEntity_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetDescriptionEntity_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListDescriptionEntities_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_ListDescriptionEntities_1, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_ListDescriptionEntities_1(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_ListDescriptionEntities_1(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AdminService_GetExecutionMetrics_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AdminService_GetExecutionMetrics_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AdminService_GetExecutionMetrics_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AdminService_CreateTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "tasks"}, "")) - - pattern_AdminService_GetTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListTaskIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "task_ids", "project", "domain"}, "")) - - pattern_AdminService_ListTasks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "tasks", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListTasks_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "tasks", "id.project", "id.domain"}, "")) - - pattern_AdminService_CreateWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "workflows"}, "")) - - pattern_AdminService_GetWorkflow_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListWorkflowIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflow_ids", "project", "domain"}, "")) - - pattern_AdminService_ListWorkflows_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflows", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListWorkflows_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "workflows", "id.project", "id.domain"}, "")) - - pattern_AdminService_CreateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "launch_plans"}, "")) - - pattern_AdminService_GetLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_GetActiveLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "active_launch_plans", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListActiveLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "active_launch_plans", "project", "domain"}, "")) - - pattern_AdminService_ListLaunchPlanIds_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plan_ids", "project", "domain"}, "")) - - pattern_AdminService_ListLaunchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListLaunchPlans_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "launch_plans", "id.project", "id.domain"}, "")) - - pattern_AdminService_UpdateLaunchPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "launch_plans", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_CreateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "executions"}, "")) - - pattern_AdminService_RelaunchExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "relaunch"}, "")) - - pattern_AdminService_RecoverExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "executions", "recover"}, "")) - - pattern_AdminService_GetExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_UpdateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "data", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "executions", "id.project", "id.domain"}, "")) - - pattern_AdminService_TerminateExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "executions", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetNodeExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) - - pattern_AdminService_ListNodeExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "node_executions", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) - - pattern_AdminService_ListNodeExecutionsForTask_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "children", "task_executions", "task_execution_id.node_execution_id.execution_id.project", "task_execution_id.node_execution_id.execution_id.domain", "task_execution_id.node_execution_id.execution_id.name", "task_execution_id.node_execution_id.node_id", "task_execution_id.task_id.project", "task_execution_id.task_id.domain", "task_execution_id.task_id.name", "task_execution_id.task_id.version", "task_execution_id.retry_attempt"}, "")) - - pattern_AdminService_GetNodeExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "data", "node_executions", "id.execution_id.project", "id.execution_id.domain", "id.execution_id.name", "id.node_id"}, "")) - - pattern_AdminService_RegisterProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) - - pattern_AdminService_UpdateProject_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "projects", "id"}, "")) - - pattern_AdminService_ListProjects_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "projects"}, "")) - - pattern_AdminService_CreateWorkflowEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "workflows"}, "")) - - pattern_AdminService_CreateNodeEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "nodes"}, "")) - - pattern_AdminService_CreateTaskEvent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "events", "tasks"}, "")) - - pattern_AdminService_GetTaskExecution_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11}, []string{"api", "v1", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) - - pattern_AdminService_ListTaskExecutions_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "task_executions", "node_execution_id.execution_id.project", "node_execution_id.execution_id.domain", "node_execution_id.execution_id.name", "node_execution_id.node_id"}, "")) - - pattern_AdminService_GetTaskExecutionData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7, 1, 0, 4, 1, 5, 8, 1, 0, 4, 1, 5, 9, 1, 0, 4, 1, 5, 10, 1, 0, 4, 1, 5, 11, 1, 0, 4, 1, 5, 12}, []string{"api", "v1", "data", "task_executions", "id.node_execution_id.execution_id.project", "id.node_execution_id.execution_id.domain", "id.node_execution_id.execution_id.name", "id.node_execution_id.node_id", "id.task_id.project", "id.task_id.domain", "id.task_id.name", "id.task_id.version", "id.retry_attempt"}, "")) - - pattern_AdminService_UpdateProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "attributes.project", "attributes.domain"}, "")) - - pattern_AdminService_GetProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) - - pattern_AdminService_DeleteProjectDomainAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4}, []string{"api", "v1", "project_domain_attributes", "project", "domain"}, "")) - - pattern_AdminService_UpdateProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "attributes.project"}, "")) - - pattern_AdminService_GetProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) - - pattern_AdminService_DeleteProjectAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "project_attributes", "project"}, "")) - - pattern_AdminService_UpdateWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "attributes.project", "attributes.domain", "attributes.workflow"}, "")) - - pattern_AdminService_GetWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) - - pattern_AdminService_DeleteWorkflowAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "workflow_attributes", "project", "domain", "workflow"}, "")) - - pattern_AdminService_ListMatchableAttributes_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "matchable_attributes"}, "")) - - pattern_AdminService_ListNamedEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "named_entities", "resource_type", "project", "domain"}, "")) - - pattern_AdminService_GetNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_UpdateNamedEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "named_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_GetVersion_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "version"}, "")) - - pattern_AdminService_GetDescriptionEntity_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6, 1, 0, 4, 1, 5, 7}, []string{"api", "v1", "description_entities", "id.resource_type", "id.project", "id.domain", "id.name", "id.version"}, "")) - - pattern_AdminService_ListDescriptionEntities_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain", "id.name"}, "")) - - pattern_AdminService_ListDescriptionEntities_1 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "description_entities", "resource_type", "id.project", "id.domain"}, "")) - - pattern_AdminService_GetExecutionMetrics_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5, 1, 0, 4, 1, 5, 6}, []string{"api", "v1", "metrics", "executions", "id.project", "id.domain", "id.name"}, "")) -) - -var ( - forward_AdminService_CreateTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTaskIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTasks_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTasks_1 = runtime.ForwardResponseMessage - - forward_AdminService_CreateWorkflow_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetWorkflow_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflowIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflows_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListWorkflows_1 = runtime.ForwardResponseMessage - - forward_AdminService_CreateLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetActiveLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListActiveLaunchPlans_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlanIds_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlans_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListLaunchPlans_1 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateLaunchPlan_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_RelaunchExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_RecoverExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_TerminateExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNodeExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNodeExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNodeExecutionsForTask_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNodeExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_RegisterProject_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProject_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListProjects_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateWorkflowEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateNodeEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_CreateTaskEvent_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTaskExecution_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListTaskExecutions_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetTaskExecutionData_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteProjectDomainAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteProjectAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_DeleteWorkflowAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListMatchableAttributes_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListNamedEntities_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetNamedEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_UpdateNamedEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetVersion_0 = runtime.ForwardResponseMessage - - forward_AdminService_GetDescriptionEntity_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListDescriptionEntities_0 = runtime.ForwardResponseMessage - - forward_AdminService_ListDescriptionEntities_1 = runtime.ForwardResponseMessage - - forward_AdminService_GetExecutionMetrics_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json deleted file mode 100644 index b2d41e5616..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json +++ /dev/null @@ -1,8057 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/admin.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "GetActiveLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/active_launch_plans/{project}/{domain}": { - "get": { - "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "ListActiveLaunchPlans", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "ListNodeExecutionsForTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - } - }, - "parameters": [ - { - "name": "task_execution_id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "task_execution_id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "GetNodeExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "GetTaskExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", - "operationId": "GetDescriptionEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntity" - } - } - }, - "parameters": [ - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "operationId": "ListDescriptionEntities2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "operationId": "ListDescriptionEntities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/nodes": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", - "operationId": "CreateNodeEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/tasks": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", - "operationId": "CreateTaskEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/workflows": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", - "operationId": "CreateWorkflowEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions": { - "post": { - "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", - "operationId": "CreateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/recover": { - "post": { - "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", - "operationId": "RecoverExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRecoverRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/relaunch": { - "post": { - "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", - "operationId": "RelaunchExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRelaunchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "ListExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecution" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "TerminateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionTerminateResponse" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionTerminateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "UpdateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plan_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", - "operationId": "ListLaunchPlanIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", - "operationId": "CreateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "operationId": "ListLaunchPlans2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "operationId": "ListLaunchPlans", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", - "operationId": "GetLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "UpdateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/matchable_attributes": { - "get": { - "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", - "operationId": "ListMatchableAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListMatchableAttributesResponse" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecutionMetrics", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "depth", - "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "operationId": "GetNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntity" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "operationId": "UpdateNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to update\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/{resource_type}/{project}/{domain}": { - "get": { - "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", - "operationId": "ListNamedEntities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityList" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "GetNodeExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminNodeExecution" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "ListNodeExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "unique_parent_id", - "description": "Unique identifier of the parent node in the execution\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_attributes/{attributes.project}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", - "operationId": "UpdateProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_attributes/{project}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "GetProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesGetResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "DeleteProjectAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "UpdateProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_domain_attributes/{project}/{domain}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "GetProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "DeleteProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/projects": { - "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", - "operationId": "ListProjects", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjects" - } - } - }, - "parameters": [ - { - "name": "limit", - "description": "Indicates the number of projects to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - }, - "post": { - "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", - "operationId": "RegisterProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectRegisterResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProjectRegisterRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/projects/{id}": { - "put": { - "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project` \nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", - "operationId": "UpdateProject", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "id", - "description": "Globally unique project name.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProject" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "GetTaskExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminTaskExecution" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { - "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "ListTaskExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionList" - } - } - }, - "parameters": [ - { - "name": "node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/task_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", - "operationId": "ListTaskIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", - "operationId": "CreateTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "operationId": "ListTasks2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "operationId": "ListTasks", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", - "operationId": "GetTask", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTask" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/version": { - "get": { - "operationId": "GetVersion", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetVersionResponse" - } - } - }, - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "UpdateWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.workflow", - "description": "Workflow name for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "GetWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesGetResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "DeleteWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflow_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", - "operationId": "ListWorkflowIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", - "operationId": "CreateWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowCreateResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "operationId": "ListWorkflows2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "operationId": "ListWorkflows", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowList" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", - "operationId": "GetWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflow" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "CatalogReservationStatus": { - "type": "string", - "enum": [ - "RESERVATION_DISABLED", - "RESERVATION_ACQUIRED", - "RESERVATION_EXISTS", - "RESERVATION_RELEASED", - "RESERVATION_FAILURE" - ], - "default": "RESERVATION_DISABLED", - "description": "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED: Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended\n - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released\n - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure" - }, - "ComparisonExpressionOperator": { - "type": "string", - "enum": [ - "EQ", - "NEQ", - "GT", - "GTE", - "LT", - "LTE" - ], - "default": "EQ", - "description": "- GT: Greater Than\n - LT: Less Than", - "title": "Binary Operator for each expression" - }, - "ConjunctionExpressionLogicalOperator": { - "type": "string", - "enum": [ - "AND", - "OR" - ], - "default": "AND", - "description": "- AND: Conjunction", - "title": "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation is not important as the operators are Commutative" - }, - "ConnectionSetIdList": { - "type": "object", - "properties": { - "ids": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "ExecutionErrorErrorKind": { - "type": "string", - "enum": [ - "UNKNOWN", - "USER", - "SYSTEM" - ], - "default": "UNKNOWN", - "title": "Error type: System or User" - }, - "ExecutionMetadataExecutionMode": { - "type": "string", - "enum": [ - "MANUAL", - "SCHEDULED", - "SYSTEM", - "RELAUNCH", - "CHILD_WORKFLOW", - "RECOVERED" - ], - "default": "MANUAL", - "description": "The method by which this execution was launched.\n\n - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual.\n - SCHEDULED: A schedule triggered this execution launch.\n - SYSTEM: A system process was responsible for launching this execution rather an individual.\n - RELAUNCH: This execution was launched with identical inputs as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered by another execution.\n - RECOVERED: This execution was recovered from another execution." - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "PluginOverrideMissingPluginBehavior": { - "type": "string", - "enum": [ - "FAIL", - "USE_DEFAULT" - ], - "default": "FAIL", - "description": " - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail.\n - USE_DEFAULT: Uses the system-configured default implementation." - }, - "ProjectProjectState": { - "type": "string", - "enum": [ - "ACTIVE", - "ARCHIVED", - "SYSTEM_GENERATED" - ], - "default": "ACTIVE", - "description": "The state of the project is used to control its visibility in the UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user." - }, - "QualityOfServiceTier": { - "type": "string", - "enum": [ - "UNDEFINED", - "HIGH", - "MEDIUM", - "LOW" - ], - "default": "UNDEFINED", - "description": " - UNDEFINED: Default: no quality of service specified." - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SortDirection": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING", - "description": " - DESCENDING: By default, fields are sorted in descending order." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "TaskExecutionMetadataInstanceClass": { - "type": "string", - "enum": [ - "DEFAULT", - "INTERRUPTIBLE" - ], - "default": "DEFAULT", - "description": "Includes the broad category of machine used for this specific task execution.\n\n - DEFAULT: The default instance class configured for the flyte application platform.\n - INTERRUPTIBLE: The instance class configured for interruptible tasks." - }, - "TaskLogMessageFormat": { - "type": "string", - "enum": [ - "UNKNOWN", - "CSV", - "JSON" - ], - "default": "UNKNOWN" - }, - "WorkflowMetadataOnFailurePolicy": { - "type": "string", - "enum": [ - "FAIL_IMMEDIATELY", - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" - ], - "default": "FAIL_IMMEDIATELY", - "description": "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically\nabort all currently running nodes and clean up resources before finally marking the workflow executions as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will\nnot alter the dependencies of the execution graph so any node that depend on the failed node will not be run.\nOther nodes that will be executed to completion before cleaning up resources and marking the workflow\nexecution as failed.", - "title": "Failure Handling Strategy" - }, - "adminAbortMetadata": { - "type": "object", - "properties": { - "cause": { - "type": "string", - "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." - }, - "principal": { - "type": "string", - "title": "Identifies the entity (if any) responsible for terminating the execution" - } - }, - "description": "Specifies metadata around an aborted workflow execution." - }, - "adminAnnotations": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom annotations to be applied to the execution resource." - } - }, - "description": "Annotation values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge annotations defined at registration and execution time." - }, - "adminAuth": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminAuthRole": { - "type": "object", - "properties": { - "assumable_iam_role": { - "type": "string", - "description": "Defines an optional iam role which will be used for tasks run in executions created with this launch plan." - }, - "kubernetes_service_account": { - "type": "string", - "description": "Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan." - } - }, - "description": "Defines permissions associated with executions created by this launch plan spec.\nUse either of these roles when they have permissions required by your workflow execution.\nDeprecated." - }, - "adminClusterAssignment": { - "type": "object", - "properties": { - "cluster_pool_name": { - "type": "string" - } - }, - "description": "Encapsulates specifications for routing an execution onto a specific cluster." - }, - "adminClusterResourceAttributes": { - "type": "object", - "properties": { - "attributes": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names of variables in templatized resource files.\nMap values should be the custom values which get substituted during resource creation." - } - } - }, - "adminCronSchedule": { - "type": "object", - "properties": { - "schedule": { - "type": "string", - "title": "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\nAlso supports nonstandard predefined scheduling definitions\nas described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\nexcept @reboot" - }, - "offset": { - "type": "string", - "title": "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" - } - }, - "description": "Options for schedules to run according to a cron expression." - }, - "adminDescription": { - "type": "object", - "properties": { - "value": { - "type": "string", - "title": "long description - no more than 4KB" - }, - "uri": { - "type": "string", - "title": "if the description sizes exceed some threshold we can offload the entire\ndescription proto altogether to an external data store, like S3 rather than store inline in the db" - }, - "format": { - "$ref": "#/definitions/adminDescriptionFormat", - "title": "Format of the long description" - }, - "icon_link": { - "type": "string", - "title": "Optional link to an icon for the entity" - } - }, - "description": "Full user description with formatting preserved. This can be rendered\nby clients, such as the console or command line tools with in-tact\nformatting." - }, - "adminDescriptionEntity": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the description entity." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - }, - "long_description": { - "$ref": "#/definitions/adminDescription", - "description": "Full user description with formatting preserved." - }, - "source_code": { - "$ref": "#/definitions/adminSourceCode", - "description": "Optional link to source code used to define this entity." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "User-specified tags. These are arbitrary and can be used for searching\nfiltering and discovering tasks." - } - }, - "description": "DescriptionEntity contains detailed description for the task/workflow.\nDocumentation could provide insight into the algorithms, business use case, etc." - }, - "adminDescriptionEntityList": { - "type": "object", - "properties": { - "descriptionEntities": { - "type": "array", - "items": { - "$ref": "#/definitions/adminDescriptionEntity" - }, - "description": "A list of DescriptionEntities returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of DescriptionEntities returned from the admin.\nSee :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" - }, - "adminDescriptionFormat": { - "type": "string", - "enum": [ - "DESCRIPTION_FORMAT_UNKNOWN", - "DESCRIPTION_FORMAT_MARKDOWN", - "DESCRIPTION_FORMAT_HTML", - "DESCRIPTION_FORMAT_RST" - ], - "default": "DESCRIPTION_FORMAT_UNKNOWN", - "description": "- DESCRIPTION_FORMAT_RST: python default documentation - comments is rst", - "title": "The format of the long description" - }, - "adminDomain": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Globally unique domain name." - }, - "name": { - "type": "string", - "description": "Display name." - } - }, - "description": "Namespace within a project commonly used to differentiate between different service instances.\ne.g. \"production\", \"development\", etc." - }, - "adminEmailNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "The list of email addresses recipients for this notification.\n+required" - } - }, - "description": "Defines an email notification specification." - }, - "adminEnvs": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Map of custom environment variables to be applied to the execution resource." - } - }, - "description": "Environment variable values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge environment variables defined at registration and execution time." - }, - "adminExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Unique identifier of the workflow execution." - }, - "spec": { - "$ref": "#/definitions/adminExecutionSpec", - "description": "User-provided configuration and inputs for launching the execution." - }, - "closure": { - "$ref": "#/definitions/adminExecutionClosure", - "description": "Execution results." - } - }, - "description": "A workflow execution represents an instantiated workflow, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes.\nUsed as a response object used in Get and List execution requests." - }, - "adminExecutionClosure": { - "type": "object", - "properties": { - "outputs": { - "$ref": "#/definitions/adminLiteralMapBlob", - "description": "Output URI in the case of a successful execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "description": "Error information in the case of a failed execution." - }, - "abort_cause": { - "type": "string", - "description": "In the case of a user-specified abort, this will pass along the user-supplied cause." - }, - "abort_metadata": { - "$ref": "#/definitions/adminAbortMetadata", - "description": "In the case of a user-specified abort, this will pass along the user and their supplied cause." - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this execution.\nDEPRECATED. Use GetExecutionData to fetch output data instead." - }, - "computed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Inputs computed and passed for execution.\ncomputed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan" - }, - "phase": { - "$ref": "#/definitions/coreWorkflowExecutionPhase", - "description": "Most recent recorded phase for the execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Reported time at which the execution was last updated." - }, - "notifications": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNotification" - }, - "description": "The notification settings to use after merging the CreateExecutionRequest and the launch plan\nnotification settings. An execution launched with notifications will always prefer that definition\nto notifications defined statically in a launch plan." - }, - "workflow_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Identifies the workflow definition for this execution." - }, - "state_change_details": { - "$ref": "#/definitions/adminExecutionStateChangeDetails", - "title": "Provides the details of the last stage change" - } - }, - "title": "Encapsulates the results of the Execution" - }, - "adminExecutionClusterLabel": { - "type": "object", - "properties": { - "value": { - "type": "string", - "title": "Label value to determine where the execution will be run" - } - } - }, - "adminExecutionCreateRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Name of the project the execution belongs to.\n+required" - }, - "domain": { - "type": "string", - "title": "Name of the domain the execution belongs to.\nA domain can be considered as a subset within a specific project.\n+required" - }, - "name": { - "type": "string", - "title": "User provided value for the resource.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "spec": { - "$ref": "#/definitions/adminExecutionSpec", - "title": "Additional fields necessary to launch the execution.\n+optional" - }, - "inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The inputs required to start the execution. All required inputs must be\nincluded in this map. If not required and not provided, defaults apply.\n+optional" - } - }, - "description": "Request to launch an execution with the given project, domain and optionally-assigned name." - }, - "adminExecutionCreateResponse": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "The unique identifier for a successfully created execution.\nIf the name was *not* specified in the create request, this identifier will include a generated name." - }, - "adminExecutionList": { - "type": "object", - "properties": { - "executions": { - "type": "array", - "items": { - "$ref": "#/definitions/adminExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution` for more details" - }, - "adminExecutionMetadata": { - "type": "object", - "properties": { - "mode": { - "$ref": "#/definitions/ExecutionMetadataExecutionMode" - }, - "principal": { - "type": "string", - "description": "Identifier of the entity that triggered this execution.\nFor systems using back-end authentication any value set here will be discarded in favor of the\nauthenticated user context." - }, - "nesting": { - "type": "integer", - "format": "int64", - "description": "Indicates the nestedness of this execution.\nIf a user launches a workflow execution, the default nesting is 0.\nIf this execution further launches a workflow (child workflow), the nesting level is incremented by 0 =\u003e 1\nGenerally, if workflow at nesting level k launches a workflow then the child workflow will have\nnesting = k + 1." - }, - "scheduled_at": { - "type": "string", - "format": "date-time", - "description": "For scheduled executions, the requested time for execution for this specific schedule invocation." - }, - "parent_node_execution": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "Which subworkflow node (if any) launched this execution" - }, - "reference_execution": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Optional, a reference workflow execution related to this execution.\nIn the case of a relaunch, this references the original workflow execution." - }, - "system_metadata": { - "$ref": "#/definitions/adminSystemMetadata", - "description": "Optional, platform-specific metadata about the execution.\nIn this the future this may be gated behind an ACL or some sort of authorization." - }, - "artifact_ids": { - "type": "array", - "items": { - "$ref": "#/definitions/coreArtifactID" - }, - "description": "Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping\nsince we don't have a structure to handle nested ones anyways." - } - }, - "description": "Represents attributes about an execution which are not required to launch the execution but are useful to record.\nThese attributes are assigned at launch time and do not change." - }, - "adminExecutionQueueAttributes": { - "type": "object", - "properties": { - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags used for assigning execution queues for tasks defined within this project." - } - } - }, - "adminExecutionRecoverRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Identifier of the workflow execution to recover." - }, - "name": { - "type": "string", - "title": "User provided value for the recovered execution.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "metadata": { - "$ref": "#/definitions/adminExecutionMetadata", - "description": "Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution." - } - }, - "description": "Request to recover the referenced execution." - }, - "adminExecutionRelaunchRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "title": "Identifier of the workflow execution to relaunch.\n+required" - }, - "name": { - "type": "string", - "title": "User provided value for the relaunched execution.\nIf none is provided the system will generate a unique string.\n+optional" - }, - "overwrite_cache": { - "type": "boolean", - "format": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - } - }, - "description": "Request to relaunch the referenced execution." - }, - "adminExecutionSpec": { - "type": "object", - "properties": { - "launch_plan": { - "$ref": "#/definitions/coreIdentifier", - "title": "Launch plan to be executed" - }, - "inputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Input values to be passed for the execution" - }, - "metadata": { - "$ref": "#/definitions/adminExecutionMetadata", - "title": "Metadata for the execution" - }, - "notifications": { - "$ref": "#/definitions/adminNotificationList", - "description": "List of notifications based on Execution status transitions\nWhen this list is not empty it is used rather than any notifications defined in the referenced launch plan.\nWhen this list is empty, the notifications defined for the launch plan will be applied." - }, - "disable_all": { - "type": "boolean", - "format": "boolean", - "description": "This should be set to true if all notifications are intended to be disabled for this execution." - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Labels to apply to the execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Annotations to apply to the execution resource." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "Optional: security context override to apply this execution." - }, - "auth_role": { - "$ref": "#/definitions/adminAuthRole", - "description": "Optional: auth override to apply this execution." - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of the execution." - }, - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Controls the maximum number of task nodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "title": "User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).\nThis should be a prefix like s3://my-bucket/my-data" - }, - "cluster_assignment": { - "$ref": "#/definitions/adminClusterAssignment", - "description": "Controls how to select an available cluster on which this execution should run." - }, - "interruptible": { - "type": "boolean", - "format": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "format": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - }, - "tags": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Tags to be set for the execution." - } - }, - "description": "An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime\nof an execution as it progresses across phase changes." - }, - "adminExecutionState": { - "type": "string", - "enum": [ - "EXECUTION_ACTIVE", - "EXECUTION_ARCHIVED" - ], - "default": "EXECUTION_ACTIVE", - "description": "The state of the execution is used to control its visibility in the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI." - }, - "adminExecutionStateChangeDetails": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/adminExecutionState", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the state changed." - }, - "principal": { - "type": "string", - "title": "Identifies the entity (if any) responsible for causing the state change of the execution" - } - } - }, - "adminExecutionTerminateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Uniquely identifies the individual workflow execution to be terminated." - }, - "cause": { - "type": "string", - "description": "Optional reason for aborting." - } - }, - "description": "Request to terminate an in-progress execution. This action is irreversible.\nIf an execution is already terminated, this request will simply be a no-op.\nThis request will fail if it references a non-existent execution.\nIf the request succeeds the phase \"ABORTED\" will be recorded for the termination\nwith the optional cause added to the output_result." - }, - "adminExecutionTerminateResponse": { - "type": "object" - }, - "adminExecutionUpdateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "title": "Identifier of the execution to update" - }, - "state": { - "$ref": "#/definitions/adminExecutionState", - "title": "State to set as the new value active/archive" - } - } - }, - "adminExecutionUpdateResponse": { - "type": "object" - }, - "adminFixedRate": { - "type": "object", - "properties": { - "value": { - "type": "integer", - "format": "int64" - }, - "unit": { - "$ref": "#/definitions/adminFixedRateUnit" - } - }, - "description": "Option for schedules run at a certain frequency e.g. every 2 minutes." - }, - "adminFixedRateUnit": { - "type": "string", - "enum": [ - "MINUTE", - "HOUR", - "DAY" - ], - "default": "MINUTE", - "description": "Represents a frequency at which to run a schedule." - }, - "adminFlyteURLs": { - "type": "object", - "properties": { - "inputs": { - "type": "string" - }, - "outputs": { - "type": "string" - }, - "deck": { - "type": "string" - } - }, - "description": "These URLs are returned as part of node and task execution data requests." - }, - "adminGetVersionResponse": { - "type": "object", - "properties": { - "control_plane_version": { - "$ref": "#/definitions/adminVersion", - "title": "The control plane version information. FlyteAdmin and related components\nform the control plane of Flyte" - } - }, - "title": "Response for the GetVersion API" - }, - "adminLabels": { - "type": "object", - "properties": { - "values": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Map of custom labels to be applied to the execution resource." - } - }, - "description": "Label values to be applied to an execution resource.\nIn the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge labels defined at registration and execution time." - }, - "adminLaunchPlan": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Uniquely identifies a launch plan entity." - }, - "spec": { - "$ref": "#/definitions/adminLaunchPlanSpec", - "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." - }, - "closure": { - "$ref": "#/definitions/adminLaunchPlanClosure", - "description": "Values computed by the flyte platform after launch plan registration." - } - }, - "description": "A LaunchPlan provides the capability to templatize workflow executions.\nLaunch plans simplify associating one or more schedules, inputs and notifications with your workflows.\nLaunch plans can be shared and used to trigger executions with predefined inputs even when a workflow\ndefinition doesn't necessarily have a default value for said input." - }, - "adminLaunchPlanClosure": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/adminLaunchPlanState", - "description": "Indicate the Launch plan state." - }, - "expected_inputs": { - "$ref": "#/definitions/coreParameterMap", - "title": "Indicates the set of inputs expected when creating an execution with the Launch plan" - }, - "expected_outputs": { - "$ref": "#/definitions/coreVariableMap", - "title": "Indicates the set of outputs expected to be produced by creating an execution with the Launch plan" - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the launch plan was last updated." - } - }, - "description": "Values computed by the flyte platform after launch plan registration.\nThese include expected_inputs required to be present in a CreateExecutionRequest\nto launch the reference workflow as well timestamp values associated with the launch plan." - }, - "adminLaunchPlanCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Uniquely identifies a launch plan entity." - }, - "spec": { - "$ref": "#/definitions/adminLaunchPlanSpec", - "description": "User-provided launch plan details, including reference workflow, inputs and other metadata." - } - }, - "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan." - }, - "adminLaunchPlanCreateResponse": { - "type": "object" - }, - "adminLaunchPlanList": { - "type": "object", - "properties": { - "launch_plans": { - "type": "array", - "items": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" - }, - "adminLaunchPlanMetadata": { - "type": "object", - "properties": { - "schedule": { - "$ref": "#/definitions/adminSchedule", - "title": "Schedule to execute the Launch Plan" - }, - "notifications": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNotification" - }, - "title": "List of notifications based on Execution status transitions" - }, - "launch_conditions": { - "$ref": "#/definitions/protobufAny", - "title": "Additional metadata for how to launch the launch plan" - } - }, - "description": "Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch\nthe reference workflow." - }, - "adminLaunchPlanSpec": { - "type": "object", - "properties": { - "workflow_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "Reference to the Workflow template that the launch plan references" - }, - "entity_metadata": { - "$ref": "#/definitions/adminLaunchPlanMetadata", - "title": "Metadata for the Launch Plan" - }, - "default_inputs": { - "$ref": "#/definitions/coreParameterMap", - "description": "Input values to be passed for the execution.\nThese can be overridden when an execution is created with this launch plan." - }, - "fixed_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Fixed, non-overridable inputs for the Launch Plan.\nThese can not be overridden when an execution is created with this launch plan." - }, - "role": { - "type": "string", - "title": "String to indicate the role to use to execute the workflow underneath" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Custom labels to be applied to the execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Custom annotations to be applied to the execution resource." - }, - "auth": { - "$ref": "#/definitions/adminAuth", - "description": "Indicates the permission associated with workflow executions triggered with this launch plan." - }, - "auth_role": { - "$ref": "#/definitions/adminAuthRole" - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "title": "Indicates security context for permissions triggered with this launch plan" - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of the execution." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." - }, - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.\nThis is useful to achieve fairness. Note: MapTasks are regarded as one unit,\nand parallelism/concurrency of MapTasks is independent from this." - }, - "interruptible": { - "type": "boolean", - "format": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "format": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - } - }, - "description": "User-provided launch plan definition and configuration values." - }, - "adminLaunchPlanState": { - "type": "string", - "enum": [ - "INACTIVE", - "ACTIVE" - ], - "default": "INACTIVE", - "description": "By default any launch plan regardless of state can be used to launch a workflow execution.\nHowever, at most one version of a launch plan\n(e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be\nactive at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier\ngroup will be observed and trigger executions at a defined cadence." - }, - "adminLaunchPlanUpdateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Identifier of launch plan for which to change state.\n+required." - }, - "state": { - "$ref": "#/definitions/adminLaunchPlanState", - "description": "Desired state to apply to the launch plan.\n+required." - } - }, - "title": "Request to set the referenced launch plan state to the configured value.\nSee :ref:`ref_flyteidl.admin.LaunchPlan` for more details" - }, - "adminLaunchPlanUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminListMatchableAttributesResponse": { - "type": "object", - "properties": { - "configurations": { - "type": "array", - "items": { - "$ref": "#/definitions/adminMatchableAttributesConfiguration" - } - } - }, - "title": "Response for a request for all matching resource attributes for a resource type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details" - }, - "adminLiteralMapBlob": { - "type": "object", - "properties": { - "values": { - "$ref": "#/definitions/coreLiteralMap", - "title": "Data in LiteralMap format" - }, - "uri": { - "type": "string", - "title": "In the event that the map is too large, we return a uri to the data" - } - }, - "title": "Input/output data can represented by actual values or a link to where values are stored" - }, - "adminMatchableAttributesConfiguration": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - }, - "domain": { - "type": "string" - }, - "project": { - "type": "string" - }, - "workflow": { - "type": "string" - }, - "launch_plan": { - "type": "string" - } - }, - "description": "Represents a custom set of attributes applied for either a domain; a domain and project; or\ndomain, project and workflow name.\nThese are used to override system level defaults for kubernetes cluster resource management,\ndefault execution values, and more all across different levels of specificity." - }, - "adminMatchableResource": { - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE", - "description": "Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run." - }, - "adminMatchingAttributes": { - "type": "object", - "properties": { - "task_resource_attributes": { - "$ref": "#/definitions/adminTaskResourceAttributes" - }, - "cluster_resource_attributes": { - "$ref": "#/definitions/adminClusterResourceAttributes" - }, - "execution_queue_attributes": { - "$ref": "#/definitions/adminExecutionQueueAttributes" - }, - "execution_cluster_label": { - "$ref": "#/definitions/adminExecutionClusterLabel" - }, - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService" - }, - "plugin_overrides": { - "$ref": "#/definitions/adminPluginOverrides" - }, - "workflow_execution_config": { - "$ref": "#/definitions/adminWorkflowExecutionConfig" - }, - "cluster_assignment": { - "$ref": "#/definitions/adminClusterAssignment" - } - }, - "description": "Generic container for encapsulating all types of the above attributes messages." - }, - "adminNamedEntity": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Resource type of the named entity. One of Task, Workflow or LaunchPlan." - }, - "id": { - "$ref": "#/definitions/adminNamedEntityIdentifier" - }, - "metadata": { - "$ref": "#/definitions/adminNamedEntityMetadata", - "description": "Additional metadata around a named entity." - } - }, - "description": "Encapsulates information common to a NamedEntity, a Flyte resource such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified by its resource type\nand identifier." - }, - "adminNamedEntityIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "title": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'" - } - }, - "description": "Encapsulation of fields that identifies a Flyte resource.\nA Flyte resource can be a task, workflow or launch plan.\nA resource can internally have multiple versions and is uniquely identified\nby project, domain, and name." - }, - "adminNamedEntityIdentifierList": { - "type": "object", - "properties": { - "entities": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNamedEntityIdentifier" - }, - "description": "A list of identifiers." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "description": "Represents a list of NamedEntityIdentifiers." - }, - "adminNamedEntityList": { - "type": "object", - "properties": { - "entities": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNamedEntity" - }, - "title": "A list of NamedEntity objects" - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "description": "Represents a list of NamedEntityIdentifiers." - }, - "adminNamedEntityMetadata": { - "type": "object", - "properties": { - "description": { - "type": "string", - "title": "Common description across all versions of the entity\n+optional" - }, - "state": { - "$ref": "#/definitions/adminNamedEntityState", - "description": "Shared state across all version of the entity\nAt this point in time, only workflow entities can have their state archived." - } - }, - "description": "Additional metadata around a named entity." - }, - "adminNamedEntityState": { - "type": "string", - "enum": [ - "NAMED_ENTITY_ACTIVE", - "NAMED_ENTITY_ARCHIVED", - "SYSTEM_GENERATED" - ], - "default": "NAMED_ENTITY_ACTIVE", - "description": "The status of the named entity is used to control its visibility in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user." - }, - "adminNamedEntityUpdateRequest": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "title": "Resource type of the metadata to update\n+required" - }, - "id": { - "$ref": "#/definitions/adminNamedEntityIdentifier", - "title": "Identifier of the metadata to update\n+required" - }, - "metadata": { - "$ref": "#/definitions/adminNamedEntityMetadata", - "title": "Metadata object to set as the new value\n+required" - } - }, - "description": "Request to set the referenced named entity state to the configured value." - }, - "adminNamedEntityUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminNodeExecutionClosure": { - "type": "object", - "properties": { - "output_uri": { - "type": "string", - "description": "Links to a remotely stored, serialized core.LiteralMap of node execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the Node" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this node execution.\nDEPRECATED. Use GetNodeExecutionData to fetch output data instead." - }, - "phase": { - "$ref": "#/definitions/coreNodeExecutionPhase", - "description": "The last recorded phase for this node execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the node execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the node execution was last updated." - }, - "workflow_node_metadata": { - "$ref": "#/definitions/flyteidladminWorkflowNodeMetadata" - }, - "task_node_metadata": { - "$ref": "#/definitions/flyteidladminTaskNodeMetadata" - }, - "deck_uri": { - "type": "string", - "title": "String location uniquely identifying where the deck HTML file is.\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required\nto correctly recover partially completed executions where the subworkflow has already been compiled." - } - }, - "description": "Container for node execution details and results." - }, - "adminNodeExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventNodeExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a node execution event has occurred." - }, - "adminNodeExecutionEventResponse": { - "type": "object" - }, - "adminNodeExecutionGetDataResponse": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of node execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of node execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - }, - "dynamic_workflow": { - "$ref": "#/definitions/flyteidladminDynamicWorkflowNodeMetadata", - "description": "Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here." - }, - "flyte_urls": { - "$ref": "#/definitions/adminFlyteURLs" - } - }, - "description": "Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution." - }, - "adminNodeExecutionList": { - "type": "object", - "properties": { - "node_executions": { - "type": "array", - "items": { - "$ref": "#/definitions/flyteidladminNodeExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Request structure to retrieve a list of node execution entities.\nSee :ref:`ref_flyteidl.admin.NodeExecution` for more details" - }, - "adminNodeExecutionMetaData": { - "type": "object", - "properties": { - "retry_group": { - "type": "string", - "description": "Node executions are grouped depending on retries of the parent\nRetry group is unique within the context of a parent node." - }, - "is_parent_node": { - "type": "boolean", - "format": "boolean", - "description": "Boolean flag indicating if the node has child nodes under it\nThis can be true when a node contains a dynamic workflow which then produces\nchild nodes." - }, - "spec_node_id": { - "type": "string", - "title": "Node id of the node in the original workflow\nThis maps to value of WorkflowTemplate.nodes[X].id" - }, - "is_dynamic": { - "type": "boolean", - "format": "boolean", - "description": "Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.\nThis is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true." - }, - "is_array": { - "type": "boolean", - "format": "boolean", - "description": "Boolean flag indicating if the node is an array node. This is intended to uniquely identify\narray nodes from other nodes which can have is_parent_node as true." - } - }, - "title": "Represents additional attributes related to a Node Execution" - }, - "adminNotification": { - "type": "object", - "properties": { - "phases": { - "type": "array", - "items": { - "$ref": "#/definitions/coreWorkflowExecutionPhase" - }, - "title": "A list of phases to which users can associate the notifications to.\n+required" - }, - "email": { - "$ref": "#/definitions/adminEmailNotification" - }, - "pager_duty": { - "$ref": "#/definitions/adminPagerDutyNotification" - }, - "slack": { - "$ref": "#/definitions/adminSlackNotification" - } - }, - "description": "Represents a structure for notifications based on execution status.\nThe notification content is configured within flyte admin but can be templatized.\nFuture iterations could expose configuring notifications with custom content." - }, - "adminNotificationList": { - "type": "object", - "properties": { - "notifications": { - "type": "array", - "items": { - "$ref": "#/definitions/adminNotification" - } - } - } - }, - "adminPagerDutyNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, PagerDuty notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a pager duty notification specification." - }, - "adminPluginOverride": { - "type": "object", - "properties": { - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier." - }, - "plugin_id": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id." - }, - "missing_plugin_behavior": { - "$ref": "#/definitions/PluginOverrideMissingPluginBehavior", - "description": "Defines the behavior when no plugin from the plugin_id list is not found." - } - }, - "description": "This MatchableAttribute configures selecting alternate plugin implementations for a given task type.\nIn addition to an override implementation a selection of fallbacks can be provided or other modes\nfor handling cases where the desired plugin override is not enabled in a given Flyte deployment." - }, - "adminPluginOverrides": { - "type": "object", - "properties": { - "overrides": { - "type": "array", - "items": { - "$ref": "#/definitions/adminPluginOverride" - } - } - } - }, - "adminProject": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "Globally unique project name." - }, - "name": { - "type": "string", - "description": "Display name." - }, - "domains": { - "type": "array", - "items": { - "$ref": "#/definitions/adminDomain" - } - }, - "description": { - "type": "string" - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Leverage Labels from flyteidl.admin.common.proto to\ntag projects with ownership information." - }, - "state": { - "$ref": "#/definitions/ProjectProjectState" - } - }, - "description": "Top-level namespace used to classify different entities like workflows and executions." - }, - "adminProjectAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - } - }, - "title": "Defines a set of custom matching attributes at the project level.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesDeleteRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Unique project id which this set of attributes references.\n+required" - }, - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - } - }, - "title": "Request to delete a set matchable project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectAttributes" - } - }, - "title": "Response to get an individual project level attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesUpdateRequest": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectAttributes", - "title": "+required" - } - }, - "title": "Sets custom attributes for a project\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectDomainAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "domain": { - "type": "string", - "description": "Unique domain id for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - } - }, - "title": "Defines a set of custom matching attributes which defines resource defaults for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesDeleteRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Unique project id which this set of attributes references.\n+required" - }, - "domain": { - "type": "string", - "title": "Unique domain id which this set of attributes references.\n+required" - }, - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - } - }, - "title": "Request to delete a set matchable project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectDomainAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectDomainAttributes" - } - }, - "title": "Response to get an individual project domain attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesUpdateRequest": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminProjectDomainAttributes", - "title": "+required" - } - }, - "title": "Sets custom attributes for a project-domain combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminProjectDomainAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminProjectRegisterRequest": { - "type": "object", - "properties": { - "project": { - "$ref": "#/definitions/adminProject", - "title": "+required" - } - }, - "title": "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project` for more details" - }, - "adminProjectRegisterResponse": { - "type": "object", - "description": "Purposefully empty, may be updated in the future." - }, - "adminProjectUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be updated in the future." - }, - "adminProjects": { - "type": "object", - "properties": { - "projects": { - "type": "array", - "items": { - "$ref": "#/definitions/adminProject" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project` for more details" - }, - "adminRawOutputDataConfig": { - "type": "object", - "properties": { - "output_location_prefix": { - "type": "string", - "title": "Prefix for where offloaded data from user workflows will be written\ne.g. s3://bucket/key or s3://bucket/" - } - }, - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211 for more background information." - }, - "adminReason": { - "type": "object", - "properties": { - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "occurred_at is the timestamp indicating the instant that this reason happened." - }, - "message": { - "type": "string", - "description": "message is the explanation for the most recent phase transition or status update." - } - }, - "description": "Reason is a single message annotated with a timestamp to indicate the instant the reason occurred." - }, - "adminSchedule": { - "type": "object", - "properties": { - "cron_expression": { - "type": "string", - "title": "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\ne.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" - }, - "rate": { - "$ref": "#/definitions/adminFixedRate" - }, - "cron_schedule": { - "$ref": "#/definitions/adminCronSchedule" - }, - "kickoff_time_input_arg": { - "type": "string", - "description": "Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off." - } - }, - "description": "Defines complete set of information required to trigger an execution on a schedule." - }, - "adminSlackNotification": { - "type": "object", - "properties": { - "recipients_email": { - "type": "array", - "items": { - "type": "string" - }, - "title": "Currently, Slack notifications leverage email to trigger a notification.\n+required" - } - }, - "description": "Defines a slack notification specification." - }, - "adminSort": { - "type": "object", - "properties": { - "key": { - "type": "string", - "title": "Indicates an attribute to sort the response values.\n+required" - }, - "direction": { - "$ref": "#/definitions/SortDirection", - "title": "Indicates the direction to apply sort key for response values.\n+optional" - } - }, - "description": "Specifies sort ordering in a list request." - }, - "adminSourceCode": { - "type": "object", - "properties": { - "link": { - "type": "string" - } - }, - "title": "Link to source code used to define this entity" - }, - "adminSystemMetadata": { - "type": "object", - "properties": { - "execution_cluster": { - "type": "string", - "description": "Which execution cluster this execution ran on." - }, - "namespace": { - "type": "string", - "description": "Which kubernetes namespace the execution ran under." - } - }, - "description": "Represents system, rather than user-facing, metadata about an execution." - }, - "adminTask": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the task." - }, - "closure": { - "$ref": "#/definitions/adminTaskClosure", - "description": "closure encapsulates all the fields that maps to a compiled version of the task." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - } - }, - "description": "Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks\narranged to process workflow inputs and produce a deterministic set of outputs.\nTasks can come in many varieties tuned for specialized behavior." - }, - "adminTaskClosure": { - "type": "object", - "properties": { - "compiled_task": { - "$ref": "#/definitions/coreCompiledTask", - "description": "Represents the compiled representation of the task from the specification provided." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task was created." - } - }, - "description": "Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data\nand task metadata." - }, - "adminTaskExecutionClosure": { - "type": "object", - "properties": { - "output_uri": { - "type": "string", - "description": "Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "description": "Error information for the task execution. Populated if the execution failed." - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this task execution.\nDEPRECATED. Use GetTaskExecutionData to fetch output data instead." - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "description": "The last recorded phase for this task execution." - }, - "logs": { - "type": "array", - "items": { - "$ref": "#/definitions/coreTaskLog" - }, - "description": "Detailed log information output by the task execution." - }, - "started_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution began running." - }, - "duration": { - "type": "string", - "description": "The amount of time the task execution spent running." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution was created." - }, - "updated_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the task execution was last updated." - }, - "custom_info": { - "$ref": "#/definitions/protobufStruct", - "description": "Custom data specific to the task plugin." - }, - "reason": { - "type": "string", - "description": "If there is an explanation for the most recent phase transition, the reason will capture it." - }, - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier." - }, - "metadata": { - "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", - "description": "Metadata around how a task was executed." - }, - "event_version": { - "type": "integer", - "format": "int32", - "description": "The event version is used to indicate versioned changes in how data is maintained using this\nproto message. For example, event_verison \u003e 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." - }, - "reasons": { - "type": "array", - "items": { - "$ref": "#/definitions/adminReason" - }, - "description": "A time-series of the phase transition or update explanations. This, when compared to storing a singular reason\nas previously done, is much more valuable in visualizing and understanding historical evaluations." - } - }, - "description": "Container for task execution details and results." - }, - "adminTaskExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventTaskExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a task execution event has occurred." - }, - "adminTaskExecutionEventResponse": { - "type": "object" - }, - "adminTaskExecutionGetDataResponse": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of task execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of task execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - }, - "flyte_urls": { - "$ref": "#/definitions/adminFlyteURLs", - "title": "flyte tiny url to fetch a core.LiteralMap of task execution's IO\nDeck will be empty for task" - } - }, - "description": "Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution." - }, - "adminTaskExecutionList": { - "type": "object", - "properties": { - "task_executions": { - "type": "array", - "items": { - "$ref": "#/definitions/flyteidladminTaskExecution" - } - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Response structure for a query to list of task execution entities.\nSee :ref:`ref_flyteidl.admin.TaskExecution` for more details" - }, - "adminTaskList": { - "type": "object", - "properties": { - "tasks": { - "type": "array", - "items": { - "$ref": "#/definitions/adminTask" - }, - "description": "A list of tasks returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task` for more details" - }, - "adminTaskResourceAttributes": { - "type": "object", - "properties": { - "defaults": { - "$ref": "#/definitions/adminTaskResourceSpec" - }, - "limits": { - "$ref": "#/definitions/adminTaskResourceSpec" - } - }, - "description": "Defines task resource defaults and limits that will be applied at task registration." - }, - "adminTaskResourceSpec": { - "type": "object", - "properties": { - "cpu": { - "type": "string" - }, - "gpu": { - "type": "string" - }, - "memory": { - "type": "string" - }, - "storage": { - "type": "string" - }, - "ephemeral_storage": { - "type": "string" - } - }, - "description": "Defines a set of overridable task resource attributes set during task registration." - }, - "adminTaskSpec": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "description": "Template of the task that encapsulates all the metadata of the task." - }, - "description": { - "$ref": "#/definitions/adminDescriptionEntity", - "description": "Represents the specification for description entity." - } - }, - "description": "Represents a structure that encapsulates the user-configured specification of the task." - }, - "adminUrlBlob": { - "type": "object", - "properties": { - "url": { - "type": "string", - "description": "Actual url value." - }, - "bytes": { - "type": "string", - "format": "int64", - "description": "Represents the size of the file accessible at the above url." - } - }, - "description": "Represents a string url and associated metadata used throughout the platform." - }, - "adminVersion": { - "type": "object", - "properties": { - "Build": { - "type": "string", - "title": "Specifies the GIT sha of the build" - }, - "Version": { - "type": "string", - "title": "Version for the build, should follow a semver" - }, - "BuildTime": { - "type": "string", - "title": "Build timestamp" - } - }, - "title": "Provides Version information for a component" - }, - "adminWorkflow": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "closure": { - "$ref": "#/definitions/adminWorkflowClosure", - "description": "closure encapsulates all the fields that maps to a compiled version of the workflow." - }, - "short_description": { - "type": "string", - "description": "One-liner overview of the entity." - } - }, - "description": "Represents the workflow structure stored in the Admin\nA workflow is created by ordering tasks and associating outputs to inputs\nin order to produce a directed-acyclic execution graph." - }, - "adminWorkflowAttributes": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Unique project id for which this set of attributes will be applied." - }, - "domain": { - "type": "string", - "description": "Unique domain id for which this set of attributes will be applied." - }, - "workflow": { - "type": "string", - "description": "Workflow name for which this set of attributes will be applied." - }, - "matching_attributes": { - "$ref": "#/definitions/adminMatchingAttributes" - } - }, - "title": "Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminWorkflowAttributesDeleteRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Unique project id which this set of attributes references.\n+required" - }, - "domain": { - "type": "string", - "title": "Unique domain id which this set of attributes references.\n+required" - }, - "workflow": { - "type": "string", - "title": "Workflow name which this set of attributes references.\n+required" - }, - "resource_type": { - "$ref": "#/definitions/adminMatchableResource", - "title": "Which type of matchable attributes to delete.\n+required" - } - }, - "title": "Request to delete a set matchable workflow attribute override.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminWorkflowAttributesDeleteResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowAttributesGetResponse": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminWorkflowAttributes" - } - }, - "description": "Response to get an individual workflow attribute override." - }, - "adminWorkflowAttributesUpdateRequest": { - "type": "object", - "properties": { - "attributes": { - "$ref": "#/definitions/adminWorkflowAttributes" - } - }, - "title": "Sets custom attributes for a project, domain and workflow combination.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - }, - "adminWorkflowAttributesUpdateResponse": { - "type": "object", - "description": "Purposefully empty, may be populated in the future." - }, - "adminWorkflowClosure": { - "type": "object", - "properties": { - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the workflow from the specification provided." - }, - "created_at": { - "type": "string", - "format": "date-time", - "description": "Time at which the workflow was created." - } - }, - "description": "A container holding the compiled workflow produced from the WorkflowSpec and additional metadata." - }, - "adminWorkflowCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "title": "id represents the unique identifier of the workflow.\n+required" - }, - "spec": { - "$ref": "#/definitions/adminWorkflowSpec", - "title": "Represents the specification for workflow.\n+required" - } - }, - "title": "Represents a request structure to create a revision of a workflow.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" - }, - "adminWorkflowCreateResponse": { - "type": "object" - }, - "adminWorkflowExecutionConfig": { - "type": "object", - "properties": { - "max_parallelism": { - "type": "integer", - "format": "int32", - "description": "Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "Indicates security context permissions for executions triggered with this matchable attribute." - }, - "raw_output_data_config": { - "$ref": "#/definitions/adminRawOutputDataConfig", - "description": "Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.)." - }, - "labels": { - "$ref": "#/definitions/adminLabels", - "description": "Custom labels to be applied to a triggered execution resource." - }, - "annotations": { - "$ref": "#/definitions/adminAnnotations", - "description": "Custom annotations to be applied to a triggered execution resource." - }, - "interruptible": { - "type": "boolean", - "format": "boolean", - "description": "Allows for the interruptible flag of a workflow to be overwritten for a single execution.\nOmitting this field uses the workflow's value as a default.\nAs we need to distinguish between the field not being provided and its default value false, we have to use a wrapper\naround the bool field." - }, - "overwrite_cache": { - "type": "boolean", - "format": "boolean", - "description": "Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.\nIf enabled, all calculations are performed even if cached results would be available, overwriting the stored\ndata once execution finishes successfully." - }, - "envs": { - "$ref": "#/definitions/adminEnvs", - "description": "Environment variables to be set for the execution." - } - }, - "description": "Adds defaults for customizable workflow-execution specifications and overrides." - }, - "adminWorkflowExecutionEventRequest": { - "type": "object", - "properties": { - "request_id": { - "type": "string", - "title": "Unique ID for this request that can be traced between services" - }, - "event": { - "$ref": "#/definitions/eventWorkflowExecutionEvent", - "description": "Details about the event that occurred." - } - }, - "description": "Request to send a notification that a workflow execution event has occurred." - }, - "adminWorkflowExecutionEventResponse": { - "type": "object" - }, - "adminWorkflowExecutionGetDataResponse": { - "type": "object", - "properties": { - "outputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of execution outputs.\nDeprecated: Please use full_outputs instead." - }, - "inputs": { - "$ref": "#/definitions/adminUrlBlob", - "description": "Signed url to fetch a core.LiteralMap of execution inputs.\nDeprecated: Please use full_inputs instead." - }, - "full_inputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_inputs will only be populated if they are under a configured size threshold." - }, - "full_outputs": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Full_outputs will only be populated if they are under a configured size threshold." - } - }, - "description": "Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution." - }, - "adminWorkflowExecutionGetMetricsResponse": { - "type": "object", - "properties": { - "span": { - "$ref": "#/definitions/coreSpan", - "description": "Span defines the top-level breakdown of the workflows execution. More precise information is nested in a\nhierarchical structure using Flyte entity references." - } - }, - "description": "WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution." - }, - "adminWorkflowList": { - "type": "object", - "properties": { - "workflows": { - "type": "array", - "items": { - "$ref": "#/definitions/adminWorkflow" - }, - "description": "A list of workflows returned based on the request." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow` for more details" - }, - "adminWorkflowSpec": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreWorkflowTemplate", - "description": "Template of the task that encapsulates all the metadata of the workflow." - }, - "sub_workflows": { - "type": "array", - "items": { - "$ref": "#/definitions/coreWorkflowTemplate" - }, - "description": "Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the\npropeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out\nto Admin to see other registered workflows). In fact, subworkflows do not even need to be registered." - }, - "description": { - "$ref": "#/definitions/adminDescriptionEntity", - "description": "Represents the specification for description entity." - } - }, - "description": "Represents a structure that encapsulates the specification of the workflow." - }, - "coreAlias": { - "type": "object", - "properties": { - "var": { - "type": "string", - "description": "Must match one of the output variable names on a node." - }, - "alias": { - "type": "string", - "description": "A workflow-level unique alias that downstream nodes can refer to in their input." - } - }, - "description": "Links a variable to an alias." - }, - "coreApproveCondition": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "A unique identifier for the requested boolean signal." - } - }, - "description": "ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean\nsignal with the provided signal_id." - }, - "coreArrayNode": { - "type": "object", - "properties": { - "node": { - "$ref": "#/definitions/coreNode", - "description": "node is the sub-node that will be executed for each element in the array." - }, - "parallelism": { - "type": "integer", - "format": "int64", - "description": "parallelism defines the minimum number of instances to bring up concurrently at any given\npoint. Note that this is an optimistic restriction and that, due to network partitioning or\nother failures, the actual number of currently running instances might be more. This has to\nbe a positive number if assigned. Default value is size." - }, - "min_successes": { - "type": "integer", - "format": "int64", - "description": "min_successes is an absolute number of the minimum number of successful completions of\nsub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful\nand outputs will be computed. This has to be a non-negative number if assigned. Default\nvalue is size (if specified)." - }, - "min_success_ratio": { - "type": "number", - "format": "float", - "description": "If the array job size is not known beforehand, the min_success_ratio can instead be used\nto determine when an ArrayNode can be marked successful." - } - }, - "description": "ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input\nvalues. An ArrayNode can be executed with configurable parallelism (separate from the parent\nworkflow) and can be configured to succeed when a certain number of sub-nodes succeed." - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string", - "title": "These two fields are only relevant in the partition value case" - }, - "transform": { - "type": "string" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions" - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "coreArtifactQuery": { - "type": "object", - "properties": { - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - }, - "uri": { - "type": "string" - }, - "binding": { - "$ref": "#/definitions/coreArtifactBindingData", - "description": "This is used in the trigger case, where a user specifies a value for an input that is one of the triggering\nartifacts, or a partition value derived from a triggering artifact." - } - }, - "title": "Uniqueness constraints for Artifacts\n - project, domain, name, version, partitions\nOption 2 (tags are standalone, point to an individual artifact id):\n - project, domain, name, alias (points to one partition if partitioned)\n - project, domain, name, partition key, partition value" - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBinding": { - "type": "object", - "properties": { - "var": { - "type": "string", - "description": "Variable name must match an input/output variable of the node." - }, - "binding": { - "$ref": "#/definitions/coreBindingData", - "description": "Data to use to bind this variable." - } - }, - "description": "An input/output binding of a variable to either static value or a node output." - }, - "coreBindingData": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple scalar value." - }, - "collection": { - "$ref": "#/definitions/coreBindingDataCollection", - "description": "A collection of binding data. This allows nesting of binding data to any number\nof levels." - }, - "promise": { - "$ref": "#/definitions/coreOutputReference", - "description": "References an output promised by another node." - }, - "map": { - "$ref": "#/definitions/coreBindingDataMap", - "description": "A map of bindings. The key is always a string." - }, - "union": { - "$ref": "#/definitions/coreUnionInfo" - } - }, - "description": "Specifies either a simple value or a reference to another output." - }, - "coreBindingDataCollection": { - "type": "object", - "properties": { - "bindings": { - "type": "array", - "items": { - "$ref": "#/definitions/coreBindingData" - } - } - }, - "description": "A collection of BindingData items." - }, - "coreBindingDataMap": { - "type": "object", - "properties": { - "bindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreBindingData" - } - } - }, - "description": "A map of BindingData items." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreBooleanExpression": { - "type": "object", - "properties": { - "conjunction": { - "$ref": "#/definitions/coreConjunctionExpression" - }, - "comparison": { - "$ref": "#/definitions/coreComparisonExpression" - } - }, - "description": "Defines a boolean expression tree. It can be a simple or a conjunction expression.\nMultiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result." - }, - "coreBranchNode": { - "type": "object", - "properties": { - "if_else": { - "$ref": "#/definitions/coreIfElseBlock", - "title": "+required" - } - }, - "description": "BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at\nruntime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives)." - }, - "coreCatalogArtifactTag": { - "type": "object", - "properties": { - "artifact_id": { - "type": "string", - "title": "Artifact ID is generated name" - }, - "name": { - "type": "string", - "title": "Flyte computes the tag automatically, as the hash of the values" - } - } - }, - "coreCatalogCacheStatus": { - "type": "string", - "enum": [ - "CACHE_DISABLED", - "CACHE_MISS", - "CACHE_HIT", - "CACHE_POPULATED", - "CACHE_LOOKUP_FAILURE", - "CACHE_PUT_FAILURE", - "CACHE_SKIPPED" - ], - "default": "CACHE_DISABLED", - "description": "- CACHE_DISABLED: Used to indicate that caching was disabled\n - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution\n - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used to indicate the cache lookup was skipped", - "title": "Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future" - }, - "coreCatalogMetadata": { - "type": "object", - "properties": { - "dataset_id": { - "$ref": "#/definitions/coreIdentifier", - "title": "Dataset ID in the catalog" - }, - "artifact_tag": { - "$ref": "#/definitions/coreCatalogArtifactTag", - "title": "Artifact tag in the catalog" - }, - "source_task_execution": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "title": "Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions" - } - }, - "title": "Catalog artifact information with specific metadata" - }, - "coreComparisonExpression": { - "type": "object", - "properties": { - "operator": { - "$ref": "#/definitions/ComparisonExpressionOperator" - }, - "left_value": { - "$ref": "#/definitions/coreOperand" - }, - "right_value": { - "$ref": "#/definitions/coreOperand" - } - }, - "description": "Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.\nEach expression results in a boolean result." - }, - "coreCompiledTask": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreTaskTemplate", - "title": "Completely contained TaskTemplate" - } - }, - "title": "Output of the Compilation step. This object represent one Task. We store more metadata at this layer" - }, - "coreCompiledWorkflow": { - "type": "object", - "properties": { - "template": { - "$ref": "#/definitions/coreWorkflowTemplate", - "title": "Completely contained Workflow Template" - }, - "connections": { - "$ref": "#/definitions/coreConnectionSet", - "description": "For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored." - } - }, - "title": "Output of the compilation Step. This object represents one workflow. We store more metadata at this layer" - }, - "coreCompiledWorkflowClosure": { - "type": "object", - "properties": { - "primary": { - "$ref": "#/definitions/coreCompiledWorkflow", - "title": "+required" - }, - "sub_workflows": { - "type": "array", - "items": { - "$ref": "#/definitions/coreCompiledWorkflow" - }, - "title": "Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a\nunique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow\nas an inlined workflow\n+optional" - }, - "tasks": { - "type": "array", - "items": { - "$ref": "#/definitions/coreCompiledTask" - }, - "title": "Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id\n+required (at least 1)" - } - }, - "description": "A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow\nand its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that\nwill being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." - }, - "coreConjunctionExpression": { - "type": "object", - "properties": { - "operator": { - "$ref": "#/definitions/ConjunctionExpressionLogicalOperator" - }, - "left_expression": { - "$ref": "#/definitions/coreBooleanExpression" - }, - "right_expression": { - "$ref": "#/definitions/coreBooleanExpression" - } - }, - "description": "Defines a conjunction expression of two boolean expressions." - }, - "coreConnectionSet": { - "type": "object", - "properties": { - "downstream": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ConnectionSetIdList" - }, - "title": "A list of all the node ids that are downstream from a given node id" - }, - "upstream": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/ConnectionSetIdList" - }, - "title": "A list of all the node ids, that are upstream of this node id" - } - }, - "title": "Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation\nstep uses this created ConnectionSet" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "format": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExecutionError": { - "type": "object", - "properties": { - "code": { - "type": "string", - "title": "Error code indicates a grouping of a type of error.\nMore Info: \u003cLink\u003e" - }, - "message": { - "type": "string", - "description": "Detailed description of the error - including stack trace." - }, - "error_uri": { - "type": "string", - "title": "Full error contents accessible via a URI" - }, - "kind": { - "$ref": "#/definitions/ExecutionErrorErrorKind" - } - }, - "description": "Represents the error message from the execution." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean", - "format": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreGateNode": { - "type": "object", - "properties": { - "approve": { - "$ref": "#/definitions/coreApproveCondition", - "description": "ApproveCondition represents a dependency on an external approval provided by a boolean signal." - }, - "signal": { - "$ref": "#/definitions/coreSignalCondition", - "description": "SignalCondition represents a dependency on an signal." - }, - "sleep": { - "$ref": "#/definitions/coreSleepCondition", - "description": "SleepCondition represents a dependency on waiting for the specified duration." - } - }, - "description": "GateNode refers to the condition that is required for the gate to successfully complete." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreIfBlock": { - "type": "object", - "properties": { - "condition": { - "$ref": "#/definitions/coreBooleanExpression" - }, - "then_node": { - "$ref": "#/definitions/coreNode" - } - }, - "description": "Defines a condition and the execution unit that should be executed if the condition is satisfied." - }, - "coreIfElseBlock": { - "type": "object", - "properties": { - "case": { - "$ref": "#/definitions/coreIfBlock", - "description": "+required. First condition to evaluate." - }, - "other": { - "type": "array", - "items": { - "$ref": "#/definitions/coreIfBlock" - }, - "description": "+optional. Additional branches to evaluate." - }, - "else_node": { - "$ref": "#/definitions/coreNode", - "description": "The node to execute in case none of the branches were taken." - }, - "error": { - "$ref": "#/definitions/coreError", - "description": "An error to throw in case none of the branches were taken." - } - }, - "description": "Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.\nIf no conditions were satisfied, the else_node or the error will execute." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "$ref": "#/definitions/protobufStruct", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNode": { - "type": "object", - "properties": { - "id": { - "type": "string", - "description": "A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot be used by other nodes." - }, - "metadata": { - "$ref": "#/definitions/coreNodeMetadata", - "description": "Extra metadata about the node." - }, - "inputs": { - "type": "array", - "items": { - "$ref": "#/definitions/coreBinding" - }, - "description": "Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface\nmust be fulfilled." - }, - "upstream_node_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its\nupstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs\nfield." - }, - "output_aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/coreAlias" - }, - "description": "+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes\nneed to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this\nnodes outputs using the alias if one's specified." - }, - "task_node": { - "$ref": "#/definitions/coreTaskNode", - "description": "Information about the Task to execute in this node." - }, - "workflow_node": { - "$ref": "#/definitions/coreWorkflowNode", - "description": "Information about the Workflow to execute in this mode." - }, - "branch_node": { - "$ref": "#/definitions/coreBranchNode", - "description": "Information about the branch node to evaluate in this node." - }, - "gate_node": { - "$ref": "#/definitions/coreGateNode", - "description": "Information about the condition to evaluate in this node." - }, - "array_node": { - "$ref": "#/definitions/coreArrayNode", - "description": "Information about the sub-node executions for each value in the list of this nodes\ninputs values." - } - }, - "description": "A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch\nnode." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "coreNodeExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDED", - "FAILING", - "FAILED", - "ABORTED", - "SKIPPED", - "TIMED_OUT", - "DYNAMIC_RUNNING", - "RECOVERED" - ], - "default": "UNDEFINED" - }, - "coreNodeMetadata": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A friendly name for the Node" - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "interruptible": { - "type": "boolean", - "format": "boolean" - } - }, - "description": "Defines extra information about the Node." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "coreOperand": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive", - "title": "Can be a constant" - }, - "var": { - "type": "string", - "title": "Or one of this node's input variables" - }, - "scalar": { - "$ref": "#/definitions/coreScalar", - "title": "Replace the primitive field" - } - }, - "description": "Defines an operand to a comparison expression." - }, - "coreOutputReference": { - "type": "object", - "properties": { - "node_id": { - "type": "string", - "description": "Node id must exist at the graph layer." - }, - "var": { - "type": "string", - "description": "Variable name must refer to an output variable for the node." - }, - "attr_path": { - "type": "array", - "items": { - "$ref": "#/definitions/corePromiseAttribute" - } - } - }, - "description": "A reference to an output produced by a node. The type can be retrieved -and validated- from\nthe underlying interface of the node." - }, - "coreParameter": { - "type": "object", - "properties": { - "var": { - "$ref": "#/definitions/coreVariable", - "description": "+required Variable. Defines the type of the variable backing this parameter." - }, - "default": { - "$ref": "#/definitions/coreLiteral", - "description": "Defines a default value that has to match the variable type defined." - }, - "required": { - "type": "boolean", - "format": "boolean", - "description": "+optional, is this value required to be filled." - }, - "artifact_query": { - "$ref": "#/definitions/coreArtifactQuery", - "description": "This is an execution time search basically that should result in exactly one Artifact with a Type that\nmatches the type of the variable." - }, - "artifact_id": { - "$ref": "#/definitions/coreArtifactID" - } - }, - "description": "A parameter is used as input to a launch plan and has\nthe special ability to have a default value or mark itself as required." - }, - "coreParameterMap": { - "type": "object", - "properties": { - "parameters": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreParameter" - }, - "description": "Defines a map of parameter names to parameters." - } - }, - "description": "A map of Parameters." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "corePromiseAttribute": { - "type": "object", - "properties": { - "string_value": { - "type": "string" - }, - "int_value": { - "type": "integer", - "format": "int32" - } - } - }, - "coreQualityOfService": { - "type": "object", - "properties": { - "tier": { - "$ref": "#/definitions/QualityOfServiceTier" - }, - "spec": { - "$ref": "#/definitions/coreQualityOfServiceSpec" - } - }, - "description": "Indicates the priority of an execution." - }, - "coreQualityOfServiceSpec": { - "type": "object", - "properties": { - "queueing_budget": { - "type": "string", - "description": "Indicates how much queueing delay an execution can tolerate." - } - }, - "description": "Represents customized execution run-time attributes." - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSignalCondition": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "A unique identifier for the requested signal." - }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "A type denoting the required value type for this signal." - }, - "output_variable_name": { - "type": "string", - "description": "The variable name for the signal value in this nodes outputs." - } - }, - "description": "SignalCondition represents a dependency on an signal." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSleepCondition": { - "type": "object", - "properties": { - "duration": { - "type": "string", - "description": "The overall duration for this sleep." - } - }, - "description": "SleepCondition represents a dependency on waiting for the specified duration." - }, - "coreSpan": { - "type": "object", - "properties": { - "start_time": { - "type": "string", - "format": "date-time", - "description": "start_time defines the instance this span began." - }, - "end_time": { - "type": "string", - "format": "date-time", - "description": "end_time defines the instance this span completed." - }, - "workflow_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "workflow_id is the id of the workflow execution this Span represents." - }, - "node_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "node_id is the id of the node execution this Span represents." - }, - "task_id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "task_id is the id of the task execution this Span represents." - }, - "operation_id": { - "type": "string", - "description": "operation_id is the id of a unique operation that this Span represents." - }, - "spans": { - "type": "array", - "items": { - "$ref": "#/definitions/coreSpan" - }, - "description": "spans defines a collection of Spans that breakdown this execution." - } - }, - "description": "Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation\nwhich uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more\nprecise definitions." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskExecutionIdentifier": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - } - }, - "description": "Encapsulation of fields that identify a Flyte task execution entity." - }, - "coreTaskExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDED", - "ABORTED", - "FAILED", - "INITIALIZING", - "WAITING_FOR_RESOURCES" - ], - "default": "UNDEFINED", - "title": "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded" - }, - "coreTaskLog": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "name": { - "type": "string" - }, - "message_format": { - "$ref": "#/definitions/TaskLogMessageFormat" - }, - "ttl": { - "type": "string" - } - }, - "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean", - "format": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "format": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskNode": { - "type": "object", - "properties": { - "reference_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the task." - }, - "overrides": { - "$ref": "#/definitions/coreTaskNodeOverrides", - "description": "Optional overrides applied at task execution time." - } - }, - "description": "Refers to the task that the Node is to execute." - }, - "coreTaskNodeOverrides": { - "type": "object", - "properties": { - "resources": { - "$ref": "#/definitions/coreResources", - "description": "A customizable interface to convey resources requested for a task container." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Overrides for all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - } - }, - "description": "Optional task node overrides that will be applied at task execution time." - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "$ref": "#/definitions/protobufStruct", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionInfo": { - "type": "object", - "properties": { - "targetType": { - "$ref": "#/definitions/coreLiteralType" - } - } - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "coreWorkflowExecutionPhase": { - "type": "string", - "enum": [ - "UNDEFINED", - "QUEUED", - "RUNNING", - "SUCCEEDING", - "SUCCEEDED", - "FAILING", - "FAILED", - "ABORTED", - "TIMED_OUT", - "ABORTING" - ], - "default": "UNDEFINED" - }, - "coreWorkflowMetadata": { - "type": "object", - "properties": { - "quality_of_service": { - "$ref": "#/definitions/coreQualityOfService", - "description": "Indicates the runtime priority of workflow executions." - }, - "on_failure": { - "$ref": "#/definitions/WorkflowMetadataOnFailurePolicy", - "description": "Defines how the system should behave when a failure is detected in the workflow execution." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - } - }, - "description": "This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not\npercolate down to child entities (like tasks) launched by the workflow." - }, - "coreWorkflowMetadataDefaults": { - "type": "object", - "properties": { - "interruptible": { - "type": "boolean", - "format": "boolean", - "description": "Whether child nodes of the workflow are interruptible." - } - }, - "description": "The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to\na workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it\nis only relevant when a task executes. The settings here are the defaults that are passed to all nodes\nunless explicitly overridden at the node layer.\nIf you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be\nadded to both this object and the WorkflowMetadata object above." - }, - "coreWorkflowNode": { - "type": "object", - "properties": { - "launchplan_ref": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the launch plan." - }, - "sub_workflow_ref": { - "$ref": "#/definitions/coreIdentifier", - "title": "Reference to a subworkflow, that should be defined with the compiler context" - } - }, - "description": "Refers to a the workflow the node is to execute." - }, - "coreWorkflowTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "A globally unique identifier for the workflow." - }, - "metadata": { - "$ref": "#/definitions/coreWorkflowMetadata", - "description": "Extra metadata about the workflow." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "Defines a strongly typed interface for the Workflow. This can include some optional parameters." - }, - "nodes": { - "type": "array", - "items": { - "$ref": "#/definitions/coreNode" - }, - "description": "A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs." - }, - "outputs": { - "type": "array", - "items": { - "$ref": "#/definitions/coreBinding" - }, - "description": "A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or\nspecify literals. All workflow outputs specified in the interface field must be bound in order for the workflow\nto be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to\nbind final outputs.\nMost of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can\njust have an output of some constant (`Output(5)`), but usually, the workflow will be pulling\noutputs from the output of a task." - }, - "failure_node": { - "$ref": "#/definitions/coreNode", - "description": "+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.\nThe interface of this node must match the Workflow interface with an additional input named 'error' of type\npb.lyft.flyte.core.Error." - }, - "metadata_defaults": { - "$ref": "#/definitions/coreWorkflowMetadataDefaults", - "title": "workflow defaults" - } - }, - "description": "Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,\ndirected acyclic graph." - }, - "eventEventReason": { - "type": "object", - "properties": { - "reason": { - "type": "string", - "title": "An explanation for this event" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "title": "The time this reason occurred" - } - } - }, - "eventExternalResourceInfo": { - "type": "object", - "properties": { - "external_id": { - "type": "string", - "description": "Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids." - }, - "index": { - "type": "integer", - "format": "int64", - "description": "A unique index for the external resource with respect to all external resources for this task. Although the\nidentifier may change between task reporting events or retries, this will remain the same to enable aggregating\ninformation from multiple reports." - }, - "retry_attempt": { - "type": "integer", - "format": "int64", - "title": "Retry attempt number for this external resource, ie., 2 for the second attempt" - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "title": "Phase associated with the external resource" - }, - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this external resource execution." - }, - "logs": { - "type": "array", - "items": { - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the external resource execution" - } - }, - "description": "This message contains metadata about external resources produced or used by a specific task execution." - }, - "eventNodeExecutionEvent": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "Unique identifier for this node execution" - }, - "producer_id": { - "type": "string", - "title": "the id of the originator (Propeller) of the event" - }, - "phase": { - "$ref": "#/definitions/coreNodeExecutionPhase" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the node." - }, - "input_uri": { - "type": "string" - }, - "input_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw input data consumed by this node execution." - }, - "output_uri": { - "type": "string", - "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this node execution." - }, - "workflow_node_metadata": { - "$ref": "#/definitions/flyteidleventWorkflowNodeMetadata" - }, - "task_node_metadata": { - "$ref": "#/definitions/flyteidleventTaskNodeMetadata" - }, - "parent_task_metadata": { - "$ref": "#/definitions/eventParentTaskExecutionMetadata", - "description": "[To be deprecated] Specifies which task (if any) launched this node." - }, - "parent_node_metadata": { - "$ref": "#/definitions/eventParentNodeExecutionMetadata", - "description": "Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node." - }, - "retry_group": { - "type": "string", - "title": "Retry group to indicate grouping of nodes by retries" - }, - "spec_node_id": { - "type": "string", - "title": "Identifier of the node in the original workflow/graph\nThis maps to value of WorkflowTemplate.nodes[X].id" - }, - "node_name": { - "type": "string", - "title": "Friendly readable name for the node" - }, - "event_version": { - "type": "integer", - "format": "int32" - }, - "is_parent": { - "type": "boolean", - "format": "boolean", - "description": "Whether this node launched a subworkflow." - }, - "is_dynamic": { - "type": "boolean", - "format": "boolean", - "description": "Whether this node yielded a dynamic workflow." - }, - "deck_uri": { - "type": "string", - "title": "String location uniquely identifying where the deck HTML file is\nNativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "reported_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents the instant when the event was reported by the executing framework. For example,\nwhen first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when\nliteral inputs are initially copied. The event however will not be sent until after the copy completes.\nExtracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series." - }, - "is_array": { - "type": "boolean", - "format": "boolean", - "description": "Indicates if this node is an ArrayNode." - } - } - }, - "eventParentNodeExecutionMetadata": { - "type": "object", - "properties": { - "node_id": { - "type": "string", - "title": "Unique identifier of the parent node id within the execution\nThis is value of core.NodeExecutionIdentifier.node_id of the parent node" - } - } - }, - "eventParentTaskExecutionMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier" - } - } - }, - "eventResourcePoolInfo": { - "type": "object", - "properties": { - "allocation_token": { - "type": "string", - "description": "Unique resource ID used to identify this execution when allocating a token." - }, - "namespace": { - "type": "string", - "description": "Namespace under which this task execution requested an allocation token." - } - }, - "description": "This message holds task execution metadata specific to resource allocation used to manage concurrent\nexecutions for a project namespace." - }, - "eventTaskExecutionEvent": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier", - "description": "ID of the task. In combination with the retryAttempt this will indicate\nthe task execution uniquely for a given parent node execution." - }, - "parent_node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "title": "A task execution is always kicked off by a node execution, the event consumer\nwill use the parent_id to relate the task to it's parent node execution" - }, - "retry_attempt": { - "type": "integer", - "format": "int64", - "title": "retry attempt number for this task, ie., 2 for the second attempt" - }, - "phase": { - "$ref": "#/definitions/coreTaskExecutionPhase", - "title": "Phase associated with the event" - }, - "producer_id": { - "type": "string", - "title": "id of the process that sent this event, mainly for trace debugging" - }, - "logs": { - "type": "array", - "items": { - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the task execution" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the task." - }, - "input_uri": { - "type": "string", - "description": "URI of the input file, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "input_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw input data consumed by this task execution." - }, - "output_uri": { - "type": "string", - "description": "URI to the output of the execution, it will be in a format that encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this task execution." - }, - "custom_info": { - "$ref": "#/definitions/protobufStruct", - "description": "Custom data that the task plugin sends back. This is extensible to allow various plugins in the system." - }, - "phase_version": { - "type": "integer", - "format": "int64", - "description": "Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)\nthat should be recorded regardless of the lack of phase change.\nThe version field should be incremented when metadata changes across the duration of an individual phase." - }, - "reason": { - "type": "string", - "description": "An optional explanation for the phase transition.\nDeprecated: Use reasons instead." - }, - "reasons": { - "type": "array", - "items": { - "$ref": "#/definitions/eventEventReason" - }, - "description": "An optional list of explanations for the phase transition." - }, - "task_type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin\nthis type will be identical, but not all task executions necessarily use pre-registered definitions and this\ntype is useful to render the task in the UI, filter task executions, etc." - }, - "metadata": { - "$ref": "#/definitions/flyteidleventTaskExecutionMetadata", - "description": "Metadata around how a task was executed." - }, - "event_version": { - "type": "integer", - "format": "int32", - "description": "The event version is used to indicate versioned changes in how data is reported using this\nproto message. For example, event_verison \u003e 0 means that maps tasks report logs using the\nTaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog\nin this message." - }, - "reported_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s\npod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,\nbut this event will not be reported until the pod is marked as completed. Extracting both of these timestamps\nfacilitates a more accurate portrayal of the evaluation time-series." - } - }, - "description": "Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob." - }, - "eventWorkflowExecutionEvent": { - "type": "object", - "properties": { - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "title": "Workflow execution id" - }, - "producer_id": { - "type": "string", - "title": "the id of the originator (Propeller) of the event" - }, - "phase": { - "$ref": "#/definitions/coreWorkflowExecutionPhase" - }, - "occurred_at": { - "type": "string", - "format": "date-time", - "description": "This timestamp represents when the original event occurred, it is generated\nby the executor of the workflow." - }, - "output_uri": { - "type": "string", - "description": "URL to the output of the execution, it encodes all the information\nincluding Cloud source provider. ie., s3://..." - }, - "error": { - "$ref": "#/definitions/coreExecutionError", - "title": "Error information for the execution" - }, - "output_data": { - "$ref": "#/definitions/coreLiteralMap", - "description": "Raw output data produced by this workflow execution." - } - } - }, - "flyteidladminDynamicWorkflowNodeMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the embedded dynamic workflow." - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the subworkflow has already been compiled." - } - }, - "description": "For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated." - }, - "flyteidladminNodeExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "Uniquely identifies an individual node execution." - }, - "input_uri": { - "type": "string", - "description": "Path to remote data store where input blob is stored." - }, - "closure": { - "$ref": "#/definitions/adminNodeExecutionClosure", - "description": "Computed results associated with this node execution." - }, - "metadata": { - "$ref": "#/definitions/adminNodeExecutionMetaData", - "title": "Metadata for Node Execution" - } - }, - "description": "Encapsulates all details for a single node execution entity.\nA node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow execution.\nThe same task can be called repeatedly in a single workflow but each node is unique." - }, - "flyteidladminTaskCreateRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "title": "id represents the unique identifier of the task.\n+required" - }, - "spec": { - "$ref": "#/definitions/adminTaskSpec", - "title": "Represents the specification for task.\n+required" - } - }, - "title": "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task` for more details" - }, - "flyteidladminTaskCreateResponse": { - "type": "object", - "description": "Represents a response structure if task creation succeeds." - }, - "flyteidladminTaskExecution": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "description": "Unique identifier for the task execution." - }, - "input_uri": { - "type": "string", - "description": "Path to remote data store where input blob is stored." - }, - "closure": { - "$ref": "#/definitions/adminTaskExecutionClosure", - "description": "Task execution details and results." - }, - "is_parent": { - "type": "boolean", - "format": "boolean", - "description": "Whether this task spawned nodes." - } - }, - "description": "Encapsulates all details for a single task execution entity.\nA task execution represents an instantiated task, including all inputs and additional\nmetadata as well as computed results included state, outputs, and duration-based attributes." - }, - "flyteidladminTaskNodeMetadata": { - "type": "object", - "properties": { - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this execution." - }, - "catalog_key": { - "$ref": "#/definitions/coreCatalogMetadata", - "title": "This structure carries the catalog artifact information" - }, - "checkpoint_uri": { - "type": "string", - "title": "The latest checkpoint location" - } - }, - "title": "Metadata for the case in which the node is a TaskNode" - }, - "flyteidladminWorkflowNodeMetadata": { - "type": "object", - "properties": { - "executionId": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "The identifier for a workflow execution launched by a node." - } - }, - "title": "Metadata for a WorkflowNode" - }, - "flyteidleventDynamicWorkflowNodeMetadata": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "id represents the unique identifier of the workflow." - }, - "compiled_workflow": { - "$ref": "#/definitions/coreCompiledWorkflowClosure", - "description": "Represents the compiled representation of the embedded dynamic workflow." - }, - "dynamic_job_spec_uri": { - "type": "string", - "description": "dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is\nrequired to correctly recover partially completed executions where the workflow has already been compiled." - } - }, - "description": "For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated." - }, - "flyteidleventTaskExecutionMetadata": { - "type": "object", - "properties": { - "generated_name": { - "type": "string", - "description": "Unique, generated name for this task execution used by the backend." - }, - "external_resources": { - "type": "array", - "items": { - "$ref": "#/definitions/eventExternalResourceInfo" - }, - "description": "Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution." - }, - "resource_pool_info": { - "type": "array", - "items": { - "$ref": "#/definitions/eventResourcePoolInfo" - }, - "description": "Includes additional data on concurrent resource management used during execution..\nThis is a repeated field because a plugin can request multiple resource allocations during execution." - }, - "plugin_identifier": { - "type": "string", - "description": "The identifier of the plugin used to execute this task." - }, - "instance_class": { - "$ref": "#/definitions/TaskExecutionMetadataInstanceClass" - } - }, - "description": "Holds metadata around how a task was executed.\nAs a task transitions across event phases during execution some attributes, such its generated name, generated external resources,\nand more may grow in size but not change necessarily based on the phase transition that sparked the event update.\nMetadata is a container for these attributes across the task execution lifecycle." - }, - "flyteidleventTaskNodeMetadata": { - "type": "object", - "properties": { - "cache_status": { - "$ref": "#/definitions/coreCatalogCacheStatus", - "description": "Captures the status of caching for this execution." - }, - "catalog_key": { - "$ref": "#/definitions/coreCatalogMetadata", - "title": "This structure carries the catalog artifact information" - }, - "reservation_status": { - "$ref": "#/definitions/CatalogReservationStatus", - "description": "Captures the status of cache reservations for this execution." - }, - "checkpoint_uri": { - "type": "string", - "title": "The latest checkpoint location" - }, - "dynamic_workflow": { - "$ref": "#/definitions/flyteidleventDynamicWorkflowNodeMetadata", - "description": "In the case this task launched a dynamic workflow we capture its structure here." - } - } - }, - "flyteidleventWorkflowNodeMetadata": { - "type": "object", - "properties": { - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "title": "For Workflow Nodes we need to send information about the workflow that's launched" - }, - "protobufAny": { - "type": "object", - "properties": { - "type_url": { - "type": "string", - "description": "A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none \"/\" character. The last segment of the URL's path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics." - }, - "value": { - "type": "string", - "format": "byte", - "description": "Must be a valid serialized protocol buffer of the above specified type." - } - }, - "description": "`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(\u0026foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := \u0026pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n ...\n foo := \u0026pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n'type.googleapis.com/full.type.name' as the type URL and the unpack\nmethods only use the fully qualified type name after the last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\nname \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\",\n \"firstName\": \u003cstring\u003e,\n \"lastName\": \u003cstring\u003e\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n \"value\": \"1.212s\"\n }" - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go deleted file mode 100644 index c816a1f3ac..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.go +++ /dev/null @@ -1,324 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/agent.proto - -package service - -import ( - context "context" - fmt "fmt" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("flyteidl/service/agent.proto", fileDescriptor_f7d1dfd1fb77d2ef) } - -var fileDescriptor_f7d1dfd1fb77d2ef = []byte{ - // 324 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbd, 0x4e, 0xf3, 0x30, - 0x14, 0x86, 0xbf, 0xaf, 0x03, 0x20, 0x0f, 0xa8, 0x58, 0x55, 0x87, 0xa8, 0xe2, 0xa7, 0x3b, 0xb1, - 0x28, 0x33, 0x42, 0x05, 0xa4, 0x2e, 0x65, 0x01, 0xba, 0xb0, 0x9d, 0x26, 0x07, 0x63, 0x25, 0xb1, - 0x43, 0x7c, 0x5a, 0xa9, 0x42, 0x2c, 0xdc, 0x00, 0x03, 0x97, 0xc6, 0x2d, 0x70, 0x01, 0x5c, 0x02, - 0xc2, 0xf9, 0xa5, 0x10, 0xb6, 0x28, 0xcf, 0xeb, 0xe7, 0xf5, 0xcf, 0x61, 0x83, 0xbb, 0x78, 0x45, - 0xa8, 0xc2, 0x58, 0x58, 0xcc, 0x96, 0x2a, 0x40, 0x01, 0x12, 0x35, 0xf9, 0x69, 0x66, 0xc8, 0xf0, - 0x6e, 0x49, 0xfd, 0x82, 0x7a, 0x03, 0x69, 0x8c, 0x8c, 0x51, 0x40, 0xaa, 0x04, 0x68, 0x6d, 0x08, - 0x48, 0x19, 0x6d, 0xf3, 0xbc, 0xe7, 0x55, 0x36, 0x08, 0x13, 0xa5, 0x9b, 0xae, 0xd1, 0x4b, 0x87, - 0xed, 0x8c, 0xed, 0x4a, 0x07, 0xe3, 0xaf, 0x9f, 0xd7, 0xb9, 0x8f, 0xcf, 0x18, 0x3b, 0xcf, 0x10, - 0x08, 0x6f, 0xc0, 0x46, 0xfc, 0xc0, 0xaf, 0x0a, 0x9d, 0xc0, 0xaf, 0xd9, 0x15, 0x3e, 0x2c, 0xd0, - 0x92, 0x37, 0xfc, 0x2b, 0x62, 0x53, 0xa3, 0x2d, 0x0e, 0xff, 0xf1, 0x29, 0xdb, 0x9c, 0x20, 0x39, - 0xe7, 0xee, 0xfa, 0x82, 0x02, 0x94, 0xc2, 0xbd, 0x56, 0x5e, 0xd9, 0x66, 0x8c, 0x5d, 0x60, 0x8c, - 0x6d, 0x9b, 0xac, 0x59, 0xeb, 0x26, 0x9b, 0x91, 0x52, 0x3b, 0xfa, 0xf8, 0xcf, 0x7a, 0xee, 0x32, - 0x2e, 0x91, 0x20, 0x04, 0x82, 0xf2, 0x52, 0x22, 0xb6, 0x35, 0x41, 0x72, 0x88, 0xff, 0xb6, 0x3d, - 0x47, 0xca, 0xae, 0xfd, 0xf6, 0x40, 0xd1, 0x34, 0x78, 0x7e, 0x7b, 0x7f, 0xed, 0xf4, 0x79, 0xcf, - 0xbd, 0xda, 0xf2, 0x28, 0x7f, 0x16, 0xf1, 0xa8, 0x21, 0xc1, 0x27, 0x1e, 0x31, 0x36, 0x55, 0x36, - 0x5f, 0x62, 0x7f, 0x1e, 0xae, 0x66, 0xad, 0x87, 0x6b, 0x46, 0x8a, 0xca, 0xbe, 0xab, 0xec, 0xf2, - 0xed, 0x6f, 0x95, 0xf6, 0xec, 0xf4, 0xf6, 0x44, 0x2a, 0xba, 0x5f, 0xcc, 0xfd, 0xc0, 0x24, 0xc2, - 0x79, 0x4c, 0x26, 0xf3, 0x0f, 0x51, 0x0d, 0x8f, 0x44, 0x2d, 0xd2, 0xf9, 0xa1, 0x34, 0x62, 0x7d, - 0x3a, 0xe7, 0x1b, 0x6e, 0x98, 0x8e, 0x3f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf5, 0x2d, 0xd1, 0xd9, - 0xb8, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// AsyncAgentServiceClient is the client API for AsyncAgentService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AsyncAgentServiceClient interface { - // Send a task create request to the agent server. - CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) - // Get job status. - GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) - // Delete the task resource. - DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) -} - -type asyncAgentServiceClient struct { - cc *grpc.ClientConn -} - -func NewAsyncAgentServiceClient(cc *grpc.ClientConn) AsyncAgentServiceClient { - return &asyncAgentServiceClient{cc} -} - -func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, in *admin.CreateTaskRequest, opts ...grpc.CallOption) (*admin.CreateTaskResponse, error) { - out := new(admin.CreateTaskResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/CreateTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) GetTask(ctx context.Context, in *admin.GetTaskRequest, opts ...grpc.CallOption) (*admin.GetTaskResponse, error) { - out := new(admin.GetTaskResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/GetTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, in *admin.DeleteTaskRequest, opts ...grpc.CallOption) (*admin.DeleteTaskResponse, error) { - out := new(admin.DeleteTaskResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AsyncAgentService/DeleteTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AsyncAgentServiceServer is the server API for AsyncAgentService service. -type AsyncAgentServiceServer interface { - // Send a task create request to the agent server. - CreateTask(context.Context, *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) - // Get job status. - GetTask(context.Context, *admin.GetTaskRequest) (*admin.GetTaskResponse, error) - // Delete the task resource. - DeleteTask(context.Context, *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) -} - -// UnimplementedAsyncAgentServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAsyncAgentServiceServer struct { -} - -func (*UnimplementedAsyncAgentServiceServer) CreateTask(ctx context.Context, req *admin.CreateTaskRequest) (*admin.CreateTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (*UnimplementedAsyncAgentServiceServer) GetTask(ctx context.Context, req *admin.GetTaskRequest) (*admin.GetTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (*UnimplementedAsyncAgentServiceServer) DeleteTask(ctx context.Context, req *admin.DeleteTaskRequest) (*admin.DeleteTaskResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") -} - -func RegisterAsyncAgentServiceServer(s *grpc.Server, srv AsyncAgentServiceServer) { - s.RegisterService(&_AsyncAgentService_serviceDesc, srv) -} - -func _AsyncAgentService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.CreateTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AsyncAgentService/CreateTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).CreateTask(ctx, req.(*admin.CreateTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AsyncAgentService/GetTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).GetTask(ctx, req.(*admin.GetTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AsyncAgentService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.DeleteTaskRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AsyncAgentServiceServer).DeleteTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AsyncAgentService/DeleteTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AsyncAgentServiceServer).DeleteTask(ctx, req.(*admin.DeleteTaskRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AsyncAgentService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AsyncAgentService", - HandlerType: (*AsyncAgentServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _AsyncAgentService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _AsyncAgentService_GetTask_Handler, - }, - { - MethodName: "DeleteTask", - Handler: _AsyncAgentService_DeleteTask_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/agent.proto", -} - -// AgentMetadataServiceClient is the client API for AgentMetadataService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AgentMetadataServiceClient interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) -} - -type agentMetadataServiceClient struct { - cc *grpc.ClientConn -} - -func NewAgentMetadataServiceClient(cc *grpc.ClientConn) AgentMetadataServiceClient { - return &agentMetadataServiceClient{cc} -} - -func (c *agentMetadataServiceClient) GetAgent(ctx context.Context, in *admin.GetAgentRequest, opts ...grpc.CallOption) (*admin.GetAgentResponse, error) { - out := new(admin.GetAgentResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AgentMetadataService/GetAgent", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *agentMetadataServiceClient) ListAgents(ctx context.Context, in *admin.ListAgentsRequest, opts ...grpc.CallOption) (*admin.ListAgentsResponse, error) { - out := new(admin.ListAgentsResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AgentMetadataService/ListAgents", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AgentMetadataServiceServer is the server API for AgentMetadataService service. -type AgentMetadataServiceServer interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(context.Context, *admin.GetAgentRequest) (*admin.GetAgentResponse, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(context.Context, *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) -} - -// UnimplementedAgentMetadataServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAgentMetadataServiceServer struct { -} - -func (*UnimplementedAgentMetadataServiceServer) GetAgent(ctx context.Context, req *admin.GetAgentRequest) (*admin.GetAgentResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetAgent not implemented") -} -func (*UnimplementedAgentMetadataServiceServer) ListAgents(ctx context.Context, req *admin.ListAgentsRequest) (*admin.ListAgentsResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListAgents not implemented") -} - -func RegisterAgentMetadataServiceServer(s *grpc.Server, srv AgentMetadataServiceServer) { - s.RegisterService(&_AgentMetadataService_serviceDesc, srv) -} - -func _AgentMetadataService_GetAgent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.GetAgentRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentMetadataServiceServer).GetAgent(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AgentMetadataService/GetAgent", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentMetadataServiceServer).GetAgent(ctx, req.(*admin.GetAgentRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AgentMetadataService_ListAgents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.ListAgentsRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AgentMetadataServiceServer).ListAgents(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AgentMetadataService/ListAgents", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AgentMetadataServiceServer).ListAgents(ctx, req.(*admin.ListAgentsRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AgentMetadataService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AgentMetadataService", - HandlerType: (*AgentMetadataServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetAgent", - Handler: _AgentMetadataService_GetAgent_Handler, - }, - { - MethodName: "ListAgents", - Handler: _AgentMetadataService_ListAgents_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/agent.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/agent.pb.gw.go deleted file mode 100644 index 33e7c2fb7f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.pb.gw.go +++ /dev/null @@ -1,159 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/agent.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_AgentMetadataService_GetAgent_0(ctx context.Context, marshaler runtime.Marshaler, client AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.GetAgentRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") - } - - protoReq.Name, err = runtime.String(val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) - } - - msg, err := client.GetAgent(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AgentMetadataService_ListAgents_0(ctx context.Context, marshaler runtime.Marshaler, client AgentMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.ListAgentsRequest - var metadata runtime.ServerMetadata - - msg, err := client.ListAgents(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterAgentMetadataServiceHandlerFromEndpoint is same as RegisterAgentMetadataServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAgentMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAgentMetadataServiceHandler(ctx, mux, conn) -} - -// RegisterAgentMetadataServiceHandler registers the http handlers for service AgentMetadataService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAgentMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAgentMetadataServiceHandlerClient(ctx, mux, NewAgentMetadataServiceClient(conn)) -} - -// RegisterAgentMetadataServiceHandlerClient registers the http handlers for service AgentMetadataService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AgentMetadataServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AgentMetadataServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AgentMetadataServiceClient" to call the correct interceptors. -func RegisterAgentMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AgentMetadataServiceClient) error { - - mux.Handle("GET", pattern_AgentMetadataService_GetAgent_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentMetadataService_GetAgent_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_GetAgent_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AgentMetadataService_ListAgents_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AgentMetadataService_ListAgents_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AgentMetadataService_ListAgents_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AgentMetadataService_GetAgent_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3}, []string{"api", "v1", "agent", "name"}, "")) - - pattern_AgentMetadataService_ListAgents_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "agents"}, "")) -) - -var ( - forward_AgentMetadataService_GetAgent_0 = runtime.ForwardResponseMessage - - forward_AgentMetadataService_ListAgents_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json deleted file mode 100644 index b7eacff5f7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/agent.swagger.json +++ /dev/null @@ -1,1532 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/agent.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/agent/{name}": { - "get": { - "summary": "Send a task create request to the agent server.", - "operationId": "GetAgent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminGetAgentResponse" - } - } - }, - "parameters": [ - { - "name": "name", - "description": "The name of the agent.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AgentMetadataService" - ] - } - }, - "/api/v1/agents": { - "get": { - "summary": "Get job status.", - "operationId": "ListAgents", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListAgentsResponse" - } - } - }, - "tags": [ - "AgentMetadataService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "TaskLogMessageFormat": { - "type": "string", - "enum": [ - "UNKNOWN", - "CSV", - "JSON" - ], - "default": "UNKNOWN" - }, - "adminAgent": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name is the developer-assigned name of the agent." - }, - "supported_task_types": { - "type": "array", - "items": { - "type": "string" - }, - "description": "SupportedTaskTypes are the types of the tasks that the agent can handle." - } - }, - "description": "A message containing the agent metadata." - }, - "adminCreateTaskResponse": { - "type": "object", - "properties": { - "resource_meta": { - "type": "string", - "format": "byte" - }, - "resource": { - "$ref": "#/definitions/adminResource" - } - }, - "description": "Represents a create response structure." - }, - "adminDeleteTaskResponse": { - "type": "object", - "description": "Response to delete a task." - }, - "adminGetAgentResponse": { - "type": "object", - "properties": { - "agent": { - "$ref": "#/definitions/adminAgent" - } - }, - "description": "A response containing an agent." - }, - "adminGetTaskResponse": { - "type": "object", - "properties": { - "resource": { - "$ref": "#/definitions/adminResource" - }, - "log_links": { - "type": "array", - "items": { - "$ref": "#/definitions/coreTaskLog" - }, - "title": "log information for the task execution" - } - }, - "description": "Response to get an individual task resource." - }, - "adminListAgentsResponse": { - "type": "object", - "properties": { - "agents": { - "type": "array", - "items": { - "$ref": "#/definitions/adminAgent" - } - } - }, - "description": "A response containing a list of agents." - }, - "adminResource": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/flyteidladminState", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "outputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The outputs of the execution. It's typically used by sql task. Agent service will create a\nStructured dataset pointing to the query result table.\n+optional" - }, - "message": { - "type": "string", - "description": "A descriptive message for the current state. e.g. waiting for cluster." - }, - "log_links": { - "type": "array", - "items": { - "$ref": "#/definitions/coreTaskLog" - }, - "description": "log information for the task execution." - } - } - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string", - "title": "These two fields are only relevant in the partition value case" - }, - "transform": { - "type": "string" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions" - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "format": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean", - "format": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "$ref": "#/definitions/protobufStruct", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskExecutionIdentifier": { - "type": "object", - "properties": { - "task_id": { - "$ref": "#/definitions/coreIdentifier" - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier" - }, - "retry_attempt": { - "type": "integer", - "format": "int64" - } - }, - "description": "Encapsulation of fields that identify a Flyte task execution entity." - }, - "coreTaskLog": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "name": { - "type": "string" - }, - "message_format": { - "$ref": "#/definitions/TaskLogMessageFormat" - }, - "ttl": { - "type": "string" - } - }, - "title": "Log information for the task that is specific to a log sink\nWhen our log story is flushed out, we may have more metadata here like log link expiry" - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean", - "format": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "format": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "$ref": "#/definitions/protobufStruct", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "flyteidladminState": { - "type": "string", - "enum": [ - "RETRYABLE_FAILURE", - "PERMANENT_FAILURE", - "PENDING", - "RUNNING", - "SUCCEEDED" - ], - "default": "RETRYABLE_FAILURE", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "flyteidladminTaskExecutionMetadata": { - "type": "object", - "properties": { - "task_execution_id": { - "$ref": "#/definitions/coreTaskExecutionIdentifier", - "title": "ID of the task execution" - }, - "namespace": { - "type": "string", - "title": "k8s namespace where the task is executed in" - }, - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Labels attached to the task execution" - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Annotations attached to the task execution" - }, - "k8s_service_account": { - "type": "string", - "title": "k8s service account associated with the task execution" - }, - "environment_variables": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Environment variables attached to the task execution" - } - }, - "description": "Represents a subset of runtime task execution metadata that are relevant to external plugins." - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go deleted file mode 100644 index aee87747d1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.go +++ /dev/null @@ -1,479 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/auth.proto - -package service - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type OAuth2MetadataRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OAuth2MetadataRequest) Reset() { *m = OAuth2MetadataRequest{} } -func (m *OAuth2MetadataRequest) String() string { return proto.CompactTextString(m) } -func (*OAuth2MetadataRequest) ProtoMessage() {} -func (*OAuth2MetadataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6eee4a0c193ab842, []int{0} -} - -func (m *OAuth2MetadataRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OAuth2MetadataRequest.Unmarshal(m, b) -} -func (m *OAuth2MetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OAuth2MetadataRequest.Marshal(b, m, deterministic) -} -func (m *OAuth2MetadataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OAuth2MetadataRequest.Merge(m, src) -} -func (m *OAuth2MetadataRequest) XXX_Size() int { - return xxx_messageInfo_OAuth2MetadataRequest.Size(m) -} -func (m *OAuth2MetadataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_OAuth2MetadataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_OAuth2MetadataRequest proto.InternalMessageInfo - -// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata -// as defined in https://tools.ietf.org/html/rfc8414 -type OAuth2MetadataResponse struct { - // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external - // issuer. - Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` - // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are - // supported that use the authorization endpoint. - AuthorizationEndpoint string `protobuf:"bytes,2,opt,name=authorization_endpoint,json=authorizationEndpoint,proto3" json:"authorization_endpoint,omitempty"` - // URL of the authorization server's token endpoint [RFC6749]. - TokenEndpoint string `protobuf:"bytes,3,opt,name=token_endpoint,json=tokenEndpoint,proto3" json:"token_endpoint,omitempty"` - // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. - ResponseTypesSupported []string `protobuf:"bytes,4,rep,name=response_types_supported,json=responseTypesSupported,proto3" json:"response_types_supported,omitempty"` - // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports. - ScopesSupported []string `protobuf:"bytes,5,rep,name=scopes_supported,json=scopesSupported,proto3" json:"scopes_supported,omitempty"` - // JSON array containing a list of client authentication methods supported by this token endpoint. - TokenEndpointAuthMethodsSupported []string `protobuf:"bytes,6,rep,name=token_endpoint_auth_methods_supported,json=tokenEndpointAuthMethodsSupported,proto3" json:"token_endpoint_auth_methods_supported,omitempty"` - // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the - // client uses to validate signatures from the authorization server. - JwksUri string `protobuf:"bytes,7,opt,name=jwks_uri,json=jwksUri,proto3" json:"jwks_uri,omitempty"` - // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by - // this authorization server. - CodeChallengeMethodsSupported []string `protobuf:"bytes,8,rep,name=code_challenge_methods_supported,json=codeChallengeMethodsSupported,proto3" json:"code_challenge_methods_supported,omitempty"` - // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. - GrantTypesSupported []string `protobuf:"bytes,9,rep,name=grant_types_supported,json=grantTypesSupported,proto3" json:"grant_types_supported,omitempty"` - // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628] - DeviceAuthorizationEndpoint string `protobuf:"bytes,10,opt,name=device_authorization_endpoint,json=deviceAuthorizationEndpoint,proto3" json:"device_authorization_endpoint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *OAuth2MetadataResponse) Reset() { *m = OAuth2MetadataResponse{} } -func (m *OAuth2MetadataResponse) String() string { return proto.CompactTextString(m) } -func (*OAuth2MetadataResponse) ProtoMessage() {} -func (*OAuth2MetadataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6eee4a0c193ab842, []int{1} -} - -func (m *OAuth2MetadataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_OAuth2MetadataResponse.Unmarshal(m, b) -} -func (m *OAuth2MetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_OAuth2MetadataResponse.Marshal(b, m, deterministic) -} -func (m *OAuth2MetadataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OAuth2MetadataResponse.Merge(m, src) -} -func (m *OAuth2MetadataResponse) XXX_Size() int { - return xxx_messageInfo_OAuth2MetadataResponse.Size(m) -} -func (m *OAuth2MetadataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_OAuth2MetadataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_OAuth2MetadataResponse proto.InternalMessageInfo - -func (m *OAuth2MetadataResponse) GetIssuer() string { - if m != nil { - return m.Issuer - } - return "" -} - -func (m *OAuth2MetadataResponse) GetAuthorizationEndpoint() string { - if m != nil { - return m.AuthorizationEndpoint - } - return "" -} - -func (m *OAuth2MetadataResponse) GetTokenEndpoint() string { - if m != nil { - return m.TokenEndpoint - } - return "" -} - -func (m *OAuth2MetadataResponse) GetResponseTypesSupported() []string { - if m != nil { - return m.ResponseTypesSupported - } - return nil -} - -func (m *OAuth2MetadataResponse) GetScopesSupported() []string { - if m != nil { - return m.ScopesSupported - } - return nil -} - -func (m *OAuth2MetadataResponse) GetTokenEndpointAuthMethodsSupported() []string { - if m != nil { - return m.TokenEndpointAuthMethodsSupported - } - return nil -} - -func (m *OAuth2MetadataResponse) GetJwksUri() string { - if m != nil { - return m.JwksUri - } - return "" -} - -func (m *OAuth2MetadataResponse) GetCodeChallengeMethodsSupported() []string { - if m != nil { - return m.CodeChallengeMethodsSupported - } - return nil -} - -func (m *OAuth2MetadataResponse) GetGrantTypesSupported() []string { - if m != nil { - return m.GrantTypesSupported - } - return nil -} - -func (m *OAuth2MetadataResponse) GetDeviceAuthorizationEndpoint() string { - if m != nil { - return m.DeviceAuthorizationEndpoint - } - return "" -} - -type PublicClientAuthConfigRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PublicClientAuthConfigRequest) Reset() { *m = PublicClientAuthConfigRequest{} } -func (m *PublicClientAuthConfigRequest) String() string { return proto.CompactTextString(m) } -func (*PublicClientAuthConfigRequest) ProtoMessage() {} -func (*PublicClientAuthConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_6eee4a0c193ab842, []int{2} -} - -func (m *PublicClientAuthConfigRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PublicClientAuthConfigRequest.Unmarshal(m, b) -} -func (m *PublicClientAuthConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PublicClientAuthConfigRequest.Marshal(b, m, deterministic) -} -func (m *PublicClientAuthConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PublicClientAuthConfigRequest.Merge(m, src) -} -func (m *PublicClientAuthConfigRequest) XXX_Size() int { - return xxx_messageInfo_PublicClientAuthConfigRequest.Size(m) -} -func (m *PublicClientAuthConfigRequest) XXX_DiscardUnknown() { - xxx_messageInfo_PublicClientAuthConfigRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_PublicClientAuthConfigRequest proto.InternalMessageInfo - -// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. -type PublicClientAuthConfigResponse struct { - // client_id to use when initiating OAuth2 authorization requests. - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - // redirect uri to use when initiating OAuth2 authorization requests. - RedirectUri string `protobuf:"bytes,2,opt,name=redirect_uri,json=redirectUri,proto3" json:"redirect_uri,omitempty"` - // scopes to request when initiating OAuth2 authorization requests. - Scopes []string `protobuf:"bytes,3,rep,name=scopes,proto3" json:"scopes,omitempty"` - // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the - // default http `Authorization` header. - AuthorizationMetadataKey string `protobuf:"bytes,4,opt,name=authorization_metadata_key,json=authorizationMetadataKey,proto3" json:"authorization_metadata_key,omitempty"` - // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used - // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between - // SSL or no SSL connections. - ServiceHttpEndpoint string `protobuf:"bytes,5,opt,name=service_http_endpoint,json=serviceHttpEndpoint,proto3" json:"service_http_endpoint,omitempty"` - // audience to use when initiating OAuth2 authorization requests. - Audience string `protobuf:"bytes,6,opt,name=audience,proto3" json:"audience,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PublicClientAuthConfigResponse) Reset() { *m = PublicClientAuthConfigResponse{} } -func (m *PublicClientAuthConfigResponse) String() string { return proto.CompactTextString(m) } -func (*PublicClientAuthConfigResponse) ProtoMessage() {} -func (*PublicClientAuthConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_6eee4a0c193ab842, []int{3} -} - -func (m *PublicClientAuthConfigResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PublicClientAuthConfigResponse.Unmarshal(m, b) -} -func (m *PublicClientAuthConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PublicClientAuthConfigResponse.Marshal(b, m, deterministic) -} -func (m *PublicClientAuthConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PublicClientAuthConfigResponse.Merge(m, src) -} -func (m *PublicClientAuthConfigResponse) XXX_Size() int { - return xxx_messageInfo_PublicClientAuthConfigResponse.Size(m) -} -func (m *PublicClientAuthConfigResponse) XXX_DiscardUnknown() { - xxx_messageInfo_PublicClientAuthConfigResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_PublicClientAuthConfigResponse proto.InternalMessageInfo - -func (m *PublicClientAuthConfigResponse) GetClientId() string { - if m != nil { - return m.ClientId - } - return "" -} - -func (m *PublicClientAuthConfigResponse) GetRedirectUri() string { - if m != nil { - return m.RedirectUri - } - return "" -} - -func (m *PublicClientAuthConfigResponse) GetScopes() []string { - if m != nil { - return m.Scopes - } - return nil -} - -func (m *PublicClientAuthConfigResponse) GetAuthorizationMetadataKey() string { - if m != nil { - return m.AuthorizationMetadataKey - } - return "" -} - -func (m *PublicClientAuthConfigResponse) GetServiceHttpEndpoint() string { - if m != nil { - return m.ServiceHttpEndpoint - } - return "" -} - -func (m *PublicClientAuthConfigResponse) GetAudience() string { - if m != nil { - return m.Audience - } - return "" -} - -func init() { - proto.RegisterType((*OAuth2MetadataRequest)(nil), "flyteidl.service.OAuth2MetadataRequest") - proto.RegisterType((*OAuth2MetadataResponse)(nil), "flyteidl.service.OAuth2MetadataResponse") - proto.RegisterType((*PublicClientAuthConfigRequest)(nil), "flyteidl.service.PublicClientAuthConfigRequest") - proto.RegisterType((*PublicClientAuthConfigResponse)(nil), "flyteidl.service.PublicClientAuthConfigResponse") -} - -func init() { proto.RegisterFile("flyteidl/service/auth.proto", fileDescriptor_6eee4a0c193ab842) } - -var fileDescriptor_6eee4a0c193ab842 = []byte{ - // 636 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x4e, 0x14, 0x41, - 0x10, 0xce, 0x2e, 0xb0, 0xec, 0x96, 0x7f, 0xd8, 0x64, 0x97, 0x61, 0x11, 0x81, 0x4d, 0x08, 0x70, - 0xd8, 0x6d, 0xc5, 0x98, 0x78, 0xd0, 0x18, 0x20, 0x06, 0x8d, 0x21, 0x12, 0xd0, 0x8b, 0x97, 0xce, - 0xec, 0x4c, 0x31, 0xdb, 0xee, 0xd0, 0x3d, 0xf6, 0xf4, 0x40, 0xd6, 0xa3, 0x07, 0x5f, 0xc0, 0x83, - 0x07, 0x4f, 0x3e, 0x90, 0x27, 0x5f, 0xc1, 0x07, 0x31, 0xd3, 0xdd, 0x03, 0xcc, 0x02, 0xea, 0x6d, - 0xba, 0xbf, 0xaf, 0xba, 0xaa, 0xbe, 0xfa, 0x6a, 0x60, 0xe1, 0x28, 0x1e, 0x69, 0xe4, 0x61, 0x4c, - 0x53, 0x54, 0x27, 0x3c, 0x40, 0xea, 0x67, 0x7a, 0xd0, 0x4b, 0x94, 0xd4, 0x92, 0xcc, 0x14, 0x60, - 0xcf, 0x81, 0xed, 0x7b, 0x91, 0x94, 0x51, 0x8c, 0xd4, 0x4f, 0x38, 0xf5, 0x85, 0x90, 0xda, 0xd7, - 0x5c, 0x8a, 0xd4, 0xf2, 0x3b, 0x73, 0xd0, 0x7c, 0xb3, 0x95, 0xe9, 0xc1, 0xe6, 0x1e, 0x6a, 0x3f, - 0xf4, 0xb5, 0x7f, 0x80, 0x1f, 0x33, 0x4c, 0x75, 0xe7, 0xc7, 0x24, 0xb4, 0xc6, 0x91, 0x34, 0x91, - 0x22, 0x45, 0xd2, 0x82, 0x1a, 0x4f, 0xd3, 0x0c, 0x95, 0x57, 0x59, 0xae, 0xac, 0x37, 0x0e, 0xdc, - 0x89, 0x3c, 0x86, 0x56, 0x5e, 0x89, 0x54, 0xfc, 0x93, 0xc9, 0xc1, 0x50, 0x84, 0x89, 0xe4, 0x42, - 0x7b, 0x55, 0xc3, 0x6b, 0x96, 0xd0, 0x17, 0x0e, 0x24, 0xab, 0x70, 0x5b, 0xcb, 0x21, 0x5e, 0xa0, - 0x4f, 0x18, 0xfa, 0x2d, 0x73, 0x7b, 0x46, 0x7b, 0x02, 0x9e, 0x72, 0x15, 0x30, 0x3d, 0x4a, 0x30, - 0x65, 0x69, 0x96, 0x24, 0x52, 0x69, 0x0c, 0xbd, 0xc9, 0xe5, 0x89, 0xf5, 0xc6, 0x41, 0xab, 0xc0, - 0xdf, 0xe6, 0xf0, 0x61, 0x81, 0x92, 0x0d, 0x98, 0x49, 0x03, 0x59, 0x8e, 0x98, 0x32, 0x11, 0x77, - 0xec, 0xfd, 0x39, 0x75, 0x1f, 0x56, 0xcb, 0xb5, 0xb0, 0xbc, 0x66, 0x76, 0x8c, 0x7a, 0x20, 0xc3, - 0x8b, 0xf1, 0x35, 0x13, 0xbf, 0x52, 0x2a, 0x31, 0x57, 0x6b, 0xcf, 0x32, 0xcf, 0x5f, 0x9c, 0x87, - 0xfa, 0x87, 0xd3, 0x61, 0xca, 0x32, 0xc5, 0xbd, 0x69, 0xd3, 0xd7, 0x74, 0x7e, 0x7e, 0xa7, 0x38, - 0xd9, 0x85, 0xe5, 0x40, 0x86, 0xc8, 0x82, 0x81, 0x1f, 0xc7, 0x28, 0x22, 0xbc, 0x22, 0x4f, 0xdd, - 0xe4, 0x59, 0xcc, 0x79, 0x3b, 0x05, 0xed, 0x52, 0x8e, 0x4d, 0x68, 0x46, 0xca, 0x17, 0xfa, 0x92, - 0x2e, 0x0d, 0x13, 0x3d, 0x6b, 0xc0, 0x31, 0x51, 0xb6, 0x61, 0x31, 0xc4, 0xdc, 0x20, 0xec, 0x9a, - 0x99, 0x81, 0x29, 0x76, 0xc1, 0x92, 0xb6, 0xae, 0x9a, 0x5c, 0x67, 0x09, 0x16, 0xf7, 0xb3, 0x7e, - 0xcc, 0x83, 0x9d, 0x98, 0xa3, 0xed, 0x7f, 0x47, 0x8a, 0x23, 0x1e, 0x15, 0x26, 0xfa, 0x52, 0x85, - 0xfb, 0xd7, 0x31, 0x9c, 0x99, 0x16, 0xa0, 0x11, 0x18, 0x8c, 0xf1, 0xd0, 0xf9, 0xa9, 0x6e, 0x2f, - 0x5e, 0x85, 0x64, 0x05, 0x6e, 0x2a, 0x0c, 0xb9, 0xc2, 0x40, 0x1b, 0x01, 0xad, 0x8f, 0x6e, 0x14, - 0x77, 0xb9, 0x88, 0x2d, 0xa8, 0xd9, 0x21, 0x7a, 0x13, 0xa6, 0x59, 0x77, 0x22, 0x4f, 0xa1, 0x5d, - 0x6e, 0xec, 0xd8, 0xd9, 0x98, 0x0d, 0x71, 0xe4, 0x4d, 0x9a, 0x87, 0xbc, 0x12, 0xa3, 0xf0, 0xf9, - 0x6b, 0x1c, 0xe5, 0x8a, 0xba, 0xfd, 0x61, 0x03, 0xad, 0x93, 0x73, 0x55, 0xa6, 0x4c, 0xe0, 0xac, - 0x03, 0x5f, 0x6a, 0x9d, 0x9c, 0x19, 0xb4, 0x0d, 0x75, 0x3f, 0x0b, 0x39, 0x8a, 0x00, 0xbd, 0x9a, - 0x6d, 0xa4, 0x38, 0x6f, 0xfe, 0xac, 0xc2, 0xac, 0xb3, 0x87, 0xc9, 0x71, 0x68, 0xe3, 0xc9, 0xb7, - 0x0a, 0xdc, 0xdd, 0x45, 0x5d, 0x5e, 0x34, 0xb2, 0xd6, 0x1b, 0xdf, 0xe2, 0xde, 0x95, 0x4b, 0xda, - 0x5e, 0xff, 0x37, 0xd1, 0xca, 0xdc, 0xa1, 0x9f, 0x7f, 0xfd, 0xfe, 0x5a, 0xdd, 0x20, 0x6b, 0xb4, - 0x77, 0x8a, 0x71, 0xdc, 0x1d, 0x0a, 0x79, 0x2a, 0xa8, 0xcc, 0x05, 0xe8, 0x96, 0x54, 0xe8, 0xe6, - 0x0f, 0xa1, 0x22, 0xdf, 0x2b, 0xd0, 0xdc, 0x45, 0x7d, 0x71, 0x7a, 0x76, 0x72, 0x84, 0x5e, 0x4e, - 0xfa, 0x57, 0x17, 0xb4, 0x1f, 0xfc, 0x7f, 0x80, 0xab, 0x76, 0xc9, 0x54, 0x3b, 0x4f, 0xe6, 0x68, - 0x60, 0x00, 0x7a, 0xf2, 0x90, 0x9a, 0x37, 0x98, 0xb5, 0xc6, 0xf6, 0xf3, 0xf7, 0xcf, 0x22, 0xae, - 0x07, 0x59, 0xbf, 0x17, 0xc8, 0x63, 0x0b, 0x49, 0x15, 0xd9, 0x0f, 0x7a, 0xf6, 0x7f, 0x8c, 0x50, - 0xd0, 0xa4, 0xdf, 0x8d, 0x24, 0x1d, 0xff, 0x65, 0xf6, 0x6b, 0xe6, 0xf7, 0xf7, 0xe8, 0x4f, 0x00, - 0x00, 0x00, 0xff, 0xff, 0x7e, 0x66, 0xab, 0x82, 0x4d, 0x05, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// AuthMetadataServiceClient is the client API for AuthMetadataService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type AuthMetadataServiceClient interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) -} - -type authMetadataServiceClient struct { - cc *grpc.ClientConn -} - -func NewAuthMetadataServiceClient(cc *grpc.ClientConn) AuthMetadataServiceClient { - return &authMetadataServiceClient{cc} -} - -func (c *authMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, in *OAuth2MetadataRequest, opts ...grpc.CallOption) (*OAuth2MetadataResponse, error) { - out := new(OAuth2MetadataResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *authMetadataServiceClient) GetPublicClientConfig(ctx context.Context, in *PublicClientAuthConfigRequest, opts ...grpc.CallOption) (*PublicClientAuthConfigResponse, error) { - out := new(PublicClientAuthConfigResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// AuthMetadataServiceServer is the server API for AuthMetadataService service. -type AuthMetadataServiceServer interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(context.Context, *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(context.Context, *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) -} - -// UnimplementedAuthMetadataServiceServer can be embedded to have forward compatible implementations. -type UnimplementedAuthMetadataServiceServer struct { -} - -func (*UnimplementedAuthMetadataServiceServer) GetOAuth2Metadata(ctx context.Context, req *OAuth2MetadataRequest) (*OAuth2MetadataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOAuth2Metadata not implemented") -} -func (*UnimplementedAuthMetadataServiceServer) GetPublicClientConfig(ctx context.Context, req *PublicClientAuthConfigRequest) (*PublicClientAuthConfigResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetPublicClientConfig not implemented") -} - -func RegisterAuthMetadataServiceServer(s *grpc.Server, srv AuthMetadataServiceServer) { - s.RegisterService(&_AuthMetadataService_serviceDesc, srv) -} - -func _AuthMetadataService_GetOAuth2Metadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(OAuth2MetadataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthMetadataServiceServer).GetOAuth2Metadata(ctx, req.(*OAuth2MetadataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _AuthMetadataService_GetPublicClientConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(PublicClientAuthConfigRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.AuthMetadataService/GetPublicClientConfig", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AuthMetadataServiceServer).GetPublicClientConfig(ctx, req.(*PublicClientAuthConfigRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _AuthMetadataService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.AuthMetadataService", - HandlerType: (*AuthMetadataServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetOAuth2Metadata", - Handler: _AuthMetadataService_GetOAuth2Metadata_Handler, - }, - { - MethodName: "GetPublicClientConfig", - Handler: _AuthMetadataService_GetPublicClientConfig_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/auth.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go deleted file mode 100644 index 12d485a16a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/auth.pb.gw.go +++ /dev/null @@ -1,140 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/auth.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_AuthMetadataService_GetOAuth2Metadata_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq OAuth2MetadataRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetOAuth2Metadata(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_AuthMetadataService_GetPublicClientConfig_0(ctx context.Context, marshaler runtime.Marshaler, client AuthMetadataServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq PublicClientAuthConfigRequest - var metadata runtime.ServerMetadata - - msg, err := client.GetPublicClientConfig(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterAuthMetadataServiceHandlerFromEndpoint is same as RegisterAuthMetadataServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterAuthMetadataServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterAuthMetadataServiceHandler(ctx, mux, conn) -} - -// RegisterAuthMetadataServiceHandler registers the http handlers for service AuthMetadataService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterAuthMetadataServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterAuthMetadataServiceHandlerClient(ctx, mux, NewAuthMetadataServiceClient(conn)) -} - -// RegisterAuthMetadataServiceHandlerClient registers the http handlers for service AuthMetadataService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthMetadataServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthMetadataServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "AuthMetadataServiceClient" to call the correct interceptors. -func RegisterAuthMetadataServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthMetadataServiceClient) error { - - mux.Handle("GET", pattern_AuthMetadataService_GetOAuth2Metadata_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthMetadataService_GetOAuth2Metadata_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetOAuth2Metadata_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_AuthMetadataService_GetPublicClientConfig_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_AuthMetadataService_GetPublicClientConfig_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_AuthMetadataService_GetPublicClientConfig_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_AuthMetadataService_GetOAuth2Metadata_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1}, []string{".well-known", "oauth-authorization-server"}, "")) - - pattern_AuthMetadataService_GetPublicClientConfig_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"config", "v1", "flyte_client"}, "")) -) - -var ( - forward_AuthMetadataService_GetOAuth2Metadata_0 = runtime.ForwardResponseMessage - - forward_AuthMetadataService_GetPublicClientConfig_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json deleted file mode 100644 index e3fbf421f3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/auth.swagger.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/auth.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/.well-known/oauth-authorization-server": { - "get": { - "summary": "Anonymously accessible. Retrieves local or external oauth authorization server metadata.", - "operationId": "GetOAuth2Metadata", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceOAuth2MetadataResponse" - } - } - }, - "tags": [ - "AuthMetadataService" - ] - } - }, - "/config/v1/flyte_client": { - "get": { - "summary": "Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization\nrequests.", - "operationId": "GetPublicClientConfig", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/servicePublicClientAuthConfigResponse" - } - } - }, - "tags": [ - "AuthMetadataService" - ] - } - } - }, - "definitions": { - "serviceOAuth2MetadataResponse": { - "type": "object", - "properties": { - "issuer": { - "type": "string", - "description": "Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external\nissuer." - }, - "authorization_endpoint": { - "type": "string", - "description": "URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are\nsupported that use the authorization endpoint." - }, - "token_endpoint": { - "type": "string", - "description": "URL of the authorization server's token endpoint [RFC6749]." - }, - "response_types_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array containing a list of the OAuth 2.0 response_type values that this authorization server supports." - }, - "scopes_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports." - }, - "token_endpoint_auth_methods_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of client authentication methods supported by this token endpoint." - }, - "jwks_uri": { - "type": "string", - "description": "URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the\nclient uses to validate signatures from the authorization server." - }, - "code_challenge_methods_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by\nthis authorization server." - }, - "grant_types_supported": { - "type": "array", - "items": { - "type": "string" - }, - "description": "JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports." - }, - "device_authorization_endpoint": { - "type": "string", - "title": "URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]" - } - }, - "title": "OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata\nas defined in https://tools.ietf.org/html/rfc8414" - }, - "servicePublicClientAuthConfigResponse": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "description": "client_id to use when initiating OAuth2 authorization requests." - }, - "redirect_uri": { - "type": "string", - "description": "redirect uri to use when initiating OAuth2 authorization requests." - }, - "scopes": { - "type": "array", - "items": { - "type": "string" - }, - "description": "scopes to request when initiating OAuth2 authorization requests." - }, - "authorization_metadata_key": { - "type": "string", - "description": "Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the\ndefault http `Authorization` header." - }, - "service_http_endpoint": { - "type": "string", - "description": "ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used\nto configure the gRPC connection can be used for the http one respecting the insecure flag to choose between\nSSL or no SSL connections." - }, - "audience": { - "type": "string", - "description": "audience to use when initiating OAuth2 authorization requests." - } - }, - "description": "FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go deleted file mode 100644 index 45f869e608..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.go +++ /dev/null @@ -1,928 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/dataproxy.proto - -package service - -import ( - context "context" - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - duration "github.com/golang/protobuf/ptypes/duration" - timestamp "github.com/golang/protobuf/ptypes/timestamp" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// ArtifactType -type ArtifactType int32 - -const ( - // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. - ArtifactType_ARTIFACT_TYPE_UNDEFINED ArtifactType = 0 - // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan - // finishes executing. - ArtifactType_ARTIFACT_TYPE_DECK ArtifactType = 1 -) - -var ArtifactType_name = map[int32]string{ - 0: "ARTIFACT_TYPE_UNDEFINED", - 1: "ARTIFACT_TYPE_DECK", -} - -var ArtifactType_value = map[string]int32{ - "ARTIFACT_TYPE_UNDEFINED": 0, - "ARTIFACT_TYPE_DECK": 1, -} - -func (x ArtifactType) String() string { - return proto.EnumName(ArtifactType_name, int32(x)) -} - -func (ArtifactType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{0} -} - -type CreateUploadLocationResponse struct { - // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - NativeUrl string `protobuf:"bytes,2,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` - // ExpiresAt defines when will the signed URL expires. - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateUploadLocationResponse) Reset() { *m = CreateUploadLocationResponse{} } -func (m *CreateUploadLocationResponse) String() string { return proto.CompactTextString(m) } -func (*CreateUploadLocationResponse) ProtoMessage() {} -func (*CreateUploadLocationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{0} -} - -func (m *CreateUploadLocationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateUploadLocationResponse.Unmarshal(m, b) -} -func (m *CreateUploadLocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateUploadLocationResponse.Marshal(b, m, deterministic) -} -func (m *CreateUploadLocationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateUploadLocationResponse.Merge(m, src) -} -func (m *CreateUploadLocationResponse) XXX_Size() int { - return xxx_messageInfo_CreateUploadLocationResponse.Size(m) -} -func (m *CreateUploadLocationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateUploadLocationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateUploadLocationResponse proto.InternalMessageInfo - -func (m *CreateUploadLocationResponse) GetSignedUrl() string { - if m != nil { - return m.SignedUrl - } - return "" -} - -func (m *CreateUploadLocationResponse) GetNativeUrl() string { - if m != nil { - return m.NativeUrl - } - return "" -} - -func (m *CreateUploadLocationResponse) GetExpiresAt() *timestamp.Timestamp { - if m != nil { - return m.ExpiresAt - } - return nil -} - -// CreateUploadLocationRequest specified request for the CreateUploadLocation API. -// The implementation in data proxy service will create the s3 location with some server side configured prefixes, -// and then: -// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR -// - project/domain/filename_root (if present)/filename (if present). -type CreateUploadLocationRequest struct { - // Project to create the upload location for - // +required - Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` - // Domain to create the upload location for. - // +required - Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` - // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. - // +optional. By default, the service will generate a consistent name based on the provided parameters. - Filename string `protobuf:"bytes,3,opt,name=filename,proto3" json:"filename,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *duration.Duration `protobuf:"bytes,4,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the - // generated path. - // +required - ContentMd5 []byte `protobuf:"bytes,5,opt,name=content_md5,json=contentMd5,proto3" json:"content_md5,omitempty"` - // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included - // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix - // in data proxy config. This option is useful when uploading multiple files. - // +optional - FilenameRoot string `protobuf:"bytes,6,opt,name=filename_root,json=filenameRoot,proto3" json:"filename_root,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateUploadLocationRequest) Reset() { *m = CreateUploadLocationRequest{} } -func (m *CreateUploadLocationRequest) String() string { return proto.CompactTextString(m) } -func (*CreateUploadLocationRequest) ProtoMessage() {} -func (*CreateUploadLocationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{1} -} - -func (m *CreateUploadLocationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateUploadLocationRequest.Unmarshal(m, b) -} -func (m *CreateUploadLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateUploadLocationRequest.Marshal(b, m, deterministic) -} -func (m *CreateUploadLocationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateUploadLocationRequest.Merge(m, src) -} -func (m *CreateUploadLocationRequest) XXX_Size() int { - return xxx_messageInfo_CreateUploadLocationRequest.Size(m) -} -func (m *CreateUploadLocationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateUploadLocationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateUploadLocationRequest proto.InternalMessageInfo - -func (m *CreateUploadLocationRequest) GetProject() string { - if m != nil { - return m.Project - } - return "" -} - -func (m *CreateUploadLocationRequest) GetDomain() string { - if m != nil { - return m.Domain - } - return "" -} - -func (m *CreateUploadLocationRequest) GetFilename() string { - if m != nil { - return m.Filename - } - return "" -} - -func (m *CreateUploadLocationRequest) GetExpiresIn() *duration.Duration { - if m != nil { - return m.ExpiresIn - } - return nil -} - -func (m *CreateUploadLocationRequest) GetContentMd5() []byte { - if m != nil { - return m.ContentMd5 - } - return nil -} - -func (m *CreateUploadLocationRequest) GetFilenameRoot() string { - if m != nil { - return m.FilenameRoot - } - return "" -} - -// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. -// -// Deprecated: Do not use. -type CreateDownloadLocationRequest struct { - // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - NativeUrl string `protobuf:"bytes,1,opt,name=native_url,json=nativeUrl,proto3" json:"native_url,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *duration.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDownloadLocationRequest) Reset() { *m = CreateDownloadLocationRequest{} } -func (m *CreateDownloadLocationRequest) String() string { return proto.CompactTextString(m) } -func (*CreateDownloadLocationRequest) ProtoMessage() {} -func (*CreateDownloadLocationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{2} -} - -func (m *CreateDownloadLocationRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDownloadLocationRequest.Unmarshal(m, b) -} -func (m *CreateDownloadLocationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDownloadLocationRequest.Marshal(b, m, deterministic) -} -func (m *CreateDownloadLocationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDownloadLocationRequest.Merge(m, src) -} -func (m *CreateDownloadLocationRequest) XXX_Size() int { - return xxx_messageInfo_CreateDownloadLocationRequest.Size(m) -} -func (m *CreateDownloadLocationRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDownloadLocationRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDownloadLocationRequest proto.InternalMessageInfo - -func (m *CreateDownloadLocationRequest) GetNativeUrl() string { - if m != nil { - return m.NativeUrl - } - return "" -} - -func (m *CreateDownloadLocationRequest) GetExpiresIn() *duration.Duration { - if m != nil { - return m.ExpiresIn - } - return nil -} - -// Deprecated: Do not use. -type CreateDownloadLocationResponse struct { - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl string `protobuf:"bytes,1,opt,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // ExpiresAt defines when will the signed URL expires. - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDownloadLocationResponse) Reset() { *m = CreateDownloadLocationResponse{} } -func (m *CreateDownloadLocationResponse) String() string { return proto.CompactTextString(m) } -func (*CreateDownloadLocationResponse) ProtoMessage() {} -func (*CreateDownloadLocationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{3} -} - -func (m *CreateDownloadLocationResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDownloadLocationResponse.Unmarshal(m, b) -} -func (m *CreateDownloadLocationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDownloadLocationResponse.Marshal(b, m, deterministic) -} -func (m *CreateDownloadLocationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDownloadLocationResponse.Merge(m, src) -} -func (m *CreateDownloadLocationResponse) XXX_Size() int { - return xxx_messageInfo_CreateDownloadLocationResponse.Size(m) -} -func (m *CreateDownloadLocationResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDownloadLocationResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDownloadLocationResponse proto.InternalMessageInfo - -func (m *CreateDownloadLocationResponse) GetSignedUrl() string { - if m != nil { - return m.SignedUrl - } - return "" -} - -func (m *CreateDownloadLocationResponse) GetExpiresAt() *timestamp.Timestamp { - if m != nil { - return m.ExpiresAt - } - return nil -} - -// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) -type CreateDownloadLinkRequest struct { - // ArtifactType of the artifact requested. - ArtifactType ArtifactType `protobuf:"varint,1,opt,name=artifact_type,json=artifactType,proto3,enum=flyteidl.service.ArtifactType" json:"artifact_type,omitempty"` - // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - // exceeds the platform allowed max. - // +optional. The default value comes from a global config. - ExpiresIn *duration.Duration `protobuf:"bytes,2,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"` - // Types that are valid to be assigned to Source: - // *CreateDownloadLinkRequest_NodeExecutionId - Source isCreateDownloadLinkRequest_Source `protobuf_oneof:"source"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDownloadLinkRequest) Reset() { *m = CreateDownloadLinkRequest{} } -func (m *CreateDownloadLinkRequest) String() string { return proto.CompactTextString(m) } -func (*CreateDownloadLinkRequest) ProtoMessage() {} -func (*CreateDownloadLinkRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{4} -} - -func (m *CreateDownloadLinkRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDownloadLinkRequest.Unmarshal(m, b) -} -func (m *CreateDownloadLinkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDownloadLinkRequest.Marshal(b, m, deterministic) -} -func (m *CreateDownloadLinkRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDownloadLinkRequest.Merge(m, src) -} -func (m *CreateDownloadLinkRequest) XXX_Size() int { - return xxx_messageInfo_CreateDownloadLinkRequest.Size(m) -} -func (m *CreateDownloadLinkRequest) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDownloadLinkRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDownloadLinkRequest proto.InternalMessageInfo - -func (m *CreateDownloadLinkRequest) GetArtifactType() ArtifactType { - if m != nil { - return m.ArtifactType - } - return ArtifactType_ARTIFACT_TYPE_UNDEFINED -} - -func (m *CreateDownloadLinkRequest) GetExpiresIn() *duration.Duration { - if m != nil { - return m.ExpiresIn - } - return nil -} - -type isCreateDownloadLinkRequest_Source interface { - isCreateDownloadLinkRequest_Source() -} - -type CreateDownloadLinkRequest_NodeExecutionId struct { - NodeExecutionId *core.NodeExecutionIdentifier `protobuf:"bytes,3,opt,name=node_execution_id,json=nodeExecutionId,proto3,oneof"` -} - -func (*CreateDownloadLinkRequest_NodeExecutionId) isCreateDownloadLinkRequest_Source() {} - -func (m *CreateDownloadLinkRequest) GetSource() isCreateDownloadLinkRequest_Source { - if m != nil { - return m.Source - } - return nil -} - -func (m *CreateDownloadLinkRequest) GetNodeExecutionId() *core.NodeExecutionIdentifier { - if x, ok := m.GetSource().(*CreateDownloadLinkRequest_NodeExecutionId); ok { - return x.NodeExecutionId - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*CreateDownloadLinkRequest) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*CreateDownloadLinkRequest_NodeExecutionId)(nil), - } -} - -// CreateDownloadLinkResponse defines the response for the generated links -type CreateDownloadLinkResponse struct { - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` // Deprecated: Do not use. - // ExpiresAt defines when will the signed URL expire. - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` // Deprecated: Do not use. - // New wrapper object containing the signed urls and expiration time - PreSignedUrls *PreSignedURLs `protobuf:"bytes,3,opt,name=pre_signed_urls,json=preSignedUrls,proto3" json:"pre_signed_urls,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *CreateDownloadLinkResponse) Reset() { *m = CreateDownloadLinkResponse{} } -func (m *CreateDownloadLinkResponse) String() string { return proto.CompactTextString(m) } -func (*CreateDownloadLinkResponse) ProtoMessage() {} -func (*CreateDownloadLinkResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{5} -} - -func (m *CreateDownloadLinkResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_CreateDownloadLinkResponse.Unmarshal(m, b) -} -func (m *CreateDownloadLinkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_CreateDownloadLinkResponse.Marshal(b, m, deterministic) -} -func (m *CreateDownloadLinkResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CreateDownloadLinkResponse.Merge(m, src) -} -func (m *CreateDownloadLinkResponse) XXX_Size() int { - return xxx_messageInfo_CreateDownloadLinkResponse.Size(m) -} -func (m *CreateDownloadLinkResponse) XXX_DiscardUnknown() { - xxx_messageInfo_CreateDownloadLinkResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_CreateDownloadLinkResponse proto.InternalMessageInfo - -// Deprecated: Do not use. -func (m *CreateDownloadLinkResponse) GetSignedUrl() []string { - if m != nil { - return m.SignedUrl - } - return nil -} - -// Deprecated: Do not use. -func (m *CreateDownloadLinkResponse) GetExpiresAt() *timestamp.Timestamp { - if m != nil { - return m.ExpiresAt - } - return nil -} - -func (m *CreateDownloadLinkResponse) GetPreSignedUrls() *PreSignedURLs { - if m != nil { - return m.PreSignedUrls - } - return nil -} - -// Wrapper object since the message is shared across this and the GetDataResponse -type PreSignedURLs struct { - // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...) - SignedUrl []string `protobuf:"bytes,1,rep,name=signed_url,json=signedUrl,proto3" json:"signed_url,omitempty"` - // ExpiresAt defines when will the signed URL expire. - ExpiresAt *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *PreSignedURLs) Reset() { *m = PreSignedURLs{} } -func (m *PreSignedURLs) String() string { return proto.CompactTextString(m) } -func (*PreSignedURLs) ProtoMessage() {} -func (*PreSignedURLs) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{6} -} - -func (m *PreSignedURLs) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_PreSignedURLs.Unmarshal(m, b) -} -func (m *PreSignedURLs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_PreSignedURLs.Marshal(b, m, deterministic) -} -func (m *PreSignedURLs) XXX_Merge(src proto.Message) { - xxx_messageInfo_PreSignedURLs.Merge(m, src) -} -func (m *PreSignedURLs) XXX_Size() int { - return xxx_messageInfo_PreSignedURLs.Size(m) -} -func (m *PreSignedURLs) XXX_DiscardUnknown() { - xxx_messageInfo_PreSignedURLs.DiscardUnknown(m) -} - -var xxx_messageInfo_PreSignedURLs proto.InternalMessageInfo - -func (m *PreSignedURLs) GetSignedUrl() []string { - if m != nil { - return m.SignedUrl - } - return nil -} - -func (m *PreSignedURLs) GetExpiresAt() *timestamp.Timestamp { - if m != nil { - return m.ExpiresAt - } - return nil -} - -// General request artifact to retrieve data from a Flyte artifact url. -type GetDataRequest struct { - // A unique identifier in the form of flyte:// that uniquely, for a given Flyte - // backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.). - // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) - // flyte://v1/proj/development/execid/n2/i (for node execution input) - // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) - FlyteUrl string `protobuf:"bytes,1,opt,name=flyte_url,json=flyteUrl,proto3" json:"flyte_url,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDataRequest) Reset() { *m = GetDataRequest{} } -func (m *GetDataRequest) String() string { return proto.CompactTextString(m) } -func (*GetDataRequest) ProtoMessage() {} -func (*GetDataRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{7} -} - -func (m *GetDataRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataRequest.Unmarshal(m, b) -} -func (m *GetDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataRequest.Marshal(b, m, deterministic) -} -func (m *GetDataRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataRequest.Merge(m, src) -} -func (m *GetDataRequest) XXX_Size() int { - return xxx_messageInfo_GetDataRequest.Size(m) -} -func (m *GetDataRequest) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDataRequest proto.InternalMessageInfo - -func (m *GetDataRequest) GetFlyteUrl() string { - if m != nil { - return m.FlyteUrl - } - return "" -} - -type GetDataResponse struct { - // Types that are valid to be assigned to Data: - // *GetDataResponse_LiteralMap - // *GetDataResponse_PreSignedUrls - // *GetDataResponse_Literal - Data isGetDataResponse_Data `protobuf_oneof:"data"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *GetDataResponse) Reset() { *m = GetDataResponse{} } -func (m *GetDataResponse) String() string { return proto.CompactTextString(m) } -func (*GetDataResponse) ProtoMessage() {} -func (*GetDataResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_bffb71366d75dab0, []int{8} -} - -func (m *GetDataResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_GetDataResponse.Unmarshal(m, b) -} -func (m *GetDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_GetDataResponse.Marshal(b, m, deterministic) -} -func (m *GetDataResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetDataResponse.Merge(m, src) -} -func (m *GetDataResponse) XXX_Size() int { - return xxx_messageInfo_GetDataResponse.Size(m) -} -func (m *GetDataResponse) XXX_DiscardUnknown() { - xxx_messageInfo_GetDataResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_GetDataResponse proto.InternalMessageInfo - -type isGetDataResponse_Data interface { - isGetDataResponse_Data() -} - -type GetDataResponse_LiteralMap struct { - LiteralMap *core.LiteralMap `protobuf:"bytes,1,opt,name=literal_map,json=literalMap,proto3,oneof"` -} - -type GetDataResponse_PreSignedUrls struct { - PreSignedUrls *PreSignedURLs `protobuf:"bytes,2,opt,name=pre_signed_urls,json=preSignedUrls,proto3,oneof"` -} - -type GetDataResponse_Literal struct { - Literal *core.Literal `protobuf:"bytes,3,opt,name=literal,proto3,oneof"` -} - -func (*GetDataResponse_LiteralMap) isGetDataResponse_Data() {} - -func (*GetDataResponse_PreSignedUrls) isGetDataResponse_Data() {} - -func (*GetDataResponse_Literal) isGetDataResponse_Data() {} - -func (m *GetDataResponse) GetData() isGetDataResponse_Data { - if m != nil { - return m.Data - } - return nil -} - -func (m *GetDataResponse) GetLiteralMap() *core.LiteralMap { - if x, ok := m.GetData().(*GetDataResponse_LiteralMap); ok { - return x.LiteralMap - } - return nil -} - -func (m *GetDataResponse) GetPreSignedUrls() *PreSignedURLs { - if x, ok := m.GetData().(*GetDataResponse_PreSignedUrls); ok { - return x.PreSignedUrls - } - return nil -} - -func (m *GetDataResponse) GetLiteral() *core.Literal { - if x, ok := m.GetData().(*GetDataResponse_Literal); ok { - return x.Literal - } - return nil -} - -// XXX_OneofWrappers is for the internal use of the proto package. -func (*GetDataResponse) XXX_OneofWrappers() []interface{} { - return []interface{}{ - (*GetDataResponse_LiteralMap)(nil), - (*GetDataResponse_PreSignedUrls)(nil), - (*GetDataResponse_Literal)(nil), - } -} - -func init() { - proto.RegisterEnum("flyteidl.service.ArtifactType", ArtifactType_name, ArtifactType_value) - proto.RegisterType((*CreateUploadLocationResponse)(nil), "flyteidl.service.CreateUploadLocationResponse") - proto.RegisterType((*CreateUploadLocationRequest)(nil), "flyteidl.service.CreateUploadLocationRequest") - proto.RegisterType((*CreateDownloadLocationRequest)(nil), "flyteidl.service.CreateDownloadLocationRequest") - proto.RegisterType((*CreateDownloadLocationResponse)(nil), "flyteidl.service.CreateDownloadLocationResponse") - proto.RegisterType((*CreateDownloadLinkRequest)(nil), "flyteidl.service.CreateDownloadLinkRequest") - proto.RegisterType((*CreateDownloadLinkResponse)(nil), "flyteidl.service.CreateDownloadLinkResponse") - proto.RegisterType((*PreSignedURLs)(nil), "flyteidl.service.PreSignedURLs") - proto.RegisterType((*GetDataRequest)(nil), "flyteidl.service.GetDataRequest") - proto.RegisterType((*GetDataResponse)(nil), "flyteidl.service.GetDataResponse") -} - -func init() { proto.RegisterFile("flyteidl/service/dataproxy.proto", fileDescriptor_bffb71366d75dab0) } - -var fileDescriptor_bffb71366d75dab0 = []byte{ - // 910 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x6f, 0xe3, 0x44, - 0x14, 0xef, 0xa4, 0x25, 0x6d, 0x5e, 0xd3, 0x3f, 0x8c, 0x56, 0x25, 0xeb, 0x76, 0xdb, 0xac, 0x17, - 0xa1, 0x52, 0xa8, 0x0d, 0x45, 0x2b, 0xc1, 0x8a, 0x15, 0x6a, 0x93, 0xec, 0x36, 0xa2, 0x5b, 0x55, - 0xde, 0xf4, 0x00, 0x17, 0x6b, 0x6a, 0x4f, 0xc2, 0xb0, 0xce, 0x8c, 0x19, 0x4f, 0x4a, 0x2b, 0x21, - 0x0e, 0x9c, 0xb8, 0x73, 0xe0, 0xc0, 0x85, 0x13, 0x5f, 0x85, 0x0f, 0x80, 0xc4, 0x07, 0x40, 0xdc, - 0xf8, 0x06, 0x9c, 0x90, 0xed, 0xb1, 0x13, 0x27, 0x69, 0x37, 0x8b, 0xf6, 0x96, 0x37, 0xef, 0xe7, - 0xf9, 0xfd, 0xde, 0x6f, 0xde, 0xbc, 0x09, 0xd4, 0xbb, 0xc1, 0xb5, 0xa2, 0xcc, 0x0f, 0xec, 0x88, - 0xca, 0x4b, 0xe6, 0x51, 0xdb, 0x27, 0x8a, 0x84, 0x52, 0x5c, 0x5d, 0x5b, 0xa1, 0x14, 0x4a, 0xe0, - 0xf5, 0x0c, 0x61, 0x69, 0x84, 0xb1, 0xd5, 0x13, 0xa2, 0x17, 0x50, 0x9b, 0x84, 0xcc, 0x26, 0x9c, - 0x0b, 0x45, 0x14, 0x13, 0x3c, 0x4a, 0xf1, 0xc6, 0xb6, 0xce, 0x26, 0xd1, 0xc5, 0xa0, 0x6b, 0xfb, - 0x03, 0x99, 0x00, 0x74, 0x7e, 0x67, 0x3c, 0xaf, 0x58, 0x9f, 0x46, 0x8a, 0xf4, 0xc3, 0x6c, 0x83, - 0x5c, 0x92, 0x27, 0x24, 0xb5, 0x99, 0x4f, 0xb9, 0x62, 0x5d, 0x46, 0xa5, 0xce, 0x6f, 0x15, 0xf3, - 0x01, 0x53, 0x54, 0x92, 0x40, 0xd3, 0x9b, 0x3f, 0x23, 0xd8, 0x6a, 0x48, 0x4a, 0x14, 0x3d, 0x0f, - 0x03, 0x41, 0xfc, 0x13, 0xe1, 0x25, 0xec, 0x0e, 0x8d, 0x42, 0xc1, 0x23, 0x8a, 0xef, 0x01, 0x44, - 0xac, 0xc7, 0xa9, 0xef, 0x0e, 0x64, 0x50, 0x43, 0x75, 0xb4, 0x5b, 0x71, 0x2a, 0xe9, 0xca, 0xb9, - 0x0c, 0xe2, 0x34, 0x27, 0x8a, 0x5d, 0xd2, 0x24, 0x5d, 0x4a, 0xd3, 0xe9, 0x4a, 0x9c, 0xfe, 0x04, - 0x80, 0x5e, 0x85, 0x4c, 0xd2, 0xc8, 0x25, 0xaa, 0x36, 0x5f, 0x47, 0xbb, 0xcb, 0x07, 0x86, 0x95, - 0x96, 0x64, 0x65, 0x25, 0x59, 0x9d, 0xac, 0x24, 0xa7, 0xa2, 0xd1, 0x87, 0xca, 0xfc, 0x07, 0xc1, - 0xe6, 0x74, 0x65, 0xdf, 0x0c, 0x68, 0xa4, 0x70, 0x0d, 0x16, 0x43, 0x29, 0xbe, 0xa6, 0x9e, 0xd2, - 0xaa, 0xb2, 0x10, 0x6f, 0x40, 0xd9, 0x17, 0x7d, 0xc2, 0xb8, 0xd6, 0xa3, 0x23, 0x6c, 0xc0, 0x52, - 0x97, 0x05, 0x94, 0x93, 0x3e, 0x4d, 0xa4, 0x54, 0x9c, 0x3c, 0xc6, 0x1f, 0x0f, 0x85, 0x32, 0x5e, - 0x5b, 0x48, 0x84, 0xde, 0x9d, 0x10, 0xda, 0xd4, 0x67, 0x93, 0xeb, 0x6c, 0x73, 0xbc, 0x03, 0xcb, - 0x9e, 0xe0, 0x8a, 0x72, 0xe5, 0xf6, 0xfd, 0x87, 0xb5, 0x37, 0xea, 0x68, 0xb7, 0xea, 0x80, 0x5e, - 0x7a, 0xe6, 0x3f, 0xc4, 0x0f, 0x60, 0x25, 0xa3, 0x71, 0xa5, 0x10, 0xaa, 0x56, 0x4e, 0xb8, 0xab, - 0xd9, 0xa2, 0x23, 0x84, 0x32, 0xbf, 0x83, 0x7b, 0x69, 0xb1, 0x4d, 0xf1, 0x2d, 0x9f, 0x56, 0x6e, - 0xd1, 0x68, 0x34, 0x6e, 0x74, 0x51, 0x7f, 0x69, 0x76, 0xfd, 0x8f, 0x4a, 0x35, 0x64, 0x7e, 0x0f, - 0xdb, 0x37, 0xb1, 0xcf, 0xd6, 0x06, 0xc5, 0x73, 0x2e, 0xbd, 0xc2, 0x39, 0x27, 0xfc, 0xff, 0x22, - 0xb8, 0x3b, 0x26, 0x80, 0xf1, 0x17, 0x59, 0xe9, 0x0d, 0x58, 0x21, 0x52, 0xb1, 0x2e, 0xf1, 0x94, - 0xab, 0xae, 0x43, 0x9a, 0xd0, 0xaf, 0x1e, 0x6c, 0x5b, 0xe3, 0x57, 0xcd, 0x3a, 0xd4, 0xb0, 0xce, - 0x75, 0x48, 0x9d, 0x2a, 0x19, 0x89, 0xfe, 0xbf, 0x41, 0xb8, 0x03, 0x6f, 0x72, 0xe1, 0x53, 0x97, - 0x5e, 0x51, 0x6f, 0x10, 0x27, 0x5d, 0xe6, 0xeb, 0x56, 0x7e, 0x67, 0x28, 0x21, 0xbe, 0x5c, 0xd6, - 0xa9, 0xf0, 0x69, 0x2b, 0x83, 0xb5, 0xf3, 0x9b, 0x78, 0x3c, 0xe7, 0xac, 0xf1, 0x62, 0xea, 0x68, - 0x09, 0xca, 0x91, 0x18, 0x48, 0x8f, 0x9a, 0xbf, 0x23, 0x30, 0xa6, 0x15, 0xaf, 0x9d, 0xbf, 0x3f, - 0xe6, 0xfc, 0xfc, 0x6e, 0xe5, 0xa8, 0x54, 0x43, 0xa3, 0xee, 0x3f, 0x7e, 0x35, 0xf7, 0xd3, 0xcf, - 0xf3, 0x13, 0xc0, 0x4f, 0x61, 0x2d, 0x94, 0xd4, 0x1d, 0xb2, 0x44, 0xba, 0xbc, 0x9d, 0x49, 0x87, - 0xcf, 0x24, 0x7d, 0x9e, 0xf2, 0x3a, 0x27, 0x91, 0xb3, 0x12, 0xe6, 0xa1, 0x0c, 0x22, 0x93, 0xc1, - 0x4a, 0x21, 0x3f, 0xd1, 0x35, 0xf3, 0xaf, 0xab, 0x6b, 0xcc, 0x7d, 0x58, 0x7d, 0x4a, 0x55, 0x93, - 0x28, 0x92, 0x75, 0xc9, 0x26, 0x54, 0x12, 0xb5, 0x23, 0x0d, 0xba, 0x94, 0x2c, 0x9c, 0xcb, 0xc0, - 0xfc, 0x13, 0xc1, 0x5a, 0x8e, 0xd7, 0xc6, 0x7e, 0x0a, 0xcb, 0x7a, 0x18, 0xba, 0x7d, 0x12, 0x26, - 0x9f, 0xc4, 0x2d, 0x51, 0x3c, 0xd1, 0x93, 0x14, 0xf1, 0x8c, 0x84, 0xc7, 0x73, 0x0e, 0x04, 0x79, - 0x84, 0xdb, 0x93, 0xa6, 0x95, 0x66, 0x32, 0xed, 0x78, 0x6e, 0xcc, 0x36, 0x7c, 0x00, 0x8b, 0x7a, - 0x63, 0xed, 0xfb, 0xc6, 0x74, 0x11, 0xc7, 0x73, 0x4e, 0x06, 0x3c, 0x2a, 0xc3, 0x42, 0xfc, 0xf2, - 0xec, 0x35, 0xa0, 0x3a, 0xda, 0xf4, 0x78, 0x13, 0xde, 0x3a, 0x74, 0x3a, 0xed, 0x27, 0x87, 0x8d, - 0x8e, 0xdb, 0xf9, 0xe2, 0xac, 0xe5, 0x9e, 0x9f, 0x36, 0x5b, 0x4f, 0xda, 0xa7, 0xad, 0xe6, 0xfa, - 0x1c, 0xde, 0x00, 0x5c, 0x4c, 0x36, 0x5b, 0x8d, 0xcf, 0xd7, 0xd1, 0xc1, 0x5f, 0x0b, 0xb0, 0x1e, - 0x5b, 0x73, 0x16, 0xbf, 0x63, 0xcf, 0x53, 0xd1, 0xf8, 0x57, 0x04, 0x77, 0xa6, 0xcd, 0x5f, 0xbc, - 0x3f, 0x59, 0xe0, 0x2d, 0x73, 0xda, 0xb0, 0x66, 0x85, 0xa7, 0xc7, 0x62, 0xbe, 0xfb, 0xc3, 0x1f, - 0x7f, 0xff, 0x54, 0x7a, 0x60, 0x6e, 0x27, 0x0f, 0xe6, 0xe5, 0x87, 0xc3, 0x17, 0xd6, 0xce, 0xa7, - 0xc0, 0x40, 0xf2, 0x47, 0x68, 0x0f, 0xff, 0x86, 0x60, 0x63, 0xfa, 0xdc, 0xc2, 0xf6, 0x4d, 0xac, - 0x37, 0xcc, 0x57, 0xe3, 0x83, 0xd9, 0x3f, 0x28, 0x08, 0xad, 0xe3, 0x97, 0x08, 0xfd, 0xb1, 0x84, - 0xf0, 0x2f, 0x08, 0xf0, 0xe4, 0x15, 0xc7, 0xef, 0xbd, 0x94, 0x73, 0x38, 0x05, 0x8d, 0xf7, 0x67, - 0x03, 0x6b, 0x71, 0x7b, 0x89, 0xb8, 0xb7, 0xcd, 0x9d, 0x5b, 0xc4, 0x05, 0x8c, 0xbf, 0x88, 0x6d, - 0xf4, 0x61, 0x51, 0xdf, 0x0d, 0x5c, 0x9f, 0x24, 0x29, 0x5e, 0x33, 0xe3, 0xfe, 0x2d, 0x08, 0xcd, - 0x7d, 0x27, 0xe1, 0x5e, 0xc5, 0xd5, 0x51, 0xee, 0xa3, 0xcf, 0xbe, 0x7c, 0xdc, 0x63, 0xea, 0xab, - 0xc1, 0x85, 0xe5, 0x89, 0xbe, 0x9d, 0x6c, 0x22, 0x64, 0x2f, 0xfd, 0x61, 0xe7, 0xff, 0x51, 0x7a, - 0x94, 0xdb, 0xe1, 0xc5, 0x7e, 0x4f, 0xd8, 0xe3, 0xff, 0xb4, 0x2e, 0xca, 0xc9, 0x44, 0xf8, 0xe8, - 0xbf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xe6, 0x5e, 0xc8, 0x56, 0x84, 0x09, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// DataProxyServiceClient is the client API for DataProxyService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type DataProxyServiceClient interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) - GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) -} - -type dataProxyServiceClient struct { - cc *grpc.ClientConn -} - -func NewDataProxyServiceClient(cc *grpc.ClientConn) DataProxyServiceClient { - return &dataProxyServiceClient{cc} -} - -func (c *dataProxyServiceClient) CreateUploadLocation(ctx context.Context, in *CreateUploadLocationRequest, opts ...grpc.CallOption) (*CreateUploadLocationResponse, error) { - out := new(CreateUploadLocationResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateUploadLocation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *dataProxyServiceClient) CreateDownloadLocation(ctx context.Context, in *CreateDownloadLocationRequest, opts ...grpc.CallOption) (*CreateDownloadLocationResponse, error) { - out := new(CreateDownloadLocationResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateDownloadLocation", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataProxyServiceClient) CreateDownloadLink(ctx context.Context, in *CreateDownloadLinkRequest, opts ...grpc.CallOption) (*CreateDownloadLinkResponse, error) { - out := new(CreateDownloadLinkResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/CreateDownloadLink", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *dataProxyServiceClient) GetData(ctx context.Context, in *GetDataRequest, opts ...grpc.CallOption) (*GetDataResponse, error) { - out := new(GetDataResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.DataProxyService/GetData", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// DataProxyServiceServer is the server API for DataProxyService service. -type DataProxyServiceServer interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(context.Context, *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLocation(context.Context, *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(context.Context, *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) - GetData(context.Context, *GetDataRequest) (*GetDataResponse, error) -} - -// UnimplementedDataProxyServiceServer can be embedded to have forward compatible implementations. -type UnimplementedDataProxyServiceServer struct { -} - -func (*UnimplementedDataProxyServiceServer) CreateUploadLocation(ctx context.Context, req *CreateUploadLocationRequest) (*CreateUploadLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateUploadLocation not implemented") -} -func (*UnimplementedDataProxyServiceServer) CreateDownloadLocation(ctx context.Context, req *CreateDownloadLocationRequest) (*CreateDownloadLocationResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLocation not implemented") -} -func (*UnimplementedDataProxyServiceServer) CreateDownloadLink(ctx context.Context, req *CreateDownloadLinkRequest) (*CreateDownloadLinkResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateDownloadLink not implemented") -} -func (*UnimplementedDataProxyServiceServer) GetData(ctx context.Context, req *GetDataRequest) (*GetDataResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetData not implemented") -} - -func RegisterDataProxyServiceServer(s *grpc.Server, srv DataProxyServiceServer) { - s.RegisterService(&_DataProxyService_serviceDesc, srv) -} - -func _DataProxyService_CreateUploadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateUploadLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.DataProxyService/CreateUploadLocation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateUploadLocation(ctx, req.(*CreateUploadLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_CreateDownloadLocation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDownloadLocationRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.DataProxyService/CreateDownloadLocation", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateDownloadLocation(ctx, req.(*CreateDownloadLocationRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_CreateDownloadLink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(CreateDownloadLinkRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.DataProxyService/CreateDownloadLink", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).CreateDownloadLink(ctx, req.(*CreateDownloadLinkRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DataProxyService_GetData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDataRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DataProxyServiceServer).GetData(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.DataProxyService/GetData", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DataProxyServiceServer).GetData(ctx, req.(*GetDataRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _DataProxyService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.DataProxyService", - HandlerType: (*DataProxyServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateUploadLocation", - Handler: _DataProxyService_CreateUploadLocation_Handler, - }, - { - MethodName: "CreateDownloadLocation", - Handler: _DataProxyService_CreateDownloadLocation_Handler, - }, - { - MethodName: "CreateDownloadLink", - Handler: _DataProxyService_CreateDownloadLink_Handler, - }, - { - MethodName: "GetData", - Handler: _DataProxyService_GetData_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/dataproxy.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go deleted file mode 100644 index c11d941745..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.pb.gw.go +++ /dev/null @@ -1,244 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/dataproxy.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_DataProxyService_CreateUploadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateUploadLocationRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateUploadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_DataProxyService_CreateDownloadLocation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_DataProxyService_CreateDownloadLocation_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateDownloadLocationRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_CreateDownloadLocation_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateDownloadLocation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_DataProxyService_CreateDownloadLink_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq CreateDownloadLinkRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.CreateDownloadLink(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -var ( - filter_DataProxyService_GetData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)} -) - -func request_DataProxyService_GetData_0(ctx context.Context, marshaler runtime.Marshaler, client DataProxyServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq GetDataRequest - var metadata runtime.ServerMetadata - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_DataProxyService_GetData_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.GetData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterDataProxyServiceHandlerFromEndpoint is same as RegisterDataProxyServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterDataProxyServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterDataProxyServiceHandler(ctx, mux, conn) -} - -// RegisterDataProxyServiceHandler registers the http handlers for service DataProxyService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterDataProxyServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterDataProxyServiceHandlerClient(ctx, mux, NewDataProxyServiceClient(conn)) -} - -// RegisterDataProxyServiceHandlerClient registers the http handlers for service DataProxyService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DataProxyServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DataProxyServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "DataProxyServiceClient" to call the correct interceptors. -func RegisterDataProxyServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DataProxyServiceClient) error { - - mux.Handle("POST", pattern_DataProxyService_CreateUploadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateUploadLocation_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateUploadLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_CreateDownloadLocation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateDownloadLocation_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLocation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_DataProxyService_CreateDownloadLink_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_CreateDownloadLink_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_CreateDownloadLink_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("GET", pattern_DataProxyService_GetData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DataProxyService_GetData_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_DataProxyService_GetData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_DataProxyService_CreateUploadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) - - pattern_DataProxyService_CreateDownloadLocation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_urn"}, "")) - - pattern_DataProxyService_CreateDownloadLink_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"api", "v1", "dataproxy", "artifact_link"}, "")) - - pattern_DataProxyService_GetData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "data"}, "")) -) - -var ( - forward_DataProxyService_CreateUploadLocation_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_CreateDownloadLocation_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_CreateDownloadLink_0 = runtime.ForwardResponseMessage - - forward_DataProxyService_GetData_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json deleted file mode 100644 index 0fd08544b3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/dataproxy.swagger.json +++ /dev/null @@ -1,801 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/dataproxy.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/data": { - "get": { - "operationId": "GetData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "flyte_url", - "description": "A unique identifier in the form of flyte://\u003csomething\u003e that uniquely, for a given Flyte\nbackend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).\ne.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)\n flyte://v1/proj/development/execid/n2/i (for node execution input)\n flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node).", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "DataProxyService" - ] - } - }, - "/api/v1/dataproxy/artifact_link": { - "post": { - "summary": "CreateDownloadLocation creates a signed url to download artifacts.", - "operationId": "CreateDownloadLink", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLinkResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLinkRequest" - } - } - ], - "tags": [ - "DataProxyService" - ] - } - }, - "/api/v1/dataproxy/artifact_urn": { - "get": { - "summary": "CreateDownloadLocation creates a signed url to download artifacts.", - "operationId": "CreateDownloadLocation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateDownloadLocationResponse" - } - } - }, - "parameters": [ - { - "name": "native_url", - "description": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar).", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "expires_in", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "DataProxyService" - ] - }, - "post": { - "summary": "CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain.", - "operationId": "CreateUploadLocation", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceCreateUploadLocationResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/serviceCreateUploadLocationRequest" - } - } - ], - "tags": [ - "DataProxyService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreNodeExecutionIdentifier": { - "type": "object", - "properties": { - "node_id": { - "type": "string" - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier" - } - }, - "description": "Encapsulation of fields that identify a Flyte node execution entity." - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - }, - "serviceArtifactType": { - "type": "string", - "enum": [ - "ARTIFACT_TYPE_UNDEFINED", - "ARTIFACT_TYPE_DECK" - ], - "default": "ARTIFACT_TYPE_UNDEFINED", - "description": "- ARTIFACT_TYPE_UNDEFINED: ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.\n - ARTIFACT_TYPE_DECK: ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan\nfinishes executing.", - "title": "ArtifactType" - }, - "serviceCreateDownloadLinkRequest": { - "type": "object", - "properties": { - "artifact_type": { - "$ref": "#/definitions/serviceArtifactType", - "description": "ArtifactType of the artifact requested." - }, - "expires_in": { - "type": "string", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." - }, - "node_execution_id": { - "$ref": "#/definitions/coreNodeExecutionIdentifier", - "description": "NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the\nmost recent attempt of the task." - } - }, - "title": "CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)" - }, - "serviceCreateDownloadLinkResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "array", - "items": { - "type": "string" - }, - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expire." - }, - "pre_signed_urls": { - "$ref": "#/definitions/servicePreSignedURLs", - "title": "New wrapper object containing the signed urls and expiration time" - } - }, - "title": "CreateDownloadLinkResponse defines the response for the generated links" - }, - "serviceCreateDownloadLocationResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "string", - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expires." - } - } - }, - "serviceCreateUploadLocationRequest": { - "type": "object", - "properties": { - "project": { - "type": "string", - "title": "Project to create the upload location for\n+required" - }, - "domain": { - "type": "string", - "title": "Domain to create the upload location for.\n+required" - }, - "filename": { - "type": "string", - "description": "Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.\n+optional. By default, the service will generate a consistent name based on the provided parameters." - }, - "expires_in": { - "type": "string", - "description": "ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this\nexceeds the platform allowed max.\n+optional. The default value comes from a global config." - }, - "content_md5": { - "type": "string", - "format": "byte", - "title": "ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the\ngenerated path.\n+required" - }, - "filename_root": { - "type": "string", - "title": "If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included\nthis makes the upload location deterministic. The native url will still be prefixed by the upload location prefix\nin data proxy config. This option is useful when uploading multiple files.\n+optional" - } - }, - "description": "CreateUploadLocationRequest specified request for the CreateUploadLocation API.\nThe implementation in data proxy service will create the s3 location with some server side configured prefixes,\nand then:\n - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR\n - project/domain/filename_root (if present)/filename (if present)." - }, - "serviceCreateUploadLocationResponse": { - "type": "object", - "properties": { - "signed_url": { - "type": "string", - "title": "SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "native_url": { - "type": "string", - "title": "NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expires." - } - } - }, - "serviceGetDataResponse": { - "type": "object", - "properties": { - "literal_map": { - "$ref": "#/definitions/coreLiteralMap", - "title": "literal map data will be returned" - }, - "pre_signed_urls": { - "$ref": "#/definitions/servicePreSignedURLs", - "title": "Flyte deck html will be returned as a signed url users can download" - }, - "literal": { - "$ref": "#/definitions/coreLiteral", - "description": "Single literal will be returned. This is returned when the user/url requests a specific output or input\nby name. See the o3 example above." - } - } - }, - "servicePreSignedURLs": { - "type": "object", - "properties": { - "signed_url": { - "type": "array", - "items": { - "type": "string" - }, - "title": "SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)" - }, - "expires_at": { - "type": "string", - "format": "date-time", - "description": "ExpiresAt defines when will the signed URL expire." - } - }, - "title": "Wrapper object since the message is shared across this and the GetDataResponse" - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go deleted file mode 100644 index ab64516b19..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.pb.go +++ /dev/null @@ -1,570 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/external_plugin_service.proto - -package service - -import ( - context "context" - fmt "fmt" - core "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" - proto "github.com/golang/protobuf/proto" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -// The state of the execution is used to control its visibility in the UI/CLI. -type State int32 // Deprecated: Do not use. -const ( - State_RETRYABLE_FAILURE State = 0 - State_PERMANENT_FAILURE State = 1 - State_PENDING State = 2 - State_RUNNING State = 3 - State_SUCCEEDED State = 4 -) - -var State_name = map[int32]string{ - 0: "RETRYABLE_FAILURE", - 1: "PERMANENT_FAILURE", - 2: "PENDING", - 3: "RUNNING", - 4: "SUCCEEDED", -} - -var State_value = map[string]int32{ - "RETRYABLE_FAILURE": 0, - "PERMANENT_FAILURE": 1, - "PENDING": 2, - "RUNNING": 3, - "SUCCEEDED": 4, -} - -func (x State) String() string { - return proto.EnumName(State_name, int32(x)) -} - -func (State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{0} -} - -// Represents a request structure to create task. -// -// Deprecated: Do not use. -type TaskCreateRequest struct { - // The inputs required to start the execution. All required inputs must be - // included in this map. If not required and not provided, defaults apply. - // +optional - Inputs *core.LiteralMap `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"` - // Template of the task that encapsulates all the metadata of the task. - Template *core.TaskTemplate `protobuf:"bytes,2,opt,name=template,proto3" json:"template,omitempty"` - // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - OutputPrefix string `protobuf:"bytes,3,opt,name=output_prefix,json=outputPrefix,proto3" json:"output_prefix,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskCreateRequest) Reset() { *m = TaskCreateRequest{} } -func (m *TaskCreateRequest) String() string { return proto.CompactTextString(m) } -func (*TaskCreateRequest) ProtoMessage() {} -func (*TaskCreateRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{0} -} - -func (m *TaskCreateRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskCreateRequest.Unmarshal(m, b) -} -func (m *TaskCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskCreateRequest.Marshal(b, m, deterministic) -} -func (m *TaskCreateRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskCreateRequest.Merge(m, src) -} -func (m *TaskCreateRequest) XXX_Size() int { - return xxx_messageInfo_TaskCreateRequest.Size(m) -} -func (m *TaskCreateRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskCreateRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskCreateRequest proto.InternalMessageInfo - -func (m *TaskCreateRequest) GetInputs() *core.LiteralMap { - if m != nil { - return m.Inputs - } - return nil -} - -func (m *TaskCreateRequest) GetTemplate() *core.TaskTemplate { - if m != nil { - return m.Template - } - return nil -} - -func (m *TaskCreateRequest) GetOutputPrefix() string { - if m != nil { - return m.OutputPrefix - } - return "" -} - -// Represents a create response structure. -// -// Deprecated: Do not use. -type TaskCreateResponse struct { - JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskCreateResponse) Reset() { *m = TaskCreateResponse{} } -func (m *TaskCreateResponse) String() string { return proto.CompactTextString(m) } -func (*TaskCreateResponse) ProtoMessage() {} -func (*TaskCreateResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{1} -} - -func (m *TaskCreateResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskCreateResponse.Unmarshal(m, b) -} -func (m *TaskCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskCreateResponse.Marshal(b, m, deterministic) -} -func (m *TaskCreateResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskCreateResponse.Merge(m, src) -} -func (m *TaskCreateResponse) XXX_Size() int { - return xxx_messageInfo_TaskCreateResponse.Size(m) -} -func (m *TaskCreateResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskCreateResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskCreateResponse proto.InternalMessageInfo - -func (m *TaskCreateResponse) GetJobId() string { - if m != nil { - return m.JobId - } - return "" -} - -// A message used to fetch a job state from backend plugin server. -// -// Deprecated: Do not use. -type TaskGetRequest struct { - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // The unique id identifying the job. - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskGetRequest) Reset() { *m = TaskGetRequest{} } -func (m *TaskGetRequest) String() string { return proto.CompactTextString(m) } -func (*TaskGetRequest) ProtoMessage() {} -func (*TaskGetRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{2} -} - -func (m *TaskGetRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskGetRequest.Unmarshal(m, b) -} -func (m *TaskGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskGetRequest.Marshal(b, m, deterministic) -} -func (m *TaskGetRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskGetRequest.Merge(m, src) -} -func (m *TaskGetRequest) XXX_Size() int { - return xxx_messageInfo_TaskGetRequest.Size(m) -} -func (m *TaskGetRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskGetRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskGetRequest proto.InternalMessageInfo - -func (m *TaskGetRequest) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *TaskGetRequest) GetJobId() string { - if m != nil { - return m.JobId - } - return "" -} - -// Response to get an individual task state. -// -// Deprecated: Do not use. -type TaskGetResponse struct { - // The state of the execution is used to control its visibility in the UI/CLI. - State State `protobuf:"varint,1,opt,name=state,proto3,enum=flyteidl.service.State" json:"state,omitempty"` - // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a - // Structured dataset pointing to the query result table. - // +optional - Outputs *core.LiteralMap `protobuf:"bytes,2,opt,name=outputs,proto3" json:"outputs,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskGetResponse) Reset() { *m = TaskGetResponse{} } -func (m *TaskGetResponse) String() string { return proto.CompactTextString(m) } -func (*TaskGetResponse) ProtoMessage() {} -func (*TaskGetResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{3} -} - -func (m *TaskGetResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskGetResponse.Unmarshal(m, b) -} -func (m *TaskGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskGetResponse.Marshal(b, m, deterministic) -} -func (m *TaskGetResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskGetResponse.Merge(m, src) -} -func (m *TaskGetResponse) XXX_Size() int { - return xxx_messageInfo_TaskGetResponse.Size(m) -} -func (m *TaskGetResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskGetResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskGetResponse proto.InternalMessageInfo - -func (m *TaskGetResponse) GetState() State { - if m != nil { - return m.State - } - return State_RETRYABLE_FAILURE -} - -func (m *TaskGetResponse) GetOutputs() *core.LiteralMap { - if m != nil { - return m.Outputs - } - return nil -} - -// A message used to delete a task. -// -// Deprecated: Do not use. -type TaskDeleteRequest struct { - // A predefined yet extensible Task type identifier. - TaskType string `protobuf:"bytes,1,opt,name=task_type,json=taskType,proto3" json:"task_type,omitempty"` - // The unique id identifying the job. - JobId string `protobuf:"bytes,2,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskDeleteRequest) Reset() { *m = TaskDeleteRequest{} } -func (m *TaskDeleteRequest) String() string { return proto.CompactTextString(m) } -func (*TaskDeleteRequest) ProtoMessage() {} -func (*TaskDeleteRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{4} -} - -func (m *TaskDeleteRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskDeleteRequest.Unmarshal(m, b) -} -func (m *TaskDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskDeleteRequest.Marshal(b, m, deterministic) -} -func (m *TaskDeleteRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskDeleteRequest.Merge(m, src) -} -func (m *TaskDeleteRequest) XXX_Size() int { - return xxx_messageInfo_TaskDeleteRequest.Size(m) -} -func (m *TaskDeleteRequest) XXX_DiscardUnknown() { - xxx_messageInfo_TaskDeleteRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskDeleteRequest proto.InternalMessageInfo - -func (m *TaskDeleteRequest) GetTaskType() string { - if m != nil { - return m.TaskType - } - return "" -} - -func (m *TaskDeleteRequest) GetJobId() string { - if m != nil { - return m.JobId - } - return "" -} - -// Response to delete a task. -// -// Deprecated: Do not use. -type TaskDeleteResponse struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *TaskDeleteResponse) Reset() { *m = TaskDeleteResponse{} } -func (m *TaskDeleteResponse) String() string { return proto.CompactTextString(m) } -func (*TaskDeleteResponse) ProtoMessage() {} -func (*TaskDeleteResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_74cbdb08eef5b1d1, []int{5} -} - -func (m *TaskDeleteResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_TaskDeleteResponse.Unmarshal(m, b) -} -func (m *TaskDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_TaskDeleteResponse.Marshal(b, m, deterministic) -} -func (m *TaskDeleteResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskDeleteResponse.Merge(m, src) -} -func (m *TaskDeleteResponse) XXX_Size() int { - return xxx_messageInfo_TaskDeleteResponse.Size(m) -} -func (m *TaskDeleteResponse) XXX_DiscardUnknown() { - xxx_messageInfo_TaskDeleteResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_TaskDeleteResponse proto.InternalMessageInfo - -func init() { - proto.RegisterEnum("flyteidl.service.State", State_name, State_value) - proto.RegisterType((*TaskCreateRequest)(nil), "flyteidl.service.TaskCreateRequest") - proto.RegisterType((*TaskCreateResponse)(nil), "flyteidl.service.TaskCreateResponse") - proto.RegisterType((*TaskGetRequest)(nil), "flyteidl.service.TaskGetRequest") - proto.RegisterType((*TaskGetResponse)(nil), "flyteidl.service.TaskGetResponse") - proto.RegisterType((*TaskDeleteRequest)(nil), "flyteidl.service.TaskDeleteRequest") - proto.RegisterType((*TaskDeleteResponse)(nil), "flyteidl.service.TaskDeleteResponse") -} - -func init() { - proto.RegisterFile("flyteidl/service/external_plugin_service.proto", fileDescriptor_74cbdb08eef5b1d1) -} - -var fileDescriptor_74cbdb08eef5b1d1 = []byte{ - // 544 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x51, 0x6f, 0xd2, 0x50, - 0x14, 0xb6, 0x9d, 0x1b, 0xe3, 0xcc, 0x4d, 0x76, 0x13, 0x62, 0xc7, 0x34, 0x41, 0xe6, 0xc3, 0x62, - 0xb2, 0x36, 0xb2, 0x07, 0x13, 0x13, 0x63, 0x18, 0x54, 0x24, 0xb2, 0x86, 0x14, 0x78, 0xd0, 0x2c, - 0x69, 0x5a, 0x38, 0x60, 0xb7, 0xae, 0xbd, 0xb6, 0xb7, 0x66, 0xfc, 0x03, 0x7f, 0xca, 0x7e, 0xa6, - 0xb9, 0xf7, 0xb6, 0x1d, 0x30, 0xe5, 0xc1, 0x37, 0x7a, 0xce, 0x77, 0xbe, 0x73, 0xbe, 0xef, 0x9c, - 0x0b, 0xe8, 0xb3, 0x60, 0xc1, 0xd0, 0x9f, 0x06, 0x46, 0x82, 0xf1, 0x2f, 0x7f, 0x82, 0x06, 0xde, - 0x31, 0x8c, 0x43, 0x37, 0x70, 0x68, 0x90, 0xce, 0xfd, 0xd0, 0xc9, 0xe2, 0x3a, 0x8d, 0x23, 0x16, - 0x91, 0x4a, 0x8e, 0xd7, 0xb3, 0x78, 0xed, 0x65, 0xc1, 0x30, 0x89, 0x62, 0x34, 0x02, 0x9f, 0x61, - 0xec, 0x06, 0x89, 0xc4, 0xd7, 0x8e, 0x56, 0xb3, 0xcc, 0x4d, 0x6e, 0xf2, 0xd4, 0xab, 0xd5, 0x94, - 0x1f, 0x32, 0x8c, 0x67, 0x6e, 0xde, 0xa9, 0x71, 0xaf, 0xc0, 0xe1, 0xc8, 0x4d, 0x6e, 0xda, 0x31, - 0xba, 0x0c, 0x6d, 0xfc, 0x99, 0x62, 0xc2, 0xc8, 0x3b, 0xd8, 0xf1, 0x43, 0x9a, 0xb2, 0x44, 0x53, - 0xea, 0xca, 0xe9, 0x5e, 0xf3, 0xa8, 0x10, 0xa0, 0x73, 0x16, 0xbd, 0x2f, 0xdb, 0x5f, 0xba, 0xd4, - 0xce, 0x80, 0xe4, 0x3d, 0xec, 0x32, 0xbc, 0xa5, 0x81, 0xcb, 0x50, 0x53, 0x45, 0xd1, 0xf1, 0x5a, - 0x11, 0x6f, 0x33, 0xca, 0x20, 0x76, 0x01, 0x26, 0x27, 0xb0, 0x1f, 0xa5, 0x8c, 0xa6, 0xcc, 0xa1, - 0x31, 0xce, 0xfc, 0x3b, 0x6d, 0xab, 0xae, 0x9c, 0x96, 0xed, 0x67, 0x32, 0x38, 0x10, 0xb1, 0x0f, - 0xaa, 0xa6, 0x34, 0x0c, 0x20, 0xcb, 0x93, 0x26, 0x34, 0x0a, 0x13, 0x24, 0x55, 0xd8, 0xb9, 0x8e, - 0x3c, 0xc7, 0x9f, 0x8a, 0x51, 0xcb, 0xf6, 0xf6, 0x75, 0xe4, 0xf5, 0xa6, 0xa2, 0xe0, 0x0b, 0x1c, - 0xf0, 0x82, 0x2e, 0xb2, 0x5c, 0xd7, 0x31, 0x94, 0xb9, 0x37, 0x0e, 0x5b, 0x50, 0xcc, 0xf0, 0xbb, - 0x3c, 0x30, 0x5a, 0xd0, 0x65, 0x26, 0x75, 0x9d, 0x69, 0x01, 0xcf, 0x0b, 0xa6, 0xac, 0xef, 0x19, - 0x6c, 0x27, 0x8c, 0x8b, 0xe5, 0x34, 0x07, 0xcd, 0x17, 0xfa, 0xfa, 0xca, 0xf4, 0x21, 0x4f, 0xdb, - 0x12, 0x45, 0xce, 0xa1, 0x24, 0x05, 0x25, 0x99, 0x3b, 0x1b, 0x2c, 0xcd, 0x91, 0xa2, 0xf5, 0x57, - 0xb9, 0x9f, 0x0e, 0x06, 0xf8, 0xb0, 0x9f, 0xff, 0xd5, 0xa1, 0x49, 0x0b, 0x73, 0x32, 0x29, 0x85, - 0x67, 0xde, 0x7a, 0xb0, 0x2d, 0xe6, 0x25, 0x55, 0x38, 0xb4, 0xcd, 0x91, 0xfd, 0xad, 0x75, 0xd1, - 0x37, 0x9d, 0xcf, 0xad, 0x5e, 0x7f, 0x6c, 0x9b, 0x95, 0x27, 0x3c, 0x3c, 0x30, 0xed, 0xcb, 0x96, - 0x65, 0x5a, 0xa3, 0x22, 0xac, 0x90, 0x3d, 0x28, 0x0d, 0x4c, 0xab, 0xd3, 0xb3, 0xba, 0x15, 0x95, - 0x7f, 0xd8, 0x63, 0xcb, 0xe2, 0x1f, 0x5b, 0x64, 0x1f, 0xca, 0xc3, 0x71, 0xbb, 0x6d, 0x9a, 0x1d, - 0xb3, 0x53, 0x79, 0x5a, 0x53, 0x35, 0xa5, 0x79, 0xaf, 0x42, 0xd5, 0xcc, 0xee, 0x7e, 0x20, 0xce, - 0x7e, 0x28, 0xad, 0x22, 0x57, 0x00, 0x72, 0xad, 0x7c, 0x3a, 0x72, 0xf2, 0xd8, 0xcb, 0x47, 0x27, - 0x5a, 0x7b, 0xb3, 0x19, 0x24, 0xa5, 0x35, 0xb6, 0x7e, 0xab, 0x0a, 0x19, 0x42, 0xa9, 0x8b, 0x4c, - 0x50, 0xd7, 0xff, 0x5e, 0xf5, 0x70, 0x22, 0xb5, 0xd7, 0x1b, 0x10, 0xcb, 0xa4, 0x57, 0x00, 0xd2, - 0xc6, 0x4d, 0x23, 0xaf, 0x6c, 0xed, 0x5f, 0x23, 0xaf, 0x6e, 0x43, 0xb0, 0x5f, 0x7c, 0xfa, 0xfe, - 0x71, 0xee, 0xb3, 0x1f, 0xa9, 0xa7, 0x4f, 0xa2, 0x5b, 0x43, 0x94, 0x45, 0xf1, 0x5c, 0xfe, 0x30, - 0x8a, 0x17, 0x3d, 0xc7, 0xd0, 0xa0, 0xde, 0xd9, 0x3c, 0x32, 0xd6, 0xff, 0x5f, 0xbc, 0x1d, 0xf1, - 0xbc, 0xcf, 0xff, 0x04, 0x00, 0x00, 0xff, 0xff, 0xda, 0xdb, 0x38, 0x09, 0x7a, 0x04, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// ExternalPluginServiceClient is the client API for ExternalPluginService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type ExternalPluginServiceClient interface { - // Send a task create request to the backend plugin server. - CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) - // Get job status. - GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) - // Delete the task resource. - DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) -} - -type externalPluginServiceClient struct { - cc *grpc.ClientConn -} - -func NewExternalPluginServiceClient(cc *grpc.ClientConn) ExternalPluginServiceClient { - return &externalPluginServiceClient{cc} -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) CreateTask(ctx context.Context, in *TaskCreateRequest, opts ...grpc.CallOption) (*TaskCreateResponse, error) { - out := new(TaskCreateResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/CreateTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) GetTask(ctx context.Context, in *TaskGetRequest, opts ...grpc.CallOption) (*TaskGetResponse, error) { - out := new(TaskGetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/GetTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// Deprecated: Do not use. -func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, in *TaskDeleteRequest, opts ...grpc.CallOption) (*TaskDeleteResponse, error) { - out := new(TaskDeleteResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.ExternalPluginService/DeleteTask", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExternalPluginServiceServer is the server API for ExternalPluginService service. -type ExternalPluginServiceServer interface { - // Send a task create request to the backend plugin server. - CreateTask(context.Context, *TaskCreateRequest) (*TaskCreateResponse, error) - // Get job status. - GetTask(context.Context, *TaskGetRequest) (*TaskGetResponse, error) - // Delete the task resource. - DeleteTask(context.Context, *TaskDeleteRequest) (*TaskDeleteResponse, error) -} - -// UnimplementedExternalPluginServiceServer can be embedded to have forward compatible implementations. -type UnimplementedExternalPluginServiceServer struct { -} - -func (*UnimplementedExternalPluginServiceServer) CreateTask(ctx context.Context, req *TaskCreateRequest) (*TaskCreateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method CreateTask not implemented") -} -func (*UnimplementedExternalPluginServiceServer) GetTask(ctx context.Context, req *TaskGetRequest) (*TaskGetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") -} -func (*UnimplementedExternalPluginServiceServer) DeleteTask(ctx context.Context, req *TaskDeleteRequest) (*TaskDeleteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method DeleteTask not implemented") -} - -func RegisterExternalPluginServiceServer(s *grpc.Server, srv ExternalPluginServiceServer) { - s.RegisterService(&_ExternalPluginService_serviceDesc, srv) -} - -func _ExternalPluginService_CreateTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/CreateTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).CreateTask(ctx, req.(*TaskCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalPluginService_GetTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskGetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).GetTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/GetTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).GetTask(ctx, req.(*TaskGetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _ExternalPluginService_DeleteTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(TaskDeleteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.ExternalPluginService/DeleteTask", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExternalPluginServiceServer).DeleteTask(ctx, req.(*TaskDeleteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _ExternalPluginService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.ExternalPluginService", - HandlerType: (*ExternalPluginServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "CreateTask", - Handler: _ExternalPluginService_CreateTask_Handler, - }, - { - MethodName: "GetTask", - Handler: _ExternalPluginService_GetTask_Handler, - }, - { - MethodName: "DeleteTask", - Handler: _ExternalPluginService_DeleteTask_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/external_plugin_service.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json deleted file mode 100644 index adf61a5c1f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/external_plugin_service.swagger.json +++ /dev/null @@ -1,1308 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/external_plugin_service.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": {}, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "ContainerArchitecture": { - "type": "string", - "enum": [ - "UNKNOWN", - "AMD64", - "ARM64", - "ARM_V6", - "ARM_V7" - ], - "default": "UNKNOWN", - "description": "Architecture-type the container image supports." - }, - "DataLoadingConfigLiteralMapFormat": { - "type": "string", - "enum": [ - "JSON", - "YAML", - "PROTO" - ], - "default": "JSON", - "description": "- JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core", - "title": "LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.\nIf the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.\nJSON and YAML do not need any protobuf definitions to read it\nAll remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)" - }, - "IOStrategyDownloadMode": { - "type": "string", - "enum": [ - "DOWNLOAD_EAGER", - "DOWNLOAD_STREAM", - "DO_NOT_DOWNLOAD" - ], - "default": "DOWNLOAD_EAGER", - "description": "- DOWNLOAD_EAGER: All data will be downloaded before the main container is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded", - "title": "Mode to use for downloading" - }, - "IOStrategyUploadMode": { - "type": "string", - "enum": [ - "UPLOAD_ON_EXIT", - "UPLOAD_EAGER", - "DO_NOT_UPLOAD" - ], - "default": "UPLOAD_ON_EXIT", - "description": "- UPLOAD_ON_EXIT: All data will be uploaded after the main container exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written", - "title": "Mode to use for uploading" - }, - "ResourcesResourceEntry": { - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/ResourcesResourceName", - "description": "Resource name." - }, - "value": { - "type": "string", - "title": "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - } - }, - "description": "Encapsulates a resource name and value." - }, - "ResourcesResourceName": { - "type": "string", - "enum": [ - "UNKNOWN", - "CPU", - "GPU", - "MEMORY", - "STORAGE", - "EPHEMERAL_STORAGE" - ], - "default": "UNKNOWN", - "description": "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs." - }, - "RuntimeMetadataRuntimeType": { - "type": "string", - "enum": [ - "OTHER", - "FLYTE_SDK" - ], - "default": "OTHER" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SecretMountType": { - "type": "string", - "enum": [ - "ANY", - "ENV_VAR", - "FILE" - ], - "default": "ANY", - "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." - }, - "SqlDialect": { - "type": "string", - "enum": [ - "UNDEFINED", - "ANSI", - "HIVE", - "OTHER" - ], - "default": "UNDEFINED", - "description": "The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid\nexpensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.\nWe support the following dialect: ansi, hive." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "coreArtifactBindingData": { - "type": "object", - "properties": { - "index": { - "type": "integer", - "format": "int64" - }, - "partition_key": { - "type": "string", - "title": "These two fields are only relevant in the partition value case" - }, - "transform": { - "type": "string" - } - }, - "title": "Only valid for triggers" - }, - "coreArtifactID": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "version": { - "type": "string" - }, - "partitions": { - "$ref": "#/definitions/corePartitions" - } - } - }, - "coreArtifactKey": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Project and domain and suffix needs to be unique across a given artifact store." - }, - "domain": { - "type": "string" - }, - "name": { - "type": "string" - } - } - }, - "coreArtifactTag": { - "type": "object", - "properties": { - "artifact_key": { - "$ref": "#/definitions/coreArtifactKey" - }, - "value": { - "$ref": "#/definitions/coreLabelValue" - } - } - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreContainer": { - "type": "object", - "properties": { - "image": { - "type": "string", - "title": "Container image url. Eg: docker/redis:latest" - }, - "command": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Command to be executed, if not provided, the default entrypoint in the container image will be used." - }, - "args": { - "type": "array", - "items": { - "type": "string" - }, - "description": "These will default to Flyte given paths. If provided, the system will not append known paths. If the task still\nneeds flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the\nsystem will populate these before executing the container." - }, - "resources": { - "$ref": "#/definitions/coreResources", - "description": "Container resources requirement as specified by the container engine." - }, - "env": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Environment variables will be set as the container is starting up." - }, - "config": { - "type": "array", - "items": { - "$ref": "#/definitions/coreKeyValuePair" - }, - "description": "Allows extra configs to be available for the container.\nTODO: elaborate on how configs will become available.\nDeprecated, please use TaskTemplate.config instead." - }, - "ports": { - "type": "array", - "items": { - "$ref": "#/definitions/coreContainerPort" - }, - "title": "Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\nOnly K8s" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - }, - "architecture": { - "$ref": "#/definitions/ContainerArchitecture" - } - } - }, - "coreContainerPort": { - "type": "object", - "properties": { - "container_port": { - "type": "integer", - "format": "int64", - "description": "Number of port to expose on the pod's IP address.\nThis must be a valid port number, 0 \u003c x \u003c 65536." - } - }, - "description": "Defines port properties for a container." - }, - "coreDataLoadingConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "format": "boolean", - "title": "Flag enables DataLoading Config. If this is not set, data loading will not be used!" - }, - "input_path": { - "type": "string", - "title": "File system path (start at root). This folder will contain all the inputs exploded to a separate file.\nExample, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like\n/var/flyte/inputs/inputs.\u003cmetadata format dependent -\u003e .pb .json .yaml\u003e -\u003e Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations\n/var/flyte/inputs/x -\u003e X is a file that contains the value of x (integer) in string format\n/var/flyte/inputs/y -\u003e Y is a file in Binary format\n/var/flyte/inputs/z/... -\u003e Note Z itself is a directory\nMore information about the protocol - refer to docs #TODO reference docs here" - }, - "output_path": { - "type": "string", - "title": "File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file" - }, - "format": { - "$ref": "#/definitions/DataLoadingConfigLiteralMapFormat", - "title": "In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.\nThis format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding" - }, - "io_strategy": { - "$ref": "#/definitions/coreIOStrategy" - } - }, - "description": "This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path\nAny outputs generated by the user container - within output_path are automatically uploaded." - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreExtendedResources": { - "type": "object", - "properties": { - "gpu_accelerator": { - "$ref": "#/definitions/coreGPUAccelerator", - "description": "GPU accelerator to select for task. Contains information about device type, and\nfor multi-instance GPUs, the partition size to use." - } - }, - "description": "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to\nallocate to a task." - }, - "coreGPUAccelerator": { - "type": "object", - "properties": { - "device": { - "type": "string", - "description": "This can be any arbitrary string, and should be informed by the labels or taints\nassociated with the nodes in question. Default cloud provider labels typically\nuse the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc." - }, - "unpartitioned": { - "type": "boolean", - "format": "boolean" - }, - "partition_size": { - "type": "string", - "description": "Like `device`, this can be any arbitrary string, and should be informed by\nthe labels or taints associated with the nodes in question. Default cloud\nprovider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc." - } - }, - "description": "Metadata associated with the GPU accelerator to allocate to a task. Contains\ninformation about device type, and for multi-instance GPUs, the partition size to\nuse." - }, - "coreIOStrategy": { - "type": "object", - "properties": { - "download_mode": { - "$ref": "#/definitions/IOStrategyDownloadMode", - "title": "Mode to use to manage downloads" - }, - "upload_mode": { - "$ref": "#/definitions/IOStrategyUploadMode", - "title": "Mode to use to manage uploads" - } - }, - "title": "Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)" - }, - "coreIdentifier": { - "type": "object", - "properties": { - "resource_type": { - "$ref": "#/definitions/coreResourceType", - "description": "Identifies the specific type of resource that this identifier corresponds to." - }, - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User provided value for the resource." - }, - "version": { - "type": "string", - "description": "Specific version of the resource." - } - }, - "description": "Encapsulation of fields that uniquely identifies a Flyte resource." - }, - "coreIdentity": { - "type": "object", - "properties": { - "iam_role": { - "type": "string", - "description": "iam_role references the fully qualified name of Identity \u0026 Access Management role to impersonate." - }, - "k8s_service_account": { - "type": "string", - "description": "k8s_service_account references a kubernetes service account to impersonate." - }, - "oauth2_client": { - "$ref": "#/definitions/coreOAuth2Client", - "description": "oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when\nmaking external calls." - }, - "execution_identity": { - "type": "string", - "title": "execution_identity references the subject who makes the execution" - } - }, - "description": "Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the\nright identity for the execution environment." - }, - "coreInputBindingData": { - "type": "object", - "properties": { - "var": { - "type": "string" - } - } - }, - "coreK8sObjectMetadata": { - "type": "object", - "properties": { - "labels": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional labels to add to the pod definition." - }, - "annotations": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Optional annotations to add to the pod definition." - } - }, - "description": "Metadata for building a kubernetes object when a task is executed." - }, - "coreK8sPod": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreK8sObjectMetadata", - "description": "Contains additional metadata for building a kubernetes pod." - }, - "pod_spec": { - "$ref": "#/definitions/protobufStruct", - "title": "Defines the primary pod spec created when a task is executed.\nThis should be a JSON-marshalled pod spec, which can be defined in\n- go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n- python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - }, - "data_config": { - "$ref": "#/definitions/coreDataLoadingConfig", - "title": "BETA: Optional configuration for DataLoading. If not specified, then default values are used.\nThis makes it possible to to run a completely portable container, that uses inputs and outputs\nonly from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.\nIf data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories\nare not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation\nto understand the default paths.\nOnly K8s" - } - }, - "description": "Defines a pod spec and additional pod metadata that is created when a task is executed." - }, - "coreKeyValuePair": { - "type": "object", - "properties": { - "key": { - "type": "string", - "description": "required." - }, - "value": { - "type": "string", - "description": "+optional." - } - }, - "description": "A generic key value pair." - }, - "coreLabelValue": { - "type": "object", - "properties": { - "static_value": { - "type": "string" - }, - "triggered_binding": { - "$ref": "#/definitions/coreArtifactBindingData" - }, - "input_binding": { - "$ref": "#/definitions/coreInputBindingData" - } - } - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "coreOAuth2Client": { - "type": "object", - "properties": { - "client_id": { - "type": "string", - "title": "client_id is the public id for the client to use. The system will not perform any pre-auth validation that the\nsecret requested matches the client_id indicated here.\n+required" - }, - "client_secret": { - "$ref": "#/definitions/coreSecret", - "title": "client_secret is a reference to the secret used to authenticate the OAuth2 client.\n+required" - } - }, - "description": "OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task." - }, - "coreOAuth2TokenRequest": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for\nenvironment variables and as a filename for mounting tokens as files.\n+required" - }, - "type": { - "$ref": "#/definitions/coreOAuth2TokenRequestType", - "title": "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n+required" - }, - "client": { - "$ref": "#/definitions/coreOAuth2Client", - "title": "client references the client_id/secret to use to request the OAuth2 token.\n+required" - }, - "idp_discovery_endpoint": { - "type": "string", - "title": "idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related\ninformation.\n+optional" - }, - "token_endpoint": { - "type": "string", - "title": "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is\nmandatory.\n+optional" - } - }, - "description": "OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\ntokens are passed through environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens\nare passed through file mounts." - }, - "coreOAuth2TokenRequestType": { - "type": "string", - "enum": [ - "CLIENT_CREDENTIALS" - ], - "default": "CLIENT_CREDENTIALS", - "description": "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials." - }, - "corePartitions": { - "type": "object", - "properties": { - "value": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLabelValue" - } - } - } - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreResourceType": { - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED", - "description": "Indicates a resource type within Flyte.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects" - }, - "coreResources": { - "type": "object", - "properties": { - "requests": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "The desired set of resources requested. ResourceNames must be unique within the list." - }, - "limits": { - "type": "array", - "items": { - "$ref": "#/definitions/ResourcesResourceEntry" - }, - "description": "Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique\nwithin the list." - } - }, - "description": "A customizable interface to convey resources requested for a container. This can be interpreted differently for different\ncontainer engines." - }, - "coreRetryStrategy": { - "type": "object", - "properties": { - "retries": { - "type": "integer", - "format": "int64", - "description": "Number of retries. Retries will be consumed when the job fails with a recoverable error.\nThe number of retries must be less than or equals to 10." - } - }, - "description": "Retry strategy associated with an executable unit." - }, - "coreRuntimeMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/RuntimeMetadataRuntimeType", - "description": "Type of runtime." - }, - "version": { - "type": "string", - "description": "Version of the runtime. All versions should be backward compatible. However, certain cases call for version\nchecks to ensure tighter validation or setting expectations." - }, - "flavor": { - "type": "string", - "description": "+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.)." - } - }, - "description": "Runtime information. This is loosely defined to allow for extensibility." - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSecret": { - "type": "object", - "properties": { - "group": { - "type": "string", - "title": "The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of\nthe v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.\nFor AWS Secret Manager, this should be the name of the secret.\n+required" - }, - "group_version": { - "type": "string", - "title": "The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - }, - "key": { - "type": "string", - "title": "The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation\nof the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should\nmatch one of the keys inside the secret. For AWS Secret Manager, it's ignored.\n+optional" - }, - "mount_requirement": { - "$ref": "#/definitions/SecretMountType", - "title": "mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail\nif the underlying key management system cannot satisfy that requirement. If not provided, the default location\nwill depend on the key management system.\n+optional" - } - }, - "description": "Secret encapsulates information about the secret a task needs to proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if\nsecrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets\nare passed through file mounts." - }, - "coreSecurityContext": { - "type": "object", - "properties": { - "run_as": { - "$ref": "#/definitions/coreIdentity", - "description": "run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the\nbackend plugin to choose the appropriate identity for the execution engine the task will run on." - }, - "secrets": { - "type": "array", - "items": { - "$ref": "#/definitions/coreSecret" - }, - "description": "secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - }, - "tokens": { - "type": "array", - "items": { - "$ref": "#/definitions/coreOAuth2TokenRequest" - }, - "description": "tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the\npod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access\nto the secret) and to pass it to the remote execution engine." - } - }, - "description": "SecurityContext holds security attributes that apply to tasks." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreSql": { - "type": "object", - "properties": { - "statement": { - "type": "string", - "title": "The actual query to run, the query can have templated parameters.\nWe use Flyte's Golang templating format for Query templating.\nRefer to the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\nFor example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - }, - "dialect": { - "$ref": "#/definitions/SqlDialect" - } - }, - "description": "Sql represents a generic sql workload with a statement and dialect." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTaskMetadata": { - "type": "object", - "properties": { - "discoverable": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the system should attempt to lookup this task's output to avoid duplication of work." - }, - "runtime": { - "$ref": "#/definitions/coreRuntimeMetadata", - "description": "Runtime information about the task." - }, - "timeout": { - "type": "string", - "description": "The overall timeout of a task including user-triggered retries." - }, - "retries": { - "$ref": "#/definitions/coreRetryStrategy", - "description": "Number of retries per task." - }, - "discovery_version": { - "type": "string", - "description": "Indicates a logical version to apply to this task for the purpose of discovery." - }, - "deprecated_error_message": { - "type": "string", - "description": "If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers\nof the ending of support for a given task." - }, - "interruptible": { - "type": "boolean", - "format": "boolean" - }, - "cache_serializable": { - "type": "boolean", - "format": "boolean", - "title": "Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work" - }, - "generates_deck": { - "type": "boolean", - "format": "boolean", - "description": "Indicates whether the task will generate a Deck URI when it finishes executing." - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Arbitrary tags that allow users and the platform to store small but arbitrary labels" - }, - "pod_template_name": { - "type": "string", - "description": "pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this\ntask creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - }, - "cache_ignore_input_vars": { - "type": "array", - "items": { - "type": "string" - }, - "description": "cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache." - } - }, - "title": "Task Metadata" - }, - "coreTaskTemplate": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreIdentifier", - "description": "Auto generated taskId by the system. Task Id uniquely identifies this task globally." - }, - "type": { - "type": "string", - "description": "A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no\nextensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the\nimplementation registered for the TaskCategory." - }, - "metadata": { - "$ref": "#/definitions/coreTaskMetadata", - "description": "Extra metadata about the task." - }, - "interface": { - "$ref": "#/definitions/coreTypedInterface", - "description": "A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees\ncompile-time validation of the workflow to avoid costly runtime failures." - }, - "custom": { - "$ref": "#/definitions/protobufStruct", - "description": "Custom data about the task. This is extensible to allow various plugins in the system." - }, - "container": { - "$ref": "#/definitions/coreContainer" - }, - "k8s_pod": { - "$ref": "#/definitions/coreK8sPod" - }, - "sql": { - "$ref": "#/definitions/coreSql" - }, - "task_type_version": { - "type": "integer", - "format": "int32", - "description": "This can be used to customize task handling at execution time for the same task type." - }, - "security_context": { - "$ref": "#/definitions/coreSecurityContext", - "description": "security_context encapsulates security attributes requested to run this task." - }, - "extended_resources": { - "$ref": "#/definitions/coreExtendedResources", - "description": "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements, to allocate to a task." - }, - "config": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "title": "Metadata about the custom defined for this task. This is extensible to allow various plugins in the system\nto use as required.\nreserve the field numbers 1 through 15 for very frequently occurring message elements" - } - }, - "description": "A Task structure that uniquely identifies a task in the system\nTasks are registered as a first step in the system." - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreTypedInterface": { - "type": "object", - "properties": { - "inputs": { - "$ref": "#/definitions/coreVariableMap" - }, - "outputs": { - "$ref": "#/definitions/coreVariableMap" - } - }, - "description": "Defines strongly typed inputs and outputs." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVariable": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Variable literal type." - }, - "description": { - "type": "string", - "title": "+optional string describing input variable" - }, - "artifact_partial_id": { - "$ref": "#/definitions/coreArtifactID", - "description": "+optional This object allows the user to specify how Artifacts are created.\nname, tag, partitions can be specified. The other fields (version and project/domain) are ignored." - }, - "artifact_tag": { - "$ref": "#/definitions/coreArtifactTag" - } - }, - "description": "Defines a strongly typed variable." - }, - "coreVariableMap": { - "type": "object", - "properties": { - "variables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreVariable" - }, - "description": "Defines a map of variable names to variables." - } - }, - "title": "A map of Variables" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "flyteidlserviceState": { - "type": "string", - "enum": [ - "RETRYABLE_FAILURE", - "PERMANENT_FAILURE", - "PENDING", - "RUNNING", - "SUCCEEDED" - ], - "default": "RETRYABLE_FAILURE", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "flyteidlserviceTaskCreateResponse": { - "type": "object", - "properties": { - "job_id": { - "type": "string" - } - }, - "description": "Represents a create response structure." - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - }, - "serviceTaskDeleteResponse": { - "type": "object", - "description": "Response to delete a task." - }, - "serviceTaskGetResponse": { - "type": "object", - "properties": { - "state": { - "$ref": "#/definitions/flyteidlserviceState", - "description": "The state of the execution is used to control its visibility in the UI/CLI." - }, - "outputs": { - "$ref": "#/definitions/coreLiteralMap", - "title": "The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a\nStructured dataset pointing to the query result table.\n+optional" - } - }, - "description": "Response to get an individual task state." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore deleted file mode 100644 index daf913b1b3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.gitignore +++ /dev/null @@ -1,24 +0,0 @@ -# Compiled Object files, Static and Dynamic libs (Shared Objects) -*.o -*.a -*.so - -# Folders -_obj -_test - -# Architecture specific extensions/prefixes -*.[568vq] -[568vq].out - -*.cgo1.go -*.cgo2.c -_cgo_defun.c -_cgo_gotypes.go -_cgo_export.* - -_testmain.go - -*.exe -*.test -*.prof diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION deleted file mode 100644 index 6cecc1a68f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml deleted file mode 100644 index f5cb2ce9a5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/.travis.yml +++ /dev/null @@ -1,8 +0,0 @@ -language: go - -install: - - go get -d -v . - -script: - - go build -v ./ - diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md deleted file mode 100644 index 5a4f66f46a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/README.md +++ /dev/null @@ -1,373 +0,0 @@ -# Go API client for flyteadmin - -No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - -## Overview -This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client. - -- API version: version not set -- Package version: 1.0.0 -- Build package: io.swagger.codegen.languages.GoClientCodegen - -## Installation -Put the package under your project folder and add the following in import: -```golang -import "./flyteadmin" -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AdminServiceApi* | [**CreateExecution**](docs/AdminServiceApi.md#createexecution) | **Post** /api/v1/executions | Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` -*AdminServiceApi* | [**CreateLaunchPlan**](docs/AdminServiceApi.md#createlaunchplan) | **Post** /api/v1/launch_plans | Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition -*AdminServiceApi* | [**CreateNodeEvent**](docs/AdminServiceApi.md#createnodeevent) | **Post** /api/v1/events/nodes | Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. -*AdminServiceApi* | [**CreateTask**](docs/AdminServiceApi.md#createtask) | **Post** /api/v1/tasks | Create and upload a :ref:`ref_flyteidl.admin.Task` definition -*AdminServiceApi* | [**CreateTaskEvent**](docs/AdminServiceApi.md#createtaskevent) | **Post** /api/v1/events/tasks | Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. -*AdminServiceApi* | [**CreateWorkflow**](docs/AdminServiceApi.md#createworkflow) | **Post** /api/v1/workflows | Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition -*AdminServiceApi* | [**CreateWorkflowEvent**](docs/AdminServiceApi.md#createworkflowevent) | **Post** /api/v1/events/workflows | Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. -*AdminServiceApi* | [**DeleteProjectAttributes**](docs/AdminServiceApi.md#deleteprojectattributes) | **Delete** /api/v1/project_attributes/{project} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**DeleteProjectDomainAttributes**](docs/AdminServiceApi.md#deleteprojectdomainattributes) | **Delete** /api/v1/project_domain_attributes/{project}/{domain} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**DeleteWorkflowAttributes**](docs/AdminServiceApi.md#deleteworkflowattributes) | **Delete** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. -*AdminServiceApi* | [**GetActiveLaunchPlan**](docs/AdminServiceApi.md#getactivelaunchplan) | **Get** /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name} | Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**GetDescriptionEntity**](docs/AdminServiceApi.md#getdescriptionentity) | **Get** /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. -*AdminServiceApi* | [**GetExecution**](docs/AdminServiceApi.md#getexecution) | **Get** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Fetches a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**GetExecutionData**](docs/AdminServiceApi.md#getexecutiondata) | **Get** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**GetExecutionMetrics**](docs/AdminServiceApi.md#getexecutionmetrics) | **Get** /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name} | Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**GetLaunchPlan**](docs/AdminServiceApi.md#getlaunchplan) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. -*AdminServiceApi* | [**GetNamedEntity**](docs/AdminServiceApi.md#getnamedentity) | **Get** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. -*AdminServiceApi* | [**GetNodeExecution**](docs/AdminServiceApi.md#getnodeexecution) | **Get** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**GetNodeExecutionData**](docs/AdminServiceApi.md#getnodeexecutiondata) | **Get** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**GetProjectAttributes**](docs/AdminServiceApi.md#getprojectattributes) | **Get** /api/v1/project_attributes/{project} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**GetProjectDomainAttributes**](docs/AdminServiceApi.md#getprojectdomainattributes) | **Get** /api/v1/project_domain_attributes/{project}/{domain} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**GetTask**](docs/AdminServiceApi.md#gettask) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Task` definition. -*AdminServiceApi* | [**GetTaskExecution**](docs/AdminServiceApi.md#gettaskexecution) | **Get** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**GetTaskExecutionData**](docs/AdminServiceApi.md#gettaskexecutiondata) | **Get** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**GetVersion**](docs/AdminServiceApi.md#getversion) | **Get** /api/v1/version | -*AdminServiceApi* | [**GetWorkflow**](docs/AdminServiceApi.md#getworkflow) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. -*AdminServiceApi* | [**GetWorkflowAttributes**](docs/AdminServiceApi.md#getworkflowattributes) | **Get** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. -*AdminServiceApi* | [**ListActiveLaunchPlans**](docs/AdminServiceApi.md#listactivelaunchplans) | **Get** /api/v1/active_launch_plans/{project}/{domain} | List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**ListDescriptionEntities**](docs/AdminServiceApi.md#listdescriptionentities) | **Get** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. -*AdminServiceApi* | [**ListDescriptionEntities2**](docs/AdminServiceApi.md#listdescriptionentities2) | **Get** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. -*AdminServiceApi* | [**ListExecutions**](docs/AdminServiceApi.md#listexecutions) | **Get** /api/v1/executions/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**ListLaunchPlanIds**](docs/AdminServiceApi.md#listlaunchplanids) | **Get** /api/v1/launch_plan_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. -*AdminServiceApi* | [**ListLaunchPlans**](docs/AdminServiceApi.md#listlaunchplans) | **Get** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. -*AdminServiceApi* | [**ListLaunchPlans2**](docs/AdminServiceApi.md#listlaunchplans2) | **Get** /api/v1/launch_plans/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. -*AdminServiceApi* | [**ListMatchableAttributes**](docs/AdminServiceApi.md#listmatchableattributes) | **Get** /api/v1/matchable_attributes | Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. -*AdminServiceApi* | [**ListNamedEntities**](docs/AdminServiceApi.md#listnamedentities) | **Get** /api/v1/named_entities/{resource_type}/{project}/{domain} | Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. -*AdminServiceApi* | [**ListNodeExecutions**](docs/AdminServiceApi.md#listnodeexecutions) | **Get** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**ListNodeExecutionsForTask**](docs/AdminServiceApi.md#listnodeexecutionsfortask) | **Get** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**ListProjects**](docs/AdminServiceApi.md#listprojects) | **Get** /api/v1/projects | Fetches a list of :ref:`ref_flyteidl.admin.Project` -*AdminServiceApi* | [**ListTaskExecutions**](docs/AdminServiceApi.md#listtaskexecutions) | **Get** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**ListTaskIds**](docs/AdminServiceApi.md#listtaskids) | **Get** /api/v1/task_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. -*AdminServiceApi* | [**ListTasks**](docs/AdminServiceApi.md#listtasks) | **Get** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. -*AdminServiceApi* | [**ListTasks2**](docs/AdminServiceApi.md#listtasks2) | **Get** /api/v1/tasks/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. -*AdminServiceApi* | [**ListWorkflowIds**](docs/AdminServiceApi.md#listworkflowids) | **Get** /api/v1/workflow_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. -*AdminServiceApi* | [**ListWorkflows**](docs/AdminServiceApi.md#listworkflows) | **Get** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. -*AdminServiceApi* | [**ListWorkflows2**](docs/AdminServiceApi.md#listworkflows2) | **Get** /api/v1/workflows/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. -*AdminServiceApi* | [**RecoverExecution**](docs/AdminServiceApi.md#recoverexecution) | **Post** /api/v1/executions/recover | Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. -*AdminServiceApi* | [**RegisterProject**](docs/AdminServiceApi.md#registerproject) | **Post** /api/v1/projects | Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. -*AdminServiceApi* | [**RelaunchExecution**](docs/AdminServiceApi.md#relaunchexecution) | **Post** /api/v1/executions/relaunch | Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` -*AdminServiceApi* | [**TerminateExecution**](docs/AdminServiceApi.md#terminateexecution) | **Delete** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**UpdateExecution**](docs/AdminServiceApi.md#updateexecution) | **Put** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**UpdateLaunchPlan**](docs/AdminServiceApi.md#updatelaunchplan) | **Put** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**UpdateNamedEntity**](docs/AdminServiceApi.md#updatenamedentity) | **Put** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. -*AdminServiceApi* | [**UpdateProject**](docs/AdminServiceApi.md#updateproject) | **Put** /api/v1/projects/{id} | Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. -*AdminServiceApi* | [**UpdateProjectAttributes**](docs/AdminServiceApi.md#updateprojectattributes) | **Put** /api/v1/project_attributes/{attributes.project} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level -*AdminServiceApi* | [**UpdateProjectDomainAttributes**](docs/AdminServiceApi.md#updateprojectdomainattributes) | **Put** /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**UpdateWorkflowAttributes**](docs/AdminServiceApi.md#updateworkflowattributes) | **Put** /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - - -## Documentation For Models - - - [AdminAbortMetadata](docs/AdminAbortMetadata.md) - - [AdminAnnotations](docs/AdminAnnotations.md) - - [AdminAuth](docs/AdminAuth.md) - - [AdminAuthRole](docs/AdminAuthRole.md) - - [AdminClusterAssignment](docs/AdminClusterAssignment.md) - - [AdminClusterResourceAttributes](docs/AdminClusterResourceAttributes.md) - - [AdminCronSchedule](docs/AdminCronSchedule.md) - - [AdminDescription](docs/AdminDescription.md) - - [AdminDescriptionEntity](docs/AdminDescriptionEntity.md) - - [AdminDescriptionEntityList](docs/AdminDescriptionEntityList.md) - - [AdminDescriptionFormat](docs/AdminDescriptionFormat.md) - - [AdminDomain](docs/AdminDomain.md) - - [AdminEmailNotification](docs/AdminEmailNotification.md) - - [AdminEnvs](docs/AdminEnvs.md) - - [AdminExecution](docs/AdminExecution.md) - - [AdminExecutionClosure](docs/AdminExecutionClosure.md) - - [AdminExecutionClusterLabel](docs/AdminExecutionClusterLabel.md) - - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) - - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) - - [AdminExecutionList](docs/AdminExecutionList.md) - - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) - - [AdminExecutionQueueAttributes](docs/AdminExecutionQueueAttributes.md) - - [AdminExecutionRecoverRequest](docs/AdminExecutionRecoverRequest.md) - - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) - - [AdminExecutionSpec](docs/AdminExecutionSpec.md) - - [AdminExecutionState](docs/AdminExecutionState.md) - - [AdminExecutionStateChangeDetails](docs/AdminExecutionStateChangeDetails.md) - - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) - - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) - - [AdminExecutionUpdateRequest](docs/AdminExecutionUpdateRequest.md) - - [AdminExecutionUpdateResponse](docs/AdminExecutionUpdateResponse.md) - - [AdminFixedRate](docs/AdminFixedRate.md) - - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) - - [AdminFlyteUrLs](docs/AdminFlyteUrLs.md) - - [AdminGetVersionResponse](docs/AdminGetVersionResponse.md) - - [AdminLabels](docs/AdminLabels.md) - - [AdminLaunchPlan](docs/AdminLaunchPlan.md) - - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) - - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) - - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) - - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) - - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) - - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) - - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) - - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) - - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) - - [AdminListMatchableAttributesResponse](docs/AdminListMatchableAttributesResponse.md) - - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) - - [AdminMatchableAttributesConfiguration](docs/AdminMatchableAttributesConfiguration.md) - - [AdminMatchableResource](docs/AdminMatchableResource.md) - - [AdminMatchingAttributes](docs/AdminMatchingAttributes.md) - - [AdminNamedEntity](docs/AdminNamedEntity.md) - - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) - - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) - - [AdminNamedEntityList](docs/AdminNamedEntityList.md) - - [AdminNamedEntityMetadata](docs/AdminNamedEntityMetadata.md) - - [AdminNamedEntityState](docs/AdminNamedEntityState.md) - - [AdminNamedEntityUpdateRequest](docs/AdminNamedEntityUpdateRequest.md) - - [AdminNamedEntityUpdateResponse](docs/AdminNamedEntityUpdateResponse.md) - - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) - - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) - - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) - - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) - - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) - - [AdminNodeExecutionMetaData](docs/AdminNodeExecutionMetaData.md) - - [AdminNotification](docs/AdminNotification.md) - - [AdminNotificationList](docs/AdminNotificationList.md) - - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) - - [AdminPluginOverride](docs/AdminPluginOverride.md) - - [AdminPluginOverrides](docs/AdminPluginOverrides.md) - - [AdminProject](docs/AdminProject.md) - - [AdminProjectAttributes](docs/AdminProjectAttributes.md) - - [AdminProjectAttributesDeleteRequest](docs/AdminProjectAttributesDeleteRequest.md) - - [AdminProjectAttributesDeleteResponse](docs/AdminProjectAttributesDeleteResponse.md) - - [AdminProjectAttributesGetResponse](docs/AdminProjectAttributesGetResponse.md) - - [AdminProjectAttributesUpdateRequest](docs/AdminProjectAttributesUpdateRequest.md) - - [AdminProjectAttributesUpdateResponse](docs/AdminProjectAttributesUpdateResponse.md) - - [AdminProjectDomainAttributes](docs/AdminProjectDomainAttributes.md) - - [AdminProjectDomainAttributesDeleteRequest](docs/AdminProjectDomainAttributesDeleteRequest.md) - - [AdminProjectDomainAttributesDeleteResponse](docs/AdminProjectDomainAttributesDeleteResponse.md) - - [AdminProjectDomainAttributesGetResponse](docs/AdminProjectDomainAttributesGetResponse.md) - - [AdminProjectDomainAttributesUpdateRequest](docs/AdminProjectDomainAttributesUpdateRequest.md) - - [AdminProjectDomainAttributesUpdateResponse](docs/AdminProjectDomainAttributesUpdateResponse.md) - - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) - - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) - - [AdminProjectUpdateResponse](docs/AdminProjectUpdateResponse.md) - - [AdminProjects](docs/AdminProjects.md) - - [AdminRawOutputDataConfig](docs/AdminRawOutputDataConfig.md) - - [AdminReason](docs/AdminReason.md) - - [AdminSchedule](docs/AdminSchedule.md) - - [AdminSlackNotification](docs/AdminSlackNotification.md) - - [AdminSort](docs/AdminSort.md) - - [AdminSourceCode](docs/AdminSourceCode.md) - - [AdminSystemMetadata](docs/AdminSystemMetadata.md) - - [AdminTask](docs/AdminTask.md) - - [AdminTaskClosure](docs/AdminTaskClosure.md) - - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) - - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) - - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) - - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) - - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) - - [AdminTaskList](docs/AdminTaskList.md) - - [AdminTaskResourceAttributes](docs/AdminTaskResourceAttributes.md) - - [AdminTaskResourceSpec](docs/AdminTaskResourceSpec.md) - - [AdminTaskSpec](docs/AdminTaskSpec.md) - - [AdminUrlBlob](docs/AdminUrlBlob.md) - - [AdminVersion](docs/AdminVersion.md) - - [AdminWorkflow](docs/AdminWorkflow.md) - - [AdminWorkflowAttributes](docs/AdminWorkflowAttributes.md) - - [AdminWorkflowAttributesDeleteRequest](docs/AdminWorkflowAttributesDeleteRequest.md) - - [AdminWorkflowAttributesDeleteResponse](docs/AdminWorkflowAttributesDeleteResponse.md) - - [AdminWorkflowAttributesGetResponse](docs/AdminWorkflowAttributesGetResponse.md) - - [AdminWorkflowAttributesUpdateRequest](docs/AdminWorkflowAttributesUpdateRequest.md) - - [AdminWorkflowAttributesUpdateResponse](docs/AdminWorkflowAttributesUpdateResponse.md) - - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) - - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) - - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) - - [AdminWorkflowExecutionConfig](docs/AdminWorkflowExecutionConfig.md) - - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) - - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) - - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) - - [AdminWorkflowExecutionGetMetricsResponse](docs/AdminWorkflowExecutionGetMetricsResponse.md) - - [AdminWorkflowList](docs/AdminWorkflowList.md) - - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) - - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) - - [CatalogReservationStatus](docs/CatalogReservationStatus.md) - - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) - - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) - - [ConnectionSetIdList](docs/ConnectionSetIdList.md) - - [ContainerArchitecture](docs/ContainerArchitecture.md) - - [CoreAlias](docs/CoreAlias.md) - - [CoreApproveCondition](docs/CoreApproveCondition.md) - - [CoreArrayNode](docs/CoreArrayNode.md) - - [CoreArtifactBindingData](docs/CoreArtifactBindingData.md) - - [CoreArtifactId](docs/CoreArtifactId.md) - - [CoreArtifactKey](docs/CoreArtifactKey.md) - - [CoreArtifactQuery](docs/CoreArtifactQuery.md) - - [CoreArtifactTag](docs/CoreArtifactTag.md) - - [CoreBinary](docs/CoreBinary.md) - - [CoreBinding](docs/CoreBinding.md) - - [CoreBindingData](docs/CoreBindingData.md) - - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) - - [CoreBindingDataMap](docs/CoreBindingDataMap.md) - - [CoreBlob](docs/CoreBlob.md) - - [CoreBlobMetadata](docs/CoreBlobMetadata.md) - - [CoreBlobType](docs/CoreBlobType.md) - - [CoreBooleanExpression](docs/CoreBooleanExpression.md) - - [CoreBranchNode](docs/CoreBranchNode.md) - - [CoreCatalogArtifactTag](docs/CoreCatalogArtifactTag.md) - - [CoreCatalogCacheStatus](docs/CoreCatalogCacheStatus.md) - - [CoreCatalogMetadata](docs/CoreCatalogMetadata.md) - - [CoreComparisonExpression](docs/CoreComparisonExpression.md) - - [CoreCompiledTask](docs/CoreCompiledTask.md) - - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) - - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) - - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) - - [CoreConnectionSet](docs/CoreConnectionSet.md) - - [CoreContainer](docs/CoreContainer.md) - - [CoreContainerPort](docs/CoreContainerPort.md) - - [CoreDataLoadingConfig](docs/CoreDataLoadingConfig.md) - - [CoreEnumType](docs/CoreEnumType.md) - - [CoreError](docs/CoreError.md) - - [CoreExecutionError](docs/CoreExecutionError.md) - - [CoreExtendedResources](docs/CoreExtendedResources.md) - - [CoreGateNode](docs/CoreGateNode.md) - - [CoreGpuAccelerator](docs/CoreGpuAccelerator.md) - - [CoreIdentifier](docs/CoreIdentifier.md) - - [CoreIdentity](docs/CoreIdentity.md) - - [CoreIfBlock](docs/CoreIfBlock.md) - - [CoreIfElseBlock](docs/CoreIfElseBlock.md) - - [CoreInputBindingData](docs/CoreInputBindingData.md) - - [CoreIoStrategy](docs/CoreIoStrategy.md) - - [CoreK8sObjectMetadata](docs/CoreK8sObjectMetadata.md) - - [CoreK8sPod](docs/CoreK8sPod.md) - - [CoreKeyValuePair](docs/CoreKeyValuePair.md) - - [CoreLabelValue](docs/CoreLabelValue.md) - - [CoreLiteral](docs/CoreLiteral.md) - - [CoreLiteralCollection](docs/CoreLiteralCollection.md) - - [CoreLiteralMap](docs/CoreLiteralMap.md) - - [CoreLiteralType](docs/CoreLiteralType.md) - - [CoreNode](docs/CoreNode.md) - - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) - - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) - - [CoreNodeMetadata](docs/CoreNodeMetadata.md) - - [CoreOAuth2Client](docs/CoreOAuth2Client.md) - - [CoreOAuth2TokenRequest](docs/CoreOAuth2TokenRequest.md) - - [CoreOAuth2TokenRequestType](docs/CoreOAuth2TokenRequestType.md) - - [CoreOperand](docs/CoreOperand.md) - - [CoreOutputReference](docs/CoreOutputReference.md) - - [CoreParameter](docs/CoreParameter.md) - - [CoreParameterMap](docs/CoreParameterMap.md) - - [CorePartitions](docs/CorePartitions.md) - - [CorePrimitive](docs/CorePrimitive.md) - - [CorePromiseAttribute](docs/CorePromiseAttribute.md) - - [CoreQualityOfService](docs/CoreQualityOfService.md) - - [CoreQualityOfServiceSpec](docs/CoreQualityOfServiceSpec.md) - - [CoreResourceType](docs/CoreResourceType.md) - - [CoreResources](docs/CoreResources.md) - - [CoreRetryStrategy](docs/CoreRetryStrategy.md) - - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) - - [CoreScalar](docs/CoreScalar.md) - - [CoreSchema](docs/CoreSchema.md) - - [CoreSchemaType](docs/CoreSchemaType.md) - - [CoreSecret](docs/CoreSecret.md) - - [CoreSecurityContext](docs/CoreSecurityContext.md) - - [CoreSignalCondition](docs/CoreSignalCondition.md) - - [CoreSimpleType](docs/CoreSimpleType.md) - - [CoreSleepCondition](docs/CoreSleepCondition.md) - - [CoreSpan](docs/CoreSpan.md) - - [CoreSql](docs/CoreSql.md) - - [CoreStructuredDataset](docs/CoreStructuredDataset.md) - - [CoreStructuredDatasetMetadata](docs/CoreStructuredDatasetMetadata.md) - - [CoreStructuredDatasetType](docs/CoreStructuredDatasetType.md) - - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) - - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) - - [CoreTaskLog](docs/CoreTaskLog.md) - - [CoreTaskMetadata](docs/CoreTaskMetadata.md) - - [CoreTaskNode](docs/CoreTaskNode.md) - - [CoreTaskNodeOverrides](docs/CoreTaskNodeOverrides.md) - - [CoreTaskTemplate](docs/CoreTaskTemplate.md) - - [CoreTypeAnnotation](docs/CoreTypeAnnotation.md) - - [CoreTypeStructure](docs/CoreTypeStructure.md) - - [CoreTypedInterface](docs/CoreTypedInterface.md) - - [CoreUnion](docs/CoreUnion.md) - - [CoreUnionInfo](docs/CoreUnionInfo.md) - - [CoreUnionType](docs/CoreUnionType.md) - - [CoreVariable](docs/CoreVariable.md) - - [CoreVariableMap](docs/CoreVariableMap.md) - - [CoreVoid](docs/CoreVoid.md) - - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) - - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) - - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) - - [CoreWorkflowMetadataDefaults](docs/CoreWorkflowMetadataDefaults.md) - - [CoreWorkflowNode](docs/CoreWorkflowNode.md) - - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) - - [DataLoadingConfigLiteralMapFormat](docs/DataLoadingConfigLiteralMapFormat.md) - - [EventEventReason](docs/EventEventReason.md) - - [EventExternalResourceInfo](docs/EventExternalResourceInfo.md) - - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) - - [EventParentNodeExecutionMetadata](docs/EventParentNodeExecutionMetadata.md) - - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) - - [EventResourcePoolInfo](docs/EventResourcePoolInfo.md) - - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) - - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) - - [ExecutionErrorErrorKind](docs/ExecutionErrorErrorKind.md) - - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) - - [FlyteidladminDynamicWorkflowNodeMetadata](docs/FlyteidladminDynamicWorkflowNodeMetadata.md) - - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) - - [FlyteidladminTaskCreateRequest](docs/FlyteidladminTaskCreateRequest.md) - - [FlyteidladminTaskCreateResponse](docs/FlyteidladminTaskCreateResponse.md) - - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) - - [FlyteidladminTaskNodeMetadata](docs/FlyteidladminTaskNodeMetadata.md) - - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) - - [FlyteidleventDynamicWorkflowNodeMetadata](docs/FlyteidleventDynamicWorkflowNodeMetadata.md) - - [FlyteidleventTaskExecutionMetadata](docs/FlyteidleventTaskExecutionMetadata.md) - - [FlyteidleventTaskNodeMetadata](docs/FlyteidleventTaskNodeMetadata.md) - - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) - - [IoStrategyDownloadMode](docs/IoStrategyDownloadMode.md) - - [IoStrategyUploadMode](docs/IoStrategyUploadMode.md) - - [PluginOverrideMissingPluginBehavior](docs/PluginOverrideMissingPluginBehavior.md) - - [ProjectProjectState](docs/ProjectProjectState.md) - - [ProtobufAny](docs/ProtobufAny.md) - - [ProtobufListValue](docs/ProtobufListValue.md) - - [ProtobufNullValue](docs/ProtobufNullValue.md) - - [ProtobufStruct](docs/ProtobufStruct.md) - - [ProtobufValue](docs/ProtobufValue.md) - - [QualityOfServiceTier](docs/QualityOfServiceTier.md) - - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) - - [ResourcesResourceName](docs/ResourcesResourceName.md) - - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) - - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) - - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) - - [SecretMountType](docs/SecretMountType.md) - - [SortDirection](docs/SortDirection.md) - - [SqlDialect](docs/SqlDialect.md) - - [StructuredDatasetTypeDatasetColumn](docs/StructuredDatasetTypeDatasetColumn.md) - - [TaskExecutionMetadataInstanceClass](docs/TaskExecutionMetadataInstanceClass.md) - - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) - - [WorkflowMetadataOnFailurePolicy](docs/WorkflowMetadataOnFailurePolicy.md) - - -## Documentation For Authorization - Endpoints do not require authorization. - - -## Author - - - diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml deleted file mode 100644 index 392faa0aab..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api/swagger.yaml +++ /dev/null @@ -1,117948 +0,0 @@ ---- -swagger: "2.0" -info: - version: "version not set" - title: "flyteidl/service/admin.proto" -schemes: -- "http" -- "https" -consumes: -- "application/json" -produces: -- "application/json" -paths: - /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`." - operationId: "GetActiveLaunchPlan" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlan" - /api/v1/active_launch_plans/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`." - operationId: "ListActiveLaunchPlans" - parameters: - - name: "project" - in: "path" - description: "Name of the project that contains the identifiers.\n+required." - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Name of the domain the identifiers belongs to within the project.\n\ - +required." - required: true - type: "string" - x-exportParamName: "Domain" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlanList" - ? /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} - : get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by\ - \ the reference :ref:`ref_flyteidl.admin.TaskExecution`." - operationId: "ListNodeExecutionsForTask" - parameters: - - name: "task_execution_id.node_execution_id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdProject" - - name: "task_execution_id.node_execution_id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdDomain" - - name: "task_execution_id.node_execution_id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdNodeExecutionIdExecutionIdName" - - name: "task_execution_id.node_execution_id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "TaskExecutionIdNodeExecutionIdNodeId" - - name: "task_execution_id.task_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdTaskIdProject" - - name: "task_execution_id.task_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdTaskIdDomain" - - name: "task_execution_id.task_id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdTaskIdName" - - name: "task_execution_id.task_id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "TaskExecutionIdTaskIdVersion" - - name: "task_execution_id.retry_attempt" - in: "path" - required: true - type: "integer" - format: "int64" - x-exportParamName: "TaskExecutionIdRetryAttempt" - - name: "task_execution_id.task_id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "TaskExecutionIdTaskIdResourceType" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the, server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNodeExecutionList" - /api/v1/data/executions/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`." - operationId: "GetExecutionData" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowExecutionGetDataResponse" - /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: - get: - tags: - - "AdminService" - summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`." - operationId: "GetNodeExecutionData" - parameters: - - name: "id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdExecutionIdProject" - - name: "id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdExecutionIdDomain" - - name: "id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdExecutionIdName" - - name: "id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "IdNodeId" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNodeExecutionGetDataResponse" - ? /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} - : get: - tags: - - "AdminService" - summary: "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`." - operationId: "GetTaskExecutionData" - parameters: - - name: "id.node_execution_id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdProject" - - name: "id.node_execution_id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" - - name: "id.node_execution_id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdName" - - name: "id.node_execution_id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdNodeId" - - name: "id.task_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdTaskIdProject" - - name: "id.task_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdTaskIdDomain" - - name: "id.task_id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdTaskIdName" - - name: "id.task_id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdTaskIdVersion" - - name: "id.retry_attempt" - in: "path" - required: true - type: "integer" - format: "int64" - x-exportParamName: "IdRetryAttempt" - - name: "id.task_id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdTaskIdResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTaskExecutionGetDataResponse" - /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}: - get: - tags: - - "AdminService" - summary: "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object." - operationId: "GetDescriptionEntity" - parameters: - - name: "id.resource_type" - in: "path" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to." - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdResourceType" - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdVersion" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminDescriptionEntity" - /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions." - operationId: "ListDescriptionEntities2" - parameters: - - name: "resource_type" - in: "path" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to." - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "ResourceType" - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "query" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'." - required: false - type: "string" - x-exportParamName: "IdName" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminDescriptionEntityList" - /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions." - operationId: "ListDescriptionEntities" - parameters: - - name: "resource_type" - in: "path" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to." - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "ResourceType" - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminDescriptionEntityList" - /api/v1/events/nodes: - post: - tags: - - "AdminService" - summary: "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred." - operationId: "CreateNodeEvent" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminNodeExecutionEventRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNodeExecutionEventResponse" - /api/v1/events/tasks: - post: - tags: - - "AdminService" - summary: "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred." - operationId: "CreateTaskEvent" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminTaskExecutionEventRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTaskExecutionEventResponse" - /api/v1/events/workflows: - post: - tags: - - "AdminService" - summary: "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred." - operationId: "CreateWorkflowEvent" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminWorkflowExecutionEventRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowExecutionEventResponse" - /api/v1/executions: - post: - tags: - - "AdminService" - summary: "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`" - operationId: "CreateExecution" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminExecutionCreateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionCreateResponse" - /api/v1/executions/recover: - post: - tags: - - "AdminService" - summary: "Recreates a previously-run workflow execution that will only start\ - \ executing from the last known failure point.\nIn Recover mode, users cannot\ - \ change any input parameters or update the version of the execution.\nThis\ - \ is extremely useful to recover from system errors and byzantine faults like\ - \ - Loss of K8s cluster, bugs in platform or instability, machine failures,\n\ - downstream system failures (downstream services), or simply to recover executions\ - \ that failed because of retry exhaustion and should complete if tried again.\n\ - See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details." - operationId: "RecoverExecution" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminExecutionRecoverRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionCreateResponse" - /api/v1/executions/relaunch: - post: - tags: - - "AdminService" - summary: "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`" - operationId: "RelaunchExecution" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminExecutionRelaunchRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionCreateResponse" - /api/v1/executions/{id.project}/{id.domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.Execution`." - operationId: "ListExecutions" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "query" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'." - required: false - type: "string" - x-exportParamName: "IdName" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionList" - /api/v1/executions/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetches a :ref:`ref_flyteidl.admin.Execution`." - operationId: "GetExecution" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecution" - put: - tags: - - "AdminService" - summary: "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`." - operationId: "UpdateExecution" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminExecutionUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionUpdateResponse" - delete: - tags: - - "AdminService" - summary: "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`." - operationId: "TerminateExecution" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminExecutionTerminateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminExecutionTerminateResponse" - /api/v1/launch_plan_ids/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ - \ launch plan objects." - operationId: "ListLaunchPlanIds" - parameters: - - name: "project" - in: "path" - description: "Name of the project that contains the identifiers.\n+required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Name of the domain the identifiers belongs to within the project.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntityIdentifierList" - /api/v1/launch_plans: - post: - tags: - - "AdminService" - summary: "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition" - operationId: "CreateLaunchPlan" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminLaunchPlanCreateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlanCreateResponse" - /api/v1/launch_plans/{id.project}/{id.domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions." - operationId: "ListLaunchPlans2" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "query" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'." - required: false - type: "string" - x-exportParamName: "IdName" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlanList" - /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions." - operationId: "ListLaunchPlans" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlanList" - /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}: - get: - tags: - - "AdminService" - summary: "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition." - operationId: "GetLaunchPlan" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdVersion" - - name: "id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlan" - put: - tags: - - "AdminService" - summary: "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`." - operationId: "UpdateLaunchPlan" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdVersion" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminLaunchPlanUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminLaunchPlanUpdateResponse" - /api/v1/matchable_attributes: - get: - tags: - - "AdminService" - summary: "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a specific resource type." - operationId: "ListMatchableAttributes" - parameters: - - name: "resource_type" - in: "query" - description: "+required.\n\n - TASK_RESOURCE: Applies to customizable task\ - \ resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring\ - \ templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures\ - \ task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL:\ - \ Configures the K8s cluster label to be used for execution to be run\n\ - \ - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service\ - \ when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable\ - \ plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG:\ - \ Adds defaults for customizable workflow-execution specifications and overrides.\n\ - \ - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which\ - \ this execution should run." - required: false - type: "string" - default: "TASK_RESOURCE" - enum: - - "TASK_RESOURCE" - - "CLUSTER_RESOURCE" - - "EXECUTION_QUEUE" - - "EXECUTION_CLUSTER_LABEL" - - "QUALITY_OF_SERVICE_SPECIFICATION" - - "PLUGIN_OVERRIDE" - - "WORKFLOW_EXECUTION_CONFIG" - - "CLUSTER_ASSIGNMENT" - x-exportParamName: "ResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminListMatchableAttributesResponse" - /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`." - operationId: "GetExecutionMetrics" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "depth" - in: "query" - description: "depth defines the number of Flyte entity levels to traverse\ - \ when breaking down execution details." - required: false - type: "integer" - format: "int32" - x-exportParamName: "Depth" - x-optionalDataType: "Int32" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowExecutionGetMetricsResponse" - /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object." - operationId: "GetNamedEntity" - parameters: - - name: "resource_type" - in: "path" - description: "Resource type of the metadata to get. One of Task, Workflow\ - \ or LaunchPlan.\n+required" - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "ResourceType" - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntity" - put: - tags: - - "AdminService" - summary: "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object." - operationId: "UpdateNamedEntity" - parameters: - - name: "resource_type" - in: "path" - description: "Resource type of the metadata to update\n+required" - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "ResourceType" - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminNamedEntityUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntityUpdateResponse" - /api/v1/named_entities/{resource_type}/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects." - operationId: "ListNamedEntities" - parameters: - - name: "resource_type" - in: "path" - description: "Resource type of the metadata to query. One of Task, Workflow\ - \ or LaunchPlan.\n+required" - required: true - type: "string" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "ResourceType" - - name: "project" - in: "path" - description: "Name of the project that contains the identifiers.\n+required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Name of the domain the identifiers belongs to within the project." - required: true - type: "string" - x-exportParamName: "Domain" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntityList" - /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}: - get: - tags: - - "AdminService" - summary: "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`." - operationId: "GetNodeExecution" - parameters: - - name: "id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdExecutionIdProject" - - name: "id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdExecutionIdDomain" - - name: "id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdExecutionIdName" - - name: "id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "IdNodeId" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/flyteidladminNodeExecution" - /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`." - operationId: "ListNodeExecutions" - parameters: - - name: "workflow_execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "WorkflowExecutionIdProject" - - name: "workflow_execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "WorkflowExecutionIdDomain" - - name: "workflow_execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "WorkflowExecutionIdName" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - - name: "unique_parent_id" - in: "query" - description: "Unique identifier of the parent node in the execution\n+optional." - required: false - type: "string" - x-exportParamName: "UniqueParentId" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNodeExecutionList" - /api/v1/project_attributes/{attributes.project}: - put: - tags: - - "AdminService" - summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ at the project level" - operationId: "UpdateProjectAttributes" - parameters: - - name: "attributes.project" - in: "path" - description: "Unique project id for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesProject" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProjectAttributesUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectAttributesUpdateResponse" - /api/v1/project_attributes/{project}: - get: - tags: - - "AdminService" - summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project and domain." - operationId: "GetProjectAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "resource_type" - in: "query" - description: "Which type of matchable attributes to return.\n+required.\n\n\ - \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ - \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ - \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ - \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ - \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ - \ Configures default quality of service when undefined in an execution spec.\n\ - \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ - \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ - \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ - \ Controls how to select an available cluster on which this execution should\ - \ run." - required: false - type: "string" - default: "TASK_RESOURCE" - enum: - - "TASK_RESOURCE" - - "CLUSTER_RESOURCE" - - "EXECUTION_QUEUE" - - "EXECUTION_CLUSTER_LABEL" - - "QUALITY_OF_SERVICE_SPECIFICATION" - - "PLUGIN_OVERRIDE" - - "WORKFLOW_EXECUTION_CONFIG" - - "CLUSTER_ASSIGNMENT" - x-exportParamName: "ResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectAttributesGetResponse" - delete: - tags: - - "AdminService" - summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project and domain." - operationId: "DeleteProjectAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProjectAttributesDeleteRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectAttributesDeleteResponse" - /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}: - put: - tags: - - "AdminService" - summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project and domain." - operationId: "UpdateProjectDomainAttributes" - parameters: - - name: "attributes.project" - in: "path" - description: "Unique project id for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesProject" - - name: "attributes.domain" - in: "path" - description: "Unique domain id for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesDomain" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProjectDomainAttributesUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectDomainAttributesUpdateResponse" - /api/v1/project_domain_attributes/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project and domain." - operationId: "GetProjectDomainAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Unique domain id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "resource_type" - in: "query" - description: "Which type of matchable attributes to return.\n+required.\n\n\ - \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ - \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ - \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ - \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ - \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ - \ Configures default quality of service when undefined in an execution spec.\n\ - \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ - \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ - \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ - \ Controls how to select an available cluster on which this execution should\ - \ run." - required: false - type: "string" - default: "TASK_RESOURCE" - enum: - - "TASK_RESOURCE" - - "CLUSTER_RESOURCE" - - "EXECUTION_QUEUE" - - "EXECUTION_CLUSTER_LABEL" - - "QUALITY_OF_SERVICE_SPECIFICATION" - - "PLUGIN_OVERRIDE" - - "WORKFLOW_EXECUTION_CONFIG" - - "CLUSTER_ASSIGNMENT" - x-exportParamName: "ResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectDomainAttributesGetResponse" - delete: - tags: - - "AdminService" - summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project and domain." - operationId: "DeleteProjectDomainAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Unique domain id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProjectDomainAttributesDeleteRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectDomainAttributesDeleteResponse" - /api/v1/projects: - get: - tags: - - "AdminService" - summary: "Fetches a list of :ref:`ref_flyteidl.admin.Project`" - operationId: "ListProjects" - parameters: - - name: "limit" - in: "query" - description: "Indicates the number of projects to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjects" - post: - tags: - - "AdminService" - summary: "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment." - operationId: "RegisterProject" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProjectRegisterRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectRegisterResponse" - /api/v1/projects/{id}: - put: - tags: - - "AdminService" - summary: "Updates an existing :ref:`ref_flyteidl.admin.Project` \nflyteidl.admin.Project\ - \ should be passed but the domains property should be empty;\nit will be ignored\ - \ in the handler as domains cannot be updated via this API." - operationId: "UpdateProject" - parameters: - - name: "id" - in: "path" - description: "Globally unique project name." - required: true - type: "string" - x-exportParamName: "Id" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminProject" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminProjectUpdateResponse" - ? /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} - : get: - tags: - - "AdminService" - summary: "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`." - operationId: "GetTaskExecution" - parameters: - - name: "id.node_execution_id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdProject" - - name: "id.node_execution_id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdDomain" - - name: "id.node_execution_id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdExecutionIdName" - - name: "id.node_execution_id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "IdNodeExecutionIdNodeId" - - name: "id.task_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdTaskIdProject" - - name: "id.task_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdTaskIdDomain" - - name: "id.task_id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdTaskIdName" - - name: "id.task_id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdTaskIdVersion" - - name: "id.retry_attempt" - in: "path" - required: true - type: "integer" - format: "int64" - x-exportParamName: "IdRetryAttempt" - - name: "id.task_id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdTaskIdResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/flyteidladminTaskExecution" - ? /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} - : get: - tags: - - "AdminService" - summary: "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`." - operationId: "ListTaskExecutions" - parameters: - - name: "node_execution_id.execution_id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "NodeExecutionIdExecutionIdProject" - - name: "node_execution_id.execution_id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "NodeExecutionIdExecutionIdDomain" - - name: "node_execution_id.execution_id.name" - in: "path" - description: "User or system provided value for the resource." - required: true - type: "string" - x-exportParamName: "NodeExecutionIdExecutionIdName" - - name: "node_execution_id.node_id" - in: "path" - required: true - type: "string" - x-exportParamName: "NodeExecutionIdNodeId" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTaskExecutionList" - /api/v1/task_ids/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ - \ task objects." - operationId: "ListTaskIds" - parameters: - - name: "project" - in: "path" - description: "Name of the project that contains the identifiers.\n+required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Name of the domain the identifiers belongs to within the project.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntityIdentifierList" - /api/v1/tasks: - post: - tags: - - "AdminService" - summary: "Create and upload a :ref:`ref_flyteidl.admin.Task` definition" - operationId: "CreateTask" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/flyteidladminTaskCreateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/flyteidladminTaskCreateResponse" - /api/v1/tasks/{id.project}/{id.domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions." - operationId: "ListTasks2" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "query" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'." - required: false - type: "string" - x-exportParamName: "IdName" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTaskList" - /api/v1/tasks/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions." - operationId: "ListTasks" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTaskList" - /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}: - get: - tags: - - "AdminService" - summary: "Fetch a :ref:`ref_flyteidl.admin.Task` definition." - operationId: "GetTask" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdVersion" - - name: "id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminTask" - /api/v1/version: - get: - tags: - - "AdminService" - operationId: "GetVersion" - parameters: [] - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminGetVersionResponse" - /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}: - put: - tags: - - "AdminService" - summary: "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project, domain and workflow." - operationId: "UpdateWorkflowAttributes" - parameters: - - name: "attributes.project" - in: "path" - description: "Unique project id for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesProject" - - name: "attributes.domain" - in: "path" - description: "Unique domain id for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesDomain" - - name: "attributes.workflow" - in: "path" - description: "Workflow name for which this set of attributes will be applied." - required: true - type: "string" - x-exportParamName: "AttributesWorkflow" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminWorkflowAttributesUpdateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowAttributesUpdateResponse" - /api/v1/workflow_attributes/{project}/{domain}/{workflow}: - get: - tags: - - "AdminService" - summary: "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project, domain and workflow." - operationId: "GetWorkflowAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Unique domain id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "workflow" - in: "path" - description: "Workflow name which this set of attributes references.\n+required" - required: true - type: "string" - x-exportParamName: "Workflow" - - name: "resource_type" - in: "query" - description: "Which type of matchable attributes to return.\n+required.\n\n\ - \ - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n\ - \ - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster\ - \ resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution\ - \ queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster\ - \ label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ - \ Configures default quality of service when undefined in an execution spec.\n\ - \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior\ - \ for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for\ - \ customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT:\ - \ Controls how to select an available cluster on which this execution should\ - \ run." - required: false - type: "string" - default: "TASK_RESOURCE" - enum: - - "TASK_RESOURCE" - - "CLUSTER_RESOURCE" - - "EXECUTION_QUEUE" - - "EXECUTION_CLUSTER_LABEL" - - "QUALITY_OF_SERVICE_SPECIFICATION" - - "PLUGIN_OVERRIDE" - - "WORKFLOW_EXECUTION_CONFIG" - - "CLUSTER_ASSIGNMENT" - x-exportParamName: "ResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowAttributesGetResponse" - delete: - tags: - - "AdminService" - summary: "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`\ - \ for a project, domain and workflow." - operationId: "DeleteWorkflowAttributes" - parameters: - - name: "project" - in: "path" - description: "Unique project id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Unique domain id which this set of attributes references.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "workflow" - in: "path" - description: "Workflow name which this set of attributes references.\n+required" - required: true - type: "string" - x-exportParamName: "Workflow" - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminWorkflowAttributesDeleteRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowAttributesDeleteResponse" - /api/v1/workflow_ids/{project}/{domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of\ - \ workflow objects." - operationId: "ListWorkflowIds" - parameters: - - name: "project" - in: "path" - description: "Name of the project that contains the identifiers.\n+required" - required: true - type: "string" - x-exportParamName: "Project" - - name: "domain" - in: "path" - description: "Name of the domain the identifiers belongs to within the project.\n\ - +required" - required: true - type: "string" - x-exportParamName: "Domain" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminNamedEntityIdentifierList" - /api/v1/workflows: - post: - tags: - - "AdminService" - summary: "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition" - operationId: "CreateWorkflow" - parameters: - - in: "body" - name: "body" - required: true - schema: - $ref: "#/definitions/adminWorkflowCreateRequest" - x-exportParamName: "Body" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowCreateResponse" - /api/v1/workflows/{id.project}/{id.domain}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions." - operationId: "ListWorkflows2" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "query" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'." - required: false - type: "string" - x-exportParamName: "IdName" - x-optionalDataType: "String" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowList" - /api/v1/workflows/{id.project}/{id.domain}/{id.name}: - get: - tags: - - "AdminService" - summary: "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions." - operationId: "ListWorkflows" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - required: true - type: "string" - x-exportParamName: "IdName" - - name: "limit" - in: "query" - description: "Indicates the number of resources to be returned.\n+required." - required: false - type: "integer" - format: "int64" - x-exportParamName: "Limit" - x-optionalDataType: "Int64" - - name: "token" - in: "query" - description: "In the case of multiple pages of results, this server-provided\ - \ token can be used to fetch the next page\nin a query.\n+optional." - required: false - type: "string" - x-exportParamName: "Token" - x-optionalDataType: "String" - - name: "filters" - in: "query" - description: "Indicates a list of filters passed as string.\nMore info on\ - \ constructing filters : \n+optional." - required: false - type: "string" - x-exportParamName: "Filters" - x-optionalDataType: "String" - - name: "sort_by.key" - in: "query" - description: "Indicates an attribute to sort the response values.\n+required." - required: false - type: "string" - x-exportParamName: "SortByKey" - x-optionalDataType: "String" - - name: "sort_by.direction" - in: "query" - description: "Indicates the direction to apply sort key for response values.\n\ - +optional.\n\n - DESCENDING: By default, fields are sorted in descending\ - \ order." - required: false - type: "string" - default: "DESCENDING" - enum: - - "DESCENDING" - - "ASCENDING" - x-exportParamName: "SortByDirection" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflowList" - /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}: - get: - tags: - - "AdminService" - summary: "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition." - operationId: "GetWorkflow" - parameters: - - name: "id.project" - in: "path" - description: "Name of the project the resource belongs to." - required: true - type: "string" - x-exportParamName: "IdProject" - - name: "id.domain" - in: "path" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - required: true - type: "string" - x-exportParamName: "IdDomain" - - name: "id.name" - in: "path" - description: "User provided value for the resource." - required: true - type: "string" - x-exportParamName: "IdName" - - name: "id.version" - in: "path" - description: "Specific version of the resource." - required: true - type: "string" - x-exportParamName: "IdVersion" - - name: "id.resource_type" - in: "query" - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to.\n\n - DATASET: A dataset represents an entity modeled\ - \ in Flyte DataCatalog. A Dataset is also a versioned entity and can be\ - \ a compilation of multiple individual objects.\nEventually all Catalog\ - \ objects should be modeled similar to Flyte Objects. The Dataset entities\ - \ makes it possible for the UI and CLI to act on the objects \nin a similar\ - \ manner to other Flyte objects" - required: false - type: "string" - default: "UNSPECIFIED" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - x-exportParamName: "IdResourceType" - x-optionalDataType: "String" - responses: - 200: - description: "A successful response." - schema: - $ref: "#/definitions/adminWorkflow" -definitions: - BlobTypeBlobDimensionality: - type: "string" - enum: - - "SINGLE" - - "MULTIPART" - default: "SINGLE" - CatalogReservationStatus: - type: "string" - description: "Indicates the status of a catalog reservation operation.\n\n - RESERVATION_DISABLED:\ - \ Used to indicate that reservations are disabled\n - RESERVATION_ACQUIRED:\ - \ Used to indicate that a reservation was successfully acquired or extended\n\ - \ - RESERVATION_EXISTS: Used to indicate that an active reservation currently\ - \ exists\n - RESERVATION_RELEASED: Used to indicate that the reservation has\ - \ been successfully released\n - RESERVATION_FAILURE: Used to indicate that\ - \ a reservation operation resulted in failure" - enum: - - "RESERVATION_DISABLED" - - "RESERVATION_ACQUIRED" - - "RESERVATION_EXISTS" - - "RESERVATION_RELEASED" - - "RESERVATION_FAILURE" - default: "RESERVATION_DISABLED" - ComparisonExpressionOperator: - type: "string" - title: "Binary Operator for each expression" - description: "- GT: Greater Than\n - LT: Less Than" - enum: - - "EQ" - - "NEQ" - - "GT" - - "GTE" - - "LT" - - "LTE" - default: "EQ" - ConjunctionExpressionLogicalOperator: - type: "string" - title: "Nested conditions. They can be conjoined using AND / OR\nOrder of evaluation\ - \ is not important as the operators are Commutative" - description: "- AND: Conjunction" - enum: - - "AND" - - "OR" - default: "AND" - ConnectionSetIdList: - type: "object" - properties: - ids: - type: "array" - items: - type: "string" - example: - ids: - - "ids" - - "ids" - ContainerArchitecture: - type: "string" - description: "Architecture-type the container image supports." - enum: - - "UNKNOWN" - - "AMD64" - - "ARM64" - - "ARM_V6" - - "ARM_V7" - default: "UNKNOWN" - DataLoadingConfigLiteralMapFormat: - type: "string" - title: "LiteralMapFormat decides the encoding format in which the input metadata\ - \ should be made available to the containers.\nIf the user has access to the\ - \ protocol buffer definitions, it is recommended to use the PROTO format.\n\ - JSON and YAML do not need any protobuf definitions to read it\nAll remote references\ - \ in core.LiteralMap are replaced with local filesystem references (the data\ - \ is downloaded to local filesystem)" - description: "- JSON: JSON / YAML for the metadata (which contains inlined primitive\ - \ values). The representation is inline with the standard json specification\ - \ as specified - https://www.json.org/json-en.html\n - PROTO: Proto is a serialized\ - \ binary of `core.LiteralMap` defined in flyteidl/core" - enum: - - "JSON" - - "YAML" - - "PROTO" - default: "JSON" - ExecutionErrorErrorKind: - type: "string" - title: "Error type: System or User" - enum: - - "UNKNOWN" - - "USER" - - "SYSTEM" - default: "UNKNOWN" - ExecutionMetadataExecutionMode: - type: "string" - description: "The method by which this execution was launched.\n\n - MANUAL: The\ - \ default execution mode, MANUAL implies that an execution was launched by an\ - \ individual.\n - SCHEDULED: A schedule triggered this execution launch.\n -\ - \ SYSTEM: A system process was responsible for launching this execution rather\ - \ an individual.\n - RELAUNCH: This execution was launched with identical inputs\ - \ as a previous execution.\n - CHILD_WORKFLOW: This execution was triggered\ - \ by another execution.\n - RECOVERED: This execution was recovered from another\ - \ execution." - enum: - - "MANUAL" - - "SCHEDULED" - - "SYSTEM" - - "RELAUNCH" - - "CHILD_WORKFLOW" - - "RECOVERED" - default: "MANUAL" - IOStrategyDownloadMode: - type: "string" - title: "Mode to use for downloading" - description: "- DOWNLOAD_EAGER: All data will be downloaded before the main container\ - \ is executed\n - DOWNLOAD_STREAM: Data will be downloaded as a stream and an\ - \ End-Of-Stream marker will be written to indicate all data has been downloaded.\ - \ Refer to protocol for details\n - DO_NOT_DOWNLOAD: Large objects (offloaded)\ - \ will not be downloaded" - enum: - - "DOWNLOAD_EAGER" - - "DOWNLOAD_STREAM" - - "DO_NOT_DOWNLOAD" - default: "DOWNLOAD_EAGER" - IOStrategyUploadMode: - type: "string" - title: "Mode to use for uploading" - description: "- UPLOAD_ON_EXIT: All data will be uploaded after the main container\ - \ exits\n - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol\ - \ specification for details\n - DO_NOT_UPLOAD: Data will not be uploaded, only\ - \ references will be written" - enum: - - "UPLOAD_ON_EXIT" - - "UPLOAD_EAGER" - - "DO_NOT_UPLOAD" - default: "UPLOAD_ON_EXIT" - PluginOverrideMissingPluginBehavior: - type: "string" - description: " - FAIL: By default, if this plugin is not enabled for a Flyte deployment\ - \ then execution will fail.\n - USE_DEFAULT: Uses the system-configured default\ - \ implementation." - enum: - - "FAIL" - - "USE_DEFAULT" - default: "FAIL" - ProjectProjectState: - type: "string" - description: "The state of the project is used to control its visibility in the\ - \ UI and validity.\n\n - ACTIVE: By default, all projects are considered active.\n\ - \ - ARCHIVED: Archived projects are no longer visible in the UI and no longer\ - \ valid.\n - SYSTEM_GENERATED: System generated projects that aren't explicitly\ - \ created or managed by a user." - enum: - - "ACTIVE" - - "ARCHIVED" - - "SYSTEM_GENERATED" - default: "ACTIVE" - QualityOfServiceTier: - type: "string" - description: " - UNDEFINED: Default: no quality of service specified." - enum: - - "UNDEFINED" - - "HIGH" - - "MEDIUM" - - "LOW" - default: "UNDEFINED" - ResourcesResourceEntry: - type: "object" - properties: - name: - description: "Resource name." - $ref: "#/definitions/ResourcesResourceName" - value: - type: "string" - title: "Value must be a valid k8s quantity. See\nhttps://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80" - description: "Encapsulates a resource name and value." - example: - name: {} - value: "value" - ResourcesResourceName: - type: "string" - description: "Known resource names.\n\n - EPHEMERAL_STORAGE: For Kubernetes-based\ - \ deployments, pods use ephemeral local storage for scratch space, caching,\ - \ and for logs." - enum: - - "UNKNOWN" - - "CPU" - - "GPU" - - "MEMORY" - - "STORAGE" - - "EPHEMERAL_STORAGE" - default: "UNKNOWN" - RuntimeMetadataRuntimeType: - type: "string" - enum: - - "OTHER" - - "FLYTE_SDK" - default: "OTHER" - SchemaColumnSchemaColumnType: - type: "string" - enum: - - "INTEGER" - - "FLOAT" - - "STRING" - - "BOOLEAN" - - "DATETIME" - - "DURATION" - default: "INTEGER" - SchemaTypeSchemaColumn: - type: "object" - properties: - name: - type: "string" - title: "A unique name -within the schema type- for the column" - type: - description: "The column type. This allows a limited set of types currently." - $ref: "#/definitions/SchemaColumnSchemaColumnType" - example: - name: "name" - type: {} - SecretMountType: - type: "string" - description: " - ANY: Default case, indicates the client can tolerate either mounting\ - \ options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as\ - \ an environment variable.\n - FILE: FILE indicates the secret needs to be mounted\ - \ as a file." - enum: - - "ANY" - - "ENV_VAR" - - "FILE" - default: "ANY" - SortDirection: - type: "string" - description: " - DESCENDING: By default, fields are sorted in descending order." - enum: - - "DESCENDING" - - "ASCENDING" - default: "DESCENDING" - SqlDialect: - type: "string" - description: "The dialect of the SQL statement. This is used to validate and parse\ - \ SQL statements at compilation time to avoid\nexpensive runtime operations.\ - \ If set to an unsupported dialect, no validation will be done on the statement.\n\ - We support the following dialect: ansi, hive." - enum: - - "UNDEFINED" - - "ANSI" - - "HIVE" - - "OTHER" - default: "UNDEFINED" - StructuredDatasetTypeDatasetColumn: - type: "object" - properties: - name: - type: "string" - description: "A unique name within the schema type for the column." - literal_type: - description: "The column type." - $ref: "#/definitions/coreLiteralType" - example: - name: "name" - TaskExecutionMetadataInstanceClass: - type: "string" - description: "Includes the broad category of machine used for this specific task\ - \ execution.\n\n - DEFAULT: The default instance class configured for the flyte\ - \ application platform.\n - INTERRUPTIBLE: The instance class configured for\ - \ interruptible tasks." - enum: - - "DEFAULT" - - "INTERRUPTIBLE" - default: "DEFAULT" - TaskLogMessageFormat: - type: "string" - enum: - - "UNKNOWN" - - "CSV" - - "JSON" - default: "UNKNOWN" - WorkflowMetadataOnFailurePolicy: - type: "string" - title: "Failure Handling Strategy" - description: "- FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail\ - \ as soon as a node fails in the workflow. It'll automatically\nabort all currently\ - \ running nodes and clean up resources before finally marking the workflow executions\ - \ as\nfailed.\n - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\ - \ instructs the system to make as much progress as it can. The system will\n\ - not alter the dependencies of the execution graph so any node that depend on\ - \ the failed node will not be run.\nOther nodes that will be executed to completion\ - \ before cleaning up resources and marking the workflow\nexecution as failed." - enum: - - "FAIL_IMMEDIATELY" - - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" - default: "FAIL_IMMEDIATELY" - adminAbortMetadata: - type: "object" - properties: - cause: - type: "string" - description: "In the case of a user-specified abort, this will pass along\ - \ the user-supplied cause." - principal: - type: "string" - title: "Identifies the entity (if any) responsible for terminating the execution" - description: "Specifies metadata around an aborted workflow execution." - example: - principal: "principal" - cause: "cause" - adminAnnotations: - type: "object" - properties: - values: - type: "object" - description: "Map of custom annotations to be applied to the execution resource." - additionalProperties: - type: "string" - description: "Annotation values to be applied to an execution resource.\nIn the\ - \ future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how\ - \ to merge annotations defined at registration and execution time." - example: - values: - key: "values" - adminAuth: - type: "object" - properties: - assumable_iam_role: - type: "string" - description: "Defines an optional iam role which will be used for tasks run\ - \ in executions created with this launch plan." - kubernetes_service_account: - type: "string" - description: "Defines an optional kubernetes service account which will be\ - \ used for tasks run in executions created with this launch plan." - description: "Defines permissions associated with executions created by this launch\ - \ plan spec.\nUse either of these roles when they have permissions required\ - \ by your workflow execution.\nDeprecated." - example: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminAuthRole: - type: "object" - properties: - assumable_iam_role: - type: "string" - description: "Defines an optional iam role which will be used for tasks run\ - \ in executions created with this launch plan." - kubernetes_service_account: - type: "string" - description: "Defines an optional kubernetes service account which will be\ - \ used for tasks run in executions created with this launch plan." - description: "Defines permissions associated with executions created by this launch\ - \ plan spec.\nUse either of these roles when they have permissions required\ - \ by your workflow execution.\nDeprecated." - example: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminClusterAssignment: - type: "object" - properties: - cluster_pool_name: - type: "string" - description: "Encapsulates specifications for routing an execution onto a specific\ - \ cluster." - example: - cluster_pool_name: "cluster_pool_name" - adminClusterResourceAttributes: - type: "object" - properties: - attributes: - type: "object" - description: "Custom resource attributes which will be applied in cluster\ - \ resource creation (e.g. quotas).\nMap keys are the *case-sensitive* names\ - \ of variables in templatized resource files.\nMap values should be the\ - \ custom values which get substituted during resource creation." - additionalProperties: - type: "string" - example: - attributes: - key: "attributes" - adminCronSchedule: - type: "object" - properties: - schedule: - type: "string" - title: "Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;\n\ - Also supports nonstandard predefined scheduling definitions\nas described\ - \ by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions\n\ - except @reboot" - offset: - type: "string" - title: "ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations" - description: "Options for schedules to run according to a cron expression." - example: - schedule: "schedule" - offset: "offset" - adminDescription: - type: "object" - properties: - value: - type: "string" - title: "long description - no more than 4KB" - uri: - type: "string" - title: "if the description sizes exceed some threshold we can offload the\ - \ entire\ndescription proto altogether to an external data store, like S3\ - \ rather than store inline in the db" - format: - title: "Format of the long description" - $ref: "#/definitions/adminDescriptionFormat" - icon_link: - type: "string" - title: "Optional link to an icon for the entity" - description: "Full user description with formatting preserved. This can be rendered\n\ - by clients, such as the console or command line tools with in-tact\nformatting." - example: - format: {} - icon_link: "icon_link" - value: "value" - uri: "uri" - adminDescriptionEntity: - type: "object" - properties: - id: - description: "id represents the unique identifier of the description entity." - $ref: "#/definitions/coreIdentifier" - short_description: - type: "string" - description: "One-liner overview of the entity." - long_description: - description: "Full user description with formatting preserved." - $ref: "#/definitions/adminDescription" - source_code: - description: "Optional link to source code used to define this entity." - $ref: "#/definitions/adminSourceCode" - tags: - type: "array" - description: "User-specified tags. These are arbitrary and can be used for\ - \ searching\nfiltering and discovering tasks." - items: - type: "string" - description: "DescriptionEntity contains detailed description for the task/workflow.\n\ - Documentation could provide insight into the algorithms, business use case,\ - \ etc." - example: - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - long_description: - format: {} - icon_link: "icon_link" - value: "value" - uri: "uri" - source_code: - link: "link" - tags: - - "tags" - - "tags" - adminDescriptionEntityList: - type: "object" - properties: - descriptionEntities: - type: "array" - description: "A list of DescriptionEntities returned based on the request." - items: - $ref: "#/definitions/adminDescriptionEntity" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Represents a list of DescriptionEntities returned from the admin.\nSee\ - \ :ref:`ref_flyteidl.admin.DescriptionEntity` for more details" - example: - descriptionEntities: - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - long_description: - format: {} - icon_link: "icon_link" - value: "value" - uri: "uri" - source_code: - link: "link" - tags: - - "tags" - - "tags" - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - long_description: - format: {} - icon_link: "icon_link" - value: "value" - uri: "uri" - source_code: - link: "link" - tags: - - "tags" - - "tags" - token: "token" - adminDescriptionFormat: - type: "string" - title: "The format of the long description" - description: "- DESCRIPTION_FORMAT_RST: python default documentation - comments\ - \ is rst" - enum: - - "DESCRIPTION_FORMAT_UNKNOWN" - - "DESCRIPTION_FORMAT_MARKDOWN" - - "DESCRIPTION_FORMAT_HTML" - - "DESCRIPTION_FORMAT_RST" - default: "DESCRIPTION_FORMAT_UNKNOWN" - adminDomain: - type: "object" - properties: - id: - type: "string" - description: "Globally unique domain name." - name: - type: "string" - description: "Display name." - description: "Namespace within a project commonly used to differentiate between\ - \ different service instances.\ne.g. \"production\", \"development\", etc." - example: - name: "name" - id: "id" - adminEmailNotification: - type: "object" - properties: - recipients_email: - type: "array" - title: "The list of email addresses recipients for this notification.\n+required" - items: - type: "string" - description: "Defines an email notification specification." - example: - recipients_email: - - "recipients_email" - - "recipients_email" - adminEnvs: - type: "object" - properties: - values: - type: "array" - description: "Map of custom environment variables to be applied to the execution\ - \ resource." - items: - $ref: "#/definitions/coreKeyValuePair" - description: "Environment variable values to be applied to an execution resource.\n\ - In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify\ - \ how to merge environment variables defined at registration and execution time." - example: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - adminExecution: - type: "object" - properties: - id: - description: "Unique identifier of the workflow execution." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - spec: - description: "User-provided configuration and inputs for launching the execution." - $ref: "#/definitions/adminExecutionSpec" - closure: - description: "Execution results." - $ref: "#/definitions/adminExecutionClosure" - description: "A workflow execution represents an instantiated workflow, including\ - \ all inputs and additional\nmetadata as well as computed results included state,\ - \ outputs, and duration-based attributes.\nUsed as a response object used in\ - \ Get and List execution requests." - example: - id: - domain: "domain" - name: "name" - project: "project" - closure: - outputs: - values: - literals: {} - uri: "uri" - phase: {} - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - created_at: "2000-01-23T04:56:07.000+00:00" - state_change_details: - occurred_at: "2000-01-23T04:56:07.000+00:00" - principal: "principal" - state: {} - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - computed_inputs: - literals: {} - abort_metadata: - principal: "principal" - cause: "cause" - updated_at: "2000-01-23T04:56:07.000+00:00" - started_at: "2000-01-23T04:56:07.000+00:00" - abort_cause: "abort_cause" - output_data: - literals: {} - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - spec: - metadata: - mode: {} - principal: "principal" - parent_node_execution: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - reference_execution: - domain: "domain" - name: "name" - project: "project" - artifact_ids: - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - scheduled_at: "2000-01-23T04:56:07.000+00:00" - nesting: 0 - system_metadata: - execution_cluster: "execution_cluster" - namespace: "namespace" - disable_all: true - inputs: - literals: {} - annotations: - values: - key: "values" - max_parallelism: 6 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - tags: - - "tags" - - "tags" - launch_plan: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - notifications: - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminExecutionClosure: - type: "object" - properties: - outputs: - description: "Output URI in the case of a successful execution.\nDEPRECATED.\ - \ Use GetExecutionData to fetch output data instead." - $ref: "#/definitions/adminLiteralMapBlob" - error: - description: "Error information in the case of a failed execution." - $ref: "#/definitions/coreExecutionError" - abort_cause: - type: "string" - description: "In the case of a user-specified abort, this will pass along\ - \ the user-supplied cause." - abort_metadata: - description: "In the case of a user-specified abort, this will pass along\ - \ the user and their supplied cause." - $ref: "#/definitions/adminAbortMetadata" - output_data: - description: "Raw output data produced by this execution.\nDEPRECATED. Use\ - \ GetExecutionData to fetch output data instead." - $ref: "#/definitions/coreLiteralMap" - computed_inputs: - title: "Inputs computed and passed for execution.\ncomputed_inputs depends\ - \ on inputs in ExecutionSpec, fixed and default inputs in launch plan" - $ref: "#/definitions/coreLiteralMap" - phase: - description: "Most recent recorded phase for the execution." - $ref: "#/definitions/coreWorkflowExecutionPhase" - started_at: - type: "string" - format: "date-time" - description: "Reported time at which the execution began running." - duration: - type: "string" - description: "The amount of time the execution spent running." - created_at: - type: "string" - format: "date-time" - description: "Reported time at which the execution was created." - updated_at: - type: "string" - format: "date-time" - description: "Reported time at which the execution was last updated." - notifications: - type: "array" - description: "The notification settings to use after merging the CreateExecutionRequest\ - \ and the launch plan\nnotification settings. An execution launched with\ - \ notifications will always prefer that definition\nto notifications defined\ - \ statically in a launch plan." - items: - $ref: "#/definitions/adminNotification" - workflow_id: - description: "Identifies the workflow definition for this execution." - $ref: "#/definitions/coreIdentifier" - state_change_details: - title: "Provides the details of the last stage change" - $ref: "#/definitions/adminExecutionStateChangeDetails" - title: "Encapsulates the results of the Execution" - example: - outputs: - values: - literals: {} - uri: "uri" - phase: {} - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - created_at: "2000-01-23T04:56:07.000+00:00" - state_change_details: - occurred_at: "2000-01-23T04:56:07.000+00:00" - principal: "principal" - state: {} - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - computed_inputs: - literals: {} - abort_metadata: - principal: "principal" - cause: "cause" - updated_at: "2000-01-23T04:56:07.000+00:00" - started_at: "2000-01-23T04:56:07.000+00:00" - abort_cause: "abort_cause" - output_data: - literals: {} - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - adminExecutionClusterLabel: - type: "object" - properties: - value: - type: "string" - title: "Label value to determine where the execution will be run" - example: - value: "value" - adminExecutionCreateRequest: - type: "object" - properties: - project: - type: "string" - title: "Name of the project the execution belongs to.\n+required" - domain: - type: "string" - title: "Name of the domain the execution belongs to.\nA domain can be considered\ - \ as a subset within a specific project.\n+required" - name: - type: "string" - title: "User provided value for the resource.\nIf none is provided the system\ - \ will generate a unique string.\n+optional" - spec: - title: "Additional fields necessary to launch the execution.\n+optional" - $ref: "#/definitions/adminExecutionSpec" - inputs: - title: "The inputs required to start the execution. All required inputs must\ - \ be\nincluded in this map. If not required and not provided, defaults apply.\n\ - +optional" - $ref: "#/definitions/coreLiteralMap" - description: "Request to launch an execution with the given project, domain and\ - \ optionally-assigned name." - adminExecutionCreateResponse: - type: "object" - properties: - id: - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - description: "The unique identifier for a successfully created execution.\nIf\ - \ the name was *not* specified in the create request, this identifier will include\ - \ a generated name." - example: - id: - domain: "domain" - name: "name" - project: "project" - adminExecutionList: - type: "object" - properties: - executions: - type: "array" - items: - $ref: "#/definitions/adminExecution" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Used as a response for request to list executions.\nSee :ref:`ref_flyteidl.admin.Execution`\ - \ for more details" - example: - executions: - - id: - domain: "domain" - name: "name" - project: "project" - closure: - outputs: - values: - literals: {} - uri: "uri" - phase: {} - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - created_at: "2000-01-23T04:56:07.000+00:00" - state_change_details: - occurred_at: "2000-01-23T04:56:07.000+00:00" - principal: "principal" - state: {} - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - computed_inputs: - literals: {} - abort_metadata: - principal: "principal" - cause: "cause" - updated_at: "2000-01-23T04:56:07.000+00:00" - started_at: "2000-01-23T04:56:07.000+00:00" - abort_cause: "abort_cause" - output_data: - literals: {} - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - spec: - metadata: - mode: {} - principal: "principal" - parent_node_execution: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - reference_execution: - domain: "domain" - name: "name" - project: "project" - artifact_ids: - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - scheduled_at: "2000-01-23T04:56:07.000+00:00" - nesting: 0 - system_metadata: - execution_cluster: "execution_cluster" - namespace: "namespace" - disable_all: true - inputs: - literals: {} - annotations: - values: - key: "values" - max_parallelism: 6 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - tags: - - "tags" - - "tags" - launch_plan: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - notifications: - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - - id: - domain: "domain" - name: "name" - project: "project" - closure: - outputs: - values: - literals: {} - uri: "uri" - phase: {} - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - created_at: "2000-01-23T04:56:07.000+00:00" - state_change_details: - occurred_at: "2000-01-23T04:56:07.000+00:00" - principal: "principal" - state: {} - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - computed_inputs: - literals: {} - abort_metadata: - principal: "principal" - cause: "cause" - updated_at: "2000-01-23T04:56:07.000+00:00" - started_at: "2000-01-23T04:56:07.000+00:00" - abort_cause: "abort_cause" - output_data: - literals: {} - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - spec: - metadata: - mode: {} - principal: "principal" - parent_node_execution: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - reference_execution: - domain: "domain" - name: "name" - project: "project" - artifact_ids: - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - scheduled_at: "2000-01-23T04:56:07.000+00:00" - nesting: 0 - system_metadata: - execution_cluster: "execution_cluster" - namespace: "namespace" - disable_all: true - inputs: - literals: {} - annotations: - values: - key: "values" - max_parallelism: 6 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - tags: - - "tags" - - "tags" - launch_plan: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - notifications: - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - token: "token" - adminExecutionMetadata: - type: "object" - properties: - mode: - $ref: "#/definitions/ExecutionMetadataExecutionMode" - principal: - type: "string" - description: "Identifier of the entity that triggered this execution.\nFor\ - \ systems using back-end authentication any value set here will be discarded\ - \ in favor of the\nauthenticated user context." - nesting: - type: "integer" - format: "int64" - description: "Indicates the nestedness of this execution.\nIf a user launches\ - \ a workflow execution, the default nesting is 0.\nIf this execution further\ - \ launches a workflow (child workflow), the nesting level is incremented\ - \ by 0 => 1\nGenerally, if workflow at nesting level k launches a workflow\ - \ then the child workflow will have\nnesting = k + 1." - scheduled_at: - type: "string" - format: "date-time" - description: "For scheduled executions, the requested time for execution for\ - \ this specific schedule invocation." - parent_node_execution: - title: "Which subworkflow node (if any) launched this execution" - $ref: "#/definitions/coreNodeExecutionIdentifier" - reference_execution: - description: "Optional, a reference workflow execution related to this execution.\n\ - In the case of a relaunch, this references the original workflow execution." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - system_metadata: - description: "Optional, platform-specific metadata about the execution.\n\ - In this the future this may be gated behind an ACL or some sort of authorization." - $ref: "#/definitions/adminSystemMetadata" - artifact_ids: - type: "array" - description: "Save a list of the artifacts used in this execution for now.\ - \ This is a list only rather than a mapping\nsince we don't have a structure\ - \ to handle nested ones anyways." - items: - $ref: "#/definitions/coreArtifactID" - description: "Represents attributes about an execution which are not required\ - \ to launch the execution but are useful to record.\nThese attributes are assigned\ - \ at launch time and do not change." - example: - mode: {} - principal: "principal" - parent_node_execution: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - reference_execution: - domain: "domain" - name: "name" - project: "project" - artifact_ids: - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - scheduled_at: "2000-01-23T04:56:07.000+00:00" - nesting: 0 - system_metadata: - execution_cluster: "execution_cluster" - namespace: "namespace" - adminExecutionQueueAttributes: - type: "object" - properties: - tags: - type: "array" - description: "Tags used for assigning execution queues for tasks defined within\ - \ this project." - items: - type: "string" - example: - tags: - - "tags" - - "tags" - adminExecutionRecoverRequest: - type: "object" - properties: - id: - description: "Identifier of the workflow execution to recover." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - name: - type: "string" - title: "User provided value for the recovered execution.\nIf none is provided\ - \ the system will generate a unique string.\n+optional" - metadata: - description: "Additional metadata which will be used to overwrite any metadata\ - \ in the reference execution when triggering a recovery execution." - $ref: "#/definitions/adminExecutionMetadata" - description: "Request to recover the referenced execution." - adminExecutionRelaunchRequest: - type: "object" - properties: - id: - title: "Identifier of the workflow execution to relaunch.\n+required" - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - name: - type: "string" - title: "User provided value for the relaunched execution.\nIf none is provided\ - \ the system will generate a unique string.\n+optional" - overwrite_cache: - type: "boolean" - format: "boolean" - description: "Allows for all cached values of a workflow and its tasks to\ - \ be overwritten for a single execution.\nIf enabled, all calculations are\ - \ performed even if cached results would be available, overwriting the stored\n\ - data once execution finishes successfully." - description: "Request to relaunch the referenced execution." - adminExecutionSpec: - type: "object" - properties: - launch_plan: - title: "Launch plan to be executed" - $ref: "#/definitions/coreIdentifier" - inputs: - title: "Input values to be passed for the execution" - $ref: "#/definitions/coreLiteralMap" - metadata: - title: "Metadata for the execution" - $ref: "#/definitions/adminExecutionMetadata" - notifications: - description: "List of notifications based on Execution status transitions\n\ - When this list is not empty it is used rather than any notifications defined\ - \ in the referenced launch plan.\nWhen this list is empty, the notifications\ - \ defined for the launch plan will be applied." - $ref: "#/definitions/adminNotificationList" - disable_all: - type: "boolean" - format: "boolean" - description: "This should be set to true if all notifications are intended\ - \ to be disabled for this execution." - labels: - description: "Labels to apply to the execution resource." - $ref: "#/definitions/adminLabels" - annotations: - description: "Annotations to apply to the execution resource." - $ref: "#/definitions/adminAnnotations" - security_context: - description: "Optional: security context override to apply this execution." - $ref: "#/definitions/coreSecurityContext" - auth_role: - description: "Optional: auth override to apply this execution." - $ref: "#/definitions/adminAuthRole" - quality_of_service: - description: "Indicates the runtime priority of the execution." - $ref: "#/definitions/coreQualityOfService" - max_parallelism: - type: "integer" - format: "int32" - description: "Controls the maximum number of task nodes that can be run in\ - \ parallel for the entire workflow.\nThis is useful to achieve fairness.\ - \ Note: MapTasks are regarded as one unit,\nand parallelism/concurrency\ - \ of MapTasks is independent from this." - raw_output_data_config: - title: "User setting to configure where to store offloaded data (i.e. Blobs,\ - \ structured datasets, query data, etc.).\nThis should be a prefix like\ - \ s3://my-bucket/my-data" - $ref: "#/definitions/adminRawOutputDataConfig" - cluster_assignment: - description: "Controls how to select an available cluster on which this execution\ - \ should run." - $ref: "#/definitions/adminClusterAssignment" - interruptible: - type: "boolean" - format: "boolean" - description: "Allows for the interruptible flag of a workflow to be overwritten\ - \ for a single execution.\nOmitting this field uses the workflow's value\ - \ as a default.\nAs we need to distinguish between the field not being provided\ - \ and its default value false, we have to use a wrapper\naround the bool\ - \ field." - overwrite_cache: - type: "boolean" - format: "boolean" - description: "Allows for all cached values of a workflow and its tasks to\ - \ be overwritten for a single execution.\nIf enabled, all calculations are\ - \ performed even if cached results would be available, overwriting the stored\n\ - data once execution finishes successfully." - envs: - description: "Environment variables to be set for the execution." - $ref: "#/definitions/adminEnvs" - tags: - type: "array" - description: "Tags to be set for the execution." - items: - type: "string" - description: "An ExecutionSpec encompasses all data used to launch this execution.\ - \ The Spec does not change over the lifetime\nof an execution as it progresses\ - \ across phase changes." - example: - metadata: - mode: {} - principal: "principal" - parent_node_execution: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - reference_execution: - domain: "domain" - name: "name" - project: "project" - artifact_ids: - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - scheduled_at: "2000-01-23T04:56:07.000+00:00" - nesting: 0 - system_metadata: - execution_cluster: "execution_cluster" - namespace: "namespace" - disable_all: true - inputs: - literals: {} - annotations: - values: - key: "values" - max_parallelism: 6 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - tags: - - "tags" - - "tags" - launch_plan: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - notifications: - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminExecutionState: - type: "string" - description: "The state of the execution is used to control its visibility in\ - \ the UI/CLI.\n\n - EXECUTION_ACTIVE: By default, all executions are considered\ - \ active.\n - EXECUTION_ARCHIVED: Archived executions are no longer visible\ - \ in the UI." - enum: - - "EXECUTION_ACTIVE" - - "EXECUTION_ARCHIVED" - default: "EXECUTION_ACTIVE" - adminExecutionStateChangeDetails: - type: "object" - properties: - state: - description: "The state of the execution is used to control its visibility\ - \ in the UI/CLI." - $ref: "#/definitions/adminExecutionState" - occurred_at: - type: "string" - format: "date-time" - description: "This timestamp represents when the state changed." - principal: - type: "string" - title: "Identifies the entity (if any) responsible for causing the state change\ - \ of the execution" - example: - occurred_at: "2000-01-23T04:56:07.000+00:00" - principal: "principal" - state: {} - adminExecutionTerminateRequest: - type: "object" - properties: - id: - description: "Uniquely identifies the individual workflow execution to be\ - \ terminated." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - cause: - type: "string" - description: "Optional reason for aborting." - description: "Request to terminate an in-progress execution. This action is irreversible.\n\ - If an execution is already terminated, this request will simply be a no-op.\n\ - This request will fail if it references a non-existent execution.\nIf the request\ - \ succeeds the phase \"ABORTED\" will be recorded for the termination\nwith\ - \ the optional cause added to the output_result." - adminExecutionTerminateResponse: - type: "object" - adminExecutionUpdateRequest: - type: "object" - properties: - id: - title: "Identifier of the execution to update" - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - state: - title: "State to set as the new value active/archive" - $ref: "#/definitions/adminExecutionState" - adminExecutionUpdateResponse: - type: "object" - adminFixedRate: - type: "object" - properties: - value: - type: "integer" - format: "int64" - unit: - $ref: "#/definitions/adminFixedRateUnit" - description: "Option for schedules run at a certain frequency e.g. every 2 minutes." - example: - unit: {} - value: 0 - adminFixedRateUnit: - type: "string" - description: "Represents a frequency at which to run a schedule." - enum: - - "MINUTE" - - "HOUR" - - "DAY" - default: "MINUTE" - adminFlyteURLs: - type: "object" - properties: - inputs: - type: "string" - outputs: - type: "string" - deck: - type: "string" - description: "These URLs are returned as part of node and task execution data\ - \ requests." - example: - outputs: "outputs" - inputs: "inputs" - deck: "deck" - adminGetVersionResponse: - type: "object" - properties: - control_plane_version: - title: "The control plane version information. FlyteAdmin and related components\n\ - form the control plane of Flyte" - $ref: "#/definitions/adminVersion" - title: "Response for the GetVersion API" - example: - control_plane_version: - Version: "Version" - Build: "Build" - BuildTime: "BuildTime" - adminLabels: - type: "object" - properties: - values: - type: "object" - description: "Map of custom labels to be applied to the execution resource." - additionalProperties: - type: "string" - description: "Label values to be applied to an execution resource.\nIn the future\ - \ a mode (e.g. OVERRIDE, APPEND, etc) can be defined\nto specify how to merge\ - \ labels defined at registration and execution time." - example: - values: - key: "values" - adminLaunchPlan: - type: "object" - properties: - id: - description: "Uniquely identifies a launch plan entity." - $ref: "#/definitions/coreIdentifier" - spec: - description: "User-provided launch plan details, including reference workflow,\ - \ inputs and other metadata." - $ref: "#/definitions/adminLaunchPlanSpec" - closure: - description: "Values computed by the flyte platform after launch plan registration." - $ref: "#/definitions/adminLaunchPlanClosure" - description: "A LaunchPlan provides the capability to templatize workflow executions.\n\ - Launch plans simplify associating one or more schedules, inputs and notifications\ - \ with your workflows.\nLaunch plans can be shared and used to trigger executions\ - \ with predefined inputs even when a workflow\ndefinition doesn't necessarily\ - \ have a default value for said input." - example: - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - expected_outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - state: {} - expected_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - spec: - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - fixed_inputs: - literals: {} - role: "role" - auth: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - entity_metadata: - schedule: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - launch_conditions: - value: "value" - type_url: "type_url" - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - annotations: - values: - key: "values" - max_parallelism: 5 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - default_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminLaunchPlanClosure: - type: "object" - properties: - state: - description: "Indicate the Launch plan state." - $ref: "#/definitions/adminLaunchPlanState" - expected_inputs: - title: "Indicates the set of inputs expected when creating an execution with\ - \ the Launch plan" - $ref: "#/definitions/coreParameterMap" - expected_outputs: - title: "Indicates the set of outputs expected to be produced by creating an\ - \ execution with the Launch plan" - $ref: "#/definitions/coreVariableMap" - created_at: - type: "string" - format: "date-time" - description: "Time at which the launch plan was created." - updated_at: - type: "string" - format: "date-time" - description: "Time at which the launch plan was last updated." - description: "Values computed by the flyte platform after launch plan registration.\n\ - These include expected_inputs required to be present in a CreateExecutionRequest\n\ - to launch the reference workflow as well timestamp values associated with the\ - \ launch plan." - example: - expected_outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - state: {} - expected_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - adminLaunchPlanCreateRequest: - type: "object" - properties: - id: - description: "Uniquely identifies a launch plan entity." - $ref: "#/definitions/coreIdentifier" - spec: - description: "User-provided launch plan details, including reference workflow,\ - \ inputs and other metadata." - $ref: "#/definitions/adminLaunchPlanSpec" - description: "Request to register a launch plan. The included LaunchPlanSpec may\ - \ have a complete or incomplete set of inputs required\nto launch a workflow\ - \ execution. By default all launch plans are registered in state INACTIVE. If\ - \ you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest,\ - \ after you have successfully created a launch plan." - adminLaunchPlanCreateResponse: - type: "object" - adminLaunchPlanList: - type: "object" - properties: - launch_plans: - type: "array" - items: - $ref: "#/definitions/adminLaunchPlan" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Response object for list launch plan requests.\nSee :ref:`ref_flyteidl.admin.LaunchPlan`\ - \ for more details" - example: - launch_plans: - - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - expected_outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - state: {} - expected_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - spec: - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - fixed_inputs: - literals: {} - role: "role" - auth: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - entity_metadata: - schedule: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - launch_conditions: - value: "value" - type_url: "type_url" - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - annotations: - values: - key: "values" - max_parallelism: 5 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - default_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - expected_outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - state: {} - expected_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - spec: - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - fixed_inputs: - literals: {} - role: "role" - auth: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - entity_metadata: - schedule: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - launch_conditions: - value: "value" - type_url: "type_url" - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - annotations: - values: - key: "values" - max_parallelism: 5 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - default_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - token: "token" - adminLaunchPlanMetadata: - type: "object" - properties: - schedule: - title: "Schedule to execute the Launch Plan" - $ref: "#/definitions/adminSchedule" - notifications: - type: "array" - title: "List of notifications based on Execution status transitions" - items: - $ref: "#/definitions/adminNotification" - launch_conditions: - title: "Additional metadata for how to launch the launch plan" - $ref: "#/definitions/protobufAny" - description: "Additional launch plan attributes included in the LaunchPlanSpec\ - \ not strictly required to launch\nthe reference workflow." - example: - schedule: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - launch_conditions: - value: "value" - type_url: "type_url" - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - adminLaunchPlanSpec: - type: "object" - properties: - workflow_id: - title: "Reference to the Workflow template that the launch plan references" - $ref: "#/definitions/coreIdentifier" - entity_metadata: - title: "Metadata for the Launch Plan" - $ref: "#/definitions/adminLaunchPlanMetadata" - default_inputs: - description: "Input values to be passed for the execution.\nThese can be overridden\ - \ when an execution is created with this launch plan." - $ref: "#/definitions/coreParameterMap" - fixed_inputs: - description: "Fixed, non-overridable inputs for the Launch Plan.\nThese can\ - \ not be overridden when an execution is created with this launch plan." - $ref: "#/definitions/coreLiteralMap" - role: - type: "string" - title: "String to indicate the role to use to execute the workflow underneath" - labels: - description: "Custom labels to be applied to the execution resource." - $ref: "#/definitions/adminLabels" - annotations: - description: "Custom annotations to be applied to the execution resource." - $ref: "#/definitions/adminAnnotations" - auth: - description: "Indicates the permission associated with workflow executions\ - \ triggered with this launch plan." - $ref: "#/definitions/adminAuth" - auth_role: - $ref: "#/definitions/adminAuthRole" - security_context: - title: "Indicates security context for permissions triggered with this launch\ - \ plan" - $ref: "#/definitions/coreSecurityContext" - quality_of_service: - description: "Indicates the runtime priority of the execution." - $ref: "#/definitions/coreQualityOfService" - raw_output_data_config: - description: "Encapsulates user settings pertaining to offloaded data (i.e.\ - \ Blobs, Schema, query data, etc.)." - $ref: "#/definitions/adminRawOutputDataConfig" - max_parallelism: - type: "integer" - format: "int32" - description: "Controls the maximum number of tasknodes that can be run in\ - \ parallel for the entire workflow.\nThis is useful to achieve fairness.\ - \ Note: MapTasks are regarded as one unit,\nand parallelism/concurrency\ - \ of MapTasks is independent from this." - interruptible: - type: "boolean" - format: "boolean" - description: "Allows for the interruptible flag of a workflow to be overwritten\ - \ for a single execution.\nOmitting this field uses the workflow's value\ - \ as a default.\nAs we need to distinguish between the field not being provided\ - \ and its default value false, we have to use a wrapper\naround the bool\ - \ field." - overwrite_cache: - type: "boolean" - format: "boolean" - description: "Allows for all cached values of a workflow and its tasks to\ - \ be overwritten for a single execution.\nIf enabled, all calculations are\ - \ performed even if cached results would be available, overwriting the stored\n\ - data once execution finishes successfully." - envs: - description: "Environment variables to be set for the execution." - $ref: "#/definitions/adminEnvs" - description: "User-provided launch plan definition and configuration values." - example: - workflow_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - fixed_inputs: - literals: {} - role: "role" - auth: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - entity_metadata: - schedule: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - launch_conditions: - value: "value" - type_url: "type_url" - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - annotations: - values: - key: "values" - max_parallelism: 5 - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - labels: - values: - key: "values" - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - default_inputs: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - auth_role: - kubernetes_service_account: "kubernetes_service_account" - assumable_iam_role: "assumable_iam_role" - adminLaunchPlanState: - type: "string" - description: "By default any launch plan regardless of state can be used to launch\ - \ a workflow execution.\nHowever, at most one version of a launch plan\n(e.g.\ - \ a NamedEntityIdentifier set of shared project, domain and name values) can\ - \ be\nactive at a time in regards to *schedules*. That is, at most one schedule\ - \ in a NamedEntityIdentifier\ngroup will be observed and trigger executions\ - \ at a defined cadence." - enum: - - "INACTIVE" - - "ACTIVE" - default: "INACTIVE" - adminLaunchPlanUpdateRequest: - type: "object" - properties: - id: - description: "Identifier of launch plan for which to change state.\n+required." - $ref: "#/definitions/coreIdentifier" - state: - description: "Desired state to apply to the launch plan.\n+required." - $ref: "#/definitions/adminLaunchPlanState" - title: "Request to set the referenced launch plan state to the configured value.\n\ - See :ref:`ref_flyteidl.admin.LaunchPlan` for more details" - adminLaunchPlanUpdateResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminListMatchableAttributesResponse: - type: "object" - properties: - configurations: - type: "array" - items: - $ref: "#/definitions/adminMatchableAttributesConfiguration" - title: "Response for a request for all matching resource attributes for a resource\ - \ type.\nSee :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for\ - \ more details" - example: - configurations: - - launch_plan: "launch_plan" - workflow: "workflow" - domain: "domain" - project: "project" - attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - launch_plan: "launch_plan" - workflow: "workflow" - domain: "domain" - project: "project" - attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminLiteralMapBlob: - type: "object" - properties: - values: - title: "Data in LiteralMap format" - $ref: "#/definitions/coreLiteralMap" - uri: - type: "string" - title: "In the event that the map is too large, we return a uri to the data" - title: "Input/output data can represented by actual values or a link to where\ - \ values are stored" - example: - values: - literals: {} - uri: "uri" - adminMatchableAttributesConfiguration: - type: "object" - properties: - attributes: - $ref: "#/definitions/adminMatchingAttributes" - domain: - type: "string" - project: - type: "string" - workflow: - type: "string" - launch_plan: - type: "string" - description: "Represents a custom set of attributes applied for either a domain;\ - \ a domain and project; or\ndomain, project and workflow name.\nThese are used\ - \ to override system level defaults for kubernetes cluster resource management,\n\ - default execution values, and more all across different levels of specificity." - example: - launch_plan: "launch_plan" - workflow: "workflow" - domain: "domain" - project: "project" - attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminMatchableResource: - type: "string" - description: "Defines a resource that can be configured by customizable Project-,\ - \ ProjectDomain- or WorkflowAttributes\nbased on matching tags.\n\n - TASK_RESOURCE:\ - \ Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE:\ - \ Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE:\ - \ Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL:\ - \ Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION:\ - \ Configures default quality of service when undefined in an execution spec.\n\ - \ - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for\ - \ a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable\ - \ workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls\ - \ how to select an available cluster on which this execution should run." - enum: - - "TASK_RESOURCE" - - "CLUSTER_RESOURCE" - - "EXECUTION_QUEUE" - - "EXECUTION_CLUSTER_LABEL" - - "QUALITY_OF_SERVICE_SPECIFICATION" - - "PLUGIN_OVERRIDE" - - "WORKFLOW_EXECUTION_CONFIG" - - "CLUSTER_ASSIGNMENT" - default: "TASK_RESOURCE" - adminMatchingAttributes: - type: "object" - properties: - task_resource_attributes: - $ref: "#/definitions/adminTaskResourceAttributes" - cluster_resource_attributes: - $ref: "#/definitions/adminClusterResourceAttributes" - execution_queue_attributes: - $ref: "#/definitions/adminExecutionQueueAttributes" - execution_cluster_label: - $ref: "#/definitions/adminExecutionClusterLabel" - quality_of_service: - $ref: "#/definitions/coreQualityOfService" - plugin_overrides: - $ref: "#/definitions/adminPluginOverrides" - workflow_execution_config: - $ref: "#/definitions/adminWorkflowExecutionConfig" - cluster_assignment: - $ref: "#/definitions/adminClusterAssignment" - description: "Generic container for encapsulating all types of the above attributes\ - \ messages." - example: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminNamedEntity: - type: "object" - properties: - resource_type: - description: "Resource type of the named entity. One of Task, Workflow or\ - \ LaunchPlan." - $ref: "#/definitions/coreResourceType" - id: - $ref: "#/definitions/adminNamedEntityIdentifier" - metadata: - description: "Additional metadata around a named entity." - $ref: "#/definitions/adminNamedEntityMetadata" - description: "Encapsulates information common to a NamedEntity, a Flyte resource\ - \ such as a task,\nworkflow or launch plan. A NamedEntity is exclusively identified\ - \ by its resource type\nand identifier." - example: - metadata: - description: "description" - state: {} - resource_type: {} - id: - domain: "domain" - name: "name" - project: "project" - adminNamedEntityIdentifier: - type: "object" - properties: - project: - type: "string" - description: "Name of the project the resource belongs to." - domain: - type: "string" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - name: - type: "string" - title: "User provided value for the resource.\nThe combination of project\ - \ + domain + name uniquely identifies the resource.\n+optional - in certain\ - \ contexts - like 'List API', 'Launch plans'" - description: "Encapsulation of fields that identifies a Flyte resource.\nA Flyte\ - \ resource can be a task, workflow or launch plan.\nA resource can internally\ - \ have multiple versions and is uniquely identified\nby project, domain, and\ - \ name." - example: - domain: "domain" - name: "name" - project: "project" - adminNamedEntityIdentifierList: - type: "object" - properties: - entities: - type: "array" - description: "A list of identifiers." - items: - $ref: "#/definitions/adminNamedEntityIdentifier" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - description: "Represents a list of NamedEntityIdentifiers." - example: - entities: - - domain: "domain" - name: "name" - project: "project" - - domain: "domain" - name: "name" - project: "project" - token: "token" - adminNamedEntityList: - type: "object" - properties: - entities: - type: "array" - title: "A list of NamedEntity objects" - items: - $ref: "#/definitions/adminNamedEntity" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - description: "Represents a list of NamedEntityIdentifiers." - example: - entities: - - metadata: - description: "description" - state: {} - resource_type: {} - id: - domain: "domain" - name: "name" - project: "project" - - metadata: - description: "description" - state: {} - resource_type: {} - id: - domain: "domain" - name: "name" - project: "project" - token: "token" - adminNamedEntityMetadata: - type: "object" - properties: - description: - type: "string" - title: "Common description across all versions of the entity\n+optional" - state: - description: "Shared state across all version of the entity\nAt this point\ - \ in time, only workflow entities can have their state archived." - $ref: "#/definitions/adminNamedEntityState" - description: "Additional metadata around a named entity." - example: - description: "description" - state: {} - adminNamedEntityState: - type: "string" - description: "The status of the named entity is used to control its visibility\ - \ in the UI.\n\n - NAMED_ENTITY_ACTIVE: By default, all named entities are considered\ - \ active and under development.\n - NAMED_ENTITY_ARCHIVED: Archived named entities\ - \ are no longer visible in the UI.\n - SYSTEM_GENERATED: System generated entities\ - \ that aren't explicitly created or managed by a user." - enum: - - "NAMED_ENTITY_ACTIVE" - - "NAMED_ENTITY_ARCHIVED" - - "SYSTEM_GENERATED" - default: "NAMED_ENTITY_ACTIVE" - adminNamedEntityUpdateRequest: - type: "object" - properties: - resource_type: - title: "Resource type of the metadata to update\n+required" - $ref: "#/definitions/coreResourceType" - id: - title: "Identifier of the metadata to update\n+required" - $ref: "#/definitions/adminNamedEntityIdentifier" - metadata: - title: "Metadata object to set as the new value\n+required" - $ref: "#/definitions/adminNamedEntityMetadata" - description: "Request to set the referenced named entity state to the configured\ - \ value." - adminNamedEntityUpdateResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminNodeExecutionClosure: - type: "object" - properties: - output_uri: - type: "string" - description: "Links to a remotely stored, serialized core.LiteralMap of node\ - \ execution outputs.\nDEPRECATED. Use GetNodeExecutionData to fetch output\ - \ data instead." - error: - title: "Error information for the Node" - $ref: "#/definitions/coreExecutionError" - output_data: - description: "Raw output data produced by this node execution.\nDEPRECATED.\ - \ Use GetNodeExecutionData to fetch output data instead." - $ref: "#/definitions/coreLiteralMap" - phase: - description: "The last recorded phase for this node execution." - $ref: "#/definitions/coreNodeExecutionPhase" - started_at: - type: "string" - format: "date-time" - description: "Time at which the node execution began running." - duration: - type: "string" - description: "The amount of time the node execution spent running." - created_at: - type: "string" - format: "date-time" - description: "Time at which the node execution was created." - updated_at: - type: "string" - format: "date-time" - description: "Time at which the node execution was last updated." - workflow_node_metadata: - $ref: "#/definitions/flyteidladminWorkflowNodeMetadata" - task_node_metadata: - $ref: "#/definitions/flyteidladminTaskNodeMetadata" - deck_uri: - type: "string" - title: "String location uniquely identifying where the deck HTML file is.\n\ - NativeUrl specifies the url in the format of the configured storage provider\ - \ (e.g. s3://my-bucket/randomstring/suffix.tar)" - dynamic_job_spec_uri: - type: "string" - description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ - \ message for a DynamicWorkflow. This is required\nto correctly recover\ - \ partially completed executions where the subworkflow has already been\ - \ compiled." - description: "Container for node execution details and results." - example: - phase: {} - duration: "duration" - workflow_node_metadata: - executionId: - domain: "domain" - name: "name" - project: "project" - updated_at: "2000-01-23T04:56:07.000+00:00" - task_node_metadata: - catalog_key: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - checkpoint_uri: "checkpoint_uri" - cache_status: {} - dynamic_job_spec_uri: "dynamic_job_spec_uri" - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - output_data: - literals: {} - deck_uri: "deck_uri" - adminNodeExecutionEventRequest: - type: "object" - properties: - request_id: - type: "string" - title: "Unique ID for this request that can be traced between services" - event: - description: "Details about the event that occurred." - $ref: "#/definitions/eventNodeExecutionEvent" - description: "Request to send a notification that a node execution event has occurred." - adminNodeExecutionEventResponse: - type: "object" - adminNodeExecutionGetDataResponse: - type: "object" - properties: - inputs: - description: "Signed url to fetch a core.LiteralMap of node execution inputs.\n\ - Deprecated: Please use full_inputs instead." - $ref: "#/definitions/adminUrlBlob" - outputs: - description: "Signed url to fetch a core.LiteralMap of node execution outputs.\n\ - Deprecated: Please use full_outputs instead." - $ref: "#/definitions/adminUrlBlob" - full_inputs: - description: "Full_inputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - full_outputs: - description: "Full_outputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - dynamic_workflow: - description: "Optional Workflow closure for a dynamically generated workflow,\ - \ in the case this node yields a dynamic workflow we return its structure\ - \ here." - $ref: "#/definitions/flyteidladminDynamicWorkflowNodeMetadata" - flyte_urls: - $ref: "#/definitions/adminFlyteURLs" - description: "Response structure for NodeExecutionGetDataRequest which contains\ - \ inputs and outputs for a node execution." - example: - outputs: - bytes: "bytes" - url: "url" - flyte_urls: - outputs: "outputs" - inputs: "inputs" - deck: "deck" - full_inputs: - literals: {} - dynamic_workflow: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - dynamic_job_spec_uri: "dynamic_job_spec_uri" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - inputs: - bytes: "bytes" - url: "url" - full_outputs: - literals: {} - adminNodeExecutionList: - type: "object" - properties: - node_executions: - type: "array" - items: - $ref: "#/definitions/flyteidladminNodeExecution" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Request structure to retrieve a list of node execution entities.\nSee\ - \ :ref:`ref_flyteidl.admin.NodeExecution` for more details" - example: - node_executions: - - metadata: - retry_group: "retry_group" - is_parent_node: true - is_array: true - spec_node_id: "spec_node_id" - is_dynamic: true - input_uri: "input_uri" - id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - closure: - phase: {} - duration: "duration" - workflow_node_metadata: - executionId: - domain: "domain" - name: "name" - project: "project" - updated_at: "2000-01-23T04:56:07.000+00:00" - task_node_metadata: - catalog_key: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - checkpoint_uri: "checkpoint_uri" - cache_status: {} - dynamic_job_spec_uri: "dynamic_job_spec_uri" - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - output_data: - literals: {} - deck_uri: "deck_uri" - - metadata: - retry_group: "retry_group" - is_parent_node: true - is_array: true - spec_node_id: "spec_node_id" - is_dynamic: true - input_uri: "input_uri" - id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - closure: - phase: {} - duration: "duration" - workflow_node_metadata: - executionId: - domain: "domain" - name: "name" - project: "project" - updated_at: "2000-01-23T04:56:07.000+00:00" - task_node_metadata: - catalog_key: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - checkpoint_uri: "checkpoint_uri" - cache_status: {} - dynamic_job_spec_uri: "dynamic_job_spec_uri" - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - output_data: - literals: {} - deck_uri: "deck_uri" - token: "token" - adminNodeExecutionMetaData: - type: "object" - properties: - retry_group: - type: "string" - description: "Node executions are grouped depending on retries of the parent\n\ - Retry group is unique within the context of a parent node." - is_parent_node: - type: "boolean" - format: "boolean" - description: "Boolean flag indicating if the node has child nodes under it\n\ - This can be true when a node contains a dynamic workflow which then produces\n\ - child nodes." - spec_node_id: - type: "string" - title: "Node id of the node in the original workflow\nThis maps to value of\ - \ WorkflowTemplate.nodes[X].id" - is_dynamic: - type: "boolean" - format: "boolean" - description: "Boolean flag indicating if the node has contains a dynamic workflow\ - \ which then produces child nodes.\nThis is to distinguish between subworkflows\ - \ and dynamic workflows which can both have is_parent_node as true." - is_array: - type: "boolean" - format: "boolean" - description: "Boolean flag indicating if the node is an array node. This is\ - \ intended to uniquely identify\narray nodes from other nodes which can\ - \ have is_parent_node as true." - title: "Represents additional attributes related to a Node Execution" - example: - retry_group: "retry_group" - is_parent_node: true - is_array: true - spec_node_id: "spec_node_id" - is_dynamic: true - adminNotification: - type: "object" - properties: - phases: - type: "array" - title: "A list of phases to which users can associate the notifications to.\n\ - +required" - items: - $ref: "#/definitions/coreWorkflowExecutionPhase" - email: - $ref: "#/definitions/adminEmailNotification" - pager_duty: - $ref: "#/definitions/adminPagerDutyNotification" - slack: - $ref: "#/definitions/adminSlackNotification" - description: "Represents a structure for notifications based on execution status.\n\ - The notification content is configured within flyte admin but can be templatized.\n\ - Future iterations could expose configuring notifications with custom content." - example: - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - adminNotificationList: - type: "object" - properties: - notifications: - type: "array" - items: - $ref: "#/definitions/adminNotification" - example: - notifications: - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - - pager_duty: - recipients_email: - - "recipients_email" - - "recipients_email" - slack: - recipients_email: - - "recipients_email" - - "recipients_email" - phases: - - {} - - {} - email: - recipients_email: - - "recipients_email" - - "recipients_email" - adminPagerDutyNotification: - type: "object" - properties: - recipients_email: - type: "array" - title: "Currently, PagerDuty notifications leverage email to trigger a notification.\n\ - +required" - items: - type: "string" - description: "Defines a pager duty notification specification." - example: - recipients_email: - - "recipients_email" - - "recipients_email" - adminPluginOverride: - type: "object" - properties: - task_type: - type: "string" - description: "A predefined yet extensible Task type identifier." - plugin_id: - type: "array" - description: "A set of plugin ids which should handle tasks of this type instead\ - \ of the default registered plugin. The list will be tried in order until\ - \ a plugin is found with that id." - items: - type: "string" - missing_plugin_behavior: - description: "Defines the behavior when no plugin from the plugin_id list\ - \ is not found." - $ref: "#/definitions/PluginOverrideMissingPluginBehavior" - description: "This MatchableAttribute configures selecting alternate plugin implementations\ - \ for a given task type.\nIn addition to an override implementation a selection\ - \ of fallbacks can be provided or other modes\nfor handling cases where the\ - \ desired plugin override is not enabled in a given Flyte deployment." - example: - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminPluginOverrides: - type: "object" - properties: - overrides: - type: "array" - items: - $ref: "#/definitions/adminPluginOverride" - example: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminProject: - type: "object" - properties: - id: - type: "string" - description: "Globally unique project name." - name: - type: "string" - description: "Display name." - domains: - type: "array" - items: - $ref: "#/definitions/adminDomain" - description: - type: "string" - labels: - description: "Leverage Labels from flyteidl.admin.common.proto to\ntag projects\ - \ with ownership information." - $ref: "#/definitions/adminLabels" - state: - $ref: "#/definitions/ProjectProjectState" - description: "Top-level namespace used to classify different entities like workflows\ - \ and executions." - example: - name: "name" - domains: - - name: "name" - id: "id" - - name: "name" - id: "id" - description: "description" - id: "id" - state: {} - labels: - values: - key: "values" - adminProjectAttributes: - type: "object" - properties: - project: - type: "string" - description: "Unique project id for which this set of attributes will be applied." - matching_attributes: - $ref: "#/definitions/adminMatchingAttributes" - title: "Defines a set of custom matching attributes at the project level.\nFor\ - \ more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - example: - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminProjectAttributesDeleteRequest: - type: "object" - properties: - project: - type: "string" - title: "Unique project id which this set of attributes references.\n+required" - resource_type: - title: "Which type of matchable attributes to delete.\n+required" - $ref: "#/definitions/adminMatchableResource" - title: "Request to delete a set matchable project level attribute override.\n\ - For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminProjectAttributesDeleteResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminProjectAttributesGetResponse: - type: "object" - properties: - attributes: - $ref: "#/definitions/adminProjectAttributes" - title: "Response to get an individual project level attribute override.\nFor more\ - \ info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - example: - attributes: - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminProjectAttributesUpdateRequest: - type: "object" - properties: - attributes: - title: "+required" - $ref: "#/definitions/adminProjectAttributes" - title: "Sets custom attributes for a project\nFor more info on matchable attributes,\ - \ see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminProjectAttributesUpdateResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminProjectDomainAttributes: - type: "object" - properties: - project: - type: "string" - description: "Unique project id for which this set of attributes will be applied." - domain: - type: "string" - description: "Unique domain id for which this set of attributes will be applied." - matching_attributes: - $ref: "#/definitions/adminMatchingAttributes" - title: "Defines a set of custom matching attributes which defines resource defaults\ - \ for a project and domain.\nFor more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - example: - domain: "domain" - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminProjectDomainAttributesDeleteRequest: - type: "object" - properties: - project: - type: "string" - title: "Unique project id which this set of attributes references.\n+required" - domain: - type: "string" - title: "Unique domain id which this set of attributes references.\n+required" - resource_type: - title: "Which type of matchable attributes to delete.\n+required" - $ref: "#/definitions/adminMatchableResource" - title: "Request to delete a set matchable project domain attribute override.\n\ - For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminProjectDomainAttributesDeleteResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminProjectDomainAttributesGetResponse: - type: "object" - properties: - attributes: - $ref: "#/definitions/adminProjectDomainAttributes" - title: "Response to get an individual project domain attribute override.\nFor\ - \ more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - example: - attributes: - domain: "domain" - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminProjectDomainAttributesUpdateRequest: - type: "object" - properties: - attributes: - title: "+required" - $ref: "#/definitions/adminProjectDomainAttributes" - title: "Sets custom attributes for a project-domain combination.\nFor more info\ - \ on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminProjectDomainAttributesUpdateResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminProjectRegisterRequest: - type: "object" - properties: - project: - title: "+required" - $ref: "#/definitions/adminProject" - title: "Adds a new user-project within the Flyte deployment.\nSee :ref:`ref_flyteidl.admin.Project`\ - \ for more details" - adminProjectRegisterResponse: - type: "object" - description: "Purposefully empty, may be updated in the future." - adminProjectUpdateResponse: - type: "object" - description: "Purposefully empty, may be updated in the future." - adminProjects: - type: "object" - properties: - projects: - type: "array" - items: - $ref: "#/definitions/adminProject" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Represents a list of projects.\nSee :ref:`ref_flyteidl.admin.Project`\ - \ for more details" - example: - projects: - - name: "name" - domains: - - name: "name" - id: "id" - - name: "name" - id: "id" - description: "description" - id: "id" - state: {} - labels: - values: - key: "values" - - name: "name" - domains: - - name: "name" - id: "id" - - name: "name" - id: "id" - description: "description" - id: "id" - state: {} - labels: - values: - key: "values" - token: "token" - adminRawOutputDataConfig: - type: "object" - properties: - output_location_prefix: - type: "string" - title: "Prefix for where offloaded data from user workflows will be written\n\ - e.g. s3://bucket/key or s3://bucket/" - description: "Encapsulates user settings pertaining to offloaded data (i.e. Blobs,\ - \ Schema, query data, etc.).\nSee https://github.com/flyteorg/flyte/issues/211\ - \ for more background information." - example: - output_location_prefix: "output_location_prefix" - adminReason: - type: "object" - properties: - occurred_at: - type: "string" - format: "date-time" - description: "occurred_at is the timestamp indicating the instant that this\ - \ reason happened." - message: - type: "string" - description: "message is the explanation for the most recent phase transition\ - \ or status update." - description: "Reason is a single message annotated with a timestamp to indicate\ - \ the instant the reason occurred." - example: - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - adminSchedule: - type: "object" - properties: - cron_expression: - type: "string" - title: "Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year\n\ - e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *" - rate: - $ref: "#/definitions/adminFixedRate" - cron_schedule: - $ref: "#/definitions/adminCronSchedule" - kickoff_time_input_arg: - type: "string" - description: "Name of the input variable that the kickoff time will be supplied\ - \ to when the workflow is kicked off." - description: "Defines complete set of information required to trigger an execution\ - \ on a schedule." - example: - kickoff_time_input_arg: "kickoff_time_input_arg" - cron_schedule: - schedule: "schedule" - offset: "offset" - cron_expression: "cron_expression" - rate: - unit: {} - value: 0 - adminSlackNotification: - type: "object" - properties: - recipients_email: - type: "array" - title: "Currently, Slack notifications leverage email to trigger a notification.\n\ - +required" - items: - type: "string" - description: "Defines a slack notification specification." - example: - recipients_email: - - "recipients_email" - - "recipients_email" - adminSort: - type: "object" - properties: - key: - type: "string" - title: "Indicates an attribute to sort the response values.\n+required" - direction: - title: "Indicates the direction to apply sort key for response values.\n+optional" - $ref: "#/definitions/SortDirection" - description: "Specifies sort ordering in a list request." - adminSourceCode: - type: "object" - properties: - link: - type: "string" - title: "Link to source code used to define this entity" - example: - link: "link" - adminSystemMetadata: - type: "object" - properties: - execution_cluster: - type: "string" - description: "Which execution cluster this execution ran on." - namespace: - type: "string" - description: "Which kubernetes namespace the execution ran under." - description: "Represents system, rather than user-facing, metadata about an execution." - example: - execution_cluster: "execution_cluster" - namespace: "namespace" - adminTask: - type: "object" - properties: - id: - description: "id represents the unique identifier of the task." - $ref: "#/definitions/coreIdentifier" - closure: - description: "closure encapsulates all the fields that maps to a compiled\ - \ version of the task." - $ref: "#/definitions/adminTaskClosure" - short_description: - type: "string" - description: "One-liner overview of the entity." - description: "Flyte workflows are composed of many ordered tasks. That is small,\ - \ reusable, self-contained logical blocks\narranged to process workflow inputs\ - \ and produce a deterministic set of outputs.\nTasks can come in many varieties\ - \ tuned for specialized behavior." - example: - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - created_at: "2000-01-23T04:56:07.000+00:00" - compiled_task: - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - adminTaskClosure: - type: "object" - properties: - compiled_task: - description: "Represents the compiled representation of the task from the\ - \ specification provided." - $ref: "#/definitions/coreCompiledTask" - created_at: - type: "string" - format: "date-time" - description: "Time at which the task was created." - description: "Compute task attributes which include values derived from the TaskSpec,\ - \ as well as plugin-specific data\nand task metadata." - example: - created_at: "2000-01-23T04:56:07.000+00:00" - compiled_task: - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - adminTaskExecutionClosure: - type: "object" - properties: - output_uri: - type: "string" - description: "Path to remote data store where output blob is stored if the\ - \ execution succeeded (and produced outputs).\nDEPRECATED. Use GetTaskExecutionData\ - \ to fetch output data instead." - error: - description: "Error information for the task execution. Populated if the execution\ - \ failed." - $ref: "#/definitions/coreExecutionError" - output_data: - description: "Raw output data produced by this task execution.\nDEPRECATED.\ - \ Use GetTaskExecutionData to fetch output data instead." - $ref: "#/definitions/coreLiteralMap" - phase: - description: "The last recorded phase for this task execution." - $ref: "#/definitions/coreTaskExecutionPhase" - logs: - type: "array" - description: "Detailed log information output by the task execution." - items: - $ref: "#/definitions/coreTaskLog" - started_at: - type: "string" - format: "date-time" - description: "Time at which the task execution began running." - duration: - type: "string" - description: "The amount of time the task execution spent running." - created_at: - type: "string" - format: "date-time" - description: "Time at which the task execution was created." - updated_at: - type: "string" - format: "date-time" - description: "Time at which the task execution was last updated." - custom_info: - description: "Custom data specific to the task plugin." - $ref: "#/definitions/protobufStruct" - reason: - type: "string" - description: "If there is an explanation for the most recent phase transition,\ - \ the reason will capture it." - task_type: - type: "string" - description: "A predefined yet extensible Task type identifier." - metadata: - description: "Metadata around how a task was executed." - $ref: "#/definitions/flyteidleventTaskExecutionMetadata" - event_version: - type: "integer" - format: "int32" - description: "The event version is used to indicate versioned changes in how\ - \ data is maintained using this\nproto message. For example, event_verison\ - \ > 0 means that maps tasks logs use the\nTaskExecutionMetadata ExternalResourceInfo\ - \ fields for each subtask rather than the TaskLog\nin this message." - reasons: - type: "array" - description: "A time-series of the phase transition or update explanations.\ - \ This, when compared to storing a singular reason\nas previously done,\ - \ is much more valuable in visualizing and understanding historical evaluations." - items: - $ref: "#/definitions/adminReason" - description: "Container for task execution details and results." - example: - phase: {} - reason: "reason" - metadata: - external_resources: - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - instance_class: {} - resource_pool_info: - - allocation_token: "allocation_token" - namespace: "namespace" - - allocation_token: "allocation_token" - namespace: "namespace" - generated_name: "generated_name" - plugin_identifier: "plugin_identifier" - reasons: - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - event_version: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - custom_info: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - task_type: "task_type" - output_data: - literals: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - adminTaskExecutionEventRequest: - type: "object" - properties: - request_id: - type: "string" - title: "Unique ID for this request that can be traced between services" - event: - description: "Details about the event that occurred." - $ref: "#/definitions/eventTaskExecutionEvent" - description: "Request to send a notification that a task execution event has occurred." - adminTaskExecutionEventResponse: - type: "object" - adminTaskExecutionGetDataResponse: - type: "object" - properties: - inputs: - description: "Signed url to fetch a core.LiteralMap of task execution inputs.\n\ - Deprecated: Please use full_inputs instead." - $ref: "#/definitions/adminUrlBlob" - outputs: - description: "Signed url to fetch a core.LiteralMap of task execution outputs.\n\ - Deprecated: Please use full_outputs instead." - $ref: "#/definitions/adminUrlBlob" - full_inputs: - description: "Full_inputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - full_outputs: - description: "Full_outputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - flyte_urls: - title: "flyte tiny url to fetch a core.LiteralMap of task execution's IO\n\ - Deck will be empty for task" - $ref: "#/definitions/adminFlyteURLs" - description: "Response structure for TaskExecutionGetDataRequest which contains\ - \ inputs and outputs for a task execution." - example: - outputs: - bytes: "bytes" - url: "url" - flyte_urls: - outputs: "outputs" - inputs: "inputs" - deck: "deck" - full_inputs: - literals: {} - inputs: - bytes: "bytes" - url: "url" - full_outputs: - literals: {} - adminTaskExecutionList: - type: "object" - properties: - task_executions: - type: "array" - items: - $ref: "#/definitions/flyteidladminTaskExecution" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Response structure for a query to list of task execution entities.\nSee\ - \ :ref:`ref_flyteidl.admin.TaskExecution` for more details" - example: - task_executions: - - input_uri: "input_uri" - id: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - is_parent: true - closure: - phase: {} - reason: "reason" - metadata: - external_resources: - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - instance_class: {} - resource_pool_info: - - allocation_token: "allocation_token" - namespace: "namespace" - - allocation_token: "allocation_token" - namespace: "namespace" - generated_name: "generated_name" - plugin_identifier: "plugin_identifier" - reasons: - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - event_version: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - custom_info: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - task_type: "task_type" - output_data: - literals: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - input_uri: "input_uri" - id: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - is_parent: true - closure: - phase: {} - reason: "reason" - metadata: - external_resources: - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - instance_class: {} - resource_pool_info: - - allocation_token: "allocation_token" - namespace: "namespace" - - allocation_token: "allocation_token" - namespace: "namespace" - generated_name: "generated_name" - plugin_identifier: "plugin_identifier" - reasons: - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - event_version: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - custom_info: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - task_type: "task_type" - output_data: - literals: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - token: "token" - adminTaskList: - type: "object" - properties: - tasks: - type: "array" - description: "A list of tasks returned based on the request." - items: - $ref: "#/definitions/adminTask" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Represents a list of tasks returned from the admin.\nSee :ref:`ref_flyteidl.admin.Task`\ - \ for more details" - example: - tasks: - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - created_at: "2000-01-23T04:56:07.000+00:00" - compiled_task: - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - created_at: "2000-01-23T04:56:07.000+00:00" - compiled_task: - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - token: "token" - adminTaskResourceAttributes: - type: "object" - properties: - defaults: - $ref: "#/definitions/adminTaskResourceSpec" - limits: - $ref: "#/definitions/adminTaskResourceSpec" - description: "Defines task resource defaults and limits that will be applied at\ - \ task registration." - example: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - adminTaskResourceSpec: - type: "object" - properties: - cpu: - type: "string" - gpu: - type: "string" - memory: - type: "string" - storage: - type: "string" - ephemeral_storage: - type: "string" - description: "Defines a set of overridable task resource attributes set during\ - \ task registration." - example: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - adminTaskSpec: - type: "object" - properties: - template: - description: "Template of the task that encapsulates all the metadata of the\ - \ task." - $ref: "#/definitions/coreTaskTemplate" - description: - description: "Represents the specification for description entity." - $ref: "#/definitions/adminDescriptionEntity" - description: "Represents a structure that encapsulates the user-configured specification\ - \ of the task." - adminUrlBlob: - type: "object" - properties: - url: - type: "string" - description: "Actual url value." - bytes: - type: "string" - format: "int64" - description: "Represents the size of the file accessible at the above url." - description: "Represents a string url and associated metadata used throughout\ - \ the platform." - example: - bytes: "bytes" - url: "url" - adminVersion: - type: "object" - properties: - Build: - type: "string" - title: "Specifies the GIT sha of the build" - Version: - type: "string" - title: "Version for the build, should follow a semver" - BuildTime: - type: "string" - title: "Build timestamp" - title: "Provides Version information for a component" - example: - Version: "Version" - Build: "Build" - BuildTime: "BuildTime" - adminWorkflow: - type: "object" - properties: - id: - description: "id represents the unique identifier of the workflow." - $ref: "#/definitions/coreIdentifier" - closure: - description: "closure encapsulates all the fields that maps to a compiled\ - \ version of the workflow." - $ref: "#/definitions/adminWorkflowClosure" - short_description: - type: "string" - description: "One-liner overview of the entity." - description: "Represents the workflow structure stored in the Admin\nA workflow\ - \ is created by ordering tasks and associating outputs to inputs\nin order to\ - \ produce a directed-acyclic execution graph." - example: - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - created_at: "2000-01-23T04:56:07.000+00:00" - adminWorkflowAttributes: - type: "object" - properties: - project: - type: "string" - description: "Unique project id for which this set of attributes will be applied." - domain: - type: "string" - description: "Unique domain id for which this set of attributes will be applied." - workflow: - type: "string" - description: "Workflow name for which this set of attributes will be applied." - matching_attributes: - $ref: "#/definitions/adminMatchingAttributes" - title: "Defines a set of custom matching attributes which defines resource defaults\ - \ for a project, domain and workflow.\nFor more info on matchable attributes,\ - \ see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - example: - workflow: "workflow" - domain: "domain" - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminWorkflowAttributesDeleteRequest: - type: "object" - properties: - project: - type: "string" - title: "Unique project id which this set of attributes references.\n+required" - domain: - type: "string" - title: "Unique domain id which this set of attributes references.\n+required" - workflow: - type: "string" - title: "Workflow name which this set of attributes references.\n+required" - resource_type: - title: "Which type of matchable attributes to delete.\n+required" - $ref: "#/definitions/adminMatchableResource" - title: "Request to delete a set matchable workflow attribute override.\nFor more\ - \ info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminWorkflowAttributesDeleteResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminWorkflowAttributesGetResponse: - type: "object" - properties: - attributes: - $ref: "#/definitions/adminWorkflowAttributes" - description: "Response to get an individual workflow attribute override." - example: - attributes: - workflow: "workflow" - domain: "domain" - project: "project" - matching_attributes: - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - workflow_execution_config: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - cluster_assignment: - cluster_pool_name: "cluster_pool_name" - cluster_resource_attributes: - attributes: - key: "attributes" - execution_queue_attributes: - tags: - - "tags" - - "tags" - task_resource_attributes: - defaults: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - limits: - memory: "memory" - cpu: "cpu" - ephemeral_storage: "ephemeral_storage" - storage: "storage" - gpu: "gpu" - execution_cluster_label: - value: "value" - plugin_overrides: - overrides: - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - - plugin_id: - - "plugin_id" - - "plugin_id" - missing_plugin_behavior: {} - task_type: "task_type" - adminWorkflowAttributesUpdateRequest: - type: "object" - properties: - attributes: - $ref: "#/definitions/adminWorkflowAttributes" - title: "Sets custom attributes for a project, domain and workflow combination.\n\ - For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`" - adminWorkflowAttributesUpdateResponse: - type: "object" - description: "Purposefully empty, may be populated in the future." - adminWorkflowClosure: - type: "object" - properties: - compiled_workflow: - description: "Represents the compiled representation of the workflow from\ - \ the specification provided." - $ref: "#/definitions/coreCompiledWorkflowClosure" - created_at: - type: "string" - format: "date-time" - description: "Time at which the workflow was created." - description: "A container holding the compiled workflow produced from the WorkflowSpec\ - \ and additional metadata." - example: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - created_at: "2000-01-23T04:56:07.000+00:00" - adminWorkflowCreateRequest: - type: "object" - properties: - id: - title: "id represents the unique identifier of the workflow.\n+required" - $ref: "#/definitions/coreIdentifier" - spec: - title: "Represents the specification for workflow.\n+required" - $ref: "#/definitions/adminWorkflowSpec" - title: "Represents a request structure to create a revision of a workflow.\nSee\ - \ :ref:`ref_flyteidl.admin.Workflow` for more details" - adminWorkflowCreateResponse: - type: "object" - adminWorkflowExecutionConfig: - type: "object" - properties: - max_parallelism: - type: "integer" - format: "int32" - description: "Can be used to control the number of parallel nodes to run within\ - \ the workflow. This is useful to achieve fairness." - security_context: - description: "Indicates security context permissions for executions triggered\ - \ with this matchable attribute." - $ref: "#/definitions/coreSecurityContext" - raw_output_data_config: - description: "Encapsulates user settings pertaining to offloaded data (i.e.\ - \ Blobs, Schema, query data, etc.)." - $ref: "#/definitions/adminRawOutputDataConfig" - labels: - description: "Custom labels to be applied to a triggered execution resource." - $ref: "#/definitions/adminLabels" - annotations: - description: "Custom annotations to be applied to a triggered execution resource." - $ref: "#/definitions/adminAnnotations" - interruptible: - type: "boolean" - format: "boolean" - description: "Allows for the interruptible flag of a workflow to be overwritten\ - \ for a single execution.\nOmitting this field uses the workflow's value\ - \ as a default.\nAs we need to distinguish between the field not being provided\ - \ and its default value false, we have to use a wrapper\naround the bool\ - \ field." - overwrite_cache: - type: "boolean" - format: "boolean" - description: "Allows for all cached values of a workflow and its tasks to\ - \ be overwritten for a single execution.\nIf enabled, all calculations are\ - \ performed even if cached results would be available, overwriting the stored\n\ - data once execution finishes successfully." - envs: - description: "Environment variables to be set for the execution." - $ref: "#/definitions/adminEnvs" - description: "Adds defaults for customizable workflow-execution specifications\ - \ and overrides." - example: - overwrite_cache: true - raw_output_data_config: - output_location_prefix: "output_location_prefix" - max_parallelism: 0 - annotations: - values: - key: "values" - envs: - values: - - value: "value" - key: "key" - - value: "value" - key: "key" - interruptible: true - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - labels: - values: - key: "values" - adminWorkflowExecutionEventRequest: - type: "object" - properties: - request_id: - type: "string" - title: "Unique ID for this request that can be traced between services" - event: - description: "Details about the event that occurred." - $ref: "#/definitions/eventWorkflowExecutionEvent" - description: "Request to send a notification that a workflow execution event has\ - \ occurred." - adminWorkflowExecutionEventResponse: - type: "object" - adminWorkflowExecutionGetDataResponse: - type: "object" - properties: - outputs: - description: "Signed url to fetch a core.LiteralMap of execution outputs.\n\ - Deprecated: Please use full_outputs instead." - $ref: "#/definitions/adminUrlBlob" - inputs: - description: "Signed url to fetch a core.LiteralMap of execution inputs.\n\ - Deprecated: Please use full_inputs instead." - $ref: "#/definitions/adminUrlBlob" - full_inputs: - description: "Full_inputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - full_outputs: - description: "Full_outputs will only be populated if they are under a configured\ - \ size threshold." - $ref: "#/definitions/coreLiteralMap" - description: "Response structure for WorkflowExecutionGetDataRequest which contains\ - \ inputs and outputs for an execution." - example: - outputs: - bytes: "bytes" - url: "url" - full_inputs: - literals: {} - inputs: - bytes: "bytes" - url: "url" - full_outputs: - literals: {} - adminWorkflowExecutionGetMetricsResponse: - type: "object" - properties: - span: - description: "Span defines the top-level breakdown of the workflows execution.\ - \ More precise information is nested in a\nhierarchical structure using\ - \ Flyte entity references." - $ref: "#/definitions/coreSpan" - description: "WorkflowExecutionGetMetricsResponse represents the response containing\ - \ metrics for the specified workflow execution." - example: - span: - start_time: "2000-01-23T04:56:07.000+00:00" - spans: - - null - - null - workflow_id: - domain: "domain" - name: "name" - project: "project" - end_time: "2000-01-23T04:56:07.000+00:00" - task_id: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - operation_id: "operation_id" - node_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - adminWorkflowList: - type: "object" - properties: - workflows: - type: "array" - description: "A list of workflows returned based on the request." - items: - $ref: "#/definitions/adminWorkflow" - token: - type: "string" - description: "In the case of multiple pages of results, the server-provided\ - \ token can be used to fetch the next page\nin a query. If there are no\ - \ more results, this value will be empty." - title: "Represents a list of workflows returned from the admin.\nSee :ref:`ref_flyteidl.admin.Workflow`\ - \ for more details" - example: - workflows: - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - created_at: "2000-01-23T04:56:07.000+00:00" - - short_description: "short_description" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - closure: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - created_at: "2000-01-23T04:56:07.000+00:00" - token: "token" - adminWorkflowSpec: - type: "object" - properties: - template: - description: "Template of the task that encapsulates all the metadata of the\ - \ workflow." - $ref: "#/definitions/coreWorkflowTemplate" - sub_workflows: - type: "array" - description: "Workflows that are embedded into other workflows need to be\ - \ passed alongside the parent workflow to the\npropeller compiler (since\ - \ the compiler doesn't have any knowledge of other workflows - ie, it doesn't\ - \ reach out\nto Admin to see other registered workflows). In fact, subworkflows\ - \ do not even need to be registered." - items: - $ref: "#/definitions/coreWorkflowTemplate" - description: - description: "Represents the specification for description entity." - $ref: "#/definitions/adminDescriptionEntity" - description: "Represents a structure that encapsulates the specification of the\ - \ workflow." - coreAlias: - type: "object" - properties: - var: - type: "string" - description: "Must match one of the output variable names on a node." - alias: - type: "string" - description: "A workflow-level unique alias that downstream nodes can refer\ - \ to in their input." - description: "Links a variable to an alias." - example: - var: "var" - alias: "alias" - coreApproveCondition: - type: "object" - properties: - signal_id: - type: "string" - description: "A unique identifier for the requested boolean signal." - description: "ApproveCondition represents a dependency on an external approval.\ - \ During execution, this will manifest as a boolean\nsignal with the provided\ - \ signal_id." - example: - signal_id: "signal_id" - coreArrayNode: - type: "object" - properties: - node: - description: "node is the sub-node that will be executed for each element\ - \ in the array." - $ref: "#/definitions/coreNode" - parallelism: - type: "integer" - format: "int64" - description: "parallelism defines the minimum number of instances to bring\ - \ up concurrently at any given\npoint. Note that this is an optimistic restriction\ - \ and that, due to network partitioning or\nother failures, the actual number\ - \ of currently running instances might be more. This has to\nbe a positive\ - \ number if assigned. Default value is size." - min_successes: - type: "integer" - format: "int64" - description: "min_successes is an absolute number of the minimum number of\ - \ successful completions of\nsub-nodes. As soon as this criteria is met,\ - \ the ArrayNode will be marked as successful\nand outputs will be computed.\ - \ This has to be a non-negative number if assigned. Default\nvalue is size\ - \ (if specified)." - min_success_ratio: - type: "number" - format: "float" - description: "If the array job size is not known beforehand, the min_success_ratio\ - \ can instead be used\nto determine when an ArrayNode can be marked successful." - description: "ArrayNode is a Flyte node type that simplifies the execution of\ - \ a sub-node over a list of input\nvalues. An ArrayNode can be executed with\ - \ configurable parallelism (separate from the parent\nworkflow) and can be configured\ - \ to succeed when a certain number of sub-nodes succeed." - example: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - coreArtifactBindingData: - type: "object" - properties: - index: - type: "integer" - format: "int64" - partition_key: - type: "string" - title: "These two fields are only relevant in the partition value case" - transform: - type: "string" - title: "Only valid for triggers" - example: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreArtifactID: - type: "object" - properties: - artifact_key: - $ref: "#/definitions/coreArtifactKey" - version: - type: "string" - partitions: - $ref: "#/definitions/corePartitions" - example: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - coreArtifactKey: - type: "object" - properties: - project: - type: "string" - description: "Project and domain and suffix needs to be unique across a given\ - \ artifact store." - domain: - type: "string" - name: - type: "string" - example: - domain: "domain" - name: "name" - project: "project" - coreArtifactQuery: - type: "object" - properties: - artifact_id: - $ref: "#/definitions/coreArtifactID" - artifact_tag: - $ref: "#/definitions/coreArtifactTag" - uri: - type: "string" - binding: - description: "This is used in the trigger case, where a user specifies a value\ - \ for an input that is one of the triggering\nartifacts, or a partition\ - \ value derived from a triggering artifact." - $ref: "#/definitions/coreArtifactBindingData" - title: "Uniqueness constraints for Artifacts\n - project, domain, name, version,\ - \ partitions\nOption 2 (tags are standalone, point to an individual artifact\ - \ id):\n - project, domain, name, alias (points to one partition if partitioned)\n\ - \ - project, domain, name, partition key, partition value" - example: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreArtifactTag: - type: "object" - properties: - artifact_key: - $ref: "#/definitions/coreArtifactKey" - value: - $ref: "#/definitions/coreLabelValue" - example: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreBinary: - type: "object" - properties: - value: - type: "string" - format: "byte" - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - tag: - type: "string" - description: "A simple byte array with a tag to help different parts of the system\ - \ communicate about what is in the byte array.\nIt's strongly advisable that\ - \ consumers of this type define a unique tag and validate the tag before parsing\ - \ the data." - example: - tag: "tag" - value: "value" - coreBinding: - type: "object" - properties: - var: - type: "string" - description: "Variable name must match an input/output variable of the node." - binding: - description: "Data to use to bind this variable." - $ref: "#/definitions/coreBindingData" - description: "An input/output binding of a variable to either static value or\ - \ a node output." - example: - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - coreBindingData: - type: "object" - properties: - scalar: - description: "A simple scalar value." - $ref: "#/definitions/coreScalar" - collection: - description: "A collection of binding data. This allows nesting of binding\ - \ data to any number\nof levels." - $ref: "#/definitions/coreBindingDataCollection" - promise: - description: "References an output promised by another node." - $ref: "#/definitions/coreOutputReference" - map: - description: "A map of bindings. The key is always a string." - $ref: "#/definitions/coreBindingDataMap" - union: - $ref: "#/definitions/coreUnionInfo" - description: "Specifies either a simple value or a reference to another output." - example: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - coreBindingDataCollection: - type: "object" - properties: - bindings: - type: "array" - items: - $ref: "#/definitions/coreBindingData" - description: "A collection of BindingData items." - example: - bindings: - - null - - null - coreBindingDataMap: - type: "object" - properties: - bindings: - type: "object" - additionalProperties: - $ref: "#/definitions/coreBindingData" - description: "A map of BindingData items." - example: - bindings: {} - coreBlob: - type: "object" - properties: - metadata: - $ref: "#/definitions/coreBlobMetadata" - uri: - type: "string" - description: "Refers to an offloaded set of files. It encapsulates the type of\ - \ the store and a unique uri for where the data is.\nThere are no restrictions\ - \ on how the uri is formatted since it will depend on how to interact with the\ - \ store." - example: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - coreBlobMetadata: - type: "object" - properties: - type: - $ref: "#/definitions/coreBlobType" - example: - type: - dimensionality: {} - format: "format" - coreBlobType: - type: "object" - properties: - format: - type: "string" - title: "Format can be a free form string understood by SDK/UI etc like\ncsv,\ - \ parquet etc" - dimensionality: - $ref: "#/definitions/BlobTypeBlobDimensionality" - title: "Defines type behavior for blob objects" - example: - dimensionality: {} - format: "format" - coreBooleanExpression: - type: "object" - properties: - conjunction: - $ref: "#/definitions/coreConjunctionExpression" - comparison: - $ref: "#/definitions/coreComparisonExpression" - description: "Defines a boolean expression tree. It can be a simple or a conjunction\ - \ expression.\nMultiple expressions can be combined using a conjunction or a\ - \ disjunction to result in a final boolean result." - example: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - coreBranchNode: - type: "object" - properties: - if_else: - title: "+required" - $ref: "#/definitions/coreIfElseBlock" - description: "BranchNode is a special node that alter the flow of the workflow\ - \ graph. It allows the control flow to branch at\nruntime based on a series\ - \ of conditions that get evaluated on various parameters (e.g. inputs, primitives)." - example: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - coreCatalogArtifactTag: - type: "object" - properties: - artifact_id: - type: "string" - title: "Artifact ID is generated name" - name: - type: "string" - title: "Flyte computes the tag automatically, as the hash of the values" - example: - name: "name" - artifact_id: "artifact_id" - coreCatalogCacheStatus: - type: "string" - title: "Indicates the status of CatalogCaching. The reason why this is not embedded\ - \ in TaskNodeMetadata is, that we may use for other types of nodes as well in\ - \ the future" - description: "- CACHE_DISABLED: Used to indicate that caching was disabled\n -\ - \ CACHE_MISS: Used to indicate that the cache lookup resulted in no matches\n\ - \ - CACHE_HIT: used to indicate that the associated artifact was a result of\ - \ a previous execution\n - CACHE_POPULATED: used to indicate that the resultant\ - \ artifact was added to the cache\n - CACHE_LOOKUP_FAILURE: Used to indicate\ - \ that cache lookup failed because of an error\n - CACHE_PUT_FAILURE: Used to\ - \ indicate that cache lookup failed because of an error\n - CACHE_SKIPPED: Used\ - \ to indicate the cache lookup was skipped" - enum: - - "CACHE_DISABLED" - - "CACHE_MISS" - - "CACHE_HIT" - - "CACHE_POPULATED" - - "CACHE_LOOKUP_FAILURE" - - "CACHE_PUT_FAILURE" - - "CACHE_SKIPPED" - default: "CACHE_DISABLED" - coreCatalogMetadata: - type: "object" - properties: - dataset_id: - title: "Dataset ID in the catalog" - $ref: "#/definitions/coreIdentifier" - artifact_tag: - title: "Artifact tag in the catalog" - $ref: "#/definitions/coreCatalogArtifactTag" - source_task_execution: - title: "Today we only support TaskExecutionIdentifier as a source, as catalog\ - \ caching only works for task executions" - $ref: "#/definitions/coreTaskExecutionIdentifier" - title: "Catalog artifact information with specific metadata" - example: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - coreComparisonExpression: - type: "object" - properties: - operator: - $ref: "#/definitions/ComparisonExpressionOperator" - left_value: - $ref: "#/definitions/coreOperand" - right_value: - $ref: "#/definitions/coreOperand" - description: "Defines a 2-level tree where the root is a comparison operator and\ - \ Operands are primitives or known variables.\nEach expression results in a\ - \ boolean result." - example: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - coreCompiledTask: - type: "object" - properties: - template: - title: "Completely contained TaskTemplate" - $ref: "#/definitions/coreTaskTemplate" - title: "Output of the Compilation step. This object represent one Task. We store\ - \ more metadata at this layer" - example: - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - coreCompiledWorkflow: - type: "object" - properties: - template: - title: "Completely contained Workflow Template" - $ref: "#/definitions/coreWorkflowTemplate" - connections: - description: "For internal use only! This field is used by the system and\ - \ must not be filled in. Any values set will be ignored." - $ref: "#/definitions/coreConnectionSet" - title: "Output of the compilation Step. This object represents one workflow. We\ - \ store more metadata at this layer" - example: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - coreCompiledWorkflowClosure: - type: "object" - properties: - primary: - title: "+required" - $ref: "#/definitions/coreCompiledWorkflow" - sub_workflows: - type: "array" - title: "Guaranteed that there will only exist one and only one workflow with\ - \ a given id, i.e., every sub workflow has a\nunique identifier. Also every\ - \ enclosed subworkflow is used either by a primary workflow or by a subworkflow\n\ - as an inlined workflow\n+optional" - items: - $ref: "#/definitions/coreCompiledWorkflow" - tasks: - type: "array" - title: "Guaranteed that there will only exist one and only one task with a\ - \ given id, i.e., every task has a unique id\n+required (at least 1)" - items: - $ref: "#/definitions/coreCompiledTask" - description: "A Compiled Workflow Closure contains all the information required\ - \ to start a new execution, or to visualize a workflow\nand its details. The\ - \ CompiledWorkflowClosure should always contain a primary workflow, that is\ - \ the main workflow that\nwill being the execution. All subworkflows are denormalized.\ - \ WorkflowNodes refer to the workflow identifiers of\ncompiled subworkflows." - example: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - coreConjunctionExpression: - type: "object" - properties: - operator: - $ref: "#/definitions/ConjunctionExpressionLogicalOperator" - left_expression: - $ref: "#/definitions/coreBooleanExpression" - right_expression: - $ref: "#/definitions/coreBooleanExpression" - description: "Defines a conjunction expression of two boolean expressions." - example: - operator: {} - coreConnectionSet: - type: "object" - properties: - downstream: - type: "object" - title: "A list of all the node ids that are downstream from a given node id" - additionalProperties: - $ref: "#/definitions/ConnectionSetIdList" - upstream: - type: "object" - title: "A list of all the node ids, that are upstream of this node id" - additionalProperties: - $ref: "#/definitions/ConnectionSetIdList" - title: "Adjacency list for the workflow. This is created as part of the compilation\ - \ process. Every process after the compilation\nstep uses this created ConnectionSet" - example: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - coreContainer: - type: "object" - properties: - image: - type: "string" - title: "Container image url. Eg: docker/redis:latest" - command: - type: "array" - description: "Command to be executed, if not provided, the default entrypoint\ - \ in the container image will be used." - items: - type: "string" - args: - type: "array" - description: "These will default to Flyte given paths. If provided, the system\ - \ will not append known paths. If the task still\nneeds flyte's inputs and\ - \ outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes\ - \ sense and the\nsystem will populate these before executing the container." - items: - type: "string" - resources: - description: "Container resources requirement as specified by the container\ - \ engine." - $ref: "#/definitions/coreResources" - env: - type: "array" - description: "Environment variables will be set as the container is starting\ - \ up." - items: - $ref: "#/definitions/coreKeyValuePair" - config: - type: "array" - description: "Allows extra configs to be available for the container.\nTODO:\ - \ elaborate on how configs will become available.\nDeprecated, please use\ - \ TaskTemplate.config instead." - items: - $ref: "#/definitions/coreKeyValuePair" - ports: - type: "array" - title: "Ports to open in the container. This feature is not supported by all\ - \ execution engines. (e.g. supported on K8s but\nnot supported on AWS Batch)\n\ - Only K8s" - items: - $ref: "#/definitions/coreContainerPort" - data_config: - title: "BETA: Optional configuration for DataLoading. If not specified, then\ - \ default values are used.\nThis makes it possible to to run a completely\ - \ portable container, that uses inputs and outputs\nonly from the local\ - \ file-system and without having any reference to flyteidl. This is supported\ - \ only on K8s at the moment.\nIf data loading is enabled, then data will\ - \ be mounted in accompanying directories specified in the DataLoadingConfig.\ - \ If the directories\nare not specified, inputs will be mounted onto and\ - \ outputs will be uploaded from a pre-determined file-system path. Refer\ - \ to the documentation\nto understand the default paths.\nOnly K8s" - $ref: "#/definitions/coreDataLoadingConfig" - architecture: - $ref: "#/definitions/ContainerArchitecture" - example: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - coreContainerPort: - type: "object" - properties: - container_port: - type: "integer" - format: "int64" - description: "Number of port to expose on the pod's IP address.\nThis must\ - \ be a valid port number, 0 < x < 65536." - description: "Defines port properties for a container." - example: - container_port: 2 - coreDataLoadingConfig: - type: "object" - properties: - enabled: - type: "boolean" - format: "boolean" - title: "Flag enables DataLoading Config. If this is not set, data loading\ - \ will not be used!" - input_path: - type: "string" - title: "File system path (start at root). This folder will contain all the\ - \ inputs exploded to a separate file.\nExample, if the input interface needs\ - \ (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs',\ - \ then the file system will look like\n/var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously.\ - \ The Blob and Multipart blob will reference local filesystem instead of\ - \ remote locations\n/var/flyte/inputs/x -> X is a file that contains the\ - \ value of x (integer) in string format\n/var/flyte/inputs/y -> Y is a file\ - \ in Binary format\n/var/flyte/inputs/z/... -> Note Z itself is a directory\n\ - More information about the protocol - refer to docs #TODO reference docs\ - \ here" - output_path: - type: "string" - title: "File system path (start at root). This folder should contain all the\ - \ outputs for the task as individual files and/or an error text file" - format: - title: "In the inputs folder, there will be an additional summary/metadata\ - \ file that contains references to all files or inlined primitive values.\n\ - This format decides the actual encoding for the data. Refer to the encoding\ - \ to understand the specifics of the contents and the encoding" - $ref: "#/definitions/DataLoadingConfigLiteralMapFormat" - io_strategy: - $ref: "#/definitions/coreIOStrategy" - description: "This configuration allows executing raw containers in Flyte using\ - \ the Flyte CoPilot system.\nFlyte CoPilot, eliminates the needs of flytekit\ - \ or sdk inside the container. Any inputs required by the users container are\ - \ side-loaded in the input_path\nAny outputs generated by the user container\ - \ - within output_path are automatically uploaded." - example: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - coreEnumType: - type: "object" - properties: - values: - type: "array" - description: "Predefined set of enum values." - items: - type: "string" - description: "Enables declaring enum types, with predefined string values\nFor\ - \ len(values) > 0, the first value in the ordered list is regarded as the default\ - \ value. If you wish\nTo provide no defaults, make the first value as undefined." - example: - values: - - "values" - - "values" - coreError: - type: "object" - properties: - failed_node_id: - type: "string" - description: "The node id that threw the error." - message: - type: "string" - description: "Error message thrown." - description: "Represents an error thrown from a node." - example: - message: "message" - failed_node_id: "failed_node_id" - coreExecutionError: - type: "object" - properties: - code: - type: "string" - title: "Error code indicates a grouping of a type of error.\nMore Info: " - message: - type: "string" - description: "Detailed description of the error - including stack trace." - error_uri: - type: "string" - title: "Full error contents accessible via a URI" - kind: - $ref: "#/definitions/ExecutionErrorErrorKind" - description: "Represents the error message from the execution." - example: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - coreExtendedResources: - type: "object" - properties: - gpu_accelerator: - description: "GPU accelerator to select for task. Contains information about\ - \ device type, and\nfor multi-instance GPUs, the partition size to use." - $ref: "#/definitions/coreGPUAccelerator" - description: "Encapsulates all non-standard resources, not captured by v1.ResourceRequirements,\ - \ to\nallocate to a task." - example: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - coreGPUAccelerator: - type: "object" - properties: - device: - type: "string" - description: "This can be any arbitrary string, and should be informed by\ - \ the labels or taints\nassociated with the nodes in question. Default cloud\ - \ provider labels typically\nuse the following values: `nvidia-tesla-t4`,\ - \ `nvidia-tesla-a100`, etc." - unpartitioned: - type: "boolean" - format: "boolean" - partition_size: - type: "string" - description: "Like `device`, this can be any arbitrary string, and should\ - \ be informed by\nthe labels or taints associated with the nodes in question.\ - \ Default cloud\nprovider labels typically use the following values: `1g.5gb`,\ - \ `2g.10gb`, etc." - description: "Metadata associated with the GPU accelerator to allocate to a task.\ - \ Contains\ninformation about device type, and for multi-instance GPUs, the\ - \ partition size to\nuse." - example: - partition_size: "partition_size" - unpartitioned: true - device: "device" - coreGateNode: - type: "object" - properties: - approve: - description: "ApproveCondition represents a dependency on an external approval\ - \ provided by a boolean signal." - $ref: "#/definitions/coreApproveCondition" - signal: - description: "SignalCondition represents a dependency on an signal." - $ref: "#/definitions/coreSignalCondition" - sleep: - description: "SleepCondition represents a dependency on waiting for the specified\ - \ duration." - $ref: "#/definitions/coreSleepCondition" - description: "GateNode refers to the condition that is required for the gate to\ - \ successfully complete." - example: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - coreIOStrategy: - type: "object" - properties: - download_mode: - title: "Mode to use to manage downloads" - $ref: "#/definitions/IOStrategyDownloadMode" - upload_mode: - title: "Mode to use to manage uploads" - $ref: "#/definitions/IOStrategyUploadMode" - title: "Strategy to use when dealing with Blob, Schema, or multipart blob data\ - \ (large datasets)" - example: - upload_mode: {} - download_mode: {} - coreIdentifier: - type: "object" - properties: - resource_type: - description: "Identifies the specific type of resource that this identifier\ - \ corresponds to." - $ref: "#/definitions/coreResourceType" - project: - type: "string" - description: "Name of the project the resource belongs to." - domain: - type: "string" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - name: - type: "string" - description: "User provided value for the resource." - version: - type: "string" - description: "Specific version of the resource." - description: "Encapsulation of fields that uniquely identifies a Flyte resource." - example: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - coreIdentity: - type: "object" - properties: - iam_role: - type: "string" - description: "iam_role references the fully qualified name of Identity & Access\ - \ Management role to impersonate." - k8s_service_account: - type: "string" - description: "k8s_service_account references a kubernetes service account\ - \ to impersonate." - oauth2_client: - description: "oauth2_client references an oauth2 client. Backend plugins can\ - \ use this information to impersonate the client when\nmaking external calls." - $ref: "#/definitions/coreOAuth2Client" - execution_identity: - type: "string" - title: "execution_identity references the subject who makes the execution" - description: "Identity encapsulates the various security identities a task can\ - \ run as. It's up to the underlying plugin to pick the\nright identity for the\ - \ execution environment." - example: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - coreIfBlock: - type: "object" - properties: - condition: - $ref: "#/definitions/coreBooleanExpression" - then_node: - $ref: "#/definitions/coreNode" - description: "Defines a condition and the execution unit that should be executed\ - \ if the condition is satisfied." - example: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - coreIfElseBlock: - type: "object" - properties: - case: - description: "+required. First condition to evaluate." - $ref: "#/definitions/coreIfBlock" - other: - type: "array" - description: "+optional. Additional branches to evaluate." - items: - $ref: "#/definitions/coreIfBlock" - else_node: - description: "The node to execute in case none of the branches were taken." - $ref: "#/definitions/coreNode" - error: - description: "An error to throw in case none of the branches were taken." - $ref: "#/definitions/coreError" - description: "Defines a series of if/else blocks. The first branch whose condition\ - \ evaluates to true is the one to execute.\nIf no conditions were satisfied,\ - \ the else_node or the error will execute." - example: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - coreInputBindingData: - type: "object" - properties: - var: - type: "string" - example: - var: "var" - coreK8sObjectMetadata: - type: "object" - properties: - labels: - type: "object" - description: "Optional labels to add to the pod definition." - additionalProperties: - type: "string" - annotations: - type: "object" - description: "Optional annotations to add to the pod definition." - additionalProperties: - type: "string" - description: "Metadata for building a kubernetes object when a task is executed." - example: - annotations: - key: "annotations" - labels: - key: "labels" - coreK8sPod: - type: "object" - properties: - metadata: - description: "Contains additional metadata for building a kubernetes pod." - $ref: "#/definitions/coreK8sObjectMetadata" - pod_spec: - title: "Defines the primary pod spec created when a task is executed.\nThis\ - \ should be a JSON-marshalled pod spec, which can be defined in\n- go, using:\ - \ https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936\n\ - - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py" - $ref: "#/definitions/protobufStruct" - data_config: - title: "BETA: Optional configuration for DataLoading. If not specified, then\ - \ default values are used.\nThis makes it possible to to run a completely\ - \ portable container, that uses inputs and outputs\nonly from the local\ - \ file-system and without having any reference to flytekit. This is supported\ - \ only on K8s at the moment.\nIf data loading is enabled, then data will\ - \ be mounted in accompanying directories specified in the DataLoadingConfig.\ - \ If the directories\nare not specified, inputs will be mounted onto and\ - \ outputs will be uploaded from a pre-determined file-system path. Refer\ - \ to the documentation\nto understand the default paths.\nOnly K8s" - $ref: "#/definitions/coreDataLoadingConfig" - description: "Defines a pod spec and additional pod metadata that is created when\ - \ a task is executed." - example: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - coreKeyValuePair: - type: "object" - properties: - key: - type: "string" - description: "required." - value: - type: "string" - description: "+optional." - description: "A generic key value pair." - example: - value: "value" - key: "key" - coreLabelValue: - type: "object" - properties: - static_value: - type: "string" - triggered_binding: - $ref: "#/definitions/coreArtifactBindingData" - input_binding: - $ref: "#/definitions/coreInputBindingData" - example: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreLiteral: - type: "object" - properties: - scalar: - description: "A simple value." - $ref: "#/definitions/coreScalar" - collection: - description: "A collection of literals to allow nesting." - $ref: "#/definitions/coreLiteralCollection" - map: - description: "A map of strings to literals." - $ref: "#/definitions/coreLiteralMap" - hash: - type: "string" - title: "A hash representing this literal.\nThis is used for caching purposes.\ - \ For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - metadata: - type: "object" - description: "Additional metadata for literals." - additionalProperties: - type: "string" - description: "A simple value. This supports any level of nesting (e.g. array of\ - \ array of array of Blobs) as well as simple primitives." - example: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - coreLiteralCollection: - type: "object" - properties: - literals: - type: "array" - items: - $ref: "#/definitions/coreLiteral" - description: "A collection of literals. This is a workaround since oneofs in proto\ - \ messages cannot contain a repeated field." - example: - literals: - - null - - null - coreLiteralMap: - type: "object" - properties: - literals: - type: "object" - additionalProperties: - $ref: "#/definitions/coreLiteral" - description: "A map of literals. This is a workaround since oneofs in proto messages\ - \ cannot contain a repeated field." - example: - literals: {} - coreLiteralType: - type: "object" - properties: - simple: - description: "A simple type that can be compared one-to-one with another." - $ref: "#/definitions/coreSimpleType" - schema: - description: "A complex type that requires matching of inner fields." - $ref: "#/definitions/coreSchemaType" - collection_type: - description: "Defines the type of the value of a collection. Only homogeneous\ - \ collections are allowed." - $ref: "#/definitions/coreLiteralType" - map_value_type: - description: "Defines the type of the value of a map type. The type of the\ - \ key is always a string." - $ref: "#/definitions/coreLiteralType" - blob: - description: "A blob might have specialized implementation details depending\ - \ on associated metadata." - $ref: "#/definitions/coreBlobType" - enum_type: - description: "Defines an enum with pre-defined string values." - $ref: "#/definitions/coreEnumType" - structured_dataset_type: - title: "Generalized schema support" - $ref: "#/definitions/coreStructuredDatasetType" - union_type: - description: "Defines an union type with pre-defined LiteralTypes." - $ref: "#/definitions/coreUnionType" - metadata: - description: "This field contains type metadata that is descriptive of the\ - \ type, but is NOT considered in type-checking. This might be used by\n\ - consumers to identify special behavior or display extended information for\ - \ the type." - $ref: "#/definitions/protobufStruct" - annotation: - description: "This field contains arbitrary data that might have special semantic\n\ - meaning for the client but does not effect internal flyte behavior." - $ref: "#/definitions/coreTypeAnnotation" - structure: - description: "Hints to improve type matching." - $ref: "#/definitions/coreTypeStructure" - description: "Defines a strong type to allow type checking between interfaces." - example: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - coreNode: - type: "object" - properties: - id: - type: "string" - description: "A workflow-level unique identifier that identifies this node\ - \ in the workflow. 'inputs' and 'outputs' are reserved\nnode ids that cannot\ - \ be used by other nodes." - metadata: - description: "Extra metadata about the node." - $ref: "#/definitions/coreNodeMetadata" - inputs: - type: "array" - description: "Specifies how to bind the underlying interface's inputs. All\ - \ required inputs specified in the underlying interface\nmust be fulfilled." - items: - $ref: "#/definitions/coreBinding" - upstream_node_ids: - type: "array" - description: "+optional Specifies execution dependency for this node ensuring\ - \ it will only get scheduled to run after all its\nupstream nodes have completed.\ - \ This node will have an implicit dependency on any node that appears in\ - \ inputs\nfield." - items: - type: "string" - output_aliases: - type: "array" - description: "+optional. A node can define aliases for a subset of its outputs.\ - \ This is particularly useful if different nodes\nneed to conform to the\ - \ same interface (e.g. all branches in a branch node). Downstream nodes\ - \ must refer to this\nnodes outputs using the alias if one's specified." - items: - $ref: "#/definitions/coreAlias" - task_node: - description: "Information about the Task to execute in this node." - $ref: "#/definitions/coreTaskNode" - workflow_node: - description: "Information about the Workflow to execute in this mode." - $ref: "#/definitions/coreWorkflowNode" - branch_node: - description: "Information about the branch node to evaluate in this node." - $ref: "#/definitions/coreBranchNode" - gate_node: - description: "Information about the condition to evaluate in this node." - $ref: "#/definitions/coreGateNode" - array_node: - description: "Information about the sub-node executions for each value in\ - \ the list of this nodes\ninputs values." - $ref: "#/definitions/coreArrayNode" - description: "A Workflow graph Node. One unit of execution in the graph. Each\ - \ node can be linked to a Task, a Workflow or a branch\nnode." - example: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - coreNodeExecutionIdentifier: - type: "object" - properties: - node_id: - type: "string" - execution_id: - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - description: "Encapsulation of fields that identify a Flyte node execution entity." - example: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - coreNodeExecutionPhase: - type: "string" - enum: - - "UNDEFINED" - - "QUEUED" - - "RUNNING" - - "SUCCEEDED" - - "FAILING" - - "FAILED" - - "ABORTED" - - "SKIPPED" - - "TIMED_OUT" - - "DYNAMIC_RUNNING" - - "RECOVERED" - default: "UNDEFINED" - coreNodeMetadata: - type: "object" - properties: - name: - type: "string" - title: "A friendly name for the Node" - timeout: - type: "string" - description: "The overall timeout of a task." - retries: - description: "Number of retries per task." - $ref: "#/definitions/coreRetryStrategy" - interruptible: - type: "boolean" - format: "boolean" - description: "Defines extra information about the Node." - example: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - coreOAuth2Client: - type: "object" - properties: - client_id: - type: "string" - title: "client_id is the public id for the client to use. The system will\ - \ not perform any pre-auth validation that the\nsecret requested matches\ - \ the client_id indicated here.\n+required" - client_secret: - title: "client_secret is a reference to the secret used to authenticate the\ - \ OAuth2 client.\n+required" - $ref: "#/definitions/coreSecret" - description: "OAuth2Client encapsulates OAuth2 Client Credentials to be used when\ - \ making calls on behalf of that task." - example: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - coreOAuth2TokenRequest: - type: "object" - properties: - name: - type: "string" - title: "name indicates a unique id for the token request within this task\ - \ token requests. It'll be used as a suffix for\nenvironment variables and\ - \ as a filename for mounting tokens as files.\n+required" - type: - title: "type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.\n\ - +required" - $ref: "#/definitions/coreOAuth2TokenRequestType" - client: - title: "client references the client_id/secret to use to request the OAuth2\ - \ token.\n+required" - $ref: "#/definitions/coreOAuth2Client" - idp_discovery_endpoint: - type: "string" - title: "idp_discovery_endpoint references the discovery endpoint used to retrieve\ - \ token endpoint and other related\ninformation.\n+optional" - token_endpoint: - type: "string" - title: "token_endpoint references the token issuance endpoint. If idp_discovery_endpoint\ - \ is not provided, this parameter is\nmandatory.\n+optional" - description: "OAuth2TokenRequest encapsulates information needed to request an\ - \ OAuth2 token.\nFLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix\ - \ of the environment variables that will be present if\ntokens are passed through\ - \ environment variables.\nFLYTE_TOKENS_PATH_PREFIX will be passed to indicate\ - \ the prefix of the path where secrets will be mounted if tokens\nare passed\ - \ through file mounts." - example: - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - coreOAuth2TokenRequestType: - type: "string" - description: "Type of the token requested.\n\n - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS\ - \ indicates a 2-legged OAuth token requested using client credentials." - enum: - - "CLIENT_CREDENTIALS" - default: "CLIENT_CREDENTIALS" - coreOperand: - type: "object" - properties: - primitive: - title: "Can be a constant" - $ref: "#/definitions/corePrimitive" - var: - type: "string" - title: "Or one of this node's input variables" - scalar: - title: "Replace the primitive field" - $ref: "#/definitions/coreScalar" - description: "Defines an operand to a comparison expression." - example: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - coreOutputReference: - type: "object" - properties: - node_id: - type: "string" - description: "Node id must exist at the graph layer." - var: - type: "string" - description: "Variable name must refer to an output variable for the node." - attr_path: - type: "array" - items: - $ref: "#/definitions/corePromiseAttribute" - description: "A reference to an output produced by a node. The type can be retrieved\ - \ -and validated- from\nthe underlying interface of the node." - example: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - coreParameter: - type: "object" - properties: - var: - description: "+required Variable. Defines the type of the variable backing\ - \ this parameter." - $ref: "#/definitions/coreVariable" - default: - description: "Defines a default value that has to match the variable type\ - \ defined." - $ref: "#/definitions/coreLiteral" - required: - type: "boolean" - format: "boolean" - description: "+optional, is this value required to be filled." - artifact_query: - description: "This is an execution time search basically that should result\ - \ in exactly one Artifact with a Type that\nmatches the type of the variable." - $ref: "#/definitions/coreArtifactQuery" - artifact_id: - $ref: "#/definitions/coreArtifactID" - description: "A parameter is used as input to a launch plan and has\nthe special\ - \ ability to have a default value or mark itself as required." - example: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - coreParameterMap: - type: "object" - properties: - parameters: - type: "object" - description: "Defines a map of parameter names to parameters." - additionalProperties: - $ref: "#/definitions/coreParameter" - description: "A map of Parameters." - example: - parameters: - key: - default: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - metadata: - key: "metadata" - collection: - literals: - - null - - null - map: - literals: {} - hash: "hash" - var: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_query: - binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - uri: "uri" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - required: true - corePartitions: - type: "object" - properties: - value: - type: "object" - additionalProperties: - $ref: "#/definitions/coreLabelValue" - example: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - corePrimitive: - type: "object" - properties: - integer: - type: "string" - format: "int64" - float_value: - type: "number" - format: "double" - string_value: - type: "string" - boolean: - type: "boolean" - format: "boolean" - datetime: - type: "string" - format: "date-time" - duration: - type: "string" - title: "Primitive Types" - example: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - corePromiseAttribute: - type: "object" - properties: - string_value: - type: "string" - int_value: - type: "integer" - format: "int32" - example: - string_value: "string_value" - int_value: 6 - coreQualityOfService: - type: "object" - properties: - tier: - $ref: "#/definitions/QualityOfServiceTier" - spec: - $ref: "#/definitions/coreQualityOfServiceSpec" - description: "Indicates the priority of an execution." - example: - tier: {} - spec: - queueing_budget: "queueing_budget" - coreQualityOfServiceSpec: - type: "object" - properties: - queueing_budget: - type: "string" - description: "Indicates how much queueing delay an execution can tolerate." - description: "Represents customized execution run-time attributes." - example: - queueing_budget: "queueing_budget" - coreResourceType: - type: "string" - description: "Indicates a resource type within Flyte.\n\n - DATASET: A dataset\ - \ represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned\ - \ entity and can be a compilation of multiple individual objects.\nEventually\ - \ all Catalog objects should be modeled similar to Flyte Objects. The Dataset\ - \ entities makes it possible for the UI and CLI to act on the objects \nin\ - \ a similar manner to other Flyte objects" - enum: - - "UNSPECIFIED" - - "TASK" - - "WORKFLOW" - - "LAUNCH_PLAN" - - "DATASET" - default: "UNSPECIFIED" - coreResources: - type: "object" - properties: - requests: - type: "array" - description: "The desired set of resources requested. ResourceNames must be\ - \ unique within the list." - items: - $ref: "#/definitions/ResourcesResourceEntry" - limits: - type: "array" - description: "Defines a set of bounds (e.g. min/max) within which the task\ - \ can reliably run. ResourceNames must be unique\nwithin the list." - items: - $ref: "#/definitions/ResourcesResourceEntry" - description: "A customizable interface to convey resources requested for a container.\ - \ This can be interpreted differently for different\ncontainer engines." - example: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - coreRetryStrategy: - type: "object" - properties: - retries: - type: "integer" - format: "int64" - description: "Number of retries. Retries will be consumed when the job fails\ - \ with a recoverable error.\nThe number of retries must be less than or\ - \ equals to 10." - description: "Retry strategy associated with an executable unit." - example: - retries: 0 - coreRuntimeMetadata: - type: "object" - properties: - type: - description: "Type of runtime." - $ref: "#/definitions/RuntimeMetadataRuntimeType" - version: - type: "string" - description: "Version of the runtime. All versions should be backward compatible.\ - \ However, certain cases call for version\nchecks to ensure tighter validation\ - \ or setting expectations." - flavor: - type: "string" - description: "+optional It can be used to provide extra information about\ - \ the runtime (e.g. python, golang... etc.)." - description: "Runtime information. This is loosely defined to allow for extensibility." - example: - flavor: "flavor" - type: {} - version: "version" - coreScalar: - type: "object" - properties: - primitive: - $ref: "#/definitions/corePrimitive" - blob: - $ref: "#/definitions/coreBlob" - binary: - $ref: "#/definitions/coreBinary" - schema: - $ref: "#/definitions/coreSchema" - none_type: - $ref: "#/definitions/coreVoid" - error: - $ref: "#/definitions/coreError" - generic: - $ref: "#/definitions/protobufStruct" - structured_dataset: - $ref: "#/definitions/coreStructuredDataset" - union: - $ref: "#/definitions/coreUnion" - example: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - coreSchema: - type: "object" - properties: - uri: - type: "string" - type: - $ref: "#/definitions/coreSchemaType" - description: "A strongly typed schema that defines the interface of data retrieved\ - \ from the underlying storage medium." - example: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - coreSchemaType: - type: "object" - properties: - columns: - type: "array" - description: "A list of ordered columns this schema comprises of." - items: - $ref: "#/definitions/SchemaTypeSchemaColumn" - description: "Defines schema columns and types to strongly type-validate schemas\ - \ interoperability." - example: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - coreSecret: - type: "object" - properties: - group: - type: "string" - title: "The name of the secret group where to find the key referenced below.\ - \ For K8s secrets, this should be the name of\nthe v1/secret object. For\ - \ Confidant, this should be the Credential name. For Vault, this should\ - \ be the secret name.\nFor AWS Secret Manager, this should be the name of\ - \ the secret.\n+required" - group_version: - type: "string" - title: "The group version to fetch. This is not supported in all secret management\ - \ systems. It'll be ignored for the ones\nthat do not support it.\n+optional" - key: - type: "string" - title: "The name of the secret to mount. This has to match an existing secret\ - \ in the system. It's up to the implementation\nof the secret management\ - \ system to require case sensitivity. For K8s secrets, Confidant and Vault,\ - \ this should\nmatch one of the keys inside the secret. For AWS Secret Manager,\ - \ it's ignored.\n+optional" - mount_requirement: - title: "mount_requirement is optional. Indicates where the secret has to be\ - \ mounted. If provided, the execution will fail\nif the underlying key management\ - \ system cannot satisfy that requirement. If not provided, the default location\n\ - will depend on the key management system.\n+optional" - $ref: "#/definitions/SecretMountType" - description: "Secret encapsulates information about the secret a task needs to\ - \ proceed. An environment variable\nFLYTE_SECRETS_ENV_PREFIX will be passed\ - \ to indicate the prefix of the environment variables that will be present if\n\ - secrets are passed through environment variables.\nFLYTE_SECRETS_DEFAULT_DIR\ - \ will be passed to indicate the prefix of the path where secrets will be mounted\ - \ if secrets\nare passed through file mounts." - example: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - coreSecurityContext: - type: "object" - properties: - run_as: - description: "run_as encapsulates the identity a pod should run as. If the\ - \ task fills in multiple fields here, it'll be up to the\nbackend plugin\ - \ to choose the appropriate identity for the execution engine the task will\ - \ run on." - $ref: "#/definitions/coreIdentity" - secrets: - type: "array" - description: "secrets indicate the list of secrets the task needs in order\ - \ to proceed. Secrets will be mounted/passed to the\npod as it starts. If\ - \ the plugin responsible for kicking of the task will not run it on a flyte\ - \ cluster (e.g. AWS\nBatch), it's the responsibility of the plugin to fetch\ - \ the secret (which means propeller identity will need access\nto the secret)\ - \ and to pass it to the remote execution engine." - items: - $ref: "#/definitions/coreSecret" - tokens: - type: "array" - description: "tokens indicate the list of token requests the task needs in\ - \ order to proceed. Tokens will be mounted/passed to the\npod as it starts.\ - \ If the plugin responsible for kicking of the task will not run it on a\ - \ flyte cluster (e.g. AWS\nBatch), it's the responsibility of the plugin\ - \ to fetch the secret (which means propeller identity will need access\n\ - to the secret) and to pass it to the remote execution engine." - items: - $ref: "#/definitions/coreOAuth2TokenRequest" - description: "SecurityContext holds security attributes that apply to tasks." - example: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - coreSignalCondition: - type: "object" - properties: - signal_id: - type: "string" - description: "A unique identifier for the requested signal." - type: - description: "A type denoting the required value type for this signal." - $ref: "#/definitions/coreLiteralType" - output_variable_name: - type: "string" - description: "The variable name for the signal value in this nodes outputs." - description: "SignalCondition represents a dependency on an signal." - example: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - coreSimpleType: - type: "string" - description: "Define a set of simple types." - enum: - - "NONE" - - "INTEGER" - - "FLOAT" - - "STRING" - - "BOOLEAN" - - "DATETIME" - - "DURATION" - - "BINARY" - - "ERROR" - - "STRUCT" - default: "NONE" - coreSleepCondition: - type: "object" - properties: - duration: - type: "string" - description: "The overall duration for this sleep." - description: "SleepCondition represents a dependency on waiting for the specified\ - \ duration." - example: - duration: "duration" - coreSpan: - type: "object" - properties: - start_time: - type: "string" - format: "date-time" - description: "start_time defines the instance this span began." - end_time: - type: "string" - format: "date-time" - description: "end_time defines the instance this span completed." - workflow_id: - description: "workflow_id is the id of the workflow execution this Span represents." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - node_id: - description: "node_id is the id of the node execution this Span represents." - $ref: "#/definitions/coreNodeExecutionIdentifier" - task_id: - description: "task_id is the id of the task execution this Span represents." - $ref: "#/definitions/coreTaskExecutionIdentifier" - operation_id: - type: "string" - description: "operation_id is the id of a unique operation that this Span\ - \ represents." - spans: - type: "array" - description: "spans defines a collection of Spans that breakdown this execution." - items: - $ref: "#/definitions/coreSpan" - description: "Span represents a duration trace of Flyte execution. The id field\ - \ denotes a Flyte execution entity or an operation\nwhich uniquely identifies\ - \ the Span. The spans attribute allows this Span to be further broken down into\ - \ more\nprecise definitions." - example: - start_time: "2000-01-23T04:56:07.000+00:00" - spans: - - null - - null - workflow_id: - domain: "domain" - name: "name" - project: "project" - end_time: "2000-01-23T04:56:07.000+00:00" - task_id: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - operation_id: "operation_id" - node_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - coreSql: - type: "object" - properties: - statement: - type: "string" - title: "The actual query to run, the query can have templated parameters.\n\ - We use Flyte's Golang templating format for Query templating.\nRefer to\ - \ the templating documentation.\nhttps://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py\n\ - For example,\ninsert overwrite directory '{{ .rawOutputDataPrefix }}' stored\ - \ as parquet\nselect *\nfrom my_table\nwhere ds = '{{ .Inputs.ds }}'" - dialect: - $ref: "#/definitions/SqlDialect" - description: "Sql represents a generic sql workload with a statement and dialect." - example: - dialect: {} - statement: "statement" - coreStructuredDataset: - type: "object" - properties: - uri: - type: "string" - title: "String location uniquely identifying where the data is.\nShould start\ - \ with the storage location (e.g. s3://, gs://, bq://, etc.)" - metadata: - $ref: "#/definitions/coreStructuredDatasetMetadata" - example: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - coreStructuredDatasetMetadata: - type: "object" - properties: - structured_dataset_type: - description: "Bundle the type information along with the literal.\nThis is\ - \ here because StructuredDatasets can often be more defined at run time\ - \ than at compile time.\nThat is, at compile time you might only declare\ - \ a task to return a pandas dataframe or a StructuredDataset,\nwithout any\ - \ column information, but at run time, you might have that column information.\n\ - flytekit python will copy this type information into the literal, from the\ - \ type information, if not provided by\nthe various plugins (encoders).\n\ - Since this field is run time generated, it's not used for any type checking." - $ref: "#/definitions/coreStructuredDatasetType" - example: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - coreStructuredDatasetType: - type: "object" - properties: - columns: - type: "array" - description: "A list of ordered columns this schema comprises of." - items: - $ref: "#/definitions/StructuredDatasetTypeDatasetColumn" - format: - type: "string" - description: "This is the storage format, the format of the bits at rest\n\ - parquet, feather, csv, etc.\nFor two types to be compatible, the format\ - \ will need to be an exact match." - external_schema_type: - type: "string" - description: "This is a string representing the type that the bytes in external_schema_bytes\ - \ are formatted in.\nThis is an optional field that will not be used for\ - \ type checking." - external_schema_bytes: - type: "string" - format: "byte" - description: "The serialized bytes of a third-party schema library like Arrow.\n\ - This is an optional field that will not be used for type checking." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - example: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - coreTaskExecutionIdentifier: - type: "object" - properties: - task_id: - $ref: "#/definitions/coreIdentifier" - node_execution_id: - $ref: "#/definitions/coreNodeExecutionIdentifier" - retry_attempt: - type: "integer" - format: "int64" - description: "Encapsulation of fields that identify a Flyte task execution entity." - example: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - coreTaskExecutionPhase: - type: "string" - title: "- INITIALIZING: To indicate cases where task is initializing, like: ErrImagePull,\ - \ ContainerCreating, PodInitializing\n - WAITING_FOR_RESOURCES: To address cases,\ - \ where underlying resource is not available: Backoff error, Resource quota\ - \ exceeded" - enum: - - "UNDEFINED" - - "QUEUED" - - "RUNNING" - - "SUCCEEDED" - - "ABORTED" - - "FAILED" - - "INITIALIZING" - - "WAITING_FOR_RESOURCES" - default: "UNDEFINED" - coreTaskLog: - type: "object" - properties: - uri: - type: "string" - name: - type: "string" - message_format: - $ref: "#/definitions/TaskLogMessageFormat" - ttl: - type: "string" - title: "Log information for the task that is specific to a log sink\nWhen our\ - \ log story is flushed out, we may have more metadata here like log link expiry" - example: - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - coreTaskMetadata: - type: "object" - properties: - discoverable: - type: "boolean" - format: "boolean" - description: "Indicates whether the system should attempt to lookup this task's\ - \ output to avoid duplication of work." - runtime: - description: "Runtime information about the task." - $ref: "#/definitions/coreRuntimeMetadata" - timeout: - type: "string" - description: "The overall timeout of a task including user-triggered retries." - retries: - description: "Number of retries per task." - $ref: "#/definitions/coreRetryStrategy" - discovery_version: - type: "string" - description: "Indicates a logical version to apply to this task for the purpose\ - \ of discovery." - deprecated_error_message: - type: "string" - description: "If set, this indicates that this task is deprecated. This will\ - \ enable owners of tasks to notify consumers\nof the ending of support for\ - \ a given task." - interruptible: - type: "boolean" - format: "boolean" - cache_serializable: - type: "boolean" - format: "boolean" - title: "Indicates whether the system should attempt to execute discoverable\ - \ instances in serial to avoid duplicate work" - generates_deck: - type: "boolean" - format: "boolean" - description: "Indicates whether the task will generate a Deck URI when it\ - \ finishes executing." - tags: - type: "object" - title: "Arbitrary tags that allow users and the platform to store small but\ - \ arbitrary labels" - additionalProperties: - type: "string" - pod_template_name: - type: "string" - description: "pod_template_name is the unique name of a PodTemplate k8s resource\ - \ to be used as the base configuration if this\ntask creates a k8s Pod.\ - \ If this value is set, the specified PodTemplate will be used instead of,\ - \ but applied\nidentically as, the default PodTemplate configured in FlytePropeller." - cache_ignore_input_vars: - type: "array" - description: "cache_ignore_input_vars is the input variables that should not\ - \ be included when calculating hash for cache." - items: - type: "string" - title: "Task Metadata" - example: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - coreTaskNode: - type: "object" - properties: - reference_id: - description: "A globally unique identifier for the task." - $ref: "#/definitions/coreIdentifier" - overrides: - description: "Optional overrides applied at task execution time." - $ref: "#/definitions/coreTaskNodeOverrides" - description: "Refers to the task that the Node is to execute." - example: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - coreTaskNodeOverrides: - type: "object" - properties: - resources: - description: "A customizable interface to convey resources requested for a\ - \ task container." - $ref: "#/definitions/coreResources" - extended_resources: - description: "Overrides for all non-standard resources, not captured by\n\ - v1.ResourceRequirements, to allocate to a task." - $ref: "#/definitions/coreExtendedResources" - description: "Optional task node overrides that will be applied at task execution\ - \ time." - example: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - coreTaskTemplate: - type: "object" - properties: - id: - description: "Auto generated taskId by the system. Task Id uniquely identifies\ - \ this task globally." - $ref: "#/definitions/coreIdentifier" - type: - type: "string" - description: "A predefined yet extensible Task type identifier. This can be\ - \ used to customize any of the components. If no\nextensions are provided\ - \ in the system, Flyte will resolve the this task to its TaskCategory and\ - \ default the\nimplementation registered for the TaskCategory." - metadata: - description: "Extra metadata about the task." - $ref: "#/definitions/coreTaskMetadata" - interface: - description: "A strongly typed interface for the task. This enables others\ - \ to use this task within a workflow and guarantees\ncompile-time validation\ - \ of the workflow to avoid costly runtime failures." - $ref: "#/definitions/coreTypedInterface" - custom: - description: "Custom data about the task. This is extensible to allow various\ - \ plugins in the system." - $ref: "#/definitions/protobufStruct" - container: - $ref: "#/definitions/coreContainer" - k8s_pod: - $ref: "#/definitions/coreK8sPod" - sql: - $ref: "#/definitions/coreSql" - task_type_version: - type: "integer" - format: "int32" - description: "This can be used to customize task handling at execution time\ - \ for the same task type." - security_context: - description: "security_context encapsulates security attributes requested\ - \ to run this task." - $ref: "#/definitions/coreSecurityContext" - extended_resources: - description: "Encapsulates all non-standard resources, not captured by\nv1.ResourceRequirements,\ - \ to allocate to a task." - $ref: "#/definitions/coreExtendedResources" - config: - type: "object" - title: "Metadata about the custom defined for this task. This is extensible\ - \ to allow various plugins in the system\nto use as required.\nreserve the\ - \ field numbers 1 through 15 for very frequently occurring message elements" - additionalProperties: - type: "string" - description: "A Task structure that uniquely identifies a task in the system\n\ - Tasks are registered as a first step in the system." - example: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - coreTypeAnnotation: - type: "object" - properties: - annotations: - description: "A arbitrary JSON payload to describe a type." - $ref: "#/definitions/protobufStruct" - description: "TypeAnnotation encapsulates registration time information about\ - \ a type. This can be used for various control-plane operations. TypeAnnotation\ - \ will not be available at runtime when a task runs." - example: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - coreTypeStructure: - type: "object" - properties: - tag: - type: "string" - title: "Must exactly match for types to be castable" - dataclass_type: - type: "object" - title: "dataclass_type only exists for dataclasses.\nThis is used to resolve\ - \ the type of the fields of dataclass\nThe key is the field name, and the\ - \ value is the literal type of the field\ne.g. For dataclass Foo, with fields\ - \ a, and a is a string\nFoo.a will be resolved as a literal type of string\ - \ from dataclass_type" - additionalProperties: - $ref: "#/definitions/coreLiteralType" - description: "Hints to improve type matching\ne.g. allows distinguishing output\ - \ from custom type transformers\neven if the underlying IDL serialization matches." - example: - dataclass_type: {} - tag: "tag" - coreTypedInterface: - type: "object" - properties: - inputs: - $ref: "#/definitions/coreVariableMap" - outputs: - $ref: "#/definitions/coreVariableMap" - description: "Defines strongly typed inputs and outputs." - example: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreUnion: - type: "object" - properties: - value: - $ref: "#/definitions/coreLiteral" - type: - $ref: "#/definitions/coreLiteralType" - description: "The runtime representation of a tagged union value. See `UnionType`\ - \ for more details." - example: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - coreUnionInfo: - type: "object" - properties: - targetType: - $ref: "#/definitions/coreLiteralType" - example: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - coreUnionType: - type: "object" - properties: - variants: - type: "array" - description: "Predefined set of variants in union." - items: - $ref: "#/definitions/coreLiteralType" - description: "Defines a tagged union type, also known as a variant (and formally\ - \ as the sum type).\n\nA sum type S is defined by a sequence of types (A, B,\ - \ C, ...), each tagged by a string tag\nA value of type S is constructed from\ - \ a value of any of the variant types. The specific choice of type is recorded\ - \ by\nstoring the varaint's tag with the literal value and can be examined in\ - \ runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe\ - \ C | ...\n\nNotably, a nullable (optional) type is a sum type between some\ - \ type X and the singleton type representing a null-value:\nOptional X := X\ - \ | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - example: - variants: - - null - - null - coreVariable: - type: "object" - properties: - type: - description: "Variable literal type." - $ref: "#/definitions/coreLiteralType" - description: - type: "string" - title: "+optional string describing input variable" - artifact_partial_id: - description: "+optional This object allows the user to specify how Artifacts\ - \ are created.\nname, tag, partitions can be specified. The other fields\ - \ (version and project/domain) are ignored." - $ref: "#/definitions/coreArtifactID" - artifact_tag: - $ref: "#/definitions/coreArtifactTag" - description: "Defines a strongly typed variable." - example: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreVariableMap: - type: "object" - properties: - variables: - type: "object" - description: "Defines a map of variable names to variables." - additionalProperties: - $ref: "#/definitions/coreVariable" - title: "A map of Variables" - example: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - coreVoid: - type: "object" - description: "Used to denote a nil/null/None assignment to a scalar value. The\ - \ underlying LiteralType for Void is intentionally\nundefined since it can be\ - \ assigned to a scalar of any LiteralType." - coreWorkflowExecutionIdentifier: - type: "object" - properties: - project: - type: "string" - description: "Name of the project the resource belongs to." - domain: - type: "string" - description: "Name of the domain the resource belongs to.\nA domain can be\ - \ considered as a subset within a specific project." - name: - type: "string" - description: "User or system provided value for the resource." - title: "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - example: - domain: "domain" - name: "name" - project: "project" - coreWorkflowExecutionPhase: - type: "string" - enum: - - "UNDEFINED" - - "QUEUED" - - "RUNNING" - - "SUCCEEDING" - - "SUCCEEDED" - - "FAILING" - - "FAILED" - - "ABORTED" - - "TIMED_OUT" - - "ABORTING" - default: "UNDEFINED" - coreWorkflowMetadata: - type: "object" - properties: - quality_of_service: - description: "Indicates the runtime priority of workflow executions." - $ref: "#/definitions/coreQualityOfService" - on_failure: - description: "Defines how the system should behave when a failure is detected\ - \ in the workflow execution." - $ref: "#/definitions/WorkflowMetadataOnFailurePolicy" - tags: - type: "object" - title: "Arbitrary tags that allow users and the platform to store small but\ - \ arbitrary labels" - additionalProperties: - type: "string" - description: "This is workflow layer metadata. These settings are only applicable\ - \ to the workflow as a whole, and do not\npercolate down to child entities (like\ - \ tasks) launched by the workflow." - example: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - coreWorkflowMetadataDefaults: - type: "object" - properties: - interruptible: - type: "boolean" - format: "boolean" - description: "Whether child nodes of the workflow are interruptible." - description: "The difference between these settings and the WorkflowMetadata ones\ - \ is that these are meant to be passed down to\na workflow's underlying entities\ - \ (like tasks). For instance, 'interruptible' has no meaning at the workflow\ - \ layer, it\nis only relevant when a task executes. The settings here are the\ - \ defaults that are passed to all nodes\nunless explicitly overridden at the\ - \ node layer.\nIf you are adding a setting that applies to both the Workflow\ - \ itself, and everything underneath it, it should be\nadded to both this object\ - \ and the WorkflowMetadata object above." - example: - interruptible: true - coreWorkflowNode: - type: "object" - properties: - launchplan_ref: - description: "A globally unique identifier for the launch plan." - $ref: "#/definitions/coreIdentifier" - sub_workflow_ref: - title: "Reference to a subworkflow, that should be defined with the compiler\ - \ context" - $ref: "#/definitions/coreIdentifier" - description: "Refers to a the workflow the node is to execute." - example: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - coreWorkflowTemplate: - type: "object" - properties: - id: - description: "A globally unique identifier for the workflow." - $ref: "#/definitions/coreIdentifier" - metadata: - description: "Extra metadata about the workflow." - $ref: "#/definitions/coreWorkflowMetadata" - interface: - description: "Defines a strongly typed interface for the Workflow. This can\ - \ include some optional parameters." - $ref: "#/definitions/coreTypedInterface" - nodes: - type: "array" - description: "A list of nodes. In addition, 'globals' is a special reserved\ - \ node id that can be used to consume workflow inputs." - items: - $ref: "#/definitions/coreNode" - outputs: - type: "array" - description: "A list of output bindings that specify how to construct workflow\ - \ outputs. Bindings can pull node outputs or\nspecify literals. All workflow\ - \ outputs specified in the interface field must be bound in order for the\ - \ workflow\nto be validated. A workflow has an implicit dependency on all\ - \ of its nodes to execute successfully in order to\nbind final outputs.\n\ - Most of these outputs will be Binding's with a BindingData of type OutputReference.\ - \ That is, your workflow can\njust have an output of some constant (`Output(5)`),\ - \ but usually, the workflow will be pulling\noutputs from the output of\ - \ a task." - items: - $ref: "#/definitions/coreBinding" - failure_node: - description: "+optional A catch-all node. This node is executed whenever the\ - \ execution engine determines the workflow has failed.\nThe interface of\ - \ this node must match the Workflow interface with an additional input named\ - \ 'error' of type\npb.lyft.flyte.core.Error." - $ref: "#/definitions/coreNode" - metadata_defaults: - title: "workflow defaults" - $ref: "#/definitions/coreWorkflowMetadataDefaults" - description: "Flyte Workflow Structure that encapsulates task, branch and subworkflow\ - \ nodes to form a statically analyzable,\ndirected acyclic graph." - example: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - eventEventReason: - type: "object" - properties: - reason: - type: "string" - title: "An explanation for this event" - occurred_at: - type: "string" - format: "date-time" - title: "The time this reason occurred" - eventExternalResourceInfo: - type: "object" - properties: - external_id: - type: "string" - description: "Identifier for an external resource created by this task execution,\ - \ for example Qubole query ID or presto query ids." - index: - type: "integer" - format: "int64" - description: "A unique index for the external resource with respect to all\ - \ external resources for this task. Although the\nidentifier may change\ - \ between task reporting events or retries, this will remain the same to\ - \ enable aggregating\ninformation from multiple reports." - retry_attempt: - type: "integer" - format: "int64" - title: "Retry attempt number for this external resource, ie., 2 for the second\ - \ attempt" - phase: - title: "Phase associated with the external resource" - $ref: "#/definitions/coreTaskExecutionPhase" - cache_status: - description: "Captures the status of caching for this external resource execution." - $ref: "#/definitions/coreCatalogCacheStatus" - logs: - type: "array" - title: "log information for the external resource execution" - items: - $ref: "#/definitions/coreTaskLog" - description: "This message contains metadata about external resources produced\ - \ or used by a specific task execution." - example: - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - eventNodeExecutionEvent: - type: "object" - properties: - id: - title: "Unique identifier for this node execution" - $ref: "#/definitions/coreNodeExecutionIdentifier" - producer_id: - type: "string" - title: "the id of the originator (Propeller) of the event" - phase: - $ref: "#/definitions/coreNodeExecutionPhase" - occurred_at: - type: "string" - format: "date-time" - description: "This timestamp represents when the original event occurred,\ - \ it is generated\nby the executor of the node." - input_uri: - type: "string" - input_data: - description: "Raw input data consumed by this node execution." - $ref: "#/definitions/coreLiteralMap" - output_uri: - type: "string" - description: "URL to the output of the execution, it encodes all the information\n\ - including Cloud source provider. ie., s3://..." - error: - title: "Error information for the execution" - $ref: "#/definitions/coreExecutionError" - output_data: - description: "Raw output data produced by this node execution." - $ref: "#/definitions/coreLiteralMap" - workflow_node_metadata: - $ref: "#/definitions/flyteidleventWorkflowNodeMetadata" - task_node_metadata: - $ref: "#/definitions/flyteidleventTaskNodeMetadata" - parent_task_metadata: - description: "[To be deprecated] Specifies which task (if any) launched this\ - \ node." - $ref: "#/definitions/eventParentTaskExecutionMetadata" - parent_node_metadata: - description: "Specifies the parent node of the current node execution. Node\ - \ executions at level zero will not have a parent node." - $ref: "#/definitions/eventParentNodeExecutionMetadata" - retry_group: - type: "string" - title: "Retry group to indicate grouping of nodes by retries" - spec_node_id: - type: "string" - title: "Identifier of the node in the original workflow/graph\nThis maps to\ - \ value of WorkflowTemplate.nodes[X].id" - node_name: - type: "string" - title: "Friendly readable name for the node" - event_version: - type: "integer" - format: "int32" - is_parent: - type: "boolean" - format: "boolean" - description: "Whether this node launched a subworkflow." - is_dynamic: - type: "boolean" - format: "boolean" - description: "Whether this node yielded a dynamic workflow." - deck_uri: - type: "string" - title: "String location uniquely identifying where the deck HTML file is\n\ - NativeUrl specifies the url in the format of the configured storage provider\ - \ (e.g. s3://my-bucket/randomstring/suffix.tar)" - reported_at: - type: "string" - format: "date-time" - description: "This timestamp represents the instant when the event was reported\ - \ by the executing framework. For example,\nwhen first processing a node\ - \ the `occurred_at` timestamp should be the instant propeller makes progress,\ - \ so when\nliteral inputs are initially copied. The event however will not\ - \ be sent until after the copy completes.\nExtracting both of these timestamps\ - \ facilitates a more accurate portrayal of the evaluation time-series." - is_array: - type: "boolean" - format: "boolean" - description: "Indicates if this node is an ArrayNode." - eventParentNodeExecutionMetadata: - type: "object" - properties: - node_id: - type: "string" - title: "Unique identifier of the parent node id within the execution\nThis\ - \ is value of core.NodeExecutionIdentifier.node_id of the parent node" - eventParentTaskExecutionMetadata: - type: "object" - properties: - id: - $ref: "#/definitions/coreTaskExecutionIdentifier" - eventResourcePoolInfo: - type: "object" - properties: - allocation_token: - type: "string" - description: "Unique resource ID used to identify this execution when allocating\ - \ a token." - namespace: - type: "string" - description: "Namespace under which this task execution requested an allocation\ - \ token." - description: "This message holds task execution metadata specific to resource\ - \ allocation used to manage concurrent\nexecutions for a project namespace." - example: - allocation_token: "allocation_token" - namespace: "namespace" - eventTaskExecutionEvent: - type: "object" - properties: - task_id: - description: "ID of the task. In combination with the retryAttempt this will\ - \ indicate\nthe task execution uniquely for a given parent node execution." - $ref: "#/definitions/coreIdentifier" - parent_node_execution_id: - title: "A task execution is always kicked off by a node execution, the event\ - \ consumer\nwill use the parent_id to relate the task to it's parent node\ - \ execution" - $ref: "#/definitions/coreNodeExecutionIdentifier" - retry_attempt: - type: "integer" - format: "int64" - title: "retry attempt number for this task, ie., 2 for the second attempt" - phase: - title: "Phase associated with the event" - $ref: "#/definitions/coreTaskExecutionPhase" - producer_id: - type: "string" - title: "id of the process that sent this event, mainly for trace debugging" - logs: - type: "array" - title: "log information for the task execution" - items: - $ref: "#/definitions/coreTaskLog" - occurred_at: - type: "string" - format: "date-time" - description: "This timestamp represents when the original event occurred,\ - \ it is generated\nby the executor of the task." - input_uri: - type: "string" - description: "URI of the input file, it encodes all the information\nincluding\ - \ Cloud source provider. ie., s3://..." - input_data: - description: "Raw input data consumed by this task execution." - $ref: "#/definitions/coreLiteralMap" - output_uri: - type: "string" - description: "URI to the output of the execution, it will be in a format that\ - \ encodes all the information\nincluding Cloud source provider. ie., s3://..." - error: - title: "Error information for the execution" - $ref: "#/definitions/coreExecutionError" - output_data: - description: "Raw output data produced by this task execution." - $ref: "#/definitions/coreLiteralMap" - custom_info: - description: "Custom data that the task plugin sends back. This is extensible\ - \ to allow various plugins in the system." - $ref: "#/definitions/protobufStruct" - phase_version: - type: "integer" - format: "int64" - description: "Some phases, like RUNNING, can send multiple events with changed\ - \ metadata (new logs, additional custom_info, etc)\nthat should be recorded\ - \ regardless of the lack of phase change.\nThe version field should be incremented\ - \ when metadata changes across the duration of an individual phase." - reason: - type: "string" - description: "An optional explanation for the phase transition.\nDeprecated:\ - \ Use reasons instead." - reasons: - type: "array" - description: "An optional list of explanations for the phase transition." - items: - $ref: "#/definitions/eventEventReason" - task_type: - type: "string" - description: "A predefined yet extensible Task type identifier. If the task\ - \ definition is already registered in flyte admin\nthis type will be identical,\ - \ but not all task executions necessarily use pre-registered definitions\ - \ and this\ntype is useful to render the task in the UI, filter task executions,\ - \ etc." - metadata: - description: "Metadata around how a task was executed." - $ref: "#/definitions/flyteidleventTaskExecutionMetadata" - event_version: - type: "integer" - format: "int32" - description: "The event version is used to indicate versioned changes in how\ - \ data is reported using this\nproto message. For example, event_verison\ - \ > 0 means that maps tasks report logs using the\nTaskExecutionMetadata\ - \ ExternalResourceInfo fields for each subtask rather than the TaskLog\n\ - in this message." - reported_at: - type: "string" - format: "date-time" - description: "This timestamp represents the instant when the event was reported\ - \ by the executing framework. For example, a k8s\npod task may be marked\ - \ completed at (ie. `occurred_at`) the instant the container running user\ - \ code completes,\nbut this event will not be reported until the pod is\ - \ marked as completed. Extracting both of these timestamps\nfacilitates\ - \ a more accurate portrayal of the evaluation time-series." - description: "Plugin specific execution event information. For tasks like Python,\ - \ Hive, Spark, DynamicJob." - eventWorkflowExecutionEvent: - type: "object" - properties: - execution_id: - title: "Workflow execution id" - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - producer_id: - type: "string" - title: "the id of the originator (Propeller) of the event" - phase: - $ref: "#/definitions/coreWorkflowExecutionPhase" - occurred_at: - type: "string" - format: "date-time" - description: "This timestamp represents when the original event occurred,\ - \ it is generated\nby the executor of the workflow." - output_uri: - type: "string" - description: "URL to the output of the execution, it encodes all the information\n\ - including Cloud source provider. ie., s3://..." - error: - title: "Error information for the execution" - $ref: "#/definitions/coreExecutionError" - output_data: - description: "Raw output data produced by this workflow execution." - $ref: "#/definitions/coreLiteralMap" - flyteidladminDynamicWorkflowNodeMetadata: - type: "object" - properties: - id: - description: "id represents the unique identifier of the workflow." - $ref: "#/definitions/coreIdentifier" - compiled_workflow: - description: "Represents the compiled representation of the embedded dynamic\ - \ workflow." - $ref: "#/definitions/coreCompiledWorkflowClosure" - dynamic_job_spec_uri: - type: "string" - description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ - \ message for this DynamicWorkflow. This is\nrequired to correctly recover\ - \ partially completed executions where the subworkflow has already been\ - \ compiled." - description: "For dynamic workflow nodes we capture information about the dynamic\ - \ workflow definition that gets generated." - example: - compiled_workflow: - sub_workflows: - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - tasks: - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - - template: - container: - args: - - "args" - - "args" - image: "image" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - env: - - value: "value" - key: "key" - - value: "value" - key: "key" - ports: - - container_port: 2 - - container_port: 2 - config: - - value: "value" - key: "key" - - value: "value" - key: "key" - command: - - "command" - - "command" - architecture: {} - metadata: - retries: - retries: 0 - pod_template_name: "pod_template_name" - discoverable: true - runtime: - flavor: "flavor" - type: {} - version: "version" - cache_serializable: true - discovery_version: "discovery_version" - deprecated_error_message: "deprecated_error_message" - interruptible: true - timeout: "timeout" - generates_deck: true - cache_ignore_input_vars: - - "cache_ignore_input_vars" - - "cache_ignore_input_vars" - tags: - key: "tags" - task_type_version: 7 - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - custom: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - k8s_pod: - metadata: - annotations: - key: "annotations" - labels: - key: "labels" - pod_spec: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - data_config: - io_strategy: - upload_mode: {} - download_mode: {} - format: {} - output_path: "output_path" - enabled: true - input_path: "input_path" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - type: "type" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - config: - key: "config" - security_context: - run_as: - execution_identity: "execution_identity" - iam_role: "iam_role" - oauth2_client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - k8s_service_account: "k8s_service_account" - tokens: - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - - idp_discovery_endpoint: "idp_discovery_endpoint" - name: "name" - client: - client_secret: - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - client_id: "client_id" - type: {} - token_endpoint: "token_endpoint" - secrets: - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - - mount_requirement: {} - group_version: "group_version" - key: "key" - group: "group" - sql: - dialect: {} - statement: "statement" - primary: - template: - outputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - metadata: - on_failure: {} - quality_of_service: - tier: {} - spec: - queueing_budget: "queueing_budget" - tags: - key: "tags" - failure_node: - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - nodes: - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - - branch_node: - if_else: - other: - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - error: - message: "message" - failed_node_id: "failed_node_id" - case: - condition: - conjunction: - operator: {} - comparison: - left_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - right_value: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - var: "var" - operator: {} - array_node: - min_successes: 5 - parallelism: 1 - min_success_ratio: 5.637377 - metadata: - retries: - retries: 0 - name: "name" - interruptible: true - timeout: "timeout" - gate_node: - sleep: - duration: "duration" - approve: - signal_id: "signal_id" - signal: - output_variable_name: "output_variable_name" - signal_id: "signal_id" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - upstream_node_ids: - - "upstream_node_ids" - - "upstream_node_ids" - inputs: - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - - var: "var" - binding: - scalar: - schema: - type: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - uri: "uri" - blob: - metadata: - type: - dimensionality: {} - format: "format" - uri: "uri" - none_type: {} - primitive: - duration: "duration" - datetime: "2000-01-23T04:56:07.000+00:00" - string_value: "string_value" - boolean: true - float_value: 5.962133916683182 - integer: "integer" - binary: - tag: "tag" - value: "value" - structured_dataset: - metadata: - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - uri: "uri" - union: - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - error: - message: "message" - failed_node_id: "failed_node_id" - generic: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - promise: - attr_path: - - string_value: "string_value" - int_value: 6 - - string_value: "string_value" - int_value: 6 - var: "var" - node_id: "node_id" - collection: - bindings: - - null - - null - union: - targetType: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - map: - bindings: {} - output_aliases: - - var: "var" - alias: "alias" - - var: "var" - alias: "alias" - task_node: - reference_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - overrides: - extended_resources: - gpu_accelerator: - partition_size: "partition_size" - unpartitioned: true - device: "device" - resources: - requests: - - name: {} - value: "value" - - name: {} - value: "value" - limits: - - name: {} - value: "value" - - name: {} - value: "value" - id: "id" - workflow_node: - launchplan_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - sub_workflow_ref: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - metadata_defaults: - interruptible: true - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - interface: - outputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - inputs: - variables: - key: - description: "description" - artifact_partial_id: - partitions: - value: - key: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - artifact_key: - domain: "domain" - name: "name" - project: "project" - version: "version" - type: - schema: - columns: - - name: "name" - type: {} - - name: "name" - type: {} - annotation: - annotations: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - structured_dataset_type: - external_schema_type: "external_schema_type" - columns: - - name: "name" - - name: "name" - format: "format" - external_schema_bytes: "external_schema_bytes" - metadata: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - blob: - dimensionality: {} - format: "format" - enum_type: - values: - - "values" - - "values" - union_type: - variants: - - null - - null - simple: {} - structure: - dataclass_type: {} - tag: "tag" - artifact_tag: - artifact_key: - domain: "domain" - name: "name" - project: "project" - value: - input_binding: - var: "var" - static_value: "static_value" - triggered_binding: - transform: "transform" - partition_key: "partition_key" - index: 1 - connections: - upstream: - key: - ids: - - "ids" - - "ids" - downstream: - key: - ids: - - "ids" - - "ids" - dynamic_job_spec_uri: "dynamic_job_spec_uri" - id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - flyteidladminNodeExecution: - type: "object" - properties: - id: - description: "Uniquely identifies an individual node execution." - $ref: "#/definitions/coreNodeExecutionIdentifier" - input_uri: - type: "string" - description: "Path to remote data store where input blob is stored." - closure: - description: "Computed results associated with this node execution." - $ref: "#/definitions/adminNodeExecutionClosure" - metadata: - title: "Metadata for Node Execution" - $ref: "#/definitions/adminNodeExecutionMetaData" - description: "Encapsulates all details for a single node execution entity.\nA\ - \ node represents a component in the overall workflow graph. A node launch a\ - \ task, multiple tasks, an entire nested\nsub-workflow, or even a separate child-workflow\ - \ execution.\nThe same task can be called repeatedly in a single workflow but\ - \ each node is unique." - example: - metadata: - retry_group: "retry_group" - is_parent_node: true - is_array: true - spec_node_id: "spec_node_id" - is_dynamic: true - input_uri: "input_uri" - id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - closure: - phase: {} - duration: "duration" - workflow_node_metadata: - executionId: - domain: "domain" - name: "name" - project: "project" - updated_at: "2000-01-23T04:56:07.000+00:00" - task_node_metadata: - catalog_key: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - checkpoint_uri: "checkpoint_uri" - cache_status: {} - dynamic_job_spec_uri: "dynamic_job_spec_uri" - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - output_data: - literals: {} - deck_uri: "deck_uri" - flyteidladminTaskCreateRequest: - type: "object" - properties: - id: - title: "id represents the unique identifier of the task.\n+required" - $ref: "#/definitions/coreIdentifier" - spec: - title: "Represents the specification for task.\n+required" - $ref: "#/definitions/adminTaskSpec" - title: "Represents a request structure to create a revision of a task.\nSee :ref:`ref_flyteidl.admin.Task`\ - \ for more details" - flyteidladminTaskCreateResponse: - type: "object" - description: "Represents a response structure if task creation succeeds." - flyteidladminTaskExecution: - type: "object" - properties: - id: - description: "Unique identifier for the task execution." - $ref: "#/definitions/coreTaskExecutionIdentifier" - input_uri: - type: "string" - description: "Path to remote data store where input blob is stored." - closure: - description: "Task execution details and results." - $ref: "#/definitions/adminTaskExecutionClosure" - is_parent: - type: "boolean" - format: "boolean" - description: "Whether this task spawned nodes." - description: "Encapsulates all details for a single task execution entity.\nA\ - \ task execution represents an instantiated task, including all inputs and additional\n\ - metadata as well as computed results included state, outputs, and duration-based\ - \ attributes." - example: - input_uri: "input_uri" - id: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - is_parent: true - closure: - phase: {} - reason: "reason" - metadata: - external_resources: - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - instance_class: {} - resource_pool_info: - - allocation_token: "allocation_token" - namespace: "namespace" - - allocation_token: "allocation_token" - namespace: "namespace" - generated_name: "generated_name" - plugin_identifier: "plugin_identifier" - reasons: - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - - occurred_at: "2000-01-23T04:56:07.000+00:00" - message: "message" - created_at: "2000-01-23T04:56:07.000+00:00" - error: - code: "code" - kind: {} - message: "message" - error_uri: "error_uri" - duration: "duration" - event_version: 1 - updated_at: "2000-01-23T04:56:07.000+00:00" - custom_info: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - output_uri: "output_uri" - started_at: "2000-01-23T04:56:07.000+00:00" - task_type: "task_type" - output_data: - literals: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - flyteidladminTaskNodeMetadata: - type: "object" - properties: - cache_status: - description: "Captures the status of caching for this execution." - $ref: "#/definitions/coreCatalogCacheStatus" - catalog_key: - title: "This structure carries the catalog artifact information" - $ref: "#/definitions/coreCatalogMetadata" - checkpoint_uri: - type: "string" - title: "The latest checkpoint location" - title: "Metadata for the case in which the node is a TaskNode" - example: - catalog_key: - source_task_execution: - task_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - node_execution_id: - execution_id: - domain: "domain" - name: "name" - project: "project" - node_id: "node_id" - retry_attempt: 0 - dataset_id: - domain: "domain" - resource_type: {} - name: "name" - project: "project" - version: "version" - artifact_tag: - name: "name" - artifact_id: "artifact_id" - checkpoint_uri: "checkpoint_uri" - cache_status: {} - flyteidladminWorkflowNodeMetadata: - type: "object" - properties: - executionId: - description: "The identifier for a workflow execution launched by a node." - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - title: "Metadata for a WorkflowNode" - example: - executionId: - domain: "domain" - name: "name" - project: "project" - flyteidleventDynamicWorkflowNodeMetadata: - type: "object" - properties: - id: - description: "id represents the unique identifier of the workflow." - $ref: "#/definitions/coreIdentifier" - compiled_workflow: - description: "Represents the compiled representation of the embedded dynamic\ - \ workflow." - $ref: "#/definitions/coreCompiledWorkflowClosure" - dynamic_job_spec_uri: - type: "string" - description: "dynamic_job_spec_uri is the location of the DynamicJobSpec proto\ - \ message for this DynamicWorkflow. This is\nrequired to correctly recover\ - \ partially completed executions where the workflow has already been compiled." - description: "For dynamic workflow nodes we send information about the dynamic\ - \ workflow definition that gets generated." - flyteidleventTaskExecutionMetadata: - type: "object" - properties: - generated_name: - type: "string" - description: "Unique, generated name for this task execution used by the backend." - external_resources: - type: "array" - description: "Additional data on external resources on other back-ends or\ - \ platforms (e.g. Hive, Qubole, etc) launched by this task execution." - items: - $ref: "#/definitions/eventExternalResourceInfo" - resource_pool_info: - type: "array" - description: "Includes additional data on concurrent resource management used\ - \ during execution..\nThis is a repeated field because a plugin can request\ - \ multiple resource allocations during execution." - items: - $ref: "#/definitions/eventResourcePoolInfo" - plugin_identifier: - type: "string" - description: "The identifier of the plugin used to execute this task." - instance_class: - $ref: "#/definitions/TaskExecutionMetadataInstanceClass" - description: "Holds metadata around how a task was executed.\nAs a task transitions\ - \ across event phases during execution some attributes, such its generated name,\ - \ generated external resources,\nand more may grow in size but not change necessarily\ - \ based on the phase transition that sparked the event update.\nMetadata is\ - \ a container for these attributes across the task execution lifecycle." - example: - external_resources: - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - index: 0 - external_id: "external_id" - retry_attempt: 6 - cache_status: {} - logs: - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - - message_format: {} - name: "name" - uri: "uri" - ttl: "ttl" - instance_class: {} - resource_pool_info: - - allocation_token: "allocation_token" - namespace: "namespace" - - allocation_token: "allocation_token" - namespace: "namespace" - generated_name: "generated_name" - plugin_identifier: "plugin_identifier" - flyteidleventTaskNodeMetadata: - type: "object" - properties: - cache_status: - description: "Captures the status of caching for this execution." - $ref: "#/definitions/coreCatalogCacheStatus" - catalog_key: - title: "This structure carries the catalog artifact information" - $ref: "#/definitions/coreCatalogMetadata" - reservation_status: - description: "Captures the status of cache reservations for this execution." - $ref: "#/definitions/CatalogReservationStatus" - checkpoint_uri: - type: "string" - title: "The latest checkpoint location" - dynamic_workflow: - description: "In the case this task launched a dynamic workflow we capture\ - \ its structure here." - $ref: "#/definitions/flyteidleventDynamicWorkflowNodeMetadata" - flyteidleventWorkflowNodeMetadata: - type: "object" - properties: - execution_id: - $ref: "#/definitions/coreWorkflowExecutionIdentifier" - title: "For Workflow Nodes we need to send information about the workflow that's\ - \ launched" - protobufAny: - type: "object" - properties: - type_url: - type: "string" - description: "A URL/resource name that uniquely identifies the type of the\ - \ serialized\nprotocol buffer message. This string must contain at least\n\ - one \"/\" character. The last segment of the URL's path must represent\n\ - the fully qualified name of the type (as in\n`path/google.protobuf.Duration`).\ - \ The name should be in a canonical form\n(e.g., leading \".\" is not accepted).\n\ - \nIn practice, teams usually precompile into the binary all types that they\n\ - expect it to use in the context of Any. However, for URLs which use the\n\ - scheme `http`, `https`, or no scheme, one can optionally set up a type\n\ - server that maps type URLs to message definitions as follows:\n\n* If no\ - \ scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must\ - \ yield a [google.protobuf.Type][]\n value in binary format, or produce\ - \ an error.\n* Applications are allowed to cache lookup results based on\ - \ the\n URL, or have them precompiled into a binary to avoid any\n lookup.\ - \ Therefore, binary compatibility needs to be preserved\n on changes to\ - \ types. (Use versioned type names to manage\n breaking changes.)\n\nNote:\ - \ this functionality is not currently available in the official\nprotobuf\ - \ release, and it is not used for type URLs beginning with\ntype.googleapis.com.\n\ - \nSchemes other than `http`, `https` (or the empty scheme) might be\nused\ - \ with implementation specific semantics." - value: - type: "string" - format: "byte" - description: "Must be a valid serialized protocol buffer of the above specified\ - \ type." - pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" - description: "`Any` contains an arbitrary serialized protocol buffer message along\ - \ with a\nURL that describes the type of the serialized message.\n\nProtobuf\ - \ library provides support to pack/unpack Any values in the form\nof utility\ - \ functions or additional generated methods of the Any type.\n\nExample 1: Pack\ - \ and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n\ - \ ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack\ - \ and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n\ - \ ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n\ - \ }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n\ - \ any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n\ - \ any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in\ - \ Go\n\n foo := &pb.Foo{...}\n any, err := ptypes.MarshalAny(foo)\n\ - \ ...\n foo := &pb.Foo{}\n if err := ptypes.UnmarshalAny(any, foo);\ - \ err != nil {\n ...\n }\n\nThe pack methods provided by protobuf\ - \ library will by default use\n'type.googleapis.com/full.type.name' as the type\ - \ URL and the unpack\nmethods only use the fully qualified type name after the\ - \ last '/'\nin the type URL, for example \"foo.bar.com/x/y.z\" will yield type\n\ - name \"y.z\".\n\n\nJSON\n====\nThe JSON representation of an `Any` value uses\ - \ the regular\nrepresentation of the deserialized, embedded message, with an\n\ - additional field `@type` which contains the type URL. Example:\n\n package\ - \ google.profile;\n message Person {\n string first_name = 1;\n \ - \ string last_name = 2;\n }\n\n {\n \"@type\": \"type.googleapis.com/google.profile.Person\"\ - ,\n \"firstName\": ,\n \"lastName\": \n }\n\nIf\ - \ the embedded message type is well-known and has a custom JSON\nrepresentation,\ - \ that representation will be embedded adding a field\n`value` which holds the\ - \ custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\ - \n {\n \"@type\": \"type.googleapis.com/google.protobuf.Duration\",\n\ - \ \"value\": \"1.212s\"\n }" - example: - value: "value" - type_url: "type_url" - protobufListValue: - type: "object" - properties: - values: - type: "array" - description: "Repeated field of dynamically typed values." - items: - $ref: "#/definitions/protobufValue" - description: "`ListValue` is a wrapper around a repeated field of values.\n\n\ - The JSON representation for `ListValue` is JSON array." - example: - values: - - null - - null - protobufNullValue: - type: "string" - description: "`NullValue` is a singleton enumeration to represent the null value\ - \ for the\n`Value` type union.\n\n The JSON representation for `NullValue` is\ - \ JSON `null`.\n\n - NULL_VALUE: Null value." - enum: - - "NULL_VALUE" - default: "NULL_VALUE" - protobufStruct: - type: "object" - properties: - fields: - type: "object" - description: "Unordered map of dynamically typed values." - additionalProperties: - $ref: "#/definitions/protobufValue" - description: "`Struct` represents a structured data value, consisting of fields\n\ - which map to dynamically typed values. In some languages, `Struct`\nmight be\ - \ supported by a native representation. For example, in\nscripting languages\ - \ like JS a struct is represented as an\nobject. The details of that representation\ - \ are described together\nwith the proto support for the language.\n\nThe JSON\ - \ representation for `Struct` is JSON object." - example: - fields: - key: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true - protobufValue: - type: "object" - properties: - null_value: - description: "Represents a null value." - $ref: "#/definitions/protobufNullValue" - number_value: - type: "number" - format: "double" - description: "Represents a double value." - string_value: - type: "string" - description: "Represents a string value." - bool_value: - type: "boolean" - format: "boolean" - description: "Represents a boolean value." - struct_value: - description: "Represents a structured value." - $ref: "#/definitions/protobufStruct" - list_value: - description: "Represents a repeated `Value`." - $ref: "#/definitions/protobufListValue" - description: "`Value` represents a dynamically typed value which can be either\n\ - null, a number, a string, a boolean, a recursive struct value, or a\nlist of\ - \ values. A producer of value is expected to set one of that\nvariants, absence\ - \ of any variant indicates an error.\n\nThe JSON representation for `Value`\ - \ is JSON value." - example: - list_value: - values: - - null - - null - number_value: 6.027456183070403 - string_value: "string_value" - null_value: {} - bool_value: true diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go deleted file mode 100644 index 1ad9e1f583..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/api_admin_service.go +++ /dev/null @@ -1,5948 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "context" - "io/ioutil" - "net/http" - "net/url" - "strings" - "fmt" - "github.com/antihax/optional" -) - -// Linger please -var ( - _ context.Context -) - -type AdminServiceApiService service - -/* -AdminServiceApiService Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminExecutionCreateResponse -*/ -func (a *AdminServiceApiService) CreateExecution(ctx context.Context, body AdminExecutionCreateRequest) (AdminExecutionCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminLaunchPlanCreateResponse -*/ -func (a *AdminServiceApiService) CreateLaunchPlan(ctx context.Context, body AdminLaunchPlanCreateRequest) (AdminLaunchPlanCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlanCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlanCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminNodeExecutionEventResponse -*/ -func (a *AdminServiceApiService) CreateNodeEvent(ctx context.Context, body AdminNodeExecutionEventRequest) (AdminNodeExecutionEventResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNodeExecutionEventResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/events/nodes" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNodeExecutionEventResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.Task` definition - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return FlyteidladminTaskCreateResponse -*/ -func (a *AdminServiceApiService) CreateTask(ctx context.Context, body FlyteidladminTaskCreateRequest) (FlyteidladminTaskCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue FlyteidladminTaskCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/tasks" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v FlyteidladminTaskCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminTaskExecutionEventResponse -*/ -func (a *AdminServiceApiService) CreateTaskEvent(ctx context.Context, body AdminTaskExecutionEventRequest) (AdminTaskExecutionEventResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTaskExecutionEventResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/events/tasks" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTaskExecutionEventResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminWorkflowCreateResponse -*/ -func (a *AdminServiceApiService) CreateWorkflow(ctx context.Context, body AdminWorkflowCreateRequest) (AdminWorkflowCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflows" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminWorkflowExecutionEventResponse -*/ -func (a *AdminServiceApiService) CreateWorkflowEvent(ctx context.Context, body AdminWorkflowExecutionEventRequest) (AdminWorkflowExecutionEventResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowExecutionEventResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/events/workflows" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowExecutionEventResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param body - -@return AdminProjectAttributesDeleteResponse -*/ -func (a *AdminServiceApiService) DeleteProjectAttributes(ctx context.Context, project string, body AdminProjectAttributesDeleteRequest) (AdminProjectAttributesDeleteResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectAttributesDeleteResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{project}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectAttributesDeleteResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param domain Unique domain id which this set of attributes references. +required - * @param body - -@return AdminProjectDomainAttributesDeleteResponse -*/ -func (a *AdminServiceApiService) DeleteProjectDomainAttributes(ctx context.Context, project string, domain string, body AdminProjectDomainAttributesDeleteRequest) (AdminProjectDomainAttributesDeleteResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectDomainAttributesDeleteResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectDomainAttributesDeleteResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param domain Unique domain id which this set of attributes references. +required - * @param workflow Workflow name which this set of attributes references. +required - * @param body - -@return AdminWorkflowAttributesDeleteResponse -*/ -func (a *AdminServiceApiService) DeleteWorkflowAttributes(ctx context.Context, project string, domain string, workflow string, body AdminWorkflowAttributesDeleteRequest) (AdminWorkflowAttributesDeleteResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowAttributesDeleteResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"workflow"+"}", fmt.Sprintf("%v", workflow), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowAttributesDeleteResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - -@return AdminLaunchPlan -*/ -func (a *AdminServiceApiService) GetActiveLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string) (AdminLaunchPlan, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlan - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlan - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idResourceType Identifies the specific type of resource that this identifier corresponds to. - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. - * @param idVersion Specific version of the resource. - -@return AdminDescriptionEntity -*/ -func (a *AdminServiceApiService) GetDescriptionEntity(ctx context.Context, idResourceType string, idProject string, idDomain string, idName string, idVersion string) (AdminDescriptionEntity, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminDescriptionEntity - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}" - localVarPath = strings.Replace(localVarPath, "{"+"id.resource_type"+"}", fmt.Sprintf("%v", idResourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminDescriptionEntity - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User or system provided value for the resource. - -@return AdminExecution -*/ -func (a *AdminServiceApiService) GetExecution(ctx context.Context, idProject string, idDomain string, idName string) (AdminExecution, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecution - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecution - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User or system provided value for the resource. - -@return AdminWorkflowExecutionGetDataResponse -*/ -func (a *AdminServiceApiService) GetExecutionData(ctx context.Context, idProject string, idDomain string, idName string) (AdminWorkflowExecutionGetDataResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowExecutionGetDataResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowExecutionGetDataResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User or system provided value for the resource. - * @param optional nil or *GetExecutionMetricsOpts - Optional Parameters: - * @param "Depth" (optional.Int32) - depth defines the number of Flyte entity levels to traverse when breaking down execution details. - -@return AdminWorkflowExecutionGetMetricsResponse -*/ - -type GetExecutionMetricsOpts struct { - Depth optional.Int32 -} - -func (a *AdminServiceApiService) GetExecutionMetrics(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *GetExecutionMetricsOpts) (AdminWorkflowExecutionGetMetricsResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowExecutionGetMetricsResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Depth.IsSet() { - localVarQueryParams.Add("depth", parameterToString(localVarOptionals.Depth.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowExecutionGetMetricsResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. - * @param idVersion Specific version of the resource. - * @param optional nil or *GetLaunchPlanOpts - Optional Parameters: - * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - -@return AdminLaunchPlan -*/ - -type GetLaunchPlanOpts struct { - IdResourceType optional.String -} - -func (a *AdminServiceApiService) GetLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetLaunchPlanOpts) (AdminLaunchPlan, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlan - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { - localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlan - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param resourceType Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - -@return AdminNamedEntity -*/ -func (a *AdminServiceApiService) GetNamedEntity(ctx context.Context, resourceType string, idProject string, idDomain string, idName string) (AdminNamedEntity, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntity - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntity - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idExecutionIdProject Name of the project the resource belongs to. - * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idExecutionIdName User or system provided value for the resource. - * @param idNodeId - -@return FlyteidladminNodeExecution -*/ -func (a *AdminServiceApiService) GetNodeExecution(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (FlyteidladminNodeExecution, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue FlyteidladminNodeExecution - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v FlyteidladminNodeExecution - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idExecutionIdProject Name of the project the resource belongs to. - * @param idExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idExecutionIdName User or system provided value for the resource. - * @param idNodeId - -@return AdminNodeExecutionGetDataResponse -*/ -func (a *AdminServiceApiService) GetNodeExecutionData(ctx context.Context, idExecutionIdProject string, idExecutionIdDomain string, idExecutionIdName string, idNodeId string) (AdminNodeExecutionGetDataResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNodeExecutionGetDataResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}" - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.project"+"}", fmt.Sprintf("%v", idExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.domain"+"}", fmt.Sprintf("%v", idExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.execution_id.name"+"}", fmt.Sprintf("%v", idExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_id"+"}", fmt.Sprintf("%v", idNodeId), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNodeExecutionGetDataResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param optional nil or *GetProjectAttributesOpts - Optional Parameters: - * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - -@return AdminProjectAttributesGetResponse -*/ - -type GetProjectAttributesOpts struct { - ResourceType optional.String -} - -func (a *AdminServiceApiService) GetProjectAttributes(ctx context.Context, project string, localVarOptionals *GetProjectAttributesOpts) (AdminProjectAttributesGetResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectAttributesGetResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{project}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { - localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectAttributesGetResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param domain Unique domain id which this set of attributes references. +required - * @param optional nil or *GetProjectDomainAttributesOpts - Optional Parameters: - * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - -@return AdminProjectDomainAttributesGetResponse -*/ - -type GetProjectDomainAttributesOpts struct { - ResourceType optional.String -} - -func (a *AdminServiceApiService) GetProjectDomainAttributes(ctx context.Context, project string, domain string, localVarOptionals *GetProjectDomainAttributesOpts) (AdminProjectDomainAttributesGetResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectDomainAttributesGetResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { - localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectDomainAttributesGetResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.Task` definition. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. - * @param idVersion Specific version of the resource. - * @param optional nil or *GetTaskOpts - Optional Parameters: - * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - -@return AdminTask -*/ - -type GetTaskOpts struct { - IdResourceType optional.String -} - -func (a *AdminServiceApiService) GetTask(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetTaskOpts) (AdminTask, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTask - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { - localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTask - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. - * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. - * @param idNodeExecutionIdNodeId - * @param idTaskIdProject Name of the project the resource belongs to. - * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idTaskIdName User provided value for the resource. - * @param idTaskIdVersion Specific version of the resource. - * @param idRetryAttempt - * @param optional nil or *GetTaskExecutionOpts - Optional Parameters: - * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - -@return FlyteidladminTaskExecution -*/ - -type GetTaskExecutionOpts struct { - IdTaskIdResourceType optional.String -} - -func (a *AdminServiceApiService) GetTaskExecution(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionOpts) (FlyteidladminTaskExecution, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue FlyteidladminTaskExecution - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { - localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v FlyteidladminTaskExecution - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. - * @param idNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idNodeExecutionIdExecutionIdName User or system provided value for the resource. - * @param idNodeExecutionIdNodeId - * @param idTaskIdProject Name of the project the resource belongs to. - * @param idTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idTaskIdName User provided value for the resource. - * @param idTaskIdVersion Specific version of the resource. - * @param idRetryAttempt - * @param optional nil or *GetTaskExecutionDataOpts - Optional Parameters: - * @param "IdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - -@return AdminTaskExecutionGetDataResponse -*/ - -type GetTaskExecutionDataOpts struct { - IdTaskIdResourceType optional.String -} - -func (a *AdminServiceApiService) GetTaskExecutionData(ctx context.Context, idNodeExecutionIdExecutionIdProject string, idNodeExecutionIdExecutionIdDomain string, idNodeExecutionIdExecutionIdName string, idNodeExecutionIdNodeId string, idTaskIdProject string, idTaskIdDomain string, idTaskIdName string, idTaskIdVersion string, idRetryAttempt int64, localVarOptionals *GetTaskExecutionDataOpts) (AdminTaskExecutionGetDataResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTaskExecutionGetDataResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}" - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", idNodeExecutionIdExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", idNodeExecutionIdNodeId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.project"+"}", fmt.Sprintf("%v", idTaskIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.domain"+"}", fmt.Sprintf("%v", idTaskIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.name"+"}", fmt.Sprintf("%v", idTaskIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.task_id.version"+"}", fmt.Sprintf("%v", idTaskIdVersion), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.retry_attempt"+"}", fmt.Sprintf("%v", idRetryAttempt), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdTaskIdResourceType.IsSet() { - localVarQueryParams.Add("id.task_id.resource_type", parameterToString(localVarOptionals.IdTaskIdResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTaskExecutionGetDataResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - -@return AdminGetVersionResponse -*/ -func (a *AdminServiceApiService) GetVersion(ctx context.Context) (AdminGetVersionResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminGetVersionResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/version" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminGetVersionResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. - * @param idVersion Specific version of the resource. - * @param optional nil or *GetWorkflowOpts - Optional Parameters: - * @param "IdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - -@return AdminWorkflow -*/ - -type GetWorkflowOpts struct { - IdResourceType optional.String -} - -func (a *AdminServiceApiService) GetWorkflow(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, localVarOptionals *GetWorkflowOpts) (AdminWorkflow, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflow - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdResourceType.IsSet() { - localVarQueryParams.Add("id.resource_type", parameterToString(localVarOptionals.IdResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflow - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Unique project id which this set of attributes references. +required - * @param domain Unique domain id which this set of attributes references. +required - * @param workflow Workflow name which this set of attributes references. +required - * @param optional nil or *GetWorkflowAttributesOpts - Optional Parameters: - * @param "ResourceType" (optional.String) - Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - -@return AdminWorkflowAttributesGetResponse -*/ - -type GetWorkflowAttributesOpts struct { - ResourceType optional.String -} - -func (a *AdminServiceApiService) GetWorkflowAttributes(ctx context.Context, project string, domain string, workflow string, localVarOptionals *GetWorkflowAttributesOpts) (AdminWorkflowAttributesGetResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowAttributesGetResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"workflow"+"}", fmt.Sprintf("%v", workflow), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { - localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowAttributesGetResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Name of the project that contains the identifiers. +required. - * @param domain Name of the domain the identifiers belongs to within the project. +required. - * @param optional nil or *ListActiveLaunchPlansOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminLaunchPlanList -*/ - -type ListActiveLaunchPlansOpts struct { - Limit optional.Int64 - Token optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListActiveLaunchPlans(ctx context.Context, project string, domain string, localVarOptionals *ListActiveLaunchPlansOpts) (AdminLaunchPlanList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlanList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/active_launch_plans/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlanList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param resourceType Identifies the specific type of resource that this identifier corresponds to. - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - * @param optional nil or *ListDescriptionEntitiesOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminDescriptionEntityList -*/ - -type ListDescriptionEntitiesOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListDescriptionEntities(ctx context.Context, resourceType string, idProject string, idDomain string, idName string, localVarOptionals *ListDescriptionEntitiesOpts) (AdminDescriptionEntityList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminDescriptionEntityList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminDescriptionEntityList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param resourceType Identifies the specific type of resource that this identifier corresponds to. - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param optional nil or *ListDescriptionEntities2Opts - Optional Parameters: - * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminDescriptionEntityList -*/ - -type ListDescriptionEntities2Opts struct { - IdName optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListDescriptionEntities2(ctx context.Context, resourceType string, idProject string, idDomain string, localVarOptionals *ListDescriptionEntities2Opts) (AdminDescriptionEntityList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminDescriptionEntityList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { - localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminDescriptionEntityList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param optional nil or *ListExecutionsOpts - Optional Parameters: - * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminExecutionList -*/ - -type ListExecutionsOpts struct { - IdName optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListExecutions(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListExecutionsOpts) (AdminExecutionList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { - localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Name of the project that contains the identifiers. +required - * @param domain Name of the domain the identifiers belongs to within the project. +required - * @param optional nil or *ListLaunchPlanIdsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. - -@return AdminNamedEntityIdentifierList -*/ - -type ListLaunchPlanIdsOpts struct { - Limit optional.Int64 - Token optional.String - SortByKey optional.String - SortByDirection optional.String - Filters optional.String -} - -func (a *AdminServiceApiService) ListLaunchPlanIds(ctx context.Context, project string, domain string, localVarOptionals *ListLaunchPlanIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntityIdentifierList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plan_ids/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntityIdentifierList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - * @param optional nil or *ListLaunchPlansOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminLaunchPlanList -*/ - -type ListLaunchPlansOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListLaunchPlans(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListLaunchPlansOpts) (AdminLaunchPlanList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlanList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlanList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param optional nil or *ListLaunchPlans2Opts - Optional Parameters: - * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminLaunchPlanList -*/ - -type ListLaunchPlans2Opts struct { - IdName optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListLaunchPlans2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListLaunchPlans2Opts) (AdminLaunchPlanList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlanList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { - localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlanList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *ListMatchableAttributesOpts - Optional Parameters: - * @param "ResourceType" (optional.String) - +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - -@return AdminListMatchableAttributesResponse -*/ - -type ListMatchableAttributesOpts struct { - ResourceType optional.String -} - -func (a *AdminServiceApiService) ListMatchableAttributes(ctx context.Context, localVarOptionals *ListMatchableAttributesOpts) (AdminListMatchableAttributesResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminListMatchableAttributesResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/matchable_attributes" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.ResourceType.IsSet() { - localVarQueryParams.Add("resource_type", parameterToString(localVarOptionals.ResourceType.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminListMatchableAttributesResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param resourceType Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required - * @param project Name of the project that contains the identifiers. +required - * @param domain Name of the domain the identifiers belongs to within the project. - * @param optional nil or *ListNamedEntitiesOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. - -@return AdminNamedEntityList -*/ - -type ListNamedEntitiesOpts struct { - Limit optional.Int64 - Token optional.String - SortByKey optional.String - SortByDirection optional.String - Filters optional.String -} - -func (a *AdminServiceApiService) ListNamedEntities(ctx context.Context, resourceType string, project string, domain string, localVarOptionals *ListNamedEntitiesOpts) (AdminNamedEntityList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntityList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntityList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param workflowExecutionIdProject Name of the project the resource belongs to. - * @param workflowExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param workflowExecutionIdName User or system provided value for the resource. - * @param optional nil or *ListNodeExecutionsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - * @param "UniqueParentId" (optional.String) - Unique identifier of the parent node in the execution +optional. - -@return AdminNodeExecutionList -*/ - -type ListNodeExecutionsOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String - UniqueParentId optional.String -} - -func (a *AdminServiceApiService) ListNodeExecutions(ctx context.Context, workflowExecutionIdProject string, workflowExecutionIdDomain string, workflowExecutionIdName string, localVarOptionals *ListNodeExecutionsOpts) (AdminNodeExecutionList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNodeExecutionList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.project"+"}", fmt.Sprintf("%v", workflowExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.domain"+"}", fmt.Sprintf("%v", workflowExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"workflow_execution_id.name"+"}", fmt.Sprintf("%v", workflowExecutionIdName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.UniqueParentId.IsSet() { - localVarQueryParams.Add("unique_parent_id", parameterToString(localVarOptionals.UniqueParentId.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNodeExecutionList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param taskExecutionIdNodeExecutionIdExecutionIdProject Name of the project the resource belongs to. - * @param taskExecutionIdNodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param taskExecutionIdNodeExecutionIdExecutionIdName User or system provided value for the resource. - * @param taskExecutionIdNodeExecutionIdNodeId - * @param taskExecutionIdTaskIdProject Name of the project the resource belongs to. - * @param taskExecutionIdTaskIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param taskExecutionIdTaskIdName User provided value for the resource. - * @param taskExecutionIdTaskIdVersion Specific version of the resource. - * @param taskExecutionIdRetryAttempt - * @param optional nil or *ListNodeExecutionsForTaskOpts - Optional Parameters: - * @param "TaskExecutionIdTaskIdResourceType" (optional.String) - Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminNodeExecutionList -*/ - -type ListNodeExecutionsForTaskOpts struct { - TaskExecutionIdTaskIdResourceType optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListNodeExecutionsForTask(ctx context.Context, taskExecutionIdNodeExecutionIdExecutionIdProject string, taskExecutionIdNodeExecutionIdExecutionIdDomain string, taskExecutionIdNodeExecutionIdExecutionIdName string, taskExecutionIdNodeExecutionIdNodeId string, taskExecutionIdTaskIdProject string, taskExecutionIdTaskIdDomain string, taskExecutionIdTaskIdName string, taskExecutionIdTaskIdVersion string, taskExecutionIdRetryAttempt int64, localVarOptionals *ListNodeExecutionsForTaskOpts) (AdminNodeExecutionList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNodeExecutionList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}" - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.node_execution_id.node_id"+"}", fmt.Sprintf("%v", taskExecutionIdNodeExecutionIdNodeId), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.project"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.domain"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.name"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.task_id.version"+"}", fmt.Sprintf("%v", taskExecutionIdTaskIdVersion), -1) - localVarPath = strings.Replace(localVarPath, "{"+"task_execution_id.retry_attempt"+"}", fmt.Sprintf("%v", taskExecutionIdRetryAttempt), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.TaskExecutionIdTaskIdResourceType.IsSet() { - localVarQueryParams.Add("task_execution_id.task_id.resource_type", parameterToString(localVarOptionals.TaskExecutionIdTaskIdResourceType.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNodeExecutionList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches a list of :ref:`ref_flyteidl.admin.Project` - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param optional nil or *ListProjectsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of projects to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminProjects -*/ - -type ListProjectsOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListProjects(ctx context.Context, localVarOptionals *ListProjectsOpts) (AdminProjects, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjects - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/projects" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjects - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param nodeExecutionIdExecutionIdProject Name of the project the resource belongs to. - * @param nodeExecutionIdExecutionIdDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param nodeExecutionIdExecutionIdName User or system provided value for the resource. - * @param nodeExecutionIdNodeId - * @param optional nil or *ListTaskExecutionsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminTaskExecutionList -*/ - -type ListTaskExecutionsOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListTaskExecutions(ctx context.Context, nodeExecutionIdExecutionIdProject string, nodeExecutionIdExecutionIdDomain string, nodeExecutionIdExecutionIdName string, nodeExecutionIdNodeId string, localVarOptionals *ListTaskExecutionsOpts) (AdminTaskExecutionList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTaskExecutionList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}" - localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.project"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.domain"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.execution_id.name"+"}", fmt.Sprintf("%v", nodeExecutionIdExecutionIdName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"node_execution_id.node_id"+"}", fmt.Sprintf("%v", nodeExecutionIdNodeId), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTaskExecutionList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Name of the project that contains the identifiers. +required - * @param domain Name of the domain the identifiers belongs to within the project. +required - * @param optional nil or *ListTaskIdsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. - -@return AdminNamedEntityIdentifierList -*/ - -type ListTaskIdsOpts struct { - Limit optional.Int64 - Token optional.String - SortByKey optional.String - SortByDirection optional.String - Filters optional.String -} - -func (a *AdminServiceApiService) ListTaskIds(ctx context.Context, project string, domain string, localVarOptionals *ListTaskIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntityIdentifierList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/task_ids/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntityIdentifierList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - * @param optional nil or *ListTasksOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminTaskList -*/ - -type ListTasksOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListTasks(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListTasksOpts) (AdminTaskList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTaskList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTaskList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param optional nil or *ListTasks2Opts - Optional Parameters: - * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminTaskList -*/ - -type ListTasks2Opts struct { - IdName optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListTasks2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListTasks2Opts) (AdminTaskList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminTaskList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/tasks/{id.project}/{id.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { - localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminTaskList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param project Name of the project that contains the identifiers. +required - * @param domain Name of the domain the identifiers belongs to within the project. +required - * @param optional nil or *ListWorkflowIdsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. +optional. - -@return AdminNamedEntityIdentifierList -*/ - -type ListWorkflowIdsOpts struct { - Limit optional.Int64 - Token optional.String - SortByKey optional.String - SortByDirection optional.String - Filters optional.String -} - -func (a *AdminServiceApiService) ListWorkflowIds(ctx context.Context, project string, domain string, localVarOptionals *ListWorkflowIdsOpts) (AdminNamedEntityIdentifierList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntityIdentifierList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_ids/{project}/{domain}" - localVarPath = strings.Replace(localVarPath, "{"+"project"+"}", fmt.Sprintf("%v", project), -1) - localVarPath = strings.Replace(localVarPath, "{"+"domain"+"}", fmt.Sprintf("%v", domain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntityIdentifierList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - * @param optional nil or *ListWorkflowsOpts - Optional Parameters: - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminWorkflowList -*/ - -type ListWorkflowsOpts struct { - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListWorkflows(ctx context.Context, idProject string, idDomain string, idName string, localVarOptionals *ListWorkflowsOpts) (AdminWorkflowList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param optional nil or *ListWorkflows2Opts - Optional Parameters: - * @param "IdName" (optional.String) - User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - * @param "Limit" (optional.Int64) - Indicates the number of resources to be returned. +required. - * @param "Token" (optional.String) - In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - * @param "Filters" (optional.String) - Indicates a list of filters passed as string. More info on constructing filters : <Link> +optional. - * @param "SortByKey" (optional.String) - Indicates an attribute to sort the response values. +required. - * @param "SortByDirection" (optional.String) - Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - -@return AdminWorkflowList -*/ - -type ListWorkflows2Opts struct { - IdName optional.String - Limit optional.Int64 - Token optional.String - Filters optional.String - SortByKey optional.String - SortByDirection optional.String -} - -func (a *AdminServiceApiService) ListWorkflows2(ctx context.Context, idProject string, idDomain string, localVarOptionals *ListWorkflows2Opts) (AdminWorkflowList, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Get") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowList - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflows/{id.project}/{id.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if localVarOptionals != nil && localVarOptionals.IdName.IsSet() { - localVarQueryParams.Add("id.name", parameterToString(localVarOptionals.IdName.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Limit.IsSet() { - localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Token.IsSet() { - localVarQueryParams.Add("token", parameterToString(localVarOptionals.Token.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.Filters.IsSet() { - localVarQueryParams.Add("filters", parameterToString(localVarOptionals.Filters.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByKey.IsSet() { - localVarQueryParams.Add("sort_by.key", parameterToString(localVarOptionals.SortByKey.Value(), "")) - } - if localVarOptionals != nil && localVarOptionals.SortByDirection.IsSet() { - localVarQueryParams.Add("sort_by.direction", parameterToString(localVarOptionals.SortByDirection.Value(), "")) - } - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowList - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminExecutionCreateResponse -*/ -func (a *AdminServiceApiService) RecoverExecution(ctx context.Context, body AdminExecutionRecoverRequest) (AdminExecutionCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/recover" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminProjectRegisterResponse -*/ -func (a *AdminServiceApiService) RegisterProject(ctx context.Context, body AdminProjectRegisterRequest) (AdminProjectRegisterResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectRegisterResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/projects" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectRegisterResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param body - -@return AdminExecutionCreateResponse -*/ -func (a *AdminServiceApiService) RelaunchExecution(ctx context.Context, body AdminExecutionRelaunchRequest) (AdminExecutionCreateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Post") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionCreateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/relaunch" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionCreateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User or system provided value for the resource. - * @param body - -@return AdminExecutionTerminateResponse -*/ -func (a *AdminServiceApiService) TerminateExecution(ctx context.Context, idProject string, idDomain string, idName string, body AdminExecutionTerminateRequest) (AdminExecutionTerminateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Delete") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionTerminateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionTerminateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User or system provided value for the resource. - * @param body - -@return AdminExecutionUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateExecution(ctx context.Context, idProject string, idDomain string, idName string, body AdminExecutionUpdateRequest) (AdminExecutionUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminExecutionUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/executions/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminExecutionUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. - * @param idVersion Specific version of the resource. - * @param body - -@return AdminLaunchPlanUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateLaunchPlan(ctx context.Context, idProject string, idDomain string, idName string, idVersion string, body AdminLaunchPlanUpdateRequest) (AdminLaunchPlanUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminLaunchPlanUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}" - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.version"+"}", fmt.Sprintf("%v", idVersion), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminLaunchPlanUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param resourceType Resource type of the metadata to update +required - * @param idProject Name of the project the resource belongs to. - * @param idDomain Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - * @param idName User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' - * @param body - -@return AdminNamedEntityUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateNamedEntity(ctx context.Context, resourceType string, idProject string, idDomain string, idName string, body AdminNamedEntityUpdateRequest) (AdminNamedEntityUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminNamedEntityUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}" - localVarPath = strings.Replace(localVarPath, "{"+"resource_type"+"}", fmt.Sprintf("%v", resourceType), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.project"+"}", fmt.Sprintf("%v", idProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.domain"+"}", fmt.Sprintf("%v", idDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"id.name"+"}", fmt.Sprintf("%v", idName), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminNamedEntityUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param id Globally unique project name. - * @param body - -@return AdminProjectUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateProject(ctx context.Context, id string, body AdminProject) (AdminProjectUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/projects/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", fmt.Sprintf("%v", id), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param attributesProject Unique project id for which this set of attributes will be applied. - * @param body - -@return AdminProjectAttributesUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateProjectAttributes(ctx context.Context, attributesProject string, body AdminProjectAttributesUpdateRequest) (AdminProjectAttributesUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectAttributesUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_attributes/{attributes.project}" - localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectAttributesUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param attributesProject Unique project id for which this set of attributes will be applied. - * @param attributesDomain Unique domain id for which this set of attributes will be applied. - * @param body - -@return AdminProjectDomainAttributesUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateProjectDomainAttributes(ctx context.Context, attributesProject string, attributesDomain string, body AdminProjectDomainAttributesUpdateRequest) (AdminProjectDomainAttributesUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminProjectDomainAttributesUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}" - localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"attributes.domain"+"}", fmt.Sprintf("%v", attributesDomain), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminProjectDomainAttributesUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} - -/* -AdminServiceApiService Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param attributesProject Unique project id for which this set of attributes will be applied. - * @param attributesDomain Unique domain id for which this set of attributes will be applied. - * @param attributesWorkflow Workflow name for which this set of attributes will be applied. - * @param body - -@return AdminWorkflowAttributesUpdateResponse -*/ -func (a *AdminServiceApiService) UpdateWorkflowAttributes(ctx context.Context, attributesProject string, attributesDomain string, attributesWorkflow string, body AdminWorkflowAttributesUpdateRequest) (AdminWorkflowAttributesUpdateResponse, *http.Response, error) { - var ( - localVarHttpMethod = strings.ToUpper("Put") - localVarPostBody interface{} - localVarFileName string - localVarFileBytes []byte - localVarReturnValue AdminWorkflowAttributesUpdateResponse - ) - - // create path and map variables - localVarPath := a.client.cfg.BasePath + "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}" - localVarPath = strings.Replace(localVarPath, "{"+"attributes.project"+"}", fmt.Sprintf("%v", attributesProject), -1) - localVarPath = strings.Replace(localVarPath, "{"+"attributes.domain"+"}", fmt.Sprintf("%v", attributesDomain), -1) - localVarPath = strings.Replace(localVarPath, "{"+"attributes.workflow"+"}", fmt.Sprintf("%v", attributesWorkflow), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHttpContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) - if localVarHttpContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHttpContentType - } - - // to determine the Accept header - localVarHttpHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) - if localVarHttpHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHttpHeaderAccept - } - // body params - localVarPostBody = &body - r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHttpResponse, err := a.client.callAPI(r) - if err != nil || localVarHttpResponse == nil { - return localVarReturnValue, localVarHttpResponse, err - } - - localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body) - localVarHttpResponse.Body.Close() - if err != nil { - return localVarReturnValue, localVarHttpResponse, err - } - - if localVarHttpResponse.StatusCode < 300 { - // If we succeed, return the data, otherwise pass on to decode error. - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err == nil { - return localVarReturnValue, localVarHttpResponse, err - } - } - - if localVarHttpResponse.StatusCode >= 300 { - newErr := GenericSwaggerError{ - body: localVarBody, - error: localVarHttpResponse.Status, - } - - if localVarHttpResponse.StatusCode == 200 { - var v AdminWorkflowAttributesUpdateResponse - err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")); - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHttpResponse, newErr - } - newErr.model = v - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, newErr - } - - return localVarReturnValue, localVarHttpResponse, nil -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go deleted file mode 100644 index 8fd676821e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/client.go +++ /dev/null @@ -1,464 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "bytes" - "context" - "encoding/json" - "encoding/xml" - "errors" - "fmt" - "io" - "mime/multipart" - "net/http" - "net/url" - "os" - "path/filepath" - "reflect" - "regexp" - "strconv" - "strings" - "time" - "unicode/utf8" - - "golang.org/x/oauth2" -) - -var ( - jsonCheck = regexp.MustCompile("(?i:[application|text]/json)") - xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)") -) - -// APIClient manages communication with the flyteidl/service/admin.proto API vversion not set -// In most cases there should be only one, shared, APIClient. -type APIClient struct { - cfg *Configuration - common service // Reuse a single struct instead of allocating one for each service on the heap. - - // API Services - - AdminServiceApi *AdminServiceApiService -} - -type service struct { - client *APIClient -} - -// NewAPIClient creates a new API client. Requires a userAgent string describing your application. -// optionally a custom http.Client to allow for advanced features such as caching. -func NewAPIClient(cfg *Configuration) *APIClient { - if cfg.HTTPClient == nil { - cfg.HTTPClient = http.DefaultClient - } - - c := &APIClient{} - c.cfg = cfg - c.common.client = c - - // API Services - c.AdminServiceApi = (*AdminServiceApiService)(&c.common) - - return c -} - -func atoi(in string) (int, error) { - return strconv.Atoi(in) -} - -// selectHeaderContentType select a content type from the available list. -func selectHeaderContentType(contentTypes []string) string { - if len(contentTypes) == 0 { - return "" - } - if contains(contentTypes, "application/json") { - return "application/json" - } - return contentTypes[0] // use the first content type specified in 'consumes' -} - -// selectHeaderAccept join all accept types and return -func selectHeaderAccept(accepts []string) string { - if len(accepts) == 0 { - return "" - } - - if contains(accepts, "application/json") { - return "application/json" - } - - return strings.Join(accepts, ",") -} - -// contains is a case insenstive match, finding needle in a haystack -func contains(haystack []string, needle string) bool { - for _, a := range haystack { - if strings.ToLower(a) == strings.ToLower(needle) { - return true - } - } - return false -} - -// Verify optional parameters are of the correct type. -func typeCheckParameter(obj interface{}, expected string, name string) error { - // Make sure there is an object. - if obj == nil { - return nil - } - - // Check the type is as expected. - if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) - } - return nil -} - -// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. -func parameterToString(obj interface{}, collectionFormat string) string { - var delimiter string - - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," - } - - if reflect.TypeOf(obj).Kind() == reflect.Slice { - return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") - } - - return fmt.Sprintf("%v", obj) -} - -// callAPI do the request. -func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { - return c.cfg.HTTPClient.Do(request) -} - -// Change base path to allow switching to mocks -func (c *APIClient) ChangeBasePath(path string) { - c.cfg.BasePath = path -} - -// prepareRequest build the request -func (c *APIClient) prepareRequest( - ctx context.Context, - path string, method string, - postBody interface{}, - headerParams map[string]string, - queryParams url.Values, - formParams url.Values, - fileName string, - fileBytes []byte) (localVarRequest *http.Request, err error) { - - var body *bytes.Buffer - - // Detect postBody type and post. - if postBody != nil { - contentType := headerParams["Content-Type"] - if contentType == "" { - contentType = detectContentType(postBody) - headerParams["Content-Type"] = contentType - } - - body, err = setBody(postBody, contentType) - if err != nil { - return nil, err - } - } - - // add form parameters and file if available. - if len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { - if body != nil { - return nil, errors.New("Cannot specify postBody and multipart form at the same time.") - } - body = &bytes.Buffer{} - w := multipart.NewWriter(body) - - for k, v := range formParams { - for _, iv := range v { - if strings.HasPrefix(k, "@") { // file - err = addFile(w, k[1:], iv) - if err != nil { - return nil, err - } - } else { // form value - w.WriteField(k, iv) - } - } - } - if len(fileBytes) > 0 && fileName != "" { - w.Boundary() - //_, fileNm := filepath.Split(fileName) - part, err := w.CreateFormFile("file", filepath.Base(fileName)) - if err != nil { - return nil, err - } - _, err = part.Write(fileBytes) - if err != nil { - return nil, err - } - // Set the Boundary in the Content-Type - headerParams["Content-Type"] = w.FormDataContentType() - } - - // Set Content-Length - headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) - w.Close() - } - - // Setup path and query parameters - url, err := url.Parse(path) - if err != nil { - return nil, err - } - - // Adding Query Param - query := url.Query() - for k, v := range queryParams { - for _, iv := range v { - query.Add(k, iv) - } - } - - // Encode the parameters. - url.RawQuery = query.Encode() - - // Generate a new request - if body != nil { - localVarRequest, err = http.NewRequest(method, url.String(), body) - } else { - localVarRequest, err = http.NewRequest(method, url.String(), nil) - } - if err != nil { - return nil, err - } - - // add header parameters, if any - if len(headerParams) > 0 { - headers := http.Header{} - for h, v := range headerParams { - headers.Set(h, v) - } - localVarRequest.Header = headers - } - - // Override request host, if applicable - if c.cfg.Host != "" { - localVarRequest.Host = c.cfg.Host - } - - // Add the user agent to the request. - localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) - - if ctx != nil { - // add context to the request - localVarRequest = localVarRequest.WithContext(ctx) - - // Walk through any authentication. - - // OAuth2 authentication - if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { - // We were able to grab an oauth2 token from the context - var latestToken *oauth2.Token - if latestToken, err = tok.Token(); err != nil { - return nil, err - } - - latestToken.SetAuthHeader(localVarRequest) - } - - // Basic HTTP Authentication - if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { - localVarRequest.SetBasicAuth(auth.UserName, auth.Password) - } - - // AccessToken Authentication - if auth, ok := ctx.Value(ContextAccessToken).(string); ok { - localVarRequest.Header.Add("Authorization", "Bearer "+auth) - } - } - - for header, value := range c.cfg.DefaultHeader { - localVarRequest.Header.Add(header, value) - } - - return localVarRequest, nil -} - -func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { - if strings.Contains(contentType, "application/xml") { - if err = xml.Unmarshal(b, v); err != nil { - return err - } - return nil - } else if strings.Contains(contentType, "application/json") { - if err = json.Unmarshal(b, v); err != nil { - return err - } - return nil - } - return errors.New("undefined response type") -} - -// Add a file to the multipart request -func addFile(w *multipart.Writer, fieldName, path string) error { - file, err := os.Open(path) - if err != nil { - return err - } - defer file.Close() - - part, err := w.CreateFormFile(fieldName, filepath.Base(path)) - if err != nil { - return err - } - _, err = io.Copy(part, file) - - return err -} - -// Prevent trying to import "fmt" -func reportError(format string, a ...interface{}) error { - return fmt.Errorf(format, a...) -} - -// Set request body from an interface{} -func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { - if bodyBuf == nil { - bodyBuf = &bytes.Buffer{} - } - - if reader, ok := body.(io.Reader); ok { - _, err = bodyBuf.ReadFrom(reader) - } else if b, ok := body.([]byte); ok { - _, err = bodyBuf.Write(b) - } else if s, ok := body.(string); ok { - _, err = bodyBuf.WriteString(s) - } else if s, ok := body.(*string); ok { - _, err = bodyBuf.WriteString(*s) - } else if jsonCheck.MatchString(contentType) { - err = json.NewEncoder(bodyBuf).Encode(body) - } else if xmlCheck.MatchString(contentType) { - xml.NewEncoder(bodyBuf).Encode(body) - } - - if err != nil { - return nil, err - } - - if bodyBuf.Len() == 0 { - err = fmt.Errorf("Invalid body type %s\n", contentType) - return nil, err - } - return bodyBuf, nil -} - -// detectContentType method is used to figure out `Request.Body` content type for request header -func detectContentType(body interface{}) string { - contentType := "text/plain; charset=utf-8" - kind := reflect.TypeOf(body).Kind() - - switch kind { - case reflect.Struct, reflect.Map, reflect.Ptr: - contentType = "application/json; charset=utf-8" - case reflect.String: - contentType = "text/plain; charset=utf-8" - default: - if b, ok := body.([]byte); ok { - contentType = http.DetectContentType(b) - } else if kind == reflect.Slice { - contentType = "application/json; charset=utf-8" - } - } - - return contentType -} - -// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go -type cacheControl map[string]string - -func parseCacheControl(headers http.Header) cacheControl { - cc := cacheControl{} - ccHeader := headers.Get("Cache-Control") - for _, part := range strings.Split(ccHeader, ",") { - part = strings.Trim(part, " ") - if part == "" { - continue - } - if strings.ContainsRune(part, '=') { - keyval := strings.Split(part, "=") - cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") - } else { - cc[part] = "" - } - } - return cc -} - -// CacheExpires helper function to determine remaining time before repeating a request. -func CacheExpires(r *http.Response) time.Time { - // Figure out when the cache expires. - var expires time.Time - now, err := time.Parse(time.RFC1123, r.Header.Get("date")) - if err != nil { - return time.Now() - } - respCacheControl := parseCacheControl(r.Header) - - if maxAge, ok := respCacheControl["max-age"]; ok { - lifetime, err := time.ParseDuration(maxAge + "s") - if err != nil { - expires = now - } - expires = now.Add(lifetime) - } else { - expiresHeader := r.Header.Get("Expires") - if expiresHeader != "" { - expires, err = time.Parse(time.RFC1123, expiresHeader) - if err != nil { - expires = now - } - } - } - return expires -} - -func strlen(s string) int { - return utf8.RuneCountInString(s) -} - -// GenericSwaggerError Provides access to the body, error and model on returned errors. -type GenericSwaggerError struct { - body []byte - error string - model interface{} -} - -// Error returns non-empty string if there was an error. -func (e GenericSwaggerError) Error() string { - return e.error -} - -// Body returns the raw bytes of the response -func (e GenericSwaggerError) Body() []byte { - return e.body -} - -// Model returns the unpacked model of the error -func (e GenericSwaggerError) Model() interface{} { - return e.model -} \ No newline at end of file diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go deleted file mode 100644 index 5ca411ba6a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/configuration.go +++ /dev/null @@ -1,72 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "net/http" -) - -// contextKeys are used to identify the type of value in the context. -// Since these are string, it is possible to get a short description of the -// context key for logging and debugging using key.String(). - -type contextKey string - -func (c contextKey) String() string { - return "auth " + string(c) -} - -var ( - // ContextOAuth2 takes a oauth2.TokenSource as authentication for the request. - ContextOAuth2 = contextKey("token") - - // ContextBasicAuth takes BasicAuth as authentication for the request. - ContextBasicAuth = contextKey("basic") - - // ContextAccessToken takes a string oauth2 access token as authentication for the request. - ContextAccessToken = contextKey("accesstoken") - - // ContextAPIKey takes an APIKey as authentication for the request - ContextAPIKey = contextKey("apikey") -) - -// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth -type BasicAuth struct { - UserName string `json:"userName,omitempty"` - Password string `json:"password,omitempty"` -} - -// APIKey provides API key based authentication to a request passed via context using ContextAPIKey -type APIKey struct { - Key string - Prefix string -} - -type Configuration struct { - BasePath string `json:"basePath,omitempty"` - Host string `json:"host,omitempty"` - Scheme string `json:"scheme,omitempty"` - DefaultHeader map[string]string `json:"defaultHeader,omitempty"` - UserAgent string `json:"userAgent,omitempty"` - HTTPClient *http.Client -} - -func NewConfiguration() *Configuration { - cfg := &Configuration{ - BasePath: "http://localhost", - DefaultHeader: make(map[string]string), - UserAgent: "Swagger-Codegen/1.0.0/go", - } - return cfg -} - -func (c *Configuration) AddDefaultHeader(key string, value string) { - c.DefaultHeader[key] = value -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh deleted file mode 100644 index ae01b182ae..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go deleted file mode 100644 index f2bd1e1146..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_abort_metadata.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Specifies metadata around an aborted workflow execution. -type AdminAbortMetadata struct { - // In the case of a user-specified abort, this will pass along the user-supplied cause. - Cause string `json:"cause,omitempty"` - Principal string `json:"principal,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go deleted file mode 100644 index ca3f4649dd..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_annotations.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Annotation values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge annotations defined at registration and execution time. -type AdminAnnotations struct { - // Map of custom annotations to be applied to the execution resource. - Values map[string]string `json:"values,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go deleted file mode 100644 index 9901eb85e4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines permissions associated with executions created by this launch plan spec. Use either of these roles when they have permissions required by your workflow execution. Deprecated. -type AdminAuth struct { - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `json:"kubernetes_service_account,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go deleted file mode 100644 index ca6c75ddee..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_auth_role.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines permissions associated with executions created by this launch plan spec. Use either of these roles when they have permissions required by your workflow execution. Deprecated. -type AdminAuthRole struct { - // Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - AssumableIamRole string `json:"assumable_iam_role,omitempty"` - // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - KubernetesServiceAccount string `json:"kubernetes_service_account,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go deleted file mode 100644 index de9cf5bf86..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_assignment.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates specifications for routing an execution onto a specific cluster. -type AdminClusterAssignment struct { - ClusterPoolName string `json:"cluster_pool_name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go deleted file mode 100644 index 05f3bb7756..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cluster_resource_attributes.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminClusterResourceAttributes struct { - // Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. - Attributes map[string]string `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go deleted file mode 100644 index fa40dd16bc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_cron_schedule.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Options for schedules to run according to a cron expression. -type AdminCronSchedule struct { - Schedule string `json:"schedule,omitempty"` - Offset string `json:"offset,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go deleted file mode 100644 index 6e696d7c12..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Full user description with formatting preserved. This can be rendered by clients, such as the console or command line tools with in-tact formatting. -type AdminDescription struct { - Value string `json:"value,omitempty"` - Uri string `json:"uri,omitempty"` - Format *AdminDescriptionFormat `json:"format,omitempty"` - IconLink string `json:"icon_link,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go deleted file mode 100644 index 98fdc94706..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// DescriptionEntity contains detailed description for the task/workflow. Documentation could provide insight into the algorithms, business use case, etc. -type AdminDescriptionEntity struct { - // id represents the unique identifier of the description entity. - Id *CoreIdentifier `json:"id,omitempty"` - // One-liner overview of the entity. - ShortDescription string `json:"short_description,omitempty"` - // Full user description with formatting preserved. - LongDescription *AdminDescription `json:"long_description,omitempty"` - // Optional link to source code used to define this entity. - SourceCode *AdminSourceCode `json:"source_code,omitempty"` - // User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. - Tags []string `json:"tags,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go deleted file mode 100644 index 98ca02f0a1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_entity_list.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminDescriptionEntityList struct { - // A list of DescriptionEntities returned based on the request. - DescriptionEntities []AdminDescriptionEntity `json:"descriptionEntities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go deleted file mode 100644 index c392910277..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_description_format.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminDescriptionFormat : - DESCRIPTION_FORMAT_RST: python default documentation - comments is rst -type AdminDescriptionFormat string - -// List of adminDescriptionFormat -const ( - AdminDescriptionFormatUNKNOWN AdminDescriptionFormat = "DESCRIPTION_FORMAT_UNKNOWN" - AdminDescriptionFormatMARKDOWN AdminDescriptionFormat = "DESCRIPTION_FORMAT_MARKDOWN" - AdminDescriptionFormatHTML AdminDescriptionFormat = "DESCRIPTION_FORMAT_HTML" - AdminDescriptionFormatRST AdminDescriptionFormat = "DESCRIPTION_FORMAT_RST" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go deleted file mode 100644 index 2c2bdaa740..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_domain.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Namespace within a project commonly used to differentiate between different service instances. e.g. \"production\", \"development\", etc. -type AdminDomain struct { - // Globally unique domain name. - Id string `json:"id,omitempty"` - // Display name. - Name string `json:"name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go deleted file mode 100644 index a5d8783209..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_email_notification.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines an email notification specification. -type AdminEmailNotification struct { - RecipientsEmail []string `json:"recipients_email,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go deleted file mode 100644 index 7e8ed26ad0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_envs.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Environment variable values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge environment variables defined at registration and execution time. -type AdminEnvs struct { - // Map of custom environment variables to be applied to the execution resource. - Values []CoreKeyValuePair `json:"values,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go deleted file mode 100644 index ac331c3483..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A workflow execution represents an instantiated workflow, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. Used as a response object used in Get and List execution requests. -type AdminExecution struct { - // Unique identifier of the workflow execution. - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` - // User-provided configuration and inputs for launching the execution. - Spec *AdminExecutionSpec `json:"spec,omitempty"` - // Execution results. - Closure *AdminExecutionClosure `json:"closure,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go deleted file mode 100644 index 831dcb9d02..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_closure.go +++ /dev/null @@ -1,43 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type AdminExecutionClosure struct { - // Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. - Outputs *AdminLiteralMapBlob `json:"outputs,omitempty"` - // Error information in the case of a failed execution. - Error_ *CoreExecutionError `json:"error,omitempty"` - // In the case of a user-specified abort, this will pass along the user-supplied cause. - AbortCause string `json:"abort_cause,omitempty"` - // In the case of a user-specified abort, this will pass along the user and their supplied cause. - AbortMetadata *AdminAbortMetadata `json:"abort_metadata,omitempty"` - // Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` - ComputedInputs *CoreLiteralMap `json:"computed_inputs,omitempty"` - // Most recent recorded phase for the execution. - Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` - // Reported time at which the execution began running. - StartedAt time.Time `json:"started_at,omitempty"` - // The amount of time the execution spent running. - Duration string `json:"duration,omitempty"` - // Reported time at which the execution was created. - CreatedAt time.Time `json:"created_at,omitempty"` - // Reported time at which the execution was last updated. - UpdatedAt time.Time `json:"updated_at,omitempty"` - // The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. - Notifications []AdminNotification `json:"notifications,omitempty"` - // Identifies the workflow definition for this execution. - WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` - StateChangeDetails *AdminExecutionStateChangeDetails `json:"state_change_details,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go deleted file mode 100644 index 0666bf60c2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_cluster_label.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionClusterLabel struct { - Value string `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go deleted file mode 100644 index b8da1d4fca..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_request.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to launch an execution with the given project, domain and optionally-assigned name. -type AdminExecutionCreateRequest struct { - Project string `json:"project,omitempty"` - Domain string `json:"domain,omitempty"` - Name string `json:"name,omitempty"` - Spec *AdminExecutionSpec `json:"spec,omitempty"` - Inputs *CoreLiteralMap `json:"inputs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go deleted file mode 100644 index 540bc7e143..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_create_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// The unique identifier for a successfully created execution. If the name was *not* specified in the create request, this identifier will include a generated name. -type AdminExecutionCreateResponse struct { - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go deleted file mode 100644 index bffe0c3a0b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionList struct { - Executions []AdminExecution `json:"executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go deleted file mode 100644 index a309aa0be5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_metadata.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Represents attributes about an execution which are not required to launch the execution but are useful to record. These attributes are assigned at launch time and do not change. -type AdminExecutionMetadata struct { - Mode *ExecutionMetadataExecutionMode `json:"mode,omitempty"` - // Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. - Principal string `json:"principal,omitempty"` - // Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. - Nesting int64 `json:"nesting,omitempty"` - // For scheduled executions, the requested time for execution for this specific schedule invocation. - ScheduledAt time.Time `json:"scheduled_at,omitempty"` - ParentNodeExecution *CoreNodeExecutionIdentifier `json:"parent_node_execution,omitempty"` - // Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. - ReferenceExecution *CoreWorkflowExecutionIdentifier `json:"reference_execution,omitempty"` - // Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. - SystemMetadata *AdminSystemMetadata `json:"system_metadata,omitempty"` - // Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping since we don't have a structure to handle nested ones anyways. - ArtifactIds []CoreArtifactId `json:"artifact_ids,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go deleted file mode 100644 index 3cced5ad51..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_queue_attributes.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionQueueAttributes struct { - // Tags used for assigning execution queues for tasks defined within this project. - Tags []string `json:"tags,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go deleted file mode 100644 index 571e0013f9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_recover_request.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to recover the referenced execution. -type AdminExecutionRecoverRequest struct { - // Identifier of the workflow execution to recover. - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` - Name string `json:"name,omitempty"` - // Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - Metadata *AdminExecutionMetadata `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go deleted file mode 100644 index 0f8ccc51c0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_relaunch_request.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to relaunch the referenced execution. -type AdminExecutionRelaunchRequest struct { - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` - Name string `json:"name,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. - OverwriteCache bool `json:"overwrite_cache,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go deleted file mode 100644 index 3c9dc0ffdb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_spec.go +++ /dev/null @@ -1,44 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime of an execution as it progresses across phase changes. -type AdminExecutionSpec struct { - LaunchPlan *CoreIdentifier `json:"launch_plan,omitempty"` - Inputs *CoreLiteralMap `json:"inputs,omitempty"` - Metadata *AdminExecutionMetadata `json:"metadata,omitempty"` - // List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. - Notifications *AdminNotificationList `json:"notifications,omitempty"` - // This should be set to true if all notifications are intended to be disabled for this execution. - DisableAll bool `json:"disable_all,omitempty"` - // Labels to apply to the execution resource. - Labels *AdminLabels `json:"labels,omitempty"` - // Annotations to apply to the execution resource. - Annotations *AdminAnnotations `json:"annotations,omitempty"` - // Optional: security context override to apply this execution. - SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` - // Optional: auth override to apply this execution. - AuthRole *AdminAuthRole `json:"auth_role,omitempty"` - // Indicates the runtime priority of the execution. - QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` - // Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `json:"max_parallelism,omitempty"` - RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` - // Controls how to select an available cluster on which this execution should run. - ClusterAssignment *AdminClusterAssignment `json:"cluster_assignment,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. - Interruptible bool `json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. - OverwriteCache bool `json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *AdminEnvs `json:"envs,omitempty"` - // Tags to be set for the execution. - Tags []string `json:"tags,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go deleted file mode 100644 index c67d546f89..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminExecutionState : The state of the execution is used to control its visibility in the UI/CLI. - EXECUTION_ACTIVE: By default, all executions are considered active. - EXECUTION_ARCHIVED: Archived executions are no longer visible in the UI. -type AdminExecutionState string - -// List of adminExecutionState -const ( - AdminExecutionStateACTIVE AdminExecutionState = "EXECUTION_ACTIVE" - AdminExecutionStateARCHIVED AdminExecutionState = "EXECUTION_ARCHIVED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go deleted file mode 100644 index 44e3d275a0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_state_change_details.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type AdminExecutionStateChangeDetails struct { - // The state of the execution is used to control its visibility in the UI/CLI. - State *AdminExecutionState `json:"state,omitempty"` - // This timestamp represents when the state changed. - OccurredAt time.Time `json:"occurred_at,omitempty"` - Principal string `json:"principal,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go deleted file mode 100644 index fe49673450..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_request.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to terminate an in-progress execution. This action is irreversible. If an execution is already terminated, this request will simply be a no-op. This request will fail if it references a non-existent execution. If the request succeeds the phase \"ABORTED\" will be recorded for the termination with the optional cause added to the output_result. -type AdminExecutionTerminateRequest struct { - // Uniquely identifies the individual workflow execution to be terminated. - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` - // Optional reason for aborting. - Cause string `json:"cause,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go deleted file mode 100644 index 7471278b35..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_terminate_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionTerminateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go deleted file mode 100644 index 681eb05ed9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_request.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionUpdateRequest struct { - Id *CoreWorkflowExecutionIdentifier `json:"id,omitempty"` - State *AdminExecutionState `json:"state,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go deleted file mode 100644 index 34de2f4ce0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_execution_update_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminExecutionUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go deleted file mode 100644 index b92e2a45e2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Option for schedules run at a certain frequency e.g. every 2 minutes. -type AdminFixedRate struct { - Value int64 `json:"value,omitempty"` - Unit *AdminFixedRateUnit `json:"unit,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go deleted file mode 100644 index 4a6dd4877a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_fixed_rate_unit.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminFixedRateUnit : Represents a frequency at which to run a schedule. -type AdminFixedRateUnit string - -// List of adminFixedRateUnit -const ( - AdminFixedRateUnitMINUTE AdminFixedRateUnit = "MINUTE" - AdminFixedRateUnitHOUR AdminFixedRateUnit = "HOUR" - AdminFixedRateUnitDAY AdminFixedRateUnit = "DAY" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go deleted file mode 100644 index 6b8a49a661..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_flyte_ur_ls.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// These URLs are returned as part of node and task execution data requests. -type AdminFlyteUrLs struct { - Inputs string `json:"inputs,omitempty"` - Outputs string `json:"outputs,omitempty"` - Deck string `json:"deck,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go deleted file mode 100644 index b09afbfe02..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_get_version_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminGetVersionResponse struct { - ControlPlaneVersion *AdminVersion `json:"control_plane_version,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go deleted file mode 100644 index a544db3a14..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_labels.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Label values to be applied to an execution resource. In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined to specify how to merge labels defined at registration and execution time. -type AdminLabels struct { - // Map of custom labels to be applied to the execution resource. - Values map[string]string `json:"values,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go deleted file mode 100644 index d7fa0b566a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A LaunchPlan provides the capability to templatize workflow executions. Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow definition doesn't necessarily have a default value for said input. -type AdminLaunchPlan struct { - // Uniquely identifies a launch plan entity. - Id *CoreIdentifier `json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` - // Values computed by the flyte platform after launch plan registration. - Closure *AdminLaunchPlanClosure `json:"closure,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go deleted file mode 100644 index 540110cb0f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_closure.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Values computed by the flyte platform after launch plan registration. These include expected_inputs required to be present in a CreateExecutionRequest to launch the reference workflow as well timestamp values associated with the launch plan. -type AdminLaunchPlanClosure struct { - // Indicate the Launch plan state. - State *AdminLaunchPlanState `json:"state,omitempty"` - ExpectedInputs *CoreParameterMap `json:"expected_inputs,omitempty"` - ExpectedOutputs *CoreVariableMap `json:"expected_outputs,omitempty"` - // Time at which the launch plan was created. - CreatedAt time.Time `json:"created_at,omitempty"` - // Time at which the launch plan was last updated. - UpdatedAt time.Time `json:"updated_at,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go deleted file mode 100644 index f7a46775ad..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_request.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. -type AdminLaunchPlanCreateRequest struct { - // Uniquely identifies a launch plan entity. - Id *CoreIdentifier `json:"id,omitempty"` - // User-provided launch plan details, including reference workflow, inputs and other metadata. - Spec *AdminLaunchPlanSpec `json:"spec,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go deleted file mode 100644 index 7203a99c80..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_create_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminLaunchPlanCreateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go deleted file mode 100644 index 3e91d5a0b9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminLaunchPlanList struct { - LaunchPlans []AdminLaunchPlan `json:"launch_plans,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go deleted file mode 100644 index 655ac325c2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_metadata.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch the reference workflow. -type AdminLaunchPlanMetadata struct { - Schedule *AdminSchedule `json:"schedule,omitempty"` - Notifications []AdminNotification `json:"notifications,omitempty"` - LaunchConditions *ProtobufAny `json:"launch_conditions,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go deleted file mode 100644 index 52a7ad3dac..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_spec.go +++ /dev/null @@ -1,41 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// User-provided launch plan definition and configuration values. -type AdminLaunchPlanSpec struct { - WorkflowId *CoreIdentifier `json:"workflow_id,omitempty"` - EntityMetadata *AdminLaunchPlanMetadata `json:"entity_metadata,omitempty"` - // Input values to be passed for the execution. These can be overridden when an execution is created with this launch plan. - DefaultInputs *CoreParameterMap `json:"default_inputs,omitempty"` - // Fixed, non-overridable inputs for the Launch Plan. These can not be overridden when an execution is created with this launch plan. - FixedInputs *CoreLiteralMap `json:"fixed_inputs,omitempty"` - Role string `json:"role,omitempty"` - // Custom labels to be applied to the execution resource. - Labels *AdminLabels `json:"labels,omitempty"` - // Custom annotations to be applied to the execution resource. - Annotations *AdminAnnotations `json:"annotations,omitempty"` - // Indicates the permission associated with workflow executions triggered with this launch plan. - Auth *AdminAuth `json:"auth,omitempty"` - AuthRole *AdminAuthRole `json:"auth_role,omitempty"` - SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` - // Indicates the runtime priority of the execution. - QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` - // Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. - MaxParallelism int32 `json:"max_parallelism,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. - Interruptible bool `json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. - OverwriteCache bool `json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *AdminEnvs `json:"envs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go deleted file mode 100644 index f0a1d32782..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_state.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminLaunchPlanState : By default any launch plan regardless of state can be used to launch a workflow execution. However, at most one version of a launch plan (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier group will be observed and trigger executions at a defined cadence. -type AdminLaunchPlanState string - -// List of adminLaunchPlanState -const ( - AdminLaunchPlanStateINACTIVE AdminLaunchPlanState = "INACTIVE" - AdminLaunchPlanStateACTIVE AdminLaunchPlanState = "ACTIVE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go deleted file mode 100644 index bda31c28a1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminLaunchPlanUpdateRequest struct { - // Identifier of launch plan for which to change state. +required. - Id *CoreIdentifier `json:"id,omitempty"` - // Desired state to apply to the launch plan. +required. - State *AdminLaunchPlanState `json:"state,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go deleted file mode 100644 index 84397b0166..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_launch_plan_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminLaunchPlanUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go deleted file mode 100644 index 92b56e3124..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_list_matchable_attributes_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminListMatchableAttributesResponse struct { - Configurations []AdminMatchableAttributesConfiguration `json:"configurations,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go deleted file mode 100644 index ac5e29d42c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_literal_map_blob.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminLiteralMapBlob struct { - Values *CoreLiteralMap `json:"values,omitempty"` - Uri string `json:"uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go deleted file mode 100644 index df6a99884c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_attributes_configuration.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a custom set of attributes applied for either a domain; a domain and project; or domain, project and workflow name. These are used to override system level defaults for kubernetes cluster resource management, default execution values, and more all across different levels of specificity. -type AdminMatchableAttributesConfiguration struct { - Attributes *AdminMatchingAttributes `json:"attributes,omitempty"` - Domain string `json:"domain,omitempty"` - Project string `json:"project,omitempty"` - Workflow string `json:"workflow,omitempty"` - LaunchPlan string `json:"launch_plan,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go deleted file mode 100644 index 411a7becc0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matchable_resource.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminMatchableResource : Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes based on matching tags. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. -type AdminMatchableResource string - -// List of adminMatchableResource -const ( - AdminMatchableResourceTASK_RESOURCE AdminMatchableResource = "TASK_RESOURCE" - AdminMatchableResourceCLUSTER_RESOURCE AdminMatchableResource = "CLUSTER_RESOURCE" - AdminMatchableResourceEXECUTION_QUEUE AdminMatchableResource = "EXECUTION_QUEUE" - AdminMatchableResourceEXECUTION_CLUSTER_LABEL AdminMatchableResource = "EXECUTION_CLUSTER_LABEL" - AdminMatchableResourceQUALITY_OF_SERVICE_SPECIFICATION AdminMatchableResource = "QUALITY_OF_SERVICE_SPECIFICATION" - AdminMatchableResourcePLUGIN_OVERRIDE AdminMatchableResource = "PLUGIN_OVERRIDE" - AdminMatchableResourceWORKFLOW_EXECUTION_CONFIG AdminMatchableResource = "WORKFLOW_EXECUTION_CONFIG" - AdminMatchableResourceCLUSTER_ASSIGNMENT AdminMatchableResource = "CLUSTER_ASSIGNMENT" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go deleted file mode 100644 index 2af9b6d702..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_matching_attributes.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Generic container for encapsulating all types of the above attributes messages. -type AdminMatchingAttributes struct { - TaskResourceAttributes *AdminTaskResourceAttributes `json:"task_resource_attributes,omitempty"` - ClusterResourceAttributes *AdminClusterResourceAttributes `json:"cluster_resource_attributes,omitempty"` - ExecutionQueueAttributes *AdminExecutionQueueAttributes `json:"execution_queue_attributes,omitempty"` - ExecutionClusterLabel *AdminExecutionClusterLabel `json:"execution_cluster_label,omitempty"` - QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` - PluginOverrides *AdminPluginOverrides `json:"plugin_overrides,omitempty"` - WorkflowExecutionConfig *AdminWorkflowExecutionConfig `json:"workflow_execution_config,omitempty"` - ClusterAssignment *AdminClusterAssignment `json:"cluster_assignment,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go deleted file mode 100644 index 6239ddb45a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, workflow or launch plan. A NamedEntity is exclusively identified by its resource type and identifier. -type AdminNamedEntity struct { - // Resource type of the named entity. One of Task, Workflow or LaunchPlan. - ResourceType *CoreResourceType `json:"resource_type,omitempty"` - Id *AdminNamedEntityIdentifier `json:"id,omitempty"` - // Additional metadata around a named entity. - Metadata *AdminNamedEntityMetadata `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go deleted file mode 100644 index 9fa96c57b2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulation of fields that identifies a Flyte resource. A Flyte resource can be a task, workflow or launch plan. A resource can internally have multiple versions and is uniquely identified by project, domain, and name. -type AdminNamedEntityIdentifier struct { - // Name of the project the resource belongs to. - Project string `json:"project,omitempty"` - // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - Domain string `json:"domain,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go deleted file mode 100644 index 55cbafc9c9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_identifier_list.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a list of NamedEntityIdentifiers. -type AdminNamedEntityIdentifierList struct { - // A list of identifiers. - Entities []AdminNamedEntityIdentifier `json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go deleted file mode 100644 index d8042a7ff6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_list.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a list of NamedEntityIdentifiers. -type AdminNamedEntityList struct { - Entities []AdminNamedEntity `json:"entities,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go deleted file mode 100644 index b608d83515..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_metadata.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Additional metadata around a named entity. -type AdminNamedEntityMetadata struct { - Description string `json:"description,omitempty"` - // Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. - State *AdminNamedEntityState `json:"state,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go deleted file mode 100644 index eed0505492..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_state.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// AdminNamedEntityState : The status of the named entity is used to control its visibility in the UI. - NAMED_ENTITY_ACTIVE: By default, all named entities are considered active and under development. - NAMED_ENTITY_ARCHIVED: Archived named entities are no longer visible in the UI. - SYSTEM_GENERATED: System generated entities that aren't explicitly created or managed by a user. -type AdminNamedEntityState string - -// List of adminNamedEntityState -const ( - AdminNamedEntityStateNAMED_ENTITY_ACTIVE AdminNamedEntityState = "NAMED_ENTITY_ACTIVE" - AdminNamedEntityStateNAMED_ENTITY_ARCHIVED AdminNamedEntityState = "NAMED_ENTITY_ARCHIVED" - AdminNamedEntityStateSYSTEM_GENERATED AdminNamedEntityState = "SYSTEM_GENERATED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go deleted file mode 100644 index 66fb02ea37..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to set the referenced named entity state to the configured value. -type AdminNamedEntityUpdateRequest struct { - ResourceType *CoreResourceType `json:"resource_type,omitempty"` - Id *AdminNamedEntityIdentifier `json:"id,omitempty"` - Metadata *AdminNamedEntityMetadata `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go deleted file mode 100644 index 2376f0f26e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_named_entity_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminNamedEntityUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go deleted file mode 100644 index a522ec663e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_closure.go +++ /dev/null @@ -1,38 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Container for node execution details and results. -type AdminNodeExecutionClosure struct { - // Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - OutputUri string `json:"output_uri,omitempty"` - Error_ *CoreExecutionError `json:"error,omitempty"` - // Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` - // The last recorded phase for this node execution. - Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` - // Time at which the node execution began running. - StartedAt time.Time `json:"started_at,omitempty"` - // The amount of time the node execution spent running. - Duration string `json:"duration,omitempty"` - // Time at which the node execution was created. - CreatedAt time.Time `json:"created_at,omitempty"` - // Time at which the node execution was last updated. - UpdatedAt time.Time `json:"updated_at,omitempty"` - WorkflowNodeMetadata *FlyteidladminWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` - TaskNodeMetadata *FlyteidladminTaskNodeMetadata `json:"task_node_metadata,omitempty"` - DeckUri string `json:"deck_uri,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go deleted file mode 100644 index f31d2ce272..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to send a notification that a node execution event has occurred. -type AdminNodeExecutionEventRequest struct { - RequestId string `json:"request_id,omitempty"` - // Details about the event that occurred. - Event *EventNodeExecutionEvent `json:"event,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go deleted file mode 100644 index a1bec33b15..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_event_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminNodeExecutionEventResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go deleted file mode 100644 index 0ab85da7cc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_get_data_response.go +++ /dev/null @@ -1,25 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. -type AdminNodeExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. - Inputs *AdminUrlBlob `json:"inputs,omitempty"` - // Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. - Outputs *AdminUrlBlob `json:"outputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` - // Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - DynamicWorkflow *FlyteidladminDynamicWorkflowNodeMetadata `json:"dynamic_workflow,omitempty"` - FlyteUrls *AdminFlyteUrLs `json:"flyte_urls,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go deleted file mode 100644 index 6ee23b657e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminNodeExecutionList struct { - NodeExecutions []FlyteidladminNodeExecution `json:"node_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go deleted file mode 100644 index fea13f6ade..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_node_execution_meta_data.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminNodeExecutionMetaData struct { - // Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. - RetryGroup string `json:"retry_group,omitempty"` - // Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. - IsParentNode bool `json:"is_parent_node,omitempty"` - SpecNodeId string `json:"spec_node_id,omitempty"` - // Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - IsDynamic bool `json:"is_dynamic,omitempty"` - // Boolean flag indicating if the node is an array node. This is intended to uniquely identify array nodes from other nodes which can have is_parent_node as true. - IsArray bool `json:"is_array,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go deleted file mode 100644 index 16cc5a3c71..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a structure for notifications based on execution status. The notification content is configured within flyte admin but can be templatized. Future iterations could expose configuring notifications with custom content. -type AdminNotification struct { - Phases []CoreWorkflowExecutionPhase `json:"phases,omitempty"` - Email *AdminEmailNotification `json:"email,omitempty"` - PagerDuty *AdminPagerDutyNotification `json:"pager_duty,omitempty"` - Slack *AdminSlackNotification `json:"slack,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go deleted file mode 100644 index b89a82f831..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_notification_list.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminNotificationList struct { - Notifications []AdminNotification `json:"notifications,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go deleted file mode 100644 index c54a917fee..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_pager_duty_notification.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a pager duty notification specification. -type AdminPagerDutyNotification struct { - RecipientsEmail []string `json:"recipients_email,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go deleted file mode 100644 index cace6c40b7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_override.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. In addition to an override implementation a selection of fallbacks can be provided or other modes for handling cases where the desired plugin override is not enabled in a given Flyte deployment. -type AdminPluginOverride struct { - // A predefined yet extensible Task type identifier. - TaskType string `json:"task_type,omitempty"` - // A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - PluginId []string `json:"plugin_id,omitempty"` - // Defines the behavior when no plugin from the plugin_id list is not found. - MissingPluginBehavior *PluginOverrideMissingPluginBehavior `json:"missing_plugin_behavior,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go deleted file mode 100644 index b137c69f1e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_plugin_overrides.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminPluginOverrides struct { - Overrides []AdminPluginOverride `json:"overrides,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go deleted file mode 100644 index 59da87f6cc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Top-level namespace used to classify different entities like workflows and executions. -type AdminProject struct { - // Globally unique project name. - Id string `json:"id,omitempty"` - // Display name. - Name string `json:"name,omitempty"` - Domains []AdminDomain `json:"domains,omitempty"` - Description string `json:"description,omitempty"` - // Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. - Labels *AdminLabels `json:"labels,omitempty"` - State *ProjectProjectState `json:"state,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go deleted file mode 100644 index a719e4737b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `json:"project,omitempty"` - MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go deleted file mode 100644 index 3081254e92..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_request.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectAttributesDeleteRequest struct { - Project string `json:"project,omitempty"` - ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go deleted file mode 100644 index 5c79b2c257..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_delete_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminProjectAttributesDeleteResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go deleted file mode 100644 index 28391629eb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_get_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectAttributesGetResponse struct { - Attributes *AdminProjectAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go deleted file mode 100644 index 47892f4a97..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_request.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectAttributesUpdateRequest struct { - Attributes *AdminProjectAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go deleted file mode 100644 index e54987aadf..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_attributes_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminProjectAttributesUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go deleted file mode 100644 index 8cc141bc42..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectDomainAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `json:"domain,omitempty"` - MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go deleted file mode 100644 index 00b251417d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_request.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectDomainAttributesDeleteRequest struct { - Project string `json:"project,omitempty"` - Domain string `json:"domain,omitempty"` - ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go deleted file mode 100644 index f3b853e4a8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_delete_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminProjectDomainAttributesDeleteResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go deleted file mode 100644 index b0a90f4837..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_get_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectDomainAttributesGetResponse struct { - Attributes *AdminProjectDomainAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go deleted file mode 100644 index ffb143d783..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_request.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectDomainAttributesUpdateRequest struct { - Attributes *AdminProjectDomainAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go deleted file mode 100644 index 56d8148295..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_domain_attributes_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminProjectDomainAttributesUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go deleted file mode 100644 index 075f0de866..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_request.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjectRegisterRequest struct { - Project *AdminProject `json:"project,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go deleted file mode 100644 index beae16e4a4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_register_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be updated in the future. -type AdminProjectRegisterResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go deleted file mode 100644 index ca1f7fb47c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_project_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be updated in the future. -type AdminProjectUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go deleted file mode 100644 index ed23a4f275..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_projects.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminProjects struct { - Projects []AdminProject `json:"projects,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go deleted file mode 100644 index d440e07a07..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_raw_output_data_config.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). See https://github.com/flyteorg/flyte/issues/211 for more background information. -type AdminRawOutputDataConfig struct { - OutputLocationPrefix string `json:"output_location_prefix,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go deleted file mode 100644 index 353e673ac2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_reason.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. -type AdminReason struct { - // occurred_at is the timestamp indicating the instant that this reason happened. - OccurredAt time.Time `json:"occurred_at,omitempty"` - // message is the explanation for the most recent phase transition or status update. - Message string `json:"message,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go deleted file mode 100644 index b6c0a02014..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_schedule.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines complete set of information required to trigger an execution on a schedule. -type AdminSchedule struct { - CronExpression string `json:"cron_expression,omitempty"` - Rate *AdminFixedRate `json:"rate,omitempty"` - CronSchedule *AdminCronSchedule `json:"cron_schedule,omitempty"` - // Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - KickoffTimeInputArg string `json:"kickoff_time_input_arg,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go deleted file mode 100644 index e6f0faf44d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_slack_notification.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a slack notification specification. -type AdminSlackNotification struct { - RecipientsEmail []string `json:"recipients_email,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go deleted file mode 100644 index 7469a2cb02..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_sort.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Specifies sort ordering in a list request. -type AdminSort struct { - Key string `json:"key,omitempty"` - Direction *SortDirection `json:"direction,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go deleted file mode 100644 index 72aa08c11a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_source_code.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminSourceCode struct { - Link string `json:"link,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go deleted file mode 100644 index 48569f8720..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_system_metadata.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents system, rather than user-facing, metadata about an execution. -type AdminSystemMetadata struct { - // Which execution cluster this execution ran on. - ExecutionCluster string `json:"execution_cluster,omitempty"` - // Which kubernetes namespace the execution ran under. - Namespace string `json:"namespace,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go deleted file mode 100644 index 6ebc453247..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks arranged to process workflow inputs and produce a deterministic set of outputs. Tasks can come in many varieties tuned for specialized behavior. -type AdminTask struct { - // id represents the unique identifier of the task. - Id *CoreIdentifier `json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the task. - Closure *AdminTaskClosure `json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `json:"short_description,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go deleted file mode 100644 index 0491fd6b2b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_closure.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data and task metadata. -type AdminTaskClosure struct { - // Represents the compiled representation of the task from the specification provided. - CompiledTask *CoreCompiledTask `json:"compiled_task,omitempty"` - // Time at which the task was created. - CreatedAt time.Time `json:"created_at,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go deleted file mode 100644 index 2a0cd78a25..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_closure.go +++ /dev/null @@ -1,48 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Container for task execution details and results. -type AdminTaskExecutionClosure struct { - // Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - OutputUri string `json:"output_uri,omitempty"` - // Error information for the task execution. Populated if the execution failed. - Error_ *CoreExecutionError `json:"error,omitempty"` - // Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` - // The last recorded phase for this task execution. - Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` - // Detailed log information output by the task execution. - Logs []CoreTaskLog `json:"logs,omitempty"` - // Time at which the task execution began running. - StartedAt time.Time `json:"started_at,omitempty"` - // The amount of time the task execution spent running. - Duration string `json:"duration,omitempty"` - // Time at which the task execution was created. - CreatedAt time.Time `json:"created_at,omitempty"` - // Time at which the task execution was last updated. - UpdatedAt time.Time `json:"updated_at,omitempty"` - // Custom data specific to the task plugin. - CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` - // If there is an explanation for the most recent phase transition, the reason will capture it. - Reason string `json:"reason,omitempty"` - // A predefined yet extensible Task type identifier. - TaskType string `json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *FlyteidleventTaskExecutionMetadata `json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. - EventVersion int32 `json:"event_version,omitempty"` - // A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. - Reasons []AdminReason `json:"reasons,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go deleted file mode 100644 index 47fe4cb73d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to send a notification that a task execution event has occurred. -type AdminTaskExecutionEventRequest struct { - RequestId string `json:"request_id,omitempty"` - // Details about the event that occurred. - Event *EventTaskExecutionEvent `json:"event,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go deleted file mode 100644 index f30c09a8f0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_event_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminTaskExecutionEventResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go deleted file mode 100644 index 75c3e8423e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_get_data_response.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. -type AdminTaskExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. - Inputs *AdminUrlBlob `json:"inputs,omitempty"` - // Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. - Outputs *AdminUrlBlob `json:"outputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` - FlyteUrls *AdminFlyteUrLs `json:"flyte_urls,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go deleted file mode 100644 index e5c42e9d01..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_execution_list.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminTaskExecutionList struct { - TaskExecutions []FlyteidladminTaskExecution `json:"task_executions,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go deleted file mode 100644 index 32baeb5315..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_list.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminTaskList struct { - // A list of tasks returned based on the request. - Tasks []AdminTask `json:"tasks,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go deleted file mode 100644 index 3917b5f2f8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_attributes.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines task resource defaults and limits that will be applied at task registration. -type AdminTaskResourceAttributes struct { - Defaults *AdminTaskResourceSpec `json:"defaults,omitempty"` - Limits *AdminTaskResourceSpec `json:"limits,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go deleted file mode 100644 index b022f1a976..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_resource_spec.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a set of overridable task resource attributes set during task registration. -type AdminTaskResourceSpec struct { - Cpu string `json:"cpu,omitempty"` - Gpu string `json:"gpu,omitempty"` - Memory string `json:"memory,omitempty"` - Storage string `json:"storage,omitempty"` - EphemeralStorage string `json:"ephemeral_storage,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go deleted file mode 100644 index 38c518515f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_task_spec.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a structure that encapsulates the user-configured specification of the task. -type AdminTaskSpec struct { - // Template of the task that encapsulates all the metadata of the task. - Template *CoreTaskTemplate `json:"template,omitempty"` - // Represents the specification for description entity. - Description *AdminDescriptionEntity `json:"description,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go deleted file mode 100644 index fc2ac8662f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_url_blob.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a string url and associated metadata used throughout the platform. -type AdminUrlBlob struct { - // Actual url value. - Url string `json:"url,omitempty"` - // Represents the size of the file accessible at the above url. - Bytes string `json:"bytes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go deleted file mode 100644 index 559cc80b93..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_version.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminVersion struct { - Build string `json:"Build,omitempty"` - Version string `json:"Version,omitempty"` - BuildTime string `json:"BuildTime,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go deleted file mode 100644 index 8b092b6c3e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents the workflow structure stored in the Admin A workflow is created by ordering tasks and associating outputs to inputs in order to produce a directed-acyclic execution graph. -type AdminWorkflow struct { - // id represents the unique identifier of the workflow. - Id *CoreIdentifier `json:"id,omitempty"` - // closure encapsulates all the fields that maps to a compiled version of the workflow. - Closure *AdminWorkflowClosure `json:"closure,omitempty"` - // One-liner overview of the entity. - ShortDescription string `json:"short_description,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go deleted file mode 100644 index dba5c88346..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowAttributes struct { - // Unique project id for which this set of attributes will be applied. - Project string `json:"project,omitempty"` - // Unique domain id for which this set of attributes will be applied. - Domain string `json:"domain,omitempty"` - // Workflow name for which this set of attributes will be applied. - Workflow string `json:"workflow,omitempty"` - MatchingAttributes *AdminMatchingAttributes `json:"matching_attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go deleted file mode 100644 index 31bca658db..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowAttributesDeleteRequest struct { - Project string `json:"project,omitempty"` - Domain string `json:"domain,omitempty"` - Workflow string `json:"workflow,omitempty"` - ResourceType *AdminMatchableResource `json:"resource_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go deleted file mode 100644 index 335d0be208..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_delete_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminWorkflowAttributesDeleteResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go deleted file mode 100644 index 5cfbc5219b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_get_response.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Response to get an individual workflow attribute override. -type AdminWorkflowAttributesGetResponse struct { - Attributes *AdminWorkflowAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go deleted file mode 100644 index eb28b94d0d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_request.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowAttributesUpdateRequest struct { - Attributes *AdminWorkflowAttributes `json:"attributes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go deleted file mode 100644 index 1c449c700f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_attributes_update_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Purposefully empty, may be populated in the future. -type AdminWorkflowAttributesUpdateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go deleted file mode 100644 index 585ef055b9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_closure.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. -type AdminWorkflowClosure struct { - // Represents the compiled representation of the workflow from the specification provided. - CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` - // Time at which the workflow was created. - CreatedAt time.Time `json:"created_at,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go deleted file mode 100644 index 53b4cbbb08..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_request.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowCreateRequest struct { - Id *CoreIdentifier `json:"id,omitempty"` - Spec *AdminWorkflowSpec `json:"spec,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go deleted file mode 100644 index badaea629f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_create_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowCreateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go deleted file mode 100644 index 7c4b9660b9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_config.go +++ /dev/null @@ -1,30 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Adds defaults for customizable workflow-execution specifications and overrides. -type AdminWorkflowExecutionConfig struct { - // Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - MaxParallelism int32 `json:"max_parallelism,omitempty"` - // Indicates security context permissions for executions triggered with this matchable attribute. - SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` - // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - RawOutputDataConfig *AdminRawOutputDataConfig `json:"raw_output_data_config,omitempty"` - // Custom labels to be applied to a triggered execution resource. - Labels *AdminLabels `json:"labels,omitempty"` - // Custom annotations to be applied to a triggered execution resource. - Annotations *AdminAnnotations `json:"annotations,omitempty"` - // Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. - Interruptible bool `json:"interruptible,omitempty"` - // Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. - OverwriteCache bool `json:"overwrite_cache,omitempty"` - // Environment variables to be set for the execution. - Envs *AdminEnvs `json:"envs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go deleted file mode 100644 index b44cf1fc95..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_request.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Request to send a notification that a workflow execution event has occurred. -type AdminWorkflowExecutionEventRequest struct { - RequestId string `json:"request_id,omitempty"` - // Details about the event that occurred. - Event *EventWorkflowExecutionEvent `json:"event,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go deleted file mode 100644 index e6805a3462..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_event_response.go +++ /dev/null @@ -1,13 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowExecutionEventResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go deleted file mode 100644 index d4411944e3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_data_response.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. -type AdminWorkflowExecutionGetDataResponse struct { - // Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. - Outputs *AdminUrlBlob `json:"outputs,omitempty"` - // Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. - Inputs *AdminUrlBlob `json:"inputs,omitempty"` - // Full_inputs will only be populated if they are under a configured size threshold. - FullInputs *CoreLiteralMap `json:"full_inputs,omitempty"` - // Full_outputs will only be populated if they are under a configured size threshold. - FullOutputs *CoreLiteralMap `json:"full_outputs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go deleted file mode 100644 index a64dbca99a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_execution_get_metrics_response.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. -type AdminWorkflowExecutionGetMetricsResponse struct { - // Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. - Span *CoreSpan `json:"span,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go deleted file mode 100644 index 8f6b9947b3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_list.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type AdminWorkflowList struct { - // A list of workflows returned based on the request. - Workflows []AdminWorkflow `json:"workflows,omitempty"` - // In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. - Token string `json:"token,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go deleted file mode 100644 index e4ff5018c7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_admin_workflow_spec.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a structure that encapsulates the specification of the workflow. -type AdminWorkflowSpec struct { - // Template of the task that encapsulates all the metadata of the workflow. - Template *CoreWorkflowTemplate `json:"template,omitempty"` - // Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - SubWorkflows []CoreWorkflowTemplate `json:"sub_workflows,omitempty"` - // Represents the specification for description entity. - Description *AdminDescriptionEntity `json:"description,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go deleted file mode 100644 index c2557772aa..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_blob_type_blob_dimensionality.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type BlobTypeBlobDimensionality string - -// List of BlobTypeBlobDimensionality -const ( - BlobTypeBlobDimensionalitySINGLE BlobTypeBlobDimensionality = "SINGLE" - BlobTypeBlobDimensionalityMULTIPART BlobTypeBlobDimensionality = "MULTIPART" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go deleted file mode 100644 index 42b34515db..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_catalog_reservation_status.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// CatalogReservationStatus : Indicates the status of a catalog reservation operation. - RESERVATION_DISABLED: Used to indicate that reservations are disabled - RESERVATION_ACQUIRED: Used to indicate that a reservation was successfully acquired or extended - RESERVATION_EXISTS: Used to indicate that an active reservation currently exists - RESERVATION_RELEASED: Used to indicate that the reservation has been successfully released - RESERVATION_FAILURE: Used to indicate that a reservation operation resulted in failure -type CatalogReservationStatus string - -// List of CatalogReservationStatus -const ( - CatalogReservationStatusDISABLED CatalogReservationStatus = "RESERVATION_DISABLED" - CatalogReservationStatusACQUIRED CatalogReservationStatus = "RESERVATION_ACQUIRED" - CatalogReservationStatusEXISTS CatalogReservationStatus = "RESERVATION_EXISTS" - CatalogReservationStatusRELEASED CatalogReservationStatus = "RESERVATION_RELEASED" - CatalogReservationStatusFAILURE CatalogReservationStatus = "RESERVATION_FAILURE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go deleted file mode 100644 index f12c82ff7d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_comparison_expression_operator.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ComparisonExpressionOperator : - GT: Greater Than - LT: Less Than -type ComparisonExpressionOperator string - -// List of ComparisonExpressionOperator -const ( - ComparisonExpressionOperatorEQ ComparisonExpressionOperator = "EQ" - ComparisonExpressionOperatorNEQ ComparisonExpressionOperator = "NEQ" - ComparisonExpressionOperatorGT ComparisonExpressionOperator = "GT" - ComparisonExpressionOperatorGTE ComparisonExpressionOperator = "GTE" - ComparisonExpressionOperatorLT ComparisonExpressionOperator = "LT" - ComparisonExpressionOperatorLTE ComparisonExpressionOperator = "LTE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go deleted file mode 100644 index 537e3b45e7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_conjunction_expression_logical_operator.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ConjunctionExpressionLogicalOperator : - AND: Conjunction -type ConjunctionExpressionLogicalOperator string - -// List of ConjunctionExpressionLogicalOperator -const ( - ConjunctionExpressionLogicalOperatorAND ConjunctionExpressionLogicalOperator = "AND" - ConjunctionExpressionLogicalOperatorOR ConjunctionExpressionLogicalOperator = "OR" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go deleted file mode 100644 index 6a6396583f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_connection_set_id_list.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type ConnectionSetIdList struct { - Ids []string `json:"ids,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go deleted file mode 100644 index 2ec668c981..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_container_architecture.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ContainerArchitecture : Architecture-type the container image supports. -type ContainerArchitecture string - -// List of ContainerArchitecture -const ( - ContainerArchitectureUNKNOWN ContainerArchitecture = "UNKNOWN" - ContainerArchitectureAMD64 ContainerArchitecture = "AMD64" - ContainerArchitectureARM64 ContainerArchitecture = "ARM64" - ContainerArchitectureARM_V6 ContainerArchitecture = "ARM_V6" - ContainerArchitectureARM_V7 ContainerArchitecture = "ARM_V7" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go deleted file mode 100644 index 2e0276e490..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_alias.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Links a variable to an alias. -type CoreAlias struct { - // Must match one of the output variable names on a node. - Var_ string `json:"var,omitempty"` - // A workflow-level unique alias that downstream nodes can refer to in their input. - Alias string `json:"alias,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go deleted file mode 100644 index e75ab0d299..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_approve_condition.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean signal with the provided signal_id. -type CoreApproveCondition struct { - // A unique identifier for the requested boolean signal. - SignalId string `json:"signal_id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go deleted file mode 100644 index 3af3d44494..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_array_node.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input values. An ArrayNode can be executed with configurable parallelism (separate from the parent workflow) and can be configured to succeed when a certain number of sub-nodes succeed. -type CoreArrayNode struct { - // node is the sub-node that will be executed for each element in the array. - Node *CoreNode `json:"node,omitempty"` - // parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. - Parallelism int64 `json:"parallelism,omitempty"` - // min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). - MinSuccesses int64 `json:"min_successes,omitempty"` - // If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. - MinSuccessRatio float32 `json:"min_success_ratio,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_binding_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_binding_data.go deleted file mode 100644 index fe0083167e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_binding_data.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreArtifactBindingData struct { - Index int64 `json:"index,omitempty"` - PartitionKey string `json:"partition_key,omitempty"` - Transform string `json:"transform,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_id.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_id.go deleted file mode 100644 index 13c054e25a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_id.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreArtifactId struct { - ArtifactKey *CoreArtifactKey `json:"artifact_key,omitempty"` - Version string `json:"version,omitempty"` - Partitions *CorePartitions `json:"partitions,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_key.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_key.go deleted file mode 100644 index 6aad4528b0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_key.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreArtifactKey struct { - // Project and domain and suffix needs to be unique across a given artifact store. - Project string `json:"project,omitempty"` - Domain string `json:"domain,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_query.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_query.go deleted file mode 100644 index 0425ac9bb8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_query.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreArtifactQuery struct { - ArtifactId *CoreArtifactId `json:"artifact_id,omitempty"` - ArtifactTag *CoreArtifactTag `json:"artifact_tag,omitempty"` - Uri string `json:"uri,omitempty"` - // This is used in the trigger case, where a user specifies a value for an input that is one of the triggering artifacts, or a partition value derived from a triggering artifact. - Binding *CoreArtifactBindingData `json:"binding,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_tag.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_tag.go deleted file mode 100644 index 54b3bcb6e3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_artifact_tag.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreArtifactTag struct { - ArtifactKey *CoreArtifactKey `json:"artifact_key,omitempty"` - Value *CoreLabelValue `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go deleted file mode 100644 index b66a50bd78..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binary.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. -type CoreBinary struct { - Value string `json:"value,omitempty"` - Tag string `json:"tag,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go deleted file mode 100644 index 479a2a60ff..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// An input/output binding of a variable to either static value or a node output. -type CoreBinding struct { - // Variable name must match an input/output variable of the node. - Var_ string `json:"var,omitempty"` - // Data to use to bind this variable. - Binding *CoreBindingData `json:"binding,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go deleted file mode 100644 index 903ef1f8e2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Specifies either a simple value or a reference to another output. -type CoreBindingData struct { - // A simple scalar value. - Scalar *CoreScalar `json:"scalar,omitempty"` - // A collection of binding data. This allows nesting of binding data to any number of levels. - Collection *CoreBindingDataCollection `json:"collection,omitempty"` - // References an output promised by another node. - Promise *CoreOutputReference `json:"promise,omitempty"` - // A map of bindings. The key is always a string. - Map_ *CoreBindingDataMap `json:"map,omitempty"` - Union *CoreUnionInfo `json:"union,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go deleted file mode 100644 index e83621557e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_collection.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A collection of BindingData items. -type CoreBindingDataCollection struct { - Bindings []CoreBindingData `json:"bindings,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go deleted file mode 100644 index d63199bc45..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_binding_data_map.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A map of BindingData items. -type CoreBindingDataMap struct { - Bindings map[string]CoreBindingData `json:"bindings,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go deleted file mode 100644 index 081e36a03d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. -type CoreBlob struct { - Metadata *CoreBlobMetadata `json:"metadata,omitempty"` - Uri string `json:"uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go deleted file mode 100644 index 1dfb19dda9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_metadata.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreBlobMetadata struct { - Type_ *CoreBlobType `json:"type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go deleted file mode 100644 index 5c751b9562..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_blob_type.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreBlobType struct { - Format string `json:"format,omitempty"` - Dimensionality *BlobTypeBlobDimensionality `json:"dimensionality,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go deleted file mode 100644 index 0ee33d7c3a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_boolean_expression.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a boolean expression tree. It can be a simple or a conjunction expression. Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -type CoreBooleanExpression struct { - Conjunction *CoreConjunctionExpression `json:"conjunction,omitempty"` - Comparison *CoreComparisonExpression `json:"comparison,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go deleted file mode 100644 index e5860bb84a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_branch_node.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). -type CoreBranchNode struct { - IfElse *CoreIfElseBlock `json:"if_else,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go deleted file mode 100644 index 94c8826d3a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_artifact_tag.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreCatalogArtifactTag struct { - ArtifactId string `json:"artifact_id,omitempty"` - Name string `json:"name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go deleted file mode 100644 index 6e50baf228..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_cache_status.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// CoreCatalogCacheStatus : - CACHE_DISABLED: Used to indicate that caching was disabled - CACHE_MISS: Used to indicate that the cache lookup resulted in no matches - CACHE_HIT: used to indicate that the associated artifact was a result of a previous execution - CACHE_POPULATED: used to indicate that the resultant artifact was added to the cache - CACHE_LOOKUP_FAILURE: Used to indicate that cache lookup failed because of an error - CACHE_PUT_FAILURE: Used to indicate that cache lookup failed because of an error - CACHE_SKIPPED: Used to indicate the cache lookup was skipped -type CoreCatalogCacheStatus string - -// List of coreCatalogCacheStatus -const ( - CoreCatalogCacheStatusDISABLED CoreCatalogCacheStatus = "CACHE_DISABLED" - CoreCatalogCacheStatusMISS CoreCatalogCacheStatus = "CACHE_MISS" - CoreCatalogCacheStatusHIT CoreCatalogCacheStatus = "CACHE_HIT" - CoreCatalogCacheStatusPOPULATED CoreCatalogCacheStatus = "CACHE_POPULATED" - CoreCatalogCacheStatusLOOKUP_FAILURE CoreCatalogCacheStatus = "CACHE_LOOKUP_FAILURE" - CoreCatalogCacheStatusPUT_FAILURE CoreCatalogCacheStatus = "CACHE_PUT_FAILURE" - CoreCatalogCacheStatusSKIPPED CoreCatalogCacheStatus = "CACHE_SKIPPED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go deleted file mode 100644 index a4223f28b8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_catalog_metadata.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreCatalogMetadata struct { - DatasetId *CoreIdentifier `json:"dataset_id,omitempty"` - ArtifactTag *CoreCatalogArtifactTag `json:"artifact_tag,omitempty"` - SourceTaskExecution *CoreTaskExecutionIdentifier `json:"source_task_execution,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go deleted file mode 100644 index 86e9586a7d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_comparison_expression.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. Each expression results in a boolean result. -type CoreComparisonExpression struct { - Operator *ComparisonExpressionOperator `json:"operator,omitempty"` - LeftValue *CoreOperand `json:"left_value,omitempty"` - RightValue *CoreOperand `json:"right_value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go deleted file mode 100644 index f5a06ebd27..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_task.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreCompiledTask struct { - Template *CoreTaskTemplate `json:"template,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go deleted file mode 100644 index c30998d66c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreCompiledWorkflow struct { - Template *CoreWorkflowTemplate `json:"template,omitempty"` - // For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - Connections *CoreConnectionSet `json:"connections,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go deleted file mode 100644 index 64753a21b5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_compiled_workflow_closure.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of compiled subworkflows. -type CoreCompiledWorkflowClosure struct { - Primary *CoreCompiledWorkflow `json:"primary,omitempty"` - SubWorkflows []CoreCompiledWorkflow `json:"sub_workflows,omitempty"` - Tasks []CoreCompiledTask `json:"tasks,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go deleted file mode 100644 index cf8c99b9bb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_conjunction_expression.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a conjunction expression of two boolean expressions. -type CoreConjunctionExpression struct { - Operator *ConjunctionExpressionLogicalOperator `json:"operator,omitempty"` - LeftExpression *CoreBooleanExpression `json:"left_expression,omitempty"` - RightExpression *CoreBooleanExpression `json:"right_expression,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go deleted file mode 100644 index 8d7b9bc344..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_connection_set.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreConnectionSet struct { - Downstream map[string]ConnectionSetIdList `json:"downstream,omitempty"` - Upstream map[string]ConnectionSetIdList `json:"upstream,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go deleted file mode 100644 index 26f0e9d65a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreContainer struct { - Image string `json:"image,omitempty"` - // Command to be executed, if not provided, the default entrypoint in the container image will be used. - Command []string `json:"command,omitempty"` - // These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. - Args []string `json:"args,omitempty"` - // Container resources requirement as specified by the container engine. - Resources *CoreResources `json:"resources,omitempty"` - // Environment variables will be set as the container is starting up. - Env []CoreKeyValuePair `json:"env,omitempty"` - // Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. - Config []CoreKeyValuePair `json:"config,omitempty"` - Ports []CoreContainerPort `json:"ports,omitempty"` - DataConfig *CoreDataLoadingConfig `json:"data_config,omitempty"` - Architecture *ContainerArchitecture `json:"architecture,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go deleted file mode 100644 index 40e941c7e6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_container_port.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines port properties for a container. -type CoreContainerPort struct { - // Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. - ContainerPort int64 `json:"container_port,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go deleted file mode 100644 index f74fb3aaa1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_data_loading_config.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path Any outputs generated by the user container - within output_path are automatically uploaded. -type CoreDataLoadingConfig struct { - Enabled bool `json:"enabled,omitempty"` - InputPath string `json:"input_path,omitempty"` - OutputPath string `json:"output_path,omitempty"` - Format *DataLoadingConfigLiteralMapFormat `json:"format,omitempty"` - IoStrategy *CoreIoStrategy `json:"io_strategy,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go deleted file mode 100644 index 98925eabcf..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_enum_type.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Enables declaring enum types, with predefined string values For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish To provide no defaults, make the first value as undefined. -type CoreEnumType struct { - // Predefined set of enum values. - Values []string `json:"values,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go deleted file mode 100644 index de5a0f838c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_error.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents an error thrown from a node. -type CoreError struct { - // The node id that threw the error. - FailedNodeId string `json:"failed_node_id,omitempty"` - // Error message thrown. - Message string `json:"message,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go deleted file mode 100644 index 4b2b6e07b4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_execution_error.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents the error message from the execution. -type CoreExecutionError struct { - Code string `json:"code,omitempty"` - // Detailed description of the error - including stack trace. - Message string `json:"message,omitempty"` - ErrorUri string `json:"error_uri,omitempty"` - Kind *ExecutionErrorErrorKind `json:"kind,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_extended_resources.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_extended_resources.go deleted file mode 100644 index bb02119b08..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_extended_resources.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. -type CoreExtendedResources struct { - // GPU accelerator to select for task. Contains information about device type, and for multi-instance GPUs, the partition size to use. - GpuAccelerator *CoreGpuAccelerator `json:"gpu_accelerator,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go deleted file mode 100644 index 27966e22c7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gate_node.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// GateNode refers to the condition that is required for the gate to successfully complete. -type CoreGateNode struct { - // ApproveCondition represents a dependency on an external approval provided by a boolean signal. - Approve *CoreApproveCondition `json:"approve,omitempty"` - // SignalCondition represents a dependency on an signal. - Signal *CoreSignalCondition `json:"signal,omitempty"` - // SleepCondition represents a dependency on waiting for the specified duration. - Sleep *CoreSleepCondition `json:"sleep,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gpu_accelerator.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gpu_accelerator.go deleted file mode 100644 index 6be738d59f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_gpu_accelerator.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Metadata associated with the GPU accelerator to allocate to a task. Contains information about device type, and for multi-instance GPUs, the partition size to use. -type CoreGpuAccelerator struct { - // This can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - Device string `json:"device,omitempty"` - Unpartitioned bool `json:"unpartitioned,omitempty"` - // Like `device`, this can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. - PartitionSize string `json:"partition_size,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go deleted file mode 100644 index 36a08549cb..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identifier.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulation of fields that uniquely identifies a Flyte resource. -type CoreIdentifier struct { - // Identifies the specific type of resource that this identifier corresponds to. - ResourceType *CoreResourceType `json:"resource_type,omitempty"` - // Name of the project the resource belongs to. - Project string `json:"project,omitempty"` - // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - Domain string `json:"domain,omitempty"` - // User provided value for the resource. - Name string `json:"name,omitempty"` - // Specific version of the resource. - Version string `json:"version,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go deleted file mode 100644 index 60251e7b6b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_identity.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the right identity for the execution environment. -type CoreIdentity struct { - // iam_role references the fully qualified name of Identity & Access Management role to impersonate. - IamRole string `json:"iam_role,omitempty"` - // k8s_service_account references a kubernetes service account to impersonate. - K8sServiceAccount string `json:"k8s_service_account,omitempty"` - // oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. - Oauth2Client *CoreOAuth2Client `json:"oauth2_client,omitempty"` - ExecutionIdentity string `json:"execution_identity,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go deleted file mode 100644 index 88c084f857..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_block.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a condition and the execution unit that should be executed if the condition is satisfied. -type CoreIfBlock struct { - Condition *CoreBooleanExpression `json:"condition,omitempty"` - ThenNode *CoreNode `json:"then_node,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go deleted file mode 100644 index f9e2b64918..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_if_else_block.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. If no conditions were satisfied, the else_node or the error will execute. -type CoreIfElseBlock struct { - // +required. First condition to evaluate. - Case_ *CoreIfBlock `json:"case,omitempty"` - // +optional. Additional branches to evaluate. - Other []CoreIfBlock `json:"other,omitempty"` - // The node to execute in case none of the branches were taken. - ElseNode *CoreNode `json:"else_node,omitempty"` - // An error to throw in case none of the branches were taken. - Error_ *CoreError `json:"error,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_input_binding_data.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_input_binding_data.go deleted file mode 100644 index 1a66e6cf49..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_input_binding_data.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreInputBindingData struct { - Var_ string `json:"var,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go deleted file mode 100644 index d310d02903..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_io_strategy.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreIoStrategy struct { - DownloadMode *IoStrategyDownloadMode `json:"download_mode,omitempty"` - UploadMode *IoStrategyUploadMode `json:"upload_mode,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go deleted file mode 100644 index a6ad3f789b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_object_metadata.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Metadata for building a kubernetes object when a task is executed. -type CoreK8sObjectMetadata struct { - // Optional labels to add to the pod definition. - Labels map[string]string `json:"labels,omitempty"` - // Optional annotations to add to the pod definition. - Annotations map[string]string `json:"annotations,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go deleted file mode 100644 index df6db9479b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_k8s_pod.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a pod spec and additional pod metadata that is created when a task is executed. -type CoreK8sPod struct { - // Contains additional metadata for building a kubernetes pod. - Metadata *CoreK8sObjectMetadata `json:"metadata,omitempty"` - PodSpec *ProtobufStruct `json:"pod_spec,omitempty"` - DataConfig *CoreDataLoadingConfig `json:"data_config,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go deleted file mode 100644 index 62a32a04af..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_key_value_pair.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A generic key value pair. -type CoreKeyValuePair struct { - // required. - Key string `json:"key,omitempty"` - // +optional. - Value string `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_label_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_label_value.go deleted file mode 100644 index 772c27188e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_label_value.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreLabelValue struct { - StaticValue string `json:"static_value,omitempty"` - TriggeredBinding *CoreArtifactBindingData `json:"triggered_binding,omitempty"` - InputBinding *CoreInputBindingData `json:"input_binding,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go deleted file mode 100644 index 32592b12a6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. -type CoreLiteral struct { - // A simple value. - Scalar *CoreScalar `json:"scalar,omitempty"` - // A collection of literals to allow nesting. - Collection *CoreLiteralCollection `json:"collection,omitempty"` - // A map of strings to literals. - Map_ *CoreLiteralMap `json:"map,omitempty"` - Hash string `json:"hash,omitempty"` - // Additional metadata for literals. - Metadata map[string]string `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go deleted file mode 100644 index b7de3d8c49..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_collection.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type CoreLiteralCollection struct { - Literals []CoreLiteral `json:"literals,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go deleted file mode 100644 index 58728f6325..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_map.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -type CoreLiteralMap struct { - Literals map[string]CoreLiteral `json:"literals,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go deleted file mode 100644 index 08611bf6c0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_literal_type.go +++ /dev/null @@ -1,35 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a strong type to allow type checking between interfaces. -type CoreLiteralType struct { - // A simple type that can be compared one-to-one with another. - Simple *CoreSimpleType `json:"simple,omitempty"` - // A complex type that requires matching of inner fields. - Schema *CoreSchemaType `json:"schema,omitempty"` - // Defines the type of the value of a collection. Only homogeneous collections are allowed. - CollectionType *CoreLiteralType `json:"collection_type,omitempty"` - // Defines the type of the value of a map type. The type of the key is always a string. - MapValueType *CoreLiteralType `json:"map_value_type,omitempty"` - // A blob might have specialized implementation details depending on associated metadata. - Blob *CoreBlobType `json:"blob,omitempty"` - // Defines an enum with pre-defined string values. - EnumType *CoreEnumType `json:"enum_type,omitempty"` - StructuredDatasetType *CoreStructuredDatasetType `json:"structured_dataset_type,omitempty"` - // Defines an union type with pre-defined LiteralTypes. - UnionType *CoreUnionType `json:"union_type,omitempty"` - // This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. - Metadata *ProtobufStruct `json:"metadata,omitempty"` - // This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. - Annotation *CoreTypeAnnotation `json:"annotation,omitempty"` - // Hints to improve type matching. - Structure *CoreTypeStructure `json:"structure,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go deleted file mode 100644 index 8a420c0e7a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch node. -type CoreNode struct { - // A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. - Id string `json:"id,omitempty"` - // Extra metadata about the node. - Metadata *CoreNodeMetadata `json:"metadata,omitempty"` - // Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. - Inputs []CoreBinding `json:"inputs,omitempty"` - // +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. - UpstreamNodeIds []string `json:"upstream_node_ids,omitempty"` - // +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. - OutputAliases []CoreAlias `json:"output_aliases,omitempty"` - // Information about the Task to execute in this node. - TaskNode *CoreTaskNode `json:"task_node,omitempty"` - // Information about the Workflow to execute in this mode. - WorkflowNode *CoreWorkflowNode `json:"workflow_node,omitempty"` - // Information about the branch node to evaluate in this node. - BranchNode *CoreBranchNode `json:"branch_node,omitempty"` - // Information about the condition to evaluate in this node. - GateNode *CoreGateNode `json:"gate_node,omitempty"` - // Information about the sub-node executions for each value in the list of this nodes inputs values. - ArrayNode *CoreArrayNode `json:"array_node,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go deleted file mode 100644 index 2a391e095f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_identifier.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulation of fields that identify a Flyte node execution entity. -type CoreNodeExecutionIdentifier struct { - NodeId string `json:"node_id,omitempty"` - ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go deleted file mode 100644 index 55c46425a5..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_execution_phase.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreNodeExecutionPhase string - -// List of coreNodeExecutionPhase -const ( - CoreNodeExecutionPhaseUNDEFINED CoreNodeExecutionPhase = "UNDEFINED" - CoreNodeExecutionPhaseQUEUED CoreNodeExecutionPhase = "QUEUED" - CoreNodeExecutionPhaseRUNNING CoreNodeExecutionPhase = "RUNNING" - CoreNodeExecutionPhaseSUCCEEDED CoreNodeExecutionPhase = "SUCCEEDED" - CoreNodeExecutionPhaseFAILING CoreNodeExecutionPhase = "FAILING" - CoreNodeExecutionPhaseFAILED CoreNodeExecutionPhase = "FAILED" - CoreNodeExecutionPhaseABORTED CoreNodeExecutionPhase = "ABORTED" - CoreNodeExecutionPhaseSKIPPED CoreNodeExecutionPhase = "SKIPPED" - CoreNodeExecutionPhaseTIMED_OUT CoreNodeExecutionPhase = "TIMED_OUT" - CoreNodeExecutionPhaseDYNAMIC_RUNNING CoreNodeExecutionPhase = "DYNAMIC_RUNNING" - CoreNodeExecutionPhaseRECOVERED CoreNodeExecutionPhase = "RECOVERED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go deleted file mode 100644 index 3913c96c83..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_node_metadata.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines extra information about the Node. -type CoreNodeMetadata struct { - Name string `json:"name,omitempty"` - // The overall timeout of a task. - Timeout string `json:"timeout,omitempty"` - // Number of retries per task. - Retries *CoreRetryStrategy `json:"retries,omitempty"` - Interruptible bool `json:"interruptible,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go deleted file mode 100644 index 8413c9169f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_client.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. -type CoreOAuth2Client struct { - ClientId string `json:"client_id,omitempty"` - ClientSecret *CoreSecret `json:"client_secret,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go deleted file mode 100644 index 6dcdb2dddd..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if tokens are passed through environment variables. FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens are passed through file mounts. -type CoreOAuth2TokenRequest struct { - Name string `json:"name,omitempty"` - Type_ *CoreOAuth2TokenRequestType `json:"type,omitempty"` - Client *CoreOAuth2Client `json:"client,omitempty"` - IdpDiscoveryEndpoint string `json:"idp_discovery_endpoint,omitempty"` - TokenEndpoint string `json:"token_endpoint,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go deleted file mode 100644 index 5e9b5d4e6f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_o_auth2_token_request_type.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// CoreOAuth2TokenRequestType : Type of the token requested. - CLIENT_CREDENTIALS: CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. -type CoreOAuth2TokenRequestType string - -// List of coreOAuth2TokenRequestType -const ( - CoreOAuth2TokenRequestTypeCLIENT_CREDENTIALS CoreOAuth2TokenRequestType = "CLIENT_CREDENTIALS" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go deleted file mode 100644 index 07f2887e70..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_operand.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines an operand to a comparison expression. -type CoreOperand struct { - Primitive *CorePrimitive `json:"primitive,omitempty"` - Var_ string `json:"var,omitempty"` - Scalar *CoreScalar `json:"scalar,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go deleted file mode 100644 index 469e79f2dd..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_output_reference.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A reference to an output produced by a node. The type can be retrieved -and validated- from the underlying interface of the node. -type CoreOutputReference struct { - // Node id must exist at the graph layer. - NodeId string `json:"node_id,omitempty"` - // Variable name must refer to an output variable for the node. - Var_ string `json:"var,omitempty"` - AttrPath []CorePromiseAttribute `json:"attr_path,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go deleted file mode 100644 index 5e113d24c8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A parameter is used as input to a launch plan and has the special ability to have a default value or mark itself as required. -type CoreParameter struct { - // +required Variable. Defines the type of the variable backing this parameter. - Var_ *CoreVariable `json:"var,omitempty"` - // Defines a default value that has to match the variable type defined. - Default_ *CoreLiteral `json:"default,omitempty"` - // +optional, is this value required to be filled. - Required bool `json:"required,omitempty"` - // This is an execution time search basically that should result in exactly one Artifact with a Type that matches the type of the variable. - ArtifactQuery *CoreArtifactQuery `json:"artifact_query,omitempty"` - ArtifactId *CoreArtifactId `json:"artifact_id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go deleted file mode 100644 index 0c6fc94fb0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_parameter_map.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A map of Parameters. -type CoreParameterMap struct { - // Defines a map of parameter names to parameters. - Parameters map[string]CoreParameter `json:"parameters,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_partitions.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_partitions.go deleted file mode 100644 index a4c70146cc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_partitions.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CorePartitions struct { - Value map[string]CoreLabelValue `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go deleted file mode 100644 index efe369c246..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_primitive.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type CorePrimitive struct { - Integer string `json:"integer,omitempty"` - FloatValue float64 `json:"float_value,omitempty"` - StringValue string `json:"string_value,omitempty"` - Boolean bool `json:"boolean,omitempty"` - Datetime time.Time `json:"datetime,omitempty"` - Duration string `json:"duration,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_promise_attribute.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_promise_attribute.go deleted file mode 100644 index 2c6ab252f1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_promise_attribute.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CorePromiseAttribute struct { - StringValue string `json:"string_value,omitempty"` - IntValue int32 `json:"int_value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go deleted file mode 100644 index d735974d03..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Indicates the priority of an execution. -type CoreQualityOfService struct { - Tier *QualityOfServiceTier `json:"tier,omitempty"` - Spec *CoreQualityOfServiceSpec `json:"spec,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go deleted file mode 100644 index e7a8a8ad7a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_quality_of_service_spec.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents customized execution run-time attributes. -type CoreQualityOfServiceSpec struct { - // Indicates how much queueing delay an execution can tolerate. - QueueingBudget string `json:"queueing_budget,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go deleted file mode 100644 index 26866d1c4c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resource_type.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// CoreResourceType : Indicates a resource type within Flyte. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects -type CoreResourceType string - -// List of coreResourceType -const ( - CoreResourceTypeUNSPECIFIED CoreResourceType = "UNSPECIFIED" - CoreResourceTypeTASK CoreResourceType = "TASK" - CoreResourceTypeWORKFLOW CoreResourceType = "WORKFLOW" - CoreResourceTypeLAUNCH_PLAN CoreResourceType = "LAUNCH_PLAN" - CoreResourceTypeDATASET CoreResourceType = "DATASET" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go deleted file mode 100644 index 725140da08..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_resources.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A customizable interface to convey resources requested for a container. This can be interpreted differently for different container engines. -type CoreResources struct { - // The desired set of resources requested. ResourceNames must be unique within the list. - Requests []ResourcesResourceEntry `json:"requests,omitempty"` - // Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. - Limits []ResourcesResourceEntry `json:"limits,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go deleted file mode 100644 index 4766ef1445..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_retry_strategy.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Retry strategy associated with an executable unit. -type CoreRetryStrategy struct { - // Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. - Retries int64 `json:"retries,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go deleted file mode 100644 index 51fe719888..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_runtime_metadata.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Runtime information. This is loosely defined to allow for extensibility. -type CoreRuntimeMetadata struct { - // Type of runtime. - Type_ *RuntimeMetadataRuntimeType `json:"type,omitempty"` - // Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. - Version string `json:"version,omitempty"` - // +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - Flavor string `json:"flavor,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go deleted file mode 100644 index 09c05e7bef..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_scalar.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreScalar struct { - Primitive *CorePrimitive `json:"primitive,omitempty"` - Blob *CoreBlob `json:"blob,omitempty"` - Binary *CoreBinary `json:"binary,omitempty"` - Schema *CoreSchema `json:"schema,omitempty"` - NoneType *CoreVoid `json:"none_type,omitempty"` - Error_ *CoreError `json:"error,omitempty"` - Generic *ProtobufStruct `json:"generic,omitempty"` - StructuredDataset *CoreStructuredDataset `json:"structured_dataset,omitempty"` - Union *CoreUnion `json:"union,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go deleted file mode 100644 index b621770da0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. -type CoreSchema struct { - Uri string `json:"uri,omitempty"` - Type_ *CoreSchemaType `json:"type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go deleted file mode 100644 index 52df3a083e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_schema_type.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines schema columns and types to strongly type-validate schemas interoperability. -type CoreSchemaType struct { - // A list of ordered columns this schema comprises of. - Columns []SchemaTypeSchemaColumn `json:"columns,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go deleted file mode 100644 index 3b709cefe6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_secret.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Secret encapsulates information about the secret a task needs to proceed. An environment variable FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if secrets are passed through environment variables. FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets are passed through file mounts. -type CoreSecret struct { - Group string `json:"group,omitempty"` - GroupVersion string `json:"group_version,omitempty"` - Key string `json:"key,omitempty"` - MountRequirement *SecretMountType `json:"mount_requirement,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go deleted file mode 100644 index d5c2a841a9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_security_context.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// SecurityContext holds security attributes that apply to tasks. -type CoreSecurityContext struct { - // run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. - RunAs *CoreIdentity `json:"run_as,omitempty"` - // secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. - Secrets []CoreSecret `json:"secrets,omitempty"` - // tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. - Tokens []CoreOAuth2TokenRequest `json:"tokens,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go deleted file mode 100644 index 22e6a53060..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_signal_condition.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// SignalCondition represents a dependency on an signal. -type CoreSignalCondition struct { - // A unique identifier for the requested signal. - SignalId string `json:"signal_id,omitempty"` - // A type denoting the required value type for this signal. - Type_ *CoreLiteralType `json:"type,omitempty"` - // The variable name for the signal value in this nodes outputs. - OutputVariableName string `json:"output_variable_name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go deleted file mode 100644 index 23988bb9c1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_simple_type.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// CoreSimpleType : Define a set of simple types. -type CoreSimpleType string - -// List of coreSimpleType -const ( - CoreSimpleTypeNONE CoreSimpleType = "NONE" - CoreSimpleTypeINTEGER CoreSimpleType = "INTEGER" - CoreSimpleTypeFLOAT CoreSimpleType = "FLOAT" - CoreSimpleTypeSTRING_ CoreSimpleType = "STRING" - CoreSimpleTypeBOOLEAN CoreSimpleType = "BOOLEAN" - CoreSimpleTypeDATETIME CoreSimpleType = "DATETIME" - CoreSimpleTypeDURATION CoreSimpleType = "DURATION" - CoreSimpleTypeBINARY CoreSimpleType = "BINARY" - CoreSimpleTypeERROR_ CoreSimpleType = "ERROR" - CoreSimpleTypeSTRUCT_ CoreSimpleType = "STRUCT" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go deleted file mode 100644 index 4646d8c012..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sleep_condition.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// SleepCondition represents a dependency on waiting for the specified duration. -type CoreSleepCondition struct { - // The overall duration for this sleep. - Duration string `json:"duration,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go deleted file mode 100644 index c050250df6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_span.go +++ /dev/null @@ -1,32 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more precise definitions. -type CoreSpan struct { - // start_time defines the instance this span began. - StartTime time.Time `json:"start_time,omitempty"` - // end_time defines the instance this span completed. - EndTime time.Time `json:"end_time,omitempty"` - // workflow_id is the id of the workflow execution this Span represents. - WorkflowId *CoreWorkflowExecutionIdentifier `json:"workflow_id,omitempty"` - // node_id is the id of the node execution this Span represents. - NodeId *CoreNodeExecutionIdentifier `json:"node_id,omitempty"` - // task_id is the id of the task execution this Span represents. - TaskId *CoreTaskExecutionIdentifier `json:"task_id,omitempty"` - // operation_id is the id of a unique operation that this Span represents. - OperationId string `json:"operation_id,omitempty"` - // spans defines a collection of Spans that breakdown this execution. - Spans []CoreSpan `json:"spans,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go deleted file mode 100644 index c0cd22cb48..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_sql.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Sql represents a generic sql workload with a statement and dialect. -type CoreSql struct { - Statement string `json:"statement,omitempty"` - Dialect *SqlDialect `json:"dialect,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go deleted file mode 100644 index 88fb473fcc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreStructuredDataset struct { - Uri string `json:"uri,omitempty"` - Metadata *CoreStructuredDatasetMetadata `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go deleted file mode 100644 index 9ae04bc033..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_metadata.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreStructuredDatasetMetadata struct { - // Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. - StructuredDatasetType *CoreStructuredDatasetType `json:"structured_dataset_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go deleted file mode 100644 index 74d678705b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_structured_dataset_type.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreStructuredDatasetType struct { - // A list of ordered columns this schema comprises of. - Columns []StructuredDatasetTypeDatasetColumn `json:"columns,omitempty"` - // This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. - Format string `json:"format,omitempty"` - // This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. - ExternalSchemaType string `json:"external_schema_type,omitempty"` - // The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. - ExternalSchemaBytes string `json:"external_schema_bytes,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go deleted file mode 100644 index c0f0264ad2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_identifier.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulation of fields that identify a Flyte task execution entity. -type CoreTaskExecutionIdentifier struct { - TaskId *CoreIdentifier `json:"task_id,omitempty"` - NodeExecutionId *CoreNodeExecutionIdentifier `json:"node_execution_id,omitempty"` - RetryAttempt int64 `json:"retry_attempt,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go deleted file mode 100644 index 0dd23b9a2c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_execution_phase.go +++ /dev/null @@ -1,24 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreTaskExecutionPhase string - -// List of coreTaskExecutionPhase -const ( - CoreTaskExecutionPhaseUNDEFINED CoreTaskExecutionPhase = "UNDEFINED" - CoreTaskExecutionPhaseQUEUED CoreTaskExecutionPhase = "QUEUED" - CoreTaskExecutionPhaseRUNNING CoreTaskExecutionPhase = "RUNNING" - CoreTaskExecutionPhaseSUCCEEDED CoreTaskExecutionPhase = "SUCCEEDED" - CoreTaskExecutionPhaseABORTED CoreTaskExecutionPhase = "ABORTED" - CoreTaskExecutionPhaseFAILED CoreTaskExecutionPhase = "FAILED" - CoreTaskExecutionPhaseINITIALIZING CoreTaskExecutionPhase = "INITIALIZING" - CoreTaskExecutionPhaseWAITING_FOR_RESOURCES CoreTaskExecutionPhase = "WAITING_FOR_RESOURCES" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go deleted file mode 100644 index 1eef3655de..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_log.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreTaskLog struct { - Uri string `json:"uri,omitempty"` - Name string `json:"name,omitempty"` - MessageFormat *TaskLogMessageFormat `json:"message_format,omitempty"` - Ttl string `json:"ttl,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go deleted file mode 100644 index 7445d16032..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_metadata.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreTaskMetadata struct { - // Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - Discoverable bool `json:"discoverable,omitempty"` - // Runtime information about the task. - Runtime *CoreRuntimeMetadata `json:"runtime,omitempty"` - // The overall timeout of a task including user-triggered retries. - Timeout string `json:"timeout,omitempty"` - // Number of retries per task. - Retries *CoreRetryStrategy `json:"retries,omitempty"` - // Indicates a logical version to apply to this task for the purpose of discovery. - DiscoveryVersion string `json:"discovery_version,omitempty"` - // If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. - DeprecatedErrorMessage string `json:"deprecated_error_message,omitempty"` - Interruptible bool `json:"interruptible,omitempty"` - CacheSerializable bool `json:"cache_serializable,omitempty"` - // Indicates whether the task will generate a Deck URI when it finishes executing. - GeneratesDeck bool `json:"generates_deck,omitempty"` - Tags map[string]string `json:"tags,omitempty"` - // pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. - PodTemplateName string `json:"pod_template_name,omitempty"` - // cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - CacheIgnoreInputVars []string `json:"cache_ignore_input_vars,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go deleted file mode 100644 index 63d75a8153..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Refers to the task that the Node is to execute. -type CoreTaskNode struct { - // A globally unique identifier for the task. - ReferenceId *CoreIdentifier `json:"reference_id,omitempty"` - // Optional overrides applied at task execution time. - Overrides *CoreTaskNodeOverrides `json:"overrides,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go deleted file mode 100644 index 7717000d4e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_node_overrides.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Optional task node overrides that will be applied at task execution time. -type CoreTaskNodeOverrides struct { - // A customizable interface to convey resources requested for a task container. - Resources *CoreResources `json:"resources,omitempty"` - // Overrides for all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. - ExtendedResources *CoreExtendedResources `json:"extended_resources,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go deleted file mode 100644 index 64a4a984a8..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_task_template.go +++ /dev/null @@ -1,34 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// A Task structure that uniquely identifies a task in the system Tasks are registered as a first step in the system. -type CoreTaskTemplate struct { - // Auto generated taskId by the system. Task Id uniquely identifies this task globally. - Id *CoreIdentifier `json:"id,omitempty"` - // A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. - Type_ string `json:"type,omitempty"` - // Extra metadata about the task. - Metadata *CoreTaskMetadata `json:"metadata,omitempty"` - // A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. - Interface_ *CoreTypedInterface `json:"interface,omitempty"` - // Custom data about the task. This is extensible to allow various plugins in the system. - Custom *ProtobufStruct `json:"custom,omitempty"` - Container *CoreContainer `json:"container,omitempty"` - K8sPod *CoreK8sPod `json:"k8s_pod,omitempty"` - Sql *CoreSql `json:"sql,omitempty"` - // This can be used to customize task handling at execution time for the same task type. - TaskTypeVersion int32 `json:"task_type_version,omitempty"` - // security_context encapsulates security attributes requested to run this task. - SecurityContext *CoreSecurityContext `json:"security_context,omitempty"` - // Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. - ExtendedResources *CoreExtendedResources `json:"extended_resources,omitempty"` - Config map[string]string `json:"config,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go deleted file mode 100644 index 221a16877a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_annotation.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. -type CoreTypeAnnotation struct { - // A arbitrary JSON payload to describe a type. - Annotations *ProtobufStruct `json:"annotations,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go deleted file mode 100644 index 5c92a39d26..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_type_structure.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Hints to improve type matching e.g. allows distinguishing output from custom type transformers even if the underlying IDL serialization matches. -type CoreTypeStructure struct { - Tag string `json:"tag,omitempty"` - DataclassType map[string]CoreLiteralType `json:"dataclass_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go deleted file mode 100644 index 8a14876460..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_typed_interface.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines strongly typed inputs and outputs. -type CoreTypedInterface struct { - Inputs *CoreVariableMap `json:"inputs,omitempty"` - Outputs *CoreVariableMap `json:"outputs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go deleted file mode 100644 index dc4a92e0d4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// The runtime representation of a tagged union value. See `UnionType` for more details. -type CoreUnion struct { - Value *CoreLiteral `json:"value,omitempty"` - Type_ *CoreLiteralType `json:"type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go deleted file mode 100644 index f4468f7ad0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_info.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreUnionInfo struct { - TargetType *CoreLiteralType `json:"targetType,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go deleted file mode 100644 index a2c710b49e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_union_type.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a tagged union type, also known as a variant (and formally as the sum type). A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by storing the varaint's tag with the literal value and can be examined in runtime. Type S is typically written as S := Apple A | Banana B | Cantaloupe C | ... Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: Optional X := X | Null See also: https://en.wikipedia.org/wiki/Tagged_union -type CoreUnionType struct { - // Predefined set of variants in union. - Variants []CoreLiteralType `json:"variants,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go deleted file mode 100644 index 60655aff32..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Defines a strongly typed variable. -type CoreVariable struct { - // Variable literal type. - Type_ *CoreLiteralType `json:"type,omitempty"` - Description string `json:"description,omitempty"` - // +optional This object allows the user to specify how Artifacts are created. name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - ArtifactPartialId *CoreArtifactId `json:"artifact_partial_id,omitempty"` - ArtifactTag *CoreArtifactTag `json:"artifact_tag,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go deleted file mode 100644 index 581bc9668a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_variable_map.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreVariableMap struct { - // Defines a map of variable names to variables. - Variables map[string]CoreVariable `json:"variables,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go deleted file mode 100644 index 94fc7ee1fc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_void.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally undefined since it can be assigned to a scalar of any LiteralType. -type CoreVoid struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go deleted file mode 100644 index cf61bea6ca..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_identifier.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreWorkflowExecutionIdentifier struct { - // Name of the project the resource belongs to. - Project string `json:"project,omitempty"` - // Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. - Domain string `json:"domain,omitempty"` - // User or system provided value for the resource. - Name string `json:"name,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go deleted file mode 100644 index 0745afacd7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_execution_phase.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type CoreWorkflowExecutionPhase string - -// List of coreWorkflowExecutionPhase -const ( - CoreWorkflowExecutionPhaseUNDEFINED CoreWorkflowExecutionPhase = "UNDEFINED" - CoreWorkflowExecutionPhaseQUEUED CoreWorkflowExecutionPhase = "QUEUED" - CoreWorkflowExecutionPhaseRUNNING CoreWorkflowExecutionPhase = "RUNNING" - CoreWorkflowExecutionPhaseSUCCEEDING CoreWorkflowExecutionPhase = "SUCCEEDING" - CoreWorkflowExecutionPhaseSUCCEEDED CoreWorkflowExecutionPhase = "SUCCEEDED" - CoreWorkflowExecutionPhaseFAILING CoreWorkflowExecutionPhase = "FAILING" - CoreWorkflowExecutionPhaseFAILED CoreWorkflowExecutionPhase = "FAILED" - CoreWorkflowExecutionPhaseABORTED CoreWorkflowExecutionPhase = "ABORTED" - CoreWorkflowExecutionPhaseTIMED_OUT CoreWorkflowExecutionPhase = "TIMED_OUT" - CoreWorkflowExecutionPhaseABORTING CoreWorkflowExecutionPhase = "ABORTING" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go deleted file mode 100644 index 9761a3abc4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not percolate down to child entities (like tasks) launched by the workflow. -type CoreWorkflowMetadata struct { - // Indicates the runtime priority of workflow executions. - QualityOfService *CoreQualityOfService `json:"quality_of_service,omitempty"` - // Defines how the system should behave when a failure is detected in the workflow execution. - OnFailure *WorkflowMetadataOnFailurePolicy `json:"on_failure,omitempty"` - Tags map[string]string `json:"tags,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go deleted file mode 100644 index 715c329160..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_metadata_defaults.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it is only relevant when a task executes. The settings here are the defaults that are passed to all nodes unless explicitly overridden at the node layer. If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be added to both this object and the WorkflowMetadata object above. -type CoreWorkflowMetadataDefaults struct { - // Whether child nodes of the workflow are interruptible. - Interruptible bool `json:"interruptible,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go deleted file mode 100644 index 42b07706aa..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_node.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Refers to a the workflow the node is to execute. -type CoreWorkflowNode struct { - // A globally unique identifier for the launch plan. - LaunchplanRef *CoreIdentifier `json:"launchplan_ref,omitempty"` - SubWorkflowRef *CoreIdentifier `json:"sub_workflow_ref,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go deleted file mode 100644 index 377a19bf82..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_core_workflow_template.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, directed acyclic graph. -type CoreWorkflowTemplate struct { - // A globally unique identifier for the workflow. - Id *CoreIdentifier `json:"id,omitempty"` - // Extra metadata about the workflow. - Metadata *CoreWorkflowMetadata `json:"metadata,omitempty"` - // Defines a strongly typed interface for the Workflow. This can include some optional parameters. - Interface_ *CoreTypedInterface `json:"interface,omitempty"` - // A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - Nodes []CoreNode `json:"nodes,omitempty"` - // A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. - Outputs []CoreBinding `json:"outputs,omitempty"` - // +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. - FailureNode *CoreNode `json:"failure_node,omitempty"` - MetadataDefaults *CoreWorkflowMetadataDefaults `json:"metadata_defaults,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go deleted file mode 100644 index bfb25fd456..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_data_loading_config_literal_map_format.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// DataLoadingConfigLiteralMapFormat : - JSON: JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html - PROTO: Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core -type DataLoadingConfigLiteralMapFormat string - -// List of DataLoadingConfigLiteralMapFormat -const ( - DataLoadingConfigLiteralMapFormatJSON DataLoadingConfigLiteralMapFormat = "JSON" - DataLoadingConfigLiteralMapFormatYAML DataLoadingConfigLiteralMapFormat = "YAML" - DataLoadingConfigLiteralMapFormatPROTO DataLoadingConfigLiteralMapFormat = "PROTO" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_event_reason.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_event_reason.go deleted file mode 100644 index 2f85376781..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_event_reason.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type EventEventReason struct { - Reason string `json:"reason,omitempty"` - OccurredAt time.Time `json:"occurred_at,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go deleted file mode 100644 index 8daa059ed9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_external_resource_info.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// This message contains metadata about external resources produced or used by a specific task execution. -type EventExternalResourceInfo struct { - // Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - ExternalId string `json:"external_id,omitempty"` - // A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. - Index int64 `json:"index,omitempty"` - RetryAttempt int64 `json:"retry_attempt,omitempty"` - Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` - // Captures the status of caching for this external resource execution. - CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` - Logs []CoreTaskLog `json:"logs,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go deleted file mode 100644 index 4edc5d3692..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_node_execution_event.go +++ /dev/null @@ -1,49 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type EventNodeExecutionEvent struct { - Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` - ProducerId string `json:"producer_id,omitempty"` - Phase *CoreNodeExecutionPhase `json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated by the executor of the node. - OccurredAt time.Time `json:"occurred_at,omitempty"` - InputUri string `json:"input_uri,omitempty"` - // Raw input data consumed by this node execution. - InputData *CoreLiteralMap `json:"input_data,omitempty"` - // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... - OutputUri string `json:"output_uri,omitempty"` - Error_ *CoreExecutionError `json:"error,omitempty"` - // Raw output data produced by this node execution. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` - WorkflowNodeMetadata *FlyteidleventWorkflowNodeMetadata `json:"workflow_node_metadata,omitempty"` - TaskNodeMetadata *FlyteidleventTaskNodeMetadata `json:"task_node_metadata,omitempty"` - // [To be deprecated] Specifies which task (if any) launched this node. - ParentTaskMetadata *EventParentTaskExecutionMetadata `json:"parent_task_metadata,omitempty"` - // Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - ParentNodeMetadata *EventParentNodeExecutionMetadata `json:"parent_node_metadata,omitempty"` - RetryGroup string `json:"retry_group,omitempty"` - SpecNodeId string `json:"spec_node_id,omitempty"` - NodeName string `json:"node_name,omitempty"` - EventVersion int32 `json:"event_version,omitempty"` - // Whether this node launched a subworkflow. - IsParent bool `json:"is_parent,omitempty"` - // Whether this node yielded a dynamic workflow. - IsDynamic bool `json:"is_dynamic,omitempty"` - DeckUri string `json:"deck_uri,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt time.Time `json:"reported_at,omitempty"` - // Indicates if this node is an ArrayNode. - IsArray bool `json:"is_array,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go deleted file mode 100644 index 80cd096b18..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_node_execution_metadata.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type EventParentNodeExecutionMetadata struct { - NodeId string `json:"node_id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go deleted file mode 100644 index c5276ee64c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_parent_task_execution_metadata.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type EventParentTaskExecutionMetadata struct { - Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go deleted file mode 100644 index 4b2bde69b0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_resource_pool_info.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// This message holds task execution metadata specific to resource allocation used to manage concurrent executions for a project namespace. -type EventResourcePoolInfo struct { - // Unique resource ID used to identify this execution when allocating a token. - AllocationToken string `json:"allocation_token,omitempty"` - // Namespace under which this task execution requested an allocation token. - Namespace string `json:"namespace,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go deleted file mode 100644 index dac65497ac..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_task_execution_event.go +++ /dev/null @@ -1,52 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. -type EventTaskExecutionEvent struct { - // ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. - TaskId *CoreIdentifier `json:"task_id,omitempty"` - ParentNodeExecutionId *CoreNodeExecutionIdentifier `json:"parent_node_execution_id,omitempty"` - RetryAttempt int64 `json:"retry_attempt,omitempty"` - Phase *CoreTaskExecutionPhase `json:"phase,omitempty"` - ProducerId string `json:"producer_id,omitempty"` - Logs []CoreTaskLog `json:"logs,omitempty"` - // This timestamp represents when the original event occurred, it is generated by the executor of the task. - OccurredAt time.Time `json:"occurred_at,omitempty"` - // URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... - InputUri string `json:"input_uri,omitempty"` - // Raw input data consumed by this task execution. - InputData *CoreLiteralMap `json:"input_data,omitempty"` - // URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... - OutputUri string `json:"output_uri,omitempty"` - Error_ *CoreExecutionError `json:"error,omitempty"` - // Raw output data produced by this task execution. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` - // Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - CustomInfo *ProtobufStruct `json:"custom_info,omitempty"` - // Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. - PhaseVersion int64 `json:"phase_version,omitempty"` - // An optional explanation for the phase transition. Deprecated: Use reasons instead. - Reason string `json:"reason,omitempty"` - // An optional list of explanations for the phase transition. - Reasons []EventEventReason `json:"reasons,omitempty"` - // A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. - TaskType string `json:"task_type,omitempty"` - // Metadata around how a task was executed. - Metadata *FlyteidleventTaskExecutionMetadata `json:"metadata,omitempty"` - // The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. - EventVersion int32 `json:"event_version,omitempty"` - // This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - ReportedAt time.Time `json:"reported_at,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go deleted file mode 100644 index 279f0d5a5c..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_event_workflow_execution_event.go +++ /dev/null @@ -1,27 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "time" -) - -type EventWorkflowExecutionEvent struct { - ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` - ProducerId string `json:"producer_id,omitempty"` - Phase *CoreWorkflowExecutionPhase `json:"phase,omitempty"` - // This timestamp represents when the original event occurred, it is generated by the executor of the workflow. - OccurredAt time.Time `json:"occurred_at,omitempty"` - // URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... - OutputUri string `json:"output_uri,omitempty"` - Error_ *CoreExecutionError `json:"error,omitempty"` - // Raw output data produced by this workflow execution. - OutputData *CoreLiteralMap `json:"output_data,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go deleted file mode 100644 index fa2eb9e95e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_error_error_kind.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type ExecutionErrorErrorKind string - -// List of ExecutionErrorErrorKind -const ( - ExecutionErrorErrorKindUNKNOWN ExecutionErrorErrorKind = "UNKNOWN" - ExecutionErrorErrorKindUSER ExecutionErrorErrorKind = "USER" - ExecutionErrorErrorKindSYSTEM ExecutionErrorErrorKind = "SYSTEM" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go deleted file mode 100644 index 000c4da4c6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_execution_metadata_execution_mode.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ExecutionMetadataExecutionMode : The method by which this execution was launched. - MANUAL: The default execution mode, MANUAL implies that an execution was launched by an individual. - SCHEDULED: A schedule triggered this execution launch. - SYSTEM: A system process was responsible for launching this execution rather an individual. - RELAUNCH: This execution was launched with identical inputs as a previous execution. - CHILD_WORKFLOW: This execution was triggered by another execution. - RECOVERED: This execution was recovered from another execution. -type ExecutionMetadataExecutionMode string - -// List of ExecutionMetadataExecutionMode -const ( - ExecutionMetadataExecutionModeMANUAL ExecutionMetadataExecutionMode = "MANUAL" - ExecutionMetadataExecutionModeSCHEDULED ExecutionMetadataExecutionMode = "SCHEDULED" - ExecutionMetadataExecutionModeSYSTEM ExecutionMetadataExecutionMode = "SYSTEM" - ExecutionMetadataExecutionModeRELAUNCH ExecutionMetadataExecutionMode = "RELAUNCH" - ExecutionMetadataExecutionModeCHILD_WORKFLOW ExecutionMetadataExecutionMode = "CHILD_WORKFLOW" - ExecutionMetadataExecutionModeRECOVERED ExecutionMetadataExecutionMode = "RECOVERED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go deleted file mode 100644 index be943d57f4..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_dynamic_workflow_node_metadata.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. -type FlyteidladminDynamicWorkflowNodeMetadata struct { - // id represents the unique identifier of the workflow. - Id *CoreIdentifier `json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. - DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go deleted file mode 100644 index 98ec72e86b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_node_execution.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates all details for a single node execution entity. A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested sub-workflow, or even a separate child-workflow execution. The same task can be called repeatedly in a single workflow but each node is unique. -type FlyteidladminNodeExecution struct { - // Uniquely identifies an individual node execution. - Id *CoreNodeExecutionIdentifier `json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `json:"input_uri,omitempty"` - // Computed results associated with this node execution. - Closure *AdminNodeExecutionClosure `json:"closure,omitempty"` - Metadata *AdminNodeExecutionMetaData `json:"metadata,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go deleted file mode 100644 index ab5fca2a45..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_request.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type FlyteidladminTaskCreateRequest struct { - Id *CoreIdentifier `json:"id,omitempty"` - Spec *AdminTaskSpec `json:"spec,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go deleted file mode 100644 index caffded160..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_create_response.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Represents a response structure if task creation succeeds. -type FlyteidladminTaskCreateResponse struct { -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go deleted file mode 100644 index e0532d1a27..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_execution.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates all details for a single task execution entity. A task execution represents an instantiated task, including all inputs and additional metadata as well as computed results included state, outputs, and duration-based attributes. -type FlyteidladminTaskExecution struct { - // Unique identifier for the task execution. - Id *CoreTaskExecutionIdentifier `json:"id,omitempty"` - // Path to remote data store where input blob is stored. - InputUri string `json:"input_uri,omitempty"` - // Task execution details and results. - Closure *AdminTaskExecutionClosure `json:"closure,omitempty"` - // Whether this task spawned nodes. - IsParent bool `json:"is_parent,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go deleted file mode 100644 index 56d98b26d1..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_task_node_metadata.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type FlyteidladminTaskNodeMetadata struct { - // Captures the status of caching for this execution. - CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` - CatalogKey *CoreCatalogMetadata `json:"catalog_key,omitempty"` - CheckpointUri string `json:"checkpoint_uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go deleted file mode 100644 index fe99080d56..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidladmin_workflow_node_metadata.go +++ /dev/null @@ -1,15 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type FlyteidladminWorkflowNodeMetadata struct { - // The identifier for a workflow execution launched by a node. - ExecutionId *CoreWorkflowExecutionIdentifier `json:"executionId,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go deleted file mode 100644 index a02306af60..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_dynamic_workflow_node_metadata.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. -type FlyteidleventDynamicWorkflowNodeMetadata struct { - // id represents the unique identifier of the workflow. - Id *CoreIdentifier `json:"id,omitempty"` - // Represents the compiled representation of the embedded dynamic workflow. - CompiledWorkflow *CoreCompiledWorkflowClosure `json:"compiled_workflow,omitempty"` - // dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. - DynamicJobSpecUri string `json:"dynamic_job_spec_uri,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go deleted file mode 100644 index 71d474ab41..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_execution_metadata.go +++ /dev/null @@ -1,23 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Holds metadata around how a task was executed. As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, and more may grow in size but not change necessarily based on the phase transition that sparked the event update. Metadata is a container for these attributes across the task execution lifecycle. -type FlyteidleventTaskExecutionMetadata struct { - // Unique, generated name for this task execution used by the backend. - GeneratedName string `json:"generated_name,omitempty"` - // Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - ExternalResources []EventExternalResourceInfo `json:"external_resources,omitempty"` - // Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. - ResourcePoolInfo []EventResourcePoolInfo `json:"resource_pool_info,omitempty"` - // The identifier of the plugin used to execute this task. - PluginIdentifier string `json:"plugin_identifier,omitempty"` - InstanceClass *TaskExecutionMetadataInstanceClass `json:"instance_class,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go deleted file mode 100644 index 50a76526b3..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_task_node_metadata.go +++ /dev/null @@ -1,21 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type FlyteidleventTaskNodeMetadata struct { - // Captures the status of caching for this execution. - CacheStatus *CoreCatalogCacheStatus `json:"cache_status,omitempty"` - CatalogKey *CoreCatalogMetadata `json:"catalog_key,omitempty"` - // Captures the status of cache reservations for this execution. - ReservationStatus *CatalogReservationStatus `json:"reservation_status,omitempty"` - CheckpointUri string `json:"checkpoint_uri,omitempty"` - // In the case this task launched a dynamic workflow we capture its structure here. - DynamicWorkflow *FlyteidleventDynamicWorkflowNodeMetadata `json:"dynamic_workflow,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go deleted file mode 100644 index 0530d49c8d..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_flyteidlevent_workflow_node_metadata.go +++ /dev/null @@ -1,14 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type FlyteidleventWorkflowNodeMetadata struct { - ExecutionId *CoreWorkflowExecutionIdentifier `json:"execution_id,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go deleted file mode 100644 index 670fc15294..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_download_mode.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// IoStrategyDownloadMode : - DOWNLOAD_EAGER: All data will be downloaded before the main container is executed - DOWNLOAD_STREAM: Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - DO_NOT_DOWNLOAD: Large objects (offloaded) will not be downloaded -type IoStrategyDownloadMode string - -// List of IOStrategyDownloadMode -const ( - IoStrategyDownloadModeDOWNLOAD_EAGER IoStrategyDownloadMode = "DOWNLOAD_EAGER" - IoStrategyDownloadModeDOWNLOAD_STREAM IoStrategyDownloadMode = "DOWNLOAD_STREAM" - IoStrategyDownloadModeDO_NOT_DOWNLOAD IoStrategyDownloadMode = "DO_NOT_DOWNLOAD" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go deleted file mode 100644 index d7b6e5f1fe..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_io_strategy_upload_mode.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// IoStrategyUploadMode : - UPLOAD_ON_EXIT: All data will be uploaded after the main container exits - UPLOAD_EAGER: Data will be uploaded as it appears. Refer to protocol specification for details - DO_NOT_UPLOAD: Data will not be uploaded, only references will be written -type IoStrategyUploadMode string - -// List of IOStrategyUploadMode -const ( - IoStrategyUploadModeUPLOAD_ON_EXIT IoStrategyUploadMode = "UPLOAD_ON_EXIT" - IoStrategyUploadModeUPLOAD_EAGER IoStrategyUploadMode = "UPLOAD_EAGER" - IoStrategyUploadModeDO_NOT_UPLOAD IoStrategyUploadMode = "DO_NOT_UPLOAD" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go deleted file mode 100644 index 2c8ff10df0..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_plugin_override_missing_plugin_behavior.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// PluginOverrideMissingPluginBehavior : - FAIL: By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - USE_DEFAULT: Uses the system-configured default implementation. -type PluginOverrideMissingPluginBehavior string - -// List of PluginOverrideMissingPluginBehavior -const ( - PluginOverrideMissingPluginBehaviorFAIL PluginOverrideMissingPluginBehavior = "FAIL" - PluginOverrideMissingPluginBehaviorUSE_DEFAULT PluginOverrideMissingPluginBehavior = "USE_DEFAULT" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go deleted file mode 100644 index 112958abfa..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_project_project_state.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ProjectProjectState : The state of the project is used to control its visibility in the UI and validity. - ACTIVE: By default, all projects are considered active. - ARCHIVED: Archived projects are no longer visible in the UI and no longer valid. - SYSTEM_GENERATED: System generated projects that aren't explicitly created or managed by a user. -type ProjectProjectState string - -// List of ProjectProjectState -const ( - ProjectProjectStateACTIVE ProjectProjectState = "ACTIVE" - ProjectProjectStateARCHIVED ProjectProjectState = "ARCHIVED" - ProjectProjectStateSYSTEM_GENERATED ProjectProjectState = "SYSTEM_GENERATED" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_any.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_any.go deleted file mode 100644 index cc85641360..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_any.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// `Any` contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message. Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type. Example 1: Pack and unpack a message in C++. Foo foo = ...; Any any; any.PackFrom(foo); ... if (any.UnpackTo(&foo)) { ... } Example 2: Pack and unpack a message in Java. Foo foo = ...; Any any = Any.pack(foo); ... if (any.is(Foo.class)) { foo = any.unpack(Foo.class); } Example 3: Pack and unpack a message in Python. foo = Foo(...) any = Any() any.Pack(foo) ... if any.Is(Foo.DESCRIPTOR): any.Unpack(foo) ... Example 4: Pack and unpack a message in Go foo := &pb.Foo{...} any, err := ptypes.MarshalAny(foo) ... foo := &pb.Foo{} if err := ptypes.UnmarshalAny(any, foo); err != nil { ... } The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example \"foo.bar.com/x/y.z\" will yield type name \"y.z\". JSON ==== The JSON representation of an `Any` value uses the regular representation of the deserialized, embedded message, with an additional field `@type` which contains the type URL. Example: package google.profile; message Person { string first_name = 1; string last_name = 2; } { \"@type\": \"type.googleapis.com/google.profile.Person\", \"firstName\": , \"lastName\": } If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field `value` which holds the custom JSON in addition to the `@type` field. Example (for message [google.protobuf.Duration][]): { \"@type\": \"type.googleapis.com/google.protobuf.Duration\", \"value\": \"1.212s\" } -type ProtobufAny struct { - // A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. - TypeUrl string `json:"type_url,omitempty"` - // Must be a valid serialized protocol buffer of the above specified type. - Value string `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go deleted file mode 100644 index bc715dd55e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_list_value.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// `ListValue` is a wrapper around a repeated field of values. The JSON representation for `ListValue` is JSON array. -type ProtobufListValue struct { - // Repeated field of dynamically typed values. - Values []ProtobufValue `json:"values,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go deleted file mode 100644 index b7bb2d3e80..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_null_value.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ProtobufNullValue : `NullValue` is a singleton enumeration to represent the null value for the `Value` type union. The JSON representation for `NullValue` is JSON `null`. - NULL_VALUE: Null value. -type ProtobufNullValue string - -// List of protobufNullValue -const ( - ProtobufNullValueNULL_VALUE ProtobufNullValue = "NULL_VALUE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go deleted file mode 100644 index 377cb9bbcd..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_struct.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// `Struct` represents a structured data value, consisting of fields which map to dynamically typed values. In some languages, `Struct` might be supported by a native representation. For example, in scripting languages like JS a struct is represented as an object. The details of that representation are described together with the proto support for the language. The JSON representation for `Struct` is JSON object. -type ProtobufStruct struct { - // Unordered map of dynamically typed values. - Fields map[string]ProtobufValue `json:"fields,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go deleted file mode 100644 index 67738ccee2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_protobuf_value.go +++ /dev/null @@ -1,26 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// `Value` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of that variants, absence of any variant indicates an error. The JSON representation for `Value` is JSON value. -type ProtobufValue struct { - // Represents a null value. - NullValue *ProtobufNullValue `json:"null_value,omitempty"` - // Represents a double value. - NumberValue float64 `json:"number_value,omitempty"` - // Represents a string value. - StringValue string `json:"string_value,omitempty"` - // Represents a boolean value. - BoolValue bool `json:"bool_value,omitempty"` - // Represents a structured value. - StructValue *ProtobufStruct `json:"struct_value,omitempty"` - // Represents a repeated `Value`. - ListValue *ProtobufListValue `json:"list_value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go deleted file mode 100644 index b156cc3b7e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_quality_of_service_tier.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// QualityOfServiceTier : - UNDEFINED: Default: no quality of service specified. -type QualityOfServiceTier string - -// List of QualityOfServiceTier -const ( - QualityOfServiceTierUNDEFINED QualityOfServiceTier = "UNDEFINED" - QualityOfServiceTierHIGH QualityOfServiceTier = "HIGH" - QualityOfServiceTierMEDIUM QualityOfServiceTier = "MEDIUM" - QualityOfServiceTierLOW QualityOfServiceTier = "LOW" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go deleted file mode 100644 index cb02920221..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_entry.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -// Encapsulates a resource name and value. -type ResourcesResourceEntry struct { - // Resource name. - Name *ResourcesResourceName `json:"name,omitempty"` - Value string `json:"value,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go deleted file mode 100644 index 13b9f8b236..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_resources_resource_name.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// ResourcesResourceName : Known resource names. - EPHEMERAL_STORAGE: For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. -type ResourcesResourceName string - -// List of ResourcesResourceName -const ( - ResourcesResourceNameUNKNOWN ResourcesResourceName = "UNKNOWN" - ResourcesResourceNameCPU ResourcesResourceName = "CPU" - ResourcesResourceNameGPU ResourcesResourceName = "GPU" - ResourcesResourceNameMEMORY ResourcesResourceName = "MEMORY" - ResourcesResourceNameSTORAGE ResourcesResourceName = "STORAGE" - ResourcesResourceNameEPHEMERAL_STORAGE ResourcesResourceName = "EPHEMERAL_STORAGE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go deleted file mode 100644 index 85abd1fbcc..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_runtime_metadata_runtime_type.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type RuntimeMetadataRuntimeType string - -// List of RuntimeMetadataRuntimeType -const ( - RuntimeMetadataRuntimeTypeOTHER RuntimeMetadataRuntimeType = "OTHER" - RuntimeMetadataRuntimeTypeFLYTE_SDK RuntimeMetadataRuntimeType = "FLYTE_SDK" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go deleted file mode 100644 index ece75c9671..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_column_schema_column_type.go +++ /dev/null @@ -1,22 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type SchemaColumnSchemaColumnType string - -// List of SchemaColumnSchemaColumnType -const ( - SchemaColumnSchemaColumnTypeINTEGER SchemaColumnSchemaColumnType = "INTEGER" - SchemaColumnSchemaColumnTypeFLOAT SchemaColumnSchemaColumnType = "FLOAT" - SchemaColumnSchemaColumnTypeSTRING_ SchemaColumnSchemaColumnType = "STRING" - SchemaColumnSchemaColumnTypeBOOLEAN SchemaColumnSchemaColumnType = "BOOLEAN" - SchemaColumnSchemaColumnTypeDATETIME SchemaColumnSchemaColumnType = "DATETIME" - SchemaColumnSchemaColumnTypeDURATION SchemaColumnSchemaColumnType = "DURATION" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go deleted file mode 100644 index 33bc8433ad..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_schema_type_schema_column.go +++ /dev/null @@ -1,16 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type SchemaTypeSchemaColumn struct { - Name string `json:"name,omitempty"` - // The column type. This allows a limited set of types currently. - Type_ *SchemaColumnSchemaColumnType `json:"type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go deleted file mode 100644 index 4f76410bc7..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_secret_mount_type.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// SecretMountType : - ANY: Default case, indicates the client can tolerate either mounting options. - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable. - FILE: FILE indicates the secret needs to be mounted as a file. -type SecretMountType string - -// List of SecretMountType -const ( - SecretMountTypeANY SecretMountType = "ANY" - SecretMountTypeENV_VAR SecretMountType = "ENV_VAR" - SecretMountTypeFILE SecretMountType = "FILE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go deleted file mode 100644 index bc5e709b53..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sort_direction.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// SortDirection : - DESCENDING: By default, fields are sorted in descending order. -type SortDirection string - -// List of SortDirection -const ( - SortDirectionDESCENDING SortDirection = "DESCENDING" - SortDirectionASCENDING SortDirection = "ASCENDING" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go deleted file mode 100644 index 4f3e1a661a..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_sql_dialect.go +++ /dev/null @@ -1,20 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// SqlDialect : The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. We support the following dialect: ansi, hive. -type SqlDialect string - -// List of SqlDialect -const ( - SqlDialectUNDEFINED SqlDialect = "UNDEFINED" - SqlDialectANSI SqlDialect = "ANSI" - SqlDialectHIVE SqlDialect = "HIVE" - SqlDialectOTHER SqlDialect = "OTHER" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go deleted file mode 100644 index ef02a51df2..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_structured_dataset_type_dataset_column.go +++ /dev/null @@ -1,17 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type StructuredDatasetTypeDatasetColumn struct { - // A unique name within the schema type for the column. - Name string `json:"name,omitempty"` - // The column type. - LiteralType *CoreLiteralType `json:"literal_type,omitempty"` -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go deleted file mode 100644 index efff48b058..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_execution_metadata_instance_class.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// TaskExecutionMetadataInstanceClass : Includes the broad category of machine used for this specific task execution. - DEFAULT: The default instance class configured for the flyte application platform. - INTERRUPTIBLE: The instance class configured for interruptible tasks. -type TaskExecutionMetadataInstanceClass string - -// List of TaskExecutionMetadataInstanceClass -const ( - TaskExecutionMetadataInstanceClassDEFAULT_ TaskExecutionMetadataInstanceClass = "DEFAULT" - TaskExecutionMetadataInstanceClassINTERRUPTIBLE TaskExecutionMetadataInstanceClass = "INTERRUPTIBLE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go deleted file mode 100644 index 46eab08cba..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_task_log_message_format.go +++ /dev/null @@ -1,19 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -type TaskLogMessageFormat string - -// List of TaskLogMessageFormat -const ( - TaskLogMessageFormatUNKNOWN TaskLogMessageFormat = "UNKNOWN" - TaskLogMessageFormatCSV TaskLogMessageFormat = "CSV" - TaskLogMessageFormatJSON TaskLogMessageFormat = "JSON" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go deleted file mode 100644 index 81379f25c6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/model_workflow_metadata_on_failure_policy.go +++ /dev/null @@ -1,18 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin -// WorkflowMetadataOnFailurePolicy : - FAIL_IMMEDIATELY: FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically abort all currently running nodes and clean up resources before finally marking the workflow executions as failed. - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. Other nodes that will be executed to completion before cleaning up resources and marking the workflow execution as failed. -type WorkflowMetadataOnFailurePolicy string - -// List of WorkflowMetadataOnFailurePolicy -const ( - WorkflowMetadataOnFailurePolicyIMMEDIATELY WorkflowMetadataOnFailurePolicy = "FAIL_IMMEDIATELY" - WorkflowMetadataOnFailurePolicyAFTER_EXECUTABLE_NODES_COMPLETE WorkflowMetadataOnFailurePolicy = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go b/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go deleted file mode 100644 index d8bc6fdc65..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/flyteadmin/response.go +++ /dev/null @@ -1,43 +0,0 @@ -/* - * flyteidl/service/admin.proto - * - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * API version: version not set - * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) - */ - -package flyteadmin - -import ( - "net/http" -) - -type APIResponse struct { - *http.Response `json:"-"` - Message string `json:"message,omitempty"` - // Operation is the name of the swagger operation. - Operation string `json:"operation,omitempty"` - // RequestURL is the request URL. This value is always available, even if the - // embedded *http.Response is nil. - RequestURL string `json:"url,omitempty"` - // Method is the HTTP method used for the request. This value is always - // available, even if the embedded *http.Response is nil. - Method string `json:"method,omitempty"` - // Payload holds the contents of the response body (which may be nil or empty). - // This is provided here as the raw response.Body() reader will have already - // been drained. - Payload []byte `json:"-"` -} - -func NewAPIResponse(r *http.Response) *APIResponse { - - response := &APIResponse{Response: r} - return response -} - -func NewAPIResponseWithError(errorMessage string) *APIResponse { - - response := &APIResponse{Message: errorMessage} - return response -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go deleted file mode 100644 index e99fbf81ef..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.go +++ /dev/null @@ -1,280 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/identity.proto - -package service - -import ( - context "context" - fmt "fmt" - proto "github.com/golang/protobuf/proto" - _struct "github.com/golang/protobuf/ptypes/struct" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -type UserInfoRequest struct { - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserInfoRequest) Reset() { *m = UserInfoRequest{} } -func (m *UserInfoRequest) String() string { return proto.CompactTextString(m) } -func (*UserInfoRequest) ProtoMessage() {} -func (*UserInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_0c3f20efbeb1b3f8, []int{0} -} - -func (m *UserInfoRequest) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserInfoRequest.Unmarshal(m, b) -} -func (m *UserInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserInfoRequest.Marshal(b, m, deterministic) -} -func (m *UserInfoRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserInfoRequest.Merge(m, src) -} -func (m *UserInfoRequest) XXX_Size() int { - return xxx_messageInfo_UserInfoRequest.Size(m) -} -func (m *UserInfoRequest) XXX_DiscardUnknown() { - xxx_messageInfo_UserInfoRequest.DiscardUnknown(m) -} - -var xxx_messageInfo_UserInfoRequest proto.InternalMessageInfo - -// See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information. -type UserInfoResponse struct { - // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed - // by the Client. - Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"` - // Full name - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - // Shorthand name by which the End-User wishes to be referred to - PreferredUsername string `protobuf:"bytes,3,opt,name=preferred_username,json=preferredUsername,proto3" json:"preferred_username,omitempty"` - // Given name(s) or first name(s) - GivenName string `protobuf:"bytes,4,opt,name=given_name,json=givenName,proto3" json:"given_name,omitempty"` - // Surname(s) or last name(s) - FamilyName string `protobuf:"bytes,5,opt,name=family_name,json=familyName,proto3" json:"family_name,omitempty"` - // Preferred e-mail address - Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` - // Profile picture URL - Picture string `protobuf:"bytes,7,opt,name=picture,proto3" json:"picture,omitempty"` - // Additional claims - AdditionalClaims *_struct.Struct `protobuf:"bytes,8,opt,name=additional_claims,json=additionalClaims,proto3" json:"additional_claims,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *UserInfoResponse) Reset() { *m = UserInfoResponse{} } -func (m *UserInfoResponse) String() string { return proto.CompactTextString(m) } -func (*UserInfoResponse) ProtoMessage() {} -func (*UserInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_0c3f20efbeb1b3f8, []int{1} -} - -func (m *UserInfoResponse) XXX_Unmarshal(b []byte) error { - return xxx_messageInfo_UserInfoResponse.Unmarshal(m, b) -} -func (m *UserInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - return xxx_messageInfo_UserInfoResponse.Marshal(b, m, deterministic) -} -func (m *UserInfoResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UserInfoResponse.Merge(m, src) -} -func (m *UserInfoResponse) XXX_Size() int { - return xxx_messageInfo_UserInfoResponse.Size(m) -} -func (m *UserInfoResponse) XXX_DiscardUnknown() { - xxx_messageInfo_UserInfoResponse.DiscardUnknown(m) -} - -var xxx_messageInfo_UserInfoResponse proto.InternalMessageInfo - -func (m *UserInfoResponse) GetSubject() string { - if m != nil { - return m.Subject - } - return "" -} - -func (m *UserInfoResponse) GetName() string { - if m != nil { - return m.Name - } - return "" -} - -func (m *UserInfoResponse) GetPreferredUsername() string { - if m != nil { - return m.PreferredUsername - } - return "" -} - -func (m *UserInfoResponse) GetGivenName() string { - if m != nil { - return m.GivenName - } - return "" -} - -func (m *UserInfoResponse) GetFamilyName() string { - if m != nil { - return m.FamilyName - } - return "" -} - -func (m *UserInfoResponse) GetEmail() string { - if m != nil { - return m.Email - } - return "" -} - -func (m *UserInfoResponse) GetPicture() string { - if m != nil { - return m.Picture - } - return "" -} - -func (m *UserInfoResponse) GetAdditionalClaims() *_struct.Struct { - if m != nil { - return m.AdditionalClaims - } - return nil -} - -func init() { - proto.RegisterType((*UserInfoRequest)(nil), "flyteidl.service.UserInfoRequest") - proto.RegisterType((*UserInfoResponse)(nil), "flyteidl.service.UserInfoResponse") -} - -func init() { proto.RegisterFile("flyteidl/service/identity.proto", fileDescriptor_0c3f20efbeb1b3f8) } - -var fileDescriptor_0c3f20efbeb1b3f8 = []byte{ - // 374 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xbf, 0x6e, 0xea, 0x30, - 0x14, 0x87, 0xc5, 0x7f, 0x30, 0x03, 0x60, 0x5d, 0xe9, 0x46, 0xa8, 0x15, 0x34, 0x13, 0x0b, 0xb6, - 0x44, 0xe7, 0xaa, 0x52, 0xdb, 0x85, 0xa5, 0x03, 0x88, 0xa5, 0x43, 0x91, 0x93, 0x9c, 0xa4, 0xae, - 0x12, 0x3b, 0xd8, 0x0e, 0x12, 0x6b, 0x5f, 0xa1, 0xcf, 0xd0, 0x27, 0xea, 0x2b, 0xf4, 0x41, 0x2a, - 0xec, 0x04, 0x24, 0x86, 0x6e, 0x3e, 0xe7, 0xfb, 0x8e, 0x64, 0xff, 0x8e, 0xd1, 0x24, 0x4e, 0x0f, - 0x06, 0x78, 0x94, 0x52, 0x0d, 0x6a, 0xcf, 0x43, 0xa0, 0x3c, 0x02, 0x61, 0xb8, 0x39, 0x90, 0x5c, - 0x49, 0x23, 0xf1, 0xb0, 0x12, 0x48, 0x29, 0x8c, 0xaf, 0x12, 0x29, 0x93, 0x14, 0x28, 0xcb, 0x39, - 0x65, 0x42, 0x48, 0xc3, 0x0c, 0x97, 0x42, 0x3b, 0xff, 0x44, 0x6d, 0x15, 0x14, 0x31, 0xd5, 0x46, - 0x15, 0xa1, 0x71, 0xd4, 0x1f, 0xa1, 0xc1, 0x46, 0x83, 0x5a, 0x8a, 0x58, 0xae, 0x60, 0x57, 0x80, - 0x36, 0xfe, 0x57, 0x1d, 0x0d, 0xcf, 0x3d, 0x9d, 0x4b, 0xa1, 0x01, 0x7b, 0xa8, 0xa3, 0x8b, 0xe0, - 0x1d, 0x42, 0xe3, 0xd5, 0xa6, 0xb5, 0x59, 0x6f, 0x55, 0x95, 0x18, 0xa3, 0xa6, 0x60, 0x19, 0x78, - 0x75, 0xdb, 0xb6, 0x67, 0x3c, 0x47, 0x38, 0x57, 0x10, 0x83, 0x52, 0x10, 0x6d, 0x0b, 0x0d, 0xca, - 0x1a, 0x0d, 0x6b, 0x8c, 0x4e, 0x64, 0x53, 0x02, 0x7c, 0x8d, 0x50, 0xc2, 0xf7, 0x20, 0xb6, 0x56, - 0x6b, 0x5a, 0xad, 0x67, 0x3b, 0xcf, 0x47, 0x3c, 0x41, 0xfd, 0x98, 0x65, 0x3c, 0x3d, 0x38, 0xde, - 0xb2, 0x1c, 0xb9, 0x96, 0x15, 0xfe, 0xa1, 0x16, 0x64, 0x8c, 0xa7, 0x5e, 0xdb, 0x22, 0x57, 0x1c, - 0xaf, 0x9c, 0xf3, 0xd0, 0x14, 0x0a, 0xbc, 0x8e, 0xbb, 0x72, 0x59, 0xe2, 0x27, 0x34, 0x62, 0x51, - 0xc4, 0x8f, 0x29, 0xb1, 0x74, 0x1b, 0xa6, 0x8c, 0x67, 0xda, 0xeb, 0x4e, 0x6b, 0xb3, 0xfe, 0xe2, - 0x3f, 0x71, 0x71, 0x91, 0x2a, 0x2e, 0xb2, 0xb6, 0x71, 0xad, 0x86, 0xe7, 0x89, 0x47, 0x3b, 0xb0, - 0xd8, 0xa1, 0xc1, 0xb2, 0x5c, 0xcd, 0xda, 0x6d, 0x02, 0xbf, 0xa2, 0x6e, 0x95, 0x1c, 0xbe, 0x21, - 0x97, 0x8b, 0x22, 0x17, 0x49, 0x8f, 0xfd, 0xbf, 0x14, 0x17, 0xbc, 0xdf, 0xff, 0xf8, 0xfe, 0xf9, - 0xac, 0xb7, 0x70, 0x83, 0x66, 0xf0, 0x70, 0xff, 0x72, 0x97, 0x70, 0xf3, 0x56, 0x04, 0x24, 0x94, - 0x19, 0xb5, 0xc3, 0x52, 0x25, 0xee, 0x40, 0x4f, 0x1f, 0x27, 0x01, 0x41, 0xf3, 0x60, 0x9e, 0x48, - 0x7a, 0xf9, 0x97, 0x82, 0xb6, 0x7d, 0xd6, 0xed, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfa, 0xf1, - 0xd4, 0xeb, 0x66, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// IdentityServiceClient is the client API for IdentityService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type IdentityServiceClient interface { - // Retrieves user information about the currently logged in user. - UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) -} - -type identityServiceClient struct { - cc *grpc.ClientConn -} - -func NewIdentityServiceClient(cc *grpc.ClientConn) IdentityServiceClient { - return &identityServiceClient{cc} -} - -func (c *identityServiceClient) UserInfo(ctx context.Context, in *UserInfoRequest, opts ...grpc.CallOption) (*UserInfoResponse, error) { - out := new(UserInfoResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.IdentityService/UserInfo", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// IdentityServiceServer is the server API for IdentityService service. -type IdentityServiceServer interface { - // Retrieves user information about the currently logged in user. - UserInfo(context.Context, *UserInfoRequest) (*UserInfoResponse, error) -} - -// UnimplementedIdentityServiceServer can be embedded to have forward compatible implementations. -type UnimplementedIdentityServiceServer struct { -} - -func (*UnimplementedIdentityServiceServer) UserInfo(ctx context.Context, req *UserInfoRequest) (*UserInfoResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method UserInfo not implemented") -} - -func RegisterIdentityServiceServer(s *grpc.Server, srv IdentityServiceServer) { - s.RegisterService(&_IdentityService_serviceDesc, srv) -} - -func _IdentityService_UserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(UserInfoRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(IdentityServiceServer).UserInfo(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.IdentityService/UserInfo", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(IdentityServiceServer).UserInfo(ctx, req.(*UserInfoRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _IdentityService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.IdentityService", - HandlerType: (*IdentityServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "UserInfo", - Handler: _IdentityService_UserInfo_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/identity.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go deleted file mode 100644 index d3ad8ae43f..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/identity.pb.gw.go +++ /dev/null @@ -1,107 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/identity.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -func request_IdentityService_UserInfo_0(ctx context.Context, marshaler runtime.Marshaler, client IdentityServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq UserInfoRequest - var metadata runtime.ServerMetadata - - msg, err := client.UserInfo(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterIdentityServiceHandlerFromEndpoint is same as RegisterIdentityServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterIdentityServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterIdentityServiceHandler(ctx, mux, conn) -} - -// RegisterIdentityServiceHandler registers the http handlers for service IdentityService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterIdentityServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterIdentityServiceHandlerClient(ctx, mux, NewIdentityServiceClient(conn)) -} - -// RegisterIdentityServiceHandlerClient registers the http handlers for service IdentityService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IdentityServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IdentityServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "IdentityServiceClient" to call the correct interceptors. -func RegisterIdentityServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IdentityServiceClient) error { - - mux.Handle("GET", pattern_IdentityService_UserInfo_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_IdentityService_UserInfo_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_IdentityService_UserInfo_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_IdentityService_UserInfo_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0}, []string{"me"}, "")) -) - -var ( - forward_IdentityService_UserInfo_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json deleted file mode 100644 index 62cfc9e104..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/identity.swagger.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/identity.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/me": { - "get": { - "summary": "Retrieves user information about the currently logged in user.", - "operationId": "UserInfo", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/serviceUserInfoResponse" - } - } - }, - "tags": [ - "IdentityService" - ] - } - } - }, - "definitions": { - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - }, - "serviceUserInfoResponse": { - "type": "object", - "properties": { - "subject": { - "type": "string", - "description": "Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed\nby the Client." - }, - "name": { - "type": "string", - "title": "Full name" - }, - "preferred_username": { - "type": "string", - "title": "Shorthand name by which the End-User wishes to be referred to" - }, - "given_name": { - "type": "string", - "title": "Given name(s) or first name(s)" - }, - "family_name": { - "type": "string", - "title": "Surname(s) or last name(s)" - }, - "email": { - "type": "string", - "title": "Preferred e-mail address" - }, - "picture": { - "type": "string", - "title": "Profile picture URL" - }, - "additional_claims": { - "$ref": "#/definitions/protobufStruct", - "title": "Additional claims" - } - }, - "description": "See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information." - } - } -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/openapi.go b/flyteidl/gen/pb-go/flyteidl/service/openapi.go deleted file mode 100644 index 84081d9498..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/openapi.go +++ /dev/null @@ -1,245 +0,0 @@ -// Code generated by go-bindata. (@generated) DO NOT EDIT. - - //Package service generated by go-bindata.// sources: -// ../service/admin.swagger.json -package service - -import ( - "bytes" - "compress/gzip" - "fmt" - "io" - "io/ioutil" - "os" - "path/filepath" - "strings" - "time" -) - -func bindataRead(data []byte, name string) ([]byte, error) { - gz, err := gzip.NewReader(bytes.NewBuffer(data)) - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - - var buf bytes.Buffer - _, err = io.Copy(&buf, gz) - clErr := gz.Close() - - if err != nil { - return nil, fmt.Errorf("read %q: %v", name, err) - } - if clErr != nil { - return nil, err - } - - return buf.Bytes(), nil -} - -type asset struct { - bytes []byte - info os.FileInfo -} - -type bindataFileInfo struct { - name string - size int64 - mode os.FileMode - modTime time.Time -} - -// Name return file name -func (fi bindataFileInfo) Name() string { - return fi.name -} - -// Size return file size -func (fi bindataFileInfo) Size() int64 { - return fi.size -} - -// Mode return file mode -func (fi bindataFileInfo) Mode() os.FileMode { - return fi.mode -} - -// ModTime return file modify time -func (fi bindataFileInfo) ModTime() time.Time { - return fi.modTime -} - -// IsDir return file whether a directory -func (fi bindataFileInfo) IsDir() bool { - return fi.mode&os.ModeDir != 0 -} - -// Sys return file is sys mode -func (fi bindataFileInfo) Sys() interface{} { - return nil -} - -var _adminSwaggerJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xfd\x7b\x73\xeb\xb8\x95\x2f\x0c\xff\x3f\x9f\x02\x67\xcf\xa9\xea\xee\x44\xb6\x3b\xc9\x4c\xde\x94\xa7\x4e\xbd\x8f\xda\xd6\xde\xad\xd3\xbe\xc5\x97\xee\xe9\x67\x94\x52\x43\x24\x24\x21\x26\x01\x06\x00\xed\xad\x4e\xe5\xbb\x3f\x85\x85\x0b\x41\x8a\x94\xa8\x8b\x6d\x79\x37\x67\xaa\xd2\xde\x22\x89\xeb\xc2\xc2\xba\xfe\xd6\x3f\xff\x0d\xa1\x0f\xf2\x19\xcf\x66\x44\x7c\x38\x45\x1f\xfe\x78\xfc\xed\x87\x9e\xfe\x8d\xb2\x29\xff\x70\x8a\xf4\x73\x84\x3e\x28\xaa\x12\xa2\x9f\x4f\x93\x85\x22\x34\x4e\x4e\x24\x11\x4f\x34\x22\x27\x38\x4e\x29\x3b\xce\x04\x57\x1c\x3e\x44\xe8\xc3\x13\x11\x92\x72\xa6\x5f\xb7\x7f\x22\xc6\x15\x92\x44\x7d\xf8\x37\x84\xfe\x05\xcd\xcb\x68\x4e\x52\x22\x3f\x9c\xa2\xff\x31\x1f\xcd\x95\xca\x5c\x03\xfa\x6f\xa9\xdf\xfd\x1b\xbc\x1b\x71\x26\xf3\xd2\xcb\x38\xcb\x12\x1a\x61\x45\x39\x3b\xf9\xbb\xe4\xac\x78\x37\x13\x3c\xce\xa3\x96\xef\x62\x35\x97\xc5\x1c\x4f\x70\x46\x4f\x9e\xfe\x70\x82\x23\x45\x9f\xc8\x38\xc1\x39\x8b\xe6\xe3\x2c\xc1\x4c\x9e\xfc\x93\xc6\x7a\x8e\x7f\x27\x91\xfa\x17\xfc\x23\xe6\x29\xa6\xcc\xfc\xcd\x70\x4a\xfe\xe5\xdb\x41\xe8\xc3\x8c\xa8\xe0\x9f\x7a\xb6\x79\x9a\x62\xb1\xd0\x2b\xf2\x91\xa8\x68\x8e\xd4\x9c\x20\xd3\x0f\x72\x4b\xc4\xa7\x08\xa3\x53\x41\xa6\xa7\xbf\x08\x32\x1d\xbb\x85\x3e\x36\x0b\x7c\x01\xa3\xb9\x49\x30\xfb\xe5\xd8\x2e\x13\xb4\xcc\x33\x22\x60\x6e\xc3\x58\xb7\xfe\x89\xa8\x3e\x34\x5b\xbc\x1f\xbe\x2d\x88\xcc\x38\x93\x44\x96\x86\x87\xd0\x87\x3f\x7e\xfb\x6d\xe5\x27\x84\x3e\xc4\x44\x46\x82\x66\xca\xee\x65\x1f\xc9\x3c\x8a\x88\x94\xd3\x3c\x41\xae\xa5\x70\x30\x66\xaa\x7a\x63\xf1\x52\x63\x08\x7d\xf8\xdf\x82\x4c\x75\x3b\xff\x7e\x12\x93\x29\x65\x54\xb7\x2b\x0d\xfd\x04\xa3\x2d\x7d\xf5\xaf\x7f\xab\xfb\xfb\x5f\xc1\x8c\x32\x2c\x70\x4a\x14\x11\xc5\x8e\x9b\xff\xab\xcc\x45\xef\x91\xee\xbc\xd8\xc7\xea\xc0\x2b\xb3\xbd\xc2\x29\xd1\x7b\xa2\x77\xca\x7e\x01\x7f\x0b\x22\x79\x2e\x22\x82\x26\x24\xe1\x6c\x26\x91\xe2\x4b\x6b\x40\xa1\x05\x4d\x5e\xd5\x27\x82\xfc\x23\xa7\x82\xe8\xbd\x52\x22\x27\x95\xa7\x6a\x91\xc1\x20\xa5\x12\x94\xcd\xc2\xa5\xf8\x57\xaf\xd5\xd4\x0c\x55\x6e\x30\x33\xf3\x41\xe3\xc4\x46\xac\xef\x5e\x89\x30\x43\x13\x82\xf4\x59\xa4\x31\x11\x24\x46\x58\x22\x8c\x64\x3e\x91\x44\xa1\x67\xaa\xe6\x94\xe9\x7f\x67\x24\xa2\x53\x1a\xb9\x35\x3b\x9c\xb5\x81\x3f\x57\xaf\xcc\x83\x24\x42\x0f\xfc\x89\xc6\x24\x46\x4f\x38\xc9\x09\x9a\x72\x51\x5a\x9e\xe3\x11\xbb\x9f\xeb\x75\x48\x27\x94\xc1\xc9\xd3\x6b\xe9\x28\xe4\xf7\x6e\xb9\x7e\x8f\x74\x7f\x28\x67\xf4\x1f\x39\x49\x16\x88\xc6\x84\x29\x3a\xa5\x44\x56\x5b\xfb\x3d\x87\xfe\x71\x82\x8e\x90\x5e\x67\x22\x14\xac\x37\x67\x8a\x7c\x56\x12\x1d\xa1\x84\x3e\x12\xf4\xd5\x05\x95\x0a\xf5\x6f\x86\x5f\xf5\xd0\x57\xe6\xbc\x20\xe0\x4d\x5f\xbd\xc2\x0a\xfb\xbf\xff\x16\x1c\x3d\x85\x67\xd5\x43\xf7\xa1\xaf\x4f\xf3\x9d\xb9\x1a\x8a\x16\xfe\xf6\x6f\x61\x3b\x76\xbf\x56\xf3\xdb\x82\xd9\x5a\x4e\xdb\x96\xbf\xc2\x32\x95\x59\xab\xd4\x3b\xb4\x2b\x67\xd5\xed\x56\x59\xab\x7c\x5f\xbc\x55\x4f\xe1\xa5\xf9\xeb\x2e\xcc\x15\x2b\xa0\x7a\x4c\x99\x39\x24\xfe\xcc\x08\xa9\xcf\x89\xa3\xde\x03\x61\x29\xbb\xf0\xda\x60\x66\x01\xbb\x75\x5c\x34\x58\x95\x03\x9c\x77\x42\x53\xba\x6e\x7f\x87\x2c\xd6\x22\x97\x65\x76\x2c\x4f\x27\x44\xe8\x65\x70\x6c\x0f\x66\x3b\xd1\x6c\x50\xe5\x82\x91\xb8\xc5\x34\xff\x91\x13\xb1\x58\x31\xcf\x29\x4e\x64\xd3\x44\x29\x53\x44\xcb\xb7\x95\xc7\x53\x2e\x52\xac\xec\x0b\x7f\xfe\x8f\x4d\x17\x42\xf1\x47\xb2\x6e\xff\x87\x66\x37\x23\x2c\x81\x0c\xd2\x3c\x51\x34\x4b\x08\xca\xf0\x8c\x48\xbb\x22\x79\xa2\x64\x0f\x5e\xd3\x32\x35\x11\x47\xfe\x06\x82\x1e\xdc\xcd\x9b\x4b\xf8\x05\x4d\xbd\x00\xc9\xc8\x67\x05\x2d\x8d\x18\xdc\xbd\xb0\x44\xe1\x8d\xf2\x02\x4b\xb9\x1d\xcd\x48\x2e\xd4\x78\xb2\x38\x7e\x24\x4b\xfd\x36\x52\x0e\x66\x08\x2b\x25\xe8\x24\x57\x44\xcf\x5b\xb7\xe1\xee\x4e\x60\x8f\xe6\x82\x6e\xc3\x1a\xde\x6e\xc2\x31\x15\x24\x82\xb9\x6d\x72\x60\xfc\x57\x7a\xde\x5a\x7f\x59\x98\xd9\x3f\x92\x05\xc8\x23\x35\x2b\xe0\xb7\x7c\xc4\x46\x0c\x1d\xa1\xf3\xc1\xdd\xd9\xe0\xea\x7c\x78\xf5\xe9\x14\x7d\xb7\x40\x31\x99\xe2\x3c\x51\x3d\x34\xa5\x24\x89\x25\xc2\x82\x40\x93\x24\xd6\x32\x87\x1e\x0c\x61\x31\x65\x33\xc4\x45\x4c\xc4\xcb\x2d\x63\xe5\x29\x61\x79\x5a\xb9\x57\xe0\xf7\x62\xf4\x95\x2f\xb4\x88\xe1\x1f\x95\x9e\xfc\x6d\x69\x81\x61\xc6\xba\xef\xa0\xb5\x57\x13\x6a\xa2\x39\x4d\x62\x41\xd8\x89\xc2\xf2\x71\x4c\x3e\x93\x28\x37\x77\xf2\x3f\xcb\x3f\x8c\xb5\x64\xca\x63\x52\xfe\xa5\xf4\x8f\x42\x14\xda\xf8\x53\xaf\xa5\x6e\xfc\x25\xe8\xb4\xed\xbe\x83\x5f\x68\x5c\xfb\x36\xfc\xb2\x66\x0e\xee\x9d\x15\x83\x75\xaf\x34\x8e\xca\xbd\x60\x25\xbe\xda\x77\x04\x51\x62\x31\xc6\x4a\x91\x34\x53\x1b\xea\xeb\x18\x25\x5a\xae\x5c\x25\x47\x5e\xf1\x98\x0c\x5c\x7f\xbf\x20\x23\xce\x92\x18\x4d\x16\x96\x6b\x4d\x89\x20\x2c\x22\xcd\x2d\xdc\x63\xf9\x58\xb4\xb0\x4e\x18\x2d\xf5\x27\x3f\x72\xa1\x3f\x7f\x0f\x02\x69\x69\xe0\xaf\x21\x93\x6e\x7b\xe2\xbe\x38\x0b\xc1\x96\xfc\xa3\xb3\x27\xec\xbe\x92\x6d\xad\x0f\x5c\x20\xb9\x90\x8a\xa4\x6b\xed\x10\xef\x67\x21\xec\x05\x71\xa8\x03\xae\xdc\x51\xbf\x81\x53\x5f\xbe\x71\xbb\xe3\xbd\xc1\x92\xed\xcb\x8a\x78\xe8\xf3\x74\x3e\x9c\xd5\x53\xbd\x73\xdb\x17\x38\x31\xde\xc5\x34\x4b\xb2\xe0\xbe\x07\xf9\x42\xe6\x86\xc6\xbd\x72\xab\x3d\x86\x01\xac\x51\x34\xcb\x76\x68\x7f\xfe\xf4\xa7\xa1\x85\xc6\x98\xe3\xd4\x9c\xca\xc0\x58\x85\x22\x2e\x8c\x2c\x18\xdb\xf3\x6e\x74\xcd\xfe\x7d\xff\x6e\x70\x7f\x8a\xfa\x28\xc6\x0a\xeb\x03\x2e\x48\x26\x88\x24\x4c\x81\x1e\xaf\xbf\x57\x0b\x94\xf2\x98\x24\x46\xe3\xfc\xa8\x25\x5f\x74\x8e\x15\x3e\xc3\x0a\x27\x7c\x76\x8c\xfa\xf0\x4f\xfd\x31\x95\x08\x27\x92\x23\xec\xc8\x8a\xc4\xae\x09\xcc\x62\xc7\x5a\x30\x8a\x78\x9a\xd1\xc4\xdb\xe0\xbd\x71\x85\xb2\x98\x3e\xd1\x38\xc7\x09\xe2\x13\xcd\x55\xb4\x86\x3c\x78\x22\x4c\xe5\x38\x49\x16\x08\x27\x09\xb2\xdd\xba\x17\x90\x9c\xf3\x3c\x89\x75\xbb\x6e\x94\x92\xa6\x34\xc1\x42\xab\xe0\x66\xb4\xd7\xb6\x2d\x74\x3f\x27\x7e\xac\x30\x2e\xbd\x9a\x29\x7e\x24\x12\x51\x85\x32\x2e\x25\x9d\x24\xc5\x99\x7f\x18\x22\x18\xf7\xd9\xc5\x10\xf4\xf9\x48\x21\x6e\x78\xa8\xeb\xdc\xda\x6f\x5c\x8f\x29\x66\x8c\x40\xc7\x5c\xcd\x89\xb0\xdd\xdb\x97\xdf\x5a\x35\x7f\xb8\xba\xbb\x19\x9c\x0d\x3f\x0e\x07\xe7\xcb\xba\xf9\x7d\xff\xee\x87\xe5\x5f\x7f\xba\xbe\xfd\xe1\xe3\xc5\xf5\x4f\xcb\x4f\x2e\xfa\x0f\x57\x67\xdf\x8f\x6f\x2e\xfa\x57\xcb\x0f\x2d\x59\xb5\x56\xf3\xc3\x91\x6d\x78\xb6\x3a\x9b\xe6\x4b\xd9\x34\x7b\x5f\xae\x51\x73\x4a\x13\xd0\x41\x5b\x1b\x34\xbd\x0d\xc1\x7e\x89\x32\x2c\xa5\x91\x8c\xcc\x08\x8e\x47\xec\x92\x0b\xcd\xc0\xa6\x5c\xf3\x08\x2d\x3d\x29\x91\x47\x8a\xb2\x99\xff\xe8\x14\x8d\xf2\x6f\xbf\xfd\x53\x74\x41\xd9\x23\xfc\x45\x0e\x71\x71\x3a\x8b\x6f\x67\xf1\xfd\x6d\x59\x7c\xb5\xe8\x73\x12\x1a\x7a\xf7\x1b\x32\xa4\x85\x0b\x96\xe5\x0a\x44\x09\x9e\x2b\xfd\xa7\xee\x12\xc8\x63\x45\xe0\x50\x3b\x83\xe2\x27\xa2\xfc\x8b\x5a\xb4\x79\x0f\x76\xc4\x9f\xb8\x78\x9c\x26\xfc\xd9\x0f\xfc\x13\x51\x7a\xec\xb7\xb6\x97\x2e\x94\xa8\x0b\x25\x7a\xdb\x50\xa2\x83\x32\xe6\xbd\x3c\xf3\x2b\x5b\xfe\x0c\x07\x6c\xf0\x64\x35\x3a\xaa\x1a\xfc\x50\x81\x9b\xe9\x55\xb8\x66\xd9\x99\xb3\x86\x73\x96\x5e\x7e\x2f\xdc\xb3\x34\xe8\xd7\xe7\x9c\xbf\x09\x7f\x4b\xe7\x4e\xd9\x72\xa1\xde\x25\x83\x6d\x79\x77\xbc\x9a\x33\xe4\xe5\x19\xfe\x52\x6c\xc3\x26\xc1\x0c\x1b\x44\x2f\xb4\x0e\x57\x58\x13\x9f\x50\x1b\x90\x50\x17\x81\xb0\x1c\x72\x50\x1b\x63\xb0\x5b\x50\xc1\xb6\x77\x53\xfb\x30\x81\x4f\x44\x95\x5e\x7e\x2f\x77\x53\x69\xd0\xaf\x7f\x37\xfd\x46\xa3\x03\xba\x70\x80\x17\x5c\xba\x2f\xfd\x46\x3b\x5c\x87\xff\x6f\xc0\xc3\xdf\xb9\xf4\x37\x5a\xa3\x2f\xcb\x87\xff\xa5\x3a\xed\xdf\xa7\x97\xbe\x73\xcb\x77\x6e\xf9\xb7\xf0\x9f\xbc\x3f\xb7\xfc\xcb\xaa\xa7\xc5\xf1\x1a\x3b\x5a\xb0\xfa\x5a\x70\x28\xff\xd5\xc2\x49\x03\x7f\x39\x95\x6f\xd3\xa0\xf1\x46\x1d\xee\xbc\x18\xdf\x00\x8e\xd0\x2f\x96\x90\xd6\xa8\x73\x4b\xdf\xbd\x07\x75\x6e\x79\xd0\x2f\xaf\xc3\xbd\x19\xf3\x7d\xa1\xcb\xf3\x9d\xb0\x81\xcd\x6f\xcb\x2f\x58\x26\xef\x64\xf1\x97\xcf\xc6\x3f\x98\x09\xbd\x1f\xd9\xfb\x0d\x2e\xde\x96\xb7\xee\xde\x73\xb2\x6a\xae\xd9\xe0\x76\x5a\x97\x61\x55\xfd\x9a\x12\xf9\xc7\x77\x79\xdf\xbe\x46\x92\x55\x77\xe1\x76\x17\xae\x6d\xaa\xbb\x70\xbf\xe0\x0b\xf7\xe0\xe0\x6f\x0e\x26\x02\xb4\x0b\x22\xef\x80\x31\xba\x18\xf2\x3d\x2e\x4e\x17\x43\xde\xc5\x90\xff\xc6\x62\xc8\x77\xd1\x9e\xb6\xc5\xa2\x7c\x0b\x3d\xaa\x53\xa3\x3a\x35\x2a\xfc\xbd\x53\xa3\x3a\x35\xaa\x53\xa3\xbe\x70\x14\xd1\x4e\x87\x6a\xbf\x10\x9d\x0e\xd5\x7a\xa9\x3a\x1d\x6a\xc5\xe2\x74\x3a\x54\xa7\x43\xfd\xb6\x74\x28\xf2\x44\x98\x92\x90\x8c\x16\x6a\x14\x1f\x32\x2e\x9b\x35\xa1\x90\x3b\xd4\x68\x41\xd0\x66\x39\x29\x0c\x02\x97\x7e\x41\x73\x2c\x11\x8f\xa2\x5c\x54\xce\x40\x55\x0f\x3a\x13\x04\x2b\x02\x2d\xe8\x0f\xdf\x83\xfe\xb3\x3c\xdd\xd7\x8a\xc1\x9f\xf0\x78\x89\xda\xcd\x41\xa8\x7b\xb2\x5a\x1e\xd9\xdb\xd4\xff\x91\x93\x76\xea\xdf\x0b\x12\xb5\xc2\xf2\x71\xcf\x44\x5d\xca\xb5\xd8\x8a\xa8\xa1\x85\xf7\x42\xd4\xcb\xd3\xfd\xcd\x10\x75\xdd\xd4\x0f\x81\xa8\x9f\x6d\x1e\xff\x9e\x09\x7b\x09\x1e\x60\x2b\xe2\xf6\xad\xbc\x17\x02\xaf\x9f\xf6\x6f\x86\xc8\x9b\xa6\xff\xb6\x84\xee\x53\x24\x5b\x93\xf8\xbd\xa0\xb3\x99\x56\x33\x40\xc3\xd3\xa4\xb8\xbe\x46\x50\x91\x14\xb8\x96\xac\xfd\xab\xef\x81\xa4\xfd\x60\xcd\xd8\x7f\x33\xb4\xbc\x34\xef\x03\x21\xe2\x13\x41\x22\xfe\x04\xf5\xc2\xda\x11\xf3\x2d\x01\x0a\x06\x7e\x9d\x09\xf2\x44\x79\x2e\x93\xc5\x91\xc8\x19\x72\xcc\x1f\xf9\xe6\x8d\xb5\xfa\x99\x26\x09\xe2\x4c\xeb\x5f\x0a\x0b\xe5\x1e\x6b\xfd\x5b\xf0\x14\x4e\x45\x82\xa5\x42\x8f\x8c\x3f\x33\x34\xc5\x34\xc9\x05\x41\x19\xa7\x4c\x1d\x8f\xd8\x90\xa1\x5b\x33\x46\xc8\x1b\xe8\xa1\x5c\xea\xb3\x14\x61\xc6\xb8\x42\xd1\x1c\xb3\x19\x41\x98\x2d\x6c\x02\x6e\x41\x19\x88\x0b\x94\x67\x31\xd6\x8a\xef\x9c\x54\xa3\xf4\xfc\x18\xc1\x7c\x47\x25\xa2\x12\x91\xcf\x4a\x90\x94\x24\x0b\xdd\x87\xa6\x7d\xc5\x91\x5d\x1f\x33\x54\x9b\xce\x47\x84\xe0\x42\x42\xc6\xc1\x64\xf1\x2b\x66\x8a\x32\x82\x40\x51\x92\xc6\x34\x77\x84\x2e\xb8\x04\xb3\xcd\x0f\x7f\x91\x28\x4a\x72\xa9\x88\xe8\xa1\x49\x3e\x93\x5a\x53\xcc\x12\xac\xa6\x5c\xa4\x7a\x84\x94\x49\x85\x27\x34\xa1\x6a\xd1\x43\x29\x8e\xe6\xa6\x2d\x58\x03\xd9\x1b\xb1\x98\x3f\x33\xa9\x04\xc1\xbe\x77\xf7\x10\x7d\x1d\x3e\x33\x04\x20\xbf\xe9\x41\xda\x21\x4d\xb5\xba\x1b\x0c\xbf\xd8\x71\xb3\x27\xba\x11\x12\xa3\x09\x89\x70\x2e\xad\x87\x41\x89\x05\x22\x9f\xe7\x38\x97\xb0\x77\x7a\x7a\x36\x67\x23\xe2\x69\x96\x10\x45\x10\x9d\x22\x25\x28\x89\x11\x9e\x61\xaa\x97\xee\x8e\xac\x00\x41\xf7\x44\x6f\x37\xd0\x52\xfd\x2f\xa0\x7e\xa7\x5c\x10\x14\x13\x85\x69\xb2\xd2\xeb\x64\xbf\xed\xb8\xdc\x7b\xe2\x72\xe5\x0d\x3f\x08\x36\x67\x40\xfc\xf7\x70\x69\x33\x6b\xba\x8f\x70\xb2\xe3\xfd\x7d\x6b\x07\xd5\xd1\xf6\xfb\xa2\x6d\xb3\x6b\x87\x43\xdc\xaf\x16\x83\xdd\xbe\xa2\x45\x51\xcd\xe2\x5d\xd1\xf4\x6b\x84\x05\x74\x0e\xe7\xce\xe1\xdc\xb8\x32\xef\xd3\xe1\x7c\x30\x1e\xa3\xce\xe7\xfc\x42\x3e\x67\x2a\x3b\xa7\x73\xe7\x74\x6e\xbb\x40\x9d\xd3\xb9\x73\x3a\xbf\x5f\xa7\xf3\x4b\xe2\x3e\xef\x15\xdd\xf9\x5d\x89\xd6\x9d\x58\xdd\x89\xd5\x1d\x84\xb3\x9f\xda\xbe\x58\x98\xfb\xfa\x43\x4c\x12\xa2\x48\xb3\x3d\x8b\x88\x54\x6b\x0b\xe6\x7a\xa6\x4c\xcb\x71\x33\x41\xa4\xdc\x95\x21\xf9\x86\xdf\x27\x5b\xf2\xc3\xef\xa0\xe6\x3b\x3e\xd5\xf1\xa9\x6d\xa6\x76\x38\xa6\xd9\xe0\x30\xbf\x96\x6d\xd6\xf3\xdf\x2c\x6f\x96\xfe\x1e\x8c\x1b\xb2\xf0\x8b\x1a\x0a\xd7\x52\xbb\xe2\xfe\x70\x5b\x3a\xdf\x91\x1f\x9b\xbe\xde\x27\x33\x36\x63\xef\x38\x71\xc7\x89\x3b\x4e\xfc\xbe\x39\xb1\x3b\xc9\x6f\xea\x22\x33\x7e\xba\x71\x96\x60\x36\xa6\xb1\x3c\xf9\x67\xa1\xcb\xbf\x94\x87\x4c\x1f\xa8\xd8\xa4\x98\xfa\x94\x4e\xf1\x8b\xfe\x24\x29\x0c\xe6\x1e\x33\x73\x8d\x13\xcd\xd8\xd8\x6f\x12\xcc\x86\xf1\xbb\xf0\xa3\xd5\xce\xfe\x35\x7c\x6a\xbb\xf0\x71\xac\xc0\xd3\x81\x29\x33\x26\xbc\x22\xaf\xb6\x64\xa0\x3c\x8c\x13\xbe\x0b\x57\x0f\x26\x16\x30\x76\xc7\xaf\x83\x45\x39\xbc\x69\x77\x7e\x9d\x2e\x97\xb0\xf3\x5c\xb4\x9c\x70\xe7\xb9\x38\x5c\xcf\xc5\x5b\xb9\x23\x5f\xf9\x78\xbe\x96\x58\xd7\x3e\x08\xdf\x44\xab\x41\x50\x6b\x9e\x25\x1c\xc7\xab\x5c\x31\x85\xe0\x15\x82\xa3\xac\x8d\xc4\x2f\x3e\x7b\x0f\xc2\x5a\x31\xda\xdf\x58\x24\xdf\xf2\xc4\x0f\x45\x4b\x79\xc5\x50\xbe\x7a\x12\xdf\x40\x25\x79\x1f\xf8\xa9\xc5\x78\xbb\xd0\xbe\xce\xa2\xf4\xf6\x16\xa5\x2e\xb4\xaf\x53\x01\x0f\x4c\x05\xec\x42\xfb\xba\xd0\xbe\x4e\x41\x5e\x3d\xed\x4e\x41\xfe\x22\x42\xfb\x5a\x89\xda\x2f\x88\xbd\xb9\xbb\xd0\xdd\xc9\xdc\xee\xbd\x4e\xe6\xee\x64\xee\x2f\x54\xe6\x3e\x8c\x15\xee\x04\xee\x4e\xe0\xee\x04\xee\x4e\xe0\xee\x04\xee\xbd\x2f\x63\x27\x70\xbf\x66\x81\xce\x7a\xa9\x7b\x4d\x92\xcd\x7b\xf5\xe5\x74\xe2\x76\x27\x6e\x1f\xb6\xb8\x7d\x30\x13\x7a\x3f\x65\x1e\xdb\xcd\xa7\x2b\x52\xde\x15\x29\xef\x8a\x94\xbf\x78\x91\x72\xf7\x75\x8b\x8c\x0f\x7b\xb8\x14\x56\xb9\x34\x80\x8f\x82\xcc\xa8\x54\xc0\xfe\xdb\xc8\x2b\xeb\x13\x3d\xde\xab\x9c\xd2\xa5\x7a\xf8\xa7\x9d\xd4\xd2\x49\x2d\xbf\x51\xa9\xe5\x80\x62\xc1\x0e\x22\x63\x25\xc5\x2a\x9a\xe3\x49\x42\xc6\xde\xe8\x23\xdb\xea\xc1\x17\x54\x2a\x89\xa2\x5c\x2a\x9e\x36\x5f\x2e\x97\xae\x87\xbe\xef\xe0\x8c\xb3\x29\x9d\xe5\xe6\x6e\x31\xe0\x9c\xc1\x89\x2e\x24\xc1\x45\x46\xd6\x79\xaa\x6a\x5a\x7f\x17\xd7\x52\xfd\xd0\x5f\xeb\x76\xda\x44\x70\x2f\x8c\x7c\x56\xea\xd6\xb2\xd6\xf8\x76\x70\x77\xfd\x70\x7b\x36\x38\x45\xfd\x2c\x4b\xa8\xb1\xbb\x1b\x52\xa0\xbf\xea\x49\x21\x85\xe5\x63\xb1\x97\xc2\x90\xb9\xc1\xb0\x05\x43\xbf\x96\x8d\xd1\x11\x3a\xbb\x78\xb8\xbb\x1f\xdc\x36\x34\x68\x09\x05\xf2\x56\x49\x9a\x25\x58\x91\x18\x3d\xe6\x13\x22\x18\xd1\xd2\x8e\x45\xba\x2d\xcc\xff\xa6\xd1\xc1\x7f\x0f\xce\x1e\xee\x87\xd7\x57\xe3\xbf\x3e\x0c\x1e\x06\xa7\xc8\x51\x9c\x6e\x56\x8f\x4b\x8f\x22\x5e\x30\x9c\x6a\x0d\x44\xff\x50\x64\xca\xfe\x23\x27\x39\x41\x58\x4a\x3a\x63\x29\x01\x44\xe0\x52\x8b\x6e\xc0\x17\xfd\xef\x06\x17\xe5\x96\xe7\x24\x84\xdf\x45\x09\x9e\x90\xc4\xfa\x23\xc0\xc4\xae\x09\x3d\x80\x2a\x36\x8e\x8a\xdc\xac\xea\x5f\x1f\xfa\x17\xc3\xfb\x9f\xc7\xd7\x1f\xc7\x77\x83\xdb\x1f\x87\x67\x83\xb1\x95\x2a\xcf\xfa\xba\xdf\x52\x4f\x56\xf8\x44\xff\xc8\x71\xa2\xb5\x13\x3e\x75\x78\xbc\xe8\x79\x4e\x18\xca\x19\x50\x9c\x51\x79\xb4\x1e\xe4\x3b\xd5\xa7\xcc\xcc\xe8\xe6\xe2\xe1\xd3\xf0\x6a\x7c\xfd\xe3\xe0\xf6\x76\x78\x3e\x38\x45\x77\x24\x01\xa5\xc0\x2d\x3a\xec\x62\x96\xe4\x33\xca\x10\x4d\xb3\x84\xe8\xd5\xc0\x36\x9b\x78\x8e\x9f\x28\x17\xf6\xe8\xce\xe8\x13\x61\x66\x1d\xe1\xcc\x42\xfb\x4e\xf8\x1e\x07\x4b\x77\x7d\xf5\x71\xf8\xe9\x14\xf5\xe3\xd8\xcf\x41\x42\x1b\x25\xca\x71\xb0\xce\x47\xe5\x61\x6b\xe6\x00\xdd\x1b\x22\xe2\x4f\x44\x08\x1a\x93\x0a\x1d\xf5\xef\xee\x86\x9f\xae\x2e\x07\x57\xf7\xb0\x62\x4a\xf0\x44\xa2\x39\x7f\x06\x53\x36\xcc\x10\x2c\xdc\x4f\x98\x26\xd0\x99\xdb\x2c\xce\xd0\xf3\x9c\x82\xfb\x03\x80\x99\x7d\xcf\x46\x3f\x13\x39\x7b\x73\xeb\x6c\xe9\xe0\x2d\xab\x2d\xd5\x93\xb4\xfc\x46\xe5\x58\xac\x7a\xa1\x44\xe5\xcb\x2f\xae\xa3\xd6\xe5\x2f\x2a\xe4\xd6\xac\xac\x2d\xd1\x4b\xf3\x4c\x8b\xbd\x6e\xad\xab\x95\xd7\xf0\xf5\xae\x59\xa2\x04\x8d\xe4\xcb\x42\x3d\x89\x9c\x29\x9a\x12\x64\x3b\xb3\x87\x73\x8f\xf0\x4f\x97\xa6\xe1\xf7\x70\xc1\x2e\x95\x72\xf8\x44\x94\x1d\x7e\xa7\x02\x76\x2a\xe0\x61\xa8\x80\xef\x2d\xdb\x3f\x26\xd9\x72\x87\x95\x89\xc1\x3b\xc6\xeb\xb5\x14\xa4\x61\xec\x89\xd6\xa2\x9a\x90\x27\x92\x80\x94\xa7\x04\xd6\x4a\xa3\x95\x5d\x26\x82\xe0\x47\x2d\xf0\xc5\xfc\x39\x94\x5c\x6a\x90\xfb\xd1\x7e\x6e\xe1\x36\x41\x1c\x7f\xfa\xe3\xeb\x5d\x16\x7a\xb9\xe3\xd7\x28\xe1\x7d\x0b\x41\x32\x2b\x31\x02\x83\x04\xfb\x5f\xac\x25\x78\xcd\x6d\x11\x7c\xf1\x1e\x2e\x8a\x70\xb8\x07\xa4\x75\xdd\x86\x4a\xb0\x63\xa1\x29\x51\x38\xc6\x0a\xeb\x43\x33\x23\xea\x18\x5d\x33\x78\x76\x8f\xe5\x63\x0f\xb9\x2b\x4f\xb3\x95\xc2\xca\xf0\x0a\xa9\xf5\xef\xc4\x80\xbf\x39\x1f\xef\xae\xef\xee\xfa\xae\x5f\x99\x2e\xcc\xb3\x61\x85\xf7\x75\x31\x6e\xe4\xf3\xda\xdf\xfd\x65\x5a\x7c\xbf\x57\xd8\xeb\x3a\xb9\xf6\x7a\xa1\x99\xca\x59\xdd\x6d\x65\xfe\xaf\xbb\xad\xba\xdb\xaa\xbb\xad\x0e\x60\x85\xdf\xdc\x61\x58\xc3\xdd\xdf\xd4\x63\xb8\x4e\x3b\xdd\x1a\xf2\xae\xd0\x46\x37\x01\xbd\xfb\xa5\x2d\xb6\x5d\xf1\x0d\x7d\x1f\x3e\xc2\x60\x92\xaf\x91\xd6\xb6\xd7\xcb\xdc\xe4\x8b\x74\xfa\xe9\x0b\xde\xf8\x1d\x02\xe1\x5e\x11\x08\x0f\x63\xae\x2f\x92\x02\xf7\x36\x16\xd3\xb7\x4f\x7b\xeb\xa0\x06\xbb\xc4\xae\x2e\xb1\x0b\x7e\xef\xa0\x06\xf7\x47\xad\x2f\x2b\x5d\xf3\x98\x8c\x2b\x51\x02\xfe\x9f\xe3\xaa\xe7\xa7\xf4\x24\x74\x03\x95\x1e\x14\x99\x6e\xd0\x3a\x8d\xf7\x59\x44\xea\x8a\xc7\xa4\x75\x24\x41\xe9\xe5\x03\x97\xc1\xdd\x3c\x8d\x2c\x5e\x1a\xf8\x0b\x4b\xe2\x0d\x5b\xfe\x25\x1a\x76\x6a\x08\xb8\xb3\xf2\xac\x5d\xa8\x2f\x35\xbe\xa0\xe0\x50\xef\xc8\x53\xd1\x8e\x8d\xbb\x98\xc6\x71\x03\x33\xaf\x7f\xee\x59\x7a\xfd\xe3\x97\xc1\x0c\x6a\xcf\xd1\xc1\xac\x12\xbe\xfd\x3e\xec\x2a\xe1\x88\x5f\xc3\xb2\xb2\x72\xef\xbf\x38\xae\xbe\x8a\x92\x3b\xde\xde\x72\xb9\xbe\x54\x0e\xdf\x41\xfc\xac\xb2\x75\x74\x18\x3a\x9d\xa9\xe5\x70\x26\xdc\x99\x5a\xde\xb5\xa9\xc5\xb8\x68\xc7\x19\x16\x84\xa9\x1a\x91\xba\x7a\x9d\xc0\xeb\x21\xe6\x82\x93\x3a\xa0\x01\xa4\x25\x5a\x64\x2f\x64\x7f\x55\x7d\x59\xb6\x17\x2b\x18\x04\x99\x90\x27\xff\x2c\xfe\xf6\xc2\x7a\xa9\x02\xc4\x8a\xe8\x24\x83\xf5\x2f\xf5\x1d\x9d\xdb\x40\xa5\xdd\x73\x25\xb1\x2a\x89\x82\x10\x44\xbd\x36\x9e\xe9\xc6\xbc\xfd\xbe\x52\x24\x97\x06\xfd\xba\xb1\x4d\xcb\x1b\xdf\xee\x00\xb9\x9d\xa1\x26\xdd\x2f\xc8\x29\xd3\xd2\x28\x9f\x16\x17\x83\x44\xcf\x34\x49\x00\x51\x04\x32\x1e\x9b\x6e\x80\xdf\x5c\xc4\x43\xe3\xce\xbf\x69\xdc\x43\x1d\x77\xa8\x63\x09\x6d\xec\xa9\xfb\xca\x99\x76\xc4\x06\xe9\xac\xa0\x0d\xad\x31\xc0\x7e\x19\x9c\xe0\x13\x51\xaf\xc5\x06\xb6\x3d\xfb\x2b\xcf\xbd\x20\x53\x22\x08\x8b\xc8\x01\x7a\xdb\x37\x09\x03\xf9\xc9\x4c\xd2\xc6\x80\x78\x28\x81\x70\xaa\x8a\x5b\x3d\xad\x24\xea\x76\x99\xe4\x5d\x26\x79\x97\x49\x5e\x3d\xea\x5d\x26\x79\x97\x49\x5e\x9b\x03\x11\x93\x84\x28\xd2\x28\x55\x9c\xc3\xe3\xb7\x92\x2a\x4c\xef\x5f\x86\x60\x61\xe6\xd2\xc9\x16\xbf\x19\xcd\xc2\x6d\xf8\x41\x68\x16\xe6\xac\xad\x33\x3f\x94\x7e\xac\x09\xb1\x7e\x75\x93\xc4\x36\x4c\xa3\x64\x97\x38\x87\xd7\xdf\x25\xeb\xa8\x0e\xbd\xb3\x51\xa0\x60\xeb\x5e\x8e\x93\x2c\x1d\x81\x76\x13\xb7\x1e\xc3\xf7\x3b\xef\x43\xe1\xa0\x4d\x74\x7f\xa8\x7c\x74\xeb\xa4\x94\x43\xb1\xd8\x7c\x41\x3c\xb2\xb3\xde\xbc\x71\xae\xc4\x12\x33\x7c\xb7\xd3\xed\x8c\x55\x9d\xb1\xaa\x33\x56\x75\xc6\xaa\xce\x58\x85\x3a\x63\xd5\xc6\xc6\xaa\x2f\x48\xa6\xea\x0c\x57\x9d\x58\xb5\xbf\xe9\x1e\xaa\x96\x79\x48\xd6\xba\xd6\x28\xe9\x45\x0e\xd5\xda\xc8\x7b\x3b\xed\x5f\xd6\x84\xdc\xdf\xb8\x11\xbc\x1f\x7e\x25\x5f\x9a\x25\xed\x12\x58\xec\x76\xf4\x8b\x8d\x2b\xee\x4a\x87\xd6\xae\x55\x17\xf6\xbc\x62\x71\xba\xb0\xe7\x2e\xec\xf9\xe0\xc2\x9e\xf7\xae\xac\x64\x5c\xae\x02\x24\x32\xa5\xb3\x56\xe6\x3f\xbb\x3b\x1b\x12\x8d\x80\x14\x0c\xca\x71\x4c\xb2\x84\x2f\xc0\x92\xb2\xe2\x3a\x77\x5d\xdc\x2c\x49\xd4\x87\x7e\xa3\xbb\x91\xbf\x96\xce\x71\x28\x32\x69\x31\xef\x83\x90\x42\x4f\xfe\x59\x49\xe7\x6f\x85\x97\xc9\x10\xf9\x4c\x25\xdc\x4a\xeb\x09\x7b\xc4\xea\x9f\x04\xa5\x0b\xed\x3d\x38\xc9\x55\x90\xbb\x27\xb5\x60\x95\x11\xa1\x16\xc1\x9b\x24\xcd\xd4\xe2\xbf\x46\x8c\x2a\xef\x61\xa3\x33\xc6\x85\xe1\x6a\xfa\xe3\x39\x66\x71\x42\x84\xbe\x54\x5d\x3b\x11\x66\x8c\x2b\x10\x37\x60\x06\x31\x7a\xa2\xd8\x08\x27\xfd\x9b\x61\x6b\x3f\xf3\x3b\x3a\x5d\xaf\x5d\xac\x6e\xcd\x5d\xf7\x29\xe1\x13\xa8\x60\x99\x97\x75\x7a\xdd\x40\xe7\x19\x2d\xed\xdc\x5b\x31\x04\x85\xe5\x63\x15\x38\xa4\x9c\x85\x3e\x5e\x09\x25\xb2\xe6\xdd\x12\xc6\xfc\xea\x57\x2b\x70\x23\xe5\x67\x16\x80\x04\x1e\xc3\x90\xab\xe3\x70\x3f\x86\x1d\xba\xdf\x8a\x96\xdd\x2f\xae\x74\x37\xfc\x28\x88\x12\x8b\x31\x56\x4a\x33\x99\x7d\x62\x9c\xdc\x63\xf9\xd8\x1a\xe3\xa4\xf4\xf2\x81\xb3\x9c\x12\xc6\x49\x79\xe0\x2f\xce\x72\x5a\x52\xe7\x1a\xce\xf4\xfe\xf2\xe3\xdb\x9e\xb5\x0d\x26\xfe\x5b\xc9\x95\x6f\xc7\x7b\xd6\x99\x69\xdf\x63\xde\xfc\x2a\x66\x7a\x30\x23\xac\xf0\xf3\x2f\xf1\xe4\x96\x6f\xa7\xee\x88\xae\x5a\xa3\x2f\xae\x10\x6e\x45\xe8\x58\x33\xb7\x77\x52\x10\xb7\x2a\x37\xed\x7b\x54\x2f\x63\xe6\x0e\x76\x63\x93\x18\xa0\x61\x19\xad\xdc\x9f\x21\x17\x15\x54\x94\x9e\x9d\x43\xa2\x35\x95\x61\x42\x7c\xc4\x85\x91\xbc\x62\x7b\x66\x8d\xd9\xce\x80\xf9\x9e\xa2\x3e\x8a\x6d\x6d\x7e\x41\x32\x41\x24\x61\xca\xa8\xda\xa6\xde\x95\x2b\xef\x4f\x99\xb5\x10\x9d\x63\x85\xcf\xb0\xc2\x09\x9f\x1d\xa3\xbe\x2f\xec\x4f\x25\xc2\x89\xe4\x08\x3b\xc2\x21\xb1\x6b\x02\xb3\xd8\xb1\x07\x8c\x22\x9e\x66\x34\xf1\x48\xed\xde\x8a\x4f\x59\x4c\x9f\x68\x9c\xe3\xc4\x23\x63\x8f\xd8\xe0\x89\x30\x95\x83\x0a\x87\x93\x04\xd9\x6e\xdd\x0b\x81\x7e\xee\x46\x29\x69\x4a\x13\x2c\x90\xe2\x76\xb4\xd7\xb6\x2d\x74\x3f\x27\x7e\xac\x0e\x05\x1c\xa5\xf8\x91\x48\x44\x15\xca\xb8\x94\x74\x92\x14\xc7\xf8\x61\x88\x60\xdc\x67\x17\x43\x30\x8d\x46\x0a\x71\xc3\x07\x5d\xe7\xd6\x4f\xe0\x7a\x4c\x31\x63\x04\x3a\xe6\x6a\x4e\x84\xed\xde\xbe\xfc\xd6\x56\xce\xb7\xc6\x88\x6e\xb6\x98\x86\x23\x7b\x3b\xa5\xb3\xb5\xc6\xd9\x56\xdd\x6c\xa7\x6b\x36\x2b\x9a\x2f\xe0\xa5\x6d\xaf\x0d\x5e\x50\x59\x56\x07\xdf\x85\xcb\xb6\x34\xe2\xd7\xc0\x47\xfb\x8d\x2a\x82\x9d\x16\xf8\x22\xeb\xf6\xa5\xaa\x80\x07\xae\xff\x75\xc8\x6e\x1d\x8a\x7d\x17\x80\xb1\xc7\xc5\xe9\x02\x30\xba\x00\x8c\x2f\x36\x00\xa3\x59\x9b\xa0\xf1\xce\xe9\x7a\x1b\x56\x90\xf2\x46\x01\xf1\x0b\x88\x52\x58\x3e\xb6\xad\x29\xa5\x45\xe5\x61\xfc\x2e\xa4\xfa\xda\x09\xbf\x86\x74\xdf\xd5\x29\xda\x6b\x9d\xa2\x83\x9b\x76\x27\xf8\x75\x82\x5f\x27\xdb\xb4\x9c\x70\x27\xdb\x1c\xae\x6c\xf3\x56\x0a\xcb\x97\x04\xa1\xab\x85\xa7\x52\x66\xcc\xca\x00\x5b\x03\x47\x03\xee\x81\x3c\x4b\x38\x8e\xd7\x05\xe1\xfc\x82\x0a\xb9\x66\x85\x68\x66\xda\xd5\x1f\x1c\xb8\x64\xb6\x14\x7f\x63\x46\xfe\x5b\x88\xa9\x6d\x9c\xfa\x9b\x86\xd5\x02\xfd\x42\x30\x59\x29\x28\xed\xa5\xb4\x90\x2a\x4d\xb7\x52\x38\xe4\x1f\x0f\x9c\xaa\xfd\x96\xbe\x86\x7a\xf1\x05\x3b\x08\x3a\x27\xc0\x6f\xb3\xf0\xf9\xc1\x48\xad\x9d\x6a\xd7\x65\x55\x76\x46\xfd\x4e\xf1\xed\x14\xdf\xbd\x2f\xe3\x21\x29\xbe\x6f\x28\x51\x9b\x34\x91\x17\x29\x63\xb8\x9d\x6c\xdd\x89\xd6\x9d\x68\xdd\x89\xd6\x5f\xac\x68\x7d\x18\x2b\xdc\xc9\xd5\x9d\x5c\xdd\xc9\xd5\x9d\x5c\xdd\xc9\xd5\x7b\x5f\xc6\x4e\xae\xae\xc8\xd5\xf0\x97\x4b\x93\xde\x54\xc8\x6e\x2d\x5c\xb7\xc8\x89\x7e\x2f\x92\x75\x27\x55\x77\x52\xf5\x61\x4b\xd5\x07\x33\xa1\x2f\x2f\x11\xb2\x4b\x25\xec\x52\x09\xbb\x54\xc2\xb7\x48\x25\x74\xbc\x64\x95\x84\xb2\x2c\x58\xfc\xb8\xc4\x81\x0e\x56\xb6\x28\x46\xbb\x6d\x78\xc7\xbe\x96\xda\x01\xcd\x6f\x53\x69\xaa\xf4\x9b\x6b\xe8\x80\xea\x4f\xf5\x9c\xb4\xa0\x19\x85\x1b\xdf\x7a\x84\xb0\x9f\xec\x9b\xef\x0b\x0c\x7c\x79\xd4\x5d\xfd\x29\x14\xec\x5a\x57\x7f\xea\x05\xe7\xed\x0e\xd7\x9a\x99\x3b\x1a\x35\x36\xde\x77\x3a\xed\x37\x07\x97\x6b\x3e\xe9\x6f\x1a\x2e\x57\x7b\x93\x2c\x25\xef\x9c\xfc\xb3\xf6\xa2\x78\x83\xb2\x5b\x1b\xdf\x0e\x9f\x88\xfa\x52\xae\x86\xae\xec\x56\x57\x1f\x62\x4f\xd3\xdd\x8a\xf5\xbf\xdb\xd9\x76\x45\xc6\xba\x22\x63\x5d\x91\xb1\xae\xc8\x58\x57\x64\x0c\xfd\xc6\x8b\x8c\x6d\x2c\x3e\x9a\x71\x7c\x29\x12\x64\x57\x64\xac\x13\x22\xf7\x37\xdd\xdf\x96\x10\x79\x80\x16\x84\x83\xa8\xa6\xe6\x2d\x08\x6f\x8e\xfb\xe1\x46\xd2\x16\xfb\xc3\x2d\x68\x87\xff\x61\xff\xaf\xc3\xff\xe8\xf0\x3f\x1a\x66\xdd\x05\xb3\x76\xf8\x1f\xa8\x0b\xd7\xec\xc2\x35\x0f\x39\x5c\xb3\xc5\x36\x76\xf8\x1f\x2d\xc5\xb9\x17\xc2\x00\x71\x32\xd7\x46\x38\x20\x3f\x2d\x2b\x1a\x07\x2b\xa5\xb9\xb1\xfe\x76\x70\x40\x6a\xa7\x7d\x10\x2a\xc9\x2b\xe2\x80\xd4\xd1\x75\x6b\x05\xe4\x7d\xe0\x81\xb8\xd1\x76\x89\x8b\x5d\x88\xf5\xe1\x87\x58\x1f\x5c\xe2\xe2\xc1\x48\xb2\x9d\xba\xd7\xe5\x2e\x76\xb9\x8b\x9d\x32\xdc\x29\xc3\x7b\x5f\xc6\x43\x52\x86\xdf\x58\xc2\x7e\x41\x5c\x90\xdd\x64\xed\x4e\xd4\x36\xef\x75\xa2\x76\x27\x6a\x7f\xa1\xa2\xf6\x61\xac\x70\x27\x67\x77\x72\x76\x27\x67\x77\x72\x76\x27\x67\xef\x7d\x19\x3b\x39\xfb\xd5\x70\x42\xea\x84\xed\x96\xf9\x36\xef\x49\xd2\xee\xa4\xec\x4e\xca\x3e\x6c\x29\xfb\x60\x26\xd4\x61\x86\x74\x98\x21\x1d\x66\x48\x87\x19\xb2\x95\x7c\xf3\x6f\xf6\x58\x7e\x08\x6e\x62\x7f\x65\x7f\xf8\x2e\xe1\x93\xfb\x45\x46\xf4\x7f\xcf\x69\x4a\x98\x04\x69\x94\xaa\x45\x28\xcf\x34\xac\xfc\xf2\x9a\x7f\xb8\x1b\x5e\x7d\xba\x08\xb3\x69\x3e\x5c\x3e\x5c\xdc\x0f\x6f\xfa\xb7\x7e\x5d\xfc\xac\xc2\xb5\xb0\xdf\x95\x44\x32\x4b\xf2\xb7\x44\xeb\x9e\x70\x6a\xee\x14\x56\xb9\xdc\x6e\x64\xb7\x83\xbb\xc1\xed\x8f\x90\x0d\x34\x3e\x1f\xde\xf5\xbf\xbb\x28\x11\x44\xe9\x79\xff\xec\xaf\x0f\xc3\xdb\xe6\xe7\x83\xff\x1e\xde\xdd\xdf\x35\x3d\xbd\x1d\x5c\x0c\xfa\x77\xcd\x5f\x7f\xec\x0f\x2f\x1e\x6e\x07\x2b\xd7\x63\xe5\x68\x57\x2b\x21\x12\x16\x09\xe2\xfc\x51\x64\xb9\x86\x28\xd6\x10\x79\xf1\xd1\xb1\xc3\xba\xbe\x4e\xd1\x83\xd5\xe9\xa9\x6d\xdc\x30\xd8\xa0\x21\xa3\x8c\xc4\x54\xe2\x49\x42\xe2\xa5\x96\xdc\x1a\x36\xb5\x84\x4b\x83\x7a\xd6\xda\xb3\x17\x39\x35\xcf\x8b\x0c\x2f\x40\x90\xa3\xa8\x08\x8b\x6b\xfa\x30\xfb\xd0\xd8\x03\xd3\xbc\x8b\x3e\x91\x52\x4f\x51\x2e\x04\x61\x2a\x59\x20\xf2\x99\x4a\x25\x97\x1a\x75\xdb\xd7\xd4\xac\xbd\x53\x7d\x83\x73\x2c\xd1\x84\x10\x56\x1e\xbf\x20\x09\xc1\xb2\x66\xcc\x76\xf7\xdb\x2d\x8b\xdf\x2b\x6b\x8d\x31\x97\xd1\x14\xd3\x24\x17\xa4\x72\x5a\x78\x9a\x61\x41\x25\x67\x83\xcf\xfa\x2e\xd3\x07\xf9\x1a\x3e\xe7\x62\xbb\x13\x33\xf8\x6b\x48\xc1\x57\xe5\x7f\x7e\xba\x2f\xff\xab\x74\xe6\x2f\xee\xcb\xff\x5a\x4d\xeb\x41\xc3\x55\xca\x3e\x42\x9f\xee\x4f\xd1\x27\x08\x71\x12\xe8\x7e\x8e\x0d\xc5\x5e\xdc\x9f\xa2\x0b\x22\x25\xfc\x52\x7c\xac\xa8\x4a\x60\x6e\xdf\x51\x86\xc5\x02\xb9\xe9\x9b\x44\x57\x1c\xcd\x11\xf1\x4b\x53\x5d\x3c\xf6\xf7\x9c\x81\xea\x5e\xac\xde\x05\x9f\xd1\x08\x27\xbb\x2d\x62\xff\xaa\xc4\x07\xae\x6f\x57\x2e\x45\xf8\xf6\xf2\x5a\xf4\xaf\xce\x21\x89\xd4\x0d\xb5\x66\xe6\x57\x44\x6a\x22\x89\x38\x8b\xad\x97\x46\xdf\xfe\x8b\x40\xa8\xff\x3b\x87\x44\xdc\x5c\x52\x36\xd3\x2d\xa2\x13\x74\x7d\x3b\x62\xd7\x22\x36\x86\x50\xa2\xa5\x61\x43\x73\x54\x22\xc6\x15\xa2\x69\xc6\x85\xc2\x4c\x69\x45\x00\xc4\x00\xbb\x22\x86\x03\x9c\xf1\x34\xcd\x15\xd6\x07\x6d\x69\x51\x99\x31\x87\xdc\x11\x35\x8c\xc1\xb5\x52\xb3\x86\x46\x4e\x28\xe6\x92\x09\xdd\xbe\x96\x51\xca\x3a\x34\x8d\x97\x54\x59\xd7\x04\x16\x02\x97\xa5\x89\x0f\x54\x91\xb4\xfa\x7e\xcb\x20\xcf\x7f\xd5\x1a\x08\xce\x4c\x52\x05\x11\x7d\x11\xcd\xa9\x22\x91\xd2\x47\x70\x2b\x9a\x78\xb8\xfa\xe1\xea\xfa\xa7\x50\x82\xf8\xd0\xbf\x3c\xff\xf3\x7f\x94\x7e\xb8\xbd\x5c\xfa\x61\xfc\xe3\x9f\x97\x7e\xf9\xff\xad\xa4\xa7\x6a\x4f\x4b\x7a\x7e\x30\x97\x23\x10\xa9\xc1\x26\xec\xa6\x8a\x68\x8a\x67\x04\xc9\x3c\xd3\x14\x20\x8f\xcb\xfb\xab\x45\xca\x0b\x8e\x63\xca\x66\x26\x03\xf4\x82\x2a\x22\x70\x72\x89\xb3\x8f\xce\x7e\xbd\xc5\xea\xfc\xdf\xbb\x52\xbe\xee\x87\x9f\xfb\x97\x61\xc6\xef\x87\x9b\xdb\xeb\xfb\xeb\x95\xb3\x2e\xb5\xb0\x7c\x8c\xf4\xe3\x53\xf8\x5f\x74\x82\x74\xeb\x5e\xf2\x4d\x89\xc2\x5a\x23\x40\x5f\x9b\xa4\x39\x9f\x48\x43\x59\x02\xa7\x26\x13\x34\xa5\x70\xa5\x18\x0b\xde\x37\x46\xb8\xf6\xda\x83\x3f\x37\xe6\x03\xd0\x96\xdd\xa5\xcc\x62\x2c\x62\xf4\x77\x59\x4d\x1f\x07\xc3\xb1\xf9\x81\xc4\xe8\x08\xcd\x95\xca\xe4\xe9\xc9\xc9\xf3\xf3\xf3\xb1\x7e\xfb\x98\x8b\xd9\x89\xfe\xe3\x88\xb0\xe3\xb9\x4a\x13\x93\x2e\xaf\x57\xe1\x14\xdd\x08\xae\xaf\x10\x50\xd0\x89\xa0\x38\xa1\xbf\x92\x18\x4d\x0c\xff\xe3\x53\xf4\x4b\xc4\x05\x39\x2e\x36\xc6\x1a\x95\xec\x3d\x62\x0d\x4f\x27\xfa\xa5\x1a\x66\x52\xdd\x4f\x14\x93\x88\xc6\x56\xcc\x20\x2c\xe2\x60\x79\x34\xbe\x0a\xdd\x9e\xcb\x34\xd4\x1a\x4d\x96\xab\x62\x39\x03\x65\x05\xc7\x24\xc8\x76\x57\xbc\x4c\x70\x5a\xf1\x19\x1a\xb5\x35\xd7\x2a\xba\xbe\x5b\x31\xdc\xaa\xee\xd5\x4c\x4f\x38\xe2\x09\x9a\xe4\xd3\x29\x11\xa1\x43\xba\xa7\xb5\x19\x2a\x91\x20\x11\x4f\x53\x90\x18\xf4\x57\xb9\x34\x54\x0d\x2b\x66\x47\x7b\x3c\x62\xb0\xff\x5a\xcd\x01\x0a\x88\x39\xb0\x3a\x46\x48\x8c\x30\x5b\x98\x6e\x26\xf9\x34\x6c\xdf\xc0\x50\xe0\x18\x51\x35\x62\xfd\x24\x41\x82\xa4\x5c\x91\x20\x87\x12\x9c\x67\xe5\x05\x07\x16\x29\x48\x96\xe0\x88\xc4\x86\x1e\x12\x1e\xe1\x04\x4d\x69\x42\xe4\x42\x2a\x92\x86\x0d\x7c\x0d\xb6\x1a\xbd\x66\x54\xa2\x98\x3f\xb3\x84\x63\x3b\x8f\xea\x67\xdf\x94\x4f\xe3\xc0\x41\x04\x0c\x84\xe0\x02\xfe\xe7\x07\xca\xe2\xbd\x71\xa8\x87\xbb\xc1\x6d\xf8\xef\xbb\x9f\xef\xee\x07\x97\x9b\x71\x1f\x4f\x59\x30\x3c\xd0\xe1\x4f\xd1\x9d\x59\x04\x2e\xb4\x44\x24\x1a\x26\x75\x69\x49\xa9\xf8\x81\xc7\x5b\x72\xdf\xcb\xfe\xd5\x43\xbf\xc4\x51\xee\xce\xbe\x1f\x9c\x3f\x54\xf4\x01\x3b\xbf\x92\x0c\x6f\xd4\xbf\xf0\xb7\xb3\xef\x87\x17\xe7\xe3\x1a\x85\xf1\xc3\xed\xe0\xec\xfa\xc7\xc1\x6d\xa1\xdb\xd5\x2e\x51\x65\x30\x55\x66\x75\x6f\x98\xd2\x9c\xc7\x68\xb2\xa8\x07\x84\xd0\x92\x73\x02\xbe\xd8\x02\x12\xc5\xb4\x7a\x0a\xbc\xc9\x61\x73\x14\x5f\xa4\x3c\x26\x3d\xfb\x0e\x20\x69\x18\xe3\x8a\x91\x98\xeb\x1b\xd6\xbd\x63\x16\x18\x2a\x0c\xc8\x85\x5f\xb8\x53\xd4\x47\x52\xbf\x98\xeb\x43\x2d\xe8\x6c\x06\x86\xc3\xca\x50\x4d\x6b\xf6\x53\x58\x5e\xf8\xce\xec\x7f\x26\x38\x9c\x73\xdd\xad\xb5\x38\x7b\xab\x84\xf9\x10\x50\x57\xca\x2d\x0a\x0c\x06\x87\x9a\xa1\xb9\xcd\xd2\x8b\xd0\xb8\x5e\xe6\x3c\x1a\x7b\x91\x3e\x5c\xc0\xb6\xa4\xb1\x77\x66\x82\x3c\x51\x9e\x07\x9f\x5a\x60\x8f\xd2\x8e\xd7\x36\x5f\x2c\x00\x2c\x9b\x31\x8a\x54\x9a\xf1\xe4\x51\xdb\x82\x66\x61\x4f\xd0\xc2\x54\xf0\xb4\xa6\x8d\xf2\x31\x19\x5e\xdf\x29\x81\x15\x99\x2d\xce\x2d\xcb\xd8\xfe\x78\x9c\x5f\xff\x74\x75\x71\xdd\x3f\x1f\x0f\xfa\x9f\xca\x27\xde\x3f\xb9\xbb\xbf\x1d\xf4\x2f\xcb\x8f\xc6\x57\xd7\xf7\x63\xf7\xc6\x4a\x92\x6f\xe8\x60\xf9\x9e\x2e\xbf\x78\x8a\x34\xcb\x05\xd6\xe8\x00\xef\x02\xfe\x38\x21\x53\x2e\x0c\x9f\x4f\x5d\xe8\x82\x15\x61\xdc\xda\x5a\x5d\xac\x32\x8b\x53\xb0\x8c\xd5\x35\x69\xac\xde\x4a\x10\x9c\xc2\x3d\x81\x19\x1a\xb0\xf8\xe8\x7a\x7a\x74\x67\x7e\x4c\xb1\x78\x24\xc2\x7f\xfa\x2c\xa8\x52\x84\x95\x54\x3a\xec\x86\xec\x95\xc4\xa2\x83\x63\x74\xab\xf9\xbe\x7e\xdf\x5f\x6a\x9a\xd8\x63\xa2\x30\x4d\xa4\x1d\x6c\x69\x5d\x4f\xd1\x05\x16\xb3\xc2\x0e\xf7\x35\x9f\x4e\x4d\x63\xdf\x98\x61\xe8\x3b\xac\x34\x8b\x1a\xde\xab\x49\xc3\xdd\x8b\xd0\x9f\x7d\xd9\xcb\xc3\xcb\x54\xf5\x90\xed\x46\x53\x0f\x37\xb0\xe2\x46\x63\x2f\xe9\x86\xf6\x49\x0d\xad\xc1\xc4\xcd\xe3\xd5\x97\x4c\x7d\xdb\xcb\xe4\x54\x7e\xb1\x86\x9c\x4c\x2e\x95\xde\xf9\xa9\xd6\x36\x6b\x68\x89\x7c\xa6\xd6\x60\x10\x8e\xbb\x42\x42\x45\x33\x60\x5e\xc5\x59\x46\xb0\x90\x75\xbb\x5d\x16\x03\x1b\xf6\xde\xf4\x14\xf6\x61\x37\xd9\xf5\xd3\x43\x9c\x81\xc1\xc1\x0b\x11\x15\x8a\x6c\x41\x03\xa6\xad\x25\x0a\xb8\x01\xb4\xa5\x6b\x8b\x6c\x74\x49\xa5\x56\x1a\xcd\x8f\xdf\x59\xc8\xa5\xed\x08\xe2\x63\x7f\x78\x51\x11\x2e\xc6\xe7\x83\x8f\xfd\x87\x8b\xd5\x66\xc2\xd2\x77\xd5\x2d\x46\x47\x48\x3f\x2f\xfb\xcd\xe9\xd4\xdc\x19\x0e\x38\xca\xa8\xb4\x84\x81\xd1\xca\x42\xd5\x18\x7b\x75\x4c\xb2\x84\x2f\x52\xc2\xc0\xc4\x53\xba\x09\xf5\x7a\x4e\x31\xb5\x57\x4b\x30\x58\xb0\xe2\x58\xb3\x1b\x5c\x63\x47\x0e\xad\x8a\xc4\xfe\xe6\x2d\x83\x55\x55\x58\xf7\x8d\xf1\x9e\xd9\xff\xdc\x29\xac\xb6\x3c\x63\xfd\xb3\xfb\xe1\x8f\x83\xb2\x7e\x78\xf6\xfd\xf0\xc7\x3a\xa9\x66\xfc\x69\x70\x35\xb8\xed\xdf\xaf\x11\x4e\x2a\x4d\xd6\x09\x27\x52\x0f\xb8\xea\x3d\xa5\xd2\x47\x04\x45\x06\xf2\x0a\x51\x25\xd1\x13\x95\x74\x42\x01\x20\xcc\x7a\x22\x1f\x86\xc0\x59\x9f\x70\x42\x63\xaa\x16\x4e\x7c\x31\xfd\x96\xf7\x51\x73\x52\xdb\xbe\x31\x3b\x84\xfe\x49\xb0\xf2\x99\xcd\x71\x93\x3e\x45\xa0\xdb\x3e\x81\xd2\x16\x7c\xc6\xb4\x20\xcd\x66\x44\x98\xe1\x80\xf7\x25\x1c\x4b\xf0\x5c\x8f\x2a\x14\x56\x8a\x55\xf3\x42\xeb\x8c\x30\x22\x00\x04\xce\x77\x62\x04\x29\x41\xd8\x57\x5a\xe6\xca\x12\x1a\x51\x95\x2c\x50\x04\x36\x2c\x30\x67\xa6\x98\xe1\x99\x15\x0e\x40\xcd\xa9\x90\xc4\x5f\x0d\x8a\xda\xf5\xd4\x9a\xf6\xef\x29\xd9\xf2\x98\x3d\x5c\x9d\x0f\x3e\x0e\xaf\xca\x24\xf0\xfd\xf0\x53\x49\x84\xbd\x1c\x9c\x0f\x1f\x4a\xb7\xb9\x96\x64\x57\xcb\xf5\xd5\x66\x6b\x8e\xa2\x7f\xe9\x14\x9d\x9b\x4f\x4f\xf5\xe2\xd6\x40\xc4\x79\xe5\xb7\xb2\x0e\xb7\x2e\x24\xcf\xfd\x31\x60\x4a\xd4\xfa\x25\xda\x9a\x90\xac\x0f\xb2\x64\x43\xaa\x0f\x55\x58\xea\xfb\xaa\xea\x54\xae\x4e\xd9\xbd\x08\x41\x97\xc7\x85\x65\x29\x8c\x61\x00\xa3\x41\x93\x11\xab\xc6\xad\x55\x30\xec\x1f\xc1\x45\x9d\xe6\x52\x19\x57\x22\x10\x27\x7a\xfc\x8b\xd4\x0b\x0a\xae\xc6\x63\x74\x47\xc8\x88\x39\xeb\xc1\x8c\xaa\x79\x3e\x39\x8e\x78\x7a\x52\xe0\x13\x9e\xe0\x8c\xa6\x58\x4b\xd2\x44\x2c\x4e\x26\x09\x9f\x9c\xa4\x58\x2a\x22\x4e\xb2\xc7\x19\x44\xc0\x38\x77\xea\x89\x6f\x76\xc6\xff\xfd\xe2\x4f\xdf\x1e\x5d\xfc\xe5\xdb\x0f\xcb\x16\xb2\xa6\xfd\x1f\xb0\x08\x67\x32\x4f\x6c\xc4\x9c\x08\xd7\xc6\x1d\xf9\x9c\xac\xdb\xef\xab\xf2\x76\xed\xa6\xbf\x9e\xdd\x3c\x94\x2c\xd6\xe5\x7f\x5e\x0e\x2e\xaf\x6f\x7f\x2e\x71\xca\xfb\xeb\xdb\xfe\xa7\x12\x43\x1d\xdc\x7c\x3f\xb8\x1c\xdc\xf6\x2f\xc6\xee\xe1\x2e\xb6\xb7\x1f\x18\x7f\x66\xe5\xa5\x91\x8e\x03\x2e\xf5\x74\x8a\x3e\x72\x81\x7e\xf0\x3b\x79\x34\xc1\x12\xae\x18\x77\x67\xc9\x1e\xca\x78\x0c\x8c\x17\x91\x6c\x4e\x52\x22\x70\x62\x6d\x06\x52\x71\x81\x67\xe6\xa6\x97\x91\xc0\x2a\x9a\x23\x99\xe1\x88\xf4\x50\x04\xd4\x30\xeb\xc1\xa6\x80\xaa\xc5\x67\x55\x3b\xdf\x6d\xce\x14\x4d\x89\x53\xc1\xed\x3f\xef\xcd\x66\x6c\xb1\x39\xd7\xf7\xdf\x97\x85\xbd\x8f\x17\x3f\xdf\x0f\xc6\x77\xe7\x3f\xac\x5c\x4f\xf3\x59\x69\x64\x77\x10\x80\x74\xc6\x93\x3c\x65\xe1\xdf\xdb\x8f\x6d\x78\x75\x3f\xf8\x54\x1d\xdd\x75\xff\xbe\x4c\x19\xb7\xe5\x00\xb7\x0f\xdf\x5d\x5f\x5f\x0c\x4a\x2e\xe1\x0f\xe7\xfd\xfb\xc1\xfd\xf0\xb2\x44\x3f\xe7\x0f\xb7\x06\x8d\x70\xd5\x34\xdd\x08\x6a\x26\xaa\xa7\x15\x4e\x73\xdf\xac\xb0\x15\x27\xea\xdb\x80\x72\x73\x96\x8f\x02\xb8\x1d\x13\x0e\x06\x56\x9d\x23\x6f\x52\x8d\xcc\x48\x6b\xd9\xa1\x2a\x6f\x13\x6a\x66\xc7\x2b\x37\x7a\x15\x57\xbe\xf7\x43\x30\x50\xa0\x46\xd9\xc6\x49\xc2\x9f\x4d\x28\x6f\x4a\xf5\xad\x6c\x81\xd1\xf4\x2b\xb2\xf0\x10\x1e\xd7\x70\xbc\xf2\xb6\x90\x48\x10\x75\xc9\x73\xa6\xb6\x27\xb9\xfe\x55\x89\xef\x0c\xae\x7e\x1c\xff\xd8\x2f\x53\xe0\xf0\x62\x35\xab\x09\x9b\xa8\xb9\x8a\xfb\x57\x3f\xfb\x4b\x18\x02\xbe\x7b\x5e\x43\x35\xb2\x6b\x94\x50\x2d\xf6\x46\x58\x6b\xaf\x09\x48\x34\x88\x50\x30\x39\xa4\x7a\x72\x10\x60\x9a\x19\x7f\x92\xe1\x4f\x66\x90\xa7\xee\x8f\x4a\x7b\x12\xd6\x05\xac\xa9\x2e\x9e\x1e\xda\xb1\x5a\x35\x43\x84\x3d\x51\xc1\x01\xcf\x16\x3d\x61\x41\xb5\x34\x6e\x5a\xd6\x73\x3d\x85\xff\xdd\xac\x4d\x30\x8c\x56\x18\xd7\x1d\x17\xea\xdc\x07\xf2\x6e\x67\x0d\xa9\x0b\x68\x5d\x0e\x65\xad\x37\x74\x2c\x7f\x5b\xb3\x39\x3b\x06\xfc\x96\x27\xfc\x8f\xe4\x9c\xe2\x44\x33\x80\xfd\xc9\x8b\xfd\xab\xbb\x61\x59\x7e\x2c\xab\x19\x01\x5f\xde\x5a\x5e\x04\x43\xa5\x19\xb9\x53\x26\xee\xfe\x7a\x61\xb4\x0b\x00\x3d\x36\xe7\x36\x50\x2c\x40\x00\x72\x28\x28\x19\x16\xb2\xf2\x85\x44\x00\x84\x56\x04\x5c\xe9\x3b\x0b\xc2\x99\x9e\x38\x8d\x47\x8c\x7c\xce\x08\x93\x10\x1c\x60\xee\xb3\xc2\xd7\x2e\x8f\xd1\x70\x0a\x2c\x41\xbf\xce\x50\xce\xac\x03\x4c\x5f\xb8\x66\x90\x3d\x2d\xca\xda\x21\x78\x0d\x11\x0c\x2f\x8c\xb8\x60\xa9\x62\xf0\x23\xf6\x93\x77\xa2\xc1\xa3\x29\xd7\x0c\x48\xef\xa2\x6d\xef\x14\x61\x26\x69\x0f\x69\x85\xa5\xba\xa7\x90\x3a\xa0\x15\x4a\x1b\xc2\xa5\x39\x8d\xfd\xf3\xf5\xaf\x81\xa5\x38\xe1\xf0\x32\xa8\xbf\x0b\x2a\x57\x41\x83\x68\x9c\x18\x8f\xc9\xb8\xfd\x9d\x10\x71\x41\xac\x9f\x65\xe3\x6b\x60\x1d\x63\xbf\xc7\xf2\x71\xc9\xf7\x30\x64\x52\x61\x16\x91\xb3\x04\xcb\x2d\x83\x90\x9c\x8d\xa3\x57\x96\x38\x6e\x6f\x1f\x6e\xee\x87\xdf\xad\xe1\xf2\xd5\x8f\x97\xc3\x80\xa2\x24\x77\xee\xb9\x89\xe0\x38\x46\x9a\x7d\xce\xb8\x71\x05\x5a\xc1\xbf\x80\xfe\x36\x79\x3d\x3e\xa0\xb2\x04\x3b\x5e\xa4\x23\x58\x3b\x47\xe8\x4a\xa0\x76\x21\x50\xa4\x57\x02\x05\x26\x0f\xb7\xd5\xe0\x59\x34\x05\x49\xac\x75\x2b\x4b\xb0\x9a\x72\x91\x1a\x2e\x5f\x9a\xb4\x69\x7c\x75\xa3\x94\x29\x22\x44\x9e\x29\xea\xb0\xdc\xab\x52\x2a\x54\x78\xe7\xb3\x4b\x22\x25\x9e\x91\x5d\x1c\xd0\x75\xca\xc3\xdd\x8f\xe1\x3f\xc1\xc1\xdc\x46\xf6\x2f\x8d\xd0\x45\xbe\x3b\x7a\xba\x66\x1f\x4d\x20\xcf\x0d\x4f\x68\xb4\x65\xc0\xdd\xc7\xfe\xf0\x62\x3c\xbc\xd4\x4a\x7c\xff\x7e\x70\x51\x12\x25\xe0\x59\xff\xe3\xfd\xe0\xd6\x82\x58\xf7\xbf\xbb\x18\x8c\xaf\xae\xcf\x07\x77\xe3\xb3\xeb\xcb\x9b\x8b\xc1\x9a\xc8\x9c\xc6\xc6\x97\xad\xab\xd5\x57\x4f\x97\x7e\x81\x1d\xd6\xbc\x2c\xb4\x97\x41\xd6\x18\xa6\x09\x38\xc1\xb9\x71\x86\x63\xc4\x78\x4c\xe0\x67\xe9\xac\x33\x1e\x39\x1a\x0d\xd5\x57\x49\x82\x70\xae\x78\x8a\xc1\x6b\x93\x2c\x46\x0c\x4f\x34\x6b\xc5\x49\x12\x84\x77\x89\x9c\x31\xcd\x62\x75\x63\x06\xa2\x3d\x4a\x88\x66\xe7\x59\x90\xec\x67\xfd\x06\x53\xca\x20\xd2\x36\xc5\xe2\xd1\xb8\x99\x8a\x2e\x8b\x43\x21\x11\x96\x23\xa6\xc7\x45\xac\x61\xa8\xcd\x0a\x9f\xb6\x7a\xab\x71\x75\x52\xfc\x48\xf4\xaa\xa4\x79\x34\x47\x99\xe0\x33\x41\xa4\xb4\xb6\xe5\x08\x33\x13\x80\x60\x5f\xd7\xd7\xd0\x88\x31\xae\x97\xc2\x99\xb0\x63\x92\x11\x16\x13\x16\x51\x93\xd6\x07\xbe\x7b\x6f\xda\x9c\x09\x9c\xcd\x91\xe4\xe0\xf4\x86\x65\x07\xfb\x95\xf9\xc8\xdd\x64\x66\xc6\xe6\x71\x68\x81\x16\xb9\xe6\x13\xd7\x20\x27\x9a\x55\x86\x8f\xdd\x65\xe8\xdc\x2e\xc6\x0e\x98\x66\x09\x51\x06\xac\x1f\x96\x1c\x36\x43\xaf\x75\x69\x3f\xf4\x36\xd5\x6d\x82\xbe\xb0\xdd\x98\xb1\xb4\x23\x3a\xae\xb1\x6c\xdb\x23\x85\xbe\xc7\x2c\x4e\x74\x2b\xce\x87\x51\x3e\x8b\x90\x8a\xd2\xd7\x54\xe3\x4e\xe3\x2e\xb7\x68\x84\x73\xb9\xcb\x35\x5a\xc9\xc5\x34\x56\xc1\xa3\x22\x28\x04\xc8\xdb\x26\x62\xc2\xea\x66\x9a\x45\xe2\x84\xdb\x55\x32\xaf\xe7\xa6\xfe\x13\x82\xd1\x34\x5c\xb3\x99\xa0\x2c\xa2\x19\x4e\xb6\xd2\xfd\x2a\xc1\xf8\x36\xc6\xfd\x6b\x3a\xd5\xe4\xf3\xcd\x92\xdb\x56\x11\x91\x42\x82\xb2\x1d\xa6\xdf\xc2\x0d\x2c\x49\x36\xab\x81\xc8\x22\x9a\x04\x0b\x9e\x1b\x7f\x1c\xac\x0b\x89\x6b\x8e\xea\x71\xdd\x76\xeb\x93\x81\xcb\x01\xd0\x5b\x6c\xb6\x89\xfc\x69\x5a\xbf\x4a\x2b\xb6\x77\x13\x8c\x87\x93\x9b\xfa\x36\xeb\x76\x20\x78\xf8\xaf\x55\xb4\x73\x89\x33\x4d\x33\x16\xb6\x1f\x17\x73\xb4\x4a\x92\xad\x0a\xe6\xe2\x67\x02\xdf\xb9\xcf\x0b\x69\xbf\x1b\xc5\x12\xda\x00\xa8\xe5\x4e\x4a\x31\x04\x41\x8e\xb9\xa5\xf1\x69\xae\x65\x59\x84\x21\x0a\x01\x7d\x4d\x8e\x67\xc7\xc8\x15\x61\xe8\xa1\xfe\xcd\xcd\xe0\xea\xbc\x87\x88\x8a\xbe\x71\x31\x8b\x36\x60\x69\xc4\x14\xb7\xd2\xca\xc2\x15\xd0\x48\x89\x98\x91\xd2\x9c\x5d\x74\x13\x84\x2a\xcf\xa8\x54\x36\x7c\x56\xf3\x95\xa0\xd4\x09\x4d\xab\x62\xb6\xa1\x90\x5c\xcd\x77\x21\x0d\x2c\x65\x9e\x6a\x5d\x76\x4c\x71\x3a\x16\x3c\xd9\x85\x29\x9c\xc3\x54\x40\x5d\xf6\xe9\xf9\x14\xa7\x48\x37\x6b\x43\x41\xbc\xcb\xd1\x8b\x74\x5a\x30\xd2\x7c\x59\xdf\x9b\xc1\xbd\xe5\xbc\x0f\x36\x1e\x8d\xba\x10\x08\x48\xdf\x6f\x60\x15\x85\xd9\x78\x6c\x2d\xf5\x63\x1c\x45\x5a\xe5\xde\xf3\xa4\x82\xfa\x39\xce\x25\x60\x3b\x7a\xb1\x69\xae\xa3\x73\x37\xcc\x4c\x73\x30\x08\x06\xd6\x57\xae\xe4\x11\x2d\xda\xaf\xe9\x77\xb2\x58\xea\xd5\x55\xb8\x79\x90\xde\xa4\x62\x2e\x61\x49\x60\x27\xa5\xa9\x90\xa3\xe6\x64\x81\xe6\xf8\x89\x94\xba\x74\x09\x31\xba\xe1\x05\xcf\x45\x1d\xa3\x1b\xb1\x73\x92\x09\xa2\x25\xfd\xaa\x03\xc5\xd3\xf4\x6d\x99\x12\x3b\xba\xee\xe8\xfa\xdd\xd3\xf5\x99\x29\x94\xd4\xf7\x85\xb1\x76\x12\xe0\x4c\x63\xe3\x8c\xf3\x64\xdc\xc2\x26\xd2\x7e\xc5\x4b\x9e\xb0\x4a\xd9\x28\x80\x04\xe0\x39\xc8\x47\xa5\x6b\x93\xeb\xbb\x2e\x48\xb1\xb5\xc3\x5b\xb1\x0c\xce\x65\x16\xd4\xcb\xd9\xe5\xbc\xd7\xb5\xb2\xaa\x25\xf4\xe2\x62\xce\x99\x91\x6f\xbc\xbb\x2c\xac\x7f\x5a\x3a\x4c\x4e\x14\xa1\x6c\xa9\x1a\x9b\xa1\x67\xbd\xc0\x46\xee\xf8\x47\xce\x15\x96\xdf\x1c\x8f\x98\x16\xa2\x1e\xc9\xc2\x98\x5b\xb5\x98\xf2\x3b\x2d\x8b\x1f\x49\xc2\x24\x84\x7b\xff\xce\xb8\xe7\x34\x89\x3b\x73\xb5\x51\x4d\x4d\x11\x38\x08\xba\xf6\xbd\x40\x88\xae\x6d\xd4\x4a\x49\x45\x00\x34\xc8\xf9\x66\x2e\xf6\x99\x19\xfe\x8c\x28\x48\xb1\x56\x54\x81\xce\x14\x9b\x2a\x73\x4b\x43\x5f\x6b\xba\x32\x54\x21\x38\xf8\x49\xe2\x7c\x37\xc6\x2f\x97\xdb\x58\xcb\x19\xbd\xb6\x70\x67\x63\xde\x4f\x9c\xdd\x28\x12\x7c\xa9\x74\x1b\x96\xc8\xec\xf4\xc4\xb0\x03\xe7\xbf\x26\xec\xf8\x99\x3e\xd2\x8c\xc4\x14\x43\x04\xbc\xfe\xd7\x89\x9e\xd7\xbf\x9f\xdd\x5e\x5f\x8d\x8b\x4c\x9e\xff\x1a\xb1\x7e\x22\xb9\xcf\x52\x40\x8c\x33\x1f\x6e\x9f\x09\xe2\x44\x42\x3b\x17\xb0\xba\x16\x66\xc4\x11\x6b\x1a\x41\xcc\x23\x79\x8c\x9f\xe5\x31\x4e\xf1\xaf\x9c\x81\x2b\xbd\x0f\x7f\x9e\x25\x3c\x8f\x7f\xc2\x2a\x9a\x9f\xc0\xb9\x56\x27\xe4\x89\x30\x65\xdc\x54\x7a\xb9\x62\x48\xde\x95\x10\xad\xff\xef\x7a\xcc\x45\x52\x91\xd4\x9a\x6c\x44\x32\x85\xfe\x1f\x41\x26\x9c\xab\xfa\x4b\x8a\x4f\xa7\x92\x6c\x74\x21\x15\x4a\xda\xdd\x35\xfa\xcb\x9f\xbf\xfd\x83\x26\xa1\x6d\xd6\x78\x78\x77\x3d\xd6\xdf\xff\xfb\xb9\xfd\x5e\x6e\xc0\xee\xae\xb3\x82\xb5\x39\xe2\x31\x81\xf3\x39\x83\xdb\x4f\x80\xf3\x02\xd8\x1b\x90\x43\xb1\x8f\x75\xdc\xed\xbc\xd4\xfa\x6e\x2a\xdb\x56\x8b\x09\x2a\x76\x30\x47\x74\x84\x18\x47\xa9\x89\x35\xc5\x0c\xfd\xc7\x0f\xdf\xd5\x6f\x60\x2e\xe8\x56\x1d\x52\x0b\xd7\x10\x74\x29\xe9\xaf\x44\x22\x4d\x35\x9a\x8a\x79\xaa\xbb\x16\x44\xce\x79\x12\xa3\x67\x02\x6a\x92\x8d\x03\xf5\x5a\xb9\x20\x23\x16\x36\x01\x21\x87\x08\x27\x8a\xcf\x08\xdc\xd5\x4e\x51\x53\x44\x68\x51\xc5\x64\x69\x28\x2e\x48\xcf\x40\x7d\xdd\xfd\xc9\xc5\x56\xc3\x34\xe1\x91\x4b\x6a\xb1\x26\xb9\x78\x52\x3f\xf3\x69\xd5\xf4\x8a\x9a\x6d\xf8\xd5\x4d\xb6\x66\xdb\xfa\xa5\xb1\x49\x28\xd6\x86\x55\xdd\x99\xfa\xc1\xd0\x88\xb3\x71\x42\xd9\xe3\x56\x9b\x71\xed\x44\x39\xdd\x82\x5d\x33\xdd\xa2\xb7\x73\x1b\x0b\xc8\x06\xe7\xe3\x63\x9e\x24\x26\xb5\x25\xdc\x1e\x90\xbb\xcc\xba\x81\x30\x90\x99\x1c\x50\x12\x5b\xbf\x97\xd5\x84\x05\x61\x10\xf0\x36\x62\x93\x85\xf5\xd9\xca\x1e\x92\x79\x34\x77\x99\x79\x11\x67\x52\x8b\xd1\x5c\xa0\x88\xa7\xa9\x29\x6e\xca\x08\x52\x9c\x27\xd2\x46\xbb\xb3\x23\x85\x23\x35\x62\x45\x7f\x6b\x4e\x9e\xa9\x80\xb4\x5b\xea\x5e\x7b\x97\x4e\x51\x69\x69\xa5\xc0\x4d\xe3\x10\xb3\x01\x8c\x60\xc6\x13\x15\xa0\x3f\xf0\xe5\xb3\x64\x36\xac\x41\x33\x90\x73\x2e\xd4\x38\xae\xe5\x39\x6b\x89\xa6\xca\x08\x19\x39\x4a\x20\x68\x98\x3f\x69\xe1\x9f\x3c\x7b\xe3\xeb\xaa\x21\x68\xaa\x5e\x35\x82\x76\xc7\x68\xe5\xc8\x36\x25\xc1\x86\xb5\x32\x08\x1e\x51\x39\x26\x7c\xdd\x18\xef\xe0\xab\x33\xfd\xd1\xca\xc5\xab\x9e\x3b\x27\x04\xf1\xb8\x00\x9b\x33\xf7\xba\xcd\x08\x59\xb5\xa6\x16\x3a\xe1\xe5\x32\x47\x57\x4d\xe5\xa1\x6c\xc9\xd5\x63\x01\x93\xbd\x24\x20\x6b\x62\x31\xa1\x4a\x60\x51\x42\x0a\xf1\xfa\xa0\x24\x58\x40\x7c\xd6\x88\x19\xdc\x38\xa3\x29\xc4\x28\xa6\x12\x12\x44\xe0\x2e\x0d\x9c\x61\xa8\x9d\x12\x58\x39\xda\x45\x9e\xa3\x89\x3f\x87\xc0\xb2\x82\x34\x1c\xb3\xd3\x1d\x79\x7c\x2c\xad\x9f\xf1\x28\x2f\x04\xb9\x08\x24\x5c\x8b\xa9\x83\x28\x93\x74\x36\x57\x88\x32\x6b\x77\xc4\xc9\x8c\x0b\xaa\xe6\xa9\xec\xa1\x49\x2e\xb5\x16\x6a\x82\xd5\x4c\x3c\x0a\x51\x51\x2b\x2e\xb4\x6b\x12\x71\x5c\x69\x70\x59\x45\xd9\x82\x34\xda\x1d\xca\x41\xe5\xae\x58\x43\x38\x7d\x8f\x33\x58\x6d\x83\x42\xdd\x46\x03\x4f\x89\x4c\x1c\x20\x77\xc8\x4e\x50\x05\xa4\xe9\x1c\x00\x2a\xe4\xde\xbc\x14\xaf\x51\x88\x0b\x99\x64\x50\x41\x5c\xec\x36\x48\x5e\x65\x64\x4a\x83\xde\xe4\x9d\x4e\x69\xa6\x6a\x03\xb7\x96\x5d\x45\xb7\x01\xe6\x4f\xbb\xc5\x86\x64\x2c\xa0\x66\x40\x6a\x1b\xb1\x3b\x42\x9a\x81\xdc\x96\xf6\xde\x94\xc6\x85\x29\xd8\x44\x8f\xd5\x24\xbf\x8b\x13\xfb\x7c\x70\x77\x76\x3b\xbc\x31\x90\x13\xd7\xb7\x97\xfd\xfb\x71\x8d\x5f\xbb\xe6\xad\xcb\xfe\xed\x0f\xe7\xeb\x5f\xfb\xfe\xbe\x9c\x95\x5d\xf3\xca\xed\xdd\xea\x64\x8e\x16\x43\xac\x49\x0a\xab\xed\xe7\x14\x65\x0b\x35\xe7\xcc\x87\x28\xc4\x25\xde\x74\x84\x4c\x46\xb0\x82\x10\x22\x21\x55\x8d\xe3\xf0\x1e\xe2\x72\xd6\x4b\x98\xe5\xcd\x32\x30\x6c\x7b\x15\x8d\x36\x38\x91\x9f\x12\x3e\x01\xbf\x75\x5e\x2a\x71\xbb\x22\x02\x7d\xc7\x78\x9f\x73\x2a\xb3\x04\x2f\x96\x7a\x58\x77\xe5\x5c\xe1\x94\x40\xc4\x71\x81\x1f\xe7\x92\x45\xf4\xce\x40\x02\x93\xbf\xd7\xe9\x14\x32\x99\x14\xc5\x8a\xa0\x09\x51\xcf\x90\x37\xe7\x7e\xf5\xb6\x54\x17\x30\x22\x8f\x47\x0c\xcc\x39\x23\xbd\xc8\x71\x0e\xd1\x7e\xa3\x0f\x3d\x34\xfa\x10\x93\x27\x92\xf0\x4c\xef\xbc\xfe\xa1\xe1\x92\x19\xa4\x98\x26\x57\x5c\x79\xcb\xdc\x2e\xfb\x29\x48\x44\x33\x90\xcc\xc7\x44\xb7\xfb\x7a\x82\x47\x89\x92\x1d\x3b\x83\x31\x20\x1c\xc7\x5a\xc9\x06\x56\xe6\x86\x57\x84\x00\xb1\x60\xea\xa5\x5a\x99\x9b\x88\x14\xde\xfc\x6d\x7a\x0c\xdb\x2c\x9b\x3d\x6b\x77\x80\x3d\xbd\xa0\x4b\x76\xd7\x8b\x5c\x6b\x25\x3f\x90\x05\xa4\x60\xdc\x60\x2a\xb6\x74\xcd\xd6\xc5\xbc\xbe\x88\x93\x76\x50\xd3\xd1\x01\xb9\x6b\xeb\xd7\x61\x37\xc7\xad\x8f\xd5\x7b\x2d\x2d\xd5\xc5\x72\xf9\x8e\x5b\xaa\xad\x0f\x4d\x4a\x6a\x63\x08\x03\xaa\x2a\x5e\x19\x89\x36\xd0\xb8\xfc\x00\xef\xf4\x77\x6b\x35\x15\x2f\xae\x45\x61\x4d\x7f\xd8\x05\x9b\x1c\x5f\xcd\xc7\x27\x6b\x47\x1c\x25\x5c\x96\xb1\x72\x5a\x0f\xfa\xcc\x7e\xba\x6a\xdc\x83\x90\x7c\xb5\x5c\xb8\x51\x40\x43\xcd\xc2\x57\xc0\x20\xcd\x3d\xa3\xac\x87\xcc\xbe\xdd\x43\x14\xa2\x2d\x41\x21\x4b\x0a\xe4\x00\x16\xa3\xc2\x0d\x32\x62\x45\xcc\x8a\x44\xcf\x24\x81\x30\xb7\x88\xa7\x19\x98\xf8\xed\x70\x6d\x4b\x24\x36\x11\xc3\x3d\xc4\x73\xa5\x1b\x33\x39\x39\xce\x88\x6b\x13\x7e\x0a\xb7\x87\xf1\xbd\xd9\xe0\x77\x0f\x2c\x6d\x68\xdd\xdc\xa5\x94\xa1\x4f\x44\x41\x2b\x00\xdc\x1f\x4e\x10\xf4\x84\x6a\x08\x65\xfd\xda\xef\x70\xa2\xec\x4c\x36\xd8\xf9\x02\x38\xe5\xbb\x84\x4f\x56\x1b\x09\xa0\x71\xf4\x70\x3b\x74\x16\xc9\x22\x7e\x2a\x40\x2f\x2e\x79\x14\x07\x37\xb7\x83\xb3\xfe\xfd\xe0\xfc\x18\x3d\x48\xa2\x97\xc7\x4f\x17\xf2\xab\xbd\x4a\x62\x46\x6e\x91\x58\x98\x54\x04\x37\x19\x42\x88\x10\xa5\x2c\xe8\x35\x8c\xa3\x0c\xd3\xb2\x9a\xb0\x01\x24\x85\x5a\x43\x1d\x00\x0b\x55\xe7\x69\x23\xf3\xd6\x9d\x40\x88\x93\x1a\xbf\x9f\x28\x35\x33\xde\x74\x39\x32\x6f\x1d\xf9\x94\x23\xfa\x5e\x7a\x32\x70\xb4\xd4\x9c\x50\x81\x5a\x4d\xcb\x10\xd5\xb8\xfd\x9c\x82\x10\xf7\x4b\x9c\xad\x4e\x3f\xc5\xcf\x25\xa2\x35\xa2\x70\xe0\xbb\x7f\xe9\x73\xe0\xd8\xda\xd8\xb0\xc2\xdd\x27\x58\x38\xb4\x0c\x6f\xf5\x7c\xd3\x64\x7c\x48\x67\x24\x0b\x27\x56\x19\x84\x8d\x63\x95\x08\xce\x0e\xfc\x42\x19\x2a\x5d\x89\x3d\x34\xa5\x9f\x6d\xa3\x45\x7c\xbb\x7b\x35\x08\x78\x68\x88\xa7\x9c\xe3\xe5\x33\xb5\x81\xd8\x70\x03\xdf\xaf\x14\x22\xb9\xd4\x22\x51\xa4\xc5\x25\x41\x22\x2e\xf4\x4d\x01\xdd\x16\x5e\x88\x75\x22\x83\xc2\x42\x2f\xca\xb2\x57\x66\xd5\xe9\x2f\x6a\x90\xc4\x58\x91\x23\x2d\x7a\xad\x49\x80\xb6\x39\x32\x90\x4d\x83\x55\x00\x07\x56\xdc\x3c\x13\x32\xc3\xcc\x85\x66\x37\x0c\xd7\x5d\x79\x3b\xb0\x2a\xad\x02\x61\x48\x0f\x03\xf9\x0a\x52\x7f\x4a\xe3\x90\x19\xac\xe7\xca\x71\xd8\xe8\x97\x43\x58\xb6\x67\xec\x83\x71\x1a\x06\x9b\x67\xf1\x21\x0d\x36\xc1\x52\x21\x3b\xa6\x26\x53\x44\xa0\x22\xbe\xac\x11\xb6\xa4\xdb\xb7\x55\xde\x34\x09\x95\xb5\x58\x02\x9e\x11\xe9\x70\x53\x0c\x4a\x8c\xd6\x69\x9c\x20\x6c\x4a\x31\xfb\xb3\x6d\x6b\x32\xbb\x5b\x22\x64\x26\x10\xa4\xbf\xdc\xf4\x31\xea\xb3\x25\xbc\x2c\x17\x97\x55\x5a\x2f\x73\x27\xe1\xe4\x19\x2f\x24\xca\x84\x81\x96\x31\x91\xfb\x6e\xf2\xa0\x81\x95\x3f\xf2\xa1\x10\xca\xa5\x4e\x20\xb0\xc5\xac\x0f\x9a\x73\x72\xef\xf8\x05\x5c\x79\x95\xa8\x72\x2f\x90\x17\xcd\x15\xb6\x8a\x16\xac\x4e\x91\x71\x34\xc7\x6c\x46\xc6\xce\xc8\xba\x8d\xb6\xa4\xdb\x39\x83\x66\xce\x6d\x2b\xf5\x97\xd3\x8d\x51\x98\x6c\xfd\x17\xf3\xaa\x37\x20\xea\x43\x20\x15\x9e\x11\x64\x46\xd4\xca\x2c\x5d\x8a\x18\xb3\x60\xc3\xa0\x27\xd8\x56\x07\xe5\x28\xfa\x26\xe1\x1d\x42\x9f\x2e\xf0\x84\x24\x6f\x13\x39\x01\x5d\x5b\xe3\x3c\x78\xeb\x4c\x36\x00\x41\xcf\x60\xcf\xaf\xb0\x0c\x6b\xbd\x17\x79\x5d\x6e\xc0\xaa\x79\x96\xaa\x9f\xef\x30\x51\x57\x2b\x64\x9b\xa9\x36\x55\x10\x09\xaf\xbd\xa0\xd2\x46\x9d\x81\x2d\xbc\xfe\xaa\x36\xe5\xed\x06\x12\x14\xfc\x68\x18\xc7\xce\x15\x3f\xd6\x4e\x65\x6b\x90\x81\x96\x55\xf0\x86\x53\xc4\x38\x23\x88\xca\xe2\x65\x55\x4e\x87\xf2\x10\x3d\x5a\xc4\x37\xc6\x17\x5f\xa5\xcb\x17\x5f\x7a\x69\x4b\x4b\x01\x9e\xe0\x6d\x03\x2e\xbf\x9b\x11\xad\xa8\x62\xb1\x00\x88\x4f\xc3\x87\xcb\x32\xdd\xda\x71\xee\x5d\xe0\xbe\x77\x08\xae\x41\xa4\xae\xe2\x08\xc4\xc8\xca\xe0\x90\xc1\x41\xb5\x2f\xd9\x8f\x2c\x4c\xcd\x88\x79\xcb\x06\x10\x22\x95\x28\xc5\x19\xf8\xf4\x18\x57\xc5\x57\x06\x76\x49\xf9\x2d\xec\x39\x41\x5c\x9a\x1a\x5a\x0d\x2b\xb0\xce\xb4\xe3\xae\xdf\x62\x5d\xcb\xf0\x96\x0e\x9a\x77\x46\x9f\x08\x73\x34\xdd\x73\x67\x42\x0f\xca\x75\x9a\x2c\x8e\x30\x84\x19\x93\x38\xf4\x7c\xac\xe6\x48\xc6\x20\x73\x08\xf6\xc8\xf6\x4b\x76\x5f\x1b\x46\x63\x40\xd2\x4a\xe8\xf6\x2e\x30\x3c\xa4\x52\x8b\xdb\x6b\x32\xc1\xb1\x44\xbf\x63\x5c\xfd\x2e\x40\x36\x76\xc6\x0b\xf8\xd4\x99\xa0\x7a\x4b\x25\x5b\xe0\xd0\x5a\xc2\x41\x38\x40\xd8\x5a\xbb\xf2\xbb\xc6\x06\x14\x81\xef\x2f\x2a\x8d\x0e\x96\xb3\xe0\x9a\x6a\x5e\x75\x1e\x7b\x54\xbd\x16\xaa\x06\x4f\x53\x56\xaf\x38\xe9\x25\x43\xa7\x5c\xe7\xa2\xf7\x7b\xd1\xca\x35\xbf\x84\x08\xb0\x0b\xb5\xa5\xad\x23\xa7\xd6\x80\x20\xd7\xdb\x25\xb6\xc9\xf3\x6c\x92\xcb\x45\x39\x74\xcd\x96\xc1\x68\x40\xf9\x3d\x1e\xb1\x8f\x5c\xd8\x2b\x58\xda\x3a\x03\x13\x1c\x3d\x1e\x11\x16\x23\x9c\xab\xb9\x41\xdb\xb5\x7e\x85\x85\xa5\x06\x2d\x69\x00\xd9\x78\x28\x0d\x2a\x23\x2c\x62\x57\xf1\xe2\x89\xbb\x51\x8c\x58\xd0\x08\x54\x32\x80\x42\x4f\x50\xaa\xb6\x49\xd5\x24\x52\xeb\x57\x4d\x6b\x51\x57\x84\x75\xa9\x04\xeb\xea\x73\x56\x2a\x2a\x0b\x35\x18\x20\xc0\x89\x4f\x97\x57\x67\xe8\xac\x8d\x4e\xbf\xd3\xf4\xbc\xec\x85\xe8\x59\x8d\xc2\x98\xa4\xec\x0c\xb4\xa4\xf3\xad\xe3\xb5\x25\xd4\xe0\x69\x2e\x20\x5c\xb7\xae\xcd\xaf\xa3\x39\x4d\x0a\xdf\xc5\x37\x3d\x3f\x4c\xdd\x64\x42\x9e\x48\x62\x30\xeb\x23\x01\x91\xf9\xc6\x6a\xf8\x2d\xfa\x3f\xa6\x30\x29\xfa\xc3\x88\x7d\x02\x36\x9c\x24\x0b\x40\xd4\xf4\x2d\x63\x55\x69\xe6\xb1\x76\x00\xca\xa6\x02\xa1\xf2\x40\xcc\x5e\xcf\xf1\x13\x19\x31\xd7\xcc\xff\x41\x8f\xe8\xf7\xe8\x0f\x4d\xea\x9d\x0b\xb0\x7f\x61\x3b\xc7\xc7\x20\x7c\x3d\xb8\xe5\x2c\xa3\xb4\xfc\xc6\x99\x41\x4a\x46\xc8\x1a\x64\x0d\x0f\x8c\x4d\xd9\x13\x8f\x96\xb2\x38\xc2\x53\x8b\x05\x61\x6a\xcc\x78\x4c\xc6\xa4\xc6\xa5\xb9\x82\x49\x68\x21\xe0\x8a\xc7\x64\xad\x43\xd2\x33\xd3\x9f\xc0\x74\x23\xf3\x89\xdf\x0e\x48\xf0\xf7\xd9\xdc\xde\xfa\x50\xa6\xb4\xfa\x91\x7b\xf4\xd9\x6d\xc6\xbd\xad\x33\xd5\x85\x89\xf6\xe0\x42\xb0\x03\xa8\x77\xe8\x25\x58\x39\xf7\x7a\xf5\x38\x56\x1d\x01\xfa\x65\x3d\x73\x7b\x59\x05\xb8\xba\x50\xfb\x44\xd0\x19\xd5\xf2\x7b\x7b\x87\x2d\x70\xc2\x6d\xbc\x19\x06\x64\xb4\x95\x3b\xa3\x58\x0a\x07\xb4\x72\xe4\xe9\xaf\x70\x42\x4e\x78\x5e\x15\xe0\xed\x02\x50\x19\xba\xfb\xad\xac\xbe\xd0\x7c\x78\x66\x32\x00\xc9\x9c\x9a\x9c\xfb\xfe\xd9\x05\xd2\xa7\x83\xa7\x06\x98\x0a\x16\x2d\x57\x73\x2e\xe8\xaf\xab\x68\x1b\x0b\x45\xa7\x38\x52\xe3\xbd\xd4\x71\x69\x26\xa6\xbe\xed\x67\x78\xde\xda\xd4\x77\x87\x9f\x48\x10\x02\x08\x01\x7e\xb6\x15\xe9\x5d\xa9\x55\x7e\xcb\x05\x62\xfc\xb9\x00\xa6\x72\xdf\x03\x16\x73\x90\x3a\x81\xb5\xd2\x93\x41\x0c\xaf\xa4\x40\x9f\x00\x13\xf5\x95\x32\x69\x91\x00\x31\x6e\x00\x9e\x34\x79\xce\x31\x8b\x13\x77\x85\x20\x6e\x62\x6a\x16\xcf\x78\xb1\x91\x57\x3b\x8c\x6c\x2c\xf2\xe4\xcc\xf6\x97\x95\x20\xe0\x01\x46\x52\x53\x25\x65\xaf\x4e\x15\x45\x93\x1c\xa0\x6d\xf5\x9a\x4c\xf3\xc4\xd4\xc3\x88\xb8\x88\x4d\x41\x7a\x59\xca\xca\x83\xe8\x66\xa7\x35\x61\xe5\x1b\xa4\x16\x01\xd4\x56\xdc\x30\x86\xb1\x95\x72\xfd\x5f\x73\x92\xef\x29\xb1\xf1\x4d\x43\xc1\xef\xf1\x4c\x16\xb1\xdd\x66\x6d\xf4\x95\x57\xac\xef\x3f\xf4\x4c\x65\x90\x0a\xec\x0c\xb6\x1e\x59\xcb\x58\x3a\x4c\xbd\xd5\x8d\x0c\x65\xb7\xa6\xa2\xc0\x1e\x2c\x65\xaf\x11\x26\xb3\x2c\x7a\xd6\x70\x75\x4b\x7e\x4f\x3e\x31\x16\xbd\x8e\xf9\xc9\x95\x66\xa8\x08\x75\x2f\x68\x89\xda\xe2\xee\x58\xd6\x55\x56\x06\x9b\x17\x76\x29\x7f\x5b\xd4\xe4\xa8\x2b\x0e\xd9\x2c\xcf\x82\x02\xf0\xde\xa2\x78\xd9\x97\x16\x76\xb7\x70\xc8\x63\xb4\xf0\x67\xb4\x05\x08\x97\x71\x4b\xb8\xa8\xbf\x3a\x37\xb0\xeb\xd8\x86\xca\x5d\x2f\x87\x43\x34\x9d\x08\xc3\x92\x0e\xf5\x48\x2c\xa3\xee\xac\x3d\x0c\xbe\xc0\xca\xdb\xd8\x65\xbd\xc4\xf8\x7a\x27\xc3\x93\xe3\x38\xc2\xd1\xbc\x71\x52\x13\xce\x13\x82\x59\x93\x52\x50\xfb\xb8\x7a\x44\x0c\x66\x2c\xb0\xee\x24\x01\xe0\x64\xb7\x04\xb6\xd8\x66\xa1\x15\xb1\x18\x00\xef\x0d\x0f\x37\x21\x97\x6e\xa0\x8a\x30\x67\x50\xa3\x6c\x96\x90\xea\x5a\xd9\xca\x04\x3d\xdb\x49\x12\xe5\x49\x50\x6d\x33\x23\x42\x8f\x5a\x2f\xf1\x13\x61\x5a\x15\xb3\xe3\x70\x3e\xa2\x67\x97\x67\xee\x6b\x6c\xf5\x7c\xd7\xce\x4d\x09\xc9\x9c\xf1\x88\xc1\xc1\xe5\xe5\xc3\xaa\x69\x55\x6a\xed\x2d\x34\xf7\x6d\x7d\x3a\x03\x21\x62\xe3\xe3\x79\x57\xb6\xbe\x6f\x7c\x26\x4d\xdf\x63\x08\xdd\xd8\xd9\x63\x19\x78\xb5\x0a\x04\x0c\xb3\xb1\x0e\xe5\xec\x95\x6c\xf3\x10\x0c\x53\x8e\xe6\x0d\x62\x61\x9a\x50\xb6\x5e\xf4\x2e\x29\xaa\x8a\xb8\xdb\xa0\xe5\x50\x56\x46\x00\xb4\xf4\xe7\x83\xd1\x77\xd5\xb9\xbd\xb0\x52\x7d\xd9\x13\xee\xd3\xa6\x8a\xe8\x51\x5b\x37\x57\x09\x0c\xa0\x0f\x90\xaa\xff\x93\x31\x5c\x50\x69\x84\x7b\x57\x3d\x24\xcd\xd4\xc2\x16\x9b\x83\x7b\xb1\x24\xef\x03\x90\x5e\x9d\xd7\xbd\x7a\x47\xc6\x25\xbf\x7b\x5d\x67\xd0\x91\xb5\xd6\xd4\x36\xe9\x16\x3a\x04\x66\xa9\x00\x61\x34\x05\xd9\x98\xba\xbd\x63\x9c\x34\x9a\x08\xf7\xc0\x34\x41\x39\x2a\xc0\x2f\x2c\xa6\xae\x12\x39\xd1\xbc\x0b\x27\x49\x65\x5e\x18\xb2\xcc\x95\xaf\xdd\x37\x29\x0a\x0c\xb7\x8f\x01\x48\xf0\x84\x6c\xe4\xf5\xbf\x30\x1f\xac\xa4\x22\x78\x05\x02\xe6\xb3\x2c\x59\xb4\x0b\xd4\x0f\xb5\xdf\x5a\xec\xb9\x75\x03\x0b\x11\xeb\x56\xde\x4d\x65\xd4\xb7\xed\x86\x28\x49\x94\x0b\xaa\x16\x63\x6b\x4b\x6d\xcf\xb4\xee\xec\x97\x67\xf6\xc3\x36\x86\x8a\x53\xe4\xfa\x73\xb6\x5b\xb8\xa7\x04\x35\x85\x89\xec\x14\xda\x6c\x37\xce\xd5\xbc\x16\x93\x6a\xd5\xc2\x3a\x50\xac\x76\x43\xd5\x5d\x6c\x3b\x3c\x5b\xf0\x64\xcc\xa7\x0e\x6e\xaa\xfd\xc2\x56\x2b\xc1\x6c\x60\x84\x76\xa8\xd6\x99\xa0\x5c\xd8\x82\x2b\x6d\x62\x05\x53\xfc\x79\x9c\x61\x81\x93\x84\x24\x54\xa6\xdb\x9b\xcc\xff\xf4\xc7\x95\xa3\x3d\x33\x85\x81\xa4\x2d\xb3\xf5\x99\xa6\x79\x8a\x58\x9e\x4e\xac\x94\x8b\xe5\x63\x88\x29\xea\x10\x10\x0c\x34\x96\x1b\x60\x09\x87\x41\x04\x28\xb1\x23\x16\xe0\x85\x5b\x53\x05\x8e\xe6\x94\x3c\x01\x9a\xa9\x60\x44\xca\x63\x74\xc5\x15\x39\x45\x97\x38\xbb\x07\x41\xcd\x54\xea\x9c\x19\xa7\x03\x96\x48\x4b\xad\x39\xa3\xaa\x37\x62\x16\x64\xdc\xad\xca\x49\xc4\x99\x01\x9a\x8d\x60\x61\x7d\x13\x60\x45\x77\x88\xab\xca\xe5\x8b\x52\xd9\xb0\xd8\x02\x3f\x8f\x83\xa0\xe0\xb1\x49\xba\xd8\x80\x8e\x6f\xf1\xb3\x09\x83\x3f\xc7\x0a\x9b\x22\xbc\xab\x24\x77\x1b\x67\x66\x0b\x33\x19\x7c\x65\x17\x8f\xc3\x2d\xc8\x87\x2f\x29\x67\x82\x7e\xbf\xa6\xc7\xe4\x18\x7d\x97\xf0\x89\xec\x15\xa6\x2a\xf3\x50\x12\x25\x7b\xc6\xef\x07\xff\x36\x19\x76\xdf\xb8\xd5\x2f\xf8\x3e\x54\x53\x9c\xd2\xcf\x06\x5b\x44\xfe\xe9\xf4\xe4\x24\x5d\x1c\x4d\xf2\xe8\x91\x28\xfd\x17\xc8\x14\xb5\x2b\xe4\x80\xb9\x70\x1d\xcc\xd7\xba\xd5\x59\x86\x08\x6b\x45\x91\x36\x5b\x49\x12\x80\xa3\xd7\x57\xba\xaf\x57\xeb\x10\xa5\x38\xab\x2f\xc6\x69\xa7\x2c\xf2\xa6\xe3\x55\xc2\xb1\x7e\x1d\x6d\xc5\xd4\xe3\x0d\xe1\xb3\xa7\x09\x9e\x55\x54\x96\x0d\x94\x94\xeb\x94\x5a\x2a\xd2\x73\x87\x30\x16\x7d\xca\xca\xc1\x7b\x5f\x39\x2f\x2f\x78\x6b\xad\x17\xeb\x78\xc4\xfa\x12\x3d\x13\x53\x66\x17\x52\x3d\xc1\xe9\x93\x53\x39\xf7\x89\x9e\x60\x86\x86\x46\x0d\xca\xb0\x01\xa3\xb0\x8a\xa3\xd3\xac\x9c\x5b\xcc\x6a\xa0\x38\x91\xa4\xa7\x1b\x06\x93\xaa\x8b\xcf\x44\xcf\x02\x67\x19\x11\x23\x66\x11\x63\x01\x17\x9d\x73\x1b\x7b\xd3\x14\xa4\xdf\x69\x94\xaf\xab\x51\x06\x6b\x4f\xca\x79\xa0\xeb\xce\x37\xa4\x8d\xae\x5a\xe1\xba\x4c\x48\xb7\x7c\x5a\x16\x6d\x1b\x40\xff\xf6\x66\xe3\x96\x63\x5e\xa7\x9d\xf7\x2b\xd9\x0f\x50\xc5\x3b\x05\x05\x52\x16\xc5\x4a\x9d\xad\xcf\xab\xef\x25\x31\x07\x00\xc7\xe1\xe3\x98\x13\x19\x18\xf1\x91\xb7\xc5\x25\x74\x4a\xb4\xf4\x31\x62\x9a\x8c\x43\x87\x83\xc1\x2d\x77\x30\xe6\xba\xd3\x48\x70\x29\x6d\x42\x83\x69\x67\x75\x5a\xda\x0e\x25\x12\x0d\xf8\xfa\xf0\xfa\x6a\xbc\x5c\x2c\x31\x78\xe6\xca\x26\xda\x87\xb5\xd8\x05\x8d\x4d\xad\x2d\x92\x58\xac\xc5\x06\x65\x12\x4f\xce\x2e\x86\xbe\x36\x58\xa5\xeb\xe5\x3a\x89\x21\x60\x7d\x73\xa5\xc4\xe5\x19\x07\x35\x13\x2b\x4d\xac\xa8\x9a\xb8\x7e\xb3\xca\x61\xd4\xbb\xa0\x11\x56\xb6\x7e\x2d\x7f\x28\xd3\xcc\xba\x68\xff\x3d\x6d\x53\xc3\xb5\x12\x81\xc0\xf8\xd2\x81\x0b\x20\x78\xe9\xb7\xa4\xc2\x69\x16\x66\xb2\x3a\x38\x56\x3b\x4d\x73\xd4\x9a\x2e\xc1\x57\x85\x89\x8f\xb0\x09\x12\xaa\x0e\x6e\x69\x2b\x36\xf3\x78\xdd\x5b\xf4\xf9\x7d\x44\x87\xbf\x5e\x6a\x78\xb2\x28\x82\x21\xa5\x95\xdd\x5c\x65\xf3\x06\xbb\xff\x84\x78\xa4\xfd\xc6\x0d\xdd\x35\xf7\xd3\x23\x72\x09\x82\xa5\x75\x7f\x43\x8a\x64\x25\x7d\x6a\x03\xf3\xb0\x1f\xb3\x49\xb2\x3e\xf2\xb5\x2d\x82\xab\xc6\x96\x6b\x8b\xdc\x41\xa4\x42\x90\x27\x22\x80\x76\x6c\x28\x15\x2b\x1f\x55\x9c\x08\x82\xe3\x45\xb0\x22\x3e\x8e\xc3\xf4\x0c\xe6\x31\x49\x53\xad\xc0\x83\x6a\xc2\xf8\x11\xcf\x9c\xce\x52\x7a\x0b\x0a\x93\xd0\xa9\xbe\xb1\x82\x28\x10\xfd\x05\x3b\x22\x9f\xa9\x54\x5a\xae\xa8\x09\x81\x75\x8d\x80\xc4\x03\xe5\xca\xe6\xc4\xde\x70\xa3\x0f\xfd\xef\xae\x6f\xef\x07\xe7\xa3\x0f\x45\xd2\x83\xcb\xea\xf3\x40\x5b\xae\x6e\x02\x67\x23\xe6\xe3\x94\x3d\xae\x34\xec\x25\xc2\x71\x5c\x00\x46\x58\x25\xd2\xc8\x6c\x2b\x39\x72\x70\x2a\xd6\x46\x28\xaf\x68\xe6\x01\x52\xbb\x0e\xf5\x64\xad\x70\x9d\x95\x4e\x8e\x49\x50\x5b\x91\x49\xb4\xa7\xcb\x26\x84\xc4\x55\x46\xd7\x26\xca\x61\x36\x32\xf2\xec\x74\x25\xb8\x9d\x4f\xb0\xb9\x84\x37\xe3\x76\x6e\x43\xb6\xd8\xd4\x8f\xf4\x33\x89\x6f\x1b\xa4\xaa\xbd\x24\x0a\xb5\x0a\xb0\xac\xdd\x85\x9c\xd1\x4d\x34\x7e\x3f\x95\x07\xfd\x5d\x7b\xb6\x74\x5d\x20\xdd\x15\xa8\xb5\x00\x59\xab\x10\x46\x11\x11\x0a\x53\x86\xa6\x70\xb0\x59\xb4\x40\x80\x83\x42\xc0\x87\xfd\x47\x94\x52\x06\x80\x0c\xab\x96\xf6\xa1\x3c\x8f\x0d\x84\xd6\xcb\xe1\xd5\xc3\x7d\x49\x54\xfd\xfe\xfa\xa1\x5c\x2b\xbf\xff\xf3\x4a\x59\xb5\xd2\xc2\xaa\x60\xa1\x60\x8a\x45\x72\xa7\x05\xef\xf5\x2b\x53\x3b\xd1\x64\xa1\xc8\xc3\xed\xc5\x4e\xf2\x5d\xbd\xb3\xac\x11\x7a\x3d\x94\xae\xea\x81\x26\xda\x7c\x1a\x93\x68\x1d\x38\x6c\x7b\x3a\x32\x51\x50\x7a\x1d\xac\x35\xd1\x02\xc7\x61\x89\x32\x2c\xac\x1f\x2a\x36\x01\x50\xe5\x82\x6b\x46\xf3\x5a\x05\xcc\xf1\x89\xa8\x1f\xf5\xd5\xc7\xd9\x3e\x92\x4b\xac\x28\x0b\xfe\x51\x32\x7e\x32\x0d\x6f\x70\xd2\xec\x50\x56\x64\x10\x39\x61\x19\x7a\x40\xb6\x87\x10\xce\xe2\xd8\x14\xde\xef\xeb\xe6\x60\x45\x5c\x98\xa6\x56\x49\x39\xd3\x14\x69\x50\x6a\x1d\xb4\x6d\xd0\x1c\x9f\x9a\x8f\x5b\x02\xfd\x05\xc9\x02\xba\xad\x62\x29\x51\xff\x66\x58\xb3\xd6\x17\x55\x17\xd2\x97\x55\x25\x28\xf1\xde\xac\x7d\x63\x4f\x05\x59\x9f\x07\x01\x36\x65\x67\xba\x1b\xba\x94\x71\xfa\xdf\x94\x23\x09\x0e\x01\x04\xb9\x4e\x65\x28\x65\x73\xaf\xc1\x3b\xde\x2c\xc1\xb1\x58\x86\x0d\xb1\xa4\xc2\x01\xd9\xec\x9a\x10\x3f\x69\x39\x74\xbb\x17\xe2\x29\x71\x53\x87\xd8\xc6\x16\xec\x0d\x63\xaa\x98\x4d\x1b\x90\xa9\x1f\x0d\x45\x7b\x0c\x12\x40\x55\x71\x75\x2e\x5d\xc8\xb5\x85\x04\x08\xa7\x1b\x52\xdb\x66\xb8\x54\xc5\xf8\x9c\xf9\xdb\x42\x7c\xe3\x0c\x5b\xbb\x03\x28\x51\xae\x00\x45\x5d\xbd\xc2\xe3\x11\x0b\x02\x56\xa4\x51\x7b\xf4\x19\x71\x35\x5f\xa0\x90\x30\x03\xbc\x70\xc8\x7d\xf2\xc2\x4f\x69\x07\xaa\xc8\x03\x6a\x5e\xae\xda\xb2\xd4\x8f\x3d\x9d\x72\x8e\x5d\x7e\xa7\xb3\xa0\xd8\x38\xc0\xd0\xbe\x04\xed\x05\x75\x1a\x6c\xc7\x60\x8e\x06\xa3\x05\x0e\xaa\x00\x06\x98\x00\x31\x27\x92\x7d\xa5\x7c\x06\x2d\x4d\x16\x2e\xa4\xba\xe2\x1e\xd0\x52\x1d\xa6\xb6\xe5\xd5\x07\x7c\x0f\xa0\x57\x9b\x2a\x0e\xc1\xb1\x5a\x6b\xa6\x72\x3e\x5e\xa0\x84\x30\x16\x09\x3a\x6d\xb2\xaa\x7f\xce\x48\xb4\x0d\x32\xcf\x0d\x16\x38\x25\x8a\x88\x55\xe1\x48\xe5\x1a\xdd\x20\xe2\xb8\x1d\xb4\xfd\x9a\x5d\x34\x05\x4c\xaa\x95\x6e\xbc\x76\x7b\xb1\x0e\x69\xc7\xcf\x62\x23\x50\x31\x3d\x8d\x1f\xad\xe5\x7f\xc3\x59\xd8\x7e\x8a\x69\xd8\x68\xab\x00\x58\x69\xd7\x39\xbd\x0e\xc2\xcc\xfd\x12\x56\x4b\x29\x5c\xe8\x40\xa0\x65\xd6\x8f\xb2\x09\x53\x66\x1d\x2f\xdd\x0b\xef\x76\x19\x0e\x2e\x33\xb9\x72\xa8\x4a\xb9\x13\x40\x25\xa0\x52\x19\x78\x95\x7a\x5c\x18\x10\x5a\xea\x22\x24\x03\xb7\x9f\x45\x0d\x2c\x0c\xba\x56\xb2\xaa\xd6\xec\xaa\x2c\xd7\x1a\x1e\xb7\x2f\xcc\x8c\x4e\xa2\xd9\xb7\x44\xb3\x8e\x94\x4b\xd1\xb5\x9a\x3a\x89\xa8\xc0\xf7\xd8\x5a\xda\x16\x77\xa1\x3c\x41\x48\xe9\xb2\x57\xa4\x2d\xc8\x0b\x57\x3f\x65\xfe\x5f\x65\x0e\xee\x88\x3a\x24\xd5\xba\x5c\xd5\xe3\xc0\x05\x05\x1e\xa8\x24\x94\x06\x6c\x5c\x0d\x8c\xd6\x84\x41\x1a\x2b\xff\xf0\xca\x38\xb0\x20\x67\x7c\xc1\x73\xf4\x4c\xe5\x1c\x29\x3e\x62\x10\x27\xe8\xbd\x01\x8a\x23\xf3\x62\x0f\xde\x02\x74\x09\x99\x4f\x52\xaa\x10\x0e\x66\x58\x32\x49\xf6\xec\x79\xd6\x1f\xc0\x8c\x6b\xe1\x0b\xea\x90\x8f\xd6\x1c\x9a\x2d\xec\x6b\x45\x23\xbb\x22\x14\x04\x31\xcd\x2f\x8b\x51\x10\x68\x3c\xa1\x86\x59\x7b\xe6\x3a\x90\x02\x54\x6f\x6d\xb0\x58\xac\x00\x98\x4b\xa5\xaa\xdc\x2d\xd6\xd0\xb3\x06\xa0\xa0\xd8\x88\x56\x08\x05\xc5\xeb\xfb\x80\x28\x68\xaa\xfe\xb6\x2a\x65\xd5\x7d\xd2\x60\xff\x76\xa9\xd0\x8a\xbb\xc0\xf9\x50\x52\xba\x69\x94\x94\x0e\x0d\x2c\xae\x48\x08\xd8\x3e\xbc\xbc\x29\x7a\x19\xce\x78\xc4\x59\x4c\x37\x88\x17\x86\x0a\x5f\x93\x7c\xda\x67\x8b\xf5\xd8\x43\x69\x18\xa8\x6f\xed\x25\x81\x24\x52\x8f\x7a\xb9\x56\x65\x2d\xda\x0f\x29\x3d\x48\x09\x2d\xc3\x01\x91\xea\xed\xc4\xb8\x82\xbc\x9f\x08\xaa\xf7\x2f\xe5\xa2\x8e\x58\xbd\x94\xb4\x9a\x6f\xef\x9a\x46\xb2\x57\xe0\xbb\x80\x47\xb8\x59\x58\xab\xdb\x4f\x3e\x10\xcf\x28\xf4\xb6\x0e\x7f\x55\x0c\x2e\xdc\x90\x4d\x01\x54\x5a\x38\xda\x26\xd7\xbc\x86\x73\xd4\x0f\x7d\x29\xc9\x63\xed\xd9\xb5\x82\xc1\x1e\xd5\xcf\xa5\x1b\xa4\x75\x4e\x8c\x97\xe3\xed\x8d\x61\x83\xba\x63\x6f\x6b\xa8\xb8\x93\xb7\x29\x30\x0c\x80\xb2\x7b\x83\xc1\xad\x22\x53\xe8\xc6\x7b\xe0\x82\xb6\x63\xc7\x26\x1c\xc7\x83\xb3\x57\xf6\xa4\x34\x63\x13\x52\xf9\x22\xb3\xde\xb4\x2a\x74\xe0\x13\x15\x36\x26\x99\x86\xd6\x0d\x28\x07\x6d\x43\x39\x2b\xb7\x85\x17\x40\x73\x16\x13\xc1\x08\x56\xf3\xd7\xcb\x04\x39\xdb\xd5\x84\x1e\x8c\xef\x65\xb3\x42\xec\x48\x71\x39\x39\x64\x97\xe1\x96\xcb\xe3\xaf\x1d\xa7\x7e\xbd\x8d\x35\xcb\x06\x48\xf8\x02\xd1\x4b\xea\x6d\x8d\x69\x33\xc0\x1f\xda\x84\x4a\x77\x4a\x16\xa9\x57\x39\x5f\x26\x6d\xa6\xc6\x36\xb5\x94\x30\xa3\x4f\x7b\x58\x56\x7b\xcd\x92\x7c\x11\xf9\x29\x2f\x9f\x32\xb1\xaa\x80\x77\x1e\x64\x51\x40\x15\x75\x85\x29\xb3\xdc\x6b\x55\xe2\x84\x96\x7b\x53\x5c\x97\x2b\x71\xf0\x59\x38\x5f\x7c\x12\x4e\x97\x92\xd1\xa5\x64\xd4\xec\x51\x97\x92\x81\xd0\xa1\xa5\x64\xac\x53\x41\x57\x19\x69\xbd\xdf\x10\x0a\xad\x96\xaa\x1b\x99\xfd\x5d\xa3\x47\x6e\x9f\x76\xe0\xec\x9c\x61\xcc\x96\xfd\xc5\xfe\x50\x1b\xb6\xb5\xf4\x59\x75\xb6\xa1\xcd\x95\x2d\xaa\xae\x0b\x2c\xe2\xc4\x42\x10\xda\xa0\xea\xb2\x8d\x6c\x95\x39\x77\xc4\xbe\xe7\xcf\xe4\x89\x88\x1e\xc2\x0a\xa5\x1c\x70\xad\x8a\x18\x1e\x38\x08\x25\x34\x7b\x13\xab\x81\xd1\x15\x4e\x49\x6c\x8a\x5d\x06\xa1\x97\xd6\xa8\x6c\xdd\xc1\x75\x48\xbb\x00\x1a\x6b\xb6\xc1\xc5\x76\x8c\x98\x09\x87\x34\x21\x78\x20\x2b\x50\x37\x31\x20\x98\xdf\x79\x67\xf5\xef\x8e\xd1\xbd\xbe\x9f\xa8\x2c\x8f\x37\x00\xde\x6b\x1a\xdb\x88\xcd\x04\xcf\x33\x6f\xe7\xe3\x13\x53\xf5\xd8\x44\x68\x2d\x3b\xab\x61\x30\xce\x53\x1d\xe1\x58\xeb\xe2\xab\x09\xe7\x4d\x22\x65\xb7\x82\x59\x0a\x09\x48\x1f\x43\x1f\xfe\x67\xc3\xf1\x8d\x8f\x39\x00\x97\x59\x85\xc1\xff\x42\x0e\xf0\x73\x22\xc1\x2a\xe4\x3d\x03\xa5\x5c\xf7\x32\x9e\x42\xed\x38\x57\xd9\x6d\xbd\x6f\xc5\xf9\x1f\xea\xa1\x1a\x8a\xce\x6d\x5c\x9a\x49\xa4\xb5\xf7\xc4\x8b\x59\x74\x5b\x47\xf8\x36\xf1\x8b\x9b\x5c\x64\x1c\x24\xb1\x64\xe1\xa0\x25\x2c\xc8\x5f\xc6\xb3\xdc\xc4\xde\xd1\x30\x14\xab\x96\xb2\xa9\x54\x97\x58\x45\x73\xcd\xb9\x0b\x54\xb6\x3d\xc5\x24\x16\x5c\xf9\x65\xad\xbc\x35\x33\x38\x0b\x7b\x6f\x70\x7b\xac\xa2\x9e\x20\xc6\xd0\x07\x72\x7a\x49\x22\xd5\xfd\x19\xd7\xa0\xad\x65\x1e\xd8\x45\xdd\x27\xf6\x89\x9e\xe8\x3a\x2a\x5a\x37\xfe\x76\xb4\x55\x2e\xb6\xb6\xf7\x68\xc7\x1d\x60\x6e\xce\x2d\xa8\x58\xf1\xa2\x2d\xce\xdb\x10\xa2\x20\xe8\x76\x99\x4a\xb6\x40\xc2\x93\x16\x47\xbc\xc5\x35\xc5\x99\x56\x22\x14\xd7\xb7\xa4\x98\x19\x39\xd6\xc4\xf2\x22\x8c\x72\x41\xdd\xd9\xaf\xe4\xad\x37\x53\x07\x58\x28\x4f\xc2\x62\x5a\x11\x0e\xea\x0c\x9a\xa0\x04\x1c\xa9\x1c\xfb\xe0\x49\xa0\x09\x57\xff\xde\xe4\xe8\x3b\xe7\xbf\x70\xe2\x5d\xcd\x9e\xae\x25\xec\x1d\x76\x19\xd7\x61\x30\xb6\x3a\x69\x94\xcd\x02\x00\xc7\x7a\x2b\x71\x9b\xb2\x17\xb5\x5f\xb6\x2b\xdd\x51\xfb\xa9\x93\x7d\xb6\xf9\x76\x05\xc0\xd4\xd6\xf1\xe3\xa5\x58\x7c\x1b\xac\x6b\xa5\xa7\x10\x5a\xd3\xda\xef\x00\x78\x98\x42\x30\x01\xb6\xd2\xd4\x7f\xf9\xbf\x4c\x99\x34\xb3\x34\xff\x85\xb8\x18\x31\xf3\x7b\xcf\x97\x28\xd1\x2f\x14\xd8\xbf\x38\x25\x05\x8c\xa7\x28\x03\xfe\x01\xec\x89\x05\x6c\x33\x38\xcf\xbe\x42\x83\x1e\xc3\x63\x3e\x21\x82\x11\x3d\x34\x07\x90\xe0\x99\x59\x8a\x19\x9e\x01\xaa\x74\x0f\xa2\xf7\x40\x5c\x2d\x54\x11\x43\xd2\xa6\xd4\x25\x70\x2b\xcd\x2c\x6d\x4e\x70\x51\xf2\x19\xfa\x34\xa2\xac\x05\xb5\x2d\x42\x40\xea\xa9\xff\xd6\xf6\xbf\x9d\xc4\x7e\xdf\xbf\xfb\x61\x7c\x3b\xb8\xbb\x7e\xb8\x3d\x2b\x89\xed\x67\x17\x0f\x77\xf7\x83\xdb\xda\x67\x45\x3e\xed\x5f\x1f\x06\x0f\x0d\x8f\x5c\x03\x17\xfd\xef\x06\xa5\xfa\xe9\x7f\x7d\xe8\x5f\x0c\xef\x7f\x1e\x5f\x7f\x1c\xdf\x0d\x6e\x7f\x1c\x9e\x0d\xc6\x77\x37\x83\xb3\xe1\xc7\xe1\x59\x5f\x7f\x19\xbe\x7b\x73\xf1\xf0\x69\x78\x35\x76\xa1\xd1\xe1\xa3\x9f\xae\x6f\x7f\xf8\x78\x71\xfd\xd3\x38\xe8\xf2\xfa\xea\xe3\xf0\x53\xdd\x2c\xfa\x77\x77\xc3\x4f\x57\x97\x83\xab\xd5\x75\xda\xeb\x57\xa3\xb1\x04\x74\x70\x91\x05\x46\xa3\x40\x4c\x9a\x2c\x2c\x69\xd3\x5f\xc1\x77\x71\x63\xe8\xf1\xa8\xe7\xfe\x32\x55\xd5\x8f\x34\x0b\x74\x7e\xb1\x82\x7b\x8c\x98\x77\xae\xfa\x4b\x55\xe1\x99\x74\xe9\xd1\xa5\xd1\x9e\xa2\x3e\x9c\x15\x50\x18\x4a\x9d\x42\xf6\x85\x1f\xa9\x73\xc7\x03\x1d\x26\x34\xa5\xe0\x99\x47\x47\xa8\xba\xe1\xe5\x06\xed\x9c\x60\x08\xd6\x6f\x17\xaf\x3a\x0d\xb2\x9a\x79\x0d\x94\x72\x8a\x1c\x87\x26\xc6\x9c\x60\xf0\x71\x17\x0c\xa7\x34\xaa\xa6\x89\x00\x44\x2c\x2a\xe0\x50\xaa\x2d\x96\x08\xac\xdc\xf2\x9c\xa0\x1f\xfe\x52\x0c\x0a\x3c\x18\x56\xf3\xce\x97\x8a\x29\xda\x07\x22\x37\xab\xba\x8e\x3c\x4b\x3d\xb9\x63\x6e\x4d\xcb\x70\x6e\x6d\xd1\x76\x70\x37\xe5\x2c\x80\x44\x2b\xf9\x9e\xf4\xf1\x36\x33\xaa\xd0\xf8\x29\xba\x03\x38\x16\x59\xa8\xee\x7a\x17\xb3\x24\x9f\x51\x86\x68\x9a\x25\xc0\x63\x8c\x3e\x3f\x21\x73\xfc\x44\xb9\xab\x5c\x62\x0a\xbc\xc0\x3a\x5a\xd1\x0a\x1d\xa1\xc6\x83\x72\x8a\xfa\x71\x2c\xcb\x0c\xae\x44\x39\x8e\x65\x1e\x95\x87\x1d\xa2\x98\xb1\xd8\xb3\xcd\x0a\x1d\x15\x47\x0e\x56\x6c\xff\x80\x33\xcb\xec\xb0\x7c\xf7\xee\x70\xfd\xeb\x15\x1c\x3b\x52\x1e\x6f\x25\x0c\xdc\x63\xf9\xe8\x58\xf3\x3a\x81\xc0\x41\xff\xec\xd6\xa3\xc5\x00\x6a\xdb\xa9\x5f\xd9\x31\x1c\xb4\xed\xfa\x6c\x44\xae\x5e\xd3\xa5\x9b\x71\x52\xa9\xda\xd6\xba\xbf\x52\xd5\xb7\xda\xce\xf6\xea\xed\xa9\x97\xc6\xe0\x48\x8e\x3d\xfd\x6f\x30\x8f\x1b\xf8\xf4\xda\x7f\xb9\x52\x64\x1b\x07\xeb\xb6\xa9\x0f\x68\x29\x91\xd8\xfa\x81\x56\xd2\xe1\x9e\x20\xa8\xda\x0b\x83\x50\x73\x83\x46\xe0\xee\xc3\x94\xd9\x4a\x4c\xc4\xfb\xa3\x5c\xed\x71\x7d\x8e\x7d\x75\x40\x3c\xe1\x4f\x25\xe5\x32\x25\x52\xe2\x06\x50\x95\xc0\x24\xb6\x0b\x63\xf0\x27\xd4\x7e\xd8\x92\x9e\xdc\x99\xbc\xd7\x5f\xad\x32\xfa\xdc\x86\x9a\xb1\x9b\xa8\x16\x58\x63\x17\x0d\x8c\xae\x4d\x4e\xa0\xe6\x2f\xbd\x22\x98\x86\x8b\x20\xc6\xa8\xc9\xfd\xd3\xd2\xac\x56\x5d\xb0\xda\x02\x5b\xa1\x0b\x6f\xf3\x18\x9c\xa0\xf5\xad\x51\xbb\xad\x5f\x05\x97\xd7\x67\x03\xaa\x2b\xf9\x3b\xc3\xe2\xe3\x11\x4f\x53\x23\x17\x94\x6c\xa9\x3d\x84\x4d\x2a\x66\x21\x4d\xc9\x3c\x9a\x1b\x2f\x93\xbe\x32\x7a\x23\xf6\x1c\x6c\x48\x29\x58\xb9\x1f\xb6\x04\x88\xa7\x9f\xf5\x71\xa3\x4f\xa5\x10\x70\x10\x19\x29\xc4\x23\x07\x84\x60\x1c\x82\x45\xe5\xb0\x35\x04\x1e\xec\xd7\x0e\xa4\xbe\x45\x99\xc8\xca\xfa\x36\x15\x8b\xf4\x73\x0b\x6a\x34\xee\xa0\x29\xb7\x1d\x42\x50\x26\xb2\x6e\x04\x7b\xa8\x12\xf9\xaa\x10\xe4\x3e\xa5\xd4\x64\x20\xa7\x13\x8b\xa3\xa1\xa7\xeb\x56\xfb\xf7\x6e\x46\xbf\x37\x7e\x87\xbc\x01\x78\x25\x68\xcd\xa3\x90\xa3\x23\x2d\xb3\x3a\x40\x00\x1b\x88\x21\xd1\x91\x41\x36\xfc\x0a\xa2\x41\xfb\x37\xc3\xaf\x7a\xe8\xab\x30\x23\xee\xab\xad\x0e\xa0\x1d\xb7\xad\x14\x09\xda\x54\x29\x2d\xa2\x7c\xec\x60\xaf\x2a\x27\xd1\xee\x99\x3d\x88\xa8\xe9\x1c\xea\x2f\x4b\xdf\x80\x73\x1a\x2a\x1f\x1a\xff\xad\x0f\xca\xb6\x2e\x20\x23\xe3\x52\x59\xb3\x76\xf1\x88\x4d\x16\x55\x27\x4f\xcf\x7b\x79\x5a\x9f\xd2\x9d\xab\xf9\xe9\xf6\x96\x53\xa8\xf7\x1c\x2c\xbc\xfa\x3e\x58\x93\x94\xdd\xf7\x25\x67\x0a\x2e\xd6\x14\xa5\xd0\x45\xd9\xd7\xcd\xaa\x64\x2f\x73\x8b\x59\xbb\x29\xeb\xe4\x9f\xf7\x46\x6e\x2d\x42\xd3\xfb\x75\x2b\x62\xb3\x12\x1a\x84\xeb\x8e\xca\x5e\x96\xca\xf6\x91\x95\x51\x1e\xdc\xe6\x17\xe8\x99\x91\xe3\x82\x66\x9c\xc1\x55\x2b\x13\x9e\xc1\x97\x4a\x3e\xae\xaf\x95\xbc\xa1\xcf\x37\x58\x93\xf5\x4e\xdf\x3b\x13\x38\x60\xdc\xae\xcb\x63\xad\x0e\xb5\xaf\x6c\xa1\x24\x4e\x4d\x06\xa6\xa2\x29\xe9\x99\xca\x5c\x45\xb0\x83\x3d\xaf\x40\x6e\x26\x46\x69\x4e\xa8\x70\x9d\x58\x1c\xc4\x8d\x52\xf6\x37\x94\xc6\x9b\x68\x64\x87\x48\x93\xab\xfe\xe5\xe0\x7c\x3c\xb8\xba\x1f\xde\xff\x5c\x83\x71\x59\x7e\xec\x60\x2e\x83\x17\xee\x7e\xbe\xbb\x1f\x5c\x8e\x3f\x0d\xae\x06\xb7\xfd\xfb\x35\x10\x98\xab\x3a\x6b\x82\x57\xcc\x65\x9d\xfa\xb6\x09\xc4\xa2\x33\xf3\xd6\xf4\xbe\x0c\x84\x19\x74\x42\x49\x03\x18\xa6\x81\x27\x60\x31\x11\x28\x26\x4f\x24\xe1\x59\x61\x56\xad\x5d\xb0\x00\x25\xb3\xa6\xfd\x55\x48\x99\xd0\x66\x75\x8d\x4f\x91\x29\xf3\x17\x54\x3a\xf6\x0d\x82\xc8\x87\x05\x61\x5f\x29\x44\x3e\x67\x09\x8d\xa8\x0a\xd2\x17\xb9\xb0\xee\x15\xe3\x3e\x84\xe8\xd4\x35\xc4\xb5\xb7\x68\x94\xbd\xeb\xfc\xa1\x27\x7d\x59\xdb\xf7\x27\xca\xa3\xb6\xad\x2d\x72\xb4\x07\xc5\xbe\xc1\x69\xbc\x04\x2a\xb7\xc5\xe8\x5e\xc2\x3c\xb0\x9c\xa3\x63\x53\x10\x1b\x00\xe7\xea\x07\xb9\xfe\x36\x5c\x15\x27\x53\x3a\xd7\xab\x03\x65\xda\x51\xea\x1b\x87\xbb\x94\x6a\xaa\xee\x01\x1d\xc4\xc6\xae\x6f\x18\xb0\xb0\x54\xd3\x86\x99\x98\x53\x8c\x04\x49\xb9\xd2\x0a\x98\x89\x08\xe8\x69\xa1\x8a\xe2\x84\xfe\x0a\x38\x5a\x82\x1c\x07\x11\x14\x0e\x7d\xac\x70\x1f\x58\x8c\x8b\xe3\x11\x3b\x1f\xdc\xdc\x0e\xce\x34\x43\x3a\x46\x0f\x12\x20\xb2\x4a\x53\x3f\xb7\xe4\x6d\xc4\xb1\x30\x92\x81\x32\xa9\x08\x6e\x0a\x06\x23\x42\x70\xd1\x9e\x3f\xf8\xfe\x06\xf0\x5d\x3d\x79\xc3\xb3\x92\x6d\xca\x19\x00\xae\x1a\x0b\x62\x07\x39\x03\x7b\xcf\xc9\xba\xc5\xcf\xa5\x15\x09\x21\x42\x40\x12\x29\xaf\xfa\x0b\xae\x36\x80\x8c\xb6\x9f\x5f\xa9\xcf\x1b\xf8\x76\xd5\x3c\xef\x21\xc4\x4e\xaa\x02\xb1\xd4\x80\x9a\xfa\xca\x3c\x95\x79\x36\x8a\x8a\xe2\x2d\xe0\x44\x2a\xa4\x3f\x21\x33\xcc\x90\xc8\x19\xab\x40\xd8\x86\x96\xb6\xe5\xa0\x99\x4d\x8f\xaa\x5e\x33\x9c\xf2\x9c\x99\xd2\xb2\x7a\x54\x35\x83\x91\x19\x61\x6a\xcd\x60\xde\x0a\x2c\xa6\x32\xd4\xc3\xc5\x8b\xa9\x19\x68\x13\x64\x4c\x9d\x3f\x09\xaa\x6e\x6f\x76\x2d\xbb\xa0\xbc\x92\x53\x49\x1f\x2a\x7f\x3f\xd7\x6b\xd9\x58\x3e\xee\xdc\xdd\x3d\x96\x8f\xeb\xbb\x8a\x49\xf4\xb8\xe9\x65\x53\xcd\xcc\x4c\x6c\xd1\xf2\x25\x63\xdf\x42\x3f\xb5\xe5\x63\xa0\x56\x7d\xf4\x88\xbe\xbf\xbf\xbc\x40\x53\xaa\xe5\x5e\x7d\xad\x5c\x61\x2d\x63\x3f\x88\xc4\xd9\x85\xad\x6d\x35\x17\x89\xbf\x7b\x61\xe3\x9d\x28\x15\x48\x09\xfa\x46\xc3\x33\xe2\x8c\xbd\xc2\x22\x02\x56\xca\xc7\x08\xcc\x62\x9e\x9a\x79\x9c\xc8\x7c\x3a\xa5\x9f\x8f\x15\x16\xdf\x34\xac\x87\x89\xaa\x18\xff\x9d\x4f\xc6\x7a\x44\x3b\x5e\xc4\x75\xcd\x21\x5b\x4b\xdb\x2f\x9b\x9d\xd9\xb9\x79\xf7\xff\xf2\x09\x64\xbb\x43\xc2\xbe\xf3\xce\xd9\x48\x05\xfb\x8a\xa3\xa4\xa2\xb8\x74\x09\x88\x25\xe2\x42\x10\x9b\x24\x6f\xea\x9f\x66\x58\x28\x0a\xd6\x5a\x07\xe4\x52\x42\xf0\x2f\xb6\x28\xac\xf6\x3e\xc7\x05\x5a\xf6\x84\x10\x70\xf0\x64\x34\xd9\x4c\xe9\x3d\x2b\xf9\x26\x2b\x27\xd0\x46\x9e\x5a\x6c\x4f\x30\xc8\xac\x15\xb1\x06\x4f\x84\xa9\xbd\xe8\x27\xd0\x44\x4d\xda\x7e\x3b\x2f\x83\x29\x43\x3a\x3c\x2f\x2e\x37\x17\xd2\x1b\x46\x35\x29\x81\xe1\x9e\xb7\x89\x52\xd6\xa5\xde\xe4\xe8\x7f\x6a\xed\x3b\x86\x57\x97\xd7\x65\x4d\x68\xbc\x5d\xed\xa2\xca\x7b\x11\xd6\xea\xca\x0f\x6c\x09\x36\x24\x89\xb1\x62\x04\x20\x17\x56\x39\xad\xee\xb9\xe9\x53\xd3\x56\xa5\xcb\xb5\x5b\xbe\x05\xb2\x4e\xa9\x99\x4f\x04\x52\x3a\xf7\x11\x88\xbe\x49\xee\x3e\x0c\xe4\x41\x24\x10\x42\xbd\xd2\x8a\x65\x4a\xa1\x6b\xce\xe7\x25\x3b\xdc\x42\x46\x37\x83\xd1\x42\x23\xc9\x04\x89\xf4\x55\x76\x8a\x6e\x12\xa2\x25\xaf\x5c\x4b\x5f\x79\x92\x38\x14\xb2\xd5\xd2\xe1\x46\xc8\x79\x2f\x3e\xaf\x40\xf7\x58\x31\x31\x87\xc2\xb7\x7a\x66\xc1\x1a\xec\x1f\x71\x21\x58\x5f\x30\x21\x83\x21\xb1\xac\x45\x02\x87\x5f\x98\xb8\x59\x30\x25\xe1\xd2\x45\x46\x7f\xd5\xec\x57\x10\x39\xe7\x8d\x49\x8e\xe1\x6c\x5f\x66\x0e\x6e\x29\x5f\x70\x12\xee\x3e\x6c\x8a\xab\x6e\x21\xd7\x54\xee\xc0\x92\x88\xb3\x6a\x8a\xbe\x42\x85\x8f\xfe\xb0\x98\xb0\xf6\x6e\xb5\x43\x83\x5b\xb2\x30\xb5\x85\xf8\x6c\x85\xeb\xa2\x50\x66\x16\xc6\xf7\xea\x3f\x2f\x0c\xc8\x45\x4a\x00\x55\xb2\xa8\x8c\x87\xf4\x5d\xdb\xb4\xc5\x7a\x9e\xe3\x5c\x6c\x04\x49\x51\x20\xab\x6f\xc2\xb9\x6d\x32\x4a\x31\x2c\xbd\x08\xf5\xec\xd2\x16\xbc\x00\x31\xda\x86\x1a\xc9\x12\x5a\x9d\x25\x1b\xb3\x8c\xb5\x2a\x5e\x33\x53\xde\xd5\xad\x06\x52\x72\x21\xca\xbc\x94\x77\xad\x44\x81\xa5\x09\x74\xf8\x67\x9b\xe3\x9f\xd9\xea\x27\x9e\xf6\x00\xad\x50\x09\x48\xfc\x2f\x1c\x68\x55\xc1\xc1\x1a\xbd\xd7\x65\x3e\x95\x76\xa7\x55\x9a\x53\xe9\x0b\xcd\x4b\xce\x77\xf4\xc0\xe9\xc9\x2c\xc6\x90\x38\xba\x4b\x14\x4e\x69\xfe\xc6\x7b\x00\x6d\x92\x18\x19\xf4\x02\x83\xce\x6c\xd7\xce\x7b\x4e\x32\x2c\x08\x53\x23\x76\xab\x47\x61\xbe\x28\x22\x31\x5c\x1c\x8e\x43\xcc\x87\xba\xba\x53\x84\xed\x57\xb0\xe8\x4d\x81\x70\x72\x6c\x5e\x02\xd5\xf4\x05\x93\xec\xbf\x33\xef\x18\xcc\x03\x8b\xf9\xa3\xa7\x4a\xa7\x85\x1a\xaf\x05\xc8\x68\x4e\x01\x72\x20\x26\xd2\x5e\x48\x54\x59\x4c\x09\x2f\x7e\xe7\xc4\x61\x44\xc3\x67\x9e\x7f\xd5\x31\x6c\x67\x28\x60\xce\x40\x27\x47\x2c\xe8\x63\x05\xa4\xa8\x51\xd6\xb7\x54\x25\x60\x9f\x69\xec\x1d\x5f\xf0\x4f\xb3\x43\x5c\xd0\x19\x65\x41\x61\x27\x3b\xbd\x14\x67\x60\xde\x35\x67\x90\x4f\xfd\x9d\x76\x6f\xb3\x0c\x8e\x61\xc4\xff\xf3\xdf\x7f\x3b\xa6\x4d\xde\x0f\x39\xb6\x2b\x70\x08\x3b\xb9\xd9\xb6\x84\x3b\x1f\xa0\x88\x34\xa0\x53\x04\x3a\xad\x2c\x65\x4e\x14\xbf\xda\xcb\x4d\x13\x0d\x57\x73\xe3\xee\x2d\x93\x3b\xf8\x46\x44\xbe\xe2\x6c\x98\x2b\xe6\x6d\xd7\x92\x4a\xc8\x0e\xd0\x23\x31\x27\xd9\x1b\x08\xc2\xa2\xe9\x4b\x66\x9a\x11\x2b\x3e\x91\x06\x0f\xc5\x40\xd0\x9a\x1f\x8a\xd5\x69\xb9\x30\xab\x78\x7f\x11\x29\x51\xb8\xc3\x83\x68\x64\x57\xe2\xc3\x44\x91\xea\xf6\x2b\x37\x6d\x85\x73\x07\x58\x8c\xbb\x44\x6d\xce\xb1\x7c\xb9\xd0\x9c\xda\xd2\x54\xc6\x9a\x1e\x0a\x0f\xeb\x82\x74\xcc\x20\x4d\xb6\xa7\xde\x90\x5c\x12\x61\x38\x9d\x87\xc3\xb2\x94\x10\x22\x4d\x42\x8c\xe6\x1a\x5f\x23\x49\x31\xdd\x28\x9f\x40\xbf\x5f\x8f\x83\x59\x72\x36\xe0\x19\x11\xe3\x38\x57\x4b\xc7\x62\x55\x8c\xbf\xfe\xe8\x3c\x57\x8b\xf5\xed\xcb\x04\x2f\x97\xe6\x59\x85\x3d\xaa\xdf\x6f\x68\x76\xbd\xc4\x1c\x84\xf8\x94\xa5\xe6\x06\x64\x4f\x52\x41\xf6\xb4\x31\xa7\x25\x13\x09\xdc\xc0\x4c\x01\xa4\x5e\xa1\x49\xd9\x2b\xda\xe0\x8f\xc3\xc8\xd1\x24\x2f\x4c\x4a\xbe\xa2\x43\x7c\x3c\x62\x1f\x4d\x49\x14\xd0\xf2\xcc\x00\x22\x48\xf8\x21\x9f\x33\x2e\x49\x29\x03\xad\xa6\x4a\x83\xcd\x20\xb5\xc3\xa8\x17\xd6\x8b\x8f\x76\x97\xd5\xdf\x1c\xa3\x75\x79\xc3\x97\xa7\x5c\x4f\x81\x3b\x89\x83\x11\xcd\xa8\xa6\x9d\x71\xed\x49\x7b\xb9\x4a\xc1\x45\x4c\x17\xe0\x60\xa9\x64\xd1\x43\x7e\x7a\x15\x82\x48\xc8\x13\x01\x73\x3a\x8c\x31\xac\xc5\x51\xb6\xeb\x35\xb0\x93\x75\x07\xa8\x48\xff\x04\xb6\x80\xe2\xea\x08\xca\x49\x72\x75\xb4\x58\x4e\xff\xd9\x39\x53\xad\x2e\x30\x65\x03\xf1\xbc\x1f\xd6\x24\x59\x10\x85\xc8\x67\x45\x6c\xd5\xd2\x7b\x97\x4b\xb8\x9c\x7e\x80\xea\xd3\xa1\x9a\x65\xc7\x17\xaf\x1f\xdd\x77\x19\xe4\x2e\x59\x32\x76\x57\xbe\x4d\x1e\x9c\x63\x16\xdb\x8c\x58\xab\x64\x68\x61\x0b\x66\x67\x8c\x6e\x3e\x57\xc0\xe6\x75\x06\x60\xee\xa6\x4d\x83\x3a\x0f\x17\x99\x53\x18\xb5\xca\x02\xe1\x15\x5c\x68\xc9\x3d\x67\x8a\x26\x9a\x38\xec\x18\x24\x9a\x42\x64\x9c\x05\x2a\x84\xc8\xf6\x26\x2c\x3c\x2a\x25\x65\xb3\xb1\x5d\x49\x97\xdc\xd9\xee\x62\x28\xd3\xd4\xa5\x69\xca\xfc\xf8\x9d\x6b\x68\xb5\x51\xdd\x90\x35\xe0\x94\xb9\xb4\x52\xd0\x38\x18\x77\x93\xb1\x00\x73\x2e\x1b\x75\x4c\x63\xb3\x14\xd4\x14\xc7\x86\x89\x6e\x62\x77\x07\x99\x6e\x19\xc7\xa1\xb8\x42\xa4\x4d\x15\x35\x09\x60\x10\xa9\xaf\x1a\x72\x61\x65\x63\x0e\xec\x90\x79\x11\xcd\x96\xe6\xf2\x99\xfe\x95\x74\x5a\xec\xba\xb3\xe9\x08\x38\x49\x26\x38\x7a\xf4\x5a\x98\xb7\x45\x70\xe1\x4a\x1b\x68\xb9\x12\x6a\xb7\x19\xe2\xd2\x03\x8d\x40\xba\x09\xbd\x85\x06\xc9\xc7\x0e\xbb\xe8\xdc\xac\x9a\x85\x48\x33\xd0\x4d\x66\xf4\x26\xb7\x21\x26\x59\xc2\x17\x69\xc3\x7d\x56\x4d\x21\xdc\x25\x52\xa7\x29\x83\x71\xaf\x57\x59\x85\xe9\x6d\x7c\x99\x2d\xe5\x23\xed\x01\x57\x6a\x03\x2e\xf9\x29\xe1\x13\x30\xa9\x5a\xf3\x83\xcb\xb1\x09\x52\x3d\xaa\xe7\x79\xd3\xcc\x9f\xea\x89\xa4\x32\x4b\xb4\x32\xd3\xdc\x83\xc9\x39\x79\xd9\x7d\x33\x18\x05\xeb\xad\x83\xed\xa3\xb5\x6b\x3f\x7f\x09\x04\xe3\x0b\x27\x09\x98\x77\x0d\xff\xaa\x58\xd9\x4c\xb2\xdf\xb1\x71\x52\x2b\x3e\x62\x0a\xcf\xdc\xe6\x5a\xe1\x92\x3f\x33\x22\xe4\x9c\x66\xa5\x9a\x8e\x3b\x87\x87\x5b\x8a\xb6\xff\x31\xc1\xd0\x1b\xf0\x4e\x9e\x1d\x19\x84\x12\x4d\x1f\x32\xc3\x51\x61\x15\x8d\x12\x2c\x25\x9d\x2e\x02\x60\x11\x1f\x69\x0b\xe9\x5b\x65\x33\x42\x50\x46\xad\x8e\xd1\x98\xf1\xed\x27\xb3\x7e\xf7\xac\xc2\x87\xf2\xf1\xa3\x71\x88\xe0\xa6\xef\x93\x65\x14\x19\x77\x53\x5b\x34\x99\x46\x24\x5a\x03\x21\xb0\x5d\x26\xfc\x4a\xf0\x9f\x66\x33\x42\x21\x4c\xda\x61\x5b\x45\xc6\x03\x7e\x84\x60\x38\xaa\x94\x4a\x09\x9b\xaf\x15\x27\x67\x17\xd6\xc4\xe9\xc1\x42\x00\x53\xa1\xf8\xb8\x87\xe4\x4e\x20\x5b\x6d\xe8\xe2\x9c\x24\x64\x2f\x11\xd7\x5b\x10\x49\x35\x9c\x21\x20\x8f\x95\xa4\x51\x94\x19\x58\x6f\x5c\xd8\x22\x10\xbc\x01\xaa\xa7\x7e\xe8\x3f\x99\x81\xda\x58\xf0\xba\x5d\x04\xc3\x20\xac\x72\x5b\xdd\xa5\x0e\xf3\xcf\xb4\x60\x49\xae\xe8\xa6\x44\x57\x45\xa7\x5e\x5e\x39\x44\x52\x7b\xe3\x90\xe9\xa5\x71\x7d\x22\x6d\xc2\x3b\xd6\x1e\x80\xad\x38\xd0\x32\x9f\x6e\x47\x17\xd6\x81\xaa\x38\x9a\x11\xc0\x64\xa1\x2c\xa6\x4f\x34\xce\x71\xf2\xae\x68\x62\x6f\x09\x1f\x7b\x5a\xfd\xfa\x43\xbe\xd9\xa9\xbd\x23\x4a\xba\x2b\x61\x09\x46\xd1\x6e\xce\x01\x6e\xc1\x61\x1c\x4b\x23\xb8\x7e\xf1\x72\xcb\xce\x20\x09\x76\x64\x16\x2a\xe0\x37\x24\x50\x99\x39\xc6\xf6\x0b\x0f\x0b\x50\x02\xc4\xc2\x25\x10\x41\xb3\x46\x6f\xcf\xf5\xaa\xa4\xfd\xa5\x8b\x5e\x9b\xd3\x78\x75\x54\x05\x75\x77\xf2\xe0\x66\xf2\xa0\x03\xd9\x3c\xc0\xcb\xbf\xe9\x18\x1c\xe6\xfd\x73\x00\xc2\xe1\xd2\x95\xb8\x3f\x11\xf1\x1d\x91\xc9\x41\x48\x8a\x4b\x5b\xf1\x5a\xf2\xe2\x91\x43\x39\x2a\x30\x83\x0e\x77\x8b\x0e\xe3\x24\xdf\x5a\x37\xd0\xcb\x5d\xb0\xeb\xe9\x65\x2f\xf4\x01\x80\x9f\x18\xf2\xa2\x73\x5b\x41\x04\x0e\x6f\x10\x4b\xb7\xe4\x7b\x58\x13\xa5\x68\x87\xd7\x2a\x3e\x71\x69\x39\x5f\x62\x7b\x6d\x12\x5c\xeb\xcd\x7d\x49\x52\xdb\x74\x2c\xfb\xd0\x51\x5e\xd8\x8b\x63\xa9\x31\xf8\xa0\x0b\x16\x6e\x77\x8b\xd6\x40\xeb\xb8\x2d\xdb\xe7\x21\xab\x2b\xfb\xb6\x7b\x1a\xbf\xcb\xf1\x1b\x67\x82\x4c\xe9\xe7\xad\x44\xf1\x1b\xf8\xd4\xaa\x97\x7a\x99\x2b\x85\xe4\xc0\x3d\x03\x85\xe7\x82\x80\x46\xbb\xd2\xb6\xd8\xd4\x88\x15\x99\x91\x36\x2d\xf2\x91\x2c\x10\x17\xa5\x9f\xb6\x05\x81\xdc\x7f\xd1\x3b\xb3\xaf\x73\xa5\x32\x79\x7a\x72\x32\xa3\x6a\x9e\x4f\x8e\x23\x9e\x9a\x38\x7c\x2e\x66\xe6\x8f\x13\x2a\x65\x4e\xe4\xc9\x1f\xff\xf0\x87\x62\x8b\x27\x38\x7a\x9c\x19\x58\x9d\x65\xbf\x53\x79\xcb\x09\x96\xbb\x45\xf6\xb8\x14\xb6\x17\x4e\x65\x0e\xba\x71\xc9\xa3\xfa\x1b\xa9\x70\x9a\x85\xa1\xa0\xa6\x6c\x9c\x54\xb8\x28\x56\x01\x79\x89\x7a\x9a\x68\x8e\xb3\x8c\xb0\x66\xb3\x83\x49\x34\xdd\x81\xf5\xb8\x54\x55\x3b\x42\xf2\x39\x4b\x30\x2b\xc3\x2f\x40\xe5\x25\x41\x22\xc2\x94\x85\x06\x28\xca\x5d\x03\x35\x1a\x08\x20\xc3\xff\x37\x4b\x45\x84\x39\x52\x59\x94\x54\x73\xc3\xb1\xe5\x4d\x5d\xd1\x4b\x1c\x2c\x5d\xb5\xa4\x6c\xb1\x76\xc4\xad\xda\xaa\x24\xc5\xbb\xe5\xf2\xe7\x9b\x97\xb4\x11\x9c\x8d\xc9\x67\xcd\xe4\xe4\xb6\x80\x5d\x0f\x92\x48\xd4\xff\xe9\x0e\xc9\x05\x53\xf8\xf3\x29\xba\xa4\x0c\x04\xd8\xef\x79\x2e\x24\x3a\xc7\x8b\x23\x3e\x3d\x4a\x39\x53\x73\x74\x09\xff\x6b\x7f\x7a\x26\xe4\x11\xfd\x4c\xb0\xb0\xfc\xc1\x96\xa4\xf3\x35\xd8\x35\x09\x89\x9c\x49\x44\x9e\xf4\x09\xfd\xc3\x7f\xa2\xd4\xb4\x7c\x8a\xbe\x3d\xf9\xc3\x7f\xa2\xdf\xc1\xff\xff\xff\xd1\xef\x1a\x34\xfd\xcd\x20\xbf\xa0\x72\xf1\x6d\xd9\x9d\xdb\xab\xac\xd4\x16\x15\xe7\xcf\x04\x2f\x76\xaa\xb6\xe5\x47\x1a\x3d\xf2\xe9\x74\xac\x09\xc3\x24\xf2\x8d\xb1\x58\x82\x8b\xde\x12\x3f\x95\xda\xda\xd3\xa6\x92\x5d\x51\x43\xc6\x76\x6a\x10\x1f\x1c\xbb\x96\x79\x51\x79\x17\x82\x88\x4a\xd5\x8c\xa9\x84\xaf\x48\xac\xb9\xea\x26\xa7\xc3\x59\xf7\x5c\xf2\xb7\xb3\xe0\x84\x08\x29\x61\x3d\x75\x1f\xf8\x17\x46\xb1\x9a\x40\x1f\xbb\x90\xb5\xc7\x61\x29\xbc\xf6\x8b\x89\x99\x84\xa9\xbd\x55\xbc\xa4\x5c\xea\x7c\x7d\xa8\xe4\x1d\x17\x3b\xe9\x5b\x8f\xa4\x31\x95\x61\x4d\xbd\x24\x57\xc3\x37\xac\xec\x0f\x19\xe2\x5c\x78\x1c\x63\x63\x17\xb1\x55\x15\xd7\x5b\x31\xa9\x30\xc1\x65\xed\x0e\xbd\x9e\xfa\xb9\xff\x64\xdd\x30\x21\xd2\xcc\xbd\x5d\xd4\x8b\x83\xd1\x6a\x11\x49\xb3\xc4\x9a\x11\xd7\x80\x1d\xae\xdb\xd0\x3b\x8f\x6f\x01\x8d\x43\xd8\x23\xe4\x6f\x30\x27\xd9\x5a\x00\x81\xfa\xfd\xcc\x45\x44\xce\xf8\x6e\x61\xaf\x09\x65\x4b\xf1\xf2\xed\x4b\x11\xf9\xd5\xbb\xb0\x45\xa7\x1c\x1e\x30\x8f\x0b\x65\xc1\xb8\x05\x6c\x15\x8a\x00\x88\xb4\x3c\x1b\x00\xb4\xdb\x07\xd6\xe5\x52\x6d\x84\x1d\xb8\xb6\x31\x1c\x17\x0c\xcf\x95\xd6\xa8\x54\xd4\x10\x58\xf3\xc2\x15\xb1\x6b\x10\x54\xb4\xf3\x38\x82\x2a\x31\x45\xa4\x52\xa5\x1a\x3b\x36\xa5\x52\xc4\x96\x58\xa5\xa6\x60\x53\x0f\x09\x0c\x41\x99\x6a\xae\xdb\x93\x44\x1c\x4d\x71\x44\xd9\xac\x17\xc0\x54\x02\x64\x44\x78\x1d\xd4\x11\xe9\x3d\x96\x8f\xfb\x0d\x34\xdc\xb9\x80\x25\x8d\x8b\x22\x6a\x16\x58\xc6\x38\x36\xe8\x12\x46\x9f\xc2\xf2\xb1\x09\x59\x69\x09\xd6\x6d\xc5\xe8\xfc\x52\x38\x30\xb8\x55\xe3\x73\x29\xe8\x24\xd4\xa7\xa0\x66\x83\x2b\xa9\x6c\x41\x1e\x5d\xc6\x1f\xf6\x28\x2c\x55\x74\xd3\x15\xe3\x97\x73\x2e\xd4\x78\x4b\x5c\xd8\x6a\x1a\x3d\x23\x47\x09\x00\xba\xf0\x27\x22\x9e\x28\x79\x2e\xc3\xab\x6e\x42\x8b\xc6\x68\x16\x44\xd5\x01\xfe\x66\x9a\x71\x48\xa1\x99\xa2\x14\xb3\x85\x61\x94\x9a\xb9\x60\xf9\x28\x7d\x21\x57\x24\x53\x9c\x24\x3d\x24\x48\x2e\x4d\x81\x63\x49\x92\xe9\x91\x2b\x85\x11\xa3\x84\xcf\x68\x84\x13\x34\x49\x78\xf4\x28\x4d\x86\x1b\x9b\x19\x26\x95\x09\x1e\x11\x29\x03\xc9\xaa\xc8\x66\xb7\x39\x86\x50\xc5\x55\x11\x91\x52\x46\xa5\xa2\x91\x13\x99\x0a\x50\x0a\x53\x4b\x3c\xc2\x60\x12\x86\x8c\x4d\x18\xae\x96\xf4\x88\x01\xe7\xcc\x99\x2d\x9a\x04\xd7\xb5\xc5\xdc\x73\x41\xe2\x4d\x07\x68\x0f\x10\x82\x8e\x42\xc6\xaa\x7c\x20\xd7\x1c\xa9\x33\xfb\x19\x1c\xe3\x55\x24\x70\x5b\x3e\x51\x9e\x20\xfd\x49\x2b\xc1\x1a\x41\x4c\xb9\x0f\x81\x2f\x49\x2e\x3e\x32\xfc\xc0\x10\xcd\x60\xc8\x0d\x38\x66\xeb\x68\x5a\xaf\x22\x88\x3c\x50\xa7\xab\xea\x35\xa7\x2c\x4a\xf2\xd8\x57\x6a\xd4\x22\xc0\x93\x26\x12\xb7\x3c\x7a\xed\xb5\xa0\xd0\x43\x58\xa2\x67\x92\x24\xfa\xbf\x26\x02\xfe\xc8\x17\x4e\xd0\x2c\xd9\x14\xb7\x80\x4e\x1c\x97\x6e\xa2\xa8\x83\x43\xa7\xbc\xc1\x6a\x6e\x72\xfe\x53\xae\x4c\x91\x4c\x83\x4e\xe9\xec\x5b\x06\xce\x70\x92\xf0\x09\x9c\x74\x00\xae\x74\x79\xae\x41\x5a\x5d\x1e\x45\x84\xc4\x24\x46\x5f\x07\x07\xd7\xe3\x51\x7c\x53\x0f\xa3\x58\x5a\x91\x03\x00\xad\xac\x1a\xd6\x1a\xa1\x2b\xcb\x75\xde\x8e\xd1\x4d\x05\x98\x25\xac\xdf\x8e\xab\x30\x5d\xbd\xa5\x2d\x7c\x1b\xa0\xcb\xca\x24\x5e\x6e\x87\x36\x04\xba\x2c\xf5\xb9\x07\xa0\xcb\xca\x3c\x1b\x62\xf7\xf9\xec\x45\x73\x8e\xf5\xa4\x2e\x78\xfb\x44\x30\x03\x10\x66\xee\xce\x12\x09\xba\x03\xb9\xa8\x23\xc4\xc3\x02\xf1\xac\x54\x43\x7c\x5b\x10\xcf\xca\x60\x0e\x19\xc4\xb3\x32\xd4\xc3\x05\xf1\xac\x19\x68\x0b\x10\x4f\xe3\xdc\x1f\x6b\xa2\x6e\xc7\x14\x20\xb1\x65\x92\x4f\xef\x20\xd5\x7b\xe5\x18\xcf\x4c\xe0\x80\xb9\xc6\xdc\x1d\x6d\x31\xad\x61\xb4\x36\x07\xb2\x29\x1c\xaa\xe2\x84\xd8\x94\xf6\xbc\xf7\xcd\x80\x3f\x6c\x6a\x76\xef\x85\xd6\x6e\xb0\x43\x46\x38\xb3\x39\xe5\x4d\xa5\x66\x0e\x27\x7b\x76\x3b\x7c\x54\xc0\x20\x2c\xb1\xfc\x56\x08\x62\x97\x95\xaa\x0d\x73\xfe\x6c\x2b\x27\x01\x19\x1a\xa2\x6c\x24\x41\xe8\x74\x6c\x95\xb6\xa6\x95\xa3\x4c\x91\x59\x55\xa7\x2d\x0e\x0d\x65\xea\x4f\x7f\x5c\xcb\x89\x0c\xc4\xa2\x53\x0f\x83\xda\x09\xde\xd9\x61\x9f\x91\x18\x45\x73\xad\x15\x49\xad\xbe\xe8\xe9\x98\x9b\x55\xa2\x14\x53\xa7\x48\xe5\xd2\xb8\x96\xa8\x1c\xb1\x12\x26\xe9\x31\xfa\x08\x05\x61\x71\x9a\x69\xfd\xcb\xcf\x8f\x6a\x4a\x1a\xe5\xdf\x7e\xfb\x27\x82\xbe\x45\x29\xc1\xac\xa4\xc3\x82\xda\xa4\xaf\x3e\xc0\xf0\x53\x73\x32\x62\xb5\x5b\x81\x06\x9f\x4d\x8d\x29\x17\xef\x37\x64\x53\xee\x74\x62\x28\x74\x88\xa3\x39\x92\xf9\xc4\x54\xea\x0d\x6c\x18\x4e\x90\xbe\xe0\x33\x70\x54\xc3\x8d\xec\x06\xbd\xea\x14\xbe\x6c\x0c\x80\x75\x37\xb6\xbd\x8d\xfb\x70\x8f\x1c\x49\x52\xc2\x76\xaa\x71\x9a\x19\xce\x17\x1e\x7c\x69\x70\x5f\x7a\xc6\x87\xa0\xf5\x33\x6c\x2d\xfb\x5a\x96\x86\x70\x5e\xf0\x92\xe5\x09\x16\xf6\xe8\x8f\x98\x56\x34\x04\x79\xa2\x3c\x97\xc9\x02\xc5\x9c\x91\x1e\x50\x42\x1e\xcd\x8d\x63\x55\xeb\x2c\xd8\x16\xac\x78\xa2\x32\xd7\x0a\x2d\xb4\xe5\xea\x63\x48\x85\x0d\x26\xd5\x9c\x42\x3f\x5a\xfd\x26\xf0\x55\x98\x25\x87\xda\x69\x51\x21\x6c\x6c\x85\xe7\xb7\x84\x8d\x2d\x51\x55\x07\x1b\xeb\x61\x63\x97\xd7\xe5\x10\x61\x63\x2b\x7b\xde\x0e\x36\xb6\x6e\xcb\xb7\x80\x8d\x2d\x35\xf3\xc5\xc0\xc6\x56\x56\xf4\x8b\x81\x8d\xad\xcc\xab\x83\x8d\xfd\xf2\x60\x63\x77\x04\x46\xad\xe7\xc5\x06\x5f\x49\x51\xb6\xd8\x98\xc8\xbe\x92\x68\x78\xad\x09\x2c\x7a\x2c\x07\xb5\xf9\xeb\x6a\x77\x30\xd6\x7a\x26\xb4\x19\x18\x6b\xad\xaa\xde\xcc\xea\x76\x05\x78\x02\xc5\xe0\x95\xc1\x58\x4b\x13\xe8\xe2\x2b\x37\x8f\xaf\xac\x25\x3e\xdb\xb7\x1e\x9e\x0b\xba\xac\x5e\xc8\x2d\xe1\x58\x4b\xfb\xd3\x2a\x12\x13\x44\xf7\x3d\x50\xe2\xcb\x4a\xf3\xf7\xa5\x43\xbe\x56\x96\x0f\x57\x51\x5a\x60\x68\x2d\xe1\x39\xb4\x38\xa3\x84\x87\xfe\xff\x8e\x72\xb7\x88\x0c\xae\x2c\xaf\xf7\xab\x18\x5a\x6c\x41\xaa\xad\x29\xd4\x69\xa5\xfb\x49\x94\x75\xc9\x93\x1b\xba\x98\xdd\x20\xee\x32\x12\x35\xd8\x98\x69\x4a\xf7\xd5\xec\xba\x8b\xcc\x63\x61\x81\x42\xbe\x94\x17\xaa\xaf\x27\x33\x1c\x23\xe3\x57\xd2\x61\x01\xa8\xc3\x7c\x39\xa3\x52\x89\xc6\xd8\xa6\xa5\x11\xee\xe2\x2a\xcd\xf2\xd6\x01\x31\xc1\xaa\xce\xb6\xfb\x2c\x25\x29\x17\xeb\x02\xab\x6a\xbf\xb4\xa5\x6e\xb6\xf9\x94\x64\x73\x92\x6a\x49\x66\xbc\x69\x23\x6d\xf7\xdb\x27\x0d\xdb\xdc\x35\x13\xe8\x58\x22\x82\xc0\x11\xaa\xdf\x8d\x0d\x22\x65\xeb\xed\xde\x75\x9b\x2d\x66\xe6\x86\x0e\x21\x07\xa6\xbc\xda\xe0\x66\x5f\x2a\xb9\xbb\x81\xbe\x6b\x63\x3a\x7c\x48\xcd\xfa\xa8\x8d\x15\xf1\x1a\xab\x70\xa7\x8a\xaf\x6c\x21\xe8\x0d\x5c\xf9\x65\xef\xbc\xe6\x84\x61\x15\xe0\xcd\x03\x3c\x1a\x50\x53\x97\x97\x07\x22\x73\x24\x11\x47\xa1\x66\x50\x1a\xcc\xf2\x7a\x95\xa8\xc4\x69\x94\x3b\x10\x49\x2e\x1a\xa3\x4c\xdb\x18\xb4\x23\x95\xe3\x04\x34\x89\xb0\x7a\x65\x75\x53\x27\x8b\x9a\xb4\xc7\x76\x1e\x13\xca\xd4\x9f\xff\x63\xa3\xdd\xd4\xaa\x95\x5d\x37\xa8\xb8\x85\xa3\x88\x48\x63\x63\xb7\x51\xc8\x78\xc2\x9f\xa0\xd8\xd6\x2e\xbb\xaa\x8f\xb2\x9e\xb7\x66\xf0\x1e\x8a\x38\x2e\x48\xdd\x88\x0b\x73\xc1\xf3\xd9\xdc\xd9\x90\xf4\x99\xd1\x53\xab\xdb\xcb\x1f\x97\x6c\xe4\x1b\xef\xe5\x77\x39\x4d\xb6\xb3\xd0\xdd\x95\xca\x90\x7d\x1a\xde\x23\x39\xf7\xa7\x75\x02\xcd\xd6\x6e\xec\xf2\xa0\xdb\xf7\x69\xbf\xf5\xfe\x1a\xe8\xa6\xe7\xe0\x37\xa7\x3c\x49\xc0\xd3\x20\x49\xfa\x44\x44\x7d\xf7\x30\xe1\x7b\xba\x19\x72\x9e\x1f\x00\x7c\x5d\x24\x46\xb4\x92\xbf\x6e\x8c\x68\x28\x91\x1b\x7d\x35\x68\xc1\x84\xaa\x71\x46\x58\x9d\x8d\xed\xa7\xe5\x0a\x30\xef\x2c\x60\xd0\x45\x8f\xed\x2d\x68\xd0\x2d\xc9\x2b\x07\x0e\xae\x99\xc7\xa1\x06\x0f\x56\x98\x9d\x8f\xe5\x2b\xae\x19\x17\x38\x64\x14\x9f\xbe\x5e\xe2\x11\xeb\x97\xf2\x29\x5c\xa5\xec\xc9\xa2\x08\xc8\x36\x3a\x44\xc8\xcc\xa0\xce\x86\x35\xac\x80\x1b\x4d\xff\x05\x9a\x8e\x01\xaf\x35\x21\x85\x2e\x6c\x10\xa2\xc9\x49\x7c\x84\xa3\x45\x94\xd0\x28\xd0\x99\x67\x02\x67\xf3\x3a\x8e\xe7\x76\xbe\x43\xdd\x79\x2b\xd4\x9d\xa6\x82\x54\x9b\xc4\x6d\x3b\xba\x62\x38\x25\x1d\x1a\x50\x1d\x1a\x50\xcf\xe3\x5d\xb0\xa2\xb4\xd6\x1b\xc2\x28\x2c\x9f\xbb\x0e\x12\xe8\x0d\x20\x81\xb6\x39\x7c\x05\xde\x4f\xe9\xd8\x75\x30\x45\x1f\x5a\xc1\x14\xf9\x4b\xf0\xa0\x90\x67\x9a\xcf\xe3\x1b\x23\x9a\x2c\x0f\xec\x2d\x61\x89\x6a\xc4\x85\x4d\xe4\xa6\x55\xb8\x44\xab\xe8\xa2\xd5\xba\xbc\x2d\x4a\xd0\x66\x2b\xb3\x11\x00\x50\xed\xdd\x75\x20\x70\x40\xcd\xdb\x70\x20\xe7\x66\x9f\x59\x2d\x9b\xd5\x0e\x0d\x33\x5b\x36\x51\xb0\x36\x4b\x72\xf1\xf4\xf0\xbe\x12\x5d\x8a\x22\x6b\xdb\x25\xbb\xf4\x9d\x0f\x9a\x08\x34\xe7\x49\xec\x40\x28\xfc\x6a\xf9\x0e\x7c\x26\x80\x5f\x20\xb7\x19\x50\xec\x1c\xb4\xad\xa2\x20\xd8\xaa\x94\x16\xbf\x89\x30\xdc\x3d\x30\x9a\x7d\x58\x11\x3c\x27\xd9\xc6\x7e\xb0\x56\x16\x91\x65\xf3\xf7\x8a\x31\x96\x56\x08\xac\xe6\xf5\xc3\x5c\x6b\xf7\x5d\x33\xb8\x55\xa2\x47\x60\x1c\x14\x75\xa5\x3e\x0d\x9d\xc1\xd3\x27\xea\x0c\x11\x38\xec\x71\xa5\x97\xce\xcd\xae\x95\xa7\xae\x4a\x2c\x5b\x04\x83\x2d\x55\x6e\xdb\x1d\x1c\x28\xc5\x9f\xc7\x19\x16\x38\x49\x48\x42\x65\xfa\x62\xc1\xc0\x67\x65\x77\xad\x3e\xab\x82\x1b\x13\x11\xcb\xd3\x89\x21\x45\x37\x10\x5b\xec\x4f\x71\x24\x72\x16\x42\x9b\xf9\x8d\xf1\xc5\x04\x73\xb8\x17\xc0\xaa\x14\xcd\xa1\x6a\xeb\x14\x53\xc1\x88\x6c\xac\x91\x49\xa2\x5c\x50\xb5\x18\xdb\x92\xa3\xed\x0f\xdc\x9d\xfd\xf2\xcc\x7e\xb8\xda\xc3\xed\xb2\xfa\x5d\x7f\xbe\xc4\x69\x46\x04\x94\x09\x72\x05\x6f\x82\xb2\xaa\x16\xb5\x81\xf8\x5a\x43\x10\xfe\xbc\x74\x6d\x37\x05\x0e\xe3\xe7\x71\x90\x51\x35\x8e\xaa\xc4\xb1\xee\xb0\xd6\xe1\x4e\xad\x9a\xe4\x0b\x23\x2f\x35\x78\x91\x5f\xa0\xca\x88\x4d\x9b\x30\x4d\xeb\x01\x07\xae\x60\xb0\x57\x16\x1b\x13\xa4\xbc\x5b\xa5\xaa\x61\x9c\x16\xeb\xa7\x2e\xf8\x68\xc5\x60\xfb\xc1\x57\x2d\x46\x1c\x74\xb2\xa7\x61\xeb\x83\x2e\x44\x9e\x29\x3a\x59\x86\xb6\x51\xfb\x2b\x21\xda\x4f\x20\xcd\xda\xb9\x19\x4a\xdd\x9a\xba\xa2\x25\x4e\x6c\x67\xa7\xe5\x7f\x8b\x23\xe6\x10\x82\x0c\xc2\x52\x98\xc7\x77\x9d\x52\xa5\x5c\xa2\x80\x31\x40\x6b\xea\x2c\xdb\x66\xbf\x72\xe1\x1e\x18\x2a\xbd\x1a\x13\xd1\xf1\x88\xf5\x25\x7a\x26\x88\x11\x0b\x21\x51\x53\xc3\xd5\x5b\xb5\xa1\xf6\xd3\x84\xe8\x9e\x7c\x6c\x8a\x16\x1e\xa8\x92\xbe\xfc\x98\xe9\x63\x8a\x13\x49\x7a\xba\x61\xa8\x5a\xaa\x38\x04\x7f\x62\xf4\x2c\x70\x96\x11\x31\x62\x36\x8b\x03\x1c\x2e\x9c\x27\xa6\xfd\xa6\x10\x57\xbb\x06\x64\x1c\xe1\x68\xfe\x4a\x7b\x84\x21\x19\x27\x9a\x93\xd8\xe5\x0b\x97\xb7\xc7\xcd\xdb\x18\xac\x37\xd8\xac\xe1\xd4\x95\xcf\xea\xd9\x4e\x92\x48\x73\x14\x5f\x66\x3a\x23\x42\x8f\x5a\xd3\xf0\x13\x61\x88\x4e\xdd\x38\x6c\xec\x0e\x7a\x06\xcf\x94\x26\xfd\x27\x4c\x13\x93\x80\xef\xba\x76\x42\xa0\x31\xbf\x8f\x98\x71\x77\xb3\xa8\x94\xa1\x4a\x19\x95\x73\xcd\xa9\x73\xf0\x49\x82\x9a\xd1\x94\x38\xc3\x9e\x36\x39\xcd\x03\xfd\xfa\x6a\x0e\xfa\x44\x05\x67\x29\x24\xc9\x58\x5c\x26\xb7\x7c\x92\x28\x7f\x3c\x6a\x53\x1c\xd7\x4a\xc4\x71\x2c\xcb\xc6\x4f\xa3\x56\xd2\x5f\x4b\x66\x97\xa3\x52\x56\x60\x14\xc0\x0a\x41\x10\xa7\xab\x2c\xb6\x4a\xfe\xed\x52\x1b\x96\x53\x1b\xea\xd7\xe6\x10\xd3\x1b\xfc\x21\xde\x34\xc5\xa1\x69\xfb\xf7\x21\xd9\xee\x31\xd5\xe1\x8d\x73\x02\x5e\x26\x1d\xe0\x6d\xf3\x37\x5e\x22\x75\xa3\x4b\x70\x78\xc3\x04\x87\xd6\x96\xda\x72\x6c\x76\xf3\xb1\xdd\x28\x39\x60\x0d\x98\x53\x5d\x2f\x97\x44\x09\x1a\xc9\x7d\xf0\x07\x99\xe1\x96\x51\x6d\xa0\x05\x66\x6b\xa4\x26\xfd\x82\x77\x42\x42\x9c\x98\xaf\xf3\x37\x11\x04\x3f\xc6\xfc\x79\xc9\x56\x27\x43\x34\x8d\x4b\xae\xc5\x1e\x41\x22\x2a\x49\x29\x92\x85\x4a\xc4\x88\xb4\xc6\x4e\x3c\x62\x73\x4a\x04\x16\xd1\x1c\xb2\x1b\x8b\x8d\x31\x59\xb2\x06\xd0\xc8\xc4\x32\x84\xde\xa6\x0d\x36\xbd\xc5\xba\x57\x2d\x4c\x1e\x9f\xce\xee\xb9\x1e\x49\x6a\x3e\xf1\xc2\x8c\x95\x32\x42\x93\x5c\xab\xed\xdf\x35\x10\xdf\x2f\xf6\x8b\x06\xe3\xfb\x60\xa2\xe0\x8b\x96\x01\xf9\x05\x35\x74\x41\xf9\x2f\x14\x94\x5f\xb3\xc4\x9b\x05\xe6\x6f\x65\xf2\x7b\xfd\x98\x61\xd7\xf3\x6b\xc4\x0d\xaf\x0b\xda\xca\x27\xe3\x17\x3f\x7a\xb5\x73\x6e\x7b\x02\x7f\xf2\x44\x61\x24\x62\xa1\xe9\x6c\x42\xe2\x18\x38\xad\xe2\xb6\x52\x74\x41\x3b\xce\x3c\xa0\xef\x5e\x2c\x35\xb1\xe3\x84\xb3\x99\xa4\xb1\x01\x5b\xc9\x30\x54\x6c\x0d\x8d\x17\x00\x2e\x00\xfb\x9b\x24\x44\x38\xaf\x84\x40\x5f\x4b\xca\x2c\x9a\xa2\xff\x2d\xe6\x44\xb2\xaf\x94\x31\x16\x60\xb6\x40\x8f\x8c\x3f\x27\x24\x9e\xc1\x0e\x55\x07\x73\x84\x28\xe9\x21\xaa\xfc\x67\x02\xd0\x08\x78\xae\x46\x7a\xec\x10\x6b\x66\x34\x00\x62\xbf\x0d\x6a\xa2\xfb\x66\xbe\x39\x46\x68\xc8\xd0\x14\x47\xaa\x87\x64\x3e\x29\xda\x8f\xb9\x29\x72\xad\xb5\xef\x60\xe2\x45\x23\x5d\xcc\x78\x4d\xe7\xf5\x67\xc3\x71\x07\x4d\xae\xfd\x84\xe2\x9d\x62\xeb\x9e\xf0\x2e\x10\xa3\x97\xb9\xb4\x41\x18\x88\x33\x7f\xf4\x2d\xbc\x92\xc7\x88\x06\xbc\x4f\x83\xb7\xcc\x78\xdc\x68\xeb\xac\x4c\x65\xd3\xb1\x14\x81\x90\x56\x50\xb2\x8e\x2a\x68\xd7\x2c\xb7\x96\x9a\xa4\x12\x04\xa7\xd6\x39\xa0\xaf\x1a\x10\x6b\x4c\x18\xa4\x1e\x3d\x15\x46\xc2\xdc\x64\x8b\x2f\x28\x7b\xd4\xbb\x5b\xa0\x62\x43\x7d\x79\xe8\xb9\x6e\xd3\x32\x7d\xe3\x91\x33\xce\x8c\x83\x70\x27\xb9\x93\xce\x18\x4e\x36\xb4\x71\x2c\xad\xdc\xb2\x4f\xcf\xc9\x59\x56\x5c\xd0\x52\x84\x31\xf6\x21\xd3\xe3\x46\x36\xa4\xca\x7c\x43\x79\x0f\xa3\x98\x64\x84\xc5\x84\x45\x0b\x20\x11\x06\xc8\x39\x82\xe1\x04\x61\xf8\x0e\x27\xc7\xe8\xdc\xe4\xd7\x78\x09\xcf\x5e\xeb\x70\xa1\xa7\x98\xd1\xa9\xd6\x13\xc0\x08\x6b\x47\x39\x62\x66\x98\xce\x07\x12\x14\xed\xf7\x2b\x56\xb7\x33\xfa\x06\xb9\xda\x11\x95\x98\x95\xbf\x47\xab\x2f\x1c\xe8\x6d\xd5\xee\xe8\xe6\x5c\x0d\x02\x99\x4f\x8e\xe0\xdf\xa5\x84\x33\x07\xd4\x53\xa0\xc8\x90\x84\x80\x39\xd0\x7a\xbc\xe0\x62\x6c\x02\x96\xdb\x87\xdf\x6e\x4d\x1e\x47\xd0\x47\x49\xa9\x49\x29\xa3\x69\x9e\x06\xce\x3b\x53\xb1\x20\xb2\xf6\x4b\x93\x89\x91\x69\x3d\x20\x72\xe0\xe5\x48\x5f\xae\x6c\x81\x66\xf4\x89\xb0\x11\xcb\x38\x65\xea\x18\x5d\x71\x45\x82\x12\x11\x06\x3a\x8a\x67\x8a\xa6\x06\xed\x54\x10\x7d\x0e\x0c\x28\x36\x00\x4d\xce\xb1\xea\xa1\x38\x87\xa3\xca\x88\xd2\xac\x43\xdf\xb8\x0a\x76\x06\xe2\xa3\xc5\x88\x99\x9b\x6e\x8a\x69\x92\x0b\x62\x65\x56\x6c\xf2\x62\x8a\x21\x17\x23\xb3\x48\x68\xc1\x24\x52\x3a\x9b\x2b\xbd\x45\x5a\xc6\xb3\xfe\xc6\xb9\xe6\x46\x7c\xc4\x26\x04\x61\x94\x71\x49\x15\x7d\xf2\xfe\x4b\x3a\x45\x58\x4a\xb0\xa0\x1c\xa3\xf3\x92\xfd\x9f\x4a\x50\xbd\x9b\xe2\x6a\x29\x1b\x5b\xdb\x73\x73\x3e\xce\xce\x1b\x59\xea\xc5\xae\x32\x9e\x48\x9e\xe4\x2a\x74\xc1\xd6\xef\x6d\x61\x1a\x77\xc0\xfd\x60\x20\xe6\xd3\x11\x73\x74\x2d\x8f\x51\x5f\x22\xc9\xf5\x2e\x49\xb3\x95\x91\xa0\x8a\x08\x6a\x50\x9c\x88\x32\x9b\xe0\xcf\xa9\x3f\x03\x29\x16\x8f\x5a\x84\x0a\x2d\xf0\x06\x53\xb4\x64\xed\x98\x18\x09\x09\x60\xad\xc2\xed\x00\xd3\x3f\x62\x9c\x1d\x31\x32\xc3\xeb\x76\x64\xc4\x4a\x5b\x82\xbe\xa6\xd3\x42\x21\x6d\xf2\x39\x06\x6b\x37\x86\xc8\xa7\xa6\x5d\x32\x1d\x37\x6d\xd2\x34\xe1\x78\x8d\xdb\x78\x5a\x1c\x7a\xf4\x77\x3e\x31\x63\xd4\x7a\x3f\x57\x20\x05\x6a\xf5\x6a\xca\x05\x99\x63\x16\xf7\xdc\x66\x95\xc7\x06\x37\xa3\x35\xb5\x39\x65\x0c\x24\x41\x07\x22\x4c\x0c\x16\x13\x66\xc1\x5e\x58\xc5\xcd\x6e\x45\xb1\x0f\x1b\xdd\x15\xbe\x35\xa8\x7d\x62\x0c\x10\x86\xe5\x2d\x32\x7b\xc4\x25\x4d\xb3\xa4\xc8\x69\x0a\x6c\xa3\x53\x2d\x62\x39\x1e\xc9\x9f\xc0\x74\xe5\xb4\x36\xb8\xd5\xed\xce\x69\x3a\xab\x19\xb9\x67\xa4\x70\x6b\x38\x9b\x97\x29\x83\x19\xb0\xb0\xaf\x25\xd1\xff\x54\xa4\x50\xfb\x8c\xb0\x3e\x62\x4e\x04\xf9\x06\xb8\x8c\x6d\x36\x30\x9e\x69\x11\xda\xc0\xbc\xda\xf5\x43\x91\x71\x72\x97\xce\x89\x3d\x0c\xee\xd5\xda\x8b\x4a\x51\x2d\x66\x7f\x47\x01\xa1\xea\x7c\x47\xd8\x79\xca\x62\xd2\x58\xcc\xa9\x15\xd7\x68\xba\x5b\x0c\x43\x1d\x6f\x5b\x7f\xe1\x7e\x4e\x24\x41\xea\xd9\x03\xa5\x69\xbd\x0a\x4c\x96\x82\x24\xe4\x09\x17\x77\x9c\xef\xcb\xb2\xcb\x08\xcb\x86\xf2\x28\x80\x36\xa6\xc7\xbf\x7d\xe2\xb0\x1f\xdf\xb5\x1e\xca\x13\x4e\x6c\xe2\x86\xf5\x95\xcb\xe6\x0d\x1b\x9e\xef\x14\x43\x6a\x5b\xa9\x5b\xcf\x66\x11\xc3\xf5\xfd\x03\x59\xd4\xaf\xc8\x1a\x10\xbf\x55\xd9\xd8\x7e\xd9\x37\xb0\x55\xdf\x14\xdf\x2c\xaf\x71\xe3\xca\xfd\x50\x9a\xf2\x1b\x24\x11\xdd\x2c\x55\x80\x86\x3f\x65\x3e\x9d\xd2\xcf\xa0\xd5\xba\x9b\xc4\x69\x1e\x91\xe0\x52\x73\x31\x90\x55\x90\xdb\x3c\xe3\x48\xde\x25\xa1\xa8\xf6\x4b\xad\x65\x6d\x4c\xd1\x8d\xab\xfd\xd7\x9c\x88\x9d\xd6\xdb\x93\xea\x26\xe1\x88\xc1\x29\xa9\xd7\x11\x5d\xa3\x0a\xb7\x8c\x49\x0a\x5b\xbd\xc7\x0d\x4b\xb7\x1e\xfe\xbb\xf6\xb3\x89\x61\xbe\x9b\x0f\x24\xe4\xda\x2b\x6d\x6a\x45\x7c\x9a\x8f\x4d\x76\x45\x79\x34\x7f\xeb\x59\x80\x71\x6c\x03\xa7\x7c\xaa\x2f\x76\x31\x23\xc6\x31\x62\x6a\x36\x29\x5b\x69\x20\xd0\xd4\x6d\x63\x94\xcd\x46\xcc\xad\xad\xec\x21\x13\x26\x5e\x61\xa8\x25\x6c\x77\x1c\x7c\xea\x09\xbb\x9d\x49\xd5\xf8\xd5\x19\x91\x52\x5f\x8c\x52\x09\x4c\x99\xf5\xe1\xb8\xf5\x91\x23\x86\x8e\xaa\x71\xea\x3d\xb0\x23\xf4\x5c\xb6\x67\xaf\x18\xa0\x1c\xb1\x6b\x63\x9d\xf9\x23\xfa\x5a\xe1\x99\xb9\x25\x00\xbd\x11\x27\x80\xfb\x08\x5a\x82\xd5\xca\x83\xe4\x00\x7f\x22\x69\xfc\xcd\xe9\xaa\x3e\x8d\x0d\xe1\x6b\x68\x06\x0e\xb9\x5e\xc3\x62\x81\xe8\xb4\xf8\x07\x89\xbf\x59\xd5\x52\xf1\xd1\x23\x59\xf4\xaa\x8b\xdc\x7c\x6f\xdc\xe3\x9d\x22\x34\x5f\xea\xe2\x80\x41\xb7\x77\x52\xe2\x09\x49\x7e\x2c\x26\x8a\x56\xb2\xa2\xef\x28\xc3\xbb\xf1\xa0\xda\xe1\xb5\x8b\x40\x9f\x2c\x9a\xea\xb6\xd5\xb0\x9e\xad\x11\x47\xfa\x46\x96\x25\x48\x77\x67\x25\x76\x57\xd5\x0f\x43\xd4\xe3\x9c\x24\x19\x8a\xe9\x14\x5c\x6f\x0a\xe8\xc5\x83\xa7\x9a\x7a\x37\x5a\xa1\x49\x73\x66\x80\x70\x4d\xd4\xc7\xb3\x3d\xe9\x96\x65\x14\x8d\x1f\x8f\xd8\x50\x7d\x25\x91\x54\x82\xb3\x99\x56\xa6\xe3\x27\x2a\x8b\x42\x6e\xfa\x40\xe6\x29\x11\xb6\x0b\x2a\x8d\xd4\x6d\x8b\x20\x61\x77\xb1\xe9\xb1\xe9\xab\x0f\x04\x1f\x57\x6c\x50\xff\x68\xf4\x0a\x3d\x4a\xe9\xa2\xa6\x6a\xc2\xde\xed\xe6\x56\x78\xe7\x2b\x9b\x2e\x7f\x0c\xad\x93\x28\x2d\x0c\x99\x8e\x5f\x9e\x54\xcd\x98\x76\xd5\x57\x98\x30\x37\xbe\x10\xda\x5e\x04\xae\x6a\x40\x6e\xd2\x9c\x74\x3f\xce\xb1\x65\x06\xb7\x91\x8a\x55\x99\xa0\x1d\xb5\xd1\x9e\x42\x13\x26\xa1\x60\xff\x90\x0a\x2b\x1a\xd9\x5b\x80\x0b\x6b\xc5\xb5\x7a\x75\xf3\xd6\xee\xaa\x93\xc8\x08\x27\xcb\x3b\xbc\xc2\xa7\x6e\xde\x5f\x6d\xe8\xb4\xc7\xcd\xb4\xbd\x12\xd8\x24\xe2\x49\xb2\x49\x99\xb6\xca\xcc\xcf\x8a\xcf\x57\x8f\xa8\xe8\x47\x6f\x80\xdb\x0b\x38\x35\xc6\x40\x81\x13\xeb\x2e\x92\xca\xee\x52\xf8\x92\xb9\xd4\x16\x56\x7d\x1c\x31\x3e\x85\x42\x7e\x49\x53\xe4\x7a\x26\x78\x4a\x37\xa9\x24\x61\x82\xb9\x6f\x9d\xef\x7f\x8d\x27\xc5\x45\x08\x80\xf9\xcd\x90\x97\xed\x11\x30\x09\xb0\x35\xa9\xad\x38\x43\x29\xce\xb6\x5a\xf0\x75\x91\x2f\x7d\x94\x9a\xb0\x23\xbb\x7a\x80\x29\x4d\xa0\x26\x1e\x2c\xf2\x33\x5e\x14\xf0\x2f\x4d\x35\x02\xd8\x46\xe4\xf0\xa0\x5f\x1f\xb2\x29\xdf\xe0\x70\x16\x70\x2d\xf6\xf4\x61\x47\xb3\xc1\xf9\xf3\x91\x18\x66\xf7\xcd\x9a\xb6\x39\x8f\x67\x75\x44\xbd\xf1\xc9\x74\x2b\xf8\x92\x7e\xd8\x90\x89\x04\xdf\xfc\x6b\x93\xbb\xb5\x7c\xb4\x82\x16\x11\x0c\x67\xf5\x52\x5d\x96\xe8\x70\xef\x6b\x54\x69\x07\x9e\x15\x09\x63\x37\xf5\xad\xbe\xc2\x9a\xd9\x43\xd2\x6a\xb1\x76\xc4\xa7\xda\xac\xd6\x81\xeb\xd1\x57\x36\xd8\x59\x93\x5b\xb7\x18\xc0\xcd\xa4\xd5\x1a\x8a\xec\x13\x9b\x86\x3f\xa5\x09\x91\xc7\x68\x58\xe3\xc4\x75\x49\xf0\x3e\x68\xdc\xa4\x03\x3a\xe9\x29\x17\x34\x28\x7e\xee\x64\x24\x44\xa1\x08\x5b\x18\xc8\x12\x38\x2d\xc0\x7d\x3a\xe7\xcf\x26\x03\x4f\x50\xcd\xb3\x8c\xb0\xaa\xc0\xa5\xa5\x79\x01\xb5\x1e\x21\xe3\x50\xf3\x1f\x70\x93\x17\xa1\xd5\x1c\xef\x0c\x0b\x2d\x10\xd5\x2d\xdd\x47\x19\xcb\xf6\x18\x03\xae\xd7\x7b\xfd\x45\x1b\xa5\xc0\xbd\xbb\xc3\xe8\xbc\x94\xbf\xb9\x3d\xf2\x23\x7c\xea\x0c\xbb\x18\x4d\x05\x01\x2d\x3b\xf5\xb8\x61\xa6\x70\x00\xe7\x70\xdf\xdd\x9d\xff\x70\xf2\x30\x44\x44\x45\x28\xa1\x8f\x64\xc4\x22\xf9\x04\x4a\xdf\x3f\x72\xa2\xf4\xcf\x0d\x46\x20\x9a\x12\x26\x81\x13\x50\xd5\x52\x5f\x73\x0b\xa3\xff\x7b\x5e\xfe\xbe\x8d\x56\xee\xb1\x2e\x35\xed\xba\x9a\x7e\x40\xa6\x50\xb6\xcc\x2c\x6d\x8d\x5d\xf3\x3b\xe3\x6f\x1d\xd4\x55\xfc\xde\x22\x25\x9a\xfd\x3d\x67\x1b\x0a\x5d\x67\xc5\x47\xc1\x28\x1a\x64\xba\x34\xc3\x50\xcf\x63\xb3\x5c\x6b\xf3\x4d\x6d\xeb\xeb\x98\x48\x01\x3d\xe3\xfc\xe7\x45\x71\x74\xa4\x04\x21\xc0\x42\x3c\x3d\xd9\xbb\xde\xa2\x8d\xf9\x89\x05\x1f\x1d\x8f\xd8\xa5\x8b\xaa\x2b\x7e\x95\x85\xaf\x21\x9d\x04\x65\x4e\xca\xad\x40\xb3\x31\x95\xfe\x07\x28\x5a\x27\xf3\x44\x99\xaa\xbd\x53\xca\x70\xe2\x07\x6a\x9e\xd4\x71\x09\x81\x59\x34\xdf\xd5\x4d\x4e\xa7\x63\x92\x6c\x22\x89\x0e\xa7\x83\x44\x6a\xfa\x8e\x1e\x1b\x4e\xe7\x36\x75\xa9\x8b\xc9\xd8\x6a\xfb\xa6\xb6\x25\x2a\xdc\xec\x38\x31\x55\x73\x09\x82\x38\xac\x6a\x86\xbc\x01\xc1\xd2\xbb\x68\x25\x75\x13\x86\x65\x52\x53\x7d\xda\x19\xf4\x82\xb0\x1a\x31\x91\x33\x28\xa8\xe5\xa3\x32\x31\x2a\x6a\xa2\x44\x2e\x46\xc2\x46\xac\xcc\x34\x9b\x30\x25\x47\xcc\xcb\x5a\x3f\xe3\xb9\x04\x7f\x54\x4a\x94\xbe\xa0\xbe\x86\x5a\xf7\x26\x2c\xba\x87\x32\x41\x53\x70\x29\xcb\x6f\x6a\xb6\xee\x0c\x2b\x9c\xf0\xd9\xbe\xad\x4a\x5b\xa6\xd8\xb8\x61\xa0\xe1\xb9\x5e\xfc\x19\x61\x44\xc0\x44\xc1\x96\x5d\x7b\x84\x5b\x58\xb9\x1b\x38\x37\x78\x12\xad\xf3\x57\x7a\x8b\x05\xce\x15\x4f\xb5\x7e\x8b\x93\x64\xd1\x33\x5e\x67\x82\xe6\x58\xce\xdd\x46\x1b\x87\x61\x9b\xbb\xc9\x2e\xee\x19\x8e\xe6\xe4\x4e\x61\x95\xd7\x46\x66\x55\x46\xf9\x81\xb0\x3c\xfd\x70\x8a\xfe\xa7\x98\xe3\x59\xff\xec\xfb\xc1\xf8\x7c\x78\xd7\xff\xee\x62\x70\x1e\xcc\xc7\x3e\xb9\x1c\xde\xdd\x2d\xff\xfa\xfd\xf0\x7e\xf9\xc7\x9b\xeb\x9b\x87\x8b\xfe\x7d\x5d\x2b\x17\xd7\xd7\x3f\x3c\xdc\x8c\x3f\xf6\x87\x17\x0f\xb7\x83\x9a\x4f\x1f\xee\x9b\x1f\xde\xfd\x30\xbc\xb9\x19\x78\x2b\xfd\xdf\x82\xd3\x05\x1e\x72\x3d\xd1\x86\x69\x54\x0f\xe0\x11\x2a\xbf\x78\x8a\x1e\xaa\xe5\x9d\x6c\xbe\x95\xc1\xea\x7a\xc6\x52\xf3\x30\x48\xf7\x03\x4b\x6b\xb1\x28\x4d\x9f\x9a\x90\xe4\x68\x4e\x50\xc2\xf9\x63\x9e\x59\xd6\x66\x8c\xea\x8c\x1b\xc3\x0f\x91\x41\x6b\xdf\x0f\xef\x4f\x97\xcb\x4c\xf9\xc6\x02\x54\x50\x6f\x43\x7e\xc6\x06\x21\x00\xd8\x29\xd8\x52\x5c\xf9\xa1\xc2\x43\x1d\xf4\xe0\x77\x66\x55\x3f\xa6\x35\xcc\x54\xa5\x9b\xd8\x44\x4b\x17\x13\x0b\x1a\x2e\xef\xeb\xaa\xd5\xf4\xcb\x61\xea\x6b\xa2\x09\x89\x70\x6e\x02\xb7\xf5\x3d\x25\x04\x17\xe1\x80\x0b\x7a\xd8\x5f\xa3\x96\x8e\x6a\x1b\xac\xec\x99\x9e\xb8\x7c\xa4\x59\x46\xe2\x0f\xcb\xf2\x4b\xb9\x02\xbe\x84\xd3\xa7\xfb\x0c\xce\xa4\xd6\xeb\x41\xe7\x77\xc5\xe1\xe6\x0b\x1f\x2d\x04\xc1\xa9\x45\xb8\x2e\x14\xab\xd0\x77\x82\x2f\xde\x45\x21\xfc\x07\x2b\xf4\x4c\x00\x36\x26\xb7\xd5\x31\x8d\xee\xad\xcf\x36\x74\x67\xfc\xf6\xae\xd6\x6d\x09\x4e\xa6\x91\x19\xef\x43\xe0\xd6\xdf\x4b\xb2\x99\xb3\x6d\x2d\xf6\xc7\xb9\x69\x14\xb8\xb3\x8b\xeb\x87\x11\xef\xd3\x39\x57\x73\x23\xad\xb9\x2c\x34\xdb\x6e\x33\x1e\x87\x77\x56\x2a\xe2\xd1\x7e\x60\xa5\x42\x0f\x6b\xd7\xea\x9e\xc7\x78\xa1\x89\x03\x82\x13\x64\x9e\x65\x5c\x28\xd4\xd0\x86\x09\x55\x34\xe3\x83\x3b\xc7\xce\xc3\xf3\x38\x68\x44\x4b\x18\xb2\xa6\x5e\x58\x3b\x08\x28\xbb\xae\x81\x8f\x2b\x48\x02\x02\x45\xd0\xd7\x76\x4c\x4b\x2a\x75\x89\x42\xeb\x84\xdf\x5d\xb2\x28\x33\x7d\xc1\xb7\x2d\x35\x5c\xd7\xfb\xb5\x6b\xa1\x76\xcb\x13\x32\x55\xe3\x0d\x9d\x52\xd0\x22\x6b\x42\xcd\xa3\xb3\xf9\x1e\x5a\x6c\xaf\x25\xfc\xd1\x06\x2f\x6b\xd5\x20\xb0\x10\x08\xce\x95\x91\x4f\x0b\x1d\x06\xb9\xd5\x04\xf3\x82\xed\xd4\xe6\xbb\x7b\x21\x50\xcb\xfc\x26\xe6\xcb\xa7\x86\x1f\x8f\xd8\x00\x82\x44\x0b\x45\xc4\xa5\xc1\x83\x16\xb0\x56\xfe\x2f\x15\x56\x7f\xd5\x8c\x94\x66\x14\xfb\x82\xee\x4d\x68\x21\x49\x16\xa8\x28\x9e\x5f\xfa\xae\xcd\xe9\x31\x56\x6f\x27\x02\x9a\x09\x9b\xa3\x23\x15\xc9\xac\x65\xde\xcc\xb3\x88\x66\x06\xaf\xb0\xee\xea\x18\xfd\xe4\x2c\x3f\x90\xdc\xe3\x93\x5d\x5c\x7c\x6a\x82\x17\x0e\xf8\xba\x6e\x61\xf7\x81\x25\xbd\xef\x74\x9f\xd5\x0b\xec\x41\x2b\x6b\x56\xb9\xa4\x80\x33\x66\x2c\xb2\x1b\x84\x0b\x9d\xf9\x8f\xee\xc8\xea\xc8\xc7\x8f\x50\x6a\xdc\x46\x8f\x83\xd0\xc1\x92\xc5\xff\x32\x9b\x65\xd0\x36\x5c\x30\x85\x2d\xfd\x6c\x3d\xa8\xfa\xfc\x80\x07\xd0\x80\x71\xa0\x29\x4d\x12\x90\x03\x8e\x51\x9f\x2d\x1c\x58\x85\xbe\x0a\x5d\x10\x29\x9d\x31\xbe\x2e\x8f\xbe\x81\x98\xa2\x80\x98\xee\x9a\x89\xc9\xc4\x69\x14\x58\x45\xfb\xa1\xa8\x3d\xe0\xd6\x69\xde\x82\x97\xab\x7e\xb4\x47\xab\xdb\x40\x79\x0f\x6f\xf3\xd7\xca\x00\x5b\x1a\x6e\xf0\xe1\xbf\xea\x87\xfe\x29\xc7\x02\x33\x05\x79\x4d\x56\x74\x17\x24\x48\xaf\x26\x9f\x21\x06\x95\x19\x43\x30\xfc\x14\x6e\xae\x73\xf9\x9b\x30\x31\x1a\xf7\x10\x3d\x26\xc7\x50\x81\x56\x68\x59\x62\x52\xbc\x39\xd7\x92\xc3\x88\x2d\xe5\x6b\x1c\xa3\x7e\x22\xb9\xfd\x82\xb0\x28\xe1\x12\x42\x70\x27\x21\x38\x38\x50\xbe\x75\x2b\x4d\x16\xa0\xa0\xc0\x56\x16\xcd\x73\xfb\x20\xf8\x10\x0a\xa9\x82\x4f\x3c\x81\x93\x5e\xfc\xfe\x7b\x9e\x19\x6f\x45\x53\x9c\xc4\x0b\x96\xac\x5a\xba\x86\x5e\x6c\x93\x4c\x39\xe4\x55\x1b\x04\x6f\xc0\xc6\x14\x79\x34\x01\xca\x1c\xfa\x1a\x2b\x94\x10\x2c\x15\xfa\xc3\x37\x1b\xc5\x86\xb8\x09\x16\xdc\xd5\x1e\xdf\x22\x19\xde\xa5\x53\x86\xc2\x9d\xef\x18\xea\xe3\x62\xa1\x10\x46\x8c\x3c\x87\xd9\x33\x1c\x12\x9e\x5c\xd1\x5b\x12\xe0\x77\x98\x98\x79\x83\x3e\x04\x19\xa9\x46\x65\x6a\xe0\x23\xae\xa4\x83\x75\x9f\xda\x61\xd5\x50\x56\xcf\x47\x9f\x41\xb8\xb9\x7e\xa9\x48\x6c\x9c\x63\x35\x62\x96\xb3\xba\xb0\x91\x20\x95\xbd\x9f\x24\xe5\x64\x42\x0c\xf9\xb2\x4c\x4f\x58\x8f\x3e\x3e\xf6\x0b\x74\x05\xea\x97\xcf\xe8\x2a\xd9\xe9\x8a\xc3\x62\x72\x0e\x3c\xa6\x63\xd8\x76\xad\xb4\x53\x67\x5f\x7e\x45\x21\xb8\xa6\xfb\x0b\x3e\xa3\x11\x4e\x5a\x08\xc3\xa4\x6e\xc8\x6b\x0e\xd6\xb2\x4d\x7f\x85\x6c\xbc\xef\x0e\xda\x8b\xca\xf5\xf6\x71\xb8\x66\x9f\x79\x8d\xb9\xbd\x61\x73\x03\xd9\x62\x17\x05\xdc\xa7\x16\xbe\x96\xc7\xb7\x34\xf4\x61\x0c\xc0\x06\xeb\xb9\x60\x01\x14\xe0\x58\x87\xc9\x2f\x8b\x83\xbc\xe5\x20\x4d\xd2\x06\x7b\x1a\xc6\x67\xdf\x6c\xf0\xbc\x66\xef\x7b\xfa\xbd\x62\xfe\x6e\x2a\x3e\x08\x6e\x79\xe2\xcd\xc2\x5e\x3f\xfe\x3b\x8e\x20\x9b\x11\x7a\x72\x79\x94\xcb\xa0\x93\xae\x54\x07\x06\x63\x7e\xad\x78\x98\x09\x1e\x11\x29\x8f\xd1\x00\x2e\x1a\xfb\x4f\x84\xa7\xce\x21\x11\xbc\x3c\x62\x5a\x33\x71\x18\x75\x41\xfb\x65\x12\xaf\x3b\x01\x06\xf0\x76\x27\x5f\x4e\xba\xbe\x0e\x5b\x93\x36\xe1\xf0\x76\xa1\x0d\x28\xdd\x84\x06\xb3\x53\x14\xf3\xe8\x91\x88\x13\x41\x62\x2a\x4f\xc1\xb7\xae\x1a\x9d\x7a\xa9\xd6\xb6\x77\x96\x34\x9a\x02\x05\xd6\x24\xfe\x9f\x99\xfe\x6d\xe8\xbf\x4b\x21\xea\x21\x3a\x05\x75\xc2\xe5\x9d\x9a\x44\x2b\x07\xe9\x47\x98\x12\x0b\x13\x95\xec\x4c\x59\x95\x85\x70\x9a\x86\x16\xda\x9a\x32\xa6\xc5\x3e\x62\x70\xb6\x9c\xb6\xc9\xcc\xb1\x01\x07\x66\x52\x8a\xdb\x7c\x2d\xc3\x2e\x32\xac\xe6\x12\xe0\x39\xca\x6b\x60\x95\x2e\xf8\x54\xaf\x10\xce\x20\x5e\xc1\x58\x29\x8a\x8f\x3c\x88\x84\x54\x34\x49\x46\xcc\x24\x58\x00\x92\xc6\x57\xb5\x28\x40\xfa\xd3\x1e\xc2\x71\x8c\xfe\xf7\xd7\x1f\x2f\x7e\xbe\x1f\x8c\x87\x57\x60\xb4\x1e\x5e\x0c\xbe\xe9\xf9\x1f\xaf\x1f\xee\xfd\xaf\xc6\xc2\xf2\x44\x04\x4a\xf1\x23\xa8\x78\x4c\x12\x9b\x20\x4a\x46\x2c\x1c\xa9\xc3\x47\xd2\x4f\x24\x71\x91\xae\x56\x4c\xf1\x30\xd1\x76\x0f\x9b\xc0\x55\x2d\x6c\xe6\x06\xca\xef\xad\xff\x64\x35\x0d\x3a\xe2\xf1\x5d\x38\x31\x10\xf2\x80\xb1\x0c\x00\x73\xac\xee\x5b\x10\x1c\x61\x33\xca\x9a\xe2\xf1\x08\x7b\x7a\x49\x21\xfe\x07\xb2\x80\x80\xf0\x1b\x4c\x45\x6b\xda\xab\x47\x3c\x74\x27\x46\xeb\xe9\x58\x56\x0f\x95\x34\xb2\xb0\xc9\x28\x6e\x8c\xf9\xac\x03\xbb\x7d\xf3\xe9\x5a\x08\x4d\xf2\x59\x09\x87\xc4\xe5\x73\x56\x1d\x5c\xa5\xbf\x68\x0a\x1a\x1c\xb1\xfb\xeb\xf3\xeb\x53\x44\x12\x3c\xe1\x90\xae\x68\x43\x82\x5c\x13\x76\xc1\x22\x9e\x06\x0d\x95\x50\xd8\x7a\x28\x2b\x50\xd8\x42\x23\xda\xb1\x69\x63\x0d\x1a\x5b\xc6\xc5\x32\x86\xd9\x7e\x55\x40\x3b\xd9\x1b\x2e\xda\x5c\xff\xfa\x35\x93\xbf\x91\x69\x45\xae\xc2\x79\xed\xdd\x3c\x25\x18\x10\x3a\xac\x5b\xc8\xda\xf2\x6d\x00\x6b\x92\x94\x6a\x46\xeb\x83\x23\x8f\xad\x0b\xbe\x78\x93\x33\xf4\xc3\x5f\x24\x9a\xe4\x6a\xc4\xca\x6d\x70\x86\xfa\x3f\xdd\xa1\xef\xb0\x8a\xe6\xdf\x8c\x18\xe4\x0f\xfe\xf0\x97\x06\xb8\xc8\x8d\x11\x98\xf5\x9a\x9c\x63\x85\x2f\x38\x8e\x29\x9b\xd5\xc1\x2f\x17\x35\xf2\x06\xf7\xfd\x53\x74\x6d\x75\xf8\x22\xdb\x55\x39\xd8\x93\xa0\x21\x60\xc8\x30\x11\xc7\x45\x80\x95\xb3\x32\x44\xad\xd1\xcc\xe0\xc2\x1a\xb1\x7b\x83\x3b\xad\xb9\x2a\x55\x28\xe3\xb6\x4e\xa3\xd6\xca\x0c\x22\x37\x76\x59\xe0\x24\x59\x20\xbd\x3a\x40\xc6\x7e\x33\xac\x3c\x06\xf2\xcc\x32\xb3\x1f\x31\x50\xd0\x7d\xfe\x6d\xc2\x23\x9c\x40\x4c\xde\x51\x60\xd3\xd3\x6a\x3b\xcf\x01\x03\x07\x82\x61\xd8\xa2\x1c\x3a\xeb\x61\x99\xbc\x50\x16\x6e\x14\x18\x00\x60\x1f\xad\x37\x36\xe5\x9a\xe3\x18\xbc\x59\x30\xbe\x25\x66\x75\xf4\x87\x1e\x7f\xd6\x2c\x8b\x7e\xea\x53\xd3\x79\xce\x1c\xde\x5a\x04\xe6\x7b\xb6\x80\xf0\x6d\x28\xac\xc6\x21\xf4\xa3\xe0\xce\x96\x28\x97\x76\xd1\xdf\x89\xc1\x67\x23\x66\x22\x05\x4b\xfb\x12\x22\x14\x06\xbd\x73\x06\x81\x8c\xcb\xf9\xf0\x79\x66\x03\x1b\xad\xac\x9f\x09\x72\xe4\xb3\xbc\xe3\xd2\x9a\xea\x1b\xf6\x18\xdd\x86\xea\x75\xcc\xa3\x3c\x75\xd5\x23\x20\x43\xdc\x46\xc0\xd9\x4b\xd4\x53\x88\xb9\xd8\xd7\x51\x3c\x20\xd1\x29\x02\x10\x39\xad\xf5\x63\x43\x30\xfd\xf0\xd3\x65\x49\xbd\x59\xf0\x05\xde\xb1\x5b\xd4\x9a\x69\x68\x9c\x95\x5b\x2a\xb5\xb6\x33\xf6\xc2\x55\x81\x70\xcf\x05\x08\x5b\xe4\x73\xc6\xc1\xc8\x6d\x12\xa0\x79\xfc\x95\x44\xc3\x1b\x2d\x01\x69\x8d\xd7\x9f\xc1\x5c\x2a\x13\x5c\x66\xf2\x94\xe1\x6b\x93\x2e\xd0\x43\xdf\xa2\x51\xfe\xed\xb7\x7f\x8a\xd0\x67\xf7\xc7\x9f\xff\xf3\x3f\xff\xf4\xe7\x4d\xd2\x49\x9c\x42\x0e\xed\x16\x6b\xe4\x4b\x66\x96\x45\xa2\x70\x07\x96\x39\xd5\x0e\xbb\x60\x0f\x60\xd3\xf2\x6f\x83\x64\x1d\xc4\x0e\xe1\x99\x3d\xe1\x32\x3c\x99\xa8\x74\x34\x8b\x48\x02\x49\x54\xaf\xcc\x21\xbc\xb0\x6b\x25\xfa\xff\xb5\x02\x90\x75\xac\x8f\xca\x76\x31\x4e\x34\xf1\xe2\xb5\x6e\x04\x7d\x6d\xed\x7f\x0a\x1c\x88\xdf\xb8\x0b\x8e\x27\x31\x11\x66\x4c\xde\x64\xe7\x0d\x89\xc0\x1c\xc8\xe7\x2c\xe1\xb1\x83\x80\x2f\xf0\x0e\x28\x08\x08\x83\xcf\x58\x73\xee\x9e\x85\x0a\xb5\xf9\xa5\xe0\x79\x99\xe2\x88\xd8\x5c\xe8\xaf\x3f\x9f\xea\xdf\x7a\x68\x71\x0a\x41\xa4\x3d\xf4\xeb\xa9\x45\x04\xc4\x42\x8d\xf5\x4f\xdf\x38\x59\xdb\x36\x01\x83\xa6\x12\x7d\x75\xf2\x84\xc5\x09\xb0\xe7\x13\x33\xa2\xaf\x2c\x67\xf5\xb5\x7f\x43\xd9\x3c\xe1\xfc\xd1\x06\xd8\x2e\x7d\x78\xe2\xc0\x65\x81\xbc\xbd\xdf\xc4\x6c\xbd\x07\x1f\x52\xe8\x08\x5e\x20\xe8\x38\x9b\xa0\xe3\xbf\x4b\xce\xd0\xf1\x02\xa7\x89\xfd\xd5\x3d\xb5\xf1\xbf\x58\xda\x9c\xb8\xd8\x07\xf9\x24\x0b\x63\x29\xfd\x2e\xe1\x13\x98\xd5\xa5\x9b\xa9\x89\xa0\x85\x81\x16\xb7\x4f\x71\x61\xd9\x89\x38\xb0\x0d\xc0\x48\x4c\xb9\x32\xaf\xd8\xf4\xd6\xe5\x59\x7d\xf6\x43\xfa\x6f\xe3\x17\x86\x45\x71\x49\x7c\xc6\x38\xec\xa3\xd7\x74\xa3\x9f\xd1\xd7\x96\x05\x7d\xa3\xef\x18\x1b\xae\x6c\x96\xa1\xae\x83\x85\xef\xe0\xe7\xa0\x03\xca\x90\x49\xcb\x5c\xf1\xe5\xaf\x27\xc7\xc7\xc7\xfe\x6b\x40\xe6\xf9\x7f\x11\x55\x92\x24\x53\xd3\x92\xbb\xc1\x16\x23\x76\xe9\x8a\x4b\x39\xe3\x75\x01\x5b\x9d\x09\xae\x78\xc4\x13\x74\x54\x18\x74\x63\x1e\x49\xf4\xef\x5a\xac\x0d\x96\x12\x7e\xd4\x7a\x5c\x03\xd4\xbd\xa9\x66\xf1\x4a\x87\xca\x1a\xc4\xab\xc7\x2a\x44\xaa\xf5\x8a\x2d\x96\x61\x32\x32\xd0\x82\xa6\x9c\x13\x8b\x66\x2b\x84\x7e\x99\x7c\x56\xf0\xa8\x01\x2c\xb8\x36\x94\xbd\xfe\xa6\x5c\x62\xb7\x05\x66\xb0\x21\xeb\x86\x05\xb0\x98\x9e\x96\x33\x98\x79\xf6\x42\xf7\x89\xbe\x5c\x58\x58\xee\x48\xe6\x69\x8a\xc5\xe2\xa4\x38\x6d\xcb\xc4\x59\xa0\xc9\x02\x8f\x49\xdc\x02\x80\x0b\x37\xb1\x47\xcb\x46\x31\x58\xf1\xd2\xdd\x68\xfe\xec\x46\x50\xaf\x39\x40\x65\x22\x2c\xe2\xb1\xa5\xeb\x22\xfb\xb4\x2c\xb1\xf8\x77\x96\x65\x15\x17\x11\x23\x0b\x63\x1c\x53\x06\xa6\xcc\xbe\xe1\x3e\x6e\x60\xdf\x7c\x0c\x95\xff\xc9\x6c\x03\xf7\xe8\xf0\xfa\xce\x7d\xd3\xfe\xd2\x85\x75\x28\x8b\xec\x38\x09\x31\x80\xd9\x0c\x09\xfc\x5c\x5c\xbf\x10\xdb\x61\xac\x33\xb9\xcf\xcd\x35\xff\x3e\xe3\x37\x34\xd1\xb7\x16\xd0\xf8\xf1\x88\x95\x7e\xee\x21\x92\xd0\x94\x32\x1f\x5b\x67\x98\x3b\x9f\x1a\xe9\xf9\x91\x2a\xbd\x65\x32\x7e\xd4\x1c\xcc\x61\x57\x06\x2a\x55\x9f\x2d\x1c\xe9\x78\xc7\x94\xb5\x40\xe4\x52\x8f\xab\xd0\xd1\x21\x6b\x9f\xc6\xe4\xc8\x0a\xa4\x34\x20\x3c\x38\xbf\xff\x1f\x7b\x6f\xda\xdd\xc6\x91\xa4\x8d\x7e\xef\x5f\x91\xd7\xef\x07\x49\xef\x80\xa0\xe5\x9e\x99\xe3\xd1\x1c\x9f\x73\x61\x8a\xb2\xd9\xa6\x28\x36\x17\xbb\xe7\x36\xfa\x40\x89\xaa\x04\x90\xc3\x42\x66\xb9\x16\xd2\xe8\xe5\xbf\xdf\x93\x11\x91\x4b\xad\xa8\x22\x48\xc9\xd3\xe3\x0f\x33\x6d\x11\x40\xee\x4b\x64\xc4\x13\xcf\x33\x57\xa6\x34\xbb\x97\x3c\x5c\x38\x28\x2f\x28\xee\xc8\x8a\xfe\x04\x27\x00\xd4\x51\xc1\xfc\x3a\xfb\xb7\xc5\x40\x39\x55\xe5\xf6\xd0\x64\x13\x82\x0f\x7f\x2e\x37\xdd\x65\x26\xec\x4d\x45\x89\x4b\x42\x95\x5b\xbb\xa1\x46\xac\xb8\x53\x32\x7f\x62\x11\x25\x1c\xd9\xf8\x4c\x41\x80\x7c\x9c\x60\x80\x34\x0d\xea\xc2\xeb\x05\xab\x41\x1d\xc1\x44\xa8\x97\xf8\xef\x57\x8c\xee\x86\x2f\x27\x74\x9f\x67\xb9\x63\x39\xc3\x39\x07\x1d\x6a\x11\xa3\x0f\x1d\x94\x17\xd6\x3c\x8b\xd1\x5b\x1e\xbe\x2a\x30\x83\xd7\xd8\x5f\x3b\x5d\xb2\x07\x99\x6f\xe6\xea\x46\x5b\x87\x23\x53\xda\x69\x57\x4c\xe0\x31\xda\xa8\x8f\xe7\x70\x08\x40\xab\xdb\x56\x80\x39\x84\x0f\xca\x35\x02\x14\xec\x42\xe9\x58\x1c\x46\xd2\x78\xe3\x63\x15\x36\x7e\x9d\x09\xcc\x07\x83\x9b\xa2\x2b\x9d\x56\xe4\xf9\x48\xdf\x7c\x7d\xe2\xe1\x1e\xa2\x72\x4c\xad\xfa\x61\x94\x82\x48\xc8\x7f\xea\x6e\x35\x28\xc5\xbe\x38\x83\x6c\xe0\xca\xd8\x3b\x45\x88\x43\x27\x21\x6a\x61\x64\x1c\x74\xf7\x63\xdf\x23\x18\x76\x07\x30\xe6\x6c\x9d\xe9\x32\x75\x29\xf3\x36\xdd\x0f\xa7\x81\x6c\x9a\x33\xb5\xd2\x6f\xe8\x4d\x75\x2e\xd5\x1d\xae\xf8\xe7\x9a\x23\x14\xfd\x10\x71\x85\xaa\xd6\x2a\xd1\x43\x1f\x8e\x98\x54\x51\x52\xc2\xc5\x97\x17\x3c\xba\x43\xe1\x92\x2e\xa7\xaf\xf9\xcd\x62\x7f\x32\x65\x87\xc5\x54\x26\x09\x55\xeb\x2f\x50\x20\x83\x03\x17\xd0\xbd\xe4\x8c\xb3\xdb\xab\xb3\xf6\xba\xef\x64\x33\x98\xd3\x7e\x7b\x56\x17\x08\xfc\xbf\x1f\xe4\x28\xdc\x65\x8d\xfa\x57\x54\x96\xba\x73\x2e\x75\x11\xcb\xe3\x22\x2d\xcc\x03\x22\xbe\x6a\x71\xed\x8f\x5e\xa7\xeb\xb4\x5c\x98\x81\x4a\xc6\x00\x04\x4c\x2b\xbe\xbb\xbc\x9d\x05\xbf\xeb\x5b\x2a\xdf\x5d\xde\xb2\xa0\x0e\x24\x75\x4e\x44\x54\x38\xa4\xf1\x94\x9d\x78\xad\x85\xba\x65\x1e\x8b\x7b\x19\x61\x8a\xeb\xc4\x58\x45\x73\x05\x14\xe6\xe6\xad\x73\x64\x79\x2f\xd9\x77\x97\xb7\xc4\x96\xe9\xf9\x6d\x50\x36\x02\x28\x2c\xc6\x5d\x3b\x35\xf2\x70\xa5\xd5\x11\x52\xfb\x64\xb1\x8f\x76\x4c\xe0\x71\x1d\xf1\xb4\x28\xc9\xc0\xb8\x7f\x3d\xb5\x73\x72\xe5\x23\x21\xa6\x59\x7a\xae\x8c\xad\x84\x59\x06\xa0\x70\x66\x3a\xdd\x9c\xda\xda\xa0\x1e\x02\x0e\x80\x41\x3b\xe8\xf0\x97\x2e\xc3\x8f\xab\x1d\xe3\xd9\x52\x16\x99\x79\x86\xe1\x8f\x27\xc8\x44\xb6\xb1\x2a\x56\x38\x6f\xde\x32\x22\x51\x3a\x98\x60\xa9\x8a\x7c\xae\x82\x0c\x16\x97\x15\x8c\xc9\x0b\x52\x31\xa0\xfc\x05\xec\x8d\xa5\x20\x8d\x12\x5d\xc6\xf6\x5a\xcd\x9c\xc8\xdd\x2e\x45\x23\x6a\xae\x80\x99\xc4\xdc\xad\xda\x98\xa1\xfe\xee\x7f\xc3\x3e\xaa\x7b\x19\x4b\x7e\x54\x88\x3c\xe1\x47\xc5\xbf\x7e\x9c\xd4\xfe\xc4\x5f\x7f\xf9\xe5\x47\xd4\xeb\xeb\xa2\x5d\x08\xd8\x95\x0e\x74\xf0\xb4\xc7\x29\x1c\x4f\xa1\x59\xa5\x07\xcc\xd3\xb9\xbc\x13\xec\x23\x4e\xf7\x47\x22\x29\x7e\xdc\xb4\xcd\x55\xdb\xbc\xb1\xc7\x4c\x1b\x50\xc6\xb7\xcf\x1b\xeb\x99\xb6\xd7\xeb\xe9\xbf\xad\x97\x66\xb6\xbe\x5a\x4f\x5f\x7f\x09\xff\x59\x9b\xa3\x7d\x9b\xd7\x65\xcf\xb4\x35\xbb\xe5\x20\x6a\xd9\x96\xee\x2c\x9a\xab\xfd\x87\x11\x1b\x77\x16\xc1\xaa\x6d\xdb\xf8\xbc\x10\x87\x66\xb7\x22\x77\xf5\x08\xf4\x75\x83\x14\xbc\x37\x22\x78\x20\xa3\xb6\x67\xc3\x06\xb8\x67\x37\xb5\x77\x08\xc0\x85\x0f\x47\xf0\xf1\xc0\xf7\x87\xf5\xa7\xf6\xdd\x3d\xdd\xe9\x6f\x66\x22\xc4\x08\x06\x99\x6b\xf3\xf5\x81\x8d\xac\x7c\xb5\xaf\x8d\x0f\x1c\x55\x03\x9b\x62\x35\x31\xbd\xd6\xc7\xec\x22\xbb\x1c\xd1\x65\x92\xbb\xbc\x3f\xd7\x12\x0b\xad\x74\xef\x6b\x5b\xef\x9a\xf6\x52\x28\x4a\xe8\xa2\x6e\x2d\x0b\x3f\x70\x45\x1c\x08\x85\x33\x4f\xea\xc5\x76\x30\x11\xba\xaf\xf8\x2d\xfd\xf8\x7d\x83\x16\xdd\x99\x97\xef\x21\x33\xdb\x91\x61\x6d\xb9\x32\xd6\x9a\xad\xb5\x23\xb0\x84\xaf\xfc\x47\x35\xe9\x36\x7d\x54\x83\xb0\xc6\x81\x7a\xfd\x54\x95\x2d\xe5\x01\x63\xab\x3c\xc1\xd8\x41\xb1\x01\xb7\xb2\xd7\xb9\xb5\xc7\x9c\x77\x2f\xa3\x26\x6e\xc2\xb3\x35\x3a\xbd\x72\x51\xe4\xaf\x5a\x66\xd8\xe7\xb1\x1d\x30\xc3\xd6\xec\x5a\x8c\xe3\xf9\xb0\xf6\x18\xb8\x54\xfa\x76\x9a\x6b\x65\x55\x14\xc3\xbd\xb4\x6c\xfd\x21\xe3\xbb\x4f\xae\x8b\x74\x86\x0a\x52\xc0\xc7\xda\xcd\x83\x75\x20\x1d\xec\x05\xdf\x3a\x96\x17\x2a\xcd\xe6\xec\x62\xe3\x96\x02\xf4\x5c\xba\xdb\x30\x88\xeb\x75\x68\x13\x88\x91\xb6\xab\x05\x73\x35\xb3\x5f\xf1\xac\xd4\xb9\x44\x2f\x0b\xa6\x23\x96\x4b\xcc\x70\x01\x9f\x19\xf7\xa3\x4e\x9d\xeb\xe8\xc4\xd8\x84\xfc\x5a\x17\x6e\x73\x91\xf9\xdb\xc8\xb3\x96\x86\xfd\xe8\xa8\x79\x18\x6b\x71\xef\x89\x6e\xbb\x48\x45\xd9\xb1\x6c\xab\x78\xf8\x43\x85\x0a\x22\xc2\x6a\x44\x31\x40\x5e\x40\xb2\xf3\xcb\xd4\x93\x9b\xd7\x2a\x6b\xee\xd6\xe2\xa0\xd3\x58\xf2\xed\x22\xd3\xdd\x32\xcc\x03\x86\xc9\x16\x51\xf1\xd9\x6f\x50\x96\x71\xc7\x7e\x2e\x79\x82\x97\x9b\xa2\xe5\x68\x9b\x0d\xee\x8f\xaf\xfe\x9d\xcd\xe0\xf6\x61\xef\xe1\x5c\x04\xd0\x16\x94\x56\x68\x26\xb7\xa9\xc8\x72\xad\x78\xa7\x1e\xf9\xdd\xd7\xf9\x82\x34\x55\xcd\xd3\x58\x97\x4d\xfd\xd4\x11\x3d\x69\x29\x2d\xec\x14\x67\x77\xe5\x52\x64\x4a\xa0\xe6\x3a\x7c\x8f\xd9\xef\x0d\x6a\xae\xe6\x65\xb1\xf9\x6a\x11\x25\x72\xb0\xd0\x2b\x64\x8c\xce\xcc\xcf\x4e\xf0\x57\x7d\x1d\xa8\x94\x5f\x69\xba\x62\xf8\x19\xc3\xcf\xa6\xec\x5b\x1e\xdd\x09\x15\xb3\x34\x29\xd7\x92\x08\x62\xd0\xdc\x97\xd5\x87\x7d\xb5\x63\x68\x5b\x60\xf9\xe6\x1a\x9a\xab\x2d\xbf\x43\xf1\x15\x32\x22\xcd\xcb\xa1\x8b\x5e\xd0\xb9\x4a\x16\xb2\xb9\x76\xf7\xce\x96\xbb\x0f\x9b\xc5\xd4\xd7\x5e\x5e\x62\xbe\xdc\xc3\x46\x13\xca\xa8\xe2\xa9\x19\xb1\x71\xdd\x6a\x6d\xf0\x78\x59\xae\x15\xa7\xbe\x4f\x8d\xc1\xdd\x0b\x21\x3c\x10\x10\x2a\x15\xe3\x40\x05\xf6\x22\x67\x65\x6a\xed\x33\x88\x2d\x25\x80\xf4\xc1\x29\x30\x1f\xa4\x32\xba\x43\x6c\x29\x64\x4f\x30\xd7\xbd\x86\x48\x33\x13\x1e\xe4\xd8\x76\x34\xac\x90\x08\xe7\x30\xdc\x4a\x43\x7f\x68\xcf\x3a\x1d\x98\x19\x52\x6c\x84\x5a\x3c\x42\x06\x67\xf8\xa4\x55\xb2\x40\xc8\x0c\x76\x31\x3a\x37\x84\xa5\x92\x44\x7b\xed\xdf\xd8\x4e\xe3\x41\xae\x6a\x66\xb4\xcc\x59\xce\x0b\x99\x9b\xb3\xac\x75\xc4\x3d\xfd\xd0\x21\xa3\xce\xc7\x71\x1e\xb5\xf0\x1d\xd5\xc6\xc2\x65\x9a\x4d\xd9\x3b\x88\x6c\x04\x2f\x03\xed\xd8\x83\xba\x0e\xac\x62\x23\x3a\x69\x74\x9f\x02\xa2\x69\x7b\x10\x7c\xbf\x37\x60\xe5\xb2\x0a\xa7\x6c\xe6\x23\xca\xc8\x9f\x84\xb1\xe2\x3d\x3d\x12\x49\x2e\x1e\xb3\xf8\x06\x05\x5f\x00\x75\x05\x0b\x88\x81\x25\x95\x9b\xbf\x7b\x3e\x75\xd7\xcc\x07\x48\xdc\xe7\x77\x42\xf5\x79\xd8\x87\xb7\x10\x43\x20\xbd\x2e\x01\x17\x5b\xd1\x18\x5e\x79\x4c\x03\x87\x6f\x3b\x4f\x59\x25\x57\xc7\x66\xc8\xcd\x33\x24\xba\xa3\x74\x41\x8c\xb0\x11\xe9\xd5\xc3\x46\xe7\xe1\x3e\xb3\xf3\x87\x2f\xd9\xac\x74\xea\x56\x90\x6e\xe9\x06\x18\x71\x96\x4a\x87\x9c\x58\xd0\x6a\xb7\x49\xd1\xad\xe3\xe6\x9b\xd9\x23\x14\x86\x01\x90\x09\xb6\xa8\x96\xdd\xac\xd2\xf2\xa9\xd4\x53\xf6\x13\x51\x37\x47\xb8\xd1\xa0\x1f\xbe\xce\x3f\x40\x7d\x4f\x41\x07\x83\x7e\xbe\xa7\x4f\xc5\x7a\x64\x10\xda\x81\x8c\xad\xff\x51\x43\x9a\x06\x5d\x94\xa9\x8e\x99\x5f\xef\x5d\xb9\x2e\x4a\x69\x04\x99\xfe\x0a\xbb\x15\x34\x6e\x70\xdf\xf6\x6d\xb5\xf7\x01\x52\x8d\x2d\x4b\x99\xc4\xc8\xe7\x17\x58\xa8\xda\x9a\x40\x20\x24\x04\xf6\x88\xcc\xdd\x05\xd7\xb2\xe8\x7f\xf8\x3a\xbf\xd4\xf1\x21\x0b\x6b\x3c\x67\x6b\x73\x5d\x0f\x48\x64\xc9\x43\x34\xd1\x76\xff\x48\xa4\xba\x3b\x05\x21\x5e\xe4\x55\xe5\xdc\x9e\x06\x03\xe6\x6c\x59\xae\xae\x41\xa6\xb3\x8b\x16\x29\x50\xb0\xb3\x79\xce\x66\x9e\x4d\x35\x2e\xeb\xae\x6b\x52\x08\xc2\xe4\xed\x11\xce\xfe\x70\xfd\xe1\xe2\x68\xcb\xb3\x7c\xc3\x81\x76\xc2\x96\x35\xb1\xca\xe7\xf8\x5e\xb7\xd0\x0a\xa9\xe6\xea\x88\xad\xf5\x04\x81\x3c\x6f\xd8\xa6\x28\xd2\xfc\xcd\xf1\xf1\x5a\x16\x9b\x72\x39\x8d\xf4\xf6\xd8\x0f\xcd\x31\x4f\xe5\xf1\x32\xd1\xcb\xe3\x4c\x40\x2a\xc7\xd1\xeb\xe9\x57\xaf\x61\x66\x8e\xef\x5f\x1f\x03\x7c\x63\xba\xd6\xff\xe7\xfc\xab\xff\xf8\xfd\xbf\x9b\x82\xd3\x5d\xb1\xd1\xea\x0d\xa1\x84\x7a\xcb\x3e\xc2\x67\xc2\x31\xfe\xa4\x56\xcb\x7f\x4c\xbf\x0c\x9b\x41\x5f\xdd\xea\x58\x24\xf9\xf1\xfd\xeb\x85\x9d\x98\x69\xda\xa1\x2d\xf1\x5b\xf2\xc3\x27\x48\x7e\xb8\x93\xc5\x6f\xc9\x0f\x9f\x35\xf9\x61\xb8\xc9\xe5\xce\x18\x60\x93\xf6\xe7\xa3\xf9\xbb\x3b\x23\x6d\x2c\x60\xdf\x39\xd4\x72\x39\x84\xa9\x69\x07\x5c\x11\x23\xa5\xde\x6a\xdd\x75\x6f\x99\x0e\x9f\xdf\x58\x45\x97\xce\xd7\xc5\x28\x26\x0e\x80\x1a\xca\x08\xd4\x02\xd0\x47\x99\x72\xd9\x96\xd2\x10\x28\xdc\x1c\x30\x84\xa8\xb8\xd1\x4e\x3b\x36\x44\x98\x8a\xb4\x99\x44\xbc\x78\x12\x89\xaa\xd6\x3a\x10\x95\x39\xba\xfc\x86\xdd\x3d\xc0\x34\x26\x9c\xf2\x41\x23\xfa\x8c\x62\x22\x4f\xad\x22\x42\xdd\x7d\xa4\x82\x48\x82\xbf\xb6\xa8\x6a\xfd\x60\x95\x43\x9e\x42\x6f\xc3\x23\xc6\x87\x69\x6d\xe0\x22\x85\xb6\xd8\x76\x75\x34\x63\xc3\xf3\xc7\xc1\xf3\x67\x48\xd6\xeb\xa2\xb1\x88\x6d\x96\xb9\xad\xd0\xde\xc6\x96\xff\xc8\x5c\xee\x96\x66\x31\x2d\xb3\x54\xe7\x22\x9f\xb2\x77\x3a\x43\x62\x2d\x62\xbd\xf1\x29\x07\x57\xef\x4e\xd8\xeb\xaf\xff\xe3\xf7\x73\xf5\xb2\xc5\x18\x82\x4b\x54\x67\x6b\xca\x80\x00\x13\x68\xcb\xf3\x42\x64\xc7\xd9\x2a\x3a\xc6\xab\xe3\xd8\xfc\xfe\x88\x2a\x3d\xd2\xab\x23\x27\x26\x70\x44\xbc\xea\xd3\x6d\xfc\xaa\x0b\x1b\xd8\x6e\x70\x7f\xb6\x47\xcf\xac\xc3\x30\x6f\x9b\xdf\xfd\x07\x6b\x65\x0b\xa1\x21\x42\x56\x48\x0e\x16\x0b\x92\x21\xea\x95\x93\xbf\xc1\x4c\x5b\x54\xca\xd2\xab\x96\xff\xf8\x36\xd1\xcb\xfc\x95\xa3\x60\xe5\xb9\xad\xc3\x73\x22\xb6\x9d\xdb\x8d\x3d\x77\xc8\xeb\x9b\x86\xe2\x39\xdd\x6a\xf6\x4c\x0c\xa7\x6d\xcc\xc0\xb7\x1f\x1a\xde\x16\x44\x46\x28\x9e\xe9\x52\x59\x7d\x09\xad\x84\x5e\x01\xd0\x08\x9e\x49\x16\x27\x09\x91\x05\x40\xdf\x39\xf6\xa7\x4c\xa4\x68\x7d\x40\x0c\xac\x7b\xb8\x0f\xd4\x58\xd9\x37\xce\xcf\xa1\xb1\x72\xe8\xb8\xd3\xc1\xf8\x99\x06\xfc\xd0\x64\x06\xdc\x4a\x63\x30\x40\xe6\xfb\x7b\xe3\xfd\xee\x1c\xf0\x1a\xcf\x5e\xce\x20\xe5\x19\x58\xf0\xe2\xa8\xd0\x47\x40\x9b\x07\x64\x6c\xa8\x7a\xd4\x05\x02\x02\x9c\xc4\x98\xeb\xde\x7c\x7f\x40\x3b\xf1\xd5\xf6\x4b\xd0\x50\x32\x58\x73\x24\x11\x27\x50\xb8\x54\x4a\x64\x14\x01\xde\x6b\x19\x8c\x44\x51\x84\x53\xd9\x8f\x09\xf7\x6e\x8a\x50\x91\xc6\x65\x04\xf2\xe0\x10\x98\x32\x78\x9a\x6c\xf4\x56\x1b\x5b\x57\x97\x79\xf0\x21\x3e\x6d\xc1\x98\xe8\x34\xcc\xb7\x3c\x45\x7b\xf5\xf3\xf5\xc6\x6c\x2d\xf3\x11\xba\xa0\xc3\x2f\x8d\x12\xf9\x5a\x56\x65\x8d\xf6\xb4\xdf\xe9\xd1\xf4\xaf\x1b\xc0\xe8\x6c\x21\xe4\xb7\xe1\xf7\xc2\xaa\x4c\xc8\xbf\x9a\x47\xaf\x59\x52\xee\x19\xe9\x2c\x10\x84\x94\x21\x1b\x74\x08\xa0\xb4\xb7\x6e\x27\x5f\x4b\xb9\x1d\x39\x07\x2e\xcd\x69\xc8\x04\x70\x85\x89\x3f\x36\xe3\xe7\xa8\x35\xe5\xa7\x6b\x5f\x82\x5f\xad\x34\x2f\x13\xcb\x58\x3e\xae\xa9\xd7\xae\x00\x22\x27\x6f\xb6\xdb\x13\x3e\x42\x7e\x18\x8e\x31\x1e\x08\xd6\xb6\xe8\x82\x19\x8f\xdf\x8c\x20\xf1\x36\x66\xec\xa0\x12\x5c\x9c\x8d\x11\x0c\xf6\x42\xd7\x00\x8e\xf3\xbf\xf6\xb9\x33\xdb\x10\xe6\xc8\x91\xeb\xf3\x87\x4d\x2b\x1b\x9e\x05\xf7\xc3\x7b\x2f\x23\x0c\x00\xdc\x65\x09\x9f\x5f\x7c\xb8\x09\xb1\x45\x12\x7b\x7b\x14\x6d\x44\x74\x07\xde\x34\xbc\xf2\x70\x33\x50\x3a\x3c\x00\x9e\xbd\xf8\x68\xa1\x2d\x50\x66\xe7\xf4\x58\x9c\x26\x91\xce\x58\x2c\xf3\x34\xe1\x3b\x80\x24\x28\xcc\x14\xf4\x70\x06\x97\x62\x6b\x8e\x82\x7d\xc1\x84\xe1\x33\x6d\x66\x65\xe6\x7f\x37\x76\x2c\x3d\xf4\xdb\x0f\x66\xf3\x3c\x60\xb9\xd8\x72\x55\xc8\x68\xae\xb6\x82\xab\x10\x43\x4a\x90\x0c\x33\xc8\xb1\x16\xa4\x58\xb0\x5a\x89\xa8\xf0\x94\xc7\xf0\x08\x71\x23\xb5\x6f\x0f\x8e\xeb\xbb\xdb\x79\xbd\x5d\xff\xde\x0a\x24\xcb\x2d\x20\x94\x69\x0d\xd1\xd5\xf8\xc8\x50\x23\x88\xd5\xd2\x95\x6b\x1f\xb5\xf0\x2f\xbb\xa6\xd8\x52\x14\x0f\x02\x18\x7d\x88\x82\xa0\xcd\xc6\x3f\x58\xb0\xe8\x90\xf4\xbd\x99\x63\x00\x24\x82\xf7\x06\x85\x2f\x6d\xb0\x10\xfa\xe8\xa8\x07\x55\x8d\x43\xf0\x05\x91\x22\x80\x2b\xf0\x05\x39\x35\x5f\xc0\x35\x6d\x5e\xc1\xd9\xbd\x88\xe7\xaa\x4a\xec\x48\x36\xa3\xdf\x70\xcc\x4b\x71\x3e\xcd\x69\x63\xc7\x78\x50\xa0\xe7\x14\xc8\xac\x3c\x8d\xb5\x4b\xfb\xef\x91\x06\xc5\x4e\x3f\xe7\xab\xca\xaa\x12\x0f\x7d\x0c\x7b\xb5\x4e\x92\xda\x23\x65\xde\x0a\xfa\xc7\x2d\x4a\x47\x5b\x87\x9c\xb6\x0e\xae\x4d\x4e\xeb\x86\x1b\xbc\xad\x8c\xb9\xb2\x7c\x2e\xab\x32\x41\x9e\xf2\xae\xac\x19\x62\xb1\xb4\xb9\xa7\x9f\x2f\x07\xd9\x39\x5d\x59\xa0\x6e\xea\x40\x3a\x01\x74\x1e\xcf\x3a\xbb\xea\x85\xca\x4b\x30\x29\xac\xb0\x21\x44\x25\xd6\xa2\x80\xdb\x3c\x2e\x13\xa4\x27\x81\x70\x0a\x30\x62\xf2\x24\x61\xb2\xc8\xe7\xca\x11\x78\x62\x6a\x0c\x9c\xb0\x36\xde\x12\xd3\x93\x0b\xaa\x80\x62\xe1\x63\xae\xc0\x0e\x93\x91\x2c\x1a\x09\x07\xbb\x50\x0c\x2c\x4d\x05\xc7\x6c\x7a\x9c\xb6\xb9\x0a\xdf\x5c\xf5\x49\xa0\xd4\x73\xd0\x8f\x7f\x8a\x2c\xf0\x1e\xc7\xad\xa9\xe2\x51\x28\x1b\xec\x9d\x79\x70\x59\x9d\x6f\x6c\x2d\x31\xf8\x10\x2e\xd8\xbc\x6a\x8a\xdc\x06\x50\xfc\xbb\x15\xb2\x6a\xa2\x32\xe1\x19\xa6\x13\xad\xca\x84\xc9\x55\x20\x59\x0e\x73\x80\xf4\x8d\x66\xba\x22\x0d\x77\xb5\x0d\xa1\xe4\x7c\x2b\x02\xe6\x18\x72\xef\x24\x01\xe2\x07\x35\x29\x10\x4a\x62\xca\x7a\x35\x65\x6f\x3d\x41\x2d\xce\x30\xec\x89\x80\xf6\x59\xe6\x78\xfc\xb9\xf6\x06\xa4\x07\xa8\xe5\x2f\x57\xe6\x49\xf9\x22\xd8\x75\x1d\x33\x08\xf2\x31\xe3\xe0\x44\x56\x3c\xa8\x1f\xe3\xde\x4a\x7a\x62\x7e\x5a\x03\x19\xb9\x0d\xd1\xd1\x40\x7b\x2b\x8c\x6c\x64\x48\x99\xfd\x88\x86\x3a\x4a\xf2\x96\xc6\x6e\x7b\x14\xd2\x61\x1e\x47\x36\x35\xd0\x1b\x1c\xdf\xd0\x60\xe5\x84\xe0\xb1\x21\x23\xbb\xe6\xc5\x58\x24\x99\x4b\x1d\x1b\xdf\xd0\x56\xd4\xde\x90\x66\xc2\xe9\x31\xb2\x9d\x33\xf3\x9b\x47\x36\x34\x2f\x97\x47\x78\x40\x3b\x45\x22\x38\x2a\x04\x8f\x36\x55\x16\x07\xcb\xb5\xec\x7a\x00\x59\x7c\xb0\x1f\xc7\x13\x50\xcc\xfc\x9a\x03\xc9\x45\x66\x9a\x3f\x65\x1f\x94\x40\x9c\xa7\x5e\x05\x97\x0a\x35\x80\xb4\x19\x41\xee\xc6\x9d\x72\x4b\xd3\x30\x75\x67\xc9\xad\xcc\x96\x9b\x30\xee\x4b\x87\x53\x0f\x97\x0d\x9e\x22\x1d\xb6\x64\x9b\x38\xd4\x01\xe6\xe5\x30\x8a\x88\xf6\x37\x7f\x00\x97\x1e\x7f\x02\xb4\xf5\x63\xf8\xb4\xf4\xe6\x3d\xb8\x57\x9c\x4d\x76\xa8\xae\x1b\x86\xe0\xe7\x7d\xe3\x7b\xb9\xa9\x62\x66\x47\x48\x29\xde\x5e\xbc\x3d\x7d\x77\x76\x51\xd5\x3f\xfc\xe3\xed\xe9\x6d\xf5\x2f\x57\xb7\x17\x17\x67\x17\xdf\x85\x7f\xba\xbe\x3d\x39\x39\x3d\x7d\x5b\xfd\xde\xbb\xd9\xd9\x79\xed\x7b\xe6\x4f\xd5\x2f\xcd\xbe\xfd\x70\x55\x53\x5c\xb4\x72\x89\xc1\x9f\x6e\xce\xde\x9f\xbe\x5d\x7c\xb8\xad\x88\x36\xbe\xfd\xaf\x8b\xd9\xfb\xb3\x93\x45\x4b\x7b\xae\x4e\x4f\x3e\xfc\x78\x7a\xb5\x47\x73\xd1\xf7\xb7\x75\x48\x9f\x02\x5b\xf8\x68\x05\xce\x19\x5b\x65\x52\xa8\x38\xd9\x61\xa6\x88\x7d\xd9\xd6\xa0\xdf\xe1\xdd\x2b\xb7\x42\x97\x87\x24\x7c\xdc\x6c\x04\xd3\xf7\x22\x03\x1e\x2e\x2c\x8d\x48\x3b\x7c\xce\x7f\xbd\xd6\x4c\x14\x59\x33\x2a\xd0\x9b\xd7\x56\x64\x3b\x97\x39\xd9\xd7\x1c\xcf\xe1\x48\x95\xb0\x54\x64\x7d\x6d\x01\xcb\x28\x2b\xd3\x42\x2e\xbb\x53\x78\x46\xa7\xbe\x0f\x7d\x7b\x23\xe3\x70\x3b\x3d\xdb\x45\xfb\xc1\x58\xc9\x64\x39\x04\x26\x0f\x25\x3c\x56\x58\xd6\xfd\xda\x42\x8b\xd3\x72\x99\xc8\x88\xc9\xb8\xee\x4f\x21\x46\x0a\x70\x19\xd7\x89\xc9\x53\x91\x81\xa9\x6a\x5e\x00\x69\x26\x8e\x78\x59\x6c\x90\x44\x93\x12\x67\x48\x46\x66\xae\x72\x11\x65\x02\x63\x01\x22\x07\x27\x2d\x2a\x8a\x06\x35\x41\x63\x88\x43\x26\x06\xba\xba\x69\x20\x12\xd3\x11\x23\xc0\x5f\x62\xe9\x23\x9c\xa4\xf8\xfd\xde\xa1\xa1\x16\x4b\xd4\x2c\x0d\x60\x61\x70\xc3\xe3\x87\x56\x97\xd4\xf4\xdb\x9c\xd4\x4e\x97\x13\x27\xd9\x66\x1a\xb5\x77\x63\xdf\x1a\x0b\x17\x4a\x35\xf5\x86\x4a\xa7\x8f\x4e\x32\x01\x97\x08\x41\x1a\xac\xff\x02\x70\x4d\x94\x99\x04\x09\x49\xe6\xa9\xb6\x14\x1b\x9e\xac\xd0\xe2\x30\x53\xd3\xce\xeb\x81\xe5\xdf\xe8\x3b\xa1\xae\x70\xc2\x3e\xcb\x71\xa8\xf0\xe5\xe3\x59\x85\x9c\x47\xc8\xbb\x30\x4d\x1b\xed\xaa\xb2\x99\x99\x60\x4c\x15\xf8\x4e\x08\x3e\xc6\x04\x24\xaf\x19\x60\x93\x3a\x57\x2b\xf9\x8b\x29\x70\xae\x44\x2b\x6b\x3a\x80\xc9\x2c\xbf\xa3\x3b\x97\x01\x38\x87\x24\x79\x77\x42\x81\xa2\x29\xd0\xf3\xed\x5f\xb3\xe3\xfc\xe7\xcd\xb9\xe8\x71\xe8\x83\xcf\x4f\x56\x84\x5e\xc3\x28\x8f\x1d\xa7\x02\x33\xc2\x1c\x0b\x06\xac\x9b\x93\xf3\xb3\xd3\x8b\x9b\xc5\xc9\xd5\xe9\xdb\xd3\x8b\x9b\xb3\xd9\xf9\xf5\xd0\xed\xf7\x14\x59\x7c\xb5\xdd\x57\x4f\x66\x73\x27\xc4\x31\xed\x3c\x9f\x4c\xee\x3a\xe5\xb7\x1d\x4c\xc9\xfe\xd6\xcb\x38\x5d\xc4\x32\x8f\xcc\xf5\xb7\x5b\x08\x15\x83\xdc\xc4\xa3\x96\x6a\x7b\x51\xf5\x5e\xb8\x6f\x30\xf7\x0d\x7b\x82\xe0\x6d\x77\x6f\x57\xb4\xfb\x1c\x20\x99\xe0\x86\xcc\x84\xd9\xfc\x71\x85\xe5\x63\xba\x5f\x63\xcc\x14\x77\x58\xdf\xaa\x45\xd4\xfb\x84\xed\x95\x79\x5e\x02\x99\x88\xfd\x1a\xe0\x51\x3b\x46\x85\x38\x80\x43\xcd\x0b\x19\xe8\xb5\x33\x99\xcf\xd5\x96\xab\x98\x17\x3a\xdb\x75\x74\x71\xd8\xe1\x19\x6e\x9b\xea\x11\x1a\x5e\xd9\x4a\x88\xd8\xce\x02\x7e\x95\xab\xfa\x52\x42\x65\x8c\x9b\x0f\x3f\x9c\x5e\x5c\x2f\x4e\x2f\x7e\x5c\x5c\x5e\x9d\xbe\x3b\xfb\x93\x83\xc9\xa6\x3c\x6f\xd3\x67\x4e\x33\x61\x4e\x17\x4b\x34\xd6\x7a\xbe\xa0\x68\xb2\x2d\x87\x84\x32\xe5\x6a\xae\xec\xc9\x92\xf9\xe2\x37\x99\x2e\xd7\x9b\xf6\x82\xea\xad\xbc\x9c\xdd\x7c\xff\xa8\x66\x02\x0d\x24\x2a\xab\xe2\x6e\x6b\xc2\x85\xe5\x8a\xce\x3d\xc4\x18\xd7\x9a\x07\x64\xa6\xf0\xd5\xb6\x28\x43\xc7\x89\xf6\xa8\xd7\x4b\xf3\xd0\xea\x35\xfe\x5b\xbe\xde\xb5\x80\x6e\x82\x73\xb3\x72\x8d\x00\x7c\x1d\x05\xba\x1b\xa5\xbd\x69\xf9\x5b\xe5\x06\xfb\xea\x28\x11\xeb\xb5\x88\x71\x79\xd5\x0b\x26\x1f\x1c\x1d\x81\x91\xbf\xd7\xdb\x46\x91\x24\x74\x0f\xb8\x98\x1d\xde\x6b\xf8\x01\x7e\xe9\x7e\xd2\x7e\x56\x9c\x10\x95\x13\xc4\x37\x0b\xae\x3a\x02\xc9\xfb\xf3\xc1\xda\x8b\xff\x90\x31\x97\xaa\x47\x0e\x13\x1b\x32\xf0\xfb\xa0\x0b\xf0\x72\x38\xbe\xd5\xb5\xe3\x4a\xa4\x09\x8f\x84\x4b\x70\x41\x0e\x5e\x78\xd7\x3f\x26\x80\x47\x42\xc5\x8a\xfc\x2d\x81\x80\xb1\xd7\x66\x6b\x5b\x02\xe0\xb9\xbd\xb2\xe7\xf1\xf3\xbb\x56\x7a\x1f\x6e\xc4\xbc\x09\x8e\x66\x54\x8a\xa4\xbc\x08\xf4\x45\x81\xfc\x6a\x27\x66\x7d\xd4\x72\xa8\xd5\xfc\x23\x4d\x3c\xbe\x99\xab\x8e\x6e\x6e\xb9\x6d\xdd\xf2\x70\xa6\x63\x9f\xbf\xb0\x28\xb2\x5e\x3a\xec\xa7\x08\x47\x5c\x66\x7a\x2b\x73\x31\x2b\x8a\x4c\x2e\xcb\x50\x0f\x78\x24\x60\xae\xf2\x38\xf1\x1d\x4e\x33\x1d\x97\x91\x25\xb0\x82\xde\x7a\xd8\x0f\x79\xf9\xac\xd5\x11\xb3\x23\xb3\xfa\xe8\xe5\x26\xe2\x23\xc8\xf6\x40\x86\xb5\xb6\x18\x9b\x3d\x18\x3b\x7c\x7f\x97\xf6\x2a\x7f\xe2\x9c\xd1\xee\xc1\xb4\x6b\x60\x58\x1a\x38\xb3\x5f\x07\x0b\xb8\x03\x35\x45\xcb\x65\xc9\x31\x80\x5e\xb5\x51\xba\xf8\x6a\xdc\x55\x33\x0e\xdc\x35\x0c\x1b\x53\x4d\xa7\x42\xbb\x61\xc3\x73\x34\xe7\x8b\x68\x53\x6d\x38\xf4\xa6\xca\xdb\x5b\x6f\xae\x33\x8f\x0f\x73\x9b\x0c\x0a\xa3\x4d\xd0\xd1\x20\xc9\xb1\x5d\xd1\x60\x75\x82\xd2\x9d\xfe\x7b\x4c\xb9\x58\xfc\x5c\x8a\x31\xba\xca\x36\x55\xe3\x8f\xf0\xb3\xbd\x80\x14\x89\xd8\x2d\xe7\x7b\x2d\xe4\xd6\x58\x40\x3c\x8b\x36\x6c\xc9\x73\x22\x04\x0c\xd9\x12\x50\x00\x9e\x49\xf3\x2b\x1e\x15\x24\x88\x6b\xab\xb5\xa2\xb8\x37\x16\x0a\x69\xcc\x5a\xef\xf5\x68\x5b\x6e\xfb\x06\x60\x8c\xf7\xda\x36\xe3\xec\xed\xa8\x18\x42\x68\x87\xbb\x77\x32\x5e\xb1\x70\x3b\x25\xbc\x54\xd1\x86\xa5\x09\x47\x42\x89\x0d\xcf\xf1\xa0\xb0\x08\x1d\xbe\x94\x89\x2c\x80\xa9\x0b\x03\xc7\xb5\x75\x6b\x1e\xcf\x3c\xbb\xb3\x82\x07\xdc\xd3\xb2\xf5\x1d\x25\x07\x22\xa1\x5d\xaf\x3e\x29\x16\xda\x1f\x84\xe1\xe1\x3e\x6c\xb3\x13\x0e\xda\x4f\x87\xb9\xde\x60\xb3\xfb\xbe\x8c\x8b\x0e\x51\x89\x97\xf5\x9f\xd7\xc6\x1b\x29\x20\x0f\xa2\xe9\xed\xcd\xcb\x7a\x16\xd0\xb9\xcf\x2a\xeb\xbf\x46\x9b\x1d\x6e\x31\x82\xc7\x03\x9f\x48\xba\x68\x84\x11\x53\x17\x36\x6a\xdd\xf7\xab\x44\xf3\xa2\x3f\xcb\x0d\x75\x8a\xba\xca\x8e\x75\xb9\xec\x52\xc6\xc0\x56\x3d\x3e\x87\xce\x1e\xff\x4f\xe5\x73\x0f\xef\x51\x5e\x08\x73\xfa\x3e\x6e\x40\xcd\xaf\x8f\xe0\xe7\xed\x85\x53\x16\xf3\x68\x46\x0a\xb7\x0c\xbc\x5a\x9e\xb3\xfd\x01\x92\xda\xb2\x9d\xea\x46\xde\x41\x39\x8f\x87\xcd\x97\x54\x7b\x96\xd2\x7e\x01\xae\xdf\x7f\x35\x24\x1b\xf1\x8f\x25\x37\x17\xc0\x87\xd5\x35\x12\x84\x1d\xd2\xe9\x42\x36\xb7\x55\xfb\x31\x50\xaf\xf5\xa6\x1a\xa5\x0d\x17\xfe\x60\xb6\x83\xb6\xde\x5c\x9b\x5f\x0f\x3f\x76\xcf\x2a\xde\xd8\x34\x93\x1a\x88\xb2\xf4\xaa\x62\x6b\xb4\x9c\xc4\xad\xf5\x1e\x30\x92\x3f\x97\xa2\x14\x66\x01\x2d\xcb\x78\xdd\x0c\x96\x8c\x78\x70\xf9\x2e\x6d\xf4\x03\xdb\x96\xd1\x86\xd9\xc2\x59\x2c\x12\xbe\xab\x9a\x51\xe6\xad\x51\x68\x20\x31\x1e\xc5\x17\x18\x50\xcf\x47\x65\x5e\xe8\x2d\xe0\xd4\x7d\xb9\x59\xa9\x60\x97\x33\x6e\x77\x57\xdb\x85\x56\xa1\xd4\x7c\x64\x84\xfc\xfa\xf2\xf4\xe4\xec\xdd\x59\x2d\x3c\x3d\xbb\xfe\x21\xfc\xf7\x4f\x1f\xae\x7e\x78\x77\xfe\xe1\xa7\xf0\x6f\xe7\xb3\xdb\x8b\x93\xef\x17\x97\xe7\xb3\x8b\x4a\x10\x7b\x76\x33\xbb\x3e\xbd\xd9\x13\xa7\x6e\xd6\xda\x3d\x11\x3c\x60\xfc\xb4\xc8\x79\x2b\x67\x63\xdd\x55\x54\xeb\x1b\x36\xb3\xfc\xa7\x15\x86\x5e\x8b\x35\x00\x70\x52\x82\x18\x4b\x84\x24\xbc\xe5\x05\x3f\xe1\x05\x4f\xf4\x7a\xca\x66\x8c\xf2\x0a\x30\x5f\x24\x37\x26\x21\x91\x43\x9a\xd9\xc1\x22\x8c\x5d\x18\x79\x57\x90\xd7\xeb\xd6\x2b\xa2\x65\x4d\x44\xa8\xec\x64\x93\x3c\xe7\xea\xf4\x5e\xa8\xa2\x04\x43\x9b\x27\x09\xa3\x6a\xed\x17\x02\x56\x10\xdb\xca\x5c\x6e\x65\xc2\x33\x2f\xad\xfc\x81\xca\x82\xc7\xae\x6d\xab\x63\xa5\x6b\x52\x4e\x58\x7f\xc0\xed\x19\x83\x76\x9f\x9c\x9f\x81\xa1\x1b\x15\x56\x37\xd0\x56\x3e\x57\x48\xfb\x49\x35\x6e\x39\xe4\x30\x15\x9a\x1c\xf4\x58\x3d\x7d\xb9\x7b\x21\x1e\x64\x58\xd9\x50\xd6\x73\x39\x26\x5c\x23\xed\x7f\x9c\xaa\x22\xdb\x0d\xb6\x5e\x6f\x80\xd1\x21\x87\x77\x1d\x41\x22\xab\x72\xcb\xe8\x3f\x65\xb6\xf4\x0b\x30\x69\x2d\x5e\x97\xc2\x7b\x2e\x8a\x87\xf0\xa8\x8e\x27\x51\x62\x6e\xde\x5f\xeb\x38\x84\x2c\x60\x30\x0a\x4b\x5d\xaa\x38\x27\xf0\xe6\x56\xaa\xe3\x2d\xff\xe5\x95\xed\x29\x92\xd8\x38\xd1\x33\x60\x4c\x14\x89\x79\x0f\xee\xcc\x21\xd7\x3f\x5c\x73\xd5\x33\x5e\xfb\xdf\x04\xf6\x64\x05\x97\x81\xf7\xef\x20\x0c\xf5\x5e\xec\xda\xe6\xaf\x21\x5c\xc9\x42\xf5\x05\x28\x24\xcd\x84\xf9\xa2\xc3\xb8\x26\x08\x5d\x76\xff\x86\x5c\x96\x8a\xb8\x76\xfb\xd9\x1d\xc2\x46\x0e\xda\x36\xad\x80\x95\xe1\x86\xcf\x60\xe5\x51\xaa\xc9\xcc\x19\xc2\x57\x6c\xe4\x84\x72\x77\x28\x2e\x6f\x26\xeb\xbf\xf5\x92\xad\x20\x91\x8d\xfc\x04\x99\x80\x48\x19\x4c\x85\x95\xca\x01\x5e\xbd\x06\x26\xc6\x2e\x81\x44\xe4\x10\x3f\x52\xe6\x51\x2d\x7e\x2e\x09\x02\xf0\xfa\xcb\x71\xf7\x6c\x81\x7a\x0b\x48\xb0\x5d\x57\x22\x70\x77\x39\xb4\xab\x54\xb2\x8d\x6c\xf3\xaa\x54\xe6\x2a\x7e\x0a\xf4\xd4\xf0\xf0\x78\xad\x52\xfa\xe7\xde\x5c\x33\x1b\xd9\xc9\xf0\xfb\xcf\xc6\x9d\xfc\x63\x8d\x32\x99\xaa\x83\xcc\x06\x2a\x3d\xbc\xd0\x96\x3c\xba\x7b\xe0\x59\x8c\xee\x7f\x80\x33\x4d\xd9\xf7\xfa\x41\xdc\x8b\x6c\xc2\x22\x91\x15\x9c\xf8\x0a\x73\xc0\x73\xc0\x86\xa2\x72\xe6\x0a\x12\x7d\x90\xfc\x51\xe5\x65\x26\x58\x21\xd7\x9b\x42\x64\x21\x1a\x47\x67\xe6\x38\x2a\x90\xaa\x36\x15\x11\x11\xb2\x75\x0c\xc0\x2a\xe1\xf7\x4d\x02\xc6\xc7\x30\xc9\xb0\x33\x97\xad\x6c\xc3\xdd\x56\x7e\xac\x0f\x3f\x45\x03\x46\x87\x26\x52\x68\x4d\xd8\x5a\x27\x5c\xad\xa7\xd3\x29\x48\x6d\xbc\x1a\xb5\xd0\xa9\xc0\x30\x80\xee\x50\xfa\x89\xd6\xb9\x48\x76\x8e\x44\xcc\xe5\x51\x01\x70\xf7\x97\x42\xa8\x5c\xa2\x63\xab\x65\xf9\x5f\xd7\x83\x4b\x9f\x36\x16\xd7\xfe\x3c\x1f\x9d\xa5\xdb\x51\x0e\xa8\x99\x8e\x28\x09\xbf\xdf\xfe\xf2\x7a\x54\xd6\x79\x7b\x59\x4a\xab\xb1\xa9\xd4\x3f\x6a\xd9\x01\x05\x79\x14\xd9\x68\x6b\x49\x44\x84\xf4\xa8\xf4\xd3\xf6\x31\x6b\x64\x04\x1f\x90\x0c\xdc\x93\xd7\x3b\x32\xa5\x77\x88\x23\xe0\xba\x3e\xdd\xa3\xb7\xc5\x7e\x81\xb5\xd6\x0e\x8d\x4c\x99\xf6\xdc\x06\x63\x4c\x27\xcc\xba\x4c\x76\xf0\xe2\x72\x09\xd4\x10\x1e\x88\x83\xa8\x52\x25\x68\x06\xa9\x7c\x3e\xea\xe6\x08\xea\x82\x20\x5b\x5e\xe8\x8c\xaf\x05\xdb\x8a\x58\x96\xdb\xd6\xc3\xc6\x35\xf7\x10\xf8\xa8\x4e\xca\x6d\x37\x55\xe8\xa1\x06\xb4\x6f\x24\xfe\xd7\x09\x54\x37\x9c\x43\xc7\x65\x46\x58\x9d\x4b\x6a\x2f\x86\x90\x68\xac\xcd\x4d\x99\xc9\x1c\x58\x76\x1f\x93\x39\xeb\x8a\xc1\xa2\x21\x00\xbf\x4b\xd1\xc9\x5e\x99\xdd\x23\x1b\x19\xa5\x9f\xe4\x38\xab\x10\xb5\xef\xbe\x14\xea\xa0\xd4\xf1\x6a\x77\x99\x2e\x1b\xdc\x53\x83\x80\x12\x60\x36\x06\xda\x17\x84\x9a\x83\x02\x09\xda\x53\x68\xb6\xb2\xb9\x98\x77\x22\xa0\x3e\x8c\x41\x15\xe3\x01\x29\x9f\x7e\xf8\x3a\xb7\x20\x20\xc2\x69\x79\x8b\xa5\xf0\x95\x60\x04\xe8\xfe\xb5\x85\xe7\x61\x0f\xb1\x08\x20\x28\x8c\xb9\x2a\x5a\x0b\xf0\xe8\x55\x28\x0b\x7f\xf2\x23\x2f\x93\xf6\xaf\x53\xf9\xf0\x55\x54\x4d\x9d\xfd\x74\xcd\x70\xa8\x49\x3f\x21\xeb\x6b\x68\x50\xc8\x7e\x80\x20\x0c\xd7\xe2\x11\x96\x60\x65\x1e\x70\xd0\xad\x80\x86\x19\x76\x51\x44\x1b\x6f\x79\x00\x41\xa3\x23\x96\x24\x49\x6c\xea\xe7\xd6\x2b\x42\x20\xf6\x3a\x04\xb1\xca\xb5\xd2\xa1\x98\x91\x56\x02\x42\x71\xe6\x00\xd2\x61\xb1\x4c\x16\xfb\x91\x82\x23\x59\x09\xf7\x2d\xb5\x42\x23\x02\x8c\xfa\x59\x89\x53\xc3\x93\x42\x22\x5d\x95\x85\x59\xe3\x9b\x88\x14\x96\xeb\x4a\x01\x55\x02\x90\xb9\xaa\x56\xd5\x18\x24\x0b\xe5\x93\x99\x40\x82\xef\xdc\x58\x6f\x85\xbc\x37\x1b\xb5\xb9\xac\xdd\x02\x85\x13\xa0\xb9\xf6\x28\x6c\xcb\x02\x96\xf0\x3b\xb1\xcb\x43\x39\x67\x5a\x51\xac\x6b\x41\x4a\xd3\x1f\x9a\xaf\xfd\x53\x01\x03\xb7\xc8\xbc\x28\xe3\xb0\xbb\x0c\x2b\x7d\x6f\x7e\xdc\x83\x11\x6e\x14\x6e\xd6\xa0\x4f\x76\xf5\x3e\x45\x3a\x26\xfc\x38\xd3\x1c\x7a\x18\x20\x80\x3c\x43\x18\x67\x98\xb9\x04\x0f\x5f\xf3\xbe\x9d\x2b\x12\x12\x08\x2e\x39\x73\xe0\x34\xa7\x8d\x32\xf0\x91\xbe\x7c\x57\x61\x0f\x02\x6a\x55\x4b\x33\x5b\xad\xd2\x46\x97\x41\x19\x0f\x96\x07\x54\x8d\x39\xca\xd6\x87\xd7\x5a\xe1\x23\xb1\xa5\x34\xb9\x9d\x78\xd2\x20\x11\x10\xbf\x49\xec\xa2\xa8\x0b\x8e\xaf\x9f\x48\x98\xe1\x9b\xa9\x56\x28\xa7\x05\x72\x5e\x9f\x9e\x5c\x9d\xde\x7c\x32\xbc\xa9\x05\x7b\x8e\x06\x9c\xda\x76\xbe\x3d\x7d\x37\xbb\x3d\xbf\x59\xbc\x3d\xbb\x7a\x0e\xc4\x29\x7d\xf4\x08\xc8\xe9\x35\xe9\x93\x9c\x68\x55\x88\x5f\x0e\xba\x93\xb3\x52\x2d\xf8\x88\xd4\x27\xa7\x50\xd4\x67\xee\x60\xa1\x4d\x7d\x15\x27\x7e\x42\xdc\xb6\x84\x3a\xb1\x72\x2a\x2b\xef\x34\x5c\xc9\x24\x81\x4c\x70\xe7\x5e\xa7\x2c\x43\x33\xa8\x70\xfe\x58\x3a\x5f\x3a\x53\xe7\x6a\x59\x91\xbf\x01\x97\xdf\xc6\x3c\x82\x31\x07\x3c\x35\x03\x90\x49\xc8\xb0\xed\x93\x60\x59\x4b\x25\x7c\x33\x60\xd6\x4c\xfb\x3a\x69\xea\x69\x12\x9f\x13\x59\x47\x86\xd7\x50\x5b\xd3\xae\xb8\xca\xfa\xb4\xe6\xa7\xfd\xd0\xf5\x10\x37\xb1\x54\x68\x98\x56\x76\xf3\x75\xfb\xd2\x3d\xf6\x5b\x00\xc6\xdd\xcc\x24\x87\x18\x44\x5e\xf0\xac\xf0\x13\x49\x13\x81\xd2\x6c\x3e\x38\x71\x27\x11\x81\xa6\x57\xb5\x71\x36\x47\xa1\x19\x6b\x09\x91\x0a\x4e\xe4\x36\x51\x52\xe6\x85\xc8\xc8\x6d\x32\xfb\xe9\x7a\xae\xbe\x35\xd7\xd7\x2b\xba\x85\x48\xbe\x0b\xab\x40\xa4\x8e\xae\xd4\x6f\x2d\x94\xf0\x04\x7b\x89\x3e\xea\xad\xe0\x2a\x67\xb0\x35\x92\x44\x64\x7e\x65\x60\x7b\x84\x88\x49\xc6\x1a\xa8\x9e\xfd\xef\x5f\x31\x02\xb7\x9a\xa1\x30\xed\xa5\x4f\x33\xb1\xd5\x45\x73\x3d\x75\x11\x0d\x00\xe2\xfc\x39\x57\x4e\x4b\xe2\xd3\xd0\x55\x44\x60\xfd\xd6\x45\x54\x4d\x43\x1a\xb4\x96\x6e\xb0\xb8\xdf\x96\xd2\x13\x2e\xa5\x01\xf7\x7a\x78\x4b\xb0\x8d\x36\x07\xa8\xd3\xb6\xf2\x61\x66\x47\x74\x92\x00\xca\xcd\x0c\x63\xeb\xad\x53\xd3\x77\x3d\x04\xfb\x01\x45\x1d\x86\xd0\x9e\xb5\x30\x2a\x79\x21\x41\x1b\xdb\xe9\x95\x8e\x7d\x1e\xe6\xc2\x99\xc5\xaa\x2a\x5d\x58\x0e\x12\x07\x0f\x25\xac\xab\xf9\x82\x23\xbf\xe9\x6d\x23\x11\xca\x58\x2b\x65\x71\xa0\xfc\xe2\x4d\x88\xa9\xad\x64\x65\x63\x2b\x42\x3e\x07\xcb\xe1\xe0\x38\x60\xc6\x2c\xbe\xc7\x0b\xfc\x56\xd7\x9c\xe3\x13\x7d\x14\xd8\xe1\xe2\xc3\xc5\x69\x08\x55\x38\xbb\xb8\x39\xfd\xee\xf4\xaa\x92\xcf\x7f\xfe\x61\x56\xc9\xc9\xbf\xbe\xb9\xaa\xa5\xe2\x7f\xfb\xe1\xc3\xf9\x69\x03\xf3\x70\x7a\x73\xf6\xbe\x52\xf8\xdb\xdb\xab\xd9\xcd\xd9\x87\xca\xf7\xbe\x3d\xbb\x98\x5d\xfd\x57\xf8\x97\xd3\xab\xab\x0f\x57\xb5\xfa\x6e\x4f\xfa\xd1\x13\x95\x6e\xb4\xbb\x7f\x7c\x70\x36\xa0\x56\x6d\xdd\xc6\x55\x01\xe4\x03\x76\xf1\x40\xe4\xd9\xbe\xe5\x68\xd3\xf5\xe3\x50\x8e\x03\x37\x86\x69\xea\xa8\x55\xf7\xf4\x8a\xcd\x95\xa1\x4b\xf9\x61\xc7\x9e\xb9\xd5\x16\x4f\x81\x04\xec\x35\x00\x5d\x2d\x35\xc7\x2d\x09\xa4\xe3\xd0\xa6\x10\xc1\x5a\xf3\x4e\xbd\x32\x15\x3f\x7b\x4b\x6d\x1d\xfb\xda\xe9\xa9\xbc\xf6\x30\x22\x3d\x15\x1b\x4a\x5f\xa3\x83\xca\x2c\xd9\x80\x8c\xad\xa1\x60\x3f\x0c\x61\xf7\xa6\x1b\x66\xe5\x04\xcb\xb1\x4b\x5a\xb7\x3d\x6d\xa9\x9f\x7d\x6f\x6c\xfb\xa9\x92\x66\xdb\x6b\x54\x2d\x23\xda\x0d\x94\x59\x63\xda\x7d\xc3\xf3\xbb\xb1\xed\xa6\x4a\x9a\xed\x06\xb3\xef\x51\xed\x06\x87\x77\xd1\x4e\xa3\x33\xe2\x10\x0b\x8b\xa9\x36\xcf\xe5\xf8\xbb\xaf\x04\x0a\xd6\xc3\xda\x68\x36\xc0\xf3\x3e\x2f\x53\x3e\x3c\x90\x01\xad\x71\xdb\x95\xd7\x58\xe5\xaf\xe1\x53\xe8\xe1\x32\x13\xfc\x2e\xd6\x0f\x34\x1f\x75\x64\x28\x1b\x74\x9a\x57\x07\xc8\x9c\xe1\xf6\x8a\x28\x32\x8a\x40\x21\x4a\xcd\x17\x0f\x30\x39\x49\xbc\xe8\x68\x83\x05\xd2\xcb\x75\x22\x22\xa0\x7e\x52\x7e\x76\xe6\x0a\xad\xf9\x36\xf9\x66\x33\xab\xa6\x45\x44\x1d\x02\x5d\x75\x36\x34\x06\xd7\xf3\x60\x62\x29\x0f\xa8\xcc\x00\x4c\xb7\xcc\xe0\xcd\x04\x03\x22\x15\x38\x93\x33\xf3\xe0\xc9\x44\x24\x73\x11\x28\xc6\xb5\xde\xd8\x3f\x1f\x26\x85\x52\xf0\xa2\xd5\xed\x3a\xd8\x1f\xce\xa3\xa2\xe4\x09\x83\x74\x25\x62\x60\x44\x5f\x25\xfe\x25\xe2\x0a\x53\x63\x0a\xb1\x4d\x21\xab\x3f\xcc\xe9\x98\xab\x9f\x00\x28\x81\x53\xf0\x22\x67\xdf\x01\xe4\xc1\x7e\x99\x2e\xe1\x2d\x2f\xe0\x2e\xfe\x23\xd6\xe1\x3e\x9b\xce\x55\x45\x81\x29\xf8\x55\x45\x8c\x69\x3a\x57\x56\xad\x23\xd6\x51\x3e\x85\x17\xdf\x54\x67\xeb\x63\x52\x33\x37\x8b\x5d\xdf\x2d\xb5\xbe\x3b\x16\xea\x18\x7c\x52\xc5\x31\x2f\x0b\x7d\x0c\x70\x29\x9c\xff\xfc\xd8\x8a\x1e\x5b\xd5\xe8\xfc\x78\x23\xef\x05\xfc\xbf\xe9\xa6\xd8\x26\xff\x27\x4f\x37\xbf\x1c\xad\x93\xec\xc8\xfc\xf6\x28\xfc\xed\x91\xfd\xed\x91\xfd\xed\x91\xf9\x19\xfe\xbf\x74\x87\xe1\x1d\xf1\x0b\x37\x77\xd9\x64\xae\xa4\xca\x45\x56\x80\xf5\xf3\x90\xc9\xc2\x4b\x5d\xed\xd8\x8b\xbf\xfd\x8d\x4d\x33\xfe\x80\x19\xb1\x6f\x79\xc1\x2f\xd1\xbf\xf8\x8f\x7f\xbc\x80\x80\x2a\x66\x31\xa5\x3c\xfb\xb9\x14\xc5\x5c\xe5\xc2\x6c\x42\xf6\x7f\xe7\x0a\x22\xb0\xdb\xdd\xa2\x40\xbf\x2b\xfa\x20\xe3\x9c\x7d\x83\x65\x9e\x21\x1b\x69\x9c\x9b\x92\x3a\xd2\x09\x24\x4f\x5a\x74\xf2\x3b\x5c\xf4\x3f\x27\x6f\xe9\xfb\x23\xb6\xf5\xcf\x49\x75\x57\x5b\xb1\xa5\xfc\xe7\x04\x2e\xd0\x44\x73\x0b\xd6\x62\x6e\xf1\xc2\x3b\x99\x1a\xd7\xb6\x47\x1a\xd0\x80\x67\x0d\xd3\xb7\xef\x95\x6b\x64\x44\xb7\x9e\xfb\xc6\x31\x02\xb1\x02\x1f\x87\x80\xe8\xb9\x34\x3b\xe4\x1a\x3d\xa1\x60\xb9\x61\xcf\xc1\x26\xa5\xd0\xb9\x2b\x0f\x1d\x17\xf9\xef\xdf\x1c\x1f\x4f\xd8\x3a\x87\xff\x59\xfe\x0c\xff\x03\xe8\xa1\xa7\x22\xf5\x6d\x0c\xa6\x03\xc2\x35\x67\x79\xff\x4c\x3c\x05\x8a\xee\x53\xf0\xc8\xd7\x96\xe9\xb7\xa5\x8a\x13\xe1\x53\x1b\x2b\x21\x91\x44\x9b\x99\xb4\x13\xd5\x54\x1e\x82\x39\x5e\x8a\x88\x9b\x83\xaf\x51\x37\x82\x4b\xf5\xaa\x10\x0a\xbd\x61\x99\x57\x7b\xe4\xe8\xb9\x02\xb3\x18\xa0\x90\xbc\x20\xc8\xb9\x80\x3f\x42\x25\x40\xcc\x3e\xa9\x7f\xc4\x76\xba\x24\x8e\x71\x60\xce\x8d\x45\x94\x80\x90\x83\x65\x0f\x62\x99\x28\xca\x4c\x31\xce\x52\xae\x62\x9e\xc3\x0a\x5c\x65\x10\xed\xcc\x18\x6f\x36\x74\x82\x70\x5c\x5d\x16\xc0\x89\x85\xc8\x82\x70\x24\x90\x04\x3e\x68\xf3\x24\x68\x04\xde\x09\xc0\x45\xdd\xf8\xe1\x74\xae\xac\x1e\x21\x61\xe1\xd0\x53\x16\xe9\x74\x47\x8c\x47\xf5\x41\x97\xd6\x73\x46\xc3\x3d\xf1\x78\x93\xfa\x77\x27\x4c\x56\x43\x6b\xc0\x37\x5f\x04\x12\xef\x56\x24\xff\xa5\x50\x91\x8e\x45\x96\xbf\x32\xdb\x50\xba\x77\x07\xda\x0f\x32\xf7\x93\x01\xa7\x94\xb9\xdc\xc8\x5b\x68\x8a\x77\x02\x53\x66\x74\x2a\x0c\xe5\x6d\x76\xce\xfe\xad\xf2\x6b\x47\xc1\xb4\xb5\x97\xfe\xf3\x93\x22\x62\x42\x5c\xa7\x7d\x73\x3e\xde\x05\x81\x5b\x36\x3c\x71\xb1\x50\xb4\x71\xc8\x38\xb1\x7a\xda\xb2\x00\x85\xcc\x4c\xe4\xc5\x5c\xd1\x0d\x3c\x61\x2b\xc1\x8d\x9d\x37\x61\x51\x7e\x8f\x87\x31\x5e\xf7\xc5\x83\xf6\x18\x1c\x2b\x6f\x03\x60\xd8\x4a\xe1\xde\x49\x8c\x5f\xe3\x94\x81\x8d\x00\x83\xae\x17\xba\x33\x55\x60\xb0\x5a\x0f\xc4\x47\x8c\x83\x55\x4b\xa9\x2b\xac\x85\x62\x3d\x30\x12\x3b\x0c\x14\xb3\x7a\x3b\xf0\x03\x73\xf0\x60\xef\x10\x06\x12\x1c\x8e\x60\x71\x13\x96\x16\xf7\x99\x8f\xe1\x86\x94\xf5\xe0\x9b\xe9\xda\x54\x3d\x03\x01\x0d\x78\x9c\xdf\xc2\xfc\x74\xaf\xc3\x2a\x17\x99\x95\x72\xc1\xbe\x22\xc1\xe4\x46\x66\xf1\x51\xca\xb3\x62\x67\x97\x6f\x22\x97\xa0\x00\x91\xc8\x3b\xc1\x66\x59\xa6\x1f\x9e\x7a\x14\x3a\x8f\x96\xae\x17\xf6\x21\x48\xf6\xb1\xaf\xfc\x56\x7a\xd9\xba\xbb\xe3\x71\x54\xb6\x5d\x8e\x8f\xd6\x7a\x32\x51\x64\xbb\x85\x59\x88\xdb\xb4\xf3\xa4\x18\x94\x34\x31\xdc\xc8\x1d\xc7\x92\x5b\x73\x61\x74\xb2\xe4\x56\x66\xf5\xd7\xc3\x92\xdb\x42\x80\xdb\x64\xc9\x3d\xbb\x38\xbb\x39\x9b\x9d\x9f\xfd\x7f\xb5\x12\x7f\x9a\x9d\xdd\x9c\x5d\x7c\xb7\x78\xf7\xe1\x6a\x71\x75\x7a\xfd\xe1\xf6\xea\xe4\xb4\x9f\xf6\xaa\xd9\x7a\x6f\x82\x1f\xb1\xb0\x9e\x37\xec\x26\x00\x6a\x60\xb2\x01\xd9\xdf\xa4\x8f\x0b\xab\xca\x6c\x66\xa9\xd6\x13\xd8\xa8\x6f\xd8\x69\x96\x9d\x6d\xf9\x5a\x5c\x96\x49\x02\x70\x2a\xcc\xec\x39\xc9\x04\x3c\x3c\x27\xec\x52\xc7\x67\xc1\xef\x20\x1d\xb1\xb5\x1b\x50\x3f\x8f\xe3\x4c\xe4\x39\x56\x3f\xa1\xfa\x03\xf0\x90\x4b\x75\x24\xf0\x1c\xbf\xe7\x32\x31\xef\xb7\x37\xec\x5b\x1e\xdd\xe9\xd5\x0a\xd3\x67\x26\x2e\x71\x8a\xfd\x5c\xea\x82\x33\xf1\x4b\x04\x54\x6f\xed\xeb\xe4\x5c\xaf\x3f\x03\x54\x79\x40\x78\xaa\xe3\x91\x02\x52\x77\x8b\xf6\xeb\xbc\xfd\x20\xa0\x5e\xbe\xc7\x9f\xbe\xc3\x5f\xb6\x3b\x28\x8b\xe4\x09\xd2\xe3\xcf\xf5\xba\x5d\x78\x08\xac\x6b\x52\x4b\xa2\x40\x42\x44\xec\x22\x7a\xcd\x72\xa9\xee\xe6\xea\xa7\x8d\x50\x4c\x97\x19\xfe\x09\x9e\xf9\xc6\xcc\x4c\xca\x7c\x23\x40\xa6\x7a\xc2\x1e\x04\xdb\xf2\x1d\x9a\xcd\xf0\x26\x70\x6a\x29\xb0\x64\xe0\x16\x31\xbf\x4e\xa4\x32\xa7\x45\x2a\x6d\x5e\x42\x7d\xea\x9f\xe2\xc5\x65\x89\x0e\xf9\xe1\x3c\xc4\x7d\xf7\x69\x05\x9f\x07\xae\x32\x8f\x9b\xb4\x00\x21\x3a\xb9\x41\x54\x56\xeb\xbb\x32\xf5\x94\xa8\x2f\x6c\x70\x12\x86\xfb\x5e\xcb\x98\xc5\x65\x9a\xc8\xc8\x9d\xbb\x0f\x3a\xeb\xe4\x7d\xc6\x04\x9a\xe1\xb7\x4e\x3d\x2d\xac\xaf\x63\x2d\xd9\x39\x01\x92\xae\x87\x01\xfa\x99\x39\xb0\x99\x54\x51\x52\x82\xcc\x5c\x99\x8b\xec\xc8\x49\x47\xbb\x5c\xbf\x5f\x3f\x49\xb6\x27\xe1\x3c\x3c\xad\x2d\x4c\x3a\x4f\xf4\x5a\x46\x3c\x09\xc1\xcd\x1e\x15\xe1\x58\x78\xed\xb6\x27\x31\x61\xc8\x83\xb0\x0d\xea\x24\xd2\x4a\x33\x01\x44\xd0\x0b\x38\xca\x17\x74\xdc\x1d\xd2\xee\x15\x33\x0f\x74\x6c\x57\xc8\x91\x6b\xc3\x0b\xf6\x86\xf3\x75\x5b\x25\x36\x30\x31\x51\xc2\x9f\xe9\x07\x25\x32\xb0\x60\x01\xf6\x61\x7a\xaa\x34\xd8\x26\x4e\x9d\xcd\xe1\x93\xad\x3a\xe1\xca\x01\xb1\x31\x73\x76\x2d\xef\x85\xfa\xf4\xa4\xe6\x41\x05\x11\x8f\x36\x62\x61\xed\xf2\xa7\x3e\xb2\xdc\x05\x30\xf2\xb0\xb2\x32\x29\xe1\x51\xea\xc2\x9b\xf0\x74\xc2\x16\x37\xcf\x2e\x0c\x24\xf6\x64\x64\x99\x46\x2c\x62\x11\xdd\x7d\xf2\xa3\xd9\x83\xac\x6c\x43\x18\x67\x6f\x45\x74\xc7\x6e\xaf\xce\x30\x1b\x58\x16\xcc\x1c\x05\xf9\xc6\xcb\x3e\x75\xbe\xdd\x0a\xbe\x7e\x06\x0a\xab\xa1\xba\x55\x5e\xaa\xc0\xa9\xf5\x99\x06\x11\x20\x0a\xf2\x25\xcd\x21\x49\xb9\x34\x00\x04\xe3\x85\x55\x33\x02\x47\x3c\xcb\xb7\x20\x5e\x54\x16\x81\xe2\x5f\xc2\x97\x22\xe9\x20\xee\x4c\x75\xbc\xb0\x71\x92\x43\xc1\x3c\x8d\xb2\xac\x1f\x83\xa2\x8e\x36\x8f\x81\x1b\x8b\xf5\x86\xbe\xc8\xee\xbe\xce\x03\x7a\x0d\x1d\xf2\x87\xc3\xbb\x9e\xe7\x90\xde\xbd\x92\x6b\x1b\x6d\x93\x2b\x92\x58\xc2\x84\x7e\x63\x07\xc3\x79\x69\x4a\xba\xd4\x31\xc1\xf4\x1c\x17\x9e\xb1\x82\x04\x79\x4f\x3c\xae\x22\x6c\x82\xc5\x01\x42\xbd\x66\x47\x08\x1e\x33\xbd\x22\x6f\x62\x9a\x26\x12\x98\xa1\x63\x24\xa1\x07\xf6\x8c\xbc\x8a\x8e\x0f\x4b\xb3\x8d\x0d\x48\x3e\x2e\x2d\x10\xaf\x4b\x8c\x17\x0e\x0c\xcc\x60\x58\x00\x1b\xdc\xe2\x9e\x77\x93\xa9\x3d\xbb\x62\x5a\x47\x7b\x5c\x34\xb9\x4a\x09\x5b\x21\xed\x23\x5f\x01\x5e\xeb\x36\x21\x3f\xe2\x49\x54\x52\x9c\x0c\xe4\xf2\xad\x0a\x7e\x3f\x82\xd0\x47\xfd\xcc\x44\x57\xbd\xfe\x75\x23\xf3\x50\x75\x45\x97\xa0\xf5\x58\x9f\x42\xbf\x7b\x71\x9d\xe8\x25\xac\x9c\x6e\x94\x60\xcf\x8d\x65\x8e\xeb\x4c\xc6\x63\xec\x1d\x3b\x26\x1f\xdc\x4f\xfb\x1a\xf8\xc1\xba\x7e\x5c\x4d\x76\xdd\x33\x12\x32\xa8\x31\x37\x8e\xa3\x40\x58\x91\xaa\x6a\xf5\x79\x52\x90\x8c\x07\x2c\x2b\x77\x3f\x75\xf8\x19\xaa\x7d\x39\x68\xa2\x9b\x4c\x31\x7b\xc6\xd2\x93\xcb\xf4\x4f\xf2\x01\x74\x1f\x78\x94\x39\xce\x8f\x6e\xcf\xa2\x8a\x45\xbc\x78\x44\x1f\x4e\xe9\xb7\xc3\xfa\xe2\x46\x1a\x9b\x07\x3e\x40\x75\x64\x4c\x85\x98\x67\xb1\xef\xc7\x04\xf6\x7b\xc4\x53\x70\xc3\x43\x58\xe3\xfe\xf5\xd4\xd6\x71\xe5\xb3\x8b\xcc\x79\x89\x39\xff\x88\xdf\xd6\x2d\x1a\x38\xfb\xd6\x91\x5b\xa4\x08\xef\x36\x2b\xc7\x2f\xd7\x4a\xde\xcd\xa0\xb5\x5b\x5f\x61\xf6\x00\x3f\x64\x71\x3d\xc7\xd9\x51\x16\xda\x47\x7b\xa0\x3f\x67\x40\x3b\x1c\x66\xf4\xc1\x01\x79\x16\x77\x20\x45\xac\xf9\x6d\x0f\xa1\x11\xf8\xe3\x51\x08\xe8\x34\x13\x36\x6e\xb8\x13\x85\xe3\x75\x48\xac\xae\x20\x84\xc5\x5c\xaf\xab\xc4\x36\x96\xbb\xc2\x91\x91\x41\x10\x8b\x4c\xfd\x48\x6f\x53\xad\x00\x96\x84\x59\x6a\x73\x45\x85\x5b\x75\x78\x17\x59\xab\xa4\x3a\x4e\xc8\xa1\x89\x89\x33\x22\xd7\xc9\x3d\x85\x50\x03\x11\x13\xd0\x95\x34\x0d\x3c\x31\x6f\x43\x9d\x21\xc1\x96\xbd\xd9\x21\x13\xa0\x26\x91\x9e\x89\xb5\xcc\x0b\x11\x66\x87\x86\xbf\x7f\x32\x35\xdb\x8a\xf3\xa4\x6f\xe8\x3b\xd5\x6c\xf7\xbd\x82\xcc\xf9\x34\xa2\x3d\xbb\x54\xc4\x67\xee\x77\xfd\x8b\xa1\x96\xc0\xef\x8f\xc3\xca\x7d\x87\x6b\x00\x5f\x7f\x39\x52\x7d\xe5\x4e\x7e\xc4\x4d\x12\x91\x30\x71\x0f\x68\x34\x53\xb4\x2e\x79\xc6\x55\x21\x44\x3e\x57\x14\x78\x46\xca\xba\x90\x95\xa5\x06\x84\x74\x6f\x9b\x48\xe7\x05\x32\x40\xc1\x4f\x56\x5c\x26\x65\xd6\xe9\x6e\xc0\x55\xf9\x28\xda\x89\xbe\x51\x3a\x81\x62\x59\xdb\xa4\xb9\x04\xe6\x60\x17\x39\xd6\x94\x7a\xd8\xb8\x9a\xdf\xdb\xd1\x05\x7b\xb9\x0c\x9f\x6f\xe7\x6b\xee\xc8\x69\xfe\x3a\x5f\xa4\x7a\xc4\x89\xf7\xc3\xd7\xf9\xa5\xee\xc8\x06\xcf\x7f\x6e\xf8\x44\x7b\xe0\x13\x3f\x77\x09\xb2\xf0\xfc\x0e\x22\x8f\xfb\x5c\x31\x83\xd8\x38\xf7\xc6\x27\x3b\xcf\x2e\x58\xb5\x1b\xae\xe2\xc4\x98\xbc\xbc\xa8\xf3\x5e\x3b\x9c\xb7\x79\x12\x15\xf6\x70\xec\x4e\xea\x83\x1c\x99\x45\xd4\x48\xb0\xdc\x37\x4e\xb5\xcc\xcc\x5e\x2c\x65\xad\x96\x6a\xbe\x64\x5b\x9e\x8e\xb7\x61\x48\x06\xd9\x6d\xd8\xcf\x6e\xbf\x9c\x86\x6d\xff\x44\xe6\x4b\x75\xaf\xad\xe4\xfa\x57\xe0\x48\x78\xdf\xbc\x12\x22\x3a\x73\xe8\xa2\x76\xd9\x0d\x07\x9e\x3a\x90\x48\x66\x4e\xed\x90\x71\x7c\xae\x48\x0e\x1e\xd1\x05\x10\x56\x46\xbe\xb5\x9c\xbd\x76\xd9\xc5\xaf\xff\xcd\xb2\x6d\xed\xd8\x0a\x16\x15\x50\xda\xe9\x28\x2a\x33\x08\xfd\x93\x7b\x92\x09\xbc\x84\xf3\x51\x44\x32\x60\x7a\x38\xc0\x16\xda\x89\x6d\x66\x92\xf3\x47\x57\x3a\x75\x03\x6e\x48\x14\xb6\x77\x97\x3e\xe9\x95\x65\x79\xc1\xf2\x42\xa4\xad\xc7\x6f\xc5\xba\xdc\xa5\x62\xa6\x94\x2e\xea\xf9\x29\xa3\xed\x4b\xee\x4a\x19\xb8\x75\x46\x5c\x46\xb3\xc0\x65\xf4\x87\xeb\x0f\x17\x2c\xe5\x3b\xc0\x3e\x16\x9a\xe1\x57\x81\x70\xb4\x7e\x50\xed\x9b\x81\x6a\xe7\xab\xa7\x0a\x8e\xa9\x05\x51\xb7\xc7\x27\xa8\xc6\xa6\xb1\x08\x6b\x86\x96\xa4\x39\xb3\x32\x9d\x1c\xa5\x09\x57\x01\xbc\x3d\x9f\xb2\x5a\xf5\x21\x9e\xc1\x45\x36\x09\x31\x06\x0d\x00\x7f\x05\xad\x85\xac\x6c\x05\x40\x03\xef\x8e\x5d\x50\x87\x41\x18\x3a\xcf\x88\x5e\x60\xe7\x7b\x54\x81\x41\x4d\x04\x64\xcf\xb0\xb0\x0c\x87\xec\xe1\x39\x80\x6e\x3b\x19\xc0\x79\x94\xf0\x3c\xef\x45\xe9\x3c\x0b\x95\x7c\x90\xb5\xb8\xff\xf8\xaa\xb6\x13\x61\x84\xc0\x6d\x82\xef\x52\xf7\x31\xb0\x25\xd8\xa3\xcb\x8b\xbe\x05\xf6\x7e\xa0\x06\x41\xd0\x07\xe2\x8b\x82\xdf\x23\x13\xe4\x9d\xd8\x59\x0f\x17\x1d\x55\x7c\x2b\x26\xce\xd9\xea\xbc\x89\x01\xe8\xaf\x59\xf0\x5c\x01\x2a\xf6\x5d\xd8\x3c\xf6\x4e\xeb\x09\xe2\x33\xa9\x72\x8e\xc5\xf2\x10\xe1\x34\x57\xef\xb4\x9e\x72\xf7\x88\xa5\xf6\xd3\x71\x53\xaf\x90\x50\x51\x80\x39\xac\x4d\xe7\xf0\xbd\xf9\xbd\x54\x28\x4f\x28\xb7\xe6\x01\x45\xe3\x04\x2b\x0a\x1a\x64\xd5\xf0\xf5\x43\xce\x62\xa4\x94\x29\x65\xbe\x81\xb0\x0b\xc6\x39\xa1\x7e\xba\x52\x10\x90\x95\x71\x95\x9b\x3d\x0c\xa1\x1a\x71\x2f\xc8\x5f\x5b\xc1\x18\x9c\xbd\x3d\x77\xb0\x25\xdc\x97\x24\xdd\xd1\xb1\xdb\x82\x47\xc7\x21\x8f\x73\x80\x9b\x8f\x20\xb4\x23\x07\xe7\x7b\x9e\xf6\x25\xc3\x1e\x5c\xe2\xbe\x59\x72\x84\x5a\xf5\x17\x15\x28\x99\x83\x86\x61\x25\x23\x36\x1c\xbd\x5b\x75\xe0\x8d\xd3\xca\x69\xbf\x5f\x72\x67\xb0\x83\x61\xe4\x51\xb1\xff\xba\x09\xb8\x2d\x1d\x64\xd0\xbd\x05\xcd\xc1\x0e\x0a\x71\x40\xca\x87\x5b\x7a\xca\xae\x85\x60\x1f\x61\xa4\x4c\x65\x1f\x49\x81\x14\x50\xd0\x05\x97\xad\x02\x71\xf0\xed\x33\xb5\xd2\x87\x9d\xff\xd9\xba\x81\xb2\x3d\x68\x54\xda\xdb\x79\x28\x8e\x17\x3c\xfd\xea\x79\x69\x45\x06\x5d\x0c\xb5\xb9\xbe\xf4\xfe\x26\x4a\x36\xb6\x2d\x35\x26\x19\x4c\xf1\x63\x88\xeb\x6a\x8b\xc4\xf4\x72\x82\x64\xec\x77\x4a\x3f\x28\x3c\x8f\xa9\x26\xf6\xd2\xec\x3f\xb0\x59\x30\x2e\x84\x96\x60\x89\xa7\xe1\x2b\x60\x87\x9f\xb9\x7f\xb3\x6b\x0c\x81\x63\x9b\x41\x3a\x2c\x07\x7b\x97\x44\xbf\xe0\x02\x7f\x39\x9b\xb0\x6f\x27\xec\x64\xc2\xa6\xd3\xe9\xab\x09\x13\x3c\xda\xd8\x16\xe1\x4f\xf0\xe8\x2f\xf8\xda\x94\x4d\xb2\x3f\xab\xa0\x02\x90\x07\x34\xf6\x89\x25\x41\xe4\xfe\x5b\x81\x57\xcd\x76\x01\x53\xb3\x29\x8f\x8c\xe0\x42\xd1\x46\x4b\xdf\x28\x40\x9e\x8b\x48\x67\x16\xbb\x9e\x17\x3a\xb3\x38\xdc\x7b\x9e\x71\xa9\x80\xb1\x82\x37\xb3\x10\xa8\xe6\x80\xb3\x5e\xfc\xc2\xb7\xd0\x7f\xa9\x1c\x6d\xaf\x19\xa6\x1b\xd7\xfe\x62\x97\x52\x9c\xed\x21\x93\x45\x61\x0c\xb2\x7c\xae\xae\xd9\x9b\x6f\xd8\x2c\x4d\x13\xc1\x66\xec\xef\xec\x5b\xae\xb8\xe2\xec\x5b\xf6\x77\x76\xc2\x55\xc1\x13\x5d\xa6\x82\x9d\xb0\xbf\x9b\x61\x33\xe5\x5d\x68\x63\x01\xed\x26\x8c\x33\x55\x26\x68\xe8\xbd\xb4\x18\xd7\x57\xae\x5f\xdc\xcf\xce\x52\x14\x0f\x42\x28\x96\xeb\x2d\x5d\x85\x7f\x72\xb7\x7f\x2e\xd5\x3a\x11\x05\xad\x87\x2a\x1a\x19\x2b\x38\x82\x9e\xbe\x99\x2b\xe7\xa7\xfe\x93\x69\xf1\x9f\xd8\xdf\xd9\x45\x99\x24\xa6\x49\xe6\xa0\x31\x0b\xe9\x0d\xb3\xd9\x61\x42\x4d\x1f\xe4\x9d\x4c\x45\x2c\x39\xe4\x87\x99\x7f\x1d\xdf\xc0\x6c\x2f\x4a\x4f\x05\x1a\xee\x69\x27\xc7\x76\xc8\xd1\xf3\x2c\x5c\x13\x4e\x2c\x30\xb4\x56\x3a\x41\x28\xe1\x4f\xc7\x1b\xc1\x9e\x00\x99\xf6\x03\xbd\x51\x50\x4a\x2f\x0c\x50\xb6\xd7\xef\x54\xbf\x52\xf3\x5f\xad\xf4\x1f\x83\xd4\xbf\xfa\xc6\xc3\xb7\x11\x8c\x53\x9c\x1c\x9f\x9c\x09\x0f\x19\xc8\x25\xc4\x7d\xb7\x03\xc9\x0f\x5b\x36\x3e\x3b\x31\xbc\x6d\x9e\xd2\x68\x8d\x16\x7c\x3d\x61\xa9\xd3\x91\xb2\x9b\xca\x05\xb6\x71\x1f\xa3\x66\x02\x19\x9b\x2f\x2d\x80\xc8\xac\x65\xca\x3f\x3c\x8e\xf5\x96\x4b\xf5\x0a\xea\xb0\xd4\x79\x7b\x06\xaa\xe5\xb9\xb2\x7f\x84\x6e\x78\x2f\x9a\xb1\x9b\xda\xbf\x6a\xec\xd4\x24\xdc\xda\xb6\xc3\x81\x1a\x66\x5e\xe1\xf4\x13\x3e\x87\x7e\x6c\x2c\xd1\xc1\xda\x07\xa4\x37\x56\x61\x4f\x01\x5b\xde\x33\xc8\x0d\x8a\xad\x3b\xe5\xb2\x1f\xab\x12\xaf\x95\x21\xd6\x72\x90\x16\x6e\xad\xb1\xb7\xf4\x12\xc3\xbc\x67\x73\x4c\xca\xe4\xd8\x1c\x95\xc7\x17\x5a\x09\xc6\xf3\x5c\xae\x91\xf5\x0e\x1c\x6a\x28\x22\x6b\x8d\xb2\x9b\xea\x93\x21\x38\x82\xc0\x3e\x33\x4d\x42\xc4\x74\x61\x4e\x61\x33\x05\xc9\x6e\xae\xcc\x2f\xc8\x22\x80\xec\x29\xe9\xc8\xd1\xb1\x36\xe2\x1e\xb7\x75\xd1\x85\x18\x14\xde\xb2\xc0\xfa\xa8\x19\x0e\x58\x70\xb4\x13\x0f\x88\xb8\x5d\x04\xc4\xa0\x54\x9a\x65\x8d\x42\x38\xcd\x52\x24\x5a\xad\xcd\xaa\xe8\x3a\x84\xe1\x14\x78\xa2\x26\x60\x61\x9d\x2d\x30\xc6\x0a\x7d\x85\xa6\xc4\xd8\x29\x32\xf6\x2e\xb5\xbc\x5c\x1a\x3b\xce\x45\x7b\x9c\x35\x42\x9d\xeb\xe2\xa9\x38\x0c\xb6\x74\x6b\xce\x60\x9d\x59\xe0\x9c\x8b\x24\xa2\xe1\xe2\x39\x9c\xb0\x47\xc3\x36\x55\x6f\xbe\x45\xbb\xf7\x91\x22\x95\x0d\xc6\x8e\x01\xeb\xf1\x73\xa6\x5e\x0c\x49\xc8\x78\x37\x3b\x3b\xaf\x7d\xaf\x99\x90\xd1\x92\xb5\x71\x73\xf6\xfe\xf4\xed\xe2\xc3\xed\x4d\xe3\x7b\xa6\x34\xfa\xd3\x9e\x9c\x8c\xce\xd1\x7b\x0a\x54\xfa\xcf\xa8\x22\xb6\xd0\x2b\x9b\xa0\x3f\xfc\x82\x6c\xe8\xb8\x0d\x03\x3f\x16\xc1\xfb\x36\xd4\x3b\x6b\x2e\x9c\x4e\x9a\x11\xb5\xa0\x68\xe7\xb0\xc6\xd6\x07\xec\x83\x7a\x87\x3f\xbf\xd4\x89\x8c\xfa\xb1\xd4\xf6\xba\x32\x76\x4d\x13\x9c\xba\x14\x90\x5c\x40\x2e\x57\x6a\x14\xbe\x90\x0a\x11\x15\x3e\x9a\xdf\xec\xdc\xff\x6a\xfc\xe6\x7e\x1f\x08\x7a\x42\xdd\xb0\x81\x3c\xb8\xc3\x07\xc0\xdd\x0a\xbc\xcd\x20\x57\x82\x76\x26\xf8\x56\x01\x37\x13\x71\x8a\xfa\x54\x46\x1e\x0e\xe8\x87\x8d\x4e\xc8\x23\x8a\x1c\xd8\x73\x95\x8a\x2c\xd2\x80\x7b\x44\x7a\x15\xcd\xa2\x8d\x4c\x62\xaf\x09\xf6\x12\x12\x45\x00\xce\xfd\x8a\xe4\x6d\x85\xc3\xaf\xd8\xe2\x7b\x6e\x5d\xbb\xec\xde\xe2\xee\x3e\x08\xfb\xf5\x94\xc8\xef\xbe\x65\xff\x13\x21\x94\x71\x28\x88\xb5\xae\x86\x44\x00\xc3\x3b\x6c\xcf\xa8\xa0\x8a\xb9\x6e\x49\xee\x29\xf2\x0f\xd7\xa2\x36\xaf\xb4\xcc\xea\x43\x09\x5c\xe6\xe8\xc9\x46\x18\x5e\x2e\xa0\x39\x5b\xc1\xd1\x16\xf3\xcc\xc2\x34\xa9\x73\xe5\xb1\x17\x2f\xf2\xd0\x2e\x6b\x9d\x67\xf4\x7f\x5b\x6c\xf9\x84\xbd\xa8\x74\xf4\x05\x70\x5d\x2b\x0d\xf5\x51\x7c\xbc\x32\x34\xb0\x5c\x27\x4c\x16\x73\x65\x5e\x4d\x66\x65\x66\x22\x11\xf7\xa6\x75\x61\x7c\x86\x10\x83\xd6\x77\x61\xbb\x0d\xe9\x49\xdc\xb2\x5a\xd0\xb2\xa1\x4d\x98\x85\x9c\xc9\x18\x18\x8e\x45\x6e\xec\x46\x50\x7b\x12\xbf\x98\x0d\x20\x21\xfc\x88\xd0\xb2\x58\x28\xdb\x3e\x40\x9c\xa1\xd2\xfe\x5c\x9d\xad\x80\x5a\x00\x08\x0d\xe2\x18\xbd\x00\x56\xff\xc7\x11\x58\x4a\x8a\xc7\x68\xf2\x89\xd8\x89\x20\x75\x66\xdc\x49\xe2\x5e\x64\xbb\x02\x9c\xea\x30\xae\x4a\xf0\x62\xc3\x64\x31\x01\xe6\x51\x7b\x52\xce\x15\x8f\x63\xca\xc8\xc6\xe2\x82\x07\x65\xe7\x3c\xd3\xe7\x4b\x7d\xdf\x67\xd8\x1e\x8a\x9d\xc5\x5d\x9d\x26\x5c\x2d\xf0\x06\xf9\x0c\xe8\xd9\x40\x38\xbb\x0b\x46\x51\x2e\x17\x8e\x2d\xed\x49\xda\xe9\xce\xfb\x2b\x0b\x1e\xa6\xc7\x45\xb9\xb4\x15\x4d\x2a\xe0\xe8\xa5\x27\xd6\x70\x7e\x32\x42\x2e\x65\xcc\xa2\x3b\x86\x9f\x02\x1e\x58\xcb\x6b\x28\x27\xbb\x5a\xf7\x21\x6b\xed\x0a\xf8\xb5\x62\x1f\x87\xcc\x7c\xed\x0e\xa9\x4f\xfb\x78\xd8\x5d\xc3\x42\x7c\x14\xf4\x6e\x4f\xb3\x9e\x17\x7e\xd7\xe9\x47\x69\xc2\xf0\x6c\x6f\x83\x08\x3b\x81\xf7\xd1\x0f\xea\x5c\x58\xed\xc2\xe8\xe1\x3b\x4c\xb7\x20\xd4\x9f\x32\x46\x00\xe7\xd4\x50\x4f\x89\xa7\xf4\x80\x76\x4d\xd9\x99\x62\xd6\xdc\x9b\xb0\x17\xb8\xb0\xf2\x17\xe4\x02\x26\x75\x7d\x82\xab\xc4\xb4\x7b\x88\x04\xa1\x0e\xf3\xc2\x54\x34\xbf\xdd\x30\x12\xd7\xcb\x98\xfb\xac\xe3\xf2\xad\x84\x54\xb8\xc7\xb0\x9d\x60\x14\x77\x89\x05\xd8\x4c\x8e\xc0\x19\x49\xdd\x85\x68\x82\xef\xb0\x8d\x37\xb2\x6f\xed\x0f\xcd\x10\xa5\x25\xdd\xa7\xf6\x73\xa6\xb3\xb9\xb2\xa5\x91\x4b\x38\x47\x89\xbe\x7a\x51\x41\x66\x0e\xd9\xfc\xc1\x4a\x85\x60\xbc\x55\x65\x04\xb1\x4f\x4f\xeb\x5d\x3f\x05\x00\x87\xb4\x74\x18\x50\xd0\x81\xf0\xb5\x19\xc3\xc3\x2c\xf0\x2d\x5e\xf3\x75\xea\xdf\x24\x31\x83\x22\x0b\xcb\x34\x1c\x64\xcd\xe5\x25\xf0\x65\xaf\x4a\x73\x18\x05\xa4\xe2\x73\x65\x06\x8f\xad\x24\x64\x4f\xd0\xb8\xcc\xd5\x7b\x9d\x5b\x92\x96\xdc\x8f\x87\x0d\xed\xd3\xb0\xbd\x70\xe2\x94\xf4\x87\xb7\x70\x69\x53\xcc\x05\xe9\xd6\xdc\xd5\x02\xe9\x92\xc4\xb4\xb4\xd3\x65\xe6\x3b\x15\x71\x35\x57\xff\x6d\x86\x07\x9e\x53\x5c\xd9\x69\xd5\x2b\xdc\xc2\x30\x83\x10\xac\xfa\x88\x85\xbe\xfc\xb7\x57\x1f\x5f\x61\x7a\x53\x99\x83\x1e\xf0\xa4\x7a\x81\x38\x7d\x89\x32\x49\x00\x09\x60\x7b\xe0\x38\x8e\x7c\x15\xbd\x48\x38\x7a\xd4\x2d\x54\xd5\xc4\x18\xb2\xd1\x87\x39\xd6\x67\x2c\xe2\x45\xb4\x39\xb2\xb6\x1c\x1d\x63\xf6\xf6\xa3\xe9\xc3\x3c\x24\x63\x69\xb5\x4b\x2c\x98\x07\x67\xb6\x75\xa4\xaf\x95\xf5\x62\xba\x00\x0e\xf8\x9b\xba\xde\x98\xe3\xa4\xc6\xc5\x89\x48\x9c\xaa\x9d\xe7\xbe\x6e\xd5\x3e\xfd\x8b\x93\xa2\x14\x8a\x6f\x45\xcc\x5e\x40\x22\xee\x0b\x3b\xf9\x73\x95\x2e\xa7\xc9\x6e\x55\x10\x73\xa0\x19\x94\x29\xe8\xe2\xed\xb9\xe5\x16\x71\xf3\x99\xb4\x67\xb0\x3b\x1f\x5a\xed\xb6\x8e\x1b\x1b\x57\xd3\x70\x83\x05\x7d\x5c\x6e\x74\xae\xab\xa8\xbc\xaa\x40\x07\xcf\xef\x26\x6c\x99\x71\x05\x92\x46\x71\x68\x54\xf9\xdd\x09\x8f\x67\xa4\xe5\xb3\x99\x79\x8a\x27\x3b\xc8\xc0\x99\xcc\x15\x72\x18\x02\xd9\xfd\x2e\x4a\x64\xc4\xd6\x19\x4f\x37\x35\x3b\x48\xdc\x0b\x55\x80\x32\xf6\x95\xe0\xf9\x61\x68\x89\xac\x5e\x02\x1b\x1c\xcf\x9a\x29\x78\x7d\x70\x55\x63\x9d\x86\xe6\x75\x5c\x2d\x80\x90\x14\xf1\x62\x1c\xe3\xd4\x5e\x5e\xe4\x0a\xdb\x26\x51\xbf\x41\x04\xd8\x74\x8e\xd9\x5a\xf7\xc1\x0f\x70\x5c\x89\x0c\xc9\x62\x6a\x0f\x85\x4c\x38\x72\xa5\x83\x28\x72\xcf\xaa\x56\x24\xf7\xac\x51\xde\x73\x4d\x81\x37\xf4\x54\xd8\x44\x04\x77\x70\x4c\x48\xb9\x14\xe8\x33\xd9\x1f\xcb\xa5\x4e\x2c\xff\xe8\xd9\x5b\xa6\x33\x90\xfe\x29\x34\xfd\x49\xc6\x5d\xd6\x81\x54\xb1\xf8\xe5\x20\x12\xa0\xfe\x8b\xde\x9a\xcd\xa6\x9a\x40\x61\xa6\xde\x59\x38\x9d\x32\x61\x2e\xe1\xc2\xbe\x8c\x1b\xdf\xca\xeb\x60\xe1\x59\x52\x6c\x00\xc1\x8b\x49\x32\x7e\x50\xb7\x7c\xc7\xa2\x0d\x57\xeb\xc0\x35\x01\x80\x4a\x91\xea\x0c\x25\x72\xef\x81\x6d\x53\x67\x96\x64\x81\xa8\x03\x28\x53\xc7\x05\x12\x10\x20\xaf\x2d\x3f\x00\x5f\xaf\x33\xb1\x86\x44\xd2\xb9\xaa\x90\x9f\x00\xd3\xa8\x55\xe7\xc1\x7a\xfa\xb8\x23\x9e\x86\x80\xa9\xeb\x35\x58\x64\x3b\x97\x79\x4f\xfa\xd2\x7e\x3f\xd7\x87\x75\xc2\xa4\x98\x4e\xd8\x57\x3e\x29\x40\x44\x5a\xb9\xd4\xfd\x8e\xbc\xed\x9a\xcb\x9f\xed\x79\x3a\x34\x99\x9a\xda\xdb\x0e\x9f\x35\x54\xaa\x5b\x17\x4d\x2f\xf7\x41\xc1\x8b\x72\xc4\x1d\x74\xc2\x0b\x9e\xe8\xf5\x89\xf9\xf1\x35\xfe\xb6\x6f\x5d\x9f\x20\x62\xdf\xb2\xe4\x99\xef\x9b\x9b\xd3\xd4\xed\x59\xf4\xdb\xc6\x7a\xaf\x03\x39\xd1\xdd\x0e\xe4\xa7\x30\xd5\x2d\x15\xd2\x7e\x1f\x72\xd2\x41\xef\xd3\xd3\xa7\xb1\x2e\x62\x8b\xab\xa7\xd4\xa0\xbc\xfe\x8c\x6d\x39\x01\xd2\x4c\xc7\x65\x24\x62\xb3\x73\xe1\x3d\x84\x88\x24\xc7\x32\x54\x39\x24\xdb\x2e\xda\x0a\x55\x1a\xdc\xba\x9f\xca\xe7\x30\x88\x9d\xde\x0d\xff\x6d\x87\xbf\xc1\x5a\x7c\x6d\x83\x1e\xee\x4f\x1c\xa7\x6c\xe4\x3d\xe5\xaa\xaf\x72\xca\xeb\x4c\xae\xa5\xe2\x85\xce\xd8\x4b\xc7\x25\xf0\xca\x09\xd1\x75\x5b\x08\x23\x8f\x89\xca\x10\xe1\x31\xf1\x49\x0d\x8f\xb6\x45\x6a\xbe\x95\x17\x7c\x9b\x86\x2c\xcd\x4e\xe6\x9f\x46\x26\xc1\x41\x70\xb6\x09\xf8\x4e\x65\xee\xf3\x66\xe7\x8a\x22\x0e\x38\x6f\x3a\x0b\x65\x06\x3a\xef\xe6\xb4\x2c\x16\x8f\x64\x1e\xc3\x1f\x8f\x73\x3c\x11\x0c\xe1\x3d\x4f\xfb\xb9\x9c\x38\xb9\x1c\x30\x71\x90\xdc\x11\xde\x52\xa9\xae\xcf\x7e\x21\x9f\x91\xdc\xd2\xf5\xd0\xf9\xd5\xb9\x0d\x14\xf9\xf7\x60\xe5\x81\x05\x13\x81\xa4\xb6\x98\x88\x85\x4f\x7b\x77\xac\x99\x5b\xdc\x12\x40\x9d\x24\xba\x8c\x19\x1d\x6a\x14\x86\xcf\xa6\x78\x3b\x02\xcb\xf4\x74\xda\x95\x58\x36\x52\x60\xdc\x9d\x3f\xf0\xbb\xf6\x1d\x08\x9f\x75\x9c\xc0\xbd\x5b\x9f\x46\xf6\xd9\xa6\x9e\x46\x1a\xe6\xde\x1d\xc7\xa3\xe6\xde\x79\xc1\x81\xf2\x72\x9c\x83\x14\xde\xa3\x32\x4e\x60\xbf\x85\x01\x84\x16\x52\xee\x4a\x60\x36\xbf\x3b\xb8\x3a\xcb\x03\xd1\x5f\x55\xca\x33\xa1\x8a\x05\xd4\x38\xae\x32\xa8\xe4\x12\x7e\x5e\x31\x98\x06\x39\x82\xff\x7c\xa3\xd1\xbf\x6f\xf9\xad\xfe\xc2\xae\xc9\xa7\x65\xce\x2b\x09\x20\xde\xfc\x8e\xbd\x94\x80\x39\x0a\x62\xa1\x6e\xe2\x3a\xa6\x8b\x3a\xf4\x88\xd1\x0b\x3a\x54\x39\xda\x07\x75\xc8\xb7\x1e\x42\xd5\x50\x0a\xb9\xf7\x28\x2b\xdf\x1c\xb5\xf6\x6f\x81\xe6\xc5\x45\xe5\xdf\xc0\x4f\x6c\xe6\x2f\x61\x7f\x15\x99\xf6\x19\x58\xe8\xac\x0a\x0b\xee\xb5\xd7\x1f\x2f\xd7\x8d\xf6\x38\x0a\x45\x87\x4a\xa9\xf0\x17\xa2\x10\x43\x8f\xc2\x72\x67\x9f\x23\x1d\x21\xa4\x54\x44\x8b\x0e\x59\x9c\x41\x4d\x09\x1e\x9e\xa1\xcc\x8d\xac\x5d\x66\x76\x83\x1e\x83\xbf\x82\x52\x9b\xb6\x3c\x25\x7c\x1f\x41\xb9\xeb\xc1\x9b\x29\x74\xe2\xcf\x7f\xfa\xcb\x54\x76\x24\x59\x43\xd3\xc7\xc2\xa5\x5c\xe3\xdf\x65\x52\xa8\x18\x82\xb1\x3c\x6e\x2a\xb6\xa9\x8a\x77\xbe\x72\x3c\x9b\x65\xf8\x24\x19\xd9\xed\x57\x6d\xbe\xc0\x45\xf4\x09\x22\xfa\xfe\x90\x75\xdb\xb7\x12\xef\xeb\x32\x25\xf2\x45\xbc\x53\x7c\x2b\xa3\x4f\xda\xc6\x9d\x14\x49\x0c\x4d\xa4\xda\xf7\x45\xa5\x62\x11\xdd\x8d\xb5\x09\x1e\xad\x37\x21\xa2\x3b\xf6\xfd\xcd\xfb\x73\x94\x17\x96\xf9\x5c\x5d\xf0\x42\xde\x8b\xdb\x2c\x71\xe1\x00\x82\x49\x67\x89\xdd\x23\x55\xfe\xf3\x80\x6b\xcb\x92\xa5\x5b\xc3\x21\x94\xa7\xd8\xee\x8e\x96\x65\x74\x27\x8a\xe3\x8c\xab\x58\x6f\xb1\x1b\xc7\x79\xb9\x5a\xc9\x5f\xa6\x05\xcf\x3a\xb4\x2a\xd0\x8f\xf0\x19\xed\x5c\xaf\x40\x56\x78\x9b\x17\x4d\xdd\x07\x48\xb4\x26\x5d\xfb\x8a\x71\x8b\x79\x81\x7c\x2b\x80\x6c\x94\x55\x75\x5e\xa0\x14\xcc\x5d\x06\x39\xd4\x3c\xa7\x0c\x06\x4d\x62\xeb\x1f\x03\xe3\xfe\x63\xd0\x2a\x1f\xc2\x0e\x1b\xe5\x25\x46\xb7\xfc\x0e\xdf\x87\xeb\x4c\xe4\xf9\x84\xe5\x1a\x5a\x3c\x57\x36\x17\xc0\xe6\xab\x01\xee\x05\xe8\x8a\x93\x1d\x8b\x74\xea\x40\xeb\xd8\xaf\x8d\x7e\x00\x3f\x7d\x98\xa9\x0b\x22\xda\xa5\x2a\x64\xc2\xf8\xaa\x20\x27\x3e\x68\x33\x58\x2d\xb6\x7c\x3a\x57\x10\x8a\x8d\xa0\xfb\x00\x91\x70\xe1\x17\xd7\x89\x9c\xad\x78\x24\x13\x59\x10\x63\x1c\x24\x79\x71\xd3\x5f\x73\x1f\x98\xb1\xcc\xf8\x8e\x27\xfe\x61\xc5\x93\xd2\x27\x27\x1f\xe5\xa2\x87\x91\x54\xe6\x0b\x74\x10\x3c\xdf\x06\xf7\x28\x40\x19\x06\x1f\x90\xbd\x7d\x66\x2a\xbf\xa8\xdd\xa2\xbf\x0b\xff\xb7\xf2\x0e\xef\xb3\x0a\x0e\x78\x90\x1f\x72\x39\x36\x9f\xdc\x4e\xc0\xdc\xdb\x19\x32\xb6\xf8\xe0\x8a\x29\xee\xd3\x7f\xdd\xf5\x08\x31\x93\x8e\x47\xff\xd4\xca\xce\x35\x6b\x18\x31\x7a\xed\x46\xe2\x27\x72\x67\x74\x51\xea\x0f\x69\xbe\xf5\xc6\x5f\x6a\x9d\x1c\xea\x91\x27\x52\x0c\xa9\xd5\x02\x94\x98\x0f\x79\x4e\xe2\x02\x70\x8e\xad\xb3\xb7\x2e\xe6\xee\x38\xea\xab\xfa\x6d\x04\x07\xa3\x26\xc0\x41\x06\x8d\xe8\x41\x8a\xe7\x69\x0b\xe8\x62\x24\xe2\x1d\xca\x40\xb4\x96\x35\xed\x9b\x21\x82\x80\x1f\x85\xfb\x36\x02\x8f\x6f\xad\x85\xa3\x9c\x75\xa8\x9b\x5c\xab\xca\x39\xee\x42\xbe\x6f\x37\x8e\x41\xdd\x76\x3c\xb7\x5c\x91\xe7\x8f\xac\xf8\xb9\x0a\x2c\x76\xe4\xa4\xb3\x29\x05\x6e\xd4\xda\xfc\x79\x95\x65\x78\xb0\x3f\xef\x10\x51\x87\xde\x93\xf3\x6d\x28\xcf\x08\x58\x90\x48\x6f\x97\x52\x59\x56\x08\x72\x72\xc3\x53\x63\x66\x39\x73\x5d\x40\xc2\x3e\x19\x50\xb4\xa7\x36\xf6\xce\xcc\x09\xe9\x87\xc3\x23\x6b\xdf\x73\x3c\x7c\xdf\x3d\xad\xfe\x44\x47\xa4\xb1\xde\x03\x73\x81\x24\x0f\x7c\x97\x83\x84\xb9\x30\xa7\xe2\x0a\x1d\xbb\xd5\xf6\x4f\x02\xf3\xc3\xf2\x31\xcf\x15\x8c\x10\xf2\x75\xd9\x83\xd4\x9c\xac\xb0\x00\x13\x2b\xd6\xee\xb9\xd6\x5e\xe4\xed\x83\xf3\x79\x62\x35\x59\x6f\xac\x06\x83\xd0\xff\x33\xc2\x33\x3d\x4e\xe0\x03\x7d\xd1\xc1\x35\x89\x16\x23\xc1\x84\x20\x71\xcb\x85\xa8\x27\x6c\xcb\xa5\xa2\x6d\x80\x82\x98\xb1\x58\x96\xeb\x75\xa7\x8b\xf4\xd7\x1f\x6b\xa9\xee\x93\x7f\x7a\x5f\x78\x2f\x5b\xe0\x53\x78\x8b\xcf\x6c\x4d\xe8\xbe\x36\xef\xbe\x4f\xe3\x20\xfe\x8c\xde\xf8\xd6\x90\x58\x63\x11\x3d\x8d\x37\xfe\x6c\x88\x37\xde\x62\xbb\x20\xc5\x8e\x9e\xd3\x16\x7f\xf3\x9b\x9b\xfe\xd3\xb8\xe9\x07\x2d\x0a\xa4\xd5\x59\xc8\xaa\x81\xde\xd3\xc2\x47\x32\x4f\x3a\x32\x66\x68\x15\xb2\xbb\x99\xd3\x3d\xce\xd9\x92\x47\xcf\x40\x45\x09\xb7\xe3\xe1\xfe\xc0\x3d\xe0\x97\x6b\xbd\x15\x0c\xaa\xca\x51\x4a\x89\x51\x16\xe3\x04\xd0\xaa\xa6\x83\x1e\x31\x42\x78\x14\xb8\x4e\x11\xb9\x12\x7b\xa3\xfa\xa5\x12\x0f\xcc\xdc\x56\x93\x10\xbe\x17\x4c\x0f\x68\xec\xbd\x32\xd6\x61\x05\xeb\xef\x28\x33\x32\xb1\xe6\x59\x0c\x19\x26\xb4\x25\x13\x1e\xdd\x99\xff\x86\xf6\x51\x8d\x04\x31\xb4\xd9\xfa\x08\x7b\xf5\xa5\x49\x15\x21\x19\xa1\x65\x55\x77\xed\xc3\x9f\xe7\x8c\x47\x99\xce\xd1\x69\xe4\xa4\xa9\x21\xc3\x19\x0c\xd8\x7b\x19\x97\x3c\xc1\x1a\x3b\x3d\xed\x63\xe1\x6b\x75\xc0\x51\xa0\x22\xd7\x44\xb3\xd1\x74\x20\x47\x14\x0c\xe3\x74\xae\xde\xba\x80\xc9\x1b\x76\x9b\x0b\x42\x99\xe5\x96\x87\xbf\xb7\xa5\xcf\x66\x3e\x34\x30\x81\x9d\x36\x44\xcf\x00\x58\x90\x75\x30\x10\x79\xf7\x48\xec\x21\x34\x3d\x64\x52\x46\x13\x33\x9f\x05\x52\xf6\x7e\x58\xf0\x9d\x90\x09\x1e\xef\x42\x36\x44\xa9\x18\x44\xe9\x18\x8f\xb7\x52\x99\x4d\x60\xe5\x52\xdd\x4d\x63\x95\x13\x10\x72\x0c\xaa\x62\x49\x52\x3b\x04\x73\xa6\x84\x31\x2e\x79\x26\x93\x1d\xbc\x27\xd2\x4c\x1c\x05\xf5\x04\xf3\x43\x19\x4f\xa0\x01\x41\x34\x2e\x65\x2e\x56\x65\x82\xaf\x0e\x78\x97\xbb\x0e\xd0\x89\x74\x7b\x36\x31\x06\x47\x41\x5a\x3e\x41\xc5\xa8\x90\xf9\x14\xd9\x23\x8d\x68\xe5\xb8\x88\x9b\x67\xeb\xcc\x00\xe4\xbe\xd1\x0f\x36\xd5\xed\x81\x7b\x2c\x73\xd7\xed\xfa\x64\x51\x96\x7e\x3b\xd4\xbe\x00\xed\x39\x15\x50\xee\xb9\xd0\x1a\x7d\x26\x62\x77\x36\x49\x05\xdd\x21\x91\x69\xef\xb9\x2e\x73\xcc\x98\x33\x73\x09\xf7\x97\x75\x74\x54\x1d\xd7\xcc\xf5\x4e\xe6\x5a\xb1\x79\xf9\xe5\x97\xbf\x17\xec\x4b\x48\x21\xa4\xf7\x08\xc6\xc7\x80\xaf\x13\x4b\x87\x23\xdb\x55\x20\x90\xcc\xb3\x31\x23\xac\x0d\xa2\x6a\xf3\xf5\x01\xe4\xc9\xa3\x0d\xcb\xcb\x25\x22\x18\x39\x85\x58\xb8\x72\xbc\xdf\xe7\x1a\xc0\x88\x78\xb3\xdb\xd6\xff\x2f\x09\x28\xa0\xec\xca\x5c\xa5\x1a\xa9\xe9\x01\xfa\xb9\x14\x6c\xcb\xb3\x3b\x50\xd1\x45\xf7\x3c\x50\xf1\xbf\x94\x62\x5a\x0d\x2f\xbc\xaa\xb4\x87\x02\x3a\x48\x39\xcd\xb2\x52\x29\x2b\x0b\xc6\x8c\x61\xea\x7d\xfd\x93\xb9\x5a\x96\xe1\xdb\xb3\x12\x2c\xf0\x4b\x0b\x02\x06\x70\xd8\x6a\xe0\x0a\xa1\x46\xf1\xdc\xb7\x6b\xca\x06\x44\x0d\xe6\xea\x89\xc3\x06\xfb\x1c\x7e\x97\x64\x83\x59\x67\x5e\x90\xaf\x00\xdd\x0d\x95\xab\x61\x3a\x70\xd9\x83\x91\x73\x09\xf2\xd5\x13\xf6\xbd\xbc\x17\x13\x76\x9d\xf2\xec\x6e\xc2\xde\x62\xf8\xef\x0f\x7a\xd9\xe6\xc3\x6b\x10\x4a\x1c\xec\xc7\x7b\x9c\x1b\xab\x8f\x68\xa5\xdd\xfa\xff\xa9\x41\x0c\xc0\xba\x62\xdf\xff\x33\x11\x79\x1d\x5c\x1f\xff\xec\x9e\x88\x3d\x61\xea\xdf\xc0\x6b\xff\x94\xaf\xe2\x7e\x9a\x8f\xdf\x85\xff\x6b\xcf\x2f\x6b\x71\x81\xed\x49\xa7\x5c\x2b\x2a\xed\xd7\x95\xd8\x2c\xe3\xfa\xa5\xdc\xcc\x6f\x1e\xb6\x15\x28\x7d\x3c\x76\xa9\xed\x23\x40\xf7\xf4\x53\x3b\x5e\x27\x89\xce\xcb\xac\x7f\xf3\x5f\x55\x5b\x6d\x6b\x6f\xa1\x5a\x85\xc5\xb6\x5d\x0a\x60\x2d\x18\x0a\x3f\xc1\xaf\x2d\xfe\x5b\x2f\x17\x80\xb5\x3a\x6c\x87\xb7\x15\xe7\x08\x9c\x75\x54\x69\xaa\xbf\x21\xaf\x53\x01\x8c\x53\xde\x14\xf5\x01\x81\xda\x0a\x73\xae\x91\xb9\xb2\x9c\xf7\x98\x31\x9b\x65\x02\xc8\xb9\x33\x01\x52\x8b\x8c\x38\x06\x93\x5d\x60\x11\x05\x2f\x1f\x0f\x8a\x09\xb3\xdc\x20\x59\x95\xde\x5b\x4b\x21\x94\x1b\xed\x31\xa6\x04\x10\x51\xd7\x46\x9f\xd0\x6e\x0f\xc2\x4a\x1f\x74\xc8\xc2\x36\x7e\x17\xbc\x05\xc1\xe4\x5e\x8b\x22\x38\xcd\x6b\xa6\x45\x65\x6b\x56\x22\x54\xbf\x2a\xc4\x7f\x6b\x0c\xba\x46\xce\x55\x71\xa0\x0c\x8a\xe9\x3d\x85\xbf\xfc\x92\x17\x1b\x7c\xd0\x6e\x75\x21\xf0\xcc\x44\x96\x20\x5c\x2f\xe8\x75\x5e\x26\x7a\x09\x1a\x87\x45\x0f\x87\x63\x44\x5b\x7b\xd0\xd0\x35\x27\x6c\xc8\xc9\x60\x4e\x13\xc8\xb4\xcd\x44\x0e\x84\x2b\xcd\x28\xd5\x50\x7c\xf2\xb8\x47\x77\xb3\xb9\xe6\xd0\x7f\xdb\x78\x6c\x37\x45\x31\xcc\xb6\x06\xb0\xea\xe9\x23\x32\x68\x1a\x12\x23\x44\x16\x4d\x61\x60\xe4\x8b\xad\xf5\xd7\x4a\xe9\xcf\xd5\x0c\x3f\x09\x2e\x01\xee\x55\xae\x1c\x1e\x94\x54\x93\xdd\xfe\xc3\xf4\x55\x36\x0b\x11\x88\xe4\x21\x98\x78\x5f\x26\x3c\x06\x26\x90\xd5\xa8\x0a\x99\x09\xa6\x00\x85\x30\x57\x79\xb9\x3c\xf2\xc4\x24\xe6\x15\x77\x0f\x64\x3a\xb9\x48\x39\x3c\x65\x80\xaf\xe8\xa8\xe5\x1a\x46\xcf\xa4\x57\xab\xb1\x04\x7e\x3c\xa1\xc3\x1f\x72\x25\x31\x33\xde\xf5\xdd\x95\x63\x1e\x6b\xf0\x8a\xb6\x70\x25\xbc\xec\xfa\xce\x0b\xd0\xd3\x82\x0c\xcc\x2b\x44\x51\x7c\xee\x0b\x3c\x8c\x86\x0e\xbd\xba\x21\x9e\x36\x57\xff\x62\xef\x86\x6e\x50\xf1\x88\x95\x6e\x46\xc6\x5c\x51\x9d\x60\xe7\x4a\xdb\xec\x13\x32\x30\x02\xbb\x1b\xd5\x58\xf2\x6d\xa5\x72\x8b\x6b\x09\x45\x55\x34\xa5\xcb\xc2\xa7\xf7\x32\x0f\xe8\xd6\xa1\xb6\x6b\x21\xd8\x9b\x4c\xac\xde\x7c\xcc\xc4\x6a\x61\x67\x7a\x0a\x1d\x9a\x9a\x1e\x35\x49\xd7\x07\x2e\x8e\x3c\xd5\xaa\x9d\xfc\x70\x0f\x39\x69\xad\x4b\x58\x4e\xd0\x27\xb9\x62\x5e\x5f\xd6\xf4\x07\x18\x20\x44\x5c\x67\x83\x6f\xb4\xec\x93\x5f\x73\x5d\x48\xb0\x01\x50\xab\x0e\x19\xd2\x7f\xfe\xeb\xad\x32\x66\x43\xae\xb7\x9b\x2a\x64\xc6\x1e\xf6\x5c\xb9\x0b\xaf\x1b\x17\xfa\x69\xd1\xe9\x30\x81\x79\xca\x1f\x14\xf1\xd8\x8c\x72\x3d\x0d\xbb\xd6\x6a\x00\xa2\xe0\x5a\x6b\x60\xe0\xfc\x2e\x53\xd6\xd3\x27\x9d\x92\xe5\x24\xd0\xff\xe7\x49\x12\x6a\x5a\xf8\x48\xdb\x5c\xf9\xbc\x54\x63\xb5\x26\x89\x75\xe1\x55\xec\x0d\x27\x39\x9c\x17\xbc\x10\x13\x4b\xba\x42\x74\x85\x14\x0f\x3b\x5a\x72\x10\x97\x76\x2a\x66\xfb\x76\xf3\x53\x3d\x22\x7f\x65\x79\xd1\x7b\x22\xcf\x58\xed\xe2\x4e\x34\xe0\xcc\x7b\xdb\xda\x1e\xe9\x08\x28\x25\x60\x33\xdb\x53\x36\xe2\x59\x66\x51\xfe\x54\x2b\xb3\x84\xe3\xe1\xab\xa4\xa3\x9d\x1b\x11\xdd\xa5\x5a\xaa\xd1\x67\x51\x85\xe2\x02\x16\x7b\xc1\x7c\x69\xee\x75\x38\xe8\x72\xac\xd8\x93\xd8\x91\x1c\xe0\x15\x16\x1a\xea\xc9\xd8\x38\x73\x5a\xd5\xdd\xcb\xee\xa9\xfd\x17\xc2\xdf\x0d\xcf\xe0\x8b\x6d\x89\x0f\xd5\x6e\x15\xde\xe2\xd8\xa9\x30\x81\xf2\x46\xf6\xd7\xc0\xc1\xe6\xac\x42\x61\xd8\x3a\xa4\xe0\x82\xfc\xcd\x33\xf4\x9b\x67\xe8\x7f\xb8\x67\xe8\x53\xba\x85\x00\x1b\xf3\x9c\x3e\xa1\x9e\x00\xf9\x01\xdb\xd1\xd5\x3a\x3a\xc7\xb1\xd5\x3a\x9e\x04\xb2\xdb\x41\xa6\x63\x13\xe8\x6f\x89\x30\xcc\xf8\x2c\x79\x74\x27\x54\x67\x8c\xde\xd2\x17\x75\x2a\xa0\x3e\x2d\x82\xa5\x8d\x7d\x29\xf8\x75\x3f\x94\xc5\x43\x9d\x88\x34\xb8\x8d\x10\xc4\xec\x13\xb0\x3d\x4d\xc7\x8f\x00\x34\xa6\x33\x47\x6c\x9d\x53\x16\x1e\x06\x23\x91\x26\x09\xc1\x52\x35\x2a\xe8\xa1\x98\x38\x5b\xf1\x22\xd5\x3a\x69\x85\xc6\x3d\xe9\x00\x36\x12\x65\x86\x0e\xde\x19\x1a\xa3\x79\x08\x18\xb3\xa3\xe8\x93\x2e\x7c\x8a\x06\xe6\x63\x80\x16\x06\xac\xa6\xb8\x84\x5c\x4a\x3f\x1c\x81\xc0\x21\x77\x0e\x17\xc2\x88\x2d\x45\xc4\x41\x7a\xd5\x82\xf7\x22\xee\xb2\x4f\x42\x52\xa4\x46\x3a\x48\xde\xac\xa7\x23\x6a\x09\xe5\x2e\x64\x9b\xf0\xc5\xd8\xcd\x55\xb3\x10\x2c\xb4\x1c\x5b\x6e\x91\x24\x96\x76\x71\x9f\xa4\xb0\xe5\x98\x5e\x80\xfe\xe1\xb0\x1b\xae\xf5\xdc\x39\xa3\x82\x4e\xa0\x9c\xe1\x07\xe9\xf7\x90\x8e\xb3\x1d\x88\xdc\x99\xab\x99\x53\x9a\xf5\xd8\x2f\x87\xdc\xc3\x70\x29\x62\x16\x1b\x53\x83\x5c\x8e\xfe\xe5\x32\x61\x79\x19\x6d\x80\xad\xb2\x7a\x4e\x85\xe7\x56\x73\xc7\x4e\xe6\xca\x3c\x88\xc0\xd5\xb2\xe5\x90\x17\xff\x60\x8c\xd5\x5c\xfe\x55\x38\x78\x16\x91\x77\x85\x88\x2c\x7c\x38\x69\xd5\x8a\x5e\xb3\xc4\xa1\x08\xb0\xf0\x98\x92\x32\x8d\x79\x21\xa6\x73\x8f\xb6\x91\xe8\xe9\xb4\x28\x0f\x32\x99\xf3\xb0\x63\x21\x8e\xb1\x76\xd2\x26\x72\x25\xa2\x5d\xd4\xd0\x01\xea\xa7\x89\xf8\xed\xd9\xf6\xeb\x7a\xb6\x21\xcb\x2e\xe6\x0c\x8e\x19\x5a\x6a\xea\x95\xff\xf9\x61\x83\x2b\x58\xd0\x92\x7c\xc4\x38\x7f\xc2\x67\x67\x8b\x0d\x3c\xce\x9e\x1f\xfc\x0e\xea\xbf\xce\xfc\xc3\xd6\x5f\xd6\x01\x05\x42\xc3\x2c\x0c\x83\x8b\x45\xb8\x74\x8c\x41\x3b\x38\xac\xdf\xcd\x32\xf3\xab\x02\x27\x0d\x79\xb8\x1a\x8b\xdb\xc1\x95\x2e\xac\xa5\xad\x04\xde\x77\x3d\x16\x77\xc0\xea\xce\x8b\x17\xb9\x1b\xf5\xea\x09\x68\xb1\xff\x33\xb5\x3b\x28\x01\x73\x97\x8a\x45\x99\x25\x07\xc1\x8d\x6f\xaf\xce\x8f\x9d\xb5\x01\x96\x73\xa7\xee\x51\x51\x13\x67\xb6\xaa\xc0\x22\x26\x38\x68\xa4\x13\xb6\x2c\x57\x2b\xd0\x2f\x21\x60\xa8\x3d\x8c\x40\x1b\xbe\xcc\x0b\x7b\x9f\x20\xd3\x0c\xcf\x8b\xb9\xd2\x4a\xb0\xf9\x17\xc7\xf3\x2f\xcc\x55\x96\xf1\xa8\x10\x19\x92\x0c\x24\x3c\x2f\x58\x2e\xd6\x60\x6a\x51\xa5\xb7\x57\xe7\x90\x95\x58\x6c\xb0\x38\xf7\x64\xc5\x7c\x4f\xe4\x7c\x06\xad\x1f\x20\xa8\x56\x81\xe6\x15\xb4\xfd\x25\xcf\x99\x54\x73\xf5\xd1\x14\x71\xbc\xd6\x7a\x9d\x88\xa9\x9d\x90\xe9\x5b\x72\x3d\x7e\x7c\x85\x2d\x80\x9f\x87\xb0\x7e\x73\x21\x72\xa5\x95\x8c\x78\x02\x09\x39\x73\x05\x56\xf3\xc4\x74\x06\x5c\xa3\xf3\x2f\xa6\xf3\x2f\x18\x84\x4f\x0b\xc6\xa3\x48\xa4\x85\x88\x51\x5c\xf4\x4c\xb1\x14\xf0\x8b\x91\x98\xb0\x42\xf0\x6d\x6e\x29\x9d\x59\x6a\xde\x98\xf0\x34\x64\x52\x11\xd2\x69\x29\x15\xcf\x76\x08\x66\x42\xb9\x70\x4a\xfe\xd8\xcd\x95\xf8\x05\xe8\x3f\x25\x30\x80\x96\xb9\xa3\xa5\x21\x61\x02\xd3\xe5\x99\xda\x4d\xd9\xf7\xc8\xd0\x80\x14\xa8\xb7\x57\xe7\x96\xde\x88\x72\x40\xe7\x2a\x8f\x36\x62\x2b\xd8\xc7\x4d\x51\xa4\x1f\x27\xf8\xbf\xf9\x47\x88\x38\x2a\xcd\xf0\xd3\x09\x33\x53\x64\x0c\x55\x8b\x97\x4f\x76\xa0\xe2\x5a\xa6\x24\xf9\x3e\x57\xc0\xc5\x9e\x85\xe8\x5e\x33\xda\x50\x63\xf0\x04\xaf\xe0\xc2\xcd\x29\x0e\xf2\x8a\x6f\xcc\xe0\xfc\x5f\x76\xb6\xf2\x55\x9a\x01\xb4\xea\x5e\xae\x55\x60\x90\xe4\x90\xb2\x35\x35\x3f\x98\x29\xf6\xfd\xcd\xcd\x25\xfb\xee\xf4\xc6\x1a\x3b\xb7\x57\xe7\xb8\x2e\x80\x4e\x85\x71\xf6\xe7\xfa\x14\xdf\xec\x52\xf1\x97\x3f\xff\x65\xae\x98\x55\x09\x57\x76\xa4\x71\x47\x4f\x90\x12\x16\xf0\x4e\x10\x98\x05\x2a\x67\xa8\x0f\x25\x77\xa8\xf9\x19\x5a\xe7\x0f\xe4\x2d\x80\x3b\x2a\xd1\xfa\xae\x4c\x9d\x9b\x3b\xb4\xc3\x4c\x85\xb7\x57\xe7\x50\x3a\xd0\x29\x15\x1b\x50\x30\x13\xce\xfb\x02\x13\xcf\x6d\x63\xcc\x7f\xdf\x6b\x19\x33\xae\x76\xe6\xb7\x58\x34\x2c\xcb\x4c\xac\x74\x26\x26\xf6\x9b\xa6\x00\x5e\xc8\xa5\x4c\x64\xb1\x83\x53\xca\x2a\xcb\xa7\x96\x23\xdf\x14\x60\x5e\x33\x04\xf0\x36\x0b\x0c\x85\x64\x5f\xde\xe6\x21\x02\x1c\x26\xcd\xa9\x13\xe2\x43\xc7\xfc\x76\x99\x09\x7e\x67\x56\x37\x95\x30\x7d\x45\xaa\xad\xe2\x0d\xde\x31\xab\x52\x45\xb8\x34\x4c\x1b\x68\xf5\xd3\xcb\x29\xd9\x05\xf2\xfd\x36\x5c\xbe\x5a\xc9\x48\xf2\x84\x4e\x8e\x65\xb9\x02\xd9\x18\x9e\x93\x64\x11\x82\x0f\x4d\x21\xf0\xca\xb0\x92\xf9\xb8\xa0\x96\x62\x2d\x11\x70\xfc\x20\x8b\x0d\xe6\x15\x4c\x71\x9e\x79\x2a\xf3\x69\xa4\xb7\xb0\xdf\xae\x61\x29\xe5\xf4\xe8\x05\x1c\x78\x6d\x9d\xb3\x97\x16\x6a\xb7\x4d\x8b\x1d\xad\xbd\x57\x6c\x2b\xd7\x9b\x02\x84\x5c\xa0\x76\x80\x44\xc8\x6d\x9a\xc0\xa3\x8f\x22\x8c\x16\xef\x9b\x8b\x2d\x57\x85\x8c\xba\x62\x4a\xad\xa2\xdc\xc3\x30\x9e\xcb\x5d\xd1\xef\xc7\x7b\x4f\x3c\xfb\x1c\x29\xf4\x83\x13\x99\xd5\x0f\x64\x3a\x03\x41\x5e\x26\x20\xf0\xaf\x8b\xbe\xee\x7b\x42\x7d\x9c\xa9\xdd\x47\x4f\x42\xca\x55\xa0\x7d\xd5\x53\xbb\xdd\xff\x3c\xd1\x34\x6b\x8c\xcf\x15\xa0\x3a\xcd\x81\x41\x72\xb0\xbd\x77\x8c\xbb\x52\xcc\xcc\x5e\xda\x45\x93\xc8\x25\xd4\x4d\x67\x45\xce\xf2\x32\x85\x7c\x82\x42\xb3\x94\x47\x77\xc7\xa5\x32\xff\x63\x0e\x43\xdc\xee\x79\x48\x4e\x34\x57\x7a\xc5\xca\x02\x37\x8e\x5d\xc2\xe0\x14\x09\x5c\x01\xfe\x81\xb6\x15\xc5\x46\xc7\x2e\x2f\xcc\x94\x09\xe3\x67\x5a\x74\x4a\xf4\xd2\xaf\xdf\xb0\x4b\x53\xa1\x59\xc4\x54\x37\x77\xdd\x97\x8a\x9d\xfc\xcb\xbf\xc0\xf7\xcd\xe0\xbe\xd3\x9a\xad\xb4\x66\xdf\xb0\xe9\x74\xfa\x9f\xf8\x37\x53\x28\x57\x3b\xfa\x17\x57\xbb\xa9\x29\xee\x5d\xa6\xb7\x2f\x57\x5a\xbf\xa2\xbf\x83\x6c\xb2\xf9\x0f\xb9\x62\x2f\xcd\x97\x6e\xa1\xaa\x1b\xfd\x72\x5e\x7e\xf9\xe5\x57\xff\x6e\xbe\xfa\x8a\xfd\x0d\xbf\x13\x7c\xfd\x1f\x61\x53\xbf\xda\xd3\xd4\x3f\xf0\x7b\x3e\xa4\xad\xec\x1b\xb8\x6b\x4c\x01\xbd\x6d\x94\xf9\xcb\x77\x5a\x4f\xe1\xf5\x1f\xb6\x0e\x8b\x35\xdf\xc0\x56\x04\xdf\xfa\xcf\xa0\xd9\xcc\xb6\xfb\xf7\x7b\xda\x8d\xa8\x7a\xd7\x72\x2c\xfe\x9d\xd6\x2f\xa7\x53\x73\x6e\xd1\xb8\x62\xab\x5f\xbe\xaa\x0e\x34\x74\xa0\xd9\x7e\xf3\xf1\x19\x36\xff\xed\xe9\xf5\xc9\xd5\xd9\xe5\xcd\x87\xab\x57\x6f\x6c\x0f\xfc\x0c\x04\xbf\x67\x56\xdc\xda\x35\xfc\x5f\xf7\x34\xfc\x3b\x6d\xdb\x0c\x8d\x7e\xf3\x0d\xc3\xd9\x4c\x97\xd3\x77\x5a\xff\x6d\x3a\x9d\xfe\x83\x3e\xe6\x6a\x37\x31\x17\x93\xf9\x4e\x8a\x47\xf9\x7b\x9e\xe5\x1b\x9e\x98\x3e\x05\x6d\x70\x9d\x68\x2d\xd1\x16\x27\x57\xb5\xc2\x6e\xd5\xd6\x17\x07\x95\xc1\xc4\xc2\xb7\xfe\x9f\x6f\x98\x92\x89\x9f\xbe\xa0\x0e\x98\xa7\x1b\xa0\x96\x88\xee\xdc\x76\x71\x2a\x9d\xcb\x1d\x4b\xeb\x1b\x17\xf3\xce\x76\x56\xa1\xc0\x1c\xf7\x73\xf5\xa2\xe5\x44\x3f\x36\xa6\xdd\x14\x3e\x30\x17\xd4\x0b\xab\xdf\x6e\xaf\x05\xa7\xac\x85\x23\x0b\x81\x68\xdc\xad\x8a\x72\xd4\xda\xec\x43\x77\xe1\x05\x64\x55\x60\x76\xbe\x38\x7e\x41\x89\x42\xbe\x8a\x2a\x91\xfc\xfc\x8b\x95\xd6\xd3\x25\xcf\xa0\x75\xbf\x1c\xef\xa6\x7f\x9d\x7f\x81\xfd\x41\xe3\x03\x0d\x23\x28\x7c\xfe\x05\x7c\x0a\xcb\x61\xae\xfe\x70\xfd\xe1\x62\xae\xbe\xf9\xe6\x9b\x6f\x70\xb4\xcc\xbf\x5b\x62\x2f\xe6\xba\x82\xe3\x16\xed\x94\x32\xb7\x92\x92\x62\x5d\x26\x3c\x9b\xab\xf6\x70\x4d\x2c\xfc\xa1\x39\xf1\xc1\x1b\x5a\x67\x13\xab\x6e\x01\x22\x65\xf6\x8c\x43\xdf\xe4\xc7\xff\xd7\x34\xf9\x23\x99\x88\xee\x90\x0f\x87\x60\x6a\x17\xf3\x1b\xbb\x54\xcd\x60\x9b\xf5\xeb\xed\xac\x95\x4c\x04\x6d\x5c\xbb\xb8\x2f\x45\x96\x6b\xe5\xd7\x0c\x3d\x08\x80\xdb\x0c\x02\x00\xec\x1b\xf6\xfa\x3f\x6b\x9f\x9a\x79\xb0\x1f\x7e\x55\x39\x09\x18\xf3\x45\xcd\xbf\x80\x56\xcf\xbf\x78\xc3\xe6\x5f\xb4\xad\x9b\x6a\xc3\xa6\xd8\x94\xf9\x17\x13\x5f\x00\x34\xe3\x82\x6f\xb1\x90\xf2\xcb\x2f\x7f\x1f\x61\x13\x30\x75\x2d\xf8\xa6\x69\x52\xf7\x17\x83\x26\x9e\xd5\x42\x67\x76\x20\x6c\x0a\xe4\x83\x48\x92\xa3\x3b\xa5\x1f\x50\xe9\x1b\xe2\x44\x94\xa5\xcc\x70\x79\x54\x27\x97\xb4\xc9\x6a\x33\x6e\x93\x36\x5d\x35\x4e\xde\x0e\x26\x74\xae\x3e\xc2\xd2\xb1\x33\x4a\x74\x44\x40\x07\xea\x6a\x82\x47\x0d\xad\x04\x9b\x63\x41\x0b\x61\xae\xa0\x18\x37\xe7\xec\x25\x00\xbf\xa8\x2b\x0d\xcb\xda\x3e\x9e\xfe\xf2\xe7\xbf\xbc\x7a\x73\xc8\x3c\x55\x8b\xab\x4c\x15\xf4\x07\xcb\x78\x3d\xfd\xea\xf5\x57\xf9\xfc\x0b\x1a\xf5\xf6\x27\xf6\xb9\xcc\x8b\x1f\x6b\x16\xd8\x23\xe4\xc6\x8d\xe1\xf0\x5c\xc1\x0b\xdb\x54\x6c\xe6\xd0\xa0\xc5\x55\x35\xac\xa0\x57\xd6\xad\x03\x8f\x33\x2b\xc4\x6e\xda\x3d\xca\xbc\x73\xe3\x85\x8f\x2d\xf6\x90\xf1\x34\x15\x99\xf5\x95\x37\xc2\x19\xa0\x6a\x0e\xb5\xd8\xa3\xbf\xed\x30\x33\xcb\xa6\x56\x34\x7c\x0d\x86\x6e\xda\x3e\x73\x17\x65\x92\x74\xce\xdc\x7e\xb1\xe4\x8b\xdb\xf3\xf3\xc5\x8f\xb3\xf3\xdb\x53\xdb\xfd\x56\xf1\xe1\xe0\x6b\x9d\x63\xe2\x5a\x42\x63\x82\xb8\xaa\x02\xb0\x54\xe5\x56\x64\x96\x29\xcc\xf7\x1a\x71\x24\x65\x92\x54\x85\xa9\xe7\xea\x23\x95\x03\xc7\x40\xa9\xa4\x35\x53\x7a\x07\xae\x5a\x3f\x7c\xed\xa3\x29\xfc\x23\xfe\xf6\x88\xf9\x4e\xbc\x61\x17\xae\xd6\x8e\x71\x25\xc2\x89\x03\xb6\x03\xe6\xdb\x76\x6d\x87\xa7\x96\xde\x7f\xdc\xf6\xb8\x55\x20\xfa\x65\x4e\x5e\x54\xcc\x7f\x92\xdd\x81\x63\xf7\xb1\x0a\x05\x77\xee\xd2\x18\xa3\x86\x50\xee\x04\x05\xd3\xf3\x82\x38\x8b\x71\xcc\xe6\x0a\x0f\x62\xd3\xa6\x42\x77\xb7\x89\x9d\x51\x04\x29\xe1\x6a\x5d\xf2\xb5\xc8\x27\xcc\x56\x3e\x57\xf6\x75\x6a\xdf\x3a\x0e\x98\x03\x8c\xac\xb5\x25\x54\x4b\x01\x96\x6a\xae\xa8\x4f\x70\xc3\x52\xf1\x98\x8e\xfa\x87\x6b\xd7\x1d\xca\xfb\xc6\x82\x48\xf3\x5d\xcd\x15\x4e\x2e\xfa\xc6\x2c\xd8\x10\xcc\x8e\xe6\xdd\xc4\x01\x1e\x8c\xef\xba\x98\x15\x7a\x0d\xb0\xc7\xb9\x72\x2c\x58\x08\xce\xb0\xef\x35\xaf\x0d\x8a\x4d\xda\x7f\x9e\xd8\xc9\xb0\x7b\x82\xda\xd6\xbe\xea\x0f\xbe\x03\xcc\x86\x5b\xb4\xbe\xe5\xfb\x97\xad\x3f\xc6\x06\x02\x72\x78\x70\x70\x74\x51\x23\x02\xf5\x59\x7b\x6b\x6c\xbf\xf0\x3b\x9d\xd9\xa3\xba\x5c\x26\x23\x9a\x84\xdf\xef\x6d\x14\x1e\xc9\xfd\x8d\x1a\xe0\x91\xbe\xaa\x6d\x2d\xb3\x4c\xfb\xaa\x5d\x6a\xdd\x31\x2f\x4f\x88\xd9\xad\x34\x8a\x7e\xb0\x6f\x30\xca\xa8\x78\xcc\x7a\x19\xc0\x07\x54\x1f\x22\x7b\xfa\xf4\x35\x28\x91\xf9\xa3\x9a\xe3\xed\xa7\xc1\x2d\x72\x16\x02\x5d\x76\xa3\x4e\x58\xba\xe7\x2a\x07\x6c\xc7\x31\x69\x9f\x29\x98\xde\x22\x24\x1e\x2f\x66\xf3\x4c\x60\x13\x99\xf5\x3f\x71\x8b\x68\xe2\x67\x6e\x02\x8d\x8c\xca\x2c\x37\xc7\x25\x9d\x77\x74\x6a\xeb\x8c\xf1\xb9\xb2\x6c\x30\xf6\x38\x9e\x59\x7f\x70\xe6\xfe\x8a\x1c\x4b\x29\x4a\xd6\x41\x50\xa8\x00\x2f\x39\x9d\x86\x73\x75\xcf\x33\xc9\x15\x60\x9a\x97\x39\xe8\x0d\xc3\x93\x6e\xc7\xe8\x03\x47\xc0\x91\x87\x4e\xe6\x3d\x67\x5e\xcd\x0c\xa8\xdc\xf3\xbf\x33\xff\xf7\x8f\xdf\xfd\xff\x01\x00\x00\xff\xff\x8b\xc2\xd9\xfd\x45\xd9\x04\x00") - -func adminSwaggerJsonBytes() ([]byte, error) { - return bindataRead( - _adminSwaggerJson, - "admin.swagger.json", - ) -} - -func adminSwaggerJson() (*asset, error) { - bytes, err := adminSwaggerJsonBytes() - if err != nil { - return nil, err - } - - info := bindataFileInfo{name: "admin.swagger.json", size: 317765, mode: os.FileMode(420), modTime: time.Unix(1562572800, 0)} - a := &asset{bytes: bytes, info: info} - return a, nil -} - -// Asset loads and returns the asset for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func Asset(name string) ([]byte, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err) - } - return a.bytes, nil - } - return nil, fmt.Errorf("Asset %s not found", name) -} - -// MustAsset is like Asset but panics when Asset would return an error. -// It simplifies safe initialization of global variables. -func MustAsset(name string) []byte { - a, err := Asset(name) - if err != nil { - panic("asset: Asset(" + name + "): " + err.Error()) - } - - return a -} - -// AssetInfo loads and returns the asset info for the given name. -// It returns an error if the asset could not be found or -// could not be loaded. -func AssetInfo(name string) (os.FileInfo, error) { - cannonicalName := strings.Replace(name, "\\", "/", -1) - if f, ok := _bindata[cannonicalName]; ok { - a, err := f() - if err != nil { - return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err) - } - return a.info, nil - } - return nil, fmt.Errorf("AssetInfo %s not found", name) -} - -// AssetNames returns the names of the assets. -func AssetNames() []string { - names := make([]string, 0, len(_bindata)) - for name := range _bindata { - names = append(names, name) - } - return names -} - -// _bindata is a table, holding each asset generator, mapped to its name. -var _bindata = map[string]func() (*asset, error){ - "admin.swagger.json": adminSwaggerJson, -} - -// AssetDir returns the file names below a certain -// directory embedded in the file by go-bindata. -// For example if you run go-bindata on data/... and data contains the -// following hierarchy: -// data/ -// foo.txt -// img/ -// a.png -// b.png -// then AssetDir("data") would return []string{"foo.txt", "img"} -// AssetDir("data/img") would return []string{"a.png", "b.png"} -// AssetDir("foo.txt") and AssetDir("notexist") would return an error -// AssetDir("") will return []string{"data"}. -func AssetDir(name string) ([]string, error) { - node := _bintree - if len(name) != 0 { - cannonicalName := strings.Replace(name, "\\", "/", -1) - pathList := strings.Split(cannonicalName, "/") - for _, p := range pathList { - node = node.Children[p] - if node == nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - } - } - if node.Func != nil { - return nil, fmt.Errorf("Asset %s not found", name) - } - rv := make([]string, 0, len(node.Children)) - for childName := range node.Children { - rv = append(rv, childName) - } - return rv, nil -} - -type bintree struct { - Func func() (*asset, error) - Children map[string]*bintree -} - -var _bintree = &bintree{nil, map[string]*bintree{ - "admin.swagger.json": &bintree{adminSwaggerJson, map[string]*bintree{}}, -}} - -// RestoreAsset restores an asset under the given directory -func RestoreAsset(dir, name string) error { - data, err := Asset(name) - if err != nil { - return err - } - info, err := AssetInfo(name) - if err != nil { - return err - } - err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755)) - if err != nil { - return err - } - err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode()) - if err != nil { - return err - } - err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime()) - if err != nil { - return err - } - return nil -} - -// RestoreAssets restores an asset under the given directory recursively -func RestoreAssets(dir, name string) error { - children, err := AssetDir(name) - // File - if err != nil { - return RestoreAsset(dir, name) - } - // Dir - for _, child := range children { - err = RestoreAssets(dir, filepath.Join(name, child)) - if err != nil { - return err - } - } - return nil -} - -func _filePath(dir, name string) string { - cannonicalName := strings.Replace(name, "\\", "/", -1) - return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go deleted file mode 100644 index 02d6a8c7be..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.go +++ /dev/null @@ -1,211 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// source: flyteidl/service/signal.proto - -package service - -import ( - context "context" - fmt "fmt" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - proto "github.com/golang/protobuf/proto" - _ "google.golang.org/genproto/googleapis/api/annotations" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - math "math" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package - -func init() { proto.RegisterFile("flyteidl/service/signal.proto", fileDescriptor_ca211d25a1023377) } - -var fileDescriptor_ca211d25a1023377 = []byte{ - // 317 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x92, 0xc1, 0x4a, 0xf4, 0x30, - 0x14, 0x85, 0xff, 0xf9, 0x05, 0xc1, 0x8a, 0xa8, 0x41, 0x5c, 0x54, 0x05, 0xa7, 0x2b, 0x11, 0x6c, - 0x50, 0x77, 0x82, 0x08, 0xba, 0x70, 0x23, 0x08, 0x76, 0x21, 0xb8, 0x19, 0x32, 0xed, 0x9d, 0x18, - 0x27, 0xcd, 0xad, 0x49, 0x66, 0x46, 0x91, 0xd9, 0xf8, 0x0a, 0xee, 0x7c, 0x1b, 0x9f, 0xc1, 0x57, - 0xf0, 0x41, 0xa4, 0x49, 0xa7, 0xe8, 0xd0, 0xba, 0x0b, 0xe7, 0x7c, 0x9c, 0xdc, 0x93, 0x9b, 0x60, - 0x67, 0x20, 0x9f, 0x2d, 0x88, 0x4c, 0x52, 0x03, 0x7a, 0x2c, 0x52, 0xa0, 0x46, 0x70, 0xc5, 0x64, - 0x5c, 0x68, 0xb4, 0x48, 0xd6, 0x66, 0x76, 0x5c, 0xd9, 0xe1, 0x36, 0x47, 0xe4, 0x12, 0x28, 0x2b, - 0x04, 0x65, 0x4a, 0xa1, 0x65, 0x56, 0xa0, 0x32, 0x9e, 0x0f, 0xb7, 0xea, 0x38, 0x96, 0xe5, 0x42, - 0xfd, 0x0a, 0x3b, 0x7a, 0x5f, 0x08, 0x56, 0x12, 0x27, 0x24, 0x3e, 0x8c, 0xdc, 0x06, 0xeb, 0x97, - 0x60, 0xaf, 0xf5, 0x85, 0x06, 0x66, 0xc1, 0x7b, 0x64, 0x2f, 0xae, 0x2f, 0x75, 0x21, 0xb1, 0xd7, - 0x7f, 0x80, 0x37, 0xf0, 0x38, 0x02, 0x63, 0xc3, 0xcd, 0x66, 0x32, 0xfa, 0x47, 0x3e, 0x3a, 0xc1, - 0xf2, 0x95, 0x30, 0xd6, 0x0b, 0x86, 0x74, 0x9b, 0xc9, 0x12, 0x99, 0x85, 0x85, 0xed, 0x48, 0x64, - 0x5e, 0x3f, 0xbf, 0xde, 0xfe, 0xe7, 0x64, 0xe8, 0x6a, 0x8f, 0x0f, 0xab, 0x5e, 0x86, 0xbe, 0x4c, - 0x50, 0x0f, 0x07, 0x12, 0x27, 0x3d, 0x78, 0x82, 0x74, 0x54, 0x3e, 0x45, 0x4f, 0x64, 0x65, 0xdf, - 0x07, 0x48, 0xed, 0xb4, 0xcd, 0xcf, 0x30, 0x67, 0x42, 0xb5, 0xda, 0x8a, 0xe5, 0x30, 0x25, 0x32, - 0x58, 0x4a, 0xa0, 0x6a, 0x40, 0x76, 0x9b, 0xa7, 0x4b, 0xa0, 0x9e, 0xbf, 0xfb, 0x07, 0x61, 0x0a, - 0x54, 0x06, 0xa2, 0xd0, 0xd5, 0xd8, 0x88, 0x56, 0xe7, 0x6a, 0x9c, 0x74, 0xf6, 0xcf, 0xcf, 0xee, - 0x4e, 0xb9, 0xb0, 0xf7, 0xa3, 0x7e, 0x9c, 0x62, 0x4e, 0x5d, 0x14, 0x6a, 0xee, 0x0f, 0xb4, 0xde, - 0x2a, 0x07, 0x45, 0x8b, 0xfe, 0x01, 0x47, 0x3a, 0xff, 0x6f, 0xfa, 0x8b, 0x6e, 0xc9, 0xc7, 0xdf, - 0x01, 0x00, 0x00, 0xff, 0xff, 0xa0, 0x03, 0x65, 0xd6, 0x52, 0x02, 0x00, 0x00, -} - -// Reference imports to suppress errors if they are not otherwise used. -var _ context.Context -var _ grpc.ClientConn - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion4 - -// SignalServiceClient is the client API for SignalService service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. -type SignalServiceClient interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) -} - -type signalServiceClient struct { - cc *grpc.ClientConn -} - -func NewSignalServiceClient(cc *grpc.ClientConn) SignalServiceClient { - return &signalServiceClient{cc} -} - -func (c *signalServiceClient) GetOrCreateSignal(ctx context.Context, in *admin.SignalGetOrCreateRequest, opts ...grpc.CallOption) (*admin.Signal, error) { - out := new(admin.Signal) - err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/GetOrCreateSignal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *signalServiceClient) ListSignals(ctx context.Context, in *admin.SignalListRequest, opts ...grpc.CallOption) (*admin.SignalList, error) { - out := new(admin.SignalList) - err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/ListSignals", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *signalServiceClient) SetSignal(ctx context.Context, in *admin.SignalSetRequest, opts ...grpc.CallOption) (*admin.SignalSetResponse, error) { - out := new(admin.SignalSetResponse) - err := c.cc.Invoke(ctx, "/flyteidl.service.SignalService/SetSignal", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// SignalServiceServer is the server API for SignalService service. -type SignalServiceServer interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(context.Context, *admin.SignalGetOrCreateRequest) (*admin.Signal, error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(context.Context, *admin.SignalListRequest) (*admin.SignalList, error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(context.Context, *admin.SignalSetRequest) (*admin.SignalSetResponse, error) -} - -// UnimplementedSignalServiceServer can be embedded to have forward compatible implementations. -type UnimplementedSignalServiceServer struct { -} - -func (*UnimplementedSignalServiceServer) GetOrCreateSignal(ctx context.Context, req *admin.SignalGetOrCreateRequest) (*admin.Signal, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetOrCreateSignal not implemented") -} -func (*UnimplementedSignalServiceServer) ListSignals(ctx context.Context, req *admin.SignalListRequest) (*admin.SignalList, error) { - return nil, status.Errorf(codes.Unimplemented, "method ListSignals not implemented") -} -func (*UnimplementedSignalServiceServer) SetSignal(ctx context.Context, req *admin.SignalSetRequest) (*admin.SignalSetResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method SetSignal not implemented") -} - -func RegisterSignalServiceServer(s *grpc.Server, srv SignalServiceServer) { - s.RegisterService(&_SignalService_serviceDesc, srv) -} - -func _SignalService_GetOrCreateSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalGetOrCreateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).GetOrCreateSignal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.SignalService/GetOrCreateSignal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).GetOrCreateSignal(ctx, req.(*admin.SignalGetOrCreateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SignalService_ListSignals_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalListRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).ListSignals(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.SignalService/ListSignals", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).ListSignals(ctx, req.(*admin.SignalListRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _SignalService_SetSignal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(admin.SignalSetRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(SignalServiceServer).SetSignal(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/flyteidl.service.SignalService/SetSignal", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(SignalServiceServer).SetSignal(ctx, req.(*admin.SignalSetRequest)) - } - return interceptor(ctx, in, info, handler) -} - -var _SignalService_serviceDesc = grpc.ServiceDesc{ - ServiceName: "flyteidl.service.SignalService", - HandlerType: (*SignalServiceServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "GetOrCreateSignal", - Handler: _SignalService_GetOrCreateSignal_Handler, - }, - { - MethodName: "ListSignals", - Handler: _SignalService_ListSignals_Handler, - }, - { - MethodName: "SetSignal", - Handler: _SignalService_SetSignal_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "flyteidl/service/signal.proto", -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go b/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go deleted file mode 100644 index 43397bb36e..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/signal.pb.gw.go +++ /dev/null @@ -1,200 +0,0 @@ -// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. -// source: flyteidl/service/signal.proto - -/* -Package service is a reverse proxy. - -It translates gRPC into RESTful JSON APIs. -*/ -package service - -import ( - "context" - "io" - "net/http" - - "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - "github.com/golang/protobuf/proto" - "github.com/grpc-ecosystem/grpc-gateway/runtime" - "github.com/grpc-ecosystem/grpc-gateway/utilities" - "google.golang.org/grpc" - "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" - "google.golang.org/grpc/status" -) - -var _ codes.Code -var _ io.Reader -var _ status.Status -var _ = runtime.String -var _ = utilities.NewDoubleArray - -var ( - filter_SignalService_ListSignals_0 = &utilities.DoubleArray{Encoding: map[string]int{"workflow_execution_id": 0, "project": 1, "domain": 2, "name": 3}, Base: []int{1, 1, 1, 2, 3, 0, 0, 0}, Check: []int{0, 1, 2, 2, 2, 3, 4, 5}} -) - -func request_SignalService_ListSignals_0(ctx context.Context, marshaler runtime.Marshaler, client SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.SignalListRequest - var metadata runtime.ServerMetadata - - var ( - val string - ok bool - err error - _ = err - ) - - val, ok = pathParams["workflow_execution_id.project"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.project") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.project", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.project", err) - } - - val, ok = pathParams["workflow_execution_id.domain"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.domain") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.domain", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.domain", err) - } - - val, ok = pathParams["workflow_execution_id.name"] - if !ok { - return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "workflow_execution_id.name") - } - - err = runtime.PopulateFieldFromPath(&protoReq, "workflow_execution_id.name", val) - - if err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "workflow_execution_id.name", err) - } - - if err := req.ParseForm(); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_SignalService_ListSignals_0); err != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.ListSignals(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -func request_SignalService_SetSignal_0(ctx context.Context, marshaler runtime.Marshaler, client SignalServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var protoReq admin.SignalSetRequest - var metadata runtime.ServerMetadata - - newReader, berr := utilities.IOReaderFactory(req.Body) - if berr != nil { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) - } - if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { - return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) - } - - msg, err := client.SetSignal(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err - -} - -// RegisterSignalServiceHandlerFromEndpoint is same as RegisterSignalServiceHandler but -// automatically dials to "endpoint" and closes the connection when "ctx" gets done. -func RegisterSignalServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { - conn, err := grpc.Dial(endpoint, opts...) - if err != nil { - return err - } - defer func() { - if err != nil { - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - return - } - go func() { - <-ctx.Done() - if cerr := conn.Close(); cerr != nil { - grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) - } - }() - }() - - return RegisterSignalServiceHandler(ctx, mux, conn) -} - -// RegisterSignalServiceHandler registers the http handlers for service SignalService to "mux". -// The handlers forward requests to the grpc endpoint over "conn". -func RegisterSignalServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { - return RegisterSignalServiceHandlerClient(ctx, mux, NewSignalServiceClient(conn)) -} - -// RegisterSignalServiceHandlerClient registers the http handlers for service SignalService -// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SignalServiceClient". -// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SignalServiceClient" -// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in -// "SignalServiceClient" to call the correct interceptors. -func RegisterSignalServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SignalServiceClient) error { - - mux.Handle("GET", pattern_SignalService_ListSignals_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SignalService_ListSignals_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_ListSignals_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - mux.Handle("POST", pattern_SignalService_SetSignal_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { - ctx, cancel := context.WithCancel(req.Context()) - defer cancel() - inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) - rctx, err := runtime.AnnotateContext(ctx, mux, req) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_SignalService_SetSignal_0(rctx, inboundMarshaler, client, req, pathParams) - ctx = runtime.NewServerMetadataContext(ctx, md) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - - forward_SignalService_SetSignal_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - - }) - - return nil -} - -var ( - pattern_SignalService_ListSignals_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 1, 0, 4, 1, 5, 3, 1, 0, 4, 1, 5, 4, 1, 0, 4, 1, 5, 5}, []string{"api", "v1", "signals", "workflow_execution_id.project", "workflow_execution_id.domain", "workflow_execution_id.name"}, "")) - - pattern_SignalService_SetSignal_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"api", "v1", "signals"}, "")) -) - -var ( - forward_SignalService_ListSignals_0 = runtime.ForwardResponseMessage - - forward_SignalService_SetSignal_0 = runtime.ForwardResponseMessage -) diff --git a/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json b/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json deleted file mode 100644 index 72ffbd861b..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/signal.swagger.json +++ /dev/null @@ -1,729 +0,0 @@ -{ - "swagger": "2.0", - "info": { - "title": "flyteidl/service/signal.proto", - "version": "version not set" - }, - "schemes": [ - "http", - "https" - ], - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "paths": { - "/api/v1/signals": { - "post": { - "summary": "Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition", - "operationId": "SetSignal", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminSignalSetResponse" - } - } - }, - "parameters": [ - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminSignalSetRequest" - } - } - ], - "tags": [ - "SignalService" - ] - } - }, - "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions.", - "operationId": "ListSignals", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminSignalList" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "SignalService" - ] - } - } - }, - "definitions": { - "BlobTypeBlobDimensionality": { - "type": "string", - "enum": [ - "SINGLE", - "MULTIPART" - ], - "default": "SINGLE" - }, - "SchemaColumnSchemaColumnType": { - "type": "string", - "enum": [ - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION" - ], - "default": "INTEGER" - }, - "SchemaTypeSchemaColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "title": "A unique name -within the schema type- for the column" - }, - "type": { - "$ref": "#/definitions/SchemaColumnSchemaColumnType", - "description": "The column type. This allows a limited set of types currently." - } - } - }, - "SortDirection": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING", - "description": " - DESCENDING: By default, fields are sorted in descending order." - }, - "StructuredDatasetTypeDatasetColumn": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "A unique name within the schema type for the column." - }, - "literal_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "The column type." - } - } - }, - "adminSignal": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreSignalIdentifier", - "description": "A unique identifier for the requested signal." - }, - "type": { - "$ref": "#/definitions/coreLiteralType", - "description": "A type denoting the required value type for this signal." - }, - "value": { - "$ref": "#/definitions/coreLiteral", - "description": "The value of the signal. This is only available if the signal has been \"set\" and must match\nthe defined the type." - } - }, - "description": "Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte\nsignal. Signals may exist either without a set value (representing a signal request) or with a\npopulated value (indicating the signal has been given)." - }, - "adminSignalList": { - "type": "object", - "properties": { - "signals": { - "type": "array", - "items": { - "$ref": "#/definitions/adminSignal" - }, - "description": "A list of signals matching the input filters." - }, - "token": { - "type": "string", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query. If there are no more results, this value will be empty." - } - }, - "title": "SignalList represents collection of signals along with the token of the last result.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" - }, - "adminSignalSetRequest": { - "type": "object", - "properties": { - "id": { - "$ref": "#/definitions/coreSignalIdentifier", - "description": "A unique identifier for the requested signal." - }, - "value": { - "$ref": "#/definitions/coreLiteral", - "description": "The value of this signal, must match the defining signal type." - } - }, - "title": "SignalSetRequest represents a request structure to set the value on a signal. Setting a signal\neffetively satisfies the signal condition within a Flyte workflow.\nSee :ref:`ref_flyteidl.admin.Signal` for more details" - }, - "adminSignalSetResponse": { - "type": "object", - "description": "SignalSetResponse represents a response structure if signal setting succeeds." - }, - "adminSort": { - "type": "object", - "properties": { - "key": { - "type": "string", - "title": "Indicates an attribute to sort the response values.\n+required" - }, - "direction": { - "$ref": "#/definitions/SortDirection", - "title": "Indicates the direction to apply sort key for response values.\n+optional" - } - }, - "description": "Specifies sort ordering in a list request." - }, - "coreBinary": { - "type": "object", - "properties": { - "value": { - "type": "string", - "format": "byte" - }, - "tag": { - "type": "string" - } - }, - "description": "A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.\nIt's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data." - }, - "coreBlob": { - "type": "object", - "properties": { - "metadata": { - "$ref": "#/definitions/coreBlobMetadata" - }, - "uri": { - "type": "string" - } - }, - "description": "Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.\nThere are no restrictions on how the uri is formatted since it will depend on how to interact with the store." - }, - "coreBlobMetadata": { - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/coreBlobType" - } - } - }, - "coreBlobType": { - "type": "object", - "properties": { - "format": { - "type": "string", - "title": "Format can be a free form string understood by SDK/UI etc like\ncsv, parquet etc" - }, - "dimensionality": { - "$ref": "#/definitions/BlobTypeBlobDimensionality" - } - }, - "title": "Defines type behavior for blob objects" - }, - "coreEnumType": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Predefined set of enum values." - } - }, - "description": "Enables declaring enum types, with predefined string values\nFor len(values) \u003e 0, the first value in the ordered list is regarded as the default value. If you wish\nTo provide no defaults, make the first value as undefined." - }, - "coreError": { - "type": "object", - "properties": { - "failed_node_id": { - "type": "string", - "description": "The node id that threw the error." - }, - "message": { - "type": "string", - "description": "Error message thrown." - } - }, - "description": "Represents an error thrown from a node." - }, - "coreLiteral": { - "type": "object", - "properties": { - "scalar": { - "$ref": "#/definitions/coreScalar", - "description": "A simple value." - }, - "collection": { - "$ref": "#/definitions/coreLiteralCollection", - "description": "A collection of literals to allow nesting." - }, - "map": { - "$ref": "#/definitions/coreLiteralMap", - "description": "A map of strings to literals." - }, - "hash": { - "type": "string", - "title": "A hash representing this literal.\nThis is used for caching purposes. For more details refer to RFC 1893\n(https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)" - }, - "metadata": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Additional metadata for literals." - } - }, - "description": "A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives." - }, - "coreLiteralCollection": { - "type": "object", - "properties": { - "literals": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralMap": { - "type": "object", - "properties": { - "literals": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteral" - } - } - }, - "description": "A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field." - }, - "coreLiteralType": { - "type": "object", - "properties": { - "simple": { - "$ref": "#/definitions/coreSimpleType", - "description": "A simple type that can be compared one-to-one with another." - }, - "schema": { - "$ref": "#/definitions/coreSchemaType", - "description": "A complex type that requires matching of inner fields." - }, - "collection_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a collection. Only homogeneous collections are allowed." - }, - "map_value_type": { - "$ref": "#/definitions/coreLiteralType", - "description": "Defines the type of the value of a map type. The type of the key is always a string." - }, - "blob": { - "$ref": "#/definitions/coreBlobType", - "description": "A blob might have specialized implementation details depending on associated metadata." - }, - "enum_type": { - "$ref": "#/definitions/coreEnumType", - "description": "Defines an enum with pre-defined string values." - }, - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "title": "Generalized schema support" - }, - "union_type": { - "$ref": "#/definitions/coreUnionType", - "description": "Defines an union type with pre-defined LiteralTypes." - }, - "metadata": { - "$ref": "#/definitions/protobufStruct", - "description": "This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by\nconsumers to identify special behavior or display extended information for the type." - }, - "annotation": { - "$ref": "#/definitions/coreTypeAnnotation", - "description": "This field contains arbitrary data that might have special semantic\nmeaning for the client but does not effect internal flyte behavior." - }, - "structure": { - "$ref": "#/definitions/coreTypeStructure", - "description": "Hints to improve type matching." - } - }, - "description": "Defines a strong type to allow type checking between interfaces." - }, - "corePrimitive": { - "type": "object", - "properties": { - "integer": { - "type": "string", - "format": "int64" - }, - "float_value": { - "type": "number", - "format": "double" - }, - "string_value": { - "type": "string" - }, - "boolean": { - "type": "boolean", - "format": "boolean" - }, - "datetime": { - "type": "string", - "format": "date-time" - }, - "duration": { - "type": "string" - } - }, - "title": "Primitive Types" - }, - "coreScalar": { - "type": "object", - "properties": { - "primitive": { - "$ref": "#/definitions/corePrimitive" - }, - "blob": { - "$ref": "#/definitions/coreBlob" - }, - "binary": { - "$ref": "#/definitions/coreBinary" - }, - "schema": { - "$ref": "#/definitions/coreSchema" - }, - "none_type": { - "$ref": "#/definitions/coreVoid" - }, - "error": { - "$ref": "#/definitions/coreError" - }, - "generic": { - "$ref": "#/definitions/protobufStruct" - }, - "structured_dataset": { - "$ref": "#/definitions/coreStructuredDataset" - }, - "union": { - "$ref": "#/definitions/coreUnion" - } - } - }, - "coreSchema": { - "type": "object", - "properties": { - "uri": { - "type": "string" - }, - "type": { - "$ref": "#/definitions/coreSchemaType" - } - }, - "description": "A strongly typed schema that defines the interface of data retrieved from the underlying storage medium." - }, - "coreSchemaType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/SchemaTypeSchemaColumn" - }, - "description": "A list of ordered columns this schema comprises of." - } - }, - "description": "Defines schema columns and types to strongly type-validate schemas interoperability." - }, - "coreSignalIdentifier": { - "type": "object", - "properties": { - "signal_id": { - "type": "string", - "description": "Unique identifier for a signal." - }, - "execution_id": { - "$ref": "#/definitions/coreWorkflowExecutionIdentifier", - "description": "Identifies the Flyte workflow execution this signal belongs to." - } - }, - "description": "Encapsulation of fields the uniquely identify a signal." - }, - "coreSimpleType": { - "type": "string", - "enum": [ - "NONE", - "INTEGER", - "FLOAT", - "STRING", - "BOOLEAN", - "DATETIME", - "DURATION", - "BINARY", - "ERROR", - "STRUCT" - ], - "default": "NONE", - "description": "Define a set of simple types." - }, - "coreStructuredDataset": { - "type": "object", - "properties": { - "uri": { - "type": "string", - "title": "String location uniquely identifying where the data is.\nShould start with the storage location (e.g. s3://, gs://, bq://, etc.)" - }, - "metadata": { - "$ref": "#/definitions/coreStructuredDatasetMetadata" - } - } - }, - "coreStructuredDatasetMetadata": { - "type": "object", - "properties": { - "structured_dataset_type": { - "$ref": "#/definitions/coreStructuredDatasetType", - "description": "Bundle the type information along with the literal.\nThis is here because StructuredDatasets can often be more defined at run time than at compile time.\nThat is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,\nwithout any column information, but at run time, you might have that column information.\nflytekit python will copy this type information into the literal, from the type information, if not provided by\nthe various plugins (encoders).\nSince this field is run time generated, it's not used for any type checking." - } - } - }, - "coreStructuredDatasetType": { - "type": "object", - "properties": { - "columns": { - "type": "array", - "items": { - "$ref": "#/definitions/StructuredDatasetTypeDatasetColumn" - }, - "description": "A list of ordered columns this schema comprises of." - }, - "format": { - "type": "string", - "description": "This is the storage format, the format of the bits at rest\nparquet, feather, csv, etc.\nFor two types to be compatible, the format will need to be an exact match." - }, - "external_schema_type": { - "type": "string", - "description": "This is a string representing the type that the bytes in external_schema_bytes are formatted in.\nThis is an optional field that will not be used for type checking." - }, - "external_schema_bytes": { - "type": "string", - "format": "byte", - "description": "The serialized bytes of a third-party schema library like Arrow.\nThis is an optional field that will not be used for type checking." - } - } - }, - "coreTypeAnnotation": { - "type": "object", - "properties": { - "annotations": { - "$ref": "#/definitions/protobufStruct", - "description": "A arbitrary JSON payload to describe a type." - } - }, - "description": "TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs." - }, - "coreTypeStructure": { - "type": "object", - "properties": { - "tag": { - "type": "string", - "title": "Must exactly match for types to be castable" - }, - "dataclass_type": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/coreLiteralType" - }, - "title": "dataclass_type only exists for dataclasses.\nThis is used to resolve the type of the fields of dataclass\nThe key is the field name, and the value is the literal type of the field\ne.g. For dataclass Foo, with fields a, and a is a string\nFoo.a will be resolved as a literal type of string from dataclass_type" - } - }, - "description": "Hints to improve type matching\ne.g. allows distinguishing output from custom type transformers\neven if the underlying IDL serialization matches." - }, - "coreUnion": { - "type": "object", - "properties": { - "value": { - "$ref": "#/definitions/coreLiteral" - }, - "type": { - "$ref": "#/definitions/coreLiteralType" - } - }, - "description": "The runtime representation of a tagged union value. See `UnionType` for more details." - }, - "coreUnionType": { - "type": "object", - "properties": { - "variants": { - "type": "array", - "items": { - "$ref": "#/definitions/coreLiteralType" - }, - "description": "Predefined set of variants in union." - } - }, - "description": "Defines a tagged union type, also known as a variant (and formally as the sum type).\n\nA sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag\nA value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by\nstoring the varaint's tag with the literal value and can be examined in runtime.\n\nType S is typically written as\nS := Apple A | Banana B | Cantaloupe C | ...\n\nNotably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:\nOptional X := X | Null\n\nSee also: https://en.wikipedia.org/wiki/Tagged_union" - }, - "coreVoid": { - "type": "object", - "description": "Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally\nundefined since it can be assigned to a scalar of any LiteralType." - }, - "coreWorkflowExecutionIdentifier": { - "type": "object", - "properties": { - "project": { - "type": "string", - "description": "Name of the project the resource belongs to." - }, - "domain": { - "type": "string", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project." - }, - "name": { - "type": "string", - "description": "User or system provided value for the resource." - } - }, - "title": "Encapsulation of fields that uniquely identifies a Flyte workflow execution" - }, - "protobufListValue": { - "type": "object", - "properties": { - "values": { - "type": "array", - "items": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Repeated field of dynamically typed values." - } - }, - "description": "`ListValue` is a wrapper around a repeated field of values.\n\nThe JSON representation for `ListValue` is JSON array." - }, - "protobufNullValue": { - "type": "string", - "enum": [ - "NULL_VALUE" - ], - "default": "NULL_VALUE", - "description": "`NullValue` is a singleton enumeration to represent the null value for the\n`Value` type union.\n\n The JSON representation for `NullValue` is JSON `null`.\n\n - NULL_VALUE: Null value." - }, - "protobufStruct": { - "type": "object", - "properties": { - "fields": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/protobufValue" - }, - "description": "Unordered map of dynamically typed values." - } - }, - "description": "`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\nThe JSON representation for `Struct` is JSON object." - }, - "protobufValue": { - "type": "object", - "properties": { - "null_value": { - "$ref": "#/definitions/protobufNullValue", - "description": "Represents a null value." - }, - "number_value": { - "type": "number", - "format": "double", - "description": "Represents a double value." - }, - "string_value": { - "type": "string", - "description": "Represents a string value." - }, - "bool_value": { - "type": "boolean", - "format": "boolean", - "description": "Represents a boolean value." - }, - "struct_value": { - "$ref": "#/definitions/protobufStruct", - "description": "Represents a structured value." - }, - "list_value": { - "$ref": "#/definitions/protobufListValue", - "description": "Represents a repeated `Value`." - } - }, - "description": "`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of that\nvariants, absence of any variant indicates an error.\n\nThe JSON representation for `Value` is JSON value." - } - } -} diff --git a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java b/flyteidl/gen/pb-java/datacatalog/Datacatalog.java deleted file mode 100644 index 9ad108fc95..0000000000 --- a/flyteidl/gen/pb-java/datacatalog/Datacatalog.java +++ /dev/null @@ -1,34189 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/datacatalog/datacatalog.proto - -package datacatalog; - -public final class Datacatalog { - private Datacatalog() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface CreateDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.Dataset dataset = 1; - */ - boolean hasDataset(); - /** - * .datacatalog.Dataset dataset = 1; - */ - datacatalog.Datacatalog.Dataset getDataset(); - /** - * .datacatalog.Dataset dataset = 1; - */ - datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); - } - /** - *
-   * Request message for creating a Dataset.
-   * 
- * - * Protobuf type {@code datacatalog.CreateDatasetRequest} - */ - public static final class CreateDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetRequest) - CreateDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDatasetRequest.newBuilder() to construct. - private CreateDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDatasetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDatasetRequest( - 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: { - datacatalog.Datacatalog.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Dataset dataset_; - /** - * .datacatalog.Dataset dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - 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 datacatalog.Datacatalog.CreateDatasetRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.CreateDatasetRequest other = (datacatalog.Datacatalog.CreateDatasetRequest) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) 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 (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetRequest 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 datacatalog.Datacatalog.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetRequest 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 datacatalog.Datacatalog.CreateDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetRequest 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(datacatalog.Datacatalog.CreateDatasetRequest 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; - } - /** - *
-     * Request message for creating a Dataset.
-     * 
- * - * Protobuf type {@code datacatalog.CreateDatasetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetRequest) - datacatalog.Datacatalog.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateDatasetRequest.class, datacatalog.Datacatalog.CreateDatasetRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.CreateDatasetRequest.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 (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetRequest build() { - datacatalog.Datacatalog.CreateDatasetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetRequest buildPartial() { - datacatalog.Datacatalog.CreateDatasetRequest result = new datacatalog.Datacatalog.CreateDatasetRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.CreateDatasetRequest) { - return mergeFrom((datacatalog.Datacatalog.CreateDatasetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetRequest other) { - if (other == datacatalog.Datacatalog.CreateDatasetRequest.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - 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 { - datacatalog.Datacatalog.CreateDatasetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.CreateDatasetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Dataset dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; - /** - * .datacatalog.Dataset dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.Dataset value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.Dataset.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } - } - /** - * .datacatalog.Dataset dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - @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:datacatalog.CreateDatasetRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetRequest) - private static final datacatalog.Datacatalog.CreateDatasetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetRequest(); - } - - public static datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetRequest(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 datacatalog.Datacatalog.CreateDatasetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateDatasetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.CreateDatasetResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response message for creating a Dataset
-   * 
- * - * Protobuf type {@code datacatalog.CreateDatasetResponse} - */ - public static final class CreateDatasetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.CreateDatasetResponse) - CreateDatasetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDatasetResponse.newBuilder() to construct. - private CreateDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDatasetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDatasetResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 datacatalog.Datacatalog.CreateDatasetResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.CreateDatasetResponse other = (datacatalog.Datacatalog.CreateDatasetResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateDatasetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetResponse 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 datacatalog.Datacatalog.CreateDatasetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetResponse 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 datacatalog.Datacatalog.CreateDatasetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateDatasetResponse 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(datacatalog.Datacatalog.CreateDatasetResponse 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; - } - /** - *
-     * Response message for creating a Dataset
-     * 
- * - * Protobuf type {@code datacatalog.CreateDatasetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.CreateDatasetResponse) - datacatalog.Datacatalog.CreateDatasetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateDatasetResponse.class, datacatalog.Datacatalog.CreateDatasetResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.CreateDatasetResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateDatasetResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetResponse build() { - datacatalog.Datacatalog.CreateDatasetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateDatasetResponse buildPartial() { - datacatalog.Datacatalog.CreateDatasetResponse result = new datacatalog.Datacatalog.CreateDatasetResponse(this); - 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 datacatalog.Datacatalog.CreateDatasetResponse) { - return mergeFrom((datacatalog.Datacatalog.CreateDatasetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.CreateDatasetResponse other) { - if (other == datacatalog.Datacatalog.CreateDatasetResponse.getDefaultInstance()) return this; - 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 { - datacatalog.Datacatalog.CreateDatasetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.CreateDatasetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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:datacatalog.CreateDatasetResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.CreateDatasetResponse) - private static final datacatalog.Datacatalog.CreateDatasetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateDatasetResponse(); - } - - public static datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDatasetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDatasetResponse(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 datacatalog.Datacatalog.CreateDatasetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.DatasetID dataset = 1; - */ - boolean hasDataset(); - /** - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - } - /** - *
-   * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier
-   * which is a combination of several fields.
-   * 
- * - * Protobuf type {@code datacatalog.GetDatasetRequest} - */ - public static final class GetDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetRequest) - GetDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDatasetRequest.newBuilder() to construct. - private GetDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDatasetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDatasetRequest( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - 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 datacatalog.Datacatalog.GetDatasetRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetDatasetRequest other = (datacatalog.Datacatalog.GetDatasetRequest) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) 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 (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetRequest 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 datacatalog.Datacatalog.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetRequest 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 datacatalog.Datacatalog.GetDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetRequest 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(datacatalog.Datacatalog.GetDatasetRequest 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; - } - /** - *
-     * Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier
-     * which is a combination of several fields.
-     * 
- * - * Protobuf type {@code datacatalog.GetDatasetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetRequest) - datacatalog.Datacatalog.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetDatasetRequest.class, datacatalog.Datacatalog.GetDatasetRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetDatasetRequest.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 (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetRequest build() { - datacatalog.Datacatalog.GetDatasetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetRequest buildPartial() { - datacatalog.Datacatalog.GetDatasetRequest result = new datacatalog.Datacatalog.GetDatasetRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.GetDatasetRequest) { - return mergeFrom((datacatalog.Datacatalog.GetDatasetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetRequest other) { - if (other == datacatalog.Datacatalog.GetDatasetRequest.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - 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 { - datacatalog.Datacatalog.GetDatasetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetDatasetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - @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:datacatalog.GetDatasetRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetRequest) - private static final datacatalog.Datacatalog.GetDatasetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetRequest(); - } - - public static datacatalog.Datacatalog.GetDatasetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetRequest(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 datacatalog.Datacatalog.GetDatasetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetDatasetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetDatasetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.Dataset dataset = 1; - */ - boolean hasDataset(); - /** - * .datacatalog.Dataset dataset = 1; - */ - datacatalog.Datacatalog.Dataset getDataset(); - /** - * .datacatalog.Dataset dataset = 1; - */ - datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder(); - } - /** - *
-   * Response message for retrieving a Dataset. The response will include the metadata for the
-   * Dataset.
-   * 
- * - * Protobuf type {@code datacatalog.GetDatasetResponse} - */ - public static final class GetDatasetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetDatasetResponse) - GetDatasetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDatasetResponse.newBuilder() to construct. - private GetDatasetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDatasetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDatasetResponse( - 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: { - datacatalog.Datacatalog.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Dataset dataset_; - /** - * .datacatalog.Dataset dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - 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 datacatalog.Datacatalog.GetDatasetResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetDatasetResponse other = (datacatalog.Datacatalog.GetDatasetResponse) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) 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 (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetDatasetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetResponse 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 datacatalog.Datacatalog.GetDatasetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetResponse 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 datacatalog.Datacatalog.GetDatasetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetDatasetResponse 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(datacatalog.Datacatalog.GetDatasetResponse 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; - } - /** - *
-     * Response message for retrieving a Dataset. The response will include the metadata for the
-     * Dataset.
-     * 
- * - * Protobuf type {@code datacatalog.GetDatasetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetDatasetResponse) - datacatalog.Datacatalog.GetDatasetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetDatasetResponse.class, datacatalog.Datacatalog.GetDatasetResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetDatasetResponse.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 (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetDatasetResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetResponse build() { - datacatalog.Datacatalog.GetDatasetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetDatasetResponse buildPartial() { - datacatalog.Datacatalog.GetDatasetResponse result = new datacatalog.Datacatalog.GetDatasetResponse(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.GetDatasetResponse) { - return mergeFrom((datacatalog.Datacatalog.GetDatasetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetDatasetResponse other) { - if (other == datacatalog.Datacatalog.GetDatasetResponse.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - 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 { - datacatalog.Datacatalog.GetDatasetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetDatasetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Dataset dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetBuilder_; - /** - * .datacatalog.Dataset dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.Dataset value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.Dataset.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.Dataset value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.Dataset.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Dataset dataset = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.Dataset.getDefaultInstance() : dataset_; - } - } - /** - * .datacatalog.Dataset dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - @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:datacatalog.GetDatasetResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetDatasetResponse) - private static final datacatalog.Datacatalog.GetDatasetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetDatasetResponse(); - } - - public static datacatalog.Datacatalog.GetDatasetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDatasetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDatasetResponse(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 datacatalog.Datacatalog.GetDatasetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetArtifactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.DatasetID dataset = 1; - */ - boolean hasDataset(); - /** - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - - /** - * string artifact_id = 2; - */ - java.lang.String getArtifactId(); - /** - * string artifact_id = 2; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - - /** - * string tag_name = 3; - */ - java.lang.String getTagName(); - /** - * string tag_name = 3; - */ - com.google.protobuf.ByteString - getTagNameBytes(); - - public datacatalog.Datacatalog.GetArtifactRequest.QueryHandleCase getQueryHandleCase(); - } - /** - *
-   * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that
-   * can be one of artifact_id or tag. The result returned will include the artifact data and metadata
-   * associated with the artifact.
-   * 
- * - * Protobuf type {@code datacatalog.GetArtifactRequest} - */ - public static final class GetArtifactRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactRequest) - GetArtifactRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetArtifactRequest.newBuilder() to construct. - private GetArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetArtifactRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetArtifactRequest( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - queryHandleCase_ = 2; - queryHandle_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - queryHandleCase_ = 3; - queryHandle_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); - } - - private int queryHandleCase_ = 0; - private java.lang.Object queryHandle_; - public enum QueryHandleCase - implements com.google.protobuf.Internal.EnumLite { - ARTIFACT_ID(2), - TAG_NAME(3), - QUERYHANDLE_NOT_SET(0); - private final int value; - private QueryHandleCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static QueryHandleCase valueOf(int value) { - return forNumber(value); - } - - public static QueryHandleCase forNumber(int value) { - switch (value) { - case 2: return ARTIFACT_ID; - case 3: return TAG_NAME; - case 0: return QUERYHANDLE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public QueryHandleCase - getQueryHandleCase() { - return QueryHandleCase.forNumber( - queryHandleCase_); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 2; - /** - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 2) { - queryHandle_ = s; - } - return s; - } - } - /** - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 2) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_NAME_FIELD_NUMBER = 3; - /** - * string tag_name = 3; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 3) { - queryHandle_ = s; - } - return s; - } - } - /** - * string tag_name = 3; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 3) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - if (queryHandleCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); - } - if (queryHandleCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - if (queryHandleCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); - } - if (queryHandleCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); - } - 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 datacatalog.Datacatalog.GetArtifactRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetArtifactRequest other = (datacatalog.Datacatalog.GetArtifactRequest) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; - } - if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; - switch (queryHandleCase_) { - case 2: - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - break; - case 3: - if (!getTagName() - .equals(other.getTagName())) 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(); - if (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - switch (queryHandleCase_) { - case 2: - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - break; - case 3: - hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTagName().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactRequest 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 datacatalog.Datacatalog.GetArtifactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactRequest 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 datacatalog.Datacatalog.GetArtifactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactRequest 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(datacatalog.Datacatalog.GetArtifactRequest 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; - } - /** - *
-     * Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that
-     * can be one of artifact_id or tag. The result returned will include the artifact data and metadata
-     * associated with the artifact.
-     * 
- * - * Protobuf type {@code datacatalog.GetArtifactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactRequest) - datacatalog.Datacatalog.GetArtifactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetArtifactRequest.class, datacatalog.Datacatalog.GetArtifactRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetArtifactRequest.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 (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - queryHandleCase_ = 0; - queryHandle_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactRequest build() { - datacatalog.Datacatalog.GetArtifactRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactRequest buildPartial() { - datacatalog.Datacatalog.GetArtifactRequest result = new datacatalog.Datacatalog.GetArtifactRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (queryHandleCase_ == 2) { - result.queryHandle_ = queryHandle_; - } - if (queryHandleCase_ == 3) { - result.queryHandle_ = queryHandle_; - } - result.queryHandleCase_ = queryHandleCase_; - 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 datacatalog.Datacatalog.GetArtifactRequest) { - return mergeFrom((datacatalog.Datacatalog.GetArtifactRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactRequest other) { - if (other == datacatalog.Datacatalog.GetArtifactRequest.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - switch (other.getQueryHandleCase()) { - case ARTIFACT_ID: { - queryHandleCase_ = 2; - queryHandle_ = other.queryHandle_; - onChanged(); - break; - } - case TAG_NAME: { - queryHandleCase_ = 3; - queryHandle_ = other.queryHandle_; - onChanged(); - break; - } - case QUERYHANDLE_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 { - datacatalog.Datacatalog.GetArtifactRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetArtifactRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int queryHandleCase_ = 0; - private java.lang.Object queryHandle_; - public QueryHandleCase - getQueryHandleCase() { - return QueryHandleCase.forNumber( - queryHandleCase_); - } - - public Builder clearQueryHandle() { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - return this; - } - - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - * .datacatalog.DatasetID dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - - /** - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 2) { - queryHandle_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 2) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string artifact_id = 2; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryHandleCase_ = 2; - queryHandle_ = value; - onChanged(); - return this; - } - /** - * string artifact_id = 2; - */ - public Builder clearArtifactId() { - if (queryHandleCase_ == 2) { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - } - return this; - } - /** - * string artifact_id = 2; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queryHandleCase_ = 2; - queryHandle_ = value; - onChanged(); - return this; - } - - /** - * string tag_name = 3; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 3) { - queryHandle_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag_name = 3; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 3) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag_name = 3; - */ - public Builder setTagName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryHandleCase_ = 3; - queryHandle_ = value; - onChanged(); - return this; - } - /** - * string tag_name = 3; - */ - public Builder clearTagName() { - if (queryHandleCase_ == 3) { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - } - return this; - } - /** - * string tag_name = 3; - */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queryHandleCase_ = 3; - queryHandle_ = value; - onChanged(); - return this; - } - @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:datacatalog.GetArtifactRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactRequest) - private static final datacatalog.Datacatalog.GetArtifactRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactRequest(); - } - - public static datacatalog.Datacatalog.GetArtifactRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetArtifactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetArtifactRequest(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 datacatalog.Datacatalog.GetArtifactRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetArtifactResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.Artifact artifact = 1; - */ - boolean hasArtifact(); - /** - * .datacatalog.Artifact artifact = 1; - */ - datacatalog.Datacatalog.Artifact getArtifact(); - /** - * .datacatalog.Artifact artifact = 1; - */ - datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); - } - /** - *
-   * Response message for retrieving an Artifact. The result returned will include the artifact data
-   * and metadata associated with the artifact.
-   * 
- * - * Protobuf type {@code datacatalog.GetArtifactResponse} - */ - public static final class GetArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetArtifactResponse) - GetArtifactResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetArtifactResponse.newBuilder() to construct. - private GetArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetArtifactResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetArtifactResponse( - 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: { - datacatalog.Datacatalog.Artifact.Builder subBuilder = null; - if (artifact_ != null) { - subBuilder = artifact_.toBuilder(); - } - artifact_ = input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifact_); - artifact_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); - } - - public static final int ARTIFACT_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Artifact artifact_; - /** - * .datacatalog.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifact_ != null; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifact() { - return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); - } - - 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 (artifact_ != null) { - output.writeMessage(1, getArtifact()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifact()); - } - 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 datacatalog.Datacatalog.GetArtifactResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetArtifactResponse other = (datacatalog.Datacatalog.GetArtifactResponse) obj; - - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact() - .equals(other.getArtifact())) 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 (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetArtifactResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactResponse 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 datacatalog.Datacatalog.GetArtifactResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactResponse 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 datacatalog.Datacatalog.GetArtifactResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetArtifactResponse 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(datacatalog.Datacatalog.GetArtifactResponse 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; - } - /** - *
-     * Response message for retrieving an Artifact. The result returned will include the artifact data
-     * and metadata associated with the artifact.
-     * 
- * - * Protobuf type {@code datacatalog.GetArtifactResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetArtifactResponse) - datacatalog.Datacatalog.GetArtifactResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetArtifactResponse.class, datacatalog.Datacatalog.GetArtifactResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetArtifactResponse.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 (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; - artifactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetArtifactResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetArtifactResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactResponse build() { - datacatalog.Datacatalog.GetArtifactResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetArtifactResponse buildPartial() { - datacatalog.Datacatalog.GetArtifactResponse result = new datacatalog.Datacatalog.GetArtifactResponse(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.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 datacatalog.Datacatalog.GetArtifactResponse) { - return mergeFrom((datacatalog.Datacatalog.GetArtifactResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetArtifactResponse other) { - if (other == datacatalog.Datacatalog.GetArtifactResponse.getDefaultInstance()) return this; - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); - } - 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 { - datacatalog.Datacatalog.GetArtifactResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetArtifactResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Artifact artifact_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; - /** - * .datacatalog.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } else { - return artifactBuilder_.getMessage(); - } - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { - if (artifactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifact_ = value; - onChanged(); - } else { - artifactBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder setArtifact( - datacatalog.Datacatalog.Artifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); - onChanged(); - } else { - artifactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { - if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); - } else { - artifact_ = value; - } - onChanged(); - } else { - artifactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; - artifactBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { - - onChanged(); - return getArtifactFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); - } else { - return artifact_ == null ? - datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } - } - /** - * .datacatalog.Artifact artifact = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> - getArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( - getArtifact(), - getParentForChildren(), - isClean()); - artifact_ = null; - } - return artifactBuilder_; - } - @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:datacatalog.GetArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetArtifactResponse) - private static final datacatalog.Datacatalog.GetArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetArtifactResponse(); - } - - public static datacatalog.Datacatalog.GetArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetArtifactResponse(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 datacatalog.Datacatalog.GetArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateArtifactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.Artifact artifact = 1; - */ - boolean hasArtifact(); - /** - * .datacatalog.Artifact artifact = 1; - */ - datacatalog.Datacatalog.Artifact getArtifact(); - /** - * .datacatalog.Artifact artifact = 1; - */ - datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder(); - } - /** - *
-   * Request message for creating an Artifact and its associated artifact Data.
-   * 
- * - * Protobuf type {@code datacatalog.CreateArtifactRequest} - */ - public static final class CreateArtifactRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactRequest) - CreateArtifactRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateArtifactRequest.newBuilder() to construct. - private CreateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateArtifactRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateArtifactRequest( - 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: { - datacatalog.Datacatalog.Artifact.Builder subBuilder = null; - if (artifact_ != null) { - subBuilder = artifact_.toBuilder(); - } - artifact_ = input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifact_); - artifact_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); - } - - public static final int ARTIFACT_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Artifact artifact_; - /** - * .datacatalog.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifact_ != null; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifact() { - return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); - } - - 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 (artifact_ != null) { - output.writeMessage(1, getArtifact()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifact()); - } - 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 datacatalog.Datacatalog.CreateArtifactRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.CreateArtifactRequest other = (datacatalog.Datacatalog.CreateArtifactRequest) obj; - - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact() - .equals(other.getArtifact())) 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 (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactRequest 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 datacatalog.Datacatalog.CreateArtifactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactRequest 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 datacatalog.Datacatalog.CreateArtifactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactRequest 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(datacatalog.Datacatalog.CreateArtifactRequest 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; - } - /** - *
-     * Request message for creating an Artifact and its associated artifact Data.
-     * 
- * - * Protobuf type {@code datacatalog.CreateArtifactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactRequest) - datacatalog.Datacatalog.CreateArtifactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateArtifactRequest.class, datacatalog.Datacatalog.CreateArtifactRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.CreateArtifactRequest.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 (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; - artifactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.CreateArtifactRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactRequest build() { - datacatalog.Datacatalog.CreateArtifactRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactRequest buildPartial() { - datacatalog.Datacatalog.CreateArtifactRequest result = new datacatalog.Datacatalog.CreateArtifactRequest(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.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 datacatalog.Datacatalog.CreateArtifactRequest) { - return mergeFrom((datacatalog.Datacatalog.CreateArtifactRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactRequest other) { - if (other == datacatalog.Datacatalog.CreateArtifactRequest.getDefaultInstance()) return this; - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); - } - 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 { - datacatalog.Datacatalog.CreateArtifactRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.CreateArtifactRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Artifact artifact_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactBuilder_; - /** - * .datacatalog.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null ? datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } else { - return artifactBuilder_.getMessage(); - } - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder setArtifact(datacatalog.Datacatalog.Artifact value) { - if (artifactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifact_ = value; - onChanged(); - } else { - artifactBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder setArtifact( - datacatalog.Datacatalog.Artifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); - onChanged(); - } else { - artifactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder mergeArtifact(datacatalog.Datacatalog.Artifact value) { - if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - datacatalog.Datacatalog.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); - } else { - artifact_ = value; - } - onChanged(); - } else { - artifactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; - artifactBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.Artifact.Builder getArtifactBuilder() { - - onChanged(); - return getArtifactFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Artifact artifact = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); - } else { - return artifact_ == null ? - datacatalog.Datacatalog.Artifact.getDefaultInstance() : artifact_; - } - } - /** - * .datacatalog.Artifact artifact = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> - getArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( - getArtifact(), - getParentForChildren(), - isClean()); - artifact_ = null; - } - return artifactBuilder_; - } - @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:datacatalog.CreateArtifactRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactRequest) - private static final datacatalog.Datacatalog.CreateArtifactRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactRequest(); - } - - public static datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateArtifactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateArtifactRequest(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 datacatalog.Datacatalog.CreateArtifactRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.CreateArtifactResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response message for creating an Artifact.
-   * 
- * - * Protobuf type {@code datacatalog.CreateArtifactResponse} - */ - public static final class CreateArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.CreateArtifactResponse) - CreateArtifactResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateArtifactResponse.newBuilder() to construct. - private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateArtifactResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateArtifactResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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 datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 datacatalog.Datacatalog.CreateArtifactResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.CreateArtifactResponse other = (datacatalog.Datacatalog.CreateArtifactResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.CreateArtifactResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactResponse 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 datacatalog.Datacatalog.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactResponse 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 datacatalog.Datacatalog.CreateArtifactResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.CreateArtifactResponse 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(datacatalog.Datacatalog.CreateArtifactResponse 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; - } - /** - *
-     * Response message for creating an Artifact.
-     * 
- * - * Protobuf type {@code datacatalog.CreateArtifactResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.CreateArtifactResponse) - datacatalog.Datacatalog.CreateArtifactResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.CreateArtifactResponse.class, datacatalog.Datacatalog.CreateArtifactResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.CreateArtifactResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactResponse build() { - datacatalog.Datacatalog.CreateArtifactResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.CreateArtifactResponse buildPartial() { - datacatalog.Datacatalog.CreateArtifactResponse result = new datacatalog.Datacatalog.CreateArtifactResponse(this); - 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 datacatalog.Datacatalog.CreateArtifactResponse) { - return mergeFrom((datacatalog.Datacatalog.CreateArtifactResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.CreateArtifactResponse other) { - if (other == datacatalog.Datacatalog.CreateArtifactResponse.getDefaultInstance()) return this; - 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 { - datacatalog.Datacatalog.CreateArtifactResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.CreateArtifactResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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:datacatalog.CreateArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.CreateArtifactResponse) - private static final datacatalog.Datacatalog.CreateArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.CreateArtifactResponse(); - } - - public static datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateArtifactResponse(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 datacatalog.Datacatalog.CreateArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddTagRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.AddTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.Tag tag = 1; - */ - boolean hasTag(); - /** - * .datacatalog.Tag tag = 1; - */ - datacatalog.Datacatalog.Tag getTag(); - /** - * .datacatalog.Tag tag = 1; - */ - datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder(); - } - /** - *
-   * Request message for tagging an Artifact.
-   * 
- * - * Protobuf type {@code datacatalog.AddTagRequest} - */ - public static final class AddTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.AddTagRequest) - AddTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddTagRequest.newBuilder() to construct. - private AddTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddTagRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddTagRequest( - 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: { - datacatalog.Datacatalog.Tag.Builder subBuilder = null; - if (tag_ != null) { - subBuilder = tag_.toBuilder(); - } - tag_ = input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tag_); - tag_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); - } - - public static final int TAG_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Tag tag_; - /** - * .datacatalog.Tag tag = 1; - */ - public boolean hasTag() { - return tag_ != null; - } - /** - * .datacatalog.Tag tag = 1; - */ - public datacatalog.Datacatalog.Tag getTag() { - return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; - } - /** - * .datacatalog.Tag tag = 1; - */ - public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { - return getTag(); - } - - 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 (tag_ != null) { - output.writeMessage(1, getTag()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTag()); - } - 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 datacatalog.Datacatalog.AddTagRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.AddTagRequest other = (datacatalog.Datacatalog.AddTagRequest) obj; - - if (hasTag() != other.hasTag()) return false; - if (hasTag()) { - if (!getTag() - .equals(other.getTag())) 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 (hasTag()) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.AddTagRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagRequest 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 datacatalog.Datacatalog.AddTagRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagRequest 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 datacatalog.Datacatalog.AddTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagRequest 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(datacatalog.Datacatalog.AddTagRequest 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; - } - /** - *
-     * Request message for tagging an Artifact.
-     * 
- * - * Protobuf type {@code datacatalog.AddTagRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.AddTagRequest) - datacatalog.Datacatalog.AddTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.AddTagRequest.class, datacatalog.Datacatalog.AddTagRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.AddTagRequest.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 (tagBuilder_ == null) { - tag_ = null; - } else { - tag_ = null; - tagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.AddTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagRequest build() { - datacatalog.Datacatalog.AddTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagRequest buildPartial() { - datacatalog.Datacatalog.AddTagRequest result = new datacatalog.Datacatalog.AddTagRequest(this); - if (tagBuilder_ == null) { - result.tag_ = tag_; - } else { - result.tag_ = tagBuilder_.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 datacatalog.Datacatalog.AddTagRequest) { - return mergeFrom((datacatalog.Datacatalog.AddTagRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.AddTagRequest other) { - if (other == datacatalog.Datacatalog.AddTagRequest.getDefaultInstance()) return this; - if (other.hasTag()) { - mergeTag(other.getTag()); - } - 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 { - datacatalog.Datacatalog.AddTagRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.AddTagRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Tag tag_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagBuilder_; - /** - * .datacatalog.Tag tag = 1; - */ - public boolean hasTag() { - return tagBuilder_ != null || tag_ != null; - } - /** - * .datacatalog.Tag tag = 1; - */ - public datacatalog.Datacatalog.Tag getTag() { - if (tagBuilder_ == null) { - return tag_ == null ? datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; - } else { - return tagBuilder_.getMessage(); - } - } - /** - * .datacatalog.Tag tag = 1; - */ - public Builder setTag(datacatalog.Datacatalog.Tag value) { - if (tagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tag_ = value; - onChanged(); - } else { - tagBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Tag tag = 1; - */ - public Builder setTag( - datacatalog.Datacatalog.Tag.Builder builderForValue) { - if (tagBuilder_ == null) { - tag_ = builderForValue.build(); - onChanged(); - } else { - tagBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Tag tag = 1; - */ - public Builder mergeTag(datacatalog.Datacatalog.Tag value) { - if (tagBuilder_ == null) { - if (tag_ != null) { - tag_ = - datacatalog.Datacatalog.Tag.newBuilder(tag_).mergeFrom(value).buildPartial(); - } else { - tag_ = value; - } - onChanged(); - } else { - tagBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Tag tag = 1; - */ - public Builder clearTag() { - if (tagBuilder_ == null) { - tag_ = null; - onChanged(); - } else { - tag_ = null; - tagBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Tag tag = 1; - */ - public datacatalog.Datacatalog.Tag.Builder getTagBuilder() { - - onChanged(); - return getTagFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Tag tag = 1; - */ - public datacatalog.Datacatalog.TagOrBuilder getTagOrBuilder() { - if (tagBuilder_ != null) { - return tagBuilder_.getMessageOrBuilder(); - } else { - return tag_ == null ? - datacatalog.Datacatalog.Tag.getDefaultInstance() : tag_; - } - } - /** - * .datacatalog.Tag tag = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> - getTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( - getTag(), - getParentForChildren(), - isClean()); - tag_ = null; - } - return tagBuilder_; - } - @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:datacatalog.AddTagRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.AddTagRequest) - private static final datacatalog.Datacatalog.AddTagRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagRequest(); - } - - public static datacatalog.Datacatalog.AddTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddTagRequest(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 datacatalog.Datacatalog.AddTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddTagResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.AddTagResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response message for tagging an Artifact.
-   * 
- * - * Protobuf type {@code datacatalog.AddTagResponse} - */ - public static final class AddTagResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.AddTagResponse) - AddTagResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddTagResponse.newBuilder() to construct. - private AddTagResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddTagResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddTagResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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 datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 datacatalog.Datacatalog.AddTagResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.AddTagResponse other = (datacatalog.Datacatalog.AddTagResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.AddTagResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.AddTagResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagResponse 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 datacatalog.Datacatalog.AddTagResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagResponse 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 datacatalog.Datacatalog.AddTagResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.AddTagResponse 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(datacatalog.Datacatalog.AddTagResponse 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; - } - /** - *
-     * Response message for tagging an Artifact.
-     * 
- * - * Protobuf type {@code datacatalog.AddTagResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.AddTagResponse) - datacatalog.Datacatalog.AddTagResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.AddTagResponse.class, datacatalog.Datacatalog.AddTagResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.AddTagResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_AddTagResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.AddTagResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagResponse build() { - datacatalog.Datacatalog.AddTagResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.AddTagResponse buildPartial() { - datacatalog.Datacatalog.AddTagResponse result = new datacatalog.Datacatalog.AddTagResponse(this); - 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 datacatalog.Datacatalog.AddTagResponse) { - return mergeFrom((datacatalog.Datacatalog.AddTagResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.AddTagResponse other) { - if (other == datacatalog.Datacatalog.AddTagResponse.getDefaultInstance()) return this; - 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 { - datacatalog.Datacatalog.AddTagResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.AddTagResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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:datacatalog.AddTagResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.AddTagResponse) - private static final datacatalog.Datacatalog.AddTagResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.AddTagResponse(); - } - - public static datacatalog.Datacatalog.AddTagResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddTagResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddTagResponse(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 datacatalog.Datacatalog.AddTagResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListArtifactsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - boolean hasDataset(); - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - boolean hasFilter(); - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - datacatalog.Datacatalog.FilterExpression getFilter(); - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); - - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - boolean hasPagination(); - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - datacatalog.Datacatalog.PaginationOptions getPagination(); - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * List the artifacts that belong to the Dataset, optionally filtered using filtered expression.
-   * 
- * - * Protobuf type {@code datacatalog.ListArtifactsRequest} - */ - public static final class ListArtifactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsRequest) - ListArtifactsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListArtifactsRequest.newBuilder() to construct. - private ListArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListArtifactsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListArtifactsRequest( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - *
-     * Use a datasetID for which you want to retrieve the artifacts
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - public static final int FILTER_FIELD_NUMBER = 2; - private datacatalog.Datacatalog.FilterExpression filter_; - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public boolean hasFilter() { - return filter_ != null; - } - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public datacatalog.Datacatalog.FilterExpression getFilter() { - return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - public static final int PAGINATION_FIELD_NUMBER = 3; - private datacatalog.Datacatalog.PaginationOptions pagination_; - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public datacatalog.Datacatalog.PaginationOptions getPagination() { - return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination options to get a page of artifacts
-     * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - if (filter_ != null) { - output.writeMessage(2, getFilter()); - } - if (pagination_ != null) { - output.writeMessage(3, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilter()); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPagination()); - } - 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 datacatalog.Datacatalog.ListArtifactsRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ListArtifactsRequest other = (datacatalog.Datacatalog.ListArtifactsRequest) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; - } - if (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter() - .equals(other.getFilter())) return false; - } - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) 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 (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - if (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsRequest 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 datacatalog.Datacatalog.ListArtifactsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsRequest 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 datacatalog.Datacatalog.ListArtifactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsRequest 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(datacatalog.Datacatalog.ListArtifactsRequest 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; - } - /** - *
-     * List the artifacts that belong to the Dataset, optionally filtered using filtered expression.
-     * 
- * - * Protobuf type {@code datacatalog.ListArtifactsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsRequest) - datacatalog.Datacatalog.ListArtifactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListArtifactsRequest.class, datacatalog.Datacatalog.ListArtifactsRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ListArtifactsRequest.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 (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - if (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsRequest build() { - datacatalog.Datacatalog.ListArtifactsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsRequest buildPartial() { - datacatalog.Datacatalog.ListArtifactsRequest result = new datacatalog.Datacatalog.ListArtifactsRequest(this); - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.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 datacatalog.Datacatalog.ListArtifactsRequest) { - return mergeFrom((datacatalog.Datacatalog.ListArtifactsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsRequest other) { - if (other == datacatalog.Datacatalog.ListArtifactsRequest.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - 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 { - datacatalog.Datacatalog.ListArtifactsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ListArtifactsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - *
-       * Use a datasetID for which you want to retrieve the artifacts
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - - private datacatalog.Datacatalog.FilterExpression filter_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public datacatalog.Datacatalog.FilterExpression getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public Builder setFilter( - datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - - private datacatalog.Datacatalog.PaginationOptions pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public datacatalog.Datacatalog.PaginationOptions getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public Builder setPagination( - datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination options to get a page of artifacts
-       * 
- * - * .datacatalog.PaginationOptions pagination = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @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:datacatalog.ListArtifactsRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsRequest) - private static final datacatalog.Datacatalog.ListArtifactsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsRequest(); - } - - public static datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListArtifactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactsRequest(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 datacatalog.Datacatalog.ListArtifactsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListArtifactsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ListArtifactsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - java.util.List - getArtifactsList(); - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - datacatalog.Datacatalog.Artifact getArtifacts(int index); - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - int getArtifactsCount(); - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - java.util.List - getArtifactsOrBuilderList(); - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( - int index); - - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - java.lang.String getNextToken(); - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - com.google.protobuf.ByteString - getNextTokenBytes(); - } - /** - *
-   * Response to list artifacts
-   * 
- * - * Protobuf type {@code datacatalog.ListArtifactsResponse} - */ - public static final class ListArtifactsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ListArtifactsResponse) - ListArtifactsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListArtifactsResponse.newBuilder() to construct. - private ListArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListArtifactsResponse() { - artifacts_ = java.util.Collections.emptyList(); - nextToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListArtifactsResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - artifacts_.add( - input.readMessage(datacatalog.Datacatalog.Artifact.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextToken_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); - } - - private int bitField0_; - public static final int ARTIFACTS_FIELD_NUMBER = 1; - private java.util.List artifacts_; - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public java.util.List getArtifactsList() { - return artifacts_; - } - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - return artifacts_; - } - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public int getArtifactsCount() { - return artifacts_.size(); - } - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifacts(int index) { - return artifacts_.get(index); - } - /** - *
-     * The list of artifacts
-     * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - return artifacts_.get(index); - } - - public static final int NEXT_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextToken_; - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - public java.lang.String getNextToken() { - java.lang.Object ref = nextToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextToken_ = s; - return s; - } - } - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - public com.google.protobuf.ByteString - getNextTokenBytes() { - java.lang.Object ref = nextToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < artifacts_.size(); i++) { - output.writeMessage(1, artifacts_.get(i)); - } - if (!getNextTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < artifacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, artifacts_.get(i)); - } - if (!getNextTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); - } - 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 datacatalog.Datacatalog.ListArtifactsResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ListArtifactsResponse other = (datacatalog.Datacatalog.ListArtifactsResponse) obj; - - if (!getArtifactsList() - .equals(other.getArtifactsList())) return false; - if (!getNextToken() - .equals(other.getNextToken())) 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 (getArtifactsCount() > 0) { - hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactsList().hashCode(); - } - hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListArtifactsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsResponse 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 datacatalog.Datacatalog.ListArtifactsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsResponse 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 datacatalog.Datacatalog.ListArtifactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListArtifactsResponse 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(datacatalog.Datacatalog.ListArtifactsResponse 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; - } - /** - *
-     * Response to list artifacts
-     * 
- * - * Protobuf type {@code datacatalog.ListArtifactsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ListArtifactsResponse) - datacatalog.Datacatalog.ListArtifactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListArtifactsResponse.class, datacatalog.Datacatalog.ListArtifactsResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ListArtifactsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - artifactsBuilder_.clear(); - } - nextToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListArtifactsResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsResponse build() { - datacatalog.Datacatalog.ListArtifactsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListArtifactsResponse buildPartial() { - datacatalog.Datacatalog.ListArtifactsResponse result = new datacatalog.Datacatalog.ListArtifactsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (artifactsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.artifacts_ = artifacts_; - } else { - result.artifacts_ = artifactsBuilder_.build(); - } - result.nextToken_ = nextToken_; - result.bitField0_ = to_bitField0_; - 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 datacatalog.Datacatalog.ListArtifactsResponse) { - return mergeFrom((datacatalog.Datacatalog.ListArtifactsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ListArtifactsResponse other) { - if (other == datacatalog.Datacatalog.ListArtifactsResponse.getDefaultInstance()) return this; - if (artifactsBuilder_ == null) { - if (!other.artifacts_.isEmpty()) { - if (artifacts_.isEmpty()) { - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArtifactsIsMutable(); - artifacts_.addAll(other.artifacts_); - } - onChanged(); - } - } else { - if (!other.artifacts_.isEmpty()) { - if (artifactsBuilder_.isEmpty()) { - artifactsBuilder_.dispose(); - artifactsBuilder_ = null; - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - artifactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactsFieldBuilder() : null; - } else { - artifactsBuilder_.addAllMessages(other.artifacts_); - } - } - } - if (!other.getNextToken().isEmpty()) { - nextToken_ = other.nextToken_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.ListArtifactsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ListArtifactsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List artifacts_ = - java.util.Collections.emptyList(); - private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(artifacts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> artifactsBuilder_; - - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public java.util.List getArtifactsList() { - if (artifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifacts_); - } else { - return artifactsBuilder_.getMessageList(); - } - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public int getArtifactsCount() { - if (artifactsBuilder_ == null) { - return artifacts_.size(); - } else { - return artifactsBuilder_.getCount(); - } - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.Artifact getArtifacts(int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessage(index); - } - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, datacatalog.Datacatalog.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.set(index, value); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder addArtifacts(datacatalog.Datacatalog.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(value); - onChanged(); - } else { - artifactsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder addArtifacts( - int index, datacatalog.Datacatalog.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(index, value); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder addArtifacts( - datacatalog.Datacatalog.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder addArtifacts( - int index, datacatalog.Datacatalog.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder addAllArtifacts( - java.lang.Iterable values) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifacts_); - onChanged(); - } else { - artifactsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder clearArtifacts() { - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - artifactsBuilder_.clear(); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public Builder removeArtifacts(int index) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.remove(index); - onChanged(); - } else { - artifactsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.Artifact.Builder getArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().getBuilder(index); - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); } else { - return artifactsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - if (artifactsBuilder_ != null) { - return artifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifacts_); - } - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder() { - return getArtifactsFieldBuilder().addBuilder( - datacatalog.Datacatalog.Artifact.getDefaultInstance()); - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public datacatalog.Datacatalog.Artifact.Builder addArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.Artifact.getDefaultInstance()); - } - /** - *
-       * The list of artifacts
-       * 
- * - * repeated .datacatalog.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsBuilderList() { - return getArtifactsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder> - getArtifactsFieldBuilder() { - if (artifactsBuilder_ == null) { - artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Artifact, datacatalog.Datacatalog.Artifact.Builder, datacatalog.Datacatalog.ArtifactOrBuilder>( - artifacts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - artifacts_ = null; - } - return artifactsBuilder_; - } - - private java.lang.Object nextToken_ = ""; - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public java.lang.String getNextToken() { - java.lang.Object ref = nextToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public com.google.protobuf.ByteString - getNextTokenBytes() { - java.lang.Object ref = nextToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder setNextToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextToken_ = value; - onChanged(); - return this; - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder clearNextToken() { - - nextToken_ = getDefaultInstance().getNextToken(); - onChanged(); - return this; - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder setNextTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextToken_ = value; - onChanged(); - return this; - } - @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:datacatalog.ListArtifactsResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ListArtifactsResponse) - private static final datacatalog.Datacatalog.ListArtifactsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListArtifactsResponse(); - } - - public static datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListArtifactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListArtifactsResponse(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 datacatalog.Datacatalog.ListArtifactsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListDatasetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - boolean hasFilter(); - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - datacatalog.Datacatalog.FilterExpression getFilter(); - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder(); - - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - boolean hasPagination(); - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - datacatalog.Datacatalog.PaginationOptions getPagination(); - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder(); - } - /** - *
-   * List the datasets for the given query
-   * 
- * - * Protobuf type {@code datacatalog.ListDatasetsRequest} - */ - public static final class ListDatasetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsRequest) - ListDatasetsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDatasetsRequest.newBuilder() to construct. - private ListDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDatasetsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListDatasetsRequest( - 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: { - datacatalog.Datacatalog.FilterExpression.Builder subBuilder = null; - if (filter_ != null) { - subBuilder = filter_.toBuilder(); - } - filter_ = input.readMessage(datacatalog.Datacatalog.FilterExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filter_); - filter_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - datacatalog.Datacatalog.PaginationOptions.Builder subBuilder = null; - if (pagination_ != null) { - subBuilder = pagination_.toBuilder(); - } - pagination_ = input.readMessage(datacatalog.Datacatalog.PaginationOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(pagination_); - pagination_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); - } - - public static final int FILTER_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.FilterExpression filter_; - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public boolean hasFilter() { - return filter_ != null; - } - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public datacatalog.Datacatalog.FilterExpression getFilter() { - return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } - /** - *
-     * Apply the filter expression to this query
-     * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { - return getFilter(); - } - - public static final int PAGINATION_FIELD_NUMBER = 2; - private datacatalog.Datacatalog.PaginationOptions pagination_; - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public boolean hasPagination() { - return pagination_ != null; - } - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public datacatalog.Datacatalog.PaginationOptions getPagination() { - return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } - /** - *
-     * Pagination options to get a page of datasets
-     * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { - return getPagination(); - } - - 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 (filter_ != null) { - output.writeMessage(1, getFilter()); - } - if (pagination_ != null) { - output.writeMessage(2, getPagination()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFilter()); - } - if (pagination_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPagination()); - } - 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 datacatalog.Datacatalog.ListDatasetsRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ListDatasetsRequest other = (datacatalog.Datacatalog.ListDatasetsRequest) obj; - - if (hasFilter() != other.hasFilter()) return false; - if (hasFilter()) { - if (!getFilter() - .equals(other.getFilter())) return false; - } - if (hasPagination() != other.hasPagination()) return false; - if (hasPagination()) { - if (!getPagination() - .equals(other.getPagination())) 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 (hasFilter()) { - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - } - if (hasPagination()) { - hash = (37 * hash) + PAGINATION_FIELD_NUMBER; - hash = (53 * hash) + getPagination().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsRequest 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 datacatalog.Datacatalog.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsRequest 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 datacatalog.Datacatalog.ListDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsRequest 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(datacatalog.Datacatalog.ListDatasetsRequest 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; - } - /** - *
-     * List the datasets for the given query
-     * 
- * - * Protobuf type {@code datacatalog.ListDatasetsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsRequest) - datacatalog.Datacatalog.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListDatasetsRequest.class, datacatalog.Datacatalog.ListDatasetsRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ListDatasetsRequest.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 (filterBuilder_ == null) { - filter_ = null; - } else { - filter_ = null; - filterBuilder_ = null; - } - if (paginationBuilder_ == null) { - pagination_ = null; - } else { - pagination_ = null; - paginationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsRequest build() { - datacatalog.Datacatalog.ListDatasetsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsRequest buildPartial() { - datacatalog.Datacatalog.ListDatasetsRequest result = new datacatalog.Datacatalog.ListDatasetsRequest(this); - if (filterBuilder_ == null) { - result.filter_ = filter_; - } else { - result.filter_ = filterBuilder_.build(); - } - if (paginationBuilder_ == null) { - result.pagination_ = pagination_; - } else { - result.pagination_ = paginationBuilder_.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 datacatalog.Datacatalog.ListDatasetsRequest) { - return mergeFrom((datacatalog.Datacatalog.ListDatasetsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsRequest other) { - if (other == datacatalog.Datacatalog.ListDatasetsRequest.getDefaultInstance()) return this; - if (other.hasFilter()) { - mergeFilter(other.getFilter()); - } - if (other.hasPagination()) { - mergePagination(other.getPagination()); - } - 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 { - datacatalog.Datacatalog.ListDatasetsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ListDatasetsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.FilterExpression filter_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> filterBuilder_; - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public boolean hasFilter() { - return filterBuilder_ != null || filter_ != null; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public datacatalog.Datacatalog.FilterExpression getFilter() { - if (filterBuilder_ == null) { - return filter_ == null ? datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } else { - return filterBuilder_.getMessage(); - } - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public Builder setFilter(datacatalog.Datacatalog.FilterExpression value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public Builder setFilter( - datacatalog.Datacatalog.FilterExpression.Builder builderForValue) { - if (filterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public Builder mergeFilter(datacatalog.Datacatalog.FilterExpression value) { - if (filterBuilder_ == null) { - if (filter_ != null) { - filter_ = - datacatalog.Datacatalog.FilterExpression.newBuilder(filter_).mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - filterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - filter_ = null; - onChanged(); - } else { - filter_ = null; - filterBuilder_ = null; - } - - return this; - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public datacatalog.Datacatalog.FilterExpression.Builder getFilterBuilder() { - - onChanged(); - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - public datacatalog.Datacatalog.FilterExpressionOrBuilder getFilterOrBuilder() { - if (filterBuilder_ != null) { - return filterBuilder_.getMessageOrBuilder(); - } else { - return filter_ == null ? - datacatalog.Datacatalog.FilterExpression.getDefaultInstance() : filter_; - } - } - /** - *
-       * Apply the filter expression to this query
-       * 
- * - * .datacatalog.FilterExpression filter = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.FilterExpression, datacatalog.Datacatalog.FilterExpression.Builder, datacatalog.Datacatalog.FilterExpressionOrBuilder>( - getFilter(), - getParentForChildren(), - isClean()); - filter_ = null; - } - return filterBuilder_; - } - - private datacatalog.Datacatalog.PaginationOptions pagination_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> paginationBuilder_; - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public boolean hasPagination() { - return paginationBuilder_ != null || pagination_ != null; - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public datacatalog.Datacatalog.PaginationOptions getPagination() { - if (paginationBuilder_ == null) { - return pagination_ == null ? datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } else { - return paginationBuilder_.getMessage(); - } - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public Builder setPagination(datacatalog.Datacatalog.PaginationOptions value) { - if (paginationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pagination_ = value; - onChanged(); - } else { - paginationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public Builder setPagination( - datacatalog.Datacatalog.PaginationOptions.Builder builderForValue) { - if (paginationBuilder_ == null) { - pagination_ = builderForValue.build(); - onChanged(); - } else { - paginationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public Builder mergePagination(datacatalog.Datacatalog.PaginationOptions value) { - if (paginationBuilder_ == null) { - if (pagination_ != null) { - pagination_ = - datacatalog.Datacatalog.PaginationOptions.newBuilder(pagination_).mergeFrom(value).buildPartial(); - } else { - pagination_ = value; - } - onChanged(); - } else { - paginationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public Builder clearPagination() { - if (paginationBuilder_ == null) { - pagination_ = null; - onChanged(); - } else { - pagination_ = null; - paginationBuilder_ = null; - } - - return this; - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public datacatalog.Datacatalog.PaginationOptions.Builder getPaginationBuilder() { - - onChanged(); - return getPaginationFieldBuilder().getBuilder(); - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - public datacatalog.Datacatalog.PaginationOptionsOrBuilder getPaginationOrBuilder() { - if (paginationBuilder_ != null) { - return paginationBuilder_.getMessageOrBuilder(); - } else { - return pagination_ == null ? - datacatalog.Datacatalog.PaginationOptions.getDefaultInstance() : pagination_; - } - } - /** - *
-       * Pagination options to get a page of datasets
-       * 
- * - * .datacatalog.PaginationOptions pagination = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder> - getPaginationFieldBuilder() { - if (paginationBuilder_ == null) { - paginationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PaginationOptions, datacatalog.Datacatalog.PaginationOptions.Builder, datacatalog.Datacatalog.PaginationOptionsOrBuilder>( - getPagination(), - getParentForChildren(), - isClean()); - pagination_ = null; - } - return paginationBuilder_; - } - @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:datacatalog.ListDatasetsRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsRequest) - private static final datacatalog.Datacatalog.ListDatasetsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsRequest(); - } - - public static datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsRequest(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 datacatalog.Datacatalog.ListDatasetsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListDatasetsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ListDatasetsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - java.util.List - getDatasetsList(); - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - datacatalog.Datacatalog.Dataset getDatasets(int index); - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - int getDatasetsCount(); - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - java.util.List - getDatasetsOrBuilderList(); - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( - int index); - - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - java.lang.String getNextToken(); - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - com.google.protobuf.ByteString - getNextTokenBytes(); - } - /** - *
-   * List the datasets response with token for next pagination
-   * 
- * - * Protobuf type {@code datacatalog.ListDatasetsResponse} - */ - public static final class ListDatasetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ListDatasetsResponse) - ListDatasetsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListDatasetsResponse.newBuilder() to construct. - private ListDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDatasetsResponse() { - datasets_ = java.util.Collections.emptyList(); - nextToken_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListDatasetsResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - datasets_.add( - input.readMessage(datacatalog.Datacatalog.Dataset.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextToken_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - datasets_ = java.util.Collections.unmodifiableList(datasets_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); - } - - private int bitField0_; - public static final int DATASETS_FIELD_NUMBER = 1; - private java.util.List datasets_; - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public java.util.List getDatasetsList() { - return datasets_; - } - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public java.util.List - getDatasetsOrBuilderList() { - return datasets_; - } - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public int getDatasetsCount() { - return datasets_.size(); - } - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.Dataset getDatasets(int index) { - return datasets_.get(index); - } - /** - *
-     * The list of datasets
-     * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( - int index) { - return datasets_.get(index); - } - - public static final int NEXT_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextToken_; - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - public java.lang.String getNextToken() { - java.lang.Object ref = nextToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextToken_ = s; - return s; - } - } - /** - *
-     * Token to use to request the next page, pass this into the next requests PaginationOptions
-     * 
- * - * string next_token = 2; - */ - public com.google.protobuf.ByteString - getNextTokenBytes() { - java.lang.Object ref = nextToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < datasets_.size(); i++) { - output.writeMessage(1, datasets_.get(i)); - } - if (!getNextTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < datasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, datasets_.get(i)); - } - if (!getNextTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextToken_); - } - 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 datacatalog.Datacatalog.ListDatasetsResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ListDatasetsResponse other = (datacatalog.Datacatalog.ListDatasetsResponse) obj; - - if (!getDatasetsList() - .equals(other.getDatasetsList())) return false; - if (!getNextToken() - .equals(other.getNextToken())) 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 (getDatasetsCount() > 0) { - hash = (37 * hash) + DATASETS_FIELD_NUMBER; - hash = (53 * hash) + getDatasetsList().hashCode(); - } - hash = (37 * hash) + NEXT_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ListDatasetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsResponse 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 datacatalog.Datacatalog.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsResponse 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 datacatalog.Datacatalog.ListDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ListDatasetsResponse 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(datacatalog.Datacatalog.ListDatasetsResponse 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; - } - /** - *
-     * List the datasets response with token for next pagination
-     * 
- * - * Protobuf type {@code datacatalog.ListDatasetsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ListDatasetsResponse) - datacatalog.Datacatalog.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ListDatasetsResponse.class, datacatalog.Datacatalog.ListDatasetsResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ListDatasetsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDatasetsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (datasetsBuilder_ == null) { - datasets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - datasetsBuilder_.clear(); - } - nextToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ListDatasetsResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsResponse build() { - datacatalog.Datacatalog.ListDatasetsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ListDatasetsResponse buildPartial() { - datacatalog.Datacatalog.ListDatasetsResponse result = new datacatalog.Datacatalog.ListDatasetsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (datasetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - datasets_ = java.util.Collections.unmodifiableList(datasets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.datasets_ = datasets_; - } else { - result.datasets_ = datasetsBuilder_.build(); - } - result.nextToken_ = nextToken_; - result.bitField0_ = to_bitField0_; - 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 datacatalog.Datacatalog.ListDatasetsResponse) { - return mergeFrom((datacatalog.Datacatalog.ListDatasetsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ListDatasetsResponse other) { - if (other == datacatalog.Datacatalog.ListDatasetsResponse.getDefaultInstance()) return this; - if (datasetsBuilder_ == null) { - if (!other.datasets_.isEmpty()) { - if (datasets_.isEmpty()) { - datasets_ = other.datasets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDatasetsIsMutable(); - datasets_.addAll(other.datasets_); - } - onChanged(); - } - } else { - if (!other.datasets_.isEmpty()) { - if (datasetsBuilder_.isEmpty()) { - datasetsBuilder_.dispose(); - datasetsBuilder_ = null; - datasets_ = other.datasets_; - bitField0_ = (bitField0_ & ~0x00000001); - datasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDatasetsFieldBuilder() : null; - } else { - datasetsBuilder_.addAllMessages(other.datasets_); - } - } - } - if (!other.getNextToken().isEmpty()) { - nextToken_ = other.nextToken_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.ListDatasetsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ListDatasetsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List datasets_ = - java.util.Collections.emptyList(); - private void ensureDatasetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(datasets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> datasetsBuilder_; - - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public java.util.List getDatasetsList() { - if (datasetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(datasets_); - } else { - return datasetsBuilder_.getMessageList(); - } - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public int getDatasetsCount() { - if (datasetsBuilder_ == null) { - return datasets_.size(); - } else { - return datasetsBuilder_.getCount(); - } - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.Dataset getDatasets(int index) { - if (datasetsBuilder_ == null) { - return datasets_.get(index); - } else { - return datasetsBuilder_.getMessage(index); - } - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder setDatasets( - int index, datacatalog.Datacatalog.Dataset value) { - if (datasetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDatasetsIsMutable(); - datasets_.set(index, value); - onChanged(); - } else { - datasetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder setDatasets( - int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { - if (datasetsBuilder_ == null) { - ensureDatasetsIsMutable(); - datasets_.set(index, builderForValue.build()); - onChanged(); - } else { - datasetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder addDatasets(datacatalog.Datacatalog.Dataset value) { - if (datasetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDatasetsIsMutable(); - datasets_.add(value); - onChanged(); - } else { - datasetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder addDatasets( - int index, datacatalog.Datacatalog.Dataset value) { - if (datasetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDatasetsIsMutable(); - datasets_.add(index, value); - onChanged(); - } else { - datasetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder addDatasets( - datacatalog.Datacatalog.Dataset.Builder builderForValue) { - if (datasetsBuilder_ == null) { - ensureDatasetsIsMutable(); - datasets_.add(builderForValue.build()); - onChanged(); - } else { - datasetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder addDatasets( - int index, datacatalog.Datacatalog.Dataset.Builder builderForValue) { - if (datasetsBuilder_ == null) { - ensureDatasetsIsMutable(); - datasets_.add(index, builderForValue.build()); - onChanged(); - } else { - datasetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder addAllDatasets( - java.lang.Iterable values) { - if (datasetsBuilder_ == null) { - ensureDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, datasets_); - onChanged(); - } else { - datasetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder clearDatasets() { - if (datasetsBuilder_ == null) { - datasets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - datasetsBuilder_.clear(); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public Builder removeDatasets(int index) { - if (datasetsBuilder_ == null) { - ensureDatasetsIsMutable(); - datasets_.remove(index); - onChanged(); - } else { - datasetsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.Dataset.Builder getDatasetsBuilder( - int index) { - return getDatasetsFieldBuilder().getBuilder(index); - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.DatasetOrBuilder getDatasetsOrBuilder( - int index) { - if (datasetsBuilder_ == null) { - return datasets_.get(index); } else { - return datasetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public java.util.List - getDatasetsOrBuilderList() { - if (datasetsBuilder_ != null) { - return datasetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(datasets_); - } - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder().addBuilder( - datacatalog.Datacatalog.Dataset.getDefaultInstance()); - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public datacatalog.Datacatalog.Dataset.Builder addDatasetsBuilder( - int index) { - return getDatasetsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.Dataset.getDefaultInstance()); - } - /** - *
-       * The list of datasets
-       * 
- * - * repeated .datacatalog.Dataset datasets = 1; - */ - public java.util.List - getDatasetsBuilderList() { - return getDatasetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder> - getDatasetsFieldBuilder() { - if (datasetsBuilder_ == null) { - datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Dataset, datacatalog.Datacatalog.Dataset.Builder, datacatalog.Datacatalog.DatasetOrBuilder>( - datasets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - datasets_ = null; - } - return datasetsBuilder_; - } - - private java.lang.Object nextToken_ = ""; - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public java.lang.String getNextToken() { - java.lang.Object ref = nextToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public com.google.protobuf.ByteString - getNextTokenBytes() { - java.lang.Object ref = nextToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder setNextToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextToken_ = value; - onChanged(); - return this; - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder clearNextToken() { - - nextToken_ = getDefaultInstance().getNextToken(); - onChanged(); - return this; - } - /** - *
-       * Token to use to request the next page, pass this into the next requests PaginationOptions
-       * 
- * - * string next_token = 2; - */ - public Builder setNextTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextToken_ = value; - onChanged(); - return this; - } - @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:datacatalog.ListDatasetsResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ListDatasetsResponse) - private static final datacatalog.Datacatalog.ListDatasetsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ListDatasetsResponse(); - } - - public static datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDatasetsResponse(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 datacatalog.Datacatalog.ListDatasetsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UpdateArtifactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - boolean hasDataset(); - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - - /** - * string artifact_id = 2; - */ - java.lang.String getArtifactId(); - /** - * string artifact_id = 2; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - - /** - * string tag_name = 3; - */ - java.lang.String getTagName(); - /** - * string tag_name = 3; - */ - com.google.protobuf.ByteString - getTagNameBytes(); - - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - java.util.List - getDataList(); - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - datacatalog.Datacatalog.ArtifactData getData(int index); - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - int getDataCount(); - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index); - - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - boolean hasMetadata(); - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - datacatalog.Datacatalog.Metadata getMetadata(); - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); - - public datacatalog.Datacatalog.UpdateArtifactRequest.QueryHandleCase getQueryHandleCase(); - } - /** - *
-   * Request message for updating an Artifact and overwriting its associated ArtifactData.
-   * 
- * - * Protobuf type {@code datacatalog.UpdateArtifactRequest} - */ - public static final class UpdateArtifactRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactRequest) - UpdateArtifactRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateArtifactRequest.newBuilder() to construct. - private UpdateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateArtifactRequest() { - data_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateArtifactRequest( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - queryHandleCase_ = 2; - queryHandle_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - queryHandleCase_ = 3; - queryHandle_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - data_.add( - input.readMessage(datacatalog.Datacatalog.ArtifactData.parser(), extensionRegistry)); - break; - } - case 42: { - datacatalog.Datacatalog.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); - } - - private int bitField0_; - private int queryHandleCase_ = 0; - private java.lang.Object queryHandle_; - public enum QueryHandleCase - implements com.google.protobuf.Internal.EnumLite { - ARTIFACT_ID(2), - TAG_NAME(3), - QUERYHANDLE_NOT_SET(0); - private final int value; - private QueryHandleCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static QueryHandleCase valueOf(int value) { - return forNumber(value); - } - - public static QueryHandleCase forNumber(int value) { - switch (value) { - case 2: return ARTIFACT_ID; - case 3: return TAG_NAME; - case 0: return QUERYHANDLE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public QueryHandleCase - getQueryHandleCase() { - return QueryHandleCase.forNumber( - queryHandleCase_); - } - - public static final int DATASET_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - *
-     * ID of dataset the artifact is associated with
-     * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 2; - /** - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 2) { - queryHandle_ = s; - } - return s; - } - } - /** - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 2) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_NAME_FIELD_NUMBER = 3; - /** - * string tag_name = 3; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 3) { - queryHandle_ = s; - } - return s; - } - } - /** - * string tag_name = 3; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 3) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FIELD_NUMBER = 4; - private java.util.List data_; - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public java.util.List getDataList() { - return data_; - } - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public int getDataCount() { - return data_.size(); - } - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactData getData(int index) { - return data_.get(index); - } - /** - *
-     * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-     * ArtifactData entries will be removed from the underlying blob storage and database.
-     * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 5; - private datacatalog.Datacatalog.Metadata metadata_; - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-     * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (dataset_ != null) { - output.writeMessage(1, getDataset()); - } - if (queryHandleCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, queryHandle_); - } - if (queryHandleCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, queryHandle_); - } - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(4, data_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(5, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataset()); - } - if (queryHandleCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, queryHandle_); - } - if (queryHandleCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, queryHandle_); - } - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, data_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getMetadata()); - } - 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 datacatalog.Datacatalog.UpdateArtifactRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.UpdateArtifactRequest other = (datacatalog.Datacatalog.UpdateArtifactRequest) obj; - - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; - } - if (!getDataList() - .equals(other.getDataList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getQueryHandleCase().equals(other.getQueryHandleCase())) return false; - switch (queryHandleCase_) { - case 2: - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - break; - case 3: - if (!getTagName() - .equals(other.getTagName())) 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(); - if (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - switch (queryHandleCase_) { - case 2: - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - break; - case 3: - hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTagName().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest 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 datacatalog.Datacatalog.UpdateArtifactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest 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 datacatalog.Datacatalog.UpdateArtifactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactRequest 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(datacatalog.Datacatalog.UpdateArtifactRequest 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; - } - /** - *
-     * Request message for updating an Artifact and overwriting its associated ArtifactData.
-     * 
- * - * Protobuf type {@code datacatalog.UpdateArtifactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactRequest) - datacatalog.Datacatalog.UpdateArtifactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.UpdateArtifactRequest.class, datacatalog.Datacatalog.UpdateArtifactRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.UpdateArtifactRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - dataBuilder_.clear(); - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - queryHandleCase_ = 0; - queryHandle_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactRequest build() { - datacatalog.Datacatalog.UpdateArtifactRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactRequest buildPartial() { - datacatalog.Datacatalog.UpdateArtifactRequest result = new datacatalog.Datacatalog.UpdateArtifactRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (queryHandleCase_ == 2) { - result.queryHandle_ = queryHandle_; - } - if (queryHandleCase_ == 3) { - result.queryHandle_ = queryHandle_; - } - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.queryHandleCase_ = queryHandleCase_; - 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 datacatalog.Datacatalog.UpdateArtifactRequest) { - return mergeFrom((datacatalog.Datacatalog.UpdateArtifactRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactRequest other) { - if (other == datacatalog.Datacatalog.UpdateArtifactRequest.getDefaultInstance()) return this; - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000008); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - switch (other.getQueryHandleCase()) { - case ARTIFACT_ID: { - queryHandleCase_ = 2; - queryHandle_ = other.queryHandle_; - onChanged(); - break; - } - case TAG_NAME: { - queryHandleCase_ = 3; - queryHandle_ = other.queryHandle_; - onChanged(); - break; - } - case QUERYHANDLE_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 { - datacatalog.Datacatalog.UpdateArtifactRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.UpdateArtifactRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int queryHandleCase_ = 0; - private java.lang.Object queryHandle_; - public QueryHandleCase - getQueryHandleCase() { - return QueryHandleCase.forNumber( - queryHandleCase_); - } - - public Builder clearQueryHandle() { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - *
-       * ID of dataset the artifact is associated with
-       * 
- * - * .datacatalog.DatasetID dataset = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - - /** - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 2) { - queryHandle_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 2) { - ref = queryHandle_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 2) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string artifact_id = 2; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryHandleCase_ = 2; - queryHandle_ = value; - onChanged(); - return this; - } - /** - * string artifact_id = 2; - */ - public Builder clearArtifactId() { - if (queryHandleCase_ == 2) { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - } - return this; - } - /** - * string artifact_id = 2; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queryHandleCase_ = 2; - queryHandle_ = value; - onChanged(); - return this; - } - - /** - * string tag_name = 3; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (queryHandleCase_ == 3) { - queryHandle_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag_name = 3; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (queryHandleCase_ == 3) { - ref = queryHandle_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (queryHandleCase_ == 3) { - queryHandle_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag_name = 3; - */ - public Builder setTagName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryHandleCase_ = 3; - queryHandle_ = value; - onChanged(); - return this; - } - /** - * string tag_name = 3; - */ - public Builder clearTagName() { - if (queryHandleCase_ == 3) { - queryHandleCase_ = 0; - queryHandle_ = null; - onChanged(); - } - return this; - } - /** - * string tag_name = 3; - */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - queryHandleCase_ = 3; - queryHandle_ = value; - onChanged(); - return this; - } - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; - - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder setData( - int index, datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder setData( - int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder addData(datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder addData( - int index, datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder addData( - datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder addData( - int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); - } - /** - *
-       * List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing
-       * ArtifactData entries will be removed from the underlying blob storage and database.
-       * 
- * - * repeated .datacatalog.ArtifactData data = 4; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( - data_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private datacatalog.Datacatalog.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public Builder setMetadata( - datacatalog.Datacatalog.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Update execution metadata(including execution domain, name, node, project data) when overwriting cache
-       * 
- * - * .datacatalog.Metadata metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:datacatalog.UpdateArtifactRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactRequest) - private static final datacatalog.Datacatalog.UpdateArtifactRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactRequest(); - } - - public static datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateArtifactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateArtifactRequest(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 datacatalog.Datacatalog.UpdateArtifactRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UpdateArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.UpdateArtifactResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID of the artifact updated
-     * 
- * - * string artifact_id = 1; - */ - java.lang.String getArtifactId(); - /** - *
-     * The unique ID of the artifact updated
-     * 
- * - * string artifact_id = 1; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - } - /** - *
-   * Response message for updating an Artifact.
-   * 
- * - * Protobuf type {@code datacatalog.UpdateArtifactResponse} - */ - public static final class UpdateArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.UpdateArtifactResponse) - UpdateArtifactResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use UpdateArtifactResponse.newBuilder() to construct. - private UpdateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateArtifactResponse() { - artifactId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateArtifactResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactId_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object artifactId_; - /** - *
-     * The unique ID of the artifact updated
-     * 
- * - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } - } - /** - *
-     * The unique ID of the artifact updated
-     * 
- * - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getArtifactIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifactId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getArtifactIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifactId_); - } - 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 datacatalog.Datacatalog.UpdateArtifactResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.UpdateArtifactResponse other = (datacatalog.Datacatalog.UpdateArtifactResponse) obj; - - if (!getArtifactId() - .equals(other.getArtifactId())) 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(); - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse 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 datacatalog.Datacatalog.UpdateArtifactResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse 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 datacatalog.Datacatalog.UpdateArtifactResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.UpdateArtifactResponse 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(datacatalog.Datacatalog.UpdateArtifactResponse 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; - } - /** - *
-     * Response message for updating an Artifact.
-     * 
- * - * Protobuf type {@code datacatalog.UpdateArtifactResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.UpdateArtifactResponse) - datacatalog.Datacatalog.UpdateArtifactResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.UpdateArtifactResponse.class, datacatalog.Datacatalog.UpdateArtifactResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.UpdateArtifactResponse.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(); - artifactId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_UpdateArtifactResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactResponse build() { - datacatalog.Datacatalog.UpdateArtifactResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.UpdateArtifactResponse buildPartial() { - datacatalog.Datacatalog.UpdateArtifactResponse result = new datacatalog.Datacatalog.UpdateArtifactResponse(this); - result.artifactId_ = artifactId_; - 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 datacatalog.Datacatalog.UpdateArtifactResponse) { - return mergeFrom((datacatalog.Datacatalog.UpdateArtifactResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.UpdateArtifactResponse other) { - if (other == datacatalog.Datacatalog.UpdateArtifactResponse.getDefaultInstance()) return this; - if (!other.getArtifactId().isEmpty()) { - artifactId_ = other.artifactId_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.UpdateArtifactResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.UpdateArtifactResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object artifactId_ = ""; - /** - *
-       * The unique ID of the artifact updated
-       * 
- * - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the artifact updated
-       * 
- * - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the artifact updated
-       * 
- * - * string artifact_id = 1; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the artifact updated
-       * 
- * - * string artifact_id = 1; - */ - public Builder clearArtifactId() { - - artifactId_ = getDefaultInstance().getArtifactId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the artifact updated
-       * 
- * - * string artifact_id = 1; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactId_ = value; - onChanged(); - return this; - } - @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:datacatalog.UpdateArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.UpdateArtifactResponse) - private static final datacatalog.Datacatalog.UpdateArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.UpdateArtifactResponse(); - } - - public static datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateArtifactResponse(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 datacatalog.Datacatalog.UpdateArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReservationIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReservationID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - boolean hasDatasetId(); - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - datacatalog.Datacatalog.DatasetID getDatasetId(); - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder(); - - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - java.lang.String getTagName(); - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - com.google.protobuf.ByteString - getTagNameBytes(); - } - /** - *
-   * ReservationID message that is composed of several string fields.
-   * 
- * - * Protobuf type {@code datacatalog.ReservationID} - */ - public static final class ReservationID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReservationID) - ReservationIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReservationID.newBuilder() to construct. - private ReservationID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReservationID() { - tagName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReservationID( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (datasetId_ != null) { - subBuilder = datasetId_.toBuilder(); - } - datasetId_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetId_); - datasetId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tagName_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); - } - - public static final int DATASET_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID datasetId_; - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public boolean hasDatasetId() { - return datasetId_ != null; - } - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public datacatalog.Datacatalog.DatasetID getDatasetId() { - return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; - } - /** - *
-     * The unique ID for the reserved dataset
-     * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { - return getDatasetId(); - } - - public static final int TAG_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object tagName_; - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - public java.lang.String getTagName() { - java.lang.Object ref = tagName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagName_ = s; - return s; - } - } - /** - *
-     * The specific artifact tag for the reservation
-     * 
- * - * string tag_name = 2; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = tagName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (datasetId_ != null) { - output.writeMessage(1, getDatasetId()); - } - if (!getTagNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (datasetId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDatasetId()); - } - if (!getTagNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagName_); - } - 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 datacatalog.Datacatalog.ReservationID)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ReservationID other = (datacatalog.Datacatalog.ReservationID) obj; - - if (hasDatasetId() != other.hasDatasetId()) return false; - if (hasDatasetId()) { - if (!getDatasetId() - .equals(other.getDatasetId())) return false; - } - if (!getTagName() - .equals(other.getTagName())) 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 (hasDatasetId()) { - hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; - hash = (53 * hash) + getDatasetId().hashCode(); - } - hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTagName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ReservationID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReservationID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReservationID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReservationID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReservationID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReservationID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReservationID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReservationID 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 datacatalog.Datacatalog.ReservationID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReservationID 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 datacatalog.Datacatalog.ReservationID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReservationID 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(datacatalog.Datacatalog.ReservationID 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; - } - /** - *
-     * ReservationID message that is composed of several string fields.
-     * 
- * - * Protobuf type {@code datacatalog.ReservationID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReservationID) - datacatalog.Datacatalog.ReservationIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReservationID.class, datacatalog.Datacatalog.ReservationID.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ReservationID.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 (datasetIdBuilder_ == null) { - datasetId_ = null; - } else { - datasetId_ = null; - datasetIdBuilder_ = null; - } - tagName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReservationID_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReservationID.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ReservationID build() { - datacatalog.Datacatalog.ReservationID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReservationID buildPartial() { - datacatalog.Datacatalog.ReservationID result = new datacatalog.Datacatalog.ReservationID(this); - if (datasetIdBuilder_ == null) { - result.datasetId_ = datasetId_; - } else { - result.datasetId_ = datasetIdBuilder_.build(); - } - result.tagName_ = tagName_; - 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 datacatalog.Datacatalog.ReservationID) { - return mergeFrom((datacatalog.Datacatalog.ReservationID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ReservationID other) { - if (other == datacatalog.Datacatalog.ReservationID.getDefaultInstance()) return this; - if (other.hasDatasetId()) { - mergeDatasetId(other.getDatasetId()); - } - if (!other.getTagName().isEmpty()) { - tagName_ = other.tagName_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.ReservationID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReservationID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.DatasetID datasetId_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetIdBuilder_; - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public boolean hasDatasetId() { - return datasetIdBuilder_ != null || datasetId_ != null; - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public datacatalog.Datacatalog.DatasetID getDatasetId() { - if (datasetIdBuilder_ == null) { - return datasetId_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; - } else { - return datasetIdBuilder_.getMessage(); - } - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public Builder setDatasetId(datacatalog.Datacatalog.DatasetID value) { - if (datasetIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datasetId_ = value; - onChanged(); - } else { - datasetIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public Builder setDatasetId( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetIdBuilder_ == null) { - datasetId_ = builderForValue.build(); - onChanged(); - } else { - datasetIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public Builder mergeDatasetId(datacatalog.Datacatalog.DatasetID value) { - if (datasetIdBuilder_ == null) { - if (datasetId_ != null) { - datasetId_ = - datacatalog.Datacatalog.DatasetID.newBuilder(datasetId_).mergeFrom(value).buildPartial(); - } else { - datasetId_ = value; - } - onChanged(); - } else { - datasetIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public Builder clearDatasetId() { - if (datasetIdBuilder_ == null) { - datasetId_ = null; - onChanged(); - } else { - datasetId_ = null; - datasetIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetIdBuilder() { - - onChanged(); - return getDatasetIdFieldBuilder().getBuilder(); - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetIdOrBuilder() { - if (datasetIdBuilder_ != null) { - return datasetIdBuilder_.getMessageOrBuilder(); - } else { - return datasetId_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : datasetId_; - } - } - /** - *
-       * The unique ID for the reserved dataset
-       * 
- * - * .datacatalog.DatasetID dataset_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetIdFieldBuilder() { - if (datasetIdBuilder_ == null) { - datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDatasetId(), - getParentForChildren(), - isClean()); - datasetId_ = null; - } - return datasetIdBuilder_; - } - - private java.lang.Object tagName_ = ""; - /** - *
-       * The specific artifact tag for the reservation
-       * 
- * - * string tag_name = 2; - */ - public java.lang.String getTagName() { - java.lang.Object ref = tagName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The specific artifact tag for the reservation
-       * 
- * - * string tag_name = 2; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = tagName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The specific artifact tag for the reservation
-       * 
- * - * string tag_name = 2; - */ - public Builder setTagName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tagName_ = value; - onChanged(); - return this; - } - /** - *
-       * The specific artifact tag for the reservation
-       * 
- * - * string tag_name = 2; - */ - public Builder clearTagName() { - - tagName_ = getDefaultInstance().getTagName(); - onChanged(); - return this; - } - /** - *
-       * The specific artifact tag for the reservation
-       * 
- * - * string tag_name = 2; - */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tagName_ = value; - onChanged(); - return this; - } - @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:datacatalog.ReservationID) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ReservationID) - private static final datacatalog.Datacatalog.ReservationID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReservationID(); - } - - public static datacatalog.Datacatalog.ReservationID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReservationID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReservationID(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 datacatalog.Datacatalog.ReservationID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetOrExtendReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - boolean hasReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationID getReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); - - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - java.lang.String getOwnerId(); - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - com.google.protobuf.ByteString - getOwnerIdBytes(); - - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - boolean hasHeartbeatInterval(); - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.Duration getHeartbeatInterval(); - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); - } - /** - *
-   * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
-   * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} - */ - public static final class GetOrExtendReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationRequest) - GetOrExtendReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationRequest.newBuilder() to construct. - private GetOrExtendReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOrExtendReservationRequest() { - ownerId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetOrExtendReservationRequest( - 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: { - datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; - if (reservationId_ != null) { - subBuilder = reservationId_.toBuilder(); - } - reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationId_); - reservationId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerId_ = s; - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (heartbeatInterval_ != null) { - subBuilder = heartbeatInterval_.toBuilder(); - } - heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(heartbeatInterval_); - heartbeatInterval_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); - } - - public static final int RESERVATION_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.ReservationID reservationId_; - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationId_ != null; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - return getReservationId(); - } - - public static final int OWNER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object ownerId_; - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } - } - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; - private com.google.protobuf.Duration heartbeatInterval_; - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatInterval_ != null; - } - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - /** - *
-     * Requested reservation extension heartbeat interval
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - return getHeartbeatInterval(); - } - - 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 (reservationId_ != null) { - output.writeMessage(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); - } - if (heartbeatInterval_ != null) { - output.writeMessage(3, getHeartbeatInterval()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservationId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); - } - if (heartbeatInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeartbeatInterval()); - } - 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 datacatalog.Datacatalog.GetOrExtendReservationRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetOrExtendReservationRequest other = (datacatalog.Datacatalog.GetOrExtendReservationRequest) obj; - - if (hasReservationId() != other.hasReservationId()) return false; - if (hasReservationId()) { - if (!getReservationId() - .equals(other.getReservationId())) return false; - } - if (!getOwnerId() - .equals(other.getOwnerId())) return false; - if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; - if (hasHeartbeatInterval()) { - if (!getHeartbeatInterval() - .equals(other.getHeartbeatInterval())) 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 (hasReservationId()) { - hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getReservationId().hashCode(); - } - hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerId().hashCode(); - if (hasHeartbeatInterval()) { - hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + getHeartbeatInterval().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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 datacatalog.Datacatalog.GetOrExtendReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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 datacatalog.Datacatalog.GetOrExtendReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationRequest 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(datacatalog.Datacatalog.GetOrExtendReservationRequest 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; - } - /** - *
-     * Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance.
-     * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationRequest) - datacatalog.Datacatalog.GetOrExtendReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationRequest.class, datacatalog.Datacatalog.GetOrExtendReservationRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetOrExtendReservationRequest.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 (reservationIdBuilder_ == null) { - reservationId_ = null; - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - ownerId_ = ""; - - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest build() { - datacatalog.Datacatalog.GetOrExtendReservationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationRequest buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationRequest result = new datacatalog.Datacatalog.GetOrExtendReservationRequest(this); - if (reservationIdBuilder_ == null) { - result.reservationId_ = reservationId_; - } else { - result.reservationId_ = reservationIdBuilder_.build(); - } - result.ownerId_ = ownerId_; - if (heartbeatIntervalBuilder_ == null) { - result.heartbeatInterval_ = heartbeatInterval_; - } else { - result.heartbeatInterval_ = heartbeatIntervalBuilder_.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 datacatalog.Datacatalog.GetOrExtendReservationRequest) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationRequest other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationRequest.getDefaultInstance()) return this; - if (other.hasReservationId()) { - mergeReservationId(other.getReservationId()); - } - if (!other.getOwnerId().isEmpty()) { - ownerId_ = other.ownerId_; - onChanged(); - } - if (other.hasHeartbeatInterval()) { - mergeHeartbeatInterval(other.getHeartbeatInterval()); - } - 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 { - datacatalog.Datacatalog.GetOrExtendReservationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.ReservationID reservationId_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationIdBuilder_ != null || reservationId_ != null; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - if (reservationIdBuilder_ == null) { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } else { - return reservationIdBuilder_.getMessage(); - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationId_ = value; - onChanged(); - } else { - reservationIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId( - datacatalog.Datacatalog.ReservationID.Builder builderForValue) { - if (reservationIdBuilder_ == null) { - reservationId_ = builderForValue.build(); - onChanged(); - } else { - reservationIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (reservationId_ != null) { - reservationId_ = - datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); - } else { - reservationId_ = value; - } - onChanged(); - } else { - reservationIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder clearReservationId() { - if (reservationIdBuilder_ == null) { - reservationId_ = null; - onChanged(); - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { - - onChanged(); - return getReservationIdFieldBuilder().getBuilder(); - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - if (reservationIdBuilder_ != null) { - return reservationIdBuilder_.getMessageOrBuilder(); - } else { - return reservationId_ == null ? - datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> - getReservationIdFieldBuilder() { - if (reservationIdBuilder_ == null) { - reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), - getParentForChildren(), - isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration heartbeatInterval_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } else { - return heartbeatIntervalBuilder_.getMessage(); - } - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - heartbeatInterval_ = value; - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval( - com.google.protobuf.Duration.Builder builderForValue) { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = builderForValue.build(); - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (heartbeatInterval_ != null) { - heartbeatInterval_ = - com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); - } else { - heartbeatInterval_ = value; - } - onChanged(); - } else { - heartbeatIntervalBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder clearHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - onChanged(); - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - - return this; - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { - - onChanged(); - return getHeartbeatIntervalFieldBuilder().getBuilder(); - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - if (heartbeatIntervalBuilder_ != null) { - return heartbeatIntervalBuilder_.getMessageOrBuilder(); - } else { - return heartbeatInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - } - /** - *
-       * Requested reservation extension heartbeat interval
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getHeartbeatIntervalFieldBuilder() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getHeartbeatInterval(), - getParentForChildren(), - isClean()); - heartbeatInterval_ = null; - } - return heartbeatIntervalBuilder_; - } - @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:datacatalog.GetOrExtendReservationRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationRequest) - private static final datacatalog.Datacatalog.GetOrExtendReservationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationRequest(); - } - - public static datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrExtendReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationRequest(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 datacatalog.Datacatalog.GetOrExtendReservationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReservationOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Reservation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - boolean hasReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationID getReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); - - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - java.lang.String getOwnerId(); - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - com.google.protobuf.ByteString - getOwnerIdBytes(); - - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - boolean hasHeartbeatInterval(); - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.Duration getHeartbeatInterval(); - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder(); - - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - boolean hasExpiresAt(); - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - boolean hasMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - datacatalog.Datacatalog.Metadata getMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
-   * 
- * - * Protobuf type {@code datacatalog.Reservation} - */ - public static final class Reservation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Reservation) - ReservationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reservation.newBuilder() to construct. - private Reservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Reservation() { - ownerId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reservation( - 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: { - datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; - if (reservationId_ != null) { - subBuilder = reservationId_.toBuilder(); - } - reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationId_); - reservationId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerId_ = s; - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (heartbeatInterval_ != null) { - subBuilder = heartbeatInterval_.toBuilder(); - } - heartbeatInterval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(heartbeatInterval_); - heartbeatInterval_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - datacatalog.Datacatalog.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); - } - - public static final int RESERVATION_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.ReservationID reservationId_; - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationId_ != null; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - return getReservationId(); - } - - public static final int OWNER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object ownerId_; - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } - } - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEARTBEAT_INTERVAL_FIELD_NUMBER = 3; - private com.google.protobuf.Duration heartbeatInterval_; - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatInterval_ != null; - } - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - /** - *
-     * Recommended heartbeat interval to extend reservation
-     * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - return getHeartbeatInterval(); - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * Expiration timestamp of this reservation
-     * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private datacatalog.Datacatalog.Metadata metadata_; - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (reservationId_ != null) { - output.writeMessage(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); - } - if (heartbeatInterval_ != null) { - output.writeMessage(3, getHeartbeatInterval()); - } - if (expiresAt_ != null) { - output.writeMessage(4, getExpiresAt()); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservationId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); - } - if (heartbeatInterval_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHeartbeatInterval()); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpiresAt()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetadata()); - } - 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 datacatalog.Datacatalog.Reservation)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Reservation other = (datacatalog.Datacatalog.Reservation) obj; - - if (hasReservationId() != other.hasReservationId()) return false; - if (hasReservationId()) { - if (!getReservationId() - .equals(other.getReservationId())) return false; - } - if (!getOwnerId() - .equals(other.getOwnerId())) return false; - if (hasHeartbeatInterval() != other.hasHeartbeatInterval()) return false; - if (hasHeartbeatInterval()) { - if (!getHeartbeatInterval() - .equals(other.getHeartbeatInterval())) return false; - } - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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 (hasReservationId()) { - hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getReservationId().hashCode(); - } - hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerId().hashCode(); - if (hasHeartbeatInterval()) { - hash = (37 * hash) + HEARTBEAT_INTERVAL_FIELD_NUMBER; - hash = (53 * hash) + getHeartbeatInterval().hashCode(); - } - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Reservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Reservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Reservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Reservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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 datacatalog.Datacatalog.Reservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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 datacatalog.Datacatalog.Reservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Reservation 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(datacatalog.Datacatalog.Reservation 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; - } - /** - *
-     * A reservation including owner, heartbeat interval, expiration timestamp, and various metadata.
-     * 
- * - * Protobuf type {@code datacatalog.Reservation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Reservation) - datacatalog.Datacatalog.ReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Reservation.class, datacatalog.Datacatalog.Reservation.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Reservation.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 (reservationIdBuilder_ == null) { - reservationId_ = null; - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - ownerId_ = ""; - - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Reservation_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { - return datacatalog.Datacatalog.Reservation.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation build() { - datacatalog.Datacatalog.Reservation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Reservation buildPartial() { - datacatalog.Datacatalog.Reservation result = new datacatalog.Datacatalog.Reservation(this); - if (reservationIdBuilder_ == null) { - result.reservationId_ = reservationId_; - } else { - result.reservationId_ = reservationIdBuilder_.build(); - } - result.ownerId_ = ownerId_; - if (heartbeatIntervalBuilder_ == null) { - result.heartbeatInterval_ = heartbeatInterval_; - } else { - result.heartbeatInterval_ = heartbeatIntervalBuilder_.build(); - } - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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 datacatalog.Datacatalog.Reservation) { - return mergeFrom((datacatalog.Datacatalog.Reservation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Reservation other) { - if (other == datacatalog.Datacatalog.Reservation.getDefaultInstance()) return this; - if (other.hasReservationId()) { - mergeReservationId(other.getReservationId()); - } - if (!other.getOwnerId().isEmpty()) { - ownerId_ = other.ownerId_; - onChanged(); - } - if (other.hasHeartbeatInterval()) { - mergeHeartbeatInterval(other.getHeartbeatInterval()); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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 { - datacatalog.Datacatalog.Reservation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Reservation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.ReservationID reservationId_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationIdBuilder_ != null || reservationId_ != null; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - if (reservationIdBuilder_ == null) { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } else { - return reservationIdBuilder_.getMessage(); - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationId_ = value; - onChanged(); - } else { - reservationIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId( - datacatalog.Datacatalog.ReservationID.Builder builderForValue) { - if (reservationIdBuilder_ == null) { - reservationId_ = builderForValue.build(); - onChanged(); - } else { - reservationIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (reservationId_ != null) { - reservationId_ = - datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); - } else { - reservationId_ = value; - } - onChanged(); - } else { - reservationIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder clearReservationId() { - if (reservationIdBuilder_ == null) { - reservationId_ = null; - onChanged(); - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { - - onChanged(); - return getReservationIdFieldBuilder().getBuilder(); - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - if (reservationIdBuilder_ != null) { - return reservationIdBuilder_.getMessageOrBuilder(); - } else { - return reservationId_ == null ? - datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> - getReservationIdFieldBuilder() { - if (reservationIdBuilder_ == null) { - reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), - getParentForChildren(), - isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration heartbeatInterval_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> heartbeatIntervalBuilder_; - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public boolean hasHeartbeatInterval() { - return heartbeatIntervalBuilder_ != null || heartbeatInterval_ != null; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration getHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - return heartbeatInterval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } else { - return heartbeatIntervalBuilder_.getMessage(); - } - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - heartbeatInterval_ = value; - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder setHeartbeatInterval( - com.google.protobuf.Duration.Builder builderForValue) { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = builderForValue.build(); - onChanged(); - } else { - heartbeatIntervalBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder mergeHeartbeatInterval(com.google.protobuf.Duration value) { - if (heartbeatIntervalBuilder_ == null) { - if (heartbeatInterval_ != null) { - heartbeatInterval_ = - com.google.protobuf.Duration.newBuilder(heartbeatInterval_).mergeFrom(value).buildPartial(); - } else { - heartbeatInterval_ = value; - } - onChanged(); - } else { - heartbeatIntervalBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public Builder clearHeartbeatInterval() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatInterval_ = null; - onChanged(); - } else { - heartbeatInterval_ = null; - heartbeatIntervalBuilder_ = null; - } - - return this; - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.Duration.Builder getHeartbeatIntervalBuilder() { - - onChanged(); - return getHeartbeatIntervalFieldBuilder().getBuilder(); - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - public com.google.protobuf.DurationOrBuilder getHeartbeatIntervalOrBuilder() { - if (heartbeatIntervalBuilder_ != null) { - return heartbeatIntervalBuilder_.getMessageOrBuilder(); - } else { - return heartbeatInterval_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : heartbeatInterval_; - } - } - /** - *
-       * Recommended heartbeat interval to extend reservation
-       * 
- * - * .google.protobuf.Duration heartbeat_interval = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getHeartbeatIntervalFieldBuilder() { - if (heartbeatIntervalBuilder_ == null) { - heartbeatIntervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getHeartbeatInterval(), - getParentForChildren(), - isClean()); - heartbeatInterval_ = null; - } - return heartbeatIntervalBuilder_; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * Expiration timestamp of this reservation
-       * 
- * - * .google.protobuf.Timestamp expires_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - - private datacatalog.Datacatalog.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder setMetadata( - datacatalog.Datacatalog.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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:datacatalog.Reservation) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Reservation) - private static final datacatalog.Datacatalog.Reservation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Reservation(); - } - - public static datacatalog.Datacatalog.Reservation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reservation(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 datacatalog.Datacatalog.Reservation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetOrExtendReservationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.GetOrExtendReservationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - boolean hasReservation(); - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - datacatalog.Datacatalog.Reservation getReservation(); - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder(); - } - /** - *
-   * Response including either a newly minted reservation or the existing reservation
-   * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} - */ - public static final class GetOrExtendReservationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.GetOrExtendReservationResponse) - GetOrExtendReservationResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetOrExtendReservationResponse.newBuilder() to construct. - private GetOrExtendReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetOrExtendReservationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetOrExtendReservationResponse( - 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: { - datacatalog.Datacatalog.Reservation.Builder subBuilder = null; - if (reservation_ != null) { - subBuilder = reservation_.toBuilder(); - } - reservation_ = input.readMessage(datacatalog.Datacatalog.Reservation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservation_); - reservation_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); - } - - public static final int RESERVATION_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.Reservation reservation_; - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public boolean hasReservation() { - return reservation_ != null; - } - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation getReservation() { - return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } - /** - *
-     * The reservation to be acquired or extended
-     * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { - return getReservation(); - } - - 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 (reservation_ != null) { - output.writeMessage(1, getReservation()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservation()); - } - 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 datacatalog.Datacatalog.GetOrExtendReservationResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.GetOrExtendReservationResponse other = (datacatalog.Datacatalog.GetOrExtendReservationResponse) obj; - - if (hasReservation() != other.hasReservation()) return false; - if (hasReservation()) { - if (!getReservation() - .equals(other.getReservation())) 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 (hasReservation()) { - hash = (37 * hash) + RESERVATION_FIELD_NUMBER; - hash = (53 * hash) + getReservation().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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 datacatalog.Datacatalog.GetOrExtendReservationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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 datacatalog.Datacatalog.GetOrExtendReservationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.GetOrExtendReservationResponse 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(datacatalog.Datacatalog.GetOrExtendReservationResponse 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; - } - /** - *
-     * Response including either a newly minted reservation or the existing reservation
-     * 
- * - * Protobuf type {@code datacatalog.GetOrExtendReservationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.GetOrExtendReservationResponse) - datacatalog.Datacatalog.GetOrExtendReservationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.GetOrExtendReservationResponse.class, datacatalog.Datacatalog.GetOrExtendReservationResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.GetOrExtendReservationResponse.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 (reservationBuilder_ == null) { - reservation_ = null; - } else { - reservation_ = null; - reservationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse build() { - datacatalog.Datacatalog.GetOrExtendReservationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.GetOrExtendReservationResponse buildPartial() { - datacatalog.Datacatalog.GetOrExtendReservationResponse result = new datacatalog.Datacatalog.GetOrExtendReservationResponse(this); - if (reservationBuilder_ == null) { - result.reservation_ = reservation_; - } else { - result.reservation_ = reservationBuilder_.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 datacatalog.Datacatalog.GetOrExtendReservationResponse) { - return mergeFrom((datacatalog.Datacatalog.GetOrExtendReservationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.GetOrExtendReservationResponse other) { - if (other == datacatalog.Datacatalog.GetOrExtendReservationResponse.getDefaultInstance()) return this; - if (other.hasReservation()) { - mergeReservation(other.getReservation()); - } - 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 { - datacatalog.Datacatalog.GetOrExtendReservationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.GetOrExtendReservationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.Reservation reservation_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> reservationBuilder_; - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public boolean hasReservation() { - return reservationBuilder_ != null || reservation_ != null; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation getReservation() { - if (reservationBuilder_ == null) { - return reservation_ == null ? datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } else { - return reservationBuilder_.getMessage(); - } - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder setReservation(datacatalog.Datacatalog.Reservation value) { - if (reservationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservation_ = value; - onChanged(); - } else { - reservationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder setReservation( - datacatalog.Datacatalog.Reservation.Builder builderForValue) { - if (reservationBuilder_ == null) { - reservation_ = builderForValue.build(); - onChanged(); - } else { - reservationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder mergeReservation(datacatalog.Datacatalog.Reservation value) { - if (reservationBuilder_ == null) { - if (reservation_ != null) { - reservation_ = - datacatalog.Datacatalog.Reservation.newBuilder(reservation_).mergeFrom(value).buildPartial(); - } else { - reservation_ = value; - } - onChanged(); - } else { - reservationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public Builder clearReservation() { - if (reservationBuilder_ == null) { - reservation_ = null; - onChanged(); - } else { - reservation_ = null; - reservationBuilder_ = null; - } - - return this; - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.Reservation.Builder getReservationBuilder() { - - onChanged(); - return getReservationFieldBuilder().getBuilder(); - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - public datacatalog.Datacatalog.ReservationOrBuilder getReservationOrBuilder() { - if (reservationBuilder_ != null) { - return reservationBuilder_.getMessageOrBuilder(); - } else { - return reservation_ == null ? - datacatalog.Datacatalog.Reservation.getDefaultInstance() : reservation_; - } - } - /** - *
-       * The reservation to be acquired or extended
-       * 
- * - * .datacatalog.Reservation reservation = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder> - getReservationFieldBuilder() { - if (reservationBuilder_ == null) { - reservationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Reservation, datacatalog.Datacatalog.Reservation.Builder, datacatalog.Datacatalog.ReservationOrBuilder>( - getReservation(), - getParentForChildren(), - isClean()); - reservation_ = null; - } - return reservationBuilder_; - } - @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:datacatalog.GetOrExtendReservationResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.GetOrExtendReservationResponse) - private static final datacatalog.Datacatalog.GetOrExtendReservationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.GetOrExtendReservationResponse(); - } - - public static datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetOrExtendReservationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetOrExtendReservationResponse(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 datacatalog.Datacatalog.GetOrExtendReservationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReleaseReservationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - boolean hasReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationID getReservationId(); - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder(); - - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - java.lang.String getOwnerId(); - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - com.google.protobuf.ByteString - getOwnerIdBytes(); - } - /** - *
-   * Request to release reservation
-   * 
- * - * Protobuf type {@code datacatalog.ReleaseReservationRequest} - */ - public static final class ReleaseReservationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationRequest) - ReleaseReservationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseReservationRequest.newBuilder() to construct. - private ReleaseReservationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseReservationRequest() { - ownerId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReleaseReservationRequest( - 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: { - datacatalog.Datacatalog.ReservationID.Builder subBuilder = null; - if (reservationId_ != null) { - subBuilder = reservationId_.toBuilder(); - } - reservationId_ = input.readMessage(datacatalog.Datacatalog.ReservationID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reservationId_); - reservationId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - ownerId_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); - } - - public static final int RESERVATION_ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.ReservationID reservationId_; - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationId_ != null; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - /** - *
-     * The unique ID for the reservation
-     * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - return getReservationId(); - } - - public static final int OWNER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object ownerId_; - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } - } - /** - *
-     * The unique ID of the owner for the reservation
-     * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (reservationId_ != null) { - output.writeMessage(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ownerId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (reservationId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getReservationId()); - } - if (!getOwnerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ownerId_); - } - 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 datacatalog.Datacatalog.ReleaseReservationRequest)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ReleaseReservationRequest other = (datacatalog.Datacatalog.ReleaseReservationRequest) obj; - - if (hasReservationId() != other.hasReservationId()) return false; - if (hasReservationId()) { - if (!getReservationId() - .equals(other.getReservationId())) return false; - } - if (!getOwnerId() - .equals(other.getOwnerId())) 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 (hasReservationId()) { - hash = (37 * hash) + RESERVATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getReservationId().hashCode(); - } - hash = (37 * hash) + OWNER_ID_FIELD_NUMBER; - hash = (53 * hash) + getOwnerId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest 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 datacatalog.Datacatalog.ReleaseReservationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest 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 datacatalog.Datacatalog.ReleaseReservationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationRequest 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(datacatalog.Datacatalog.ReleaseReservationRequest 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; - } - /** - *
-     * Request to release reservation
-     * 
- * - * Protobuf type {@code datacatalog.ReleaseReservationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationRequest) - datacatalog.Datacatalog.ReleaseReservationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationRequest.class, datacatalog.Datacatalog.ReleaseReservationRequest.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ReleaseReservationRequest.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 (reservationIdBuilder_ == null) { - reservationId_ = null; - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - ownerId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationRequest_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest build() { - datacatalog.Datacatalog.ReleaseReservationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationRequest buildPartial() { - datacatalog.Datacatalog.ReleaseReservationRequest result = new datacatalog.Datacatalog.ReleaseReservationRequest(this); - if (reservationIdBuilder_ == null) { - result.reservationId_ = reservationId_; - } else { - result.reservationId_ = reservationIdBuilder_.build(); - } - result.ownerId_ = ownerId_; - 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 datacatalog.Datacatalog.ReleaseReservationRequest) { - return mergeFrom((datacatalog.Datacatalog.ReleaseReservationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationRequest other) { - if (other == datacatalog.Datacatalog.ReleaseReservationRequest.getDefaultInstance()) return this; - if (other.hasReservationId()) { - mergeReservationId(other.getReservationId()); - } - if (!other.getOwnerId().isEmpty()) { - ownerId_ = other.ownerId_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.ReleaseReservationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReleaseReservationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private datacatalog.Datacatalog.ReservationID reservationId_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> reservationIdBuilder_; - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public boolean hasReservationId() { - return reservationIdBuilder_ != null || reservationId_ != null; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID getReservationId() { - if (reservationIdBuilder_ == null) { - return reservationId_ == null ? datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } else { - return reservationIdBuilder_.getMessage(); - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reservationId_ = value; - onChanged(); - } else { - reservationIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder setReservationId( - datacatalog.Datacatalog.ReservationID.Builder builderForValue) { - if (reservationIdBuilder_ == null) { - reservationId_ = builderForValue.build(); - onChanged(); - } else { - reservationIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder mergeReservationId(datacatalog.Datacatalog.ReservationID value) { - if (reservationIdBuilder_ == null) { - if (reservationId_ != null) { - reservationId_ = - datacatalog.Datacatalog.ReservationID.newBuilder(reservationId_).mergeFrom(value).buildPartial(); - } else { - reservationId_ = value; - } - onChanged(); - } else { - reservationIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public Builder clearReservationId() { - if (reservationIdBuilder_ == null) { - reservationId_ = null; - onChanged(); - } else { - reservationId_ = null; - reservationIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationID.Builder getReservationIdBuilder() { - - onChanged(); - return getReservationIdFieldBuilder().getBuilder(); - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - public datacatalog.Datacatalog.ReservationIDOrBuilder getReservationIdOrBuilder() { - if (reservationIdBuilder_ != null) { - return reservationIdBuilder_.getMessageOrBuilder(); - } else { - return reservationId_ == null ? - datacatalog.Datacatalog.ReservationID.getDefaultInstance() : reservationId_; - } - } - /** - *
-       * The unique ID for the reservation
-       * 
- * - * .datacatalog.ReservationID reservation_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder> - getReservationIdFieldBuilder() { - if (reservationIdBuilder_ == null) { - reservationIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ReservationID, datacatalog.Datacatalog.ReservationID.Builder, datacatalog.Datacatalog.ReservationIDOrBuilder>( - getReservationId(), - getParentForChildren(), - isClean()); - reservationId_ = null; - } - return reservationIdBuilder_; - } - - private java.lang.Object ownerId_ = ""; - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public java.lang.String getOwnerId() { - java.lang.Object ref = ownerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ownerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public com.google.protobuf.ByteString - getOwnerIdBytes() { - java.lang.Object ref = ownerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ownerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ownerId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder clearOwnerId() { - - ownerId_ = getDefaultInstance().getOwnerId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the owner for the reservation
-       * 
- * - * string owner_id = 2; - */ - public Builder setOwnerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ownerId_ = value; - onChanged(); - return this; - } - @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:datacatalog.ReleaseReservationRequest) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationRequest) - private static final datacatalog.Datacatalog.ReleaseReservationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationRequest(); - } - - public static datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseReservationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseReservationRequest(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 datacatalog.Datacatalog.ReleaseReservationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReleaseReservationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ReleaseReservationResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response to release reservation
-   * 
- * - * Protobuf type {@code datacatalog.ReleaseReservationResponse} - */ - public static final class ReleaseReservationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ReleaseReservationResponse) - ReleaseReservationResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ReleaseReservationResponse.newBuilder() to construct. - private ReleaseReservationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ReleaseReservationResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ReleaseReservationResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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 datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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 datacatalog.Datacatalog.ReleaseReservationResponse)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ReleaseReservationResponse other = (datacatalog.Datacatalog.ReleaseReservationResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse 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 datacatalog.Datacatalog.ReleaseReservationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse 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 datacatalog.Datacatalog.ReleaseReservationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ReleaseReservationResponse 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(datacatalog.Datacatalog.ReleaseReservationResponse 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; - } - /** - *
-     * Response to release reservation
-     * 
- * - * Protobuf type {@code datacatalog.ReleaseReservationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ReleaseReservationResponse) - datacatalog.Datacatalog.ReleaseReservationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ReleaseReservationResponse.class, datacatalog.Datacatalog.ReleaseReservationResponse.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ReleaseReservationResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ReleaseReservationResponse_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstanceForType() { - return datacatalog.Datacatalog.ReleaseReservationResponse.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationResponse build() { - datacatalog.Datacatalog.ReleaseReservationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ReleaseReservationResponse buildPartial() { - datacatalog.Datacatalog.ReleaseReservationResponse result = new datacatalog.Datacatalog.ReleaseReservationResponse(this); - 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 datacatalog.Datacatalog.ReleaseReservationResponse) { - return mergeFrom((datacatalog.Datacatalog.ReleaseReservationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ReleaseReservationResponse other) { - if (other == datacatalog.Datacatalog.ReleaseReservationResponse.getDefaultInstance()) return this; - 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 { - datacatalog.Datacatalog.ReleaseReservationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ReleaseReservationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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:datacatalog.ReleaseReservationResponse) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ReleaseReservationResponse) - private static final datacatalog.Datacatalog.ReleaseReservationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ReleaseReservationResponse(); - } - - public static datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReleaseReservationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ReleaseReservationResponse(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 datacatalog.Datacatalog.ReleaseReservationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DatasetOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Dataset) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.DatasetID id = 1; - */ - boolean hasId(); - /** - * .datacatalog.DatasetID id = 1; - */ - datacatalog.Datacatalog.DatasetID getId(); - /** - * .datacatalog.DatasetID id = 1; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder(); - - /** - * .datacatalog.Metadata metadata = 2; - */ - boolean hasMetadata(); - /** - * .datacatalog.Metadata metadata = 2; - */ - datacatalog.Datacatalog.Metadata getMetadata(); - /** - * .datacatalog.Metadata metadata = 2; - */ - datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); - - /** - * repeated string partitionKeys = 3; - */ - java.util.List - getPartitionKeysList(); - /** - * repeated string partitionKeys = 3; - */ - int getPartitionKeysCount(); - /** - * repeated string partitionKeys = 3; - */ - java.lang.String getPartitionKeys(int index); - /** - * repeated string partitionKeys = 3; - */ - com.google.protobuf.ByteString - getPartitionKeysBytes(int index); - } - /** - *
-   * Dataset message. It is uniquely identified by DatasetID.
-   * 
- * - * Protobuf type {@code datacatalog.Dataset} - */ - public static final class Dataset extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Dataset) - DatasetOrBuilder { - private static final long serialVersionUID = 0L; - // Use Dataset.newBuilder() to construct. - private Dataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Dataset() { - partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Dataset( - 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: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - datacatalog.Datacatalog.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - partitionKeys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - partitionKeys_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - partitionKeys_ = partitionKeys_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private datacatalog.Datacatalog.DatasetID id_; - /** - * .datacatalog.DatasetID id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public datacatalog.Datacatalog.DatasetID getId() { - return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 2; - private datacatalog.Datacatalog.Metadata metadata_; - /** - * .datacatalog.Metadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PARTITIONKEYS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList partitionKeys_; - /** - * repeated string partitionKeys = 3; - */ - public com.google.protobuf.ProtocolStringList - getPartitionKeysList() { - return partitionKeys_; - } - /** - * repeated string partitionKeys = 3; - */ - public int getPartitionKeysCount() { - return partitionKeys_.size(); - } - /** - * repeated string partitionKeys = 3; - */ - public java.lang.String getPartitionKeys(int index) { - return partitionKeys_.get(index); - } - /** - * repeated string partitionKeys = 3; - */ - public com.google.protobuf.ByteString - getPartitionKeysBytes(int index) { - return partitionKeys_.getByteString(index); - } - - 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()); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - for (int i = 0; i < partitionKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partitionKeys_.getRaw(i)); - } - 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()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - { - int dataSize = 0; - for (int i = 0; i < partitionKeys_.size(); i++) { - dataSize += computeStringSizeNoTag(partitionKeys_.getRaw(i)); - } - size += dataSize; - size += 1 * getPartitionKeysList().size(); - } - 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 datacatalog.Datacatalog.Dataset)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Dataset other = (datacatalog.Datacatalog.Dataset) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getPartitionKeysList() - .equals(other.getPartitionKeysList())) 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(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getPartitionKeysCount() > 0) { - hash = (37 * hash) + PARTITIONKEYS_FIELD_NUMBER; - hash = (53 * hash) + getPartitionKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Dataset parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Dataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Dataset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Dataset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Dataset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Dataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Dataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Dataset 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 datacatalog.Datacatalog.Dataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Dataset 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 datacatalog.Datacatalog.Dataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Dataset 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(datacatalog.Datacatalog.Dataset 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; - } - /** - *
-     * Dataset message. It is uniquely identified by DatasetID.
-     * 
- * - * Protobuf type {@code datacatalog.Dataset} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Dataset) - datacatalog.Datacatalog.DatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Dataset.class, datacatalog.Datacatalog.Dataset.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Dataset.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; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Dataset_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { - return datacatalog.Datacatalog.Dataset.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Dataset build() { - datacatalog.Datacatalog.Dataset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Dataset buildPartial() { - datacatalog.Datacatalog.Dataset result = new datacatalog.Datacatalog.Dataset(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - partitionKeys_ = partitionKeys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.partitionKeys_ = partitionKeys_; - result.bitField0_ = to_bitField0_; - 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 datacatalog.Datacatalog.Dataset) { - return mergeFrom((datacatalog.Datacatalog.Dataset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Dataset other) { - if (other == datacatalog.Datacatalog.Dataset.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.partitionKeys_.isEmpty()) { - if (partitionKeys_.isEmpty()) { - partitionKeys_ = other.partitionKeys_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePartitionKeysIsMutable(); - partitionKeys_.addAll(other.partitionKeys_); - } - onChanged(); - } - 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 { - datacatalog.Datacatalog.Dataset parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Dataset) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private datacatalog.Datacatalog.DatasetID id_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> idBuilder_; - /** - * .datacatalog.DatasetID id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public datacatalog.Datacatalog.DatasetID getId() { - if (idBuilder_ == null) { - return id_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .datacatalog.DatasetID id = 1; - */ - public Builder setId(datacatalog.Datacatalog.DatasetID value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public Builder setId( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public Builder mergeId(datacatalog.Datacatalog.DatasetID value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - datacatalog.Datacatalog.DatasetID.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.DatasetID id = 1; - */ - public datacatalog.Datacatalog.DatasetID.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .datacatalog.DatasetID id = 1; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : id_; - } - } - /** - * .datacatalog.DatasetID id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private datacatalog.Datacatalog.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; - /** - * .datacatalog.Metadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public Builder setMetadata( - datacatalog.Datacatalog.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .datacatalog.Metadata metadata = 2; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - } - /** - * .datacatalog.Metadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.LazyStringList partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePartitionKeysIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - partitionKeys_ = new com.google.protobuf.LazyStringArrayList(partitionKeys_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string partitionKeys = 3; - */ - public com.google.protobuf.ProtocolStringList - getPartitionKeysList() { - return partitionKeys_.getUnmodifiableView(); - } - /** - * repeated string partitionKeys = 3; - */ - public int getPartitionKeysCount() { - return partitionKeys_.size(); - } - /** - * repeated string partitionKeys = 3; - */ - public java.lang.String getPartitionKeys(int index) { - return partitionKeys_.get(index); - } - /** - * repeated string partitionKeys = 3; - */ - public com.google.protobuf.ByteString - getPartitionKeysBytes(int index) { - return partitionKeys_.getByteString(index); - } - /** - * repeated string partitionKeys = 3; - */ - public Builder setPartitionKeys( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartitionKeysIsMutable(); - partitionKeys_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string partitionKeys = 3; - */ - public Builder addPartitionKeys( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartitionKeysIsMutable(); - partitionKeys_.add(value); - onChanged(); - return this; - } - /** - * repeated string partitionKeys = 3; - */ - public Builder addAllPartitionKeys( - java.lang.Iterable values) { - ensurePartitionKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partitionKeys_); - onChanged(); - return this; - } - /** - * repeated string partitionKeys = 3; - */ - public Builder clearPartitionKeys() { - partitionKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string partitionKeys = 3; - */ - public Builder addPartitionKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePartitionKeysIsMutable(); - partitionKeys_.add(value); - onChanged(); - return this; - } - @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:datacatalog.Dataset) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Dataset) - private static final datacatalog.Datacatalog.Dataset DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Dataset(); - } - - public static datacatalog.Datacatalog.Dataset getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Dataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Dataset(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 datacatalog.Datacatalog.Dataset getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartitionOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Partition) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
-   * 
- * - * Protobuf type {@code datacatalog.Partition} - */ - public static final class Partition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Partition) - PartitionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Partition.newBuilder() to construct. - private Partition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Partition() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Partition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - 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 datacatalog.Datacatalog.Partition)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Partition other = (datacatalog.Datacatalog.Partition) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Partition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Partition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Partition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Partition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Partition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Partition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Partition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Partition 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 datacatalog.Datacatalog.Partition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Partition 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 datacatalog.Datacatalog.Partition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Partition 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(datacatalog.Datacatalog.Partition 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; - } - /** - *
-     * An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair
-     * 
- * - * Protobuf type {@code datacatalog.Partition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Partition) - datacatalog.Datacatalog.PartitionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Partition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Partition.class, datacatalog.Datacatalog.Partition.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Partition.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(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Partition_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Partition getDefaultInstanceForType() { - return datacatalog.Datacatalog.Partition.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Partition build() { - datacatalog.Datacatalog.Partition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Partition buildPartial() { - datacatalog.Datacatalog.Partition result = new datacatalog.Datacatalog.Partition(this); - result.key_ = key_; - result.value_ = value_; - 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 datacatalog.Datacatalog.Partition) { - return mergeFrom((datacatalog.Datacatalog.Partition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Partition other) { - if (other == datacatalog.Datacatalog.Partition.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.Partition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Partition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @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:datacatalog.Partition) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Partition) - private static final datacatalog.Datacatalog.Partition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Partition(); - } - - public static datacatalog.Datacatalog.Partition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Partition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Partition(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 datacatalog.Datacatalog.Partition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DatasetIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.DatasetID) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the project
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * The name of the project
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * The name of the dataset
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * The name of the dataset
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The domain (eg. environment)
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * The domain (eg. environment)
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Version of the data schema
-     * 
- * - * string version = 4; - */ - java.lang.String getVersion(); - /** - *
-     * Version of the data schema
-     * 
- * - * string version = 4; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     * UUID for the dataset (if set the above fields are optional)
-     * 
- * - * string UUID = 5; - */ - java.lang.String getUUID(); - /** - *
-     * UUID for the dataset (if set the above fields are optional)
-     * 
- * - * string UUID = 5; - */ - com.google.protobuf.ByteString - getUUIDBytes(); - } - /** - *
-   * DatasetID message that is composed of several string fields.
-   * 
- * - * Protobuf type {@code datacatalog.DatasetID} - */ - public static final class DatasetID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.DatasetID) - DatasetIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use DatasetID.newBuilder() to construct. - private DatasetID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatasetID() { - project_ = ""; - name_ = ""; - domain_ = ""; - version_ = ""; - uUID_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DatasetID( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - uUID_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * The name of the project
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * The name of the project
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * The name of the dataset
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the dataset
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * The domain (eg. environment)
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * The domain (eg. environment)
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object version_; - /** - *
-     * Version of the data schema
-     * 
- * - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * Version of the data schema
-     * 
- * - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UUID_FIELD_NUMBER = 5; - private volatile java.lang.Object uUID_; - /** - *
-     * UUID for the dataset (if set the above fields are optional)
-     * 
- * - * string UUID = 5; - */ - public java.lang.String getUUID() { - java.lang.Object ref = uUID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uUID_ = s; - return s; - } - } - /** - *
-     * UUID for the dataset (if set the above fields are optional)
-     * 
- * - * string UUID = 5; - */ - public com.google.protobuf.ByteString - getUUIDBytes() { - java.lang.Object ref = uUID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uUID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); - } - if (!getUUIDBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uUID_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); - } - if (!getUUIDBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uUID_); - } - 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 datacatalog.Datacatalog.DatasetID)) { - return super.equals(obj); - } - datacatalog.Datacatalog.DatasetID other = (datacatalog.Datacatalog.DatasetID) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getUUID() - .equals(other.getUUID())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + UUID_FIELD_NUMBER; - hash = (53 * hash) + getUUID().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.DatasetID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetID 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 datacatalog.Datacatalog.DatasetID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetID 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 datacatalog.Datacatalog.DatasetID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetID 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(datacatalog.Datacatalog.DatasetID 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; - } - /** - *
-     * DatasetID message that is composed of several string fields.
-     * 
- * - * Protobuf type {@code datacatalog.DatasetID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.DatasetID) - datacatalog.Datacatalog.DatasetIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DatasetID.class, datacatalog.Datacatalog.DatasetID.Builder.class); - } - - // Construct using datacatalog.Datacatalog.DatasetID.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(); - project_ = ""; - - name_ = ""; - - domain_ = ""; - - version_ = ""; - - uUID_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetID_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { - return datacatalog.Datacatalog.DatasetID.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetID build() { - datacatalog.Datacatalog.DatasetID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetID buildPartial() { - datacatalog.Datacatalog.DatasetID result = new datacatalog.Datacatalog.DatasetID(this); - result.project_ = project_; - result.name_ = name_; - result.domain_ = domain_; - result.version_ = version_; - result.uUID_ = uUID_; - 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 datacatalog.Datacatalog.DatasetID) { - return mergeFrom((datacatalog.Datacatalog.DatasetID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.DatasetID other) { - if (other == datacatalog.Datacatalog.DatasetID.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getUUID().isEmpty()) { - uUID_ = other.uUID_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.DatasetID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.DatasetID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * The name of the project
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the project
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the project
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the project
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * The name of the project
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the dataset
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the dataset
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the dataset
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the dataset
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * The name of the dataset
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * The domain (eg. environment)
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The domain (eg. environment)
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The domain (eg. environment)
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * The domain (eg. environment)
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * The domain (eg. environment)
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Version of the data schema
-       * 
- * - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version of the data schema
-       * 
- * - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version of the data schema
-       * 
- * - * string version = 4; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version of the data schema
-       * 
- * - * string version = 4; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Version of the data schema
-       * 
- * - * string version = 4; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object uUID_ = ""; - /** - *
-       * UUID for the dataset (if set the above fields are optional)
-       * 
- * - * string UUID = 5; - */ - public java.lang.String getUUID() { - java.lang.Object ref = uUID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uUID_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * UUID for the dataset (if set the above fields are optional)
-       * 
- * - * string UUID = 5; - */ - public com.google.protobuf.ByteString - getUUIDBytes() { - java.lang.Object ref = uUID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uUID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * UUID for the dataset (if set the above fields are optional)
-       * 
- * - * string UUID = 5; - */ - public Builder setUUID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uUID_ = value; - onChanged(); - return this; - } - /** - *
-       * UUID for the dataset (if set the above fields are optional)
-       * 
- * - * string UUID = 5; - */ - public Builder clearUUID() { - - uUID_ = getDefaultInstance().getUUID(); - onChanged(); - return this; - } - /** - *
-       * UUID for the dataset (if set the above fields are optional)
-       * 
- * - * string UUID = 5; - */ - public Builder setUUIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uUID_ = value; - onChanged(); - return this; - } - @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:datacatalog.DatasetID) - } - - // @@protoc_insertion_point(class_scope:datacatalog.DatasetID) - private static final datacatalog.Datacatalog.DatasetID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetID(); - } - - public static datacatalog.Datacatalog.DatasetID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatasetID(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 datacatalog.Datacatalog.DatasetID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Artifact) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The unique ID of the artifact
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * The unique ID of the artifact
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - boolean hasDataset(); - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - java.util.List - getDataList(); - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - datacatalog.Datacatalog.ArtifactData getData(int index); - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - int getDataCount(); - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - java.util.List - getDataOrBuilderList(); - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index); - - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - boolean hasMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - datacatalog.Datacatalog.Metadata getMetadata(); - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder(); - - /** - * repeated .datacatalog.Partition partitions = 5; - */ - java.util.List - getPartitionsList(); - /** - * repeated .datacatalog.Partition partitions = 5; - */ - datacatalog.Datacatalog.Partition getPartitions(int index); - /** - * repeated .datacatalog.Partition partitions = 5; - */ - int getPartitionsCount(); - /** - * repeated .datacatalog.Partition partitions = 5; - */ - java.util.List - getPartitionsOrBuilderList(); - /** - * repeated .datacatalog.Partition partitions = 5; - */ - datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( - int index); - - /** - * repeated .datacatalog.Tag tags = 6; - */ - java.util.List - getTagsList(); - /** - * repeated .datacatalog.Tag tags = 6; - */ - datacatalog.Datacatalog.Tag getTags(int index); - /** - * repeated .datacatalog.Tag tags = 6; - */ - int getTagsCount(); - /** - * repeated .datacatalog.Tag tags = 6; - */ - java.util.List - getTagsOrBuilderList(); - /** - * repeated .datacatalog.Tag tags = 6; - */ - datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( - int index); - - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * Artifact message. It is composed of several string fields.
-   * 
- * - * Protobuf type {@code datacatalog.Artifact} - */ - public static final class Artifact extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Artifact) - ArtifactOrBuilder { - private static final long serialVersionUID = 0L; - // Use Artifact.newBuilder() to construct. - private Artifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Artifact() { - id_ = ""; - data_ = java.util.Collections.emptyList(); - partitions_ = java.util.Collections.emptyList(); - tags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Artifact( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - data_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - data_.add( - input.readMessage(datacatalog.Datacatalog.ArtifactData.parser(), extensionRegistry)); - break; - } - case 34: { - datacatalog.Datacatalog.Metadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(datacatalog.Datacatalog.Metadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - partitions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - partitions_.add( - input.readMessage(datacatalog.Datacatalog.Partition.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - tags_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - tags_.add( - input.readMessage(datacatalog.Datacatalog.Tag.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - partitions_ = java.util.Collections.unmodifiableList(partitions_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - tags_ = java.util.Collections.unmodifiableList(tags_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * The unique ID of the artifact
-     * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * The unique ID of the artifact
-     * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATASET_FIELD_NUMBER = 2; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - *
-     * The Dataset that the artifact belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - public static final int DATA_FIELD_NUMBER = 3; - private java.util.List data_; - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public java.util.List getDataList() { - return data_; - } - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public java.util.List - getDataOrBuilderList() { - return data_; - } - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public int getDataCount() { - return data_.size(); - } - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactData getData(int index) { - return data_.get(index); - } - /** - *
-     * A list of data that is associated with the artifact
-     * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index) { - return data_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private datacatalog.Datacatalog.Metadata metadata_; - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Free-form metadata associated with the artifact
-     * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PARTITIONS_FIELD_NUMBER = 5; - private java.util.List partitions_; - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public java.util.List getPartitionsList() { - return partitions_; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public java.util.List - getPartitionsOrBuilderList() { - return partitions_; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public int getPartitionsCount() { - return partitions_.size(); - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.Partition getPartitions(int index) { - return partitions_.get(index); - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( - int index) { - return partitions_.get(index); - } - - public static final int TAGS_FIELD_NUMBER = 6; - private java.util.List tags_; - /** - * repeated .datacatalog.Tag tags = 6; - */ - public java.util.List getTagsList() { - return tags_; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public java.util.List - getTagsOrBuilderList() { - return tags_; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.Tag getTags(int index) { - return tags_.get(index); - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( - int index) { - return tags_.get(index); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * creation timestamp of artifact, autogenerated by service
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (dataset_ != null) { - output.writeMessage(2, getDataset()); - } - for (int i = 0; i < data_.size(); i++) { - output.writeMessage(3, data_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(4, getMetadata()); - } - for (int i = 0; i < partitions_.size(); i++) { - output.writeMessage(5, partitions_.get(i)); - } - for (int i = 0; i < tags_.size(); i++) { - output.writeMessage(6, tags_.get(i)); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataset()); - } - for (int i = 0; i < data_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, data_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); - } - for (int i = 0; i < partitions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, partitions_.get(i)); - } - for (int i = 0; i < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, tags_.get(i)); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - 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 datacatalog.Datacatalog.Artifact)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Artifact other = (datacatalog.Datacatalog.Artifact) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) return false; - } - if (!getDataList() - .equals(other.getDataList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getPartitionsList() - .equals(other.getPartitionsList())) return false; - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - if (getDataCount() > 0) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getDataList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getPartitionsCount() > 0) { - hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; - hash = (53 * hash) + getPartitionsList().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Artifact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Artifact parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Artifact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Artifact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Artifact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Artifact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Artifact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Artifact 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 datacatalog.Datacatalog.Artifact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Artifact 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 datacatalog.Datacatalog.Artifact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Artifact 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(datacatalog.Datacatalog.Artifact 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; - } - /** - *
-     * Artifact message. It is composed of several string fields.
-     * 
- * - * Protobuf type {@code datacatalog.Artifact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Artifact) - datacatalog.Datacatalog.ArtifactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Artifact.class, datacatalog.Datacatalog.Artifact.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Artifact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDataFieldBuilder(); - getPartitionsFieldBuilder(); - getTagsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - dataBuilder_.clear(); - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (partitionsBuilder_ == null) { - partitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - partitionsBuilder_.clear(); - } - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - tagsBuilder_.clear(); - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Artifact_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { - return datacatalog.Datacatalog.Artifact.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Artifact build() { - datacatalog.Datacatalog.Artifact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Artifact buildPartial() { - datacatalog.Datacatalog.Artifact result = new datacatalog.Datacatalog.Artifact(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.build(); - } - if (dataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - data_ = java.util.Collections.unmodifiableList(data_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.data_ = data_; - } else { - result.data_ = dataBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (partitionsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - partitions_ = java.util.Collections.unmodifiableList(partitions_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.partitions_ = partitions_; - } else { - result.partitions_ = partitionsBuilder_.build(); - } - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - tags_ = java.util.Collections.unmodifiableList(tags_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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 datacatalog.Datacatalog.Artifact) { - return mergeFrom((datacatalog.Datacatalog.Artifact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Artifact other) { - if (other == datacatalog.Datacatalog.Artifact.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - if (dataBuilder_ == null) { - if (!other.data_.isEmpty()) { - if (data_.isEmpty()) { - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDataIsMutable(); - data_.addAll(other.data_); - } - onChanged(); - } - } else { - if (!other.data_.isEmpty()) { - if (dataBuilder_.isEmpty()) { - dataBuilder_.dispose(); - dataBuilder_ = null; - data_ = other.data_; - bitField0_ = (bitField0_ & ~0x00000004); - dataBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataFieldBuilder() : null; - } else { - dataBuilder_.addAllMessages(other.data_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (partitionsBuilder_ == null) { - if (!other.partitions_.isEmpty()) { - if (partitions_.isEmpty()) { - partitions_ = other.partitions_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensurePartitionsIsMutable(); - partitions_.addAll(other.partitions_); - } - onChanged(); - } - } else { - if (!other.partitions_.isEmpty()) { - if (partitionsBuilder_.isEmpty()) { - partitionsBuilder_.dispose(); - partitionsBuilder_ = null; - partitions_ = other.partitions_; - bitField0_ = (bitField0_ & ~0x00000010); - partitionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPartitionsFieldBuilder() : null; - } else { - partitionsBuilder_.addAllMessages(other.partitions_); - } - } - } - if (tagsBuilder_ == null) { - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - } else { - if (!other.tags_.isEmpty()) { - if (tagsBuilder_.isEmpty()) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000020); - tagsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTagsFieldBuilder() : null; - } else { - tagsBuilder_.addAllMessages(other.tags_); - } - } - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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 { - datacatalog.Datacatalog.Artifact parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Artifact) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * The unique ID of the artifact
-       * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique ID of the artifact
-       * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique ID of the artifact
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique ID of the artifact
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * The unique ID of the artifact
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - *
-       * The Dataset that the artifact belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - - private java.util.List data_ = - java.util.Collections.emptyList(); - private void ensureDataIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - data_ = new java.util.ArrayList(data_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> dataBuilder_; - - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public java.util.List getDataList() { - if (dataBuilder_ == null) { - return java.util.Collections.unmodifiableList(data_); - } else { - return dataBuilder_.getMessageList(); - } - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public int getDataCount() { - if (dataBuilder_ == null) { - return data_.size(); - } else { - return dataBuilder_.getCount(); - } - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactData getData(int index) { - if (dataBuilder_ == null) { - return data_.get(index); - } else { - return dataBuilder_.getMessage(index); - } - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder setData( - int index, datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.set(index, value); - onChanged(); - } else { - dataBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder setData( - int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.set(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder addData(datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(value); - onChanged(); - } else { - dataBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder addData( - int index, datacatalog.Datacatalog.ArtifactData value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataIsMutable(); - data_.add(index, value); - onChanged(); - } else { - dataBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder addData( - datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder addData( - int index, datacatalog.Datacatalog.ArtifactData.Builder builderForValue) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.add(index, builderForValue.build()); - onChanged(); - } else { - dataBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder addAllData( - java.lang.Iterable values) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, data_); - onChanged(); - } else { - dataBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - data_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - dataBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public Builder removeData(int index) { - if (dataBuilder_ == null) { - ensureDataIsMutable(); - data_.remove(index); - onChanged(); - } else { - dataBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactData.Builder getDataBuilder( - int index) { - return getDataFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactDataOrBuilder getDataOrBuilder( - int index) { - if (dataBuilder_ == null) { - return data_.get(index); } else { - return dataBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public java.util.List - getDataOrBuilderList() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(data_); - } - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder() { - return getDataFieldBuilder().addBuilder( - datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public datacatalog.Datacatalog.ArtifactData.Builder addDataBuilder( - int index) { - return getDataFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.ArtifactData.getDefaultInstance()); - } - /** - *
-       * A list of data that is associated with the artifact
-       * 
- * - * repeated .datacatalog.ArtifactData data = 3; - */ - public java.util.List - getDataBuilderList() { - return getDataFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder> - getDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.ArtifactData, datacatalog.Datacatalog.ArtifactData.Builder, datacatalog.Datacatalog.ArtifactDataOrBuilder>( - data_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - data_ = null; - } - return dataBuilder_; - } - - private datacatalog.Datacatalog.Metadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> metadataBuilder_; - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public datacatalog.Datacatalog.Metadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public Builder setMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public Builder setMetadata( - datacatalog.Datacatalog.Metadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public Builder mergeMetadata(datacatalog.Datacatalog.Metadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - datacatalog.Datacatalog.Metadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public datacatalog.Datacatalog.Metadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - public datacatalog.Datacatalog.MetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - datacatalog.Datacatalog.Metadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Free-form metadata associated with the artifact
-       * 
- * - * .datacatalog.Metadata metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.Metadata, datacatalog.Datacatalog.Metadata.Builder, datacatalog.Datacatalog.MetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.util.List partitions_ = - java.util.Collections.emptyList(); - private void ensurePartitionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - partitions_ = new java.util.ArrayList(partitions_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> partitionsBuilder_; - - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public java.util.List getPartitionsList() { - if (partitionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(partitions_); - } else { - return partitionsBuilder_.getMessageList(); - } - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public int getPartitionsCount() { - if (partitionsBuilder_ == null) { - return partitions_.size(); - } else { - return partitionsBuilder_.getCount(); - } - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.Partition getPartitions(int index) { - if (partitionsBuilder_ == null) { - return partitions_.get(index); - } else { - return partitionsBuilder_.getMessage(index); - } - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder setPartitions( - int index, datacatalog.Datacatalog.Partition value) { - if (partitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartitionsIsMutable(); - partitions_.set(index, value); - onChanged(); - } else { - partitionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder setPartitions( - int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { - if (partitionsBuilder_ == null) { - ensurePartitionsIsMutable(); - partitions_.set(index, builderForValue.build()); - onChanged(); - } else { - partitionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder addPartitions(datacatalog.Datacatalog.Partition value) { - if (partitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartitionsIsMutable(); - partitions_.add(value); - onChanged(); - } else { - partitionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder addPartitions( - int index, datacatalog.Datacatalog.Partition value) { - if (partitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartitionsIsMutable(); - partitions_.add(index, value); - onChanged(); - } else { - partitionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder addPartitions( - datacatalog.Datacatalog.Partition.Builder builderForValue) { - if (partitionsBuilder_ == null) { - ensurePartitionsIsMutable(); - partitions_.add(builderForValue.build()); - onChanged(); - } else { - partitionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder addPartitions( - int index, datacatalog.Datacatalog.Partition.Builder builderForValue) { - if (partitionsBuilder_ == null) { - ensurePartitionsIsMutable(); - partitions_.add(index, builderForValue.build()); - onChanged(); - } else { - partitionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder addAllPartitions( - java.lang.Iterable values) { - if (partitionsBuilder_ == null) { - ensurePartitionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, partitions_); - onChanged(); - } else { - partitionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder clearPartitions() { - if (partitionsBuilder_ == null) { - partitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - partitionsBuilder_.clear(); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public Builder removePartitions(int index) { - if (partitionsBuilder_ == null) { - ensurePartitionsIsMutable(); - partitions_.remove(index); - onChanged(); - } else { - partitionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.Partition.Builder getPartitionsBuilder( - int index) { - return getPartitionsFieldBuilder().getBuilder(index); - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.PartitionOrBuilder getPartitionsOrBuilder( - int index) { - if (partitionsBuilder_ == null) { - return partitions_.get(index); } else { - return partitionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public java.util.List - getPartitionsOrBuilderList() { - if (partitionsBuilder_ != null) { - return partitionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(partitions_); - } - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder() { - return getPartitionsFieldBuilder().addBuilder( - datacatalog.Datacatalog.Partition.getDefaultInstance()); - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public datacatalog.Datacatalog.Partition.Builder addPartitionsBuilder( - int index) { - return getPartitionsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.Partition.getDefaultInstance()); - } - /** - * repeated .datacatalog.Partition partitions = 5; - */ - public java.util.List - getPartitionsBuilderList() { - return getPartitionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder> - getPartitionsFieldBuilder() { - if (partitionsBuilder_ == null) { - partitionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Partition, datacatalog.Datacatalog.Partition.Builder, datacatalog.Datacatalog.PartitionOrBuilder>( - partitions_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - partitions_ = null; - } - return partitionsBuilder_; - } - - private java.util.List tags_ = - java.util.Collections.emptyList(); - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - tags_ = new java.util.ArrayList(tags_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> tagsBuilder_; - - /** - * repeated .datacatalog.Tag tags = 6; - */ - public java.util.List getTagsList() { - if (tagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(tags_); - } else { - return tagsBuilder_.getMessageList(); - } - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public int getTagsCount() { - if (tagsBuilder_ == null) { - return tags_.size(); - } else { - return tagsBuilder_.getCount(); - } - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.Tag getTags(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessage(index); - } - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder setTags( - int index, datacatalog.Datacatalog.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - } else { - tagsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder setTags( - int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.set(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder addTags(datacatalog.Datacatalog.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - } else { - tagsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder addTags( - int index, datacatalog.Datacatalog.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(index, value); - onChanged(); - } else { - tagsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder addTags( - datacatalog.Datacatalog.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder addTags( - int index, datacatalog.Datacatalog.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder addAllTags( - java.lang.Iterable values) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - } else { - tagsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder clearTags() { - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - tagsBuilder_.clear(); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public Builder removeTags(int index) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.remove(index); - onChanged(); - } else { - tagsBuilder_.remove(index); - } - return this; - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.Tag.Builder getTagsBuilder( - int index) { - return getTagsFieldBuilder().getBuilder(index); - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.TagOrBuilder getTagsOrBuilder( - int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); } else { - return tagsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public java.util.List - getTagsOrBuilderList() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tags_); - } - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.Tag.Builder addTagsBuilder() { - return getTagsFieldBuilder().addBuilder( - datacatalog.Datacatalog.Tag.getDefaultInstance()); - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public datacatalog.Datacatalog.Tag.Builder addTagsBuilder( - int index) { - return getTagsFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.Tag.getDefaultInstance()); - } - /** - * repeated .datacatalog.Tag tags = 6; - */ - public java.util.List - getTagsBuilderList() { - return getTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder> - getTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.Tag, datacatalog.Datacatalog.Tag.Builder, datacatalog.Datacatalog.TagOrBuilder>( - tags_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * creation timestamp of artifact, autogenerated by service
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - @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:datacatalog.Artifact) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Artifact) - private static final datacatalog.Datacatalog.Artifact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Artifact(); - } - - public static datacatalog.Datacatalog.Artifact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Artifact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Artifact(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 datacatalog.Datacatalog.Artifact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactData) - com.google.protobuf.MessageOrBuilder { - - /** - * string name = 1; - */ - java.lang.String getName(); - /** - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .flyteidl.core.Literal value = 2; - */ - boolean hasValue(); - /** - * .flyteidl.core.Literal value = 2; - */ - flyteidl.core.Literals.Literal getValue(); - /** - * .flyteidl.core.Literal value = 2; - */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); - } - /** - *
-   * ArtifactData that belongs to an artifact
-   * 
- * - * Protobuf type {@code datacatalog.ArtifactData} - */ - public static final class ArtifactData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ArtifactData) - ArtifactDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactData.newBuilder() to construct. - private ArtifactData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactData() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactData( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private flyteidl.core.Literals.Literal value_; - /** - * .flyteidl.core.Literal value = 2; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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 datacatalog.Datacatalog.ArtifactData)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ArtifactData other = (datacatalog.Datacatalog.ArtifactData) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ArtifactData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactData 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 datacatalog.Datacatalog.ArtifactData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactData 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 datacatalog.Datacatalog.ArtifactData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactData 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(datacatalog.Datacatalog.ArtifactData 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; - } - /** - *
-     * ArtifactData that belongs to an artifact
-     * 
- * - * Protobuf type {@code datacatalog.ArtifactData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactData) - datacatalog.Datacatalog.ArtifactDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ArtifactData.class, datacatalog.Datacatalog.ArtifactData.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ArtifactData.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(); - name_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactData_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { - return datacatalog.Datacatalog.ArtifactData.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactData build() { - datacatalog.Datacatalog.ArtifactData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactData buildPartial() { - datacatalog.Datacatalog.ArtifactData result = new datacatalog.Datacatalog.ArtifactData(this); - result.name_ = name_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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 datacatalog.Datacatalog.ArtifactData) { - return mergeFrom((datacatalog.Datacatalog.ArtifactData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ArtifactData other) { - if (other == datacatalog.Datacatalog.ArtifactData.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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 { - datacatalog.Datacatalog.ArtifactData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ArtifactData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Literals.Literal value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; - /** - * .flyteidl.core.Literal value = 2; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Literal value = 2; - */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - } - /** - * .flyteidl.core.Literal value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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:datacatalog.ArtifactData) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactData) - private static final datacatalog.Datacatalog.ArtifactData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactData(); - } - - public static datacatalog.Datacatalog.ArtifactData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactData(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 datacatalog.Datacatalog.ArtifactData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TagOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Tag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of tag
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * Name of tag
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The tagged artifact
-     * 
- * - * string artifact_id = 2; - */ - java.lang.String getArtifactId(); - /** - *
-     * The tagged artifact
-     * 
- * - * string artifact_id = 2; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - boolean hasDataset(); - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - datacatalog.Datacatalog.DatasetID getDataset(); - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder(); - } - /** - *
-   * Tag message that is unique to a Dataset. It is associated to a single artifact and
-   * can be retrieved by name later.
-   * 
- * - * Protobuf type {@code datacatalog.Tag} - */ - public static final class Tag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Tag) - TagOrBuilder { - private static final long serialVersionUID = 0L; - // Use Tag.newBuilder() to construct. - private Tag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Tag() { - name_ = ""; - artifactId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Tag( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactId_ = s; - break; - } - case 26: { - datacatalog.Datacatalog.DatasetID.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = input.readMessage(datacatalog.Datacatalog.DatasetID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = 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 datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Name of tag
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Name of tag
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object artifactId_; - /** - *
-     * The tagged artifact
-     * 
- * - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } - } - /** - *
-     * The tagged artifact
-     * 
- * - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATASET_FIELD_NUMBER = 3; - private datacatalog.Datacatalog.DatasetID dataset_; - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public boolean hasDataset() { - return dataset_ != null; - } - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - /** - *
-     * The Dataset that this tag belongs to
-     * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - return getDataset(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getArtifactIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, artifactId_); - } - if (dataset_ != null) { - output.writeMessage(3, getDataset()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getArtifactIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, artifactId_); - } - if (dataset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDataset()); - } - 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 datacatalog.Datacatalog.Tag)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Tag other = (datacatalog.Datacatalog.Tag) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - if (hasDataset() != other.hasDataset()) return false; - if (hasDataset()) { - if (!getDataset() - .equals(other.getDataset())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - if (hasDataset()) { - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Tag parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Tag parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Tag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Tag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Tag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Tag parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Tag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Tag 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 datacatalog.Datacatalog.Tag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Tag 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 datacatalog.Datacatalog.Tag parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Tag 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(datacatalog.Datacatalog.Tag 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; - } - /** - *
-     * Tag message that is unique to a Dataset. It is associated to a single artifact and
-     * can be retrieved by name later.
-     * 
- * - * Protobuf type {@code datacatalog.Tag} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Tag) - datacatalog.Datacatalog.TagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Tag.class, datacatalog.Datacatalog.Tag.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Tag.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(); - name_ = ""; - - artifactId_ = ""; - - if (datasetBuilder_ == null) { - dataset_ = null; - } else { - dataset_ = null; - datasetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Tag_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Tag getDefaultInstanceForType() { - return datacatalog.Datacatalog.Tag.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Tag build() { - datacatalog.Datacatalog.Tag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Tag buildPartial() { - datacatalog.Datacatalog.Tag result = new datacatalog.Datacatalog.Tag(this); - result.name_ = name_; - result.artifactId_ = artifactId_; - if (datasetBuilder_ == null) { - result.dataset_ = dataset_; - } else { - result.dataset_ = datasetBuilder_.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 datacatalog.Datacatalog.Tag) { - return mergeFrom((datacatalog.Datacatalog.Tag)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Tag other) { - if (other == datacatalog.Datacatalog.Tag.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getArtifactId().isEmpty()) { - artifactId_ = other.artifactId_; - onChanged(); - } - if (other.hasDataset()) { - mergeDataset(other.getDataset()); - } - 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 { - datacatalog.Datacatalog.Tag parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Tag) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Name of tag
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of tag
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of tag
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of tag
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Name of tag
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object artifactId_ = ""; - /** - *
-       * The tagged artifact
-       * 
- * - * string artifact_id = 2; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The tagged artifact
-       * 
- * - * string artifact_id = 2; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The tagged artifact
-       * 
- * - * string artifact_id = 2; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactId_ = value; - onChanged(); - return this; - } - /** - *
-       * The tagged artifact
-       * 
- * - * string artifact_id = 2; - */ - public Builder clearArtifactId() { - - artifactId_ = getDefaultInstance().getArtifactId(); - onChanged(); - return this; - } - /** - *
-       * The tagged artifact
-       * 
- * - * string artifact_id = 2; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactId_ = value; - onChanged(); - return this; - } - - private datacatalog.Datacatalog.DatasetID dataset_; - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> datasetBuilder_; - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public boolean hasDataset() { - return datasetBuilder_ != null || dataset_ != null; - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public datacatalog.Datacatalog.DatasetID getDataset() { - if (datasetBuilder_ == null) { - return dataset_ == null ? datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } else { - return datasetBuilder_.getMessage(); - } - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public Builder setDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - onChanged(); - } else { - datasetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public Builder setDataset( - datacatalog.Datacatalog.DatasetID.Builder builderForValue) { - if (datasetBuilder_ == null) { - dataset_ = builderForValue.build(); - onChanged(); - } else { - datasetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public Builder mergeDataset(datacatalog.Datacatalog.DatasetID value) { - if (datasetBuilder_ == null) { - if (dataset_ != null) { - dataset_ = - datacatalog.Datacatalog.DatasetID.newBuilder(dataset_).mergeFrom(value).buildPartial(); - } else { - dataset_ = value; - } - onChanged(); - } else { - datasetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public Builder clearDataset() { - if (datasetBuilder_ == null) { - dataset_ = null; - onChanged(); - } else { - dataset_ = null; - datasetBuilder_ = null; - } - - return this; - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public datacatalog.Datacatalog.DatasetID.Builder getDatasetBuilder() { - - onChanged(); - return getDatasetFieldBuilder().getBuilder(); - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - public datacatalog.Datacatalog.DatasetIDOrBuilder getDatasetOrBuilder() { - if (datasetBuilder_ != null) { - return datasetBuilder_.getMessageOrBuilder(); - } else { - return dataset_ == null ? - datacatalog.Datacatalog.DatasetID.getDefaultInstance() : dataset_; - } - } - /** - *
-       * The Dataset that this tag belongs to
-       * 
- * - * .datacatalog.DatasetID dataset = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder> - getDatasetFieldBuilder() { - if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetID, datacatalog.Datacatalog.DatasetID.Builder, datacatalog.Datacatalog.DatasetIDOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); - dataset_ = null; - } - return datasetBuilder_; - } - @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:datacatalog.Tag) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Tag) - private static final datacatalog.Datacatalog.Tag DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Tag(); - } - - public static datacatalog.Datacatalog.Tag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Tag(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 datacatalog.Datacatalog.Tag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.Metadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - int getKeyMapCount(); - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - boolean containsKeyMap( - java.lang.String key); - /** - * Use {@link #getKeyMapMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getKeyMap(); - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - java.util.Map - getKeyMapMap(); - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - java.lang.String getKeyMapOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - java.lang.String getKeyMapOrThrow( - java.lang.String key); - } - /** - *
-   * Metadata representation for artifacts and datasets
-   * 
- * - * Protobuf type {@code datacatalog.Metadata} - */ - public static final class Metadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.Metadata) - MetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use Metadata.newBuilder() to construct. - private Metadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Metadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Metadata( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keyMap_ = com.google.protobuf.MapField.newMapField( - KeyMapDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - keyMap__ = input.readMessage( - KeyMapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - keyMap_.getMutableMap().put( - keyMap__.getKey(), keyMap__.getValue()); - 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 datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetKeyMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); - } - - public static final int KEY_MAP_FIELD_NUMBER = 1; - private static final class KeyMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - datacatalog.Datacatalog.internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> keyMap_; - private com.google.protobuf.MapField - internalGetKeyMap() { - if (keyMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - KeyMapDefaultEntryHolder.defaultEntry); - } - return keyMap_; - } - - public int getKeyMapCount() { - return internalGetKeyMap().getMap().size(); - } - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - public boolean containsKeyMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetKeyMap().getMap().containsKey(key); - } - /** - * Use {@link #getKeyMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getKeyMap() { - return getKeyMapMap(); - } - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - public java.util.Map getKeyMapMap() { - return internalGetKeyMap().getMap(); - } - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - public java.lang.String getKeyMapOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetKeyMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * key map is a dictionary of key/val strings that represent metadata
-     * 
- * - * map<string, string> key_map = 1; - */ - - public java.lang.String getKeyMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetKeyMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetKeyMap(), - KeyMapDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetKeyMap().getMap().entrySet()) { - com.google.protobuf.MapEntry - keyMap__ = KeyMapDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keyMap__); - } - 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 datacatalog.Datacatalog.Metadata)) { - return super.equals(obj); - } - datacatalog.Datacatalog.Metadata other = (datacatalog.Datacatalog.Metadata) obj; - - if (!internalGetKeyMap().equals( - other.internalGetKeyMap())) 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 (!internalGetKeyMap().getMap().isEmpty()) { - hash = (37 * hash) + KEY_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetKeyMap().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.Metadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Metadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Metadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.Metadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Metadata 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 datacatalog.Datacatalog.Metadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Metadata 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 datacatalog.Datacatalog.Metadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.Metadata 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(datacatalog.Datacatalog.Metadata 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; - } - /** - *
-     * Metadata representation for artifacts and datasets
-     * 
- * - * Protobuf type {@code datacatalog.Metadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.Metadata) - datacatalog.Datacatalog.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetKeyMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableKeyMap(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.Metadata.class, datacatalog.Datacatalog.Metadata.Builder.class); - } - - // Construct using datacatalog.Datacatalog.Metadata.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(); - internalGetMutableKeyMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_Metadata_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { - return datacatalog.Datacatalog.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.Metadata build() { - datacatalog.Datacatalog.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.Metadata buildPartial() { - datacatalog.Datacatalog.Metadata result = new datacatalog.Datacatalog.Metadata(this); - int from_bitField0_ = bitField0_; - result.keyMap_ = internalGetKeyMap(); - result.keyMap_.makeImmutable(); - 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 datacatalog.Datacatalog.Metadata) { - return mergeFrom((datacatalog.Datacatalog.Metadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.Metadata other) { - if (other == datacatalog.Datacatalog.Metadata.getDefaultInstance()) return this; - internalGetMutableKeyMap().mergeFrom( - other.internalGetKeyMap()); - 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 { - datacatalog.Datacatalog.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.Metadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> keyMap_; - private com.google.protobuf.MapField - internalGetKeyMap() { - if (keyMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - KeyMapDefaultEntryHolder.defaultEntry); - } - return keyMap_; - } - private com.google.protobuf.MapField - internalGetMutableKeyMap() { - onChanged();; - if (keyMap_ == null) { - keyMap_ = com.google.protobuf.MapField.newMapField( - KeyMapDefaultEntryHolder.defaultEntry); - } - if (!keyMap_.isMutable()) { - keyMap_ = keyMap_.copy(); - } - return keyMap_; - } - - public int getKeyMapCount() { - return internalGetKeyMap().getMap().size(); - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public boolean containsKeyMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetKeyMap().getMap().containsKey(key); - } - /** - * Use {@link #getKeyMapMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getKeyMap() { - return getKeyMapMap(); - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public java.util.Map getKeyMapMap() { - return internalGetKeyMap().getMap(); - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public java.lang.String getKeyMapOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetKeyMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public java.lang.String getKeyMapOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetKeyMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearKeyMap() { - internalGetMutableKeyMap().getMutableMap() - .clear(); - return this; - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public Builder removeKeyMap( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKeyMap().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableKeyMap() { - return internalGetMutableKeyMap().getMutableMap(); - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - public Builder putKeyMap( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableKeyMap().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * key map is a dictionary of key/val strings that represent metadata
-       * 
- * - * map<string, string> key_map = 1; - */ - - public Builder putAllKeyMap( - java.util.Map values) { - internalGetMutableKeyMap().getMutableMap() - .putAll(values); - return this; - } - @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:datacatalog.Metadata) - } - - // @@protoc_insertion_point(class_scope:datacatalog.Metadata) - private static final datacatalog.Datacatalog.Metadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.Metadata(); - } - - public static datacatalog.Datacatalog.Metadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Metadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(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 datacatalog.Datacatalog.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FilterExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.FilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - java.util.List - getFiltersList(); - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index); - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - int getFiltersCount(); - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - java.util.List - getFiltersOrBuilderList(); - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( - int index); - } - /** - *
-   * Filter expression that is composed of a combination of single filters
-   * 
- * - * Protobuf type {@code datacatalog.FilterExpression} - */ - public static final class FilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.FilterExpression) - FilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use FilterExpression.newBuilder() to construct. - private FilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FilterExpression() { - filters_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FilterExpression( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - filters_.add( - input.readMessage(datacatalog.Datacatalog.SinglePropertyFilter.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - filters_ = java.util.Collections.unmodifiableList(filters_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); - } - - public static final int FILTERS_FIELD_NUMBER = 1; - private java.util.List filters_; - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public java.util.List getFiltersList() { - return filters_; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public java.util.List - getFiltersOrBuilderList() { - return filters_; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public int getFiltersCount() { - return filters_.size(); - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { - return filters_.get(index); - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( - int index) { - return filters_.get(index); - } - - 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 { - for (int i = 0; i < filters_.size(); i++) { - output.writeMessage(1, filters_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < filters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filters_.get(i)); - } - 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 datacatalog.Datacatalog.FilterExpression)) { - return super.equals(obj); - } - datacatalog.Datacatalog.FilterExpression other = (datacatalog.Datacatalog.FilterExpression) obj; - - if (!getFiltersList() - .equals(other.getFiltersList())) 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 (getFiltersCount() > 0) { - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFiltersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.FilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.FilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.FilterExpression 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 datacatalog.Datacatalog.FilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.FilterExpression 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 datacatalog.Datacatalog.FilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.FilterExpression 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(datacatalog.Datacatalog.FilterExpression 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; - } - /** - *
-     * Filter expression that is composed of a combination of single filters
-     * 
- * - * Protobuf type {@code datacatalog.FilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.FilterExpression) - datacatalog.Datacatalog.FilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.FilterExpression.class, datacatalog.Datacatalog.FilterExpression.Builder.class); - } - - // Construct using datacatalog.Datacatalog.FilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getFiltersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - filtersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_FilterExpression_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { - return datacatalog.Datacatalog.FilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.FilterExpression build() { - datacatalog.Datacatalog.FilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.FilterExpression buildPartial() { - datacatalog.Datacatalog.FilterExpression result = new datacatalog.Datacatalog.FilterExpression(this); - int from_bitField0_ = bitField0_; - if (filtersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filters_ = java.util.Collections.unmodifiableList(filters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filters_ = filters_; - } else { - result.filters_ = filtersBuilder_.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 datacatalog.Datacatalog.FilterExpression) { - return mergeFrom((datacatalog.Datacatalog.FilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.FilterExpression other) { - if (other == datacatalog.Datacatalog.FilterExpression.getDefaultInstance()) return this; - if (filtersBuilder_ == null) { - if (!other.filters_.isEmpty()) { - if (filters_.isEmpty()) { - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFiltersIsMutable(); - filters_.addAll(other.filters_); - } - onChanged(); - } - } else { - if (!other.filters_.isEmpty()) { - if (filtersBuilder_.isEmpty()) { - filtersBuilder_.dispose(); - filtersBuilder_ = null; - filters_ = other.filters_; - bitField0_ = (bitField0_ & ~0x00000001); - filtersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFiltersFieldBuilder() : null; - } else { - filtersBuilder_.addAllMessages(other.filters_); - } - } - } - 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 { - datacatalog.Datacatalog.FilterExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.FilterExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List filters_ = - java.util.Collections.emptyList(); - private void ensureFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filters_ = new java.util.ArrayList(filters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> filtersBuilder_; - - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public java.util.List getFiltersList() { - if (filtersBuilder_ == null) { - return java.util.Collections.unmodifiableList(filters_); - } else { - return filtersBuilder_.getMessageList(); - } - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public int getFiltersCount() { - if (filtersBuilder_ == null) { - return filters_.size(); - } else { - return filtersBuilder_.getCount(); - } - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilter getFilters(int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); - } else { - return filtersBuilder_.getMessage(index); - } - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder setFilters( - int index, datacatalog.Datacatalog.SinglePropertyFilter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.set(index, value); - onChanged(); - } else { - filtersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder setFilters( - int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.set(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder addFilters(datacatalog.Datacatalog.SinglePropertyFilter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(value); - onChanged(); - } else { - filtersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder addFilters( - int index, datacatalog.Datacatalog.SinglePropertyFilter value) { - if (filtersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFiltersIsMutable(); - filters_.add(index, value); - onChanged(); - } else { - filtersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder addFilters( - datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder addFilters( - int index, datacatalog.Datacatalog.SinglePropertyFilter.Builder builderForValue) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.add(index, builderForValue.build()); - onChanged(); - } else { - filtersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder addAllFilters( - java.lang.Iterable values) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filters_); - onChanged(); - } else { - filtersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder clearFilters() { - if (filtersBuilder_ == null) { - filters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filtersBuilder_.clear(); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public Builder removeFilters(int index) { - if (filtersBuilder_ == null) { - ensureFiltersIsMutable(); - filters_.remove(index); - onChanged(); - } else { - filtersBuilder_.remove(index); - } - return this; - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilter.Builder getFiltersBuilder( - int index) { - return getFiltersFieldBuilder().getBuilder(index); - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilterOrBuilder getFiltersOrBuilder( - int index) { - if (filtersBuilder_ == null) { - return filters_.get(index); } else { - return filtersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public java.util.List - getFiltersOrBuilderList() { - if (filtersBuilder_ != null) { - return filtersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filters_); - } - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder() { - return getFiltersFieldBuilder().addBuilder( - datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public datacatalog.Datacatalog.SinglePropertyFilter.Builder addFiltersBuilder( - int index) { - return getFiltersFieldBuilder().addBuilder( - index, datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()); - } - /** - * repeated .datacatalog.SinglePropertyFilter filters = 1; - */ - public java.util.List - getFiltersBuilderList() { - return getFiltersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder> - getFiltersFieldBuilder() { - if (filtersBuilder_ == null) { - filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - datacatalog.Datacatalog.SinglePropertyFilter, datacatalog.Datacatalog.SinglePropertyFilter.Builder, datacatalog.Datacatalog.SinglePropertyFilterOrBuilder>( - filters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - filters_ = null; - } - return filtersBuilder_; - } - @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:datacatalog.FilterExpression) - } - - // @@protoc_insertion_point(class_scope:datacatalog.FilterExpression) - private static final datacatalog.Datacatalog.FilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.FilterExpression(); - } - - public static datacatalog.Datacatalog.FilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpression(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 datacatalog.Datacatalog.FilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SinglePropertyFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.SinglePropertyFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - boolean hasTagFilter(); - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - datacatalog.Datacatalog.TagPropertyFilter getTagFilter(); - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder(); - - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - boolean hasPartitionFilter(); - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter(); - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder(); - - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - boolean hasArtifactFilter(); - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter(); - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder(); - - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - boolean hasDatasetFilter(); - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter(); - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder(); - - /** - *
-     * field 10 in case we add more entities to query
-     * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - int getOperatorValue(); - /** - *
-     * field 10 in case we add more entities to query
-     * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator(); - - public datacatalog.Datacatalog.SinglePropertyFilter.PropertyFilterCase getPropertyFilterCase(); - } - /** - *
-   * A single property to filter on.
-   * 
- * - * Protobuf type {@code datacatalog.SinglePropertyFilter} - */ - public static final class SinglePropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.SinglePropertyFilter) - SinglePropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use SinglePropertyFilter.newBuilder() to construct. - private SinglePropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SinglePropertyFilter() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SinglePropertyFilter( - 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: { - datacatalog.Datacatalog.TagPropertyFilter.Builder subBuilder = null; - if (propertyFilterCase_ == 1) { - subBuilder = ((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_).toBuilder(); - } - propertyFilter_ = - input.readMessage(datacatalog.Datacatalog.TagPropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); - propertyFilter_ = subBuilder.buildPartial(); - } - propertyFilterCase_ = 1; - break; - } - case 18: { - datacatalog.Datacatalog.PartitionPropertyFilter.Builder subBuilder = null; - if (propertyFilterCase_ == 2) { - subBuilder = ((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_).toBuilder(); - } - propertyFilter_ = - input.readMessage(datacatalog.Datacatalog.PartitionPropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); - propertyFilter_ = subBuilder.buildPartial(); - } - propertyFilterCase_ = 2; - break; - } - case 26: { - datacatalog.Datacatalog.ArtifactPropertyFilter.Builder subBuilder = null; - if (propertyFilterCase_ == 3) { - subBuilder = ((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_).toBuilder(); - } - propertyFilter_ = - input.readMessage(datacatalog.Datacatalog.ArtifactPropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); - propertyFilter_ = subBuilder.buildPartial(); - } - propertyFilterCase_ = 3; - break; - } - case 34: { - datacatalog.Datacatalog.DatasetPropertyFilter.Builder subBuilder = null; - if (propertyFilterCase_ == 4) { - subBuilder = ((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_).toBuilder(); - } - propertyFilter_ = - input.readMessage(datacatalog.Datacatalog.DatasetPropertyFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); - propertyFilter_ = subBuilder.buildPartial(); - } - propertyFilterCase_ = 4; - break; - } - case 80: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - 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 datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); - } - - /** - *
-     * as use-cases come up we can add more operators, ex: gte, like, not eq etc.
-     * 
- * - * Protobuf enum {@code datacatalog.SinglePropertyFilter.ComparisonOperator} - */ - public enum ComparisonOperator - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EQUALS = 0; - */ - EQUALS(0), - UNRECOGNIZED(-1), - ; - - /** - * EQUALS = 0; - */ - public static final int EQUALS_VALUE = 0; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ComparisonOperator valueOf(int value) { - return forNumber(value); - } - - public static ComparisonOperator forNumber(int value) { - switch (value) { - case 0: return EQUALS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ComparisonOperator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComparisonOperator findValueByNumber(int number) { - return ComparisonOperator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datacatalog.Datacatalog.SinglePropertyFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final ComparisonOperator[] VALUES = values(); - - public static ComparisonOperator valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ComparisonOperator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datacatalog.SinglePropertyFilter.ComparisonOperator) - } - - private int propertyFilterCase_ = 0; - private java.lang.Object propertyFilter_; - public enum PropertyFilterCase - implements com.google.protobuf.Internal.EnumLite { - TAG_FILTER(1), - PARTITION_FILTER(2), - ARTIFACT_FILTER(3), - DATASET_FILTER(4), - PROPERTYFILTER_NOT_SET(0); - private final int value; - private PropertyFilterCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropertyFilterCase valueOf(int value) { - return forNumber(value); - } - - public static PropertyFilterCase forNumber(int value) { - switch (value) { - case 1: return TAG_FILTER; - case 2: return PARTITION_FILTER; - case 3: return ARTIFACT_FILTER; - case 4: return DATASET_FILTER; - case 0: return PROPERTYFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PropertyFilterCase - getPropertyFilterCase() { - return PropertyFilterCase.forNumber( - propertyFilterCase_); - } - - public static final int TAG_FILTER_FIELD_NUMBER = 1; - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public boolean hasTagFilter() { - return propertyFilterCase_ == 1; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { - if (propertyFilterCase_ == 1) { - return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { - if (propertyFilterCase_ == 1) { - return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - - public static final int PARTITION_FILTER_FIELD_NUMBER = 2; - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public boolean hasPartitionFilter() { - return propertyFilterCase_ == 2; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { - if (propertyFilterCase_ == 2) { - return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { - if (propertyFilterCase_ == 2) { - return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - - public static final int ARTIFACT_FILTER_FIELD_NUMBER = 3; - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public boolean hasArtifactFilter() { - return propertyFilterCase_ == 3; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { - if (propertyFilterCase_ == 3) { - return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { - if (propertyFilterCase_ == 3) { - return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - - public static final int DATASET_FILTER_FIELD_NUMBER = 4; - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public boolean hasDatasetFilter() { - return propertyFilterCase_ == 4; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { - if (propertyFilterCase_ == 4) { - return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { - if (propertyFilterCase_ == 4) { - return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - - public static final int OPERATOR_FIELD_NUMBER = 10; - private int operator_; - /** - *
-     * field 10 in case we add more entities to query
-     * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public int getOperatorValue() { - return operator_; - } - /** - *
-     * field 10 in case we add more entities to query
-     * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); - return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.UNRECOGNIZED : result; - } - - 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 (propertyFilterCase_ == 1) { - output.writeMessage(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 2) { - output.writeMessage(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 3) { - output.writeMessage(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 4) { - output.writeMessage(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); - } - if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { - output.writeEnum(10, operator_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (propertyFilterCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_); - } - if (propertyFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_); - } - if (operator_ != datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.EQUALS.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, operator_); - } - 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 datacatalog.Datacatalog.SinglePropertyFilter)) { - return super.equals(obj); - } - datacatalog.Datacatalog.SinglePropertyFilter other = (datacatalog.Datacatalog.SinglePropertyFilter) obj; - - if (operator_ != other.operator_) return false; - if (!getPropertyFilterCase().equals(other.getPropertyFilterCase())) return false; - switch (propertyFilterCase_) { - case 1: - if (!getTagFilter() - .equals(other.getTagFilter())) return false; - break; - case 2: - if (!getPartitionFilter() - .equals(other.getPartitionFilter())) return false; - break; - case 3: - if (!getArtifactFilter() - .equals(other.getArtifactFilter())) return false; - break; - case 4: - if (!getDatasetFilter() - .equals(other.getDatasetFilter())) 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(); - hash = (37 * hash) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - switch (propertyFilterCase_) { - case 1: - hash = (37 * hash) + TAG_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getTagFilter().hashCode(); - break; - case 2: - hash = (37 * hash) + PARTITION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getPartitionFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + ARTIFACT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getArtifactFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + DATASET_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDatasetFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.SinglePropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.SinglePropertyFilter 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 datacatalog.Datacatalog.SinglePropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.SinglePropertyFilter 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 datacatalog.Datacatalog.SinglePropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.SinglePropertyFilter 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(datacatalog.Datacatalog.SinglePropertyFilter 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; - } - /** - *
-     * A single property to filter on.
-     * 
- * - * Protobuf type {@code datacatalog.SinglePropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.SinglePropertyFilter) - datacatalog.Datacatalog.SinglePropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.SinglePropertyFilter.class, datacatalog.Datacatalog.SinglePropertyFilter.Builder.class); - } - - // Construct using datacatalog.Datacatalog.SinglePropertyFilter.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(); - operator_ = 0; - - propertyFilterCase_ = 0; - propertyFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_SinglePropertyFilter_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { - return datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.SinglePropertyFilter build() { - datacatalog.Datacatalog.SinglePropertyFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.SinglePropertyFilter buildPartial() { - datacatalog.Datacatalog.SinglePropertyFilter result = new datacatalog.Datacatalog.SinglePropertyFilter(this); - if (propertyFilterCase_ == 1) { - if (tagFilterBuilder_ == null) { - result.propertyFilter_ = propertyFilter_; - } else { - result.propertyFilter_ = tagFilterBuilder_.build(); - } - } - if (propertyFilterCase_ == 2) { - if (partitionFilterBuilder_ == null) { - result.propertyFilter_ = propertyFilter_; - } else { - result.propertyFilter_ = partitionFilterBuilder_.build(); - } - } - if (propertyFilterCase_ == 3) { - if (artifactFilterBuilder_ == null) { - result.propertyFilter_ = propertyFilter_; - } else { - result.propertyFilter_ = artifactFilterBuilder_.build(); - } - } - if (propertyFilterCase_ == 4) { - if (datasetFilterBuilder_ == null) { - result.propertyFilter_ = propertyFilter_; - } else { - result.propertyFilter_ = datasetFilterBuilder_.build(); - } - } - result.operator_ = operator_; - result.propertyFilterCase_ = propertyFilterCase_; - 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 datacatalog.Datacatalog.SinglePropertyFilter) { - return mergeFrom((datacatalog.Datacatalog.SinglePropertyFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.SinglePropertyFilter other) { - if (other == datacatalog.Datacatalog.SinglePropertyFilter.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - switch (other.getPropertyFilterCase()) { - case TAG_FILTER: { - mergeTagFilter(other.getTagFilter()); - break; - } - case PARTITION_FILTER: { - mergePartitionFilter(other.getPartitionFilter()); - break; - } - case ARTIFACT_FILTER: { - mergeArtifactFilter(other.getArtifactFilter()); - break; - } - case DATASET_FILTER: { - mergeDatasetFilter(other.getDatasetFilter()); - break; - } - case PROPERTYFILTER_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 { - datacatalog.Datacatalog.SinglePropertyFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.SinglePropertyFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int propertyFilterCase_ = 0; - private java.lang.Object propertyFilter_; - public PropertyFilterCase - getPropertyFilterCase() { - return PropertyFilterCase.forNumber( - propertyFilterCase_); - } - - public Builder clearPropertyFilter() { - propertyFilterCase_ = 0; - propertyFilter_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> tagFilterBuilder_; - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public boolean hasTagFilter() { - return propertyFilterCase_ == 1; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public datacatalog.Datacatalog.TagPropertyFilter getTagFilter() { - if (tagFilterBuilder_ == null) { - if (propertyFilterCase_ == 1) { - return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } else { - if (propertyFilterCase_ == 1) { - return tagFilterBuilder_.getMessage(); - } - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public Builder setTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { - if (tagFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyFilter_ = value; - onChanged(); - } else { - tagFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 1; - return this; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public Builder setTagFilter( - datacatalog.Datacatalog.TagPropertyFilter.Builder builderForValue) { - if (tagFilterBuilder_ == null) { - propertyFilter_ = builderForValue.build(); - onChanged(); - } else { - tagFilterBuilder_.setMessage(builderForValue.build()); - } - propertyFilterCase_ = 1; - return this; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public Builder mergeTagFilter(datacatalog.Datacatalog.TagPropertyFilter value) { - if (tagFilterBuilder_ == null) { - if (propertyFilterCase_ == 1 && - propertyFilter_ != datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) { - propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.newBuilder((datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_) - .mergeFrom(value).buildPartial(); - } else { - propertyFilter_ = value; - } - onChanged(); - } else { - if (propertyFilterCase_ == 1) { - tagFilterBuilder_.mergeFrom(value); - } - tagFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 1; - return this; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public Builder clearTagFilter() { - if (tagFilterBuilder_ == null) { - if (propertyFilterCase_ == 1) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - onChanged(); - } - } else { - if (propertyFilterCase_ == 1) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - } - tagFilterBuilder_.clear(); - } - return this; - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public datacatalog.Datacatalog.TagPropertyFilter.Builder getTagFilterBuilder() { - return getTagFilterFieldBuilder().getBuilder(); - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - public datacatalog.Datacatalog.TagPropertyFilterOrBuilder getTagFilterOrBuilder() { - if ((propertyFilterCase_ == 1) && (tagFilterBuilder_ != null)) { - return tagFilterBuilder_.getMessageOrBuilder(); - } else { - if (propertyFilterCase_ == 1) { - return (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.TagPropertyFilter tag_filter = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder> - getTagFilterFieldBuilder() { - if (tagFilterBuilder_ == null) { - if (!(propertyFilterCase_ == 1)) { - propertyFilter_ = datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - tagFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.TagPropertyFilter, datacatalog.Datacatalog.TagPropertyFilter.Builder, datacatalog.Datacatalog.TagPropertyFilterOrBuilder>( - (datacatalog.Datacatalog.TagPropertyFilter) propertyFilter_, - getParentForChildren(), - isClean()); - propertyFilter_ = null; - } - propertyFilterCase_ = 1; - onChanged();; - return tagFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> partitionFilterBuilder_; - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public boolean hasPartitionFilter() { - return propertyFilterCase_ == 2; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public datacatalog.Datacatalog.PartitionPropertyFilter getPartitionFilter() { - if (partitionFilterBuilder_ == null) { - if (propertyFilterCase_ == 2) { - return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } else { - if (propertyFilterCase_ == 2) { - return partitionFilterBuilder_.getMessage(); - } - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public Builder setPartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { - if (partitionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyFilter_ = value; - onChanged(); - } else { - partitionFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 2; - return this; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public Builder setPartitionFilter( - datacatalog.Datacatalog.PartitionPropertyFilter.Builder builderForValue) { - if (partitionFilterBuilder_ == null) { - propertyFilter_ = builderForValue.build(); - onChanged(); - } else { - partitionFilterBuilder_.setMessage(builderForValue.build()); - } - propertyFilterCase_ = 2; - return this; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public Builder mergePartitionFilter(datacatalog.Datacatalog.PartitionPropertyFilter value) { - if (partitionFilterBuilder_ == null) { - if (propertyFilterCase_ == 2 && - propertyFilter_ != datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) { - propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.newBuilder((datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_) - .mergeFrom(value).buildPartial(); - } else { - propertyFilter_ = value; - } - onChanged(); - } else { - if (propertyFilterCase_ == 2) { - partitionFilterBuilder_.mergeFrom(value); - } - partitionFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 2; - return this; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public Builder clearPartitionFilter() { - if (partitionFilterBuilder_ == null) { - if (propertyFilterCase_ == 2) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - onChanged(); - } - } else { - if (propertyFilterCase_ == 2) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - } - partitionFilterBuilder_.clear(); - } - return this; - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public datacatalog.Datacatalog.PartitionPropertyFilter.Builder getPartitionFilterBuilder() { - return getPartitionFilterFieldBuilder().getBuilder(); - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - public datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder getPartitionFilterOrBuilder() { - if ((propertyFilterCase_ == 2) && (partitionFilterBuilder_ != null)) { - return partitionFilterBuilder_.getMessageOrBuilder(); - } else { - if (propertyFilterCase_ == 2) { - return (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.PartitionPropertyFilter partition_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder> - getPartitionFilterFieldBuilder() { - if (partitionFilterBuilder_ == null) { - if (!(propertyFilterCase_ == 2)) { - propertyFilter_ = datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - partitionFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.PartitionPropertyFilter, datacatalog.Datacatalog.PartitionPropertyFilter.Builder, datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder>( - (datacatalog.Datacatalog.PartitionPropertyFilter) propertyFilter_, - getParentForChildren(), - isClean()); - propertyFilter_ = null; - } - propertyFilterCase_ = 2; - onChanged();; - return partitionFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> artifactFilterBuilder_; - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public boolean hasArtifactFilter() { - return propertyFilterCase_ == 3; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public datacatalog.Datacatalog.ArtifactPropertyFilter getArtifactFilter() { - if (artifactFilterBuilder_ == null) { - if (propertyFilterCase_ == 3) { - return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } else { - if (propertyFilterCase_ == 3) { - return artifactFilterBuilder_.getMessage(); - } - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public Builder setArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { - if (artifactFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyFilter_ = value; - onChanged(); - } else { - artifactFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 3; - return this; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public Builder setArtifactFilter( - datacatalog.Datacatalog.ArtifactPropertyFilter.Builder builderForValue) { - if (artifactFilterBuilder_ == null) { - propertyFilter_ = builderForValue.build(); - onChanged(); - } else { - artifactFilterBuilder_.setMessage(builderForValue.build()); - } - propertyFilterCase_ = 3; - return this; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public Builder mergeArtifactFilter(datacatalog.Datacatalog.ArtifactPropertyFilter value) { - if (artifactFilterBuilder_ == null) { - if (propertyFilterCase_ == 3 && - propertyFilter_ != datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) { - propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.newBuilder((datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_) - .mergeFrom(value).buildPartial(); - } else { - propertyFilter_ = value; - } - onChanged(); - } else { - if (propertyFilterCase_ == 3) { - artifactFilterBuilder_.mergeFrom(value); - } - artifactFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 3; - return this; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public Builder clearArtifactFilter() { - if (artifactFilterBuilder_ == null) { - if (propertyFilterCase_ == 3) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - onChanged(); - } - } else { - if (propertyFilterCase_ == 3) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - } - artifactFilterBuilder_.clear(); - } - return this; - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public datacatalog.Datacatalog.ArtifactPropertyFilter.Builder getArtifactFilterBuilder() { - return getArtifactFilterFieldBuilder().getBuilder(); - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - public datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder getArtifactFilterOrBuilder() { - if ((propertyFilterCase_ == 3) && (artifactFilterBuilder_ != null)) { - return artifactFilterBuilder_.getMessageOrBuilder(); - } else { - if (propertyFilterCase_ == 3) { - return (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.ArtifactPropertyFilter artifact_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder> - getArtifactFilterFieldBuilder() { - if (artifactFilterBuilder_ == null) { - if (!(propertyFilterCase_ == 3)) { - propertyFilter_ = datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - artifactFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.ArtifactPropertyFilter, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder, datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder>( - (datacatalog.Datacatalog.ArtifactPropertyFilter) propertyFilter_, - getParentForChildren(), - isClean()); - propertyFilter_ = null; - } - propertyFilterCase_ = 3; - onChanged();; - return artifactFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> datasetFilterBuilder_; - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public boolean hasDatasetFilter() { - return propertyFilterCase_ == 4; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public datacatalog.Datacatalog.DatasetPropertyFilter getDatasetFilter() { - if (datasetFilterBuilder_ == null) { - if (propertyFilterCase_ == 4) { - return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } else { - if (propertyFilterCase_ == 4) { - return datasetFilterBuilder_.getMessage(); - } - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public Builder setDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { - if (datasetFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - propertyFilter_ = value; - onChanged(); - } else { - datasetFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 4; - return this; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public Builder setDatasetFilter( - datacatalog.Datacatalog.DatasetPropertyFilter.Builder builderForValue) { - if (datasetFilterBuilder_ == null) { - propertyFilter_ = builderForValue.build(); - onChanged(); - } else { - datasetFilterBuilder_.setMessage(builderForValue.build()); - } - propertyFilterCase_ = 4; - return this; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public Builder mergeDatasetFilter(datacatalog.Datacatalog.DatasetPropertyFilter value) { - if (datasetFilterBuilder_ == null) { - if (propertyFilterCase_ == 4 && - propertyFilter_ != datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) { - propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.newBuilder((datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_) - .mergeFrom(value).buildPartial(); - } else { - propertyFilter_ = value; - } - onChanged(); - } else { - if (propertyFilterCase_ == 4) { - datasetFilterBuilder_.mergeFrom(value); - } - datasetFilterBuilder_.setMessage(value); - } - propertyFilterCase_ = 4; - return this; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public Builder clearDatasetFilter() { - if (datasetFilterBuilder_ == null) { - if (propertyFilterCase_ == 4) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - onChanged(); - } - } else { - if (propertyFilterCase_ == 4) { - propertyFilterCase_ = 0; - propertyFilter_ = null; - } - datasetFilterBuilder_.clear(); - } - return this; - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public datacatalog.Datacatalog.DatasetPropertyFilter.Builder getDatasetFilterBuilder() { - return getDatasetFilterFieldBuilder().getBuilder(); - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - public datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder getDatasetFilterOrBuilder() { - if ((propertyFilterCase_ == 4) && (datasetFilterBuilder_ != null)) { - return datasetFilterBuilder_.getMessageOrBuilder(); - } else { - if (propertyFilterCase_ == 4) { - return (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_; - } - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - } - /** - * .datacatalog.DatasetPropertyFilter dataset_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder> - getDatasetFilterFieldBuilder() { - if (datasetFilterBuilder_ == null) { - if (!(propertyFilterCase_ == 4)) { - propertyFilter_ = datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - datasetFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.DatasetPropertyFilter, datacatalog.Datacatalog.DatasetPropertyFilter.Builder, datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder>( - (datacatalog.Datacatalog.DatasetPropertyFilter) propertyFilter_, - getParentForChildren(), - isClean()); - propertyFilter_ = null; - } - propertyFilterCase_ = 4; - onChanged();; - return datasetFilterBuilder_; - } - - private int operator_ = 0; - /** - *
-       * field 10 in case we add more entities to query
-       * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public int getOperatorValue() { - return operator_; - } - /** - *
-       * field 10 in case we add more entities to query
-       * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - *
-       * field 10 in case we add more entities to query
-       * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator getOperator() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator result = datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.valueOf(operator_); - return result == null ? datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator.UNRECOGNIZED : result; - } - /** - *
-       * field 10 in case we add more entities to query
-       * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public Builder setOperator(datacatalog.Datacatalog.SinglePropertyFilter.ComparisonOperator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * field 10 in case we add more entities to query
-       * 
- * - * .datacatalog.SinglePropertyFilter.ComparisonOperator operator = 10; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - @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:datacatalog.SinglePropertyFilter) - } - - // @@protoc_insertion_point(class_scope:datacatalog.SinglePropertyFilter) - private static final datacatalog.Datacatalog.SinglePropertyFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.SinglePropertyFilter(); - } - - public static datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SinglePropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SinglePropertyFilter(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 datacatalog.Datacatalog.SinglePropertyFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactPropertyFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.ArtifactPropertyFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * string artifact_id = 1; - */ - java.lang.String getArtifactId(); - /** - * string artifact_id = 1; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - - public datacatalog.Datacatalog.ArtifactPropertyFilter.PropertyCase getPropertyCase(); - } - /** - *
-   * Artifact properties we can filter by
-   * 
- * - * Protobuf type {@code datacatalog.ArtifactPropertyFilter} - */ - public static final class ArtifactPropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.ArtifactPropertyFilter) - ArtifactPropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactPropertyFilter.newBuilder() to construct. - private ArtifactPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactPropertyFilter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactPropertyFilter( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 1; - property_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); - } - - private int propertyCase_ = 0; - private java.lang.Object property_; - public enum PropertyCase - implements com.google.protobuf.Internal.EnumLite { - ARTIFACT_ID(1), - PROPERTY_NOT_SET(0); - private final int value; - private PropertyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropertyCase valueOf(int value) { - return forNumber(value); - } - - public static PropertyCase forNumber(int value) { - switch (value) { - case 1: return ARTIFACT_ID; - case 0: return PROPERTY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - /** - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } - } - /** - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (propertyCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (propertyCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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 datacatalog.Datacatalog.ArtifactPropertyFilter)) { - return super.equals(obj); - } - datacatalog.Datacatalog.ArtifactPropertyFilter other = (datacatalog.Datacatalog.ArtifactPropertyFilter) obj; - - if (!getPropertyCase().equals(other.getPropertyCase())) return false; - switch (propertyCase_) { - case 1: - if (!getArtifactId() - .equals(other.getArtifactId())) 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 (propertyCase_) { - case 1: - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter 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 datacatalog.Datacatalog.ArtifactPropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter 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 datacatalog.Datacatalog.ArtifactPropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.ArtifactPropertyFilter 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(datacatalog.Datacatalog.ArtifactPropertyFilter 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; - } - /** - *
-     * Artifact properties we can filter by
-     * 
- * - * Protobuf type {@code datacatalog.ArtifactPropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.ArtifactPropertyFilter) - datacatalog.Datacatalog.ArtifactPropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.ArtifactPropertyFilter.class, datacatalog.Datacatalog.ArtifactPropertyFilter.Builder.class); - } - - // Construct using datacatalog.Datacatalog.ArtifactPropertyFilter.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(); - propertyCase_ = 0; - property_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_ArtifactPropertyFilter_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { - return datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactPropertyFilter build() { - datacatalog.Datacatalog.ArtifactPropertyFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.ArtifactPropertyFilter buildPartial() { - datacatalog.Datacatalog.ArtifactPropertyFilter result = new datacatalog.Datacatalog.ArtifactPropertyFilter(this); - if (propertyCase_ == 1) { - result.property_ = property_; - } - result.propertyCase_ = propertyCase_; - 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 datacatalog.Datacatalog.ArtifactPropertyFilter) { - return mergeFrom((datacatalog.Datacatalog.ArtifactPropertyFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.ArtifactPropertyFilter other) { - if (other == datacatalog.Datacatalog.ArtifactPropertyFilter.getDefaultInstance()) return this; - switch (other.getPropertyCase()) { - case ARTIFACT_ID: { - propertyCase_ = 1; - property_ = other.property_; - onChanged(); - break; - } - case PROPERTY_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 { - datacatalog.Datacatalog.ArtifactPropertyFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.ArtifactPropertyFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int propertyCase_ = 0; - private java.lang.Object property_; - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public Builder clearProperty() { - propertyCase_ = 0; - property_ = null; - onChanged(); - return this; - } - - - /** - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string artifact_id = 1; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - /** - * string artifact_id = 1; - */ - public Builder clearArtifactId() { - if (propertyCase_ == 1) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string artifact_id = 1; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - @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:datacatalog.ArtifactPropertyFilter) - } - - // @@protoc_insertion_point(class_scope:datacatalog.ArtifactPropertyFilter) - private static final datacatalog.Datacatalog.ArtifactPropertyFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.ArtifactPropertyFilter(); - } - - public static datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactPropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactPropertyFilter(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 datacatalog.Datacatalog.ArtifactPropertyFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TagPropertyFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.TagPropertyFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * string tag_name = 1; - */ - java.lang.String getTagName(); - /** - * string tag_name = 1; - */ - com.google.protobuf.ByteString - getTagNameBytes(); - - public datacatalog.Datacatalog.TagPropertyFilter.PropertyCase getPropertyCase(); - } - /** - *
-   * Tag properties we can filter by
-   * 
- * - * Protobuf type {@code datacatalog.TagPropertyFilter} - */ - public static final class TagPropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.TagPropertyFilter) - TagPropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use TagPropertyFilter.newBuilder() to construct. - private TagPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TagPropertyFilter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TagPropertyFilter( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 1; - property_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); - } - - private int propertyCase_ = 0; - private java.lang.Object property_; - public enum PropertyCase - implements com.google.protobuf.Internal.EnumLite { - TAG_NAME(1), - PROPERTY_NOT_SET(0); - private final int value; - private PropertyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropertyCase valueOf(int value) { - return forNumber(value); - } - - public static PropertyCase forNumber(int value) { - switch (value) { - case 1: return TAG_NAME; - case 0: return PROPERTY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public static final int TAG_NAME_FIELD_NUMBER = 1; - /** - * string tag_name = 1; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } - } - /** - * string tag_name = 1; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (propertyCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (propertyCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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 datacatalog.Datacatalog.TagPropertyFilter)) { - return super.equals(obj); - } - datacatalog.Datacatalog.TagPropertyFilter other = (datacatalog.Datacatalog.TagPropertyFilter) obj; - - if (!getPropertyCase().equals(other.getPropertyCase())) return false; - switch (propertyCase_) { - case 1: - if (!getTagName() - .equals(other.getTagName())) 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 (propertyCase_) { - case 1: - hash = (37 * hash) + TAG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTagName().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.TagPropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.TagPropertyFilter 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 datacatalog.Datacatalog.TagPropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.TagPropertyFilter 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 datacatalog.Datacatalog.TagPropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.TagPropertyFilter 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(datacatalog.Datacatalog.TagPropertyFilter 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; - } - /** - *
-     * Tag properties we can filter by
-     * 
- * - * Protobuf type {@code datacatalog.TagPropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.TagPropertyFilter) - datacatalog.Datacatalog.TagPropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.TagPropertyFilter.class, datacatalog.Datacatalog.TagPropertyFilter.Builder.class); - } - - // Construct using datacatalog.Datacatalog.TagPropertyFilter.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(); - propertyCase_ = 0; - property_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_TagPropertyFilter_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { - return datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.TagPropertyFilter build() { - datacatalog.Datacatalog.TagPropertyFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.TagPropertyFilter buildPartial() { - datacatalog.Datacatalog.TagPropertyFilter result = new datacatalog.Datacatalog.TagPropertyFilter(this); - if (propertyCase_ == 1) { - result.property_ = property_; - } - result.propertyCase_ = propertyCase_; - 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 datacatalog.Datacatalog.TagPropertyFilter) { - return mergeFrom((datacatalog.Datacatalog.TagPropertyFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.TagPropertyFilter other) { - if (other == datacatalog.Datacatalog.TagPropertyFilter.getDefaultInstance()) return this; - switch (other.getPropertyCase()) { - case TAG_NAME: { - propertyCase_ = 1; - property_ = other.property_; - onChanged(); - break; - } - case PROPERTY_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 { - datacatalog.Datacatalog.TagPropertyFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.TagPropertyFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int propertyCase_ = 0; - private java.lang.Object property_; - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public Builder clearProperty() { - propertyCase_ = 0; - property_ = null; - onChanged(); - return this; - } - - - /** - * string tag_name = 1; - */ - public java.lang.String getTagName() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag_name = 1; - */ - public com.google.protobuf.ByteString - getTagNameBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag_name = 1; - */ - public Builder setTagName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - /** - * string tag_name = 1; - */ - public Builder clearTagName() { - if (propertyCase_ == 1) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string tag_name = 1; - */ - public Builder setTagNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - @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:datacatalog.TagPropertyFilter) - } - - // @@protoc_insertion_point(class_scope:datacatalog.TagPropertyFilter) - private static final datacatalog.Datacatalog.TagPropertyFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.TagPropertyFilter(); - } - - public static datacatalog.Datacatalog.TagPropertyFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagPropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TagPropertyFilter(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 datacatalog.Datacatalog.TagPropertyFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartitionPropertyFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.PartitionPropertyFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - boolean hasKeyVal(); - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - datacatalog.Datacatalog.KeyValuePair getKeyVal(); - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder(); - - public datacatalog.Datacatalog.PartitionPropertyFilter.PropertyCase getPropertyCase(); - } - /** - *
-   * Partition properties we can filter by
-   * 
- * - * Protobuf type {@code datacatalog.PartitionPropertyFilter} - */ - public static final class PartitionPropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.PartitionPropertyFilter) - PartitionPropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use PartitionPropertyFilter.newBuilder() to construct. - private PartitionPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PartitionPropertyFilter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PartitionPropertyFilter( - 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: { - datacatalog.Datacatalog.KeyValuePair.Builder subBuilder = null; - if (propertyCase_ == 1) { - subBuilder = ((datacatalog.Datacatalog.KeyValuePair) property_).toBuilder(); - } - property_ = - input.readMessage(datacatalog.Datacatalog.KeyValuePair.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((datacatalog.Datacatalog.KeyValuePair) property_); - property_ = subBuilder.buildPartial(); - } - propertyCase_ = 1; - 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 datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); - } - - private int propertyCase_ = 0; - private java.lang.Object property_; - public enum PropertyCase - implements com.google.protobuf.Internal.EnumLite { - KEY_VAL(1), - PROPERTY_NOT_SET(0); - private final int value; - private PropertyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropertyCase valueOf(int value) { - return forNumber(value); - } - - public static PropertyCase forNumber(int value) { - switch (value) { - case 1: return KEY_VAL; - case 0: return PROPERTY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public static final int KEY_VAL_FIELD_NUMBER = 1; - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public boolean hasKeyVal() { - return propertyCase_ == 1; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public datacatalog.Datacatalog.KeyValuePair getKeyVal() { - if (propertyCase_ == 1) { - return (datacatalog.Datacatalog.KeyValuePair) property_; - } - return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { - if (propertyCase_ == 1) { - return (datacatalog.Datacatalog.KeyValuePair) property_; - } - return datacatalog.Datacatalog.KeyValuePair.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 (propertyCase_ == 1) { - output.writeMessage(1, (datacatalog.Datacatalog.KeyValuePair) property_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (propertyCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (datacatalog.Datacatalog.KeyValuePair) property_); - } - 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 datacatalog.Datacatalog.PartitionPropertyFilter)) { - return super.equals(obj); - } - datacatalog.Datacatalog.PartitionPropertyFilter other = (datacatalog.Datacatalog.PartitionPropertyFilter) obj; - - if (!getPropertyCase().equals(other.getPropertyCase())) return false; - switch (propertyCase_) { - case 1: - if (!getKeyVal() - .equals(other.getKeyVal())) 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 (propertyCase_) { - case 1: - hash = (37 * hash) + KEY_VAL_FIELD_NUMBER; - hash = (53 * hash) + getKeyVal().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter 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 datacatalog.Datacatalog.PartitionPropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter 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 datacatalog.Datacatalog.PartitionPropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PartitionPropertyFilter 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(datacatalog.Datacatalog.PartitionPropertyFilter 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; - } - /** - *
-     * Partition properties we can filter by
-     * 
- * - * Protobuf type {@code datacatalog.PartitionPropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.PartitionPropertyFilter) - datacatalog.Datacatalog.PartitionPropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.PartitionPropertyFilter.class, datacatalog.Datacatalog.PartitionPropertyFilter.Builder.class); - } - - // Construct using datacatalog.Datacatalog.PartitionPropertyFilter.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(); - propertyCase_ = 0; - property_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_PartitionPropertyFilter_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { - return datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.PartitionPropertyFilter build() { - datacatalog.Datacatalog.PartitionPropertyFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.PartitionPropertyFilter buildPartial() { - datacatalog.Datacatalog.PartitionPropertyFilter result = new datacatalog.Datacatalog.PartitionPropertyFilter(this); - if (propertyCase_ == 1) { - if (keyValBuilder_ == null) { - result.property_ = property_; - } else { - result.property_ = keyValBuilder_.build(); - } - } - result.propertyCase_ = propertyCase_; - 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 datacatalog.Datacatalog.PartitionPropertyFilter) { - return mergeFrom((datacatalog.Datacatalog.PartitionPropertyFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.PartitionPropertyFilter other) { - if (other == datacatalog.Datacatalog.PartitionPropertyFilter.getDefaultInstance()) return this; - switch (other.getPropertyCase()) { - case KEY_VAL: { - mergeKeyVal(other.getKeyVal()); - break; - } - case PROPERTY_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 { - datacatalog.Datacatalog.PartitionPropertyFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.PartitionPropertyFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int propertyCase_ = 0; - private java.lang.Object property_; - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public Builder clearProperty() { - propertyCase_ = 0; - property_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> keyValBuilder_; - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public boolean hasKeyVal() { - return propertyCase_ == 1; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public datacatalog.Datacatalog.KeyValuePair getKeyVal() { - if (keyValBuilder_ == null) { - if (propertyCase_ == 1) { - return (datacatalog.Datacatalog.KeyValuePair) property_; - } - return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } else { - if (propertyCase_ == 1) { - return keyValBuilder_.getMessage(); - } - return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public Builder setKeyVal(datacatalog.Datacatalog.KeyValuePair value) { - if (keyValBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - property_ = value; - onChanged(); - } else { - keyValBuilder_.setMessage(value); - } - propertyCase_ = 1; - return this; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public Builder setKeyVal( - datacatalog.Datacatalog.KeyValuePair.Builder builderForValue) { - if (keyValBuilder_ == null) { - property_ = builderForValue.build(); - onChanged(); - } else { - keyValBuilder_.setMessage(builderForValue.build()); - } - propertyCase_ = 1; - return this; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public Builder mergeKeyVal(datacatalog.Datacatalog.KeyValuePair value) { - if (keyValBuilder_ == null) { - if (propertyCase_ == 1 && - property_ != datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) { - property_ = datacatalog.Datacatalog.KeyValuePair.newBuilder((datacatalog.Datacatalog.KeyValuePair) property_) - .mergeFrom(value).buildPartial(); - } else { - property_ = value; - } - onChanged(); - } else { - if (propertyCase_ == 1) { - keyValBuilder_.mergeFrom(value); - } - keyValBuilder_.setMessage(value); - } - propertyCase_ = 1; - return this; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public Builder clearKeyVal() { - if (keyValBuilder_ == null) { - if (propertyCase_ == 1) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - } else { - if (propertyCase_ == 1) { - propertyCase_ = 0; - property_ = null; - } - keyValBuilder_.clear(); - } - return this; - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public datacatalog.Datacatalog.KeyValuePair.Builder getKeyValBuilder() { - return getKeyValFieldBuilder().getBuilder(); - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - public datacatalog.Datacatalog.KeyValuePairOrBuilder getKeyValOrBuilder() { - if ((propertyCase_ == 1) && (keyValBuilder_ != null)) { - return keyValBuilder_.getMessageOrBuilder(); - } else { - if (propertyCase_ == 1) { - return (datacatalog.Datacatalog.KeyValuePair) property_; - } - return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } - } - /** - * .datacatalog.KeyValuePair key_val = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder> - getKeyValFieldBuilder() { - if (keyValBuilder_ == null) { - if (!(propertyCase_ == 1)) { - property_ = datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } - keyValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - datacatalog.Datacatalog.KeyValuePair, datacatalog.Datacatalog.KeyValuePair.Builder, datacatalog.Datacatalog.KeyValuePairOrBuilder>( - (datacatalog.Datacatalog.KeyValuePair) property_, - getParentForChildren(), - isClean()); - property_ = null; - } - propertyCase_ = 1; - onChanged();; - return keyValBuilder_; - } - @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:datacatalog.PartitionPropertyFilter) - } - - // @@protoc_insertion_point(class_scope:datacatalog.PartitionPropertyFilter) - private static final datacatalog.Datacatalog.PartitionPropertyFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.PartitionPropertyFilter(); - } - - public static datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PartitionPropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PartitionPropertyFilter(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 datacatalog.Datacatalog.PartitionPropertyFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface KeyValuePairOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.KeyValuePair) - com.google.protobuf.MessageOrBuilder { - - /** - * string key = 1; - */ - java.lang.String getKey(); - /** - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code datacatalog.KeyValuePair} - */ - public static final class KeyValuePair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.KeyValuePair) - KeyValuePairOrBuilder { - private static final long serialVersionUID = 0L; - // Use KeyValuePair.newBuilder() to construct. - private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyValuePair() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyValuePair( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - 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 datacatalog.Datacatalog.KeyValuePair)) { - return super.equals(obj); - } - datacatalog.Datacatalog.KeyValuePair other = (datacatalog.Datacatalog.KeyValuePair) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.KeyValuePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.KeyValuePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.KeyValuePair 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 datacatalog.Datacatalog.KeyValuePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.KeyValuePair 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 datacatalog.Datacatalog.KeyValuePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.KeyValuePair 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(datacatalog.Datacatalog.KeyValuePair 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; - } - /** - * Protobuf type {@code datacatalog.KeyValuePair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.KeyValuePair) - datacatalog.Datacatalog.KeyValuePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.KeyValuePair.class, datacatalog.Datacatalog.KeyValuePair.Builder.class); - } - - // Construct using datacatalog.Datacatalog.KeyValuePair.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(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_KeyValuePair_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { - return datacatalog.Datacatalog.KeyValuePair.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.KeyValuePair build() { - datacatalog.Datacatalog.KeyValuePair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.KeyValuePair buildPartial() { - datacatalog.Datacatalog.KeyValuePair result = new datacatalog.Datacatalog.KeyValuePair(this); - result.key_ = key_; - result.value_ = value_; - 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 datacatalog.Datacatalog.KeyValuePair) { - return mergeFrom((datacatalog.Datacatalog.KeyValuePair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.KeyValuePair other) { - if (other == datacatalog.Datacatalog.KeyValuePair.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - 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 { - datacatalog.Datacatalog.KeyValuePair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.KeyValuePair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @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:datacatalog.KeyValuePair) - } - - // @@protoc_insertion_point(class_scope:datacatalog.KeyValuePair) - private static final datacatalog.Datacatalog.KeyValuePair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.KeyValuePair(); - } - - public static datacatalog.Datacatalog.KeyValuePair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValuePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValuePair(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 datacatalog.Datacatalog.KeyValuePair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DatasetPropertyFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.DatasetPropertyFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * string project = 1; - */ - java.lang.String getProject(); - /** - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * string domain = 3; - */ - java.lang.String getDomain(); - /** - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * string version = 4; - */ - java.lang.String getVersion(); - /** - * string version = 4; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - public datacatalog.Datacatalog.DatasetPropertyFilter.PropertyCase getPropertyCase(); - } - /** - *
-   * Dataset properties we can filter by
-   * 
- * - * Protobuf type {@code datacatalog.DatasetPropertyFilter} - */ - public static final class DatasetPropertyFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.DatasetPropertyFilter) - DatasetPropertyFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use DatasetPropertyFilter.newBuilder() to construct. - private DatasetPropertyFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatasetPropertyFilter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DatasetPropertyFilter( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 1; - property_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 2; - property_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 3; - property_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - propertyCase_ = 4; - property_ = s; - 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 datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); - } - - private int propertyCase_ = 0; - private java.lang.Object property_; - public enum PropertyCase - implements com.google.protobuf.Internal.EnumLite { - PROJECT(1), - NAME(2), - DOMAIN(3), - VERSION(4), - PROPERTY_NOT_SET(0); - private final int value; - private PropertyCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PropertyCase valueOf(int value) { - return forNumber(value); - } - - public static PropertyCase forNumber(int value) { - switch (value) { - case 1: return PROJECT; - case 2: return NAME; - case 3: return DOMAIN; - case 4: return VERSION; - case 0: return PROPERTY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - /** - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } - } - /** - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = ""; - if (propertyCase_ == 2) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 2) { - property_ = s; - } - return s; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 2) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 2) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - /** - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = ""; - if (propertyCase_ == 3) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 3) { - property_ = s; - } - return s; - } - } - /** - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 3) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 3) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 4; - /** - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = ""; - if (propertyCase_ == 4) { - ref = property_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 4) { - property_ = s; - } - return s; - } - } - /** - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 4) { - ref = property_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 4) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (propertyCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (propertyCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); - } - if (propertyCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, property_); - } - if (propertyCase_ == 4) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, property_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (propertyCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (propertyCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); - } - if (propertyCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, property_); - } - if (propertyCase_ == 4) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, property_); - } - 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 datacatalog.Datacatalog.DatasetPropertyFilter)) { - return super.equals(obj); - } - datacatalog.Datacatalog.DatasetPropertyFilter other = (datacatalog.Datacatalog.DatasetPropertyFilter) obj; - - if (!getPropertyCase().equals(other.getPropertyCase())) return false; - switch (propertyCase_) { - case 1: - if (!getProject() - .equals(other.getProject())) return false; - break; - case 2: - if (!getName() - .equals(other.getName())) return false; - break; - case 3: - if (!getDomain() - .equals(other.getDomain())) return false; - break; - case 4: - if (!getVersion() - .equals(other.getVersion())) 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 (propertyCase_) { - case 1: - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - break; - case 2: - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - break; - case 3: - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - break; - case 4: - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter 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 datacatalog.Datacatalog.DatasetPropertyFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter 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 datacatalog.Datacatalog.DatasetPropertyFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.DatasetPropertyFilter 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(datacatalog.Datacatalog.DatasetPropertyFilter 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; - } - /** - *
-     * Dataset properties we can filter by
-     * 
- * - * Protobuf type {@code datacatalog.DatasetPropertyFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.DatasetPropertyFilter) - datacatalog.Datacatalog.DatasetPropertyFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.DatasetPropertyFilter.class, datacatalog.Datacatalog.DatasetPropertyFilter.Builder.class); - } - - // Construct using datacatalog.Datacatalog.DatasetPropertyFilter.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(); - propertyCase_ = 0; - property_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_DatasetPropertyFilter_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { - return datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetPropertyFilter build() { - datacatalog.Datacatalog.DatasetPropertyFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.DatasetPropertyFilter buildPartial() { - datacatalog.Datacatalog.DatasetPropertyFilter result = new datacatalog.Datacatalog.DatasetPropertyFilter(this); - if (propertyCase_ == 1) { - result.property_ = property_; - } - if (propertyCase_ == 2) { - result.property_ = property_; - } - if (propertyCase_ == 3) { - result.property_ = property_; - } - if (propertyCase_ == 4) { - result.property_ = property_; - } - result.propertyCase_ = propertyCase_; - 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 datacatalog.Datacatalog.DatasetPropertyFilter) { - return mergeFrom((datacatalog.Datacatalog.DatasetPropertyFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.DatasetPropertyFilter other) { - if (other == datacatalog.Datacatalog.DatasetPropertyFilter.getDefaultInstance()) return this; - switch (other.getPropertyCase()) { - case PROJECT: { - propertyCase_ = 1; - property_ = other.property_; - onChanged(); - break; - } - case NAME: { - propertyCase_ = 2; - property_ = other.property_; - onChanged(); - break; - } - case DOMAIN: { - propertyCase_ = 3; - property_ = other.property_; - onChanged(); - break; - } - case VERSION: { - propertyCase_ = 4; - property_ = other.property_; - onChanged(); - break; - } - case PROPERTY_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 { - datacatalog.Datacatalog.DatasetPropertyFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.DatasetPropertyFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int propertyCase_ = 0; - private java.lang.Object property_; - public PropertyCase - getPropertyCase() { - return PropertyCase.forNumber( - propertyCase_); - } - - public Builder clearProperty() { - propertyCase_ = 0; - property_ = null; - onChanged(); - return this; - } - - - /** - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 1) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 1) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 1) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - /** - * string project = 1; - */ - public Builder clearProject() { - if (propertyCase_ == 1) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 1; - property_ = value; - onChanged(); - return this; - } - - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = ""; - if (propertyCase_ == 2) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 2) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 2) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 2) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 2; - property_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - if (propertyCase_ == 2) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 2; - property_ = value; - onChanged(); - return this; - } - - /** - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = ""; - if (propertyCase_ == 3) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 3) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 3) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 3) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 3; - property_ = value; - onChanged(); - return this; - } - /** - * string domain = 3; - */ - public Builder clearDomain() { - if (propertyCase_ == 3) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 3; - property_ = value; - onChanged(); - return this; - } - - /** - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = ""; - if (propertyCase_ == 4) { - ref = property_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (propertyCase_ == 4) { - property_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = ""; - if (propertyCase_ == 4) { - ref = property_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (propertyCase_ == 4) { - property_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 4; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - propertyCase_ = 4; - property_ = value; - onChanged(); - return this; - } - /** - * string version = 4; - */ - public Builder clearVersion() { - if (propertyCase_ == 4) { - propertyCase_ = 0; - property_ = null; - onChanged(); - } - return this; - } - /** - * string version = 4; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - propertyCase_ = 4; - property_ = value; - onChanged(); - return this; - } - @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:datacatalog.DatasetPropertyFilter) - } - - // @@protoc_insertion_point(class_scope:datacatalog.DatasetPropertyFilter) - private static final datacatalog.Datacatalog.DatasetPropertyFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.DatasetPropertyFilter(); - } - - public static datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetPropertyFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatasetPropertyFilter(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 datacatalog.Datacatalog.DatasetPropertyFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PaginationOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:datacatalog.PaginationOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * the max number of results to return
-     * 
- * - * uint32 limit = 1; - */ - int getLimit(); - - /** - *
-     * the token to pass to fetch the next page
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * the token to pass to fetch the next page
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * the property that we want to sort the results by
-     * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - int getSortKeyValue(); - /** - *
-     * the property that we want to sort the results by
-     * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey(); - - /** - *
-     * the sort order of the results
-     * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - int getSortOrderValue(); - /** - *
-     * the sort order of the results
-     * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder(); - } - /** - *
-   * Pagination options for making list requests
-   * 
- * - * Protobuf type {@code datacatalog.PaginationOptions} - */ - public static final class PaginationOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:datacatalog.PaginationOptions) - PaginationOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use PaginationOptions.newBuilder() to construct. - private PaginationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PaginationOptions() { - token_ = ""; - sortKey_ = 0; - sortOrder_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PaginationOptions( - 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 8: { - - limit_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - sortKey_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - sortOrder_ = rawValue; - 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 datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); - } - - /** - * Protobuf enum {@code datacatalog.PaginationOptions.SortOrder} - */ - public enum SortOrder - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DESCENDING = 0; - */ - DESCENDING(0), - /** - * ASCENDING = 1; - */ - ASCENDING(1), - UNRECOGNIZED(-1), - ; - - /** - * DESCENDING = 0; - */ - public static final int DESCENDING_VALUE = 0; - /** - * ASCENDING = 1; - */ - public static final int ASCENDING_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SortOrder valueOf(int value) { - return forNumber(value); - } - - public static SortOrder forNumber(int value) { - switch (value) { - case 0: return DESCENDING; - case 1: return ASCENDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SortOrder> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SortOrder findValueByNumber(int number) { - return SortOrder.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(0); - } - - private static final SortOrder[] VALUES = values(); - - public static SortOrder valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SortOrder(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortOrder) - } - - /** - * Protobuf enum {@code datacatalog.PaginationOptions.SortKey} - */ - public enum SortKey - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CREATION_TIME = 0; - */ - CREATION_TIME(0), - UNRECOGNIZED(-1), - ; - - /** - * CREATION_TIME = 0; - */ - public static final int CREATION_TIME_VALUE = 0; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SortKey valueOf(int value) { - return forNumber(value); - } - - public static SortKey forNumber(int value) { - switch (value) { - case 0: return CREATION_TIME; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SortKey> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SortKey findValueByNumber(int number) { - return SortKey.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return datacatalog.Datacatalog.PaginationOptions.getDescriptor().getEnumTypes().get(1); - } - - private static final SortKey[] VALUES = values(); - - public static SortKey valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SortKey(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:datacatalog.PaginationOptions.SortKey) - } - - public static final int LIMIT_FIELD_NUMBER = 1; - private int limit_; - /** - *
-     * the max number of results to return
-     * 
- * - * uint32 limit = 1; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * the token to pass to fetch the next page
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * the token to pass to fetch the next page
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORTKEY_FIELD_NUMBER = 3; - private int sortKey_; - /** - *
-     * the property that we want to sort the results by
-     * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public int getSortKeyValue() { - return sortKey_; - } - /** - *
-     * the property that we want to sort the results by
-     * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); - return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; - } - - public static final int SORTORDER_FIELD_NUMBER = 4; - private int sortOrder_; - /** - *
-     * the sort order of the results
-     * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public int getSortOrderValue() { - return sortOrder_; - } - /** - *
-     * the sort order of the results
-     * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); - return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.UNRECOGNIZED : result; - } - - 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 (limit_ != 0) { - output.writeUInt32(1, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { - output.writeEnum(3, sortKey_); - } - if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { - output.writeEnum(4, sortOrder_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - if (sortKey_ != datacatalog.Datacatalog.PaginationOptions.SortKey.CREATION_TIME.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, sortKey_); - } - if (sortOrder_ != datacatalog.Datacatalog.PaginationOptions.SortOrder.DESCENDING.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, sortOrder_); - } - 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 datacatalog.Datacatalog.PaginationOptions)) { - return super.equals(obj); - } - datacatalog.Datacatalog.PaginationOptions other = (datacatalog.Datacatalog.PaginationOptions) obj; - - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (sortKey_ != other.sortKey_) return false; - if (sortOrder_ != other.sortOrder_) 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(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + SORTKEY_FIELD_NUMBER; - hash = (53 * hash) + sortKey_; - hash = (37 * hash) + SORTORDER_FIELD_NUMBER; - hash = (53 * hash) + sortOrder_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static datacatalog.Datacatalog.PaginationOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static datacatalog.Datacatalog.PaginationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PaginationOptions 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 datacatalog.Datacatalog.PaginationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PaginationOptions 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 datacatalog.Datacatalog.PaginationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static datacatalog.Datacatalog.PaginationOptions 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(datacatalog.Datacatalog.PaginationOptions 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; - } - /** - *
-     * Pagination options for making list requests
-     * 
- * - * Protobuf type {@code datacatalog.PaginationOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:datacatalog.PaginationOptions) - datacatalog.Datacatalog.PaginationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - datacatalog.Datacatalog.PaginationOptions.class, datacatalog.Datacatalog.PaginationOptions.Builder.class); - } - - // Construct using datacatalog.Datacatalog.PaginationOptions.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(); - limit_ = 0; - - token_ = ""; - - sortKey_ = 0; - - sortOrder_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return datacatalog.Datacatalog.internal_static_datacatalog_PaginationOptions_descriptor; - } - - @java.lang.Override - public datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { - return datacatalog.Datacatalog.PaginationOptions.getDefaultInstance(); - } - - @java.lang.Override - public datacatalog.Datacatalog.PaginationOptions build() { - datacatalog.Datacatalog.PaginationOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public datacatalog.Datacatalog.PaginationOptions buildPartial() { - datacatalog.Datacatalog.PaginationOptions result = new datacatalog.Datacatalog.PaginationOptions(this); - result.limit_ = limit_; - result.token_ = token_; - result.sortKey_ = sortKey_; - result.sortOrder_ = sortOrder_; - 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 datacatalog.Datacatalog.PaginationOptions) { - return mergeFrom((datacatalog.Datacatalog.PaginationOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(datacatalog.Datacatalog.PaginationOptions other) { - if (other == datacatalog.Datacatalog.PaginationOptions.getDefaultInstance()) return this; - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.sortKey_ != 0) { - setSortKeyValue(other.getSortKeyValue()); - } - if (other.sortOrder_ != 0) { - setSortOrderValue(other.getSortOrderValue()); - } - 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 { - datacatalog.Datacatalog.PaginationOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (datacatalog.Datacatalog.PaginationOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int limit_ ; - /** - *
-       * the max number of results to return
-       * 
- * - * uint32 limit = 1; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * the max number of results to return
-       * 
- * - * uint32 limit = 1; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * the max number of results to return
-       * 
- * - * uint32 limit = 1; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * the token to pass to fetch the next page
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the token to pass to fetch the next page
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the token to pass to fetch the next page
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * the token to pass to fetch the next page
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * the token to pass to fetch the next page
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private int sortKey_ = 0; - /** - *
-       * the property that we want to sort the results by
-       * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public int getSortKeyValue() { - return sortKey_; - } - /** - *
-       * the property that we want to sort the results by
-       * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public Builder setSortKeyValue(int value) { - sortKey_ = value; - onChanged(); - return this; - } - /** - *
-       * the property that we want to sort the results by
-       * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public datacatalog.Datacatalog.PaginationOptions.SortKey getSortKey() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.PaginationOptions.SortKey result = datacatalog.Datacatalog.PaginationOptions.SortKey.valueOf(sortKey_); - return result == null ? datacatalog.Datacatalog.PaginationOptions.SortKey.UNRECOGNIZED : result; - } - /** - *
-       * the property that we want to sort the results by
-       * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public Builder setSortKey(datacatalog.Datacatalog.PaginationOptions.SortKey value) { - if (value == null) { - throw new NullPointerException(); - } - - sortKey_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * the property that we want to sort the results by
-       * 
- * - * .datacatalog.PaginationOptions.SortKey sortKey = 3; - */ - public Builder clearSortKey() { - - sortKey_ = 0; - onChanged(); - return this; - } - - private int sortOrder_ = 0; - /** - *
-       * the sort order of the results
-       * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public int getSortOrderValue() { - return sortOrder_; - } - /** - *
-       * the sort order of the results
-       * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public Builder setSortOrderValue(int value) { - sortOrder_ = value; - onChanged(); - return this; - } - /** - *
-       * the sort order of the results
-       * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public datacatalog.Datacatalog.PaginationOptions.SortOrder getSortOrder() { - @SuppressWarnings("deprecation") - datacatalog.Datacatalog.PaginationOptions.SortOrder result = datacatalog.Datacatalog.PaginationOptions.SortOrder.valueOf(sortOrder_); - return result == null ? datacatalog.Datacatalog.PaginationOptions.SortOrder.UNRECOGNIZED : result; - } - /** - *
-       * the sort order of the results
-       * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public Builder setSortOrder(datacatalog.Datacatalog.PaginationOptions.SortOrder value) { - if (value == null) { - throw new NullPointerException(); - } - - sortOrder_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * the sort order of the results
-       * 
- * - * .datacatalog.PaginationOptions.SortOrder sortOrder = 4; - */ - public Builder clearSortOrder() { - - sortOrder_ = 0; - onChanged(); - return this; - } - @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:datacatalog.PaginationOptions) - } - - // @@protoc_insertion_point(class_scope:datacatalog.PaginationOptions) - private static final datacatalog.Datacatalog.PaginationOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new datacatalog.Datacatalog.PaginationOptions(); - } - - public static datacatalog.Datacatalog.PaginationOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PaginationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PaginationOptions(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 datacatalog.Datacatalog.PaginationOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_CreateDatasetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_CreateDatasetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetDatasetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetDatasetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetArtifactRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetArtifactResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_CreateArtifactRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_CreateArtifactResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_AddTagRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_AddTagRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_AddTagResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_AddTagResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ListArtifactsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ListArtifactsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ListDatasetsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ListDatasetsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_UpdateArtifactRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_UpdateArtifactResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ReservationID_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ReservationID_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetOrExtendReservationRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Reservation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Reservation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_GetOrExtendReservationResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ReleaseReservationRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ReleaseReservationResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Dataset_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Dataset_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Partition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Partition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_DatasetID_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_DatasetID_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Artifact_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Artifact_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ArtifactData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ArtifactData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Tag_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Tag_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Metadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Metadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_Metadata_KeyMapEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_FilterExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_FilterExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_SinglePropertyFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_ArtifactPropertyFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_TagPropertyFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_PartitionPropertyFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_KeyValuePair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_KeyValuePair_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_DatasetPropertyFilter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_datacatalog_PaginationOptions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_datacatalog_PaginationOptions_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&flyteidl/datacatalog/datacatalog.proto" + - "\022\013datacatalog\032\034flyteidl/core/literals.pr" + - "oto\032\036google/protobuf/duration.proto\032\037goo" + - "gle/protobuf/timestamp.proto\"=\n\024CreateDa" + - "tasetRequest\022%\n\007dataset\030\001 \001(\0132\024.datacata" + - "log.Dataset\"\027\n\025CreateDatasetResponse\"<\n\021" + - "GetDatasetRequest\022\'\n\007dataset\030\001 \001(\0132\026.dat" + - "acatalog.DatasetID\";\n\022GetDatasetResponse" + - "\022%\n\007dataset\030\001 \001(\0132\024.datacatalog.Dataset\"" + - "x\n\022GetArtifactRequest\022\'\n\007dataset\030\001 \001(\0132\026" + - ".datacatalog.DatasetID\022\025\n\013artifact_id\030\002 " + - "\001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000B\016\n\014query_handl" + - "e\">\n\023GetArtifactResponse\022\'\n\010artifact\030\001 \001" + - "(\0132\025.datacatalog.Artifact\"@\n\025CreateArtif" + - "actRequest\022\'\n\010artifact\030\001 \001(\0132\025.datacatal" + - "og.Artifact\"\030\n\026CreateArtifactResponse\".\n" + - "\rAddTagRequest\022\035\n\003tag\030\001 \001(\0132\020.datacatalo" + - "g.Tag\"\020\n\016AddTagResponse\"\242\001\n\024ListArtifact" + - "sRequest\022\'\n\007dataset\030\001 \001(\0132\026.datacatalog." + - "DatasetID\022-\n\006filter\030\002 \001(\0132\035.datacatalog." + - "FilterExpression\0222\n\npagination\030\003 \001(\0132\036.d" + - "atacatalog.PaginationOptions\"U\n\025ListArti" + - "factsResponse\022(\n\tartifacts\030\001 \003(\0132\025.datac" + - "atalog.Artifact\022\022\n\nnext_token\030\002 \001(\t\"x\n\023L" + - "istDatasetsRequest\022-\n\006filter\030\001 \001(\0132\035.dat" + - "acatalog.FilterExpression\0222\n\npagination\030" + - "\002 \001(\0132\036.datacatalog.PaginationOptions\"R\n" + - "\024ListDatasetsResponse\022&\n\010datasets\030\001 \003(\0132" + - "\024.datacatalog.Dataset\022\022\n\nnext_token\030\002 \001(" + - "\t\"\315\001\n\025UpdateArtifactRequest\022\'\n\007dataset\030\001" + - " \001(\0132\026.datacatalog.DatasetID\022\025\n\013artifact" + - "_id\030\002 \001(\tH\000\022\022\n\010tag_name\030\003 \001(\tH\000\022\'\n\004data\030" + - "\004 \003(\0132\031.datacatalog.ArtifactData\022\'\n\010meta" + - "data\030\005 \001(\0132\025.datacatalog.MetadataB\016\n\014que" + - "ry_handle\"-\n\026UpdateArtifactResponse\022\023\n\013a" + - "rtifact_id\030\001 \001(\t\"M\n\rReservationID\022*\n\ndat" + - "aset_id\030\001 \001(\0132\026.datacatalog.DatasetID\022\020\n" + - "\010tag_name\030\002 \001(\t\"\234\001\n\035GetOrExtendReservati" + - "onRequest\0222\n\016reservation_id\030\001 \001(\0132\032.data" + - "catalog.ReservationID\022\020\n\010owner_id\030\002 \001(\t\022" + - "5\n\022heartbeat_interval\030\003 \001(\0132\031.google.pro" + - "tobuf.Duration\"\343\001\n\013Reservation\0222\n\016reserv" + - "ation_id\030\001 \001(\0132\032.datacatalog.Reservation" + - "ID\022\020\n\010owner_id\030\002 \001(\t\0225\n\022heartbeat_interv" + - "al\030\003 \001(\0132\031.google.protobuf.Duration\022.\n\ne" + - "xpires_at\030\004 \001(\0132\032.google.protobuf.Timest" + - "amp\022\'\n\010metadata\030\006 \001(\0132\025.datacatalog.Meta" + - "data\"O\n\036GetOrExtendReservationResponse\022-" + - "\n\013reservation\030\001 \001(\0132\030.datacatalog.Reserv" + - "ation\"a\n\031ReleaseReservationRequest\0222\n\016re" + - "servation_id\030\001 \001(\0132\032.datacatalog.Reserva" + - "tionID\022\020\n\010owner_id\030\002 \001(\t\"\034\n\032ReleaseReser" + - "vationResponse\"m\n\007Dataset\022\"\n\002id\030\001 \001(\0132\026." + - "datacatalog.DatasetID\022\'\n\010metadata\030\002 \001(\0132" + - "\025.datacatalog.Metadata\022\025\n\rpartitionKeys\030" + - "\003 \003(\t\"\'\n\tPartition\022\013\n\003key\030\001 \001(\t\022\r\n\005value" + - "\030\002 \001(\t\"Y\n\tDatasetID\022\017\n\007project\030\001 \001(\t\022\014\n\004" + - "name\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\017\n\007version\030\004 " + - "\001(\t\022\014\n\004UUID\030\005 \001(\t\"\215\002\n\010Artifact\022\n\n\002id\030\001 \001" + - "(\t\022\'\n\007dataset\030\002 \001(\0132\026.datacatalog.Datase" + - "tID\022\'\n\004data\030\003 \003(\0132\031.datacatalog.Artifact" + - "Data\022\'\n\010metadata\030\004 \001(\0132\025.datacatalog.Met" + - "adata\022*\n\npartitions\030\005 \003(\0132\026.datacatalog." + - "Partition\022\036\n\004tags\030\006 \003(\0132\020.datacatalog.Ta" + - "g\022.\n\ncreated_at\030\007 \001(\0132\032.google.protobuf." + - "Timestamp\"C\n\014ArtifactData\022\014\n\004name\030\001 \001(\t\022" + - "%\n\005value\030\002 \001(\0132\026.flyteidl.core.Literal\"Q" + - "\n\003Tag\022\014\n\004name\030\001 \001(\t\022\023\n\013artifact_id\030\002 \001(\t" + - "\022\'\n\007dataset\030\003 \001(\0132\026.datacatalog.DatasetI" + - "D\"m\n\010Metadata\0222\n\007key_map\030\001 \003(\0132!.datacat" + - "alog.Metadata.KeyMapEntry\032-\n\013KeyMapEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"F\n\020Filt" + - "erExpression\0222\n\007filters\030\001 \003(\0132!.datacata" + - "log.SinglePropertyFilter\"\211\003\n\024SinglePrope" + - "rtyFilter\0224\n\ntag_filter\030\001 \001(\0132\036.datacata" + - "log.TagPropertyFilterH\000\022@\n\020partition_fil" + - "ter\030\002 \001(\0132$.datacatalog.PartitionPropert" + - "yFilterH\000\022>\n\017artifact_filter\030\003 \001(\0132#.dat" + - "acatalog.ArtifactPropertyFilterH\000\022<\n\016dat" + - "aset_filter\030\004 \001(\0132\".datacatalog.DatasetP" + - "ropertyFilterH\000\022F\n\010operator\030\n \001(\01624.data" + - "catalog.SinglePropertyFilter.ComparisonO" + - "perator\" \n\022ComparisonOperator\022\n\n\006EQUALS\020" + - "\000B\021\n\017property_filter\";\n\026ArtifactProperty" + - "Filter\022\025\n\013artifact_id\030\001 \001(\tH\000B\n\n\010propert" + - "y\"3\n\021TagPropertyFilter\022\022\n\010tag_name\030\001 \001(\t" + - "H\000B\n\n\010property\"S\n\027PartitionPropertyFilte" + - "r\022,\n\007key_val\030\001 \001(\0132\031.datacatalog.KeyValu" + - "ePairH\000B\n\n\010property\"*\n\014KeyValuePair\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"k\n\025DatasetProper" + - "tyFilter\022\021\n\007project\030\001 \001(\tH\000\022\016\n\004name\030\002 \001(" + - "\tH\000\022\020\n\006domain\030\003 \001(\tH\000\022\021\n\007version\030\004 \001(\tH\000" + - "B\n\n\010property\"\361\001\n\021PaginationOptions\022\r\n\005li" + - "mit\030\001 \001(\r\022\r\n\005token\030\002 \001(\t\0227\n\007sortKey\030\003 \001(" + - "\0162&.datacatalog.PaginationOptions.SortKe" + - "y\022;\n\tsortOrder\030\004 \001(\0162(.datacatalog.Pagin" + - "ationOptions.SortOrder\"*\n\tSortOrder\022\016\n\nD" + - "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\034\n\007SortKey\022\021\n" + - "\rCREATION_TIME\020\0002\206\007\n\013DataCatalog\022V\n\rCrea" + - "teDataset\022!.datacatalog.CreateDatasetReq" + - "uest\032\".datacatalog.CreateDatasetResponse" + - "\022M\n\nGetDataset\022\036.datacatalog.GetDatasetR" + - "equest\032\037.datacatalog.GetDatasetResponse\022" + - "Y\n\016CreateArtifact\022\".datacatalog.CreateAr" + - "tifactRequest\032#.datacatalog.CreateArtifa" + - "ctResponse\022P\n\013GetArtifact\022\037.datacatalog." + - "GetArtifactRequest\032 .datacatalog.GetArti" + - "factResponse\022A\n\006AddTag\022\032.datacatalog.Add" + - "TagRequest\032\033.datacatalog.AddTagResponse\022" + - "V\n\rListArtifacts\022!.datacatalog.ListArtif" + - "actsRequest\032\".datacatalog.ListArtifactsR" + - "esponse\022S\n\014ListDatasets\022 .datacatalog.Li" + - "stDatasetsRequest\032!.datacatalog.ListData" + - "setsResponse\022Y\n\016UpdateArtifact\022\".datacat" + - "alog.UpdateArtifactRequest\032#.datacatalog" + - ".UpdateArtifactResponse\022q\n\026GetOrExtendRe" + - "servation\022*.datacatalog.GetOrExtendReser" + - "vationRequest\032+.datacatalog.GetOrExtendR" + - "eservationResponse\022e\n\022ReleaseReservation" + - "\022&.datacatalog.ReleaseReservationRequest" + - "\032\'.datacatalog.ReleaseReservationRespons" + - "eBCZAgithub.com/flyteorg/flyte/flyteidl/" + - "gen/pb-go/flyteidl/datacatalogb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_datacatalog_CreateDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_datacatalog_CreateDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_CreateDatasetRequest_descriptor, - new java.lang.String[] { "Dataset", }); - internal_static_datacatalog_CreateDatasetResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_datacatalog_CreateDatasetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_CreateDatasetResponse_descriptor, - new java.lang.String[] { }); - internal_static_datacatalog_GetDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_datacatalog_GetDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetDatasetRequest_descriptor, - new java.lang.String[] { "Dataset", }); - internal_static_datacatalog_GetDatasetResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_datacatalog_GetDatasetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetDatasetResponse_descriptor, - new java.lang.String[] { "Dataset", }); - internal_static_datacatalog_GetArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_datacatalog_GetArtifactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetArtifactRequest_descriptor, - new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "QueryHandle", }); - internal_static_datacatalog_GetArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_datacatalog_GetArtifactResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetArtifactResponse_descriptor, - new java.lang.String[] { "Artifact", }); - internal_static_datacatalog_CreateArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_datacatalog_CreateArtifactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_CreateArtifactRequest_descriptor, - new java.lang.String[] { "Artifact", }); - internal_static_datacatalog_CreateArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_datacatalog_CreateArtifactResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_CreateArtifactResponse_descriptor, - new java.lang.String[] { }); - internal_static_datacatalog_AddTagRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_datacatalog_AddTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_AddTagRequest_descriptor, - new java.lang.String[] { "Tag", }); - internal_static_datacatalog_AddTagResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_datacatalog_AddTagResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_AddTagResponse_descriptor, - new java.lang.String[] { }); - internal_static_datacatalog_ListArtifactsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_datacatalog_ListArtifactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ListArtifactsRequest_descriptor, - new java.lang.String[] { "Dataset", "Filter", "Pagination", }); - internal_static_datacatalog_ListArtifactsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_datacatalog_ListArtifactsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ListArtifactsResponse_descriptor, - new java.lang.String[] { "Artifacts", "NextToken", }); - internal_static_datacatalog_ListDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_datacatalog_ListDatasetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ListDatasetsRequest_descriptor, - new java.lang.String[] { "Filter", "Pagination", }); - internal_static_datacatalog_ListDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_datacatalog_ListDatasetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ListDatasetsResponse_descriptor, - new java.lang.String[] { "Datasets", "NextToken", }); - internal_static_datacatalog_UpdateArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_datacatalog_UpdateArtifactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_UpdateArtifactRequest_descriptor, - new java.lang.String[] { "Dataset", "ArtifactId", "TagName", "Data", "Metadata", "QueryHandle", }); - internal_static_datacatalog_UpdateArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_datacatalog_UpdateArtifactResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_UpdateArtifactResponse_descriptor, - new java.lang.String[] { "ArtifactId", }); - internal_static_datacatalog_ReservationID_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_datacatalog_ReservationID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ReservationID_descriptor, - new java.lang.String[] { "DatasetId", "TagName", }); - internal_static_datacatalog_GetOrExtendReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_datacatalog_GetOrExtendReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetOrExtendReservationRequest_descriptor, - new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", }); - internal_static_datacatalog_Reservation_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_datacatalog_Reservation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Reservation_descriptor, - new java.lang.String[] { "ReservationId", "OwnerId", "HeartbeatInterval", "ExpiresAt", "Metadata", }); - internal_static_datacatalog_GetOrExtendReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_datacatalog_GetOrExtendReservationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_GetOrExtendReservationResponse_descriptor, - new java.lang.String[] { "Reservation", }); - internal_static_datacatalog_ReleaseReservationRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_datacatalog_ReleaseReservationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ReleaseReservationRequest_descriptor, - new java.lang.String[] { "ReservationId", "OwnerId", }); - internal_static_datacatalog_ReleaseReservationResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_datacatalog_ReleaseReservationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ReleaseReservationResponse_descriptor, - new java.lang.String[] { }); - internal_static_datacatalog_Dataset_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_datacatalog_Dataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Dataset_descriptor, - new java.lang.String[] { "Id", "Metadata", "PartitionKeys", }); - internal_static_datacatalog_Partition_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_datacatalog_Partition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Partition_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datacatalog_DatasetID_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_datacatalog_DatasetID_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_DatasetID_descriptor, - new java.lang.String[] { "Project", "Name", "Domain", "Version", "UUID", }); - internal_static_datacatalog_Artifact_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_datacatalog_Artifact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Artifact_descriptor, - new java.lang.String[] { "Id", "Dataset", "Data", "Metadata", "Partitions", "Tags", "CreatedAt", }); - internal_static_datacatalog_ArtifactData_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_datacatalog_ArtifactData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ArtifactData_descriptor, - new java.lang.String[] { "Name", "Value", }); - internal_static_datacatalog_Tag_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_datacatalog_Tag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Tag_descriptor, - new java.lang.String[] { "Name", "ArtifactId", "Dataset", }); - internal_static_datacatalog_Metadata_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_datacatalog_Metadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Metadata_descriptor, - new java.lang.String[] { "KeyMap", }); - internal_static_datacatalog_Metadata_KeyMapEntry_descriptor = - internal_static_datacatalog_Metadata_descriptor.getNestedTypes().get(0); - internal_static_datacatalog_Metadata_KeyMapEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_Metadata_KeyMapEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datacatalog_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_datacatalog_FilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_FilterExpression_descriptor, - new java.lang.String[] { "Filters", }); - internal_static_datacatalog_SinglePropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_datacatalog_SinglePropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_SinglePropertyFilter_descriptor, - new java.lang.String[] { "TagFilter", "PartitionFilter", "ArtifactFilter", "DatasetFilter", "Operator", "PropertyFilter", }); - internal_static_datacatalog_ArtifactPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_datacatalog_ArtifactPropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_ArtifactPropertyFilter_descriptor, - new java.lang.String[] { "ArtifactId", "Property", }); - internal_static_datacatalog_TagPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_datacatalog_TagPropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_TagPropertyFilter_descriptor, - new java.lang.String[] { "TagName", "Property", }); - internal_static_datacatalog_PartitionPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_datacatalog_PartitionPropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_PartitionPropertyFilter_descriptor, - new java.lang.String[] { "KeyVal", "Property", }); - internal_static_datacatalog_KeyValuePair_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_datacatalog_KeyValuePair_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_KeyValuePair_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_datacatalog_DatasetPropertyFilter_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_datacatalog_DatasetPropertyFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_DatasetPropertyFilter_descriptor, - new java.lang.String[] { "Project", "Name", "Domain", "Version", "Property", }); - internal_static_datacatalog_PaginationOptions_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_datacatalog_PaginationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_datacatalog_PaginationOptions_descriptor, - new java.lang.String[] { "Limit", "Token", "SortKey", "SortOrder", }); - flyteidl.core.Literals.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java deleted file mode 100644 index f71d1743ff..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/AgentOuterClass.java +++ /dev/null @@ -1,12284 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/agent.proto - -package flyteidl.admin; - -public final class AgentOuterClass { - private AgentOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The state of the execution is used to control its visibility in the UI/CLI.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.State} - */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - * RETRYABLE_FAILURE = 0; - */ - RETRYABLE_FAILURE(0), - /** - * PERMANENT_FAILURE = 1; - */ - PERMANENT_FAILURE(1), - /** - * PENDING = 2; - */ - PENDING(2), - /** - * RUNNING = 3; - */ - RUNNING(3), - /** - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - UNRECOGNIZED(-1), - ; - - /** - * RETRYABLE_FAILURE = 0; - */ - public static final int RETRYABLE_FAILURE_VALUE = 0; - /** - * PERMANENT_FAILURE = 1; - */ - public static final int PERMANENT_FAILURE_VALUE = 1; - /** - * PENDING = 2; - */ - public static final int PENDING_VALUE = 2; - /** - * RUNNING = 3; - */ - public static final int RUNNING_VALUE = 3; - /** - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - public static State forNumber(int value) { - switch (value) { - case 0: return RETRYABLE_FAILURE; - case 1: return PERMANENT_FAILURE; - case 2: return PENDING; - case 3: return RUNNING; - case 4: return SUCCEEDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.State) - } - - public interface TaskExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - boolean hasTaskExecutionId(); - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); - - /** - *
-     * k8s namespace where the task is executed in
-     * 
- * - * string namespace = 2; - */ - java.lang.String getNamespace(); - /** - *
-     * k8s namespace where the task is executed in
-     * 
- * - * string namespace = 2; - */ - com.google.protobuf.ByteString - getNamespaceBytes(); - - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - int getLabelsCount(); - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - java.util.Map - getLabelsMap(); - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - int getAnnotationsCount(); - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - - /** - *
-     * k8s service account associated with the task execution
-     * 
- * - * string k8s_service_account = 5; - */ - java.lang.String getK8SServiceAccount(); - /** - *
-     * k8s service account associated with the task execution
-     * 
- * - * string k8s_service_account = 5; - */ - com.google.protobuf.ByteString - getK8SServiceAccountBytes(); - - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - int getEnvironmentVariablesCount(); - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - boolean containsEnvironmentVariables( - java.lang.String key); - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getEnvironmentVariables(); - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - java.util.Map - getEnvironmentVariablesMap(); - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key); - } - /** - *
-   * Represents a subset of runtime task execution metadata that are relevant to external plugins.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionMetadata} - */ - public static final class TaskExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionMetadata) - TaskExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionMetadata.newBuilder() to construct. - private TaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionMetadata() { - namespace_ = ""; - k8SServiceAccount_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionMetadata( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecutionId_ != null) { - subBuilder = taskExecutionId_.toBuilder(); - } - taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecutionId_); - taskExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - namespace_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - k8SServiceAccount_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000020; - } - com.google.protobuf.MapEntry - environmentVariables__ = input.readMessage( - EnvironmentVariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - environmentVariables_.getMutableMap().put( - environmentVariables__.getKey(), environmentVariables__.getValue()); - 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.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetLabels(); - case 4: - return internalGetAnnotations(); - case 6: - return internalGetEnvironmentVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.class, flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder.class); - } - - private int bitField0_; - public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionId_ != null; - } - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - /** - *
-     * ID of the task execution
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - return getTaskExecutionId(); - } - - public static final int NAMESPACE_FIELD_NUMBER = 2; - private volatile java.lang.Object namespace_; - /** - *
-     * k8s namespace where the task is executed in
-     * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - *
-     * k8s namespace where the task is executed in
-     * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 3; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Labels attached to the task execution
-     * 
- * - * map<string, string> labels = 3; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 4; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Annotations attached to the task execution
-     * 
- * - * map<string, string> annotations = 4; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int K8S_SERVICE_ACCOUNT_FIELD_NUMBER = 5; - private volatile java.lang.Object k8SServiceAccount_; - /** - *
-     * k8s service account associated with the task execution
-     * 
- * - * string k8s_service_account = 5; - */ - public java.lang.String getK8SServiceAccount() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - k8SServiceAccount_ = s; - return s; - } - } - /** - *
-     * k8s service account associated with the task execution
-     * 
- * - * string k8s_service_account = 5; - */ - public com.google.protobuf.ByteString - getK8SServiceAccountBytes() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - k8SServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENVIRONMENT_VARIABLES_FIELD_NUMBER = 6; - private static final class EnvironmentVariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; - private com.google.protobuf.MapField - internalGetEnvironmentVariables() { - if (environmentVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); - } - return environmentVariables_; - } - - public int getEnvironmentVariablesCount() { - return internalGetEnvironmentVariables().getMap().size(); - } - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetEnvironmentVariables().getMap().containsKey(key); - } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getEnvironmentVariables() { - return getEnvironmentVariablesMap(); - } - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.util.Map getEnvironmentVariablesMap() { - return internalGetEnvironmentVariables().getMap(); - } - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironmentVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Environment variables attached to the task execution
-     * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironmentVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 (taskExecutionId_ != null) { - output.writeMessage(1, getTaskExecutionId()); - } - if (!getNamespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 3); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 4); - if (!getK8SServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, k8SServiceAccount_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetEnvironmentVariables(), - EnvironmentVariablesDefaultEntryHolder.defaultEntry, - 6); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskExecutionId()); - } - if (!getNamespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); - } - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, annotations__); - } - if (!getK8SServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, k8SServiceAccount_); - } - for (java.util.Map.Entry entry - : internalGetEnvironmentVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - environmentVariables__ = EnvironmentVariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, environmentVariables__); - } - 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.AgentOuterClass.TaskExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata other = (flyteidl.admin.AgentOuterClass.TaskExecutionMetadata) obj; - - if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; - if (hasTaskExecutionId()) { - if (!getTaskExecutionId() - .equals(other.getTaskExecutionId())) return false; - } - if (!getNamespace() - .equals(other.getNamespace())) return false; - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) return false; - if (!getK8SServiceAccount() - .equals(other.getK8SServiceAccount())) return false; - if (!internalGetEnvironmentVariables().equals( - other.internalGetEnvironmentVariables())) 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 (hasTaskExecutionId()) { - hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionId().hashCode(); - } - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - hash = (37 * hash) + K8S_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getK8SServiceAccount().hashCode(); - if (!internalGetEnvironmentVariables().getMap().isEmpty()) { - hash = (37 * hash) + ENVIRONMENT_VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetEnvironmentVariables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata 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.AgentOuterClass.TaskExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata 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.AgentOuterClass.TaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata 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.AgentOuterClass.TaskExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata 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.AgentOuterClass.TaskExecutionMetadata 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; - } - /** - *
-     * Represents a subset of runtime task execution metadata that are relevant to external plugins.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionMetadata) - flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetLabels(); - case 4: - return internalGetAnnotations(); - case 6: - return internalGetEnvironmentVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableLabels(); - case 4: - return internalGetMutableAnnotations(); - case 6: - return internalGetMutableEnvironmentVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.class, flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.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 (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - namespace_ = ""; - - internalGetMutableLabels().clear(); - internalGetMutableAnnotations().clear(); - k8SServiceAccount_ = ""; - - internalGetMutableEnvironmentVariables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata build() { - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata buildPartial() { - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata result = new flyteidl.admin.AgentOuterClass.TaskExecutionMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskExecutionIdBuilder_ == null) { - result.taskExecutionId_ = taskExecutionId_; - } else { - result.taskExecutionId_ = taskExecutionIdBuilder_.build(); - } - result.namespace_ = namespace_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - result.k8SServiceAccount_ = k8SServiceAccount_; - result.environmentVariables_ = internalGetEnvironmentVariables(); - result.environmentVariables_.makeImmutable(); - result.bitField0_ = to_bitField0_; - 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.AgentOuterClass.TaskExecutionMetadata) { - return mergeFrom((flyteidl.admin.AgentOuterClass.TaskExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.TaskExecutionMetadata other) { - if (other == flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.getDefaultInstance()) return this; - if (other.hasTaskExecutionId()) { - mergeTaskExecutionId(other.getTaskExecutionId()); - } - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - onChanged(); - } - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - if (!other.getK8SServiceAccount().isEmpty()) { - k8SServiceAccount_ = other.k8SServiceAccount_; - onChanged(); - } - internalGetMutableEnvironmentVariables().mergeFrom( - other.internalGetEnvironmentVariables()); - 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.AgentOuterClass.TaskExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.TaskExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } else { - return taskExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecutionId_ = value; - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = builderForValue.build(); - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (taskExecutionId_ != null) { - taskExecutionId_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); - } else { - taskExecutionId_ = value; - } - onChanged(); - } else { - taskExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder clearTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - onChanged(); - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { - - onChanged(); - return getTaskExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if (taskExecutionIdBuilder_ != null) { - return taskExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return taskExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - } - /** - *
-       * ID of the task execution
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecutionIdFieldBuilder() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecutionId(), - getParentForChildren(), - isClean()); - taskExecutionId_ = null; - } - return taskExecutionIdBuilder_; - } - - private java.lang.Object namespace_ = ""; - /** - *
-       * k8s namespace where the task is executed in
-       * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * k8s namespace where the task is executed in
-       * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * k8s namespace where the task is executed in
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - namespace_ = value; - onChanged(); - return this; - } - /** - *
-       * k8s namespace where the task is executed in
-       * 
- * - * string namespace = 2; - */ - public Builder clearNamespace() { - - namespace_ = getDefaultInstance().getNamespace(); - onChanged(); - return this; - } - /** - *
-       * k8s namespace where the task is executed in
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - namespace_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Labels attached to the task execution
-       * 
- * - * map<string, string> labels = 3; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Annotations attached to the task execution
-       * 
- * - * map<string, string> annotations = 4; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object k8SServiceAccount_ = ""; - /** - *
-       * k8s service account associated with the task execution
-       * 
- * - * string k8s_service_account = 5; - */ - public java.lang.String getK8SServiceAccount() { - java.lang.Object ref = k8SServiceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - k8SServiceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * k8s service account associated with the task execution
-       * 
- * - * string k8s_service_account = 5; - */ - public com.google.protobuf.ByteString - getK8SServiceAccountBytes() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - k8SServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * k8s service account associated with the task execution
-       * 
- * - * string k8s_service_account = 5; - */ - public Builder setK8SServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - k8SServiceAccount_ = value; - onChanged(); - return this; - } - /** - *
-       * k8s service account associated with the task execution
-       * 
- * - * string k8s_service_account = 5; - */ - public Builder clearK8SServiceAccount() { - - k8SServiceAccount_ = getDefaultInstance().getK8SServiceAccount(); - onChanged(); - return this; - } - /** - *
-       * k8s service account associated with the task execution
-       * 
- * - * string k8s_service_account = 5; - */ - public Builder setK8SServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - k8SServiceAccount_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> environmentVariables_; - private com.google.protobuf.MapField - internalGetEnvironmentVariables() { - if (environmentVariables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); - } - return environmentVariables_; - } - private com.google.protobuf.MapField - internalGetMutableEnvironmentVariables() { - onChanged();; - if (environmentVariables_ == null) { - environmentVariables_ = com.google.protobuf.MapField.newMapField( - EnvironmentVariablesDefaultEntryHolder.defaultEntry); - } - if (!environmentVariables_.isMutable()) { - environmentVariables_ = environmentVariables_.copy(); - } - return environmentVariables_; - } - - public int getEnvironmentVariablesCount() { - return internalGetEnvironmentVariables().getMap().size(); - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public boolean containsEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetEnvironmentVariables().getMap().containsKey(key); - } - /** - * Use {@link #getEnvironmentVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getEnvironmentVariables() { - return getEnvironmentVariablesMap(); - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.util.Map getEnvironmentVariablesMap() { - return internalGetEnvironmentVariables().getMap(); - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.lang.String getEnvironmentVariablesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironmentVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public java.lang.String getEnvironmentVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetEnvironmentVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearEnvironmentVariables() { - internalGetMutableEnvironmentVariables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public Builder removeEnvironmentVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableEnvironmentVariables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableEnvironmentVariables() { - return internalGetMutableEnvironmentVariables().getMutableMap(); - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - public Builder putEnvironmentVariables( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableEnvironmentVariables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Environment variables attached to the task execution
-       * 
- * - * map<string, string> environment_variables = 6; - */ - - public Builder putAllEnvironmentVariables( - java.util.Map values) { - internalGetMutableEnvironmentVariables().getMutableMap() - .putAll(values); - return this; - } - @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.TaskExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionMetadata) - private static final flyteidl.admin.AgentOuterClass.TaskExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.TaskExecutionMetadata(); - } - - public static flyteidl.admin.AgentOuterClass.TaskExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionMetadata(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.AgentOuterClass.TaskExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateTaskRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - java.lang.String getOutputPrefix(); - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - com.google.protobuf.ByteString - getOutputPrefixBytes(); - - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - boolean hasTaskExecutionMetadata(); - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata getTaskExecutionMetadata(); - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder(); - } - /** - *
-   * Represents a request structure to create task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.CreateTaskRequest} - */ - public static final class CreateTaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskRequest) - CreateTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTaskRequest.newBuilder() to construct. - private CreateTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTaskRequest() { - outputPrefix_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTaskRequest( - 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.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputPrefix_ = s; - break; - } - case 34: { - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder subBuilder = null; - if (taskExecutionMetadata_ != null) { - subBuilder = taskExecutionMetadata_.toBuilder(); - } - taskExecutionMetadata_ = input.readMessage(flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecutionMetadata_); - taskExecutionMetadata_ = 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.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.CreateTaskRequest.class, flyteidl.admin.AgentOuterClass.CreateTaskRequest.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int TEMPLATE_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int OUTPUT_PREFIX_FIELD_NUMBER = 3; - private volatile java.lang.Object outputPrefix_; - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - public java.lang.String getOutputPrefix() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPrefix_ = s; - return s; - } - } - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - public com.google.protobuf.ByteString - getOutputPrefixBytes() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_EXECUTION_METADATA_FIELD_NUMBER = 4; - private flyteidl.admin.AgentOuterClass.TaskExecutionMetadata taskExecutionMetadata_; - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public boolean hasTaskExecutionMetadata() { - return taskExecutionMetadata_ != null; - } - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata getTaskExecutionMetadata() { - return taskExecutionMetadata_ == null ? flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; - } - /** - *
-     * subset of runtime task execution metadata.
-     * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder() { - return getTaskExecutionMetadata(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (template_ != null) { - output.writeMessage(2, getTemplate()); - } - if (!getOutputPrefixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPrefix_); - } - if (taskExecutionMetadata_ != null) { - output.writeMessage(4, getTaskExecutionMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTemplate()); - } - if (!getOutputPrefixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPrefix_); - } - if (taskExecutionMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTaskExecutionMetadata()); - } - 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.AgentOuterClass.CreateTaskRequest)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.CreateTaskRequest other = (flyteidl.admin.AgentOuterClass.CreateTaskRequest) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (!getOutputPrefix() - .equals(other.getOutputPrefix())) return false; - if (hasTaskExecutionMetadata() != other.hasTaskExecutionMetadata()) return false; - if (hasTaskExecutionMetadata()) { - if (!getTaskExecutionMetadata() - .equals(other.getTaskExecutionMetadata())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (37 * hash) + OUTPUT_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getOutputPrefix().hashCode(); - if (hasTaskExecutionMetadata()) { - hash = (37 * hash) + TASK_EXECUTION_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest 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.AgentOuterClass.CreateTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest 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.AgentOuterClass.CreateTaskRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest 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.AgentOuterClass.CreateTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest 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.AgentOuterClass.CreateTaskRequest 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; - } - /** - *
-     * Represents a request structure to create task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.CreateTaskRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskRequest) - flyteidl.admin.AgentOuterClass.CreateTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.CreateTaskRequest.class, flyteidl.admin.AgentOuterClass.CreateTaskRequest.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.CreateTaskRequest.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - outputPrefix_ = ""; - - if (taskExecutionMetadataBuilder_ == null) { - taskExecutionMetadata_ = null; - } else { - taskExecutionMetadata_ = null; - taskExecutionMetadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskRequest getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.CreateTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskRequest build() { - flyteidl.admin.AgentOuterClass.CreateTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskRequest buildPartial() { - flyteidl.admin.AgentOuterClass.CreateTaskRequest result = new flyteidl.admin.AgentOuterClass.CreateTaskRequest(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - result.outputPrefix_ = outputPrefix_; - if (taskExecutionMetadataBuilder_ == null) { - result.taskExecutionMetadata_ = taskExecutionMetadata_; - } else { - result.taskExecutionMetadata_ = taskExecutionMetadataBuilder_.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.AgentOuterClass.CreateTaskRequest) { - return mergeFrom((flyteidl.admin.AgentOuterClass.CreateTaskRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.CreateTaskRequest other) { - if (other == flyteidl.admin.AgentOuterClass.CreateTaskRequest.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (!other.getOutputPrefix().isEmpty()) { - outputPrefix_ = other.outputPrefix_; - onChanged(); - } - if (other.hasTaskExecutionMetadata()) { - mergeTaskExecutionMetadata(other.getTaskExecutionMetadata()); - } - 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.AgentOuterClass.CreateTaskRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.CreateTaskRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.lang.Object outputPrefix_ = ""; - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public java.lang.String getOutputPrefix() { - java.lang.Object ref = outputPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public com.google.protobuf.ByteString - getOutputPrefixBytes() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder setOutputPrefix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputPrefix_ = value; - onChanged(); - return this; - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder clearOutputPrefix() { - - outputPrefix_ = getDefaultInstance().getOutputPrefix(); - onChanged(); - return this; - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder setOutputPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputPrefix_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.AgentOuterClass.TaskExecutionMetadata taskExecutionMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata, flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder, flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder> taskExecutionMetadataBuilder_; - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public boolean hasTaskExecutionMetadata() { - return taskExecutionMetadataBuilder_ != null || taskExecutionMetadata_ != null; - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata getTaskExecutionMetadata() { - if (taskExecutionMetadataBuilder_ == null) { - return taskExecutionMetadata_ == null ? flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; - } else { - return taskExecutionMetadataBuilder_.getMessage(); - } - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public Builder setTaskExecutionMetadata(flyteidl.admin.AgentOuterClass.TaskExecutionMetadata value) { - if (taskExecutionMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecutionMetadata_ = value; - onChanged(); - } else { - taskExecutionMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public Builder setTaskExecutionMetadata( - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder builderForValue) { - if (taskExecutionMetadataBuilder_ == null) { - taskExecutionMetadata_ = builderForValue.build(); - onChanged(); - } else { - taskExecutionMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public Builder mergeTaskExecutionMetadata(flyteidl.admin.AgentOuterClass.TaskExecutionMetadata value) { - if (taskExecutionMetadataBuilder_ == null) { - if (taskExecutionMetadata_ != null) { - taskExecutionMetadata_ = - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.newBuilder(taskExecutionMetadata_).mergeFrom(value).buildPartial(); - } else { - taskExecutionMetadata_ = value; - } - onChanged(); - } else { - taskExecutionMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public Builder clearTaskExecutionMetadata() { - if (taskExecutionMetadataBuilder_ == null) { - taskExecutionMetadata_ = null; - onChanged(); - } else { - taskExecutionMetadata_ = null; - taskExecutionMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder getTaskExecutionMetadataBuilder() { - - onChanged(); - return getTaskExecutionMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - public flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder getTaskExecutionMetadataOrBuilder() { - if (taskExecutionMetadataBuilder_ != null) { - return taskExecutionMetadataBuilder_.getMessageOrBuilder(); - } else { - return taskExecutionMetadata_ == null ? - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.getDefaultInstance() : taskExecutionMetadata_; - } - } - /** - *
-       * subset of runtime task execution metadata.
-       * 
- * - * .flyteidl.admin.TaskExecutionMetadata task_execution_metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata, flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder, flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder> - getTaskExecutionMetadataFieldBuilder() { - if (taskExecutionMetadataBuilder_ == null) { - taskExecutionMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.TaskExecutionMetadata, flyteidl.admin.AgentOuterClass.TaskExecutionMetadata.Builder, flyteidl.admin.AgentOuterClass.TaskExecutionMetadataOrBuilder>( - getTaskExecutionMetadata(), - getParentForChildren(), - isClean()); - taskExecutionMetadata_ = null; - } - return taskExecutionMetadataBuilder_; - } - @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.CreateTaskRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskRequest) - private static final flyteidl.admin.AgentOuterClass.CreateTaskRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.CreateTaskRequest(); - } - - public static flyteidl.admin.AgentOuterClass.CreateTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskRequest(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.AgentOuterClass.CreateTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateTaskResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.CreateTaskResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes resource_meta = 1; - */ - com.google.protobuf.ByteString getResourceMeta(); - - /** - * .flyteidl.admin.Resource resource = 2; - */ - boolean hasResource(); - /** - * .flyteidl.admin.Resource resource = 2; - */ - flyteidl.admin.AgentOuterClass.Resource getResource(); - /** - * .flyteidl.admin.Resource resource = 2; - */ - flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder(); - - public flyteidl.admin.AgentOuterClass.CreateTaskResponse.ResCase getResCase(); - } - /** - *
-   * Represents a create response structure.
-   * 
- * - * Protobuf type {@code flyteidl.admin.CreateTaskResponse} - */ - public static final class CreateTaskResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.CreateTaskResponse) - CreateTaskResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTaskResponse.newBuilder() to construct. - private CreateTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTaskResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTaskResponse( - 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: { - resCase_ = 1; - res_ = input.readBytes(); - break; - } - case 18: { - flyteidl.admin.AgentOuterClass.Resource.Builder subBuilder = null; - if (resCase_ == 2) { - subBuilder = ((flyteidl.admin.AgentOuterClass.Resource) res_).toBuilder(); - } - res_ = - input.readMessage(flyteidl.admin.AgentOuterClass.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.AgentOuterClass.Resource) res_); - res_ = subBuilder.buildPartial(); - } - resCase_ = 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.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.CreateTaskResponse.class, flyteidl.admin.AgentOuterClass.CreateTaskResponse.Builder.class); - } - - private int resCase_ = 0; - private java.lang.Object res_; - public enum ResCase - implements com.google.protobuf.Internal.EnumLite { - RESOURCE_META(1), - RESOURCE(2), - RES_NOT_SET(0); - private final int value; - private ResCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResCase valueOf(int value) { - return forNumber(value); - } - - public static ResCase forNumber(int value) { - switch (value) { - case 1: return RESOURCE_META; - case 2: return RESOURCE; - case 0: return RES_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResCase - getResCase() { - return ResCase.forNumber( - resCase_); - } - - public static final int RESOURCE_META_FIELD_NUMBER = 1; - /** - * bytes resource_meta = 1; - */ - public com.google.protobuf.ByteString getResourceMeta() { - if (resCase_ == 1) { - return (com.google.protobuf.ByteString) res_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int RESOURCE_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.Resource resource = 2; - */ - public boolean hasResource() { - return resCase_ == 2; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public flyteidl.admin.AgentOuterClass.Resource getResource() { - if (resCase_ == 2) { - return (flyteidl.admin.AgentOuterClass.Resource) res_; - } - return flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder() { - if (resCase_ == 2) { - return (flyteidl.admin.AgentOuterClass.Resource) res_; - } - return flyteidl.admin.AgentOuterClass.Resource.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 (resCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) res_); - } - if (resCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.AgentOuterClass.Resource) res_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) res_); - } - if (resCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.AgentOuterClass.Resource) res_); - } - 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.AgentOuterClass.CreateTaskResponse)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.CreateTaskResponse other = (flyteidl.admin.AgentOuterClass.CreateTaskResponse) obj; - - if (!getResCase().equals(other.getResCase())) return false; - switch (resCase_) { - case 1: - if (!getResourceMeta() - .equals(other.getResourceMeta())) return false; - break; - case 2: - if (!getResource() - .equals(other.getResource())) 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 (resCase_) { - case 1: - hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; - hash = (53 * hash) + getResourceMeta().hashCode(); - break; - case 2: - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse 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.AgentOuterClass.CreateTaskResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse 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.AgentOuterClass.CreateTaskResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse 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.AgentOuterClass.CreateTaskResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse 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.AgentOuterClass.CreateTaskResponse 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; - } - /** - *
-     * Represents a create response structure.
-     * 
- * - * Protobuf type {@code flyteidl.admin.CreateTaskResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.CreateTaskResponse) - flyteidl.admin.AgentOuterClass.CreateTaskResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.CreateTaskResponse.class, flyteidl.admin.AgentOuterClass.CreateTaskResponse.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.CreateTaskResponse.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(); - resCase_ = 0; - res_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_CreateTaskResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskResponse getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.CreateTaskResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskResponse build() { - flyteidl.admin.AgentOuterClass.CreateTaskResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.CreateTaskResponse buildPartial() { - flyteidl.admin.AgentOuterClass.CreateTaskResponse result = new flyteidl.admin.AgentOuterClass.CreateTaskResponse(this); - if (resCase_ == 1) { - result.res_ = res_; - } - if (resCase_ == 2) { - if (resourceBuilder_ == null) { - result.res_ = res_; - } else { - result.res_ = resourceBuilder_.build(); - } - } - result.resCase_ = resCase_; - 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.AgentOuterClass.CreateTaskResponse) { - return mergeFrom((flyteidl.admin.AgentOuterClass.CreateTaskResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.CreateTaskResponse other) { - if (other == flyteidl.admin.AgentOuterClass.CreateTaskResponse.getDefaultInstance()) return this; - switch (other.getResCase()) { - case RESOURCE_META: { - setResourceMeta(other.getResourceMeta()); - break; - } - case RESOURCE: { - mergeResource(other.getResource()); - break; - } - case RES_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.AgentOuterClass.CreateTaskResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.CreateTaskResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int resCase_ = 0; - private java.lang.Object res_; - public ResCase - getResCase() { - return ResCase.forNumber( - resCase_); - } - - public Builder clearRes() { - resCase_ = 0; - res_ = null; - onChanged(); - return this; - } - - - /** - * bytes resource_meta = 1; - */ - public com.google.protobuf.ByteString getResourceMeta() { - if (resCase_ == 1) { - return (com.google.protobuf.ByteString) res_; - } - return com.google.protobuf.ByteString.EMPTY; - } - /** - * bytes resource_meta = 1; - */ - public Builder setResourceMeta(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - resCase_ = 1; - res_ = value; - onChanged(); - return this; - } - /** - * bytes resource_meta = 1; - */ - public Builder clearResourceMeta() { - if (resCase_ == 1) { - resCase_ = 0; - res_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder> resourceBuilder_; - /** - * .flyteidl.admin.Resource resource = 2; - */ - public boolean hasResource() { - return resCase_ == 2; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public flyteidl.admin.AgentOuterClass.Resource getResource() { - if (resourceBuilder_ == null) { - if (resCase_ == 2) { - return (flyteidl.admin.AgentOuterClass.Resource) res_; - } - return flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } else { - if (resCase_ == 2) { - return resourceBuilder_.getMessage(); - } - return flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public Builder setResource(flyteidl.admin.AgentOuterClass.Resource value) { - if (resourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - res_ = value; - onChanged(); - } else { - resourceBuilder_.setMessage(value); - } - resCase_ = 2; - return this; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public Builder setResource( - flyteidl.admin.AgentOuterClass.Resource.Builder builderForValue) { - if (resourceBuilder_ == null) { - res_ = builderForValue.build(); - onChanged(); - } else { - resourceBuilder_.setMessage(builderForValue.build()); - } - resCase_ = 2; - return this; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public Builder mergeResource(flyteidl.admin.AgentOuterClass.Resource value) { - if (resourceBuilder_ == null) { - if (resCase_ == 2 && - res_ != flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance()) { - res_ = flyteidl.admin.AgentOuterClass.Resource.newBuilder((flyteidl.admin.AgentOuterClass.Resource) res_) - .mergeFrom(value).buildPartial(); - } else { - res_ = value; - } - onChanged(); - } else { - if (resCase_ == 2) { - resourceBuilder_.mergeFrom(value); - } - resourceBuilder_.setMessage(value); - } - resCase_ = 2; - return this; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public Builder clearResource() { - if (resourceBuilder_ == null) { - if (resCase_ == 2) { - resCase_ = 0; - res_ = null; - onChanged(); - } - } else { - if (resCase_ == 2) { - resCase_ = 0; - res_ = null; - } - resourceBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public flyteidl.admin.AgentOuterClass.Resource.Builder getResourceBuilder() { - return getResourceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - public flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder() { - if ((resCase_ == 2) && (resourceBuilder_ != null)) { - return resourceBuilder_.getMessageOrBuilder(); - } else { - if (resCase_ == 2) { - return (flyteidl.admin.AgentOuterClass.Resource) res_; - } - return flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.Resource resource = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder> - getResourceFieldBuilder() { - if (resourceBuilder_ == null) { - if (!(resCase_ == 2)) { - res_ = flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder>( - (flyteidl.admin.AgentOuterClass.Resource) res_, - getParentForChildren(), - isClean()); - res_ = null; - } - resCase_ = 2; - onChanged();; - return resourceBuilder_; - } - @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.CreateTaskResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.CreateTaskResponse) - private static final flyteidl.admin.AgentOuterClass.CreateTaskResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.CreateTaskResponse(); - } - - public static flyteidl.admin.AgentOuterClass.CreateTaskResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaskResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTaskResponse(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.AgentOuterClass.CreateTaskResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetTaskRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * Metadata about the resource to be pass to the agent.
-     * 
- * - * bytes resource_meta = 2; - */ - com.google.protobuf.ByteString getResourceMeta(); - } - /** - *
-   * A message used to fetch a job resource from flyte agent server.
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetTaskRequest} - */ - public static final class GetTaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskRequest) - GetTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTaskRequest.newBuilder() to construct. - private GetTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTaskRequest() { - taskType_ = ""; - resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTaskRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 18: { - - resourceMeta_ = input.readBytes(); - 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.AgentOuterClass.internal_static_flyteidl_admin_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetTaskRequest.class, flyteidl.admin.AgentOuterClass.GetTaskRequest.Builder.class); - } - - public static final int TASK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_META_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString resourceMeta_; - /** - *
-     * Metadata about the resource to be pass to the agent.
-     * 
- * - * bytes resource_meta = 2; - */ - public com.google.protobuf.ByteString getResourceMeta() { - return resourceMeta_; - } - - 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 (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); - } - if (!resourceMeta_.isEmpty()) { - output.writeBytes(2, resourceMeta_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); - } - if (!resourceMeta_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, resourceMeta_); - } - 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.AgentOuterClass.GetTaskRequest)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.GetTaskRequest other = (flyteidl.admin.AgentOuterClass.GetTaskRequest) obj; - - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (!getResourceMeta() - .equals(other.getResourceMeta())) 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(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; - hash = (53 * hash) + getResourceMeta().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.GetTaskRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest 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.AgentOuterClass.GetTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest 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.AgentOuterClass.GetTaskRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest 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.AgentOuterClass.GetTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskRequest 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.AgentOuterClass.GetTaskRequest 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; - } - /** - *
-     * A message used to fetch a job resource from flyte agent server.
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetTaskRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskRequest) - flyteidl.admin.AgentOuterClass.GetTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetTaskRequest.class, flyteidl.admin.AgentOuterClass.GetTaskRequest.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.GetTaskRequest.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(); - taskType_ = ""; - - resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskRequest getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.GetTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskRequest build() { - flyteidl.admin.AgentOuterClass.GetTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskRequest buildPartial() { - flyteidl.admin.AgentOuterClass.GetTaskRequest result = new flyteidl.admin.AgentOuterClass.GetTaskRequest(this); - result.taskType_ = taskType_; - result.resourceMeta_ = resourceMeta_; - 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.AgentOuterClass.GetTaskRequest) { - return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskRequest other) { - if (other == flyteidl.admin.AgentOuterClass.GetTaskRequest.getDefaultInstance()) return this; - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { - setResourceMeta(other.getResourceMeta()); - } - 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.AgentOuterClass.GetTaskRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public com.google.protobuf.ByteString getResourceMeta() { - return resourceMeta_; - } - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public Builder setResourceMeta(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceMeta_ = value; - onChanged(); - return this; - } - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public Builder clearResourceMeta() { - - resourceMeta_ = getDefaultInstance().getResourceMeta(); - onChanged(); - return this; - } - @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.GetTaskRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskRequest) - private static final flyteidl.admin.AgentOuterClass.GetTaskRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskRequest(); - } - - public static flyteidl.admin.AgentOuterClass.GetTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTaskRequest(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.AgentOuterClass.GetTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetTaskResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetTaskResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.Resource resource = 1; - */ - boolean hasResource(); - /** - * .flyteidl.admin.Resource resource = 1; - */ - flyteidl.admin.AgentOuterClass.Resource getResource(); - /** - * .flyteidl.admin.Resource resource = 1; - */ - flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder(); - - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - java.util.List - getLogLinksList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - flyteidl.core.Execution.TaskLog getLogLinks(int index); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - int getLogLinksCount(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - java.util.List - getLogLinksOrBuilderList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index); - } - /** - *
-   * Response to get an individual task resource.
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetTaskResponse} - */ - public static final class GetTaskResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetTaskResponse) - GetTaskResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetTaskResponse.newBuilder() to construct. - private GetTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetTaskResponse() { - logLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetTaskResponse( - 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.AgentOuterClass.Resource.Builder subBuilder = null; - if (resource_ != null) { - subBuilder = resource_.toBuilder(); - } - resource_ = input.readMessage(flyteidl.admin.AgentOuterClass.Resource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resource_); - resource_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - logLinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - logLinks_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - logLinks_ = java.util.Collections.unmodifiableList(logLinks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetTaskResponse.class, flyteidl.admin.AgentOuterClass.GetTaskResponse.Builder.class); - } - - private int bitField0_; - public static final int RESOURCE_FIELD_NUMBER = 1; - private flyteidl.admin.AgentOuterClass.Resource resource_; - /** - * .flyteidl.admin.Resource resource = 1; - */ - public boolean hasResource() { - return resource_ != null; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public flyteidl.admin.AgentOuterClass.Resource getResource() { - return resource_ == null ? flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance() : resource_; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder() { - return getResource(); - } - - public static final int LOG_LINKS_FIELD_NUMBER = 2; - private java.util.List logLinks_; - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public java.util.List getLogLinksList() { - return logLinks_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public java.util.List - getLogLinksOrBuilderList() { - return logLinks_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public int getLogLinksCount() { - return logLinks_.size(); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLog getLogLinks(int index) { - return logLinks_.get(index); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index) { - return logLinks_.get(index); - } - - 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 (resource_ != null) { - output.writeMessage(1, getResource()); - } - for (int i = 0; i < logLinks_.size(); i++) { - output.writeMessage(2, logLinks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resource_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResource()); - } - for (int i = 0; i < logLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, logLinks_.get(i)); - } - 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.AgentOuterClass.GetTaskResponse)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.GetTaskResponse other = (flyteidl.admin.AgentOuterClass.GetTaskResponse) obj; - - if (hasResource() != other.hasResource()) return false; - if (hasResource()) { - if (!getResource() - .equals(other.getResource())) return false; - } - if (!getLogLinksList() - .equals(other.getLogLinksList())) 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 (hasResource()) { - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - } - if (getLogLinksCount() > 0) { - hash = (37 * hash) + LOG_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getLogLinksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.GetTaskResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse 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.AgentOuterClass.GetTaskResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse 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.AgentOuterClass.GetTaskResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse 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.AgentOuterClass.GetTaskResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetTaskResponse 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.AgentOuterClass.GetTaskResponse 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; - } - /** - *
-     * Response to get an individual task resource.
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetTaskResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetTaskResponse) - flyteidl.admin.AgentOuterClass.GetTaskResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetTaskResponse.class, flyteidl.admin.AgentOuterClass.GetTaskResponse.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.GetTaskResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogLinksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (resourceBuilder_ == null) { - resource_ = null; - } else { - resource_ = null; - resourceBuilder_ = null; - } - if (logLinksBuilder_ == null) { - logLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - logLinksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetTaskResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskResponse getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.GetTaskResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskResponse build() { - flyteidl.admin.AgentOuterClass.GetTaskResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetTaskResponse buildPartial() { - flyteidl.admin.AgentOuterClass.GetTaskResponse result = new flyteidl.admin.AgentOuterClass.GetTaskResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (resourceBuilder_ == null) { - result.resource_ = resource_; - } else { - result.resource_ = resourceBuilder_.build(); - } - if (logLinksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - logLinks_ = java.util.Collections.unmodifiableList(logLinks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.logLinks_ = logLinks_; - } else { - result.logLinks_ = logLinksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.AgentOuterClass.GetTaskResponse) { - return mergeFrom((flyteidl.admin.AgentOuterClass.GetTaskResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetTaskResponse other) { - if (other == flyteidl.admin.AgentOuterClass.GetTaskResponse.getDefaultInstance()) return this; - if (other.hasResource()) { - mergeResource(other.getResource()); - } - if (logLinksBuilder_ == null) { - if (!other.logLinks_.isEmpty()) { - if (logLinks_.isEmpty()) { - logLinks_ = other.logLinks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLogLinksIsMutable(); - logLinks_.addAll(other.logLinks_); - } - onChanged(); - } - } else { - if (!other.logLinks_.isEmpty()) { - if (logLinksBuilder_.isEmpty()) { - logLinksBuilder_.dispose(); - logLinksBuilder_ = null; - logLinks_ = other.logLinks_; - bitField0_ = (bitField0_ & ~0x00000002); - logLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogLinksFieldBuilder() : null; - } else { - logLinksBuilder_.addAllMessages(other.logLinks_); - } - } - } - 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.AgentOuterClass.GetTaskResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.GetTaskResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.admin.AgentOuterClass.Resource resource_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder> resourceBuilder_; - /** - * .flyteidl.admin.Resource resource = 1; - */ - public boolean hasResource() { - return resourceBuilder_ != null || resource_ != null; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public flyteidl.admin.AgentOuterClass.Resource getResource() { - if (resourceBuilder_ == null) { - return resource_ == null ? flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance() : resource_; - } else { - return resourceBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public Builder setResource(flyteidl.admin.AgentOuterClass.Resource value) { - if (resourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - resourceBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public Builder setResource( - flyteidl.admin.AgentOuterClass.Resource.Builder builderForValue) { - if (resourceBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - resourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public Builder mergeResource(flyteidl.admin.AgentOuterClass.Resource value) { - if (resourceBuilder_ == null) { - if (resource_ != null) { - resource_ = - flyteidl.admin.AgentOuterClass.Resource.newBuilder(resource_).mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - resourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public Builder clearResource() { - if (resourceBuilder_ == null) { - resource_ = null; - onChanged(); - } else { - resource_ = null; - resourceBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public flyteidl.admin.AgentOuterClass.Resource.Builder getResourceBuilder() { - - onChanged(); - return getResourceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - public flyteidl.admin.AgentOuterClass.ResourceOrBuilder getResourceOrBuilder() { - if (resourceBuilder_ != null) { - return resourceBuilder_.getMessageOrBuilder(); - } else { - return resource_ == null ? - flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance() : resource_; - } - } - /** - * .flyteidl.admin.Resource resource = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder> - getResourceFieldBuilder() { - if (resourceBuilder_ == null) { - resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Resource, flyteidl.admin.AgentOuterClass.Resource.Builder, flyteidl.admin.AgentOuterClass.ResourceOrBuilder>( - getResource(), - getParentForChildren(), - isClean()); - resource_ = null; - } - return resourceBuilder_; - } - - private java.util.List logLinks_ = - java.util.Collections.emptyList(); - private void ensureLogLinksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - logLinks_ = new java.util.ArrayList(logLinks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logLinksBuilder_; - - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public java.util.List getLogLinksList() { - if (logLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(logLinks_); - } else { - return logLinksBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public int getLogLinksCount() { - if (logLinksBuilder_ == null) { - return logLinks_.size(); - } else { - return logLinksBuilder_.getCount(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLog getLogLinks(int index) { - if (logLinksBuilder_ == null) { - return logLinks_.get(index); - } else { - return logLinksBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder setLogLinks( - int index, flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.set(index, value); - onChanged(); - } else { - logLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder setLogLinks( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder addLogLinks(flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.add(value); - onChanged(); - } else { - logLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder addLogLinks( - int index, flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.add(index, value); - onChanged(); - } else { - logLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder addLogLinks( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.add(builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder addLogLinks( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder addAllLogLinks( - java.lang.Iterable values) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logLinks_); - onChanged(); - } else { - logLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder clearLogLinks() { - if (logLinksBuilder_ == null) { - logLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - logLinksBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public Builder removeLogLinks(int index) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.remove(index); - onChanged(); - } else { - logLinksBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogLinksBuilder( - int index) { - return getLogLinksFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index) { - if (logLinksBuilder_ == null) { - return logLinks_.get(index); } else { - return logLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public java.util.List - getLogLinksOrBuilderList() { - if (logLinksBuilder_ != null) { - return logLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logLinks_); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogLinksBuilder() { - return getLogLinksFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogLinksBuilder( - int index) { - return getLogLinksFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 2; - */ - public java.util.List - getLogLinksBuilderList() { - return getLogLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogLinksFieldBuilder() { - if (logLinksBuilder_ == null) { - logLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logLinks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - logLinks_ = null; - } - return logLinksBuilder_; - } - @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.GetTaskResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetTaskResponse) - private static final flyteidl.admin.AgentOuterClass.GetTaskResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetTaskResponse(); - } - - public static flyteidl.admin.AgentOuterClass.GetTaskResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaskResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetTaskResponse(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.AgentOuterClass.GetTaskResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Resource) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.State state = 1; - */ - int getStateValue(); - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.State state = 1; - */ - flyteidl.admin.AgentOuterClass.State getState(); - - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - flyteidl.core.Literals.LiteralMap getOutputs(); - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder(); - - /** - *
-     * A descriptive message for the current state. e.g. waiting for cluster.
-     * 
- * - * string message = 3; - */ - java.lang.String getMessage(); - /** - *
-     * A descriptive message for the current state. e.g. waiting for cluster.
-     * 
- * - * string message = 3; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - java.util.List - getLogLinksList(); - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - flyteidl.core.Execution.TaskLog getLogLinks(int index); - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - int getLogLinksCount(); - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - java.util.List - getLogLinksOrBuilderList(); - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.Resource} - */ - public static final class Resource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Resource) - ResourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resource.newBuilder() to construct. - private Resource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Resource() { - state_ = 0; - message_ = ""; - logLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Resource( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - logLinks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - logLinks_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - logLinks_ = java.util.Collections.unmodifiableList(logLinks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Resource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Resource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.Resource.class, flyteidl.admin.AgentOuterClass.Resource.Builder.class); - } - - private int bitField0_; - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.State state = 1; - */ - public flyteidl.admin.AgentOuterClass.State getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.AgentOuterClass.State result = flyteidl.admin.AgentOuterClass.State.valueOf(state_); - return result == null ? flyteidl.admin.AgentOuterClass.State.UNRECOGNIZED : result; - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap outputs_; - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputs() { - return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } - /** - *
-     * The outputs of the execution. It's typically used by sql task. Agent service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int MESSAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object message_; - /** - *
-     * A descriptive message for the current state. e.g. waiting for cluster.
-     * 
- * - * string message = 3; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-     * A descriptive message for the current state. e.g. waiting for cluster.
-     * 
- * - * string message = 3; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOG_LINKS_FIELD_NUMBER = 4; - private java.util.List logLinks_; - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public java.util.List getLogLinksList() { - return logLinks_; - } - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public java.util.List - getLogLinksOrBuilderList() { - return logLinks_; - } - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public int getLogLinksCount() { - return logLinks_.size(); - } - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLog getLogLinks(int index) { - return logLinks_.get(index); - } - /** - *
-     * log information for the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index) { - return logLinks_.get(index); - } - - 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 (state_ != flyteidl.admin.AgentOuterClass.State.RETRYABLE_FAILURE.getNumber()) { - output.writeEnum(1, state_); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_); - } - for (int i = 0; i < logLinks_.size(); i++) { - output.writeMessage(4, logLinks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.admin.AgentOuterClass.State.RETRYABLE_FAILURE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_); - } - for (int i = 0; i < logLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logLinks_.get(i)); - } - 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.AgentOuterClass.Resource)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.Resource other = (flyteidl.admin.AgentOuterClass.Resource) obj; - - if (state_ != other.state_) return false; - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getLogLinksList() - .equals(other.getLogLinksList())) 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(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - if (getLogLinksCount() > 0) { - hash = (37 * hash) + LOG_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getLogLinksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.Resource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Resource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.Resource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Resource 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.AgentOuterClass.Resource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Resource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.Resource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Resource 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.AgentOuterClass.Resource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Resource 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.AgentOuterClass.Resource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Resource 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.AgentOuterClass.Resource 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; - } - /** - * Protobuf type {@code flyteidl.admin.Resource} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Resource) - flyteidl.admin.AgentOuterClass.ResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Resource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Resource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.Resource.class, flyteidl.admin.AgentOuterClass.Resource.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.Resource.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogLinksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - state_ = 0; - - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - message_ = ""; - - if (logLinksBuilder_ == null) { - logLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - logLinksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Resource_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Resource getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Resource build() { - flyteidl.admin.AgentOuterClass.Resource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Resource buildPartial() { - flyteidl.admin.AgentOuterClass.Resource result = new flyteidl.admin.AgentOuterClass.Resource(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.state_ = state_; - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - result.message_ = message_; - if (logLinksBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - logLinks_ = java.util.Collections.unmodifiableList(logLinks_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.logLinks_ = logLinks_; - } else { - result.logLinks_ = logLinksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.AgentOuterClass.Resource) { - return mergeFrom((flyteidl.admin.AgentOuterClass.Resource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.Resource other) { - if (other == flyteidl.admin.AgentOuterClass.Resource.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (logLinksBuilder_ == null) { - if (!other.logLinks_.isEmpty()) { - if (logLinks_.isEmpty()) { - logLinks_ = other.logLinks_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureLogLinksIsMutable(); - logLinks_.addAll(other.logLinks_); - } - onChanged(); - } - } else { - if (!other.logLinks_.isEmpty()) { - if (logLinksBuilder_.isEmpty()) { - logLinksBuilder_.dispose(); - logLinksBuilder_ = null; - logLinks_ = other.logLinks_; - bitField0_ = (bitField0_ & ~0x00000008); - logLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogLinksFieldBuilder() : null; - } else { - logLinksBuilder_.addAllMessages(other.logLinks_); - } - } - } - 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.AgentOuterClass.Resource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.Resource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int state_ = 0; - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.State state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.State state = 1; - */ - public flyteidl.admin.AgentOuterClass.State getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.AgentOuterClass.State result = flyteidl.admin.AgentOuterClass.State.valueOf(state_); - return result == null ? flyteidl.admin.AgentOuterClass.State.UNRECOGNIZED : result; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.State state = 1; - */ - public Builder setState(flyteidl.admin.AgentOuterClass.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.State state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Literals.LiteralMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_; - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Agent service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private java.lang.Object message_ = ""; - /** - *
-       * A descriptive message for the current state. e.g. waiting for cluster.
-       * 
- * - * string message = 3; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A descriptive message for the current state. e.g. waiting for cluster.
-       * 
- * - * string message = 3; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A descriptive message for the current state. e.g. waiting for cluster.
-       * 
- * - * string message = 3; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * A descriptive message for the current state. e.g. waiting for cluster.
-       * 
- * - * string message = 3; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * A descriptive message for the current state. e.g. waiting for cluster.
-       * 
- * - * string message = 3; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.util.List logLinks_ = - java.util.Collections.emptyList(); - private void ensureLogLinksIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - logLinks_ = new java.util.ArrayList(logLinks_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logLinksBuilder_; - - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public java.util.List getLogLinksList() { - if (logLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(logLinks_); - } else { - return logLinksBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public int getLogLinksCount() { - if (logLinksBuilder_ == null) { - return logLinks_.size(); - } else { - return logLinksBuilder_.getCount(); - } - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLog getLogLinks(int index) { - if (logLinksBuilder_ == null) { - return logLinks_.get(index); - } else { - return logLinksBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder setLogLinks( - int index, flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.set(index, value); - onChanged(); - } else { - logLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder setLogLinks( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder addLogLinks(flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.add(value); - onChanged(); - } else { - logLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder addLogLinks( - int index, flyteidl.core.Execution.TaskLog value) { - if (logLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogLinksIsMutable(); - logLinks_.add(index, value); - onChanged(); - } else { - logLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder addLogLinks( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.add(builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder addLogLinks( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - logLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder addAllLogLinks( - java.lang.Iterable values) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logLinks_); - onChanged(); - } else { - logLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder clearLogLinks() { - if (logLinksBuilder_ == null) { - logLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - logLinksBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public Builder removeLogLinks(int index) { - if (logLinksBuilder_ == null) { - ensureLogLinksIsMutable(); - logLinks_.remove(index); - onChanged(); - } else { - logLinksBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogLinksBuilder( - int index) { - return getLogLinksFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogLinksOrBuilder( - int index) { - if (logLinksBuilder_ == null) { - return logLinks_.get(index); } else { - return logLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public java.util.List - getLogLinksOrBuilderList() { - if (logLinksBuilder_ != null) { - return logLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logLinks_); - } - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogLinksBuilder() { - return getLogLinksFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogLinksBuilder( - int index) { - return getLogLinksFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog log_links = 4; - */ - public java.util.List - getLogLinksBuilderList() { - return getLogLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogLinksFieldBuilder() { - if (logLinksBuilder_ == null) { - logLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logLinks_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - logLinks_ = null; - } - return logLinksBuilder_; - } - @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.Resource) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Resource) - private static final flyteidl.admin.AgentOuterClass.Resource DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.Resource(); - } - - public static flyteidl.admin.AgentOuterClass.Resource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resource(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.AgentOuterClass.Resource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteTaskRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * Metadata about the resource to be pass to the agent.
-     * 
- * - * bytes resource_meta = 2; - */ - com.google.protobuf.ByteString getResourceMeta(); - } - /** - *
-   * A message used to delete a task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} - */ - public static final class DeleteTaskRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskRequest) - DeleteTaskRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTaskRequest.newBuilder() to construct. - private DeleteTaskRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTaskRequest() { - taskType_ = ""; - resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteTaskRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 18: { - - resourceMeta_ = input.readBytes(); - 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.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.DeleteTaskRequest.class, flyteidl.admin.AgentOuterClass.DeleteTaskRequest.Builder.class); - } - - public static final int TASK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_META_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString resourceMeta_; - /** - *
-     * Metadata about the resource to be pass to the agent.
-     * 
- * - * bytes resource_meta = 2; - */ - public com.google.protobuf.ByteString getResourceMeta() { - return resourceMeta_; - } - - 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 (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); - } - if (!resourceMeta_.isEmpty()) { - output.writeBytes(2, resourceMeta_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); - } - if (!resourceMeta_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, resourceMeta_); - } - 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.AgentOuterClass.DeleteTaskRequest)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.DeleteTaskRequest other = (flyteidl.admin.AgentOuterClass.DeleteTaskRequest) obj; - - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (!getResourceMeta() - .equals(other.getResourceMeta())) 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(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - hash = (37 * hash) + RESOURCE_META_FIELD_NUMBER; - hash = (53 * hash) + getResourceMeta().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest 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.AgentOuterClass.DeleteTaskRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest 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.AgentOuterClass.DeleteTaskRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest 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.AgentOuterClass.DeleteTaskRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest 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.AgentOuterClass.DeleteTaskRequest 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; - } - /** - *
-     * A message used to delete a task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.DeleteTaskRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskRequest) - flyteidl.admin.AgentOuterClass.DeleteTaskRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.DeleteTaskRequest.class, flyteidl.admin.AgentOuterClass.DeleteTaskRequest.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.DeleteTaskRequest.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(); - taskType_ = ""; - - resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskRequest getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.DeleteTaskRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskRequest build() { - flyteidl.admin.AgentOuterClass.DeleteTaskRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskRequest buildPartial() { - flyteidl.admin.AgentOuterClass.DeleteTaskRequest result = new flyteidl.admin.AgentOuterClass.DeleteTaskRequest(this); - result.taskType_ = taskType_; - result.resourceMeta_ = resourceMeta_; - 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.AgentOuterClass.DeleteTaskRequest) { - return mergeFrom((flyteidl.admin.AgentOuterClass.DeleteTaskRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.DeleteTaskRequest other) { - if (other == flyteidl.admin.AgentOuterClass.DeleteTaskRequest.getDefaultInstance()) return this; - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (other.getResourceMeta() != com.google.protobuf.ByteString.EMPTY) { - setResourceMeta(other.getResourceMeta()); - } - 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.AgentOuterClass.DeleteTaskRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.DeleteTaskRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString resourceMeta_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public com.google.protobuf.ByteString getResourceMeta() { - return resourceMeta_; - } - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public Builder setResourceMeta(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceMeta_ = value; - onChanged(); - return this; - } - /** - *
-       * Metadata about the resource to be pass to the agent.
-       * 
- * - * bytes resource_meta = 2; - */ - public Builder clearResourceMeta() { - - resourceMeta_ = getDefaultInstance().getResourceMeta(); - onChanged(); - return this; - } - @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.DeleteTaskRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskRequest) - private static final flyteidl.admin.AgentOuterClass.DeleteTaskRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.DeleteTaskRequest(); - } - - public static flyteidl.admin.AgentOuterClass.DeleteTaskRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaskRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTaskRequest(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.AgentOuterClass.DeleteTaskRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteTaskResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DeleteTaskResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response to delete a task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} - */ - public static final class DeleteTaskResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DeleteTaskResponse) - DeleteTaskResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTaskResponse.newBuilder() to construct. - private DeleteTaskResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTaskResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteTaskResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.DeleteTaskResponse.class, flyteidl.admin.AgentOuterClass.DeleteTaskResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.AgentOuterClass.DeleteTaskResponse)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.DeleteTaskResponse other = (flyteidl.admin.AgentOuterClass.DeleteTaskResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse 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.AgentOuterClass.DeleteTaskResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse 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.AgentOuterClass.DeleteTaskResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse 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.AgentOuterClass.DeleteTaskResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse 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.AgentOuterClass.DeleteTaskResponse 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; - } - /** - *
-     * Response to delete a task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.DeleteTaskResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DeleteTaskResponse) - flyteidl.admin.AgentOuterClass.DeleteTaskResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.DeleteTaskResponse.class, flyteidl.admin.AgentOuterClass.DeleteTaskResponse.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.DeleteTaskResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskResponse getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.DeleteTaskResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskResponse build() { - flyteidl.admin.AgentOuterClass.DeleteTaskResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.DeleteTaskResponse buildPartial() { - flyteidl.admin.AgentOuterClass.DeleteTaskResponse result = new flyteidl.admin.AgentOuterClass.DeleteTaskResponse(this); - 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.AgentOuterClass.DeleteTaskResponse) { - return mergeFrom((flyteidl.admin.AgentOuterClass.DeleteTaskResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.DeleteTaskResponse other) { - if (other == flyteidl.admin.AgentOuterClass.DeleteTaskResponse.getDefaultInstance()) return this; - 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.AgentOuterClass.DeleteTaskResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.DeleteTaskResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.DeleteTaskResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DeleteTaskResponse) - private static final flyteidl.admin.AgentOuterClass.DeleteTaskResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.DeleteTaskResponse(); - } - - public static flyteidl.admin.AgentOuterClass.DeleteTaskResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaskResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTaskResponse(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.AgentOuterClass.DeleteTaskResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AgentOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Agent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name is the developer-assigned name of the agent.
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * Name is the developer-assigned name of the agent.
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - java.util.List - getSupportedTaskTypesList(); - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - int getSupportedTaskTypesCount(); - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - java.lang.String getSupportedTaskTypes(int index); - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - com.google.protobuf.ByteString - getSupportedTaskTypesBytes(int index); - } - /** - *
-   * A message containing the agent metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Agent} - */ - public static final class Agent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Agent) - AgentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Agent.newBuilder() to construct. - private Agent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Agent() { - name_ = ""; - supportedTaskTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Agent( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - supportedTaskTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - supportedTaskTypes_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - supportedTaskTypes_ = supportedTaskTypes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Agent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Agent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.Agent.class, flyteidl.admin.AgentOuterClass.Agent.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * Name is the developer-assigned name of the agent.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Name is the developer-assigned name of the agent.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUPPORTED_TASK_TYPES_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList supportedTaskTypes_; - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - public com.google.protobuf.ProtocolStringList - getSupportedTaskTypesList() { - return supportedTaskTypes_; - } - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - public int getSupportedTaskTypesCount() { - return supportedTaskTypes_.size(); - } - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - public java.lang.String getSupportedTaskTypes(int index) { - return supportedTaskTypes_.get(index); - } - /** - *
-     * SupportedTaskTypes are the types of the tasks that the agent can handle.
-     * 
- * - * repeated string supported_task_types = 2; - */ - public com.google.protobuf.ByteString - getSupportedTaskTypesBytes(int index) { - return supportedTaskTypes_.getByteString(index); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - for (int i = 0; i < supportedTaskTypes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, supportedTaskTypes_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < supportedTaskTypes_.size(); i++) { - dataSize += computeStringSizeNoTag(supportedTaskTypes_.getRaw(i)); - } - size += dataSize; - size += 1 * getSupportedTaskTypesList().size(); - } - 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.AgentOuterClass.Agent)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.Agent other = (flyteidl.admin.AgentOuterClass.Agent) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSupportedTaskTypesList() - .equals(other.getSupportedTaskTypesList())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getSupportedTaskTypesCount() > 0) { - hash = (37 * hash) + SUPPORTED_TASK_TYPES_FIELD_NUMBER; - hash = (53 * hash) + getSupportedTaskTypesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.Agent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Agent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.Agent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Agent 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.AgentOuterClass.Agent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.Agent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.Agent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Agent 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.AgentOuterClass.Agent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Agent 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.AgentOuterClass.Agent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.Agent 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.AgentOuterClass.Agent 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; - } - /** - *
-     * A message containing the agent metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Agent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Agent) - flyteidl.admin.AgentOuterClass.AgentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Agent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Agent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.Agent.class, flyteidl.admin.AgentOuterClass.Agent.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.Agent.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(); - name_ = ""; - - supportedTaskTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_Agent_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Agent getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Agent build() { - flyteidl.admin.AgentOuterClass.Agent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.Agent buildPartial() { - flyteidl.admin.AgentOuterClass.Agent result = new flyteidl.admin.AgentOuterClass.Agent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - if (((bitField0_ & 0x00000002) != 0)) { - supportedTaskTypes_ = supportedTaskTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportedTaskTypes_ = supportedTaskTypes_; - result.bitField0_ = to_bitField0_; - 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.AgentOuterClass.Agent) { - return mergeFrom((flyteidl.admin.AgentOuterClass.Agent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.Agent other) { - if (other == flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.supportedTaskTypes_.isEmpty()) { - if (supportedTaskTypes_.isEmpty()) { - supportedTaskTypes_ = other.supportedTaskTypes_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportedTaskTypesIsMutable(); - supportedTaskTypes_.addAll(other.supportedTaskTypes_); - } - onChanged(); - } - 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.AgentOuterClass.Agent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.Agent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-       * Name is the developer-assigned name of the agent.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name is the developer-assigned name of the agent.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name is the developer-assigned name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Name is the developer-assigned name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Name is the developer-assigned name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList supportedTaskTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSupportedTaskTypesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportedTaskTypes_ = new com.google.protobuf.LazyStringArrayList(supportedTaskTypes_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public com.google.protobuf.ProtocolStringList - getSupportedTaskTypesList() { - return supportedTaskTypes_.getUnmodifiableView(); - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public int getSupportedTaskTypesCount() { - return supportedTaskTypes_.size(); - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public java.lang.String getSupportedTaskTypes(int index) { - return supportedTaskTypes_.get(index); - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public com.google.protobuf.ByteString - getSupportedTaskTypesBytes(int index) { - return supportedTaskTypes_.getByteString(index); - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public Builder setSupportedTaskTypes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedTaskTypesIsMutable(); - supportedTaskTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public Builder addSupportedTaskTypes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSupportedTaskTypesIsMutable(); - supportedTaskTypes_.add(value); - onChanged(); - return this; - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public Builder addAllSupportedTaskTypes( - java.lang.Iterable values) { - ensureSupportedTaskTypesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, supportedTaskTypes_); - onChanged(); - return this; - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public Builder clearSupportedTaskTypes() { - supportedTaskTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * SupportedTaskTypes are the types of the tasks that the agent can handle.
-       * 
- * - * repeated string supported_task_types = 2; - */ - public Builder addSupportedTaskTypesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSupportedTaskTypesIsMutable(); - supportedTaskTypes_.add(value); - onChanged(); - return this; - } - @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.Agent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Agent) - private static final flyteidl.admin.AgentOuterClass.Agent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.Agent(); - } - - public static flyteidl.admin.AgentOuterClass.Agent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Agent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Agent(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.AgentOuterClass.Agent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetAgentRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetAgentRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The name of the agent.
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * The name of the agent.
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * A request to get an agent.
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetAgentRequest} - */ - public static final class GetAgentRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetAgentRequest) - GetAgentRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAgentRequest.newBuilder() to construct. - private GetAgentRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAgentRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAgentRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.AgentOuterClass.internal_static_flyteidl_admin_GetAgentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetAgentRequest.class, flyteidl.admin.AgentOuterClass.GetAgentRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * The name of the agent.
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * The name of the agent.
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - 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.AgentOuterClass.GetAgentRequest)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.GetAgentRequest other = (flyteidl.admin.AgentOuterClass.GetAgentRequest) obj; - - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.GetAgentRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest 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.AgentOuterClass.GetAgentRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest 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.AgentOuterClass.GetAgentRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest 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.AgentOuterClass.GetAgentRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentRequest 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.AgentOuterClass.GetAgentRequest 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; - } - /** - *
-     * A request to get an agent.
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetAgentRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetAgentRequest) - flyteidl.admin.AgentOuterClass.GetAgentRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetAgentRequest.class, flyteidl.admin.AgentOuterClass.GetAgentRequest.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.GetAgentRequest.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(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentRequest getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.GetAgentRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentRequest build() { - flyteidl.admin.AgentOuterClass.GetAgentRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentRequest buildPartial() { - flyteidl.admin.AgentOuterClass.GetAgentRequest result = new flyteidl.admin.AgentOuterClass.GetAgentRequest(this); - result.name_ = name_; - 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.AgentOuterClass.GetAgentRequest) { - return mergeFrom((flyteidl.admin.AgentOuterClass.GetAgentRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetAgentRequest other) { - if (other == flyteidl.admin.AgentOuterClass.GetAgentRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.AgentOuterClass.GetAgentRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.GetAgentRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * The name of the agent.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the agent.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * The name of the agent.
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.GetAgentRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetAgentRequest) - private static final flyteidl.admin.AgentOuterClass.GetAgentRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetAgentRequest(); - } - - public static flyteidl.admin.AgentOuterClass.GetAgentRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAgentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAgentRequest(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.AgentOuterClass.GetAgentRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetAgentResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetAgentResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.Agent agent = 1; - */ - boolean hasAgent(); - /** - * .flyteidl.admin.Agent agent = 1; - */ - flyteidl.admin.AgentOuterClass.Agent getAgent(); - /** - * .flyteidl.admin.Agent agent = 1; - */ - flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentOrBuilder(); - } - /** - *
-   * A response containing an agent.
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetAgentResponse} - */ - public static final class GetAgentResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetAgentResponse) - GetAgentResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetAgentResponse.newBuilder() to construct. - private GetAgentResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAgentResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetAgentResponse( - 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.AgentOuterClass.Agent.Builder subBuilder = null; - if (agent_ != null) { - subBuilder = agent_.toBuilder(); - } - agent_ = input.readMessage(flyteidl.admin.AgentOuterClass.Agent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(agent_); - agent_ = 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.AgentOuterClass.internal_static_flyteidl_admin_GetAgentResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetAgentResponse.class, flyteidl.admin.AgentOuterClass.GetAgentResponse.Builder.class); - } - - public static final int AGENT_FIELD_NUMBER = 1; - private flyteidl.admin.AgentOuterClass.Agent agent_; - /** - * .flyteidl.admin.Agent agent = 1; - */ - public boolean hasAgent() { - return agent_ != null; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent getAgent() { - return agent_ == null ? flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance() : agent_; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentOrBuilder() { - return getAgent(); - } - - 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 (agent_ != null) { - output.writeMessage(1, getAgent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (agent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAgent()); - } - 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.AgentOuterClass.GetAgentResponse)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.GetAgentResponse other = (flyteidl.admin.AgentOuterClass.GetAgentResponse) obj; - - if (hasAgent() != other.hasAgent()) return false; - if (hasAgent()) { - if (!getAgent() - .equals(other.getAgent())) 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 (hasAgent()) { - hash = (37 * hash) + AGENT_FIELD_NUMBER; - hash = (53 * hash) + getAgent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.GetAgentResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse 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.AgentOuterClass.GetAgentResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse 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.AgentOuterClass.GetAgentResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse 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.AgentOuterClass.GetAgentResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.GetAgentResponse 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.AgentOuterClass.GetAgentResponse 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; - } - /** - *
-     * A response containing an agent.
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetAgentResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetAgentResponse) - flyteidl.admin.AgentOuterClass.GetAgentResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.GetAgentResponse.class, flyteidl.admin.AgentOuterClass.GetAgentResponse.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.GetAgentResponse.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 (agentBuilder_ == null) { - agent_ = null; - } else { - agent_ = null; - agentBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_GetAgentResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentResponse getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.GetAgentResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentResponse build() { - flyteidl.admin.AgentOuterClass.GetAgentResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.GetAgentResponse buildPartial() { - flyteidl.admin.AgentOuterClass.GetAgentResponse result = new flyteidl.admin.AgentOuterClass.GetAgentResponse(this); - if (agentBuilder_ == null) { - result.agent_ = agent_; - } else { - result.agent_ = agentBuilder_.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.AgentOuterClass.GetAgentResponse) { - return mergeFrom((flyteidl.admin.AgentOuterClass.GetAgentResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.GetAgentResponse other) { - if (other == flyteidl.admin.AgentOuterClass.GetAgentResponse.getDefaultInstance()) return this; - if (other.hasAgent()) { - mergeAgent(other.getAgent()); - } - 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.AgentOuterClass.GetAgentResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.GetAgentResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.AgentOuterClass.Agent agent_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder> agentBuilder_; - /** - * .flyteidl.admin.Agent agent = 1; - */ - public boolean hasAgent() { - return agentBuilder_ != null || agent_ != null; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent getAgent() { - if (agentBuilder_ == null) { - return agent_ == null ? flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance() : agent_; - } else { - return agentBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public Builder setAgent(flyteidl.admin.AgentOuterClass.Agent value) { - if (agentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - agent_ = value; - onChanged(); - } else { - agentBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public Builder setAgent( - flyteidl.admin.AgentOuterClass.Agent.Builder builderForValue) { - if (agentBuilder_ == null) { - agent_ = builderForValue.build(); - onChanged(); - } else { - agentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public Builder mergeAgent(flyteidl.admin.AgentOuterClass.Agent value) { - if (agentBuilder_ == null) { - if (agent_ != null) { - agent_ = - flyteidl.admin.AgentOuterClass.Agent.newBuilder(agent_).mergeFrom(value).buildPartial(); - } else { - agent_ = value; - } - onChanged(); - } else { - agentBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public Builder clearAgent() { - if (agentBuilder_ == null) { - agent_ = null; - onChanged(); - } else { - agent_ = null; - agentBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent.Builder getAgentBuilder() { - - onChanged(); - return getAgentFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - public flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentOrBuilder() { - if (agentBuilder_ != null) { - return agentBuilder_.getMessageOrBuilder(); - } else { - return agent_ == null ? - flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance() : agent_; - } - } - /** - * .flyteidl.admin.Agent agent = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder> - getAgentFieldBuilder() { - if (agentBuilder_ == null) { - agentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder>( - getAgent(), - getParentForChildren(), - isClean()); - agent_ = null; - } - return agentBuilder_; - } - @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.GetAgentResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetAgentResponse) - private static final flyteidl.admin.AgentOuterClass.GetAgentResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.GetAgentResponse(); - } - - public static flyteidl.admin.AgentOuterClass.GetAgentResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAgentResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAgentResponse(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.AgentOuterClass.GetAgentResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListAgentsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListAgentsRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * A request to list all agents.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListAgentsRequest} - */ - public static final class ListAgentsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListAgentsRequest) - ListAgentsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAgentsRequest.newBuilder() to construct. - private ListAgentsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAgentsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListAgentsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.ListAgentsRequest.class, flyteidl.admin.AgentOuterClass.ListAgentsRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.AgentOuterClass.ListAgentsRequest)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.ListAgentsRequest other = (flyteidl.admin.AgentOuterClass.ListAgentsRequest) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest 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.AgentOuterClass.ListAgentsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest 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.AgentOuterClass.ListAgentsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest 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.AgentOuterClass.ListAgentsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest 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.AgentOuterClass.ListAgentsRequest 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; - } - /** - *
-     * A request to list all agents.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListAgentsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListAgentsRequest) - flyteidl.admin.AgentOuterClass.ListAgentsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.ListAgentsRequest.class, flyteidl.admin.AgentOuterClass.ListAgentsRequest.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.ListAgentsRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsRequest getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.ListAgentsRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsRequest build() { - flyteidl.admin.AgentOuterClass.ListAgentsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsRequest buildPartial() { - flyteidl.admin.AgentOuterClass.ListAgentsRequest result = new flyteidl.admin.AgentOuterClass.ListAgentsRequest(this); - 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.AgentOuterClass.ListAgentsRequest) { - return mergeFrom((flyteidl.admin.AgentOuterClass.ListAgentsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.ListAgentsRequest other) { - if (other == flyteidl.admin.AgentOuterClass.ListAgentsRequest.getDefaultInstance()) return this; - 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.AgentOuterClass.ListAgentsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.ListAgentsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ListAgentsRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListAgentsRequest) - private static final flyteidl.admin.AgentOuterClass.ListAgentsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.ListAgentsRequest(); - } - - public static flyteidl.admin.AgentOuterClass.ListAgentsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAgentsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAgentsRequest(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.AgentOuterClass.ListAgentsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListAgentsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListAgentsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - java.util.List - getAgentsList(); - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - flyteidl.admin.AgentOuterClass.Agent getAgents(int index); - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - int getAgentsCount(); - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - java.util.List - getAgentsOrBuilderList(); - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentsOrBuilder( - int index); - } - /** - *
-   * A response containing a list of agents.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListAgentsResponse} - */ - public static final class ListAgentsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListAgentsResponse) - ListAgentsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListAgentsResponse.newBuilder() to construct. - private ListAgentsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAgentsResponse() { - agents_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListAgentsResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - agents_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - agents_.add( - input.readMessage(flyteidl.admin.AgentOuterClass.Agent.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - agents_ = java.util.Collections.unmodifiableList(agents_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.ListAgentsResponse.class, flyteidl.admin.AgentOuterClass.ListAgentsResponse.Builder.class); - } - - public static final int AGENTS_FIELD_NUMBER = 1; - private java.util.List agents_; - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public java.util.List getAgentsList() { - return agents_; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public java.util.List - getAgentsOrBuilderList() { - return agents_; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public int getAgentsCount() { - return agents_.size(); - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent getAgents(int index) { - return agents_.get(index); - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentsOrBuilder( - int index) { - return agents_.get(index); - } - - 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 { - for (int i = 0; i < agents_.size(); i++) { - output.writeMessage(1, agents_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < agents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, agents_.get(i)); - } - 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.AgentOuterClass.ListAgentsResponse)) { - return super.equals(obj); - } - flyteidl.admin.AgentOuterClass.ListAgentsResponse other = (flyteidl.admin.AgentOuterClass.ListAgentsResponse) obj; - - if (!getAgentsList() - .equals(other.getAgentsList())) 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 (getAgentsCount() > 0) { - hash = (37 * hash) + AGENTS_FIELD_NUMBER; - hash = (53 * hash) + getAgentsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse 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.AgentOuterClass.ListAgentsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse 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.AgentOuterClass.ListAgentsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse 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.AgentOuterClass.ListAgentsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse 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.AgentOuterClass.ListAgentsResponse 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; - } - /** - *
-     * A response containing a list of agents.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListAgentsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListAgentsResponse) - flyteidl.admin.AgentOuterClass.ListAgentsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.AgentOuterClass.ListAgentsResponse.class, flyteidl.admin.AgentOuterClass.ListAgentsResponse.Builder.class); - } - - // Construct using flyteidl.admin.AgentOuterClass.ListAgentsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAgentsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (agentsBuilder_ == null) { - agents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - agentsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.AgentOuterClass.internal_static_flyteidl_admin_ListAgentsResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsResponse getDefaultInstanceForType() { - return flyteidl.admin.AgentOuterClass.ListAgentsResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsResponse build() { - flyteidl.admin.AgentOuterClass.ListAgentsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.AgentOuterClass.ListAgentsResponse buildPartial() { - flyteidl.admin.AgentOuterClass.ListAgentsResponse result = new flyteidl.admin.AgentOuterClass.ListAgentsResponse(this); - int from_bitField0_ = bitField0_; - if (agentsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - agents_ = java.util.Collections.unmodifiableList(agents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.agents_ = agents_; - } else { - result.agents_ = agentsBuilder_.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.AgentOuterClass.ListAgentsResponse) { - return mergeFrom((flyteidl.admin.AgentOuterClass.ListAgentsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.AgentOuterClass.ListAgentsResponse other) { - if (other == flyteidl.admin.AgentOuterClass.ListAgentsResponse.getDefaultInstance()) return this; - if (agentsBuilder_ == null) { - if (!other.agents_.isEmpty()) { - if (agents_.isEmpty()) { - agents_ = other.agents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAgentsIsMutable(); - agents_.addAll(other.agents_); - } - onChanged(); - } - } else { - if (!other.agents_.isEmpty()) { - if (agentsBuilder_.isEmpty()) { - agentsBuilder_.dispose(); - agentsBuilder_ = null; - agents_ = other.agents_; - bitField0_ = (bitField0_ & ~0x00000001); - agentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAgentsFieldBuilder() : null; - } else { - agentsBuilder_.addAllMessages(other.agents_); - } - } - } - 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.AgentOuterClass.ListAgentsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.AgentOuterClass.ListAgentsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List agents_ = - java.util.Collections.emptyList(); - private void ensureAgentsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - agents_ = new java.util.ArrayList(agents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder> agentsBuilder_; - - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public java.util.List getAgentsList() { - if (agentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(agents_); - } else { - return agentsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public int getAgentsCount() { - if (agentsBuilder_ == null) { - return agents_.size(); - } else { - return agentsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent getAgents(int index) { - if (agentsBuilder_ == null) { - return agents_.get(index); - } else { - return agentsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder setAgents( - int index, flyteidl.admin.AgentOuterClass.Agent value) { - if (agentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAgentsIsMutable(); - agents_.set(index, value); - onChanged(); - } else { - agentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder setAgents( - int index, flyteidl.admin.AgentOuterClass.Agent.Builder builderForValue) { - if (agentsBuilder_ == null) { - ensureAgentsIsMutable(); - agents_.set(index, builderForValue.build()); - onChanged(); - } else { - agentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder addAgents(flyteidl.admin.AgentOuterClass.Agent value) { - if (agentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAgentsIsMutable(); - agents_.add(value); - onChanged(); - } else { - agentsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder addAgents( - int index, flyteidl.admin.AgentOuterClass.Agent value) { - if (agentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAgentsIsMutable(); - agents_.add(index, value); - onChanged(); - } else { - agentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder addAgents( - flyteidl.admin.AgentOuterClass.Agent.Builder builderForValue) { - if (agentsBuilder_ == null) { - ensureAgentsIsMutable(); - agents_.add(builderForValue.build()); - onChanged(); - } else { - agentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder addAgents( - int index, flyteidl.admin.AgentOuterClass.Agent.Builder builderForValue) { - if (agentsBuilder_ == null) { - ensureAgentsIsMutable(); - agents_.add(index, builderForValue.build()); - onChanged(); - } else { - agentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder addAllAgents( - java.lang.Iterable values) { - if (agentsBuilder_ == null) { - ensureAgentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, agents_); - onChanged(); - } else { - agentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder clearAgents() { - if (agentsBuilder_ == null) { - agents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - agentsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public Builder removeAgents(int index) { - if (agentsBuilder_ == null) { - ensureAgentsIsMutable(); - agents_.remove(index); - onChanged(); - } else { - agentsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent.Builder getAgentsBuilder( - int index) { - return getAgentsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.AgentOrBuilder getAgentsOrBuilder( - int index) { - if (agentsBuilder_ == null) { - return agents_.get(index); } else { - return agentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public java.util.List - getAgentsOrBuilderList() { - if (agentsBuilder_ != null) { - return agentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(agents_); - } - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent.Builder addAgentsBuilder() { - return getAgentsFieldBuilder().addBuilder( - flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public flyteidl.admin.AgentOuterClass.Agent.Builder addAgentsBuilder( - int index) { - return getAgentsFieldBuilder().addBuilder( - index, flyteidl.admin.AgentOuterClass.Agent.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Agent agents = 1; - */ - public java.util.List - getAgentsBuilderList() { - return getAgentsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder> - getAgentsFieldBuilder() { - if (agentsBuilder_ == null) { - agentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.AgentOuterClass.Agent, flyteidl.admin.AgentOuterClass.Agent.Builder, flyteidl.admin.AgentOuterClass.AgentOrBuilder>( - agents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - agents_ = null; - } - return agentsBuilder_; - } - @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.ListAgentsResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListAgentsResponse) - private static final flyteidl.admin.AgentOuterClass.ListAgentsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.AgentOuterClass.ListAgentsResponse(); - } - - public static flyteidl.admin.AgentOuterClass.ListAgentsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAgentsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAgentsResponse(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.AgentOuterClass.ListAgentsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_CreateTaskRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_CreateTaskResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetTaskRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetTaskResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Resource_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Resource_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DeleteTaskRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DeleteTaskResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Agent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Agent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetAgentRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetAgentRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetAgentResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetAgentResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListAgentsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListAgentsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListAgentsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListAgentsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/admin/agent.proto\022\016flyteidl.a" + - "dmin\032\034flyteidl/core/literals.proto\032\031flyt" + - "eidl/core/tasks.proto\032\035flyteidl/core/int" + - "erface.proto\032\036flyteidl/core/identifier.p" + - "roto\032\035flyteidl/core/execution.proto\"\232\004\n\025" + - "TaskExecutionMetadata\022A\n\021task_execution_" + - "id\030\001 \001(\0132&.flyteidl.core.TaskExecutionId" + - "entifier\022\021\n\tnamespace\030\002 \001(\t\022A\n\006labels\030\003 " + - "\003(\01321.flyteidl.admin.TaskExecutionMetada" + - "ta.LabelsEntry\022K\n\013annotations\030\004 \003(\01326.fl" + - "yteidl.admin.TaskExecutionMetadata.Annot" + - "ationsEntry\022\033\n\023k8s_service_account\030\005 \001(\t" + - "\022^\n\025environment_variables\030\006 \003(\0132?.flytei" + - "dl.admin.TaskExecutionMetadata.Environme" + - "ntVariablesEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032;\n\031E" + - "nvironmentVariablesEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + - "\005value\030\002 \001(\t:\0028\001\"\314\001\n\021CreateTaskRequest\022)" + - "\n\006inputs\030\001 \001(\0132\031.flyteidl.core.LiteralMa" + - "p\022-\n\010template\030\002 \001(\0132\033.flyteidl.core.Task" + - "Template\022\025\n\routput_prefix\030\003 \001(\t\022F\n\027task_" + - "execution_metadata\030\004 \001(\0132%.flyteidl.admi" + - "n.TaskExecutionMetadata\"b\n\022CreateTaskRes" + - "ponse\022\027\n\rresource_meta\030\001 \001(\014H\000\022,\n\010resour" + - "ce\030\002 \001(\0132\030.flyteidl.admin.ResourceH\000B\005\n\003" + - "res\":\n\016GetTaskRequest\022\021\n\ttask_type\030\001 \001(\t" + - "\022\025\n\rresource_meta\030\002 \001(\014\"h\n\017GetTaskRespon" + - "se\022*\n\010resource\030\001 \001(\0132\030.flyteidl.admin.Re" + - "source\022)\n\tlog_links\030\002 \003(\0132\026.flyteidl.cor" + - "e.TaskLog\"\230\001\n\010Resource\022$\n\005state\030\001 \001(\0162\025." + - "flyteidl.admin.State\022*\n\007outputs\030\002 \001(\0132\031." + - "flyteidl.core.LiteralMap\022\017\n\007message\030\003 \001(" + - "\t\022)\n\tlog_links\030\004 \003(\0132\026.flyteidl.core.Tas" + - "kLog\"=\n\021DeleteTaskRequest\022\021\n\ttask_type\030\001" + - " \001(\t\022\025\n\rresource_meta\030\002 \001(\014\"\024\n\022DeleteTas" + - "kResponse\"3\n\005Agent\022\014\n\004name\030\001 \001(\t\022\034\n\024supp" + - "orted_task_types\030\002 \003(\t\"\037\n\017GetAgentReques" + - "t\022\014\n\004name\030\001 \001(\t\"8\n\020GetAgentResponse\022$\n\005a" + - "gent\030\001 \001(\0132\025.flyteidl.admin.Agent\"\023\n\021Lis" + - "tAgentsRequest\";\n\022ListAgentsResponse\022%\n\006" + - "agents\030\001 \003(\0132\025.flyteidl.admin.Agent*^\n\005S" + - "tate\022\025\n\021RETRYABLE_FAILURE\020\000\022\025\n\021PERMANENT" + - "_FAILURE\020\001\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\t" + - "SUCCEEDED\020\004B=Z;github.com/flyteorg/flyte" + - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor, - new java.lang.String[] { "TaskExecutionId", "Namespace", "Labels", "Annotations", "K8SServiceAccount", "EnvironmentVariables", }); - internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor = - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionMetadata_LabelsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor = - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionMetadata_AnnotationsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor = - internal_static_flyteidl_admin_TaskExecutionMetadata_descriptor.getNestedTypes().get(2); - internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionMetadata_EnvironmentVariablesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_CreateTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_CreateTaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_CreateTaskRequest_descriptor, - new java.lang.String[] { "Inputs", "Template", "OutputPrefix", "TaskExecutionMetadata", }); - internal_static_flyteidl_admin_CreateTaskResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_CreateTaskResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_CreateTaskResponse_descriptor, - new java.lang.String[] { "ResourceMeta", "Resource", "Res", }); - internal_static_flyteidl_admin_GetTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_GetTaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetTaskRequest_descriptor, - new java.lang.String[] { "TaskType", "ResourceMeta", }); - internal_static_flyteidl_admin_GetTaskResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_GetTaskResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetTaskResponse_descriptor, - new java.lang.String[] { "Resource", "LogLinks", }); - internal_static_flyteidl_admin_Resource_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_Resource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Resource_descriptor, - new java.lang.String[] { "State", "Outputs", "Message", "LogLinks", }); - internal_static_flyteidl_admin_DeleteTaskRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_DeleteTaskRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DeleteTaskRequest_descriptor, - new java.lang.String[] { "TaskType", "ResourceMeta", }); - internal_static_flyteidl_admin_DeleteTaskResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_DeleteTaskResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DeleteTaskResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Agent_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_Agent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Agent_descriptor, - new java.lang.String[] { "Name", "SupportedTaskTypes", }); - internal_static_flyteidl_admin_GetAgentRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_GetAgentRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetAgentRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_flyteidl_admin_GetAgentResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_GetAgentResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetAgentResponse_descriptor, - new java.lang.String[] { "Agent", }); - internal_static_flyteidl_admin_ListAgentsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ListAgentsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListAgentsRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ListAgentsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ListAgentsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListAgentsResponse_descriptor, - new java.lang.String[] { "Agents", }); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java deleted file mode 100644 index 5557da7b50..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ClusterAssignmentOuterClass.java +++ /dev/null @@ -1,615 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/cluster_assignment.proto - -package flyteidl.admin; - -public final class ClusterAssignmentOuterClass { - private ClusterAssignmentOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ClusterAssignmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterAssignment) - com.google.protobuf.MessageOrBuilder { - - /** - * string cluster_pool_name = 3; - */ - java.lang.String getClusterPoolName(); - /** - * string cluster_pool_name = 3; - */ - com.google.protobuf.ByteString - getClusterPoolNameBytes(); - } - /** - *
-   * Encapsulates specifications for routing an execution onto a specific cluster.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ClusterAssignment} - */ - public static final class ClusterAssignment extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterAssignment) - ClusterAssignmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterAssignment.newBuilder() to construct. - private ClusterAssignment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterAssignment() { - clusterPoolName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterAssignment( - 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 26: { - java.lang.String s = input.readStringRequireUtf8(); - - clusterPoolName_ = s; - 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.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.class, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder.class); - } - - public static final int CLUSTER_POOL_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object clusterPoolName_; - /** - * string cluster_pool_name = 3; - */ - public java.lang.String getClusterPoolName() { - java.lang.Object ref = clusterPoolName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterPoolName_ = s; - return s; - } - } - /** - * string cluster_pool_name = 3; - */ - public com.google.protobuf.ByteString - getClusterPoolNameBytes() { - java.lang.Object ref = clusterPoolName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterPoolName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getClusterPoolNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterPoolName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterPoolNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterPoolName_); - } - 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.ClusterAssignmentOuterClass.ClusterAssignment)) { - return super.equals(obj); - } - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment other = (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) obj; - - if (!getClusterPoolName() - .equals(other.getClusterPoolName())) 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(); - hash = (37 * hash) + CLUSTER_POOL_NAME_FIELD_NUMBER; - hash = (53 * hash) + getClusterPoolName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment 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.ClusterAssignmentOuterClass.ClusterAssignment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment 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.ClusterAssignmentOuterClass.ClusterAssignment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment 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.ClusterAssignmentOuterClass.ClusterAssignment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment 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.ClusterAssignmentOuterClass.ClusterAssignment 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; - } - /** - *
-     * Encapsulates specifications for routing an execution onto a specific cluster.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ClusterAssignment} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterAssignment) - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.class, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder.class); - } - - // Construct using flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.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(); - clusterPoolName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ClusterAssignmentOuterClass.internal_static_flyteidl_admin_ClusterAssignment_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstanceForType() { - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment build() { - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment buildPartial() { - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment result = new flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment(this); - result.clusterPoolName_ = clusterPoolName_; - 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.ClusterAssignmentOuterClass.ClusterAssignment) { - return mergeFrom((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment other) { - if (other == flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance()) return this; - if (!other.getClusterPoolName().isEmpty()) { - clusterPoolName_ = other.clusterPoolName_; - onChanged(); - } - 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.ClusterAssignmentOuterClass.ClusterAssignment parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clusterPoolName_ = ""; - /** - * string cluster_pool_name = 3; - */ - public java.lang.String getClusterPoolName() { - java.lang.Object ref = clusterPoolName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterPoolName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cluster_pool_name = 3; - */ - public com.google.protobuf.ByteString - getClusterPoolNameBytes() { - java.lang.Object ref = clusterPoolName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterPoolName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cluster_pool_name = 3; - */ - public Builder setClusterPoolName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterPoolName_ = value; - onChanged(); - return this; - } - /** - * string cluster_pool_name = 3; - */ - public Builder clearClusterPoolName() { - - clusterPoolName_ = getDefaultInstance().getClusterPoolName(); - onChanged(); - return this; - } - /** - * string cluster_pool_name = 3; - */ - public Builder setClusterPoolNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterPoolName_ = value; - onChanged(); - return this; - } - @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.ClusterAssignment) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterAssignment) - private static final flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment(); - } - - public static flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterAssignment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterAssignment(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.ClusterAssignmentOuterClass.ClusterAssignment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterAssignment_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/admin/cluster_assignment.prot" + - "o\022\016flyteidl.admin\":\n\021ClusterAssignment\022\031" + - "\n\021cluster_pool_name\030\003 \001(\tJ\004\010\001\020\002J\004\010\002\020\003B=Z" + - ";github.com/flyteorg/flyte/flyteidl/gen/" + - "pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_ClusterAssignment_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ClusterAssignment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterAssignment_descriptor, - new java.lang.String[] { "ClusterPoolName", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Common.java b/flyteidl/gen/pb-java/flyteidl/admin/Common.java deleted file mode 100644 index 4120abc852..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/Common.java +++ /dev/null @@ -1,22872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/common.proto - -package flyteidl.admin; - -public final class Common { - private Common() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The status of the named entity is used to control its visibility in the UI.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.NamedEntityState} - */ - public enum NamedEntityState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - NAMED_ENTITY_ACTIVE(0), - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - NAMED_ENTITY_ARCHIVED(1), - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * By default, all named entities are considered active and under development.
-     * 
- * - * NAMED_ENTITY_ACTIVE = 0; - */ - public static final int NAMED_ENTITY_ACTIVE_VALUE = 0; - /** - *
-     * Archived named entities are no longer visible in the UI.
-     * 
- * - * NAMED_ENTITY_ARCHIVED = 1; - */ - public static final int NAMED_ENTITY_ARCHIVED_VALUE = 1; - /** - *
-     * System generated entities that aren't explicitly created or managed by a user.
-     * 
- * - * SYSTEM_GENERATED = 2; - */ - public static final int SYSTEM_GENERATED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NamedEntityState valueOf(int value) { - return forNumber(value); - } - - public static NamedEntityState forNumber(int value) { - switch (value) { - case 0: return NAMED_ENTITY_ACTIVE; - case 1: return NAMED_ENTITY_ARCHIVED; - case 2: return SYSTEM_GENERATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - NamedEntityState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NamedEntityState findValueByNumber(int number) { - return NamedEntityState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final NamedEntityState[] VALUES = values(); - - public static NamedEntityState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private NamedEntityState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.NamedEntityState) - } - - public interface NamedEntityIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that identifies a Flyte resource.
-   * A Flyte resource can be a task, workflow or launch plan.
-   * A resource can internally have multiple versions and is uniquely identified
-   * by project, domain, and name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class NamedEntityIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifier) - NamedEntityIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifier.newBuilder() to construct. - private NamedEntityIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifier( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User provided value for the resource.
-     * The combination of project + domain + name uniquely identifies the resource.
-     * +optional - in certain contexts - like 'List API', 'Launch plans'
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - 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.Common.NamedEntityIdentifier)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifier other = (flyteidl.admin.Common.NamedEntityIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifier 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.Common.NamedEntityIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identifies a Flyte resource.
-     * A Flyte resource can be a task, workflow or launch plan.
-     * A resource can internally have multiple versions and is uniquely identified
-     * by project, domain, and name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifier) - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifier.class, flyteidl.admin.Common.NamedEntityIdentifier.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier build() { - flyteidl.admin.Common.NamedEntityIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifier buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifier result = new flyteidl.admin.Common.NamedEntityIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - 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.Common.NamedEntityIdentifier) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifier other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.Common.NamedEntityIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * The combination of project + domain + name uniquely identifies the resource.
-       * +optional - in certain contexts - like 'List API', 'Launch plans'
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.NamedEntityIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifier) - private static final flyteidl.admin.Common.NamedEntityIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifier(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifier(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.Common.NamedEntityIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - java.lang.String getDescription(); - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - int getStateValue(); - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - flyteidl.admin.Common.NamedEntityState getState(); - } - /** - *
-   * Additional metadata around a named entity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} - */ - public static final class NamedEntityMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityMetadata) - NamedEntityMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityMetadata.newBuilder() to construct. - private NamedEntityMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityMetadata() { - description_ = ""; - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - private volatile java.lang.Object description_; - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     * Common description across all versions of the entity
-     * +optional
-     * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Shared state across all version of the entity
-     * At this point in time, only workflow entities can have their state archived.
-     * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - - 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 (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, description_); - } - if (state_ != flyteidl.admin.Common.NamedEntityState.NAMED_ENTITY_ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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.Common.NamedEntityMetadata)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityMetadata other = (flyteidl.admin.Common.NamedEntityMetadata) obj; - - if (!getDescription() - .equals(other.getDescription())) return false; - if (state_ != other.state_) 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(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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.Common.NamedEntityMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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.Common.NamedEntityMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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.Common.NamedEntityMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityMetadata 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.Common.NamedEntityMetadata 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; - } - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityMetadata) - flyteidl.admin.Common.NamedEntityMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityMetadata.class, flyteidl.admin.Common.NamedEntityMetadata.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityMetadata.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(); - description_ = ""; - - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata build() { - flyteidl.admin.Common.NamedEntityMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityMetadata buildPartial() { - flyteidl.admin.Common.NamedEntityMetadata result = new flyteidl.admin.Common.NamedEntityMetadata(this); - result.description_ = description_; - result.state_ = state_; - 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.Common.NamedEntityMetadata) { - return mergeFrom((flyteidl.admin.Common.NamedEntityMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityMetadata other) { - if (other == flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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.Common.NamedEntityMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       * Common description across all versions of the entity
-       * +optional
-       * 
- * - * string description = 1; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private int state_ = 0; - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public flyteidl.admin.Common.NamedEntityState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.NamedEntityState result = flyteidl.admin.Common.NamedEntityState.valueOf(state_); - return result == null ? flyteidl.admin.Common.NamedEntityState.UNRECOGNIZED : result; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder setState(flyteidl.admin.Common.NamedEntityState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Shared state across all version of the entity
-       * At this point in time, only workflow entities can have their state archived.
-       * 
- * - * .flyteidl.admin.NamedEntityState state = 2; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - @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.NamedEntityMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityMetadata) - private static final flyteidl.admin.Common.NamedEntityMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityMetadata(); - } - - public static flyteidl.admin.Common.NamedEntityMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityMetadata(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.Common.NamedEntityMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
-   * workflow or launch plan. A NamedEntity is exclusively identified by its resource type
-   * and identifier.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class NamedEntity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntity) - NamedEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntity.newBuilder() to construct. - private NamedEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntity() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntity( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Additional metadata around a named entity.
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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.Common.NamedEntity)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntity other = (flyteidl.admin.Common.NamedEntity) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity 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.Common.NamedEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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.Common.NamedEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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.Common.NamedEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntity 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.Common.NamedEntity 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; - } - /** - *
-     * Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
-     * workflow or launch plan. A NamedEntity is exclusively identified by its resource type
-     * and identifier.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntity) - flyteidl.admin.Common.NamedEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntity.class, flyteidl.admin.Common.NamedEntity.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntity.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntity_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntity.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity build() { - flyteidl.admin.Common.NamedEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntity buildPartial() { - flyteidl.admin.Common.NamedEntity result = new flyteidl.admin.Common.NamedEntity(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.Common.NamedEntity) { - return mergeFrom((flyteidl.admin.Common.NamedEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntity other) { - if (other == flyteidl.admin.Common.NamedEntity.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.Common.NamedEntity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the named entity. One of Task, Workflow or LaunchPlan.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Additional metadata around a named entity.
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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.NamedEntity) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntity) - private static final flyteidl.admin.Common.NamedEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntity(); - } - - public static flyteidl.admin.Common.NamedEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntity(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.Common.NamedEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Sort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates an attribute to sort the response values.
-     * +required
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     * Indicates an attribute to sort the response values.
-     * +required
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - int getDirectionValue(); - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - flyteidl.admin.Common.Sort.Direction getDirection(); - } - /** - *
-   * Specifies sort ordering in a list request.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Sort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Sort) - SortOrBuilder { - private static final long serialVersionUID = 0L; - // Use Sort.newBuilder() to construct. - private Sort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Sort() { - key_ = ""; - direction_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sort( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - direction_ = rawValue; - 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.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.admin.Sort.Direction} - */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * By default, fields are sorted in descending order.
-       * 
- * - * DESCENDING = 0; - */ - DESCENDING(0), - /** - * ASCENDING = 1; - */ - ASCENDING(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * By default, fields are sorted in descending order.
-       * 
- * - * DESCENDING = 0; - */ - public static final int DESCENDING_VALUE = 0; - /** - * ASCENDING = 1; - */ - public static final int ASCENDING_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Direction valueOf(int value) { - return forNumber(value); - } - - public static Direction forNumber(int value) { - switch (value) { - case 0: return DESCENDING; - case 1: return ASCENDING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.Common.Sort.getDescriptor().getEnumTypes().get(0); - } - - private static final Direction[] VALUES = values(); - - public static Direction valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Direction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.Sort.Direction) - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     * Indicates an attribute to sort the response values.
-     * +required
-     * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     * Indicates an attribute to sort the response values.
-     * +required
-     * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-     * Indicates the direction to apply sort key for response values.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - output.writeEnum(2, direction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (direction_ != flyteidl.admin.Common.Sort.Direction.DESCENDING.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); - } - 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.Common.Sort)) { - return super.equals(obj); - } - flyteidl.admin.Common.Sort other = (flyteidl.admin.Common.Sort) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (direction_ != other.direction_) 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(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort 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.Common.Sort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Sort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Sort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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.Common.Sort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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.Common.Sort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Sort 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.Common.Sort 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; - } - /** - *
-     * Specifies sort ordering in a list request.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Sort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Sort) - flyteidl.admin.Common.SortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Sort.class, flyteidl.admin.Common.Sort.Builder.class); - } - - // Construct using flyteidl.admin.Common.Sort.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(); - key_ = ""; - - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Sort_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort getDefaultInstanceForType() { - return flyteidl.admin.Common.Sort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Sort build() { - flyteidl.admin.Common.Sort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Sort buildPartial() { - flyteidl.admin.Common.Sort result = new flyteidl.admin.Common.Sort(this); - result.key_ = key_; - result.direction_ = direction_; - 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.Common.Sort) { - return mergeFrom((flyteidl.admin.Common.Sort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Sort other) { - if (other == flyteidl.admin.Common.Sort.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); - } - 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.Common.Sort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Sort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       * Indicates an attribute to sort the response values.
-       * +required
-       * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * +required
-       * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * +required
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * +required
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       * Indicates an attribute to sort the response values.
-       * +required
-       * 
- * - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int direction_ = 0; - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public flyteidl.admin.Common.Sort.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.admin.Common.Sort.Direction result = flyteidl.admin.Common.Sort.Direction.valueOf(direction_); - return result == null ? flyteidl.admin.Common.Sort.Direction.UNRECOGNIZED : result; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder setDirection(flyteidl.admin.Common.Sort.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicates the direction to apply sort key for response values.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - @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.Sort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Sort) - private static final flyteidl.admin.Common.Sort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Sort(); - } - - public static flyteidl.admin.Common.Sort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sort(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.Common.Sort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class NamedEntityIdentifierListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - NamedEntityIdentifierListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierListRequest.newBuilder() to construct. - private NamedEntityIdentifierListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierListRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - 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.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 6; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filters_); - } - 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.Common.NamedEntityIdentifierListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierListRequest other = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest 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.Common.NamedEntityIdentifierListRequest 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; - } - /** - *
-     * Represents a request structure to list NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierListRequest) - flyteidl.admin.Common.NamedEntityIdentifierListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierListRequest.class, flyteidl.admin.Common.NamedEntityIdentifierListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest build() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierListRequest result = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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.Common.NamedEntityIdentifierListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - 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.Common.NamedEntityIdentifierListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 6; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - @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.NamedEntityIdentifierListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierListRequest) - private static final flyteidl.admin.Common.NamedEntityIdentifierListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierListRequest(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.Common.NamedEntityIdentifierListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - boolean hasSortBy(); - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - } - /** - *
-   * Represents a request structure to list NamedEntity objects
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class NamedEntityListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityListRequest) - NamedEntityListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityListRequest.newBuilder() to construct. - private NamedEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityListRequest() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityListRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 32: { - - limit_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - 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.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * +required
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 4; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 5; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Specifies how listed entities should be sorted in the response.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int FILTERS_FIELD_NUMBER = 7; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (limit_ != 0) { - output.writeUInt32(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, token_); - } - if (sortBy_ != null) { - output.writeMessage(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, filters_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSortBy()); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, filters_); - } - 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.Common.NamedEntityListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityListRequest other = (flyteidl.admin.Common.NamedEntityListRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getFilters() - .equals(other.getFilters())) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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.Common.NamedEntityListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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.Common.NamedEntityListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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.Common.NamedEntityListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityListRequest 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.Common.NamedEntityListRequest 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; - } - /** - *
-     * Represents a request structure to list NamedEntity objects
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityListRequest) - flyteidl.admin.Common.NamedEntityListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityListRequest.class, flyteidl.admin.Common.NamedEntityListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityListRequest.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - filters_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest build() { - flyteidl.admin.Common.NamedEntityListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityListRequest buildPartial() { - flyteidl.admin.Common.NamedEntityListRequest result = new flyteidl.admin.Common.NamedEntityListRequest(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.filters_ = filters_; - 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.Common.NamedEntityListRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityListRequest other) { - if (other == flyteidl.admin.Common.NamedEntityListRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - 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.Common.NamedEntityListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * 
- * - * uint32 limit = 4; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 5; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Specifies how listed entities should be sorted in the response.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 7; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - @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.NamedEntityListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityListRequest) - private static final flyteidl.admin.Common.NamedEntityListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityListRequest(); - } - - public static flyteidl.admin.Common.NamedEntityListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityListRequest(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.Common.NamedEntityListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityIdentifierListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityIdentifierList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class NamedEntityIdentifierList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityIdentifierList) - NamedEntityIdentifierListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityIdentifierList.newBuilder() to construct. - private NamedEntityIdentifierList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityIdentifierList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityIdentifierList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of identifiers.
-     * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.Common.NamedEntityIdentifierList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityIdentifierList other = (flyteidl.admin.Common.NamedEntityIdentifierList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityIdentifierList 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.Common.NamedEntityIdentifierList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityIdentifierList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityIdentifierList) - flyteidl.admin.Common.NamedEntityIdentifierListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityIdentifierList.class, flyteidl.admin.Common.NamedEntityIdentifierList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityIdentifierList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList build() { - flyteidl.admin.Common.NamedEntityIdentifierList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityIdentifierList buildPartial() { - flyteidl.admin.Common.NamedEntityIdentifierList result = new flyteidl.admin.Common.NamedEntityIdentifierList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.Common.NamedEntityIdentifierList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityIdentifierList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityIdentifierList other) { - if (other == flyteidl.admin.Common.NamedEntityIdentifierList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.Common.NamedEntityIdentifierList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityIdentifierList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance()); - } - /** - *
-       * A list of identifiers.
-       * 
- * - * repeated .flyteidl.admin.NamedEntityIdentifier entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.NamedEntityIdentifierList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityIdentifierList) - private static final flyteidl.admin.Common.NamedEntityIdentifierList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityIdentifierList(); - } - - public static flyteidl.admin.Common.NamedEntityIdentifierList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityIdentifierList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityIdentifierList(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.Common.NamedEntityIdentifierList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntity getEntities(int index); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - int getEntitiesCount(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - java.util.List - getEntitiesOrBuilderList(); - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of NamedEntityIdentifiers.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class NamedEntityList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityList) - NamedEntityListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityList.newBuilder() to construct. - private NamedEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityList() { - entities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - entities_.add( - input.readMessage(flyteidl.admin.Common.NamedEntity.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - private int bitField0_; - public static final int ENTITIES_FIELD_NUMBER = 1; - private java.util.List entities_; - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - return entities_; - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - return entities_.size(); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - return entities_.get(index); - } - /** - *
-     * A list of NamedEntity objects
-     * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - return entities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < entities_.size(); i++) { - output.writeMessage(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < entities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, entities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.Common.NamedEntityList)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityList other = (flyteidl.admin.Common.NamedEntityList) obj; - - if (!getEntitiesList() - .equals(other.getEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getEntitiesCount() > 0) { - hash = (37 * hash) + ENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList 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.Common.NamedEntityList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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.Common.NamedEntityList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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.Common.NamedEntityList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityList 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.Common.NamedEntityList 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; - } - /** - *
-     * Represents a list of NamedEntityIdentifiers.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityList) - flyteidl.admin.Common.NamedEntityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityList.class, flyteidl.admin.Common.NamedEntityList.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - entitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList build() { - flyteidl.admin.Common.NamedEntityList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityList buildPartial() { - flyteidl.admin.Common.NamedEntityList result = new flyteidl.admin.Common.NamedEntityList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entities_ = entities_; - } else { - result.entities_ = entitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.Common.NamedEntityList) { - return mergeFrom((flyteidl.admin.Common.NamedEntityList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityList other) { - if (other == flyteidl.admin.Common.NamedEntityList.getDefaultInstance()) return this; - if (entitiesBuilder_ == null) { - if (!other.entities_.isEmpty()) { - if (entities_.isEmpty()) { - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntitiesIsMutable(); - entities_.addAll(other.entities_); - } - onChanged(); - } - } else { - if (!other.entities_.isEmpty()) { - if (entitiesBuilder_.isEmpty()) { - entitiesBuilder_.dispose(); - entitiesBuilder_ = null; - entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); - entitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEntitiesFieldBuilder() : null; - } else { - entitiesBuilder_.addAllMessages(other.entities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.Common.NamedEntityList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List entities_ = - java.util.Collections.emptyList(); - private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> entitiesBuilder_; - - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List getEntitiesList() { - if (entitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entities_); - } else { - return entitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public int getEntitiesCount() { - if (entitiesBuilder_ == null) { - return entities_.size(); - } else { - return entitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity getEntities(int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); - } else { - return entitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.set(index, value); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder setEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.set(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities(flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(value); - onChanged(); - } else { - entitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity value) { - if (entitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntitiesIsMutable(); - entities_.add(index, value); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addEntities( - int index, flyteidl.admin.Common.NamedEntity.Builder builderForValue) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.add(index, builderForValue.build()); - onChanged(); - } else { - entitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder addAllEntities( - java.lang.Iterable values) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entities_); - onChanged(); - } else { - entitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder clearEntities() { - if (entitiesBuilder_ == null) { - entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public Builder removeEntities(int index) { - if (entitiesBuilder_ == null) { - ensureEntitiesIsMutable(); - entities_.remove(index); - onChanged(); - } else { - entitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder getEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntityOrBuilder getEntitiesOrBuilder( - int index) { - if (entitiesBuilder_ == null) { - return entities_.get(index); } else { - return entitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesOrBuilderList() { - if (entitiesBuilder_ != null) { - return entitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entities_); - } - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder() { - return getEntitiesFieldBuilder().addBuilder( - flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public flyteidl.admin.Common.NamedEntity.Builder addEntitiesBuilder( - int index) { - return getEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.Common.NamedEntity.getDefaultInstance()); - } - /** - *
-       * A list of NamedEntity objects
-       * 
- * - * repeated .flyteidl.admin.NamedEntity entities = 1; - */ - public java.util.List - getEntitiesBuilderList() { - return getEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder> - getEntitiesFieldBuilder() { - if (entitiesBuilder_ == null) { - entitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.NamedEntity, flyteidl.admin.Common.NamedEntity.Builder, flyteidl.admin.Common.NamedEntityOrBuilder>( - entities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - entities_ = null; - } - return entitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.NamedEntityList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityList) - private static final flyteidl.admin.Common.NamedEntityList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityList(); - } - - public static flyteidl.admin.Common.NamedEntityList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityList(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.Common.NamedEntityList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A request to retrieve the metadata associated with a NamedEntityIdentifier
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class NamedEntityGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityGetRequest) - NamedEntityGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityGetRequest.newBuilder() to construct. - private NamedEntityGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityGetRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityGetRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.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.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier for the named entity for which to fetch metadata.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, 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.Common.NamedEntityGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityGetRequest other = (flyteidl.admin.Common.NamedEntityGetRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - 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.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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.Common.NamedEntityGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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.Common.NamedEntityGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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.Common.NamedEntityGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityGetRequest 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.Common.NamedEntityGetRequest 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; - } - /** - *
-     * A request to retrieve the metadata associated with a NamedEntityIdentifier
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityGetRequest) - flyteidl.admin.Common.NamedEntityGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityGetRequest.class, flyteidl.admin.Common.NamedEntityGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityGetRequest.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(); - resourceType_ = 0; - - 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.Common.internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest build() { - flyteidl.admin.Common.NamedEntityGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityGetRequest buildPartial() { - flyteidl.admin.Common.NamedEntityGetRequest result = new flyteidl.admin.Common.NamedEntityGetRequest(this); - result.resourceType_ = resourceType_; - 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.Common.NamedEntityGetRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityGetRequest other) { - if (other == flyteidl.admin.Common.NamedEntityGetRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.Common.NamedEntityGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier for the named entity for which to fetch metadata.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - 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.NamedEntityGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityGetRequest) - private static final flyteidl.admin.Common.NamedEntityGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityGetRequest(); - } - - public static flyteidl.admin.Common.NamedEntityGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityGetRequest(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.Common.NamedEntityGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Resource type of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Resource type of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadata getMetadata(); - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Request to set the referenced named entity state to the configured value.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class NamedEntityUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateRequest) - NamedEntityUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateRequest.newBuilder() to construct. - private NamedEntityUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.NamedEntityMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.Common.NamedEntityMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Resource type of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Resource type of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the metadata to update
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata object to set as the new value
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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.Common.NamedEntityUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateRequest other = (flyteidl.admin.Common.NamedEntityUpdateRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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.Common.NamedEntityUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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.Common.NamedEntityUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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.Common.NamedEntityUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateRequest 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.Common.NamedEntityUpdateRequest 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; - } - /** - *
-     * Request to set the referenced named entity state to the configured value.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateRequest) - flyteidl.admin.Common.NamedEntityUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateRequest.class, flyteidl.admin.Common.NamedEntityUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest build() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateRequest buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateRequest result = new flyteidl.admin.Common.NamedEntityUpdateRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.Common.NamedEntityUpdateRequest) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateRequest other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.Common.NamedEntityUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Resource type of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Resource type of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Resource type of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Resource type of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the metadata to update
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.Common.NamedEntityMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.Common.NamedEntityMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.Common.NamedEntityMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.Common.NamedEntityMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - public flyteidl.admin.Common.NamedEntityMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.Common.NamedEntityMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata object to set as the new value
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityMetadata, flyteidl.admin.Common.NamedEntityMetadata.Builder, flyteidl.admin.Common.NamedEntityMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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.NamedEntityUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateRequest) - private static final flyteidl.admin.Common.NamedEntityUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateRequest(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateRequest(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.Common.NamedEntityUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NamedEntityUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NamedEntityUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class NamedEntityUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NamedEntityUpdateResponse) - NamedEntityUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NamedEntityUpdateResponse.newBuilder() to construct. - private NamedEntityUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NamedEntityUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NamedEntityUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.Common.NamedEntityUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.Common.NamedEntityUpdateResponse other = (flyteidl.admin.Common.NamedEntityUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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.Common.NamedEntityUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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.Common.NamedEntityUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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.Common.NamedEntityUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.NamedEntityUpdateResponse 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.Common.NamedEntityUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NamedEntityUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NamedEntityUpdateResponse) - flyteidl.admin.Common.NamedEntityUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.NamedEntityUpdateResponse.class, flyteidl.admin.Common.NamedEntityUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.Common.NamedEntityUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse build() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.NamedEntityUpdateResponse buildPartial() { - flyteidl.admin.Common.NamedEntityUpdateResponse result = new flyteidl.admin.Common.NamedEntityUpdateResponse(this); - 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.Common.NamedEntityUpdateResponse) { - return mergeFrom((flyteidl.admin.Common.NamedEntityUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.NamedEntityUpdateResponse other) { - if (other == flyteidl.admin.Common.NamedEntityUpdateResponse.getDefaultInstance()) return this; - 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.Common.NamedEntityUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.NamedEntityUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.NamedEntityUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NamedEntityUpdateResponse) - private static final flyteidl.admin.Common.NamedEntityUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.NamedEntityUpdateResponse(); - } - - public static flyteidl.admin.Common.NamedEntityUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NamedEntityUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NamedEntityUpdateResponse(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.Common.NamedEntityUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ObjectGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ObjectGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Shared request structure to fetch a single resource.
-   * Resources include: Task, Workflow, LaunchPlan
-   * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class ObjectGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ObjectGetRequest) - ObjectGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ObjectGetRequest.newBuilder() to construct. - private ObjectGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ObjectGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ObjectGetRequest( - 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.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Indicates a unique version of resource.
-     * +required
-     * 
- * - * .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.Common.ObjectGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ObjectGetRequest other = (flyteidl.admin.Common.ObjectGetRequest) 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.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ObjectGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ObjectGetRequest 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.Common.ObjectGetRequest 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; - } - /** - *
-     * Shared request structure to fetch a single resource.
-     * Resources include: Task, Workflow, LaunchPlan
-     * 
- * - * Protobuf type {@code flyteidl.admin.ObjectGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ObjectGetRequest) - flyteidl.admin.Common.ObjectGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ObjectGetRequest.class, flyteidl.admin.Common.ObjectGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ObjectGetRequest.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.Common.internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ObjectGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest build() { - flyteidl.admin.Common.ObjectGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ObjectGetRequest buildPartial() { - flyteidl.admin.Common.ObjectGetRequest result = new flyteidl.admin.Common.ObjectGetRequest(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.Common.ObjectGetRequest) { - return mergeFrom((flyteidl.admin.Common.ObjectGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ObjectGetRequest other) { - if (other == flyteidl.admin.Common.ObjectGetRequest.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.Common.ObjectGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ObjectGetRequest) 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_; - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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(); - } - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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_; - } - } - /** - *
-       * Indicates a unique version of resource.
-       * +required
-       * 
- * - * .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.ObjectGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ObjectGetRequest) - private static final flyteidl.admin.Common.ObjectGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ObjectGetRequest(); - } - - public static flyteidl.admin.Common.ObjectGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectGetRequest(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.Common.ObjectGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourceListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ResourceListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Shared request structure to retrieve a list of resources.
-   * Resources include: Task, Workflow, LaunchPlan
-   * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class ResourceListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ResourceListRequest) - ResourceListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceListRequest.newBuilder() to construct. - private ResourceListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceListRequest( - 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.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the resource.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - 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()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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.Common.ResourceListRequest)) { - return super.equals(obj); - } - flyteidl.admin.Common.ResourceListRequest other = (flyteidl.admin.Common.ResourceListRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.ResourceListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.ResourceListRequest 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.Common.ResourceListRequest 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; - } - /** - *
-     * Shared request structure to retrieve a list of resources.
-     * Resources include: Task, Workflow, LaunchPlan
-     * 
- * - * Protobuf type {@code flyteidl.admin.ResourceListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ResourceListRequest) - flyteidl.admin.Common.ResourceListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.ResourceListRequest.class, flyteidl.admin.Common.ResourceListRequest.Builder.class); - } - - // Construct using flyteidl.admin.Common.ResourceListRequest.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; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_ResourceListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest getDefaultInstanceForType() { - return flyteidl.admin.Common.ResourceListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest build() { - flyteidl.admin.Common.ResourceListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.ResourceListRequest buildPartial() { - flyteidl.admin.Common.ResourceListRequest result = new flyteidl.admin.Common.ResourceListRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.Common.ResourceListRequest) { - return mergeFrom((flyteidl.admin.Common.ResourceListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.ResourceListRequest other) { - if (other == flyteidl.admin.Common.ResourceListRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.Common.ResourceListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.ResourceListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id represents the unique identifier of the resource.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.ResourceListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ResourceListRequest) - private static final flyteidl.admin.Common.ResourceListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.ResourceListRequest(); - } - - public static flyteidl.admin.Common.ResourceListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceListRequest(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.Common.ResourceListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EmailNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - *
-   * Defines an email notification specification.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EmailNotification} - */ - public static final class EmailNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailNotification) - EmailNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailNotification.newBuilder() to construct. - private EmailNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailNotification( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses recipients for this notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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.Common.EmailNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.EmailNotification other = (flyteidl.admin.Common.EmailNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.EmailNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.EmailNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.EmailNotification 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.Common.EmailNotification 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; - } - /** - *
-     * Defines an email notification specification.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EmailNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailNotification) - flyteidl.admin.Common.EmailNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.EmailNotification.class, flyteidl.admin.Common.EmailNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.EmailNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_EmailNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification build() { - flyteidl.admin.Common.EmailNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.EmailNotification buildPartial() { - flyteidl.admin.Common.EmailNotification result = new flyteidl.admin.Common.EmailNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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.Common.EmailNotification) { - return mergeFrom((flyteidl.admin.Common.EmailNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.EmailNotification other) { - if (other == flyteidl.admin.Common.EmailNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - 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.Common.EmailNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.EmailNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses recipients for this notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - @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.EmailNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailNotification) - private static final flyteidl.admin.Common.EmailNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.EmailNotification(); - } - - public static flyteidl.admin.Common.EmailNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailNotification(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.Common.EmailNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PagerDutyNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.PagerDutyNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - *
-   * Defines a pager duty notification specification.
-   * 
- * - * Protobuf type {@code flyteidl.admin.PagerDutyNotification} - */ - public static final class PagerDutyNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.PagerDutyNotification) - PagerDutyNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use PagerDutyNotification.newBuilder() to construct. - private PagerDutyNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PagerDutyNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PagerDutyNotification( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, PagerDuty notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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.Common.PagerDutyNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.PagerDutyNotification other = (flyteidl.admin.Common.PagerDutyNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.PagerDutyNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.PagerDutyNotification 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.Common.PagerDutyNotification 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; - } - /** - *
-     * Defines a pager duty notification specification.
-     * 
- * - * Protobuf type {@code flyteidl.admin.PagerDutyNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.PagerDutyNotification) - flyteidl.admin.Common.PagerDutyNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.PagerDutyNotification.class, flyteidl.admin.Common.PagerDutyNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.PagerDutyNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification build() { - flyteidl.admin.Common.PagerDutyNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.PagerDutyNotification buildPartial() { - flyteidl.admin.Common.PagerDutyNotification result = new flyteidl.admin.Common.PagerDutyNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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.Common.PagerDutyNotification) { - return mergeFrom((flyteidl.admin.Common.PagerDutyNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.PagerDutyNotification other) { - if (other == flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - 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.Common.PagerDutyNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.PagerDutyNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, PagerDuty notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - @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.PagerDutyNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PagerDutyNotification) - private static final flyteidl.admin.Common.PagerDutyNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.PagerDutyNotification(); - } - - public static flyteidl.admin.Common.PagerDutyNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PagerDutyNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PagerDutyNotification(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.Common.PagerDutyNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SlackNotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SlackNotification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - } - /** - *
-   * Defines a slack notification specification.
-   * 
- * - * Protobuf type {@code flyteidl.admin.SlackNotification} - */ - public static final class SlackNotification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SlackNotification) - SlackNotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SlackNotification.newBuilder() to construct. - private SlackNotification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SlackNotification() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SlackNotification( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * Currently, Slack notifications leverage email to trigger a notification.
-     * +required
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - 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.Common.SlackNotification)) { - return super.equals(obj); - } - flyteidl.admin.Common.SlackNotification other = (flyteidl.admin.Common.SlackNotification) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.SlackNotification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.SlackNotification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.SlackNotification 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.Common.SlackNotification 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; - } - /** - *
-     * Defines a slack notification specification.
-     * 
- * - * Protobuf type {@code flyteidl.admin.SlackNotification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SlackNotification) - flyteidl.admin.Common.SlackNotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.SlackNotification.class, flyteidl.admin.Common.SlackNotification.Builder.class); - } - - // Construct using flyteidl.admin.Common.SlackNotification.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_SlackNotification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification getDefaultInstanceForType() { - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification build() { - flyteidl.admin.Common.SlackNotification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.SlackNotification buildPartial() { - flyteidl.admin.Common.SlackNotification result = new flyteidl.admin.Common.SlackNotification(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - 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.Common.SlackNotification) { - return mergeFrom((flyteidl.admin.Common.SlackNotification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.SlackNotification other) { - if (other == flyteidl.admin.Common.SlackNotification.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - 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.Common.SlackNotification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.SlackNotification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Currently, Slack notifications leverage email to trigger a notification.
-       * +required
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - @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.SlackNotification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SlackNotification) - private static final flyteidl.admin.Common.SlackNotification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.SlackNotification(); - } - - public static flyteidl.admin.Common.SlackNotification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SlackNotification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SlackNotification(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.Common.SlackNotification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Notification) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List getPhasesList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesCount(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - java.util.List - getPhasesValueList(); - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - int getPhasesValue(int index); - - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - boolean hasEmail(); - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotification getEmail(); - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder(); - - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - boolean hasPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotification getPagerDuty(); - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder(); - - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - boolean hasSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotification getSlack(); - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder(); - - public flyteidl.admin.Common.Notification.TypeCase getTypeCase(); - } - /** - *
-   * Represents a structure for notifications based on execution status.
-   * The notification content is configured within flyte admin but can be templatized.
-   * Future iterations could expose configuring notifications with custom content.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Notification extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Notification) - NotificationOrBuilder { - private static final long serialVersionUID = 0L; - // Use Notification.newBuilder() to construct. - private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Notification() { - phases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Notification( - 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 8: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - break; - } - case 10: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phases_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 18: { - flyteidl.admin.Common.EmailNotification.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.admin.Common.EmailNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.EmailNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.EmailNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.admin.Common.PagerDutyNotification.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.admin.Common.PagerDutyNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.PagerDutyNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.PagerDutyNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.admin.Common.SlackNotification.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.admin.Common.SlackNotification) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.admin.Common.SlackNotification.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Common.SlackNotification) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - private int bitField0_; - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - EMAIL(2), - PAGER_DUTY(3), - SLACK(4), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 2: return EMAIL; - case 3: return PAGER_DUTY; - case 4: return SLACK; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int PHASES_FIELD_NUMBER = 1; - private java.util.List phases_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase> phases_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>() { - public flyteidl.core.Execution.WorkflowExecution.Phase convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(from); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - }; - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return phases_; - } - /** - *
-     * A list of phases to which users can associate the notifications to.
-     * +required
-     * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - private int phasesMemoizedSerializedSize; - - public static final int EMAIL_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - - public static final int PAGER_DUTY_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - - public static final int SLACK_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.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 { - getSerializedSize(); - if (getPhasesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(phasesMemoizedSerializedSize); - } - for (int i = 0; i < phases_.size(); i++) { - output.writeEnumNoTag(phases_.get(i)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.Common.SlackNotification) type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < phases_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(phases_.get(i)); - } - size += dataSize; - if (!getPhasesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }phasesMemoizedSerializedSize = dataSize; - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.Common.EmailNotification) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.Common.PagerDutyNotification) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.Common.SlackNotification) type_); - } - 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.Common.Notification)) { - return super.equals(obj); - } - flyteidl.admin.Common.Notification other = (flyteidl.admin.Common.Notification) obj; - - if (!phases_.equals(other.phases_)) return false; - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 2: - if (!getEmail() - .equals(other.getEmail())) return false; - break; - case 3: - if (!getPagerDuty() - .equals(other.getPagerDuty())) return false; - break; - case 4: - if (!getSlack() - .equals(other.getSlack())) 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(); - if (getPhasesCount() > 0) { - hash = (37 * hash) + PHASES_FIELD_NUMBER; - hash = (53 * hash) + phases_.hashCode(); - } - switch (typeCase_) { - case 2: - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - break; - case 3: - hash = (37 * hash) + PAGER_DUTY_FIELD_NUMBER; - hash = (53 * hash) + getPagerDuty().hashCode(); - break; - case 4: - hash = (37 * hash) + SLACK_FIELD_NUMBER; - hash = (53 * hash) + getSlack().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification 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.Common.Notification parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Notification parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Notification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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.Common.Notification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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.Common.Notification parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Notification 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.Common.Notification 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; - } - /** - *
-     * Represents a structure for notifications based on execution status.
-     * The notification content is configured within flyte admin but can be templatized.
-     * Future iterations could expose configuring notifications with custom content.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Notification} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Notification) - flyteidl.admin.Common.NotificationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Notification.class, flyteidl.admin.Common.Notification.Builder.class); - } - - // Construct using flyteidl.admin.Common.Notification.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(); - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Notification_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification getDefaultInstanceForType() { - return flyteidl.admin.Common.Notification.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Notification build() { - flyteidl.admin.Common.Notification result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Notification buildPartial() { - flyteidl.admin.Common.Notification result = new flyteidl.admin.Common.Notification(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - phases_ = java.util.Collections.unmodifiableList(phases_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.phases_ = phases_; - if (typeCase_ == 2) { - if (emailBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = emailBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (pagerDutyBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = pagerDutyBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (slackBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = slackBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.typeCase_ = typeCase_; - 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.Common.Notification) { - return mergeFrom((flyteidl.admin.Common.Notification)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Notification other) { - if (other == flyteidl.admin.Common.Notification.getDefaultInstance()) return this; - if (!other.phases_.isEmpty()) { - if (phases_.isEmpty()) { - phases_ = other.phases_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePhasesIsMutable(); - phases_.addAll(other.phases_); - } - onChanged(); - } - switch (other.getTypeCase()) { - case EMAIL: { - mergeEmail(other.getEmail()); - break; - } - case PAGER_DUTY: { - mergePagerDuty(other.getPagerDuty()); - break; - } - case SLACK: { - mergeSlack(other.getSlack()); - break; - } - case TYPE_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.Common.Notification parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Notification) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.util.List phases_ = - java.util.Collections.emptyList(); - private void ensurePhasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - phases_ = new java.util.ArrayList(phases_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List getPhasesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, flyteidl.core.Execution.WorkflowExecution.Phase>(phases_, phases_converter_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesCount() { - return phases_.size(); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhases(int index) { - return phases_converter_.convert(phases_.get(index)); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhases( - int index, flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhases(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePhasesIsMutable(); - phases_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhases( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (flyteidl.core.Execution.WorkflowExecution.Phase value : values) { - phases_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder clearPhases() { - phases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public java.util.List - getPhasesValueList() { - return java.util.Collections.unmodifiableList(phases_); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public int getPhasesValue(int index) { - return phases_.get(index); - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder setPhasesValue( - int index, int value) { - ensurePhasesIsMutable(); - phases_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addPhasesValue(int value) { - ensurePhasesIsMutable(); - phases_.add(value); - onChanged(); - return this; - } - /** - *
-       * A list of phases to which users can associate the notifications to.
-       * +required
-       * 
- * - * repeated .flyteidl.core.WorkflowExecution.Phase phases = 1; - */ - public Builder addAllPhasesValue( - java.lang.Iterable values) { - ensurePhasesIsMutable(); - for (int value : values) { - phases_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> emailBuilder_; - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public boolean hasEmail() { - return typeCase_ == 2; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification getEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return emailBuilder_.getMessage(); - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder setEmail( - flyteidl.admin.Common.EmailNotification.Builder builderForValue) { - if (emailBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - emailBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder mergeEmail(flyteidl.admin.Common.EmailNotification value) { - if (emailBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.admin.Common.EmailNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.EmailNotification.newBuilder((flyteidl.admin.Common.EmailNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - emailBuilder_.mergeFrom(value); - } - emailBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public Builder clearEmail() { - if (emailBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - emailBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotification.Builder getEmailBuilder() { - return getEmailFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - public flyteidl.admin.Common.EmailNotificationOrBuilder getEmailOrBuilder() { - if ((typeCase_ == 2) && (emailBuilder_ != null)) { - return emailBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.admin.Common.EmailNotification) type_; - } - return flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EmailNotification email = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder> - getEmailFieldBuilder() { - if (emailBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.admin.Common.EmailNotification.getDefaultInstance(); - } - emailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.EmailNotification, flyteidl.admin.Common.EmailNotification.Builder, flyteidl.admin.Common.EmailNotificationOrBuilder>( - (flyteidl.admin.Common.EmailNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return emailBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> pagerDutyBuilder_; - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public boolean hasPagerDuty() { - return typeCase_ == 3; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification getPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return pagerDutyBuilder_.getMessage(); - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder setPagerDuty( - flyteidl.admin.Common.PagerDutyNotification.Builder builderForValue) { - if (pagerDutyBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - pagerDutyBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder mergePagerDuty(flyteidl.admin.Common.PagerDutyNotification value) { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.PagerDutyNotification.newBuilder((flyteidl.admin.Common.PagerDutyNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - pagerDutyBuilder_.mergeFrom(value); - } - pagerDutyBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public Builder clearPagerDuty() { - if (pagerDutyBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - pagerDutyBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotification.Builder getPagerDutyBuilder() { - return getPagerDutyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - public flyteidl.admin.Common.PagerDutyNotificationOrBuilder getPagerDutyOrBuilder() { - if ((typeCase_ == 3) && (pagerDutyBuilder_ != null)) { - return pagerDutyBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.admin.Common.PagerDutyNotification) type_; - } - return flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PagerDutyNotification pager_duty = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder> - getPagerDutyFieldBuilder() { - if (pagerDutyBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.admin.Common.PagerDutyNotification.getDefaultInstance(); - } - pagerDutyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.PagerDutyNotification, flyteidl.admin.Common.PagerDutyNotification.Builder, flyteidl.admin.Common.PagerDutyNotificationOrBuilder>( - (flyteidl.admin.Common.PagerDutyNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return pagerDutyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> slackBuilder_; - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public boolean hasSlack() { - return typeCase_ == 4; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification getSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return slackBuilder_.getMessage(); - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder setSlack( - flyteidl.admin.Common.SlackNotification.Builder builderForValue) { - if (slackBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - slackBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder mergeSlack(flyteidl.admin.Common.SlackNotification value) { - if (slackBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.admin.Common.SlackNotification.getDefaultInstance()) { - type_ = flyteidl.admin.Common.SlackNotification.newBuilder((flyteidl.admin.Common.SlackNotification) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - slackBuilder_.mergeFrom(value); - } - slackBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public Builder clearSlack() { - if (slackBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - slackBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotification.Builder getSlackBuilder() { - return getSlackFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - public flyteidl.admin.Common.SlackNotificationOrBuilder getSlackOrBuilder() { - if ((typeCase_ == 4) && (slackBuilder_ != null)) { - return slackBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.admin.Common.SlackNotification) type_; - } - return flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.SlackNotification slack = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder> - getSlackFieldBuilder() { - if (slackBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.admin.Common.SlackNotification.getDefaultInstance(); - } - slackBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.SlackNotification, flyteidl.admin.Common.SlackNotification.Builder, flyteidl.admin.Common.SlackNotificationOrBuilder>( - (flyteidl.admin.Common.SlackNotification) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return slackBuilder_; - } - @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.Notification) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Notification) - private static final flyteidl.admin.Common.Notification DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Notification(); - } - - public static flyteidl.admin.Common.Notification getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Notification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Notification(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.Common.Notification getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface UrlBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.UrlBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - java.lang.String getUrl(); - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - com.google.protobuf.ByteString - getUrlBytes(); - - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - long getBytes(); - } - /** - *
-   * Represents a string url and associated metadata used throughout the platform.
-   * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - @java.lang.Deprecated public static final class UrlBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.UrlBlob) - UrlBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use UrlBlob.newBuilder() to construct. - private UrlBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UrlBlob() { - url_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UrlBlob( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - url_ = s; - break; - } - case 16: { - - bytes_ = input.readInt64(); - 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.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - public static final int URL_FIELD_NUMBER = 1; - private volatile java.lang.Object url_; - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - /** - *
-     * Actual url value.
-     * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BYTES_FIELD_NUMBER = 2; - private long bytes_; - /** - *
-     * Represents the size of the file accessible at the above url.
-     * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - - 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 (!getUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, url_); - } - if (bytes_ != 0L) { - output.writeInt64(2, bytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, url_); - } - if (bytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, bytes_); - } - 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.Common.UrlBlob)) { - return super.equals(obj); - } - flyteidl.admin.Common.UrlBlob other = (flyteidl.admin.Common.UrlBlob) obj; - - if (!getUrl() - .equals(other.getUrl())) return false; - if (getBytes() - != other.getBytes()) 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(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getBytes()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.UrlBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.UrlBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.UrlBlob 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.Common.UrlBlob 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; - } - /** - *
-     * Represents a string url and associated metadata used throughout the platform.
-     * 
- * - * Protobuf type {@code flyteidl.admin.UrlBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.UrlBlob) - flyteidl.admin.Common.UrlBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.UrlBlob.class, flyteidl.admin.Common.UrlBlob.Builder.class); - } - - // Construct using flyteidl.admin.Common.UrlBlob.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(); - url_ = ""; - - bytes_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_UrlBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob getDefaultInstanceForType() { - return flyteidl.admin.Common.UrlBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob build() { - flyteidl.admin.Common.UrlBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.UrlBlob buildPartial() { - flyteidl.admin.Common.UrlBlob result = new flyteidl.admin.Common.UrlBlob(this); - result.url_ = url_; - result.bytes_ = bytes_; - 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.Common.UrlBlob) { - return mergeFrom((flyteidl.admin.Common.UrlBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.UrlBlob other) { - if (other == flyteidl.admin.Common.UrlBlob.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - onChanged(); - } - if (other.getBytes() != 0L) { - setBytes(other.getBytes()); - } - 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.Common.UrlBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.UrlBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object url_ = ""; - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public com.google.protobuf.ByteString - getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - url_ = value; - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder clearUrl() { - - url_ = getDefaultInstance().getUrl(); - onChanged(); - return this; - } - /** - *
-       * Actual url value.
-       * 
- * - * string url = 1; - */ - public Builder setUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - url_ = value; - onChanged(); - return this; - } - - private long bytes_ ; - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public long getBytes() { - return bytes_; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder setBytes(long value) { - - bytes_ = value; - onChanged(); - return this; - } - /** - *
-       * Represents the size of the file accessible at the above url.
-       * 
- * - * int64 bytes = 2; - */ - public Builder clearBytes() { - - bytes_ = 0L; - onChanged(); - return this; - } - @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.UrlBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.UrlBlob) - private static final flyteidl.admin.Common.UrlBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.UrlBlob(); - } - - public static flyteidl.admin.Common.UrlBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UrlBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UrlBlob(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.Common.UrlBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LabelsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Labels) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Label values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge labels defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Labels extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Labels) - LabelsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Labels.newBuilder() to construct. - private Labels(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Labels() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Labels( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom labels to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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.Common.Labels)) { - return super.equals(obj); - } - flyteidl.admin.Common.Labels other = (flyteidl.admin.Common.Labels) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels 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.Common.Labels parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Labels parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Labels parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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.Common.Labels parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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.Common.Labels parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Labels 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.Common.Labels 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; - } - /** - *
-     * Label values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge labels defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Labels} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Labels) - flyteidl.admin.Common.LabelsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Labels.class, flyteidl.admin.Common.Labels.Builder.class); - } - - // Construct using flyteidl.admin.Common.Labels.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Labels_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels getDefaultInstanceForType() { - return flyteidl.admin.Common.Labels.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Labels build() { - flyteidl.admin.Common.Labels result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Labels buildPartial() { - flyteidl.admin.Common.Labels result = new flyteidl.admin.Common.Labels(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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.Common.Labels) { - return mergeFrom((flyteidl.admin.Common.Labels)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Labels other) { - if (other == flyteidl.admin.Common.Labels.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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.Common.Labels parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Labels) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom labels to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - return this; - } - @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.Labels) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Labels) - private static final flyteidl.admin.Common.Labels DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Labels(); - } - - public static flyteidl.admin.Common.Labels getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Labels parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Labels(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.Common.Labels getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AnnotationsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Annotations) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - boolean containsValues( - java.lang.String key); - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValues(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - java.util.Map - getValuesMap(); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - java.lang.String getValuesOrThrow( - java.lang.String key); - } - /** - *
-   * Annotation values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge annotations defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Annotations extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Annotations) - AnnotationsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Annotations.newBuilder() to construct. - private Annotations(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Annotations() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Annotations( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - values__ = input.readMessage( - ValuesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - values_.getMutableMap().put( - values__.getKey(), values__.getValue()); - 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.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private static final class ValuesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Map of custom annotations to be applied to the execution resource.
-     * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValues(), - ValuesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValues().getMap().entrySet()) { - com.google.protobuf.MapEntry - values__ = ValuesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values__); - } - 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.Common.Annotations)) { - return super.equals(obj); - } - flyteidl.admin.Common.Annotations other = (flyteidl.admin.Common.Annotations) obj; - - if (!internalGetValues().equals( - other.internalGetValues())) 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 (!internalGetValues().getMap().isEmpty()) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + internalGetValues().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Annotations parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Annotations parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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.Common.Annotations parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Annotations 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.Common.Annotations 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; - } - /** - *
-     * Annotation values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge annotations defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Annotations} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Annotations) - flyteidl.admin.Common.AnnotationsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValues(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Annotations.class, flyteidl.admin.Common.Annotations.Builder.class); - } - - // Construct using flyteidl.admin.Common.Annotations.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(); - internalGetMutableValues().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Annotations_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations getDefaultInstanceForType() { - return flyteidl.admin.Common.Annotations.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations build() { - flyteidl.admin.Common.Annotations result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Annotations buildPartial() { - flyteidl.admin.Common.Annotations result = new flyteidl.admin.Common.Annotations(this); - int from_bitField0_ = bitField0_; - result.values_ = internalGetValues(); - result.values_.makeImmutable(); - 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.Common.Annotations) { - return mergeFrom((flyteidl.admin.Common.Annotations)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Annotations other) { - if (other == flyteidl.admin.Common.Annotations.getDefaultInstance()) return this; - internalGetMutableValues().mergeFrom( - other.internalGetValues()); - 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.Common.Annotations parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Annotations) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> values_; - private com.google.protobuf.MapField - internalGetValues() { - if (values_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - return values_; - } - private com.google.protobuf.MapField - internalGetMutableValues() { - onChanged();; - if (values_ == null) { - values_ = com.google.protobuf.MapField.newMapField( - ValuesDefaultEntryHolder.defaultEntry); - } - if (!values_.isMutable()) { - values_ = values_.copy(); - } - return values_; - } - - public int getValuesCount() { - return internalGetValues().getMap().size(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public boolean containsValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValues().getMap().containsKey(key); - } - /** - * Use {@link #getValuesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValues() { - return getValuesMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.util.Map getValuesMap() { - return internalGetValues().getMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public java.lang.String getValuesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValues().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValues() { - internalGetMutableValues().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder removeValues( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValues() { - return internalGetMutableValues().getMutableMap(); - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - public Builder putValues( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValues().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Map of custom annotations to be applied to the execution resource.
-       * 
- * - * map<string, string> values = 1; - */ - - public Builder putAllValues( - java.util.Map values) { - internalGetMutableValues().getMutableMap() - .putAll(values); - return this; - } - @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.Annotations) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Annotations) - private static final flyteidl.admin.Common.Annotations DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Annotations(); - } - - public static flyteidl.admin.Common.Annotations getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotations parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Annotations(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.Common.Annotations getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EnvsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Envs) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - java.util.List - getValuesList(); - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - flyteidl.core.Literals.KeyValuePair getValues(int index); - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - int getValuesCount(); - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - java.util.List - getValuesOrBuilderList(); - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( - int index); - } - /** - *
-   * Environment variable values to be applied to an execution resource.
-   * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-   * to specify how to merge environment variables defined at registration and execution time.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Envs} - */ - public static final class Envs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Envs) - EnvsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Envs.newBuilder() to construct. - private Envs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Envs() { - values_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Envs( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Envs.class, flyteidl.admin.Common.Envs.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private java.util.List values_; - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public java.util.List getValuesList() { - return values_; - } - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - return values_; - } - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePair getValues(int index) { - return values_.get(index); - } - /** - *
-     * Map of custom environment variables to be applied to the execution resource.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( - int index) { - return values_.get(index); - } - - 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 { - for (int i = 0; i < values_.size(); i++) { - output.writeMessage(1, values_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < values_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, values_.get(i)); - } - 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.Common.Envs)) { - return super.equals(obj); - } - flyteidl.admin.Common.Envs other = (flyteidl.admin.Common.Envs) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.Envs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Envs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Envs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Envs 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.Common.Envs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.Envs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.Envs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Envs 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.Common.Envs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Envs 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.Common.Envs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.Envs 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.Common.Envs 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; - } - /** - *
-     * Environment variable values to be applied to an execution resource.
-     * In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
-     * to specify how to merge environment variables defined at registration and execution time.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Envs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Envs) - flyteidl.admin.Common.EnvsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.Envs.class, flyteidl.admin.Common.Envs.Builder.class); - } - - // Construct using flyteidl.admin.Common.Envs.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getValuesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - valuesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_Envs_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.Envs getDefaultInstanceForType() { - return flyteidl.admin.Common.Envs.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.Envs build() { - flyteidl.admin.Common.Envs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.Envs buildPartial() { - flyteidl.admin.Common.Envs result = new flyteidl.admin.Common.Envs(this); - int from_bitField0_ = bitField0_; - if (valuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - values_ = java.util.Collections.unmodifiableList(values_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - } else { - result.values_ = valuesBuilder_.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.Common.Envs) { - return mergeFrom((flyteidl.admin.Common.Envs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.Envs other) { - if (other == flyteidl.admin.Common.Envs.getDefaultInstance()) return this; - if (valuesBuilder_ == null) { - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - } else { - if (!other.values_.isEmpty()) { - if (valuesBuilder_.isEmpty()) { - valuesBuilder_.dispose(); - valuesBuilder_ = null; - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - valuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getValuesFieldBuilder() : null; - } else { - valuesBuilder_.addAllMessages(other.values_); - } - } - } - 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.Common.Envs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.Envs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List values_ = - java.util.Collections.emptyList(); - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new java.util.ArrayList(values_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> valuesBuilder_; - - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public java.util.List getValuesList() { - if (valuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(values_); - } else { - return valuesBuilder_.getMessageList(); - } - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public int getValuesCount() { - if (valuesBuilder_ == null) { - return values_.size(); - } else { - return valuesBuilder_.getCount(); - } - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePair getValues(int index) { - if (valuesBuilder_ == null) { - return values_.get(index); - } else { - return valuesBuilder_.getMessage(index); - } - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder setValues( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - } else { - valuesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder setValues( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.set(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder addValues(flyteidl.core.Literals.KeyValuePair value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - } else { - valuesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder addValues( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(index, value); - onChanged(); - } else { - valuesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder addValues( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder addValues( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.add(index, builderForValue.build()); - onChanged(); - } else { - valuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - } else { - valuesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder clearValues() { - if (valuesBuilder_ == null) { - values_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - valuesBuilder_.clear(); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public Builder removeValues(int index) { - if (valuesBuilder_ == null) { - ensureValuesIsMutable(); - values_.remove(index); - onChanged(); - } else { - valuesBuilder_.remove(index); - } - return this; - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getValuesBuilder( - int index) { - return getValuesFieldBuilder().getBuilder(index); - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getValuesOrBuilder( - int index) { - if (valuesBuilder_ == null) { - return values_.get(index); } else { - return valuesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public java.util.List - getValuesOrBuilderList() { - if (valuesBuilder_ != null) { - return valuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(values_); - } - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addValuesBuilder() { - return getValuesFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addValuesBuilder( - int index) { - return getValuesFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Map of custom environment variables to be applied to the execution resource.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair values = 1; - */ - public java.util.List - getValuesBuilderList() { - return getValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - values_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - values_ = null; - } - return valuesBuilder_; - } - @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.Envs) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Envs) - private static final flyteidl.admin.Common.Envs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.Envs(); - } - - public static flyteidl.admin.Common.Envs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Envs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Envs(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.Common.Envs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface AuthRoleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AuthRole) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - } - /** - *
-   * Defines permissions associated with executions created by this launch plan spec.
-   * Use either of these roles when they have permissions required by your workflow execution.
-   * Deprecated.
-   * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - @java.lang.Deprecated public static final class AuthRole extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AuthRole) - AuthRoleOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuthRole.newBuilder() to construct. - private AuthRole(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuthRole() { - assumableIamRole_ = ""; - kubernetesServiceAccount_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuthRole( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - assumableIamRole_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - kubernetesServiceAccount_ = s; - 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.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object assumableIamRole_; - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assumableIamRole_ = s; - return s; - } - } - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assumableIamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object kubernetesServiceAccount_; - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesServiceAccount_ = s; - return s; - } - } - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kubernetesServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getAssumableIamRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assumableIamRole_); - } - if (!getKubernetesServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kubernetesServiceAccount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAssumableIamRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assumableIamRole_); - } - if (!getKubernetesServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kubernetesServiceAccount_); - } - 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.Common.AuthRole)) { - return super.equals(obj); - } - flyteidl.admin.Common.AuthRole other = (flyteidl.admin.Common.AuthRole) obj; - - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) 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(); - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole 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.Common.AuthRole parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.AuthRole parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.AuthRole parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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.Common.AuthRole parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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.Common.AuthRole parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.AuthRole 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.Common.AuthRole 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; - } - /** - *
-     * Defines permissions associated with executions created by this launch plan spec.
-     * Use either of these roles when they have permissions required by your workflow execution.
-     * Deprecated.
-     * 
- * - * Protobuf type {@code flyteidl.admin.AuthRole} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AuthRole) - flyteidl.admin.Common.AuthRoleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.AuthRole.class, flyteidl.admin.Common.AuthRole.Builder.class); - } - - // Construct using flyteidl.admin.Common.AuthRole.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(); - assumableIamRole_ = ""; - - kubernetesServiceAccount_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_AuthRole_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole getDefaultInstanceForType() { - return flyteidl.admin.Common.AuthRole.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole build() { - flyteidl.admin.Common.AuthRole result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.AuthRole buildPartial() { - flyteidl.admin.Common.AuthRole result = new flyteidl.admin.Common.AuthRole(this); - result.assumableIamRole_ = assumableIamRole_; - result.kubernetesServiceAccount_ = kubernetesServiceAccount_; - 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.Common.AuthRole) { - return mergeFrom((flyteidl.admin.Common.AuthRole)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.AuthRole other) { - if (other == flyteidl.admin.Common.AuthRole.getDefaultInstance()) return this; - if (!other.getAssumableIamRole().isEmpty()) { - assumableIamRole_ = other.assumableIamRole_; - onChanged(); - } - if (!other.getKubernetesServiceAccount().isEmpty()) { - kubernetesServiceAccount_ = other.kubernetesServiceAccount_; - onChanged(); - } - 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.Common.AuthRole parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.AuthRole) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object assumableIamRole_ = ""; - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = assumableIamRole_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assumableIamRole_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assumableIamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assumableIamRole_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - - assumableIamRole_ = getDefaultInstance().getAssumableIamRole(); - onChanged(); - return this; - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assumableIamRole_ = value; - onChanged(); - return this; - } - - private java.lang.Object kubernetesServiceAccount_ = ""; - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = kubernetesServiceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesServiceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kubernetesServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kubernetesServiceAccount_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - - kubernetesServiceAccount_ = getDefaultInstance().getKubernetesServiceAccount(); - onChanged(); - return this; - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kubernetesServiceAccount_ = value; - onChanged(); - return this; - } - @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.AuthRole) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AuthRole) - private static final flyteidl.admin.Common.AuthRole DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.AuthRole(); - } - - public static flyteidl.admin.Common.AuthRole getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthRole parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuthRole(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.Common.AuthRole getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RawOutputDataConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.RawOutputDataConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Prefix for where offloaded data from user workflows will be written
-     * e.g. s3://bucket/key or s3://bucket/
-     * 
- * - * string output_location_prefix = 1; - */ - java.lang.String getOutputLocationPrefix(); - /** - *
-     * Prefix for where offloaded data from user workflows will be written
-     * e.g. s3://bucket/key or s3://bucket/
-     * 
- * - * string output_location_prefix = 1; - */ - com.google.protobuf.ByteString - getOutputLocationPrefixBytes(); - } - /** - *
-   * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-   * See https://github.com/flyteorg/flyte/issues/211 for more background information.
-   * 
- * - * Protobuf type {@code flyteidl.admin.RawOutputDataConfig} - */ - public static final class RawOutputDataConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.RawOutputDataConfig) - RawOutputDataConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use RawOutputDataConfig.newBuilder() to construct. - private RawOutputDataConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RawOutputDataConfig() { - outputLocationPrefix_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RawOutputDataConfig( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - outputLocationPrefix_ = s; - 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.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.RawOutputDataConfig.class, flyteidl.admin.Common.RawOutputDataConfig.Builder.class); - } - - public static final int OUTPUT_LOCATION_PREFIX_FIELD_NUMBER = 1; - private volatile java.lang.Object outputLocationPrefix_; - /** - *
-     * Prefix for where offloaded data from user workflows will be written
-     * e.g. s3://bucket/key or s3://bucket/
-     * 
- * - * string output_location_prefix = 1; - */ - public java.lang.String getOutputLocationPrefix() { - java.lang.Object ref = outputLocationPrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputLocationPrefix_ = s; - return s; - } - } - /** - *
-     * Prefix for where offloaded data from user workflows will be written
-     * e.g. s3://bucket/key or s3://bucket/
-     * 
- * - * string output_location_prefix = 1; - */ - public com.google.protobuf.ByteString - getOutputLocationPrefixBytes() { - java.lang.Object ref = outputLocationPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputLocationPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getOutputLocationPrefixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputLocationPrefix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getOutputLocationPrefixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputLocationPrefix_); - } - 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.Common.RawOutputDataConfig)) { - return super.equals(obj); - } - flyteidl.admin.Common.RawOutputDataConfig other = (flyteidl.admin.Common.RawOutputDataConfig) obj; - - if (!getOutputLocationPrefix() - .equals(other.getOutputLocationPrefix())) 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(); - hash = (37 * hash) + OUTPUT_LOCATION_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getOutputLocationPrefix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.RawOutputDataConfig 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.Common.RawOutputDataConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.RawOutputDataConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.RawOutputDataConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.RawOutputDataConfig 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.Common.RawOutputDataConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.RawOutputDataConfig 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.Common.RawOutputDataConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.RawOutputDataConfig 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.Common.RawOutputDataConfig 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; - } - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * See https://github.com/flyteorg/flyte/issues/211 for more background information.
-     * 
- * - * Protobuf type {@code flyteidl.admin.RawOutputDataConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.RawOutputDataConfig) - flyteidl.admin.Common.RawOutputDataConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.RawOutputDataConfig.class, flyteidl.admin.Common.RawOutputDataConfig.Builder.class); - } - - // Construct using flyteidl.admin.Common.RawOutputDataConfig.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(); - outputLocationPrefix_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.RawOutputDataConfig getDefaultInstanceForType() { - return flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.RawOutputDataConfig build() { - flyteidl.admin.Common.RawOutputDataConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.RawOutputDataConfig buildPartial() { - flyteidl.admin.Common.RawOutputDataConfig result = new flyteidl.admin.Common.RawOutputDataConfig(this); - result.outputLocationPrefix_ = outputLocationPrefix_; - 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.Common.RawOutputDataConfig) { - return mergeFrom((flyteidl.admin.Common.RawOutputDataConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.RawOutputDataConfig other) { - if (other == flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance()) return this; - if (!other.getOutputLocationPrefix().isEmpty()) { - outputLocationPrefix_ = other.outputLocationPrefix_; - onChanged(); - } - 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.Common.RawOutputDataConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.RawOutputDataConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object outputLocationPrefix_ = ""; - /** - *
-       * Prefix for where offloaded data from user workflows will be written
-       * e.g. s3://bucket/key or s3://bucket/
-       * 
- * - * string output_location_prefix = 1; - */ - public java.lang.String getOutputLocationPrefix() { - java.lang.Object ref = outputLocationPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputLocationPrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Prefix for where offloaded data from user workflows will be written
-       * e.g. s3://bucket/key or s3://bucket/
-       * 
- * - * string output_location_prefix = 1; - */ - public com.google.protobuf.ByteString - getOutputLocationPrefixBytes() { - java.lang.Object ref = outputLocationPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputLocationPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Prefix for where offloaded data from user workflows will be written
-       * e.g. s3://bucket/key or s3://bucket/
-       * 
- * - * string output_location_prefix = 1; - */ - public Builder setOutputLocationPrefix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputLocationPrefix_ = value; - onChanged(); - return this; - } - /** - *
-       * Prefix for where offloaded data from user workflows will be written
-       * e.g. s3://bucket/key or s3://bucket/
-       * 
- * - * string output_location_prefix = 1; - */ - public Builder clearOutputLocationPrefix() { - - outputLocationPrefix_ = getDefaultInstance().getOutputLocationPrefix(); - onChanged(); - return this; - } - /** - *
-       * Prefix for where offloaded data from user workflows will be written
-       * e.g. s3://bucket/key or s3://bucket/
-       * 
- * - * string output_location_prefix = 1; - */ - public Builder setOutputLocationPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputLocationPrefix_ = value; - onChanged(); - return this; - } - @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.RawOutputDataConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.RawOutputDataConfig) - private static final flyteidl.admin.Common.RawOutputDataConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.RawOutputDataConfig(); - } - - public static flyteidl.admin.Common.RawOutputDataConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RawOutputDataConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RawOutputDataConfig(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.Common.RawOutputDataConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FlyteURLsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.FlyteURLs) - com.google.protobuf.MessageOrBuilder { - - /** - * string inputs = 1; - */ - java.lang.String getInputs(); - /** - * string inputs = 1; - */ - com.google.protobuf.ByteString - getInputsBytes(); - - /** - * string outputs = 2; - */ - java.lang.String getOutputs(); - /** - * string outputs = 2; - */ - com.google.protobuf.ByteString - getOutputsBytes(); - - /** - * string deck = 3; - */ - java.lang.String getDeck(); - /** - * string deck = 3; - */ - com.google.protobuf.ByteString - getDeckBytes(); - } - /** - *
-   * These URLs are returned as part of node and task execution data requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.FlyteURLs} - */ - public static final class FlyteURLs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.FlyteURLs) - FlyteURLsOrBuilder { - private static final long serialVersionUID = 0L; - // Use FlyteURLs.newBuilder() to construct. - private FlyteURLs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FlyteURLs() { - inputs_ = ""; - outputs_ = ""; - deck_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FlyteURLs( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - inputs_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - outputs_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - deck_ = s; - 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.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.FlyteURLs.class, flyteidl.admin.Common.FlyteURLs.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private volatile java.lang.Object inputs_; - /** - * string inputs = 1; - */ - public java.lang.String getInputs() { - java.lang.Object ref = inputs_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputs_ = s; - return s; - } - } - /** - * string inputs = 1; - */ - public com.google.protobuf.ByteString - getInputsBytes() { - java.lang.Object ref = inputs_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputs_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private volatile java.lang.Object outputs_; - /** - * string outputs = 2; - */ - public java.lang.String getOutputs() { - java.lang.Object ref = outputs_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputs_ = s; - return s; - } - } - /** - * string outputs = 2; - */ - public com.google.protobuf.ByteString - getOutputsBytes() { - java.lang.Object ref = outputs_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputs_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DECK_FIELD_NUMBER = 3; - private volatile java.lang.Object deck_; - /** - * string deck = 3; - */ - public java.lang.String getDeck() { - java.lang.Object ref = deck_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deck_ = s; - return s; - } - } - /** - * string deck = 3; - */ - public com.google.protobuf.ByteString - getDeckBytes() { - java.lang.Object ref = deck_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getInputsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputs_); - } - if (!getOutputsBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, outputs_); - } - if (!getDeckBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, deck_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getInputsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputs_); - } - if (!getOutputsBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, outputs_); - } - if (!getDeckBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, deck_); - } - 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.Common.FlyteURLs)) { - return super.equals(obj); - } - flyteidl.admin.Common.FlyteURLs other = (flyteidl.admin.Common.FlyteURLs) obj; - - if (!getInputs() - .equals(other.getInputs())) return false; - if (!getOutputs() - .equals(other.getOutputs())) return false; - if (!getDeck() - .equals(other.getDeck())) 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(); - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - hash = (37 * hash) + DECK_FIELD_NUMBER; - hash = (53 * hash) + getDeck().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Common.FlyteURLs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.FlyteURLs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.FlyteURLs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.FlyteURLs 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.Common.FlyteURLs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Common.FlyteURLs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Common.FlyteURLs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.FlyteURLs 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.Common.FlyteURLs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.FlyteURLs 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.Common.FlyteURLs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Common.FlyteURLs 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.Common.FlyteURLs 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; - } - /** - *
-     * These URLs are returned as part of node and task execution data requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.FlyteURLs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.FlyteURLs) - flyteidl.admin.Common.FlyteURLsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Common.FlyteURLs.class, flyteidl.admin.Common.FlyteURLs.Builder.class); - } - - // Construct using flyteidl.admin.Common.FlyteURLs.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(); - inputs_ = ""; - - outputs_ = ""; - - deck_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Common.internal_static_flyteidl_admin_FlyteURLs_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Common.FlyteURLs getDefaultInstanceForType() { - return flyteidl.admin.Common.FlyteURLs.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Common.FlyteURLs build() { - flyteidl.admin.Common.FlyteURLs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Common.FlyteURLs buildPartial() { - flyteidl.admin.Common.FlyteURLs result = new flyteidl.admin.Common.FlyteURLs(this); - result.inputs_ = inputs_; - result.outputs_ = outputs_; - result.deck_ = deck_; - 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.Common.FlyteURLs) { - return mergeFrom((flyteidl.admin.Common.FlyteURLs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Common.FlyteURLs other) { - if (other == flyteidl.admin.Common.FlyteURLs.getDefaultInstance()) return this; - if (!other.getInputs().isEmpty()) { - inputs_ = other.inputs_; - onChanged(); - } - if (!other.getOutputs().isEmpty()) { - outputs_ = other.outputs_; - onChanged(); - } - if (!other.getDeck().isEmpty()) { - deck_ = other.deck_; - onChanged(); - } - 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.Common.FlyteURLs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Common.FlyteURLs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object inputs_ = ""; - /** - * string inputs = 1; - */ - public java.lang.String getInputs() { - java.lang.Object ref = inputs_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputs_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string inputs = 1; - */ - public com.google.protobuf.ByteString - getInputsBytes() { - java.lang.Object ref = inputs_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputs_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string inputs = 1; - */ - public Builder setInputs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputs_ = value; - onChanged(); - return this; - } - /** - * string inputs = 1; - */ - public Builder clearInputs() { - - inputs_ = getDefaultInstance().getInputs(); - onChanged(); - return this; - } - /** - * string inputs = 1; - */ - public Builder setInputsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputs_ = value; - onChanged(); - return this; - } - - private java.lang.Object outputs_ = ""; - /** - * string outputs = 2; - */ - public java.lang.String getOutputs() { - java.lang.Object ref = outputs_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputs_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string outputs = 2; - */ - public com.google.protobuf.ByteString - getOutputsBytes() { - java.lang.Object ref = outputs_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputs_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string outputs = 2; - */ - public Builder setOutputs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputs_ = value; - onChanged(); - return this; - } - /** - * string outputs = 2; - */ - public Builder clearOutputs() { - - outputs_ = getDefaultInstance().getOutputs(); - onChanged(); - return this; - } - /** - * string outputs = 2; - */ - public Builder setOutputsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputs_ = value; - onChanged(); - return this; - } - - private java.lang.Object deck_ = ""; - /** - * string deck = 3; - */ - public java.lang.String getDeck() { - java.lang.Object ref = deck_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deck_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string deck = 3; - */ - public com.google.protobuf.ByteString - getDeckBytes() { - java.lang.Object ref = deck_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deck_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string deck = 3; - */ - public Builder setDeck( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deck_ = value; - onChanged(); - return this; - } - /** - * string deck = 3; - */ - public Builder clearDeck() { - - deck_ = getDefaultInstance().getDeck(); - onChanged(); - return this; - } - /** - * string deck = 3; - */ - public Builder setDeckBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deck_ = value; - onChanged(); - return this; - } - @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.FlyteURLs) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FlyteURLs) - private static final flyteidl.admin.Common.FlyteURLs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Common.FlyteURLs(); - } - - public static flyteidl.admin.Common.FlyteURLs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FlyteURLs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FlyteURLs(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.Common.FlyteURLs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Sort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Sort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ObjectGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ResourceListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_PagerDutyNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SlackNotification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Notification_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Notification_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_UrlBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Envs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Envs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AuthRole_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AuthRole_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_RawOutputDataConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_FlyteURLs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/admin/common.proto\022\016flyteidl." + - "admin\032\035flyteidl/core/execution.proto\032\036fl" + - "yteidl/core/identifier.proto\032\034flyteidl/c" + - "ore/literals.proto\032\037google/protobuf/time" + - "stamp.proto\"F\n\025NamedEntityIdentifier\022\017\n\007" + - "project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 " + - "\001(\t\"[\n\023NamedEntityMetadata\022\023\n\013descriptio" + - "n\030\001 \001(\t\022/\n\005state\030\002 \001(\0162 .flyteidl.admin." + - "NamedEntityState\"\253\001\n\013NamedEntity\0222\n\rreso" + - "urce_type\030\001 \001(\0162\033.flyteidl.core.Resource" + - "Type\0221\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedE" + - "ntityIdentifier\0225\n\010metadata\030\003 \001(\0132#.flyt" + - "eidl.admin.NamedEntityMetadata\"r\n\004Sort\022\013" + - "\n\003key\030\001 \001(\t\0221\n\tdirection\030\002 \001(\0162\036.flyteid" + - "l.admin.Sort.Direction\"*\n\tDirection\022\016\n\nD" + - "ESCENDING\020\000\022\r\n\tASCENDING\020\001\"\231\001\n NamedEnti" + - "tyIdentifierListRequest\022\017\n\007project\030\001 \001(\t" + - "\022\016\n\006domain\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token" + - "\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin" + - ".Sort\022\017\n\007filters\030\006 \001(\t\"\303\001\n\026NamedEntityLi" + - "stRequest\0222\n\rresource_type\030\001 \001(\0162\033.flyte" + - "idl.core.ResourceType\022\017\n\007project\030\002 \001(\t\022\016" + - "\n\006domain\030\003 \001(\t\022\r\n\005limit\030\004 \001(\r\022\r\n\005token\030\005" + - " \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admin.S" + - "ort\022\017\n\007filters\030\007 \001(\t\"c\n\031NamedEntityIdent" + - "ifierList\0227\n\010entities\030\001 \003(\0132%.flyteidl.a" + - "dmin.NamedEntityIdentifier\022\r\n\005token\030\002 \001(" + - "\t\"O\n\017NamedEntityList\022-\n\010entities\030\001 \003(\0132\033" + - ".flyteidl.admin.NamedEntity\022\r\n\005token\030\002 \001" + - "(\t\"~\n\025NamedEntityGetRequest\0222\n\rresource_" + - "type\030\001 \001(\0162\033.flyteidl.core.ResourceType\022" + - "1\n\002id\030\002 \001(\0132%.flyteidl.admin.NamedEntity" + - "Identifier\"\270\001\n\030NamedEntityUpdateRequest\022" + - "2\n\rresource_type\030\001 \001(\0162\033.flyteidl.core.R" + - "esourceType\0221\n\002id\030\002 \001(\0132%.flyteidl.admin" + - ".NamedEntityIdentifier\0225\n\010metadata\030\003 \001(\013" + - "2#.flyteidl.admin.NamedEntityMetadata\"\033\n" + - "\031NamedEntityUpdateResponse\"9\n\020ObjectGetR" + - "equest\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Ident" + - "ifier\"\236\001\n\023ResourceListRequest\0221\n\002id\030\001 \001(" + - "\0132%.flyteidl.admin.NamedEntityIdentifier" + - "\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filter" + - "s\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admi" + - "n.Sort\"-\n\021EmailNotification\022\030\n\020recipient" + - "s_email\030\001 \003(\t\"1\n\025PagerDutyNotification\022\030" + - "\n\020recipients_email\030\001 \003(\t\"-\n\021SlackNotific" + - "ation\022\030\n\020recipients_email\030\001 \003(\t\"\363\001\n\014Noti" + - "fication\0226\n\006phases\030\001 \003(\0162&.flyteidl.core" + - ".WorkflowExecution.Phase\0222\n\005email\030\002 \001(\0132" + - "!.flyteidl.admin.EmailNotificationH\000\022;\n\n" + - "pager_duty\030\003 \001(\0132%.flyteidl.admin.PagerD" + - "utyNotificationH\000\0222\n\005slack\030\004 \001(\0132!.flyte" + - "idl.admin.SlackNotificationH\000B\006\n\004type\")\n" + - "\007UrlBlob\022\013\n\003url\030\001 \001(\t\022\r\n\005bytes\030\002 \001(\003:\002\030\001" + - "\"k\n\006Labels\0222\n\006values\030\001 \003(\0132\".flyteidl.ad" + - "min.Labels.ValuesEntry\032-\n\013ValuesEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\013Annotat" + - "ions\0227\n\006values\030\001 \003(\0132\'.flyteidl.admin.An" + - "notations.ValuesEntry\032-\n\013ValuesEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\004Envs\022+\n\006" + - "values\030\001 \003(\0132\033.flyteidl.core.KeyValuePai" + - "r\"N\n\010AuthRole\022\032\n\022assumable_iam_role\030\001 \001(" + - "\t\022\"\n\032kubernetes_service_account\030\002 \001(\t:\002\030" + - "\001\"5\n\023RawOutputDataConfig\022\036\n\026output_locat" + - "ion_prefix\030\001 \001(\t\":\n\tFlyteURLs\022\016\n\006inputs\030" + - "\001 \001(\t\022\017\n\007outputs\030\002 \001(\t\022\014\n\004deck\030\003 \001(\t*\\\n\020" + - "NamedEntityState\022\027\n\023NAMED_ENTITY_ACTIVE\020" + - "\000\022\031\n\025NAMED_ENTITY_ARCHIVED\020\001\022\024\n\020SYSTEM_G" + - "ENERATED\020\002B=Z;github.com/flyteorg/flyte/" + - "flyteidl/gen/pb-go/flyteidl/adminb\006proto" + - "3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NamedEntityIdentifier_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifier_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", }); - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NamedEntityMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityMetadata_descriptor, - new java.lang.String[] { "Description", "State", }); - internal_static_flyteidl_admin_NamedEntity_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NamedEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntity_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_Sort_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_Sort_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Sort_descriptor, - new java.lang.String[] { "Key", "Direction", }); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NamedEntityListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityListRequest_descriptor, - new java.lang.String[] { "ResourceType", "Project", "Domain", "Limit", "Token", "SortBy", "Filters", }); - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NamedEntityIdentifierList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityIdentifierList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityList_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_NamedEntityList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityList_descriptor, - new java.lang.String[] { "Entities", "Token", }); - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_NamedEntityGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityGetRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", }); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_NamedEntityUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Metadata", }); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_NamedEntityUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NamedEntityUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ObjectGetRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ObjectGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ObjectGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ResourceListRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_ResourceListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ResourceListRequest_descriptor, - new java.lang.String[] { "Id", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_EmailNotification_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_EmailNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_PagerDutyNotification_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_PagerDutyNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_PagerDutyNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_SlackNotification_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_SlackNotification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SlackNotification_descriptor, - new java.lang.String[] { "RecipientsEmail", }); - internal_static_flyteidl_admin_Notification_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_Notification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Notification_descriptor, - new java.lang.String[] { "Phases", "Email", "PagerDuty", "Slack", "Type", }); - internal_static_flyteidl_admin_UrlBlob_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_flyteidl_admin_UrlBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_UrlBlob_descriptor, - new java.lang.String[] { "Url", "Bytes", }); - internal_static_flyteidl_admin_Labels_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_flyteidl_admin_Labels_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Labels_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Labels_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Labels_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_Annotations_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_flyteidl_admin_Annotations_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor = - internal_static_flyteidl_admin_Annotations_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_Annotations_ValuesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Annotations_ValuesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_Envs_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_flyteidl_admin_Envs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Envs_descriptor, - new java.lang.String[] { "Values", }); - internal_static_flyteidl_admin_AuthRole_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_flyteidl_admin_AuthRole_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AuthRole_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", }); - internal_static_flyteidl_admin_RawOutputDataConfig_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_flyteidl_admin_RawOutputDataConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_RawOutputDataConfig_descriptor, - new java.lang.String[] { "OutputLocationPrefix", }); - internal_static_flyteidl_admin_FlyteURLs_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_flyteidl_admin_FlyteURLs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_FlyteURLs_descriptor, - new java.lang.String[] { "Inputs", "Outputs", "Deck", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java deleted file mode 100644 index 44ab6d1f61..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/DescriptionEntityOuterClass.java +++ /dev/null @@ -1,6299 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/description_entity.proto - -package flyteidl.admin; - -public final class DescriptionEntityOuterClass { - private DescriptionEntityOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The format of the long description
-   * 
- * - * Protobuf enum {@code flyteidl.admin.DescriptionFormat} - */ - public enum DescriptionFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DESCRIPTION_FORMAT_UNKNOWN = 0; - */ - DESCRIPTION_FORMAT_UNKNOWN(0), - /** - * DESCRIPTION_FORMAT_MARKDOWN = 1; - */ - DESCRIPTION_FORMAT_MARKDOWN(1), - /** - * DESCRIPTION_FORMAT_HTML = 2; - */ - DESCRIPTION_FORMAT_HTML(2), - /** - *
-     * python default documentation - comments is rst
-     * 
- * - * DESCRIPTION_FORMAT_RST = 3; - */ - DESCRIPTION_FORMAT_RST(3), - UNRECOGNIZED(-1), - ; - - /** - * DESCRIPTION_FORMAT_UNKNOWN = 0; - */ - public static final int DESCRIPTION_FORMAT_UNKNOWN_VALUE = 0; - /** - * DESCRIPTION_FORMAT_MARKDOWN = 1; - */ - public static final int DESCRIPTION_FORMAT_MARKDOWN_VALUE = 1; - /** - * DESCRIPTION_FORMAT_HTML = 2; - */ - public static final int DESCRIPTION_FORMAT_HTML_VALUE = 2; - /** - *
-     * python default documentation - comments is rst
-     * 
- * - * DESCRIPTION_FORMAT_RST = 3; - */ - public static final int DESCRIPTION_FORMAT_RST_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DescriptionFormat valueOf(int value) { - return forNumber(value); - } - - public static DescriptionFormat forNumber(int value) { - switch (value) { - case 0: return DESCRIPTION_FORMAT_UNKNOWN; - case 1: return DESCRIPTION_FORMAT_MARKDOWN; - case 2: return DESCRIPTION_FORMAT_HTML; - case 3: return DESCRIPTION_FORMAT_RST; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DescriptionFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DescriptionFormat findValueByNumber(int number) { - return DescriptionFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final DescriptionFormat[] VALUES = values(); - - public static DescriptionFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DescriptionFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.DescriptionFormat) - } - - public interface DescriptionEntityOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 2; - */ - java.lang.String getShortDescription(); - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 2; - */ - com.google.protobuf.ByteString - getShortDescriptionBytes(); - - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - boolean hasLongDescription(); - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription(); - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder(); - - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - boolean hasSourceCode(); - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode(); - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder(); - - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - java.util.List - getTagsList(); - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - int getTagsCount(); - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - java.lang.String getTags(int index); - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - *
-   * DescriptionEntity contains detailed description for the task/workflow.
-   * Documentation could provide insight into the algorithms, business use case, etc.
-   * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntity} - */ - public static final class DescriptionEntity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntity) - DescriptionEntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use DescriptionEntity.newBuilder() to construct. - private DescriptionEntity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DescriptionEntity() { - shortDescription_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DescriptionEntity( - 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; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - shortDescription_ = s; - break; - } - case 26: { - flyteidl.admin.DescriptionEntityOuterClass.Description.Builder subBuilder = null; - if (longDescription_ != null) { - subBuilder = longDescription_.toBuilder(); - } - longDescription_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.Description.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(longDescription_); - longDescription_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder subBuilder = null; - if (sourceCode_ != null) { - subBuilder = sourceCode_.toBuilder(); - } - sourceCode_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.SourceCode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sourceCode_); - sourceCode_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - tags_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000010) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the description entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object shortDescription_; - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 2; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } - } - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 2; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LONG_DESCRIPTION_FIELD_NUMBER = 3; - private flyteidl.admin.DescriptionEntityOuterClass.Description longDescription_; - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public boolean hasLongDescription() { - return longDescription_ != null; - } - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription() { - return longDescription_ == null ? flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; - } - /** - *
-     * Full user description with formatting preserved.
-     * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder() { - return getLongDescription(); - } - - public static final int SOURCE_CODE_FIELD_NUMBER = 4; - private flyteidl.admin.DescriptionEntityOuterClass.SourceCode sourceCode_; - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public boolean hasSourceCode() { - return sourceCode_ != null; - } - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode() { - return sourceCode_ == null ? flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; - } - /** - *
-     * Optional link to source code used to define this entity.
-     * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder() { - return getSourceCode(); - } - - public static final int TAGS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * User-specified tags. These are arbitrary and can be used for searching
-     * filtering and discovering tasks.
-     * 
- * - * repeated string tags = 5; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - 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()); - } - if (!getShortDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shortDescription_); - } - if (longDescription_ != null) { - output.writeMessage(3, getLongDescription()); - } - if (sourceCode_ != null) { - output.writeMessage(4, getSourceCode()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tags_.getRaw(i)); - } - 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()); - } - if (!getShortDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shortDescription_); - } - if (longDescription_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLongDescription()); - } - if (sourceCode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSourceCode()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - 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.DescriptionEntityOuterClass.DescriptionEntity)) { - return super.equals(obj); - } - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getShortDescription() - .equals(other.getShortDescription())) return false; - if (hasLongDescription() != other.hasLongDescription()) return false; - if (hasLongDescription()) { - if (!getLongDescription() - .equals(other.getLongDescription())) return false; - } - if (hasSourceCode() != other.hasSourceCode()) return false; - if (hasSourceCode()) { - if (!getSourceCode() - .equals(other.getSourceCode())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) 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 = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getShortDescription().hashCode(); - if (hasLongDescription()) { - hash = (37 * hash) + LONG_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getLongDescription().hashCode(); - } - if (hasSourceCode()) { - hash = (37 * hash) + SOURCE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getSourceCode().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity 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.DescriptionEntityOuterClass.DescriptionEntity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity 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.DescriptionEntityOuterClass.DescriptionEntity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity 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.DescriptionEntityOuterClass.DescriptionEntity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity 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.DescriptionEntityOuterClass.DescriptionEntity 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; - } - /** - *
-     * DescriptionEntity contains detailed description for the task/workflow.
-     * Documentation could provide insight into the algorithms, business use case, etc.
-     * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntity) - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder.class); - } - - // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.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; - } - shortDescription_ = ""; - - if (longDescriptionBuilder_ == null) { - longDescription_ = null; - } else { - longDescription_ = null; - longDescriptionBuilder_ = null; - } - if (sourceCodeBuilder_ == null) { - sourceCode_ = null; - } else { - sourceCode_ = null; - sourceCodeBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntity_descriptor; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstanceForType() { - return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity build() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity buildPartial() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.shortDescription_ = shortDescription_; - if (longDescriptionBuilder_ == null) { - result.longDescription_ = longDescription_; - } else { - result.longDescription_ = longDescriptionBuilder_.build(); - } - if (sourceCodeBuilder_ == null) { - result.sourceCode_ = sourceCode_; - } else { - result.sourceCode_ = sourceCodeBuilder_.build(); - } - if (((bitField0_ & 0x00000010) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.tags_ = tags_; - result.bitField0_ = to_bitField0_; - 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.DescriptionEntityOuterClass.DescriptionEntity) { - return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity other) { - if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getShortDescription().isEmpty()) { - shortDescription_ = other.shortDescription_; - onChanged(); - } - if (other.hasLongDescription()) { - mergeLongDescription(other.getLongDescription()); - } - if (other.hasSourceCode()) { - mergeSourceCode(other.getSourceCode()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - 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.DescriptionEntityOuterClass.DescriptionEntity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - 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_; - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the description entity.
-       * 
- * - * .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_; - } - - private java.lang.Object shortDescription_ = ""; - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 2; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 2; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 2; - */ - public Builder setShortDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortDescription_ = value; - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 2; - */ - public Builder clearShortDescription() { - - shortDescription_ = getDefaultInstance().getShortDescription(); - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 2; - */ - public Builder setShortDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortDescription_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.DescriptionEntityOuterClass.Description longDescription_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder> longDescriptionBuilder_; - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public boolean hasLongDescription() { - return longDescriptionBuilder_ != null || longDescription_ != null; - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.Description getLongDescription() { - if (longDescriptionBuilder_ == null) { - return longDescription_ == null ? flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; - } else { - return longDescriptionBuilder_.getMessage(); - } - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public Builder setLongDescription(flyteidl.admin.DescriptionEntityOuterClass.Description value) { - if (longDescriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - longDescription_ = value; - onChanged(); - } else { - longDescriptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public Builder setLongDescription( - flyteidl.admin.DescriptionEntityOuterClass.Description.Builder builderForValue) { - if (longDescriptionBuilder_ == null) { - longDescription_ = builderForValue.build(); - onChanged(); - } else { - longDescriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public Builder mergeLongDescription(flyteidl.admin.DescriptionEntityOuterClass.Description value) { - if (longDescriptionBuilder_ == null) { - if (longDescription_ != null) { - longDescription_ = - flyteidl.admin.DescriptionEntityOuterClass.Description.newBuilder(longDescription_).mergeFrom(value).buildPartial(); - } else { - longDescription_ = value; - } - onChanged(); - } else { - longDescriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public Builder clearLongDescription() { - if (longDescriptionBuilder_ == null) { - longDescription_ = null; - onChanged(); - } else { - longDescription_ = null; - longDescriptionBuilder_ = null; - } - - return this; - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.Description.Builder getLongDescriptionBuilder() { - - onChanged(); - return getLongDescriptionFieldBuilder().getBuilder(); - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder getLongDescriptionOrBuilder() { - if (longDescriptionBuilder_ != null) { - return longDescriptionBuilder_.getMessageOrBuilder(); - } else { - return longDescription_ == null ? - flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance() : longDescription_; - } - } - /** - *
-       * Full user description with formatting preserved.
-       * 
- * - * .flyteidl.admin.Description long_description = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder> - getLongDescriptionFieldBuilder() { - if (longDescriptionBuilder_ == null) { - longDescriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.Description, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder>( - getLongDescription(), - getParentForChildren(), - isClean()); - longDescription_ = null; - } - return longDescriptionBuilder_; - } - - private flyteidl.admin.DescriptionEntityOuterClass.SourceCode sourceCode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder> sourceCodeBuilder_; - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public boolean hasSourceCode() { - return sourceCodeBuilder_ != null || sourceCode_ != null; - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getSourceCode() { - if (sourceCodeBuilder_ == null) { - return sourceCode_ == null ? flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; - } else { - return sourceCodeBuilder_.getMessage(); - } - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public Builder setSourceCode(flyteidl.admin.DescriptionEntityOuterClass.SourceCode value) { - if (sourceCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceCode_ = value; - onChanged(); - } else { - sourceCodeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public Builder setSourceCode( - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder builderForValue) { - if (sourceCodeBuilder_ == null) { - sourceCode_ = builderForValue.build(); - onChanged(); - } else { - sourceCodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public Builder mergeSourceCode(flyteidl.admin.DescriptionEntityOuterClass.SourceCode value) { - if (sourceCodeBuilder_ == null) { - if (sourceCode_ != null) { - sourceCode_ = - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.newBuilder(sourceCode_).mergeFrom(value).buildPartial(); - } else { - sourceCode_ = value; - } - onChanged(); - } else { - sourceCodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public Builder clearSourceCode() { - if (sourceCodeBuilder_ == null) { - sourceCode_ = null; - onChanged(); - } else { - sourceCode_ = null; - sourceCodeBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder getSourceCodeBuilder() { - - onChanged(); - return getSourceCodeFieldBuilder().getBuilder(); - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - public flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder getSourceCodeOrBuilder() { - if (sourceCodeBuilder_ != null) { - return sourceCodeBuilder_.getMessageOrBuilder(); - } else { - return sourceCode_ == null ? - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance() : sourceCode_; - } - } - /** - *
-       * Optional link to source code used to define this entity.
-       * 
- * - * .flyteidl.admin.SourceCode source_code = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder> - getSourceCodeFieldBuilder() { - if (sourceCodeBuilder_ == null) { - sourceCodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.SourceCode, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder, flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder>( - getSourceCode(), - getParentForChildren(), - isClean()); - sourceCode_ = null; - } - return sourceCodeBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * User-specified tags. These are arbitrary and can be used for searching
-       * filtering and discovering tasks.
-       * 
- * - * repeated string tags = 5; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - @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.DescriptionEntity) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntity) - private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity(); - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DescriptionEntity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DescriptionEntity(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.DescriptionEntityOuterClass.DescriptionEntity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DescriptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Description) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * long description - no more than 4KB
-     * 
- * - * string value = 1; - */ - java.lang.String getValue(); - /** - *
-     * long description - no more than 4KB
-     * 
- * - * string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-     * if the description sizes exceed some threshold we can offload the entire
-     * description proto altogether to an external data store, like S3 rather than store inline in the db
-     * 
- * - * string uri = 2; - */ - java.lang.String getUri(); - /** - *
-     * if the description sizes exceed some threshold we can offload the entire
-     * description proto altogether to an external data store, like S3 rather than store inline in the db
-     * 
- * - * string uri = 2; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - *
-     * Format of the long description
-     * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - int getFormatValue(); - /** - *
-     * Format of the long description
-     * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat(); - - /** - *
-     * Optional link to an icon for the entity
-     * 
- * - * string icon_link = 4; - */ - java.lang.String getIconLink(); - /** - *
-     * Optional link to an icon for the entity
-     * 
- * - * string icon_link = 4; - */ - com.google.protobuf.ByteString - getIconLinkBytes(); - - public flyteidl.admin.DescriptionEntityOuterClass.Description.ContentCase getContentCase(); - } - /** - *
-   * Full user description with formatting preserved. This can be rendered
-   * by clients, such as the console or command line tools with in-tact
-   * formatting.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Description} - */ - public static final class Description extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Description) - DescriptionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Description.newBuilder() to construct. - private Description(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Description() { - format_ = 0; - iconLink_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Description( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 1; - content_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - contentCase_ = 2; - content_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - iconLink_ = s; - 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.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.Description.class, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder.class); - } - - private int contentCase_ = 0; - private java.lang.Object content_; - public enum ContentCase - implements com.google.protobuf.Internal.EnumLite { - VALUE(1), - URI(2), - CONTENT_NOT_SET(0); - private final int value; - private ContentCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ContentCase valueOf(int value) { - return forNumber(value); - } - - public static ContentCase forNumber(int value) { - switch (value) { - case 1: return VALUE; - case 2: return URI; - case 0: return CONTENT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public static final int VALUE_FIELD_NUMBER = 1; - /** - *
-     * long description - no more than 4KB
-     * 
- * - * string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 1) { - content_ = s; - } - return s; - } - } - /** - *
-     * long description - no more than 4KB
-     * 
- * - * string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 1) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int URI_FIELD_NUMBER = 2; - /** - *
-     * if the description sizes exceed some threshold we can offload the entire
-     * description proto altogether to an external data store, like S3 rather than store inline in the db
-     * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } - } - /** - *
-     * if the description sizes exceed some threshold we can offload the entire
-     * description proto altogether to an external data store, like S3 rather than store inline in the db
-     * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 3; - private int format_; - /** - *
-     * Format of the long description
-     * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public int getFormatValue() { - return format_; - } - /** - *
-     * Format of the long description
-     * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat result = flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.valueOf(format_); - return result == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.UNRECOGNIZED : result; - } - - public static final int ICON_LINK_FIELD_NUMBER = 4; - private volatile java.lang.Object iconLink_; - /** - *
-     * Optional link to an icon for the entity
-     * 
- * - * string icon_link = 4; - */ - public java.lang.String getIconLink() { - java.lang.Object ref = iconLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconLink_ = s; - return s; - } - } - /** - *
-     * Optional link to an icon for the entity
-     * 
- * - * string icon_link = 4; - */ - public com.google.protobuf.ByteString - getIconLinkBytes() { - java.lang.Object ref = iconLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iconLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (contentCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, content_); - } - if (contentCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_); - } - if (format_ != flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.DESCRIPTION_FORMAT_UNKNOWN.getNumber()) { - output.writeEnum(3, format_); - } - if (!getIconLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, iconLink_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contentCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, content_); - } - if (contentCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_); - } - if (format_ != flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.DESCRIPTION_FORMAT_UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, format_); - } - if (!getIconLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, iconLink_); - } - 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.DescriptionEntityOuterClass.Description)) { - return super.equals(obj); - } - flyteidl.admin.DescriptionEntityOuterClass.Description other = (flyteidl.admin.DescriptionEntityOuterClass.Description) obj; - - if (format_ != other.format_) return false; - if (!getIconLink() - .equals(other.getIconLink())) return false; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 1: - if (!getValue() - .equals(other.getValue())) return false; - break; - case 2: - if (!getUri() - .equals(other.getUri())) 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(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + format_; - hash = (37 * hash) + ICON_LINK_FIELD_NUMBER; - hash = (53 * hash) + getIconLink().hashCode(); - switch (contentCase_) { - case 1: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 2: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description 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.DescriptionEntityOuterClass.Description parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description 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.DescriptionEntityOuterClass.Description parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description 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.DescriptionEntityOuterClass.Description parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.Description 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.DescriptionEntityOuterClass.Description 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; - } - /** - *
-     * Full user description with formatting preserved. This can be rendered
-     * by clients, such as the console or command line tools with in-tact
-     * formatting.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Description} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Description) - flyteidl.admin.DescriptionEntityOuterClass.DescriptionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.Description.class, flyteidl.admin.DescriptionEntityOuterClass.Description.Builder.class); - } - - // Construct using flyteidl.admin.DescriptionEntityOuterClass.Description.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(); - format_ = 0; - - iconLink_ = ""; - - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_Description_descriptor; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.Description getDefaultInstanceForType() { - return flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.Description build() { - flyteidl.admin.DescriptionEntityOuterClass.Description result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.Description buildPartial() { - flyteidl.admin.DescriptionEntityOuterClass.Description result = new flyteidl.admin.DescriptionEntityOuterClass.Description(this); - if (contentCase_ == 1) { - result.content_ = content_; - } - if (contentCase_ == 2) { - result.content_ = content_; - } - result.format_ = format_; - result.iconLink_ = iconLink_; - result.contentCase_ = contentCase_; - 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.DescriptionEntityOuterClass.Description) { - return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.Description)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.Description other) { - if (other == flyteidl.admin.DescriptionEntityOuterClass.Description.getDefaultInstance()) return this; - if (other.format_ != 0) { - setFormatValue(other.getFormatValue()); - } - if (!other.getIconLink().isEmpty()) { - iconLink_ = other.iconLink_; - onChanged(); - } - switch (other.getContentCase()) { - case VALUE: { - contentCase_ = 1; - content_ = other.content_; - onChanged(); - break; - } - case URI: { - contentCase_ = 2; - content_ = other.content_; - onChanged(); - break; - } - case CONTENT_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.DescriptionEntityOuterClass.Description parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.Description) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int contentCase_ = 0; - private java.lang.Object content_; - public ContentCase - getContentCase() { - return ContentCase.forNumber( - contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } - - - /** - *
-       * long description - no more than 4KB
-       * 
- * - * string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 1) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * long description - no more than 4KB
-       * 
- * - * string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 1) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 1) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * long description - no more than 4KB
-       * 
- * - * string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 1; - content_ = value; - onChanged(); - return this; - } - /** - *
-       * long description - no more than 4KB
-       * 
- * - * string value = 1; - */ - public Builder clearValue() { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - *
-       * long description - no more than 4KB
-       * 
- * - * string value = 1; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 1; - content_ = value; - onChanged(); - return this; - } - - /** - *
-       * if the description sizes exceed some threshold we can offload the entire
-       * description proto altogether to an external data store, like S3 rather than store inline in the db
-       * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (contentCase_ == 2) { - content_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * if the description sizes exceed some threshold we can offload the entire
-       * description proto altogether to an external data store, like S3 rather than store inline in the db
-       * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (contentCase_ == 2) { - ref = content_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (contentCase_ == 2) { - content_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * if the description sizes exceed some threshold we can offload the entire
-       * description proto altogether to an external data store, like S3 rather than store inline in the db
-       * 
- * - * string uri = 2; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - /** - *
-       * if the description sizes exceed some threshold we can offload the entire
-       * description proto altogether to an external data store, like S3 rather than store inline in the db
-       * 
- * - * string uri = 2; - */ - public Builder clearUri() { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - return this; - } - /** - *
-       * if the description sizes exceed some threshold we can offload the entire
-       * description proto altogether to an external data store, like S3 rather than store inline in the db
-       * 
- * - * string uri = 2; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contentCase_ = 2; - content_ = value; - onChanged(); - return this; - } - - private int format_ = 0; - /** - *
-       * Format of the long description
-       * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public int getFormatValue() { - return format_; - } - /** - *
-       * Format of the long description
-       * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public Builder setFormatValue(int value) { - format_ = value; - onChanged(); - return this; - } - /** - *
-       * Format of the long description
-       * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat result = flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.valueOf(format_); - return result == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat.UNRECOGNIZED : result; - } - /** - *
-       * Format of the long description
-       * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public Builder setFormat(flyteidl.admin.DescriptionEntityOuterClass.DescriptionFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Format of the long description
-       * 
- * - * .flyteidl.admin.DescriptionFormat format = 3; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private java.lang.Object iconLink_ = ""; - /** - *
-       * Optional link to an icon for the entity
-       * 
- * - * string icon_link = 4; - */ - public java.lang.String getIconLink() { - java.lang.Object ref = iconLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional link to an icon for the entity
-       * 
- * - * string icon_link = 4; - */ - public com.google.protobuf.ByteString - getIconLinkBytes() { - java.lang.Object ref = iconLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iconLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional link to an icon for the entity
-       * 
- * - * string icon_link = 4; - */ - public Builder setIconLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - iconLink_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional link to an icon for the entity
-       * 
- * - * string icon_link = 4; - */ - public Builder clearIconLink() { - - iconLink_ = getDefaultInstance().getIconLink(); - onChanged(); - return this; - } - /** - *
-       * Optional link to an icon for the entity
-       * 
- * - * string icon_link = 4; - */ - public Builder setIconLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - iconLink_ = value; - onChanged(); - return this; - } - @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.Description) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Description) - private static final flyteidl.admin.DescriptionEntityOuterClass.Description DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.Description(); - } - - public static flyteidl.admin.DescriptionEntityOuterClass.Description getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Description parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Description(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.DescriptionEntityOuterClass.Description getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SourceCodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SourceCode) - com.google.protobuf.MessageOrBuilder { - - /** - * string link = 1; - */ - java.lang.String getLink(); - /** - * string link = 1; - */ - com.google.protobuf.ByteString - getLinkBytes(); - } - /** - *
-   * Link to source code used to define this entity
-   * 
- * - * Protobuf type {@code flyteidl.admin.SourceCode} - */ - public static final class SourceCode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SourceCode) - SourceCodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use SourceCode.newBuilder() to construct. - private SourceCode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SourceCode() { - link_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SourceCode( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - link_ = s; - 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.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.class, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder.class); - } - - public static final int LINK_FIELD_NUMBER = 1; - private volatile java.lang.Object link_; - /** - * string link = 1; - */ - public java.lang.String getLink() { - java.lang.Object ref = link_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - link_ = s; - return s; - } - } - /** - * string link = 1; - */ - public com.google.protobuf.ByteString - getLinkBytes() { - java.lang.Object ref = link_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - link_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getLinkBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, link_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getLinkBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, link_); - } - 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.DescriptionEntityOuterClass.SourceCode)) { - return super.equals(obj); - } - flyteidl.admin.DescriptionEntityOuterClass.SourceCode other = (flyteidl.admin.DescriptionEntityOuterClass.SourceCode) obj; - - if (!getLink() - .equals(other.getLink())) 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(); - hash = (37 * hash) + LINK_FIELD_NUMBER; - hash = (53 * hash) + getLink().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode 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.DescriptionEntityOuterClass.SourceCode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode 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.DescriptionEntityOuterClass.SourceCode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode 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.DescriptionEntityOuterClass.SourceCode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode 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.DescriptionEntityOuterClass.SourceCode 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; - } - /** - *
-     * Link to source code used to define this entity
-     * 
- * - * Protobuf type {@code flyteidl.admin.SourceCode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SourceCode) - flyteidl.admin.DescriptionEntityOuterClass.SourceCodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.SourceCode.class, flyteidl.admin.DescriptionEntityOuterClass.SourceCode.Builder.class); - } - - // Construct using flyteidl.admin.DescriptionEntityOuterClass.SourceCode.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(); - link_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_SourceCode_descriptor; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode getDefaultInstanceForType() { - return flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode build() { - flyteidl.admin.DescriptionEntityOuterClass.SourceCode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.SourceCode buildPartial() { - flyteidl.admin.DescriptionEntityOuterClass.SourceCode result = new flyteidl.admin.DescriptionEntityOuterClass.SourceCode(this); - result.link_ = link_; - 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.DescriptionEntityOuterClass.SourceCode) { - return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.SourceCode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.SourceCode other) { - if (other == flyteidl.admin.DescriptionEntityOuterClass.SourceCode.getDefaultInstance()) return this; - if (!other.getLink().isEmpty()) { - link_ = other.link_; - onChanged(); - } - 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.DescriptionEntityOuterClass.SourceCode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.SourceCode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object link_ = ""; - /** - * string link = 1; - */ - public java.lang.String getLink() { - java.lang.Object ref = link_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - link_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string link = 1; - */ - public com.google.protobuf.ByteString - getLinkBytes() { - java.lang.Object ref = link_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - link_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string link = 1; - */ - public Builder setLink( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - link_ = value; - onChanged(); - return this; - } - /** - * string link = 1; - */ - public Builder clearLink() { - - link_ = getDefaultInstance().getLink(); - onChanged(); - return this; - } - /** - * string link = 1; - */ - public Builder setLinkBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - link_ = value; - onChanged(); - return this; - } - @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.SourceCode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SourceCode) - private static final flyteidl.admin.DescriptionEntityOuterClass.SourceCode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.SourceCode(); - } - - public static flyteidl.admin.DescriptionEntityOuterClass.SourceCode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SourceCode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SourceCode(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.DescriptionEntityOuterClass.SourceCode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DescriptionEntityListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntityList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - java.util.List - getDescriptionEntitiesList(); - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index); - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - int getDescriptionEntitiesCount(); - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - java.util.List - getDescriptionEntitiesOrBuilderList(); - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of DescriptionEntities returned from the admin.
-   * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntityList} - */ - public static final class DescriptionEntityList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntityList) - DescriptionEntityListOrBuilder { - private static final long serialVersionUID = 0L; - // Use DescriptionEntityList.newBuilder() to construct. - private DescriptionEntityList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DescriptionEntityList() { - descriptionEntities_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DescriptionEntityList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - descriptionEntities_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - descriptionEntities_.add( - input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - descriptionEntities_ = java.util.Collections.unmodifiableList(descriptionEntities_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTIONENTITIES_FIELD_NUMBER = 1; - private java.util.List descriptionEntities_; - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public java.util.List getDescriptionEntitiesList() { - return descriptionEntities_; - } - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public java.util.List - getDescriptionEntitiesOrBuilderList() { - return descriptionEntities_; - } - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public int getDescriptionEntitiesCount() { - return descriptionEntities_.size(); - } - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index) { - return descriptionEntities_.get(index); - } - /** - *
-     * A list of DescriptionEntities returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( - int index) { - return descriptionEntities_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < descriptionEntities_.size(); i++) { - output.writeMessage(1, descriptionEntities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < descriptionEntities_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, descriptionEntities_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.DescriptionEntityOuterClass.DescriptionEntityList)) { - return super.equals(obj); - } - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList) obj; - - if (!getDescriptionEntitiesList() - .equals(other.getDescriptionEntitiesList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getDescriptionEntitiesCount() > 0) { - hash = (37 * hash) + DESCRIPTIONENTITIES_FIELD_NUMBER; - hash = (53 * hash) + getDescriptionEntitiesList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList 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.DescriptionEntityOuterClass.DescriptionEntityList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList 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.DescriptionEntityOuterClass.DescriptionEntityList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList 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.DescriptionEntityOuterClass.DescriptionEntityList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList 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.DescriptionEntityOuterClass.DescriptionEntityList 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; - } - /** - *
-     * Represents a list of DescriptionEntities returned from the admin.
-     * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntityList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntityList) - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.Builder.class); - } - - // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDescriptionEntitiesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (descriptionEntitiesBuilder_ == null) { - descriptionEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - descriptionEntitiesBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstanceForType() { - return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList build() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList buildPartial() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (descriptionEntitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - descriptionEntities_ = java.util.Collections.unmodifiableList(descriptionEntities_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.descriptionEntities_ = descriptionEntities_; - } else { - result.descriptionEntities_ = descriptionEntitiesBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.DescriptionEntityOuterClass.DescriptionEntityList) { - return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList other) { - if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList.getDefaultInstance()) return this; - if (descriptionEntitiesBuilder_ == null) { - if (!other.descriptionEntities_.isEmpty()) { - if (descriptionEntities_.isEmpty()) { - descriptionEntities_ = other.descriptionEntities_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.addAll(other.descriptionEntities_); - } - onChanged(); - } - } else { - if (!other.descriptionEntities_.isEmpty()) { - if (descriptionEntitiesBuilder_.isEmpty()) { - descriptionEntitiesBuilder_.dispose(); - descriptionEntitiesBuilder_ = null; - descriptionEntities_ = other.descriptionEntities_; - bitField0_ = (bitField0_ & ~0x00000001); - descriptionEntitiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDescriptionEntitiesFieldBuilder() : null; - } else { - descriptionEntitiesBuilder_.addAllMessages(other.descriptionEntities_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.DescriptionEntityOuterClass.DescriptionEntityList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List descriptionEntities_ = - java.util.Collections.emptyList(); - private void ensureDescriptionEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - descriptionEntities_ = new java.util.ArrayList(descriptionEntities_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionEntitiesBuilder_; - - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public java.util.List getDescriptionEntitiesList() { - if (descriptionEntitiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(descriptionEntities_); - } else { - return descriptionEntitiesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public int getDescriptionEntitiesCount() { - if (descriptionEntitiesBuilder_ == null) { - return descriptionEntities_.size(); - } else { - return descriptionEntitiesBuilder_.getCount(); - } - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescriptionEntities(int index) { - if (descriptionEntitiesBuilder_ == null) { - return descriptionEntities_.get(index); - } else { - return descriptionEntitiesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder setDescriptionEntities( - int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionEntitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.set(index, value); - onChanged(); - } else { - descriptionEntitiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder setDescriptionEntities( - int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { - if (descriptionEntitiesBuilder_ == null) { - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.set(index, builderForValue.build()); - onChanged(); - } else { - descriptionEntitiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder addDescriptionEntities(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionEntitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.add(value); - onChanged(); - } else { - descriptionEntitiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder addDescriptionEntities( - int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionEntitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.add(index, value); - onChanged(); - } else { - descriptionEntitiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder addDescriptionEntities( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { - if (descriptionEntitiesBuilder_ == null) { - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.add(builderForValue.build()); - onChanged(); - } else { - descriptionEntitiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder addDescriptionEntities( - int index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { - if (descriptionEntitiesBuilder_ == null) { - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.add(index, builderForValue.build()); - onChanged(); - } else { - descriptionEntitiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder addAllDescriptionEntities( - java.lang.Iterable values) { - if (descriptionEntitiesBuilder_ == null) { - ensureDescriptionEntitiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, descriptionEntities_); - onChanged(); - } else { - descriptionEntitiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder clearDescriptionEntities() { - if (descriptionEntitiesBuilder_ == null) { - descriptionEntities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - descriptionEntitiesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public Builder removeDescriptionEntities(int index) { - if (descriptionEntitiesBuilder_ == null) { - ensureDescriptionEntitiesIsMutable(); - descriptionEntities_.remove(index); - onChanged(); - } else { - descriptionEntitiesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionEntitiesBuilder( - int index) { - return getDescriptionEntitiesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionEntitiesOrBuilder( - int index) { - if (descriptionEntitiesBuilder_ == null) { - return descriptionEntities_.get(index); } else { - return descriptionEntitiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public java.util.List - getDescriptionEntitiesOrBuilderList() { - if (descriptionEntitiesBuilder_ != null) { - return descriptionEntitiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(descriptionEntities_); - } - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder addDescriptionEntitiesBuilder() { - return getDescriptionEntitiesFieldBuilder().addBuilder( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()); - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder addDescriptionEntitiesBuilder( - int index) { - return getDescriptionEntitiesFieldBuilder().addBuilder( - index, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance()); - } - /** - *
-       * A list of DescriptionEntities returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.DescriptionEntity descriptionEntities = 1; - */ - public java.util.List - getDescriptionEntitiesBuilderList() { - return getDescriptionEntitiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> - getDescriptionEntitiesFieldBuilder() { - if (descriptionEntitiesBuilder_ == null) { - descriptionEntitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( - descriptionEntities_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - descriptionEntities_ = null; - } - return descriptionEntitiesBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.DescriptionEntityList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityList) - private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList(); - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DescriptionEntityList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DescriptionEntityList(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.DescriptionEntityOuterClass.DescriptionEntityList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DescriptionEntityListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DescriptionEntityListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - boolean hasId(); - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 5; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 5; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of DescriptionEntities.
-   * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntityListRequest} - */ - public static final class DescriptionEntityListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DescriptionEntityListRequest) - DescriptionEntityListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DescriptionEntityListRequest.newBuilder() to construct. - private DescriptionEntityListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DescriptionEntityListRequest() { - resourceType_ = 0; - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DescriptionEntityListRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - flyteidl.admin.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int ID_FIELD_NUMBER = 2; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier for the description entity.
-     * +required
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 5; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 5; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 5; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (id_ != null) { - output.writeMessage(2, getId()); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, filters_); - } - if (sortBy_ != null) { - output.writeMessage(6, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (id_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSortBy()); - } - 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.DescriptionEntityOuterClass.DescriptionEntityListRequest)) { - return super.equals(obj); - } - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest other = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest) obj; - - if (resourceType_ != other.resourceType_) return false; - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest 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.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest 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.DescriptionEntityOuterClass.DescriptionEntityListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest 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.DescriptionEntityOuterClass.DescriptionEntityListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest 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.DescriptionEntityOuterClass.DescriptionEntityListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of DescriptionEntities.
-     * See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.DescriptionEntityListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DescriptionEntityListRequest) - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.class, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.Builder.class); - } - - // Construct using flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.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(); - resourceType_ = 0; - - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.DescriptionEntityOuterClass.internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstanceForType() { - return flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest build() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest buildPartial() { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest result = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest(this); - result.resourceType_ = resourceType_; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.DescriptionEntityOuterClass.DescriptionEntityListRequest) { - return mergeFrom((flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest other) { - if (other == flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.DescriptionEntityOuterClass.DescriptionEntityListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier for the description entity.
-       * +required
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 5; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 5; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 5; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 5; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 5; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.DescriptionEntityListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DescriptionEntityListRequest) - private static final flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest(); - } - - public static flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DescriptionEntityListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DescriptionEntityListRequest(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.DescriptionEntityOuterClass.DescriptionEntityListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DescriptionEntity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Description_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Description_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SourceCode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SourceCode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DescriptionEntityList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/admin/description_entity.prot" + - "o\022\016flyteidl.admin\032\036flyteidl/core/identif" + - "ier.proto\032\033flyteidl/admin/common.proto\"\313" + - "\001\n\021DescriptionEntity\022%\n\002id\030\001 \001(\0132\031.flyte" + - "idl.core.Identifier\022\031\n\021short_description" + - "\030\002 \001(\t\0225\n\020long_description\030\003 \001(\0132\033.flyte" + - "idl.admin.Description\022/\n\013source_code\030\004 \001" + - "(\0132\032.flyteidl.admin.SourceCode\022\014\n\004tags\030\005" + - " \003(\t\"~\n\013Description\022\017\n\005value\030\001 \001(\tH\000\022\r\n\003" + - "uri\030\002 \001(\tH\000\0221\n\006format\030\003 \001(\0162!.flyteidl.a" + - "dmin.DescriptionFormat\022\021\n\ticon_link\030\004 \001(" + - "\tB\t\n\007content\"\032\n\nSourceCode\022\014\n\004link\030\001 \001(\t" + - "\"f\n\025DescriptionEntityList\022>\n\023description" + - "Entities\030\001 \003(\0132!.flyteidl.admin.Descript" + - "ionEntity\022\r\n\005token\030\002 \001(\t\"\333\001\n\034Description" + - "EntityListRequest\0222\n\rresource_type\030\001 \001(\016" + - "2\033.flyteidl.core.ResourceType\0221\n\002id\030\002 \001(" + - "\0132%.flyteidl.admin.NamedEntityIdentifier" + - "\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022\017\n\007filter" + - "s\030\005 \001(\t\022%\n\007sort_by\030\006 \001(\0132\024.flyteidl.admi" + - "n.Sort*\215\001\n\021DescriptionFormat\022\036\n\032DESCRIPT" + - "ION_FORMAT_UNKNOWN\020\000\022\037\n\033DESCRIPTION_FORM" + - "AT_MARKDOWN\020\001\022\033\n\027DESCRIPTION_FORMAT_HTML" + - "\020\002\022\032\n\026DESCRIPTION_FORMAT_RST\020\003B=Z;github" + - ".com/flyteorg/flyte/flyteidl/gen/pb-go/f" + - "lyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_DescriptionEntity_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_DescriptionEntity_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DescriptionEntity_descriptor, - new java.lang.String[] { "Id", "ShortDescription", "LongDescription", "SourceCode", "Tags", }); - internal_static_flyteidl_admin_Description_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Description_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Description_descriptor, - new java.lang.String[] { "Value", "Uri", "Format", "IconLink", "Content", }); - internal_static_flyteidl_admin_SourceCode_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_SourceCode_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SourceCode_descriptor, - new java.lang.String[] { "Link", }); - internal_static_flyteidl_admin_DescriptionEntityList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_DescriptionEntityList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DescriptionEntityList_descriptor, - new java.lang.String[] { "DescriptionEntities", "Token", }); - internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_DescriptionEntityListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DescriptionEntityListRequest_descriptor, - new java.lang.String[] { "ResourceType", "Id", "Limit", "Token", "Filters", "SortBy", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Event.java b/flyteidl/gen/pb-java/flyteidl/admin/Event.java deleted file mode 100644 index d698a0538f..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/Event.java +++ /dev/null @@ -1,6086 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/event.proto - -package flyteidl.admin; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EventErrorAlreadyInTerminalStateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorAlreadyInTerminalState) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required
-     * 
- * - * string current_phase = 1; - */ - java.lang.String getCurrentPhase(); - /** - *
-     * +required
-     * 
- * - * string current_phase = 1; - */ - com.google.protobuf.ByteString - getCurrentPhaseBytes(); - } - /** - *
-   * Indicates that a sent event was not used to update execution state due to
-   * the referenced execution already being terminated (and therefore ineligible
-   * for further state transitions).
-   * 
- * - * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class EventErrorAlreadyInTerminalState extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - EventErrorAlreadyInTerminalStateOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventErrorAlreadyInTerminalState.newBuilder() to construct. - private EventErrorAlreadyInTerminalState(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventErrorAlreadyInTerminalState() { - currentPhase_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventErrorAlreadyInTerminalState( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - currentPhase_ = s; - 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.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - public static final int CURRENT_PHASE_FIELD_NUMBER = 1; - private volatile java.lang.Object currentPhase_; - /** - *
-     * +required
-     * 
- * - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentPhase_ = s; - return s; - } - } - /** - *
-     * +required
-     * 
- * - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getCurrentPhaseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, currentPhase_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCurrentPhaseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, currentPhase_); - } - 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.Event.EventErrorAlreadyInTerminalState)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventErrorAlreadyInTerminalState other = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) obj; - - if (!getCurrentPhase() - .equals(other.getCurrentPhase())) 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(); - hash = (37 * hash) + CURRENT_PHASE_FIELD_NUMBER; - hash = (53 * hash) + getCurrentPhase().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState 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.Event.EventErrorAlreadyInTerminalState 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; - } - /** - *
-     * Indicates that a sent event was not used to update execution state due to
-     * the referenced execution already being terminated (and therefore ineligible
-     * for further state transitions).
-     * 
- * - * Protobuf type {@code flyteidl.admin.EventErrorAlreadyInTerminalState} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorAlreadyInTerminalState) - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.class, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventErrorAlreadyInTerminalState.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(); - currentPhase_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState build() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState buildPartial() { - flyteidl.admin.Event.EventErrorAlreadyInTerminalState result = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(this); - result.currentPhase_ = currentPhase_; - 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.Event.EventErrorAlreadyInTerminalState) { - return mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventErrorAlreadyInTerminalState other) { - if (other == flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) return this; - if (!other.getCurrentPhase().isEmpty()) { - currentPhase_ = other.currentPhase_; - onChanged(); - } - 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.Event.EventErrorAlreadyInTerminalState parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object currentPhase_ = ""; - /** - *
-       * +required
-       * 
- * - * string current_phase = 1; - */ - public java.lang.String getCurrentPhase() { - java.lang.Object ref = currentPhase_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currentPhase_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * +required
-       * 
- * - * string current_phase = 1; - */ - public com.google.protobuf.ByteString - getCurrentPhaseBytes() { - java.lang.Object ref = currentPhase_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currentPhase_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * +required
-       * 
- * - * string current_phase = 1; - */ - public Builder setCurrentPhase( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - currentPhase_ = value; - onChanged(); - return this; - } - /** - *
-       * +required
-       * 
- * - * string current_phase = 1; - */ - public Builder clearCurrentPhase() { - - currentPhase_ = getDefaultInstance().getCurrentPhase(); - onChanged(); - return this; - } - /** - *
-       * +required
-       * 
- * - * string current_phase = 1; - */ - public Builder setCurrentPhaseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - currentPhase_ = value; - onChanged(); - return this; - } - @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.EventErrorAlreadyInTerminalState) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorAlreadyInTerminalState) - private static final flyteidl.admin.Event.EventErrorAlreadyInTerminalState DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorAlreadyInTerminalState(); - } - - public static flyteidl.admin.Event.EventErrorAlreadyInTerminalState getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventErrorAlreadyInTerminalState parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventErrorAlreadyInTerminalState(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.Event.EventErrorAlreadyInTerminalState getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EventErrorIncompatibleClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventErrorIncompatibleCluster) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The cluster which has been recorded as processing the execution.
-     * +required
-     * 
- * - * string cluster = 1; - */ - java.lang.String getCluster(); - /** - *
-     * The cluster which has been recorded as processing the execution.
-     * +required
-     * 
- * - * string cluster = 1; - */ - com.google.protobuf.ByteString - getClusterBytes(); - } - /** - *
-   * Indicates an event was rejected because it came from a different cluster than 
-   * is on record as running the execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EventErrorIncompatibleCluster} - */ - public static final class EventErrorIncompatibleCluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventErrorIncompatibleCluster) - EventErrorIncompatibleClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventErrorIncompatibleCluster.newBuilder() to construct. - private EventErrorIncompatibleCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventErrorIncompatibleCluster() { - cluster_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventErrorIncompatibleCluster( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - cluster_ = s; - 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.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorIncompatibleCluster.class, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder.class); - } - - public static final int CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object cluster_; - /** - *
-     * The cluster which has been recorded as processing the execution.
-     * +required
-     * 
- * - * string cluster = 1; - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } - } - /** - *
-     * The cluster which has been recorded as processing the execution.
-     * +required
-     * 
- * - * string cluster = 1; - */ - public com.google.protobuf.ByteString - getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cluster_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cluster_); - } - 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.Event.EventErrorIncompatibleCluster)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventErrorIncompatibleCluster other = (flyteidl.admin.Event.EventErrorIncompatibleCluster) obj; - - if (!getCluster() - .equals(other.getCluster())) 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(); - hash = (37 * hash) + CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getCluster().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster 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.Event.EventErrorIncompatibleCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster 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.Event.EventErrorIncompatibleCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster 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.Event.EventErrorIncompatibleCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventErrorIncompatibleCluster 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.Event.EventErrorIncompatibleCluster 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; - } - /** - *
-     * Indicates an event was rejected because it came from a different cluster than 
-     * is on record as running the execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EventErrorIncompatibleCluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventErrorIncompatibleCluster) - flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventErrorIncompatibleCluster.class, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventErrorIncompatibleCluster.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(); - cluster_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorIncompatibleCluster getDefaultInstanceForType() { - return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorIncompatibleCluster build() { - flyteidl.admin.Event.EventErrorIncompatibleCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventErrorIncompatibleCluster buildPartial() { - flyteidl.admin.Event.EventErrorIncompatibleCluster result = new flyteidl.admin.Event.EventErrorIncompatibleCluster(this); - result.cluster_ = cluster_; - 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.Event.EventErrorIncompatibleCluster) { - return mergeFrom((flyteidl.admin.Event.EventErrorIncompatibleCluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventErrorIncompatibleCluster other) { - if (other == flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance()) return this; - if (!other.getCluster().isEmpty()) { - cluster_ = other.cluster_; - onChanged(); - } - 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.Event.EventErrorIncompatibleCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventErrorIncompatibleCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cluster_ = ""; - /** - *
-       * The cluster which has been recorded as processing the execution.
-       * +required
-       * 
- * - * string cluster = 1; - */ - public java.lang.String getCluster() { - java.lang.Object ref = cluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The cluster which has been recorded as processing the execution.
-       * +required
-       * 
- * - * string cluster = 1; - */ - public com.google.protobuf.ByteString - getClusterBytes() { - java.lang.Object ref = cluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The cluster which has been recorded as processing the execution.
-       * +required
-       * 
- * - * string cluster = 1; - */ - public Builder setCluster( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cluster_ = value; - onChanged(); - return this; - } - /** - *
-       * The cluster which has been recorded as processing the execution.
-       * +required
-       * 
- * - * string cluster = 1; - */ - public Builder clearCluster() { - - cluster_ = getDefaultInstance().getCluster(); - onChanged(); - return this; - } - /** - *
-       * The cluster which has been recorded as processing the execution.
-       * +required
-       * 
- * - * string cluster = 1; - */ - public Builder setClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cluster_ = value; - onChanged(); - return this; - } - @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.EventErrorIncompatibleCluster) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventErrorIncompatibleCluster) - private static final flyteidl.admin.Event.EventErrorIncompatibleCluster DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventErrorIncompatibleCluster(); - } - - public static flyteidl.admin.Event.EventErrorIncompatibleCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventErrorIncompatibleCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventErrorIncompatibleCluster(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.Event.EventErrorIncompatibleCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EventFailureReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EventFailureReason) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - boolean hasAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState(); - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder(); - - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - boolean hasIncompatibleCluster(); - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster(); - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder(); - - public flyteidl.admin.Event.EventFailureReason.ReasonCase getReasonCase(); - } - /** - *
-   * Indicates why a sent event was not used to update execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EventFailureReason} - */ - public static final class EventFailureReason extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EventFailureReason) - EventFailureReasonOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventFailureReason.newBuilder() to construct. - private EventFailureReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventFailureReason() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventFailureReason( - 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.Event.EventErrorAlreadyInTerminalState.Builder subBuilder = null; - if (reasonCase_ == 1) { - subBuilder = ((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_).toBuilder(); - } - reason_ = - input.readMessage(flyteidl.admin.Event.EventErrorAlreadyInTerminalState.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_); - reason_ = subBuilder.buildPartial(); - } - reasonCase_ = 1; - break; - } - case 18: { - flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder subBuilder = null; - if (reasonCase_ == 2) { - subBuilder = ((flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_).toBuilder(); - } - reason_ = - input.readMessage(flyteidl.admin.Event.EventErrorIncompatibleCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.Event.EventErrorIncompatibleCluster) 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.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - private int reasonCase_ = 0; - private java.lang.Object reason_; - public enum ReasonCase - implements com.google.protobuf.Internal.EnumLite { - ALREADY_IN_TERMINAL_STATE(1), - INCOMPATIBLE_CLUSTER(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 ALREADY_IN_TERMINAL_STATE; - case 2: return INCOMPATIBLE_CLUSTER; - 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 ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - - public static final int INCOMPATIBLE_CLUSTER_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public boolean hasIncompatibleCluster() { - return reasonCase_ == 2; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster() { - if (reasonCase_ == 2) { - return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; - } - return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder() { - if (reasonCase_ == 2) { - return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; - } - return flyteidl.admin.Event.EventErrorIncompatibleCluster.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.Event.EventErrorAlreadyInTerminalState) reason_); - } - if (reasonCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.Event.EventErrorIncompatibleCluster) 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.Event.EventErrorAlreadyInTerminalState) reason_); - } - if (reasonCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.Event.EventErrorIncompatibleCluster) 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.Event.EventFailureReason)) { - return super.equals(obj); - } - flyteidl.admin.Event.EventFailureReason other = (flyteidl.admin.Event.EventFailureReason) obj; - - if (!getReasonCase().equals(other.getReasonCase())) return false; - switch (reasonCase_) { - case 1: - if (!getAlreadyInTerminalState() - .equals(other.getAlreadyInTerminalState())) return false; - break; - case 2: - if (!getIncompatibleCluster() - .equals(other.getIncompatibleCluster())) 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) + ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER; - hash = (53 * hash) + getAlreadyInTerminalState().hashCode(); - break; - case 2: - hash = (37 * hash) + INCOMPATIBLE_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getIncompatibleCluster().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.EventFailureReason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.EventFailureReason 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.Event.EventFailureReason 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; - } - /** - *
-     * Indicates why a sent event was not used to update execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EventFailureReason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EventFailureReason) - flyteidl.admin.Event.EventFailureReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.EventFailureReason.class, flyteidl.admin.Event.EventFailureReason.Builder.class); - } - - // Construct using flyteidl.admin.Event.EventFailureReason.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.Event.internal_static_flyteidl_admin_EventFailureReason_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason getDefaultInstanceForType() { - return flyteidl.admin.Event.EventFailureReason.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason build() { - flyteidl.admin.Event.EventFailureReason result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.EventFailureReason buildPartial() { - flyteidl.admin.Event.EventFailureReason result = new flyteidl.admin.Event.EventFailureReason(this); - if (reasonCase_ == 1) { - if (alreadyInTerminalStateBuilder_ == null) { - result.reason_ = reason_; - } else { - result.reason_ = alreadyInTerminalStateBuilder_.build(); - } - } - if (reasonCase_ == 2) { - if (incompatibleClusterBuilder_ == null) { - result.reason_ = reason_; - } else { - result.reason_ = incompatibleClusterBuilder_.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.Event.EventFailureReason) { - return mergeFrom((flyteidl.admin.Event.EventFailureReason)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.EventFailureReason other) { - if (other == flyteidl.admin.Event.EventFailureReason.getDefaultInstance()) return this; - switch (other.getReasonCase()) { - case ALREADY_IN_TERMINAL_STATE: { - mergeAlreadyInTerminalState(other.getAlreadyInTerminalState()); - break; - } - case INCOMPATIBLE_CLUSTER: { - mergeIncompatibleCluster(other.getIncompatibleCluster()); - 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.Event.EventFailureReason parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.EventFailureReason) 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.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> alreadyInTerminalStateBuilder_; - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public boolean hasAlreadyInTerminalState() { - return reasonCase_ == 1; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState getAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } else { - if (reasonCase_ == 1) { - return alreadyInTerminalStateBuilder_.getMessage(); - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reason_ = value; - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder setAlreadyInTerminalState( - flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder builderForValue) { - if (alreadyInTerminalStateBuilder_ == null) { - reason_ = builderForValue.build(); - onChanged(); - } else { - alreadyInTerminalStateBuilder_.setMessage(builderForValue.build()); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder mergeAlreadyInTerminalState(flyteidl.admin.Event.EventErrorAlreadyInTerminalState value) { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1 && - reason_ != flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance()) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.newBuilder((flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_) - .mergeFrom(value).buildPartial(); - } else { - reason_ = value; - } - onChanged(); - } else { - if (reasonCase_ == 1) { - alreadyInTerminalStateBuilder_.mergeFrom(value); - } - alreadyInTerminalStateBuilder_.setMessage(value); - } - reasonCase_ = 1; - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public Builder clearAlreadyInTerminalState() { - if (alreadyInTerminalStateBuilder_ == null) { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - onChanged(); - } - } else { - if (reasonCase_ == 1) { - reasonCase_ = 0; - reason_ = null; - } - alreadyInTerminalStateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder getAlreadyInTerminalStateBuilder() { - return getAlreadyInTerminalStateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - public flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder getAlreadyInTerminalStateOrBuilder() { - if ((reasonCase_ == 1) && (alreadyInTerminalStateBuilder_ != null)) { - return alreadyInTerminalStateBuilder_.getMessageOrBuilder(); - } else { - if (reasonCase_ == 1) { - return (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_; - } - return flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorAlreadyInTerminalState already_in_terminal_state = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder> - getAlreadyInTerminalStateFieldBuilder() { - if (alreadyInTerminalStateBuilder_ == null) { - if (!(reasonCase_ == 1)) { - reason_ = flyteidl.admin.Event.EventErrorAlreadyInTerminalState.getDefaultInstance(); - } - alreadyInTerminalStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorAlreadyInTerminalState, flyteidl.admin.Event.EventErrorAlreadyInTerminalState.Builder, flyteidl.admin.Event.EventErrorAlreadyInTerminalStateOrBuilder>( - (flyteidl.admin.Event.EventErrorAlreadyInTerminalState) reason_, - getParentForChildren(), - isClean()); - reason_ = null; - } - reasonCase_ = 1; - onChanged();; - return alreadyInTerminalStateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder> incompatibleClusterBuilder_; - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public boolean hasIncompatibleCluster() { - return reasonCase_ == 2; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public flyteidl.admin.Event.EventErrorIncompatibleCluster getIncompatibleCluster() { - if (incompatibleClusterBuilder_ == null) { - if (reasonCase_ == 2) { - return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; - } - return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } else { - if (reasonCase_ == 2) { - return incompatibleClusterBuilder_.getMessage(); - } - return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public Builder setIncompatibleCluster(flyteidl.admin.Event.EventErrorIncompatibleCluster value) { - if (incompatibleClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reason_ = value; - onChanged(); - } else { - incompatibleClusterBuilder_.setMessage(value); - } - reasonCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public Builder setIncompatibleCluster( - flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder builderForValue) { - if (incompatibleClusterBuilder_ == null) { - reason_ = builderForValue.build(); - onChanged(); - } else { - incompatibleClusterBuilder_.setMessage(builderForValue.build()); - } - reasonCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public Builder mergeIncompatibleCluster(flyteidl.admin.Event.EventErrorIncompatibleCluster value) { - if (incompatibleClusterBuilder_ == null) { - if (reasonCase_ == 2 && - reason_ != flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance()) { - reason_ = flyteidl.admin.Event.EventErrorIncompatibleCluster.newBuilder((flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_) - .mergeFrom(value).buildPartial(); - } else { - reason_ = value; - } - onChanged(); - } else { - if (reasonCase_ == 2) { - incompatibleClusterBuilder_.mergeFrom(value); - } - incompatibleClusterBuilder_.setMessage(value); - } - reasonCase_ = 2; - return this; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public Builder clearIncompatibleCluster() { - if (incompatibleClusterBuilder_ == null) { - if (reasonCase_ == 2) { - reasonCase_ = 0; - reason_ = null; - onChanged(); - } - } else { - if (reasonCase_ == 2) { - reasonCase_ = 0; - reason_ = null; - } - incompatibleClusterBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder getIncompatibleClusterBuilder() { - return getIncompatibleClusterFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - public flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder getIncompatibleClusterOrBuilder() { - if ((reasonCase_ == 2) && (incompatibleClusterBuilder_ != null)) { - return incompatibleClusterBuilder_.getMessageOrBuilder(); - } else { - if (reasonCase_ == 2) { - return (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_; - } - return flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.EventErrorIncompatibleCluster incompatible_cluster = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder> - getIncompatibleClusterFieldBuilder() { - if (incompatibleClusterBuilder_ == null) { - if (!(reasonCase_ == 2)) { - reason_ = flyteidl.admin.Event.EventErrorIncompatibleCluster.getDefaultInstance(); - } - incompatibleClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Event.EventErrorIncompatibleCluster, flyteidl.admin.Event.EventErrorIncompatibleCluster.Builder, flyteidl.admin.Event.EventErrorIncompatibleClusterOrBuilder>( - (flyteidl.admin.Event.EventErrorIncompatibleCluster) reason_, - getParentForChildren(), - isClean()); - reason_ = null; - } - reasonCase_ = 2; - onChanged();; - return incompatibleClusterBuilder_; - } - @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.EventFailureReason) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EventFailureReason) - private static final flyteidl.admin.Event.EventFailureReason DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.EventFailureReason(); - } - - public static flyteidl.admin.Event.EventFailureReason getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventFailureReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventFailureReason(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.Event.EventFailureReason getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a workflow execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class WorkflowExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventRequest) - WorkflowExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventRequest.newBuilder() to construct. - private WorkflowExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.WorkflowExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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.Event.WorkflowExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventRequest other = (flyteidl.admin.Event.WorkflowExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventRequest 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.Event.WorkflowExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a workflow execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventRequest) - flyteidl.admin.Event.WorkflowExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventRequest.class, flyteidl.admin.Event.WorkflowExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest build() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventRequest buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventRequest result = new flyteidl.admin.Event.WorkflowExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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.Event.WorkflowExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventRequest other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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.Event.WorkflowExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.WorkflowExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.WorkflowExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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.WorkflowExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventRequest) - private static final flyteidl.admin.Event.WorkflowExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventRequest(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventRequest(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.Event.WorkflowExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class WorkflowExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionEventResponse) - WorkflowExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEventResponse.newBuilder() to construct. - private WorkflowExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEventResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.Event.WorkflowExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.WorkflowExecutionEventResponse other = (flyteidl.admin.Event.WorkflowExecutionEventResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.WorkflowExecutionEventResponse 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.Event.WorkflowExecutionEventResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionEventResponse) - flyteidl.admin.Event.WorkflowExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.WorkflowExecutionEventResponse.class, flyteidl.admin.Event.WorkflowExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.WorkflowExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse build() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.WorkflowExecutionEventResponse buildPartial() { - flyteidl.admin.Event.WorkflowExecutionEventResponse result = new flyteidl.admin.Event.WorkflowExecutionEventResponse(this); - 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.Event.WorkflowExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.WorkflowExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.WorkflowExecutionEventResponse other) { - if (other == flyteidl.admin.Event.WorkflowExecutionEventResponse.getDefaultInstance()) return this; - 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.Event.WorkflowExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.WorkflowExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.WorkflowExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionEventResponse) - private static final flyteidl.admin.Event.WorkflowExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.WorkflowExecutionEventResponse(); - } - - public static flyteidl.admin.Event.WorkflowExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEventResponse(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.Event.WorkflowExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a node execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class NodeExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventRequest) - NodeExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventRequest.newBuilder() to construct. - private NodeExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.NodeExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.NodeExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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.Event.NodeExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventRequest other = (flyteidl.admin.Event.NodeExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventRequest 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.Event.NodeExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a node execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventRequest) - flyteidl.admin.Event.NodeExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventRequest.class, flyteidl.admin.Event.NodeExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest build() { - flyteidl.admin.Event.NodeExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventRequest buildPartial() { - flyteidl.admin.Event.NodeExecutionEventRequest result = new flyteidl.admin.Event.NodeExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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.Event.NodeExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventRequest other) { - if (other == flyteidl.admin.Event.NodeExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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.Event.NodeExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.NodeExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.NodeExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.NodeExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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.NodeExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventRequest) - private static final flyteidl.admin.Event.NodeExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventRequest(); - } - - public static flyteidl.admin.Event.NodeExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventRequest(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.Event.NodeExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class NodeExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionEventResponse) - NodeExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEventResponse.newBuilder() to construct. - private NodeExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEventResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.Event.NodeExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.NodeExecutionEventResponse other = (flyteidl.admin.Event.NodeExecutionEventResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.NodeExecutionEventResponse 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.Event.NodeExecutionEventResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionEventResponse) - flyteidl.admin.Event.NodeExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.NodeExecutionEventResponse.class, flyteidl.admin.Event.NodeExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.NodeExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse build() { - flyteidl.admin.Event.NodeExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.NodeExecutionEventResponse buildPartial() { - flyteidl.admin.Event.NodeExecutionEventResponse result = new flyteidl.admin.Event.NodeExecutionEventResponse(this); - 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.Event.NodeExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.NodeExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.NodeExecutionEventResponse other) { - if (other == flyteidl.admin.Event.NodeExecutionEventResponse.getDefaultInstance()) return this; - 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.Event.NodeExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.NodeExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.NodeExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionEventResponse) - private static final flyteidl.admin.Event.NodeExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.NodeExecutionEventResponse(); - } - - public static flyteidl.admin.Event.NodeExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEventResponse(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.Event.NodeExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - java.lang.String getRequestId(); - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - com.google.protobuf.ByteString - getRequestIdBytes(); - - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - boolean hasEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEvent getEvent(); - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder(); - } - /** - *
-   * Request to send a notification that a task execution event has occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class TaskExecutionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventRequest) - TaskExecutionEventRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventRequest.newBuilder() to construct. - private TaskExecutionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventRequest() { - requestId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - requestId_ = s; - break; - } - case 18: { - flyteidl.event.Event.TaskExecutionEvent.Builder subBuilder = null; - if (event_ != null) { - subBuilder = event_.toBuilder(); - } - event_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(event_); - event_ = 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.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - public static final int REQUEST_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object requestId_; - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } - } - /** - *
-     * Unique ID for this request that can be traced between services
-     * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_FIELD_NUMBER = 2; - private flyteidl.event.Event.TaskExecutionEvent event_; - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return event_ != null; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - /** - *
-     * Details about the event that occurred.
-     * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - return getEvent(); - } - - 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 (!getRequestIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requestId_); - } - if (event_ != null) { - output.writeMessage(2, getEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRequestIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, requestId_); - } - if (event_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvent()); - } - 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.Event.TaskExecutionEventRequest)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventRequest other = (flyteidl.admin.Event.TaskExecutionEventRequest) obj; - - if (!getRequestId() - .equals(other.getRequestId())) return false; - if (hasEvent() != other.hasEvent()) return false; - if (hasEvent()) { - if (!getEvent() - .equals(other.getEvent())) 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(); - hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; - hash = (53 * hash) + getRequestId().hashCode(); - if (hasEvent()) { - hash = (37 * hash) + EVENT_FIELD_NUMBER; - hash = (53 * hash) + getEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventRequest 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.Event.TaskExecutionEventRequest 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; - } - /** - *
-     * Request to send a notification that a task execution event has occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventRequest) - flyteidl.admin.Event.TaskExecutionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventRequest.class, flyteidl.admin.Event.TaskExecutionEventRequest.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventRequest.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(); - requestId_ = ""; - - if (eventBuilder_ == null) { - event_ = null; - } else { - event_ = null; - eventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest build() { - flyteidl.admin.Event.TaskExecutionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventRequest buildPartial() { - flyteidl.admin.Event.TaskExecutionEventRequest result = new flyteidl.admin.Event.TaskExecutionEventRequest(this); - result.requestId_ = requestId_; - if (eventBuilder_ == null) { - result.event_ = event_; - } else { - result.event_ = eventBuilder_.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.Event.TaskExecutionEventRequest) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventRequest other) { - if (other == flyteidl.admin.Event.TaskExecutionEventRequest.getDefaultInstance()) return this; - if (!other.getRequestId().isEmpty()) { - requestId_ = other.requestId_; - onChanged(); - } - if (other.hasEvent()) { - mergeEvent(other.getEvent()); - } - 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.Event.TaskExecutionEventRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object requestId_ = ""; - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public java.lang.String getRequestId() { - java.lang.Object ref = requestId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public com.google.protobuf.ByteString - getRequestIdBytes() { - java.lang.Object ref = requestId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - requestId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder clearRequestId() { - - requestId_ = getDefaultInstance().getRequestId(); - onChanged(); - return this; - } - /** - *
-       * Unique ID for this request that can be traced between services
-       * 
- * - * string request_id = 1; - */ - public Builder setRequestIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - requestId_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.TaskExecutionEvent event_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> eventBuilder_; - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public boolean hasEvent() { - return eventBuilder_ != null || event_ != null; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent getEvent() { - if (eventBuilder_ == null) { - return event_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } else { - return eventBuilder_.getMessage(); - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - event_ = value; - onChanged(); - } else { - eventBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder setEvent( - flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { - if (eventBuilder_ == null) { - event_ = builderForValue.build(); - onChanged(); - } else { - eventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder mergeEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (eventBuilder_ == null) { - if (event_ != null) { - event_ = - flyteidl.event.Event.TaskExecutionEvent.newBuilder(event_).mergeFrom(value).buildPartial(); - } else { - event_ = value; - } - onChanged(); - } else { - eventBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public Builder clearEvent() { - if (eventBuilder_ == null) { - event_ = null; - onChanged(); - } else { - event_ = null; - eventBuilder_ = null; - } - - return this; - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEvent.Builder getEventBuilder() { - - onChanged(); - return getEventFieldBuilder().getBuilder(); - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getEventOrBuilder() { - if (eventBuilder_ != null) { - return eventBuilder_.getMessageOrBuilder(); - } else { - return event_ == null ? - flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : event_; - } - } - /** - *
-       * Details about the event that occurred.
-       * 
- * - * .flyteidl.event.TaskExecutionEvent event = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> - getEventFieldBuilder() { - if (eventBuilder_ == null) { - eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( - getEvent(), - getParentForChildren(), - isClean()); - event_ = null; - } - return eventBuilder_; - } - @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.TaskExecutionEventRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventRequest) - private static final flyteidl.admin.Event.TaskExecutionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventRequest(); - } - - public static flyteidl.admin.Event.TaskExecutionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventRequest(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.Event.TaskExecutionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionEventResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class TaskExecutionEventResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionEventResponse) - TaskExecutionEventResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEventResponse.newBuilder() to construct. - private TaskExecutionEventResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEventResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEventResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.Event.TaskExecutionEventResponse)) { - return super.equals(obj); - } - flyteidl.admin.Event.TaskExecutionEventResponse other = (flyteidl.admin.Event.TaskExecutionEventResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Event.TaskExecutionEventResponse 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.Event.TaskExecutionEventResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionEventResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionEventResponse) - flyteidl.admin.Event.TaskExecutionEventResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Event.TaskExecutionEventResponse.class, flyteidl.admin.Event.TaskExecutionEventResponse.Builder.class); - } - - // Construct using flyteidl.admin.Event.TaskExecutionEventResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Event.internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse build() { - flyteidl.admin.Event.TaskExecutionEventResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Event.TaskExecutionEventResponse buildPartial() { - flyteidl.admin.Event.TaskExecutionEventResponse result = new flyteidl.admin.Event.TaskExecutionEventResponse(this); - 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.Event.TaskExecutionEventResponse) { - return mergeFrom((flyteidl.admin.Event.TaskExecutionEventResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Event.TaskExecutionEventResponse other) { - if (other == flyteidl.admin.Event.TaskExecutionEventResponse.getDefaultInstance()) return this; - 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.Event.TaskExecutionEventResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Event.TaskExecutionEventResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.TaskExecutionEventResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionEventResponse) - private static final flyteidl.admin.Event.TaskExecutionEventResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Event.TaskExecutionEventResponse(); - } - - public static flyteidl.admin.Event.TaskExecutionEventResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEventResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEventResponse(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.Event.TaskExecutionEventResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EventFailureReason_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/admin/event.proto\022\016flyteidl.a" + - "dmin\032\032flyteidl/event/event.proto\"9\n Even" + - "tErrorAlreadyInTerminalState\022\025\n\rcurrent_" + - "phase\030\001 \001(\t\"0\n\035EventErrorIncompatibleClu" + - "ster\022\017\n\007cluster\030\001 \001(\t\"\304\001\n\022EventFailureRe" + - "ason\022U\n\031already_in_terminal_state\030\001 \001(\0132" + - "0.flyteidl.admin.EventErrorAlreadyInTerm" + - "inalStateH\000\022M\n\024incompatible_cluster\030\002 \001(" + - "\0132-.flyteidl.admin.EventErrorIncompatibl" + - "eClusterH\000B\010\n\006reason\"j\n\035WorkflowExecutio" + - "nEventRequest\022\022\n\nrequest_id\030\001 \001(\t\0225\n\005eve" + - "nt\030\002 \001(\0132&.flyteidl.event.WorkflowExecut" + - "ionEvent\" \n\036WorkflowExecutionEventRespon" + - "se\"b\n\031NodeExecutionEventRequest\022\022\n\nreque" + - "st_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".flyteidl.ev" + - "ent.NodeExecutionEvent\"\034\n\032NodeExecutionE" + - "ventResponse\"b\n\031TaskExecutionEventReques" + - "t\022\022\n\nrequest_id\030\001 \001(\t\0221\n\005event\030\002 \001(\0132\".f" + - "lyteidl.event.TaskExecutionEvent\"\034\n\032Task" + - "ExecutionEventResponseB=Z;github.com/fly" + - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" + - "adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.event.Event.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventErrorAlreadyInTerminalState_descriptor, - new java.lang.String[] { "CurrentPhase", }); - internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_EventErrorIncompatibleCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventErrorIncompatibleCluster_descriptor, - new java.lang.String[] { "Cluster", }); - internal_static_flyteidl_admin_EventFailureReason_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_EventFailureReason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EventFailureReason_descriptor, - new java.lang.String[] { "AlreadyInTerminalState", "IncompatibleCluster", "Reason", }); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NodeExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionEventResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_TaskExecutionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventRequest_descriptor, - new java.lang.String[] { "RequestId", "Event", }); - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_TaskExecutionEventResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionEventResponse_descriptor, - new java.lang.String[] { }); - flyteidl.event.Event.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java deleted file mode 100644 index 102ff472f0..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ExecutionOuterClass.java +++ /dev/null @@ -1,29243 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/execution.proto - -package flyteidl.admin; - -public final class ExecutionOuterClass { - private ExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The state of the execution is used to control its visibility in the UI/CLI.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.ExecutionState} - */ - public enum ExecutionState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * By default, all executions are considered active.
-     * 
- * - * EXECUTION_ACTIVE = 0; - */ - EXECUTION_ACTIVE(0), - /** - *
-     * Archived executions are no longer visible in the UI.
-     * 
- * - * EXECUTION_ARCHIVED = 1; - */ - EXECUTION_ARCHIVED(1), - UNRECOGNIZED(-1), - ; - - /** - *
-     * By default, all executions are considered active.
-     * 
- * - * EXECUTION_ACTIVE = 0; - */ - public static final int EXECUTION_ACTIVE_VALUE = 0; - /** - *
-     * Archived executions are no longer visible in the UI.
-     * 
- * - * EXECUTION_ARCHIVED = 1; - */ - public static final int EXECUTION_ARCHIVED_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionState valueOf(int value) { - return forNumber(value); - } - - public static ExecutionState forNumber(int value) { - switch (value) { - case 0: return EXECUTION_ACTIVE; - case 1: return EXECUTION_ARCHIVED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionState findValueByNumber(int number) { - return ExecutionState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ExecutionState[] VALUES = values(); - - public static ExecutionState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ExecutionState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionState) - } - - public interface ExecutionCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the execution belongs to.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the execution belongs to.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the execution belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the execution belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - boolean hasSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - boolean hasInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - } - /** - *
-   * Request to launch an execution with the given project, domain and optionally-assigned name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class ExecutionCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateRequest) - ExecutionCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateRequest.newBuilder() to construct. - private ExecutionCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateRequest() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the execution belongs to.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the execution belongs to.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the execution belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the execution belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User provided value for the resource.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_FIELD_NUMBER = 4; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Additional fields necessary to launch the execution.
-     * +optional
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int INPUTS_FIELD_NUMBER = 5; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (spec_ != null) { - output.writeMessage(4, getSpec()); - } - if (inputs_ != null) { - output.writeMessage(5, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSpec()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputs()); - } - 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.ExecutionOuterClass.ExecutionCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest 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.ExecutionOuterClass.ExecutionCreateRequest 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; - } - /** - *
-     * Request to launch an execution with the given project, domain and optionally-assigned name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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.ExecutionOuterClass.ExecutionCreateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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.ExecutionOuterClass.ExecutionCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the execution belongs to.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the execution belongs to.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the execution belongs to.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the execution belongs to.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the execution belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the execution belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the execution belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Additional fields necessary to launch the execution.
-       * +optional
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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.ExecutionCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateRequest(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.ExecutionOuterClass.ExecutionCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionRelaunchRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRelaunchRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 4; - */ - boolean getOverwriteCache(); - } - /** - *
-   * Request to relaunch the referenced execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class ExecutionRelaunchRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRelaunchRequest) - ExecutionRelaunchRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionRelaunchRequest.newBuilder() to construct. - private ExecutionRelaunchRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionRelaunchRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionRelaunchRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 32: { - - overwriteCache_ = input.readBool(); - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the workflow execution to relaunch.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User provided value for the relaunched execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OVERWRITE_CACHE_FIELD_NUMBER = 4; - private boolean overwriteCache_; - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 4; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - - 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()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - if (overwriteCache_ != false) { - output.writeBool(4, overwriteCache_); - } - 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()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - if (overwriteCache_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, overwriteCache_); - } - 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.ExecutionOuterClass.ExecutionRelaunchRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (getOverwriteCache() - != other.getOverwriteCache()) 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 = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOverwriteCache()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest 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.ExecutionOuterClass.ExecutionRelaunchRequest 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; - } - /** - *
-     * Request to relaunch the referenced execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRelaunchRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRelaunchRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.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; - } - name_ = ""; - - overwriteCache_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.name_ = name_; - result.overwriteCache_ = overwriteCache_; - 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.ExecutionOuterClass.ExecutionRelaunchRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getOverwriteCache() != false) { - setOverwriteCache(other.getOverwriteCache()); - } - 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.ExecutionOuterClass.ExecutionRelaunchRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the workflow execution to relaunch.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the relaunched execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private boolean overwriteCache_ ; - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 4; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 4; - */ - public Builder setOverwriteCache(boolean value) { - - overwriteCache_ = value; - onChanged(); - return this; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 4; - */ - public Builder clearOverwriteCache() { - - overwriteCache_ = false; - onChanged(); - return this; - } - @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.ExecutionRelaunchRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRelaunchRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionRelaunchRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionRelaunchRequest(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.ExecutionOuterClass.ExecutionRelaunchRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionRecoverRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionRecoverRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User provided value for the recovered execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the recovered execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Request to recover the referenced execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRecoverRequest} - */ - public static final class ExecutionRecoverRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionRecoverRequest) - ExecutionRecoverRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionRecoverRequest.newBuilder() to construct. - private ExecutionRecoverRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionRecoverRequest() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionRecoverRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the workflow execution to recover.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the recovered execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User provided value for the recovered execution.
-     * If none is provided the system will generate a unique string.
-     * +optional
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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()); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - 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()); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - 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.ExecutionOuterClass.ExecutionRecoverRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getName() - .equals(other.getName())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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 = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest 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.ExecutionOuterClass.ExecutionRecoverRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest 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.ExecutionOuterClass.ExecutionRecoverRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest 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.ExecutionOuterClass.ExecutionRecoverRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest 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.ExecutionOuterClass.ExecutionRecoverRequest 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; - } - /** - *
-     * Request to recover the referenced execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionRecoverRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionRecoverRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.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; - } - name_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.name_ = name_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.ExecutionOuterClass.ExecutionRecoverRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.ExecutionOuterClass.ExecutionRecoverRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the workflow execution to recover.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the recovered execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User provided value for the recovered execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User provided value for the recovered execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the recovered execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the recovered execution.
-       * If none is provided the system will generate a unique string.
-       * +optional
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution.
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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.ExecutionRecoverRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionRecoverRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionRecoverRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionRecoverRequest(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.ExecutionOuterClass.ExecutionRecoverRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionCreateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * The unique identifier for a successfully created execution.
-   * If the name was *not* specified in the create request, this identifier will include a generated name.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class ExecutionCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionCreateResponse) - ExecutionCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionCreateResponse.newBuilder() to construct. - private ExecutionCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionCreateResponse( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder 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.ExecutionOuterClass.ExecutionCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) 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.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse 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.ExecutionOuterClass.ExecutionCreateResponse 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 unique identifier for a successfully created execution.
-     * If the name was *not* specified in the create request, this identifier will include a generated name.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionCreateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(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.ExecutionOuterClass.ExecutionCreateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse.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.ExecutionOuterClass.ExecutionCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - 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.ExecutionCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionCreateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionCreateResponse(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.ExecutionOuterClass.ExecutionCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single workflow execution entity.
-   * See :ref:`ref_flyteidl.admin.Execution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class WorkflowExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetRequest) - WorkflowExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetRequest.newBuilder() to construct. - private WorkflowExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder 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.ExecutionOuterClass.WorkflowExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest 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.ExecutionOuterClass.WorkflowExecutionGetRequest 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; - } - /** - *
-     * A message used to fetch a single workflow execution entity.
-     * See :ref:`ref_flyteidl.admin.Execution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(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.ExecutionOuterClass.WorkflowExecutionGetRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest.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.ExecutionOuterClass.WorkflowExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - 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.WorkflowExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetRequest(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.ExecutionOuterClass.WorkflowExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Execution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec(); - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure(); - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A workflow execution represents an instantiated workflow, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * Used as a response object used in Get and List execution requests.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Execution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Execution) - ExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Execution.newBuilder() to construct. - private Execution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Execution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Execution( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier of the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided configuration and inputs for launching the execution.
-     * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Execution results.
-     * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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.ExecutionOuterClass.Execution)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.Execution other = (flyteidl.admin.ExecutionOuterClass.Execution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.Execution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.Execution 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.ExecutionOuterClass.Execution 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; - } - /** - *
-     * A workflow execution represents an instantiated workflow, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * Used as a response object used in Get and List execution requests.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Execution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Execution) - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.Execution.class, flyteidl.admin.ExecutionOuterClass.Execution.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.Execution.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; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_Execution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution build() { - flyteidl.admin.ExecutionOuterClass.Execution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.Execution buildPartial() { - flyteidl.admin.ExecutionOuterClass.Execution result = new flyteidl.admin.ExecutionOuterClass.Execution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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.ExecutionOuterClass.Execution) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.Execution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.Execution other) { - if (other == flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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.ExecutionOuterClass.Execution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.Execution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier of the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.ExecutionOuterClass.ExecutionSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided configuration and inputs for launching the execution.
-       * 
- * - * .flyteidl.admin.ExecutionSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionSpec, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.ExecutionOuterClass.ExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Execution results.
-       * 
- * - * .flyteidl.admin.ExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionClosure, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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.Execution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Execution) - private static final flyteidl.admin.ExecutionOuterClass.Execution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.Execution(); - } - - public static flyteidl.admin.ExecutionOuterClass.Execution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Execution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Execution(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.ExecutionOuterClass.Execution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - int getExecutionsCount(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - java.util.List - getExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Used as a response for request to list executions.
-   * See :ref:`ref_flyteidl.admin.Execution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class ExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionList) - ExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionList.newBuilder() to construct. - private ExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionList() { - executions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - executions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - executions_.add( - input.readMessage(flyteidl.admin.ExecutionOuterClass.Execution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - private int bitField0_; - public static final int EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List executions_; - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - return executions_; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - return executions_.size(); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - return executions_.get(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - return executions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < executions_.size(); i++) { - output.writeMessage(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < executions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, executions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.ExecutionOuterClass.ExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionList other = (flyteidl.admin.ExecutionOuterClass.ExecutionList) obj; - - if (!getExecutionsList() - .equals(other.getExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getExecutionsCount() > 0) { - hash = (37 * hash) + EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionList 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.ExecutionOuterClass.ExecutionList 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; - } - /** - *
-     * Used as a response for request to list executions.
-     * See :ref:`ref_flyteidl.admin.Execution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionList) - flyteidl.admin.ExecutionOuterClass.ExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionList.class, flyteidl.admin.ExecutionOuterClass.ExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - executionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList build() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionList buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionList result = new flyteidl.admin.ExecutionOuterClass.ExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (executionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - executions_ = java.util.Collections.unmodifiableList(executions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.executions_ = executions_; - } else { - result.executions_ = executionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.ExecutionOuterClass.ExecutionList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionList other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionList.getDefaultInstance()) return this; - if (executionsBuilder_ == null) { - if (!other.executions_.isEmpty()) { - if (executions_.isEmpty()) { - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExecutionsIsMutable(); - executions_.addAll(other.executions_); - } - onChanged(); - } - } else { - if (!other.executions_.isEmpty()) { - if (executionsBuilder_.isEmpty()) { - executionsBuilder_.dispose(); - executionsBuilder_ = null; - executions_ = other.executions_; - bitField0_ = (bitField0_ & ~0x00000001); - executionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExecutionsFieldBuilder() : null; - } else { - executionsBuilder_.addAllMessages(other.executions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.ExecutionOuterClass.ExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List executions_ = - java.util.Collections.emptyList(); - private void ensureExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - executions_ = new java.util.ArrayList(executions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> executionsBuilder_; - - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List getExecutionsList() { - if (executionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(executions_); - } else { - return executionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public int getExecutionsCount() { - if (executionsBuilder_ == null) { - return executions_.size(); - } else { - return executionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution getExecutions(int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); - } else { - return executionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.set(index, value); - onChanged(); - } else { - executionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder setExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.set(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions(flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(value); - onChanged(); - } else { - executionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution value) { - if (executionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExecutionsIsMutable(); - executions_.add(index, value); - onChanged(); - } else { - executionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addExecutions( - int index, flyteidl.admin.ExecutionOuterClass.Execution.Builder builderForValue) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.add(index, builderForValue.build()); - onChanged(); - } else { - executionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder addAllExecutions( - java.lang.Iterable values) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, executions_); - onChanged(); - } else { - executionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder clearExecutions() { - if (executionsBuilder_ == null) { - executions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - executionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public Builder removeExecutions(int index) { - if (executionsBuilder_ == null) { - ensureExecutionsIsMutable(); - executions_.remove(index); - onChanged(); - } else { - executionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder getExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder getExecutionsOrBuilder( - int index) { - if (executionsBuilder_ == null) { - return executions_.get(index); } else { - return executionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsOrBuilderList() { - if (executionsBuilder_ != null) { - return executionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(executions_); - } - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder() { - return getExecutionsFieldBuilder().addBuilder( - flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public flyteidl.admin.ExecutionOuterClass.Execution.Builder addExecutionsBuilder( - int index) { - return getExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.ExecutionOuterClass.Execution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Execution executions = 1; - */ - public java.util.List - getExecutionsBuilderList() { - return getExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder> - getExecutionsFieldBuilder() { - if (executionsBuilder_ == null) { - executionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.Execution, flyteidl.admin.ExecutionOuterClass.Execution.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionOrBuilder>( - executions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - executions_ = null; - } - return executionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.ExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionList) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionList(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionList(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.ExecutionOuterClass.ExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapBlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LiteralMapBlob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getValues(); - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder(); - - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - java.lang.String getUri(); - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - com.google.protobuf.ByteString - getUriBytes(); - - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.DataCase getDataCase(); - } - /** - *
-   * Input/output data can represented by actual values or a link to where values are stored
-   * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class LiteralMapBlob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LiteralMapBlob) - LiteralMapBlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMapBlob.newBuilder() to construct. - private LiteralMapBlob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMapBlob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMapBlob( - 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.Literals.LiteralMap.Builder subBuilder = null; - if (dataCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - dataCase_ = 2; - data_ = s; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated VALUES(1), - URI(2), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return VALUES; - case 2: return URI; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int VALUES_FIELD_NUMBER = 1; - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getValues() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Data in LiteralMap format
-     * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int URI_FIELD_NUMBER = 2; - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } - } - /** - *
-     * In the event that the map is too large, we return a uri to the data
-     * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (dataCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, data_); - } - 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.ExecutionOuterClass.LiteralMapBlob)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) obj; - - if (!getDataCase().equals(other.getDataCase())) return false; - switch (dataCase_) { - case 1: - if (!getValues() - .equals(other.getValues())) return false; - break; - case 2: - if (!getUri() - .equals(other.getUri())) 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 (dataCase_) { - case 1: - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValues().hashCode(); - break; - case 2: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob 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.ExecutionOuterClass.LiteralMapBlob 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; - } - /** - *
-     * Input/output data can represented by actual values or a link to where values are stored
-     * 
- * - * Protobuf type {@code flyteidl.admin.LiteralMapBlob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LiteralMapBlob) - flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.class, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.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(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob build() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob buildPartial() { - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob result = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(this); - if (dataCase_ == 1) { - if (valuesBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = valuesBuilder_.build(); - } - } - if (dataCase_ == 2) { - result.data_ = data_; - } - result.dataCase_ = dataCase_; - 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.ExecutionOuterClass.LiteralMapBlob) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob other) { - if (other == flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case VALUES: { - mergeValues(other.getValues()); - break; - } - case URI: { - dataCase_ = 2; - data_ = other.data_; - onChanged(); - break; - } - case DATA_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.ExecutionOuterClass.LiteralMapBlob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> valuesBuilder_; - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasValues() { - return dataCase_ == 1; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (dataCase_ == 1) { - return valuesBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setValues( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (valuesBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - valuesBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeValues(flyteidl.core.Literals.LiteralMap value) { - if (valuesBuilder_ == null) { - if (dataCase_ == 1 && - data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 1) { - valuesBuilder_.mergeFrom(value); - } - valuesBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearValues() { - if (valuesBuilder_ == null) { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - } - valuesBuilder_.clear(); - } - return this; - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getValuesBuilder() { - return getValuesFieldBuilder().getBuilder(); - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getValuesOrBuilder() { - if ((dataCase_ == 1) && (valuesBuilder_ != null)) { - return valuesBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Data in LiteralMap format
-       * 
- * - * .flyteidl.core.LiteralMap values = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getValuesFieldBuilder() { - if (valuesBuilder_ == null) { - if (!(dataCase_ == 1)) { - data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - valuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 1; - onChanged();; - return valuesBuilder_; - } - - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (dataCase_ == 2) { - data_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (dataCase_ == 2) { - ref = data_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (dataCase_ == 2) { - data_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataCase_ = 2; - data_ = value; - onChanged(); - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder clearUri() { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the event that the map is too large, we return a uri to the data
-       * 
- * - * string uri = 2; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataCase_ = 2; - data_ = value; - onChanged(); - return this; - } - @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.LiteralMapBlob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LiteralMapBlob) - private static final flyteidl.admin.ExecutionOuterClass.LiteralMapBlob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.LiteralMapBlob(); - } - - public static flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMapBlob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMapBlob(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.ExecutionOuterClass.LiteralMapBlob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AbortMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.AbortMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - java.lang.String getCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - com.google.protobuf.ByteString - getCauseBytes(); - - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - *
-   * Specifies metadata around an aborted workflow execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.AbortMetadata} - */ - public static final class AbortMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.AbortMetadata) - AbortMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AbortMetadata.newBuilder() to construct. - private AbortMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AbortMetadata() { - cause_ = ""; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AbortMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - cause_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - public static final int CAUSE_FIELD_NUMBER = 1; - private volatile java.lang.Object cause_; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifies the entity (if any) responsible for terminating the execution
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cause_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - 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.ExecutionOuterClass.AbortMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.AbortMetadata other = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) obj; - - if (!getCause() - .equals(other.getCause())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) 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(); - hash = (37 * hash) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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.ExecutionOuterClass.AbortMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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.ExecutionOuterClass.AbortMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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.ExecutionOuterClass.AbortMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata 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.ExecutionOuterClass.AbortMetadata 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; - } - /** - *
-     * Specifies metadata around an aborted workflow execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.AbortMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.AbortMetadata) - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.class, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.AbortMetadata.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(); - cause_ = ""; - - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_AbortMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata build() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.AbortMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.AbortMetadata result = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(this); - result.cause_ = cause_; - result.principal_ = principal_; - 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.ExecutionOuterClass.AbortMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.AbortMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) return this; - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - onChanged(); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - 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.ExecutionOuterClass.AbortMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.AbortMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string cause = 1; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = value; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for terminating the execution
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - @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.AbortMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.AbortMetadata) - private static final flyteidl.admin.ExecutionOuterClass.AbortMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.AbortMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.AbortMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AbortMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AbortMetadata(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.ExecutionOuterClass.AbortMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputs(); - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs(); - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getAbortCause(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getAbortCauseBytes(); - - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - boolean hasAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata(); - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder(); - - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputData(); - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getComputedInputs(); - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder(); - - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - int getNotificationsCount(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - boolean hasWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - boolean hasStateChangeDetails(); - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails(); - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder(); - - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Encapsulates the results of the Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class ExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClosure) - ExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClosure.newBuilder() to construct. - private ExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClosure() { - phase_ = 0; - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClosure( - 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.ExecutionOuterClass.LiteralMapBlob.Builder subBuilder = null; - if (outputResultCase_ == 1) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 1; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (computedInputs_ != null) { - subBuilder = computedInputs_.toBuilder(); - } - computedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(computedInputs_); - computedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updatedAt_ != null) { - subBuilder = updatedAt_.toBuilder(); - } - updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updatedAt_); - updatedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 10; - outputResult_ = s; - break; - } - case 90: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 98: { - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder subBuilder = null; - if (outputResultCase_ == 12) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.AbortMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 12; - break; - } - case 106: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 13) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 13; - break; - } - case 114: { - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder subBuilder = null; - if (stateChangeDetails_ != null) { - subBuilder = stateChangeDetails_.toBuilder(); - } - stateChangeDetails_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(stateChangeDetails_); - stateChangeDetails_ = 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 { - if (((mutable_bitField0_ & 0x00000800) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated OUTPUTS(1), - ERROR(2), - @java.lang.Deprecated ABORT_CAUSE(10), - ABORT_METADATA(12), - @java.lang.Deprecated OUTPUT_DATA(13), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUTS; - case 2: return ERROR; - case 10: return ABORT_CAUSE; - case 12: return ABORT_METADATA; - case 13: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - /** - *
-     * Output URI in the case of a successful execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information in the case of a failed execution.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int ABORT_CAUSE_FIELD_NUMBER = 10; - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user-supplied cause.
-     * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ABORT_METADATA_FIELD_NUMBER = 12; - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - /** - *
-     * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-     * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 13; - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 13; - } - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 13) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this execution.
-     * DEPRECATED. Use GetExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 13) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int COMPUTED_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap computedInputs_; - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputs_ != null; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - /** - *
-     * Inputs computed and passed for execution.
-     * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-     * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - return getComputedInputs(); - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Most recent recorded phase for the execution.
-     * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Reported time at which the execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Reported time at which the execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Reported time at which the execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 9; - private java.util.List notifications_; - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-     * notification settings. An execution launched with notifications will always prefer that definition
-     * to notifications defined statically in a launch plan.
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.get(index); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 11; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Identifies the workflow definition for this execution.
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - public static final int STATE_CHANGE_DETAILS_FIELD_NUMBER = 14; - private flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails stateChangeDetails_; - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public boolean hasStateChangeDetails() { - return stateChangeDetails_ != null; - } - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails() { - return stateChangeDetails_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; - } - /** - *
-     * Provides the details of the last stage change
-     * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder() { - return getStateChangeDetails(); - } - - 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 (outputResultCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - output.writeMessage(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, outputResult_); - } - if (workflowId_ != null) { - output.writeMessage(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - output.writeMessage(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - if (outputResultCase_ == 13) { - output.writeMessage(13, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (stateChangeDetails_ != null) { - output.writeMessage(14, getStateChangeDetails()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (computedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getComputedInputs()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, notifications_.get(i)); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, outputResult_); - } - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getWorkflowId()); - } - if (outputResultCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_); - } - if (outputResultCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (stateChangeDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, getStateChangeDetails()); - } - 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.ExecutionOuterClass.ExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionClosure other = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) obj; - - if (hasComputedInputs() != other.hasComputedInputs()) return false; - if (hasComputedInputs()) { - if (!getComputedInputs() - .equals(other.getComputedInputs())) return false; - } - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) return false; - } - if (hasUpdatedAt() != other.hasUpdatedAt()) return false; - if (hasUpdatedAt()) { - if (!getUpdatedAt() - .equals(other.getUpdatedAt())) return false; - } - if (!getNotificationsList() - .equals(other.getNotificationsList())) return false; - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (hasStateChangeDetails() != other.hasStateChangeDetails()) return false; - if (hasStateChangeDetails()) { - if (!getStateChangeDetails() - .equals(other.getStateChangeDetails())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputs() - .equals(other.getOutputs())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 10: - if (!getAbortCause() - .equals(other.getAbortCause())) return false; - break; - case 12: - if (!getAbortMetadata() - .equals(other.getAbortMetadata())) return false; - break; - case 13: - if (!getOutputData() - .equals(other.getOutputData())) 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(); - if (hasComputedInputs()) { - hash = (37 * hash) + COMPUTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getComputedInputs().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - if (hasUpdatedAt()) { - hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getUpdatedAt().hashCode(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - if (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - if (hasStateChangeDetails()) { - hash = (37 * hash) + STATE_CHANGE_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getStateChangeDetails().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 10: - hash = (37 * hash) + ABORT_CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getAbortCause().hashCode(); - break; - case 12: - hash = (37 * hash) + ABORT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getAbortMetadata().hashCode(); - break; - case 13: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure 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.ExecutionOuterClass.ExecutionClosure 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; - } - /** - *
-     * Encapsulates the results of the Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClosure) - flyteidl.admin.ExecutionOuterClass.ExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionClosure.class, flyteidl.admin.ExecutionOuterClass.ExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - } else { - notificationsBuilder_.clear(); - } - if (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - if (stateChangeDetailsBuilder_ == null) { - stateChangeDetails_ = null; - } else { - stateChangeDetails_ = null; - stateChangeDetailsBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure build() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionClosure buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionClosure result = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - if (outputsBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputsBuilder_.build(); - } - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 10) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 12) { - if (abortMetadataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = abortMetadataBuilder_.build(); - } - } - if (outputResultCase_ == 13) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - if (computedInputsBuilder_ == null) { - result.computedInputs_ = computedInputs_; - } else { - result.computedInputs_ = computedInputsBuilder_.build(); - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - if (stateChangeDetailsBuilder_ == null) { - result.stateChangeDetails_ = stateChangeDetails_; - } else { - result.stateChangeDetails_ = stateChangeDetailsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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.ExecutionOuterClass.ExecutionClosure) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionClosure other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionClosure.getDefaultInstance()) return this; - if (other.hasComputedInputs()) { - mergeComputedInputs(other.getComputedInputs()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000800); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - if (other.hasStateChangeDetails()) { - mergeStateChangeDetails(other.getStateChangeDetails()); - } - switch (other.getOutputResultCase()) { - case OUTPUTS: { - mergeOutputs(other.getOutputs()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case ABORT_CAUSE: { - outputResultCase_ = 10; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ABORT_METADATA: { - mergeAbortMetadata(other.getAbortMetadata()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_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.ExecutionOuterClass.ExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> outputsBuilder_; - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputResultCase_ == 1; - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob getOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } else { - if (outputResultCase_ == 1) { - return outputsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs( - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.ExecutionOuterClass.LiteralMapBlob value) { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.newBuilder((flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 1) { - outputsBuilder_.mergeFrom(value); - } - outputsBuilder_.setMessage(value); - } - outputResultCase_ = 1; - return this; - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputs() { - if (outputsBuilder_ == null) { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder getOutputsBuilder() { - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder getOutputsOrBuilder() { - if ((outputResultCase_ == 1) && (outputsBuilder_ != null)) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 1) { - return (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - } - /** - *
-       * Output URI in the case of a successful execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.admin.LiteralMapBlob outputs = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - if (!(outputResultCase_ == 1)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.getDefaultInstance(); - } - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.LiteralMapBlob, flyteidl.admin.ExecutionOuterClass.LiteralMapBlob.Builder, flyteidl.admin.ExecutionOuterClass.LiteralMapBlobOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.LiteralMapBlob) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 1; - onChanged();; - return outputsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information in the case of a failed execution.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getAbortCause() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 10) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getAbortCauseBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 10) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 10) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAbortCause() { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user-supplied cause.
-       * 
- * - * string abort_cause = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAbortCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 10; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> abortMetadataBuilder_; - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public boolean hasAbortMetadata() { - return outputResultCase_ == 12; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata getAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } else { - if (outputResultCase_ == 12) { - return abortMetadataBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder setAbortMetadata( - flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder builderForValue) { - if (abortMetadataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - abortMetadataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder mergeAbortMetadata(flyteidl.admin.ExecutionOuterClass.AbortMetadata value) { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12 && - outputResult_ != flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance()) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.newBuilder((flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 12) { - abortMetadataBuilder_.mergeFrom(value); - } - abortMetadataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public Builder clearAbortMetadata() { - if (abortMetadataBuilder_ == null) { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - } - abortMetadataBuilder_.clear(); - } - return this; - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder getAbortMetadataBuilder() { - return getAbortMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - public flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder getAbortMetadataOrBuilder() { - if ((outputResultCase_ == 12) && (abortMetadataBuilder_ != null)) { - return abortMetadataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 12) { - return (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_; - } - return flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - } - /** - *
-       * In the case of a user-specified abort, this will pass along the user and their supplied cause.
-       * 
- * - * .flyteidl.admin.AbortMetadata abort_metadata = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder> - getAbortMetadataFieldBuilder() { - if (abortMetadataBuilder_ == null) { - if (!(outputResultCase_ == 12)) { - outputResult_ = flyteidl.admin.ExecutionOuterClass.AbortMetadata.getDefaultInstance(); - } - abortMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.AbortMetadata, flyteidl.admin.ExecutionOuterClass.AbortMetadata.Builder, flyteidl.admin.ExecutionOuterClass.AbortMetadataOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.AbortMetadata) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 12; - onChanged();; - return abortMetadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 13; - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 13) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 13) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 13; - return this; - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 13; - return this; - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 13 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 13) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 13; - return this; - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 13) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 13) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 13) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 13) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this execution.
-       * DEPRECATED. Use GetExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 13 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 13)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 13; - onChanged();; - return outputDataBuilder_; - } - - private flyteidl.core.Literals.LiteralMap computedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> computedInputsBuilder_; - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasComputedInputs() { - return computedInputsBuilder_ != null || computedInputs_ != null; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getComputedInputs() { - if (computedInputsBuilder_ == null) { - return computedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } else { - return computedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - computedInputs_ = value; - onChanged(); - } else { - computedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setComputedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (computedInputsBuilder_ == null) { - computedInputs_ = builderForValue.build(); - onChanged(); - } else { - computedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeComputedInputs(flyteidl.core.Literals.LiteralMap value) { - if (computedInputsBuilder_ == null) { - if (computedInputs_ != null) { - computedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(computedInputs_).mergeFrom(value).buildPartial(); - } else { - computedInputs_ = value; - } - onChanged(); - } else { - computedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearComputedInputs() { - if (computedInputsBuilder_ == null) { - computedInputs_ = null; - onChanged(); - } else { - computedInputs_ = null; - computedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getComputedInputsBuilder() { - - onChanged(); - return getComputedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getComputedInputsOrBuilder() { - if (computedInputsBuilder_ != null) { - return computedInputsBuilder_.getMessageOrBuilder(); - } else { - return computedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : computedInputs_; - } - } - /** - *
-       * Inputs computed and passed for execution.
-       * computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan
-       * 
- * - * .flyteidl.core.LiteralMap computed_inputs = 3 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getComputedInputsFieldBuilder() { - if (computedInputsBuilder_ == null) { - computedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getComputedInputs(), - getParentForChildren(), - isClean()); - computedInputs_ = null; - } - return computedInputsBuilder_; - } - - private int phase_ = 0; - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Most recent recorded phase for the execution.
-       * 
- * - * .flyteidl.core.WorkflowExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Reported time at which the execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Reported time at which the execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - - private com.google.protobuf.Timestamp updatedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updatedAt_ = value; - onChanged(); - } else { - updatedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (updatedAt_ != null) { - updatedAt_ = - com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); - } else { - updatedAt_ = value; - } - onChanged(); - } else { - updatedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Reported time at which the execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdatedAtFieldBuilder() { - if (updatedAtBuilder_ == null) { - updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdatedAt(), - getParentForChildren(), - isClean()); - updatedAt_ = null; - } - return updatedAtBuilder_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * The notification settings to use after merging the CreateExecutionRequest and the launch plan
-       * notification settings. An execution launched with notifications will always prefer that definition
-       * to notifications defined statically in a launch plan.
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 9; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000800) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Identifies the workflow definition for this execution.
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails stateChangeDetails_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder> stateChangeDetailsBuilder_; - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public boolean hasStateChangeDetails() { - return stateChangeDetailsBuilder_ != null || stateChangeDetails_ != null; - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getStateChangeDetails() { - if (stateChangeDetailsBuilder_ == null) { - return stateChangeDetails_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; - } else { - return stateChangeDetailsBuilder_.getMessage(); - } - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public Builder setStateChangeDetails(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails value) { - if (stateChangeDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - stateChangeDetails_ = value; - onChanged(); - } else { - stateChangeDetailsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public Builder setStateChangeDetails( - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder builderForValue) { - if (stateChangeDetailsBuilder_ == null) { - stateChangeDetails_ = builderForValue.build(); - onChanged(); - } else { - stateChangeDetailsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public Builder mergeStateChangeDetails(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails value) { - if (stateChangeDetailsBuilder_ == null) { - if (stateChangeDetails_ != null) { - stateChangeDetails_ = - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.newBuilder(stateChangeDetails_).mergeFrom(value).buildPartial(); - } else { - stateChangeDetails_ = value; - } - onChanged(); - } else { - stateChangeDetailsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public Builder clearStateChangeDetails() { - if (stateChangeDetailsBuilder_ == null) { - stateChangeDetails_ = null; - onChanged(); - } else { - stateChangeDetails_ = null; - stateChangeDetailsBuilder_ = null; - } - - return this; - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder getStateChangeDetailsBuilder() { - - onChanged(); - return getStateChangeDetailsFieldBuilder().getBuilder(); - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder getStateChangeDetailsOrBuilder() { - if (stateChangeDetailsBuilder_ != null) { - return stateChangeDetailsBuilder_.getMessageOrBuilder(); - } else { - return stateChangeDetails_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance() : stateChangeDetails_; - } - } - /** - *
-       * Provides the details of the last stage change
-       * 
- * - * .flyteidl.admin.ExecutionStateChangeDetails state_change_details = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder> - getStateChangeDetailsFieldBuilder() { - if (stateChangeDetailsBuilder_ == null) { - stateChangeDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder>( - getStateChangeDetails(), - getParentForChildren(), - isClean()); - stateChangeDetails_ = null; - } - return stateChangeDetailsBuilder_; - } - @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.ExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClosure) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionClosure(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClosure(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.ExecutionOuterClass.ExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SystemMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SystemMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - java.lang.String getExecutionCluster(); - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - com.google.protobuf.ByteString - getExecutionClusterBytes(); - - /** - *
-     * Which kubernetes namespace the execution ran under.
-     * 
- * - * string namespace = 2; - */ - java.lang.String getNamespace(); - /** - *
-     * Which kubernetes namespace the execution ran under.
-     * 
- * - * string namespace = 2; - */ - com.google.protobuf.ByteString - getNamespaceBytes(); - } - /** - *
-   * Represents system, rather than user-facing, metadata about an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class SystemMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SystemMetadata) - SystemMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use SystemMetadata.newBuilder() to construct. - private SystemMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SystemMetadata() { - executionCluster_ = ""; - namespace_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SystemMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - executionCluster_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - namespace_ = s; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - public static final int EXECUTION_CLUSTER_FIELD_NUMBER = 1; - private volatile java.lang.Object executionCluster_; - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionCluster_ = s; - return s; - } - } - /** - *
-     * Which execution cluster this execution ran on.
-     * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMESPACE_FIELD_NUMBER = 2; - private volatile java.lang.Object namespace_; - /** - *
-     * Which kubernetes namespace the execution ran under.
-     * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - *
-     * Which kubernetes namespace the execution ran under.
-     * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getExecutionClusterBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionCluster_); - } - if (!getNamespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExecutionClusterBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionCluster_); - } - if (!getNamespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); - } - 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.ExecutionOuterClass.SystemMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.SystemMetadata other = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) obj; - - if (!getExecutionCluster() - .equals(other.getExecutionCluster())) return false; - if (!getNamespace() - .equals(other.getNamespace())) 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(); - hash = (37 * hash) + EXECUTION_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getExecutionCluster().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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.ExecutionOuterClass.SystemMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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.ExecutionOuterClass.SystemMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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.ExecutionOuterClass.SystemMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata 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.ExecutionOuterClass.SystemMetadata 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; - } - /** - *
-     * Represents system, rather than user-facing, metadata about an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.SystemMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SystemMetadata) - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.class, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.SystemMetadata.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(); - executionCluster_ = ""; - - namespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_SystemMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata build() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.SystemMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.SystemMetadata result = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(this); - result.executionCluster_ = executionCluster_; - result.namespace_ = namespace_; - 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.ExecutionOuterClass.SystemMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.SystemMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.SystemMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance()) return this; - if (!other.getExecutionCluster().isEmpty()) { - executionCluster_ = other.executionCluster_; - onChanged(); - } - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - onChanged(); - } - 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.ExecutionOuterClass.SystemMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.SystemMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object executionCluster_ = ""; - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public java.lang.String getExecutionCluster() { - java.lang.Object ref = executionCluster_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionCluster_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public com.google.protobuf.ByteString - getExecutionClusterBytes() { - java.lang.Object ref = executionCluster_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionCluster_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionCluster( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executionCluster_ = value; - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder clearExecutionCluster() { - - executionCluster_ = getDefaultInstance().getExecutionCluster(); - onChanged(); - return this; - } - /** - *
-       * Which execution cluster this execution ran on.
-       * 
- * - * string execution_cluster = 1; - */ - public Builder setExecutionClusterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executionCluster_ = value; - onChanged(); - return this; - } - - private java.lang.Object namespace_ = ""; - /** - *
-       * Which kubernetes namespace the execution ran under.
-       * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Which kubernetes namespace the execution ran under.
-       * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Which kubernetes namespace the execution ran under.
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - namespace_ = value; - onChanged(); - return this; - } - /** - *
-       * Which kubernetes namespace the execution ran under.
-       * 
- * - * string namespace = 2; - */ - public Builder clearNamespace() { - - namespace_ = getDefaultInstance().getNamespace(); - onChanged(); - return this; - } - /** - *
-       * Which kubernetes namespace the execution ran under.
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - namespace_ = value; - onChanged(); - return this; - } - @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.SystemMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SystemMetadata) - private static final flyteidl.admin.ExecutionOuterClass.SystemMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.SystemMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.SystemMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SystemMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SystemMetadata(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.ExecutionOuterClass.SystemMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - int getModeValue(); - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode(); - - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - *
-     * Indicates the nestedness of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - int getNesting(); - - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - boolean hasScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.Timestamp getScheduledAt(); - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder(); - - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - boolean hasParentNodeExecution(); - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution(); - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder(); - - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - boolean hasReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); - - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - boolean hasSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata(); - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder(); - - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - java.util.List - getArtifactIdsList(); - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - int getArtifactIdsCount(); - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - java.util.List - getArtifactIdsOrBuilderList(); - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index); - } - /** - *
-   * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-   * These attributes are assigned at launch time and do not change.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class ExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionMetadata) - ExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionMetadata.newBuilder() to construct. - private ExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionMetadata() { - mode_ = 0; - principal_ = ""; - artifactIds_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionMetadata( - 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 8: { - int rawValue = input.readEnum(); - - mode_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 24: { - - nesting_ = input.readUInt32(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (scheduledAt_ != null) { - subBuilder = scheduledAt_.toBuilder(); - } - scheduledAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduledAt_); - scheduledAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecution_ != null) { - subBuilder = parentNodeExecution_.toBuilder(); - } - parentNodeExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecution_); - parentNodeExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (referenceExecution_ != null) { - subBuilder = referenceExecution_.toBuilder(); - } - referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceExecution_); - referenceExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder subBuilder = null; - if (systemMetadata_ != null) { - subBuilder = systemMetadata_.toBuilder(); - } - systemMetadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.SystemMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(systemMetadata_); - systemMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 146: { - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - artifactIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000080; - } - artifactIds_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000080) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - /** - *
-     * The method by which this execution was launched.
-     * 
- * - * Protobuf enum {@code flyteidl.admin.ExecutionMetadata.ExecutionMode} - */ - public enum ExecutionMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - MANUAL(0), - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - SCHEDULED(1), - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - SYSTEM(2), - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - RELAUNCH(3), - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - CHILD_WORKFLOW(4), - /** - *
-       * This execution was recovered from another execution.
-       * 
- * - * RECOVERED = 5; - */ - RECOVERED(5), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The default execution mode, MANUAL implies that an execution was launched by an individual.
-       * 
- * - * MANUAL = 0; - */ - public static final int MANUAL_VALUE = 0; - /** - *
-       * A schedule triggered this execution launch.
-       * 
- * - * SCHEDULED = 1; - */ - public static final int SCHEDULED_VALUE = 1; - /** - *
-       * A system process was responsible for launching this execution rather an individual.
-       * 
- * - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - /** - *
-       * This execution was launched with identical inputs as a previous execution.
-       * 
- * - * RELAUNCH = 3; - */ - public static final int RELAUNCH_VALUE = 3; - /** - *
-       * This execution was triggered by another execution.
-       * 
- * - * CHILD_WORKFLOW = 4; - */ - public static final int CHILD_WORKFLOW_VALUE = 4; - /** - *
-       * This execution was recovered from another execution.
-       * 
- * - * RECOVERED = 5; - */ - public static final int RECOVERED_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExecutionMode valueOf(int value) { - return forNumber(value); - } - - public static ExecutionMode forNumber(int value) { - switch (value) { - case 0: return MANUAL; - case 1: return SCHEDULED; - case 2: return SYSTEM; - case 3: return RELAUNCH; - case 4: return CHILD_WORKFLOW; - case 5: return RECOVERED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ExecutionMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ExecutionMode findValueByNumber(int number) { - return ExecutionMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final ExecutionMode[] VALUES = values(); - - public static ExecutionMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ExecutionMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.ExecutionMetadata.ExecutionMode) - } - - private int bitField0_; - public static final int MODE_FIELD_NUMBER = 1; - private int mode_; - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - - public static final int PRINCIPAL_FIELD_NUMBER = 2; - private volatile java.lang.Object principal_; - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifier of the entity that triggered this execution.
-     * For systems using back-end authentication any value set here will be discarded in favor of the
-     * authenticated user context.
-     * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NESTING_FIELD_NUMBER = 3; - private int nesting_; - /** - *
-     * Indicates the nestedness of this execution.
-     * If a user launches a workflow execution, the default nesting is 0.
-     * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-     * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-     * nesting = k + 1.
-     * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - - public static final int SCHEDULED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp scheduledAt_; - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAt_ != null; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - /** - *
-     * For scheduled executions, the requested time for execution for this specific schedule invocation.
-     * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - return getScheduledAt(); - } - - public static final int PARENT_NODE_EXECUTION_FIELD_NUMBER = 5; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecution_ != null; - } - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - /** - *
-     * Which subworkflow node (if any) launched this execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - return getParentNodeExecution(); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 16; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecution_ != null; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - /** - *
-     * Optional, a reference workflow execution related to this execution.
-     * In the case of a relaunch, this references the original workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - return getReferenceExecution(); - } - - public static final int SYSTEM_METADATA_FIELD_NUMBER = 17; - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadata_ != null; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - /** - *
-     * Optional, platform-specific metadata about the execution.
-     * In this the future this may be gated behind an ACL or some sort of authorization.
-     * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - return getSystemMetadata(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 18; - private java.util.List artifactIds_; - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public int getArtifactIdsCount() { - return artifactIds_.size(); - } - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - return artifactIds_.get(index); - } - /** - *
-     * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-     * since we don't have a structure to handle nested ones anyways.
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - return artifactIds_.get(index); - } - - 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 (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - output.writeEnum(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, principal_); - } - if (nesting_ != 0) { - output.writeUInt32(3, nesting_); - } - if (scheduledAt_ != null) { - output.writeMessage(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - output.writeMessage(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - output.writeMessage(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - output.writeMessage(17, getSystemMetadata()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(18, artifactIds_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (mode_ != flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.MANUAL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, mode_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, principal_); - } - if (nesting_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, nesting_); - } - if (scheduledAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getScheduledAt()); - } - if (parentNodeExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getParentNodeExecution()); - } - if (referenceExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getReferenceExecution()); - } - if (systemMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getSystemMetadata()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, artifactIds_.get(i)); - } - 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.ExecutionOuterClass.ExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) obj; - - if (mode_ != other.mode_) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (getNesting() - != other.getNesting()) return false; - if (hasScheduledAt() != other.hasScheduledAt()) return false; - if (hasScheduledAt()) { - if (!getScheduledAt() - .equals(other.getScheduledAt())) return false; - } - if (hasParentNodeExecution() != other.hasParentNodeExecution()) return false; - if (hasParentNodeExecution()) { - if (!getParentNodeExecution() - .equals(other.getParentNodeExecution())) return false; - } - if (hasReferenceExecution() != other.hasReferenceExecution()) return false; - if (hasReferenceExecution()) { - if (!getReferenceExecution() - .equals(other.getReferenceExecution())) return false; - } - if (hasSystemMetadata() != other.hasSystemMetadata()) return false; - if (hasSystemMetadata()) { - if (!getSystemMetadata() - .equals(other.getSystemMetadata())) return false; - } - if (!getArtifactIdsList() - .equals(other.getArtifactIdsList())) 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(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (37 * hash) + NESTING_FIELD_NUMBER; - hash = (53 * hash) + getNesting(); - if (hasScheduledAt()) { - hash = (37 * hash) + SCHEDULED_AT_FIELD_NUMBER; - hash = (53 * hash) + getScheduledAt().hashCode(); - } - if (hasParentNodeExecution()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecution().hashCode(); - } - if (hasReferenceExecution()) { - hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getReferenceExecution().hashCode(); - } - if (hasSystemMetadata()) { - hash = (37 * hash) + SYSTEM_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getSystemMetadata().hashCode(); - } - if (getArtifactIdsCount() > 0) { - hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata 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.ExecutionOuterClass.ExecutionMetadata 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; - } - /** - *
-     * Represents attributes about an execution which are not required to launch the execution but are useful to record.
-     * These attributes are assigned at launch time and do not change.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionMetadata) - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.class, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactIdsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - mode_ = 0; - - principal_ = ""; - - nesting_ = 0; - - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - } else { - artifactIdsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata build() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata result = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.mode_ = mode_; - result.principal_ = principal_; - result.nesting_ = nesting_; - if (scheduledAtBuilder_ == null) { - result.scheduledAt_ = scheduledAt_; - } else { - result.scheduledAt_ = scheduledAtBuilder_.build(); - } - if (parentNodeExecutionBuilder_ == null) { - result.parentNodeExecution_ = parentNodeExecution_; - } else { - result.parentNodeExecution_ = parentNodeExecutionBuilder_.build(); - } - if (referenceExecutionBuilder_ == null) { - result.referenceExecution_ = referenceExecution_; - } else { - result.referenceExecution_ = referenceExecutionBuilder_.build(); - } - if (systemMetadataBuilder_ == null) { - result.systemMetadata_ = systemMetadata_; - } else { - result.systemMetadata_ = systemMetadataBuilder_.build(); - } - if (artifactIdsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.artifactIds_ = artifactIds_; - } else { - result.artifactIds_ = artifactIdsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.ExecutionOuterClass.ExecutionMetadata) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (other.getNesting() != 0) { - setNesting(other.getNesting()); - } - if (other.hasScheduledAt()) { - mergeScheduledAt(other.getScheduledAt()); - } - if (other.hasParentNodeExecution()) { - mergeParentNodeExecution(other.getParentNodeExecution()); - } - if (other.hasReferenceExecution()) { - mergeReferenceExecution(other.getReferenceExecution()); - } - if (other.hasSystemMetadata()) { - mergeSystemMetadata(other.getSystemMetadata()); - } - if (artifactIdsBuilder_ == null) { - if (!other.artifactIds_.isEmpty()) { - if (artifactIds_.isEmpty()) { - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureArtifactIdsIsMutable(); - artifactIds_.addAll(other.artifactIds_); - } - onChanged(); - } - } else { - if (!other.artifactIds_.isEmpty()) { - if (artifactIdsBuilder_.isEmpty()) { - artifactIdsBuilder_.dispose(); - artifactIdsBuilder_ = null; - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000080); - artifactIdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactIdsFieldBuilder() : null; - } else { - artifactIdsBuilder_.addAllMessages(other.artifactIds_); - } - } - } - 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.ExecutionOuterClass.ExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int mode_ = 0; - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public int getModeValue() { - return mode_; - } - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setModeValue(int value) { - mode_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode getMode() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode result = flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.valueOf(mode_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder setMode(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.ExecutionMode value) { - if (value == null) { - throw new NullPointerException(); - } - - mode_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.ExecutionMetadata.ExecutionMode mode = 1; - */ - public Builder clearMode() { - - mode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifier of the entity that triggered this execution.
-       * For systems using back-end authentication any value set here will be discarded in favor of the
-       * authenticated user context.
-       * 
- * - * string principal = 2; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private int nesting_ ; - /** - *
-       * Indicates the nestedness of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public int getNesting() { - return nesting_; - } - /** - *
-       * Indicates the nestedness of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder setNesting(int value) { - - nesting_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the nestedness of this execution.
-       * If a user launches a workflow execution, the default nesting is 0.
-       * If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1
-       * Generally, if workflow at nesting level k launches a workflow then the child workflow will have
-       * nesting = k + 1.
-       * 
- * - * uint32 nesting = 3; - */ - public Builder clearNesting() { - - nesting_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp scheduledAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> scheduledAtBuilder_; - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public boolean hasScheduledAt() { - return scheduledAtBuilder_ != null || scheduledAt_ != null; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp getScheduledAt() { - if (scheduledAtBuilder_ == null) { - return scheduledAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } else { - return scheduledAtBuilder_.getMessage(); - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduledAt_ = value; - onChanged(); - } else { - scheduledAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder setScheduledAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = builderForValue.build(); - onChanged(); - } else { - scheduledAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder mergeScheduledAt(com.google.protobuf.Timestamp value) { - if (scheduledAtBuilder_ == null) { - if (scheduledAt_ != null) { - scheduledAt_ = - com.google.protobuf.Timestamp.newBuilder(scheduledAt_).mergeFrom(value).buildPartial(); - } else { - scheduledAt_ = value; - } - onChanged(); - } else { - scheduledAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public Builder clearScheduledAt() { - if (scheduledAtBuilder_ == null) { - scheduledAt_ = null; - onChanged(); - } else { - scheduledAt_ = null; - scheduledAtBuilder_ = null; - } - - return this; - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getScheduledAtBuilder() { - - onChanged(); - return getScheduledAtFieldBuilder().getBuilder(); - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getScheduledAtOrBuilder() { - if (scheduledAtBuilder_ != null) { - return scheduledAtBuilder_.getMessageOrBuilder(); - } else { - return scheduledAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : scheduledAt_; - } - } - /** - *
-       * For scheduled executions, the requested time for execution for this specific schedule invocation.
-       * 
- * - * .google.protobuf.Timestamp scheduled_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getScheduledAtFieldBuilder() { - if (scheduledAtBuilder_ == null) { - scheduledAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getScheduledAt(), - getParentForChildren(), - isClean()); - scheduledAt_ = null; - } - return scheduledAtBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionBuilder_; - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public boolean hasParentNodeExecution() { - return parentNodeExecutionBuilder_ != null || parentNodeExecution_ != null; - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - return parentNodeExecution_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } else { - return parentNodeExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecution_ = value; - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder setParentNodeExecution( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder mergeParentNodeExecution(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionBuilder_ == null) { - if (parentNodeExecution_ != null) { - parentNodeExecution_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecution_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecution_ = value; - } - onChanged(); - } else { - parentNodeExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public Builder clearParentNodeExecution() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecution_ = null; - onChanged(); - } else { - parentNodeExecution_ = null; - parentNodeExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionBuilder() { - - onChanged(); - return getParentNodeExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionOrBuilder() { - if (parentNodeExecutionBuilder_ != null) { - return parentNodeExecutionBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecution_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecution_; - } - } - /** - *
-       * Which subworkflow node (if any) launched this execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionFieldBuilder() { - if (parentNodeExecutionBuilder_ == null) { - parentNodeExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecution(), - getParentForChildren(), - isClean()); - parentNodeExecution_ = null; - } - return parentNodeExecutionBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public boolean hasReferenceExecution() { - return referenceExecutionBuilder_ != null || referenceExecution_ != null; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } else { - return referenceExecutionBuilder_.getMessage(); - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - referenceExecution_ = value; - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder setReferenceExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = builderForValue.build(); - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (referenceExecution_ != null) { - referenceExecution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); - } else { - referenceExecution_ = value; - } - onChanged(); - } else { - referenceExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public Builder clearReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - onChanged(); - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { - - onChanged(); - return getReferenceExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - if (referenceExecutionBuilder_ != null) { - return referenceExecutionBuilder_.getMessageOrBuilder(); - } else { - return referenceExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - } - /** - *
-       * Optional, a reference workflow execution related to this execution.
-       * In the case of a relaunch, this references the original workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getReferenceExecutionFieldBuilder() { - if (referenceExecutionBuilder_ == null) { - referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getReferenceExecution(), - getParentForChildren(), - isClean()); - referenceExecution_ = null; - } - return referenceExecutionBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.SystemMetadata systemMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> systemMetadataBuilder_; - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public boolean hasSystemMetadata() { - return systemMetadataBuilder_ != null || systemMetadata_ != null; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata getSystemMetadata() { - if (systemMetadataBuilder_ == null) { - return systemMetadata_ == null ? flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } else { - return systemMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemMetadata_ = value; - onChanged(); - } else { - systemMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder setSystemMetadata( - flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder builderForValue) { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = builderForValue.build(); - onChanged(); - } else { - systemMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder mergeSystemMetadata(flyteidl.admin.ExecutionOuterClass.SystemMetadata value) { - if (systemMetadataBuilder_ == null) { - if (systemMetadata_ != null) { - systemMetadata_ = - flyteidl.admin.ExecutionOuterClass.SystemMetadata.newBuilder(systemMetadata_).mergeFrom(value).buildPartial(); - } else { - systemMetadata_ = value; - } - onChanged(); - } else { - systemMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public Builder clearSystemMetadata() { - if (systemMetadataBuilder_ == null) { - systemMetadata_ = null; - onChanged(); - } else { - systemMetadata_ = null; - systemMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder getSystemMetadataBuilder() { - - onChanged(); - return getSystemMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - public flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder getSystemMetadataOrBuilder() { - if (systemMetadataBuilder_ != null) { - return systemMetadataBuilder_.getMessageOrBuilder(); - } else { - return systemMetadata_ == null ? - flyteidl.admin.ExecutionOuterClass.SystemMetadata.getDefaultInstance() : systemMetadata_; - } - } - /** - *
-       * Optional, platform-specific metadata about the execution.
-       * In this the future this may be gated behind an ACL or some sort of authorization.
-       * 
- * - * .flyteidl.admin.SystemMetadata system_metadata = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder> - getSystemMetadataFieldBuilder() { - if (systemMetadataBuilder_ == null) { - systemMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.SystemMetadata, flyteidl.admin.ExecutionOuterClass.SystemMetadata.Builder, flyteidl.admin.ExecutionOuterClass.SystemMetadataOrBuilder>( - getSystemMetadata(), - getParentForChildren(), - isClean()); - systemMetadata_ = null; - } - return systemMetadataBuilder_; - } - - private java.util.List artifactIds_ = - java.util.Collections.emptyList(); - private void ensureArtifactIdsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - artifactIds_ = new java.util.ArrayList(artifactIds_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdsBuilder_; - - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public java.util.List getArtifactIdsList() { - if (artifactIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactIds_); - } else { - return artifactIdsBuilder_.getMessageList(); - } - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); - } else { - return artifactIdsBuilder_.getMessage(index); - } - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, value); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder addArtifactIds( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder addAllArtifactIds( - java.lang.Iterable values) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactIds_); - onChanged(); - } else { - artifactIdsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder clearArtifactIds() { - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - artifactIdsBuilder_.clear(); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public Builder removeArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.remove(index); - onChanged(); - } else { - artifactIdsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().getBuilder(index); - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); } else { - return artifactIdsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - if (artifactIdsBuilder_ != null) { - return artifactIdsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifactIds_); - } - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { - return getArtifactIdsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping
-       * since we don't have a structure to handle nested ones anyways.
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 18; - */ - public java.util.List - getArtifactIdsBuilderList() { - return getArtifactIdsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdsFieldBuilder() { - if (artifactIdsBuilder_ == null) { - artifactIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - artifactIds_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - artifactIds_ = null; - } - return artifactIdsBuilder_; - } - @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.ExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionMetadata) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionMetadata(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionMetadata(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.ExecutionOuterClass.ExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NotificationListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NotificationList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - int getNotificationsCount(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.NotificationList} - */ - public static final class NotificationList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NotificationList) - NotificationListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NotificationList.newBuilder() to construct. - private NotificationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NotificationList() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NotificationList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 1; - private java.util.List notifications_; - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.get(index); - } - - 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 { - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(1, notifications_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notifications_.get(i)); - } - 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.ExecutionOuterClass.NotificationList)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.NotificationList other = (flyteidl.admin.ExecutionOuterClass.NotificationList) obj; - - if (!getNotificationsList() - .equals(other.getNotificationsList())) 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 (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.NotificationList 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.ExecutionOuterClass.NotificationList 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; - } - /** - * Protobuf type {@code flyteidl.admin.NotificationList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NotificationList) - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.NotificationList.class, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - notificationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_NotificationList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList build() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.NotificationList buildPartial() { - flyteidl.admin.ExecutionOuterClass.NotificationList result = new flyteidl.admin.ExecutionOuterClass.NotificationList(this); - int from_bitField0_ = bitField0_; - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.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.ExecutionOuterClass.NotificationList) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.NotificationList other) { - if (other == flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) return this; - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000001); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - 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.ExecutionOuterClass.NotificationList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.NotificationList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Notification notifications = 1; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - @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.NotificationList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NotificationList) - private static final flyteidl.admin.ExecutionOuterClass.NotificationList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.NotificationList(); - } - - public static flyteidl.admin.ExecutionOuterClass.NotificationList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NotificationList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NotificationList(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.ExecutionOuterClass.NotificationList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - boolean hasLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan(); - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder(); - - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata(); - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - boolean hasNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications(); - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder(); - - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - boolean getDisableAll(); - - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - boolean hasLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - boolean hasAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - boolean hasSecurityContext(); - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - flyteidl.core.Security.SecurityContext getSecurityContext(); - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); - - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.AuthRole getAuthRole(); - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - *
-     * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
-     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-     * and parallelism/concurrency of MapTasks is independent from this.
-     * 
- * - * int32 max_parallelism = 18; - */ - int getMaxParallelism(); - - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - boolean hasRawOutputDataConfig(); - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); - - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - boolean hasClusterAssignment(); - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment(); - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder(); - - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - boolean hasInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - com.google.protobuf.BoolValue getInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); - - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 22; - */ - boolean getOverwriteCache(); - - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - boolean hasEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - flyteidl.admin.Common.Envs getEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); - - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - java.util.List - getTagsList(); - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - int getTagsCount(); - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - java.lang.String getTags(int index); - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec.NotificationOverridesCase getNotificationOverridesCase(); - } - /** - *
-   * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-   * of an execution as it progresses across phase changes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class ExecutionSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionSpec) - ExecutionSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionSpec.newBuilder() to construct. - private ExecutionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionSpec() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionSpec( - 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 (launchPlan_ != null) { - subBuilder = launchPlan_.toBuilder(); - } - launchPlan_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlan_); - launchPlan_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder subBuilder = null; - if (notificationOverridesCase_ == 5) { - subBuilder = ((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_).toBuilder(); - } - notificationOverrides_ = - input.readMessage(flyteidl.admin.ExecutionOuterClass.NotificationList.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - notificationOverrides_ = subBuilder.buildPartial(); - } - notificationOverridesCase_ = 5; - break; - } - case 48: { - notificationOverridesCase_ = 6; - notificationOverrides_ = input.readBool(); - break; - } - case 58: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - flyteidl.core.Security.SecurityContext.Builder subBuilder = null; - if (securityContext_ != null) { - subBuilder = securityContext_.toBuilder(); - } - securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityContext_); - securityContext_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = subBuilder.buildPartial(); - } - - break; - } - case 144: { - - maxParallelism_ = input.readInt32(); - break; - } - case 154: { - flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; - if (rawOutputDataConfig_ != null) { - subBuilder = rawOutputDataConfig_.toBuilder(); - } - rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawOutputDataConfig_); - rawOutputDataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 162: { - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder subBuilder = null; - if (clusterAssignment_ != null) { - subBuilder = clusterAssignment_.toBuilder(); - } - clusterAssignment_ = input.readMessage(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clusterAssignment_); - clusterAssignment_ = subBuilder.buildPartial(); - } - - break; - } - case 170: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (interruptible_ != null) { - subBuilder = interruptible_.toBuilder(); - } - interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interruptible_); - interruptible_ = subBuilder.buildPartial(); - } - - break; - } - case 176: { - - overwriteCache_ = input.readBool(); - break; - } - case 186: { - flyteidl.admin.Common.Envs.Builder subBuilder = null; - if (envs_ != null) { - subBuilder = envs_.toBuilder(); - } - envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(envs_); - envs_ = subBuilder.buildPartial(); - } - - break; - } - case 194: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00010000) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00010000; - } - tags_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00010000) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - private int bitField0_; - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public enum NotificationOverridesCase - implements com.google.protobuf.Internal.EnumLite { - NOTIFICATIONS(5), - DISABLE_ALL(6), - NOTIFICATIONOVERRIDES_NOT_SET(0); - private final int value; - private NotificationOverridesCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static NotificationOverridesCase valueOf(int value) { - return forNumber(value); - } - - public static NotificationOverridesCase forNumber(int value) { - switch (value) { - case 5: return NOTIFICATIONS; - case 6: return DISABLE_ALL; - case 0: return NOTIFICATIONOVERRIDES_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlan_ != null; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - /** - *
-     * Launch plan to be executed
-     * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - return getLaunchPlan(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * Input values to be passed for the execution
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for the execution
-     * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 5; - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-     * When this list is empty, the notifications defined for the launch plan will be applied.
-     * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - - public static final int DISABLE_ALL_FIELD_NUMBER = 6; - /** - *
-     * This should be set to true if all notifications are intended to be disabled for this execution.
-     * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - - public static final int LABELS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Labels to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 8; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Annotations to apply to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int SECURITY_CONTEXT_FIELD_NUMBER = 10; - private flyteidl.core.Security.SecurityContext securityContext_; - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public boolean hasSecurityContext() { - return securityContext_ != null; - } - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - /** - *
-     * Optional: security context override to apply this execution.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - return getSecurityContext(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 16; - private flyteidl.admin.Common.AuthRole authRole_; - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuthRole() { - return authRole_ != null; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - *
-     * Optional: auth override to apply this execution.
-     * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 17; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - public static final int MAX_PARALLELISM_FIELD_NUMBER = 18; - private int maxParallelism_; - /** - *
-     * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
-     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-     * and parallelism/concurrency of MapTasks is independent from this.
-     * 
- * - * int32 max_parallelism = 18; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - - public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 19; - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfig_ != null; - } - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - /** - *
-     * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-     * This should be a prefix like s3://my-bucket/my-data
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - return getRawOutputDataConfig(); - } - - public static final int CLUSTER_ASSIGNMENT_FIELD_NUMBER = 20; - private flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment clusterAssignment_; - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public boolean hasClusterAssignment() { - return clusterAssignment_ != null; - } - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { - return clusterAssignment_ == null ? flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; - } - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { - return getClusterAssignment(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 21; - private com.google.protobuf.BoolValue interruptible_; - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public boolean hasInterruptible() { - return interruptible_ != null; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public com.google.protobuf.BoolValue getInterruptible() { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - return getInterruptible(); - } - - public static final int OVERWRITE_CACHE_FIELD_NUMBER = 22; - private boolean overwriteCache_; - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 22; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - - public static final int ENVS_FIELD_NUMBER = 23; - private flyteidl.admin.Common.Envs envs_; - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public boolean hasEnvs() { - return envs_ != null; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public flyteidl.admin.Common.Envs getEnvs() { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - return getEnvs(); - } - - public static final int TAGS_FIELD_NUMBER = 24; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * Tags to be set for the execution.
-     * 
- * - * repeated string tags = 24; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - 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 (launchPlan_ != null) { - output.writeMessage(1, getLaunchPlan()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - output.writeMessage(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - output.writeMessage(7, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(8, getAnnotations()); - } - if (securityContext_ != null) { - output.writeMessage(10, getSecurityContext()); - } - if (authRole_ != null) { - output.writeMessage(16, getAuthRole()); - } - if (qualityOfService_ != null) { - output.writeMessage(17, getQualityOfService()); - } - if (maxParallelism_ != 0) { - output.writeInt32(18, maxParallelism_); - } - if (rawOutputDataConfig_ != null) { - output.writeMessage(19, getRawOutputDataConfig()); - } - if (clusterAssignment_ != null) { - output.writeMessage(20, getClusterAssignment()); - } - if (interruptible_ != null) { - output.writeMessage(21, getInterruptible()); - } - if (overwriteCache_ != false) { - output.writeBool(22, overwriteCache_); - } - if (envs_ != null) { - output.writeMessage(23, getEnvs()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 24, tags_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (launchPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getLaunchPlan()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (notificationOverridesCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_); - } - if (notificationOverridesCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) notificationOverrides_)); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAnnotations()); - } - if (securityContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSecurityContext()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getAuthRole()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getQualityOfService()); - } - if (maxParallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, maxParallelism_); - } - if (rawOutputDataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getRawOutputDataConfig()); - } - if (clusterAssignment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getClusterAssignment()); - } - if (interruptible_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getInterruptible()); - } - if (overwriteCache_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(22, overwriteCache_); - } - if (envs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnvs()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 2 * getTagsList().size(); - } - 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.ExecutionOuterClass.ExecutionSpec)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionSpec other = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) obj; - - if (hasLaunchPlan() != other.hasLaunchPlan()) return false; - if (hasLaunchPlan()) { - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasSecurityContext() != other.hasSecurityContext()) return false; - if (hasSecurityContext()) { - if (!getSecurityContext() - .equals(other.getSecurityContext())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (getMaxParallelism() - != other.getMaxParallelism()) return false; - if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; - if (hasRawOutputDataConfig()) { - if (!getRawOutputDataConfig() - .equals(other.getRawOutputDataConfig())) return false; - } - if (hasClusterAssignment() != other.hasClusterAssignment()) return false; - if (hasClusterAssignment()) { - if (!getClusterAssignment() - .equals(other.getClusterAssignment())) return false; - } - if (hasInterruptible() != other.hasInterruptible()) return false; - if (hasInterruptible()) { - if (!getInterruptible() - .equals(other.getInterruptible())) return false; - } - if (getOverwriteCache() - != other.getOverwriteCache()) return false; - if (hasEnvs() != other.hasEnvs()) return false; - if (hasEnvs()) { - if (!getEnvs() - .equals(other.getEnvs())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (!getNotificationOverridesCase().equals(other.getNotificationOverridesCase())) return false; - switch (notificationOverridesCase_) { - case 5: - if (!getNotifications() - .equals(other.getNotifications())) return false; - break; - case 6: - if (getDisableAll() - != other.getDisableAll()) 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(); - if (hasLaunchPlan()) { - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasSecurityContext()) { - hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSecurityContext().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + getMaxParallelism(); - if (hasRawOutputDataConfig()) { - hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRawOutputDataConfig().hashCode(); - } - if (hasClusterAssignment()) { - hash = (37 * hash) + CLUSTER_ASSIGNMENT_FIELD_NUMBER; - hash = (53 * hash) + getClusterAssignment().hashCode(); - } - if (hasInterruptible()) { - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + getInterruptible().hashCode(); - } - hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOverwriteCache()); - if (hasEnvs()) { - hash = (37 * hash) + ENVS_FIELD_NUMBER; - hash = (53 * hash) + getEnvs().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - switch (notificationOverridesCase_) { - case 5: - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotifications().hashCode(); - break; - case 6: - hash = (37 * hash) + DISABLE_ALL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisableAll()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec 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.ExecutionOuterClass.ExecutionSpec 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; - } - /** - *
-     * An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime
-     * of an execution as it progresses across phase changes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionSpec) - flyteidl.admin.ExecutionOuterClass.ExecutionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionSpec.class, flyteidl.admin.ExecutionOuterClass.ExecutionSpec.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionSpec.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 (launchPlanBuilder_ == null) { - launchPlan_ = null; - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (securityContextBuilder_ == null) { - securityContext_ = null; - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - maxParallelism_ = 0; - - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - if (clusterAssignmentBuilder_ == null) { - clusterAssignment_ = null; - } else { - clusterAssignment_ = null; - clusterAssignmentBuilder_ = null; - } - if (interruptibleBuilder_ == null) { - interruptible_ = null; - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - overwriteCache_ = false; - - if (envsBuilder_ == null) { - envs_ = null; - } else { - envs_ = null; - envsBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00010000); - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec build() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionSpec buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionSpec result = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (launchPlanBuilder_ == null) { - result.launchPlan_ = launchPlan_; - } else { - result.launchPlan_ = launchPlanBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (notificationOverridesCase_ == 5) { - if (notificationsBuilder_ == null) { - result.notificationOverrides_ = notificationOverrides_; - } else { - result.notificationOverrides_ = notificationsBuilder_.build(); - } - } - if (notificationOverridesCase_ == 6) { - result.notificationOverrides_ = notificationOverrides_; - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (securityContextBuilder_ == null) { - result.securityContext_ = securityContext_; - } else { - result.securityContext_ = securityContextBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.maxParallelism_ = maxParallelism_; - if (rawOutputDataConfigBuilder_ == null) { - result.rawOutputDataConfig_ = rawOutputDataConfig_; - } else { - result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); - } - if (clusterAssignmentBuilder_ == null) { - result.clusterAssignment_ = clusterAssignment_; - } else { - result.clusterAssignment_ = clusterAssignmentBuilder_.build(); - } - if (interruptibleBuilder_ == null) { - result.interruptible_ = interruptible_; - } else { - result.interruptible_ = interruptibleBuilder_.build(); - } - result.overwriteCache_ = overwriteCache_; - if (envsBuilder_ == null) { - result.envs_ = envs_; - } else { - result.envs_ = envsBuilder_.build(); - } - if (((bitField0_ & 0x00010000) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.tags_ = tags_; - result.bitField0_ = to_bitField0_; - result.notificationOverridesCase_ = notificationOverridesCase_; - 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.ExecutionOuterClass.ExecutionSpec) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionSpec other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionSpec.getDefaultInstance()) return this; - if (other.hasLaunchPlan()) { - mergeLaunchPlan(other.getLaunchPlan()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasSecurityContext()) { - mergeSecurityContext(other.getSecurityContext()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - if (other.getMaxParallelism() != 0) { - setMaxParallelism(other.getMaxParallelism()); - } - if (other.hasRawOutputDataConfig()) { - mergeRawOutputDataConfig(other.getRawOutputDataConfig()); - } - if (other.hasClusterAssignment()) { - mergeClusterAssignment(other.getClusterAssignment()); - } - if (other.hasInterruptible()) { - mergeInterruptible(other.getInterruptible()); - } - if (other.getOverwriteCache() != false) { - setOverwriteCache(other.getOverwriteCache()); - } - if (other.hasEnvs()) { - mergeEnvs(other.getEnvs()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - switch (other.getNotificationOverridesCase()) { - case NOTIFICATIONS: { - mergeNotifications(other.getNotifications()); - break; - } - case DISABLE_ALL: { - setDisableAll(other.getDisableAll()); - break; - } - case NOTIFICATIONOVERRIDES_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.ExecutionOuterClass.ExecutionSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int notificationOverridesCase_ = 0; - private java.lang.Object notificationOverrides_; - public NotificationOverridesCase - getNotificationOverridesCase() { - return NotificationOverridesCase.forNumber( - notificationOverridesCase_); - } - - public Builder clearNotificationOverrides() { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlan_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanBuilder_; - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public boolean hasLaunchPlan() { - return launchPlanBuilder_ != null || launchPlan_ != null; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlan() { - if (launchPlanBuilder_ == null) { - return launchPlan_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } else { - return launchPlanBuilder_.getMessage(); - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlan_ = value; - onChanged(); - } else { - launchPlanBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder setLaunchPlan( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanBuilder_ == null) { - launchPlan_ = builderForValue.build(); - onChanged(); - } else { - launchPlanBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder mergeLaunchPlan(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanBuilder_ == null) { - if (launchPlan_ != null) { - launchPlan_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlan_).mergeFrom(value).buildPartial(); - } else { - launchPlan_ = value; - } - onChanged(); - } else { - launchPlanBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public Builder clearLaunchPlan() { - if (launchPlanBuilder_ == null) { - launchPlan_ = null; - onChanged(); - } else { - launchPlan_ = null; - launchPlanBuilder_ = null; - } - - return this; - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanBuilder() { - - onChanged(); - return getLaunchPlanFieldBuilder().getBuilder(); - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanOrBuilder() { - if (launchPlanBuilder_ != null) { - return launchPlanBuilder_.getMessageOrBuilder(); - } else { - return launchPlan_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlan_; - } - } - /** - *
-       * Launch plan to be executed
-       * 
- * - * .flyteidl.core.Identifier launch_plan = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanFieldBuilder() { - if (launchPlanBuilder_ == null) { - launchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlan(), - getParentForChildren(), - isClean()); - launchPlan_ = null; - } - return launchPlanBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Input values to be passed for the execution
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.ExecutionOuterClass.ExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.admin.ExecutionOuterClass.ExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for the execution
-       * 
- * - * .flyteidl.admin.ExecutionMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.ExecutionMetadata, flyteidl.admin.ExecutionOuterClass.ExecutionMetadata.Builder, flyteidl.admin.ExecutionOuterClass.ExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> notificationsBuilder_; - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public boolean hasNotifications() { - return notificationOverridesCase_ == 5; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList getNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } else { - if (notificationOverridesCase_ == 5) { - return notificationsBuilder_.getMessage(); - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - notificationOverrides_ = value; - onChanged(); - } else { - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder setNotifications( - flyteidl.admin.ExecutionOuterClass.NotificationList.Builder builderForValue) { - if (notificationsBuilder_ == null) { - notificationOverrides_ = builderForValue.build(); - onChanged(); - } else { - notificationsBuilder_.setMessage(builderForValue.build()); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder mergeNotifications(flyteidl.admin.ExecutionOuterClass.NotificationList value) { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5 && - notificationOverrides_ != flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance()) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.newBuilder((flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_) - .mergeFrom(value).buildPartial(); - } else { - notificationOverrides_ = value; - } - onChanged(); - } else { - if (notificationOverridesCase_ == 5) { - notificationsBuilder_.mergeFrom(value); - } - notificationsBuilder_.setMessage(value); - } - notificationOverridesCase_ = 5; - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - } else { - if (notificationOverridesCase_ == 5) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - } - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationList.Builder getNotificationsBuilder() { - return getNotificationsFieldBuilder().getBuilder(); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - public flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder getNotificationsOrBuilder() { - if ((notificationOverridesCase_ == 5) && (notificationsBuilder_ != null)) { - return notificationsBuilder_.getMessageOrBuilder(); - } else { - if (notificationOverridesCase_ == 5) { - return (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_; - } - return flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * When this list is not empty it is used rather than any notifications defined in the referenced launch plan.
-       * When this list is empty, the notifications defined for the launch plan will be applied.
-       * 
- * - * .flyteidl.admin.NotificationList notifications = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - if (!(notificationOverridesCase_ == 5)) { - notificationOverrides_ = flyteidl.admin.ExecutionOuterClass.NotificationList.getDefaultInstance(); - } - notificationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ExecutionOuterClass.NotificationList, flyteidl.admin.ExecutionOuterClass.NotificationList.Builder, flyteidl.admin.ExecutionOuterClass.NotificationListOrBuilder>( - (flyteidl.admin.ExecutionOuterClass.NotificationList) notificationOverrides_, - getParentForChildren(), - isClean()); - notificationOverrides_ = null; - } - notificationOverridesCase_ = 5; - onChanged();; - return notificationsBuilder_; - } - - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public boolean getDisableAll() { - if (notificationOverridesCase_ == 6) { - return (java.lang.Boolean) notificationOverrides_; - } - return false; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder setDisableAll(boolean value) { - notificationOverridesCase_ = 6; - notificationOverrides_ = value; - onChanged(); - return this; - } - /** - *
-       * This should be set to true if all notifications are intended to be disabled for this execution.
-       * 
- * - * bool disable_all = 6; - */ - public Builder clearDisableAll() { - if (notificationOverridesCase_ == 6) { - notificationOverridesCase_ = 0; - notificationOverrides_ = null; - onChanged(); - } - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Labels to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Annotations to apply to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.core.Security.SecurityContext securityContext_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public boolean hasSecurityContext() { - return securityContextBuilder_ != null || securityContext_ != null; - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - if (securityContextBuilder_ == null) { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } else { - return securityContextBuilder_.getMessage(); - } - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityContext_ = value; - onChanged(); - } else { - securityContextBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder setSecurityContext( - flyteidl.core.Security.SecurityContext.Builder builderForValue) { - if (securityContextBuilder_ == null) { - securityContext_ = builderForValue.build(); - onChanged(); - } else { - securityContextBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (securityContext_ != null) { - securityContext_ = - flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); - } else { - securityContext_ = value; - } - onChanged(); - } else { - securityContextBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder clearSecurityContext() { - if (securityContextBuilder_ == null) { - securityContext_ = null; - onChanged(); - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { - - onChanged(); - return getSecurityContextFieldBuilder().getBuilder(); - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - if (securityContextBuilder_ != null) { - return securityContextBuilder_.getMessageOrBuilder(); - } else { - return securityContext_ == null ? - flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - } - /** - *
-       * Optional: security context override to apply this execution.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> - getSecurityContextFieldBuilder() { - if (securityContextBuilder_ == null) { - securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( - getSecurityContext(), - getParentForChildren(), - isClean()); - securityContext_ = null; - } - return securityContextBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - *
-       * Optional: auth override to apply this execution.
-       * 
- * - * .flyteidl.admin.AuthRole auth_role = 16 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - - private int maxParallelism_ ; - /** - *
-       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - /** - *
-       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public Builder setMaxParallelism(int value) { - - maxParallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Controls the maximum number of task nodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public Builder clearMaxParallelism() { - - maxParallelism_ = 0; - onChanged(); - return this; - } - - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } else { - return rawOutputDataConfigBuilder_.getMessage(); - } - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawOutputDataConfig_ = value; - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public Builder setRawOutputDataConfig( - flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = builderForValue.build(); - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (rawOutputDataConfig_ != null) { - rawOutputDataConfig_ = - flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); - } else { - rawOutputDataConfig_ = value; - } - onChanged(); - } else { - rawOutputDataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public Builder clearRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - onChanged(); - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { - - onChanged(); - return getRawOutputDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - if (rawOutputDataConfigBuilder_ != null) { - return rawOutputDataConfigBuilder_.getMessageOrBuilder(); - } else { - return rawOutputDataConfig_ == null ? - flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - } - /** - *
-       * User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.).
-       * This should be a prefix like s3://my-bucket/my-data
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> - getRawOutputDataConfigFieldBuilder() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( - getRawOutputDataConfig(), - getParentForChildren(), - isClean()); - rawOutputDataConfig_ = null; - } - return rawOutputDataConfigBuilder_; - } - - private flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment clusterAssignment_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> clusterAssignmentBuilder_; - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public boolean hasClusterAssignment() { - return clusterAssignmentBuilder_ != null || clusterAssignment_ != null; - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { - if (clusterAssignmentBuilder_ == null) { - return clusterAssignment_ == null ? flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; - } else { - return clusterAssignmentBuilder_.getMessage(); - } - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public Builder setClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { - if (clusterAssignmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clusterAssignment_ = value; - onChanged(); - } else { - clusterAssignmentBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public Builder setClusterAssignment( - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder builderForValue) { - if (clusterAssignmentBuilder_ == null) { - clusterAssignment_ = builderForValue.build(); - onChanged(); - } else { - clusterAssignmentBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public Builder mergeClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { - if (clusterAssignmentBuilder_ == null) { - if (clusterAssignment_ != null) { - clusterAssignment_ = - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.newBuilder(clusterAssignment_).mergeFrom(value).buildPartial(); - } else { - clusterAssignment_ = value; - } - onChanged(); - } else { - clusterAssignmentBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public Builder clearClusterAssignment() { - if (clusterAssignmentBuilder_ == null) { - clusterAssignment_ = null; - onChanged(); - } else { - clusterAssignment_ = null; - clusterAssignmentBuilder_ = null; - } - - return this; - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder getClusterAssignmentBuilder() { - - onChanged(); - return getClusterAssignmentFieldBuilder().getBuilder(); - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { - if (clusterAssignmentBuilder_ != null) { - return clusterAssignmentBuilder_.getMessageOrBuilder(); - } else { - return clusterAssignment_ == null ? - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance() : clusterAssignment_; - } - } - /** - *
-       * Controls how to select an available cluster on which this execution should run.
-       * 
- * - * .flyteidl.admin.ClusterAssignment cluster_assignment = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> - getClusterAssignmentFieldBuilder() { - if (clusterAssignmentBuilder_ == null) { - clusterAssignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder>( - getClusterAssignment(), - getParentForChildren(), - isClean()); - clusterAssignment_ = null; - } - return clusterAssignmentBuilder_; - } - - private com.google.protobuf.BoolValue interruptible_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public boolean hasInterruptible() { - return interruptibleBuilder_ != null || interruptible_ != null; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public com.google.protobuf.BoolValue getInterruptible() { - if (interruptibleBuilder_ == null) { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } else { - return interruptibleBuilder_.getMessage(); - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public Builder setInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interruptible_ = value; - onChanged(); - } else { - interruptibleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public Builder setInterruptible( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (interruptibleBuilder_ == null) { - interruptible_ = builderForValue.build(); - onChanged(); - } else { - interruptibleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (interruptible_ != null) { - interruptible_ = - com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); - } else { - interruptible_ = value; - } - onChanged(); - } else { - interruptibleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public Builder clearInterruptible() { - if (interruptibleBuilder_ == null) { - interruptible_ = null; - onChanged(); - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { - - onChanged(); - return getInterruptibleFieldBuilder().getBuilder(); - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - if (interruptibleBuilder_ != null) { - return interruptibleBuilder_.getMessageOrBuilder(); - } else { - return interruptible_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getInterruptibleFieldBuilder() { - if (interruptibleBuilder_ == null) { - interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getInterruptible(), - getParentForChildren(), - isClean()); - interruptible_ = null; - } - return interruptibleBuilder_; - } - - private boolean overwriteCache_ ; - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 22; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 22; - */ - public Builder setOverwriteCache(boolean value) { - - overwriteCache_ = value; - onChanged(); - return this; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 22; - */ - public Builder clearOverwriteCache() { - - overwriteCache_ = false; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Envs envs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public boolean hasEnvs() { - return envsBuilder_ != null || envs_ != null; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public flyteidl.admin.Common.Envs getEnvs() { - if (envsBuilder_ == null) { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } else { - return envsBuilder_.getMessage(); - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public Builder setEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - envs_ = value; - onChanged(); - } else { - envsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public Builder setEnvs( - flyteidl.admin.Common.Envs.Builder builderForValue) { - if (envsBuilder_ == null) { - envs_ = builderForValue.build(); - onChanged(); - } else { - envsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (envs_ != null) { - envs_ = - flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); - } else { - envs_ = value; - } - onChanged(); - } else { - envsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public Builder clearEnvs() { - if (envsBuilder_ == null) { - envs_ = null; - onChanged(); - } else { - envs_ = null; - envsBuilder_ = null; - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { - - onChanged(); - return getEnvsFieldBuilder().getBuilder(); - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - if (envsBuilder_ != null) { - return envsBuilder_.getMessageOrBuilder(); - } else { - return envs_ == null ? - flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> - getEnvsFieldBuilder() { - if (envsBuilder_ == null) { - envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( - getEnvs(), - getParentForChildren(), - isClean()); - envs_ = null; - } - return envsBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00010000; - } - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - return this; - } - /** - *
-       * Tags to be set for the execution.
-       * 
- * - * repeated string tags = 24; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - @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.ExecutionSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionSpec) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionSpec(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionSpec(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.ExecutionOuterClass.ExecutionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - java.lang.String getCause(); - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - com.google.protobuf.ByteString - getCauseBytes(); - } - /** - *
-   * Request to terminate an in-progress execution.  This action is irreversible.
-   * If an execution is already terminated, this request will simply be a no-op.
-   * This request will fail if it references a non-existent execution.
-   * If the request succeeds the phase "ABORTED" will be recorded for the termination
-   * with the optional cause added to the output_result.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class ExecutionTerminateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateRequest) - ExecutionTerminateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateRequest.newBuilder() to construct. - private ExecutionTerminateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateRequest() { - cause_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - cause_ = s; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies the individual workflow execution to be terminated.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CAUSE_FIELD_NUMBER = 2; - private volatile java.lang.Object cause_; - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } - } - /** - *
-     * Optional reason for aborting.
-     * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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()); - } - if (!getCauseBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, cause_); - } - 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()); - } - if (!getCauseBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, cause_); - } - 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.ExecutionOuterClass.ExecutionTerminateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getCause() - .equals(other.getCause())) 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 = (37 * hash) + CAUSE_FIELD_NUMBER; - hash = (53 * hash) + getCause().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest 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.ExecutionOuterClass.ExecutionTerminateRequest 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; - } - /** - *
-     * Request to terminate an in-progress execution.  This action is irreversible.
-     * If an execution is already terminated, this request will simply be a no-op.
-     * This request will fail if it references a non-existent execution.
-     * If the request succeeds the phase "ABORTED" will be recorded for the termination
-     * with the optional cause added to the output_result.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.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; - } - cause_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.cause_ = cause_; - 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.ExecutionOuterClass.ExecutionTerminateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getCause().isEmpty()) { - cause_ = other.cause_; - onChanged(); - } - 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.ExecutionOuterClass.ExecutionTerminateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies the individual workflow execution to be terminated.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object cause_ = ""; - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public java.lang.String getCause() { - java.lang.Object ref = cause_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cause_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public com.google.protobuf.ByteString - getCauseBytes() { - java.lang.Object ref = cause_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cause_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCause( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cause_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder clearCause() { - - cause_ = getDefaultInstance().getCause(); - onChanged(); - return this; - } - /** - *
-       * Optional reason for aborting.
-       * 
- * - * string cause = 2; - */ - public Builder setCauseBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cause_ = value; - onChanged(); - return this; - } - @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.ExecutionTerminateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateRequest(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.ExecutionOuterClass.ExecutionTerminateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionTerminateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionTerminateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class ExecutionTerminateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionTerminateResponse) - ExecutionTerminateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionTerminateResponse.newBuilder() to construct. - private ExecutionTerminateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionTerminateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionTerminateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ExecutionOuterClass.ExecutionTerminateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse 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.ExecutionOuterClass.ExecutionTerminateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ExecutionTerminateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionTerminateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(this); - 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.ExecutionOuterClass.ExecutionTerminateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse.getDefaultInstance()) return this; - 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.ExecutionOuterClass.ExecutionTerminateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ExecutionTerminateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionTerminateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionTerminateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionTerminateResponse(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.ExecutionOuterClass.ExecutionTerminateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs, output and other data produced by an execution.
-   * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest`
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class WorkflowExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - WorkflowExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataRequest.newBuilder() to construct. - private WorkflowExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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.ExecutionOuterClass.WorkflowExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs, output and other data produced by an execution.
-     * By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest`
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(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.ExecutionOuterClass.WorkflowExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest.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.ExecutionOuterClass.WorkflowExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - 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.WorkflowExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataRequest(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.ExecutionOuterClass.WorkflowExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - boolean hasFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMap getFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); - - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - boolean hasFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); - } - /** - *
-   * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class WorkflowExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - WorkflowExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetDataResponse.newBuilder() to construct. - private WorkflowExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetDataResponse( - 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.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullInputs_ != null) { - subBuilder = fullInputs_.toBuilder(); - } - fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullInputs_); - fullInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullOutputs_ != null) { - subBuilder = fullOutputs_.toBuilder(); - } - fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullOutputs_); - fullOutputs_ = 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - public static final int OUTPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int FULL_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap fullInputs_; - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputs_ != null; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - return getFullInputs(); - } - - public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fullOutputs_; - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputs_ != null; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - return getFullOutputs(); - } - - 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 (outputs_ != null) { - output.writeMessage(1, getOutputs()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - if (fullInputs_ != null) { - output.writeMessage(3, getFullInputs()); - } - if (fullOutputs_ != null) { - output.writeMessage(4, getFullOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOutputs()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - if (fullInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFullInputs()); - } - if (fullOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFullOutputs()); - } - 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) obj; - - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasFullInputs() != other.hasFullInputs()) return false; - if (hasFullInputs()) { - if (!getFullInputs() - .equals(other.getFullInputs())) return false; - } - if (hasFullOutputs() != other.hasFullOutputs()) return false; - if (hasFullOutputs()) { - if (!getFullOutputs() - .equals(other.getFullOutputs())) 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 (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasFullInputs()) { - hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullInputs().hashCode(); - } - if (hasFullOutputs()) { - hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetDataResponse) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.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 (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(this); - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (fullInputsBuilder_ == null) { - result.fullInputs_ = fullInputs_; - } else { - result.fullInputs_ = fullInputsBuilder_.build(); - } - if (fullOutputsBuilder_ == null) { - result.fullOutputs_ = fullOutputs_; - } else { - result.fullOutputs_ = fullOutputsBuilder_.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.ExecutionOuterClass.WorkflowExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasFullInputs()) { - mergeFullInputs(other.getFullInputs()); - } - if (other.hasFullOutputs()) { - mergeFullOutputs(other.getFullOutputs()); - } - 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.ExecutionOuterClass.WorkflowExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputsBuilder_ != null || fullInputs_ != null; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - if (fullInputsBuilder_ == null) { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } else { - return fullInputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullInputs_ = value; - onChanged(); - } else { - fullInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullInputsBuilder_ == null) { - fullInputs_ = builderForValue.build(); - onChanged(); - } else { - fullInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (fullInputs_ != null) { - fullInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); - } else { - fullInputs_ = value; - } - onChanged(); - } else { - fullInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder clearFullInputs() { - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - onChanged(); - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { - - onChanged(); - return getFullInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - if (fullInputsBuilder_ != null) { - return fullInputsBuilder_.getMessageOrBuilder(); - } else { - return fullInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullInputsFieldBuilder() { - if (fullInputsBuilder_ == null) { - fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullInputs(), - getParentForChildren(), - isClean()); - fullInputs_ = null; - } - return fullInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputsBuilder_ != null || fullOutputs_ != null; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - if (fullOutputsBuilder_ == null) { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } else { - return fullOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullOutputs_ = value; - onChanged(); - } else { - fullOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = builderForValue.build(); - onChanged(); - } else { - fullOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (fullOutputs_ != null) { - fullOutputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); - } else { - fullOutputs_ = value; - } - onChanged(); - } else { - fullOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder clearFullOutputs() { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - onChanged(); - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { - - onChanged(); - return getFullOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - if (fullOutputsBuilder_ != null) { - return fullOutputsBuilder_.getMessageOrBuilder(); - } else { - return fullOutputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullOutputsFieldBuilder() { - if (fullOutputsBuilder_ == null) { - fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullOutputs(), - getParentForChildren(), - isClean()); - fullOutputs_ = null; - } - return fullOutputsBuilder_; - } - @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.WorkflowExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetDataResponse) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetDataResponse(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.ExecutionOuterClass.WorkflowExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * State to set as the new value active/archive
-     * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - int getStateValue(); - /** - *
-     * State to set as the new value active/archive
-     * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionState getState(); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionUpdateRequest} - */ - public static final class ExecutionUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionUpdateRequest) - ExecutionUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionUpdateRequest.newBuilder() to construct. - private ExecutionUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionUpdateRequest() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionUpdateRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of the execution to update
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * State to set as the new value active/archive
-     * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * State to set as the new value active/archive
-     * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; - } - - 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()); - } - if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - 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()); - } - if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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.ExecutionOuterClass.ExecutionUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest other = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (state_ != other.state_) 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 = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest 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.ExecutionOuterClass.ExecutionUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest 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.ExecutionOuterClass.ExecutionUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest 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.ExecutionOuterClass.ExecutionUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest 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.ExecutionOuterClass.ExecutionUpdateRequest 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; - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionUpdateRequest) - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.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; - } - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest build() { - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest result = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.state_ = state_; - 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.ExecutionOuterClass.ExecutionUpdateRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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.ExecutionOuterClass.ExecutionUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Identifier of the execution to update
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int state_ = 0; - /** - *
-       * State to set as the new value active/archive
-       * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * State to set as the new value active/archive
-       * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * State to set as the new value active/archive
-       * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; - } - /** - *
-       * State to set as the new value active/archive
-       * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public Builder setState(flyteidl.admin.ExecutionOuterClass.ExecutionState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * State to set as the new value active/archive
-       * 
- * - * .flyteidl.admin.ExecutionState state = 2; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - @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.ExecutionUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateRequest) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionUpdateRequest(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.ExecutionOuterClass.ExecutionUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionStateChangeDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionStateChangeDetails) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - int getStateValue(); - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - flyteidl.admin.ExecutionOuterClass.ExecutionState getState(); - - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * Identifies the entity (if any) responsible for causing the state change of the execution
-     * 
- * - * string principal = 3; - */ - java.lang.String getPrincipal(); - /** - *
-     * Identifies the entity (if any) responsible for causing the state change of the execution
-     * 
- * - * string principal = 3; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionStateChangeDetails} - */ - public static final class ExecutionStateChangeDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionStateChangeDetails) - ExecutionStateChangeDetailsOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionStateChangeDetails.newBuilder() to construct. - private ExecutionStateChangeDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionStateChangeDetails() { - state_ = 0; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionStateChangeDetails( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.class, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the state changed.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int PRINCIPAL_FIELD_NUMBER = 3; - private volatile java.lang.Object principal_; - /** - *
-     * Identifies the entity (if any) responsible for causing the state change of the execution
-     * 
- * - * string principal = 3; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - *
-     * Identifies the entity (if any) responsible for causing the state change of the execution
-     * 
- * - * string principal = 3; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { - output.writeEnum(1, state_); - } - if (occurredAt_ != null) { - output.writeMessage(2, getOccurredAt()); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.admin.ExecutionOuterClass.ExecutionState.EXECUTION_ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOccurredAt()); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, principal_); - } - 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.ExecutionOuterClass.ExecutionStateChangeDetails)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails other = (flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails) obj; - - if (state_ != other.state_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getPrincipal() - .equals(other.getPrincipal())) 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(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails 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.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails 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.ExecutionOuterClass.ExecutionStateChangeDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails 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.ExecutionOuterClass.ExecutionStateChangeDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails 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.ExecutionOuterClass.ExecutionStateChangeDetails 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; - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionStateChangeDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionStateChangeDetails) - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.class, flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.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(); - state_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails build() { - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails result = new flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails(this); - result.state_ = state_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.principal_ = principal_; - 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.ExecutionOuterClass.ExecutionStateChangeDetails) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - 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.ExecutionOuterClass.ExecutionStateChangeDetails parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public flyteidl.admin.ExecutionOuterClass.ExecutionState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ExecutionOuterClass.ExecutionState result = flyteidl.admin.ExecutionOuterClass.ExecutionState.valueOf(state_); - return result == null ? flyteidl.admin.ExecutionOuterClass.ExecutionState.UNRECOGNIZED : result; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public Builder setState(flyteidl.admin.ExecutionOuterClass.ExecutionState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.admin.ExecutionState state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the state changed.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Identifies the entity (if any) responsible for causing the state change of the execution
-       * 
- * - * string principal = 3; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for causing the state change of the execution
-       * 
- * - * string principal = 3; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifies the entity (if any) responsible for causing the state change of the execution
-       * 
- * - * string principal = 3; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for causing the state change of the execution
-       * 
- * - * string principal = 3; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Identifies the entity (if any) responsible for causing the state change of the execution
-       * 
- * - * string principal = 3; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - @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.ExecutionStateChangeDetails) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionStateChangeDetails) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionStateChangeDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionStateChangeDetails(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.ExecutionOuterClass.ExecutionStateChangeDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionUpdateResponse} - */ - public static final class ExecutionUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionUpdateResponse) - ExecutionUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionUpdateResponse.newBuilder() to construct. - private ExecutionUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ExecutionOuterClass.ExecutionUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse other = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse 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.ExecutionOuterClass.ExecutionUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse 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.ExecutionOuterClass.ExecutionUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse 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.ExecutionOuterClass.ExecutionUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse 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.ExecutionOuterClass.ExecutionUpdateResponse 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; - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionUpdateResponse) - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.class, flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse build() { - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse result = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse(this); - 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.ExecutionOuterClass.ExecutionUpdateResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse.getDefaultInstance()) return this; - 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.ExecutionOuterClass.ExecutionUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ExecutionUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionUpdateResponse) - private static final flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionUpdateResponse(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.ExecutionOuterClass.ExecutionUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetMetricsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId(); - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
-     * 
- * - * int32 depth = 2; - */ - int getDepth(); - } - /** - *
-   * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsRequest} - */ - public static final class WorkflowExecutionGetMetricsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - WorkflowExecutionGetMetricsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetMetricsRequest.newBuilder() to construct. - private WorkflowExecutionGetMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetMetricsRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetMetricsRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - depth_ = input.readInt32(); - 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * id defines the workflow execution to query for.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int DEPTH_FIELD_NUMBER = 2; - private int depth_; - /** - *
-     * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
-     * 
- * - * int32 depth = 2; - */ - public int getDepth() { - return depth_; - } - - 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()); - } - if (depth_ != 0) { - output.writeInt32(2, depth_); - } - 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()); - } - if (depth_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, depth_); - } - 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (getDepth() - != other.getDepth()) 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 = (37 * hash) + DEPTH_FIELD_NUMBER; - hash = (53 * hash) + getDepth(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest 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; - } - /** - *
-     * WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.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; - } - depth_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.depth_ = depth_; - 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.getDepth() != 0) { - setDepth(other.getDepth()); - } - 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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * id defines the workflow execution to query for.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private int depth_ ; - /** - *
-       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
-       * 
- * - * int32 depth = 2; - */ - public int getDepth() { - return depth_; - } - /** - *
-       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
-       * 
- * - * int32 depth = 2; - */ - public Builder setDepth(int value) { - - depth_ = value; - onChanged(); - return this; - } - /** - *
-       * depth defines the number of Flyte entity levels to traverse when breaking down execution details.
-       * 
- * - * int32 depth = 2; - */ - public Builder clearDepth() { - - depth_ = 0; - onChanged(); - return this; - } - @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.WorkflowExecutionGetMetricsRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsRequest) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetMetricsRequest(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.ExecutionOuterClass.WorkflowExecutionGetMetricsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionGetMetricsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - boolean hasSpan(); - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - flyteidl.core.Metrics.Span getSpan(); - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder(); - } - /** - *
-   * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsResponse} - */ - public static final class WorkflowExecutionGetMetricsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - WorkflowExecutionGetMetricsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionGetMetricsResponse.newBuilder() to construct. - private WorkflowExecutionGetMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionGetMetricsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionGetMetricsResponse( - 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.Metrics.Span.Builder subBuilder = null; - if (span_ != null) { - subBuilder = span_.toBuilder(); - } - span_ = input.readMessage(flyteidl.core.Metrics.Span.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(span_); - span_ = 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.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.Builder.class); - } - - public static final int SPAN_FIELD_NUMBER = 1; - private flyteidl.core.Metrics.Span span_; - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - public boolean hasSpan() { - return span_ != null; - } - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - public flyteidl.core.Metrics.Span getSpan() { - return span_ == null ? flyteidl.core.Metrics.Span.getDefaultInstance() : span_; - } - /** - *
-     * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-     * hierarchical structure using Flyte entity references.
-     * 
- * - * .flyteidl.core.Span span = 1; - */ - public flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder() { - return getSpan(); - } - - 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 (span_ != null) { - output.writeMessage(1, getSpan()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (span_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSpan()); - } - 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse)) { - return super.equals(obj); - } - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse other = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) obj; - - if (hasSpan() != other.hasSpan()) return false; - if (hasSpan()) { - if (!getSpan() - .equals(other.getSpan())) 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 (hasSpan()) { - hash = (37 * hash) + SPAN_FIELD_NUMBER; - hash = (53 * hash) + getSpan().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse 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; - } - /** - *
-     * WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionGetMetricsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.class, flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.Builder.class); - } - - // Construct using flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.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 (spanBuilder_ == null) { - span_ = null; - } else { - span_ = null; - spanBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ExecutionOuterClass.internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstanceForType() { - return flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse build() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse buildPartial() { - flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse result = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse(this); - if (spanBuilder_ == null) { - result.span_ = span_; - } else { - result.span_ = spanBuilder_.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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) { - return mergeFrom((flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse other) { - if (other == flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse.getDefaultInstance()) return this; - if (other.hasSpan()) { - mergeSpan(other.getSpan()); - } - 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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Metrics.Span span_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> spanBuilder_; - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public boolean hasSpan() { - return spanBuilder_ != null || span_ != null; - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public flyteidl.core.Metrics.Span getSpan() { - if (spanBuilder_ == null) { - return span_ == null ? flyteidl.core.Metrics.Span.getDefaultInstance() : span_; - } else { - return spanBuilder_.getMessage(); - } - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public Builder setSpan(flyteidl.core.Metrics.Span value) { - if (spanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - span_ = value; - onChanged(); - } else { - spanBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public Builder setSpan( - flyteidl.core.Metrics.Span.Builder builderForValue) { - if (spanBuilder_ == null) { - span_ = builderForValue.build(); - onChanged(); - } else { - spanBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public Builder mergeSpan(flyteidl.core.Metrics.Span value) { - if (spanBuilder_ == null) { - if (span_ != null) { - span_ = - flyteidl.core.Metrics.Span.newBuilder(span_).mergeFrom(value).buildPartial(); - } else { - span_ = value; - } - onChanged(); - } else { - spanBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public Builder clearSpan() { - if (spanBuilder_ == null) { - span_ = null; - onChanged(); - } else { - span_ = null; - spanBuilder_ = null; - } - - return this; - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public flyteidl.core.Metrics.Span.Builder getSpanBuilder() { - - onChanged(); - return getSpanFieldBuilder().getBuilder(); - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - public flyteidl.core.Metrics.SpanOrBuilder getSpanOrBuilder() { - if (spanBuilder_ != null) { - return spanBuilder_.getMessageOrBuilder(); - } else { - return span_ == null ? - flyteidl.core.Metrics.Span.getDefaultInstance() : span_; - } - } - /** - *
-       * Span defines the top-level breakdown of the workflows execution. More precise information is nested in a
-       * hierarchical structure using Flyte entity references.
-       * 
- * - * .flyteidl.core.Span span = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> - getSpanFieldBuilder() { - if (spanBuilder_ == null) { - spanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder>( - getSpan(), - getParentForChildren(), - isClean()); - span_ = null; - } - return spanBuilder_; - } - @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.WorkflowExecutionGetMetricsResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionGetMetricsResponse) - private static final flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse(); - } - - public static flyteidl.admin.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionGetMetricsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionGetMetricsResponse(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.ExecutionOuterClass.WorkflowExecutionGetMetricsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Execution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Execution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LiteralMapBlob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_AbortMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SystemMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NotificationList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036flyteidl/admin/execution.proto\022\016flytei" + - "dl.admin\032\'flyteidl/admin/cluster_assignm" + - "ent.proto\032\033flyteidl/admin/common.proto\032\034" + - "flyteidl/core/literals.proto\032\035flyteidl/c" + - "ore/execution.proto\032\037flyteidl/core/artif" + - "act_id.proto\032\036flyteidl/core/identifier.p" + - "roto\032\033flyteidl/core/metrics.proto\032\034flyte" + - "idl/core/security.proto\032\036google/protobuf" + - "/duration.proto\032\037google/protobuf/timesta" + - "mp.proto\032\036google/protobuf/wrappers.proto" + - "\"\237\001\n\026ExecutionCreateRequest\022\017\n\007project\030\001" + - " \001(\t\022\016\n\006domain\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022+\n\004sp" + - "ec\030\004 \001(\0132\035.flyteidl.admin.ExecutionSpec\022" + - ")\n\006inputs\030\005 \001(\0132\031.flyteidl.core.LiteralM" + - "ap\"\177\n\030ExecutionRelaunchRequest\0226\n\002id\030\001 \001" + - "(\0132*.flyteidl.core.WorkflowExecutionIden" + - "tifier\022\014\n\004name\030\003 \001(\t\022\027\n\017overwrite_cache\030" + - "\004 \001(\010J\004\010\002\020\003\"\224\001\n\027ExecutionRecoverRequest\022" + - "6\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + - "utionIdentifier\022\014\n\004name\030\002 \001(\t\0223\n\010metadat" + - "a\030\003 \001(\0132!.flyteidl.admin.ExecutionMetada" + - "ta\"Q\n\027ExecutionCreateResponse\0226\n\002id\030\001 \001(" + - "\0132*.flyteidl.core.WorkflowExecutionIdent" + - "ifier\"U\n\033WorkflowExecutionGetRequest\0226\n\002" + - "id\030\001 \001(\0132*.flyteidl.core.WorkflowExecuti" + - "onIdentifier\"\243\001\n\tExecution\0226\n\002id\030\001 \001(\0132*" + - ".flyteidl.core.WorkflowExecutionIdentifi" + - "er\022+\n\004spec\030\002 \001(\0132\035.flyteidl.admin.Execut" + - "ionSpec\0221\n\007closure\030\003 \001(\0132 .flyteidl.admi" + - "n.ExecutionClosure\"M\n\rExecutionList\022-\n\ne" + - "xecutions\030\001 \003(\0132\031.flyteidl.admin.Executi" + - "on\022\r\n\005token\030\002 \001(\t\"X\n\016LiteralMapBlob\022/\n\006v" + - "alues\030\001 \001(\0132\031.flyteidl.core.LiteralMapB\002" + - "\030\001H\000\022\r\n\003uri\030\002 \001(\tH\000B\006\n\004data\"1\n\rAbortMeta" + - "data\022\r\n\005cause\030\001 \001(\t\022\021\n\tprincipal\030\002 \001(\t\"\360" + - "\005\n\020ExecutionClosure\0225\n\007outputs\030\001 \001(\0132\036.f" + - "lyteidl.admin.LiteralMapBlobB\002\030\001H\000\022.\n\005er" + - "ror\030\002 \001(\0132\035.flyteidl.core.ExecutionError" + - "H\000\022\031\n\013abort_cause\030\n \001(\tB\002\030\001H\000\0227\n\016abort_m" + - "etadata\030\014 \001(\0132\035.flyteidl.admin.AbortMeta" + - "dataH\000\0224\n\013output_data\030\r \001(\0132\031.flyteidl.c" + - "ore.LiteralMapB\002\030\001H\000\0226\n\017computed_inputs\030" + - "\003 \001(\0132\031.flyteidl.core.LiteralMapB\002\030\001\0225\n\005" + - "phase\030\004 \001(\0162&.flyteidl.core.WorkflowExec" + - "ution.Phase\022.\n\nstarted_at\030\005 \001(\0132\032.google" + - ".protobuf.Timestamp\022+\n\010duration\030\006 \001(\0132\031." + - "google.protobuf.Duration\022.\n\ncreated_at\030\007" + - " \001(\0132\032.google.protobuf.Timestamp\022.\n\nupda" + - "ted_at\030\010 \001(\0132\032.google.protobuf.Timestamp" + - "\0223\n\rnotifications\030\t \003(\0132\034.flyteidl.admin" + - ".Notification\022.\n\013workflow_id\030\013 \001(\0132\031.fly" + - "teidl.core.Identifier\022I\n\024state_change_de" + - "tails\030\016 \001(\0132+.flyteidl.admin.ExecutionSt" + - "ateChangeDetailsB\017\n\routput_result\">\n\016Sys" + - "temMetadata\022\031\n\021execution_cluster\030\001 \001(\t\022\021" + - "\n\tnamespace\030\002 \001(\t\"\213\004\n\021ExecutionMetadata\022" + - "=\n\004mode\030\001 \001(\0162/.flyteidl.admin.Execution" + - "Metadata.ExecutionMode\022\021\n\tprincipal\030\002 \001(" + - "\t\022\017\n\007nesting\030\003 \001(\r\0220\n\014scheduled_at\030\004 \001(\013" + - "2\032.google.protobuf.Timestamp\022E\n\025parent_n" + - "ode_execution\030\005 \001(\0132&.flyteidl.core.Node" + - "ExecutionIdentifier\022G\n\023reference_executi" + - "on\030\020 \001(\0132*.flyteidl.core.WorkflowExecuti" + - "onIdentifier\0227\n\017system_metadata\030\021 \001(\0132\036." + - "flyteidl.admin.SystemMetadata\022/\n\014artifac" + - "t_ids\030\022 \003(\0132\031.flyteidl.core.ArtifactID\"g" + - "\n\rExecutionMode\022\n\n\006MANUAL\020\000\022\r\n\tSCHEDULED" + - "\020\001\022\n\n\006SYSTEM\020\002\022\014\n\010RELAUNCH\020\003\022\022\n\016CHILD_WO" + - "RKFLOW\020\004\022\r\n\tRECOVERED\020\005\"G\n\020NotificationL" + - "ist\0223\n\rnotifications\030\001 \003(\0132\034.flyteidl.ad" + - "min.Notification\"\262\006\n\rExecutionSpec\022.\n\013la" + - "unch_plan\030\001 \001(\0132\031.flyteidl.core.Identifi" + - "er\022-\n\006inputs\030\002 \001(\0132\031.flyteidl.core.Liter" + - "alMapB\002\030\001\0223\n\010metadata\030\003 \001(\0132!.flyteidl.a" + - "dmin.ExecutionMetadata\0229\n\rnotifications\030" + - "\005 \001(\0132 .flyteidl.admin.NotificationListH" + - "\000\022\025\n\013disable_all\030\006 \001(\010H\000\022&\n\006labels\030\007 \001(\013" + - "2\026.flyteidl.admin.Labels\0220\n\013annotations\030" + - "\010 \001(\0132\033.flyteidl.admin.Annotations\0228\n\020se" + - "curity_context\030\n \001(\0132\036.flyteidl.core.Sec" + - "urityContext\022/\n\tauth_role\030\020 \001(\0132\030.flytei" + - "dl.admin.AuthRoleB\002\030\001\022;\n\022quality_of_serv" + - "ice\030\021 \001(\0132\037.flyteidl.core.QualityOfServi" + - "ce\022\027\n\017max_parallelism\030\022 \001(\005\022C\n\026raw_outpu" + - "t_data_config\030\023 \001(\0132#.flyteidl.admin.Raw" + - "OutputDataConfig\022=\n\022cluster_assignment\030\024" + - " \001(\0132!.flyteidl.admin.ClusterAssignment\022" + - "1\n\rinterruptible\030\025 \001(\0132\032.google.protobuf" + - ".BoolValue\022\027\n\017overwrite_cache\030\026 \001(\010\022\"\n\004e" + - "nvs\030\027 \001(\0132\024.flyteidl.admin.Envs\022\014\n\004tags\030" + - "\030 \003(\tB\030\n\026notification_overridesJ\004\010\004\020\005\"b\n" + - "\031ExecutionTerminateRequest\0226\n\002id\030\001 \001(\0132*" + - ".flyteidl.core.WorkflowExecutionIdentifi" + - "er\022\r\n\005cause\030\002 \001(\t\"\034\n\032ExecutionTerminateR" + - "esponse\"Y\n\037WorkflowExecutionGetDataReque" + - "st\0226\n\002id\030\001 \001(\0132*.flyteidl.core.WorkflowE" + - "xecutionIdentifier\"\336\001\n WorkflowExecution" + - "GetDataResponse\022,\n\007outputs\030\001 \001(\0132\027.flyte" + - "idl.admin.UrlBlobB\002\030\001\022+\n\006inputs\030\002 \001(\0132\027." + - "flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_input" + - "s\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014fu" + - "ll_outputs\030\004 \001(\0132\031.flyteidl.core.Literal" + - "Map\"\177\n\026ExecutionUpdateRequest\0226\n\002id\030\001 \001(" + - "\0132*.flyteidl.core.WorkflowExecutionIdent" + - "ifier\022-\n\005state\030\002 \001(\0162\036.flyteidl.admin.Ex" + - "ecutionState\"\220\001\n\033ExecutionStateChangeDet" + - "ails\022-\n\005state\030\001 \001(\0162\036.flyteidl.admin.Exe" + - "cutionState\022/\n\013occurred_at\030\002 \001(\0132\032.googl" + - "e.protobuf.Timestamp\022\021\n\tprincipal\030\003 \001(\t\"" + - "\031\n\027ExecutionUpdateResponse\"k\n\"WorkflowEx" + - "ecutionGetMetricsRequest\0226\n\002id\030\001 \001(\0132*.f" + - "lyteidl.core.WorkflowExecutionIdentifier" + - "\022\r\n\005depth\030\002 \001(\005\"H\n#WorkflowExecutionGetM" + - "etricsResponse\022!\n\004span\030\001 \001(\0132\023.flyteidl." + - "core.Span*>\n\016ExecutionState\022\024\n\020EXECUTION" + - "_ACTIVE\020\000\022\026\n\022EXECUTION_ARCHIVED\020\001B=Z;git" + - "hub.com/flyteorg/flyte/flyteidl/gen/pb-g" + - "o/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.ArtifactId.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Metrics.getDescriptor(), - flyteidl.core.Security.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ExecutionCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Name", "Spec", "Inputs", }); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ExecutionRelaunchRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionRelaunchRequest_descriptor, - new java.lang.String[] { "Id", "Name", "OverwriteCache", }); - internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ExecutionRecoverRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionRecoverRequest_descriptor, - new java.lang.String[] { "Id", "Name", "Metadata", }); - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ExecutionCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionCreateResponse_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_Execution_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_Execution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Execution_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_ExecutionList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionList_descriptor, - new java.lang.String[] { "Executions", "Token", }); - internal_static_flyteidl_admin_LiteralMapBlob_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_LiteralMapBlob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LiteralMapBlob_descriptor, - new java.lang.String[] { "Values", "Uri", "Data", }); - internal_static_flyteidl_admin_AbortMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_AbortMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_AbortMetadata_descriptor, - new java.lang.String[] { "Cause", "Principal", }); - internal_static_flyteidl_admin_ExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_ExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClosure_descriptor, - new java.lang.String[] { "Outputs", "Error", "AbortCause", "AbortMetadata", "OutputData", "ComputedInputs", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "Notifications", "WorkflowId", "StateChangeDetails", "OutputResult", }); - internal_static_flyteidl_admin_SystemMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_SystemMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SystemMetadata_descriptor, - new java.lang.String[] { "ExecutionCluster", "Namespace", }); - internal_static_flyteidl_admin_ExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionMetadata_descriptor, - new java.lang.String[] { "Mode", "Principal", "Nesting", "ScheduledAt", "ParentNodeExecution", "ReferenceExecution", "SystemMetadata", "ArtifactIds", }); - internal_static_flyteidl_admin_NotificationList_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_admin_NotificationList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NotificationList_descriptor, - new java.lang.String[] { "Notifications", }); - internal_static_flyteidl_admin_ExecutionSpec_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_admin_ExecutionSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionSpec_descriptor, - new java.lang.String[] { "LaunchPlan", "Inputs", "Metadata", "Notifications", "DisableAll", "Labels", "Annotations", "SecurityContext", "AuthRole", "QualityOfService", "MaxParallelism", "RawOutputDataConfig", "ClusterAssignment", "Interruptible", "OverwriteCache", "Envs", "Tags", "NotificationOverrides", }); - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_admin_ExecutionTerminateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateRequest_descriptor, - new java.lang.String[] { "Id", "Cause", }); - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_admin_ExecutionTerminateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionTerminateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Outputs", "Inputs", "FullInputs", "FullOutputs", }); - internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_flyteidl_admin_ExecutionUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionUpdateRequest_descriptor, - new java.lang.String[] { "Id", "State", }); - internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_flyteidl_admin_ExecutionStateChangeDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionStateChangeDetails_descriptor, - new java.lang.String[] { "State", "OccurredAt", "Principal", }); - internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_flyteidl_admin_ExecutionUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsRequest_descriptor, - new java.lang.String[] { "Id", "Depth", }); - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionGetMetricsResponse_descriptor, - new java.lang.String[] { "Span", }); - flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.ArtifactId.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Metrics.getDescriptor(); - flyteidl.core.Security.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java deleted file mode 100644 index ae781f6903..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/LaunchPlanOuterClass.java +++ /dev/null @@ -1,14984 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/launch_plan.proto - -package flyteidl.admin; - -public final class LaunchPlanOuterClass { - private LaunchPlanOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * By default any launch plan regardless of state can be used to launch a workflow execution.
-   * However, at most one version of a launch plan
-   * (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be
-   * active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier
-   * group will be observed and trigger executions at a defined cadence.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.LaunchPlanState} - */ - public enum LaunchPlanState - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INACTIVE = 0; - */ - INACTIVE(0), - /** - * ACTIVE = 1; - */ - ACTIVE(1), - UNRECOGNIZED(-1), - ; - - /** - * INACTIVE = 0; - */ - public static final int INACTIVE_VALUE = 0; - /** - * ACTIVE = 1; - */ - public static final int ACTIVE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LaunchPlanState valueOf(int value) { - return forNumber(value); - } - - public static LaunchPlanState forNumber(int value) { - switch (value) { - case 0: return INACTIVE; - case 1: return ACTIVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LaunchPlanState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LaunchPlanState findValueByNumber(int number) { - return LaunchPlanState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final LaunchPlanState[] VALUES = values(); - - public static LaunchPlanState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LaunchPlanState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.LaunchPlanState) - } - - public interface LaunchPlanCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required
-   * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-   * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class LaunchPlanCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateRequest) - LaunchPlanCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateRequest.newBuilder() to construct. - private LaunchPlanCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateRequest( - 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; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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.LaunchPlanOuterClass.LaunchPlanCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest 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.LaunchPlanOuterClass.LaunchPlanCreateRequest 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; - } - /** - *
-     * Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required
-     * to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to
-     * set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.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; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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.LaunchPlanOuterClass.LaunchPlanCreateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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.LaunchPlanOuterClass.LaunchPlanCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest) 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_; - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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(); - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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_; - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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.LaunchPlanCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateRequest(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.LaunchPlanOuterClass.LaunchPlanCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class LaunchPlanCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanCreateResponse) - LaunchPlanCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanCreateResponse.newBuilder() to construct. - private LaunchPlanCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanCreateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.LaunchPlanOuterClass.LaunchPlanCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse 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.LaunchPlanOuterClass.LaunchPlanCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanCreateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(this); - 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.LaunchPlanOuterClass.LaunchPlanCreateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse.getDefaultInstance()) return this; - 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.LaunchPlanOuterClass.LaunchPlanCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.LaunchPlanCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanCreateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanCreateResponse(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.LaunchPlanOuterClass.LaunchPlanCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlan) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec(); - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure(); - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder(); - } - /** - *
-   * A LaunchPlan provides the capability to templatize workflow executions.
-   * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-   * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-   * definition doesn't necessarily have a default value for said input.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class LaunchPlan extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlan) - LaunchPlanOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlan.newBuilder() to construct. - private LaunchPlan(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlan() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlan( - 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; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies a launch plan entity.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - /** - *
-     * User-provided launch plan details, including reference workflow, inputs and other metadata.
-     * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - 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()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - 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()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - 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.LaunchPlanOuterClass.LaunchPlan)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan 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.LaunchPlanOuterClass.LaunchPlan 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; - } - /** - *
-     * A LaunchPlan provides the capability to templatize workflow executions.
-     * Launch plans simplify associating one or more schedules, inputs and notifications with your workflows.
-     * Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow
-     * definition doesn't necessarily have a default value for said input.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlan} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlan) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.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; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlan_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.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.LaunchPlanOuterClass.LaunchPlan) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlan)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - 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.LaunchPlanOuterClass.LaunchPlan parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlan) 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_; - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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(); - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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_; - } - } - /** - *
-       * Uniquely identifies a launch plan entity.
-       * 
- * - * .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_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> specBuilder_; - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * User-provided launch plan details, including reference workflow, inputs and other metadata.
-       * 
- * - * .flyteidl.admin.LaunchPlanSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> closureBuilder_; - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Values computed by the flyte platform after launch plan registration.
-       * 
- * - * .flyteidl.admin.LaunchPlanClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - @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.LaunchPlan) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlan) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlan DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlan(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlan parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlan(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.LaunchPlanOuterClass.LaunchPlan getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - int getLaunchPlansCount(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - java.util.List - getLaunchPlansOrBuilderList(); - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response object for list launch plan requests.
-   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class LaunchPlanList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanList) - LaunchPlanListOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanList.newBuilder() to construct. - private LaunchPlanList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanList() { - launchPlans_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - launchPlans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - launchPlans_.add( - input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - private int bitField0_; - public static final int LAUNCH_PLANS_FIELD_NUMBER = 1; - private java.util.List launchPlans_; - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - return launchPlans_; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - return launchPlans_.size(); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - return launchPlans_.get(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - return launchPlans_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < launchPlans_.size(); i++) { - output.writeMessage(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < launchPlans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, launchPlans_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.LaunchPlanOuterClass.LaunchPlanList)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) obj; - - if (!getLaunchPlansList() - .equals(other.getLaunchPlansList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getLaunchPlansCount() > 0) { - hash = (37 * hash) + LAUNCH_PLANS_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlansList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList 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.LaunchPlanOuterClass.LaunchPlanList 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; - } - /** - *
-     * Response object for list launch plan requests.
-     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanList) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLaunchPlansFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - launchPlansBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (launchPlansBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = java.util.Collections.unmodifiableList(launchPlans_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.launchPlans_ = launchPlans_; - } else { - result.launchPlans_ = launchPlansBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.LaunchPlanOuterClass.LaunchPlanList) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList.getDefaultInstance()) return this; - if (launchPlansBuilder_ == null) { - if (!other.launchPlans_.isEmpty()) { - if (launchPlans_.isEmpty()) { - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLaunchPlansIsMutable(); - launchPlans_.addAll(other.launchPlans_); - } - onChanged(); - } - } else { - if (!other.launchPlans_.isEmpty()) { - if (launchPlansBuilder_.isEmpty()) { - launchPlansBuilder_.dispose(); - launchPlansBuilder_ = null; - launchPlans_ = other.launchPlans_; - bitField0_ = (bitField0_ & ~0x00000001); - launchPlansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLaunchPlansFieldBuilder() : null; - } else { - launchPlansBuilder_.addAllMessages(other.launchPlans_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.LaunchPlanOuterClass.LaunchPlanList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List launchPlans_ = - java.util.Collections.emptyList(); - private void ensureLaunchPlansIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - launchPlans_ = new java.util.ArrayList(launchPlans_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> launchPlansBuilder_; - - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List getLaunchPlansList() { - if (launchPlansBuilder_ == null) { - return java.util.Collections.unmodifiableList(launchPlans_); - } else { - return launchPlansBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public int getLaunchPlansCount() { - if (launchPlansBuilder_ == null) { - return launchPlans_.size(); - } else { - return launchPlansBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); - } else { - return launchPlansBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, value); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder setLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.set(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (launchPlansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, value); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addLaunchPlans( - int index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.add(index, builderForValue.build()); - onChanged(); - } else { - launchPlansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder addAllLaunchPlans( - java.lang.Iterable values) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, launchPlans_); - onChanged(); - } else { - launchPlansBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder clearLaunchPlans() { - if (launchPlansBuilder_ == null) { - launchPlans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - launchPlansBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public Builder removeLaunchPlans(int index) { - if (launchPlansBuilder_ == null) { - ensureLaunchPlansIsMutable(); - launchPlans_.remove(index); - onChanged(); - } else { - launchPlansBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getLaunchPlansOrBuilder( - int index) { - if (launchPlansBuilder_ == null) { - return launchPlans_.get(index); } else { - return launchPlansBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansOrBuilderList() { - if (launchPlansBuilder_ != null) { - return launchPlansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(launchPlans_); - } - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder() { - return getLaunchPlansFieldBuilder().addBuilder( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder addLaunchPlansBuilder( - int index) { - return getLaunchPlansFieldBuilder().addBuilder( - index, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.LaunchPlan launch_plans = 1; - */ - public java.util.List - getLaunchPlansBuilderList() { - return getLaunchPlansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> - getLaunchPlansFieldBuilder() { - if (launchPlansBuilder_ == null) { - launchPlansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( - launchPlans_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - launchPlans_ = null; - } - return launchPlansBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.LaunchPlanList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanList) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanList(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.LaunchPlanOuterClass.LaunchPlanList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface AuthOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Auth) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - java.lang.String getAssumableIamRole(); - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - com.google.protobuf.ByteString - getAssumableIamRoleBytes(); - - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - java.lang.String getKubernetesServiceAccount(); - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - com.google.protobuf.ByteString - getKubernetesServiceAccountBytes(); - } - /** - *
-   * Defines permissions associated with executions created by this launch plan spec.
-   * Use either of these roles when they have permissions required by your workflow execution.
-   * Deprecated.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - @java.lang.Deprecated public static final class Auth extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Auth) - AuthOrBuilder { - private static final long serialVersionUID = 0L; - // Use Auth.newBuilder() to construct. - private Auth(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Auth() { - assumableIamRole_ = ""; - kubernetesServiceAccount_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Auth( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - assumableIamRole_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - kubernetesServiceAccount_ = s; - 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - public static final int ASSUMABLE_IAM_ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object assumableIamRole_; - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assumableIamRole_ = s; - return s; - } - } - /** - *
-     * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assumableIamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object kubernetesServiceAccount_; - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesServiceAccount_ = s; - return s; - } - } - /** - *
-     * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-     * 
- * - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kubernetesServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getAssumableIamRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, assumableIamRole_); - } - if (!getKubernetesServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kubernetesServiceAccount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAssumableIamRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, assumableIamRole_); - } - if (!getKubernetesServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kubernetesServiceAccount_); - } - 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.LaunchPlanOuterClass.Auth)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.Auth other = (flyteidl.admin.LaunchPlanOuterClass.Auth) obj; - - if (!getAssumableIamRole() - .equals(other.getAssumableIamRole())) return false; - if (!getKubernetesServiceAccount() - .equals(other.getKubernetesServiceAccount())) 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(); - hash = (37 * hash) + ASSUMABLE_IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAssumableIamRole().hashCode(); - hash = (37 * hash) + KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getKubernetesServiceAccount().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.Auth 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.LaunchPlanOuterClass.Auth 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; - } - /** - *
-     * Defines permissions associated with executions created by this launch plan spec.
-     * Use either of these roles when they have permissions required by your workflow execution.
-     * Deprecated.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Auth} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Auth) - flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.Auth.class, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.Auth.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(); - assumableIamRole_ = ""; - - kubernetesServiceAccount_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_Auth_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth build() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.Auth buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.Auth result = new flyteidl.admin.LaunchPlanOuterClass.Auth(this); - result.assumableIamRole_ = assumableIamRole_; - result.kubernetesServiceAccount_ = kubernetesServiceAccount_; - 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.LaunchPlanOuterClass.Auth) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.Auth)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.Auth other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance()) return this; - if (!other.getAssumableIamRole().isEmpty()) { - assumableIamRole_ = other.assumableIamRole_; - onChanged(); - } - if (!other.getKubernetesServiceAccount().isEmpty()) { - kubernetesServiceAccount_ = other.kubernetesServiceAccount_; - onChanged(); - } - 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.LaunchPlanOuterClass.Auth parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.Auth) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object assumableIamRole_ = ""; - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public java.lang.String getAssumableIamRole() { - java.lang.Object ref = assumableIamRole_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - assumableIamRole_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public com.google.protobuf.ByteString - getAssumableIamRoleBytes() { - java.lang.Object ref = assumableIamRole_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - assumableIamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - assumableIamRole_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder clearAssumableIamRole() { - - assumableIamRole_ = getDefaultInstance().getAssumableIamRole(); - onChanged(); - return this; - } - /** - *
-       * Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string assumable_iam_role = 1; - */ - public Builder setAssumableIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - assumableIamRole_ = value; - onChanged(); - return this; - } - - private java.lang.Object kubernetesServiceAccount_ = ""; - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public java.lang.String getKubernetesServiceAccount() { - java.lang.Object ref = kubernetesServiceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kubernetesServiceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public com.google.protobuf.ByteString - getKubernetesServiceAccountBytes() { - java.lang.Object ref = kubernetesServiceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kubernetesServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kubernetesServiceAccount_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder clearKubernetesServiceAccount() { - - kubernetesServiceAccount_ = getDefaultInstance().getKubernetesServiceAccount(); - onChanged(); - return this; - } - /** - *
-       * Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
-       * 
- * - * string kubernetes_service_account = 2; - */ - public Builder setKubernetesServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kubernetesServiceAccount_ = value; - onChanged(); - return this; - } - @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.Auth) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Auth) - private static final flyteidl.admin.LaunchPlanOuterClass.Auth DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.Auth(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.Auth getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Auth parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Auth(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.LaunchPlanOuterClass.Auth getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - boolean hasWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - boolean hasEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata(); - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder(); - - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - boolean hasDefaultInputs(); - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMap getDefaultInputs(); - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder(); - - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - boolean hasFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFixedInputs(); - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder(); - - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getRole(); - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getRoleBytes(); - - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - boolean hasLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - boolean hasAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.Auth getAuth(); - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder(); - - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.AuthRole getAuthRole(); - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder(); - - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - boolean hasSecurityContext(); - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - flyteidl.core.Security.SecurityContext getSecurityContext(); - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); - - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - boolean hasRawOutputDataConfig(); - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); - - /** - *
-     * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
-     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-     * and parallelism/concurrency of MapTasks is independent from this.
-     * 
- * - * int32 max_parallelism = 18; - */ - int getMaxParallelism(); - - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - boolean hasInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - com.google.protobuf.BoolValue getInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); - - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 20; - */ - boolean getOverwriteCache(); - - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - boolean hasEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - flyteidl.admin.Common.Envs getEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); - } - /** - *
-   * User-provided launch plan definition and configuration values.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class LaunchPlanSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanSpec) - LaunchPlanSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanSpec.newBuilder() to construct. - private LaunchPlanSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanSpec() { - role_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanSpec( - 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 (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder subBuilder = null; - if (entityMetadata_ != null) { - subBuilder = entityMetadata_.toBuilder(); - } - entityMetadata_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityMetadata_); - entityMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (defaultInputs_ != null) { - subBuilder = defaultInputs_.toBuilder(); - } - defaultInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaultInputs_); - defaultInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fixedInputs_ != null) { - subBuilder = fixedInputs_.toBuilder(); - } - fixedInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fixedInputs_); - fixedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - role_ = s; - break; - } - case 50: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder subBuilder = null; - if (auth_ != null) { - subBuilder = auth_.toBuilder(); - } - auth_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.Auth.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(auth_); - auth_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - flyteidl.admin.Common.AuthRole.Builder subBuilder = null; - if (authRole_ != null) { - subBuilder = authRole_.toBuilder(); - } - authRole_ = input.readMessage(flyteidl.admin.Common.AuthRole.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(authRole_); - authRole_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - flyteidl.core.Security.SecurityContext.Builder subBuilder = null; - if (securityContext_ != null) { - subBuilder = securityContext_.toBuilder(); - } - securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityContext_); - securityContext_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; - if (rawOutputDataConfig_ != null) { - subBuilder = rawOutputDataConfig_.toBuilder(); - } - rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawOutputDataConfig_); - rawOutputDataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 144: { - - maxParallelism_ = input.readInt32(); - break; - } - case 154: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (interruptible_ != null) { - subBuilder = interruptible_.toBuilder(); - } - interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interruptible_); - interruptible_ = subBuilder.buildPartial(); - } - - break; - } - case 160: { - - overwriteCache_ = input.readBool(); - break; - } - case 170: { - flyteidl.admin.Common.Envs.Builder subBuilder = null; - if (envs_ != null) { - subBuilder = envs_.toBuilder(); - } - envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(envs_); - envs_ = 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - *
-     * Reference to the Workflow template that the launch plan references
-     * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - public static final int ENTITY_METADATA_FIELD_NUMBER = 2; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadata_ != null; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - /** - *
-     * Metadata for the Launch Plan
-     * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - return getEntityMetadata(); - } - - public static final int DEFAULT_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.ParameterMap defaultInputs_; - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputs_ != null; - } - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - /** - *
-     * Input values to be passed for the execution.
-     * These can be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - return getDefaultInputs(); - } - - public static final int FIXED_INPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fixedInputs_; - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputs_ != null; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - /** - *
-     * Fixed, non-overridable inputs for the Launch Plan.
-     * These can not be overridden when an execution is created with this launch plan.
-     * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - return getFixedInputs(); - } - - public static final int ROLE_FIELD_NUMBER = 5; - private volatile java.lang.Object role_; - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - role_ = s; - return s; - } - } - /** - *
-     * String to indicate the role to use to execute the workflow underneath
-     * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 6; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Custom labels to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 7; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Custom annotations to be applied to the execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int AUTH_FIELD_NUMBER = 8; - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return auth_ != null; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - /** - *
-     * Indicates the permission associated with workflow executions triggered with this launch plan.
-     * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - return getAuth(); - } - - public static final int AUTH_ROLE_FIELD_NUMBER = 9; - private flyteidl.admin.Common.AuthRole authRole_; - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuthRole() { - return authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - return getAuthRole(); - } - - public static final int SECURITY_CONTEXT_FIELD_NUMBER = 10; - private flyteidl.core.Security.SecurityContext securityContext_; - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public boolean hasSecurityContext() { - return securityContext_ != null; - } - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - /** - *
-     * Indicates security context for permissions triggered with this launch plan
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - return getSecurityContext(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 16; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of the execution.
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 17; - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfig_ != null; - } - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - return getRawOutputDataConfig(); - } - - public static final int MAX_PARALLELISM_FIELD_NUMBER = 18; - private int maxParallelism_; - /** - *
-     * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
-     * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-     * and parallelism/concurrency of MapTasks is independent from this.
-     * 
- * - * int32 max_parallelism = 18; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 19; - private com.google.protobuf.BoolValue interruptible_; - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public boolean hasInterruptible() { - return interruptible_ != null; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public com.google.protobuf.BoolValue getInterruptible() { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - return getInterruptible(); - } - - public static final int OVERWRITE_CACHE_FIELD_NUMBER = 20; - private boolean overwriteCache_; - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 20; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - - public static final int ENVS_FIELD_NUMBER = 21; - private flyteidl.admin.Common.Envs envs_; - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public boolean hasEnvs() { - return envs_ != null; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public flyteidl.admin.Common.Envs getEnvs() { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - return getEnvs(); - } - - 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 (workflowId_ != null) { - output.writeMessage(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - output.writeMessage(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - output.writeMessage(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - output.writeMessage(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, role_); - } - if (labels_ != null) { - output.writeMessage(6, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(7, getAnnotations()); - } - if (auth_ != null) { - output.writeMessage(8, getAuth()); - } - if (authRole_ != null) { - output.writeMessage(9, getAuthRole()); - } - if (securityContext_ != null) { - output.writeMessage(10, getSecurityContext()); - } - if (qualityOfService_ != null) { - output.writeMessage(16, getQualityOfService()); - } - if (rawOutputDataConfig_ != null) { - output.writeMessage(17, getRawOutputDataConfig()); - } - if (maxParallelism_ != 0) { - output.writeInt32(18, maxParallelism_); - } - if (interruptible_ != null) { - output.writeMessage(19, getInterruptible()); - } - if (overwriteCache_ != false) { - output.writeBool(20, overwriteCache_); - } - if (envs_ != null) { - output.writeMessage(21, getEnvs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowId()); - } - if (entityMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEntityMetadata()); - } - if (defaultInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDefaultInputs()); - } - if (fixedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFixedInputs()); - } - if (!getRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, role_); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getAnnotations()); - } - if (auth_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAuth()); - } - if (authRole_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAuthRole()); - } - if (securityContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getSecurityContext()); - } - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getQualityOfService()); - } - if (rawOutputDataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getRawOutputDataConfig()); - } - if (maxParallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, maxParallelism_); - } - if (interruptible_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getInterruptible()); - } - if (overwriteCache_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(20, overwriteCache_); - } - if (envs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getEnvs()); - } - 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.LaunchPlanOuterClass.LaunchPlanSpec)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) obj; - - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (hasEntityMetadata() != other.hasEntityMetadata()) return false; - if (hasEntityMetadata()) { - if (!getEntityMetadata() - .equals(other.getEntityMetadata())) return false; - } - if (hasDefaultInputs() != other.hasDefaultInputs()) return false; - if (hasDefaultInputs()) { - if (!getDefaultInputs() - .equals(other.getDefaultInputs())) return false; - } - if (hasFixedInputs() != other.hasFixedInputs()) return false; - if (hasFixedInputs()) { - if (!getFixedInputs() - .equals(other.getFixedInputs())) return false; - } - if (!getRole() - .equals(other.getRole())) return false; - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasAuth() != other.hasAuth()) return false; - if (hasAuth()) { - if (!getAuth() - .equals(other.getAuth())) return false; - } - if (hasAuthRole() != other.hasAuthRole()) return false; - if (hasAuthRole()) { - if (!getAuthRole() - .equals(other.getAuthRole())) return false; - } - if (hasSecurityContext() != other.hasSecurityContext()) return false; - if (hasSecurityContext()) { - if (!getSecurityContext() - .equals(other.getSecurityContext())) return false; - } - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; - if (hasRawOutputDataConfig()) { - if (!getRawOutputDataConfig() - .equals(other.getRawOutputDataConfig())) return false; - } - if (getMaxParallelism() - != other.getMaxParallelism()) return false; - if (hasInterruptible() != other.hasInterruptible()) return false; - if (hasInterruptible()) { - if (!getInterruptible() - .equals(other.getInterruptible())) return false; - } - if (getOverwriteCache() - != other.getOverwriteCache()) return false; - if (hasEnvs() != other.hasEnvs()) return false; - if (hasEnvs()) { - if (!getEnvs() - .equals(other.getEnvs())) 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 (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - if (hasEntityMetadata()) { - hash = (37 * hash) + ENTITY_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getEntityMetadata().hashCode(); - } - if (hasDefaultInputs()) { - hash = (37 * hash) + DEFAULT_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaultInputs().hashCode(); - } - if (hasFixedInputs()) { - hash = (37 * hash) + FIXED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFixedInputs().hashCode(); - } - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasAuth()) { - hash = (37 * hash) + AUTH_FIELD_NUMBER; - hash = (53 * hash) + getAuth().hashCode(); - } - if (hasAuthRole()) { - hash = (37 * hash) + AUTH_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getAuthRole().hashCode(); - } - if (hasSecurityContext()) { - hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSecurityContext().hashCode(); - } - if (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - if (hasRawOutputDataConfig()) { - hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRawOutputDataConfig().hashCode(); - } - hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + getMaxParallelism(); - if (hasInterruptible()) { - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + getInterruptible().hashCode(); - } - hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOverwriteCache()); - if (hasEnvs()) { - hash = (37 * hash) + ENVS_FIELD_NUMBER; - hash = (53 * hash) + getEnvs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec 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.LaunchPlanOuterClass.LaunchPlanSpec 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; - } - /** - *
-     * User-provided launch plan definition and configuration values.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanSpec) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.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 (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - role_ = ""; - - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (authBuilder_ == null) { - auth_ = null; - } else { - auth_ = null; - authBuilder_ = null; - } - if (authRoleBuilder_ == null) { - authRole_ = null; - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - if (securityContextBuilder_ == null) { - securityContext_ = null; - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - maxParallelism_ = 0; - - if (interruptibleBuilder_ == null) { - interruptible_ = null; - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - overwriteCache_ = false; - - if (envsBuilder_ == null) { - envs_ = null; - } else { - envs_ = null; - envsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(this); - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - if (entityMetadataBuilder_ == null) { - result.entityMetadata_ = entityMetadata_; - } else { - result.entityMetadata_ = entityMetadataBuilder_.build(); - } - if (defaultInputsBuilder_ == null) { - result.defaultInputs_ = defaultInputs_; - } else { - result.defaultInputs_ = defaultInputsBuilder_.build(); - } - if (fixedInputsBuilder_ == null) { - result.fixedInputs_ = fixedInputs_; - } else { - result.fixedInputs_ = fixedInputsBuilder_.build(); - } - result.role_ = role_; - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (authBuilder_ == null) { - result.auth_ = auth_; - } else { - result.auth_ = authBuilder_.build(); - } - if (authRoleBuilder_ == null) { - result.authRole_ = authRole_; - } else { - result.authRole_ = authRoleBuilder_.build(); - } - if (securityContextBuilder_ == null) { - result.securityContext_ = securityContext_; - } else { - result.securityContext_ = securityContextBuilder_.build(); - } - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - if (rawOutputDataConfigBuilder_ == null) { - result.rawOutputDataConfig_ = rawOutputDataConfig_; - } else { - result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); - } - result.maxParallelism_ = maxParallelism_; - if (interruptibleBuilder_ == null) { - result.interruptible_ = interruptible_; - } else { - result.interruptible_ = interruptibleBuilder_.build(); - } - result.overwriteCache_ = overwriteCache_; - if (envsBuilder_ == null) { - result.envs_ = envs_; - } else { - result.envs_ = envsBuilder_.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.LaunchPlanOuterClass.LaunchPlanSpec) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec.getDefaultInstance()) return this; - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - if (other.hasEntityMetadata()) { - mergeEntityMetadata(other.getEntityMetadata()); - } - if (other.hasDefaultInputs()) { - mergeDefaultInputs(other.getDefaultInputs()); - } - if (other.hasFixedInputs()) { - mergeFixedInputs(other.getFixedInputs()); - } - if (!other.getRole().isEmpty()) { - role_ = other.role_; - onChanged(); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasAuth()) { - mergeAuth(other.getAuth()); - } - if (other.hasAuthRole()) { - mergeAuthRole(other.getAuthRole()); - } - if (other.hasSecurityContext()) { - mergeSecurityContext(other.getSecurityContext()); - } - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - if (other.hasRawOutputDataConfig()) { - mergeRawOutputDataConfig(other.getRawOutputDataConfig()); - } - if (other.getMaxParallelism() != 0) { - setMaxParallelism(other.getMaxParallelism()); - } - if (other.hasInterruptible()) { - mergeInterruptible(other.getInterruptible()); - } - if (other.getOverwriteCache() != false) { - setOverwriteCache(other.getOverwriteCache()); - } - if (other.hasEnvs()) { - mergeEnvs(other.getEnvs()); - } - 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.LaunchPlanOuterClass.LaunchPlanSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - *
-       * Reference to the Workflow template that the launch plan references
-       * 
- * - * .flyteidl.core.Identifier workflow_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata entityMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> entityMetadataBuilder_; - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public boolean hasEntityMetadata() { - return entityMetadataBuilder_ != null || entityMetadata_ != null; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getEntityMetadata() { - if (entityMetadataBuilder_ == null) { - return entityMetadata_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } else { - return entityMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityMetadata_ = value; - onChanged(); - } else { - entityMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder setEntityMetadata( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder builderForValue) { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = builderForValue.build(); - onChanged(); - } else { - entityMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder mergeEntityMetadata(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata value) { - if (entityMetadataBuilder_ == null) { - if (entityMetadata_ != null) { - entityMetadata_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder(entityMetadata_).mergeFrom(value).buildPartial(); - } else { - entityMetadata_ = value; - } - onChanged(); - } else { - entityMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public Builder clearEntityMetadata() { - if (entityMetadataBuilder_ == null) { - entityMetadata_ = null; - onChanged(); - } else { - entityMetadata_ = null; - entityMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder getEntityMetadataBuilder() { - - onChanged(); - return getEntityMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder getEntityMetadataOrBuilder() { - if (entityMetadataBuilder_ != null) { - return entityMetadataBuilder_.getMessageOrBuilder(); - } else { - return entityMetadata_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance() : entityMetadata_; - } - } - /** - *
-       * Metadata for the Launch Plan
-       * 
- * - * .flyteidl.admin.LaunchPlanMetadata entity_metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder> - getEntityMetadataFieldBuilder() { - if (entityMetadataBuilder_ == null) { - entityMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder>( - getEntityMetadata(), - getParentForChildren(), - isClean()); - entityMetadata_ = null; - } - return entityMetadataBuilder_; - } - - private flyteidl.core.Interface.ParameterMap defaultInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> defaultInputsBuilder_; - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public boolean hasDefaultInputs() { - return defaultInputsBuilder_ != null || defaultInputs_ != null; - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap getDefaultInputs() { - if (defaultInputsBuilder_ == null) { - return defaultInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } else { - return defaultInputsBuilder_.getMessage(); - } - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaultInputs_ = value; - onChanged(); - } else { - defaultInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder setDefaultInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = builderForValue.build(); - onChanged(); - } else { - defaultInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder mergeDefaultInputs(flyteidl.core.Interface.ParameterMap value) { - if (defaultInputsBuilder_ == null) { - if (defaultInputs_ != null) { - defaultInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(defaultInputs_).mergeFrom(value).buildPartial(); - } else { - defaultInputs_ = value; - } - onChanged(); - } else { - defaultInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public Builder clearDefaultInputs() { - if (defaultInputsBuilder_ == null) { - defaultInputs_ = null; - onChanged(); - } else { - defaultInputs_ = null; - defaultInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMap.Builder getDefaultInputsBuilder() { - - onChanged(); - return getDefaultInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getDefaultInputsOrBuilder() { - if (defaultInputsBuilder_ != null) { - return defaultInputsBuilder_.getMessageOrBuilder(); - } else { - return defaultInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : defaultInputs_; - } - } - /** - *
-       * Input values to be passed for the execution.
-       * These can be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.ParameterMap default_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getDefaultInputsFieldBuilder() { - if (defaultInputsBuilder_ == null) { - defaultInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getDefaultInputs(), - getParentForChildren(), - isClean()); - defaultInputs_ = null; - } - return defaultInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fixedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fixedInputsBuilder_; - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public boolean hasFixedInputs() { - return fixedInputsBuilder_ != null || fixedInputs_ != null; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFixedInputs() { - if (fixedInputsBuilder_ == null) { - return fixedInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } else { - return fixedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fixedInputs_ = value; - onChanged(); - } else { - fixedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder setFixedInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = builderForValue.build(); - onChanged(); - } else { - fixedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder mergeFixedInputs(flyteidl.core.Literals.LiteralMap value) { - if (fixedInputsBuilder_ == null) { - if (fixedInputs_ != null) { - fixedInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fixedInputs_).mergeFrom(value).buildPartial(); - } else { - fixedInputs_ = value; - } - onChanged(); - } else { - fixedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public Builder clearFixedInputs() { - if (fixedInputsBuilder_ == null) { - fixedInputs_ = null; - onChanged(); - } else { - fixedInputs_ = null; - fixedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFixedInputsBuilder() { - - onChanged(); - return getFixedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFixedInputsOrBuilder() { - if (fixedInputsBuilder_ != null) { - return fixedInputsBuilder_.getMessageOrBuilder(); - } else { - return fixedInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fixedInputs_; - } - } - /** - *
-       * Fixed, non-overridable inputs for the Launch Plan.
-       * These can not be overridden when an execution is created with this launch plan.
-       * 
- * - * .flyteidl.core.LiteralMap fixed_inputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFixedInputsFieldBuilder() { - if (fixedInputsBuilder_ == null) { - fixedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFixedInputs(), - getParentForChildren(), - isClean()); - fixedInputs_ = null; - } - return fixedInputsBuilder_; - } - - private java.lang.Object role_ = ""; - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getRole() { - java.lang.Object ref = role_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - role_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getRoleBytes() { - java.lang.Object ref = role_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - role_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - role_ = value; - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearRole() { - - role_ = getDefaultInstance().getRole(); - onChanged(); - return this; - } - /** - *
-       * String to indicate the role to use to execute the workflow underneath
-       * 
- * - * string role = 5 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - role_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Custom labels to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Custom annotations to be applied to the execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private flyteidl.admin.LaunchPlanOuterClass.Auth auth_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> authBuilder_; - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuth() { - return authBuilder_ != null || auth_ != null; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth getAuth() { - if (authBuilder_ == null) { - return auth_ == null ? flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } else { - return authBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - auth_ = value; - onChanged(); - } else { - authBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuth( - flyteidl.admin.LaunchPlanOuterClass.Auth.Builder builderForValue) { - if (authBuilder_ == null) { - auth_ = builderForValue.build(); - onChanged(); - } else { - authBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeAuth(flyteidl.admin.LaunchPlanOuterClass.Auth value) { - if (authBuilder_ == null) { - if (auth_ != null) { - auth_ = - flyteidl.admin.LaunchPlanOuterClass.Auth.newBuilder(auth_).mergeFrom(value).buildPartial(); - } else { - auth_ = value; - } - onChanged(); - } else { - authBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAuth() { - if (authBuilder_ == null) { - auth_ = null; - onChanged(); - } else { - auth_ = null; - authBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.Auth.Builder getAuthBuilder() { - - onChanged(); - return getAuthFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder getAuthOrBuilder() { - if (authBuilder_ != null) { - return authBuilder_.getMessageOrBuilder(); - } else { - return auth_ == null ? - flyteidl.admin.LaunchPlanOuterClass.Auth.getDefaultInstance() : auth_; - } - } - /** - *
-       * Indicates the permission associated with workflow executions triggered with this launch plan.
-       * 
- * - * .flyteidl.admin.Auth auth = 8 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder> - getAuthFieldBuilder() { - if (authBuilder_ == null) { - authBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.Auth, flyteidl.admin.LaunchPlanOuterClass.Auth.Builder, flyteidl.admin.LaunchPlanOuterClass.AuthOrBuilder>( - getAuth(), - getParentForChildren(), - isClean()); - auth_ = null; - } - return authBuilder_; - } - - private flyteidl.admin.Common.AuthRole authRole_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> authRoleBuilder_; - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasAuthRole() { - return authRoleBuilder_ != null || authRole_ != null; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole getAuthRole() { - if (authRoleBuilder_ == null) { - return authRole_ == null ? flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } else { - return authRoleBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authRole_ = value; - onChanged(); - } else { - authRoleBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setAuthRole( - flyteidl.admin.Common.AuthRole.Builder builderForValue) { - if (authRoleBuilder_ == null) { - authRole_ = builderForValue.build(); - onChanged(); - } else { - authRoleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeAuthRole(flyteidl.admin.Common.AuthRole value) { - if (authRoleBuilder_ == null) { - if (authRole_ != null) { - authRole_ = - flyteidl.admin.Common.AuthRole.newBuilder(authRole_).mergeFrom(value).buildPartial(); - } else { - authRole_ = value; - } - onChanged(); - } else { - authRoleBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearAuthRole() { - if (authRoleBuilder_ == null) { - authRole_ = null; - onChanged(); - } else { - authRole_ = null; - authRoleBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRole.Builder getAuthRoleBuilder() { - - onChanged(); - return getAuthRoleFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.AuthRoleOrBuilder getAuthRoleOrBuilder() { - if (authRoleBuilder_ != null) { - return authRoleBuilder_.getMessageOrBuilder(); - } else { - return authRole_ == null ? - flyteidl.admin.Common.AuthRole.getDefaultInstance() : authRole_; - } - } - /** - * .flyteidl.admin.AuthRole auth_role = 9 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder> - getAuthRoleFieldBuilder() { - if (authRoleBuilder_ == null) { - authRoleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.AuthRole, flyteidl.admin.Common.AuthRole.Builder, flyteidl.admin.Common.AuthRoleOrBuilder>( - getAuthRole(), - getParentForChildren(), - isClean()); - authRole_ = null; - } - return authRoleBuilder_; - } - - private flyteidl.core.Security.SecurityContext securityContext_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public boolean hasSecurityContext() { - return securityContextBuilder_ != null || securityContext_ != null; - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - if (securityContextBuilder_ == null) { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } else { - return securityContextBuilder_.getMessage(); - } - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityContext_ = value; - onChanged(); - } else { - securityContextBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder setSecurityContext( - flyteidl.core.Security.SecurityContext.Builder builderForValue) { - if (securityContextBuilder_ == null) { - securityContext_ = builderForValue.build(); - onChanged(); - } else { - securityContextBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (securityContext_ != null) { - securityContext_ = - flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); - } else { - securityContext_ = value; - } - onChanged(); - } else { - securityContextBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public Builder clearSecurityContext() { - if (securityContextBuilder_ == null) { - securityContext_ = null; - onChanged(); - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { - - onChanged(); - return getSecurityContextFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - if (securityContextBuilder_ != null) { - return securityContextBuilder_.getMessageOrBuilder(); - } else { - return securityContext_ == null ? - flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - } - /** - *
-       * Indicates security context for permissions triggered with this launch plan
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> - getSecurityContextFieldBuilder() { - if (securityContextBuilder_ == null) { - securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( - getSecurityContext(), - getParentForChildren(), - isClean()); - securityContext_ = null; - } - return securityContextBuilder_; - } - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of the execution.
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } else { - return rawOutputDataConfigBuilder_.getMessage(); - } - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawOutputDataConfig_ = value; - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public Builder setRawOutputDataConfig( - flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = builderForValue.build(); - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (rawOutputDataConfig_ != null) { - rawOutputDataConfig_ = - flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); - } else { - rawOutputDataConfig_ = value; - } - onChanged(); - } else { - rawOutputDataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public Builder clearRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - onChanged(); - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { - - onChanged(); - return getRawOutputDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - if (rawOutputDataConfigBuilder_ != null) { - return rawOutputDataConfigBuilder_.getMessageOrBuilder(); - } else { - return rawOutputDataConfig_ == null ? - flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> - getRawOutputDataConfigFieldBuilder() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( - getRawOutputDataConfig(), - getParentForChildren(), - isClean()); - rawOutputDataConfig_ = null; - } - return rawOutputDataConfigBuilder_; - } - - private int maxParallelism_ ; - /** - *
-       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - /** - *
-       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public Builder setMaxParallelism(int value) { - - maxParallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Controls the maximum number of tasknodes that can be run in parallel for the entire workflow.
-       * This is useful to achieve fairness. Note: MapTasks are regarded as one unit,
-       * and parallelism/concurrency of MapTasks is independent from this.
-       * 
- * - * int32 max_parallelism = 18; - */ - public Builder clearMaxParallelism() { - - maxParallelism_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue interruptible_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public boolean hasInterruptible() { - return interruptibleBuilder_ != null || interruptible_ != null; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public com.google.protobuf.BoolValue getInterruptible() { - if (interruptibleBuilder_ == null) { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } else { - return interruptibleBuilder_.getMessage(); - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public Builder setInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interruptible_ = value; - onChanged(); - } else { - interruptibleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public Builder setInterruptible( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (interruptibleBuilder_ == null) { - interruptible_ = builderForValue.build(); - onChanged(); - } else { - interruptibleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (interruptible_ != null) { - interruptible_ = - com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); - } else { - interruptible_ = value; - } - onChanged(); - } else { - interruptibleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public Builder clearInterruptible() { - if (interruptibleBuilder_ == null) { - interruptible_ = null; - onChanged(); - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { - - onChanged(); - return getInterruptibleFieldBuilder().getBuilder(); - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - if (interruptibleBuilder_ != null) { - return interruptibleBuilder_.getMessageOrBuilder(); - } else { - return interruptible_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getInterruptibleFieldBuilder() { - if (interruptibleBuilder_ == null) { - interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getInterruptible(), - getParentForChildren(), - isClean()); - interruptible_ = null; - } - return interruptibleBuilder_; - } - - private boolean overwriteCache_ ; - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 20; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 20; - */ - public Builder setOverwriteCache(boolean value) { - - overwriteCache_ = value; - onChanged(); - return this; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 20; - */ - public Builder clearOverwriteCache() { - - overwriteCache_ = false; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Envs envs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public boolean hasEnvs() { - return envsBuilder_ != null || envs_ != null; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public flyteidl.admin.Common.Envs getEnvs() { - if (envsBuilder_ == null) { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } else { - return envsBuilder_.getMessage(); - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public Builder setEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - envs_ = value; - onChanged(); - } else { - envsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public Builder setEnvs( - flyteidl.admin.Common.Envs.Builder builderForValue) { - if (envsBuilder_ == null) { - envs_ = builderForValue.build(); - onChanged(); - } else { - envsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (envs_ != null) { - envs_ = - flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); - } else { - envs_ = value; - } - onChanged(); - } else { - envsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public Builder clearEnvs() { - if (envsBuilder_ == null) { - envs_ = null; - onChanged(); - } else { - envs_ = null; - envsBuilder_ = null; - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { - - onChanged(); - return getEnvsFieldBuilder().getBuilder(); - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - if (envsBuilder_ != null) { - return envsBuilder_.getMessageOrBuilder(); - } else { - return envs_ == null ? - flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> - getEnvsFieldBuilder() { - if (envsBuilder_ == null) { - envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( - getEnvs(), - getParentForChildren(), - isClean()); - envs_ = null; - } - return envsBuilder_; - } - @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.LaunchPlanSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanSpec) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanSpec(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.LaunchPlanOuterClass.LaunchPlanSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicate the Launch plan state. 
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - int getStateValue(); - /** - *
-     * Indicate the Launch plan state. 
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - boolean hasExpectedInputs(); - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMap getExpectedInputs(); - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder(); - - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - boolean hasExpectedOutputs(); - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMap getExpectedOutputs(); - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder(); - - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - } - /** - *
-   * Values computed by the flyte platform after launch plan registration.
-   * These include expected_inputs required to be present in a CreateExecutionRequest
-   * to launch the reference workflow as well timestamp values associated with the launch plan.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class LaunchPlanClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanClosure) - LaunchPlanClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanClosure.newBuilder() to construct. - private LaunchPlanClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanClosure() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanClosure( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (expectedInputs_ != null) { - subBuilder = expectedInputs_.toBuilder(); - } - expectedInputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedInputs_); - expectedInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (expectedOutputs_ != null) { - subBuilder = expectedOutputs_.toBuilder(); - } - expectedOutputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expectedOutputs_); - expectedOutputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updatedAt_ != null) { - subBuilder = updatedAt_.toBuilder(); - } - updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updatedAt_); - updatedAt_ = 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * Indicate the Launch plan state. 
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Indicate the Launch plan state. 
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - public static final int EXPECTED_INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.ParameterMap expectedInputs_; - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputs_ != null; - } - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - /** - *
-     * Indicates the set of inputs expected when creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - return getExpectedInputs(); - } - - public static final int EXPECTED_OUTPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Interface.VariableMap expectedOutputs_; - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputs_ != null; - } - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - /** - *
-     * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-     * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - return getExpectedOutputs(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the launch plan was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the launch plan was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - 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 (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(1, state_); - } - if (expectedInputs_ != null) { - output.writeMessage(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - output.writeMessage(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - output.writeMessage(4, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(5, getUpdatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (expectedInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpectedInputs()); - } - if (expectedOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpectedOutputs()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdatedAt()); - } - 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.LaunchPlanOuterClass.LaunchPlanClosure)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) obj; - - if (state_ != other.state_) return false; - if (hasExpectedInputs() != other.hasExpectedInputs()) return false; - if (hasExpectedInputs()) { - if (!getExpectedInputs() - .equals(other.getExpectedInputs())) return false; - } - if (hasExpectedOutputs() != other.hasExpectedOutputs()) return false; - if (hasExpectedOutputs()) { - if (!getExpectedOutputs() - .equals(other.getExpectedOutputs())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) return false; - } - if (hasUpdatedAt() != other.hasUpdatedAt()) return false; - if (hasUpdatedAt()) { - if (!getUpdatedAt() - .equals(other.getUpdatedAt())) 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(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasExpectedInputs()) { - hash = (37 * hash) + EXPECTED_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedInputs().hashCode(); - } - if (hasExpectedOutputs()) { - hash = (37 * hash) + EXPECTED_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getExpectedOutputs().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - if (hasUpdatedAt()) { - hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getUpdatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure 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.LaunchPlanOuterClass.LaunchPlanClosure 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; - } - /** - *
-     * Values computed by the flyte platform after launch plan registration.
-     * These include expected_inputs required to be present in a CreateExecutionRequest
-     * to launch the reference workflow as well timestamp values associated with the launch plan.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanClosure) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.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(); - state_ = 0; - - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(this); - result.state_ = state_; - if (expectedInputsBuilder_ == null) { - result.expectedInputs_ = expectedInputs_; - } else { - result.expectedInputs_ = expectedInputsBuilder_.build(); - } - if (expectedOutputsBuilder_ == null) { - result.expectedOutputs_ = expectedOutputs_; - } else { - result.expectedOutputs_ = expectedOutputsBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.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.LaunchPlanOuterClass.LaunchPlanClosure) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasExpectedInputs()) { - mergeExpectedInputs(other.getExpectedInputs()); - } - if (other.hasExpectedOutputs()) { - mergeExpectedOutputs(other.getExpectedOutputs()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - 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.LaunchPlanOuterClass.LaunchPlanClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - *
-       * Indicate the Launch plan state. 
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Indicate the Launch plan state. 
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan state. 
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Indicate the Launch plan state. 
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Indicate the Launch plan state. 
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Interface.ParameterMap expectedInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> expectedInputsBuilder_; - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public boolean hasExpectedInputs() { - return expectedInputsBuilder_ != null || expectedInputs_ != null; - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getExpectedInputs() { - if (expectedInputsBuilder_ == null) { - return expectedInputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } else { - return expectedInputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedInputs_ = value; - onChanged(); - } else { - expectedInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder setExpectedInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = builderForValue.build(); - onChanged(); - } else { - expectedInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder mergeExpectedInputs(flyteidl.core.Interface.ParameterMap value) { - if (expectedInputsBuilder_ == null) { - if (expectedInputs_ != null) { - expectedInputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(expectedInputs_).mergeFrom(value).buildPartial(); - } else { - expectedInputs_ = value; - } - onChanged(); - } else { - expectedInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public Builder clearExpectedInputs() { - if (expectedInputsBuilder_ == null) { - expectedInputs_ = null; - onChanged(); - } else { - expectedInputs_ = null; - expectedInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap.Builder getExpectedInputsBuilder() { - - onChanged(); - return getExpectedInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getExpectedInputsOrBuilder() { - if (expectedInputsBuilder_ != null) { - return expectedInputsBuilder_.getMessageOrBuilder(); - } else { - return expectedInputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : expectedInputs_; - } - } - /** - *
-       * Indicates the set of inputs expected when creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.ParameterMap expected_inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getExpectedInputsFieldBuilder() { - if (expectedInputsBuilder_ == null) { - expectedInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getExpectedInputs(), - getParentForChildren(), - isClean()); - expectedInputs_ = null; - } - return expectedInputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap expectedOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> expectedOutputsBuilder_; - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public boolean hasExpectedOutputs() { - return expectedOutputsBuilder_ != null || expectedOutputs_ != null; - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap getExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - return expectedOutputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } else { - return expectedOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expectedOutputs_ = value; - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder setExpectedOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = builderForValue.build(); - onChanged(); - } else { - expectedOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder mergeExpectedOutputs(flyteidl.core.Interface.VariableMap value) { - if (expectedOutputsBuilder_ == null) { - if (expectedOutputs_ != null) { - expectedOutputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(expectedOutputs_).mergeFrom(value).buildPartial(); - } else { - expectedOutputs_ = value; - } - onChanged(); - } else { - expectedOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public Builder clearExpectedOutputs() { - if (expectedOutputsBuilder_ == null) { - expectedOutputs_ = null; - onChanged(); - } else { - expectedOutputs_ = null; - expectedOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMap.Builder getExpectedOutputsBuilder() { - - onChanged(); - return getExpectedOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getExpectedOutputsOrBuilder() { - if (expectedOutputsBuilder_ != null) { - return expectedOutputsBuilder_.getMessageOrBuilder(); - } else { - return expectedOutputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : expectedOutputs_; - } - } - /** - *
-       * Indicates the set of outputs expected to be produced by creating an execution with the Launch plan
-       * 
- * - * .flyteidl.core.VariableMap expected_outputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getExpectedOutputsFieldBuilder() { - if (expectedOutputsBuilder_ == null) { - expectedOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getExpectedOutputs(), - getParentForChildren(), - isClean()); - expectedOutputs_ = null; - } - return expectedOutputsBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the launch plan was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - - private com.google.protobuf.Timestamp updatedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updatedAt_ = value; - onChanged(); - } else { - updatedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (updatedAt_ != null) { - updatedAt_ = - com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); - } else { - updatedAt_ = value; - } - onChanged(); - } else { - updatedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the launch plan was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdatedAtFieldBuilder() { - if (updatedAtBuilder_ == null) { - updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdatedAt(), - getParentForChildren(), - isClean()); - updatedAt_ = null; - } - return updatedAtBuilder_; - } - @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.LaunchPlanClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanClosure) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanClosure(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.LaunchPlanOuterClass.LaunchPlanClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - boolean hasSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.Schedule getSchedule(); - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder(); - - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.Notification getNotifications(int index); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - int getNotificationsCount(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - java.util.List - getNotificationsOrBuilderList(); - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index); - - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - boolean hasLaunchConditions(); - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - com.google.protobuf.Any getLaunchConditions(); - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - com.google.protobuf.AnyOrBuilder getLaunchConditionsOrBuilder(); - } - /** - *
-   * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-   * the reference workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class LaunchPlanMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanMetadata) - LaunchPlanMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanMetadata.newBuilder() to construct. - private LaunchPlanMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanMetadata() { - notifications_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanMetadata( - 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.ScheduleOuterClass.Schedule.Builder subBuilder = null; - if (schedule_ != null) { - subBuilder = schedule_.toBuilder(); - } - schedule_ = input.readMessage(flyteidl.admin.ScheduleOuterClass.Schedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(schedule_); - schedule_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - notifications_.add( - input.readMessage(flyteidl.admin.Common.Notification.parser(), extensionRegistry)); - break; - } - case 26: { - com.google.protobuf.Any.Builder subBuilder = null; - if (launchConditions_ != null) { - subBuilder = launchConditions_.toBuilder(); - } - launchConditions_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchConditions_); - launchConditions_ = 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - private int bitField0_; - public static final int SCHEDULE_FIELD_NUMBER = 1; - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return schedule_ != null; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - /** - *
-     * Schedule to execute the Launch Plan
-     * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - return getSchedule(); - } - - public static final int NOTIFICATIONS_FIELD_NUMBER = 2; - private java.util.List notifications_; - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - return notifications_; - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - return notifications_.size(); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - return notifications_.get(index); - } - /** - *
-     * List of notifications based on Execution status transitions
-     * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - return notifications_.get(index); - } - - public static final int LAUNCH_CONDITIONS_FIELD_NUMBER = 3; - private com.google.protobuf.Any launchConditions_; - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public boolean hasLaunchConditions() { - return launchConditions_ != null; - } - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public com.google.protobuf.Any getLaunchConditions() { - return launchConditions_ == null ? com.google.protobuf.Any.getDefaultInstance() : launchConditions_; - } - /** - *
-     * Additional metadata for how to launch the launch plan
-     * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public com.google.protobuf.AnyOrBuilder getLaunchConditionsOrBuilder() { - return getLaunchConditions(); - } - - 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 (schedule_ != null) { - output.writeMessage(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - output.writeMessage(2, notifications_.get(i)); - } - if (launchConditions_ != null) { - output.writeMessage(3, getLaunchConditions()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (schedule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSchedule()); - } - for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, notifications_.get(i)); - } - if (launchConditions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLaunchConditions()); - } - 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.LaunchPlanOuterClass.LaunchPlanMetadata)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) obj; - - if (hasSchedule() != other.hasSchedule()) return false; - if (hasSchedule()) { - if (!getSchedule() - .equals(other.getSchedule())) return false; - } - if (!getNotificationsList() - .equals(other.getNotificationsList())) return false; - if (hasLaunchConditions() != other.hasLaunchConditions()) return false; - if (hasLaunchConditions()) { - if (!getLaunchConditions() - .equals(other.getLaunchConditions())) 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 (hasSchedule()) { - hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getSchedule().hashCode(); - } - if (getNotificationsCount() > 0) { - hash = (37 * hash) + NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + getNotificationsList().hashCode(); - } - if (hasLaunchConditions()) { - hash = (37 * hash) + LAUNCH_CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getLaunchConditions().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata 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.LaunchPlanOuterClass.LaunchPlanMetadata 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; - } - /** - *
-     * Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch
-     * the reference workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanMetadata) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNotificationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (scheduleBuilder_ == null) { - schedule_ = null; - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - notificationsBuilder_.clear(); - } - if (launchConditionsBuilder_ == null) { - launchConditions_ = null; - } else { - launchConditions_ = null; - launchConditionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (scheduleBuilder_ == null) { - result.schedule_ = schedule_; - } else { - result.schedule_ = scheduleBuilder_.build(); - } - if (notificationsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - notifications_ = java.util.Collections.unmodifiableList(notifications_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.notifications_ = notifications_; - } else { - result.notifications_ = notificationsBuilder_.build(); - } - if (launchConditionsBuilder_ == null) { - result.launchConditions_ = launchConditions_; - } else { - result.launchConditions_ = launchConditionsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.LaunchPlanOuterClass.LaunchPlanMetadata) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata.getDefaultInstance()) return this; - if (other.hasSchedule()) { - mergeSchedule(other.getSchedule()); - } - if (notificationsBuilder_ == null) { - if (!other.notifications_.isEmpty()) { - if (notifications_.isEmpty()) { - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureNotificationsIsMutable(); - notifications_.addAll(other.notifications_); - } - onChanged(); - } - } else { - if (!other.notifications_.isEmpty()) { - if (notificationsBuilder_.isEmpty()) { - notificationsBuilder_.dispose(); - notificationsBuilder_ = null; - notifications_ = other.notifications_; - bitField0_ = (bitField0_ & ~0x00000002); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; - } else { - notificationsBuilder_.addAllMessages(other.notifications_); - } - } - } - if (other.hasLaunchConditions()) { - mergeLaunchConditions(other.getLaunchConditions()); - } - 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.LaunchPlanOuterClass.LaunchPlanMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.admin.ScheduleOuterClass.Schedule schedule_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> scheduleBuilder_; - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public boolean hasSchedule() { - return scheduleBuilder_ != null || schedule_ != null; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule getSchedule() { - if (scheduleBuilder_ == null) { - return schedule_ == null ? flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } else { - return scheduleBuilder_.getMessage(); - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schedule_ = value; - onChanged(); - } else { - scheduleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder setSchedule( - flyteidl.admin.ScheduleOuterClass.Schedule.Builder builderForValue) { - if (scheduleBuilder_ == null) { - schedule_ = builderForValue.build(); - onChanged(); - } else { - scheduleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder mergeSchedule(flyteidl.admin.ScheduleOuterClass.Schedule value) { - if (scheduleBuilder_ == null) { - if (schedule_ != null) { - schedule_ = - flyteidl.admin.ScheduleOuterClass.Schedule.newBuilder(schedule_).mergeFrom(value).buildPartial(); - } else { - schedule_ = value; - } - onChanged(); - } else { - scheduleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public Builder clearSchedule() { - if (scheduleBuilder_ == null) { - schedule_ = null; - onChanged(); - } else { - schedule_ = null; - scheduleBuilder_ = null; - } - - return this; - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.Schedule.Builder getScheduleBuilder() { - - onChanged(); - return getScheduleFieldBuilder().getBuilder(); - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - public flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder getScheduleOrBuilder() { - if (scheduleBuilder_ != null) { - return scheduleBuilder_.getMessageOrBuilder(); - } else { - return schedule_ == null ? - flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance() : schedule_; - } - } - /** - *
-       * Schedule to execute the Launch Plan
-       * 
- * - * .flyteidl.admin.Schedule schedule = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder> - getScheduleFieldBuilder() { - if (scheduleBuilder_ == null) { - scheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.Schedule, flyteidl.admin.ScheduleOuterClass.Schedule.Builder, flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder>( - getSchedule(), - getParentForChildren(), - isClean()); - schedule_ = null; - } - return scheduleBuilder_; - } - - private java.util.List notifications_ = - java.util.Collections.emptyList(); - private void ensureNotificationsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> notificationsBuilder_; - - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List getNotificationsList() { - if (notificationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(notifications_); - } else { - return notificationsBuilder_.getMessageList(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public int getNotificationsCount() { - if (notificationsBuilder_ == null) { - return notifications_.size(); - } else { - return notificationsBuilder_.getCount(); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification getNotifications(int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { - return notificationsBuilder_.getMessage(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.set(index, value); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder setNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.set(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications(flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(value); - onChanged(); - } else { - notificationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification value) { - if (notificationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNotificationsIsMutable(); - notifications_.add(index, value); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addNotifications( - int index, flyteidl.admin.Common.Notification.Builder builderForValue) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(index, builderForValue.build()); - onChanged(); - } else { - notificationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder addAllNotifications( - java.lang.Iterable values) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); - onChanged(); - } else { - notificationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder clearNotifications() { - if (notificationsBuilder_ == null) { - notifications_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - notificationsBuilder_.clear(); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public Builder removeNotifications(int index) { - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.remove(index); - onChanged(); - } else { - notificationsBuilder_.remove(index); - } - return this; - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder getNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.NotificationOrBuilder getNotificationsOrBuilder( - int index) { - if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { - return notificationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsOrBuilderList() { - if (notificationsBuilder_ != null) { - return notificationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(notifications_); - } - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public flyteidl.admin.Common.Notification.Builder addNotificationsBuilder( - int index) { - return getNotificationsFieldBuilder().addBuilder( - index, flyteidl.admin.Common.Notification.getDefaultInstance()); - } - /** - *
-       * List of notifications based on Execution status transitions
-       * 
- * - * repeated .flyteidl.admin.Notification notifications = 2; - */ - public java.util.List - getNotificationsBuilderList() { - return getNotificationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder> - getNotificationsFieldBuilder() { - if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.Common.Notification, flyteidl.admin.Common.Notification.Builder, flyteidl.admin.Common.NotificationOrBuilder>( - notifications_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - notifications_ = null; - } - return notificationsBuilder_; - } - - private com.google.protobuf.Any launchConditions_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> launchConditionsBuilder_; - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public boolean hasLaunchConditions() { - return launchConditionsBuilder_ != null || launchConditions_ != null; - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public com.google.protobuf.Any getLaunchConditions() { - if (launchConditionsBuilder_ == null) { - return launchConditions_ == null ? com.google.protobuf.Any.getDefaultInstance() : launchConditions_; - } else { - return launchConditionsBuilder_.getMessage(); - } - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public Builder setLaunchConditions(com.google.protobuf.Any value) { - if (launchConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchConditions_ = value; - onChanged(); - } else { - launchConditionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public Builder setLaunchConditions( - com.google.protobuf.Any.Builder builderForValue) { - if (launchConditionsBuilder_ == null) { - launchConditions_ = builderForValue.build(); - onChanged(); - } else { - launchConditionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public Builder mergeLaunchConditions(com.google.protobuf.Any value) { - if (launchConditionsBuilder_ == null) { - if (launchConditions_ != null) { - launchConditions_ = - com.google.protobuf.Any.newBuilder(launchConditions_).mergeFrom(value).buildPartial(); - } else { - launchConditions_ = value; - } - onChanged(); - } else { - launchConditionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public Builder clearLaunchConditions() { - if (launchConditionsBuilder_ == null) { - launchConditions_ = null; - onChanged(); - } else { - launchConditions_ = null; - launchConditionsBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public com.google.protobuf.Any.Builder getLaunchConditionsBuilder() { - - onChanged(); - return getLaunchConditionsFieldBuilder().getBuilder(); - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - public com.google.protobuf.AnyOrBuilder getLaunchConditionsOrBuilder() { - if (launchConditionsBuilder_ != null) { - return launchConditionsBuilder_.getMessageOrBuilder(); - } else { - return launchConditions_ == null ? - com.google.protobuf.Any.getDefaultInstance() : launchConditions_; - } - } - /** - *
-       * Additional metadata for how to launch the launch plan
-       * 
- * - * .google.protobuf.Any launch_conditions = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getLaunchConditionsFieldBuilder() { - if (launchConditionsBuilder_ == null) { - launchConditionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getLaunchConditions(), - getParentForChildren(), - isClean()); - launchConditions_ = null; - } - return launchConditionsBuilder_; - } - @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.LaunchPlanMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanMetadata) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanMetadata(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.LaunchPlanOuterClass.LaunchPlanMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Desired state to apply to the launch plan.
-     * +required.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - int getStateValue(); - /** - *
-     * Desired state to apply to the launch plan.
-     * +required.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState(); - } - /** - *
-   * Request to set the referenced launch plan state to the configured value.
-   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class LaunchPlanUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateRequest) - LaunchPlanUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateRequest.newBuilder() to construct. - private LaunchPlanUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateRequest() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateRequest( - 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; - } - case 16: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Identifier of launch plan for which to change state.
-     * +required.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int STATE_FIELD_NUMBER = 2; - private int state_; - /** - *
-     * Desired state to apply to the launch plan.
-     * +required.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * Desired state to apply to the launch plan.
-     * +required.
-     * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - - 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()); - } - if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - output.writeEnum(2, state_); - } - 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()); - } - if (state_ != flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.INACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, state_); - } - 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (state_ != other.state_) 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 = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest 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; - } - /** - *
-     * Request to set the referenced launch plan state to the configured value.
-     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateRequest) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.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; - } - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.state_ = state_; - 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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.LaunchPlanOuterClass.LaunchPlanUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest) 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_; - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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(); - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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_; - } - } - /** - *
-       * Identifier of launch plan for which to change state.
-       * +required.
-       * 
- * - * .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_; - } - - private int state_ = 0; - /** - *
-       * Desired state to apply to the launch plan.
-       * +required.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * +required.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * +required.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState result = flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.valueOf(state_); - return result == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState.UNRECOGNIZED : result; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * +required.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder setState(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Desired state to apply to the launch plan.
-       * +required.
-       * 
- * - * .flyteidl.admin.LaunchPlanState state = 2; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - @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.LaunchPlanUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateRequest(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.LaunchPlanOuterClass.LaunchPlanUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LaunchPlanUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.LaunchPlanUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class LaunchPlanUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.LaunchPlanUpdateResponse) - LaunchPlanUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use LaunchPlanUpdateResponse.newBuilder() to construct. - private LaunchPlanUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LaunchPlanUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LaunchPlanUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.LaunchPlanUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.LaunchPlanUpdateResponse) - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.class, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse build() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse result = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(this); - 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse.getDefaultInstance()) return this; - 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.LaunchPlanOuterClass.LaunchPlanUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.LaunchPlanUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.LaunchPlanUpdateResponse) - private static final flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LaunchPlanUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LaunchPlanUpdateResponse(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.LaunchPlanOuterClass.LaunchPlanUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifier getId(); - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class ActiveLaunchPlanRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanRequest) - ActiveLaunchPlanRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanRequest.newBuilder() to construct. - private ActiveLaunchPlanRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanRequest( - 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.Common.NamedEntityIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.admin.Common.NamedEntityIdentifier.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.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.admin.Common.NamedEntityIdentifier id_; - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * +required.
-     * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanRequest 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; - } - /** - *
-     * Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier
-     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(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.LaunchPlanOuterClass.ActiveLaunchPlanRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest.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.LaunchPlanOuterClass.ActiveLaunchPlanRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.NamedEntityIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> idBuilder_; - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder setId( - flyteidl.admin.Common.NamedEntityIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder mergeId(flyteidl.admin.Common.NamedEntityIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.admin.Common.NamedEntityIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - public flyteidl.admin.Common.NamedEntityIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.admin.Common.NamedEntityIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * +required.
-       * 
- * - * .flyteidl.admin.NamedEntityIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.NamedEntityIdentifier, flyteidl.admin.Common.NamedEntityIdentifier.Builder, flyteidl.admin.Common.NamedEntityIdentifierOrBuilder>( - 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.ActiveLaunchPlanRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanRequest(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.LaunchPlanOuterClass.ActiveLaunchPlanRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ActiveLaunchPlanListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ActiveLaunchPlanListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project that contains the identifiers.
-     * +required.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project that contains the identifiers.
-     * +required.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required.
-     * 
- * - * uint32 limit = 3; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to list active launch plans within a project/domain.
-   * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class ActiveLaunchPlanListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - ActiveLaunchPlanListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ActiveLaunchPlanListRequest.newBuilder() to construct. - private ActiveLaunchPlanListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ActiveLaunchPlanListRequest() { - project_ = ""; - domain_ = ""; - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ActiveLaunchPlanListRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - - limit_ = input.readUInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project that contains the identifiers.
-     * +required.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project that contains the identifiers.
-     * +required.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the identifiers belongs to within the project.
-     * +required.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 3; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required.
-     * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (limit_ != 0) { - output.writeUInt32(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, token_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, token_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)) { - return super.equals(obj); - } - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest 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; - } - /** - *
-     * Represents a request structure to list active launch plans within a project/domain.
-     * See :ref:`ref_flyteidl.admin.LaunchPlan` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ActiveLaunchPlanListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ActiveLaunchPlanListRequest) - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.class, flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.Builder.class); - } - - // Construct using flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.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(); - project_ = ""; - - domain_ = ""; - - limit_ = 0; - - token_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.LaunchPlanOuterClass.internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest build() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest buildPartial() { - flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest result = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.limit_ = limit_; - result.token_ = token_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) { - return mergeFrom((flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest other) { - if (other == flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project that contains the identifiers.
-       * +required.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project that contains the identifiers.
-       * +required.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the identifiers belongs to within the project.
-       * +required.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required.
-       * 
- * - * uint32 limit = 3; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required.
-       * 
- * - * uint32 limit = 3; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required.
-       * 
- * - * uint32 limit = 3; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 4; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.ActiveLaunchPlanListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ActiveLaunchPlanListRequest) - private static final flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest(); - } - - public static flyteidl.admin.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ActiveLaunchPlanListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveLaunchPlanListRequest(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.LaunchPlanOuterClass.ActiveLaunchPlanListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlan_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Auth_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Auth_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n flyteidl/admin/launch_plan.proto\022\016flyt" + - "eidl.admin\032\035flyteidl/core/execution.prot" + - "o\032\034flyteidl/core/literals.proto\032\036flyteid" + - "l/core/identifier.proto\032\035flyteidl/core/i" + - "nterface.proto\032\034flyteidl/core/security.p" + - "roto\032\035flyteidl/admin/schedule.proto\032\033fly" + - "teidl/admin/common.proto\032\031google/protobu" + - "f/any.proto\032\037google/protobuf/timestamp.p" + - "roto\032\036google/protobuf/wrappers.proto\"n\n\027" + - "LaunchPlanCreateRequest\022%\n\002id\030\001 \001(\0132\031.fl" + - "yteidl.core.Identifier\022,\n\004spec\030\002 \001(\0132\036.f" + - "lyteidl.admin.LaunchPlanSpec\"\032\n\030LaunchPl" + - "anCreateResponse\"\225\001\n\nLaunchPlan\022%\n\002id\030\001 " + - "\001(\0132\031.flyteidl.core.Identifier\022,\n\004spec\030\002" + - " \001(\0132\036.flyteidl.admin.LaunchPlanSpec\0222\n\007" + - "closure\030\003 \001(\0132!.flyteidl.admin.LaunchPla" + - "nClosure\"Q\n\016LaunchPlanList\0220\n\014launch_pla" + - "ns\030\001 \003(\0132\032.flyteidl.admin.LaunchPlan\022\r\n\005" + - "token\030\002 \001(\t\"J\n\004Auth\022\032\n\022assumable_iam_rol" + - "e\030\001 \001(\t\022\"\n\032kubernetes_service_account\030\002 " + - "\001(\t:\002\030\001\"\355\005\n\016LaunchPlanSpec\022.\n\013workflow_i" + - "d\030\001 \001(\0132\031.flyteidl.core.Identifier\022;\n\017en" + - "tity_metadata\030\002 \001(\0132\".flyteidl.admin.Lau" + - "nchPlanMetadata\0223\n\016default_inputs\030\003 \001(\0132" + - "\033.flyteidl.core.ParameterMap\022/\n\014fixed_in" + - "puts\030\004 \001(\0132\031.flyteidl.core.LiteralMap\022\020\n" + - "\004role\030\005 \001(\tB\002\030\001\022&\n\006labels\030\006 \001(\0132\026.flytei" + - "dl.admin.Labels\0220\n\013annotations\030\007 \001(\0132\033.f" + - "lyteidl.admin.Annotations\022&\n\004auth\030\010 \001(\0132" + - "\024.flyteidl.admin.AuthB\002\030\001\022/\n\tauth_role\030\t" + - " \001(\0132\030.flyteidl.admin.AuthRoleB\002\030\001\0228\n\020se" + - "curity_context\030\n \001(\0132\036.flyteidl.core.Sec" + - "urityContext\022;\n\022quality_of_service\030\020 \001(\013" + - "2\037.flyteidl.core.QualityOfService\022C\n\026raw" + - "_output_data_config\030\021 \001(\0132#.flyteidl.adm" + - "in.RawOutputDataConfig\022\027\n\017max_parallelis" + - "m\030\022 \001(\005\0221\n\rinterruptible\030\023 \001(\0132\032.google." + - "protobuf.BoolValue\022\027\n\017overwrite_cache\030\024 " + - "\001(\010\022\"\n\004envs\030\025 \001(\0132\024.flyteidl.admin.Envs\"" + - "\217\002\n\021LaunchPlanClosure\022.\n\005state\030\001 \001(\0162\037.f" + - "lyteidl.admin.LaunchPlanState\0224\n\017expecte" + - "d_inputs\030\002 \001(\0132\033.flyteidl.core.Parameter" + - "Map\0224\n\020expected_outputs\030\003 \001(\0132\032.flyteidl" + - ".core.VariableMap\022.\n\ncreated_at\030\004 \001(\0132\032." + - "google.protobuf.Timestamp\022.\n\nupdated_at\030" + - "\005 \001(\0132\032.google.protobuf.Timestamp\"\246\001\n\022La" + - "unchPlanMetadata\022*\n\010schedule\030\001 \001(\0132\030.fly" + - "teidl.admin.Schedule\0223\n\rnotifications\030\002 " + - "\003(\0132\034.flyteidl.admin.Notification\022/\n\021lau" + - "nch_conditions\030\003 \001(\0132\024.google.protobuf.A" + - "ny\"p\n\027LaunchPlanUpdateRequest\022%\n\002id\030\001 \001(" + - "\0132\031.flyteidl.core.Identifier\022.\n\005state\030\002 " + - "\001(\0162\037.flyteidl.admin.LaunchPlanState\"\032\n\030" + - "LaunchPlanUpdateResponse\"L\n\027ActiveLaunch" + - "PlanRequest\0221\n\002id\030\001 \001(\0132%.flyteidl.admin" + - ".NamedEntityIdentifier\"\203\001\n\033ActiveLaunchP" + - "lanListRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domai" + - "n\030\002 \001(\t\022\r\n\005limit\030\003 \001(\r\022\r\n\005token\030\004 \001(\t\022%\n" + - "\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort*+\n\017" + - "LaunchPlanState\022\014\n\010INACTIVE\020\000\022\n\n\006ACTIVE\020" + - "\001B=Z;github.com/flyteorg/flyte/flyteidl/" + - "gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.Security.getDescriptor(), - flyteidl.admin.ScheduleOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - com.google.protobuf.AnyProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_LaunchPlanCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_LaunchPlanCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_LaunchPlan_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_LaunchPlan_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlan_descriptor, - new java.lang.String[] { "Id", "Spec", "Closure", }); - internal_static_flyteidl_admin_LaunchPlanList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_LaunchPlanList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanList_descriptor, - new java.lang.String[] { "LaunchPlans", "Token", }); - internal_static_flyteidl_admin_Auth_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_Auth_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Auth_descriptor, - new java.lang.String[] { "AssumableIamRole", "KubernetesServiceAccount", }); - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_LaunchPlanSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanSpec_descriptor, - new java.lang.String[] { "WorkflowId", "EntityMetadata", "DefaultInputs", "FixedInputs", "Role", "Labels", "Annotations", "Auth", "AuthRole", "SecurityContext", "QualityOfService", "RawOutputDataConfig", "MaxParallelism", "Interruptible", "OverwriteCache", "Envs", }); - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_LaunchPlanClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanClosure_descriptor, - new java.lang.String[] { "State", "ExpectedInputs", "ExpectedOutputs", "CreatedAt", "UpdatedAt", }); - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_LaunchPlanMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanMetadata_descriptor, - new java.lang.String[] { "Schedule", "Notifications", "LaunchConditions", }); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateRequest_descriptor, - new java.lang.String[] { "Id", "State", }); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_LaunchPlanUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ActiveLaunchPlanListRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Limit", "Token", "SortBy", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.Security.getDescriptor(); - flyteidl.admin.ScheduleOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java deleted file mode 100644 index 0f4b473a21..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/MatchableResourceOuterClass.java +++ /dev/null @@ -1,13251 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/matchable_resource.proto - -package flyteidl.admin; - -public final class MatchableResourceOuterClass { - private MatchableResourceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes
-   * based on matching tags.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.MatchableResource} - */ - public enum MatchableResource - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - TASK_RESOURCE(0), - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - CLUSTER_RESOURCE(1), - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - EXECUTION_QUEUE(2), - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - EXECUTION_CLUSTER_LABEL(3), - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - QUALITY_OF_SERVICE_SPECIFICATION(4), - /** - *
-     * Selects configurable plugin implementation behavior for a given task type.
-     * 
- * - * PLUGIN_OVERRIDE = 5; - */ - PLUGIN_OVERRIDE(5), - /** - *
-     * Adds defaults for customizable workflow-execution specifications and overrides.
-     * 
- * - * WORKFLOW_EXECUTION_CONFIG = 6; - */ - WORKFLOW_EXECUTION_CONFIG(6), - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * CLUSTER_ASSIGNMENT = 7; - */ - CLUSTER_ASSIGNMENT(7), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Applies to customizable task resource requests and limits.
-     * 
- * - * TASK_RESOURCE = 0; - */ - public static final int TASK_RESOURCE_VALUE = 0; - /** - *
-     * Applies to configuring templated kubernetes cluster resources.
-     * 
- * - * CLUSTER_RESOURCE = 1; - */ - public static final int CLUSTER_RESOURCE_VALUE = 1; - /** - *
-     * Configures task and dynamic task execution queue assignment.
-     * 
- * - * EXECUTION_QUEUE = 2; - */ - public static final int EXECUTION_QUEUE_VALUE = 2; - /** - *
-     * Configures the K8s cluster label to be used for execution to be run
-     * 
- * - * EXECUTION_CLUSTER_LABEL = 3; - */ - public static final int EXECUTION_CLUSTER_LABEL_VALUE = 3; - /** - *
-     * Configures default quality of service when undefined in an execution spec.
-     * 
- * - * QUALITY_OF_SERVICE_SPECIFICATION = 4; - */ - public static final int QUALITY_OF_SERVICE_SPECIFICATION_VALUE = 4; - /** - *
-     * Selects configurable plugin implementation behavior for a given task type.
-     * 
- * - * PLUGIN_OVERRIDE = 5; - */ - public static final int PLUGIN_OVERRIDE_VALUE = 5; - /** - *
-     * Adds defaults for customizable workflow-execution specifications and overrides.
-     * 
- * - * WORKFLOW_EXECUTION_CONFIG = 6; - */ - public static final int WORKFLOW_EXECUTION_CONFIG_VALUE = 6; - /** - *
-     * Controls how to select an available cluster on which this execution should run.
-     * 
- * - * CLUSTER_ASSIGNMENT = 7; - */ - public static final int CLUSTER_ASSIGNMENT_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchableResource valueOf(int value) { - return forNumber(value); - } - - public static MatchableResource forNumber(int value) { - switch (value) { - case 0: return TASK_RESOURCE; - case 1: return CLUSTER_RESOURCE; - case 2: return EXECUTION_QUEUE; - case 3: return EXECUTION_CLUSTER_LABEL; - case 4: return QUALITY_OF_SERVICE_SPECIFICATION; - case 5: return PLUGIN_OVERRIDE; - case 6: return WORKFLOW_EXECUTION_CONFIG; - case 7: return CLUSTER_ASSIGNMENT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchableResource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchableResource findValueByNumber(int number) { - return MatchableResource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchableResource[] VALUES = values(); - - public static MatchableResource valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchableResource(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.MatchableResource) - } - - public interface TaskResourceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * string cpu = 1; - */ - java.lang.String getCpu(); - /** - * string cpu = 1; - */ - com.google.protobuf.ByteString - getCpuBytes(); - - /** - * string gpu = 2; - */ - java.lang.String getGpu(); - /** - * string gpu = 2; - */ - com.google.protobuf.ByteString - getGpuBytes(); - - /** - * string memory = 3; - */ - java.lang.String getMemory(); - /** - * string memory = 3; - */ - com.google.protobuf.ByteString - getMemoryBytes(); - - /** - * string storage = 4; - */ - java.lang.String getStorage(); - /** - * string storage = 4; - */ - com.google.protobuf.ByteString - getStorageBytes(); - - /** - * string ephemeral_storage = 5; - */ - java.lang.String getEphemeralStorage(); - /** - * string ephemeral_storage = 5; - */ - com.google.protobuf.ByteString - getEphemeralStorageBytes(); - } - /** - *
-   * Defines a set of overridable task resource attributes set during task registration.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskResourceSpec} - */ - public static final class TaskResourceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceSpec) - TaskResourceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceSpec.newBuilder() to construct. - private TaskResourceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceSpec() { - cpu_ = ""; - gpu_ = ""; - memory_ = ""; - storage_ = ""; - ephemeralStorage_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceSpec( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - cpu_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - gpu_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - memory_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - storage_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - ephemeralStorage_ = s; - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - public static final int CPU_FIELD_NUMBER = 1; - private volatile java.lang.Object cpu_; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpu_ = s; - return s; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GPU_FIELD_NUMBER = 2; - private volatile java.lang.Object gpu_; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpu_ = s; - return s; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMORY_FIELD_NUMBER = 3; - private volatile java.lang.Object memory_; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memory_ = s; - return s; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGE_FIELD_NUMBER = 4; - private volatile java.lang.Object storage_; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EPHEMERAL_STORAGE_FIELD_NUMBER = 5; - private volatile java.lang.Object ephemeralStorage_; - /** - * string ephemeral_storage = 5; - */ - public java.lang.String getEphemeralStorage() { - java.lang.Object ref = ephemeralStorage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ephemeralStorage_ = s; - return s; - } - } - /** - * string ephemeral_storage = 5; - */ - public com.google.protobuf.ByteString - getEphemeralStorageBytes() { - java.lang.Object ref = ephemeralStorage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ephemeralStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getCpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, memory_); - } - if (!getStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storage_); - } - if (!getEphemeralStorageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, ephemeralStorage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cpu_); - } - if (!getGpuBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gpu_); - } - if (!getMemoryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, memory_); - } - if (!getStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storage_); - } - if (!getEphemeralStorageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, ephemeralStorage_); - } - 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.MatchableResourceOuterClass.TaskResourceSpec)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) obj; - - if (!getCpu() - .equals(other.getCpu())) return false; - if (!getGpu() - .equals(other.getGpu())) return false; - if (!getMemory() - .equals(other.getMemory())) return false; - if (!getStorage() - .equals(other.getStorage())) return false; - if (!getEphemeralStorage() - .equals(other.getEphemeralStorage())) 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(); - hash = (37 * hash) + CPU_FIELD_NUMBER; - hash = (53 * hash) + getCpu().hashCode(); - hash = (37 * hash) + GPU_FIELD_NUMBER; - hash = (53 * hash) + getGpu().hashCode(); - hash = (37 * hash) + MEMORY_FIELD_NUMBER; - hash = (53 * hash) + getMemory().hashCode(); - hash = (37 * hash) + STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getStorage().hashCode(); - hash = (37 * hash) + EPHEMERAL_STORAGE_FIELD_NUMBER; - hash = (53 * hash) + getEphemeralStorage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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.MatchableResourceOuterClass.TaskResourceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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.MatchableResourceOuterClass.TaskResourceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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.MatchableResourceOuterClass.TaskResourceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec 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.MatchableResourceOuterClass.TaskResourceSpec 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; - } - /** - *
-     * Defines a set of overridable task resource attributes set during task registration.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskResourceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceSpec) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.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(); - cpu_ = ""; - - gpu_ = ""; - - memory_ = ""; - - storage_ = ""; - - ephemeralStorage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(this); - result.cpu_ = cpu_; - result.gpu_ = gpu_; - result.memory_ = memory_; - result.storage_ = storage_; - result.ephemeralStorage_ = ephemeralStorage_; - 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.MatchableResourceOuterClass.TaskResourceSpec) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance()) return this; - if (!other.getCpu().isEmpty()) { - cpu_ = other.cpu_; - onChanged(); - } - if (!other.getGpu().isEmpty()) { - gpu_ = other.gpu_; - onChanged(); - } - if (!other.getMemory().isEmpty()) { - memory_ = other.memory_; - onChanged(); - } - if (!other.getStorage().isEmpty()) { - storage_ = other.storage_; - onChanged(); - } - if (!other.getEphemeralStorage().isEmpty()) { - ephemeralStorage_ = other.ephemeralStorage_; - onChanged(); - } - 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.MatchableResourceOuterClass.TaskResourceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object cpu_ = ""; - /** - * string cpu = 1; - */ - public java.lang.String getCpu() { - java.lang.Object ref = cpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - cpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cpu = 1; - */ - public com.google.protobuf.ByteString - getCpuBytes() { - java.lang.Object ref = cpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - cpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cpu = 1; - */ - public Builder setCpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - cpu_ = value; - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder clearCpu() { - - cpu_ = getDefaultInstance().getCpu(); - onChanged(); - return this; - } - /** - * string cpu = 1; - */ - public Builder setCpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - cpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object gpu_ = ""; - /** - * string gpu = 2; - */ - public java.lang.String getGpu() { - java.lang.Object ref = gpu_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gpu_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string gpu = 2; - */ - public com.google.protobuf.ByteString - getGpuBytes() { - java.lang.Object ref = gpu_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gpu_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string gpu = 2; - */ - public Builder setGpu( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - gpu_ = value; - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder clearGpu() { - - gpu_ = getDefaultInstance().getGpu(); - onChanged(); - return this; - } - /** - * string gpu = 2; - */ - public Builder setGpuBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - gpu_ = value; - onChanged(); - return this; - } - - private java.lang.Object memory_ = ""; - /** - * string memory = 3; - */ - public java.lang.String getMemory() { - java.lang.Object ref = memory_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - memory_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string memory = 3; - */ - public com.google.protobuf.ByteString - getMemoryBytes() { - java.lang.Object ref = memory_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - memory_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string memory = 3; - */ - public Builder setMemory( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - memory_ = value; - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder clearMemory() { - - memory_ = getDefaultInstance().getMemory(); - onChanged(); - return this; - } - /** - * string memory = 3; - */ - public Builder setMemoryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - memory_ = value; - onChanged(); - return this; - } - - private java.lang.Object storage_ = ""; - /** - * string storage = 4; - */ - public java.lang.String getStorage() { - java.lang.Object ref = storage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - storage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string storage = 4; - */ - public com.google.protobuf.ByteString - getStorageBytes() { - java.lang.Object ref = storage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string storage = 4; - */ - public Builder setStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - storage_ = value; - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder clearStorage() { - - storage_ = getDefaultInstance().getStorage(); - onChanged(); - return this; - } - /** - * string storage = 4; - */ - public Builder setStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - storage_ = value; - onChanged(); - return this; - } - - private java.lang.Object ephemeralStorage_ = ""; - /** - * string ephemeral_storage = 5; - */ - public java.lang.String getEphemeralStorage() { - java.lang.Object ref = ephemeralStorage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - ephemeralStorage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string ephemeral_storage = 5; - */ - public com.google.protobuf.ByteString - getEphemeralStorageBytes() { - java.lang.Object ref = ephemeralStorage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - ephemeralStorage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string ephemeral_storage = 5; - */ - public Builder setEphemeralStorage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - ephemeralStorage_ = value; - onChanged(); - return this; - } - /** - * string ephemeral_storage = 5; - */ - public Builder clearEphemeralStorage() { - - ephemeralStorage_ = getDefaultInstance().getEphemeralStorage(); - onChanged(); - return this; - } - /** - * string ephemeral_storage = 5; - */ - public Builder setEphemeralStorageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - ephemeralStorage_ = value; - onChanged(); - return this; - } - @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.TaskResourceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceSpec) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceSpec(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.MatchableResourceOuterClass.TaskResourceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - boolean hasDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults(); - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder(); - - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - boolean hasLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits(); - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder(); - } - /** - *
-   * Defines task resource defaults and limits that will be applied at task registration.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} - */ - public static final class TaskResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskResourceAttributes) - TaskResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskResourceAttributes.newBuilder() to construct. - private TaskResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskResourceAttributes( - 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.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (defaults_ != null) { - subBuilder = defaults_.toBuilder(); - } - defaults_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(defaults_); - defaults_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder subBuilder = null; - if (limits_ != null) { - subBuilder = limits_.toBuilder(); - } - limits_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(limits_); - limits_ = 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - public static final int DEFAULTS_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - return getDefaults(); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - return getLimits(); - } - - 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 (defaults_ != null) { - output.writeMessage(1, getDefaults()); - } - if (limits_ != null) { - output.writeMessage(2, getLimits()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (defaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDefaults()); - } - if (limits_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLimits()); - } - 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.MatchableResourceOuterClass.TaskResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) obj; - - if (hasDefaults() != other.hasDefaults()) return false; - if (hasDefaults()) { - if (!getDefaults() - .equals(other.getDefaults())) return false; - } - if (hasLimits() != other.hasLimits()) return false; - if (hasLimits()) { - if (!getLimits() - .equals(other.getLimits())) 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 (hasDefaults()) { - hash = (37 * hash) + DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getDefaults().hashCode(); - } - if (hasLimits()) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimits().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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.MatchableResourceOuterClass.TaskResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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.MatchableResourceOuterClass.TaskResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes 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.MatchableResourceOuterClass.TaskResourceAttributes 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; - } - /** - *
-     * Defines task resource defaults and limits that will be applied at task registration.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.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 (defaultsBuilder_ == null) { - defaults_ = null; - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - if (limitsBuilder_ == null) { - limits_ = null; - } else { - limits_ = null; - limitsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(this); - if (defaultsBuilder_ == null) { - result.defaults_ = defaults_; - } else { - result.defaults_ = defaultsBuilder_.build(); - } - if (limitsBuilder_ == null) { - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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.MatchableResourceOuterClass.TaskResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) return this; - if (other.hasDefaults()) { - mergeDefaults(other.getDefaults()); - } - if (other.hasLimits()) { - mergeLimits(other.getLimits()); - } - 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.MatchableResourceOuterClass.TaskResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec defaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> defaultsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public boolean hasDefaults() { - return defaultsBuilder_ != null || defaults_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getDefaults() { - if (defaultsBuilder_ == null) { - return defaults_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } else { - return defaultsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - defaults_ = value; - onChanged(); - } else { - defaultsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder setDefaults( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (defaultsBuilder_ == null) { - defaults_ = builderForValue.build(); - onChanged(); - } else { - defaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder mergeDefaults(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (defaultsBuilder_ == null) { - if (defaults_ != null) { - defaults_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(defaults_).mergeFrom(value).buildPartial(); - } else { - defaults_ = value; - } - onChanged(); - } else { - defaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public Builder clearDefaults() { - if (defaultsBuilder_ == null) { - defaults_ = null; - onChanged(); - } else { - defaults_ = null; - defaultsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getDefaultsBuilder() { - - onChanged(); - return getDefaultsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getDefaultsOrBuilder() { - if (defaultsBuilder_ != null) { - return defaultsBuilder_.getMessageOrBuilder(); - } else { - return defaults_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : defaults_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec defaults = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getDefaultsFieldBuilder() { - if (defaultsBuilder_ == null) { - defaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getDefaults(), - getParentForChildren(), - isClean()); - defaults_ = null; - } - return defaultsBuilder_; - } - - private flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec limits_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> limitsBuilder_; - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public boolean hasLimits() { - return limitsBuilder_ != null || limits_ != null; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec getLimits() { - if (limitsBuilder_ == null) { - return limits_ == null ? flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } else { - return limitsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - limits_ = value; - onChanged(); - } else { - limitsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder setLimits( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder builderForValue) { - if (limitsBuilder_ == null) { - limits_ = builderForValue.build(); - onChanged(); - } else { - limitsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder mergeLimits(flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec value) { - if (limitsBuilder_ == null) { - if (limits_ != null) { - limits_ = - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.newBuilder(limits_).mergeFrom(value).buildPartial(); - } else { - limits_ = value; - } - onChanged(); - } else { - limitsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = null; - onChanged(); - } else { - limits_ = null; - limitsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder getLimitsBuilder() { - - onChanged(); - return getLimitsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder getLimitsOrBuilder() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilder(); - } else { - return limits_ == null ? - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.getDefaultInstance() : limits_; - } - } - /** - * .flyteidl.admin.TaskResourceSpec limits = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpec.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceSpecOrBuilder>( - getLimits(), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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.TaskResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskResourceAttributes(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.MatchableResourceOuterClass.TaskResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ClusterResourceAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ClusterResourceAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - int getAttributesCount(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - boolean containsAttributes( - java.lang.String key); - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAttributes(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - java.util.Map - getAttributesMap(); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - java.lang.String getAttributesOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} - */ - public static final class ClusterResourceAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ClusterResourceAttributes) - ClusterResourceAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ClusterResourceAttributes.newBuilder() to construct. - private ClusterResourceAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ClusterResourceAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ClusterResourceAttributes( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - attributes__ = input.readMessage( - AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - attributes_.getMutableMap().put( - attributes__.getKey(), attributes__.getValue()); - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private static final class AttributesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-     * Map keys are the *case-sensitive* names of variables in templatized resource files.
-     * Map values should be the custom values which get substituted during resource creation.
-     * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAttributes(), - AttributesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetAttributes().getMap().entrySet()) { - com.google.protobuf.MapEntry - attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, attributes__); - } - 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.MatchableResourceOuterClass.ClusterResourceAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) obj; - - if (!internalGetAttributes().equals( - other.internalGetAttributes())) 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 (!internalGetAttributes().getMap().isEmpty()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + internalGetAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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.MatchableResourceOuterClass.ClusterResourceAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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.MatchableResourceOuterClass.ClusterResourceAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes 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.MatchableResourceOuterClass.ClusterResourceAttributes 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; - } - /** - * Protobuf type {@code flyteidl.admin.ClusterResourceAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ClusterResourceAttributes) - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableAttributes(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.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(); - internalGetMutableAttributes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(this); - int from_bitField0_ = bitField0_; - result.attributes_ = internalGetAttributes(); - result.attributes_.makeImmutable(); - 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.MatchableResourceOuterClass.ClusterResourceAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) return this; - internalGetMutableAttributes().mergeFrom( - other.internalGetAttributes()); - 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.MatchableResourceOuterClass.ClusterResourceAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> attributes_; - private com.google.protobuf.MapField - internalGetAttributes() { - if (attributes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - return attributes_; - } - private com.google.protobuf.MapField - internalGetMutableAttributes() { - onChanged();; - if (attributes_ == null) { - attributes_ = com.google.protobuf.MapField.newMapField( - AttributesDefaultEntryHolder.defaultEntry); - } - if (!attributes_.isMutable()) { - attributes_ = attributes_.copy(); - } - return attributes_; - } - - public int getAttributesCount() { - return internalGetAttributes().getMap().size(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public boolean containsAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAttributes().getMap().containsKey(key); - } - /** - * Use {@link #getAttributesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAttributes() { - return getAttributesMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.util.Map getAttributesMap() { - return internalGetAttributes().getMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public java.lang.String getAttributesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAttributes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAttributes() { - internalGetMutableAttributes().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder removeAttributes( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAttributes() { - return internalGetMutableAttributes().getMutableMap(); - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - public Builder putAttributes( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAttributes().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Custom resource attributes which will be applied in cluster resource creation (e.g. quotas).
-       * Map keys are the *case-sensitive* names of variables in templatized resource files.
-       * Map values should be the custom values which get substituted during resource creation.
-       * 
- * - * map<string, string> attributes = 1; - */ - - public Builder putAllAttributes( - java.util.Map values) { - internalGetMutableAttributes().getMutableMap() - .putAll(values); - return this; - } - @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.ClusterResourceAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ClusterResourceAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClusterResourceAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClusterResourceAttributes(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.MatchableResourceOuterClass.ClusterResourceAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionQueueAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionQueueAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.util.List - getTagsList(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - int getTagsCount(); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - java.lang.String getTags(int index); - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class ExecutionQueueAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionQueueAttributes) - ExecutionQueueAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionQueueAttributes.newBuilder() to construct. - private ExecutionQueueAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionQueueAttributes() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionQueueAttributes( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tags_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * Tags used for assigning execution queues for tasks defined within this project.
-     * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - 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 { - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tags_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - 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.MatchableResourceOuterClass.ExecutionQueueAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) obj; - - if (!getTagsList() - .equals(other.getTagsList())) 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 (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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.MatchableResourceOuterClass.ExecutionQueueAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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.MatchableResourceOuterClass.ExecutionQueueAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes 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.MatchableResourceOuterClass.ExecutionQueueAttributes 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; - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionQueueAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionQueueAttributes) - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.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(); - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - 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.MatchableResourceOuterClass.ExecutionQueueAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) return this; - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - 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.MatchableResourceOuterClass.ExecutionQueueAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Tags used for assigning execution queues for tasks defined within this project.
-       * 
- * - * repeated string tags = 1; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - @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.ExecutionQueueAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionQueueAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionQueueAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionQueueAttributes(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.MatchableResourceOuterClass.ExecutionQueueAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionClusterLabelOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ExecutionClusterLabel) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - java.lang.String getValue(); - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} - */ - public static final class ExecutionClusterLabel extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ExecutionClusterLabel) - ExecutionClusterLabelOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionClusterLabel.newBuilder() to construct. - private ExecutionClusterLabel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionClusterLabel() { - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionClusterLabel( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     * Label value to determine where the execution will be run
-     * 
- * - * string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - 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.MatchableResourceOuterClass.ExecutionClusterLabel)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) obj; - - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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.MatchableResourceOuterClass.ExecutionClusterLabel parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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.MatchableResourceOuterClass.ExecutionClusterLabel parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel 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.MatchableResourceOuterClass.ExecutionClusterLabel 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; - } - /** - * Protobuf type {@code flyteidl.admin.ExecutionClusterLabel} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ExecutionClusterLabel) - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.class, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.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(); - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel build() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel result = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(this); - result.value_ = value_; - 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.MatchableResourceOuterClass.ExecutionClusterLabel) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - 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.MatchableResourceOuterClass.ExecutionClusterLabel parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       * Label value to determine where the execution will be run
-       * 
- * - * string value = 1; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @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.ExecutionClusterLabel) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ExecutionClusterLabel) - private static final flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionClusterLabel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionClusterLabel(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.MatchableResourceOuterClass.ExecutionClusterLabel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PluginOverrideOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.PluginOverride) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - java.util.List - getPluginIdList(); - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - int getPluginIdCount(); - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - java.lang.String getPluginId(int index); - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - com.google.protobuf.ByteString - getPluginIdBytes(int index); - - /** - *
-     * Defines the behavior when no plugin from the plugin_id list is not found.
-     * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - int getMissingPluginBehaviorValue(); - /** - *
-     * Defines the behavior when no plugin from the plugin_id list is not found.
-     * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior(); - } - /** - *
-   * This MatchableAttribute configures selecting alternate plugin implementations for a given task type.
-   * In addition to an override implementation a selection of fallbacks can be provided or other modes
-   * for handling cases where the desired plugin override is not enabled in a given Flyte deployment.
-   * 
- * - * Protobuf type {@code flyteidl.admin.PluginOverride} - */ - public static final class PluginOverride extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.PluginOverride) - PluginOverrideOrBuilder { - private static final long serialVersionUID = 0L; - // Use PluginOverride.newBuilder() to construct. - private PluginOverride(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PluginOverride() { - taskType_ = ""; - pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - missingPluginBehavior_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PluginOverride( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - pluginId_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - pluginId_.add(s); - break; - } - case 32: { - int rawValue = input.readEnum(); - - missingPluginBehavior_ = rawValue; - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - pluginId_ = pluginId_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.admin.PluginOverride.MissingPluginBehavior} - */ - public enum MissingPluginBehavior - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * By default, if this plugin is not enabled for a Flyte deployment then execution will fail.
-       * 
- * - * FAIL = 0; - */ - FAIL(0), - /** - *
-       * Uses the system-configured default implementation.
-       * 
- * - * USE_DEFAULT = 1; - */ - USE_DEFAULT(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * By default, if this plugin is not enabled for a Flyte deployment then execution will fail.
-       * 
- * - * FAIL = 0; - */ - public static final int FAIL_VALUE = 0; - /** - *
-       * Uses the system-configured default implementation.
-       * 
- * - * USE_DEFAULT = 1; - */ - public static final int USE_DEFAULT_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MissingPluginBehavior valueOf(int value) { - return forNumber(value); - } - - public static MissingPluginBehavior forNumber(int value) { - switch (value) { - case 0: return FAIL; - case 1: return USE_DEFAULT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MissingPluginBehavior> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MissingPluginBehavior findValueByNumber(int number) { - return MissingPluginBehavior.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDescriptor().getEnumTypes().get(0); - } - - private static final MissingPluginBehavior[] VALUES = values(); - - public static MissingPluginBehavior valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MissingPluginBehavior(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.PluginOverride.MissingPluginBehavior) - } - - private int bitField0_; - public static final int TASK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PLUGIN_ID_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList pluginId_; - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - public com.google.protobuf.ProtocolStringList - getPluginIdList() { - return pluginId_; - } - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - public int getPluginIdCount() { - return pluginId_.size(); - } - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - public java.lang.String getPluginId(int index) { - return pluginId_.get(index); - } - /** - *
-     * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-     * 
- * - * repeated string plugin_id = 2; - */ - public com.google.protobuf.ByteString - getPluginIdBytes(int index) { - return pluginId_.getByteString(index); - } - - public static final int MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER = 4; - private int missingPluginBehavior_; - /** - *
-     * Defines the behavior when no plugin from the plugin_id list is not found.
-     * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public int getMissingPluginBehaviorValue() { - return missingPluginBehavior_; - } - /** - *
-     * Defines the behavior when no plugin from the plugin_id list is not found.
-     * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior result = flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.valueOf(missingPluginBehavior_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.UNRECOGNIZED : result; - } - - 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 (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); - } - for (int i = 0; i < pluginId_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pluginId_.getRaw(i)); - } - if (missingPluginBehavior_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.FAIL.getNumber()) { - output.writeEnum(4, missingPluginBehavior_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); - } - { - int dataSize = 0; - for (int i = 0; i < pluginId_.size(); i++) { - dataSize += computeStringSizeNoTag(pluginId_.getRaw(i)); - } - size += dataSize; - size += 1 * getPluginIdList().size(); - } - if (missingPluginBehavior_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.FAIL.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, missingPluginBehavior_); - } - 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.MatchableResourceOuterClass.PluginOverride)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.PluginOverride other = (flyteidl.admin.MatchableResourceOuterClass.PluginOverride) obj; - - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (!getPluginIdList() - .equals(other.getPluginIdList())) return false; - if (missingPluginBehavior_ != other.missingPluginBehavior_) 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(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - if (getPluginIdCount() > 0) { - hash = (37 * hash) + PLUGIN_ID_FIELD_NUMBER; - hash = (53 * hash) + getPluginIdList().hashCode(); - } - hash = (37 * hash) + MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER; - hash = (53 * hash) + missingPluginBehavior_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride 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.MatchableResourceOuterClass.PluginOverride parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride 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.MatchableResourceOuterClass.PluginOverride parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride 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.MatchableResourceOuterClass.PluginOverride parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride 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.MatchableResourceOuterClass.PluginOverride 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; - } - /** - *
-     * This MatchableAttribute configures selecting alternate plugin implementations for a given task type.
-     * In addition to an override implementation a selection of fallbacks can be provided or other modes
-     * for handling cases where the desired plugin override is not enabled in a given Flyte deployment.
-     * 
- * - * Protobuf type {@code flyteidl.admin.PluginOverride} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.PluginOverride) - flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.PluginOverride.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(); - taskType_ = ""; - - pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - missingPluginBehavior_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverride_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride build() { - flyteidl.admin.MatchableResourceOuterClass.PluginOverride result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.PluginOverride result = new flyteidl.admin.MatchableResourceOuterClass.PluginOverride(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.taskType_ = taskType_; - if (((bitField0_ & 0x00000002) != 0)) { - pluginId_ = pluginId_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.pluginId_ = pluginId_; - result.missingPluginBehavior_ = missingPluginBehavior_; - result.bitField0_ = to_bitField0_; - 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.MatchableResourceOuterClass.PluginOverride) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverride)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.PluginOverride other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()) return this; - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (!other.pluginId_.isEmpty()) { - if (pluginId_.isEmpty()) { - pluginId_ = other.pluginId_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePluginIdIsMutable(); - pluginId_.addAll(other.pluginId_); - } - onChanged(); - } - if (other.missingPluginBehavior_ != 0) { - setMissingPluginBehaviorValue(other.getMissingPluginBehaviorValue()); - } - 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.MatchableResourceOuterClass.PluginOverride parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.PluginOverride) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensurePluginIdIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - pluginId_ = new com.google.protobuf.LazyStringArrayList(pluginId_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public com.google.protobuf.ProtocolStringList - getPluginIdList() { - return pluginId_.getUnmodifiableView(); - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public int getPluginIdCount() { - return pluginId_.size(); - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public java.lang.String getPluginId(int index) { - return pluginId_.get(index); - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public com.google.protobuf.ByteString - getPluginIdBytes(int index) { - return pluginId_.getByteString(index); - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public Builder setPluginId( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePluginIdIsMutable(); - pluginId_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public Builder addPluginId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensurePluginIdIsMutable(); - pluginId_.add(value); - onChanged(); - return this; - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public Builder addAllPluginId( - java.lang.Iterable values) { - ensurePluginIdIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, pluginId_); - onChanged(); - return this; - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public Builder clearPluginId() { - pluginId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id.
-       * 
- * - * repeated string plugin_id = 2; - */ - public Builder addPluginIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensurePluginIdIsMutable(); - pluginId_.add(value); - onChanged(); - return this; - } - - private int missingPluginBehavior_ = 0; - /** - *
-       * Defines the behavior when no plugin from the plugin_id list is not found.
-       * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public int getMissingPluginBehaviorValue() { - return missingPluginBehavior_; - } - /** - *
-       * Defines the behavior when no plugin from the plugin_id list is not found.
-       * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public Builder setMissingPluginBehaviorValue(int value) { - missingPluginBehavior_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the behavior when no plugin from the plugin_id list is not found.
-       * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior getMissingPluginBehavior() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior result = flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.valueOf(missingPluginBehavior_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior.UNRECOGNIZED : result; - } - /** - *
-       * Defines the behavior when no plugin from the plugin_id list is not found.
-       * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public Builder setMissingPluginBehavior(flyteidl.admin.MatchableResourceOuterClass.PluginOverride.MissingPluginBehavior value) { - if (value == null) { - throw new NullPointerException(); - } - - missingPluginBehavior_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines the behavior when no plugin from the plugin_id list is not found.
-       * 
- * - * .flyteidl.admin.PluginOverride.MissingPluginBehavior missing_plugin_behavior = 4; - */ - public Builder clearMissingPluginBehavior() { - - missingPluginBehavior_ = 0; - onChanged(); - return this; - } - @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.PluginOverride) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverride) - private static final flyteidl.admin.MatchableResourceOuterClass.PluginOverride DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.PluginOverride(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverride getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PluginOverride parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PluginOverride(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.MatchableResourceOuterClass.PluginOverride getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PluginOverridesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.PluginOverrides) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - java.util.List - getOverridesList(); - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index); - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - int getOverridesCount(); - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - java.util.List - getOverridesOrBuilderList(); - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.admin.PluginOverrides} - */ - public static final class PluginOverrides extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.PluginOverrides) - PluginOverridesOrBuilder { - private static final long serialVersionUID = 0L; - // Use PluginOverrides.newBuilder() to construct. - private PluginOverrides(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PluginOverrides() { - overrides_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PluginOverrides( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - overrides_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - overrides_.add( - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.PluginOverride.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - overrides_ = java.util.Collections.unmodifiableList(overrides_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder.class); - } - - public static final int OVERRIDES_FIELD_NUMBER = 1; - private java.util.List overrides_; - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public java.util.List getOverridesList() { - return overrides_; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public java.util.List - getOverridesOrBuilderList() { - return overrides_; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public int getOverridesCount() { - return overrides_.size(); - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index) { - return overrides_.get(index); - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( - int index) { - return overrides_.get(index); - } - - 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 { - for (int i = 0; i < overrides_.size(); i++) { - output.writeMessage(1, overrides_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < overrides_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, overrides_.get(i)); - } - 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.MatchableResourceOuterClass.PluginOverrides)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides other = (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) obj; - - if (!getOverridesList() - .equals(other.getOverridesList())) 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 (getOverridesCount() > 0) { - hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; - hash = (53 * hash) + getOverridesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides 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.MatchableResourceOuterClass.PluginOverrides parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides 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.MatchableResourceOuterClass.PluginOverrides parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides 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.MatchableResourceOuterClass.PluginOverrides parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides 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.MatchableResourceOuterClass.PluginOverrides 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; - } - /** - * Protobuf type {@code flyteidl.admin.PluginOverrides} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.PluginOverrides) - flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.class, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOverridesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (overridesBuilder_ == null) { - overrides_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - overridesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_PluginOverrides_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides build() { - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides result = new flyteidl.admin.MatchableResourceOuterClass.PluginOverrides(this); - int from_bitField0_ = bitField0_; - if (overridesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - overrides_ = java.util.Collections.unmodifiableList(overrides_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.overrides_ = overrides_; - } else { - result.overrides_ = overridesBuilder_.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.MatchableResourceOuterClass.PluginOverrides) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance()) return this; - if (overridesBuilder_ == null) { - if (!other.overrides_.isEmpty()) { - if (overrides_.isEmpty()) { - overrides_ = other.overrides_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureOverridesIsMutable(); - overrides_.addAll(other.overrides_); - } - onChanged(); - } - } else { - if (!other.overrides_.isEmpty()) { - if (overridesBuilder_.isEmpty()) { - overridesBuilder_.dispose(); - overridesBuilder_ = null; - overrides_ = other.overrides_; - bitField0_ = (bitField0_ & ~0x00000001); - overridesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOverridesFieldBuilder() : null; - } else { - overridesBuilder_.addAllMessages(other.overrides_); - } - } - } - 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.MatchableResourceOuterClass.PluginOverrides parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List overrides_ = - java.util.Collections.emptyList(); - private void ensureOverridesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - overrides_ = new java.util.ArrayList(overrides_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder> overridesBuilder_; - - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public java.util.List getOverridesList() { - if (overridesBuilder_ == null) { - return java.util.Collections.unmodifiableList(overrides_); - } else { - return overridesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public int getOverridesCount() { - if (overridesBuilder_ == null) { - return overrides_.size(); - } else { - return overridesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride getOverrides(int index) { - if (overridesBuilder_ == null) { - return overrides_.get(index); - } else { - return overridesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder setOverrides( - int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { - if (overridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverridesIsMutable(); - overrides_.set(index, value); - onChanged(); - } else { - overridesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder setOverrides( - int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { - if (overridesBuilder_ == null) { - ensureOverridesIsMutable(); - overrides_.set(index, builderForValue.build()); - onChanged(); - } else { - overridesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder addOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { - if (overridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverridesIsMutable(); - overrides_.add(value); - onChanged(); - } else { - overridesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder addOverrides( - int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride value) { - if (overridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOverridesIsMutable(); - overrides_.add(index, value); - onChanged(); - } else { - overridesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder addOverrides( - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { - if (overridesBuilder_ == null) { - ensureOverridesIsMutable(); - overrides_.add(builderForValue.build()); - onChanged(); - } else { - overridesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder addOverrides( - int index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder builderForValue) { - if (overridesBuilder_ == null) { - ensureOverridesIsMutable(); - overrides_.add(index, builderForValue.build()); - onChanged(); - } else { - overridesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder addAllOverrides( - java.lang.Iterable values) { - if (overridesBuilder_ == null) { - ensureOverridesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, overrides_); - onChanged(); - } else { - overridesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder clearOverrides() { - if (overridesBuilder_ == null) { - overrides_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - overridesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public Builder removeOverrides(int index) { - if (overridesBuilder_ == null) { - ensureOverridesIsMutable(); - overrides_.remove(index); - onChanged(); - } else { - overridesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder getOverridesBuilder( - int index) { - return getOverridesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder getOverridesOrBuilder( - int index) { - if (overridesBuilder_ == null) { - return overrides_.get(index); } else { - return overridesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public java.util.List - getOverridesOrBuilderList() { - if (overridesBuilder_ != null) { - return overridesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(overrides_); - } - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder addOverridesBuilder() { - return getOverridesFieldBuilder().addBuilder( - flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder addOverridesBuilder( - int index) { - return getOverridesFieldBuilder().addBuilder( - index, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.PluginOverride overrides = 1; - */ - public java.util.List - getOverridesBuilderList() { - return getOverridesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder> - getOverridesFieldBuilder() { - if (overridesBuilder_ == null) { - overridesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverride, flyteidl.admin.MatchableResourceOuterClass.PluginOverride.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverrideOrBuilder>( - overrides_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - overrides_ = null; - } - return overridesBuilder_; - } - @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.PluginOverrides) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.PluginOverrides) - private static final flyteidl.admin.MatchableResourceOuterClass.PluginOverrides DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.PluginOverrides(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PluginOverrides parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PluginOverrides(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.MatchableResourceOuterClass.PluginOverrides getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowExecutionConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
-     * 
- * - * int32 max_parallelism = 1; - */ - int getMaxParallelism(); - - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - boolean hasSecurityContext(); - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - flyteidl.core.Security.SecurityContext getSecurityContext(); - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); - - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - boolean hasRawOutputDataConfig(); - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig(); - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder(); - - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - boolean hasLabels(); - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - boolean hasAnnotations(); - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - flyteidl.admin.Common.Annotations getAnnotations(); - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder(); - - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - boolean hasInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - com.google.protobuf.BoolValue getInterruptible(); - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder(); - - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 7; - */ - boolean getOverwriteCache(); - - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - boolean hasEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - flyteidl.admin.Common.Envs getEnvs(); - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder(); - } - /** - *
-   * Adds defaults for customizable workflow-execution specifications and overrides.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionConfig} - */ - public static final class WorkflowExecutionConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowExecutionConfig) - WorkflowExecutionConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionConfig.newBuilder() to construct. - private WorkflowExecutionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionConfig() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionConfig( - 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 8: { - - maxParallelism_ = input.readInt32(); - break; - } - case 18: { - flyteidl.core.Security.SecurityContext.Builder subBuilder = null; - if (securityContext_ != null) { - subBuilder = securityContext_.toBuilder(); - } - securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityContext_); - securityContext_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.admin.Common.RawOutputDataConfig.Builder subBuilder = null; - if (rawOutputDataConfig_ != null) { - subBuilder = rawOutputDataConfig_.toBuilder(); - } - rawOutputDataConfig_ = input.readMessage(flyteidl.admin.Common.RawOutputDataConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawOutputDataConfig_); - rawOutputDataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.admin.Common.Annotations.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(flyteidl.admin.Common.Annotations.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.BoolValue.Builder subBuilder = null; - if (interruptible_ != null) { - subBuilder = interruptible_.toBuilder(); - } - interruptible_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interruptible_); - interruptible_ = subBuilder.buildPartial(); - } - - break; - } - case 56: { - - overwriteCache_ = input.readBool(); - break; - } - case 66: { - flyteidl.admin.Common.Envs.Builder subBuilder = null; - if (envs_ != null) { - subBuilder = envs_.toBuilder(); - } - envs_ = input.readMessage(flyteidl.admin.Common.Envs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(envs_); - envs_ = 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.class, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder.class); - } - - public static final int MAX_PARALLELISM_FIELD_NUMBER = 1; - private int maxParallelism_; - /** - *
-     * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
-     * 
- * - * int32 max_parallelism = 1; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - - public static final int SECURITY_CONTEXT_FIELD_NUMBER = 2; - private flyteidl.core.Security.SecurityContext securityContext_; - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public boolean hasSecurityContext() { - return securityContext_ != null; - } - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - /** - *
-     * Indicates security context permissions for executions triggered with this matchable attribute. 
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - return getSecurityContext(); - } - - public static final int RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER = 3; - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfig_ != null; - } - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - /** - *
-     * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-     * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - return getRawOutputDataConfig(); - } - - public static final int LABELS_FIELD_NUMBER = 4; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Custom labels to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Annotations annotations_; - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - /** - *
-     * Custom annotations to be applied to a triggered execution resource.
-     * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; - private com.google.protobuf.BoolValue interruptible_; - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public boolean hasInterruptible() { - return interruptible_ != null; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public com.google.protobuf.BoolValue getInterruptible() { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - /** - *
-     * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-     * Omitting this field uses the workflow's value as a default.
-     * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-     * around the bool field.
-     * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - return getInterruptible(); - } - - public static final int OVERWRITE_CACHE_FIELD_NUMBER = 7; - private boolean overwriteCache_; - /** - *
-     * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-     * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-     * data once execution finishes successfully.
-     * 
- * - * bool overwrite_cache = 7; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - - public static final int ENVS_FIELD_NUMBER = 8; - private flyteidl.admin.Common.Envs envs_; - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public boolean hasEnvs() { - return envs_ != null; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public flyteidl.admin.Common.Envs getEnvs() { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - /** - *
-     * Environment variables to be set for the execution.
-     * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - return getEnvs(); - } - - 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 (maxParallelism_ != 0) { - output.writeInt32(1, maxParallelism_); - } - if (securityContext_ != null) { - output.writeMessage(2, getSecurityContext()); - } - if (rawOutputDataConfig_ != null) { - output.writeMessage(3, getRawOutputDataConfig()); - } - if (labels_ != null) { - output.writeMessage(4, getLabels()); - } - if (annotations_ != null) { - output.writeMessage(5, getAnnotations()); - } - if (interruptible_ != null) { - output.writeMessage(6, getInterruptible()); - } - if (overwriteCache_ != false) { - output.writeBool(7, overwriteCache_); - } - if (envs_ != null) { - output.writeMessage(8, getEnvs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (maxParallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, maxParallelism_); - } - if (securityContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSecurityContext()); - } - if (rawOutputDataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRawOutputDataConfig()); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLabels()); - } - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAnnotations()); - } - if (interruptible_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getInterruptible()); - } - if (overwriteCache_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, overwriteCache_); - } - if (envs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getEnvs()); - } - 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.MatchableResourceOuterClass.WorkflowExecutionConfig)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig other = (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) obj; - - if (getMaxParallelism() - != other.getMaxParallelism()) return false; - if (hasSecurityContext() != other.hasSecurityContext()) return false; - if (hasSecurityContext()) { - if (!getSecurityContext() - .equals(other.getSecurityContext())) return false; - } - if (hasRawOutputDataConfig() != other.hasRawOutputDataConfig()) return false; - if (hasRawOutputDataConfig()) { - if (!getRawOutputDataConfig() - .equals(other.getRawOutputDataConfig())) return false; - } - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) return false; - } - if (hasInterruptible() != other.hasInterruptible()) return false; - if (hasInterruptible()) { - if (!getInterruptible() - .equals(other.getInterruptible())) return false; - } - if (getOverwriteCache() - != other.getOverwriteCache()) return false; - if (hasEnvs() != other.hasEnvs()) return false; - if (hasEnvs()) { - if (!getEnvs() - .equals(other.getEnvs())) 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(); - hash = (37 * hash) + MAX_PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + getMaxParallelism(); - if (hasSecurityContext()) { - hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSecurityContext().hashCode(); - } - if (hasRawOutputDataConfig()) { - hash = (37 * hash) + RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getRawOutputDataConfig().hashCode(); - } - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - if (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - if (hasInterruptible()) { - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + getInterruptible().hashCode(); - } - hash = (37 * hash) + OVERWRITE_CACHE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOverwriteCache()); - if (hasEnvs()) { - hash = (37 * hash) + ENVS_FIELD_NUMBER; - hash = (53 * hash) + getEnvs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig 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.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig 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.MatchableResourceOuterClass.WorkflowExecutionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig 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.MatchableResourceOuterClass.WorkflowExecutionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig 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.MatchableResourceOuterClass.WorkflowExecutionConfig 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; - } - /** - *
-     * Adds defaults for customizable workflow-execution specifications and overrides.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowExecutionConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowExecutionConfig) - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.class, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.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(); - maxParallelism_ = 0; - - if (securityContextBuilder_ == null) { - securityContext_ = null; - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - if (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - if (interruptibleBuilder_ == null) { - interruptible_ = null; - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - overwriteCache_ = false; - - if (envsBuilder_ == null) { - envs_ = null; - } else { - envs_ = null; - envsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig build() { - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig result = new flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig(this); - result.maxParallelism_ = maxParallelism_; - if (securityContextBuilder_ == null) { - result.securityContext_ = securityContext_; - } else { - result.securityContext_ = securityContextBuilder_.build(); - } - if (rawOutputDataConfigBuilder_ == null) { - result.rawOutputDataConfig_ = rawOutputDataConfig_; - } else { - result.rawOutputDataConfig_ = rawOutputDataConfigBuilder_.build(); - } - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.build(); - } - if (interruptibleBuilder_ == null) { - result.interruptible_ = interruptible_; - } else { - result.interruptible_ = interruptibleBuilder_.build(); - } - result.overwriteCache_ = overwriteCache_; - if (envsBuilder_ == null) { - result.envs_ = envs_; - } else { - result.envs_ = envsBuilder_.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.MatchableResourceOuterClass.WorkflowExecutionConfig) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance()) return this; - if (other.getMaxParallelism() != 0) { - setMaxParallelism(other.getMaxParallelism()); - } - if (other.hasSecurityContext()) { - mergeSecurityContext(other.getSecurityContext()); - } - if (other.hasRawOutputDataConfig()) { - mergeRawOutputDataConfig(other.getRawOutputDataConfig()); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - if (other.hasInterruptible()) { - mergeInterruptible(other.getInterruptible()); - } - if (other.getOverwriteCache() != false) { - setOverwriteCache(other.getOverwriteCache()); - } - if (other.hasEnvs()) { - mergeEnvs(other.getEnvs()); - } - 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.MatchableResourceOuterClass.WorkflowExecutionConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int maxParallelism_ ; - /** - *
-       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
-       * 
- * - * int32 max_parallelism = 1; - */ - public int getMaxParallelism() { - return maxParallelism_; - } - /** - *
-       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
-       * 
- * - * int32 max_parallelism = 1; - */ - public Builder setMaxParallelism(int value) { - - maxParallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness.
-       * 
- * - * int32 max_parallelism = 1; - */ - public Builder clearMaxParallelism() { - - maxParallelism_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Security.SecurityContext securityContext_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public boolean hasSecurityContext() { - return securityContextBuilder_ != null || securityContext_ != null; - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - if (securityContextBuilder_ == null) { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } else { - return securityContextBuilder_.getMessage(); - } - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityContext_ = value; - onChanged(); - } else { - securityContextBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public Builder setSecurityContext( - flyteidl.core.Security.SecurityContext.Builder builderForValue) { - if (securityContextBuilder_ == null) { - securityContext_ = builderForValue.build(); - onChanged(); - } else { - securityContextBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (securityContext_ != null) { - securityContext_ = - flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); - } else { - securityContext_ = value; - } - onChanged(); - } else { - securityContextBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public Builder clearSecurityContext() { - if (securityContextBuilder_ == null) { - securityContext_ = null; - onChanged(); - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { - - onChanged(); - return getSecurityContextFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - if (securityContextBuilder_ != null) { - return securityContextBuilder_.getMessageOrBuilder(); - } else { - return securityContext_ == null ? - flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - } - /** - *
-       * Indicates security context permissions for executions triggered with this matchable attribute. 
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> - getSecurityContextFieldBuilder() { - if (securityContextBuilder_ == null) { - securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( - getSecurityContext(), - getParentForChildren(), - isClean()); - securityContext_ = null; - } - return securityContextBuilder_; - } - - private flyteidl.admin.Common.RawOutputDataConfig rawOutputDataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> rawOutputDataConfigBuilder_; - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public boolean hasRawOutputDataConfig() { - return rawOutputDataConfigBuilder_ != null || rawOutputDataConfig_ != null; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public flyteidl.admin.Common.RawOutputDataConfig getRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - return rawOutputDataConfig_ == null ? flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } else { - return rawOutputDataConfigBuilder_.getMessage(); - } - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public Builder setRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawOutputDataConfig_ = value; - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public Builder setRawOutputDataConfig( - flyteidl.admin.Common.RawOutputDataConfig.Builder builderForValue) { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = builderForValue.build(); - onChanged(); - } else { - rawOutputDataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public Builder mergeRawOutputDataConfig(flyteidl.admin.Common.RawOutputDataConfig value) { - if (rawOutputDataConfigBuilder_ == null) { - if (rawOutputDataConfig_ != null) { - rawOutputDataConfig_ = - flyteidl.admin.Common.RawOutputDataConfig.newBuilder(rawOutputDataConfig_).mergeFrom(value).buildPartial(); - } else { - rawOutputDataConfig_ = value; - } - onChanged(); - } else { - rawOutputDataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public Builder clearRawOutputDataConfig() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfig_ = null; - onChanged(); - } else { - rawOutputDataConfig_ = null; - rawOutputDataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public flyteidl.admin.Common.RawOutputDataConfig.Builder getRawOutputDataConfigBuilder() { - - onChanged(); - return getRawOutputDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - public flyteidl.admin.Common.RawOutputDataConfigOrBuilder getRawOutputDataConfigOrBuilder() { - if (rawOutputDataConfigBuilder_ != null) { - return rawOutputDataConfigBuilder_.getMessageOrBuilder(); - } else { - return rawOutputDataConfig_ == null ? - flyteidl.admin.Common.RawOutputDataConfig.getDefaultInstance() : rawOutputDataConfig_; - } - } - /** - *
-       * Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
-       * 
- * - * .flyteidl.admin.RawOutputDataConfig raw_output_data_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder> - getRawOutputDataConfigFieldBuilder() { - if (rawOutputDataConfigBuilder_ == null) { - rawOutputDataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.RawOutputDataConfig, flyteidl.admin.Common.RawOutputDataConfig.Builder, flyteidl.admin.Common.RawOutputDataConfigOrBuilder>( - getRawOutputDataConfig(), - getParentForChildren(), - isClean()); - rawOutputDataConfig_ = null; - } - return rawOutputDataConfigBuilder_; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Custom labels to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Labels labels = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private flyteidl.admin.Common.Annotations annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> annotationsBuilder_; - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public flyteidl.admin.Common.Annotations getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public Builder setAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public Builder setAnnotations( - flyteidl.admin.Common.Annotations.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public Builder mergeAnnotations(flyteidl.admin.Common.Annotations value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - flyteidl.admin.Common.Annotations.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public flyteidl.admin.Common.Annotations.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - public flyteidl.admin.Common.AnnotationsOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - flyteidl.admin.Common.Annotations.getDefaultInstance() : annotations_; - } - } - /** - *
-       * Custom annotations to be applied to a triggered execution resource.
-       * 
- * - * .flyteidl.admin.Annotations annotations = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Annotations, flyteidl.admin.Common.Annotations.Builder, flyteidl.admin.Common.AnnotationsOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - - private com.google.protobuf.BoolValue interruptible_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> interruptibleBuilder_; - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public boolean hasInterruptible() { - return interruptibleBuilder_ != null || interruptible_ != null; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public com.google.protobuf.BoolValue getInterruptible() { - if (interruptibleBuilder_ == null) { - return interruptible_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } else { - return interruptibleBuilder_.getMessage(); - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public Builder setInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interruptible_ = value; - onChanged(); - } else { - interruptibleBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public Builder setInterruptible( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (interruptibleBuilder_ == null) { - interruptible_ = builderForValue.build(); - onChanged(); - } else { - interruptibleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public Builder mergeInterruptible(com.google.protobuf.BoolValue value) { - if (interruptibleBuilder_ == null) { - if (interruptible_ != null) { - interruptible_ = - com.google.protobuf.BoolValue.newBuilder(interruptible_).mergeFrom(value).buildPartial(); - } else { - interruptible_ = value; - } - onChanged(); - } else { - interruptibleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public Builder clearInterruptible() { - if (interruptibleBuilder_ == null) { - interruptible_ = null; - onChanged(); - } else { - interruptible_ = null; - interruptibleBuilder_ = null; - } - - return this; - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public com.google.protobuf.BoolValue.Builder getInterruptibleBuilder() { - - onChanged(); - return getInterruptibleFieldBuilder().getBuilder(); - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - public com.google.protobuf.BoolValueOrBuilder getInterruptibleOrBuilder() { - if (interruptibleBuilder_ != null) { - return interruptibleBuilder_.getMessageOrBuilder(); - } else { - return interruptible_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : interruptible_; - } - } - /** - *
-       * Allows for the interruptible flag of a workflow to be overwritten for a single execution.
-       * Omitting this field uses the workflow's value as a default.
-       * As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper
-       * around the bool field.
-       * 
- * - * .google.protobuf.BoolValue interruptible = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getInterruptibleFieldBuilder() { - if (interruptibleBuilder_ == null) { - interruptibleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getInterruptible(), - getParentForChildren(), - isClean()); - interruptible_ = null; - } - return interruptibleBuilder_; - } - - private boolean overwriteCache_ ; - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 7; - */ - public boolean getOverwriteCache() { - return overwriteCache_; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 7; - */ - public Builder setOverwriteCache(boolean value) { - - overwriteCache_ = value; - onChanged(); - return this; - } - /** - *
-       * Allows for all cached values of a workflow and its tasks to be overwritten for a single execution.
-       * If enabled, all calculations are performed even if cached results would be available, overwriting the stored
-       * data once execution finishes successfully.
-       * 
- * - * bool overwrite_cache = 7; - */ - public Builder clearOverwriteCache() { - - overwriteCache_ = false; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Envs envs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> envsBuilder_; - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public boolean hasEnvs() { - return envsBuilder_ != null || envs_ != null; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public flyteidl.admin.Common.Envs getEnvs() { - if (envsBuilder_ == null) { - return envs_ == null ? flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } else { - return envsBuilder_.getMessage(); - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public Builder setEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - envs_ = value; - onChanged(); - } else { - envsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public Builder setEnvs( - flyteidl.admin.Common.Envs.Builder builderForValue) { - if (envsBuilder_ == null) { - envs_ = builderForValue.build(); - onChanged(); - } else { - envsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public Builder mergeEnvs(flyteidl.admin.Common.Envs value) { - if (envsBuilder_ == null) { - if (envs_ != null) { - envs_ = - flyteidl.admin.Common.Envs.newBuilder(envs_).mergeFrom(value).buildPartial(); - } else { - envs_ = value; - } - onChanged(); - } else { - envsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public Builder clearEnvs() { - if (envsBuilder_ == null) { - envs_ = null; - onChanged(); - } else { - envs_ = null; - envsBuilder_ = null; - } - - return this; - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public flyteidl.admin.Common.Envs.Builder getEnvsBuilder() { - - onChanged(); - return getEnvsFieldBuilder().getBuilder(); - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - public flyteidl.admin.Common.EnvsOrBuilder getEnvsOrBuilder() { - if (envsBuilder_ != null) { - return envsBuilder_.getMessageOrBuilder(); - } else { - return envs_ == null ? - flyteidl.admin.Common.Envs.getDefaultInstance() : envs_; - } - } - /** - *
-       * Environment variables to be set for the execution.
-       * 
- * - * .flyteidl.admin.Envs envs = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder> - getEnvsFieldBuilder() { - if (envsBuilder_ == null) { - envsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Envs, flyteidl.admin.Common.Envs.Builder, flyteidl.admin.Common.EnvsOrBuilder>( - getEnvs(), - getParentForChildren(), - isClean()); - envs_ = null; - } - return envsBuilder_; - } - @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.WorkflowExecutionConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowExecutionConfig) - private static final flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionConfig(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.MatchableResourceOuterClass.WorkflowExecutionConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchingAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchingAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - boolean hasTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes(); - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - boolean hasClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes(); - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - boolean hasExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes(); - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder(); - - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - boolean hasExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel(); - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder(); - - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - boolean hasQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - boolean hasPluginOverrides(); - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides(); - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder(); - - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - boolean hasWorkflowExecutionConfig(); - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig(); - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder(); - - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - boolean hasClusterAssignment(); - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment(); - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder(); - - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.TargetCase getTargetCase(); - } - /** - *
-   * Generic container for encapsulating all types of the above attributes messages.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class MatchingAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchingAttributes) - MatchingAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchingAttributes.newBuilder() to construct. - private MatchingAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchingAttributes() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchingAttributes( - 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.MatchableResourceOuterClass.TaskResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 1) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 1; - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder subBuilder = null; - if (targetCase_ == 2) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 2; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder subBuilder = null; - if (targetCase_ == 3) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 3; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder subBuilder = null; - if (targetCase_ == 4) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 4; - break; - } - case 42: { - flyteidl.core.Execution.QualityOfService.Builder subBuilder = null; - if (targetCase_ == 5) { - subBuilder = ((flyteidl.core.Execution.QualityOfService) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfService) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 5; - break; - } - case 50: { - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - break; - } - case 58: { - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder subBuilder = null; - if (targetCase_ == 7) { - subBuilder = ((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 7; - break; - } - case 66: { - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder subBuilder = null; - if (targetCase_ == 8) { - subBuilder = ((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 8; - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_RESOURCE_ATTRIBUTES(1), - CLUSTER_RESOURCE_ATTRIBUTES(2), - EXECUTION_QUEUE_ATTRIBUTES(3), - EXECUTION_CLUSTER_LABEL(4), - QUALITY_OF_SERVICE(5), - PLUGIN_OVERRIDES(6), - WORKFLOW_EXECUTION_CONFIG(7), - CLUSTER_ASSIGNMENT(8), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 1: return TASK_RESOURCE_ATTRIBUTES; - case 2: return CLUSTER_RESOURCE_ATTRIBUTES; - case 3: return EXECUTION_QUEUE_ATTRIBUTES; - case 4: return EXECUTION_CLUSTER_LABEL; - case 5: return QUALITY_OF_SERVICE; - case 6: return PLUGIN_OVERRIDES; - case 7: return WORKFLOW_EXECUTION_CONFIG; - case 8: return CLUSTER_ASSIGNMENT; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 1; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - - public static final int CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER = 3; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - - public static final int EXECUTION_CLUSTER_LABEL_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - public static final int PLUGIN_OVERRIDES_FIELD_NUMBER = 6; - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public boolean hasPluginOverrides() { - return targetCase_ == 6; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides() { - if (targetCase_ == 6) { - return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - - public static final int WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER = 7; - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public boolean hasWorkflowExecutionConfig() { - return targetCase_ == 7; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig() { - if (targetCase_ == 7) { - return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder() { - if (targetCase_ == 7) { - return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - - public static final int CLUSTER_ASSIGNMENT_FIELD_NUMBER = 8; - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public boolean hasClusterAssignment() { - return targetCase_ == 8; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { - if (targetCase_ == 8) { - return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; - } - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { - if (targetCase_ == 8) { - return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; - } - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.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 (targetCase_ == 1) { - output.writeMessage(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - output.writeMessage(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Execution.QualityOfService) target_); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); - } - if (targetCase_ == 7) { - output.writeMessage(7, (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); - } - if (targetCase_ == 8) { - output.writeMessage(8, (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_); - } - if (targetCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_); - } - if (targetCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_); - } - if (targetCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_); - } - if (targetCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Execution.QualityOfService) target_); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_); - } - if (targetCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_); - } - if (targetCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_); - } - 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.MatchableResourceOuterClass.MatchingAttributes)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) obj; - - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 1: - if (!getTaskResourceAttributes() - .equals(other.getTaskResourceAttributes())) return false; - break; - case 2: - if (!getClusterResourceAttributes() - .equals(other.getClusterResourceAttributes())) return false; - break; - case 3: - if (!getExecutionQueueAttributes() - .equals(other.getExecutionQueueAttributes())) return false; - break; - case 4: - if (!getExecutionClusterLabel() - .equals(other.getExecutionClusterLabel())) return false; - break; - case 5: - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - break; - case 6: - if (!getPluginOverrides() - .equals(other.getPluginOverrides())) return false; - break; - case 7: - if (!getWorkflowExecutionConfig() - .equals(other.getWorkflowExecutionConfig())) return false; - break; - case 8: - if (!getClusterAssignment() - .equals(other.getClusterAssignment())) 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 (targetCase_) { - case 1: - hash = (37 * hash) + TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getTaskResourceAttributes().hashCode(); - break; - case 2: - hash = (37 * hash) + CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getClusterResourceAttributes().hashCode(); - break; - case 3: - hash = (37 * hash) + EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getExecutionQueueAttributes().hashCode(); - break; - case 4: - hash = (37 * hash) + EXECUTION_CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getExecutionClusterLabel().hashCode(); - break; - case 5: - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - break; - case 6: - hash = (37 * hash) + PLUGIN_OVERRIDES_FIELD_NUMBER; - hash = (53 * hash) + getPluginOverrides().hashCode(); - break; - case 7: - hash = (37 * hash) + WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionConfig().hashCode(); - break; - case 8: - hash = (37 * hash) + CLUSTER_ASSIGNMENT_FIELD_NUMBER; - hash = (53 * hash) + getClusterAssignment().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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.MatchableResourceOuterClass.MatchingAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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.MatchableResourceOuterClass.MatchingAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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.MatchableResourceOuterClass.MatchingAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes 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.MatchableResourceOuterClass.MatchingAttributes 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; - } - /** - *
-     * Generic container for encapsulating all types of the above attributes messages.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchingAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchingAttributes) - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.class, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.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(); - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchingAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes build() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes result = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(this); - if (targetCase_ == 1) { - if (taskResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 2) { - if (clusterResourceAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = clusterResourceAttributesBuilder_.build(); - } - } - if (targetCase_ == 3) { - if (executionQueueAttributesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionQueueAttributesBuilder_.build(); - } - } - if (targetCase_ == 4) { - if (executionClusterLabelBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = executionClusterLabelBuilder_.build(); - } - } - if (targetCase_ == 5) { - if (qualityOfServiceBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = qualityOfServiceBuilder_.build(); - } - } - if (targetCase_ == 6) { - if (pluginOverridesBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = pluginOverridesBuilder_.build(); - } - } - if (targetCase_ == 7) { - if (workflowExecutionConfigBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = workflowExecutionConfigBuilder_.build(); - } - } - if (targetCase_ == 8) { - if (clusterAssignmentBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = clusterAssignmentBuilder_.build(); - } - } - result.targetCase_ = targetCase_; - 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.MatchableResourceOuterClass.MatchingAttributes) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance()) return this; - switch (other.getTargetCase()) { - case TASK_RESOURCE_ATTRIBUTES: { - mergeTaskResourceAttributes(other.getTaskResourceAttributes()); - break; - } - case CLUSTER_RESOURCE_ATTRIBUTES: { - mergeClusterResourceAttributes(other.getClusterResourceAttributes()); - break; - } - case EXECUTION_QUEUE_ATTRIBUTES: { - mergeExecutionQueueAttributes(other.getExecutionQueueAttributes()); - break; - } - case EXECUTION_CLUSTER_LABEL: { - mergeExecutionClusterLabel(other.getExecutionClusterLabel()); - break; - } - case QUALITY_OF_SERVICE: { - mergeQualityOfService(other.getQualityOfService()); - break; - } - case PLUGIN_OVERRIDES: { - mergePluginOverrides(other.getPluginOverrides()); - break; - } - case WORKFLOW_EXECUTION_CONFIG: { - mergeWorkflowExecutionConfig(other.getWorkflowExecutionConfig()); - break; - } - case CLUSTER_ASSIGNMENT: { - mergeClusterAssignment(other.getClusterAssignment()); - break; - } - case TARGET_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.MatchableResourceOuterClass.MatchingAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> taskResourceAttributesBuilder_; - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public boolean hasTaskResourceAttributes() { - return targetCase_ == 1; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes getTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 1) { - return taskResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder setTaskResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder builderForValue) { - if (taskResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder mergeTaskResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes value) { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1 && - target_ != flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 1) { - taskResourceAttributesBuilder_.mergeFrom(value); - } - taskResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 1; - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public Builder clearTaskResourceAttributes() { - if (taskResourceAttributesBuilder_ == null) { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 1) { - targetCase_ = 0; - target_ = null; - } - taskResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder getTaskResourceAttributesBuilder() { - return getTaskResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder getTaskResourceAttributesOrBuilder() { - if ((targetCase_ == 1) && (taskResourceAttributesBuilder_ != null)) { - return taskResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 1) { - return (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskResourceAttributes task_resource_attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder> - getTaskResourceAttributesFieldBuilder() { - if (taskResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 1)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.getDefaultInstance(); - } - taskResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.TaskResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 1; - onChanged();; - return taskResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> clusterResourceAttributesBuilder_; - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public boolean hasClusterResourceAttributes() { - return targetCase_ == 2; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes getClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 2) { - return clusterResourceAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder setClusterResourceAttributes( - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder builderForValue) { - if (clusterResourceAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - clusterResourceAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder mergeClusterResourceAttributes(flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes value) { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 2) { - clusterResourceAttributesBuilder_.mergeFrom(value); - } - clusterResourceAttributesBuilder_.setMessage(value); - } - targetCase_ = 2; - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public Builder clearClusterResourceAttributes() { - if (clusterResourceAttributesBuilder_ == null) { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 2) { - targetCase_ = 0; - target_ = null; - } - clusterResourceAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder getClusterResourceAttributesBuilder() { - return getClusterResourceAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder getClusterResourceAttributesOrBuilder() { - if ((targetCase_ == 2) && (clusterResourceAttributesBuilder_ != null)) { - return clusterResourceAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 2) { - return (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterResourceAttributes cluster_resource_attributes = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder> - getClusterResourceAttributesFieldBuilder() { - if (clusterResourceAttributesBuilder_ == null) { - if (!(targetCase_ == 2)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.getDefaultInstance(); - } - clusterResourceAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ClusterResourceAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 2; - onChanged();; - return clusterResourceAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> executionQueueAttributesBuilder_; - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public boolean hasExecutionQueueAttributes() { - return targetCase_ == 3; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes getExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } else { - if (targetCase_ == 3) { - return executionQueueAttributesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder setExecutionQueueAttributes( - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder builderForValue) { - if (executionQueueAttributesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionQueueAttributesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder mergeExecutionQueueAttributes(flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes value) { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 3) { - executionQueueAttributesBuilder_.mergeFrom(value); - } - executionQueueAttributesBuilder_.setMessage(value); - } - targetCase_ = 3; - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public Builder clearExecutionQueueAttributes() { - if (executionQueueAttributesBuilder_ == null) { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 3) { - targetCase_ = 0; - target_ = null; - } - executionQueueAttributesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder getExecutionQueueAttributesBuilder() { - return getExecutionQueueAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder getExecutionQueueAttributesOrBuilder() { - if ((targetCase_ == 3) && (executionQueueAttributesBuilder_ != null)) { - return executionQueueAttributesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 3) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionQueueAttributes execution_queue_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder> - getExecutionQueueAttributesFieldBuilder() { - if (executionQueueAttributesBuilder_ == null) { - if (!(targetCase_ == 3)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.getDefaultInstance(); - } - executionQueueAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionQueueAttributes) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 3; - onChanged();; - return executionQueueAttributesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> executionClusterLabelBuilder_; - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public boolean hasExecutionClusterLabel() { - return targetCase_ == 4; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel getExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } else { - if (targetCase_ == 4) { - return executionClusterLabelBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder setExecutionClusterLabel( - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder builderForValue) { - if (executionClusterLabelBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - executionClusterLabelBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder mergeExecutionClusterLabel(flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel value) { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4 && - target_ != flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.newBuilder((flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 4) { - executionClusterLabelBuilder_.mergeFrom(value); - } - executionClusterLabelBuilder_.setMessage(value); - } - targetCase_ = 4; - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public Builder clearExecutionClusterLabel() { - if (executionClusterLabelBuilder_ == null) { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 4) { - targetCase_ = 0; - target_ = null; - } - executionClusterLabelBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder getExecutionClusterLabelBuilder() { - return getExecutionClusterLabelFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder getExecutionClusterLabelOrBuilder() { - if ((targetCase_ == 4) && (executionClusterLabelBuilder_ != null)) { - return executionClusterLabelBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 4) { - return (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ExecutionClusterLabel execution_cluster_label = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder> - getExecutionClusterLabelFieldBuilder() { - if (executionClusterLabelBuilder_ == null) { - if (!(targetCase_ == 4)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.getDefaultInstance(); - } - executionClusterLabelBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel.Builder, flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabelOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.ExecutionClusterLabel) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 4; - onChanged();; - return executionClusterLabelBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public boolean hasQualityOfService() { - return targetCase_ == 5; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } else { - if (targetCase_ == 5) { - return qualityOfServiceBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5 && - target_ != flyteidl.core.Execution.QualityOfService.getDefaultInstance()) { - target_ = flyteidl.core.Execution.QualityOfService.newBuilder((flyteidl.core.Execution.QualityOfService) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 5) { - qualityOfServiceBuilder_.mergeFrom(value); - } - qualityOfServiceBuilder_.setMessage(value); - } - targetCase_ = 5; - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 5) { - targetCase_ = 0; - target_ = null; - } - qualityOfServiceBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if ((targetCase_ == 5) && (qualityOfServiceBuilder_ != null)) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 5) { - return (flyteidl.core.Execution.QualityOfService) target_; - } - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfService quality_of_service = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - if (!(targetCase_ == 5)) { - target_ = flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - (flyteidl.core.Execution.QualityOfService) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 5; - onChanged();; - return qualityOfServiceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder> pluginOverridesBuilder_; - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public boolean hasPluginOverrides() { - return targetCase_ == 6; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides getPluginOverrides() { - if (pluginOverridesBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return pluginOverridesBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public Builder setPluginOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides value) { - if (pluginOverridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - pluginOverridesBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public Builder setPluginOverrides( - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder builderForValue) { - if (pluginOverridesBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - pluginOverridesBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public Builder mergePluginOverrides(flyteidl.admin.MatchableResourceOuterClass.PluginOverrides value) { - if (pluginOverridesBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.newBuilder((flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - pluginOverridesBuilder_.mergeFrom(value); - } - pluginOverridesBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public Builder clearPluginOverrides() { - if (pluginOverridesBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - pluginOverridesBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder getPluginOverridesBuilder() { - return getPluginOverridesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - public flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder getPluginOverridesOrBuilder() { - if ((targetCase_ == 6) && (pluginOverridesBuilder_ != null)) { - return pluginOverridesBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.PluginOverrides plugin_overrides = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder> - getPluginOverridesFieldBuilder() { - if (pluginOverridesBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.getDefaultInstance(); - } - pluginOverridesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.PluginOverrides, flyteidl.admin.MatchableResourceOuterClass.PluginOverrides.Builder, flyteidl.admin.MatchableResourceOuterClass.PluginOverridesOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.PluginOverrides) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return pluginOverridesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder> workflowExecutionConfigBuilder_; - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public boolean hasWorkflowExecutionConfig() { - return targetCase_ == 7; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig getWorkflowExecutionConfig() { - if (workflowExecutionConfigBuilder_ == null) { - if (targetCase_ == 7) { - return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } else { - if (targetCase_ == 7) { - return workflowExecutionConfigBuilder_.getMessage(); - } - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public Builder setWorkflowExecutionConfig(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig value) { - if (workflowExecutionConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - workflowExecutionConfigBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public Builder setWorkflowExecutionConfig( - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder builderForValue) { - if (workflowExecutionConfigBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionConfigBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 7; - return this; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public Builder mergeWorkflowExecutionConfig(flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig value) { - if (workflowExecutionConfigBuilder_ == null) { - if (targetCase_ == 7 && - target_ != flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance()) { - target_ = flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.newBuilder((flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 7) { - workflowExecutionConfigBuilder_.mergeFrom(value); - } - workflowExecutionConfigBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public Builder clearWorkflowExecutionConfig() { - if (workflowExecutionConfigBuilder_ == null) { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - } - workflowExecutionConfigBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder getWorkflowExecutionConfigBuilder() { - return getWorkflowExecutionConfigFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - public flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder getWorkflowExecutionConfigOrBuilder() { - if ((targetCase_ == 7) && (workflowExecutionConfigBuilder_ != null)) { - return workflowExecutionConfigBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 7) { - return (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_; - } - return flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowExecutionConfig workflow_execution_config = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder> - getWorkflowExecutionConfigFieldBuilder() { - if (workflowExecutionConfigBuilder_ == null) { - if (!(targetCase_ == 7)) { - target_ = flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.getDefaultInstance(); - } - workflowExecutionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig.Builder, flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfigOrBuilder>( - (flyteidl.admin.MatchableResourceOuterClass.WorkflowExecutionConfig) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 7; - onChanged();; - return workflowExecutionConfigBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> clusterAssignmentBuilder_; - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public boolean hasClusterAssignment() { - return targetCase_ == 8; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment getClusterAssignment() { - if (clusterAssignmentBuilder_ == null) { - if (targetCase_ == 8) { - return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; - } - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } else { - if (targetCase_ == 8) { - return clusterAssignmentBuilder_.getMessage(); - } - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public Builder setClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { - if (clusterAssignmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - clusterAssignmentBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public Builder setClusterAssignment( - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder builderForValue) { - if (clusterAssignmentBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - clusterAssignmentBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 8; - return this; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public Builder mergeClusterAssignment(flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment value) { - if (clusterAssignmentBuilder_ == null) { - if (targetCase_ == 8 && - target_ != flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance()) { - target_ = flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.newBuilder((flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 8) { - clusterAssignmentBuilder_.mergeFrom(value); - } - clusterAssignmentBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public Builder clearClusterAssignment() { - if (clusterAssignmentBuilder_ == null) { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - } - clusterAssignmentBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder getClusterAssignmentBuilder() { - return getClusterAssignmentFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - public flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder getClusterAssignmentOrBuilder() { - if ((targetCase_ == 8) && (clusterAssignmentBuilder_ != null)) { - return clusterAssignmentBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 8) { - return (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_; - } - return flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.ClusterAssignment cluster_assignment = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder> - getClusterAssignmentFieldBuilder() { - if (clusterAssignmentBuilder_ == null) { - if (!(targetCase_ == 8)) { - target_ = flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.getDefaultInstance(); - } - clusterAssignmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment.Builder, flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignmentOrBuilder>( - (flyteidl.admin.ClusterAssignmentOuterClass.ClusterAssignment) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 8; - onChanged();; - return clusterAssignmentBuilder_; - } - @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.MatchingAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchingAttributes) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchingAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchingAttributes(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.MatchableResourceOuterClass.MatchingAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface MatchableAttributesConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.MatchableAttributesConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes(); - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder(); - - /** - * string domain = 2; - */ - java.lang.String getDomain(); - /** - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * string project = 3; - */ - java.lang.String getProject(); - /** - * string project = 3; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * string workflow = 4; - */ - java.lang.String getWorkflow(); - /** - * string workflow = 4; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * string launch_plan = 5; - */ - java.lang.String getLaunchPlan(); - /** - * string launch_plan = 5; - */ - com.google.protobuf.ByteString - getLaunchPlanBytes(); - } - /** - *
-   * Represents a custom set of attributes applied for either a domain; a domain and project; or
-   * domain, project and workflow name.
-   * These are used to override system level defaults for kubernetes cluster resource management,
-   * default execution values, and more all across different levels of specificity.
-   * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class MatchableAttributesConfiguration extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.MatchableAttributesConfiguration) - MatchableAttributesConfigurationOrBuilder { - private static final long serialVersionUID = 0L; - // Use MatchableAttributesConfiguration.newBuilder() to construct. - private MatchableAttributesConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchableAttributesConfiguration() { - domain_ = ""; - project_ = ""; - workflow_ = ""; - launchPlan_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private MatchableAttributesConfiguration( - 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.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - launchPlan_ = s; - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 3; - private volatile java.lang.Object project_; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 4; - private volatile java.lang.Object workflow_; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAUNCH_PLAN_FIELD_NUMBER = 5; - private volatile java.lang.Object launchPlan_; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - launchPlan_ = s; - return s; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, launchPlan_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, project_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, workflow_); - } - if (!getLaunchPlanBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, launchPlan_); - } - 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.MatchableResourceOuterClass.MatchableAttributesConfiguration)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) return false; - } - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (!getLaunchPlan() - .equals(other.getLaunchPlan())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlan().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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.MatchableResourceOuterClass.MatchableAttributesConfiguration parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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.MatchableResourceOuterClass.MatchableAttributesConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration 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.MatchableResourceOuterClass.MatchableAttributesConfiguration 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; - } - /** - *
-     * Represents a custom set of attributes applied for either a domain; a domain and project; or
-     * domain, project and workflow name.
-     * These are used to override system level defaults for kubernetes cluster resource management,
-     * default execution values, and more all across different levels of specificity.
-     * 
- * - * Protobuf type {@code flyteidl.admin.MatchableAttributesConfiguration} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.MatchableAttributesConfiguration) - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.class, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - domain_ = ""; - - project_ = ""; - - workflow_ = ""; - - launchPlan_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration build() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration result = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.build(); - } - result.domain_ = domain_; - result.project_ = project_; - result.workflow_ = workflow_; - result.launchPlan_ = launchPlan_; - 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.MatchableResourceOuterClass.MatchableAttributesConfiguration) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (!other.getLaunchPlan().isEmpty()) { - launchPlan_ = other.launchPlan_; - onChanged(); - } - 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.MatchableResourceOuterClass.MatchableAttributesConfiguration parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - * string project = 3; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string project = 3; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string project = 3; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - * string project = 3; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - * string workflow = 4; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow = 4; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow = 4; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - * string workflow = 4; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private java.lang.Object launchPlan_ = ""; - /** - * string launch_plan = 5; - */ - public java.lang.String getLaunchPlan() { - java.lang.Object ref = launchPlan_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - launchPlan_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string launch_plan = 5; - */ - public com.google.protobuf.ByteString - getLaunchPlanBytes() { - java.lang.Object ref = launchPlan_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - launchPlan_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlan( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - launchPlan_ = value; - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder clearLaunchPlan() { - - launchPlan_ = getDefaultInstance().getLaunchPlan(); - onChanged(); - return this; - } - /** - * string launch_plan = 5; - */ - public Builder setLaunchPlanBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - launchPlan_ = value; - onChanged(); - return this; - } - @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.MatchableAttributesConfiguration) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.MatchableAttributesConfiguration) - private static final flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchableAttributesConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchableAttributesConfiguration(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.MatchableResourceOuterClass.MatchableAttributesConfiguration getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request all matching resource attributes for a resource type.
-   * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class ListMatchableAttributesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesRequest) - ListMatchableAttributesRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesRequest.newBuilder() to construct. - private ListMatchableAttributesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesRequest() { - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesRequest( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(1, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - 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.MatchableResourceOuterClass.ListMatchableAttributesRequest)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) obj; - - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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.MatchableResourceOuterClass.ListMatchableAttributesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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.MatchableResourceOuterClass.ListMatchableAttributesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest 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.MatchableResourceOuterClass.ListMatchableAttributesRequest 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; - } - /** - *
-     * Request all matching resource attributes for a resource type.
-     * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesRequest) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.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(); - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(this); - result.resourceType_ = resourceType_; - 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.MatchableResourceOuterClass.ListMatchableAttributesRequest) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.MatchableResourceOuterClass.ListMatchableAttributesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.ListMatchableAttributesRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesRequest) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesRequest(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.MatchableResourceOuterClass.ListMatchableAttributesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ListMatchableAttributesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ListMatchableAttributesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - int getConfigurationsCount(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - java.util.List - getConfigurationsOrBuilderList(); - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index); - } - /** - *
-   * Response for a request for all matching resource attributes for a resource type.
-   * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class ListMatchableAttributesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ListMatchableAttributesResponse) - ListMatchableAttributesResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ListMatchableAttributesResponse.newBuilder() to construct. - private ListMatchableAttributesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMatchableAttributesResponse() { - configurations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListMatchableAttributesResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - configurations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - configurations_.add( - input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - public static final int CONFIGURATIONS_FIELD_NUMBER = 1; - private java.util.List configurations_; - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - return configurations_; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - return configurations_.size(); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - return configurations_.get(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - return configurations_.get(index); - } - - 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 { - for (int i = 0; i < configurations_.size(); i++) { - output.writeMessage(1, configurations_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < configurations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, configurations_.get(i)); - } - 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.MatchableResourceOuterClass.ListMatchableAttributesResponse)) { - return super.equals(obj); - } - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) obj; - - if (!getConfigurationsList() - .equals(other.getConfigurationsList())) 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 (getConfigurationsCount() > 0) { - hash = (37 * hash) + CONFIGURATIONS_FIELD_NUMBER; - hash = (53 * hash) + getConfigurationsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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.MatchableResourceOuterClass.ListMatchableAttributesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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.MatchableResourceOuterClass.ListMatchableAttributesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse 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.MatchableResourceOuterClass.ListMatchableAttributesResponse 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; - } - /** - *
-     * Response for a request for all matching resource attributes for a resource type.
-     * See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ListMatchableAttributesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ListMatchableAttributesResponse) - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.class, flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.Builder.class); - } - - // Construct using flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConfigurationsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - configurationsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.MatchableResourceOuterClass.internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse build() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse buildPartial() { - flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse result = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(this); - int from_bitField0_ = bitField0_; - if (configurationsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - configurations_ = java.util.Collections.unmodifiableList(configurations_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.configurations_ = configurations_; - } else { - result.configurations_ = configurationsBuilder_.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.MatchableResourceOuterClass.ListMatchableAttributesResponse) { - return mergeFrom((flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse other) { - if (other == flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse.getDefaultInstance()) return this; - if (configurationsBuilder_ == null) { - if (!other.configurations_.isEmpty()) { - if (configurations_.isEmpty()) { - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConfigurationsIsMutable(); - configurations_.addAll(other.configurations_); - } - onChanged(); - } - } else { - if (!other.configurations_.isEmpty()) { - if (configurationsBuilder_.isEmpty()) { - configurationsBuilder_.dispose(); - configurationsBuilder_ = null; - configurations_ = other.configurations_; - bitField0_ = (bitField0_ & ~0x00000001); - configurationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigurationsFieldBuilder() : null; - } else { - configurationsBuilder_.addAllMessages(other.configurations_); - } - } - } - 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.MatchableResourceOuterClass.ListMatchableAttributesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List configurations_ = - java.util.Collections.emptyList(); - private void ensureConfigurationsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - configurations_ = new java.util.ArrayList(configurations_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> configurationsBuilder_; - - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List getConfigurationsList() { - if (configurationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(configurations_); - } else { - return configurationsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public int getConfigurationsCount() { - if (configurationsBuilder_ == null) { - return configurations_.size(); - } else { - return configurationsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration getConfigurations(int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); - } else { - return configurationsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.set(index, value); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder setConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.set(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations(flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(value); - onChanged(); - } else { - configurationsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration value) { - if (configurationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigurationsIsMutable(); - configurations_.add(index, value); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addConfigurations( - int index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder builderForValue) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.add(index, builderForValue.build()); - onChanged(); - } else { - configurationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder addAllConfigurations( - java.lang.Iterable values) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, configurations_); - onChanged(); - } else { - configurationsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder clearConfigurations() { - if (configurationsBuilder_ == null) { - configurations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - configurationsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public Builder removeConfigurations(int index) { - if (configurationsBuilder_ == null) { - ensureConfigurationsIsMutable(); - configurations_.remove(index); - onChanged(); - } else { - configurationsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder getConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder getConfigurationsOrBuilder( - int index) { - if (configurationsBuilder_ == null) { - return configurations_.get(index); } else { - return configurationsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsOrBuilderList() { - if (configurationsBuilder_ != null) { - return configurationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(configurations_); - } - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder() { - return getConfigurationsFieldBuilder().addBuilder( - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder addConfigurationsBuilder( - int index) { - return getConfigurationsFieldBuilder().addBuilder( - index, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.MatchableAttributesConfiguration configurations = 1; - */ - public java.util.List - getConfigurationsBuilderList() { - return getConfigurationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder> - getConfigurationsFieldBuilder() { - if (configurationsBuilder_ == null) { - configurationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfiguration.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchableAttributesConfigurationOrBuilder>( - configurations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - configurations_ = null; - } - return configurationsBuilder_; - } - @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.ListMatchableAttributesResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ListMatchableAttributesResponse) - private static final flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse(); - } - - public static flyteidl.admin.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMatchableAttributesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListMatchableAttributesResponse(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.MatchableResourceOuterClass.ListMatchableAttributesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_PluginOverride_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_PluginOverrides_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchingAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/admin/matchable_resource.prot" + - "o\022\016flyteidl.admin\032\033flyteidl/admin/common" + - ".proto\032\'flyteidl/admin/cluster_assignmen" + - "t.proto\032\035flyteidl/core/execution.proto\032\034" + - "flyteidl/core/security.proto\032\036google/pro" + - "tobuf/wrappers.proto\"h\n\020TaskResourceSpec" + - "\022\013\n\003cpu\030\001 \001(\t\022\013\n\003gpu\030\002 \001(\t\022\016\n\006memory\030\003 \001" + - "(\t\022\017\n\007storage\030\004 \001(\t\022\031\n\021ephemeral_storage" + - "\030\005 \001(\t\"~\n\026TaskResourceAttributes\0222\n\010defa" + - "ults\030\001 \001(\0132 .flyteidl.admin.TaskResource" + - "Spec\0220\n\006limits\030\002 \001(\0132 .flyteidl.admin.Ta" + - "skResourceSpec\"\235\001\n\031ClusterResourceAttrib" + - "utes\022M\n\nattributes\030\001 \003(\01329.flyteidl.admi" + - "n.ClusterResourceAttributes.AttributesEn" + - "try\0321\n\017AttributesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\"(\n\030ExecutionQueueAttribut" + - "es\022\014\n\004tags\030\001 \003(\t\"&\n\025ExecutionClusterLabe" + - "l\022\r\n\005value\030\001 \001(\t\"\301\001\n\016PluginOverride\022\021\n\tt" + - "ask_type\030\001 \001(\t\022\021\n\tplugin_id\030\002 \003(\t\022U\n\027mis" + - "sing_plugin_behavior\030\004 \001(\01624.flyteidl.ad" + - "min.PluginOverride.MissingPluginBehavior" + - "\"2\n\025MissingPluginBehavior\022\010\n\004FAIL\020\000\022\017\n\013U" + - "SE_DEFAULT\020\001\"D\n\017PluginOverrides\0221\n\toverr" + - "ides\030\001 \003(\0132\036.flyteidl.admin.PluginOverri" + - "de\"\373\002\n\027WorkflowExecutionConfig\022\027\n\017max_pa" + - "rallelism\030\001 \001(\005\0228\n\020security_context\030\002 \001(" + - "\0132\036.flyteidl.core.SecurityContext\022C\n\026raw" + - "_output_data_config\030\003 \001(\0132#.flyteidl.adm" + - "in.RawOutputDataConfig\022&\n\006labels\030\004 \001(\0132\026" + - ".flyteidl.admin.Labels\0220\n\013annotations\030\005 " + - "\001(\0132\033.flyteidl.admin.Annotations\0221\n\rinte" + - "rruptible\030\006 \001(\0132\032.google.protobuf.BoolVa" + - "lue\022\027\n\017overwrite_cache\030\007 \001(\010\022\"\n\004envs\030\010 \001" + - "(\0132\024.flyteidl.admin.Envs\"\341\004\n\022MatchingAtt" + - "ributes\022J\n\030task_resource_attributes\030\001 \001(" + - "\0132&.flyteidl.admin.TaskResourceAttribute" + - "sH\000\022P\n\033cluster_resource_attributes\030\002 \001(\013" + - "2).flyteidl.admin.ClusterResourceAttribu" + - "tesH\000\022N\n\032execution_queue_attributes\030\003 \001(" + - "\0132(.flyteidl.admin.ExecutionQueueAttribu" + - "tesH\000\022H\n\027execution_cluster_label\030\004 \001(\0132%" + - ".flyteidl.admin.ExecutionClusterLabelH\000\022" + - "=\n\022quality_of_service\030\005 \001(\0132\037.flyteidl.c" + - "ore.QualityOfServiceH\000\022;\n\020plugin_overrid" + - "es\030\006 \001(\0132\037.flyteidl.admin.PluginOverride" + - "sH\000\022L\n\031workflow_execution_config\030\007 \001(\0132\'" + - ".flyteidl.admin.WorkflowExecutionConfigH" + - "\000\022?\n\022cluster_assignment\030\010 \001(\0132!.flyteidl" + - ".admin.ClusterAssignmentH\000B\010\n\006target\"\242\001\n" + - " MatchableAttributesConfiguration\0226\n\natt" + - "ributes\030\001 \001(\0132\".flyteidl.admin.MatchingA" + - "ttributes\022\016\n\006domain\030\002 \001(\t\022\017\n\007project\030\003 \001" + - "(\t\022\020\n\010workflow\030\004 \001(\t\022\023\n\013launch_plan\030\005 \001(" + - "\t\"Z\n\036ListMatchableAttributesRequest\0228\n\rr" + - "esource_type\030\001 \001(\0162!.flyteidl.admin.Matc" + - "hableResource\"k\n\037ListMatchableAttributes" + - "Response\022H\n\016configurations\030\001 \003(\01320.flyte" + - "idl.admin.MatchableAttributesConfigurati" + - "on*\340\001\n\021MatchableResource\022\021\n\rTASK_RESOURC" + - "E\020\000\022\024\n\020CLUSTER_RESOURCE\020\001\022\023\n\017EXECUTION_Q" + - "UEUE\020\002\022\033\n\027EXECUTION_CLUSTER_LABEL\020\003\022$\n Q" + - "UALITY_OF_SERVICE_SPECIFICATION\020\004\022\023\n\017PLU" + - "GIN_OVERRIDE\020\005\022\035\n\031WORKFLOW_EXECUTION_CON" + - "FIG\020\006\022\026\n\022CLUSTER_ASSIGNMENT\020\007B=Z;github." + - "com/flyteorg/flyte/flyteidl/gen/pb-go/fl" + - "yteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.Security.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskResourceSpec_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskResourceSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceSpec_descriptor, - new java.lang.String[] { "Cpu", "Gpu", "Memory", "Storage", "EphemeralStorage", }); - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskResourceAttributes_descriptor, - new java.lang.String[] { "Defaults", "Limits", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ClusterResourceAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor = - internal_static_flyteidl_admin_ClusterResourceAttributes_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ClusterResourceAttributes_AttributesEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ExecutionQueueAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionQueueAttributes_descriptor, - new java.lang.String[] { "Tags", }); - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ExecutionClusterLabel_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ExecutionClusterLabel_descriptor, - new java.lang.String[] { "Value", }); - internal_static_flyteidl_admin_PluginOverride_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_PluginOverride_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_PluginOverride_descriptor, - new java.lang.String[] { "TaskType", "PluginId", "MissingPluginBehavior", }); - internal_static_flyteidl_admin_PluginOverrides_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_PluginOverrides_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_PluginOverrides_descriptor, - new java.lang.String[] { "Overrides", }); - internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_WorkflowExecutionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowExecutionConfig_descriptor, - new java.lang.String[] { "MaxParallelism", "SecurityContext", "RawOutputDataConfig", "Labels", "Annotations", "Interruptible", "OverwriteCache", "Envs", }); - internal_static_flyteidl_admin_MatchingAttributes_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_MatchingAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchingAttributes_descriptor, - new java.lang.String[] { "TaskResourceAttributes", "ClusterResourceAttributes", "ExecutionQueueAttributes", "ExecutionClusterLabel", "QualityOfService", "PluginOverrides", "WorkflowExecutionConfig", "ClusterAssignment", "Target", }); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_MatchableAttributesConfiguration_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_MatchableAttributesConfiguration_descriptor, - new java.lang.String[] { "Attributes", "Domain", "Project", "Workflow", "LaunchPlan", }); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_ListMatchableAttributesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesRequest_descriptor, - new java.lang.String[] { "ResourceType", }); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_ListMatchableAttributesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ListMatchableAttributesResponse_descriptor, - new java.lang.String[] { "Configurations", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.admin.ClusterAssignmentOuterClass.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.Security.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java deleted file mode 100644 index b1301715d6..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/NodeExecutionOuterClass.java +++ /dev/null @@ -1,15955 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/node_execution.proto - -package flyteidl.admin; - -public final class NodeExecutionOuterClass { - private NodeExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface NodeExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single node execution entity.
-   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class NodeExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetRequest) - NodeExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetRequest.newBuilder() to construct. - private NodeExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetRequest( - 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.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder 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.NodeExecutionOuterClass.NodeExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest 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.NodeExecutionOuterClass.NodeExecutionGetRequest 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; - } - /** - *
-     * A message used to fetch a single node execution entity.
-     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(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.NodeExecutionOuterClass.NodeExecutionGetRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest.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.NodeExecutionOuterClass.NodeExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - 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.NodeExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetRequest(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.NodeExecutionOuterClass.NodeExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - boolean hasWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - * string token = 3; - */ - java.lang.String getToken(); - /** - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - - /** - *
-     * Unique identifier of the parent node in the execution
-     * +optional
-     * 
- * - * string unique_parent_id = 6; - */ - java.lang.String getUniqueParentId(); - /** - *
-     * Unique identifier of the parent node in the execution
-     * +optional
-     * 
- * - * string unique_parent_id = 6; - */ - com.google.protobuf.ByteString - getUniqueParentIdBytes(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities.
-   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class NodeExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionListRequest) - NodeExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionListRequest.newBuilder() to construct. - private NodeExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionListRequest() { - token_ = ""; - filters_ = ""; - uniqueParentId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionListRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (workflowExecutionId_ != null) { - subBuilder = workflowExecutionId_.toBuilder(); - } - workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowExecutionId_); - workflowExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - uniqueParentId_ = s; - 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionId_ != null; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - return getWorkflowExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - public static final int UNIQUE_PARENT_ID_FIELD_NUMBER = 6; - private volatile java.lang.Object uniqueParentId_; - /** - *
-     * Unique identifier of the parent node in the execution
-     * +optional
-     * 
- * - * string unique_parent_id = 6; - */ - public java.lang.String getUniqueParentId() { - java.lang.Object ref = uniqueParentId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uniqueParentId_ = s; - return s; - } - } - /** - *
-     * Unique identifier of the parent node in the execution
-     * +optional
-     * 
- * - * string unique_parent_id = 6; - */ - public com.google.protobuf.ByteString - getUniqueParentIdBytes() { - java.lang.Object ref = uniqueParentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueParentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (workflowExecutionId_ != null) { - output.writeMessage(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - if (!getUniqueParentIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, uniqueParentId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - if (!getUniqueParentIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, uniqueParentId_); - } - 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.NodeExecutionOuterClass.NodeExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) obj; - - if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; - if (hasWorkflowExecutionId()) { - if (!getWorkflowExecutionId() - .equals(other.getWorkflowExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) return false; - } - if (!getUniqueParentId() - .equals(other.getUniqueParentId())) 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 (hasWorkflowExecutionId()) { - hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (37 * hash) + UNIQUE_PARENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getUniqueParentId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest 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.NodeExecutionOuterClass.NodeExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities.
-     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.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 (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - uniqueParentId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(this); - if (workflowExecutionIdBuilder_ == null) { - result.workflowExecutionId_ = workflowExecutionId_; - } else { - result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.build(); - } - result.uniqueParentId_ = uniqueParentId_; - 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.NodeExecutionOuterClass.NodeExecutionListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest.getDefaultInstance()) return this; - if (other.hasWorkflowExecutionId()) { - mergeWorkflowExecutionId(other.getWorkflowExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - if (!other.getUniqueParentId().isEmpty()) { - uniqueParentId_ = other.uniqueParentId_; - onChanged(); - } - 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.NodeExecutionOuterClass.NodeExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } else { - return workflowExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowExecutionId_ = value; - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (workflowExecutionId_ != null) { - workflowExecutionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); - } else { - workflowExecutionId_ = value; - } - onChanged(); - } else { - workflowExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder clearWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - onChanged(); - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { - - onChanged(); - return getWorkflowExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if (workflowExecutionIdBuilder_ != null) { - return workflowExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return workflowExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionIdFieldBuilder() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWorkflowExecutionId(), - getParentForChildren(), - isClean()); - workflowExecutionId_ = null; - } - return workflowExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - - private java.lang.Object uniqueParentId_ = ""; - /** - *
-       * Unique identifier of the parent node in the execution
-       * +optional
-       * 
- * - * string unique_parent_id = 6; - */ - public java.lang.String getUniqueParentId() { - java.lang.Object ref = uniqueParentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uniqueParentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique identifier of the parent node in the execution
-       * +optional
-       * 
- * - * string unique_parent_id = 6; - */ - public com.google.protobuf.ByteString - getUniqueParentIdBytes() { - java.lang.Object ref = uniqueParentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueParentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique identifier of the parent node in the execution
-       * +optional
-       * 
- * - * string unique_parent_id = 6; - */ - public Builder setUniqueParentId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uniqueParentId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique identifier of the parent node in the execution
-       * +optional
-       * 
- * - * string unique_parent_id = 6; - */ - public Builder clearUniqueParentId() { - - uniqueParentId_ = getDefaultInstance().getUniqueParentId(); - onChanged(); - return this; - } - /** - *
-       * Unique identifier of the parent node in the execution
-       * +optional
-       * 
- * - * string unique_parent_id = 6; - */ - public Builder setUniqueParentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uniqueParentId_ = value; - onChanged(); - return this; - } - @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.NodeExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionListRequest(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.NodeExecutionOuterClass.NodeExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionForTaskListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionForTaskListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - boolean hasTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-   * This can arise when a task yields a subworkflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class NodeExecutionForTaskListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - NodeExecutionForTaskListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionForTaskListRequest.newBuilder() to construct. - private NodeExecutionForTaskListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionForTaskListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionForTaskListRequest( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecutionId_ != null) { - subBuilder = taskExecutionId_.toBuilder(); - } - taskExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecutionId_); - taskExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - public static final int TASK_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - return getTaskExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (taskExecutionId_ != null) { - output.writeMessage(1, getTaskExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) obj; - - if (hasTaskExecutionId() != other.hasTaskExecutionId()) return false; - if (hasTaskExecutionId()) { - if (!getTaskExecutionId() - .equals(other.getTaskExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasTaskExecutionId()) { - hash = (37 * hash) + TASK_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of node execution entities launched by a specific task.
-     * This can arise when a task yields a subworkflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionForTaskListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionForTaskListRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.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 (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(this); - if (taskExecutionIdBuilder_ == null) { - result.taskExecutionId_ = taskExecutionId_; - } else { - result.taskExecutionId_ = taskExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest.getDefaultInstance()) return this; - if (other.hasTaskExecutionId()) { - mergeTaskExecutionId(other.getTaskExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public boolean hasTaskExecutionId() { - return taskExecutionIdBuilder_ != null || taskExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - return taskExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } else { - return taskExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecutionId_ = value; - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder setTaskExecutionId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = builderForValue.build(); - onChanged(); - } else { - taskExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder mergeTaskExecutionId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecutionIdBuilder_ == null) { - if (taskExecutionId_ != null) { - taskExecutionId_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecutionId_).mergeFrom(value).buildPartial(); - } else { - taskExecutionId_ = value; - } - onChanged(); - } else { - taskExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public Builder clearTaskExecutionId() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionId_ = null; - onChanged(); - } else { - taskExecutionId_ = null; - taskExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecutionIdBuilder() { - - onChanged(); - return getTaskExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecutionIdOrBuilder() { - if (taskExecutionIdBuilder_ != null) { - return taskExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return taskExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecutionIdFieldBuilder() { - if (taskExecutionIdBuilder_ == null) { - taskExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecutionId(), - getParentForChildren(), - isClean()); - taskExecutionId_ = null; - } - return taskExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.NodeExecutionForTaskListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionForTaskListRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionForTaskListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionForTaskListRequest(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.NodeExecutionOuterClass.NodeExecutionForTaskListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure(); - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - boolean hasMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata(); - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder(); - } - /** - *
-   * Encapsulates all details for a single node execution entity.
-   * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-   * sub-workflow, or even a separate child-workflow execution.
-   * The same task can be called repeatedly in a single workflow but each node is unique.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - 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.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Uniquely identifies an individual node execution.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Computed results associated with this node execution.
-     * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata for Node Execution
-     * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (metadata_ != null) { - output.writeMessage(4, getMetadata()); - } - 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()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMetadata()); - } - 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.NodeExecutionOuterClass.NodeExecution)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecution other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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 = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution 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.NodeExecutionOuterClass.NodeExecution 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; - } - /** - *
-     * Encapsulates all details for a single node execution entity.
-     * A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested
-     * sub-workflow, or even a separate child-workflow execution.
-     * The same task can be called repeatedly in a single workflow but each node is unique.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecution) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecution.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; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecution result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.NodeExecutionOuterClass.NodeExecution) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecution other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.NodeExecutionOuterClass.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Uniquely identifies an individual node execution.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Computed results associated with this node execution.
-       * 
- * - * .flyteidl.admin.NodeExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder setMetadata( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder mergeMetadata(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata for Node Execution
-       * 
- * - * .flyteidl.admin.NodeExecutionMetaData metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecution) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecution(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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.NodeExecutionOuterClass.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionMetaDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionMetaData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Node executions are grouped depending on retries of the parent
-     * Retry group is unique within the context of a parent node.
-     * 
- * - * string retry_group = 1; - */ - java.lang.String getRetryGroup(); - /** - *
-     * Node executions are grouped depending on retries of the parent
-     * Retry group is unique within the context of a parent node.
-     * 
- * - * string retry_group = 1; - */ - com.google.protobuf.ByteString - getRetryGroupBytes(); - - /** - *
-     * Boolean flag indicating if the node has child nodes under it
-     * This can be true when a node contains a dynamic workflow which then produces
-     * child nodes.
-     * 
- * - * bool is_parent_node = 2; - */ - boolean getIsParentNode(); - - /** - *
-     * Node id of the node in the original workflow
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 3; - */ - java.lang.String getSpecNodeId(); - /** - *
-     * Node id of the node in the original workflow
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 3; - */ - com.google.protobuf.ByteString - getSpecNodeIdBytes(); - - /** - *
-     * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
-     * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
-     * 
- * - * bool is_dynamic = 4; - */ - boolean getIsDynamic(); - - /** - *
-     * Boolean flag indicating if the node is an array node. This is intended to uniquely identify
-     * array nodes from other nodes which can have is_parent_node as true.
-     * 
- * - * bool is_array = 5; - */ - boolean getIsArray(); - } - /** - *
-   * Represents additional attributes related to a Node Execution
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class NodeExecutionMetaData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionMetaData) - NodeExecutionMetaDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionMetaData.newBuilder() to construct. - private NodeExecutionMetaData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionMetaData() { - retryGroup_ = ""; - specNodeId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionMetaData( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - retryGroup_ = s; - break; - } - case 16: { - - isParentNode_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - specNodeId_ = s; - break; - } - case 32: { - - isDynamic_ = input.readBool(); - break; - } - case 40: { - - isArray_ = input.readBool(); - 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - public static final int RETRY_GROUP_FIELD_NUMBER = 1; - private volatile java.lang.Object retryGroup_; - /** - *
-     * Node executions are grouped depending on retries of the parent
-     * Retry group is unique within the context of a parent node.
-     * 
- * - * string retry_group = 1; - */ - public java.lang.String getRetryGroup() { - java.lang.Object ref = retryGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - retryGroup_ = s; - return s; - } - } - /** - *
-     * Node executions are grouped depending on retries of the parent
-     * Retry group is unique within the context of a parent node.
-     * 
- * - * string retry_group = 1; - */ - public com.google.protobuf.ByteString - getRetryGroupBytes() { - java.lang.Object ref = retryGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - retryGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_PARENT_NODE_FIELD_NUMBER = 2; - private boolean isParentNode_; - /** - *
-     * Boolean flag indicating if the node has child nodes under it
-     * This can be true when a node contains a dynamic workflow which then produces
-     * child nodes.
-     * 
- * - * bool is_parent_node = 2; - */ - public boolean getIsParentNode() { - return isParentNode_; - } - - public static final int SPEC_NODE_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object specNodeId_; - /** - *
-     * Node id of the node in the original workflow
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 3; - */ - public java.lang.String getSpecNodeId() { - java.lang.Object ref = specNodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specNodeId_ = s; - return s; - } - } - /** - *
-     * Node id of the node in the original workflow
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 3; - */ - public com.google.protobuf.ByteString - getSpecNodeIdBytes() { - java.lang.Object ref = specNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_DYNAMIC_FIELD_NUMBER = 4; - private boolean isDynamic_; - /** - *
-     * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
-     * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
-     * 
- * - * bool is_dynamic = 4; - */ - public boolean getIsDynamic() { - return isDynamic_; - } - - public static final int IS_ARRAY_FIELD_NUMBER = 5; - private boolean isArray_; - /** - *
-     * Boolean flag indicating if the node is an array node. This is intended to uniquely identify
-     * array nodes from other nodes which can have is_parent_node as true.
-     * 
- * - * bool is_array = 5; - */ - public boolean getIsArray() { - return isArray_; - } - - 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 (!getRetryGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, retryGroup_); - } - if (isParentNode_ != false) { - output.writeBool(2, isParentNode_); - } - if (!getSpecNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, specNodeId_); - } - if (isDynamic_ != false) { - output.writeBool(4, isDynamic_); - } - if (isArray_ != false) { - output.writeBool(5, isArray_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRetryGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, retryGroup_); - } - if (isParentNode_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isParentNode_); - } - if (!getSpecNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, specNodeId_); - } - if (isDynamic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isDynamic_); - } - if (isArray_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, isArray_); - } - 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.NodeExecutionOuterClass.NodeExecutionMetaData)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) obj; - - if (!getRetryGroup() - .equals(other.getRetryGroup())) return false; - if (getIsParentNode() - != other.getIsParentNode()) return false; - if (!getSpecNodeId() - .equals(other.getSpecNodeId())) return false; - if (getIsDynamic() - != other.getIsDynamic()) return false; - if (getIsArray() - != other.getIsArray()) 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(); - hash = (37 * hash) + RETRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getRetryGroup().hashCode(); - hash = (37 * hash) + IS_PARENT_NODE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsParentNode()); - hash = (37 * hash) + SPEC_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getSpecNodeId().hashCode(); - hash = (37 * hash) + IS_DYNAMIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDynamic()); - hash = (37 * hash) + IS_ARRAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsArray()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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.NodeExecutionOuterClass.NodeExecutionMetaData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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.NodeExecutionOuterClass.NodeExecutionMetaData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData 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.NodeExecutionOuterClass.NodeExecutionMetaData 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; - } - /** - *
-     * Represents additional attributes related to a Node Execution
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionMetaData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionMetaData) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.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(); - retryGroup_ = ""; - - isParentNode_ = false; - - specNodeId_ = ""; - - isDynamic_ = false; - - isArray_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(this); - result.retryGroup_ = retryGroup_; - result.isParentNode_ = isParentNode_; - result.specNodeId_ = specNodeId_; - result.isDynamic_ = isDynamic_; - result.isArray_ = isArray_; - 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.NodeExecutionOuterClass.NodeExecutionMetaData) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData.getDefaultInstance()) return this; - if (!other.getRetryGroup().isEmpty()) { - retryGroup_ = other.retryGroup_; - onChanged(); - } - if (other.getIsParentNode() != false) { - setIsParentNode(other.getIsParentNode()); - } - if (!other.getSpecNodeId().isEmpty()) { - specNodeId_ = other.specNodeId_; - onChanged(); - } - if (other.getIsDynamic() != false) { - setIsDynamic(other.getIsDynamic()); - } - if (other.getIsArray() != false) { - setIsArray(other.getIsArray()); - } - 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.NodeExecutionOuterClass.NodeExecutionMetaData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object retryGroup_ = ""; - /** - *
-       * Node executions are grouped depending on retries of the parent
-       * Retry group is unique within the context of a parent node.
-       * 
- * - * string retry_group = 1; - */ - public java.lang.String getRetryGroup() { - java.lang.Object ref = retryGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - retryGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Node executions are grouped depending on retries of the parent
-       * Retry group is unique within the context of a parent node.
-       * 
- * - * string retry_group = 1; - */ - public com.google.protobuf.ByteString - getRetryGroupBytes() { - java.lang.Object ref = retryGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - retryGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Node executions are grouped depending on retries of the parent
-       * Retry group is unique within the context of a parent node.
-       * 
- * - * string retry_group = 1; - */ - public Builder setRetryGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - retryGroup_ = value; - onChanged(); - return this; - } - /** - *
-       * Node executions are grouped depending on retries of the parent
-       * Retry group is unique within the context of a parent node.
-       * 
- * - * string retry_group = 1; - */ - public Builder clearRetryGroup() { - - retryGroup_ = getDefaultInstance().getRetryGroup(); - onChanged(); - return this; - } - /** - *
-       * Node executions are grouped depending on retries of the parent
-       * Retry group is unique within the context of a parent node.
-       * 
- * - * string retry_group = 1; - */ - public Builder setRetryGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - retryGroup_ = value; - onChanged(); - return this; - } - - private boolean isParentNode_ ; - /** - *
-       * Boolean flag indicating if the node has child nodes under it
-       * This can be true when a node contains a dynamic workflow which then produces
-       * child nodes.
-       * 
- * - * bool is_parent_node = 2; - */ - public boolean getIsParentNode() { - return isParentNode_; - } - /** - *
-       * Boolean flag indicating if the node has child nodes under it
-       * This can be true when a node contains a dynamic workflow which then produces
-       * child nodes.
-       * 
- * - * bool is_parent_node = 2; - */ - public Builder setIsParentNode(boolean value) { - - isParentNode_ = value; - onChanged(); - return this; - } - /** - *
-       * Boolean flag indicating if the node has child nodes under it
-       * This can be true when a node contains a dynamic workflow which then produces
-       * child nodes.
-       * 
- * - * bool is_parent_node = 2; - */ - public Builder clearIsParentNode() { - - isParentNode_ = false; - onChanged(); - return this; - } - - private java.lang.Object specNodeId_ = ""; - /** - *
-       * Node id of the node in the original workflow
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 3; - */ - public java.lang.String getSpecNodeId() { - java.lang.Object ref = specNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Node id of the node in the original workflow
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 3; - */ - public com.google.protobuf.ByteString - getSpecNodeIdBytes() { - java.lang.Object ref = specNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Node id of the node in the original workflow
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 3; - */ - public Builder setSpecNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - specNodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Node id of the node in the original workflow
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 3; - */ - public Builder clearSpecNodeId() { - - specNodeId_ = getDefaultInstance().getSpecNodeId(); - onChanged(); - return this; - } - /** - *
-       * Node id of the node in the original workflow
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 3; - */ - public Builder setSpecNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - specNodeId_ = value; - onChanged(); - return this; - } - - private boolean isDynamic_ ; - /** - *
-       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
-       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
-       * 
- * - * bool is_dynamic = 4; - */ - public boolean getIsDynamic() { - return isDynamic_; - } - /** - *
-       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
-       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
-       * 
- * - * bool is_dynamic = 4; - */ - public Builder setIsDynamic(boolean value) { - - isDynamic_ = value; - onChanged(); - return this; - } - /** - *
-       * Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes.
-       * This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true.
-       * 
- * - * bool is_dynamic = 4; - */ - public Builder clearIsDynamic() { - - isDynamic_ = false; - onChanged(); - return this; - } - - private boolean isArray_ ; - /** - *
-       * Boolean flag indicating if the node is an array node. This is intended to uniquely identify
-       * array nodes from other nodes which can have is_parent_node as true.
-       * 
- * - * bool is_array = 5; - */ - public boolean getIsArray() { - return isArray_; - } - /** - *
-       * Boolean flag indicating if the node is an array node. This is intended to uniquely identify
-       * array nodes from other nodes which can have is_parent_node as true.
-       * 
- * - * bool is_array = 5; - */ - public Builder setIsArray(boolean value) { - - isArray_ = value; - onChanged(); - return this; - } - /** - *
-       * Boolean flag indicating if the node is an array node. This is intended to uniquely identify
-       * array nodes from other nodes which can have is_parent_node as true.
-       * 
- * - * bool is_array = 5; - */ - public Builder clearIsArray() { - - isArray_ = false; - onChanged(); - return this; - } - @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.NodeExecutionMetaData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionMetaData) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionMetaData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionMetaData(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.NodeExecutionOuterClass.NodeExecutionMetaData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - int getNodeExecutionsCount(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - java.util.List - getNodeExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Request structure to retrieve a list of node execution entities.
-   * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class NodeExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionList) - NodeExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionList.newBuilder() to construct. - private NodeExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionList() { - nodeExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodeExecutions_.add( - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.NodeExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - private int bitField0_; - public static final int NODE_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List nodeExecutions_; - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - return nodeExecutions_; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - return nodeExecutions_.size(); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - return nodeExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - return nodeExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < nodeExecutions_.size(); i++) { - output.writeMessage(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodeExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodeExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.NodeExecutionOuterClass.NodeExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) obj; - - if (!getNodeExecutionsList() - .equals(other.getNodeExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getNodeExecutionsCount() > 0) { - hash = (37 * hash) + NODE_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList 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.NodeExecutionOuterClass.NodeExecutionList 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; - } - /** - *
-     * Request structure to retrieve a list of node execution entities.
-     * See :ref:`ref_flyteidl.admin.NodeExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionList) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodeExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodeExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodeExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = java.util.Collections.unmodifiableList(nodeExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodeExecutions_ = nodeExecutions_; - } else { - result.nodeExecutions_ = nodeExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.NodeExecutionOuterClass.NodeExecutionList) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList.getDefaultInstance()) return this; - if (nodeExecutionsBuilder_ == null) { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutions_.isEmpty()) { - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.addAll(other.nodeExecutions_); - } - onChanged(); - } - } else { - if (!other.nodeExecutions_.isEmpty()) { - if (nodeExecutionsBuilder_.isEmpty()) { - nodeExecutionsBuilder_.dispose(); - nodeExecutionsBuilder_ = null; - nodeExecutions_ = other.nodeExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - nodeExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodeExecutionsFieldBuilder() : null; - } else { - nodeExecutionsBuilder_.addAllMessages(other.nodeExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.NodeExecutionOuterClass.NodeExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodeExecutions_ = - java.util.Collections.emptyList(); - private void ensureNodeExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodeExecutions_ = new java.util.ArrayList(nodeExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> nodeExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List getNodeExecutionsList() { - if (nodeExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } else { - return nodeExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public int getNodeExecutionsCount() { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.size(); - } else { - return nodeExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution getNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); - } else { - return nodeExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder setNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions(flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution value) { - if (nodeExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, value); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addNodeExecutions( - int index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder builderForValue) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - nodeExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder addAllNodeExecutions( - java.lang.Iterable values) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodeExecutions_); - onChanged(); - } else { - nodeExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder clearNodeExecutions() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodeExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public Builder removeNodeExecutions(int index) { - if (nodeExecutionsBuilder_ == null) { - ensureNodeExecutionsIsMutable(); - nodeExecutions_.remove(index); - onChanged(); - } else { - nodeExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder getNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder getNodeExecutionsOrBuilder( - int index) { - if (nodeExecutionsBuilder_ == null) { - return nodeExecutions_.get(index); } else { - return nodeExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsOrBuilderList() { - if (nodeExecutionsBuilder_ != null) { - return nodeExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodeExecutions_); - } - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder() { - return getNodeExecutionsFieldBuilder().addBuilder( - flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder addNodeExecutionsBuilder( - int index) { - return getNodeExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.NodeExecution node_executions = 1; - */ - public java.util.List - getNodeExecutionsBuilderList() { - return getNodeExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder> - getNodeExecutionsFieldBuilder() { - if (nodeExecutionsBuilder_ == null) { - nodeExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.NodeExecution, flyteidl.admin.NodeExecutionOuterClass.NodeExecution.Builder, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionOrBuilder>( - nodeExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodeExecutions_ = null; - } - return nodeExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.NodeExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionList) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionList(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.NodeExecutionOuterClass.NodeExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getOutputUri(); - /** - *
-     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputData(); - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - boolean hasTaskNodeMetadata(); - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata(); - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder(); - - /** - *
-     * String location uniquely identifying where the deck HTML file is.
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 11; - */ - java.lang.String getDeckUri(); - /** - *
-     * String location uniquely identifying where the deck HTML file is.
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 11; - */ - com.google.protobuf.ByteString - getDeckUriBytes(); - - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-     * to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 12; - */ - java.lang.String getDynamicJobSpecUri(); - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-     * to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 12; - */ - com.google.protobuf.ByteString - getDynamicJobSpecUriBytes(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.OutputResultCase getOutputResultCase(); - - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.TargetMetadataCase getTargetMetadataCase(); - } - /** - *
-   * Container for node execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class NodeExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionClosure) - NodeExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionClosure.newBuilder() to construct. - private NodeExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionClosure() { - phase_ = 0; - deckUri_ = ""; - dynamicJobSpecUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionClosure( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updatedAt_ != null) { - subBuilder = updatedAt_.toBuilder(); - } - updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updatedAt_); - updatedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - break; - } - case 74: { - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 9) { - subBuilder = ((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 9; - break; - } - case 82: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 10) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 10; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - deckUri_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - dynamicJobSpecUri_ = s; - 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated OUTPUT_URI(1), - ERROR(2), - @java.lang.Deprecated OUTPUT_DATA(10), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 10: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TASK_NODE_METADATA(9), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 9: return TASK_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - *
-     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the Node
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 10; - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 10; - } - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this node execution.
-     * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this node execution.
-     * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int STARTED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the node execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 5; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the node execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the node execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the node execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - public static final int TASK_NODE_METADATA_FIELD_NUMBER = 9; - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public boolean hasTaskNodeMetadata() { - return targetMetadataCase_ == 9; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata() { - if (targetMetadataCase_ == 9) { - return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 9) { - return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - - public static final int DECK_URI_FIELD_NUMBER = 11; - private volatile java.lang.Object deckUri_; - /** - *
-     * String location uniquely identifying where the deck HTML file is.
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 11; - */ - public java.lang.String getDeckUri() { - java.lang.Object ref = deckUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deckUri_ = s; - return s; - } - } - /** - *
-     * String location uniquely identifying where the deck HTML file is.
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 11; - */ - public com.google.protobuf.ByteString - getDeckUriBytes() { - java.lang.Object ref = deckUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deckUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 12; - private volatile java.lang.Object dynamicJobSpecUri_; - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-     * to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 12; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } - } - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-     * to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 12; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (startedAt_ != null) { - output.writeMessage(4, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(5, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(6, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - if (targetMetadataCase_ == 9) { - output.writeMessage(9, (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); - } - if (outputResultCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (!getDeckUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, deckUri_); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, dynamicJobSpecUri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getUpdatedAt()); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_); - } - if (targetMetadataCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (!getDeckUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, deckUri_); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, dynamicJobSpecUri_); - } - 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.NodeExecutionOuterClass.NodeExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) return false; - } - if (hasUpdatedAt() != other.hasUpdatedAt()) return false; - if (hasUpdatedAt()) { - if (!getUpdatedAt() - .equals(other.getUpdatedAt())) return false; - } - if (!getDeckUri() - .equals(other.getDeckUri())) return false; - if (!getDynamicJobSpecUri() - .equals(other.getDynamicJobSpecUri())) return false; - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 10: - if (!getOutputData() - .equals(other.getOutputData())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) return false; - break; - case 9: - if (!getTaskNodeMetadata() - .equals(other.getTaskNodeMetadata())) 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(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - if (hasUpdatedAt()) { - hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getUpdatedAt().hashCode(); - } - hash = (37 * hash) + DECK_URI_FIELD_NUMBER; - hash = (53 * hash) + getDeckUri().hashCode(); - hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; - hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 10: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 9: - hash = (37 * hash) + TASK_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getTaskNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure 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.NodeExecutionOuterClass.NodeExecutionClosure 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; - } - /** - *
-     * Container for node execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionClosure) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.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(); - phase_ = 0; - - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - deckUri_ = ""; - - dynamicJobSpecUri_ = ""; - - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(this); - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 10) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - result.phase_ = phase_; - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - if (targetMetadataCase_ == 9) { - if (taskNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = taskNodeMetadataBuilder_.build(); - } - } - result.deckUri_ = deckUri_; - result.dynamicJobSpecUri_ = dynamicJobSpecUri_; - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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.NodeExecutionOuterClass.NodeExecutionClosure) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (!other.getDeckUri().isEmpty()) { - deckUri_ = other.deckUri_; - onChanged(); - } - if (!other.getDynamicJobSpecUri().isEmpty()) { - dynamicJobSpecUri_ = other.dynamicJobSpecUri_; - onChanged(); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TASK_NODE_METADATA: { - mergeTaskNodeMetadata(other.getTaskNodeMetadata()); - break; - } - case TARGETMETADATA_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.NodeExecutionOuterClass.NodeExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - /** - *
-       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Links to a remotely stored, serialized core.LiteralMap of node execution outputs.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the Node
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 10; - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 10) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 10) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 10 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 10) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 10) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 10) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this node execution.
-       * DEPRECATED. Use GetNodeExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 10 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 10)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 10; - onChanged();; - return outputDataBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this node execution.
-       * 
- * - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the node execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the node execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the node execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - - private com.google.protobuf.Timestamp updatedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updatedAt_ = value; - onChanged(); - } else { - updatedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (updatedAt_ != null) { - updatedAt_ = - com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); - } else { - updatedAt_ = value; - } - onChanged(); - } else { - updatedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the node execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdatedAtFieldBuilder() { - if (updatedAtBuilder_ == null) { - updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdatedAt(), - getParentForChildren(), - isClean()); - updatedAt_ = null; - } - return updatedAtBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder>( - (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder> taskNodeMetadataBuilder_; - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public boolean hasTaskNodeMetadata() { - return targetMetadataCase_ == 9; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getTaskNodeMetadata() { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 9) { - return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 9) { - return taskNodeMetadataBuilder_.getMessage(); - } - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public Builder setTaskNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata value) { - if (taskNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - taskNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 9; - return this; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public Builder setTaskNodeMetadata( - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder builderForValue) { - if (taskNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - taskNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 9; - return this; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public Builder mergeTaskNodeMetadata(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata value) { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 9 && - targetMetadata_ != flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.newBuilder((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 9) { - taskNodeMetadataBuilder_.mergeFrom(value); - } - taskNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 9; - return this; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public Builder clearTaskNodeMetadata() { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 9) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 9) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - taskNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder getTaskNodeMetadataBuilder() { - return getTaskNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 9) && (taskNodeMetadataBuilder_ != null)) { - return taskNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 9) { - return (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.TaskNodeMetadata task_node_metadata = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder> - getTaskNodeMetadataFieldBuilder() { - if (taskNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 9)) { - targetMetadata_ = flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - taskNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder>( - (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 9; - onChanged();; - return taskNodeMetadataBuilder_; - } - - private java.lang.Object deckUri_ = ""; - /** - *
-       * String location uniquely identifying where the deck HTML file is.
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 11; - */ - public java.lang.String getDeckUri() { - java.lang.Object ref = deckUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deckUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String location uniquely identifying where the deck HTML file is.
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 11; - */ - public com.google.protobuf.ByteString - getDeckUriBytes() { - java.lang.Object ref = deckUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deckUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String location uniquely identifying where the deck HTML file is.
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 11; - */ - public Builder setDeckUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deckUri_ = value; - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the deck HTML file is.
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 11; - */ - public Builder clearDeckUri() { - - deckUri_ = getDefaultInstance().getDeckUri(); - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the deck HTML file is.
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 11; - */ - public Builder setDeckUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deckUri_ = value; - onChanged(); - return this; - } - - private java.lang.Object dynamicJobSpecUri_ = ""; - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-       * to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 12; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-       * to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 12; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-       * to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 12; - */ - public Builder setDynamicJobSpecUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-       * to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 12; - */ - public Builder clearDynamicJobSpecUri() { - - dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required
-       * to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 12; - */ - public Builder setDynamicJobSpecUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - @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.NodeExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionClosure) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionClosure(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.NodeExecutionOuterClass.NodeExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - boolean hasExecutionId(); - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Metadata for a WorkflowNode
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTIONID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * The identifier for a workflow execution launched by a node.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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.NodeExecutionOuterClass.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTIONID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata 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.NodeExecutionOuterClass.WorkflowNodeMetadata 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; - } - /** - *
-     * Metadata for a WorkflowNode
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowNodeMetadata) - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata build() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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.NodeExecutionOuterClass.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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.NodeExecutionOuterClass.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * The identifier for a workflow execution launched by a node.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier executionId = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowNodeMetadata) - private static final flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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.NodeExecutionOuterClass.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - int getCacheStatusValue(); - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); - - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - boolean hasCatalogKey(); - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - flyteidl.core.Catalog.CatalogMetadata getCatalogKey(); - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder(); - - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - java.lang.String getCheckpointUri(); - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - com.google.protobuf.ByteString - getCheckpointUriBytes(); - } - /** - *
-   * Metadata for the case in which the node is a TaskNode
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskNodeMetadata} - */ - public static final class TaskNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskNodeMetadata) - TaskNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNodeMetadata.newBuilder() to construct. - private TaskNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNodeMetadata() { - cacheStatus_ = 0; - checkpointUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNodeMetadata( - 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 8: { - int rawValue = input.readEnum(); - - cacheStatus_ = rawValue; - break; - } - case 18: { - flyteidl.core.Catalog.CatalogMetadata.Builder subBuilder = null; - if (catalogKey_ != null) { - subBuilder = catalogKey_.toBuilder(); - } - catalogKey_ = input.readMessage(flyteidl.core.Catalog.CatalogMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogKey_); - catalogKey_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - checkpointUri_ = s; - 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder.class); - } - - public static final int CACHE_STATUS_FIELD_NUMBER = 1; - private int cacheStatus_; - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - - public static final int CATALOG_KEY_FIELD_NUMBER = 2; - private flyteidl.core.Catalog.CatalogMetadata catalogKey_; - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public boolean hasCatalogKey() { - return catalogKey_ != null; - } - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { - return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { - return getCatalogKey(); - } - - public static final int CHECKPOINT_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object checkpointUri_; - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - public java.lang.String getCheckpointUri() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checkpointUri_ = s; - return s; - } - } - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - public com.google.protobuf.ByteString - getCheckpointUriBytes() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkpointUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - output.writeEnum(1, cacheStatus_); - } - if (catalogKey_ != null) { - output.writeMessage(2, getCatalogKey()); - } - if (!getCheckpointUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkpointUri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, cacheStatus_); - } - if (catalogKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCatalogKey()); - } - if (!getCheckpointUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkpointUri_); - } - 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.NodeExecutionOuterClass.TaskNodeMetadata)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) obj; - - if (cacheStatus_ != other.cacheStatus_) return false; - if (hasCatalogKey() != other.hasCatalogKey()) return false; - if (hasCatalogKey()) { - if (!getCatalogKey() - .equals(other.getCatalogKey())) return false; - } - if (!getCheckpointUri() - .equals(other.getCheckpointUri())) 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(); - hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + cacheStatus_; - if (hasCatalogKey()) { - hash = (37 * hash) + CATALOG_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCatalogKey().hashCode(); - } - hash = (37 * hash) + CHECKPOINT_URI_FIELD_NUMBER; - hash = (53 * hash) + getCheckpointUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata 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.NodeExecutionOuterClass.TaskNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata 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.NodeExecutionOuterClass.TaskNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata 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.NodeExecutionOuterClass.TaskNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata 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.NodeExecutionOuterClass.TaskNodeMetadata 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; - } - /** - *
-     * Metadata for the case in which the node is a TaskNode
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskNodeMetadata) - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.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(); - cacheStatus_ = 0; - - if (catalogKeyBuilder_ == null) { - catalogKey_ = null; - } else { - catalogKey_ = null; - catalogKeyBuilder_ = null; - } - checkpointUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata build() { - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata(this); - result.cacheStatus_ = cacheStatus_; - if (catalogKeyBuilder_ == null) { - result.catalogKey_ = catalogKey_; - } else { - result.catalogKey_ = catalogKeyBuilder_.build(); - } - result.checkpointUri_ = checkpointUri_; - 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.NodeExecutionOuterClass.TaskNodeMetadata) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata.getDefaultInstance()) return this; - if (other.cacheStatus_ != 0) { - setCacheStatusValue(other.getCacheStatusValue()); - } - if (other.hasCatalogKey()) { - mergeCatalogKey(other.getCatalogKey()); - } - if (!other.getCheckpointUri().isEmpty()) { - checkpointUri_ = other.checkpointUri_; - onChanged(); - } - 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.NodeExecutionOuterClass.TaskNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int cacheStatus_ = 0; - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder setCacheStatusValue(int value) { - cacheStatus_ = value; - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder clearCacheStatus() { - - cacheStatus_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Catalog.CatalogMetadata catalogKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> catalogKeyBuilder_; - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public boolean hasCatalogKey() { - return catalogKeyBuilder_ != null || catalogKey_ != null; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { - if (catalogKeyBuilder_ == null) { - return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } else { - return catalogKeyBuilder_.getMessage(); - } - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder setCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { - if (catalogKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - catalogKey_ = value; - onChanged(); - } else { - catalogKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder setCatalogKey( - flyteidl.core.Catalog.CatalogMetadata.Builder builderForValue) { - if (catalogKeyBuilder_ == null) { - catalogKey_ = builderForValue.build(); - onChanged(); - } else { - catalogKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder mergeCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { - if (catalogKeyBuilder_ == null) { - if (catalogKey_ != null) { - catalogKey_ = - flyteidl.core.Catalog.CatalogMetadata.newBuilder(catalogKey_).mergeFrom(value).buildPartial(); - } else { - catalogKey_ = value; - } - onChanged(); - } else { - catalogKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder clearCatalogKey() { - if (catalogKeyBuilder_ == null) { - catalogKey_ = null; - onChanged(); - } else { - catalogKey_ = null; - catalogKeyBuilder_ = null; - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata.Builder getCatalogKeyBuilder() { - - onChanged(); - return getCatalogKeyFieldBuilder().getBuilder(); - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { - if (catalogKeyBuilder_ != null) { - return catalogKeyBuilder_.getMessageOrBuilder(); - } else { - return catalogKey_ == null ? - flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> - getCatalogKeyFieldBuilder() { - if (catalogKeyBuilder_ == null) { - catalogKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder>( - getCatalogKey(), - getParentForChildren(), - isClean()); - catalogKey_ = null; - } - return catalogKeyBuilder_; - } - - private java.lang.Object checkpointUri_ = ""; - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public java.lang.String getCheckpointUri() { - java.lang.Object ref = checkpointUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checkpointUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public com.google.protobuf.ByteString - getCheckpointUriBytes() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkpointUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder setCheckpointUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - checkpointUri_ = value; - onChanged(); - return this; - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder clearCheckpointUri() { - - checkpointUri_ = getDefaultInstance().getCheckpointUri(); - onChanged(); - return this; - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder setCheckpointUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - checkpointUri_ = value; - onChanged(); - return this; - } - @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.TaskNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskNodeMetadata) - private static final flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNodeMetadata(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.NodeExecutionOuterClass.TaskNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DynamicWorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.DynamicWorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - boolean hasCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); - - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - java.lang.String getDynamicJobSpecUri(); - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - com.google.protobuf.ByteString - getDynamicJobSpecUriBytes(); - } - /** - *
-   * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated.
-   * 
- * - * Protobuf type {@code flyteidl.admin.DynamicWorkflowNodeMetadata} - */ - public static final class DynamicWorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.DynamicWorkflowNodeMetadata) - DynamicWorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use DynamicWorkflowNodeMetadata.newBuilder() to construct. - private DynamicWorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DynamicWorkflowNodeMetadata() { - dynamicJobSpecUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DynamicWorkflowNodeMetadata( - 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; - } - case 18: { - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; - if (compiledWorkflow_ != null) { - subBuilder = compiledWorkflow_.toBuilder(); - } - compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledWorkflow_); - compiledWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - dynamicJobSpecUri_ = s; - 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 2; - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflow_ != null; - } - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - return getCompiledWorkflow(); - } - - public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object dynamicJobSpecUri_; - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } - } - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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()); - } - if (compiledWorkflow_ != null) { - output.writeMessage(2, getCompiledWorkflow()); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dynamicJobSpecUri_); - } - 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()); - } - if (compiledWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCompiledWorkflow()); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dynamicJobSpecUri_); - } - 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata other = (flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; - if (hasCompiledWorkflow()) { - if (!getCompiledWorkflow() - .equals(other.getCompiledWorkflow())) return false; - } - if (!getDynamicJobSpecUri() - .equals(other.getDynamicJobSpecUri())) 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(); - } - if (hasCompiledWorkflow()) { - hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getCompiledWorkflow().hashCode(); - } - hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; - hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata 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; - } - /** - *
-     * For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated.
-     * 
- * - * Protobuf type {@code flyteidl.admin.DynamicWorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.DynamicWorkflowNodeMetadata) - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.class, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.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; - } - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - dynamicJobSpecUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata build() { - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata result = new flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (compiledWorkflowBuilder_ == null) { - result.compiledWorkflow_ = compiledWorkflow_; - } else { - result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); - } - result.dynamicJobSpecUri_ = dynamicJobSpecUri_; - 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasCompiledWorkflow()) { - mergeCompiledWorkflow(other.getCompiledWorkflow()); - } - if (!other.getDynamicJobSpecUri().isEmpty()) { - dynamicJobSpecUri_ = other.dynamicJobSpecUri_; - onChanged(); - } - 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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata) 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_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } else { - return compiledWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledWorkflow_ = value; - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder setCompiledWorkflow( - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = builderForValue.build(); - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (compiledWorkflow_ != null) { - compiledWorkflow_ = - flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); - } else { - compiledWorkflow_ = value; - } - onChanged(); - } else { - compiledWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder clearCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - onChanged(); - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { - - onChanged(); - return getCompiledWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - if (compiledWorkflowBuilder_ != null) { - return compiledWorkflowBuilder_.getMessageOrBuilder(); - } else { - return compiledWorkflow_ == null ? - flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> - getCompiledWorkflowFieldBuilder() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( - getCompiledWorkflow(), - getParentForChildren(), - isClean()); - compiledWorkflow_ = null; - } - return compiledWorkflowBuilder_; - } - - private java.lang.Object dynamicJobSpecUri_ = ""; - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder setDynamicJobSpecUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder clearDynamicJobSpecUri() { - - dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the subworkflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder setDynamicJobSpecUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - @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.DynamicWorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.DynamicWorkflowNodeMetadata) - private static final flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynamicWorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DynamicWorkflowNodeMetadata(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.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output for a node execution.
-   * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest`
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class NodeExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataRequest) - NodeExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataRequest.newBuilder() to construct. - private NodeExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataRequest( - 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.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the node execution for which to fetch inputs and outputs.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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.NodeExecutionOuterClass.NodeExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output for a node execution.
-     * By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest`
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataRequest) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(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.NodeExecutionOuterClass.NodeExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest.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.NodeExecutionOuterClass.NodeExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the node execution for which to fetch inputs and outputs.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - 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.NodeExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataRequest) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataRequest(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.NodeExecutionOuterClass.NodeExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.NodeExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - boolean hasFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMap getFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); - - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - boolean hasFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); - - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - boolean hasDynamicWorkflow(); - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow(); - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder(); - - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - boolean hasFlyteUrls(); - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - flyteidl.admin.Common.FlyteURLs getFlyteUrls(); - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder(); - } - /** - *
-   * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class NodeExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.NodeExecutionGetDataResponse) - NodeExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionGetDataResponse.newBuilder() to construct. - private NodeExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionGetDataResponse( - 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.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullInputs_ != null) { - subBuilder = fullInputs_.toBuilder(); - } - fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullInputs_); - fullInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullOutputs_ != null) { - subBuilder = fullOutputs_.toBuilder(); - } - fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullOutputs_); - fullOutputs_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder subBuilder = null; - if (dynamicWorkflow_ != null) { - subBuilder = dynamicWorkflow_.toBuilder(); - } - dynamicWorkflow_ = input.readMessage(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dynamicWorkflow_); - dynamicWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.admin.Common.FlyteURLs.Builder subBuilder = null; - if (flyteUrls_ != null) { - subBuilder = flyteUrls_.toBuilder(); - } - flyteUrls_ = input.readMessage(flyteidl.admin.Common.FlyteURLs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(flyteUrls_); - flyteUrls_ = 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.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of node execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int FULL_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap fullInputs_; - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputs_ != null; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - return getFullInputs(); - } - - public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fullOutputs_; - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputs_ != null; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold. 
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - return getFullOutputs(); - } - - public static final int DYNAMIC_WORKFLOW_FIELD_NUMBER = 16; - private flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata dynamicWorkflow_; - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public boolean hasDynamicWorkflow() { - return dynamicWorkflow_ != null; - } - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow() { - return dynamicWorkflow_ == null ? flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } - /** - *
-     * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-     * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { - return getDynamicWorkflow(); - } - - public static final int FLYTE_URLS_FIELD_NUMBER = 17; - private flyteidl.admin.Common.FlyteURLs flyteUrls_; - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public boolean hasFlyteUrls() { - return flyteUrls_ != null; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { - return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { - return getFlyteUrls(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - if (fullInputs_ != null) { - output.writeMessage(3, getFullInputs()); - } - if (fullOutputs_ != null) { - output.writeMessage(4, getFullOutputs()); - } - if (dynamicWorkflow_ != null) { - output.writeMessage(16, getDynamicWorkflow()); - } - if (flyteUrls_ != null) { - output.writeMessage(17, getFlyteUrls()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - if (fullInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFullInputs()); - } - if (fullOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFullOutputs()); - } - if (dynamicWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getDynamicWorkflow()); - } - if (flyteUrls_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, getFlyteUrls()); - } - 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (hasFullInputs() != other.hasFullInputs()) return false; - if (hasFullInputs()) { - if (!getFullInputs() - .equals(other.getFullInputs())) return false; - } - if (hasFullOutputs() != other.hasFullOutputs()) return false; - if (hasFullOutputs()) { - if (!getFullOutputs() - .equals(other.getFullOutputs())) return false; - } - if (hasDynamicWorkflow() != other.hasDynamicWorkflow()) return false; - if (hasDynamicWorkflow()) { - if (!getDynamicWorkflow() - .equals(other.getDynamicWorkflow())) return false; - } - if (hasFlyteUrls() != other.hasFlyteUrls()) return false; - if (hasFlyteUrls()) { - if (!getFlyteUrls() - .equals(other.getFlyteUrls())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - if (hasFullInputs()) { - hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullInputs().hashCode(); - } - if (hasFullOutputs()) { - hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullOutputs().hashCode(); - } - if (hasDynamicWorkflow()) { - hash = (37 * hash) + DYNAMIC_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getDynamicWorkflow().hashCode(); - } - if (hasFlyteUrls()) { - hash = (37 * hash) + FLYTE_URLS_FIELD_NUMBER; - hash = (53 * hash) + getFlyteUrls().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.NodeExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.NodeExecutionGetDataResponse) - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.class, flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = null; - } else { - dynamicWorkflow_ = null; - dynamicWorkflowBuilder_ = null; - } - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = null; - } else { - flyteUrls_ = null; - flyteUrlsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.NodeExecutionOuterClass.internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse build() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse buildPartial() { - flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse result = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (fullInputsBuilder_ == null) { - result.fullInputs_ = fullInputs_; - } else { - result.fullInputs_ = fullInputsBuilder_.build(); - } - if (fullOutputsBuilder_ == null) { - result.fullOutputs_ = fullOutputs_; - } else { - result.fullOutputs_ = fullOutputsBuilder_.build(); - } - if (dynamicWorkflowBuilder_ == null) { - result.dynamicWorkflow_ = dynamicWorkflow_; - } else { - result.dynamicWorkflow_ = dynamicWorkflowBuilder_.build(); - } - if (flyteUrlsBuilder_ == null) { - result.flyteUrls_ = flyteUrls_; - } else { - result.flyteUrls_ = flyteUrlsBuilder_.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.NodeExecutionOuterClass.NodeExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse other) { - if (other == flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (other.hasFullInputs()) { - mergeFullInputs(other.getFullInputs()); - } - if (other.hasFullOutputs()) { - mergeFullOutputs(other.getFullOutputs()); - } - if (other.hasDynamicWorkflow()) { - mergeDynamicWorkflow(other.getDynamicWorkflow()); - } - if (other.hasFlyteUrls()) { - mergeFlyteUrls(other.getFlyteUrls()); - } - 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.NodeExecutionOuterClass.NodeExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of node execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputsBuilder_ != null || fullInputs_ != null; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - if (fullInputsBuilder_ == null) { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } else { - return fullInputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullInputs_ = value; - onChanged(); - } else { - fullInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullInputsBuilder_ == null) { - fullInputs_ = builderForValue.build(); - onChanged(); - } else { - fullInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (fullInputs_ != null) { - fullInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); - } else { - fullInputs_ = value; - } - onChanged(); - } else { - fullInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder clearFullInputs() { - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - onChanged(); - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { - - onChanged(); - return getFullInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - if (fullInputsBuilder_ != null) { - return fullInputsBuilder_.getMessageOrBuilder(); - } else { - return fullInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullInputsFieldBuilder() { - if (fullInputsBuilder_ == null) { - fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullInputs(), - getParentForChildren(), - isClean()); - fullInputs_ = null; - } - return fullInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputsBuilder_ != null || fullOutputs_ != null; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - if (fullOutputsBuilder_ == null) { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } else { - return fullOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullOutputs_ = value; - onChanged(); - } else { - fullOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = builderForValue.build(); - onChanged(); - } else { - fullOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (fullOutputs_ != null) { - fullOutputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); - } else { - fullOutputs_ = value; - } - onChanged(); - } else { - fullOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder clearFullOutputs() { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - onChanged(); - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { - - onChanged(); - return getFullOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - if (fullOutputsBuilder_ != null) { - return fullOutputsBuilder_.getMessageOrBuilder(); - } else { - return fullOutputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold. 
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullOutputsFieldBuilder() { - if (fullOutputsBuilder_ == null) { - fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullOutputs(), - getParentForChildren(), - isClean()); - fullOutputs_ = null; - } - return fullOutputsBuilder_; - } - - private flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata dynamicWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder> dynamicWorkflowBuilder_; - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public boolean hasDynamicWorkflow() { - return dynamicWorkflowBuilder_ != null || dynamicWorkflow_ != null; - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata getDynamicWorkflow() { - if (dynamicWorkflowBuilder_ == null) { - return dynamicWorkflow_ == null ? flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } else { - return dynamicWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder setDynamicWorkflow(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata value) { - if (dynamicWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dynamicWorkflow_ = value; - onChanged(); - } else { - dynamicWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder setDynamicWorkflow( - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder builderForValue) { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = builderForValue.build(); - onChanged(); - } else { - dynamicWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder mergeDynamicWorkflow(flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata value) { - if (dynamicWorkflowBuilder_ == null) { - if (dynamicWorkflow_ != null) { - dynamicWorkflow_ = - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.newBuilder(dynamicWorkflow_).mergeFrom(value).buildPartial(); - } else { - dynamicWorkflow_ = value; - } - onChanged(); - } else { - dynamicWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder clearDynamicWorkflow() { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = null; - onChanged(); - } else { - dynamicWorkflow_ = null; - dynamicWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder getDynamicWorkflowBuilder() { - - onChanged(); - return getDynamicWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { - if (dynamicWorkflowBuilder_ != null) { - return dynamicWorkflowBuilder_.getMessageOrBuilder(); - } else { - return dynamicWorkflow_ == null ? - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } - } - /** - *
-       * Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here.
-       * 
- * - * .flyteidl.admin.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder> - getDynamicWorkflowFieldBuilder() { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadata.Builder, flyteidl.admin.NodeExecutionOuterClass.DynamicWorkflowNodeMetadataOrBuilder>( - getDynamicWorkflow(), - getParentForChildren(), - isClean()); - dynamicWorkflow_ = null; - } - return dynamicWorkflowBuilder_; - } - - private flyteidl.admin.Common.FlyteURLs flyteUrls_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> flyteUrlsBuilder_; - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public boolean hasFlyteUrls() { - return flyteUrlsBuilder_ != null || flyteUrls_ != null; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { - if (flyteUrlsBuilder_ == null) { - return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } else { - return flyteUrlsBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public Builder setFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { - if (flyteUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flyteUrls_ = value; - onChanged(); - } else { - flyteUrlsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public Builder setFlyteUrls( - flyteidl.admin.Common.FlyteURLs.Builder builderForValue) { - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = builderForValue.build(); - onChanged(); - } else { - flyteUrlsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public Builder mergeFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { - if (flyteUrlsBuilder_ == null) { - if (flyteUrls_ != null) { - flyteUrls_ = - flyteidl.admin.Common.FlyteURLs.newBuilder(flyteUrls_).mergeFrom(value).buildPartial(); - } else { - flyteUrls_ = value; - } - onChanged(); - } else { - flyteUrlsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public Builder clearFlyteUrls() { - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = null; - onChanged(); - } else { - flyteUrls_ = null; - flyteUrlsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public flyteidl.admin.Common.FlyteURLs.Builder getFlyteUrlsBuilder() { - - onChanged(); - return getFlyteUrlsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { - if (flyteUrlsBuilder_ != null) { - return flyteUrlsBuilder_.getMessageOrBuilder(); - } else { - return flyteUrls_ == null ? - flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } - } - /** - * .flyteidl.admin.FlyteURLs flyte_urls = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> - getFlyteUrlsFieldBuilder() { - if (flyteUrlsBuilder_ == null) { - flyteUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder>( - getFlyteUrls(), - getParentForChildren(), - isClean()); - flyteUrls_ = null; - } - return flyteUrlsBuilder_; - } - @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.NodeExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.NodeExecutionGetDataResponse) - private static final flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse(); - } - - public static flyteidl.admin.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionGetDataResponse(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.NodeExecutionOuterClass.NodeExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#flyteidl/admin/node_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\033flyte" + - "idl/core/catalog.proto\032\034flyteidl/core/co" + - "mpiler.proto\032\036flyteidl/core/identifier.p" + - "roto\032\034flyteidl/core/literals.proto\032\037goog" + - "le/protobuf/timestamp.proto\032\036google/prot" + - "obuf/duration.proto\"M\n\027NodeExecutionGetR" + - "equest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeE" + - "xecutionIdentifier\"\325\001\n\030NodeExecutionList" + - "Request\022I\n\025workflow_execution_id\030\001 \001(\0132*" + - ".flyteidl.core.WorkflowExecutionIdentifi" + - "er\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filt" + - "ers\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.ad" + - "min.Sort\022\030\n\020unique_parent_id\030\006 \001(\t\"\272\001\n\037N" + - "odeExecutionForTaskListRequest\022A\n\021task_e" + - "xecution_id\030\001 \001(\0132&.flyteidl.core.TaskEx" + - "ecutionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005toke" + - "n\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(" + - "\0132\024.flyteidl.admin.Sort\"\306\001\n\rNodeExecutio" + - "n\0222\n\002id\030\001 \001(\0132&.flyteidl.core.NodeExecut" + - "ionIdentifier\022\021\n\tinput_uri\030\002 \001(\t\0225\n\007clos" + - "ure\030\003 \001(\0132$.flyteidl.admin.NodeExecution" + - "Closure\0227\n\010metadata\030\004 \001(\0132%.flyteidl.adm" + - "in.NodeExecutionMetaData\"\200\001\n\025NodeExecuti" + - "onMetaData\022\023\n\013retry_group\030\001 \001(\t\022\026\n\016is_pa" + - "rent_node\030\002 \001(\010\022\024\n\014spec_node_id\030\003 \001(\t\022\022\n" + - "\nis_dynamic\030\004 \001(\010\022\020\n\010is_array\030\005 \001(\010\"Z\n\021N" + - "odeExecutionList\0226\n\017node_executions\030\001 \003(" + - "\0132\035.flyteidl.admin.NodeExecution\022\r\n\005toke" + - "n\030\002 \001(\t\"\342\004\n\024NodeExecutionClosure\022\030\n\noutp" + - "ut_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\0132\035.flyt" + - "eidl.core.ExecutionErrorH\000\0224\n\013output_dat" + - "a\030\n \001(\0132\031.flyteidl.core.LiteralMapB\002\030\001H\000" + - "\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.NodeExec" + - "ution.Phase\022.\n\nstarted_at\030\004 \001(\0132\032.google" + - ".protobuf.Timestamp\022+\n\010duration\030\005 \001(\0132\031." + - "google.protobuf.Duration\022.\n\ncreated_at\030\006" + - " \001(\0132\032.google.protobuf.Timestamp\022.\n\nupda" + - "ted_at\030\007 \001(\0132\032.google.protobuf.Timestamp" + - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + - "idl.admin.WorkflowNodeMetadataH\001\022>\n\022task" + - "_node_metadata\030\t \001(\0132 .flyteidl.admin.Ta" + - "skNodeMetadataH\001\022\020\n\010deck_uri\030\013 \001(\t\022\034\n\024dy" + - "namic_job_spec_uri\030\014 \001(\tB\017\n\routput_resul" + - "tB\021\n\017target_metadata\"W\n\024WorkflowNodeMeta" + - "data\022?\n\013executionId\030\001 \001(\0132*.flyteidl.cor" + - "e.WorkflowExecutionIdentifier\"\230\001\n\020TaskNo" + - "deMetadata\0227\n\014cache_status\030\001 \001(\0162!.flyte" + - "idl.core.CatalogCacheStatus\0223\n\013catalog_k" + - "ey\030\002 \001(\0132\036.flyteidl.core.CatalogMetadata" + - "\022\026\n\016checkpoint_uri\030\004 \001(\t\"\245\001\n\033DynamicWork" + - "flowNodeMetadata\022%\n\002id\030\001 \001(\0132\031.flyteidl." + - "core.Identifier\022A\n\021compiled_workflow\030\002 \001" + - "(\0132&.flyteidl.core.CompiledWorkflowClosu" + - "re\022\034\n\024dynamic_job_spec_uri\030\003 \001(\t\"Q\n\033Node" + - "ExecutionGetDataRequest\0222\n\002id\030\001 \001(\0132&.fl" + - "yteidl.core.NodeExecutionIdentifier\"\320\002\n\034" + - "NodeExecutionGetDataResponse\022+\n\006inputs\030\001" + - " \001(\0132\027.flyteidl.admin.UrlBlobB\002\030\001\022,\n\007out" + - "puts\030\002 \001(\0132\027.flyteidl.admin.UrlBlobB\002\030\001\022" + - ".\n\013full_inputs\030\003 \001(\0132\031.flyteidl.core.Lit" + - "eralMap\022/\n\014full_outputs\030\004 \001(\0132\031.flyteidl" + - ".core.LiteralMap\022E\n\020dynamic_workflow\030\020 \001" + - "(\0132+.flyteidl.admin.DynamicWorkflowNodeM" + - "etadata\022-\n\nflyte_urls\030\021 \001(\0132\031.flyteidl.a" + - "dmin.FlyteURLsB=Z;github.com/flyteorg/fl" + - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.Catalog.getDescriptor(), - flyteidl.core.Compiler.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_NodeExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_NodeExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionListRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", "UniqueParentId", }); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionForTaskListRequest_descriptor, - new java.lang.String[] { "TaskExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_NodeExecution_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_NodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "Metadata", }); - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_NodeExecutionMetaData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionMetaData_descriptor, - new java.lang.String[] { "RetryGroup", "IsParentNode", "SpecNodeId", "IsDynamic", "IsArray", }); - internal_static_flyteidl_admin_NodeExecutionList_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_NodeExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionList_descriptor, - new java.lang.String[] { "NodeExecutions", "Token", }); - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_NodeExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "OutputData", "Phase", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "WorkflowNodeMetadata", "TaskNodeMetadata", "DeckUri", "DynamicJobSpecUri", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_admin_TaskNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_admin_TaskNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskNodeMetadata_descriptor, - new java.lang.String[] { "CacheStatus", "CatalogKey", "CheckpointUri", }); - internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_DynamicWorkflowNodeMetadata_descriptor, - new java.lang.String[] { "Id", "CompiledWorkflow", "DynamicJobSpecUri", }); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_NodeExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", "FullInputs", "FullOutputs", "DynamicWorkflow", "FlyteUrls", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.Catalog.getDescriptor(); - flyteidl.core.Compiler.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/Notification.java b/flyteidl/gen/pb-java/flyteidl/admin/Notification.java deleted file mode 100644 index 4d5a1f2b35..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/Notification.java +++ /dev/null @@ -1,1325 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/notification.proto - -package flyteidl.admin; - -public final class Notification { - private Notification() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface EmailMessageOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.EmailMessage) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.util.List - getRecipientsEmailList(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - int getRecipientsEmailCount(); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - java.lang.String getRecipientsEmail(int index); - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - com.google.protobuf.ByteString - getRecipientsEmailBytes(int index); - - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - java.lang.String getSenderEmail(); - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - com.google.protobuf.ByteString - getSenderEmailBytes(); - - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - java.lang.String getSubjectLine(); - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - com.google.protobuf.ByteString - getSubjectLineBytes(); - - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - java.lang.String getBody(); - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - com.google.protobuf.ByteString - getBodyBytes(); - } - /** - *
-   * Represents the Email object that is sent to a publisher/subscriber
-   * to forward the notification.
-   * Note: This is internal to Admin and doesn't need to be exposed to other components.
-   * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class EmailMessage extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.EmailMessage) - EmailMessageOrBuilder { - private static final long serialVersionUID = 0L; - // Use EmailMessage.newBuilder() to construct. - private EmailMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EmailMessage() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - senderEmail_ = ""; - subjectLine_ = ""; - body_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EmailMessage( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - recipientsEmail_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - senderEmail_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - subjectLine_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - body_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - private int bitField0_; - public static final int RECIPIENTS_EMAIL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList recipientsEmail_; - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_; - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-     * The list of email addresses to receive an email with the content populated in the other fields.
-     * Currently, each email recipient will receive its own email.
-     * This populates the TO field.
-     * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - - public static final int SENDER_EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object senderEmail_; - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - senderEmail_ = s; - return s; - } - } - /** - *
-     * The email of the sender.
-     * This populates the FROM field.
-     * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBJECT_LINE_FIELD_NUMBER = 3; - private volatile java.lang.Object subjectLine_; - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectLine_ = s; - return s; - } - } - /** - *
-     * The content of the subject line.
-     * This populates the SUBJECT field.
-     * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BODY_FIELD_NUMBER = 4; - private volatile java.lang.Object body_; - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } - } - /** - *
-     * The content of the email body.
-     * This populates the BODY field.
-     * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < recipientsEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, recipientsEmail_.getRaw(i)); - } - if (!getSenderEmailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, body_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < recipientsEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(recipientsEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getRecipientsEmailList().size(); - } - if (!getSenderEmailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, senderEmail_); - } - if (!getSubjectLineBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, subjectLine_); - } - if (!getBodyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, body_); - } - 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.Notification.EmailMessage)) { - return super.equals(obj); - } - flyteidl.admin.Notification.EmailMessage other = (flyteidl.admin.Notification.EmailMessage) obj; - - if (!getRecipientsEmailList() - .equals(other.getRecipientsEmailList())) return false; - if (!getSenderEmail() - .equals(other.getSenderEmail())) return false; - if (!getSubjectLine() - .equals(other.getSubjectLine())) return false; - if (!getBody() - .equals(other.getBody())) 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 (getRecipientsEmailCount() > 0) { - hash = (37 * hash) + RECIPIENTS_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRecipientsEmailList().hashCode(); - } - hash = (37 * hash) + SENDER_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getSenderEmail().hashCode(); - hash = (37 * hash) + SUBJECT_LINE_FIELD_NUMBER; - hash = (53 * hash) + getSubjectLine().hashCode(); - hash = (37 * hash) + BODY_FIELD_NUMBER; - hash = (53 * hash) + getBody().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.Notification.EmailMessage parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.Notification.EmailMessage 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.Notification.EmailMessage 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; - } - /** - *
-     * Represents the Email object that is sent to a publisher/subscriber
-     * to forward the notification.
-     * Note: This is internal to Admin and doesn't need to be exposed to other components.
-     * 
- * - * Protobuf type {@code flyteidl.admin.EmailMessage} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.EmailMessage) - flyteidl.admin.Notification.EmailMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.Notification.EmailMessage.class, flyteidl.admin.Notification.EmailMessage.Builder.class); - } - - // Construct using flyteidl.admin.Notification.EmailMessage.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(); - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - senderEmail_ = ""; - - subjectLine_ = ""; - - body_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.Notification.internal_static_flyteidl_admin_EmailMessage_descriptor; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage getDefaultInstanceForType() { - return flyteidl.admin.Notification.EmailMessage.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage build() { - flyteidl.admin.Notification.EmailMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.Notification.EmailMessage buildPartial() { - flyteidl.admin.Notification.EmailMessage result = new flyteidl.admin.Notification.EmailMessage(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = recipientsEmail_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.recipientsEmail_ = recipientsEmail_; - result.senderEmail_ = senderEmail_; - result.subjectLine_ = subjectLine_; - result.body_ = body_; - result.bitField0_ = to_bitField0_; - 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.Notification.EmailMessage) { - return mergeFrom((flyteidl.admin.Notification.EmailMessage)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.Notification.EmailMessage other) { - if (other == flyteidl.admin.Notification.EmailMessage.getDefaultInstance()) return this; - if (!other.recipientsEmail_.isEmpty()) { - if (recipientsEmail_.isEmpty()) { - recipientsEmail_ = other.recipientsEmail_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRecipientsEmailIsMutable(); - recipientsEmail_.addAll(other.recipientsEmail_); - } - onChanged(); - } - if (!other.getSenderEmail().isEmpty()) { - senderEmail_ = other.senderEmail_; - onChanged(); - } - if (!other.getSubjectLine().isEmpty()) { - subjectLine_ = other.subjectLine_; - onChanged(); - } - if (!other.getBody().isEmpty()) { - body_ = other.body_; - onChanged(); - } - 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.Notification.EmailMessage parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.Notification.EmailMessage) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRecipientsEmailIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - recipientsEmail_ = new com.google.protobuf.LazyStringArrayList(recipientsEmail_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ProtocolStringList - getRecipientsEmailList() { - return recipientsEmail_.getUnmodifiableView(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public int getRecipientsEmailCount() { - return recipientsEmail_.size(); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public java.lang.String getRecipientsEmail(int index) { - return recipientsEmail_.get(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public com.google.protobuf.ByteString - getRecipientsEmailBytes(int index) { - return recipientsEmail_.getByteString(index); - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder setRecipientsEmail( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addAllRecipientsEmail( - java.lang.Iterable values) { - ensureRecipientsEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, recipientsEmail_); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder clearRecipientsEmail() { - recipientsEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * The list of email addresses to receive an email with the content populated in the other fields.
-       * Currently, each email recipient will receive its own email.
-       * This populates the TO field.
-       * 
- * - * repeated string recipients_email = 1; - */ - public Builder addRecipientsEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRecipientsEmailIsMutable(); - recipientsEmail_.add(value); - onChanged(); - return this; - } - - private java.lang.Object senderEmail_ = ""; - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public java.lang.String getSenderEmail() { - java.lang.Object ref = senderEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - senderEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public com.google.protobuf.ByteString - getSenderEmailBytes() { - java.lang.Object ref = senderEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - senderEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - senderEmail_ = value; - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder clearSenderEmail() { - - senderEmail_ = getDefaultInstance().getSenderEmail(); - onChanged(); - return this; - } - /** - *
-       * The email of the sender.
-       * This populates the FROM field.
-       * 
- * - * string sender_email = 2; - */ - public Builder setSenderEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - senderEmail_ = value; - onChanged(); - return this; - } - - private java.lang.Object subjectLine_ = ""; - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public java.lang.String getSubjectLine() { - java.lang.Object ref = subjectLine_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subjectLine_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public com.google.protobuf.ByteString - getSubjectLineBytes() { - java.lang.Object ref = subjectLine_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subjectLine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLine( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subjectLine_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder clearSubjectLine() { - - subjectLine_ = getDefaultInstance().getSubjectLine(); - onChanged(); - return this; - } - /** - *
-       * The content of the subject line.
-       * This populates the SUBJECT field.
-       * 
- * - * string subject_line = 3; - */ - public Builder setSubjectLineBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subjectLine_ = value; - onChanged(); - return this; - } - - private java.lang.Object body_ = ""; - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public java.lang.String getBody() { - java.lang.Object ref = body_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - body_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public com.google.protobuf.ByteString - getBodyBytes() { - java.lang.Object ref = body_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - body_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBody( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - body_ = value; - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder clearBody() { - - body_ = getDefaultInstance().getBody(); - onChanged(); - return this; - } - /** - *
-       * The content of the email body.
-       * This populates the BODY field.
-       * 
- * - * string body = 4; - */ - public Builder setBodyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - body_ = value; - onChanged(); - return this; - } - @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.EmailMessage) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.EmailMessage) - private static final flyteidl.admin.Notification.EmailMessage DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.Notification.EmailMessage(); - } - - public static flyteidl.admin.Notification.EmailMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmailMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EmailMessage(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.Notification.EmailMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_EmailMessage_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!flyteidl/admin/notification.proto\022\016fly" + - "teidl.admin\"b\n\014EmailMessage\022\030\n\020recipient" + - "s_email\030\001 \003(\t\022\024\n\014sender_email\030\002 \001(\t\022\024\n\014s" + - "ubject_line\030\003 \001(\t\022\014\n\004body\030\004 \001(\tB=Z;githu" + - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" + - "flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_EmailMessage_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_EmailMessage_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_EmailMessage_descriptor, - new java.lang.String[] { "RecipientsEmail", "SenderEmail", "SubjectLine", "Body", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java deleted file mode 100644 index 4af2acdb48..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ProjectAttributesOuterClass.java +++ /dev/null @@ -1,4545 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_attributes.proto - -package flyteidl.admin; - -public final class ProjectAttributesOuterClass { - private ProjectAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProjectAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - *
-   * Defines a set of custom matching attributes at the project level.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributes} - */ - public static final class ProjectAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributes) - ProjectAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributes.newBuilder() to construct. - private ProjectAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributes() { - project_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributes( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 2; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (matchingAttributes_ != null) { - output.writeMessage(2, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMatchingAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributes)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes 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.ProjectAttributesOuterClass.ProjectAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes 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.ProjectAttributesOuterClass.ProjectAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes 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.ProjectAttributesOuterClass.ProjectAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes 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.ProjectAttributesOuterClass.ProjectAttributes 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; - } - /** - *
-     * Defines a set of custom matching attributes at the project level.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributes) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.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(); - project_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes(this); - result.project_ = project_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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.ProjectAttributesOuterClass.ProjectAttributes) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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.ProjectAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributes) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributes(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.ProjectAttributesOuterClass.ProjectAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateRequest} - */ - public static final class ProjectAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesUpdateRequest) - ProjectAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesUpdateRequest.newBuilder() to construct. - private ProjectAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesUpdateRequest( - 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.ProjectAttributesOuterClass.ProjectAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesUpdateRequest) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> attributesBuilder_; - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.ProjectAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateRequest) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesUpdateRequest(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.ProjectAttributesOuterClass.ProjectAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateResponse} - */ - public static final class ProjectAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesUpdateResponse) - ProjectAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesUpdateResponse.newBuilder() to construct. - private ProjectAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesUpdateResponse) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse(this); - 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse.getDefaultInstance()) return this; - 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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesUpdateResponse) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesUpdateResponse(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.ProjectAttributesOuterClass.ProjectAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to get an individual project level attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesGetRequest} - */ - public static final class ProjectAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesGetRequest) - ProjectAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesGetRequest.newBuilder() to construct. - private ProjectAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesGetRequest() { - project_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesGetRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(2, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); - } - 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest 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; - } - /** - *
-     * Request to get an individual project level attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesGetRequest) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.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(); - project_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest(this); - result.project_ = project_; - result.resourceType_ = resourceType_; - 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.ProjectAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetRequest) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesGetRequest(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.ProjectAttributesOuterClass.ProjectAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Response to get an individual project level attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesGetResponse} - */ - public static final class ProjectAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesGetResponse) - ProjectAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesGetResponse.newBuilder() to construct. - private ProjectAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesGetResponse( - 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.ProjectAttributesOuterClass.ProjectAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse 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; - } - /** - *
-     * Response to get an individual project level attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesGetResponse) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.ProjectAttributesOuterClass.ProjectAttributesGetResponse) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributes.Builder, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.ProjectAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesGetResponse) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesGetResponse(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.ProjectAttributesOuterClass.ProjectAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to delete a set matchable project level attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteRequest} - */ - public static final class ProjectAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesDeleteRequest) - ProjectAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesDeleteRequest.newBuilder() to construct. - private ProjectAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesDeleteRequest() { - project_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesDeleteRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 2; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(2, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, resourceType_); - } - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest 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; - } - /** - *
-     * Request to delete a set matchable project level attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesDeleteRequest) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.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(); - project_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest(this); - result.project_ = project_; - result.resourceType_ = resourceType_; - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 2; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.ProjectAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteRequest) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesDeleteRequest(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.ProjectAttributesOuterClass.ProjectAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteResponse} - */ - public static final class ProjectAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectAttributesDeleteResponse) - ProjectAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectAttributesDeleteResponse.newBuilder() to construct. - private ProjectAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectAttributesDeleteResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse other = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectAttributesDeleteResponse) - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.class, flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectAttributesOuterClass.internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse build() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse buildPartial() { - flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse result = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse(this); - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse other) { - if (other == flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse.getDefaultInstance()) return this; - 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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectAttributesDeleteResponse) - private static final flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse(); - } - - public static flyteidl.admin.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectAttributesDeleteResponse(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.ProjectAttributesOuterClass.ProjectAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/admin/project_attributes.prot" + - "o\022\016flyteidl.admin\032\'flyteidl/admin/matcha" + - "ble_resource.proto\"e\n\021ProjectAttributes\022" + - "\017\n\007project\030\001 \001(\t\022?\n\023matching_attributes\030" + - "\002 \001(\0132\".flyteidl.admin.MatchingAttribute" + - "s\"W\n\036ProjectAttributesUpdateRequest\0225\n\na" + - "ttributes\030\001 \001(\0132!.flyteidl.admin.Project" + - "Attributes\"!\n\037ProjectAttributesUpdateRes" + - "ponse\"h\n\033ProjectAttributesGetRequest\022\017\n\007" + - "project\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.f" + - "lyteidl.admin.MatchableResource\"U\n\034Proje" + - "ctAttributesGetResponse\0225\n\nattributes\030\001 " + - "\001(\0132!.flyteidl.admin.ProjectAttributes\"k" + - "\n\036ProjectAttributesDeleteRequest\022\017\n\007proj" + - "ect\030\001 \001(\t\0228\n\rresource_type\030\002 \001(\0162!.flyte" + - "idl.admin.MatchableResource\"!\n\037ProjectAt" + - "tributesDeleteResponseB=Z;github.com/fly" + - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" + - "adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ProjectAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ProjectAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributes_descriptor, - new java.lang.String[] { "Project", "MatchingAttributes", }); - internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "ResourceType", }); - internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "ResourceType", }); - internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java deleted file mode 100644 index d3512369cd..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ProjectDomainAttributesOuterClass.java +++ /dev/null @@ -1,5085 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project_domain_attributes.proto - -package flyteidl.admin; - -public final class ProjectDomainAttributesOuterClass { - private ProjectDomainAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ProjectDomainAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - *
-   * Defines a set of custom matching attributes which defines resource defaults for a project and domain.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} - */ - public static final class ProjectDomainAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributes) - ProjectDomainAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributes.newBuilder() to construct. - private ProjectDomainAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributes() { - project_ = ""; - domain_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributes( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 3; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (matchingAttributes_ != null) { - output.writeMessage(3, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMatchingAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes 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; - } - /** - *
-     * Defines a set of custom matching attributes which defines resource defaults for a project and domain.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributes) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.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(); - project_ = ""; - - domain_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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.ProjectDomainAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributes) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributes(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project-domain combination.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class ProjectDomainAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - ProjectDomainAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateRequest.newBuilder() to construct. - private ProjectDomainAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateRequest( - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project-domain combination.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.ProjectDomainAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateRequest(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class ProjectDomainAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - ProjectDomainAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesUpdateResponse.newBuilder() to construct. - private ProjectDomainAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(this); - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse.getDefaultInstance()) return this; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectDomainAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesUpdateResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesUpdateResponse(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to get an individual project domain attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class ProjectDomainAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - ProjectDomainAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetRequest.newBuilder() to construct. - private ProjectDomainAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest 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; - } - /** - *
-     * Request to get an individual project domain attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.ProjectDomainAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetRequest(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes(); - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Response to get an individual project domain attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class ProjectDomainAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - ProjectDomainAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesGetResponse.newBuilder() to construct. - private ProjectDomainAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesGetResponse( - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse 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; - } - /** - *
-     * Response to get an individual project domain attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesGetResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.ProjectDomainAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributes.Builder, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.ProjectDomainAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesGetResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesGetResponse(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to delete a set matchable project domain attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class ProjectDomainAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - ProjectDomainAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteRequest.newBuilder() to construct. - private ProjectDomainAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(3, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, resourceType_); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest 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; - } - /** - *
-     * Request to delete a set matchable project domain attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.resourceType_ = resourceType_; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 3; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.ProjectDomainAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteRequest) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteRequest(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectDomainAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class ProjectDomainAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - ProjectDomainAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectDomainAttributesDeleteResponse.newBuilder() to construct. - private ProjectDomainAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectDomainAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectDomainAttributesDeleteResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectDomainAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.class, flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse build() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse buildPartial() { - flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse result = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(this); - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse other) { - if (other == flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse.getDefaultInstance()) return this; - 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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectDomainAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectDomainAttributesDeleteResponse) - private static final flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse(); - } - - public static flyteidl.admin.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectDomainAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectDomainAttributesDeleteResponse(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.ProjectDomainAttributesOuterClass.ProjectDomainAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.flyteidl/admin/project_domain_attribut" + - "es.proto\022\016flyteidl.admin\032\'flyteidl/admin" + - "/matchable_resource.proto\"{\n\027ProjectDoma" + - "inAttributes\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030" + - "\002 \001(\t\022?\n\023matching_attributes\030\003 \001(\0132\".fly" + - "teidl.admin.MatchingAttributes\"c\n$Projec" + - "tDomainAttributesUpdateRequest\022;\n\nattrib" + - "utes\030\001 \001(\0132\'.flyteidl.admin.ProjectDomai" + - "nAttributes\"\'\n%ProjectDomainAttributesUp" + - "dateResponse\"~\n!ProjectDomainAttributesG" + - "etRequest\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\0228\n\rresource_type\030\003 \001(\0162!.flyteidl.adm" + - "in.MatchableResource\"a\n\"ProjectDomainAtt" + - "ributesGetResponse\022;\n\nattributes\030\001 \001(\0132\'" + - ".flyteidl.admin.ProjectDomainAttributes\"" + - "\201\001\n$ProjectDomainAttributesDeleteRequest" + - "\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\0228\n\rres" + - "ource_type\030\003 \001(\0162!.flyteidl.admin.Matcha" + - "bleResource\"\'\n%ProjectDomainAttributesDe" + - "leteResponseB=Z;github.com/flyteorg/flyt" + - "e/flyteidl/gen/pb-go/flyteidl/adminb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_ProjectDomainAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "MatchingAttributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "ResourceType", }); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectDomainAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java deleted file mode 100644 index 518b844a41..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ProjectOuterClass.java +++ /dev/null @@ -1,6331 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/project.proto - -package flyteidl.admin; - -public final class ProjectOuterClass { - private ProjectOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DomainOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Domain) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Globally unique domain name.
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * Globally unique domain name.
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Namespace within a project commonly used to differentiate between different service instances.
-   * e.g. "production", "development", etc.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Domain extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Domain) - DomainOrBuilder { - private static final long serialVersionUID = 0L; - // Use Domain.newBuilder() to construct. - private Domain(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Domain() { - id_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Domain( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Globally unique domain name.
-     * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Globally unique domain name.
-     * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - 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.ProjectOuterClass.Domain)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Domain other = (flyteidl.admin.ProjectOuterClass.Domain) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Domain parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Domain 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.ProjectOuterClass.Domain 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; - } - /** - *
-     * Namespace within a project commonly used to differentiate between different service instances.
-     * e.g. "production", "development", etc.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Domain} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Domain) - flyteidl.admin.ProjectOuterClass.DomainOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Domain.class, flyteidl.admin.ProjectOuterClass.Domain.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Domain.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(); - id_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Domain_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain build() { - flyteidl.admin.ProjectOuterClass.Domain result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Domain buildPartial() { - flyteidl.admin.ProjectOuterClass.Domain result = new flyteidl.admin.ProjectOuterClass.Domain(this); - result.id_ = id_; - result.name_ = name_; - 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.ProjectOuterClass.Domain) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Domain)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Domain other) { - if (other == flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.ProjectOuterClass.Domain parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Domain) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object id_ = ""; - /** - *
-       * Globally unique domain name.
-       * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Globally unique domain name.
-       * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Globally unique domain name.
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * Globally unique domain name.
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * Globally unique domain name.
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.Domain) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Domain) - private static final flyteidl.admin.ProjectOuterClass.Domain DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Domain(); - } - - public static flyteidl.admin.ProjectOuterClass.Domain getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Domain parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Domain(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.ProjectOuterClass.Domain getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Project) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Globally unique project name.
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * Globally unique project name.
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.Domain getDomains(int index); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - int getDomainsCount(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - java.util.List - getDomainsOrBuilderList(); - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index); - - /** - * string description = 4; - */ - java.lang.String getDescription(); - /** - * string description = 4; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - boolean hasLabels(); - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - flyteidl.admin.Common.Labels getLabels(); - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder(); - - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - int getStateValue(); - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - flyteidl.admin.ProjectOuterClass.Project.ProjectState getState(); - } - /** - *
-   * Top-level namespace used to classify different entities like workflows and executions.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Project extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Project) - ProjectOrBuilder { - private static final long serialVersionUID = 0L; - // Use Project.newBuilder() to construct. - private Project(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Project() { - id_ = ""; - name_ = ""; - domains_ = java.util.Collections.emptyList(); - description_ = ""; - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Project( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - domains_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Domain.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Labels.Builder subBuilder = null; - if (labels_ != null) { - subBuilder = labels_.toBuilder(); - } - labels_ = input.readMessage(flyteidl.admin.Common.Labels.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labels_); - labels_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - int rawValue = input.readEnum(); - - state_ = rawValue; - 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - /** - *
-     * The state of the project is used to control its visibility in the UI and validity.
-     * 
- * - * Protobuf enum {@code flyteidl.admin.Project.ProjectState} - */ - public enum ProjectState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * By default, all projects are considered active.
-       * 
- * - * ACTIVE = 0; - */ - ACTIVE(0), - /** - *
-       * Archived projects are no longer visible in the UI and no longer valid.
-       * 
- * - * ARCHIVED = 1; - */ - ARCHIVED(1), - /** - *
-       * System generated projects that aren't explicitly created or managed by a user.
-       * 
- * - * SYSTEM_GENERATED = 2; - */ - SYSTEM_GENERATED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * By default, all projects are considered active.
-       * 
- * - * ACTIVE = 0; - */ - public static final int ACTIVE_VALUE = 0; - /** - *
-       * Archived projects are no longer visible in the UI and no longer valid.
-       * 
- * - * ARCHIVED = 1; - */ - public static final int ARCHIVED_VALUE = 1; - /** - *
-       * System generated projects that aren't explicitly created or managed by a user.
-       * 
- * - * SYSTEM_GENERATED = 2; - */ - public static final int SYSTEM_GENERATED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ProjectState valueOf(int value) { - return forNumber(value); - } - - public static ProjectState forNumber(int value) { - switch (value) { - case 0: return ACTIVE; - case 1: return ARCHIVED; - case 2: return SYSTEM_GENERATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ProjectState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ProjectState findValueByNumber(int number) { - return ProjectState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.Project.getDescriptor().getEnumTypes().get(0); - } - - private static final ProjectState[] VALUES = values(); - - public static ProjectState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ProjectState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.Project.ProjectState) - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * Globally unique project name.
-     * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * Globally unique project name.
-     * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Display name.
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAINS_FIELD_NUMBER = 3; - private java.util.List domains_; - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - return domains_; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - return domains_.size(); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - return domains_.get(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - return domains_.get(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - private volatile java.lang.Object description_; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LABELS_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Labels labels_; - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public boolean hasLabels() { - return labels_ != null; - } - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public flyteidl.admin.Common.Labels getLabels() { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - /** - *
-     * Leverage Labels from flyteidl.admin.common.proto to
-     * tag projects with ownership information.
-     * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - return getLabels(); - } - - public static final int STATE_FIELD_NUMBER = 6; - private int state_; - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public int getStateValue() { - return state_; - } - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public flyteidl.admin.ProjectOuterClass.Project.ProjectState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ProjectOuterClass.Project.ProjectState result = flyteidl.admin.ProjectOuterClass.Project.ProjectState.valueOf(state_); - return result == null ? flyteidl.admin.ProjectOuterClass.Project.ProjectState.UNRECOGNIZED : result; - } - - 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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - output.writeMessage(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (labels_ != null) { - output.writeMessage(5, getLabels()); - } - if (state_ != flyteidl.admin.ProjectOuterClass.Project.ProjectState.ACTIVE.getNumber()) { - output.writeEnum(6, state_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - for (int i = 0; i < domains_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, domains_.get(i)); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (labels_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getLabels()); - } - if (state_ != flyteidl.admin.ProjectOuterClass.Project.ProjectState.ACTIVE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, state_); - } - 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.ProjectOuterClass.Project)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Project other = (flyteidl.admin.ProjectOuterClass.Project) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getDomainsList() - .equals(other.getDomainsList())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (hasLabels() != other.hasLabels()) return false; - if (hasLabels()) { - if (!getLabels() - .equals(other.getLabels())) return false; - } - if (state_ != other.state_) 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(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getDomainsCount() > 0) { - hash = (37 * hash) + DOMAINS_FIELD_NUMBER; - hash = (53 * hash) + getDomainsList().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasLabels()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + getLabels().hashCode(); - } - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Project 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.ProjectOuterClass.Project 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; - } - /** - *
-     * Top-level namespace used to classify different entities like workflows and executions.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Project} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Project) - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Project.class, flyteidl.admin.ProjectOuterClass.Project.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getDomainsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - name_ = ""; - - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - domainsBuilder_.clear(); - } - description_ = ""; - - if (labelsBuilder_ == null) { - labels_ = null; - } else { - labels_ = null; - labelsBuilder_ = null; - } - state_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Project_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project build() { - flyteidl.admin.ProjectOuterClass.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Project buildPartial() { - flyteidl.admin.ProjectOuterClass.Project result = new flyteidl.admin.ProjectOuterClass.Project(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - result.name_ = name_; - if (domainsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - domains_ = java.util.Collections.unmodifiableList(domains_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.domains_ = domains_; - } else { - result.domains_ = domainsBuilder_.build(); - } - result.description_ = description_; - if (labelsBuilder_ == null) { - result.labels_ = labels_; - } else { - result.labels_ = labelsBuilder_.build(); - } - result.state_ = state_; - result.bitField0_ = to_bitField0_; - 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.ProjectOuterClass.Project) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Project)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Project other) { - if (other == flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (domainsBuilder_ == null) { - if (!other.domains_.isEmpty()) { - if (domains_.isEmpty()) { - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureDomainsIsMutable(); - domains_.addAll(other.domains_); - } - onChanged(); - } - } else { - if (!other.domains_.isEmpty()) { - if (domainsBuilder_.isEmpty()) { - domainsBuilder_.dispose(); - domainsBuilder_ = null; - domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00000004); - domainsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDomainsFieldBuilder() : null; - } else { - domainsBuilder_.addAllMessages(other.domains_); - } - } - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasLabels()) { - mergeLabels(other.getLabels()); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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.ProjectOuterClass.Project parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Project) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * Globally unique project name.
-       * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Globally unique project name.
-       * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Globally unique project name.
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * Globally unique project name.
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * Globally unique project name.
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Display name.
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List domains_ = - java.util.Collections.emptyList(); - private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - domains_ = new java.util.ArrayList(domains_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> domainsBuilder_; - - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List getDomainsList() { - if (domainsBuilder_ == null) { - return java.util.Collections.unmodifiableList(domains_); - } else { - return domainsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public int getDomainsCount() { - if (domainsBuilder_ == null) { - return domains_.size(); - } else { - return domainsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain getDomains(int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); - } else { - return domainsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.set(index, value); - onChanged(); - } else { - domainsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder setDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.set(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains(flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(value); - onChanged(); - } else { - domainsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain value) { - if (domainsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDomainsIsMutable(); - domains_.add(index, value); - onChanged(); - } else { - domainsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addDomains( - int index, flyteidl.admin.ProjectOuterClass.Domain.Builder builderForValue) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.add(index, builderForValue.build()); - onChanged(); - } else { - domainsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder addAllDomains( - java.lang.Iterable values) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, domains_); - onChanged(); - } else { - domainsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder clearDomains() { - if (domainsBuilder_ == null) { - domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - domainsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public Builder removeDomains(int index) { - if (domainsBuilder_ == null) { - ensureDomainsIsMutable(); - domains_.remove(index); - onChanged(); - } else { - domainsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder getDomainsBuilder( - int index) { - return getDomainsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.DomainOrBuilder getDomainsOrBuilder( - int index) { - if (domainsBuilder_ == null) { - return domains_.get(index); } else { - return domainsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsOrBuilderList() { - if (domainsBuilder_ != null) { - return domainsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(domains_); - } - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder() { - return getDomainsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public flyteidl.admin.ProjectOuterClass.Domain.Builder addDomainsBuilder( - int index) { - return getDomainsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Domain.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Domain domains = 3; - */ - public java.util.List - getDomainsBuilderList() { - return getDomainsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder> - getDomainsFieldBuilder() { - if (domainsBuilder_ == null) { - domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Domain, flyteidl.admin.ProjectOuterClass.Domain.Builder, flyteidl.admin.ProjectOuterClass.DomainOrBuilder>( - domains_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - domains_ = null; - } - return domainsBuilder_; - } - - private java.lang.Object description_ = ""; - /** - * string description = 4; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string description = 4; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string description = 4; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - * string description = 4; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Labels labels_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> labelsBuilder_; - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public boolean hasLabels() { - return labelsBuilder_ != null || labels_ != null; - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public flyteidl.admin.Common.Labels getLabels() { - if (labelsBuilder_ == null) { - return labels_ == null ? flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } else { - return labelsBuilder_.getMessage(); - } - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public Builder setLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - labels_ = value; - onChanged(); - } else { - labelsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public Builder setLabels( - flyteidl.admin.Common.Labels.Builder builderForValue) { - if (labelsBuilder_ == null) { - labels_ = builderForValue.build(); - onChanged(); - } else { - labelsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public Builder mergeLabels(flyteidl.admin.Common.Labels value) { - if (labelsBuilder_ == null) { - if (labels_ != null) { - labels_ = - flyteidl.admin.Common.Labels.newBuilder(labels_).mergeFrom(value).buildPartial(); - } else { - labels_ = value; - } - onChanged(); - } else { - labelsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public Builder clearLabels() { - if (labelsBuilder_ == null) { - labels_ = null; - onChanged(); - } else { - labels_ = null; - labelsBuilder_ = null; - } - - return this; - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public flyteidl.admin.Common.Labels.Builder getLabelsBuilder() { - - onChanged(); - return getLabelsFieldBuilder().getBuilder(); - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - public flyteidl.admin.Common.LabelsOrBuilder getLabelsOrBuilder() { - if (labelsBuilder_ != null) { - return labelsBuilder_.getMessageOrBuilder(); - } else { - return labels_ == null ? - flyteidl.admin.Common.Labels.getDefaultInstance() : labels_; - } - } - /** - *
-       * Leverage Labels from flyteidl.admin.common.proto to
-       * tag projects with ownership information.
-       * 
- * - * .flyteidl.admin.Labels labels = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder> - getLabelsFieldBuilder() { - if (labelsBuilder_ == null) { - labelsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Labels, flyteidl.admin.Common.Labels.Builder, flyteidl.admin.Common.LabelsOrBuilder>( - getLabels(), - getParentForChildren(), - isClean()); - labels_ = null; - } - return labelsBuilder_; - } - - private int state_ = 0; - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public int getStateValue() { - return state_; - } - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public flyteidl.admin.ProjectOuterClass.Project.ProjectState getState() { - @SuppressWarnings("deprecation") - flyteidl.admin.ProjectOuterClass.Project.ProjectState result = flyteidl.admin.ProjectOuterClass.Project.ProjectState.valueOf(state_); - return result == null ? flyteidl.admin.ProjectOuterClass.Project.ProjectState.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public Builder setState(flyteidl.admin.ProjectOuterClass.Project.ProjectState value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.Project.ProjectState state = 6; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - @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.Project) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Project) - private static final flyteidl.admin.ProjectOuterClass.Project DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Project(); - } - - public static flyteidl.admin.ProjectOuterClass.Project getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Project parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Project(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.ProjectOuterClass.Project getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Projects) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProjects(int index); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - int getProjectsCount(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - java.util.List - getProjectsOrBuilderList(); - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of projects.
-   * See :ref:`ref_flyteidl.admin.Project` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.Projects} - */ - public static final class Projects extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Projects) - ProjectsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Projects.newBuilder() to construct. - private Projects(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Projects() { - projects_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Projects( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - projects_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - projects_.add( - input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - private int bitField0_; - public static final int PROJECTS_FIELD_NUMBER = 1; - private java.util.List projects_; - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - return projects_; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - return projects_.size(); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - return projects_.get(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - return projects_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < projects_.size(); i++) { - output.writeMessage(1, projects_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < projects_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, projects_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.ProjectOuterClass.Projects)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.Projects other = (flyteidl.admin.ProjectOuterClass.Projects) obj; - - if (!getProjectsList() - .equals(other.getProjectsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getProjectsCount() > 0) { - hash = (37 * hash) + PROJECTS_FIELD_NUMBER; - hash = (53 * hash) + getProjectsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.Projects parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.Projects 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.ProjectOuterClass.Projects 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; - } - /** - *
-     * Represents a list of projects.
-     * See :ref:`ref_flyteidl.admin.Project` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.Projects} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Projects) - flyteidl.admin.ProjectOuterClass.ProjectsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.Projects.class, flyteidl.admin.ProjectOuterClass.Projects.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.Projects.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProjectsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - projectsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_Projects_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects build() { - flyteidl.admin.ProjectOuterClass.Projects result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.Projects buildPartial() { - flyteidl.admin.ProjectOuterClass.Projects result = new flyteidl.admin.ProjectOuterClass.Projects(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (projectsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - projects_ = java.util.Collections.unmodifiableList(projects_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.projects_ = projects_; - } else { - result.projects_ = projectsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.ProjectOuterClass.Projects) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.Projects)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.Projects other) { - if (other == flyteidl.admin.ProjectOuterClass.Projects.getDefaultInstance()) return this; - if (projectsBuilder_ == null) { - if (!other.projects_.isEmpty()) { - if (projects_.isEmpty()) { - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProjectsIsMutable(); - projects_.addAll(other.projects_); - } - onChanged(); - } - } else { - if (!other.projects_.isEmpty()) { - if (projectsBuilder_.isEmpty()) { - projectsBuilder_.dispose(); - projectsBuilder_ = null; - projects_ = other.projects_; - bitField0_ = (bitField0_ & ~0x00000001); - projectsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProjectsFieldBuilder() : null; - } else { - projectsBuilder_.addAllMessages(other.projects_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.ProjectOuterClass.Projects parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.Projects) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List projects_ = - java.util.Collections.emptyList(); - private void ensureProjectsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - projects_ = new java.util.ArrayList(projects_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectsBuilder_; - - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List getProjectsList() { - if (projectsBuilder_ == null) { - return java.util.Collections.unmodifiableList(projects_); - } else { - return projectsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public int getProjectsCount() { - if (projectsBuilder_ == null) { - return projects_.size(); - } else { - return projectsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProjects(int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); - } else { - return projectsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.set(index, value); - onChanged(); - } else { - projectsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder setProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.set(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(value); - onChanged(); - } else { - projectsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project value) { - if (projectsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProjectsIsMutable(); - projects_.add(index, value); - onChanged(); - } else { - projectsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addProjects( - int index, flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.add(index, builderForValue.build()); - onChanged(); - } else { - projectsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder addAllProjects( - java.lang.Iterable values) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, projects_); - onChanged(); - } else { - projectsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder clearProjects() { - if (projectsBuilder_ == null) { - projects_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - projectsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public Builder removeProjects(int index) { - if (projectsBuilder_ == null) { - ensureProjectsIsMutable(); - projects_.remove(index); - onChanged(); - } else { - projectsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectsBuilder( - int index) { - return getProjectsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectsOrBuilder( - int index) { - if (projectsBuilder_ == null) { - return projects_.get(index); } else { - return projectsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsOrBuilderList() { - if (projectsBuilder_ != null) { - return projectsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(projects_); - } - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder() { - return getProjectsFieldBuilder().addBuilder( - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder addProjectsBuilder( - int index) { - return getProjectsFieldBuilder().addBuilder( - index, flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.Project projects = 1; - */ - public java.util.List - getProjectsBuilderList() { - return getProjectsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectsFieldBuilder() { - if (projectsBuilder_ == null) { - projectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - projects_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - projects_ = null; - } - return projectsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.Projects) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Projects) - private static final flyteidl.admin.ProjectOuterClass.Projects DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.Projects(); - } - - public static flyteidl.admin.ProjectOuterClass.Projects getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Projects parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Projects(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.ProjectOuterClass.Projects getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the number of projects to be returned.
-     * +required
-     * 
- * - * uint32 limit = 1; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 3; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 3; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Request to retrieve a list of projects matching specified filters. 
-   * See :ref:`ref_flyteidl.admin.Project` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectListRequest} - */ - public static final class ProjectListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectListRequest) - ProjectListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectListRequest.newBuilder() to construct. - private ProjectListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectListRequest( - 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 8: { - - limit_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 34: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - public static final int LIMIT_FIELD_NUMBER = 1; - private int limit_; - /** - *
-     * Indicates the number of projects to be returned.
-     * +required
-     * 
- * - * uint32 limit = 1; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 3; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 3; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 3; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 4; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (limit_ != 0) { - output.writeUInt32(1, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filters_); - } - if (sortBy_ != null) { - output.writeMessage(4, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSortBy()); - } - 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.ProjectOuterClass.ProjectListRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectListRequest other = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) obj; - - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest 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.ProjectOuterClass.ProjectListRequest 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; - } - /** - *
-     * Request to retrieve a list of projects matching specified filters. 
-     * See :ref:`ref_flyteidl.admin.Project` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectListRequest) - flyteidl.admin.ProjectOuterClass.ProjectListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectListRequest.class, flyteidl.admin.ProjectOuterClass.ProjectListRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectListRequest.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(); - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectListRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectListRequest result = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(this); - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.ProjectOuterClass.ProjectListRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectListRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectListRequest.getDefaultInstance()) return this; - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.ProjectOuterClass.ProjectListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int limit_ ; - /** - *
-       * Indicates the number of projects to be returned.
-       * +required
-       * 
- * - * uint32 limit = 1; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of projects to be returned.
-       * +required
-       * 
- * - * uint32 limit = 1; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of projects to be returned.
-       * +required
-       * 
- * - * uint32 limit = 1; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, this server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 3; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 3; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 3; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 3; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 3; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.ProjectListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectListRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectListRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectListRequest(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.ProjectOuterClass.ProjectListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - boolean hasProject(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.Project getProject(); - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder(); - } - /** - *
-   * Adds a new user-project within the Flyte deployment.
-   * See :ref:`ref_flyteidl.admin.Project` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} - */ - public static final class ProjectRegisterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterRequest) - ProjectRegisterRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterRequest.newBuilder() to construct. - private ProjectRegisterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterRequest( - 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.ProjectOuterClass.Project.Builder subBuilder = null; - if (project_ != null) { - subBuilder = project_.toBuilder(); - } - project_ = input.readMessage(flyteidl.admin.ProjectOuterClass.Project.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(project_); - project_ = 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private flyteidl.admin.ProjectOuterClass.Project project_; - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return project_ != null; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - /** - *
-     * +required
-     * 
- * - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - return getProject(); - } - - 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 (project_ != null) { - output.writeMessage(1, getProject()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (project_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProject()); - } - 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.ProjectOuterClass.ProjectRegisterRequest)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) obj; - - if (hasProject() != other.hasProject()) return false; - if (hasProject()) { - if (!getProject() - .equals(other.getProject())) 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 (hasProject()) { - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest 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.ProjectOuterClass.ProjectRegisterRequest 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; - } - /** - *
-     * Adds a new user-project within the Flyte deployment.
-     * See :ref:`ref_flyteidl.admin.Project` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectRegisterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterRequest) - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.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 (projectBuilder_ == null) { - project_ = null; - } else { - project_ = null; - projectBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(this); - if (projectBuilder_ == null) { - result.project_ = project_; - } else { - result.project_ = projectBuilder_.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.ProjectOuterClass.ProjectRegisterRequest) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest.getDefaultInstance()) return this; - if (other.hasProject()) { - mergeProject(other.getProject()); - } - 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.ProjectOuterClass.ProjectRegisterRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.ProjectOuterClass.Project project_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> projectBuilder_; - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public boolean hasProject() { - return projectBuilder_ != null || project_ != null; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project getProject() { - if (projectBuilder_ == null) { - return project_ == null ? flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } else { - return projectBuilder_.getMessage(); - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - project_ = value; - onChanged(); - } else { - projectBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public Builder setProject( - flyteidl.admin.ProjectOuterClass.Project.Builder builderForValue) { - if (projectBuilder_ == null) { - project_ = builderForValue.build(); - onChanged(); - } else { - projectBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public Builder mergeProject(flyteidl.admin.ProjectOuterClass.Project value) { - if (projectBuilder_ == null) { - if (project_ != null) { - project_ = - flyteidl.admin.ProjectOuterClass.Project.newBuilder(project_).mergeFrom(value).buildPartial(); - } else { - project_ = value; - } - onChanged(); - } else { - projectBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public Builder clearProject() { - if (projectBuilder_ == null) { - project_ = null; - onChanged(); - } else { - project_ = null; - projectBuilder_ = null; - } - - return this; - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.Project.Builder getProjectBuilder() { - - onChanged(); - return getProjectFieldBuilder().getBuilder(); - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - public flyteidl.admin.ProjectOuterClass.ProjectOrBuilder getProjectOrBuilder() { - if (projectBuilder_ != null) { - return projectBuilder_.getMessageOrBuilder(); - } else { - return project_ == null ? - flyteidl.admin.ProjectOuterClass.Project.getDefaultInstance() : project_; - } - } - /** - *
-       * +required
-       * 
- * - * .flyteidl.admin.Project project = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder> - getProjectFieldBuilder() { - if (projectBuilder_ == null) { - projectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ProjectOuterClass.Project, flyteidl.admin.ProjectOuterClass.Project.Builder, flyteidl.admin.ProjectOuterClass.ProjectOrBuilder>( - getProject(), - getParentForChildren(), - isClean()); - project_ = null; - } - return projectBuilder_; - } - @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.ProjectRegisterRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterRequest) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterRequest(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.ProjectOuterClass.ProjectRegisterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectRegisterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectRegisterResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be updated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} - */ - public static final class ProjectRegisterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectRegisterResponse) - ProjectRegisterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectRegisterResponse.newBuilder() to construct. - private ProjectRegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectRegisterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectRegisterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectOuterClass.ProjectRegisterResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse 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.ProjectOuterClass.ProjectRegisterResponse 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; - } - /** - *
-     * Purposefully empty, may be updated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectRegisterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectRegisterResponse) - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.class, flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse build() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse result = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(this); - 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.ProjectOuterClass.ProjectRegisterResponse) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse.getDefaultInstance()) return this; - 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.ProjectOuterClass.ProjectRegisterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectRegisterResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectRegisterResponse) - private static final flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectRegisterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectRegisterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectRegisterResponse(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.ProjectOuterClass.ProjectRegisterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ProjectUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.ProjectUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be updated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.ProjectUpdateResponse} - */ - public static final class ProjectUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.ProjectUpdateResponse) - ProjectUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ProjectUpdateResponse.newBuilder() to construct. - private ProjectUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProjectUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ProjectUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.class, flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.ProjectOuterClass.ProjectUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse other = (flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse 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.ProjectOuterClass.ProjectUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse 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.ProjectOuterClass.ProjectUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse 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.ProjectOuterClass.ProjectUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse 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.ProjectOuterClass.ProjectUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be updated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.ProjectUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.ProjectUpdateResponse) - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.class, flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ProjectOuterClass.internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse build() { - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse buildPartial() { - flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse result = new flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse(this); - 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.ProjectOuterClass.ProjectUpdateResponse) { - return mergeFrom((flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse other) { - if (other == flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse.getDefaultInstance()) return this; - 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.ProjectOuterClass.ProjectUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.ProjectUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.ProjectUpdateResponse) - private static final flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse(); - } - - public static flyteidl.admin.ProjectOuterClass.ProjectUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProjectUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ProjectUpdateResponse(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.ProjectOuterClass.ProjectUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Domain_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Domain_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Project_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Project_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Projects_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Projects_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/admin/project.proto\022\016flyteidl" + - ".admin\032\033flyteidl/admin/common.proto\"\"\n\006D" + - "omain\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\"\376\001\n\007Proj" + - "ect\022\n\n\002id\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\'\n\007domains" + - "\030\003 \003(\0132\026.flyteidl.admin.Domain\022\023\n\013descri" + - "ption\030\004 \001(\t\022&\n\006labels\030\005 \001(\0132\026.flyteidl.a" + - "dmin.Labels\0223\n\005state\030\006 \001(\0162$.flyteidl.ad" + - "min.Project.ProjectState\">\n\014ProjectState" + - "\022\n\n\006ACTIVE\020\000\022\014\n\010ARCHIVED\020\001\022\024\n\020SYSTEM_GEN" + - "ERATED\020\002\"D\n\010Projects\022)\n\010projects\030\001 \003(\0132\027" + - ".flyteidl.admin.Project\022\r\n\005token\030\002 \001(\t\"j" + - "\n\022ProjectListRequest\022\r\n\005limit\030\001 \001(\r\022\r\n\005t" + - "oken\030\002 \001(\t\022\017\n\007filters\030\003 \001(\t\022%\n\007sort_by\030\004" + - " \001(\0132\024.flyteidl.admin.Sort\"B\n\026ProjectReg" + - "isterRequest\022(\n\007project\030\001 \001(\0132\027.flyteidl" + - ".admin.Project\"\031\n\027ProjectRegisterRespons" + - "e\"\027\n\025ProjectUpdateResponseB=Z;github.com" + - "/flyteorg/flyte/flyteidl/gen/pb-go/flyte" + - "idl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_Domain_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_Domain_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Domain_descriptor, - new java.lang.String[] { "Id", "Name", }); - internal_static_flyteidl_admin_Project_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Project_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Project_descriptor, - new java.lang.String[] { "Id", "Name", "Domains", "Description", "Labels", "State", }); - internal_static_flyteidl_admin_Projects_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Projects_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Projects_descriptor, - new java.lang.String[] { "Projects", "Token", }); - internal_static_flyteidl_admin_ProjectListRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_ProjectListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectListRequest_descriptor, - new java.lang.String[] { "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_ProjectRegisterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterRequest_descriptor, - new java.lang.String[] { "Project", }); - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_ProjectRegisterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectRegisterResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_ProjectUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_ProjectUpdateResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java deleted file mode 100644 index d0ab80c575..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/ScheduleOuterClass.java +++ /dev/null @@ -1,2872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/schedule.proto - -package flyteidl.admin; - -public final class ScheduleOuterClass { - private ScheduleOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * Represents a frequency at which to run a schedule.
-   * 
- * - * Protobuf enum {@code flyteidl.admin.FixedRateUnit} - */ - public enum FixedRateUnit - implements com.google.protobuf.ProtocolMessageEnum { - /** - * MINUTE = 0; - */ - MINUTE(0), - /** - * HOUR = 1; - */ - HOUR(1), - /** - * DAY = 2; - */ - DAY(2), - UNRECOGNIZED(-1), - ; - - /** - * MINUTE = 0; - */ - public static final int MINUTE_VALUE = 0; - /** - * HOUR = 1; - */ - public static final int HOUR_VALUE = 1; - /** - * DAY = 2; - */ - public static final int DAY_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FixedRateUnit valueOf(int value) { - return forNumber(value); - } - - public static FixedRateUnit forNumber(int value) { - switch (value) { - case 0: return MINUTE; - case 1: return HOUR; - case 2: return DAY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FixedRateUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FixedRateUnit findValueByNumber(int number) { - return FixedRateUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final FixedRateUnit[] VALUES = values(); - - public static FixedRateUnit valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FixedRateUnit(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.admin.FixedRateUnit) - } - - public interface FixedRateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.FixedRate) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 value = 1; - */ - int getValue(); - - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - int getUnitValue(); - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit(); - } - /** - *
-   * Option for schedules run at a certain frequency e.g. every 2 minutes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class FixedRate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.FixedRate) - FixedRateOrBuilder { - private static final long serialVersionUID = 0L; - // Use FixedRate.newBuilder() to construct. - private FixedRate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FixedRate() { - unit_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FixedRate( - 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 8: { - - value_ = input.readUInt32(); - break; - } - case 16: { - int rawValue = input.readEnum(); - - unit_ = rawValue; - 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.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - - public static final int UNIT_FIELD_NUMBER = 2; - private int unit_; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - - 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 (value_ != 0) { - output.writeUInt32(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - output.writeEnum(2, unit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, value_); - } - if (unit_ != flyteidl.admin.ScheduleOuterClass.FixedRateUnit.MINUTE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, unit_); - } - 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.ScheduleOuterClass.FixedRate)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.FixedRate other = (flyteidl.admin.ScheduleOuterClass.FixedRate) obj; - - if (getValue() - != other.getValue()) return false; - if (unit_ != other.unit_) 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(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue(); - hash = (37 * hash) + UNIT_FIELD_NUMBER; - hash = (53 * hash) + unit_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.FixedRate 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.ScheduleOuterClass.FixedRate 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; - } - /** - *
-     * Option for schedules run at a certain frequency e.g. every 2 minutes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.FixedRate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.FixedRate) - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.FixedRate.class, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.FixedRate.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(); - value_ = 0; - - unit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_FixedRate_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate build() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.FixedRate buildPartial() { - flyteidl.admin.ScheduleOuterClass.FixedRate result = new flyteidl.admin.ScheduleOuterClass.FixedRate(this); - result.value_ = value_; - result.unit_ = unit_; - 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.ScheduleOuterClass.FixedRate) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.FixedRate other) { - if (other == flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) return this; - if (other.getValue() != 0) { - setValue(other.getValue()); - } - if (other.unit_ != 0) { - setUnitValue(other.getUnitValue()); - } - 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.ScheduleOuterClass.FixedRate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.FixedRate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int value_ ; - /** - * uint32 value = 1; - */ - public int getValue() { - return value_; - } - /** - * uint32 value = 1; - */ - public Builder setValue(int value) { - - value_ = value; - onChanged(); - return this; - } - /** - * uint32 value = 1; - */ - public Builder clearValue() { - - value_ = 0; - onChanged(); - return this; - } - - private int unit_ = 0; - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public int getUnitValue() { - return unit_; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnitValue(int value) { - unit_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateUnit getUnit() { - @SuppressWarnings("deprecation") - flyteidl.admin.ScheduleOuterClass.FixedRateUnit result = flyteidl.admin.ScheduleOuterClass.FixedRateUnit.valueOf(unit_); - return result == null ? flyteidl.admin.ScheduleOuterClass.FixedRateUnit.UNRECOGNIZED : result; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder setUnit(flyteidl.admin.ScheduleOuterClass.FixedRateUnit value) { - if (value == null) { - throw new NullPointerException(); - } - - unit_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.admin.FixedRateUnit unit = 2; - */ - public Builder clearUnit() { - - unit_ = 0; - onChanged(); - return this; - } - @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.FixedRate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.FixedRate) - private static final flyteidl.admin.ScheduleOuterClass.FixedRate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.FixedRate(); - } - - public static flyteidl.admin.ScheduleOuterClass.FixedRate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FixedRate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FixedRate(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.ScheduleOuterClass.FixedRate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CronScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.CronSchedule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-     * Also supports nonstandard predefined scheduling definitions
-     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-     * except @reboot
-     * 
- * - * string schedule = 1; - */ - java.lang.String getSchedule(); - /** - *
-     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-     * Also supports nonstandard predefined scheduling definitions
-     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-     * except @reboot
-     * 
- * - * string schedule = 1; - */ - com.google.protobuf.ByteString - getScheduleBytes(); - - /** - *
-     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-     * 
- * - * string offset = 2; - */ - java.lang.String getOffset(); - /** - *
-     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-     * 
- * - * string offset = 2; - */ - com.google.protobuf.ByteString - getOffsetBytes(); - } - /** - *
-   * Options for schedules to run according to a cron expression.
-   * 
- * - * Protobuf type {@code flyteidl.admin.CronSchedule} - */ - public static final class CronSchedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.CronSchedule) - CronScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use CronSchedule.newBuilder() to construct. - private CronSchedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CronSchedule() { - schedule_ = ""; - offset_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CronSchedule( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - schedule_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - offset_ = s; - 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.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.CronSchedule.class, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder.class); - } - - public static final int SCHEDULE_FIELD_NUMBER = 1; - private volatile java.lang.Object schedule_; - /** - *
-     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-     * Also supports nonstandard predefined scheduling definitions
-     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-     * except @reboot
-     * 
- * - * string schedule = 1; - */ - public java.lang.String getSchedule() { - java.lang.Object ref = schedule_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schedule_ = s; - return s; - } - } - /** - *
-     * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-     * Also supports nonstandard predefined scheduling definitions
-     * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-     * except @reboot
-     * 
- * - * string schedule = 1; - */ - public com.google.protobuf.ByteString - getScheduleBytes() { - java.lang.Object ref = schedule_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schedule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OFFSET_FIELD_NUMBER = 2; - private volatile java.lang.Object offset_; - /** - *
-     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-     * 
- * - * string offset = 2; - */ - public java.lang.String getOffset() { - java.lang.Object ref = offset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - offset_ = s; - return s; - } - } - /** - *
-     * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-     * 
- * - * string offset = 2; - */ - public com.google.protobuf.ByteString - getOffsetBytes() { - java.lang.Object ref = offset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - offset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getScheduleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schedule_); - } - if (!getOffsetBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, offset_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getScheduleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schedule_); - } - if (!getOffsetBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, offset_); - } - 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.ScheduleOuterClass.CronSchedule)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.CronSchedule other = (flyteidl.admin.ScheduleOuterClass.CronSchedule) obj; - - if (!getSchedule() - .equals(other.getSchedule())) return false; - if (!getOffset() - .equals(other.getOffset())) 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(); - hash = (37 * hash) + SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getSchedule().hashCode(); - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + getOffset().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule 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.ScheduleOuterClass.CronSchedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule 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.ScheduleOuterClass.CronSchedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule 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.ScheduleOuterClass.CronSchedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.CronSchedule 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.ScheduleOuterClass.CronSchedule 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; - } - /** - *
-     * Options for schedules to run according to a cron expression.
-     * 
- * - * Protobuf type {@code flyteidl.admin.CronSchedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.CronSchedule) - flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.CronSchedule.class, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.CronSchedule.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(); - schedule_ = ""; - - offset_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_CronSchedule_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.CronSchedule getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.CronSchedule build() { - flyteidl.admin.ScheduleOuterClass.CronSchedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.CronSchedule buildPartial() { - flyteidl.admin.ScheduleOuterClass.CronSchedule result = new flyteidl.admin.ScheduleOuterClass.CronSchedule(this); - result.schedule_ = schedule_; - result.offset_ = offset_; - 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.ScheduleOuterClass.CronSchedule) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.CronSchedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.CronSchedule other) { - if (other == flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance()) return this; - if (!other.getSchedule().isEmpty()) { - schedule_ = other.schedule_; - onChanged(); - } - if (!other.getOffset().isEmpty()) { - offset_ = other.offset_; - onChanged(); - } - 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.ScheduleOuterClass.CronSchedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.CronSchedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object schedule_ = ""; - /** - *
-       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-       * Also supports nonstandard predefined scheduling definitions
-       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-       * except @reboot
-       * 
- * - * string schedule = 1; - */ - public java.lang.String getSchedule() { - java.lang.Object ref = schedule_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schedule_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-       * Also supports nonstandard predefined scheduling definitions
-       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-       * except @reboot
-       * 
- * - * string schedule = 1; - */ - public com.google.protobuf.ByteString - getScheduleBytes() { - java.lang.Object ref = schedule_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schedule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-       * Also supports nonstandard predefined scheduling definitions
-       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-       * except @reboot
-       * 
- * - * string schedule = 1; - */ - public Builder setSchedule( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schedule_ = value; - onChanged(); - return this; - } - /** - *
-       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-       * Also supports nonstandard predefined scheduling definitions
-       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-       * except @reboot
-       * 
- * - * string schedule = 1; - */ - public Builder clearSchedule() { - - schedule_ = getDefaultInstance().getSchedule(); - onChanged(); - return this; - } - /** - *
-       * Standard/default cron implementation as described by https://en.wikipedia.org/wiki/Cron#CRON_expression;
-       * Also supports nonstandard predefined scheduling definitions
-       * as described by https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
-       * except @reboot
-       * 
- * - * string schedule = 1; - */ - public Builder setScheduleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schedule_ = value; - onChanged(); - return this; - } - - private java.lang.Object offset_ = ""; - /** - *
-       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-       * 
- * - * string offset = 2; - */ - public java.lang.String getOffset() { - java.lang.Object ref = offset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - offset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-       * 
- * - * string offset = 2; - */ - public com.google.protobuf.ByteString - getOffsetBytes() { - java.lang.Object ref = offset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - offset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-       * 
- * - * string offset = 2; - */ - public Builder setOffset( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - offset_ = value; - onChanged(); - return this; - } - /** - *
-       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-       * 
- * - * string offset = 2; - */ - public Builder clearOffset() { - - offset_ = getDefaultInstance().getOffset(); - onChanged(); - return this; - } - /** - *
-       * ISO 8601 duration as described by https://en.wikipedia.org/wiki/ISO_8601#Durations
-       * 
- * - * string offset = 2; - */ - public Builder setOffsetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - offset_ = value; - onChanged(); - return this; - } - @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.CronSchedule) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.CronSchedule) - private static final flyteidl.admin.ScheduleOuterClass.CronSchedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.CronSchedule(); - } - - public static flyteidl.admin.ScheduleOuterClass.CronSchedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CronSchedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CronSchedule(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.ScheduleOuterClass.CronSchedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScheduleOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Schedule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-     * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getCronExpression(); - /** - *
-     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-     * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getCronExpressionBytes(); - - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - boolean hasRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRate getRate(); - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder(); - - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - boolean hasCronSchedule(); - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule(); - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder(); - - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - java.lang.String getKickoffTimeInputArg(); - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - com.google.protobuf.ByteString - getKickoffTimeInputArgBytes(); - - public flyteidl.admin.ScheduleOuterClass.Schedule.ScheduleExpressionCase getScheduleExpressionCase(); - } - /** - *
-   * Defines complete set of information required to trigger an execution on a schedule.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Schedule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Schedule) - ScheduleOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schedule.newBuilder() to construct. - private Schedule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schedule() { - kickoffTimeInputArg_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schedule( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - scheduleExpressionCase_ = 1; - scheduleExpression_ = s; - break; - } - case 18: { - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder subBuilder = null; - if (scheduleExpressionCase_ == 2) { - subBuilder = ((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_).toBuilder(); - } - scheduleExpression_ = - input.readMessage(flyteidl.admin.ScheduleOuterClass.FixedRate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - scheduleExpression_ = subBuilder.buildPartial(); - } - scheduleExpressionCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - kickoffTimeInputArg_ = s; - break; - } - case 34: { - flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder subBuilder = null; - if (scheduleExpressionCase_ == 4) { - subBuilder = ((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_).toBuilder(); - } - scheduleExpression_ = - input.readMessage(flyteidl.admin.ScheduleOuterClass.CronSchedule.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); - scheduleExpression_ = subBuilder.buildPartial(); - } - scheduleExpressionCase_ = 4; - 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.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public enum ScheduleExpressionCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated CRON_EXPRESSION(1), - RATE(2), - CRON_SCHEDULE(4), - SCHEDULEEXPRESSION_NOT_SET(0); - private final int value; - private ScheduleExpressionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ScheduleExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static ScheduleExpressionCase forNumber(int value) { - switch (value) { - case 1: return CRON_EXPRESSION; - case 2: return RATE; - case 4: return CRON_SCHEDULE; - case 0: return SCHEDULEEXPRESSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public static final int CRON_EXPRESSION_FIELD_NUMBER = 1; - /** - *
-     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-     * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } - } - /** - *
-     * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-     * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-     * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RATE_FIELD_NUMBER = 2; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - - public static final int CRON_SCHEDULE_FIELD_NUMBER = 4; - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public boolean hasCronSchedule() { - return scheduleExpressionCase_ == 4; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule() { - if (scheduleExpressionCase_ == 4) { - return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder() { - if (scheduleExpressionCase_ == 4) { - return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - - public static final int KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER = 3; - private volatile java.lang.Object kickoffTimeInputArg_; - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kickoffTimeInputArg_ = s; - return s; - } - } - /** - *
-     * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-     * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (scheduleExpressionCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - output.writeMessage(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, kickoffTimeInputArg_); - } - if (scheduleExpressionCase_ == 4) { - output.writeMessage(4, (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduleExpressionCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, scheduleExpression_); - } - if (scheduleExpressionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_); - } - if (!getKickoffTimeInputArgBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, kickoffTimeInputArg_); - } - if (scheduleExpressionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_); - } - 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.ScheduleOuterClass.Schedule)) { - return super.equals(obj); - } - flyteidl.admin.ScheduleOuterClass.Schedule other = (flyteidl.admin.ScheduleOuterClass.Schedule) obj; - - if (!getKickoffTimeInputArg() - .equals(other.getKickoffTimeInputArg())) return false; - if (!getScheduleExpressionCase().equals(other.getScheduleExpressionCase())) return false; - switch (scheduleExpressionCase_) { - case 1: - if (!getCronExpression() - .equals(other.getCronExpression())) return false; - break; - case 2: - if (!getRate() - .equals(other.getRate())) return false; - break; - case 4: - if (!getCronSchedule() - .equals(other.getCronSchedule())) 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(); - hash = (37 * hash) + KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER; - hash = (53 * hash) + getKickoffTimeInputArg().hashCode(); - switch (scheduleExpressionCase_) { - case 1: - hash = (37 * hash) + CRON_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getCronExpression().hashCode(); - break; - case 2: - hash = (37 * hash) + RATE_FIELD_NUMBER; - hash = (53 * hash) + getRate().hashCode(); - break; - case 4: - hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; - hash = (53 * hash) + getCronSchedule().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.ScheduleOuterClass.Schedule 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.ScheduleOuterClass.Schedule 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; - } - /** - *
-     * Defines complete set of information required to trigger an execution on a schedule.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Schedule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Schedule) - flyteidl.admin.ScheduleOuterClass.ScheduleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.ScheduleOuterClass.Schedule.class, flyteidl.admin.ScheduleOuterClass.Schedule.Builder.class); - } - - // Construct using flyteidl.admin.ScheduleOuterClass.Schedule.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(); - kickoffTimeInputArg_ = ""; - - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.ScheduleOuterClass.internal_static_flyteidl_admin_Schedule_descriptor; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule build() { - flyteidl.admin.ScheduleOuterClass.Schedule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.ScheduleOuterClass.Schedule buildPartial() { - flyteidl.admin.ScheduleOuterClass.Schedule result = new flyteidl.admin.ScheduleOuterClass.Schedule(this); - if (scheduleExpressionCase_ == 1) { - result.scheduleExpression_ = scheduleExpression_; - } - if (scheduleExpressionCase_ == 2) { - if (rateBuilder_ == null) { - result.scheduleExpression_ = scheduleExpression_; - } else { - result.scheduleExpression_ = rateBuilder_.build(); - } - } - if (scheduleExpressionCase_ == 4) { - if (cronScheduleBuilder_ == null) { - result.scheduleExpression_ = scheduleExpression_; - } else { - result.scheduleExpression_ = cronScheduleBuilder_.build(); - } - } - result.kickoffTimeInputArg_ = kickoffTimeInputArg_; - result.scheduleExpressionCase_ = scheduleExpressionCase_; - 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.ScheduleOuterClass.Schedule) { - return mergeFrom((flyteidl.admin.ScheduleOuterClass.Schedule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.ScheduleOuterClass.Schedule other) { - if (other == flyteidl.admin.ScheduleOuterClass.Schedule.getDefaultInstance()) return this; - if (!other.getKickoffTimeInputArg().isEmpty()) { - kickoffTimeInputArg_ = other.kickoffTimeInputArg_; - onChanged(); - } - switch (other.getScheduleExpressionCase()) { - case CRON_EXPRESSION: { - scheduleExpressionCase_ = 1; - scheduleExpression_ = other.scheduleExpression_; - onChanged(); - break; - } - case RATE: { - mergeRate(other.getRate()); - break; - } - case CRON_SCHEDULE: { - mergeCronSchedule(other.getCronSchedule()); - break; - } - case SCHEDULEEXPRESSION_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.ScheduleOuterClass.Schedule parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.ScheduleOuterClass.Schedule) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int scheduleExpressionCase_ = 0; - private java.lang.Object scheduleExpression_; - public ScheduleExpressionCase - getScheduleExpressionCase() { - return ScheduleExpressionCase.forNumber( - scheduleExpressionCase_); - } - - public Builder clearScheduleExpression() { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - return this; - } - - - /** - *
-       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-       * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getCronExpression() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-       * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getCronExpressionBytes() { - java.lang.Object ref = ""; - if (scheduleExpressionCase_ == 1) { - ref = scheduleExpression_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (scheduleExpressionCase_ == 1) { - scheduleExpression_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-       * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setCronExpression( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - /** - *
-       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-       * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearCronExpression() { - if (scheduleExpressionCase_ == 1) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year
-       * e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? *
-       * 
- * - * string cron_expression = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setCronExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scheduleExpressionCase_ = 1; - scheduleExpression_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> rateBuilder_; - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public boolean hasRate() { - return scheduleExpressionCase_ == 2; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate getRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } else { - if (scheduleExpressionCase_ == 2) { - return rateBuilder_.getMessage(); - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpression_ = value; - onChanged(); - } else { - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder setRate( - flyteidl.admin.ScheduleOuterClass.FixedRate.Builder builderForValue) { - if (rateBuilder_ == null) { - scheduleExpression_ = builderForValue.build(); - onChanged(); - } else { - rateBuilder_.setMessage(builderForValue.build()); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder mergeRate(flyteidl.admin.ScheduleOuterClass.FixedRate value) { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2 && - scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance()) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.newBuilder((flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_) - .mergeFrom(value).buildPartial(); - } else { - scheduleExpression_ = value; - } - onChanged(); - } else { - if (scheduleExpressionCase_ == 2) { - rateBuilder_.mergeFrom(value); - } - rateBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 2; - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public Builder clearRate() { - if (rateBuilder_ == null) { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - } else { - if (scheduleExpressionCase_ == 2) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - } - rateBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRate.Builder getRateBuilder() { - return getRateFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - public flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder getRateOrBuilder() { - if ((scheduleExpressionCase_ == 2) && (rateBuilder_ != null)) { - return rateBuilder_.getMessageOrBuilder(); - } else { - if (scheduleExpressionCase_ == 2) { - return (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.FixedRate rate = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder> - getRateFieldBuilder() { - if (rateBuilder_ == null) { - if (!(scheduleExpressionCase_ == 2)) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.FixedRate.getDefaultInstance(); - } - rateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.FixedRate, flyteidl.admin.ScheduleOuterClass.FixedRate.Builder, flyteidl.admin.ScheduleOuterClass.FixedRateOrBuilder>( - (flyteidl.admin.ScheduleOuterClass.FixedRate) scheduleExpression_, - getParentForChildren(), - isClean()); - scheduleExpression_ = null; - } - scheduleExpressionCase_ = 2; - onChanged();; - return rateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder> cronScheduleBuilder_; - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public boolean hasCronSchedule() { - return scheduleExpressionCase_ == 4; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public flyteidl.admin.ScheduleOuterClass.CronSchedule getCronSchedule() { - if (cronScheduleBuilder_ == null) { - if (scheduleExpressionCase_ == 4) { - return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } else { - if (scheduleExpressionCase_ == 4) { - return cronScheduleBuilder_.getMessage(); - } - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public Builder setCronSchedule(flyteidl.admin.ScheduleOuterClass.CronSchedule value) { - if (cronScheduleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduleExpression_ = value; - onChanged(); - } else { - cronScheduleBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 4; - return this; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public Builder setCronSchedule( - flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder builderForValue) { - if (cronScheduleBuilder_ == null) { - scheduleExpression_ = builderForValue.build(); - onChanged(); - } else { - cronScheduleBuilder_.setMessage(builderForValue.build()); - } - scheduleExpressionCase_ = 4; - return this; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public Builder mergeCronSchedule(flyteidl.admin.ScheduleOuterClass.CronSchedule value) { - if (cronScheduleBuilder_ == null) { - if (scheduleExpressionCase_ == 4 && - scheduleExpression_ != flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance()) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.CronSchedule.newBuilder((flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_) - .mergeFrom(value).buildPartial(); - } else { - scheduleExpression_ = value; - } - onChanged(); - } else { - if (scheduleExpressionCase_ == 4) { - cronScheduleBuilder_.mergeFrom(value); - } - cronScheduleBuilder_.setMessage(value); - } - scheduleExpressionCase_ = 4; - return this; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public Builder clearCronSchedule() { - if (cronScheduleBuilder_ == null) { - if (scheduleExpressionCase_ == 4) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - onChanged(); - } - } else { - if (scheduleExpressionCase_ == 4) { - scheduleExpressionCase_ = 0; - scheduleExpression_ = null; - } - cronScheduleBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder getCronScheduleBuilder() { - return getCronScheduleFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - public flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder getCronScheduleOrBuilder() { - if ((scheduleExpressionCase_ == 4) && (cronScheduleBuilder_ != null)) { - return cronScheduleBuilder_.getMessageOrBuilder(); - } else { - if (scheduleExpressionCase_ == 4) { - return (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_; - } - return flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - } - /** - * .flyteidl.admin.CronSchedule cron_schedule = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder> - getCronScheduleFieldBuilder() { - if (cronScheduleBuilder_ == null) { - if (!(scheduleExpressionCase_ == 4)) { - scheduleExpression_ = flyteidl.admin.ScheduleOuterClass.CronSchedule.getDefaultInstance(); - } - cronScheduleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.ScheduleOuterClass.CronSchedule, flyteidl.admin.ScheduleOuterClass.CronSchedule.Builder, flyteidl.admin.ScheduleOuterClass.CronScheduleOrBuilder>( - (flyteidl.admin.ScheduleOuterClass.CronSchedule) scheduleExpression_, - getParentForChildren(), - isClean()); - scheduleExpression_ = null; - } - scheduleExpressionCase_ = 4; - onChanged();; - return cronScheduleBuilder_; - } - - private java.lang.Object kickoffTimeInputArg_ = ""; - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public java.lang.String getKickoffTimeInputArg() { - java.lang.Object ref = kickoffTimeInputArg_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - kickoffTimeInputArg_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public com.google.protobuf.ByteString - getKickoffTimeInputArgBytes() { - java.lang.Object ref = kickoffTimeInputArg_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - kickoffTimeInputArg_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArg( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - kickoffTimeInputArg_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder clearKickoffTimeInputArg() { - - kickoffTimeInputArg_ = getDefaultInstance().getKickoffTimeInputArg(); - onChanged(); - return this; - } - /** - *
-       * Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off.
-       * 
- * - * string kickoff_time_input_arg = 3; - */ - public Builder setKickoffTimeInputArgBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - kickoffTimeInputArg_ = value; - onChanged(); - return this; - } - @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.Schedule) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Schedule) - private static final flyteidl.admin.ScheduleOuterClass.Schedule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.ScheduleOuterClass.Schedule(); - } - - public static flyteidl.admin.ScheduleOuterClass.Schedule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schedule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schedule(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.ScheduleOuterClass.Schedule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_FixedRate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_CronSchedule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Schedule_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Schedule_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/admin/schedule.proto\022\016flyteid" + - "l.admin\"G\n\tFixedRate\022\r\n\005value\030\001 \001(\r\022+\n\004u" + - "nit\030\002 \001(\0162\035.flyteidl.admin.FixedRateUnit" + - "\"0\n\014CronSchedule\022\020\n\010schedule\030\001 \001(\t\022\016\n\006of" + - "fset\030\002 \001(\t\"\301\001\n\010Schedule\022\035\n\017cron_expressi" + - "on\030\001 \001(\tB\002\030\001H\000\022)\n\004rate\030\002 \001(\0132\031.flyteidl." + - "admin.FixedRateH\000\0225\n\rcron_schedule\030\004 \001(\013" + - "2\034.flyteidl.admin.CronScheduleH\000\022\036\n\026kick" + - "off_time_input_arg\030\003 \001(\tB\024\n\022ScheduleExpr" + - "ession*.\n\rFixedRateUnit\022\n\n\006MINUTE\020\000\022\010\n\004H" + - "OUR\020\001\022\007\n\003DAY\020\002B=Z;github.com/flyteorg/fl" + - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_FixedRate_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_FixedRate_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_FixedRate_descriptor, - new java.lang.String[] { "Value", "Unit", }); - internal_static_flyteidl_admin_CronSchedule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_CronSchedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_CronSchedule_descriptor, - new java.lang.String[] { "Schedule", "Offset", }); - internal_static_flyteidl_admin_Schedule_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Schedule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Schedule_descriptor, - new java.lang.String[] { "CronExpression", "Rate", "CronSchedule", "KickoffTimeInputArg", "ScheduleExpression", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java deleted file mode 100644 index 06cb554d90..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/SignalOuterClass.java +++ /dev/null @@ -1,6128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/signal.proto - -package flyteidl.admin; - -public final class SignalOuterClass { - private SignalOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SignalGetOrCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalGetOrCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - } - /** - *
-   * SignalGetOrCreateRequest represents a request structure to retrieve or create a signal.
-   * See :ref:`ref_flyteidl.admin.Signal` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.SignalGetOrCreateRequest} - */ - public static final class SignalGetOrCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalGetOrCreateRequest) - SignalGetOrCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalGetOrCreateRequest.newBuilder() to construct. - private SignalGetOrCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalGetOrCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalGetOrCreateRequest( - 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.SignalIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.class, flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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()); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - 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()); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - 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.SignalOuterClass.SignalGetOrCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest other = (flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest 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.SignalOuterClass.SignalGetOrCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest 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.SignalOuterClass.SignalGetOrCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest 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.SignalOuterClass.SignalGetOrCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest 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.SignalOuterClass.SignalGetOrCreateRequest 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; - } - /** - *
-     * SignalGetOrCreateRequest represents a request structure to retrieve or create a signal.
-     * See :ref:`ref_flyteidl.admin.Signal` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.SignalGetOrCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalGetOrCreateRequest) - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.class, flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.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; - } - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest build() { - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest buildPartial() { - flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest result = new flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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.SignalOuterClass.SignalGetOrCreateRequest) { - return mergeFrom((flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest other) { - if (other == flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasType()) { - mergeType(other.getType()); - } - 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.SignalOuterClass.SignalGetOrCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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.SignalGetOrCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalGetOrCreateRequest) - private static final flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest(); - } - - public static flyteidl.admin.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalGetOrCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalGetOrCreateRequest(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.SignalOuterClass.SignalGetOrCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - boolean hasWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId(); - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * SignalListRequest represents a request structure to retrieve a collection of signals.
-   * See :ref:`ref_flyteidl.admin.Signal` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.SignalListRequest} - */ - public static final class SignalListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalListRequest) - SignalListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalListRequest.newBuilder() to construct. - private SignalListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalListRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (workflowExecutionId_ != null) { - subBuilder = workflowExecutionId_.toBuilder(); - } - workflowExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowExecutionId_); - workflowExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalListRequest.class, flyteidl.admin.SignalOuterClass.SignalListRequest.Builder.class); - } - - public static final int WORKFLOW_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionId_ != null; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - /** - *
-     * Indicates the workflow execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - return getWorkflowExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (workflowExecutionId_ != null) { - output.writeMessage(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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.SignalOuterClass.SignalListRequest)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.SignalListRequest other = (flyteidl.admin.SignalOuterClass.SignalListRequest) obj; - - if (hasWorkflowExecutionId() != other.hasWorkflowExecutionId()) return false; - if (hasWorkflowExecutionId()) { - if (!getWorkflowExecutionId() - .equals(other.getWorkflowExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasWorkflowExecutionId()) { - hash = (37 * hash) + WORKFLOW_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest 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.SignalOuterClass.SignalListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest 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.SignalOuterClass.SignalListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest 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.SignalOuterClass.SignalListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalListRequest 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.SignalOuterClass.SignalListRequest 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; - } - /** - *
-     * SignalListRequest represents a request structure to retrieve a collection of signals.
-     * See :ref:`ref_flyteidl.admin.Signal` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.SignalListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalListRequest) - flyteidl.admin.SignalOuterClass.SignalListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalListRequest.class, flyteidl.admin.SignalOuterClass.SignalListRequest.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.SignalListRequest.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 (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalListRequest getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.SignalListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalListRequest build() { - flyteidl.admin.SignalOuterClass.SignalListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalListRequest buildPartial() { - flyteidl.admin.SignalOuterClass.SignalListRequest result = new flyteidl.admin.SignalOuterClass.SignalListRequest(this); - if (workflowExecutionIdBuilder_ == null) { - result.workflowExecutionId_ = workflowExecutionId_; - } else { - result.workflowExecutionId_ = workflowExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.SignalOuterClass.SignalListRequest) { - return mergeFrom((flyteidl.admin.SignalOuterClass.SignalListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalListRequest other) { - if (other == flyteidl.admin.SignalOuterClass.SignalListRequest.getDefaultInstance()) return this; - if (other.hasWorkflowExecutionId()) { - mergeWorkflowExecutionId(other.getWorkflowExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.SignalOuterClass.SignalListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.SignalListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionIdBuilder_; - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public boolean hasWorkflowExecutionId() { - return workflowExecutionIdBuilder_ != null || workflowExecutionId_ != null; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - return workflowExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } else { - return workflowExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowExecutionId_ = value; - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder setWorkflowExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder mergeWorkflowExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionIdBuilder_ == null) { - if (workflowExecutionId_ != null) { - workflowExecutionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecutionId_).mergeFrom(value).buildPartial(); - } else { - workflowExecutionId_ = value; - } - onChanged(); - } else { - workflowExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public Builder clearWorkflowExecutionId() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionId_ = null; - onChanged(); - } else { - workflowExecutionId_ = null; - workflowExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionIdBuilder() { - - onChanged(); - return getWorkflowExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionIdOrBuilder() { - if (workflowExecutionIdBuilder_ != null) { - return workflowExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return workflowExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecutionId_; - } - } - /** - *
-       * Indicates the workflow execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionIdFieldBuilder() { - if (workflowExecutionIdBuilder_ == null) { - workflowExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWorkflowExecutionId(), - getParentForChildren(), - isClean()); - workflowExecutionId_ = null; - } - return workflowExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the, server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.SignalListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalListRequest) - private static final flyteidl.admin.SignalOuterClass.SignalListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalListRequest(); - } - - public static flyteidl.admin.SignalOuterClass.SignalListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalListRequest(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.SignalOuterClass.SignalListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - java.util.List - getSignalsList(); - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - flyteidl.admin.SignalOuterClass.Signal getSignals(int index); - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - int getSignalsCount(); - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - java.util.List - getSignalsOrBuilderList(); - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * SignalList represents collection of signals along with the token of the last result.
-   * See :ref:`ref_flyteidl.admin.Signal` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.SignalList} - */ - public static final class SignalList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalList) - SignalListOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalList.newBuilder() to construct. - private SignalList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalList() { - signals_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signals_.add( - input.readMessage(flyteidl.admin.SignalOuterClass.Signal.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signals_ = java.util.Collections.unmodifiableList(signals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalList.class, flyteidl.admin.SignalOuterClass.SignalList.Builder.class); - } - - private int bitField0_; - public static final int SIGNALS_FIELD_NUMBER = 1; - private java.util.List signals_; - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public java.util.List getSignalsList() { - return signals_; - } - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public java.util.List - getSignalsOrBuilderList() { - return signals_; - } - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public int getSignalsCount() { - return signals_.size(); - } - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.Signal getSignals(int index) { - return signals_.get(index); - } - /** - *
-     * A list of signals matching the input filters.
-     * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( - int index) { - return signals_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < signals_.size(); i++) { - output.writeMessage(1, signals_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < signals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, signals_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.SignalOuterClass.SignalList)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.SignalList other = (flyteidl.admin.SignalOuterClass.SignalList) obj; - - if (!getSignalsList() - .equals(other.getSignalsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getSignalsCount() > 0) { - hash = (37 * hash) + SIGNALS_FIELD_NUMBER; - hash = (53 * hash) + getSignalsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalList 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.SignalOuterClass.SignalList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalList 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.SignalOuterClass.SignalList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalList 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.SignalOuterClass.SignalList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalList 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.SignalOuterClass.SignalList 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; - } - /** - *
-     * SignalList represents collection of signals along with the token of the last result.
-     * See :ref:`ref_flyteidl.admin.Signal` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.SignalList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalList) - flyteidl.admin.SignalOuterClass.SignalListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalList.class, flyteidl.admin.SignalOuterClass.SignalList.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.SignalList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSignalsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (signalsBuilder_ == null) { - signals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - signalsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalList getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.SignalList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalList build() { - flyteidl.admin.SignalOuterClass.SignalList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalList buildPartial() { - flyteidl.admin.SignalOuterClass.SignalList result = new flyteidl.admin.SignalOuterClass.SignalList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (signalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - signals_ = java.util.Collections.unmodifiableList(signals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signals_ = signals_; - } else { - result.signals_ = signalsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.SignalOuterClass.SignalList) { - return mergeFrom((flyteidl.admin.SignalOuterClass.SignalList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalList other) { - if (other == flyteidl.admin.SignalOuterClass.SignalList.getDefaultInstance()) return this; - if (signalsBuilder_ == null) { - if (!other.signals_.isEmpty()) { - if (signals_.isEmpty()) { - signals_ = other.signals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignalsIsMutable(); - signals_.addAll(other.signals_); - } - onChanged(); - } - } else { - if (!other.signals_.isEmpty()) { - if (signalsBuilder_.isEmpty()) { - signalsBuilder_.dispose(); - signalsBuilder_ = null; - signals_ = other.signals_; - bitField0_ = (bitField0_ & ~0x00000001); - signalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSignalsFieldBuilder() : null; - } else { - signalsBuilder_.addAllMessages(other.signals_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.SignalOuterClass.SignalList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.SignalList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List signals_ = - java.util.Collections.emptyList(); - private void ensureSignalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signals_ = new java.util.ArrayList(signals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder> signalsBuilder_; - - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public java.util.List getSignalsList() { - if (signalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(signals_); - } else { - return signalsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public int getSignalsCount() { - if (signalsBuilder_ == null) { - return signals_.size(); - } else { - return signalsBuilder_.getCount(); - } - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.Signal getSignals(int index) { - if (signalsBuilder_ == null) { - return signals_.get(index); - } else { - return signalsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder setSignals( - int index, flyteidl.admin.SignalOuterClass.Signal value) { - if (signalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalsIsMutable(); - signals_.set(index, value); - onChanged(); - } else { - signalsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder setSignals( - int index, flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { - if (signalsBuilder_ == null) { - ensureSignalsIsMutable(); - signals_.set(index, builderForValue.build()); - onChanged(); - } else { - signalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder addSignals(flyteidl.admin.SignalOuterClass.Signal value) { - if (signalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalsIsMutable(); - signals_.add(value); - onChanged(); - } else { - signalsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder addSignals( - int index, flyteidl.admin.SignalOuterClass.Signal value) { - if (signalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignalsIsMutable(); - signals_.add(index, value); - onChanged(); - } else { - signalsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder addSignals( - flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { - if (signalsBuilder_ == null) { - ensureSignalsIsMutable(); - signals_.add(builderForValue.build()); - onChanged(); - } else { - signalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder addSignals( - int index, flyteidl.admin.SignalOuterClass.Signal.Builder builderForValue) { - if (signalsBuilder_ == null) { - ensureSignalsIsMutable(); - signals_.add(index, builderForValue.build()); - onChanged(); - } else { - signalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder addAllSignals( - java.lang.Iterable values) { - if (signalsBuilder_ == null) { - ensureSignalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signals_); - onChanged(); - } else { - signalsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder clearSignals() { - if (signalsBuilder_ == null) { - signals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - signalsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public Builder removeSignals(int index) { - if (signalsBuilder_ == null) { - ensureSignalsIsMutable(); - signals_.remove(index); - onChanged(); - } else { - signalsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.Signal.Builder getSignalsBuilder( - int index) { - return getSignalsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.SignalOrBuilder getSignalsOrBuilder( - int index) { - if (signalsBuilder_ == null) { - return signals_.get(index); } else { - return signalsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public java.util.List - getSignalsOrBuilderList() { - if (signalsBuilder_ != null) { - return signalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signals_); - } - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.Signal.Builder addSignalsBuilder() { - return getSignalsFieldBuilder().addBuilder( - flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()); - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public flyteidl.admin.SignalOuterClass.Signal.Builder addSignalsBuilder( - int index) { - return getSignalsFieldBuilder().addBuilder( - index, flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()); - } - /** - *
-       * A list of signals matching the input filters.
-       * 
- * - * repeated .flyteidl.admin.Signal signals = 1; - */ - public java.util.List - getSignalsBuilderList() { - return getSignalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder> - getSignalsFieldBuilder() { - if (signalsBuilder_ == null) { - signalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.SignalOuterClass.Signal, flyteidl.admin.SignalOuterClass.Signal.Builder, flyteidl.admin.SignalOuterClass.SignalOrBuilder>( - signals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - signals_ = null; - } - return signalsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.SignalList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalList) - private static final flyteidl.admin.SignalOuterClass.SignalList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalList(); - } - - public static flyteidl.admin.SignalOuterClass.SignalList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalList(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.SignalOuterClass.SignalList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - boolean hasValue(); - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - flyteidl.core.Literals.Literal getValue(); - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); - } - /** - *
-   * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal
-   * effetively satisfies the signal condition within a Flyte workflow.
-   * See :ref:`ref_flyteidl.admin.Signal` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.SignalSetRequest} - */ - public static final class SignalSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalSetRequest) - SignalSetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalSetRequest.newBuilder() to construct. - private SignalSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalSetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalSetRequest( - 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.SignalIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = 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.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalSetRequest.class, flyteidl.admin.SignalOuterClass.SignalSetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int VALUE_FIELD_NUMBER = 2; - private flyteidl.core.Literals.Literal value_; - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - public boolean hasValue() { - return value_ != null; - } - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - /** - *
-     * The value of this signal, must match the defining signal type.
-     * 
- * - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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()); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - 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()); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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.SignalOuterClass.SignalSetRequest)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.SignalSetRequest other = (flyteidl.admin.SignalOuterClass.SignalSetRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest 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.SignalOuterClass.SignalSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest 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.SignalOuterClass.SignalSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest 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.SignalOuterClass.SignalSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetRequest 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.SignalOuterClass.SignalSetRequest 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; - } - /** - *
-     * SignalSetRequest represents a request structure to set the value on a signal. Setting a signal
-     * effetively satisfies the signal condition within a Flyte workflow.
-     * See :ref:`ref_flyteidl.admin.Signal` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.SignalSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalSetRequest) - flyteidl.admin.SignalOuterClass.SignalSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalSetRequest.class, flyteidl.admin.SignalOuterClass.SignalSetRequest.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.SignalSetRequest.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; - } - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetRequest getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.SignalSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetRequest build() { - flyteidl.admin.SignalOuterClass.SignalSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetRequest buildPartial() { - flyteidl.admin.SignalOuterClass.SignalSetRequest result = new flyteidl.admin.SignalOuterClass.SignalSetRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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.SignalOuterClass.SignalSetRequest) { - return mergeFrom((flyteidl.admin.SignalOuterClass.SignalSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalSetRequest other) { - if (other == flyteidl.admin.SignalOuterClass.SignalSetRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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.SignalOuterClass.SignalSetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.SignalSetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.core.Literals.Literal value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - } - /** - *
-       * The value of this signal, must match the defining signal type.
-       * 
- * - * .flyteidl.core.Literal value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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.SignalSetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetRequest) - private static final flyteidl.admin.SignalOuterClass.SignalSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalSetRequest(); - } - - public static flyteidl.admin.SignalOuterClass.SignalSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalSetRequest(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.SignalOuterClass.SignalSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalSetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.SignalSetResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * SignalSetResponse represents a response structure if signal setting succeeds.
-   * 
- * - * Protobuf type {@code flyteidl.admin.SignalSetResponse} - */ - public static final class SignalSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.SignalSetResponse) - SignalSetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalSetResponse.newBuilder() to construct. - private SignalSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalSetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalSetResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalSetResponse.class, flyteidl.admin.SignalOuterClass.SignalSetResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.SignalOuterClass.SignalSetResponse)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.SignalSetResponse other = (flyteidl.admin.SignalOuterClass.SignalSetResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse 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.SignalOuterClass.SignalSetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse 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.SignalOuterClass.SignalSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse 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.SignalOuterClass.SignalSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.SignalSetResponse 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.SignalOuterClass.SignalSetResponse 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; - } - /** - *
-     * SignalSetResponse represents a response structure if signal setting succeeds.
-     * 
- * - * Protobuf type {@code flyteidl.admin.SignalSetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.SignalSetResponse) - flyteidl.admin.SignalOuterClass.SignalSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.SignalSetResponse.class, flyteidl.admin.SignalOuterClass.SignalSetResponse.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.SignalSetResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_SignalSetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetResponse getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.SignalSetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetResponse build() { - flyteidl.admin.SignalOuterClass.SignalSetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.SignalSetResponse buildPartial() { - flyteidl.admin.SignalOuterClass.SignalSetResponse result = new flyteidl.admin.SignalOuterClass.SignalSetResponse(this); - 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.SignalOuterClass.SignalSetResponse) { - return mergeFrom((flyteidl.admin.SignalOuterClass.SignalSetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.SignalSetResponse other) { - if (other == flyteidl.admin.SignalOuterClass.SignalSetResponse.getDefaultInstance()) return this; - 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.SignalOuterClass.SignalSetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.SignalSetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.SignalSetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.SignalSetResponse) - private static final flyteidl.admin.SignalOuterClass.SignalSetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.SignalSetResponse(); - } - - public static flyteidl.admin.SignalOuterClass.SignalSetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalSetResponse(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.SignalOuterClass.SignalSetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Signal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifier getId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - boolean hasValue(); - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - flyteidl.core.Literals.Literal getValue(); - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); - } - /** - *
-   * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte
-   * signal. Signals may exist either without a set value (representing a signal request) or with a
-   * populated value (indicating the signal has been given).
-   * 
- * - * Protobuf type {@code flyteidl.admin.Signal} - */ - public static final class Signal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Signal) - SignalOrBuilder { - private static final long serialVersionUID = 0L; - // Use Signal.newBuilder() to construct. - private Signal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Signal() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Signal( - 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.SignalIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.SignalIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = 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.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.Signal.class, flyteidl.admin.SignalOuterClass.Signal.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int VALUE_FIELD_NUMBER = 3; - private flyteidl.core.Literals.Literal value_; - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - public boolean hasValue() { - return value_ != null; - } - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - /** - *
-     * The value of the signal. This is only available if the signal has been "set" and must match
-     * the defined the type.
-     * 
- * - * .flyteidl.core.Literal value = 3; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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()); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (value_ != null) { - output.writeMessage(3, getValue()); - } - 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()); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getValue()); - } - 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.SignalOuterClass.Signal)) { - return super.equals(obj); - } - flyteidl.admin.SignalOuterClass.Signal other = (flyteidl.admin.SignalOuterClass.Signal) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.SignalOuterClass.Signal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.Signal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.Signal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.Signal 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.SignalOuterClass.Signal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.SignalOuterClass.Signal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.SignalOuterClass.Signal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.Signal 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.SignalOuterClass.Signal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.Signal 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.SignalOuterClass.Signal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.SignalOuterClass.Signal 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.SignalOuterClass.Signal 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; - } - /** - *
-     * Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte
-     * signal. Signals may exist either without a set value (representing a signal request) or with a
-     * populated value (indicating the signal has been given).
-     * 
- * - * Protobuf type {@code flyteidl.admin.Signal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Signal) - flyteidl.admin.SignalOuterClass.SignalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.SignalOuterClass.Signal.class, flyteidl.admin.SignalOuterClass.Signal.Builder.class); - } - - // Construct using flyteidl.admin.SignalOuterClass.Signal.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; - } - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.SignalOuterClass.internal_static_flyteidl_admin_Signal_descriptor; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.Signal getDefaultInstanceForType() { - return flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.Signal build() { - flyteidl.admin.SignalOuterClass.Signal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.SignalOuterClass.Signal buildPartial() { - flyteidl.admin.SignalOuterClass.Signal result = new flyteidl.admin.SignalOuterClass.Signal(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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.SignalOuterClass.Signal) { - return mergeFrom((flyteidl.admin.SignalOuterClass.Signal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.SignalOuterClass.Signal other) { - if (other == flyteidl.admin.SignalOuterClass.Signal.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasType()) { - mergeType(other.getType()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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.SignalOuterClass.Signal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.SignalOuterClass.Signal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.SignalIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> idBuilder_; - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.SignalIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.SignalIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * .flyteidl.core.SignalIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.SignalIdentifier, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder, flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private flyteidl.core.Literals.Literal value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - } - /** - *
-       * The value of the signal. This is only available if the signal has been "set" and must match
-       * the defined the type.
-       * 
- * - * .flyteidl.core.Literal value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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.Signal) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Signal) - private static final flyteidl.admin.SignalOuterClass.Signal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.SignalOuterClass.Signal(); - } - - public static flyteidl.admin.SignalOuterClass.Signal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Signal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Signal(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.SignalOuterClass.Signal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SignalListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SignalList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SignalList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SignalSetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_SignalSetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Signal_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Signal_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/admin/signal.proto\022\016flyteidl." + - "admin\032\033flyteidl/admin/common.proto\032\036flyt" + - "eidl/core/identifier.proto\032\034flyteidl/cor" + - "e/literals.proto\032\031flyteidl/core/types.pr" + - "oto\"q\n\030SignalGetOrCreateRequest\022+\n\002id\030\001 " + - "\001(\0132\037.flyteidl.core.SignalIdentifier\022(\n\004" + - "type\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\264" + - "\001\n\021SignalListRequest\022I\n\025workflow_executi" + - "on_id\030\001 \001(\0132*.flyteidl.core.WorkflowExec" + - "utionIdentifier\022\r\n\005limit\030\002 \001(\r\022\r\n\005token\030" + - "\003 \001(\t\022\017\n\007filters\030\004 \001(\t\022%\n\007sort_by\030\005 \001(\0132" + - "\024.flyteidl.admin.Sort\"D\n\nSignalList\022\'\n\007s" + - "ignals\030\001 \003(\0132\026.flyteidl.admin.Signal\022\r\n\005" + - "token\030\002 \001(\t\"f\n\020SignalSetRequest\022+\n\002id\030\001 " + - "\001(\0132\037.flyteidl.core.SignalIdentifier\022%\n\005" + - "value\030\002 \001(\0132\026.flyteidl.core.Literal\"\023\n\021S" + - "ignalSetResponse\"\206\001\n\006Signal\022+\n\002id\030\001 \001(\0132" + - "\037.flyteidl.core.SignalIdentifier\022(\n\004type" + - "\030\002 \001(\0132\032.flyteidl.core.LiteralType\022%\n\005va" + - "lue\030\003 \001(\0132\026.flyteidl.core.LiteralB=Z;git" + - "hub.com/flyteorg/flyte/flyteidl/gen/pb-g" + - "o/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_SignalGetOrCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SignalGetOrCreateRequest_descriptor, - new java.lang.String[] { "Id", "Type", }); - internal_static_flyteidl_admin_SignalListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_SignalListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SignalListRequest_descriptor, - new java.lang.String[] { "WorkflowExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_SignalList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_SignalList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SignalList_descriptor, - new java.lang.String[] { "Signals", "Token", }); - internal_static_flyteidl_admin_SignalSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_SignalSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SignalSetRequest_descriptor, - new java.lang.String[] { "Id", "Value", }); - internal_static_flyteidl_admin_SignalSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_SignalSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_SignalSetResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Signal_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_Signal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Signal_descriptor, - new java.lang.String[] { "Id", "Type", "Value", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java deleted file mode 100644 index 9fe3947f83..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/TaskExecutionOuterClass.java +++ /dev/null @@ -1,12107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task_execution.proto - -package flyteidl.admin; - -public final class TaskExecutionOuterClass { - private TaskExecutionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskExecutionGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * A message used to fetch a single task execution entity.
-   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class TaskExecutionGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetRequest) - TaskExecutionGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetRequest.newBuilder() to construct. - private TaskExecutionGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetRequest( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder 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.TaskExecutionOuterClass.TaskExecutionGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest 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.TaskExecutionOuterClass.TaskExecutionGetRequest 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; - } - /** - *
-     * A message used to fetch a single task execution entity.
-     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(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.TaskExecutionOuterClass.TaskExecutionGetRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest.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.TaskExecutionOuterClass.TaskExecutionGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - 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.TaskExecutionGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetRequest(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.TaskExecutionOuterClass.TaskExecutionGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionListRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - boolean hasNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - int getLimit(); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - java.lang.String getFilters(); - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - com.google.protobuf.ByteString - getFiltersBytes(); - - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - boolean hasSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.Sort getSortBy(); - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder(); - } - /** - *
-   * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution.
-   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class TaskExecutionListRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionListRequest) - TaskExecutionListRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionListRequest.newBuilder() to construct. - private TaskExecutionListRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionListRequest() { - token_ = ""; - filters_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionListRequest( - 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.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - limit_ = input.readUInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - filters_ = s; - break; - } - case 42: { - flyteidl.admin.Common.Sort.Builder subBuilder = null; - if (sortBy_ != null) { - subBuilder = sortBy_.toBuilder(); - } - sortBy_ = input.readMessage(flyteidl.admin.Common.Sort.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sortBy_); - sortBy_ = 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - *
-     * Indicates the node execution to filter by.
-     * +required
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private int limit_; - /** - *
-     * Indicates the number of resources to be returned.
-     * +required
-     * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - - public static final int TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query.
-     * +optional
-     * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTERS_FIELD_NUMBER = 4; - private volatile java.lang.Object filters_; - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } - } - /** - *
-     * Indicates a list of filters passed as string.
-     * More info on constructing filters : <Link>
-     * +optional
-     * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SORT_BY_FIELD_NUMBER = 5; - private flyteidl.admin.Common.Sort sortBy_; - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortBy_ != null; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - /** - *
-     * Sort ordering for returned list.
-     * +optional
-     * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - return getSortBy(); - } - - 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 (nodeExecutionId_ != null) { - output.writeMessage(1, getNodeExecutionId()); - } - if (limit_ != 0) { - output.writeUInt32(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, token_); - } - if (!getFiltersBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filters_); - } - if (sortBy_ != null) { - output.writeMessage(5, getSortBy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNodeExecutionId()); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, limit_); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, token_); - } - if (!getFiltersBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filters_); - } - if (sortBy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getSortBy()); - } - 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.TaskExecutionOuterClass.TaskExecutionListRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) obj; - - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getLimit() - != other.getLimit()) return false; - if (!getToken() - .equals(other.getToken())) return false; - if (!getFilters() - .equals(other.getFilters())) return false; - if (hasSortBy() != other.hasSortBy()) return false; - if (hasSortBy()) { - if (!getSortBy() - .equals(other.getSortBy())) 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 (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getFilters().hashCode(); - if (hasSortBy()) { - hash = (37 * hash) + SORT_BY_FIELD_NUMBER; - hash = (53 * hash) + getSortBy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest 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.TaskExecutionOuterClass.TaskExecutionListRequest 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; - } - /** - *
-     * Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution.
-     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionListRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionListRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.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 (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - limit_ = 0; - - token_ = ""; - - filters_ = ""; - - if (sortByBuilder_ == null) { - sortBy_ = null; - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(this); - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.limit_ = limit_; - result.token_ = token_; - result.filters_ = filters_; - if (sortByBuilder_ == null) { - result.sortBy_ = sortBy_; - } else { - result.sortBy_ = sortByBuilder_.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.TaskExecutionOuterClass.TaskExecutionListRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest.getDefaultInstance()) return this; - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (!other.getFilters().isEmpty()) { - filters_ = other.filters_; - onChanged(); - } - if (other.hasSortBy()) { - mergeSortBy(other.getSortBy()); - } - 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.TaskExecutionOuterClass.TaskExecutionListRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - *
-       * Indicates the node execution to filter by.
-       * +required
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int limit_ ; - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public int getLimit() { - return limit_; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates the number of resources to be returned.
-       * +required
-       * 
- * - * uint32 limit = 2; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query.
-       * +optional
-       * 
- * - * string token = 3; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private java.lang.Object filters_ = ""; - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public java.lang.String getFilters() { - java.lang.Object ref = filters_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filters_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public com.google.protobuf.ByteString - getFiltersBytes() { - java.lang.Object ref = filters_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filters_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFilters( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filters_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder clearFilters() { - - filters_ = getDefaultInstance().getFilters(); - onChanged(); - return this; - } - /** - *
-       * Indicates a list of filters passed as string.
-       * More info on constructing filters : <Link>
-       * +optional
-       * 
- * - * string filters = 4; - */ - public Builder setFiltersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filters_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.Common.Sort sortBy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> sortByBuilder_; - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public boolean hasSortBy() { - return sortByBuilder_ != null || sortBy_ != null; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort getSortBy() { - if (sortByBuilder_ == null) { - return sortBy_ == null ? flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } else { - return sortByBuilder_.getMessage(); - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sortBy_ = value; - onChanged(); - } else { - sortByBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder setSortBy( - flyteidl.admin.Common.Sort.Builder builderForValue) { - if (sortByBuilder_ == null) { - sortBy_ = builderForValue.build(); - onChanged(); - } else { - sortByBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder mergeSortBy(flyteidl.admin.Common.Sort value) { - if (sortByBuilder_ == null) { - if (sortBy_ != null) { - sortBy_ = - flyteidl.admin.Common.Sort.newBuilder(sortBy_).mergeFrom(value).buildPartial(); - } else { - sortBy_ = value; - } - onChanged(); - } else { - sortByBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public Builder clearSortBy() { - if (sortByBuilder_ == null) { - sortBy_ = null; - onChanged(); - } else { - sortBy_ = null; - sortByBuilder_ = null; - } - - return this; - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.Sort.Builder getSortByBuilder() { - - onChanged(); - return getSortByFieldBuilder().getBuilder(); - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - public flyteidl.admin.Common.SortOrBuilder getSortByOrBuilder() { - if (sortByBuilder_ != null) { - return sortByBuilder_.getMessageOrBuilder(); - } else { - return sortBy_ == null ? - flyteidl.admin.Common.Sort.getDefaultInstance() : sortBy_; - } - } - /** - *
-       * Sort ordering for returned list.
-       * +optional
-       * 
- * - * .flyteidl.admin.Sort sort_by = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder> - getSortByFieldBuilder() { - if (sortByBuilder_ == null) { - sortByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.Sort, flyteidl.admin.Common.Sort.Builder, flyteidl.admin.Common.SortOrBuilder>( - getSortBy(), - getParentForChildren(), - isClean()); - sortBy_ = null; - } - return sortByBuilder_; - } - @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.TaskExecutionListRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionListRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionListRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionListRequest(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.TaskExecutionOuterClass.TaskExecutionListRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecution) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - java.lang.String getInputUri(); - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - boolean hasClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure(); - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - boolean getIsParent(); - } - /** - *
-   * Encapsulates all details for a single task execution entity.
-   * A task execution represents an instantiated task, including all inputs and additional
-   * metadata as well as computed results included state, outputs, and duration-based attributes.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - inputUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputUri_ = s; - break; - } - case 26: { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - isParent_ = input.readBool(); - 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for the task execution.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object inputUri_; - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } - } - /** - *
-     * Path to remote data store where input blob is stored.
-     * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLOSURE_FIELD_NUMBER = 3; - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - /** - *
-     * Task execution details and results.
-     * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int IS_PARENT_FIELD_NUMBER = 4; - private boolean isParent_; - /** - *
-     * Whether this task spawned nodes.
-     * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - - 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()); - } - if (!getInputUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputUri_); - } - if (closure_ != null) { - output.writeMessage(3, getClosure()); - } - if (isParent_ != false) { - output.writeBool(4, isParent_); - } - 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()); - } - if (!getInputUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputUri_); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClosure()); - } - if (isParent_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, isParent_); - } - 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.TaskExecutionOuterClass.TaskExecution)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecution other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (getIsParent() - != other.getIsParent()) 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 = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsParent()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution 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.TaskExecutionOuterClass.TaskExecution 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; - } - /** - *
-     * Encapsulates all details for a single task execution entity.
-     * A task execution represents an instantiated task, including all inputs and additional
-     * metadata as well as computed results included state, outputs, and duration-based attributes.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecution) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecution.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; - } - inputUri_ = ""; - - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - isParent_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecution result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.inputUri_ = inputUri_; - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - result.isParent_ = isParent_; - 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.TaskExecutionOuterClass.TaskExecution) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecution other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getInputUri().isEmpty()) { - inputUri_ = other.inputUri_; - onChanged(); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (other.getIsParent() != false) { - setIsParent(other.getIsParent()); - } - 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.TaskExecutionOuterClass.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for the task execution.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object inputUri_ = ""; - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = inputUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = inputUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder clearInputUri() { - - inputUri_ = getDefaultInstance().getInputUri(); - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where input blob is stored.
-       * 
- * - * string input_uri = 2; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputUri_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> closureBuilder_; - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder setClosure( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder mergeClosure(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * Task execution details and results.
-       * 
- * - * .flyteidl.admin.TaskExecutionClosure closure = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private boolean isParent_ ; - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public boolean getIsParent() { - return isParent_; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder setIsParent(boolean value) { - - isParent_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this task spawned nodes.
-       * 
- * - * bool is_parent = 4; - */ - public Builder clearIsParent() { - - isParent_ = false; - onChanged(); - return this; - } - @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.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecution) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecution(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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.TaskExecutionOuterClass.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - int getTaskExecutionsCount(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - java.util.List - getTaskExecutionsOrBuilderList(); - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Response structure for a query to list of task execution entities.
-   * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class TaskExecutionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionList) - TaskExecutionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionList.newBuilder() to construct. - private TaskExecutionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionList() { - taskExecutions_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - taskExecutions_.add( - input.readMessage(flyteidl.admin.TaskExecutionOuterClass.TaskExecution.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - private int bitField0_; - public static final int TASK_EXECUTIONS_FIELD_NUMBER = 1; - private java.util.List taskExecutions_; - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - return taskExecutions_; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - return taskExecutions_.size(); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - return taskExecutions_.get(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - return taskExecutions_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < taskExecutions_.size(); i++) { - output.writeMessage(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < taskExecutions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, taskExecutions_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.TaskExecutionOuterClass.TaskExecutionList)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) obj; - - if (!getTaskExecutionsList() - .equals(other.getTaskExecutionsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTaskExecutionsCount() > 0) { - hash = (37 * hash) + TASK_EXECUTIONS_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecutionsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList 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.TaskExecutionOuterClass.TaskExecutionList 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; - } - /** - *
-     * Response structure for a query to list of task execution entities.
-     * See :ref:`ref_flyteidl.admin.TaskExecution` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionList) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTaskExecutionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - taskExecutionsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskExecutionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = java.util.Collections.unmodifiableList(taskExecutions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taskExecutions_ = taskExecutions_; - } else { - result.taskExecutions_ = taskExecutionsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.TaskExecutionOuterClass.TaskExecutionList) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList.getDefaultInstance()) return this; - if (taskExecutionsBuilder_ == null) { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutions_.isEmpty()) { - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaskExecutionsIsMutable(); - taskExecutions_.addAll(other.taskExecutions_); - } - onChanged(); - } - } else { - if (!other.taskExecutions_.isEmpty()) { - if (taskExecutionsBuilder_.isEmpty()) { - taskExecutionsBuilder_.dispose(); - taskExecutionsBuilder_ = null; - taskExecutions_ = other.taskExecutions_; - bitField0_ = (bitField0_ & ~0x00000001); - taskExecutionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTaskExecutionsFieldBuilder() : null; - } else { - taskExecutionsBuilder_.addAllMessages(other.taskExecutions_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.TaskExecutionOuterClass.TaskExecutionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List taskExecutions_ = - java.util.Collections.emptyList(); - private void ensureTaskExecutionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taskExecutions_ = new java.util.ArrayList(taskExecutions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> taskExecutionsBuilder_; - - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List getTaskExecutionsList() { - if (taskExecutionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(taskExecutions_); - } else { - return taskExecutionsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public int getTaskExecutionsCount() { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.size(); - } else { - return taskExecutionsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution getTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); - } else { - return taskExecutionsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder setTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.set(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions(flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution value) { - if (taskExecutionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, value); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addTaskExecutions( - int index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder builderForValue) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.add(index, builderForValue.build()); - onChanged(); - } else { - taskExecutionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder addAllTaskExecutions( - java.lang.Iterable values) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, taskExecutions_); - onChanged(); - } else { - taskExecutionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder clearTaskExecutions() { - if (taskExecutionsBuilder_ == null) { - taskExecutions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taskExecutionsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public Builder removeTaskExecutions(int index) { - if (taskExecutionsBuilder_ == null) { - ensureTaskExecutionsIsMutable(); - taskExecutions_.remove(index); - onChanged(); - } else { - taskExecutionsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder getTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder getTaskExecutionsOrBuilder( - int index) { - if (taskExecutionsBuilder_ == null) { - return taskExecutions_.get(index); } else { - return taskExecutionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsOrBuilderList() { - if (taskExecutionsBuilder_ != null) { - return taskExecutionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taskExecutions_); - } - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder() { - return getTaskExecutionsFieldBuilder().addBuilder( - flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder addTaskExecutionsBuilder( - int index) { - return getTaskExecutionsFieldBuilder().addBuilder( - index, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.getDefaultInstance()); - } - /** - * repeated .flyteidl.admin.TaskExecution task_executions = 1; - */ - public java.util.List - getTaskExecutionsBuilderList() { - return getTaskExecutionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder> - getTaskExecutionsFieldBuilder() { - if (taskExecutionsBuilder_ == null) { - taskExecutionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.TaskExecution, flyteidl.admin.TaskExecutionOuterClass.TaskExecution.Builder, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionOrBuilder>( - taskExecutions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - taskExecutions_ = null; - } - return taskExecutionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.TaskExecutionList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionList) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionList(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.TaskExecutionOuterClass.TaskExecutionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getOutputUri(); - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - boolean hasError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputData(); - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - int getLogsCount(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - boolean hasStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.Timestamp getStartedAt(); - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); - - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - boolean hasUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.Timestamp getUpdatedAt(); - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder(); - - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - /** - *
-     * If there is an explanation for the most recent phase transition, the reason will capture it.
-     * 
- * - * string reason = 10; - */ - java.lang.String getReason(); - /** - *
-     * If there is an explanation for the most recent phase transition, the reason will capture it.
-     * 
- * - * string reason = 10; - */ - com.google.protobuf.ByteString - getReasonBytes(); - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 11; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 11; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - boolean hasMetadata(); - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - flyteidl.event.Event.TaskExecutionMetadata getMetadata(); - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * The event version is used to indicate versioned changes in how data is maintained using this
-     * proto message. For example, event_verison > 0 means that maps tasks logs use the
-     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-     * in this message.
-     * 
- * - * int32 event_version = 17; - */ - int getEventVersion(); - - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - java.util.List - getReasonsList(); - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index); - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - int getReasonsCount(); - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - java.util.List - getReasonsOrBuilderList(); - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( - int index); - - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Container for task execution details and results.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class TaskExecutionClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionClosure) - TaskExecutionClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionClosure.newBuilder() to construct. - private TaskExecutionClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionClosure() { - phase_ = 0; - logs_ = java.util.Collections.emptyList(); - reason_ = ""; - taskType_ = ""; - reasons_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionClosure( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 1; - outputResult_ = s; - break; - } - case 18: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startedAt_ != null) { - subBuilder = startedAt_.toBuilder(); - } - startedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startedAt_); - startedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (updatedAt_ != null) { - subBuilder = updatedAt_.toBuilder(); - } - updatedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updatedAt_); - updatedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - reason_ = s; - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 98: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 12) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 12; - break; - } - case 130: { - flyteidl.event.Event.TaskExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.event.Event.TaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 136: { - - eventVersion_ = input.readInt32(); - break; - } - case 146: { - if (!((mutable_bitField0_ & 0x00004000) != 0)) { - reasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00004000; - } - reasons_.add( - input.readMessage(flyteidl.admin.TaskExecutionOuterClass.Reason.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000010) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - if (((mutable_bitField0_ & 0x00004000) != 0)) { - reasons_ = java.util.Collections.unmodifiableList(reasons_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - private int bitField0_; - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated OUTPUT_URI(1), - ERROR(2), - @java.lang.Deprecated OUTPUT_DATA(12), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 1: return OUTPUT_URI; - case 2: return ERROR; - case 12: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 1; - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 2; - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the task execution. Populated if the execution failed.
-     * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 12; - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 12; - } - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 12) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this task execution.
-     * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 12) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * The last recorded phase for this task execution.
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int LOGS_FIELD_NUMBER = 4; - private java.util.List logs_; - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * Detailed log information output by the task execution.
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int STARTED_AT_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp startedAt_; - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAt_ != null; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - /** - *
-     * Time at which the task execution began running.
-     * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - return getStartedAt(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - private com.google.protobuf.Duration duration_; - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The amount of time the task execution spent running.
-     * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task execution was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - public static final int UPDATED_AT_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updatedAt_; - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAt_ != null; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - /** - *
-     * Time at which the task execution was last updated.
-     * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - return getUpdatedAt(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 9; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data specific to the task plugin.
-     * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - public static final int REASON_FIELD_NUMBER = 10; - private volatile java.lang.Object reason_; - /** - *
-     * If there is an explanation for the most recent phase transition, the reason will capture it.
-     * 
- * - * string reason = 10; - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - *
-     * If there is an explanation for the most recent phase transition, the reason will capture it.
-     * 
- * - * string reason = 10; - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_TYPE_FIELD_NUMBER = 11; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 11; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 11; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 16; - private flyteidl.event.Event.TaskExecutionMetadata metadata_; - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int EVENT_VERSION_FIELD_NUMBER = 17; - private int eventVersion_; - /** - *
-     * The event version is used to indicate versioned changes in how data is maintained using this
-     * proto message. For example, event_verison > 0 means that maps tasks logs use the
-     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-     * in this message.
-     * 
- * - * int32 event_version = 17; - */ - public int getEventVersion() { - return eventVersion_; - } - - public static final int REASONS_FIELD_NUMBER = 18; - private java.util.List reasons_; - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public java.util.List getReasonsList() { - return reasons_; - } - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public java.util.List - getReasonsOrBuilderList() { - return reasons_; - } - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public int getReasonsCount() { - return reasons_.size(); - } - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index) { - return reasons_.get(index); - } - /** - *
-     * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-     * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-     * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( - int index) { - return reasons_.get(index); - } - - 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 (outputResultCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputResult_); - } - if (outputResultCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(4, logs_.get(i)); - } - if (startedAt_ != null) { - output.writeMessage(5, getStartedAt()); - } - if (duration_ != null) { - output.writeMessage(6, getDuration()); - } - if (createdAt_ != null) { - output.writeMessage(7, getCreatedAt()); - } - if (updatedAt_ != null) { - output.writeMessage(8, getUpdatedAt()); - } - if (customInfo_ != null) { - output.writeMessage(9, getCustomInfo()); - } - if (!getReasonBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, reason_); - } - if (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, taskType_); - } - if (outputResultCase_ == 12) { - output.writeMessage(12, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (metadata_ != null) { - output.writeMessage(16, getMetadata()); - } - if (eventVersion_ != 0) { - output.writeInt32(17, eventVersion_); - } - for (int i = 0; i < reasons_.size(); i++) { - output.writeMessage(18, reasons_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (outputResultCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, outputResult_); - } - if (outputResultCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, logs_.get(i)); - } - if (startedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getStartedAt()); - } - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDuration()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreatedAt()); - } - if (updatedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdatedAt()); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getCustomInfo()); - } - if (!getReasonBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, reason_); - } - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, taskType_); - } - if (outputResultCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getMetadata()); - } - if (eventVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, eventVersion_); - } - for (int i = 0; i < reasons_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, reasons_.get(i)); - } - 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.TaskExecutionOuterClass.TaskExecutionClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) obj; - - if (phase_ != other.phase_) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasStartedAt() != other.hasStartedAt()) return false; - if (hasStartedAt()) { - if (!getStartedAt() - .equals(other.getStartedAt())) return false; - } - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) return false; - } - if (hasUpdatedAt() != other.hasUpdatedAt()) return false; - if (hasUpdatedAt()) { - if (!getUpdatedAt() - .equals(other.getUpdatedAt())) return false; - } - if (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (!getReason() - .equals(other.getReason())) return false; - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (getEventVersion() - != other.getEventVersion()) return false; - if (!getReasonsList() - .equals(other.getReasonsList())) return false; - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 1: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 2: - if (!getError() - .equals(other.getError())) return false; - break; - case 12: - if (!getOutputData() - .equals(other.getOutputData())) 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(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasStartedAt()) { - hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getStartedAt().hashCode(); - } - if (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - if (hasUpdatedAt()) { - hash = (37 * hash) + UPDATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getUpdatedAt().hashCode(); - } - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getEventVersion(); - if (getReasonsCount() > 0) { - hash = (37 * hash) + REASONS_FIELD_NUMBER; - hash = (53 * hash) + getReasonsList().hashCode(); - } - switch (outputResultCase_) { - case 1: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 2: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 12: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure 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.TaskExecutionOuterClass.TaskExecutionClosure 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; - } - /** - *
-     * Container for task execution details and results.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionClosure) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - getReasonsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - phase_ = 0; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - logsBuilder_.clear(); - } - if (startedAtBuilder_ == null) { - startedAt_ = null; - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - if (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - reason_ = ""; - - taskType_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - eventVersion_ = 0; - - if (reasonsBuilder_ == null) { - reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - } else { - reasonsBuilder_.clear(); - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (outputResultCase_ == 1) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 2) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 12) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - result.phase_ = phase_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (startedAtBuilder_ == null) { - result.startedAt_ = startedAt_; - } else { - result.startedAt_ = startedAtBuilder_.build(); - } - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.build(); - } - if (updatedAtBuilder_ == null) { - result.updatedAt_ = updatedAt_; - } else { - result.updatedAt_ = updatedAtBuilder_.build(); - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.reason_ = reason_; - result.taskType_ = taskType_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.eventVersion_ = eventVersion_; - if (reasonsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { - reasons_ = java.util.Collections.unmodifiableList(reasons_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.reasons_ = reasons_; - } else { - result.reasons_ = reasonsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.outputResultCase_ = outputResultCase_; - 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.TaskExecutionOuterClass.TaskExecutionClosure) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure.getDefaultInstance()) return this; - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000010); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasStartedAt()) { - mergeStartedAt(other.getStartedAt()); - } - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - if (other.hasUpdatedAt()) { - mergeUpdatedAt(other.getUpdatedAt()); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - onChanged(); - } - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.getEventVersion() != 0) { - setEventVersion(other.getEventVersion()); - } - if (reasonsBuilder_ == null) { - if (!other.reasons_.isEmpty()) { - if (reasons_.isEmpty()) { - reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureReasonsIsMutable(); - reasons_.addAll(other.reasons_); - } - onChanged(); - } - } else { - if (!other.reasons_.isEmpty()) { - if (reasonsBuilder_.isEmpty()) { - reasonsBuilder_.dispose(); - reasonsBuilder_ = null; - reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00004000); - reasonsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReasonsFieldBuilder() : null; - } else { - reasonsBuilder_.addAllMessages(other.reasons_); - } - } - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 1; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_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.TaskExecutionOuterClass.TaskExecutionClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 1) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 1) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 1) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputUri() { - if (outputResultCase_ == 1) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Path to remote data store where output blob is stored if the execution succeeded (and produced outputs).
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * string output_uri = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 1; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public boolean hasError() { - return outputResultCase_ == 2; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 2) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 2) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 2; - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 2) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 2) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 2) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the task execution. Populated if the execution failed.
-       * 
- * - * .flyteidl.core.ExecutionError error = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 2)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 2; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputData() { - return outputResultCase_ == 12; - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 12) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 12) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 12 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 12) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 12; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 12) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 12) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 12) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this task execution.
-       * DEPRECATED. Use GetTaskExecutionData to fetch output data instead.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 12 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 12)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 12; - onChanged();; - return outputDataBuilder_; - } - - private int phase_ = 0; - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The last recorded phase for this task execution.
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * Detailed log information output by the task execution.
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 4; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp startedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public boolean hasStartedAt() { - return startedAtBuilder_ != null || startedAt_ != null; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp getStartedAt() { - if (startedAtBuilder_ == null) { - return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } else { - return startedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startedAt_ = value; - onChanged(); - } else { - startedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder setStartedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startedAtBuilder_ == null) { - startedAt_ = builderForValue.build(); - onChanged(); - } else { - startedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { - if (startedAtBuilder_ == null) { - if (startedAt_ != null) { - startedAt_ = - com.google.protobuf.Timestamp.newBuilder(startedAt_).mergeFrom(value).buildPartial(); - } else { - startedAt_ = value; - } - onChanged(); - } else { - startedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public Builder clearStartedAt() { - if (startedAtBuilder_ == null) { - startedAt_ = null; - onChanged(); - } else { - startedAt_ = null; - startedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { - - onChanged(); - return getStartedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { - if (startedAtBuilder_ != null) { - return startedAtBuilder_.getMessageOrBuilder(); - } else { - return startedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; - } - } - /** - *
-       * Time at which the task execution began running.
-       * 
- * - * .google.protobuf.Timestamp started_at = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartedAtFieldBuilder() { - if (startedAtBuilder_ == null) { - startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartedAt(), - getParentForChildren(), - isClean()); - startedAt_ = null; - } - return startedAtBuilder_; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The amount of time the task execution spent running.
-       * 
- * - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task execution was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - - private com.google.protobuf.Timestamp updatedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updatedAtBuilder_; - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public boolean hasUpdatedAt() { - return updatedAtBuilder_ != null || updatedAt_ != null; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp getUpdatedAt() { - if (updatedAtBuilder_ == null) { - return updatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } else { - return updatedAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updatedAt_ = value; - onChanged(); - } else { - updatedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder setUpdatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updatedAtBuilder_ == null) { - updatedAt_ = builderForValue.build(); - onChanged(); - } else { - updatedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder mergeUpdatedAt(com.google.protobuf.Timestamp value) { - if (updatedAtBuilder_ == null) { - if (updatedAt_ != null) { - updatedAt_ = - com.google.protobuf.Timestamp.newBuilder(updatedAt_).mergeFrom(value).buildPartial(); - } else { - updatedAt_ = value; - } - onChanged(); - } else { - updatedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public Builder clearUpdatedAt() { - if (updatedAtBuilder_ == null) { - updatedAt_ = null; - onChanged(); - } else { - updatedAt_ = null; - updatedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.Timestamp.Builder getUpdatedAtBuilder() { - - onChanged(); - return getUpdatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - public com.google.protobuf.TimestampOrBuilder getUpdatedAtOrBuilder() { - if (updatedAtBuilder_ != null) { - return updatedAtBuilder_.getMessageOrBuilder(); - } else { - return updatedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updatedAt_; - } - } - /** - *
-       * Time at which the task execution was last updated.
-       * 
- * - * .google.protobuf.Timestamp updated_at = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdatedAtFieldBuilder() { - if (updatedAtBuilder_ == null) { - updatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdatedAt(), - getParentForChildren(), - isClean()); - updatedAt_ = null; - } - return updatedAtBuilder_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data specific to the task plugin.
-       * 
- * - * .google.protobuf.Struct custom_info = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - - private java.lang.Object reason_ = ""; - /** - *
-       * If there is an explanation for the most recent phase transition, the reason will capture it.
-       * 
- * - * string reason = 10; - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If there is an explanation for the most recent phase transition, the reason will capture it.
-       * 
- * - * string reason = 10; - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If there is an explanation for the most recent phase transition, the reason will capture it.
-       * 
- * - * string reason = 10; - */ - public Builder setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - onChanged(); - return this; - } - /** - *
-       * If there is an explanation for the most recent phase transition, the reason will capture it.
-       * 
- * - * string reason = 10; - */ - public Builder clearReason() { - - reason_ = getDefaultInstance().getReason(); - onChanged(); - return this; - } - /** - *
-       * If there is an explanation for the most recent phase transition, the reason will capture it.
-       * 
- * - * string reason = 10; - */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value; - onChanged(); - return this; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 11; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 11; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 11; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 11; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 11; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.TaskExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder setMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder setMetadata( - flyteidl.event.Event.TaskExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder mergeMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.event.Event.TaskExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private int eventVersion_ ; - /** - *
-       * The event version is used to indicate versioned changes in how data is maintained using this
-       * proto message. For example, event_verison > 0 means that maps tasks logs use the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 17; - */ - public int getEventVersion() { - return eventVersion_; - } - /** - *
-       * The event version is used to indicate versioned changes in how data is maintained using this
-       * proto message. For example, event_verison > 0 means that maps tasks logs use the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 17; - */ - public Builder setEventVersion(int value) { - - eventVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The event version is used to indicate versioned changes in how data is maintained using this
-       * proto message. For example, event_verison > 0 means that maps tasks logs use the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 17; - */ - public Builder clearEventVersion() { - - eventVersion_ = 0; - onChanged(); - return this; - } - - private java.util.List reasons_ = - java.util.Collections.emptyList(); - private void ensureReasonsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - reasons_ = new java.util.ArrayList(reasons_); - bitField0_ |= 0x00004000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder> reasonsBuilder_; - - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public java.util.List getReasonsList() { - if (reasonsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reasons_); - } else { - return reasonsBuilder_.getMessageList(); - } - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public int getReasonsCount() { - if (reasonsBuilder_ == null) { - return reasons_.size(); - } else { - return reasonsBuilder_.getCount(); - } - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.Reason getReasons(int index) { - if (reasonsBuilder_ == null) { - return reasons_.get(index); - } else { - return reasonsBuilder_.getMessage(index); - } - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder setReasons( - int index, flyteidl.admin.TaskExecutionOuterClass.Reason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.set(index, value); - onChanged(); - } else { - reasonsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder setReasons( - int index, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.set(index, builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder addReasons(flyteidl.admin.TaskExecutionOuterClass.Reason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.add(value); - onChanged(); - } else { - reasonsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder addReasons( - int index, flyteidl.admin.TaskExecutionOuterClass.Reason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.add(index, value); - onChanged(); - } else { - reasonsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder addReasons( - flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.add(builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder addReasons( - int index, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.add(index, builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder addAllReasons( - java.lang.Iterable values) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reasons_); - onChanged(); - } else { - reasonsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder clearReasons() { - if (reasonsBuilder_ == null) { - reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - reasonsBuilder_.clear(); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public Builder removeReasons(int index) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.remove(index); - onChanged(); - } else { - reasonsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder getReasonsBuilder( - int index) { - return getReasonsFieldBuilder().getBuilder(index); - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder getReasonsOrBuilder( - int index) { - if (reasonsBuilder_ == null) { - return reasons_.get(index); } else { - return reasonsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public java.util.List - getReasonsOrBuilderList() { - if (reasonsBuilder_ != null) { - return reasonsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reasons_); - } - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder addReasonsBuilder() { - return getReasonsFieldBuilder().addBuilder( - flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()); - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public flyteidl.admin.TaskExecutionOuterClass.Reason.Builder addReasonsBuilder( - int index) { - return getReasonsFieldBuilder().addBuilder( - index, flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()); - } - /** - *
-       * A time-series of the phase transition or update explanations. This, when compared to storing a singular reason
-       * as previously done, is much more valuable in visualizing and understanding historical evaluations.
-       * 
- * - * repeated .flyteidl.admin.Reason reasons = 18; - */ - public java.util.List - getReasonsBuilderList() { - return getReasonsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder> - getReasonsFieldBuilder() { - if (reasonsBuilder_ == null) { - reasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskExecutionOuterClass.Reason, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder, flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder>( - reasons_, - ((bitField0_ & 0x00004000) != 0), - getParentForChildren(), - isClean()); - reasons_ = null; - } - return reasonsBuilder_; - } - @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.TaskExecutionClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionClosure) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionClosure(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.TaskExecutionOuterClass.TaskExecutionClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Reason) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - boolean hasOccurredAt(); - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * message is the explanation for the most recent phase transition or status update.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * message is the explanation for the most recent phase transition or status update.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Reason} - */ - public static final class Reason extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Reason) - ReasonOrBuilder { - private static final long serialVersionUID = 0L; - // Use Reason.newBuilder() to construct. - private Reason(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Reason() { - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Reason( - 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: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.Reason.class, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder.class); - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * occurred_at is the timestamp indicating the instant that this reason happened.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * message is the explanation for the most recent phase transition or status update.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-     * message is the explanation for the most recent phase transition or status update.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (occurredAt_ != null) { - output.writeMessage(1, getOccurredAt()); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getOccurredAt()); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - 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.TaskExecutionOuterClass.Reason)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.Reason other = (flyteidl.admin.TaskExecutionOuterClass.Reason) obj; - - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getMessage() - .equals(other.getMessage())) 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 (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason 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.TaskExecutionOuterClass.Reason parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason 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.TaskExecutionOuterClass.Reason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason 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.TaskExecutionOuterClass.Reason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.Reason 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.TaskExecutionOuterClass.Reason 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; - } - /** - *
-     * Reason is a single message annotated with a timestamp to indicate the instant the reason occurred.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Reason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Reason) - flyteidl.admin.TaskExecutionOuterClass.ReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.Reason.class, flyteidl.admin.TaskExecutionOuterClass.Reason.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.Reason.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 (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_Reason_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.Reason getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.Reason build() { - flyteidl.admin.TaskExecutionOuterClass.Reason result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.Reason buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.Reason result = new flyteidl.admin.TaskExecutionOuterClass.Reason(this); - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - result.message_ = message_; - 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.TaskExecutionOuterClass.Reason) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.Reason)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.Reason other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.Reason.getDefaultInstance()) return this; - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - 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.TaskExecutionOuterClass.Reason parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.Reason) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * occurred_at is the timestamp indicating the instant that this reason happened.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - private java.lang.Object message_ = ""; - /** - *
-       * message is the explanation for the most recent phase transition or status update.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * message is the explanation for the most recent phase transition or status update.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * message is the explanation for the most recent phase transition or status update.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * message is the explanation for the most recent phase transition or status update.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * message is the explanation for the most recent phase transition or status update.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - @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.Reason) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Reason) - private static final flyteidl.admin.TaskExecutionOuterClass.Reason DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.Reason(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.Reason getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Reason(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.TaskExecutionOuterClass.Reason getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - *
-   * Request structure to fetch inputs and output for a task execution.
-   * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest`
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class TaskExecutionGetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataRequest) - TaskExecutionGetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataRequest.newBuilder() to construct. - private TaskExecutionGetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataRequest( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * The identifier of the task execution for which to fetch inputs and outputs.
-     * +required
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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.TaskExecutionOuterClass.TaskExecutionGetDataRequest 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; - } - /** - *
-     * Request structure to fetch inputs and output for a task execution.
-     * By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest`
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataRequest) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(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.TaskExecutionOuterClass.TaskExecutionGetDataRequest) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest.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.TaskExecutionOuterClass.TaskExecutionGetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * The identifier of the task execution for which to fetch inputs and outputs.
-       * +required
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - 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.TaskExecutionGetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataRequest) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataRequest(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.TaskExecutionOuterClass.TaskExecutionGetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionGetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskExecutionGetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getInputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder(); - - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlob getOutputs(); - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder(); - - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - boolean hasFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMap getFullInputs(); - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder(); - - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - boolean hasFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMap getFullOutputs(); - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder(); - - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - boolean hasFlyteUrls(); - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - flyteidl.admin.Common.FlyteURLs getFlyteUrls(); - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder(); - } - /** - *
-   * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class TaskExecutionGetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskExecutionGetDataResponse) - TaskExecutionGetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionGetDataResponse.newBuilder() to construct. - private TaskExecutionGetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionGetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionGetDataResponse( - 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.Common.UrlBlob.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.Common.UrlBlob.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.admin.Common.UrlBlob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullInputs_ != null) { - subBuilder = fullInputs_.toBuilder(); - } - fullInputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullInputs_); - fullInputs_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (fullOutputs_ != null) { - subBuilder = fullOutputs_.toBuilder(); - } - fullOutputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fullOutputs_); - fullOutputs_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.admin.Common.FlyteURLs.Builder subBuilder = null; - if (flyteUrls_ != null) { - subBuilder = flyteUrls_.toBuilder(); - } - flyteUrls_ = input.readMessage(flyteidl.admin.Common.FlyteURLs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(flyteUrls_); - flyteUrls_ = 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.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.admin.Common.UrlBlob inputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution inputs.
-     * Deprecated: Please use full_inputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.admin.Common.UrlBlob outputs_; - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - /** - *
-     * Signed url to fetch a core.LiteralMap of task execution outputs.
-     * Deprecated: Please use full_outputs instead.
-     * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - public static final int FULL_INPUTS_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap fullInputs_; - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputs_ != null; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - /** - *
-     * Full_inputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - return getFullInputs(); - } - - public static final int FULL_OUTPUTS_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap fullOutputs_; - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputs_ != null; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - /** - *
-     * Full_outputs will only be populated if they are under a configured size threshold.
-     * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - return getFullOutputs(); - } - - public static final int FLYTE_URLS_FIELD_NUMBER = 5; - private flyteidl.admin.Common.FlyteURLs flyteUrls_; - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public boolean hasFlyteUrls() { - return flyteUrls_ != null; - } - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { - return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } - /** - *
-     * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-     * Deck will be empty for task
-     * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { - return getFlyteUrls(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - if (fullInputs_ != null) { - output.writeMessage(3, getFullInputs()); - } - if (fullOutputs_ != null) { - output.writeMessage(4, getFullOutputs()); - } - if (flyteUrls_ != null) { - output.writeMessage(5, getFlyteUrls()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - if (fullInputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getFullInputs()); - } - if (fullOutputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFullOutputs()); - } - if (flyteUrls_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getFlyteUrls()); - } - 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) return false; - } - if (hasFullInputs() != other.hasFullInputs()) return false; - if (hasFullInputs()) { - if (!getFullInputs() - .equals(other.getFullInputs())) return false; - } - if (hasFullOutputs() != other.hasFullOutputs()) return false; - if (hasFullOutputs()) { - if (!getFullOutputs() - .equals(other.getFullOutputs())) return false; - } - if (hasFlyteUrls() != other.hasFlyteUrls()) return false; - if (hasFlyteUrls()) { - if (!getFlyteUrls() - .equals(other.getFlyteUrls())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - if (hasFullInputs()) { - hash = (37 * hash) + FULL_INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullInputs().hashCode(); - } - if (hasFullOutputs()) { - hash = (37 * hash) + FULL_OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getFullOutputs().hashCode(); - } - if (hasFlyteUrls()) { - hash = (37 * hash) + FLYTE_URLS_FIELD_NUMBER; - hash = (53 * hash) + getFlyteUrls().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse 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; - } - /** - *
-     * Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskExecutionGetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskExecutionGetDataResponse) - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.class, flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = null; - } else { - flyteUrls_ = null; - flyteUrlsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskExecutionOuterClass.internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse build() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse buildPartial() { - flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse result = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (fullInputsBuilder_ == null) { - result.fullInputs_ = fullInputs_; - } else { - result.fullInputs_ = fullInputsBuilder_.build(); - } - if (fullOutputsBuilder_ == null) { - result.fullOutputs_ = fullOutputs_; - } else { - result.fullOutputs_ = fullOutputsBuilder_.build(); - } - if (flyteUrlsBuilder_ == null) { - result.flyteUrls_ = flyteUrls_; - } else { - result.flyteUrls_ = flyteUrlsBuilder_.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.TaskExecutionOuterClass.TaskExecutionGetDataResponse) { - return mergeFrom((flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse other) { - if (other == flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - if (other.hasFullInputs()) { - mergeFullInputs(other.getFullInputs()); - } - if (other.hasFullOutputs()) { - mergeFullOutputs(other.getFullOutputs()); - } - if (other.hasFlyteUrls()) { - mergeFlyteUrls(other.getFlyteUrls()); - } - 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.TaskExecutionOuterClass.TaskExecutionGetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.Common.UrlBlob inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> inputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setInputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeInputs(flyteidl.admin.Common.UrlBlob value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : inputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution inputs.
-       * Deprecated: Please use full_inputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob inputs = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.admin.Common.UrlBlob outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> outputsBuilder_; - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setOutputs( - flyteidl.admin.Common.UrlBlob.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeOutputs(flyteidl.admin.Common.UrlBlob value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.admin.Common.UrlBlob.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlob.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.admin.Common.UrlBlobOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.admin.Common.UrlBlob.getDefaultInstance() : outputs_; - } - } - /** - *
-       * Signed url to fetch a core.LiteralMap of task execution outputs.
-       * Deprecated: Please use full_outputs instead.
-       * 
- * - * .flyteidl.admin.UrlBlob outputs = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.UrlBlob, flyteidl.admin.Common.UrlBlob.Builder, flyteidl.admin.Common.UrlBlobOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullInputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullInputsBuilder_; - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public boolean hasFullInputs() { - return fullInputsBuilder_ != null || fullInputs_ != null; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap getFullInputs() { - if (fullInputsBuilder_ == null) { - return fullInputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } else { - return fullInputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullInputs_ = value; - onChanged(); - } else { - fullInputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder setFullInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullInputsBuilder_ == null) { - fullInputs_ = builderForValue.build(); - onChanged(); - } else { - fullInputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder mergeFullInputs(flyteidl.core.Literals.LiteralMap value) { - if (fullInputsBuilder_ == null) { - if (fullInputs_ != null) { - fullInputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullInputs_).mergeFrom(value).buildPartial(); - } else { - fullInputs_ = value; - } - onChanged(); - } else { - fullInputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public Builder clearFullInputs() { - if (fullInputsBuilder_ == null) { - fullInputs_ = null; - onChanged(); - } else { - fullInputs_ = null; - fullInputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullInputsBuilder() { - - onChanged(); - return getFullInputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullInputsOrBuilder() { - if (fullInputsBuilder_ != null) { - return fullInputsBuilder_.getMessageOrBuilder(); - } else { - return fullInputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullInputs_; - } - } - /** - *
-       * Full_inputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_inputs = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullInputsFieldBuilder() { - if (fullInputsBuilder_ == null) { - fullInputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullInputs(), - getParentForChildren(), - isClean()); - fullInputs_ = null; - } - return fullInputsBuilder_; - } - - private flyteidl.core.Literals.LiteralMap fullOutputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> fullOutputsBuilder_; - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public boolean hasFullOutputs() { - return fullOutputsBuilder_ != null || fullOutputs_ != null; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap getFullOutputs() { - if (fullOutputsBuilder_ == null) { - return fullOutputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } else { - return fullOutputsBuilder_.getMessage(); - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fullOutputs_ = value; - onChanged(); - } else { - fullOutputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder setFullOutputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = builderForValue.build(); - onChanged(); - } else { - fullOutputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder mergeFullOutputs(flyteidl.core.Literals.LiteralMap value) { - if (fullOutputsBuilder_ == null) { - if (fullOutputs_ != null) { - fullOutputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(fullOutputs_).mergeFrom(value).buildPartial(); - } else { - fullOutputs_ = value; - } - onChanged(); - } else { - fullOutputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public Builder clearFullOutputs() { - if (fullOutputsBuilder_ == null) { - fullOutputs_ = null; - onChanged(); - } else { - fullOutputs_ = null; - fullOutputsBuilder_ = null; - } - - return this; - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getFullOutputsBuilder() { - - onChanged(); - return getFullOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getFullOutputsOrBuilder() { - if (fullOutputsBuilder_ != null) { - return fullOutputsBuilder_.getMessageOrBuilder(); - } else { - return fullOutputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : fullOutputs_; - } - } - /** - *
-       * Full_outputs will only be populated if they are under a configured size threshold.
-       * 
- * - * .flyteidl.core.LiteralMap full_outputs = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getFullOutputsFieldBuilder() { - if (fullOutputsBuilder_ == null) { - fullOutputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getFullOutputs(), - getParentForChildren(), - isClean()); - fullOutputs_ = null; - } - return fullOutputsBuilder_; - } - - private flyteidl.admin.Common.FlyteURLs flyteUrls_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> flyteUrlsBuilder_; - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public boolean hasFlyteUrls() { - return flyteUrlsBuilder_ != null || flyteUrls_ != null; - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public flyteidl.admin.Common.FlyteURLs getFlyteUrls() { - if (flyteUrlsBuilder_ == null) { - return flyteUrls_ == null ? flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } else { - return flyteUrlsBuilder_.getMessage(); - } - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public Builder setFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { - if (flyteUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flyteUrls_ = value; - onChanged(); - } else { - flyteUrlsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public Builder setFlyteUrls( - flyteidl.admin.Common.FlyteURLs.Builder builderForValue) { - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = builderForValue.build(); - onChanged(); - } else { - flyteUrlsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public Builder mergeFlyteUrls(flyteidl.admin.Common.FlyteURLs value) { - if (flyteUrlsBuilder_ == null) { - if (flyteUrls_ != null) { - flyteUrls_ = - flyteidl.admin.Common.FlyteURLs.newBuilder(flyteUrls_).mergeFrom(value).buildPartial(); - } else { - flyteUrls_ = value; - } - onChanged(); - } else { - flyteUrlsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public Builder clearFlyteUrls() { - if (flyteUrlsBuilder_ == null) { - flyteUrls_ = null; - onChanged(); - } else { - flyteUrls_ = null; - flyteUrlsBuilder_ = null; - } - - return this; - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public flyteidl.admin.Common.FlyteURLs.Builder getFlyteUrlsBuilder() { - - onChanged(); - return getFlyteUrlsFieldBuilder().getBuilder(); - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - public flyteidl.admin.Common.FlyteURLsOrBuilder getFlyteUrlsOrBuilder() { - if (flyteUrlsBuilder_ != null) { - return flyteUrlsBuilder_.getMessageOrBuilder(); - } else { - return flyteUrls_ == null ? - flyteidl.admin.Common.FlyteURLs.getDefaultInstance() : flyteUrls_; - } - } - /** - *
-       * flyte tiny url to fetch a core.LiteralMap of task execution's IO
-       * Deck will be empty for task
-       * 
- * - * .flyteidl.admin.FlyteURLs flyte_urls = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder> - getFlyteUrlsFieldBuilder() { - if (flyteUrlsBuilder_ == null) { - flyteUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.Common.FlyteURLs, flyteidl.admin.Common.FlyteURLs.Builder, flyteidl.admin.Common.FlyteURLsOrBuilder>( - getFlyteUrls(), - getParentForChildren(), - isClean()); - flyteUrls_ = null; - } - return flyteUrlsBuilder_; - } - @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.TaskExecutionGetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskExecutionGetDataResponse) - private static final flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse(); - } - - public static flyteidl.admin.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionGetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionGetDataResponse(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.TaskExecutionOuterClass.TaskExecutionGetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Reason_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Reason_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#flyteidl/admin/task_execution.proto\022\016f" + - "lyteidl.admin\032\033flyteidl/admin/common.pro" + - "to\032\035flyteidl/core/execution.proto\032\036flyte" + - "idl/core/identifier.proto\032\034flyteidl/core" + - "/literals.proto\032\032flyteidl/event/event.pr" + - "oto\032\037google/protobuf/timestamp.proto\032\036go" + - "ogle/protobuf/duration.proto\032\034google/pro" + - "tobuf/struct.proto\"M\n\027TaskExecutionGetRe" + - "quest\0222\n\002id\030\001 \001(\0132&.flyteidl.core.TaskEx" + - "ecutionIdentifier\"\263\001\n\030TaskExecutionListR" + - "equest\022A\n\021node_execution_id\030\001 \001(\0132&.flyt" + - "eidl.core.NodeExecutionIdentifier\022\r\n\005lim" + - "it\030\002 \001(\r\022\r\n\005token\030\003 \001(\t\022\017\n\007filters\030\004 \001(\t" + - "\022%\n\007sort_by\030\005 \001(\0132\024.flyteidl.admin.Sort\"" + - "\240\001\n\rTaskExecution\0222\n\002id\030\001 \001(\0132&.flyteidl" + - ".core.TaskExecutionIdentifier\022\021\n\tinput_u" + - "ri\030\002 \001(\t\0225\n\007closure\030\003 \001(\0132$.flyteidl.adm" + - "in.TaskExecutionClosure\022\021\n\tis_parent\030\004 \001" + - "(\010\"Z\n\021TaskExecutionList\0226\n\017task_executio" + - "ns\030\001 \003(\0132\035.flyteidl.admin.TaskExecution\022" + - "\r\n\005token\030\002 \001(\t\"\207\005\n\024TaskExecutionClosure\022" + - "\030\n\noutput_uri\030\001 \001(\tB\002\030\001H\000\022.\n\005error\030\002 \001(\013" + - "2\035.flyteidl.core.ExecutionErrorH\000\0224\n\013out" + - "put_data\030\014 \001(\0132\031.flyteidl.core.LiteralMa" + - "pB\002\030\001H\000\0221\n\005phase\030\003 \001(\0162\".flyteidl.core.T" + - "askExecution.Phase\022$\n\004logs\030\004 \003(\0132\026.flyte" + - "idl.core.TaskLog\022.\n\nstarted_at\030\005 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\022+\n\010duration\030\006 \001" + - "(\0132\031.google.protobuf.Duration\022.\n\ncreated" + - "_at\030\007 \001(\0132\032.google.protobuf.Timestamp\022.\n" + - "\nupdated_at\030\010 \001(\0132\032.google.protobuf.Time" + - "stamp\022,\n\013custom_info\030\t \001(\0132\027.google.prot" + - "obuf.Struct\022\016\n\006reason\030\n \001(\t\022\021\n\ttask_type" + - "\030\013 \001(\t\0227\n\010metadata\030\020 \001(\0132%.flyteidl.even" + - "t.TaskExecutionMetadata\022\025\n\revent_version" + - "\030\021 \001(\005\022\'\n\007reasons\030\022 \003(\0132\026.flyteidl.admin" + - ".ReasonB\017\n\routput_result\"J\n\006Reason\022/\n\013oc" + - "curred_at\030\001 \001(\0132\032.google.protobuf.Timest" + - "amp\022\017\n\007message\030\002 \001(\t\"Q\n\033TaskExecutionGet" + - "DataRequest\0222\n\002id\030\001 \001(\0132&.flyteidl.core." + - "TaskExecutionIdentifier\"\211\002\n\034TaskExecutio" + - "nGetDataResponse\022+\n\006inputs\030\001 \001(\0132\027.flyte" + - "idl.admin.UrlBlobB\002\030\001\022,\n\007outputs\030\002 \001(\0132\027" + - ".flyteidl.admin.UrlBlobB\002\030\001\022.\n\013full_inpu" + - "ts\030\003 \001(\0132\031.flyteidl.core.LiteralMap\022/\n\014f" + - "ull_outputs\030\004 \001(\0132\031.flyteidl.core.Litera" + - "lMap\022-\n\nflyte_urls\030\005 \001(\0132\031.flyteidl.admi" + - "n.FlyteURLsB=Z;github.com/flyteorg/flyte" + - "/flyteidl/gen/pb-go/flyteidl/adminb\006prot" + - "o3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.Common.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.event.Event.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskExecutionGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskExecutionListRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionListRequest_descriptor, - new java.lang.String[] { "NodeExecutionId", "Limit", "Token", "Filters", "SortBy", }); - internal_static_flyteidl_admin_TaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_TaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecution_descriptor, - new java.lang.String[] { "Id", "InputUri", "Closure", "IsParent", }); - internal_static_flyteidl_admin_TaskExecutionList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskExecutionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionList_descriptor, - new java.lang.String[] { "TaskExecutions", "Token", }); - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskExecutionClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionClosure_descriptor, - new java.lang.String[] { "OutputUri", "Error", "OutputData", "Phase", "Logs", "StartedAt", "Duration", "CreatedAt", "UpdatedAt", "CustomInfo", "Reason", "TaskType", "Metadata", "EventVersion", "Reasons", "OutputResult", }); - internal_static_flyteidl_admin_Reason_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_Reason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Reason_descriptor, - new java.lang.String[] { "OccurredAt", "Message", }); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataRequest_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskExecutionGetDataResponse_descriptor, - new java.lang.String[] { "Inputs", "Outputs", "FullInputs", "FullOutputs", "FlyteUrls", }); - flyteidl.admin.Common.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.event.Event.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java deleted file mode 100644 index f238912262..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/TaskOuterClass.java +++ /dev/null @@ -1,5569 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/task.proto - -package flyteidl.admin; - -public final class TaskOuterClass { - private TaskOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface TaskCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpec getSpec(); - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a task.
-   * See :ref:`ref_flyteidl.admin.Task` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class TaskCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateRequest) - TaskCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateRequest.newBuilder() to construct. - private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateRequest( - 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; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for task.
-     * +required
-     * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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.TaskOuterClass.TaskCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateRequest other = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest 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.TaskOuterClass.TaskCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a task.
-     * See :ref:`ref_flyteidl.admin.Task` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateRequest) - flyteidl.admin.TaskOuterClass.TaskCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateRequest.class, flyteidl.admin.TaskOuterClass.TaskCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateRequest.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; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest build() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateRequest buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateRequest result = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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.TaskOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateRequest other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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.TaskOuterClass.TaskCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateRequest) 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_; - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * +required
-       * 
- * - * .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_; - } - - private flyteidl.admin.TaskOuterClass.TaskSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.TaskOuterClass.TaskSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.TaskOuterClass.TaskSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.TaskOuterClass.TaskSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for task.
-       * +required
-       * 
- * - * .flyteidl.admin.TaskSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskSpec, flyteidl.admin.TaskOuterClass.TaskSpec.Builder, flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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.TaskCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateRequest) - private static final flyteidl.admin.TaskOuterClass.TaskCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateRequest(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateRequest(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.TaskOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Represents a response structure if task creation succeeds.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class TaskCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskCreateResponse) - TaskCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateResponse.newBuilder() to construct. - private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.TaskOuterClass.TaskCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskCreateResponse other = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse 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.TaskOuterClass.TaskCreateResponse 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; - } - /** - *
-     * Represents a response structure if task creation succeeds.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskCreateResponse) - flyteidl.admin.TaskOuterClass.TaskCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskCreateResponse.class, flyteidl.admin.TaskOuterClass.TaskCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse build() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskCreateResponse buildPartial() { - flyteidl.admin.TaskOuterClass.TaskCreateResponse result = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(this); - 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.TaskOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskCreateResponse other) { - if (other == flyteidl.admin.TaskOuterClass.TaskCreateResponse.getDefaultInstance()) return this; - 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.TaskOuterClass.TaskCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.TaskCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskCreateResponse) - private static final flyteidl.admin.TaskOuterClass.TaskCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskCreateResponse(); - } - - public static flyteidl.admin.TaskOuterClass.TaskCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateResponse(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.TaskOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Task) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - java.lang.String getShortDescription(); - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - com.google.protobuf.ByteString - getShortDescriptionBytes(); - } - /** - *
-   * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-   * arranged to process workflow inputs and produce a deterministic set of outputs.
-   * Tasks can come in many varieties tuned for specialized behavior. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Task extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Task) - TaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use Task.newBuilder() to construct. - private Task(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Task() { - shortDescription_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Task( - 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; - } - case 18: { - flyteidl.admin.TaskOuterClass.TaskClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.TaskOuterClass.TaskClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - shortDescription_ = s; - 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.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the task.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the task.
-     * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object shortDescription_; - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } - } - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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()); - } - if (closure_ != null) { - output.writeMessage(2, getClosure()); - } - if (!getShortDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); - } - 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()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - if (!getShortDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); - } - 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.TaskOuterClass.Task)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.Task other = (flyteidl.admin.TaskOuterClass.Task) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (!getShortDescription() - .equals(other.getShortDescription())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getShortDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.Task parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.Task 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.TaskOuterClass.Task 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; - } - /** - *
-     * Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks
-     * arranged to process workflow inputs and produce a deterministic set of outputs.
-     * Tasks can come in many varieties tuned for specialized behavior. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.Task} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Task) - flyteidl.admin.TaskOuterClass.TaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.Task.class, flyteidl.admin.TaskOuterClass.Task.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.Task.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; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - shortDescription_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_Task_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.Task.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task build() { - flyteidl.admin.TaskOuterClass.Task result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.Task buildPartial() { - flyteidl.admin.TaskOuterClass.Task result = new flyteidl.admin.TaskOuterClass.Task(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - result.shortDescription_ = shortDescription_; - 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.TaskOuterClass.Task) { - return mergeFrom((flyteidl.admin.TaskOuterClass.Task)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.Task other) { - if (other == flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (!other.getShortDescription().isEmpty()) { - shortDescription_ = other.shortDescription_; - onChanged(); - } - 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.TaskOuterClass.Task parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.Task) 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_; - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the task.
-       * 
- * - * .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_; - } - - private flyteidl.admin.TaskOuterClass.TaskClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.TaskOuterClass.TaskClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.TaskOuterClass.TaskClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.TaskOuterClass.TaskClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - public flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the task.
-       * 
- * - * .flyteidl.admin.TaskClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.TaskOuterClass.TaskClosure, flyteidl.admin.TaskOuterClass.TaskClosure.Builder, flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private java.lang.Object shortDescription_ = ""; - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder setShortDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortDescription_ = value; - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder clearShortDescription() { - - shortDescription_ = getDefaultInstance().getShortDescription(); - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder setShortDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortDescription_ = value; - onChanged(); - return this; - } - @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.Task) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Task) - private static final flyteidl.admin.TaskOuterClass.Task DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.Task(); - } - - public static flyteidl.admin.TaskOuterClass.Task getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Task parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Task(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.TaskOuterClass.Task getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.Task getTasks(int index); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - int getTasksCount(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of tasks returned from the admin.
-   * See :ref:`ref_flyteidl.admin.Task` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class TaskList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskList) - TaskListOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskList.newBuilder() to construct. - private TaskList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskList() { - tasks_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - tasks_.add( - input.readMessage(flyteidl.admin.TaskOuterClass.Task.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - private int bitField0_; - public static final int TASKS_FIELD_NUMBER = 1; - private java.util.List tasks_; - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * A list of tasks returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, tasks_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.TaskOuterClass.TaskList)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskList other = (flyteidl.admin.TaskOuterClass.TaskList) obj; - - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskList 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.TaskOuterClass.TaskList 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; - } - /** - *
-     * Represents a list of tasks returned from the admin.
-     * See :ref:`ref_flyteidl.admin.Task` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskList) - flyteidl.admin.TaskOuterClass.TaskListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskList.class, flyteidl.admin.TaskOuterClass.TaskList.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - tasksBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList build() { - flyteidl.admin.TaskOuterClass.TaskList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskList buildPartial() { - flyteidl.admin.TaskOuterClass.TaskList result = new flyteidl.admin.TaskOuterClass.TaskList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.TaskOuterClass.TaskList) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskList other) { - if (other == flyteidl.admin.TaskOuterClass.TaskList.getDefaultInstance()) return this; - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000001); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.TaskOuterClass.TaskList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> tasksBuilder_; - - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder setTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks(flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addTasks( - int index, flyteidl.admin.TaskOuterClass.Task.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.TaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public flyteidl.admin.TaskOuterClass.Task.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.admin.TaskOuterClass.Task.getDefaultInstance()); - } - /** - *
-       * A list of tasks returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Task tasks = 1; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.TaskOuterClass.Task, flyteidl.admin.TaskOuterClass.Task.Builder, flyteidl.admin.TaskOuterClass.TaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.TaskList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskList) - private static final flyteidl.admin.TaskOuterClass.TaskList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskList(); - } - - public static flyteidl.admin.TaskOuterClass.TaskList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskList(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.TaskOuterClass.TaskList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - boolean hasDescription(); - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription(); - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder(); - } - /** - *
-   * Represents a structure that encapsulates the user-configured specification of the task.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class TaskSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskSpec) - TaskSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskSpec.newBuilder() to construct. - private TaskSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskSpec( - 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.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = 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.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public boolean hasDescription() { - return description_ != null; - } - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { - return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - if (description_ != null) { - output.writeMessage(2, getDescription()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDescription()); - } - 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.TaskOuterClass.TaskSpec)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskSpec other = (flyteidl.admin.TaskOuterClass.TaskSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskSpec 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.TaskOuterClass.TaskSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the user-configured specification of the task.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskSpec) - flyteidl.admin.TaskOuterClass.TaskSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskSpec.class, flyteidl.admin.TaskOuterClass.TaskSpec.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskSpec.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec build() { - flyteidl.admin.TaskOuterClass.TaskSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskSpec buildPartial() { - flyteidl.admin.TaskOuterClass.TaskSpec result = new flyteidl.admin.TaskOuterClass.TaskSpec(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.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.TaskOuterClass.TaskSpec) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskSpec other) { - if (other == flyteidl.admin.TaskOuterClass.TaskSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - 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.TaskOuterClass.TaskSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionBuilder_; - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public Builder setDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public Builder setDescription( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public Builder mergeDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - @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.TaskSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskSpec) - private static final flyteidl.admin.TaskOuterClass.TaskSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskSpec(); - } - - public static flyteidl.admin.TaskOuterClass.TaskSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskSpec(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.TaskOuterClass.TaskSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.TaskClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - boolean hasCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTask getCompiledTask(); - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder(); - - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-   * and task metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class TaskClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.TaskClosure) - TaskClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskClosure.newBuilder() to construct. - private TaskClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskClosure( - 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.Compiler.CompiledTask.Builder subBuilder = null; - if (compiledTask_ != null) { - subBuilder = compiledTask_.toBuilder(); - } - compiledTask_ = input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledTask_); - compiledTask_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = 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.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - public static final int COMPILED_TASK_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledTask compiledTask_; - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTask_ != null; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - /** - *
-     * Represents the compiled representation of the task from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - return getCompiledTask(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the task was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledTask_ != null) { - output.writeMessage(1, getCompiledTask()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledTask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledTask()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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.TaskOuterClass.TaskClosure)) { - return super.equals(obj); - } - flyteidl.admin.TaskOuterClass.TaskClosure other = (flyteidl.admin.TaskOuterClass.TaskClosure) obj; - - if (hasCompiledTask() != other.hasCompiledTask()) return false; - if (hasCompiledTask()) { - if (!getCompiledTask() - .equals(other.getCompiledTask())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledTask()) { - hash = (37 * hash) + COMPILED_TASK_FIELD_NUMBER; - hash = (53 * hash) + getCompiledTask().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.TaskOuterClass.TaskClosure 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.TaskOuterClass.TaskClosure 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; - } - /** - *
-     * Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data
-     * and task metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.TaskClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.TaskClosure) - flyteidl.admin.TaskOuterClass.TaskClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.TaskOuterClass.TaskClosure.class, flyteidl.admin.TaskOuterClass.TaskClosure.Builder.class); - } - - // Construct using flyteidl.admin.TaskOuterClass.TaskClosure.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 (compiledTaskBuilder_ == null) { - compiledTask_ = null; - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.TaskOuterClass.internal_static_flyteidl_admin_TaskClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure build() { - flyteidl.admin.TaskOuterClass.TaskClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.TaskOuterClass.TaskClosure buildPartial() { - flyteidl.admin.TaskOuterClass.TaskClosure result = new flyteidl.admin.TaskOuterClass.TaskClosure(this); - if (compiledTaskBuilder_ == null) { - result.compiledTask_ = compiledTask_; - } else { - result.compiledTask_ = compiledTaskBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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.TaskOuterClass.TaskClosure) { - return mergeFrom((flyteidl.admin.TaskOuterClass.TaskClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.TaskOuterClass.TaskClosure other) { - if (other == flyteidl.admin.TaskOuterClass.TaskClosure.getDefaultInstance()) return this; - if (other.hasCompiledTask()) { - mergeCompiledTask(other.getCompiledTask()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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.TaskOuterClass.TaskClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.TaskOuterClass.TaskClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledTask compiledTask_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> compiledTaskBuilder_; - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public boolean hasCompiledTask() { - return compiledTaskBuilder_ != null || compiledTask_ != null; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask getCompiledTask() { - if (compiledTaskBuilder_ == null) { - return compiledTask_ == null ? flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } else { - return compiledTaskBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledTask_ = value; - onChanged(); - } else { - compiledTaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder setCompiledTask( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (compiledTaskBuilder_ == null) { - compiledTask_ = builderForValue.build(); - onChanged(); - } else { - compiledTaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder mergeCompiledTask(flyteidl.core.Compiler.CompiledTask value) { - if (compiledTaskBuilder_ == null) { - if (compiledTask_ != null) { - compiledTask_ = - flyteidl.core.Compiler.CompiledTask.newBuilder(compiledTask_).mergeFrom(value).buildPartial(); - } else { - compiledTask_ = value; - } - onChanged(); - } else { - compiledTaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public Builder clearCompiledTask() { - if (compiledTaskBuilder_ == null) { - compiledTask_ = null; - onChanged(); - } else { - compiledTask_ = null; - compiledTaskBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getCompiledTaskBuilder() { - - onChanged(); - return getCompiledTaskFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getCompiledTaskOrBuilder() { - if (compiledTaskBuilder_ != null) { - return compiledTaskBuilder_.getMessageOrBuilder(); - } else { - return compiledTask_ == null ? - flyteidl.core.Compiler.CompiledTask.getDefaultInstance() : compiledTask_; - } - } - /** - *
-       * Represents the compiled representation of the task from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledTask compiled_task = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getCompiledTaskFieldBuilder() { - if (compiledTaskBuilder_ == null) { - compiledTaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - getCompiledTask(), - getParentForChildren(), - isClean()); - compiledTask_ = null; - } - return compiledTaskBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the task was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - @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.TaskClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.TaskClosure) - private static final flyteidl.admin.TaskOuterClass.TaskClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.TaskOuterClass.TaskClosure(); - } - - public static flyteidl.admin.TaskOuterClass.TaskClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskClosure(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.TaskOuterClass.TaskClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Task_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Task_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_TaskClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031flyteidl/admin/task.proto\022\016flyteidl.ad" + - "min\032\036flyteidl/core/identifier.proto\032\031fly" + - "teidl/core/tasks.proto\032\034flyteidl/core/co" + - "mpiler.proto\032\'flyteidl/admin/description" + - "_entity.proto\032\037google/protobuf/timestamp" + - ".proto\"b\n\021TaskCreateRequest\022%\n\002id\030\001 \001(\0132" + - "\031.flyteidl.core.Identifier\022&\n\004spec\030\002 \001(\013" + - "2\030.flyteidl.admin.TaskSpec\"\024\n\022TaskCreate" + - "Response\"v\n\004Task\022%\n\002id\030\001 \001(\0132\031.flyteidl." + - "core.Identifier\022,\n\007closure\030\002 \001(\0132\033.flyte" + - "idl.admin.TaskClosure\022\031\n\021short_descripti" + - "on\030\003 \001(\t\">\n\010TaskList\022#\n\005tasks\030\001 \003(\0132\024.fl" + - "yteidl.admin.Task\022\r\n\005token\030\002 \001(\t\"q\n\010Task" + - "Spec\022-\n\010template\030\001 \001(\0132\033.flyteidl.core.T" + - "askTemplate\0226\n\013description\030\002 \001(\0132!.flyte" + - "idl.admin.DescriptionEntity\"q\n\013TaskClosu" + - "re\0222\n\rcompiled_task\030\001 \001(\0132\033.flyteidl.cor" + - "e.CompiledTask\022.\n\ncreated_at\030\002 \001(\0132\032.goo" + - "gle.protobuf.TimestampB=Z;github.com/fly" + - "teorg/flyte/flyteidl/gen/pb-go/flyteidl/" + - "adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Compiler.getDescriptor(), - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_TaskCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_TaskCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_TaskCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_TaskCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Task_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Task_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Task_descriptor, - new java.lang.String[] { "Id", "Closure", "ShortDescription", }); - internal_static_flyteidl_admin_TaskList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_TaskList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskList_descriptor, - new java.lang.String[] { "Tasks", "Token", }); - internal_static_flyteidl_admin_TaskSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_TaskSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskSpec_descriptor, - new java.lang.String[] { "Template", "Description", }); - internal_static_flyteidl_admin_TaskClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_TaskClosure_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_TaskClosure_descriptor, - new java.lang.String[] { "CompiledTask", "CreatedAt", }); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Compiler.getDescriptor(); - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java deleted file mode 100644 index c641640bb6..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/VersionOuterClass.java +++ /dev/null @@ -1,2129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/version.proto - -package flyteidl.admin; - -public final class VersionOuterClass { - private VersionOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface GetVersionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetVersionResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - boolean hasControlPlaneVersion(); - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion(); - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder(); - } - /** - *
-   * Response for the GetVersion API
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetVersionResponse} - */ - public static final class GetVersionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetVersionResponse) - GetVersionResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVersionResponse.newBuilder() to construct. - private GetVersionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVersionResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVersionResponse( - 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.VersionOuterClass.Version.Builder subBuilder = null; - if (controlPlaneVersion_ != null) { - subBuilder = controlPlaneVersion_.toBuilder(); - } - controlPlaneVersion_ = input.readMessage(flyteidl.admin.VersionOuterClass.Version.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(controlPlaneVersion_); - controlPlaneVersion_ = 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.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.GetVersionResponse.class, flyteidl.admin.VersionOuterClass.GetVersionResponse.Builder.class); - } - - public static final int CONTROL_PLANE_VERSION_FIELD_NUMBER = 1; - private flyteidl.admin.VersionOuterClass.Version controlPlaneVersion_; - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public boolean hasControlPlaneVersion() { - return controlPlaneVersion_ != null; - } - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion() { - return controlPlaneVersion_ == null ? flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; - } - /** - *
-     * The control plane version information. FlyteAdmin and related components
-     * form the control plane of Flyte
-     * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder() { - return getControlPlaneVersion(); - } - - 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 (controlPlaneVersion_ != null) { - output.writeMessage(1, getControlPlaneVersion()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (controlPlaneVersion_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getControlPlaneVersion()); - } - 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.VersionOuterClass.GetVersionResponse)) { - return super.equals(obj); - } - flyteidl.admin.VersionOuterClass.GetVersionResponse other = (flyteidl.admin.VersionOuterClass.GetVersionResponse) obj; - - if (hasControlPlaneVersion() != other.hasControlPlaneVersion()) return false; - if (hasControlPlaneVersion()) { - if (!getControlPlaneVersion() - .equals(other.getControlPlaneVersion())) 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 (hasControlPlaneVersion()) { - hash = (37 * hash) + CONTROL_PLANE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getControlPlaneVersion().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse 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.VersionOuterClass.GetVersionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse 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.VersionOuterClass.GetVersionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse 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.VersionOuterClass.GetVersionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionResponse 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.VersionOuterClass.GetVersionResponse 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; - } - /** - *
-     * Response for the GetVersion API
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetVersionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetVersionResponse) - flyteidl.admin.VersionOuterClass.GetVersionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.GetVersionResponse.class, flyteidl.admin.VersionOuterClass.GetVersionResponse.Builder.class); - } - - // Construct using flyteidl.admin.VersionOuterClass.GetVersionResponse.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 (controlPlaneVersionBuilder_ == null) { - controlPlaneVersion_ = null; - } else { - controlPlaneVersion_ = null; - controlPlaneVersionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionResponse getDefaultInstanceForType() { - return flyteidl.admin.VersionOuterClass.GetVersionResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionResponse build() { - flyteidl.admin.VersionOuterClass.GetVersionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionResponse buildPartial() { - flyteidl.admin.VersionOuterClass.GetVersionResponse result = new flyteidl.admin.VersionOuterClass.GetVersionResponse(this); - if (controlPlaneVersionBuilder_ == null) { - result.controlPlaneVersion_ = controlPlaneVersion_; - } else { - result.controlPlaneVersion_ = controlPlaneVersionBuilder_.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.VersionOuterClass.GetVersionResponse) { - return mergeFrom((flyteidl.admin.VersionOuterClass.GetVersionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.VersionOuterClass.GetVersionResponse other) { - if (other == flyteidl.admin.VersionOuterClass.GetVersionResponse.getDefaultInstance()) return this; - if (other.hasControlPlaneVersion()) { - mergeControlPlaneVersion(other.getControlPlaneVersion()); - } - 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.VersionOuterClass.GetVersionResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.VersionOuterClass.GetVersionResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.VersionOuterClass.Version controlPlaneVersion_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder> controlPlaneVersionBuilder_; - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public boolean hasControlPlaneVersion() { - return controlPlaneVersionBuilder_ != null || controlPlaneVersion_ != null; - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public flyteidl.admin.VersionOuterClass.Version getControlPlaneVersion() { - if (controlPlaneVersionBuilder_ == null) { - return controlPlaneVersion_ == null ? flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; - } else { - return controlPlaneVersionBuilder_.getMessage(); - } - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public Builder setControlPlaneVersion(flyteidl.admin.VersionOuterClass.Version value) { - if (controlPlaneVersionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - controlPlaneVersion_ = value; - onChanged(); - } else { - controlPlaneVersionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public Builder setControlPlaneVersion( - flyteidl.admin.VersionOuterClass.Version.Builder builderForValue) { - if (controlPlaneVersionBuilder_ == null) { - controlPlaneVersion_ = builderForValue.build(); - onChanged(); - } else { - controlPlaneVersionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public Builder mergeControlPlaneVersion(flyteidl.admin.VersionOuterClass.Version value) { - if (controlPlaneVersionBuilder_ == null) { - if (controlPlaneVersion_ != null) { - controlPlaneVersion_ = - flyteidl.admin.VersionOuterClass.Version.newBuilder(controlPlaneVersion_).mergeFrom(value).buildPartial(); - } else { - controlPlaneVersion_ = value; - } - onChanged(); - } else { - controlPlaneVersionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public Builder clearControlPlaneVersion() { - if (controlPlaneVersionBuilder_ == null) { - controlPlaneVersion_ = null; - onChanged(); - } else { - controlPlaneVersion_ = null; - controlPlaneVersionBuilder_ = null; - } - - return this; - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public flyteidl.admin.VersionOuterClass.Version.Builder getControlPlaneVersionBuilder() { - - onChanged(); - return getControlPlaneVersionFieldBuilder().getBuilder(); - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - public flyteidl.admin.VersionOuterClass.VersionOrBuilder getControlPlaneVersionOrBuilder() { - if (controlPlaneVersionBuilder_ != null) { - return controlPlaneVersionBuilder_.getMessageOrBuilder(); - } else { - return controlPlaneVersion_ == null ? - flyteidl.admin.VersionOuterClass.Version.getDefaultInstance() : controlPlaneVersion_; - } - } - /** - *
-       * The control plane version information. FlyteAdmin and related components
-       * form the control plane of Flyte
-       * 
- * - * .flyteidl.admin.Version control_plane_version = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder> - getControlPlaneVersionFieldBuilder() { - if (controlPlaneVersionBuilder_ == null) { - controlPlaneVersionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.VersionOuterClass.Version, flyteidl.admin.VersionOuterClass.Version.Builder, flyteidl.admin.VersionOuterClass.VersionOrBuilder>( - getControlPlaneVersion(), - getParentForChildren(), - isClean()); - controlPlaneVersion_ = null; - } - return controlPlaneVersionBuilder_; - } - @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.GetVersionResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionResponse) - private static final flyteidl.admin.VersionOuterClass.GetVersionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.GetVersionResponse(); - } - - public static flyteidl.admin.VersionOuterClass.GetVersionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVersionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVersionResponse(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.VersionOuterClass.GetVersionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VersionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Version) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Specifies the GIT sha of the build
-     * 
- * - * string Build = 1; - */ - java.lang.String getBuild(); - /** - *
-     * Specifies the GIT sha of the build
-     * 
- * - * string Build = 1; - */ - com.google.protobuf.ByteString - getBuildBytes(); - - /** - *
-     * Version for the build, should follow a semver
-     * 
- * - * string Version = 2; - */ - java.lang.String getVersion(); - /** - *
-     * Version for the build, should follow a semver
-     * 
- * - * string Version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     * Build timestamp
-     * 
- * - * string BuildTime = 3; - */ - java.lang.String getBuildTime(); - /** - *
-     * Build timestamp
-     * 
- * - * string BuildTime = 3; - */ - com.google.protobuf.ByteString - getBuildTimeBytes(); - } - /** - *
-   * Provides Version information for a component
-   * 
- * - * Protobuf type {@code flyteidl.admin.Version} - */ - public static final class Version extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Version) - VersionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Version.newBuilder() to construct. - private Version(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Version() { - build_ = ""; - version_ = ""; - buildTime_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Version( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - build_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - buildTime_ = s; - 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.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.Version.class, flyteidl.admin.VersionOuterClass.Version.Builder.class); - } - - public static final int BUILD_FIELD_NUMBER = 1; - private volatile java.lang.Object build_; - /** - *
-     * Specifies the GIT sha of the build
-     * 
- * - * string Build = 1; - */ - public java.lang.String getBuild() { - java.lang.Object ref = build_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - build_ = s; - return s; - } - } - /** - *
-     * Specifies the GIT sha of the build
-     * 
- * - * string Build = 1; - */ - public com.google.protobuf.ByteString - getBuildBytes() { - java.lang.Object ref = build_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - build_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - *
-     * Version for the build, should follow a semver
-     * 
- * - * string Version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * Version for the build, should follow a semver
-     * 
- * - * string Version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUILDTIME_FIELD_NUMBER = 3; - private volatile java.lang.Object buildTime_; - /** - *
-     * Build timestamp
-     * 
- * - * string BuildTime = 3; - */ - public java.lang.String getBuildTime() { - java.lang.Object ref = buildTime_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - buildTime_ = s; - return s; - } - } - /** - *
-     * Build timestamp
-     * 
- * - * string BuildTime = 3; - */ - public com.google.protobuf.ByteString - getBuildTimeBytes() { - java.lang.Object ref = buildTime_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - buildTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getBuildBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, build_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!getBuildTimeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, buildTime_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getBuildBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, build_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!getBuildTimeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, buildTime_); - } - 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.VersionOuterClass.Version)) { - return super.equals(obj); - } - flyteidl.admin.VersionOuterClass.Version other = (flyteidl.admin.VersionOuterClass.Version) obj; - - if (!getBuild() - .equals(other.getBuild())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getBuildTime() - .equals(other.getBuildTime())) 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(); - hash = (37 * hash) + BUILD_FIELD_NUMBER; - hash = (53 * hash) + getBuild().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + BUILDTIME_FIELD_NUMBER; - hash = (53 * hash) + getBuildTime().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.VersionOuterClass.Version parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.Version parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.Version parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.Version 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.VersionOuterClass.Version parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.Version parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.Version parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.Version 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.VersionOuterClass.Version parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.Version 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.VersionOuterClass.Version parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.Version 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.VersionOuterClass.Version 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; - } - /** - *
-     * Provides Version information for a component
-     * 
- * - * Protobuf type {@code flyteidl.admin.Version} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Version) - flyteidl.admin.VersionOuterClass.VersionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.Version.class, flyteidl.admin.VersionOuterClass.Version.Builder.class); - } - - // Construct using flyteidl.admin.VersionOuterClass.Version.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(); - build_ = ""; - - version_ = ""; - - buildTime_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_Version_descriptor; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.Version getDefaultInstanceForType() { - return flyteidl.admin.VersionOuterClass.Version.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.Version build() { - flyteidl.admin.VersionOuterClass.Version result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.Version buildPartial() { - flyteidl.admin.VersionOuterClass.Version result = new flyteidl.admin.VersionOuterClass.Version(this); - result.build_ = build_; - result.version_ = version_; - result.buildTime_ = buildTime_; - 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.VersionOuterClass.Version) { - return mergeFrom((flyteidl.admin.VersionOuterClass.Version)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.VersionOuterClass.Version other) { - if (other == flyteidl.admin.VersionOuterClass.Version.getDefaultInstance()) return this; - if (!other.getBuild().isEmpty()) { - build_ = other.build_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getBuildTime().isEmpty()) { - buildTime_ = other.buildTime_; - onChanged(); - } - 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.VersionOuterClass.Version parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.VersionOuterClass.Version) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object build_ = ""; - /** - *
-       * Specifies the GIT sha of the build
-       * 
- * - * string Build = 1; - */ - public java.lang.String getBuild() { - java.lang.Object ref = build_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - build_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Specifies the GIT sha of the build
-       * 
- * - * string Build = 1; - */ - public com.google.protobuf.ByteString - getBuildBytes() { - java.lang.Object ref = build_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - build_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Specifies the GIT sha of the build
-       * 
- * - * string Build = 1; - */ - public Builder setBuild( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - build_ = value; - onChanged(); - return this; - } - /** - *
-       * Specifies the GIT sha of the build
-       * 
- * - * string Build = 1; - */ - public Builder clearBuild() { - - build_ = getDefaultInstance().getBuild(); - onChanged(); - return this; - } - /** - *
-       * Specifies the GIT sha of the build
-       * 
- * - * string Build = 1; - */ - public Builder setBuildBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - build_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Version for the build, should follow a semver
-       * 
- * - * string Version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version for the build, should follow a semver
-       * 
- * - * string Version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version for the build, should follow a semver
-       * 
- * - * string Version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version for the build, should follow a semver
-       * 
- * - * string Version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Version for the build, should follow a semver
-       * 
- * - * string Version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object buildTime_ = ""; - /** - *
-       * Build timestamp
-       * 
- * - * string BuildTime = 3; - */ - public java.lang.String getBuildTime() { - java.lang.Object ref = buildTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - buildTime_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Build timestamp
-       * 
- * - * string BuildTime = 3; - */ - public com.google.protobuf.ByteString - getBuildTimeBytes() { - java.lang.Object ref = buildTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - buildTime_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Build timestamp
-       * 
- * - * string BuildTime = 3; - */ - public Builder setBuildTime( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - buildTime_ = value; - onChanged(); - return this; - } - /** - *
-       * Build timestamp
-       * 
- * - * string BuildTime = 3; - */ - public Builder clearBuildTime() { - - buildTime_ = getDefaultInstance().getBuildTime(); - onChanged(); - return this; - } - /** - *
-       * Build timestamp
-       * 
- * - * string BuildTime = 3; - */ - public Builder setBuildTimeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - buildTime_ = value; - onChanged(); - return this; - } - @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.Version) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Version) - private static final flyteidl.admin.VersionOuterClass.Version DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.Version(); - } - - public static flyteidl.admin.VersionOuterClass.Version getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Version parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Version(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.VersionOuterClass.Version getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetVersionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.GetVersionRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Empty request for GetVersion
-   * 
- * - * Protobuf type {@code flyteidl.admin.GetVersionRequest} - */ - public static final class GetVersionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.GetVersionRequest) - GetVersionRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetVersionRequest.newBuilder() to construct. - private GetVersionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetVersionRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetVersionRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.GetVersionRequest.class, flyteidl.admin.VersionOuterClass.GetVersionRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.VersionOuterClass.GetVersionRequest)) { - return super.equals(obj); - } - flyteidl.admin.VersionOuterClass.GetVersionRequest other = (flyteidl.admin.VersionOuterClass.GetVersionRequest) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest 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.VersionOuterClass.GetVersionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest 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.VersionOuterClass.GetVersionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest 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.VersionOuterClass.GetVersionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.VersionOuterClass.GetVersionRequest 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.VersionOuterClass.GetVersionRequest 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; - } - /** - *
-     * Empty request for GetVersion
-     * 
- * - * Protobuf type {@code flyteidl.admin.GetVersionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.GetVersionRequest) - flyteidl.admin.VersionOuterClass.GetVersionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.VersionOuterClass.GetVersionRequest.class, flyteidl.admin.VersionOuterClass.GetVersionRequest.Builder.class); - } - - // Construct using flyteidl.admin.VersionOuterClass.GetVersionRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.VersionOuterClass.internal_static_flyteidl_admin_GetVersionRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionRequest getDefaultInstanceForType() { - return flyteidl.admin.VersionOuterClass.GetVersionRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionRequest build() { - flyteidl.admin.VersionOuterClass.GetVersionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.VersionOuterClass.GetVersionRequest buildPartial() { - flyteidl.admin.VersionOuterClass.GetVersionRequest result = new flyteidl.admin.VersionOuterClass.GetVersionRequest(this); - 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.VersionOuterClass.GetVersionRequest) { - return mergeFrom((flyteidl.admin.VersionOuterClass.GetVersionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.VersionOuterClass.GetVersionRequest other) { - if (other == flyteidl.admin.VersionOuterClass.GetVersionRequest.getDefaultInstance()) return this; - 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.VersionOuterClass.GetVersionRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.VersionOuterClass.GetVersionRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.GetVersionRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.GetVersionRequest) - private static final flyteidl.admin.VersionOuterClass.GetVersionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.VersionOuterClass.GetVersionRequest(); - } - - public static flyteidl.admin.VersionOuterClass.GetVersionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetVersionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetVersionRequest(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.VersionOuterClass.GetVersionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetVersionResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Version_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Version_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_GetVersionRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/admin/version.proto\022\016flyteidl" + - ".admin\"L\n\022GetVersionResponse\0226\n\025control_" + - "plane_version\030\001 \001(\0132\027.flyteidl.admin.Ver" + - "sion\"<\n\007Version\022\r\n\005Build\030\001 \001(\t\022\017\n\007Versio" + - "n\030\002 \001(\t\022\021\n\tBuildTime\030\003 \001(\t\"\023\n\021GetVersion" + - "RequestB=Z;github.com/flyteorg/flyte/fly" + - "teidl/gen/pb-go/flyteidl/adminb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_admin_GetVersionResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_GetVersionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetVersionResponse_descriptor, - new java.lang.String[] { "ControlPlaneVersion", }); - internal_static_flyteidl_admin_Version_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_Version_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Version_descriptor, - new java.lang.String[] { "Build", "Version", "BuildTime", }); - internal_static_flyteidl_admin_GetVersionRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_GetVersionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_GetVersionRequest_descriptor, - new java.lang.String[] { }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java deleted file mode 100644 index 21be6d20a5..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowAttributesOuterClass.java +++ /dev/null @@ -1,5560 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow_attributes.proto - -package flyteidl.admin; - -public final class WorkflowAttributesOuterClass { - private WorkflowAttributesOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowAttributesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributes) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - boolean hasMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes(); - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder(); - } - /** - *
-   * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributes} - */ - public static final class WorkflowAttributes extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributes) - WorkflowAttributesOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributes.newBuilder() to construct. - private WorkflowAttributes(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributes() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributes( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 34: { - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder subBuilder = null; - if (matchingAttributes_ != null) { - subBuilder = matchingAttributes_.toBuilder(); - } - matchingAttributes_ = input.readMessage(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(matchingAttributes_); - matchingAttributes_ = 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id for which this set of attributes will be applied.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id for which this set of attributes will be applied.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name for which this set of attributes will be applied.
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MATCHING_ATTRIBUTES_FIELD_NUMBER = 4; - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - return getMatchingAttributes(); - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (matchingAttributes_ != null) { - output.writeMessage(4, getMatchingAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (matchingAttributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getMatchingAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributes)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (hasMatchingAttributes() != other.hasMatchingAttributes()) return false; - if (hasMatchingAttributes()) { - if (!getMatchingAttributes() - .equals(other.getMatchingAttributes())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - if (hasMatchingAttributes()) { - hash = (37 * hash) + MATCHING_ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getMatchingAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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.WorkflowAttributesOuterClass.WorkflowAttributes parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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.WorkflowAttributesOuterClass.WorkflowAttributes parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes 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.WorkflowAttributesOuterClass.WorkflowAttributes 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; - } - /** - *
-     * Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributes} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributes) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - if (matchingAttributesBuilder_ == null) { - result.matchingAttributes_ = matchingAttributes_; - } else { - result.matchingAttributes_ = matchingAttributesBuilder_.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.WorkflowAttributesOuterClass.WorkflowAttributes) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.hasMatchingAttributes()) { - mergeMatchingAttributes(other.getMatchingAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributes parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id for which this set of attributes will be applied.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id for which this set of attributes will be applied.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name for which this set of attributes will be applied.
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes matchingAttributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> matchingAttributesBuilder_; - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public boolean hasMatchingAttributes() { - return matchingAttributesBuilder_ != null || matchingAttributes_ != null; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes getMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - return matchingAttributes_ == null ? flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } else { - return matchingAttributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - matchingAttributes_ = value; - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder setMatchingAttributes( - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder builderForValue) { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = builderForValue.build(); - onChanged(); - } else { - matchingAttributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder mergeMatchingAttributes(flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes value) { - if (matchingAttributesBuilder_ == null) { - if (matchingAttributes_ != null) { - matchingAttributes_ = - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.newBuilder(matchingAttributes_).mergeFrom(value).buildPartial(); - } else { - matchingAttributes_ = value; - } - onChanged(); - } else { - matchingAttributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public Builder clearMatchingAttributes() { - if (matchingAttributesBuilder_ == null) { - matchingAttributes_ = null; - onChanged(); - } else { - matchingAttributes_ = null; - matchingAttributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder getMatchingAttributesBuilder() { - - onChanged(); - return getMatchingAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder getMatchingAttributesOrBuilder() { - if (matchingAttributesBuilder_ != null) { - return matchingAttributesBuilder_.getMessageOrBuilder(); - } else { - return matchingAttributes_ == null ? - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.getDefaultInstance() : matchingAttributes_; - } - } - /** - * .flyteidl.admin.MatchingAttributes matching_attributes = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder> - getMatchingAttributesFieldBuilder() { - if (matchingAttributesBuilder_ == null) { - matchingAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributes.Builder, flyteidl.admin.MatchableResourceOuterClass.MatchingAttributesOrBuilder>( - getMatchingAttributes(), - getParentForChildren(), - isClean()); - matchingAttributes_ = null; - } - return matchingAttributesBuilder_; - } - @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.WorkflowAttributes) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributes) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributes parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributes(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.WorkflowAttributesOuterClass.WorkflowAttributes getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Sets custom attributes for a project, domain and workflow combination.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class WorkflowAttributesUpdateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - WorkflowAttributesUpdateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateRequest.newBuilder() to construct. - private WorkflowAttributesUpdateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateRequest( - 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.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest 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; - } - /** - *
-     * Sets custom attributes for a project, domain and workflow combination.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.WorkflowAttributesUpdateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateRequest(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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesUpdateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesUpdateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class WorkflowAttributesUpdateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - WorkflowAttributesUpdateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesUpdateResponse.newBuilder() to construct. - private WorkflowAttributesUpdateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesUpdateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesUpdateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesUpdateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesUpdateResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(this); - 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse.getDefaultInstance()) return this; - 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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.WorkflowAttributesUpdateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesUpdateResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesUpdateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesUpdateResponse(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.WorkflowAttributesOuterClass.WorkflowAttributesUpdateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to get an individual workflow attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class WorkflowAttributesGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetRequest) - WorkflowAttributesGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetRequest.newBuilder() to construct. - private WorkflowAttributesGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to return.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest 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; - } - /** - *
-     * Request to get an individual workflow attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to return.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.WorkflowAttributesGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetRequest(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.WorkflowAttributesOuterClass.WorkflowAttributesGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - boolean hasAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes(); - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder(); - } - /** - *
-   * Response to get an individual workflow attribute override.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class WorkflowAttributesGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesGetResponse) - WorkflowAttributesGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesGetResponse.newBuilder() to construct. - private WorkflowAttributesGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesGetResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesGetResponse( - 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.WorkflowAttributesOuterClass.WorkflowAttributes.Builder subBuilder = null; - if (attributes_ != null) { - subBuilder = attributes_.toBuilder(); - } - attributes_ = input.readMessage(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attributes_); - attributes_ = 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - public static final int ATTRIBUTES_FIELD_NUMBER = 1; - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - return getAttributes(); - } - - 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 (attributes_ != null) { - output.writeMessage(1, getAttributes()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributes_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) obj; - - if (hasAttributes() != other.hasAttributes()) return false; - if (hasAttributes()) { - if (!getAttributes() - .equals(other.getAttributes())) 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 (hasAttributes()) { - hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; - hash = (53 * hash) + getAttributes().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse 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; - } - /** - *
-     * Response to get an individual workflow attribute override.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesGetResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.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 (attributesBuilder_ == null) { - attributes_ = null; - } else { - attributes_ = null; - attributesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(this); - if (attributesBuilder_ == null) { - result.attributes_ = attributes_; - } else { - result.attributes_ = attributesBuilder_.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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse.getDefaultInstance()) return this; - if (other.hasAttributes()) { - mergeAttributes(other.getAttributes()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes attributes_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> attributesBuilder_; - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public boolean hasAttributes() { - return attributesBuilder_ != null || attributes_ != null; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes getAttributes() { - if (attributesBuilder_ == null) { - return attributes_ == null ? flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } else { - return attributesBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributes_ = value; - onChanged(); - } else { - attributesBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder setAttributes( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder builderForValue) { - if (attributesBuilder_ == null) { - attributes_ = builderForValue.build(); - onChanged(); - } else { - attributesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder mergeAttributes(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes value) { - if (attributesBuilder_ == null) { - if (attributes_ != null) { - attributes_ = - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.newBuilder(attributes_).mergeFrom(value).buildPartial(); - } else { - attributes_ = value; - } - onChanged(); - } else { - attributesBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public Builder clearAttributes() { - if (attributesBuilder_ == null) { - attributes_ = null; - onChanged(); - } else { - attributes_ = null; - attributesBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder getAttributesBuilder() { - - onChanged(); - return getAttributesFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder getAttributesOrBuilder() { - if (attributesBuilder_ != null) { - return attributesBuilder_.getMessageOrBuilder(); - } else { - return attributes_ == null ? - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.getDefaultInstance() : attributes_; - } - } - /** - * .flyteidl.admin.WorkflowAttributes attributes = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder> - getAttributesFieldBuilder() { - if (attributesBuilder_ == null) { - attributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributes.Builder, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesOrBuilder>( - getAttributes(), - getParentForChildren(), - isClean()); - attributes_ = null; - } - return attributesBuilder_; - } - @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.WorkflowAttributesGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesGetResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesGetResponse(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.WorkflowAttributesOuterClass.WorkflowAttributesGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - java.lang.String getWorkflow(); - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - com.google.protobuf.ByteString - getWorkflowBytes(); - - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - int getResourceTypeValue(); - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType(); - } - /** - *
-   * Request to delete a set matchable workflow attribute override.
-   * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class WorkflowAttributesDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - WorkflowAttributesDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteRequest.newBuilder() to construct. - private WorkflowAttributesDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteRequest() { - project_ = ""; - domain_ = ""; - workflow_ = ""; - resourceType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflow_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Unique project id which this set of attributes references.
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Unique domain id which this set of attributes references.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int WORKFLOW_FIELD_NUMBER = 3; - private volatile java.lang.Object workflow_; - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } - } - /** - *
-     * Workflow name which this set of attributes references.
-     * +required
-     * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 4; - private int resourceType_; - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Which type of matchable attributes to delete.
-     * +required
-     * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - output.writeEnum(4, resourceType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getWorkflowBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflow_); - } - if (resourceType_ != flyteidl.admin.MatchableResourceOuterClass.MatchableResource.TASK_RESOURCE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, resourceType_); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - if (resourceType_ != other.resourceType_) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest 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; - } - /** - *
-     * Request to delete a set matchable workflow attribute override.
-     * For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration`
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteRequest) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.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(); - project_ = ""; - - domain_ = ""; - - workflow_ = ""; - - resourceType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.workflow_ = workflow_; - result.resourceType_ = resourceType_; - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getWorkflow().isEmpty()) { - workflow_ = other.workflow_; - onChanged(); - } - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Unique project id which this set of attributes references.
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Unique domain id which this set of attributes references.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object workflow_ = ""; - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public java.lang.String getWorkflow() { - java.lang.Object ref = workflow_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflow_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public com.google.protobuf.ByteString - getWorkflowBytes() { - java.lang.Object ref = workflow_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflow_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflow( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflow_ = value; - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder clearWorkflow() { - - workflow_ = getDefaultInstance().getWorkflow(); - onChanged(); - return this; - } - /** - *
-       * Workflow name which this set of attributes references.
-       * +required
-       * 
- * - * string workflow = 3; - */ - public Builder setWorkflowBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflow_ = value; - onChanged(); - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public flyteidl.admin.MatchableResourceOuterClass.MatchableResource getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.admin.MatchableResourceOuterClass.MatchableResource result = flyteidl.admin.MatchableResourceOuterClass.MatchableResource.valueOf(resourceType_); - return result == null ? flyteidl.admin.MatchableResourceOuterClass.MatchableResource.UNRECOGNIZED : result; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder setResourceType(flyteidl.admin.MatchableResourceOuterClass.MatchableResource value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Which type of matchable attributes to delete.
-       * +required
-       * 
- * - * .flyteidl.admin.MatchableResource resource_type = 4; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - @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.WorkflowAttributesDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteRequest) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteRequest(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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowAttributesDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowAttributesDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class WorkflowAttributesDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - WorkflowAttributesDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowAttributesDeleteResponse.newBuilder() to construct. - private WorkflowAttributesDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowAttributesDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowAttributesDeleteResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowAttributesDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowAttributesDeleteResponse) - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.class, flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse build() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse buildPartial() { - flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse result = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(this); - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) { - return mergeFrom((flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse other) { - if (other == flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse.getDefaultInstance()) return this; - 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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.WorkflowAttributesDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowAttributesDeleteResponse) - private static final flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse(); - } - - public static flyteidl.admin.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowAttributesDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowAttributesDeleteResponse(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.WorkflowAttributesOuterClass.WorkflowAttributesDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n(flyteidl/admin/workflow_attributes.pro" + - "to\022\016flyteidl.admin\032\'flyteidl/admin/match" + - "able_resource.proto\"\210\001\n\022WorkflowAttribut" + - "es\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010w" + - "orkflow\030\003 \001(\t\022?\n\023matching_attributes\030\004 \001" + - "(\0132\".flyteidl.admin.MatchingAttributes\"Y" + - "\n\037WorkflowAttributesUpdateRequest\0226\n\natt" + - "ributes\030\001 \001(\0132\".flyteidl.admin.WorkflowA" + - "ttributes\"\"\n WorkflowAttributesUpdateRes" + - "ponse\"\213\001\n\034WorkflowAttributesGetRequest\022\017" + - "\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workf" + - "low\030\003 \001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyte" + - "idl.admin.MatchableResource\"W\n\035WorkflowA" + - "ttributesGetResponse\0226\n\nattributes\030\001 \001(\013" + - "2\".flyteidl.admin.WorkflowAttributes\"\216\001\n" + - "\037WorkflowAttributesDeleteRequest\022\017\n\007proj" + - "ect\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010workflow\030\003 " + - "\001(\t\0228\n\rresource_type\030\004 \001(\0162!.flyteidl.ad" + - "min.MatchableResource\"\"\n WorkflowAttribu" + - "tesDeleteResponseB=Z;github.com/flyteorg" + - "/flyte/flyteidl/gen/pb-go/flyteidl/admin" + - "b\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowAttributes_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowAttributes_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributes_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "MatchingAttributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateRequest_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesUpdateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesGetResponse_descriptor, - new java.lang.String[] { "Attributes", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Workflow", "ResourceType", }); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowAttributesDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java b/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java deleted file mode 100644 index 9def14e8f1..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/admin/WorkflowOuterClass.java +++ /dev/null @@ -1,8303 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/admin/workflow.proto - -package flyteidl.admin; - -public final class WorkflowOuterClass { - private WorkflowOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - boolean hasSpec(); - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec(); - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder(); - } - /** - *
-   * Represents a request structure to create a revision of a workflow.
-   * See :ref:`ref_flyteidl.admin.Workflow` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class WorkflowCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateRequest) - WorkflowCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateRequest.newBuilder() to construct. - private WorkflowCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateRequest( - 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; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = 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_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * +required
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - /** - *
-     * Represents the specification for workflow.
-     * +required
-     * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - 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()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - 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()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - 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.WorkflowCreateRequest)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) 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(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest 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.WorkflowCreateRequest 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; - } - /** - *
-     * Represents a request structure to create a revision of a workflow.
-     * See :ref:`ref_flyteidl.admin.Workflow` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateRequest) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.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; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.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.WorkflowCreateRequest) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - 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.WorkflowCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest) 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_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * +required
-       * 
- * - * .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_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> specBuilder_; - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder setSpec( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.admin.WorkflowOuterClass.WorkflowSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance() : spec_; - } - } - /** - *
-       * Represents the specification for workflow.
-       * +required
-       * 
- * - * .flyteidl.admin.WorkflowSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowSpec, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - @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.WorkflowCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateRequest) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateRequest(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.WorkflowCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowCreateResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Purposefully empty, may be populated in the future. 
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class WorkflowCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowCreateResponse) - WorkflowCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowCreateResponse.newBuilder() to construct. - private WorkflowCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowCreateResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowCreateResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.WorkflowCreateResponse)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse 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.WorkflowCreateResponse 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; - } - /** - *
-     * Purposefully empty, may be populated in the future. 
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowCreateResponse) - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.class, flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse build() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse result = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(this); - 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.WorkflowCreateResponse) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse.getDefaultInstance()) return this; - 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.WorkflowCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.WorkflowCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowCreateResponse) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowCreateResponse(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.WorkflowCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.Workflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - boolean hasClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure(); - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder(); - - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - java.lang.String getShortDescription(); - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - com.google.protobuf.ByteString - getShortDescriptionBytes(); - } - /** - *
-   * Represents the workflow structure stored in the Admin
-   * A workflow is created by ordering tasks and associating outputs to inputs
-   * in order to produce a directed-acyclic execution graph.
-   * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Workflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.Workflow) - WorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use Workflow.newBuilder() to construct. - private Workflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Workflow() { - shortDescription_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Workflow( - 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; - } - case 18: { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder subBuilder = null; - if (closure_ != null) { - subBuilder = closure_.toBuilder(); - } - closure_ = input.readMessage(flyteidl.admin.WorkflowOuterClass.WorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(closure_); - closure_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - shortDescription_ = s; - 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_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int CLOSURE_FIELD_NUMBER = 2; - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closure_ != null; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - /** - *
-     * closure encapsulates all the fields that maps to a compiled version of the workflow.
-     * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - return getClosure(); - } - - public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object shortDescription_; - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } - } - /** - *
-     * One-liner overview of the entity.
-     * 
- * - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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()); - } - if (closure_ != null) { - output.writeMessage(2, getClosure()); - } - if (!getShortDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); - } - 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()); - } - if (closure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClosure()); - } - if (!getShortDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); - } - 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.Workflow)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.Workflow other = (flyteidl.admin.WorkflowOuterClass.Workflow) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasClosure() != other.hasClosure()) return false; - if (hasClosure()) { - if (!getClosure() - .equals(other.getClosure())) return false; - } - if (!getShortDescription() - .equals(other.getShortDescription())) 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(); - } - if (hasClosure()) { - hash = (37 * hash) + CLOSURE_FIELD_NUMBER; - hash = (53 * hash) + getClosure().hashCode(); - } - hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getShortDescription().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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.Workflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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.Workflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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.Workflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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.Workflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.Workflow 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.Workflow 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; - } - /** - *
-     * Represents the workflow structure stored in the Admin
-     * A workflow is created by ordering tasks and associating outputs to inputs
-     * in order to produce a directed-acyclic execution graph.
-     * 
- * - * Protobuf type {@code flyteidl.admin.Workflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.Workflow) - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.Workflow.class, flyteidl.admin.WorkflowOuterClass.Workflow.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.Workflow.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; - } - if (closureBuilder_ == null) { - closure_ = null; - } else { - closure_ = null; - closureBuilder_ = null; - } - shortDescription_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_Workflow_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow build() { - flyteidl.admin.WorkflowOuterClass.Workflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.Workflow buildPartial() { - flyteidl.admin.WorkflowOuterClass.Workflow result = new flyteidl.admin.WorkflowOuterClass.Workflow(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (closureBuilder_ == null) { - result.closure_ = closure_; - } else { - result.closure_ = closureBuilder_.build(); - } - result.shortDescription_ = shortDescription_; - 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.Workflow) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.Workflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.Workflow other) { - if (other == flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasClosure()) { - mergeClosure(other.getClosure()); - } - if (!other.getShortDescription().isEmpty()) { - shortDescription_ = other.shortDescription_; - onChanged(); - } - 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.Workflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.Workflow) 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_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - - private flyteidl.admin.WorkflowOuterClass.WorkflowClosure closure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> closureBuilder_; - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public boolean hasClosure() { - return closureBuilder_ != null || closure_ != null; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getClosure() { - if (closureBuilder_ == null) { - return closure_ == null ? flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } else { - return closureBuilder_.getMessage(); - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - closure_ = value; - onChanged(); - } else { - closureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder setClosure( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder builderForValue) { - if (closureBuilder_ == null) { - closure_ = builderForValue.build(); - onChanged(); - } else { - closureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder mergeClosure(flyteidl.admin.WorkflowOuterClass.WorkflowClosure value) { - if (closureBuilder_ == null) { - if (closure_ != null) { - closure_ = - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.newBuilder(closure_).mergeFrom(value).buildPartial(); - } else { - closure_ = value; - } - onChanged(); - } else { - closureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public Builder clearClosure() { - if (closureBuilder_ == null) { - closure_ = null; - onChanged(); - } else { - closure_ = null; - closureBuilder_ = null; - } - - return this; - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder getClosureBuilder() { - - onChanged(); - return getClosureFieldBuilder().getBuilder(); - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder getClosureOrBuilder() { - if (closureBuilder_ != null) { - return closureBuilder_.getMessageOrBuilder(); - } else { - return closure_ == null ? - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance() : closure_; - } - } - /** - *
-       * closure encapsulates all the fields that maps to a compiled version of the workflow.
-       * 
- * - * .flyteidl.admin.WorkflowClosure closure = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder> - getClosureFieldBuilder() { - if (closureBuilder_ == null) { - closureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.WorkflowClosure, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder>( - getClosure(), - getParentForChildren(), - isClean()); - closure_ = null; - } - return closureBuilder_; - } - - private java.lang.Object shortDescription_ = ""; - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder setShortDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortDescription_ = value; - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder clearShortDescription() { - - shortDescription_ = getDefaultInstance().getShortDescription(); - onChanged(); - return this; - } - /** - *
-       * One-liner overview of the entity.
-       * 
- * - * string short_description = 3; - */ - public Builder setShortDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortDescription_ = value; - onChanged(); - return this; - } - @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.Workflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.Workflow) - private static final flyteidl.admin.WorkflowOuterClass.Workflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.Workflow(); - } - - public static flyteidl.admin.WorkflowOuterClass.Workflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Workflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Workflow(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.Workflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - int getWorkflowsCount(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - java.util.List - getWorkflowsOrBuilderList(); - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index); - - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - *
-   * Represents a list of workflows returned from the admin.
-   * See :ref:`ref_flyteidl.admin.Workflow` for more details
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class WorkflowList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowList) - WorkflowListOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowList.newBuilder() to construct. - private WorkflowList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowList() { - workflows_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowList( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - workflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - workflows_.add( - input.readMessage(flyteidl.admin.WorkflowOuterClass.Workflow.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOWS_FIELD_NUMBER = 1; - private java.util.List workflows_; - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - return workflows_; - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - return workflows_.size(); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - return workflows_.get(index); - } - /** - *
-     * A list of workflows returned based on the request.
-     * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - return workflows_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-     * in a query. If there are no more results, this value will be empty.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < workflows_.size(); i++) { - output.writeMessage(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < workflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, workflows_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.WorkflowList)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowList other = (flyteidl.admin.WorkflowOuterClass.WorkflowList) obj; - - if (!getWorkflowsList() - .equals(other.getWorkflowsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getWorkflowsCount() > 0) { - hash = (37 * hash) + WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowList 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.WorkflowList 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; - } - /** - *
-     * Represents a list of workflows returned from the admin.
-     * See :ref:`ref_flyteidl.admin.Workflow` for more details
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowList) - flyteidl.admin.WorkflowOuterClass.WorkflowListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowList.class, flyteidl.admin.WorkflowOuterClass.WorkflowList.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - workflowsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowList_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList build() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowList buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowList result = new flyteidl.admin.WorkflowOuterClass.WorkflowList(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - workflows_ = java.util.Collections.unmodifiableList(workflows_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.workflows_ = workflows_; - } else { - result.workflows_ = workflowsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.WorkflowList) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowList other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowList.getDefaultInstance()) return this; - if (workflowsBuilder_ == null) { - if (!other.workflows_.isEmpty()) { - if (workflows_.isEmpty()) { - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureWorkflowsIsMutable(); - workflows_.addAll(other.workflows_); - } - onChanged(); - } - } else { - if (!other.workflows_.isEmpty()) { - if (workflowsBuilder_.isEmpty()) { - workflowsBuilder_.dispose(); - workflowsBuilder_ = null; - workflows_ = other.workflows_; - bitField0_ = (bitField0_ & ~0x00000001); - workflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkflowsFieldBuilder() : null; - } else { - workflowsBuilder_.addAllMessages(other.workflows_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.WorkflowList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List workflows_ = - java.util.Collections.emptyList(); - private void ensureWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - workflows_ = new java.util.ArrayList(workflows_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> workflowsBuilder_; - - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List getWorkflowsList() { - if (workflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(workflows_); - } else { - return workflowsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public int getWorkflowsCount() { - if (workflowsBuilder_ == null) { - return workflows_.size(); - } else { - return workflowsBuilder_.getCount(); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow getWorkflows(int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); - } else { - return workflowsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.set(index, value); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder setWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.set(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows(flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(value); - onChanged(); - } else { - workflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow value) { - if (workflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkflowsIsMutable(); - workflows_.add(index, value); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addWorkflows( - int index, flyteidl.admin.WorkflowOuterClass.Workflow.Builder builderForValue) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.add(index, builderForValue.build()); - onChanged(); - } else { - workflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder addAllWorkflows( - java.lang.Iterable values) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workflows_); - onChanged(); - } else { - workflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder clearWorkflows() { - if (workflowsBuilder_ == null) { - workflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - workflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public Builder removeWorkflows(int index) { - if (workflowsBuilder_ == null) { - ensureWorkflowsIsMutable(); - workflows_.remove(index); - onChanged(); - } else { - workflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder getWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder getWorkflowsOrBuilder( - int index) { - if (workflowsBuilder_ == null) { - return workflows_.get(index); } else { - return workflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsOrBuilderList() { - if (workflowsBuilder_ != null) { - return workflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workflows_); - } - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder() { - return getWorkflowsFieldBuilder().addBuilder( - flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public flyteidl.admin.WorkflowOuterClass.Workflow.Builder addWorkflowsBuilder( - int index) { - return getWorkflowsFieldBuilder().addBuilder( - index, flyteidl.admin.WorkflowOuterClass.Workflow.getDefaultInstance()); - } - /** - *
-       * A list of workflows returned based on the request.
-       * 
- * - * repeated .flyteidl.admin.Workflow workflows = 1; - */ - public java.util.List - getWorkflowsBuilderList() { - return getWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder> - getWorkflowsFieldBuilder() { - if (workflowsBuilder_ == null) { - workflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.admin.WorkflowOuterClass.Workflow, flyteidl.admin.WorkflowOuterClass.Workflow.Builder, flyteidl.admin.WorkflowOuterClass.WorkflowOrBuilder>( - workflows_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - workflows_ = null; - } - return workflowsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * In the case of multiple pages of results, the server-provided token can be used to fetch the next page
-       * in a query. If there are no more results, this value will be empty.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.WorkflowList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowList) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowList(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowList(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.WorkflowList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index); - - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - boolean hasDescription(); - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription(); - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder(); - } - /** - *
-   * Represents a structure that encapsulates the specification of the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class WorkflowSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowSpec) - WorkflowSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowSpec.newBuilder() to construct. - private WorkflowSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowSpec() { - subWorkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowSpec( - 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.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry)); - break; - } - case 26: { - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder subBuilder = null; - if (description_ != null) { - subBuilder = description_.toBuilder(); - } - description_ = input.readMessage(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(description_); - description_ = 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - private int bitField0_; - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the workflow.
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-     * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-     * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.get(index); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public boolean hasDescription() { - return description_ != null; - } - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { - return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } - /** - *
-     * Represents the specification for description entity.
-     * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { - return getDescription(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - if (description_ != null) { - output.writeMessage(3, getDescription()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.get(i)); - } - if (description_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDescription()); - } - 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.WorkflowSpec)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowSpec other = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) return false; - if (hasDescription() != other.hasDescription()) return false; - if (hasDescription()) { - if (!getDescription() - .equals(other.getDescription())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - if (hasDescription()) { - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec 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.WorkflowSpec 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; - } - /** - *
-     * Represents a structure that encapsulates the specification of the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowSpec) - flyteidl.admin.WorkflowOuterClass.WorkflowSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowSpec.class, flyteidl.admin.WorkflowOuterClass.WorkflowSpec.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - if (descriptionBuilder_ == null) { - description_ = null; - } else { - description_ = null; - descriptionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowSpec_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec build() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowSpec buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowSpec result = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - if (descriptionBuilder_ == null) { - result.description_ = description_; - } else { - result.description_ = descriptionBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.WorkflowSpec) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowSpec other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowSpec.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - if (other.hasDescription()) { - mergeDescription(other.getDescription()); - } - 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.WorkflowSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the workflow.
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the
-       * propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out
-       * to Admin to see other registered workflows).  In fact, subworkflows do not even need to be registered.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - - private flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity description_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> descriptionBuilder_; - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public boolean hasDescription() { - return descriptionBuilder_ != null || description_ != null; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity getDescription() { - if (descriptionBuilder_ == null) { - return description_ == null ? flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } else { - return descriptionBuilder_.getMessage(); - } - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public Builder setDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - onChanged(); - } else { - descriptionBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public Builder setDescription( - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder builderForValue) { - if (descriptionBuilder_ == null) { - description_ = builderForValue.build(); - onChanged(); - } else { - descriptionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public Builder mergeDescription(flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity value) { - if (descriptionBuilder_ == null) { - if (description_ != null) { - description_ = - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.newBuilder(description_).mergeFrom(value).buildPartial(); - } else { - description_ = value; - } - onChanged(); - } else { - descriptionBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public Builder clearDescription() { - if (descriptionBuilder_ == null) { - description_ = null; - onChanged(); - } else { - description_ = null; - descriptionBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder getDescriptionBuilder() { - - onChanged(); - return getDescriptionFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - public flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder getDescriptionOrBuilder() { - if (descriptionBuilder_ != null) { - return descriptionBuilder_.getMessageOrBuilder(); - } else { - return description_ == null ? - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.getDefaultInstance() : description_; - } - } - /** - *
-       * Represents the specification for description entity.
-       * 
- * - * .flyteidl.admin.DescriptionEntity description = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder> - getDescriptionFieldBuilder() { - if (descriptionBuilder_ == null) { - descriptionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntity.Builder, flyteidl.admin.DescriptionEntityOuterClass.DescriptionEntityOrBuilder>( - getDescription(), - getParentForChildren(), - isClean()); - description_ = null; - } - return descriptionBuilder_; - } - @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.WorkflowSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowSpec) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowSpec(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowSpec(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.WorkflowSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.admin.WorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - boolean hasCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); - - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - boolean hasCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.Timestamp getCreatedAt(); - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); - } - /** - *
-   * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-   * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.admin.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; - if (compiledWorkflow_ != null) { - subBuilder = compiledWorkflow_.toBuilder(); - } - compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledWorkflow_); - compiledWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (createdAt_ != null) { - subBuilder = createdAt_.toBuilder(); - } - createdAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(createdAt_); - createdAt_ = 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_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflow_ != null; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - /** - *
-     * Represents the compiled representation of the workflow from the specification provided.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - return getCompiledWorkflow(); - } - - public static final int CREATED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createdAt_; - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAt_ != null; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - /** - *
-     * Time at which the workflow was created.
-     * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - return getCreatedAt(); - } - - 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 (compiledWorkflow_ != null) { - output.writeMessage(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - output.writeMessage(2, getCreatedAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (compiledWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCompiledWorkflow()); - } - if (createdAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreatedAt()); - } - 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.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.admin.WorkflowOuterClass.WorkflowClosure other = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) obj; - - if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; - if (hasCompiledWorkflow()) { - if (!getCompiledWorkflow() - .equals(other.getCompiledWorkflow())) return false; - } - if (hasCreatedAt() != other.hasCreatedAt()) return false; - if (hasCreatedAt()) { - if (!getCreatedAt() - .equals(other.getCreatedAt())) 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 (hasCompiledWorkflow()) { - hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getCompiledWorkflow().hashCode(); - } - if (hasCreatedAt()) { - hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; - hash = (53 * hash) + getCreatedAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure 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.WorkflowClosure 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; - } - /** - *
-     * A container holding the compiled workflow produced from the WorkflowSpec and additional metadata.
-     * 
- * - * Protobuf type {@code flyteidl.admin.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.admin.WorkflowClosure) - flyteidl.admin.WorkflowOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.admin.WorkflowOuterClass.WorkflowClosure.class, flyteidl.admin.WorkflowOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.admin.WorkflowOuterClass.WorkflowClosure.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 (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - if (createdAtBuilder_ == null) { - createdAt_ = null; - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.admin.WorkflowOuterClass.internal_static_flyteidl_admin_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure build() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.admin.WorkflowOuterClass.WorkflowClosure buildPartial() { - flyteidl.admin.WorkflowOuterClass.WorkflowClosure result = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(this); - if (compiledWorkflowBuilder_ == null) { - result.compiledWorkflow_ = compiledWorkflow_; - } else { - result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); - } - if (createdAtBuilder_ == null) { - result.createdAt_ = createdAt_; - } else { - result.createdAt_ = createdAtBuilder_.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.WorkflowClosure) { - return mergeFrom((flyteidl.admin.WorkflowOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.admin.WorkflowOuterClass.WorkflowClosure other) { - if (other == flyteidl.admin.WorkflowOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasCompiledWorkflow()) { - mergeCompiledWorkflow(other.getCompiledWorkflow()); - } - if (other.hasCreatedAt()) { - mergeCreatedAt(other.getCreatedAt()); - } - 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.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.admin.WorkflowOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } else { - return compiledWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledWorkflow_ = value; - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder setCompiledWorkflow( - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = builderForValue.build(); - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (compiledWorkflow_ != null) { - compiledWorkflow_ = - flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); - } else { - compiledWorkflow_ = value; - } - onChanged(); - } else { - compiledWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public Builder clearCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - onChanged(); - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { - - onChanged(); - return getCompiledWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - if (compiledWorkflowBuilder_ != null) { - return compiledWorkflowBuilder_.getMessageOrBuilder(); - } else { - return compiledWorkflow_ == null ? - flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - } - /** - *
-       * Represents the compiled representation of the workflow from the specification provided.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> - getCompiledWorkflowFieldBuilder() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( - getCompiledWorkflow(), - getParentForChildren(), - isClean()); - compiledWorkflow_ = null; - } - return compiledWorkflowBuilder_; - } - - private com.google.protobuf.Timestamp createdAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public boolean hasCreatedAt() { - return createdAtBuilder_ != null || createdAt_ != null; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp getCreatedAt() { - if (createdAtBuilder_ == null) { - return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } else { - return createdAtBuilder_.getMessage(); - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createdAt_ = value; - onChanged(); - } else { - createdAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder setCreatedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createdAtBuilder_ == null) { - createdAt_ = builderForValue.build(); - onChanged(); - } else { - createdAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { - if (createdAtBuilder_ == null) { - if (createdAt_ != null) { - createdAt_ = - com.google.protobuf.Timestamp.newBuilder(createdAt_).mergeFrom(value).buildPartial(); - } else { - createdAt_ = value; - } - onChanged(); - } else { - createdAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public Builder clearCreatedAt() { - if (createdAtBuilder_ == null) { - createdAt_ = null; - onChanged(); - } else { - createdAt_ = null; - createdAtBuilder_ = null; - } - - return this; - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { - - onChanged(); - return getCreatedAtFieldBuilder().getBuilder(); - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { - if (createdAtBuilder_ != null) { - return createdAtBuilder_.getMessageOrBuilder(); - } else { - return createdAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; - } - } - /** - *
-       * Time at which the workflow was created.
-       * 
- * - * .google.protobuf.Timestamp created_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreatedAtFieldBuilder() { - if (createdAtBuilder_ == null) { - createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreatedAt(), - getParentForChildren(), - isClean()); - createdAt_ = null; - } - return createdAtBuilder_; - } - @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.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.admin.WorkflowClosure) - private static final flyteidl.admin.WorkflowOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.admin.WorkflowOuterClass.WorkflowClosure(); - } - - public static flyteidl.admin.WorkflowOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - 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 fails 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 fails 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 - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_Workflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_Workflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_admin_WorkflowClosure_descriptor; - 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() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/admin/workflow.proto\022\016flyteid" + - "l.admin\032\034flyteidl/core/compiler.proto\032\036f" + - "lyteidl/core/identifier.proto\032\034flyteidl/" + - "core/workflow.proto\032\'flyteidl/admin/desc" + - "ription_entity.proto\032\037google/protobuf/ti" + - "mestamp.proto\"j\n\025WorkflowCreateRequest\022%" + - "\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\022*\n" + - "\004spec\030\002 \001(\0132\034.flyteidl.admin.WorkflowSpe" + - "c\"\030\n\026WorkflowCreateResponse\"~\n\010Workflow\022" + - "%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identifier\0220" + - "\n\007closure\030\002 \001(\0132\037.flyteidl.admin.Workflo" + - "wClosure\022\031\n\021short_description\030\003 \001(\t\"J\n\014W" + - "orkflowList\022+\n\tworkflows\030\001 \003(\0132\030.flyteid" + - "l.admin.Workflow\022\r\n\005token\030\002 \001(\t\"\261\001\n\014Work" + - "flowSpec\0221\n\010template\030\001 \001(\0132\037.flyteidl.co" + - "re.WorkflowTemplate\0226\n\rsub_workflows\030\002 \003" + - "(\0132\037.flyteidl.core.WorkflowTemplate\0226\n\013d" + - "escription\030\003 \001(\0132!.flyteidl.admin.Descri" + - "ptionEntity\"\204\001\n\017WorkflowClosure\022A\n\021compi" + - "led_workflow\030\001 \001(\0132&.flyteidl.core.Compi" + - "ledWorkflowClosure\022.\n\ncreated_at\030\002 \001(\0132\032" + - ".google.protobuf.Timestamp\"N\n%WorkflowEr" + - "rorExistsDifferentStructure\022%\n\002id\030\001 \001(\0132" + - "\031.flyteidl.core.Identifier\"N\n%WorkflowEr" + - "rorExistsIdenticalStructure\022%\n\002id\030\001 \001(\0132" + - "\031.flyteidl.core.Identifier\"\341\001\n\033CreateWor" + - "kflowFailureReason\022[\n\032exists_different_s" + - "tructure\030\001 \001(\01325.flyteidl.admin.Workflow" + - "ErrorExistsDifferentStructureH\000\022[\n\032exist" + - "s_identical_structure\030\002 \001(\01325.flyteidl.a" + - "dmin.WorkflowErrorExistsIdenticalStructu" + - "reH\000B\010\n\006reasonB=Z;github.com/flyteorg/fl" + - "yte/flyteidl/gen/pb-go/flyteidl/adminb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Compiler.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Workflow.getDescriptor(), - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_admin_WorkflowCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateRequest_descriptor, - new java.lang.String[] { "Id", "Spec", }); - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_admin_WorkflowCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowCreateResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_admin_Workflow_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_admin_Workflow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_Workflow_descriptor, - new java.lang.String[] { "Id", "Closure", "ShortDescription", }); - internal_static_flyteidl_admin_WorkflowList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_admin_WorkflowList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowList_descriptor, - new java.lang.String[] { "Workflows", "Token", }); - internal_static_flyteidl_admin_WorkflowSpec_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_admin_WorkflowSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_admin_WorkflowSpec_descriptor, - new java.lang.String[] { "Template", "SubWorkflows", "Description", }); - internal_static_flyteidl_admin_WorkflowClosure_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_admin_WorkflowClosure_fieldAccessorTable = new - 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(); - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java b/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java deleted file mode 100644 index 9d3cbf73cb..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/artifact/Artifacts.java +++ /dev/null @@ -1,20259 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/artifact/artifacts.proto - -package flyteidl.artifact; - -public final class Artifacts { - private Artifacts() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ArtifactOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.Artifact) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - boolean hasArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder(); - - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - flyteidl.artifact.Artifacts.ArtifactSpec getSpec(); - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder(); - - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - java.util.List - getTagsList(); - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - int getTagsCount(); - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - java.lang.String getTags(int index); - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - boolean hasSource(); - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - flyteidl.artifact.Artifacts.ArtifactSource getSource(); - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.Artifact} - */ - public static final class Artifact extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.Artifact) - ArtifactOrBuilder { - private static final long serialVersionUID = 0L; - // Use Artifact.newBuilder() to construct. - private Artifact(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Artifact() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Artifact( - 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.ArtifactId.ArtifactID.Builder subBuilder = null; - if (artifactId_ != null) { - subBuilder = artifactId_.toBuilder(); - } - artifactId_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactId_); - artifactId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.artifact.Artifacts.ArtifactSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tags_.add(s); - break; - } - case 34: { - flyteidl.artifact.Artifacts.ArtifactSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_Artifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_Artifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.Artifact.class, flyteidl.artifact.Artifacts.Artifact.Builder.class); - } - - private int bitField0_; - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactID artifactId_; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return artifactId_ != null; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - return getArtifactId(); - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.artifact.Artifacts.ArtifactSpec spec_; - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec getSpec() { - return spec_ == null ? flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int TAGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList tags_; - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-     * references the tag field in ArtifactTag
-     * 
- * - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int SOURCE_FIELD_NUMBER = 4; - private flyteidl.artifact.Artifacts.ArtifactSource source_; - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public boolean hasSource() { - return source_ != null; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public flyteidl.artifact.Artifacts.ArtifactSource getSource() { - return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { - return getSource(); - } - - 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 (artifactId_ != null) { - output.writeMessage(1, getArtifactId()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (source_ != null) { - output.writeMessage(4, getSource()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactId()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getSource()); - } - 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.artifact.Artifacts.Artifact)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.Artifact other = (flyteidl.artifact.Artifacts.Artifact) obj; - - if (hasArtifactId() != other.hasArtifactId()) return false; - if (hasArtifactId()) { - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - } - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (hasSource() != other.hasSource()) return false; - if (hasSource()) { - if (!getSource() - .equals(other.getSource())) 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 (hasArtifactId()) { - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - } - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasSource()) { - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.Artifact parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.Artifact parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.Artifact 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.artifact.Artifacts.Artifact parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.Artifact 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.artifact.Artifacts.Artifact parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.Artifact 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.artifact.Artifacts.Artifact 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; - } - /** - * Protobuf type {@code flyteidl.artifact.Artifact} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.Artifact) - flyteidl.artifact.Artifacts.ArtifactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_Artifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_Artifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.Artifact.class, flyteidl.artifact.Artifacts.Artifact.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.Artifact.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 (artifactIdBuilder_ == null) { - artifactId_ = null; - } else { - artifactId_ = null; - artifactIdBuilder_ = null; - } - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (sourceBuilder_ == null) { - source_ = null; - } else { - source_ = null; - sourceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_Artifact_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.Artifact getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.Artifact.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.Artifact build() { - flyteidl.artifact.Artifacts.Artifact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.Artifact buildPartial() { - flyteidl.artifact.Artifacts.Artifact result = new flyteidl.artifact.Artifacts.Artifact(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (artifactIdBuilder_ == null) { - result.artifactId_ = artifactId_; - } else { - result.artifactId_ = artifactIdBuilder_.build(); - } - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tags_ = tags_; - if (sourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = sourceBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.artifact.Artifacts.Artifact) { - return mergeFrom((flyteidl.artifact.Artifacts.Artifact)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.Artifact other) { - if (other == flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()) return this; - if (other.hasArtifactId()) { - mergeArtifactId(other.getArtifactId()); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasSource()) { - mergeSource(other.getSource()); - } - 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.artifact.Artifacts.Artifact parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.Artifact) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.ArtifactId.ArtifactID artifactId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdBuilder_; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return artifactIdBuilder_ != null || artifactId_ != null; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (artifactIdBuilder_ == null) { - return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } else { - return artifactIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactId_ = value; - onChanged(); - } else { - artifactIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdBuilder_ == null) { - artifactId_ = builderForValue.build(); - onChanged(); - } else { - artifactIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder mergeArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (artifactId_ != null) { - artifactId_ = - flyteidl.core.ArtifactId.ArtifactID.newBuilder(artifactId_).mergeFrom(value).buildPartial(); - } else { - artifactId_ = value; - } - onChanged(); - } else { - artifactIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder clearArtifactId() { - if (artifactIdBuilder_ == null) { - artifactId_ = null; - onChanged(); - } else { - artifactId_ = null; - artifactIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdBuilder() { - - onChanged(); - return getArtifactIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if (artifactIdBuilder_ != null) { - return artifactIdBuilder_.getMessageOrBuilder(); - } else { - return artifactId_ == null ? - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdFieldBuilder() { - if (artifactIdBuilder_ == null) { - artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - getArtifactId(), - getParentForChildren(), - isClean()); - artifactId_ = null; - } - return artifactIdBuilder_; - } - - private flyteidl.artifact.Artifacts.ArtifactSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder> specBuilder_; - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder setSpec(flyteidl.artifact.Artifacts.ArtifactSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder setSpec( - flyteidl.artifact.Artifacts.ArtifactSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.artifact.Artifacts.ArtifactSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.artifact.Artifacts.ArtifactSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * references the tag field in ArtifactTag
-       * 
- * - * repeated string tags = 3; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private flyteidl.artifact.Artifacts.ArtifactSource source_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> sourceBuilder_; - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public boolean hasSource() { - return sourceBuilder_ != null || source_ != null; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public flyteidl.artifact.Artifacts.ArtifactSource getSource() { - if (sourceBuilder_ == null) { - return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } else { - return sourceBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public Builder setSource(flyteidl.artifact.Artifacts.ArtifactSource value) { - if (sourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - sourceBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public Builder setSource( - flyteidl.artifact.Artifacts.ArtifactSource.Builder builderForValue) { - if (sourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - sourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public Builder mergeSource(flyteidl.artifact.Artifacts.ArtifactSource value) { - if (sourceBuilder_ == null) { - if (source_ != null) { - source_ = - flyteidl.artifact.Artifacts.ArtifactSource.newBuilder(source_).mergeFrom(value).buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - sourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public Builder clearSource() { - if (sourceBuilder_ == null) { - source_ = null; - onChanged(); - } else { - source_ = null; - sourceBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public flyteidl.artifact.Artifacts.ArtifactSource.Builder getSourceBuilder() { - - onChanged(); - return getSourceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { - if (sourceBuilder_ != null) { - return sourceBuilder_.getMessageOrBuilder(); - } else { - return source_ == null ? - flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } - } - /** - * .flyteidl.artifact.ArtifactSource source = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> - getSourceFieldBuilder() { - if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); - source_ = null; - } - return sourceBuilder_; - } - @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.artifact.Artifact) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.Artifact) - private static final flyteidl.artifact.Artifacts.Artifact DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.Artifact(); - } - - public static flyteidl.artifact.Artifacts.Artifact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Artifact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Artifact(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.artifact.Artifacts.Artifact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateArtifactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateArtifactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - boolean hasArtifactKey(); - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); - - /** - * string version = 3; - */ - java.lang.String getVersion(); - /** - * string version = 3; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - flyteidl.artifact.Artifacts.ArtifactSpec getSpec(); - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder(); - - /** - * map<string, string> partitions = 4; - */ - int getPartitionsCount(); - /** - * map<string, string> partitions = 4; - */ - boolean containsPartitions( - java.lang.String key); - /** - * Use {@link #getPartitionsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getPartitions(); - /** - * map<string, string> partitions = 4; - */ - java.util.Map - getPartitionsMap(); - /** - * map<string, string> partitions = 4; - */ - - java.lang.String getPartitionsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> partitions = 4; - */ - - java.lang.String getPartitionsOrThrow( - java.lang.String key); - - /** - * string tag = 5; - */ - java.lang.String getTag(); - /** - * string tag = 5; - */ - com.google.protobuf.ByteString - getTagBytes(); - - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - boolean hasSource(); - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - flyteidl.artifact.Artifacts.ArtifactSource getSource(); - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactRequest} - */ - public static final class CreateArtifactRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateArtifactRequest) - CreateArtifactRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateArtifactRequest.newBuilder() to construct. - private CreateArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateArtifactRequest() { - version_ = ""; - tag_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateArtifactRequest( - 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.ArtifactId.ArtifactKey.Builder subBuilder = null; - if (artifactKey_ != null) { - subBuilder = artifactKey_.toBuilder(); - } - artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactKey_); - artifactKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.artifact.Artifacts.ArtifactSpec.Builder subBuilder = null; - if (spec_ != null) { - subBuilder = spec_.toBuilder(); - } - spec_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(spec_); - spec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - partitions_ = com.google.protobuf.MapField.newMapField( - PartitionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - partitions__ = input.readMessage( - PartitionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - partitions_.getMutableMap().put( - partitions__.getKey(), partitions__.getValue()); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - case 50: { - flyteidl.artifact.Artifacts.ArtifactSource.Builder subBuilder = null; - if (source_ != null) { - subBuilder = source_.toBuilder(); - } - source_ = input.readMessage(flyteidl.artifact.Artifacts.ArtifactSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(source_); - source_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetPartitions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactRequest.class, flyteidl.artifact.Artifacts.CreateArtifactRequest.Builder.class); - } - - private int bitField0_; - public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKey_ != null; - } - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - /** - *
-     * Specify just project/domain on creation
-     * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - return getArtifactKey(); - } - - public static final int VERSION_FIELD_NUMBER = 3; - private volatile java.lang.Object version_; - /** - * string version = 3; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 3; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_FIELD_NUMBER = 2; - private flyteidl.artifact.Artifacts.ArtifactSpec spec_; - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public boolean hasSpec() { - return spec_ != null; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec getSpec() { - return spec_ == null ? flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder() { - return getSpec(); - } - - public static final int PARTITIONS_FIELD_NUMBER = 4; - private static final class PartitionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> partitions_; - private com.google.protobuf.MapField - internalGetPartitions() { - if (partitions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PartitionsDefaultEntryHolder.defaultEntry); - } - return partitions_; - } - - public int getPartitionsCount() { - return internalGetPartitions().getMap().size(); - } - /** - * map<string, string> partitions = 4; - */ - - public boolean containsPartitions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetPartitions().getMap().containsKey(key); - } - /** - * Use {@link #getPartitionsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getPartitions() { - return getPartitionsMap(); - } - /** - * map<string, string> partitions = 4; - */ - - public java.util.Map getPartitionsMap() { - return internalGetPartitions().getMap(); - } - /** - * map<string, string> partitions = 4; - */ - - public java.lang.String getPartitionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPartitions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> partitions = 4; - */ - - public java.lang.String getPartitionsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPartitions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int TAG_FIELD_NUMBER = 5; - private volatile java.lang.Object tag_; - /** - * string tag = 5; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } - } - /** - * string tag = 5; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_FIELD_NUMBER = 6; - private flyteidl.artifact.Artifacts.ArtifactSource source_; - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public boolean hasSource() { - return source_ != null; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public flyteidl.artifact.Artifacts.ArtifactSource getSource() { - return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { - return getSource(); - } - - 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 (artifactKey_ != null) { - output.writeMessage(1, getArtifactKey()); - } - if (spec_ != null) { - output.writeMessage(2, getSpec()); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetPartitions(), - PartitionsDefaultEntryHolder.defaultEntry, - 4); - if (!getTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tag_); - } - if (source_ != null) { - output.writeMessage(6, getSource()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactKey()); - } - if (spec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSpec()); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_); - } - for (java.util.Map.Entry entry - : internalGetPartitions().getMap().entrySet()) { - com.google.protobuf.MapEntry - partitions__ = PartitionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, partitions__); - } - if (!getTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tag_); - } - if (source_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getSource()); - } - 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.artifact.Artifacts.CreateArtifactRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.CreateArtifactRequest other = (flyteidl.artifact.Artifacts.CreateArtifactRequest) obj; - - if (hasArtifactKey() != other.hasArtifactKey()) return false; - if (hasArtifactKey()) { - if (!getArtifactKey() - .equals(other.getArtifactKey())) return false; - } - if (!getVersion() - .equals(other.getVersion())) return false; - if (hasSpec() != other.hasSpec()) return false; - if (hasSpec()) { - if (!getSpec() - .equals(other.getSpec())) return false; - } - if (!internalGetPartitions().equals( - other.internalGetPartitions())) return false; - if (!getTag() - .equals(other.getTag())) return false; - if (hasSource() != other.hasSource()) return false; - if (hasSource()) { - if (!getSource() - .equals(other.getSource())) 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 (hasArtifactKey()) { - hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKey().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (hasSpec()) { - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - } - if (!internalGetPartitions().getMap().isEmpty()) { - hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetPartitions().hashCode(); - } - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - if (hasSource()) { - hash = (37 * hash) + SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSource().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest 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.artifact.Artifacts.CreateArtifactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest 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.artifact.Artifacts.CreateArtifactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactRequest 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.artifact.Artifacts.CreateArtifactRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateArtifactRequest) - flyteidl.artifact.Artifacts.CreateArtifactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetPartitions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutablePartitions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactRequest.class, flyteidl.artifact.Artifacts.CreateArtifactRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.CreateArtifactRequest.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 (artifactKeyBuilder_ == null) { - artifactKey_ = null; - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - version_ = ""; - - if (specBuilder_ == null) { - spec_ = null; - } else { - spec_ = null; - specBuilder_ = null; - } - internalGetMutablePartitions().clear(); - tag_ = ""; - - if (sourceBuilder_ == null) { - source_ = null; - } else { - source_ = null; - sourceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CreateArtifactRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactRequest build() { - flyteidl.artifact.Artifacts.CreateArtifactRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactRequest buildPartial() { - flyteidl.artifact.Artifacts.CreateArtifactRequest result = new flyteidl.artifact.Artifacts.CreateArtifactRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (artifactKeyBuilder_ == null) { - result.artifactKey_ = artifactKey_; - } else { - result.artifactKey_ = artifactKeyBuilder_.build(); - } - result.version_ = version_; - if (specBuilder_ == null) { - result.spec_ = spec_; - } else { - result.spec_ = specBuilder_.build(); - } - result.partitions_ = internalGetPartitions(); - result.partitions_.makeImmutable(); - result.tag_ = tag_; - if (sourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = sourceBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.artifact.Artifacts.CreateArtifactRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.CreateArtifactRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateArtifactRequest other) { - if (other == flyteidl.artifact.Artifacts.CreateArtifactRequest.getDefaultInstance()) return this; - if (other.hasArtifactKey()) { - mergeArtifactKey(other.getArtifactKey()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.hasSpec()) { - mergeSpec(other.getSpec()); - } - internalGetMutablePartitions().mergeFrom( - other.internalGetPartitions()); - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - if (other.hasSource()) { - mergeSource(other.getSource()); - } - 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.artifact.Artifacts.CreateArtifactRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CreateArtifactRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKeyBuilder_ != null || artifactKey_ != null; - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - if (artifactKeyBuilder_ == null) { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } else { - return artifactKeyBuilder_.getMessage(); - } - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactKey_ = value; - onChanged(); - } else { - artifactKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeyBuilder_ == null) { - artifactKey_ = builderForValue.build(); - onChanged(); - } else { - artifactKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (artifactKey_ != null) { - artifactKey_ = - flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); - } else { - artifactKey_ = value; - } - onChanged(); - } else { - artifactKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder clearArtifactKey() { - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; - onChanged(); - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - - return this; - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { - - onChanged(); - return getArtifactKeyFieldBuilder().getBuilder(); - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - if (artifactKeyBuilder_ != null) { - return artifactKeyBuilder_.getMessageOrBuilder(); - } else { - return artifactKey_ == null ? - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - } - /** - *
-       * Specify just project/domain on creation
-       * 
- * - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeyFieldBuilder() { - if (artifactKeyBuilder_ == null) { - artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - getArtifactKey(), - getParentForChildren(), - isClean()); - artifactKey_ = null; - } - return artifactKeyBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * string version = 3; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 3; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 3; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 3; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 3; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private flyteidl.artifact.Artifacts.ArtifactSpec spec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder> specBuilder_; - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public boolean hasSpec() { - return specBuilder_ != null || spec_ != null; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec getSpec() { - if (specBuilder_ == null) { - return spec_ == null ? flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } else { - return specBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder setSpec(flyteidl.artifact.Artifacts.ArtifactSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder setSpec( - flyteidl.artifact.Artifacts.ArtifactSpec.Builder builderForValue) { - if (specBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.artifact.Artifacts.ArtifactSpec value) { - if (specBuilder_ == null) { - if (spec_ != null) { - spec_ = - flyteidl.artifact.Artifacts.ArtifactSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - specBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - spec_ = null; - onChanged(); - } else { - spec_ = null; - specBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpec.Builder getSpecBuilder() { - - onChanged(); - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - public flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder getSpecOrBuilder() { - if (specBuilder_ != null) { - return specBuilder_.getMessageOrBuilder(); - } else { - return spec_ == null ? - flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance() : spec_; - } - } - /** - * .flyteidl.artifact.ArtifactSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSpec, flyteidl.artifact.Artifacts.ArtifactSpec.Builder, flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder>( - getSpec(), - getParentForChildren(), - isClean()); - spec_ = null; - } - return specBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> partitions_; - private com.google.protobuf.MapField - internalGetPartitions() { - if (partitions_ == null) { - return com.google.protobuf.MapField.emptyMapField( - PartitionsDefaultEntryHolder.defaultEntry); - } - return partitions_; - } - private com.google.protobuf.MapField - internalGetMutablePartitions() { - onChanged();; - if (partitions_ == null) { - partitions_ = com.google.protobuf.MapField.newMapField( - PartitionsDefaultEntryHolder.defaultEntry); - } - if (!partitions_.isMutable()) { - partitions_ = partitions_.copy(); - } - return partitions_; - } - - public int getPartitionsCount() { - return internalGetPartitions().getMap().size(); - } - /** - * map<string, string> partitions = 4; - */ - - public boolean containsPartitions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetPartitions().getMap().containsKey(key); - } - /** - * Use {@link #getPartitionsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getPartitions() { - return getPartitionsMap(); - } - /** - * map<string, string> partitions = 4; - */ - - public java.util.Map getPartitionsMap() { - return internalGetPartitions().getMap(); - } - /** - * map<string, string> partitions = 4; - */ - - public java.lang.String getPartitionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPartitions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> partitions = 4; - */ - - public java.lang.String getPartitionsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetPartitions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearPartitions() { - internalGetMutablePartitions().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> partitions = 4; - */ - - public Builder removePartitions( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePartitions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutablePartitions() { - return internalGetMutablePartitions().getMutableMap(); - } - /** - * map<string, string> partitions = 4; - */ - public Builder putPartitions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutablePartitions().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> partitions = 4; - */ - - public Builder putAllPartitions( - java.util.Map values) { - internalGetMutablePartitions().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * string tag = 5; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag = 5; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag = 5; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * string tag = 5; - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * string tag = 5; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - - private flyteidl.artifact.Artifacts.ArtifactSource source_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> sourceBuilder_; - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public boolean hasSource() { - return sourceBuilder_ != null || source_ != null; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public flyteidl.artifact.Artifacts.ArtifactSource getSource() { - if (sourceBuilder_ == null) { - return source_ == null ? flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } else { - return sourceBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public Builder setSource(flyteidl.artifact.Artifacts.ArtifactSource value) { - if (sourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - sourceBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public Builder setSource( - flyteidl.artifact.Artifacts.ArtifactSource.Builder builderForValue) { - if (sourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - sourceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public Builder mergeSource(flyteidl.artifact.Artifacts.ArtifactSource value) { - if (sourceBuilder_ == null) { - if (source_ != null) { - source_ = - flyteidl.artifact.Artifacts.ArtifactSource.newBuilder(source_).mergeFrom(value).buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - sourceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public Builder clearSource() { - if (sourceBuilder_ == null) { - source_ = null; - onChanged(); - } else { - source_ = null; - sourceBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public flyteidl.artifact.Artifacts.ArtifactSource.Builder getSourceBuilder() { - - onChanged(); - return getSourceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - public flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder getSourceOrBuilder() { - if (sourceBuilder_ != null) { - return sourceBuilder_.getMessageOrBuilder(); - } else { - return source_ == null ? - flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance() : source_; - } - } - /** - * .flyteidl.artifact.ArtifactSource source = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder> - getSourceFieldBuilder() { - if (sourceBuilder_ == null) { - sourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactSource, flyteidl.artifact.Artifacts.ArtifactSource.Builder, flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder>( - getSource(), - getParentForChildren(), - isClean()); - source_ = null; - } - return sourceBuilder_; - } - @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.artifact.CreateArtifactRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateArtifactRequest) - private static final flyteidl.artifact.Artifacts.CreateArtifactRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CreateArtifactRequest(); - } - - public static flyteidl.artifact.Artifacts.CreateArtifactRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateArtifactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateArtifactRequest(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.artifact.Artifacts.CreateArtifactRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactSource) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - boolean hasWorkflowExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder(); - - /** - * string node_id = 2; - */ - java.lang.String getNodeId(); - /** - * string node_id = 2; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - * .flyteidl.core.Identifier task_id = 3; - */ - boolean hasTaskId(); - /** - * .flyteidl.core.Identifier task_id = 3; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - * .flyteidl.core.Identifier task_id = 3; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - * uint32 retry_attempt = 4; - */ - int getRetryAttempt(); - - /** - *
-     * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-     * 
- * - * string principal = 5; - */ - java.lang.String getPrincipal(); - /** - *
-     * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-     * 
- * - * string principal = 5; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactSource} - */ - public static final class ArtifactSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactSource) - ArtifactSourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactSource.newBuilder() to construct. - private ArtifactSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactSource() { - nodeId_ = ""; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactSource( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (workflowExecution_ != null) { - subBuilder = workflowExecution_.toBuilder(); - } - workflowExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowExecution_); - workflowExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - break; - } - case 26: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - retryAttempt_ = input.readUInt32(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSource.class, flyteidl.artifact.Artifacts.ArtifactSource.Builder.class); - } - - public static final int WORKFLOW_EXECUTION_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecution_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public boolean hasWorkflowExecution() { - return workflowExecution_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution() { - return workflowExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder() { - return getWorkflowExecution(); - } - - public static final int NODE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object nodeId_; - /** - * string node_id = 2; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** - * string node_id = 2; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_ID_FIELD_NUMBER = 3; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 4; - private int retryAttempt_; - /** - * uint32 retry_attempt = 4; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - public static final int PRINCIPAL_FIELD_NUMBER = 5; - private volatile java.lang.Object principal_; - /** - *
-     * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-     * 
- * - * string principal = 5; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - *
-     * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-     * 
- * - * string principal = 5; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (workflowExecution_ != null) { - output.writeMessage(1, getWorkflowExecution()); - } - if (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nodeId_); - } - if (taskId_ != null) { - output.writeMessage(3, getTaskId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(4, retryAttempt_); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflowExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflowExecution()); - } - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nodeId_); - } - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTaskId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(4, retryAttempt_); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, principal_); - } - 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.artifact.Artifacts.ArtifactSource)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ArtifactSource other = (flyteidl.artifact.Artifacts.ArtifactSource) obj; - - if (hasWorkflowExecution() != other.hasWorkflowExecution()) return false; - if (hasWorkflowExecution()) { - if (!getWorkflowExecution() - .equals(other.getWorkflowExecution())) return false; - } - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) 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 (hasWorkflowExecution()) { - hash = (37 * hash) + WORKFLOW_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowExecution().hashCode(); - } - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - if (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSource 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.artifact.Artifacts.ArtifactSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSource 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.artifact.Artifacts.ArtifactSource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSource 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.artifact.Artifacts.ArtifactSource 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactSource} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactSource) - flyteidl.artifact.Artifacts.ArtifactSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSource.class, flyteidl.artifact.Artifacts.ArtifactSource.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ArtifactSource.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 (workflowExecutionBuilder_ == null) { - workflowExecution_ = null; - } else { - workflowExecution_ = null; - workflowExecutionBuilder_ = null; - } - nodeId_ = ""; - - if (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - retryAttempt_ = 0; - - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSource_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSource getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSource build() { - flyteidl.artifact.Artifacts.ArtifactSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSource buildPartial() { - flyteidl.artifact.Artifacts.ArtifactSource result = new flyteidl.artifact.Artifacts.ArtifactSource(this); - if (workflowExecutionBuilder_ == null) { - result.workflowExecution_ = workflowExecution_; - } else { - result.workflowExecution_ = workflowExecutionBuilder_.build(); - } - result.nodeId_ = nodeId_; - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - result.principal_ = principal_; - 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.artifact.Artifacts.ArtifactSource) { - return mergeFrom((flyteidl.artifact.Artifacts.ArtifactSource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactSource other) { - if (other == flyteidl.artifact.Artifacts.ArtifactSource.getDefaultInstance()) return this; - if (other.hasWorkflowExecution()) { - mergeWorkflowExecution(other.getWorkflowExecution()); - } - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - 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.artifact.Artifacts.ArtifactSource parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ArtifactSource) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier workflowExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowExecutionBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public boolean hasWorkflowExecution() { - return workflowExecutionBuilder_ != null || workflowExecution_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowExecution() { - if (workflowExecutionBuilder_ == null) { - return workflowExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; - } else { - return workflowExecutionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public Builder setWorkflowExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowExecution_ = value; - onChanged(); - } else { - workflowExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public Builder setWorkflowExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowExecutionBuilder_ == null) { - workflowExecution_ = builderForValue.build(); - onChanged(); - } else { - workflowExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public Builder mergeWorkflowExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowExecutionBuilder_ == null) { - if (workflowExecution_ != null) { - workflowExecution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(workflowExecution_).mergeFrom(value).buildPartial(); - } else { - workflowExecution_ = value; - } - onChanged(); - } else { - workflowExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public Builder clearWorkflowExecution() { - if (workflowExecutionBuilder_ == null) { - workflowExecution_ = null; - onChanged(); - } else { - workflowExecution_ = null; - workflowExecutionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowExecutionBuilder() { - - onChanged(); - return getWorkflowExecutionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowExecutionOrBuilder() { - if (workflowExecutionBuilder_ != null) { - return workflowExecutionBuilder_.getMessageOrBuilder(); - } else { - return workflowExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : workflowExecution_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier workflow_execution = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowExecutionFieldBuilder() { - if (workflowExecutionBuilder_ == null) { - workflowExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWorkflowExecution(), - getParentForChildren(), - isClean()); - workflowExecution_ = null; - } - return workflowExecutionBuilder_; - } - - private java.lang.Object nodeId_ = ""; - /** - * string node_id = 2; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string node_id = 2; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string node_id = 2; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - * string node_id = 2; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - * string node_id = 2; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - * .flyteidl.core.Identifier task_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private int retryAttempt_ ; - /** - * uint32 retry_attempt = 4; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - * uint32 retry_attempt = 4; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - * uint32 retry_attempt = 4; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - *
-       * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-       * 
- * - * string principal = 5; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-       * 
- * - * string principal = 5; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-       * 
- * - * string principal = 5; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - *
-       * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-       * 
- * - * string principal = 5; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - *
-       * Uploads, either from the UI or from the CLI, or FlyteRemote, will have this.
-       * 
- * - * string principal = 5; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - @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.artifact.ArtifactSource) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSource) - private static final flyteidl.artifact.Artifacts.ArtifactSource DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactSource(); - } - - public static flyteidl.artifact.Artifacts.ArtifactSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactSource(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.artifact.Artifacts.ArtifactSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Literal value = 1; - */ - boolean hasValue(); - /** - * .flyteidl.core.Literal value = 1; - */ - flyteidl.core.Literals.Literal getValue(); - /** - * .flyteidl.core.Literal value = 1; - */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); - - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - * string short_description = 3; - */ - java.lang.String getShortDescription(); - /** - * string short_description = 3; - */ - com.google.protobuf.ByteString - getShortDescriptionBytes(); - - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - boolean hasUserMetadata(); - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - com.google.protobuf.Any getUserMetadata(); - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder(); - - /** - * string metadata_type = 5; - */ - java.lang.String getMetadataType(); - /** - * string metadata_type = 5; - */ - com.google.protobuf.ByteString - getMetadataTypeBytes(); - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactSpec} - */ - public static final class ArtifactSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactSpec) - ArtifactSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactSpec.newBuilder() to construct. - private ArtifactSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactSpec() { - shortDescription_ = ""; - metadataType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactSpec( - 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.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - shortDescription_ = s; - break; - } - case 34: { - com.google.protobuf.Any.Builder subBuilder = null; - if (userMetadata_ != null) { - subBuilder = userMetadata_.toBuilder(); - } - userMetadata_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userMetadata_); - userMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - metadataType_ = s; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private flyteidl.core.Literals.Literal value_; - /** - * .flyteidl.core.Literal value = 1; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-     * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-     * type to all Literals is a lot of work.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int SHORT_DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object shortDescription_; - /** - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } - } - /** - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int USER_METADATA_FIELD_NUMBER = 4; - private com.google.protobuf.Any userMetadata_; - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public boolean hasUserMetadata() { - return userMetadata_ != null; - } - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public com.google.protobuf.Any getUserMetadata() { - return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } - /** - *
-     * Additional user metadata
-     * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { - return getUserMetadata(); - } - - public static final int METADATA_TYPE_FIELD_NUMBER = 5; - private volatile java.lang.Object metadataType_; - /** - * string metadata_type = 5; - */ - public java.lang.String getMetadataType() { - java.lang.Object ref = metadataType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metadataType_ = s; - return s; - } - } - /** - * string metadata_type = 5; - */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - java.lang.Object ref = metadataType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (value_ != null) { - output.writeMessage(1, getValue()); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (!getShortDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_); - } - if (userMetadata_ != null) { - output.writeMessage(4, getUserMetadata()); - } - if (!getMetadataTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, metadataType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValue()); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (!getShortDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_); - } - if (userMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUserMetadata()); - } - if (!getMetadataTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, metadataType_); - } - 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.artifact.Artifacts.ArtifactSpec)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ArtifactSpec other = (flyteidl.artifact.Artifacts.ArtifactSpec) obj; - - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (!getShortDescription() - .equals(other.getShortDescription())) return false; - if (hasUserMetadata() != other.hasUserMetadata()) return false; - if (hasUserMetadata()) { - if (!getUserMetadata() - .equals(other.getUserMetadata())) return false; - } - if (!getMetadataType() - .equals(other.getMetadataType())) 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 (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + SHORT_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getShortDescription().hashCode(); - if (hasUserMetadata()) { - hash = (37 * hash) + USER_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getUserMetadata().hashCode(); - } - hash = (37 * hash) + METADATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMetadataType().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec 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.artifact.Artifacts.ArtifactSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec 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.artifact.Artifacts.ArtifactSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactSpec 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.artifact.Artifacts.ArtifactSpec 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactSpec) - flyteidl.artifact.Artifacts.ArtifactSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactSpec.class, flyteidl.artifact.Artifacts.ArtifactSpec.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ArtifactSpec.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 (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - shortDescription_ = ""; - - if (userMetadataBuilder_ == null) { - userMetadata_ = null; - } else { - userMetadata_ = null; - userMetadataBuilder_ = null; - } - metadataType_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactSpec_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec build() { - flyteidl.artifact.Artifacts.ArtifactSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactSpec buildPartial() { - flyteidl.artifact.Artifacts.ArtifactSpec result = new flyteidl.artifact.Artifacts.ArtifactSpec(this); - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - result.shortDescription_ = shortDescription_; - if (userMetadataBuilder_ == null) { - result.userMetadata_ = userMetadata_; - } else { - result.userMetadata_ = userMetadataBuilder_.build(); - } - result.metadataType_ = metadataType_; - 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.artifact.Artifacts.ArtifactSpec) { - return mergeFrom((flyteidl.artifact.Artifacts.ArtifactSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactSpec other) { - if (other == flyteidl.artifact.Artifacts.ArtifactSpec.getDefaultInstance()) return this; - if (other.hasValue()) { - mergeValue(other.getValue()); - } - if (other.hasType()) { - mergeType(other.getType()); - } - if (!other.getShortDescription().isEmpty()) { - shortDescription_ = other.shortDescription_; - onChanged(); - } - if (other.hasUserMetadata()) { - mergeUserMetadata(other.getUserMetadata()); - } - if (!other.getMetadataType().isEmpty()) { - metadataType_ = other.metadataType_; - onChanged(); - } - 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.artifact.Artifacts.ArtifactSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ArtifactSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.Literal value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; - /** - * .flyteidl.core.Literal value = 1; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - } - /** - * .flyteidl.core.Literal value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but
-       * forgets to change the name, that is okay. And the reason why this is a separate field is because adding the
-       * type to all Literals is a lot of work.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private java.lang.Object shortDescription_ = ""; - /** - * string short_description = 3; - */ - public java.lang.String getShortDescription() { - java.lang.Object ref = shortDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - shortDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string short_description = 3; - */ - public com.google.protobuf.ByteString - getShortDescriptionBytes() { - java.lang.Object ref = shortDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - shortDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string short_description = 3; - */ - public Builder setShortDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - shortDescription_ = value; - onChanged(); - return this; - } - /** - * string short_description = 3; - */ - public Builder clearShortDescription() { - - shortDescription_ = getDefaultInstance().getShortDescription(); - onChanged(); - return this; - } - /** - * string short_description = 3; - */ - public Builder setShortDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - shortDescription_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Any userMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> userMetadataBuilder_; - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public boolean hasUserMetadata() { - return userMetadataBuilder_ != null || userMetadata_ != null; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public com.google.protobuf.Any getUserMetadata() { - if (userMetadataBuilder_ == null) { - return userMetadata_ == null ? com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } else { - return userMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public Builder setUserMetadata(com.google.protobuf.Any value) { - if (userMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userMetadata_ = value; - onChanged(); - } else { - userMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public Builder setUserMetadata( - com.google.protobuf.Any.Builder builderForValue) { - if (userMetadataBuilder_ == null) { - userMetadata_ = builderForValue.build(); - onChanged(); - } else { - userMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public Builder mergeUserMetadata(com.google.protobuf.Any value) { - if (userMetadataBuilder_ == null) { - if (userMetadata_ != null) { - userMetadata_ = - com.google.protobuf.Any.newBuilder(userMetadata_).mergeFrom(value).buildPartial(); - } else { - userMetadata_ = value; - } - onChanged(); - } else { - userMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public Builder clearUserMetadata() { - if (userMetadataBuilder_ == null) { - userMetadata_ = null; - onChanged(); - } else { - userMetadata_ = null; - userMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public com.google.protobuf.Any.Builder getUserMetadataBuilder() { - - onChanged(); - return getUserMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - public com.google.protobuf.AnyOrBuilder getUserMetadataOrBuilder() { - if (userMetadataBuilder_ != null) { - return userMetadataBuilder_.getMessageOrBuilder(); - } else { - return userMetadata_ == null ? - com.google.protobuf.Any.getDefaultInstance() : userMetadata_; - } - } - /** - *
-       * Additional user metadata
-       * 
- * - * .google.protobuf.Any user_metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> - getUserMetadataFieldBuilder() { - if (userMetadataBuilder_ == null) { - userMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - getUserMetadata(), - getParentForChildren(), - isClean()); - userMetadata_ = null; - } - return userMetadataBuilder_; - } - - private java.lang.Object metadataType_ = ""; - /** - * string metadata_type = 5; - */ - public java.lang.String getMetadataType() { - java.lang.Object ref = metadataType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metadataType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string metadata_type = 5; - */ - public com.google.protobuf.ByteString - getMetadataTypeBytes() { - java.lang.Object ref = metadataType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metadataType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string metadata_type = 5; - */ - public Builder setMetadataType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - metadataType_ = value; - onChanged(); - return this; - } - /** - * string metadata_type = 5; - */ - public Builder clearMetadataType() { - - metadataType_ = getDefaultInstance().getMetadataType(); - onChanged(); - return this; - } - /** - * string metadata_type = 5; - */ - public Builder setMetadataTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - metadataType_ = value; - onChanged(); - return this; - } - @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.artifact.ArtifactSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactSpec) - private static final flyteidl.artifact.Artifacts.ArtifactSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactSpec(); - } - - public static flyteidl.artifact.Artifacts.ArtifactSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactSpec(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.artifact.Artifacts.ArtifactSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateArtifactResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - boolean hasArtifact(); - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - flyteidl.artifact.Artifacts.Artifact getArtifact(); - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} - */ - public static final class CreateArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateArtifactResponse) - CreateArtifactResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateArtifactResponse.newBuilder() to construct. - private CreateArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateArtifactResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateArtifactResponse( - 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.artifact.Artifacts.Artifact.Builder subBuilder = null; - if (artifact_ != null) { - subBuilder = artifact_.toBuilder(); - } - artifact_ = input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifact_); - artifact_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); - } - - public static final int ARTIFACT_FIELD_NUMBER = 1; - private flyteidl.artifact.Artifacts.Artifact artifact_; - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifact_ != null; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); - } - - 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 (artifact_ != null) { - output.writeMessage(1, getArtifact()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifact()); - } - 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.artifact.Artifacts.CreateArtifactResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.CreateArtifactResponse other = (flyteidl.artifact.Artifacts.CreateArtifactResponse) obj; - - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact() - .equals(other.getArtifact())) 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 (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse 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.artifact.Artifacts.CreateArtifactResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse 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.artifact.Artifacts.CreateArtifactResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateArtifactResponse 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.artifact.Artifacts.CreateArtifactResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.CreateArtifactResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateArtifactResponse) - flyteidl.artifact.Artifacts.CreateArtifactResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateArtifactResponse.class, flyteidl.artifact.Artifacts.CreateArtifactResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.CreateArtifactResponse.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 (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; - artifactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse build() { - flyteidl.artifact.Artifacts.CreateArtifactResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateArtifactResponse buildPartial() { - flyteidl.artifact.Artifacts.CreateArtifactResponse result = new flyteidl.artifact.Artifacts.CreateArtifactResponse(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.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.artifact.Artifacts.CreateArtifactResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.CreateArtifactResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateArtifactResponse other) { - if (other == flyteidl.artifact.Artifacts.CreateArtifactResponse.getDefaultInstance()) return this; - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); - } - 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.artifact.Artifacts.CreateArtifactResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CreateArtifactResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.artifact.Artifacts.Artifact artifact_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactBuilder_; - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } else { - return artifactBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder setArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifact_ = value; - onChanged(); - } else { - artifactBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder setArtifact( - flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); - onChanged(); - } else { - artifactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder mergeArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - flyteidl.artifact.Artifacts.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); - } else { - artifact_ = value; - } - onChanged(); - } else { - artifactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; - artifactBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactBuilder() { - - onChanged(); - return getArtifactFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); - } else { - return artifact_ == null ? - flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> - getArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( - getArtifact(), - getParentForChildren(), - isClean()); - artifact_ = null; - } - return artifactBuilder_; - } - @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.artifact.CreateArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateArtifactResponse) - private static final flyteidl.artifact.Artifacts.CreateArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CreateArtifactResponse(); - } - - public static flyteidl.artifact.Artifacts.CreateArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateArtifactResponse(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.artifact.Artifacts.CreateArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetArtifactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.GetArtifactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - boolean hasQuery(); - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - flyteidl.core.ArtifactId.ArtifactQuery getQuery(); - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getQueryOrBuilder(); - - /** - *
-     * If false, then long_description is not returned.
-     * 
- * - * bool details = 2; - */ - boolean getDetails(); - } - /** - * Protobuf type {@code flyteidl.artifact.GetArtifactRequest} - */ - public static final class GetArtifactRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.GetArtifactRequest) - GetArtifactRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetArtifactRequest.newBuilder() to construct. - private GetArtifactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetArtifactRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetArtifactRequest( - 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.ArtifactId.ArtifactQuery.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); - } - query_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - details_ = input.readBool(); - 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.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.GetArtifactRequest.class, flyteidl.artifact.Artifacts.GetArtifactRequest.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactQuery query_; - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public boolean hasQuery() { - return query_ != null; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public flyteidl.core.ArtifactId.ArtifactQuery getQuery() { - return query_ == null ? flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance() : query_; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getQueryOrBuilder() { - return getQuery(); - } - - public static final int DETAILS_FIELD_NUMBER = 2; - private boolean details_; - /** - *
-     * If false, then long_description is not returned.
-     * 
- * - * bool details = 2; - */ - public boolean getDetails() { - return details_; - } - - 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 (query_ != null) { - output.writeMessage(1, getQuery()); - } - if (details_ != false) { - output.writeBool(2, details_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (query_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQuery()); - } - if (details_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, details_); - } - 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.artifact.Artifacts.GetArtifactRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.GetArtifactRequest other = (flyteidl.artifact.Artifacts.GetArtifactRequest) obj; - - if (hasQuery() != other.hasQuery()) return false; - if (hasQuery()) { - if (!getQuery() - .equals(other.getQuery())) return false; - } - if (getDetails() - != other.getDetails()) 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 (hasQuery()) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - } - hash = (37 * hash) + DETAILS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDetails()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest 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.artifact.Artifacts.GetArtifactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest 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.artifact.Artifacts.GetArtifactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactRequest 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.artifact.Artifacts.GetArtifactRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.GetArtifactRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.GetArtifactRequest) - flyteidl.artifact.Artifacts.GetArtifactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.GetArtifactRequest.class, flyteidl.artifact.Artifacts.GetArtifactRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.GetArtifactRequest.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 (queryBuilder_ == null) { - query_ = null; - } else { - query_ = null; - queryBuilder_ = null; - } - details_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.GetArtifactRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactRequest build() { - flyteidl.artifact.Artifacts.GetArtifactRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactRequest buildPartial() { - flyteidl.artifact.Artifacts.GetArtifactRequest result = new flyteidl.artifact.Artifacts.GetArtifactRequest(this); - if (queryBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = queryBuilder_.build(); - } - result.details_ = details_; - 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.artifact.Artifacts.GetArtifactRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.GetArtifactRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.GetArtifactRequest other) { - if (other == flyteidl.artifact.Artifacts.GetArtifactRequest.getDefaultInstance()) return this; - if (other.hasQuery()) { - mergeQuery(other.getQuery()); - } - if (other.getDetails() != false) { - setDetails(other.getDetails()); - } - 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.artifact.Artifacts.GetArtifactRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.GetArtifactRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.ArtifactId.ArtifactQuery query_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder> queryBuilder_; - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public boolean hasQuery() { - return queryBuilder_ != null || query_ != null; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public flyteidl.core.ArtifactId.ArtifactQuery getQuery() { - if (queryBuilder_ == null) { - return query_ == null ? flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance() : query_; - } else { - return queryBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public Builder setQuery(flyteidl.core.ArtifactId.ArtifactQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public Builder setQuery( - flyteidl.core.ArtifactId.ArtifactQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - query_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public Builder mergeQuery(flyteidl.core.ArtifactId.ArtifactQuery value) { - if (queryBuilder_ == null) { - if (query_ != null) { - query_ = - flyteidl.core.ArtifactId.ArtifactQuery.newBuilder(query_).mergeFrom(value).buildPartial(); - } else { - query_ = value; - } - onChanged(); - } else { - queryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - query_ = null; - onChanged(); - } else { - query_ = null; - queryBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public flyteidl.core.ArtifactId.ArtifactQuery.Builder getQueryBuilder() { - - onChanged(); - return getQueryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - public flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getQueryOrBuilder() { - if (queryBuilder_ != null) { - return queryBuilder_.getMessageOrBuilder(); - } else { - return query_ == null ? - flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance() : query_; - } - } - /** - * .flyteidl.core.ArtifactQuery query = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder>( - getQuery(), - getParentForChildren(), - isClean()); - query_ = null; - } - return queryBuilder_; - } - - private boolean details_ ; - /** - *
-       * If false, then long_description is not returned.
-       * 
- * - * bool details = 2; - */ - public boolean getDetails() { - return details_; - } - /** - *
-       * If false, then long_description is not returned.
-       * 
- * - * bool details = 2; - */ - public Builder setDetails(boolean value) { - - details_ = value; - onChanged(); - return this; - } - /** - *
-       * If false, then long_description is not returned.
-       * 
- * - * bool details = 2; - */ - public Builder clearDetails() { - - details_ = false; - onChanged(); - return this; - } - @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.artifact.GetArtifactRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.GetArtifactRequest) - private static final flyteidl.artifact.Artifacts.GetArtifactRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.GetArtifactRequest(); - } - - public static flyteidl.artifact.Artifacts.GetArtifactRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetArtifactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetArtifactRequest(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.artifact.Artifacts.GetArtifactRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetArtifactResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.GetArtifactResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - boolean hasArtifact(); - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - flyteidl.artifact.Artifacts.Artifact getArtifact(); - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.GetArtifactResponse} - */ - public static final class GetArtifactResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.GetArtifactResponse) - GetArtifactResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetArtifactResponse.newBuilder() to construct. - private GetArtifactResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetArtifactResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetArtifactResponse( - 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.artifact.Artifacts.Artifact.Builder subBuilder = null; - if (artifact_ != null) { - subBuilder = artifact_.toBuilder(); - } - artifact_ = input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifact_); - artifact_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.GetArtifactResponse.class, flyteidl.artifact.Artifacts.GetArtifactResponse.Builder.class); - } - - public static final int ARTIFACT_FIELD_NUMBER = 1; - private flyteidl.artifact.Artifacts.Artifact artifact_; - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifact_ != null; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - return getArtifact(); - } - - 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 (artifact_ != null) { - output.writeMessage(1, getArtifact()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifact()); - } - 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.artifact.Artifacts.GetArtifactResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.GetArtifactResponse other = (flyteidl.artifact.Artifacts.GetArtifactResponse) obj; - - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact() - .equals(other.getArtifact())) 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 (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse 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.artifact.Artifacts.GetArtifactResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse 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.artifact.Artifacts.GetArtifactResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.GetArtifactResponse 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.artifact.Artifacts.GetArtifactResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.GetArtifactResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.GetArtifactResponse) - flyteidl.artifact.Artifacts.GetArtifactResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.GetArtifactResponse.class, flyteidl.artifact.Artifacts.GetArtifactResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.GetArtifactResponse.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 (artifactBuilder_ == null) { - artifact_ = null; - } else { - artifact_ = null; - artifactBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_GetArtifactResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.GetArtifactResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactResponse build() { - flyteidl.artifact.Artifacts.GetArtifactResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.GetArtifactResponse buildPartial() { - flyteidl.artifact.Artifacts.GetArtifactResponse result = new flyteidl.artifact.Artifacts.GetArtifactResponse(this); - if (artifactBuilder_ == null) { - result.artifact_ = artifact_; - } else { - result.artifact_ = artifactBuilder_.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.artifact.Artifacts.GetArtifactResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.GetArtifactResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.GetArtifactResponse other) { - if (other == flyteidl.artifact.Artifacts.GetArtifactResponse.getDefaultInstance()) return this; - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); - } - 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.artifact.Artifacts.GetArtifactResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.GetArtifactResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.artifact.Artifacts.Artifact artifact_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactBuilder_; - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public boolean hasArtifact() { - return artifactBuilder_ != null || artifact_ != null; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null ? flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } else { - return artifactBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder setArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifact_ = value; - onChanged(); - } else { - artifactBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder setArtifact( - flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); - onChanged(); - } else { - artifactBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder mergeArtifact(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactBuilder_ == null) { - if (artifact_ != null) { - artifact_ = - flyteidl.artifact.Artifacts.Artifact.newBuilder(artifact_).mergeFrom(value).buildPartial(); - } else { - artifact_ = value; - } - onChanged(); - } else { - artifactBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public Builder clearArtifact() { - if (artifactBuilder_ == null) { - artifact_ = null; - onChanged(); - } else { - artifact_ = null; - artifactBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactBuilder() { - - onChanged(); - return getArtifactFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); - } else { - return artifact_ == null ? - flyteidl.artifact.Artifacts.Artifact.getDefaultInstance() : artifact_; - } - } - /** - * .flyteidl.artifact.Artifact artifact = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> - getArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( - getArtifact(), - getParentForChildren(), - isClean()); - artifact_ = null; - } - return artifactBuilder_; - } - @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.artifact.GetArtifactResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.GetArtifactResponse) - private static final flyteidl.artifact.Artifacts.GetArtifactResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.GetArtifactResponse(); - } - - public static flyteidl.artifact.Artifacts.GetArtifactResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetArtifactResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetArtifactResponse(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.artifact.Artifacts.GetArtifactResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SearchOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchOptions) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * If true, this means a strict partition search. meaning if you don't specify the partition
-     * field, that will mean, non-partitioned, rather than any partition.
-     * 
- * - * bool strict_partitions = 1; - */ - boolean getStrictPartitions(); - - /** - *
-     * If true, only one artifact per key will be returned. It will be the latest one by creation time.
-     * 
- * - * bool latest_by_key = 2; - */ - boolean getLatestByKey(); - } - /** - * Protobuf type {@code flyteidl.artifact.SearchOptions} - */ - public static final class SearchOptions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchOptions) - SearchOptionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchOptions.newBuilder() to construct. - private SearchOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchOptions() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchOptions( - 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 8: { - - strictPartitions_ = input.readBool(); - break; - } - case 16: { - - latestByKey_ = input.readBool(); - 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.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchOptions.class, flyteidl.artifact.Artifacts.SearchOptions.Builder.class); - } - - public static final int STRICT_PARTITIONS_FIELD_NUMBER = 1; - private boolean strictPartitions_; - /** - *
-     * If true, this means a strict partition search. meaning if you don't specify the partition
-     * field, that will mean, non-partitioned, rather than any partition.
-     * 
- * - * bool strict_partitions = 1; - */ - public boolean getStrictPartitions() { - return strictPartitions_; - } - - public static final int LATEST_BY_KEY_FIELD_NUMBER = 2; - private boolean latestByKey_; - /** - *
-     * If true, only one artifact per key will be returned. It will be the latest one by creation time.
-     * 
- * - * bool latest_by_key = 2; - */ - public boolean getLatestByKey() { - return latestByKey_; - } - - 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 (strictPartitions_ != false) { - output.writeBool(1, strictPartitions_); - } - if (latestByKey_ != false) { - output.writeBool(2, latestByKey_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (strictPartitions_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, strictPartitions_); - } - if (latestByKey_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, latestByKey_); - } - 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.artifact.Artifacts.SearchOptions)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.SearchOptions other = (flyteidl.artifact.Artifacts.SearchOptions) obj; - - if (getStrictPartitions() - != other.getStrictPartitions()) return false; - if (getLatestByKey() - != other.getLatestByKey()) 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(); - hash = (37 * hash) + STRICT_PARTITIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStrictPartitions()); - hash = (37 * hash) + LATEST_BY_KEY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLatestByKey()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchOptions 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.artifact.Artifacts.SearchOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchOptions 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.artifact.Artifacts.SearchOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchOptions 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.artifact.Artifacts.SearchOptions 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; - } - /** - * Protobuf type {@code flyteidl.artifact.SearchOptions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchOptions) - flyteidl.artifact.Artifacts.SearchOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchOptions.class, flyteidl.artifact.Artifacts.SearchOptions.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.SearchOptions.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(); - strictPartitions_ = false; - - latestByKey_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchOptions_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchOptions getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchOptions build() { - flyteidl.artifact.Artifacts.SearchOptions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchOptions buildPartial() { - flyteidl.artifact.Artifacts.SearchOptions result = new flyteidl.artifact.Artifacts.SearchOptions(this); - result.strictPartitions_ = strictPartitions_; - result.latestByKey_ = latestByKey_; - 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.artifact.Artifacts.SearchOptions) { - return mergeFrom((flyteidl.artifact.Artifacts.SearchOptions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchOptions other) { - if (other == flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance()) return this; - if (other.getStrictPartitions() != false) { - setStrictPartitions(other.getStrictPartitions()); - } - if (other.getLatestByKey() != false) { - setLatestByKey(other.getLatestByKey()); - } - 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.artifact.Artifacts.SearchOptions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.SearchOptions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean strictPartitions_ ; - /** - *
-       * If true, this means a strict partition search. meaning if you don't specify the partition
-       * field, that will mean, non-partitioned, rather than any partition.
-       * 
- * - * bool strict_partitions = 1; - */ - public boolean getStrictPartitions() { - return strictPartitions_; - } - /** - *
-       * If true, this means a strict partition search. meaning if you don't specify the partition
-       * field, that will mean, non-partitioned, rather than any partition.
-       * 
- * - * bool strict_partitions = 1; - */ - public Builder setStrictPartitions(boolean value) { - - strictPartitions_ = value; - onChanged(); - return this; - } - /** - *
-       * If true, this means a strict partition search. meaning if you don't specify the partition
-       * field, that will mean, non-partitioned, rather than any partition.
-       * 
- * - * bool strict_partitions = 1; - */ - public Builder clearStrictPartitions() { - - strictPartitions_ = false; - onChanged(); - return this; - } - - private boolean latestByKey_ ; - /** - *
-       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
-       * 
- * - * bool latest_by_key = 2; - */ - public boolean getLatestByKey() { - return latestByKey_; - } - /** - *
-       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
-       * 
- * - * bool latest_by_key = 2; - */ - public Builder setLatestByKey(boolean value) { - - latestByKey_ = value; - onChanged(); - return this; - } - /** - *
-       * If true, only one artifact per key will be returned. It will be the latest one by creation time.
-       * 
- * - * bool latest_by_key = 2; - */ - public Builder clearLatestByKey() { - - latestByKey_ = false; - onChanged(); - return this; - } - @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.artifact.SearchOptions) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchOptions) - private static final flyteidl.artifact.Artifacts.SearchOptions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchOptions(); - } - - public static flyteidl.artifact.Artifacts.SearchOptions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchOptions(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.artifact.Artifacts.SearchOptions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SearchArtifactsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - boolean hasArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); - - /** - * .flyteidl.core.Partitions partitions = 2; - */ - boolean hasPartitions(); - /** - * .flyteidl.core.Partitions partitions = 2; - */ - flyteidl.core.ArtifactId.Partitions getPartitions(); - /** - * .flyteidl.core.Partitions partitions = 2; - */ - flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder(); - - /** - * string principal = 3; - */ - java.lang.String getPrincipal(); - /** - * string principal = 3; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - * string version = 4; - */ - java.lang.String getVersion(); - /** - * string version = 4; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - boolean hasOptions(); - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - flyteidl.artifact.Artifacts.SearchOptions getOptions(); - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder(); - - /** - * string token = 6; - */ - java.lang.String getToken(); - /** - * string token = 6; - */ - com.google.protobuf.ByteString - getTokenBytes(); - - /** - * int32 limit = 7; - */ - int getLimit(); - } - /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} - */ - public static final class SearchArtifactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsRequest) - SearchArtifactsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchArtifactsRequest.newBuilder() to construct. - private SearchArtifactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchArtifactsRequest() { - principal_ = ""; - version_ = ""; - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchArtifactsRequest( - 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.ArtifactId.ArtifactKey.Builder subBuilder = null; - if (artifactKey_ != null) { - subBuilder = artifactKey_.toBuilder(); - } - artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactKey_); - artifactKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.ArtifactId.Partitions.Builder subBuilder = null; - if (partitions_ != null) { - subBuilder = partitions_.toBuilder(); - } - partitions_ = input.readMessage(flyteidl.core.ArtifactId.Partitions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(partitions_); - partitions_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 42: { - flyteidl.artifact.Artifacts.SearchOptions.Builder subBuilder = null; - if (options_ != null) { - subBuilder = options_.toBuilder(); - } - options_ = input.readMessage(flyteidl.artifact.Artifacts.SearchOptions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(options_); - options_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - break; - } - case 56: { - - limit_ = input.readInt32(); - 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.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); - } - - public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - return getArtifactKey(); - } - - public static final int PARTITIONS_FIELD_NUMBER = 2; - private flyteidl.core.ArtifactId.Partitions partitions_; - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public boolean hasPartitions() { - return partitions_ != null; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public flyteidl.core.ArtifactId.Partitions getPartitions() { - return partitions_ == null ? flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { - return getPartitions(); - } - - public static final int PRINCIPAL_FIELD_NUMBER = 3; - private volatile java.lang.Object principal_; - /** - * string principal = 3; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - * string principal = 3; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 4; - private volatile java.lang.Object version_; - /** - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPTIONS_FIELD_NUMBER = 5; - private flyteidl.artifact.Artifacts.SearchOptions options_; - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public boolean hasOptions() { - return options_ != null; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public flyteidl.artifact.Artifacts.SearchOptions getOptions() { - return options_ == null ? flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder() { - return getOptions(); - } - - public static final int TOKEN_FIELD_NUMBER = 6; - private volatile java.lang.Object token_; - /** - * string token = 6; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - * string token = 6; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LIMIT_FIELD_NUMBER = 7; - private int limit_; - /** - * int32 limit = 7; - */ - public int getLimit() { - return limit_; - } - - 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 (artifactKey_ != null) { - output.writeMessage(1, getArtifactKey()); - } - if (partitions_ != null) { - output.writeMessage(2, getPartitions()); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, principal_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, version_); - } - if (options_ != null) { - output.writeMessage(5, getOptions()); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, token_); - } - if (limit_ != 0) { - output.writeInt32(7, limit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactKey()); - } - if (partitions_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPartitions()); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, principal_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, version_); - } - if (options_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOptions()); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, token_); - } - if (limit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, limit_); - } - 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.artifact.Artifacts.SearchArtifactsRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.SearchArtifactsRequest other = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) obj; - - if (hasArtifactKey() != other.hasArtifactKey()) return false; - if (hasArtifactKey()) { - if (!getArtifactKey() - .equals(other.getArtifactKey())) return false; - } - if (hasPartitions() != other.hasPartitions()) return false; - if (hasPartitions()) { - if (!getPartitions() - .equals(other.getPartitions())) return false; - } - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (hasOptions() != other.hasOptions()) return false; - if (hasOptions()) { - if (!getOptions() - .equals(other.getOptions())) return false; - } - if (!getToken() - .equals(other.getToken())) return false; - if (getLimit() - != other.getLimit()) 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 (hasArtifactKey()) { - hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKey().hashCode(); - } - if (hasPartitions()) { - hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; - hash = (53 * hash) + getPartitions().hashCode(); - } - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - if (hasOptions()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getOptions().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getLimit(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest 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.artifact.Artifacts.SearchArtifactsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest 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.artifact.Artifacts.SearchArtifactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest 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.artifact.Artifacts.SearchArtifactsRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsRequest) - flyteidl.artifact.Artifacts.SearchArtifactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsRequest.class, flyteidl.artifact.Artifacts.SearchArtifactsRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.SearchArtifactsRequest.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 (artifactKeyBuilder_ == null) { - artifactKey_ = null; - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - if (partitionsBuilder_ == null) { - partitions_ = null; - } else { - partitions_ = null; - partitionsBuilder_ = null; - } - principal_ = ""; - - version_ = ""; - - if (optionsBuilder_ == null) { - options_ = null; - } else { - options_ = null; - optionsBuilder_ = null; - } - token_ = ""; - - limit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest build() { - flyteidl.artifact.Artifacts.SearchArtifactsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsRequest buildPartial() { - flyteidl.artifact.Artifacts.SearchArtifactsRequest result = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(this); - if (artifactKeyBuilder_ == null) { - result.artifactKey_ = artifactKey_; - } else { - result.artifactKey_ = artifactKeyBuilder_.build(); - } - if (partitionsBuilder_ == null) { - result.partitions_ = partitions_; - } else { - result.partitions_ = partitionsBuilder_.build(); - } - result.principal_ = principal_; - result.version_ = version_; - if (optionsBuilder_ == null) { - result.options_ = options_; - } else { - result.options_ = optionsBuilder_.build(); - } - result.token_ = token_; - result.limit_ = limit_; - 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.artifact.Artifacts.SearchArtifactsRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsRequest other) { - if (other == flyteidl.artifact.Artifacts.SearchArtifactsRequest.getDefaultInstance()) return this; - if (other.hasArtifactKey()) { - mergeArtifactKey(other.getArtifactKey()); - } - if (other.hasPartitions()) { - mergePartitions(other.getPartitions()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (other.hasOptions()) { - mergeOptions(other.getOptions()); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - if (other.getLimit() != 0) { - setLimit(other.getLimit()); - } - 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.artifact.Artifacts.SearchArtifactsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKeyBuilder_ != null || artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - if (artifactKeyBuilder_ == null) { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } else { - return artifactKeyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactKey_ = value; - onChanged(); - } else { - artifactKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeyBuilder_ == null) { - artifactKey_ = builderForValue.build(); - onChanged(); - } else { - artifactKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (artifactKey_ != null) { - artifactKey_ = - flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); - } else { - artifactKey_ = value; - } - onChanged(); - } else { - artifactKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder clearArtifactKey() { - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; - onChanged(); - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { - - onChanged(); - return getArtifactKeyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - if (artifactKeyBuilder_ != null) { - return artifactKeyBuilder_.getMessageOrBuilder(); - } else { - return artifactKey_ == null ? - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeyFieldBuilder() { - if (artifactKeyBuilder_ == null) { - artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - getArtifactKey(), - getParentForChildren(), - isClean()); - artifactKey_ = null; - } - return artifactKeyBuilder_; - } - - private flyteidl.core.ArtifactId.Partitions partitions_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> partitionsBuilder_; - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public boolean hasPartitions() { - return partitionsBuilder_ != null || partitions_ != null; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public flyteidl.core.ArtifactId.Partitions getPartitions() { - if (partitionsBuilder_ == null) { - return partitions_ == null ? flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; - } else { - return partitionsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public Builder setPartitions(flyteidl.core.ArtifactId.Partitions value) { - if (partitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - partitions_ = value; - onChanged(); - } else { - partitionsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public Builder setPartitions( - flyteidl.core.ArtifactId.Partitions.Builder builderForValue) { - if (partitionsBuilder_ == null) { - partitions_ = builderForValue.build(); - onChanged(); - } else { - partitionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public Builder mergePartitions(flyteidl.core.ArtifactId.Partitions value) { - if (partitionsBuilder_ == null) { - if (partitions_ != null) { - partitions_ = - flyteidl.core.ArtifactId.Partitions.newBuilder(partitions_).mergeFrom(value).buildPartial(); - } else { - partitions_ = value; - } - onChanged(); - } else { - partitionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public Builder clearPartitions() { - if (partitionsBuilder_ == null) { - partitions_ = null; - onChanged(); - } else { - partitions_ = null; - partitionsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public flyteidl.core.ArtifactId.Partitions.Builder getPartitionsBuilder() { - - onChanged(); - return getPartitionsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { - if (partitionsBuilder_ != null) { - return partitionsBuilder_.getMessageOrBuilder(); - } else { - return partitions_ == null ? - flyteidl.core.ArtifactId.Partitions.getDefaultInstance() : partitions_; - } - } - /** - * .flyteidl.core.Partitions partitions = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> - getPartitionsFieldBuilder() { - if (partitionsBuilder_ == null) { - partitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder>( - getPartitions(), - getParentForChildren(), - isClean()); - partitions_ = null; - } - return partitionsBuilder_; - } - - private java.lang.Object principal_ = ""; - /** - * string principal = 3; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string principal = 3; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string principal = 3; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - * string principal = 3; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - * string principal = 3; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - * string version = 4; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 4; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 4; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 4; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 4; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private flyteidl.artifact.Artifacts.SearchOptions options_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder> optionsBuilder_; - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public boolean hasOptions() { - return optionsBuilder_ != null || options_ != null; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public flyteidl.artifact.Artifacts.SearchOptions getOptions() { - if (optionsBuilder_ == null) { - return options_ == null ? flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; - } else { - return optionsBuilder_.getMessage(); - } - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public Builder setOptions(flyteidl.artifact.Artifacts.SearchOptions value) { - if (optionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - options_ = value; - onChanged(); - } else { - optionsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public Builder setOptions( - flyteidl.artifact.Artifacts.SearchOptions.Builder builderForValue) { - if (optionsBuilder_ == null) { - options_ = builderForValue.build(); - onChanged(); - } else { - optionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public Builder mergeOptions(flyteidl.artifact.Artifacts.SearchOptions value) { - if (optionsBuilder_ == null) { - if (options_ != null) { - options_ = - flyteidl.artifact.Artifacts.SearchOptions.newBuilder(options_).mergeFrom(value).buildPartial(); - } else { - options_ = value; - } - onChanged(); - } else { - optionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public Builder clearOptions() { - if (optionsBuilder_ == null) { - options_ = null; - onChanged(); - } else { - options_ = null; - optionsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public flyteidl.artifact.Artifacts.SearchOptions.Builder getOptionsBuilder() { - - onChanged(); - return getOptionsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - public flyteidl.artifact.Artifacts.SearchOptionsOrBuilder getOptionsOrBuilder() { - if (optionsBuilder_ != null) { - return optionsBuilder_.getMessageOrBuilder(); - } else { - return options_ == null ? - flyteidl.artifact.Artifacts.SearchOptions.getDefaultInstance() : options_; - } - } - /** - * .flyteidl.artifact.SearchOptions options = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder> - getOptionsFieldBuilder() { - if (optionsBuilder_ == null) { - optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.artifact.Artifacts.SearchOptions, flyteidl.artifact.Artifacts.SearchOptions.Builder, flyteidl.artifact.Artifacts.SearchOptionsOrBuilder>( - getOptions(), - getParentForChildren(), - isClean()); - options_ = null; - } - return optionsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - * string token = 6; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string token = 6; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string token = 6; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - * string token = 6; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - * string token = 6; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - - private int limit_ ; - /** - * int32 limit = 7; - */ - public int getLimit() { - return limit_; - } - /** - * int32 limit = 7; - */ - public Builder setLimit(int value) { - - limit_ = value; - onChanged(); - return this; - } - /** - * int32 limit = 7; - */ - public Builder clearLimit() { - - limit_ = 0; - onChanged(); - return this; - } - @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.artifact.SearchArtifactsRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsRequest) - private static final flyteidl.artifact.Artifacts.SearchArtifactsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsRequest(); - } - - public static flyteidl.artifact.Artifacts.SearchArtifactsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchArtifactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchArtifactsRequest(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.artifact.Artifacts.SearchArtifactsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SearchArtifactsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.SearchArtifactsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - java.util.List - getArtifactsList(); - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - flyteidl.artifact.Artifacts.Artifact getArtifacts(int index); - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - int getArtifactsCount(); - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - java.util.List - getArtifactsOrBuilderList(); - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index); - - /** - *
-     * continuation token if relevant.
-     * 
- * - * string token = 2; - */ - java.lang.String getToken(); - /** - *
-     * continuation token if relevant.
-     * 
- * - * string token = 2; - */ - com.google.protobuf.ByteString - getTokenBytes(); - } - /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} - */ - public static final class SearchArtifactsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.SearchArtifactsResponse) - SearchArtifactsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use SearchArtifactsResponse.newBuilder() to construct. - private SearchArtifactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchArtifactsResponse() { - artifacts_ = java.util.Collections.emptyList(); - token_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SearchArtifactsResponse( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - artifacts_.add( - input.readMessage(flyteidl.artifact.Artifacts.Artifact.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - token_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); - } - - private int bitField0_; - public static final int ARTIFACTS_FIELD_NUMBER = 1; - private java.util.List artifacts_; - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List getArtifactsList() { - return artifacts_; - } - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - return artifacts_; - } - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public int getArtifactsCount() { - return artifacts_.size(); - } - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { - return artifacts_.get(index); - } - /** - *
-     * If artifact specs are not requested, the resultant artifacts may be empty.
-     * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - return artifacts_.get(index); - } - - public static final int TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object token_; - /** - *
-     * continuation token if relevant.
-     * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - /** - *
-     * continuation token if relevant.
-     * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - for (int i = 0; i < artifacts_.size(); i++) { - output.writeMessage(1, artifacts_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < artifacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, artifacts_.get(i)); - } - if (!getTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_); - } - 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.artifact.Artifacts.SearchArtifactsResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.SearchArtifactsResponse other = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) obj; - - if (!getArtifactsList() - .equals(other.getArtifactsList())) return false; - if (!getToken() - .equals(other.getToken())) 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 (getArtifactsCount() > 0) { - hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactsList().hashCode(); - } - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse 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.artifact.Artifacts.SearchArtifactsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse 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.artifact.Artifacts.SearchArtifactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse 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.artifact.Artifacts.SearchArtifactsResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.SearchArtifactsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.SearchArtifactsResponse) - flyteidl.artifact.Artifacts.SearchArtifactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.SearchArtifactsResponse.class, flyteidl.artifact.Artifacts.SearchArtifactsResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.SearchArtifactsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - artifactsBuilder_.clear(); - } - token_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse build() { - flyteidl.artifact.Artifacts.SearchArtifactsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.SearchArtifactsResponse buildPartial() { - flyteidl.artifact.Artifacts.SearchArtifactsResponse result = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (artifactsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.artifacts_ = artifacts_; - } else { - result.artifacts_ = artifactsBuilder_.build(); - } - result.token_ = token_; - result.bitField0_ = to_bitField0_; - 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.artifact.Artifacts.SearchArtifactsResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.SearchArtifactsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.SearchArtifactsResponse other) { - if (other == flyteidl.artifact.Artifacts.SearchArtifactsResponse.getDefaultInstance()) return this; - if (artifactsBuilder_ == null) { - if (!other.artifacts_.isEmpty()) { - if (artifacts_.isEmpty()) { - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureArtifactsIsMutable(); - artifacts_.addAll(other.artifacts_); - } - onChanged(); - } - } else { - if (!other.artifacts_.isEmpty()) { - if (artifactsBuilder_.isEmpty()) { - artifactsBuilder_.dispose(); - artifactsBuilder_ = null; - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000001); - artifactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactsFieldBuilder() : null; - } else { - artifactsBuilder_.addAllMessages(other.artifacts_); - } - } - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - onChanged(); - } - 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.artifact.Artifacts.SearchArtifactsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.SearchArtifactsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List artifacts_ = - java.util.Collections.emptyList(); - private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - artifacts_ = new java.util.ArrayList(artifacts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> artifactsBuilder_; - - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List getArtifactsList() { - if (artifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifacts_); - } else { - return artifactsBuilder_.getMessageList(); - } - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public int getArtifactsCount() { - if (artifactsBuilder_ == null) { - return artifacts_.size(); - } else { - return artifactsBuilder_.getCount(); - } - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact getArtifacts(int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessage(index); - } - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.set(index, value); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder setArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder addArtifacts(flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(value); - onChanged(); - } else { - artifactsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder addArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(index, value); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder addArtifacts( - flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder addArtifacts( - int index, flyteidl.artifact.Artifacts.Artifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder addAllArtifacts( - java.lang.Iterable values) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifacts_); - onChanged(); - } else { - artifactsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder clearArtifacts() { - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - artifactsBuilder_.clear(); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public Builder removeArtifacts(int index) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.remove(index); - onChanged(); - } else { - artifactsBuilder_.remove(index); - } - return this; - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact.Builder getArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().getBuilder(index); - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactOrBuilder getArtifactsOrBuilder( - int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); } else { - return artifactsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsOrBuilderList() { - if (artifactsBuilder_ != null) { - return artifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifacts_); - } - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder() { - return getArtifactsFieldBuilder().addBuilder( - flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public flyteidl.artifact.Artifacts.Artifact.Builder addArtifactsBuilder( - int index) { - return getArtifactsFieldBuilder().addBuilder( - index, flyteidl.artifact.Artifacts.Artifact.getDefaultInstance()); - } - /** - *
-       * If artifact specs are not requested, the resultant artifacts may be empty.
-       * 
- * - * repeated .flyteidl.artifact.Artifact artifacts = 1; - */ - public java.util.List - getArtifactsBuilderList() { - return getArtifactsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder> - getArtifactsFieldBuilder() { - if (artifactsBuilder_ == null) { - artifactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.Artifact, flyteidl.artifact.Artifacts.Artifact.Builder, flyteidl.artifact.Artifacts.ArtifactOrBuilder>( - artifacts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - artifacts_ = null; - } - return artifactsBuilder_; - } - - private java.lang.Object token_ = ""; - /** - *
-       * continuation token if relevant.
-       * 
- * - * string token = 2; - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * continuation token if relevant.
-       * 
- * - * string token = 2; - */ - public com.google.protobuf.ByteString - getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * continuation token if relevant.
-       * 
- * - * string token = 2; - */ - public Builder setToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - token_ = value; - onChanged(); - return this; - } - /** - *
-       * continuation token if relevant.
-       * 
- * - * string token = 2; - */ - public Builder clearToken() { - - token_ = getDefaultInstance().getToken(); - onChanged(); - return this; - } - /** - *
-       * continuation token if relevant.
-       * 
- * - * string token = 2; - */ - public Builder setTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - token_ = value; - onChanged(); - return this; - } - @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.artifact.SearchArtifactsResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.SearchArtifactsResponse) - private static final flyteidl.artifact.Artifacts.SearchArtifactsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.SearchArtifactsResponse(); - } - - public static flyteidl.artifact.Artifacts.SearchArtifactsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchArtifactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchArtifactsResponse(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.artifact.Artifacts.SearchArtifactsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface FindByWorkflowExecRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.FindByWorkflowExecRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - boolean hasExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder(); - - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - int getDirectionValue(); - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection(); - } - /** - * Protobuf type {@code flyteidl.artifact.FindByWorkflowExecRequest} - */ - public static final class FindByWorkflowExecRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.FindByWorkflowExecRequest) - FindByWorkflowExecRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use FindByWorkflowExecRequest.newBuilder() to construct. - private FindByWorkflowExecRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FindByWorkflowExecRequest() { - direction_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private FindByWorkflowExecRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (execId_ != null) { - subBuilder = execId_.toBuilder(); - } - execId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(execId_); - execId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - direction_ = rawValue; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.class, flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.artifact.FindByWorkflowExecRequest.Direction} - */ - public enum Direction - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INPUTS = 0; - */ - INPUTS(0), - /** - * OUTPUTS = 1; - */ - OUTPUTS(1), - UNRECOGNIZED(-1), - ; - - /** - * INPUTS = 0; - */ - public static final int INPUTS_VALUE = 0; - /** - * OUTPUTS = 1; - */ - public static final int OUTPUTS_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Direction valueOf(int value) { - return forNumber(value); - } - - public static Direction forNumber(int value) { - switch (value) { - case 0: return INPUTS; - case 1: return OUTPUTS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Direction> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Direction findValueByNumber(int number) { - return Direction.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final Direction[] VALUES = values(); - - public static Direction valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Direction(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.artifact.FindByWorkflowExecRequest.Direction) - } - - public static final int EXEC_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public boolean hasExecId() { - return execId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId() { - return execId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder() { - return getExecId(); - } - - public static final int DIRECTION_FIELD_NUMBER = 2; - private int direction_; - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction result = flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.valueOf(direction_); - return result == null ? flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.UNRECOGNIZED : result; - } - - 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 (execId_ != null) { - output.writeMessage(1, getExecId()); - } - if (direction_ != flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.INPUTS.getNumber()) { - output.writeEnum(2, direction_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (execId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecId()); - } - if (direction_ != flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.INPUTS.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, direction_); - } - 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.artifact.Artifacts.FindByWorkflowExecRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest other = (flyteidl.artifact.Artifacts.FindByWorkflowExecRequest) obj; - - if (hasExecId() != other.hasExecId()) return false; - if (hasExecId()) { - if (!getExecId() - .equals(other.getExecId())) return false; - } - if (direction_ != other.direction_) 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 (hasExecId()) { - hash = (37 * hash) + EXEC_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecId().hashCode(); - } - hash = (37 * hash) + DIRECTION_FIELD_NUMBER; - hash = (53 * hash) + direction_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest 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.artifact.Artifacts.FindByWorkflowExecRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest 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.artifact.Artifacts.FindByWorkflowExecRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest 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.artifact.Artifacts.FindByWorkflowExecRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.FindByWorkflowExecRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.FindByWorkflowExecRequest) - flyteidl.artifact.Artifacts.FindByWorkflowExecRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.class, flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.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 (execIdBuilder_ == null) { - execId_ = null; - } else { - execId_ = null; - execIdBuilder_ = null; - } - direction_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest build() { - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest buildPartial() { - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest result = new flyteidl.artifact.Artifacts.FindByWorkflowExecRequest(this); - if (execIdBuilder_ == null) { - result.execId_ = execId_; - } else { - result.execId_ = execIdBuilder_.build(); - } - result.direction_ = direction_; - 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.artifact.Artifacts.FindByWorkflowExecRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.FindByWorkflowExecRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.FindByWorkflowExecRequest other) { - if (other == flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.getDefaultInstance()) return this; - if (other.hasExecId()) { - mergeExecId(other.getExecId()); - } - if (other.direction_ != 0) { - setDirectionValue(other.getDirectionValue()); - } - 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.artifact.Artifacts.FindByWorkflowExecRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.FindByWorkflowExecRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier execId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> execIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public boolean hasExecId() { - return execIdBuilder_ != null || execId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecId() { - if (execIdBuilder_ == null) { - return execId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; - } else { - return execIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public Builder setExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (execIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - execId_ = value; - onChanged(); - } else { - execIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public Builder setExecId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (execIdBuilder_ == null) { - execId_ = builderForValue.build(); - onChanged(); - } else { - execIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public Builder mergeExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (execIdBuilder_ == null) { - if (execId_ != null) { - execId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(execId_).mergeFrom(value).buildPartial(); - } else { - execId_ = value; - } - onChanged(); - } else { - execIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public Builder clearExecId() { - if (execIdBuilder_ == null) { - execId_ = null; - onChanged(); - } else { - execId_ = null; - execIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecIdBuilder() { - - onChanged(); - return getExecIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecIdOrBuilder() { - if (execIdBuilder_ != null) { - return execIdBuilder_.getMessageOrBuilder(); - } else { - return execId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : execId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier exec_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecIdFieldBuilder() { - if (execIdBuilder_ == null) { - execIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecId(), - getParentForChildren(), - isClean()); - execId_ = null; - } - return execIdBuilder_; - } - - private int direction_ = 0; - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public int getDirectionValue() { - return direction_; - } - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public Builder setDirectionValue(int value) { - direction_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction getDirection() { - @SuppressWarnings("deprecation") - flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction result = flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.valueOf(direction_); - return result == null ? flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction.UNRECOGNIZED : result; - } - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public Builder setDirection(flyteidl.artifact.Artifacts.FindByWorkflowExecRequest.Direction value) { - if (value == null) { - throw new NullPointerException(); - } - - direction_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.artifact.FindByWorkflowExecRequest.Direction direction = 2; - */ - public Builder clearDirection() { - - direction_ = 0; - onChanged(); - return this; - } - @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.artifact.FindByWorkflowExecRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.FindByWorkflowExecRequest) - private static final flyteidl.artifact.Artifacts.FindByWorkflowExecRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.FindByWorkflowExecRequest(); - } - - public static flyteidl.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FindByWorkflowExecRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new FindByWorkflowExecRequest(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.artifact.Artifacts.FindByWorkflowExecRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddTagRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.AddTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - boolean hasArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder(); - - /** - * string value = 2; - */ - java.lang.String getValue(); - /** - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-     * If true, and another version already has the specified kind/value, set this version instead
-     * 
- * - * bool overwrite = 3; - */ - boolean getOverwrite(); - } - /** - *
-   * Aliases identify a particular version of an artifact. They are different than tags in that they
-   * have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind,
-   * at most one version can have any given value at any point.
-   * 
- * - * Protobuf type {@code flyteidl.artifact.AddTagRequest} - */ - public static final class AddTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.AddTagRequest) - AddTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddTagRequest.newBuilder() to construct. - private AddTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddTagRequest() { - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddTagRequest( - 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.ArtifactId.ArtifactID.Builder subBuilder = null; - if (artifactId_ != null) { - subBuilder = artifactId_.toBuilder(); - } - artifactId_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactId_); - artifactId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - break; - } - case 24: { - - overwrite_ = input.readBool(); - 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.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.AddTagRequest.class, flyteidl.artifact.Artifacts.AddTagRequest.Builder.class); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactID artifactId_; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return artifactId_ != null; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - return getArtifactId(); - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OVERWRITE_FIELD_NUMBER = 3; - private boolean overwrite_; - /** - *
-     * If true, and another version already has the specified kind/value, set this version instead
-     * 
- * - * bool overwrite = 3; - */ - public boolean getOverwrite() { - return overwrite_; - } - - 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 (artifactId_ != null) { - output.writeMessage(1, getArtifactId()); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (overwrite_ != false) { - output.writeBool(3, overwrite_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactId()); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (overwrite_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, overwrite_); - } - 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.artifact.Artifacts.AddTagRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.AddTagRequest other = (flyteidl.artifact.Artifacts.AddTagRequest) obj; - - if (hasArtifactId() != other.hasArtifactId()) return false; - if (hasArtifactId()) { - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - } - if (!getValue() - .equals(other.getValue())) return false; - if (getOverwrite() - != other.getOverwrite()) 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 (hasArtifactId()) { - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - } - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + OVERWRITE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOverwrite()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagRequest 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.artifact.Artifacts.AddTagRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagRequest 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.artifact.Artifacts.AddTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagRequest 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.artifact.Artifacts.AddTagRequest 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; - } - /** - *
-     * Aliases identify a particular version of an artifact. They are different than tags in that they
-     * have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind,
-     * at most one version can have any given value at any point.
-     * 
- * - * Protobuf type {@code flyteidl.artifact.AddTagRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.AddTagRequest) - flyteidl.artifact.Artifacts.AddTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.AddTagRequest.class, flyteidl.artifact.Artifacts.AddTagRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.AddTagRequest.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 (artifactIdBuilder_ == null) { - artifactId_ = null; - } else { - artifactId_ = null; - artifactIdBuilder_ = null; - } - value_ = ""; - - overwrite_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.AddTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagRequest build() { - flyteidl.artifact.Artifacts.AddTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagRequest buildPartial() { - flyteidl.artifact.Artifacts.AddTagRequest result = new flyteidl.artifact.Artifacts.AddTagRequest(this); - if (artifactIdBuilder_ == null) { - result.artifactId_ = artifactId_; - } else { - result.artifactId_ = artifactIdBuilder_.build(); - } - result.value_ = value_; - result.overwrite_ = overwrite_; - 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.artifact.Artifacts.AddTagRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.AddTagRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.AddTagRequest other) { - if (other == flyteidl.artifact.Artifacts.AddTagRequest.getDefaultInstance()) return this; - if (other.hasArtifactId()) { - mergeArtifactId(other.getArtifactId()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - if (other.getOverwrite() != false) { - setOverwrite(other.getOverwrite()); - } - 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.artifact.Artifacts.AddTagRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.AddTagRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.ArtifactId.ArtifactID artifactId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdBuilder_; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return artifactIdBuilder_ != null || artifactId_ != null; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (artifactIdBuilder_ == null) { - return artifactId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } else { - return artifactIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactId_ = value; - onChanged(); - } else { - artifactIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdBuilder_ == null) { - artifactId_ = builderForValue.build(); - onChanged(); - } else { - artifactIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder mergeArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (artifactId_ != null) { - artifactId_ = - flyteidl.core.ArtifactId.ArtifactID.newBuilder(artifactId_).mergeFrom(value).buildPartial(); - } else { - artifactId_ = value; - } - onChanged(); - } else { - artifactIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder clearArtifactId() { - if (artifactIdBuilder_ == null) { - artifactId_ = null; - onChanged(); - } else { - artifactId_ = null; - artifactIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdBuilder() { - - onChanged(); - return getArtifactIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if (artifactIdBuilder_ != null) { - return artifactIdBuilder_.getMessageOrBuilder(); - } else { - return artifactId_ == null ? - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactId_; - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdFieldBuilder() { - if (artifactIdBuilder_ == null) { - artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - getArtifactId(), - getParentForChildren(), - isClean()); - artifactId_ = null; - } - return artifactIdBuilder_; - } - - private java.lang.Object value_ = ""; - /** - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - - private boolean overwrite_ ; - /** - *
-       * If true, and another version already has the specified kind/value, set this version instead
-       * 
- * - * bool overwrite = 3; - */ - public boolean getOverwrite() { - return overwrite_; - } - /** - *
-       * If true, and another version already has the specified kind/value, set this version instead
-       * 
- * - * bool overwrite = 3; - */ - public Builder setOverwrite(boolean value) { - - overwrite_ = value; - onChanged(); - return this; - } - /** - *
-       * If true, and another version already has the specified kind/value, set this version instead
-       * 
- * - * bool overwrite = 3; - */ - public Builder clearOverwrite() { - - overwrite_ = false; - onChanged(); - return this; - } - @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.artifact.AddTagRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.AddTagRequest) - private static final flyteidl.artifact.Artifacts.AddTagRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.AddTagRequest(); - } - - public static flyteidl.artifact.Artifacts.AddTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddTagRequest(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.artifact.Artifacts.AddTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AddTagResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.AddTagResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.artifact.AddTagResponse} - */ - public static final class AddTagResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.AddTagResponse) - AddTagResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use AddTagResponse.newBuilder() to construct. - private AddTagResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AddTagResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AddTagResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.AddTagResponse.class, flyteidl.artifact.Artifacts.AddTagResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.artifact.Artifacts.AddTagResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.AddTagResponse other = (flyteidl.artifact.Artifacts.AddTagResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.AddTagResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagResponse 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.artifact.Artifacts.AddTagResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagResponse 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.artifact.Artifacts.AddTagResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.AddTagResponse 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.artifact.Artifacts.AddTagResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.AddTagResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.AddTagResponse) - flyteidl.artifact.Artifacts.AddTagResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.AddTagResponse.class, flyteidl.artifact.Artifacts.AddTagResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.AddTagResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_AddTagResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.AddTagResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagResponse build() { - flyteidl.artifact.Artifacts.AddTagResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.AddTagResponse buildPartial() { - flyteidl.artifact.Artifacts.AddTagResponse result = new flyteidl.artifact.Artifacts.AddTagResponse(this); - 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.artifact.Artifacts.AddTagResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.AddTagResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.AddTagResponse other) { - if (other == flyteidl.artifact.Artifacts.AddTagResponse.getDefaultInstance()) return this; - 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.artifact.Artifacts.AddTagResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.AddTagResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.artifact.AddTagResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.AddTagResponse) - private static final flyteidl.artifact.Artifacts.AddTagResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.AddTagResponse(); - } - - public static flyteidl.artifact.Artifacts.AddTagResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddTagResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddTagResponse(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.artifact.Artifacts.AddTagResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateTriggerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateTriggerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - boolean hasTriggerLaunchPlan(); - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getTriggerLaunchPlan(); - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getTriggerLaunchPlanOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.CreateTriggerRequest} - */ - public static final class CreateTriggerRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateTriggerRequest) - CreateTriggerRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTriggerRequest.newBuilder() to construct. - private CreateTriggerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTriggerRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTriggerRequest( - 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.LaunchPlanOuterClass.LaunchPlan.Builder subBuilder = null; - if (triggerLaunchPlan_ != null) { - subBuilder = triggerLaunchPlan_.toBuilder(); - } - triggerLaunchPlan_ = input.readMessage(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(triggerLaunchPlan_); - triggerLaunchPlan_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateTriggerRequest.class, flyteidl.artifact.Artifacts.CreateTriggerRequest.Builder.class); - } - - public static final int TRIGGER_LAUNCH_PLAN_FIELD_NUMBER = 1; - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlan triggerLaunchPlan_; - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public boolean hasTriggerLaunchPlan() { - return triggerLaunchPlan_ != null; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getTriggerLaunchPlan() { - return triggerLaunchPlan_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance() : triggerLaunchPlan_; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getTriggerLaunchPlanOrBuilder() { - return getTriggerLaunchPlan(); - } - - 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 (triggerLaunchPlan_ != null) { - output.writeMessage(1, getTriggerLaunchPlan()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (triggerLaunchPlan_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTriggerLaunchPlan()); - } - 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.artifact.Artifacts.CreateTriggerRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.CreateTriggerRequest other = (flyteidl.artifact.Artifacts.CreateTriggerRequest) obj; - - if (hasTriggerLaunchPlan() != other.hasTriggerLaunchPlan()) return false; - if (hasTriggerLaunchPlan()) { - if (!getTriggerLaunchPlan() - .equals(other.getTriggerLaunchPlan())) 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 (hasTriggerLaunchPlan()) { - hash = (37 * hash) + TRIGGER_LAUNCH_PLAN_FIELD_NUMBER; - hash = (53 * hash) + getTriggerLaunchPlan().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest 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.artifact.Artifacts.CreateTriggerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest 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.artifact.Artifacts.CreateTriggerRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerRequest 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.artifact.Artifacts.CreateTriggerRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.CreateTriggerRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateTriggerRequest) - flyteidl.artifact.Artifacts.CreateTriggerRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateTriggerRequest.class, flyteidl.artifact.Artifacts.CreateTriggerRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.CreateTriggerRequest.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 (triggerLaunchPlanBuilder_ == null) { - triggerLaunchPlan_ = null; - } else { - triggerLaunchPlan_ = null; - triggerLaunchPlanBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CreateTriggerRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerRequest build() { - flyteidl.artifact.Artifacts.CreateTriggerRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerRequest buildPartial() { - flyteidl.artifact.Artifacts.CreateTriggerRequest result = new flyteidl.artifact.Artifacts.CreateTriggerRequest(this); - if (triggerLaunchPlanBuilder_ == null) { - result.triggerLaunchPlan_ = triggerLaunchPlan_; - } else { - result.triggerLaunchPlan_ = triggerLaunchPlanBuilder_.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.artifact.Artifacts.CreateTriggerRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.CreateTriggerRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateTriggerRequest other) { - if (other == flyteidl.artifact.Artifacts.CreateTriggerRequest.getDefaultInstance()) return this; - if (other.hasTriggerLaunchPlan()) { - mergeTriggerLaunchPlan(other.getTriggerLaunchPlan()); - } - 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.artifact.Artifacts.CreateTriggerRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CreateTriggerRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.admin.LaunchPlanOuterClass.LaunchPlan triggerLaunchPlan_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> triggerLaunchPlanBuilder_; - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public boolean hasTriggerLaunchPlan() { - return triggerLaunchPlanBuilder_ != null || triggerLaunchPlan_ != null; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan getTriggerLaunchPlan() { - if (triggerLaunchPlanBuilder_ == null) { - return triggerLaunchPlan_ == null ? flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance() : triggerLaunchPlan_; - } else { - return triggerLaunchPlanBuilder_.getMessage(); - } - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public Builder setTriggerLaunchPlan(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (triggerLaunchPlanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - triggerLaunchPlan_ = value; - onChanged(); - } else { - triggerLaunchPlanBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public Builder setTriggerLaunchPlan( - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder builderForValue) { - if (triggerLaunchPlanBuilder_ == null) { - triggerLaunchPlan_ = builderForValue.build(); - onChanged(); - } else { - triggerLaunchPlanBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public Builder mergeTriggerLaunchPlan(flyteidl.admin.LaunchPlanOuterClass.LaunchPlan value) { - if (triggerLaunchPlanBuilder_ == null) { - if (triggerLaunchPlan_ != null) { - triggerLaunchPlan_ = - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.newBuilder(triggerLaunchPlan_).mergeFrom(value).buildPartial(); - } else { - triggerLaunchPlan_ = value; - } - onChanged(); - } else { - triggerLaunchPlanBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public Builder clearTriggerLaunchPlan() { - if (triggerLaunchPlanBuilder_ == null) { - triggerLaunchPlan_ = null; - onChanged(); - } else { - triggerLaunchPlan_ = null; - triggerLaunchPlanBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder getTriggerLaunchPlanBuilder() { - - onChanged(); - return getTriggerLaunchPlanFieldBuilder().getBuilder(); - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - public flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder getTriggerLaunchPlanOrBuilder() { - if (triggerLaunchPlanBuilder_ != null) { - return triggerLaunchPlanBuilder_.getMessageOrBuilder(); - } else { - return triggerLaunchPlan_ == null ? - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.getDefaultInstance() : triggerLaunchPlan_; - } - } - /** - * .flyteidl.admin.LaunchPlan trigger_launch_plan = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder> - getTriggerLaunchPlanFieldBuilder() { - if (triggerLaunchPlanBuilder_ == null) { - triggerLaunchPlanBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.admin.LaunchPlanOuterClass.LaunchPlan, flyteidl.admin.LaunchPlanOuterClass.LaunchPlan.Builder, flyteidl.admin.LaunchPlanOuterClass.LaunchPlanOrBuilder>( - getTriggerLaunchPlan(), - getParentForChildren(), - isClean()); - triggerLaunchPlan_ = null; - } - return triggerLaunchPlanBuilder_; - } - @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.artifact.CreateTriggerRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateTriggerRequest) - private static final flyteidl.artifact.Artifacts.CreateTriggerRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CreateTriggerRequest(); - } - - public static flyteidl.artifact.Artifacts.CreateTriggerRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTriggerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTriggerRequest(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.artifact.Artifacts.CreateTriggerRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateTriggerResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.CreateTriggerResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.artifact.CreateTriggerResponse} - */ - public static final class CreateTriggerResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.CreateTriggerResponse) - CreateTriggerResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateTriggerResponse.newBuilder() to construct. - private CreateTriggerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateTriggerResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateTriggerResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateTriggerResponse.class, flyteidl.artifact.Artifacts.CreateTriggerResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.artifact.Artifacts.CreateTriggerResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.CreateTriggerResponse other = (flyteidl.artifact.Artifacts.CreateTriggerResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse 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.artifact.Artifacts.CreateTriggerResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse 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.artifact.Artifacts.CreateTriggerResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.CreateTriggerResponse 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.artifact.Artifacts.CreateTriggerResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.CreateTriggerResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.CreateTriggerResponse) - flyteidl.artifact.Artifacts.CreateTriggerResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.CreateTriggerResponse.class, flyteidl.artifact.Artifacts.CreateTriggerResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.CreateTriggerResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.CreateTriggerResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerResponse build() { - flyteidl.artifact.Artifacts.CreateTriggerResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.CreateTriggerResponse buildPartial() { - flyteidl.artifact.Artifacts.CreateTriggerResponse result = new flyteidl.artifact.Artifacts.CreateTriggerResponse(this); - 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.artifact.Artifacts.CreateTriggerResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.CreateTriggerResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.CreateTriggerResponse other) { - if (other == flyteidl.artifact.Artifacts.CreateTriggerResponse.getDefaultInstance()) return this; - 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.artifact.Artifacts.CreateTriggerResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.CreateTriggerResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.artifact.CreateTriggerResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.CreateTriggerResponse) - private static final flyteidl.artifact.Artifacts.CreateTriggerResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.CreateTriggerResponse(); - } - - public static flyteidl.artifact.Artifacts.CreateTriggerResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTriggerResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateTriggerResponse(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.artifact.Artifacts.CreateTriggerResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteTriggerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.DeleteTriggerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - boolean hasTriggerId(); - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTriggerId(); - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.DeleteTriggerRequest} - */ - public static final class DeleteTriggerRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.DeleteTriggerRequest) - DeleteTriggerRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTriggerRequest.newBuilder() to construct. - private DeleteTriggerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTriggerRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteTriggerRequest( - 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 (triggerId_ != null) { - subBuilder = triggerId_.toBuilder(); - } - triggerId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(triggerId_); - triggerId_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.DeleteTriggerRequest.class, flyteidl.artifact.Artifacts.DeleteTriggerRequest.Builder.class); - } - - public static final int TRIGGER_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier triggerId_; - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public boolean hasTriggerId() { - return triggerId_ != null; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTriggerId() { - return triggerId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder() { - return getTriggerId(); - } - - 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 (triggerId_ != null) { - output.writeMessage(1, getTriggerId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (triggerId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTriggerId()); - } - 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.artifact.Artifacts.DeleteTriggerRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.DeleteTriggerRequest other = (flyteidl.artifact.Artifacts.DeleteTriggerRequest) obj; - - if (hasTriggerId() != other.hasTriggerId()) return false; - if (hasTriggerId()) { - if (!getTriggerId() - .equals(other.getTriggerId())) 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 (hasTriggerId()) { - hash = (37 * hash) + TRIGGER_ID_FIELD_NUMBER; - hash = (53 * hash) + getTriggerId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest 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.artifact.Artifacts.DeleteTriggerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest 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.artifact.Artifacts.DeleteTriggerRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest 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.artifact.Artifacts.DeleteTriggerRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.DeleteTriggerRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.DeleteTriggerRequest) - flyteidl.artifact.Artifacts.DeleteTriggerRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.DeleteTriggerRequest.class, flyteidl.artifact.Artifacts.DeleteTriggerRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.DeleteTriggerRequest.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 (triggerIdBuilder_ == null) { - triggerId_ = null; - } else { - triggerId_ = null; - triggerIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.DeleteTriggerRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerRequest build() { - flyteidl.artifact.Artifacts.DeleteTriggerRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerRequest buildPartial() { - flyteidl.artifact.Artifacts.DeleteTriggerRequest result = new flyteidl.artifact.Artifacts.DeleteTriggerRequest(this); - if (triggerIdBuilder_ == null) { - result.triggerId_ = triggerId_; - } else { - result.triggerId_ = triggerIdBuilder_.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.artifact.Artifacts.DeleteTriggerRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.DeleteTriggerRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.DeleteTriggerRequest other) { - if (other == flyteidl.artifact.Artifacts.DeleteTriggerRequest.getDefaultInstance()) return this; - if (other.hasTriggerId()) { - mergeTriggerId(other.getTriggerId()); - } - 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.artifact.Artifacts.DeleteTriggerRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.DeleteTriggerRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier triggerId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> triggerIdBuilder_; - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public boolean hasTriggerId() { - return triggerIdBuilder_ != null || triggerId_ != null; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTriggerId() { - if (triggerIdBuilder_ == null) { - return triggerId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } else { - return triggerIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder setTriggerId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (triggerIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - triggerId_ = value; - onChanged(); - } else { - triggerIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder setTriggerId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (triggerIdBuilder_ == null) { - triggerId_ = builderForValue.build(); - onChanged(); - } else { - triggerIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder mergeTriggerId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (triggerIdBuilder_ == null) { - if (triggerId_ != null) { - triggerId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(triggerId_).mergeFrom(value).buildPartial(); - } else { - triggerId_ = value; - } - onChanged(); - } else { - triggerIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder clearTriggerId() { - if (triggerIdBuilder_ == null) { - triggerId_ = null; - onChanged(); - } else { - triggerId_ = null; - triggerIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTriggerIdBuilder() { - - onChanged(); - return getTriggerIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder() { - if (triggerIdBuilder_ != null) { - return triggerIdBuilder_.getMessageOrBuilder(); - } else { - return triggerId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } - } - /** - * .flyteidl.core.Identifier trigger_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTriggerIdFieldBuilder() { - if (triggerIdBuilder_ == null) { - triggerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTriggerId(), - getParentForChildren(), - isClean()); - triggerId_ = null; - } - return triggerIdBuilder_; - } - @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.artifact.DeleteTriggerRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.DeleteTriggerRequest) - private static final flyteidl.artifact.Artifacts.DeleteTriggerRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.DeleteTriggerRequest(); - } - - public static flyteidl.artifact.Artifacts.DeleteTriggerRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTriggerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTriggerRequest(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.artifact.Artifacts.DeleteTriggerRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DeleteTriggerResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.DeleteTriggerResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.artifact.DeleteTriggerResponse} - */ - public static final class DeleteTriggerResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.DeleteTriggerResponse) - DeleteTriggerResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use DeleteTriggerResponse.newBuilder() to construct. - private DeleteTriggerResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteTriggerResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteTriggerResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.DeleteTriggerResponse.class, flyteidl.artifact.Artifacts.DeleteTriggerResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.artifact.Artifacts.DeleteTriggerResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.DeleteTriggerResponse other = (flyteidl.artifact.Artifacts.DeleteTriggerResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse 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.artifact.Artifacts.DeleteTriggerResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse 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.artifact.Artifacts.DeleteTriggerResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse 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.artifact.Artifacts.DeleteTriggerResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.DeleteTriggerResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.DeleteTriggerResponse) - flyteidl.artifact.Artifacts.DeleteTriggerResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.DeleteTriggerResponse.class, flyteidl.artifact.Artifacts.DeleteTriggerResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.DeleteTriggerResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.DeleteTriggerResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerResponse build() { - flyteidl.artifact.Artifacts.DeleteTriggerResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.DeleteTriggerResponse buildPartial() { - flyteidl.artifact.Artifacts.DeleteTriggerResponse result = new flyteidl.artifact.Artifacts.DeleteTriggerResponse(this); - 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.artifact.Artifacts.DeleteTriggerResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.DeleteTriggerResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.DeleteTriggerResponse other) { - if (other == flyteidl.artifact.Artifacts.DeleteTriggerResponse.getDefaultInstance()) return this; - 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.artifact.Artifacts.DeleteTriggerResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.DeleteTriggerResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.artifact.DeleteTriggerResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.DeleteTriggerResponse) - private static final flyteidl.artifact.Artifacts.DeleteTriggerResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.DeleteTriggerResponse(); - } - - public static flyteidl.artifact.Artifacts.DeleteTriggerResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTriggerResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteTriggerResponse(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.artifact.Artifacts.DeleteTriggerResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactProducerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactProducer) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - boolean hasEntityId(); - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getEntityId(); - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder(); - - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - boolean hasOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMap getOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactProducer} - */ - public static final class ArtifactProducer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactProducer) - ArtifactProducerOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactProducer.newBuilder() to construct. - private ArtifactProducer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactProducer() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactProducer( - 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 (entityId_ != null) { - subBuilder = entityId_.toBuilder(); - } - entityId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityId_); - entityId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactProducer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactProducer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactProducer.class, flyteidl.artifact.Artifacts.ArtifactProducer.Builder.class); - } - - public static final int ENTITY_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier entityId_; - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public boolean hasEntityId() { - return entityId_ != null; - } - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getEntityId() { - return entityId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } - /** - *
-     * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-     * Admin's domain.
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder() { - return getEntityId(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.VariableMap outputs_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (entityId_ != null) { - output.writeMessage(1, getEntityId()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntityId()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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.artifact.Artifacts.ArtifactProducer)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ArtifactProducer other = (flyteidl.artifact.Artifacts.ArtifactProducer) obj; - - if (hasEntityId() != other.hasEntityId()) return false; - if (hasEntityId()) { - if (!getEntityId() - .equals(other.getEntityId())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasEntityId()) { - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer 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.artifact.Artifacts.ArtifactProducer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer 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.artifact.Artifacts.ArtifactProducer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactProducer 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.artifact.Artifacts.ArtifactProducer 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactProducer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactProducer) - flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactProducer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactProducer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactProducer.class, flyteidl.artifact.Artifacts.ArtifactProducer.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ArtifactProducer.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 (entityIdBuilder_ == null) { - entityId_ = null; - } else { - entityId_ = null; - entityIdBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactProducer_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactProducer getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ArtifactProducer.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactProducer build() { - flyteidl.artifact.Artifacts.ArtifactProducer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactProducer buildPartial() { - flyteidl.artifact.Artifacts.ArtifactProducer result = new flyteidl.artifact.Artifacts.ArtifactProducer(this); - if (entityIdBuilder_ == null) { - result.entityId_ = entityId_; - } else { - result.entityId_ = entityIdBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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.artifact.Artifacts.ArtifactProducer) { - return mergeFrom((flyteidl.artifact.Artifacts.ArtifactProducer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactProducer other) { - if (other == flyteidl.artifact.Artifacts.ArtifactProducer.getDefaultInstance()) return this; - if (other.hasEntityId()) { - mergeEntityId(other.getEntityId()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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.artifact.Artifacts.ArtifactProducer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ArtifactProducer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier entityId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> entityIdBuilder_; - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public boolean hasEntityId() { - return entityIdBuilder_ != null || entityId_ != null; - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getEntityId() { - if (entityIdBuilder_ == null) { - return entityId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } else { - return entityIdBuilder_.getMessage(); - } - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder setEntityId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (entityIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityId_ = value; - onChanged(); - } else { - entityIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder setEntityId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (entityIdBuilder_ == null) { - entityId_ = builderForValue.build(); - onChanged(); - } else { - entityIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder mergeEntityId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (entityIdBuilder_ == null) { - if (entityId_ != null) { - entityId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(entityId_).mergeFrom(value).buildPartial(); - } else { - entityId_ = value; - } - onChanged(); - } else { - entityIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder clearEntityId() { - if (entityIdBuilder_ == null) { - entityId_ = null; - onChanged(); - } else { - entityId_ = null; - entityIdBuilder_ = null; - } - - return this; - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getEntityIdBuilder() { - - onChanged(); - return getEntityIdFieldBuilder().getBuilder(); - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder() { - if (entityIdBuilder_ != null) { - return entityIdBuilder_.getMessageOrBuilder(); - } else { - return entityId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } - } - /** - *
-       * These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in
-       * Admin's domain.
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getEntityIdFieldBuilder() { - if (entityIdBuilder_ == null) { - entityIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getEntityId(), - getParentForChildren(), - isClean()); - entityId_ = null; - } - return entityIdBuilder_; - } - - private flyteidl.core.Interface.VariableMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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.artifact.ArtifactProducer) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactProducer) - private static final flyteidl.artifact.Artifacts.ArtifactProducer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactProducer(); - } - - public static flyteidl.artifact.Artifacts.ArtifactProducer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactProducer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactProducer(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.artifact.Artifacts.ArtifactProducer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RegisterProducerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.RegisterProducerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - java.util.List - getProducersList(); - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - flyteidl.artifact.Artifacts.ArtifactProducer getProducers(int index); - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - int getProducersCount(); - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - java.util.List - getProducersOrBuilderList(); - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder getProducersOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterProducerRequest} - */ - public static final class RegisterProducerRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.RegisterProducerRequest) - RegisterProducerRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterProducerRequest.newBuilder() to construct. - private RegisterProducerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RegisterProducerRequest() { - producers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterProducerRequest( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - producers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - producers_.add( - input.readMessage(flyteidl.artifact.Artifacts.ArtifactProducer.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - producers_ = java.util.Collections.unmodifiableList(producers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterProducerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterProducerRequest.class, flyteidl.artifact.Artifacts.RegisterProducerRequest.Builder.class); - } - - public static final int PRODUCERS_FIELD_NUMBER = 1; - private java.util.List producers_; - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public java.util.List getProducersList() { - return producers_; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public java.util.List - getProducersOrBuilderList() { - return producers_; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public int getProducersCount() { - return producers_.size(); - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducer getProducers(int index) { - return producers_.get(index); - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder getProducersOrBuilder( - int index) { - return producers_.get(index); - } - - 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 { - for (int i = 0; i < producers_.size(); i++) { - output.writeMessage(1, producers_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < producers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, producers_.get(i)); - } - 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.artifact.Artifacts.RegisterProducerRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.RegisterProducerRequest other = (flyteidl.artifact.Artifacts.RegisterProducerRequest) obj; - - if (!getProducersList() - .equals(other.getProducersList())) 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 (getProducersCount() > 0) { - hash = (37 * hash) + PRODUCERS_FIELD_NUMBER; - hash = (53 * hash) + getProducersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest 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.artifact.Artifacts.RegisterProducerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest 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.artifact.Artifacts.RegisterProducerRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterProducerRequest 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.artifact.Artifacts.RegisterProducerRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterProducerRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.RegisterProducerRequest) - flyteidl.artifact.Artifacts.RegisterProducerRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterProducerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterProducerRequest.class, flyteidl.artifact.Artifacts.RegisterProducerRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.RegisterProducerRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getProducersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (producersBuilder_ == null) { - producers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - producersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterProducerRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.RegisterProducerRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterProducerRequest build() { - flyteidl.artifact.Artifacts.RegisterProducerRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterProducerRequest buildPartial() { - flyteidl.artifact.Artifacts.RegisterProducerRequest result = new flyteidl.artifact.Artifacts.RegisterProducerRequest(this); - int from_bitField0_ = bitField0_; - if (producersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - producers_ = java.util.Collections.unmodifiableList(producers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.producers_ = producers_; - } else { - result.producers_ = producersBuilder_.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.artifact.Artifacts.RegisterProducerRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.RegisterProducerRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.RegisterProducerRequest other) { - if (other == flyteidl.artifact.Artifacts.RegisterProducerRequest.getDefaultInstance()) return this; - if (producersBuilder_ == null) { - if (!other.producers_.isEmpty()) { - if (producers_.isEmpty()) { - producers_ = other.producers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureProducersIsMutable(); - producers_.addAll(other.producers_); - } - onChanged(); - } - } else { - if (!other.producers_.isEmpty()) { - if (producersBuilder_.isEmpty()) { - producersBuilder_.dispose(); - producersBuilder_ = null; - producers_ = other.producers_; - bitField0_ = (bitField0_ & ~0x00000001); - producersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getProducersFieldBuilder() : null; - } else { - producersBuilder_.addAllMessages(other.producers_); - } - } - } - 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.artifact.Artifacts.RegisterProducerRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.RegisterProducerRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List producers_ = - java.util.Collections.emptyList(); - private void ensureProducersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - producers_ = new java.util.ArrayList(producers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactProducer, flyteidl.artifact.Artifacts.ArtifactProducer.Builder, flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder> producersBuilder_; - - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public java.util.List getProducersList() { - if (producersBuilder_ == null) { - return java.util.Collections.unmodifiableList(producers_); - } else { - return producersBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public int getProducersCount() { - if (producersBuilder_ == null) { - return producers_.size(); - } else { - return producersBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducer getProducers(int index) { - if (producersBuilder_ == null) { - return producers_.get(index); - } else { - return producersBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder setProducers( - int index, flyteidl.artifact.Artifacts.ArtifactProducer value) { - if (producersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProducersIsMutable(); - producers_.set(index, value); - onChanged(); - } else { - producersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder setProducers( - int index, flyteidl.artifact.Artifacts.ArtifactProducer.Builder builderForValue) { - if (producersBuilder_ == null) { - ensureProducersIsMutable(); - producers_.set(index, builderForValue.build()); - onChanged(); - } else { - producersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder addProducers(flyteidl.artifact.Artifacts.ArtifactProducer value) { - if (producersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProducersIsMutable(); - producers_.add(value); - onChanged(); - } else { - producersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder addProducers( - int index, flyteidl.artifact.Artifacts.ArtifactProducer value) { - if (producersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureProducersIsMutable(); - producers_.add(index, value); - onChanged(); - } else { - producersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder addProducers( - flyteidl.artifact.Artifacts.ArtifactProducer.Builder builderForValue) { - if (producersBuilder_ == null) { - ensureProducersIsMutable(); - producers_.add(builderForValue.build()); - onChanged(); - } else { - producersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder addProducers( - int index, flyteidl.artifact.Artifacts.ArtifactProducer.Builder builderForValue) { - if (producersBuilder_ == null) { - ensureProducersIsMutable(); - producers_.add(index, builderForValue.build()); - onChanged(); - } else { - producersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder addAllProducers( - java.lang.Iterable values) { - if (producersBuilder_ == null) { - ensureProducersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, producers_); - onChanged(); - } else { - producersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder clearProducers() { - if (producersBuilder_ == null) { - producers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - producersBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public Builder removeProducers(int index) { - if (producersBuilder_ == null) { - ensureProducersIsMutable(); - producers_.remove(index); - onChanged(); - } else { - producersBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducer.Builder getProducersBuilder( - int index) { - return getProducersFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder getProducersOrBuilder( - int index) { - if (producersBuilder_ == null) { - return producers_.get(index); } else { - return producersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public java.util.List - getProducersOrBuilderList() { - if (producersBuilder_ != null) { - return producersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(producers_); - } - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducer.Builder addProducersBuilder() { - return getProducersFieldBuilder().addBuilder( - flyteidl.artifact.Artifacts.ArtifactProducer.getDefaultInstance()); - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactProducer.Builder addProducersBuilder( - int index) { - return getProducersFieldBuilder().addBuilder( - index, flyteidl.artifact.Artifacts.ArtifactProducer.getDefaultInstance()); - } - /** - * repeated .flyteidl.artifact.ArtifactProducer producers = 1; - */ - public java.util.List - getProducersBuilderList() { - return getProducersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactProducer, flyteidl.artifact.Artifacts.ArtifactProducer.Builder, flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder> - getProducersFieldBuilder() { - if (producersBuilder_ == null) { - producersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactProducer, flyteidl.artifact.Artifacts.ArtifactProducer.Builder, flyteidl.artifact.Artifacts.ArtifactProducerOrBuilder>( - producers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - producers_ = null; - } - return producersBuilder_; - } - @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.artifact.RegisterProducerRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterProducerRequest) - private static final flyteidl.artifact.Artifacts.RegisterProducerRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.RegisterProducerRequest(); - } - - public static flyteidl.artifact.Artifacts.RegisterProducerRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterProducerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisterProducerRequest(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.artifact.Artifacts.RegisterProducerRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactConsumerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ArtifactConsumer) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - boolean hasEntityId(); - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getEntityId(); - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder(); - - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - boolean hasInputs(); - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - flyteidl.core.Interface.ParameterMap getInputs(); - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - flyteidl.core.Interface.ParameterMapOrBuilder getInputsOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactConsumer} - */ - public static final class ArtifactConsumer extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ArtifactConsumer) - ArtifactConsumerOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactConsumer.newBuilder() to construct. - private ArtifactConsumer(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactConsumer() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactConsumer( - 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 (entityId_ != null) { - subBuilder = entityId_.toBuilder(); - } - entityId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entityId_); - entityId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Interface.ParameterMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Interface.ParameterMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = 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.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactConsumer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactConsumer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactConsumer.class, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder.class); - } - - public static final int ENTITY_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier entityId_; - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public boolean hasEntityId() { - return entityId_ != null; - } - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getEntityId() { - return entityId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } - /** - *
-     * These should all be launch plan IDs
-     * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder() { - return getEntityId(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.ParameterMap inputs_; - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getInputs() { - return inputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : inputs_; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - 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 (entityId_ != null) { - output.writeMessage(1, getEntityId()); - } - if (inputs_ != null) { - output.writeMessage(2, getInputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entityId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEntityId()); - } - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputs()); - } - 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.artifact.Artifacts.ArtifactConsumer)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ArtifactConsumer other = (flyteidl.artifact.Artifacts.ArtifactConsumer) obj; - - if (hasEntityId() != other.hasEntityId()) return false; - if (hasEntityId()) { - if (!getEntityId() - .equals(other.getEntityId())) return false; - } - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) 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 (hasEntityId()) { - hash = (37 * hash) + ENTITY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntityId().hashCode(); - } - if (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer 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.artifact.Artifacts.ArtifactConsumer parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer 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.artifact.Artifacts.ArtifactConsumer parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ArtifactConsumer 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.artifact.Artifacts.ArtifactConsumer 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ArtifactConsumer} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ArtifactConsumer) - flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactConsumer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactConsumer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ArtifactConsumer.class, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ArtifactConsumer.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 (entityIdBuilder_ == null) { - entityId_ = null; - } else { - entityId_ = null; - entityIdBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ArtifactConsumer_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactConsumer getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ArtifactConsumer.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactConsumer build() { - flyteidl.artifact.Artifacts.ArtifactConsumer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ArtifactConsumer buildPartial() { - flyteidl.artifact.Artifacts.ArtifactConsumer result = new flyteidl.artifact.Artifacts.ArtifactConsumer(this); - if (entityIdBuilder_ == null) { - result.entityId_ = entityId_; - } else { - result.entityId_ = entityIdBuilder_.build(); - } - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.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.artifact.Artifacts.ArtifactConsumer) { - return mergeFrom((flyteidl.artifact.Artifacts.ArtifactConsumer)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ArtifactConsumer other) { - if (other == flyteidl.artifact.Artifacts.ArtifactConsumer.getDefaultInstance()) return this; - if (other.hasEntityId()) { - mergeEntityId(other.getEntityId()); - } - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - 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.artifact.Artifacts.ArtifactConsumer parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ArtifactConsumer) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier entityId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> entityIdBuilder_; - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public boolean hasEntityId() { - return entityIdBuilder_ != null || entityId_ != null; - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getEntityId() { - if (entityIdBuilder_ == null) { - return entityId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } else { - return entityIdBuilder_.getMessage(); - } - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder setEntityId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (entityIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entityId_ = value; - onChanged(); - } else { - entityIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder setEntityId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (entityIdBuilder_ == null) { - entityId_ = builderForValue.build(); - onChanged(); - } else { - entityIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder mergeEntityId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (entityIdBuilder_ == null) { - if (entityId_ != null) { - entityId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(entityId_).mergeFrom(value).buildPartial(); - } else { - entityId_ = value; - } - onChanged(); - } else { - entityIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public Builder clearEntityId() { - if (entityIdBuilder_ == null) { - entityId_ = null; - onChanged(); - } else { - entityId_ = null; - entityIdBuilder_ = null; - } - - return this; - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getEntityIdBuilder() { - - onChanged(); - return getEntityIdFieldBuilder().getBuilder(); - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getEntityIdOrBuilder() { - if (entityIdBuilder_ != null) { - return entityIdBuilder_.getMessageOrBuilder(); - } else { - return entityId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : entityId_; - } - } - /** - *
-       * These should all be launch plan IDs
-       * 
- * - * .flyteidl.core.Identifier entity_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getEntityIdFieldBuilder() { - if (entityIdBuilder_ == null) { - entityIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getEntityId(), - getParentForChildren(), - isClean()); - entityId_ = null; - } - return entityIdBuilder_; - } - - private flyteidl.core.Interface.ParameterMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> inputsBuilder_; - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Interface.ParameterMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public Builder setInputs(flyteidl.core.Interface.ParameterMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public Builder setInputs( - flyteidl.core.Interface.ParameterMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public Builder mergeInputs(flyteidl.core.Interface.ParameterMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Interface.ParameterMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public flyteidl.core.Interface.ParameterMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - public flyteidl.core.Interface.ParameterMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Interface.ParameterMap.getDefaultInstance() : inputs_; - } - } - /** - * .flyteidl.core.ParameterMap inputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.ParameterMap, flyteidl.core.Interface.ParameterMap.Builder, flyteidl.core.Interface.ParameterMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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.artifact.ArtifactConsumer) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ArtifactConsumer) - private static final flyteidl.artifact.Artifacts.ArtifactConsumer DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ArtifactConsumer(); - } - - public static flyteidl.artifact.Artifacts.ArtifactConsumer getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactConsumer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactConsumer(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.artifact.Artifacts.ArtifactConsumer getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RegisterConsumerRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.RegisterConsumerRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - java.util.List - getConsumersList(); - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - flyteidl.artifact.Artifacts.ArtifactConsumer getConsumers(int index); - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - int getConsumersCount(); - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - java.util.List - getConsumersOrBuilderList(); - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder getConsumersOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterConsumerRequest} - */ - public static final class RegisterConsumerRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.RegisterConsumerRequest) - RegisterConsumerRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterConsumerRequest.newBuilder() to construct. - private RegisterConsumerRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RegisterConsumerRequest() { - consumers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterConsumerRequest( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - consumers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - consumers_.add( - input.readMessage(flyteidl.artifact.Artifacts.ArtifactConsumer.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - consumers_ = java.util.Collections.unmodifiableList(consumers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterConsumerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterConsumerRequest.class, flyteidl.artifact.Artifacts.RegisterConsumerRequest.Builder.class); - } - - public static final int CONSUMERS_FIELD_NUMBER = 1; - private java.util.List consumers_; - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public java.util.List getConsumersList() { - return consumers_; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public java.util.List - getConsumersOrBuilderList() { - return consumers_; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public int getConsumersCount() { - return consumers_.size(); - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumer getConsumers(int index) { - return consumers_.get(index); - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder getConsumersOrBuilder( - int index) { - return consumers_.get(index); - } - - 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 { - for (int i = 0; i < consumers_.size(); i++) { - output.writeMessage(1, consumers_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < consumers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, consumers_.get(i)); - } - 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.artifact.Artifacts.RegisterConsumerRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.RegisterConsumerRequest other = (flyteidl.artifact.Artifacts.RegisterConsumerRequest) obj; - - if (!getConsumersList() - .equals(other.getConsumersList())) 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 (getConsumersCount() > 0) { - hash = (37 * hash) + CONSUMERS_FIELD_NUMBER; - hash = (53 * hash) + getConsumersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest 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.artifact.Artifacts.RegisterConsumerRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest 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.artifact.Artifacts.RegisterConsumerRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest 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.artifact.Artifacts.RegisterConsumerRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterConsumerRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.RegisterConsumerRequest) - flyteidl.artifact.Artifacts.RegisterConsumerRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterConsumerRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterConsumerRequest.class, flyteidl.artifact.Artifacts.RegisterConsumerRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.RegisterConsumerRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getConsumersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (consumersBuilder_ == null) { - consumers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - consumersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterConsumerRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.RegisterConsumerRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterConsumerRequest build() { - flyteidl.artifact.Artifacts.RegisterConsumerRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterConsumerRequest buildPartial() { - flyteidl.artifact.Artifacts.RegisterConsumerRequest result = new flyteidl.artifact.Artifacts.RegisterConsumerRequest(this); - int from_bitField0_ = bitField0_; - if (consumersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - consumers_ = java.util.Collections.unmodifiableList(consumers_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.consumers_ = consumers_; - } else { - result.consumers_ = consumersBuilder_.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.artifact.Artifacts.RegisterConsumerRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.RegisterConsumerRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.RegisterConsumerRequest other) { - if (other == flyteidl.artifact.Artifacts.RegisterConsumerRequest.getDefaultInstance()) return this; - if (consumersBuilder_ == null) { - if (!other.consumers_.isEmpty()) { - if (consumers_.isEmpty()) { - consumers_ = other.consumers_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConsumersIsMutable(); - consumers_.addAll(other.consumers_); - } - onChanged(); - } - } else { - if (!other.consumers_.isEmpty()) { - if (consumersBuilder_.isEmpty()) { - consumersBuilder_.dispose(); - consumersBuilder_ = null; - consumers_ = other.consumers_; - bitField0_ = (bitField0_ & ~0x00000001); - consumersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConsumersFieldBuilder() : null; - } else { - consumersBuilder_.addAllMessages(other.consumers_); - } - } - } - 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.artifact.Artifacts.RegisterConsumerRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.RegisterConsumerRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List consumers_ = - java.util.Collections.emptyList(); - private void ensureConsumersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - consumers_ = new java.util.ArrayList(consumers_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactConsumer, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder, flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder> consumersBuilder_; - - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public java.util.List getConsumersList() { - if (consumersBuilder_ == null) { - return java.util.Collections.unmodifiableList(consumers_); - } else { - return consumersBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public int getConsumersCount() { - if (consumersBuilder_ == null) { - return consumers_.size(); - } else { - return consumersBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumer getConsumers(int index) { - if (consumersBuilder_ == null) { - return consumers_.get(index); - } else { - return consumersBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder setConsumers( - int index, flyteidl.artifact.Artifacts.ArtifactConsumer value) { - if (consumersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsumersIsMutable(); - consumers_.set(index, value); - onChanged(); - } else { - consumersBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder setConsumers( - int index, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder builderForValue) { - if (consumersBuilder_ == null) { - ensureConsumersIsMutable(); - consumers_.set(index, builderForValue.build()); - onChanged(); - } else { - consumersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder addConsumers(flyteidl.artifact.Artifacts.ArtifactConsumer value) { - if (consumersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsumersIsMutable(); - consumers_.add(value); - onChanged(); - } else { - consumersBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder addConsumers( - int index, flyteidl.artifact.Artifacts.ArtifactConsumer value) { - if (consumersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConsumersIsMutable(); - consumers_.add(index, value); - onChanged(); - } else { - consumersBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder addConsumers( - flyteidl.artifact.Artifacts.ArtifactConsumer.Builder builderForValue) { - if (consumersBuilder_ == null) { - ensureConsumersIsMutable(); - consumers_.add(builderForValue.build()); - onChanged(); - } else { - consumersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder addConsumers( - int index, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder builderForValue) { - if (consumersBuilder_ == null) { - ensureConsumersIsMutable(); - consumers_.add(index, builderForValue.build()); - onChanged(); - } else { - consumersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder addAllConsumers( - java.lang.Iterable values) { - if (consumersBuilder_ == null) { - ensureConsumersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, consumers_); - onChanged(); - } else { - consumersBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder clearConsumers() { - if (consumersBuilder_ == null) { - consumers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - consumersBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public Builder removeConsumers(int index) { - if (consumersBuilder_ == null) { - ensureConsumersIsMutable(); - consumers_.remove(index); - onChanged(); - } else { - consumersBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumer.Builder getConsumersBuilder( - int index) { - return getConsumersFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder getConsumersOrBuilder( - int index) { - if (consumersBuilder_ == null) { - return consumers_.get(index); } else { - return consumersBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public java.util.List - getConsumersOrBuilderList() { - if (consumersBuilder_ != null) { - return consumersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(consumers_); - } - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumer.Builder addConsumersBuilder() { - return getConsumersFieldBuilder().addBuilder( - flyteidl.artifact.Artifacts.ArtifactConsumer.getDefaultInstance()); - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public flyteidl.artifact.Artifacts.ArtifactConsumer.Builder addConsumersBuilder( - int index) { - return getConsumersFieldBuilder().addBuilder( - index, flyteidl.artifact.Artifacts.ArtifactConsumer.getDefaultInstance()); - } - /** - * repeated .flyteidl.artifact.ArtifactConsumer consumers = 1; - */ - public java.util.List - getConsumersBuilderList() { - return getConsumersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactConsumer, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder, flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder> - getConsumersFieldBuilder() { - if (consumersBuilder_ == null) { - consumersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.artifact.Artifacts.ArtifactConsumer, flyteidl.artifact.Artifacts.ArtifactConsumer.Builder, flyteidl.artifact.Artifacts.ArtifactConsumerOrBuilder>( - consumers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - consumers_ = null; - } - return consumersBuilder_; - } - @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.artifact.RegisterConsumerRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterConsumerRequest) - private static final flyteidl.artifact.Artifacts.RegisterConsumerRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.RegisterConsumerRequest(); - } - - public static flyteidl.artifact.Artifacts.RegisterConsumerRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterConsumerRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisterConsumerRequest(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.artifact.Artifacts.RegisterConsumerRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RegisterResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.RegisterResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterResponse} - */ - public static final class RegisterResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.RegisterResponse) - RegisterResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RegisterResponse.newBuilder() to construct. - private RegisterResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RegisterResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RegisterResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterResponse.class, flyteidl.artifact.Artifacts.RegisterResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.artifact.Artifacts.RegisterResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.RegisterResponse other = (flyteidl.artifact.Artifacts.RegisterResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.RegisterResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterResponse 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.artifact.Artifacts.RegisterResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterResponse 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.artifact.Artifacts.RegisterResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.RegisterResponse 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.artifact.Artifacts.RegisterResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.RegisterResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.RegisterResponse) - flyteidl.artifact.Artifacts.RegisterResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.RegisterResponse.class, flyteidl.artifact.Artifacts.RegisterResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.RegisterResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_RegisterResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.RegisterResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterResponse build() { - flyteidl.artifact.Artifacts.RegisterResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.RegisterResponse buildPartial() { - flyteidl.artifact.Artifacts.RegisterResponse result = new flyteidl.artifact.Artifacts.RegisterResponse(this); - 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.artifact.Artifacts.RegisterResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.RegisterResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.RegisterResponse other) { - if (other == flyteidl.artifact.Artifacts.RegisterResponse.getDefaultInstance()) return this; - 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.artifact.Artifacts.RegisterResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.RegisterResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.artifact.RegisterResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.RegisterResponse) - private static final flyteidl.artifact.Artifacts.RegisterResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.RegisterResponse(); - } - - public static flyteidl.artifact.Artifacts.RegisterResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RegisterResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RegisterResponse(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.artifact.Artifacts.RegisterResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionInputsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ExecutionInputsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - java.util.List - getInputsList(); - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - flyteidl.core.ArtifactId.ArtifactID getInputs(int index); - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - int getInputsCount(); - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - java.util.List - getInputsOrBuilderList(); - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.artifact.ExecutionInputsRequest} - */ - public static final class ExecutionInputsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ExecutionInputsRequest) - ExecutionInputsRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionInputsRequest.newBuilder() to construct. - private ExecutionInputsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionInputsRequest() { - inputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionInputsRequest( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - inputs_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ExecutionInputsRequest.class, flyteidl.artifact.Artifacts.ExecutionInputsRequest.Builder.class); - } - - private int bitField0_; - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - public static final int INPUTS_FIELD_NUMBER = 2; - private java.util.List inputs_; - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID getInputs(int index) { - return inputs_.get(index); - } - /** - *
-     * can make this a map in the future, currently no need.
-     * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(2, inputs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, inputs_.get(i)); - } - 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.artifact.Artifacts.ExecutionInputsRequest)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ExecutionInputsRequest other = (flyteidl.artifact.Artifacts.ExecutionInputsRequest) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - } - if (!getInputsList() - .equals(other.getInputsList())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest 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.artifact.Artifacts.ExecutionInputsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest 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.artifact.Artifacts.ExecutionInputsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest 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.artifact.Artifacts.ExecutionInputsRequest 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ExecutionInputsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ExecutionInputsRequest) - flyteidl.artifact.Artifacts.ExecutionInputsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ExecutionInputsRequest.class, flyteidl.artifact.Artifacts.ExecutionInputsRequest.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ExecutionInputsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - inputsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsRequest getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ExecutionInputsRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsRequest build() { - flyteidl.artifact.Artifacts.ExecutionInputsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsRequest buildPartial() { - flyteidl.artifact.Artifacts.ExecutionInputsRequest result = new flyteidl.artifact.Artifacts.ExecutionInputsRequest(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.build(); - } - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.artifact.Artifacts.ExecutionInputsRequest) { - return mergeFrom((flyteidl.artifact.Artifacts.ExecutionInputsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ExecutionInputsRequest other) { - if (other == flyteidl.artifact.Artifacts.ExecutionInputsRequest.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000002); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - 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.artifact.Artifacts.ExecutionInputsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ExecutionInputsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> inputsBuilder_; - - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder setInputs( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder setInputs( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder addInputs(flyteidl.core.ArtifactId.ArtifactID value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder addInputs( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder addInputs( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder addInputs( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * can make this a map in the future, currently no need.
-       * 
- * - * repeated .flyteidl.core.ArtifactID inputs = 2; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - inputs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - @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.artifact.ExecutionInputsRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsRequest) - private static final flyteidl.artifact.Artifacts.ExecutionInputsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ExecutionInputsRequest(); - } - - public static flyteidl.artifact.Artifacts.ExecutionInputsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionInputsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionInputsRequest(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.artifact.Artifacts.ExecutionInputsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionInputsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.artifact.ExecutionInputsResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.artifact.ExecutionInputsResponse} - */ - public static final class ExecutionInputsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.artifact.ExecutionInputsResponse) - ExecutionInputsResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionInputsResponse.newBuilder() to construct. - private ExecutionInputsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionInputsResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionInputsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ExecutionInputsResponse.class, flyteidl.artifact.Artifacts.ExecutionInputsResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.artifact.Artifacts.ExecutionInputsResponse)) { - return super.equals(obj); - } - flyteidl.artifact.Artifacts.ExecutionInputsResponse other = (flyteidl.artifact.Artifacts.ExecutionInputsResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse 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.artifact.Artifacts.ExecutionInputsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse 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.artifact.Artifacts.ExecutionInputsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse 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.artifact.Artifacts.ExecutionInputsResponse 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; - } - /** - * Protobuf type {@code flyteidl.artifact.ExecutionInputsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.artifact.ExecutionInputsResponse) - flyteidl.artifact.Artifacts.ExecutionInputsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.artifact.Artifacts.ExecutionInputsResponse.class, flyteidl.artifact.Artifacts.ExecutionInputsResponse.Builder.class); - } - - // Construct using flyteidl.artifact.Artifacts.ExecutionInputsResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.artifact.Artifacts.internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceForType() { - return flyteidl.artifact.Artifacts.ExecutionInputsResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsResponse build() { - flyteidl.artifact.Artifacts.ExecutionInputsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.artifact.Artifacts.ExecutionInputsResponse buildPartial() { - flyteidl.artifact.Artifacts.ExecutionInputsResponse result = new flyteidl.artifact.Artifacts.ExecutionInputsResponse(this); - 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.artifact.Artifacts.ExecutionInputsResponse) { - return mergeFrom((flyteidl.artifact.Artifacts.ExecutionInputsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.artifact.Artifacts.ExecutionInputsResponse other) { - if (other == flyteidl.artifact.Artifacts.ExecutionInputsResponse.getDefaultInstance()) return this; - 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.artifact.Artifacts.ExecutionInputsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.artifact.Artifacts.ExecutionInputsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.artifact.ExecutionInputsResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.artifact.ExecutionInputsResponse) - private static final flyteidl.artifact.Artifacts.ExecutionInputsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.artifact.Artifacts.ExecutionInputsResponse(); - } - - public static flyteidl.artifact.Artifacts.ExecutionInputsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionInputsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionInputsResponse(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.artifact.Artifacts.ExecutionInputsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_Artifact_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_Artifact_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CreateArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ArtifactSource_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ArtifactSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_GetArtifactRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_GetArtifactRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_GetArtifactResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_SearchOptions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_AddTagRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_AddTagRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_AddTagResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_AddTagResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CreateTriggerRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_CreateTriggerResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_DeleteTriggerRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_DeleteTriggerResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ArtifactProducer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ArtifactProducer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_RegisterProducerRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ArtifactConsumer_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ArtifactConsumer_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_RegisterConsumerRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_RegisterResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!flyteidl/artifact/artifacts.proto\022\021fly" + - "teidl.artifact\032\031google/protobuf/any.prot" + - "o\032\034google/api/annotations.proto\032 flyteid" + - "l/admin/launch_plan.proto\032\034flyteidl/core" + - "/literals.proto\032\031flyteidl/core/types.pro" + - "to\032\036flyteidl/core/identifier.proto\032\037flyt" + - "eidl/core/artifact_id.proto\032\035flyteidl/co" + - "re/interface.proto\032 flyteidl/event/cloud" + - "events.proto\"\252\001\n\010Artifact\022.\n\013artifact_id" + - "\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022-\n\004spe" + - "c\030\002 \001(\0132\037.flyteidl.artifact.ArtifactSpec" + - "\022\014\n\004tags\030\003 \003(\t\0221\n\006source\030\004 \001(\0132!.flyteid" + - "l.artifact.ArtifactSource\"\312\002\n\025CreateArti" + - "factRequest\0220\n\014artifact_key\030\001 \001(\0132\032.flyt" + - "eidl.core.ArtifactKey\022\017\n\007version\030\003 \001(\t\022-" + - "\n\004spec\030\002 \001(\0132\037.flyteidl.artifact.Artifac" + - "tSpec\022L\n\npartitions\030\004 \003(\01328.flyteidl.art" + - "ifact.CreateArtifactRequest.PartitionsEn" + - "try\022\013\n\003tag\030\005 \001(\t\0221\n\006source\030\006 \001(\0132!.flyte" + - "idl.artifact.ArtifactSource\0321\n\017Partition" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\277" + - "\001\n\016ArtifactSource\022F\n\022workflow_execution\030" + - "\001 \001(\0132*.flyteidl.core.WorkflowExecutionI" + - "dentifier\022\017\n\007node_id\030\002 \001(\t\022*\n\007task_id\030\003 " + - "\001(\0132\031.flyteidl.core.Identifier\022\025\n\rretry_" + - "attempt\030\004 \001(\r\022\021\n\tprincipal\030\005 \001(\t\"\276\001\n\014Art" + - "ifactSpec\022%\n\005value\030\001 \001(\0132\026.flyteidl.core" + - ".Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + - "iteralType\022\031\n\021short_description\030\003 \001(\t\022+\n" + - "\ruser_metadata\030\004 \001(\0132\024.google.protobuf.A" + - "ny\022\025\n\rmetadata_type\030\005 \001(\t\"G\n\026CreateArtif" + - "actResponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl" + - ".artifact.Artifact\"R\n\022GetArtifactRequest" + - "\022+\n\005query\030\001 \001(\0132\034.flyteidl.core.Artifact" + - "Query\022\017\n\007details\030\002 \001(\010\"D\n\023GetArtifactRes" + - "ponse\022-\n\010artifact\030\001 \001(\0132\033.flyteidl.artif" + - "act.Artifact\"A\n\rSearchOptions\022\031\n\021strict_" + - "partitions\030\001 \001(\010\022\025\n\rlatest_by_key\030\002 \001(\010\"" + - "\356\001\n\026SearchArtifactsRequest\0220\n\014artifact_k" + - "ey\030\001 \001(\0132\032.flyteidl.core.ArtifactKey\022-\n\n" + - "partitions\030\002 \001(\0132\031.flyteidl.core.Partiti" + - "ons\022\021\n\tprincipal\030\003 \001(\t\022\017\n\007version\030\004 \001(\t\022" + - "1\n\007options\030\005 \001(\0132 .flyteidl.artifact.Sea" + - "rchOptions\022\r\n\005token\030\006 \001(\t\022\r\n\005limit\030\007 \001(\005" + - "\"X\n\027SearchArtifactsResponse\022.\n\tartifacts" + - "\030\001 \003(\0132\033.flyteidl.artifact.Artifact\022\r\n\005t" + - "oken\030\002 \001(\t\"\311\001\n\031FindByWorkflowExecRequest" + - "\022;\n\007exec_id\030\001 \001(\0132*.flyteidl.core.Workfl" + - "owExecutionIdentifier\022I\n\tdirection\030\002 \001(\016" + - "26.flyteidl.artifact.FindByWorkflowExecR" + - "equest.Direction\"$\n\tDirection\022\n\n\006INPUTS\020" + - "\000\022\013\n\007OUTPUTS\020\001\"a\n\rAddTagRequest\022.\n\013artif" + - "act_id\030\001 \001(\0132\031.flyteidl.core.ArtifactID\022" + - "\r\n\005value\030\002 \001(\t\022\021\n\toverwrite\030\003 \001(\010\"\020\n\016Add" + - "TagResponse\"O\n\024CreateTriggerRequest\0227\n\023t" + - "rigger_launch_plan\030\001 \001(\0132\032.flyteidl.admi" + - "n.LaunchPlan\"\027\n\025CreateTriggerResponse\"E\n" + - "\024DeleteTriggerRequest\022-\n\ntrigger_id\030\001 \001(" + - "\0132\031.flyteidl.core.Identifier\"\027\n\025DeleteTr" + - "iggerResponse\"m\n\020ArtifactProducer\022,\n\tent" + - "ity_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022" + - "+\n\007outputs\030\002 \001(\0132\032.flyteidl.core.Variabl" + - "eMap\"Q\n\027RegisterProducerRequest\0226\n\tprodu" + - "cers\030\001 \003(\0132#.flyteidl.artifact.ArtifactP" + - "roducer\"m\n\020ArtifactConsumer\022,\n\tentity_id" + - "\030\001 \001(\0132\031.flyteidl.core.Identifier\022+\n\006inp" + - "uts\030\002 \001(\0132\033.flyteidl.core.ParameterMap\"Q" + - "\n\027RegisterConsumerRequest\0226\n\tconsumers\030\001" + - " \003(\0132#.flyteidl.artifact.ArtifactConsume" + - "r\"\022\n\020RegisterResponse\"\205\001\n\026ExecutionInput" + - "sRequest\022@\n\014execution_id\030\001 \001(\0132*.flyteid" + - "l.core.WorkflowExecutionIdentifier\022)\n\006in" + - "puts\030\002 \003(\0132\031.flyteidl.core.ArtifactID\"\031\n" + - "\027ExecutionInputsResponse2\327\016\n\020ArtifactReg" + - "istry\022g\n\016CreateArtifact\022(.flyteidl.artif" + - "act.CreateArtifactRequest\032).flyteidl.art" + - "ifact.CreateArtifactResponse\"\000\022\205\005\n\013GetAr" + - "tifact\022%.flyteidl.artifact.GetArtifactRe" + - "quest\032&.flyteidl.artifact.GetArtifactRes" + - "ponse\"\246\004\202\323\344\223\002\237\004\022 /artifacts/api/v1/data/" + - "artifactsZ\270\001\022\265\001/artifacts/api/v1/data/ar" + - "tifact/id/{query.artifact_id.artifact_ke" + - "y.project}/{query.artifact_id.artifact_k" + - "ey.domain}/{query.artifact_id.artifact_k" + - "ey.name}/{query.artifact_id.version}Z\234\001\022" + - "\231\001/artifacts/api/v1/data/artifact/id/{qu" + - "ery.artifact_id.artifact_key.project}/{q" + - "uery.artifact_id.artifact_key.domain}/{q" + - "uery.artifact_id.artifact_key.name}Z\240\001\022\235" + - "\001/artifacts/api/v1/data/artifact/tag/{qu" + - "ery.artifact_tag.artifact_key.project}/{" + - "query.artifact_tag.artifact_key.domain}/" + - "{query.artifact_tag.artifact_key.name}\022\240" + - "\002\n\017SearchArtifacts\022).flyteidl.artifact.S" + - "earchArtifactsRequest\032*.flyteidl.artifac" + - "t.SearchArtifactsResponse\"\265\001\202\323\344\223\002\256\001\022_/ar" + - "tifacts/api/v1/data/query/s/{artifact_ke" + - "y.project}/{artifact_key.domain}/{artifa" + - "ct_key.name}ZK\022I/artifacts/api/v1/data/q" + - "uery/{artifact_key.project}/{artifact_ke" + - "y.domain}\022d\n\rCreateTrigger\022\'.flyteidl.ar" + - "tifact.CreateTriggerRequest\032(.flyteidl.a" + - "rtifact.CreateTriggerResponse\"\000\022d\n\rDelet" + - "eTrigger\022\'.flyteidl.artifact.DeleteTrigg" + - "erRequest\032(.flyteidl.artifact.DeleteTrig" + - "gerResponse\"\000\022O\n\006AddTag\022 .flyteidl.artif" + - "act.AddTagRequest\032!.flyteidl.artifact.Ad" + - "dTagResponse\"\000\022e\n\020RegisterProducer\022*.fly" + - "teidl.artifact.RegisterProducerRequest\032#" + - ".flyteidl.artifact.RegisterResponse\"\000\022e\n" + - "\020RegisterConsumer\022*.flyteidl.artifact.Re" + - "gisterConsumerRequest\032#.flyteidl.artifac" + - "t.RegisterResponse\"\000\022m\n\022SetExecutionInpu" + - "ts\022).flyteidl.artifact.ExecutionInputsRe" + - "quest\032*.flyteidl.artifact.ExecutionInput" + - "sResponse\"\000\022\324\001\n\022FindByWorkflowExec\022,.fly" + - "teidl.artifact.FindByWorkflowExecRequest" + - "\032*.flyteidl.artifact.SearchArtifactsResp" + - "onse\"d\202\323\344\223\002^\022\\/artifacts/api/v1/data/que" + - "ry/e/{exec_id.project}/{exec_id.domain}/" + - "{exec_id.name}/{direction}B@Z>github.com" + - "/flyteorg/flyte/flyteidl/gen/pb-go/flyte" + - "idl/artifactb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.AnyProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - flyteidl.admin.LaunchPlanOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Types.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.ArtifactId.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.event.Cloudevents.getDescriptor(), - }, assigner); - internal_static_flyteidl_artifact_Artifact_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_artifact_Artifact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_Artifact_descriptor, - new java.lang.String[] { "ArtifactId", "Spec", "Tags", "Source", }); - internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_artifact_CreateArtifactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor, - new java.lang.String[] { "ArtifactKey", "Version", "Spec", "Partitions", "Tag", "Source", }); - internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor = - internal_static_flyteidl_artifact_CreateArtifactRequest_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CreateArtifactRequest_PartitionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_artifact_ArtifactSource_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_artifact_ArtifactSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ArtifactSource_descriptor, - new java.lang.String[] { "WorkflowExecution", "NodeId", "TaskId", "RetryAttempt", "Principal", }); - internal_static_flyteidl_artifact_ArtifactSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_artifact_ArtifactSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ArtifactSpec_descriptor, - new java.lang.String[] { "Value", "Type", "ShortDescription", "UserMetadata", "MetadataType", }); - internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_artifact_CreateArtifactResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CreateArtifactResponse_descriptor, - new java.lang.String[] { "Artifact", }); - internal_static_flyteidl_artifact_GetArtifactRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_artifact_GetArtifactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_GetArtifactRequest_descriptor, - new java.lang.String[] { "Query", "Details", }); - internal_static_flyteidl_artifact_GetArtifactResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_artifact_GetArtifactResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_GetArtifactResponse_descriptor, - new java.lang.String[] { "Artifact", }); - internal_static_flyteidl_artifact_SearchOptions_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_artifact_SearchOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_SearchOptions_descriptor, - new java.lang.String[] { "StrictPartitions", "LatestByKey", }); - internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_artifact_SearchArtifactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_SearchArtifactsRequest_descriptor, - new java.lang.String[] { "ArtifactKey", "Partitions", "Principal", "Version", "Options", "Token", "Limit", }); - internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_artifact_SearchArtifactsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_SearchArtifactsResponse_descriptor, - new java.lang.String[] { "Artifacts", "Token", }); - internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_artifact_FindByWorkflowExecRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_FindByWorkflowExecRequest_descriptor, - new java.lang.String[] { "ExecId", "Direction", }); - internal_static_flyteidl_artifact_AddTagRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_artifact_AddTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_AddTagRequest_descriptor, - new java.lang.String[] { "ArtifactId", "Value", "Overwrite", }); - internal_static_flyteidl_artifact_AddTagResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_flyteidl_artifact_AddTagResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_AddTagResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_flyteidl_artifact_CreateTriggerRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CreateTriggerRequest_descriptor, - new java.lang.String[] { "TriggerLaunchPlan", }); - internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_flyteidl_artifact_CreateTriggerResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_CreateTriggerResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_flyteidl_artifact_DeleteTriggerRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_DeleteTriggerRequest_descriptor, - new java.lang.String[] { "TriggerId", }); - internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_flyteidl_artifact_DeleteTriggerResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_DeleteTriggerResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_artifact_ArtifactProducer_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_flyteidl_artifact_ArtifactProducer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ArtifactProducer_descriptor, - new java.lang.String[] { "EntityId", "Outputs", }); - internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_flyteidl_artifact_RegisterProducerRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_RegisterProducerRequest_descriptor, - new java.lang.String[] { "Producers", }); - internal_static_flyteidl_artifact_ArtifactConsumer_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_flyteidl_artifact_ArtifactConsumer_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ArtifactConsumer_descriptor, - new java.lang.String[] { "EntityId", "Inputs", }); - internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_flyteidl_artifact_RegisterConsumerRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_RegisterConsumerRequest_descriptor, - new java.lang.String[] { "Consumers", }); - internal_static_flyteidl_artifact_RegisterResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_flyteidl_artifact_RegisterResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_RegisterResponse_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_flyteidl_artifact_ExecutionInputsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ExecutionInputsRequest_descriptor, - new java.lang.String[] { "ExecutionId", "Inputs", }); - internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_flyteidl_artifact_ExecutionInputsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_artifact_ExecutionInputsResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.AnyProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - flyteidl.admin.LaunchPlanOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Types.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.ArtifactId.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.event.Cloudevents.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/core/ArtifactId.java b/flyteidl/gen/pb-java/flyteidl/core/ArtifactId.java deleted file mode 100644 index 3f9d3c7616..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/core/ArtifactId.java +++ /dev/null @@ -1,8575 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/core/artifact_id.proto - -package flyteidl.core; - -public final class ArtifactId { - private ArtifactId() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ArtifactKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArtifactKey) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Project and domain and suffix needs to be unique across a given artifact store.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Project and domain and suffix needs to be unique across a given artifact store.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - * string domain = 2; - */ - java.lang.String getDomain(); - /** - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - * string name = 3; - */ - java.lang.String getName(); - /** - * string name = 3; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code flyteidl.core.ArtifactKey} - */ - public static final class ArtifactKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArtifactKey) - ArtifactKeyOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactKey.newBuilder() to construct. - private ArtifactKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactKey() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactKey( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.core.ArtifactId.internal_static_flyteidl_core_ArtifactKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactKey.class, flyteidl.core.ArtifactId.ArtifactKey.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Project and domain and suffix needs to be unique across a given artifact store.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Project and domain and suffix needs to be unique across a given artifact store.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object name_; - /** - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); - } - 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.core.ArtifactId.ArtifactKey)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.ArtifactKey other = (flyteidl.core.ArtifactId.ArtifactKey) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactKey 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.core.ArtifactId.ArtifactKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactKey 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.core.ArtifactId.ArtifactKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactKey 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.core.ArtifactId.ArtifactKey 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; - } - /** - * Protobuf type {@code flyteidl.core.ArtifactKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArtifactKey) - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactKey.class, flyteidl.core.ArtifactId.ArtifactKey.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.ArtifactKey.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactKey_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactKey getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactKey build() { - flyteidl.core.ArtifactId.ArtifactKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactKey buildPartial() { - flyteidl.core.ArtifactId.ArtifactKey result = new flyteidl.core.ArtifactId.ArtifactKey(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - 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.core.ArtifactId.ArtifactKey) { - return mergeFrom((flyteidl.core.ArtifactId.ArtifactKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.ArtifactKey other) { - if (other == flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.core.ArtifactId.ArtifactKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.ArtifactKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Project and domain and suffix needs to be unique across a given artifact store.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Project and domain and suffix needs to be unique across a given artifact store.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Project and domain and suffix needs to be unique across a given artifact store.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Project and domain and suffix needs to be unique across a given artifact store.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Project and domain and suffix needs to be unique across a given artifact store.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 3; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 3; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 3; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 3; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 3; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.core.ArtifactKey) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactKey) - private static final flyteidl.core.ArtifactId.ArtifactKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.ArtifactKey(); - } - - public static flyteidl.core.ArtifactId.ArtifactKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactKey(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.core.ArtifactId.ArtifactKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactBindingDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArtifactBindingData) - com.google.protobuf.MessageOrBuilder { - - /** - * uint32 index = 1; - */ - int getIndex(); - - /** - *
-     * These two fields are only relevant in the partition value case
-     * 
- * - * string partition_key = 2; - */ - java.lang.String getPartitionKey(); - /** - *
-     * These two fields are only relevant in the partition value case
-     * 
- * - * string partition_key = 2; - */ - com.google.protobuf.ByteString - getPartitionKeyBytes(); - - /** - * string transform = 3; - */ - java.lang.String getTransform(); - /** - * string transform = 3; - */ - com.google.protobuf.ByteString - getTransformBytes(); - } - /** - *
-   * Only valid for triggers
-   * 
- * - * Protobuf type {@code flyteidl.core.ArtifactBindingData} - */ - public static final class ArtifactBindingData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArtifactBindingData) - ArtifactBindingDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactBindingData.newBuilder() to construct. - private ArtifactBindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactBindingData() { - partitionKey_ = ""; - transform_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactBindingData( - 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 8: { - - index_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - partitionKey_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - transform_ = s; - 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.core.ArtifactId.internal_static_flyteidl_core_ArtifactBindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactBindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactBindingData.class, flyteidl.core.ArtifactId.ArtifactBindingData.Builder.class); - } - - public static final int INDEX_FIELD_NUMBER = 1; - private int index_; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - - public static final int PARTITION_KEY_FIELD_NUMBER = 2; - private volatile java.lang.Object partitionKey_; - /** - *
-     * These two fields are only relevant in the partition value case
-     * 
- * - * string partition_key = 2; - */ - public java.lang.String getPartitionKey() { - java.lang.Object ref = partitionKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partitionKey_ = s; - return s; - } - } - /** - *
-     * These two fields are only relevant in the partition value case
-     * 
- * - * string partition_key = 2; - */ - public com.google.protobuf.ByteString - getPartitionKeyBytes() { - java.lang.Object ref = partitionKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partitionKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRANSFORM_FIELD_NUMBER = 3; - private volatile java.lang.Object transform_; - /** - * string transform = 3; - */ - public java.lang.String getTransform() { - java.lang.Object ref = transform_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - transform_ = s; - return s; - } - } - /** - * string transform = 3; - */ - public com.google.protobuf.ByteString - getTransformBytes() { - java.lang.Object ref = transform_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - transform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (index_ != 0) { - output.writeUInt32(1, index_); - } - if (!getPartitionKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, partitionKey_); - } - if (!getTransformBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transform_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, index_); - } - if (!getPartitionKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, partitionKey_); - } - if (!getTransformBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transform_); - } - 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.core.ArtifactId.ArtifactBindingData)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.ArtifactBindingData other = (flyteidl.core.ArtifactId.ArtifactBindingData) obj; - - if (getIndex() - != other.getIndex()) return false; - if (!getPartitionKey() - .equals(other.getPartitionKey())) return false; - if (!getTransform() - .equals(other.getTransform())) 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(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + PARTITION_KEY_FIELD_NUMBER; - hash = (53 * hash) + getPartitionKey().hashCode(); - hash = (37 * hash) + TRANSFORM_FIELD_NUMBER; - hash = (53 * hash) + getTransform().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData 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.core.ArtifactId.ArtifactBindingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData 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.core.ArtifactId.ArtifactBindingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactBindingData 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.core.ArtifactId.ArtifactBindingData 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; - } - /** - *
-     * Only valid for triggers
-     * 
- * - * Protobuf type {@code flyteidl.core.ArtifactBindingData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArtifactBindingData) - flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactBindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactBindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactBindingData.class, flyteidl.core.ArtifactId.ArtifactBindingData.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.ArtifactBindingData.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(); - index_ = 0; - - partitionKey_ = ""; - - transform_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactBindingData_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactBindingData getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactBindingData build() { - flyteidl.core.ArtifactId.ArtifactBindingData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactBindingData buildPartial() { - flyteidl.core.ArtifactId.ArtifactBindingData result = new flyteidl.core.ArtifactId.ArtifactBindingData(this); - result.index_ = index_; - result.partitionKey_ = partitionKey_; - result.transform_ = transform_; - 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.core.ArtifactId.ArtifactBindingData) { - return mergeFrom((flyteidl.core.ArtifactId.ArtifactBindingData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.ArtifactBindingData other) { - if (other == flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance()) return this; - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (!other.getPartitionKey().isEmpty()) { - partitionKey_ = other.partitionKey_; - onChanged(); - } - if (!other.getTransform().isEmpty()) { - transform_ = other.transform_; - onChanged(); - } - 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.core.ArtifactId.ArtifactBindingData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.ArtifactBindingData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int index_ ; - /** - * uint32 index = 1; - */ - public int getIndex() { - return index_; - } - /** - * uint32 index = 1; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - * uint32 index = 1; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private java.lang.Object partitionKey_ = ""; - /** - *
-       * These two fields are only relevant in the partition value case
-       * 
- * - * string partition_key = 2; - */ - public java.lang.String getPartitionKey() { - java.lang.Object ref = partitionKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - partitionKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * These two fields are only relevant in the partition value case
-       * 
- * - * string partition_key = 2; - */ - public com.google.protobuf.ByteString - getPartitionKeyBytes() { - java.lang.Object ref = partitionKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - partitionKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * These two fields are only relevant in the partition value case
-       * 
- * - * string partition_key = 2; - */ - public Builder setPartitionKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - partitionKey_ = value; - onChanged(); - return this; - } - /** - *
-       * These two fields are only relevant in the partition value case
-       * 
- * - * string partition_key = 2; - */ - public Builder clearPartitionKey() { - - partitionKey_ = getDefaultInstance().getPartitionKey(); - onChanged(); - return this; - } - /** - *
-       * These two fields are only relevant in the partition value case
-       * 
- * - * string partition_key = 2; - */ - public Builder setPartitionKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - partitionKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object transform_ = ""; - /** - * string transform = 3; - */ - public java.lang.String getTransform() { - java.lang.Object ref = transform_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - transform_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string transform = 3; - */ - public com.google.protobuf.ByteString - getTransformBytes() { - java.lang.Object ref = transform_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - transform_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string transform = 3; - */ - public Builder setTransform( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - transform_ = value; - onChanged(); - return this; - } - /** - * string transform = 3; - */ - public Builder clearTransform() { - - transform_ = getDefaultInstance().getTransform(); - onChanged(); - return this; - } - /** - * string transform = 3; - */ - public Builder setTransformBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - transform_ = value; - onChanged(); - return this; - } - @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.core.ArtifactBindingData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactBindingData) - private static final flyteidl.core.ArtifactId.ArtifactBindingData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.ArtifactBindingData(); - } - - public static flyteidl.core.ArtifactId.ArtifactBindingData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactBindingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactBindingData(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.core.ArtifactId.ArtifactBindingData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface InputBindingDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.InputBindingData) - com.google.protobuf.MessageOrBuilder { - - /** - * string var = 1; - */ - java.lang.String getVar(); - /** - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - } - /** - * Protobuf type {@code flyteidl.core.InputBindingData} - */ - public static final class InputBindingData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.InputBindingData) - InputBindingDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use InputBindingData.newBuilder() to construct. - private InputBindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InputBindingData() { - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private InputBindingData( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = s; - 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.core.ArtifactId.internal_static_flyteidl_core_InputBindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_InputBindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.InputBindingData.class, flyteidl.core.ArtifactId.InputBindingData.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } - } - /** - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - 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.core.ArtifactId.InputBindingData)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.InputBindingData other = (flyteidl.core.ArtifactId.InputBindingData) obj; - - if (!getVar() - .equals(other.getVar())) 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(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.InputBindingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.InputBindingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.InputBindingData 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.core.ArtifactId.InputBindingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.InputBindingData 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.core.ArtifactId.InputBindingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.InputBindingData 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.core.ArtifactId.InputBindingData 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; - } - /** - * Protobuf type {@code flyteidl.core.InputBindingData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.InputBindingData) - flyteidl.core.ArtifactId.InputBindingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_InputBindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_InputBindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.InputBindingData.class, flyteidl.core.ArtifactId.InputBindingData.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.InputBindingData.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(); - var_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_InputBindingData_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.InputBindingData getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.InputBindingData build() { - flyteidl.core.ArtifactId.InputBindingData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.InputBindingData buildPartial() { - flyteidl.core.ArtifactId.InputBindingData result = new flyteidl.core.ArtifactId.InputBindingData(this); - result.var_ = var_; - 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.core.ArtifactId.InputBindingData) { - return mergeFrom((flyteidl.core.ArtifactId.InputBindingData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.InputBindingData other) { - if (other == flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - 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.core.ArtifactId.InputBindingData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.InputBindingData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - @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.core.InputBindingData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.InputBindingData) - private static final flyteidl.core.ArtifactId.InputBindingData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.InputBindingData(); - } - - public static flyteidl.core.ArtifactId.InputBindingData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InputBindingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new InputBindingData(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.core.ArtifactId.InputBindingData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LabelValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LabelValue) - com.google.protobuf.MessageOrBuilder { - - /** - * string static_value = 1; - */ - java.lang.String getStaticValue(); - /** - * string static_value = 1; - */ - com.google.protobuf.ByteString - getStaticValueBytes(); - - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - boolean hasTriggeredBinding(); - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - flyteidl.core.ArtifactId.ArtifactBindingData getTriggeredBinding(); - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getTriggeredBindingOrBuilder(); - - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - boolean hasInputBinding(); - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - flyteidl.core.ArtifactId.InputBindingData getInputBinding(); - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - flyteidl.core.ArtifactId.InputBindingDataOrBuilder getInputBindingOrBuilder(); - - public flyteidl.core.ArtifactId.LabelValue.ValueCase getValueCase(); - } - /** - * Protobuf type {@code flyteidl.core.LabelValue} - */ - public static final class LabelValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LabelValue) - LabelValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use LabelValue.newBuilder() to construct. - private LabelValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LabelValue() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LabelValue( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 1; - value_ = s; - break; - } - case 18: { - flyteidl.core.ArtifactId.ArtifactBindingData.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactBindingData) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactBindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactBindingData) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.ArtifactId.InputBindingData.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.ArtifactId.InputBindingData) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.ArtifactId.InputBindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.InputBindingData) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - 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.core.ArtifactId.internal_static_flyteidl_core_LabelValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_LabelValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.LabelValue.class, flyteidl.core.ArtifactId.LabelValue.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - STATIC_VALUE(1), - TRIGGERED_BINDING(2), - INPUT_BINDING(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return STATIC_VALUE; - case 2: return TRIGGERED_BINDING; - case 3: return INPUT_BINDING; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int STATIC_VALUE_FIELD_NUMBER = 1; - /** - * string static_value = 1; - */ - public java.lang.String getStaticValue() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 1) { - value_ = s; - } - return s; - } - } - /** - * string static_value = 1; - */ - public com.google.protobuf.ByteString - getStaticValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 1) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TRIGGERED_BINDING_FIELD_NUMBER = 2; - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public boolean hasTriggeredBinding() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData getTriggeredBinding() { - if (valueCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) value_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getTriggeredBindingOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) value_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - - public static final int INPUT_BINDING_FIELD_NUMBER = 3; - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public boolean hasInputBinding() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public flyteidl.core.ArtifactId.InputBindingData getInputBinding() { - if (valueCase_ == 3) { - return (flyteidl.core.ArtifactId.InputBindingData) value_; - } - return flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public flyteidl.core.ArtifactId.InputBindingDataOrBuilder getInputBindingOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.ArtifactId.InputBindingData) value_; - } - return flyteidl.core.ArtifactId.InputBindingData.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 (valueCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.ArtifactId.ArtifactBindingData) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.ArtifactId.InputBindingData) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.ArtifactId.ArtifactBindingData) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.ArtifactId.InputBindingData) value_); - } - 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.core.ArtifactId.LabelValue)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.LabelValue other = (flyteidl.core.ArtifactId.LabelValue) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getStaticValue() - .equals(other.getStaticValue())) return false; - break; - case 2: - if (!getTriggeredBinding() - .equals(other.getTriggeredBinding())) return false; - break; - case 3: - if (!getInputBinding() - .equals(other.getInputBinding())) 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 (valueCase_) { - case 1: - hash = (37 * hash) + STATIC_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStaticValue().hashCode(); - break; - case 2: - hash = (37 * hash) + TRIGGERED_BINDING_FIELD_NUMBER; - hash = (53 * hash) + getTriggeredBinding().hashCode(); - break; - case 3: - hash = (37 * hash) + INPUT_BINDING_FIELD_NUMBER; - hash = (53 * hash) + getInputBinding().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.LabelValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.LabelValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.LabelValue 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.core.ArtifactId.LabelValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.LabelValue 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.core.ArtifactId.LabelValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.LabelValue 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.core.ArtifactId.LabelValue 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; - } - /** - * Protobuf type {@code flyteidl.core.LabelValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LabelValue) - flyteidl.core.ArtifactId.LabelValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_LabelValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_LabelValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.LabelValue.class, flyteidl.core.ArtifactId.LabelValue.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.LabelValue.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_LabelValue_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.LabelValue getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.LabelValue.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.LabelValue build() { - flyteidl.core.ArtifactId.LabelValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.LabelValue buildPartial() { - flyteidl.core.ArtifactId.LabelValue result = new flyteidl.core.ArtifactId.LabelValue(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - if (triggeredBindingBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = triggeredBindingBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (inputBindingBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = inputBindingBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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.core.ArtifactId.LabelValue) { - return mergeFrom((flyteidl.core.ArtifactId.LabelValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.LabelValue other) { - if (other == flyteidl.core.ArtifactId.LabelValue.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case STATIC_VALUE: { - valueCase_ = 1; - value_ = other.value_; - onChanged(); - break; - } - case TRIGGERED_BINDING: { - mergeTriggeredBinding(other.getTriggeredBinding()); - break; - } - case INPUT_BINDING: { - mergeInputBinding(other.getInputBinding()); - break; - } - case VALUE_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.core.ArtifactId.LabelValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.LabelValue) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - * string static_value = 1; - */ - public java.lang.String getStaticValue() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 1) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string static_value = 1; - */ - public com.google.protobuf.ByteString - getStaticValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 1) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string static_value = 1; - */ - public Builder setStaticValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - /** - * string static_value = 1; - */ - public Builder clearStaticValue() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * string static_value = 1; - */ - public Builder setStaticValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder> triggeredBindingBuilder_; - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public boolean hasTriggeredBinding() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData getTriggeredBinding() { - if (triggeredBindingBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) value_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return triggeredBindingBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public Builder setTriggeredBinding(flyteidl.core.ArtifactId.ArtifactBindingData value) { - if (triggeredBindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - triggeredBindingBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public Builder setTriggeredBinding( - flyteidl.core.ArtifactId.ArtifactBindingData.Builder builderForValue) { - if (triggeredBindingBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - triggeredBindingBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public Builder mergeTriggeredBinding(flyteidl.core.ArtifactId.ArtifactBindingData value) { - if (triggeredBindingBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance()) { - value_ = flyteidl.core.ArtifactId.ArtifactBindingData.newBuilder((flyteidl.core.ArtifactId.ArtifactBindingData) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - triggeredBindingBuilder_.mergeFrom(value); - } - triggeredBindingBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public Builder clearTriggeredBinding() { - if (triggeredBindingBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - triggeredBindingBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData.Builder getTriggeredBindingBuilder() { - return getTriggeredBindingFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - public flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getTriggeredBindingOrBuilder() { - if ((valueCase_ == 2) && (triggeredBindingBuilder_ != null)) { - return triggeredBindingBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) value_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactBindingData triggered_binding = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder> - getTriggeredBindingFieldBuilder() { - if (triggeredBindingBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - triggeredBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactBindingData) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return triggeredBindingBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.InputBindingData, flyteidl.core.ArtifactId.InputBindingData.Builder, flyteidl.core.ArtifactId.InputBindingDataOrBuilder> inputBindingBuilder_; - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public boolean hasInputBinding() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public flyteidl.core.ArtifactId.InputBindingData getInputBinding() { - if (inputBindingBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.ArtifactId.InputBindingData) value_; - } - return flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return inputBindingBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public Builder setInputBinding(flyteidl.core.ArtifactId.InputBindingData value) { - if (inputBindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - inputBindingBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public Builder setInputBinding( - flyteidl.core.ArtifactId.InputBindingData.Builder builderForValue) { - if (inputBindingBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - inputBindingBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public Builder mergeInputBinding(flyteidl.core.ArtifactId.InputBindingData value) { - if (inputBindingBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance()) { - value_ = flyteidl.core.ArtifactId.InputBindingData.newBuilder((flyteidl.core.ArtifactId.InputBindingData) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - inputBindingBuilder_.mergeFrom(value); - } - inputBindingBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public Builder clearInputBinding() { - if (inputBindingBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - inputBindingBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public flyteidl.core.ArtifactId.InputBindingData.Builder getInputBindingBuilder() { - return getInputBindingFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - public flyteidl.core.ArtifactId.InputBindingDataOrBuilder getInputBindingOrBuilder() { - if ((valueCase_ == 3) && (inputBindingBuilder_ != null)) { - return inputBindingBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.ArtifactId.InputBindingData) value_; - } - return flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } - } - /** - * .flyteidl.core.InputBindingData input_binding = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.InputBindingData, flyteidl.core.ArtifactId.InputBindingData.Builder, flyteidl.core.ArtifactId.InputBindingDataOrBuilder> - getInputBindingFieldBuilder() { - if (inputBindingBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.ArtifactId.InputBindingData.getDefaultInstance(); - } - inputBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.InputBindingData, flyteidl.core.ArtifactId.InputBindingData.Builder, flyteidl.core.ArtifactId.InputBindingDataOrBuilder>( - (flyteidl.core.ArtifactId.InputBindingData) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return inputBindingBuilder_; - } - @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.core.LabelValue) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LabelValue) - private static final flyteidl.core.ArtifactId.LabelValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.LabelValue(); - } - - public static flyteidl.core.ArtifactId.LabelValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelValue(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.core.ArtifactId.LabelValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PartitionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Partitions) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - int getValueCount(); - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - boolean containsValue( - java.lang.String key); - /** - * Use {@link #getValueMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getValue(); - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - java.util.Map - getValueMap(); - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - flyteidl.core.ArtifactId.LabelValue getValueOrDefault( - java.lang.String key, - flyteidl.core.ArtifactId.LabelValue defaultValue); - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - flyteidl.core.ArtifactId.LabelValue getValueOrThrow( - java.lang.String key); - } - /** - * Protobuf type {@code flyteidl.core.Partitions} - */ - public static final class Partitions extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Partitions) - PartitionsOrBuilder { - private static final long serialVersionUID = 0L; - // Use Partitions.newBuilder() to construct. - private Partitions(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Partitions() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Partitions( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - value_ = com.google.protobuf.MapField.newMapField( - ValueDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - value__ = input.readMessage( - ValueDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - value_.getMutableMap().put( - value__.getKey(), value__.getValue()); - 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.core.ArtifactId.internal_static_flyteidl_core_Partitions_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValue(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Partitions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.Partitions.class, flyteidl.core.ArtifactId.Partitions.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private static final class ValueDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.ArtifactId.LabelValue> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.ArtifactId.internal_static_flyteidl_core_Partitions_ValueEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.ArtifactId.LabelValue.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.ArtifactId.LabelValue> value_; - private com.google.protobuf.MapField - internalGetValue() { - if (value_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValueDefaultEntryHolder.defaultEntry); - } - return value_; - } - - public int getValueCount() { - return internalGetValue().getMap().size(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public boolean containsValue( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValue().getMap().containsKey(key); - } - /** - * Use {@link #getValueMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValue() { - return getValueMap(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public java.util.Map getValueMap() { - return internalGetValue().getMap(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public flyteidl.core.ArtifactId.LabelValue getValueOrDefault( - java.lang.String key, - flyteidl.core.ArtifactId.LabelValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValue().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public flyteidl.core.ArtifactId.LabelValue getValueOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValue().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetValue(), - ValueDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetValue().getMap().entrySet()) { - com.google.protobuf.MapEntry - value__ = ValueDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, value__); - } - 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.core.ArtifactId.Partitions)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.Partitions other = (flyteidl.core.ArtifactId.Partitions) obj; - - if (!internalGetValue().equals( - other.internalGetValue())) 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 (!internalGetValue().getMap().isEmpty()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + internalGetValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.Partitions parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Partitions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Partitions 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.core.ArtifactId.Partitions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Partitions 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.core.ArtifactId.Partitions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Partitions 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.core.ArtifactId.Partitions 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; - } - /** - * Protobuf type {@code flyteidl.core.Partitions} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Partitions) - flyteidl.core.ArtifactId.PartitionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Partitions_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetValue(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableValue(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Partitions_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.Partitions.class, flyteidl.core.ArtifactId.Partitions.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.Partitions.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(); - internalGetMutableValue().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Partitions_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Partitions getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Partitions build() { - flyteidl.core.ArtifactId.Partitions result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Partitions buildPartial() { - flyteidl.core.ArtifactId.Partitions result = new flyteidl.core.ArtifactId.Partitions(this); - int from_bitField0_ = bitField0_; - result.value_ = internalGetValue(); - result.value_.makeImmutable(); - 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.core.ArtifactId.Partitions) { - return mergeFrom((flyteidl.core.ArtifactId.Partitions)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.Partitions other) { - if (other == flyteidl.core.ArtifactId.Partitions.getDefaultInstance()) return this; - internalGetMutableValue().mergeFrom( - other.internalGetValue()); - 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.core.ArtifactId.Partitions parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.Partitions) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.ArtifactId.LabelValue> value_; - private com.google.protobuf.MapField - internalGetValue() { - if (value_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ValueDefaultEntryHolder.defaultEntry); - } - return value_; - } - private com.google.protobuf.MapField - internalGetMutableValue() { - onChanged();; - if (value_ == null) { - value_ = com.google.protobuf.MapField.newMapField( - ValueDefaultEntryHolder.defaultEntry); - } - if (!value_.isMutable()) { - value_ = value_.copy(); - } - return value_; - } - - public int getValueCount() { - return internalGetValue().getMap().size(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public boolean containsValue( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetValue().getMap().containsKey(key); - } - /** - * Use {@link #getValueMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getValue() { - return getValueMap(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public java.util.Map getValueMap() { - return internalGetValue().getMap(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public flyteidl.core.ArtifactId.LabelValue getValueOrDefault( - java.lang.String key, - flyteidl.core.ArtifactId.LabelValue defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValue().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public flyteidl.core.ArtifactId.LabelValue getValueOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetValue().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearValue() { - internalGetMutableValue().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public Builder removeValue( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValue().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableValue() { - return internalGetMutableValue().getMutableMap(); - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - public Builder putValue( - java.lang.String key, - flyteidl.core.ArtifactId.LabelValue value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableValue().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.LabelValue> value = 1; - */ - - public Builder putAllValue( - java.util.Map values) { - internalGetMutableValue().getMutableMap() - .putAll(values); - return this; - } - @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.core.Partitions) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Partitions) - private static final flyteidl.core.ArtifactId.Partitions DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.Partitions(); - } - - public static flyteidl.core.ArtifactId.Partitions getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Partitions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Partitions(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.core.ArtifactId.Partitions getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactIDOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArtifactID) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - boolean hasArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); - - /** - * string version = 2; - */ - java.lang.String getVersion(); - /** - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - * .flyteidl.core.Partitions partitions = 3; - */ - boolean hasPartitions(); - /** - * .flyteidl.core.Partitions partitions = 3; - */ - flyteidl.core.ArtifactId.Partitions getPartitions(); - /** - * .flyteidl.core.Partitions partitions = 3; - */ - flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder(); - - public flyteidl.core.ArtifactId.ArtifactID.DimensionsCase getDimensionsCase(); - } - /** - * Protobuf type {@code flyteidl.core.ArtifactID} - */ - public static final class ArtifactID extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArtifactID) - ArtifactIDOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactID.newBuilder() to construct. - private ArtifactID(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactID() { - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactID( - 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.ArtifactId.ArtifactKey.Builder subBuilder = null; - if (artifactKey_ != null) { - subBuilder = artifactKey_.toBuilder(); - } - artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactKey_); - artifactKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - flyteidl.core.ArtifactId.Partitions.Builder subBuilder = null; - if (dimensionsCase_ == 3) { - subBuilder = ((flyteidl.core.ArtifactId.Partitions) dimensions_).toBuilder(); - } - dimensions_ = - input.readMessage(flyteidl.core.ArtifactId.Partitions.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.Partitions) dimensions_); - dimensions_ = subBuilder.buildPartial(); - } - dimensionsCase_ = 3; - 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.core.ArtifactId.internal_static_flyteidl_core_ArtifactID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactID.class, flyteidl.core.ArtifactId.ArtifactID.Builder.class); - } - - private int dimensionsCase_ = 0; - private java.lang.Object dimensions_; - public enum DimensionsCase - implements com.google.protobuf.Internal.EnumLite { - PARTITIONS(3), - DIMENSIONS_NOT_SET(0); - private final int value; - private DimensionsCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DimensionsCase valueOf(int value) { - return forNumber(value); - } - - public static DimensionsCase forNumber(int value) { - switch (value) { - case 3: return PARTITIONS; - case 0: return DIMENSIONS_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DimensionsCase - getDimensionsCase() { - return DimensionsCase.forNumber( - dimensionsCase_); - } - - public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - return getArtifactKey(); - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARTITIONS_FIELD_NUMBER = 3; - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public boolean hasPartitions() { - return dimensionsCase_ == 3; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public flyteidl.core.ArtifactId.Partitions getPartitions() { - if (dimensionsCase_ == 3) { - return (flyteidl.core.ArtifactId.Partitions) dimensions_; - } - return flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { - if (dimensionsCase_ == 3) { - return (flyteidl.core.ArtifactId.Partitions) dimensions_; - } - return flyteidl.core.ArtifactId.Partitions.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 (artifactKey_ != null) { - output.writeMessage(1, getArtifactKey()); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (dimensionsCase_ == 3) { - output.writeMessage(3, (flyteidl.core.ArtifactId.Partitions) dimensions_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactKey()); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (dimensionsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.ArtifactId.Partitions) dimensions_); - } - 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.core.ArtifactId.ArtifactID)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.ArtifactID other = (flyteidl.core.ArtifactId.ArtifactID) obj; - - if (hasArtifactKey() != other.hasArtifactKey()) return false; - if (hasArtifactKey()) { - if (!getArtifactKey() - .equals(other.getArtifactKey())) return false; - } - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getDimensionsCase().equals(other.getDimensionsCase())) return false; - switch (dimensionsCase_) { - case 3: - if (!getPartitions() - .equals(other.getPartitions())) 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(); - if (hasArtifactKey()) { - hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKey().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - switch (dimensionsCase_) { - case 3: - hash = (37 * hash) + PARTITIONS_FIELD_NUMBER; - hash = (53 * hash) + getPartitions().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.ArtifactID parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactID parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactID 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.core.ArtifactId.ArtifactID parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactID 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.core.ArtifactId.ArtifactID parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactID 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.core.ArtifactId.ArtifactID 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; - } - /** - * Protobuf type {@code flyteidl.core.ArtifactID} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArtifactID) - flyteidl.core.ArtifactId.ArtifactIDOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactID_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactID_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactID.class, flyteidl.core.ArtifactId.ArtifactID.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.ArtifactID.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 (artifactKeyBuilder_ == null) { - artifactKey_ = null; - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - version_ = ""; - - dimensionsCase_ = 0; - dimensions_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactID_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactID getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactID build() { - flyteidl.core.ArtifactId.ArtifactID result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactID buildPartial() { - flyteidl.core.ArtifactId.ArtifactID result = new flyteidl.core.ArtifactId.ArtifactID(this); - if (artifactKeyBuilder_ == null) { - result.artifactKey_ = artifactKey_; - } else { - result.artifactKey_ = artifactKeyBuilder_.build(); - } - result.version_ = version_; - if (dimensionsCase_ == 3) { - if (partitionsBuilder_ == null) { - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = partitionsBuilder_.build(); - } - } - result.dimensionsCase_ = dimensionsCase_; - 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.core.ArtifactId.ArtifactID) { - return mergeFrom((flyteidl.core.ArtifactId.ArtifactID)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.ArtifactID other) { - if (other == flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()) return this; - if (other.hasArtifactKey()) { - mergeArtifactKey(other.getArtifactKey()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - switch (other.getDimensionsCase()) { - case PARTITIONS: { - mergePartitions(other.getPartitions()); - break; - } - case DIMENSIONS_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.core.ArtifactId.ArtifactID parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.ArtifactID) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dimensionsCase_ = 0; - private java.lang.Object dimensions_; - public DimensionsCase - getDimensionsCase() { - return DimensionsCase.forNumber( - dimensionsCase_); - } - - public Builder clearDimensions() { - dimensionsCase_ = 0; - dimensions_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKeyBuilder_ != null || artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - if (artifactKeyBuilder_ == null) { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } else { - return artifactKeyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactKey_ = value; - onChanged(); - } else { - artifactKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeyBuilder_ == null) { - artifactKey_ = builderForValue.build(); - onChanged(); - } else { - artifactKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (artifactKey_ != null) { - artifactKey_ = - flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); - } else { - artifactKey_ = value; - } - onChanged(); - } else { - artifactKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder clearArtifactKey() { - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; - onChanged(); - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { - - onChanged(); - return getArtifactKeyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - if (artifactKeyBuilder_ != null) { - return artifactKeyBuilder_.getMessageOrBuilder(); - } else { - return artifactKey_ == null ? - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeyFieldBuilder() { - if (artifactKeyBuilder_ == null) { - artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - getArtifactKey(), - getParentForChildren(), - isClean()); - artifactKey_ = null; - } - return artifactKeyBuilder_; - } - - private java.lang.Object version_ = ""; - /** - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> partitionsBuilder_; - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public boolean hasPartitions() { - return dimensionsCase_ == 3; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public flyteidl.core.ArtifactId.Partitions getPartitions() { - if (partitionsBuilder_ == null) { - if (dimensionsCase_ == 3) { - return (flyteidl.core.ArtifactId.Partitions) dimensions_; - } - return flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } else { - if (dimensionsCase_ == 3) { - return partitionsBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public Builder setPartitions(flyteidl.core.ArtifactId.Partitions value) { - if (partitionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensions_ = value; - onChanged(); - } else { - partitionsBuilder_.setMessage(value); - } - dimensionsCase_ = 3; - return this; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public Builder setPartitions( - flyteidl.core.ArtifactId.Partitions.Builder builderForValue) { - if (partitionsBuilder_ == null) { - dimensions_ = builderForValue.build(); - onChanged(); - } else { - partitionsBuilder_.setMessage(builderForValue.build()); - } - dimensionsCase_ = 3; - return this; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public Builder mergePartitions(flyteidl.core.ArtifactId.Partitions value) { - if (partitionsBuilder_ == null) { - if (dimensionsCase_ == 3 && - dimensions_ != flyteidl.core.ArtifactId.Partitions.getDefaultInstance()) { - dimensions_ = flyteidl.core.ArtifactId.Partitions.newBuilder((flyteidl.core.ArtifactId.Partitions) dimensions_) - .mergeFrom(value).buildPartial(); - } else { - dimensions_ = value; - } - onChanged(); - } else { - if (dimensionsCase_ == 3) { - partitionsBuilder_.mergeFrom(value); - } - partitionsBuilder_.setMessage(value); - } - dimensionsCase_ = 3; - return this; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public Builder clearPartitions() { - if (partitionsBuilder_ == null) { - if (dimensionsCase_ == 3) { - dimensionsCase_ = 0; - dimensions_ = null; - onChanged(); - } - } else { - if (dimensionsCase_ == 3) { - dimensionsCase_ = 0; - dimensions_ = null; - } - partitionsBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public flyteidl.core.ArtifactId.Partitions.Builder getPartitionsBuilder() { - return getPartitionsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - public flyteidl.core.ArtifactId.PartitionsOrBuilder getPartitionsOrBuilder() { - if ((dimensionsCase_ == 3) && (partitionsBuilder_ != null)) { - return partitionsBuilder_.getMessageOrBuilder(); - } else { - if (dimensionsCase_ == 3) { - return (flyteidl.core.ArtifactId.Partitions) dimensions_; - } - return flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Partitions partitions = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder> - getPartitionsFieldBuilder() { - if (partitionsBuilder_ == null) { - if (!(dimensionsCase_ == 3)) { - dimensions_ = flyteidl.core.ArtifactId.Partitions.getDefaultInstance(); - } - partitionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.Partitions, flyteidl.core.ArtifactId.Partitions.Builder, flyteidl.core.ArtifactId.PartitionsOrBuilder>( - (flyteidl.core.ArtifactId.Partitions) dimensions_, - getParentForChildren(), - isClean()); - dimensions_ = null; - } - dimensionsCase_ = 3; - onChanged();; - return partitionsBuilder_; - } - @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.core.ArtifactID) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactID) - private static final flyteidl.core.ArtifactId.ArtifactID DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.ArtifactID(); - } - - public static flyteidl.core.ArtifactId.ArtifactID getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactID parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactID(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.core.ArtifactId.ArtifactID getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactTagOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArtifactTag) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - boolean hasArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKey getArtifactKey(); - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder(); - - /** - * .flyteidl.core.LabelValue value = 2; - */ - boolean hasValue(); - /** - * .flyteidl.core.LabelValue value = 2; - */ - flyteidl.core.ArtifactId.LabelValue getValue(); - /** - * .flyteidl.core.LabelValue value = 2; - */ - flyteidl.core.ArtifactId.LabelValueOrBuilder getValueOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.ArtifactTag} - */ - public static final class ArtifactTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArtifactTag) - ArtifactTagOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactTag.newBuilder() to construct. - private ArtifactTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactTag() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactTag( - 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.ArtifactId.ArtifactKey.Builder subBuilder = null; - if (artifactKey_ != null) { - subBuilder = artifactKey_.toBuilder(); - } - artifactKey_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactKey.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactKey_); - artifactKey_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.ArtifactId.LabelValue.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.ArtifactId.LabelValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = 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.core.ArtifactId.internal_static_flyteidl_core_ArtifactTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactTag.class, flyteidl.core.ArtifactId.ArtifactTag.Builder.class); - } - - public static final int ARTIFACT_KEY_FIELD_NUMBER = 1; - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - return getArtifactKey(); - } - - public static final int VALUE_FIELD_NUMBER = 2; - private flyteidl.core.ArtifactId.LabelValue value_; - /** - * .flyteidl.core.LabelValue value = 2; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public flyteidl.core.ArtifactId.LabelValue getValue() { - return value_ == null ? flyteidl.core.ArtifactId.LabelValue.getDefaultInstance() : value_; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public flyteidl.core.ArtifactId.LabelValueOrBuilder getValueOrBuilder() { - return getValue(); - } - - 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 (artifactKey_ != null) { - output.writeMessage(1, getArtifactKey()); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getArtifactKey()); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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.core.ArtifactId.ArtifactTag)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.ArtifactTag other = (flyteidl.core.ArtifactId.ArtifactTag) obj; - - if (hasArtifactKey() != other.hasArtifactKey()) return false; - if (hasArtifactKey()) { - if (!getArtifactKey() - .equals(other.getArtifactKey())) return false; - } - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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 (hasArtifactKey()) { - hash = (37 * hash) + ARTIFACT_KEY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKey().hashCode(); - } - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactTag 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.core.ArtifactId.ArtifactTag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactTag 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.core.ArtifactId.ArtifactTag parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactTag 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.core.ArtifactId.ArtifactTag 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; - } - /** - * Protobuf type {@code flyteidl.core.ArtifactTag} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArtifactTag) - flyteidl.core.ArtifactId.ArtifactTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactTag.class, flyteidl.core.ArtifactId.ArtifactTag.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.ArtifactTag.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 (artifactKeyBuilder_ == null) { - artifactKey_ = null; - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactTag_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactTag getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactTag build() { - flyteidl.core.ArtifactId.ArtifactTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactTag buildPartial() { - flyteidl.core.ArtifactId.ArtifactTag result = new flyteidl.core.ArtifactId.ArtifactTag(this); - if (artifactKeyBuilder_ == null) { - result.artifactKey_ = artifactKey_; - } else { - result.artifactKey_ = artifactKeyBuilder_.build(); - } - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.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.core.ArtifactId.ArtifactTag) { - return mergeFrom((flyteidl.core.ArtifactId.ArtifactTag)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.ArtifactTag other) { - if (other == flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance()) return this; - if (other.hasArtifactKey()) { - mergeArtifactKey(other.getArtifactKey()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - 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.core.ArtifactId.ArtifactTag parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.ArtifactTag) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.ArtifactId.ArtifactKey artifactKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> artifactKeyBuilder_; - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public boolean hasArtifactKey() { - return artifactKeyBuilder_ != null || artifactKey_ != null; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey getArtifactKey() { - if (artifactKeyBuilder_ == null) { - return artifactKey_ == null ? flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } else { - return artifactKeyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactKey_ = value; - onChanged(); - } else { - artifactKeyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder setArtifactKey( - flyteidl.core.ArtifactId.ArtifactKey.Builder builderForValue) { - if (artifactKeyBuilder_ == null) { - artifactKey_ = builderForValue.build(); - onChanged(); - } else { - artifactKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder mergeArtifactKey(flyteidl.core.ArtifactId.ArtifactKey value) { - if (artifactKeyBuilder_ == null) { - if (artifactKey_ != null) { - artifactKey_ = - flyteidl.core.ArtifactId.ArtifactKey.newBuilder(artifactKey_).mergeFrom(value).buildPartial(); - } else { - artifactKey_ = value; - } - onChanged(); - } else { - artifactKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public Builder clearArtifactKey() { - if (artifactKeyBuilder_ == null) { - artifactKey_ = null; - onChanged(); - } else { - artifactKey_ = null; - artifactKeyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKey.Builder getArtifactKeyBuilder() { - - onChanged(); - return getArtifactKeyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - public flyteidl.core.ArtifactId.ArtifactKeyOrBuilder getArtifactKeyOrBuilder() { - if (artifactKeyBuilder_ != null) { - return artifactKeyBuilder_.getMessageOrBuilder(); - } else { - return artifactKey_ == null ? - flyteidl.core.ArtifactId.ArtifactKey.getDefaultInstance() : artifactKey_; - } - } - /** - * .flyteidl.core.ArtifactKey artifact_key = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder> - getArtifactKeyFieldBuilder() { - if (artifactKeyBuilder_ == null) { - artifactKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactKey, flyteidl.core.ArtifactId.ArtifactKey.Builder, flyteidl.core.ArtifactId.ArtifactKeyOrBuilder>( - getArtifactKey(), - getParentForChildren(), - isClean()); - artifactKey_ = null; - } - return artifactKeyBuilder_; - } - - private flyteidl.core.ArtifactId.LabelValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.LabelValue, flyteidl.core.ArtifactId.LabelValue.Builder, flyteidl.core.ArtifactId.LabelValueOrBuilder> valueBuilder_; - /** - * .flyteidl.core.LabelValue value = 2; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public flyteidl.core.ArtifactId.LabelValue getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.ArtifactId.LabelValue.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public Builder setValue(flyteidl.core.ArtifactId.LabelValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public Builder setValue( - flyteidl.core.ArtifactId.LabelValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public Builder mergeValue(flyteidl.core.ArtifactId.LabelValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.ArtifactId.LabelValue.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public flyteidl.core.ArtifactId.LabelValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - public flyteidl.core.ArtifactId.LabelValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.ArtifactId.LabelValue.getDefaultInstance() : value_; - } - } - /** - * .flyteidl.core.LabelValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.LabelValue, flyteidl.core.ArtifactId.LabelValue.Builder, flyteidl.core.ArtifactId.LabelValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.LabelValue, flyteidl.core.ArtifactId.LabelValue.Builder, flyteidl.core.ArtifactId.LabelValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @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.core.ArtifactTag) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactTag) - private static final flyteidl.core.ArtifactId.ArtifactTag DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.ArtifactTag(); - } - - public static flyteidl.core.ArtifactId.ArtifactTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactTag(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.core.ArtifactId.ArtifactTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArtifactQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArtifactQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - boolean hasArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder(); - - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - boolean hasArtifactTag(); - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - flyteidl.core.ArtifactId.ArtifactTag getArtifactTag(); - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder(); - - /** - * string uri = 3; - */ - java.lang.String getUri(); - /** - * string uri = 3; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - boolean hasBinding(); - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - flyteidl.core.ArtifactId.ArtifactBindingData getBinding(); - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getBindingOrBuilder(); - - public flyteidl.core.ArtifactId.ArtifactQuery.IdentifierCase getIdentifierCase(); - } - /** - *
-   * Uniqueness constraints for Artifacts
-   *  - project, domain, name, version, partitions
-   * Option 2 (tags are standalone, point to an individual artifact id):
-   *  - project, domain, name, alias (points to one partition if partitioned)
-   *  - project, domain, name, partition key, partition value
-   * 
- * - * Protobuf type {@code flyteidl.core.ArtifactQuery} - */ - public static final class ArtifactQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArtifactQuery) - ArtifactQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArtifactQuery.newBuilder() to construct. - private ArtifactQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArtifactQuery() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArtifactQuery( - 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.ArtifactId.ArtifactID.Builder subBuilder = null; - if (identifierCase_ == 1) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactID) identifier_).toBuilder(); - } - identifier_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactID) identifier_); - identifier_ = subBuilder.buildPartial(); - } - identifierCase_ = 1; - break; - } - case 18: { - flyteidl.core.ArtifactId.ArtifactTag.Builder subBuilder = null; - if (identifierCase_ == 2) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactTag) identifier_).toBuilder(); - } - identifier_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactTag.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactTag) identifier_); - identifier_ = subBuilder.buildPartial(); - } - identifierCase_ = 2; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - identifierCase_ = 3; - identifier_ = s; - break; - } - case 34: { - flyteidl.core.ArtifactId.ArtifactBindingData.Builder subBuilder = null; - if (identifierCase_ == 4) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactBindingData) identifier_).toBuilder(); - } - identifier_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactBindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactBindingData) identifier_); - identifier_ = subBuilder.buildPartial(); - } - identifierCase_ = 4; - 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.core.ArtifactId.internal_static_flyteidl_core_ArtifactQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactQuery.class, flyteidl.core.ArtifactId.ArtifactQuery.Builder.class); - } - - private int identifierCase_ = 0; - private java.lang.Object identifier_; - public enum IdentifierCase - implements com.google.protobuf.Internal.EnumLite { - ARTIFACT_ID(1), - ARTIFACT_TAG(2), - URI(3), - BINDING(4), - IDENTIFIER_NOT_SET(0); - private final int value; - private IdentifierCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IdentifierCase valueOf(int value) { - return forNumber(value); - } - - public static IdentifierCase forNumber(int value) { - switch (value) { - case 1: return ARTIFACT_ID; - case 2: return ARTIFACT_TAG; - case 3: return URI; - case 4: return BINDING; - case 0: return IDENTIFIER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public IdentifierCase - getIdentifierCase() { - return IdentifierCase.forNumber( - identifierCase_); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return identifierCase_ == 1; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (identifierCase_ == 1) { - return (flyteidl.core.ArtifactId.ArtifactID) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if (identifierCase_ == 1) { - return (flyteidl.core.ArtifactId.ArtifactID) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - - public static final int ARTIFACT_TAG_FIELD_NUMBER = 2; - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public boolean hasArtifactTag() { - return identifierCase_ == 2; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public flyteidl.core.ArtifactId.ArtifactTag getArtifactTag() { - if (identifierCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactTag) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder() { - if (identifierCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactTag) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - - public static final int URI_FIELD_NUMBER = 3; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (identifierCase_ == 3) { - ref = identifier_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (identifierCase_ == 3) { - identifier_ = s; - } - return s; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (identifierCase_ == 3) { - ref = identifier_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (identifierCase_ == 3) { - identifier_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BINDING_FIELD_NUMBER = 4; - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public boolean hasBinding() { - return identifierCase_ == 4; - } - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData getBinding() { - if (identifierCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - /** - *
-     * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-     * artifacts, or a partition value derived from a triggering artifact.
-     * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getBindingOrBuilder() { - if (identifierCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.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 (identifierCase_ == 1) { - output.writeMessage(1, (flyteidl.core.ArtifactId.ArtifactID) identifier_); - } - if (identifierCase_ == 2) { - output.writeMessage(2, (flyteidl.core.ArtifactId.ArtifactTag) identifier_); - } - if (identifierCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, identifier_); - } - if (identifierCase_ == 4) { - output.writeMessage(4, (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (identifierCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.ArtifactId.ArtifactID) identifier_); - } - if (identifierCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.ArtifactId.ArtifactTag) identifier_); - } - if (identifierCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, identifier_); - } - if (identifierCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_); - } - 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.core.ArtifactId.ArtifactQuery)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.ArtifactQuery other = (flyteidl.core.ArtifactId.ArtifactQuery) obj; - - if (!getIdentifierCase().equals(other.getIdentifierCase())) return false; - switch (identifierCase_) { - case 1: - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - break; - case 2: - if (!getArtifactTag() - .equals(other.getArtifactTag())) return false; - break; - case 3: - if (!getUri() - .equals(other.getUri())) return false; - break; - case 4: - if (!getBinding() - .equals(other.getBinding())) 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 (identifierCase_) { - case 1: - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - break; - case 2: - hash = (37 * hash) + ARTIFACT_TAG_FIELD_NUMBER; - hash = (53 * hash) + getArtifactTag().hashCode(); - break; - case 3: - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - break; - case 4: - hash = (37 * hash) + BINDING_FIELD_NUMBER; - hash = (53 * hash) + getBinding().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.ArtifactQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactQuery 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.core.ArtifactId.ArtifactQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactQuery 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.core.ArtifactId.ArtifactQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.ArtifactQuery 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.core.ArtifactId.ArtifactQuery 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; - } - /** - *
-     * Uniqueness constraints for Artifacts
-     *  - project, domain, name, version, partitions
-     * Option 2 (tags are standalone, point to an individual artifact id):
-     *  - project, domain, name, alias (points to one partition if partitioned)
-     *  - project, domain, name, partition key, partition value
-     * 
- * - * Protobuf type {@code flyteidl.core.ArtifactQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArtifactQuery) - flyteidl.core.ArtifactId.ArtifactQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.ArtifactQuery.class, flyteidl.core.ArtifactId.ArtifactQuery.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.ArtifactQuery.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(); - identifierCase_ = 0; - identifier_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_ArtifactQuery_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactQuery getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactQuery build() { - flyteidl.core.ArtifactId.ArtifactQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.ArtifactQuery buildPartial() { - flyteidl.core.ArtifactId.ArtifactQuery result = new flyteidl.core.ArtifactId.ArtifactQuery(this); - if (identifierCase_ == 1) { - if (artifactIdBuilder_ == null) { - result.identifier_ = identifier_; - } else { - result.identifier_ = artifactIdBuilder_.build(); - } - } - if (identifierCase_ == 2) { - if (artifactTagBuilder_ == null) { - result.identifier_ = identifier_; - } else { - result.identifier_ = artifactTagBuilder_.build(); - } - } - if (identifierCase_ == 3) { - result.identifier_ = identifier_; - } - if (identifierCase_ == 4) { - if (bindingBuilder_ == null) { - result.identifier_ = identifier_; - } else { - result.identifier_ = bindingBuilder_.build(); - } - } - result.identifierCase_ = identifierCase_; - 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.core.ArtifactId.ArtifactQuery) { - return mergeFrom((flyteidl.core.ArtifactId.ArtifactQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.ArtifactQuery other) { - if (other == flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance()) return this; - switch (other.getIdentifierCase()) { - case ARTIFACT_ID: { - mergeArtifactId(other.getArtifactId()); - break; - } - case ARTIFACT_TAG: { - mergeArtifactTag(other.getArtifactTag()); - break; - } - case URI: { - identifierCase_ = 3; - identifier_ = other.identifier_; - onChanged(); - break; - } - case BINDING: { - mergeBinding(other.getBinding()); - break; - } - case IDENTIFIER_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.core.ArtifactId.ArtifactQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.ArtifactQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int identifierCase_ = 0; - private java.lang.Object identifier_; - public IdentifierCase - getIdentifierCase() { - return IdentifierCase.forNumber( - identifierCase_); - } - - public Builder clearIdentifier() { - identifierCase_ = 0; - identifier_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdBuilder_; - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public boolean hasArtifactId() { - return identifierCase_ == 1; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (artifactIdBuilder_ == null) { - if (identifierCase_ == 1) { - return (flyteidl.core.ArtifactId.ArtifactID) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } else { - if (identifierCase_ == 1) { - return artifactIdBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identifier_ = value; - onChanged(); - } else { - artifactIdBuilder_.setMessage(value); - } - identifierCase_ = 1; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder setArtifactId( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdBuilder_ == null) { - identifier_ = builderForValue.build(); - onChanged(); - } else { - artifactIdBuilder_.setMessage(builderForValue.build()); - } - identifierCase_ = 1; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder mergeArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (identifierCase_ == 1 && - identifier_ != flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()) { - identifier_ = flyteidl.core.ArtifactId.ArtifactID.newBuilder((flyteidl.core.ArtifactId.ArtifactID) identifier_) - .mergeFrom(value).buildPartial(); - } else { - identifier_ = value; - } - onChanged(); - } else { - if (identifierCase_ == 1) { - artifactIdBuilder_.mergeFrom(value); - } - artifactIdBuilder_.setMessage(value); - } - identifierCase_ = 1; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public Builder clearArtifactId() { - if (artifactIdBuilder_ == null) { - if (identifierCase_ == 1) { - identifierCase_ = 0; - identifier_ = null; - onChanged(); - } - } else { - if (identifierCase_ == 1) { - identifierCase_ = 0; - identifier_ = null; - } - artifactIdBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdBuilder() { - return getArtifactIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if ((identifierCase_ == 1) && (artifactIdBuilder_ != null)) { - return artifactIdBuilder_.getMessageOrBuilder(); - } else { - if (identifierCase_ == 1) { - return (flyteidl.core.ArtifactId.ArtifactID) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdFieldBuilder() { - if (artifactIdBuilder_ == null) { - if (!(identifierCase_ == 1)) { - identifier_ = flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactID) identifier_, - getParentForChildren(), - isClean()); - identifier_ = null; - } - identifierCase_ = 1; - onChanged();; - return artifactIdBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder> artifactTagBuilder_; - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public boolean hasArtifactTag() { - return identifierCase_ == 2; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public flyteidl.core.ArtifactId.ArtifactTag getArtifactTag() { - if (artifactTagBuilder_ == null) { - if (identifierCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactTag) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } else { - if (identifierCase_ == 2) { - return artifactTagBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public Builder setArtifactTag(flyteidl.core.ArtifactId.ArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identifier_ = value; - onChanged(); - } else { - artifactTagBuilder_.setMessage(value); - } - identifierCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public Builder setArtifactTag( - flyteidl.core.ArtifactId.ArtifactTag.Builder builderForValue) { - if (artifactTagBuilder_ == null) { - identifier_ = builderForValue.build(); - onChanged(); - } else { - artifactTagBuilder_.setMessage(builderForValue.build()); - } - identifierCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public Builder mergeArtifactTag(flyteidl.core.ArtifactId.ArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (identifierCase_ == 2 && - identifier_ != flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance()) { - identifier_ = flyteidl.core.ArtifactId.ArtifactTag.newBuilder((flyteidl.core.ArtifactId.ArtifactTag) identifier_) - .mergeFrom(value).buildPartial(); - } else { - identifier_ = value; - } - onChanged(); - } else { - if (identifierCase_ == 2) { - artifactTagBuilder_.mergeFrom(value); - } - artifactTagBuilder_.setMessage(value); - } - identifierCase_ = 2; - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public Builder clearArtifactTag() { - if (artifactTagBuilder_ == null) { - if (identifierCase_ == 2) { - identifierCase_ = 0; - identifier_ = null; - onChanged(); - } - } else { - if (identifierCase_ == 2) { - identifierCase_ = 0; - identifier_ = null; - } - artifactTagBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public flyteidl.core.ArtifactId.ArtifactTag.Builder getArtifactTagBuilder() { - return getArtifactTagFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - public flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder() { - if ((identifierCase_ == 2) && (artifactTagBuilder_ != null)) { - return artifactTagBuilder_.getMessageOrBuilder(); - } else { - if (identifierCase_ == 2) { - return (flyteidl.core.ArtifactId.ArtifactTag) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder> - getArtifactTagFieldBuilder() { - if (artifactTagBuilder_ == null) { - if (!(identifierCase_ == 2)) { - identifier_ = flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance(); - } - artifactTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactTag) identifier_, - getParentForChildren(), - isClean()); - identifier_ = null; - } - identifierCase_ = 2; - onChanged();; - return artifactTagBuilder_; - } - - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = ""; - if (identifierCase_ == 3) { - ref = identifier_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (identifierCase_ == 3) { - identifier_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = ""; - if (identifierCase_ == 3) { - ref = identifier_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (identifierCase_ == 3) { - identifier_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 3; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - identifierCase_ = 3; - identifier_ = value; - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder clearUri() { - if (identifierCase_ == 3) { - identifierCase_ = 0; - identifier_ = null; - onChanged(); - } - return this; - } - /** - * string uri = 3; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - identifierCase_ = 3; - identifier_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder> bindingBuilder_; - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public boolean hasBinding() { - return identifierCase_ == 4; - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData getBinding() { - if (bindingBuilder_ == null) { - if (identifierCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } else { - if (identifierCase_ == 4) { - return bindingBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public Builder setBinding(flyteidl.core.ArtifactId.ArtifactBindingData value) { - if (bindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - identifier_ = value; - onChanged(); - } else { - bindingBuilder_.setMessage(value); - } - identifierCase_ = 4; - return this; - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public Builder setBinding( - flyteidl.core.ArtifactId.ArtifactBindingData.Builder builderForValue) { - if (bindingBuilder_ == null) { - identifier_ = builderForValue.build(); - onChanged(); - } else { - bindingBuilder_.setMessage(builderForValue.build()); - } - identifierCase_ = 4; - return this; - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public Builder mergeBinding(flyteidl.core.ArtifactId.ArtifactBindingData value) { - if (bindingBuilder_ == null) { - if (identifierCase_ == 4 && - identifier_ != flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance()) { - identifier_ = flyteidl.core.ArtifactId.ArtifactBindingData.newBuilder((flyteidl.core.ArtifactId.ArtifactBindingData) identifier_) - .mergeFrom(value).buildPartial(); - } else { - identifier_ = value; - } - onChanged(); - } else { - if (identifierCase_ == 4) { - bindingBuilder_.mergeFrom(value); - } - bindingBuilder_.setMessage(value); - } - identifierCase_ = 4; - return this; - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public Builder clearBinding() { - if (bindingBuilder_ == null) { - if (identifierCase_ == 4) { - identifierCase_ = 0; - identifier_ = null; - onChanged(); - } - } else { - if (identifierCase_ == 4) { - identifierCase_ = 0; - identifier_ = null; - } - bindingBuilder_.clear(); - } - return this; - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public flyteidl.core.ArtifactId.ArtifactBindingData.Builder getBindingBuilder() { - return getBindingFieldBuilder().getBuilder(); - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - public flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder getBindingOrBuilder() { - if ((identifierCase_ == 4) && (bindingBuilder_ != null)) { - return bindingBuilder_.getMessageOrBuilder(); - } else { - if (identifierCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_; - } - return flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - } - /** - *
-       * This is used in the trigger case, where a user specifies a value for an input that is one of the triggering
-       * artifacts, or a partition value derived from a triggering artifact.
-       * 
- * - * .flyteidl.core.ArtifactBindingData binding = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder> - getBindingFieldBuilder() { - if (bindingBuilder_ == null) { - if (!(identifierCase_ == 4)) { - identifier_ = flyteidl.core.ArtifactId.ArtifactBindingData.getDefaultInstance(); - } - bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactBindingData, flyteidl.core.ArtifactId.ArtifactBindingData.Builder, flyteidl.core.ArtifactId.ArtifactBindingDataOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactBindingData) identifier_, - getParentForChildren(), - isClean()); - identifier_ = null; - } - identifierCase_ = 4; - onChanged();; - return bindingBuilder_; - } - @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.core.ArtifactQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArtifactQuery) - private static final flyteidl.core.ArtifactId.ArtifactQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.ArtifactQuery(); - } - - public static flyteidl.core.ArtifactId.ArtifactQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArtifactQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArtifactQuery(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.core.ArtifactId.ArtifactQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TriggerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Trigger) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - boolean hasTriggerId(); - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTriggerId(); - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder(); - - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - java.util.List - getTriggersList(); - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - flyteidl.core.ArtifactId.ArtifactID getTriggers(int index); - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - int getTriggersCount(); - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - java.util.List - getTriggersOrBuilderList(); - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getTriggersOrBuilder( - int index); - } - /** - * Protobuf type {@code flyteidl.core.Trigger} - */ - public static final class Trigger extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Trigger) - TriggerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Trigger.newBuilder() to construct. - private Trigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Trigger() { - triggers_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Trigger( - 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 (triggerId_ != null) { - subBuilder = triggerId_.toBuilder(); - } - triggerId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(triggerId_); - triggerId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - triggers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - triggers_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - triggers_ = java.util.Collections.unmodifiableList(triggers_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Trigger_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Trigger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.Trigger.class, flyteidl.core.ArtifactId.Trigger.Builder.class); - } - - private int bitField0_; - public static final int TRIGGER_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier triggerId_; - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public boolean hasTriggerId() { - return triggerId_ != null; - } - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTriggerId() { - return triggerId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } - /** - *
-     * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-     * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder() { - return getTriggerId(); - } - - public static final int TRIGGERS_FIELD_NUMBER = 2; - private java.util.List triggers_; - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public java.util.List getTriggersList() { - return triggers_; - } - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public java.util.List - getTriggersOrBuilderList() { - return triggers_; - } - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public int getTriggersCount() { - return triggers_.size(); - } - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID getTriggers(int index) { - return triggers_.get(index); - } - /** - *
-     * These are partial artifact IDs that will be triggered on
-     * Consider making these ArtifactQuery instead.
-     * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getTriggersOrBuilder( - int index) { - return triggers_.get(index); - } - - 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 (triggerId_ != null) { - output.writeMessage(1, getTriggerId()); - } - for (int i = 0; i < triggers_.size(); i++) { - output.writeMessage(2, triggers_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (triggerId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTriggerId()); - } - for (int i = 0; i < triggers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, triggers_.get(i)); - } - 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.core.ArtifactId.Trigger)) { - return super.equals(obj); - } - flyteidl.core.ArtifactId.Trigger other = (flyteidl.core.ArtifactId.Trigger) obj; - - if (hasTriggerId() != other.hasTriggerId()) return false; - if (hasTriggerId()) { - if (!getTriggerId() - .equals(other.getTriggerId())) return false; - } - if (!getTriggersList() - .equals(other.getTriggersList())) 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 (hasTriggerId()) { - hash = (37 * hash) + TRIGGER_ID_FIELD_NUMBER; - hash = (53 * hash) + getTriggerId().hashCode(); - } - if (getTriggersCount() > 0) { - hash = (37 * hash) + TRIGGERS_FIELD_NUMBER; - hash = (53 * hash) + getTriggersList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.ArtifactId.Trigger parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.ArtifactId.Trigger parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Trigger 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.core.ArtifactId.Trigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Trigger 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.core.ArtifactId.Trigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.ArtifactId.Trigger 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.core.ArtifactId.Trigger 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; - } - /** - * Protobuf type {@code flyteidl.core.Trigger} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Trigger) - flyteidl.core.ArtifactId.TriggerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Trigger_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Trigger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.ArtifactId.Trigger.class, flyteidl.core.ArtifactId.Trigger.Builder.class); - } - - // Construct using flyteidl.core.ArtifactId.Trigger.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTriggersFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (triggerIdBuilder_ == null) { - triggerId_ = null; - } else { - triggerId_ = null; - triggerIdBuilder_ = null; - } - if (triggersBuilder_ == null) { - triggers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - triggersBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.ArtifactId.internal_static_flyteidl_core_Trigger_descriptor; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Trigger getDefaultInstanceForType() { - return flyteidl.core.ArtifactId.Trigger.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Trigger build() { - flyteidl.core.ArtifactId.Trigger result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.ArtifactId.Trigger buildPartial() { - flyteidl.core.ArtifactId.Trigger result = new flyteidl.core.ArtifactId.Trigger(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (triggerIdBuilder_ == null) { - result.triggerId_ = triggerId_; - } else { - result.triggerId_ = triggerIdBuilder_.build(); - } - if (triggersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - triggers_ = java.util.Collections.unmodifiableList(triggers_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.triggers_ = triggers_; - } else { - result.triggers_ = triggersBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.ArtifactId.Trigger) { - return mergeFrom((flyteidl.core.ArtifactId.Trigger)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.ArtifactId.Trigger other) { - if (other == flyteidl.core.ArtifactId.Trigger.getDefaultInstance()) return this; - if (other.hasTriggerId()) { - mergeTriggerId(other.getTriggerId()); - } - if (triggersBuilder_ == null) { - if (!other.triggers_.isEmpty()) { - if (triggers_.isEmpty()) { - triggers_ = other.triggers_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTriggersIsMutable(); - triggers_.addAll(other.triggers_); - } - onChanged(); - } - } else { - if (!other.triggers_.isEmpty()) { - if (triggersBuilder_.isEmpty()) { - triggersBuilder_.dispose(); - triggersBuilder_ = null; - triggers_ = other.triggers_; - bitField0_ = (bitField0_ & ~0x00000002); - triggersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTriggersFieldBuilder() : null; - } else { - triggersBuilder_.addAllMessages(other.triggers_); - } - } - } - 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.core.ArtifactId.Trigger parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.ArtifactId.Trigger) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier triggerId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> triggerIdBuilder_; - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public boolean hasTriggerId() { - return triggerIdBuilder_ != null || triggerId_ != null; - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTriggerId() { - if (triggerIdBuilder_ == null) { - return triggerId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } else { - return triggerIdBuilder_.getMessage(); - } - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder setTriggerId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (triggerIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - triggerId_ = value; - onChanged(); - } else { - triggerIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder setTriggerId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (triggerIdBuilder_ == null) { - triggerId_ = builderForValue.build(); - onChanged(); - } else { - triggerIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder mergeTriggerId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (triggerIdBuilder_ == null) { - if (triggerId_ != null) { - triggerId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(triggerId_).mergeFrom(value).buildPartial(); - } else { - triggerId_ = value; - } - onChanged(); - } else { - triggerIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public Builder clearTriggerId() { - if (triggerIdBuilder_ == null) { - triggerId_ = null; - onChanged(); - } else { - triggerId_ = null; - triggerIdBuilder_ = null; - } - - return this; - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTriggerIdBuilder() { - - onChanged(); - return getTriggerIdFieldBuilder().getBuilder(); - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTriggerIdOrBuilder() { - if (triggerIdBuilder_ != null) { - return triggerIdBuilder_.getMessageOrBuilder(); - } else { - return triggerId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : triggerId_; - } - } - /** - *
-       * This will be set to a launch plan type, but note that this is different than the actual launch plan type.
-       * 
- * - * .flyteidl.core.Identifier trigger_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTriggerIdFieldBuilder() { - if (triggerIdBuilder_ == null) { - triggerIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTriggerId(), - getParentForChildren(), - isClean()); - triggerId_ = null; - } - return triggerIdBuilder_; - } - - private java.util.List triggers_ = - java.util.Collections.emptyList(); - private void ensureTriggersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - triggers_ = new java.util.ArrayList(triggers_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> triggersBuilder_; - - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public java.util.List getTriggersList() { - if (triggersBuilder_ == null) { - return java.util.Collections.unmodifiableList(triggers_); - } else { - return triggersBuilder_.getMessageList(); - } - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public int getTriggersCount() { - if (triggersBuilder_ == null) { - return triggers_.size(); - } else { - return triggersBuilder_.getCount(); - } - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID getTriggers(int index) { - if (triggersBuilder_ == null) { - return triggers_.get(index); - } else { - return triggersBuilder_.getMessage(index); - } - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder setTriggers( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (triggersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTriggersIsMutable(); - triggers_.set(index, value); - onChanged(); - } else { - triggersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder setTriggers( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (triggersBuilder_ == null) { - ensureTriggersIsMutable(); - triggers_.set(index, builderForValue.build()); - onChanged(); - } else { - triggersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder addTriggers(flyteidl.core.ArtifactId.ArtifactID value) { - if (triggersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTriggersIsMutable(); - triggers_.add(value); - onChanged(); - } else { - triggersBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder addTriggers( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (triggersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTriggersIsMutable(); - triggers_.add(index, value); - onChanged(); - } else { - triggersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder addTriggers( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (triggersBuilder_ == null) { - ensureTriggersIsMutable(); - triggers_.add(builderForValue.build()); - onChanged(); - } else { - triggersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder addTriggers( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (triggersBuilder_ == null) { - ensureTriggersIsMutable(); - triggers_.add(index, builderForValue.build()); - onChanged(); - } else { - triggersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder addAllTriggers( - java.lang.Iterable values) { - if (triggersBuilder_ == null) { - ensureTriggersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, triggers_); - onChanged(); - } else { - triggersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder clearTriggers() { - if (triggersBuilder_ == null) { - triggers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - triggersBuilder_.clear(); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public Builder removeTriggers(int index) { - if (triggersBuilder_ == null) { - ensureTriggersIsMutable(); - triggers_.remove(index); - onChanged(); - } else { - triggersBuilder_.remove(index); - } - return this; - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getTriggersBuilder( - int index) { - return getTriggersFieldBuilder().getBuilder(index); - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getTriggersOrBuilder( - int index) { - if (triggersBuilder_ == null) { - return triggers_.get(index); } else { - return triggersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public java.util.List - getTriggersOrBuilderList() { - if (triggersBuilder_ != null) { - return triggersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(triggers_); - } - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addTriggersBuilder() { - return getTriggersFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addTriggersBuilder( - int index) { - return getTriggersFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * These are partial artifact IDs that will be triggered on
-       * Consider making these ArtifactQuery instead.
-       * 
- * - * repeated .flyteidl.core.ArtifactID triggers = 2; - */ - public java.util.List - getTriggersBuilderList() { - return getTriggersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getTriggersFieldBuilder() { - if (triggersBuilder_ == null) { - triggersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - triggers_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - triggers_ = null; - } - return triggersBuilder_; - } - @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.core.Trigger) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Trigger) - private static final flyteidl.core.ArtifactId.Trigger DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.ArtifactId.Trigger(); - } - - public static flyteidl.core.ArtifactId.Trigger getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Trigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Trigger(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.core.ArtifactId.Trigger getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArtifactKey_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArtifactKey_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArtifactBindingData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArtifactBindingData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_InputBindingData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_InputBindingData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LabelValue_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LabelValue_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Partitions_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Partitions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Partitions_ValueEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Partitions_ValueEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArtifactID_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArtifactID_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArtifactTag_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArtifactTag_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArtifactQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArtifactQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Trigger_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Trigger_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037flyteidl/core/artifact_id.proto\022\rflyte" + - "idl.core\032\036flyteidl/core/identifier.proto" + - "\"<\n\013ArtifactKey\022\017\n\007project\030\001 \001(\t\022\016\n\006doma" + - "in\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"N\n\023ArtifactBindin" + - "gData\022\r\n\005index\030\001 \001(\r\022\025\n\rpartition_key\030\002 " + - "\001(\t\022\021\n\ttransform\030\003 \001(\t\"\037\n\020InputBindingDa" + - "ta\022\013\n\003var\030\001 \001(\t\"\250\001\n\nLabelValue\022\026\n\014static" + - "_value\030\001 \001(\tH\000\022?\n\021triggered_binding\030\002 \001(" + - "\0132\".flyteidl.core.ArtifactBindingDataH\000\022" + - "8\n\rinput_binding\030\003 \001(\0132\037.flyteidl.core.I" + - "nputBindingDataH\000B\007\n\005value\"\212\001\n\nPartition" + - "s\0223\n\005value\030\001 \003(\0132$.flyteidl.core.Partiti" + - "ons.ValueEntry\032G\n\nValueEntry\022\013\n\003key\030\001 \001(" + - "\t\022(\n\005value\030\002 \001(\0132\031.flyteidl.core.LabelVa" + - "lue:\0028\001\"\216\001\n\nArtifactID\0220\n\014artifact_key\030\001" + - " \001(\0132\032.flyteidl.core.ArtifactKey\022\017\n\007vers" + - "ion\030\002 \001(\t\022/\n\npartitions\030\003 \001(\0132\031.flyteidl" + - ".core.PartitionsH\000B\014\n\ndimensions\"i\n\013Arti" + - "factTag\0220\n\014artifact_key\030\001 \001(\0132\032.flyteidl" + - ".core.ArtifactKey\022(\n\005value\030\002 \001(\0132\031.flyte" + - "idl.core.LabelValue\"\311\001\n\rArtifactQuery\0220\n" + - "\013artifact_id\030\001 \001(\0132\031.flyteidl.core.Artif" + - "actIDH\000\0222\n\014artifact_tag\030\002 \001(\0132\032.flyteidl" + - ".core.ArtifactTagH\000\022\r\n\003uri\030\003 \001(\tH\000\0225\n\007bi" + - "nding\030\004 \001(\0132\".flyteidl.core.ArtifactBind" + - "ingDataH\000B\014\n\nidentifier\"e\n\007Trigger\022-\n\ntr" + - "igger_id\030\001 \001(\0132\031.flyteidl.core.Identifie" + - "r\022+\n\010triggers\030\002 \003(\0132\031.flyteidl.core.Arti" + - "factIDB - * Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future - * - * - * Protobuf enum {@code flyteidl.core.CatalogCacheStatus} - */ - public enum CatalogCacheStatus - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Used to indicate that caching was disabled
-     * 
- * - * CACHE_DISABLED = 0; - */ - CACHE_DISABLED(0), - /** - *
-     * Used to indicate that the cache lookup resulted in no matches
-     * 
- * - * CACHE_MISS = 1; - */ - CACHE_MISS(1), - /** - *
-     * used to indicate that the associated artifact was a result of a previous execution
-     * 
- * - * CACHE_HIT = 2; - */ - CACHE_HIT(2), - /** - *
-     * used to indicate that the resultant artifact was added to the cache
-     * 
- * - * CACHE_POPULATED = 3; - */ - CACHE_POPULATED(3), - /** - *
-     * Used to indicate that cache lookup failed because of an error
-     * 
- * - * CACHE_LOOKUP_FAILURE = 4; - */ - CACHE_LOOKUP_FAILURE(4), - /** - *
-     * Used to indicate that cache lookup failed because of an error
-     * 
- * - * CACHE_PUT_FAILURE = 5; - */ - CACHE_PUT_FAILURE(5), - /** - *
-     * Used to indicate the cache lookup was skipped
-     * 
- * - * CACHE_SKIPPED = 6; - */ - CACHE_SKIPPED(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Used to indicate that caching was disabled
-     * 
- * - * CACHE_DISABLED = 0; - */ - public static final int CACHE_DISABLED_VALUE = 0; - /** - *
-     * Used to indicate that the cache lookup resulted in no matches
-     * 
- * - * CACHE_MISS = 1; - */ - public static final int CACHE_MISS_VALUE = 1; - /** - *
-     * used to indicate that the associated artifact was a result of a previous execution
-     * 
- * - * CACHE_HIT = 2; - */ - public static final int CACHE_HIT_VALUE = 2; - /** - *
-     * used to indicate that the resultant artifact was added to the cache
-     * 
- * - * CACHE_POPULATED = 3; - */ - public static final int CACHE_POPULATED_VALUE = 3; - /** - *
-     * Used to indicate that cache lookup failed because of an error
-     * 
- * - * CACHE_LOOKUP_FAILURE = 4; - */ - public static final int CACHE_LOOKUP_FAILURE_VALUE = 4; - /** - *
-     * Used to indicate that cache lookup failed because of an error
-     * 
- * - * CACHE_PUT_FAILURE = 5; - */ - public static final int CACHE_PUT_FAILURE_VALUE = 5; - /** - *
-     * Used to indicate the cache lookup was skipped
-     * 
- * - * CACHE_SKIPPED = 6; - */ - public static final int CACHE_SKIPPED_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CatalogCacheStatus valueOf(int value) { - return forNumber(value); - } - - public static CatalogCacheStatus forNumber(int value) { - switch (value) { - case 0: return CACHE_DISABLED; - case 1: return CACHE_MISS; - case 2: return CACHE_HIT; - case 3: return CACHE_POPULATED; - case 4: return CACHE_LOOKUP_FAILURE; - case 5: return CACHE_PUT_FAILURE; - case 6: return CACHE_SKIPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CatalogCacheStatus> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CatalogCacheStatus findValueByNumber(int number) { - return CatalogCacheStatus.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Catalog.getDescriptor().getEnumTypes().get(0); - } - - private static final CatalogCacheStatus[] VALUES = values(); - - public static CatalogCacheStatus valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CatalogCacheStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.CatalogCacheStatus) - } - - public interface CatalogArtifactTagOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogArtifactTag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Artifact ID is generated name
-     * 
- * - * string artifact_id = 1; - */ - java.lang.String getArtifactId(); - /** - *
-     * Artifact ID is generated name
-     * 
- * - * string artifact_id = 1; - */ - com.google.protobuf.ByteString - getArtifactIdBytes(); - - /** - *
-     * Flyte computes the tag automatically, as the hash of the values
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Flyte computes the tag automatically, as the hash of the values
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - * Protobuf type {@code flyteidl.core.CatalogArtifactTag} - */ - public static final class CatalogArtifactTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogArtifactTag) - CatalogArtifactTagOrBuilder { - private static final long serialVersionUID = 0L; - // Use CatalogArtifactTag.newBuilder() to construct. - private CatalogArtifactTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CatalogArtifactTag() { - artifactId_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CatalogArtifactTag( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - artifactId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogArtifactTag.class, flyteidl.core.Catalog.CatalogArtifactTag.Builder.class); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object artifactId_; - /** - *
-     * Artifact ID is generated name
-     * 
- * - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } - } - /** - *
-     * Artifact ID is generated name
-     * 
- * - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * Flyte computes the tag automatically, as the hash of the values
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Flyte computes the tag automatically, as the hash of the values
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getArtifactIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, artifactId_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getArtifactIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, artifactId_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - 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.core.Catalog.CatalogArtifactTag)) { - return super.equals(obj); - } - flyteidl.core.Catalog.CatalogArtifactTag other = (flyteidl.core.Catalog.CatalogArtifactTag) obj; - - if (!getArtifactId() - .equals(other.getArtifactId())) return false; - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogArtifactTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogArtifactTag 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.core.Catalog.CatalogArtifactTag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogArtifactTag 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.core.Catalog.CatalogArtifactTag parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogArtifactTag 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.core.Catalog.CatalogArtifactTag 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; - } - /** - * Protobuf type {@code flyteidl.core.CatalogArtifactTag} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogArtifactTag) - flyteidl.core.Catalog.CatalogArtifactTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogArtifactTag.class, flyteidl.core.Catalog.CatalogArtifactTag.Builder.class); - } - - // Construct using flyteidl.core.Catalog.CatalogArtifactTag.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(); - artifactId_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogArtifactTag_descriptor; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogArtifactTag getDefaultInstanceForType() { - return flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogArtifactTag build() { - flyteidl.core.Catalog.CatalogArtifactTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogArtifactTag buildPartial() { - flyteidl.core.Catalog.CatalogArtifactTag result = new flyteidl.core.Catalog.CatalogArtifactTag(this); - result.artifactId_ = artifactId_; - result.name_ = name_; - 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.core.Catalog.CatalogArtifactTag) { - return mergeFrom((flyteidl.core.Catalog.CatalogArtifactTag)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Catalog.CatalogArtifactTag other) { - if (other == flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance()) return this; - if (!other.getArtifactId().isEmpty()) { - artifactId_ = other.artifactId_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.core.Catalog.CatalogArtifactTag parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Catalog.CatalogArtifactTag) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object artifactId_ = ""; - /** - *
-       * Artifact ID is generated name
-       * 
- * - * string artifact_id = 1; - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Artifact ID is generated name
-       * 
- * - * string artifact_id = 1; - */ - public com.google.protobuf.ByteString - getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Artifact ID is generated name
-       * 
- * - * string artifact_id = 1; - */ - public Builder setArtifactId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactId_ = value; - onChanged(); - return this; - } - /** - *
-       * Artifact ID is generated name
-       * 
- * - * string artifact_id = 1; - */ - public Builder clearArtifactId() { - - artifactId_ = getDefaultInstance().getArtifactId(); - onChanged(); - return this; - } - /** - *
-       * Artifact ID is generated name
-       * 
- * - * string artifact_id = 1; - */ - public Builder setArtifactIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - artifactId_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Flyte computes the tag automatically, as the hash of the values
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Flyte computes the tag automatically, as the hash of the values
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Flyte computes the tag automatically, as the hash of the values
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Flyte computes the tag automatically, as the hash of the values
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Flyte computes the tag automatically, as the hash of the values
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.core.CatalogArtifactTag) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogArtifactTag) - private static final flyteidl.core.Catalog.CatalogArtifactTag DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogArtifactTag(); - } - - public static flyteidl.core.Catalog.CatalogArtifactTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogArtifactTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogArtifactTag(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.core.Catalog.CatalogArtifactTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CatalogMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - boolean hasDatasetId(); - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getDatasetId(); - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder(); - - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - boolean hasArtifactTag(); - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag(); - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder(); - - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - boolean hasSourceTaskExecution(); - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution(); - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder(); - - public flyteidl.core.Catalog.CatalogMetadata.SourceExecutionCase getSourceExecutionCase(); - } - /** - *
-   * Catalog artifact information with specific metadata
-   * 
- * - * Protobuf type {@code flyteidl.core.CatalogMetadata} - */ - public static final class CatalogMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogMetadata) - CatalogMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use CatalogMetadata.newBuilder() to construct. - private CatalogMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CatalogMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CatalogMetadata( - 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 (datasetId_ != null) { - subBuilder = datasetId_.toBuilder(); - } - datasetId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(datasetId_); - datasetId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Catalog.CatalogArtifactTag.Builder subBuilder = null; - if (artifactTag_ != null) { - subBuilder = artifactTag_.toBuilder(); - } - artifactTag_ = input.readMessage(flyteidl.core.Catalog.CatalogArtifactTag.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactTag_); - artifactTag_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (sourceExecutionCase_ == 3) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_).toBuilder(); - } - sourceExecution_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); - sourceExecution_ = subBuilder.buildPartial(); - } - sourceExecutionCase_ = 3; - 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.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogMetadata.class, flyteidl.core.Catalog.CatalogMetadata.Builder.class); - } - - private int sourceExecutionCase_ = 0; - private java.lang.Object sourceExecution_; - public enum SourceExecutionCase - implements com.google.protobuf.Internal.EnumLite { - SOURCE_TASK_EXECUTION(3), - SOURCEEXECUTION_NOT_SET(0); - private final int value; - private SourceExecutionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SourceExecutionCase valueOf(int value) { - return forNumber(value); - } - - public static SourceExecutionCase forNumber(int value) { - switch (value) { - case 3: return SOURCE_TASK_EXECUTION; - case 0: return SOURCEEXECUTION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SourceExecutionCase - getSourceExecutionCase() { - return SourceExecutionCase.forNumber( - sourceExecutionCase_); - } - - public static final int DATASET_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier datasetId_; - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public boolean hasDatasetId() { - return datasetId_ != null; - } - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getDatasetId() { - return datasetId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; - } - /** - *
-     * Dataset ID in the catalog
-     * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder() { - return getDatasetId(); - } - - public static final int ARTIFACT_TAG_FIELD_NUMBER = 2; - private flyteidl.core.Catalog.CatalogArtifactTag artifactTag_; - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public boolean hasArtifactTag() { - return artifactTag_ != null; - } - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag() { - return artifactTag_ == null ? flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; - } - /** - *
-     * Artifact tag in the catalog
-     * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder() { - return getArtifactTag(); - } - - public static final int SOURCE_TASK_EXECUTION_FIELD_NUMBER = 3; - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public boolean hasSourceTaskExecution() { - return sourceExecutionCase_ == 3; - } - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution() { - if (sourceExecutionCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder() { - if (sourceExecutionCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (datasetId_ != null) { - output.writeMessage(1, getDatasetId()); - } - if (artifactTag_ != null) { - output.writeMessage(2, getArtifactTag()); - } - if (sourceExecutionCase_ == 3) { - output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (datasetId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDatasetId()); - } - if (artifactTag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getArtifactTag()); - } - if (sourceExecutionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_); - } - 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.core.Catalog.CatalogMetadata)) { - return super.equals(obj); - } - flyteidl.core.Catalog.CatalogMetadata other = (flyteidl.core.Catalog.CatalogMetadata) obj; - - if (hasDatasetId() != other.hasDatasetId()) return false; - if (hasDatasetId()) { - if (!getDatasetId() - .equals(other.getDatasetId())) return false; - } - if (hasArtifactTag() != other.hasArtifactTag()) return false; - if (hasArtifactTag()) { - if (!getArtifactTag() - .equals(other.getArtifactTag())) return false; - } - if (!getSourceExecutionCase().equals(other.getSourceExecutionCase())) return false; - switch (sourceExecutionCase_) { - case 3: - if (!getSourceTaskExecution() - .equals(other.getSourceTaskExecution())) 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(); - if (hasDatasetId()) { - hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; - hash = (53 * hash) + getDatasetId().hashCode(); - } - if (hasArtifactTag()) { - hash = (37 * hash) + ARTIFACT_TAG_FIELD_NUMBER; - hash = (53 * hash) + getArtifactTag().hashCode(); - } - switch (sourceExecutionCase_) { - case 3: - hash = (37 * hash) + SOURCE_TASK_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getSourceTaskExecution().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Catalog.CatalogMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogMetadata 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.core.Catalog.CatalogMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogMetadata 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.core.Catalog.CatalogMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogMetadata 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.core.Catalog.CatalogMetadata 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; - } - /** - *
-     * Catalog artifact information with specific metadata
-     * 
- * - * Protobuf type {@code flyteidl.core.CatalogMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogMetadata) - flyteidl.core.Catalog.CatalogMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogMetadata.class, flyteidl.core.Catalog.CatalogMetadata.Builder.class); - } - - // Construct using flyteidl.core.Catalog.CatalogMetadata.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 (datasetIdBuilder_ == null) { - datasetId_ = null; - } else { - datasetId_ = null; - datasetIdBuilder_ = null; - } - if (artifactTagBuilder_ == null) { - artifactTag_ = null; - } else { - artifactTag_ = null; - artifactTagBuilder_ = null; - } - sourceExecutionCase_ = 0; - sourceExecution_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogMetadata getDefaultInstanceForType() { - return flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogMetadata build() { - flyteidl.core.Catalog.CatalogMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogMetadata buildPartial() { - flyteidl.core.Catalog.CatalogMetadata result = new flyteidl.core.Catalog.CatalogMetadata(this); - if (datasetIdBuilder_ == null) { - result.datasetId_ = datasetId_; - } else { - result.datasetId_ = datasetIdBuilder_.build(); - } - if (artifactTagBuilder_ == null) { - result.artifactTag_ = artifactTag_; - } else { - result.artifactTag_ = artifactTagBuilder_.build(); - } - if (sourceExecutionCase_ == 3) { - if (sourceTaskExecutionBuilder_ == null) { - result.sourceExecution_ = sourceExecution_; - } else { - result.sourceExecution_ = sourceTaskExecutionBuilder_.build(); - } - } - result.sourceExecutionCase_ = sourceExecutionCase_; - 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.core.Catalog.CatalogMetadata) { - return mergeFrom((flyteidl.core.Catalog.CatalogMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Catalog.CatalogMetadata other) { - if (other == flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance()) return this; - if (other.hasDatasetId()) { - mergeDatasetId(other.getDatasetId()); - } - if (other.hasArtifactTag()) { - mergeArtifactTag(other.getArtifactTag()); - } - switch (other.getSourceExecutionCase()) { - case SOURCE_TASK_EXECUTION: { - mergeSourceTaskExecution(other.getSourceTaskExecution()); - break; - } - case SOURCEEXECUTION_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.core.Catalog.CatalogMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Catalog.CatalogMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sourceExecutionCase_ = 0; - private java.lang.Object sourceExecution_; - public SourceExecutionCase - getSourceExecutionCase() { - return SourceExecutionCase.forNumber( - sourceExecutionCase_); - } - - public Builder clearSourceExecution() { - sourceExecutionCase_ = 0; - sourceExecution_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.Identifier datasetId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> datasetIdBuilder_; - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public boolean hasDatasetId() { - return datasetIdBuilder_ != null || datasetId_ != null; - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getDatasetId() { - if (datasetIdBuilder_ == null) { - return datasetId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; - } else { - return datasetIdBuilder_.getMessage(); - } - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public Builder setDatasetId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (datasetIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - datasetId_ = value; - onChanged(); - } else { - datasetIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public Builder setDatasetId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (datasetIdBuilder_ == null) { - datasetId_ = builderForValue.build(); - onChanged(); - } else { - datasetIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public Builder mergeDatasetId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (datasetIdBuilder_ == null) { - if (datasetId_ != null) { - datasetId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(datasetId_).mergeFrom(value).buildPartial(); - } else { - datasetId_ = value; - } - onChanged(); - } else { - datasetIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public Builder clearDatasetId() { - if (datasetIdBuilder_ == null) { - datasetId_ = null; - onChanged(); - } else { - datasetId_ = null; - datasetIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getDatasetIdBuilder() { - - onChanged(); - return getDatasetIdFieldBuilder().getBuilder(); - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getDatasetIdOrBuilder() { - if (datasetIdBuilder_ != null) { - return datasetIdBuilder_.getMessageOrBuilder(); - } else { - return datasetId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : datasetId_; - } - } - /** - *
-       * Dataset ID in the catalog
-       * 
- * - * .flyteidl.core.Identifier dataset_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getDatasetIdFieldBuilder() { - if (datasetIdBuilder_ == null) { - datasetIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getDatasetId(), - getParentForChildren(), - isClean()); - datasetId_ = null; - } - return datasetIdBuilder_; - } - - private flyteidl.core.Catalog.CatalogArtifactTag artifactTag_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder> artifactTagBuilder_; - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public boolean hasArtifactTag() { - return artifactTagBuilder_ != null || artifactTag_ != null; - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public flyteidl.core.Catalog.CatalogArtifactTag getArtifactTag() { - if (artifactTagBuilder_ == null) { - return artifactTag_ == null ? flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; - } else { - return artifactTagBuilder_.getMessage(); - } - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public Builder setArtifactTag(flyteidl.core.Catalog.CatalogArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactTag_ = value; - onChanged(); - } else { - artifactTagBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public Builder setArtifactTag( - flyteidl.core.Catalog.CatalogArtifactTag.Builder builderForValue) { - if (artifactTagBuilder_ == null) { - artifactTag_ = builderForValue.build(); - onChanged(); - } else { - artifactTagBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public Builder mergeArtifactTag(flyteidl.core.Catalog.CatalogArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (artifactTag_ != null) { - artifactTag_ = - flyteidl.core.Catalog.CatalogArtifactTag.newBuilder(artifactTag_).mergeFrom(value).buildPartial(); - } else { - artifactTag_ = value; - } - onChanged(); - } else { - artifactTagBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public Builder clearArtifactTag() { - if (artifactTagBuilder_ == null) { - artifactTag_ = null; - onChanged(); - } else { - artifactTag_ = null; - artifactTagBuilder_ = null; - } - - return this; - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public flyteidl.core.Catalog.CatalogArtifactTag.Builder getArtifactTagBuilder() { - - onChanged(); - return getArtifactTagFieldBuilder().getBuilder(); - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - public flyteidl.core.Catalog.CatalogArtifactTagOrBuilder getArtifactTagOrBuilder() { - if (artifactTagBuilder_ != null) { - return artifactTagBuilder_.getMessageOrBuilder(); - } else { - return artifactTag_ == null ? - flyteidl.core.Catalog.CatalogArtifactTag.getDefaultInstance() : artifactTag_; - } - } - /** - *
-       * Artifact tag in the catalog
-       * 
- * - * .flyteidl.core.CatalogArtifactTag artifact_tag = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder> - getArtifactTagFieldBuilder() { - if (artifactTagBuilder_ == null) { - artifactTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogArtifactTag, flyteidl.core.Catalog.CatalogArtifactTag.Builder, flyteidl.core.Catalog.CatalogArtifactTagOrBuilder>( - getArtifactTag(), - getParentForChildren(), - isClean()); - artifactTag_ = null; - } - return artifactTagBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> sourceTaskExecutionBuilder_; - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public boolean hasSourceTaskExecution() { - return sourceExecutionCase_ == 3; - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getSourceTaskExecution() { - if (sourceTaskExecutionBuilder_ == null) { - if (sourceExecutionCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } else { - if (sourceExecutionCase_ == 3) { - return sourceTaskExecutionBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public Builder setSourceTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (sourceTaskExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceExecution_ = value; - onChanged(); - } else { - sourceTaskExecutionBuilder_.setMessage(value); - } - sourceExecutionCase_ = 3; - return this; - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public Builder setSourceTaskExecution( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (sourceTaskExecutionBuilder_ == null) { - sourceExecution_ = builderForValue.build(); - onChanged(); - } else { - sourceTaskExecutionBuilder_.setMessage(builderForValue.build()); - } - sourceExecutionCase_ = 3; - return this; - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public Builder mergeSourceTaskExecution(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (sourceTaskExecutionBuilder_ == null) { - if (sourceExecutionCase_ == 3 && - sourceExecution_ != flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) { - sourceExecution_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_) - .mergeFrom(value).buildPartial(); - } else { - sourceExecution_ = value; - } - onChanged(); - } else { - if (sourceExecutionCase_ == 3) { - sourceTaskExecutionBuilder_.mergeFrom(value); - } - sourceTaskExecutionBuilder_.setMessage(value); - } - sourceExecutionCase_ = 3; - return this; - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public Builder clearSourceTaskExecution() { - if (sourceTaskExecutionBuilder_ == null) { - if (sourceExecutionCase_ == 3) { - sourceExecutionCase_ = 0; - sourceExecution_ = null; - onChanged(); - } - } else { - if (sourceExecutionCase_ == 3) { - sourceExecutionCase_ = 0; - sourceExecution_ = null; - } - sourceTaskExecutionBuilder_.clear(); - } - return this; - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getSourceTaskExecutionBuilder() { - return getSourceTaskExecutionFieldBuilder().getBuilder(); - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getSourceTaskExecutionOrBuilder() { - if ((sourceExecutionCase_ == 3) && (sourceTaskExecutionBuilder_ != null)) { - return sourceTaskExecutionBuilder_.getMessageOrBuilder(); - } else { - if (sourceExecutionCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier source_task_execution = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getSourceTaskExecutionFieldBuilder() { - if (sourceTaskExecutionBuilder_ == null) { - if (!(sourceExecutionCase_ == 3)) { - sourceExecution_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - sourceTaskExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) sourceExecution_, - getParentForChildren(), - isClean()); - sourceExecution_ = null; - } - sourceExecutionCase_ = 3; - onChanged();; - return sourceTaskExecutionBuilder_; - } - @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.core.CatalogMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogMetadata) - private static final flyteidl.core.Catalog.CatalogMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogMetadata(); - } - - public static flyteidl.core.Catalog.CatalogMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogMetadata(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.core.Catalog.CatalogMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CatalogReservationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CatalogReservation) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.core.CatalogReservation} - */ - public static final class CatalogReservation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CatalogReservation) - CatalogReservationOrBuilder { - private static final long serialVersionUID = 0L; - // Use CatalogReservation.newBuilder() to construct. - private CatalogReservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CatalogReservation() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CatalogReservation( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogReservation.class, flyteidl.core.Catalog.CatalogReservation.Builder.class); - } - - /** - *
-     * Indicates the status of a catalog reservation operation.
-     * 
- * - * Protobuf enum {@code flyteidl.core.CatalogReservation.Status} - */ - public enum Status - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Used to indicate that reservations are disabled
-       * 
- * - * RESERVATION_DISABLED = 0; - */ - RESERVATION_DISABLED(0), - /** - *
-       * Used to indicate that a reservation was successfully acquired or extended
-       * 
- * - * RESERVATION_ACQUIRED = 1; - */ - RESERVATION_ACQUIRED(1), - /** - *
-       * Used to indicate that an active reservation currently exists
-       * 
- * - * RESERVATION_EXISTS = 2; - */ - RESERVATION_EXISTS(2), - /** - *
-       * Used to indicate that the reservation has been successfully released
-       * 
- * - * RESERVATION_RELEASED = 3; - */ - RESERVATION_RELEASED(3), - /** - *
-       * Used to indicate that a reservation operation resulted in failure
-       * 
- * - * RESERVATION_FAILURE = 4; - */ - RESERVATION_FAILURE(4), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Used to indicate that reservations are disabled
-       * 
- * - * RESERVATION_DISABLED = 0; - */ - public static final int RESERVATION_DISABLED_VALUE = 0; - /** - *
-       * Used to indicate that a reservation was successfully acquired or extended
-       * 
- * - * RESERVATION_ACQUIRED = 1; - */ - public static final int RESERVATION_ACQUIRED_VALUE = 1; - /** - *
-       * Used to indicate that an active reservation currently exists
-       * 
- * - * RESERVATION_EXISTS = 2; - */ - public static final int RESERVATION_EXISTS_VALUE = 2; - /** - *
-       * Used to indicate that the reservation has been successfully released
-       * 
- * - * RESERVATION_RELEASED = 3; - */ - public static final int RESERVATION_RELEASED_VALUE = 3; - /** - *
-       * Used to indicate that a reservation operation resulted in failure
-       * 
- * - * RESERVATION_FAILURE = 4; - */ - public static final int RESERVATION_FAILURE_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Status valueOf(int value) { - return forNumber(value); - } - - public static Status forNumber(int value) { - switch (value) { - case 0: return RESERVATION_DISABLED; - case 1: return RESERVATION_ACQUIRED; - case 2: return RESERVATION_EXISTS; - case 3: return RESERVATION_RELEASED; - case 4: return RESERVATION_FAILURE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Status> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Status findValueByNumber(int number) { - return Status.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Catalog.CatalogReservation.getDescriptor().getEnumTypes().get(0); - } - - private static final Status[] VALUES = values(); - - public static Status valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Status(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.CatalogReservation.Status) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.core.Catalog.CatalogReservation)) { - return super.equals(obj); - } - flyteidl.core.Catalog.CatalogReservation other = (flyteidl.core.Catalog.CatalogReservation) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Catalog.CatalogReservation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Catalog.CatalogReservation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogReservation 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.core.Catalog.CatalogReservation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogReservation 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.core.Catalog.CatalogReservation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Catalog.CatalogReservation 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.core.Catalog.CatalogReservation 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; - } - /** - * Protobuf type {@code flyteidl.core.CatalogReservation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CatalogReservation) - flyteidl.core.Catalog.CatalogReservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Catalog.CatalogReservation.class, flyteidl.core.Catalog.CatalogReservation.Builder.class); - } - - // Construct using flyteidl.core.Catalog.CatalogReservation.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Catalog.internal_static_flyteidl_core_CatalogReservation_descriptor; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogReservation getDefaultInstanceForType() { - return flyteidl.core.Catalog.CatalogReservation.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogReservation build() { - flyteidl.core.Catalog.CatalogReservation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Catalog.CatalogReservation buildPartial() { - flyteidl.core.Catalog.CatalogReservation result = new flyteidl.core.Catalog.CatalogReservation(this); - 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.core.Catalog.CatalogReservation) { - return mergeFrom((flyteidl.core.Catalog.CatalogReservation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Catalog.CatalogReservation other) { - if (other == flyteidl.core.Catalog.CatalogReservation.getDefaultInstance()) return this; - 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.core.Catalog.CatalogReservation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Catalog.CatalogReservation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.core.CatalogReservation) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CatalogReservation) - private static final flyteidl.core.Catalog.CatalogReservation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Catalog.CatalogReservation(); - } - - public static flyteidl.core.Catalog.CatalogReservation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CatalogReservation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CatalogReservation(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.core.Catalog.CatalogReservation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CatalogArtifactTag_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CatalogArtifactTag_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CatalogMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CatalogMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CatalogReservation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CatalogReservation_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/core/catalog.proto\022\rflyteidl." + - "core\032\036flyteidl/core/identifier.proto\"7\n\022" + - "CatalogArtifactTag\022\023\n\013artifact_id\030\001 \001(\t\022" + - "\014\n\004name\030\002 \001(\t\"\326\001\n\017CatalogMetadata\022-\n\ndat" + - "aset_id\030\001 \001(\0132\031.flyteidl.core.Identifier" + - "\0227\n\014artifact_tag\030\002 \001(\0132!.flyteidl.core.C" + - "atalogArtifactTag\022G\n\025source_task_executi" + - "on\030\003 \001(\0132&.flyteidl.core.TaskExecutionId" + - "entifierH\000B\022\n\020source_execution\"\236\001\n\022Catal" + - "ogReservation\"\207\001\n\006Status\022\030\n\024RESERVATION_" + - "DISABLED\020\000\022\030\n\024RESERVATION_ACQUIRED\020\001\022\026\n\022" + - "RESERVATION_EXISTS\020\002\022\030\n\024RESERVATION_RELE" + - "ASED\020\003\022\027\n\023RESERVATION_FAILURE\020\004*\240\001\n\022Cata" + - "logCacheStatus\022\022\n\016CACHE_DISABLED\020\000\022\016\n\nCA" + - "CHE_MISS\020\001\022\r\n\tCACHE_HIT\020\002\022\023\n\017CACHE_POPUL" + - "ATED\020\003\022\030\n\024CACHE_LOOKUP_FAILURE\020\004\022\025\n\021CACH" + - "E_PUT_FAILURE\020\005\022\021\n\rCACHE_SKIPPED\020\006B - * A list of all the node ids that are downstream from a given node id - * - * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - int getDownstreamCount(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - boolean containsDownstream( - java.lang.String key); - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDownstream(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - java.util.Map - getDownstreamMap(); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key); - - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - int getUpstreamCount(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - boolean containsUpstream( - java.lang.String key); - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getUpstream(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - java.util.Map - getUpstreamMap(); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue); - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key); - } - /** - *
-   * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-   * step uses this created ConnectionSet
-   * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class ConnectionSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet) - ConnectionSetOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConnectionSet.newBuilder() to construct. - private ConnectionSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectionSet() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConnectionSet( - 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 58: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - downstream__ = input.readMessage( - DownstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - downstream_.getMutableMap().put( - downstream__.getKey(), downstream__.getValue()); - break; - } - case 66: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - upstream__ = input.readMessage( - UpstreamDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - upstream_.getMutableMap().put( - upstream__.getKey(), upstream__.getValue()); - 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.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - public interface IdListOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConnectionSet.IdList) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated string ids = 1; - */ - java.util.List - getIdsList(); - /** - * repeated string ids = 1; - */ - int getIdsCount(); - /** - * repeated string ids = 1; - */ - java.lang.String getIds(int index); - /** - * repeated string ids = 1; - */ - com.google.protobuf.ByteString - getIdsBytes(int index); - } - /** - * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} - */ - public static final class IdList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConnectionSet.IdList) - IdListOrBuilder { - private static final long serialVersionUID = 0L; - // Use IdList.newBuilder() to construct. - private IdList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IdList() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IdList( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - ids_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - public static final int IDS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList ids_; - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_; - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - - 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 { - for (int i = 0; i < ids_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ids_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < ids_.size(); i++) { - dataSize += computeStringSizeNoTag(ids_.getRaw(i)); - } - size += dataSize; - size += 1 * getIdsList().size(); - } - 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.core.Compiler.ConnectionSet.IdList)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet.IdList other = (flyteidl.core.Compiler.ConnectionSet.IdList) obj; - - if (!getIdsList() - .equals(other.getIdsList())) 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 (getIdsCount() > 0) { - hash = (37 * hash) + IDS_FIELD_NUMBER; - hash = (53 * hash) + getIdsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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.core.Compiler.ConnectionSet.IdList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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.core.Compiler.ConnectionSet.IdList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet.IdList 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.core.Compiler.ConnectionSet.IdList 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; - } - /** - * Protobuf type {@code flyteidl.core.ConnectionSet.IdList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet.IdList) - flyteidl.core.Compiler.ConnectionSet.IdListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.IdList.class, flyteidl.core.Compiler.ConnectionSet.IdList.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.IdList.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(); - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList build() { - flyteidl.core.Compiler.ConnectionSet.IdList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet.IdList buildPartial() { - flyteidl.core.Compiler.ConnectionSet.IdList result = new flyteidl.core.Compiler.ConnectionSet.IdList(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - ids_ = ids_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.ids_ = ids_; - 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.core.Compiler.ConnectionSet.IdList) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet.IdList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet.IdList other) { - if (other == flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()) return this; - if (!other.ids_.isEmpty()) { - if (ids_.isEmpty()) { - ids_ = other.ids_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIdsIsMutable(); - ids_.addAll(other.ids_); - } - onChanged(); - } - 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.core.Compiler.ConnectionSet.IdList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet.IdList) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIdsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - ids_ = new com.google.protobuf.LazyStringArrayList(ids_); - bitField0_ |= 0x00000001; - } - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ProtocolStringList - getIdsList() { - return ids_.getUnmodifiableView(); - } - /** - * repeated string ids = 1; - */ - public int getIdsCount() { - return ids_.size(); - } - /** - * repeated string ids = 1; - */ - public java.lang.String getIds(int index) { - return ids_.get(index); - } - /** - * repeated string ids = 1; - */ - public com.google.protobuf.ByteString - getIdsBytes(int index) { - return ids_.getByteString(index); - } - /** - * repeated string ids = 1; - */ - public Builder setIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addAllIds( - java.lang.Iterable values) { - ensureIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ids_); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder clearIds() { - ids_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * repeated string ids = 1; - */ - public Builder addIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIdsIsMutable(); - ids_.add(value); - onChanged(); - return this; - } - @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.core.ConnectionSet.IdList) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet.IdList) - private static final flyteidl.core.Compiler.ConnectionSet.IdList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet.IdList(); - } - - public static flyteidl.core.Compiler.ConnectionSet.IdList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IdList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IdList(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.core.Compiler.ConnectionSet.IdList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int DOWNSTREAM_FIELD_NUMBER = 7; - private static final class DownstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids that are downstream from a given node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int UPSTREAM_FIELD_NUMBER = 8; - private static final class UpstreamDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Compiler.ConnectionSet.IdList.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * A list of all the node ids, that are upstream of this node id
-     * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDownstream(), - DownstreamDefaultEntryHolder.defaultEntry, - 7); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetUpstream(), - UpstreamDefaultEntryHolder.defaultEntry, - 8); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetDownstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - downstream__ = DownstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, downstream__); - } - for (java.util.Map.Entry entry - : internalGetUpstream().getMap().entrySet()) { - com.google.protobuf.MapEntry - upstream__ = UpstreamDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, upstream__); - } - 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.core.Compiler.ConnectionSet)) { - return super.equals(obj); - } - flyteidl.core.Compiler.ConnectionSet other = (flyteidl.core.Compiler.ConnectionSet) obj; - - if (!internalGetDownstream().equals( - other.internalGetDownstream())) return false; - if (!internalGetUpstream().equals( - other.internalGetUpstream())) 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 (!internalGetDownstream().getMap().isEmpty()) { - hash = (37 * hash) + DOWNSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetDownstream().hashCode(); - } - if (!internalGetUpstream().getMap().isEmpty()) { - hash = (37 * hash) + UPSTREAM_FIELD_NUMBER; - hash = (53 * hash) + internalGetUpstream().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.ConnectionSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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.core.Compiler.ConnectionSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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.core.Compiler.ConnectionSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.ConnectionSet 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.core.Compiler.ConnectionSet 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; - } - /** - *
-     * Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation
-     * step uses this created ConnectionSet
-     * 
- * - * Protobuf type {@code flyteidl.core.ConnectionSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConnectionSet) - flyteidl.core.Compiler.ConnectionSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 7: - return internalGetDownstream(); - case 8: - return internalGetUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 7: - return internalGetMutableDownstream(); - case 8: - return internalGetMutableUpstream(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.ConnectionSet.class, flyteidl.core.Compiler.ConnectionSet.Builder.class); - } - - // Construct using flyteidl.core.Compiler.ConnectionSet.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(); - internalGetMutableDownstream().clear(); - internalGetMutableUpstream().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_ConnectionSet_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return flyteidl.core.Compiler.ConnectionSet.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet build() { - flyteidl.core.Compiler.ConnectionSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.ConnectionSet buildPartial() { - flyteidl.core.Compiler.ConnectionSet result = new flyteidl.core.Compiler.ConnectionSet(this); - int from_bitField0_ = bitField0_; - result.downstream_ = internalGetDownstream(); - result.downstream_.makeImmutable(); - result.upstream_ = internalGetUpstream(); - result.upstream_.makeImmutable(); - 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.core.Compiler.ConnectionSet) { - return mergeFrom((flyteidl.core.Compiler.ConnectionSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.ConnectionSet other) { - if (other == flyteidl.core.Compiler.ConnectionSet.getDefaultInstance()) return this; - internalGetMutableDownstream().mergeFrom( - other.internalGetDownstream()); - internalGetMutableUpstream().mergeFrom( - other.internalGetUpstream()); - 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.core.Compiler.ConnectionSet parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.ConnectionSet) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> downstream_; - private com.google.protobuf.MapField - internalGetDownstream() { - if (downstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - return downstream_; - } - private com.google.protobuf.MapField - internalGetMutableDownstream() { - onChanged();; - if (downstream_ == null) { - downstream_ = com.google.protobuf.MapField.newMapField( - DownstreamDefaultEntryHolder.defaultEntry); - } - if (!downstream_.isMutable()) { - downstream_ = downstream_.copy(); - } - return downstream_; - } - - public int getDownstreamCount() { - return internalGetDownstream().getMap().size(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public boolean containsDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDownstream().getMap().containsKey(key); - } - /** - * Use {@link #getDownstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDownstream() { - return getDownstreamMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public java.util.Map getDownstreamMap() { - return internalGetDownstream().getMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getDownstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDownstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDownstream() { - internalGetMutableDownstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder removeDownstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDownstream() { - return internalGetMutableDownstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - public Builder putDownstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDownstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids that are downstream from a given node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> downstream = 7; - */ - - public Builder putAllDownstream( - java.util.Map values) { - internalGetMutableDownstream().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Compiler.ConnectionSet.IdList> upstream_; - private com.google.protobuf.MapField - internalGetUpstream() { - if (upstream_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - return upstream_; - } - private com.google.protobuf.MapField - internalGetMutableUpstream() { - onChanged();; - if (upstream_ == null) { - upstream_ = com.google.protobuf.MapField.newMapField( - UpstreamDefaultEntryHolder.defaultEntry); - } - if (!upstream_.isMutable()) { - upstream_ = upstream_.copy(); - } - return upstream_; - } - - public int getUpstreamCount() { - return internalGetUpstream().getMap().size(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public boolean containsUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetUpstream().getMap().containsKey(key); - } - /** - * Use {@link #getUpstreamMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getUpstream() { - return getUpstreamMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public java.util.Map getUpstreamMap() { - return internalGetUpstream().getMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrDefault( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public flyteidl.core.Compiler.ConnectionSet.IdList getUpstreamOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetUpstream().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearUpstream() { - internalGetMutableUpstream().getMutableMap() - .clear(); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder removeUpstream( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableUpstream() { - return internalGetMutableUpstream().getMutableMap(); - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - public Builder putUpstream( - java.lang.String key, - flyteidl.core.Compiler.ConnectionSet.IdList value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableUpstream().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * A list of all the node ids, that are upstream of this node id
-       * 
- * - * map<string, .flyteidl.core.ConnectionSet.IdList> upstream = 8; - */ - - public Builder putAllUpstream( - java.util.Map values) { - internalGetMutableUpstream().getMutableMap() - .putAll(values); - return this; - } - @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.core.ConnectionSet) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConnectionSet) - private static final flyteidl.core.Compiler.ConnectionSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.ConnectionSet(); - } - - public static flyteidl.core.Compiler.ConnectionSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectionSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConnectionSet(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.core.Compiler.ConnectionSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getTemplate(); - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - boolean hasConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSet getConnections(); - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder(); - } - /** - *
-   * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class CompiledWorkflow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflow) - CompiledWorkflowOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflow.newBuilder() to construct. - private CompiledWorkflow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflow() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflow( - 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.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Compiler.ConnectionSet.Builder subBuilder = null; - if (connections_ != null) { - subBuilder = connections_.toBuilder(); - } - connections_ = input.readMessage(flyteidl.core.Compiler.ConnectionSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(connections_); - connections_ = 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.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate template_; - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained Workflow Template
-     * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int CONNECTIONS_FIELD_NUMBER = 2; - private flyteidl.core.Compiler.ConnectionSet connections_; - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connections_ != null; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - /** - *
-     * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-     * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - return getConnections(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - if (connections_ != null) { - output.writeMessage(2, getConnections()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - if (connections_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnections()); - } - 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.core.Compiler.CompiledWorkflow)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflow other = (flyteidl.core.Compiler.CompiledWorkflow) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (hasConnections() != other.hasConnections()) return false; - if (hasConnections()) { - if (!getConnections() - .equals(other.getConnections())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - if (hasConnections()) { - hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; - hash = (53 * hash) + getConnections().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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.core.Compiler.CompiledWorkflow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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.core.Compiler.CompiledWorkflow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflow 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.core.Compiler.CompiledWorkflow 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; - } - /** - *
-     * Output of the compilation Step. This object represents one workflow. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflow) - flyteidl.core.Compiler.CompiledWorkflowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflow.class, flyteidl.core.Compiler.CompiledWorkflow.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflow.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - if (connectionsBuilder_ == null) { - connections_ = null; - } else { - connections_ = null; - connectionsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflow_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow build() { - flyteidl.core.Compiler.CompiledWorkflow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflow buildPartial() { - flyteidl.core.Compiler.CompiledWorkflow result = new flyteidl.core.Compiler.CompiledWorkflow(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - if (connectionsBuilder_ == null) { - result.connections_ = connections_; - } else { - result.connections_ = connectionsBuilder_.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.core.Compiler.CompiledWorkflow) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflow other) { - if (other == flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (other.hasConnections()) { - mergeConnections(other.getConnections()); - } - 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.core.Compiler.CompiledWorkflow parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflow) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.WorkflowTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Workflow.WorkflowTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained Workflow Template
-       * 
- * - * .flyteidl.core.WorkflowTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private flyteidl.core.Compiler.ConnectionSet connections_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> connectionsBuilder_; - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public boolean hasConnections() { - return connectionsBuilder_ != null || connections_ != null; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet getConnections() { - if (connectionsBuilder_ == null) { - return connections_ == null ? flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } else { - return connectionsBuilder_.getMessage(); - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connections_ = value; - onChanged(); - } else { - connectionsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder setConnections( - flyteidl.core.Compiler.ConnectionSet.Builder builderForValue) { - if (connectionsBuilder_ == null) { - connections_ = builderForValue.build(); - onChanged(); - } else { - connectionsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder mergeConnections(flyteidl.core.Compiler.ConnectionSet value) { - if (connectionsBuilder_ == null) { - if (connections_ != null) { - connections_ = - flyteidl.core.Compiler.ConnectionSet.newBuilder(connections_).mergeFrom(value).buildPartial(); - } else { - connections_ = value; - } - onChanged(); - } else { - connectionsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public Builder clearConnections() { - if (connectionsBuilder_ == null) { - connections_ = null; - onChanged(); - } else { - connections_ = null; - connectionsBuilder_ = null; - } - - return this; - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSet.Builder getConnectionsBuilder() { - - onChanged(); - return getConnectionsFieldBuilder().getBuilder(); - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - public flyteidl.core.Compiler.ConnectionSetOrBuilder getConnectionsOrBuilder() { - if (connectionsBuilder_ != null) { - return connectionsBuilder_.getMessageOrBuilder(); - } else { - return connections_ == null ? - flyteidl.core.Compiler.ConnectionSet.getDefaultInstance() : connections_; - } - } - /** - *
-       * For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored.
-       * 
- * - * .flyteidl.core.ConnectionSet connections = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder> - getConnectionsFieldBuilder() { - if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.ConnectionSet, flyteidl.core.Compiler.ConnectionSet.Builder, flyteidl.core.Compiler.ConnectionSetOrBuilder>( - getConnections(), - getParentForChildren(), - isClean()); - connections_ = null; - } - return connectionsBuilder_; - } - @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.core.CompiledWorkflow) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflow) - private static final flyteidl.core.Compiler.CompiledWorkflow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflow(); - } - - public static flyteidl.core.Compiler.CompiledWorkflow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflow(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.core.Compiler.CompiledWorkflow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - boolean hasTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - } - /** - *
-   * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class CompiledTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledTask) - CompiledTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledTask.newBuilder() to construct. - private CompiledTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledTask( - 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.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = 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.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - public static final int TEMPLATE_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Completely contained TaskTemplate
-     * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - 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 (template_ != null) { - output.writeMessage(1, getTemplate()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTemplate()); - } - 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.core.Compiler.CompiledTask)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledTask other = (flyteidl.core.Compiler.CompiledTask) obj; - - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) 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 (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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.core.Compiler.CompiledTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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.core.Compiler.CompiledTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledTask 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.core.Compiler.CompiledTask 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; - } - /** - *
-     * Output of the Compilation step. This object represent one Task. We store more metadata at this layer
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledTask) - flyteidl.core.Compiler.CompiledTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledTask.class, flyteidl.core.Compiler.CompiledTask.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledTask.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 (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledTask_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask build() { - flyteidl.core.Compiler.CompiledTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledTask buildPartial() { - flyteidl.core.Compiler.CompiledTask result = new flyteidl.core.Compiler.CompiledTask(this); - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.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.core.Compiler.CompiledTask) { - return mergeFrom((flyteidl.core.Compiler.CompiledTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledTask other) { - if (other == flyteidl.core.Compiler.CompiledTask.getDefaultInstance()) return this; - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - 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.core.Compiler.CompiledTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Completely contained TaskTemplate
-       * 
- * - * .flyteidl.core.TaskTemplate template = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - @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.core.CompiledTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledTask) - private static final flyteidl.core.Compiler.CompiledTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledTask(); - } - - public static flyteidl.core.Compiler.CompiledTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledTask(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.core.Compiler.CompiledTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CompiledWorkflowClosureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.CompiledWorkflowClosure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - boolean hasPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflow getPrimary(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder(); - - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - int getSubWorkflowsCount(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - java.util.List - getSubWorkflowsOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index); - - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTask getTasks(int index); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - int getTasksCount(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-   * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-   * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-   * compiled subworkflows.
-   * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class CompiledWorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.CompiledWorkflowClosure) - CompiledWorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use CompiledWorkflowClosure.newBuilder() to construct. - private CompiledWorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CompiledWorkflowClosure() { - subWorkflows_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CompiledWorkflowClosure( - 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.Compiler.CompiledWorkflow.Builder subBuilder = null; - if (primary_ != null) { - subBuilder = primary_.toBuilder(); - } - primary_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(primary_); - primary_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - subWorkflows_.add( - input.readMessage(flyteidl.core.Compiler.CompiledWorkflow.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tasks_.add( - input.readMessage(flyteidl.core.Compiler.CompiledTask.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int PRIMARY_FIELD_NUMBER = 1; - private flyteidl.core.Compiler.CompiledWorkflow primary_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primary_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - return getPrimary(); - } - - public static final int SUB_WORKFLOWS_FIELD_NUMBER = 2; - private java.util.List subWorkflows_; - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - return subWorkflows_; - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - return subWorkflows_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - return subWorkflows_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-     * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-     * as an inlined workflow
-     *+optional
-     * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - return subWorkflows_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 3; - private java.util.List tasks_; - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-     *+required (at least 1)
-     * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - 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 (primary_ != null) { - output.writeMessage(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - output.writeMessage(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(3, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (primary_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrimary()); - } - for (int i = 0; i < subWorkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, subWorkflows_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tasks_.get(i)); - } - 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.core.Compiler.CompiledWorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.Compiler.CompiledWorkflowClosure other = (flyteidl.core.Compiler.CompiledWorkflowClosure) obj; - - if (hasPrimary() != other.hasPrimary()) return false; - if (hasPrimary()) { - if (!getPrimary() - .equals(other.getPrimary())) return false; - } - if (!getSubWorkflowsList() - .equals(other.getSubWorkflowsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasPrimary()) { - hash = (37 * hash) + PRIMARY_FIELD_NUMBER; - hash = (53 * hash) + getPrimary().hashCode(); - } - if (getSubWorkflowsCount() > 0) { - hash = (37 * hash) + SUB_WORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.core.Compiler.CompiledWorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.core.Compiler.CompiledWorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Compiler.CompiledWorkflowClosure 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.core.Compiler.CompiledWorkflowClosure 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; - } - /** - *
-     * A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow
-     * and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that
-     * will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of
-     * compiled subworkflows.
-     * 
- * - * Protobuf type {@code flyteidl.core.CompiledWorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.CompiledWorkflowClosure) - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Compiler.CompiledWorkflowClosure.class, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSubWorkflowsFieldBuilder(); - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (primaryBuilder_ == null) { - primary_ = null; - } else { - primary_ = null; - primaryBuilder_ = null; - } - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - subWorkflowsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Compiler.internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure build() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Compiler.CompiledWorkflowClosure buildPartial() { - flyteidl.core.Compiler.CompiledWorkflowClosure result = new flyteidl.core.Compiler.CompiledWorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (primaryBuilder_ == null) { - result.primary_ = primary_; - } else { - result.primary_ = primaryBuilder_.build(); - } - if (subWorkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = java.util.Collections.unmodifiableList(subWorkflows_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.subWorkflows_ = subWorkflows_; - } else { - result.subWorkflows_ = subWorkflowsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.Compiler.CompiledWorkflowClosure) { - return mergeFrom((flyteidl.core.Compiler.CompiledWorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Compiler.CompiledWorkflowClosure other) { - if (other == flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance()) return this; - if (other.hasPrimary()) { - mergePrimary(other.getPrimary()); - } - if (subWorkflowsBuilder_ == null) { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflows_.isEmpty()) { - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSubWorkflowsIsMutable(); - subWorkflows_.addAll(other.subWorkflows_); - } - onChanged(); - } - } else { - if (!other.subWorkflows_.isEmpty()) { - if (subWorkflowsBuilder_.isEmpty()) { - subWorkflowsBuilder_.dispose(); - subWorkflowsBuilder_ = null; - subWorkflows_ = other.subWorkflows_; - bitField0_ = (bitField0_ & ~0x00000002); - subWorkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubWorkflowsFieldBuilder() : null; - } else { - subWorkflowsBuilder_.addAllMessages(other.subWorkflows_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000004); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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.core.Compiler.CompiledWorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Compiler.CompiledWorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Compiler.CompiledWorkflow primary_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> primaryBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public boolean hasPrimary() { - return primaryBuilder_ != null || primary_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow getPrimary() { - if (primaryBuilder_ == null) { - return primary_ == null ? flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } else { - return primaryBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - primary_ = value; - onChanged(); - } else { - primaryBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder setPrimary( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (primaryBuilder_ == null) { - primary_ = builderForValue.build(); - onChanged(); - } else { - primaryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder mergePrimary(flyteidl.core.Compiler.CompiledWorkflow value) { - if (primaryBuilder_ == null) { - if (primary_ != null) { - primary_ = - flyteidl.core.Compiler.CompiledWorkflow.newBuilder(primary_).mergeFrom(value).buildPartial(); - } else { - primary_ = value; - } - onChanged(); - } else { - primaryBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public Builder clearPrimary() { - if (primaryBuilder_ == null) { - primary_ = null; - onChanged(); - } else { - primary_ = null; - primaryBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getPrimaryBuilder() { - - onChanged(); - return getPrimaryFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getPrimaryOrBuilder() { - if (primaryBuilder_ != null) { - return primaryBuilder_.getMessageOrBuilder(); - } else { - return primary_ == null ? - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance() : primary_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.CompiledWorkflow primary = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getPrimaryFieldBuilder() { - if (primaryBuilder_ == null) { - primaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - getPrimary(), - getParentForChildren(), - isClean()); - primary_ = null; - } - return primaryBuilder_; - } - - private java.util.List subWorkflows_ = - java.util.Collections.emptyList(); - private void ensureSubWorkflowsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - subWorkflows_ = new java.util.ArrayList(subWorkflows_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> subWorkflowsBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List getSubWorkflowsList() { - if (subWorkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subWorkflows_); - } else { - return subWorkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public int getSubWorkflowsCount() { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.size(); - } else { - return subWorkflowsBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow getSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); - } else { - return subWorkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder setSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows(flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow value) { - if (subWorkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, value); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addSubWorkflows( - int index, flyteidl.core.Compiler.CompiledWorkflow.Builder builderForValue) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subWorkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder addAllSubWorkflows( - java.lang.Iterable values) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subWorkflows_); - onChanged(); - } else { - subWorkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder clearSubWorkflows() { - if (subWorkflowsBuilder_ == null) { - subWorkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - subWorkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public Builder removeSubWorkflows(int index) { - if (subWorkflowsBuilder_ == null) { - ensureSubWorkflowsIsMutable(); - subWorkflows_.remove(index); - onChanged(); - } else { - subWorkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder getSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowOrBuilder getSubWorkflowsOrBuilder( - int index) { - if (subWorkflowsBuilder_ == null) { - return subWorkflows_.get(index); } else { - return subWorkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsOrBuilderList() { - if (subWorkflowsBuilder_ != null) { - return subWorkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subWorkflows_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder() { - return getSubWorkflowsFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflow.Builder addSubWorkflowsBuilder( - int index) { - return getSubWorkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledWorkflow.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a
-       * unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow
-       * as an inlined workflow
-       *+optional
-       * 
- * - * repeated .flyteidl.core.CompiledWorkflow sub_workflows = 2; - */ - public java.util.List - getSubWorkflowsBuilderList() { - return getSubWorkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder> - getSubWorkflowsFieldBuilder() { - if (subWorkflowsBuilder_ == null) { - subWorkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflow, flyteidl.core.Compiler.CompiledWorkflow.Builder, flyteidl.core.Compiler.CompiledWorkflowOrBuilder>( - subWorkflows_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - subWorkflows_ = null; - } - return subWorkflowsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> tasksBuilder_; - - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder setTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks(flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addTasks( - int index, flyteidl.core.Compiler.CompiledTask.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTaskOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public flyteidl.core.Compiler.CompiledTask.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Compiler.CompiledTask.getDefaultInstance()); - } - /** - *
-       * Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id
-       *+required (at least 1)
-       * 
- * - * repeated .flyteidl.core.CompiledTask tasks = 3; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Compiler.CompiledTask, flyteidl.core.Compiler.CompiledTask.Builder, flyteidl.core.Compiler.CompiledTaskOrBuilder>( - tasks_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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.core.CompiledWorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.CompiledWorkflowClosure) - private static final flyteidl.core.Compiler.CompiledWorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Compiler.CompiledWorkflowClosure(); - } - - public static flyteidl.core.Compiler.CompiledWorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CompiledWorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CompiledWorkflowClosure(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.core.Compiler.CompiledWorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_IdList_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_IdList_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_DownstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConnectionSet_UpstreamEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflow_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflow_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_CompiledWorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_CompiledWorkflowClosure_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/core/compiler.proto\022\rflyteidl" + - ".core\032\034flyteidl/core/workflow.proto\032\031fly" + - "teidl/core/tasks.proto\"\324\002\n\rConnectionSet" + - "\022@\n\ndownstream\030\007 \003(\0132,.flyteidl.core.Con" + - "nectionSet.DownstreamEntry\022<\n\010upstream\030\010" + - " \003(\0132*.flyteidl.core.ConnectionSet.Upstr" + - "eamEntry\032\025\n\006IdList\022\013\n\003ids\030\001 \003(\t\032V\n\017Downs" + - "treamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002 \001(\0132#" + - ".flyteidl.core.ConnectionSet.IdList:\0028\001\032" + - "T\n\rUpstreamEntry\022\013\n\003key\030\001 \001(\t\0222\n\005value\030\002" + - " \001(\0132#.flyteidl.core.ConnectionSet.IdLis" + - "t:\0028\001\"x\n\020CompiledWorkflow\0221\n\010template\030\001 " + - "\001(\0132\037.flyteidl.core.WorkflowTemplate\0221\n\013" + - "connections\030\002 \001(\0132\034.flyteidl.core.Connec" + - "tionSet\"=\n\014CompiledTask\022-\n\010template\030\001 \001(" + - "\0132\033.flyteidl.core.TaskTemplate\"\257\001\n\027Compi" + - "ledWorkflowClosure\0220\n\007primary\030\001 \001(\0132\037.fl" + - "yteidl.core.CompiledWorkflow\0226\n\rsub_work" + - "flows\030\002 \003(\0132\037.flyteidl.core.CompiledWork" + - "flow\022*\n\005tasks\030\003 \003(\0132\033.flyteidl.core.Comp" + - "iledTaskB.flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - flyteidl.core.Condition.ComparisonExpression.Operator getOperator(); - - /** - * .flyteidl.core.Operand left_value = 2; - */ - boolean hasLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.Operand getLeftValue(); - /** - * .flyteidl.core.Operand left_value = 2; - */ - flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder(); - - /** - * .flyteidl.core.Operand right_value = 3; - */ - boolean hasRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.Operand getRightValue(); - /** - * .flyteidl.core.Operand right_value = 3; - */ - flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder(); - } - /** - *
-   * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-   * Each expression results in a boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class ComparisonExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ComparisonExpression) - ComparisonExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ComparisonExpression.newBuilder() to construct. - private ComparisonExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ComparisonExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ComparisonExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (leftValue_ != null) { - subBuilder = leftValue_.toBuilder(); - } - leftValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftValue_); - leftValue_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.Operand.Builder subBuilder = null; - if (rightValue_ != null) { - subBuilder = rightValue_.toBuilder(); - } - rightValue_ = input.readMessage(flyteidl.core.Condition.Operand.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightValue_); - rightValue_ = 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.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - /** - *
-     * Binary Operator for each expression
-     * 
- * - * Protobuf enum {@code flyteidl.core.ComparisonExpression.Operator} - */ - public enum Operator - implements com.google.protobuf.ProtocolMessageEnum { - /** - * EQ = 0; - */ - EQ(0), - /** - * NEQ = 1; - */ - NEQ(1), - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - GT(2), - /** - * GTE = 3; - */ - GTE(3), - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - LT(4), - /** - * LTE = 5; - */ - LTE(5), - UNRECOGNIZED(-1), - ; - - /** - * EQ = 0; - */ - public static final int EQ_VALUE = 0; - /** - * NEQ = 1; - */ - public static final int NEQ_VALUE = 1; - /** - *
-       * Greater Than
-       * 
- * - * GT = 2; - */ - public static final int GT_VALUE = 2; - /** - * GTE = 3; - */ - public static final int GTE_VALUE = 3; - /** - *
-       * Less Than
-       * 
- * - * LT = 4; - */ - public static final int LT_VALUE = 4; - /** - * LTE = 5; - */ - public static final int LTE_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operator valueOf(int value) { - return forNumber(value); - } - - public static Operator forNumber(int value) { - switch (value) { - case 0: return EQ; - case 1: return NEQ; - case 2: return GT; - case 3: return GTE; - case 4: return LT; - case 5: return LTE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operator findValueByNumber(int number) { - return Operator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Condition.ComparisonExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final Operator[] VALUES = values(); - - public static Operator valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ComparisonExpression.Operator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - - public static final int LEFT_VALUE_FIELD_NUMBER = 2; - private flyteidl.core.Condition.Operand leftValue_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - return getLeftValue(); - } - - public static final int RIGHT_VALUE_FIELD_NUMBER = 3; - private flyteidl.core.Condition.Operand rightValue_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - return getRightValue(); - } - - 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 (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftValue_ != null) { - output.writeMessage(2, getLeftValue()); - } - if (rightValue_ != null) { - output.writeMessage(3, getRightValue()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ComparisonExpression.Operator.EQ.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftValue()); - } - if (rightValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightValue()); - } - 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.core.Condition.ComparisonExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ComparisonExpression other = (flyteidl.core.Condition.ComparisonExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftValue() != other.hasLeftValue()) return false; - if (hasLeftValue()) { - if (!getLeftValue() - .equals(other.getLeftValue())) return false; - } - if (hasRightValue() != other.hasRightValue()) return false; - if (hasRightValue()) { - if (!getRightValue() - .equals(other.getRightValue())) 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(); - hash = (37 * hash) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftValue()) { - hash = (37 * hash) + LEFT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getLeftValue().hashCode(); - } - if (hasRightValue()) { - hash = (37 * hash) + RIGHT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getRightValue().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ComparisonExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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.core.Condition.ComparisonExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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.core.Condition.ComparisonExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ComparisonExpression 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.core.Condition.ComparisonExpression 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; - } - /** - *
-     * Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables.
-     * Each expression results in a boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.ComparisonExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ComparisonExpression) - flyteidl.core.Condition.ComparisonExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ComparisonExpression.class, flyteidl.core.Condition.ComparisonExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ComparisonExpression.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(); - operator_ = 0; - - if (leftValueBuilder_ == null) { - leftValue_ = null; - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - if (rightValueBuilder_ == null) { - rightValue_ = null; - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ComparisonExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression build() { - flyteidl.core.Condition.ComparisonExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ComparisonExpression buildPartial() { - flyteidl.core.Condition.ComparisonExpression result = new flyteidl.core.Condition.ComparisonExpression(this); - result.operator_ = operator_; - if (leftValueBuilder_ == null) { - result.leftValue_ = leftValue_; - } else { - result.leftValue_ = leftValueBuilder_.build(); - } - if (rightValueBuilder_ == null) { - result.rightValue_ = rightValue_; - } else { - result.rightValue_ = rightValueBuilder_.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.core.Condition.ComparisonExpression) { - return mergeFrom((flyteidl.core.Condition.ComparisonExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ComparisonExpression other) { - if (other == flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftValue()) { - mergeLeftValue(other.getLeftValue()); - } - if (other.hasRightValue()) { - mergeRightValue(other.getRightValue()); - } - 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.core.Condition.ComparisonExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ComparisonExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public flyteidl.core.Condition.ComparisonExpression.Operator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ComparisonExpression.Operator result = flyteidl.core.Condition.ComparisonExpression.Operator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ComparisonExpression.Operator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ComparisonExpression.Operator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ComparisonExpression.Operator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.Operand leftValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> leftValueBuilder_; - /** - * .flyteidl.core.Operand left_value = 2; - */ - public boolean hasLeftValue() { - return leftValueBuilder_ != null || leftValue_ != null; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand getLeftValue() { - if (leftValueBuilder_ == null) { - return leftValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } else { - return leftValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftValue_ = value; - onChanged(); - } else { - leftValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder setLeftValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (leftValueBuilder_ == null) { - leftValue_ = builderForValue.build(); - onChanged(); - } else { - leftValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder mergeLeftValue(flyteidl.core.Condition.Operand value) { - if (leftValueBuilder_ == null) { - if (leftValue_ != null) { - leftValue_ = - flyteidl.core.Condition.Operand.newBuilder(leftValue_).mergeFrom(value).buildPartial(); - } else { - leftValue_ = value; - } - onChanged(); - } else { - leftValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public Builder clearLeftValue() { - if (leftValueBuilder_ == null) { - leftValue_ = null; - onChanged(); - } else { - leftValue_ = null; - leftValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.Operand.Builder getLeftValueBuilder() { - - onChanged(); - return getLeftValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - public flyteidl.core.Condition.OperandOrBuilder getLeftValueOrBuilder() { - if (leftValueBuilder_ != null) { - return leftValueBuilder_.getMessageOrBuilder(); - } else { - return leftValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : leftValue_; - } - } - /** - * .flyteidl.core.Operand left_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getLeftValueFieldBuilder() { - if (leftValueBuilder_ == null) { - leftValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getLeftValue(), - getParentForChildren(), - isClean()); - leftValue_ = null; - } - return leftValueBuilder_; - } - - private flyteidl.core.Condition.Operand rightValue_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> rightValueBuilder_; - /** - * .flyteidl.core.Operand right_value = 3; - */ - public boolean hasRightValue() { - return rightValueBuilder_ != null || rightValue_ != null; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand getRightValue() { - if (rightValueBuilder_ == null) { - return rightValue_ == null ? flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } else { - return rightValueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightValue_ = value; - onChanged(); - } else { - rightValueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder setRightValue( - flyteidl.core.Condition.Operand.Builder builderForValue) { - if (rightValueBuilder_ == null) { - rightValue_ = builderForValue.build(); - onChanged(); - } else { - rightValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder mergeRightValue(flyteidl.core.Condition.Operand value) { - if (rightValueBuilder_ == null) { - if (rightValue_ != null) { - rightValue_ = - flyteidl.core.Condition.Operand.newBuilder(rightValue_).mergeFrom(value).buildPartial(); - } else { - rightValue_ = value; - } - onChanged(); - } else { - rightValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public Builder clearRightValue() { - if (rightValueBuilder_ == null) { - rightValue_ = null; - onChanged(); - } else { - rightValue_ = null; - rightValueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.Operand.Builder getRightValueBuilder() { - - onChanged(); - return getRightValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - public flyteidl.core.Condition.OperandOrBuilder getRightValueOrBuilder() { - if (rightValueBuilder_ != null) { - return rightValueBuilder_.getMessageOrBuilder(); - } else { - return rightValue_ == null ? - flyteidl.core.Condition.Operand.getDefaultInstance() : rightValue_; - } - } - /** - * .flyteidl.core.Operand right_value = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder> - getRightValueFieldBuilder() { - if (rightValueBuilder_ == null) { - rightValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.Operand, flyteidl.core.Condition.Operand.Builder, flyteidl.core.Condition.OperandOrBuilder>( - getRightValue(), - getParentForChildren(), - isClean()); - rightValue_ = null; - } - return rightValueBuilder_; - } - @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.core.ComparisonExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ComparisonExpression) - private static final flyteidl.core.Condition.ComparisonExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ComparisonExpression(); - } - - public static flyteidl.core.Condition.ComparisonExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComparisonExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComparisonExpression(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.core.Condition.ComparisonExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OperandOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Operand) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.Primitive getPrimitive(); - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - boolean hasScalar(); - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - public flyteidl.core.Condition.Operand.ValCase getValCase(); - } - /** - *
-   * Defines an operand to a comparison expression.
-   * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Operand extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Operand) - OperandOrBuilder { - private static final long serialVersionUID = 0L; - // Use Operand.newBuilder() to construct. - private Operand(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Operand() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Operand( - 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.Literals.Primitive.Builder subBuilder = null; - if (valCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) val_).toBuilder(); - } - val_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) val_); - val_ = subBuilder.buildPartial(); - } - valCase_ = 1; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - valCase_ = 2; - val_ = s; - break; - } - case 26: { - flyteidl.core.Literals.Scalar.Builder subBuilder = null; - if (valCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.Scalar) val_).toBuilder(); - } - val_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) val_); - val_ = subBuilder.buildPartial(); - } - valCase_ = 3; - 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.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - private int valCase_ = 0; - private java.lang.Object val_; - public enum ValCase - implements com.google.protobuf.Internal.EnumLite { - @java.lang.Deprecated PRIMITIVE(1), - VAR(2), - SCALAR(3), - VAL_NOT_SET(0); - private final int value; - private ValCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValCase valueOf(int value) { - return forNumber(value); - } - - public static ValCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return VAR; - case 3: return SCALAR; - case 0: return VAL_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.Primitive getPrimitive() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - *
-     * Can be a constant
-     * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int VAR_FIELD_NUMBER = 2; - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } - } - /** - *
-     * Or one of this node's input variables
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCALAR_FIELD_NUMBER = 3; - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public boolean hasScalar() { - return valCase_ == 3; - } - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valCase_ == 3) { - return (flyteidl.core.Literals.Scalar) val_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * Replace the primitive field
-     * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valCase_ == 3) { - return (flyteidl.core.Literals.Scalar) val_; - } - return flyteidl.core.Literals.Scalar.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 (valCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, val_); - } - if (valCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.Scalar) val_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) val_); - } - if (valCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, val_); - } - if (valCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.Scalar) val_); - } - 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.core.Condition.Operand)) { - return super.equals(obj); - } - flyteidl.core.Condition.Operand other = (flyteidl.core.Condition.Operand) obj; - - if (!getValCase().equals(other.getValCase())) return false; - switch (valCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getVar() - .equals(other.getVar())) return false; - break; - case 3: - if (!getScalar() - .equals(other.getScalar())) 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 (valCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - break; - case 3: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.Operand parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.Operand parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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.core.Condition.Operand parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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.core.Condition.Operand parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.Operand 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.core.Condition.Operand 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; - } - /** - *
-     * Defines an operand to a comparison expression.
-     * 
- * - * Protobuf type {@code flyteidl.core.Operand} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Operand) - flyteidl.core.Condition.OperandOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.Operand.class, flyteidl.core.Condition.Operand.Builder.class); - } - - // Construct using flyteidl.core.Condition.Operand.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(); - valCase_ = 0; - val_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_Operand_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand getDefaultInstanceForType() { - return flyteidl.core.Condition.Operand.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.Operand build() { - flyteidl.core.Condition.Operand result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.Operand buildPartial() { - flyteidl.core.Condition.Operand result = new flyteidl.core.Condition.Operand(this); - if (valCase_ == 1) { - if (primitiveBuilder_ == null) { - result.val_ = val_; - } else { - result.val_ = primitiveBuilder_.build(); - } - } - if (valCase_ == 2) { - result.val_ = val_; - } - if (valCase_ == 3) { - if (scalarBuilder_ == null) { - result.val_ = val_; - } else { - result.val_ = scalarBuilder_.build(); - } - } - result.valCase_ = valCase_; - 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.core.Condition.Operand) { - return mergeFrom((flyteidl.core.Condition.Operand)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.Operand other) { - if (other == flyteidl.core.Condition.Operand.getDefaultInstance()) return this; - switch (other.getValCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case VAR: { - valCase_ = 2; - val_ = other.val_; - onChanged(); - break; - } - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case VAL_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.core.Condition.Operand parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.Operand) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valCase_ = 0; - private java.lang.Object val_; - public ValCase - getValCase() { - return ValCase.forNumber( - valCase_); - } - - public Builder clearVal() { - valCase_ = 0; - val_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasPrimitive() { - return valCase_ == 1; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - val_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valCase_ == 1 && - val_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - val_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) val_) - .mergeFrom(value).buildPartial(); - } else { - val_ = value; - } - onChanged(); - } else { - if (valCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valCase_ = 1; - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - onChanged(); - } - } else { - if (valCase_ == 1) { - valCase_ = 0; - val_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valCase_ == 1) { - return (flyteidl.core.Literals.Primitive) val_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - *
-       * Can be a constant
-       * 
- * - * .flyteidl.core.Primitive primitive = 1 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valCase_ == 1)) { - val_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) val_, - getParentForChildren(), - isClean()); - val_ = null; - } - valCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valCase_ == 2) { - val_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = ""; - if (valCase_ == 2) { - ref = val_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valCase_ == 2) { - val_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - if (valCase_ == 2) { - valCase_ = 0; - val_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Or one of this node's input variables
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valCase_ = 2; - val_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public boolean hasScalar() { - return valCase_ == 3; - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valCase_ == 3) { - return (flyteidl.core.Literals.Scalar) val_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valCase_ == 3) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - val_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valCase_ = 3; - return this; - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - val_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valCase_ = 3; - return this; - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valCase_ == 3 && - val_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - val_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) val_) - .mergeFrom(value).buildPartial(); - } else { - val_ = value; - } - onChanged(); - } else { - if (valCase_ == 3) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valCase_ = 3; - return this; - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valCase_ == 3) { - valCase_ = 0; - val_ = null; - onChanged(); - } - } else { - if (valCase_ == 3) { - valCase_ = 0; - val_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valCase_ == 3) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valCase_ == 3) { - return (flyteidl.core.Literals.Scalar) val_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * Replace the primitive field
-       * 
- * - * .flyteidl.core.Scalar scalar = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valCase_ == 3)) { - val_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) val_, - getParentForChildren(), - isClean()); - val_ = null; - } - valCase_ = 3; - onChanged();; - return scalarBuilder_; - } - @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.core.Operand) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Operand) - private static final flyteidl.core.Condition.Operand DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.Operand(); - } - - public static flyteidl.core.Condition.Operand getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Operand parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Operand(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.core.Condition.Operand getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BooleanExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BooleanExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - boolean hasConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpression getConjunction(); - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder(); - - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - boolean hasComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpression getComparison(); - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder(); - - public flyteidl.core.Condition.BooleanExpression.ExprCase getExprCase(); - } - /** - *
-   * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-   * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-   * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class BooleanExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BooleanExpression) - BooleanExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BooleanExpression.newBuilder() to construct. - private BooleanExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BooleanExpression() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BooleanExpression( - 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.Condition.ConjunctionExpression.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = ((flyteidl.core.Condition.ConjunctionExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ConjunctionExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ConjunctionExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: { - flyteidl.core.Condition.ComparisonExpression.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = ((flyteidl.core.Condition.ComparisonExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage(flyteidl.core.Condition.ComparisonExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Condition.ComparisonExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 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.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - private int exprCase_ = 0; - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite { - CONJUNCTION(1), - COMPARISON(2), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return CONJUNCTION; - case 2: return COMPARISON; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int CONJUNCTION_FIELD_NUMBER = 1; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - public static final int COMPARISON_FIELD_NUMBER = 2; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.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 (exprCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Condition.ConjunctionExpression) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Condition.ComparisonExpression) expr_); - } - 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.core.Condition.BooleanExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.BooleanExpression other = (flyteidl.core.Condition.BooleanExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getConjunction() - .equals(other.getConjunction())) return false; - break; - case 2: - if (!getComparison() - .equals(other.getComparison())) 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 (exprCase_) { - case 1: - hash = (37 * hash) + CONJUNCTION_FIELD_NUMBER; - hash = (53 * hash) + getConjunction().hashCode(); - break; - case 2: - hash = (37 * hash) + COMPARISON_FIELD_NUMBER; - hash = (53 * hash) + getComparison().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.BooleanExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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.core.Condition.BooleanExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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.core.Condition.BooleanExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.BooleanExpression 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.core.Condition.BooleanExpression 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; - } - /** - *
-     * Defines a boolean expression tree. It can be a simple or a conjunction expression.
-     * Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result.
-     * 
- * - * Protobuf type {@code flyteidl.core.BooleanExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BooleanExpression) - flyteidl.core.Condition.BooleanExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.BooleanExpression.class, flyteidl.core.Condition.BooleanExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.BooleanExpression.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(); - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_BooleanExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.BooleanExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression build() { - flyteidl.core.Condition.BooleanExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.BooleanExpression buildPartial() { - flyteidl.core.Condition.BooleanExpression result = new flyteidl.core.Condition.BooleanExpression(this); - if (exprCase_ == 1) { - if (conjunctionBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = conjunctionBuilder_.build(); - } - } - if (exprCase_ == 2) { - if (comparisonBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = comparisonBuilder_.build(); - } - } - result.exprCase_ = exprCase_; - 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.core.Condition.BooleanExpression) { - return mergeFrom((flyteidl.core.Condition.BooleanExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.BooleanExpression other) { - if (other == flyteidl.core.Condition.BooleanExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case CONJUNCTION: { - mergeConjunction(other.getConjunction()); - break; - } - case COMPARISON: { - mergeComparison(other.getComparison()); - break; - } - case EXPR_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.core.Condition.BooleanExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.BooleanExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> conjunctionBuilder_; - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public boolean hasConjunction() { - return exprCase_ == 1; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression getConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return conjunctionBuilder_.getMessage(); - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder setConjunction( - flyteidl.core.Condition.ConjunctionExpression.Builder builderForValue) { - if (conjunctionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - conjunctionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder mergeConjunction(flyteidl.core.Condition.ConjunctionExpression value) { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.newBuilder((flyteidl.core.Condition.ConjunctionExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - conjunctionBuilder_.mergeFrom(value); - } - conjunctionBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public Builder clearConjunction() { - if (conjunctionBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - conjunctionBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.Builder getConjunctionBuilder() { - return getConjunctionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - public flyteidl.core.Condition.ConjunctionExpressionOrBuilder getConjunctionOrBuilder() { - if ((exprCase_ == 1) && (conjunctionBuilder_ != null)) { - return conjunctionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (flyteidl.core.Condition.ConjunctionExpression) expr_; - } - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ConjunctionExpression conjunction = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder> - getConjunctionFieldBuilder() { - if (conjunctionBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - conjunctionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ConjunctionExpression, flyteidl.core.Condition.ConjunctionExpression.Builder, flyteidl.core.Condition.ConjunctionExpressionOrBuilder>( - (flyteidl.core.Condition.ConjunctionExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged();; - return conjunctionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> comparisonBuilder_; - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public boolean hasComparison() { - return exprCase_ == 2; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression getComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return comparisonBuilder_.getMessage(); - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder setComparison( - flyteidl.core.Condition.ComparisonExpression.Builder builderForValue) { - if (comparisonBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - comparisonBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder mergeComparison(flyteidl.core.Condition.ComparisonExpression value) { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != flyteidl.core.Condition.ComparisonExpression.getDefaultInstance()) { - expr_ = flyteidl.core.Condition.ComparisonExpression.newBuilder((flyteidl.core.Condition.ComparisonExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - comparisonBuilder_.mergeFrom(value); - } - comparisonBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public Builder clearComparison() { - if (comparisonBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - comparisonBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpression.Builder getComparisonBuilder() { - return getComparisonFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - public flyteidl.core.Condition.ComparisonExpressionOrBuilder getComparisonOrBuilder() { - if ((exprCase_ == 2) && (comparisonBuilder_ != null)) { - return comparisonBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (flyteidl.core.Condition.ComparisonExpression) expr_; - } - return flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ComparisonExpression comparison = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder> - getComparisonFieldBuilder() { - if (comparisonBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = flyteidl.core.Condition.ComparisonExpression.getDefaultInstance(); - } - comparisonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.ComparisonExpression, flyteidl.core.Condition.ComparisonExpression.Builder, flyteidl.core.Condition.ComparisonExpressionOrBuilder>( - (flyteidl.core.Condition.ComparisonExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged();; - return comparisonBuilder_; - } - @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.core.BooleanExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BooleanExpression) - private static final flyteidl.core.Condition.BooleanExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.BooleanExpression(); - } - - public static flyteidl.core.Condition.BooleanExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BooleanExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BooleanExpression(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.core.Condition.BooleanExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ConjunctionExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ConjunctionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - int getOperatorValue(); - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator(); - - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - boolean hasLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpression getLeftExpression(); - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder(); - - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - boolean hasRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpression getRightExpression(); - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder(); - } - /** - *
-   * Defines a conjunction expression of two boolean expressions.
-   * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class ConjunctionExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ConjunctionExpression) - ConjunctionExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ConjunctionExpression.newBuilder() to construct. - private ConjunctionExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConjunctionExpression() { - operator_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ConjunctionExpression( - 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 8: { - int rawValue = input.readEnum(); - - operator_ = rawValue; - break; - } - case 18: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (leftExpression_ != null) { - subBuilder = leftExpression_.toBuilder(); - } - leftExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(leftExpression_); - leftExpression_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Condition.BooleanExpression.Builder subBuilder = null; - if (rightExpression_ != null) { - subBuilder = rightExpression_.toBuilder(); - } - rightExpression_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rightExpression_); - rightExpression_ = 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.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - /** - *
-     * Nested conditions. They can be conjoined using AND / OR
-     * Order of evaluation is not important as the operators are Commutative
-     * 
- * - * Protobuf enum {@code flyteidl.core.ConjunctionExpression.LogicalOperator} - */ - public enum LogicalOperator - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - AND(0), - /** - * OR = 1; - */ - OR(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Conjunction
-       * 
- * - * AND = 0; - */ - public static final int AND_VALUE = 0; - /** - * OR = 1; - */ - public static final int OR_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogicalOperator valueOf(int value) { - return forNumber(value); - } - - public static LogicalOperator forNumber(int value) { - switch (value) { - case 0: return AND; - case 1: return OR; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogicalOperator> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogicalOperator findValueByNumber(int number) { - return LogicalOperator.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Condition.ConjunctionExpression.getDescriptor().getEnumTypes().get(0); - } - - private static final LogicalOperator[] VALUES = values(); - - public static LogicalOperator valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LogicalOperator(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ConjunctionExpression.LogicalOperator) - } - - public static final int OPERATOR_FIELD_NUMBER = 1; - private int operator_; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - - public static final int LEFT_EXPRESSION_FIELD_NUMBER = 2; - private flyteidl.core.Condition.BooleanExpression leftExpression_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - return getLeftExpression(); - } - - public static final int RIGHT_EXPRESSION_FIELD_NUMBER = 3; - private flyteidl.core.Condition.BooleanExpression rightExpression_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - return getRightExpression(); - } - - 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 (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - output.writeEnum(1, operator_); - } - if (leftExpression_ != null) { - output.writeMessage(2, getLeftExpression()); - } - if (rightExpression_ != null) { - output.writeMessage(3, getRightExpression()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operator_ != flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.AND.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operator_); - } - if (leftExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLeftExpression()); - } - if (rightExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRightExpression()); - } - 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.core.Condition.ConjunctionExpression)) { - return super.equals(obj); - } - flyteidl.core.Condition.ConjunctionExpression other = (flyteidl.core.Condition.ConjunctionExpression) obj; - - if (operator_ != other.operator_) return false; - if (hasLeftExpression() != other.hasLeftExpression()) return false; - if (hasLeftExpression()) { - if (!getLeftExpression() - .equals(other.getLeftExpression())) return false; - } - if (hasRightExpression() != other.hasRightExpression()) return false; - if (hasRightExpression()) { - if (!getRightExpression() - .equals(other.getRightExpression())) 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(); - hash = (37 * hash) + OPERATOR_FIELD_NUMBER; - hash = (53 * hash) + operator_; - if (hasLeftExpression()) { - hash = (37 * hash) + LEFT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getLeftExpression().hashCode(); - } - if (hasRightExpression()) { - hash = (37 * hash) + RIGHT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getRightExpression().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Condition.ConjunctionExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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.core.Condition.ConjunctionExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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.core.Condition.ConjunctionExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Condition.ConjunctionExpression 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.core.Condition.ConjunctionExpression 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; - } - /** - *
-     * Defines a conjunction expression of two boolean expressions.
-     * 
- * - * Protobuf type {@code flyteidl.core.ConjunctionExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ConjunctionExpression) - flyteidl.core.Condition.ConjunctionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Condition.ConjunctionExpression.class, flyteidl.core.Condition.ConjunctionExpression.Builder.class); - } - - // Construct using flyteidl.core.Condition.ConjunctionExpression.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(); - operator_ = 0; - - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Condition.internal_static_flyteidl_core_ConjunctionExpression_descriptor; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression build() { - flyteidl.core.Condition.ConjunctionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Condition.ConjunctionExpression buildPartial() { - flyteidl.core.Condition.ConjunctionExpression result = new flyteidl.core.Condition.ConjunctionExpression(this); - result.operator_ = operator_; - if (leftExpressionBuilder_ == null) { - result.leftExpression_ = leftExpression_; - } else { - result.leftExpression_ = leftExpressionBuilder_.build(); - } - if (rightExpressionBuilder_ == null) { - result.rightExpression_ = rightExpression_; - } else { - result.rightExpression_ = rightExpressionBuilder_.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.core.Condition.ConjunctionExpression) { - return mergeFrom((flyteidl.core.Condition.ConjunctionExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Condition.ConjunctionExpression other) { - if (other == flyteidl.core.Condition.ConjunctionExpression.getDefaultInstance()) return this; - if (other.operator_ != 0) { - setOperatorValue(other.getOperatorValue()); - } - if (other.hasLeftExpression()) { - mergeLeftExpression(other.getLeftExpression()); - } - if (other.hasRightExpression()) { - mergeRightExpression(other.getRightExpression()); - } - 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.core.Condition.ConjunctionExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Condition.ConjunctionExpression) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int operator_ = 0; - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public int getOperatorValue() { - return operator_; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperatorValue(int value) { - operator_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public flyteidl.core.Condition.ConjunctionExpression.LogicalOperator getOperator() { - @SuppressWarnings("deprecation") - flyteidl.core.Condition.ConjunctionExpression.LogicalOperator result = flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.valueOf(operator_); - return result == null ? flyteidl.core.Condition.ConjunctionExpression.LogicalOperator.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder setOperator(flyteidl.core.Condition.ConjunctionExpression.LogicalOperator value) { - if (value == null) { - throw new NullPointerException(); - } - - operator_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ConjunctionExpression.LogicalOperator operator = 1; - */ - public Builder clearOperator() { - - operator_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Condition.BooleanExpression leftExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> leftExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public boolean hasLeftExpression() { - return leftExpressionBuilder_ != null || leftExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression getLeftExpression() { - if (leftExpressionBuilder_ == null) { - return leftExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } else { - return leftExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - leftExpression_ = value; - onChanged(); - } else { - leftExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder setLeftExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (leftExpressionBuilder_ == null) { - leftExpression_ = builderForValue.build(); - onChanged(); - } else { - leftExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder mergeLeftExpression(flyteidl.core.Condition.BooleanExpression value) { - if (leftExpressionBuilder_ == null) { - if (leftExpression_ != null) { - leftExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(leftExpression_).mergeFrom(value).buildPartial(); - } else { - leftExpression_ = value; - } - onChanged(); - } else { - leftExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public Builder clearLeftExpression() { - if (leftExpressionBuilder_ == null) { - leftExpression_ = null; - onChanged(); - } else { - leftExpression_ = null; - leftExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getLeftExpressionBuilder() { - - onChanged(); - return getLeftExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getLeftExpressionOrBuilder() { - if (leftExpressionBuilder_ != null) { - return leftExpressionBuilder_.getMessageOrBuilder(); - } else { - return leftExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : leftExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression left_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getLeftExpressionFieldBuilder() { - if (leftExpressionBuilder_ == null) { - leftExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getLeftExpression(), - getParentForChildren(), - isClean()); - leftExpression_ = null; - } - return leftExpressionBuilder_; - } - - private flyteidl.core.Condition.BooleanExpression rightExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> rightExpressionBuilder_; - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public boolean hasRightExpression() { - return rightExpressionBuilder_ != null || rightExpression_ != null; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression getRightExpression() { - if (rightExpressionBuilder_ == null) { - return rightExpression_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } else { - return rightExpressionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rightExpression_ = value; - onChanged(); - } else { - rightExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder setRightExpression( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (rightExpressionBuilder_ == null) { - rightExpression_ = builderForValue.build(); - onChanged(); - } else { - rightExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder mergeRightExpression(flyteidl.core.Condition.BooleanExpression value) { - if (rightExpressionBuilder_ == null) { - if (rightExpression_ != null) { - rightExpression_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(rightExpression_).mergeFrom(value).buildPartial(); - } else { - rightExpression_ = value; - } - onChanged(); - } else { - rightExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public Builder clearRightExpression() { - if (rightExpressionBuilder_ == null) { - rightExpression_ = null; - onChanged(); - } else { - rightExpression_ = null; - rightExpressionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getRightExpressionBuilder() { - - onChanged(); - return getRightExpressionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getRightExpressionOrBuilder() { - if (rightExpressionBuilder_ != null) { - return rightExpressionBuilder_.getMessageOrBuilder(); - } else { - return rightExpression_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : rightExpression_; - } - } - /** - * .flyteidl.core.BooleanExpression right_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getRightExpressionFieldBuilder() { - if (rightExpressionBuilder_ == null) { - rightExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getRightExpression(), - getParentForChildren(), - isClean()); - rightExpression_ = null; - } - return rightExpressionBuilder_; - } - @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.core.ConjunctionExpression) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ConjunctionExpression) - private static final flyteidl.core.Condition.ConjunctionExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Condition.ConjunctionExpression(); - } - - public static flyteidl.core.Condition.ConjunctionExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConjunctionExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConjunctionExpression(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.core.Condition.ConjunctionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ComparisonExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ComparisonExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Operand_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Operand_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BooleanExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BooleanExpression_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ConjunctionExpression_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ConjunctionExpression_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/core/condition.proto\022\rflyteid" + - "l.core\032\034flyteidl/core/literals.proto\"\356\001\n" + - "\024ComparisonExpression\022>\n\010operator\030\001 \001(\0162" + - ",.flyteidl.core.ComparisonExpression.Ope" + - "rator\022*\n\nleft_value\030\002 \001(\0132\026.flyteidl.cor" + - "e.Operand\022+\n\013right_value\030\003 \001(\0132\026.flyteid" + - "l.core.Operand\"=\n\010Operator\022\006\n\002EQ\020\000\022\007\n\003NE" + - "Q\020\001\022\006\n\002GT\020\002\022\007\n\003GTE\020\003\022\006\n\002LT\020\004\022\007\n\003LTE\020\005\"{\n" + - "\007Operand\0221\n\tprimitive\030\001 \001(\0132\030.flyteidl.c" + - "ore.PrimitiveB\002\030\001H\000\022\r\n\003var\030\002 \001(\tH\000\022\'\n\006sc" + - "alar\030\003 \001(\0132\025.flyteidl.core.ScalarH\000B\005\n\003v" + - "al\"\223\001\n\021BooleanExpression\022;\n\013conjunction\030" + - "\001 \001(\0132$.flyteidl.core.ConjunctionExpress" + - "ionH\000\0229\n\ncomparison\030\002 \001(\0132#.flyteidl.cor" + - "e.ComparisonExpressionH\000B\006\n\004expr\"\372\001\n\025Con" + - "junctionExpression\022F\n\010operator\030\001 \001(\01624.f" + - "lyteidl.core.ConjunctionExpression.Logic" + - "alOperator\0229\n\017left_expression\030\002 \001(\0132 .fl" + - "yteidl.core.BooleanExpression\022:\n\020right_e" + - "xpression\030\003 \001(\0132 .flyteidl.core.BooleanE" + - "xpression\"\"\n\017LogicalOperator\022\007\n\003AND\020\000\022\006\n" + - "\002OR\020\001B - * A collection of nodes to execute. - * - * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - int getNodesCount(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - long getMinSuccesses(); - - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - int getOutputsCount(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - int getTasksCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - int getSubworkflowsCount(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - java.util.List - getSubworkflowsOrBuilderList(); - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index); - } - /** - *
-   * Describes a set of tasks to execute and how the final outputs are produced.
-   * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class DynamicJobSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DynamicJobSpec) - DynamicJobSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DynamicJobSpec.newBuilder() to construct. - private DynamicJobSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DynamicJobSpec() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - tasks_ = java.util.Collections.emptyList(); - subworkflows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DynamicJobSpec( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 16: { - - minSuccesses_ = input.readInt64(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - subworkflows_.add( - input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - private int bitField0_; - public static final int NODES_FIELD_NUMBER = 1; - private java.util.List nodes_; - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A collection of nodes to execute.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 2; - private long minSuccesses_; - /** - *
-     * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-     * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-     * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-     * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-     * specified, is the count of nodes repeated field.
-     * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - - public static final int OUTPUTS_FIELD_NUMBER = 3; - private java.util.List outputs_; - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-     * in bindings should have the generated id for the subtask.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int TASKS_FIELD_NUMBER = 4; - private java.util.List tasks_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - public static final int SUBWORKFLOWS_FIELD_NUMBER = 5; - private java.util.List subworkflows_; - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - return subworkflows_; - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - return subworkflows_.size(); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - return subworkflows_.get(index); - } - /** - *
-     * [Optional] A complete list of task specs referenced in nodes.
-     * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - return subworkflows_.get(index); - } - - 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 { - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - output.writeInt64(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - output.writeMessage(5, subworkflows_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, nodes_.get(i)); - } - if (minSuccesses_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minSuccesses_); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, outputs_.get(i)); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, tasks_.get(i)); - } - for (int i = 0; i < subworkflows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, subworkflows_.get(i)); - } - 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.core.DynamicJob.DynamicJobSpec)) { - return super.equals(obj); - } - flyteidl.core.DynamicJob.DynamicJobSpec other = (flyteidl.core.DynamicJob.DynamicJobSpec) obj; - - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (getMinSuccesses() - != other.getMinSuccesses()) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (!getTasksList() - .equals(other.getTasksList())) return false; - if (!getSubworkflowsList() - .equals(other.getSubworkflowsList())) 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 (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - if (getSubworkflowsCount() > 0) { - hash = (37 * hash) + SUBWORKFLOWS_FIELD_NUMBER; - hash = (53 * hash) + getSubworkflowsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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.core.DynamicJob.DynamicJobSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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.core.DynamicJob.DynamicJobSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.DynamicJob.DynamicJobSpec 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.core.DynamicJob.DynamicJobSpec 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; - } - /** - *
-     * Describes a set of tasks to execute and how the final outputs are produced.
-     * 
- * - * Protobuf type {@code flyteidl.core.DynamicJobSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DynamicJobSpec) - flyteidl.core.DynamicJob.DynamicJobSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.DynamicJob.DynamicJobSpec.class, flyteidl.core.DynamicJob.DynamicJobSpec.Builder.class); - } - - // Construct using flyteidl.core.DynamicJob.DynamicJobSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - getTasksFieldBuilder(); - getSubworkflowsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - nodesBuilder_.clear(); - } - minSuccesses_ = 0L; - - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - outputsBuilder_.clear(); - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - tasksBuilder_.clear(); - } - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.DynamicJob.internal_static_flyteidl_core_DynamicJobSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec build() { - flyteidl.core.DynamicJob.DynamicJobSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.DynamicJob.DynamicJobSpec buildPartial() { - flyteidl.core.DynamicJob.DynamicJobSpec result = new flyteidl.core.DynamicJob.DynamicJobSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - result.minSuccesses_ = minSuccesses_; - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - if (subworkflowsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = java.util.Collections.unmodifiableList(subworkflows_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.subworkflows_ = subworkflows_; - } else { - result.subworkflows_ = subworkflowsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.DynamicJob.DynamicJobSpec) { - return mergeFrom((flyteidl.core.DynamicJob.DynamicJobSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.DynamicJob.DynamicJobSpec other) { - if (other == flyteidl.core.DynamicJob.DynamicJobSpec.getDefaultInstance()) return this; - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000001); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (other.getMinSuccesses() != 0L) { - setMinSuccesses(other.getMinSuccesses()); - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000004); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000008); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - if (subworkflowsBuilder_ == null) { - if (!other.subworkflows_.isEmpty()) { - if (subworkflows_.isEmpty()) { - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSubworkflowsIsMutable(); - subworkflows_.addAll(other.subworkflows_); - } - onChanged(); - } - } else { - if (!other.subworkflows_.isEmpty()) { - if (subworkflowsBuilder_.isEmpty()) { - subworkflowsBuilder_.dispose(); - subworkflowsBuilder_ = null; - subworkflows_ = other.subworkflows_; - bitField0_ = (bitField0_ & ~0x00000010); - subworkflowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubworkflowsFieldBuilder() : null; - } else { - subworkflowsBuilder_.addAllMessages(other.subworkflows_); - } - } - } - 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.core.DynamicJob.DynamicJobSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.DynamicJob.DynamicJobSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A collection of nodes to execute.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 1; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private long minSuccesses_ ; - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public long getMinSuccesses() { - return minSuccesses_; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder setMinSuccesses(long value) { - - minSuccesses_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this
-       * criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number
-       * becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks <
-       * min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not
-       * specified, is the count of nodes repeated field.
-       * 
- * - * int64 min_successes = 2; - */ - public Builder clearMinSuccesses() { - - minSuccesses_ = 0L; - onChanged(); - return this; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids
-       * in bindings should have the generated id for the subtask.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 3; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 4; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - - private java.util.List subworkflows_ = - java.util.Collections.emptyList(); - private void ensureSubworkflowsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - subworkflows_ = new java.util.ArrayList(subworkflows_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> subworkflowsBuilder_; - - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List getSubworkflowsList() { - if (subworkflowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subworkflows_); - } else { - return subworkflowsBuilder_.getMessageList(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public int getSubworkflowsCount() { - if (subworkflowsBuilder_ == null) { - return subworkflows_.size(); - } else { - return subworkflowsBuilder_.getCount(); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate getSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); - } else { - return subworkflowsBuilder_.getMessage(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, value); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder setSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.set(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows(flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate value) { - if (subworkflowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, value); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addSubworkflows( - int index, flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.add(index, builderForValue.build()); - onChanged(); - } else { - subworkflowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder addAllSubworkflows( - java.lang.Iterable values) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subworkflows_); - onChanged(); - } else { - subworkflowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder clearSubworkflows() { - if (subworkflowsBuilder_ == null) { - subworkflows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - subworkflowsBuilder_.clear(); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public Builder removeSubworkflows(int index) { - if (subworkflowsBuilder_ == null) { - ensureSubworkflowsIsMutable(); - subworkflows_.remove(index); - onChanged(); - } else { - subworkflowsBuilder_.remove(index); - } - return this; - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().getBuilder(index); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getSubworkflowsOrBuilder( - int index) { - if (subworkflowsBuilder_ == null) { - return subworkflows_.get(index); } else { - return subworkflowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsOrBuilderList() { - if (subworkflowsBuilder_ != null) { - return subworkflowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subworkflows_); - } - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder() { - return getSubworkflowsFieldBuilder().addBuilder( - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder addSubworkflowsBuilder( - int index) { - return getSubworkflowsFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()); - } - /** - *
-       * [Optional] A complete list of task specs referenced in nodes.
-       * 
- * - * repeated .flyteidl.core.WorkflowTemplate subworkflows = 5; - */ - public java.util.List - getSubworkflowsBuilderList() { - return getSubworkflowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getSubworkflowsFieldBuilder() { - if (subworkflowsBuilder_ == null) { - subworkflowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - subworkflows_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - subworkflows_ = null; - } - return subworkflowsBuilder_; - } - @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.core.DynamicJobSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DynamicJobSpec) - private static final flyteidl.core.DynamicJob.DynamicJobSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.DynamicJob.DynamicJobSpec(); - } - - public static flyteidl.core.DynamicJob.DynamicJobSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynamicJobSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DynamicJobSpec(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.core.DynamicJob.DynamicJobSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DynamicJobSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DynamicJobSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037flyteidl/core/dynamic_job.proto\022\rflyte" + - "idl.core\032\031flyteidl/core/tasks.proto\032\034fly" + - "teidl/core/workflow.proto\032\034flyteidl/core" + - "/literals.proto\"\327\001\n\016DynamicJobSpec\022\"\n\005no" + - "des\030\001 \003(\0132\023.flyteidl.core.Node\022\025\n\rmin_su" + - "ccesses\030\002 \001(\003\022\'\n\007outputs\030\003 \003(\0132\026.flyteid" + - "l.core.Binding\022*\n\005tasks\030\004 \003(\0132\033.flyteidl" + - ".core.TaskTemplate\0225\n\014subworkflows\030\005 \003(\013" + - "2\037.flyteidl.core.WorkflowTemplateB - * A simplified code for errors, so that we can provide a glossary of all possible errors. - * - * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - int getKindValue(); - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - flyteidl.core.Errors.ContainerError.Kind getKind(); - - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - int getOriginValue(); - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin(); - } - /** - *
-   * Error message to propagate detailed errors from container executions to the execution
-   * engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class ContainerError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerError) - ContainerErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerError.newBuilder() to construct. - private ContainerError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerError() { - code_ = ""; - message_ = ""; - kind_ = 0; - origin_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerError( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - break; - } - case 32: { - int rawValue = input.readEnum(); - - origin_ = rawValue; - 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.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - /** - *
-     * Defines a generic error type that dictates the behavior of the retry strategy.
-     * 
- * - * Protobuf enum {@code flyteidl.core.ContainerError.Kind} - */ - public enum Kind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NON_RECOVERABLE = 0; - */ - NON_RECOVERABLE(0), - /** - * RECOVERABLE = 1; - */ - RECOVERABLE(1), - UNRECOGNIZED(-1), - ; - - /** - * NON_RECOVERABLE = 0; - */ - public static final int NON_RECOVERABLE_VALUE = 0; - /** - * RECOVERABLE = 1; - */ - public static final int RECOVERABLE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Kind valueOf(int value) { - return forNumber(value); - } - - public static Kind forNumber(int value) { - switch (value) { - case 0: return NON_RECOVERABLE; - case 1: return RECOVERABLE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Kind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Kind findValueByNumber(int number) { - return Kind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Errors.ContainerError.getDescriptor().getEnumTypes().get(0); - } - - private static final Kind[] VALUES = values(); - - public static Kind valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Kind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ContainerError.Kind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - *
-     * A simplified code for errors, so that we can provide a glossary of all possible errors.
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-     * A detailed error message.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 3; - private int kind_; - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-     * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-     * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - - public static final int ORIGIN_FIELD_NUMBER = 4; - private int origin_; - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-     * Defines the origin of the error (system, user, unknown).
-     * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - output.writeEnum(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, origin_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (kind_ != flyteidl.core.Errors.ContainerError.Kind.NON_RECOVERABLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, kind_); - } - if (origin_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, origin_); - } - 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.core.Errors.ContainerError)) { - return super.equals(obj); - } - flyteidl.core.Errors.ContainerError other = (flyteidl.core.Errors.ContainerError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (kind_ != other.kind_) return false; - if (origin_ != other.origin_) 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(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (37 * hash) + ORIGIN_FIELD_NUMBER; - hash = (53 * hash) + origin_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ContainerError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ContainerError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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.core.Errors.ContainerError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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.core.Errors.ContainerError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ContainerError 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.core.Errors.ContainerError 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; - } - /** - *
-     * Error message to propagate detailed errors from container executions to the execution
-     * engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerError) - flyteidl.core.Errors.ContainerErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ContainerError.class, flyteidl.core.Errors.ContainerError.Builder.class); - } - - // Construct using flyteidl.core.Errors.ContainerError.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(); - code_ = ""; - - message_ = ""; - - kind_ = 0; - - origin_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ContainerError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError getDefaultInstanceForType() { - return flyteidl.core.Errors.ContainerError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError build() { - flyteidl.core.Errors.ContainerError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ContainerError buildPartial() { - flyteidl.core.Errors.ContainerError result = new flyteidl.core.Errors.ContainerError(this); - result.code_ = code_; - result.message_ = message_; - result.kind_ = kind_; - result.origin_ = origin_; - 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.core.Errors.ContainerError) { - return mergeFrom((flyteidl.core.Errors.ContainerError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ContainerError other) { - if (other == flyteidl.core.Errors.ContainerError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - if (other.origin_ != 0) { - setOriginValue(other.getOriginValue()); - } - 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.core.Errors.ContainerError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ContainerError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * A simplified code for errors, so that we can provide a glossary of all possible errors.
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * A detailed error message.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public int getKindValue() { - return kind_; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public flyteidl.core.Errors.ContainerError.Kind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Errors.ContainerError.Kind result = flyteidl.core.Errors.ContainerError.Kind.valueOf(kind_); - return result == null ? flyteidl.core.Errors.ContainerError.Kind.UNRECOGNIZED : result; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder setKind(flyteidl.core.Errors.ContainerError.Kind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
-       * 
- * - * .flyteidl.core.ContainerError.Kind kind = 3; - */ - public Builder clearKind() { - - kind_ = 0; - onChanged(); - return this; - } - - private int origin_ = 0; - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public int getOriginValue() { - return origin_; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOriginValue(int value) { - origin_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getOrigin() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(origin_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder setOrigin(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - origin_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines the origin of the error (system, user, unknown).
-       * 
- * - * .flyteidl.core.ExecutionError.ErrorKind origin = 4; - */ - public Builder clearOrigin() { - - origin_ = 0; - onChanged(); - return this; - } - @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.core.ContainerError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerError) - private static final flyteidl.core.Errors.ContainerError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ContainerError(); - } - - public static flyteidl.core.Errors.ContainerError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerError(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.core.Errors.ContainerError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorDocumentOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ErrorDocument) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - boolean hasError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerError getError(); - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder(); - } - /** - *
-   * Defines the errors.pb file format the container can produce to communicate
-   * failure reasons to the execution engine.
-   * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class ErrorDocument extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ErrorDocument) - ErrorDocumentOrBuilder { - private static final long serialVersionUID = 0L; - // Use ErrorDocument.newBuilder() to construct. - private ErrorDocument(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ErrorDocument() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ErrorDocument( - 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.Errors.ContainerError.Builder subBuilder = null; - if (error_ != null) { - subBuilder = error_.toBuilder(); - } - error_ = input.readMessage(flyteidl.core.Errors.ContainerError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(error_); - error_ = 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.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - public static final int ERROR_FIELD_NUMBER = 1; - private flyteidl.core.Errors.ContainerError error_; - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return error_ != null; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - /** - *
-     * The error raised during execution.
-     * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - return getError(); - } - - 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 (error_ != null) { - output.writeMessage(1, getError()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (error_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getError()); - } - 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.core.Errors.ErrorDocument)) { - return super.equals(obj); - } - flyteidl.core.Errors.ErrorDocument other = (flyteidl.core.Errors.ErrorDocument) obj; - - if (hasError() != other.hasError()) return false; - if (hasError()) { - if (!getError() - .equals(other.getError())) 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 (hasError()) { - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Errors.ErrorDocument parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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.core.Errors.ErrorDocument parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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.core.Errors.ErrorDocument parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Errors.ErrorDocument 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.core.Errors.ErrorDocument 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; - } - /** - *
-     * Defines the errors.pb file format the container can produce to communicate
-     * failure reasons to the execution engine.
-     * 
- * - * Protobuf type {@code flyteidl.core.ErrorDocument} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ErrorDocument) - flyteidl.core.Errors.ErrorDocumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Errors.ErrorDocument.class, flyteidl.core.Errors.ErrorDocument.Builder.class); - } - - // Construct using flyteidl.core.Errors.ErrorDocument.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 (errorBuilder_ == null) { - error_ = null; - } else { - error_ = null; - errorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Errors.internal_static_flyteidl_core_ErrorDocument_descriptor; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument getDefaultInstanceForType() { - return flyteidl.core.Errors.ErrorDocument.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument build() { - flyteidl.core.Errors.ErrorDocument result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Errors.ErrorDocument buildPartial() { - flyteidl.core.Errors.ErrorDocument result = new flyteidl.core.Errors.ErrorDocument(this); - if (errorBuilder_ == null) { - result.error_ = error_; - } else { - result.error_ = errorBuilder_.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.core.Errors.ErrorDocument) { - return mergeFrom((flyteidl.core.Errors.ErrorDocument)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Errors.ErrorDocument other) { - if (other == flyteidl.core.Errors.ErrorDocument.getDefaultInstance()) return this; - if (other.hasError()) { - mergeError(other.getError()); - } - 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.core.Errors.ErrorDocument parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Errors.ErrorDocument) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Errors.ContainerError error_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> errorBuilder_; - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public boolean hasError() { - return errorBuilder_ != null || error_ != null; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError getError() { - if (errorBuilder_ == null) { - return error_ == null ? flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } else { - return errorBuilder_.getMessage(); - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - error_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder setError( - flyteidl.core.Errors.ContainerError.Builder builderForValue) { - if (errorBuilder_ == null) { - error_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder mergeError(flyteidl.core.Errors.ContainerError value) { - if (errorBuilder_ == null) { - if (error_ != null) { - error_ = - flyteidl.core.Errors.ContainerError.newBuilder(error_).mergeFrom(value).buildPartial(); - } else { - error_ = value; - } - onChanged(); - } else { - errorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - error_ = null; - onChanged(); - } else { - error_ = null; - errorBuilder_ = null; - } - - return this; - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerError.Builder getErrorBuilder() { - - onChanged(); - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - public flyteidl.core.Errors.ContainerErrorOrBuilder getErrorOrBuilder() { - if (errorBuilder_ != null) { - return errorBuilder_.getMessageOrBuilder(); - } else { - return error_ == null ? - flyteidl.core.Errors.ContainerError.getDefaultInstance() : error_; - } - } - /** - *
-       * The error raised during execution.
-       * 
- * - * .flyteidl.core.ContainerError error = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Errors.ContainerError, flyteidl.core.Errors.ContainerError.Builder, flyteidl.core.Errors.ContainerErrorOrBuilder>( - getError(), - getParentForChildren(), - isClean()); - error_ = null; - } - return errorBuilder_; - } - @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.core.ErrorDocument) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ErrorDocument) - private static final flyteidl.core.Errors.ErrorDocument DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Errors.ErrorDocument(); - } - - public static flyteidl.core.Errors.ErrorDocument getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ErrorDocument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ErrorDocument(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.core.Errors.ErrorDocument getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ErrorDocument_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ErrorDocument_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/core/errors.proto\022\rflyteidl.c" + - "ore\032\035flyteidl/core/execution.proto\"\310\001\n\016C" + - "ontainerError\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002" + - " \001(\t\0220\n\004kind\030\003 \001(\0162\".flyteidl.core.Conta" + - "inerError.Kind\0227\n\006origin\030\004 \001(\0162\'.flyteid" + - "l.core.ExecutionError.ErrorKind\",\n\004Kind\022" + - "\023\n\017NON_RECOVERABLE\020\000\022\017\n\013RECOVERABLE\020\001\"=\n" + - "\rErrorDocument\022,\n\005error\030\001 \001(\0132\035.flyteidl" + - ".core.ContainerErrorB - * Indicates various phases of Workflow Execution - * - * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class WorkflowExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecution) - WorkflowExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecution.newBuilder() to construct. - private WorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.WorkflowExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDING = 3; - */ - SUCCEEDING(3), - /** - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - /** - * FAILING = 5; - */ - FAILING(5), - /** - * FAILED = 6; - */ - FAILED(6), - /** - * ABORTED = 7; - */ - ABORTED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - /** - * ABORTING = 9; - */ - ABORTING(9), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDING = 3; - */ - public static final int SUCCEEDING_VALUE = 3; - /** - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - /** - * FAILING = 5; - */ - public static final int FAILING_VALUE = 5; - /** - * FAILED = 6; - */ - public static final int FAILED_VALUE = 6; - /** - * ABORTED = 7; - */ - public static final int ABORTED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - /** - * ABORTING = 9; - */ - public static final int ABORTING_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDING; - case 4: return SUCCEEDED; - case 5: return FAILING; - case 6: return FAILED; - case 7: return ABORTED; - case 8: return TIMED_OUT; - case 9: return ABORTING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.WorkflowExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.core.Execution.WorkflowExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.WorkflowExecution other = (flyteidl.core.Execution.WorkflowExecution) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.WorkflowExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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.core.Execution.WorkflowExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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.core.Execution.WorkflowExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.WorkflowExecution 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.core.Execution.WorkflowExecution 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; - } - /** - *
-     * Indicates various phases of Workflow Execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecution) - flyteidl.core.Execution.WorkflowExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.WorkflowExecution.class, flyteidl.core.Execution.WorkflowExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.WorkflowExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_WorkflowExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.WorkflowExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution build() { - flyteidl.core.Execution.WorkflowExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.WorkflowExecution buildPartial() { - flyteidl.core.Execution.WorkflowExecution result = new flyteidl.core.Execution.WorkflowExecution(this); - 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.core.Execution.WorkflowExecution) { - return mergeFrom((flyteidl.core.Execution.WorkflowExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.WorkflowExecution other) { - if (other == flyteidl.core.Execution.WorkflowExecution.getDefaultInstance()) return this; - 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.core.Execution.WorkflowExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.WorkflowExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.core.WorkflowExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecution) - private static final flyteidl.core.Execution.WorkflowExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.WorkflowExecution(); - } - - public static flyteidl.core.Execution.WorkflowExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecution(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.core.Execution.WorkflowExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class NodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecution) - NodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecution.newBuilder() to construct. - private NodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.NodeExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * FAILING = 4; - */ - FAILING(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - * ABORTED = 6; - */ - ABORTED(6), - /** - * SKIPPED = 7; - */ - SKIPPED(7), - /** - * TIMED_OUT = 8; - */ - TIMED_OUT(8), - /** - * DYNAMIC_RUNNING = 9; - */ - DYNAMIC_RUNNING(9), - /** - * RECOVERED = 10; - */ - RECOVERED(10), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * FAILING = 4; - */ - public static final int FAILING_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - * ABORTED = 6; - */ - public static final int ABORTED_VALUE = 6; - /** - * SKIPPED = 7; - */ - public static final int SKIPPED_VALUE = 7; - /** - * TIMED_OUT = 8; - */ - public static final int TIMED_OUT_VALUE = 8; - /** - * DYNAMIC_RUNNING = 9; - */ - public static final int DYNAMIC_RUNNING_VALUE = 9; - /** - * RECOVERED = 10; - */ - public static final int RECOVERED_VALUE = 10; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return FAILING; - case 5: return FAILED; - case 6: return ABORTED; - case 7: return SKIPPED; - case 8: return TIMED_OUT; - case 9: return DYNAMIC_RUNNING; - case 10: return RECOVERED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.NodeExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.NodeExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.core.Execution.NodeExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.NodeExecution other = (flyteidl.core.Execution.NodeExecution) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.NodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.NodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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.core.Execution.NodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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.core.Execution.NodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.NodeExecution 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.core.Execution.NodeExecution 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; - } - /** - *
-     * Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecution) - flyteidl.core.Execution.NodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.NodeExecution.class, flyteidl.core.Execution.NodeExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.NodeExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_NodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.NodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution build() { - flyteidl.core.Execution.NodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.NodeExecution buildPartial() { - flyteidl.core.Execution.NodeExecution result = new flyteidl.core.Execution.NodeExecution(this); - 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.core.Execution.NodeExecution) { - return mergeFrom((flyteidl.core.Execution.NodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.NodeExecution other) { - if (other == flyteidl.core.Execution.NodeExecution.getDefaultInstance()) return this; - 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.core.Execution.NodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.NodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.core.NodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecution) - private static final flyteidl.core.Execution.NodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.NodeExecution(); - } - - public static flyteidl.core.Execution.NodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecution(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.core.Execution.NodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecution) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-   * but this is the cumulative list that customers may want to know about for their task.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class TaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecution) - TaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecution.newBuilder() to construct. - private TaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecution( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskExecution.Phase} - */ - public enum Phase - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * QUEUED = 1; - */ - QUEUED(1), - /** - * RUNNING = 2; - */ - RUNNING(2), - /** - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - /** - * ABORTED = 4; - */ - ABORTED(4), - /** - * FAILED = 5; - */ - FAILED(5), - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - INITIALIZING(6), - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - WAITING_FOR_RESOURCES(7), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * QUEUED = 1; - */ - public static final int QUEUED_VALUE = 1; - /** - * RUNNING = 2; - */ - public static final int RUNNING_VALUE = 2; - /** - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - /** - * ABORTED = 4; - */ - public static final int ABORTED_VALUE = 4; - /** - * FAILED = 5; - */ - public static final int FAILED_VALUE = 5; - /** - *
-       * To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing
-       * 
- * - * INITIALIZING = 6; - */ - public static final int INITIALIZING_VALUE = 6; - /** - *
-       * To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded
-       * 
- * - * WAITING_FOR_RESOURCES = 7; - */ - public static final int WAITING_FOR_RESOURCES_VALUE = 7; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Phase valueOf(int value) { - return forNumber(value); - } - - public static Phase forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return QUEUED; - case 2: return RUNNING; - case 3: return SUCCEEDED; - case 4: return ABORTED; - case 5: return FAILED; - case 6: return INITIALIZING; - case 7: return WAITING_FOR_RESOURCES; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Phase> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Phase findValueByNumber(int number) { - return Phase.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.TaskExecution.getDescriptor().getEnumTypes().get(0); - } - - private static final Phase[] VALUES = values(); - - public static Phase valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Phase(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskExecution.Phase) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.core.Execution.TaskExecution)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskExecution other = (flyteidl.core.Execution.TaskExecution) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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.core.Execution.TaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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.core.Execution.TaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskExecution 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.core.Execution.TaskExecution 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; - } - /** - *
-     * Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task,
-     * but this is the cumulative list that customers may want to know about for their task.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecution) - flyteidl.core.Execution.TaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskExecution.class, flyteidl.core.Execution.TaskExecution.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskExecution.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution build() { - flyteidl.core.Execution.TaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskExecution buildPartial() { - flyteidl.core.Execution.TaskExecution result = new flyteidl.core.Execution.TaskExecution(this); - 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.core.Execution.TaskExecution) { - return mergeFrom((flyteidl.core.Execution.TaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskExecution other) { - if (other == flyteidl.core.Execution.TaskExecution.getDefaultInstance()) return this; - 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.core.Execution.TaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.core.TaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecution) - private static final flyteidl.core.Execution.TaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskExecution(); - } - - public static flyteidl.core.Execution.TaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecution(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.core.Execution.TaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExecutionErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ExecutionError) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - java.lang.String getCode(); - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - com.google.protobuf.ByteString - getCodeBytes(); - - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - java.lang.String getErrorUri(); - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - com.google.protobuf.ByteString - getErrorUriBytes(); - - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - int getKindValue(); - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - flyteidl.core.Execution.ExecutionError.ErrorKind getKind(); - } - /** - *
-   * Represents the error message from the execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class ExecutionError extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ExecutionError) - ExecutionErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExecutionError.newBuilder() to construct. - private ExecutionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExecutionError() { - code_ = ""; - message_ = ""; - errorUri_ = ""; - kind_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExecutionError( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - code_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - errorUri_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - kind_ = rawValue; - 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.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - /** - *
-     * Error type: System or User
-     * 
- * - * Protobuf enum {@code flyteidl.core.ExecutionError.ErrorKind} - */ - public enum ErrorKind - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * USER = 1; - */ - USER(1), - /** - * SYSTEM = 2; - */ - SYSTEM(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * USER = 1; - */ - public static final int USER_VALUE = 1; - /** - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ErrorKind valueOf(int value) { - return forNumber(value); - } - - public static ErrorKind forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return USER; - case 2: return SYSTEM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ErrorKind> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ErrorKind findValueByNumber(int number) { - return ErrorKind.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.ExecutionError.getDescriptor().getEnumTypes().get(0); - } - - private static final ErrorKind[] VALUES = values(); - - public static ErrorKind valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ErrorKind(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ExecutionError.ErrorKind) - } - - public static final int CODE_FIELD_NUMBER = 1; - private volatile java.lang.Object code_; - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } - } - /** - *
-     * Error code indicates a grouping of a type of error.
-     * More Info: <Link>
-     * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-     * Detailed description of the error - including stack trace.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object errorUri_; - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorUri_ = s; - return s; - } - } - /** - *
-     * Full error contents accessible via a URI
-     * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KIND_FIELD_NUMBER = 4; - private int kind_; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - - 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 (!getCodeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, code_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - output.writeEnum(4, kind_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getCodeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, code_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - if (!getErrorUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorUri_); - } - if (kind_ != flyteidl.core.Execution.ExecutionError.ErrorKind.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, kind_); - } - 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.core.Execution.ExecutionError)) { - return super.equals(obj); - } - flyteidl.core.Execution.ExecutionError other = (flyteidl.core.Execution.ExecutionError) obj; - - if (!getCode() - .equals(other.getCode())) return false; - if (!getMessage() - .equals(other.getMessage())) return false; - if (!getErrorUri() - .equals(other.getErrorUri())) return false; - if (kind_ != other.kind_) 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(); - hash = (37 * hash) + CODE_FIELD_NUMBER; - hash = (53 * hash) + getCode().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (37 * hash) + ERROR_URI_FIELD_NUMBER; - hash = (53 * hash) + getErrorUri().hashCode(); - hash = (37 * hash) + KIND_FIELD_NUMBER; - hash = (53 * hash) + kind_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.ExecutionError parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.ExecutionError parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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.core.Execution.ExecutionError parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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.core.Execution.ExecutionError parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.ExecutionError 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.core.Execution.ExecutionError 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; - } - /** - *
-     * Represents the error message from the execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.ExecutionError} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ExecutionError) - flyteidl.core.Execution.ExecutionErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.ExecutionError.class, flyteidl.core.Execution.ExecutionError.Builder.class); - } - - // Construct using flyteidl.core.Execution.ExecutionError.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(); - code_ = ""; - - message_ = ""; - - errorUri_ = ""; - - kind_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_ExecutionError_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError getDefaultInstanceForType() { - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError build() { - flyteidl.core.Execution.ExecutionError result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.ExecutionError buildPartial() { - flyteidl.core.Execution.ExecutionError result = new flyteidl.core.Execution.ExecutionError(this); - result.code_ = code_; - result.message_ = message_; - result.errorUri_ = errorUri_; - result.kind_ = kind_; - 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.core.Execution.ExecutionError) { - return mergeFrom((flyteidl.core.Execution.ExecutionError)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.ExecutionError other) { - if (other == flyteidl.core.Execution.ExecutionError.getDefaultInstance()) return this; - if (!other.getCode().isEmpty()) { - code_ = other.code_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - if (!other.getErrorUri().isEmpty()) { - errorUri_ = other.errorUri_; - onChanged(); - } - if (other.kind_ != 0) { - setKindValue(other.getKindValue()); - } - 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.core.Execution.ExecutionError parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.ExecutionError) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object code_ = ""; - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public java.lang.String getCode() { - java.lang.Object ref = code_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - code_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public com.google.protobuf.ByteString - getCodeBytes() { - java.lang.Object ref = code_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - code_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCode( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - code_ = value; - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder clearCode() { - - code_ = getDefaultInstance().getCode(); - onChanged(); - return this; - } - /** - *
-       * Error code indicates a grouping of a type of error.
-       * More Info: <Link>
-       * 
- * - * string code = 1; - */ - public Builder setCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - code_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Detailed description of the error - including stack trace.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - - private java.lang.Object errorUri_ = ""; - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public java.lang.String getErrorUri() { - java.lang.Object ref = errorUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - errorUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public com.google.protobuf.ByteString - getErrorUriBytes() { - java.lang.Object ref = errorUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - errorUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - errorUri_ = value; - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder clearErrorUri() { - - errorUri_ = getDefaultInstance().getErrorUri(); - onChanged(); - return this; - } - /** - *
-       * Full error contents accessible via a URI
-       * 
- * - * string error_uri = 3; - */ - public Builder setErrorUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - errorUri_ = value; - onChanged(); - return this; - } - - private int kind_ = 0; - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public int getKindValue() { - return kind_; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKindValue(int value) { - kind_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public flyteidl.core.Execution.ExecutionError.ErrorKind getKind() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.ExecutionError.ErrorKind result = flyteidl.core.Execution.ExecutionError.ErrorKind.valueOf(kind_); - return result == null ? flyteidl.core.Execution.ExecutionError.ErrorKind.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder setKind(flyteidl.core.Execution.ExecutionError.ErrorKind value) { - if (value == null) { - throw new NullPointerException(); - } - - kind_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.ExecutionError.ErrorKind kind = 4; - */ - public Builder clearKind() { - - kind_ = 0; - onChanged(); - return this; - } - @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.core.ExecutionError) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExecutionError) - private static final flyteidl.core.Execution.ExecutionError DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.ExecutionError(); - } - - public static flyteidl.core.Execution.ExecutionError getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExecutionError parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExecutionError(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.core.Execution.ExecutionError getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskLogOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskLog) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * string name = 2; - */ - java.lang.String getName(); - /** - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - int getMessageFormatValue(); - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat(); - - /** - * .google.protobuf.Duration ttl = 4; - */ - boolean hasTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.Duration getTtl(); - /** - * .google.protobuf.Duration ttl = 4; - */ - com.google.protobuf.DurationOrBuilder getTtlOrBuilder(); - } - /** - *
-   * Log information for the task that is specific to a log sink
-   * When our log story is flushed out, we may have more metadata here like log link expiry
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class TaskLog extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskLog) - TaskLogOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskLog.newBuilder() to construct. - private TaskLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskLog() { - uri_ = ""; - name_ = ""; - messageFormat_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskLog( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - messageFormat_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (ttl_ != null) { - subBuilder = ttl_.toBuilder(); - } - ttl_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ttl_); - ttl_ = 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.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.TaskLog.MessageFormat} - */ - public enum MessageFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CSV = 1; - */ - CSV(1), - /** - * JSON = 2; - */ - JSON(2), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CSV = 1; - */ - public static final int CSV_VALUE = 1; - /** - * JSON = 2; - */ - public static final int JSON_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MessageFormat valueOf(int value) { - return forNumber(value); - } - - public static MessageFormat forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CSV; - case 2: return JSON; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MessageFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MessageFormat findValueByNumber(int number) { - return MessageFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.TaskLog.getDescriptor().getEnumTypes().get(0); - } - - private static final MessageFormat[] VALUES = values(); - - public static MessageFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MessageFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.TaskLog.MessageFormat) - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FORMAT_FIELD_NUMBER = 3; - private int messageFormat_; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - - public static final int TTL_FIELD_NUMBER = 4; - private com.google.protobuf.Duration ttl_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - return getTtl(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - output.writeEnum(3, messageFormat_); - } - if (ttl_ != null) { - output.writeMessage(4, getTtl()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (messageFormat_ != flyteidl.core.Execution.TaskLog.MessageFormat.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, messageFormat_); - } - if (ttl_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTtl()); - } - 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.core.Execution.TaskLog)) { - return super.equals(obj); - } - flyteidl.core.Execution.TaskLog other = (flyteidl.core.Execution.TaskLog) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (!getName() - .equals(other.getName())) return false; - if (messageFormat_ != other.messageFormat_) return false; - if (hasTtl() != other.hasTtl()) return false; - if (hasTtl()) { - if (!getTtl() - .equals(other.getTtl())) 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(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + MESSAGE_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + messageFormat_; - if (hasTtl()) { - hash = (37 * hash) + TTL_FIELD_NUMBER; - hash = (53 * hash) + getTtl().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.TaskLog parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.TaskLog parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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.core.Execution.TaskLog parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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.core.Execution.TaskLog parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.TaskLog 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.core.Execution.TaskLog 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; - } - /** - *
-     * Log information for the task that is specific to a log sink
-     * When our log story is flushed out, we may have more metadata here like log link expiry
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskLog} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskLog) - flyteidl.core.Execution.TaskLogOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.TaskLog.class, flyteidl.core.Execution.TaskLog.Builder.class); - } - - // Construct using flyteidl.core.Execution.TaskLog.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(); - uri_ = ""; - - name_ = ""; - - messageFormat_ = 0; - - if (ttlBuilder_ == null) { - ttl_ = null; - } else { - ttl_ = null; - ttlBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_TaskLog_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog getDefaultInstanceForType() { - return flyteidl.core.Execution.TaskLog.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog build() { - flyteidl.core.Execution.TaskLog result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.TaskLog buildPartial() { - flyteidl.core.Execution.TaskLog result = new flyteidl.core.Execution.TaskLog(this); - result.uri_ = uri_; - result.name_ = name_; - result.messageFormat_ = messageFormat_; - if (ttlBuilder_ == null) { - result.ttl_ = ttl_; - } else { - result.ttl_ = ttlBuilder_.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.core.Execution.TaskLog) { - return mergeFrom((flyteidl.core.Execution.TaskLog)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.TaskLog other) { - if (other == flyteidl.core.Execution.TaskLog.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.messageFormat_ != 0) { - setMessageFormatValue(other.getMessageFormatValue()); - } - if (other.hasTtl()) { - mergeTtl(other.getTtl()); - } - 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.core.Execution.TaskLog parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.TaskLog) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int messageFormat_ = 0; - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public int getMessageFormatValue() { - return messageFormat_; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormatValue(int value) { - messageFormat_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public flyteidl.core.Execution.TaskLog.MessageFormat getMessageFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskLog.MessageFormat result = flyteidl.core.Execution.TaskLog.MessageFormat.valueOf(messageFormat_); - return result == null ? flyteidl.core.Execution.TaskLog.MessageFormat.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder setMessageFormat(flyteidl.core.Execution.TaskLog.MessageFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - messageFormat_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.TaskLog.MessageFormat message_format = 3; - */ - public Builder clearMessageFormat() { - - messageFormat_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration ttl_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> ttlBuilder_; - /** - * .google.protobuf.Duration ttl = 4; - */ - public boolean hasTtl() { - return ttlBuilder_ != null || ttl_ != null; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration getTtl() { - if (ttlBuilder_ == null) { - return ttl_ == null ? com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } else { - return ttlBuilder_.getMessage(); - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ttl_ = value; - onChanged(); - } else { - ttlBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder setTtl( - com.google.protobuf.Duration.Builder builderForValue) { - if (ttlBuilder_ == null) { - ttl_ = builderForValue.build(); - onChanged(); - } else { - ttlBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder mergeTtl(com.google.protobuf.Duration value) { - if (ttlBuilder_ == null) { - if (ttl_ != null) { - ttl_ = - com.google.protobuf.Duration.newBuilder(ttl_).mergeFrom(value).buildPartial(); - } else { - ttl_ = value; - } - onChanged(); - } else { - ttlBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public Builder clearTtl() { - if (ttlBuilder_ == null) { - ttl_ = null; - onChanged(); - } else { - ttl_ = null; - ttlBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.Duration.Builder getTtlBuilder() { - - onChanged(); - return getTtlFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration ttl = 4; - */ - public com.google.protobuf.DurationOrBuilder getTtlOrBuilder() { - if (ttlBuilder_ != null) { - return ttlBuilder_.getMessageOrBuilder(); - } else { - return ttl_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : ttl_; - } - } - /** - * .google.protobuf.Duration ttl = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTtlFieldBuilder() { - if (ttlBuilder_ == null) { - ttlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTtl(), - getParentForChildren(), - isClean()); - ttl_ = null; - } - return ttlBuilder_; - } - @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.core.TaskLog) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskLog) - private static final flyteidl.core.Execution.TaskLog DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.TaskLog(); - } - - public static flyteidl.core.Execution.TaskLog getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskLog parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskLog(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.core.Execution.TaskLog getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfServiceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - boolean hasQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.Duration getQueueingBudget(); - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder(); - } - /** - *
-   * Represents customized execution run-time attributes.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class QualityOfServiceSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfServiceSpec) - QualityOfServiceSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfServiceSpec.newBuilder() to construct. - private QualityOfServiceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfServiceSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfServiceSpec( - 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: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (queueingBudget_ != null) { - subBuilder = queueingBudget_.toBuilder(); - } - queueingBudget_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queueingBudget_); - queueingBudget_ = 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.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - public static final int QUEUEING_BUDGET_FIELD_NUMBER = 1; - private com.google.protobuf.Duration queueingBudget_; - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudget_ != null; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - /** - *
-     * Indicates how much queueing delay an execution can tolerate.
-     * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - return getQueueingBudget(); - } - - 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 (queueingBudget_ != null) { - output.writeMessage(1, getQueueingBudget()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (queueingBudget_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQueueingBudget()); - } - 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.core.Execution.QualityOfServiceSpec)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfServiceSpec other = (flyteidl.core.Execution.QualityOfServiceSpec) obj; - - if (hasQueueingBudget() != other.hasQueueingBudget()) return false; - if (hasQueueingBudget()) { - if (!getQueueingBudget() - .equals(other.getQueueingBudget())) 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 (hasQueueingBudget()) { - hash = (37 * hash) + QUEUEING_BUDGET_FIELD_NUMBER; - hash = (53 * hash) + getQueueingBudget().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfServiceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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.core.Execution.QualityOfServiceSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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.core.Execution.QualityOfServiceSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfServiceSpec 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.core.Execution.QualityOfServiceSpec 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; - } - /** - *
-     * Represents customized execution run-time attributes.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfServiceSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfServiceSpec) - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfServiceSpec.class, flyteidl.core.Execution.QualityOfServiceSpec.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfServiceSpec.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 (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec build() { - flyteidl.core.Execution.QualityOfServiceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfServiceSpec buildPartial() { - flyteidl.core.Execution.QualityOfServiceSpec result = new flyteidl.core.Execution.QualityOfServiceSpec(this); - if (queueingBudgetBuilder_ == null) { - result.queueingBudget_ = queueingBudget_; - } else { - result.queueingBudget_ = queueingBudgetBuilder_.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.core.Execution.QualityOfServiceSpec) { - return mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfServiceSpec other) { - if (other == flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) return this; - if (other.hasQueueingBudget()) { - mergeQueueingBudget(other.getQueueingBudget()); - } - 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.core.Execution.QualityOfServiceSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfServiceSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration queueingBudget_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> queueingBudgetBuilder_; - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public boolean hasQueueingBudget() { - return queueingBudgetBuilder_ != null || queueingBudget_ != null; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration getQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - return queueingBudget_ == null ? com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } else { - return queueingBudgetBuilder_.getMessage(); - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queueingBudget_ = value; - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder setQueueingBudget( - com.google.protobuf.Duration.Builder builderForValue) { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = builderForValue.build(); - onChanged(); - } else { - queueingBudgetBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder mergeQueueingBudget(com.google.protobuf.Duration value) { - if (queueingBudgetBuilder_ == null) { - if (queueingBudget_ != null) { - queueingBudget_ = - com.google.protobuf.Duration.newBuilder(queueingBudget_).mergeFrom(value).buildPartial(); - } else { - queueingBudget_ = value; - } - onChanged(); - } else { - queueingBudgetBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public Builder clearQueueingBudget() { - if (queueingBudgetBuilder_ == null) { - queueingBudget_ = null; - onChanged(); - } else { - queueingBudget_ = null; - queueingBudgetBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.Duration.Builder getQueueingBudgetBuilder() { - - onChanged(); - return getQueueingBudgetFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - public com.google.protobuf.DurationOrBuilder getQueueingBudgetOrBuilder() { - if (queueingBudgetBuilder_ != null) { - return queueingBudgetBuilder_.getMessageOrBuilder(); - } else { - return queueingBudget_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : queueingBudget_; - } - } - /** - *
-       * Indicates how much queueing delay an execution can tolerate.
-       * 
- * - * .google.protobuf.Duration queueing_budget = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getQueueingBudgetFieldBuilder() { - if (queueingBudgetBuilder_ == null) { - queueingBudgetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getQueueingBudget(), - getParentForChildren(), - isClean()); - queueingBudget_ = null; - } - return queueingBudgetBuilder_; - } - @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.core.QualityOfServiceSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfServiceSpec) - private static final flyteidl.core.Execution.QualityOfServiceSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfServiceSpec(); - } - - public static flyteidl.core.Execution.QualityOfServiceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfServiceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfServiceSpec(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.core.Execution.QualityOfServiceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QualityOfServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.QualityOfService) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - int getTierValue(); - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - flyteidl.core.Execution.QualityOfService.Tier getTier(); - - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - boolean hasSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpec getSpec(); - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder(); - - public flyteidl.core.Execution.QualityOfService.DesignationCase getDesignationCase(); - } - /** - *
-   * Indicates the priority of an execution.
-   * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class QualityOfService extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.QualityOfService) - QualityOfServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use QualityOfService.newBuilder() to construct. - private QualityOfService(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QualityOfService() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QualityOfService( - 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 8: { - int rawValue = input.readEnum(); - designationCase_ = 1; - designation_ = rawValue; - break; - } - case 18: { - flyteidl.core.Execution.QualityOfServiceSpec.Builder subBuilder = null; - if (designationCase_ == 2) { - subBuilder = ((flyteidl.core.Execution.QualityOfServiceSpec) designation_).toBuilder(); - } - designation_ = - input.readMessage(flyteidl.core.Execution.QualityOfServiceSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.QualityOfServiceSpec) designation_); - designation_ = subBuilder.buildPartial(); - } - designationCase_ = 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.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.QualityOfService.Tier} - */ - public enum Tier - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * HIGH = 1; - */ - HIGH(1), - /** - * MEDIUM = 2; - */ - MEDIUM(2), - /** - * LOW = 3; - */ - LOW(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default: no quality of service specified.
-       * 
- * - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * HIGH = 1; - */ - public static final int HIGH_VALUE = 1; - /** - * MEDIUM = 2; - */ - public static final int MEDIUM_VALUE = 2; - /** - * LOW = 3; - */ - public static final int LOW_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Tier valueOf(int value) { - return forNumber(value); - } - - public static Tier forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return HIGH; - case 2: return MEDIUM; - case 3: return LOW; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Tier> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Tier findValueByNumber(int number) { - return Tier.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Execution.QualityOfService.getDescriptor().getEnumTypes().get(0); - } - - private static final Tier[] VALUES = values(); - - public static Tier valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Tier(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.QualityOfService.Tier) - } - - private int designationCase_ = 0; - private java.lang.Object designation_; - public enum DesignationCase - implements com.google.protobuf.Internal.EnumLite { - TIER(1), - SPEC(2), - DESIGNATION_NOT_SET(0); - private final int value; - private DesignationCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DesignationCase valueOf(int value) { - return forNumber(value); - } - - public static DesignationCase forNumber(int value) { - switch (value) { - case 1: return TIER; - case 2: return SPEC; - case 0: return DESIGNATION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public static final int TIER_FIELD_NUMBER = 1; - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return (java.lang.Integer) designation_; - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - - public static final int SPEC_FIELD_NUMBER = 2; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.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 (designationCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (designationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) designation_)); - } - if (designationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Execution.QualityOfServiceSpec) designation_); - } - 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.core.Execution.QualityOfService)) { - return super.equals(obj); - } - flyteidl.core.Execution.QualityOfService other = (flyteidl.core.Execution.QualityOfService) obj; - - if (!getDesignationCase().equals(other.getDesignationCase())) return false; - switch (designationCase_) { - case 1: - if (getTierValue() - != other.getTierValue()) return false; - break; - case 2: - if (!getSpec() - .equals(other.getSpec())) 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 (designationCase_) { - case 1: - hash = (37 * hash) + TIER_FIELD_NUMBER; - hash = (53 * hash) + getTierValue(); - break; - case 2: - hash = (37 * hash) + SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Execution.QualityOfService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Execution.QualityOfService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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.core.Execution.QualityOfService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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.core.Execution.QualityOfService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Execution.QualityOfService 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.core.Execution.QualityOfService 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; - } - /** - *
-     * Indicates the priority of an execution.
-     * 
- * - * Protobuf type {@code flyteidl.core.QualityOfService} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.QualityOfService) - flyteidl.core.Execution.QualityOfServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Execution.QualityOfService.class, flyteidl.core.Execution.QualityOfService.Builder.class); - } - - // Construct using flyteidl.core.Execution.QualityOfService.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(); - designationCase_ = 0; - designation_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Execution.internal_static_flyteidl_core_QualityOfService_descriptor; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService getDefaultInstanceForType() { - return flyteidl.core.Execution.QualityOfService.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService build() { - flyteidl.core.Execution.QualityOfService result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Execution.QualityOfService buildPartial() { - flyteidl.core.Execution.QualityOfService result = new flyteidl.core.Execution.QualityOfService(this); - if (designationCase_ == 1) { - result.designation_ = designation_; - } - if (designationCase_ == 2) { - if (specBuilder_ == null) { - result.designation_ = designation_; - } else { - result.designation_ = specBuilder_.build(); - } - } - result.designationCase_ = designationCase_; - 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.core.Execution.QualityOfService) { - return mergeFrom((flyteidl.core.Execution.QualityOfService)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Execution.QualityOfService other) { - if (other == flyteidl.core.Execution.QualityOfService.getDefaultInstance()) return this; - switch (other.getDesignationCase()) { - case TIER: { - setTierValue(other.getTierValue()); - break; - } - case SPEC: { - mergeSpec(other.getSpec()); - break; - } - case DESIGNATION_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.core.Execution.QualityOfService parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Execution.QualityOfService) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int designationCase_ = 0; - private java.lang.Object designation_; - public DesignationCase - getDesignationCase() { - return DesignationCase.forNumber( - designationCase_); - } - - public Builder clearDesignation() { - designationCase_ = 0; - designation_ = null; - onChanged(); - return this; - } - - - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public int getTierValue() { - if (designationCase_ == 1) { - return ((java.lang.Integer) designation_).intValue(); - } - return 0; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTierValue(int value) { - designationCase_ = 1; - designation_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public flyteidl.core.Execution.QualityOfService.Tier getTier() { - if (designationCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.QualityOfService.Tier result = flyteidl.core.Execution.QualityOfService.Tier.valueOf( - (java.lang.Integer) designation_); - return result == null ? flyteidl.core.Execution.QualityOfService.Tier.UNRECOGNIZED : result; - } - return flyteidl.core.Execution.QualityOfService.Tier.UNDEFINED; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder setTier(flyteidl.core.Execution.QualityOfService.Tier value) { - if (value == null) { - throw new NullPointerException(); - } - designationCase_ = 1; - designation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.QualityOfService.Tier tier = 1; - */ - public Builder clearTier() { - if (designationCase_ == 1) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> specBuilder_; - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public boolean hasSpec() { - return designationCase_ == 2; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec getSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } else { - if (designationCase_ == 2) { - return specBuilder_.getMessage(); - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - designation_ = value; - onChanged(); - } else { - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder setSpec( - flyteidl.core.Execution.QualityOfServiceSpec.Builder builderForValue) { - if (specBuilder_ == null) { - designation_ = builderForValue.build(); - onChanged(); - } else { - specBuilder_.setMessage(builderForValue.build()); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder mergeSpec(flyteidl.core.Execution.QualityOfServiceSpec value) { - if (specBuilder_ == null) { - if (designationCase_ == 2 && - designation_ != flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance()) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.newBuilder((flyteidl.core.Execution.QualityOfServiceSpec) designation_) - .mergeFrom(value).buildPartial(); - } else { - designation_ = value; - } - onChanged(); - } else { - if (designationCase_ == 2) { - specBuilder_.mergeFrom(value); - } - specBuilder_.setMessage(value); - } - designationCase_ = 2; - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public Builder clearSpec() { - if (specBuilder_ == null) { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - onChanged(); - } - } else { - if (designationCase_ == 2) { - designationCase_ = 0; - designation_ = null; - } - specBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpec.Builder getSpecBuilder() { - return getSpecFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - public flyteidl.core.Execution.QualityOfServiceSpecOrBuilder getSpecOrBuilder() { - if ((designationCase_ == 2) && (specBuilder_ != null)) { - return specBuilder_.getMessageOrBuilder(); - } else { - if (designationCase_ == 2) { - return (flyteidl.core.Execution.QualityOfServiceSpec) designation_; - } - return flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - } - /** - * .flyteidl.core.QualityOfServiceSpec spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder> - getSpecFieldBuilder() { - if (specBuilder_ == null) { - if (!(designationCase_ == 2)) { - designation_ = flyteidl.core.Execution.QualityOfServiceSpec.getDefaultInstance(); - } - specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfServiceSpec, flyteidl.core.Execution.QualityOfServiceSpec.Builder, flyteidl.core.Execution.QualityOfServiceSpecOrBuilder>( - (flyteidl.core.Execution.QualityOfServiceSpec) designation_, - getParentForChildren(), - isClean()); - designation_ = null; - } - designationCase_ = 2; - onChanged();; - return specBuilder_; - } - @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.core.QualityOfService) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.QualityOfService) - private static final flyteidl.core.Execution.QualityOfService DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Execution.QualityOfService(); - } - - public static flyteidl.core.Execution.QualityOfService getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QualityOfService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QualityOfService(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.core.Execution.QualityOfService getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ExecutionError_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ExecutionError_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskLog_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskLog_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfServiceSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfServiceSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_QualityOfService_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_QualityOfService_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/core/execution.proto\022\rflyteid" + - "l.core\032\036google/protobuf/duration.proto\"\247" + - "\001\n\021WorkflowExecution\"\221\001\n\005Phase\022\r\n\tUNDEFI" + - "NED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\016\n\nSUCCEE" + - "DING\020\003\022\r\n\tSUCCEEDED\020\004\022\013\n\007FAILING\020\005\022\n\n\006FA" + - "ILED\020\006\022\013\n\007ABORTED\020\007\022\r\n\tTIMED_OUT\020\010\022\014\n\010AB" + - "ORTING\020\t\"\266\001\n\rNodeExecution\"\244\001\n\005Phase\022\r\n\t" + - "UNDEFINED\020\000\022\n\n\006QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\t" + - "SUCCEEDED\020\003\022\013\n\007FAILING\020\004\022\n\n\006FAILED\020\005\022\013\n\007" + - "ABORTED\020\006\022\013\n\007SKIPPED\020\007\022\r\n\tTIMED_OUT\020\010\022\023\n" + - "\017DYNAMIC_RUNNING\020\t\022\r\n\tRECOVERED\020\n\"\226\001\n\rTa" + - "skExecution\"\204\001\n\005Phase\022\r\n\tUNDEFINED\020\000\022\n\n\006" + - "QUEUED\020\001\022\013\n\007RUNNING\020\002\022\r\n\tSUCCEEDED\020\003\022\013\n\007" + - "ABORTED\020\004\022\n\n\006FAILED\020\005\022\020\n\014INITIALIZING\020\006\022" + - "\031\n\025WAITING_FOR_RESOURCES\020\007\"\251\001\n\016Execution" + - "Error\022\014\n\004code\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\021\n\t" + - "error_uri\030\003 \001(\t\0225\n\004kind\030\004 \001(\0162\'.flyteidl" + - ".core.ExecutionError.ErrorKind\".\n\tErrorK" + - "ind\022\013\n\007UNKNOWN\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\"\273" + - "\001\n\007TaskLog\022\013\n\003uri\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022<\n" + - "\016message_format\030\003 \001(\0162$.flyteidl.core.Ta" + - "skLog.MessageFormat\022&\n\003ttl\030\004 \001(\0132\031.googl" + - "e.protobuf.Duration\"/\n\rMessageFormat\022\013\n\007" + - "UNKNOWN\020\000\022\007\n\003CSV\020\001\022\010\n\004JSON\020\002\"J\n\024QualityO" + - "fServiceSpec\0222\n\017queueing_budget\030\001 \001(\0132\031." + - "google.protobuf.Duration\"\302\001\n\020QualityOfSe" + - "rvice\0224\n\004tier\030\001 \001(\0162$.flyteidl.core.Qual" + - "ityOfService.TierH\000\0223\n\004spec\030\002 \001(\0132#.flyt" + - "eidl.core.QualityOfServiceSpecH\000\"4\n\004Tier" + - "\022\r\n\tUNDEFINED\020\000\022\010\n\004HIGH\020\001\022\n\n\006MEDIUM\020\002\022\007\n" + - "\003LOW\020\003B\r\n\013designationB - * Indicates a resource type within Flyte. - * - * - * Protobuf enum {@code flyteidl.core.ResourceType} - */ - public enum ResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNSPECIFIED = 0; - */ - UNSPECIFIED(0), - /** - * TASK = 1; - */ - TASK(1), - /** - * WORKFLOW = 2; - */ - WORKFLOW(2), - /** - * LAUNCH_PLAN = 3; - */ - LAUNCH_PLAN(3), - /** - *
-     * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.
-     * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI  and CLI to act on the objects 
-     * in a similar manner to other Flyte objects
-     * 
- * - * DATASET = 4; - */ - DATASET(4), - UNRECOGNIZED(-1), - ; - - /** - * UNSPECIFIED = 0; - */ - public static final int UNSPECIFIED_VALUE = 0; - /** - * TASK = 1; - */ - public static final int TASK_VALUE = 1; - /** - * WORKFLOW = 2; - */ - public static final int WORKFLOW_VALUE = 2; - /** - * LAUNCH_PLAN = 3; - */ - public static final int LAUNCH_PLAN_VALUE = 3; - /** - *
-     * A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.
-     * Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI  and CLI to act on the objects 
-     * in a similar manner to other Flyte objects
-     * 
- * - * DATASET = 4; - */ - public static final int DATASET_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceType valueOf(int value) { - return forNumber(value); - } - - public static ResourceType forNumber(int value) { - switch (value) { - case 0: return UNSPECIFIED; - case 1: return TASK; - case 2: return WORKFLOW; - case 3: return LAUNCH_PLAN; - case 4: return DATASET; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceType findValueByNumber(int number) { - return ResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceType[] VALUES = values(); - - public static ResourceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ResourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.ResourceType) - } - - public interface IdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Identifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - int getResourceTypeValue(); - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - flyteidl.core.IdentifierOuterClass.ResourceType getResourceType(); - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - java.lang.String getVersion(); - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - com.google.protobuf.ByteString - getVersionBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte resource.
-   * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Identifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Identifier) - IdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use Identifier.newBuilder() to construct. - private Identifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Identifier() { - resourceType_ = 0; - project_ = ""; - domain_ = ""; - name_ = ""; - version_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Identifier( - 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 8: { - int rawValue = input.readEnum(); - - resourceType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - 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.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-     * Identifies the specific type of resource that this identifier corresponds to.
-     * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - - public static final int PROJECT_FIELD_NUMBER = 2; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 3; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User provided value for the resource.
-     * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_FIELD_NUMBER = 5; - private volatile java.lang.Object version_; - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * Specific version of the resource.
-     * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - output.writeEnum(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceType_ != flyteidl.core.IdentifierOuterClass.ResourceType.UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, resourceType_); - } - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); - } - 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.core.IdentifierOuterClass.Identifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.Identifier other = (flyteidl.core.IdentifierOuterClass.Identifier) obj; - - if (resourceType_ != other.resourceType_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getVersion() - .equals(other.getVersion())) 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(); - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_; - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.Identifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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.core.IdentifierOuterClass.Identifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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.core.IdentifierOuterClass.Identifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.Identifier 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.core.IdentifierOuterClass.Identifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte resource.
-     * 
- * - * Protobuf type {@code flyteidl.core.Identifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Identifier) - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.Identifier.class, flyteidl.core.IdentifierOuterClass.Identifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.Identifier.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(); - resourceType_ = 0; - - project_ = ""; - - domain_ = ""; - - name_ = ""; - - version_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_Identifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier build() { - flyteidl.core.IdentifierOuterClass.Identifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.Identifier buildPartial() { - flyteidl.core.IdentifierOuterClass.Identifier result = new flyteidl.core.IdentifierOuterClass.Identifier(this); - result.resourceType_ = resourceType_; - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - result.version_ = version_; - 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.core.IdentifierOuterClass.Identifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.Identifier other) { - if (other == flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) return this; - if (other.resourceType_ != 0) { - setResourceTypeValue(other.getResourceTypeValue()); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - 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.core.IdentifierOuterClass.Identifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.Identifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int resourceType_ = 0; - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public int getResourceTypeValue() { - return resourceType_; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceTypeValue(int value) { - resourceType_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public flyteidl.core.IdentifierOuterClass.ResourceType getResourceType() { - @SuppressWarnings("deprecation") - flyteidl.core.IdentifierOuterClass.ResourceType result = flyteidl.core.IdentifierOuterClass.ResourceType.valueOf(resourceType_); - return result == null ? flyteidl.core.IdentifierOuterClass.ResourceType.UNRECOGNIZED : result; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder setResourceType(flyteidl.core.IdentifierOuterClass.ResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - - resourceType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Identifies the specific type of resource that this identifier corresponds to.
-       * 
- * - * .flyteidl.core.ResourceType resource_type = 1; - */ - public Builder clearResourceType() { - - resourceType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 2; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 3; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Specific version of the resource.
-       * 
- * - * string version = 5; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - @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.core.Identifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identifier) - private static final flyteidl.core.IdentifierOuterClass.Identifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.Identifier(); - } - - public static flyteidl.core.IdentifierOuterClass.Identifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Identifier(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.core.IdentifierOuterClass.Identifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - java.lang.String getName(); - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
-   * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class WorkflowExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowExecutionIdentifier) - WorkflowExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionIdentifier.newBuilder() to construct. - private WorkflowExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionIdentifier() { - project_ = ""; - domain_ = ""; - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionIdentifier( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - 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.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Name of the project the resource belongs to.
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Name of the domain the resource belongs to.
-     * A domain can be considered as a subset within a specific project.
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object name_; - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * User or system provided value for the resource.
-     * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); - } - 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getName() - .equals(other.getName())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that uniquely identifies a Flyte workflow execution
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.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(); - project_ = ""; - - domain_ = ""; - - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(this); - result.project_ = project_; - result.domain_ = domain_; - result.name_ = name_; - 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - 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.core.IdentifierOuterClass.WorkflowExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Name of the project the resource belongs to.
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Name of the domain the resource belongs to.
-       * A domain can be considered as a subset within a specific project.
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * User or system provided value for the resource.
-       * 
- * - * string name = 4; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @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.core.WorkflowExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionIdentifier(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.core.IdentifierOuterClass.WorkflowExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte node execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class NodeExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeExecutionIdentifier) - NodeExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionIdentifier.newBuilder() to construct. - private NodeExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionIdentifier() { - nodeId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionIdentifier( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (executionId_ != null) { - output.writeMessage(2, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionId()); - } - 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.core.IdentifierOuterClass.NodeExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.core.IdentifierOuterClass.NodeExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.core.IdentifierOuterClass.NodeExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier 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.core.IdentifierOuterClass.NodeExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte node execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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(); - nodeId_ = ""; - - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(this); - result.nodeId_ = nodeId_; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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.core.IdentifierOuterClass.NodeExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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.core.IdentifierOuterClass.NodeExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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.core.NodeExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionIdentifier(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.core.IdentifierOuterClass.NodeExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskExecutionIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - boolean hasNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - /** - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - } - /** - *
-   * Encapsulation of fields that identify a Flyte task execution entity.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class TaskExecutionIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskExecutionIdentifier) - TaskExecutionIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionIdentifier.newBuilder() to construct. - private TaskExecutionIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionIdentifier() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionIdentifier( - 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 (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (nodeExecutionId_ != null) { - subBuilder = nodeExecutionId_.toBuilder(); - } - nodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nodeExecutionId_); - nodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - 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.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - return getNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - output.writeMessage(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (nodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - 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.core.IdentifierOuterClass.TaskExecutionIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasNodeExecutionId() != other.hasNodeExecutionId()) return false; - if (hasNodeExecutionId()) { - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) 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 (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasNodeExecutionId()) { - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.core.IdentifierOuterClass.TaskExecutionIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.core.IdentifierOuterClass.TaskExecutionIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier 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.core.IdentifierOuterClass.TaskExecutionIdentifier 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; - } - /** - *
-     * Encapsulation of fields that identify a Flyte task execution entity.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskExecutionIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskExecutionIdentifier) - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.class, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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 (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier build() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier result = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(this); - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (nodeExecutionIdBuilder_ == null) { - result.nodeExecutionId_ = nodeExecutionId_; - } else { - result.nodeExecutionId_ = nodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - 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.core.IdentifierOuterClass.TaskExecutionIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasNodeExecutionId()) { - mergeNodeExecutionId(other.getNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - 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.core.IdentifierOuterClass.TaskExecutionIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier nodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public boolean hasNodeExecutionId() { - return nodeExecutionIdBuilder_ != null || nodeExecutionId_ != null; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - return nodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } else { - return nodeExecutionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nodeExecutionId_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (nodeExecutionId_ != null) { - nodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(nodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - nodeExecutionId_ = value; - } - onChanged(); - } else { - nodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionId_ = null; - onChanged(); - } else { - nodeExecutionId_ = null; - nodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - - onChanged(); - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (nodeExecutionIdBuilder_ != null) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return nodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : nodeExecutionId_; - } - } - /** - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getNodeExecutionId(), - getParentForChildren(), - isClean()); - nodeExecutionId_ = null; - } - return nodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - @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.core.TaskExecutionIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskExecutionIdentifier) - private static final flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionIdentifier(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.core.IdentifierOuterClass.TaskExecutionIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalIdentifierOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SignalIdentifier) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for a signal.
-     * 
- * - * string signal_id = 1; - */ - java.lang.String getSignalId(); - /** - *
-     * Unique identifier for a signal.
-     * 
- * - * string signal_id = 1; - */ - com.google.protobuf.ByteString - getSignalIdBytes(); - - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - boolean hasExecutionId(); - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * Encapsulation of fields the uniquely identify a signal.
-   * 
- * - * Protobuf type {@code flyteidl.core.SignalIdentifier} - */ - public static final class SignalIdentifier extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SignalIdentifier) - SignalIdentifierOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalIdentifier.newBuilder() to construct. - private SignalIdentifier(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalIdentifier() { - signalId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalIdentifier( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - signalId_ = s; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.SignalIdentifier.class, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder.class); - } - - public static final int SIGNAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object signalId_; - /** - *
-     * Unique identifier for a signal.
-     * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } - } - /** - *
-     * Unique identifier for a signal.
-     * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * Identifies the Flyte workflow execution this signal belongs to.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (!getSignalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); - } - if (executionId_ != null) { - output.writeMessage(2, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); - } - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExecutionId()); - } - 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.core.IdentifierOuterClass.SignalIdentifier)) { - return super.equals(obj); - } - flyteidl.core.IdentifierOuterClass.SignalIdentifier other = (flyteidl.core.IdentifierOuterClass.SignalIdentifier) obj; - - if (!getSignalId() - .equals(other.getSignalId())) return false; - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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(); - hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getSignalId().hashCode(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier 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.core.IdentifierOuterClass.SignalIdentifier parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier 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.core.IdentifierOuterClass.SignalIdentifier parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier 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.core.IdentifierOuterClass.SignalIdentifier 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; - } - /** - *
-     * Encapsulation of fields the uniquely identify a signal.
-     * 
- * - * Protobuf type {@code flyteidl.core.SignalIdentifier} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SignalIdentifier) - flyteidl.core.IdentifierOuterClass.SignalIdentifierOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.IdentifierOuterClass.SignalIdentifier.class, flyteidl.core.IdentifierOuterClass.SignalIdentifier.Builder.class); - } - - // Construct using flyteidl.core.IdentifierOuterClass.SignalIdentifier.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(); - signalId_ = ""; - - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.IdentifierOuterClass.internal_static_flyteidl_core_SignalIdentifier_descriptor; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.SignalIdentifier getDefaultInstanceForType() { - return flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.SignalIdentifier build() { - flyteidl.core.IdentifierOuterClass.SignalIdentifier result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.IdentifierOuterClass.SignalIdentifier buildPartial() { - flyteidl.core.IdentifierOuterClass.SignalIdentifier result = new flyteidl.core.IdentifierOuterClass.SignalIdentifier(this); - result.signalId_ = signalId_; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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.core.IdentifierOuterClass.SignalIdentifier) { - return mergeFrom((flyteidl.core.IdentifierOuterClass.SignalIdentifier)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.IdentifierOuterClass.SignalIdentifier other) { - if (other == flyteidl.core.IdentifierOuterClass.SignalIdentifier.getDefaultInstance()) return this; - if (!other.getSignalId().isEmpty()) { - signalId_ = other.signalId_; - onChanged(); - } - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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.core.IdentifierOuterClass.SignalIdentifier parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.IdentifierOuterClass.SignalIdentifier) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signalId_ = ""; - /** - *
-       * Unique identifier for a signal.
-       * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique identifier for a signal.
-       * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique identifier for a signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signalId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique identifier for a signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder clearSignalId() { - - signalId_ = getDefaultInstance().getSignalId(); - onChanged(); - return this; - } - /** - *
-       * Unique identifier for a signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signalId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * Identifies the Flyte workflow execution this signal belongs to.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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.core.SignalIdentifier) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SignalIdentifier) - private static final flyteidl.core.IdentifierOuterClass.SignalIdentifier DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.IdentifierOuterClass.SignalIdentifier(); - } - - public static flyteidl.core.IdentifierOuterClass.SignalIdentifier getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalIdentifier parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalIdentifier(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.core.IdentifierOuterClass.SignalIdentifier getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Identifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Identifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskExecutionIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskExecutionIdentifier_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SignalIdentifier_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SignalIdentifier_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036flyteidl/core/identifier.proto\022\rflytei" + - "dl.core\"\200\001\n\nIdentifier\0222\n\rresource_type\030" + - "\001 \001(\0162\033.flyteidl.core.ResourceType\022\017\n\007pr" + - "oject\030\002 \001(\t\022\016\n\006domain\030\003 \001(\t\022\014\n\004name\030\004 \001(" + - "\t\022\017\n\007version\030\005 \001(\t\"L\n\033WorkflowExecutionI" + - "dentifier\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001" + - "(\t\022\014\n\004name\030\004 \001(\t\"l\n\027NodeExecutionIdentif" + - "ier\022\017\n\007node_id\030\001 \001(\t\022@\n\014execution_id\030\002 \001" + - "(\0132*.flyteidl.core.WorkflowExecutionIden" + - "tifier\"\237\001\n\027TaskExecutionIdentifier\022*\n\007ta" + - "sk_id\030\001 \001(\0132\031.flyteidl.core.Identifier\022A" + - "\n\021node_execution_id\030\002 \001(\0132&.flyteidl.cor" + - "e.NodeExecutionIdentifier\022\025\n\rretry_attem" + - "pt\030\003 \001(\r\"g\n\020SignalIdentifier\022\021\n\tsignal_i" + - "d\030\001 \001(\t\022@\n\014execution_id\030\002 \001(\0132*.flyteidl" + - ".core.WorkflowExecutionIdentifier*U\n\014Res" + - "ourceType\022\017\n\013UNSPECIFIED\020\000\022\010\n\004TASK\020\001\022\014\n\010" + - "WORKFLOW\020\002\022\017\n\013LAUNCH_PLAN\020\003\022\013\n\007DATASET\020\004" + - "B - * Variable literal type. - * - * - * .flyteidl.core.LiteralType type = 1; - */ - boolean hasType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - java.lang.String getDescription(); - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - boolean hasArtifactPartialId(); - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactPartialId(); - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactPartialIdOrBuilder(); - - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - boolean hasArtifactTag(); - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - flyteidl.core.ArtifactId.ArtifactTag getArtifactTag(); - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder(); - } - /** - *
-   * Defines a strongly typed variable.
-   * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Variable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Variable) - VariableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Variable.newBuilder() to construct. - private Variable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Variable() { - description_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Variable( - 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.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 26: { - flyteidl.core.ArtifactId.ArtifactID.Builder subBuilder = null; - if (artifactPartialId_ != null) { - subBuilder = artifactPartialId_.toBuilder(); - } - artifactPartialId_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactPartialId_); - artifactPartialId_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.ArtifactId.ArtifactTag.Builder subBuilder = null; - if (artifactTag_ != null) { - subBuilder = artifactTag_.toBuilder(); - } - artifactTag_ = input.readMessage(flyteidl.core.ArtifactId.ArtifactTag.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(artifactTag_); - artifactTag_ = 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.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * Variable literal type.
-     * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
-     *+optional string describing input variable
-     * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_PARTIAL_ID_FIELD_NUMBER = 3; - private flyteidl.core.ArtifactId.ArtifactID artifactPartialId_; - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public boolean hasArtifactPartialId() { - return artifactPartialId_ != null; - } - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactPartialId() { - return artifactPartialId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactPartialId_; - } - /** - *
-     *+optional This object allows the user to specify how Artifacts are created.
-     * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-     * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactPartialIdOrBuilder() { - return getArtifactPartialId(); - } - - public static final int ARTIFACT_TAG_FIELD_NUMBER = 4; - private flyteidl.core.ArtifactId.ArtifactTag artifactTag_; - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public boolean hasArtifactTag() { - return artifactTag_ != null; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public flyteidl.core.ArtifactId.ArtifactTag getArtifactTag() { - return artifactTag_ == null ? flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance() : artifactTag_; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder() { - return getArtifactTag(); - } - - 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 (type_ != null) { - output.writeMessage(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); - } - if (artifactPartialId_ != null) { - output.writeMessage(3, getArtifactPartialId()); - } - if (artifactTag_ != null) { - output.writeMessage(4, getArtifactTag()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - if (!getDescriptionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); - } - if (artifactPartialId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getArtifactPartialId()); - } - if (artifactTag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getArtifactTag()); - } - 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.core.Interface.Variable)) { - return super.equals(obj); - } - flyteidl.core.Interface.Variable other = (flyteidl.core.Interface.Variable) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (!getDescription() - .equals(other.getDescription())) return false; - if (hasArtifactPartialId() != other.hasArtifactPartialId()) return false; - if (hasArtifactPartialId()) { - if (!getArtifactPartialId() - .equals(other.getArtifactPartialId())) return false; - } - if (hasArtifactTag() != other.hasArtifactTag()) return false; - if (hasArtifactTag()) { - if (!getArtifactTag() - .equals(other.getArtifactTag())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasArtifactPartialId()) { - hash = (37 * hash) + ARTIFACT_PARTIAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactPartialId().hashCode(); - } - if (hasArtifactTag()) { - hash = (37 * hash) + ARTIFACT_TAG_FIELD_NUMBER; - hash = (53 * hash) + getArtifactTag().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Variable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Variable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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.core.Interface.Variable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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.core.Interface.Variable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Variable 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.core.Interface.Variable 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; - } - /** - *
-     * Defines a strongly typed variable.
-     * 
- * - * Protobuf type {@code flyteidl.core.Variable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Variable) - flyteidl.core.Interface.VariableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Variable.class, flyteidl.core.Interface.Variable.Builder.class); - } - - // Construct using flyteidl.core.Interface.Variable.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - description_ = ""; - - if (artifactPartialIdBuilder_ == null) { - artifactPartialId_ = null; - } else { - artifactPartialId_ = null; - artifactPartialIdBuilder_ = null; - } - if (artifactTagBuilder_ == null) { - artifactTag_ = null; - } else { - artifactTag_ = null; - artifactTagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Variable_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable getDefaultInstanceForType() { - return flyteidl.core.Interface.Variable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Variable build() { - flyteidl.core.Interface.Variable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Variable buildPartial() { - flyteidl.core.Interface.Variable result = new flyteidl.core.Interface.Variable(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - result.description_ = description_; - if (artifactPartialIdBuilder_ == null) { - result.artifactPartialId_ = artifactPartialId_; - } else { - result.artifactPartialId_ = artifactPartialIdBuilder_.build(); - } - if (artifactTagBuilder_ == null) { - result.artifactTag_ = artifactTag_; - } else { - result.artifactTag_ = artifactTagBuilder_.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.core.Interface.Variable) { - return mergeFrom((flyteidl.core.Interface.Variable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Variable other) { - if (other == flyteidl.core.Interface.Variable.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.hasArtifactPartialId()) { - mergeArtifactPartialId(other.getArtifactPartialId()); - } - if (other.hasArtifactTag()) { - mergeArtifactTag(other.getArtifactTag()); - } - 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.core.Interface.Variable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Variable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * Variable literal type.
-       * 
- * - * .flyteidl.core.LiteralType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private java.lang.Object description_ = ""; - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
-       *+optional string describing input variable
-       * 
- * - * string description = 2; - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private flyteidl.core.ArtifactId.ArtifactID artifactPartialId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactPartialIdBuilder_; - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public boolean hasArtifactPartialId() { - return artifactPartialIdBuilder_ != null || artifactPartialId_ != null; - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactPartialId() { - if (artifactPartialIdBuilder_ == null) { - return artifactPartialId_ == null ? flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactPartialId_; - } else { - return artifactPartialIdBuilder_.getMessage(); - } - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public Builder setArtifactPartialId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactPartialIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactPartialId_ = value; - onChanged(); - } else { - artifactPartialIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public Builder setArtifactPartialId( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactPartialIdBuilder_ == null) { - artifactPartialId_ = builderForValue.build(); - onChanged(); - } else { - artifactPartialIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public Builder mergeArtifactPartialId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactPartialIdBuilder_ == null) { - if (artifactPartialId_ != null) { - artifactPartialId_ = - flyteidl.core.ArtifactId.ArtifactID.newBuilder(artifactPartialId_).mergeFrom(value).buildPartial(); - } else { - artifactPartialId_ = value; - } - onChanged(); - } else { - artifactPartialIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public Builder clearArtifactPartialId() { - if (artifactPartialIdBuilder_ == null) { - artifactPartialId_ = null; - onChanged(); - } else { - artifactPartialId_ = null; - artifactPartialIdBuilder_ = null; - } - - return this; - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactPartialIdBuilder() { - - onChanged(); - return getArtifactPartialIdFieldBuilder().getBuilder(); - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactPartialIdOrBuilder() { - if (artifactPartialIdBuilder_ != null) { - return artifactPartialIdBuilder_.getMessageOrBuilder(); - } else { - return artifactPartialId_ == null ? - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance() : artifactPartialId_; - } - } - /** - *
-       *+optional This object allows the user to specify how Artifacts are created.
-       * name, tag, partitions can be specified. The other fields (version and project/domain) are ignored.
-       * 
- * - * .flyteidl.core.ArtifactID artifact_partial_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactPartialIdFieldBuilder() { - if (artifactPartialIdBuilder_ == null) { - artifactPartialIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - getArtifactPartialId(), - getParentForChildren(), - isClean()); - artifactPartialId_ = null; - } - return artifactPartialIdBuilder_; - } - - private flyteidl.core.ArtifactId.ArtifactTag artifactTag_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder> artifactTagBuilder_; - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public boolean hasArtifactTag() { - return artifactTagBuilder_ != null || artifactTag_ != null; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public flyteidl.core.ArtifactId.ArtifactTag getArtifactTag() { - if (artifactTagBuilder_ == null) { - return artifactTag_ == null ? flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance() : artifactTag_; - } else { - return artifactTagBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public Builder setArtifactTag(flyteidl.core.ArtifactId.ArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifactTag_ = value; - onChanged(); - } else { - artifactTagBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public Builder setArtifactTag( - flyteidl.core.ArtifactId.ArtifactTag.Builder builderForValue) { - if (artifactTagBuilder_ == null) { - artifactTag_ = builderForValue.build(); - onChanged(); - } else { - artifactTagBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public Builder mergeArtifactTag(flyteidl.core.ArtifactId.ArtifactTag value) { - if (artifactTagBuilder_ == null) { - if (artifactTag_ != null) { - artifactTag_ = - flyteidl.core.ArtifactId.ArtifactTag.newBuilder(artifactTag_).mergeFrom(value).buildPartial(); - } else { - artifactTag_ = value; - } - onChanged(); - } else { - artifactTagBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public Builder clearArtifactTag() { - if (artifactTagBuilder_ == null) { - artifactTag_ = null; - onChanged(); - } else { - artifactTag_ = null; - artifactTagBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public flyteidl.core.ArtifactId.ArtifactTag.Builder getArtifactTagBuilder() { - - onChanged(); - return getArtifactTagFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - public flyteidl.core.ArtifactId.ArtifactTagOrBuilder getArtifactTagOrBuilder() { - if (artifactTagBuilder_ != null) { - return artifactTagBuilder_.getMessageOrBuilder(); - } else { - return artifactTag_ == null ? - flyteidl.core.ArtifactId.ArtifactTag.getDefaultInstance() : artifactTag_; - } - } - /** - * .flyteidl.core.ArtifactTag artifact_tag = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder> - getArtifactTagFieldBuilder() { - if (artifactTagBuilder_ == null) { - artifactTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactTag, flyteidl.core.ArtifactId.ArtifactTag.Builder, flyteidl.core.ArtifactId.ArtifactTagOrBuilder>( - getArtifactTag(), - getParentForChildren(), - isClean()); - artifactTag_ = null; - } - return artifactTagBuilder_; - } - @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.core.Variable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Variable) - private static final flyteidl.core.Interface.Variable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Variable(); - } - - public static flyteidl.core.Interface.Variable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Variable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Variable(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.core.Interface.Variable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VariableMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.VariableMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - int getVariablesCount(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - boolean containsVariables( - java.lang.String key); - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getVariables(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - java.util.Map - getVariablesMap(); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue); - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Variables
-   * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class VariableMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.VariableMap) - VariableMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use VariableMap.newBuilder() to construct. - private VariableMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VariableMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VariableMap( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - variables__ = input.readMessage( - VariablesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - variables_.getMutableMap().put( - variables__.getKey(), variables__.getValue()); - 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.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - public static final int VARIABLES_FIELD_NUMBER = 1; - private static final class VariablesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Variable> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Variable.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of variable names to variables.
-     * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetVariables(), - VariablesDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetVariables().getMap().entrySet()) { - com.google.protobuf.MapEntry - variables__ = VariablesDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, variables__); - } - 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.core.Interface.VariableMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.VariableMap other = (flyteidl.core.Interface.VariableMap) obj; - - if (!internalGetVariables().equals( - other.internalGetVariables())) 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 (!internalGetVariables().getMap().isEmpty()) { - hash = (37 * hash) + VARIABLES_FIELD_NUMBER; - hash = (53 * hash) + internalGetVariables().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.VariableMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.VariableMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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.core.Interface.VariableMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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.core.Interface.VariableMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.VariableMap 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.core.Interface.VariableMap 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; - } - /** - *
-     * A map of Variables
-     * 
- * - * Protobuf type {@code flyteidl.core.VariableMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.VariableMap) - flyteidl.core.Interface.VariableMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableVariables(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.VariableMap.class, flyteidl.core.Interface.VariableMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.VariableMap.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(); - internalGetMutableVariables().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_VariableMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap getDefaultInstanceForType() { - return flyteidl.core.Interface.VariableMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap build() { - flyteidl.core.Interface.VariableMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.VariableMap buildPartial() { - flyteidl.core.Interface.VariableMap result = new flyteidl.core.Interface.VariableMap(this); - int from_bitField0_ = bitField0_; - result.variables_ = internalGetVariables(); - result.variables_.makeImmutable(); - 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.core.Interface.VariableMap) { - return mergeFrom((flyteidl.core.Interface.VariableMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.VariableMap other) { - if (other == flyteidl.core.Interface.VariableMap.getDefaultInstance()) return this; - internalGetMutableVariables().mergeFrom( - other.internalGetVariables()); - 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.core.Interface.VariableMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.VariableMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Variable> variables_; - private com.google.protobuf.MapField - internalGetVariables() { - if (variables_ == null) { - return com.google.protobuf.MapField.emptyMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - return variables_; - } - private com.google.protobuf.MapField - internalGetMutableVariables() { - onChanged();; - if (variables_ == null) { - variables_ = com.google.protobuf.MapField.newMapField( - VariablesDefaultEntryHolder.defaultEntry); - } - if (!variables_.isMutable()) { - variables_ = variables_.copy(); - } - return variables_; - } - - public int getVariablesCount() { - return internalGetVariables().getMap().size(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public boolean containsVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetVariables().getMap().containsKey(key); - } - /** - * Use {@link #getVariablesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getVariables() { - return getVariablesMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public java.util.Map getVariablesMap() { - return internalGetVariables().getMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrDefault( - java.lang.String key, - flyteidl.core.Interface.Variable defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public flyteidl.core.Interface.Variable getVariablesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetVariables().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearVariables() { - internalGetMutableVariables().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder removeVariables( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableVariables() { - return internalGetMutableVariables().getMutableMap(); - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - public Builder putVariables( - java.lang.String key, - flyteidl.core.Interface.Variable value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableVariables().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of variable names to variables.
-       * 
- * - * map<string, .flyteidl.core.Variable> variables = 1; - */ - - public Builder putAllVariables( - java.util.Map values) { - internalGetMutableVariables().getMutableMap() - .putAll(values); - return this; - } - @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.core.VariableMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.VariableMap) - private static final flyteidl.core.Interface.VariableMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.VariableMap(); - } - - public static flyteidl.core.Interface.VariableMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VariableMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VariableMap(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.core.Interface.VariableMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TypedInterfaceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TypedInterface) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - boolean hasInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMap getInputs(); - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder(); - - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - boolean hasOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMap getOutputs(); - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Defines strongly typed inputs and outputs.
-   * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class TypedInterface extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TypedInterface) - TypedInterfaceOrBuilder { - private static final long serialVersionUID = 0L; - // Use TypedInterface.newBuilder() to construct. - private TypedInterface(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TypedInterface() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TypedInterface( - 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.Interface.VariableMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Interface.VariableMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Interface.VariableMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.core.Interface.VariableMap inputs_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Interface.VariableMap outputs_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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.core.Interface.TypedInterface)) { - return super.equals(obj); - } - flyteidl.core.Interface.TypedInterface other = (flyteidl.core.Interface.TypedInterface) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.TypedInterface parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.TypedInterface parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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.core.Interface.TypedInterface parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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.core.Interface.TypedInterface parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.TypedInterface 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.core.Interface.TypedInterface 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; - } - /** - *
-     * Defines strongly typed inputs and outputs.
-     * 
- * - * Protobuf type {@code flyteidl.core.TypedInterface} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TypedInterface) - flyteidl.core.Interface.TypedInterfaceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.TypedInterface.class, flyteidl.core.Interface.TypedInterface.Builder.class); - } - - // Construct using flyteidl.core.Interface.TypedInterface.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_TypedInterface_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface getDefaultInstanceForType() { - return flyteidl.core.Interface.TypedInterface.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface build() { - flyteidl.core.Interface.TypedInterface result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.TypedInterface buildPartial() { - flyteidl.core.Interface.TypedInterface result = new flyteidl.core.Interface.TypedInterface(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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.core.Interface.TypedInterface) { - return mergeFrom((flyteidl.core.Interface.TypedInterface)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.TypedInterface other) { - if (other == flyteidl.core.Interface.TypedInterface.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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.core.Interface.TypedInterface parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.TypedInterface) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Interface.VariableMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> inputsBuilder_; - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder setInputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder mergeInputs(flyteidl.core.Interface.VariableMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : inputs_; - } - } - /** - * .flyteidl.core.VariableMap inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Interface.VariableMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> outputsBuilder_; - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Interface.VariableMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Interface.VariableMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Interface.VariableMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - public flyteidl.core.Interface.VariableMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Interface.VariableMap.getDefaultInstance() : outputs_; - } - } - /** - * .flyteidl.core.VariableMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.VariableMap, flyteidl.core.Interface.VariableMap.Builder, flyteidl.core.Interface.VariableMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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.core.TypedInterface) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypedInterface) - private static final flyteidl.core.Interface.TypedInterface DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.TypedInterface(); - } - - public static flyteidl.core.Interface.TypedInterface getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypedInterface parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypedInterface(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.core.Interface.TypedInterface getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Parameter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - boolean hasVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.Variable getVar(); - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder(); - - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - boolean hasDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.Literal getDefault(); - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder(); - - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - boolean getRequired(); - - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - boolean hasArtifactQuery(); - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - flyteidl.core.ArtifactId.ArtifactQuery getArtifactQuery(); - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getArtifactQueryOrBuilder(); - - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - boolean hasArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactId(); - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder(); - - public flyteidl.core.Interface.Parameter.BehaviorCase getBehaviorCase(); - } - /** - *
-   * A parameter is used as input to a launch plan and has
-   * the special ability to have a default value or mark itself as required.
-   * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Parameter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Parameter) - ParameterOrBuilder { - private static final long serialVersionUID = 0L; - // Use Parameter.newBuilder() to construct. - private Parameter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Parameter() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Parameter( - 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.Interface.Variable.Builder subBuilder = null; - if (var_ != null) { - subBuilder = var_.toBuilder(); - } - var_ = input.readMessage(flyteidl.core.Interface.Variable.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(var_); - var_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (behaviorCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Literal) behavior_).toBuilder(); - } - behavior_ = - input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Literal) behavior_); - behavior_ = subBuilder.buildPartial(); - } - behaviorCase_ = 2; - break; - } - case 24: { - behaviorCase_ = 3; - behavior_ = input.readBool(); - break; - } - case 34: { - flyteidl.core.ArtifactId.ArtifactQuery.Builder subBuilder = null; - if (behaviorCase_ == 4) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactQuery) behavior_).toBuilder(); - } - behavior_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactQuery) behavior_); - behavior_ = subBuilder.buildPartial(); - } - behaviorCase_ = 4; - break; - } - case 42: { - flyteidl.core.ArtifactId.ArtifactID.Builder subBuilder = null; - if (behaviorCase_ == 5) { - subBuilder = ((flyteidl.core.ArtifactId.ArtifactID) behavior_).toBuilder(); - } - behavior_ = - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.ArtifactId.ArtifactID) behavior_); - behavior_ = subBuilder.buildPartial(); - } - behaviorCase_ = 5; - 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.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public enum BehaviorCase - implements com.google.protobuf.Internal.EnumLite { - DEFAULT(2), - REQUIRED(3), - ARTIFACT_QUERY(4), - ARTIFACT_ID(5), - BEHAVIOR_NOT_SET(0); - private final int value; - private BehaviorCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BehaviorCase valueOf(int value) { - return forNumber(value); - } - - public static BehaviorCase forNumber(int value) { - switch (value) { - case 2: return DEFAULT; - case 3: return REQUIRED; - case 4: return ARTIFACT_QUERY; - case 5: return ARTIFACT_ID; - case 0: return BEHAVIOR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public static final int VAR_FIELD_NUMBER = 1; - private flyteidl.core.Interface.Variable var_; - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return var_ != null; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - /** - *
-     *+required Variable. Defines the type of the variable backing this parameter.
-     * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - return getVar(); - } - - public static final int DEFAULT_FIELD_NUMBER = 2; - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - /** - *
-     * Defines a default value that has to match the variable type defined.
-     * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - public static final int REQUIRED_FIELD_NUMBER = 3; - /** - *
-     *+optional, is this value required to be filled.
-     * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - - public static final int ARTIFACT_QUERY_FIELD_NUMBER = 4; - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public boolean hasArtifactQuery() { - return behaviorCase_ == 4; - } - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public flyteidl.core.ArtifactId.ArtifactQuery getArtifactQuery() { - if (behaviorCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactQuery) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - /** - *
-     * This is an execution time search basically that should result in exactly one Artifact with a Type that
-     * matches the type of the variable.
-     * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getArtifactQueryOrBuilder() { - if (behaviorCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactQuery) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - - public static final int ARTIFACT_ID_FIELD_NUMBER = 5; - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public boolean hasArtifactId() { - return behaviorCase_ == 5; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (behaviorCase_ == 5) { - return (flyteidl.core.ArtifactId.ArtifactID) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if (behaviorCase_ == 5) { - return (flyteidl.core.ArtifactId.ArtifactID) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactID.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 (var_ != null) { - output.writeMessage(1, getVar()); - } - if (behaviorCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - output.writeBool( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - if (behaviorCase_ == 4) { - output.writeMessage(4, (flyteidl.core.ArtifactId.ArtifactQuery) behavior_); - } - if (behaviorCase_ == 5) { - output.writeMessage(5, (flyteidl.core.ArtifactId.ArtifactID) behavior_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (var_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getVar()); - } - if (behaviorCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Literal) behavior_); - } - if (behaviorCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 3, (boolean)((java.lang.Boolean) behavior_)); - } - if (behaviorCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.ArtifactId.ArtifactQuery) behavior_); - } - if (behaviorCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.ArtifactId.ArtifactID) behavior_); - } - 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.core.Interface.Parameter)) { - return super.equals(obj); - } - flyteidl.core.Interface.Parameter other = (flyteidl.core.Interface.Parameter) obj; - - if (hasVar() != other.hasVar()) return false; - if (hasVar()) { - if (!getVar() - .equals(other.getVar())) return false; - } - if (!getBehaviorCase().equals(other.getBehaviorCase())) return false; - switch (behaviorCase_) { - case 2: - if (!getDefault() - .equals(other.getDefault())) return false; - break; - case 3: - if (getRequired() - != other.getRequired()) return false; - break; - case 4: - if (!getArtifactQuery() - .equals(other.getArtifactQuery())) return false; - break; - case 5: - if (!getArtifactId() - .equals(other.getArtifactId())) 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(); - if (hasVar()) { - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - } - switch (behaviorCase_) { - case 2: - hash = (37 * hash) + DEFAULT_FIELD_NUMBER; - hash = (53 * hash) + getDefault().hashCode(); - break; - case 3: - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getRequired()); - break; - case 4: - hash = (37 * hash) + ARTIFACT_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getArtifactQuery().hashCode(); - break; - case 5: - hash = (37 * hash) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.Parameter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.Parameter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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.core.Interface.Parameter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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.core.Interface.Parameter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.Parameter 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.core.Interface.Parameter 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; - } - /** - *
-     * A parameter is used as input to a launch plan and has
-     * the special ability to have a default value or mark itself as required.
-     * 
- * - * Protobuf type {@code flyteidl.core.Parameter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Parameter) - flyteidl.core.Interface.ParameterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.Parameter.class, flyteidl.core.Interface.Parameter.Builder.class); - } - - // Construct using flyteidl.core.Interface.Parameter.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 (varBuilder_ == null) { - var_ = null; - } else { - var_ = null; - varBuilder_ = null; - } - behaviorCase_ = 0; - behavior_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_Parameter_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter getDefaultInstanceForType() { - return flyteidl.core.Interface.Parameter.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter build() { - flyteidl.core.Interface.Parameter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.Parameter buildPartial() { - flyteidl.core.Interface.Parameter result = new flyteidl.core.Interface.Parameter(this); - if (varBuilder_ == null) { - result.var_ = var_; - } else { - result.var_ = varBuilder_.build(); - } - if (behaviorCase_ == 2) { - if (defaultBuilder_ == null) { - result.behavior_ = behavior_; - } else { - result.behavior_ = defaultBuilder_.build(); - } - } - if (behaviorCase_ == 3) { - result.behavior_ = behavior_; - } - if (behaviorCase_ == 4) { - if (artifactQueryBuilder_ == null) { - result.behavior_ = behavior_; - } else { - result.behavior_ = artifactQueryBuilder_.build(); - } - } - if (behaviorCase_ == 5) { - if (artifactIdBuilder_ == null) { - result.behavior_ = behavior_; - } else { - result.behavior_ = artifactIdBuilder_.build(); - } - } - result.behaviorCase_ = behaviorCase_; - 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.core.Interface.Parameter) { - return mergeFrom((flyteidl.core.Interface.Parameter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.Parameter other) { - if (other == flyteidl.core.Interface.Parameter.getDefaultInstance()) return this; - if (other.hasVar()) { - mergeVar(other.getVar()); - } - switch (other.getBehaviorCase()) { - case DEFAULT: { - mergeDefault(other.getDefault()); - break; - } - case REQUIRED: { - setRequired(other.getRequired()); - break; - } - case ARTIFACT_QUERY: { - mergeArtifactQuery(other.getArtifactQuery()); - break; - } - case ARTIFACT_ID: { - mergeArtifactId(other.getArtifactId()); - break; - } - case BEHAVIOR_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.core.Interface.Parameter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.Parameter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int behaviorCase_ = 0; - private java.lang.Object behavior_; - public BehaviorCase - getBehaviorCase() { - return BehaviorCase.forNumber( - behaviorCase_); - } - - public Builder clearBehavior() { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.Interface.Variable var_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> varBuilder_; - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public boolean hasVar() { - return varBuilder_ != null || var_ != null; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable getVar() { - if (varBuilder_ == null) { - return var_ == null ? flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } else { - return varBuilder_.getMessage(); - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - var_ = value; - onChanged(); - } else { - varBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder setVar( - flyteidl.core.Interface.Variable.Builder builderForValue) { - if (varBuilder_ == null) { - var_ = builderForValue.build(); - onChanged(); - } else { - varBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder mergeVar(flyteidl.core.Interface.Variable value) { - if (varBuilder_ == null) { - if (var_ != null) { - var_ = - flyteidl.core.Interface.Variable.newBuilder(var_).mergeFrom(value).buildPartial(); - } else { - var_ = value; - } - onChanged(); - } else { - varBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public Builder clearVar() { - if (varBuilder_ == null) { - var_ = null; - onChanged(); - } else { - var_ = null; - varBuilder_ = null; - } - - return this; - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.Variable.Builder getVarBuilder() { - - onChanged(); - return getVarFieldBuilder().getBuilder(); - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - public flyteidl.core.Interface.VariableOrBuilder getVarOrBuilder() { - if (varBuilder_ != null) { - return varBuilder_.getMessageOrBuilder(); - } else { - return var_ == null ? - flyteidl.core.Interface.Variable.getDefaultInstance() : var_; - } - } - /** - *
-       *+required Variable. Defines the type of the variable backing this parameter.
-       * 
- * - * .flyteidl.core.Variable var = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder> - getVarFieldBuilder() { - if (varBuilder_ == null) { - varBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.Variable, flyteidl.core.Interface.Variable.Builder, flyteidl.core.Interface.VariableOrBuilder>( - getVar(), - getParentForChildren(), - isClean()); - var_ = null; - } - return varBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> defaultBuilder_; - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public boolean hasDefault() { - return behaviorCase_ == 2; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal getDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } else { - if (behaviorCase_ == 2) { - return defaultBuilder_.getMessage(); - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - behavior_ = value; - onChanged(); - } else { - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder setDefault( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (defaultBuilder_ == null) { - behavior_ = builderForValue.build(); - onChanged(); - } else { - defaultBuilder_.setMessage(builderForValue.build()); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder mergeDefault(flyteidl.core.Literals.Literal value) { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2 && - behavior_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { - behavior_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) behavior_) - .mergeFrom(value).buildPartial(); - } else { - behavior_ = value; - } - onChanged(); - } else { - if (behaviorCase_ == 2) { - defaultBuilder_.mergeFrom(value); - } - defaultBuilder_.setMessage(value); - } - behaviorCase_ = 2; - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public Builder clearDefault() { - if (defaultBuilder_ == null) { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - } else { - if (behaviorCase_ == 2) { - behaviorCase_ = 0; - behavior_ = null; - } - defaultBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.Literal.Builder getDefaultBuilder() { - return getDefaultFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - public flyteidl.core.Literals.LiteralOrBuilder getDefaultOrBuilder() { - if ((behaviorCase_ == 2) && (defaultBuilder_ != null)) { - return defaultBuilder_.getMessageOrBuilder(); - } else { - if (behaviorCase_ == 2) { - return (flyteidl.core.Literals.Literal) behavior_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Defines a default value that has to match the variable type defined.
-       * 
- * - * .flyteidl.core.Literal default = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getDefaultFieldBuilder() { - if (defaultBuilder_ == null) { - if (!(behaviorCase_ == 2)) { - behavior_ = flyteidl.core.Literals.Literal.getDefaultInstance(); - } - defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - (flyteidl.core.Literals.Literal) behavior_, - getParentForChildren(), - isClean()); - behavior_ = null; - } - behaviorCase_ = 2; - onChanged();; - return defaultBuilder_; - } - - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public boolean getRequired() { - if (behaviorCase_ == 3) { - return (java.lang.Boolean) behavior_; - } - return false; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder setRequired(boolean value) { - behaviorCase_ = 3; - behavior_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional, is this value required to be filled.
-       * 
- * - * bool required = 3; - */ - public Builder clearRequired() { - if (behaviorCase_ == 3) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder> artifactQueryBuilder_; - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public boolean hasArtifactQuery() { - return behaviorCase_ == 4; - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public flyteidl.core.ArtifactId.ArtifactQuery getArtifactQuery() { - if (artifactQueryBuilder_ == null) { - if (behaviorCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactQuery) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } else { - if (behaviorCase_ == 4) { - return artifactQueryBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public Builder setArtifactQuery(flyteidl.core.ArtifactId.ArtifactQuery value) { - if (artifactQueryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - behavior_ = value; - onChanged(); - } else { - artifactQueryBuilder_.setMessage(value); - } - behaviorCase_ = 4; - return this; - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public Builder setArtifactQuery( - flyteidl.core.ArtifactId.ArtifactQuery.Builder builderForValue) { - if (artifactQueryBuilder_ == null) { - behavior_ = builderForValue.build(); - onChanged(); - } else { - artifactQueryBuilder_.setMessage(builderForValue.build()); - } - behaviorCase_ = 4; - return this; - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public Builder mergeArtifactQuery(flyteidl.core.ArtifactId.ArtifactQuery value) { - if (artifactQueryBuilder_ == null) { - if (behaviorCase_ == 4 && - behavior_ != flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance()) { - behavior_ = flyteidl.core.ArtifactId.ArtifactQuery.newBuilder((flyteidl.core.ArtifactId.ArtifactQuery) behavior_) - .mergeFrom(value).buildPartial(); - } else { - behavior_ = value; - } - onChanged(); - } else { - if (behaviorCase_ == 4) { - artifactQueryBuilder_.mergeFrom(value); - } - artifactQueryBuilder_.setMessage(value); - } - behaviorCase_ = 4; - return this; - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public Builder clearArtifactQuery() { - if (artifactQueryBuilder_ == null) { - if (behaviorCase_ == 4) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - } else { - if (behaviorCase_ == 4) { - behaviorCase_ = 0; - behavior_ = null; - } - artifactQueryBuilder_.clear(); - } - return this; - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public flyteidl.core.ArtifactId.ArtifactQuery.Builder getArtifactQueryBuilder() { - return getArtifactQueryFieldBuilder().getBuilder(); - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - public flyteidl.core.ArtifactId.ArtifactQueryOrBuilder getArtifactQueryOrBuilder() { - if ((behaviorCase_ == 4) && (artifactQueryBuilder_ != null)) { - return artifactQueryBuilder_.getMessageOrBuilder(); - } else { - if (behaviorCase_ == 4) { - return (flyteidl.core.ArtifactId.ArtifactQuery) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - } - /** - *
-       * This is an execution time search basically that should result in exactly one Artifact with a Type that
-       * matches the type of the variable.
-       * 
- * - * .flyteidl.core.ArtifactQuery artifact_query = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder> - getArtifactQueryFieldBuilder() { - if (artifactQueryBuilder_ == null) { - if (!(behaviorCase_ == 4)) { - behavior_ = flyteidl.core.ArtifactId.ArtifactQuery.getDefaultInstance(); - } - artifactQueryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactQuery, flyteidl.core.ArtifactId.ArtifactQuery.Builder, flyteidl.core.ArtifactId.ArtifactQueryOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactQuery) behavior_, - getParentForChildren(), - isClean()); - behavior_ = null; - } - behaviorCase_ = 4; - onChanged();; - return artifactQueryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdBuilder_; - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public boolean hasArtifactId() { - return behaviorCase_ == 5; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactId() { - if (artifactIdBuilder_ == null) { - if (behaviorCase_ == 5) { - return (flyteidl.core.ArtifactId.ArtifactID) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } else { - if (behaviorCase_ == 5) { - return artifactIdBuilder_.getMessage(); - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public Builder setArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - behavior_ = value; - onChanged(); - } else { - artifactIdBuilder_.setMessage(value); - } - behaviorCase_ = 5; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public Builder setArtifactId( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdBuilder_ == null) { - behavior_ = builderForValue.build(); - onChanged(); - } else { - artifactIdBuilder_.setMessage(builderForValue.build()); - } - behaviorCase_ = 5; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public Builder mergeArtifactId(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdBuilder_ == null) { - if (behaviorCase_ == 5 && - behavior_ != flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()) { - behavior_ = flyteidl.core.ArtifactId.ArtifactID.newBuilder((flyteidl.core.ArtifactId.ArtifactID) behavior_) - .mergeFrom(value).buildPartial(); - } else { - behavior_ = value; - } - onChanged(); - } else { - if (behaviorCase_ == 5) { - artifactIdBuilder_.mergeFrom(value); - } - artifactIdBuilder_.setMessage(value); - } - behaviorCase_ = 5; - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public Builder clearArtifactId() { - if (artifactIdBuilder_ == null) { - if (behaviorCase_ == 5) { - behaviorCase_ = 0; - behavior_ = null; - onChanged(); - } - } else { - if (behaviorCase_ == 5) { - behaviorCase_ = 0; - behavior_ = null; - } - artifactIdBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdBuilder() { - return getArtifactIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdOrBuilder() { - if ((behaviorCase_ == 5) && (artifactIdBuilder_ != null)) { - return artifactIdBuilder_.getMessageOrBuilder(); - } else { - if (behaviorCase_ == 5) { - return (flyteidl.core.ArtifactId.ArtifactID) behavior_; - } - return flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - } - /** - * .flyteidl.core.ArtifactID artifact_id = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdFieldBuilder() { - if (artifactIdBuilder_ == null) { - if (!(behaviorCase_ == 5)) { - behavior_ = flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance(); - } - artifactIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - (flyteidl.core.ArtifactId.ArtifactID) behavior_, - getParentForChildren(), - isClean()); - behavior_ = null; - } - behaviorCase_ = 5; - onChanged();; - return artifactIdBuilder_; - } - @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.core.Parameter) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Parameter) - private static final flyteidl.core.Interface.Parameter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.Parameter(); - } - - public static flyteidl.core.Interface.Parameter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Parameter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Parameter(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.core.Interface.Parameter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParameterMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ParameterMap) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - int getParametersCount(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - boolean containsParameters( - java.lang.String key); - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getParameters(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - java.util.Map - getParametersMap(); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue); - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key); - } - /** - *
-   * A map of Parameters.
-   * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class ParameterMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ParameterMap) - ParameterMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParameterMap.newBuilder() to construct. - private ParameterMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParameterMap( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - parameters__ = input.readMessage( - ParametersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - parameters_.getMutableMap().put( - parameters__.getKey(), parameters__.getValue()); - 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.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - public static final int PARAMETERS_FIELD_NUMBER = 1; - private static final class ParametersDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Interface.Parameter> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Interface.Parameter.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Defines a map of parameter names to parameters.
-     * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetParameters(), - ParametersDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetParameters().getMap().entrySet()) { - com.google.protobuf.MapEntry - parameters__ = ParametersDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, parameters__); - } - 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.core.Interface.ParameterMap)) { - return super.equals(obj); - } - flyteidl.core.Interface.ParameterMap other = (flyteidl.core.Interface.ParameterMap) obj; - - if (!internalGetParameters().equals( - other.internalGetParameters())) 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 (!internalGetParameters().getMap().isEmpty()) { - hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParameters().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Interface.ParameterMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Interface.ParameterMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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.core.Interface.ParameterMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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.core.Interface.ParameterMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Interface.ParameterMap 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.core.Interface.ParameterMap 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; - } - /** - *
-     * A map of Parameters.
-     * 
- * - * Protobuf type {@code flyteidl.core.ParameterMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ParameterMap) - flyteidl.core.Interface.ParameterMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableParameters(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Interface.ParameterMap.class, flyteidl.core.Interface.ParameterMap.Builder.class); - } - - // Construct using flyteidl.core.Interface.ParameterMap.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(); - internalGetMutableParameters().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Interface.internal_static_flyteidl_core_ParameterMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap getDefaultInstanceForType() { - return flyteidl.core.Interface.ParameterMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap build() { - flyteidl.core.Interface.ParameterMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Interface.ParameterMap buildPartial() { - flyteidl.core.Interface.ParameterMap result = new flyteidl.core.Interface.ParameterMap(this); - int from_bitField0_ = bitField0_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - 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.core.Interface.ParameterMap) { - return mergeFrom((flyteidl.core.Interface.ParameterMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Interface.ParameterMap other) { - if (other == flyteidl.core.Interface.ParameterMap.getDefaultInstance()) return this; - internalGetMutableParameters().mergeFrom( - other.internalGetParameters()); - 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.core.Interface.ParameterMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Interface.ParameterMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Interface.Parameter> parameters_; - private com.google.protobuf.MapField - internalGetParameters() { - if (parameters_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - return parameters_; - } - private com.google.protobuf.MapField - internalGetMutableParameters() { - onChanged();; - if (parameters_ == null) { - parameters_ = com.google.protobuf.MapField.newMapField( - ParametersDefaultEntryHolder.defaultEntry); - } - if (!parameters_.isMutable()) { - parameters_ = parameters_.copy(); - } - return parameters_; - } - - public int getParametersCount() { - return internalGetParameters().getMap().size(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public boolean containsParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetParameters().getMap().containsKey(key); - } - /** - * Use {@link #getParametersMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getParameters() { - return getParametersMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public java.util.Map getParametersMap() { - return internalGetParameters().getMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrDefault( - java.lang.String key, - flyteidl.core.Interface.Parameter defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public flyteidl.core.Interface.Parameter getParametersOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetParameters().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearParameters() { - internalGetMutableParameters().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder removeParameters( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableParameters() { - return internalGetMutableParameters().getMutableMap(); - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - public Builder putParameters( - java.lang.String key, - flyteidl.core.Interface.Parameter value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableParameters().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Defines a map of parameter names to parameters.
-       * 
- * - * map<string, .flyteidl.core.Parameter> parameters = 1; - */ - - public Builder putAllParameters( - java.util.Map values) { - internalGetMutableParameters().getMutableMap() - .putAll(values); - return this; - } - @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.core.ParameterMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ParameterMap) - private static final flyteidl.core.Interface.ParameterMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Interface.ParameterMap(); - } - - public static flyteidl.core.Interface.ParameterMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParameterMap(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.core.Interface.ParameterMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Variable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Variable_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_VariableMap_VariablesEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_VariableMap_VariablesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypedInterface_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypedInterface_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Parameter_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Parameter_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ParameterMap_ParametersEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ParameterMap_ParametersEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/core/interface.proto\022\rflyteid" + - "l.core\032\031flyteidl/core/types.proto\032\034flyte" + - "idl/core/literals.proto\032\037flyteidl/core/a" + - "rtifact_id.proto\"\263\001\n\010Variable\022(\n\004type\030\001 " + - "\001(\0132\032.flyteidl.core.LiteralType\022\023\n\013descr" + - "iption\030\002 \001(\t\0226\n\023artifact_partial_id\030\003 \001(" + - "\0132\031.flyteidl.core.ArtifactID\0220\n\014artifact" + - "_tag\030\004 \001(\0132\032.flyteidl.core.ArtifactTag\"\226" + - "\001\n\013VariableMap\022<\n\tvariables\030\001 \003(\0132).flyt" + - "eidl.core.VariableMap.VariablesEntry\032I\n\016" + - "VariablesEntry\022\013\n\003key\030\001 \001(\t\022&\n\005value\030\002 \001" + - "(\0132\027.flyteidl.core.Variable:\0028\001\"i\n\016Typed" + - "Interface\022*\n\006inputs\030\001 \001(\0132\032.flyteidl.cor" + - "e.VariableMap\022+\n\007outputs\030\002 \001(\0132\032.flyteid" + - "l.core.VariableMap\"\346\001\n\tParameter\022$\n\003var\030" + - "\001 \001(\0132\027.flyteidl.core.Variable\022)\n\007defaul" + - "t\030\002 \001(\0132\026.flyteidl.core.LiteralH\000\022\022\n\010req" + - "uired\030\003 \001(\010H\000\0226\n\016artifact_query\030\004 \001(\0132\034." + - "flyteidl.core.ArtifactQueryH\000\0220\n\013artifac" + - "t_id\030\005 \001(\0132\031.flyteidl.core.ArtifactIDH\000B" + - "\n\n\010behavior\"\234\001\n\014ParameterMap\022?\n\nparamete" + - "rs\030\001 \003(\0132+.flyteidl.core.ParameterMap.Pa" + - "rametersEntry\032K\n\017ParametersEntry\022\013\n\003key\030" + - "\001 \001(\t\022\'\n\005value\030\002 \001(\0132\030.flyteidl.core.Par" + - "ameter:\0028\001Bint64 integer = 1; - */ - long getInteger(); - - /** - * double float_value = 2; - */ - double getFloatValue(); - - /** - * string string_value = 3; - */ - java.lang.String getStringValue(); - /** - * string string_value = 3; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * bool boolean = 4; - */ - boolean getBoolean(); - - /** - * .google.protobuf.Timestamp datetime = 5; - */ - boolean hasDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.Timestamp getDatetime(); - /** - * .google.protobuf.Timestamp datetime = 5; - */ - com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder(); - - /** - * .google.protobuf.Duration duration = 6; - */ - boolean hasDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.Duration getDuration(); - /** - * .google.protobuf.Duration duration = 6; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - - public flyteidl.core.Literals.Primitive.ValueCase getValueCase(); - } - /** - *
-   * Primitive Types
-   * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Primitive extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Primitive) - PrimitiveOrBuilder { - private static final long serialVersionUID = 0L; - // Use Primitive.newBuilder() to construct. - private Primitive(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Primitive() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Primitive( - 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 8: { - valueCase_ = 1; - value_ = input.readInt64(); - break; - } - case 17: { - valueCase_ = 2; - value_ = input.readDouble(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 3; - value_ = s; - break; - } - case 32: { - valueCase_ = 4; - value_ = input.readBool(); - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((com.google.protobuf.Timestamp) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Timestamp) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((com.google.protobuf.Duration) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Duration) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - 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.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - INTEGER(1), - FLOAT_VALUE(2), - STRING_VALUE(3), - BOOLEAN(4), - DATETIME(5), - DURATION(6), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return INTEGER; - case 2: return FLOAT_VALUE; - case 3: return STRING_VALUE; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int INTEGER_FIELD_NUMBER = 1; - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - - public static final int FLOAT_VALUE_FIELD_NUMBER = 2; - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOLEAN_FIELD_NUMBER = 4; - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - - public static final int DATETIME_FIELD_NUMBER = 5; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int DURATION_FIELD_NUMBER = 6; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.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 (valueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (valueCase_ == 4) { - output.writeBool( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (com.google.protobuf.Duration) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) value_)); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) value_)); - } - if (valueCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 4, (boolean)((java.lang.Boolean) value_)); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.protobuf.Timestamp) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.protobuf.Duration) value_); - } - 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.core.Literals.Primitive)) { - return super.equals(obj); - } - flyteidl.core.Literals.Primitive other = (flyteidl.core.Literals.Primitive) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (getInteger() - != other.getInteger()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getFloatValue()) - != java.lang.Double.doubleToLongBits( - other.getFloatValue())) return false; - break; - case 3: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolean() - != other.getBoolean()) return false; - break; - case 5: - if (!getDatetime() - .equals(other.getDatetime())) return false; - break; - case 6: - if (!getDuration() - .equals(other.getDuration())) 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 (valueCase_) { - case 1: - hash = (37 * hash) + INTEGER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInteger()); - break; - case 2: - hash = (37 * hash) + FLOAT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getFloatValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOLEAN_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getBoolean()); - break; - case 5: - hash = (37 * hash) + DATETIME_FIELD_NUMBER; - hash = (53 * hash) + getDatetime().hashCode(); - break; - case 6: - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Primitive parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Primitive parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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.core.Literals.Primitive parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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.core.Literals.Primitive parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Primitive 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.core.Literals.Primitive 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; - } - /** - *
-     * Primitive Types
-     * 
- * - * Protobuf type {@code flyteidl.core.Primitive} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Primitive) - flyteidl.core.Literals.PrimitiveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Primitive.class, flyteidl.core.Literals.Primitive.Builder.class); - } - - // Construct using flyteidl.core.Literals.Primitive.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Primitive_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive getDefaultInstanceForType() { - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive build() { - flyteidl.core.Literals.Primitive result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Primitive buildPartial() { - flyteidl.core.Literals.Primitive result = new flyteidl.core.Literals.Primitive(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - if (valueCase_ == 3) { - result.value_ = value_; - } - if (valueCase_ == 4) { - result.value_ = value_; - } - if (valueCase_ == 5) { - if (datetimeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = datetimeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (durationBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = durationBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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.core.Literals.Primitive) { - return mergeFrom((flyteidl.core.Literals.Primitive)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Primitive other) { - if (other == flyteidl.core.Literals.Primitive.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case INTEGER: { - setInteger(other.getInteger()); - break; - } - case FLOAT_VALUE: { - setFloatValue(other.getFloatValue()); - break; - } - case STRING_VALUE: { - valueCase_ = 3; - value_ = other.value_; - onChanged(); - break; - } - case BOOLEAN: { - setBoolean(other.getBoolean()); - break; - } - case DATETIME: { - mergeDatetime(other.getDatetime()); - break; - } - case DURATION: { - mergeDuration(other.getDuration()); - break; - } - case VALUE_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.core.Literals.Primitive parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Primitive) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - * int64 integer = 1; - */ - public long getInteger() { - if (valueCase_ == 1) { - return (java.lang.Long) value_; - } - return 0L; - } - /** - * int64 integer = 1; - */ - public Builder setInteger(long value) { - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - /** - * int64 integer = 1; - */ - public Builder clearInteger() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * double float_value = 2; - */ - public double getFloatValue() { - if (valueCase_ == 2) { - return (java.lang.Double) value_; - } - return 0D; - } - /** - * double float_value = 2; - */ - public Builder setFloatValue(double value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * double float_value = 2; - */ - public Builder clearFloatValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - /** - * string string_value = 3; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 3) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string string_value = 3; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 3) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 3) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string string_value = 3; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - /** - * string string_value = 3; - */ - public Builder clearStringValue() { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * string string_value = 3; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 3; - value_ = value; - onChanged(); - return this; - } - - /** - * bool boolean = 4; - */ - public boolean getBoolean() { - if (valueCase_ == 4) { - return (java.lang.Boolean) value_; - } - return false; - } - /** - * bool boolean = 4; - */ - public Builder setBoolean(boolean value) { - valueCase_ = 4; - value_ = value; - onChanged(); - return this; - } - /** - * bool boolean = 4; - */ - public Builder clearBoolean() { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> datetimeBuilder_; - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public boolean hasDatetime() { - return valueCase_ == 5; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp getDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return datetimeBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder setDatetime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (datetimeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - datetimeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder mergeDatetime(com.google.protobuf.Timestamp value) { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - value_ = com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - datetimeBuilder_.mergeFrom(value); - } - datetimeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public Builder clearDatetime() { - if (datetimeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - datetimeBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.Timestamp.Builder getDatetimeBuilder() { - return getDatetimeFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - public com.google.protobuf.TimestampOrBuilder getDatetimeOrBuilder() { - if ((valueCase_ == 5) && (datetimeBuilder_ != null)) { - return datetimeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (com.google.protobuf.Timestamp) value_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - /** - * .google.protobuf.Timestamp datetime = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDatetimeFieldBuilder() { - if (datetimeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - datetimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return datetimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - * .google.protobuf.Duration duration = 6; - */ - public boolean hasDuration() { - return valueCase_ == 6; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return durationBuilder_.getMessage(); - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (valueCase_ == 6 && - value_ != com.google.protobuf.Duration.getDefaultInstance()) { - value_ = com.google.protobuf.Duration.newBuilder((com.google.protobuf.Duration) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - durationBuilder_.mergeFrom(value); - } - durationBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - durationBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - return getDurationFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Duration duration = 6; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if ((valueCase_ == 6) && (durationBuilder_ != null)) { - return durationBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (com.google.protobuf.Duration) value_; - } - return com.google.protobuf.Duration.getDefaultInstance(); - } - } - /** - * .google.protobuf.Duration duration = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = com.google.protobuf.Duration.getDefaultInstance(); - } - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - (com.google.protobuf.Duration) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return durationBuilder_; - } - @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.core.Primitive) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Primitive) - private static final flyteidl.core.Literals.Primitive DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Primitive(); - } - - public static flyteidl.core.Literals.Primitive getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Primitive parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Primitive(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.core.Literals.Primitive getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VoidOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Void) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-   * undefined since it can be assigned to a scalar of any LiteralType.
-   * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Void extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Void) - VoidOrBuilder { - private static final long serialVersionUID = 0L; - // Use Void.newBuilder() to construct. - private Void(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Void() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Void( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.core.Literals.Void)) { - return super.equals(obj); - } - flyteidl.core.Literals.Void other = (flyteidl.core.Literals.Void) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Void parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Void parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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.core.Literals.Void parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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.core.Literals.Void parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Void 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.core.Literals.Void 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; - } - /** - *
-     * Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally
-     * undefined since it can be assigned to a scalar of any LiteralType.
-     * 
- * - * Protobuf type {@code flyteidl.core.Void} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Void) - flyteidl.core.Literals.VoidOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Void.class, flyteidl.core.Literals.Void.Builder.class); - } - - // Construct using flyteidl.core.Literals.Void.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Void_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Void getDefaultInstanceForType() { - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Void build() { - flyteidl.core.Literals.Void result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Void buildPartial() { - flyteidl.core.Literals.Void result = new flyteidl.core.Literals.Void(this); - 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.core.Literals.Void) { - return mergeFrom((flyteidl.core.Literals.Void)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Void other) { - if (other == flyteidl.core.Literals.Void.getDefaultInstance()) return this; - 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.core.Literals.Void parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Void) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.core.Void) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Void) - private static final flyteidl.core.Literals.Void DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Void(); - } - - public static flyteidl.core.Literals.Void getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Void parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Void(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.core.Literals.Void getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Blob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - boolean hasMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadata getMetadata(); - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder(); - - /** - * string uri = 3; - */ - java.lang.String getUri(); - /** - * string uri = 3; - */ - com.google.protobuf.ByteString - getUriBytes(); - } - /** - *
-   * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-   * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-   * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Blob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Blob) - BlobOrBuilder { - private static final long serialVersionUID = 0L; - // Use Blob.newBuilder() to construct. - private Blob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Blob() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Blob( - 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.Literals.BlobMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Literals.BlobMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - 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.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - public static final int METADATA_FIELD_NUMBER = 1; - private flyteidl.core.Literals.BlobMetadata metadata_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int URI_FIELD_NUMBER = 3; - private volatile java.lang.Object uri_; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (metadata_ != null) { - output.writeMessage(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, uri_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, uri_); - } - 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.core.Literals.Blob)) { - return super.equals(obj); - } - flyteidl.core.Literals.Blob other = (flyteidl.core.Literals.Blob) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getUri() - .equals(other.getUri())) 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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Blob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Blob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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.core.Literals.Blob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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.core.Literals.Blob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Blob 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.core.Literals.Blob 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; - } - /** - *
-     * Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is.
-     * There are no restrictions on how the uri is formatted since it will depend on how to interact with the store.
-     * 
- * - * Protobuf type {@code flyteidl.core.Blob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Blob) - flyteidl.core.Literals.BlobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Blob.class, flyteidl.core.Literals.Blob.Builder.class); - } - - // Construct using flyteidl.core.Literals.Blob.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - uri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Blob_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob getDefaultInstanceForType() { - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Blob build() { - flyteidl.core.Literals.Blob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Blob buildPartial() { - flyteidl.core.Literals.Blob result = new flyteidl.core.Literals.Blob(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.uri_ = uri_; - 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.core.Literals.Blob) { - return mergeFrom((flyteidl.core.Literals.Blob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Blob other) { - if (other == flyteidl.core.Literals.Blob.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - 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.core.Literals.Blob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Blob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.BlobMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder setMetadata( - flyteidl.core.Literals.BlobMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder mergeMetadata(flyteidl.core.Literals.BlobMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Literals.BlobMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - public flyteidl.core.Literals.BlobMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Literals.BlobMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.core.BlobMetadata metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BlobMetadata, flyteidl.core.Literals.BlobMetadata.Builder, flyteidl.core.Literals.BlobMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 3; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 3; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 3; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 3; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - @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.core.Blob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Blob) - private static final flyteidl.core.Literals.Blob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Blob(); - } - - public static flyteidl.core.Literals.Blob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Blob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Blob(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.core.Literals.Blob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.BlobType type = 1; - */ - boolean hasType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobType getType(); - /** - * .flyteidl.core.BlobType type = 1; - */ - flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.BlobMetadata} - */ - public static final class BlobMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobMetadata) - BlobMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobMetadata.newBuilder() to construct. - private BlobMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobMetadata( - 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.Types.BlobType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.BlobType type_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (type_ != null) { - output.writeMessage(1, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getType()); - } - 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.core.Literals.BlobMetadata)) { - return super.equals(obj); - } - flyteidl.core.Literals.BlobMetadata other = (flyteidl.core.Literals.BlobMetadata) obj; - - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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 (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BlobMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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.core.Literals.BlobMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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.core.Literals.BlobMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BlobMetadata 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.core.Literals.BlobMetadata 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; - } - /** - * Protobuf type {@code flyteidl.core.BlobMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobMetadata) - flyteidl.core.Literals.BlobMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BlobMetadata.class, flyteidl.core.Literals.BlobMetadata.Builder.class); - } - - // Construct using flyteidl.core.Literals.BlobMetadata.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 (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BlobMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata getDefaultInstanceForType() { - return flyteidl.core.Literals.BlobMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata build() { - flyteidl.core.Literals.BlobMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BlobMetadata buildPartial() { - flyteidl.core.Literals.BlobMetadata result = new flyteidl.core.Literals.BlobMetadata(this); - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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.core.Literals.BlobMetadata) { - return mergeFrom((flyteidl.core.Literals.BlobMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BlobMetadata other) { - if (other == flyteidl.core.Literals.BlobMetadata.getDefaultInstance()) return this; - if (other.hasType()) { - mergeType(other.getType()); - } - 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.core.Literals.BlobMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BlobMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.BlobType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.BlobType type = 1; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder setType( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder mergeType(flyteidl.core.Types.BlobType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.BlobType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BlobType type = 1; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.BlobType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.BlobType type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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.core.BlobMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobMetadata) - private static final flyteidl.core.Literals.BlobMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BlobMetadata(); - } - - public static flyteidl.core.Literals.BlobMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobMetadata(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.core.Literals.BlobMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BinaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binary) - com.google.protobuf.MessageOrBuilder { - - /** - * bytes value = 1; - */ - com.google.protobuf.ByteString getValue(); - - /** - * string tag = 2; - */ - java.lang.String getTag(); - /** - * string tag = 2; - */ - com.google.protobuf.ByteString - getTagBytes(); - } - /** - *
-   * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-   * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Binary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binary) - BinaryOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binary.newBuilder() to construct. - private Binary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binary() { - value_ = com.google.protobuf.ByteString.EMPTY; - tag_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binary( - 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: { - - value_ = input.readBytes(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - 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.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private com.google.protobuf.ByteString value_; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - - public static final int TAG_FIELD_NUMBER = 2; - private volatile java.lang.Object tag_; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!value_.isEmpty()) { - output.writeBytes(1, value_); - } - if (!getTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!value_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(1, value_); - } - if (!getTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tag_); - } - 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.core.Literals.Binary)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binary other = (flyteidl.core.Literals.Binary) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!getTag() - .equals(other.getTag())) 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(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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.core.Literals.Binary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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.core.Literals.Binary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binary 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.core.Literals.Binary 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; - } - /** - *
-     * A simple byte array with a tag to help different parts of the system communicate about what is in the byte array.
-     * It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binary) - flyteidl.core.Literals.BinaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binary.class, flyteidl.core.Literals.Binary.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binary.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(); - value_ = com.google.protobuf.ByteString.EMPTY; - - tag_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binary_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary getDefaultInstanceForType() { - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binary build() { - flyteidl.core.Literals.Binary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binary buildPartial() { - flyteidl.core.Literals.Binary result = new flyteidl.core.Literals.Binary(this); - result.value_ = value_; - result.tag_ = tag_; - 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.core.Literals.Binary) { - return mergeFrom((flyteidl.core.Literals.Binary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binary other) { - if (other == flyteidl.core.Literals.Binary.getDefaultInstance()) return this; - if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { - setValue(other.getValue()); - } - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - 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.core.Literals.Binary parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binary) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY; - /** - * bytes value = 1; - */ - public com.google.protobuf.ByteString getValue() { - return value_; - } - /** - * bytes value = 1; - */ - public Builder setValue(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - * bytes value = 1; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - - private java.lang.Object tag_ = ""; - /** - * string tag = 2; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string tag = 2; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string tag = 2; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - * string tag = 2; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - @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.core.Binary) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binary) - private static final flyteidl.core.Literals.Binary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binary(); - } - - public static flyteidl.core.Literals.Binary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binary(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.core.Literals.Binary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SchemaOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Schema) - com.google.protobuf.MessageOrBuilder { - - /** - * string uri = 1; - */ - java.lang.String getUri(); - /** - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * .flyteidl.core.SchemaType type = 3; - */ - boolean hasType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaType getType(); - /** - * .flyteidl.core.SchemaType type = 3; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder(); - } - /** - *
-   * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-   * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Schema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Schema) - SchemaOrBuilder { - private static final long serialVersionUID = 0L; - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Schema() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Schema( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - case 26: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private flyteidl.core.Types.SchemaType type_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (type_ != null) { - output.writeMessage(3, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getType()); - } - 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.core.Literals.Schema)) { - return super.equals(obj); - } - flyteidl.core.Literals.Schema other = (flyteidl.core.Literals.Schema) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Schema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Schema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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.core.Literals.Schema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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.core.Literals.Schema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Schema 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.core.Literals.Schema 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; - } - /** - *
-     * A strongly typed schema that defines the interface of data retrieved from the underlying storage medium.
-     * 
- * - * Protobuf type {@code flyteidl.core.Schema} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Schema) - flyteidl.core.Literals.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Schema.class, flyteidl.core.Literals.Schema.Builder.class); - } - - // Construct using flyteidl.core.Literals.Schema.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(); - uri_ = ""; - - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Schema_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema getDefaultInstanceForType() { - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Schema build() { - flyteidl.core.Literals.Schema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Schema buildPartial() { - flyteidl.core.Literals.Schema result = new flyteidl.core.Literals.Schema(this); - result.uri_ = uri_; - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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.core.Literals.Schema) { - return mergeFrom((flyteidl.core.Literals.Schema)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Schema other) { - if (other == flyteidl.core.Literals.Schema.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (other.hasType()) { - mergeType(other.getType()); - } - 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.core.Literals.Schema parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Schema) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Types.SchemaType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.SchemaType type = 3; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder setType( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder mergeType(flyteidl.core.Types.SchemaType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.SchemaType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.SchemaType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.SchemaType type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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.core.Schema) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Schema) - private static final flyteidl.core.Literals.Schema DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Schema(); - } - - public static flyteidl.core.Literals.Schema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Schema(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.core.Literals.Schema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Union) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Literal value = 1; - */ - boolean hasValue(); - /** - * .flyteidl.core.Literal value = 1; - */ - flyteidl.core.Literals.Literal getValue(); - /** - * .flyteidl.core.Literal value = 1; - */ - flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder(); - - /** - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralType getType(); - /** - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - } - /** - *
-   * The runtime representation of a tagged union value. See `UnionType` for more details.
-   * 
- * - * Protobuf type {@code flyteidl.core.Union} - */ - public static final class Union extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Union) - UnionOrBuilder { - private static final long serialVersionUID = 0L; - // Use Union.newBuilder() to construct. - private Union(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Union() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Union( - 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.Literals.Literal.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(value_); - value_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = 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.core.Literals.internal_static_flyteidl_core_Union_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Union_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Union.class, flyteidl.core.Literals.Union.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - private flyteidl.core.Literals.Literal value_; - /** - * .flyteidl.core.Literal value = 1; - */ - public boolean hasValue() { - return value_ != null; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal getValue() { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - return getValue(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - 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 (value_ != null) { - output.writeMessage(1, getValue()); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getValue()); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - 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.core.Literals.Union)) { - return super.equals(obj); - } - flyteidl.core.Literals.Union other = (flyteidl.core.Literals.Union) obj; - - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) 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 (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Union parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Union parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Union parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Union parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Union parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Union parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Union parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Union 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.core.Literals.Union parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Union 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.core.Literals.Union parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Union 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.core.Literals.Union 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 runtime representation of a tagged union value. See `UnionType` for more details.
-     * 
- * - * Protobuf type {@code flyteidl.core.Union} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Union) - flyteidl.core.Literals.UnionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Union_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Union_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Union.class, flyteidl.core.Literals.Union.Builder.class); - } - - // Construct using flyteidl.core.Literals.Union.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 (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; - valueBuilder_ = null; - } - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Union_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Union getDefaultInstanceForType() { - return flyteidl.core.Literals.Union.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Union build() { - flyteidl.core.Literals.Union result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Union buildPartial() { - flyteidl.core.Literals.Union result = new flyteidl.core.Literals.Union(this); - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); - } - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.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.core.Literals.Union) { - return mergeFrom((flyteidl.core.Literals.Union)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Union other) { - if (other == flyteidl.core.Literals.Union.getDefaultInstance()) return this; - if (other.hasValue()) { - mergeValue(other.getValue()); - } - if (other.hasType()) { - mergeType(other.getType()); - } - 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.core.Literals.Union parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Union) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.Literal value_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> valueBuilder_; - /** - * .flyteidl.core.Literal value = 1; - */ - public boolean hasValue() { - return valueBuilder_ != null || value_ != null; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal getValue() { - if (valueBuilder_ == null) { - return value_ == null ? flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder setValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - valueBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder setValue( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder mergeValue(flyteidl.core.Literals.Literal value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - flyteidl.core.Literals.Literal.newBuilder(value_).mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - valueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; - valueBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.Literal.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Literal value = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - flyteidl.core.Literals.Literal.getDefaultInstance() : value_; - } - } - /** - * .flyteidl.core.Literal value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - @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.core.Union) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Union) - private static final flyteidl.core.Literals.Union DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Union(); - } - - public static flyteidl.core.Literals.Union getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Union parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Union(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.core.Literals.Union getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StructuredDatasetMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - boolean hasStructuredDatasetType(); - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType(); - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetMetadata} - */ - public static final class StructuredDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetMetadata) - StructuredDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use StructuredDatasetMetadata.newBuilder() to construct. - private StructuredDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StructuredDatasetMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StructuredDatasetMetadata( - 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.Types.StructuredDatasetType.Builder subBuilder = null; - if (structuredDatasetType_ != null) { - subBuilder = structuredDatasetType_.toBuilder(); - } - structuredDatasetType_ = input.readMessage(flyteidl.core.Types.StructuredDatasetType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(structuredDatasetType_); - structuredDatasetType_ = 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.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.StructuredDatasetMetadata.class, flyteidl.core.Literals.StructuredDatasetMetadata.Builder.class); - } - - public static final int STRUCTURED_DATASET_TYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.StructuredDatasetType structuredDatasetType_; - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public boolean hasStructuredDatasetType() { - return structuredDatasetType_ != null; - } - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { - return structuredDatasetType_ == null ? flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; - } - /** - *
-     * Bundle the type information along with the literal.
-     * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-     * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-     * without any column information, but at run time, you might have that column information.
-     * flytekit python will copy this type information into the literal, from the type information, if not provided by
-     * the various plugins (encoders).
-     * Since this field is run time generated, it's not used for any type checking.
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { - return getStructuredDatasetType(); - } - - 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 (structuredDatasetType_ != null) { - output.writeMessage(1, getStructuredDatasetType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (structuredDatasetType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStructuredDatasetType()); - } - 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.core.Literals.StructuredDatasetMetadata)) { - return super.equals(obj); - } - flyteidl.core.Literals.StructuredDatasetMetadata other = (flyteidl.core.Literals.StructuredDatasetMetadata) obj; - - if (hasStructuredDatasetType() != other.hasStructuredDatasetType()) return false; - if (hasStructuredDatasetType()) { - if (!getStructuredDatasetType() - .equals(other.getStructuredDatasetType())) 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 (hasStructuredDatasetType()) { - hash = (37 * hash) + STRUCTURED_DATASET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getStructuredDatasetType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata 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.core.Literals.StructuredDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata 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.core.Literals.StructuredDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDatasetMetadata 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.core.Literals.StructuredDatasetMetadata 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; - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetMetadata) - flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.StructuredDatasetMetadata.class, flyteidl.core.Literals.StructuredDatasetMetadata.Builder.class); - } - - // Construct using flyteidl.core.Literals.StructuredDatasetMetadata.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 (structuredDatasetTypeBuilder_ == null) { - structuredDatasetType_ = null; - } else { - structuredDatasetType_ = null; - structuredDatasetTypeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDatasetMetadata getDefaultInstanceForType() { - return flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDatasetMetadata build() { - flyteidl.core.Literals.StructuredDatasetMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDatasetMetadata buildPartial() { - flyteidl.core.Literals.StructuredDatasetMetadata result = new flyteidl.core.Literals.StructuredDatasetMetadata(this); - if (structuredDatasetTypeBuilder_ == null) { - result.structuredDatasetType_ = structuredDatasetType_; - } else { - result.structuredDatasetType_ = structuredDatasetTypeBuilder_.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.core.Literals.StructuredDatasetMetadata) { - return mergeFrom((flyteidl.core.Literals.StructuredDatasetMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.StructuredDatasetMetadata other) { - if (other == flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance()) return this; - if (other.hasStructuredDatasetType()) { - mergeStructuredDatasetType(other.getStructuredDatasetType()); - } - 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.core.Literals.StructuredDatasetMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.StructuredDatasetMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.StructuredDatasetType structuredDatasetType_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> structuredDatasetTypeBuilder_; - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public boolean hasStructuredDatasetType() { - return structuredDatasetTypeBuilder_ != null || structuredDatasetType_ != null; - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { - if (structuredDatasetTypeBuilder_ == null) { - return structuredDatasetType_ == null ? flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; - } else { - return structuredDatasetTypeBuilder_.getMessage(); - } - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public Builder setStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { - if (structuredDatasetTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structuredDatasetType_ = value; - onChanged(); - } else { - structuredDatasetTypeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public Builder setStructuredDatasetType( - flyteidl.core.Types.StructuredDatasetType.Builder builderForValue) { - if (structuredDatasetTypeBuilder_ == null) { - structuredDatasetType_ = builderForValue.build(); - onChanged(); - } else { - structuredDatasetTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public Builder mergeStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { - if (structuredDatasetTypeBuilder_ == null) { - if (structuredDatasetType_ != null) { - structuredDatasetType_ = - flyteidl.core.Types.StructuredDatasetType.newBuilder(structuredDatasetType_).mergeFrom(value).buildPartial(); - } else { - structuredDatasetType_ = value; - } - onChanged(); - } else { - structuredDatasetTypeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public Builder clearStructuredDatasetType() { - if (structuredDatasetTypeBuilder_ == null) { - structuredDatasetType_ = null; - onChanged(); - } else { - structuredDatasetType_ = null; - structuredDatasetTypeBuilder_ = null; - } - - return this; - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.Builder getStructuredDatasetTypeBuilder() { - - onChanged(); - return getStructuredDatasetTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { - if (structuredDatasetTypeBuilder_ != null) { - return structuredDatasetTypeBuilder_.getMessageOrBuilder(); - } else { - return structuredDatasetType_ == null ? - flyteidl.core.Types.StructuredDatasetType.getDefaultInstance() : structuredDatasetType_; - } - } - /** - *
-       * Bundle the type information along with the literal.
-       * This is here because StructuredDatasets can often be more defined at run time than at compile time.
-       * That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset,
-       * without any column information, but at run time, you might have that column information.
-       * flytekit python will copy this type information into the literal, from the type information, if not provided by
-       * the various plugins (encoders).
-       * Since this field is run time generated, it's not used for any type checking.
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> - getStructuredDatasetTypeFieldBuilder() { - if (structuredDatasetTypeBuilder_ == null) { - structuredDatasetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder>( - getStructuredDatasetType(), - getParentForChildren(), - isClean()); - structuredDatasetType_ = null; - } - return structuredDatasetTypeBuilder_; - } - @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.core.StructuredDatasetMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetMetadata) - private static final flyteidl.core.Literals.StructuredDatasetMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.StructuredDatasetMetadata(); - } - - public static flyteidl.core.Literals.StructuredDatasetMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StructuredDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StructuredDatasetMetadata(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.core.Literals.StructuredDatasetMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StructuredDatasetOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDataset) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * String location uniquely identifying where the data is.
-     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-     * 
- * - * string uri = 1; - */ - java.lang.String getUri(); - /** - *
-     * String location uniquely identifying where the data is.
-     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-     * 
- * - * string uri = 1; - */ - com.google.protobuf.ByteString - getUriBytes(); - - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - flyteidl.core.Literals.StructuredDatasetMetadata getMetadata(); - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.StructuredDataset} - */ - public static final class StructuredDataset extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDataset) - StructuredDatasetOrBuilder { - private static final long serialVersionUID = 0L; - // Use StructuredDataset.newBuilder() to construct. - private StructuredDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StructuredDataset() { - uri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StructuredDataset( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - uri_ = s; - break; - } - case 18: { - flyteidl.core.Literals.StructuredDatasetMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Literals.StructuredDatasetMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = 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.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.StructuredDataset.class, flyteidl.core.Literals.StructuredDataset.Builder.class); - } - - public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; - /** - *
-     * String location uniquely identifying where the data is.
-     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-     * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } - } - /** - *
-     * String location uniquely identifying where the data is.
-     * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-     * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Literals.StructuredDatasetMetadata metadata_; - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public flyteidl.core.Literals.StructuredDatasetMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - 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 (!getUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uri_); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uri_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - 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.core.Literals.StructuredDataset)) { - return super.equals(obj); - } - flyteidl.core.Literals.StructuredDataset other = (flyteidl.core.Literals.StructuredDataset) obj; - - if (!getUri() - .equals(other.getUri())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) 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(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.StructuredDataset parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.StructuredDataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDataset 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.core.Literals.StructuredDataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDataset 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.core.Literals.StructuredDataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.StructuredDataset 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.core.Literals.StructuredDataset 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; - } - /** - * Protobuf type {@code flyteidl.core.StructuredDataset} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDataset) - flyteidl.core.Literals.StructuredDatasetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.StructuredDataset.class, flyteidl.core.Literals.StructuredDataset.Builder.class); - } - - // Construct using flyteidl.core.Literals.StructuredDataset.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(); - uri_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_StructuredDataset_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDataset getDefaultInstanceForType() { - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDataset build() { - flyteidl.core.Literals.StructuredDataset result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.StructuredDataset buildPartial() { - flyteidl.core.Literals.StructuredDataset result = new flyteidl.core.Literals.StructuredDataset(this); - result.uri_ = uri_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.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.core.Literals.StructuredDataset) { - return mergeFrom((flyteidl.core.Literals.StructuredDataset)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.StructuredDataset other) { - if (other == flyteidl.core.Literals.StructuredDataset.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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.core.Literals.StructuredDataset parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.StructuredDataset) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object uri_ = ""; - /** - *
-       * String location uniquely identifying where the data is.
-       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-       * 
- * - * string uri = 1; - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String location uniquely identifying where the data is.
-       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-       * 
- * - * string uri = 1; - */ - public com.google.protobuf.ByteString - getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String location uniquely identifying where the data is.
-       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-       * 
- * - * string uri = 1; - */ - public Builder setUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uri_ = value; - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the data is.
-       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-       * 
- * - * string uri = 1; - */ - public Builder clearUri() { - - uri_ = getDefaultInstance().getUri(); - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the data is.
-       * Should start with the storage location (e.g. s3://, gs://, bq://, etc.)
-       * 
- * - * string uri = 1; - */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uri_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Literals.StructuredDatasetMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder> metadataBuilder_; - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public flyteidl.core.Literals.StructuredDatasetMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Literals.StructuredDatasetMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Literals.StructuredDatasetMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Literals.StructuredDatasetMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Literals.StructuredDatasetMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public flyteidl.core.Literals.StructuredDatasetMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - public flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Literals.StructuredDatasetMetadata.getDefaultInstance() : metadata_; - } - } - /** - * .flyteidl.core.StructuredDatasetMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDatasetMetadata, flyteidl.core.Literals.StructuredDatasetMetadata.Builder, flyteidl.core.Literals.StructuredDatasetMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - @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.core.StructuredDataset) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDataset) - private static final flyteidl.core.Literals.StructuredDataset DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.StructuredDataset(); - } - - public static flyteidl.core.Literals.StructuredDataset getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StructuredDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StructuredDataset(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.core.Literals.StructuredDataset getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ScalarOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Scalar) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.Primitive primitive = 1; - */ - boolean hasPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.Primitive getPrimitive(); - /** - * .flyteidl.core.Primitive primitive = 1; - */ - flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder(); - - /** - * .flyteidl.core.Blob blob = 2; - */ - boolean hasBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.Blob getBlob(); - /** - * .flyteidl.core.Blob blob = 2; - */ - flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder(); - - /** - * .flyteidl.core.Binary binary = 3; - */ - boolean hasBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.Binary getBinary(); - /** - * .flyteidl.core.Binary binary = 3; - */ - flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder(); - - /** - * .flyteidl.core.Schema schema = 4; - */ - boolean hasSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.Schema getSchema(); - /** - * .flyteidl.core.Schema schema = 4; - */ - flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder(); - - /** - * .flyteidl.core.Void none_type = 5; - */ - boolean hasNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.Void getNoneType(); - /** - * .flyteidl.core.Void none_type = 5; - */ - flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder(); - - /** - * .flyteidl.core.Error error = 6; - */ - boolean hasError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.Error getError(); - /** - * .flyteidl.core.Error error = 6; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - /** - * .google.protobuf.Struct generic = 7; - */ - boolean hasGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.Struct getGeneric(); - /** - * .google.protobuf.Struct generic = 7; - */ - com.google.protobuf.StructOrBuilder getGenericOrBuilder(); - - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - boolean hasStructuredDataset(); - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - flyteidl.core.Literals.StructuredDataset getStructuredDataset(); - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder(); - - /** - * .flyteidl.core.Union union = 9; - */ - boolean hasUnion(); - /** - * .flyteidl.core.Union union = 9; - */ - flyteidl.core.Literals.Union getUnion(); - /** - * .flyteidl.core.Union union = 9; - */ - flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder(); - - public flyteidl.core.Literals.Scalar.ValueCase getValueCase(); - } - /** - * Protobuf type {@code flyteidl.core.Scalar} - */ - public static final class Scalar extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Scalar) - ScalarOrBuilder { - private static final long serialVersionUID = 0L; - // Use Scalar.newBuilder() to construct. - private Scalar(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Scalar() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Scalar( - 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.Literals.Primitive.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Primitive) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Primitive.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Primitive) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.Blob.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.Blob) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Blob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Blob) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.Binary.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.Binary) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Binary.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Binary) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.Schema.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.Schema) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Schema.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Schema) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - flyteidl.core.Literals.Void.Builder subBuilder = null; - if (valueCase_ == 5) { - subBuilder = ((flyteidl.core.Literals.Void) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Void.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Void) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 5; - break; - } - case 50: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (valueCase_ == 6) { - subBuilder = ((flyteidl.core.Types.Error) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 6; - break; - } - case 58: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (valueCase_ == 7) { - subBuilder = ((com.google.protobuf.Struct) value_).toBuilder(); - } - value_ = - input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.protobuf.Struct) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 7; - break; - } - case 66: { - flyteidl.core.Literals.StructuredDataset.Builder subBuilder = null; - if (valueCase_ == 8) { - subBuilder = ((flyteidl.core.Literals.StructuredDataset) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.StructuredDataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.StructuredDataset) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 8; - break; - } - case 74: { - flyteidl.core.Literals.Union.Builder subBuilder = null; - if (valueCase_ == 9) { - subBuilder = ((flyteidl.core.Literals.Union) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Union.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Union) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 9; - 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.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - PRIMITIVE(1), - BLOB(2), - BINARY(3), - SCHEMA(4), - NONE_TYPE(5), - ERROR(6), - GENERIC(7), - STRUCTURED_DATASET(8), - UNION(9), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return PRIMITIVE; - case 2: return BLOB; - case 3: return BINARY; - case 4: return SCHEMA; - case 5: return NONE_TYPE; - case 6: return ERROR; - case 7: return GENERIC; - case 8: return STRUCTURED_DATASET; - case 9: return UNION; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int PRIMITIVE_FIELD_NUMBER = 1; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 2; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - - public static final int BINARY_FIELD_NUMBER = 3; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - - public static final int SCHEMA_FIELD_NUMBER = 4; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - - public static final int NONE_TYPE_FIELD_NUMBER = 5; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - public static final int GENERIC_FIELD_NUMBER = 7; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - - public static final int STRUCTURED_DATASET_FIELD_NUMBER = 8; - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public boolean hasStructuredDataset() { - return valueCase_ == 8; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public flyteidl.core.Literals.StructuredDataset getStructuredDataset() { - if (valueCase_ == 8) { - return (flyteidl.core.Literals.StructuredDataset) value_; - } - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder() { - if (valueCase_ == 8) { - return (flyteidl.core.Literals.StructuredDataset) value_; - } - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - - public static final int UNION_FIELD_NUMBER = 9; - /** - * .flyteidl.core.Union union = 9; - */ - public boolean hasUnion() { - return valueCase_ == 9; - } - /** - * .flyteidl.core.Union union = 9; - */ - public flyteidl.core.Literals.Union getUnion() { - if (valueCase_ == 9) { - return (flyteidl.core.Literals.Union) value_; - } - return flyteidl.core.Literals.Union.getDefaultInstance(); - } - /** - * .flyteidl.core.Union union = 9; - */ - public flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder() { - if (valueCase_ == 9) { - return (flyteidl.core.Literals.Union) value_; - } - return flyteidl.core.Literals.Union.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 (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - output.writeMessage(7, (com.google.protobuf.Struct) value_); - } - if (valueCase_ == 8) { - output.writeMessage(8, (flyteidl.core.Literals.StructuredDataset) value_); - } - if (valueCase_ == 9) { - output.writeMessage(9, (flyteidl.core.Literals.Union) value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Primitive) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.Blob) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.Binary) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.Schema) value_); - } - if (valueCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Literals.Void) value_); - } - if (valueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Types.Error) value_); - } - if (valueCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.protobuf.Struct) value_); - } - if (valueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.core.Literals.StructuredDataset) value_); - } - if (valueCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (flyteidl.core.Literals.Union) value_); - } - 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.core.Literals.Scalar)) { - return super.equals(obj); - } - flyteidl.core.Literals.Scalar other = (flyteidl.core.Literals.Scalar) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getPrimitive() - .equals(other.getPrimitive())) return false; - break; - case 2: - if (!getBlob() - .equals(other.getBlob())) return false; - break; - case 3: - if (!getBinary() - .equals(other.getBinary())) return false; - break; - case 4: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 5: - if (!getNoneType() - .equals(other.getNoneType())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) return false; - break; - case 7: - if (!getGeneric() - .equals(other.getGeneric())) return false; - break; - case 8: - if (!getStructuredDataset() - .equals(other.getStructuredDataset())) return false; - break; - case 9: - if (!getUnion() - .equals(other.getUnion())) 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 (valueCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitive().hashCode(); - break; - case 2: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 3: - hash = (37 * hash) + BINARY_FIELD_NUMBER; - hash = (53 * hash) + getBinary().hashCode(); - break; - case 4: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 5: - hash = (37 * hash) + NONE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getNoneType().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 7: - hash = (37 * hash) + GENERIC_FIELD_NUMBER; - hash = (53 * hash) + getGeneric().hashCode(); - break; - case 8: - hash = (37 * hash) + STRUCTURED_DATASET_FIELD_NUMBER; - hash = (53 * hash) + getStructuredDataset().hashCode(); - break; - case 9: - hash = (37 * hash) + UNION_FIELD_NUMBER; - hash = (53 * hash) + getUnion().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Scalar parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Scalar parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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.core.Literals.Scalar parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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.core.Literals.Scalar parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Scalar 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.core.Literals.Scalar 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; - } - /** - * Protobuf type {@code flyteidl.core.Scalar} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Scalar) - flyteidl.core.Literals.ScalarOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Scalar.class, flyteidl.core.Literals.Scalar.Builder.class); - } - - // Construct using flyteidl.core.Literals.Scalar.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Scalar_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar getDefaultInstanceForType() { - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar build() { - flyteidl.core.Literals.Scalar result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Scalar buildPartial() { - flyteidl.core.Literals.Scalar result = new flyteidl.core.Literals.Scalar(this); - if (valueCase_ == 1) { - if (primitiveBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = primitiveBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (blobBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = blobBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (binaryBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = binaryBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (schemaBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = schemaBuilder_.build(); - } - } - if (valueCase_ == 5) { - if (noneTypeBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = noneTypeBuilder_.build(); - } - } - if (valueCase_ == 6) { - if (errorBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = errorBuilder_.build(); - } - } - if (valueCase_ == 7) { - if (genericBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = genericBuilder_.build(); - } - } - if (valueCase_ == 8) { - if (structuredDatasetBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = structuredDatasetBuilder_.build(); - } - } - if (valueCase_ == 9) { - if (unionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = unionBuilder_.build(); - } - } - result.valueCase_ = valueCase_; - 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.core.Literals.Scalar) { - return mergeFrom((flyteidl.core.Literals.Scalar)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Scalar other) { - if (other == flyteidl.core.Literals.Scalar.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case PRIMITIVE: { - mergePrimitive(other.getPrimitive()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case BINARY: { - mergeBinary(other.getBinary()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case NONE_TYPE: { - mergeNoneType(other.getNoneType()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case GENERIC: { - mergeGeneric(other.getGeneric()); - break; - } - case STRUCTURED_DATASET: { - mergeStructuredDataset(other.getStructuredDataset()); - break; - } - case UNION: { - mergeUnion(other.getUnion()); - break; - } - case VALUE_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.core.Literals.Scalar parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Scalar) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> primitiveBuilder_; - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public boolean hasPrimitive() { - return valueCase_ == 1; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive getPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return primitiveBuilder_.getMessage(); - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder setPrimitive( - flyteidl.core.Literals.Primitive.Builder builderForValue) { - if (primitiveBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - primitiveBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder mergePrimitive(flyteidl.core.Literals.Primitive value) { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Primitive.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Primitive.newBuilder((flyteidl.core.Literals.Primitive) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - primitiveBuilder_.mergeFrom(value); - } - primitiveBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public Builder clearPrimitive() { - if (primitiveBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - primitiveBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.Primitive.Builder getPrimitiveBuilder() { - return getPrimitiveFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - public flyteidl.core.Literals.PrimitiveOrBuilder getPrimitiveOrBuilder() { - if ((valueCase_ == 1) && (primitiveBuilder_ != null)) { - return primitiveBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Primitive) value_; - } - return flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Primitive primitive = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder> - getPrimitiveFieldBuilder() { - if (primitiveBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Primitive.getDefaultInstance(); - } - primitiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Primitive, flyteidl.core.Literals.Primitive.Builder, flyteidl.core.Literals.PrimitiveOrBuilder>( - (flyteidl.core.Literals.Primitive) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return primitiveBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> blobBuilder_; - /** - * .flyteidl.core.Blob blob = 2; - */ - public boolean hasBlob() { - return valueCase_ == 2; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob getBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder setBlob( - flyteidl.core.Literals.Blob.Builder builderForValue) { - if (blobBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder mergeBlob(flyteidl.core.Literals.Blob value) { - if (blobBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.Blob.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Blob.newBuilder((flyteidl.core.Literals.Blob) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.Blob.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Blob blob = 2; - */ - public flyteidl.core.Literals.BlobOrBuilder getBlobOrBuilder() { - if ((valueCase_ == 2) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.Blob) value_; - } - return flyteidl.core.Literals.Blob.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Blob blob = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.Blob.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Blob, flyteidl.core.Literals.Blob.Builder, flyteidl.core.Literals.BlobOrBuilder>( - (flyteidl.core.Literals.Blob) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> binaryBuilder_; - /** - * .flyteidl.core.Binary binary = 3; - */ - public boolean hasBinary() { - return valueCase_ == 3; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary getBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return binaryBuilder_.getMessage(); - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder setBinary( - flyteidl.core.Literals.Binary.Builder builderForValue) { - if (binaryBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - binaryBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder mergeBinary(flyteidl.core.Literals.Binary value) { - if (binaryBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.Binary.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Binary.newBuilder((flyteidl.core.Literals.Binary) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - binaryBuilder_.mergeFrom(value); - } - binaryBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public Builder clearBinary() { - if (binaryBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - binaryBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.Binary.Builder getBinaryBuilder() { - return getBinaryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Binary binary = 3; - */ - public flyteidl.core.Literals.BinaryOrBuilder getBinaryOrBuilder() { - if ((valueCase_ == 3) && (binaryBuilder_ != null)) { - return binaryBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.Binary) value_; - } - return flyteidl.core.Literals.Binary.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Binary binary = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder> - getBinaryFieldBuilder() { - if (binaryBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.Binary.getDefaultInstance(); - } - binaryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Binary, flyteidl.core.Literals.Binary.Builder, flyteidl.core.Literals.BinaryOrBuilder>( - (flyteidl.core.Literals.Binary) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return binaryBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> schemaBuilder_; - /** - * .flyteidl.core.Schema schema = 4; - */ - public boolean hasSchema() { - return valueCase_ == 4; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema getSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder setSchema( - flyteidl.core.Literals.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder mergeSchema(flyteidl.core.Literals.Schema value) { - if (schemaBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.Schema.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Schema.newBuilder((flyteidl.core.Literals.Schema) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.Schema.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Schema schema = 4; - */ - public flyteidl.core.Literals.SchemaOrBuilder getSchemaOrBuilder() { - if ((valueCase_ == 4) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.Schema) value_; - } - return flyteidl.core.Literals.Schema.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Schema schema = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.Schema.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Schema, flyteidl.core.Literals.Schema.Builder, flyteidl.core.Literals.SchemaOrBuilder>( - (flyteidl.core.Literals.Schema) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> noneTypeBuilder_; - /** - * .flyteidl.core.Void none_type = 5; - */ - public boolean hasNoneType() { - return valueCase_ == 5; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void getNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } else { - if (valueCase_ == 5) { - return noneTypeBuilder_.getMessage(); - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder setNoneType( - flyteidl.core.Literals.Void.Builder builderForValue) { - if (noneTypeBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - noneTypeBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder mergeNoneType(flyteidl.core.Literals.Void value) { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5 && - value_ != flyteidl.core.Literals.Void.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Void.newBuilder((flyteidl.core.Literals.Void) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 5) { - noneTypeBuilder_.mergeFrom(value); - } - noneTypeBuilder_.setMessage(value); - } - valueCase_ = 5; - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public Builder clearNoneType() { - if (noneTypeBuilder_ == null) { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 5) { - valueCase_ = 0; - value_ = null; - } - noneTypeBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.Void.Builder getNoneTypeBuilder() { - return getNoneTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Void none_type = 5; - */ - public flyteidl.core.Literals.VoidOrBuilder getNoneTypeOrBuilder() { - if ((valueCase_ == 5) && (noneTypeBuilder_ != null)) { - return noneTypeBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 5) { - return (flyteidl.core.Literals.Void) value_; - } - return flyteidl.core.Literals.Void.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Void none_type = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder> - getNoneTypeFieldBuilder() { - if (noneTypeBuilder_ == null) { - if (!(valueCase_ == 5)) { - value_ = flyteidl.core.Literals.Void.getDefaultInstance(); - } - noneTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Void, flyteidl.core.Literals.Void.Builder, flyteidl.core.Literals.VoidOrBuilder>( - (flyteidl.core.Literals.Void) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 5; - onChanged();; - return noneTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - * .flyteidl.core.Error error = 6; - */ - public boolean hasError() { - return valueCase_ == 6; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (valueCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (valueCase_ == 6 && - value_ != flyteidl.core.Types.Error.getDefaultInstance()) { - value_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - valueCase_ = 6; - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 6) { - valueCase_ = 0; - value_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Error error = 6; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((valueCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 6) { - return (flyteidl.core.Types.Error) value_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Error error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(valueCase_ == 6)) { - value_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 6; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> genericBuilder_; - /** - * .google.protobuf.Struct generic = 7; - */ - public boolean hasGeneric() { - return valueCase_ == 7; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct getGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } else { - if (valueCase_ == 7) { - return genericBuilder_.getMessage(); - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder setGeneric( - com.google.protobuf.Struct.Builder builderForValue) { - if (genericBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - genericBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder mergeGeneric(com.google.protobuf.Struct value) { - if (genericBuilder_ == null) { - if (valueCase_ == 7 && - value_ != com.google.protobuf.Struct.getDefaultInstance()) { - value_ = com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 7) { - genericBuilder_.mergeFrom(value); - } - genericBuilder_.setMessage(value); - } - valueCase_ = 7; - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public Builder clearGeneric() { - if (genericBuilder_ == null) { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 7) { - valueCase_ = 0; - value_ = null; - } - genericBuilder_.clear(); - } - return this; - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.Struct.Builder getGenericBuilder() { - return getGenericFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.Struct generic = 7; - */ - public com.google.protobuf.StructOrBuilder getGenericOrBuilder() { - if ((valueCase_ == 7) && (genericBuilder_ != null)) { - return genericBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 7) { - return (com.google.protobuf.Struct) value_; - } - return com.google.protobuf.Struct.getDefaultInstance(); - } - } - /** - * .google.protobuf.Struct generic = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getGenericFieldBuilder() { - if (genericBuilder_ == null) { - if (!(valueCase_ == 7)) { - value_ = com.google.protobuf.Struct.getDefaultInstance(); - } - genericBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - (com.google.protobuf.Struct) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 7; - onChanged();; - return genericBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder> structuredDatasetBuilder_; - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public boolean hasStructuredDataset() { - return valueCase_ == 8; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public flyteidl.core.Literals.StructuredDataset getStructuredDataset() { - if (structuredDatasetBuilder_ == null) { - if (valueCase_ == 8) { - return (flyteidl.core.Literals.StructuredDataset) value_; - } - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } else { - if (valueCase_ == 8) { - return structuredDatasetBuilder_.getMessage(); - } - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public Builder setStructuredDataset(flyteidl.core.Literals.StructuredDataset value) { - if (structuredDatasetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - structuredDatasetBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public Builder setStructuredDataset( - flyteidl.core.Literals.StructuredDataset.Builder builderForValue) { - if (structuredDatasetBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - structuredDatasetBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 8; - return this; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public Builder mergeStructuredDataset(flyteidl.core.Literals.StructuredDataset value) { - if (structuredDatasetBuilder_ == null) { - if (valueCase_ == 8 && - value_ != flyteidl.core.Literals.StructuredDataset.getDefaultInstance()) { - value_ = flyteidl.core.Literals.StructuredDataset.newBuilder((flyteidl.core.Literals.StructuredDataset) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 8) { - structuredDatasetBuilder_.mergeFrom(value); - } - structuredDatasetBuilder_.setMessage(value); - } - valueCase_ = 8; - return this; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public Builder clearStructuredDataset() { - if (structuredDatasetBuilder_ == null) { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 8) { - valueCase_ = 0; - value_ = null; - } - structuredDatasetBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public flyteidl.core.Literals.StructuredDataset.Builder getStructuredDatasetBuilder() { - return getStructuredDatasetFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - public flyteidl.core.Literals.StructuredDatasetOrBuilder getStructuredDatasetOrBuilder() { - if ((valueCase_ == 8) && (structuredDatasetBuilder_ != null)) { - return structuredDatasetBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 8) { - return (flyteidl.core.Literals.StructuredDataset) value_; - } - return flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - } - /** - * .flyteidl.core.StructuredDataset structured_dataset = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder> - getStructuredDatasetFieldBuilder() { - if (structuredDatasetBuilder_ == null) { - if (!(valueCase_ == 8)) { - value_ = flyteidl.core.Literals.StructuredDataset.getDefaultInstance(); - } - structuredDatasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.StructuredDataset, flyteidl.core.Literals.StructuredDataset.Builder, flyteidl.core.Literals.StructuredDatasetOrBuilder>( - (flyteidl.core.Literals.StructuredDataset) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 8; - onChanged();; - return structuredDatasetBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder> unionBuilder_; - /** - * .flyteidl.core.Union union = 9; - */ - public boolean hasUnion() { - return valueCase_ == 9; - } - /** - * .flyteidl.core.Union union = 9; - */ - public flyteidl.core.Literals.Union getUnion() { - if (unionBuilder_ == null) { - if (valueCase_ == 9) { - return (flyteidl.core.Literals.Union) value_; - } - return flyteidl.core.Literals.Union.getDefaultInstance(); - } else { - if (valueCase_ == 9) { - return unionBuilder_.getMessage(); - } - return flyteidl.core.Literals.Union.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Union union = 9; - */ - public Builder setUnion(flyteidl.core.Literals.Union value) { - if (unionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - unionBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .flyteidl.core.Union union = 9; - */ - public Builder setUnion( - flyteidl.core.Literals.Union.Builder builderForValue) { - if (unionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - unionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 9; - return this; - } - /** - * .flyteidl.core.Union union = 9; - */ - public Builder mergeUnion(flyteidl.core.Literals.Union value) { - if (unionBuilder_ == null) { - if (valueCase_ == 9 && - value_ != flyteidl.core.Literals.Union.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Union.newBuilder((flyteidl.core.Literals.Union) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 9) { - unionBuilder_.mergeFrom(value); - } - unionBuilder_.setMessage(value); - } - valueCase_ = 9; - return this; - } - /** - * .flyteidl.core.Union union = 9; - */ - public Builder clearUnion() { - if (unionBuilder_ == null) { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 9) { - valueCase_ = 0; - value_ = null; - } - unionBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Union union = 9; - */ - public flyteidl.core.Literals.Union.Builder getUnionBuilder() { - return getUnionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Union union = 9; - */ - public flyteidl.core.Literals.UnionOrBuilder getUnionOrBuilder() { - if ((valueCase_ == 9) && (unionBuilder_ != null)) { - return unionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 9) { - return (flyteidl.core.Literals.Union) value_; - } - return flyteidl.core.Literals.Union.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Union union = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder> - getUnionFieldBuilder() { - if (unionBuilder_ == null) { - if (!(valueCase_ == 9)) { - value_ = flyteidl.core.Literals.Union.getDefaultInstance(); - } - unionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Union, flyteidl.core.Literals.Union.Builder, flyteidl.core.Literals.UnionOrBuilder>( - (flyteidl.core.Literals.Union) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 9; - onChanged();; - return unionBuilder_; - } - @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.core.Scalar) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Scalar) - private static final flyteidl.core.Literals.Scalar DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Scalar(); - } - - public static flyteidl.core.Literals.Scalar getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Scalar parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Scalar(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.core.Literals.Scalar getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Literal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollection getCollection(); - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - boolean hasMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMap getMap(); - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder(); - - /** - *
-     * A hash representing this literal.
-     * This is used for caching purposes. For more details refer to RFC 1893
-     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-     * 
- * - * string hash = 4; - */ - java.lang.String getHash(); - /** - *
-     * A hash representing this literal.
-     * This is used for caching purposes. For more details refer to RFC 1893
-     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-     * 
- * - * string hash = 4; - */ - com.google.protobuf.ByteString - getHashBytes(); - - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - int getMetadataCount(); - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - boolean containsMetadata( - java.lang.String key); - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getMetadata(); - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - java.util.Map - getMetadataMap(); - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - java.lang.String getMetadataOrThrow( - java.lang.String key); - - public flyteidl.core.Literals.Literal.ValueCase getValueCase(); - } - /** - *
-   * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-   * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Literal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Literal) - LiteralOrBuilder { - private static final long serialVersionUID = 0L; - // Use Literal.newBuilder() to construct. - private Literal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Literal() { - hash_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Literal( - 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.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.LiteralCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.LiteralCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - hash_ = s; - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - metadata__ = input.readMessage( - MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - metadata_.getMutableMap().put( - metadata__.getKey(), metadata__.getValue()); - 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.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - private int bitField0_; - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - MAP(3), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - /** - *
-     * A collection of literals to allow nesting.
-     * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 3; - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * A map of strings to literals.
-     * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int HASH_FIELD_NUMBER = 4; - private volatile java.lang.Object hash_; - /** - *
-     * A hash representing this literal.
-     * This is used for caching purposes. For more details refer to RFC 1893
-     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-     * 
- * - * string hash = 4; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } - } - /** - *
-     * A hash representing this literal.
-     * This is used for caching purposes. For more details refer to RFC 1893
-     * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-     * 
- * - * string hash = 4; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 5; - private static final class MetadataDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_Literal_MetadataEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Additional metadata for literals.
-     * 
- * - * map<string, string> metadata = 5; - */ - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.LiteralMap) value_); - } - if (!getHashBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, hash_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetMetadata(), - MetadataDefaultEntryHolder.defaultEntry, - 5); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.LiteralCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.LiteralMap) value_); - } - if (!getHashBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, hash_); - } - for (java.util.Map.Entry entry - : internalGetMetadata().getMap().entrySet()) { - com.google.protobuf.MapEntry - metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, metadata__); - } - 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.core.Literals.Literal)) { - return super.equals(obj); - } - flyteidl.core.Literals.Literal other = (flyteidl.core.Literals.Literal) obj; - - if (!getHash() - .equals(other.getHash())) return false; - if (!internalGetMetadata().equals( - other.internalGetMetadata())) return false; - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getMap() - .equals(other.getMap())) 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(); - hash = (37 * hash) + HASH_FIELD_NUMBER; - hash = (53 * hash) + getHash().hashCode(); - if (!internalGetMetadata().getMap().isEmpty()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + internalGetMetadata().hashCode(); - } - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Literal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Literal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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.core.Literals.Literal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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.core.Literals.Literal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Literal 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.core.Literals.Literal 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; - } - /** - *
-     * A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives.
-     * 
- * - * Protobuf type {@code flyteidl.core.Literal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Literal) - flyteidl.core.Literals.LiteralOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableMetadata(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Literal.class, flyteidl.core.Literals.Literal.Builder.class); - } - - // Construct using flyteidl.core.Literals.Literal.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(); - hash_ = ""; - - internalGetMutableMetadata().clear(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Literal_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal getDefaultInstanceForType() { - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Literal build() { - flyteidl.core.Literals.Literal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Literal buildPartial() { - flyteidl.core.Literals.Literal result = new flyteidl.core.Literals.Literal(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - result.hash_ = hash_; - result.metadata_ = internalGetMetadata(); - result.metadata_.makeImmutable(); - result.bitField0_ = to_bitField0_; - result.valueCase_ = valueCase_; - 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.core.Literals.Literal) { - return mergeFrom((flyteidl.core.Literals.Literal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Literal other) { - if (other == flyteidl.core.Literals.Literal.getDefaultInstance()) return this; - if (!other.getHash().isEmpty()) { - hash_ = other.hash_; - onChanged(); - } - internalGetMutableMetadata().mergeFrom( - other.internalGetMetadata()); - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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.core.Literals.Literal parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Literal) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.LiteralCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.LiteralCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralCollection.newBuilder((flyteidl.core.Literals.LiteralCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - public flyteidl.core.Literals.LiteralCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.LiteralCollection) value_; - } - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of literals to allow nesting.
-       * 
- * - * .flyteidl.core.LiteralCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralCollection, flyteidl.core.Literals.LiteralCollection.Builder, flyteidl.core.Literals.LiteralCollectionOrBuilder>( - (flyteidl.core.Literals.LiteralCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> mapBuilder_; - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public boolean hasMap() { - return valueCase_ == 3; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder setMap( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder mergeMap(flyteidl.core.Literals.LiteralMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 3) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Literals.LiteralMap) value_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * A map of strings to literals.
-       * 
- * - * .flyteidl.core.LiteralMap map = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return mapBuilder_; - } - - private java.lang.Object hash_ = ""; - /** - *
-       * A hash representing this literal.
-       * This is used for caching purposes. For more details refer to RFC 1893
-       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-       * 
- * - * string hash = 4; - */ - public java.lang.String getHash() { - java.lang.Object ref = hash_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - hash_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A hash representing this literal.
-       * This is used for caching purposes. For more details refer to RFC 1893
-       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-       * 
- * - * string hash = 4; - */ - public com.google.protobuf.ByteString - getHashBytes() { - java.lang.Object ref = hash_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - hash_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A hash representing this literal.
-       * This is used for caching purposes. For more details refer to RFC 1893
-       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-       * 
- * - * string hash = 4; - */ - public Builder setHash( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - hash_ = value; - onChanged(); - return this; - } - /** - *
-       * A hash representing this literal.
-       * This is used for caching purposes. For more details refer to RFC 1893
-       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-       * 
- * - * string hash = 4; - */ - public Builder clearHash() { - - hash_ = getDefaultInstance().getHash(); - onChanged(); - return this; - } - /** - *
-       * A hash representing this literal.
-       * This is used for caching purposes. For more details refer to RFC 1893
-       * (https://github.com/flyteorg/flyte/blob/master/rfc/system/1893-caching-of-offloaded-objects.md)
-       * 
- * - * string hash = 4; - */ - public Builder setHashBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - hash_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> metadata_; - private com.google.protobuf.MapField - internalGetMetadata() { - if (metadata_ == null) { - return com.google.protobuf.MapField.emptyMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - return metadata_; - } - private com.google.protobuf.MapField - internalGetMutableMetadata() { - onChanged();; - if (metadata_ == null) { - metadata_ = com.google.protobuf.MapField.newMapField( - MetadataDefaultEntryHolder.defaultEntry); - } - if (!metadata_.isMutable()) { - metadata_ = metadata_.copy(); - } - return metadata_; - } - - public int getMetadataCount() { - return internalGetMetadata().getMap().size(); - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public boolean containsMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetMetadata().getMap().containsKey(key); - } - /** - * Use {@link #getMetadataMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getMetadata() { - return getMetadataMap(); - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public java.util.Map getMetadataMap() { - return internalGetMetadata().getMap(); - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public java.lang.String getMetadataOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public java.lang.String getMetadataOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetMetadata().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearMetadata() { - internalGetMutableMetadata().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public Builder removeMetadata( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableMetadata() { - return internalGetMutableMetadata().getMutableMap(); - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - public Builder putMetadata( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableMetadata().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Additional metadata for literals.
-       * 
- * - * map<string, string> metadata = 5; - */ - - public Builder putAllMetadata( - java.util.Map values) { - internalGetMutableMetadata().getMutableMap() - .putAll(values); - return this; - } - @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.core.Literal) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Literal) - private static final flyteidl.core.Literals.Literal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Literal(); - } - - public static flyteidl.core.Literals.Literal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Literal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Literal(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.core.Literals.Literal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.Literal getLiterals(int index); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - int getLiteralsCount(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - java.util.List - getLiteralsOrBuilderList(); - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index); - } - /** - *
-   * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class LiteralCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralCollection) - LiteralCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralCollection.newBuilder() to construct. - private LiteralCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralCollection() { - literals_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralCollection( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - literals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - literals_.add( - input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private java.util.List literals_; - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - return literals_; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - return literals_.size(); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - return literals_.get(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - return literals_.get(index); - } - - 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 { - for (int i = 0; i < literals_.size(); i++) { - output.writeMessage(1, literals_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < literals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals_.get(i)); - } - 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.core.Literals.LiteralCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralCollection other = (flyteidl.core.Literals.LiteralCollection) obj; - - if (!getLiteralsList() - .equals(other.getLiteralsList())) 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 (getLiteralsCount() > 0) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + getLiteralsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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.core.Literals.LiteralCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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.core.Literals.LiteralCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralCollection 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.core.Literals.LiteralCollection 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; - } - /** - *
-     * A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralCollection) - flyteidl.core.Literals.LiteralCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralCollection.class, flyteidl.core.Literals.LiteralCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLiteralsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - literalsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection build() { - flyteidl.core.Literals.LiteralCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralCollection buildPartial() { - flyteidl.core.Literals.LiteralCollection result = new flyteidl.core.Literals.LiteralCollection(this); - int from_bitField0_ = bitField0_; - if (literalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - literals_ = java.util.Collections.unmodifiableList(literals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.literals_ = literals_; - } else { - result.literals_ = literalsBuilder_.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.core.Literals.LiteralCollection) { - return mergeFrom((flyteidl.core.Literals.LiteralCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralCollection other) { - if (other == flyteidl.core.Literals.LiteralCollection.getDefaultInstance()) return this; - if (literalsBuilder_ == null) { - if (!other.literals_.isEmpty()) { - if (literals_.isEmpty()) { - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLiteralsIsMutable(); - literals_.addAll(other.literals_); - } - onChanged(); - } - } else { - if (!other.literals_.isEmpty()) { - if (literalsBuilder_.isEmpty()) { - literalsBuilder_.dispose(); - literalsBuilder_ = null; - literals_ = other.literals_; - bitField0_ = (bitField0_ & ~0x00000001); - literalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLiteralsFieldBuilder() : null; - } else { - literalsBuilder_.addAllMessages(other.literals_); - } - } - } - 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.core.Literals.LiteralCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List literals_ = - java.util.Collections.emptyList(); - private void ensureLiteralsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - literals_ = new java.util.ArrayList(literals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalsBuilder_; - - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List getLiteralsList() { - if (literalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(literals_); - } else { - return literalsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public int getLiteralsCount() { - if (literalsBuilder_ == null) { - return literals_.size(); - } else { - return literalsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal getLiterals(int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); - } else { - return literalsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.set(index, value); - onChanged(); - } else { - literalsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder setLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.set(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals(flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(value); - onChanged(); - } else { - literalsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal value) { - if (literalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLiteralsIsMutable(); - literals_.add(index, value); - onChanged(); - } else { - literalsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addLiterals( - int index, flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.add(index, builderForValue.build()); - onChanged(); - } else { - literalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder addAllLiterals( - java.lang.Iterable values) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, literals_); - onChanged(); - } else { - literalsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder clearLiterals() { - if (literalsBuilder_ == null) { - literals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - literalsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public Builder removeLiterals(int index) { - if (literalsBuilder_ == null) { - ensureLiteralsIsMutable(); - literals_.remove(index); - onChanged(); - } else { - literalsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder getLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralsOrBuilder( - int index) { - if (literalsBuilder_ == null) { - return literals_.get(index); } else { - return literalsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsOrBuilderList() { - if (literalsBuilder_ != null) { - return literalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(literals_); - } - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder() { - return getLiteralsFieldBuilder().addBuilder( - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public flyteidl.core.Literals.Literal.Builder addLiteralsBuilder( - int index) { - return getLiteralsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Literal.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.Literal literals = 1; - */ - public java.util.List - getLiteralsBuilderList() { - return getLiteralsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getLiteralsFieldBuilder() { - if (literalsBuilder_ == null) { - literalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - literals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - literals_ = null; - } - return literalsBuilder_; - } - @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.core.LiteralCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralCollection) - private static final flyteidl.core.Literals.LiteralCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralCollection(); - } - - public static flyteidl.core.Literals.LiteralCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralCollection(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.core.Literals.LiteralCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - int getLiteralsCount(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - boolean containsLiterals( - java.lang.String key); - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLiterals(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - java.util.Map - getLiteralsMap(); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue); - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class LiteralMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralMap) - LiteralMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralMap.newBuilder() to construct. - private LiteralMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralMap( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - literals__ = input.readMessage( - LiteralsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - literals_.getMutableMap().put( - literals__.getKey(), literals__.getValue()); - 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.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - public static final int LITERALS_FIELD_NUMBER = 1; - private static final class LiteralsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.Literal> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.Literal.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLiterals(), - LiteralsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetLiterals().getMap().entrySet()) { - com.google.protobuf.MapEntry - literals__ = LiteralsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, literals__); - } - 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.core.Literals.LiteralMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.LiteralMap other = (flyteidl.core.Literals.LiteralMap) obj; - - if (!internalGetLiterals().equals( - other.internalGetLiterals())) 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 (!internalGetLiterals().getMap().isEmpty()) { - hash = (37 * hash) + LITERALS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLiterals().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.LiteralMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.LiteralMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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.core.Literals.LiteralMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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.core.Literals.LiteralMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.LiteralMap 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.core.Literals.LiteralMap 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; - } - /** - *
-     * A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralMap) - flyteidl.core.Literals.LiteralMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableLiterals(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.LiteralMap.class, flyteidl.core.Literals.LiteralMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.LiteralMap.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(); - internalGetMutableLiterals().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_LiteralMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap getDefaultInstanceForType() { - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap build() { - flyteidl.core.Literals.LiteralMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.LiteralMap buildPartial() { - flyteidl.core.Literals.LiteralMap result = new flyteidl.core.Literals.LiteralMap(this); - int from_bitField0_ = bitField0_; - result.literals_ = internalGetLiterals(); - result.literals_.makeImmutable(); - 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.core.Literals.LiteralMap) { - return mergeFrom((flyteidl.core.Literals.LiteralMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.LiteralMap other) { - if (other == flyteidl.core.Literals.LiteralMap.getDefaultInstance()) return this; - internalGetMutableLiterals().mergeFrom( - other.internalGetLiterals()); - 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.core.Literals.LiteralMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.LiteralMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.Literal> literals_; - private com.google.protobuf.MapField - internalGetLiterals() { - if (literals_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - return literals_; - } - private com.google.protobuf.MapField - internalGetMutableLiterals() { - onChanged();; - if (literals_ == null) { - literals_ = com.google.protobuf.MapField.newMapField( - LiteralsDefaultEntryHolder.defaultEntry); - } - if (!literals_.isMutable()) { - literals_ = literals_.copy(); - } - return literals_; - } - - public int getLiteralsCount() { - return internalGetLiterals().getMap().size(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public boolean containsLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLiterals().getMap().containsKey(key); - } - /** - * Use {@link #getLiteralsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLiterals() { - return getLiteralsMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public java.util.Map getLiteralsMap() { - return internalGetLiterals().getMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrDefault( - java.lang.String key, - flyteidl.core.Literals.Literal defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public flyteidl.core.Literals.Literal getLiteralsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLiterals().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLiterals() { - internalGetMutableLiterals().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder removeLiterals( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLiterals() { - return internalGetMutableLiterals().getMutableMap(); - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - public Builder putLiterals( - java.lang.String key, - flyteidl.core.Literals.Literal value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLiterals().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.Literal> literals = 1; - */ - - public Builder putAllLiterals( - java.util.Map values) { - internalGetMutableLiterals().getMutableMap() - .putAll(values); - return this; - } - @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.core.LiteralMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralMap) - private static final flyteidl.core.Literals.LiteralMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.LiteralMap(); - } - - public static flyteidl.core.Literals.LiteralMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralMap(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.core.Literals.LiteralMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingData getBindings(int index); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - int getBindingsCount(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - java.util.List - getBindingsOrBuilderList(); - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index); - } - /** - *
-   * A collection of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class BindingDataCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataCollection) - BindingDataCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataCollection.newBuilder() to construct. - private BindingDataCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataCollection() { - bindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataCollection( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - bindings_.add( - input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private java.util.List bindings_; - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - return bindings_; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - return bindings_.size(); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - return bindings_.get(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - return bindings_.get(index); - } - - 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 { - for (int i = 0; i < bindings_.size(); i++) { - output.writeMessage(1, bindings_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < bindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings_.get(i)); - } - 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.core.Literals.BindingDataCollection)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataCollection other = (flyteidl.core.Literals.BindingDataCollection) obj; - - if (!getBindingsList() - .equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getBindingsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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.core.Literals.BindingDataCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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.core.Literals.BindingDataCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataCollection 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.core.Literals.BindingDataCollection 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; - } - /** - *
-     * A collection of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataCollection) - flyteidl.core.Literals.BindingDataCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataCollection.class, flyteidl.core.Literals.BindingDataCollection.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getBindingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - bindingsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataCollection_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection build() { - flyteidl.core.Literals.BindingDataCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataCollection buildPartial() { - flyteidl.core.Literals.BindingDataCollection result = new flyteidl.core.Literals.BindingDataCollection(this); - int from_bitField0_ = bitField0_; - if (bindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - bindings_ = java.util.Collections.unmodifiableList(bindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bindings_ = bindings_; - } else { - result.bindings_ = bindingsBuilder_.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.core.Literals.BindingDataCollection) { - return mergeFrom((flyteidl.core.Literals.BindingDataCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataCollection other) { - if (other == flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) return this; - if (bindingsBuilder_ == null) { - if (!other.bindings_.isEmpty()) { - if (bindings_.isEmpty()) { - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBindingsIsMutable(); - bindings_.addAll(other.bindings_); - } - onChanged(); - } - } else { - if (!other.bindings_.isEmpty()) { - if (bindingsBuilder_.isEmpty()) { - bindingsBuilder_.dispose(); - bindingsBuilder_ = null; - bindings_ = other.bindings_; - bitField0_ = (bitField0_ & ~0x00000001); - bindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBindingsFieldBuilder() : null; - } else { - bindingsBuilder_.addAllMessages(other.bindings_); - } - } - } - 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.core.Literals.BindingDataCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List bindings_ = - java.util.Collections.emptyList(); - private void ensureBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bindings_ = new java.util.ArrayList(bindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingsBuilder_; - - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List getBindingsList() { - if (bindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(bindings_); - } else { - return bindingsBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public int getBindingsCount() { - if (bindingsBuilder_ == null) { - return bindings_.size(); - } else { - return bindingsBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData getBindings(int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); - } else { - return bindingsBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.set(index, value); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder setBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.set(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings(flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(value); - onChanged(); - } else { - bindingsBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData value) { - if (bindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBindingsIsMutable(); - bindings_.add(index, value); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addBindings( - int index, flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.add(index, builderForValue.build()); - onChanged(); - } else { - bindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder addAllBindings( - java.lang.Iterable values) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bindings_); - onChanged(); - } else { - bindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder clearBindings() { - if (bindingsBuilder_ == null) { - bindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - bindingsBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public Builder removeBindings(int index) { - if (bindingsBuilder_ == null) { - ensureBindingsIsMutable(); - bindings_.remove(index); - onChanged(); - } else { - bindingsBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingsBuilder( - int index) { - return getBindingsFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingsOrBuilder( - int index) { - if (bindingsBuilder_ == null) { - return bindings_.get(index); } else { - return bindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsOrBuilderList() { - if (bindingsBuilder_ != null) { - return bindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bindings_); - } - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder() { - return getBindingsFieldBuilder().addBuilder( - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public flyteidl.core.Literals.BindingData.Builder addBindingsBuilder( - int index) { - return getBindingsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.BindingData bindings = 1; - */ - public java.util.List - getBindingsBuilderList() { - return getBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingsFieldBuilder() { - if (bindingsBuilder_ == null) { - bindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - bindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - bindings_ = null; - } - return bindingsBuilder_; - } - @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.core.BindingDataCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataCollection) - private static final flyteidl.core.Literals.BindingDataCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataCollection(); - } - - public static flyteidl.core.Literals.BindingDataCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataCollection(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.core.Literals.BindingDataCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataMapOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingDataMap) - com.google.protobuf.MessageOrBuilder { - - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - int getBindingsCount(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - boolean containsBindings( - java.lang.String key); - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getBindings(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - java.util.Map - getBindingsMap(); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue); - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key); - } - /** - *
-   * A map of BindingData items.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class BindingDataMap extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingDataMap) - BindingDataMapOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingDataMap.newBuilder() to construct. - private BindingDataMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingDataMap() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingDataMap( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - bindings__ = input.readMessage( - BindingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - bindings_.getMutableMap().put( - bindings__.getKey(), bindings__.getValue()); - 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.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - public static final int BINDINGS_FIELD_NUMBER = 1; - private static final class BindingsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Literals.BindingData> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Literals.BindingData.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetBindings(), - BindingsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetBindings().getMap().entrySet()) { - com.google.protobuf.MapEntry - bindings__ = BindingsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bindings__); - } - 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.core.Literals.BindingDataMap)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingDataMap other = (flyteidl.core.Literals.BindingDataMap) obj; - - if (!internalGetBindings().equals( - other.internalGetBindings())) 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 (!internalGetBindings().getMap().isEmpty()) { - hash = (37 * hash) + BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetBindings().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingDataMap parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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.core.Literals.BindingDataMap parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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.core.Literals.BindingDataMap parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingDataMap 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.core.Literals.BindingDataMap 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; - } - /** - *
-     * A map of BindingData items.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingDataMap} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingDataMap) - flyteidl.core.Literals.BindingDataMapOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableBindings(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingDataMap.class, flyteidl.core.Literals.BindingDataMap.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingDataMap.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(); - internalGetMutableBindings().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingDataMap_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap build() { - flyteidl.core.Literals.BindingDataMap result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingDataMap buildPartial() { - flyteidl.core.Literals.BindingDataMap result = new flyteidl.core.Literals.BindingDataMap(this); - int from_bitField0_ = bitField0_; - result.bindings_ = internalGetBindings(); - result.bindings_.makeImmutable(); - 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.core.Literals.BindingDataMap) { - return mergeFrom((flyteidl.core.Literals.BindingDataMap)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingDataMap other) { - if (other == flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) return this; - internalGetMutableBindings().mergeFrom( - other.internalGetBindings()); - 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.core.Literals.BindingDataMap parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingDataMap) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Literals.BindingData> bindings_; - private com.google.protobuf.MapField - internalGetBindings() { - if (bindings_ == null) { - return com.google.protobuf.MapField.emptyMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - return bindings_; - } - private com.google.protobuf.MapField - internalGetMutableBindings() { - onChanged();; - if (bindings_ == null) { - bindings_ = com.google.protobuf.MapField.newMapField( - BindingsDefaultEntryHolder.defaultEntry); - } - if (!bindings_.isMutable()) { - bindings_ = bindings_.copy(); - } - return bindings_; - } - - public int getBindingsCount() { - return internalGetBindings().getMap().size(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public boolean containsBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetBindings().getMap().containsKey(key); - } - /** - * Use {@link #getBindingsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getBindings() { - return getBindingsMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public java.util.Map getBindingsMap() { - return internalGetBindings().getMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrDefault( - java.lang.String key, - flyteidl.core.Literals.BindingData defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public flyteidl.core.Literals.BindingData getBindingsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetBindings().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearBindings() { - internalGetMutableBindings().getMutableMap() - .clear(); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder removeBindings( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableBindings() { - return internalGetMutableBindings().getMutableMap(); - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - public Builder putBindings( - java.lang.String key, - flyteidl.core.Literals.BindingData value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableBindings().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, .flyteidl.core.BindingData> bindings = 1; - */ - - public Builder putAllBindings( - java.util.Map values) { - internalGetMutableBindings().getMutableMap() - .putAll(values); - return this; - } - @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.core.BindingDataMap) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingDataMap) - private static final flyteidl.core.Literals.BindingDataMap DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingDataMap(); - } - - public static flyteidl.core.Literals.BindingDataMap getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingDataMap parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingDataMap(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.core.Literals.BindingDataMap getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnionInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.UnionInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - boolean hasTargetType(); - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - flyteidl.core.Types.LiteralType getTargetType(); - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.UnionInfo} - */ - public static final class UnionInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.UnionInfo) - UnionInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnionInfo.newBuilder() to construct. - private UnionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnionInfo() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnionInfo( - 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.Types.LiteralType.Builder subBuilder = null; - if (targetType_ != null) { - subBuilder = targetType_.toBuilder(); - } - targetType_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetType_); - targetType_ = 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.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.UnionInfo.class, flyteidl.core.Literals.UnionInfo.Builder.class); - } - - public static final int TARGETTYPE_FIELD_NUMBER = 1; - private flyteidl.core.Types.LiteralType targetType_; - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public boolean hasTargetType() { - return targetType_ != null; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public flyteidl.core.Types.LiteralType getTargetType() { - return targetType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder() { - return getTargetType(); - } - - 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 (targetType_ != null) { - output.writeMessage(1, getTargetType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTargetType()); - } - 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.core.Literals.UnionInfo)) { - return super.equals(obj); - } - flyteidl.core.Literals.UnionInfo other = (flyteidl.core.Literals.UnionInfo) obj; - - if (hasTargetType() != other.hasTargetType()) return false; - if (hasTargetType()) { - if (!getTargetType() - .equals(other.getTargetType())) 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 (hasTargetType()) { - hash = (37 * hash) + TARGETTYPE_FIELD_NUMBER; - hash = (53 * hash) + getTargetType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.UnionInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.UnionInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.UnionInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.UnionInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.UnionInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.UnionInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.UnionInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.UnionInfo 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.core.Literals.UnionInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.UnionInfo 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.core.Literals.UnionInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.UnionInfo 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.core.Literals.UnionInfo 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; - } - /** - * Protobuf type {@code flyteidl.core.UnionInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.UnionInfo) - flyteidl.core.Literals.UnionInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.UnionInfo.class, flyteidl.core.Literals.UnionInfo.Builder.class); - } - - // Construct using flyteidl.core.Literals.UnionInfo.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 (targetTypeBuilder_ == null) { - targetType_ = null; - } else { - targetType_ = null; - targetTypeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_UnionInfo_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.UnionInfo getDefaultInstanceForType() { - return flyteidl.core.Literals.UnionInfo.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.UnionInfo build() { - flyteidl.core.Literals.UnionInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.UnionInfo buildPartial() { - flyteidl.core.Literals.UnionInfo result = new flyteidl.core.Literals.UnionInfo(this); - if (targetTypeBuilder_ == null) { - result.targetType_ = targetType_; - } else { - result.targetType_ = targetTypeBuilder_.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.core.Literals.UnionInfo) { - return mergeFrom((flyteidl.core.Literals.UnionInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.UnionInfo other) { - if (other == flyteidl.core.Literals.UnionInfo.getDefaultInstance()) return this; - if (other.hasTargetType()) { - mergeTargetType(other.getTargetType()); - } - 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.core.Literals.UnionInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.UnionInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Types.LiteralType targetType_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> targetTypeBuilder_; - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public boolean hasTargetType() { - return targetTypeBuilder_ != null || targetType_ != null; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public flyteidl.core.Types.LiteralType getTargetType() { - if (targetTypeBuilder_ == null) { - return targetType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; - } else { - return targetTypeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public Builder setTargetType(flyteidl.core.Types.LiteralType value) { - if (targetTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetType_ = value; - onChanged(); - } else { - targetTypeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public Builder setTargetType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (targetTypeBuilder_ == null) { - targetType_ = builderForValue.build(); - onChanged(); - } else { - targetTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public Builder mergeTargetType(flyteidl.core.Types.LiteralType value) { - if (targetTypeBuilder_ == null) { - if (targetType_ != null) { - targetType_ = - flyteidl.core.Types.LiteralType.newBuilder(targetType_).mergeFrom(value).buildPartial(); - } else { - targetType_ = value; - } - onChanged(); - } else { - targetTypeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public Builder clearTargetType() { - if (targetTypeBuilder_ == null) { - targetType_ = null; - onChanged(); - } else { - targetType_ = null; - targetTypeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public flyteidl.core.Types.LiteralType.Builder getTargetTypeBuilder() { - - onChanged(); - return getTargetTypeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTargetTypeOrBuilder() { - if (targetTypeBuilder_ != null) { - return targetTypeBuilder_.getMessageOrBuilder(); - } else { - return targetType_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : targetType_; - } - } - /** - * .flyteidl.core.LiteralType targetType = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTargetTypeFieldBuilder() { - if (targetTypeBuilder_ == null) { - targetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getTargetType(), - getParentForChildren(), - isClean()); - targetType_ = null; - } - return targetTypeBuilder_; - } - @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.core.UnionInfo) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.UnionInfo) - private static final flyteidl.core.Literals.UnionInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.UnionInfo(); - } - - public static flyteidl.core.Literals.UnionInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnionInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnionInfo(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.core.Literals.UnionInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BindingData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - boolean hasScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.Scalar getScalar(); - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder(); - - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - boolean hasCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollection getCollection(); - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder(); - - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - boolean hasPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReference getPromise(); - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder(); - - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - boolean hasMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMap getMap(); - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder(); - - /** - * .flyteidl.core.UnionInfo union = 5; - */ - boolean hasUnion(); - /** - * .flyteidl.core.UnionInfo union = 5; - */ - flyteidl.core.Literals.UnionInfo getUnion(); - /** - * .flyteidl.core.UnionInfo union = 5; - */ - flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder(); - - public flyteidl.core.Literals.BindingData.ValueCase getValueCase(); - } - /** - *
-   * Specifies either a simple value or a reference to another output.
-   * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class BindingData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BindingData) - BindingDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use BindingData.newBuilder() to construct. - private BindingData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BindingData() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BindingData( - 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.Literals.Scalar.Builder subBuilder = null; - if (valueCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.Scalar) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.Scalar.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Scalar) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 1; - break; - } - case 18: { - flyteidl.core.Literals.BindingDataCollection.Builder subBuilder = null; - if (valueCase_ == 2) { - subBuilder = ((flyteidl.core.Literals.BindingDataCollection) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataCollection) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.OutputReference.Builder subBuilder = null; - if (valueCase_ == 3) { - subBuilder = ((flyteidl.core.Types.OutputReference) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Types.OutputReference.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.OutputReference) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 3; - break; - } - case 34: { - flyteidl.core.Literals.BindingDataMap.Builder subBuilder = null; - if (valueCase_ == 4) { - subBuilder = ((flyteidl.core.Literals.BindingDataMap) value_).toBuilder(); - } - value_ = - input.readMessage(flyteidl.core.Literals.BindingDataMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.BindingDataMap) value_); - value_ = subBuilder.buildPartial(); - } - valueCase_ = 4; - break; - } - case 42: { - flyteidl.core.Literals.UnionInfo.Builder subBuilder = null; - if (union_ != null) { - subBuilder = union_.toBuilder(); - } - union_ = input.readMessage(flyteidl.core.Literals.UnionInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(union_); - union_ = 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.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - SCALAR(1), - COLLECTION(2), - PROMISE(3), - MAP(4), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return SCALAR; - case 2: return COLLECTION; - case 3: return PROMISE; - case 4: return MAP; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int SCALAR_FIELD_NUMBER = 1; - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - /** - *
-     * A simple scalar value.
-     * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - - public static final int COLLECTION_FIELD_NUMBER = 2; - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - /** - *
-     * A collection of binding data. This allows nesting of binding data to any number
-     * of levels.
-     * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - - public static final int PROMISE_FIELD_NUMBER = 3; - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - /** - *
-     * References an output promised by another node.
-     * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - public static final int MAP_FIELD_NUMBER = 4; - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - /** - *
-     * A map of bindings. The key is always a string.
-     * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - - public static final int UNION_FIELD_NUMBER = 5; - private flyteidl.core.Literals.UnionInfo union_; - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public boolean hasUnion() { - return union_ != null; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public flyteidl.core.Literals.UnionInfo getUnion() { - return union_ == null ? flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder() { - return getUnion(); - } - - 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 (valueCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Literals.BindingDataMap) value_); - } - if (union_ != null) { - output.writeMessage(5, getUnion()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.Scalar) value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Literals.BindingDataCollection) value_); - } - if (valueCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.OutputReference) value_); - } - if (valueCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Literals.BindingDataMap) value_); - } - if (union_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUnion()); - } - 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.core.Literals.BindingData)) { - return super.equals(obj); - } - flyteidl.core.Literals.BindingData other = (flyteidl.core.Literals.BindingData) obj; - - if (hasUnion() != other.hasUnion()) return false; - if (hasUnion()) { - if (!getUnion() - .equals(other.getUnion())) return false; - } - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getScalar() - .equals(other.getScalar())) return false; - break; - case 2: - if (!getCollection() - .equals(other.getCollection())) return false; - break; - case 3: - if (!getPromise() - .equals(other.getPromise())) return false; - break; - case 4: - if (!getMap() - .equals(other.getMap())) 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(); - if (hasUnion()) { - hash = (37 * hash) + UNION_FIELD_NUMBER; - hash = (53 * hash) + getUnion().hashCode(); - } - switch (valueCase_) { - case 1: - hash = (37 * hash) + SCALAR_FIELD_NUMBER; - hash = (53 * hash) + getScalar().hashCode(); - break; - case 2: - hash = (37 * hash) + COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getCollection().hashCode(); - break; - case 3: - hash = (37 * hash) + PROMISE_FIELD_NUMBER; - hash = (53 * hash) + getPromise().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_FIELD_NUMBER; - hash = (53 * hash) + getMap().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.BindingData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.BindingData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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.core.Literals.BindingData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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.core.Literals.BindingData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.BindingData 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.core.Literals.BindingData 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; - } - /** - *
-     * Specifies either a simple value or a reference to another output.
-     * 
- * - * Protobuf type {@code flyteidl.core.BindingData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BindingData) - flyteidl.core.Literals.BindingDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.BindingData.class, flyteidl.core.Literals.BindingData.Builder.class); - } - - // Construct using flyteidl.core.Literals.BindingData.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 (unionBuilder_ == null) { - union_ = null; - } else { - union_ = null; - unionBuilder_ = null; - } - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_BindingData_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData getDefaultInstanceForType() { - return flyteidl.core.Literals.BindingData.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData build() { - flyteidl.core.Literals.BindingData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.BindingData buildPartial() { - flyteidl.core.Literals.BindingData result = new flyteidl.core.Literals.BindingData(this); - if (valueCase_ == 1) { - if (scalarBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = scalarBuilder_.build(); - } - } - if (valueCase_ == 2) { - if (collectionBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = collectionBuilder_.build(); - } - } - if (valueCase_ == 3) { - if (promiseBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = promiseBuilder_.build(); - } - } - if (valueCase_ == 4) { - if (mapBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = mapBuilder_.build(); - } - } - if (unionBuilder_ == null) { - result.union_ = union_; - } else { - result.union_ = unionBuilder_.build(); - } - result.valueCase_ = valueCase_; - 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.core.Literals.BindingData) { - return mergeFrom((flyteidl.core.Literals.BindingData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.BindingData other) { - if (other == flyteidl.core.Literals.BindingData.getDefaultInstance()) return this; - if (other.hasUnion()) { - mergeUnion(other.getUnion()); - } - switch (other.getValueCase()) { - case SCALAR: { - mergeScalar(other.getScalar()); - break; - } - case COLLECTION: { - mergeCollection(other.getCollection()); - break; - } - case PROMISE: { - mergePromise(other.getPromise()); - break; - } - case MAP: { - mergeMap(other.getMap()); - break; - } - case VALUE_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.core.Literals.BindingData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.BindingData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> scalarBuilder_; - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public boolean hasScalar() { - return valueCase_ == 1; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar getScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } else { - if (valueCase_ == 1) { - return scalarBuilder_.getMessage(); - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder setScalar( - flyteidl.core.Literals.Scalar.Builder builderForValue) { - if (scalarBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - scalarBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder mergeScalar(flyteidl.core.Literals.Scalar value) { - if (scalarBuilder_ == null) { - if (valueCase_ == 1 && - value_ != flyteidl.core.Literals.Scalar.getDefaultInstance()) { - value_ = flyteidl.core.Literals.Scalar.newBuilder((flyteidl.core.Literals.Scalar) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 1) { - scalarBuilder_.mergeFrom(value); - } - scalarBuilder_.setMessage(value); - } - valueCase_ = 1; - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public Builder clearScalar() { - if (scalarBuilder_ == null) { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - } - scalarBuilder_.clear(); - } - return this; - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.Scalar.Builder getScalarBuilder() { - return getScalarFieldBuilder().getBuilder(); - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - public flyteidl.core.Literals.ScalarOrBuilder getScalarOrBuilder() { - if ((valueCase_ == 1) && (scalarBuilder_ != null)) { - return scalarBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 1) { - return (flyteidl.core.Literals.Scalar) value_; - } - return flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - } - /** - *
-       * A simple scalar value.
-       * 
- * - * .flyteidl.core.Scalar scalar = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder> - getScalarFieldBuilder() { - if (scalarBuilder_ == null) { - if (!(valueCase_ == 1)) { - value_ = flyteidl.core.Literals.Scalar.getDefaultInstance(); - } - scalarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Scalar, flyteidl.core.Literals.Scalar.Builder, flyteidl.core.Literals.ScalarOrBuilder>( - (flyteidl.core.Literals.Scalar) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 1; - onChanged();; - return scalarBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> collectionBuilder_; - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public boolean hasCollection() { - return valueCase_ == 2; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection getCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } else { - if (valueCase_ == 2) { - return collectionBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder setCollection( - flyteidl.core.Literals.BindingDataCollection.Builder builderForValue) { - if (collectionBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - collectionBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder mergeCollection(flyteidl.core.Literals.BindingDataCollection value) { - if (collectionBuilder_ == null) { - if (valueCase_ == 2 && - value_ != flyteidl.core.Literals.BindingDataCollection.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataCollection.newBuilder((flyteidl.core.Literals.BindingDataCollection) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 2) { - collectionBuilder_.mergeFrom(value); - } - collectionBuilder_.setMessage(value); - } - valueCase_ = 2; - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public Builder clearCollection() { - if (collectionBuilder_ == null) { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - } - collectionBuilder_.clear(); - } - return this; - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollection.Builder getCollectionBuilder() { - return getCollectionFieldBuilder().getBuilder(); - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - public flyteidl.core.Literals.BindingDataCollectionOrBuilder getCollectionOrBuilder() { - if ((valueCase_ == 2) && (collectionBuilder_ != null)) { - return collectionBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 2) { - return (flyteidl.core.Literals.BindingDataCollection) value_; - } - return flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - } - /** - *
-       * A collection of binding data. This allows nesting of binding data to any number
-       * of levels.
-       * 
- * - * .flyteidl.core.BindingDataCollection collection = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder> - getCollectionFieldBuilder() { - if (collectionBuilder_ == null) { - if (!(valueCase_ == 2)) { - value_ = flyteidl.core.Literals.BindingDataCollection.getDefaultInstance(); - } - collectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataCollection, flyteidl.core.Literals.BindingDataCollection.Builder, flyteidl.core.Literals.BindingDataCollectionOrBuilder>( - (flyteidl.core.Literals.BindingDataCollection) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 2; - onChanged();; - return collectionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> promiseBuilder_; - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public boolean hasPromise() { - return valueCase_ == 3; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference getPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } else { - if (valueCase_ == 3) { - return promiseBuilder_.getMessage(); - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder setPromise( - flyteidl.core.Types.OutputReference.Builder builderForValue) { - if (promiseBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - promiseBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder mergePromise(flyteidl.core.Types.OutputReference value) { - if (promiseBuilder_ == null) { - if (valueCase_ == 3 && - value_ != flyteidl.core.Types.OutputReference.getDefaultInstance()) { - value_ = flyteidl.core.Types.OutputReference.newBuilder((flyteidl.core.Types.OutputReference) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 3) { - promiseBuilder_.mergeFrom(value); - } - promiseBuilder_.setMessage(value); - } - valueCase_ = 3; - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public Builder clearPromise() { - if (promiseBuilder_ == null) { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 3) { - valueCase_ = 0; - value_ = null; - } - promiseBuilder_.clear(); - } - return this; - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReference.Builder getPromiseBuilder() { - return getPromiseFieldBuilder().getBuilder(); - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - public flyteidl.core.Types.OutputReferenceOrBuilder getPromiseOrBuilder() { - if ((valueCase_ == 3) && (promiseBuilder_ != null)) { - return promiseBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 3) { - return (flyteidl.core.Types.OutputReference) value_; - } - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - } - /** - *
-       * References an output promised by another node.
-       * 
- * - * .flyteidl.core.OutputReference promise = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder> - getPromiseFieldBuilder() { - if (promiseBuilder_ == null) { - if (!(valueCase_ == 3)) { - value_ = flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - promiseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.OutputReference, flyteidl.core.Types.OutputReference.Builder, flyteidl.core.Types.OutputReferenceOrBuilder>( - (flyteidl.core.Types.OutputReference) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 3; - onChanged();; - return promiseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> mapBuilder_; - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public boolean hasMap() { - return valueCase_ == 4; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap getMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } else { - if (valueCase_ == 4) { - return mapBuilder_.getMessage(); - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - onChanged(); - } else { - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder setMap( - flyteidl.core.Literals.BindingDataMap.Builder builderForValue) { - if (mapBuilder_ == null) { - value_ = builderForValue.build(); - onChanged(); - } else { - mapBuilder_.setMessage(builderForValue.build()); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder mergeMap(flyteidl.core.Literals.BindingDataMap value) { - if (mapBuilder_ == null) { - if (valueCase_ == 4 && - value_ != flyteidl.core.Literals.BindingDataMap.getDefaultInstance()) { - value_ = flyteidl.core.Literals.BindingDataMap.newBuilder((flyteidl.core.Literals.BindingDataMap) value_) - .mergeFrom(value).buildPartial(); - } else { - value_ = value; - } - onChanged(); - } else { - if (valueCase_ == 4) { - mapBuilder_.mergeFrom(value); - } - mapBuilder_.setMessage(value); - } - valueCase_ = 4; - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public Builder clearMap() { - if (mapBuilder_ == null) { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - } else { - if (valueCase_ == 4) { - valueCase_ = 0; - value_ = null; - } - mapBuilder_.clear(); - } - return this; - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMap.Builder getMapBuilder() { - return getMapFieldBuilder().getBuilder(); - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - public flyteidl.core.Literals.BindingDataMapOrBuilder getMapOrBuilder() { - if ((valueCase_ == 4) && (mapBuilder_ != null)) { - return mapBuilder_.getMessageOrBuilder(); - } else { - if (valueCase_ == 4) { - return (flyteidl.core.Literals.BindingDataMap) value_; - } - return flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - } - /** - *
-       * A map of bindings. The key is always a string.
-       * 
- * - * .flyteidl.core.BindingDataMap map = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder> - getMapFieldBuilder() { - if (mapBuilder_ == null) { - if (!(valueCase_ == 4)) { - value_ = flyteidl.core.Literals.BindingDataMap.getDefaultInstance(); - } - mapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingDataMap, flyteidl.core.Literals.BindingDataMap.Builder, flyteidl.core.Literals.BindingDataMapOrBuilder>( - (flyteidl.core.Literals.BindingDataMap) value_, - getParentForChildren(), - isClean()); - value_ = null; - } - valueCase_ = 4; - onChanged();; - return mapBuilder_; - } - - private flyteidl.core.Literals.UnionInfo union_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder> unionBuilder_; - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public boolean hasUnion() { - return unionBuilder_ != null || union_ != null; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public flyteidl.core.Literals.UnionInfo getUnion() { - if (unionBuilder_ == null) { - return union_ == null ? flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; - } else { - return unionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public Builder setUnion(flyteidl.core.Literals.UnionInfo value) { - if (unionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - union_ = value; - onChanged(); - } else { - unionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public Builder setUnion( - flyteidl.core.Literals.UnionInfo.Builder builderForValue) { - if (unionBuilder_ == null) { - union_ = builderForValue.build(); - onChanged(); - } else { - unionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public Builder mergeUnion(flyteidl.core.Literals.UnionInfo value) { - if (unionBuilder_ == null) { - if (union_ != null) { - union_ = - flyteidl.core.Literals.UnionInfo.newBuilder(union_).mergeFrom(value).buildPartial(); - } else { - union_ = value; - } - onChanged(); - } else { - unionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public Builder clearUnion() { - if (unionBuilder_ == null) { - union_ = null; - onChanged(); - } else { - union_ = null; - unionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public flyteidl.core.Literals.UnionInfo.Builder getUnionBuilder() { - - onChanged(); - return getUnionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - public flyteidl.core.Literals.UnionInfoOrBuilder getUnionOrBuilder() { - if (unionBuilder_ != null) { - return unionBuilder_.getMessageOrBuilder(); - } else { - return union_ == null ? - flyteidl.core.Literals.UnionInfo.getDefaultInstance() : union_; - } - } - /** - * .flyteidl.core.UnionInfo union = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder> - getUnionFieldBuilder() { - if (unionBuilder_ == null) { - unionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.UnionInfo, flyteidl.core.Literals.UnionInfo.Builder, flyteidl.core.Literals.UnionInfoOrBuilder>( - getUnion(), - getParentForChildren(), - isClean()); - union_ = null; - } - return unionBuilder_; - } - @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.core.BindingData) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BindingData) - private static final flyteidl.core.Literals.BindingData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.BindingData(); - } - - public static flyteidl.core.Literals.BindingData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BindingData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BindingData(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.core.Literals.BindingData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BindingOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Binding) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - boolean hasBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingData getBinding(); - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder(); - } - /** - *
-   * An input/output binding of a variable to either static value or a node output.
-   * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Binding extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Binding) - BindingOrBuilder { - private static final long serialVersionUID = 0L; - // Use Binding.newBuilder() to construct. - private Binding(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Binding() { - var_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Binding( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = s; - break; - } - case 18: { - flyteidl.core.Literals.BindingData.Builder subBuilder = null; - if (binding_ != null) { - subBuilder = binding_.toBuilder(); - } - binding_ = input.readMessage(flyteidl.core.Literals.BindingData.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(binding_); - binding_ = 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.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must match an input/output variable of the node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BINDING_FIELD_NUMBER = 2; - private flyteidl.core.Literals.BindingData binding_; - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return binding_ != null; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - /** - *
-     * Data to use to bind this variable.
-     * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - return getBinding(); - } - - 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (binding_ != null) { - output.writeMessage(2, getBinding()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (binding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBinding()); - } - 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.core.Literals.Binding)) { - return super.equals(obj); - } - flyteidl.core.Literals.Binding other = (flyteidl.core.Literals.Binding) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (hasBinding() != other.hasBinding()) return false; - if (hasBinding()) { - if (!getBinding() - .equals(other.getBinding())) 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(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - if (hasBinding()) { - hash = (37 * hash) + BINDING_FIELD_NUMBER; - hash = (53 * hash) + getBinding().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.Binding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.Binding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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.core.Literals.Binding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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.core.Literals.Binding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.Binding 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.core.Literals.Binding 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; - } - /** - *
-     * An input/output binding of a variable to either static value or a node output.
-     * 
- * - * Protobuf type {@code flyteidl.core.Binding} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Binding) - flyteidl.core.Literals.BindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.Binding.class, flyteidl.core.Literals.Binding.Builder.class); - } - - // Construct using flyteidl.core.Literals.Binding.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(); - var_ = ""; - - if (bindingBuilder_ == null) { - binding_ = null; - } else { - binding_ = null; - bindingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_Binding_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding getDefaultInstanceForType() { - return flyteidl.core.Literals.Binding.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.Binding build() { - flyteidl.core.Literals.Binding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.Binding buildPartial() { - flyteidl.core.Literals.Binding result = new flyteidl.core.Literals.Binding(this); - result.var_ = var_; - if (bindingBuilder_ == null) { - result.binding_ = binding_; - } else { - result.binding_ = bindingBuilder_.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.core.Literals.Binding) { - return mergeFrom((flyteidl.core.Literals.Binding)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.Binding other) { - if (other == flyteidl.core.Literals.Binding.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (other.hasBinding()) { - mergeBinding(other.getBinding()); - } - 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.core.Literals.Binding parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.Binding) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must match an input/output variable of the node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Literals.BindingData binding_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> bindingBuilder_; - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public boolean hasBinding() { - return bindingBuilder_ != null || binding_ != null; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData getBinding() { - if (bindingBuilder_ == null) { - return binding_ == null ? flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } else { - return bindingBuilder_.getMessage(); - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - binding_ = value; - onChanged(); - } else { - bindingBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder setBinding( - flyteidl.core.Literals.BindingData.Builder builderForValue) { - if (bindingBuilder_ == null) { - binding_ = builderForValue.build(); - onChanged(); - } else { - bindingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder mergeBinding(flyteidl.core.Literals.BindingData value) { - if (bindingBuilder_ == null) { - if (binding_ != null) { - binding_ = - flyteidl.core.Literals.BindingData.newBuilder(binding_).mergeFrom(value).buildPartial(); - } else { - binding_ = value; - } - onChanged(); - } else { - bindingBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public Builder clearBinding() { - if (bindingBuilder_ == null) { - binding_ = null; - onChanged(); - } else { - binding_ = null; - bindingBuilder_ = null; - } - - return this; - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingData.Builder getBindingBuilder() { - - onChanged(); - return getBindingFieldBuilder().getBuilder(); - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - public flyteidl.core.Literals.BindingDataOrBuilder getBindingOrBuilder() { - if (bindingBuilder_ != null) { - return bindingBuilder_.getMessageOrBuilder(); - } else { - return binding_ == null ? - flyteidl.core.Literals.BindingData.getDefaultInstance() : binding_; - } - } - /** - *
-       * Data to use to bind this variable.
-       * 
- * - * .flyteidl.core.BindingData binding = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder> - getBindingFieldBuilder() { - if (bindingBuilder_ == null) { - bindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.BindingData, flyteidl.core.Literals.BindingData.Builder, flyteidl.core.Literals.BindingDataOrBuilder>( - getBinding(), - getParentForChildren(), - isClean()); - binding_ = null; - } - return bindingBuilder_; - } - @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.core.Binding) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Binding) - private static final flyteidl.core.Literals.Binding DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.Binding(); - } - - public static flyteidl.core.Literals.Binding getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Binding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Binding(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.core.Literals.Binding getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface KeyValuePairOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.KeyValuePair) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - java.lang.String getKey(); - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * A generic key value pair.
-   * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class KeyValuePair extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.KeyValuePair) - KeyValuePairOrBuilder { - private static final long serialVersionUID = 0L; - // Use KeyValuePair.newBuilder() to construct. - private KeyValuePair(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private KeyValuePair() { - key_ = ""; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private KeyValuePair( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - 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.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     *required.
-     * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     *+optional.
-     * 
- * - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - 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.core.Literals.KeyValuePair)) { - return super.equals(obj); - } - flyteidl.core.Literals.KeyValuePair other = (flyteidl.core.Literals.KeyValuePair) obj; - - if (!getKey() - .equals(other.getKey())) return false; - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.KeyValuePair parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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.core.Literals.KeyValuePair parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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.core.Literals.KeyValuePair parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.KeyValuePair 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.core.Literals.KeyValuePair 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; - } - /** - *
-     * A generic key value pair.
-     * 
- * - * Protobuf type {@code flyteidl.core.KeyValuePair} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.KeyValuePair) - flyteidl.core.Literals.KeyValuePairOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.KeyValuePair.class, flyteidl.core.Literals.KeyValuePair.Builder.class); - } - - // Construct using flyteidl.core.Literals.KeyValuePair.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(); - key_ = ""; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_KeyValuePair_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair getDefaultInstanceForType() { - return flyteidl.core.Literals.KeyValuePair.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair build() { - flyteidl.core.Literals.KeyValuePair result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.KeyValuePair buildPartial() { - flyteidl.core.Literals.KeyValuePair result = new flyteidl.core.Literals.KeyValuePair(this); - result.key_ = key_; - result.value_ = value_; - 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.core.Literals.KeyValuePair) { - return mergeFrom((flyteidl.core.Literals.KeyValuePair)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.KeyValuePair other) { - if (other == flyteidl.core.Literals.KeyValuePair.getDefaultInstance()) return this; - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - 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.core.Literals.KeyValuePair parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.KeyValuePair) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       *required.
-       * 
- * - * string key = 1; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-       *+optional.
-       * 
- * - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @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.core.KeyValuePair) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.KeyValuePair) - private static final flyteidl.core.Literals.KeyValuePair DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.KeyValuePair(); - } - - public static flyteidl.core.Literals.KeyValuePair getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public KeyValuePair parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new KeyValuePair(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.core.Literals.KeyValuePair getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RetryStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RetryStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - int getRetries(); - } - /** - *
-   * Retry strategy associated with an executable unit.
-   * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class RetryStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RetryStrategy) - RetryStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use RetryStrategy.newBuilder() to construct. - private RetryStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RetryStrategy() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RetryStrategy( - 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 40: { - - retries_ = input.readUInt32(); - 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.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private int retries_; - /** - *
-     * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-     * The number of retries must be less than or equals to 10.
-     * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - - 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 (retries_ != 0) { - output.writeUInt32(5, retries_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (retries_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(5, retries_); - } - 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.core.Literals.RetryStrategy)) { - return super.equals(obj); - } - flyteidl.core.Literals.RetryStrategy other = (flyteidl.core.Literals.RetryStrategy) obj; - - if (getRetries() - != other.getRetries()) 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(); - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Literals.RetryStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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.core.Literals.RetryStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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.core.Literals.RetryStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Literals.RetryStrategy 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.core.Literals.RetryStrategy 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; - } - /** - *
-     * Retry strategy associated with an executable unit.
-     * 
- * - * Protobuf type {@code flyteidl.core.RetryStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RetryStrategy) - flyteidl.core.Literals.RetryStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Literals.RetryStrategy.class, flyteidl.core.Literals.RetryStrategy.Builder.class); - } - - // Construct using flyteidl.core.Literals.RetryStrategy.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(); - retries_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Literals.internal_static_flyteidl_core_RetryStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy getDefaultInstanceForType() { - return flyteidl.core.Literals.RetryStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy build() { - flyteidl.core.Literals.RetryStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Literals.RetryStrategy buildPartial() { - flyteidl.core.Literals.RetryStrategy result = new flyteidl.core.Literals.RetryStrategy(this); - result.retries_ = retries_; - 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.core.Literals.RetryStrategy) { - return mergeFrom((flyteidl.core.Literals.RetryStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Literals.RetryStrategy other) { - if (other == flyteidl.core.Literals.RetryStrategy.getDefaultInstance()) return this; - if (other.getRetries() != 0) { - setRetries(other.getRetries()); - } - 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.core.Literals.RetryStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Literals.RetryStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int retries_ ; - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public int getRetries() { - return retries_; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder setRetries(int value) { - - retries_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of retries. Retries will be consumed when the job fails with a recoverable error.
-       * The number of retries must be less than or equals to 10.
-       * 
- * - * uint32 retries = 5; - */ - public Builder clearRetries() { - - retries_ = 0; - onChanged(); - return this; - } - @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.core.RetryStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RetryStrategy) - private static final flyteidl.core.Literals.RetryStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Literals.RetryStrategy(); - } - - public static flyteidl.core.Literals.RetryStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetryStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RetryStrategy(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.core.Literals.RetryStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Primitive_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Primitive_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Void_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Void_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Blob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Blob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binary_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binary_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Schema_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Schema_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Union_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Union_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_StructuredDatasetMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_StructuredDatasetMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_StructuredDataset_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_StructuredDataset_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Scalar_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Scalar_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Literal_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Literal_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Literal_MetadataEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Literal_MetadataEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralMap_LiteralsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingDataMap_BindingsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_UnionInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_UnionInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BindingData_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BindingData_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Binding_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Binding_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_KeyValuePair_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_KeyValuePair_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RetryStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RetryStrategy_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/core/literals.proto\022\rflyteidl" + - ".core\032\037google/protobuf/timestamp.proto\032\036" + - "google/protobuf/duration.proto\032\034google/p" + - "rotobuf/struct.proto\032\031flyteidl/core/type" + - "s.proto\"\310\001\n\tPrimitive\022\021\n\007integer\030\001 \001(\003H\000" + - "\022\025\n\013float_value\030\002 \001(\001H\000\022\026\n\014string_value\030" + - "\003 \001(\tH\000\022\021\n\007boolean\030\004 \001(\010H\000\022.\n\010datetime\030\005" + - " \001(\0132\032.google.protobuf.TimestampH\000\022-\n\010du" + - "ration\030\006 \001(\0132\031.google.protobuf.DurationH" + - "\000B\007\n\005value\"\006\n\004Void\"B\n\004Blob\022-\n\010metadata\030\001" + - " \001(\0132\033.flyteidl.core.BlobMetadata\022\013\n\003uri" + - "\030\003 \001(\t\"5\n\014BlobMetadata\022%\n\004type\030\001 \001(\0132\027.f" + - "lyteidl.core.BlobType\"$\n\006Binary\022\r\n\005value" + - "\030\001 \001(\014\022\013\n\003tag\030\002 \001(\t\">\n\006Schema\022\013\n\003uri\030\001 \001" + - "(\t\022\'\n\004type\030\003 \001(\0132\031.flyteidl.core.SchemaT" + - "ype\"X\n\005Union\022%\n\005value\030\001 \001(\0132\026.flyteidl.c" + - "ore.Literal\022(\n\004type\030\002 \001(\0132\032.flyteidl.cor" + - "e.LiteralType\"b\n\031StructuredDatasetMetada" + - "ta\022E\n\027structured_dataset_type\030\001 \001(\0132$.fl" + - "yteidl.core.StructuredDatasetType\"\\\n\021Str" + - "ucturedDataset\022\013\n\003uri\030\001 \001(\t\022:\n\010metadata\030" + - "\002 \001(\0132(.flyteidl.core.StructuredDatasetM" + - "etadata\"\233\003\n\006Scalar\022-\n\tprimitive\030\001 \001(\0132\030." + - "flyteidl.core.PrimitiveH\000\022#\n\004blob\030\002 \001(\0132" + - "\023.flyteidl.core.BlobH\000\022\'\n\006binary\030\003 \001(\0132\025" + - ".flyteidl.core.BinaryH\000\022\'\n\006schema\030\004 \001(\0132" + - "\025.flyteidl.core.SchemaH\000\022(\n\tnone_type\030\005 " + - "\001(\0132\023.flyteidl.core.VoidH\000\022%\n\005error\030\006 \001(" + - "\0132\024.flyteidl.core.ErrorH\000\022*\n\007generic\030\007 \001" + - "(\0132\027.google.protobuf.StructH\000\022>\n\022structu" + - "red_dataset\030\010 \001(\0132 .flyteidl.core.Struct" + - "uredDatasetH\000\022%\n\005union\030\t \001(\0132\024.flyteidl." + - "core.UnionH\000B\007\n\005value\"\224\002\n\007Literal\022\'\n\006sca" + - "lar\030\001 \001(\0132\025.flyteidl.core.ScalarH\000\0226\n\nco" + - "llection\030\002 \001(\0132 .flyteidl.core.LiteralCo" + - "llectionH\000\022(\n\003map\030\003 \001(\0132\031.flyteidl.core." + - "LiteralMapH\000\022\014\n\004hash\030\004 \001(\t\0226\n\010metadata\030\005" + - " \003(\0132$.flyteidl.core.Literal.MetadataEnt" + - "ry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + - "e\030\002 \001(\t:\0028\001B\007\n\005value\"=\n\021LiteralCollectio" + - "n\022(\n\010literals\030\001 \003(\0132\026.flyteidl.core.Lite" + - "ral\"\220\001\n\nLiteralMap\0229\n\010literals\030\001 \003(\0132\'.f" + - "lyteidl.core.LiteralMap.LiteralsEntry\032G\n" + - "\rLiteralsEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001" + - "(\0132\026.flyteidl.core.Literal:\0028\001\"E\n\025Bindin" + - "gDataCollection\022,\n\010bindings\030\001 \003(\0132\032.flyt" + - "eidl.core.BindingData\"\234\001\n\016BindingDataMap" + - "\022=\n\010bindings\030\001 \003(\0132+.flyteidl.core.Bindi" + - "ngDataMap.BindingsEntry\032K\n\rBindingsEntry" + - "\022\013\n\003key\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.flyteidl." + - "core.BindingData:\0028\001\";\n\tUnionInfo\022.\n\ntar" + - "getType\030\001 \001(\0132\032.flyteidl.core.LiteralTyp" + - "e\"\205\002\n\013BindingData\022\'\n\006scalar\030\001 \001(\0132\025.flyt" + - "eidl.core.ScalarH\000\022:\n\ncollection\030\002 \001(\0132$" + - ".flyteidl.core.BindingDataCollectionH\000\0221" + - "\n\007promise\030\003 \001(\0132\036.flyteidl.core.OutputRe" + - "ferenceH\000\022,\n\003map\030\004 \001(\0132\035.flyteidl.core.B" + - "indingDataMapH\000\022\'\n\005union\030\005 \001(\0132\030.flyteid" + - "l.core.UnionInfoB\007\n\005value\"C\n\007Binding\022\013\n\003" + - "var\030\001 \001(\t\022+\n\007binding\030\002 \001(\0132\032.flyteidl.co" + - "re.BindingData\"*\n\014KeyValuePair\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t\" \n\rRetryStrategy\022\017\n\007r" + - "etries\030\005 \001(\rB - * start_time defines the instance this span began. - * - * - * .google.protobuf.Timestamp start_time = 1; - */ - boolean hasStartTime(); - /** - *
-     * start_time defines the instance this span began.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - com.google.protobuf.Timestamp getStartTime(); - /** - *
-     * start_time defines the instance this span began.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); - - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - boolean hasEndTime(); - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.Timestamp getEndTime(); - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); - - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - boolean hasWorkflowId(); - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId(); - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - boolean hasNodeId(); - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId(); - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder(); - - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - boolean hasTaskId(); - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId(); - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder(); - - /** - *
-     * operation_id is the id of a unique operation that this Span represents.
-     * 
- * - * string operation_id = 6; - */ - java.lang.String getOperationId(); - /** - *
-     * operation_id is the id of a unique operation that this Span represents.
-     * 
- * - * string operation_id = 6; - */ - com.google.protobuf.ByteString - getOperationIdBytes(); - - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - java.util.List - getSpansList(); - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - flyteidl.core.Metrics.Span getSpans(int index); - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - int getSpansCount(); - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - java.util.List - getSpansOrBuilderList(); - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( - int index); - - public flyteidl.core.Metrics.Span.IdCase getIdCase(); - } - /** - *
-   * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation
-   * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more
-   * precise definitions.
-   * 
- * - * Protobuf type {@code flyteidl.core.Span} - */ - public static final class Span extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Span) - SpanOrBuilder { - private static final long serialVersionUID = 0L; - // Use Span.newBuilder() to construct. - private Span(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Span() { - spans_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Span( - 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: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (idCase_ == 3) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_).toBuilder(); - } - id_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 3; - break; - } - case 34: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (idCase_ == 4) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_).toBuilder(); - } - id_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 4; - break; - } - case 42: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (idCase_ == 5) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_).toBuilder(); - } - id_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); - id_ = subBuilder.buildPartial(); - } - idCase_ = 5; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - idCase_ = 6; - id_ = s; - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - spans_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - spans_.add( - input.readMessage(flyteidl.core.Metrics.Span.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000040) != 0)) { - spans_ = java.util.Collections.unmodifiableList(spans_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Metrics.Span.class, flyteidl.core.Metrics.Span.Builder.class); - } - - private int bitField0_; - private int idCase_ = 0; - private java.lang.Object id_; - public enum IdCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_ID(3), - NODE_ID(4), - TASK_ID(5), - OPERATION_ID(6), - ID_NOT_SET(0); - private final int value; - private IdCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static IdCase valueOf(int value) { - return forNumber(value); - } - - public static IdCase forNumber(int value) { - switch (value) { - case 3: return WORKFLOW_ID; - case 4: return NODE_ID; - case 5: return TASK_ID; - case 6: return OPERATION_ID; - case 0: return ID_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public static final int START_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp startTime_; - /** - *
-     * start_time defines the instance this span began.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public boolean hasStartTime() { - return startTime_ != null; - } - /** - *
-     * start_time defines the instance this span began.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp getStartTime() { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - /** - *
-     * start_time defines the instance this span began.
-     * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); - } - - public static final int END_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp endTime_; - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public boolean hasEndTime() { - return endTime_ != null; - } - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp getEndTime() { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - /** - *
-     * end_time defines the instance this span completed.
-     * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public boolean hasWorkflowId() { - return idCase_ == 3; - } - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId() { - if (idCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * workflow_id is the id of the workflow execution this Span represents.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder() { - if (idCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - - public static final int NODE_ID_FIELD_NUMBER = 4; - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public boolean hasNodeId() { - return idCase_ == 4; - } - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId() { - if (idCase_ == 4) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * node_id is the id of the node execution this Span represents.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder() { - if (idCase_ == 4) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - - public static final int TASK_ID_FIELD_NUMBER = 5; - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public boolean hasTaskId() { - return idCase_ == 5; - } - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId() { - if (idCase_ == 5) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * task_id is the id of the task execution this Span represents.
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder() { - if (idCase_ == 5) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - - public static final int OPERATION_ID_FIELD_NUMBER = 6; - /** - *
-     * operation_id is the id of a unique operation that this Span represents.
-     * 
- * - * string operation_id = 6; - */ - public java.lang.String getOperationId() { - java.lang.Object ref = ""; - if (idCase_ == 6) { - ref = id_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (idCase_ == 6) { - id_ = s; - } - return s; - } - } - /** - *
-     * operation_id is the id of a unique operation that this Span represents.
-     * 
- * - * string operation_id = 6; - */ - public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = ""; - if (idCase_ == 6) { - ref = id_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (idCase_ == 6) { - id_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPANS_FIELD_NUMBER = 7; - private java.util.List spans_; - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public java.util.List getSpansList() { - return spans_; - } - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public java.util.List - getSpansOrBuilderList() { - return spans_; - } - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public int getSpansCount() { - return spans_.size(); - } - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.Span getSpans(int index) { - return spans_.get(index); - } - /** - *
-     * spans defines a collection of Spans that breakdown this execution.
-     * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( - int index) { - return spans_.get(index); - } - - 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 (startTime_ != null) { - output.writeMessage(1, getStartTime()); - } - if (endTime_ != null) { - output.writeMessage(2, getEndTime()); - } - if (idCase_ == 3) { - output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - } - if (idCase_ == 4) { - output.writeMessage(4, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); - } - if (idCase_ == 5) { - output.writeMessage(5, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); - } - if (idCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, id_); - } - for (int i = 0; i < spans_.size(); i++) { - output.writeMessage(7, spans_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); - } - if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); - } - if (idCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_); - } - if (idCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_); - } - if (idCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_); - } - if (idCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, id_); - } - for (int i = 0; i < spans_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, spans_.get(i)); - } - 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.core.Metrics.Span)) { - return super.equals(obj); - } - flyteidl.core.Metrics.Span other = (flyteidl.core.Metrics.Span) obj; - - if (hasStartTime() != other.hasStartTime()) return false; - if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; - } - if (hasEndTime() != other.hasEndTime()) return false; - if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; - } - if (!getSpansList() - .equals(other.getSpansList())) return false; - if (!getIdCase().equals(other.getIdCase())) return false; - switch (idCase_) { - case 3: - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - break; - case 4: - if (!getNodeId() - .equals(other.getNodeId())) return false; - break; - case 5: - if (!getTaskId() - .equals(other.getTaskId())) return false; - break; - case 6: - if (!getOperationId() - .equals(other.getOperationId())) 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(); - if (hasStartTime()) { - hash = (37 * hash) + START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStartTime().hashCode(); - } - if (hasEndTime()) { - hash = (37 * hash) + END_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEndTime().hashCode(); - } - if (getSpansCount() > 0) { - hash = (37 * hash) + SPANS_FIELD_NUMBER; - hash = (53 * hash) + getSpansList().hashCode(); - } - switch (idCase_) { - case 3: - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - break; - case 4: - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - break; - case 5: - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - break; - case 6: - hash = (37 * hash) + OPERATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOperationId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Metrics.Span parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Metrics.Span parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Metrics.Span parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Metrics.Span parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Metrics.Span parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Metrics.Span parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Metrics.Span parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Metrics.Span 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.core.Metrics.Span parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Metrics.Span 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.core.Metrics.Span parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Metrics.Span 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.core.Metrics.Span 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; - } - /** - *
-     * Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation
-     * which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more
-     * precise definitions.
-     * 
- * - * Protobuf type {@code flyteidl.core.Span} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Span) - flyteidl.core.Metrics.SpanOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Metrics.Span.class, flyteidl.core.Metrics.Span.Builder.class); - } - - // Construct using flyteidl.core.Metrics.Span.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSpansFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - if (spansBuilder_ == null) { - spans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - spansBuilder_.clear(); - } - idCase_ = 0; - id_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Metrics.internal_static_flyteidl_core_Span_descriptor; - } - - @java.lang.Override - public flyteidl.core.Metrics.Span getDefaultInstanceForType() { - return flyteidl.core.Metrics.Span.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Metrics.Span build() { - flyteidl.core.Metrics.Span result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Metrics.Span buildPartial() { - flyteidl.core.Metrics.Span result = new flyteidl.core.Metrics.Span(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); - } - if (idCase_ == 3) { - if (workflowIdBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = workflowIdBuilder_.build(); - } - } - if (idCase_ == 4) { - if (nodeIdBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = nodeIdBuilder_.build(); - } - } - if (idCase_ == 5) { - if (taskIdBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = taskIdBuilder_.build(); - } - } - if (idCase_ == 6) { - result.id_ = id_; - } - if (spansBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - spans_ = java.util.Collections.unmodifiableList(spans_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.spans_ = spans_; - } else { - result.spans_ = spansBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.idCase_ = idCase_; - 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.core.Metrics.Span) { - return mergeFrom((flyteidl.core.Metrics.Span)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Metrics.Span other) { - if (other == flyteidl.core.Metrics.Span.getDefaultInstance()) return this; - if (other.hasStartTime()) { - mergeStartTime(other.getStartTime()); - } - if (other.hasEndTime()) { - mergeEndTime(other.getEndTime()); - } - if (spansBuilder_ == null) { - if (!other.spans_.isEmpty()) { - if (spans_.isEmpty()) { - spans_ = other.spans_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureSpansIsMutable(); - spans_.addAll(other.spans_); - } - onChanged(); - } - } else { - if (!other.spans_.isEmpty()) { - if (spansBuilder_.isEmpty()) { - spansBuilder_.dispose(); - spansBuilder_ = null; - spans_ = other.spans_; - bitField0_ = (bitField0_ & ~0x00000040); - spansBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSpansFieldBuilder() : null; - } else { - spansBuilder_.addAllMessages(other.spans_); - } - } - } - switch (other.getIdCase()) { - case WORKFLOW_ID: { - mergeWorkflowId(other.getWorkflowId()); - break; - } - case NODE_ID: { - mergeNodeId(other.getNodeId()); - break; - } - case TASK_ID: { - mergeTaskId(other.getTaskId()); - break; - } - case OPERATION_ID: { - idCase_ = 6; - id_ = other.id_; - onChanged(); - break; - } - case ID_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.core.Metrics.Span parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Metrics.Span) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int idCase_ = 0; - private java.lang.Object id_; - public IdCase - getIdCase() { - return IdCase.forNumber( - idCase_); - } - - public Builder clearId() { - idCase_ = 0; - id_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.Timestamp startTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp getStartTime() { - if (startTimeBuilder_ == null) { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } else { - return startTimeBuilder_.getMessage(); - } - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startTime_ = value; - onChanged(); - } else { - startTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (startTimeBuilder_ == null) { - startTime_ = builderForValue.build(); - onChanged(); - } else { - startTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder mergeStartTime(com.google.protobuf.Timestamp value) { - if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); - } else { - startTime_ = value; - } - onChanged(); - } else { - startTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; - startTimeBuilder_ = null; - } - - return this; - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - - onChanged(); - return getStartTimeFieldBuilder().getBuilder(); - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - if (startTimeBuilder_ != null) { - return startTimeBuilder_.getMessageOrBuilder(); - } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; - } - } - /** - *
-       * start_time defines the instance this span began.
-       * 
- * - * .google.protobuf.Timestamp start_time = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getStartTimeFieldBuilder() { - if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); - startTime_ = null; - } - return startTimeBuilder_; - } - - private com.google.protobuf.Timestamp endTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp getEndTime() { - if (endTimeBuilder_ == null) { - return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } else { - return endTimeBuilder_.getMessage(); - } - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - endTime_ = value; - onChanged(); - } else { - endTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder setEndTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (endTimeBuilder_ == null) { - endTime_ = builderForValue.build(); - onChanged(); - } else { - endTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder mergeEndTime(com.google.protobuf.Timestamp value) { - if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); - } else { - endTime_ = value; - } - onChanged(); - } else { - endTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; - endTimeBuilder_ = null; - } - - return this; - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - - onChanged(); - return getEndTimeFieldBuilder().getBuilder(); - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - if (endTimeBuilder_ != null) { - return endTimeBuilder_.getMessageOrBuilder(); - } else { - return endTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; - } - } - /** - *
-       * end_time defines the instance this span completed.
-       * 
- * - * .google.protobuf.Timestamp end_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEndTimeFieldBuilder() { - if (endTimeBuilder_ == null) { - endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEndTime(), - getParentForChildren(), - isClean()); - endTime_ = null; - } - return endTimeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> workflowIdBuilder_; - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public boolean hasWorkflowId() { - return idCase_ == 3; - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - if (idCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } else { - if (idCase_ == 3) { - return workflowIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - idCase_ = 3; - return this; - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 3; - return this; - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (workflowIdBuilder_ == null) { - if (idCase_ == 3 && - id_ != flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance()) { - id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 3) { - workflowIdBuilder_.mergeFrom(value); - } - workflowIdBuilder_.setMessage(value); - } - idCase_ = 3; - return this; - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - if (idCase_ == 3) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 3) { - idCase_ = 0; - id_ = null; - } - workflowIdBuilder_.clear(); - } - return this; - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWorkflowIdBuilder() { - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWorkflowIdOrBuilder() { - if ((idCase_ == 3) && (workflowIdBuilder_ != null)) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * workflow_id is the id of the workflow execution this Span represents.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier workflow_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - if (!(idCase_ == 3)) { - id_ = flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance(); - } - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 3; - onChanged();; - return workflowIdBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeIdBuilder_; - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public boolean hasNodeId() { - return idCase_ == 4; - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeId() { - if (nodeIdBuilder_ == null) { - if (idCase_ == 4) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } else { - if (idCase_ == 4) { - return nodeIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public Builder setNodeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - nodeIdBuilder_.setMessage(value); - } - idCase_ = 4; - return this; - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public Builder setNodeId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeIdBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - nodeIdBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 4; - return this; - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public Builder mergeNodeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeIdBuilder_ == null) { - if (idCase_ == 4 && - id_ != flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) { - id_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 4) { - nodeIdBuilder_.mergeFrom(value); - } - nodeIdBuilder_.setMessage(value); - } - idCase_ = 4; - return this; - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public Builder clearNodeId() { - if (nodeIdBuilder_ == null) { - if (idCase_ == 4) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 4) { - idCase_ = 0; - id_ = null; - } - nodeIdBuilder_.clear(); - } - return this; - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeIdBuilder() { - return getNodeIdFieldBuilder().getBuilder(); - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeIdOrBuilder() { - if ((idCase_ == 4) && (nodeIdBuilder_ != null)) { - return nodeIdBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 4) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * node_id is the id of the node execution this Span represents.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_id = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeIdFieldBuilder() { - if (nodeIdBuilder_ == null) { - if (!(idCase_ == 4)) { - id_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - nodeIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 4; - onChanged();; - return nodeIdBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskIdBuilder_; - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public boolean hasTaskId() { - return idCase_ == 5; - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskId() { - if (taskIdBuilder_ == null) { - if (idCase_ == 5) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } else { - if (idCase_ == 5) { - return taskIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - idCase_ = 5; - return this; - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - idCase_ = 5; - return this; - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskIdBuilder_ == null) { - if (idCase_ == 5 && - id_ != flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance()) { - id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_) - .mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - if (idCase_ == 5) { - taskIdBuilder_.mergeFrom(value); - } - taskIdBuilder_.setMessage(value); - } - idCase_ = 5; - return this; - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - if (idCase_ == 5) { - idCase_ = 0; - id_ = null; - onChanged(); - } - } else { - if (idCase_ == 5) { - idCase_ = 0; - id_ = null; - } - taskIdBuilder_.clear(); - } - return this; - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskIdBuilder() { - return getTaskIdFieldBuilder().getBuilder(); - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskIdOrBuilder() { - if ((idCase_ == 5) && (taskIdBuilder_ != null)) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - if (idCase_ == 5) { - return (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_; - } - return flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * task_id is the id of the task execution this Span represents.
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_id = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - if (!(idCase_ == 5)) { - id_ = flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance(); - } - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier) id_, - getParentForChildren(), - isClean()); - id_ = null; - } - idCase_ = 5; - onChanged();; - return taskIdBuilder_; - } - - /** - *
-       * operation_id is the id of a unique operation that this Span represents.
-       * 
- * - * string operation_id = 6; - */ - public java.lang.String getOperationId() { - java.lang.Object ref = ""; - if (idCase_ == 6) { - ref = id_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (idCase_ == 6) { - id_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * operation_id is the id of a unique operation that this Span represents.
-       * 
- * - * string operation_id = 6; - */ - public com.google.protobuf.ByteString - getOperationIdBytes() { - java.lang.Object ref = ""; - if (idCase_ == 6) { - ref = id_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (idCase_ == 6) { - id_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * operation_id is the id of a unique operation that this Span represents.
-       * 
- * - * string operation_id = 6; - */ - public Builder setOperationId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - idCase_ = 6; - id_ = value; - onChanged(); - return this; - } - /** - *
-       * operation_id is the id of a unique operation that this Span represents.
-       * 
- * - * string operation_id = 6; - */ - public Builder clearOperationId() { - if (idCase_ == 6) { - idCase_ = 0; - id_ = null; - onChanged(); - } - return this; - } - /** - *
-       * operation_id is the id of a unique operation that this Span represents.
-       * 
- * - * string operation_id = 6; - */ - public Builder setOperationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - idCase_ = 6; - id_ = value; - onChanged(); - return this; - } - - private java.util.List spans_ = - java.util.Collections.emptyList(); - private void ensureSpansIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - spans_ = new java.util.ArrayList(spans_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> spansBuilder_; - - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public java.util.List getSpansList() { - if (spansBuilder_ == null) { - return java.util.Collections.unmodifiableList(spans_); - } else { - return spansBuilder_.getMessageList(); - } - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public int getSpansCount() { - if (spansBuilder_ == null) { - return spans_.size(); - } else { - return spansBuilder_.getCount(); - } - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.Span getSpans(int index) { - if (spansBuilder_ == null) { - return spans_.get(index); - } else { - return spansBuilder_.getMessage(index); - } - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder setSpans( - int index, flyteidl.core.Metrics.Span value) { - if (spansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSpansIsMutable(); - spans_.set(index, value); - onChanged(); - } else { - spansBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder setSpans( - int index, flyteidl.core.Metrics.Span.Builder builderForValue) { - if (spansBuilder_ == null) { - ensureSpansIsMutable(); - spans_.set(index, builderForValue.build()); - onChanged(); - } else { - spansBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder addSpans(flyteidl.core.Metrics.Span value) { - if (spansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSpansIsMutable(); - spans_.add(value); - onChanged(); - } else { - spansBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder addSpans( - int index, flyteidl.core.Metrics.Span value) { - if (spansBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSpansIsMutable(); - spans_.add(index, value); - onChanged(); - } else { - spansBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder addSpans( - flyteidl.core.Metrics.Span.Builder builderForValue) { - if (spansBuilder_ == null) { - ensureSpansIsMutable(); - spans_.add(builderForValue.build()); - onChanged(); - } else { - spansBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder addSpans( - int index, flyteidl.core.Metrics.Span.Builder builderForValue) { - if (spansBuilder_ == null) { - ensureSpansIsMutable(); - spans_.add(index, builderForValue.build()); - onChanged(); - } else { - spansBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder addAllSpans( - java.lang.Iterable values) { - if (spansBuilder_ == null) { - ensureSpansIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, spans_); - onChanged(); - } else { - spansBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder clearSpans() { - if (spansBuilder_ == null) { - spans_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - spansBuilder_.clear(); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public Builder removeSpans(int index) { - if (spansBuilder_ == null) { - ensureSpansIsMutable(); - spans_.remove(index); - onChanged(); - } else { - spansBuilder_.remove(index); - } - return this; - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.Span.Builder getSpansBuilder( - int index) { - return getSpansFieldBuilder().getBuilder(index); - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.SpanOrBuilder getSpansOrBuilder( - int index) { - if (spansBuilder_ == null) { - return spans_.get(index); } else { - return spansBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public java.util.List - getSpansOrBuilderList() { - if (spansBuilder_ != null) { - return spansBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(spans_); - } - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.Span.Builder addSpansBuilder() { - return getSpansFieldBuilder().addBuilder( - flyteidl.core.Metrics.Span.getDefaultInstance()); - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public flyteidl.core.Metrics.Span.Builder addSpansBuilder( - int index) { - return getSpansFieldBuilder().addBuilder( - index, flyteidl.core.Metrics.Span.getDefaultInstance()); - } - /** - *
-       * spans defines a collection of Spans that breakdown this execution.
-       * 
- * - * repeated .flyteidl.core.Span spans = 7; - */ - public java.util.List - getSpansBuilderList() { - return getSpansFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder> - getSpansFieldBuilder() { - if (spansBuilder_ == null) { - spansBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Metrics.Span, flyteidl.core.Metrics.Span.Builder, flyteidl.core.Metrics.SpanOrBuilder>( - spans_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - spans_ = null; - } - return spansBuilder_; - } - @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.core.Span) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Span) - private static final flyteidl.core.Metrics.Span DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Metrics.Span(); - } - - public static flyteidl.core.Metrics.Span getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Span parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Span(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.core.Metrics.Span getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Span_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Span_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/core/metrics.proto\022\rflyteidl." + - "core\032\036flyteidl/core/identifier.proto\032\037go" + - "ogle/protobuf/timestamp.proto\"\337\002\n\004Span\022." + - "\n\nstart_time\030\001 \001(\0132\032.google.protobuf.Tim" + - "estamp\022,\n\010end_time\030\002 \001(\0132\032.google.protob" + - "uf.Timestamp\022A\n\013workflow_id\030\003 \001(\0132*.flyt" + - "eidl.core.WorkflowExecutionIdentifierH\000\022" + - "9\n\007node_id\030\004 \001(\0132&.flyteidl.core.NodeExe" + - "cutionIdentifierH\000\0229\n\007task_id\030\005 \001(\0132&.fl" + - "yteidl.core.TaskExecutionIdentifierH\000\022\026\n" + - "\014operation_id\030\006 \001(\tH\000\022\"\n\005spans\030\007 \003(\0132\023.f" + - "lyteidl.core.SpanB\004\n\002idB - * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - * For AWS Secret Manager, this should be the name of the secret. - * +required - * - * - * string group = 1; - */ - java.lang.String getGroup(); - /** - *
-     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-     * For AWS Secret Manager, this should be the name of the secret.
-     * +required
-     * 
- * - * string group = 1; - */ - com.google.protobuf.ByteString - getGroupBytes(); - - /** - *
-     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-     * that do not support it.
-     * +optional
-     * 
- * - * string group_version = 2; - */ - java.lang.String getGroupVersion(); - /** - *
-     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-     * that do not support it.
-     * +optional
-     * 
- * - * string group_version = 2; - */ - com.google.protobuf.ByteString - getGroupVersionBytes(); - - /** - *
-     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-     * +optional
-     * 
- * - * string key = 3; - */ - java.lang.String getKey(); - /** - *
-     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-     * +optional
-     * 
- * - * string key = 3; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-     * will depend on the key management system.
-     * +optional
-     * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - int getMountRequirementValue(); - /** - *
-     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-     * will depend on the key management system.
-     * +optional
-     * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - flyteidl.core.Security.Secret.MountType getMountRequirement(); - } - /** - *
-   * Secret encapsulates information about the secret a task needs to proceed. An environment variable
-   * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
-   * secrets are passed through environment variables.
-   * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets
-   * are passed through file mounts.
-   * 
- * - * Protobuf type {@code flyteidl.core.Secret} - */ - public static final class Secret extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Secret) - SecretOrBuilder { - private static final long serialVersionUID = 0L; - // Use Secret.newBuilder() to construct. - private Secret(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Secret() { - group_ = ""; - groupVersion_ = ""; - key_ = ""; - mountRequirement_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Secret( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - group_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - groupVersion_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - key_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - mountRequirement_ = rawValue; - 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.core.Security.internal_static_flyteidl_core_Secret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_Secret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.Secret.class, flyteidl.core.Security.Secret.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.Secret.MountType} - */ - public enum MountType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default case, indicates the client can tolerate either mounting options.
-       * 
- * - * ANY = 0; - */ - ANY(0), - /** - *
-       * ENV_VAR indicates the secret needs to be mounted as an environment variable.
-       * 
- * - * ENV_VAR = 1; - */ - ENV_VAR(1), - /** - *
-       * FILE indicates the secret needs to be mounted as a file.
-       * 
- * - * FILE = 2; - */ - FILE(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default case, indicates the client can tolerate either mounting options.
-       * 
- * - * ANY = 0; - */ - public static final int ANY_VALUE = 0; - /** - *
-       * ENV_VAR indicates the secret needs to be mounted as an environment variable.
-       * 
- * - * ENV_VAR = 1; - */ - public static final int ENV_VAR_VALUE = 1; - /** - *
-       * FILE indicates the secret needs to be mounted as a file.
-       * 
- * - * FILE = 2; - */ - public static final int FILE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MountType valueOf(int value) { - return forNumber(value); - } - - public static MountType forNumber(int value) { - switch (value) { - case 0: return ANY; - case 1: return ENV_VAR; - case 2: return FILE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MountType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MountType findValueByNumber(int number) { - return MountType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Security.Secret.getDescriptor().getEnumTypes().get(0); - } - - private static final MountType[] VALUES = values(); - - public static MountType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MountType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Secret.MountType) - } - - public static final int GROUP_FIELD_NUMBER = 1; - private volatile java.lang.Object group_; - /** - *
-     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-     * For AWS Secret Manager, this should be the name of the secret.
-     * +required
-     * 
- * - * string group = 1; - */ - public java.lang.String getGroup() { - java.lang.Object ref = group_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - group_ = s; - return s; - } - } - /** - *
-     * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-     * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-     * For AWS Secret Manager, this should be the name of the secret.
-     * +required
-     * 
- * - * string group = 1; - */ - public com.google.protobuf.ByteString - getGroupBytes() { - java.lang.Object ref = group_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - group_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GROUP_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object groupVersion_; - /** - *
-     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-     * that do not support it.
-     * +optional
-     * 
- * - * string group_version = 2; - */ - public java.lang.String getGroupVersion() { - java.lang.Object ref = groupVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupVersion_ = s; - return s; - } - } - /** - *
-     * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-     * that do not support it.
-     * +optional
-     * 
- * - * string group_version = 2; - */ - public com.google.protobuf.ByteString - getGroupVersionBytes() { - java.lang.Object ref = groupVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_FIELD_NUMBER = 3; - private volatile java.lang.Object key_; - /** - *
-     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-     * +optional
-     * 
- * - * string key = 3; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } - } - /** - *
-     * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-     * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-     * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-     * +optional
-     * 
- * - * string key = 3; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MOUNT_REQUIREMENT_FIELD_NUMBER = 4; - private int mountRequirement_; - /** - *
-     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-     * will depend on the key management system.
-     * +optional
-     * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public int getMountRequirementValue() { - return mountRequirement_; - } - /** - *
-     * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-     * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-     * will depend on the key management system.
-     * +optional
-     * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public flyteidl.core.Security.Secret.MountType getMountRequirement() { - @SuppressWarnings("deprecation") - flyteidl.core.Security.Secret.MountType result = flyteidl.core.Security.Secret.MountType.valueOf(mountRequirement_); - return result == null ? flyteidl.core.Security.Secret.MountType.UNRECOGNIZED : result; - } - - 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 (!getGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, group_); - } - if (!getGroupVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, groupVersion_); - } - if (!getKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, key_); - } - if (mountRequirement_ != flyteidl.core.Security.Secret.MountType.ANY.getNumber()) { - output.writeEnum(4, mountRequirement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, group_); - } - if (!getGroupVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, groupVersion_); - } - if (!getKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, key_); - } - if (mountRequirement_ != flyteidl.core.Security.Secret.MountType.ANY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, mountRequirement_); - } - 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.core.Security.Secret)) { - return super.equals(obj); - } - flyteidl.core.Security.Secret other = (flyteidl.core.Security.Secret) obj; - - if (!getGroup() - .equals(other.getGroup())) return false; - if (!getGroupVersion() - .equals(other.getGroupVersion())) return false; - if (!getKey() - .equals(other.getKey())) return false; - if (mountRequirement_ != other.mountRequirement_) 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(); - hash = (37 * hash) + GROUP_FIELD_NUMBER; - hash = (53 * hash) + getGroup().hashCode(); - hash = (37 * hash) + GROUP_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getGroupVersion().hashCode(); - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - hash = (37 * hash) + MOUNT_REQUIREMENT_FIELD_NUMBER; - hash = (53 * hash) + mountRequirement_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Security.Secret parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Secret parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Secret parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Secret parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Secret parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Secret parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Secret parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Secret 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.core.Security.Secret parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Secret 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.core.Security.Secret parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Secret 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.core.Security.Secret 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; - } - /** - *
-     * Secret encapsulates information about the secret a task needs to proceed. An environment variable
-     * FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
-     * secrets are passed through environment variables.
-     * FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets
-     * are passed through file mounts.
-     * 
- * - * Protobuf type {@code flyteidl.core.Secret} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Secret) - flyteidl.core.Security.SecretOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_Secret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_Secret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.Secret.class, flyteidl.core.Security.Secret.Builder.class); - } - - // Construct using flyteidl.core.Security.Secret.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(); - group_ = ""; - - groupVersion_ = ""; - - key_ = ""; - - mountRequirement_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Security.internal_static_flyteidl_core_Secret_descriptor; - } - - @java.lang.Override - public flyteidl.core.Security.Secret getDefaultInstanceForType() { - return flyteidl.core.Security.Secret.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Security.Secret build() { - flyteidl.core.Security.Secret result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Security.Secret buildPartial() { - flyteidl.core.Security.Secret result = new flyteidl.core.Security.Secret(this); - result.group_ = group_; - result.groupVersion_ = groupVersion_; - result.key_ = key_; - result.mountRequirement_ = mountRequirement_; - 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.core.Security.Secret) { - return mergeFrom((flyteidl.core.Security.Secret)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Security.Secret other) { - if (other == flyteidl.core.Security.Secret.getDefaultInstance()) return this; - if (!other.getGroup().isEmpty()) { - group_ = other.group_; - onChanged(); - } - if (!other.getGroupVersion().isEmpty()) { - groupVersion_ = other.groupVersion_; - onChanged(); - } - if (!other.getKey().isEmpty()) { - key_ = other.key_; - onChanged(); - } - if (other.mountRequirement_ != 0) { - setMountRequirementValue(other.getMountRequirementValue()); - } - 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.core.Security.Secret parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Security.Secret) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object group_ = ""; - /** - *
-       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-       * For AWS Secret Manager, this should be the name of the secret.
-       * +required
-       * 
- * - * string group = 1; - */ - public java.lang.String getGroup() { - java.lang.Object ref = group_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - group_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-       * For AWS Secret Manager, this should be the name of the secret.
-       * +required
-       * 
- * - * string group = 1; - */ - public com.google.protobuf.ByteString - getGroupBytes() { - java.lang.Object ref = group_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - group_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-       * For AWS Secret Manager, this should be the name of the secret.
-       * +required
-       * 
- * - * string group = 1; - */ - public Builder setGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - group_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-       * For AWS Secret Manager, this should be the name of the secret.
-       * +required
-       * 
- * - * string group = 1; - */ - public Builder clearGroup() { - - group_ = getDefaultInstance().getGroup(); - onChanged(); - return this; - } - /** - *
-       * The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of
-       * the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name.
-       * For AWS Secret Manager, this should be the name of the secret.
-       * +required
-       * 
- * - * string group = 1; - */ - public Builder setGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - group_ = value; - onChanged(); - return this; - } - - private java.lang.Object groupVersion_ = ""; - /** - *
-       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-       * that do not support it.
-       * +optional
-       * 
- * - * string group_version = 2; - */ - public java.lang.String getGroupVersion() { - java.lang.Object ref = groupVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-       * that do not support it.
-       * +optional
-       * 
- * - * string group_version = 2; - */ - public com.google.protobuf.ByteString - getGroupVersionBytes() { - java.lang.Object ref = groupVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-       * that do not support it.
-       * +optional
-       * 
- * - * string group_version = 2; - */ - public Builder setGroupVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - groupVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-       * that do not support it.
-       * +optional
-       * 
- * - * string group_version = 2; - */ - public Builder clearGroupVersion() { - - groupVersion_ = getDefaultInstance().getGroupVersion(); - onChanged(); - return this; - } - /** - *
-       * The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones
-       * that do not support it.
-       * +optional
-       * 
- * - * string group_version = 2; - */ - public Builder setGroupVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - groupVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object key_ = ""; - /** - *
-       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-       * +optional
-       * 
- * - * string key = 3; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - key_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-       * +optional
-       * 
- * - * string key = 3; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-       * +optional
-       * 
- * - * string key = 3; - */ - public Builder setKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - key_ = value; - onChanged(); - return this; - } - /** - *
-       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-       * +optional
-       * 
- * - * string key = 3; - */ - public Builder clearKey() { - - key_ = getDefaultInstance().getKey(); - onChanged(); - return this; - } - /** - *
-       * The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation
-       * of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should
-       * match one of the keys inside the secret. For AWS Secret Manager, it's ignored.
-       * +optional
-       * 
- * - * string key = 3; - */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - key_ = value; - onChanged(); - return this; - } - - private int mountRequirement_ = 0; - /** - *
-       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-       * will depend on the key management system.
-       * +optional
-       * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public int getMountRequirementValue() { - return mountRequirement_; - } - /** - *
-       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-       * will depend on the key management system.
-       * +optional
-       * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public Builder setMountRequirementValue(int value) { - mountRequirement_ = value; - onChanged(); - return this; - } - /** - *
-       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-       * will depend on the key management system.
-       * +optional
-       * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public flyteidl.core.Security.Secret.MountType getMountRequirement() { - @SuppressWarnings("deprecation") - flyteidl.core.Security.Secret.MountType result = flyteidl.core.Security.Secret.MountType.valueOf(mountRequirement_); - return result == null ? flyteidl.core.Security.Secret.MountType.UNRECOGNIZED : result; - } - /** - *
-       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-       * will depend on the key management system.
-       * +optional
-       * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public Builder setMountRequirement(flyteidl.core.Security.Secret.MountType value) { - if (value == null) { - throw new NullPointerException(); - } - - mountRequirement_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail
-       * if the underlying key management system cannot satisfy that requirement. If not provided, the default location
-       * will depend on the key management system.
-       * +optional
-       * 
- * - * .flyteidl.core.Secret.MountType mount_requirement = 4; - */ - public Builder clearMountRequirement() { - - mountRequirement_ = 0; - onChanged(); - return this; - } - @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.core.Secret) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Secret) - private static final flyteidl.core.Security.Secret DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Security.Secret(); - } - - public static flyteidl.core.Security.Secret getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Secret parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Secret(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.core.Security.Secret getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OAuth2ClientOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.OAuth2Client) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-     * secret requested matches the client_id indicated here.
-     * +required
-     * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-     * secret requested matches the client_id indicated here.
-     * +required
-     * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - boolean hasClientSecret(); - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - flyteidl.core.Security.Secret getClientSecret(); - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder(); - } - /** - *
-   * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
-   * 
- * - * Protobuf type {@code flyteidl.core.OAuth2Client} - */ - public static final class OAuth2Client extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.OAuth2Client) - OAuth2ClientOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuth2Client.newBuilder() to construct. - private OAuth2Client(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OAuth2Client() { - clientId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OAuth2Client( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - flyteidl.core.Security.Secret.Builder subBuilder = null; - if (clientSecret_ != null) { - subBuilder = clientSecret_.toBuilder(); - } - clientSecret_ = input.readMessage(flyteidl.core.Security.Secret.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(clientSecret_); - clientSecret_ = 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.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.OAuth2Client.class, flyteidl.core.Security.OAuth2Client.Builder.class); - } - - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-     * secret requested matches the client_id indicated here.
-     * +required
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-     * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-     * secret requested matches the client_id indicated here.
-     * +required
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CLIENT_SECRET_FIELD_NUMBER = 2; - private flyteidl.core.Security.Secret clientSecret_; - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public boolean hasClientSecret() { - return clientSecret_ != null; - } - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public flyteidl.core.Security.Secret getClientSecret() { - return clientSecret_ == null ? flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; - } - /** - *
-     * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-     * +required
-     * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder() { - return getClientSecret(); - } - - 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 (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (clientSecret_ != null) { - output.writeMessage(2, getClientSecret()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (clientSecret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getClientSecret()); - } - 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.core.Security.OAuth2Client)) { - return super.equals(obj); - } - flyteidl.core.Security.OAuth2Client other = (flyteidl.core.Security.OAuth2Client) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (hasClientSecret() != other.hasClientSecret()) return false; - if (hasClientSecret()) { - if (!getClientSecret() - .equals(other.getClientSecret())) 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(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - if (hasClientSecret()) { - hash = (37 * hash) + CLIENT_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getClientSecret().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Security.OAuth2Client parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2Client parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2Client parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2Client parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2Client parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2Client parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2Client parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2Client 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.core.Security.OAuth2Client parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2Client 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.core.Security.OAuth2Client parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2Client 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.core.Security.OAuth2Client 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; - } - /** - *
-     * OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task.
-     * 
- * - * Protobuf type {@code flyteidl.core.OAuth2Client} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.OAuth2Client) - flyteidl.core.Security.OAuth2ClientOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.OAuth2Client.class, flyteidl.core.Security.OAuth2Client.Builder.class); - } - - // Construct using flyteidl.core.Security.OAuth2Client.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(); - clientId_ = ""; - - if (clientSecretBuilder_ == null) { - clientSecret_ = null; - } else { - clientSecret_ = null; - clientSecretBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2Client_descriptor; - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2Client getDefaultInstanceForType() { - return flyteidl.core.Security.OAuth2Client.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2Client build() { - flyteidl.core.Security.OAuth2Client result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2Client buildPartial() { - flyteidl.core.Security.OAuth2Client result = new flyteidl.core.Security.OAuth2Client(this); - result.clientId_ = clientId_; - if (clientSecretBuilder_ == null) { - result.clientSecret_ = clientSecret_; - } else { - result.clientSecret_ = clientSecretBuilder_.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.core.Security.OAuth2Client) { - return mergeFrom((flyteidl.core.Security.OAuth2Client)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Security.OAuth2Client other) { - if (other == flyteidl.core.Security.OAuth2Client.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (other.hasClientSecret()) { - mergeClientSecret(other.getClientSecret()); - } - 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.core.Security.OAuth2Client parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Security.OAuth2Client) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object clientId_ = ""; - /** - *
-       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-       * secret requested matches the client_id indicated here.
-       * +required
-       * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-       * secret requested matches the client_id indicated here.
-       * +required
-       * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-       * secret requested matches the client_id indicated here.
-       * +required
-       * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-       * secret requested matches the client_id indicated here.
-       * +required
-       * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-       * client_id is the public id for the client to use. The system will not perform any pre-auth validation that the
-       * secret requested matches the client_id indicated here.
-       * +required
-       * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Security.Secret clientSecret_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> clientSecretBuilder_; - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public boolean hasClientSecret() { - return clientSecretBuilder_ != null || clientSecret_ != null; - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public flyteidl.core.Security.Secret getClientSecret() { - if (clientSecretBuilder_ == null) { - return clientSecret_ == null ? flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; - } else { - return clientSecretBuilder_.getMessage(); - } - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public Builder setClientSecret(flyteidl.core.Security.Secret value) { - if (clientSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - clientSecret_ = value; - onChanged(); - } else { - clientSecretBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public Builder setClientSecret( - flyteidl.core.Security.Secret.Builder builderForValue) { - if (clientSecretBuilder_ == null) { - clientSecret_ = builderForValue.build(); - onChanged(); - } else { - clientSecretBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public Builder mergeClientSecret(flyteidl.core.Security.Secret value) { - if (clientSecretBuilder_ == null) { - if (clientSecret_ != null) { - clientSecret_ = - flyteidl.core.Security.Secret.newBuilder(clientSecret_).mergeFrom(value).buildPartial(); - } else { - clientSecret_ = value; - } - onChanged(); - } else { - clientSecretBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public Builder clearClientSecret() { - if (clientSecretBuilder_ == null) { - clientSecret_ = null; - onChanged(); - } else { - clientSecret_ = null; - clientSecretBuilder_ = null; - } - - return this; - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public flyteidl.core.Security.Secret.Builder getClientSecretBuilder() { - - onChanged(); - return getClientSecretFieldBuilder().getBuilder(); - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - public flyteidl.core.Security.SecretOrBuilder getClientSecretOrBuilder() { - if (clientSecretBuilder_ != null) { - return clientSecretBuilder_.getMessageOrBuilder(); - } else { - return clientSecret_ == null ? - flyteidl.core.Security.Secret.getDefaultInstance() : clientSecret_; - } - } - /** - *
-       * client_secret is a reference to the secret used to authenticate the OAuth2 client.
-       * +required
-       * 
- * - * .flyteidl.core.Secret client_secret = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> - getClientSecretFieldBuilder() { - if (clientSecretBuilder_ == null) { - clientSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder>( - getClientSecret(), - getParentForChildren(), - isClean()); - clientSecret_ = null; - } - return clientSecretBuilder_; - } - @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.core.OAuth2Client) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2Client) - private static final flyteidl.core.Security.OAuth2Client DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Security.OAuth2Client(); - } - - public static flyteidl.core.Security.OAuth2Client getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuth2Client parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuth2Client(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.core.Security.OAuth2Client getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IdentityOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Identity) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-     * 
- * - * string iam_role = 1; - */ - java.lang.String getIamRole(); - /** - *
-     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-     * 
- * - * string iam_role = 1; - */ - com.google.protobuf.ByteString - getIamRoleBytes(); - - /** - *
-     * k8s_service_account references a kubernetes service account to impersonate.
-     * 
- * - * string k8s_service_account = 2; - */ - java.lang.String getK8SServiceAccount(); - /** - *
-     * k8s_service_account references a kubernetes service account to impersonate.
-     * 
- * - * string k8s_service_account = 2; - */ - com.google.protobuf.ByteString - getK8SServiceAccountBytes(); - - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - boolean hasOauth2Client(); - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - flyteidl.core.Security.OAuth2Client getOauth2Client(); - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder(); - - /** - *
-     * execution_identity references the subject who makes the execution
-     * 
- * - * string execution_identity = 4; - */ - java.lang.String getExecutionIdentity(); - /** - *
-     * execution_identity references the subject who makes the execution
-     * 
- * - * string execution_identity = 4; - */ - com.google.protobuf.ByteString - getExecutionIdentityBytes(); - } - /** - *
-   * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the
-   * right identity for the execution environment.
-   * 
- * - * Protobuf type {@code flyteidl.core.Identity} - */ - public static final class Identity extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Identity) - IdentityOrBuilder { - private static final long serialVersionUID = 0L; - // Use Identity.newBuilder() to construct. - private Identity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Identity() { - iamRole_ = ""; - k8SServiceAccount_ = ""; - executionIdentity_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Identity( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - iamRole_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - k8SServiceAccount_ = s; - break; - } - case 26: { - flyteidl.core.Security.OAuth2Client.Builder subBuilder = null; - if (oauth2Client_ != null) { - subBuilder = oauth2Client_.toBuilder(); - } - oauth2Client_ = input.readMessage(flyteidl.core.Security.OAuth2Client.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(oauth2Client_); - oauth2Client_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - executionIdentity_ = s; - 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.core.Security.internal_static_flyteidl_core_Identity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_Identity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.Identity.class, flyteidl.core.Security.Identity.Builder.class); - } - - public static final int IAM_ROLE_FIELD_NUMBER = 1; - private volatile java.lang.Object iamRole_; - /** - *
-     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-     * 
- * - * string iam_role = 1; - */ - public java.lang.String getIamRole() { - java.lang.Object ref = iamRole_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iamRole_ = s; - return s; - } - } - /** - *
-     * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-     * 
- * - * string iam_role = 1; - */ - public com.google.protobuf.ByteString - getIamRoleBytes() { - java.lang.Object ref = iamRole_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int K8S_SERVICE_ACCOUNT_FIELD_NUMBER = 2; - private volatile java.lang.Object k8SServiceAccount_; - /** - *
-     * k8s_service_account references a kubernetes service account to impersonate.
-     * 
- * - * string k8s_service_account = 2; - */ - public java.lang.String getK8SServiceAccount() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - k8SServiceAccount_ = s; - return s; - } - } - /** - *
-     * k8s_service_account references a kubernetes service account to impersonate.
-     * 
- * - * string k8s_service_account = 2; - */ - public com.google.protobuf.ByteString - getK8SServiceAccountBytes() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - k8SServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OAUTH2_CLIENT_FIELD_NUMBER = 3; - private flyteidl.core.Security.OAuth2Client oauth2Client_; - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public boolean hasOauth2Client() { - return oauth2Client_ != null; - } - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public flyteidl.core.Security.OAuth2Client getOauth2Client() { - return oauth2Client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; - } - /** - *
-     * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-     * making external calls.
-     * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder() { - return getOauth2Client(); - } - - public static final int EXECUTION_IDENTITY_FIELD_NUMBER = 4; - private volatile java.lang.Object executionIdentity_; - /** - *
-     * execution_identity references the subject who makes the execution
-     * 
- * - * string execution_identity = 4; - */ - public java.lang.String getExecutionIdentity() { - java.lang.Object ref = executionIdentity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionIdentity_ = s; - return s; - } - } - /** - *
-     * execution_identity references the subject who makes the execution
-     * 
- * - * string execution_identity = 4; - */ - public com.google.protobuf.ByteString - getExecutionIdentityBytes() { - java.lang.Object ref = executionIdentity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionIdentity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getIamRoleBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, iamRole_); - } - if (!getK8SServiceAccountBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, k8SServiceAccount_); - } - if (oauth2Client_ != null) { - output.writeMessage(3, getOauth2Client()); - } - if (!getExecutionIdentityBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, executionIdentity_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIamRoleBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, iamRole_); - } - if (!getK8SServiceAccountBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, k8SServiceAccount_); - } - if (oauth2Client_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOauth2Client()); - } - if (!getExecutionIdentityBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, executionIdentity_); - } - 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.core.Security.Identity)) { - return super.equals(obj); - } - flyteidl.core.Security.Identity other = (flyteidl.core.Security.Identity) obj; - - if (!getIamRole() - .equals(other.getIamRole())) return false; - if (!getK8SServiceAccount() - .equals(other.getK8SServiceAccount())) return false; - if (hasOauth2Client() != other.hasOauth2Client()) return false; - if (hasOauth2Client()) { - if (!getOauth2Client() - .equals(other.getOauth2Client())) return false; - } - if (!getExecutionIdentity() - .equals(other.getExecutionIdentity())) 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(); - hash = (37 * hash) + IAM_ROLE_FIELD_NUMBER; - hash = (53 * hash) + getIamRole().hashCode(); - hash = (37 * hash) + K8S_SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getK8SServiceAccount().hashCode(); - if (hasOauth2Client()) { - hash = (37 * hash) + OAUTH2_CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getOauth2Client().hashCode(); - } - hash = (37 * hash) + EXECUTION_IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getExecutionIdentity().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Security.Identity parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Identity parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Identity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Identity parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Identity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.Identity parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.Identity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Identity 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.core.Security.Identity parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Identity 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.core.Security.Identity parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.Identity 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.core.Security.Identity 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; - } - /** - *
-     * Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the
-     * right identity for the execution environment.
-     * 
- * - * Protobuf type {@code flyteidl.core.Identity} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Identity) - flyteidl.core.Security.IdentityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_Identity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_Identity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.Identity.class, flyteidl.core.Security.Identity.Builder.class); - } - - // Construct using flyteidl.core.Security.Identity.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(); - iamRole_ = ""; - - k8SServiceAccount_ = ""; - - if (oauth2ClientBuilder_ == null) { - oauth2Client_ = null; - } else { - oauth2Client_ = null; - oauth2ClientBuilder_ = null; - } - executionIdentity_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Security.internal_static_flyteidl_core_Identity_descriptor; - } - - @java.lang.Override - public flyteidl.core.Security.Identity getDefaultInstanceForType() { - return flyteidl.core.Security.Identity.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Security.Identity build() { - flyteidl.core.Security.Identity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Security.Identity buildPartial() { - flyteidl.core.Security.Identity result = new flyteidl.core.Security.Identity(this); - result.iamRole_ = iamRole_; - result.k8SServiceAccount_ = k8SServiceAccount_; - if (oauth2ClientBuilder_ == null) { - result.oauth2Client_ = oauth2Client_; - } else { - result.oauth2Client_ = oauth2ClientBuilder_.build(); - } - result.executionIdentity_ = executionIdentity_; - 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.core.Security.Identity) { - return mergeFrom((flyteidl.core.Security.Identity)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Security.Identity other) { - if (other == flyteidl.core.Security.Identity.getDefaultInstance()) return this; - if (!other.getIamRole().isEmpty()) { - iamRole_ = other.iamRole_; - onChanged(); - } - if (!other.getK8SServiceAccount().isEmpty()) { - k8SServiceAccount_ = other.k8SServiceAccount_; - onChanged(); - } - if (other.hasOauth2Client()) { - mergeOauth2Client(other.getOauth2Client()); - } - if (!other.getExecutionIdentity().isEmpty()) { - executionIdentity_ = other.executionIdentity_; - onChanged(); - } - 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.core.Security.Identity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Security.Identity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object iamRole_ = ""; - /** - *
-       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-       * 
- * - * string iam_role = 1; - */ - public java.lang.String getIamRole() { - java.lang.Object ref = iamRole_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iamRole_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-       * 
- * - * string iam_role = 1; - */ - public com.google.protobuf.ByteString - getIamRoleBytes() { - java.lang.Object ref = iamRole_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - iamRole_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-       * 
- * - * string iam_role = 1; - */ - public Builder setIamRole( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - iamRole_ = value; - onChanged(); - return this; - } - /** - *
-       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-       * 
- * - * string iam_role = 1; - */ - public Builder clearIamRole() { - - iamRole_ = getDefaultInstance().getIamRole(); - onChanged(); - return this; - } - /** - *
-       * iam_role references the fully qualified name of Identity & Access Management role to impersonate.
-       * 
- * - * string iam_role = 1; - */ - public Builder setIamRoleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - iamRole_ = value; - onChanged(); - return this; - } - - private java.lang.Object k8SServiceAccount_ = ""; - /** - *
-       * k8s_service_account references a kubernetes service account to impersonate.
-       * 
- * - * string k8s_service_account = 2; - */ - public java.lang.String getK8SServiceAccount() { - java.lang.Object ref = k8SServiceAccount_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - k8SServiceAccount_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * k8s_service_account references a kubernetes service account to impersonate.
-       * 
- * - * string k8s_service_account = 2; - */ - public com.google.protobuf.ByteString - getK8SServiceAccountBytes() { - java.lang.Object ref = k8SServiceAccount_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - k8SServiceAccount_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * k8s_service_account references a kubernetes service account to impersonate.
-       * 
- * - * string k8s_service_account = 2; - */ - public Builder setK8SServiceAccount( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - k8SServiceAccount_ = value; - onChanged(); - return this; - } - /** - *
-       * k8s_service_account references a kubernetes service account to impersonate.
-       * 
- * - * string k8s_service_account = 2; - */ - public Builder clearK8SServiceAccount() { - - k8SServiceAccount_ = getDefaultInstance().getK8SServiceAccount(); - onChanged(); - return this; - } - /** - *
-       * k8s_service_account references a kubernetes service account to impersonate.
-       * 
- * - * string k8s_service_account = 2; - */ - public Builder setK8SServiceAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - k8SServiceAccount_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Security.OAuth2Client oauth2Client_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> oauth2ClientBuilder_; - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public boolean hasOauth2Client() { - return oauth2ClientBuilder_ != null || oauth2Client_ != null; - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public flyteidl.core.Security.OAuth2Client getOauth2Client() { - if (oauth2ClientBuilder_ == null) { - return oauth2Client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; - } else { - return oauth2ClientBuilder_.getMessage(); - } - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public Builder setOauth2Client(flyteidl.core.Security.OAuth2Client value) { - if (oauth2ClientBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oauth2Client_ = value; - onChanged(); - } else { - oauth2ClientBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public Builder setOauth2Client( - flyteidl.core.Security.OAuth2Client.Builder builderForValue) { - if (oauth2ClientBuilder_ == null) { - oauth2Client_ = builderForValue.build(); - onChanged(); - } else { - oauth2ClientBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public Builder mergeOauth2Client(flyteidl.core.Security.OAuth2Client value) { - if (oauth2ClientBuilder_ == null) { - if (oauth2Client_ != null) { - oauth2Client_ = - flyteidl.core.Security.OAuth2Client.newBuilder(oauth2Client_).mergeFrom(value).buildPartial(); - } else { - oauth2Client_ = value; - } - onChanged(); - } else { - oauth2ClientBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public Builder clearOauth2Client() { - if (oauth2ClientBuilder_ == null) { - oauth2Client_ = null; - onChanged(); - } else { - oauth2Client_ = null; - oauth2ClientBuilder_ = null; - } - - return this; - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public flyteidl.core.Security.OAuth2Client.Builder getOauth2ClientBuilder() { - - onChanged(); - return getOauth2ClientFieldBuilder().getBuilder(); - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - public flyteidl.core.Security.OAuth2ClientOrBuilder getOauth2ClientOrBuilder() { - if (oauth2ClientBuilder_ != null) { - return oauth2ClientBuilder_.getMessageOrBuilder(); - } else { - return oauth2Client_ == null ? - flyteidl.core.Security.OAuth2Client.getDefaultInstance() : oauth2Client_; - } - } - /** - *
-       * oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when
-       * making external calls.
-       * 
- * - * .flyteidl.core.OAuth2Client oauth2_client = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> - getOauth2ClientFieldBuilder() { - if (oauth2ClientBuilder_ == null) { - oauth2ClientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder>( - getOauth2Client(), - getParentForChildren(), - isClean()); - oauth2Client_ = null; - } - return oauth2ClientBuilder_; - } - - private java.lang.Object executionIdentity_ = ""; - /** - *
-       * execution_identity references the subject who makes the execution
-       * 
- * - * string execution_identity = 4; - */ - public java.lang.String getExecutionIdentity() { - java.lang.Object ref = executionIdentity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executionIdentity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * execution_identity references the subject who makes the execution
-       * 
- * - * string execution_identity = 4; - */ - public com.google.protobuf.ByteString - getExecutionIdentityBytes() { - java.lang.Object ref = executionIdentity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executionIdentity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * execution_identity references the subject who makes the execution
-       * 
- * - * string execution_identity = 4; - */ - public Builder setExecutionIdentity( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executionIdentity_ = value; - onChanged(); - return this; - } - /** - *
-       * execution_identity references the subject who makes the execution
-       * 
- * - * string execution_identity = 4; - */ - public Builder clearExecutionIdentity() { - - executionIdentity_ = getDefaultInstance().getExecutionIdentity(); - onChanged(); - return this; - } - /** - *
-       * execution_identity references the subject who makes the execution
-       * 
- * - * string execution_identity = 4; - */ - public Builder setExecutionIdentityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executionIdentity_ = value; - onChanged(); - return this; - } - @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.core.Identity) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Identity) - private static final flyteidl.core.Security.Identity DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Security.Identity(); - } - - public static flyteidl.core.Security.Identity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Identity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Identity(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.core.Security.Identity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OAuth2TokenRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.OAuth2TokenRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-     * environment variables and as a filename for mounting tokens as files.
-     * +required
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-     * environment variables and as a filename for mounting tokens as files.
-     * +required
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - int getTypeValue(); - /** - *
-     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - flyteidl.core.Security.OAuth2TokenRequest.Type getType(); - - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - boolean hasClient(); - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - flyteidl.core.Security.OAuth2Client getClient(); - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder(); - - /** - *
-     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-     * information.
-     * +optional
-     * 
- * - * string idp_discovery_endpoint = 4; - */ - java.lang.String getIdpDiscoveryEndpoint(); - /** - *
-     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-     * information.
-     * +optional
-     * 
- * - * string idp_discovery_endpoint = 4; - */ - com.google.protobuf.ByteString - getIdpDiscoveryEndpointBytes(); - - /** - *
-     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-     * mandatory.
-     * +optional
-     * 
- * - * string token_endpoint = 5; - */ - java.lang.String getTokenEndpoint(); - /** - *
-     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-     * mandatory.
-     * +optional
-     * 
- * - * string token_endpoint = 5; - */ - com.google.protobuf.ByteString - getTokenEndpointBytes(); - } - /** - *
-   * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
-   * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
-   * tokens are passed through environment variables.
-   * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens
-   * are passed through file mounts.
-   * 
- * - * Protobuf type {@code flyteidl.core.OAuth2TokenRequest} - */ - public static final class OAuth2TokenRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.OAuth2TokenRequest) - OAuth2TokenRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuth2TokenRequest.newBuilder() to construct. - private OAuth2TokenRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OAuth2TokenRequest() { - name_ = ""; - type_ = 0; - idpDiscoveryEndpoint_ = ""; - tokenEndpoint_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OAuth2TokenRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 26: { - flyteidl.core.Security.OAuth2Client.Builder subBuilder = null; - if (client_ != null) { - subBuilder = client_.toBuilder(); - } - client_ = input.readMessage(flyteidl.core.Security.OAuth2Client.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(client_); - client_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - idpDiscoveryEndpoint_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - tokenEndpoint_ = s; - 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.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.OAuth2TokenRequest.class, flyteidl.core.Security.OAuth2TokenRequest.Builder.class); - } - - /** - *
-     * Type of the token requested.
-     * 
- * - * Protobuf enum {@code flyteidl.core.OAuth2TokenRequest.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials.
-       * 
- * - * CLIENT_CREDENTIALS = 0; - */ - CLIENT_CREDENTIALS(0), - UNRECOGNIZED(-1), - ; - - /** - *
-       * CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials.
-       * 
- * - * CLIENT_CREDENTIALS = 0; - */ - public static final int CLIENT_CREDENTIALS_VALUE = 0; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 0: return CLIENT_CREDENTIALS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Security.OAuth2TokenRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.OAuth2TokenRequest.Type) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-     * environment variables and as a filename for mounting tokens as files.
-     * +required
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-     * environment variables and as a filename for mounting tokens as files.
-     * +required
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public flyteidl.core.Security.OAuth2TokenRequest.Type getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Security.OAuth2TokenRequest.Type result = flyteidl.core.Security.OAuth2TokenRequest.Type.valueOf(type_); - return result == null ? flyteidl.core.Security.OAuth2TokenRequest.Type.UNRECOGNIZED : result; - } - - public static final int CLIENT_FIELD_NUMBER = 3; - private flyteidl.core.Security.OAuth2Client client_; - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public boolean hasClient() { - return client_ != null; - } - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public flyteidl.core.Security.OAuth2Client getClient() { - return client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; - } - /** - *
-     * client references the client_id/secret to use to request the OAuth2 token.
-     * +required
-     * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder() { - return getClient(); - } - - public static final int IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER = 4; - private volatile java.lang.Object idpDiscoveryEndpoint_; - /** - *
-     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-     * information.
-     * +optional
-     * 
- * - * string idp_discovery_endpoint = 4; - */ - public java.lang.String getIdpDiscoveryEndpoint() { - java.lang.Object ref = idpDiscoveryEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - idpDiscoveryEndpoint_ = s; - return s; - } - } - /** - *
-     * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-     * information.
-     * +optional
-     * 
- * - * string idp_discovery_endpoint = 4; - */ - public com.google.protobuf.ByteString - getIdpDiscoveryEndpointBytes() { - java.lang.Object ref = idpDiscoveryEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - idpDiscoveryEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 5; - private volatile java.lang.Object tokenEndpoint_; - /** - *
-     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-     * mandatory.
-     * +optional
-     * 
- * - * string token_endpoint = 5; - */ - public java.lang.String getTokenEndpoint() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenEndpoint_ = s; - return s; - } - } - /** - *
-     * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-     * mandatory.
-     * +optional
-     * 
- * - * string token_endpoint = 5; - */ - public com.google.protobuf.ByteString - getTokenEndpointBytes() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != flyteidl.core.Security.OAuth2TokenRequest.Type.CLIENT_CREDENTIALS.getNumber()) { - output.writeEnum(2, type_); - } - if (client_ != null) { - output.writeMessage(3, getClient()); - } - if (!getIdpDiscoveryEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, idpDiscoveryEndpoint_); - } - if (!getTokenEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tokenEndpoint_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != flyteidl.core.Security.OAuth2TokenRequest.Type.CLIENT_CREDENTIALS.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - if (client_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getClient()); - } - if (!getIdpDiscoveryEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, idpDiscoveryEndpoint_); - } - if (!getTokenEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, tokenEndpoint_); - } - 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.core.Security.OAuth2TokenRequest)) { - return super.equals(obj); - } - flyteidl.core.Security.OAuth2TokenRequest other = (flyteidl.core.Security.OAuth2TokenRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) return false; - if (hasClient() != other.hasClient()) return false; - if (hasClient()) { - if (!getClient() - .equals(other.getClient())) return false; - } - if (!getIdpDiscoveryEndpoint() - .equals(other.getIdpDiscoveryEndpoint())) return false; - if (!getTokenEndpoint() - .equals(other.getTokenEndpoint())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - if (hasClient()) { - hash = (37 * hash) + CLIENT_FIELD_NUMBER; - hash = (53 * hash) + getClient().hashCode(); - } - hash = (37 * hash) + IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getIdpDiscoveryEndpoint().hashCode(); - hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getTokenEndpoint().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.OAuth2TokenRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2TokenRequest 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.core.Security.OAuth2TokenRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2TokenRequest 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.core.Security.OAuth2TokenRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.OAuth2TokenRequest 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.core.Security.OAuth2TokenRequest 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; - } - /** - *
-     * OAuth2TokenRequest encapsulates information needed to request an OAuth2 token.
-     * FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if
-     * tokens are passed through environment variables.
-     * FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens
-     * are passed through file mounts.
-     * 
- * - * Protobuf type {@code flyteidl.core.OAuth2TokenRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.OAuth2TokenRequest) - flyteidl.core.Security.OAuth2TokenRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.OAuth2TokenRequest.class, flyteidl.core.Security.OAuth2TokenRequest.Builder.class); - } - - // Construct using flyteidl.core.Security.OAuth2TokenRequest.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(); - name_ = ""; - - type_ = 0; - - if (clientBuilder_ == null) { - client_ = null; - } else { - client_ = null; - clientBuilder_ = null; - } - idpDiscoveryEndpoint_ = ""; - - tokenEndpoint_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Security.internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2TokenRequest getDefaultInstanceForType() { - return flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2TokenRequest build() { - flyteidl.core.Security.OAuth2TokenRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Security.OAuth2TokenRequest buildPartial() { - flyteidl.core.Security.OAuth2TokenRequest result = new flyteidl.core.Security.OAuth2TokenRequest(this); - result.name_ = name_; - result.type_ = type_; - if (clientBuilder_ == null) { - result.client_ = client_; - } else { - result.client_ = clientBuilder_.build(); - } - result.idpDiscoveryEndpoint_ = idpDiscoveryEndpoint_; - result.tokenEndpoint_ = tokenEndpoint_; - 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.core.Security.OAuth2TokenRequest) { - return mergeFrom((flyteidl.core.Security.OAuth2TokenRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Security.OAuth2TokenRequest other) { - if (other == flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasClient()) { - mergeClient(other.getClient()); - } - if (!other.getIdpDiscoveryEndpoint().isEmpty()) { - idpDiscoveryEndpoint_ = other.idpDiscoveryEndpoint_; - onChanged(); - } - if (!other.getTokenEndpoint().isEmpty()) { - tokenEndpoint_ = other.tokenEndpoint_; - onChanged(); - } - 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.core.Security.OAuth2TokenRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Security.OAuth2TokenRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-       * environment variables and as a filename for mounting tokens as files.
-       * +required
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-       * environment variables and as a filename for mounting tokens as files.
-       * +required
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-       * environment variables and as a filename for mounting tokens as files.
-       * +required
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-       * environment variables and as a filename for mounting tokens as files.
-       * +required
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for
-       * environment variables and as a filename for mounting tokens as files.
-       * +required
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public flyteidl.core.Security.OAuth2TokenRequest.Type getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Security.OAuth2TokenRequest.Type result = flyteidl.core.Security.OAuth2TokenRequest.Type.valueOf(type_); - return result == null ? flyteidl.core.Security.OAuth2TokenRequest.Type.UNRECOGNIZED : result; - } - /** - *
-       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public Builder setType(flyteidl.core.Security.OAuth2TokenRequest.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2TokenRequest.Type type = 2; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Security.OAuth2Client client_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> clientBuilder_; - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public boolean hasClient() { - return clientBuilder_ != null || client_ != null; - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public flyteidl.core.Security.OAuth2Client getClient() { - if (clientBuilder_ == null) { - return client_ == null ? flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; - } else { - return clientBuilder_.getMessage(); - } - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public Builder setClient(flyteidl.core.Security.OAuth2Client value) { - if (clientBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - client_ = value; - onChanged(); - } else { - clientBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public Builder setClient( - flyteidl.core.Security.OAuth2Client.Builder builderForValue) { - if (clientBuilder_ == null) { - client_ = builderForValue.build(); - onChanged(); - } else { - clientBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public Builder mergeClient(flyteidl.core.Security.OAuth2Client value) { - if (clientBuilder_ == null) { - if (client_ != null) { - client_ = - flyteidl.core.Security.OAuth2Client.newBuilder(client_).mergeFrom(value).buildPartial(); - } else { - client_ = value; - } - onChanged(); - } else { - clientBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public Builder clearClient() { - if (clientBuilder_ == null) { - client_ = null; - onChanged(); - } else { - client_ = null; - clientBuilder_ = null; - } - - return this; - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public flyteidl.core.Security.OAuth2Client.Builder getClientBuilder() { - - onChanged(); - return getClientFieldBuilder().getBuilder(); - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - public flyteidl.core.Security.OAuth2ClientOrBuilder getClientOrBuilder() { - if (clientBuilder_ != null) { - return clientBuilder_.getMessageOrBuilder(); - } else { - return client_ == null ? - flyteidl.core.Security.OAuth2Client.getDefaultInstance() : client_; - } - } - /** - *
-       * client references the client_id/secret to use to request the OAuth2 token.
-       * +required
-       * 
- * - * .flyteidl.core.OAuth2Client client = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder> - getClientFieldBuilder() { - if (clientBuilder_ == null) { - clientBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.OAuth2Client, flyteidl.core.Security.OAuth2Client.Builder, flyteidl.core.Security.OAuth2ClientOrBuilder>( - getClient(), - getParentForChildren(), - isClean()); - client_ = null; - } - return clientBuilder_; - } - - private java.lang.Object idpDiscoveryEndpoint_ = ""; - /** - *
-       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-       * information.
-       * +optional
-       * 
- * - * string idp_discovery_endpoint = 4; - */ - public java.lang.String getIdpDiscoveryEndpoint() { - java.lang.Object ref = idpDiscoveryEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - idpDiscoveryEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-       * information.
-       * +optional
-       * 
- * - * string idp_discovery_endpoint = 4; - */ - public com.google.protobuf.ByteString - getIdpDiscoveryEndpointBytes() { - java.lang.Object ref = idpDiscoveryEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - idpDiscoveryEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-       * information.
-       * +optional
-       * 
- * - * string idp_discovery_endpoint = 4; - */ - public Builder setIdpDiscoveryEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - idpDiscoveryEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-       * information.
-       * +optional
-       * 
- * - * string idp_discovery_endpoint = 4; - */ - public Builder clearIdpDiscoveryEndpoint() { - - idpDiscoveryEndpoint_ = getDefaultInstance().getIdpDiscoveryEndpoint(); - onChanged(); - return this; - } - /** - *
-       * idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related
-       * information.
-       * +optional
-       * 
- * - * string idp_discovery_endpoint = 4; - */ - public Builder setIdpDiscoveryEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - idpDiscoveryEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object tokenEndpoint_ = ""; - /** - *
-       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-       * mandatory.
-       * +optional
-       * 
- * - * string token_endpoint = 5; - */ - public java.lang.String getTokenEndpoint() { - java.lang.Object ref = tokenEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-       * mandatory.
-       * +optional
-       * 
- * - * string token_endpoint = 5; - */ - public com.google.protobuf.ByteString - getTokenEndpointBytes() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-       * mandatory.
-       * +optional
-       * 
- * - * string token_endpoint = 5; - */ - public Builder setTokenEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-       * mandatory.
-       * +optional
-       * 
- * - * string token_endpoint = 5; - */ - public Builder clearTokenEndpoint() { - - tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); - onChanged(); - return this; - } - /** - *
-       * token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is
-       * mandatory.
-       * +optional
-       * 
- * - * string token_endpoint = 5; - */ - public Builder setTokenEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenEndpoint_ = value; - onChanged(); - return this; - } - @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.core.OAuth2TokenRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.OAuth2TokenRequest) - private static final flyteidl.core.Security.OAuth2TokenRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Security.OAuth2TokenRequest(); - } - - public static flyteidl.core.Security.OAuth2TokenRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuth2TokenRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuth2TokenRequest(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.core.Security.OAuth2TokenRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SecurityContextOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SecurityContext) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - boolean hasRunAs(); - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - flyteidl.core.Security.Identity getRunAs(); - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder(); - - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - java.util.List - getSecretsList(); - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - flyteidl.core.Security.Secret getSecrets(int index); - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - int getSecretsCount(); - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - java.util.List - getSecretsOrBuilderList(); - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( - int index); - - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - java.util.List - getTokensList(); - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - flyteidl.core.Security.OAuth2TokenRequest getTokens(int index); - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - int getTokensCount(); - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - java.util.List - getTokensOrBuilderList(); - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( - int index); - } - /** - *
-   * SecurityContext holds security attributes that apply to tasks.
-   * 
- * - * Protobuf type {@code flyteidl.core.SecurityContext} - */ - public static final class SecurityContext extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SecurityContext) - SecurityContextOrBuilder { - private static final long serialVersionUID = 0L; - // Use SecurityContext.newBuilder() to construct. - private SecurityContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SecurityContext() { - secrets_ = java.util.Collections.emptyList(); - tokens_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SecurityContext( - 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.Security.Identity.Builder subBuilder = null; - if (runAs_ != null) { - subBuilder = runAs_.toBuilder(); - } - runAs_ = input.readMessage(flyteidl.core.Security.Identity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runAs_); - runAs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - secrets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - secrets_.add( - input.readMessage(flyteidl.core.Security.Secret.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tokens_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tokens_.add( - input.readMessage(flyteidl.core.Security.OAuth2TokenRequest.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - secrets_ = java.util.Collections.unmodifiableList(secrets_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tokens_ = java.util.Collections.unmodifiableList(tokens_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.SecurityContext.class, flyteidl.core.Security.SecurityContext.Builder.class); - } - - private int bitField0_; - public static final int RUN_AS_FIELD_NUMBER = 1; - private flyteidl.core.Security.Identity runAs_; - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public boolean hasRunAs() { - return runAs_ != null; - } - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public flyteidl.core.Security.Identity getRunAs() { - return runAs_ == null ? flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; - } - /** - *
-     * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-     * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-     * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder() { - return getRunAs(); - } - - public static final int SECRETS_FIELD_NUMBER = 2; - private java.util.List secrets_; - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public java.util.List getSecretsList() { - return secrets_; - } - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public java.util.List - getSecretsOrBuilderList() { - return secrets_; - } - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public int getSecretsCount() { - return secrets_.size(); - } - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.Secret getSecrets(int index) { - return secrets_.get(index); - } - /** - *
-     * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( - int index) { - return secrets_.get(index); - } - - public static final int TOKENS_FIELD_NUMBER = 3; - private java.util.List tokens_; - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public java.util.List getTokensList() { - return tokens_; - } - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public java.util.List - getTokensOrBuilderList() { - return tokens_; - } - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public int getTokensCount() { - return tokens_.size(); - } - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequest getTokens(int index) { - return tokens_.get(index); - } - /** - *
-     * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-     * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-     * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-     * to the secret) and to pass it to the remote execution engine.
-     * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( - int index) { - return tokens_.get(index); - } - - 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 (runAs_ != null) { - output.writeMessage(1, getRunAs()); - } - for (int i = 0; i < secrets_.size(); i++) { - output.writeMessage(2, secrets_.get(i)); - } - for (int i = 0; i < tokens_.size(); i++) { - output.writeMessage(3, tokens_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (runAs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRunAs()); - } - for (int i = 0; i < secrets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, secrets_.get(i)); - } - for (int i = 0; i < tokens_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tokens_.get(i)); - } - 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.core.Security.SecurityContext)) { - return super.equals(obj); - } - flyteidl.core.Security.SecurityContext other = (flyteidl.core.Security.SecurityContext) obj; - - if (hasRunAs() != other.hasRunAs()) return false; - if (hasRunAs()) { - if (!getRunAs() - .equals(other.getRunAs())) return false; - } - if (!getSecretsList() - .equals(other.getSecretsList())) return false; - if (!getTokensList() - .equals(other.getTokensList())) 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 (hasRunAs()) { - hash = (37 * hash) + RUN_AS_FIELD_NUMBER; - hash = (53 * hash) + getRunAs().hashCode(); - } - if (getSecretsCount() > 0) { - hash = (37 * hash) + SECRETS_FIELD_NUMBER; - hash = (53 * hash) + getSecretsList().hashCode(); - } - if (getTokensCount() > 0) { - hash = (37 * hash) + TOKENS_FIELD_NUMBER; - hash = (53 * hash) + getTokensList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Security.SecurityContext parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.SecurityContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.SecurityContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.SecurityContext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.SecurityContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Security.SecurityContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Security.SecurityContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.SecurityContext 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.core.Security.SecurityContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Security.SecurityContext 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.core.Security.SecurityContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Security.SecurityContext 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.core.Security.SecurityContext 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; - } - /** - *
-     * SecurityContext holds security attributes that apply to tasks.
-     * 
- * - * Protobuf type {@code flyteidl.core.SecurityContext} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SecurityContext) - flyteidl.core.Security.SecurityContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Security.SecurityContext.class, flyteidl.core.Security.SecurityContext.Builder.class); - } - - // Construct using flyteidl.core.Security.SecurityContext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSecretsFieldBuilder(); - getTokensFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (runAsBuilder_ == null) { - runAs_ = null; - } else { - runAs_ = null; - runAsBuilder_ = null; - } - if (secretsBuilder_ == null) { - secrets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - secretsBuilder_.clear(); - } - if (tokensBuilder_ == null) { - tokens_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - tokensBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Security.internal_static_flyteidl_core_SecurityContext_descriptor; - } - - @java.lang.Override - public flyteidl.core.Security.SecurityContext getDefaultInstanceForType() { - return flyteidl.core.Security.SecurityContext.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Security.SecurityContext build() { - flyteidl.core.Security.SecurityContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Security.SecurityContext buildPartial() { - flyteidl.core.Security.SecurityContext result = new flyteidl.core.Security.SecurityContext(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (runAsBuilder_ == null) { - result.runAs_ = runAs_; - } else { - result.runAs_ = runAsBuilder_.build(); - } - if (secretsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - secrets_ = java.util.Collections.unmodifiableList(secrets_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.secrets_ = secrets_; - } else { - result.secrets_ = secretsBuilder_.build(); - } - if (tokensBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - tokens_ = java.util.Collections.unmodifiableList(tokens_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tokens_ = tokens_; - } else { - result.tokens_ = tokensBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.Security.SecurityContext) { - return mergeFrom((flyteidl.core.Security.SecurityContext)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Security.SecurityContext other) { - if (other == flyteidl.core.Security.SecurityContext.getDefaultInstance()) return this; - if (other.hasRunAs()) { - mergeRunAs(other.getRunAs()); - } - if (secretsBuilder_ == null) { - if (!other.secrets_.isEmpty()) { - if (secrets_.isEmpty()) { - secrets_ = other.secrets_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSecretsIsMutable(); - secrets_.addAll(other.secrets_); - } - onChanged(); - } - } else { - if (!other.secrets_.isEmpty()) { - if (secretsBuilder_.isEmpty()) { - secretsBuilder_.dispose(); - secretsBuilder_ = null; - secrets_ = other.secrets_; - bitField0_ = (bitField0_ & ~0x00000002); - secretsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSecretsFieldBuilder() : null; - } else { - secretsBuilder_.addAllMessages(other.secrets_); - } - } - } - if (tokensBuilder_ == null) { - if (!other.tokens_.isEmpty()) { - if (tokens_.isEmpty()) { - tokens_ = other.tokens_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTokensIsMutable(); - tokens_.addAll(other.tokens_); - } - onChanged(); - } - } else { - if (!other.tokens_.isEmpty()) { - if (tokensBuilder_.isEmpty()) { - tokensBuilder_.dispose(); - tokensBuilder_ = null; - tokens_ = other.tokens_; - bitField0_ = (bitField0_ & ~0x00000004); - tokensBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTokensFieldBuilder() : null; - } else { - tokensBuilder_.addAllMessages(other.tokens_); - } - } - } - 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.core.Security.SecurityContext parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Security.SecurityContext) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Security.Identity runAs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder> runAsBuilder_; - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public boolean hasRunAs() { - return runAsBuilder_ != null || runAs_ != null; - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public flyteidl.core.Security.Identity getRunAs() { - if (runAsBuilder_ == null) { - return runAs_ == null ? flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; - } else { - return runAsBuilder_.getMessage(); - } - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public Builder setRunAs(flyteidl.core.Security.Identity value) { - if (runAsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runAs_ = value; - onChanged(); - } else { - runAsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public Builder setRunAs( - flyteidl.core.Security.Identity.Builder builderForValue) { - if (runAsBuilder_ == null) { - runAs_ = builderForValue.build(); - onChanged(); - } else { - runAsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public Builder mergeRunAs(flyteidl.core.Security.Identity value) { - if (runAsBuilder_ == null) { - if (runAs_ != null) { - runAs_ = - flyteidl.core.Security.Identity.newBuilder(runAs_).mergeFrom(value).buildPartial(); - } else { - runAs_ = value; - } - onChanged(); - } else { - runAsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public Builder clearRunAs() { - if (runAsBuilder_ == null) { - runAs_ = null; - onChanged(); - } else { - runAs_ = null; - runAsBuilder_ = null; - } - - return this; - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public flyteidl.core.Security.Identity.Builder getRunAsBuilder() { - - onChanged(); - return getRunAsFieldBuilder().getBuilder(); - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - public flyteidl.core.Security.IdentityOrBuilder getRunAsOrBuilder() { - if (runAsBuilder_ != null) { - return runAsBuilder_.getMessageOrBuilder(); - } else { - return runAs_ == null ? - flyteidl.core.Security.Identity.getDefaultInstance() : runAs_; - } - } - /** - *
-       * run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the
-       * backend plugin to choose the appropriate identity for the execution engine the task will run on.
-       * 
- * - * .flyteidl.core.Identity run_as = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder> - getRunAsFieldBuilder() { - if (runAsBuilder_ == null) { - runAsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.Identity, flyteidl.core.Security.Identity.Builder, flyteidl.core.Security.IdentityOrBuilder>( - getRunAs(), - getParentForChildren(), - isClean()); - runAs_ = null; - } - return runAsBuilder_; - } - - private java.util.List secrets_ = - java.util.Collections.emptyList(); - private void ensureSecretsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - secrets_ = new java.util.ArrayList(secrets_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> secretsBuilder_; - - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public java.util.List getSecretsList() { - if (secretsBuilder_ == null) { - return java.util.Collections.unmodifiableList(secrets_); - } else { - return secretsBuilder_.getMessageList(); - } - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public int getSecretsCount() { - if (secretsBuilder_ == null) { - return secrets_.size(); - } else { - return secretsBuilder_.getCount(); - } - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.Secret getSecrets(int index) { - if (secretsBuilder_ == null) { - return secrets_.get(index); - } else { - return secretsBuilder_.getMessage(index); - } - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder setSecrets( - int index, flyteidl.core.Security.Secret value) { - if (secretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecretsIsMutable(); - secrets_.set(index, value); - onChanged(); - } else { - secretsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder setSecrets( - int index, flyteidl.core.Security.Secret.Builder builderForValue) { - if (secretsBuilder_ == null) { - ensureSecretsIsMutable(); - secrets_.set(index, builderForValue.build()); - onChanged(); - } else { - secretsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder addSecrets(flyteidl.core.Security.Secret value) { - if (secretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecretsIsMutable(); - secrets_.add(value); - onChanged(); - } else { - secretsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder addSecrets( - int index, flyteidl.core.Security.Secret value) { - if (secretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecretsIsMutable(); - secrets_.add(index, value); - onChanged(); - } else { - secretsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder addSecrets( - flyteidl.core.Security.Secret.Builder builderForValue) { - if (secretsBuilder_ == null) { - ensureSecretsIsMutable(); - secrets_.add(builderForValue.build()); - onChanged(); - } else { - secretsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder addSecrets( - int index, flyteidl.core.Security.Secret.Builder builderForValue) { - if (secretsBuilder_ == null) { - ensureSecretsIsMutable(); - secrets_.add(index, builderForValue.build()); - onChanged(); - } else { - secretsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder addAllSecrets( - java.lang.Iterable values) { - if (secretsBuilder_ == null) { - ensureSecretsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, secrets_); - onChanged(); - } else { - secretsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder clearSecrets() { - if (secretsBuilder_ == null) { - secrets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - secretsBuilder_.clear(); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public Builder removeSecrets(int index) { - if (secretsBuilder_ == null) { - ensureSecretsIsMutable(); - secrets_.remove(index); - onChanged(); - } else { - secretsBuilder_.remove(index); - } - return this; - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.Secret.Builder getSecretsBuilder( - int index) { - return getSecretsFieldBuilder().getBuilder(index); - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.SecretOrBuilder getSecretsOrBuilder( - int index) { - if (secretsBuilder_ == null) { - return secrets_.get(index); } else { - return secretsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public java.util.List - getSecretsOrBuilderList() { - if (secretsBuilder_ != null) { - return secretsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(secrets_); - } - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.Secret.Builder addSecretsBuilder() { - return getSecretsFieldBuilder().addBuilder( - flyteidl.core.Security.Secret.getDefaultInstance()); - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public flyteidl.core.Security.Secret.Builder addSecretsBuilder( - int index) { - return getSecretsFieldBuilder().addBuilder( - index, flyteidl.core.Security.Secret.getDefaultInstance()); - } - /** - *
-       * secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.Secret secrets = 2; - */ - public java.util.List - getSecretsBuilderList() { - return getSecretsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder> - getSecretsFieldBuilder() { - if (secretsBuilder_ == null) { - secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.Secret, flyteidl.core.Security.Secret.Builder, flyteidl.core.Security.SecretOrBuilder>( - secrets_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - secrets_ = null; - } - return secretsBuilder_; - } - - private java.util.List tokens_ = - java.util.Collections.emptyList(); - private void ensureTokensIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tokens_ = new java.util.ArrayList(tokens_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder> tokensBuilder_; - - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public java.util.List getTokensList() { - if (tokensBuilder_ == null) { - return java.util.Collections.unmodifiableList(tokens_); - } else { - return tokensBuilder_.getMessageList(); - } - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public int getTokensCount() { - if (tokensBuilder_ == null) { - return tokens_.size(); - } else { - return tokensBuilder_.getCount(); - } - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequest getTokens(int index) { - if (tokensBuilder_ == null) { - return tokens_.get(index); - } else { - return tokensBuilder_.getMessage(index); - } - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder setTokens( - int index, flyteidl.core.Security.OAuth2TokenRequest value) { - if (tokensBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokensIsMutable(); - tokens_.set(index, value); - onChanged(); - } else { - tokensBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder setTokens( - int index, flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { - if (tokensBuilder_ == null) { - ensureTokensIsMutable(); - tokens_.set(index, builderForValue.build()); - onChanged(); - } else { - tokensBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder addTokens(flyteidl.core.Security.OAuth2TokenRequest value) { - if (tokensBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokensIsMutable(); - tokens_.add(value); - onChanged(); - } else { - tokensBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder addTokens( - int index, flyteidl.core.Security.OAuth2TokenRequest value) { - if (tokensBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokensIsMutable(); - tokens_.add(index, value); - onChanged(); - } else { - tokensBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder addTokens( - flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { - if (tokensBuilder_ == null) { - ensureTokensIsMutable(); - tokens_.add(builderForValue.build()); - onChanged(); - } else { - tokensBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder addTokens( - int index, flyteidl.core.Security.OAuth2TokenRequest.Builder builderForValue) { - if (tokensBuilder_ == null) { - ensureTokensIsMutable(); - tokens_.add(index, builderForValue.build()); - onChanged(); - } else { - tokensBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder addAllTokens( - java.lang.Iterable values) { - if (tokensBuilder_ == null) { - ensureTokensIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tokens_); - onChanged(); - } else { - tokensBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder clearTokens() { - if (tokensBuilder_ == null) { - tokens_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - tokensBuilder_.clear(); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public Builder removeTokens(int index) { - if (tokensBuilder_ == null) { - ensureTokensIsMutable(); - tokens_.remove(index); - onChanged(); - } else { - tokensBuilder_.remove(index); - } - return this; - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequest.Builder getTokensBuilder( - int index) { - return getTokensFieldBuilder().getBuilder(index); - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequestOrBuilder getTokensOrBuilder( - int index) { - if (tokensBuilder_ == null) { - return tokens_.get(index); } else { - return tokensBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public java.util.List - getTokensOrBuilderList() { - if (tokensBuilder_ != null) { - return tokensBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tokens_); - } - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequest.Builder addTokensBuilder() { - return getTokensFieldBuilder().addBuilder( - flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()); - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public flyteidl.core.Security.OAuth2TokenRequest.Builder addTokensBuilder( - int index) { - return getTokensFieldBuilder().addBuilder( - index, flyteidl.core.Security.OAuth2TokenRequest.getDefaultInstance()); - } - /** - *
-       * tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the
-       * pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS
-       * Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access
-       * to the secret) and to pass it to the remote execution engine.
-       * 
- * - * repeated .flyteidl.core.OAuth2TokenRequest tokens = 3; - */ - public java.util.List - getTokensBuilderList() { - return getTokensFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder> - getTokensFieldBuilder() { - if (tokensBuilder_ == null) { - tokensBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Security.OAuth2TokenRequest, flyteidl.core.Security.OAuth2TokenRequest.Builder, flyteidl.core.Security.OAuth2TokenRequestOrBuilder>( - tokens_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - tokens_ = null; - } - return tokensBuilder_; - } - @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.core.SecurityContext) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SecurityContext) - private static final flyteidl.core.Security.SecurityContext DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Security.SecurityContext(); - } - - public static flyteidl.core.Security.SecurityContext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SecurityContext(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.core.Security.SecurityContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Secret_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Secret_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_OAuth2Client_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_OAuth2Client_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Identity_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Identity_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_OAuth2TokenRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_OAuth2TokenRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SecurityContext_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SecurityContext_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/core/security.proto\022\rflyteidl" + - ".core\"\244\001\n\006Secret\022\r\n\005group\030\001 \001(\t\022\025\n\rgroup" + - "_version\030\002 \001(\t\022\013\n\003key\030\003 \001(\t\022:\n\021mount_req" + - "uirement\030\004 \001(\0162\037.flyteidl.core.Secret.Mo" + - "untType\"+\n\tMountType\022\007\n\003ANY\020\000\022\013\n\007ENV_VAR" + - "\020\001\022\010\n\004FILE\020\002\"O\n\014OAuth2Client\022\021\n\tclient_i" + - "d\030\001 \001(\t\022,\n\rclient_secret\030\002 \001(\0132\025.flyteid" + - "l.core.Secret\"\211\001\n\010Identity\022\020\n\010iam_role\030\001" + - " \001(\t\022\033\n\023k8s_service_account\030\002 \001(\t\0222\n\roau" + - "th2_client\030\003 \001(\0132\033.flyteidl.core.OAuth2C" + - "lient\022\032\n\022execution_identity\030\004 \001(\t\"\335\001\n\022OA" + - "uth2TokenRequest\022\014\n\004name\030\001 \001(\t\0224\n\004type\030\002" + - " \001(\0162&.flyteidl.core.OAuth2TokenRequest." + - "Type\022+\n\006client\030\003 \001(\0132\033.flyteidl.core.OAu" + - "th2Client\022\036\n\026idp_discovery_endpoint\030\004 \001(" + - "\t\022\026\n\016token_endpoint\030\005 \001(\t\"\036\n\004Type\022\026\n\022CLI" + - "ENT_CREDENTIALS\020\000\"\225\001\n\017SecurityContext\022\'\n" + - "\006run_as\030\001 \001(\0132\027.flyteidl.core.Identity\022&" + - "\n\007secrets\030\002 \003(\0132\025.flyteidl.core.Secret\0221" + - "\n\006tokens\030\003 \003(\0132!.flyteidl.core.OAuth2Tok" + - "enRequestB - * The desired set of resources requested. ResourceNames must be unique within the list. - * - * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - int getRequestsCount(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index); - - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - int getLimitsCount(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - java.util.List - getLimitsOrBuilderList(); - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index); - } - /** - *
-   * A customizable interface to convey resources requested for a container. This can be interpreted differently for different
-   * container engines.
-   * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Resources extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources) - ResourcesOrBuilder { - private static final long serialVersionUID = 0L; - // Use Resources.newBuilder() to construct. - private Resources(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Resources() { - requests_ = java.util.Collections.emptyList(); - limits_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Resources( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - limits_.add( - input.readMessage(flyteidl.core.Tasks.Resources.ResourceEntry.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - /** - *
-     * Known resource names.
-     * 
- * - * Protobuf enum {@code flyteidl.core.Resources.ResourceName} - */ - public enum ResourceName - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * CPU = 1; - */ - CPU(1), - /** - * GPU = 2; - */ - GPU(2), - /** - * MEMORY = 3; - */ - MEMORY(3), - /** - * STORAGE = 4; - */ - STORAGE(4), - /** - *
-       * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
-       * 
- * - * EPHEMERAL_STORAGE = 5; - */ - EPHEMERAL_STORAGE(5), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * CPU = 1; - */ - public static final int CPU_VALUE = 1; - /** - * GPU = 2; - */ - public static final int GPU_VALUE = 2; - /** - * MEMORY = 3; - */ - public static final int MEMORY_VALUE = 3; - /** - * STORAGE = 4; - */ - public static final int STORAGE_VALUE = 4; - /** - *
-       * For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs.
-       * 
- * - * EPHEMERAL_STORAGE = 5; - */ - public static final int EPHEMERAL_STORAGE_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ResourceName valueOf(int value) { - return forNumber(value); - } - - public static ResourceName forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return CPU; - case 2: return GPU; - case 3: return MEMORY; - case 4: return STORAGE; - case 5: return EPHEMERAL_STORAGE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ResourceName> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ResourceName findValueByNumber(int number) { - return ResourceName.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.Resources.getDescriptor().getEnumTypes().get(0); - } - - private static final ResourceName[] VALUES = values(); - - public static ResourceName valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ResourceName(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Resources.ResourceName) - } - - public interface ResourceEntryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Resources.ResourceEntry) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - int getNameValue(); - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - flyteidl.core.Tasks.Resources.ResourceName getName(); - - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - java.lang.String getValue(); - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-     * Encapsulates a resource name and value.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class ResourceEntry extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Resources.ResourceEntry) - ResourceEntryOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourceEntry.newBuilder() to construct. - private ResourceEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourceEntry() { - name_ = 0; - value_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourceEntry( - 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 8: { - int rawValue = input.readEnum(); - - name_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - value_ = s; - 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.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_; - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-       * Resource name.
-       * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private volatile java.lang.Object value_; - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-       * Value must be a valid k8s quantity. See
-       * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-       * 
- * - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - output.writeEnum(1, name_); - } - if (!getValueBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (name_ != flyteidl.core.Tasks.Resources.ResourceName.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, name_); - } - if (!getValueBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - 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.core.Tasks.Resources.ResourceEntry)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources.ResourceEntry other = (flyteidl.core.Tasks.Resources.ResourceEntry) obj; - - if (name_ != other.name_) return false; - if (!getValue() - .equals(other.getValue())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + name_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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.core.Tasks.Resources.ResourceEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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.core.Tasks.Resources.ResourceEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources.ResourceEntry 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.core.Tasks.Resources.ResourceEntry 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; - } - /** - *
-       * Encapsulates a resource name and value.
-       * 
- * - * Protobuf type {@code flyteidl.core.Resources.ResourceEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources.ResourceEntry) - flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.ResourceEntry.class, flyteidl.core.Tasks.Resources.ResourceEntry.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.ResourceEntry.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(); - name_ = 0; - - value_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry build() { - flyteidl.core.Tasks.Resources.ResourceEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources.ResourceEntry buildPartial() { - flyteidl.core.Tasks.Resources.ResourceEntry result = new flyteidl.core.Tasks.Resources.ResourceEntry(this); - result.name_ = name_; - result.value_ = value_; - 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.core.Tasks.Resources.ResourceEntry) { - return mergeFrom((flyteidl.core.Tasks.Resources.ResourceEntry)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources.ResourceEntry other) { - if (other == flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()) return this; - if (other.name_ != 0) { - setNameValue(other.getNameValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - onChanged(); - } - 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.core.Tasks.Resources.ResourceEntry parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources.ResourceEntry) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int name_ = 0; - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public int getNameValue() { - return name_; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setNameValue(int value) { - name_ = value; - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceName getName() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Resources.ResourceName result = flyteidl.core.Tasks.Resources.ResourceName.valueOf(name_); - return result == null ? flyteidl.core.Tasks.Resources.ResourceName.UNRECOGNIZED : result; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder setName(flyteidl.core.Tasks.Resources.ResourceName value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * Resource name.
-         * 
- * - * .flyteidl.core.Resources.ResourceName name = 1; - */ - public Builder clearName() { - - name_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - value_ = value; - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder clearValue() { - - value_ = getDefaultInstance().getValue(); - onChanged(); - return this; - } - /** - *
-         * Value must be a valid k8s quantity. See
-         * https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
-         * 
- * - * string value = 2; - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - value_ = value; - onChanged(); - return this; - } - @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.core.Resources.ResourceEntry) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources.ResourceEntry) - private static final flyteidl.core.Tasks.Resources.ResourceEntry DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources.ResourceEntry(); - } - - public static flyteidl.core.Tasks.Resources.ResourceEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourceEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourceEntry(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.core.Tasks.Resources.ResourceEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int REQUESTS_FIELD_NUMBER = 1; - private java.util.List requests_; - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - return requests_.get(index); - } - /** - *
-     * The desired set of resources requested. ResourceNames must be unique within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - return requests_.get(index); - } - - public static final int LIMITS_FIELD_NUMBER = 2; - private java.util.List limits_; - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - return limits_; - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - return limits_.size(); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - return limits_.get(index); - } - /** - *
-     * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-     * within the list.
-     * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - return limits_.get(index); - } - - 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 { - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - output.writeMessage(2, limits_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, requests_.get(i)); - } - for (int i = 0; i < limits_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, limits_.get(i)); - } - 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.core.Tasks.Resources)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Resources other = (flyteidl.core.Tasks.Resources) obj; - - if (!getRequestsList() - .equals(other.getRequestsList())) return false; - if (!getLimitsList() - .equals(other.getLimitsList())) 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 (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - if (getLimitsCount() > 0) { - hash = (37 * hash) + LIMITS_FIELD_NUMBER; - hash = (53 * hash) + getLimitsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Resources parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Resources parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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.core.Tasks.Resources parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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.core.Tasks.Resources parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Resources 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.core.Tasks.Resources 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; - } - /** - *
-     * A customizable interface to convey resources requested for a container. This can be interpreted differently for different
-     * container engines.
-     * 
- * - * Protobuf type {@code flyteidl.core.Resources} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Resources) - flyteidl.core.Tasks.ResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Resources.class, flyteidl.core.Tasks.Resources.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Resources.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - getLimitsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - requestsBuilder_.clear(); - } - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - limitsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Resources_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources getDefaultInstanceForType() { - return flyteidl.core.Tasks.Resources.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources build() { - flyteidl.core.Tasks.Resources result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Resources buildPartial() { - flyteidl.core.Tasks.Resources result = new flyteidl.core.Tasks.Resources(this); - int from_bitField0_ = bitField0_; - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - if (limitsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - limits_ = java.util.Collections.unmodifiableList(limits_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.limits_ = limits_; - } else { - result.limits_ = limitsBuilder_.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.core.Tasks.Resources) { - return mergeFrom((flyteidl.core.Tasks.Resources)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Resources other) { - if (other == flyteidl.core.Tasks.Resources.getDefaultInstance()) return this; - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000001); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - if (limitsBuilder_ == null) { - if (!other.limits_.isEmpty()) { - if (limits_.isEmpty()) { - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureLimitsIsMutable(); - limits_.addAll(other.limits_); - } - onChanged(); - } - } else { - if (!other.limits_.isEmpty()) { - if (limitsBuilder_.isEmpty()) { - limitsBuilder_.dispose(); - limitsBuilder_ = null; - limits_ = other.limits_; - bitField0_ = (bitField0_ & ~0x00000002); - limitsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLimitsFieldBuilder() : null; - } else { - limitsBuilder_.addAllMessages(other.limits_); - } - } - } - 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.core.Tasks.Resources parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Resources) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> requestsBuilder_; - - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder setRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addRequests( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * The desired set of resources requested. ResourceNames must be unique within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry requests = 1; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - requests_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - - private java.util.List limits_ = - java.util.Collections.emptyList(); - private void ensureLimitsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - limits_ = new java.util.ArrayList(limits_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> limitsBuilder_; - - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List getLimitsList() { - if (limitsBuilder_ == null) { - return java.util.Collections.unmodifiableList(limits_); - } else { - return limitsBuilder_.getMessageList(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public int getLimitsCount() { - if (limitsBuilder_ == null) { - return limits_.size(); - } else { - return limitsBuilder_.getCount(); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry getLimits(int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); - } else { - return limitsBuilder_.getMessage(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.set(index, value); - onChanged(); - } else { - limitsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder setLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.set(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits(flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(value); - onChanged(); - } else { - limitsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry value) { - if (limitsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLimitsIsMutable(); - limits_.add(index, value); - onChanged(); - } else { - limitsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addLimits( - int index, flyteidl.core.Tasks.Resources.ResourceEntry.Builder builderForValue) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.add(index, builderForValue.build()); - onChanged(); - } else { - limitsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder addAllLimits( - java.lang.Iterable values) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, limits_); - onChanged(); - } else { - limitsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder clearLimits() { - if (limitsBuilder_ == null) { - limits_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - limitsBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public Builder removeLimits(int index) { - if (limitsBuilder_ == null) { - ensureLimitsIsMutable(); - limits_.remove(index); - onChanged(); - } else { - limitsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder getLimitsBuilder( - int index) { - return getLimitsFieldBuilder().getBuilder(index); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder getLimitsOrBuilder( - int index) { - if (limitsBuilder_ == null) { - return limits_.get(index); } else { - return limitsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsOrBuilderList() { - if (limitsBuilder_ != null) { - return limitsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(limits_); - } - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder() { - return getLimitsFieldBuilder().addBuilder( - flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public flyteidl.core.Tasks.Resources.ResourceEntry.Builder addLimitsBuilder( - int index) { - return getLimitsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.Resources.ResourceEntry.getDefaultInstance()); - } - /** - *
-       * Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
-       * within the list.
-       * 
- * - * repeated .flyteidl.core.Resources.ResourceEntry limits = 2; - */ - public java.util.List - getLimitsBuilderList() { - return getLimitsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder> - getLimitsFieldBuilder() { - if (limitsBuilder_ == null) { - limitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.Resources.ResourceEntry, flyteidl.core.Tasks.Resources.ResourceEntry.Builder, flyteidl.core.Tasks.Resources.ResourceEntryOrBuilder>( - limits_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - limits_ = null; - } - return limitsBuilder_; - } - @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.core.Resources) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Resources) - private static final flyteidl.core.Tasks.Resources DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Resources(); - } - - public static flyteidl.core.Tasks.Resources getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Resources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Resources(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.core.Tasks.Resources getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GPUAcceleratorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.GPUAccelerator) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * This can be any arbitrary string, and should be informed by the labels or taints
-     * associated with the nodes in question. Default cloud provider labels typically
-     * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-     * 
- * - * string device = 1; - */ - java.lang.String getDevice(); - /** - *
-     * This can be any arbitrary string, and should be informed by the labels or taints
-     * associated with the nodes in question. Default cloud provider labels typically
-     * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-     * 
- * - * string device = 1; - */ - com.google.protobuf.ByteString - getDeviceBytes(); - - /** - * bool unpartitioned = 2; - */ - boolean getUnpartitioned(); - - /** - *
-     * Like `device`, this can be any arbitrary string, and should be informed by
-     * the labels or taints associated with the nodes in question. Default cloud
-     * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-     * 
- * - * string partition_size = 3; - */ - java.lang.String getPartitionSize(); - /** - *
-     * Like `device`, this can be any arbitrary string, and should be informed by
-     * the labels or taints associated with the nodes in question. Default cloud
-     * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-     * 
- * - * string partition_size = 3; - */ - com.google.protobuf.ByteString - getPartitionSizeBytes(); - - public flyteidl.core.Tasks.GPUAccelerator.PartitionSizeValueCase getPartitionSizeValueCase(); - } - /** - *
-   * Metadata associated with the GPU accelerator to allocate to a task. Contains
-   * information about device type, and for multi-instance GPUs, the partition size to
-   * use.
-   * 
- * - * Protobuf type {@code flyteidl.core.GPUAccelerator} - */ - public static final class GPUAccelerator extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.GPUAccelerator) - GPUAcceleratorOrBuilder { - private static final long serialVersionUID = 0L; - // Use GPUAccelerator.newBuilder() to construct. - private GPUAccelerator(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GPUAccelerator() { - device_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GPUAccelerator( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - device_ = s; - break; - } - case 16: { - partitionSizeValueCase_ = 2; - partitionSizeValue_ = input.readBool(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - partitionSizeValueCase_ = 3; - partitionSizeValue_ = s; - 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.core.Tasks.internal_static_flyteidl_core_GPUAccelerator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_GPUAccelerator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.GPUAccelerator.class, flyteidl.core.Tasks.GPUAccelerator.Builder.class); - } - - private int partitionSizeValueCase_ = 0; - private java.lang.Object partitionSizeValue_; - public enum PartitionSizeValueCase - implements com.google.protobuf.Internal.EnumLite { - UNPARTITIONED(2), - PARTITION_SIZE(3), - PARTITIONSIZEVALUE_NOT_SET(0); - private final int value; - private PartitionSizeValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PartitionSizeValueCase valueOf(int value) { - return forNumber(value); - } - - public static PartitionSizeValueCase forNumber(int value) { - switch (value) { - case 2: return UNPARTITIONED; - case 3: return PARTITION_SIZE; - case 0: return PARTITIONSIZEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public PartitionSizeValueCase - getPartitionSizeValueCase() { - return PartitionSizeValueCase.forNumber( - partitionSizeValueCase_); - } - - public static final int DEVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object device_; - /** - *
-     * This can be any arbitrary string, and should be informed by the labels or taints
-     * associated with the nodes in question. Default cloud provider labels typically
-     * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-     * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } - } - /** - *
-     * This can be any arbitrary string, and should be informed by the labels or taints
-     * associated with the nodes in question. Default cloud provider labels typically
-     * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-     * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNPARTITIONED_FIELD_NUMBER = 2; - /** - * bool unpartitioned = 2; - */ - public boolean getUnpartitioned() { - if (partitionSizeValueCase_ == 2) { - return (java.lang.Boolean) partitionSizeValue_; - } - return false; - } - - public static final int PARTITION_SIZE_FIELD_NUMBER = 3; - /** - *
-     * Like `device`, this can be any arbitrary string, and should be informed by
-     * the labels or taints associated with the nodes in question. Default cloud
-     * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-     * 
- * - * string partition_size = 3; - */ - public java.lang.String getPartitionSize() { - java.lang.Object ref = ""; - if (partitionSizeValueCase_ == 3) { - ref = partitionSizeValue_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (partitionSizeValueCase_ == 3) { - partitionSizeValue_ = s; - } - return s; - } - } - /** - *
-     * Like `device`, this can be any arbitrary string, and should be informed by
-     * the labels or taints associated with the nodes in question. Default cloud
-     * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-     * 
- * - * string partition_size = 3; - */ - public com.google.protobuf.ByteString - getPartitionSizeBytes() { - java.lang.Object ref = ""; - if (partitionSizeValueCase_ == 3) { - ref = partitionSizeValue_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (partitionSizeValueCase_ == 3) { - partitionSizeValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getDeviceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, device_); - } - if (partitionSizeValueCase_ == 2) { - output.writeBool( - 2, (boolean)((java.lang.Boolean) partitionSizeValue_)); - } - if (partitionSizeValueCase_ == 3) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, partitionSizeValue_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getDeviceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, device_); - } - if (partitionSizeValueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 2, (boolean)((java.lang.Boolean) partitionSizeValue_)); - } - if (partitionSizeValueCase_ == 3) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, partitionSizeValue_); - } - 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.core.Tasks.GPUAccelerator)) { - return super.equals(obj); - } - flyteidl.core.Tasks.GPUAccelerator other = (flyteidl.core.Tasks.GPUAccelerator) obj; - - if (!getDevice() - .equals(other.getDevice())) return false; - if (!getPartitionSizeValueCase().equals(other.getPartitionSizeValueCase())) return false; - switch (partitionSizeValueCase_) { - case 2: - if (getUnpartitioned() - != other.getUnpartitioned()) return false; - break; - case 3: - if (!getPartitionSize() - .equals(other.getPartitionSize())) 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(); - hash = (37 * hash) + DEVICE_FIELD_NUMBER; - hash = (53 * hash) + getDevice().hashCode(); - switch (partitionSizeValueCase_) { - case 2: - hash = (37 * hash) + UNPARTITIONED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUnpartitioned()); - break; - case 3: - hash = (37 * hash) + PARTITION_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPartitionSize().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.GPUAccelerator parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.GPUAccelerator parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.GPUAccelerator 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.core.Tasks.GPUAccelerator parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.GPUAccelerator 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.core.Tasks.GPUAccelerator parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.GPUAccelerator 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.core.Tasks.GPUAccelerator 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; - } - /** - *
-     * Metadata associated with the GPU accelerator to allocate to a task. Contains
-     * information about device type, and for multi-instance GPUs, the partition size to
-     * use.
-     * 
- * - * Protobuf type {@code flyteidl.core.GPUAccelerator} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.GPUAccelerator) - flyteidl.core.Tasks.GPUAcceleratorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_GPUAccelerator_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_GPUAccelerator_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.GPUAccelerator.class, flyteidl.core.Tasks.GPUAccelerator.Builder.class); - } - - // Construct using flyteidl.core.Tasks.GPUAccelerator.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(); - device_ = ""; - - partitionSizeValueCase_ = 0; - partitionSizeValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_GPUAccelerator_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.GPUAccelerator getDefaultInstanceForType() { - return flyteidl.core.Tasks.GPUAccelerator.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.GPUAccelerator build() { - flyteidl.core.Tasks.GPUAccelerator result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.GPUAccelerator buildPartial() { - flyteidl.core.Tasks.GPUAccelerator result = new flyteidl.core.Tasks.GPUAccelerator(this); - result.device_ = device_; - if (partitionSizeValueCase_ == 2) { - result.partitionSizeValue_ = partitionSizeValue_; - } - if (partitionSizeValueCase_ == 3) { - result.partitionSizeValue_ = partitionSizeValue_; - } - result.partitionSizeValueCase_ = partitionSizeValueCase_; - 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.core.Tasks.GPUAccelerator) { - return mergeFrom((flyteidl.core.Tasks.GPUAccelerator)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.GPUAccelerator other) { - if (other == flyteidl.core.Tasks.GPUAccelerator.getDefaultInstance()) return this; - if (!other.getDevice().isEmpty()) { - device_ = other.device_; - onChanged(); - } - switch (other.getPartitionSizeValueCase()) { - case UNPARTITIONED: { - setUnpartitioned(other.getUnpartitioned()); - break; - } - case PARTITION_SIZE: { - partitionSizeValueCase_ = 3; - partitionSizeValue_ = other.partitionSizeValue_; - onChanged(); - break; - } - case PARTITIONSIZEVALUE_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.core.Tasks.GPUAccelerator parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.GPUAccelerator) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int partitionSizeValueCase_ = 0; - private java.lang.Object partitionSizeValue_; - public PartitionSizeValueCase - getPartitionSizeValueCase() { - return PartitionSizeValueCase.forNumber( - partitionSizeValueCase_); - } - - public Builder clearPartitionSizeValue() { - partitionSizeValueCase_ = 0; - partitionSizeValue_ = null; - onChanged(); - return this; - } - - - private java.lang.Object device_ = ""; - /** - *
-       * This can be any arbitrary string, and should be informed by the labels or taints
-       * associated with the nodes in question. Default cloud provider labels typically
-       * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-       * 
- * - * string device = 1; - */ - public java.lang.String getDevice() { - java.lang.Object ref = device_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - device_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * This can be any arbitrary string, and should be informed by the labels or taints
-       * associated with the nodes in question. Default cloud provider labels typically
-       * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-       * 
- * - * string device = 1; - */ - public com.google.protobuf.ByteString - getDeviceBytes() { - java.lang.Object ref = device_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - device_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * This can be any arbitrary string, and should be informed by the labels or taints
-       * associated with the nodes in question. Default cloud provider labels typically
-       * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-       * 
- * - * string device = 1; - */ - public Builder setDevice( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - device_ = value; - onChanged(); - return this; - } - /** - *
-       * This can be any arbitrary string, and should be informed by the labels or taints
-       * associated with the nodes in question. Default cloud provider labels typically
-       * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-       * 
- * - * string device = 1; - */ - public Builder clearDevice() { - - device_ = getDefaultInstance().getDevice(); - onChanged(); - return this; - } - /** - *
-       * This can be any arbitrary string, and should be informed by the labels or taints
-       * associated with the nodes in question. Default cloud provider labels typically
-       * use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc.
-       * 
- * - * string device = 1; - */ - public Builder setDeviceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - device_ = value; - onChanged(); - return this; - } - - /** - * bool unpartitioned = 2; - */ - public boolean getUnpartitioned() { - if (partitionSizeValueCase_ == 2) { - return (java.lang.Boolean) partitionSizeValue_; - } - return false; - } - /** - * bool unpartitioned = 2; - */ - public Builder setUnpartitioned(boolean value) { - partitionSizeValueCase_ = 2; - partitionSizeValue_ = value; - onChanged(); - return this; - } - /** - * bool unpartitioned = 2; - */ - public Builder clearUnpartitioned() { - if (partitionSizeValueCase_ == 2) { - partitionSizeValueCase_ = 0; - partitionSizeValue_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * Like `device`, this can be any arbitrary string, and should be informed by
-       * the labels or taints associated with the nodes in question. Default cloud
-       * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-       * 
- * - * string partition_size = 3; - */ - public java.lang.String getPartitionSize() { - java.lang.Object ref = ""; - if (partitionSizeValueCase_ == 3) { - ref = partitionSizeValue_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (partitionSizeValueCase_ == 3) { - partitionSizeValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Like `device`, this can be any arbitrary string, and should be informed by
-       * the labels or taints associated with the nodes in question. Default cloud
-       * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-       * 
- * - * string partition_size = 3; - */ - public com.google.protobuf.ByteString - getPartitionSizeBytes() { - java.lang.Object ref = ""; - if (partitionSizeValueCase_ == 3) { - ref = partitionSizeValue_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (partitionSizeValueCase_ == 3) { - partitionSizeValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Like `device`, this can be any arbitrary string, and should be informed by
-       * the labels or taints associated with the nodes in question. Default cloud
-       * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-       * 
- * - * string partition_size = 3; - */ - public Builder setPartitionSize( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - partitionSizeValueCase_ = 3; - partitionSizeValue_ = value; - onChanged(); - return this; - } - /** - *
-       * Like `device`, this can be any arbitrary string, and should be informed by
-       * the labels or taints associated with the nodes in question. Default cloud
-       * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-       * 
- * - * string partition_size = 3; - */ - public Builder clearPartitionSize() { - if (partitionSizeValueCase_ == 3) { - partitionSizeValueCase_ = 0; - partitionSizeValue_ = null; - onChanged(); - } - return this; - } - /** - *
-       * Like `device`, this can be any arbitrary string, and should be informed by
-       * the labels or taints associated with the nodes in question. Default cloud
-       * provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc.
-       * 
- * - * string partition_size = 3; - */ - public Builder setPartitionSizeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - partitionSizeValueCase_ = 3; - partitionSizeValue_ = value; - onChanged(); - return this; - } - @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.core.GPUAccelerator) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.GPUAccelerator) - private static final flyteidl.core.Tasks.GPUAccelerator DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.GPUAccelerator(); - } - - public static flyteidl.core.Tasks.GPUAccelerator getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GPUAccelerator parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GPUAccelerator(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.core.Tasks.GPUAccelerator getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExtendedResourcesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ExtendedResources) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - boolean hasGpuAccelerator(); - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - flyteidl.core.Tasks.GPUAccelerator getGpuAccelerator(); - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - flyteidl.core.Tasks.GPUAcceleratorOrBuilder getGpuAcceleratorOrBuilder(); - } - /** - *
-   * Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to
-   * allocate to a task.
-   * 
- * - * Protobuf type {@code flyteidl.core.ExtendedResources} - */ - public static final class ExtendedResources extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ExtendedResources) - ExtendedResourcesOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExtendedResources.newBuilder() to construct. - private ExtendedResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExtendedResources() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExtendedResources( - 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.Tasks.GPUAccelerator.Builder subBuilder = null; - if (gpuAccelerator_ != null) { - subBuilder = gpuAccelerator_.toBuilder(); - } - gpuAccelerator_ = input.readMessage(flyteidl.core.Tasks.GPUAccelerator.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(gpuAccelerator_); - gpuAccelerator_ = 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.core.Tasks.internal_static_flyteidl_core_ExtendedResources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ExtendedResources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ExtendedResources.class, flyteidl.core.Tasks.ExtendedResources.Builder.class); - } - - public static final int GPU_ACCELERATOR_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.GPUAccelerator gpuAccelerator_; - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public boolean hasGpuAccelerator() { - return gpuAccelerator_ != null; - } - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public flyteidl.core.Tasks.GPUAccelerator getGpuAccelerator() { - return gpuAccelerator_ == null ? flyteidl.core.Tasks.GPUAccelerator.getDefaultInstance() : gpuAccelerator_; - } - /** - *
-     * GPU accelerator to select for task. Contains information about device type, and
-     * for multi-instance GPUs, the partition size to use.
-     * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public flyteidl.core.Tasks.GPUAcceleratorOrBuilder getGpuAcceleratorOrBuilder() { - return getGpuAccelerator(); - } - - 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 (gpuAccelerator_ != null) { - output.writeMessage(1, getGpuAccelerator()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (gpuAccelerator_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGpuAccelerator()); - } - 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.core.Tasks.ExtendedResources)) { - return super.equals(obj); - } - flyteidl.core.Tasks.ExtendedResources other = (flyteidl.core.Tasks.ExtendedResources) obj; - - if (hasGpuAccelerator() != other.hasGpuAccelerator()) return false; - if (hasGpuAccelerator()) { - if (!getGpuAccelerator() - .equals(other.getGpuAccelerator())) 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 (hasGpuAccelerator()) { - hash = (37 * hash) + GPU_ACCELERATOR_FIELD_NUMBER; - hash = (53 * hash) + getGpuAccelerator().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.ExtendedResources parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ExtendedResources parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ExtendedResources 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.core.Tasks.ExtendedResources parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ExtendedResources 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.core.Tasks.ExtendedResources parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ExtendedResources 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.core.Tasks.ExtendedResources 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; - } - /** - *
-     * Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to
-     * allocate to a task.
-     * 
- * - * Protobuf type {@code flyteidl.core.ExtendedResources} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ExtendedResources) - flyteidl.core.Tasks.ExtendedResourcesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ExtendedResources_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ExtendedResources_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ExtendedResources.class, flyteidl.core.Tasks.ExtendedResources.Builder.class); - } - - // Construct using flyteidl.core.Tasks.ExtendedResources.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 (gpuAcceleratorBuilder_ == null) { - gpuAccelerator_ = null; - } else { - gpuAccelerator_ = null; - gpuAcceleratorBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ExtendedResources_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.ExtendedResources getDefaultInstanceForType() { - return flyteidl.core.Tasks.ExtendedResources.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.ExtendedResources build() { - flyteidl.core.Tasks.ExtendedResources result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.ExtendedResources buildPartial() { - flyteidl.core.Tasks.ExtendedResources result = new flyteidl.core.Tasks.ExtendedResources(this); - if (gpuAcceleratorBuilder_ == null) { - result.gpuAccelerator_ = gpuAccelerator_; - } else { - result.gpuAccelerator_ = gpuAcceleratorBuilder_.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.core.Tasks.ExtendedResources) { - return mergeFrom((flyteidl.core.Tasks.ExtendedResources)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.ExtendedResources other) { - if (other == flyteidl.core.Tasks.ExtendedResources.getDefaultInstance()) return this; - if (other.hasGpuAccelerator()) { - mergeGpuAccelerator(other.getGpuAccelerator()); - } - 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.core.Tasks.ExtendedResources parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.ExtendedResources) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.GPUAccelerator gpuAccelerator_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.GPUAccelerator, flyteidl.core.Tasks.GPUAccelerator.Builder, flyteidl.core.Tasks.GPUAcceleratorOrBuilder> gpuAcceleratorBuilder_; - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public boolean hasGpuAccelerator() { - return gpuAcceleratorBuilder_ != null || gpuAccelerator_ != null; - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public flyteidl.core.Tasks.GPUAccelerator getGpuAccelerator() { - if (gpuAcceleratorBuilder_ == null) { - return gpuAccelerator_ == null ? flyteidl.core.Tasks.GPUAccelerator.getDefaultInstance() : gpuAccelerator_; - } else { - return gpuAcceleratorBuilder_.getMessage(); - } - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public Builder setGpuAccelerator(flyteidl.core.Tasks.GPUAccelerator value) { - if (gpuAcceleratorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gpuAccelerator_ = value; - onChanged(); - } else { - gpuAcceleratorBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public Builder setGpuAccelerator( - flyteidl.core.Tasks.GPUAccelerator.Builder builderForValue) { - if (gpuAcceleratorBuilder_ == null) { - gpuAccelerator_ = builderForValue.build(); - onChanged(); - } else { - gpuAcceleratorBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public Builder mergeGpuAccelerator(flyteidl.core.Tasks.GPUAccelerator value) { - if (gpuAcceleratorBuilder_ == null) { - if (gpuAccelerator_ != null) { - gpuAccelerator_ = - flyteidl.core.Tasks.GPUAccelerator.newBuilder(gpuAccelerator_).mergeFrom(value).buildPartial(); - } else { - gpuAccelerator_ = value; - } - onChanged(); - } else { - gpuAcceleratorBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public Builder clearGpuAccelerator() { - if (gpuAcceleratorBuilder_ == null) { - gpuAccelerator_ = null; - onChanged(); - } else { - gpuAccelerator_ = null; - gpuAcceleratorBuilder_ = null; - } - - return this; - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public flyteidl.core.Tasks.GPUAccelerator.Builder getGpuAcceleratorBuilder() { - - onChanged(); - return getGpuAcceleratorFieldBuilder().getBuilder(); - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - public flyteidl.core.Tasks.GPUAcceleratorOrBuilder getGpuAcceleratorOrBuilder() { - if (gpuAcceleratorBuilder_ != null) { - return gpuAcceleratorBuilder_.getMessageOrBuilder(); - } else { - return gpuAccelerator_ == null ? - flyteidl.core.Tasks.GPUAccelerator.getDefaultInstance() : gpuAccelerator_; - } - } - /** - *
-       * GPU accelerator to select for task. Contains information about device type, and
-       * for multi-instance GPUs, the partition size to use.
-       * 
- * - * .flyteidl.core.GPUAccelerator gpu_accelerator = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.GPUAccelerator, flyteidl.core.Tasks.GPUAccelerator.Builder, flyteidl.core.Tasks.GPUAcceleratorOrBuilder> - getGpuAcceleratorFieldBuilder() { - if (gpuAcceleratorBuilder_ == null) { - gpuAcceleratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.GPUAccelerator, flyteidl.core.Tasks.GPUAccelerator.Builder, flyteidl.core.Tasks.GPUAcceleratorOrBuilder>( - getGpuAccelerator(), - getParentForChildren(), - isClean()); - gpuAccelerator_ = null; - } - return gpuAcceleratorBuilder_; - } - @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.core.ExtendedResources) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ExtendedResources) - private static final flyteidl.core.Tasks.ExtendedResources DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.ExtendedResources(); - } - - public static flyteidl.core.Tasks.ExtendedResources getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtendedResources parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExtendedResources(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.core.Tasks.ExtendedResources getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RuntimeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.RuntimeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - int getTypeValue(); - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType(); - - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - java.lang.String getVersion(); - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - com.google.protobuf.ByteString - getVersionBytes(); - - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - java.lang.String getFlavor(); - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - com.google.protobuf.ByteString - getFlavorBytes(); - } - /** - *
-   * Runtime information. This is loosely defined to allow for extensibility.
-   * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class RuntimeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.RuntimeMetadata) - RuntimeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use RuntimeMetadata.newBuilder() to construct. - private RuntimeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RuntimeMetadata() { - type_ = 0; - version_ = ""; - flavor_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RuntimeMetadata( - 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 8: { - int rawValue = input.readEnum(); - - type_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - version_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - flavor_ = s; - 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.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.RuntimeMetadata.RuntimeType} - */ - public enum RuntimeType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * OTHER = 0; - */ - OTHER(0), - /** - * FLYTE_SDK = 1; - */ - FLYTE_SDK(1), - UNRECOGNIZED(-1), - ; - - /** - * OTHER = 0; - */ - public static final int OTHER_VALUE = 0; - /** - * FLYTE_SDK = 1; - */ - public static final int FLYTE_SDK_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RuntimeType valueOf(int value) { - return forNumber(value); - } - - public static RuntimeType forNumber(int value) { - switch (value) { - case 0: return OTHER; - case 1: return FLYTE_SDK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RuntimeType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RuntimeType findValueByNumber(int number) { - return RuntimeType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.RuntimeMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final RuntimeType[] VALUES = values(); - - public static RuntimeType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RuntimeType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.RuntimeMetadata.RuntimeType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_; - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-     * Type of runtime.
-     * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - - public static final int VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object version_; - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - /** - *
-     * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-     * checks to ensure tighter validation or setting expectations.
-     * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FLAVOR_FIELD_NUMBER = 3; - private volatile java.lang.Object flavor_; - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flavor_ = s; - return s; - } - } - /** - *
-     *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-     * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - output.writeEnum(1, type_); - } - if (!getVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); - } - if (!getFlavorBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, flavor_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ != flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.OTHER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, type_); - } - if (!getVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); - } - if (!getFlavorBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, flavor_); - } - 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.core.Tasks.RuntimeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.RuntimeMetadata other = (flyteidl.core.Tasks.RuntimeMetadata) obj; - - if (type_ != other.type_) return false; - if (!getVersion() - .equals(other.getVersion())) return false; - if (!getFlavor() - .equals(other.getFlavor())) 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(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + FLAVOR_FIELD_NUMBER; - hash = (53 * hash) + getFlavor().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.RuntimeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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.core.Tasks.RuntimeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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.core.Tasks.RuntimeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.RuntimeMetadata 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.core.Tasks.RuntimeMetadata 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; - } - /** - *
-     * Runtime information. This is loosely defined to allow for extensibility.
-     * 
- * - * Protobuf type {@code flyteidl.core.RuntimeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.RuntimeMetadata) - flyteidl.core.Tasks.RuntimeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.RuntimeMetadata.class, flyteidl.core.Tasks.RuntimeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.RuntimeMetadata.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(); - type_ = 0; - - version_ = ""; - - flavor_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_RuntimeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata build() { - flyteidl.core.Tasks.RuntimeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.RuntimeMetadata buildPartial() { - flyteidl.core.Tasks.RuntimeMetadata result = new flyteidl.core.Tasks.RuntimeMetadata(this); - result.type_ = type_; - result.version_ = version_; - result.flavor_ = flavor_; - 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.core.Tasks.RuntimeMetadata) { - return mergeFrom((flyteidl.core.Tasks.RuntimeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.RuntimeMetadata other) { - if (other == flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - onChanged(); - } - if (!other.getFlavor().isEmpty()) { - flavor_ = other.flavor_; - onChanged(); - } - 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.core.Tasks.RuntimeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.RuntimeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int type_ = 0; - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public flyteidl.core.Tasks.RuntimeMetadata.RuntimeType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.RuntimeMetadata.RuntimeType result = flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.valueOf(type_); - return result == null ? flyteidl.core.Tasks.RuntimeMetadata.RuntimeType.UNRECOGNIZED : result; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder setType(flyteidl.core.Tasks.RuntimeMetadata.RuntimeType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Type of runtime.
-       * 
- * - * .flyteidl.core.RuntimeMetadata.RuntimeType type = 1; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object version_ = ""; - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public com.google.protobuf.ByteString - getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - version_ = value; - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder clearVersion() { - - version_ = getDefaultInstance().getVersion(); - onChanged(); - return this; - } - /** - *
-       * Version of the runtime. All versions should be backward compatible. However, certain cases call for version
-       * checks to ensure tighter validation or setting expectations.
-       * 
- * - * string version = 2; - */ - public Builder setVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - version_ = value; - onChanged(); - return this; - } - - private java.lang.Object flavor_ = ""; - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public java.lang.String getFlavor() { - java.lang.Object ref = flavor_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flavor_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public com.google.protobuf.ByteString - getFlavorBytes() { - java.lang.Object ref = flavor_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flavor_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavor( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - flavor_ = value; - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder clearFlavor() { - - flavor_ = getDefaultInstance().getFlavor(); - onChanged(); - return this; - } - /** - *
-       *+optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
-       * 
- * - * string flavor = 3; - */ - public Builder setFlavorBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - flavor_ = value; - onChanged(); - return this; - } - @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.core.RuntimeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.RuntimeMetadata) - private static final flyteidl.core.Tasks.RuntimeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.RuntimeMetadata(); - } - - public static flyteidl.core.Tasks.RuntimeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RuntimeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RuntimeMetadata(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.core.Tasks.RuntimeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - boolean getDiscoverable(); - - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - boolean hasRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadata getRuntime(); - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder(); - - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - java.lang.String getDiscoveryVersion(); - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - com.google.protobuf.ByteString - getDiscoveryVersionBytes(); - - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - java.lang.String getDeprecatedErrorMessage(); - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes(); - - /** - * bool interruptible = 8; - */ - boolean getInterruptible(); - - /** - *
-     * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
-     * 
- * - * bool cache_serializable = 9; - */ - boolean getCacheSerializable(); - - /** - *
-     * Indicates whether the task will generate a Deck URI when it finishes executing.
-     * 
- * - * bool generates_deck = 10; - */ - boolean getGeneratesDeck(); - - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - int getTagsCount(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - boolean containsTags( - java.lang.String key); - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTags(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - java.util.Map - getTagsMap(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - java.lang.String getTagsOrThrow( - java.lang.String key); - - /** - *
-     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-     * identically as, the default PodTemplate configured in FlytePropeller.
-     * 
- * - * string pod_template_name = 12; - */ - java.lang.String getPodTemplateName(); - /** - *
-     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-     * identically as, the default PodTemplate configured in FlytePropeller.
-     * 
- * - * string pod_template_name = 12; - */ - com.google.protobuf.ByteString - getPodTemplateNameBytes(); - - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - java.util.List - getCacheIgnoreInputVarsList(); - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - int getCacheIgnoreInputVarsCount(); - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - java.lang.String getCacheIgnoreInputVars(int index); - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - com.google.protobuf.ByteString - getCacheIgnoreInputVarsBytes(int index); - - public flyteidl.core.Tasks.TaskMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Task Metadata
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class TaskMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskMetadata) - TaskMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskMetadata.newBuilder() to construct. - private TaskMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskMetadata() { - discoveryVersion_ = ""; - deprecatedErrorMessage_ = ""; - podTemplateName_ = ""; - cacheIgnoreInputVars_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskMetadata( - 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 8: { - - discoverable_ = input.readBool(); - break; - } - case 18: { - flyteidl.core.Tasks.RuntimeMetadata.Builder subBuilder = null; - if (runtime_ != null) { - subBuilder = runtime_.toBuilder(); - } - runtime_ = input.readMessage(flyteidl.core.Tasks.RuntimeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runtime_); - runtime_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - discoveryVersion_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - deprecatedErrorMessage_ = s; - break; - } - case 64: { - interruptibleValueCase_ = 8; - interruptibleValue_ = input.readBool(); - break; - } - case 72: { - - cacheSerializable_ = input.readBool(); - break; - } - case 80: { - - generatesDeck_ = input.readBool(); - break; - } - case 90: { - if (!((mutable_bitField0_ & 0x00000200) != 0)) { - tags_ = com.google.protobuf.MapField.newMapField( - TagsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000200; - } - com.google.protobuf.MapEntry - tags__ = input.readMessage( - TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tags_.getMutableMap().put( - tags__.getKey(), tags__.getValue()); - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - podTemplateName_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000800) != 0)) { - cacheIgnoreInputVars_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000800; - } - cacheIgnoreInputVars_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000800) != 0)) { - cacheIgnoreInputVars_ = cacheIgnoreInputVars_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 11: - return internalGetTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - private int bitField0_; - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(8), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 8: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int DISCOVERABLE_FIELD_NUMBER = 1; - private boolean discoverable_; - /** - *
-     * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-     * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - - public static final int RUNTIME_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtime_ != null; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - /** - *
-     * Runtime information about the task.
-     * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - return getRuntime(); - } - - public static final int TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task including user-triggered retries.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int DISCOVERY_VERSION_FIELD_NUMBER = 6; - private volatile java.lang.Object discoveryVersion_; - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - discoveryVersion_ = s; - return s; - } - } - /** - *
-     * Indicates a logical version to apply to this task for the purpose of discovery.
-     * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER = 7; - private volatile java.lang.Object deprecatedErrorMessage_; - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deprecatedErrorMessage_ = s; - return s; - } - } - /** - *
-     * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-     * of the ending of support for a given task.
-     * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 8; - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - public static final int CACHE_SERIALIZABLE_FIELD_NUMBER = 9; - private boolean cacheSerializable_; - /** - *
-     * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
-     * 
- * - * bool cache_serializable = 9; - */ - public boolean getCacheSerializable() { - return cacheSerializable_; - } - - public static final int GENERATES_DECK_FIELD_NUMBER = 10; - private boolean generatesDeck_; - /** - *
-     * Indicates whether the task will generate a Deck URI when it finishes executing.
-     * 
- * - * bool generates_deck = 10; - */ - public boolean getGeneratesDeck() { - return generatesDeck_; - } - - public static final int TAGS_FIELD_NUMBER = 11; - private static final class TagsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> tags_; - private com.google.protobuf.MapField - internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - public boolean containsTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTags().getMap().containsKey(key); - } - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - public java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 11; - */ - - public java.lang.String getTagsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int POD_TEMPLATE_NAME_FIELD_NUMBER = 12; - private volatile java.lang.Object podTemplateName_; - /** - *
-     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-     * identically as, the default PodTemplate configured in FlytePropeller.
-     * 
- * - * string pod_template_name = 12; - */ - public java.lang.String getPodTemplateName() { - java.lang.Object ref = podTemplateName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podTemplateName_ = s; - return s; - } - } - /** - *
-     * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-     * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-     * identically as, the default PodTemplate configured in FlytePropeller.
-     * 
- * - * string pod_template_name = 12; - */ - public com.google.protobuf.ByteString - getPodTemplateNameBytes() { - java.lang.Object ref = podTemplateName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CACHE_IGNORE_INPUT_VARS_FIELD_NUMBER = 13; - private com.google.protobuf.LazyStringList cacheIgnoreInputVars_; - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public com.google.protobuf.ProtocolStringList - getCacheIgnoreInputVarsList() { - return cacheIgnoreInputVars_; - } - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public int getCacheIgnoreInputVarsCount() { - return cacheIgnoreInputVars_.size(); - } - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public java.lang.String getCacheIgnoreInputVars(int index) { - return cacheIgnoreInputVars_.get(index); - } - /** - *
-     * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-     * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public com.google.protobuf.ByteString - getCacheIgnoreInputVarsBytes(int index) { - return cacheIgnoreInputVars_.getByteString(index); - } - - 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 (discoverable_ != false) { - output.writeBool(1, discoverable_); - } - if (runtime_ != null) { - output.writeMessage(2, getRuntime()); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - output.writeBool( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - if (cacheSerializable_ != false) { - output.writeBool(9, cacheSerializable_); - } - if (generatesDeck_ != false) { - output.writeBool(10, generatesDeck_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTags(), - TagsDefaultEntryHolder.defaultEntry, - 11); - if (!getPodTemplateNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, podTemplateName_); - } - for (int i = 0; i < cacheIgnoreInputVars_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cacheIgnoreInputVars_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (discoverable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, discoverable_); - } - if (runtime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRuntime()); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (!getDiscoveryVersionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, discoveryVersion_); - } - if (!getDeprecatedErrorMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, deprecatedErrorMessage_); - } - if (interruptibleValueCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 8, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - if (cacheSerializable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, cacheSerializable_); - } - if (generatesDeck_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(10, generatesDeck_); - } - for (java.util.Map.Entry entry - : internalGetTags().getMap().entrySet()) { - com.google.protobuf.MapEntry - tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, tags__); - } - if (!getPodTemplateNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, podTemplateName_); - } - { - int dataSize = 0; - for (int i = 0; i < cacheIgnoreInputVars_.size(); i++) { - dataSize += computeStringSizeNoTag(cacheIgnoreInputVars_.getRaw(i)); - } - size += dataSize; - size += 1 * getCacheIgnoreInputVarsList().size(); - } - 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.core.Tasks.TaskMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskMetadata other = (flyteidl.core.Tasks.TaskMetadata) obj; - - if (getDiscoverable() - != other.getDiscoverable()) return false; - if (hasRuntime() != other.hasRuntime()) return false; - if (hasRuntime()) { - if (!getRuntime() - .equals(other.getRuntime())) return false; - } - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getDiscoveryVersion() - .equals(other.getDiscoveryVersion())) return false; - if (!getDeprecatedErrorMessage() - .equals(other.getDeprecatedErrorMessage())) return false; - if (getCacheSerializable() - != other.getCacheSerializable()) return false; - if (getGeneratesDeck() - != other.getGeneratesDeck()) return false; - if (!internalGetTags().equals( - other.internalGetTags())) return false; - if (!getPodTemplateName() - .equals(other.getPodTemplateName())) return false; - if (!getCacheIgnoreInputVarsList() - .equals(other.getCacheIgnoreInputVarsList())) return false; - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 8: - if (getInterruptible() - != other.getInterruptible()) 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(); - hash = (37 * hash) + DISCOVERABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDiscoverable()); - if (hasRuntime()) { - hash = (37 * hash) + RUNTIME_FIELD_NUMBER; - hash = (53 * hash) + getRuntime().hashCode(); - } - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - hash = (37 * hash) + DISCOVERY_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDiscoveryVersion().hashCode(); - hash = (37 * hash) + DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getDeprecatedErrorMessage().hashCode(); - hash = (37 * hash) + CACHE_SERIALIZABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCacheSerializable()); - hash = (37 * hash) + GENERATES_DECK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getGeneratesDeck()); - if (!internalGetTags().getMap().isEmpty()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTags().hashCode(); - } - hash = (37 * hash) + POD_TEMPLATE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPodTemplateName().hashCode(); - if (getCacheIgnoreInputVarsCount() > 0) { - hash = (37 * hash) + CACHE_IGNORE_INPUT_VARS_FIELD_NUMBER; - hash = (53 * hash) + getCacheIgnoreInputVarsList().hashCode(); - } - switch (interruptibleValueCase_) { - case 8: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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.core.Tasks.TaskMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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.core.Tasks.TaskMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskMetadata 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.core.Tasks.TaskMetadata 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; - } - /** - *
-     * Task Metadata
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskMetadata) - flyteidl.core.Tasks.TaskMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 11: - return internalGetTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 11: - return internalGetMutableTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskMetadata.class, flyteidl.core.Tasks.TaskMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskMetadata.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(); - discoverable_ = false; - - if (runtimeBuilder_ == null) { - runtime_ = null; - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - discoveryVersion_ = ""; - - deprecatedErrorMessage_ = ""; - - cacheSerializable_ = false; - - generatesDeck_ = false; - - internalGetMutableTags().clear(); - podTemplateName_ = ""; - - cacheIgnoreInputVars_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000800); - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata build() { - flyteidl.core.Tasks.TaskMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskMetadata buildPartial() { - flyteidl.core.Tasks.TaskMetadata result = new flyteidl.core.Tasks.TaskMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.discoverable_ = discoverable_; - if (runtimeBuilder_ == null) { - result.runtime_ = runtime_; - } else { - result.runtime_ = runtimeBuilder_.build(); - } - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - result.discoveryVersion_ = discoveryVersion_; - result.deprecatedErrorMessage_ = deprecatedErrorMessage_; - if (interruptibleValueCase_ == 8) { - result.interruptibleValue_ = interruptibleValue_; - } - result.cacheSerializable_ = cacheSerializable_; - result.generatesDeck_ = generatesDeck_; - result.tags_ = internalGetTags(); - result.tags_.makeImmutable(); - result.podTemplateName_ = podTemplateName_; - if (((bitField0_ & 0x00000800) != 0)) { - cacheIgnoreInputVars_ = cacheIgnoreInputVars_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.cacheIgnoreInputVars_ = cacheIgnoreInputVars_; - result.bitField0_ = to_bitField0_; - result.interruptibleValueCase_ = interruptibleValueCase_; - 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.core.Tasks.TaskMetadata) { - return mergeFrom((flyteidl.core.Tasks.TaskMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskMetadata other) { - if (other == flyteidl.core.Tasks.TaskMetadata.getDefaultInstance()) return this; - if (other.getDiscoverable() != false) { - setDiscoverable(other.getDiscoverable()); - } - if (other.hasRuntime()) { - mergeRuntime(other.getRuntime()); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - if (!other.getDiscoveryVersion().isEmpty()) { - discoveryVersion_ = other.discoveryVersion_; - onChanged(); - } - if (!other.getDeprecatedErrorMessage().isEmpty()) { - deprecatedErrorMessage_ = other.deprecatedErrorMessage_; - onChanged(); - } - if (other.getCacheSerializable() != false) { - setCacheSerializable(other.getCacheSerializable()); - } - if (other.getGeneratesDeck() != false) { - setGeneratesDeck(other.getGeneratesDeck()); - } - internalGetMutableTags().mergeFrom( - other.internalGetTags()); - if (!other.getPodTemplateName().isEmpty()) { - podTemplateName_ = other.podTemplateName_; - onChanged(); - } - if (!other.cacheIgnoreInputVars_.isEmpty()) { - if (cacheIgnoreInputVars_.isEmpty()) { - cacheIgnoreInputVars_ = other.cacheIgnoreInputVars_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureCacheIgnoreInputVarsIsMutable(); - cacheIgnoreInputVars_.addAll(other.cacheIgnoreInputVars_); - } - onChanged(); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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.core.Tasks.TaskMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private boolean discoverable_ ; - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public boolean getDiscoverable() { - return discoverable_; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder setDiscoverable(boolean value) { - - discoverable_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
-       * 
- * - * bool discoverable = 1; - */ - public Builder clearDiscoverable() { - - discoverable_ = false; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.RuntimeMetadata runtime_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> runtimeBuilder_; - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public boolean hasRuntime() { - return runtimeBuilder_ != null || runtime_ != null; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata getRuntime() { - if (runtimeBuilder_ == null) { - return runtime_ == null ? flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } else { - return runtimeBuilder_.getMessage(); - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runtime_ = value; - onChanged(); - } else { - runtimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder setRuntime( - flyteidl.core.Tasks.RuntimeMetadata.Builder builderForValue) { - if (runtimeBuilder_ == null) { - runtime_ = builderForValue.build(); - onChanged(); - } else { - runtimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder mergeRuntime(flyteidl.core.Tasks.RuntimeMetadata value) { - if (runtimeBuilder_ == null) { - if (runtime_ != null) { - runtime_ = - flyteidl.core.Tasks.RuntimeMetadata.newBuilder(runtime_).mergeFrom(value).buildPartial(); - } else { - runtime_ = value; - } - onChanged(); - } else { - runtimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public Builder clearRuntime() { - if (runtimeBuilder_ == null) { - runtime_ = null; - onChanged(); - } else { - runtime_ = null; - runtimeBuilder_ = null; - } - - return this; - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadata.Builder getRuntimeBuilder() { - - onChanged(); - return getRuntimeFieldBuilder().getBuilder(); - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - public flyteidl.core.Tasks.RuntimeMetadataOrBuilder getRuntimeOrBuilder() { - if (runtimeBuilder_ != null) { - return runtimeBuilder_.getMessageOrBuilder(); - } else { - return runtime_ == null ? - flyteidl.core.Tasks.RuntimeMetadata.getDefaultInstance() : runtime_; - } - } - /** - *
-       * Runtime information about the task.
-       * 
- * - * .flyteidl.core.RuntimeMetadata runtime = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder> - getRuntimeFieldBuilder() { - if (runtimeBuilder_ == null) { - runtimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.RuntimeMetadata, flyteidl.core.Tasks.RuntimeMetadata.Builder, flyteidl.core.Tasks.RuntimeMetadataOrBuilder>( - getRuntime(), - getParentForChildren(), - isClean()); - runtime_ = null; - } - return runtimeBuilder_; - } - - private com.google.protobuf.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task including user-triggered retries.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - private java.lang.Object discoveryVersion_ = ""; - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public java.lang.String getDiscoveryVersion() { - java.lang.Object ref = discoveryVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - discoveryVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public com.google.protobuf.ByteString - getDiscoveryVersionBytes() { - java.lang.Object ref = discoveryVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - discoveryVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersion( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - discoveryVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder clearDiscoveryVersion() { - - discoveryVersion_ = getDefaultInstance().getDiscoveryVersion(); - onChanged(); - return this; - } - /** - *
-       * Indicates a logical version to apply to this task for the purpose of discovery.
-       * 
- * - * string discovery_version = 6; - */ - public Builder setDiscoveryVersionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - discoveryVersion_ = value; - onChanged(); - return this; - } - - private java.lang.Object deprecatedErrorMessage_ = ""; - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public java.lang.String getDeprecatedErrorMessage() { - java.lang.Object ref = deprecatedErrorMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deprecatedErrorMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public com.google.protobuf.ByteString - getDeprecatedErrorMessageBytes() { - java.lang.Object ref = deprecatedErrorMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deprecatedErrorMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder clearDeprecatedErrorMessage() { - - deprecatedErrorMessage_ = getDefaultInstance().getDeprecatedErrorMessage(); - onChanged(); - return this; - } - /** - *
-       * If set, this indicates that this task is deprecated.  This will enable owners of tasks to notify consumers
-       * of the ending of support for a given task.
-       * 
- * - * string deprecated_error_message = 7; - */ - public Builder setDeprecatedErrorMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deprecatedErrorMessage_ = value; - onChanged(); - return this; - } - - /** - * bool interruptible = 8; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 8) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 8; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 8; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 8; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 8) { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - } - return this; - } - - private boolean cacheSerializable_ ; - /** - *
-       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
-       * 
- * - * bool cache_serializable = 9; - */ - public boolean getCacheSerializable() { - return cacheSerializable_; - } - /** - *
-       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
-       * 
- * - * bool cache_serializable = 9; - */ - public Builder setCacheSerializable(boolean value) { - - cacheSerializable_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work
-       * 
- * - * bool cache_serializable = 9; - */ - public Builder clearCacheSerializable() { - - cacheSerializable_ = false; - onChanged(); - return this; - } - - private boolean generatesDeck_ ; - /** - *
-       * Indicates whether the task will generate a Deck URI when it finishes executing.
-       * 
- * - * bool generates_deck = 10; - */ - public boolean getGeneratesDeck() { - return generatesDeck_; - } - /** - *
-       * Indicates whether the task will generate a Deck URI when it finishes executing.
-       * 
- * - * bool generates_deck = 10; - */ - public Builder setGeneratesDeck(boolean value) { - - generatesDeck_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates whether the task will generate a Deck URI when it finishes executing.
-       * 
- * - * bool generates_deck = 10; - */ - public Builder clearGeneratesDeck() { - - generatesDeck_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> tags_; - private com.google.protobuf.MapField - internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - private com.google.protobuf.MapField - internalGetMutableTags() { - onChanged();; - if (tags_ == null) { - tags_ = com.google.protobuf.MapField.newMapField( - TagsDefaultEntryHolder.defaultEntry); - } - if (!tags_.isMutable()) { - tags_ = tags_.copy(); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public boolean containsTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTags().getMap().containsKey(key); - } - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public java.lang.String getTagsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTags() { - internalGetMutableTags().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public Builder removeTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTags().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTags() { - return internalGetMutableTags().getMutableMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - public Builder putTags( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTags().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 11; - */ - - public Builder putAllTags( - java.util.Map values) { - internalGetMutableTags().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object podTemplateName_ = ""; - /** - *
-       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-       * identically as, the default PodTemplate configured in FlytePropeller.
-       * 
- * - * string pod_template_name = 12; - */ - public java.lang.String getPodTemplateName() { - java.lang.Object ref = podTemplateName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - podTemplateName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-       * identically as, the default PodTemplate configured in FlytePropeller.
-       * 
- * - * string pod_template_name = 12; - */ - public com.google.protobuf.ByteString - getPodTemplateNameBytes() { - java.lang.Object ref = podTemplateName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - podTemplateName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-       * identically as, the default PodTemplate configured in FlytePropeller.
-       * 
- * - * string pod_template_name = 12; - */ - public Builder setPodTemplateName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - podTemplateName_ = value; - onChanged(); - return this; - } - /** - *
-       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-       * identically as, the default PodTemplate configured in FlytePropeller.
-       * 
- * - * string pod_template_name = 12; - */ - public Builder clearPodTemplateName() { - - podTemplateName_ = getDefaultInstance().getPodTemplateName(); - onChanged(); - return this; - } - /** - *
-       * pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this
-       * task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied
-       * identically as, the default PodTemplate configured in FlytePropeller.
-       * 
- * - * string pod_template_name = 12; - */ - public Builder setPodTemplateNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - podTemplateName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList cacheIgnoreInputVars_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCacheIgnoreInputVarsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - cacheIgnoreInputVars_ = new com.google.protobuf.LazyStringArrayList(cacheIgnoreInputVars_); - bitField0_ |= 0x00000800; - } - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public com.google.protobuf.ProtocolStringList - getCacheIgnoreInputVarsList() { - return cacheIgnoreInputVars_.getUnmodifiableView(); - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public int getCacheIgnoreInputVarsCount() { - return cacheIgnoreInputVars_.size(); - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public java.lang.String getCacheIgnoreInputVars(int index) { - return cacheIgnoreInputVars_.get(index); - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public com.google.protobuf.ByteString - getCacheIgnoreInputVarsBytes(int index) { - return cacheIgnoreInputVars_.getByteString(index); - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public Builder setCacheIgnoreInputVars( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCacheIgnoreInputVarsIsMutable(); - cacheIgnoreInputVars_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public Builder addCacheIgnoreInputVars( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCacheIgnoreInputVarsIsMutable(); - cacheIgnoreInputVars_.add(value); - onChanged(); - return this; - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public Builder addAllCacheIgnoreInputVars( - java.lang.Iterable values) { - ensureCacheIgnoreInputVarsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, cacheIgnoreInputVars_); - onChanged(); - return this; - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public Builder clearCacheIgnoreInputVars() { - cacheIgnoreInputVars_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; - } - /** - *
-       * cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache.
-       * 
- * - * repeated string cache_ignore_input_vars = 13; - */ - public Builder addCacheIgnoreInputVarsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCacheIgnoreInputVarsIsMutable(); - cacheIgnoreInputVars_.add(value); - onChanged(); - return this; - } - @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.core.TaskMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskMetadata) - private static final flyteidl.core.Tasks.TaskMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskMetadata(); - } - - public static flyteidl.core.Tasks.TaskMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskMetadata(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.core.Tasks.TaskMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - java.lang.String getType(); - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadata getMetadata(); - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - boolean hasInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - boolean hasCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.Struct getCustom(); - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - com.google.protobuf.StructOrBuilder getCustomOrBuilder(); - - /** - * .flyteidl.core.Container container = 6; - */ - boolean hasContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.Container getContainer(); - /** - * .flyteidl.core.Container container = 6; - */ - flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder(); - - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - boolean hasK8SPod(); - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - flyteidl.core.Tasks.K8sPod getK8SPod(); - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder(); - - /** - * .flyteidl.core.Sql sql = 18; - */ - boolean hasSql(); - /** - * .flyteidl.core.Sql sql = 18; - */ - flyteidl.core.Tasks.Sql getSql(); - /** - * .flyteidl.core.Sql sql = 18; - */ - flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder(); - - /** - *
-     * This can be used to customize task handling at execution time for the same task type.
-     * 
- * - * int32 task_type_version = 7; - */ - int getTaskTypeVersion(); - - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - boolean hasSecurityContext(); - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - flyteidl.core.Security.SecurityContext getSecurityContext(); - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder(); - - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - boolean hasExtendedResources(); - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - flyteidl.core.Tasks.ExtendedResources getExtendedResources(); - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder(); - - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - int getConfigCount(); - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - boolean containsConfig( - java.lang.String key); - /** - * Use {@link #getConfigMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getConfig(); - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - java.util.Map - getConfigMap(); - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - java.lang.String getConfigOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - java.lang.String getConfigOrThrow( - java.lang.String key); - - public flyteidl.core.Tasks.TaskTemplate.TargetCase getTargetCase(); - } - /** - *
-   * A Task structure that uniquely identifies a task in the system
-   * Tasks are registered as a first step in the system.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class TaskTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskTemplate) - TaskTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskTemplate.newBuilder() to construct. - private TaskTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskTemplate() { - type_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskTemplate( - 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; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - type_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.TaskMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Tasks.TaskMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (custom_ != null) { - subBuilder = custom_.toBuilder(); - } - custom_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(custom_); - custom_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - flyteidl.core.Tasks.Container.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Tasks.Container) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Tasks.Container.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Tasks.Container) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - break; - } - case 56: { - - taskTypeVersion_ = input.readInt32(); - break; - } - case 66: { - flyteidl.core.Security.SecurityContext.Builder subBuilder = null; - if (securityContext_ != null) { - subBuilder = securityContext_.toBuilder(); - } - securityContext_ = input.readMessage(flyteidl.core.Security.SecurityContext.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(securityContext_); - securityContext_ = subBuilder.buildPartial(); - } - - break; - } - case 74: { - flyteidl.core.Tasks.ExtendedResources.Builder subBuilder = null; - if (extendedResources_ != null) { - subBuilder = extendedResources_.toBuilder(); - } - extendedResources_ = input.readMessage(flyteidl.core.Tasks.ExtendedResources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(extendedResources_); - extendedResources_ = subBuilder.buildPartial(); - } - - break; - } - case 130: { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { - config_ = com.google.protobuf.MapField.newMapField( - ConfigDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000800; - } - com.google.protobuf.MapEntry - config__ = input.readMessage( - ConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - config_.getMutableMap().put( - config__.getKey(), config__.getValue()); - break; - } - case 138: { - flyteidl.core.Tasks.K8sPod.Builder subBuilder = null; - if (targetCase_ == 17) { - subBuilder = ((flyteidl.core.Tasks.K8sPod) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Tasks.K8sPod.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Tasks.K8sPod) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 17; - break; - } - case 146: { - flyteidl.core.Tasks.Sql.Builder subBuilder = null; - if (targetCase_ == 18) { - subBuilder = ((flyteidl.core.Tasks.Sql) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Tasks.Sql.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Tasks.Sql) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 18; - 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.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 16: - return internalGetConfig(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - private int bitField0_; - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - CONTAINER(6), - K8S_POD(17), - SQL(18), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return CONTAINER; - case 17: return K8S_POD; - case 18: return SQL; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object type_; - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-     * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-     * implementation registered for the TaskCategory.
-     * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.TaskMetadata metadata_; - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the task.
-     * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 4; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-     * compile-time validation of the workflow to avoid costly runtime failures.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int CUSTOM_FIELD_NUMBER = 5; - private com.google.protobuf.Struct custom_; - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return custom_ != null; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - /** - *
-     * Custom data about the task. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - return getCustom(); - } - - public static final int CONTAINER_FIELD_NUMBER = 6; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - public static final int K8S_POD_FIELD_NUMBER = 17; - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public boolean hasK8SPod() { - return targetCase_ == 17; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public flyteidl.core.Tasks.K8sPod getK8SPod() { - if (targetCase_ == 17) { - return (flyteidl.core.Tasks.K8sPod) target_; - } - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder() { - if (targetCase_ == 17) { - return (flyteidl.core.Tasks.K8sPod) target_; - } - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - - public static final int SQL_FIELD_NUMBER = 18; - /** - * .flyteidl.core.Sql sql = 18; - */ - public boolean hasSql() { - return targetCase_ == 18; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public flyteidl.core.Tasks.Sql getSql() { - if (targetCase_ == 18) { - return (flyteidl.core.Tasks.Sql) target_; - } - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder() { - if (targetCase_ == 18) { - return (flyteidl.core.Tasks.Sql) target_; - } - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - - public static final int TASK_TYPE_VERSION_FIELD_NUMBER = 7; - private int taskTypeVersion_; - /** - *
-     * This can be used to customize task handling at execution time for the same task type.
-     * 
- * - * int32 task_type_version = 7; - */ - public int getTaskTypeVersion() { - return taskTypeVersion_; - } - - public static final int SECURITY_CONTEXT_FIELD_NUMBER = 8; - private flyteidl.core.Security.SecurityContext securityContext_; - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public boolean hasSecurityContext() { - return securityContext_ != null; - } - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - /** - *
-     * security_context encapsulates security attributes requested to run this task.
-     * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - return getSecurityContext(); - } - - public static final int EXTENDED_RESOURCES_FIELD_NUMBER = 9; - private flyteidl.core.Tasks.ExtendedResources extendedResources_; - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public boolean hasExtendedResources() { - return extendedResources_ != null; - } - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public flyteidl.core.Tasks.ExtendedResources getExtendedResources() { - return extendedResources_ == null ? flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } - /** - *
-     * Encapsulates all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder() { - return getExtendedResources(); - } - - public static final int CONFIG_FIELD_NUMBER = 16; - private static final class ConfigDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> config_; - private com.google.protobuf.MapField - internalGetConfig() { - if (config_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConfigDefaultEntryHolder.defaultEntry); - } - return config_; - } - - public int getConfigCount() { - return internalGetConfig().getMap().size(); - } - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - public boolean containsConfig( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConfig().getMap().containsKey(key); - } - /** - * Use {@link #getConfigMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConfig() { - return getConfigMap(); - } - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - public java.util.Map getConfigMap() { - return internalGetConfig().getMap(); - } - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - public java.lang.String getConfigOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConfig().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-     * to use as required.
-     * reserve the field numbers 1 through 15 for very frequently occurring message elements
-     * 
- * - * map<string, string> config = 16; - */ - - public java.lang.String getConfigOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConfig().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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()); - } - if (!getTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); - } - if (metadata_ != null) { - output.writeMessage(3, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(4, getInterface()); - } - if (custom_ != null) { - output.writeMessage(5, getCustom()); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Tasks.Container) target_); - } - if (taskTypeVersion_ != 0) { - output.writeInt32(7, taskTypeVersion_); - } - if (securityContext_ != null) { - output.writeMessage(8, getSecurityContext()); - } - if (extendedResources_ != null) { - output.writeMessage(9, getExtendedResources()); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetConfig(), - ConfigDefaultEntryHolder.defaultEntry, - 16); - if (targetCase_ == 17) { - output.writeMessage(17, (flyteidl.core.Tasks.K8sPod) target_); - } - if (targetCase_ == 18) { - output.writeMessage(18, (flyteidl.core.Tasks.Sql) target_); - } - 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()); - } - if (!getTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInterface()); - } - if (custom_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCustom()); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Tasks.Container) target_); - } - if (taskTypeVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, taskTypeVersion_); - } - if (securityContext_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getSecurityContext()); - } - if (extendedResources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getExtendedResources()); - } - for (java.util.Map.Entry entry - : internalGetConfig().getMap().entrySet()) { - com.google.protobuf.MapEntry - config__ = ConfigDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, config__); - } - if (targetCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (flyteidl.core.Tasks.K8sPod) target_); - } - if (targetCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (flyteidl.core.Tasks.Sql) target_); - } - 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.core.Tasks.TaskTemplate)) { - return super.equals(obj); - } - flyteidl.core.Tasks.TaskTemplate other = (flyteidl.core.Tasks.TaskTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getType() - .equals(other.getType())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (hasCustom() != other.hasCustom()) return false; - if (hasCustom()) { - if (!getCustom() - .equals(other.getCustom())) return false; - } - if (getTaskTypeVersion() - != other.getTaskTypeVersion()) return false; - if (hasSecurityContext() != other.hasSecurityContext()) return false; - if (hasSecurityContext()) { - if (!getSecurityContext() - .equals(other.getSecurityContext())) return false; - } - if (hasExtendedResources() != other.hasExtendedResources()) return false; - if (hasExtendedResources()) { - if (!getExtendedResources() - .equals(other.getExtendedResources())) return false; - } - if (!internalGetConfig().equals( - other.internalGetConfig())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getContainer() - .equals(other.getContainer())) return false; - break; - case 17: - if (!getK8SPod() - .equals(other.getK8SPod())) return false; - break; - case 18: - if (!getSql() - .equals(other.getSql())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (hasCustom()) { - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + getCustom().hashCode(); - } - hash = (37 * hash) + TASK_TYPE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getTaskTypeVersion(); - if (hasSecurityContext()) { - hash = (37 * hash) + SECURITY_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getSecurityContext().hashCode(); - } - if (hasExtendedResources()) { - hash = (37 * hash) + EXTENDED_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getExtendedResources().hashCode(); - } - if (!internalGetConfig().getMap().isEmpty()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + internalGetConfig().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + CONTAINER_FIELD_NUMBER; - hash = (53 * hash) + getContainer().hashCode(); - break; - case 17: - hash = (37 * hash) + K8S_POD_FIELD_NUMBER; - hash = (53 * hash) + getK8SPod().hashCode(); - break; - case 18: - hash = (37 * hash) + SQL_FIELD_NUMBER; - hash = (53 * hash) + getSql().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.TaskTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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.core.Tasks.TaskTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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.core.Tasks.TaskTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.TaskTemplate 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.core.Tasks.TaskTemplate 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; - } - /** - *
-     * A Task structure that uniquely identifies a task in the system
-     * Tasks are registered as a first step in the system.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskTemplate) - flyteidl.core.Tasks.TaskTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 16: - return internalGetConfig(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 16: - return internalGetMutableConfig(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.TaskTemplate.class, flyteidl.core.Tasks.TaskTemplate.Builder.class); - } - - // Construct using flyteidl.core.Tasks.TaskTemplate.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; - } - type_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (customBuilder_ == null) { - custom_ = null; - } else { - custom_ = null; - customBuilder_ = null; - } - taskTypeVersion_ = 0; - - if (securityContextBuilder_ == null) { - securityContext_ = null; - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - if (extendedResourcesBuilder_ == null) { - extendedResources_ = null; - } else { - extendedResources_ = null; - extendedResourcesBuilder_ = null; - } - internalGetMutableConfig().clear(); - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_TaskTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return flyteidl.core.Tasks.TaskTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate build() { - flyteidl.core.Tasks.TaskTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.TaskTemplate buildPartial() { - flyteidl.core.Tasks.TaskTemplate result = new flyteidl.core.Tasks.TaskTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.type_ = type_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (customBuilder_ == null) { - result.custom_ = custom_; - } else { - result.custom_ = customBuilder_.build(); - } - if (targetCase_ == 6) { - if (containerBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = containerBuilder_.build(); - } - } - if (targetCase_ == 17) { - if (k8SPodBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = k8SPodBuilder_.build(); - } - } - if (targetCase_ == 18) { - if (sqlBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = sqlBuilder_.build(); - } - } - result.taskTypeVersion_ = taskTypeVersion_; - if (securityContextBuilder_ == null) { - result.securityContext_ = securityContext_; - } else { - result.securityContext_ = securityContextBuilder_.build(); - } - if (extendedResourcesBuilder_ == null) { - result.extendedResources_ = extendedResources_; - } else { - result.extendedResources_ = extendedResourcesBuilder_.build(); - } - result.config_ = internalGetConfig(); - result.config_.makeImmutable(); - result.bitField0_ = to_bitField0_; - result.targetCase_ = targetCase_; - 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.core.Tasks.TaskTemplate) { - return mergeFrom((flyteidl.core.Tasks.TaskTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.TaskTemplate other) { - if (other == flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (other.hasCustom()) { - mergeCustom(other.getCustom()); - } - if (other.getTaskTypeVersion() != 0) { - setTaskTypeVersion(other.getTaskTypeVersion()); - } - if (other.hasSecurityContext()) { - mergeSecurityContext(other.getSecurityContext()); - } - if (other.hasExtendedResources()) { - mergeExtendedResources(other.getExtendedResources()); - } - internalGetMutableConfig().mergeFrom( - other.internalGetConfig()); - switch (other.getTargetCase()) { - case CONTAINER: { - mergeContainer(other.getContainer()); - break; - } - case K8S_POD: { - mergeK8SPod(other.getK8SPod()); - break; - } - case SQL: { - mergeSql(other.getSql()); - break; - } - case TARGET_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.core.Tasks.TaskTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.TaskTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - 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_; - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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(); - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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_; - } - } - /** - *
-       * Auto generated taskId by the system. Task Id uniquely identifies this task globally.
-       * 
- * - * .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_; - } - - private java.lang.Object type_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - type_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder clearType() { - - type_ = getDefaultInstance().getType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
-       * extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
-       * implementation registered for the TaskCategory.
-       * 
- * - * string type = 2; - */ - public Builder setTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - type_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.TaskMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder setMetadata( - flyteidl.core.Tasks.TaskMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder mergeMetadata(flyteidl.core.Tasks.TaskMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Tasks.TaskMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - public flyteidl.core.Tasks.TaskMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Tasks.TaskMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the task.
-       * 
- * - * .flyteidl.core.TaskMetadata metadata = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskMetadata, flyteidl.core.Tasks.TaskMetadata.Builder, flyteidl.core.Tasks.TaskMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees
-       * compile-time validation of the workflow to avoid costly runtime failures.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private com.google.protobuf.Struct custom_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customBuilder_; - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public boolean hasCustom() { - return customBuilder_ != null || custom_ != null; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct getCustom() { - if (customBuilder_ == null) { - return custom_ == null ? com.google.protobuf.Struct.getDefaultInstance() : custom_; - } else { - return customBuilder_.getMessage(); - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - custom_ = value; - onChanged(); - } else { - customBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder setCustom( - com.google.protobuf.Struct.Builder builderForValue) { - if (customBuilder_ == null) { - custom_ = builderForValue.build(); - onChanged(); - } else { - customBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder mergeCustom(com.google.protobuf.Struct value) { - if (customBuilder_ == null) { - if (custom_ != null) { - custom_ = - com.google.protobuf.Struct.newBuilder(custom_).mergeFrom(value).buildPartial(); - } else { - custom_ = value; - } - onChanged(); - } else { - customBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public Builder clearCustom() { - if (customBuilder_ == null) { - custom_ = null; - onChanged(); - } else { - custom_ = null; - customBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.Struct.Builder getCustomBuilder() { - - onChanged(); - return getCustomFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - public com.google.protobuf.StructOrBuilder getCustomOrBuilder() { - if (customBuilder_ != null) { - return customBuilder_.getMessageOrBuilder(); - } else { - return custom_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : custom_; - } - } - /** - *
-       * Custom data about the task. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomFieldBuilder() { - if (customBuilder_ == null) { - customBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustom(), - getParentForChildren(), - isClean()); - custom_ = null; - } - return customBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> containerBuilder_; - /** - * .flyteidl.core.Container container = 6; - */ - public boolean hasContainer() { - return targetCase_ == 6; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container getContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return containerBuilder_.getMessage(); - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder setContainer( - flyteidl.core.Tasks.Container.Builder builderForValue) { - if (containerBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - containerBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder mergeContainer(flyteidl.core.Tasks.Container value) { - if (containerBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Tasks.Container.getDefaultInstance()) { - target_ = flyteidl.core.Tasks.Container.newBuilder((flyteidl.core.Tasks.Container) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - containerBuilder_.mergeFrom(value); - } - containerBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public Builder clearContainer() { - if (containerBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - containerBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.Container.Builder getContainerBuilder() { - return getContainerFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Container container = 6; - */ - public flyteidl.core.Tasks.ContainerOrBuilder getContainerOrBuilder() { - if ((targetCase_ == 6) && (containerBuilder_ != null)) { - return containerBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Tasks.Container) target_; - } - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Container container = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder> - getContainerFieldBuilder() { - if (containerBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Tasks.Container.getDefaultInstance(); - } - containerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Container, flyteidl.core.Tasks.Container.Builder, flyteidl.core.Tasks.ContainerOrBuilder>( - (flyteidl.core.Tasks.Container) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return containerBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder> k8SPodBuilder_; - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public boolean hasK8SPod() { - return targetCase_ == 17; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public flyteidl.core.Tasks.K8sPod getK8SPod() { - if (k8SPodBuilder_ == null) { - if (targetCase_ == 17) { - return (flyteidl.core.Tasks.K8sPod) target_; - } - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } else { - if (targetCase_ == 17) { - return k8SPodBuilder_.getMessage(); - } - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public Builder setK8SPod(flyteidl.core.Tasks.K8sPod value) { - if (k8SPodBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - k8SPodBuilder_.setMessage(value); - } - targetCase_ = 17; - return this; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public Builder setK8SPod( - flyteidl.core.Tasks.K8sPod.Builder builderForValue) { - if (k8SPodBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - k8SPodBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 17; - return this; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public Builder mergeK8SPod(flyteidl.core.Tasks.K8sPod value) { - if (k8SPodBuilder_ == null) { - if (targetCase_ == 17 && - target_ != flyteidl.core.Tasks.K8sPod.getDefaultInstance()) { - target_ = flyteidl.core.Tasks.K8sPod.newBuilder((flyteidl.core.Tasks.K8sPod) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 17) { - k8SPodBuilder_.mergeFrom(value); - } - k8SPodBuilder_.setMessage(value); - } - targetCase_ = 17; - return this; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public Builder clearK8SPod() { - if (k8SPodBuilder_ == null) { - if (targetCase_ == 17) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 17) { - targetCase_ = 0; - target_ = null; - } - k8SPodBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public flyteidl.core.Tasks.K8sPod.Builder getK8SPodBuilder() { - return getK8SPodFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - public flyteidl.core.Tasks.K8sPodOrBuilder getK8SPodOrBuilder() { - if ((targetCase_ == 17) && (k8SPodBuilder_ != null)) { - return k8SPodBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 17) { - return (flyteidl.core.Tasks.K8sPod) target_; - } - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - } - /** - * .flyteidl.core.K8sPod k8s_pod = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder> - getK8SPodFieldBuilder() { - if (k8SPodBuilder_ == null) { - if (!(targetCase_ == 17)) { - target_ = flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - k8SPodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sPod, flyteidl.core.Tasks.K8sPod.Builder, flyteidl.core.Tasks.K8sPodOrBuilder>( - (flyteidl.core.Tasks.K8sPod) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 17; - onChanged();; - return k8SPodBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder> sqlBuilder_; - /** - * .flyteidl.core.Sql sql = 18; - */ - public boolean hasSql() { - return targetCase_ == 18; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public flyteidl.core.Tasks.Sql getSql() { - if (sqlBuilder_ == null) { - if (targetCase_ == 18) { - return (flyteidl.core.Tasks.Sql) target_; - } - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } else { - if (targetCase_ == 18) { - return sqlBuilder_.getMessage(); - } - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public Builder setSql(flyteidl.core.Tasks.Sql value) { - if (sqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - sqlBuilder_.setMessage(value); - } - targetCase_ = 18; - return this; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public Builder setSql( - flyteidl.core.Tasks.Sql.Builder builderForValue) { - if (sqlBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - sqlBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 18; - return this; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public Builder mergeSql(flyteidl.core.Tasks.Sql value) { - if (sqlBuilder_ == null) { - if (targetCase_ == 18 && - target_ != flyteidl.core.Tasks.Sql.getDefaultInstance()) { - target_ = flyteidl.core.Tasks.Sql.newBuilder((flyteidl.core.Tasks.Sql) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 18) { - sqlBuilder_.mergeFrom(value); - } - sqlBuilder_.setMessage(value); - } - targetCase_ = 18; - return this; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public Builder clearSql() { - if (sqlBuilder_ == null) { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 18) { - targetCase_ = 0; - target_ = null; - } - sqlBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public flyteidl.core.Tasks.Sql.Builder getSqlBuilder() { - return getSqlFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Sql sql = 18; - */ - public flyteidl.core.Tasks.SqlOrBuilder getSqlOrBuilder() { - if ((targetCase_ == 18) && (sqlBuilder_ != null)) { - return sqlBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 18) { - return (flyteidl.core.Tasks.Sql) target_; - } - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - } - /** - * .flyteidl.core.Sql sql = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder> - getSqlFieldBuilder() { - if (sqlBuilder_ == null) { - if (!(targetCase_ == 18)) { - target_ = flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - sqlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Sql, flyteidl.core.Tasks.Sql.Builder, flyteidl.core.Tasks.SqlOrBuilder>( - (flyteidl.core.Tasks.Sql) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 18; - onChanged();; - return sqlBuilder_; - } - - private int taskTypeVersion_ ; - /** - *
-       * This can be used to customize task handling at execution time for the same task type.
-       * 
- * - * int32 task_type_version = 7; - */ - public int getTaskTypeVersion() { - return taskTypeVersion_; - } - /** - *
-       * This can be used to customize task handling at execution time for the same task type.
-       * 
- * - * int32 task_type_version = 7; - */ - public Builder setTaskTypeVersion(int value) { - - taskTypeVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * This can be used to customize task handling at execution time for the same task type.
-       * 
- * - * int32 task_type_version = 7; - */ - public Builder clearTaskTypeVersion() { - - taskTypeVersion_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Security.SecurityContext securityContext_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> securityContextBuilder_; - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public boolean hasSecurityContext() { - return securityContextBuilder_ != null || securityContext_ != null; - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public flyteidl.core.Security.SecurityContext getSecurityContext() { - if (securityContextBuilder_ == null) { - return securityContext_ == null ? flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } else { - return securityContextBuilder_.getMessage(); - } - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public Builder setSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - securityContext_ = value; - onChanged(); - } else { - securityContextBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public Builder setSecurityContext( - flyteidl.core.Security.SecurityContext.Builder builderForValue) { - if (securityContextBuilder_ == null) { - securityContext_ = builderForValue.build(); - onChanged(); - } else { - securityContextBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public Builder mergeSecurityContext(flyteidl.core.Security.SecurityContext value) { - if (securityContextBuilder_ == null) { - if (securityContext_ != null) { - securityContext_ = - flyteidl.core.Security.SecurityContext.newBuilder(securityContext_).mergeFrom(value).buildPartial(); - } else { - securityContext_ = value; - } - onChanged(); - } else { - securityContextBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public Builder clearSecurityContext() { - if (securityContextBuilder_ == null) { - securityContext_ = null; - onChanged(); - } else { - securityContext_ = null; - securityContextBuilder_ = null; - } - - return this; - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public flyteidl.core.Security.SecurityContext.Builder getSecurityContextBuilder() { - - onChanged(); - return getSecurityContextFieldBuilder().getBuilder(); - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - public flyteidl.core.Security.SecurityContextOrBuilder getSecurityContextOrBuilder() { - if (securityContextBuilder_ != null) { - return securityContextBuilder_.getMessageOrBuilder(); - } else { - return securityContext_ == null ? - flyteidl.core.Security.SecurityContext.getDefaultInstance() : securityContext_; - } - } - /** - *
-       * security_context encapsulates security attributes requested to run this task.
-       * 
- * - * .flyteidl.core.SecurityContext security_context = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder> - getSecurityContextFieldBuilder() { - if (securityContextBuilder_ == null) { - securityContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Security.SecurityContext, flyteidl.core.Security.SecurityContext.Builder, flyteidl.core.Security.SecurityContextOrBuilder>( - getSecurityContext(), - getParentForChildren(), - isClean()); - securityContext_ = null; - } - return securityContextBuilder_; - } - - private flyteidl.core.Tasks.ExtendedResources extendedResources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder> extendedResourcesBuilder_; - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public boolean hasExtendedResources() { - return extendedResourcesBuilder_ != null || extendedResources_ != null; - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public flyteidl.core.Tasks.ExtendedResources getExtendedResources() { - if (extendedResourcesBuilder_ == null) { - return extendedResources_ == null ? flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } else { - return extendedResourcesBuilder_.getMessage(); - } - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public Builder setExtendedResources(flyteidl.core.Tasks.ExtendedResources value) { - if (extendedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - extendedResources_ = value; - onChanged(); - } else { - extendedResourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public Builder setExtendedResources( - flyteidl.core.Tasks.ExtendedResources.Builder builderForValue) { - if (extendedResourcesBuilder_ == null) { - extendedResources_ = builderForValue.build(); - onChanged(); - } else { - extendedResourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public Builder mergeExtendedResources(flyteidl.core.Tasks.ExtendedResources value) { - if (extendedResourcesBuilder_ == null) { - if (extendedResources_ != null) { - extendedResources_ = - flyteidl.core.Tasks.ExtendedResources.newBuilder(extendedResources_).mergeFrom(value).buildPartial(); - } else { - extendedResources_ = value; - } - onChanged(); - } else { - extendedResourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public Builder clearExtendedResources() { - if (extendedResourcesBuilder_ == null) { - extendedResources_ = null; - onChanged(); - } else { - extendedResources_ = null; - extendedResourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public flyteidl.core.Tasks.ExtendedResources.Builder getExtendedResourcesBuilder() { - - onChanged(); - return getExtendedResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - public flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder() { - if (extendedResourcesBuilder_ != null) { - return extendedResourcesBuilder_.getMessageOrBuilder(); - } else { - return extendedResources_ == null ? - flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } - } - /** - *
-       * Encapsulates all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder> - getExtendedResourcesFieldBuilder() { - if (extendedResourcesBuilder_ == null) { - extendedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder>( - getExtendedResources(), - getParentForChildren(), - isClean()); - extendedResources_ = null; - } - return extendedResourcesBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> config_; - private com.google.protobuf.MapField - internalGetConfig() { - if (config_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ConfigDefaultEntryHolder.defaultEntry); - } - return config_; - } - private com.google.protobuf.MapField - internalGetMutableConfig() { - onChanged();; - if (config_ == null) { - config_ = com.google.protobuf.MapField.newMapField( - ConfigDefaultEntryHolder.defaultEntry); - } - if (!config_.isMutable()) { - config_ = config_.copy(); - } - return config_; - } - - public int getConfigCount() { - return internalGetConfig().getMap().size(); - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public boolean containsConfig( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetConfig().getMap().containsKey(key); - } - /** - * Use {@link #getConfigMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getConfig() { - return getConfigMap(); - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public java.util.Map getConfigMap() { - return internalGetConfig().getMap(); - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public java.lang.String getConfigOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConfig().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public java.lang.String getConfigOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetConfig().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearConfig() { - internalGetMutableConfig().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public Builder removeConfig( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConfig().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableConfig() { - return internalGetMutableConfig().getMutableMap(); - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - public Builder putConfig( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableConfig().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Metadata about the custom defined for this task. This is extensible to allow various plugins in the system
-       * to use as required.
-       * reserve the field numbers 1 through 15 for very frequently occurring message elements
-       * 
- * - * map<string, string> config = 16; - */ - - public Builder putAllConfig( - java.util.Map values) { - internalGetMutableConfig().getMutableMap() - .putAll(values); - return this; - } - @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.core.TaskTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskTemplate) - private static final flyteidl.core.Tasks.TaskTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.TaskTemplate(); - } - - public static flyteidl.core.Tasks.TaskTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskTemplate(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.core.Tasks.TaskTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerPortOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ContainerPort) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - int getContainerPort(); - } - /** - *
-   * Defines port properties for a container.
-   * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class ContainerPort extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ContainerPort) - ContainerPortOrBuilder { - private static final long serialVersionUID = 0L; - // Use ContainerPort.newBuilder() to construct. - private ContainerPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ContainerPort() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ContainerPort( - 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 8: { - - containerPort_ = input.readUInt32(); - 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.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - public static final int CONTAINER_PORT_FIELD_NUMBER = 1; - private int containerPort_; - /** - *
-     * Number of port to expose on the pod's IP address.
-     * This must be a valid port number, 0 < x < 65536.
-     * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - - 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 (containerPort_ != 0) { - output.writeUInt32(1, containerPort_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (containerPort_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, containerPort_); - } - 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.core.Tasks.ContainerPort)) { - return super.equals(obj); - } - flyteidl.core.Tasks.ContainerPort other = (flyteidl.core.Tasks.ContainerPort) obj; - - if (getContainerPort() - != other.getContainerPort()) 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(); - hash = (37 * hash) + CONTAINER_PORT_FIELD_NUMBER; - hash = (53 * hash) + getContainerPort(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.ContainerPort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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.core.Tasks.ContainerPort parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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.core.Tasks.ContainerPort parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.ContainerPort 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.core.Tasks.ContainerPort 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; - } - /** - *
-     * Defines port properties for a container.
-     * 
- * - * Protobuf type {@code flyteidl.core.ContainerPort} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ContainerPort) - flyteidl.core.Tasks.ContainerPortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.ContainerPort.class, flyteidl.core.Tasks.ContainerPort.Builder.class); - } - - // Construct using flyteidl.core.Tasks.ContainerPort.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(); - containerPort_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_ContainerPort_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort getDefaultInstanceForType() { - return flyteidl.core.Tasks.ContainerPort.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort build() { - flyteidl.core.Tasks.ContainerPort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.ContainerPort buildPartial() { - flyteidl.core.Tasks.ContainerPort result = new flyteidl.core.Tasks.ContainerPort(this); - result.containerPort_ = containerPort_; - 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.core.Tasks.ContainerPort) { - return mergeFrom((flyteidl.core.Tasks.ContainerPort)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.ContainerPort other) { - if (other == flyteidl.core.Tasks.ContainerPort.getDefaultInstance()) return this; - if (other.getContainerPort() != 0) { - setContainerPort(other.getContainerPort()); - } - 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.core.Tasks.ContainerPort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.ContainerPort) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int containerPort_ ; - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public int getContainerPort() { - return containerPort_; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder setContainerPort(int value) { - - containerPort_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of port to expose on the pod's IP address.
-       * This must be a valid port number, 0 < x < 65536.
-       * 
- * - * uint32 container_port = 1; - */ - public Builder clearContainerPort() { - - containerPort_ = 0; - onChanged(); - return this; - } - @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.core.ContainerPort) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ContainerPort) - private static final flyteidl.core.Tasks.ContainerPort DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.ContainerPort(); - } - - public static flyteidl.core.Tasks.ContainerPort getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContainerPort parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ContainerPort(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.core.Tasks.ContainerPort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ContainerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Container) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - java.lang.String getImage(); - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.util.List - getCommandList(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - int getCommandCount(); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - java.lang.String getCommand(int index); - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - com.google.protobuf.ByteString - getCommandBytes(int index); - - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.util.List - getArgsList(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - int getArgsCount(); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - java.lang.String getArgs(int index); - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - com.google.protobuf.ByteString - getArgsBytes(int index); - - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - boolean hasResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePair getEnv(int index); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - int getEnvCount(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - java.util.List - getEnvOrBuilderList(); - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index); - - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getConfigList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.KeyValuePair getConfig(int index); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated int getConfigCount(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getConfigOrBuilderList(); - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index); - - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPort getPorts(int index); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - int getPortsCount(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - java.util.List - getPortsOrBuilderList(); - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index); - - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - boolean hasDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); - - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - int getArchitectureValue(); - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - flyteidl.core.Tasks.Container.Architecture getArchitecture(); - } - /** - * Protobuf type {@code flyteidl.core.Container} - */ - public static final class Container extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Container) - ContainerOrBuilder { - private static final long serialVersionUID = 0L; - // Use Container.newBuilder() to construct. - private Container(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Container() { - image_ = ""; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - env_ = java.util.Collections.emptyList(); - config_ = java.util.Collections.emptyList(); - ports_ = java.util.Collections.emptyList(); - architecture_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Container( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - command_.add(s); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - args_.add(s); - break; - } - case 34: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - env_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - config_.add( - input.readMessage(flyteidl.core.Literals.KeyValuePair.parser(), extensionRegistry)); - break; - } - case 58: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000040; - } - ports_.add( - input.readMessage(flyteidl.core.Tasks.ContainerPort.parser(), extensionRegistry)); - break; - } - case 74: { - flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; - if (dataConfig_ != null) { - subBuilder = dataConfig_.toBuilder(); - } - dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataConfig_); - dataConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 80: { - int rawValue = input.readEnum(); - - architecture_ = rawValue; - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - } - if (((mutable_bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - /** - *
-     * Architecture-type the container image supports.
-     * 
- * - * Protobuf enum {@code flyteidl.core.Container.Architecture} - */ - public enum Architecture - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNKNOWN = 0; - */ - UNKNOWN(0), - /** - * AMD64 = 1; - */ - AMD64(1), - /** - * ARM64 = 2; - */ - ARM64(2), - /** - * ARM_V6 = 3; - */ - ARM_V6(3), - /** - * ARM_V7 = 4; - */ - ARM_V7(4), - UNRECOGNIZED(-1), - ; - - /** - * UNKNOWN = 0; - */ - public static final int UNKNOWN_VALUE = 0; - /** - * AMD64 = 1; - */ - public static final int AMD64_VALUE = 1; - /** - * ARM64 = 2; - */ - public static final int ARM64_VALUE = 2; - /** - * ARM_V6 = 3; - */ - public static final int ARM_V6_VALUE = 3; - /** - * ARM_V7 = 4; - */ - public static final int ARM_V7_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Architecture valueOf(int value) { - return forNumber(value); - } - - public static Architecture forNumber(int value) { - switch (value) { - case 0: return UNKNOWN; - case 1: return AMD64; - case 2: return ARM64; - case 3: return ARM_V6; - case 4: return ARM_V7; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Architecture> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Architecture findValueByNumber(int number) { - return Architecture.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.Container.getDescriptor().getEnumTypes().get(0); - } - - private static final Architecture[] VALUES = values(); - - public static Architecture valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Architecture(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Container.Architecture) - } - - private int bitField0_; - public static final int IMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object image_; - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Container image url. Eg: docker/redis:latest
-     * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMMAND_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList command_; - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_; - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-     * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-     * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - - public static final int ARGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList args_; - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_; - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-     * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-     * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-     * system will populate these before executing the container.
-     * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - - public static final int RESOURCES_FIELD_NUMBER = 4; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Container resources requirement as specified by the container engine.
-     * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int ENV_FIELD_NUMBER = 5; - private java.util.List env_; - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - return env_; - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - return env_.size(); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - return env_.get(index); - } - /** - *
-     * Environment variables will be set as the container is starting up.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - return env_.get(index); - } - - public static final int CONFIG_FIELD_NUMBER = 6; - private java.util.List config_; - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List getConfigList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getConfigOrBuilderList() { - return config_; - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public int getConfigCount() { - return config_.size(); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - return config_.get(index); - } - /** - *
-     * Allows extra configs to be available for the container.
-     * TODO: elaborate on how configs will become available.
-     * Deprecated, please use TaskTemplate.config instead.
-     * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - return config_.get(index); - } - - public static final int PORTS_FIELD_NUMBER = 7; - private java.util.List ports_; - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - return ports_; - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - return ports_.size(); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - return ports_.get(index); - } - /** - *
-     * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-     * not supported on AWS Batch)
-     * Only K8s
-     * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - return ports_.get(index); - } - - public static final int DATA_CONFIG_FIELD_NUMBER = 9; - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfig_ != null; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - return getDataConfig(); - } - - public static final int ARCHITECTURE_FIELD_NUMBER = 10; - private int architecture_; - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public int getArchitectureValue() { - return architecture_; - } - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public flyteidl.core.Tasks.Container.Architecture getArchitecture() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Container.Architecture result = flyteidl.core.Tasks.Container.Architecture.valueOf(architecture_); - return result == null ? flyteidl.core.Tasks.Container.Architecture.UNRECOGNIZED : result; - } - - 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 (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); - } - for (int i = 0; i < command_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, command_.getRaw(i)); - } - for (int i = 0; i < args_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, args_.getRaw(i)); - } - if (resources_ != null) { - output.writeMessage(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - output.writeMessage(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - output.writeMessage(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - output.writeMessage(7, ports_.get(i)); - } - if (dataConfig_ != null) { - output.writeMessage(9, getDataConfig()); - } - if (architecture_ != flyteidl.core.Tasks.Container.Architecture.UNKNOWN.getNumber()) { - output.writeEnum(10, architecture_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); - } - { - int dataSize = 0; - for (int i = 0; i < command_.size(); i++) { - dataSize += computeStringSizeNoTag(command_.getRaw(i)); - } - size += dataSize; - size += 1 * getCommandList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < args_.size(); i++) { - dataSize += computeStringSizeNoTag(args_.getRaw(i)); - } - size += dataSize; - size += 1 * getArgsList().size(); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResources()); - } - for (int i = 0; i < env_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, env_.get(i)); - } - for (int i = 0; i < config_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, config_.get(i)); - } - for (int i = 0; i < ports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, ports_.get(i)); - } - if (dataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getDataConfig()); - } - if (architecture_ != flyteidl.core.Tasks.Container.Architecture.UNKNOWN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, architecture_); - } - 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.core.Tasks.Container)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Container other = (flyteidl.core.Tasks.Container) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (!getCommandList() - .equals(other.getCommandList())) return false; - if (!getArgsList() - .equals(other.getArgsList())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (!getEnvList() - .equals(other.getEnvList())) return false; - if (!getConfigList() - .equals(other.getConfigList())) return false; - if (!getPortsList() - .equals(other.getPortsList())) return false; - if (hasDataConfig() != other.hasDataConfig()) return false; - if (hasDataConfig()) { - if (!getDataConfig() - .equals(other.getDataConfig())) return false; - } - if (architecture_ != other.architecture_) 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(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (getCommandCount() > 0) { - hash = (37 * hash) + COMMAND_FIELD_NUMBER; - hash = (53 * hash) + getCommandList().hashCode(); - } - if (getArgsCount() > 0) { - hash = (37 * hash) + ARGS_FIELD_NUMBER; - hash = (53 * hash) + getArgsList().hashCode(); - } - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (getEnvCount() > 0) { - hash = (37 * hash) + ENV_FIELD_NUMBER; - hash = (53 * hash) + getEnvList().hashCode(); - } - if (getConfigCount() > 0) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConfigList().hashCode(); - } - if (getPortsCount() > 0) { - hash = (37 * hash) + PORTS_FIELD_NUMBER; - hash = (53 * hash) + getPortsList().hashCode(); - } - if (hasDataConfig()) { - hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDataConfig().hashCode(); - } - hash = (37 * hash) + ARCHITECTURE_FIELD_NUMBER; - hash = (53 * hash) + architecture_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Container parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Container parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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.core.Tasks.Container parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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.core.Tasks.Container parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Container 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.core.Tasks.Container 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; - } - /** - * Protobuf type {@code flyteidl.core.Container} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Container) - flyteidl.core.Tasks.ContainerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Container.class, flyteidl.core.Tasks.Container.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Container.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getEnvFieldBuilder(); - getConfigFieldBuilder(); - getPortsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - image_ = ""; - - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - envBuilder_.clear(); - } - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - configBuilder_.clear(); - } - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - } else { - portsBuilder_.clear(); - } - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - architecture_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Container_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container getDefaultInstanceForType() { - return flyteidl.core.Tasks.Container.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Container build() { - flyteidl.core.Tasks.Container result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Container buildPartial() { - flyteidl.core.Tasks.Container result = new flyteidl.core.Tasks.Container(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.image_ = image_; - if (((bitField0_ & 0x00000002) != 0)) { - command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.command_ = command_; - if (((bitField0_ & 0x00000004) != 0)) { - args_ = args_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.args_ = args_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - if (envBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - env_ = java.util.Collections.unmodifiableList(env_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.env_ = env_; - } else { - result.env_ = envBuilder_.build(); - } - if (configBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - config_ = java.util.Collections.unmodifiableList(config_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); - } - if (portsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - ports_ = java.util.Collections.unmodifiableList(ports_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.ports_ = ports_; - } else { - result.ports_ = portsBuilder_.build(); - } - if (dataConfigBuilder_ == null) { - result.dataConfig_ = dataConfig_; - } else { - result.dataConfig_ = dataConfigBuilder_.build(); - } - result.architecture_ = architecture_; - result.bitField0_ = to_bitField0_; - 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.core.Tasks.Container) { - return mergeFrom((flyteidl.core.Tasks.Container)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Container other) { - if (other == flyteidl.core.Tasks.Container.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (!other.command_.isEmpty()) { - if (command_.isEmpty()) { - command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureCommandIsMutable(); - command_.addAll(other.command_); - } - onChanged(); - } - if (!other.args_.isEmpty()) { - if (args_.isEmpty()) { - args_ = other.args_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureArgsIsMutable(); - args_.addAll(other.args_); - } - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (envBuilder_ == null) { - if (!other.env_.isEmpty()) { - if (env_.isEmpty()) { - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureEnvIsMutable(); - env_.addAll(other.env_); - } - onChanged(); - } - } else { - if (!other.env_.isEmpty()) { - if (envBuilder_.isEmpty()) { - envBuilder_.dispose(); - envBuilder_ = null; - env_ = other.env_; - bitField0_ = (bitField0_ & ~0x00000010); - envBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEnvFieldBuilder() : null; - } else { - envBuilder_.addAllMessages(other.env_); - } - } - } - if (configBuilder_ == null) { - if (!other.config_.isEmpty()) { - if (config_.isEmpty()) { - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureConfigIsMutable(); - config_.addAll(other.config_); - } - onChanged(); - } - } else { - if (!other.config_.isEmpty()) { - if (configBuilder_.isEmpty()) { - configBuilder_.dispose(); - configBuilder_ = null; - config_ = other.config_; - bitField0_ = (bitField0_ & ~0x00000020); - configBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConfigFieldBuilder() : null; - } else { - configBuilder_.addAllMessages(other.config_); - } - } - } - if (portsBuilder_ == null) { - if (!other.ports_.isEmpty()) { - if (ports_.isEmpty()) { - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensurePortsIsMutable(); - ports_.addAll(other.ports_); - } - onChanged(); - } - } else { - if (!other.ports_.isEmpty()) { - if (portsBuilder_.isEmpty()) { - portsBuilder_.dispose(); - portsBuilder_ = null; - ports_ = other.ports_; - bitField0_ = (bitField0_ & ~0x00000040); - portsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPortsFieldBuilder() : null; - } else { - portsBuilder_.addAllMessages(other.ports_); - } - } - } - if (other.hasDataConfig()) { - mergeDataConfig(other.getDataConfig()); - } - if (other.architecture_ != 0) { - setArchitectureValue(other.getArchitectureValue()); - } - 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.core.Tasks.Container parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Container) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object image_ = ""; - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Container image url. Eg: docker/redis:latest
-       * 
- * - * string image = 1; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000002; - } - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_.getUnmodifiableView(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addAllCommand( - java.lang.Iterable values) { - ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Command to be executed, if not provided, the default entrypoint in the container image will be used.
-       * 
- * - * repeated string command = 2; - */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArgsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - args_ = new com.google.protobuf.LazyStringArrayList(args_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ProtocolStringList - getArgsList() { - return args_.getUnmodifiableView(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public int getArgsCount() { - return args_.size(); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public java.lang.String getArgs(int index) { - return args_.get(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public com.google.protobuf.ByteString - getArgsBytes(int index) { - return args_.getByteString(index); - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder setArgs( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgs( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addAllArgs( - java.lang.Iterable values) { - ensureArgsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, args_); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder clearArgs() { - args_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
-       * needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
-       * system will populate these before executing the container.
-       * 
- * - * repeated string args = 3; - */ - public Builder addArgsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArgsIsMutable(); - args_.add(value); - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Container resources requirement as specified by the container engine.
-       * 
- * - * .flyteidl.core.Resources resources = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private java.util.List env_ = - java.util.Collections.emptyList(); - private void ensureEnvIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - env_ = new java.util.ArrayList(env_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> envBuilder_; - - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List getEnvList() { - if (envBuilder_ == null) { - return java.util.Collections.unmodifiableList(env_); - } else { - return envBuilder_.getMessageList(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public int getEnvCount() { - if (envBuilder_ == null) { - return env_.size(); - } else { - return envBuilder_.getCount(); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair getEnv(int index) { - if (envBuilder_ == null) { - return env_.get(index); - } else { - return envBuilder_.getMessage(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.set(index, value); - onChanged(); - } else { - envBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder setEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.set(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv(flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(value); - onChanged(); - } else { - envBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (envBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEnvIsMutable(); - env_.add(index, value); - onChanged(); - } else { - envBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addEnv( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.add(index, builderForValue.build()); - onChanged(); - } else { - envBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder addAllEnv( - java.lang.Iterable values) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, env_); - onChanged(); - } else { - envBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder clearEnv() { - if (envBuilder_ == null) { - env_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - envBuilder_.clear(); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public Builder removeEnv(int index) { - if (envBuilder_ == null) { - ensureEnvIsMutable(); - env_.remove(index); - onChanged(); - } else { - envBuilder_.remove(index); - } - return this; - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder getEnvBuilder( - int index) { - return getEnvFieldBuilder().getBuilder(index); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePairOrBuilder getEnvOrBuilder( - int index) { - if (envBuilder_ == null) { - return env_.get(index); } else { - return envBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvOrBuilderList() { - if (envBuilder_ != null) { - return envBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(env_); - } - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder() { - return getEnvFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public flyteidl.core.Literals.KeyValuePair.Builder addEnvBuilder( - int index) { - return getEnvFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Environment variables will be set as the container is starting up.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair env = 5; - */ - public java.util.List - getEnvBuilderList() { - return getEnvFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getEnvFieldBuilder() { - if (envBuilder_ == null) { - envBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - env_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - env_ = null; - } - return envBuilder_; - } - - private java.util.List config_ = - java.util.Collections.emptyList(); - private void ensureConfigIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - config_ = new java.util.ArrayList(config_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> configBuilder_; - - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List getConfigList() { - if (configBuilder_ == null) { - return java.util.Collections.unmodifiableList(config_); - } else { - return configBuilder_.getMessageList(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public int getConfigCount() { - if (configBuilder_ == null) { - return config_.size(); - } else { - return configBuilder_.getCount(); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair getConfig(int index) { - if (configBuilder_ == null) { - return config_.get(index); - } else { - return configBuilder_.getMessage(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.set(index, value); - onChanged(); - } else { - configBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.set(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addConfig(flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(value); - onChanged(); - } else { - configBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair value) { - if (configBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConfigIsMutable(); - config_.add(index, value); - onChanged(); - } else { - configBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addConfig( - flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addConfig( - int index, flyteidl.core.Literals.KeyValuePair.Builder builderForValue) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.add(index, builderForValue.build()); - onChanged(); - } else { - configBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addAllConfig( - java.lang.Iterable values) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, config_); - onChanged(); - } else { - configBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - configBuilder_.clear(); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public Builder removeConfig(int index) { - if (configBuilder_ == null) { - ensureConfigIsMutable(); - config_.remove(index); - onChanged(); - } else { - configBuilder_.remove(index); - } - return this; - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder getConfigBuilder( - int index) { - return getConfigFieldBuilder().getBuilder(index); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePairOrBuilder getConfigOrBuilder( - int index) { - if (configBuilder_ == null) { - return config_.get(index); } else { - return configBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getConfigOrBuilderList() { - if (configBuilder_ != null) { - return configBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(config_); - } - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder() { - return getConfigFieldBuilder().addBuilder( - flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.core.Literals.KeyValuePair.Builder addConfigBuilder( - int index) { - return getConfigFieldBuilder().addBuilder( - index, flyteidl.core.Literals.KeyValuePair.getDefaultInstance()); - } - /** - *
-       * Allows extra configs to be available for the container.
-       * TODO: elaborate on how configs will become available.
-       * Deprecated, please use TaskTemplate.config instead.
-       * 
- * - * repeated .flyteidl.core.KeyValuePair config = 6 [deprecated = true]; - */ - @java.lang.Deprecated public java.util.List - getConfigBuilderList() { - return getConfigFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder> - getConfigFieldBuilder() { - if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.KeyValuePair, flyteidl.core.Literals.KeyValuePair.Builder, flyteidl.core.Literals.KeyValuePairOrBuilder>( - config_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - config_ = null; - } - return configBuilder_; - } - - private java.util.List ports_ = - java.util.Collections.emptyList(); - private void ensurePortsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - ports_ = new java.util.ArrayList(ports_); - bitField0_ |= 0x00000040; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> portsBuilder_; - - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List getPortsList() { - if (portsBuilder_ == null) { - return java.util.Collections.unmodifiableList(ports_); - } else { - return portsBuilder_.getMessageList(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public int getPortsCount() { - if (portsBuilder_ == null) { - return ports_.size(); - } else { - return portsBuilder_.getCount(); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort getPorts(int index) { - if (portsBuilder_ == null) { - return ports_.get(index); - } else { - return portsBuilder_.getMessage(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.set(index, value); - onChanged(); - } else { - portsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder setPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.set(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts(flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(value); - onChanged(); - } else { - portsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort value) { - if (portsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePortsIsMutable(); - ports_.add(index, value); - onChanged(); - } else { - portsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addPorts( - int index, flyteidl.core.Tasks.ContainerPort.Builder builderForValue) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.add(index, builderForValue.build()); - onChanged(); - } else { - portsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder addAllPorts( - java.lang.Iterable values) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, ports_); - onChanged(); - } else { - portsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder clearPorts() { - if (portsBuilder_ == null) { - ports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - portsBuilder_.clear(); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public Builder removePorts(int index) { - if (portsBuilder_ == null) { - ensurePortsIsMutable(); - ports_.remove(index); - onChanged(); - } else { - portsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder getPortsBuilder( - int index) { - return getPortsFieldBuilder().getBuilder(index); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPortOrBuilder getPortsOrBuilder( - int index) { - if (portsBuilder_ == null) { - return ports_.get(index); } else { - return portsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsOrBuilderList() { - if (portsBuilder_ != null) { - return portsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(ports_); - } - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder() { - return getPortsFieldBuilder().addBuilder( - flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public flyteidl.core.Tasks.ContainerPort.Builder addPortsBuilder( - int index) { - return getPortsFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.ContainerPort.getDefaultInstance()); - } - /** - *
-       * Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
-       * not supported on AWS Batch)
-       * Only K8s
-       * 
- * - * repeated .flyteidl.core.ContainerPort ports = 7; - */ - public java.util.List - getPortsBuilderList() { - return getPortsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder> - getPortsFieldBuilder() { - if (portsBuilder_ == null) { - portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.ContainerPort, flyteidl.core.Tasks.ContainerPort.Builder, flyteidl.core.Tasks.ContainerPortOrBuilder>( - ports_, - ((bitField0_ & 0x00000040) != 0), - getParentForChildren(), - isClean()); - ports_ = null; - } - return portsBuilder_; - } - - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public boolean hasDataConfig() { - return dataConfigBuilder_ != null || dataConfig_ != null; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - if (dataConfigBuilder_ == null) { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } else { - return dataConfigBuilder_.getMessage(); - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataConfig_ = value; - onChanged(); - } else { - dataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder setDataConfig( - flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { - if (dataConfigBuilder_ == null) { - dataConfig_ = builderForValue.build(); - onChanged(); - } else { - dataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (dataConfig_ != null) { - dataConfig_ = - flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); - } else { - dataConfig_ = value; - } - onChanged(); - } else { - dataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public Builder clearDataConfig() { - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - onChanged(); - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { - - onChanged(); - return getDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - if (dataConfigBuilder_ != null) { - return dataConfigBuilder_.getMessageOrBuilder(); - } else { - return dataConfig_ == null ? - flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> - getDataConfigFieldBuilder() { - if (dataConfigBuilder_ == null) { - dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( - getDataConfig(), - getParentForChildren(), - isClean()); - dataConfig_ = null; - } - return dataConfigBuilder_; - } - - private int architecture_ = 0; - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public int getArchitectureValue() { - return architecture_; - } - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public Builder setArchitectureValue(int value) { - architecture_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public flyteidl.core.Tasks.Container.Architecture getArchitecture() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Container.Architecture result = flyteidl.core.Tasks.Container.Architecture.valueOf(architecture_); - return result == null ? flyteidl.core.Tasks.Container.Architecture.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public Builder setArchitecture(flyteidl.core.Tasks.Container.Architecture value) { - if (value == null) { - throw new NullPointerException(); - } - - architecture_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.Container.Architecture architecture = 10; - */ - public Builder clearArchitecture() { - - architecture_ = 0; - onChanged(); - return this; - } - @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.core.Container) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Container) - private static final flyteidl.core.Tasks.Container DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Container(); - } - - public static flyteidl.core.Tasks.Container getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Container parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Container(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.core.Tasks.Container getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IOStrategyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IOStrategy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - int getDownloadModeValue(); - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode(); - - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - int getUploadModeValue(); - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode(); - } - /** - *
-   * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-   * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class IOStrategy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IOStrategy) - IOStrategyOrBuilder { - private static final long serialVersionUID = 0L; - // Use IOStrategy.newBuilder() to construct. - private IOStrategy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IOStrategy() { - downloadMode_ = 0; - uploadMode_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IOStrategy( - 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 8: { - int rawValue = input.readEnum(); - - downloadMode_ = rawValue; - break; - } - case 16: { - int rawValue = input.readEnum(); - - uploadMode_ = rawValue; - 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.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - /** - *
-     * Mode to use for downloading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.DownloadMode} - */ - public enum DownloadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - DOWNLOAD_EAGER(0), - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - DOWNLOAD_STREAM(1), - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - DO_NOT_DOWNLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be downloaded before the main container is executed
-       * 
- * - * DOWNLOAD_EAGER = 0; - */ - public static final int DOWNLOAD_EAGER_VALUE = 0; - /** - *
-       * Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details
-       * 
- * - * DOWNLOAD_STREAM = 1; - */ - public static final int DOWNLOAD_STREAM_VALUE = 1; - /** - *
-       * Large objects (offloaded) will not be downloaded
-       * 
- * - * DO_NOT_DOWNLOAD = 2; - */ - public static final int DO_NOT_DOWNLOAD_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DownloadMode valueOf(int value) { - return forNumber(value); - } - - public static DownloadMode forNumber(int value) { - switch (value) { - case 0: return DOWNLOAD_EAGER; - case 1: return DOWNLOAD_STREAM; - case 2: return DO_NOT_DOWNLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DownloadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DownloadMode findValueByNumber(int number) { - return DownloadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(0); - } - - private static final DownloadMode[] VALUES = values(); - - public static DownloadMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DownloadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.DownloadMode) - } - - /** - *
-     * Mode to use for uploading
-     * 
- * - * Protobuf enum {@code flyteidl.core.IOStrategy.UploadMode} - */ - public enum UploadMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - UPLOAD_ON_EXIT(0), - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - UPLOAD_EAGER(1), - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - DO_NOT_UPLOAD(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * All data will be uploaded after the main container exits
-       * 
- * - * UPLOAD_ON_EXIT = 0; - */ - public static final int UPLOAD_ON_EXIT_VALUE = 0; - /** - *
-       * Data will be uploaded as it appears. Refer to protocol specification for details
-       * 
- * - * UPLOAD_EAGER = 1; - */ - public static final int UPLOAD_EAGER_VALUE = 1; - /** - *
-       * Data will not be uploaded, only references will be written
-       * 
- * - * DO_NOT_UPLOAD = 2; - */ - public static final int DO_NOT_UPLOAD_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static UploadMode valueOf(int value) { - return forNumber(value); - } - - public static UploadMode forNumber(int value) { - switch (value) { - case 0: return UPLOAD_ON_EXIT; - case 1: return UPLOAD_EAGER; - case 2: return DO_NOT_UPLOAD; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - UploadMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public UploadMode findValueByNumber(int number) { - return UploadMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.IOStrategy.getDescriptor().getEnumTypes().get(1); - } - - private static final UploadMode[] VALUES = values(); - - public static UploadMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private UploadMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.IOStrategy.UploadMode) - } - - public static final int DOWNLOAD_MODE_FIELD_NUMBER = 1; - private int downloadMode_; - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-     * Mode to use to manage downloads
-     * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - - public static final int UPLOAD_MODE_FIELD_NUMBER = 2; - private int uploadMode_; - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-     * Mode to use to manage uploads
-     * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - - 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 (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - output.writeEnum(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - output.writeEnum(2, uploadMode_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (downloadMode_ != flyteidl.core.Tasks.IOStrategy.DownloadMode.DOWNLOAD_EAGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, downloadMode_); - } - if (uploadMode_ != flyteidl.core.Tasks.IOStrategy.UploadMode.UPLOAD_ON_EXIT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, uploadMode_); - } - 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.core.Tasks.IOStrategy)) { - return super.equals(obj); - } - flyteidl.core.Tasks.IOStrategy other = (flyteidl.core.Tasks.IOStrategy) obj; - - if (downloadMode_ != other.downloadMode_) return false; - if (uploadMode_ != other.uploadMode_) 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(); - hash = (37 * hash) + DOWNLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + downloadMode_; - hash = (37 * hash) + UPLOAD_MODE_FIELD_NUMBER; - hash = (53 * hash) + uploadMode_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.IOStrategy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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.core.Tasks.IOStrategy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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.core.Tasks.IOStrategy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.IOStrategy 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.core.Tasks.IOStrategy 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; - } - /** - *
-     * Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets)
-     * 
- * - * Protobuf type {@code flyteidl.core.IOStrategy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IOStrategy) - flyteidl.core.Tasks.IOStrategyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.IOStrategy.class, flyteidl.core.Tasks.IOStrategy.Builder.class); - } - - // Construct using flyteidl.core.Tasks.IOStrategy.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(); - downloadMode_ = 0; - - uploadMode_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_IOStrategy_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy getDefaultInstanceForType() { - return flyteidl.core.Tasks.IOStrategy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy build() { - flyteidl.core.Tasks.IOStrategy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.IOStrategy buildPartial() { - flyteidl.core.Tasks.IOStrategy result = new flyteidl.core.Tasks.IOStrategy(this); - result.downloadMode_ = downloadMode_; - result.uploadMode_ = uploadMode_; - 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.core.Tasks.IOStrategy) { - return mergeFrom((flyteidl.core.Tasks.IOStrategy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.IOStrategy other) { - if (other == flyteidl.core.Tasks.IOStrategy.getDefaultInstance()) return this; - if (other.downloadMode_ != 0) { - setDownloadModeValue(other.getDownloadModeValue()); - } - if (other.uploadMode_ != 0) { - setUploadModeValue(other.getUploadModeValue()); - } - 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.core.Tasks.IOStrategy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.IOStrategy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int downloadMode_ = 0; - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public int getDownloadModeValue() { - return downloadMode_; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadModeValue(int value) { - downloadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public flyteidl.core.Tasks.IOStrategy.DownloadMode getDownloadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.DownloadMode result = flyteidl.core.Tasks.IOStrategy.DownloadMode.valueOf(downloadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.DownloadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder setDownloadMode(flyteidl.core.Tasks.IOStrategy.DownloadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - downloadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage downloads
-       * 
- * - * .flyteidl.core.IOStrategy.DownloadMode download_mode = 1; - */ - public Builder clearDownloadMode() { - - downloadMode_ = 0; - onChanged(); - return this; - } - - private int uploadMode_ = 0; - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public int getUploadModeValue() { - return uploadMode_; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadModeValue(int value) { - uploadMode_ = value; - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public flyteidl.core.Tasks.IOStrategy.UploadMode getUploadMode() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.IOStrategy.UploadMode result = flyteidl.core.Tasks.IOStrategy.UploadMode.valueOf(uploadMode_); - return result == null ? flyteidl.core.Tasks.IOStrategy.UploadMode.UNRECOGNIZED : result; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder setUploadMode(flyteidl.core.Tasks.IOStrategy.UploadMode value) { - if (value == null) { - throw new NullPointerException(); - } - - uploadMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Mode to use to manage uploads
-       * 
- * - * .flyteidl.core.IOStrategy.UploadMode upload_mode = 2; - */ - public Builder clearUploadMode() { - - uploadMode_ = 0; - onChanged(); - return this; - } - @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.core.IOStrategy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IOStrategy) - private static final flyteidl.core.Tasks.IOStrategy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.IOStrategy(); - } - - public static flyteidl.core.Tasks.IOStrategy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IOStrategy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IOStrategy(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.core.Tasks.IOStrategy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DataLoadingConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.DataLoadingConfig) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used!
-     * 
- * - * bool enabled = 1; - */ - boolean getEnabled(); - - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - java.lang.String getInputPath(); - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - com.google.protobuf.ByteString - getInputPathBytes(); - - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - java.lang.String getOutputPath(); - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - com.google.protobuf.ByteString - getOutputPathBytes(); - - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - int getFormatValue(); - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat(); - - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - boolean hasIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategy getIoStrategy(); - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder(); - } - /** - *
-   * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-   * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-   * Any outputs generated by the user container - within output_path are automatically uploaded.
-   * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class DataLoadingConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.DataLoadingConfig) - DataLoadingConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use DataLoadingConfig.newBuilder() to construct. - private DataLoadingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataLoadingConfig() { - inputPath_ = ""; - outputPath_ = ""; - format_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DataLoadingConfig( - 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 8: { - - enabled_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - inputPath_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputPath_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - format_ = rawValue; - break; - } - case 42: { - flyteidl.core.Tasks.IOStrategy.Builder subBuilder = null; - if (ioStrategy_ != null) { - subBuilder = ioStrategy_.toBuilder(); - } - ioStrategy_ = input.readMessage(flyteidl.core.Tasks.IOStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ioStrategy_); - ioStrategy_ = 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.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - /** - *
-     * LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers.
-     * If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format.
-     * JSON and YAML do not need any protobuf definitions to read it
-     * All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem)
-     * 
- * - * Protobuf enum {@code flyteidl.core.DataLoadingConfig.LiteralMapFormat} - */ - public enum LiteralMapFormat - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - JSON(0), - /** - * YAML = 1; - */ - YAML(1), - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - PROTO(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - https://www.json.org/json-en.html
-       * 
- * - * JSON = 0; - */ - public static final int JSON_VALUE = 0; - /** - * YAML = 1; - */ - public static final int YAML_VALUE = 1; - /** - *
-       * Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core
-       * 
- * - * PROTO = 2; - */ - public static final int PROTO_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LiteralMapFormat valueOf(int value) { - return forNumber(value); - } - - public static LiteralMapFormat forNumber(int value) { - switch (value) { - case 0: return JSON; - case 1: return YAML; - case 2: return PROTO; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LiteralMapFormat> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LiteralMapFormat findValueByNumber(int number) { - return LiteralMapFormat.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.DataLoadingConfig.getDescriptor().getEnumTypes().get(0); - } - - private static final LiteralMapFormat[] VALUES = values(); - - public static LiteralMapFormat valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LiteralMapFormat(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.DataLoadingConfig.LiteralMapFormat) - } - - public static final int ENABLED_FIELD_NUMBER = 1; - private boolean enabled_; - /** - *
-     * Flag enables DataLoading Config. If this is not set, data loading will not be used!
-     * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - - public static final int INPUT_PATH_FIELD_NUMBER = 2; - private volatile java.lang.Object inputPath_; - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-     * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-     * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-     * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-     * /var/flyte/inputs/y -> Y is a file in Binary format
-     * /var/flyte/inputs/z/... -> Note Z itself is a directory
-     * More information about the protocol - refer to docs #TODO reference docs here
-     * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OUTPUT_PATH_FIELD_NUMBER = 3; - private volatile java.lang.Object outputPath_; - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPath_ = s; - return s; - } - } - /** - *
-     * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-     * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORMAT_FIELD_NUMBER = 4; - private int format_; - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-     * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-     * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-     * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - - public static final int IO_STRATEGY_FIELD_NUMBER = 5; - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - return getIoStrategy(); - } - - 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 (enabled_ != false) { - output.writeBool(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - output.writeEnum(4, format_); - } - if (ioStrategy_ != null) { - output.writeMessage(5, getIoStrategy()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enabled_); - } - if (!getInputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inputPath_); - } - if (!getOutputPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPath_); - } - if (format_ != flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.JSON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, format_); - } - if (ioStrategy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getIoStrategy()); - } - 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.core.Tasks.DataLoadingConfig)) { - return super.equals(obj); - } - flyteidl.core.Tasks.DataLoadingConfig other = (flyteidl.core.Tasks.DataLoadingConfig) obj; - - if (getEnabled() - != other.getEnabled()) return false; - if (!getInputPath() - .equals(other.getInputPath())) return false; - if (!getOutputPath() - .equals(other.getOutputPath())) return false; - if (format_ != other.format_) return false; - if (hasIoStrategy() != other.hasIoStrategy()) return false; - if (hasIoStrategy()) { - if (!getIoStrategy() - .equals(other.getIoStrategy())) 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(); - hash = (37 * hash) + ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnabled()); - hash = (37 * hash) + INPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getInputPath().hashCode(); - hash = (37 * hash) + OUTPUT_PATH_FIELD_NUMBER; - hash = (53 * hash) + getOutputPath().hashCode(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + format_; - if (hasIoStrategy()) { - hash = (37 * hash) + IO_STRATEGY_FIELD_NUMBER; - hash = (53 * hash) + getIoStrategy().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.DataLoadingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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.core.Tasks.DataLoadingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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.core.Tasks.DataLoadingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.DataLoadingConfig 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.core.Tasks.DataLoadingConfig 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; - } - /** - *
-     * This configuration allows executing raw containers in Flyte using the Flyte CoPilot system.
-     * Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path
-     * Any outputs generated by the user container - within output_path are automatically uploaded.
-     * 
- * - * Protobuf type {@code flyteidl.core.DataLoadingConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.DataLoadingConfig) - flyteidl.core.Tasks.DataLoadingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.DataLoadingConfig.class, flyteidl.core.Tasks.DataLoadingConfig.Builder.class); - } - - // Construct using flyteidl.core.Tasks.DataLoadingConfig.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(); - enabled_ = false; - - inputPath_ = ""; - - outputPath_ = ""; - - format_ = 0; - - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_DataLoadingConfig_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig build() { - flyteidl.core.Tasks.DataLoadingConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.DataLoadingConfig buildPartial() { - flyteidl.core.Tasks.DataLoadingConfig result = new flyteidl.core.Tasks.DataLoadingConfig(this); - result.enabled_ = enabled_; - result.inputPath_ = inputPath_; - result.outputPath_ = outputPath_; - result.format_ = format_; - if (ioStrategyBuilder_ == null) { - result.ioStrategy_ = ioStrategy_; - } else { - result.ioStrategy_ = ioStrategyBuilder_.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.core.Tasks.DataLoadingConfig) { - return mergeFrom((flyteidl.core.Tasks.DataLoadingConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.DataLoadingConfig other) { - if (other == flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance()) return this; - if (other.getEnabled() != false) { - setEnabled(other.getEnabled()); - } - if (!other.getInputPath().isEmpty()) { - inputPath_ = other.inputPath_; - onChanged(); - } - if (!other.getOutputPath().isEmpty()) { - outputPath_ = other.outputPath_; - onChanged(); - } - if (other.format_ != 0) { - setFormatValue(other.getFormatValue()); - } - if (other.hasIoStrategy()) { - mergeIoStrategy(other.getIoStrategy()); - } - 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.core.Tasks.DataLoadingConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.DataLoadingConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean enabled_ ; - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
-       * 
- * - * bool enabled = 1; - */ - public boolean getEnabled() { - return enabled_; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
-       * 
- * - * bool enabled = 1; - */ - public Builder setEnabled(boolean value) { - - enabled_ = value; - onChanged(); - return this; - } - /** - *
-       * Flag enables DataLoading Config. If this is not set, data loading will not be used!
-       * 
- * - * bool enabled = 1; - */ - public Builder clearEnabled() { - - enabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object inputPath_ = ""; - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public java.lang.String getInputPath() { - java.lang.Object ref = inputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - inputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public com.google.protobuf.ByteString - getInputPathBytes() { - java.lang.Object ref = inputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - inputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - inputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder clearInputPath() { - - inputPath_ = getDefaultInstance().getInputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder will contain all the inputs exploded to a separate file.
-       * Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like
-       * /var/flyte/inputs/inputs.<metadata format dependent -> .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations
-       * /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format
-       * /var/flyte/inputs/y -> Y is a file in Binary format
-       * /var/flyte/inputs/z/... -> Note Z itself is a directory
-       * More information about the protocol - refer to docs #TODO reference docs here
-       * 
- * - * string input_path = 2; - */ - public Builder setInputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - inputPath_ = value; - onChanged(); - return this; - } - - private java.lang.Object outputPath_ = ""; - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public java.lang.String getOutputPath() { - java.lang.Object ref = outputPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public com.google.protobuf.ByteString - getOutputPathBytes() { - java.lang.Object ref = outputPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputPath_ = value; - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder clearOutputPath() { - - outputPath_ = getDefaultInstance().getOutputPath(); - onChanged(); - return this; - } - /** - *
-       * File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file
-       * 
- * - * string output_path = 3; - */ - public Builder setOutputPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputPath_ = value; - onChanged(); - return this; - } - - private int format_ = 0; - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public int getFormatValue() { - return format_; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormatValue(int value) { - format_ = value; - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat getFormat() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat result = flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.valueOf(format_); - return result == null ? flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat.UNRECOGNIZED : result; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder setFormat(flyteidl.core.Tasks.DataLoadingConfig.LiteralMapFormat value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values.
-       * This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding
-       * 
- * - * .flyteidl.core.DataLoadingConfig.LiteralMapFormat format = 4; - */ - public Builder clearFormat() { - - format_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.IOStrategy ioStrategy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> ioStrategyBuilder_; - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public boolean hasIoStrategy() { - return ioStrategyBuilder_ != null || ioStrategy_ != null; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy getIoStrategy() { - if (ioStrategyBuilder_ == null) { - return ioStrategy_ == null ? flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } else { - return ioStrategyBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ioStrategy_ = value; - onChanged(); - } else { - ioStrategyBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder setIoStrategy( - flyteidl.core.Tasks.IOStrategy.Builder builderForValue) { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = builderForValue.build(); - onChanged(); - } else { - ioStrategyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder mergeIoStrategy(flyteidl.core.Tasks.IOStrategy value) { - if (ioStrategyBuilder_ == null) { - if (ioStrategy_ != null) { - ioStrategy_ = - flyteidl.core.Tasks.IOStrategy.newBuilder(ioStrategy_).mergeFrom(value).buildPartial(); - } else { - ioStrategy_ = value; - } - onChanged(); - } else { - ioStrategyBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public Builder clearIoStrategy() { - if (ioStrategyBuilder_ == null) { - ioStrategy_ = null; - onChanged(); - } else { - ioStrategy_ = null; - ioStrategyBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategy.Builder getIoStrategyBuilder() { - - onChanged(); - return getIoStrategyFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - public flyteidl.core.Tasks.IOStrategyOrBuilder getIoStrategyOrBuilder() { - if (ioStrategyBuilder_ != null) { - return ioStrategyBuilder_.getMessageOrBuilder(); - } else { - return ioStrategy_ == null ? - flyteidl.core.Tasks.IOStrategy.getDefaultInstance() : ioStrategy_; - } - } - /** - * .flyteidl.core.IOStrategy io_strategy = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder> - getIoStrategyFieldBuilder() { - if (ioStrategyBuilder_ == null) { - ioStrategyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.IOStrategy, flyteidl.core.Tasks.IOStrategy.Builder, flyteidl.core.Tasks.IOStrategyOrBuilder>( - getIoStrategy(), - getParentForChildren(), - isClean()); - ioStrategy_ = null; - } - return ioStrategyBuilder_; - } - @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.core.DataLoadingConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.DataLoadingConfig) - private static final flyteidl.core.Tasks.DataLoadingConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.DataLoadingConfig(); - } - - public static flyteidl.core.Tasks.DataLoadingConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataLoadingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataLoadingConfig(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.core.Tasks.DataLoadingConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface K8sPodOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.K8sPod) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - boolean hasMetadata(); - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - flyteidl.core.Tasks.K8sObjectMetadata getMetadata(); - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - boolean hasPodSpec(); - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - com.google.protobuf.Struct getPodSpec(); - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - com.google.protobuf.StructOrBuilder getPodSpecOrBuilder(); - - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - boolean hasDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - flyteidl.core.Tasks.DataLoadingConfig getDataConfig(); - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder(); - } - /** - *
-   * Defines a pod spec and additional pod metadata that is created when a task is executed.
-   * 
- * - * Protobuf type {@code flyteidl.core.K8sPod} - */ - public static final class K8sPod extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.K8sPod) - K8sPodOrBuilder { - private static final long serialVersionUID = 0L; - // Use K8sPod.newBuilder() to construct. - private K8sPod(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private K8sPod() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private K8sPod( - 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.Tasks.K8sObjectMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Tasks.K8sObjectMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (podSpec_ != null) { - subBuilder = podSpec_.toBuilder(); - } - podSpec_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(podSpec_); - podSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Tasks.DataLoadingConfig.Builder subBuilder = null; - if (dataConfig_ != null) { - subBuilder = dataConfig_.toBuilder(); - } - dataConfig_ = input.readMessage(flyteidl.core.Tasks.DataLoadingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataConfig_); - dataConfig_ = 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.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.K8sPod.class, flyteidl.core.Tasks.K8sPod.Builder.class); - } - - public static final int METADATA_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.K8sObjectMetadata metadata_; - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public flyteidl.core.Tasks.K8sObjectMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Contains additional metadata for building a kubernetes pod.
-     * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int POD_SPEC_FIELD_NUMBER = 2; - private com.google.protobuf.Struct podSpec_; - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public boolean hasPodSpec() { - return podSpec_ != null; - } - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public com.google.protobuf.Struct getPodSpec() { - return podSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : podSpec_; - } - /** - *
-     * Defines the primary pod spec created when a task is executed.
-     * This should be a JSON-marshalled pod spec, which can be defined in
-     * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-     * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-     * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public com.google.protobuf.StructOrBuilder getPodSpecOrBuilder() { - return getPodSpec(); - } - - public static final int DATA_CONFIG_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public boolean hasDataConfig() { - return dataConfig_ != null; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - /** - *
-     * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-     * This makes it possible to to run a completely portable container, that uses inputs and outputs
-     * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-     * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-     * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-     * to understand the default paths.
-     * Only K8s
-     * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - return getDataConfig(); - } - - 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 (metadata_ != null) { - output.writeMessage(1, getMetadata()); - } - if (podSpec_ != null) { - output.writeMessage(2, getPodSpec()); - } - if (dataConfig_ != null) { - output.writeMessage(3, getDataConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (podSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPodSpec()); - } - if (dataConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getDataConfig()); - } - 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.core.Tasks.K8sPod)) { - return super.equals(obj); - } - flyteidl.core.Tasks.K8sPod other = (flyteidl.core.Tasks.K8sPod) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasPodSpec() != other.hasPodSpec()) return false; - if (hasPodSpec()) { - if (!getPodSpec() - .equals(other.getPodSpec())) return false; - } - if (hasDataConfig() != other.hasDataConfig()) return false; - if (hasDataConfig()) { - if (!getDataConfig() - .equals(other.getDataConfig())) 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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasPodSpec()) { - hash = (37 * hash) + POD_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getPodSpec().hashCode(); - } - if (hasDataConfig()) { - hash = (37 * hash) + DATA_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDataConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.K8sPod parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sPod parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sPod parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sPod parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sPod parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sPod parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sPod parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sPod 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.core.Tasks.K8sPod parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sPod 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.core.Tasks.K8sPod parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sPod 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.core.Tasks.K8sPod 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; - } - /** - *
-     * Defines a pod spec and additional pod metadata that is created when a task is executed.
-     * 
- * - * Protobuf type {@code flyteidl.core.K8sPod} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.K8sPod) - flyteidl.core.Tasks.K8sPodOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.K8sPod.class, flyteidl.core.Tasks.K8sPod.Builder.class); - } - - // Construct using flyteidl.core.Tasks.K8sPod.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (podSpecBuilder_ == null) { - podSpec_ = null; - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sPod_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sPod getDefaultInstanceForType() { - return flyteidl.core.Tasks.K8sPod.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sPod build() { - flyteidl.core.Tasks.K8sPod result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sPod buildPartial() { - flyteidl.core.Tasks.K8sPod result = new flyteidl.core.Tasks.K8sPod(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (podSpecBuilder_ == null) { - result.podSpec_ = podSpec_; - } else { - result.podSpec_ = podSpecBuilder_.build(); - } - if (dataConfigBuilder_ == null) { - result.dataConfig_ = dataConfig_; - } else { - result.dataConfig_ = dataConfigBuilder_.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.core.Tasks.K8sPod) { - return mergeFrom((flyteidl.core.Tasks.K8sPod)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.K8sPod other) { - if (other == flyteidl.core.Tasks.K8sPod.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasPodSpec()) { - mergePodSpec(other.getPodSpec()); - } - if (other.hasDataConfig()) { - mergeDataConfig(other.getDataConfig()); - } - 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.core.Tasks.K8sPod parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.K8sPod) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.K8sObjectMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public flyteidl.core.Tasks.K8sObjectMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public Builder setMetadata(flyteidl.core.Tasks.K8sObjectMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public Builder setMetadata( - flyteidl.core.Tasks.K8sObjectMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public Builder mergeMetadata(flyteidl.core.Tasks.K8sObjectMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Tasks.K8sObjectMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public flyteidl.core.Tasks.K8sObjectMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - public flyteidl.core.Tasks.K8sObjectMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Contains additional metadata for building a kubernetes pod.
-       * 
- * - * .flyteidl.core.K8sObjectMetadata metadata = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.K8sObjectMetadata, flyteidl.core.Tasks.K8sObjectMetadata.Builder, flyteidl.core.Tasks.K8sObjectMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.Struct podSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> podSpecBuilder_; - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public boolean hasPodSpec() { - return podSpecBuilder_ != null || podSpec_ != null; - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public com.google.protobuf.Struct getPodSpec() { - if (podSpecBuilder_ == null) { - return podSpec_ == null ? com.google.protobuf.Struct.getDefaultInstance() : podSpec_; - } else { - return podSpecBuilder_.getMessage(); - } - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public Builder setPodSpec(com.google.protobuf.Struct value) { - if (podSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podSpec_ = value; - onChanged(); - } else { - podSpecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public Builder setPodSpec( - com.google.protobuf.Struct.Builder builderForValue) { - if (podSpecBuilder_ == null) { - podSpec_ = builderForValue.build(); - onChanged(); - } else { - podSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public Builder mergePodSpec(com.google.protobuf.Struct value) { - if (podSpecBuilder_ == null) { - if (podSpec_ != null) { - podSpec_ = - com.google.protobuf.Struct.newBuilder(podSpec_).mergeFrom(value).buildPartial(); - } else { - podSpec_ = value; - } - onChanged(); - } else { - podSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public Builder clearPodSpec() { - if (podSpecBuilder_ == null) { - podSpec_ = null; - onChanged(); - } else { - podSpec_ = null; - podSpecBuilder_ = null; - } - - return this; - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public com.google.protobuf.Struct.Builder getPodSpecBuilder() { - - onChanged(); - return getPodSpecFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - public com.google.protobuf.StructOrBuilder getPodSpecOrBuilder() { - if (podSpecBuilder_ != null) { - return podSpecBuilder_.getMessageOrBuilder(); - } else { - return podSpec_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : podSpec_; - } - } - /** - *
-       * Defines the primary pod spec created when a task is executed.
-       * This should be a JSON-marshalled pod spec, which can be defined in
-       * - go, using: https://github.com/kubernetes/api/blob/release-1.21/core/v1/types.go#L2936
-       * - python: using https://github.com/kubernetes-client/python/blob/release-19.0/kubernetes/client/models/v1_pod_spec.py
-       * 
- * - * .google.protobuf.Struct pod_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getPodSpecFieldBuilder() { - if (podSpecBuilder_ == null) { - podSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getPodSpec(), - getParentForChildren(), - isClean()); - podSpec_ = null; - } - return podSpecBuilder_; - } - - private flyteidl.core.Tasks.DataLoadingConfig dataConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> dataConfigBuilder_; - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public boolean hasDataConfig() { - return dataConfigBuilder_ != null || dataConfig_ != null; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public flyteidl.core.Tasks.DataLoadingConfig getDataConfig() { - if (dataConfigBuilder_ == null) { - return dataConfig_ == null ? flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } else { - return dataConfigBuilder_.getMessage(); - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public Builder setDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataConfig_ = value; - onChanged(); - } else { - dataConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public Builder setDataConfig( - flyteidl.core.Tasks.DataLoadingConfig.Builder builderForValue) { - if (dataConfigBuilder_ == null) { - dataConfig_ = builderForValue.build(); - onChanged(); - } else { - dataConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public Builder mergeDataConfig(flyteidl.core.Tasks.DataLoadingConfig value) { - if (dataConfigBuilder_ == null) { - if (dataConfig_ != null) { - dataConfig_ = - flyteidl.core.Tasks.DataLoadingConfig.newBuilder(dataConfig_).mergeFrom(value).buildPartial(); - } else { - dataConfig_ = value; - } - onChanged(); - } else { - dataConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public Builder clearDataConfig() { - if (dataConfigBuilder_ == null) { - dataConfig_ = null; - onChanged(); - } else { - dataConfig_ = null; - dataConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public flyteidl.core.Tasks.DataLoadingConfig.Builder getDataConfigBuilder() { - - onChanged(); - return getDataConfigFieldBuilder().getBuilder(); - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - public flyteidl.core.Tasks.DataLoadingConfigOrBuilder getDataConfigOrBuilder() { - if (dataConfigBuilder_ != null) { - return dataConfigBuilder_.getMessageOrBuilder(); - } else { - return dataConfig_ == null ? - flyteidl.core.Tasks.DataLoadingConfig.getDefaultInstance() : dataConfig_; - } - } - /** - *
-       * BETA: Optional configuration for DataLoading. If not specified, then default values are used.
-       * This makes it possible to to run a completely portable container, that uses inputs and outputs
-       * only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment.
-       * If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories
-       * are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation
-       * to understand the default paths.
-       * Only K8s
-       * 
- * - * .flyteidl.core.DataLoadingConfig data_config = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder> - getDataConfigFieldBuilder() { - if (dataConfigBuilder_ == null) { - dataConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.DataLoadingConfig, flyteidl.core.Tasks.DataLoadingConfig.Builder, flyteidl.core.Tasks.DataLoadingConfigOrBuilder>( - getDataConfig(), - getParentForChildren(), - isClean()); - dataConfig_ = null; - } - return dataConfigBuilder_; - } - @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.core.K8sPod) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.K8sPod) - private static final flyteidl.core.Tasks.K8sPod DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.K8sPod(); - } - - public static flyteidl.core.Tasks.K8sPod getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public K8sPod parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new K8sPod(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.core.Tasks.K8sPod getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface K8sObjectMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.K8sObjectMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - int getLabelsCount(); - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - boolean containsLabels( - java.lang.String key); - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getLabels(); - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - java.util.Map - getLabelsMap(); - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - java.lang.String getLabelsOrThrow( - java.lang.String key); - - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - int getAnnotationsCount(); - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - boolean containsAnnotations( - java.lang.String key); - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getAnnotations(); - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - java.util.Map - getAnnotationsMap(); - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - java.lang.String getAnnotationsOrThrow( - java.lang.String key); - } - /** - *
-   * Metadata for building a kubernetes object when a task is executed.
-   * 
- * - * Protobuf type {@code flyteidl.core.K8sObjectMetadata} - */ - public static final class K8sObjectMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.K8sObjectMetadata) - K8sObjectMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use K8sObjectMetadata.newBuilder() to construct. - private K8sObjectMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private K8sObjectMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private K8sObjectMetadata( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - labels__ = input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - labels_.getMutableMap().put( - labels__.getKey(), labels__.getValue()); - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - annotations__ = input.readMessage( - AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotations_.getMutableMap().put( - annotations__.getKey(), annotations__.getValue()); - 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.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - case 2: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.K8sObjectMetadata.class, flyteidl.core.Tasks.K8sObjectMetadata.Builder.class); - } - - public static final int LABELS_FIELD_NUMBER = 1; - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional labels to add to the pod definition.
-     * 
- * - * map<string, string> labels = 1; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 2; - private static final class AnnotationsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional annotations to add to the pod definition.
-     * 
- * - * map<string, string> annotations = 2; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetLabels(), - LabelsDefaultEntryHolder.defaultEntry, - 1); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetAnnotations(), - AnnotationsDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry - labels__ = LabelsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, labels__); - } - for (java.util.Map.Entry entry - : internalGetAnnotations().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotations__ = AnnotationsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, annotations__); - } - 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.core.Tasks.K8sObjectMetadata)) { - return super.equals(obj); - } - flyteidl.core.Tasks.K8sObjectMetadata other = (flyteidl.core.Tasks.K8sObjectMetadata) obj; - - if (!internalGetLabels().equals( - other.internalGetLabels())) return false; - if (!internalGetAnnotations().equals( - other.internalGetAnnotations())) 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 (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (!internalGetAnnotations().getMap().isEmpty()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetAnnotations().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.K8sObjectMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sObjectMetadata 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.core.Tasks.K8sObjectMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sObjectMetadata 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.core.Tasks.K8sObjectMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.K8sObjectMetadata 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.core.Tasks.K8sObjectMetadata 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; - } - /** - *
-     * Metadata for building a kubernetes object when a task is executed.
-     * 
- * - * Protobuf type {@code flyteidl.core.K8sObjectMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.K8sObjectMetadata) - flyteidl.core.Tasks.K8sObjectMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetLabels(); - case 2: - return internalGetAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableLabels(); - case 2: - return internalGetMutableAnnotations(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.K8sObjectMetadata.class, flyteidl.core.Tasks.K8sObjectMetadata.Builder.class); - } - - // Construct using flyteidl.core.Tasks.K8sObjectMetadata.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(); - internalGetMutableLabels().clear(); - internalGetMutableAnnotations().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_K8sObjectMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sObjectMetadata getDefaultInstanceForType() { - return flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sObjectMetadata build() { - flyteidl.core.Tasks.K8sObjectMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.K8sObjectMetadata buildPartial() { - flyteidl.core.Tasks.K8sObjectMetadata result = new flyteidl.core.Tasks.K8sObjectMetadata(this); - int from_bitField0_ = bitField0_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.annotations_ = internalGetAnnotations(); - result.annotations_.makeImmutable(); - 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.core.Tasks.K8sObjectMetadata) { - return mergeFrom((flyteidl.core.Tasks.K8sObjectMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.K8sObjectMetadata other) { - if (other == flyteidl.core.Tasks.K8sObjectMetadata.getDefaultInstance()) return this; - internalGetMutableLabels().mergeFrom( - other.internalGetLabels()); - internalGetMutableAnnotations().mergeFrom( - other.internalGetAnnotations()); - 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.core.Tasks.K8sObjectMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.K8sObjectMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> labels_; - private com.google.protobuf.MapField - internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - private com.google.protobuf.MapField - internalGetMutableLabels() { - onChanged();; - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField( - LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public boolean containsLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetLabels().getMap().containsKey(key); - } - /** - * Use {@link #getLabelsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public java.lang.String getLabelsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public java.lang.String getLabelsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - internalGetMutableLabels().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public Builder removeLabels( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableLabels() { - return internalGetMutableLabels().getMutableMap(); - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - public Builder putLabels( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableLabels().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Optional labels to add to the pod definition.
-       * 
- * - * map<string, string> labels = 1; - */ - - public Builder putAllLabels( - java.util.Map values) { - internalGetMutableLabels().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> annotations_; - private com.google.protobuf.MapField - internalGetAnnotations() { - if (annotations_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - return annotations_; - } - private com.google.protobuf.MapField - internalGetMutableAnnotations() { - onChanged();; - if (annotations_ == null) { - annotations_ = com.google.protobuf.MapField.newMapField( - AnnotationsDefaultEntryHolder.defaultEntry); - } - if (!annotations_.isMutable()) { - annotations_ = annotations_.copy(); - } - return annotations_; - } - - public int getAnnotationsCount() { - return internalGetAnnotations().getMap().size(); - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public boolean containsAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAnnotations().getMap().containsKey(key); - } - /** - * Use {@link #getAnnotationsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAnnotations() { - return getAnnotationsMap(); - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public java.util.Map getAnnotationsMap() { - return internalGetAnnotations().getMap(); - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public java.lang.String getAnnotationsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public java.lang.String getAnnotationsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAnnotations().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAnnotations() { - internalGetMutableAnnotations().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public Builder removeAnnotations( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAnnotations() { - return internalGetMutableAnnotations().getMutableMap(); - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - public Builder putAnnotations( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAnnotations().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Optional annotations to add to the pod definition.
-       * 
- * - * map<string, string> annotations = 2; - */ - - public Builder putAllAnnotations( - java.util.Map values) { - internalGetMutableAnnotations().getMutableMap() - .putAll(values); - return this; - } - @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.core.K8sObjectMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.K8sObjectMetadata) - private static final flyteidl.core.Tasks.K8sObjectMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.K8sObjectMetadata(); - } - - public static flyteidl.core.Tasks.K8sObjectMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public K8sObjectMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new K8sObjectMetadata(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.core.Tasks.K8sObjectMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SqlOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Sql) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The actual query to run, the query can have templated parameters.
-     * We use Flyte's Golang templating format for Query templating.
-     * Refer to the templating documentation.
-     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-     * For example,
-     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-     * select *
-     * from my_table
-     * where ds = '{{ .Inputs.ds }}'
-     * 
- * - * string statement = 1; - */ - java.lang.String getStatement(); - /** - *
-     * The actual query to run, the query can have templated parameters.
-     * We use Flyte's Golang templating format for Query templating.
-     * Refer to the templating documentation.
-     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-     * For example,
-     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-     * select *
-     * from my_table
-     * where ds = '{{ .Inputs.ds }}'
-     * 
- * - * string statement = 1; - */ - com.google.protobuf.ByteString - getStatementBytes(); - - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - int getDialectValue(); - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - flyteidl.core.Tasks.Sql.Dialect getDialect(); - } - /** - *
-   * Sql represents a generic sql workload with a statement and dialect.
-   * 
- * - * Protobuf type {@code flyteidl.core.Sql} - */ - public static final class Sql extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Sql) - SqlOrBuilder { - private static final long serialVersionUID = 0L; - // Use Sql.newBuilder() to construct. - private Sql(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Sql() { - statement_ = ""; - dialect_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Sql( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - statement_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - dialect_ = rawValue; - 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.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Sql.class, flyteidl.core.Tasks.Sql.Builder.class); - } - - /** - *
-     * The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid
-     * expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement.
-     * We support the following dialect: ansi, hive.
-     * 
- * - * Protobuf enum {@code flyteidl.core.Sql.Dialect} - */ - public enum Dialect - implements com.google.protobuf.ProtocolMessageEnum { - /** - * UNDEFINED = 0; - */ - UNDEFINED(0), - /** - * ANSI = 1; - */ - ANSI(1), - /** - * HIVE = 2; - */ - HIVE(2), - /** - * OTHER = 3; - */ - OTHER(3), - UNRECOGNIZED(-1), - ; - - /** - * UNDEFINED = 0; - */ - public static final int UNDEFINED_VALUE = 0; - /** - * ANSI = 1; - */ - public static final int ANSI_VALUE = 1; - /** - * HIVE = 2; - */ - public static final int HIVE_VALUE = 2; - /** - * OTHER = 3; - */ - public static final int OTHER_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Dialect valueOf(int value) { - return forNumber(value); - } - - public static Dialect forNumber(int value) { - switch (value) { - case 0: return UNDEFINED; - case 1: return ANSI; - case 2: return HIVE; - case 3: return OTHER; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Dialect> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Dialect findValueByNumber(int number) { - return Dialect.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Tasks.Sql.getDescriptor().getEnumTypes().get(0); - } - - private static final Dialect[] VALUES = values(); - - public static Dialect valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Dialect(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.Sql.Dialect) - } - - public static final int STATEMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object statement_; - /** - *
-     * The actual query to run, the query can have templated parameters.
-     * We use Flyte's Golang templating format for Query templating.
-     * Refer to the templating documentation.
-     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-     * For example,
-     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-     * select *
-     * from my_table
-     * where ds = '{{ .Inputs.ds }}'
-     * 
- * - * string statement = 1; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } - } - /** - *
-     * The actual query to run, the query can have templated parameters.
-     * We use Flyte's Golang templating format for Query templating.
-     * Refer to the templating documentation.
-     * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-     * For example,
-     * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-     * select *
-     * from my_table
-     * where ds = '{{ .Inputs.ds }}'
-     * 
- * - * string statement = 1; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIALECT_FIELD_NUMBER = 2; - private int dialect_; - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public int getDialectValue() { - return dialect_; - } - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public flyteidl.core.Tasks.Sql.Dialect getDialect() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Sql.Dialect result = flyteidl.core.Tasks.Sql.Dialect.valueOf(dialect_); - return result == null ? flyteidl.core.Tasks.Sql.Dialect.UNRECOGNIZED : result; - } - - 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 (!getStatementBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, statement_); - } - if (dialect_ != flyteidl.core.Tasks.Sql.Dialect.UNDEFINED.getNumber()) { - output.writeEnum(2, dialect_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getStatementBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, statement_); - } - if (dialect_ != flyteidl.core.Tasks.Sql.Dialect.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dialect_); - } - 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.core.Tasks.Sql)) { - return super.equals(obj); - } - flyteidl.core.Tasks.Sql other = (flyteidl.core.Tasks.Sql) obj; - - if (!getStatement() - .equals(other.getStatement())) return false; - if (dialect_ != other.dialect_) 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(); - hash = (37 * hash) + STATEMENT_FIELD_NUMBER; - hash = (53 * hash) + getStatement().hashCode(); - hash = (37 * hash) + DIALECT_FIELD_NUMBER; - hash = (53 * hash) + dialect_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Tasks.Sql parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Sql parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Sql parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Sql parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Sql parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Tasks.Sql parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Tasks.Sql parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Sql 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.core.Tasks.Sql parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Sql 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.core.Tasks.Sql parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Tasks.Sql 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.core.Tasks.Sql 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; - } - /** - *
-     * Sql represents a generic sql workload with a statement and dialect.
-     * 
- * - * Protobuf type {@code flyteidl.core.Sql} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Sql) - flyteidl.core.Tasks.SqlOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Tasks.Sql.class, flyteidl.core.Tasks.Sql.Builder.class); - } - - // Construct using flyteidl.core.Tasks.Sql.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(); - statement_ = ""; - - dialect_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Tasks.internal_static_flyteidl_core_Sql_descriptor; - } - - @java.lang.Override - public flyteidl.core.Tasks.Sql getDefaultInstanceForType() { - return flyteidl.core.Tasks.Sql.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Tasks.Sql build() { - flyteidl.core.Tasks.Sql result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Tasks.Sql buildPartial() { - flyteidl.core.Tasks.Sql result = new flyteidl.core.Tasks.Sql(this); - result.statement_ = statement_; - result.dialect_ = dialect_; - 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.core.Tasks.Sql) { - return mergeFrom((flyteidl.core.Tasks.Sql)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Tasks.Sql other) { - if (other == flyteidl.core.Tasks.Sql.getDefaultInstance()) return this; - if (!other.getStatement().isEmpty()) { - statement_ = other.statement_; - onChanged(); - } - if (other.dialect_ != 0) { - setDialectValue(other.getDialectValue()); - } - 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.core.Tasks.Sql parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Tasks.Sql) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object statement_ = ""; - /** - *
-       * The actual query to run, the query can have templated parameters.
-       * We use Flyte's Golang templating format for Query templating.
-       * Refer to the templating documentation.
-       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-       * For example,
-       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-       * select *
-       * from my_table
-       * where ds = '{{ .Inputs.ds }}'
-       * 
- * - * string statement = 1; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The actual query to run, the query can have templated parameters.
-       * We use Flyte's Golang templating format for Query templating.
-       * Refer to the templating documentation.
-       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-       * For example,
-       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-       * select *
-       * from my_table
-       * where ds = '{{ .Inputs.ds }}'
-       * 
- * - * string statement = 1; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The actual query to run, the query can have templated parameters.
-       * We use Flyte's Golang templating format for Query templating.
-       * Refer to the templating documentation.
-       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-       * For example,
-       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-       * select *
-       * from my_table
-       * where ds = '{{ .Inputs.ds }}'
-       * 
- * - * string statement = 1; - */ - public Builder setStatement( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statement_ = value; - onChanged(); - return this; - } - /** - *
-       * The actual query to run, the query can have templated parameters.
-       * We use Flyte's Golang templating format for Query templating.
-       * Refer to the templating documentation.
-       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-       * For example,
-       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-       * select *
-       * from my_table
-       * where ds = '{{ .Inputs.ds }}'
-       * 
- * - * string statement = 1; - */ - public Builder clearStatement() { - - statement_ = getDefaultInstance().getStatement(); - onChanged(); - return this; - } - /** - *
-       * The actual query to run, the query can have templated parameters.
-       * We use Flyte's Golang templating format for Query templating.
-       * Refer to the templating documentation.
-       * https://docs.flyte.org/projects/cookbook/en/latest/auto/integrations/external_services/hive/hive.html#sphx-glr-auto-integrations-external-services-hive-hive-py
-       * For example,
-       * insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet
-       * select *
-       * from my_table
-       * where ds = '{{ .Inputs.ds }}'
-       * 
- * - * string statement = 1; - */ - public Builder setStatementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statement_ = value; - onChanged(); - return this; - } - - private int dialect_ = 0; - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public int getDialectValue() { - return dialect_; - } - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public Builder setDialectValue(int value) { - dialect_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public flyteidl.core.Tasks.Sql.Dialect getDialect() { - @SuppressWarnings("deprecation") - flyteidl.core.Tasks.Sql.Dialect result = flyteidl.core.Tasks.Sql.Dialect.valueOf(dialect_); - return result == null ? flyteidl.core.Tasks.Sql.Dialect.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public Builder setDialect(flyteidl.core.Tasks.Sql.Dialect value) { - if (value == null) { - throw new NullPointerException(); - } - - dialect_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.Sql.Dialect dialect = 2; - */ - public Builder clearDialect() { - - dialect_ = 0; - onChanged(); - return this; - } - @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.core.Sql) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Sql) - private static final flyteidl.core.Tasks.Sql DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Tasks.Sql(); - } - - public static flyteidl.core.Tasks.Sql getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Sql parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Sql(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.core.Tasks.Sql getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Resources_ResourceEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Resources_ResourceEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_GPUAccelerator_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_GPUAccelerator_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ExtendedResources_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ExtendedResources_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_RuntimeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_RuntimeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskMetadata_TagsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskMetadata_TagsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskTemplate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskTemplate_ConfigEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskTemplate_ConfigEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ContainerPort_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ContainerPort_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Container_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Container_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IOStrategy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IOStrategy_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_DataLoadingConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_DataLoadingConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_K8sPod_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_K8sPod_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_K8sObjectMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_K8sObjectMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_K8sObjectMetadata_LabelsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_K8sObjectMetadata_AnnotationsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Sql_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Sql_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031flyteidl/core/tasks.proto\022\rflyteidl.co" + - "re\032\036flyteidl/core/identifier.proto\032\035flyt" + - "eidl/core/interface.proto\032\034flyteidl/core" + - "/literals.proto\032\034flyteidl/core/security." + - "proto\032\036google/protobuf/duration.proto\032\034g" + - "oogle/protobuf/struct.proto\"\261\002\n\tResource" + - "s\0228\n\010requests\030\001 \003(\0132&.flyteidl.core.Reso" + - "urces.ResourceEntry\0226\n\006limits\030\002 \003(\0132&.fl" + - "yteidl.core.Resources.ResourceEntry\032S\n\rR" + - "esourceEntry\0223\n\004name\030\001 \001(\0162%.flyteidl.co" + - "re.Resources.ResourceName\022\r\n\005value\030\002 \001(\t" + - "\"]\n\014ResourceName\022\013\n\007UNKNOWN\020\000\022\007\n\003CPU\020\001\022\007" + - "\n\003GPU\020\002\022\n\n\006MEMORY\020\003\022\013\n\007STORAGE\020\004\022\025\n\021EPHE" + - "MERAL_STORAGE\020\005\"k\n\016GPUAccelerator\022\016\n\006dev" + - "ice\030\001 \001(\t\022\027\n\runpartitioned\030\002 \001(\010H\000\022\030\n\016pa" + - "rtition_size\030\003 \001(\tH\000B\026\n\024partition_size_v" + - "alue\"K\n\021ExtendedResources\0226\n\017gpu_acceler" + - "ator\030\001 \001(\0132\035.flyteidl.core.GPUAccelerato" + - "r\"\225\001\n\017RuntimeMetadata\0228\n\004type\030\001 \001(\0162*.fl" + - "yteidl.core.RuntimeMetadata.RuntimeType\022" + - "\017\n\007version\030\002 \001(\t\022\016\n\006flavor\030\003 \001(\t\"\'\n\013Runt" + - "imeType\022\t\n\005OTHER\020\000\022\r\n\tFLYTE_SDK\020\001\"\357\003\n\014Ta" + - "skMetadata\022\024\n\014discoverable\030\001 \001(\010\022/\n\007runt" + - "ime\030\002 \001(\0132\036.flyteidl.core.RuntimeMetadat" + - "a\022*\n\007timeout\030\004 \001(\0132\031.google.protobuf.Dur" + - "ation\022-\n\007retries\030\005 \001(\0132\034.flyteidl.core.R" + - "etryStrategy\022\031\n\021discovery_version\030\006 \001(\t\022" + - " \n\030deprecated_error_message\030\007 \001(\t\022\027\n\rint" + - "erruptible\030\010 \001(\010H\000\022\032\n\022cache_serializable" + - "\030\t \001(\010\022\026\n\016generates_deck\030\n \001(\010\0223\n\004tags\030\013" + - " \003(\0132%.flyteidl.core.TaskMetadata.TagsEn" + - "try\022\031\n\021pod_template_name\030\014 \001(\t\022\037\n\027cache_" + - "ignore_input_vars\030\r \003(\t\032+\n\tTagsEntry\022\013\n\003" + - "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\025\n\023interrup" + - "tible_value\"\316\004\n\014TaskTemplate\022%\n\002id\030\001 \001(\013" + - "2\031.flyteidl.core.Identifier\022\014\n\004type\030\002 \001(" + - "\t\022-\n\010metadata\030\003 \001(\0132\033.flyteidl.core.Task" + - "Metadata\0220\n\tinterface\030\004 \001(\0132\035.flyteidl.c" + - "ore.TypedInterface\022\'\n\006custom\030\005 \001(\0132\027.goo" + - "gle.protobuf.Struct\022-\n\tcontainer\030\006 \001(\0132\030" + - ".flyteidl.core.ContainerH\000\022(\n\007k8s_pod\030\021 " + - "\001(\0132\025.flyteidl.core.K8sPodH\000\022!\n\003sql\030\022 \001(" + - "\0132\022.flyteidl.core.SqlH\000\022\031\n\021task_type_ver" + - "sion\030\007 \001(\005\0228\n\020security_context\030\010 \001(\0132\036.f" + - "lyteidl.core.SecurityContext\022<\n\022extended" + - "_resources\030\t \001(\0132 .flyteidl.core.Extende" + - "dResources\0227\n\006config\030\020 \003(\0132\'.flyteidl.co" + - "re.TaskTemplate.ConfigEntry\032-\n\013ConfigEnt" + - "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\010\n\006ta" + - "rget\"\'\n\rContainerPort\022\026\n\016container_port\030" + - "\001 \001(\r\"\255\003\n\tContainer\022\r\n\005image\030\001 \001(\t\022\017\n\007co" + - "mmand\030\002 \003(\t\022\014\n\004args\030\003 \003(\t\022+\n\tresources\030\004" + - " \001(\0132\030.flyteidl.core.Resources\022(\n\003env\030\005 " + - "\003(\0132\033.flyteidl.core.KeyValuePair\022/\n\006conf" + - "ig\030\006 \003(\0132\033.flyteidl.core.KeyValuePairB\002\030" + - "\001\022+\n\005ports\030\007 \003(\0132\034.flyteidl.core.Contain" + - "erPort\0225\n\013data_config\030\t \001(\0132 .flyteidl.c" + - "ore.DataLoadingConfig\022;\n\014architecture\030\n " + - "\001(\0162%.flyteidl.core.Container.Architectu" + - "re\"I\n\014Architecture\022\013\n\007UNKNOWN\020\000\022\t\n\005AMD64" + - "\020\001\022\t\n\005ARM64\020\002\022\n\n\006ARM_V6\020\003\022\n\n\006ARM_V7\020\004\"\233\002" + - "\n\nIOStrategy\022=\n\rdownload_mode\030\001 \001(\0162&.fl" + - "yteidl.core.IOStrategy.DownloadMode\0229\n\013u" + - "pload_mode\030\002 \001(\0162$.flyteidl.core.IOStrat" + - "egy.UploadMode\"L\n\014DownloadMode\022\022\n\016DOWNLO" + - "AD_EAGER\020\000\022\023\n\017DOWNLOAD_STREAM\020\001\022\023\n\017DO_NO" + - "T_DOWNLOAD\020\002\"E\n\nUploadMode\022\022\n\016UPLOAD_ON_" + - "EXIT\020\000\022\020\n\014UPLOAD_EAGER\020\001\022\021\n\rDO_NOT_UPLOA" + - "D\020\002\"\363\001\n\021DataLoadingConfig\022\017\n\007enabled\030\001 \001" + - "(\010\022\022\n\ninput_path\030\002 \001(\t\022\023\n\013output_path\030\003 " + - "\001(\t\022A\n\006format\030\004 \001(\01621.flyteidl.core.Data" + - "LoadingConfig.LiteralMapFormat\022.\n\013io_str" + - "ategy\030\005 \001(\0132\031.flyteidl.core.IOStrategy\"1" + - "\n\020LiteralMapFormat\022\010\n\004JSON\020\000\022\010\n\004YAML\020\001\022\t" + - "\n\005PROTO\020\002\"\236\001\n\006K8sPod\0222\n\010metadata\030\001 \001(\0132 " + - ".flyteidl.core.K8sObjectMetadata\022)\n\010pod_" + - "spec\030\002 \001(\0132\027.google.protobuf.Struct\0225\n\013d" + - "ata_config\030\003 \001(\0132 .flyteidl.core.DataLoa" + - "dingConfig\"\374\001\n\021K8sObjectMetadata\022<\n\006labe" + - "ls\030\001 \003(\0132,.flyteidl.core.K8sObjectMetada" + - "ta.LabelsEntry\022F\n\013annotations\030\002 \003(\01321.fl" + - "yteidl.core.K8sObjectMetadata.Annotation" + - "sEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003key" + - "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"~\n\003Sql\022\021\n\tstat" + - "ement\030\001 \001(\t\022+\n\007dialect\030\002 \001(\0162\032.flyteidl." + - "core.Sql.Dialect\"7\n\007Dialect\022\r\n\tUNDEFINED" + - "\020\000\022\010\n\004ANSI\020\001\022\010\n\004HIVE\020\002\022\t\n\005OTHER\020\003B - * Define a set of simple types. - * - * - * Protobuf enum {@code flyteidl.core.SimpleType} - */ - public enum SimpleType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * NONE = 0; - */ - NONE(0), - /** - * INTEGER = 1; - */ - INTEGER(1), - /** - * FLOAT = 2; - */ - FLOAT(2), - /** - * STRING = 3; - */ - STRING(3), - /** - * BOOLEAN = 4; - */ - BOOLEAN(4), - /** - * DATETIME = 5; - */ - DATETIME(5), - /** - * DURATION = 6; - */ - DURATION(6), - /** - * BINARY = 7; - */ - BINARY(7), - /** - * ERROR = 8; - */ - ERROR(8), - /** - * STRUCT = 9; - */ - STRUCT(9), - UNRECOGNIZED(-1), - ; - - /** - * NONE = 0; - */ - public static final int NONE_VALUE = 0; - /** - * INTEGER = 1; - */ - public static final int INTEGER_VALUE = 1; - /** - * FLOAT = 2; - */ - public static final int FLOAT_VALUE = 2; - /** - * STRING = 3; - */ - public static final int STRING_VALUE = 3; - /** - * BOOLEAN = 4; - */ - public static final int BOOLEAN_VALUE = 4; - /** - * DATETIME = 5; - */ - public static final int DATETIME_VALUE = 5; - /** - * DURATION = 6; - */ - public static final int DURATION_VALUE = 6; - /** - * BINARY = 7; - */ - public static final int BINARY_VALUE = 7; - /** - * ERROR = 8; - */ - public static final int ERROR_VALUE = 8; - /** - * STRUCT = 9; - */ - public static final int STRUCT_VALUE = 9; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SimpleType valueOf(int value) { - return forNumber(value); - } - - public static SimpleType forNumber(int value) { - switch (value) { - case 0: return NONE; - case 1: return INTEGER; - case 2: return FLOAT; - case 3: return STRING; - case 4: return BOOLEAN; - case 5: return DATETIME; - case 6: return DURATION; - case 7: return BINARY; - case 8: return ERROR; - case 9: return STRUCT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SimpleType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SimpleType findValueByNumber(int number) { - return SimpleType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Types.getDescriptor().getEnumTypes().get(0); - } - - private static final SimpleType[] VALUES = values(); - - public static SimpleType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SimpleType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SimpleType) - } - - public interface SchemaTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - int getColumnsCount(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index); - } - /** - *
-   * Defines schema columns and types to strongly type-validate schemas interoperability.
-   * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class SchemaType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType) - SchemaTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaType.newBuilder() to construct. - private SchemaType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaType() { - columns_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaType( - 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 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(flyteidl.core.Types.SchemaType.SchemaColumn.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - public interface SchemaColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SchemaType.SchemaColumn) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - int getTypeValue(); - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType(); - } - /** - * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class SchemaColumn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SchemaType.SchemaColumn) - SchemaColumnOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaColumn.newBuilder() to construct. - private SchemaColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaColumn() { - name_ = ""; - type_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaColumn( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - type_ = rawValue; - 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.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} - */ - public enum SchemaColumnType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * INTEGER = 0; - */ - INTEGER(0), - /** - * FLOAT = 1; - */ - FLOAT(1), - /** - * STRING = 2; - */ - STRING(2), - /** - * BOOLEAN = 3; - */ - BOOLEAN(3), - /** - * DATETIME = 4; - */ - DATETIME(4), - /** - * DURATION = 5; - */ - DURATION(5), - UNRECOGNIZED(-1), - ; - - /** - * INTEGER = 0; - */ - public static final int INTEGER_VALUE = 0; - /** - * FLOAT = 1; - */ - public static final int FLOAT_VALUE = 1; - /** - * STRING = 2; - */ - public static final int STRING_VALUE = 2; - /** - * BOOLEAN = 3; - */ - public static final int BOOLEAN_VALUE = 3; - /** - * DATETIME = 4; - */ - public static final int DATETIME_VALUE = 4; - /** - * DURATION = 5; - */ - public static final int DURATION_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SchemaColumnType valueOf(int value) { - return forNumber(value); - } - - public static SchemaColumnType forNumber(int value) { - switch (value) { - case 0: return INTEGER; - case 1: return FLOAT; - case 2: return STRING; - case 3: return BOOLEAN; - case 4: return DATETIME; - case 5: return DURATION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - SchemaColumnType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public SchemaColumnType findValueByNumber(int number) { - return SchemaColumnType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Types.SchemaType.SchemaColumn.getDescriptor().getEnumTypes().get(0); - } - - private static final SchemaColumnType[] VALUES = values(); - - public static SchemaColumnType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private SchemaColumnType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-       * A unique name -within the schema type- for the column
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_; - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-       * The column type. This allows a limited set of types currently.
-       * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - output.writeEnum(2, type_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.INTEGER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - 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.core.Types.SchemaType.SchemaColumn)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType.SchemaColumn other = (flyteidl.core.Types.SchemaType.SchemaColumn) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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.core.Types.SchemaType.SchemaColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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.core.Types.SchemaType.SchemaColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType.SchemaColumn 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.core.Types.SchemaType.SchemaColumn 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; - } - /** - * Protobuf type {@code flyteidl.core.SchemaType.SchemaColumn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType.SchemaColumn) - flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.SchemaColumn.class, flyteidl.core.Types.SchemaType.SchemaColumn.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.SchemaColumn.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(); - name_ = ""; - - type_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn build() { - flyteidl.core.Types.SchemaType.SchemaColumn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType.SchemaColumn buildPartial() { - flyteidl.core.Types.SchemaType.SchemaColumn result = new flyteidl.core.Types.SchemaType.SchemaColumn(this); - result.name_ = name_; - result.type_ = type_; - 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.core.Types.SchemaType.SchemaColumn) { - return mergeFrom((flyteidl.core.Types.SchemaType.SchemaColumn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType.SchemaColumn other) { - if (other == flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - 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.core.Types.SchemaType.SchemaColumn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType.SchemaColumn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * A unique name -within the schema type- for the column
-         * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public int getTypeValue() { - return type_; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setTypeValue(int value) { - type_ = value; - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType getType() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType result = flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.valueOf(type_); - return result == null ? flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType.UNRECOGNIZED : result; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder setType(flyteidl.core.Types.SchemaType.SchemaColumn.SchemaColumnType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-         * The column type. This allows a limited set of types currently.
-         * 
- * - * .flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType type = 2; - */ - public Builder clearType() { - - type_ = 0; - onChanged(); - return this; - } - @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.core.SchemaType.SchemaColumn) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType.SchemaColumn) - private static final flyteidl.core.Types.SchemaType.SchemaColumn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType.SchemaColumn(); - } - - public static flyteidl.core.Types.SchemaType.SchemaColumn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaColumn(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.core.Types.SchemaType.SchemaColumn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int COLUMNS_FIELD_NUMBER = 3; - private java.util.List columns_; - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - return columns_.get(index); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - return columns_.get(index); - } - - 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 { - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(3, columns_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, columns_.get(i)); - } - 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.core.Types.SchemaType)) { - return super.equals(obj); - } - flyteidl.core.Types.SchemaType other = (flyteidl.core.Types.SchemaType) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) 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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.SchemaType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.SchemaType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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.core.Types.SchemaType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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.core.Types.SchemaType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.SchemaType 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.core.Types.SchemaType 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; - } - /** - *
-     * Defines schema columns and types to strongly type-validate schemas interoperability.
-     * 
- * - * Protobuf type {@code flyteidl.core.SchemaType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SchemaType) - flyteidl.core.Types.SchemaTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.SchemaType.class, flyteidl.core.Types.SchemaType.Builder.class); - } - - // Construct using flyteidl.core.Types.SchemaType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_SchemaType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType getDefaultInstanceForType() { - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType build() { - flyteidl.core.Types.SchemaType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.SchemaType buildPartial() { - flyteidl.core.Types.SchemaType result = new flyteidl.core.Types.SchemaType(this); - int from_bitField0_ = bitField0_; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.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.core.Types.SchemaType) { - return mergeFrom((flyteidl.core.Types.SchemaType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.SchemaType other) { - if (other == flyteidl.core.Types.SchemaType.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - 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.core.Types.SchemaType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.SchemaType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> columnsBuilder_; - - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder setColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns(flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addColumns( - int index, flyteidl.core.Types.SchemaType.SchemaColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public flyteidl.core.Types.SchemaType.SchemaColumn.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, flyteidl.core.Types.SchemaType.SchemaColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.SchemaType.SchemaColumn columns = 3; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.SchemaType.SchemaColumn, flyteidl.core.Types.SchemaType.SchemaColumn.Builder, flyteidl.core.Types.SchemaType.SchemaColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - @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.core.SchemaType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SchemaType) - private static final flyteidl.core.Types.SchemaType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.SchemaType(); - } - - public static flyteidl.core.Types.SchemaType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaType(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.core.Types.SchemaType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface StructuredDatasetTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - java.util.List - getColumnsList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - int getColumnsCount(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - java.util.List - getColumnsOrBuilderList(); - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( - int index); - - /** - *
-     * This is the storage format, the format of the bits at rest
-     * parquet, feather, csv, etc.
-     * For two types to be compatible, the format will need to be an exact match.
-     * 
- * - * string format = 2; - */ - java.lang.String getFormat(); - /** - *
-     * This is the storage format, the format of the bits at rest
-     * parquet, feather, csv, etc.
-     * For two types to be compatible, the format will need to be an exact match.
-     * 
- * - * string format = 2; - */ - com.google.protobuf.ByteString - getFormatBytes(); - - /** - *
-     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * string external_schema_type = 3; - */ - java.lang.String getExternalSchemaType(); - /** - *
-     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * string external_schema_type = 3; - */ - com.google.protobuf.ByteString - getExternalSchemaTypeBytes(); - - /** - *
-     * The serialized bytes of a third-party schema library like Arrow.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * bytes external_schema_bytes = 4; - */ - com.google.protobuf.ByteString getExternalSchemaBytes(); - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetType} - */ - public static final class StructuredDatasetType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetType) - StructuredDatasetTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use StructuredDatasetType.newBuilder() to construct. - private StructuredDatasetType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StructuredDatasetType() { - columns_ = java.util.Collections.emptyList(); - format_ = ""; - externalSchemaType_ = ""; - externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private StructuredDatasetType( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - columns_.add( - input.readMessage(flyteidl.core.Types.StructuredDatasetType.DatasetColumn.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - format_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - externalSchemaType_ = s; - break; - } - case 34: { - - externalSchemaBytes_ = input.readBytes(); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.StructuredDatasetType.class, flyteidl.core.Types.StructuredDatasetType.Builder.class); - } - - public interface DatasetColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.StructuredDatasetType.DatasetColumn) - com.google.protobuf.MessageOrBuilder { - - /** - *
-       * A unique name within the schema type for the column.
-       * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-       * A unique name within the schema type for the column.
-       * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - boolean hasLiteralType(); - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - flyteidl.core.Types.LiteralType getLiteralType(); - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetType.DatasetColumn} - */ - public static final class DatasetColumn extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.StructuredDatasetType.DatasetColumn) - DatasetColumnOrBuilder { - private static final long serialVersionUID = 0L; - // Use DatasetColumn.newBuilder() to construct. - private DatasetColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DatasetColumn() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DatasetColumn( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (literalType_ != null) { - subBuilder = literalType_.toBuilder(); - } - literalType_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(literalType_); - literalType_ = 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.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.StructuredDatasetType.DatasetColumn.class, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-       * A unique name within the schema type for the column.
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-       * A unique name within the schema type for the column.
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LITERAL_TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType literalType_; - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public boolean hasLiteralType() { - return literalType_ != null; - } - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public flyteidl.core.Types.LiteralType getLiteralType() { - return literalType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; - } - /** - *
-       * The column type.
-       * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder() { - return getLiteralType(); - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (literalType_ != null) { - output.writeMessage(2, getLiteralType()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (literalType_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLiteralType()); - } - 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.core.Types.StructuredDatasetType.DatasetColumn)) { - return super.equals(obj); - } - flyteidl.core.Types.StructuredDatasetType.DatasetColumn other = (flyteidl.core.Types.StructuredDatasetType.DatasetColumn) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasLiteralType() != other.hasLiteralType()) return false; - if (hasLiteralType()) { - if (!getLiteralType() - .equals(other.getLiteralType())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasLiteralType()) { - hash = (37 * hash) + LITERAL_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getLiteralType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn 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.core.Types.StructuredDatasetType.DatasetColumn parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn 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.core.Types.StructuredDatasetType.DatasetColumn parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn 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.core.Types.StructuredDatasetType.DatasetColumn 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; - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetType.DatasetColumn} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetType.DatasetColumn) - flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.StructuredDatasetType.DatasetColumn.class, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder.class); - } - - // Construct using flyteidl.core.Types.StructuredDatasetType.DatasetColumn.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(); - name_ = ""; - - if (literalTypeBuilder_ == null) { - literalType_ = null; - } else { - literalType_ = null; - literalTypeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstanceForType() { - return flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn build() { - flyteidl.core.Types.StructuredDatasetType.DatasetColumn result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn buildPartial() { - flyteidl.core.Types.StructuredDatasetType.DatasetColumn result = new flyteidl.core.Types.StructuredDatasetType.DatasetColumn(this); - result.name_ = name_; - if (literalTypeBuilder_ == null) { - result.literalType_ = literalType_; - } else { - result.literalType_ = literalTypeBuilder_.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.core.Types.StructuredDatasetType.DatasetColumn) { - return mergeFrom((flyteidl.core.Types.StructuredDatasetType.DatasetColumn)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.StructuredDatasetType.DatasetColumn other) { - if (other == flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasLiteralType()) { - mergeLiteralType(other.getLiteralType()); - } - 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.core.Types.StructuredDatasetType.DatasetColumn parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.StructuredDatasetType.DatasetColumn) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-         * A unique name within the schema type for the column.
-         * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-         * A unique name within the schema type for the column.
-         * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-         * A unique name within the schema type for the column.
-         * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-         * A unique name within the schema type for the column.
-         * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-         * A unique name within the schema type for the column.
-         * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Types.LiteralType literalType_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> literalTypeBuilder_; - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public boolean hasLiteralType() { - return literalTypeBuilder_ != null || literalType_ != null; - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public flyteidl.core.Types.LiteralType getLiteralType() { - if (literalTypeBuilder_ == null) { - return literalType_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; - } else { - return literalTypeBuilder_.getMessage(); - } - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public Builder setLiteralType(flyteidl.core.Types.LiteralType value) { - if (literalTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - literalType_ = value; - onChanged(); - } else { - literalTypeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public Builder setLiteralType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (literalTypeBuilder_ == null) { - literalType_ = builderForValue.build(); - onChanged(); - } else { - literalTypeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public Builder mergeLiteralType(flyteidl.core.Types.LiteralType value) { - if (literalTypeBuilder_ == null) { - if (literalType_ != null) { - literalType_ = - flyteidl.core.Types.LiteralType.newBuilder(literalType_).mergeFrom(value).buildPartial(); - } else { - literalType_ = value; - } - onChanged(); - } else { - literalTypeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public Builder clearLiteralType() { - if (literalTypeBuilder_ == null) { - literalType_ = null; - onChanged(); - } else { - literalType_ = null; - literalTypeBuilder_ = null; - } - - return this; - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getLiteralTypeBuilder() { - - onChanged(); - return getLiteralTypeFieldBuilder().getBuilder(); - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getLiteralTypeOrBuilder() { - if (literalTypeBuilder_ != null) { - return literalTypeBuilder_.getMessageOrBuilder(); - } else { - return literalType_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : literalType_; - } - } - /** - *
-         * The column type.
-         * 
- * - * .flyteidl.core.LiteralType literal_type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getLiteralTypeFieldBuilder() { - if (literalTypeBuilder_ == null) { - literalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getLiteralType(), - getParentForChildren(), - isClean()); - literalType_ = null; - } - return literalTypeBuilder_; - } - @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.core.StructuredDatasetType.DatasetColumn) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType.DatasetColumn) - private static final flyteidl.core.Types.StructuredDatasetType.DatasetColumn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.StructuredDatasetType.DatasetColumn(); - } - - public static flyteidl.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DatasetColumn(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.core.Types.StructuredDatasetType.DatasetColumn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int bitField0_; - public static final int COLUMNS_FIELD_NUMBER = 1; - private java.util.List columns_; - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public java.util.List getColumnsList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public int getColumnsCount() { - return columns_.size(); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index) { - return columns_.get(index); - } - /** - *
-     * A list of ordered columns this schema comprises of.
-     * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( - int index) { - return columns_.get(index); - } - - public static final int FORMAT_FIELD_NUMBER = 2; - private volatile java.lang.Object format_; - /** - *
-     * This is the storage format, the format of the bits at rest
-     * parquet, feather, csv, etc.
-     * For two types to be compatible, the format will need to be an exact match.
-     * 
- * - * string format = 2; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } - } - /** - *
-     * This is the storage format, the format of the bits at rest
-     * parquet, feather, csv, etc.
-     * For two types to be compatible, the format will need to be an exact match.
-     * 
- * - * string format = 2; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object externalSchemaType_; - /** - *
-     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * string external_schema_type = 3; - */ - public java.lang.String getExternalSchemaType() { - java.lang.Object ref = externalSchemaType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalSchemaType_ = s; - return s; - } - } - /** - *
-     * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * string external_schema_type = 3; - */ - public com.google.protobuf.ByteString - getExternalSchemaTypeBytes() { - java.lang.Object ref = externalSchemaType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalSchemaType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString externalSchemaBytes_; - /** - *
-     * The serialized bytes of a third-party schema library like Arrow.
-     * This is an optional field that will not be used for type checking.
-     * 
- * - * bytes external_schema_bytes = 4; - */ - public com.google.protobuf.ByteString getExternalSchemaBytes() { - return externalSchemaBytes_; - } - - 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 { - for (int i = 0; i < columns_.size(); i++) { - output.writeMessage(1, columns_.get(i)); - } - if (!getFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, format_); - } - if (!getExternalSchemaTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, externalSchemaType_); - } - if (!externalSchemaBytes_.isEmpty()) { - output.writeBytes(4, externalSchemaBytes_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, columns_.get(i)); - } - if (!getFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, format_); - } - if (!getExternalSchemaTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, externalSchemaType_); - } - if (!externalSchemaBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, externalSchemaBytes_); - } - 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.core.Types.StructuredDatasetType)) { - return super.equals(obj); - } - flyteidl.core.Types.StructuredDatasetType other = (flyteidl.core.Types.StructuredDatasetType) obj; - - if (!getColumnsList() - .equals(other.getColumnsList())) return false; - if (!getFormat() - .equals(other.getFormat())) return false; - if (!getExternalSchemaType() - .equals(other.getExternalSchemaType())) return false; - if (!getExternalSchemaBytes() - .equals(other.getExternalSchemaBytes())) 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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - hash = (37 * hash) + EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getExternalSchemaType().hashCode(); - hash = (37 * hash) + EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getExternalSchemaBytes().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.StructuredDatasetType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.StructuredDatasetType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType 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.core.Types.StructuredDatasetType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType 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.core.Types.StructuredDatasetType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.StructuredDatasetType 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.core.Types.StructuredDatasetType 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; - } - /** - * Protobuf type {@code flyteidl.core.StructuredDatasetType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.StructuredDatasetType) - flyteidl.core.Types.StructuredDatasetTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.StructuredDatasetType.class, flyteidl.core.Types.StructuredDatasetType.Builder.class); - } - - // Construct using flyteidl.core.Types.StructuredDatasetType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getColumnsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - columnsBuilder_.clear(); - } - format_ = ""; - - externalSchemaType_ = ""; - - externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_StructuredDatasetType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType getDefaultInstanceForType() { - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType build() { - flyteidl.core.Types.StructuredDatasetType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.StructuredDatasetType buildPartial() { - flyteidl.core.Types.StructuredDatasetType result = new flyteidl.core.Types.StructuredDatasetType(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - result.format_ = format_; - result.externalSchemaType_ = externalSchemaType_; - result.externalSchemaBytes_ = externalSchemaBytes_; - result.bitField0_ = to_bitField0_; - 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.core.Types.StructuredDatasetType) { - return mergeFrom((flyteidl.core.Types.StructuredDatasetType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.StructuredDatasetType other) { - if (other == flyteidl.core.Types.StructuredDatasetType.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getColumnsFieldBuilder() : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - if (!other.getFormat().isEmpty()) { - format_ = other.format_; - onChanged(); - } - if (!other.getExternalSchemaType().isEmpty()) { - externalSchemaType_ = other.externalSchemaType_; - onChanged(); - } - if (other.getExternalSchemaBytes() != com.google.protobuf.ByteString.EMPTY) { - setExternalSchemaBytes(other.getExternalSchemaBytes()); - } - 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.core.Types.StructuredDatasetType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.StructuredDatasetType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List columns_ = - java.util.Collections.emptyList(); - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder> columnsBuilder_; - - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder setColumns( - int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder setColumns( - int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder addColumns(flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder addColumns( - int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder addColumns( - flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder addColumns( - int index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder getColumnsBuilder( - int index) { - return getColumnsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder addColumnsBuilder() { - return getColumnsFieldBuilder().addBuilder( - flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder addColumnsBuilder( - int index) { - return getColumnsFieldBuilder().addBuilder( - index, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.getDefaultInstance()); - } - /** - *
-       * A list of ordered columns this schema comprises of.
-       * 
- * - * repeated .flyteidl.core.StructuredDatasetType.DatasetColumn columns = 1; - */ - public java.util.List - getColumnsBuilderList() { - return getColumnsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder> - getColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType.DatasetColumn, flyteidl.core.Types.StructuredDatasetType.DatasetColumn.Builder, flyteidl.core.Types.StructuredDatasetType.DatasetColumnOrBuilder>( - columns_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - columns_ = null; - } - return columnsBuilder_; - } - - private java.lang.Object format_ = ""; - /** - *
-       * This is the storage format, the format of the bits at rest
-       * parquet, feather, csv, etc.
-       * For two types to be compatible, the format will need to be an exact match.
-       * 
- * - * string format = 2; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * This is the storage format, the format of the bits at rest
-       * parquet, feather, csv, etc.
-       * For two types to be compatible, the format will need to be an exact match.
-       * 
- * - * string format = 2; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * This is the storage format, the format of the bits at rest
-       * parquet, feather, csv, etc.
-       * For two types to be compatible, the format will need to be an exact match.
-       * 
- * - * string format = 2; - */ - public Builder setFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value; - onChanged(); - return this; - } - /** - *
-       * This is the storage format, the format of the bits at rest
-       * parquet, feather, csv, etc.
-       * For two types to be compatible, the format will need to be an exact match.
-       * 
- * - * string format = 2; - */ - public Builder clearFormat() { - - format_ = getDefaultInstance().getFormat(); - onChanged(); - return this; - } - /** - *
-       * This is the storage format, the format of the bits at rest
-       * parquet, feather, csv, etc.
-       * For two types to be compatible, the format will need to be an exact match.
-       * 
- * - * string format = 2; - */ - public Builder setFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - format_ = value; - onChanged(); - return this; - } - - private java.lang.Object externalSchemaType_ = ""; - /** - *
-       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * string external_schema_type = 3; - */ - public java.lang.String getExternalSchemaType() { - java.lang.Object ref = externalSchemaType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalSchemaType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * string external_schema_type = 3; - */ - public com.google.protobuf.ByteString - getExternalSchemaTypeBytes() { - java.lang.Object ref = externalSchemaType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalSchemaType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * string external_schema_type = 3; - */ - public Builder setExternalSchemaType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - externalSchemaType_ = value; - onChanged(); - return this; - } - /** - *
-       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * string external_schema_type = 3; - */ - public Builder clearExternalSchemaType() { - - externalSchemaType_ = getDefaultInstance().getExternalSchemaType(); - onChanged(); - return this; - } - /** - *
-       * This is a string representing the type that the bytes in external_schema_bytes are formatted in.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * string external_schema_type = 3; - */ - public Builder setExternalSchemaTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - externalSchemaType_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString externalSchemaBytes_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * The serialized bytes of a third-party schema library like Arrow.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * bytes external_schema_bytes = 4; - */ - public com.google.protobuf.ByteString getExternalSchemaBytes() { - return externalSchemaBytes_; - } - /** - *
-       * The serialized bytes of a third-party schema library like Arrow.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * bytes external_schema_bytes = 4; - */ - public Builder setExternalSchemaBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - externalSchemaBytes_ = value; - onChanged(); - return this; - } - /** - *
-       * The serialized bytes of a third-party schema library like Arrow.
-       * This is an optional field that will not be used for type checking.
-       * 
- * - * bytes external_schema_bytes = 4; - */ - public Builder clearExternalSchemaBytes() { - - externalSchemaBytes_ = getDefaultInstance().getExternalSchemaBytes(); - onChanged(); - return this; - } - @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.core.StructuredDatasetType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.StructuredDatasetType) - private static final flyteidl.core.Types.StructuredDatasetType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.StructuredDatasetType(); - } - - public static flyteidl.core.Types.StructuredDatasetType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StructuredDatasetType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StructuredDatasetType(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.core.Types.StructuredDatasetType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BlobTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BlobType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - java.lang.String getFormat(); - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - com.google.protobuf.ByteString - getFormatBytes(); - - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - int getDimensionalityValue(); - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality(); - } - /** - *
-   * Defines type behavior for blob objects
-   * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class BlobType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BlobType) - BlobTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BlobType.newBuilder() to construct. - private BlobType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BlobType() { - format_ = ""; - dimensionality_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BlobType( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - format_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - dimensionality_ = rawValue; - 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.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.core.BlobType.BlobDimensionality} - */ - public enum BlobDimensionality - implements com.google.protobuf.ProtocolMessageEnum { - /** - * SINGLE = 0; - */ - SINGLE(0), - /** - * MULTIPART = 1; - */ - MULTIPART(1), - UNRECOGNIZED(-1), - ; - - /** - * SINGLE = 0; - */ - public static final int SINGLE_VALUE = 0; - /** - * MULTIPART = 1; - */ - public static final int MULTIPART_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static BlobDimensionality valueOf(int value) { - return forNumber(value); - } - - public static BlobDimensionality forNumber(int value) { - switch (value) { - case 0: return SINGLE; - case 1: return MULTIPART; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - BlobDimensionality> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public BlobDimensionality findValueByNumber(int number) { - return BlobDimensionality.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Types.BlobType.getDescriptor().getEnumTypes().get(0); - } - - private static final BlobDimensionality[] VALUES = values(); - - public static BlobDimensionality valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private BlobDimensionality(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.BlobType.BlobDimensionality) - } - - public static final int FORMAT_FIELD_NUMBER = 1; - private volatile java.lang.Object format_; - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } - } - /** - *
-     * Format can be a free form string understood by SDK/UI etc like
-     * csv, parquet etc
-     * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONALITY_FIELD_NUMBER = 2; - private int dimensionality_; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - - 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 (!getFormatBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - output.writeEnum(2, dimensionality_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFormatBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, format_); - } - if (dimensionality_ != flyteidl.core.Types.BlobType.BlobDimensionality.SINGLE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, dimensionality_); - } - 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.core.Types.BlobType)) { - return super.equals(obj); - } - flyteidl.core.Types.BlobType other = (flyteidl.core.Types.BlobType) obj; - - if (!getFormat() - .equals(other.getFormat())) return false; - if (dimensionality_ != other.dimensionality_) 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(); - hash = (37 * hash) + FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getFormat().hashCode(); - hash = (37 * hash) + DIMENSIONALITY_FIELD_NUMBER; - hash = (53 * hash) + dimensionality_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.BlobType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.BlobType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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.core.Types.BlobType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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.core.Types.BlobType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.BlobType 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.core.Types.BlobType 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; - } - /** - *
-     * Defines type behavior for blob objects
-     * 
- * - * Protobuf type {@code flyteidl.core.BlobType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BlobType) - flyteidl.core.Types.BlobTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.BlobType.class, flyteidl.core.Types.BlobType.Builder.class); - } - - // Construct using flyteidl.core.Types.BlobType.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(); - format_ = ""; - - dimensionality_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_BlobType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType getDefaultInstanceForType() { - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.BlobType build() { - flyteidl.core.Types.BlobType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.BlobType buildPartial() { - flyteidl.core.Types.BlobType result = new flyteidl.core.Types.BlobType(this); - result.format_ = format_; - result.dimensionality_ = dimensionality_; - 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.core.Types.BlobType) { - return mergeFrom((flyteidl.core.Types.BlobType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.BlobType other) { - if (other == flyteidl.core.Types.BlobType.getDefaultInstance()) return this; - if (!other.getFormat().isEmpty()) { - format_ = other.format_; - onChanged(); - } - if (other.dimensionality_ != 0) { - setDimensionalityValue(other.getDimensionalityValue()); - } - 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.core.Types.BlobType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.BlobType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object format_ = ""; - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public java.lang.String getFormat() { - java.lang.Object ref = format_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - format_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public com.google.protobuf.ByteString - getFormatBytes() { - java.lang.Object ref = format_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - format_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormat( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - format_ = value; - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder clearFormat() { - - format_ = getDefaultInstance().getFormat(); - onChanged(); - return this; - } - /** - *
-       * Format can be a free form string understood by SDK/UI etc like
-       * csv, parquet etc
-       * 
- * - * string format = 1; - */ - public Builder setFormatBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - format_ = value; - onChanged(); - return this; - } - - private int dimensionality_ = 0; - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public int getDimensionalityValue() { - return dimensionality_; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionalityValue(int value) { - dimensionality_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public flyteidl.core.Types.BlobType.BlobDimensionality getDimensionality() { - @SuppressWarnings("deprecation") - flyteidl.core.Types.BlobType.BlobDimensionality result = flyteidl.core.Types.BlobType.BlobDimensionality.valueOf(dimensionality_); - return result == null ? flyteidl.core.Types.BlobType.BlobDimensionality.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder setDimensionality(flyteidl.core.Types.BlobType.BlobDimensionality value) { - if (value == null) { - throw new NullPointerException(); - } - - dimensionality_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.BlobType.BlobDimensionality dimensionality = 2; - */ - public Builder clearDimensionality() { - - dimensionality_ = 0; - onChanged(); - return this; - } - @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.core.BlobType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BlobType) - private static final flyteidl.core.Types.BlobType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.BlobType(); - } - - public static flyteidl.core.Types.BlobType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BlobType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BlobType(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.core.Types.BlobType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EnumTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.EnumType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - java.util.List - getValuesList(); - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - int getValuesCount(); - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - java.lang.String getValues(int index); - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - *
-   * Enables declaring enum types, with predefined string values
-   * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish
-   * To provide no defaults, make the first value as undefined.
-   * 
- * - * Protobuf type {@code flyteidl.core.EnumType} - */ - public static final class EnumType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.EnumType) - EnumTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use EnumType.newBuilder() to construct. - private EnumType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnumType() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnumType( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.EnumType.class, flyteidl.core.Types.EnumType.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList values_; - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Predefined set of enum values.
-     * 
- * - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - 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 { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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.core.Types.EnumType)) { - return super.equals(obj); - } - flyteidl.core.Types.EnumType other = (flyteidl.core.Types.EnumType) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.EnumType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.EnumType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.EnumType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.EnumType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.EnumType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.EnumType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.EnumType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.EnumType 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.core.Types.EnumType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.EnumType 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.core.Types.EnumType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.EnumType 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.core.Types.EnumType 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; - } - /** - *
-     * Enables declaring enum types, with predefined string values
-     * For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish
-     * To provide no defaults, make the first value as undefined.
-     * 
- * - * Protobuf type {@code flyteidl.core.EnumType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.EnumType) - flyteidl.core.Types.EnumTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.EnumType.class, flyteidl.core.Types.EnumType.Builder.class); - } - - // Construct using flyteidl.core.Types.EnumType.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(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_EnumType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.EnumType getDefaultInstanceForType() { - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.EnumType build() { - flyteidl.core.Types.EnumType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.EnumType buildPartial() { - flyteidl.core.Types.EnumType result = new flyteidl.core.Types.EnumType(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.values_ = values_; - 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.core.Types.EnumType) { - return mergeFrom((flyteidl.core.Types.EnumType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.EnumType other) { - if (other == flyteidl.core.Types.EnumType.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - 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.core.Types.EnumType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.EnumType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_.getUnmodifiableView(); - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - onChanged(); - return this; - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public Builder clearValues() { - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Predefined set of enum values.
-       * 
- * - * repeated string values = 1; - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - onChanged(); - return this; - } - @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.core.EnumType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.EnumType) - private static final flyteidl.core.Types.EnumType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.EnumType(); - } - - public static flyteidl.core.Types.EnumType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnumType(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.core.Types.EnumType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UnionTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.UnionType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - java.util.List - getVariantsList(); - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - flyteidl.core.Types.LiteralType getVariants(int index); - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - int getVariantsCount(); - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - java.util.List - getVariantsOrBuilderList(); - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( - int index); - } - /** - *
-   * Defines a tagged union type, also known as a variant (and formally as the sum type).
-   * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag
-   * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by
-   * storing the varaint's tag with the literal value and can be examined in runtime.
-   * Type S is typically written as
-   * S := Apple A | Banana B | Cantaloupe C | ...
-   * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:
-   * Optional X := X | Null
-   * See also: https://en.wikipedia.org/wiki/Tagged_union
-   * 
- * - * Protobuf type {@code flyteidl.core.UnionType} - */ - public static final class UnionType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.UnionType) - UnionTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use UnionType.newBuilder() to construct. - private UnionType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UnionType() { - variants_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UnionType( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - variants_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - variants_.add( - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - variants_ = java.util.Collections.unmodifiableList(variants_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.UnionType.class, flyteidl.core.Types.UnionType.Builder.class); - } - - public static final int VARIANTS_FIELD_NUMBER = 1; - private java.util.List variants_; - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public java.util.List getVariantsList() { - return variants_; - } - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public java.util.List - getVariantsOrBuilderList() { - return variants_; - } - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public int getVariantsCount() { - return variants_.size(); - } - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralType getVariants(int index) { - return variants_.get(index); - } - /** - *
-     * Predefined set of variants in union.
-     * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( - int index) { - return variants_.get(index); - } - - 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 { - for (int i = 0; i < variants_.size(); i++) { - output.writeMessage(1, variants_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < variants_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, variants_.get(i)); - } - 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.core.Types.UnionType)) { - return super.equals(obj); - } - flyteidl.core.Types.UnionType other = (flyteidl.core.Types.UnionType) obj; - - if (!getVariantsList() - .equals(other.getVariantsList())) 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 (getVariantsCount() > 0) { - hash = (37 * hash) + VARIANTS_FIELD_NUMBER; - hash = (53 * hash) + getVariantsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.UnionType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.UnionType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.UnionType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.UnionType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.UnionType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.UnionType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.UnionType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.UnionType 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.core.Types.UnionType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.UnionType 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.core.Types.UnionType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.UnionType 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.core.Types.UnionType 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; - } - /** - *
-     * Defines a tagged union type, also known as a variant (and formally as the sum type).
-     * A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag
-     * A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by
-     * storing the varaint's tag with the literal value and can be examined in runtime.
-     * Type S is typically written as
-     * S := Apple A | Banana B | Cantaloupe C | ...
-     * Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value:
-     * Optional X := X | Null
-     * See also: https://en.wikipedia.org/wiki/Tagged_union
-     * 
- * - * Protobuf type {@code flyteidl.core.UnionType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.UnionType) - flyteidl.core.Types.UnionTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.UnionType.class, flyteidl.core.Types.UnionType.Builder.class); - } - - // Construct using flyteidl.core.Types.UnionType.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getVariantsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (variantsBuilder_ == null) { - variants_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - variantsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_UnionType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.UnionType getDefaultInstanceForType() { - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.UnionType build() { - flyteidl.core.Types.UnionType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.UnionType buildPartial() { - flyteidl.core.Types.UnionType result = new flyteidl.core.Types.UnionType(this); - int from_bitField0_ = bitField0_; - if (variantsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - variants_ = java.util.Collections.unmodifiableList(variants_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.variants_ = variants_; - } else { - result.variants_ = variantsBuilder_.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.core.Types.UnionType) { - return mergeFrom((flyteidl.core.Types.UnionType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.UnionType other) { - if (other == flyteidl.core.Types.UnionType.getDefaultInstance()) return this; - if (variantsBuilder_ == null) { - if (!other.variants_.isEmpty()) { - if (variants_.isEmpty()) { - variants_ = other.variants_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureVariantsIsMutable(); - variants_.addAll(other.variants_); - } - onChanged(); - } - } else { - if (!other.variants_.isEmpty()) { - if (variantsBuilder_.isEmpty()) { - variantsBuilder_.dispose(); - variantsBuilder_ = null; - variants_ = other.variants_; - bitField0_ = (bitField0_ & ~0x00000001); - variantsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVariantsFieldBuilder() : null; - } else { - variantsBuilder_.addAllMessages(other.variants_); - } - } - } - 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.core.Types.UnionType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.UnionType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List variants_ = - java.util.Collections.emptyList(); - private void ensureVariantsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - variants_ = new java.util.ArrayList(variants_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> variantsBuilder_; - - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public java.util.List getVariantsList() { - if (variantsBuilder_ == null) { - return java.util.Collections.unmodifiableList(variants_); - } else { - return variantsBuilder_.getMessageList(); - } - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public int getVariantsCount() { - if (variantsBuilder_ == null) { - return variants_.size(); - } else { - return variantsBuilder_.getCount(); - } - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralType getVariants(int index) { - if (variantsBuilder_ == null) { - return variants_.get(index); - } else { - return variantsBuilder_.getMessage(index); - } - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder setVariants( - int index, flyteidl.core.Types.LiteralType value) { - if (variantsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVariantsIsMutable(); - variants_.set(index, value); - onChanged(); - } else { - variantsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder setVariants( - int index, flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (variantsBuilder_ == null) { - ensureVariantsIsMutable(); - variants_.set(index, builderForValue.build()); - onChanged(); - } else { - variantsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder addVariants(flyteidl.core.Types.LiteralType value) { - if (variantsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVariantsIsMutable(); - variants_.add(value); - onChanged(); - } else { - variantsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder addVariants( - int index, flyteidl.core.Types.LiteralType value) { - if (variantsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureVariantsIsMutable(); - variants_.add(index, value); - onChanged(); - } else { - variantsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder addVariants( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (variantsBuilder_ == null) { - ensureVariantsIsMutable(); - variants_.add(builderForValue.build()); - onChanged(); - } else { - variantsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder addVariants( - int index, flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (variantsBuilder_ == null) { - ensureVariantsIsMutable(); - variants_.add(index, builderForValue.build()); - onChanged(); - } else { - variantsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder addAllVariants( - java.lang.Iterable values) { - if (variantsBuilder_ == null) { - ensureVariantsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, variants_); - onChanged(); - } else { - variantsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder clearVariants() { - if (variantsBuilder_ == null) { - variants_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - variantsBuilder_.clear(); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public Builder removeVariants(int index) { - if (variantsBuilder_ == null) { - ensureVariantsIsMutable(); - variants_.remove(index); - onChanged(); - } else { - variantsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralType.Builder getVariantsBuilder( - int index) { - return getVariantsFieldBuilder().getBuilder(index); - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getVariantsOrBuilder( - int index) { - if (variantsBuilder_ == null) { - return variants_.get(index); } else { - return variantsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public java.util.List - getVariantsOrBuilderList() { - if (variantsBuilder_ != null) { - return variantsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(variants_); - } - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralType.Builder addVariantsBuilder() { - return getVariantsFieldBuilder().addBuilder( - flyteidl.core.Types.LiteralType.getDefaultInstance()); - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public flyteidl.core.Types.LiteralType.Builder addVariantsBuilder( - int index) { - return getVariantsFieldBuilder().addBuilder( - index, flyteidl.core.Types.LiteralType.getDefaultInstance()); - } - /** - *
-       * Predefined set of variants in union.
-       * 
- * - * repeated .flyteidl.core.LiteralType variants = 1; - */ - public java.util.List - getVariantsBuilderList() { - return getVariantsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getVariantsFieldBuilder() { - if (variantsBuilder_ == null) { - variantsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - variants_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - variants_ = null; - } - return variantsBuilder_; - } - @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.core.UnionType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.UnionType) - private static final flyteidl.core.Types.UnionType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.UnionType(); - } - - public static flyteidl.core.Types.UnionType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnionType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UnionType(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.core.Types.UnionType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TypeStructureOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TypeStructure) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Must exactly match for types to be castable
-     * 
- * - * string tag = 1; - */ - java.lang.String getTag(); - /** - *
-     * Must exactly match for types to be castable
-     * 
- * - * string tag = 1; - */ - com.google.protobuf.ByteString - getTagBytes(); - - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - int getDataclassTypeCount(); - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - boolean containsDataclassType( - java.lang.String key); - /** - * Use {@link #getDataclassTypeMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getDataclassType(); - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - java.util.Map - getDataclassTypeMap(); - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - flyteidl.core.Types.LiteralType getDataclassTypeOrDefault( - java.lang.String key, - flyteidl.core.Types.LiteralType defaultValue); - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - flyteidl.core.Types.LiteralType getDataclassTypeOrThrow( - java.lang.String key); - } - /** - *
-   * Hints to improve type matching
-   * e.g. allows distinguishing output from custom type transformers
-   * even if the underlying IDL serialization matches.
-   * 
- * - * Protobuf type {@code flyteidl.core.TypeStructure} - */ - public static final class TypeStructure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TypeStructure) - TypeStructureOrBuilder { - private static final long serialVersionUID = 0L; - // Use TypeStructure.newBuilder() to construct. - private TypeStructure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TypeStructure() { - tag_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TypeStructure( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - tag_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dataclassType_ = com.google.protobuf.MapField.newMapField( - DataclassTypeDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000002; - } - com.google.protobuf.MapEntry - dataclassType__ = input.readMessage( - DataclassTypeDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - dataclassType_.getMutableMap().put( - dataclassType__.getKey(), dataclassType__.getValue()); - 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.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetDataclassType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.TypeStructure.class, flyteidl.core.Types.TypeStructure.Builder.class); - } - - private int bitField0_; - public static final int TAG_FIELD_NUMBER = 1; - private volatile java.lang.Object tag_; - /** - *
-     * Must exactly match for types to be castable
-     * 
- * - * string tag = 1; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } - } - /** - *
-     * Must exactly match for types to be castable
-     * 
- * - * string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATACLASS_TYPE_FIELD_NUMBER = 2; - private static final class DataclassTypeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, flyteidl.core.Types.LiteralType> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_DataclassTypeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - flyteidl.core.Types.LiteralType.getDefaultInstance()); - } - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Types.LiteralType> dataclassType_; - private com.google.protobuf.MapField - internalGetDataclassType() { - if (dataclassType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DataclassTypeDefaultEntryHolder.defaultEntry); - } - return dataclassType_; - } - - public int getDataclassTypeCount() { - return internalGetDataclassType().getMap().size(); - } - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public boolean containsDataclassType( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDataclassType().getMap().containsKey(key); - } - /** - * Use {@link #getDataclassTypeMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDataclassType() { - return getDataclassTypeMap(); - } - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public java.util.Map getDataclassTypeMap() { - return internalGetDataclassType().getMap(); - } - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public flyteidl.core.Types.LiteralType getDataclassTypeOrDefault( - java.lang.String key, - flyteidl.core.Types.LiteralType defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDataclassType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * dataclass_type only exists for dataclasses.
-     * This is used to resolve the type of the fields of dataclass
-     * The key is the field name, and the value is the literal type of the field
-     * e.g. For dataclass Foo, with fields a, and a is a string
-     * Foo.a will be resolved as a literal type of string from dataclass_type
-     * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public flyteidl.core.Types.LiteralType getDataclassTypeOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDataclassType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 (!getTagBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, tag_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetDataclassType(), - DataclassTypeDefaultEntryHolder.defaultEntry, - 2); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTagBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, tag_); - } - for (java.util.Map.Entry entry - : internalGetDataclassType().getMap().entrySet()) { - com.google.protobuf.MapEntry - dataclassType__ = DataclassTypeDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dataclassType__); - } - 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.core.Types.TypeStructure)) { - return super.equals(obj); - } - flyteidl.core.Types.TypeStructure other = (flyteidl.core.Types.TypeStructure) obj; - - if (!getTag() - .equals(other.getTag())) return false; - if (!internalGetDataclassType().equals( - other.internalGetDataclassType())) 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(); - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - if (!internalGetDataclassType().getMap().isEmpty()) { - hash = (37 * hash) + DATACLASS_TYPE_FIELD_NUMBER; - hash = (53 * hash) + internalGetDataclassType().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.TypeStructure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeStructure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeStructure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeStructure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeStructure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeStructure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeStructure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeStructure 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.core.Types.TypeStructure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeStructure 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.core.Types.TypeStructure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeStructure 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.core.Types.TypeStructure 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; - } - /** - *
-     * Hints to improve type matching
-     * e.g. allows distinguishing output from custom type transformers
-     * even if the underlying IDL serialization matches.
-     * 
- * - * Protobuf type {@code flyteidl.core.TypeStructure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TypeStructure) - flyteidl.core.Types.TypeStructureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetDataclassType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableDataclassType(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.TypeStructure.class, flyteidl.core.Types.TypeStructure.Builder.class); - } - - // Construct using flyteidl.core.Types.TypeStructure.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(); - tag_ = ""; - - internalGetMutableDataclassType().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeStructure_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.TypeStructure getDefaultInstanceForType() { - return flyteidl.core.Types.TypeStructure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.TypeStructure build() { - flyteidl.core.Types.TypeStructure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.TypeStructure buildPartial() { - flyteidl.core.Types.TypeStructure result = new flyteidl.core.Types.TypeStructure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.tag_ = tag_; - result.dataclassType_ = internalGetDataclassType(); - result.dataclassType_.makeImmutable(); - result.bitField0_ = to_bitField0_; - 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.core.Types.TypeStructure) { - return mergeFrom((flyteidl.core.Types.TypeStructure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.TypeStructure other) { - if (other == flyteidl.core.Types.TypeStructure.getDefaultInstance()) return this; - if (!other.getTag().isEmpty()) { - tag_ = other.tag_; - onChanged(); - } - internalGetMutableDataclassType().mergeFrom( - other.internalGetDataclassType()); - 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.core.Types.TypeStructure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.TypeStructure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object tag_ = ""; - /** - *
-       * Must exactly match for types to be castable
-       * 
- * - * string tag = 1; - */ - public java.lang.String getTag() { - java.lang.Object ref = tag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Must exactly match for types to be castable
-       * 
- * - * string tag = 1; - */ - public com.google.protobuf.ByteString - getTagBytes() { - java.lang.Object ref = tag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Must exactly match for types to be castable
-       * 
- * - * string tag = 1; - */ - public Builder setTag( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tag_ = value; - onChanged(); - return this; - } - /** - *
-       * Must exactly match for types to be castable
-       * 
- * - * string tag = 1; - */ - public Builder clearTag() { - - tag_ = getDefaultInstance().getTag(); - onChanged(); - return this; - } - /** - *
-       * Must exactly match for types to be castable
-       * 
- * - * string tag = 1; - */ - public Builder setTagBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tag_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, flyteidl.core.Types.LiteralType> dataclassType_; - private com.google.protobuf.MapField - internalGetDataclassType() { - if (dataclassType_ == null) { - return com.google.protobuf.MapField.emptyMapField( - DataclassTypeDefaultEntryHolder.defaultEntry); - } - return dataclassType_; - } - private com.google.protobuf.MapField - internalGetMutableDataclassType() { - onChanged();; - if (dataclassType_ == null) { - dataclassType_ = com.google.protobuf.MapField.newMapField( - DataclassTypeDefaultEntryHolder.defaultEntry); - } - if (!dataclassType_.isMutable()) { - dataclassType_ = dataclassType_.copy(); - } - return dataclassType_; - } - - public int getDataclassTypeCount() { - return internalGetDataclassType().getMap().size(); - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public boolean containsDataclassType( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetDataclassType().getMap().containsKey(key); - } - /** - * Use {@link #getDataclassTypeMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getDataclassType() { - return getDataclassTypeMap(); - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public java.util.Map getDataclassTypeMap() { - return internalGetDataclassType().getMap(); - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public flyteidl.core.Types.LiteralType getDataclassTypeOrDefault( - java.lang.String key, - flyteidl.core.Types.LiteralType defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDataclassType().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public flyteidl.core.Types.LiteralType getDataclassTypeOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetDataclassType().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearDataclassType() { - internalGetMutableDataclassType().getMutableMap() - .clear(); - return this; - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public Builder removeDataclassType( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDataclassType().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableDataclassType() { - return internalGetMutableDataclassType().getMutableMap(); - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - public Builder putDataclassType( - java.lang.String key, - flyteidl.core.Types.LiteralType value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableDataclassType().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * dataclass_type only exists for dataclasses.
-       * This is used to resolve the type of the fields of dataclass
-       * The key is the field name, and the value is the literal type of the field
-       * e.g. For dataclass Foo, with fields a, and a is a string
-       * Foo.a will be resolved as a literal type of string from dataclass_type
-       * 
- * - * map<string, .flyteidl.core.LiteralType> dataclass_type = 2; - */ - - public Builder putAllDataclassType( - java.util.Map values) { - internalGetMutableDataclassType().getMutableMap() - .putAll(values); - return this; - } - @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.core.TypeStructure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypeStructure) - private static final flyteidl.core.Types.TypeStructure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.TypeStructure(); - } - - public static flyteidl.core.Types.TypeStructure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeStructure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeStructure(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.core.Types.TypeStructure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TypeAnnotationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TypeAnnotation) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - boolean hasAnnotations(); - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - com.google.protobuf.Struct getAnnotations(); - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder(); - } - /** - *
-   * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs.
-   * 
- * - * Protobuf type {@code flyteidl.core.TypeAnnotation} - */ - public static final class TypeAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TypeAnnotation) - TypeAnnotationOrBuilder { - private static final long serialVersionUID = 0L; - // Use TypeAnnotation.newBuilder() to construct. - private TypeAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TypeAnnotation() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TypeAnnotation( - 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: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (annotations_ != null) { - subBuilder = annotations_.toBuilder(); - } - annotations_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotations_); - annotations_ = 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.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.TypeAnnotation.class, flyteidl.core.Types.TypeAnnotation.Builder.class); - } - - public static final int ANNOTATIONS_FIELD_NUMBER = 1; - private com.google.protobuf.Struct annotations_; - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public boolean hasAnnotations() { - return annotations_ != null; - } - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public com.google.protobuf.Struct getAnnotations() { - return annotations_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotations_; - } - /** - *
-     * A arbitrary JSON payload to describe a type.
-     * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder() { - return getAnnotations(); - } - - 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 (annotations_ != null) { - output.writeMessage(1, getAnnotations()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (annotations_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotations()); - } - 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.core.Types.TypeAnnotation)) { - return super.equals(obj); - } - flyteidl.core.Types.TypeAnnotation other = (flyteidl.core.Types.TypeAnnotation) obj; - - if (hasAnnotations() != other.hasAnnotations()) return false; - if (hasAnnotations()) { - if (!getAnnotations() - .equals(other.getAnnotations())) 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 (hasAnnotations()) { - hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getAnnotations().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.TypeAnnotation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.TypeAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeAnnotation 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.core.Types.TypeAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeAnnotation 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.core.Types.TypeAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.TypeAnnotation 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.core.Types.TypeAnnotation 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; - } - /** - *
-     * TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs.
-     * 
- * - * Protobuf type {@code flyteidl.core.TypeAnnotation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TypeAnnotation) - flyteidl.core.Types.TypeAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.TypeAnnotation.class, flyteidl.core.Types.TypeAnnotation.Builder.class); - } - - // Construct using flyteidl.core.Types.TypeAnnotation.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 (annotationsBuilder_ == null) { - annotations_ = null; - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_TypeAnnotation_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.TypeAnnotation getDefaultInstanceForType() { - return flyteidl.core.Types.TypeAnnotation.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.TypeAnnotation build() { - flyteidl.core.Types.TypeAnnotation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.TypeAnnotation buildPartial() { - flyteidl.core.Types.TypeAnnotation result = new flyteidl.core.Types.TypeAnnotation(this); - if (annotationsBuilder_ == null) { - result.annotations_ = annotations_; - } else { - result.annotations_ = annotationsBuilder_.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.core.Types.TypeAnnotation) { - return mergeFrom((flyteidl.core.Types.TypeAnnotation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.TypeAnnotation other) { - if (other == flyteidl.core.Types.TypeAnnotation.getDefaultInstance()) return this; - if (other.hasAnnotations()) { - mergeAnnotations(other.getAnnotations()); - } - 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.core.Types.TypeAnnotation parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.TypeAnnotation) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Struct annotations_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> annotationsBuilder_; - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public boolean hasAnnotations() { - return annotationsBuilder_ != null || annotations_ != null; - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public com.google.protobuf.Struct getAnnotations() { - if (annotationsBuilder_ == null) { - return annotations_ == null ? com.google.protobuf.Struct.getDefaultInstance() : annotations_; - } else { - return annotationsBuilder_.getMessage(); - } - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public Builder setAnnotations(com.google.protobuf.Struct value) { - if (annotationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotations_ = value; - onChanged(); - } else { - annotationsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public Builder setAnnotations( - com.google.protobuf.Struct.Builder builderForValue) { - if (annotationsBuilder_ == null) { - annotations_ = builderForValue.build(); - onChanged(); - } else { - annotationsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public Builder mergeAnnotations(com.google.protobuf.Struct value) { - if (annotationsBuilder_ == null) { - if (annotations_ != null) { - annotations_ = - com.google.protobuf.Struct.newBuilder(annotations_).mergeFrom(value).buildPartial(); - } else { - annotations_ = value; - } - onChanged(); - } else { - annotationsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public Builder clearAnnotations() { - if (annotationsBuilder_ == null) { - annotations_ = null; - onChanged(); - } else { - annotations_ = null; - annotationsBuilder_ = null; - } - - return this; - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public com.google.protobuf.Struct.Builder getAnnotationsBuilder() { - - onChanged(); - return getAnnotationsFieldBuilder().getBuilder(); - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - public com.google.protobuf.StructOrBuilder getAnnotationsOrBuilder() { - if (annotationsBuilder_ != null) { - return annotationsBuilder_.getMessageOrBuilder(); - } else { - return annotations_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : annotations_; - } - } - /** - *
-       * A arbitrary JSON payload to describe a type.
-       * 
- * - * .google.protobuf.Struct annotations = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getAnnotationsFieldBuilder() { - if (annotationsBuilder_ == null) { - annotationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getAnnotations(), - getParentForChildren(), - isClean()); - annotations_ = null; - } - return annotationsBuilder_; - } - @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.core.TypeAnnotation) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TypeAnnotation) - private static final flyteidl.core.Types.TypeAnnotation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.TypeAnnotation(); - } - - public static flyteidl.core.Types.TypeAnnotation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TypeAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TypeAnnotation(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.core.Types.TypeAnnotation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface LiteralTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.LiteralType) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - int getSimpleValue(); - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - flyteidl.core.Types.SimpleType getSimple(); - - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - boolean hasSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaType getSchema(); - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder(); - - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - boolean hasCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralType getCollectionType(); - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder(); - - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - boolean hasMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralType getMapValueType(); - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder(); - - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - boolean hasBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobType getBlob(); - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder(); - - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - boolean hasEnumType(); - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - flyteidl.core.Types.EnumType getEnumType(); - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder(); - - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - boolean hasStructuredDatasetType(); - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType(); - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder(); - - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - boolean hasUnionType(); - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - flyteidl.core.Types.UnionType getUnionType(); - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder(); - - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - boolean hasMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.Struct getMetadata(); - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - boolean hasAnnotation(); - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - flyteidl.core.Types.TypeAnnotation getAnnotation(); - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder(); - - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - boolean hasStructure(); - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - flyteidl.core.Types.TypeStructure getStructure(); - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder(); - - public flyteidl.core.Types.LiteralType.TypeCase getTypeCase(); - } - /** - *
-   * Defines a strong type to allow type checking between interfaces.
-   * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class LiteralType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.LiteralType) - LiteralTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use LiteralType.newBuilder() to construct. - private LiteralType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LiteralType() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LiteralType( - 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 8: { - int rawValue = input.readEnum(); - typeCase_ = 1; - type_ = rawValue; - break; - } - case 18: { - flyteidl.core.Types.SchemaType.Builder subBuilder = null; - if (typeCase_ == 2) { - subBuilder = ((flyteidl.core.Types.SchemaType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.SchemaType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.SchemaType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 2; - break; - } - case 26: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 3) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (typeCase_ == 4) { - subBuilder = ((flyteidl.core.Types.LiteralType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.LiteralType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 4; - break; - } - case 42: { - flyteidl.core.Types.BlobType.Builder subBuilder = null; - if (typeCase_ == 5) { - subBuilder = ((flyteidl.core.Types.BlobType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.BlobType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.BlobType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 5; - break; - } - case 50: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.core.Types.EnumType.Builder subBuilder = null; - if (typeCase_ == 7) { - subBuilder = ((flyteidl.core.Types.EnumType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.EnumType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.EnumType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 7; - break; - } - case 66: { - flyteidl.core.Types.StructuredDatasetType.Builder subBuilder = null; - if (typeCase_ == 8) { - subBuilder = ((flyteidl.core.Types.StructuredDatasetType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.StructuredDatasetType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.StructuredDatasetType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 8; - break; - } - case 74: { - flyteidl.core.Types.TypeAnnotation.Builder subBuilder = null; - if (annotation_ != null) { - subBuilder = annotation_.toBuilder(); - } - annotation_ = input.readMessage(flyteidl.core.Types.TypeAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotation_); - annotation_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - flyteidl.core.Types.UnionType.Builder subBuilder = null; - if (typeCase_ == 10) { - subBuilder = ((flyteidl.core.Types.UnionType) type_).toBuilder(); - } - type_ = - input.readMessage(flyteidl.core.Types.UnionType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.UnionType) type_); - type_ = subBuilder.buildPartial(); - } - typeCase_ = 10; - break; - } - case 90: { - flyteidl.core.Types.TypeStructure.Builder subBuilder = null; - if (structure_ != null) { - subBuilder = structure_.toBuilder(); - } - structure_ = input.readMessage(flyteidl.core.Types.TypeStructure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(structure_); - structure_ = 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.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - private int typeCase_ = 0; - private java.lang.Object type_; - public enum TypeCase - implements com.google.protobuf.Internal.EnumLite { - SIMPLE(1), - SCHEMA(2), - COLLECTION_TYPE(3), - MAP_VALUE_TYPE(4), - BLOB(5), - ENUM_TYPE(7), - STRUCTURED_DATASET_TYPE(8), - UNION_TYPE(10), - TYPE_NOT_SET(0); - private final int value; - private TypeCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TypeCase valueOf(int value) { - return forNumber(value); - } - - public static TypeCase forNumber(int value) { - switch (value) { - case 1: return SIMPLE; - case 2: return SCHEMA; - case 3: return COLLECTION_TYPE; - case 4: return MAP_VALUE_TYPE; - case 5: return BLOB; - case 7: return ENUM_TYPE; - case 8: return STRUCTURED_DATASET_TYPE; - case 10: return UNION_TYPE; - case 0: return TYPE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public static final int SIMPLE_FIELD_NUMBER = 1; - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return (java.lang.Integer) type_; - } - return 0; - } - /** - *
-     * A simple type that can be compared one-to-one with another.
-     * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - - public static final int SCHEMA_FIELD_NUMBER = 2; - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - /** - *
-     * A complex type that requires matching of inner fields.
-     * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - - public static final int COLLECTION_TYPE_FIELD_NUMBER = 3; - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-     * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int MAP_VALUE_TYPE_FIELD_NUMBER = 4; - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - /** - *
-     * Defines the type of the value of a map type. The type of the key is always a string.
-     * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - public static final int BLOB_FIELD_NUMBER = 5; - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - /** - *
-     * A blob might have specialized implementation details depending on associated metadata.
-     * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 7; - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public boolean hasEnumType() { - return typeCase_ == 7; - } - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public flyteidl.core.Types.EnumType getEnumType() { - if (typeCase_ == 7) { - return (flyteidl.core.Types.EnumType) type_; - } - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } - /** - *
-     * Defines an enum with pre-defined string values.
-     * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if (typeCase_ == 7) { - return (flyteidl.core.Types.EnumType) type_; - } - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } - - public static final int STRUCTURED_DATASET_TYPE_FIELD_NUMBER = 8; - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public boolean hasStructuredDatasetType() { - return typeCase_ == 8; - } - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { - if (typeCase_ == 8) { - return (flyteidl.core.Types.StructuredDatasetType) type_; - } - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - /** - *
-     * Generalized schema support
-     * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { - if (typeCase_ == 8) { - return (flyteidl.core.Types.StructuredDatasetType) type_; - } - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - - public static final int UNION_TYPE_FIELD_NUMBER = 10; - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public boolean hasUnionType() { - return typeCase_ == 10; - } - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public flyteidl.core.Types.UnionType getUnionType() { - if (typeCase_ == 10) { - return (flyteidl.core.Types.UnionType) type_; - } - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } - /** - *
-     * Defines an union type with pre-defined LiteralTypes.
-     * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder() { - if (typeCase_ == 10) { - return (flyteidl.core.Types.UnionType) type_; - } - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - /** - *
-     * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-     * consumers to identify special behavior or display extended information for the type.
-     * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int ANNOTATION_FIELD_NUMBER = 9; - private flyteidl.core.Types.TypeAnnotation annotation_; - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public boolean hasAnnotation() { - return annotation_ != null; - } - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public flyteidl.core.Types.TypeAnnotation getAnnotation() { - return annotation_ == null ? flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; - } - /** - *
-     * This field contains arbitrary data that might have special semantic
-     * meaning for the client but does not effect internal flyte behavior.
-     * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder() { - return getAnnotation(); - } - - public static final int STRUCTURE_FIELD_NUMBER = 11; - private flyteidl.core.Types.TypeStructure structure_; - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public boolean hasStructure() { - return structure_ != null; - } - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public flyteidl.core.Types.TypeStructure getStructure() { - return structure_ == null ? flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; - } - /** - *
-     * Hints to improve type matching.
-     * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder() { - return getStructure(); - } - - 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 (typeCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - output.writeMessage(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - if (typeCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Types.EnumType) type_); - } - if (typeCase_ == 8) { - output.writeMessage(8, (flyteidl.core.Types.StructuredDatasetType) type_); - } - if (annotation_ != null) { - output.writeMessage(9, getAnnotation()); - } - if (typeCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Types.UnionType) type_); - } - if (structure_ != null) { - output.writeMessage(11, getStructure()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, ((java.lang.Integer) type_)); - } - if (typeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Types.SchemaType) type_); - } - if (typeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.LiteralType) type_); - } - if (typeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (flyteidl.core.Types.BlobType) type_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetadata()); - } - if (typeCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Types.EnumType) type_); - } - if (typeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.core.Types.StructuredDatasetType) type_); - } - if (annotation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getAnnotation()); - } - if (typeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Types.UnionType) type_); - } - if (structure_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getStructure()); - } - 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.core.Types.LiteralType)) { - return super.equals(obj); - } - flyteidl.core.Types.LiteralType other = (flyteidl.core.Types.LiteralType) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasAnnotation() != other.hasAnnotation()) return false; - if (hasAnnotation()) { - if (!getAnnotation() - .equals(other.getAnnotation())) return false; - } - if (hasStructure() != other.hasStructure()) return false; - if (hasStructure()) { - if (!getStructure() - .equals(other.getStructure())) return false; - } - if (!getTypeCase().equals(other.getTypeCase())) return false; - switch (typeCase_) { - case 1: - if (getSimpleValue() - != other.getSimpleValue()) return false; - break; - case 2: - if (!getSchema() - .equals(other.getSchema())) return false; - break; - case 3: - if (!getCollectionType() - .equals(other.getCollectionType())) return false; - break; - case 4: - if (!getMapValueType() - .equals(other.getMapValueType())) return false; - break; - case 5: - if (!getBlob() - .equals(other.getBlob())) return false; - break; - case 7: - if (!getEnumType() - .equals(other.getEnumType())) return false; - break; - case 8: - if (!getStructuredDatasetType() - .equals(other.getStructuredDatasetType())) return false; - break; - case 10: - if (!getUnionType() - .equals(other.getUnionType())) 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(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasAnnotation()) { - hash = (37 * hash) + ANNOTATION_FIELD_NUMBER; - hash = (53 * hash) + getAnnotation().hashCode(); - } - if (hasStructure()) { - hash = (37 * hash) + STRUCTURE_FIELD_NUMBER; - hash = (53 * hash) + getStructure().hashCode(); - } - switch (typeCase_) { - case 1: - hash = (37 * hash) + SIMPLE_FIELD_NUMBER; - hash = (53 * hash) + getSimpleValue(); - break; - case 2: - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - break; - case 3: - hash = (37 * hash) + COLLECTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getCollectionType().hashCode(); - break; - case 4: - hash = (37 * hash) + MAP_VALUE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMapValueType().hashCode(); - break; - case 5: - hash = (37 * hash) + BLOB_FIELD_NUMBER; - hash = (53 * hash) + getBlob().hashCode(); - break; - case 7: - hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getEnumType().hashCode(); - break; - case 8: - hash = (37 * hash) + STRUCTURED_DATASET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getStructuredDatasetType().hashCode(); - break; - case 10: - hash = (37 * hash) + UNION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getUnionType().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.LiteralType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.LiteralType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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.core.Types.LiteralType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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.core.Types.LiteralType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.LiteralType 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.core.Types.LiteralType 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; - } - /** - *
-     * Defines a strong type to allow type checking between interfaces.
-     * 
- * - * Protobuf type {@code flyteidl.core.LiteralType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.LiteralType) - flyteidl.core.Types.LiteralTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.LiteralType.class, flyteidl.core.Types.LiteralType.Builder.class); - } - - // Construct using flyteidl.core.Types.LiteralType.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 (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (annotationBuilder_ == null) { - annotation_ = null; - } else { - annotation_ = null; - annotationBuilder_ = null; - } - if (structureBuilder_ == null) { - structure_ = null; - } else { - structure_ = null; - structureBuilder_ = null; - } - typeCase_ = 0; - type_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_LiteralType_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType getDefaultInstanceForType() { - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType build() { - flyteidl.core.Types.LiteralType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.LiteralType buildPartial() { - flyteidl.core.Types.LiteralType result = new flyteidl.core.Types.LiteralType(this); - if (typeCase_ == 1) { - result.type_ = type_; - } - if (typeCase_ == 2) { - if (schemaBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = schemaBuilder_.build(); - } - } - if (typeCase_ == 3) { - if (collectionTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = collectionTypeBuilder_.build(); - } - } - if (typeCase_ == 4) { - if (mapValueTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = mapValueTypeBuilder_.build(); - } - } - if (typeCase_ == 5) { - if (blobBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = blobBuilder_.build(); - } - } - if (typeCase_ == 7) { - if (enumTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = enumTypeBuilder_.build(); - } - } - if (typeCase_ == 8) { - if (structuredDatasetTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = structuredDatasetTypeBuilder_.build(); - } - } - if (typeCase_ == 10) { - if (unionTypeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = unionTypeBuilder_.build(); - } - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (annotationBuilder_ == null) { - result.annotation_ = annotation_; - } else { - result.annotation_ = annotationBuilder_.build(); - } - if (structureBuilder_ == null) { - result.structure_ = structure_; - } else { - result.structure_ = structureBuilder_.build(); - } - result.typeCase_ = typeCase_; - 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.core.Types.LiteralType) { - return mergeFrom((flyteidl.core.Types.LiteralType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.LiteralType other) { - if (other == flyteidl.core.Types.LiteralType.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasAnnotation()) { - mergeAnnotation(other.getAnnotation()); - } - if (other.hasStructure()) { - mergeStructure(other.getStructure()); - } - switch (other.getTypeCase()) { - case SIMPLE: { - setSimpleValue(other.getSimpleValue()); - break; - } - case SCHEMA: { - mergeSchema(other.getSchema()); - break; - } - case COLLECTION_TYPE: { - mergeCollectionType(other.getCollectionType()); - break; - } - case MAP_VALUE_TYPE: { - mergeMapValueType(other.getMapValueType()); - break; - } - case BLOB: { - mergeBlob(other.getBlob()); - break; - } - case ENUM_TYPE: { - mergeEnumType(other.getEnumType()); - break; - } - case STRUCTURED_DATASET_TYPE: { - mergeStructuredDatasetType(other.getStructuredDatasetType()); - break; - } - case UNION_TYPE: { - mergeUnionType(other.getUnionType()); - break; - } - case TYPE_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.core.Types.LiteralType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.LiteralType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int typeCase_ = 0; - private java.lang.Object type_; - public TypeCase - getTypeCase() { - return TypeCase.forNumber( - typeCase_); - } - - public Builder clearType() { - typeCase_ = 0; - type_ = null; - onChanged(); - return this; - } - - - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public int getSimpleValue() { - if (typeCase_ == 1) { - return ((java.lang.Integer) type_).intValue(); - } - return 0; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimpleValue(int value) { - typeCase_ = 1; - type_ = value; - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public flyteidl.core.Types.SimpleType getSimple() { - if (typeCase_ == 1) { - @SuppressWarnings("deprecation") - flyteidl.core.Types.SimpleType result = flyteidl.core.Types.SimpleType.valueOf( - (java.lang.Integer) type_); - return result == null ? flyteidl.core.Types.SimpleType.UNRECOGNIZED : result; - } - return flyteidl.core.Types.SimpleType.NONE; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder setSimple(flyteidl.core.Types.SimpleType value) { - if (value == null) { - throw new NullPointerException(); - } - typeCase_ = 1; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * A simple type that can be compared one-to-one with another.
-       * 
- * - * .flyteidl.core.SimpleType simple = 1; - */ - public Builder clearSimple() { - if (typeCase_ == 1) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> schemaBuilder_; - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public boolean hasSchema() { - return typeCase_ == 2; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType getSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } else { - if (typeCase_ == 2) { - return schemaBuilder_.getMessage(); - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder setSchema( - flyteidl.core.Types.SchemaType.Builder builderForValue) { - if (schemaBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder mergeSchema(flyteidl.core.Types.SchemaType value) { - if (schemaBuilder_ == null) { - if (typeCase_ == 2 && - type_ != flyteidl.core.Types.SchemaType.getDefaultInstance()) { - type_ = flyteidl.core.Types.SchemaType.newBuilder((flyteidl.core.Types.SchemaType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 2) { - schemaBuilder_.mergeFrom(value); - } - schemaBuilder_.setMessage(value); - } - typeCase_ = 2; - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public Builder clearSchema() { - if (schemaBuilder_ == null) { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 2) { - typeCase_ = 0; - type_ = null; - } - schemaBuilder_.clear(); - } - return this; - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaType.Builder getSchemaBuilder() { - return getSchemaFieldBuilder().getBuilder(); - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - public flyteidl.core.Types.SchemaTypeOrBuilder getSchemaOrBuilder() { - if ((typeCase_ == 2) && (schemaBuilder_ != null)) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 2) { - return (flyteidl.core.Types.SchemaType) type_; - } - return flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - } - /** - *
-       * A complex type that requires matching of inner fields.
-       * 
- * - * .flyteidl.core.SchemaType schema = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder> - getSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - if (!(typeCase_ == 2)) { - type_ = flyteidl.core.Types.SchemaType.getDefaultInstance(); - } - schemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.SchemaType, flyteidl.core.Types.SchemaType.Builder, flyteidl.core.Types.SchemaTypeOrBuilder>( - (flyteidl.core.Types.SchemaType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 2; - onChanged();; - return schemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> collectionTypeBuilder_; - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public boolean hasCollectionType() { - return typeCase_ == 3; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType getCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 3) { - return collectionTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder setCollectionType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (collectionTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - collectionTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder mergeCollectionType(flyteidl.core.Types.LiteralType value) { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 3) { - collectionTypeBuilder_.mergeFrom(value); - } - collectionTypeBuilder_.setMessage(value); - } - typeCase_ = 3; - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public Builder clearCollectionType() { - if (collectionTypeBuilder_ == null) { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 3) { - typeCase_ = 0; - type_ = null; - } - collectionTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralType.Builder getCollectionTypeBuilder() { - return getCollectionTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getCollectionTypeOrBuilder() { - if ((typeCase_ == 3) && (collectionTypeBuilder_ != null)) { - return collectionTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 3) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a collection. Only homogeneous collections are allowed.
-       * 
- * - * .flyteidl.core.LiteralType collection_type = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getCollectionTypeFieldBuilder() { - if (collectionTypeBuilder_ == null) { - if (!(typeCase_ == 3)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - collectionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 3; - onChanged();; - return collectionTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> mapValueTypeBuilder_; - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public boolean hasMapValueType() { - return typeCase_ == 4; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType getMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } else { - if (typeCase_ == 4) { - return mapValueTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder setMapValueType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (mapValueTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - mapValueTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder mergeMapValueType(flyteidl.core.Types.LiteralType value) { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4 && - type_ != flyteidl.core.Types.LiteralType.getDefaultInstance()) { - type_ = flyteidl.core.Types.LiteralType.newBuilder((flyteidl.core.Types.LiteralType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 4) { - mapValueTypeBuilder_.mergeFrom(value); - } - mapValueTypeBuilder_.setMessage(value); - } - typeCase_ = 4; - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public Builder clearMapValueType() { - if (mapValueTypeBuilder_ == null) { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 4) { - typeCase_ = 0; - type_ = null; - } - mapValueTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralType.Builder getMapValueTypeBuilder() { - return getMapValueTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getMapValueTypeOrBuilder() { - if ((typeCase_ == 4) && (mapValueTypeBuilder_ != null)) { - return mapValueTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 4) { - return (flyteidl.core.Types.LiteralType) type_; - } - return flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - } - /** - *
-       * Defines the type of the value of a map type. The type of the key is always a string.
-       * 
- * - * .flyteidl.core.LiteralType map_value_type = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getMapValueTypeFieldBuilder() { - if (mapValueTypeBuilder_ == null) { - if (!(typeCase_ == 4)) { - type_ = flyteidl.core.Types.LiteralType.getDefaultInstance(); - } - mapValueTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - (flyteidl.core.Types.LiteralType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 4; - onChanged();; - return mapValueTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> blobBuilder_; - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public boolean hasBlob() { - return typeCase_ == 5; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType getBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } else { - if (typeCase_ == 5) { - return blobBuilder_.getMessage(); - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder setBlob( - flyteidl.core.Types.BlobType.Builder builderForValue) { - if (blobBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - blobBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder mergeBlob(flyteidl.core.Types.BlobType value) { - if (blobBuilder_ == null) { - if (typeCase_ == 5 && - type_ != flyteidl.core.Types.BlobType.getDefaultInstance()) { - type_ = flyteidl.core.Types.BlobType.newBuilder((flyteidl.core.Types.BlobType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 5) { - blobBuilder_.mergeFrom(value); - } - blobBuilder_.setMessage(value); - } - typeCase_ = 5; - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public Builder clearBlob() { - if (blobBuilder_ == null) { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 5) { - typeCase_ = 0; - type_ = null; - } - blobBuilder_.clear(); - } - return this; - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobType.Builder getBlobBuilder() { - return getBlobFieldBuilder().getBuilder(); - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - public flyteidl.core.Types.BlobTypeOrBuilder getBlobOrBuilder() { - if ((typeCase_ == 5) && (blobBuilder_ != null)) { - return blobBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 5) { - return (flyteidl.core.Types.BlobType) type_; - } - return flyteidl.core.Types.BlobType.getDefaultInstance(); - } - } - /** - *
-       * A blob might have specialized implementation details depending on associated metadata.
-       * 
- * - * .flyteidl.core.BlobType blob = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder> - getBlobFieldBuilder() { - if (blobBuilder_ == null) { - if (!(typeCase_ == 5)) { - type_ = flyteidl.core.Types.BlobType.getDefaultInstance(); - } - blobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.BlobType, flyteidl.core.Types.BlobType.Builder, flyteidl.core.Types.BlobTypeOrBuilder>( - (flyteidl.core.Types.BlobType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 5; - onChanged();; - return blobBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder> enumTypeBuilder_; - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public boolean hasEnumType() { - return typeCase_ == 7; - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public flyteidl.core.Types.EnumType getEnumType() { - if (enumTypeBuilder_ == null) { - if (typeCase_ == 7) { - return (flyteidl.core.Types.EnumType) type_; - } - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } else { - if (typeCase_ == 7) { - return enumTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public Builder setEnumType(flyteidl.core.Types.EnumType value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - enumTypeBuilder_.setMessage(value); - } - typeCase_ = 7; - return this; - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public Builder setEnumType( - flyteidl.core.Types.EnumType.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - enumTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 7; - return this; - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public Builder mergeEnumType(flyteidl.core.Types.EnumType value) { - if (enumTypeBuilder_ == null) { - if (typeCase_ == 7 && - type_ != flyteidl.core.Types.EnumType.getDefaultInstance()) { - type_ = flyteidl.core.Types.EnumType.newBuilder((flyteidl.core.Types.EnumType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 7) { - enumTypeBuilder_.mergeFrom(value); - } - enumTypeBuilder_.setMessage(value); - } - typeCase_ = 7; - return this; - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - if (typeCase_ == 7) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 7) { - typeCase_ = 0; - type_ = null; - } - enumTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public flyteidl.core.Types.EnumType.Builder getEnumTypeBuilder() { - return getEnumTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - public flyteidl.core.Types.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if ((typeCase_ == 7) && (enumTypeBuilder_ != null)) { - return enumTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 7) { - return (flyteidl.core.Types.EnumType) type_; - } - return flyteidl.core.Types.EnumType.getDefaultInstance(); - } - } - /** - *
-       * Defines an enum with pre-defined string values.
-       * 
- * - * .flyteidl.core.EnumType enum_type = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder> - getEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - if (!(typeCase_ == 7)) { - type_ = flyteidl.core.Types.EnumType.getDefaultInstance(); - } - enumTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.EnumType, flyteidl.core.Types.EnumType.Builder, flyteidl.core.Types.EnumTypeOrBuilder>( - (flyteidl.core.Types.EnumType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 7; - onChanged();; - return enumTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> structuredDatasetTypeBuilder_; - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public boolean hasStructuredDatasetType() { - return typeCase_ == 8; - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public flyteidl.core.Types.StructuredDatasetType getStructuredDatasetType() { - if (structuredDatasetTypeBuilder_ == null) { - if (typeCase_ == 8) { - return (flyteidl.core.Types.StructuredDatasetType) type_; - } - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } else { - if (typeCase_ == 8) { - return structuredDatasetTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public Builder setStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { - if (structuredDatasetTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - structuredDatasetTypeBuilder_.setMessage(value); - } - typeCase_ = 8; - return this; - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public Builder setStructuredDatasetType( - flyteidl.core.Types.StructuredDatasetType.Builder builderForValue) { - if (structuredDatasetTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - structuredDatasetTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 8; - return this; - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public Builder mergeStructuredDatasetType(flyteidl.core.Types.StructuredDatasetType value) { - if (structuredDatasetTypeBuilder_ == null) { - if (typeCase_ == 8 && - type_ != flyteidl.core.Types.StructuredDatasetType.getDefaultInstance()) { - type_ = flyteidl.core.Types.StructuredDatasetType.newBuilder((flyteidl.core.Types.StructuredDatasetType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 8) { - structuredDatasetTypeBuilder_.mergeFrom(value); - } - structuredDatasetTypeBuilder_.setMessage(value); - } - typeCase_ = 8; - return this; - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public Builder clearStructuredDatasetType() { - if (structuredDatasetTypeBuilder_ == null) { - if (typeCase_ == 8) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 8) { - typeCase_ = 0; - type_ = null; - } - structuredDatasetTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public flyteidl.core.Types.StructuredDatasetType.Builder getStructuredDatasetTypeBuilder() { - return getStructuredDatasetTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - public flyteidl.core.Types.StructuredDatasetTypeOrBuilder getStructuredDatasetTypeOrBuilder() { - if ((typeCase_ == 8) && (structuredDatasetTypeBuilder_ != null)) { - return structuredDatasetTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 8) { - return (flyteidl.core.Types.StructuredDatasetType) type_; - } - return flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - } - /** - *
-       * Generalized schema support
-       * 
- * - * .flyteidl.core.StructuredDatasetType structured_dataset_type = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder> - getStructuredDatasetTypeFieldBuilder() { - if (structuredDatasetTypeBuilder_ == null) { - if (!(typeCase_ == 8)) { - type_ = flyteidl.core.Types.StructuredDatasetType.getDefaultInstance(); - } - structuredDatasetTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.StructuredDatasetType, flyteidl.core.Types.StructuredDatasetType.Builder, flyteidl.core.Types.StructuredDatasetTypeOrBuilder>( - (flyteidl.core.Types.StructuredDatasetType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 8; - onChanged();; - return structuredDatasetTypeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder> unionTypeBuilder_; - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public boolean hasUnionType() { - return typeCase_ == 10; - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public flyteidl.core.Types.UnionType getUnionType() { - if (unionTypeBuilder_ == null) { - if (typeCase_ == 10) { - return (flyteidl.core.Types.UnionType) type_; - } - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } else { - if (typeCase_ == 10) { - return unionTypeBuilder_.getMessage(); - } - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public Builder setUnionType(flyteidl.core.Types.UnionType value) { - if (unionTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - unionTypeBuilder_.setMessage(value); - } - typeCase_ = 10; - return this; - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public Builder setUnionType( - flyteidl.core.Types.UnionType.Builder builderForValue) { - if (unionTypeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - unionTypeBuilder_.setMessage(builderForValue.build()); - } - typeCase_ = 10; - return this; - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public Builder mergeUnionType(flyteidl.core.Types.UnionType value) { - if (unionTypeBuilder_ == null) { - if (typeCase_ == 10 && - type_ != flyteidl.core.Types.UnionType.getDefaultInstance()) { - type_ = flyteidl.core.Types.UnionType.newBuilder((flyteidl.core.Types.UnionType) type_) - .mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - if (typeCase_ == 10) { - unionTypeBuilder_.mergeFrom(value); - } - unionTypeBuilder_.setMessage(value); - } - typeCase_ = 10; - return this; - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public Builder clearUnionType() { - if (unionTypeBuilder_ == null) { - if (typeCase_ == 10) { - typeCase_ = 0; - type_ = null; - onChanged(); - } - } else { - if (typeCase_ == 10) { - typeCase_ = 0; - type_ = null; - } - unionTypeBuilder_.clear(); - } - return this; - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public flyteidl.core.Types.UnionType.Builder getUnionTypeBuilder() { - return getUnionTypeFieldBuilder().getBuilder(); - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - public flyteidl.core.Types.UnionTypeOrBuilder getUnionTypeOrBuilder() { - if ((typeCase_ == 10) && (unionTypeBuilder_ != null)) { - return unionTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeCase_ == 10) { - return (flyteidl.core.Types.UnionType) type_; - } - return flyteidl.core.Types.UnionType.getDefaultInstance(); - } - } - /** - *
-       * Defines an union type with pre-defined LiteralTypes.
-       * 
- * - * .flyteidl.core.UnionType union_type = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder> - getUnionTypeFieldBuilder() { - if (unionTypeBuilder_ == null) { - if (!(typeCase_ == 10)) { - type_ = flyteidl.core.Types.UnionType.getDefaultInstance(); - } - unionTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.UnionType, flyteidl.core.Types.UnionType.Builder, flyteidl.core.Types.UnionTypeOrBuilder>( - (flyteidl.core.Types.UnionType) type_, - getParentForChildren(), - isClean()); - type_ = null; - } - typeCase_ = 10; - onChanged();; - return unionTypeBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> metadataBuilder_; - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder setMetadata( - com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - /** - *
-       * This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking.  This might be used by
-       * consumers to identify special behavior or display extended information for the type.
-       * 
- * - * .google.protobuf.Struct metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Types.TypeAnnotation annotation_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder> annotationBuilder_; - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public boolean hasAnnotation() { - return annotationBuilder_ != null || annotation_ != null; - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public flyteidl.core.Types.TypeAnnotation getAnnotation() { - if (annotationBuilder_ == null) { - return annotation_ == null ? flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; - } else { - return annotationBuilder_.getMessage(); - } - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public Builder setAnnotation(flyteidl.core.Types.TypeAnnotation value) { - if (annotationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - annotation_ = value; - onChanged(); - } else { - annotationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public Builder setAnnotation( - flyteidl.core.Types.TypeAnnotation.Builder builderForValue) { - if (annotationBuilder_ == null) { - annotation_ = builderForValue.build(); - onChanged(); - } else { - annotationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public Builder mergeAnnotation(flyteidl.core.Types.TypeAnnotation value) { - if (annotationBuilder_ == null) { - if (annotation_ != null) { - annotation_ = - flyteidl.core.Types.TypeAnnotation.newBuilder(annotation_).mergeFrom(value).buildPartial(); - } else { - annotation_ = value; - } - onChanged(); - } else { - annotationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public Builder clearAnnotation() { - if (annotationBuilder_ == null) { - annotation_ = null; - onChanged(); - } else { - annotation_ = null; - annotationBuilder_ = null; - } - - return this; - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public flyteidl.core.Types.TypeAnnotation.Builder getAnnotationBuilder() { - - onChanged(); - return getAnnotationFieldBuilder().getBuilder(); - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - public flyteidl.core.Types.TypeAnnotationOrBuilder getAnnotationOrBuilder() { - if (annotationBuilder_ != null) { - return annotationBuilder_.getMessageOrBuilder(); - } else { - return annotation_ == null ? - flyteidl.core.Types.TypeAnnotation.getDefaultInstance() : annotation_; - } - } - /** - *
-       * This field contains arbitrary data that might have special semantic
-       * meaning for the client but does not effect internal flyte behavior.
-       * 
- * - * .flyteidl.core.TypeAnnotation annotation = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder> - getAnnotationFieldBuilder() { - if (annotationBuilder_ == null) { - annotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeAnnotation, flyteidl.core.Types.TypeAnnotation.Builder, flyteidl.core.Types.TypeAnnotationOrBuilder>( - getAnnotation(), - getParentForChildren(), - isClean()); - annotation_ = null; - } - return annotationBuilder_; - } - - private flyteidl.core.Types.TypeStructure structure_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder> structureBuilder_; - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public boolean hasStructure() { - return structureBuilder_ != null || structure_ != null; - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public flyteidl.core.Types.TypeStructure getStructure() { - if (structureBuilder_ == null) { - return structure_ == null ? flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; - } else { - return structureBuilder_.getMessage(); - } - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public Builder setStructure(flyteidl.core.Types.TypeStructure value) { - if (structureBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structure_ = value; - onChanged(); - } else { - structureBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public Builder setStructure( - flyteidl.core.Types.TypeStructure.Builder builderForValue) { - if (structureBuilder_ == null) { - structure_ = builderForValue.build(); - onChanged(); - } else { - structureBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public Builder mergeStructure(flyteidl.core.Types.TypeStructure value) { - if (structureBuilder_ == null) { - if (structure_ != null) { - structure_ = - flyteidl.core.Types.TypeStructure.newBuilder(structure_).mergeFrom(value).buildPartial(); - } else { - structure_ = value; - } - onChanged(); - } else { - structureBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public Builder clearStructure() { - if (structureBuilder_ == null) { - structure_ = null; - onChanged(); - } else { - structure_ = null; - structureBuilder_ = null; - } - - return this; - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public flyteidl.core.Types.TypeStructure.Builder getStructureBuilder() { - - onChanged(); - return getStructureFieldBuilder().getBuilder(); - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - public flyteidl.core.Types.TypeStructureOrBuilder getStructureOrBuilder() { - if (structureBuilder_ != null) { - return structureBuilder_.getMessageOrBuilder(); - } else { - return structure_ == null ? - flyteidl.core.Types.TypeStructure.getDefaultInstance() : structure_; - } - } - /** - *
-       * Hints to improve type matching.
-       * 
- * - * .flyteidl.core.TypeStructure structure = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder> - getStructureFieldBuilder() { - if (structureBuilder_ == null) { - structureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.TypeStructure, flyteidl.core.Types.TypeStructure.Builder, flyteidl.core.Types.TypeStructureOrBuilder>( - getStructure(), - getParentForChildren(), - isClean()); - structure_ = null; - } - return structureBuilder_; - } - @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.core.LiteralType) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.LiteralType) - private static final flyteidl.core.Types.LiteralType DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.LiteralType(); - } - - public static flyteidl.core.Types.LiteralType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LiteralType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LiteralType(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.core.Types.LiteralType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OutputReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.OutputReference) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - java.lang.String getVar(); - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - java.util.List - getAttrPathList(); - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - flyteidl.core.Types.PromiseAttribute getAttrPath(int index); - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - int getAttrPathCount(); - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - java.util.List - getAttrPathOrBuilderList(); - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - flyteidl.core.Types.PromiseAttributeOrBuilder getAttrPathOrBuilder( - int index); - } - /** - *
-   * A reference to an output produced by a node. The type can be retrieved -and validated- from
-   * the underlying interface of the node.
-   * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class OutputReference extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.OutputReference) - OutputReferenceOrBuilder { - private static final long serialVersionUID = 0L; - // Use OutputReference.newBuilder() to construct. - private OutputReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OutputReference() { - nodeId_ = ""; - var_ = ""; - attrPath_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OutputReference( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - attrPath_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - attrPath_.add( - input.readMessage(flyteidl.core.Types.PromiseAttribute.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - attrPath_ = java.util.Collections.unmodifiableList(attrPath_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - private int bitField0_; - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** - *
-     * Node id must exist at the graph layer.
-     * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VAR_FIELD_NUMBER = 2; - private volatile java.lang.Object var_; - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } - } - /** - *
-     * Variable name must refer to an output variable for the node.
-     * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ATTR_PATH_FIELD_NUMBER = 3; - private java.util.List attrPath_; - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public java.util.List getAttrPathList() { - return attrPath_; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public java.util.List - getAttrPathOrBuilderList() { - return attrPath_; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public int getAttrPathCount() { - return attrPath_.size(); - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttribute getAttrPath(int index) { - return attrPath_.get(index); - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttributeOrBuilder getAttrPathOrBuilder( - int index) { - return attrPath_.get(index); - } - - 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, var_); - } - for (int i = 0; i < attrPath_.size(); i++) { - output.writeMessage(3, attrPath_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, var_); - } - for (int i = 0; i < attrPath_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, attrPath_.get(i)); - } - 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.core.Types.OutputReference)) { - return super.equals(obj); - } - flyteidl.core.Types.OutputReference other = (flyteidl.core.Types.OutputReference) obj; - - if (!getNodeId() - .equals(other.getNodeId())) return false; - if (!getVar() - .equals(other.getVar())) return false; - if (!getAttrPathList() - .equals(other.getAttrPathList())) 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(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - if (getAttrPathCount() > 0) { - hash = (37 * hash) + ATTR_PATH_FIELD_NUMBER; - hash = (53 * hash) + getAttrPathList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.OutputReference parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.OutputReference parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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.core.Types.OutputReference parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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.core.Types.OutputReference parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.OutputReference 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.core.Types.OutputReference 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; - } - /** - *
-     * A reference to an output produced by a node. The type can be retrieved -and validated- from
-     * the underlying interface of the node.
-     * 
- * - * Protobuf type {@code flyteidl.core.OutputReference} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.OutputReference) - flyteidl.core.Types.OutputReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.OutputReference.class, flyteidl.core.Types.OutputReference.Builder.class); - } - - // Construct using flyteidl.core.Types.OutputReference.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAttrPathFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - nodeId_ = ""; - - var_ = ""; - - if (attrPathBuilder_ == null) { - attrPath_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - attrPathBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_OutputReference_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference getDefaultInstanceForType() { - return flyteidl.core.Types.OutputReference.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference build() { - flyteidl.core.Types.OutputReference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.OutputReference buildPartial() { - flyteidl.core.Types.OutputReference result = new flyteidl.core.Types.OutputReference(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.nodeId_ = nodeId_; - result.var_ = var_; - if (attrPathBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - attrPath_ = java.util.Collections.unmodifiableList(attrPath_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.attrPath_ = attrPath_; - } else { - result.attrPath_ = attrPathBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.Types.OutputReference) { - return mergeFrom((flyteidl.core.Types.OutputReference)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.OutputReference other) { - if (other == flyteidl.core.Types.OutputReference.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (attrPathBuilder_ == null) { - if (!other.attrPath_.isEmpty()) { - if (attrPath_.isEmpty()) { - attrPath_ = other.attrPath_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAttrPathIsMutable(); - attrPath_.addAll(other.attrPath_); - } - onChanged(); - } - } else { - if (!other.attrPath_.isEmpty()) { - if (attrPathBuilder_.isEmpty()) { - attrPathBuilder_.dispose(); - attrPathBuilder_ = null; - attrPath_ = other.attrPath_; - bitField0_ = (bitField0_ & ~0x00000004); - attrPathBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttrPathFieldBuilder() : null; - } else { - attrPathBuilder_.addAllMessages(other.attrPath_); - } - } - } - 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.core.Types.OutputReference parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.OutputReference) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object nodeId_ = ""; - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - *
-       * Node id must exist at the graph layer.
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Variable name must refer to an output variable for the node.
-       * 
- * - * string var = 2; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private java.util.List attrPath_ = - java.util.Collections.emptyList(); - private void ensureAttrPathIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - attrPath_ = new java.util.ArrayList(attrPath_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.PromiseAttribute, flyteidl.core.Types.PromiseAttribute.Builder, flyteidl.core.Types.PromiseAttributeOrBuilder> attrPathBuilder_; - - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public java.util.List getAttrPathList() { - if (attrPathBuilder_ == null) { - return java.util.Collections.unmodifiableList(attrPath_); - } else { - return attrPathBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public int getAttrPathCount() { - if (attrPathBuilder_ == null) { - return attrPath_.size(); - } else { - return attrPathBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttribute getAttrPath(int index) { - if (attrPathBuilder_ == null) { - return attrPath_.get(index); - } else { - return attrPathBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder setAttrPath( - int index, flyteidl.core.Types.PromiseAttribute value) { - if (attrPathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrPathIsMutable(); - attrPath_.set(index, value); - onChanged(); - } else { - attrPathBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder setAttrPath( - int index, flyteidl.core.Types.PromiseAttribute.Builder builderForValue) { - if (attrPathBuilder_ == null) { - ensureAttrPathIsMutable(); - attrPath_.set(index, builderForValue.build()); - onChanged(); - } else { - attrPathBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder addAttrPath(flyteidl.core.Types.PromiseAttribute value) { - if (attrPathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrPathIsMutable(); - attrPath_.add(value); - onChanged(); - } else { - attrPathBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder addAttrPath( - int index, flyteidl.core.Types.PromiseAttribute value) { - if (attrPathBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAttrPathIsMutable(); - attrPath_.add(index, value); - onChanged(); - } else { - attrPathBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder addAttrPath( - flyteidl.core.Types.PromiseAttribute.Builder builderForValue) { - if (attrPathBuilder_ == null) { - ensureAttrPathIsMutable(); - attrPath_.add(builderForValue.build()); - onChanged(); - } else { - attrPathBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder addAttrPath( - int index, flyteidl.core.Types.PromiseAttribute.Builder builderForValue) { - if (attrPathBuilder_ == null) { - ensureAttrPathIsMutable(); - attrPath_.add(index, builderForValue.build()); - onChanged(); - } else { - attrPathBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder addAllAttrPath( - java.lang.Iterable values) { - if (attrPathBuilder_ == null) { - ensureAttrPathIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attrPath_); - onChanged(); - } else { - attrPathBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder clearAttrPath() { - if (attrPathBuilder_ == null) { - attrPath_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - attrPathBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public Builder removeAttrPath(int index) { - if (attrPathBuilder_ == null) { - ensureAttrPathIsMutable(); - attrPath_.remove(index); - onChanged(); - } else { - attrPathBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttribute.Builder getAttrPathBuilder( - int index) { - return getAttrPathFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttributeOrBuilder getAttrPathOrBuilder( - int index) { - if (attrPathBuilder_ == null) { - return attrPath_.get(index); } else { - return attrPathBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public java.util.List - getAttrPathOrBuilderList() { - if (attrPathBuilder_ != null) { - return attrPathBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(attrPath_); - } - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttribute.Builder addAttrPathBuilder() { - return getAttrPathFieldBuilder().addBuilder( - flyteidl.core.Types.PromiseAttribute.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public flyteidl.core.Types.PromiseAttribute.Builder addAttrPathBuilder( - int index) { - return getAttrPathFieldBuilder().addBuilder( - index, flyteidl.core.Types.PromiseAttribute.getDefaultInstance()); - } - /** - * repeated .flyteidl.core.PromiseAttribute attr_path = 3; - */ - public java.util.List - getAttrPathBuilderList() { - return getAttrPathFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.PromiseAttribute, flyteidl.core.Types.PromiseAttribute.Builder, flyteidl.core.Types.PromiseAttributeOrBuilder> - getAttrPathFieldBuilder() { - if (attrPathBuilder_ == null) { - attrPathBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Types.PromiseAttribute, flyteidl.core.Types.PromiseAttribute.Builder, flyteidl.core.Types.PromiseAttributeOrBuilder>( - attrPath_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - attrPath_ = null; - } - return attrPathBuilder_; - } - @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.core.OutputReference) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.OutputReference) - private static final flyteidl.core.Types.OutputReference DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.OutputReference(); - } - - public static flyteidl.core.Types.OutputReference getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OutputReference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OutputReference(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.core.Types.OutputReference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PromiseAttributeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.PromiseAttribute) - com.google.protobuf.MessageOrBuilder { - - /** - * string string_value = 1; - */ - java.lang.String getStringValue(); - /** - * string string_value = 1; - */ - com.google.protobuf.ByteString - getStringValueBytes(); - - /** - * int32 int_value = 2; - */ - int getIntValue(); - - public flyteidl.core.Types.PromiseAttribute.ValueCase getValueCase(); - } - /** - * Protobuf type {@code flyteidl.core.PromiseAttribute} - */ - public static final class PromiseAttribute extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.PromiseAttribute) - PromiseAttributeOrBuilder { - private static final long serialVersionUID = 0L; - // Use PromiseAttribute.newBuilder() to construct. - private PromiseAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PromiseAttribute() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PromiseAttribute( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - valueCase_ = 1; - value_ = s; - break; - } - case 16: { - valueCase_ = 2; - value_ = input.readInt32(); - 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.core.Types.internal_static_flyteidl_core_PromiseAttribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_PromiseAttribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.PromiseAttribute.class, flyteidl.core.Types.PromiseAttribute.Builder.class); - } - - private int valueCase_ = 0; - private java.lang.Object value_; - public enum ValueCase - implements com.google.protobuf.Internal.EnumLite { - STRING_VALUE(1), - INT_VALUE(2), - VALUE_NOT_SET(0); - private final int value; - private ValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ValueCase valueOf(int value) { - return forNumber(value); - } - - public static ValueCase forNumber(int value) { - switch (value) { - case 1: return STRING_VALUE; - case 2: return INT_VALUE; - case 0: return VALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public static final int STRING_VALUE_FIELD_NUMBER = 1; - /** - * string string_value = 1; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 1) { - value_ = s; - } - return s; - } - } - /** - * string string_value = 1; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 1) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INT_VALUE_FIELD_NUMBER = 2; - /** - * int32 int_value = 2; - */ - public int getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Integer) value_; - } - return 0; - } - - 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 (valueCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - if (valueCase_ == 2) { - output.writeInt32( - 2, (int)((java.lang.Integer) value_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (valueCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - if (valueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size( - 2, (int)((java.lang.Integer) value_)); - } - 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.core.Types.PromiseAttribute)) { - return super.equals(obj); - } - flyteidl.core.Types.PromiseAttribute other = (flyteidl.core.Types.PromiseAttribute) obj; - - if (!getValueCase().equals(other.getValueCase())) return false; - switch (valueCase_) { - case 1: - if (!getStringValue() - .equals(other.getStringValue())) return false; - break; - case 2: - if (getIntValue() - != other.getIntValue()) 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 (valueCase_) { - case 1: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 2: - hash = (37 * hash) + INT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getIntValue(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.PromiseAttribute parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.PromiseAttribute parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.PromiseAttribute 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.core.Types.PromiseAttribute parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.PromiseAttribute 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.core.Types.PromiseAttribute parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.PromiseAttribute 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.core.Types.PromiseAttribute 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; - } - /** - * Protobuf type {@code flyteidl.core.PromiseAttribute} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.PromiseAttribute) - flyteidl.core.Types.PromiseAttributeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_PromiseAttribute_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_PromiseAttribute_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.PromiseAttribute.class, flyteidl.core.Types.PromiseAttribute.Builder.class); - } - - // Construct using flyteidl.core.Types.PromiseAttribute.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(); - valueCase_ = 0; - value_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_PromiseAttribute_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.PromiseAttribute getDefaultInstanceForType() { - return flyteidl.core.Types.PromiseAttribute.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.PromiseAttribute build() { - flyteidl.core.Types.PromiseAttribute result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.PromiseAttribute buildPartial() { - flyteidl.core.Types.PromiseAttribute result = new flyteidl.core.Types.PromiseAttribute(this); - if (valueCase_ == 1) { - result.value_ = value_; - } - if (valueCase_ == 2) { - result.value_ = value_; - } - result.valueCase_ = valueCase_; - 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.core.Types.PromiseAttribute) { - return mergeFrom((flyteidl.core.Types.PromiseAttribute)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.PromiseAttribute other) { - if (other == flyteidl.core.Types.PromiseAttribute.getDefaultInstance()) return this; - switch (other.getValueCase()) { - case STRING_VALUE: { - valueCase_ = 1; - value_ = other.value_; - onChanged(); - break; - } - case INT_VALUE: { - setIntValue(other.getIntValue()); - break; - } - case VALUE_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.core.Types.PromiseAttribute parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.PromiseAttribute) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int valueCase_ = 0; - private java.lang.Object value_; - public ValueCase - getValueCase() { - return ValueCase.forNumber( - valueCase_); - } - - public Builder clearValue() { - valueCase_ = 0; - value_ = null; - onChanged(); - return this; - } - - - /** - * string string_value = 1; - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (valueCase_ == 1) { - value_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string string_value = 1; - */ - public com.google.protobuf.ByteString - getStringValueBytes() { - java.lang.Object ref = ""; - if (valueCase_ == 1) { - ref = value_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (valueCase_ == 1) { - value_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string string_value = 1; - */ - public Builder setStringValue( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - /** - * string string_value = 1; - */ - public Builder clearStringValue() { - if (valueCase_ == 1) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - /** - * string string_value = 1; - */ - public Builder setStringValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - valueCase_ = 1; - value_ = value; - onChanged(); - return this; - } - - /** - * int32 int_value = 2; - */ - public int getIntValue() { - if (valueCase_ == 2) { - return (java.lang.Integer) value_; - } - return 0; - } - /** - * int32 int_value = 2; - */ - public Builder setIntValue(int value) { - valueCase_ = 2; - value_ = value; - onChanged(); - return this; - } - /** - * int32 int_value = 2; - */ - public Builder clearIntValue() { - if (valueCase_ == 2) { - valueCase_ = 0; - value_ = null; - onChanged(); - } - return this; - } - @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.core.PromiseAttribute) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.PromiseAttribute) - private static final flyteidl.core.Types.PromiseAttribute DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.PromiseAttribute(); - } - - public static flyteidl.core.Types.PromiseAttribute getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PromiseAttribute parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PromiseAttribute(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.core.Types.PromiseAttribute getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ErrorOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Error) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - java.lang.String getFailedNodeId(); - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - com.google.protobuf.ByteString - getFailedNodeIdBytes(); - - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - java.lang.String getMessage(); - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - com.google.protobuf.ByteString - getMessageBytes(); - } - /** - *
-   * Represents an error thrown from a node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Error extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Error) - ErrorOrBuilder { - private static final long serialVersionUID = 0L; - // Use Error.newBuilder() to construct. - private Error(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Error() { - failedNodeId_ = ""; - message_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Error( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - failedNodeId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - message_ = s; - 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.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - public static final int FAILED_NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object failedNodeId_; - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failedNodeId_ = s; - return s; - } - } - /** - *
-     * The node id that threw the error.
-     * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MESSAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object message_; - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } - } - /** - *
-     * Error message thrown.
-     * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getFailedNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFailedNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, failedNodeId_); - } - if (!getMessageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); - } - 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.core.Types.Error)) { - return super.equals(obj); - } - flyteidl.core.Types.Error other = (flyteidl.core.Types.Error) obj; - - if (!getFailedNodeId() - .equals(other.getFailedNodeId())) return false; - if (!getMessage() - .equals(other.getMessage())) 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(); - hash = (37 * hash) + FAILED_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getFailedNodeId().hashCode(); - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Types.Error parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Types.Error parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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.core.Types.Error parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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.core.Types.Error parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Types.Error 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.core.Types.Error 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; - } - /** - *
-     * Represents an error thrown from a node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Error} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Error) - flyteidl.core.Types.ErrorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Types.Error.class, flyteidl.core.Types.Error.Builder.class); - } - - // Construct using flyteidl.core.Types.Error.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(); - failedNodeId_ = ""; - - message_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Types.internal_static_flyteidl_core_Error_descriptor; - } - - @java.lang.Override - public flyteidl.core.Types.Error getDefaultInstanceForType() { - return flyteidl.core.Types.Error.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Types.Error build() { - flyteidl.core.Types.Error result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Types.Error buildPartial() { - flyteidl.core.Types.Error result = new flyteidl.core.Types.Error(this); - result.failedNodeId_ = failedNodeId_; - result.message_ = message_; - 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.core.Types.Error) { - return mergeFrom((flyteidl.core.Types.Error)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Types.Error other) { - if (other == flyteidl.core.Types.Error.getDefaultInstance()) return this; - if (!other.getFailedNodeId().isEmpty()) { - failedNodeId_ = other.failedNodeId_; - onChanged(); - } - if (!other.getMessage().isEmpty()) { - message_ = other.message_; - onChanged(); - } - 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.core.Types.Error parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Types.Error) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object failedNodeId_ = ""; - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public java.lang.String getFailedNodeId() { - java.lang.Object ref = failedNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - failedNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public com.google.protobuf.ByteString - getFailedNodeIdBytes() { - java.lang.Object ref = failedNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - failedNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - failedNodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder clearFailedNodeId() { - - failedNodeId_ = getDefaultInstance().getFailedNodeId(); - onChanged(); - return this; - } - /** - *
-       * The node id that threw the error.
-       * 
- * - * string failed_node_id = 1; - */ - public Builder setFailedNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - failedNodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object message_ = ""; - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - message_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - message_ = value; - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder clearMessage() { - - message_ = getDefaultInstance().getMessage(); - onChanged(); - return this; - } - /** - *
-       * Error message thrown.
-       * 
- * - * string message = 2; - */ - public Builder setMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - message_ = value; - onChanged(); - return this; - } - @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.core.Error) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Error) - private static final flyteidl.core.Types.Error DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Types.Error(); - } - - public static flyteidl.core.Types.Error getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Error parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Error(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.core.Types.Error getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SchemaType_SchemaColumn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SchemaType_SchemaColumn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_StructuredDatasetType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_StructuredDatasetType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_StructuredDatasetType_DatasetColumn_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BlobType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BlobType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_EnumType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_EnumType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_UnionType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_UnionType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypeStructure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypeStructure_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypeStructure_DataclassTypeEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypeStructure_DataclassTypeEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TypeAnnotation_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TypeAnnotation_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_LiteralType_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_LiteralType_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_OutputReference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_OutputReference_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_PromiseAttribute_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_PromiseAttribute_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Error_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Error_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\031flyteidl/core/types.proto\022\rflyteidl.co" + - "re\032\034google/protobuf/struct.proto\"\214\002\n\nSch" + - "emaType\0227\n\007columns\030\003 \003(\0132&.flyteidl.core" + - ".SchemaType.SchemaColumn\032\304\001\n\014SchemaColum" + - "n\022\014\n\004name\030\001 \001(\t\022E\n\004type\030\002 \001(\01627.flyteidl" + - ".core.SchemaType.SchemaColumn.SchemaColu" + - "mnType\"_\n\020SchemaColumnType\022\013\n\007INTEGER\020\000\022" + - "\t\n\005FLOAT\020\001\022\n\n\006STRING\020\002\022\013\n\007BOOLEAN\020\003\022\014\n\010D" + - "ATETIME\020\004\022\014\n\010DURATION\020\005\"\372\001\n\025StructuredDa" + - "tasetType\022C\n\007columns\030\001 \003(\01322.flyteidl.co" + - "re.StructuredDatasetType.DatasetColumn\022\016" + - "\n\006format\030\002 \001(\t\022\034\n\024external_schema_type\030\003" + - " \001(\t\022\035\n\025external_schema_bytes\030\004 \001(\014\032O\n\rD" + - "atasetColumn\022\014\n\004name\030\001 \001(\t\0220\n\014literal_ty" + - "pe\030\002 \001(\0132\032.flyteidl.core.LiteralType\"\217\001\n" + - "\010BlobType\022\016\n\006format\030\001 \001(\t\022B\n\016dimensional" + - "ity\030\002 \001(\0162*.flyteidl.core.BlobType.BlobD" + - "imensionality\"/\n\022BlobDimensionality\022\n\n\006S" + - "INGLE\020\000\022\r\n\tMULTIPART\020\001\"\032\n\010EnumType\022\016\n\006va" + - "lues\030\001 \003(\t\"9\n\tUnionType\022,\n\010variants\030\001 \003(" + - "\0132\032.flyteidl.core.LiteralType\"\267\001\n\rTypeSt" + - "ructure\022\013\n\003tag\030\001 \001(\t\022G\n\016dataclass_type\030\002" + - " \003(\0132/.flyteidl.core.TypeStructure.Datac" + - "lassTypeEntry\032P\n\022DataclassTypeEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022)\n\005value\030\002 \001(\0132\032.flyteidl.core." + - "LiteralType:\0028\001\">\n\016TypeAnnotation\022,\n\013ann" + - "otations\030\001 \001(\0132\027.google.protobuf.Struct\"" + - "\273\004\n\013LiteralType\022+\n\006simple\030\001 \001(\0162\031.flytei" + - "dl.core.SimpleTypeH\000\022+\n\006schema\030\002 \001(\0132\031.f" + - "lyteidl.core.SchemaTypeH\000\0225\n\017collection_" + - "type\030\003 \001(\0132\032.flyteidl.core.LiteralTypeH\000" + - "\0224\n\016map_value_type\030\004 \001(\0132\032.flyteidl.core" + - ".LiteralTypeH\000\022\'\n\004blob\030\005 \001(\0132\027.flyteidl." + - "core.BlobTypeH\000\022,\n\tenum_type\030\007 \001(\0132\027.fly" + - "teidl.core.EnumTypeH\000\022G\n\027structured_data" + - "set_type\030\010 \001(\0132$.flyteidl.core.Structure" + - "dDatasetTypeH\000\022.\n\nunion_type\030\n \001(\0132\030.fly" + - "teidl.core.UnionTypeH\000\022)\n\010metadata\030\006 \001(\013" + - "2\027.google.protobuf.Struct\0221\n\nannotation\030" + - "\t \001(\0132\035.flyteidl.core.TypeAnnotation\022/\n\t" + - "structure\030\013 \001(\0132\034.flyteidl.core.TypeStru" + - "ctureB\006\n\004type\"c\n\017OutputReference\022\017\n\007node" + - "_id\030\001 \001(\t\022\013\n\003var\030\002 \001(\t\0222\n\tattr_path\030\003 \003(" + - "\0132\037.flyteidl.core.PromiseAttribute\"H\n\020Pr" + - "omiseAttribute\022\026\n\014string_value\030\001 \001(\tH\000\022\023" + - "\n\tint_value\030\002 \001(\005H\000B\007\n\005value\"0\n\005Error\022\026\n" + - "\016failed_node_id\030\001 \001(\t\022\017\n\007message\030\002 \001(\t*\206" + - "\001\n\nSimpleType\022\010\n\004NONE\020\000\022\013\n\007INTEGER\020\001\022\t\n\005" + - "FLOAT\020\002\022\n\n\006STRING\020\003\022\013\n\007BOOLEAN\020\004\022\014\n\010DATE" + - "TIME\020\005\022\014\n\010DURATION\020\006\022\n\n\006BINARY\020\007\022\t\n\005ERRO" + - "R\020\010\022\n\n\006STRUCT\020\tB.flyteidl.core.BooleanExpression condition = 1; - */ - boolean hasCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpression getCondition(); - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder(); - - /** - * .flyteidl.core.Node then_node = 2; - */ - boolean hasThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.Node getThenNode(); - /** - * .flyteidl.core.Node then_node = 2; - */ - flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder(); - } - /** - *
-   * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class IfBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfBlock) - IfBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfBlock.newBuilder() to construct. - private IfBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfBlock() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfBlock( - 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.Condition.BooleanExpression.Builder subBuilder = null; - if (condition_ != null) { - subBuilder = condition_.toBuilder(); - } - condition_ = input.readMessage(flyteidl.core.Condition.BooleanExpression.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(condition_); - condition_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (thenNode_ != null) { - subBuilder = thenNode_.toBuilder(); - } - thenNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(thenNode_); - thenNode_ = 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.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - public static final int CONDITION_FIELD_NUMBER = 1; - private flyteidl.core.Condition.BooleanExpression condition_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - return getCondition(); - } - - public static final int THEN_NODE_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.Node thenNode_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - return getThenNode(); - } - - 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 (condition_ != null) { - output.writeMessage(1, getCondition()); - } - if (thenNode_ != null) { - output.writeMessage(2, getThenNode()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (condition_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCondition()); - } - if (thenNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getThenNode()); - } - 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.core.Workflow.IfBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfBlock other = (flyteidl.core.Workflow.IfBlock) obj; - - if (hasCondition() != other.hasCondition()) return false; - if (hasCondition()) { - if (!getCondition() - .equals(other.getCondition())) return false; - } - if (hasThenNode() != other.hasThenNode()) return false; - if (hasThenNode()) { - if (!getThenNode() - .equals(other.getThenNode())) 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 (hasCondition()) { - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getCondition().hashCode(); - } - if (hasThenNode()) { - hash = (37 * hash) + THEN_NODE_FIELD_NUMBER; - hash = (53 * hash) + getThenNode().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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.core.Workflow.IfBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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.core.Workflow.IfBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfBlock 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.core.Workflow.IfBlock 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; - } - /** - *
-     * Defines a condition and the execution unit that should be executed if the condition is satisfied.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfBlock) - flyteidl.core.Workflow.IfBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfBlock.class, flyteidl.core.Workflow.IfBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfBlock.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 (conditionBuilder_ == null) { - condition_ = null; - } else { - condition_ = null; - conditionBuilder_ = null; - } - if (thenNodeBuilder_ == null) { - thenNode_ = null; - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock build() { - flyteidl.core.Workflow.IfBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfBlock buildPartial() { - flyteidl.core.Workflow.IfBlock result = new flyteidl.core.Workflow.IfBlock(this); - if (conditionBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = conditionBuilder_.build(); - } - if (thenNodeBuilder_ == null) { - result.thenNode_ = thenNode_; - } else { - result.thenNode_ = thenNodeBuilder_.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.core.Workflow.IfBlock) { - return mergeFrom((flyteidl.core.Workflow.IfBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfBlock other) { - if (other == flyteidl.core.Workflow.IfBlock.getDefaultInstance()) return this; - if (other.hasCondition()) { - mergeCondition(other.getCondition()); - } - if (other.hasThenNode()) { - mergeThenNode(other.getThenNode()); - } - 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.core.Workflow.IfBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Condition.BooleanExpression condition_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> conditionBuilder_; - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public boolean hasCondition() { - return conditionBuilder_ != null || condition_ != null; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression getCondition() { - if (conditionBuilder_ == null) { - return condition_ == null ? flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } else { - return conditionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - conditionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder setCondition( - flyteidl.core.Condition.BooleanExpression.Builder builderForValue) { - if (conditionBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - conditionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder mergeCondition(flyteidl.core.Condition.BooleanExpression value) { - if (conditionBuilder_ == null) { - if (condition_ != null) { - condition_ = - flyteidl.core.Condition.BooleanExpression.newBuilder(condition_).mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - conditionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public Builder clearCondition() { - if (conditionBuilder_ == null) { - condition_ = null; - onChanged(); - } else { - condition_ = null; - conditionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpression.Builder getConditionBuilder() { - - onChanged(); - return getConditionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - public flyteidl.core.Condition.BooleanExpressionOrBuilder getConditionOrBuilder() { - if (conditionBuilder_ != null) { - return conditionBuilder_.getMessageOrBuilder(); - } else { - return condition_ == null ? - flyteidl.core.Condition.BooleanExpression.getDefaultInstance() : condition_; - } - } - /** - * .flyteidl.core.BooleanExpression condition = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder> - getConditionFieldBuilder() { - if (conditionBuilder_ == null) { - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Condition.BooleanExpression, flyteidl.core.Condition.BooleanExpression.Builder, flyteidl.core.Condition.BooleanExpressionOrBuilder>( - getCondition(), - getParentForChildren(), - isClean()); - condition_ = null; - } - return conditionBuilder_; - } - - private flyteidl.core.Workflow.Node thenNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> thenNodeBuilder_; - /** - * .flyteidl.core.Node then_node = 2; - */ - public boolean hasThenNode() { - return thenNodeBuilder_ != null || thenNode_ != null; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node getThenNode() { - if (thenNodeBuilder_ == null) { - return thenNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } else { - return thenNodeBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - thenNode_ = value; - onChanged(); - } else { - thenNodeBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder setThenNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (thenNodeBuilder_ == null) { - thenNode_ = builderForValue.build(); - onChanged(); - } else { - thenNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder mergeThenNode(flyteidl.core.Workflow.Node value) { - if (thenNodeBuilder_ == null) { - if (thenNode_ != null) { - thenNode_ = - flyteidl.core.Workflow.Node.newBuilder(thenNode_).mergeFrom(value).buildPartial(); - } else { - thenNode_ = value; - } - onChanged(); - } else { - thenNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public Builder clearThenNode() { - if (thenNodeBuilder_ == null) { - thenNode_ = null; - onChanged(); - } else { - thenNode_ = null; - thenNodeBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.Node.Builder getThenNodeBuilder() { - - onChanged(); - return getThenNodeFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Node then_node = 2; - */ - public flyteidl.core.Workflow.NodeOrBuilder getThenNodeOrBuilder() { - if (thenNodeBuilder_ != null) { - return thenNodeBuilder_.getMessageOrBuilder(); - } else { - return thenNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : thenNode_; - } - } - /** - * .flyteidl.core.Node then_node = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getThenNodeFieldBuilder() { - if (thenNodeBuilder_ == null) { - thenNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getThenNode(), - getParentForChildren(), - isClean()); - thenNode_ = null; - } - return thenNodeBuilder_; - } - @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.core.IfBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfBlock) - private static final flyteidl.core.Workflow.IfBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfBlock(); - } - - public static flyteidl.core.Workflow.IfBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfBlock(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.core.Workflow.IfBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IfElseBlockOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.IfElseBlock) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - boolean hasCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlock getCase(); - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder(); - - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlock getOther(int index); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - int getOtherCount(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - java.util.List - getOtherOrBuilderList(); - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index); - - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - boolean hasElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.Node getElseNode(); - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder(); - - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - boolean hasError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.Error getError(); - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder(); - - public flyteidl.core.Workflow.IfElseBlock.DefaultCase getDefaultCase(); - } - /** - *
-   * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-   * If no conditions were satisfied, the else_node or the error will execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class IfElseBlock extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.IfElseBlock) - IfElseBlockOrBuilder { - private static final long serialVersionUID = 0L; - // Use IfElseBlock.newBuilder() to construct. - private IfElseBlock(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IfElseBlock() { - other_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private IfElseBlock( - 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.Workflow.IfBlock.Builder subBuilder = null; - if (case_ != null) { - subBuilder = case_.toBuilder(); - } - case_ = input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(case_); - case_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - other_.add( - input.readMessage(flyteidl.core.Workflow.IfBlock.parser(), extensionRegistry)); - break; - } - case 26: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (defaultCase_ == 3) { - subBuilder = ((flyteidl.core.Workflow.Node) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.Node) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 3; - break; - } - case 34: { - flyteidl.core.Types.Error.Builder subBuilder = null; - if (defaultCase_ == 4) { - subBuilder = ((flyteidl.core.Types.Error) default_).toBuilder(); - } - default_ = - input.readMessage(flyteidl.core.Types.Error.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Types.Error) default_); - default_ = subBuilder.buildPartial(); - } - defaultCase_ = 4; - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - private int bitField0_; - private int defaultCase_ = 0; - private java.lang.Object default_; - public enum DefaultCase - implements com.google.protobuf.Internal.EnumLite { - ELSE_NODE(3), - ERROR(4), - DEFAULT_NOT_SET(0); - private final int value; - private DefaultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DefaultCase valueOf(int value) { - return forNumber(value); - } - - public static DefaultCase forNumber(int value) { - switch (value) { - case 3: return ELSE_NODE; - case 4: return ERROR; - case 0: return DEFAULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public static final int CASE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfBlock case_; - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return case_ != null; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - /** - *
-     *+required. First condition to evaluate.
-     * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - return getCase(); - } - - public static final int OTHER_FIELD_NUMBER = 2; - private java.util.List other_; - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - return other_; - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - return other_.size(); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - return other_.get(index); - } - /** - *
-     *+optional. Additional branches to evaluate.
-     * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - return other_.get(index); - } - - public static final int ELSE_NODE_FIELD_NUMBER = 3; - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - /** - *
-     * The node to execute in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - public static final int ERROR_FIELD_NUMBER = 4; - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - /** - *
-     * An error to throw in case none of the branches were taken.
-     * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.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 (case_ != null) { - output.writeMessage(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - output.writeMessage(2, other_.get(i)); - } - if (defaultCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - output.writeMessage(4, (flyteidl.core.Types.Error) default_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (case_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCase()); - } - for (int i = 0; i < other_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, other_.get(i)); - } - if (defaultCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Workflow.Node) default_); - } - if (defaultCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (flyteidl.core.Types.Error) default_); - } - 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.core.Workflow.IfElseBlock)) { - return super.equals(obj); - } - flyteidl.core.Workflow.IfElseBlock other = (flyteidl.core.Workflow.IfElseBlock) obj; - - if (hasCase() != other.hasCase()) return false; - if (hasCase()) { - if (!getCase() - .equals(other.getCase())) return false; - } - if (!getOtherList() - .equals(other.getOtherList())) return false; - if (!getDefaultCase().equals(other.getDefaultCase())) return false; - switch (defaultCase_) { - case 3: - if (!getElseNode() - .equals(other.getElseNode())) return false; - break; - case 4: - if (!getError() - .equals(other.getError())) 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(); - if (hasCase()) { - hash = (37 * hash) + CASE_FIELD_NUMBER; - hash = (53 * hash) + getCase().hashCode(); - } - if (getOtherCount() > 0) { - hash = (37 * hash) + OTHER_FIELD_NUMBER; - hash = (53 * hash) + getOtherList().hashCode(); - } - switch (defaultCase_) { - case 3: - hash = (37 * hash) + ELSE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getElseNode().hashCode(); - break; - case 4: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.IfElseBlock parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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.core.Workflow.IfElseBlock parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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.core.Workflow.IfElseBlock parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.IfElseBlock 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.core.Workflow.IfElseBlock 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; - } - /** - *
-     * Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute.
-     * If no conditions were satisfied, the else_node or the error will execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.IfElseBlock} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.IfElseBlock) - flyteidl.core.Workflow.IfElseBlockOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.IfElseBlock.class, flyteidl.core.Workflow.IfElseBlock.Builder.class); - } - - // Construct using flyteidl.core.Workflow.IfElseBlock.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getOtherFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (caseBuilder_ == null) { - case_ = null; - } else { - case_ = null; - caseBuilder_ = null; - } - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - otherBuilder_.clear(); - } - defaultCase_ = 0; - default_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_IfElseBlock_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return flyteidl.core.Workflow.IfElseBlock.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock build() { - flyteidl.core.Workflow.IfElseBlock result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.IfElseBlock buildPartial() { - flyteidl.core.Workflow.IfElseBlock result = new flyteidl.core.Workflow.IfElseBlock(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (caseBuilder_ == null) { - result.case_ = case_; - } else { - result.case_ = caseBuilder_.build(); - } - if (otherBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - other_ = java.util.Collections.unmodifiableList(other_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.other_ = other_; - } else { - result.other_ = otherBuilder_.build(); - } - if (defaultCase_ == 3) { - if (elseNodeBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = elseNodeBuilder_.build(); - } - } - if (defaultCase_ == 4) { - if (errorBuilder_ == null) { - result.default_ = default_; - } else { - result.default_ = errorBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.defaultCase_ = defaultCase_; - 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.core.Workflow.IfElseBlock) { - return mergeFrom((flyteidl.core.Workflow.IfElseBlock)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.IfElseBlock other) { - if (other == flyteidl.core.Workflow.IfElseBlock.getDefaultInstance()) return this; - if (other.hasCase()) { - mergeCase(other.getCase()); - } - if (otherBuilder_ == null) { - if (!other.other_.isEmpty()) { - if (other_.isEmpty()) { - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureOtherIsMutable(); - other_.addAll(other.other_); - } - onChanged(); - } - } else { - if (!other.other_.isEmpty()) { - if (otherBuilder_.isEmpty()) { - otherBuilder_.dispose(); - otherBuilder_ = null; - other_ = other.other_; - bitField0_ = (bitField0_ & ~0x00000002); - otherBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOtherFieldBuilder() : null; - } else { - otherBuilder_.addAllMessages(other.other_); - } - } - } - switch (other.getDefaultCase()) { - case ELSE_NODE: { - mergeElseNode(other.getElseNode()); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case DEFAULT_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.core.Workflow.IfElseBlock parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.IfElseBlock) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int defaultCase_ = 0; - private java.lang.Object default_; - public DefaultCase - getDefaultCase() { - return DefaultCase.forNumber( - defaultCase_); - } - - public Builder clearDefault() { - defaultCase_ = 0; - default_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.Workflow.IfBlock case_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> caseBuilder_; - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public boolean hasCase() { - return caseBuilder_ != null || case_ != null; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock getCase() { - if (caseBuilder_ == null) { - return case_ == null ? flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } else { - return caseBuilder_.getMessage(); - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - case_ = value; - onChanged(); - } else { - caseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder setCase( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (caseBuilder_ == null) { - case_ = builderForValue.build(); - onChanged(); - } else { - caseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder mergeCase(flyteidl.core.Workflow.IfBlock value) { - if (caseBuilder_ == null) { - if (case_ != null) { - case_ = - flyteidl.core.Workflow.IfBlock.newBuilder(case_).mergeFrom(value).buildPartial(); - } else { - case_ = value; - } - onChanged(); - } else { - caseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public Builder clearCase() { - if (caseBuilder_ == null) { - case_ = null; - onChanged(); - } else { - case_ = null; - caseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlock.Builder getCaseBuilder() { - - onChanged(); - return getCaseFieldBuilder().getBuilder(); - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getCaseOrBuilder() { - if (caseBuilder_ != null) { - return caseBuilder_.getMessageOrBuilder(); - } else { - return case_ == null ? - flyteidl.core.Workflow.IfBlock.getDefaultInstance() : case_; - } - } - /** - *
-       *+required. First condition to evaluate.
-       * 
- * - * .flyteidl.core.IfBlock case = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getCaseFieldBuilder() { - if (caseBuilder_ == null) { - caseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - getCase(), - getParentForChildren(), - isClean()); - case_ = null; - } - return caseBuilder_; - } - - private java.util.List other_ = - java.util.Collections.emptyList(); - private void ensureOtherIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - other_ = new java.util.ArrayList(other_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> otherBuilder_; - - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List getOtherList() { - if (otherBuilder_ == null) { - return java.util.Collections.unmodifiableList(other_); - } else { - return otherBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public int getOtherCount() { - if (otherBuilder_ == null) { - return other_.size(); - } else { - return otherBuilder_.getCount(); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock getOther(int index) { - if (otherBuilder_ == null) { - return other_.get(index); - } else { - return otherBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.set(index, value); - onChanged(); - } else { - otherBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder setOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.set(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther(flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(value); - onChanged(); - } else { - otherBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock value) { - if (otherBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOtherIsMutable(); - other_.add(index, value); - onChanged(); - } else { - otherBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addOther( - int index, flyteidl.core.Workflow.IfBlock.Builder builderForValue) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.add(index, builderForValue.build()); - onChanged(); - } else { - otherBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder addAllOther( - java.lang.Iterable values) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, other_); - onChanged(); - } else { - otherBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder clearOther() { - if (otherBuilder_ == null) { - other_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - otherBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public Builder removeOther(int index) { - if (otherBuilder_ == null) { - ensureOtherIsMutable(); - other_.remove(index); - onChanged(); - } else { - otherBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder getOtherBuilder( - int index) { - return getOtherFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlockOrBuilder getOtherOrBuilder( - int index) { - if (otherBuilder_ == null) { - return other_.get(index); } else { - return otherBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherOrBuilderList() { - if (otherBuilder_ != null) { - return otherBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(other_); - } - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder() { - return getOtherFieldBuilder().addBuilder( - flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public flyteidl.core.Workflow.IfBlock.Builder addOtherBuilder( - int index) { - return getOtherFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.IfBlock.getDefaultInstance()); - } - /** - *
-       *+optional. Additional branches to evaluate.
-       * 
- * - * repeated .flyteidl.core.IfBlock other = 2; - */ - public java.util.List - getOtherBuilderList() { - return getOtherFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder> - getOtherFieldBuilder() { - if (otherBuilder_ == null) { - otherBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.IfBlock, flyteidl.core.Workflow.IfBlock.Builder, flyteidl.core.Workflow.IfBlockOrBuilder>( - other_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - other_ = null; - } - return otherBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> elseNodeBuilder_; - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public boolean hasElseNode() { - return defaultCase_ == 3; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node getElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } else { - if (defaultCase_ == 3) { - return elseNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder setElseNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (elseNodeBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - elseNodeBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder mergeElseNode(flyteidl.core.Workflow.Node value) { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3 && - default_ != flyteidl.core.Workflow.Node.getDefaultInstance()) { - default_ = flyteidl.core.Workflow.Node.newBuilder((flyteidl.core.Workflow.Node) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 3) { - elseNodeBuilder_.mergeFrom(value); - } - elseNodeBuilder_.setMessage(value); - } - defaultCase_ = 3; - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public Builder clearElseNode() { - if (elseNodeBuilder_ == null) { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 3) { - defaultCase_ = 0; - default_ = null; - } - elseNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.Node.Builder getElseNodeBuilder() { - return getElseNodeFieldBuilder().getBuilder(); - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - public flyteidl.core.Workflow.NodeOrBuilder getElseNodeOrBuilder() { - if ((defaultCase_ == 3) && (elseNodeBuilder_ != null)) { - return elseNodeBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 3) { - return (flyteidl.core.Workflow.Node) default_; - } - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - } - /** - *
-       * The node to execute in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Node else_node = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getElseNodeFieldBuilder() { - if (elseNodeBuilder_ == null) { - if (!(defaultCase_ == 3)) { - default_ = flyteidl.core.Workflow.Node.getDefaultInstance(); - } - elseNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - (flyteidl.core.Workflow.Node) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 3; - onChanged();; - return elseNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> errorBuilder_; - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public boolean hasError() { - return defaultCase_ == 4; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error getError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } else { - if (defaultCase_ == 4) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - default_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder setError( - flyteidl.core.Types.Error.Builder builderForValue) { - if (errorBuilder_ == null) { - default_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder mergeError(flyteidl.core.Types.Error value) { - if (errorBuilder_ == null) { - if (defaultCase_ == 4 && - default_ != flyteidl.core.Types.Error.getDefaultInstance()) { - default_ = flyteidl.core.Types.Error.newBuilder((flyteidl.core.Types.Error) default_) - .mergeFrom(value).buildPartial(); - } else { - default_ = value; - } - onChanged(); - } else { - if (defaultCase_ == 4) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - defaultCase_ = 4; - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - onChanged(); - } - } else { - if (defaultCase_ == 4) { - defaultCase_ = 0; - default_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.Error.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - public flyteidl.core.Types.ErrorOrBuilder getErrorOrBuilder() { - if ((defaultCase_ == 4) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (defaultCase_ == 4) { - return (flyteidl.core.Types.Error) default_; - } - return flyteidl.core.Types.Error.getDefaultInstance(); - } - } - /** - *
-       * An error to throw in case none of the branches were taken.
-       * 
- * - * .flyteidl.core.Error error = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(defaultCase_ == 4)) { - default_ = flyteidl.core.Types.Error.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.Error, flyteidl.core.Types.Error.Builder, flyteidl.core.Types.ErrorOrBuilder>( - (flyteidl.core.Types.Error) default_, - getParentForChildren(), - isClean()); - default_ = null; - } - defaultCase_ = 4; - onChanged();; - return errorBuilder_; - } - @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.core.IfElseBlock) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.IfElseBlock) - private static final flyteidl.core.Workflow.IfElseBlock DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.IfElseBlock(); - } - - public static flyteidl.core.Workflow.IfElseBlock getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IfElseBlock parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new IfElseBlock(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.core.Workflow.IfElseBlock getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BranchNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.BranchNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - boolean hasIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlock getIfElse(); - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder(); - } - /** - *
-   * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-   * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives).
-   * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class BranchNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.BranchNode) - BranchNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use BranchNode.newBuilder() to construct. - private BranchNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BranchNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private BranchNode( - 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.Workflow.IfElseBlock.Builder subBuilder = null; - if (ifElse_ != null) { - subBuilder = ifElse_.toBuilder(); - } - ifElse_ = input.readMessage(flyteidl.core.Workflow.IfElseBlock.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(ifElse_); - ifElse_ = 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.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - public static final int IF_ELSE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.IfElseBlock ifElse_; - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElse_ != null; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - /** - *
-     *+required
-     * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - return getIfElse(); - } - - 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 (ifElse_ != null) { - output.writeMessage(1, getIfElse()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (ifElse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getIfElse()); - } - 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.core.Workflow.BranchNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.BranchNode other = (flyteidl.core.Workflow.BranchNode) obj; - - if (hasIfElse() != other.hasIfElse()) return false; - if (hasIfElse()) { - if (!getIfElse() - .equals(other.getIfElse())) 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 (hasIfElse()) { - hash = (37 * hash) + IF_ELSE_FIELD_NUMBER; - hash = (53 * hash) + getIfElse().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.BranchNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.BranchNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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.core.Workflow.BranchNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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.core.Workflow.BranchNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.BranchNode 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.core.Workflow.BranchNode 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; - } - /** - *
-     * BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at
-     * runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives).
-     * 
- * - * Protobuf type {@code flyteidl.core.BranchNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.BranchNode) - flyteidl.core.Workflow.BranchNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.BranchNode.class, flyteidl.core.Workflow.BranchNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.BranchNode.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 (ifElseBuilder_ == null) { - ifElse_ = null; - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_BranchNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode build() { - flyteidl.core.Workflow.BranchNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.BranchNode buildPartial() { - flyteidl.core.Workflow.BranchNode result = new flyteidl.core.Workflow.BranchNode(this); - if (ifElseBuilder_ == null) { - result.ifElse_ = ifElse_; - } else { - result.ifElse_ = ifElseBuilder_.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.core.Workflow.BranchNode) { - return mergeFrom((flyteidl.core.Workflow.BranchNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.BranchNode other) { - if (other == flyteidl.core.Workflow.BranchNode.getDefaultInstance()) return this; - if (other.hasIfElse()) { - mergeIfElse(other.getIfElse()); - } - 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.core.Workflow.BranchNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.BranchNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Workflow.IfElseBlock ifElse_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> ifElseBuilder_; - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public boolean hasIfElse() { - return ifElseBuilder_ != null || ifElse_ != null; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock getIfElse() { - if (ifElseBuilder_ == null) { - return ifElse_ == null ? flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } else { - return ifElseBuilder_.getMessage(); - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ifElse_ = value; - onChanged(); - } else { - ifElseBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder setIfElse( - flyteidl.core.Workflow.IfElseBlock.Builder builderForValue) { - if (ifElseBuilder_ == null) { - ifElse_ = builderForValue.build(); - onChanged(); - } else { - ifElseBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder mergeIfElse(flyteidl.core.Workflow.IfElseBlock value) { - if (ifElseBuilder_ == null) { - if (ifElse_ != null) { - ifElse_ = - flyteidl.core.Workflow.IfElseBlock.newBuilder(ifElse_).mergeFrom(value).buildPartial(); - } else { - ifElse_ = value; - } - onChanged(); - } else { - ifElseBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public Builder clearIfElse() { - if (ifElseBuilder_ == null) { - ifElse_ = null; - onChanged(); - } else { - ifElse_ = null; - ifElseBuilder_ = null; - } - - return this; - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlock.Builder getIfElseBuilder() { - - onChanged(); - return getIfElseFieldBuilder().getBuilder(); - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - public flyteidl.core.Workflow.IfElseBlockOrBuilder getIfElseOrBuilder() { - if (ifElseBuilder_ != null) { - return ifElseBuilder_.getMessageOrBuilder(); - } else { - return ifElse_ == null ? - flyteidl.core.Workflow.IfElseBlock.getDefaultInstance() : ifElse_; - } - } - /** - *
-       *+required
-       * 
- * - * .flyteidl.core.IfElseBlock if_else = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder> - getIfElseFieldBuilder() { - if (ifElseBuilder_ == null) { - ifElseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.IfElseBlock, flyteidl.core.Workflow.IfElseBlock.Builder, flyteidl.core.Workflow.IfElseBlockOrBuilder>( - getIfElse(), - getParentForChildren(), - isClean()); - ifElse_ = null; - } - return ifElseBuilder_; - } - @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.core.BranchNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.BranchNode) - private static final flyteidl.core.Workflow.BranchNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.BranchNode(); - } - - public static flyteidl.core.Workflow.BranchNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BranchNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BranchNode(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.core.Workflow.BranchNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - boolean hasReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getReferenceId(); - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder(); - - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - boolean hasOverrides(); - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - flyteidl.core.Workflow.TaskNodeOverrides getOverrides(); - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder(); - - public flyteidl.core.Workflow.TaskNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to the task that the Node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class TaskNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNode) - TaskNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNode.newBuilder() to construct. - private TaskNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNode( - 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 (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - break; - } - case 18: { - flyteidl.core.Workflow.TaskNodeOverrides.Builder subBuilder = null; - if (overrides_ != null) { - subBuilder = overrides_.toBuilder(); - } - overrides_ = input.readMessage(flyteidl.core.Workflow.TaskNodeOverrides.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(overrides_); - overrides_ = 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.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - REFERENCE_ID(1), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return REFERENCE_ID; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int REFERENCE_ID_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the task.
-     * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - public static final int OVERRIDES_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.TaskNodeOverrides overrides_; - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public boolean hasOverrides() { - return overrides_ != null; - } - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public flyteidl.core.Workflow.TaskNodeOverrides getOverrides() { - return overrides_ == null ? flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; - } - /** - *
-     * Optional overrides applied at task execution time.
-     * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder() { - return getOverrides(); - } - - 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 (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (overrides_ != null) { - output.writeMessage(2, getOverrides()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (overrides_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOverrides()); - } - 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.core.Workflow.TaskNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.TaskNode other = (flyteidl.core.Workflow.TaskNode) obj; - - if (hasOverrides() != other.hasOverrides()) return false; - if (hasOverrides()) { - if (!getOverrides() - .equals(other.getOverrides())) return false; - } - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getReferenceId() - .equals(other.getReferenceId())) 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(); - if (hasOverrides()) { - hash = (37 * hash) + OVERRIDES_FIELD_NUMBER; - hash = (53 * hash) + getOverrides().hashCode(); - } - switch (referenceCase_) { - case 1: - hash = (37 * hash) + REFERENCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getReferenceId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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.core.Workflow.TaskNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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.core.Workflow.TaskNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNode 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.core.Workflow.TaskNode 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; - } - /** - *
-     * Refers to the task that the Node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNode) - flyteidl.core.Workflow.TaskNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNode.class, flyteidl.core.Workflow.TaskNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.TaskNode.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 (overridesBuilder_ == null) { - overrides_ = null; - } else { - overrides_ = null; - overridesBuilder_ = null; - } - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode build() { - flyteidl.core.Workflow.TaskNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNode buildPartial() { - flyteidl.core.Workflow.TaskNode result = new flyteidl.core.Workflow.TaskNode(this); - if (referenceCase_ == 1) { - if (referenceIdBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = referenceIdBuilder_.build(); - } - } - if (overridesBuilder_ == null) { - result.overrides_ = overrides_; - } else { - result.overrides_ = overridesBuilder_.build(); - } - result.referenceCase_ = referenceCase_; - 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.core.Workflow.TaskNode) { - return mergeFrom((flyteidl.core.Workflow.TaskNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.TaskNode other) { - if (other == flyteidl.core.Workflow.TaskNode.getDefaultInstance()) return this; - if (other.hasOverrides()) { - mergeOverrides(other.getOverrides()); - } - switch (other.getReferenceCase()) { - case REFERENCE_ID: { - mergeReferenceId(other.getReferenceId()); - break; - } - case REFERENCE_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.core.Workflow.TaskNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.TaskNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> referenceIdBuilder_; - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public boolean hasReferenceId() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return referenceIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder setReferenceId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (referenceIdBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - referenceIdBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder mergeReferenceId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - referenceIdBuilder_.mergeFrom(value); - } - referenceIdBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public Builder clearReferenceId() { - if (referenceIdBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - referenceIdBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getReferenceIdBuilder() { - return getReferenceIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getReferenceIdOrBuilder() { - if ((referenceCase_ == 1) && (referenceIdBuilder_ != null)) { - return referenceIdBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the task.
-       * 
- * - * .flyteidl.core.Identifier reference_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getReferenceIdFieldBuilder() { - if (referenceIdBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - referenceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return referenceIdBuilder_; - } - - private flyteidl.core.Workflow.TaskNodeOverrides overrides_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder> overridesBuilder_; - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public boolean hasOverrides() { - return overridesBuilder_ != null || overrides_ != null; - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public flyteidl.core.Workflow.TaskNodeOverrides getOverrides() { - if (overridesBuilder_ == null) { - return overrides_ == null ? flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; - } else { - return overridesBuilder_.getMessage(); - } - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public Builder setOverrides(flyteidl.core.Workflow.TaskNodeOverrides value) { - if (overridesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - overrides_ = value; - onChanged(); - } else { - overridesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public Builder setOverrides( - flyteidl.core.Workflow.TaskNodeOverrides.Builder builderForValue) { - if (overridesBuilder_ == null) { - overrides_ = builderForValue.build(); - onChanged(); - } else { - overridesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public Builder mergeOverrides(flyteidl.core.Workflow.TaskNodeOverrides value) { - if (overridesBuilder_ == null) { - if (overrides_ != null) { - overrides_ = - flyteidl.core.Workflow.TaskNodeOverrides.newBuilder(overrides_).mergeFrom(value).buildPartial(); - } else { - overrides_ = value; - } - onChanged(); - } else { - overridesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public Builder clearOverrides() { - if (overridesBuilder_ == null) { - overrides_ = null; - onChanged(); - } else { - overrides_ = null; - overridesBuilder_ = null; - } - - return this; - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public flyteidl.core.Workflow.TaskNodeOverrides.Builder getOverridesBuilder() { - - onChanged(); - return getOverridesFieldBuilder().getBuilder(); - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - public flyteidl.core.Workflow.TaskNodeOverridesOrBuilder getOverridesOrBuilder() { - if (overridesBuilder_ != null) { - return overridesBuilder_.getMessageOrBuilder(); - } else { - return overrides_ == null ? - flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance() : overrides_; - } - } - /** - *
-       * Optional overrides applied at task execution time.
-       * 
- * - * .flyteidl.core.TaskNodeOverrides overrides = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder> - getOverridesFieldBuilder() { - if (overridesBuilder_ == null) { - overridesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNodeOverrides, flyteidl.core.Workflow.TaskNodeOverrides.Builder, flyteidl.core.Workflow.TaskNodeOverridesOrBuilder>( - getOverrides(), - getParentForChildren(), - isClean()); - overrides_ = null; - } - return overridesBuilder_; - } - @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.core.TaskNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNode) - private static final flyteidl.core.Workflow.TaskNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNode(); - } - - public static flyteidl.core.Workflow.TaskNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNode(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.core.Workflow.TaskNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - boolean hasLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef(); - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder(); - - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - boolean hasSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef(); - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder(); - - public flyteidl.core.Workflow.WorkflowNode.ReferenceCase getReferenceCase(); - } - /** - *
-   * Refers to a the workflow the node is to execute.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class WorkflowNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowNode) - WorkflowNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNode.newBuilder() to construct. - private WorkflowNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNode( - 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 (referenceCase_ == 1) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 1; - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (referenceCase_ == 2) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.Identifier) reference_).toBuilder(); - } - reference_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.Identifier) reference_); - reference_ = subBuilder.buildPartial(); - } - referenceCase_ = 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.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - private int referenceCase_ = 0; - private java.lang.Object reference_; - public enum ReferenceCase - implements com.google.protobuf.Internal.EnumLite { - LAUNCHPLAN_REF(1), - SUB_WORKFLOW_REF(2), - REFERENCE_NOT_SET(0); - private final int value; - private ReferenceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ReferenceCase valueOf(int value) { - return forNumber(value); - } - - public static ReferenceCase forNumber(int value) { - switch (value) { - case 1: return LAUNCHPLAN_REF; - case 2: return SUB_WORKFLOW_REF; - case 0: return REFERENCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public static final int LAUNCHPLAN_REF_FIELD_NUMBER = 1; - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * A globally unique identifier for the launch plan.
-     * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - - public static final int SUB_WORKFLOW_REF_FIELD_NUMBER = 2; - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - /** - *
-     * Reference to a subworkflow, that should be defined with the compiler context
-     * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.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 (referenceCase_ == 1) { - output.writeMessage(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - output.writeMessage(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (referenceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - if (referenceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.IdentifierOuterClass.Identifier) reference_); - } - 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.core.Workflow.WorkflowNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowNode other = (flyteidl.core.Workflow.WorkflowNode) obj; - - if (!getReferenceCase().equals(other.getReferenceCase())) return false; - switch (referenceCase_) { - case 1: - if (!getLaunchplanRef() - .equals(other.getLaunchplanRef())) return false; - break; - case 2: - if (!getSubWorkflowRef() - .equals(other.getSubWorkflowRef())) 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 (referenceCase_) { - case 1: - hash = (37 * hash) + LAUNCHPLAN_REF_FIELD_NUMBER; - hash = (53 * hash) + getLaunchplanRef().hashCode(); - break; - case 2: - hash = (37 * hash) + SUB_WORKFLOW_REF_FIELD_NUMBER; - hash = (53 * hash) + getSubWorkflowRef().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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.core.Workflow.WorkflowNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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.core.Workflow.WorkflowNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowNode 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.core.Workflow.WorkflowNode 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; - } - /** - *
-     * Refers to a the workflow the node is to execute.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowNode) - flyteidl.core.Workflow.WorkflowNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowNode.class, flyteidl.core.Workflow.WorkflowNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowNode.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(); - referenceCase_ = 0; - reference_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode build() { - flyteidl.core.Workflow.WorkflowNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowNode buildPartial() { - flyteidl.core.Workflow.WorkflowNode result = new flyteidl.core.Workflow.WorkflowNode(this); - if (referenceCase_ == 1) { - if (launchplanRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = launchplanRefBuilder_.build(); - } - } - if (referenceCase_ == 2) { - if (subWorkflowRefBuilder_ == null) { - result.reference_ = reference_; - } else { - result.reference_ = subWorkflowRefBuilder_.build(); - } - } - result.referenceCase_ = referenceCase_; - 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.core.Workflow.WorkflowNode) { - return mergeFrom((flyteidl.core.Workflow.WorkflowNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowNode other) { - if (other == flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) return this; - switch (other.getReferenceCase()) { - case LAUNCHPLAN_REF: { - mergeLaunchplanRef(other.getLaunchplanRef()); - break; - } - case SUB_WORKFLOW_REF: { - mergeSubWorkflowRef(other.getSubWorkflowRef()); - break; - } - case REFERENCE_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.core.Workflow.WorkflowNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int referenceCase_ = 0; - private java.lang.Object reference_; - public ReferenceCase - getReferenceCase() { - return ReferenceCase.forNumber( - referenceCase_); - } - - public Builder clearReference() { - referenceCase_ = 0; - reference_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchplanRefBuilder_; - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public boolean hasLaunchplanRef() { - return referenceCase_ == 1; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 1) { - return launchplanRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder setLaunchplanRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchplanRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - launchplanRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder mergeLaunchplanRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 1) { - launchplanRefBuilder_.mergeFrom(value); - } - launchplanRefBuilder_.setMessage(value); - } - referenceCase_ = 1; - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public Builder clearLaunchplanRef() { - if (launchplanRefBuilder_ == null) { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 1) { - referenceCase_ = 0; - reference_ = null; - } - launchplanRefBuilder_.clear(); - } - return this; - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchplanRefBuilder() { - return getLaunchplanRefFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchplanRefOrBuilder() { - if ((referenceCase_ == 1) && (launchplanRefBuilder_ != null)) { - return launchplanRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 1) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * A globally unique identifier for the launch plan.
-       * 
- * - * .flyteidl.core.Identifier launchplan_ref = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchplanRefFieldBuilder() { - if (launchplanRefBuilder_ == null) { - if (!(referenceCase_ == 1)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - launchplanRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 1; - onChanged();; - return launchplanRefBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> subWorkflowRefBuilder_; - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public boolean hasSubWorkflowRef() { - return referenceCase_ == 2; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } else { - if (referenceCase_ == 2) { - return subWorkflowRefBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reference_ = value; - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder setSubWorkflowRef( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (subWorkflowRefBuilder_ == null) { - reference_ = builderForValue.build(); - onChanged(); - } else { - subWorkflowRefBuilder_.setMessage(builderForValue.build()); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder mergeSubWorkflowRef(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2 && - reference_ != flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance()) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.newBuilder((flyteidl.core.IdentifierOuterClass.Identifier) reference_) - .mergeFrom(value).buildPartial(); - } else { - reference_ = value; - } - onChanged(); - } else { - if (referenceCase_ == 2) { - subWorkflowRefBuilder_.mergeFrom(value); - } - subWorkflowRefBuilder_.setMessage(value); - } - referenceCase_ = 2; - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public Builder clearSubWorkflowRef() { - if (subWorkflowRefBuilder_ == null) { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - onChanged(); - } - } else { - if (referenceCase_ == 2) { - referenceCase_ = 0; - reference_ = null; - } - subWorkflowRefBuilder_.clear(); - } - return this; - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getSubWorkflowRefBuilder() { - return getSubWorkflowRefFieldBuilder().getBuilder(); - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getSubWorkflowRefOrBuilder() { - if ((referenceCase_ == 2) && (subWorkflowRefBuilder_ != null)) { - return subWorkflowRefBuilder_.getMessageOrBuilder(); - } else { - if (referenceCase_ == 2) { - return (flyteidl.core.IdentifierOuterClass.Identifier) reference_; - } - return flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - } - /** - *
-       * Reference to a subworkflow, that should be defined with the compiler context
-       * 
- * - * .flyteidl.core.Identifier sub_workflow_ref = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getSubWorkflowRefFieldBuilder() { - if (subWorkflowRefBuilder_ == null) { - if (!(referenceCase_ == 2)) { - reference_ = flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance(); - } - subWorkflowRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.Identifier) reference_, - getParentForChildren(), - isClean()); - reference_ = null; - } - referenceCase_ = 2; - onChanged();; - return subWorkflowRefBuilder_; - } - @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.core.WorkflowNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowNode) - private static final flyteidl.core.Workflow.WorkflowNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowNode(); - } - - public static flyteidl.core.Workflow.WorkflowNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNode(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.core.Workflow.WorkflowNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ApproveConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ApproveCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier for the requested boolean signal.
-     * 
- * - * string signal_id = 1; - */ - java.lang.String getSignalId(); - /** - *
-     * A unique identifier for the requested boolean signal.
-     * 
- * - * string signal_id = 1; - */ - com.google.protobuf.ByteString - getSignalIdBytes(); - } - /** - *
-   * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean
-   * signal with the provided signal_id.
-   * 
- * - * Protobuf type {@code flyteidl.core.ApproveCondition} - */ - public static final class ApproveCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ApproveCondition) - ApproveConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use ApproveCondition.newBuilder() to construct. - private ApproveCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApproveCondition() { - signalId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ApproveCondition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - signalId_ = s; - 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.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.ApproveCondition.class, flyteidl.core.Workflow.ApproveCondition.Builder.class); - } - - public static final int SIGNAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object signalId_; - /** - *
-     * A unique identifier for the requested boolean signal.
-     * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } - } - /** - *
-     * A unique identifier for the requested boolean signal.
-     * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getSignalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); - } - 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.core.Workflow.ApproveCondition)) { - return super.equals(obj); - } - flyteidl.core.Workflow.ApproveCondition other = (flyteidl.core.Workflow.ApproveCondition) obj; - - if (!getSignalId() - .equals(other.getSignalId())) 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(); - hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getSignalId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.ApproveCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ApproveCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ApproveCondition 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.core.Workflow.ApproveCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ApproveCondition 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.core.Workflow.ApproveCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ApproveCondition 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.core.Workflow.ApproveCondition 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; - } - /** - *
-     * ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean
-     * signal with the provided signal_id.
-     * 
- * - * Protobuf type {@code flyteidl.core.ApproveCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ApproveCondition) - flyteidl.core.Workflow.ApproveConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.ApproveCondition.class, flyteidl.core.Workflow.ApproveCondition.Builder.class); - } - - // Construct using flyteidl.core.Workflow.ApproveCondition.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(); - signalId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ApproveCondition_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.ApproveCondition getDefaultInstanceForType() { - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.ApproveCondition build() { - flyteidl.core.Workflow.ApproveCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.ApproveCondition buildPartial() { - flyteidl.core.Workflow.ApproveCondition result = new flyteidl.core.Workflow.ApproveCondition(this); - result.signalId_ = signalId_; - 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.core.Workflow.ApproveCondition) { - return mergeFrom((flyteidl.core.Workflow.ApproveCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.ApproveCondition other) { - if (other == flyteidl.core.Workflow.ApproveCondition.getDefaultInstance()) return this; - if (!other.getSignalId().isEmpty()) { - signalId_ = other.signalId_; - onChanged(); - } - 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.core.Workflow.ApproveCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.ApproveCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signalId_ = ""; - /** - *
-       * A unique identifier for the requested boolean signal.
-       * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A unique identifier for the requested boolean signal.
-       * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A unique identifier for the requested boolean signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signalId_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique identifier for the requested boolean signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder clearSignalId() { - - signalId_ = getDefaultInstance().getSignalId(); - onChanged(); - return this; - } - /** - *
-       * A unique identifier for the requested boolean signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signalId_ = value; - onChanged(); - return this; - } - @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.core.ApproveCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ApproveCondition) - private static final flyteidl.core.Workflow.ApproveCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.ApproveCondition(); - } - - public static flyteidl.core.Workflow.ApproveCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ApproveCondition(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.core.Workflow.ApproveCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SignalConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SignalCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * string signal_id = 1; - */ - java.lang.String getSignalId(); - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * string signal_id = 1; - */ - com.google.protobuf.ByteString - getSignalIdBytes(); - - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - boolean hasType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralType getType(); - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder(); - - /** - *
-     * The variable name for the signal value in this nodes outputs.
-     * 
- * - * string output_variable_name = 3; - */ - java.lang.String getOutputVariableName(); - /** - *
-     * The variable name for the signal value in this nodes outputs.
-     * 
- * - * string output_variable_name = 3; - */ - com.google.protobuf.ByteString - getOutputVariableNameBytes(); - } - /** - *
-   * SignalCondition represents a dependency on an signal.
-   * 
- * - * Protobuf type {@code flyteidl.core.SignalCondition} - */ - public static final class SignalCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SignalCondition) - SignalConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use SignalCondition.newBuilder() to construct. - private SignalCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignalCondition() { - signalId_ = ""; - outputVariableName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignalCondition( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - signalId_ = s; - break; - } - case 18: { - flyteidl.core.Types.LiteralType.Builder subBuilder = null; - if (type_ != null) { - subBuilder = type_.toBuilder(); - } - type_ = input.readMessage(flyteidl.core.Types.LiteralType.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(type_); - type_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputVariableName_ = s; - 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.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.SignalCondition.class, flyteidl.core.Workflow.SignalCondition.Builder.class); - } - - public static final int SIGNAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object signalId_; - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } - } - /** - *
-     * A unique identifier for the requested signal.
-     * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private flyteidl.core.Types.LiteralType type_; - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return type_ != null; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - /** - *
-     * A type denoting the required value type for this signal.
-     * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - return getType(); - } - - public static final int OUTPUT_VARIABLE_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object outputVariableName_; - /** - *
-     * The variable name for the signal value in this nodes outputs.
-     * 
- * - * string output_variable_name = 3; - */ - public java.lang.String getOutputVariableName() { - java.lang.Object ref = outputVariableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputVariableName_ = s; - return s; - } - } - /** - *
-     * The variable name for the signal value in this nodes outputs.
-     * 
- * - * string output_variable_name = 3; - */ - public com.google.protobuf.ByteString - getOutputVariableNameBytes() { - java.lang.Object ref = outputVariableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputVariableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getSignalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signalId_); - } - if (type_ != null) { - output.writeMessage(2, getType()); - } - if (!getOutputVariableNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputVariableName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signalId_); - } - if (type_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getType()); - } - if (!getOutputVariableNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputVariableName_); - } - 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.core.Workflow.SignalCondition)) { - return super.equals(obj); - } - flyteidl.core.Workflow.SignalCondition other = (flyteidl.core.Workflow.SignalCondition) obj; - - if (!getSignalId() - .equals(other.getSignalId())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType() - .equals(other.getType())) return false; - } - if (!getOutputVariableName() - .equals(other.getOutputVariableName())) 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(); - hash = (37 * hash) + SIGNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getSignalId().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + OUTPUT_VARIABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getOutputVariableName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.SignalCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SignalCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SignalCondition 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.core.Workflow.SignalCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SignalCondition 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.core.Workflow.SignalCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SignalCondition 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.core.Workflow.SignalCondition 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; - } - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * Protobuf type {@code flyteidl.core.SignalCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SignalCondition) - flyteidl.core.Workflow.SignalConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.SignalCondition.class, flyteidl.core.Workflow.SignalCondition.Builder.class); - } - - // Construct using flyteidl.core.Workflow.SignalCondition.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(); - signalId_ = ""; - - if (typeBuilder_ == null) { - type_ = null; - } else { - type_ = null; - typeBuilder_ = null; - } - outputVariableName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SignalCondition_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.SignalCondition getDefaultInstanceForType() { - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.SignalCondition build() { - flyteidl.core.Workflow.SignalCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.SignalCondition buildPartial() { - flyteidl.core.Workflow.SignalCondition result = new flyteidl.core.Workflow.SignalCondition(this); - result.signalId_ = signalId_; - if (typeBuilder_ == null) { - result.type_ = type_; - } else { - result.type_ = typeBuilder_.build(); - } - result.outputVariableName_ = outputVariableName_; - 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.core.Workflow.SignalCondition) { - return mergeFrom((flyteidl.core.Workflow.SignalCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.SignalCondition other) { - if (other == flyteidl.core.Workflow.SignalCondition.getDefaultInstance()) return this; - if (!other.getSignalId().isEmpty()) { - signalId_ = other.signalId_; - onChanged(); - } - if (other.hasType()) { - mergeType(other.getType()); - } - if (!other.getOutputVariableName().isEmpty()) { - outputVariableName_ = other.outputVariableName_; - onChanged(); - } - 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.core.Workflow.SignalCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.SignalCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signalId_ = ""; - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * string signal_id = 1; - */ - public java.lang.String getSignalId() { - java.lang.Object ref = signalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * string signal_id = 1; - */ - public com.google.protobuf.ByteString - getSignalIdBytes() { - java.lang.Object ref = signalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signalId_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder clearSignalId() { - - signalId_ = getDefaultInstance().getSignalId(); - onChanged(); - return this; - } - /** - *
-       * A unique identifier for the requested signal.
-       * 
- * - * string signal_id = 1; - */ - public Builder setSignalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signalId_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Types.LiteralType type_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> typeBuilder_; - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public boolean hasType() { - return typeBuilder_ != null || type_ != null; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType getType() { - if (typeBuilder_ == null) { - return type_ == null ? flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } else { - return typeBuilder_.getMessage(); - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - onChanged(); - } else { - typeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder setType( - flyteidl.core.Types.LiteralType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - onChanged(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder mergeType(flyteidl.core.Types.LiteralType value) { - if (typeBuilder_ == null) { - if (type_ != null) { - type_ = - flyteidl.core.Types.LiteralType.newBuilder(type_).mergeFrom(value).buildPartial(); - } else { - type_ = value; - } - onChanged(); - } else { - typeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public Builder clearType() { - if (typeBuilder_ == null) { - type_ = null; - onChanged(); - } else { - type_ = null; - typeBuilder_ = null; - } - - return this; - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralType.Builder getTypeBuilder() { - - onChanged(); - return getTypeFieldBuilder().getBuilder(); - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - public flyteidl.core.Types.LiteralTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null ? - flyteidl.core.Types.LiteralType.getDefaultInstance() : type_; - } - } - /** - *
-       * A type denoting the required value type for this signal.
-       * 
- * - * .flyteidl.core.LiteralType type = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder> - getTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Types.LiteralType, flyteidl.core.Types.LiteralType.Builder, flyteidl.core.Types.LiteralTypeOrBuilder>( - getType(), - getParentForChildren(), - isClean()); - type_ = null; - } - return typeBuilder_; - } - - private java.lang.Object outputVariableName_ = ""; - /** - *
-       * The variable name for the signal value in this nodes outputs.
-       * 
- * - * string output_variable_name = 3; - */ - public java.lang.String getOutputVariableName() { - java.lang.Object ref = outputVariableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputVariableName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The variable name for the signal value in this nodes outputs.
-       * 
- * - * string output_variable_name = 3; - */ - public com.google.protobuf.ByteString - getOutputVariableNameBytes() { - java.lang.Object ref = outputVariableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputVariableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The variable name for the signal value in this nodes outputs.
-       * 
- * - * string output_variable_name = 3; - */ - public Builder setOutputVariableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputVariableName_ = value; - onChanged(); - return this; - } - /** - *
-       * The variable name for the signal value in this nodes outputs.
-       * 
- * - * string output_variable_name = 3; - */ - public Builder clearOutputVariableName() { - - outputVariableName_ = getDefaultInstance().getOutputVariableName(); - onChanged(); - return this; - } - /** - *
-       * The variable name for the signal value in this nodes outputs.
-       * 
- * - * string output_variable_name = 3; - */ - public Builder setOutputVariableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputVariableName_ = value; - onChanged(); - return this; - } - @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.core.SignalCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SignalCondition) - private static final flyteidl.core.Workflow.SignalCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.SignalCondition(); - } - - public static flyteidl.core.Workflow.SignalCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignalCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignalCondition(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.core.Workflow.SignalCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SleepConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.SleepCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - boolean hasDuration(); - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - com.google.protobuf.Duration getDuration(); - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); - } - /** - *
-   * SleepCondition represents a dependency on waiting for the specified duration.
-   * 
- * - * Protobuf type {@code flyteidl.core.SleepCondition} - */ - public static final class SleepCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.SleepCondition) - SleepConditionOrBuilder { - private static final long serialVersionUID = 0L; - // Use SleepCondition.newBuilder() to construct. - private SleepCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SleepCondition() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SleepCondition( - 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: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (duration_ != null) { - subBuilder = duration_.toBuilder(); - } - duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(duration_); - duration_ = 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.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.SleepCondition.class, flyteidl.core.Workflow.SleepCondition.Builder.class); - } - - public static final int DURATION_FIELD_NUMBER = 1; - private com.google.protobuf.Duration duration_; - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - public boolean hasDuration() { - return duration_ != null; - } - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - public com.google.protobuf.Duration getDuration() { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - /** - *
-     * The overall duration for this sleep.
-     * 
- * - * .google.protobuf.Duration duration = 1; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - return getDuration(); - } - - 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 (duration_ != null) { - output.writeMessage(1, getDuration()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (duration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDuration()); - } - 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.core.Workflow.SleepCondition)) { - return super.equals(obj); - } - flyteidl.core.Workflow.SleepCondition other = (flyteidl.core.Workflow.SleepCondition) obj; - - if (hasDuration() != other.hasDuration()) return false; - if (hasDuration()) { - if (!getDuration() - .equals(other.getDuration())) 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 (hasDuration()) { - hash = (37 * hash) + DURATION_FIELD_NUMBER; - hash = (53 * hash) + getDuration().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.SleepCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.SleepCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SleepCondition 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.core.Workflow.SleepCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SleepCondition 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.core.Workflow.SleepCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.SleepCondition 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.core.Workflow.SleepCondition 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; - } - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * Protobuf type {@code flyteidl.core.SleepCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.SleepCondition) - flyteidl.core.Workflow.SleepConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.SleepCondition.class, flyteidl.core.Workflow.SleepCondition.Builder.class); - } - - // Construct using flyteidl.core.Workflow.SleepCondition.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 (durationBuilder_ == null) { - duration_ = null; - } else { - duration_ = null; - durationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_SleepCondition_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.SleepCondition getDefaultInstanceForType() { - return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.SleepCondition build() { - flyteidl.core.Workflow.SleepCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.SleepCondition buildPartial() { - flyteidl.core.Workflow.SleepCondition result = new flyteidl.core.Workflow.SleepCondition(this); - if (durationBuilder_ == null) { - result.duration_ = duration_; - } else { - result.duration_ = durationBuilder_.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.core.Workflow.SleepCondition) { - return mergeFrom((flyteidl.core.Workflow.SleepCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.SleepCondition other) { - if (other == flyteidl.core.Workflow.SleepCondition.getDefaultInstance()) return this; - if (other.hasDuration()) { - mergeDuration(other.getDuration()); - } - 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.core.Workflow.SleepCondition parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.SleepCondition) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.protobuf.Duration duration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public boolean hasDuration() { - return durationBuilder_ != null || duration_ != null; - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public com.google.protobuf.Duration getDuration() { - if (durationBuilder_ == null) { - return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; - } else { - return durationBuilder_.getMessage(); - } - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public Builder setDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - duration_ = value; - onChanged(); - } else { - durationBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public Builder setDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (durationBuilder_ == null) { - duration_ = builderForValue.build(); - onChanged(); - } else { - durationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public Builder mergeDuration(com.google.protobuf.Duration value) { - if (durationBuilder_ == null) { - if (duration_ != null) { - duration_ = - com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); - } else { - duration_ = value; - } - onChanged(); - } else { - durationBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public Builder clearDuration() { - if (durationBuilder_ == null) { - duration_ = null; - onChanged(); - } else { - duration_ = null; - durationBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public com.google.protobuf.Duration.Builder getDurationBuilder() { - - onChanged(); - return getDurationFieldBuilder().getBuilder(); - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { - if (durationBuilder_ != null) { - return durationBuilder_.getMessageOrBuilder(); - } else { - return duration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : duration_; - } - } - /** - *
-       * The overall duration for this sleep.
-       * 
- * - * .google.protobuf.Duration duration = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getDurationFieldBuilder() { - if (durationBuilder_ == null) { - durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getDuration(), - getParentForChildren(), - isClean()); - duration_ = null; - } - return durationBuilder_; - } - @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.core.SleepCondition) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.SleepCondition) - private static final flyteidl.core.Workflow.SleepCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.SleepCondition(); - } - - public static flyteidl.core.Workflow.SleepCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SleepCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SleepCondition(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.core.Workflow.SleepCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GateNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.GateNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - boolean hasApprove(); - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - flyteidl.core.Workflow.ApproveCondition getApprove(); - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder(); - - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - boolean hasSignal(); - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - flyteidl.core.Workflow.SignalCondition getSignal(); - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder(); - - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - boolean hasSleep(); - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - flyteidl.core.Workflow.SleepCondition getSleep(); - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder(); - - public flyteidl.core.Workflow.GateNode.ConditionCase getConditionCase(); - } - /** - *
-   * GateNode refers to the condition that is required for the gate to successfully complete.
-   * 
- * - * Protobuf type {@code flyteidl.core.GateNode} - */ - public static final class GateNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.GateNode) - GateNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use GateNode.newBuilder() to construct. - private GateNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GateNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GateNode( - 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.Workflow.ApproveCondition.Builder subBuilder = null; - if (conditionCase_ == 1) { - subBuilder = ((flyteidl.core.Workflow.ApproveCondition) condition_).toBuilder(); - } - condition_ = - input.readMessage(flyteidl.core.Workflow.ApproveCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.ApproveCondition) condition_); - condition_ = subBuilder.buildPartial(); - } - conditionCase_ = 1; - break; - } - case 18: { - flyteidl.core.Workflow.SignalCondition.Builder subBuilder = null; - if (conditionCase_ == 2) { - subBuilder = ((flyteidl.core.Workflow.SignalCondition) condition_).toBuilder(); - } - condition_ = - input.readMessage(flyteidl.core.Workflow.SignalCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.SignalCondition) condition_); - condition_ = subBuilder.buildPartial(); - } - conditionCase_ = 2; - break; - } - case 26: { - flyteidl.core.Workflow.SleepCondition.Builder subBuilder = null; - if (conditionCase_ == 3) { - subBuilder = ((flyteidl.core.Workflow.SleepCondition) condition_).toBuilder(); - } - condition_ = - input.readMessage(flyteidl.core.Workflow.SleepCondition.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.SleepCondition) condition_); - condition_ = subBuilder.buildPartial(); - } - conditionCase_ = 3; - 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.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.GateNode.class, flyteidl.core.Workflow.GateNode.Builder.class); - } - - private int conditionCase_ = 0; - private java.lang.Object condition_; - public enum ConditionCase - implements com.google.protobuf.Internal.EnumLite { - APPROVE(1), - SIGNAL(2), - SLEEP(3), - CONDITION_NOT_SET(0); - private final int value; - private ConditionCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConditionCase valueOf(int value) { - return forNumber(value); - } - - public static ConditionCase forNumber(int value) { - switch (value) { - case 1: return APPROVE; - case 2: return SIGNAL; - case 3: return SLEEP; - case 0: return CONDITION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ConditionCase - getConditionCase() { - return ConditionCase.forNumber( - conditionCase_); - } - - public static final int APPROVE_FIELD_NUMBER = 1; - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public boolean hasApprove() { - return conditionCase_ == 1; - } - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public flyteidl.core.Workflow.ApproveCondition getApprove() { - if (conditionCase_ == 1) { - return (flyteidl.core.Workflow.ApproveCondition) condition_; - } - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - /** - *
-     * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-     * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder() { - if (conditionCase_ == 1) { - return (flyteidl.core.Workflow.ApproveCondition) condition_; - } - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - - public static final int SIGNAL_FIELD_NUMBER = 2; - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public boolean hasSignal() { - return conditionCase_ == 2; - } - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public flyteidl.core.Workflow.SignalCondition getSignal() { - if (conditionCase_ == 2) { - return (flyteidl.core.Workflow.SignalCondition) condition_; - } - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - /** - *
-     * SignalCondition represents a dependency on an signal.
-     * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder() { - if (conditionCase_ == 2) { - return (flyteidl.core.Workflow.SignalCondition) condition_; - } - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - - public static final int SLEEP_FIELD_NUMBER = 3; - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public boolean hasSleep() { - return conditionCase_ == 3; - } - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public flyteidl.core.Workflow.SleepCondition getSleep() { - if (conditionCase_ == 3) { - return (flyteidl.core.Workflow.SleepCondition) condition_; - } - return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } - /** - *
-     * SleepCondition represents a dependency on waiting for the specified duration.
-     * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder() { - if (conditionCase_ == 3) { - return (flyteidl.core.Workflow.SleepCondition) condition_; - } - return flyteidl.core.Workflow.SleepCondition.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 (conditionCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Workflow.ApproveCondition) condition_); - } - if (conditionCase_ == 2) { - output.writeMessage(2, (flyteidl.core.Workflow.SignalCondition) condition_); - } - if (conditionCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Workflow.SleepCondition) condition_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conditionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Workflow.ApproveCondition) condition_); - } - if (conditionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.core.Workflow.SignalCondition) condition_); - } - if (conditionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Workflow.SleepCondition) condition_); - } - 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.core.Workflow.GateNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.GateNode other = (flyteidl.core.Workflow.GateNode) obj; - - if (!getConditionCase().equals(other.getConditionCase())) return false; - switch (conditionCase_) { - case 1: - if (!getApprove() - .equals(other.getApprove())) return false; - break; - case 2: - if (!getSignal() - .equals(other.getSignal())) return false; - break; - case 3: - if (!getSleep() - .equals(other.getSleep())) 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 (conditionCase_) { - case 1: - hash = (37 * hash) + APPROVE_FIELD_NUMBER; - hash = (53 * hash) + getApprove().hashCode(); - break; - case 2: - hash = (37 * hash) + SIGNAL_FIELD_NUMBER; - hash = (53 * hash) + getSignal().hashCode(); - break; - case 3: - hash = (37 * hash) + SLEEP_FIELD_NUMBER; - hash = (53 * hash) + getSleep().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.GateNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.GateNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.GateNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.GateNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.GateNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.GateNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.GateNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.GateNode 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.core.Workflow.GateNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.GateNode 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.core.Workflow.GateNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.GateNode 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.core.Workflow.GateNode 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; - } - /** - *
-     * GateNode refers to the condition that is required for the gate to successfully complete.
-     * 
- * - * Protobuf type {@code flyteidl.core.GateNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.GateNode) - flyteidl.core.Workflow.GateNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.GateNode.class, flyteidl.core.Workflow.GateNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.GateNode.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(); - conditionCase_ = 0; - condition_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_GateNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.GateNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.GateNode build() { - flyteidl.core.Workflow.GateNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.GateNode buildPartial() { - flyteidl.core.Workflow.GateNode result = new flyteidl.core.Workflow.GateNode(this); - if (conditionCase_ == 1) { - if (approveBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = approveBuilder_.build(); - } - } - if (conditionCase_ == 2) { - if (signalBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = signalBuilder_.build(); - } - } - if (conditionCase_ == 3) { - if (sleepBuilder_ == null) { - result.condition_ = condition_; - } else { - result.condition_ = sleepBuilder_.build(); - } - } - result.conditionCase_ = conditionCase_; - 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.core.Workflow.GateNode) { - return mergeFrom((flyteidl.core.Workflow.GateNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.GateNode other) { - if (other == flyteidl.core.Workflow.GateNode.getDefaultInstance()) return this; - switch (other.getConditionCase()) { - case APPROVE: { - mergeApprove(other.getApprove()); - break; - } - case SIGNAL: { - mergeSignal(other.getSignal()); - break; - } - case SLEEP: { - mergeSleep(other.getSleep()); - break; - } - case CONDITION_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.core.Workflow.GateNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.GateNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int conditionCase_ = 0; - private java.lang.Object condition_; - public ConditionCase - getConditionCase() { - return ConditionCase.forNumber( - conditionCase_); - } - - public Builder clearCondition() { - conditionCase_ = 0; - condition_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder> approveBuilder_; - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public boolean hasApprove() { - return conditionCase_ == 1; - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public flyteidl.core.Workflow.ApproveCondition getApprove() { - if (approveBuilder_ == null) { - if (conditionCase_ == 1) { - return (flyteidl.core.Workflow.ApproveCondition) condition_; - } - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } else { - if (conditionCase_ == 1) { - return approveBuilder_.getMessage(); - } - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public Builder setApprove(flyteidl.core.Workflow.ApproveCondition value) { - if (approveBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - approveBuilder_.setMessage(value); - } - conditionCase_ = 1; - return this; - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public Builder setApprove( - flyteidl.core.Workflow.ApproveCondition.Builder builderForValue) { - if (approveBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - approveBuilder_.setMessage(builderForValue.build()); - } - conditionCase_ = 1; - return this; - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public Builder mergeApprove(flyteidl.core.Workflow.ApproveCondition value) { - if (approveBuilder_ == null) { - if (conditionCase_ == 1 && - condition_ != flyteidl.core.Workflow.ApproveCondition.getDefaultInstance()) { - condition_ = flyteidl.core.Workflow.ApproveCondition.newBuilder((flyteidl.core.Workflow.ApproveCondition) condition_) - .mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - if (conditionCase_ == 1) { - approveBuilder_.mergeFrom(value); - } - approveBuilder_.setMessage(value); - } - conditionCase_ = 1; - return this; - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public Builder clearApprove() { - if (approveBuilder_ == null) { - if (conditionCase_ == 1) { - conditionCase_ = 0; - condition_ = null; - onChanged(); - } - } else { - if (conditionCase_ == 1) { - conditionCase_ = 0; - condition_ = null; - } - approveBuilder_.clear(); - } - return this; - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public flyteidl.core.Workflow.ApproveCondition.Builder getApproveBuilder() { - return getApproveFieldBuilder().getBuilder(); - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - public flyteidl.core.Workflow.ApproveConditionOrBuilder getApproveOrBuilder() { - if ((conditionCase_ == 1) && (approveBuilder_ != null)) { - return approveBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 1) { - return (flyteidl.core.Workflow.ApproveCondition) condition_; - } - return flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - } - /** - *
-       * ApproveCondition represents a dependency on an external approval provided by a boolean signal.
-       * 
- * - * .flyteidl.core.ApproveCondition approve = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder> - getApproveFieldBuilder() { - if (approveBuilder_ == null) { - if (!(conditionCase_ == 1)) { - condition_ = flyteidl.core.Workflow.ApproveCondition.getDefaultInstance(); - } - approveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ApproveCondition, flyteidl.core.Workflow.ApproveCondition.Builder, flyteidl.core.Workflow.ApproveConditionOrBuilder>( - (flyteidl.core.Workflow.ApproveCondition) condition_, - getParentForChildren(), - isClean()); - condition_ = null; - } - conditionCase_ = 1; - onChanged();; - return approveBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder> signalBuilder_; - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public boolean hasSignal() { - return conditionCase_ == 2; - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public flyteidl.core.Workflow.SignalCondition getSignal() { - if (signalBuilder_ == null) { - if (conditionCase_ == 2) { - return (flyteidl.core.Workflow.SignalCondition) condition_; - } - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } else { - if (conditionCase_ == 2) { - return signalBuilder_.getMessage(); - } - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public Builder setSignal(flyteidl.core.Workflow.SignalCondition value) { - if (signalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - signalBuilder_.setMessage(value); - } - conditionCase_ = 2; - return this; - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public Builder setSignal( - flyteidl.core.Workflow.SignalCondition.Builder builderForValue) { - if (signalBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - signalBuilder_.setMessage(builderForValue.build()); - } - conditionCase_ = 2; - return this; - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public Builder mergeSignal(flyteidl.core.Workflow.SignalCondition value) { - if (signalBuilder_ == null) { - if (conditionCase_ == 2 && - condition_ != flyteidl.core.Workflow.SignalCondition.getDefaultInstance()) { - condition_ = flyteidl.core.Workflow.SignalCondition.newBuilder((flyteidl.core.Workflow.SignalCondition) condition_) - .mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - if (conditionCase_ == 2) { - signalBuilder_.mergeFrom(value); - } - signalBuilder_.setMessage(value); - } - conditionCase_ = 2; - return this; - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public Builder clearSignal() { - if (signalBuilder_ == null) { - if (conditionCase_ == 2) { - conditionCase_ = 0; - condition_ = null; - onChanged(); - } - } else { - if (conditionCase_ == 2) { - conditionCase_ = 0; - condition_ = null; - } - signalBuilder_.clear(); - } - return this; - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public flyteidl.core.Workflow.SignalCondition.Builder getSignalBuilder() { - return getSignalFieldBuilder().getBuilder(); - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - public flyteidl.core.Workflow.SignalConditionOrBuilder getSignalOrBuilder() { - if ((conditionCase_ == 2) && (signalBuilder_ != null)) { - return signalBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 2) { - return (flyteidl.core.Workflow.SignalCondition) condition_; - } - return flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - } - /** - *
-       * SignalCondition represents a dependency on an signal.
-       * 
- * - * .flyteidl.core.SignalCondition signal = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder> - getSignalFieldBuilder() { - if (signalBuilder_ == null) { - if (!(conditionCase_ == 2)) { - condition_ = flyteidl.core.Workflow.SignalCondition.getDefaultInstance(); - } - signalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SignalCondition, flyteidl.core.Workflow.SignalCondition.Builder, flyteidl.core.Workflow.SignalConditionOrBuilder>( - (flyteidl.core.Workflow.SignalCondition) condition_, - getParentForChildren(), - isClean()); - condition_ = null; - } - conditionCase_ = 2; - onChanged();; - return signalBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder> sleepBuilder_; - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public boolean hasSleep() { - return conditionCase_ == 3; - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public flyteidl.core.Workflow.SleepCondition getSleep() { - if (sleepBuilder_ == null) { - if (conditionCase_ == 3) { - return (flyteidl.core.Workflow.SleepCondition) condition_; - } - return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } else { - if (conditionCase_ == 3) { - return sleepBuilder_.getMessage(); - } - return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public Builder setSleep(flyteidl.core.Workflow.SleepCondition value) { - if (sleepBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - condition_ = value; - onChanged(); - } else { - sleepBuilder_.setMessage(value); - } - conditionCase_ = 3; - return this; - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public Builder setSleep( - flyteidl.core.Workflow.SleepCondition.Builder builderForValue) { - if (sleepBuilder_ == null) { - condition_ = builderForValue.build(); - onChanged(); - } else { - sleepBuilder_.setMessage(builderForValue.build()); - } - conditionCase_ = 3; - return this; - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public Builder mergeSleep(flyteidl.core.Workflow.SleepCondition value) { - if (sleepBuilder_ == null) { - if (conditionCase_ == 3 && - condition_ != flyteidl.core.Workflow.SleepCondition.getDefaultInstance()) { - condition_ = flyteidl.core.Workflow.SleepCondition.newBuilder((flyteidl.core.Workflow.SleepCondition) condition_) - .mergeFrom(value).buildPartial(); - } else { - condition_ = value; - } - onChanged(); - } else { - if (conditionCase_ == 3) { - sleepBuilder_.mergeFrom(value); - } - sleepBuilder_.setMessage(value); - } - conditionCase_ = 3; - return this; - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public Builder clearSleep() { - if (sleepBuilder_ == null) { - if (conditionCase_ == 3) { - conditionCase_ = 0; - condition_ = null; - onChanged(); - } - } else { - if (conditionCase_ == 3) { - conditionCase_ = 0; - condition_ = null; - } - sleepBuilder_.clear(); - } - return this; - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public flyteidl.core.Workflow.SleepCondition.Builder getSleepBuilder() { - return getSleepFieldBuilder().getBuilder(); - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - public flyteidl.core.Workflow.SleepConditionOrBuilder getSleepOrBuilder() { - if ((conditionCase_ == 3) && (sleepBuilder_ != null)) { - return sleepBuilder_.getMessageOrBuilder(); - } else { - if (conditionCase_ == 3) { - return (flyteidl.core.Workflow.SleepCondition) condition_; - } - return flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } - } - /** - *
-       * SleepCondition represents a dependency on waiting for the specified duration.
-       * 
- * - * .flyteidl.core.SleepCondition sleep = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder> - getSleepFieldBuilder() { - if (sleepBuilder_ == null) { - if (!(conditionCase_ == 3)) { - condition_ = flyteidl.core.Workflow.SleepCondition.getDefaultInstance(); - } - sleepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.SleepCondition, flyteidl.core.Workflow.SleepCondition.Builder, flyteidl.core.Workflow.SleepConditionOrBuilder>( - (flyteidl.core.Workflow.SleepCondition) condition_, - getParentForChildren(), - isClean()); - condition_ = null; - } - conditionCase_ = 3; - onChanged();; - return sleepBuilder_; - } - @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.core.GateNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.GateNode) - private static final flyteidl.core.Workflow.GateNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.GateNode(); - } - - public static flyteidl.core.Workflow.GateNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GateNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GateNode(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.core.Workflow.GateNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ArrayNodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.ArrayNode) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - boolean hasNode(); - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - flyteidl.core.Workflow.Node getNode(); - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder(); - - /** - *
-     * parallelism defines the minimum number of instances to bring up concurrently at any given
-     * point. Note that this is an optimistic restriction and that, due to network partitioning or
-     * other failures, the actual number of currently running instances might be more. This has to
-     * be a positive number if assigned. Default value is size.
-     * 
- * - * uint32 parallelism = 2; - */ - int getParallelism(); - - /** - *
-     * min_successes is an absolute number of the minimum number of successful completions of
-     * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
-     * and outputs will be computed. This has to be a non-negative number if assigned. Default
-     * value is size (if specified).
-     * 
- * - * uint32 min_successes = 3; - */ - int getMinSuccesses(); - - /** - *
-     * If the array job size is not known beforehand, the min_success_ratio can instead be used
-     * to determine when an ArrayNode can be marked successful.
-     * 
- * - * float min_success_ratio = 4; - */ - float getMinSuccessRatio(); - - public flyteidl.core.Workflow.ArrayNode.SuccessCriteriaCase getSuccessCriteriaCase(); - } - /** - *
-   * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input
-   * values. An ArrayNode can be executed with configurable parallelism (separate from the parent
-   * workflow) and can be configured to succeed when a certain number of sub-nodes succeed.
-   * 
- * - * Protobuf type {@code flyteidl.core.ArrayNode} - */ - public static final class ArrayNode extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.ArrayNode) - ArrayNodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArrayNode.newBuilder() to construct. - private ArrayNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArrayNode() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArrayNode( - 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.Workflow.Node.Builder subBuilder = null; - if (node_ != null) { - subBuilder = node_.toBuilder(); - } - node_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(node_); - node_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - - parallelism_ = input.readUInt32(); - break; - } - case 24: { - successCriteriaCase_ = 3; - successCriteria_ = input.readUInt32(); - break; - } - case 37: { - successCriteriaCase_ = 4; - successCriteria_ = input.readFloat(); - 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.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.ArrayNode.class, flyteidl.core.Workflow.ArrayNode.Builder.class); - } - - private int successCriteriaCase_ = 0; - private java.lang.Object successCriteria_; - public enum SuccessCriteriaCase - implements com.google.protobuf.Internal.EnumLite { - MIN_SUCCESSES(3), - MIN_SUCCESS_RATIO(4), - SUCCESSCRITERIA_NOT_SET(0); - private final int value; - private SuccessCriteriaCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SuccessCriteriaCase valueOf(int value) { - return forNumber(value); - } - - public static SuccessCriteriaCase forNumber(int value) { - switch (value) { - case 3: return MIN_SUCCESSES; - case 4: return MIN_SUCCESS_RATIO; - case 0: return SUCCESSCRITERIA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SuccessCriteriaCase - getSuccessCriteriaCase() { - return SuccessCriteriaCase.forNumber( - successCriteriaCase_); - } - - public static final int NODE_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.Node node_; - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - public boolean hasNode() { - return node_ != null; - } - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - public flyteidl.core.Workflow.Node getNode() { - return node_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : node_; - } - /** - *
-     * node is the sub-node that will be executed for each element in the array.
-     * 
- * - * .flyteidl.core.Node node = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder() { - return getNode(); - } - - public static final int PARALLELISM_FIELD_NUMBER = 2; - private int parallelism_; - /** - *
-     * parallelism defines the minimum number of instances to bring up concurrently at any given
-     * point. Note that this is an optimistic restriction and that, due to network partitioning or
-     * other failures, the actual number of currently running instances might be more. This has to
-     * be a positive number if assigned. Default value is size.
-     * 
- * - * uint32 parallelism = 2; - */ - public int getParallelism() { - return parallelism_; - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; - /** - *
-     * min_successes is an absolute number of the minimum number of successful completions of
-     * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
-     * and outputs will be computed. This has to be a non-negative number if assigned. Default
-     * value is size (if specified).
-     * 
- * - * uint32 min_successes = 3; - */ - public int getMinSuccesses() { - if (successCriteriaCase_ == 3) { - return (java.lang.Integer) successCriteria_; - } - return 0; - } - - public static final int MIN_SUCCESS_RATIO_FIELD_NUMBER = 4; - /** - *
-     * If the array job size is not known beforehand, the min_success_ratio can instead be used
-     * to determine when an ArrayNode can be marked successful.
-     * 
- * - * float min_success_ratio = 4; - */ - public float getMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - return (java.lang.Float) successCriteria_; - } - return 0F; - } - - 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 (node_ != null) { - output.writeMessage(1, getNode()); - } - if (parallelism_ != 0) { - output.writeUInt32(2, parallelism_); - } - if (successCriteriaCase_ == 3) { - output.writeUInt32( - 3, (int)((java.lang.Integer) successCriteria_)); - } - if (successCriteriaCase_ == 4) { - output.writeFloat( - 4, (float)((java.lang.Float) successCriteria_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (node_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNode()); - } - if (parallelism_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, parallelism_); - } - if (successCriteriaCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size( - 3, (int)((java.lang.Integer) successCriteria_)); - } - if (successCriteriaCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 4, (float)((java.lang.Float) successCriteria_)); - } - 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.core.Workflow.ArrayNode)) { - return super.equals(obj); - } - flyteidl.core.Workflow.ArrayNode other = (flyteidl.core.Workflow.ArrayNode) obj; - - if (hasNode() != other.hasNode()) return false; - if (hasNode()) { - if (!getNode() - .equals(other.getNode())) return false; - } - if (getParallelism() - != other.getParallelism()) return false; - if (!getSuccessCriteriaCase().equals(other.getSuccessCriteriaCase())) return false; - switch (successCriteriaCase_) { - case 3: - if (getMinSuccesses() - != other.getMinSuccesses()) return false; - break; - case 4: - if (java.lang.Float.floatToIntBits(getMinSuccessRatio()) - != java.lang.Float.floatToIntBits( - other.getMinSuccessRatio())) 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(); - if (hasNode()) { - hash = (37 * hash) + NODE_FIELD_NUMBER; - hash = (53 * hash) + getNode().hashCode(); - } - hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + getParallelism(); - switch (successCriteriaCase_) { - case 3: - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + getMinSuccesses(); - break; - case 4: - hash = (37 * hash) + MIN_SUCCESS_RATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMinSuccessRatio()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.ArrayNode parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.ArrayNode parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ArrayNode 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.core.Workflow.ArrayNode parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ArrayNode 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.core.Workflow.ArrayNode parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.ArrayNode 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.core.Workflow.ArrayNode 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; - } - /** - *
-     * ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input
-     * values. An ArrayNode can be executed with configurable parallelism (separate from the parent
-     * workflow) and can be configured to succeed when a certain number of sub-nodes succeed.
-     * 
- * - * Protobuf type {@code flyteidl.core.ArrayNode} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.ArrayNode) - flyteidl.core.Workflow.ArrayNodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.ArrayNode.class, flyteidl.core.Workflow.ArrayNode.Builder.class); - } - - // Construct using flyteidl.core.Workflow.ArrayNode.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 (nodeBuilder_ == null) { - node_ = null; - } else { - node_ = null; - nodeBuilder_ = null; - } - parallelism_ = 0; - - successCriteriaCase_ = 0; - successCriteria_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_ArrayNode_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.ArrayNode getDefaultInstanceForType() { - return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.ArrayNode build() { - flyteidl.core.Workflow.ArrayNode result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.ArrayNode buildPartial() { - flyteidl.core.Workflow.ArrayNode result = new flyteidl.core.Workflow.ArrayNode(this); - if (nodeBuilder_ == null) { - result.node_ = node_; - } else { - result.node_ = nodeBuilder_.build(); - } - result.parallelism_ = parallelism_; - if (successCriteriaCase_ == 3) { - result.successCriteria_ = successCriteria_; - } - if (successCriteriaCase_ == 4) { - result.successCriteria_ = successCriteria_; - } - result.successCriteriaCase_ = successCriteriaCase_; - 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.core.Workflow.ArrayNode) { - return mergeFrom((flyteidl.core.Workflow.ArrayNode)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.ArrayNode other) { - if (other == flyteidl.core.Workflow.ArrayNode.getDefaultInstance()) return this; - if (other.hasNode()) { - mergeNode(other.getNode()); - } - if (other.getParallelism() != 0) { - setParallelism(other.getParallelism()); - } - switch (other.getSuccessCriteriaCase()) { - case MIN_SUCCESSES: { - setMinSuccesses(other.getMinSuccesses()); - break; - } - case MIN_SUCCESS_RATIO: { - setMinSuccessRatio(other.getMinSuccessRatio()); - break; - } - case SUCCESSCRITERIA_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.core.Workflow.ArrayNode parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.ArrayNode) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int successCriteriaCase_ = 0; - private java.lang.Object successCriteria_; - public SuccessCriteriaCase - getSuccessCriteriaCase() { - return SuccessCriteriaCase.forNumber( - successCriteriaCase_); - } - - public Builder clearSuccessCriteria() { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.Workflow.Node node_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodeBuilder_; - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public boolean hasNode() { - return nodeBuilder_ != null || node_ != null; - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public flyteidl.core.Workflow.Node getNode() { - if (nodeBuilder_ == null) { - return node_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : node_; - } else { - return nodeBuilder_.getMessage(); - } - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public Builder setNode(flyteidl.core.Workflow.Node value) { - if (nodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - node_ = value; - onChanged(); - } else { - nodeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public Builder setNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodeBuilder_ == null) { - node_ = builderForValue.build(); - onChanged(); - } else { - nodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public Builder mergeNode(flyteidl.core.Workflow.Node value) { - if (nodeBuilder_ == null) { - if (node_ != null) { - node_ = - flyteidl.core.Workflow.Node.newBuilder(node_).mergeFrom(value).buildPartial(); - } else { - node_ = value; - } - onChanged(); - } else { - nodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public Builder clearNode() { - if (nodeBuilder_ == null) { - node_ = null; - onChanged(); - } else { - node_ = null; - nodeBuilder_ = null; - } - - return this; - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public flyteidl.core.Workflow.Node.Builder getNodeBuilder() { - - onChanged(); - return getNodeFieldBuilder().getBuilder(); - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodeOrBuilder() { - if (nodeBuilder_ != null) { - return nodeBuilder_.getMessageOrBuilder(); - } else { - return node_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : node_; - } - } - /** - *
-       * node is the sub-node that will be executed for each element in the array.
-       * 
- * - * .flyteidl.core.Node node = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodeFieldBuilder() { - if (nodeBuilder_ == null) { - nodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getNode(), - getParentForChildren(), - isClean()); - node_ = null; - } - return nodeBuilder_; - } - - private int parallelism_ ; - /** - *
-       * parallelism defines the minimum number of instances to bring up concurrently at any given
-       * point. Note that this is an optimistic restriction and that, due to network partitioning or
-       * other failures, the actual number of currently running instances might be more. This has to
-       * be a positive number if assigned. Default value is size.
-       * 
- * - * uint32 parallelism = 2; - */ - public int getParallelism() { - return parallelism_; - } - /** - *
-       * parallelism defines the minimum number of instances to bring up concurrently at any given
-       * point. Note that this is an optimistic restriction and that, due to network partitioning or
-       * other failures, the actual number of currently running instances might be more. This has to
-       * be a positive number if assigned. Default value is size.
-       * 
- * - * uint32 parallelism = 2; - */ - public Builder setParallelism(int value) { - - parallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * parallelism defines the minimum number of instances to bring up concurrently at any given
-       * point. Note that this is an optimistic restriction and that, due to network partitioning or
-       * other failures, the actual number of currently running instances might be more. This has to
-       * be a positive number if assigned. Default value is size.
-       * 
- * - * uint32 parallelism = 2; - */ - public Builder clearParallelism() { - - parallelism_ = 0; - onChanged(); - return this; - } - - /** - *
-       * min_successes is an absolute number of the minimum number of successful completions of
-       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
-       * and outputs will be computed. This has to be a non-negative number if assigned. Default
-       * value is size (if specified).
-       * 
- * - * uint32 min_successes = 3; - */ - public int getMinSuccesses() { - if (successCriteriaCase_ == 3) { - return (java.lang.Integer) successCriteria_; - } - return 0; - } - /** - *
-       * min_successes is an absolute number of the minimum number of successful completions of
-       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
-       * and outputs will be computed. This has to be a non-negative number if assigned. Default
-       * value is size (if specified).
-       * 
- * - * uint32 min_successes = 3; - */ - public Builder setMinSuccesses(int value) { - successCriteriaCase_ = 3; - successCriteria_ = value; - onChanged(); - return this; - } - /** - *
-       * min_successes is an absolute number of the minimum number of successful completions of
-       * sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful
-       * and outputs will be computed. This has to be a non-negative number if assigned. Default
-       * value is size (if specified).
-       * 
- * - * uint32 min_successes = 3; - */ - public Builder clearMinSuccesses() { - if (successCriteriaCase_ == 3) { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used
-       * to determine when an ArrayNode can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public float getMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - return (java.lang.Float) successCriteria_; - } - return 0F; - } - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used
-       * to determine when an ArrayNode can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public Builder setMinSuccessRatio(float value) { - successCriteriaCase_ = 4; - successCriteria_ = value; - onChanged(); - return this; - } - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used
-       * to determine when an ArrayNode can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public Builder clearMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - } - return this; - } - @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.core.ArrayNode) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.ArrayNode) - private static final flyteidl.core.Workflow.ArrayNode DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.ArrayNode(); - } - - public static flyteidl.core.Workflow.ArrayNode getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrayNode parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayNode(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.core.Workflow.ArrayNode getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.NodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - java.lang.String getName(); - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - boolean hasTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.Duration getTimeout(); - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder(); - - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - boolean hasRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategy getRetries(); - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder(); - - /** - * bool interruptible = 6; - */ - boolean getInterruptible(); - - public flyteidl.core.Workflow.NodeMetadata.InterruptibleValueCase getInterruptibleValueCase(); - } - /** - *
-   * Defines extra information about the Node.
-   * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class NodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.NodeMetadata) - NodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeMetadata.newBuilder() to construct. - private NodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeMetadata() { - name_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.RetryStrategy.Builder subBuilder = null; - if (retries_ != null) { - subBuilder = retries_.toBuilder(); - } - retries_ = input.readMessage(flyteidl.core.Literals.RetryStrategy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(retries_); - retries_ = subBuilder.buildPartial(); - } - - break; - } - case 48: { - interruptibleValueCase_ = 6; - interruptibleValue_ = input.readBool(); - 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.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public enum InterruptibleValueCase - implements com.google.protobuf.Internal.EnumLite { - INTERRUPTIBLE(6), - INTERRUPTIBLEVALUE_NOT_SET(0); - private final int value; - private InterruptibleValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InterruptibleValueCase valueOf(int value) { - return forNumber(value); - } - - public static InterruptibleValueCase forNumber(int value) { - switch (value) { - case 6: return INTERRUPTIBLE; - case 0: return INTERRUPTIBLEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * A friendly name for the Node
-     * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_FIELD_NUMBER = 4; - private com.google.protobuf.Duration timeout_; - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeout_ != null; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - /** - *
-     * The overall timeout of a task.
-     * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); - } - - public static final int RETRIES_FIELD_NUMBER = 5; - private flyteidl.core.Literals.RetryStrategy retries_; - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retries_ != null; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - /** - *
-     * Number of retries per task.
-     * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - return getRetries(); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 6; - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - - 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (timeout_ != null) { - output.writeMessage(4, getTimeout()); - } - if (retries_ != null) { - output.writeMessage(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - output.writeBool( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getTimeout()); - } - if (retries_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getRetries()); - } - if (interruptibleValueCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 6, (boolean)((java.lang.Boolean) interruptibleValue_)); - } - 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.core.Workflow.NodeMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.NodeMetadata other = (flyteidl.core.Workflow.NodeMetadata) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasTimeout() != other.hasTimeout()) return false; - if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; - } - if (hasRetries() != other.hasRetries()) return false; - if (hasRetries()) { - if (!getRetries() - .equals(other.getRetries())) return false; - } - if (!getInterruptibleValueCase().equals(other.getInterruptibleValueCase())) return false; - switch (interruptibleValueCase_) { - case 6: - if (getInterruptible() - != other.getInterruptible()) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTimeout()) { - hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; - hash = (53 * hash) + getTimeout().hashCode(); - } - if (hasRetries()) { - hash = (37 * hash) + RETRIES_FIELD_NUMBER; - hash = (53 * hash) + getRetries().hashCode(); - } - switch (interruptibleValueCase_) { - case 6: - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.NodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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.core.Workflow.NodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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.core.Workflow.NodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.NodeMetadata 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.core.Workflow.NodeMetadata 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; - } - /** - *
-     * Defines extra information about the Node.
-     * 
- * - * Protobuf type {@code flyteidl.core.NodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.NodeMetadata) - flyteidl.core.Workflow.NodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.NodeMetadata.class, flyteidl.core.Workflow.NodeMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.NodeMetadata.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(); - name_ = ""; - - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - if (retriesBuilder_ == null) { - retries_ = null; - } else { - retries_ = null; - retriesBuilder_ = null; - } - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_NodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.NodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata build() { - flyteidl.core.Workflow.NodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.NodeMetadata buildPartial() { - flyteidl.core.Workflow.NodeMetadata result = new flyteidl.core.Workflow.NodeMetadata(this); - result.name_ = name_; - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); - } - if (retriesBuilder_ == null) { - result.retries_ = retries_; - } else { - result.retries_ = retriesBuilder_.build(); - } - if (interruptibleValueCase_ == 6) { - result.interruptibleValue_ = interruptibleValue_; - } - result.interruptibleValueCase_ = interruptibleValueCase_; - 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.core.Workflow.NodeMetadata) { - return mergeFrom((flyteidl.core.Workflow.NodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.NodeMetadata other) { - if (other == flyteidl.core.Workflow.NodeMetadata.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasTimeout()) { - mergeTimeout(other.getTimeout()); - } - if (other.hasRetries()) { - mergeRetries(other.getRetries()); - } - switch (other.getInterruptibleValueCase()) { - case INTERRUPTIBLE: { - setInterruptible(other.getInterruptible()); - break; - } - case INTERRUPTIBLEVALUE_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.core.Workflow.NodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.NodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int interruptibleValueCase_ = 0; - private java.lang.Object interruptibleValue_; - public InterruptibleValueCase - getInterruptibleValueCase() { - return InterruptibleValueCase.forNumber( - interruptibleValueCase_); - } - - public Builder clearInterruptibleValue() { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - return this; - } - - - private java.lang.Object name_ = ""; - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * A friendly name for the Node
-       * 
- * - * string name = 1; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration timeout_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration getTimeout() { - if (timeoutBuilder_ == null) { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } else { - return timeoutBuilder_.getMessage(); - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timeout_ = value; - onChanged(); - } else { - timeoutBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { - if (timeoutBuilder_ == null) { - timeout_ = builderForValue.build(); - onChanged(); - } else { - timeoutBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder mergeTimeout(com.google.protobuf.Duration value) { - if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); - } else { - timeout_ = value; - } - onChanged(); - } else { - timeoutBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; - timeoutBuilder_ = null; - } - - return this; - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - - onChanged(); - return getTimeoutFieldBuilder().getBuilder(); - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - if (timeoutBuilder_ != null) { - return timeoutBuilder_.getMessageOrBuilder(); - } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; - } - } - /** - *
-       * The overall timeout of a task.
-       * 
- * - * .google.protobuf.Duration timeout = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getTimeoutFieldBuilder() { - if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); - timeout_ = null; - } - return timeoutBuilder_; - } - - private flyteidl.core.Literals.RetryStrategy retries_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> retriesBuilder_; - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public boolean hasRetries() { - return retriesBuilder_ != null || retries_ != null; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy getRetries() { - if (retriesBuilder_ == null) { - return retries_ == null ? flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } else { - return retriesBuilder_.getMessage(); - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - retries_ = value; - onChanged(); - } else { - retriesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder setRetries( - flyteidl.core.Literals.RetryStrategy.Builder builderForValue) { - if (retriesBuilder_ == null) { - retries_ = builderForValue.build(); - onChanged(); - } else { - retriesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder mergeRetries(flyteidl.core.Literals.RetryStrategy value) { - if (retriesBuilder_ == null) { - if (retries_ != null) { - retries_ = - flyteidl.core.Literals.RetryStrategy.newBuilder(retries_).mergeFrom(value).buildPartial(); - } else { - retries_ = value; - } - onChanged(); - } else { - retriesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public Builder clearRetries() { - if (retriesBuilder_ == null) { - retries_ = null; - onChanged(); - } else { - retries_ = null; - retriesBuilder_ = null; - } - - return this; - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategy.Builder getRetriesBuilder() { - - onChanged(); - return getRetriesFieldBuilder().getBuilder(); - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - public flyteidl.core.Literals.RetryStrategyOrBuilder getRetriesOrBuilder() { - if (retriesBuilder_ != null) { - return retriesBuilder_.getMessageOrBuilder(); - } else { - return retries_ == null ? - flyteidl.core.Literals.RetryStrategy.getDefaultInstance() : retries_; - } - } - /** - *
-       * Number of retries per task.
-       * 
- * - * .flyteidl.core.RetryStrategy retries = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder> - getRetriesFieldBuilder() { - if (retriesBuilder_ == null) { - retriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.RetryStrategy, flyteidl.core.Literals.RetryStrategy.Builder, flyteidl.core.Literals.RetryStrategyOrBuilder>( - getRetries(), - getParentForChildren(), - isClean()); - retries_ = null; - } - return retriesBuilder_; - } - - /** - * bool interruptible = 6; - */ - public boolean getInterruptible() { - if (interruptibleValueCase_ == 6) { - return (java.lang.Boolean) interruptibleValue_; - } - return false; - } - /** - * bool interruptible = 6; - */ - public Builder setInterruptible(boolean value) { - interruptibleValueCase_ = 6; - interruptibleValue_ = value; - onChanged(); - return this; - } - /** - * bool interruptible = 6; - */ - public Builder clearInterruptible() { - if (interruptibleValueCase_ == 6) { - interruptibleValueCase_ = 0; - interruptibleValue_ = null; - onChanged(); - } - return this; - } - @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.core.NodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.NodeMetadata) - private static final flyteidl.core.Workflow.NodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.NodeMetadata(); - } - - public static flyteidl.core.Workflow.NodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeMetadata(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.core.Workflow.NodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AliasOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Alias) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - java.lang.String getVar(); - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - com.google.protobuf.ByteString - getVarBytes(); - - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - java.lang.String getAlias(); - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - com.google.protobuf.ByteString - getAliasBytes(); - } - /** - *
-   * Links a variable to an alias.
-   * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Alias extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Alias) - AliasOrBuilder { - private static final long serialVersionUID = 0L; - // Use Alias.newBuilder() to construct. - private Alias(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Alias() { - var_ = ""; - alias_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Alias( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - var_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - alias_ = s; - 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.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - public static final int VAR_FIELD_NUMBER = 1; - private volatile java.lang.Object var_; - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } - } - /** - *
-     * Must match one of the output variable names on a node.
-     * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ALIAS_FIELD_NUMBER = 2; - private volatile java.lang.Object alias_; - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } - } - /** - *
-     * A workflow-level unique alias that downstream nodes can refer to in their input.
-     * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getVarBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, var_); - } - if (!getAliasBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, alias_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getVarBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, var_); - } - if (!getAliasBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, alias_); - } - 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.core.Workflow.Alias)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Alias other = (flyteidl.core.Workflow.Alias) obj; - - if (!getVar() - .equals(other.getVar())) return false; - if (!getAlias() - .equals(other.getAlias())) 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(); - hash = (37 * hash) + VAR_FIELD_NUMBER; - hash = (53 * hash) + getVar().hashCode(); - hash = (37 * hash) + ALIAS_FIELD_NUMBER; - hash = (53 * hash) + getAlias().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Alias parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Alias parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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.core.Workflow.Alias parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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.core.Workflow.Alias parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Alias 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.core.Workflow.Alias 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; - } - /** - *
-     * Links a variable to an alias.
-     * 
- * - * Protobuf type {@code flyteidl.core.Alias} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Alias) - flyteidl.core.Workflow.AliasOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Alias.class, flyteidl.core.Workflow.Alias.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Alias.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(); - var_ = ""; - - alias_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Alias_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias getDefaultInstanceForType() { - return flyteidl.core.Workflow.Alias.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias build() { - flyteidl.core.Workflow.Alias result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Alias buildPartial() { - flyteidl.core.Workflow.Alias result = new flyteidl.core.Workflow.Alias(this); - result.var_ = var_; - result.alias_ = alias_; - 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.core.Workflow.Alias) { - return mergeFrom((flyteidl.core.Workflow.Alias)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Alias other) { - if (other == flyteidl.core.Workflow.Alias.getDefaultInstance()) return this; - if (!other.getVar().isEmpty()) { - var_ = other.var_; - onChanged(); - } - if (!other.getAlias().isEmpty()) { - alias_ = other.alias_; - onChanged(); - } - 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.core.Workflow.Alias parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Alias) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object var_ = ""; - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public java.lang.String getVar() { - java.lang.Object ref = var_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - var_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public com.google.protobuf.ByteString - getVarBytes() { - java.lang.Object ref = var_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - var_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVar( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - var_ = value; - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder clearVar() { - - var_ = getDefaultInstance().getVar(); - onChanged(); - return this; - } - /** - *
-       * Must match one of the output variable names on a node.
-       * 
- * - * string var = 1; - */ - public Builder setVarBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - var_ = value; - onChanged(); - return this; - } - - private java.lang.Object alias_ = ""; - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public java.lang.String getAlias() { - java.lang.Object ref = alias_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - alias_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public com.google.protobuf.ByteString - getAliasBytes() { - java.lang.Object ref = alias_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - alias_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAlias( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - alias_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder clearAlias() { - - alias_ = getDefaultInstance().getAlias(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique alias that downstream nodes can refer to in their input.
-       * 
- * - * string alias = 2; - */ - public Builder setAliasBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - alias_ = value; - onChanged(); - return this; - } - @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.core.Alias) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Alias) - private static final flyteidl.core.Workflow.Alias DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Alias(); - } - - public static flyteidl.core.Workflow.Alias getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Alias parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Alias(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.core.Workflow.Alias getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.Node) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - java.lang.String getId(); - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadata getMetadata(); - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.Binding getInputs(int index); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - int getInputsCount(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - java.util.List - getInputsOrBuilderList(); - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index); - - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.util.List - getUpstreamNodeIdsList(); - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - int getUpstreamNodeIdsCount(); - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - java.lang.String getUpstreamNodeIds(int index); - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index); - - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.Alias getOutputAliases(int index); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - int getOutputAliasesCount(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - java.util.List - getOutputAliasesOrBuilderList(); - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index); - - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - boolean hasTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNode getTaskNode(); - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder(); - - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - boolean hasWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNode getWorkflowNode(); - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder(); - - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - boolean hasBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNode getBranchNode(); - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder(); - - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - boolean hasGateNode(); - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - flyteidl.core.Workflow.GateNode getGateNode(); - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder(); - - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - boolean hasArrayNode(); - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - flyteidl.core.Workflow.ArrayNode getArrayNode(); - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder(); - - public flyteidl.core.Workflow.Node.TargetCase getTargetCase(); - } - /** - *
-   * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-   * node.
-   * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Node extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.Node) - NodeOrBuilder { - private static final long serialVersionUID = 0L; - // Use Node.newBuilder() to construct. - private Node(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Node() { - id_ = ""; - inputs_ = java.util.Collections.emptyList(); - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - outputAliases_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Node( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - flyteidl.core.Workflow.NodeMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.NodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - inputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - upstreamNodeIds_.add(s); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputAliases_.add( - input.readMessage(flyteidl.core.Workflow.Alias.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.TaskNode.Builder subBuilder = null; - if (targetCase_ == 6) { - subBuilder = ((flyteidl.core.Workflow.TaskNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.TaskNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.TaskNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 6; - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowNode.Builder subBuilder = null; - if (targetCase_ == 7) { - subBuilder = ((flyteidl.core.Workflow.WorkflowNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.WorkflowNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.WorkflowNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 7; - break; - } - case 66: { - flyteidl.core.Workflow.BranchNode.Builder subBuilder = null; - if (targetCase_ == 8) { - subBuilder = ((flyteidl.core.Workflow.BranchNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.BranchNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.BranchNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 8; - break; - } - case 74: { - flyteidl.core.Workflow.GateNode.Builder subBuilder = null; - if (targetCase_ == 9) { - subBuilder = ((flyteidl.core.Workflow.GateNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.GateNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.GateNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 9; - break; - } - case 82: { - flyteidl.core.Workflow.ArrayNode.Builder subBuilder = null; - if (targetCase_ == 10) { - subBuilder = ((flyteidl.core.Workflow.ArrayNode) target_).toBuilder(); - } - target_ = - input.readMessage(flyteidl.core.Workflow.ArrayNode.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Workflow.ArrayNode) target_); - target_ = subBuilder.buildPartial(); - } - targetCase_ = 10; - 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - private int bitField0_; - private int targetCase_ = 0; - private java.lang.Object target_; - public enum TargetCase - implements com.google.protobuf.Internal.EnumLite { - TASK_NODE(6), - WORKFLOW_NODE(7), - BRANCH_NODE(8), - GATE_NODE(9), - ARRAY_NODE(10), - TARGET_NOT_SET(0); - private final int value; - private TargetCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetCase valueOf(int value) { - return forNumber(value); - } - - public static TargetCase forNumber(int value) { - switch (value) { - case 6: return TASK_NODE; - case 7: return WORKFLOW_NODE; - case 8: return BRANCH_NODE; - case 9: return GATE_NODE; - case 10: return ARRAY_NODE; - case 0: return TARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } - } - /** - *
-     * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-     * node ids that cannot be used by other nodes.
-     * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.NodeMetadata metadata_; - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the node.
-     * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INPUTS_FIELD_NUMBER = 3; - private java.util.List inputs_; - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - return inputs_; - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - return inputs_.size(); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - return inputs_.get(index); - } - /** - *
-     * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-     * must be fulfilled.
-     * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - return inputs_.get(index); - } - - public static final int UPSTREAM_NODE_IDS_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList upstreamNodeIds_; - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_; - } - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-     *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-     * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-     * field.
-     * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - - public static final int OUTPUT_ALIASES_FIELD_NUMBER = 5; - private java.util.List outputAliases_; - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - return outputAliases_; - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - return outputAliases_.size(); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - return outputAliases_.get(index); - } - /** - *
-     *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-     * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-     * nodes outputs using the alias if one's specified.
-     * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - return outputAliases_.get(index); - } - - public static final int TASK_NODE_FIELD_NUMBER = 6; - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - /** - *
-     * Information about the Task to execute in this node.
-     * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_FIELD_NUMBER = 7; - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - /** - *
-     * Information about the Workflow to execute in this mode.
-     * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - - public static final int BRANCH_NODE_FIELD_NUMBER = 8; - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - /** - *
-     * Information about the branch node to evaluate in this node.
-     * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - - public static final int GATE_NODE_FIELD_NUMBER = 9; - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public boolean hasGateNode() { - return targetCase_ == 9; - } - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public flyteidl.core.Workflow.GateNode getGateNode() { - if (targetCase_ == 9) { - return (flyteidl.core.Workflow.GateNode) target_; - } - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - /** - *
-     * Information about the condition to evaluate in this node.
-     * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder() { - if (targetCase_ == 9) { - return (flyteidl.core.Workflow.GateNode) target_; - } - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - - public static final int ARRAY_NODE_FIELD_NUMBER = 10; - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public boolean hasArrayNode() { - return targetCase_ == 10; - } - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public flyteidl.core.Workflow.ArrayNode getArrayNode() { - if (targetCase_ == 10) { - return (flyteidl.core.Workflow.ArrayNode) target_; - } - return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } - /** - *
-     * Information about the sub-node executions for each value in the list of this nodes
-     * inputs values.
-     * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder() { - if (targetCase_ == 10) { - return (flyteidl.core.Workflow.ArrayNode) target_; - } - return flyteidl.core.Workflow.ArrayNode.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 (!getIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - output.writeMessage(3, inputs_.get(i)); - } - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, upstreamNodeIds_.getRaw(i)); - } - for (int i = 0; i < outputAliases_.size(); i++) { - output.writeMessage(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - output.writeMessage(8, (flyteidl.core.Workflow.BranchNode) target_); - } - if (targetCase_ == 9) { - output.writeMessage(9, (flyteidl.core.Workflow.GateNode) target_); - } - if (targetCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Workflow.ArrayNode) target_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - for (int i = 0; i < inputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, inputs_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < upstreamNodeIds_.size(); i++) { - dataSize += computeStringSizeNoTag(upstreamNodeIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getUpstreamNodeIdsList().size(); - } - for (int i = 0; i < outputAliases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputAliases_.get(i)); - } - if (targetCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Workflow.TaskNode) target_); - } - if (targetCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Workflow.WorkflowNode) target_); - } - if (targetCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.core.Workflow.BranchNode) target_); - } - if (targetCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (flyteidl.core.Workflow.GateNode) target_); - } - if (targetCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Workflow.ArrayNode) target_); - } - 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.core.Workflow.Node)) { - return super.equals(obj); - } - flyteidl.core.Workflow.Node other = (flyteidl.core.Workflow.Node) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (!getInputsList() - .equals(other.getInputsList())) return false; - if (!getUpstreamNodeIdsList() - .equals(other.getUpstreamNodeIdsList())) return false; - if (!getOutputAliasesList() - .equals(other.getOutputAliasesList())) return false; - if (!getTargetCase().equals(other.getTargetCase())) return false; - switch (targetCase_) { - case 6: - if (!getTaskNode() - .equals(other.getTaskNode())) return false; - break; - case 7: - if (!getWorkflowNode() - .equals(other.getWorkflowNode())) return false; - break; - case 8: - if (!getBranchNode() - .equals(other.getBranchNode())) return false; - break; - case 9: - if (!getGateNode() - .equals(other.getGateNode())) return false; - break; - case 10: - if (!getArrayNode() - .equals(other.getArrayNode())) 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(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getInputsCount() > 0) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputsList().hashCode(); - } - if (getUpstreamNodeIdsCount() > 0) { - hash = (37 * hash) + UPSTREAM_NODE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getUpstreamNodeIdsList().hashCode(); - } - if (getOutputAliasesCount() > 0) { - hash = (37 * hash) + OUTPUT_ALIASES_FIELD_NUMBER; - hash = (53 * hash) + getOutputAliasesList().hashCode(); - } - switch (targetCase_) { - case 6: - hash = (37 * hash) + TASK_NODE_FIELD_NUMBER; - hash = (53 * hash) + getTaskNode().hashCode(); - break; - case 7: - hash = (37 * hash) + WORKFLOW_NODE_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNode().hashCode(); - break; - case 8: - hash = (37 * hash) + BRANCH_NODE_FIELD_NUMBER; - hash = (53 * hash) + getBranchNode().hashCode(); - break; - case 9: - hash = (37 * hash) + GATE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getGateNode().hashCode(); - break; - case 10: - hash = (37 * hash) + ARRAY_NODE_FIELD_NUMBER; - hash = (53 * hash) + getArrayNode().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.Node parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.Node parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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.core.Workflow.Node parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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.core.Workflow.Node parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.Node 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.core.Workflow.Node 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; - } - /** - *
-     * A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch
-     * node.
-     * 
- * - * Protobuf type {@code flyteidl.core.Node} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.Node) - flyteidl.core.Workflow.NodeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.Node.class, flyteidl.core.Workflow.Node.Builder.class); - } - - // Construct using flyteidl.core.Workflow.Node.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getInputsFieldBuilder(); - getOutputAliasesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - id_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - inputsBuilder_.clear(); - } - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputAliasesBuilder_.clear(); - } - targetCase_ = 0; - target_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_Node_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node getDefaultInstanceForType() { - return flyteidl.core.Workflow.Node.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.Node build() { - flyteidl.core.Workflow.Node result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.Node buildPartial() { - flyteidl.core.Workflow.Node result = new flyteidl.core.Workflow.Node(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.id_ = id_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (inputsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - inputs_ = java.util.Collections.unmodifiableList(inputs_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = upstreamNodeIds_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.upstreamNodeIds_ = upstreamNodeIds_; - if (outputAliasesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = java.util.Collections.unmodifiableList(outputAliases_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputAliases_ = outputAliases_; - } else { - result.outputAliases_ = outputAliasesBuilder_.build(); - } - if (targetCase_ == 6) { - if (taskNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = taskNodeBuilder_.build(); - } - } - if (targetCase_ == 7) { - if (workflowNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = workflowNodeBuilder_.build(); - } - } - if (targetCase_ == 8) { - if (branchNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = branchNodeBuilder_.build(); - } - } - if (targetCase_ == 9) { - if (gateNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = gateNodeBuilder_.build(); - } - } - if (targetCase_ == 10) { - if (arrayNodeBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = arrayNodeBuilder_.build(); - } - } - result.bitField0_ = to_bitField0_; - result.targetCase_ = targetCase_; - 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.core.Workflow.Node) { - return mergeFrom((flyteidl.core.Workflow.Node)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.Node other) { - if (other == flyteidl.core.Workflow.Node.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (inputsBuilder_ == null) { - if (!other.inputs_.isEmpty()) { - if (inputs_.isEmpty()) { - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureInputsIsMutable(); - inputs_.addAll(other.inputs_); - } - onChanged(); - } - } else { - if (!other.inputs_.isEmpty()) { - if (inputsBuilder_.isEmpty()) { - inputsBuilder_.dispose(); - inputsBuilder_ = null; - inputs_ = other.inputs_; - bitField0_ = (bitField0_ & ~0x00000004); - inputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInputsFieldBuilder() : null; - } else { - inputsBuilder_.addAllMessages(other.inputs_); - } - } - } - if (!other.upstreamNodeIds_.isEmpty()) { - if (upstreamNodeIds_.isEmpty()) { - upstreamNodeIds_ = other.upstreamNodeIds_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.addAll(other.upstreamNodeIds_); - } - onChanged(); - } - if (outputAliasesBuilder_ == null) { - if (!other.outputAliases_.isEmpty()) { - if (outputAliases_.isEmpty()) { - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputAliasesIsMutable(); - outputAliases_.addAll(other.outputAliases_); - } - onChanged(); - } - } else { - if (!other.outputAliases_.isEmpty()) { - if (outputAliasesBuilder_.isEmpty()) { - outputAliasesBuilder_.dispose(); - outputAliasesBuilder_ = null; - outputAliases_ = other.outputAliases_; - bitField0_ = (bitField0_ & ~0x00000010); - outputAliasesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputAliasesFieldBuilder() : null; - } else { - outputAliasesBuilder_.addAllMessages(other.outputAliases_); - } - } - } - switch (other.getTargetCase()) { - case TASK_NODE: { - mergeTaskNode(other.getTaskNode()); - break; - } - case WORKFLOW_NODE: { - mergeWorkflowNode(other.getWorkflowNode()); - break; - } - case BRANCH_NODE: { - mergeBranchNode(other.getBranchNode()); - break; - } - case GATE_NODE: { - mergeGateNode(other.getGateNode()); - break; - } - case ARRAY_NODE: { - mergeArrayNode(other.getArrayNode()); - break; - } - case TARGET_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.core.Workflow.Node parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.Node) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int targetCase_ = 0; - private java.lang.Object target_; - public TargetCase - getTargetCase() { - return TargetCase.forNumber( - targetCase_); - } - - public Builder clearTarget() { - targetCase_ = 0; - target_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - id_ = value; - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder clearId() { - - id_ = getDefaultInstance().getId(); - onChanged(); - return this; - } - /** - *
-       * A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved
-       * node ids that cannot be used by other nodes.
-       * 
- * - * string id = 1; - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - id_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Workflow.NodeMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.NodeMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.NodeMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.NodeMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - public flyteidl.core.Workflow.NodeMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.NodeMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the node.
-       * 
- * - * .flyteidl.core.NodeMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.NodeMetadata, flyteidl.core.Workflow.NodeMetadata.Builder, flyteidl.core.Workflow.NodeMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.util.List inputs_ = - java.util.Collections.emptyList(); - private void ensureInputsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - inputs_ = new java.util.ArrayList(inputs_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> inputsBuilder_; - - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List getInputsList() { - if (inputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(inputs_); - } else { - return inputsBuilder_.getMessageList(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public int getInputsCount() { - if (inputsBuilder_ == null) { - return inputs_.size(); - } else { - return inputsBuilder_.getCount(); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding getInputs(int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); - } else { - return inputsBuilder_.getMessage(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.set(index, value); - onChanged(); - } else { - inputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder setInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.set(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs(flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(value); - onChanged(); - } else { - inputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputsIsMutable(); - inputs_.add(index, value); - onChanged(); - } else { - inputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addInputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.add(index, builderForValue.build()); - onChanged(); - } else { - inputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder addAllInputs( - java.lang.Iterable values) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, inputs_); - onChanged(); - } else { - inputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - inputsBuilder_.clear(); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public Builder removeInputs(int index) { - if (inputsBuilder_ == null) { - ensureInputsIsMutable(); - inputs_.remove(index); - onChanged(); - } else { - inputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder getInputsBuilder( - int index) { - return getInputsFieldBuilder().getBuilder(index); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.BindingOrBuilder getInputsOrBuilder( - int index) { - if (inputsBuilder_ == null) { - return inputs_.get(index); } else { - return inputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsOrBuilderList() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(inputs_); - } - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder() { - return getInputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public flyteidl.core.Literals.Binding.Builder addInputsBuilder( - int index) { - return getInputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface
-       * must be fulfilled.
-       * 
- * - * repeated .flyteidl.core.Binding inputs = 3; - */ - public java.util.List - getInputsBuilderList() { - return getInputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - inputs_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private com.google.protobuf.LazyStringList upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureUpstreamNodeIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - upstreamNodeIds_ = new com.google.protobuf.LazyStringArrayList(upstreamNodeIds_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ProtocolStringList - getUpstreamNodeIdsList() { - return upstreamNodeIds_.getUnmodifiableView(); - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public int getUpstreamNodeIdsCount() { - return upstreamNodeIds_.size(); - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public java.lang.String getUpstreamNodeIds(int index) { - return upstreamNodeIds_.get(index); - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public com.google.protobuf.ByteString - getUpstreamNodeIdsBytes(int index) { - return upstreamNodeIds_.getByteString(index); - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder setUpstreamNodeIds( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.set(index, value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIds( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addAllUpstreamNodeIds( - java.lang.Iterable values) { - ensureUpstreamNodeIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, upstreamNodeIds_); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder clearUpstreamNodeIds() { - upstreamNodeIds_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       *+optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its
-       * upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs
-       * field.
-       * 
- * - * repeated string upstream_node_ids = 4; - */ - public Builder addUpstreamNodeIdsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureUpstreamNodeIdsIsMutable(); - upstreamNodeIds_.add(value); - onChanged(); - return this; - } - - private java.util.List outputAliases_ = - java.util.Collections.emptyList(); - private void ensureOutputAliasesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputAliases_ = new java.util.ArrayList(outputAliases_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> outputAliasesBuilder_; - - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List getOutputAliasesList() { - if (outputAliasesBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputAliases_); - } else { - return outputAliasesBuilder_.getMessageList(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public int getOutputAliasesCount() { - if (outputAliasesBuilder_ == null) { - return outputAliases_.size(); - } else { - return outputAliasesBuilder_.getCount(); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias getOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); - } else { - return outputAliasesBuilder_.getMessage(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, value); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder setOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.set(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases(flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias value) { - if (outputAliasesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, value); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addOutputAliases( - int index, flyteidl.core.Workflow.Alias.Builder builderForValue) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.add(index, builderForValue.build()); - onChanged(); - } else { - outputAliasesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder addAllOutputAliases( - java.lang.Iterable values) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputAliases_); - onChanged(); - } else { - outputAliasesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder clearOutputAliases() { - if (outputAliasesBuilder_ == null) { - outputAliases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputAliasesBuilder_.clear(); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public Builder removeOutputAliases(int index) { - if (outputAliasesBuilder_ == null) { - ensureOutputAliasesIsMutable(); - outputAliases_.remove(index); - onChanged(); - } else { - outputAliasesBuilder_.remove(index); - } - return this; - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder getOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().getBuilder(index); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.AliasOrBuilder getOutputAliasesOrBuilder( - int index) { - if (outputAliasesBuilder_ == null) { - return outputAliases_.get(index); } else { - return outputAliasesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesOrBuilderList() { - if (outputAliasesBuilder_ != null) { - return outputAliasesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputAliases_); - } - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder() { - return getOutputAliasesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public flyteidl.core.Workflow.Alias.Builder addOutputAliasesBuilder( - int index) { - return getOutputAliasesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Alias.getDefaultInstance()); - } - /** - *
-       *+optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes
-       * need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this
-       * nodes outputs using the alias if one's specified.
-       * 
- * - * repeated .flyteidl.core.Alias output_aliases = 5; - */ - public java.util.List - getOutputAliasesBuilderList() { - return getOutputAliasesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder> - getOutputAliasesFieldBuilder() { - if (outputAliasesBuilder_ == null) { - outputAliasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Alias, flyteidl.core.Workflow.Alias.Builder, flyteidl.core.Workflow.AliasOrBuilder>( - outputAliases_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputAliases_ = null; - } - return outputAliasesBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> taskNodeBuilder_; - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public boolean hasTaskNode() { - return targetCase_ == 6; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode getTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } else { - if (targetCase_ == 6) { - return taskNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder setTaskNode( - flyteidl.core.Workflow.TaskNode.Builder builderForValue) { - if (taskNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - taskNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder mergeTaskNode(flyteidl.core.Workflow.TaskNode value) { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6 && - target_ != flyteidl.core.Workflow.TaskNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.TaskNode.newBuilder((flyteidl.core.Workflow.TaskNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 6) { - taskNodeBuilder_.mergeFrom(value); - } - taskNodeBuilder_.setMessage(value); - } - targetCase_ = 6; - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public Builder clearTaskNode() { - if (taskNodeBuilder_ == null) { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 6) { - targetCase_ = 0; - target_ = null; - } - taskNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNode.Builder getTaskNodeBuilder() { - return getTaskNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - public flyteidl.core.Workflow.TaskNodeOrBuilder getTaskNodeOrBuilder() { - if ((targetCase_ == 6) && (taskNodeBuilder_ != null)) { - return taskNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 6) { - return (flyteidl.core.Workflow.TaskNode) target_; - } - return flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Task to execute in this node.
-       * 
- * - * .flyteidl.core.TaskNode task_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder> - getTaskNodeFieldBuilder() { - if (taskNodeBuilder_ == null) { - if (!(targetCase_ == 6)) { - target_ = flyteidl.core.Workflow.TaskNode.getDefaultInstance(); - } - taskNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.TaskNode, flyteidl.core.Workflow.TaskNode.Builder, flyteidl.core.Workflow.TaskNodeOrBuilder>( - (flyteidl.core.Workflow.TaskNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 6; - onChanged();; - return taskNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> workflowNodeBuilder_; - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public boolean hasWorkflowNode() { - return targetCase_ == 7; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode getWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } else { - if (targetCase_ == 7) { - return workflowNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder setWorkflowNode( - flyteidl.core.Workflow.WorkflowNode.Builder builderForValue) { - if (workflowNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder mergeWorkflowNode(flyteidl.core.Workflow.WorkflowNode value) { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7 && - target_ != flyteidl.core.Workflow.WorkflowNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.WorkflowNode.newBuilder((flyteidl.core.Workflow.WorkflowNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 7) { - workflowNodeBuilder_.mergeFrom(value); - } - workflowNodeBuilder_.setMessage(value); - } - targetCase_ = 7; - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public Builder clearWorkflowNode() { - if (workflowNodeBuilder_ == null) { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 7) { - targetCase_ = 0; - target_ = null; - } - workflowNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNode.Builder getWorkflowNodeBuilder() { - return getWorkflowNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - public flyteidl.core.Workflow.WorkflowNodeOrBuilder getWorkflowNodeOrBuilder() { - if ((targetCase_ == 7) && (workflowNodeBuilder_ != null)) { - return workflowNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 7) { - return (flyteidl.core.Workflow.WorkflowNode) target_; - } - return flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the Workflow to execute in this mode.
-       * 
- * - * .flyteidl.core.WorkflowNode workflow_node = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder> - getWorkflowNodeFieldBuilder() { - if (workflowNodeBuilder_ == null) { - if (!(targetCase_ == 7)) { - target_ = flyteidl.core.Workflow.WorkflowNode.getDefaultInstance(); - } - workflowNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowNode, flyteidl.core.Workflow.WorkflowNode.Builder, flyteidl.core.Workflow.WorkflowNodeOrBuilder>( - (flyteidl.core.Workflow.WorkflowNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 7; - onChanged();; - return workflowNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> branchNodeBuilder_; - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public boolean hasBranchNode() { - return targetCase_ == 8; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode getBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } else { - if (targetCase_ == 8) { - return branchNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder setBranchNode( - flyteidl.core.Workflow.BranchNode.Builder builderForValue) { - if (branchNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - branchNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder mergeBranchNode(flyteidl.core.Workflow.BranchNode value) { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8 && - target_ != flyteidl.core.Workflow.BranchNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.BranchNode.newBuilder((flyteidl.core.Workflow.BranchNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 8) { - branchNodeBuilder_.mergeFrom(value); - } - branchNodeBuilder_.setMessage(value); - } - targetCase_ = 8; - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public Builder clearBranchNode() { - if (branchNodeBuilder_ == null) { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 8) { - targetCase_ = 0; - target_ = null; - } - branchNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNode.Builder getBranchNodeBuilder() { - return getBranchNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - public flyteidl.core.Workflow.BranchNodeOrBuilder getBranchNodeOrBuilder() { - if ((targetCase_ == 8) && (branchNodeBuilder_ != null)) { - return branchNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 8) { - return (flyteidl.core.Workflow.BranchNode) target_; - } - return flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the branch node to evaluate in this node.
-       * 
- * - * .flyteidl.core.BranchNode branch_node = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder> - getBranchNodeFieldBuilder() { - if (branchNodeBuilder_ == null) { - if (!(targetCase_ == 8)) { - target_ = flyteidl.core.Workflow.BranchNode.getDefaultInstance(); - } - branchNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.BranchNode, flyteidl.core.Workflow.BranchNode.Builder, flyteidl.core.Workflow.BranchNodeOrBuilder>( - (flyteidl.core.Workflow.BranchNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 8; - onChanged();; - return branchNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder> gateNodeBuilder_; - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public boolean hasGateNode() { - return targetCase_ == 9; - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public flyteidl.core.Workflow.GateNode getGateNode() { - if (gateNodeBuilder_ == null) { - if (targetCase_ == 9) { - return (flyteidl.core.Workflow.GateNode) target_; - } - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } else { - if (targetCase_ == 9) { - return gateNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public Builder setGateNode(flyteidl.core.Workflow.GateNode value) { - if (gateNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - gateNodeBuilder_.setMessage(value); - } - targetCase_ = 9; - return this; - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public Builder setGateNode( - flyteidl.core.Workflow.GateNode.Builder builderForValue) { - if (gateNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - gateNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 9; - return this; - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public Builder mergeGateNode(flyteidl.core.Workflow.GateNode value) { - if (gateNodeBuilder_ == null) { - if (targetCase_ == 9 && - target_ != flyteidl.core.Workflow.GateNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.GateNode.newBuilder((flyteidl.core.Workflow.GateNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 9) { - gateNodeBuilder_.mergeFrom(value); - } - gateNodeBuilder_.setMessage(value); - } - targetCase_ = 9; - return this; - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public Builder clearGateNode() { - if (gateNodeBuilder_ == null) { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 9) { - targetCase_ = 0; - target_ = null; - } - gateNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public flyteidl.core.Workflow.GateNode.Builder getGateNodeBuilder() { - return getGateNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - public flyteidl.core.Workflow.GateNodeOrBuilder getGateNodeOrBuilder() { - if ((targetCase_ == 9) && (gateNodeBuilder_ != null)) { - return gateNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 9) { - return (flyteidl.core.Workflow.GateNode) target_; - } - return flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the condition to evaluate in this node.
-       * 
- * - * .flyteidl.core.GateNode gate_node = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder> - getGateNodeFieldBuilder() { - if (gateNodeBuilder_ == null) { - if (!(targetCase_ == 9)) { - target_ = flyteidl.core.Workflow.GateNode.getDefaultInstance(); - } - gateNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.GateNode, flyteidl.core.Workflow.GateNode.Builder, flyteidl.core.Workflow.GateNodeOrBuilder>( - (flyteidl.core.Workflow.GateNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 9; - onChanged();; - return gateNodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder> arrayNodeBuilder_; - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public boolean hasArrayNode() { - return targetCase_ == 10; - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public flyteidl.core.Workflow.ArrayNode getArrayNode() { - if (arrayNodeBuilder_ == null) { - if (targetCase_ == 10) { - return (flyteidl.core.Workflow.ArrayNode) target_; - } - return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } else { - if (targetCase_ == 10) { - return arrayNodeBuilder_.getMessage(); - } - return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public Builder setArrayNode(flyteidl.core.Workflow.ArrayNode value) { - if (arrayNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - target_ = value; - onChanged(); - } else { - arrayNodeBuilder_.setMessage(value); - } - targetCase_ = 10; - return this; - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public Builder setArrayNode( - flyteidl.core.Workflow.ArrayNode.Builder builderForValue) { - if (arrayNodeBuilder_ == null) { - target_ = builderForValue.build(); - onChanged(); - } else { - arrayNodeBuilder_.setMessage(builderForValue.build()); - } - targetCase_ = 10; - return this; - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public Builder mergeArrayNode(flyteidl.core.Workflow.ArrayNode value) { - if (arrayNodeBuilder_ == null) { - if (targetCase_ == 10 && - target_ != flyteidl.core.Workflow.ArrayNode.getDefaultInstance()) { - target_ = flyteidl.core.Workflow.ArrayNode.newBuilder((flyteidl.core.Workflow.ArrayNode) target_) - .mergeFrom(value).buildPartial(); - } else { - target_ = value; - } - onChanged(); - } else { - if (targetCase_ == 10) { - arrayNodeBuilder_.mergeFrom(value); - } - arrayNodeBuilder_.setMessage(value); - } - targetCase_ = 10; - return this; - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public Builder clearArrayNode() { - if (arrayNodeBuilder_ == null) { - if (targetCase_ == 10) { - targetCase_ = 0; - target_ = null; - onChanged(); - } - } else { - if (targetCase_ == 10) { - targetCase_ = 0; - target_ = null; - } - arrayNodeBuilder_.clear(); - } - return this; - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public flyteidl.core.Workflow.ArrayNode.Builder getArrayNodeBuilder() { - return getArrayNodeFieldBuilder().getBuilder(); - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - public flyteidl.core.Workflow.ArrayNodeOrBuilder getArrayNodeOrBuilder() { - if ((targetCase_ == 10) && (arrayNodeBuilder_ != null)) { - return arrayNodeBuilder_.getMessageOrBuilder(); - } else { - if (targetCase_ == 10) { - return (flyteidl.core.Workflow.ArrayNode) target_; - } - return flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } - } - /** - *
-       * Information about the sub-node executions for each value in the list of this nodes
-       * inputs values.
-       * 
- * - * .flyteidl.core.ArrayNode array_node = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder> - getArrayNodeFieldBuilder() { - if (arrayNodeBuilder_ == null) { - if (!(targetCase_ == 10)) { - target_ = flyteidl.core.Workflow.ArrayNode.getDefaultInstance(); - } - arrayNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.ArrayNode, flyteidl.core.Workflow.ArrayNode.Builder, flyteidl.core.Workflow.ArrayNodeOrBuilder>( - (flyteidl.core.Workflow.ArrayNode) target_, - getParentForChildren(), - isClean()); - target_ = null; - } - targetCase_ = 10; - onChanged();; - return arrayNodeBuilder_; - } - @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.core.Node) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.Node) - private static final flyteidl.core.Workflow.Node DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.Node(); - } - - public static flyteidl.core.Workflow.Node getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Node parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Node(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.core.Workflow.Node getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - boolean hasQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfService getQualityOfService(); - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder(); - - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - int getOnFailureValue(); - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure(); - - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - int getTagsCount(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - boolean containsTags( - java.lang.String key); - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getTags(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - java.util.Map - getTagsMap(); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - java.lang.String getTagsOrThrow( - java.lang.String key); - } - /** - *
-   * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not
-   * percolate down to child entities (like tasks) launched by the workflow.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class WorkflowMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadata) - WorkflowMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadata.newBuilder() to construct. - private WorkflowMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadata() { - onFailure_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadata( - 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.Execution.QualityOfService.Builder subBuilder = null; - if (qualityOfService_ != null) { - subBuilder = qualityOfService_.toBuilder(); - } - qualityOfService_ = input.readMessage(flyteidl.core.Execution.QualityOfService.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(qualityOfService_); - qualityOfService_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - onFailure_ = rawValue; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = com.google.protobuf.MapField.newMapField( - TagsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000004; - } - com.google.protobuf.MapEntry - tags__ = input.readMessage( - TagsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - tags_.getMutableMap().put( - tags__.getKey(), tags__.getValue()); - 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.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - /** - *
-     * Failure Handling Strategy
-     * 
- * - * Protobuf enum {@code flyteidl.core.WorkflowMetadata.OnFailurePolicy} - */ - public enum OnFailurePolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - FAIL_IMMEDIATELY(0), - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically
-       * abort all currently running nodes and clean up resources before finally marking the workflow executions as
-       * failed.
-       * 
- * - * FAIL_IMMEDIATELY = 0; - */ - public static final int FAIL_IMMEDIATELY_VALUE = 0; - /** - *
-       * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will
-       * not alter the dependencies of the execution graph so any node that depend on the failed node will not be run.
-       * Other nodes that will be executed to completion before cleaning up resources and marking the workflow
-       * execution as failed.
-       * 
- * - * FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1; - */ - public static final int FAIL_AFTER_EXECUTABLE_NODES_COMPLETE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OnFailurePolicy valueOf(int value) { - return forNumber(value); - } - - public static OnFailurePolicy forNumber(int value) { - switch (value) { - case 0: return FAIL_IMMEDIATELY; - case 1: return FAIL_AFTER_EXECUTABLE_NODES_COMPLETE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OnFailurePolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OnFailurePolicy findValueByNumber(int number) { - return OnFailurePolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.core.Workflow.WorkflowMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final OnFailurePolicy[] VALUES = values(); - - public static OnFailurePolicy valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OnFailurePolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.core.WorkflowMetadata.OnFailurePolicy) - } - - private int bitField0_; - public static final int QUALITY_OF_SERVICE_FIELD_NUMBER = 1; - private flyteidl.core.Execution.QualityOfService qualityOfService_; - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfService_ != null; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - /** - *
-     * Indicates the runtime priority of workflow executions. 
-     * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - return getQualityOfService(); - } - - public static final int ON_FAILURE_FIELD_NUMBER = 2; - private int onFailure_; - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-     * Defines how the system should behave when a failure is detected in the workflow execution.
-     * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - - public static final int TAGS_FIELD_NUMBER = 3; - private static final class TagsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> tags_; - private com.google.protobuf.MapField - internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - public boolean containsTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTags().getMap().containsKey(key); - } - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - public java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-     * 
- * - * map<string, string> tags = 3; - */ - - public java.lang.String getTagsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 (qualityOfService_ != null) { - output.writeMessage(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - output.writeEnum(2, onFailure_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetTags(), - TagsDefaultEntryHolder.defaultEntry, - 3); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (qualityOfService_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getQualityOfService()); - } - if (onFailure_ != flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.FAIL_IMMEDIATELY.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, onFailure_); - } - for (java.util.Map.Entry entry - : internalGetTags().getMap().entrySet()) { - com.google.protobuf.MapEntry - tags__ = TagsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, tags__); - } - 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.core.Workflow.WorkflowMetadata)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadata other = (flyteidl.core.Workflow.WorkflowMetadata) obj; - - if (hasQualityOfService() != other.hasQualityOfService()) return false; - if (hasQualityOfService()) { - if (!getQualityOfService() - .equals(other.getQualityOfService())) return false; - } - if (onFailure_ != other.onFailure_) return false; - if (!internalGetTags().equals( - other.internalGetTags())) 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 (hasQualityOfService()) { - hash = (37 * hash) + QUALITY_OF_SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getQualityOfService().hashCode(); - } - hash = (37 * hash) + ON_FAILURE_FIELD_NUMBER; - hash = (53 * hash) + onFailure_; - if (!internalGetTags().getMap().isEmpty()) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + internalGetTags().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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.core.Workflow.WorkflowMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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.core.Workflow.WorkflowMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadata 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.core.Workflow.WorkflowMetadata 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; - } - /** - *
-     * This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not
-     * percolate down to child entities (like tasks) launched by the workflow.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadata) - flyteidl.core.Workflow.WorkflowMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 3: - return internalGetTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 3: - return internalGetMutableTags(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadata.class, flyteidl.core.Workflow.WorkflowMetadata.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadata.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 (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - onFailure_ = 0; - - internalGetMutableTags().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata build() { - flyteidl.core.Workflow.WorkflowMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadata buildPartial() { - flyteidl.core.Workflow.WorkflowMetadata result = new flyteidl.core.Workflow.WorkflowMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (qualityOfServiceBuilder_ == null) { - result.qualityOfService_ = qualityOfService_; - } else { - result.qualityOfService_ = qualityOfServiceBuilder_.build(); - } - result.onFailure_ = onFailure_; - result.tags_ = internalGetTags(); - result.tags_.makeImmutable(); - result.bitField0_ = to_bitField0_; - 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.core.Workflow.WorkflowMetadata) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadata other) { - if (other == flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance()) return this; - if (other.hasQualityOfService()) { - mergeQualityOfService(other.getQualityOfService()); - } - if (other.onFailure_ != 0) { - setOnFailureValue(other.getOnFailureValue()); - } - internalGetMutableTags().mergeFrom( - other.internalGetTags()); - 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.core.Workflow.WorkflowMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Execution.QualityOfService qualityOfService_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> qualityOfServiceBuilder_; - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public boolean hasQualityOfService() { - return qualityOfServiceBuilder_ != null || qualityOfService_ != null; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService getQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - return qualityOfService_ == null ? flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } else { - return qualityOfServiceBuilder_.getMessage(); - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - qualityOfService_ = value; - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder setQualityOfService( - flyteidl.core.Execution.QualityOfService.Builder builderForValue) { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = builderForValue.build(); - onChanged(); - } else { - qualityOfServiceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder mergeQualityOfService(flyteidl.core.Execution.QualityOfService value) { - if (qualityOfServiceBuilder_ == null) { - if (qualityOfService_ != null) { - qualityOfService_ = - flyteidl.core.Execution.QualityOfService.newBuilder(qualityOfService_).mergeFrom(value).buildPartial(); - } else { - qualityOfService_ = value; - } - onChanged(); - } else { - qualityOfServiceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public Builder clearQualityOfService() { - if (qualityOfServiceBuilder_ == null) { - qualityOfService_ = null; - onChanged(); - } else { - qualityOfService_ = null; - qualityOfServiceBuilder_ = null; - } - - return this; - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfService.Builder getQualityOfServiceBuilder() { - - onChanged(); - return getQualityOfServiceFieldBuilder().getBuilder(); - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - public flyteidl.core.Execution.QualityOfServiceOrBuilder getQualityOfServiceOrBuilder() { - if (qualityOfServiceBuilder_ != null) { - return qualityOfServiceBuilder_.getMessageOrBuilder(); - } else { - return qualityOfService_ == null ? - flyteidl.core.Execution.QualityOfService.getDefaultInstance() : qualityOfService_; - } - } - /** - *
-       * Indicates the runtime priority of workflow executions. 
-       * 
- * - * .flyteidl.core.QualityOfService quality_of_service = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder> - getQualityOfServiceFieldBuilder() { - if (qualityOfServiceBuilder_ == null) { - qualityOfServiceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.QualityOfService, flyteidl.core.Execution.QualityOfService.Builder, flyteidl.core.Execution.QualityOfServiceOrBuilder>( - getQualityOfService(), - getParentForChildren(), - isClean()); - qualityOfService_ = null; - } - return qualityOfServiceBuilder_; - } - - private int onFailure_ = 0; - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public int getOnFailureValue() { - return onFailure_; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailureValue(int value) { - onFailure_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy getOnFailure() { - @SuppressWarnings("deprecation") - flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy result = flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.valueOf(onFailure_); - return result == null ? flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy.UNRECOGNIZED : result; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder setOnFailure(flyteidl.core.Workflow.WorkflowMetadata.OnFailurePolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - onFailure_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines how the system should behave when a failure is detected in the workflow execution.
-       * 
- * - * .flyteidl.core.WorkflowMetadata.OnFailurePolicy on_failure = 2; - */ - public Builder clearOnFailure() { - - onFailure_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> tags_; - private com.google.protobuf.MapField - internalGetTags() { - if (tags_ == null) { - return com.google.protobuf.MapField.emptyMapField( - TagsDefaultEntryHolder.defaultEntry); - } - return tags_; - } - private com.google.protobuf.MapField - internalGetMutableTags() { - onChanged();; - if (tags_ == null) { - tags_ = com.google.protobuf.MapField.newMapField( - TagsDefaultEntryHolder.defaultEntry); - } - if (!tags_.isMutable()) { - tags_ = tags_.copy(); - } - return tags_; - } - - public int getTagsCount() { - return internalGetTags().getMap().size(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public boolean containsTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetTags().getMap().containsKey(key); - } - /** - * Use {@link #getTagsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getTags() { - return getTagsMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public java.util.Map getTagsMap() { - return internalGetTags().getMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public java.lang.String getTagsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public java.lang.String getTagsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetTags().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearTags() { - internalGetMutableTags().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public Builder removeTags( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTags().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableTags() { - return internalGetMutableTags().getMutableMap(); - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - public Builder putTags( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableTags().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Arbitrary tags that allow users and the platform to store small but arbitrary labels
-       * 
- * - * map<string, string> tags = 3; - */ - - public Builder putAllTags( - java.util.Map values) { - internalGetMutableTags().getMutableMap() - .putAll(values); - return this; - } - @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.core.WorkflowMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadata) - private static final flyteidl.core.Workflow.WorkflowMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadata(); - } - - public static flyteidl.core.Workflow.WorkflowMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadata(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.core.Workflow.WorkflowMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowMetadataDefaultsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowMetadataDefaults) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Whether child nodes of the workflow are interruptible.
-     * 
- * - * bool interruptible = 1; - */ - boolean getInterruptible(); - } - /** - *
-   * The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to
-   * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it
-   * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes
-   * unless explicitly overridden at the node layer.
-   * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be
-   * added to both this object and the WorkflowMetadata object above.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class WorkflowMetadataDefaults extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowMetadataDefaults) - WorkflowMetadataDefaultsOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowMetadataDefaults.newBuilder() to construct. - private WorkflowMetadataDefaults(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowMetadataDefaults() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowMetadataDefaults( - 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 8: { - - interruptible_ = input.readBool(); - 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.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - public static final int INTERRUPTIBLE_FIELD_NUMBER = 1; - private boolean interruptible_; - /** - *
-     * Whether child nodes of the workflow are interruptible.
-     * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - - 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 (interruptible_ != false) { - output.writeBool(1, interruptible_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (interruptible_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, interruptible_); - } - 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.core.Workflow.WorkflowMetadataDefaults)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowMetadataDefaults other = (flyteidl.core.Workflow.WorkflowMetadataDefaults) obj; - - if (getInterruptible() - != other.getInterruptible()) 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(); - hash = (37 * hash) + INTERRUPTIBLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterruptible()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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.core.Workflow.WorkflowMetadataDefaults parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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.core.Workflow.WorkflowMetadataDefaults parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowMetadataDefaults 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.core.Workflow.WorkflowMetadataDefaults 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 difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to
-     * a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it
-     * is only relevant when a task executes. The settings here are the defaults that are passed to all nodes
-     * unless explicitly overridden at the node layer.
-     * If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be
-     * added to both this object and the WorkflowMetadata object above.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowMetadataDefaults} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowMetadataDefaults) - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowMetadataDefaults.class, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowMetadataDefaults.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(); - interruptible_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults build() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowMetadataDefaults buildPartial() { - flyteidl.core.Workflow.WorkflowMetadataDefaults result = new flyteidl.core.Workflow.WorkflowMetadataDefaults(this); - result.interruptible_ = interruptible_; - 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.core.Workflow.WorkflowMetadataDefaults) { - return mergeFrom((flyteidl.core.Workflow.WorkflowMetadataDefaults)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowMetadataDefaults other) { - if (other == flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance()) return this; - if (other.getInterruptible() != false) { - setInterruptible(other.getInterruptible()); - } - 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.core.Workflow.WorkflowMetadataDefaults parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowMetadataDefaults) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private boolean interruptible_ ; - /** - *
-       * Whether child nodes of the workflow are interruptible.
-       * 
- * - * bool interruptible = 1; - */ - public boolean getInterruptible() { - return interruptible_; - } - /** - *
-       * Whether child nodes of the workflow are interruptible.
-       * 
- * - * bool interruptible = 1; - */ - public Builder setInterruptible(boolean value) { - - interruptible_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether child nodes of the workflow are interruptible.
-       * 
- * - * bool interruptible = 1; - */ - public Builder clearInterruptible() { - - interruptible_ = false; - onChanged(); - return this; - } - @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.core.WorkflowMetadataDefaults) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowMetadataDefaults) - private static final flyteidl.core.Workflow.WorkflowMetadataDefaults DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowMetadataDefaults(); - } - - public static flyteidl.core.Workflow.WorkflowMetadataDefaults getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowMetadataDefaults parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowMetadataDefaults(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.core.Workflow.WorkflowMetadataDefaults getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowTemplateOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.WorkflowTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - boolean hasMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadata getMetadata(); - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - boolean hasInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterface getInterface(); - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder(); - - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesList(); - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.Node getNodes(int index); - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - int getNodesCount(); - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - java.util.List - getNodesOrBuilderList(); - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index); - - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.Binding getOutputs(int index); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - int getOutputsCount(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - java.util.List - getOutputsOrBuilderList(); - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index); - - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - boolean hasFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.Node getFailureNode(); - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder(); - - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - boolean hasMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults(); - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder(); - } - /** - *
-   * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-   * directed acyclic graph.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class WorkflowTemplate extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowTemplate) - WorkflowTemplateOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowTemplate.newBuilder() to construct. - private WorkflowTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowTemplate() { - nodes_ = java.util.Collections.emptyList(); - outputs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowTemplate( - 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; - } - case 18: { - flyteidl.core.Workflow.WorkflowMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (interface_ != null) { - subBuilder = interface_.toBuilder(); - } - interface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(interface_); - interface_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - nodes_.add( - input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry)); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - outputs_.add( - input.readMessage(flyteidl.core.Literals.Binding.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.Workflow.Node.Builder subBuilder = null; - if (failureNode_ != null) { - subBuilder = failureNode_.toBuilder(); - } - failureNode_ = input.readMessage(flyteidl.core.Workflow.Node.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(failureNode_); - failureNode_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder subBuilder = null; - if (metadataDefaults_ != null) { - subBuilder = metadataDefaults_.toBuilder(); - } - metadataDefaults_ = input.readMessage(flyteidl.core.Workflow.WorkflowMetadataDefaults.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadataDefaults_); - metadataDefaults_ = 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 { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * A globally unique identifier for the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int METADATA_FIELD_NUMBER = 2; - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Extra metadata about the workflow.
-     * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int INTERFACE_FIELD_NUMBER = 3; - private flyteidl.core.Interface.TypedInterface interface_; - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interface_ != null; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - /** - *
-     * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-     * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - return getInterface(); - } - - public static final int NODES_FIELD_NUMBER = 4; - private java.util.List nodes_; - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - return nodes_; - } - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - return nodes_.size(); - } - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - return nodes_.get(index); - } - /** - *
-     * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-     * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - return nodes_.get(index); - } - - public static final int OUTPUTS_FIELD_NUMBER = 5; - private java.util.List outputs_; - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - return outputs_; - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - return outputs_.size(); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - return outputs_.get(index); - } - /** - *
-     * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-     * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-     * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-     * bind final outputs.
-     * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-     * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-     * outputs from the output of a task.
-     * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - return outputs_.get(index); - } - - public static final int FAILURE_NODE_FIELD_NUMBER = 6; - private flyteidl.core.Workflow.Node failureNode_; - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNode_ != null; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - /** - *
-     *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-     * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-     * pb.lyft.flyte.core.Error.
-     * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - return getFailureNode(); - } - - public static final int METADATA_DEFAULTS_FIELD_NUMBER = 7; - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaults_ != null; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - /** - *
-     * workflow defaults
-     * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - return getMetadataDefaults(); - } - - 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()); - } - if (metadata_ != null) { - output.writeMessage(2, getMetadata()); - } - if (interface_ != null) { - output.writeMessage(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - output.writeMessage(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - output.writeMessage(5, outputs_.get(i)); - } - if (failureNode_ != null) { - output.writeMessage(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - output.writeMessage(7, getMetadataDefaults()); - } - 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()); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMetadata()); - } - if (interface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getInterface()); - } - for (int i = 0; i < nodes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, nodes_.get(i)); - } - for (int i = 0; i < outputs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, outputs_.get(i)); - } - if (failureNode_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getFailureNode()); - } - if (metadataDefaults_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getMetadataDefaults()); - } - 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.core.Workflow.WorkflowTemplate)) { - return super.equals(obj); - } - flyteidl.core.Workflow.WorkflowTemplate other = (flyteidl.core.Workflow.WorkflowTemplate) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (hasInterface() != other.hasInterface()) return false; - if (hasInterface()) { - if (!getInterface() - .equals(other.getInterface())) return false; - } - if (!getNodesList() - .equals(other.getNodesList())) return false; - if (!getOutputsList() - .equals(other.getOutputsList())) return false; - if (hasFailureNode() != other.hasFailureNode()) return false; - if (hasFailureNode()) { - if (!getFailureNode() - .equals(other.getFailureNode())) return false; - } - if (hasMetadataDefaults() != other.hasMetadataDefaults()) return false; - if (hasMetadataDefaults()) { - if (!getMetadataDefaults() - .equals(other.getMetadataDefaults())) 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(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasInterface()) { - hash = (37 * hash) + INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getInterface().hashCode(); - } - if (getNodesCount() > 0) { - hash = (37 * hash) + NODES_FIELD_NUMBER; - hash = (53 * hash) + getNodesList().hashCode(); - } - if (getOutputsCount() > 0) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputsList().hashCode(); - } - if (hasFailureNode()) { - hash = (37 * hash) + FAILURE_NODE_FIELD_NUMBER; - hash = (53 * hash) + getFailureNode().hashCode(); - } - if (hasMetadataDefaults()) { - hash = (37 * hash) + METADATA_DEFAULTS_FIELD_NUMBER; - hash = (53 * hash) + getMetadataDefaults().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.WorkflowTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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.core.Workflow.WorkflowTemplate parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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.core.Workflow.WorkflowTemplate parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.WorkflowTemplate 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.core.Workflow.WorkflowTemplate 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; - } - /** - *
-     * Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable,
-     * directed acyclic graph.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowTemplate} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowTemplate) - flyteidl.core.Workflow.WorkflowTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.WorkflowTemplate.class, flyteidl.core.Workflow.WorkflowTemplate.Builder.class); - } - - // Construct using flyteidl.core.Workflow.WorkflowTemplate.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getNodesFieldBuilder(); - getOutputsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (idBuilder_ == null) { - id_ = null; - } else { - id_ = null; - idBuilder_ = null; - } - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - if (interfaceBuilder_ == null) { - interface_ = null; - } else { - interface_ = null; - interfaceBuilder_ = null; - } - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - nodesBuilder_.clear(); - } - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - outputsBuilder_.clear(); - } - if (failureNodeBuilder_ == null) { - failureNode_ = null; - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_WorkflowTemplate_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate build() { - flyteidl.core.Workflow.WorkflowTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.WorkflowTemplate buildPartial() { - flyteidl.core.Workflow.WorkflowTemplate result = new flyteidl.core.Workflow.WorkflowTemplate(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - if (interfaceBuilder_ == null) { - result.interface_ = interface_; - } else { - result.interface_ = interfaceBuilder_.build(); - } - if (nodesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - nodes_ = java.util.Collections.unmodifiableList(nodes_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.nodes_ = nodes_; - } else { - result.nodes_ = nodesBuilder_.build(); - } - if (outputsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - outputs_ = java.util.Collections.unmodifiableList(outputs_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.build(); - } - if (failureNodeBuilder_ == null) { - result.failureNode_ = failureNode_; - } else { - result.failureNode_ = failureNodeBuilder_.build(); - } - if (metadataDefaultsBuilder_ == null) { - result.metadataDefaults_ = metadataDefaults_; - } else { - result.metadataDefaults_ = metadataDefaultsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.Workflow.WorkflowTemplate) { - return mergeFrom((flyteidl.core.Workflow.WorkflowTemplate)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.WorkflowTemplate other) { - if (other == flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasInterface()) { - mergeInterface(other.getInterface()); - } - if (nodesBuilder_ == null) { - if (!other.nodes_.isEmpty()) { - if (nodes_.isEmpty()) { - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureNodesIsMutable(); - nodes_.addAll(other.nodes_); - } - onChanged(); - } - } else { - if (!other.nodes_.isEmpty()) { - if (nodesBuilder_.isEmpty()) { - nodesBuilder_.dispose(); - nodesBuilder_ = null; - nodes_ = other.nodes_; - bitField0_ = (bitField0_ & ~0x00000008); - nodesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNodesFieldBuilder() : null; - } else { - nodesBuilder_.addAllMessages(other.nodes_); - } - } - } - if (outputsBuilder_ == null) { - if (!other.outputs_.isEmpty()) { - if (outputs_.isEmpty()) { - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureOutputsIsMutable(); - outputs_.addAll(other.outputs_); - } - onChanged(); - } - } else { - if (!other.outputs_.isEmpty()) { - if (outputsBuilder_.isEmpty()) { - outputsBuilder_.dispose(); - outputsBuilder_ = null; - outputs_ = other.outputs_; - bitField0_ = (bitField0_ & ~0x00000010); - outputsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOutputsFieldBuilder() : null; - } else { - outputsBuilder_.addAllMessages(other.outputs_); - } - } - } - if (other.hasFailureNode()) { - mergeFailureNode(other.getFailureNode()); - } - if (other.hasMetadataDefaults()) { - mergeMetadataDefaults(other.getMetadataDefaults()); - } - 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.core.Workflow.WorkflowTemplate parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.WorkflowTemplate) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - 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_; - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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(); - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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_; - } - } - /** - *
-       * A globally unique identifier for the workflow.
-       * 
- * - * .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_; - } - - private flyteidl.core.Workflow.WorkflowMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder setMetadata( - flyteidl.core.Workflow.WorkflowMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder mergeMetadata(flyteidl.core.Workflow.WorkflowMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.core.Workflow.WorkflowMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - public flyteidl.core.Workflow.WorkflowMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.core.Workflow.WorkflowMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Extra metadata about the workflow.
-       * 
- * - * .flyteidl.core.WorkflowMetadata metadata = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadata, flyteidl.core.Workflow.WorkflowMetadata.Builder, flyteidl.core.Workflow.WorkflowMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface interface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> interfaceBuilder_; - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public boolean hasInterface() { - return interfaceBuilder_ != null || interface_ != null; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getInterface() { - if (interfaceBuilder_ == null) { - return interface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } else { - return interfaceBuilder_.getMessage(); - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - interface_ = value; - onChanged(); - } else { - interfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder setInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (interfaceBuilder_ == null) { - interface_ = builderForValue.build(); - onChanged(); - } else { - interfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder mergeInterface(flyteidl.core.Interface.TypedInterface value) { - if (interfaceBuilder_ == null) { - if (interface_ != null) { - interface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(interface_).mergeFrom(value).buildPartial(); - } else { - interface_ = value; - } - onChanged(); - } else { - interfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public Builder clearInterface() { - if (interfaceBuilder_ == null) { - interface_ = null; - onChanged(); - } else { - interface_ = null; - interfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterface.Builder getInterfaceBuilder() { - - onChanged(); - return getInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getInterfaceOrBuilder() { - if (interfaceBuilder_ != null) { - return interfaceBuilder_.getMessageOrBuilder(); - } else { - return interface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : interface_; - } - } - /** - *
-       * Defines a strongly typed interface for the Workflow. This can include some optional parameters.
-       * 
- * - * .flyteidl.core.TypedInterface interface = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getInterfaceFieldBuilder() { - if (interfaceBuilder_ == null) { - interfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getInterface(), - getParentForChildren(), - isClean()); - interface_ = null; - } - return interfaceBuilder_; - } - - private java.util.List nodes_ = - java.util.Collections.emptyList(); - private void ensureNodesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - nodes_ = new java.util.ArrayList(nodes_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> nodesBuilder_; - - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List getNodesList() { - if (nodesBuilder_ == null) { - return java.util.Collections.unmodifiableList(nodes_); - } else { - return nodesBuilder_.getMessageList(); - } - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public int getNodesCount() { - if (nodesBuilder_ == null) { - return nodes_.size(); - } else { - return nodesBuilder_.getCount(); - } - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node getNodes(int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); - } else { - return nodesBuilder_.getMessage(index); - } - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.set(index, value); - onChanged(); - } else { - nodesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder setNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.set(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes(flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(value); - onChanged(); - } else { - nodesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node value) { - if (nodesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureNodesIsMutable(); - nodes_.add(index, value); - onChanged(); - } else { - nodesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addNodes( - int index, flyteidl.core.Workflow.Node.Builder builderForValue) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.add(index, builderForValue.build()); - onChanged(); - } else { - nodesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder addAllNodes( - java.lang.Iterable values) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, nodes_); - onChanged(); - } else { - nodesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder clearNodes() { - if (nodesBuilder_ == null) { - nodes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - nodesBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public Builder removeNodes(int index) { - if (nodesBuilder_ == null) { - ensureNodesIsMutable(); - nodes_.remove(index); - onChanged(); - } else { - nodesBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder getNodesBuilder( - int index) { - return getNodesFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.NodeOrBuilder getNodesOrBuilder( - int index) { - if (nodesBuilder_ == null) { - return nodes_.get(index); } else { - return nodesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesOrBuilderList() { - if (nodesBuilder_ != null) { - return nodesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(nodes_); - } - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder() { - return getNodesFieldBuilder().addBuilder( - flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public flyteidl.core.Workflow.Node.Builder addNodesBuilder( - int index) { - return getNodesFieldBuilder().addBuilder( - index, flyteidl.core.Workflow.Node.getDefaultInstance()); - } - /** - *
-       * A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs.
-       * 
- * - * repeated .flyteidl.core.Node nodes = 4; - */ - public java.util.List - getNodesBuilderList() { - return getNodesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getNodesFieldBuilder() { - if (nodesBuilder_ == null) { - nodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - nodes_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - nodes_ = null; - } - return nodesBuilder_; - } - - private java.util.List outputs_ = - java.util.Collections.emptyList(); - private void ensureOutputsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - outputs_ = new java.util.ArrayList(outputs_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> outputsBuilder_; - - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List getOutputsList() { - if (outputsBuilder_ == null) { - return java.util.Collections.unmodifiableList(outputs_); - } else { - return outputsBuilder_.getMessageList(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public int getOutputsCount() { - if (outputsBuilder_ == null) { - return outputs_.size(); - } else { - return outputsBuilder_.getCount(); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding getOutputs(int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); - } else { - return outputsBuilder_.getMessage(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.set(index, value); - onChanged(); - } else { - outputsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder setOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.set(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs(flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(value); - onChanged(); - } else { - outputsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputsIsMutable(); - outputs_.add(index, value); - onChanged(); - } else { - outputsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addOutputs( - int index, flyteidl.core.Literals.Binding.Builder builderForValue) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.add(index, builderForValue.build()); - onChanged(); - } else { - outputsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder addAllOutputs( - java.lang.Iterable values) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, outputs_); - onChanged(); - } else { - outputsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - outputsBuilder_.clear(); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public Builder removeOutputs(int index) { - if (outputsBuilder_ == null) { - ensureOutputsIsMutable(); - outputs_.remove(index); - onChanged(); - } else { - outputsBuilder_.remove(index); - } - return this; - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder getOutputsBuilder( - int index) { - return getOutputsFieldBuilder().getBuilder(index); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.BindingOrBuilder getOutputsOrBuilder( - int index) { - if (outputsBuilder_ == null) { - return outputs_.get(index); } else { - return outputsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsOrBuilderList() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(outputs_); - } - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder() { - return getOutputsFieldBuilder().addBuilder( - flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public flyteidl.core.Literals.Binding.Builder addOutputsBuilder( - int index) { - return getOutputsFieldBuilder().addBuilder( - index, flyteidl.core.Literals.Binding.getDefaultInstance()); - } - /** - *
-       * A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or
-       * specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow
-       * to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to
-       * bind final outputs.
-       * Most of these outputs will be Binding's with a BindingData of type OutputReference.  That is, your workflow can
-       * just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling
-       * outputs from the output of a task.
-       * 
- * - * repeated .flyteidl.core.Binding outputs = 5; - */ - public java.util.List - getOutputsBuilderList() { - return getOutputsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Literals.Binding, flyteidl.core.Literals.Binding.Builder, flyteidl.core.Literals.BindingOrBuilder>( - outputs_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - - private flyteidl.core.Workflow.Node failureNode_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> failureNodeBuilder_; - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public boolean hasFailureNode() { - return failureNodeBuilder_ != null || failureNode_ != null; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node getFailureNode() { - if (failureNodeBuilder_ == null) { - return failureNode_ == null ? flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } else { - return failureNodeBuilder_.getMessage(); - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - failureNode_ = value; - onChanged(); - } else { - failureNodeBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder setFailureNode( - flyteidl.core.Workflow.Node.Builder builderForValue) { - if (failureNodeBuilder_ == null) { - failureNode_ = builderForValue.build(); - onChanged(); - } else { - failureNodeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder mergeFailureNode(flyteidl.core.Workflow.Node value) { - if (failureNodeBuilder_ == null) { - if (failureNode_ != null) { - failureNode_ = - flyteidl.core.Workflow.Node.newBuilder(failureNode_).mergeFrom(value).buildPartial(); - } else { - failureNode_ = value; - } - onChanged(); - } else { - failureNodeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public Builder clearFailureNode() { - if (failureNodeBuilder_ == null) { - failureNode_ = null; - onChanged(); - } else { - failureNode_ = null; - failureNodeBuilder_ = null; - } - - return this; - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.Node.Builder getFailureNodeBuilder() { - - onChanged(); - return getFailureNodeFieldBuilder().getBuilder(); - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - public flyteidl.core.Workflow.NodeOrBuilder getFailureNodeOrBuilder() { - if (failureNodeBuilder_ != null) { - return failureNodeBuilder_.getMessageOrBuilder(); - } else { - return failureNode_ == null ? - flyteidl.core.Workflow.Node.getDefaultInstance() : failureNode_; - } - } - /** - *
-       *+optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed.
-       * The interface of this node must match the Workflow interface with an additional input named 'error' of type
-       * pb.lyft.flyte.core.Error.
-       * 
- * - * .flyteidl.core.Node failure_node = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder> - getFailureNodeFieldBuilder() { - if (failureNodeBuilder_ == null) { - failureNodeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.Node, flyteidl.core.Workflow.Node.Builder, flyteidl.core.Workflow.NodeOrBuilder>( - getFailureNode(), - getParentForChildren(), - isClean()); - failureNode_ = null; - } - return failureNodeBuilder_; - } - - private flyteidl.core.Workflow.WorkflowMetadataDefaults metadataDefaults_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> metadataDefaultsBuilder_; - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public boolean hasMetadataDefaults() { - return metadataDefaultsBuilder_ != null || metadataDefaults_ != null; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults getMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - return metadataDefaults_ == null ? flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } else { - return metadataDefaultsBuilder_.getMessage(); - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadataDefaults_ = value; - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder setMetadataDefaults( - flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder builderForValue) { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = builderForValue.build(); - onChanged(); - } else { - metadataDefaultsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder mergeMetadataDefaults(flyteidl.core.Workflow.WorkflowMetadataDefaults value) { - if (metadataDefaultsBuilder_ == null) { - if (metadataDefaults_ != null) { - metadataDefaults_ = - flyteidl.core.Workflow.WorkflowMetadataDefaults.newBuilder(metadataDefaults_).mergeFrom(value).buildPartial(); - } else { - metadataDefaults_ = value; - } - onChanged(); - } else { - metadataDefaultsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public Builder clearMetadataDefaults() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaults_ = null; - onChanged(); - } else { - metadataDefaults_ = null; - metadataDefaultsBuilder_ = null; - } - - return this; - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder getMetadataDefaultsBuilder() { - - onChanged(); - return getMetadataDefaultsFieldBuilder().getBuilder(); - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - public flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder getMetadataDefaultsOrBuilder() { - if (metadataDefaultsBuilder_ != null) { - return metadataDefaultsBuilder_.getMessageOrBuilder(); - } else { - return metadataDefaults_ == null ? - flyteidl.core.Workflow.WorkflowMetadataDefaults.getDefaultInstance() : metadataDefaults_; - } - } - /** - *
-       * workflow defaults
-       * 
- * - * .flyteidl.core.WorkflowMetadataDefaults metadata_defaults = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder> - getMetadataDefaultsFieldBuilder() { - if (metadataDefaultsBuilder_ == null) { - metadataDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowMetadataDefaults, flyteidl.core.Workflow.WorkflowMetadataDefaults.Builder, flyteidl.core.Workflow.WorkflowMetadataDefaultsOrBuilder>( - getMetadataDefaults(), - getParentForChildren(), - isClean()); - metadataDefaults_ = null; - } - return metadataDefaultsBuilder_; - } - @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.core.WorkflowTemplate) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowTemplate) - private static final flyteidl.core.Workflow.WorkflowTemplate DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.WorkflowTemplate(); - } - - public static flyteidl.core.Workflow.WorkflowTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowTemplate(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.core.Workflow.WorkflowTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeOverridesOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.core.TaskNodeOverrides) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - boolean hasResources(); - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - boolean hasExtendedResources(); - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - flyteidl.core.Tasks.ExtendedResources getExtendedResources(); - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder(); - } - /** - *
-   * Optional task node overrides that will be applied at task execution time.
-   * 
- * - * Protobuf type {@code flyteidl.core.TaskNodeOverrides} - */ - public static final class TaskNodeOverrides extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.TaskNodeOverrides) - TaskNodeOverridesOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNodeOverrides.newBuilder() to construct. - private TaskNodeOverrides(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNodeOverrides() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNodeOverrides( - 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.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Tasks.ExtendedResources.Builder subBuilder = null; - if (extendedResources_ != null) { - subBuilder = extendedResources_.toBuilder(); - } - extendedResources_ = input.readMessage(flyteidl.core.Tasks.ExtendedResources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(extendedResources_); - extendedResources_ = 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.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNodeOverrides.class, flyteidl.core.Workflow.TaskNodeOverrides.Builder.class); - } - - public static final int RESOURCES_FIELD_NUMBER = 1; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * A customizable interface to convey resources requested for a task container. 
-     * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int EXTENDED_RESOURCES_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.ExtendedResources extendedResources_; - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public boolean hasExtendedResources() { - return extendedResources_ != null; - } - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public flyteidl.core.Tasks.ExtendedResources getExtendedResources() { - return extendedResources_ == null ? flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } - /** - *
-     * Overrides for all non-standard resources, not captured by
-     * v1.ResourceRequirements, to allocate to a task.
-     * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder() { - return getExtendedResources(); - } - - 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 (resources_ != null) { - output.writeMessage(1, getResources()); - } - if (extendedResources_ != null) { - output.writeMessage(2, getExtendedResources()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getResources()); - } - if (extendedResources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExtendedResources()); - } - 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.core.Workflow.TaskNodeOverrides)) { - return super.equals(obj); - } - flyteidl.core.Workflow.TaskNodeOverrides other = (flyteidl.core.Workflow.TaskNodeOverrides) obj; - - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (hasExtendedResources() != other.hasExtendedResources()) return false; - if (hasExtendedResources()) { - if (!getExtendedResources() - .equals(other.getExtendedResources())) 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 (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - if (hasExtendedResources()) { - hash = (37 * hash) + EXTENDED_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getExtendedResources().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.Workflow.TaskNodeOverrides parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNodeOverrides 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.core.Workflow.TaskNodeOverrides parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNodeOverrides 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.core.Workflow.TaskNodeOverrides parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.Workflow.TaskNodeOverrides 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.core.Workflow.TaskNodeOverrides 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; - } - /** - *
-     * Optional task node overrides that will be applied at task execution time.
-     * 
- * - * Protobuf type {@code flyteidl.core.TaskNodeOverrides} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.TaskNodeOverrides) - flyteidl.core.Workflow.TaskNodeOverridesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.Workflow.TaskNodeOverrides.class, flyteidl.core.Workflow.TaskNodeOverrides.Builder.class); - } - - // Construct using flyteidl.core.Workflow.TaskNodeOverrides.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 (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - if (extendedResourcesBuilder_ == null) { - extendedResources_ = null; - } else { - extendedResources_ = null; - extendedResourcesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.Workflow.internal_static_flyteidl_core_TaskNodeOverrides_descriptor; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNodeOverrides getDefaultInstanceForType() { - return flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNodeOverrides build() { - flyteidl.core.Workflow.TaskNodeOverrides result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.Workflow.TaskNodeOverrides buildPartial() { - flyteidl.core.Workflow.TaskNodeOverrides result = new flyteidl.core.Workflow.TaskNodeOverrides(this); - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - if (extendedResourcesBuilder_ == null) { - result.extendedResources_ = extendedResources_; - } else { - result.extendedResources_ = extendedResourcesBuilder_.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.core.Workflow.TaskNodeOverrides) { - return mergeFrom((flyteidl.core.Workflow.TaskNodeOverrides)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.Workflow.TaskNodeOverrides other) { - if (other == flyteidl.core.Workflow.TaskNodeOverrides.getDefaultInstance()) return this; - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (other.hasExtendedResources()) { - mergeExtendedResources(other.getExtendedResources()); - } - 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.core.Workflow.TaskNodeOverrides parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.Workflow.TaskNodeOverrides) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * A customizable interface to convey resources requested for a task container. 
-       * 
- * - * .flyteidl.core.Resources resources = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private flyteidl.core.Tasks.ExtendedResources extendedResources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder> extendedResourcesBuilder_; - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public boolean hasExtendedResources() { - return extendedResourcesBuilder_ != null || extendedResources_ != null; - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public flyteidl.core.Tasks.ExtendedResources getExtendedResources() { - if (extendedResourcesBuilder_ == null) { - return extendedResources_ == null ? flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } else { - return extendedResourcesBuilder_.getMessage(); - } - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public Builder setExtendedResources(flyteidl.core.Tasks.ExtendedResources value) { - if (extendedResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - extendedResources_ = value; - onChanged(); - } else { - extendedResourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public Builder setExtendedResources( - flyteidl.core.Tasks.ExtendedResources.Builder builderForValue) { - if (extendedResourcesBuilder_ == null) { - extendedResources_ = builderForValue.build(); - onChanged(); - } else { - extendedResourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public Builder mergeExtendedResources(flyteidl.core.Tasks.ExtendedResources value) { - if (extendedResourcesBuilder_ == null) { - if (extendedResources_ != null) { - extendedResources_ = - flyteidl.core.Tasks.ExtendedResources.newBuilder(extendedResources_).mergeFrom(value).buildPartial(); - } else { - extendedResources_ = value; - } - onChanged(); - } else { - extendedResourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public Builder clearExtendedResources() { - if (extendedResourcesBuilder_ == null) { - extendedResources_ = null; - onChanged(); - } else { - extendedResources_ = null; - extendedResourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public flyteidl.core.Tasks.ExtendedResources.Builder getExtendedResourcesBuilder() { - - onChanged(); - return getExtendedResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - public flyteidl.core.Tasks.ExtendedResourcesOrBuilder getExtendedResourcesOrBuilder() { - if (extendedResourcesBuilder_ != null) { - return extendedResourcesBuilder_.getMessageOrBuilder(); - } else { - return extendedResources_ == null ? - flyteidl.core.Tasks.ExtendedResources.getDefaultInstance() : extendedResources_; - } - } - /** - *
-       * Overrides for all non-standard resources, not captured by
-       * v1.ResourceRequirements, to allocate to a task.
-       * 
- * - * .flyteidl.core.ExtendedResources extended_resources = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder> - getExtendedResourcesFieldBuilder() { - if (extendedResourcesBuilder_ == null) { - extendedResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.ExtendedResources, flyteidl.core.Tasks.ExtendedResources.Builder, flyteidl.core.Tasks.ExtendedResourcesOrBuilder>( - getExtendedResources(), - getParentForChildren(), - isClean()); - extendedResources_ = null; - } - return extendedResourcesBuilder_; - } - @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.core.TaskNodeOverrides) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.TaskNodeOverrides) - private static final flyteidl.core.Workflow.TaskNodeOverrides DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.Workflow.TaskNodeOverrides(); - } - - public static flyteidl.core.Workflow.TaskNodeOverrides getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNodeOverrides parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNodeOverrides(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.core.Workflow.TaskNodeOverrides getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_IfElseBlock_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_IfElseBlock_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_BranchNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_BranchNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ApproveCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ApproveCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SignalCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SignalCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_SleepCondition_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_SleepCondition_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_GateNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_GateNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_ArrayNode_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_ArrayNode_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_NodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_NodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Alias_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Alias_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_Node_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_Node_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadata_TagsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowMetadataDefaults_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowMetadataDefaults_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowTemplate_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowTemplate_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_TaskNodeOverrides_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_TaskNodeOverrides_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/core/workflow.proto\022\rflyteidl" + - ".core\032\035flyteidl/core/condition.proto\032\035fl" + - "yteidl/core/execution.proto\032\036flyteidl/co" + - "re/identifier.proto\032\035flyteidl/core/inter" + - "face.proto\032\034flyteidl/core/literals.proto" + - "\032\031flyteidl/core/tasks.proto\032\031flyteidl/co" + - "re/types.proto\032\034flyteidl/core/security.p" + - "roto\032\036google/protobuf/duration.proto\"f\n\007" + - "IfBlock\0223\n\tcondition\030\001 \001(\0132 .flyteidl.co" + - "re.BooleanExpression\022&\n\tthen_node\030\002 \001(\0132" + - "\023.flyteidl.core.Node\"\266\001\n\013IfElseBlock\022$\n\004" + - "case\030\001 \001(\0132\026.flyteidl.core.IfBlock\022%\n\005ot" + - "her\030\002 \003(\0132\026.flyteidl.core.IfBlock\022(\n\tels" + - "e_node\030\003 \001(\0132\023.flyteidl.core.NodeH\000\022%\n\005e" + - "rror\030\004 \001(\0132\024.flyteidl.core.ErrorH\000B\t\n\007de" + - "fault\"9\n\nBranchNode\022+\n\007if_else\030\001 \001(\0132\032.f" + - "lyteidl.core.IfElseBlock\"\177\n\010TaskNode\0221\n\014" + - "reference_id\030\001 \001(\0132\031.flyteidl.core.Ident" + - "ifierH\000\0223\n\toverrides\030\002 \001(\0132 .flyteidl.co" + - "re.TaskNodeOverridesB\013\n\treference\"\207\001\n\014Wo" + - "rkflowNode\0223\n\016launchplan_ref\030\001 \001(\0132\031.fly" + - "teidl.core.IdentifierH\000\0225\n\020sub_workflow_" + - "ref\030\002 \001(\0132\031.flyteidl.core.IdentifierH\000B\013" + - "\n\treference\"%\n\020ApproveCondition\022\021\n\tsigna" + - "l_id\030\001 \001(\t\"l\n\017SignalCondition\022\021\n\tsignal_" + - "id\030\001 \001(\t\022(\n\004type\030\002 \001(\0132\032.flyteidl.core.L" + - "iteralType\022\034\n\024output_variable_name\030\003 \001(\t" + - "\"=\n\016SleepCondition\022+\n\010duration\030\001 \001(\0132\031.g" + - "oogle.protobuf.Duration\"\255\001\n\010GateNode\0222\n\007" + - "approve\030\001 \001(\0132\037.flyteidl.core.ApproveCon" + - "ditionH\000\0220\n\006signal\030\002 \001(\0132\036.flyteidl.core" + - ".SignalConditionH\000\022.\n\005sleep\030\003 \001(\0132\035.flyt" + - "eidl.core.SleepConditionH\000B\013\n\tcondition\"" + - "\215\001\n\tArrayNode\022!\n\004node\030\001 \001(\0132\023.flyteidl.c" + - "ore.Node\022\023\n\013parallelism\030\002 \001(\r\022\027\n\rmin_suc" + - "cesses\030\003 \001(\rH\000\022\033\n\021min_success_ratio\030\004 \001(" + - "\002H\000B\022\n\020success_criteria\"\247\001\n\014NodeMetadata" + - "\022\014\n\004name\030\001 \001(\t\022*\n\007timeout\030\004 \001(\0132\031.google" + - ".protobuf.Duration\022-\n\007retries\030\005 \001(\0132\034.fl" + - "yteidl.core.RetryStrategy\022\027\n\rinterruptib" + - "le\030\006 \001(\010H\000B\025\n\023interruptible_value\"#\n\005Ali" + - "as\022\013\n\003var\030\001 \001(\t\022\r\n\005alias\030\002 \001(\t\"\260\003\n\004Node\022" + - "\n\n\002id\030\001 \001(\t\022-\n\010metadata\030\002 \001(\0132\033.flyteidl" + - ".core.NodeMetadata\022&\n\006inputs\030\003 \003(\0132\026.fly" + - "teidl.core.Binding\022\031\n\021upstream_node_ids\030" + - "\004 \003(\t\022,\n\016output_aliases\030\005 \003(\0132\024.flyteidl" + - ".core.Alias\022,\n\ttask_node\030\006 \001(\0132\027.flyteid" + - "l.core.TaskNodeH\000\0224\n\rworkflow_node\030\007 \001(\013" + - "2\033.flyteidl.core.WorkflowNodeH\000\0220\n\013branc" + - "h_node\030\010 \001(\0132\031.flyteidl.core.BranchNodeH" + - "\000\022,\n\tgate_node\030\t \001(\0132\027.flyteidl.core.Gat" + - "eNodeH\000\022.\n\narray_node\030\n \001(\0132\030.flyteidl.c" + - "ore.ArrayNodeH\000B\010\n\006target\"\315\002\n\020WorkflowMe" + - "tadata\022;\n\022quality_of_service\030\001 \001(\0132\037.fly" + - "teidl.core.QualityOfService\022C\n\non_failur" + - "e\030\002 \001(\0162/.flyteidl.core.WorkflowMetadata" + - ".OnFailurePolicy\0227\n\004tags\030\003 \003(\0132).flyteid" + - "l.core.WorkflowMetadata.TagsEntry\032+\n\tTag" + - "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"Q" + - "\n\017OnFailurePolicy\022\024\n\020FAIL_IMMEDIATELY\020\000\022" + - "(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\020" + - "\001\"1\n\030WorkflowMetadataDefaults\022\025\n\rinterru" + - "ptible\030\001 \001(\010\"\332\002\n\020WorkflowTemplate\022%\n\002id\030" + - "\001 \001(\0132\031.flyteidl.core.Identifier\0221\n\010meta" + - "data\030\002 \001(\0132\037.flyteidl.core.WorkflowMetad" + - "ata\0220\n\tinterface\030\003 \001(\0132\035.flyteidl.core.T" + - "ypedInterface\022\"\n\005nodes\030\004 \003(\0132\023.flyteidl." + - "core.Node\022\'\n\007outputs\030\005 \003(\0132\026.flyteidl.co" + - "re.Binding\022)\n\014failure_node\030\006 \001(\0132\023.flyte" + - "idl.core.Node\022B\n\021metadata_defaults\030\007 \001(\013" + - "2\'.flyteidl.core.WorkflowMetadataDefault" + - "s\"~\n\021TaskNodeOverrides\022+\n\tresources\030\001 \001(" + - "\0132\030.flyteidl.core.Resources\022<\n\022extended_" + - "resources\030\002 \001(\0132 .flyteidl.core.Extended" + - "ResourcesB - *required. Workflow template. - * - * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - boolean hasWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplate getWorkflow(); - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder(); - - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTasks(int index); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - int getTasksCount(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - java.util.List - getTasksOrBuilderList(); - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index); - } - /** - *
-   * Defines an enclosed package of workflow and tasks it references.
-   * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class WorkflowClosure extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.core.WorkflowClosure) - WorkflowClosureOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowClosure.newBuilder() to construct. - private WorkflowClosure(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowClosure() { - tasks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowClosure( - 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.Workflow.WorkflowTemplate.Builder subBuilder = null; - if (workflow_ != null) { - subBuilder = workflow_.toBuilder(); - } - workflow_ = input.readMessage(flyteidl.core.Workflow.WorkflowTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflow_); - workflow_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - tasks_.add( - input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - private int bitField0_; - public static final int WORKFLOW_FIELD_NUMBER = 1; - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflow_ != null; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - /** - *
-     *required. Workflow template.
-     * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - return getWorkflow(); - } - - public static final int TASKS_FIELD_NUMBER = 2; - private java.util.List tasks_; - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - return tasks_; - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - return tasks_.size(); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - return tasks_.get(index); - } - /** - *
-     *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-     * references tasks.
-     * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - return tasks_.get(index); - } - - 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 (workflow_ != null) { - output.writeMessage(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - output.writeMessage(2, tasks_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkflow()); - } - for (int i = 0; i < tasks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, tasks_.get(i)); - } - 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.core.WorkflowClosureOuterClass.WorkflowClosure)) { - return super.equals(obj); - } - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) obj; - - if (hasWorkflow() != other.hasWorkflow()) return false; - if (hasWorkflow()) { - if (!getWorkflow() - .equals(other.getWorkflow())) return false; - } - if (!getTasksList() - .equals(other.getTasksList())) 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 (hasWorkflow()) { - hash = (37 * hash) + WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getWorkflow().hashCode(); - } - if (getTasksCount() > 0) { - hash = (37 * hash) + TASKS_FIELD_NUMBER; - hash = (53 * hash) + getTasksList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.core.WorkflowClosureOuterClass.WorkflowClosure parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.core.WorkflowClosureOuterClass.WorkflowClosure parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure 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.core.WorkflowClosureOuterClass.WorkflowClosure 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; - } - /** - *
-     * Defines an enclosed package of workflow and tasks it references.
-     * 
- * - * Protobuf type {@code flyteidl.core.WorkflowClosure} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.core.WorkflowClosure) - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.class, flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.Builder.class); - } - - // Construct using flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getTasksFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (workflowBuilder_ == null) { - workflow_ = null; - } else { - workflow_ = null; - workflowBuilder_ = null; - } - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - tasksBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.core.WorkflowClosureOuterClass.internal_static_flyteidl_core_WorkflowClosure_descriptor; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure build() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure buildPartial() { - flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure result = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (workflowBuilder_ == null) { - result.workflow_ = workflow_; - } else { - result.workflow_ = workflowBuilder_.build(); - } - if (tasksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - tasks_ = java.util.Collections.unmodifiableList(tasks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.tasks_ = tasks_; - } else { - result.tasks_ = tasksBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.core.WorkflowClosureOuterClass.WorkflowClosure) { - return mergeFrom((flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure other) { - if (other == flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure.getDefaultInstance()) return this; - if (other.hasWorkflow()) { - mergeWorkflow(other.getWorkflow()); - } - if (tasksBuilder_ == null) { - if (!other.tasks_.isEmpty()) { - if (tasks_.isEmpty()) { - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureTasksIsMutable(); - tasks_.addAll(other.tasks_); - } - onChanged(); - } - } else { - if (!other.tasks_.isEmpty()) { - if (tasksBuilder_.isEmpty()) { - tasksBuilder_.dispose(); - tasksBuilder_ = null; - tasks_ = other.tasks_; - bitField0_ = (bitField0_ & ~0x00000002); - tasksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getTasksFieldBuilder() : null; - } else { - tasksBuilder_.addAllMessages(other.tasks_); - } - } - } - 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.core.WorkflowClosureOuterClass.WorkflowClosure parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.Workflow.WorkflowTemplate workflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> workflowBuilder_; - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public boolean hasWorkflow() { - return workflowBuilder_ != null || workflow_ != null; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate getWorkflow() { - if (workflowBuilder_ == null) { - return workflow_ == null ? flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } else { - return workflowBuilder_.getMessage(); - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflow_ = value; - onChanged(); - } else { - workflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder setWorkflow( - flyteidl.core.Workflow.WorkflowTemplate.Builder builderForValue) { - if (workflowBuilder_ == null) { - workflow_ = builderForValue.build(); - onChanged(); - } else { - workflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder mergeWorkflow(flyteidl.core.Workflow.WorkflowTemplate value) { - if (workflowBuilder_ == null) { - if (workflow_ != null) { - workflow_ = - flyteidl.core.Workflow.WorkflowTemplate.newBuilder(workflow_).mergeFrom(value).buildPartial(); - } else { - workflow_ = value; - } - onChanged(); - } else { - workflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public Builder clearWorkflow() { - if (workflowBuilder_ == null) { - workflow_ = null; - onChanged(); - } else { - workflow_ = null; - workflowBuilder_ = null; - } - - return this; - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplate.Builder getWorkflowBuilder() { - - onChanged(); - return getWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - public flyteidl.core.Workflow.WorkflowTemplateOrBuilder getWorkflowOrBuilder() { - if (workflowBuilder_ != null) { - return workflowBuilder_.getMessageOrBuilder(); - } else { - return workflow_ == null ? - flyteidl.core.Workflow.WorkflowTemplate.getDefaultInstance() : workflow_; - } - } - /** - *
-       *required. Workflow template.
-       * 
- * - * .flyteidl.core.WorkflowTemplate workflow = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder> - getWorkflowFieldBuilder() { - if (workflowBuilder_ == null) { - workflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Workflow.WorkflowTemplate, flyteidl.core.Workflow.WorkflowTemplate.Builder, flyteidl.core.Workflow.WorkflowTemplateOrBuilder>( - getWorkflow(), - getParentForChildren(), - isClean()); - workflow_ = null; - } - return workflowBuilder_; - } - - private java.util.List tasks_ = - java.util.Collections.emptyList(); - private void ensureTasksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - tasks_ = new java.util.ArrayList(tasks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> tasksBuilder_; - - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List getTasksList() { - if (tasksBuilder_ == null) { - return java.util.Collections.unmodifiableList(tasks_); - } else { - return tasksBuilder_.getMessageList(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public int getTasksCount() { - if (tasksBuilder_ == null) { - return tasks_.size(); - } else { - return tasksBuilder_.getCount(); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTasks(int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); - } else { - return tasksBuilder_.getMessage(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.set(index, value); - onChanged(); - } else { - tasksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder setTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.set(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks(flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(value); - onChanged(); - } else { - tasksBuilder_.addMessage(value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate value) { - if (tasksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTasksIsMutable(); - tasks_.add(index, value); - onChanged(); - } else { - tasksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addTasks( - int index, flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.add(index, builderForValue.build()); - onChanged(); - } else { - tasksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder addAllTasks( - java.lang.Iterable values) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tasks_); - onChanged(); - } else { - tasksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder clearTasks() { - if (tasksBuilder_ == null) { - tasks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - tasksBuilder_.clear(); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public Builder removeTasks(int index) { - if (tasksBuilder_ == null) { - ensureTasksIsMutable(); - tasks_.remove(index); - onChanged(); - } else { - tasksBuilder_.remove(index); - } - return this; - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTasksBuilder( - int index) { - return getTasksFieldBuilder().getBuilder(index); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTasksOrBuilder( - int index) { - if (tasksBuilder_ == null) { - return tasks_.get(index); } else { - return tasksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksOrBuilderList() { - if (tasksBuilder_ != null) { - return tasksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tasks_); - } - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder() { - return getTasksFieldBuilder().addBuilder( - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder addTasksBuilder( - int index) { - return getTasksFieldBuilder().addBuilder( - index, flyteidl.core.Tasks.TaskTemplate.getDefaultInstance()); - } - /** - *
-       *optional. A collection of tasks referenced by the workflow. Only needed if the workflow
-       * references tasks.
-       * 
- * - * repeated .flyteidl.core.TaskTemplate tasks = 2; - */ - public java.util.List - getTasksBuilderList() { - return getTasksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTasksFieldBuilder() { - if (tasksBuilder_ == null) { - tasksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - tasks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - tasks_ = null; - } - return tasksBuilder_; - } - @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.core.WorkflowClosure) - } - - // @@protoc_insertion_point(class_scope:flyteidl.core.WorkflowClosure) - private static final flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure(); - } - - public static flyteidl.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowClosure parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowClosure(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.core.WorkflowClosureOuterClass.WorkflowClosure getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_core_WorkflowClosure_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_core_WorkflowClosure_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$flyteidl/core/workflow_closure.proto\022\r" + - "flyteidl.core\032\034flyteidl/core/workflow.pr" + - "oto\032\031flyteidl/core/tasks.proto\"p\n\017Workfl" + - "owClosure\0221\n\010workflow\030\001 \001(\0132\037.flyteidl.c" + - "ore.WorkflowTemplate\022*\n\005tasks\030\002 \003(\0132\033.fl" + - "yteidl.core.TaskTemplateB.flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - boolean hasRawEvent(); - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.WorkflowExecutionEvent getRawEvent(); - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.WorkflowExecutionEventOrBuilder getRawEventOrBuilder(); - - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - boolean hasOutputData(); - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - boolean hasOutputInterface(); - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - flyteidl.core.Interface.TypedInterface getOutputInterface(); - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder(); - - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - boolean hasInputData(); - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - flyteidl.core.Literals.LiteralMap getInputData(); - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); - - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - java.util.List - getArtifactIdsList(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - int getArtifactIdsCount(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - java.util.List - getArtifactIdsOrBuilderList(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index); - - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - boolean hasReferenceExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder(); - - /** - * string principal = 7; - */ - java.lang.String getPrincipal(); - /** - * string principal = 7; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - boolean hasLaunchPlanId(); - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); - } - /** - *
-   * This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional
-   * information that downstream consumers may find useful.
-   * 
- * - * Protobuf type {@code flyteidl.event.CloudEventWorkflowExecution} - */ - public static final class CloudEventWorkflowExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.CloudEventWorkflowExecution) - CloudEventWorkflowExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudEventWorkflowExecution.newBuilder() to construct. - private CloudEventWorkflowExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudEventWorkflowExecution() { - artifactIds_ = java.util.Collections.emptyList(); - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudEventWorkflowExecution( - 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.event.Event.WorkflowExecutionEvent.Builder subBuilder = null; - if (rawEvent_ != null) { - subBuilder = rawEvent_.toBuilder(); - } - rawEvent_ = input.readMessage(flyteidl.event.Event.WorkflowExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawEvent_); - rawEvent_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputData_ != null) { - subBuilder = outputData_.toBuilder(); - } - outputData_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputData_); - outputData_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (outputInterface_ != null) { - subBuilder = outputInterface_.toBuilder(); - } - outputInterface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInterface_); - outputInterface_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputData_ != null) { - subBuilder = inputData_.toBuilder(); - } - inputData_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputData_); - inputData_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - artifactIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - artifactIds_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - break; - } - case 50: { - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (referenceExecution_ != null) { - subBuilder = referenceExecution_.toBuilder(); - } - referenceExecution_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(referenceExecution_); - referenceExecution_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 66: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (launchPlanId_ != null) { - subBuilder = launchPlanId_.toBuilder(); - } - launchPlanId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlanId_); - launchPlanId_ = 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 { - if (((mutable_bitField0_ & 0x00000010) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventWorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventWorkflowExecution.class, flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder.class); - } - - private int bitField0_; - public static final int RAW_EVENT_FIELD_NUMBER = 1; - private flyteidl.event.Event.WorkflowExecutionEvent rawEvent_; - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEvent_ != null; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getRawEvent() { - return rawEvent_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : rawEvent_; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getRawEventOrBuilder() { - return getRawEvent(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap outputData_; - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public boolean hasOutputData() { - return outputData_ != null; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - return getOutputData(); - } - - public static final int OUTPUT_INTERFACE_FIELD_NUMBER = 3; - private flyteidl.core.Interface.TypedInterface outputInterface_; - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public boolean hasOutputInterface() { - return outputInterface_ != null; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getOutputInterface() { - return outputInterface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder() { - return getOutputInterface(); - } - - public static final int INPUT_DATA_FIELD_NUMBER = 4; - private flyteidl.core.Literals.LiteralMap inputData_; - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public boolean hasInputData() { - return inputData_ != null; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - return inputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - return getInputData(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 5; - private java.util.List artifactIds_; - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public int getArtifactIdsCount() { - return artifactIds_.size(); - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - return artifactIds_.get(index); - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - return artifactIds_.get(index); - } - - public static final int REFERENCE_EXECUTION_FIELD_NUMBER = 6; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public boolean hasReferenceExecution() { - return referenceExecution_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - return getReferenceExecution(); - } - - public static final int PRINCIPAL_FIELD_NUMBER = 7; - private volatile java.lang.Object principal_; - /** - * string principal = 7; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - * string principal = 7; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 8; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public boolean hasLaunchPlanId() { - return launchPlanId_ != null; - } - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - return getLaunchPlanId(); - } - - 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 (rawEvent_ != null) { - output.writeMessage(1, getRawEvent()); - } - if (outputData_ != null) { - output.writeMessage(2, getOutputData()); - } - if (outputInterface_ != null) { - output.writeMessage(3, getOutputInterface()); - } - if (inputData_ != null) { - output.writeMessage(4, getInputData()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(5, artifactIds_.get(i)); - } - if (referenceExecution_ != null) { - output.writeMessage(6, getReferenceExecution()); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); - } - if (launchPlanId_ != null) { - output.writeMessage(8, getLaunchPlanId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rawEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRawEvent()); - } - if (outputData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputData()); - } - if (outputInterface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputInterface()); - } - if (inputData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getInputData()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, artifactIds_.get(i)); - } - if (referenceExecution_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getReferenceExecution()); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); - } - if (launchPlanId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLaunchPlanId()); - } - 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.event.Cloudevents.CloudEventWorkflowExecution)) { - return super.equals(obj); - } - flyteidl.event.Cloudevents.CloudEventWorkflowExecution other = (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) obj; - - if (hasRawEvent() != other.hasRawEvent()) return false; - if (hasRawEvent()) { - if (!getRawEvent() - .equals(other.getRawEvent())) return false; - } - if (hasOutputData() != other.hasOutputData()) return false; - if (hasOutputData()) { - if (!getOutputData() - .equals(other.getOutputData())) return false; - } - if (hasOutputInterface() != other.hasOutputInterface()) return false; - if (hasOutputInterface()) { - if (!getOutputInterface() - .equals(other.getOutputInterface())) return false; - } - if (hasInputData() != other.hasInputData()) return false; - if (hasInputData()) { - if (!getInputData() - .equals(other.getInputData())) return false; - } - if (!getArtifactIdsList() - .equals(other.getArtifactIdsList())) return false; - if (hasReferenceExecution() != other.hasReferenceExecution()) return false; - if (hasReferenceExecution()) { - if (!getReferenceExecution() - .equals(other.getReferenceExecution())) return false; - } - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; - if (hasLaunchPlanId()) { - if (!getLaunchPlanId() - .equals(other.getLaunchPlanId())) 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 (hasRawEvent()) { - hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getRawEvent().hashCode(); - } - if (hasOutputData()) { - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - } - if (hasOutputInterface()) { - hash = (37 * hash) + OUTPUT_INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getOutputInterface().hashCode(); - } - if (hasInputData()) { - hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getInputData().hashCode(); - } - if (getArtifactIdsCount() > 0) { - hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactIdsList().hashCode(); - } - if (hasReferenceExecution()) { - hash = (37 * hash) + REFERENCE_EXECUTION_FIELD_NUMBER; - hash = (53 * hash) + getReferenceExecution().hashCode(); - } - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - if (hasLaunchPlanId()) { - hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlanId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution 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.event.Cloudevents.CloudEventWorkflowExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution 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.event.Cloudevents.CloudEventWorkflowExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution 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.event.Cloudevents.CloudEventWorkflowExecution 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; - } - /** - *
-     * This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional
-     * information that downstream consumers may find useful.
-     * 
- * - * Protobuf type {@code flyteidl.event.CloudEventWorkflowExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.CloudEventWorkflowExecution) - flyteidl.event.Cloudevents.CloudEventWorkflowExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventWorkflowExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventWorkflowExecution.class, flyteidl.event.Cloudevents.CloudEventWorkflowExecution.Builder.class); - } - - // Construct using flyteidl.event.Cloudevents.CloudEventWorkflowExecution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactIdsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rawEventBuilder_ == null) { - rawEvent_ = null; - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - if (outputDataBuilder_ == null) { - outputData_ = null; - } else { - outputData_ = null; - outputDataBuilder_ = null; - } - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; - } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; - } - if (inputDataBuilder_ == null) { - inputData_ = null; - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - } else { - artifactIdsBuilder_.clear(); - } - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - principal_ = ""; - - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution getDefaultInstanceForType() { - return flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution build() { - flyteidl.event.Cloudevents.CloudEventWorkflowExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventWorkflowExecution buildPartial() { - flyteidl.event.Cloudevents.CloudEventWorkflowExecution result = new flyteidl.event.Cloudevents.CloudEventWorkflowExecution(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rawEventBuilder_ == null) { - result.rawEvent_ = rawEvent_; - } else { - result.rawEvent_ = rawEventBuilder_.build(); - } - if (outputDataBuilder_ == null) { - result.outputData_ = outputData_; - } else { - result.outputData_ = outputDataBuilder_.build(); - } - if (outputInterfaceBuilder_ == null) { - result.outputInterface_ = outputInterface_; - } else { - result.outputInterface_ = outputInterfaceBuilder_.build(); - } - if (inputDataBuilder_ == null) { - result.inputData_ = inputData_; - } else { - result.inputData_ = inputDataBuilder_.build(); - } - if (artifactIdsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.artifactIds_ = artifactIds_; - } else { - result.artifactIds_ = artifactIdsBuilder_.build(); - } - if (referenceExecutionBuilder_ == null) { - result.referenceExecution_ = referenceExecution_; - } else { - result.referenceExecution_ = referenceExecutionBuilder_.build(); - } - result.principal_ = principal_; - if (launchPlanIdBuilder_ == null) { - result.launchPlanId_ = launchPlanId_; - } else { - result.launchPlanId_ = launchPlanIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.event.Cloudevents.CloudEventWorkflowExecution) { - return mergeFrom((flyteidl.event.Cloudevents.CloudEventWorkflowExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventWorkflowExecution other) { - if (other == flyteidl.event.Cloudevents.CloudEventWorkflowExecution.getDefaultInstance()) return this; - if (other.hasRawEvent()) { - mergeRawEvent(other.getRawEvent()); - } - if (other.hasOutputData()) { - mergeOutputData(other.getOutputData()); - } - if (other.hasOutputInterface()) { - mergeOutputInterface(other.getOutputInterface()); - } - if (other.hasInputData()) { - mergeInputData(other.getInputData()); - } - if (artifactIdsBuilder_ == null) { - if (!other.artifactIds_.isEmpty()) { - if (artifactIds_.isEmpty()) { - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureArtifactIdsIsMutable(); - artifactIds_.addAll(other.artifactIds_); - } - onChanged(); - } - } else { - if (!other.artifactIds_.isEmpty()) { - if (artifactIdsBuilder_.isEmpty()) { - artifactIdsBuilder_.dispose(); - artifactIdsBuilder_ = null; - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000010); - artifactIdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactIdsFieldBuilder() : null; - } else { - artifactIdsBuilder_.addAllMessages(other.artifactIds_); - } - } - } - if (other.hasReferenceExecution()) { - mergeReferenceExecution(other.getReferenceExecution()); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (other.hasLaunchPlanId()) { - mergeLaunchPlanId(other.getLaunchPlanId()); - } - 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.event.Cloudevents.CloudEventWorkflowExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Cloudevents.CloudEventWorkflowExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.event.Event.WorkflowExecutionEvent rawEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> rawEventBuilder_; - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEventBuilder_ != null || rawEvent_ != null; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.WorkflowExecutionEvent getRawEvent() { - if (rawEventBuilder_ == null) { - return rawEvent_ == null ? flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : rawEvent_; - } else { - return rawEventBuilder_.getMessage(); - } - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public Builder setRawEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawEvent_ = value; - onChanged(); - } else { - rawEventBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public Builder setRawEvent( - flyteidl.event.Event.WorkflowExecutionEvent.Builder builderForValue) { - if (rawEventBuilder_ == null) { - rawEvent_ = builderForValue.build(); - onChanged(); - } else { - rawEventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public Builder mergeRawEvent(flyteidl.event.Event.WorkflowExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (rawEvent_ != null) { - rawEvent_ = - flyteidl.event.Event.WorkflowExecutionEvent.newBuilder(rawEvent_).mergeFrom(value).buildPartial(); - } else { - rawEvent_ = value; - } - onChanged(); - } else { - rawEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public Builder clearRawEvent() { - if (rawEventBuilder_ == null) { - rawEvent_ = null; - onChanged(); - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.WorkflowExecutionEvent.Builder getRawEventBuilder() { - - onChanged(); - return getRawEventFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.WorkflowExecutionEventOrBuilder getRawEventOrBuilder() { - if (rawEventBuilder_ != null) { - return rawEventBuilder_.getMessageOrBuilder(); - } else { - return rawEvent_ == null ? - flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance() : rawEvent_; - } - } - /** - * .flyteidl.event.WorkflowExecutionEvent raw_event = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder> - getRawEventFieldBuilder() { - if (rawEventBuilder_ == null) { - rawEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowExecutionEvent, flyteidl.event.Event.WorkflowExecutionEvent.Builder, flyteidl.event.Event.WorkflowExecutionEventOrBuilder>( - getRawEvent(), - getParentForChildren(), - isClean()); - rawEvent_ = null; - } - return rawEventBuilder_; - } - - private flyteidl.core.Literals.LiteralMap outputData_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public boolean hasOutputData() { - return outputDataBuilder_ != null || outputData_ != null; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } else { - return outputDataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputData_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputData_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputData_ != null) { - outputData_ = - flyteidl.core.Literals.LiteralMap.newBuilder(outputData_).mergeFrom(value).buildPartial(); - } else { - outputData_ = value; - } - onChanged(); - } else { - outputDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - outputData_ = null; - onChanged(); - } else { - outputData_ = null; - outputDataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - - onChanged(); - return getOutputDataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputDataBuilder_ != null) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - return outputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } - } - /** - * .flyteidl.core.LiteralMap output_data = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getOutputData(), - getParentForChildren(), - isClean()); - outputData_ = null; - } - return outputDataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface outputInterface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> outputInterfaceBuilder_; - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public boolean hasOutputInterface() { - return outputInterfaceBuilder_ != null || outputInterface_ != null; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public flyteidl.core.Interface.TypedInterface getOutputInterface() { - if (outputInterfaceBuilder_ == null) { - return outputInterface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } else { - return outputInterfaceBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public Builder setOutputInterface(flyteidl.core.Interface.TypedInterface value) { - if (outputInterfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputInterface_ = value; - onChanged(); - } else { - outputInterfaceBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public Builder setOutputInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = builderForValue.build(); - onChanged(); - } else { - outputInterfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public Builder mergeOutputInterface(flyteidl.core.Interface.TypedInterface value) { - if (outputInterfaceBuilder_ == null) { - if (outputInterface_ != null) { - outputInterface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(outputInterface_).mergeFrom(value).buildPartial(); - } else { - outputInterface_ = value; - } - onChanged(); - } else { - outputInterfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public Builder clearOutputInterface() { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; - onChanged(); - } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public flyteidl.core.Interface.TypedInterface.Builder getOutputInterfaceBuilder() { - - onChanged(); - return getOutputInterfaceFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder() { - if (outputInterfaceBuilder_ != null) { - return outputInterfaceBuilder_.getMessageOrBuilder(); - } else { - return outputInterface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } - } - /** - * .flyteidl.core.TypedInterface output_interface = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getOutputInterfaceFieldBuilder() { - if (outputInterfaceBuilder_ == null) { - outputInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getOutputInterface(), - getParentForChildren(), - isClean()); - outputInterface_ = null; - } - return outputInterfaceBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputData_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public boolean hasInputData() { - return inputDataBuilder_ != null || inputData_ != null; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputDataBuilder_ == null) { - return inputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } else { - return inputDataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputData_ = value; - onChanged(); - } else { - inputDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public Builder setInputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputDataBuilder_ == null) { - inputData_ = builderForValue.build(); - onChanged(); - } else { - inputDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (inputData_ != null) { - inputData_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputData_).mergeFrom(value).buildPartial(); - } else { - inputData_ = value; - } - onChanged(); - } else { - inputDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public Builder clearInputData() { - if (inputDataBuilder_ == null) { - inputData_ = null; - onChanged(); - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { - - onChanged(); - return getInputDataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if (inputDataBuilder_ != null) { - return inputDataBuilder_.getMessageOrBuilder(); - } else { - return inputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } - } - /** - * .flyteidl.core.LiteralMap input_data = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputDataFieldBuilder() { - if (inputDataBuilder_ == null) { - inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputData(), - getParentForChildren(), - isClean()); - inputData_ = null; - } - return inputDataBuilder_; - } - - private java.util.List artifactIds_ = - java.util.Collections.emptyList(); - private void ensureArtifactIdsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - artifactIds_ = new java.util.ArrayList(artifactIds_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdsBuilder_; - - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public java.util.List getArtifactIdsList() { - if (artifactIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactIds_); - } else { - return artifactIdsBuilder_.getMessageList(); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); - } else { - return artifactIdsBuilder_.getMessage(index); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, value); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder addArtifactIds( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder addAllArtifactIds( - java.lang.Iterable values) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactIds_); - onChanged(); - } else { - artifactIdsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder clearArtifactIds() { - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - artifactIdsBuilder_.clear(); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public Builder removeArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.remove(index); - onChanged(); - } else { - artifactIdsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().getBuilder(index); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); } else { - return artifactIdsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - if (artifactIdsBuilder_ != null) { - return artifactIdsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifactIds_); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { - return getArtifactIdsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 5; - */ - public java.util.List - getArtifactIdsBuilderList() { - return getArtifactIdsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdsFieldBuilder() { - if (artifactIdsBuilder_ == null) { - artifactIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - artifactIds_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - artifactIds_ = null; - } - return artifactIdsBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier referenceExecution_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> referenceExecutionBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public boolean hasReferenceExecution() { - return referenceExecutionBuilder_ != null || referenceExecution_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - return referenceExecution_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } else { - return referenceExecutionBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public Builder setReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - referenceExecution_ = value; - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public Builder setReferenceExecution( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = builderForValue.build(); - onChanged(); - } else { - referenceExecutionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public Builder mergeReferenceExecution(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (referenceExecutionBuilder_ == null) { - if (referenceExecution_ != null) { - referenceExecution_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(referenceExecution_).mergeFrom(value).buildPartial(); - } else { - referenceExecution_ = value; - } - onChanged(); - } else { - referenceExecutionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public Builder clearReferenceExecution() { - if (referenceExecutionBuilder_ == null) { - referenceExecution_ = null; - onChanged(); - } else { - referenceExecution_ = null; - referenceExecutionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getReferenceExecutionBuilder() { - - onChanged(); - return getReferenceExecutionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getReferenceExecutionOrBuilder() { - if (referenceExecutionBuilder_ != null) { - return referenceExecutionBuilder_.getMessageOrBuilder(); - } else { - return referenceExecution_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : referenceExecution_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier reference_execution = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getReferenceExecutionFieldBuilder() { - if (referenceExecutionBuilder_ == null) { - referenceExecutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getReferenceExecution(), - getParentForChildren(), - isClean()); - referenceExecution_ = null; - } - return referenceExecutionBuilder_; - } - - private java.lang.Object principal_ = ""; - /** - * string principal = 7; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string principal = 7; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string principal = 7; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - * string principal = 7; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - * string principal = 7; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public boolean hasLaunchPlanId() { - return launchPlanIdBuilder_ != null || launchPlanId_ != null; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } else { - return launchPlanIdBuilder_.getMessage(); - } - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlanId_ = value; - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder setLaunchPlanId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = builderForValue.build(); - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (launchPlanId_ != null) { - launchPlanId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlanId_).mergeFrom(value).buildPartial(); - } else { - launchPlanId_ = value; - } - onChanged(); - } else { - launchPlanIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder clearLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - onChanged(); - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { - - onChanged(); - return getLaunchPlanIdFieldBuilder().getBuilder(); - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - if (launchPlanIdBuilder_ != null) { - return launchPlanIdBuilder_.getMessageOrBuilder(); - } else { - return launchPlanId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanIdFieldBuilder() { - if (launchPlanIdBuilder_ == null) { - launchPlanIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlanId(), - getParentForChildren(), - isClean()); - launchPlanId_ = null; - } - return launchPlanIdBuilder_; - } - @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.event.CloudEventWorkflowExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventWorkflowExecution) - private static final flyteidl.event.Cloudevents.CloudEventWorkflowExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Cloudevents.CloudEventWorkflowExecution(); - } - - public static flyteidl.event.Cloudevents.CloudEventWorkflowExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEventWorkflowExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventWorkflowExecution(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.event.Cloudevents.CloudEventWorkflowExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CloudEventNodeExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.CloudEventNodeExecution) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - boolean hasRawEvent(); - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.NodeExecutionEvent getRawEvent(); - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.NodeExecutionEventOrBuilder getRawEventOrBuilder(); - - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - boolean hasTaskExecId(); - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecId(); - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecIdOrBuilder(); - - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - boolean hasOutputData(); - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - boolean hasOutputInterface(); - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - flyteidl.core.Interface.TypedInterface getOutputInterface(); - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder(); - - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - boolean hasInputData(); - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - flyteidl.core.Literals.LiteralMap getInputData(); - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); - - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - java.util.List - getArtifactIdsList(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - int getArtifactIdsCount(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - java.util.List - getArtifactIdsOrBuilderList(); - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index); - - /** - * string principal = 7; - */ - java.lang.String getPrincipal(); - /** - * string principal = 7; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - boolean hasLaunchPlanId(); - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.CloudEventNodeExecution} - */ - public static final class CloudEventNodeExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.CloudEventNodeExecution) - CloudEventNodeExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudEventNodeExecution.newBuilder() to construct. - private CloudEventNodeExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudEventNodeExecution() { - artifactIds_ = java.util.Collections.emptyList(); - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudEventNodeExecution( - 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.event.Event.NodeExecutionEvent.Builder subBuilder = null; - if (rawEvent_ != null) { - subBuilder = rawEvent_.toBuilder(); - } - rawEvent_ = input.readMessage(flyteidl.event.Event.NodeExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawEvent_); - rawEvent_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder subBuilder = null; - if (taskExecId_ != null) { - subBuilder = taskExecId_.toBuilder(); - } - taskExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskExecId_); - taskExecId_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputData_ != null) { - subBuilder = outputData_.toBuilder(); - } - outputData_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputData_); - outputData_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.core.Interface.TypedInterface.Builder subBuilder = null; - if (outputInterface_ != null) { - subBuilder = outputInterface_.toBuilder(); - } - outputInterface_ = input.readMessage(flyteidl.core.Interface.TypedInterface.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputInterface_); - outputInterface_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputData_ != null) { - subBuilder = inputData_.toBuilder(); - } - inputData_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputData_); - inputData_ = subBuilder.buildPartial(); - } - - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - artifactIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - artifactIds_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - break; - } - case 66: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (launchPlanId_ != null) { - subBuilder = launchPlanId_.toBuilder(); - } - launchPlanId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlanId_); - launchPlanId_ = 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 { - if (((mutable_bitField0_ & 0x00000020) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventNodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventNodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventNodeExecution.class, flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder.class); - } - - private int bitField0_; - public static final int RAW_EVENT_FIELD_NUMBER = 1; - private flyteidl.event.Event.NodeExecutionEvent rawEvent_; - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEvent_ != null; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.NodeExecutionEvent getRawEvent() { - return rawEvent_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : rawEvent_; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getRawEventOrBuilder() { - return getRawEvent(); - } - - public static final int TASK_EXEC_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecId_; - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public boolean hasTaskExecId() { - return taskExecId_ != null; - } - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecId() { - return taskExecId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecId_; - } - /** - *
-     * The relevant task execution if applicable
-     * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecIdOrBuilder() { - return getTaskExecId(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 3; - private flyteidl.core.Literals.LiteralMap outputData_; - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public boolean hasOutputData() { - return outputData_ != null; - } - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } - /** - *
-     * Hydrated output
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - return getOutputData(); - } - - public static final int OUTPUT_INTERFACE_FIELD_NUMBER = 4; - private flyteidl.core.Interface.TypedInterface outputInterface_; - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public boolean hasOutputInterface() { - return outputInterface_ != null; - } - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getOutputInterface() { - return outputInterface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } - /** - *
-     * The typed interface for the task that produced the event.
-     * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder() { - return getOutputInterface(); - } - - public static final int INPUT_DATA_FIELD_NUMBER = 5; - private flyteidl.core.Literals.LiteralMap inputData_; - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public boolean hasInputData() { - return inputData_ != null; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - return inputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - return getInputData(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 6; - private java.util.List artifactIds_; - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public int getArtifactIdsCount() { - return artifactIds_.size(); - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - return artifactIds_.get(index); - } - /** - *
-     * The following are ExecutionMetadata fields
-     * We can't have the ExecutionMetadata object directly because of import cycle
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - return artifactIds_.get(index); - } - - public static final int PRINCIPAL_FIELD_NUMBER = 7; - private volatile java.lang.Object principal_; - /** - * string principal = 7; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - * string principal = 7; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 8; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public boolean hasLaunchPlanId() { - return launchPlanId_ != null; - } - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - /** - *
-     * The ID of the LP that generated the execution that generated the Artifact.
-     * Here for provenance information.
-     * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - return getLaunchPlanId(); - } - - 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 (rawEvent_ != null) { - output.writeMessage(1, getRawEvent()); - } - if (taskExecId_ != null) { - output.writeMessage(2, getTaskExecId()); - } - if (outputData_ != null) { - output.writeMessage(3, getOutputData()); - } - if (outputInterface_ != null) { - output.writeMessage(4, getOutputInterface()); - } - if (inputData_ != null) { - output.writeMessage(5, getInputData()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(6, artifactIds_.get(i)); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, principal_); - } - if (launchPlanId_ != null) { - output.writeMessage(8, getLaunchPlanId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rawEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRawEvent()); - } - if (taskExecId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTaskExecId()); - } - if (outputData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getOutputData()); - } - if (outputInterface_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputInterface()); - } - if (inputData_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getInputData()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, artifactIds_.get(i)); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, principal_); - } - if (launchPlanId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getLaunchPlanId()); - } - 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.event.Cloudevents.CloudEventNodeExecution)) { - return super.equals(obj); - } - flyteidl.event.Cloudevents.CloudEventNodeExecution other = (flyteidl.event.Cloudevents.CloudEventNodeExecution) obj; - - if (hasRawEvent() != other.hasRawEvent()) return false; - if (hasRawEvent()) { - if (!getRawEvent() - .equals(other.getRawEvent())) return false; - } - if (hasTaskExecId() != other.hasTaskExecId()) return false; - if (hasTaskExecId()) { - if (!getTaskExecId() - .equals(other.getTaskExecId())) return false; - } - if (hasOutputData() != other.hasOutputData()) return false; - if (hasOutputData()) { - if (!getOutputData() - .equals(other.getOutputData())) return false; - } - if (hasOutputInterface() != other.hasOutputInterface()) return false; - if (hasOutputInterface()) { - if (!getOutputInterface() - .equals(other.getOutputInterface())) return false; - } - if (hasInputData() != other.hasInputData()) return false; - if (hasInputData()) { - if (!getInputData() - .equals(other.getInputData())) return false; - } - if (!getArtifactIdsList() - .equals(other.getArtifactIdsList())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) return false; - if (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; - if (hasLaunchPlanId()) { - if (!getLaunchPlanId() - .equals(other.getLaunchPlanId())) 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 (hasRawEvent()) { - hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getRawEvent().hashCode(); - } - if (hasTaskExecId()) { - hash = (37 * hash) + TASK_EXEC_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskExecId().hashCode(); - } - if (hasOutputData()) { - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - } - if (hasOutputInterface()) { - hash = (37 * hash) + OUTPUT_INTERFACE_FIELD_NUMBER; - hash = (53 * hash) + getOutputInterface().hashCode(); - } - if (hasInputData()) { - hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getInputData().hashCode(); - } - if (getArtifactIdsCount() > 0) { - hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactIdsList().hashCode(); - } - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - if (hasLaunchPlanId()) { - hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlanId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution 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.event.Cloudevents.CloudEventNodeExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution 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.event.Cloudevents.CloudEventNodeExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventNodeExecution 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.event.Cloudevents.CloudEventNodeExecution 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; - } - /** - * Protobuf type {@code flyteidl.event.CloudEventNodeExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.CloudEventNodeExecution) - flyteidl.event.Cloudevents.CloudEventNodeExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventNodeExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventNodeExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventNodeExecution.class, flyteidl.event.Cloudevents.CloudEventNodeExecution.Builder.class); - } - - // Construct using flyteidl.event.Cloudevents.CloudEventNodeExecution.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactIdsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rawEventBuilder_ == null) { - rawEvent_ = null; - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - if (taskExecIdBuilder_ == null) { - taskExecId_ = null; - } else { - taskExecId_ = null; - taskExecIdBuilder_ = null; - } - if (outputDataBuilder_ == null) { - outputData_ = null; - } else { - outputData_ = null; - outputDataBuilder_ = null; - } - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; - } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; - } - if (inputDataBuilder_ == null) { - inputData_ = null; - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - artifactIdsBuilder_.clear(); - } - principal_ = ""; - - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventNodeExecution_descriptor; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventNodeExecution getDefaultInstanceForType() { - return flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventNodeExecution build() { - flyteidl.event.Cloudevents.CloudEventNodeExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventNodeExecution buildPartial() { - flyteidl.event.Cloudevents.CloudEventNodeExecution result = new flyteidl.event.Cloudevents.CloudEventNodeExecution(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (rawEventBuilder_ == null) { - result.rawEvent_ = rawEvent_; - } else { - result.rawEvent_ = rawEventBuilder_.build(); - } - if (taskExecIdBuilder_ == null) { - result.taskExecId_ = taskExecId_; - } else { - result.taskExecId_ = taskExecIdBuilder_.build(); - } - if (outputDataBuilder_ == null) { - result.outputData_ = outputData_; - } else { - result.outputData_ = outputDataBuilder_.build(); - } - if (outputInterfaceBuilder_ == null) { - result.outputInterface_ = outputInterface_; - } else { - result.outputInterface_ = outputInterfaceBuilder_.build(); - } - if (inputDataBuilder_ == null) { - result.inputData_ = inputData_; - } else { - result.inputData_ = inputDataBuilder_.build(); - } - if (artifactIdsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.artifactIds_ = artifactIds_; - } else { - result.artifactIds_ = artifactIdsBuilder_.build(); - } - result.principal_ = principal_; - if (launchPlanIdBuilder_ == null) { - result.launchPlanId_ = launchPlanId_; - } else { - result.launchPlanId_ = launchPlanIdBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.event.Cloudevents.CloudEventNodeExecution) { - return mergeFrom((flyteidl.event.Cloudevents.CloudEventNodeExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventNodeExecution other) { - if (other == flyteidl.event.Cloudevents.CloudEventNodeExecution.getDefaultInstance()) return this; - if (other.hasRawEvent()) { - mergeRawEvent(other.getRawEvent()); - } - if (other.hasTaskExecId()) { - mergeTaskExecId(other.getTaskExecId()); - } - if (other.hasOutputData()) { - mergeOutputData(other.getOutputData()); - } - if (other.hasOutputInterface()) { - mergeOutputInterface(other.getOutputInterface()); - } - if (other.hasInputData()) { - mergeInputData(other.getInputData()); - } - if (artifactIdsBuilder_ == null) { - if (!other.artifactIds_.isEmpty()) { - if (artifactIds_.isEmpty()) { - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureArtifactIdsIsMutable(); - artifactIds_.addAll(other.artifactIds_); - } - onChanged(); - } - } else { - if (!other.artifactIds_.isEmpty()) { - if (artifactIdsBuilder_.isEmpty()) { - artifactIdsBuilder_.dispose(); - artifactIdsBuilder_ = null; - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000020); - artifactIdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactIdsFieldBuilder() : null; - } else { - artifactIdsBuilder_.addAllMessages(other.artifactIds_); - } - } - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - if (other.hasLaunchPlanId()) { - mergeLaunchPlanId(other.getLaunchPlanId()); - } - 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.event.Cloudevents.CloudEventNodeExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Cloudevents.CloudEventNodeExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.event.Event.NodeExecutionEvent rawEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> rawEventBuilder_; - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEventBuilder_ != null || rawEvent_ != null; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.NodeExecutionEvent getRawEvent() { - if (rawEventBuilder_ == null) { - return rawEvent_ == null ? flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : rawEvent_; - } else { - return rawEventBuilder_.getMessage(); - } - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public Builder setRawEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawEvent_ = value; - onChanged(); - } else { - rawEventBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public Builder setRawEvent( - flyteidl.event.Event.NodeExecutionEvent.Builder builderForValue) { - if (rawEventBuilder_ == null) { - rawEvent_ = builderForValue.build(); - onChanged(); - } else { - rawEventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public Builder mergeRawEvent(flyteidl.event.Event.NodeExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (rawEvent_ != null) { - rawEvent_ = - flyteidl.event.Event.NodeExecutionEvent.newBuilder(rawEvent_).mergeFrom(value).buildPartial(); - } else { - rawEvent_ = value; - } - onChanged(); - } else { - rawEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public Builder clearRawEvent() { - if (rawEventBuilder_ == null) { - rawEvent_ = null; - onChanged(); - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.NodeExecutionEvent.Builder getRawEventBuilder() { - - onChanged(); - return getRawEventFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.NodeExecutionEventOrBuilder getRawEventOrBuilder() { - if (rawEventBuilder_ != null) { - return rawEventBuilder_.getMessageOrBuilder(); - } else { - return rawEvent_ == null ? - flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance() : rawEvent_; - } - } - /** - * .flyteidl.event.NodeExecutionEvent raw_event = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder> - getRawEventFieldBuilder() { - if (rawEventBuilder_ == null) { - rawEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.NodeExecutionEvent, flyteidl.event.Event.NodeExecutionEvent.Builder, flyteidl.event.Event.NodeExecutionEventOrBuilder>( - getRawEvent(), - getParentForChildren(), - isClean()); - rawEvent_ = null; - } - return rawEventBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier taskExecId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> taskExecIdBuilder_; - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public boolean hasTaskExecId() { - return taskExecIdBuilder_ != null || taskExecId_ != null; - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getTaskExecId() { - if (taskExecIdBuilder_ == null) { - return taskExecId_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecId_; - } else { - return taskExecIdBuilder_.getMessage(); - } - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public Builder setTaskExecId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskExecId_ = value; - onChanged(); - } else { - taskExecIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public Builder setTaskExecId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (taskExecIdBuilder_ == null) { - taskExecId_ = builderForValue.build(); - onChanged(); - } else { - taskExecIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public Builder mergeTaskExecId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (taskExecIdBuilder_ == null) { - if (taskExecId_ != null) { - taskExecId_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(taskExecId_).mergeFrom(value).buildPartial(); - } else { - taskExecId_ = value; - } - onChanged(); - } else { - taskExecIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public Builder clearTaskExecId() { - if (taskExecIdBuilder_ == null) { - taskExecId_ = null; - onChanged(); - } else { - taskExecId_ = null; - taskExecIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getTaskExecIdBuilder() { - - onChanged(); - return getTaskExecIdFieldBuilder().getBuilder(); - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getTaskExecIdOrBuilder() { - if (taskExecIdBuilder_ != null) { - return taskExecIdBuilder_.getMessageOrBuilder(); - } else { - return taskExecId_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : taskExecId_; - } - } - /** - *
-       * The relevant task execution if applicable
-       * 
- * - * .flyteidl.core.TaskExecutionIdentifier task_exec_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getTaskExecIdFieldBuilder() { - if (taskExecIdBuilder_ == null) { - taskExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - getTaskExecId(), - getParentForChildren(), - isClean()); - taskExecId_ = null; - } - return taskExecIdBuilder_; - } - - private flyteidl.core.Literals.LiteralMap outputData_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public boolean hasOutputData() { - return outputDataBuilder_ != null || outputData_ != null; - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - return outputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } else { - return outputDataBuilder_.getMessage(); - } - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputData_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputData_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputData_ != null) { - outputData_ = - flyteidl.core.Literals.LiteralMap.newBuilder(outputData_).mergeFrom(value).buildPartial(); - } else { - outputData_ = value; - } - onChanged(); - } else { - outputDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - outputData_ = null; - onChanged(); - } else { - outputData_ = null; - outputDataBuilder_ = null; - } - - return this; - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - - onChanged(); - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputDataBuilder_ != null) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - return outputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputData_; - } - } - /** - *
-       * Hydrated output
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getOutputData(), - getParentForChildren(), - isClean()); - outputData_ = null; - } - return outputDataBuilder_; - } - - private flyteidl.core.Interface.TypedInterface outputInterface_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> outputInterfaceBuilder_; - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public boolean hasOutputInterface() { - return outputInterfaceBuilder_ != null || outputInterface_ != null; - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public flyteidl.core.Interface.TypedInterface getOutputInterface() { - if (outputInterfaceBuilder_ == null) { - return outputInterface_ == null ? flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } else { - return outputInterfaceBuilder_.getMessage(); - } - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public Builder setOutputInterface(flyteidl.core.Interface.TypedInterface value) { - if (outputInterfaceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputInterface_ = value; - onChanged(); - } else { - outputInterfaceBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public Builder setOutputInterface( - flyteidl.core.Interface.TypedInterface.Builder builderForValue) { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = builderForValue.build(); - onChanged(); - } else { - outputInterfaceBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public Builder mergeOutputInterface(flyteidl.core.Interface.TypedInterface value) { - if (outputInterfaceBuilder_ == null) { - if (outputInterface_ != null) { - outputInterface_ = - flyteidl.core.Interface.TypedInterface.newBuilder(outputInterface_).mergeFrom(value).buildPartial(); - } else { - outputInterface_ = value; - } - onChanged(); - } else { - outputInterfaceBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public Builder clearOutputInterface() { - if (outputInterfaceBuilder_ == null) { - outputInterface_ = null; - onChanged(); - } else { - outputInterface_ = null; - outputInterfaceBuilder_ = null; - } - - return this; - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public flyteidl.core.Interface.TypedInterface.Builder getOutputInterfaceBuilder() { - - onChanged(); - return getOutputInterfaceFieldBuilder().getBuilder(); - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - public flyteidl.core.Interface.TypedInterfaceOrBuilder getOutputInterfaceOrBuilder() { - if (outputInterfaceBuilder_ != null) { - return outputInterfaceBuilder_.getMessageOrBuilder(); - } else { - return outputInterface_ == null ? - flyteidl.core.Interface.TypedInterface.getDefaultInstance() : outputInterface_; - } - } - /** - *
-       * The typed interface for the task that produced the event.
-       * 
- * - * .flyteidl.core.TypedInterface output_interface = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder> - getOutputInterfaceFieldBuilder() { - if (outputInterfaceBuilder_ == null) { - outputInterfaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Interface.TypedInterface, flyteidl.core.Interface.TypedInterface.Builder, flyteidl.core.Interface.TypedInterfaceOrBuilder>( - getOutputInterface(), - getParentForChildren(), - isClean()); - outputInterface_ = null; - } - return outputInterfaceBuilder_; - } - - private flyteidl.core.Literals.LiteralMap inputData_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public boolean hasInputData() { - return inputDataBuilder_ != null || inputData_ != null; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputDataBuilder_ == null) { - return inputData_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } else { - return inputDataBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputData_ = value; - onChanged(); - } else { - inputDataBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public Builder setInputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputDataBuilder_ == null) { - inputData_ = builderForValue.build(); - onChanged(); - } else { - inputDataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (inputData_ != null) { - inputData_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputData_).mergeFrom(value).buildPartial(); - } else { - inputData_ = value; - } - onChanged(); - } else { - inputDataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public Builder clearInputData() { - if (inputDataBuilder_ == null) { - inputData_ = null; - onChanged(); - } else { - inputData_ = null; - inputDataBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { - - onChanged(); - return getInputDataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if (inputDataBuilder_ != null) { - return inputDataBuilder_.getMessageOrBuilder(); - } else { - return inputData_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputData_; - } - } - /** - * .flyteidl.core.LiteralMap input_data = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputDataFieldBuilder() { - if (inputDataBuilder_ == null) { - inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputData(), - getParentForChildren(), - isClean()); - inputData_ = null; - } - return inputDataBuilder_; - } - - private java.util.List artifactIds_ = - java.util.Collections.emptyList(); - private void ensureArtifactIdsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - artifactIds_ = new java.util.ArrayList(artifactIds_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdsBuilder_; - - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List getArtifactIdsList() { - if (artifactIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactIds_); - } else { - return artifactIdsBuilder_.getMessageList(); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); - } else { - return artifactIdsBuilder_.getMessage(index); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, value); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder addArtifactIds( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder addAllArtifactIds( - java.lang.Iterable values) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactIds_); - onChanged(); - } else { - artifactIdsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder clearArtifactIds() { - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - artifactIdsBuilder_.clear(); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public Builder removeArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.remove(index); - onChanged(); - } else { - artifactIdsBuilder_.remove(index); - } - return this; - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().getBuilder(index); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); } else { - return artifactIdsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - if (artifactIdsBuilder_ != null) { - return artifactIdsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifactIds_); - } - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { - return getArtifactIdsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * The following are ExecutionMetadata fields
-       * We can't have the ExecutionMetadata object directly because of import cycle
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 6; - */ - public java.util.List - getArtifactIdsBuilderList() { - return getArtifactIdsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdsFieldBuilder() { - if (artifactIdsBuilder_ == null) { - artifactIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - artifactIds_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - artifactIds_ = null; - } - return artifactIdsBuilder_; - } - - private java.lang.Object principal_ = ""; - /** - * string principal = 7; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string principal = 7; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string principal = 7; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - * string principal = 7; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - * string principal = 7; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public boolean hasLaunchPlanId() { - return launchPlanIdBuilder_ != null || launchPlanId_ != null; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } else { - return launchPlanIdBuilder_.getMessage(); - } - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlanId_ = value; - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder setLaunchPlanId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = builderForValue.build(); - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (launchPlanId_ != null) { - launchPlanId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlanId_).mergeFrom(value).buildPartial(); - } else { - launchPlanId_ = value; - } - onChanged(); - } else { - launchPlanIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public Builder clearLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - onChanged(); - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { - - onChanged(); - return getLaunchPlanIdFieldBuilder().getBuilder(); - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - if (launchPlanIdBuilder_ != null) { - return launchPlanIdBuilder_.getMessageOrBuilder(); - } else { - return launchPlanId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - } - /** - *
-       * The ID of the LP that generated the execution that generated the Artifact.
-       * Here for provenance information.
-       * Launch plan IDs are easier to get than workflow IDs so we'll use these for now.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanIdFieldBuilder() { - if (launchPlanIdBuilder_ == null) { - launchPlanIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlanId(), - getParentForChildren(), - isClean()); - launchPlanId_ = null; - } - return launchPlanIdBuilder_; - } - @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.event.CloudEventNodeExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventNodeExecution) - private static final flyteidl.event.Cloudevents.CloudEventNodeExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Cloudevents.CloudEventNodeExecution(); - } - - public static flyteidl.event.Cloudevents.CloudEventNodeExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEventNodeExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventNodeExecution(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.event.Cloudevents.CloudEventNodeExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CloudEventTaskExecutionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.CloudEventTaskExecution) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - boolean hasRawEvent(); - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.TaskExecutionEvent getRawEvent(); - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - flyteidl.event.Event.TaskExecutionEventOrBuilder getRawEventOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.CloudEventTaskExecution} - */ - public static final class CloudEventTaskExecution extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.CloudEventTaskExecution) - CloudEventTaskExecutionOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudEventTaskExecution.newBuilder() to construct. - private CloudEventTaskExecution(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudEventTaskExecution() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudEventTaskExecution( - 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.event.Event.TaskExecutionEvent.Builder subBuilder = null; - if (rawEvent_ != null) { - subBuilder = rawEvent_.toBuilder(); - } - rawEvent_ = input.readMessage(flyteidl.event.Event.TaskExecutionEvent.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rawEvent_); - rawEvent_ = 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.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventTaskExecution.class, flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder.class); - } - - public static final int RAW_EVENT_FIELD_NUMBER = 1; - private flyteidl.event.Event.TaskExecutionEvent rawEvent_; - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEvent_ != null; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.TaskExecutionEvent getRawEvent() { - return rawEvent_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getRawEventOrBuilder() { - return getRawEvent(); - } - - 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 (rawEvent_ != null) { - output.writeMessage(1, getRawEvent()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rawEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRawEvent()); - } - 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.event.Cloudevents.CloudEventTaskExecution)) { - return super.equals(obj); - } - flyteidl.event.Cloudevents.CloudEventTaskExecution other = (flyteidl.event.Cloudevents.CloudEventTaskExecution) obj; - - if (hasRawEvent() != other.hasRawEvent()) return false; - if (hasRawEvent()) { - if (!getRawEvent() - .equals(other.getRawEvent())) 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 (hasRawEvent()) { - hash = (37 * hash) + RAW_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getRawEvent().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution 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.event.Cloudevents.CloudEventTaskExecution parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution 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.event.Cloudevents.CloudEventTaskExecution parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventTaskExecution 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.event.Cloudevents.CloudEventTaskExecution 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; - } - /** - * Protobuf type {@code flyteidl.event.CloudEventTaskExecution} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.CloudEventTaskExecution) - flyteidl.event.Cloudevents.CloudEventTaskExecutionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventTaskExecution.class, flyteidl.event.Cloudevents.CloudEventTaskExecution.Builder.class); - } - - // Construct using flyteidl.event.Cloudevents.CloudEventTaskExecution.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 (rawEventBuilder_ == null) { - rawEvent_ = null; - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventTaskExecution_descriptor; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution getDefaultInstanceForType() { - return flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution build() { - flyteidl.event.Cloudevents.CloudEventTaskExecution result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventTaskExecution buildPartial() { - flyteidl.event.Cloudevents.CloudEventTaskExecution result = new flyteidl.event.Cloudevents.CloudEventTaskExecution(this); - if (rawEventBuilder_ == null) { - result.rawEvent_ = rawEvent_; - } else { - result.rawEvent_ = rawEventBuilder_.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.event.Cloudevents.CloudEventTaskExecution) { - return mergeFrom((flyteidl.event.Cloudevents.CloudEventTaskExecution)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventTaskExecution other) { - if (other == flyteidl.event.Cloudevents.CloudEventTaskExecution.getDefaultInstance()) return this; - if (other.hasRawEvent()) { - mergeRawEvent(other.getRawEvent()); - } - 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.event.Cloudevents.CloudEventTaskExecution parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Cloudevents.CloudEventTaskExecution) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.event.Event.TaskExecutionEvent rawEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> rawEventBuilder_; - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public boolean hasRawEvent() { - return rawEventBuilder_ != null || rawEvent_ != null; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.TaskExecutionEvent getRawEvent() { - if (rawEventBuilder_ == null) { - return rawEvent_ == null ? flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; - } else { - return rawEventBuilder_.getMessage(); - } - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public Builder setRawEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rawEvent_ = value; - onChanged(); - } else { - rawEventBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public Builder setRawEvent( - flyteidl.event.Event.TaskExecutionEvent.Builder builderForValue) { - if (rawEventBuilder_ == null) { - rawEvent_ = builderForValue.build(); - onChanged(); - } else { - rawEventBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public Builder mergeRawEvent(flyteidl.event.Event.TaskExecutionEvent value) { - if (rawEventBuilder_ == null) { - if (rawEvent_ != null) { - rawEvent_ = - flyteidl.event.Event.TaskExecutionEvent.newBuilder(rawEvent_).mergeFrom(value).buildPartial(); - } else { - rawEvent_ = value; - } - onChanged(); - } else { - rawEventBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public Builder clearRawEvent() { - if (rawEventBuilder_ == null) { - rawEvent_ = null; - onChanged(); - } else { - rawEvent_ = null; - rawEventBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.TaskExecutionEvent.Builder getRawEventBuilder() { - - onChanged(); - return getRawEventFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - public flyteidl.event.Event.TaskExecutionEventOrBuilder getRawEventOrBuilder() { - if (rawEventBuilder_ != null) { - return rawEventBuilder_.getMessageOrBuilder(); - } else { - return rawEvent_ == null ? - flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance() : rawEvent_; - } - } - /** - * .flyteidl.event.TaskExecutionEvent raw_event = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder> - getRawEventFieldBuilder() { - if (rawEventBuilder_ == null) { - rawEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionEvent, flyteidl.event.Event.TaskExecutionEvent.Builder, flyteidl.event.Event.TaskExecutionEventOrBuilder>( - getRawEvent(), - getParentForChildren(), - isClean()); - rawEvent_ = null; - } - return rawEventBuilder_; - } - @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.event.CloudEventTaskExecution) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventTaskExecution) - private static final flyteidl.event.Cloudevents.CloudEventTaskExecution DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Cloudevents.CloudEventTaskExecution(); - } - - public static flyteidl.event.Cloudevents.CloudEventTaskExecution getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEventTaskExecution parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventTaskExecution(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.event.Cloudevents.CloudEventTaskExecution getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CloudEventExecutionStartOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.CloudEventExecutionStart) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - boolean hasLaunchPlanId(); - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId(); - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder(); - - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - boolean hasWorkflowId(); - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId(); - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder(); - - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - java.util.List - getArtifactIdsList(); - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index); - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - int getArtifactIdsCount(); - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - java.util.List - getArtifactIdsOrBuilderList(); - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index); - - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - java.util.List - getArtifactKeysList(); - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - int getArtifactKeysCount(); - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - java.lang.String getArtifactKeys(int index); - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - com.google.protobuf.ByteString - getArtifactKeysBytes(int index); - - /** - * string principal = 6; - */ - java.lang.String getPrincipal(); - /** - * string principal = 6; - */ - com.google.protobuf.ByteString - getPrincipalBytes(); - } - /** - *
-   * This event is to be sent by Admin after it creates an execution.
-   * 
- * - * Protobuf type {@code flyteidl.event.CloudEventExecutionStart} - */ - public static final class CloudEventExecutionStart extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.CloudEventExecutionStart) - CloudEventExecutionStartOrBuilder { - private static final long serialVersionUID = 0L; - // Use CloudEventExecutionStart.newBuilder() to construct. - private CloudEventExecutionStart(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CloudEventExecutionStart() { - artifactIds_ = java.util.Collections.emptyList(); - artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - principal_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CloudEventExecutionStart( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (launchPlanId_ != null) { - subBuilder = launchPlanId_.toBuilder(); - } - launchPlanId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launchPlanId_); - launchPlanId_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.IdentifierOuterClass.Identifier.Builder subBuilder = null; - if (workflowId_ != null) { - subBuilder = workflowId_.toBuilder(); - } - workflowId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workflowId_); - workflowId_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - artifactIds_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - artifactIds_.add( - input.readMessage(flyteidl.core.ArtifactId.ArtifactID.parser(), extensionRegistry)); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - artifactKeys_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - artifactKeys_.add(s); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - principal_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - artifactKeys_ = artifactKeys_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventExecutionStart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventExecutionStart.class, flyteidl.event.Cloudevents.CloudEventExecutionStart.Builder.class); - } - - private int bitField0_; - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * The execution created.
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - public static final int LAUNCH_PLAN_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public boolean hasLaunchPlanId() { - return launchPlanId_ != null; - } - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - /** - *
-     * The launch plan used.
-     * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - return getLaunchPlanId(); - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public boolean hasWorkflowId() { - return workflowId_ != null; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - return getWorkflowId(); - } - - public static final int ARTIFACT_IDS_FIELD_NUMBER = 4; - private java.util.List artifactIds_; - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public java.util.List getArtifactIdsList() { - return artifactIds_; - } - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - return artifactIds_; - } - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public int getArtifactIdsCount() { - return artifactIds_.size(); - } - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - return artifactIds_.get(index); - } - /** - *
-     * Artifact IDs found
-     * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - return artifactIds_.get(index); - } - - public static final int ARTIFACT_KEYS_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList artifactKeys_; - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - public com.google.protobuf.ProtocolStringList - getArtifactKeysList() { - return artifactKeys_; - } - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - public int getArtifactKeysCount() { - return artifactKeys_.size(); - } - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - public java.lang.String getArtifactKeys(int index) { - return artifactKeys_.get(index); - } - /** - *
-     * Artifact keys found.
-     * 
- * - * repeated string artifact_keys = 5; - */ - public com.google.protobuf.ByteString - getArtifactKeysBytes(int index) { - return artifactKeys_.getByteString(index); - } - - public static final int PRINCIPAL_FIELD_NUMBER = 6; - private volatile java.lang.Object principal_; - /** - * string principal = 6; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } - } - /** - * string principal = 6; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - if (launchPlanId_ != null) { - output.writeMessage(2, getLaunchPlanId()); - } - if (workflowId_ != null) { - output.writeMessage(3, getWorkflowId()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - output.writeMessage(4, artifactIds_.get(i)); - } - for (int i = 0; i < artifactKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, artifactKeys_.getRaw(i)); - } - if (!getPrincipalBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, principal_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - if (launchPlanId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLaunchPlanId()); - } - if (workflowId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getWorkflowId()); - } - for (int i = 0; i < artifactIds_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, artifactIds_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < artifactKeys_.size(); i++) { - dataSize += computeStringSizeNoTag(artifactKeys_.getRaw(i)); - } - size += dataSize; - size += 1 * getArtifactKeysList().size(); - } - if (!getPrincipalBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, principal_); - } - 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.event.Cloudevents.CloudEventExecutionStart)) { - return super.equals(obj); - } - flyteidl.event.Cloudevents.CloudEventExecutionStart other = (flyteidl.event.Cloudevents.CloudEventExecutionStart) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - } - if (hasLaunchPlanId() != other.hasLaunchPlanId()) return false; - if (hasLaunchPlanId()) { - if (!getLaunchPlanId() - .equals(other.getLaunchPlanId())) return false; - } - if (hasWorkflowId() != other.hasWorkflowId()) return false; - if (hasWorkflowId()) { - if (!getWorkflowId() - .equals(other.getWorkflowId())) return false; - } - if (!getArtifactIdsList() - .equals(other.getArtifactIdsList())) return false; - if (!getArtifactKeysList() - .equals(other.getArtifactKeysList())) return false; - if (!getPrincipal() - .equals(other.getPrincipal())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - if (hasLaunchPlanId()) { - hash = (37 * hash) + LAUNCH_PLAN_ID_FIELD_NUMBER; - hash = (53 * hash) + getLaunchPlanId().hashCode(); - } - if (hasWorkflowId()) { - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - } - if (getArtifactIdsCount() > 0) { - hash = (37 * hash) + ARTIFACT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactIdsList().hashCode(); - } - if (getArtifactKeysCount() > 0) { - hash = (37 * hash) + ARTIFACT_KEYS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactKeysList().hashCode(); - } - hash = (37 * hash) + PRINCIPAL_FIELD_NUMBER; - hash = (53 * hash) + getPrincipal().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart 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.event.Cloudevents.CloudEventExecutionStart parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart 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.event.Cloudevents.CloudEventExecutionStart parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Cloudevents.CloudEventExecutionStart 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.event.Cloudevents.CloudEventExecutionStart 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; - } - /** - *
-     * This event is to be sent by Admin after it creates an execution.
-     * 
- * - * Protobuf type {@code flyteidl.event.CloudEventExecutionStart} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.CloudEventExecutionStart) - flyteidl.event.Cloudevents.CloudEventExecutionStartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventExecutionStart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Cloudevents.CloudEventExecutionStart.class, flyteidl.event.Cloudevents.CloudEventExecutionStart.Builder.class); - } - - // Construct using flyteidl.event.Cloudevents.CloudEventExecutionStart.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getArtifactIdsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - if (workflowIdBuilder_ == null) { - workflowId_ = null; - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - artifactIdsBuilder_.clear(); - } - artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - principal_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Cloudevents.internal_static_flyteidl_event_CloudEventExecutionStart_descriptor; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventExecutionStart getDefaultInstanceForType() { - return flyteidl.event.Cloudevents.CloudEventExecutionStart.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventExecutionStart build() { - flyteidl.event.Cloudevents.CloudEventExecutionStart result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Cloudevents.CloudEventExecutionStart buildPartial() { - flyteidl.event.Cloudevents.CloudEventExecutionStart result = new flyteidl.event.Cloudevents.CloudEventExecutionStart(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.build(); - } - if (launchPlanIdBuilder_ == null) { - result.launchPlanId_ = launchPlanId_; - } else { - result.launchPlanId_ = launchPlanIdBuilder_.build(); - } - if (workflowIdBuilder_ == null) { - result.workflowId_ = workflowId_; - } else { - result.workflowId_ = workflowIdBuilder_.build(); - } - if (artifactIdsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - artifactIds_ = java.util.Collections.unmodifiableList(artifactIds_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.artifactIds_ = artifactIds_; - } else { - result.artifactIds_ = artifactIdsBuilder_.build(); - } - if (((bitField0_ & 0x00000010) != 0)) { - artifactKeys_ = artifactKeys_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.artifactKeys_ = artifactKeys_; - result.principal_ = principal_; - result.bitField0_ = to_bitField0_; - 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.event.Cloudevents.CloudEventExecutionStart) { - return mergeFrom((flyteidl.event.Cloudevents.CloudEventExecutionStart)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Cloudevents.CloudEventExecutionStart other) { - if (other == flyteidl.event.Cloudevents.CloudEventExecutionStart.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - if (other.hasLaunchPlanId()) { - mergeLaunchPlanId(other.getLaunchPlanId()); - } - if (other.hasWorkflowId()) { - mergeWorkflowId(other.getWorkflowId()); - } - if (artifactIdsBuilder_ == null) { - if (!other.artifactIds_.isEmpty()) { - if (artifactIds_.isEmpty()) { - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArtifactIdsIsMutable(); - artifactIds_.addAll(other.artifactIds_); - } - onChanged(); - } - } else { - if (!other.artifactIds_.isEmpty()) { - if (artifactIdsBuilder_.isEmpty()) { - artifactIdsBuilder_.dispose(); - artifactIdsBuilder_ = null; - artifactIds_ = other.artifactIds_; - bitField0_ = (bitField0_ & ~0x00000008); - artifactIdsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getArtifactIdsFieldBuilder() : null; - } else { - artifactIdsBuilder_.addAllMessages(other.artifactIds_); - } - } - } - if (!other.artifactKeys_.isEmpty()) { - if (artifactKeys_.isEmpty()) { - artifactKeys_ = other.artifactKeys_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureArtifactKeysIsMutable(); - artifactKeys_.addAll(other.artifactKeys_); - } - onChanged(); - } - if (!other.getPrincipal().isEmpty()) { - principal_ = other.principal_; - onChanged(); - } - 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.event.Cloudevents.CloudEventExecutionStart parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Cloudevents.CloudEventExecutionStart) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * The execution created.
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.Identifier launchPlanId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> launchPlanIdBuilder_; - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public boolean hasLaunchPlanId() { - return launchPlanIdBuilder_ != null || launchPlanId_ != null; - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - return launchPlanId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } else { - return launchPlanIdBuilder_.getMessage(); - } - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public Builder setLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launchPlanId_ = value; - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public Builder setLaunchPlanId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = builderForValue.build(); - onChanged(); - } else { - launchPlanIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public Builder mergeLaunchPlanId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (launchPlanIdBuilder_ == null) { - if (launchPlanId_ != null) { - launchPlanId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(launchPlanId_).mergeFrom(value).buildPartial(); - } else { - launchPlanId_ = value; - } - onChanged(); - } else { - launchPlanIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public Builder clearLaunchPlanId() { - if (launchPlanIdBuilder_ == null) { - launchPlanId_ = null; - onChanged(); - } else { - launchPlanId_ = null; - launchPlanIdBuilder_ = null; - } - - return this; - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getLaunchPlanIdBuilder() { - - onChanged(); - return getLaunchPlanIdFieldBuilder().getBuilder(); - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getLaunchPlanIdOrBuilder() { - if (launchPlanIdBuilder_ != null) { - return launchPlanIdBuilder_.getMessageOrBuilder(); - } else { - return launchPlanId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : launchPlanId_; - } - } - /** - *
-       * The launch plan used.
-       * 
- * - * .flyteidl.core.Identifier launch_plan_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getLaunchPlanIdFieldBuilder() { - if (launchPlanIdBuilder_ == null) { - launchPlanIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getLaunchPlanId(), - getParentForChildren(), - isClean()); - launchPlanId_ = null; - } - return launchPlanIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.Identifier workflowId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> workflowIdBuilder_; - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public boolean hasWorkflowId() { - return workflowIdBuilder_ != null || workflowId_ != null; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getWorkflowId() { - if (workflowIdBuilder_ == null) { - return workflowId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } else { - return workflowIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public Builder setWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workflowId_ = value; - onChanged(); - } else { - workflowIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public Builder setWorkflowId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (workflowIdBuilder_ == null) { - workflowId_ = builderForValue.build(); - onChanged(); - } else { - workflowIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public Builder mergeWorkflowId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (workflowIdBuilder_ == null) { - if (workflowId_ != null) { - workflowId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(workflowId_).mergeFrom(value).buildPartial(); - } else { - workflowId_ = value; - } - onChanged(); - } else { - workflowIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public Builder clearWorkflowId() { - if (workflowIdBuilder_ == null) { - workflowId_ = null; - onChanged(); - } else { - workflowId_ = null; - workflowIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getWorkflowIdBuilder() { - - onChanged(); - return getWorkflowIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getWorkflowIdOrBuilder() { - if (workflowIdBuilder_ != null) { - return workflowIdBuilder_.getMessageOrBuilder(); - } else { - return workflowId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : workflowId_; - } - } - /** - * .flyteidl.core.Identifier workflow_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getWorkflowIdFieldBuilder() { - if (workflowIdBuilder_ == null) { - workflowIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getWorkflowId(), - getParentForChildren(), - isClean()); - workflowId_ = null; - } - return workflowIdBuilder_; - } - - private java.util.List artifactIds_ = - java.util.Collections.emptyList(); - private void ensureArtifactIdsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - artifactIds_ = new java.util.ArrayList(artifactIds_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> artifactIdsBuilder_; - - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public java.util.List getArtifactIdsList() { - if (artifactIdsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifactIds_); - } else { - return artifactIdsBuilder_.getMessageList(); - } - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public int getArtifactIdsCount() { - if (artifactIdsBuilder_ == null) { - return artifactIds_.size(); - } else { - return artifactIdsBuilder_.getCount(); - } - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactID getArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); - } else { - return artifactIdsBuilder_.getMessage(index); - } - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, value); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder setArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder addArtifactIds(flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID value) { - if (artifactIdsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, value); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder addArtifactIds( - flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder addArtifactIds( - int index, flyteidl.core.ArtifactId.ArtifactID.Builder builderForValue) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactIdsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder addAllArtifactIds( - java.lang.Iterable values) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactIds_); - onChanged(); - } else { - artifactIdsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder clearArtifactIds() { - if (artifactIdsBuilder_ == null) { - artifactIds_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - artifactIdsBuilder_.clear(); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public Builder removeArtifactIds(int index) { - if (artifactIdsBuilder_ == null) { - ensureArtifactIdsIsMutable(); - artifactIds_.remove(index); - onChanged(); - } else { - artifactIdsBuilder_.remove(index); - } - return this; - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder getArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().getBuilder(index); - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactIDOrBuilder getArtifactIdsOrBuilder( - int index) { - if (artifactIdsBuilder_ == null) { - return artifactIds_.get(index); } else { - return artifactIdsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public java.util.List - getArtifactIdsOrBuilderList() { - if (artifactIdsBuilder_ != null) { - return artifactIdsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifactIds_); - } - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder() { - return getArtifactIdsFieldBuilder().addBuilder( - flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public flyteidl.core.ArtifactId.ArtifactID.Builder addArtifactIdsBuilder( - int index) { - return getArtifactIdsFieldBuilder().addBuilder( - index, flyteidl.core.ArtifactId.ArtifactID.getDefaultInstance()); - } - /** - *
-       * Artifact IDs found
-       * 
- * - * repeated .flyteidl.core.ArtifactID artifact_ids = 4; - */ - public java.util.List - getArtifactIdsBuilderList() { - return getArtifactIdsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder> - getArtifactIdsFieldBuilder() { - if (artifactIdsBuilder_ == null) { - artifactIdsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.ArtifactId.ArtifactID, flyteidl.core.ArtifactId.ArtifactID.Builder, flyteidl.core.ArtifactId.ArtifactIDOrBuilder>( - artifactIds_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - artifactIds_ = null; - } - return artifactIdsBuilder_; - } - - private com.google.protobuf.LazyStringList artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureArtifactKeysIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - artifactKeys_ = new com.google.protobuf.LazyStringArrayList(artifactKeys_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public com.google.protobuf.ProtocolStringList - getArtifactKeysList() { - return artifactKeys_.getUnmodifiableView(); - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public int getArtifactKeysCount() { - return artifactKeys_.size(); - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public java.lang.String getArtifactKeys(int index) { - return artifactKeys_.get(index); - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public com.google.protobuf.ByteString - getArtifactKeysBytes(int index) { - return artifactKeys_.getByteString(index); - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public Builder setArtifactKeys( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactKeysIsMutable(); - artifactKeys_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public Builder addArtifactKeys( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactKeysIsMutable(); - artifactKeys_.add(value); - onChanged(); - return this; - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public Builder addAllArtifactKeys( - java.lang.Iterable values) { - ensureArtifactKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, artifactKeys_); - onChanged(); - return this; - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public Builder clearArtifactKeys() { - artifactKeys_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * Artifact keys found.
-       * 
- * - * repeated string artifact_keys = 5; - */ - public Builder addArtifactKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureArtifactKeysIsMutable(); - artifactKeys_.add(value); - onChanged(); - return this; - } - - private java.lang.Object principal_ = ""; - /** - * string principal = 6; - */ - public java.lang.String getPrincipal() { - java.lang.Object ref = principal_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - principal_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string principal = 6; - */ - public com.google.protobuf.ByteString - getPrincipalBytes() { - java.lang.Object ref = principal_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - principal_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string principal = 6; - */ - public Builder setPrincipal( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - principal_ = value; - onChanged(); - return this; - } - /** - * string principal = 6; - */ - public Builder clearPrincipal() { - - principal_ = getDefaultInstance().getPrincipal(); - onChanged(); - return this; - } - /** - * string principal = 6; - */ - public Builder setPrincipalBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - principal_ = value; - onChanged(); - return this; - } - @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.event.CloudEventExecutionStart) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.CloudEventExecutionStart) - private static final flyteidl.event.Cloudevents.CloudEventExecutionStart DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Cloudevents.CloudEventExecutionStart(); - } - - public static flyteidl.event.Cloudevents.CloudEventExecutionStart getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudEventExecutionStart parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CloudEventExecutionStart(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.event.Cloudevents.CloudEventExecutionStart getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_CloudEventWorkflowExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_CloudEventNodeExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_CloudEventNodeExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_CloudEventTaskExecution_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_CloudEventTaskExecution_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_CloudEventExecutionStart_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n flyteidl/event/cloudevents.proto\022\016flyt" + - "eidl.event\032\032flyteidl/event/event.proto\032\034" + - "flyteidl/core/literals.proto\032\035flyteidl/c" + - "ore/interface.proto\032\037flyteidl/core/artif" + - "act_id.proto\032\036flyteidl/core/identifier.p" + - "roto\032\037google/protobuf/timestamp.proto\"\260\003" + - "\n\033CloudEventWorkflowExecution\0229\n\traw_eve" + - "nt\030\001 \001(\0132&.flyteidl.event.WorkflowExecut" + - "ionEvent\022.\n\013output_data\030\002 \001(\0132\031.flyteidl" + - ".core.LiteralMap\0227\n\020output_interface\030\003 \001" + - "(\0132\035.flyteidl.core.TypedInterface\022-\n\ninp" + - "ut_data\030\004 \001(\0132\031.flyteidl.core.LiteralMap" + - "\022/\n\014artifact_ids\030\005 \003(\0132\031.flyteidl.core.A" + - "rtifactID\022G\n\023reference_execution\030\006 \001(\0132*" + - ".flyteidl.core.WorkflowExecutionIdentifi" + - "er\022\021\n\tprincipal\030\007 \001(\t\0221\n\016launch_plan_id\030" + - "\010 \001(\0132\031.flyteidl.core.Identifier\"\235\003\n\027Clo" + - "udEventNodeExecution\0225\n\traw_event\030\001 \001(\0132" + - "\".flyteidl.event.NodeExecutionEvent\022<\n\014t" + - "ask_exec_id\030\002 \001(\0132&.flyteidl.core.TaskEx" + - "ecutionIdentifier\022.\n\013output_data\030\003 \001(\0132\031" + - ".flyteidl.core.LiteralMap\0227\n\020output_inte" + - "rface\030\004 \001(\0132\035.flyteidl.core.TypedInterfa" + - "ce\022-\n\ninput_data\030\005 \001(\0132\031.flyteidl.core.L" + - "iteralMap\022/\n\014artifact_ids\030\006 \003(\0132\031.flytei" + - "dl.core.ArtifactID\022\021\n\tprincipal\030\007 \001(\t\0221\n" + - "\016launch_plan_id\030\010 \001(\0132\031.flyteidl.core.Id" + - "entifier\"P\n\027CloudEventTaskExecution\0225\n\tr" + - "aw_event\030\001 \001(\0132\".flyteidl.event.TaskExec" + - "utionEvent\"\232\002\n\030CloudEventExecutionStart\022" + - "@\n\014execution_id\030\001 \001(\0132*.flyteidl.core.Wo" + - "rkflowExecutionIdentifier\0221\n\016launch_plan" + - "_id\030\002 \001(\0132\031.flyteidl.core.Identifier\022.\n\013" + - "workflow_id\030\003 \001(\0132\031.flyteidl.core.Identi" + - "fier\022/\n\014artifact_ids\030\004 \003(\0132\031.flyteidl.co" + - "re.ArtifactID\022\025\n\rartifact_keys\030\005 \003(\t\022\021\n\t" + - "principal\030\006 \001(\tB=Z;github.com/flyteorg/f" + - "lyte/flyteidl/gen/pb-go/flyteidl/eventb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.event.Event.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - flyteidl.core.ArtifactId.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_event_CloudEventWorkflowExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_CloudEventWorkflowExecution_descriptor, - new java.lang.String[] { "RawEvent", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "ReferenceExecution", "Principal", "LaunchPlanId", }); - internal_static_flyteidl_event_CloudEventNodeExecution_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_event_CloudEventNodeExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_CloudEventNodeExecution_descriptor, - new java.lang.String[] { "RawEvent", "TaskExecId", "OutputData", "OutputInterface", "InputData", "ArtifactIds", "Principal", "LaunchPlanId", }); - internal_static_flyteidl_event_CloudEventTaskExecution_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_event_CloudEventTaskExecution_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_CloudEventTaskExecution_descriptor, - new java.lang.String[] { "RawEvent", }); - internal_static_flyteidl_event_CloudEventExecutionStart_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_event_CloudEventExecutionStart_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_CloudEventExecutionStart_descriptor, - new java.lang.String[] { "ExecutionId", "LaunchPlanId", "WorkflowId", "ArtifactIds", "ArtifactKeys", "Principal", }); - flyteidl.event.Event.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - flyteidl.core.ArtifactId.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/event/Event.java b/flyteidl/gen/pb-java/flyteidl/event/Event.java deleted file mode 100644 index 142dd8bc93..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/event/Event.java +++ /dev/null @@ -1,21888 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/event/event.proto - -package flyteidl.event; - -public final class Event { - private Event() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WorkflowExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - boolean hasOutputData(); - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - public flyteidl.event.Event.WorkflowExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} - */ - public static final class WorkflowExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowExecutionEvent) - WorkflowExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowExecutionEvent.newBuilder() to construct. - private WorkflowExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowExecutionEvent() { - producerId_ = ""; - phase_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowExecutionEvent( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 5; - outputResult_ = s; - break; - } - case 50: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 6) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 6; - break; - } - case 58: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 7) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 7; - 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.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(5), - ERROR(6), - OUTPUT_DATA(7), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 5: return OUTPUT_URI; - case 6: return ERROR; - case 7: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - *
-     * Workflow execution id
-     * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the workflow.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 5; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 6; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 7; - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public boolean hasOutputData() { - return outputResultCase_ == 7; - } - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this workflow execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, outputResult_); - } - if (outputResultCase_ == 6) { - output.writeMessage(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (outputResultCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (outputResultCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, outputResult_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (outputResultCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - 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.event.Event.WorkflowExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowExecutionEvent other = (flyteidl.event.Event.WorkflowExecutionEvent) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 5: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 6: - if (!getError() - .equals(other.getError())) return false; - break; - case 7: - if (!getOutputData() - .equals(other.getOutputData())) 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(); - if (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - switch (outputResultCase_) { - case 5: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 6: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 7: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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.event.Event.WorkflowExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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.event.Event.WorkflowExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowExecutionEvent 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.event.Event.WorkflowExecutionEvent 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; - } - /** - * Protobuf type {@code flyteidl.event.WorkflowExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowExecutionEvent) - flyteidl.event.Event.WorkflowExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowExecutionEvent.class, flyteidl.event.Event.WorkflowExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowExecutionEvent.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent build() { - flyteidl.event.Event.WorkflowExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowExecutionEvent buildPartial() { - flyteidl.event.Event.WorkflowExecutionEvent result = new flyteidl.event.Event.WorkflowExecutionEvent(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - if (outputResultCase_ == 5) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 6) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 7) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - result.outputResultCase_ = outputResultCase_; - 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.event.Event.WorkflowExecutionEvent) { - return mergeFrom((flyteidl.event.Event.WorkflowExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowExecutionEvent other) { - if (other == flyteidl.event.Event.WorkflowExecutionEvent.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 5; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_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.event.Event.WorkflowExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - *
-       * Workflow execution id
-       * 
- * - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the workflow.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 5) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 5) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 5) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 5) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 5; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 5; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public boolean hasError() { - return outputResultCase_ == 6; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 6) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 6) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 6; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 6) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 6) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 6)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 6; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public boolean hasOutputData() { - return outputResultCase_ == 7; - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 7) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 7) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 7 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 7) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 7) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 7) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this workflow execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 7)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 7; - onChanged();; - return outputDataBuilder_; - } - @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.event.WorkflowExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowExecutionEvent) - private static final flyteidl.event.Event.WorkflowExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowExecutionEvent(); - } - - public static flyteidl.event.Event.WorkflowExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowExecutionEvent(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.event.Event.WorkflowExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NodeExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.NodeExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId(); - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - java.lang.String getProducerId(); - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - int getPhaseValue(); - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - flyteidl.core.Execution.NodeExecution.Phase getPhase(); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - * string input_uri = 5; - */ - java.lang.String getInputUri(); - /** - * string input_uri = 5; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - boolean hasInputData(); - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - flyteidl.core.Literals.LiteralMap getInputData(); - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); - - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - java.lang.String getOutputUri(); - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - boolean hasOutputData(); - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - boolean hasWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata(); - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder(); - - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - boolean hasTaskNodeMetadata(); - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata(); - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder(); - - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - boolean hasParentTaskMetadata(); - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata(); - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder(); - - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - boolean hasParentNodeMetadata(); - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata(); - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder(); - - /** - *
-     * Retry group to indicate grouping of nodes by retries
-     * 
- * - * string retry_group = 11; - */ - java.lang.String getRetryGroup(); - /** - *
-     * Retry group to indicate grouping of nodes by retries
-     * 
- * - * string retry_group = 11; - */ - com.google.protobuf.ByteString - getRetryGroupBytes(); - - /** - *
-     * Identifier of the node in the original workflow/graph
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 12; - */ - java.lang.String getSpecNodeId(); - /** - *
-     * Identifier of the node in the original workflow/graph
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 12; - */ - com.google.protobuf.ByteString - getSpecNodeIdBytes(); - - /** - *
-     * Friendly readable name for the node
-     * 
- * - * string node_name = 13; - */ - java.lang.String getNodeName(); - /** - *
-     * Friendly readable name for the node
-     * 
- * - * string node_name = 13; - */ - com.google.protobuf.ByteString - getNodeNameBytes(); - - /** - * int32 event_version = 16; - */ - int getEventVersion(); - - /** - *
-     * Whether this node launched a subworkflow.
-     * 
- * - * bool is_parent = 17; - */ - boolean getIsParent(); - - /** - *
-     * Whether this node yielded a dynamic workflow.
-     * 
- * - * bool is_dynamic = 18; - */ - boolean getIsDynamic(); - - /** - *
-     * String location uniquely identifying where the deck HTML file is
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 19; - */ - java.lang.String getDeckUri(); - /** - *
-     * String location uniquely identifying where the deck HTML file is
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 19; - */ - com.google.protobuf.ByteString - getDeckUriBytes(); - - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - boolean hasReportedAt(); - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - com.google.protobuf.Timestamp getReportedAt(); - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder(); - - /** - *
-     * Indicates if this node is an ArrayNode.
-     * 
- * - * bool is_array = 22; - */ - boolean getIsArray(); - - public flyteidl.event.Event.NodeExecutionEvent.InputValueCase getInputValueCase(); - - public flyteidl.event.Event.NodeExecutionEvent.OutputResultCase getOutputResultCase(); - - public flyteidl.event.Event.NodeExecutionEvent.TargetMetadataCase getTargetMetadataCase(); - } - /** - * Protobuf type {@code flyteidl.event.NodeExecutionEvent} - */ - public static final class NodeExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.NodeExecutionEvent) - NodeExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use NodeExecutionEvent.newBuilder() to construct. - private NodeExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NodeExecutionEvent() { - producerId_ = ""; - phase_ = 0; - retryGroup_ = ""; - specNodeId_ = ""; - nodeName_ = ""; - deckUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private NodeExecutionEvent( - 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.NodeExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(id_); - id_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - inputValueCase_ = 5; - inputValue_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 6; - outputResult_ = s; - break; - } - case 58: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 7) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 7; - break; - } - case 66: { - flyteidl.event.Event.WorkflowNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 8) { - subBuilder = ((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.event.Event.WorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 8; - break; - } - case 74: { - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder subBuilder = null; - if (parentTaskMetadata_ != null) { - subBuilder = parentTaskMetadata_.toBuilder(); - } - parentTaskMetadata_ = input.readMessage(flyteidl.event.Event.ParentTaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentTaskMetadata_); - parentTaskMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 82: { - flyteidl.event.Event.ParentNodeExecutionMetadata.Builder subBuilder = null; - if (parentNodeMetadata_ != null) { - subBuilder = parentNodeMetadata_.toBuilder(); - } - parentNodeMetadata_ = input.readMessage(flyteidl.event.Event.ParentNodeExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeMetadata_); - parentNodeMetadata_ = subBuilder.buildPartial(); - } - - break; - } - case 90: { - java.lang.String s = input.readStringRequireUtf8(); - - retryGroup_ = s; - break; - } - case 98: { - java.lang.String s = input.readStringRequireUtf8(); - - specNodeId_ = s; - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeName_ = s; - break; - } - case 114: { - flyteidl.event.Event.TaskNodeMetadata.Builder subBuilder = null; - if (targetMetadataCase_ == 14) { - subBuilder = ((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_).toBuilder(); - } - targetMetadata_ = - input.readMessage(flyteidl.event.Event.TaskNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); - targetMetadata_ = subBuilder.buildPartial(); - } - targetMetadataCase_ = 14; - break; - } - case 122: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 15) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 15; - break; - } - case 128: { - - eventVersion_ = input.readInt32(); - break; - } - case 136: { - - isParent_ = input.readBool(); - break; - } - case 144: { - - isDynamic_ = input.readBool(); - break; - } - case 154: { - java.lang.String s = input.readStringRequireUtf8(); - - deckUri_ = s; - break; - } - case 162: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputValueCase_ == 20) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) inputValue_).toBuilder(); - } - inputValue_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) inputValue_); - inputValue_ = subBuilder.buildPartial(); - } - inputValueCase_ = 20; - break; - } - case 170: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (reportedAt_ != null) { - subBuilder = reportedAt_.toBuilder(); - } - reportedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportedAt_); - reportedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 176: { - - isArray_ = input.readBool(); - 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.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - private int inputValueCase_ = 0; - private java.lang.Object inputValue_; - public enum InputValueCase - implements com.google.protobuf.Internal.EnumLite { - INPUT_URI(5), - INPUT_DATA(20), - INPUTVALUE_NOT_SET(0); - private final int value; - private InputValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InputValueCase valueOf(int value) { - return forNumber(value); - } - - public static InputValueCase forNumber(int value) { - switch (value) { - case 5: return INPUT_URI; - case 20: return INPUT_DATA; - case 0: return INPUTVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InputValueCase - getInputValueCase() { - return InputValueCase.forNumber( - inputValueCase_); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(6), - ERROR(7), - OUTPUT_DATA(15), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 6: return OUTPUT_URI; - case 7: return ERROR; - case 15: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public enum TargetMetadataCase - implements com.google.protobuf.Internal.EnumLite { - WORKFLOW_NODE_METADATA(8), - TASK_NODE_METADATA(14), - TARGETMETADATA_NOT_SET(0); - private final int value; - private TargetMetadataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static TargetMetadataCase valueOf(int value) { - return forNumber(value); - } - - public static TargetMetadataCase forNumber(int value) { - switch (value) { - case 8: return WORKFLOW_NODE_METADATA; - case 14: return TASK_NODE_METADATA; - case 0: return TARGETMETADATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - /** - *
-     * Unique identifier for this node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object producerId_; - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } - } - /** - *
-     * the id of the originator (Propeller) of the event
-     * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PHASE_FIELD_NUMBER = 3; - private int phase_; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the node.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 5; - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = ""; - if (inputValueCase_ == 5) { - ref = inputValue_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (inputValueCase_ == 5) { - inputValue_ = s; - } - return s; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = ""; - if (inputValueCase_ == 5) { - ref = inputValue_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (inputValueCase_ == 5) { - inputValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INPUT_DATA_FIELD_NUMBER = 20; - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public boolean hasInputData() { - return inputValueCase_ == 20; - } - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputValueCase_ == 20) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw input data consumed by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if (inputValueCase_ == 20) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 6; - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URL to the output of the execution, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 7; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 15; - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public boolean hasOutputData() { - return outputResultCase_ == 15; - } - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 15) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this node execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 15) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int WORKFLOW_NODE_METADATA_FIELD_NUMBER = 8; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - public static final int TASK_NODE_METADATA_FIELD_NUMBER = 14; - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public boolean hasTaskNodeMetadata() { - return targetMetadataCase_ == 14; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata() { - if (targetMetadataCase_ == 14) { - return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { - if (targetMetadataCase_ == 14) { - return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - - public static final int PARENT_TASK_METADATA_FIELD_NUMBER = 9; - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadata_ != null; - } - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - /** - *
-     * [To be deprecated] Specifies which task (if any) launched this node.
-     * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - return getParentTaskMetadata(); - } - - public static final int PARENT_NODE_METADATA_FIELD_NUMBER = 10; - private flyteidl.event.Event.ParentNodeExecutionMetadata parentNodeMetadata_; - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public boolean hasParentNodeMetadata() { - return parentNodeMetadata_ != null; - } - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata() { - return parentNodeMetadata_ == null ? flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; - } - /** - *
-     * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-     * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder() { - return getParentNodeMetadata(); - } - - public static final int RETRY_GROUP_FIELD_NUMBER = 11; - private volatile java.lang.Object retryGroup_; - /** - *
-     * Retry group to indicate grouping of nodes by retries
-     * 
- * - * string retry_group = 11; - */ - public java.lang.String getRetryGroup() { - java.lang.Object ref = retryGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - retryGroup_ = s; - return s; - } - } - /** - *
-     * Retry group to indicate grouping of nodes by retries
-     * 
- * - * string retry_group = 11; - */ - public com.google.protobuf.ByteString - getRetryGroupBytes() { - java.lang.Object ref = retryGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - retryGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPEC_NODE_ID_FIELD_NUMBER = 12; - private volatile java.lang.Object specNodeId_; - /** - *
-     * Identifier of the node in the original workflow/graph
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 12; - */ - public java.lang.String getSpecNodeId() { - java.lang.Object ref = specNodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specNodeId_ = s; - return s; - } - } - /** - *
-     * Identifier of the node in the original workflow/graph
-     * This maps to value of WorkflowTemplate.nodes[X].id
-     * 
- * - * string spec_node_id = 12; - */ - public com.google.protobuf.ByteString - getSpecNodeIdBytes() { - java.lang.Object ref = specNodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NODE_NAME_FIELD_NUMBER = 13; - private volatile java.lang.Object nodeName_; - /** - *
-     * Friendly readable name for the node
-     * 
- * - * string node_name = 13; - */ - public java.lang.String getNodeName() { - java.lang.Object ref = nodeName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeName_ = s; - return s; - } - } - /** - *
-     * Friendly readable name for the node
-     * 
- * - * string node_name = 13; - */ - public com.google.protobuf.ByteString - getNodeNameBytes() { - java.lang.Object ref = nodeName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_VERSION_FIELD_NUMBER = 16; - private int eventVersion_; - /** - * int32 event_version = 16; - */ - public int getEventVersion() { - return eventVersion_; - } - - public static final int IS_PARENT_FIELD_NUMBER = 17; - private boolean isParent_; - /** - *
-     * Whether this node launched a subworkflow.
-     * 
- * - * bool is_parent = 17; - */ - public boolean getIsParent() { - return isParent_; - } - - public static final int IS_DYNAMIC_FIELD_NUMBER = 18; - private boolean isDynamic_; - /** - *
-     * Whether this node yielded a dynamic workflow.
-     * 
- * - * bool is_dynamic = 18; - */ - public boolean getIsDynamic() { - return isDynamic_; - } - - public static final int DECK_URI_FIELD_NUMBER = 19; - private volatile java.lang.Object deckUri_; - /** - *
-     * String location uniquely identifying where the deck HTML file is
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 19; - */ - public java.lang.String getDeckUri() { - java.lang.Object ref = deckUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deckUri_ = s; - return s; - } - } - /** - *
-     * String location uniquely identifying where the deck HTML file is
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string deck_uri = 19; - */ - public com.google.protobuf.ByteString - getDeckUriBytes() { - java.lang.Object ref = deckUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deckUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPORTED_AT_FIELD_NUMBER = 21; - private com.google.protobuf.Timestamp reportedAt_; - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public boolean hasReportedAt() { - return reportedAt_ != null; - } - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public com.google.protobuf.Timestamp getReportedAt() { - return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example,
-     * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-     * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-     * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-     * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { - return getReportedAt(); - } - - public static final int IS_ARRAY_FIELD_NUMBER = 22; - private boolean isArray_; - /** - *
-     * Indicates if this node is an ArrayNode.
-     * 
- * - * bool is_array = 22; - */ - public boolean getIsArray() { - return isArray_; - } - - 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()); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(3, phase_); - } - if (occurredAt_ != null) { - output.writeMessage(4, getOccurredAt()); - } - if (inputValueCase_ == 5) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, inputValue_); - } - if (outputResultCase_ == 6) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, outputResult_); - } - if (outputResultCase_ == 7) { - output.writeMessage(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - output.writeMessage(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - output.writeMessage(9, getParentTaskMetadata()); - } - if (parentNodeMetadata_ != null) { - output.writeMessage(10, getParentNodeMetadata()); - } - if (!getRetryGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 11, retryGroup_); - } - if (!getSpecNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 12, specNodeId_); - } - if (!getNodeNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, nodeName_); - } - if (targetMetadataCase_ == 14) { - output.writeMessage(14, (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); - } - if (outputResultCase_ == 15) { - output.writeMessage(15, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (eventVersion_ != 0) { - output.writeInt32(16, eventVersion_); - } - if (isParent_ != false) { - output.writeBool(17, isParent_); - } - if (isDynamic_ != false) { - output.writeBool(18, isDynamic_); - } - if (!getDeckUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 19, deckUri_); - } - if (inputValueCase_ == 20) { - output.writeMessage(20, (flyteidl.core.Literals.LiteralMap) inputValue_); - } - if (reportedAt_ != null) { - output.writeMessage(21, getReportedAt()); - } - if (isArray_ != false) { - output.writeBool(22, isArray_); - } - 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()); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, producerId_); - } - if (phase_ != flyteidl.core.Execution.NodeExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, phase_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOccurredAt()); - } - if (inputValueCase_ == 5) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, inputValue_); - } - if (outputResultCase_ == 6) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, outputResult_); - } - if (outputResultCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (targetMetadataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_); - } - if (parentTaskMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getParentTaskMetadata()); - } - if (parentNodeMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getParentNodeMetadata()); - } - if (!getRetryGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, retryGroup_); - } - if (!getSpecNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, specNodeId_); - } - if (!getNodeNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, nodeName_); - } - if (targetMetadataCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_); - } - if (outputResultCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (eventVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(16, eventVersion_); - } - if (isParent_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(17, isParent_); - } - if (isDynamic_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(18, isDynamic_); - } - if (!getDeckUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, deckUri_); - } - if (inputValueCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (flyteidl.core.Literals.LiteralMap) inputValue_); - } - if (reportedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, getReportedAt()); - } - if (isArray_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(22, isArray_); - } - 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.event.Event.NodeExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.NodeExecutionEvent other = (flyteidl.event.Event.NodeExecutionEvent) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (phase_ != other.phase_) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (hasParentTaskMetadata() != other.hasParentTaskMetadata()) return false; - if (hasParentTaskMetadata()) { - if (!getParentTaskMetadata() - .equals(other.getParentTaskMetadata())) return false; - } - if (hasParentNodeMetadata() != other.hasParentNodeMetadata()) return false; - if (hasParentNodeMetadata()) { - if (!getParentNodeMetadata() - .equals(other.getParentNodeMetadata())) return false; - } - if (!getRetryGroup() - .equals(other.getRetryGroup())) return false; - if (!getSpecNodeId() - .equals(other.getSpecNodeId())) return false; - if (!getNodeName() - .equals(other.getNodeName())) return false; - if (getEventVersion() - != other.getEventVersion()) return false; - if (getIsParent() - != other.getIsParent()) return false; - if (getIsDynamic() - != other.getIsDynamic()) return false; - if (!getDeckUri() - .equals(other.getDeckUri())) return false; - if (hasReportedAt() != other.hasReportedAt()) return false; - if (hasReportedAt()) { - if (!getReportedAt() - .equals(other.getReportedAt())) return false; - } - if (getIsArray() - != other.getIsArray()) return false; - if (!getInputValueCase().equals(other.getInputValueCase())) return false; - switch (inputValueCase_) { - case 5: - if (!getInputUri() - .equals(other.getInputUri())) return false; - break; - case 20: - if (!getInputData() - .equals(other.getInputData())) return false; - break; - case 0: - default: - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 6: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 7: - if (!getError() - .equals(other.getError())) return false; - break; - case 15: - if (!getOutputData() - .equals(other.getOutputData())) return false; - break; - case 0: - default: - } - if (!getTargetMetadataCase().equals(other.getTargetMetadataCase())) return false; - switch (targetMetadataCase_) { - case 8: - if (!getWorkflowNodeMetadata() - .equals(other.getWorkflowNodeMetadata())) return false; - break; - case 14: - if (!getTaskNodeMetadata() - .equals(other.getTaskNodeMetadata())) 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(); - if (hasId()) { - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - } - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - if (hasParentTaskMetadata()) { - hash = (37 * hash) + PARENT_TASK_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getParentTaskMetadata().hashCode(); - } - if (hasParentNodeMetadata()) { - hash = (37 * hash) + PARENT_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeMetadata().hashCode(); - } - hash = (37 * hash) + RETRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getRetryGroup().hashCode(); - hash = (37 * hash) + SPEC_NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getSpecNodeId().hashCode(); - hash = (37 * hash) + NODE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getNodeName().hashCode(); - hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getEventVersion(); - hash = (37 * hash) + IS_PARENT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsParent()); - hash = (37 * hash) + IS_DYNAMIC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsDynamic()); - hash = (37 * hash) + DECK_URI_FIELD_NUMBER; - hash = (53 * hash) + getDeckUri().hashCode(); - if (hasReportedAt()) { - hash = (37 * hash) + REPORTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getReportedAt().hashCode(); - } - hash = (37 * hash) + IS_ARRAY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsArray()); - switch (inputValueCase_) { - case 5: - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - break; - case 20: - hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getInputData().hashCode(); - break; - case 0: - default: - } - switch (outputResultCase_) { - case 6: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 7: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 15: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - switch (targetMetadataCase_) { - case 8: - hash = (37 * hash) + WORKFLOW_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowNodeMetadata().hashCode(); - break; - case 14: - hash = (37 * hash) + TASK_NODE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getTaskNodeMetadata().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.NodeExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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.event.Event.NodeExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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.event.Event.NodeExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.NodeExecutionEvent 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.event.Event.NodeExecutionEvent 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; - } - /** - * Protobuf type {@code flyteidl.event.NodeExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.NodeExecutionEvent) - flyteidl.event.Event.NodeExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.NodeExecutionEvent.class, flyteidl.event.Event.NodeExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.NodeExecutionEvent.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; - } - producerId_ = ""; - - phase_ = 0; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - if (parentNodeMetadataBuilder_ == null) { - parentNodeMetadata_ = null; - } else { - parentNodeMetadata_ = null; - parentNodeMetadataBuilder_ = null; - } - retryGroup_ = ""; - - specNodeId_ = ""; - - nodeName_ = ""; - - eventVersion_ = 0; - - isParent_ = false; - - isDynamic_ = false; - - deckUri_ = ""; - - if (reportedAtBuilder_ == null) { - reportedAt_ = null; - } else { - reportedAt_ = null; - reportedAtBuilder_ = null; - } - isArray_ = false; - - inputValueCase_ = 0; - inputValue_ = null; - outputResultCase_ = 0; - outputResult_ = null; - targetMetadataCase_ = 0; - targetMetadata_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent build() { - flyteidl.event.Event.NodeExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.NodeExecutionEvent buildPartial() { - flyteidl.event.Event.NodeExecutionEvent result = new flyteidl.event.Event.NodeExecutionEvent(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - result.producerId_ = producerId_; - result.phase_ = phase_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - if (inputValueCase_ == 5) { - result.inputValue_ = inputValue_; - } - if (inputValueCase_ == 20) { - if (inputDataBuilder_ == null) { - result.inputValue_ = inputValue_; - } else { - result.inputValue_ = inputDataBuilder_.build(); - } - } - if (outputResultCase_ == 6) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 7) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 15) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - if (targetMetadataCase_ == 8) { - if (workflowNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = workflowNodeMetadataBuilder_.build(); - } - } - if (targetMetadataCase_ == 14) { - if (taskNodeMetadataBuilder_ == null) { - result.targetMetadata_ = targetMetadata_; - } else { - result.targetMetadata_ = taskNodeMetadataBuilder_.build(); - } - } - if (parentTaskMetadataBuilder_ == null) { - result.parentTaskMetadata_ = parentTaskMetadata_; - } else { - result.parentTaskMetadata_ = parentTaskMetadataBuilder_.build(); - } - if (parentNodeMetadataBuilder_ == null) { - result.parentNodeMetadata_ = parentNodeMetadata_; - } else { - result.parentNodeMetadata_ = parentNodeMetadataBuilder_.build(); - } - result.retryGroup_ = retryGroup_; - result.specNodeId_ = specNodeId_; - result.nodeName_ = nodeName_; - result.eventVersion_ = eventVersion_; - result.isParent_ = isParent_; - result.isDynamic_ = isDynamic_; - result.deckUri_ = deckUri_; - if (reportedAtBuilder_ == null) { - result.reportedAt_ = reportedAt_; - } else { - result.reportedAt_ = reportedAtBuilder_.build(); - } - result.isArray_ = isArray_; - result.inputValueCase_ = inputValueCase_; - result.outputResultCase_ = outputResultCase_; - result.targetMetadataCase_ = targetMetadataCase_; - 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.event.Event.NodeExecutionEvent) { - return mergeFrom((flyteidl.event.Event.NodeExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.NodeExecutionEvent other) { - if (other == flyteidl.event.Event.NodeExecutionEvent.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (other.hasParentTaskMetadata()) { - mergeParentTaskMetadata(other.getParentTaskMetadata()); - } - if (other.hasParentNodeMetadata()) { - mergeParentNodeMetadata(other.getParentNodeMetadata()); - } - if (!other.getRetryGroup().isEmpty()) { - retryGroup_ = other.retryGroup_; - onChanged(); - } - if (!other.getSpecNodeId().isEmpty()) { - specNodeId_ = other.specNodeId_; - onChanged(); - } - if (!other.getNodeName().isEmpty()) { - nodeName_ = other.nodeName_; - onChanged(); - } - if (other.getEventVersion() != 0) { - setEventVersion(other.getEventVersion()); - } - if (other.getIsParent() != false) { - setIsParent(other.getIsParent()); - } - if (other.getIsDynamic() != false) { - setIsDynamic(other.getIsDynamic()); - } - if (!other.getDeckUri().isEmpty()) { - deckUri_ = other.deckUri_; - onChanged(); - } - if (other.hasReportedAt()) { - mergeReportedAt(other.getReportedAt()); - } - if (other.getIsArray() != false) { - setIsArray(other.getIsArray()); - } - switch (other.getInputValueCase()) { - case INPUT_URI: { - inputValueCase_ = 5; - inputValue_ = other.inputValue_; - onChanged(); - break; - } - case INPUT_DATA: { - mergeInputData(other.getInputData()); - break; - } - case INPUTVALUE_NOT_SET: { - break; - } - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 6; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_NOT_SET: { - break; - } - } - switch (other.getTargetMetadataCase()) { - case WORKFLOW_NODE_METADATA: { - mergeWorkflowNodeMetadata(other.getWorkflowNodeMetadata()); - break; - } - case TASK_NODE_METADATA: { - mergeTaskNodeMetadata(other.getTaskNodeMetadata()); - break; - } - case TARGETMETADATA_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.event.Event.NodeExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.NodeExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int inputValueCase_ = 0; - private java.lang.Object inputValue_; - public InputValueCase - getInputValueCase() { - return InputValueCase.forNumber( - inputValueCase_); - } - - public Builder clearInputValue() { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - return this; - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int targetMetadataCase_ = 0; - private java.lang.Object targetMetadata_; - public TargetMetadataCase - getTargetMetadataCase() { - return TargetMetadataCase.forNumber( - targetMetadataCase_); - } - - public Builder clearTargetMetadata() { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - return this; - } - - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> idBuilder_; - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - *
-       * Unique identifier for this node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getId(), - getParentForChildren(), - isClean()); - id_ = null; - } - return idBuilder_; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * the id of the originator (Propeller) of the event
-       * 
- * - * string producer_id = 2; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public flyteidl.core.Execution.NodeExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.NodeExecution.Phase result = flyteidl.core.Execution.NodeExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.NodeExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder setPhase(flyteidl.core.Execution.NodeExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.NodeExecution.Phase phase = 3; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the node.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - /** - * string input_uri = 5; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = ""; - if (inputValueCase_ == 5) { - ref = inputValue_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (inputValueCase_ == 5) { - inputValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string input_uri = 5; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = ""; - if (inputValueCase_ == 5) { - ref = inputValue_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (inputValueCase_ == 5) { - inputValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string input_uri = 5; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - inputValueCase_ = 5; - inputValue_ = value; - onChanged(); - return this; - } - /** - * string input_uri = 5; - */ - public Builder clearInputUri() { - if (inputValueCase_ == 5) { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - } - return this; - } - /** - * string input_uri = 5; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - inputValueCase_ = 5; - inputValue_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public boolean hasInputData() { - return inputValueCase_ == 20; - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 20) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (inputValueCase_ == 20) { - return inputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputValue_ = value; - onChanged(); - } else { - inputDataBuilder_.setMessage(value); - } - inputValueCase_ = 20; - return this; - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public Builder setInputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputDataBuilder_ == null) { - inputValue_ = builderForValue.build(); - onChanged(); - } else { - inputDataBuilder_.setMessage(builderForValue.build()); - } - inputValueCase_ = 20; - return this; - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 20 && - inputValue_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - inputValue_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) inputValue_) - .mergeFrom(value).buildPartial(); - } else { - inputValue_ = value; - } - onChanged(); - } else { - if (inputValueCase_ == 20) { - inputDataBuilder_.mergeFrom(value); - } - inputDataBuilder_.setMessage(value); - } - inputValueCase_ = 20; - return this; - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public Builder clearInputData() { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 20) { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - } - } else { - if (inputValueCase_ == 20) { - inputValueCase_ = 0; - inputValue_ = null; - } - inputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { - return getInputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if ((inputValueCase_ == 20) && (inputDataBuilder_ != null)) { - return inputDataBuilder_.getMessageOrBuilder(); - } else { - if (inputValueCase_ == 20) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw input data consumed by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputDataFieldBuilder() { - if (inputDataBuilder_ == null) { - if (!(inputValueCase_ == 20)) { - inputValue_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) inputValue_, - getParentForChildren(), - isClean()); - inputValue_ = null; - } - inputValueCase_ = 20; - onChanged();; - return inputDataBuilder_; - } - - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 6) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 6) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 6) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 6) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URL to the output of the execution, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 6; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 6; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public boolean hasError() { - return outputResultCase_ == 7; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 7) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 7) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 7; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 7) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 7) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 7) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 7)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 7; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public boolean hasOutputData() { - return outputResultCase_ == 15; - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 15) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 15) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 15; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 15; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 15 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 15) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 15; - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 15) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 15) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 15) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 15) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this node execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 15)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 15; - onChanged();; - return outputDataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> workflowNodeMetadataBuilder_; - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public boolean hasWorkflowNodeMetadata() { - return targetMetadataCase_ == 8; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata getWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 8) { - return workflowNodeMetadataBuilder_.getMessage(); - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder setWorkflowNodeMetadata( - flyteidl.event.Event.WorkflowNodeMetadata.Builder builderForValue) { - if (workflowNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - workflowNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder mergeWorkflowNodeMetadata(flyteidl.event.Event.WorkflowNodeMetadata value) { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8 && - targetMetadata_ != flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.newBuilder((flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 8) { - workflowNodeMetadataBuilder_.mergeFrom(value); - } - workflowNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 8; - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public Builder clearWorkflowNodeMetadata() { - if (workflowNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 8) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - workflowNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadata.Builder getWorkflowNodeMetadataBuilder() { - return getWorkflowNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - public flyteidl.event.Event.WorkflowNodeMetadataOrBuilder getWorkflowNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 8) && (workflowNodeMetadataBuilder_ != null)) { - return workflowNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 8) { - return (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.WorkflowNodeMetadata workflow_node_metadata = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder> - getWorkflowNodeMetadataFieldBuilder() { - if (workflowNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 8)) { - targetMetadata_ = flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - workflowNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.WorkflowNodeMetadata, flyteidl.event.Event.WorkflowNodeMetadata.Builder, flyteidl.event.Event.WorkflowNodeMetadataOrBuilder>( - (flyteidl.event.Event.WorkflowNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 8; - onChanged();; - return workflowNodeMetadataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder> taskNodeMetadataBuilder_; - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public boolean hasTaskNodeMetadata() { - return targetMetadataCase_ == 14; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public flyteidl.event.Event.TaskNodeMetadata getTaskNodeMetadata() { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 14) { - return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } else { - if (targetMetadataCase_ == 14) { - return taskNodeMetadataBuilder_.getMessage(); - } - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public Builder setTaskNodeMetadata(flyteidl.event.Event.TaskNodeMetadata value) { - if (taskNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetMetadata_ = value; - onChanged(); - } else { - taskNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 14; - return this; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public Builder setTaskNodeMetadata( - flyteidl.event.Event.TaskNodeMetadata.Builder builderForValue) { - if (taskNodeMetadataBuilder_ == null) { - targetMetadata_ = builderForValue.build(); - onChanged(); - } else { - taskNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - targetMetadataCase_ = 14; - return this; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public Builder mergeTaskNodeMetadata(flyteidl.event.Event.TaskNodeMetadata value) { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 14 && - targetMetadata_ != flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance()) { - targetMetadata_ = flyteidl.event.Event.TaskNodeMetadata.newBuilder((flyteidl.event.Event.TaskNodeMetadata) targetMetadata_) - .mergeFrom(value).buildPartial(); - } else { - targetMetadata_ = value; - } - onChanged(); - } else { - if (targetMetadataCase_ == 14) { - taskNodeMetadataBuilder_.mergeFrom(value); - } - taskNodeMetadataBuilder_.setMessage(value); - } - targetMetadataCase_ = 14; - return this; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public Builder clearTaskNodeMetadata() { - if (taskNodeMetadataBuilder_ == null) { - if (targetMetadataCase_ == 14) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - onChanged(); - } - } else { - if (targetMetadataCase_ == 14) { - targetMetadataCase_ = 0; - targetMetadata_ = null; - } - taskNodeMetadataBuilder_.clear(); - } - return this; - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public flyteidl.event.Event.TaskNodeMetadata.Builder getTaskNodeMetadataBuilder() { - return getTaskNodeMetadataFieldBuilder().getBuilder(); - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - public flyteidl.event.Event.TaskNodeMetadataOrBuilder getTaskNodeMetadataOrBuilder() { - if ((targetMetadataCase_ == 14) && (taskNodeMetadataBuilder_ != null)) { - return taskNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - if (targetMetadataCase_ == 14) { - return (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_; - } - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - } - /** - * .flyteidl.event.TaskNodeMetadata task_node_metadata = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder> - getTaskNodeMetadataFieldBuilder() { - if (taskNodeMetadataBuilder_ == null) { - if (!(targetMetadataCase_ == 14)) { - targetMetadata_ = flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - taskNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskNodeMetadata, flyteidl.event.Event.TaskNodeMetadata.Builder, flyteidl.event.Event.TaskNodeMetadataOrBuilder>( - (flyteidl.event.Event.TaskNodeMetadata) targetMetadata_, - getParentForChildren(), - isClean()); - targetMetadata_ = null; - } - targetMetadataCase_ = 14; - onChanged();; - return taskNodeMetadataBuilder_; - } - - private flyteidl.event.Event.ParentTaskExecutionMetadata parentTaskMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> parentTaskMetadataBuilder_; - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public boolean hasParentTaskMetadata() { - return parentTaskMetadataBuilder_ != null || parentTaskMetadata_ != null; - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata getParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - return parentTaskMetadata_ == null ? flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } else { - return parentTaskMetadataBuilder_.getMessage(); - } - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentTaskMetadata_ = value; - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder setParentTaskMetadata( - flyteidl.event.Event.ParentTaskExecutionMetadata.Builder builderForValue) { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = builderForValue.build(); - onChanged(); - } else { - parentTaskMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder mergeParentTaskMetadata(flyteidl.event.Event.ParentTaskExecutionMetadata value) { - if (parentTaskMetadataBuilder_ == null) { - if (parentTaskMetadata_ != null) { - parentTaskMetadata_ = - flyteidl.event.Event.ParentTaskExecutionMetadata.newBuilder(parentTaskMetadata_).mergeFrom(value).buildPartial(); - } else { - parentTaskMetadata_ = value; - } - onChanged(); - } else { - parentTaskMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public Builder clearParentTaskMetadata() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadata_ = null; - onChanged(); - } else { - parentTaskMetadata_ = null; - parentTaskMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadata.Builder getParentTaskMetadataBuilder() { - - onChanged(); - return getParentTaskMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - public flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder getParentTaskMetadataOrBuilder() { - if (parentTaskMetadataBuilder_ != null) { - return parentTaskMetadataBuilder_.getMessageOrBuilder(); - } else { - return parentTaskMetadata_ == null ? - flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance() : parentTaskMetadata_; - } - } - /** - *
-       * [To be deprecated] Specifies which task (if any) launched this node.
-       * 
- * - * .flyteidl.event.ParentTaskExecutionMetadata parent_task_metadata = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder> - getParentTaskMetadataFieldBuilder() { - if (parentTaskMetadataBuilder_ == null) { - parentTaskMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentTaskExecutionMetadata, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder, flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder>( - getParentTaskMetadata(), - getParentForChildren(), - isClean()); - parentTaskMetadata_ = null; - } - return parentTaskMetadataBuilder_; - } - - private flyteidl.event.Event.ParentNodeExecutionMetadata parentNodeMetadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder> parentNodeMetadataBuilder_; - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public boolean hasParentNodeMetadata() { - return parentNodeMetadataBuilder_ != null || parentNodeMetadata_ != null; - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public flyteidl.event.Event.ParentNodeExecutionMetadata getParentNodeMetadata() { - if (parentNodeMetadataBuilder_ == null) { - return parentNodeMetadata_ == null ? flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; - } else { - return parentNodeMetadataBuilder_.getMessage(); - } - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public Builder setParentNodeMetadata(flyteidl.event.Event.ParentNodeExecutionMetadata value) { - if (parentNodeMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeMetadata_ = value; - onChanged(); - } else { - parentNodeMetadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public Builder setParentNodeMetadata( - flyteidl.event.Event.ParentNodeExecutionMetadata.Builder builderForValue) { - if (parentNodeMetadataBuilder_ == null) { - parentNodeMetadata_ = builderForValue.build(); - onChanged(); - } else { - parentNodeMetadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public Builder mergeParentNodeMetadata(flyteidl.event.Event.ParentNodeExecutionMetadata value) { - if (parentNodeMetadataBuilder_ == null) { - if (parentNodeMetadata_ != null) { - parentNodeMetadata_ = - flyteidl.event.Event.ParentNodeExecutionMetadata.newBuilder(parentNodeMetadata_).mergeFrom(value).buildPartial(); - } else { - parentNodeMetadata_ = value; - } - onChanged(); - } else { - parentNodeMetadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public Builder clearParentNodeMetadata() { - if (parentNodeMetadataBuilder_ == null) { - parentNodeMetadata_ = null; - onChanged(); - } else { - parentNodeMetadata_ = null; - parentNodeMetadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public flyteidl.event.Event.ParentNodeExecutionMetadata.Builder getParentNodeMetadataBuilder() { - - onChanged(); - return getParentNodeMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - public flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder getParentNodeMetadataOrBuilder() { - if (parentNodeMetadataBuilder_ != null) { - return parentNodeMetadataBuilder_.getMessageOrBuilder(); - } else { - return parentNodeMetadata_ == null ? - flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance() : parentNodeMetadata_; - } - } - /** - *
-       * Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node.
-       * 
- * - * .flyteidl.event.ParentNodeExecutionMetadata parent_node_metadata = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder> - getParentNodeMetadataFieldBuilder() { - if (parentNodeMetadataBuilder_ == null) { - parentNodeMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.ParentNodeExecutionMetadata, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder, flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder>( - getParentNodeMetadata(), - getParentForChildren(), - isClean()); - parentNodeMetadata_ = null; - } - return parentNodeMetadataBuilder_; - } - - private java.lang.Object retryGroup_ = ""; - /** - *
-       * Retry group to indicate grouping of nodes by retries
-       * 
- * - * string retry_group = 11; - */ - public java.lang.String getRetryGroup() { - java.lang.Object ref = retryGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - retryGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Retry group to indicate grouping of nodes by retries
-       * 
- * - * string retry_group = 11; - */ - public com.google.protobuf.ByteString - getRetryGroupBytes() { - java.lang.Object ref = retryGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - retryGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Retry group to indicate grouping of nodes by retries
-       * 
- * - * string retry_group = 11; - */ - public Builder setRetryGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - retryGroup_ = value; - onChanged(); - return this; - } - /** - *
-       * Retry group to indicate grouping of nodes by retries
-       * 
- * - * string retry_group = 11; - */ - public Builder clearRetryGroup() { - - retryGroup_ = getDefaultInstance().getRetryGroup(); - onChanged(); - return this; - } - /** - *
-       * Retry group to indicate grouping of nodes by retries
-       * 
- * - * string retry_group = 11; - */ - public Builder setRetryGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - retryGroup_ = value; - onChanged(); - return this; - } - - private java.lang.Object specNodeId_ = ""; - /** - *
-       * Identifier of the node in the original workflow/graph
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 12; - */ - public java.lang.String getSpecNodeId() { - java.lang.Object ref = specNodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - specNodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifier of the node in the original workflow/graph
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 12; - */ - public com.google.protobuf.ByteString - getSpecNodeIdBytes() { - java.lang.Object ref = specNodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - specNodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifier of the node in the original workflow/graph
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 12; - */ - public Builder setSpecNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - specNodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifier of the node in the original workflow/graph
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 12; - */ - public Builder clearSpecNodeId() { - - specNodeId_ = getDefaultInstance().getSpecNodeId(); - onChanged(); - return this; - } - /** - *
-       * Identifier of the node in the original workflow/graph
-       * This maps to value of WorkflowTemplate.nodes[X].id
-       * 
- * - * string spec_node_id = 12; - */ - public Builder setSpecNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - specNodeId_ = value; - onChanged(); - return this; - } - - private java.lang.Object nodeName_ = ""; - /** - *
-       * Friendly readable name for the node
-       * 
- * - * string node_name = 13; - */ - public java.lang.String getNodeName() { - java.lang.Object ref = nodeName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Friendly readable name for the node
-       * 
- * - * string node_name = 13; - */ - public com.google.protobuf.ByteString - getNodeNameBytes() { - java.lang.Object ref = nodeName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Friendly readable name for the node
-       * 
- * - * string node_name = 13; - */ - public Builder setNodeName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeName_ = value; - onChanged(); - return this; - } - /** - *
-       * Friendly readable name for the node
-       * 
- * - * string node_name = 13; - */ - public Builder clearNodeName() { - - nodeName_ = getDefaultInstance().getNodeName(); - onChanged(); - return this; - } - /** - *
-       * Friendly readable name for the node
-       * 
- * - * string node_name = 13; - */ - public Builder setNodeNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeName_ = value; - onChanged(); - return this; - } - - private int eventVersion_ ; - /** - * int32 event_version = 16; - */ - public int getEventVersion() { - return eventVersion_; - } - /** - * int32 event_version = 16; - */ - public Builder setEventVersion(int value) { - - eventVersion_ = value; - onChanged(); - return this; - } - /** - * int32 event_version = 16; - */ - public Builder clearEventVersion() { - - eventVersion_ = 0; - onChanged(); - return this; - } - - private boolean isParent_ ; - /** - *
-       * Whether this node launched a subworkflow.
-       * 
- * - * bool is_parent = 17; - */ - public boolean getIsParent() { - return isParent_; - } - /** - *
-       * Whether this node launched a subworkflow.
-       * 
- * - * bool is_parent = 17; - */ - public Builder setIsParent(boolean value) { - - isParent_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this node launched a subworkflow.
-       * 
- * - * bool is_parent = 17; - */ - public Builder clearIsParent() { - - isParent_ = false; - onChanged(); - return this; - } - - private boolean isDynamic_ ; - /** - *
-       * Whether this node yielded a dynamic workflow.
-       * 
- * - * bool is_dynamic = 18; - */ - public boolean getIsDynamic() { - return isDynamic_; - } - /** - *
-       * Whether this node yielded a dynamic workflow.
-       * 
- * - * bool is_dynamic = 18; - */ - public Builder setIsDynamic(boolean value) { - - isDynamic_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether this node yielded a dynamic workflow.
-       * 
- * - * bool is_dynamic = 18; - */ - public Builder clearIsDynamic() { - - isDynamic_ = false; - onChanged(); - return this; - } - - private java.lang.Object deckUri_ = ""; - /** - *
-       * String location uniquely identifying where the deck HTML file is
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 19; - */ - public java.lang.String getDeckUri() { - java.lang.Object ref = deckUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deckUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * String location uniquely identifying where the deck HTML file is
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 19; - */ - public com.google.protobuf.ByteString - getDeckUriBytes() { - java.lang.Object ref = deckUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deckUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * String location uniquely identifying where the deck HTML file is
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 19; - */ - public Builder setDeckUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deckUri_ = value; - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the deck HTML file is
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 19; - */ - public Builder clearDeckUri() { - - deckUri_ = getDefaultInstance().getDeckUri(); - onChanged(); - return this; - } - /** - *
-       * String location uniquely identifying where the deck HTML file is
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string deck_uri = 19; - */ - public Builder setDeckUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deckUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp reportedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> reportedAtBuilder_; - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public boolean hasReportedAt() { - return reportedAtBuilder_ != null || reportedAt_ != null; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public com.google.protobuf.Timestamp getReportedAt() { - if (reportedAtBuilder_ == null) { - return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } else { - return reportedAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public Builder setReportedAt(com.google.protobuf.Timestamp value) { - if (reportedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reportedAt_ = value; - onChanged(); - } else { - reportedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public Builder setReportedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (reportedAtBuilder_ == null) { - reportedAt_ = builderForValue.build(); - onChanged(); - } else { - reportedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public Builder mergeReportedAt(com.google.protobuf.Timestamp value) { - if (reportedAtBuilder_ == null) { - if (reportedAt_ != null) { - reportedAt_ = - com.google.protobuf.Timestamp.newBuilder(reportedAt_).mergeFrom(value).buildPartial(); - } else { - reportedAt_ = value; - } - onChanged(); - } else { - reportedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public Builder clearReportedAt() { - if (reportedAtBuilder_ == null) { - reportedAt_ = null; - onChanged(); - } else { - reportedAt_ = null; - reportedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public com.google.protobuf.Timestamp.Builder getReportedAtBuilder() { - - onChanged(); - return getReportedAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { - if (reportedAtBuilder_ != null) { - return reportedAtBuilder_.getMessageOrBuilder(); - } else { - return reportedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example,
-       * when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when
-       * literal inputs are initially copied. The event however will not be sent until after the copy completes.
-       * Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series.
-       * 
- * - * .google.protobuf.Timestamp reported_at = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getReportedAtFieldBuilder() { - if (reportedAtBuilder_ == null) { - reportedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReportedAt(), - getParentForChildren(), - isClean()); - reportedAt_ = null; - } - return reportedAtBuilder_; - } - - private boolean isArray_ ; - /** - *
-       * Indicates if this node is an ArrayNode.
-       * 
- * - * bool is_array = 22; - */ - public boolean getIsArray() { - return isArray_; - } - /** - *
-       * Indicates if this node is an ArrayNode.
-       * 
- * - * bool is_array = 22; - */ - public Builder setIsArray(boolean value) { - - isArray_ = value; - onChanged(); - return this; - } - /** - *
-       * Indicates if this node is an ArrayNode.
-       * 
- * - * bool is_array = 22; - */ - public Builder clearIsArray() { - - isArray_ = false; - onChanged(); - return this; - } - @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.event.NodeExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.NodeExecutionEvent) - private static final flyteidl.event.Event.NodeExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.NodeExecutionEvent(); - } - - public static flyteidl.event.Event.NodeExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NodeExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NodeExecutionEvent(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.event.Event.NodeExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.WorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - boolean hasExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder(); - } - /** - *
-   * For Workflow Nodes we need to send information about the workflow that's launched
-   * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class WorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.WorkflowNodeMetadata) - WorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkflowNodeMetadata.newBuilder() to construct. - private WorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkflowNodeMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkflowNodeMetadata( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (executionId_ != null) { - subBuilder = executionId_.toBuilder(); - } - executionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(executionId_); - executionId_ = 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.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - public static final int EXECUTION_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - return getExecutionId(); - } - - 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 (executionId_ != null) { - output.writeMessage(1, getExecutionId()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (executionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExecutionId()); - } - 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.event.Event.WorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.WorkflowNodeMetadata other = (flyteidl.event.Event.WorkflowNodeMetadata) obj; - - if (hasExecutionId() != other.hasExecutionId()) return false; - if (hasExecutionId()) { - if (!getExecutionId() - .equals(other.getExecutionId())) 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 (hasExecutionId()) { - hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getExecutionId().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.WorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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.event.Event.WorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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.event.Event.WorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.WorkflowNodeMetadata 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.event.Event.WorkflowNodeMetadata 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; - } - /** - *
-     * For Workflow Nodes we need to send information about the workflow that's launched
-     * 
- * - * Protobuf type {@code flyteidl.event.WorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.WorkflowNodeMetadata) - flyteidl.event.Event.WorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.WorkflowNodeMetadata.class, flyteidl.event.Event.WorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.WorkflowNodeMetadata.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 (executionIdBuilder_ == null) { - executionId_ = null; - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata build() { - flyteidl.event.Event.WorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.WorkflowNodeMetadata buildPartial() { - flyteidl.event.Event.WorkflowNodeMetadata result = new flyteidl.event.Event.WorkflowNodeMetadata(this); - if (executionIdBuilder_ == null) { - result.executionId_ = executionId_; - } else { - result.executionId_ = executionIdBuilder_.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.event.Event.WorkflowNodeMetadata) { - return mergeFrom((flyteidl.event.Event.WorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.WorkflowNodeMetadata other) { - if (other == flyteidl.event.Event.WorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasExecutionId()) { - mergeExecutionId(other.getExecutionId()); - } - 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.event.Event.WorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.WorkflowNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier executionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> executionIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public boolean hasExecutionId() { - return executionIdBuilder_ != null || executionId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getExecutionId() { - if (executionIdBuilder_ == null) { - return executionId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } else { - return executionIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - executionId_ = value; - onChanged(); - } else { - executionIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder setExecutionId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (executionIdBuilder_ == null) { - executionId_ = builderForValue.build(); - onChanged(); - } else { - executionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder mergeExecutionId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (executionIdBuilder_ == null) { - if (executionId_ != null) { - executionId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(executionId_).mergeFrom(value).buildPartial(); - } else { - executionId_ = value; - } - onChanged(); - } else { - executionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public Builder clearExecutionId() { - if (executionIdBuilder_ == null) { - executionId_ = null; - onChanged(); - } else { - executionId_ = null; - executionIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getExecutionIdBuilder() { - - onChanged(); - return getExecutionIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getExecutionIdOrBuilder() { - if (executionIdBuilder_ != null) { - return executionIdBuilder_.getMessageOrBuilder(); - } else { - return executionId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : executionId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier execution_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getExecutionIdFieldBuilder() { - if (executionIdBuilder_ == null) { - executionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getExecutionId(), - getParentForChildren(), - isClean()); - executionId_ = null; - } - return executionIdBuilder_; - } - @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.event.WorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.WorkflowNodeMetadata) - private static final flyteidl.event.Event.WorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.WorkflowNodeMetadata(); - } - - public static flyteidl.event.Event.WorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkflowNodeMetadata(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.event.Event.WorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - int getCacheStatusValue(); - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); - - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - boolean hasCatalogKey(); - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - flyteidl.core.Catalog.CatalogMetadata getCatalogKey(); - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder(); - - /** - *
-     * Captures the status of cache reservations for this execution.
-     * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - int getReservationStatusValue(); - /** - *
-     * Captures the status of cache reservations for this execution.
-     * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus(); - - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - java.lang.String getCheckpointUri(); - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - com.google.protobuf.ByteString - getCheckpointUriBytes(); - - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - boolean hasDynamicWorkflow(); - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow(); - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.TaskNodeMetadata} - */ - public static final class TaskNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.TaskNodeMetadata) - TaskNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskNodeMetadata.newBuilder() to construct. - private TaskNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskNodeMetadata() { - cacheStatus_ = 0; - reservationStatus_ = 0; - checkpointUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskNodeMetadata( - 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 8: { - int rawValue = input.readEnum(); - - cacheStatus_ = rawValue; - break; - } - case 18: { - flyteidl.core.Catalog.CatalogMetadata.Builder subBuilder = null; - if (catalogKey_ != null) { - subBuilder = catalogKey_.toBuilder(); - } - catalogKey_ = input.readMessage(flyteidl.core.Catalog.CatalogMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(catalogKey_); - catalogKey_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - int rawValue = input.readEnum(); - - reservationStatus_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - checkpointUri_ = s; - break; - } - case 130: { - flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder subBuilder = null; - if (dynamicWorkflow_ != null) { - subBuilder = dynamicWorkflow_.toBuilder(); - } - dynamicWorkflow_ = input.readMessage(flyteidl.event.Event.DynamicWorkflowNodeMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dynamicWorkflow_); - dynamicWorkflow_ = 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.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskNodeMetadata.class, flyteidl.event.Event.TaskNodeMetadata.Builder.class); - } - - public static final int CACHE_STATUS_FIELD_NUMBER = 1; - private int cacheStatus_; - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-     * Captures the status of caching for this execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - - public static final int CATALOG_KEY_FIELD_NUMBER = 2; - private flyteidl.core.Catalog.CatalogMetadata catalogKey_; - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public boolean hasCatalogKey() { - return catalogKey_ != null; - } - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { - return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } - /** - *
-     * This structure carries the catalog artifact information
-     * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { - return getCatalogKey(); - } - - public static final int RESERVATION_STATUS_FIELD_NUMBER = 3; - private int reservationStatus_; - /** - *
-     * Captures the status of cache reservations for this execution.
-     * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public int getReservationStatusValue() { - return reservationStatus_; - } - /** - *
-     * Captures the status of cache reservations for this execution.
-     * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogReservation.Status result = flyteidl.core.Catalog.CatalogReservation.Status.valueOf(reservationStatus_); - return result == null ? flyteidl.core.Catalog.CatalogReservation.Status.UNRECOGNIZED : result; - } - - public static final int CHECKPOINT_URI_FIELD_NUMBER = 4; - private volatile java.lang.Object checkpointUri_; - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - public java.lang.String getCheckpointUri() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checkpointUri_ = s; - return s; - } - } - /** - *
-     * The latest checkpoint location
-     * 
- * - * string checkpoint_uri = 4; - */ - public com.google.protobuf.ByteString - getCheckpointUriBytes() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkpointUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DYNAMIC_WORKFLOW_FIELD_NUMBER = 16; - private flyteidl.event.Event.DynamicWorkflowNodeMetadata dynamicWorkflow_; - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public boolean hasDynamicWorkflow() { - return dynamicWorkflow_ != null; - } - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow() { - return dynamicWorkflow_ == null ? flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } - /** - *
-     * In the case this task launched a dynamic workflow we capture its structure here.
-     * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { - return getDynamicWorkflow(); - } - - 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 (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - output.writeEnum(1, cacheStatus_); - } - if (catalogKey_ != null) { - output.writeMessage(2, getCatalogKey()); - } - if (reservationStatus_ != flyteidl.core.Catalog.CatalogReservation.Status.RESERVATION_DISABLED.getNumber()) { - output.writeEnum(3, reservationStatus_); - } - if (!getCheckpointUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, checkpointUri_); - } - if (dynamicWorkflow_ != null) { - output.writeMessage(16, getDynamicWorkflow()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, cacheStatus_); - } - if (catalogKey_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCatalogKey()); - } - if (reservationStatus_ != flyteidl.core.Catalog.CatalogReservation.Status.RESERVATION_DISABLED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, reservationStatus_); - } - if (!getCheckpointUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, checkpointUri_); - } - if (dynamicWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getDynamicWorkflow()); - } - 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.event.Event.TaskNodeMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.TaskNodeMetadata other = (flyteidl.event.Event.TaskNodeMetadata) obj; - - if (cacheStatus_ != other.cacheStatus_) return false; - if (hasCatalogKey() != other.hasCatalogKey()) return false; - if (hasCatalogKey()) { - if (!getCatalogKey() - .equals(other.getCatalogKey())) return false; - } - if (reservationStatus_ != other.reservationStatus_) return false; - if (!getCheckpointUri() - .equals(other.getCheckpointUri())) return false; - if (hasDynamicWorkflow() != other.hasDynamicWorkflow()) return false; - if (hasDynamicWorkflow()) { - if (!getDynamicWorkflow() - .equals(other.getDynamicWorkflow())) 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(); - hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + cacheStatus_; - if (hasCatalogKey()) { - hash = (37 * hash) + CATALOG_KEY_FIELD_NUMBER; - hash = (53 * hash) + getCatalogKey().hashCode(); - } - hash = (37 * hash) + RESERVATION_STATUS_FIELD_NUMBER; - hash = (53 * hash) + reservationStatus_; - hash = (37 * hash) + CHECKPOINT_URI_FIELD_NUMBER; - hash = (53 * hash) + getCheckpointUri().hashCode(); - if (hasDynamicWorkflow()) { - hash = (37 * hash) + DYNAMIC_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getDynamicWorkflow().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.TaskNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskNodeMetadata 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.event.Event.TaskNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskNodeMetadata 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.event.Event.TaskNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskNodeMetadata 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.event.Event.TaskNodeMetadata 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; - } - /** - * Protobuf type {@code flyteidl.event.TaskNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskNodeMetadata) - flyteidl.event.Event.TaskNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskNodeMetadata.class, flyteidl.event.Event.TaskNodeMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.TaskNodeMetadata.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(); - cacheStatus_ = 0; - - if (catalogKeyBuilder_ == null) { - catalogKey_ = null; - } else { - catalogKey_ = null; - catalogKeyBuilder_ = null; - } - reservationStatus_ = 0; - - checkpointUri_ = ""; - - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = null; - } else { - dynamicWorkflow_ = null; - dynamicWorkflowBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.TaskNodeMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.TaskNodeMetadata build() { - flyteidl.event.Event.TaskNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.TaskNodeMetadata buildPartial() { - flyteidl.event.Event.TaskNodeMetadata result = new flyteidl.event.Event.TaskNodeMetadata(this); - result.cacheStatus_ = cacheStatus_; - if (catalogKeyBuilder_ == null) { - result.catalogKey_ = catalogKey_; - } else { - result.catalogKey_ = catalogKeyBuilder_.build(); - } - result.reservationStatus_ = reservationStatus_; - result.checkpointUri_ = checkpointUri_; - if (dynamicWorkflowBuilder_ == null) { - result.dynamicWorkflow_ = dynamicWorkflow_; - } else { - result.dynamicWorkflow_ = dynamicWorkflowBuilder_.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.event.Event.TaskNodeMetadata) { - return mergeFrom((flyteidl.event.Event.TaskNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.TaskNodeMetadata other) { - if (other == flyteidl.event.Event.TaskNodeMetadata.getDefaultInstance()) return this; - if (other.cacheStatus_ != 0) { - setCacheStatusValue(other.getCacheStatusValue()); - } - if (other.hasCatalogKey()) { - mergeCatalogKey(other.getCatalogKey()); - } - if (other.reservationStatus_ != 0) { - setReservationStatusValue(other.getReservationStatusValue()); - } - if (!other.getCheckpointUri().isEmpty()) { - checkpointUri_ = other.checkpointUri_; - onChanged(); - } - if (other.hasDynamicWorkflow()) { - mergeDynamicWorkflow(other.getDynamicWorkflow()); - } - 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.event.Event.TaskNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.TaskNodeMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int cacheStatus_ = 0; - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder setCacheStatusValue(int value) { - cacheStatus_ = value; - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 1; - */ - public Builder clearCacheStatus() { - - cacheStatus_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Catalog.CatalogMetadata catalogKey_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> catalogKeyBuilder_; - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public boolean hasCatalogKey() { - return catalogKeyBuilder_ != null || catalogKey_ != null; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata getCatalogKey() { - if (catalogKeyBuilder_ == null) { - return catalogKey_ == null ? flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } else { - return catalogKeyBuilder_.getMessage(); - } - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder setCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { - if (catalogKeyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - catalogKey_ = value; - onChanged(); - } else { - catalogKeyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder setCatalogKey( - flyteidl.core.Catalog.CatalogMetadata.Builder builderForValue) { - if (catalogKeyBuilder_ == null) { - catalogKey_ = builderForValue.build(); - onChanged(); - } else { - catalogKeyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder mergeCatalogKey(flyteidl.core.Catalog.CatalogMetadata value) { - if (catalogKeyBuilder_ == null) { - if (catalogKey_ != null) { - catalogKey_ = - flyteidl.core.Catalog.CatalogMetadata.newBuilder(catalogKey_).mergeFrom(value).buildPartial(); - } else { - catalogKey_ = value; - } - onChanged(); - } else { - catalogKeyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public Builder clearCatalogKey() { - if (catalogKeyBuilder_ == null) { - catalogKey_ = null; - onChanged(); - } else { - catalogKey_ = null; - catalogKeyBuilder_ = null; - } - - return this; - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadata.Builder getCatalogKeyBuilder() { - - onChanged(); - return getCatalogKeyFieldBuilder().getBuilder(); - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - public flyteidl.core.Catalog.CatalogMetadataOrBuilder getCatalogKeyOrBuilder() { - if (catalogKeyBuilder_ != null) { - return catalogKeyBuilder_.getMessageOrBuilder(); - } else { - return catalogKey_ == null ? - flyteidl.core.Catalog.CatalogMetadata.getDefaultInstance() : catalogKey_; - } - } - /** - *
-       * This structure carries the catalog artifact information
-       * 
- * - * .flyteidl.core.CatalogMetadata catalog_key = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder> - getCatalogKeyFieldBuilder() { - if (catalogKeyBuilder_ == null) { - catalogKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Catalog.CatalogMetadata, flyteidl.core.Catalog.CatalogMetadata.Builder, flyteidl.core.Catalog.CatalogMetadataOrBuilder>( - getCatalogKey(), - getParentForChildren(), - isClean()); - catalogKey_ = null; - } - return catalogKeyBuilder_; - } - - private int reservationStatus_ = 0; - /** - *
-       * Captures the status of cache reservations for this execution.
-       * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public int getReservationStatusValue() { - return reservationStatus_; - } - /** - *
-       * Captures the status of cache reservations for this execution.
-       * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public Builder setReservationStatusValue(int value) { - reservationStatus_ = value; - onChanged(); - return this; - } - /** - *
-       * Captures the status of cache reservations for this execution.
-       * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public flyteidl.core.Catalog.CatalogReservation.Status getReservationStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogReservation.Status result = flyteidl.core.Catalog.CatalogReservation.Status.valueOf(reservationStatus_); - return result == null ? flyteidl.core.Catalog.CatalogReservation.Status.UNRECOGNIZED : result; - } - /** - *
-       * Captures the status of cache reservations for this execution.
-       * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public Builder setReservationStatus(flyteidl.core.Catalog.CatalogReservation.Status value) { - if (value == null) { - throw new NullPointerException(); - } - - reservationStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Captures the status of cache reservations for this execution.
-       * 
- * - * .flyteidl.core.CatalogReservation.Status reservation_status = 3; - */ - public Builder clearReservationStatus() { - - reservationStatus_ = 0; - onChanged(); - return this; - } - - private java.lang.Object checkpointUri_ = ""; - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public java.lang.String getCheckpointUri() { - java.lang.Object ref = checkpointUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - checkpointUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public com.google.protobuf.ByteString - getCheckpointUriBytes() { - java.lang.Object ref = checkpointUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - checkpointUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder setCheckpointUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - checkpointUri_ = value; - onChanged(); - return this; - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder clearCheckpointUri() { - - checkpointUri_ = getDefaultInstance().getCheckpointUri(); - onChanged(); - return this; - } - /** - *
-       * The latest checkpoint location
-       * 
- * - * string checkpoint_uri = 4; - */ - public Builder setCheckpointUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - checkpointUri_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.DynamicWorkflowNodeMetadata dynamicWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder> dynamicWorkflowBuilder_; - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public boolean hasDynamicWorkflow() { - return dynamicWorkflowBuilder_ != null || dynamicWorkflow_ != null; - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDynamicWorkflow() { - if (dynamicWorkflowBuilder_ == null) { - return dynamicWorkflow_ == null ? flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } else { - return dynamicWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder setDynamicWorkflow(flyteidl.event.Event.DynamicWorkflowNodeMetadata value) { - if (dynamicWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dynamicWorkflow_ = value; - onChanged(); - } else { - dynamicWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder setDynamicWorkflow( - flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder builderForValue) { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = builderForValue.build(); - onChanged(); - } else { - dynamicWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder mergeDynamicWorkflow(flyteidl.event.Event.DynamicWorkflowNodeMetadata value) { - if (dynamicWorkflowBuilder_ == null) { - if (dynamicWorkflow_ != null) { - dynamicWorkflow_ = - flyteidl.event.Event.DynamicWorkflowNodeMetadata.newBuilder(dynamicWorkflow_).mergeFrom(value).buildPartial(); - } else { - dynamicWorkflow_ = value; - } - onChanged(); - } else { - dynamicWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public Builder clearDynamicWorkflow() { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflow_ = null; - onChanged(); - } else { - dynamicWorkflow_ = null; - dynamicWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder getDynamicWorkflowBuilder() { - - onChanged(); - return getDynamicWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - public flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder getDynamicWorkflowOrBuilder() { - if (dynamicWorkflowBuilder_ != null) { - return dynamicWorkflowBuilder_.getMessageOrBuilder(); - } else { - return dynamicWorkflow_ == null ? - flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance() : dynamicWorkflow_; - } - } - /** - *
-       * In the case this task launched a dynamic workflow we capture its structure here.
-       * 
- * - * .flyteidl.event.DynamicWorkflowNodeMetadata dynamic_workflow = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder> - getDynamicWorkflowFieldBuilder() { - if (dynamicWorkflowBuilder_ == null) { - dynamicWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.DynamicWorkflowNodeMetadata, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder, flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder>( - getDynamicWorkflow(), - getParentForChildren(), - isClean()); - dynamicWorkflow_ = null; - } - return dynamicWorkflowBuilder_; - } - @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.event.TaskNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskNodeMetadata) - private static final flyteidl.event.Event.TaskNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.TaskNodeMetadata(); - } - - public static flyteidl.event.Event.TaskNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskNodeMetadata(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.event.Event.TaskNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DynamicWorkflowNodeMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.DynamicWorkflowNodeMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - boolean hasId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getId(); - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder(); - - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - boolean hasCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow(); - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder(); - - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the workflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - java.lang.String getDynamicJobSpecUri(); - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the workflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - com.google.protobuf.ByteString - getDynamicJobSpecUriBytes(); - } - /** - *
-   * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated.
-   * 
- * - * Protobuf type {@code flyteidl.event.DynamicWorkflowNodeMetadata} - */ - public static final class DynamicWorkflowNodeMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.DynamicWorkflowNodeMetadata) - DynamicWorkflowNodeMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use DynamicWorkflowNodeMetadata.newBuilder() to construct. - private DynamicWorkflowNodeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DynamicWorkflowNodeMetadata() { - dynamicJobSpecUri_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DynamicWorkflowNodeMetadata( - 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; - } - case 18: { - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder subBuilder = null; - if (compiledWorkflow_ != null) { - subBuilder = compiledWorkflow_.toBuilder(); - } - compiledWorkflow_ = input.readMessage(flyteidl.core.Compiler.CompiledWorkflowClosure.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(compiledWorkflow_); - compiledWorkflow_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - dynamicJobSpecUri_ = s; - 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.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.DynamicWorkflowNodeMetadata.class, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier id_; - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : id_; - } - /** - *
-     * id represents the unique identifier of the workflow.
-     * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getIdOrBuilder() { - return getId(); - } - - public static final int COMPILED_WORKFLOW_FIELD_NUMBER = 2; - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflow_ != null; - } - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - /** - *
-     * Represents the compiled representation of the embedded dynamic workflow.
-     * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - return getCompiledWorkflow(); - } - - public static final int DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER = 3; - private volatile java.lang.Object dynamicJobSpecUri_; - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the workflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } - } - /** - *
-     * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-     * required to correctly recover partially completed executions where the workflow has already been compiled.
-     * 
- * - * string dynamic_job_spec_uri = 3; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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()); - } - if (compiledWorkflow_ != null) { - output.writeMessage(2, getCompiledWorkflow()); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, dynamicJobSpecUri_); - } - 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()); - } - if (compiledWorkflow_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCompiledWorkflow()); - } - if (!getDynamicJobSpecUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, dynamicJobSpecUri_); - } - 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.event.Event.DynamicWorkflowNodeMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.DynamicWorkflowNodeMetadata other = (flyteidl.event.Event.DynamicWorkflowNodeMetadata) obj; - - if (hasId() != other.hasId()) return false; - if (hasId()) { - if (!getId() - .equals(other.getId())) return false; - } - if (hasCompiledWorkflow() != other.hasCompiledWorkflow()) return false; - if (hasCompiledWorkflow()) { - if (!getCompiledWorkflow() - .equals(other.getCompiledWorkflow())) return false; - } - if (!getDynamicJobSpecUri() - .equals(other.getDynamicJobSpecUri())) 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(); - } - if (hasCompiledWorkflow()) { - hash = (37 * hash) + COMPILED_WORKFLOW_FIELD_NUMBER; - hash = (53 * hash) + getCompiledWorkflow().hashCode(); - } - hash = (37 * hash) + DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER; - hash = (53 * hash) + getDynamicJobSpecUri().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata 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.event.Event.DynamicWorkflowNodeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata 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.event.Event.DynamicWorkflowNodeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata 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.event.Event.DynamicWorkflowNodeMetadata 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; - } - /** - *
-     * For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated.
-     * 
- * - * Protobuf type {@code flyteidl.event.DynamicWorkflowNodeMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.DynamicWorkflowNodeMetadata) - flyteidl.event.Event.DynamicWorkflowNodeMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.DynamicWorkflowNodeMetadata.class, flyteidl.event.Event.DynamicWorkflowNodeMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.DynamicWorkflowNodeMetadata.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; - } - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - dynamicJobSpecUri_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.DynamicWorkflowNodeMetadata build() { - flyteidl.event.Event.DynamicWorkflowNodeMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.DynamicWorkflowNodeMetadata buildPartial() { - flyteidl.event.Event.DynamicWorkflowNodeMetadata result = new flyteidl.event.Event.DynamicWorkflowNodeMetadata(this); - if (idBuilder_ == null) { - result.id_ = id_; - } else { - result.id_ = idBuilder_.build(); - } - if (compiledWorkflowBuilder_ == null) { - result.compiledWorkflow_ = compiledWorkflow_; - } else { - result.compiledWorkflow_ = compiledWorkflowBuilder_.build(); - } - result.dynamicJobSpecUri_ = dynamicJobSpecUri_; - 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.event.Event.DynamicWorkflowNodeMetadata) { - return mergeFrom((flyteidl.event.Event.DynamicWorkflowNodeMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.DynamicWorkflowNodeMetadata other) { - if (other == flyteidl.event.Event.DynamicWorkflowNodeMetadata.getDefaultInstance()) return this; - if (other.hasId()) { - mergeId(other.getId()); - } - if (other.hasCompiledWorkflow()) { - mergeCompiledWorkflow(other.getCompiledWorkflow()); - } - if (!other.getDynamicJobSpecUri().isEmpty()) { - dynamicJobSpecUri_ = other.dynamicJobSpecUri_; - onChanged(); - } - 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.event.Event.DynamicWorkflowNodeMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.DynamicWorkflowNodeMetadata) 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_; - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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(); - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .flyteidl.core.Identifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - } - /** - *
-       * id represents the unique identifier of the workflow.
-       * 
- * - * .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_; - } - - private flyteidl.core.Compiler.CompiledWorkflowClosure compiledWorkflow_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> compiledWorkflowBuilder_; - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public boolean hasCompiledWorkflow() { - return compiledWorkflowBuilder_ != null || compiledWorkflow_ != null; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure getCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - return compiledWorkflow_ == null ? flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } else { - return compiledWorkflowBuilder_.getMessage(); - } - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder setCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - compiledWorkflow_ = value; - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder setCompiledWorkflow( - flyteidl.core.Compiler.CompiledWorkflowClosure.Builder builderForValue) { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = builderForValue.build(); - onChanged(); - } else { - compiledWorkflowBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder mergeCompiledWorkflow(flyteidl.core.Compiler.CompiledWorkflowClosure value) { - if (compiledWorkflowBuilder_ == null) { - if (compiledWorkflow_ != null) { - compiledWorkflow_ = - flyteidl.core.Compiler.CompiledWorkflowClosure.newBuilder(compiledWorkflow_).mergeFrom(value).buildPartial(); - } else { - compiledWorkflow_ = value; - } - onChanged(); - } else { - compiledWorkflowBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public Builder clearCompiledWorkflow() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflow_ = null; - onChanged(); - } else { - compiledWorkflow_ = null; - compiledWorkflowBuilder_ = null; - } - - return this; - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosure.Builder getCompiledWorkflowBuilder() { - - onChanged(); - return getCompiledWorkflowFieldBuilder().getBuilder(); - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - public flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder getCompiledWorkflowOrBuilder() { - if (compiledWorkflowBuilder_ != null) { - return compiledWorkflowBuilder_.getMessageOrBuilder(); - } else { - return compiledWorkflow_ == null ? - flyteidl.core.Compiler.CompiledWorkflowClosure.getDefaultInstance() : compiledWorkflow_; - } - } - /** - *
-       * Represents the compiled representation of the embedded dynamic workflow.
-       * 
- * - * .flyteidl.core.CompiledWorkflowClosure compiled_workflow = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder> - getCompiledWorkflowFieldBuilder() { - if (compiledWorkflowBuilder_ == null) { - compiledWorkflowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Compiler.CompiledWorkflowClosure, flyteidl.core.Compiler.CompiledWorkflowClosure.Builder, flyteidl.core.Compiler.CompiledWorkflowClosureOrBuilder>( - getCompiledWorkflow(), - getParentForChildren(), - isClean()); - compiledWorkflow_ = null; - } - return compiledWorkflowBuilder_; - } - - private java.lang.Object dynamicJobSpecUri_ = ""; - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the workflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public java.lang.String getDynamicJobSpecUri() { - java.lang.Object ref = dynamicJobSpecUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dynamicJobSpecUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the workflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public com.google.protobuf.ByteString - getDynamicJobSpecUriBytes() { - java.lang.Object ref = dynamicJobSpecUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dynamicJobSpecUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the workflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder setDynamicJobSpecUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the workflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder clearDynamicJobSpecUri() { - - dynamicJobSpecUri_ = getDefaultInstance().getDynamicJobSpecUri(); - onChanged(); - return this; - } - /** - *
-       * dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is
-       * required to correctly recover partially completed executions where the workflow has already been compiled.
-       * 
- * - * string dynamic_job_spec_uri = 3; - */ - public Builder setDynamicJobSpecUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - dynamicJobSpecUri_ = value; - onChanged(); - return this; - } - @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.event.DynamicWorkflowNodeMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.DynamicWorkflowNodeMetadata) - private static final flyteidl.event.Event.DynamicWorkflowNodeMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.DynamicWorkflowNodeMetadata(); - } - - public static flyteidl.event.Event.DynamicWorkflowNodeMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DynamicWorkflowNodeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DynamicWorkflowNodeMetadata(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.event.Event.DynamicWorkflowNodeMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParentTaskExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentTaskExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - boolean hasId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId(); - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class ParentTaskExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ParentTaskExecutionMetadata) - ParentTaskExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParentTaskExecutionMetadata.newBuilder() to construct. - private ParentTaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParentTaskExecutionMetadata() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParentTaskExecutionMetadata( - 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.TaskExecutionIdentifier.Builder subBuilder = null; - if (id_ != null) { - subBuilder = id_.toBuilder(); - } - id_ = input.readMessage(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.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.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder 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.event.Event.ParentTaskExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.ParentTaskExecutionMetadata other = (flyteidl.event.Event.ParentTaskExecutionMetadata) 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.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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.event.Event.ParentTaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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.event.Event.ParentTaskExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentTaskExecutionMetadata 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.event.Event.ParentTaskExecutionMetadata 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; - } - /** - * Protobuf type {@code flyteidl.event.ParentTaskExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentTaskExecutionMetadata) - flyteidl.event.Event.ParentTaskExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentTaskExecutionMetadata.class, flyteidl.event.Event.ParentTaskExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.ParentTaskExecutionMetadata.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.event.Event.internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.ParentTaskExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata build() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ParentTaskExecutionMetadata buildPartial() { - flyteidl.event.Event.ParentTaskExecutionMetadata result = new flyteidl.event.Event.ParentTaskExecutionMetadata(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.event.Event.ParentTaskExecutionMetadata) { - return mergeFrom((flyteidl.event.Event.ParentTaskExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ParentTaskExecutionMetadata other) { - if (other == flyteidl.event.Event.ParentTaskExecutionMetadata.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.event.Event.ParentTaskExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ParentTaskExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier id_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> idBuilder_; - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public boolean hasId() { - return idBuilder_ != null || id_ != null; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier getId() { - if (idBuilder_ == null) { - return id_ == null ? flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } else { - return idBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - id_ = value; - onChanged(); - } else { - idBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder setId( - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder builderForValue) { - if (idBuilder_ == null) { - id_ = builderForValue.build(); - onChanged(); - } else { - idBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder mergeId(flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier value) { - if (idBuilder_ == null) { - if (id_ != null) { - id_ = - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.newBuilder(id_).mergeFrom(value).buildPartial(); - } else { - id_ = value; - } - onChanged(); - } else { - idBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public Builder clearId() { - if (idBuilder_ == null) { - id_ = null; - onChanged(); - } else { - id_ = null; - idBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder getIdBuilder() { - - onChanged(); - return getIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - public flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder getIdOrBuilder() { - if (idBuilder_ != null) { - return idBuilder_.getMessageOrBuilder(); - } else { - return id_ == null ? - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.getDefaultInstance() : id_; - } - } - /** - * .flyteidl.core.TaskExecutionIdentifier id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder> - getIdFieldBuilder() { - if (idBuilder_ == null) { - idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.TaskExecutionIdentifierOrBuilder>( - 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.event.ParentTaskExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentTaskExecutionMetadata) - private static final flyteidl.event.Event.ParentTaskExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ParentTaskExecutionMetadata(); - } - - public static flyteidl.event.Event.ParentTaskExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParentTaskExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParentTaskExecutionMetadata(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.event.Event.ParentTaskExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ParentNodeExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ParentNodeExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique identifier of the parent node id within the execution
-     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-     * 
- * - * string node_id = 1; - */ - java.lang.String getNodeId(); - /** - *
-     * Unique identifier of the parent node id within the execution
-     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-     * 
- * - * string node_id = 1; - */ - com.google.protobuf.ByteString - getNodeIdBytes(); - } - /** - * Protobuf type {@code flyteidl.event.ParentNodeExecutionMetadata} - */ - public static final class ParentNodeExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ParentNodeExecutionMetadata) - ParentNodeExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use ParentNodeExecutionMetadata.newBuilder() to construct. - private ParentNodeExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParentNodeExecutionMetadata() { - nodeId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ParentNodeExecutionMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - nodeId_ = s; - 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.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentNodeExecutionMetadata.class, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder.class); - } - - public static final int NODE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object nodeId_; - /** - *
-     * Unique identifier of the parent node id within the execution
-     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-     * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } - } - /** - *
-     * Unique identifier of the parent node id within the execution
-     * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-     * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getNodeIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nodeId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNodeIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nodeId_); - } - 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.event.Event.ParentNodeExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.ParentNodeExecutionMetadata other = (flyteidl.event.Event.ParentNodeExecutionMetadata) obj; - - if (!getNodeId() - .equals(other.getNodeId())) 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(); - hash = (37 * hash) + NODE_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata 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.event.Event.ParentNodeExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata 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.event.Event.ParentNodeExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ParentNodeExecutionMetadata 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.event.Event.ParentNodeExecutionMetadata 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; - } - /** - * Protobuf type {@code flyteidl.event.ParentNodeExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ParentNodeExecutionMetadata) - flyteidl.event.Event.ParentNodeExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ParentNodeExecutionMetadata.class, flyteidl.event.Event.ParentNodeExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.ParentNodeExecutionMetadata.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(); - nodeId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ParentNodeExecutionMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ParentNodeExecutionMetadata build() { - flyteidl.event.Event.ParentNodeExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ParentNodeExecutionMetadata buildPartial() { - flyteidl.event.Event.ParentNodeExecutionMetadata result = new flyteidl.event.Event.ParentNodeExecutionMetadata(this); - result.nodeId_ = nodeId_; - 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.event.Event.ParentNodeExecutionMetadata) { - return mergeFrom((flyteidl.event.Event.ParentNodeExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ParentNodeExecutionMetadata other) { - if (other == flyteidl.event.Event.ParentNodeExecutionMetadata.getDefaultInstance()) return this; - if (!other.getNodeId().isEmpty()) { - nodeId_ = other.nodeId_; - onChanged(); - } - 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.event.Event.ParentNodeExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ParentNodeExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nodeId_ = ""; - /** - *
-       * Unique identifier of the parent node id within the execution
-       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-       * 
- * - * string node_id = 1; - */ - public java.lang.String getNodeId() { - java.lang.Object ref = nodeId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nodeId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique identifier of the parent node id within the execution
-       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-       * 
- * - * string node_id = 1; - */ - public com.google.protobuf.ByteString - getNodeIdBytes() { - java.lang.Object ref = nodeId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nodeId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique identifier of the parent node id within the execution
-       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nodeId_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique identifier of the parent node id within the execution
-       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-       * 
- * - * string node_id = 1; - */ - public Builder clearNodeId() { - - nodeId_ = getDefaultInstance().getNodeId(); - onChanged(); - return this; - } - /** - *
-       * Unique identifier of the parent node id within the execution
-       * This is value of core.NodeExecutionIdentifier.node_id of the parent node 
-       * 
- * - * string node_id = 1; - */ - public Builder setNodeIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nodeId_ = value; - onChanged(); - return this; - } - @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.event.ParentNodeExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ParentNodeExecutionMetadata) - private static final flyteidl.event.Event.ParentNodeExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ParentNodeExecutionMetadata(); - } - - public static flyteidl.event.Event.ParentNodeExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParentNodeExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ParentNodeExecutionMetadata(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.event.Event.ParentNodeExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface EventReasonOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.EventReason) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * An explanation for this event
-     * 
- * - * string reason = 1; - */ - java.lang.String getReason(); - /** - *
-     * An explanation for this event
-     * 
- * - * string reason = 1; - */ - com.google.protobuf.ByteString - getReasonBytes(); - - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - boolean hasOccurredAt(); - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.event.EventReason} - */ - public static final class EventReason extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.EventReason) - EventReasonOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventReason.newBuilder() to construct. - private EventReason(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventReason() { - reason_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EventReason( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - reason_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = 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.event.Event.internal_static_flyteidl_event_EventReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_EventReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.EventReason.class, flyteidl.event.Event.EventReason.Builder.class); - } - - public static final int REASON_FIELD_NUMBER = 1; - private volatile java.lang.Object reason_; - /** - *
-     * An explanation for this event
-     * 
- * - * string reason = 1; - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - *
-     * An explanation for this event
-     * 
- * - * string reason = 1; - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * The time this reason occurred
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - 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 (!getReasonBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, reason_); - } - if (occurredAt_ != null) { - output.writeMessage(2, getOccurredAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getReasonBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, reason_); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOccurredAt()); - } - 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.event.Event.EventReason)) { - return super.equals(obj); - } - flyteidl.event.Event.EventReason other = (flyteidl.event.Event.EventReason) obj; - - if (!getReason() - .equals(other.getReason())) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) 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(); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.EventReason parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.EventReason parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.EventReason parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.EventReason parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.EventReason parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.EventReason parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.EventReason parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.EventReason 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.event.Event.EventReason parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.EventReason 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.event.Event.EventReason parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.EventReason 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.event.Event.EventReason 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; - } - /** - * Protobuf type {@code flyteidl.event.EventReason} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.EventReason) - flyteidl.event.Event.EventReasonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_EventReason_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_EventReason_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.EventReason.class, flyteidl.event.Event.EventReason.Builder.class); - } - - // Construct using flyteidl.event.Event.EventReason.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(); - reason_ = ""; - - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_EventReason_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.EventReason getDefaultInstanceForType() { - return flyteidl.event.Event.EventReason.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.EventReason build() { - flyteidl.event.Event.EventReason result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.EventReason buildPartial() { - flyteidl.event.Event.EventReason result = new flyteidl.event.Event.EventReason(this); - result.reason_ = reason_; - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.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.event.Event.EventReason) { - return mergeFrom((flyteidl.event.Event.EventReason)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.EventReason other) { - if (other == flyteidl.event.Event.EventReason.getDefaultInstance()) return this; - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - onChanged(); - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - 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.event.Event.EventReason parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.EventReason) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object reason_ = ""; - /** - *
-       * An explanation for this event
-       * 
- * - * string reason = 1; - */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * An explanation for this event
-       * 
- * - * string reason = 1; - */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * An explanation for this event
-       * 
- * - * string reason = 1; - */ - public Builder setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - onChanged(); - return this; - } - /** - *
-       * An explanation for this event
-       * 
- * - * string reason = 1; - */ - public Builder clearReason() { - - reason_ = getDefaultInstance().getReason(); - onChanged(); - return this; - } - /** - *
-       * An explanation for this event
-       * 
- * - * string reason = 1; - */ - public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * The time this reason occurred
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - @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.event.EventReason) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.EventReason) - private static final flyteidl.event.Event.EventReason DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.EventReason(); - } - - public static flyteidl.event.Event.EventReason getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventReason parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventReason(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.event.Event.EventReason getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - boolean hasTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.Identifier getTaskId(); - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder(); - - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - boolean hasParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId(); - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder(); - - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - java.lang.String getProducerId(); - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - com.google.protobuf.ByteString - getProducerIdBytes(); - - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - int getLogsCount(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - boolean hasOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.Timestamp getOccurredAt(); - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder(); - - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - java.lang.String getInputUri(); - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - com.google.protobuf.ByteString - getInputUriBytes(); - - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - boolean hasInputData(); - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - flyteidl.core.Literals.LiteralMap getInputData(); - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder(); - - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - java.lang.String getOutputUri(); - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - com.google.protobuf.ByteString - getOutputUriBytes(); - - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - boolean hasError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionError getError(); - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder(); - - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - boolean hasOutputData(); - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - flyteidl.core.Literals.LiteralMap getOutputData(); - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder(); - - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - boolean hasCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.Struct getCustomInfo(); - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder(); - - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - int getPhaseVersion(); - - /** - *
-     * An optional explanation for the phase transition.
-     * Deprecated: Use reasons instead.
-     * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getReason(); - /** - *
-     * An optional explanation for the phase transition.
-     * Deprecated: Use reasons instead.
-     * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getReasonBytes(); - - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - java.util.List - getReasonsList(); - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - flyteidl.event.Event.EventReason getReasons(int index); - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - int getReasonsCount(); - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - java.util.List - getReasonsOrBuilderList(); - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - flyteidl.event.Event.EventReasonOrBuilder getReasonsOrBuilder( - int index); - - /** - *
-     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-     * type is useful to render the task in the UI, filter task executions, etc.
-     * 
- * - * string task_type = 14; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-     * type is useful to render the task in the UI, filter task executions, etc.
-     * 
- * - * string task_type = 14; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - boolean hasMetadata(); - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - flyteidl.event.Event.TaskExecutionMetadata getMetadata(); - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder(); - - /** - *
-     * The event version is used to indicate versioned changes in how data is reported using this
-     * proto message. For example, event_verison > 0 means that maps tasks report logs using the
-     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-     * in this message.
-     * 
- * - * int32 event_version = 18; - */ - int getEventVersion(); - - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - boolean hasReportedAt(); - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - com.google.protobuf.Timestamp getReportedAt(); - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder(); - - public flyteidl.event.Event.TaskExecutionEvent.InputValueCase getInputValueCase(); - - public flyteidl.event.Event.TaskExecutionEvent.OutputResultCase getOutputResultCase(); - } - /** - *
-   * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-   * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class TaskExecutionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionEvent) - TaskExecutionEventOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionEvent.newBuilder() to construct. - private TaskExecutionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionEvent() { - phase_ = 0; - producerId_ = ""; - logs_ = java.util.Collections.emptyList(); - reason_ = ""; - reasons_ = java.util.Collections.emptyList(); - taskType_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionEvent( - 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 (taskId_ != null) { - subBuilder = taskId_.toBuilder(); - } - taskId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.Identifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(taskId_); - taskId_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (parentNodeExecutionId_ != null) { - subBuilder = parentNodeExecutionId_.toBuilder(); - } - parentNodeExecutionId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(parentNodeExecutionId_); - parentNodeExecutionId_ = subBuilder.buildPartial(); - } - - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - producerId_ = s; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (occurredAt_ != null) { - subBuilder = occurredAt_.toBuilder(); - } - occurredAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(occurredAt_); - occurredAt_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - inputValueCase_ = 8; - inputValue_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - outputResultCase_ = 9; - outputResult_ = s; - break; - } - case 82: { - flyteidl.core.Execution.ExecutionError.Builder subBuilder = null; - if (outputResultCase_ == 10) { - subBuilder = ((flyteidl.core.Execution.ExecutionError) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Execution.ExecutionError.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Execution.ExecutionError) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 10; - break; - } - case 90: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (customInfo_ != null) { - subBuilder = customInfo_.toBuilder(); - } - customInfo_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customInfo_); - customInfo_ = subBuilder.buildPartial(); - } - - break; - } - case 96: { - - phaseVersion_ = input.readUInt32(); - break; - } - case 106: { - java.lang.String s = input.readStringRequireUtf8(); - - reason_ = s; - break; - } - case 114: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 130: { - flyteidl.event.Event.TaskExecutionMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(flyteidl.event.Event.TaskExecutionMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 138: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputResultCase_ == 17) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) outputResult_).toBuilder(); - } - outputResult_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) outputResult_); - outputResult_ = subBuilder.buildPartial(); - } - outputResultCase_ = 17; - break; - } - case 144: { - - eventVersion_ = input.readInt32(); - break; - } - case 154: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (inputValueCase_ == 19) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) inputValue_).toBuilder(); - } - inputValue_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) inputValue_); - inputValue_ = subBuilder.buildPartial(); - } - inputValueCase_ = 19; - break; - } - case 162: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (reportedAt_ != null) { - subBuilder = reportedAt_.toBuilder(); - } - reportedAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(reportedAt_); - reportedAt_ = subBuilder.buildPartial(); - } - - break; - } - case 170: { - if (!((mutable_bitField0_ & 0x00008000) != 0)) { - reasons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00008000; - } - reasons_.add( - input.readMessage(flyteidl.event.Event.EventReason.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - if (((mutable_bitField0_ & 0x00008000) != 0)) { - reasons_ = java.util.Collections.unmodifiableList(reasons_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - private int bitField0_; - private int inputValueCase_ = 0; - private java.lang.Object inputValue_; - public enum InputValueCase - implements com.google.protobuf.Internal.EnumLite { - INPUT_URI(8), - INPUT_DATA(19), - INPUTVALUE_NOT_SET(0); - private final int value; - private InputValueCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InputValueCase valueOf(int value) { - return forNumber(value); - } - - public static InputValueCase forNumber(int value) { - switch (value) { - case 8: return INPUT_URI; - case 19: return INPUT_DATA; - case 0: return INPUTVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public InputValueCase - getInputValueCase() { - return InputValueCase.forNumber( - inputValueCase_); - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public enum OutputResultCase - implements com.google.protobuf.Internal.EnumLite { - OUTPUT_URI(9), - ERROR(10), - OUTPUT_DATA(17), - OUTPUTRESULT_NOT_SET(0); - private final int value; - private OutputResultCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OutputResultCase valueOf(int value) { - return forNumber(value); - } - - public static OutputResultCase forNumber(int value) { - switch (value) { - case 9: return OUTPUT_URI; - case 10: return ERROR; - case 17: return OUTPUT_DATA; - case 0: return OUTPUTRESULT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public static final int TASK_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskId_ != null; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - /** - *
-     * ID of the task. In combination with the retryAttempt this will indicate
-     * the task execution uniquely for a given parent node execution.
-     * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - return getTaskId(); - } - - public static final int PARENT_NODE_EXECUTION_ID_FIELD_NUMBER = 2; - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionId_ != null; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - /** - *
-     * A task execution is always kicked off by a node execution, the event consumer
-     * will use the parent_id to relate the task to it's parent node execution
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - return getParentNodeExecutionId(); - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - *
-     * retry attempt number for this task, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Phase associated with the event
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int PRODUCER_ID_FIELD_NUMBER = 5; - private volatile java.lang.Object producerId_; - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } - } - /** - *
-     * id of the process that sent this event, mainly for trace debugging
-     * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOGS_FIELD_NUMBER = 6; - private java.util.List logs_; - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * log information for the task execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - public static final int OCCURRED_AT_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp occurredAt_; - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAt_ != null; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - /** - *
-     * This timestamp represents when the original event occurred, it is generated
-     * by the executor of the task.
-     * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - return getOccurredAt(); - } - - public static final int INPUT_URI_FIELD_NUMBER = 8; - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = ""; - if (inputValueCase_ == 8) { - ref = inputValue_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (inputValueCase_ == 8) { - inputValue_ = s; - } - return s; - } - } - /** - *
-     * URI of the input file, it encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = ""; - if (inputValueCase_ == 8) { - ref = inputValue_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (inputValueCase_ == 8) { - inputValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INPUT_DATA_FIELD_NUMBER = 19; - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public boolean hasInputData() { - return inputValueCase_ == 19; - } - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputValueCase_ == 19) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw input data consumed by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if (inputValueCase_ == 19) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int OUTPUT_URI_FIELD_NUMBER = 9; - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } - } - /** - *
-     * URI to the output of the execution, it will be in a format that encodes all the information
-     * including Cloud source provider. ie., s3://...
-     * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ERROR_FIELD_NUMBER = 10; - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - /** - *
-     * Error information for the execution
-     * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - - public static final int OUTPUT_DATA_FIELD_NUMBER = 17; - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public boolean hasOutputData() { - return outputResultCase_ == 17; - } - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputResultCase_ == 17) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * Raw output data produced by this task execution.
-     * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if (outputResultCase_ == 17) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int CUSTOM_INFO_FIELD_NUMBER = 11; - private com.google.protobuf.Struct customInfo_; - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfo_ != null; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - /** - *
-     * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-     * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - return getCustomInfo(); - } - - public static final int PHASE_VERSION_FIELD_NUMBER = 12; - private int phaseVersion_; - /** - *
-     * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-     * that should be recorded regardless of the lack of phase change.
-     * The version field should be incremented when metadata changes across the duration of an individual phase.
-     * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - - public static final int REASON_FIELD_NUMBER = 13; - private volatile java.lang.Object reason_; - /** - *
-     * An optional explanation for the phase transition.
-     * Deprecated: Use reasons instead.
-     * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } - } - /** - *
-     * An optional explanation for the phase transition.
-     * Deprecated: Use reasons instead.
-     * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REASONS_FIELD_NUMBER = 21; - private java.util.List reasons_; - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public java.util.List getReasonsList() { - return reasons_; - } - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public java.util.List - getReasonsOrBuilderList() { - return reasons_; - } - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public int getReasonsCount() { - return reasons_.size(); - } - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReason getReasons(int index) { - return reasons_.get(index); - } - /** - *
-     * An optional list of explanations for the phase transition.
-     * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReasonOrBuilder getReasonsOrBuilder( - int index) { - return reasons_.get(index); - } - - public static final int TASK_TYPE_FIELD_NUMBER = 14; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-     * type is useful to render the task in the UI, filter task executions, etc.
-     * 
- * - * string task_type = 14; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-     * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-     * type is useful to render the task in the UI, filter task executions, etc.
-     * 
- * - * string task_type = 14; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int METADATA_FIELD_NUMBER = 16; - private flyteidl.event.Event.TaskExecutionMetadata metadata_; - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public boolean hasMetadata() { - return metadata_ != null; - } - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { - return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } - /** - *
-     * Metadata around how a task was executed.
-     * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int EVENT_VERSION_FIELD_NUMBER = 18; - private int eventVersion_; - /** - *
-     * The event version is used to indicate versioned changes in how data is reported using this
-     * proto message. For example, event_verison > 0 means that maps tasks report logs using the
-     * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-     * in this message.
-     * 
- * - * int32 event_version = 18; - */ - public int getEventVersion() { - return eventVersion_; - } - - public static final int REPORTED_AT_FIELD_NUMBER = 20; - private com.google.protobuf.Timestamp reportedAt_; - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public boolean hasReportedAt() { - return reportedAt_ != null; - } - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public com.google.protobuf.Timestamp getReportedAt() { - return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } - /** - *
-     * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-     * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-     * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-     * facilitates a more accurate portrayal of the evaluation time-series. 
-     * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { - return getReportedAt(); - } - - 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 (taskId_ != null) { - output.writeMessage(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - output.writeMessage(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(6, logs_.get(i)); - } - if (occurredAt_ != null) { - output.writeMessage(7, getOccurredAt()); - } - if (inputValueCase_ == 8) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, inputValue_); - } - if (outputResultCase_ == 9) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, outputResult_); - } - if (outputResultCase_ == 10) { - output.writeMessage(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - output.writeMessage(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - output.writeUInt32(12, phaseVersion_); - } - if (!getReasonBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, reason_); - } - if (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 14, taskType_); - } - if (metadata_ != null) { - output.writeMessage(16, getMetadata()); - } - if (outputResultCase_ == 17) { - output.writeMessage(17, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (eventVersion_ != 0) { - output.writeInt32(18, eventVersion_); - } - if (inputValueCase_ == 19) { - output.writeMessage(19, (flyteidl.core.Literals.LiteralMap) inputValue_); - } - if (reportedAt_ != null) { - output.writeMessage(20, getReportedAt()); - } - for (int i = 0; i < reasons_.size(); i++) { - output.writeMessage(21, reasons_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (taskId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTaskId()); - } - if (parentNodeExecutionId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getParentNodeExecutionId()); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (!getProducerIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, producerId_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, logs_.get(i)); - } - if (occurredAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOccurredAt()); - } - if (inputValueCase_ == 8) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, inputValue_); - } - if (outputResultCase_ == 9) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, outputResult_); - } - if (outputResultCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (flyteidl.core.Execution.ExecutionError) outputResult_); - } - if (customInfo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getCustomInfo()); - } - if (phaseVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(12, phaseVersion_); - } - if (!getReasonBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, reason_); - } - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, taskType_); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getMetadata()); - } - if (outputResultCase_ == 17) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(17, (flyteidl.core.Literals.LiteralMap) outputResult_); - } - if (eventVersion_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(18, eventVersion_); - } - if (inputValueCase_ == 19) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, (flyteidl.core.Literals.LiteralMap) inputValue_); - } - if (reportedAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getReportedAt()); - } - for (int i = 0; i < reasons_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, reasons_.get(i)); - } - 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.event.Event.TaskExecutionEvent)) { - return super.equals(obj); - } - flyteidl.event.Event.TaskExecutionEvent other = (flyteidl.event.Event.TaskExecutionEvent) obj; - - if (hasTaskId() != other.hasTaskId()) return false; - if (hasTaskId()) { - if (!getTaskId() - .equals(other.getTaskId())) return false; - } - if (hasParentNodeExecutionId() != other.hasParentNodeExecutionId()) return false; - if (hasParentNodeExecutionId()) { - if (!getParentNodeExecutionId() - .equals(other.getParentNodeExecutionId())) return false; - } - if (getRetryAttempt() - != other.getRetryAttempt()) return false; - if (phase_ != other.phase_) return false; - if (!getProducerId() - .equals(other.getProducerId())) return false; - if (!getLogsList() - .equals(other.getLogsList())) return false; - if (hasOccurredAt() != other.hasOccurredAt()) return false; - if (hasOccurredAt()) { - if (!getOccurredAt() - .equals(other.getOccurredAt())) return false; - } - if (hasCustomInfo() != other.hasCustomInfo()) return false; - if (hasCustomInfo()) { - if (!getCustomInfo() - .equals(other.getCustomInfo())) return false; - } - if (getPhaseVersion() - != other.getPhaseVersion()) return false; - if (!getReason() - .equals(other.getReason())) return false; - if (!getReasonsList() - .equals(other.getReasonsList())) return false; - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; - } - if (getEventVersion() - != other.getEventVersion()) return false; - if (hasReportedAt() != other.hasReportedAt()) return false; - if (hasReportedAt()) { - if (!getReportedAt() - .equals(other.getReportedAt())) return false; - } - if (!getInputValueCase().equals(other.getInputValueCase())) return false; - switch (inputValueCase_) { - case 8: - if (!getInputUri() - .equals(other.getInputUri())) return false; - break; - case 19: - if (!getInputData() - .equals(other.getInputData())) return false; - break; - case 0: - default: - } - if (!getOutputResultCase().equals(other.getOutputResultCase())) return false; - switch (outputResultCase_) { - case 9: - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - break; - case 10: - if (!getError() - .equals(other.getError())) return false; - break; - case 17: - if (!getOutputData() - .equals(other.getOutputData())) 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(); - if (hasTaskId()) { - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - } - if (hasParentNodeExecutionId()) { - hash = (37 * hash) + PARENT_NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentNodeExecutionId().hashCode(); - } - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + PRODUCER_ID_FIELD_NUMBER; - hash = (53 * hash) + getProducerId().hashCode(); - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - if (hasOccurredAt()) { - hash = (37 * hash) + OCCURRED_AT_FIELD_NUMBER; - hash = (53 * hash) + getOccurredAt().hashCode(); - } - if (hasCustomInfo()) { - hash = (37 * hash) + CUSTOM_INFO_FIELD_NUMBER; - hash = (53 * hash) + getCustomInfo().hashCode(); - } - hash = (37 * hash) + PHASE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getPhaseVersion(); - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); - if (getReasonsCount() > 0) { - hash = (37 * hash) + REASONS_FIELD_NUMBER; - hash = (53 * hash) + getReasonsList().hashCode(); - } - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + EVENT_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getEventVersion(); - if (hasReportedAt()) { - hash = (37 * hash) + REPORTED_AT_FIELD_NUMBER; - hash = (53 * hash) + getReportedAt().hashCode(); - } - switch (inputValueCase_) { - case 8: - hash = (37 * hash) + INPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getInputUri().hashCode(); - break; - case 19: - hash = (37 * hash) + INPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getInputData().hashCode(); - break; - case 0: - default: - } - switch (outputResultCase_) { - case 9: - hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER; - hash = (53 * hash) + getOutputUri().hashCode(); - break; - case 10: - hash = (37 * hash) + ERROR_FIELD_NUMBER; - hash = (53 * hash) + getError().hashCode(); - break; - case 17: - hash = (37 * hash) + OUTPUT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getOutputData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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.event.Event.TaskExecutionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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.event.Event.TaskExecutionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionEvent 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.event.Event.TaskExecutionEvent 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; - } - /** - *
-     * Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob.
-     * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionEvent) - flyteidl.event.Event.TaskExecutionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionEvent.class, flyteidl.event.Event.TaskExecutionEvent.Builder.class); - } - - // Construct using flyteidl.event.Event.TaskExecutionEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - getReasonsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (taskIdBuilder_ == null) { - taskId_ = null; - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - retryAttempt_ = 0; - - phase_ = 0; - - producerId_ = ""; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - logsBuilder_.clear(); - } - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - if (customInfoBuilder_ == null) { - customInfo_ = null; - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - phaseVersion_ = 0; - - reason_ = ""; - - if (reasonsBuilder_ == null) { - reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - } else { - reasonsBuilder_.clear(); - } - taskType_ = ""; - - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - eventVersion_ = 0; - - if (reportedAtBuilder_ == null) { - reportedAt_ = null; - } else { - reportedAt_ = null; - reportedAtBuilder_ = null; - } - inputValueCase_ = 0; - inputValue_ = null; - outputResultCase_ = 0; - outputResult_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent build() { - flyteidl.event.Event.TaskExecutionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionEvent buildPartial() { - flyteidl.event.Event.TaskExecutionEvent result = new flyteidl.event.Event.TaskExecutionEvent(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (taskIdBuilder_ == null) { - result.taskId_ = taskId_; - } else { - result.taskId_ = taskIdBuilder_.build(); - } - if (parentNodeExecutionIdBuilder_ == null) { - result.parentNodeExecutionId_ = parentNodeExecutionId_; - } else { - result.parentNodeExecutionId_ = parentNodeExecutionIdBuilder_.build(); - } - result.retryAttempt_ = retryAttempt_; - result.phase_ = phase_; - result.producerId_ = producerId_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - if (occurredAtBuilder_ == null) { - result.occurredAt_ = occurredAt_; - } else { - result.occurredAt_ = occurredAtBuilder_.build(); - } - if (inputValueCase_ == 8) { - result.inputValue_ = inputValue_; - } - if (inputValueCase_ == 19) { - if (inputDataBuilder_ == null) { - result.inputValue_ = inputValue_; - } else { - result.inputValue_ = inputDataBuilder_.build(); - } - } - if (outputResultCase_ == 9) { - result.outputResult_ = outputResult_; - } - if (outputResultCase_ == 10) { - if (errorBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = errorBuilder_.build(); - } - } - if (outputResultCase_ == 17) { - if (outputDataBuilder_ == null) { - result.outputResult_ = outputResult_; - } else { - result.outputResult_ = outputDataBuilder_.build(); - } - } - if (customInfoBuilder_ == null) { - result.customInfo_ = customInfo_; - } else { - result.customInfo_ = customInfoBuilder_.build(); - } - result.phaseVersion_ = phaseVersion_; - result.reason_ = reason_; - if (reasonsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0)) { - reasons_ = java.util.Collections.unmodifiableList(reasons_); - bitField0_ = (bitField0_ & ~0x00008000); - } - result.reasons_ = reasons_; - } else { - result.reasons_ = reasonsBuilder_.build(); - } - result.taskType_ = taskType_; - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - result.eventVersion_ = eventVersion_; - if (reportedAtBuilder_ == null) { - result.reportedAt_ = reportedAt_; - } else { - result.reportedAt_ = reportedAtBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - result.inputValueCase_ = inputValueCase_; - result.outputResultCase_ = outputResultCase_; - 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.event.Event.TaskExecutionEvent) { - return mergeFrom((flyteidl.event.Event.TaskExecutionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.TaskExecutionEvent other) { - if (other == flyteidl.event.Event.TaskExecutionEvent.getDefaultInstance()) return this; - if (other.hasTaskId()) { - mergeTaskId(other.getTaskId()); - } - if (other.hasParentNodeExecutionId()) { - mergeParentNodeExecutionId(other.getParentNodeExecutionId()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getProducerId().isEmpty()) { - producerId_ = other.producerId_; - onChanged(); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - if (other.hasOccurredAt()) { - mergeOccurredAt(other.getOccurredAt()); - } - if (other.hasCustomInfo()) { - mergeCustomInfo(other.getCustomInfo()); - } - if (other.getPhaseVersion() != 0) { - setPhaseVersion(other.getPhaseVersion()); - } - if (!other.getReason().isEmpty()) { - reason_ = other.reason_; - onChanged(); - } - if (reasonsBuilder_ == null) { - if (!other.reasons_.isEmpty()) { - if (reasons_.isEmpty()) { - reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00008000); - } else { - ensureReasonsIsMutable(); - reasons_.addAll(other.reasons_); - } - onChanged(); - } - } else { - if (!other.reasons_.isEmpty()) { - if (reasonsBuilder_.isEmpty()) { - reasonsBuilder_.dispose(); - reasonsBuilder_ = null; - reasons_ = other.reasons_; - bitField0_ = (bitField0_ & ~0x00008000); - reasonsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getReasonsFieldBuilder() : null; - } else { - reasonsBuilder_.addAllMessages(other.reasons_); - } - } - } - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.getEventVersion() != 0) { - setEventVersion(other.getEventVersion()); - } - if (other.hasReportedAt()) { - mergeReportedAt(other.getReportedAt()); - } - switch (other.getInputValueCase()) { - case INPUT_URI: { - inputValueCase_ = 8; - inputValue_ = other.inputValue_; - onChanged(); - break; - } - case INPUT_DATA: { - mergeInputData(other.getInputData()); - break; - } - case INPUTVALUE_NOT_SET: { - break; - } - } - switch (other.getOutputResultCase()) { - case OUTPUT_URI: { - outputResultCase_ = 9; - outputResult_ = other.outputResult_; - onChanged(); - break; - } - case ERROR: { - mergeError(other.getError()); - break; - } - case OUTPUT_DATA: { - mergeOutputData(other.getOutputData()); - break; - } - case OUTPUTRESULT_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.event.Event.TaskExecutionEvent parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.TaskExecutionEvent) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int inputValueCase_ = 0; - private java.lang.Object inputValue_; - public InputValueCase - getInputValueCase() { - return InputValueCase.forNumber( - inputValueCase_); - } - - public Builder clearInputValue() { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - return this; - } - - private int outputResultCase_ = 0; - private java.lang.Object outputResult_; - public OutputResultCase - getOutputResultCase() { - return OutputResultCase.forNumber( - outputResultCase_); - } - - public Builder clearOutputResult() { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private flyteidl.core.IdentifierOuterClass.Identifier taskId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> taskIdBuilder_; - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public boolean hasTaskId() { - return taskIdBuilder_ != null || taskId_ != null; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier getTaskId() { - if (taskIdBuilder_ == null) { - return taskId_ == null ? flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } else { - return taskIdBuilder_.getMessage(); - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - onChanged(); - } else { - taskIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder setTaskId( - flyteidl.core.IdentifierOuterClass.Identifier.Builder builderForValue) { - if (taskIdBuilder_ == null) { - taskId_ = builderForValue.build(); - onChanged(); - } else { - taskIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder mergeTaskId(flyteidl.core.IdentifierOuterClass.Identifier value) { - if (taskIdBuilder_ == null) { - if (taskId_ != null) { - taskId_ = - flyteidl.core.IdentifierOuterClass.Identifier.newBuilder(taskId_).mergeFrom(value).buildPartial(); - } else { - taskId_ = value; - } - onChanged(); - } else { - taskIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public Builder clearTaskId() { - if (taskIdBuilder_ == null) { - taskId_ = null; - onChanged(); - } else { - taskId_ = null; - taskIdBuilder_ = null; - } - - return this; - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.Identifier.Builder getTaskIdBuilder() { - - onChanged(); - return getTaskIdFieldBuilder().getBuilder(); - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder getTaskIdOrBuilder() { - if (taskIdBuilder_ != null) { - return taskIdBuilder_.getMessageOrBuilder(); - } else { - return taskId_ == null ? - flyteidl.core.IdentifierOuterClass.Identifier.getDefaultInstance() : taskId_; - } - } - /** - *
-       * ID of the task. In combination with the retryAttempt this will indicate
-       * the task execution uniquely for a given parent node execution.
-       * 
- * - * .flyteidl.core.Identifier task_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder> - getTaskIdFieldBuilder() { - if (taskIdBuilder_ == null) { - taskIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.Identifier, flyteidl.core.IdentifierOuterClass.Identifier.Builder, flyteidl.core.IdentifierOuterClass.IdentifierOrBuilder>( - getTaskId(), - getParentForChildren(), - isClean()); - taskId_ = null; - } - return taskIdBuilder_; - } - - private flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier parentNodeExecutionId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> parentNodeExecutionIdBuilder_; - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public boolean hasParentNodeExecutionId() { - return parentNodeExecutionIdBuilder_ != null || parentNodeExecutionId_ != null; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - return parentNodeExecutionId_ == null ? flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } else { - return parentNodeExecutionIdBuilder_.getMessage(); - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - parentNodeExecutionId_ = value; - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder setParentNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = builderForValue.build(); - onChanged(); - } else { - parentNodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder mergeParentNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (parentNodeExecutionIdBuilder_ == null) { - if (parentNodeExecutionId_ != null) { - parentNodeExecutionId_ = - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder(parentNodeExecutionId_).mergeFrom(value).buildPartial(); - } else { - parentNodeExecutionId_ = value; - } - onChanged(); - } else { - parentNodeExecutionIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public Builder clearParentNodeExecutionId() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionId_ = null; - onChanged(); - } else { - parentNodeExecutionId_ = null; - parentNodeExecutionIdBuilder_ = null; - } - - return this; - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getParentNodeExecutionIdBuilder() { - - onChanged(); - return getParentNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getParentNodeExecutionIdOrBuilder() { - if (parentNodeExecutionIdBuilder_ != null) { - return parentNodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - return parentNodeExecutionId_ == null ? - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance() : parentNodeExecutionId_; - } - } - /** - *
-       * A task execution is always kicked off by a node execution, the event consumer
-       * will use the parent_id to relate the task to it's parent node execution
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier parent_node_execution_id = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getParentNodeExecutionIdFieldBuilder() { - if (parentNodeExecutionIdBuilder_ == null) { - parentNodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - getParentNodeExecutionId(), - getParentForChildren(), - isClean()); - parentNodeExecutionId_ = null; - } - return parentNodeExecutionIdBuilder_; - } - - private int retryAttempt_ ; - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - *
-       * retry attempt number for this task, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Phase associated with the event
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object producerId_ = ""; - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public java.lang.String getProducerId() { - java.lang.Object ref = producerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - producerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public com.google.protobuf.ByteString - getProducerIdBytes() { - java.lang.Object ref = producerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - producerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - producerId_ = value; - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder clearProducerId() { - - producerId_ = getDefaultInstance().getProducerId(); - onChanged(); - return this; - } - /** - *
-       * id of the process that sent this event, mainly for trace debugging
-       * 
- * - * string producer_id = 5; - */ - public Builder setProducerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - producerId_ = value; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the task execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - - private com.google.protobuf.Timestamp occurredAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> occurredAtBuilder_; - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public boolean hasOccurredAt() { - return occurredAtBuilder_ != null || occurredAt_ != null; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp getOccurredAt() { - if (occurredAtBuilder_ == null) { - return occurredAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } else { - return occurredAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - occurredAt_ = value; - onChanged(); - } else { - occurredAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder setOccurredAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (occurredAtBuilder_ == null) { - occurredAt_ = builderForValue.build(); - onChanged(); - } else { - occurredAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder mergeOccurredAt(com.google.protobuf.Timestamp value) { - if (occurredAtBuilder_ == null) { - if (occurredAt_ != null) { - occurredAt_ = - com.google.protobuf.Timestamp.newBuilder(occurredAt_).mergeFrom(value).buildPartial(); - } else { - occurredAt_ = value; - } - onChanged(); - } else { - occurredAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public Builder clearOccurredAt() { - if (occurredAtBuilder_ == null) { - occurredAt_ = null; - onChanged(); - } else { - occurredAt_ = null; - occurredAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.Timestamp.Builder getOccurredAtBuilder() { - - onChanged(); - return getOccurredAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - public com.google.protobuf.TimestampOrBuilder getOccurredAtOrBuilder() { - if (occurredAtBuilder_ != null) { - return occurredAtBuilder_.getMessageOrBuilder(); - } else { - return occurredAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : occurredAt_; - } - } - /** - *
-       * This timestamp represents when the original event occurred, it is generated
-       * by the executor of the task.
-       * 
- * - * .google.protobuf.Timestamp occurred_at = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getOccurredAtFieldBuilder() { - if (occurredAtBuilder_ == null) { - occurredAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getOccurredAt(), - getParentForChildren(), - isClean()); - occurredAt_ = null; - } - return occurredAtBuilder_; - } - - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public java.lang.String getInputUri() { - java.lang.Object ref = ""; - if (inputValueCase_ == 8) { - ref = inputValue_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (inputValueCase_ == 8) { - inputValue_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public com.google.protobuf.ByteString - getInputUriBytes() { - java.lang.Object ref = ""; - if (inputValueCase_ == 8) { - ref = inputValue_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (inputValueCase_ == 8) { - inputValue_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - inputValueCase_ = 8; - inputValue_ = value; - onChanged(); - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder clearInputUri() { - if (inputValueCase_ == 8) { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URI of the input file, it encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string input_uri = 8; - */ - public Builder setInputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - inputValueCase_ = 8; - inputValue_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputDataBuilder_; - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public boolean hasInputData() { - return inputValueCase_ == 19; - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public flyteidl.core.Literals.LiteralMap getInputData() { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 19) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (inputValueCase_ == 19) { - return inputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public Builder setInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputValue_ = value; - onChanged(); - } else { - inputDataBuilder_.setMessage(value); - } - inputValueCase_ = 19; - return this; - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public Builder setInputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputDataBuilder_ == null) { - inputValue_ = builderForValue.build(); - onChanged(); - } else { - inputDataBuilder_.setMessage(builderForValue.build()); - } - inputValueCase_ = 19; - return this; - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public Builder mergeInputData(flyteidl.core.Literals.LiteralMap value) { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 19 && - inputValue_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - inputValue_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) inputValue_) - .mergeFrom(value).buildPartial(); - } else { - inputValue_ = value; - } - onChanged(); - } else { - if (inputValueCase_ == 19) { - inputDataBuilder_.mergeFrom(value); - } - inputDataBuilder_.setMessage(value); - } - inputValueCase_ = 19; - return this; - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public Builder clearInputData() { - if (inputDataBuilder_ == null) { - if (inputValueCase_ == 19) { - inputValueCase_ = 0; - inputValue_ = null; - onChanged(); - } - } else { - if (inputValueCase_ == 19) { - inputValueCase_ = 0; - inputValue_ = null; - } - inputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputDataBuilder() { - return getInputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputDataOrBuilder() { - if ((inputValueCase_ == 19) && (inputDataBuilder_ != null)) { - return inputDataBuilder_.getMessageOrBuilder(); - } else { - if (inputValueCase_ == 19) { - return (flyteidl.core.Literals.LiteralMap) inputValue_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw input data consumed by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap input_data = 19; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputDataFieldBuilder() { - if (inputDataBuilder_ == null) { - if (!(inputValueCase_ == 19)) { - inputValue_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - inputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) inputValue_, - getParentForChildren(), - isClean()); - inputValue_ = null; - } - inputValueCase_ = 19; - onChanged();; - return inputDataBuilder_; - } - - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public java.lang.String getOutputUri() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (outputResultCase_ == 9) { - outputResult_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public com.google.protobuf.ByteString - getOutputUriBytes() { - java.lang.Object ref = ""; - if (outputResultCase_ == 9) { - ref = outputResult_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (outputResultCase_ == 9) { - outputResult_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder clearOutputUri() { - if (outputResultCase_ == 9) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - return this; - } - /** - *
-       * URI to the output of the execution, it will be in a format that encodes all the information
-       * including Cloud source provider. ie., s3://...
-       * 
- * - * string output_uri = 9; - */ - public Builder setOutputUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - outputResultCase_ = 9; - outputResult_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> errorBuilder_; - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public boolean hasError() { - return outputResultCase_ == 10; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError getError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } else { - if (outputResultCase_ == 10) { - return errorBuilder_.getMessage(); - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder setError( - flyteidl.core.Execution.ExecutionError.Builder builderForValue) { - if (errorBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - errorBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder mergeError(flyteidl.core.Execution.ExecutionError value) { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10 && - outputResult_ != flyteidl.core.Execution.ExecutionError.getDefaultInstance()) { - outputResult_ = flyteidl.core.Execution.ExecutionError.newBuilder((flyteidl.core.Execution.ExecutionError) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 10) { - errorBuilder_.mergeFrom(value); - } - errorBuilder_.setMessage(value); - } - outputResultCase_ = 10; - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public Builder clearError() { - if (errorBuilder_ == null) { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 10) { - outputResultCase_ = 0; - outputResult_ = null; - } - errorBuilder_.clear(); - } - return this; - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionError.Builder getErrorBuilder() { - return getErrorFieldBuilder().getBuilder(); - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - public flyteidl.core.Execution.ExecutionErrorOrBuilder getErrorOrBuilder() { - if ((outputResultCase_ == 10) && (errorBuilder_ != null)) { - return errorBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 10) { - return (flyteidl.core.Execution.ExecutionError) outputResult_; - } - return flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - } - /** - *
-       * Error information for the execution
-       * 
- * - * .flyteidl.core.ExecutionError error = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder> - getErrorFieldBuilder() { - if (errorBuilder_ == null) { - if (!(outputResultCase_ == 10)) { - outputResult_ = flyteidl.core.Execution.ExecutionError.getDefaultInstance(); - } - errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Execution.ExecutionError, flyteidl.core.Execution.ExecutionError.Builder, flyteidl.core.Execution.ExecutionErrorOrBuilder>( - (flyteidl.core.Execution.ExecutionError) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 10; - onChanged();; - return errorBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputDataBuilder_; - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public boolean hasOutputData() { - return outputResultCase_ == 17; - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public flyteidl.core.Literals.LiteralMap getOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 17) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (outputResultCase_ == 17) { - return outputDataBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public Builder setOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputResult_ = value; - onChanged(); - } else { - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 17; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public Builder setOutputData( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputDataBuilder_ == null) { - outputResult_ = builderForValue.build(); - onChanged(); - } else { - outputDataBuilder_.setMessage(builderForValue.build()); - } - outputResultCase_ = 17; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public Builder mergeOutputData(flyteidl.core.Literals.LiteralMap value) { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 17 && - outputResult_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - outputResult_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) outputResult_) - .mergeFrom(value).buildPartial(); - } else { - outputResult_ = value; - } - onChanged(); - } else { - if (outputResultCase_ == 17) { - outputDataBuilder_.mergeFrom(value); - } - outputDataBuilder_.setMessage(value); - } - outputResultCase_ = 17; - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public Builder clearOutputData() { - if (outputDataBuilder_ == null) { - if (outputResultCase_ == 17) { - outputResultCase_ = 0; - outputResult_ = null; - onChanged(); - } - } else { - if (outputResultCase_ == 17) { - outputResultCase_ = 0; - outputResult_ = null; - } - outputDataBuilder_.clear(); - } - return this; - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputDataBuilder() { - return getOutputDataFieldBuilder().getBuilder(); - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputDataOrBuilder() { - if ((outputResultCase_ == 17) && (outputDataBuilder_ != null)) { - return outputDataBuilder_.getMessageOrBuilder(); - } else { - if (outputResultCase_ == 17) { - return (flyteidl.core.Literals.LiteralMap) outputResult_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * Raw output data produced by this task execution.
-       * 
- * - * .flyteidl.core.LiteralMap output_data = 17; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputDataFieldBuilder() { - if (outputDataBuilder_ == null) { - if (!(outputResultCase_ == 17)) { - outputResult_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - outputDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) outputResult_, - getParentForChildren(), - isClean()); - outputResult_ = null; - } - outputResultCase_ = 17; - onChanged();; - return outputDataBuilder_; - } - - private com.google.protobuf.Struct customInfo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customInfoBuilder_; - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public boolean hasCustomInfo() { - return customInfoBuilder_ != null || customInfo_ != null; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct getCustomInfo() { - if (customInfoBuilder_ == null) { - return customInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } else { - return customInfoBuilder_.getMessage(); - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customInfo_ = value; - onChanged(); - } else { - customInfoBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder setCustomInfo( - com.google.protobuf.Struct.Builder builderForValue) { - if (customInfoBuilder_ == null) { - customInfo_ = builderForValue.build(); - onChanged(); - } else { - customInfoBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder mergeCustomInfo(com.google.protobuf.Struct value) { - if (customInfoBuilder_ == null) { - if (customInfo_ != null) { - customInfo_ = - com.google.protobuf.Struct.newBuilder(customInfo_).mergeFrom(value).buildPartial(); - } else { - customInfo_ = value; - } - onChanged(); - } else { - customInfoBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public Builder clearCustomInfo() { - if (customInfoBuilder_ == null) { - customInfo_ = null; - onChanged(); - } else { - customInfo_ = null; - customInfoBuilder_ = null; - } - - return this; - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.Struct.Builder getCustomInfoBuilder() { - - onChanged(); - return getCustomInfoFieldBuilder().getBuilder(); - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - public com.google.protobuf.StructOrBuilder getCustomInfoOrBuilder() { - if (customInfoBuilder_ != null) { - return customInfoBuilder_.getMessageOrBuilder(); - } else { - return customInfo_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : customInfo_; - } - } - /** - *
-       * Custom data that the task plugin sends back. This is extensible to allow various plugins in the system.
-       * 
- * - * .google.protobuf.Struct custom_info = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getCustomInfoFieldBuilder() { - if (customInfoBuilder_ == null) { - customInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getCustomInfo(), - getParentForChildren(), - isClean()); - customInfo_ = null; - } - return customInfoBuilder_; - } - - private int phaseVersion_ ; - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public int getPhaseVersion() { - return phaseVersion_; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder setPhaseVersion(int value) { - - phaseVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc)
-       * that should be recorded regardless of the lack of phase change.
-       * The version field should be incremented when metadata changes across the duration of an individual phase.
-       * 
- * - * uint32 phase_version = 12; - */ - public Builder clearPhaseVersion() { - - phaseVersion_ = 0; - onChanged(); - return this; - } - - private java.lang.Object reason_ = ""; - /** - *
-       * An optional explanation for the phase transition.
-       * Deprecated: Use reasons instead.
-       * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - reason_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * An optional explanation for the phase transition.
-       * Deprecated: Use reasons instead.
-       * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * An optional explanation for the phase transition.
-       * Deprecated: Use reasons instead.
-       * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setReason( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - reason_ = value; - onChanged(); - return this; - } - /** - *
-       * An optional explanation for the phase transition.
-       * Deprecated: Use reasons instead.
-       * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearReason() { - - reason_ = getDefaultInstance().getReason(); - onChanged(); - return this; - } - /** - *
-       * An optional explanation for the phase transition.
-       * Deprecated: Use reasons instead.
-       * 
- * - * string reason = 13 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setReasonBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - reason_ = value; - onChanged(); - return this; - } - - private java.util.List reasons_ = - java.util.Collections.emptyList(); - private void ensureReasonsIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { - reasons_ = new java.util.ArrayList(reasons_); - bitField0_ |= 0x00008000; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.EventReason, flyteidl.event.Event.EventReason.Builder, flyteidl.event.Event.EventReasonOrBuilder> reasonsBuilder_; - - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public java.util.List getReasonsList() { - if (reasonsBuilder_ == null) { - return java.util.Collections.unmodifiableList(reasons_); - } else { - return reasonsBuilder_.getMessageList(); - } - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public int getReasonsCount() { - if (reasonsBuilder_ == null) { - return reasons_.size(); - } else { - return reasonsBuilder_.getCount(); - } - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReason getReasons(int index) { - if (reasonsBuilder_ == null) { - return reasons_.get(index); - } else { - return reasonsBuilder_.getMessage(index); - } - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder setReasons( - int index, flyteidl.event.Event.EventReason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.set(index, value); - onChanged(); - } else { - reasonsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder setReasons( - int index, flyteidl.event.Event.EventReason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.set(index, builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder addReasons(flyteidl.event.Event.EventReason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.add(value); - onChanged(); - } else { - reasonsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder addReasons( - int index, flyteidl.event.Event.EventReason value) { - if (reasonsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReasonsIsMutable(); - reasons_.add(index, value); - onChanged(); - } else { - reasonsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder addReasons( - flyteidl.event.Event.EventReason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.add(builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder addReasons( - int index, flyteidl.event.Event.EventReason.Builder builderForValue) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.add(index, builderForValue.build()); - onChanged(); - } else { - reasonsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder addAllReasons( - java.lang.Iterable values) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, reasons_); - onChanged(); - } else { - reasonsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder clearReasons() { - if (reasonsBuilder_ == null) { - reasons_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); - } else { - reasonsBuilder_.clear(); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public Builder removeReasons(int index) { - if (reasonsBuilder_ == null) { - ensureReasonsIsMutable(); - reasons_.remove(index); - onChanged(); - } else { - reasonsBuilder_.remove(index); - } - return this; - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReason.Builder getReasonsBuilder( - int index) { - return getReasonsFieldBuilder().getBuilder(index); - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReasonOrBuilder getReasonsOrBuilder( - int index) { - if (reasonsBuilder_ == null) { - return reasons_.get(index); } else { - return reasonsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public java.util.List - getReasonsOrBuilderList() { - if (reasonsBuilder_ != null) { - return reasonsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(reasons_); - } - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReason.Builder addReasonsBuilder() { - return getReasonsFieldBuilder().addBuilder( - flyteidl.event.Event.EventReason.getDefaultInstance()); - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public flyteidl.event.Event.EventReason.Builder addReasonsBuilder( - int index) { - return getReasonsFieldBuilder().addBuilder( - index, flyteidl.event.Event.EventReason.getDefaultInstance()); - } - /** - *
-       * An optional list of explanations for the phase transition.
-       * 
- * - * repeated .flyteidl.event.EventReason reasons = 21; - */ - public java.util.List - getReasonsBuilderList() { - return getReasonsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.EventReason, flyteidl.event.Event.EventReason.Builder, flyteidl.event.Event.EventReasonOrBuilder> - getReasonsFieldBuilder() { - if (reasonsBuilder_ == null) { - reasonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.EventReason, flyteidl.event.Event.EventReason.Builder, flyteidl.event.Event.EventReasonOrBuilder>( - reasons_, - ((bitField0_ & 0x00008000) != 0), - getParentForChildren(), - isClean()); - reasons_ = null; - } - return reasonsBuilder_; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-       * type is useful to render the task in the UI, filter task executions, etc.
-       * 
- * - * string task_type = 14; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-       * type is useful to render the task in the UI, filter task executions, etc.
-       * 
- * - * string task_type = 14; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-       * type is useful to render the task in the UI, filter task executions, etc.
-       * 
- * - * string task_type = 14; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-       * type is useful to render the task in the UI, filter task executions, etc.
-       * 
- * - * string task_type = 14; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin
-       * this type will be identical, but not all task executions necessarily use pre-registered definitions and this
-       * type is useful to render the task in the UI, filter task executions, etc.
-       * 
- * - * string task_type = 14; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private flyteidl.event.Event.TaskExecutionMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> metadataBuilder_; - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder setMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder setMetadata( - flyteidl.event.Event.TaskExecutionMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder mergeMetadata(flyteidl.event.Event.TaskExecutionMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - flyteidl.event.Event.TaskExecutionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance() : metadata_; - } - } - /** - *
-       * Metadata around how a task was executed.
-       * 
- * - * .flyteidl.event.TaskExecutionMetadata metadata = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.event.Event.TaskExecutionMetadata, flyteidl.event.Event.TaskExecutionMetadata.Builder, flyteidl.event.Event.TaskExecutionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private int eventVersion_ ; - /** - *
-       * The event version is used to indicate versioned changes in how data is reported using this
-       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 18; - */ - public int getEventVersion() { - return eventVersion_; - } - /** - *
-       * The event version is used to indicate versioned changes in how data is reported using this
-       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 18; - */ - public Builder setEventVersion(int value) { - - eventVersion_ = value; - onChanged(); - return this; - } - /** - *
-       * The event version is used to indicate versioned changes in how data is reported using this
-       * proto message. For example, event_verison > 0 means that maps tasks report logs using the
-       * TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog
-       * in this message.
-       * 
- * - * int32 event_version = 18; - */ - public Builder clearEventVersion() { - - eventVersion_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp reportedAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> reportedAtBuilder_; - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public boolean hasReportedAt() { - return reportedAtBuilder_ != null || reportedAt_ != null; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public com.google.protobuf.Timestamp getReportedAt() { - if (reportedAtBuilder_ == null) { - return reportedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } else { - return reportedAtBuilder_.getMessage(); - } - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public Builder setReportedAt(com.google.protobuf.Timestamp value) { - if (reportedAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - reportedAt_ = value; - onChanged(); - } else { - reportedAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public Builder setReportedAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (reportedAtBuilder_ == null) { - reportedAt_ = builderForValue.build(); - onChanged(); - } else { - reportedAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public Builder mergeReportedAt(com.google.protobuf.Timestamp value) { - if (reportedAtBuilder_ == null) { - if (reportedAt_ != null) { - reportedAt_ = - com.google.protobuf.Timestamp.newBuilder(reportedAt_).mergeFrom(value).buildPartial(); - } else { - reportedAt_ = value; - } - onChanged(); - } else { - reportedAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public Builder clearReportedAt() { - if (reportedAtBuilder_ == null) { - reportedAt_ = null; - onChanged(); - } else { - reportedAt_ = null; - reportedAtBuilder_ = null; - } - - return this; - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public com.google.protobuf.Timestamp.Builder getReportedAtBuilder() { - - onChanged(); - return getReportedAtFieldBuilder().getBuilder(); - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - public com.google.protobuf.TimestampOrBuilder getReportedAtOrBuilder() { - if (reportedAtBuilder_ != null) { - return reportedAtBuilder_.getMessageOrBuilder(); - } else { - return reportedAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : reportedAt_; - } - } - /** - *
-       * This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s
-       * pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes,
-       * but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps
-       * facilitates a more accurate portrayal of the evaluation time-series. 
-       * 
- * - * .google.protobuf.Timestamp reported_at = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getReportedAtFieldBuilder() { - if (reportedAtBuilder_ == null) { - reportedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getReportedAt(), - getParentForChildren(), - isClean()); - reportedAt_ = null; - } - return reportedAtBuilder_; - } - @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.event.TaskExecutionEvent) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionEvent) - private static final flyteidl.event.Event.TaskExecutionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionEvent(); - } - - public static flyteidl.event.Event.TaskExecutionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionEvent(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.event.Event.TaskExecutionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ExternalResourceInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ExternalResourceInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-     * 
- * - * string external_id = 1; - */ - java.lang.String getExternalId(); - /** - *
-     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-     * 
- * - * string external_id = 1; - */ - com.google.protobuf.ByteString - getExternalIdBytes(); - - /** - *
-     * A unique index for the external resource with respect to all external resources for this task. Although the
-     * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
-     * information from multiple reports.
-     * 
- * - * uint32 index = 2; - */ - int getIndex(); - - /** - *
-     * Retry attempt number for this external resource, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - int getRetryAttempt(); - - /** - *
-     * Phase associated with the external resource
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - int getPhaseValue(); - /** - *
-     * Phase associated with the external resource
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - flyteidl.core.Execution.TaskExecution.Phase getPhase(); - - /** - *
-     * Captures the status of caching for this external resource execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - int getCacheStatusValue(); - /** - *
-     * Captures the status of caching for this external resource execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus(); - - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsList(); - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLog getLogs(int index); - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - int getLogsCount(); - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - java.util.List - getLogsOrBuilderList(); - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index); - } - /** - *
-   * This message contains metadata about external resources produced or used by a specific task execution.
-   * 
- * - * Protobuf type {@code flyteidl.event.ExternalResourceInfo} - */ - public static final class ExternalResourceInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ExternalResourceInfo) - ExternalResourceInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ExternalResourceInfo.newBuilder() to construct. - private ExternalResourceInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExternalResourceInfo() { - externalId_ = ""; - phase_ = 0; - cacheStatus_ = 0; - logs_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ExternalResourceInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - externalId_ = s; - break; - } - case 16: { - - index_ = input.readUInt32(); - break; - } - case 24: { - - retryAttempt_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); - - cacheStatus_ = rawValue; - break; - } - case 50: { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - logs_.add( - input.readMessage(flyteidl.core.Execution.TaskLog.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ExternalResourceInfo.class, flyteidl.event.Event.ExternalResourceInfo.Builder.class); - } - - private int bitField0_; - public static final int EXTERNAL_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object externalId_; - /** - *
-     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-     * 
- * - * string external_id = 1; - */ - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } - } - /** - *
-     * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-     * 
- * - * string external_id = 1; - */ - public com.google.protobuf.ByteString - getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDEX_FIELD_NUMBER = 2; - private int index_; - /** - *
-     * A unique index for the external resource with respect to all external resources for this task. Although the
-     * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
-     * information from multiple reports.
-     * 
- * - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } - - public static final int RETRY_ATTEMPT_FIELD_NUMBER = 3; - private int retryAttempt_; - /** - *
-     * Retry attempt number for this external resource, ie., 2 for the second attempt
-     * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - - public static final int PHASE_FIELD_NUMBER = 4; - private int phase_; - /** - *
-     * Phase associated with the external resource
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-     * Phase associated with the external resource
-     * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - - public static final int CACHE_STATUS_FIELD_NUMBER = 5; - private int cacheStatus_; - /** - *
-     * Captures the status of caching for this external resource execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-     * Captures the status of caching for this external resource execution.
-     * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - - public static final int LOGS_FIELD_NUMBER = 6; - private java.util.List logs_; - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - return logs_; - } - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - return logs_; - } - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - return logs_.size(); - } - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - return logs_.get(index); - } - /** - *
-     * log information for the external resource execution
-     * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - return logs_.get(index); - } - - 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 (!getExternalIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, externalId_); - } - if (index_ != 0) { - output.writeUInt32(2, index_); - } - if (retryAttempt_ != 0) { - output.writeUInt32(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(4, phase_); - } - if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - output.writeEnum(5, cacheStatus_); - } - for (int i = 0; i < logs_.size(); i++) { - output.writeMessage(6, logs_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getExternalIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, externalId_); - } - if (index_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, index_); - } - if (retryAttempt_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryAttempt_); - } - if (phase_ != flyteidl.core.Execution.TaskExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, phase_); - } - if (cacheStatus_ != flyteidl.core.Catalog.CatalogCacheStatus.CACHE_DISABLED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, cacheStatus_); - } - for (int i = 0; i < logs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, logs_.get(i)); - } - 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.event.Event.ExternalResourceInfo)) { - return super.equals(obj); - } - flyteidl.event.Event.ExternalResourceInfo other = (flyteidl.event.Event.ExternalResourceInfo) obj; - - if (!getExternalId() - .equals(other.getExternalId())) return false; - if (getIndex() - != other.getIndex()) return false; - if (getRetryAttempt() - != other.getRetryAttempt()) return false; - if (phase_ != other.phase_) return false; - if (cacheStatus_ != other.cacheStatus_) return false; - if (!getLogsList() - .equals(other.getLogsList())) 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(); - hash = (37 * hash) + EXTERNAL_ID_FIELD_NUMBER; - hash = (53 * hash) + getExternalId().hashCode(); - hash = (37 * hash) + INDEX_FIELD_NUMBER; - hash = (53 * hash) + getIndex(); - hash = (37 * hash) + RETRY_ATTEMPT_FIELD_NUMBER; - hash = (53 * hash) + getRetryAttempt(); - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + CACHE_STATUS_FIELD_NUMBER; - hash = (53 * hash) + cacheStatus_; - if (getLogsCount() > 0) { - hash = (37 * hash) + LOGS_FIELD_NUMBER; - hash = (53 * hash) + getLogsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.ExternalResourceInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ExternalResourceInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ExternalResourceInfo 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.event.Event.ExternalResourceInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ExternalResourceInfo 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.event.Event.ExternalResourceInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ExternalResourceInfo 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.event.Event.ExternalResourceInfo 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; - } - /** - *
-     * This message contains metadata about external resources produced or used by a specific task execution.
-     * 
- * - * Protobuf type {@code flyteidl.event.ExternalResourceInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ExternalResourceInfo) - flyteidl.event.Event.ExternalResourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ExternalResourceInfo.class, flyteidl.event.Event.ExternalResourceInfo.Builder.class); - } - - // Construct using flyteidl.event.Event.ExternalResourceInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLogsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - externalId_ = ""; - - index_ = 0; - - retryAttempt_ = 0; - - phase_ = 0; - - cacheStatus_ = 0; - - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - } else { - logsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_ExternalResourceInfo_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ExternalResourceInfo getDefaultInstanceForType() { - return flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ExternalResourceInfo build() { - flyteidl.event.Event.ExternalResourceInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ExternalResourceInfo buildPartial() { - flyteidl.event.Event.ExternalResourceInfo result = new flyteidl.event.Event.ExternalResourceInfo(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.externalId_ = externalId_; - result.index_ = index_; - result.retryAttempt_ = retryAttempt_; - result.phase_ = phase_; - result.cacheStatus_ = cacheStatus_; - if (logsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - logs_ = java.util.Collections.unmodifiableList(logs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.logs_ = logs_; - } else { - result.logs_ = logsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.event.Event.ExternalResourceInfo) { - return mergeFrom((flyteidl.event.Event.ExternalResourceInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ExternalResourceInfo other) { - if (other == flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()) return this; - if (!other.getExternalId().isEmpty()) { - externalId_ = other.externalId_; - onChanged(); - } - if (other.getIndex() != 0) { - setIndex(other.getIndex()); - } - if (other.getRetryAttempt() != 0) { - setRetryAttempt(other.getRetryAttempt()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (other.cacheStatus_ != 0) { - setCacheStatusValue(other.getCacheStatusValue()); - } - if (logsBuilder_ == null) { - if (!other.logs_.isEmpty()) { - if (logs_.isEmpty()) { - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureLogsIsMutable(); - logs_.addAll(other.logs_); - } - onChanged(); - } - } else { - if (!other.logs_.isEmpty()) { - if (logsBuilder_.isEmpty()) { - logsBuilder_.dispose(); - logsBuilder_ = null; - logs_ = other.logs_; - bitField0_ = (bitField0_ & ~0x00000020); - logsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLogsFieldBuilder() : null; - } else { - logsBuilder_.addAllMessages(other.logs_); - } - } - } - 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.event.Event.ExternalResourceInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ExternalResourceInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object externalId_ = ""; - /** - *
-       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-       * 
- * - * string external_id = 1; - */ - public java.lang.String getExternalId() { - java.lang.Object ref = externalId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - externalId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-       * 
- * - * string external_id = 1; - */ - public com.google.protobuf.ByteString - getExternalIdBytes() { - java.lang.Object ref = externalId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - externalId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-       * 
- * - * string external_id = 1; - */ - public Builder setExternalId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - externalId_ = value; - onChanged(); - return this; - } - /** - *
-       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-       * 
- * - * string external_id = 1; - */ - public Builder clearExternalId() { - - externalId_ = getDefaultInstance().getExternalId(); - onChanged(); - return this; - } - /** - *
-       * Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids.
-       * 
- * - * string external_id = 1; - */ - public Builder setExternalIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - externalId_ = value; - onChanged(); - return this; - } - - private int index_ ; - /** - *
-       * A unique index for the external resource with respect to all external resources for this task. Although the
-       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
-       * information from multiple reports.
-       * 
- * - * uint32 index = 2; - */ - public int getIndex() { - return index_; - } - /** - *
-       * A unique index for the external resource with respect to all external resources for this task. Although the
-       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
-       * information from multiple reports.
-       * 
- * - * uint32 index = 2; - */ - public Builder setIndex(int value) { - - index_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique index for the external resource with respect to all external resources for this task. Although the
-       * identifier may change between task reporting events or retries, this will remain the same to enable aggregating
-       * information from multiple reports.
-       * 
- * - * uint32 index = 2; - */ - public Builder clearIndex() { - - index_ = 0; - onChanged(); - return this; - } - - private int retryAttempt_ ; - /** - *
-       * Retry attempt number for this external resource, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public int getRetryAttempt() { - return retryAttempt_; - } - /** - *
-       * Retry attempt number for this external resource, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder setRetryAttempt(int value) { - - retryAttempt_ = value; - onChanged(); - return this; - } - /** - *
-       * Retry attempt number for this external resource, ie., 2 for the second attempt
-       * 
- * - * uint32 retry_attempt = 3; - */ - public Builder clearRetryAttempt() { - - retryAttempt_ = 0; - onChanged(); - return this; - } - - private int phase_ = 0; - /** - *
-       * Phase associated with the external resource
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public int getPhaseValue() { - return phase_; - } - /** - *
-       * Phase associated with the external resource
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - *
-       * Phase associated with the external resource
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public flyteidl.core.Execution.TaskExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.TaskExecution.Phase result = flyteidl.core.Execution.TaskExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.TaskExecution.Phase.UNRECOGNIZED : result; - } - /** - *
-       * Phase associated with the external resource
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder setPhase(flyteidl.core.Execution.TaskExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Phase associated with the external resource
-       * 
- * - * .flyteidl.core.TaskExecution.Phase phase = 4; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private int cacheStatus_ = 0; - /** - *
-       * Captures the status of caching for this external resource execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public int getCacheStatusValue() { - return cacheStatus_; - } - /** - *
-       * Captures the status of caching for this external resource execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public Builder setCacheStatusValue(int value) { - cacheStatus_ = value; - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this external resource execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public flyteidl.core.Catalog.CatalogCacheStatus getCacheStatus() { - @SuppressWarnings("deprecation") - flyteidl.core.Catalog.CatalogCacheStatus result = flyteidl.core.Catalog.CatalogCacheStatus.valueOf(cacheStatus_); - return result == null ? flyteidl.core.Catalog.CatalogCacheStatus.UNRECOGNIZED : result; - } - /** - *
-       * Captures the status of caching for this external resource execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public Builder setCacheStatus(flyteidl.core.Catalog.CatalogCacheStatus value) { - if (value == null) { - throw new NullPointerException(); - } - - cacheStatus_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Captures the status of caching for this external resource execution.
-       * 
- * - * .flyteidl.core.CatalogCacheStatus cache_status = 5; - */ - public Builder clearCacheStatus() { - - cacheStatus_ = 0; - onChanged(); - return this; - } - - private java.util.List logs_ = - java.util.Collections.emptyList(); - private void ensureLogsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - logs_ = new java.util.ArrayList(logs_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> logsBuilder_; - - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List getLogsList() { - if (logsBuilder_ == null) { - return java.util.Collections.unmodifiableList(logs_); - } else { - return logsBuilder_.getMessageList(); - } - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public int getLogsCount() { - if (logsBuilder_ == null) { - return logs_.size(); - } else { - return logsBuilder_.getCount(); - } - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog getLogs(int index) { - if (logsBuilder_ == null) { - return logs_.get(index); - } else { - return logsBuilder_.getMessage(index); - } - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.set(index, value); - onChanged(); - } else { - logsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder setLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.set(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs(flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(value); - onChanged(); - } else { - logsBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog value) { - if (logsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLogsIsMutable(); - logs_.add(index, value); - onChanged(); - } else { - logsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addLogs( - int index, flyteidl.core.Execution.TaskLog.Builder builderForValue) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.add(index, builderForValue.build()); - onChanged(); - } else { - logsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder addAllLogs( - java.lang.Iterable values) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, logs_); - onChanged(); - } else { - logsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder clearLogs() { - if (logsBuilder_ == null) { - logs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - logsBuilder_.clear(); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public Builder removeLogs(int index) { - if (logsBuilder_ == null) { - ensureLogsIsMutable(); - logs_.remove(index); - onChanged(); - } else { - logsBuilder_.remove(index); - } - return this; - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder getLogsBuilder( - int index) { - return getLogsFieldBuilder().getBuilder(index); - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLogOrBuilder getLogsOrBuilder( - int index) { - if (logsBuilder_ == null) { - return logs_.get(index); } else { - return logsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsOrBuilderList() { - if (logsBuilder_ != null) { - return logsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(logs_); - } - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder() { - return getLogsFieldBuilder().addBuilder( - flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public flyteidl.core.Execution.TaskLog.Builder addLogsBuilder( - int index) { - return getLogsFieldBuilder().addBuilder( - index, flyteidl.core.Execution.TaskLog.getDefaultInstance()); - } - /** - *
-       * log information for the external resource execution
-       * 
- * - * repeated .flyteidl.core.TaskLog logs = 6; - */ - public java.util.List - getLogsBuilderList() { - return getLogsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder> - getLogsFieldBuilder() { - if (logsBuilder_ == null) { - logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.core.Execution.TaskLog, flyteidl.core.Execution.TaskLog.Builder, flyteidl.core.Execution.TaskLogOrBuilder>( - logs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - logs_ = null; - } - return logsBuilder_; - } - @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.event.ExternalResourceInfo) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ExternalResourceInfo) - private static final flyteidl.event.Event.ExternalResourceInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ExternalResourceInfo(); - } - - public static flyteidl.event.Event.ExternalResourceInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExternalResourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExternalResourceInfo(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.event.Event.ExternalResourceInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ResourcePoolInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.ResourcePoolInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique resource ID used to identify this execution when allocating a token.
-     * 
- * - * string allocation_token = 1; - */ - java.lang.String getAllocationToken(); - /** - *
-     * Unique resource ID used to identify this execution when allocating a token.
-     * 
- * - * string allocation_token = 1; - */ - com.google.protobuf.ByteString - getAllocationTokenBytes(); - - /** - *
-     * Namespace under which this task execution requested an allocation token.
-     * 
- * - * string namespace = 2; - */ - java.lang.String getNamespace(); - /** - *
-     * Namespace under which this task execution requested an allocation token.
-     * 
- * - * string namespace = 2; - */ - com.google.protobuf.ByteString - getNamespaceBytes(); - } - /** - *
-   * This message holds task execution metadata specific to resource allocation used to manage concurrent
-   * executions for a project namespace.
-   * 
- * - * Protobuf type {@code flyteidl.event.ResourcePoolInfo} - */ - public static final class ResourcePoolInfo extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.ResourcePoolInfo) - ResourcePoolInfoOrBuilder { - private static final long serialVersionUID = 0L; - // Use ResourcePoolInfo.newBuilder() to construct. - private ResourcePoolInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ResourcePoolInfo() { - allocationToken_ = ""; - namespace_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ResourcePoolInfo( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - allocationToken_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - namespace_ = s; - 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.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ResourcePoolInfo.class, flyteidl.event.Event.ResourcePoolInfo.Builder.class); - } - - public static final int ALLOCATION_TOKEN_FIELD_NUMBER = 1; - private volatile java.lang.Object allocationToken_; - /** - *
-     * Unique resource ID used to identify this execution when allocating a token.
-     * 
- * - * string allocation_token = 1; - */ - public java.lang.String getAllocationToken() { - java.lang.Object ref = allocationToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - allocationToken_ = s; - return s; - } - } - /** - *
-     * Unique resource ID used to identify this execution when allocating a token.
-     * 
- * - * string allocation_token = 1; - */ - public com.google.protobuf.ByteString - getAllocationTokenBytes() { - java.lang.Object ref = allocationToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocationToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMESPACE_FIELD_NUMBER = 2; - private volatile java.lang.Object namespace_; - /** - *
-     * Namespace under which this task execution requested an allocation token.
-     * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } - } - /** - *
-     * Namespace under which this task execution requested an allocation token.
-     * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getAllocationTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, allocationToken_); - } - if (!getNamespaceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, namespace_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getAllocationTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, allocationToken_); - } - if (!getNamespaceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, namespace_); - } - 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.event.Event.ResourcePoolInfo)) { - return super.equals(obj); - } - flyteidl.event.Event.ResourcePoolInfo other = (flyteidl.event.Event.ResourcePoolInfo) obj; - - if (!getAllocationToken() - .equals(other.getAllocationToken())) return false; - if (!getNamespace() - .equals(other.getNamespace())) 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(); - hash = (37 * hash) + ALLOCATION_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getAllocationToken().hashCode(); - hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; - hash = (53 * hash) + getNamespace().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.ResourcePoolInfo parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.ResourcePoolInfo parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ResourcePoolInfo 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.event.Event.ResourcePoolInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ResourcePoolInfo 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.event.Event.ResourcePoolInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.ResourcePoolInfo 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.event.Event.ResourcePoolInfo 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; - } - /** - *
-     * This message holds task execution metadata specific to resource allocation used to manage concurrent
-     * executions for a project namespace.
-     * 
- * - * Protobuf type {@code flyteidl.event.ResourcePoolInfo} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.ResourcePoolInfo) - flyteidl.event.Event.ResourcePoolInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.ResourcePoolInfo.class, flyteidl.event.Event.ResourcePoolInfo.Builder.class); - } - - // Construct using flyteidl.event.Event.ResourcePoolInfo.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(); - allocationToken_ = ""; - - namespace_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_ResourcePoolInfo_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.ResourcePoolInfo getDefaultInstanceForType() { - return flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.ResourcePoolInfo build() { - flyteidl.event.Event.ResourcePoolInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.ResourcePoolInfo buildPartial() { - flyteidl.event.Event.ResourcePoolInfo result = new flyteidl.event.Event.ResourcePoolInfo(this); - result.allocationToken_ = allocationToken_; - result.namespace_ = namespace_; - 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.event.Event.ResourcePoolInfo) { - return mergeFrom((flyteidl.event.Event.ResourcePoolInfo)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.ResourcePoolInfo other) { - if (other == flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()) return this; - if (!other.getAllocationToken().isEmpty()) { - allocationToken_ = other.allocationToken_; - onChanged(); - } - if (!other.getNamespace().isEmpty()) { - namespace_ = other.namespace_; - onChanged(); - } - 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.event.Event.ResourcePoolInfo parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.ResourcePoolInfo) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object allocationToken_ = ""; - /** - *
-       * Unique resource ID used to identify this execution when allocating a token.
-       * 
- * - * string allocation_token = 1; - */ - public java.lang.String getAllocationToken() { - java.lang.Object ref = allocationToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - allocationToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique resource ID used to identify this execution when allocating a token.
-       * 
- * - * string allocation_token = 1; - */ - public com.google.protobuf.ByteString - getAllocationTokenBytes() { - java.lang.Object ref = allocationToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - allocationToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique resource ID used to identify this execution when allocating a token.
-       * 
- * - * string allocation_token = 1; - */ - public Builder setAllocationToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - allocationToken_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique resource ID used to identify this execution when allocating a token.
-       * 
- * - * string allocation_token = 1; - */ - public Builder clearAllocationToken() { - - allocationToken_ = getDefaultInstance().getAllocationToken(); - onChanged(); - return this; - } - /** - *
-       * Unique resource ID used to identify this execution when allocating a token.
-       * 
- * - * string allocation_token = 1; - */ - public Builder setAllocationTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - allocationToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object namespace_ = ""; - /** - *
-       * Namespace under which this task execution requested an allocation token.
-       * 
- * - * string namespace = 2; - */ - public java.lang.String getNamespace() { - java.lang.Object ref = namespace_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - namespace_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Namespace under which this task execution requested an allocation token.
-       * 
- * - * string namespace = 2; - */ - public com.google.protobuf.ByteString - getNamespaceBytes() { - java.lang.Object ref = namespace_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - namespace_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Namespace under which this task execution requested an allocation token.
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespace( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - namespace_ = value; - onChanged(); - return this; - } - /** - *
-       * Namespace under which this task execution requested an allocation token.
-       * 
- * - * string namespace = 2; - */ - public Builder clearNamespace() { - - namespace_ = getDefaultInstance().getNamespace(); - onChanged(); - return this; - } - /** - *
-       * Namespace under which this task execution requested an allocation token.
-       * 
- * - * string namespace = 2; - */ - public Builder setNamespaceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - namespace_ = value; - onChanged(); - return this; - } - @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.event.ResourcePoolInfo) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.ResourcePoolInfo) - private static final flyteidl.event.Event.ResourcePoolInfo DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.ResourcePoolInfo(); - } - - public static flyteidl.event.Event.ResourcePoolInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResourcePoolInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResourcePoolInfo(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.event.Event.ResourcePoolInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface TaskExecutionMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.event.TaskExecutionMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Unique, generated name for this task execution used by the backend.
-     * 
- * - * string generated_name = 1; - */ - java.lang.String getGeneratedName(); - /** - *
-     * Unique, generated name for this task execution used by the backend.
-     * 
- * - * string generated_name = 1; - */ - com.google.protobuf.ByteString - getGeneratedNameBytes(); - - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - java.util.List - getExternalResourcesList(); - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index); - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - int getExternalResourcesCount(); - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - java.util.List - getExternalResourcesOrBuilderList(); - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( - int index); - - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - java.util.List - getResourcePoolInfoList(); - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index); - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - int getResourcePoolInfoCount(); - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - java.util.List - getResourcePoolInfoOrBuilderList(); - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( - int index); - - /** - *
-     * The identifier of the plugin used to execute this task.
-     * 
- * - * string plugin_identifier = 4; - */ - java.lang.String getPluginIdentifier(); - /** - *
-     * The identifier of the plugin used to execute this task.
-     * 
- * - * string plugin_identifier = 4; - */ - com.google.protobuf.ByteString - getPluginIdentifierBytes(); - - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - int getInstanceClassValue(); - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass(); - } - /** - *
-   * Holds metadata around how a task was executed.
-   * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources,
-   * and more may grow in size but not change necessarily based on the phase transition that sparked the event update.
-   * Metadata is a container for these attributes across the task execution lifecycle.
-   * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionMetadata} - */ - public static final class TaskExecutionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.event.TaskExecutionMetadata) - TaskExecutionMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskExecutionMetadata.newBuilder() to construct. - private TaskExecutionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskExecutionMetadata() { - generatedName_ = ""; - externalResources_ = java.util.Collections.emptyList(); - resourcePoolInfo_ = java.util.Collections.emptyList(); - pluginIdentifier_ = ""; - instanceClass_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskExecutionMetadata( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - generatedName_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - externalResources_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - externalResources_.add( - input.readMessage(flyteidl.event.Event.ExternalResourceInfo.parser(), extensionRegistry)); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - resourcePoolInfo_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - resourcePoolInfo_.add( - input.readMessage(flyteidl.event.Event.ResourcePoolInfo.parser(), extensionRegistry)); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - pluginIdentifier_ = s; - break; - } - case 128: { - int rawValue = input.readEnum(); - - instanceClass_ = rawValue; - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - externalResources_ = java.util.Collections.unmodifiableList(externalResources_); - } - if (((mutable_bitField0_ & 0x00000004) != 0)) { - resourcePoolInfo_ = java.util.Collections.unmodifiableList(resourcePoolInfo_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionMetadata.class, flyteidl.event.Event.TaskExecutionMetadata.Builder.class); - } - - /** - *
-     * Includes the broad category of machine used for this specific task execution.
-     * 
- * - * Protobuf enum {@code flyteidl.event.TaskExecutionMetadata.InstanceClass} - */ - public enum InstanceClass - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * The default instance class configured for the flyte application platform.
-       * 
- * - * DEFAULT = 0; - */ - DEFAULT(0), - /** - *
-       * The instance class configured for interruptible tasks.
-       * 
- * - * INTERRUPTIBLE = 1; - */ - INTERRUPTIBLE(1), - UNRECOGNIZED(-1), - ; - - /** - *
-       * The default instance class configured for the flyte application platform.
-       * 
- * - * DEFAULT = 0; - */ - public static final int DEFAULT_VALUE = 0; - /** - *
-       * The instance class configured for interruptible tasks.
-       * 
- * - * INTERRUPTIBLE = 1; - */ - public static final int INTERRUPTIBLE_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static InstanceClass valueOf(int value) { - return forNumber(value); - } - - public static InstanceClass forNumber(int value) { - switch (value) { - case 0: return DEFAULT; - case 1: return INTERRUPTIBLE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - InstanceClass> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public InstanceClass findValueByNumber(int number) { - return InstanceClass.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.event.Event.TaskExecutionMetadata.getDescriptor().getEnumTypes().get(0); - } - - private static final InstanceClass[] VALUES = values(); - - public static InstanceClass valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private InstanceClass(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.event.TaskExecutionMetadata.InstanceClass) - } - - private int bitField0_; - public static final int GENERATED_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object generatedName_; - /** - *
-     * Unique, generated name for this task execution used by the backend.
-     * 
- * - * string generated_name = 1; - */ - public java.lang.String getGeneratedName() { - java.lang.Object ref = generatedName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - generatedName_ = s; - return s; - } - } - /** - *
-     * Unique, generated name for this task execution used by the backend.
-     * 
- * - * string generated_name = 1; - */ - public com.google.protobuf.ByteString - getGeneratedNameBytes() { - java.lang.Object ref = generatedName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - generatedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXTERNAL_RESOURCES_FIELD_NUMBER = 2; - private java.util.List externalResources_; - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public java.util.List getExternalResourcesList() { - return externalResources_; - } - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public java.util.List - getExternalResourcesOrBuilderList() { - return externalResources_; - } - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public int getExternalResourcesCount() { - return externalResources_.size(); - } - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index) { - return externalResources_.get(index); - } - /** - *
-     * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-     * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( - int index) { - return externalResources_.get(index); - } - - public static final int RESOURCE_POOL_INFO_FIELD_NUMBER = 3; - private java.util.List resourcePoolInfo_; - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public java.util.List getResourcePoolInfoList() { - return resourcePoolInfo_; - } - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public java.util.List - getResourcePoolInfoOrBuilderList() { - return resourcePoolInfo_; - } - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public int getResourcePoolInfoCount() { - return resourcePoolInfo_.size(); - } - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index) { - return resourcePoolInfo_.get(index); - } - /** - *
-     * Includes additional data on concurrent resource management used during execution..
-     * This is a repeated field because a plugin can request multiple resource allocations during execution.
-     * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( - int index) { - return resourcePoolInfo_.get(index); - } - - public static final int PLUGIN_IDENTIFIER_FIELD_NUMBER = 4; - private volatile java.lang.Object pluginIdentifier_; - /** - *
-     * The identifier of the plugin used to execute this task.
-     * 
- * - * string plugin_identifier = 4; - */ - public java.lang.String getPluginIdentifier() { - java.lang.Object ref = pluginIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pluginIdentifier_ = s; - return s; - } - } - /** - *
-     * The identifier of the plugin used to execute this task.
-     * 
- * - * string plugin_identifier = 4; - */ - public com.google.protobuf.ByteString - getPluginIdentifierBytes() { - java.lang.Object ref = pluginIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pluginIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_CLASS_FIELD_NUMBER = 16; - private int instanceClass_; - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public int getInstanceClassValue() { - return instanceClass_; - } - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass() { - @SuppressWarnings("deprecation") - flyteidl.event.Event.TaskExecutionMetadata.InstanceClass result = flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.valueOf(instanceClass_); - return result == null ? flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.UNRECOGNIZED : result; - } - - 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 (!getGeneratedNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generatedName_); - } - for (int i = 0; i < externalResources_.size(); i++) { - output.writeMessage(2, externalResources_.get(i)); - } - for (int i = 0; i < resourcePoolInfo_.size(); i++) { - output.writeMessage(3, resourcePoolInfo_.get(i)); - } - if (!getPluginIdentifierBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pluginIdentifier_); - } - if (instanceClass_ != flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.DEFAULT.getNumber()) { - output.writeEnum(16, instanceClass_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGeneratedNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, generatedName_); - } - for (int i = 0; i < externalResources_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, externalResources_.get(i)); - } - for (int i = 0; i < resourcePoolInfo_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, resourcePoolInfo_.get(i)); - } - if (!getPluginIdentifierBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pluginIdentifier_); - } - if (instanceClass_ != flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.DEFAULT.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(16, instanceClass_); - } - 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.event.Event.TaskExecutionMetadata)) { - return super.equals(obj); - } - flyteidl.event.Event.TaskExecutionMetadata other = (flyteidl.event.Event.TaskExecutionMetadata) obj; - - if (!getGeneratedName() - .equals(other.getGeneratedName())) return false; - if (!getExternalResourcesList() - .equals(other.getExternalResourcesList())) return false; - if (!getResourcePoolInfoList() - .equals(other.getResourcePoolInfoList())) return false; - if (!getPluginIdentifier() - .equals(other.getPluginIdentifier())) return false; - if (instanceClass_ != other.instanceClass_) 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(); - hash = (37 * hash) + GENERATED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGeneratedName().hashCode(); - if (getExternalResourcesCount() > 0) { - hash = (37 * hash) + EXTERNAL_RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getExternalResourcesList().hashCode(); - } - if (getResourcePoolInfoCount() > 0) { - hash = (37 * hash) + RESOURCE_POOL_INFO_FIELD_NUMBER; - hash = (53 * hash) + getResourcePoolInfoList().hashCode(); - } - hash = (37 * hash) + PLUGIN_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPluginIdentifier().hashCode(); - hash = (37 * hash) + INSTANCE_CLASS_FIELD_NUMBER; - hash = (53 * hash) + instanceClass_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.event.Event.TaskExecutionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionMetadata 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.event.Event.TaskExecutionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionMetadata 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.event.Event.TaskExecutionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.event.Event.TaskExecutionMetadata 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.event.Event.TaskExecutionMetadata 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; - } - /** - *
-     * Holds metadata around how a task was executed.
-     * As a task transitions across event phases during execution some attributes, such its generated name, generated external resources,
-     * and more may grow in size but not change necessarily based on the phase transition that sparked the event update.
-     * Metadata is a container for these attributes across the task execution lifecycle.
-     * 
- * - * Protobuf type {@code flyteidl.event.TaskExecutionMetadata} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.event.TaskExecutionMetadata) - flyteidl.event.Event.TaskExecutionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.event.Event.TaskExecutionMetadata.class, flyteidl.event.Event.TaskExecutionMetadata.Builder.class); - } - - // Construct using flyteidl.event.Event.TaskExecutionMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getExternalResourcesFieldBuilder(); - getResourcePoolInfoFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - generatedName_ = ""; - - if (externalResourcesBuilder_ == null) { - externalResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - externalResourcesBuilder_.clear(); - } - if (resourcePoolInfoBuilder_ == null) { - resourcePoolInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - resourcePoolInfoBuilder_.clear(); - } - pluginIdentifier_ = ""; - - instanceClass_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.event.Event.internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionMetadata getDefaultInstanceForType() { - return flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionMetadata build() { - flyteidl.event.Event.TaskExecutionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.event.Event.TaskExecutionMetadata buildPartial() { - flyteidl.event.Event.TaskExecutionMetadata result = new flyteidl.event.Event.TaskExecutionMetadata(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.generatedName_ = generatedName_; - if (externalResourcesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - externalResources_ = java.util.Collections.unmodifiableList(externalResources_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.externalResources_ = externalResources_; - } else { - result.externalResources_ = externalResourcesBuilder_.build(); - } - if (resourcePoolInfoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - resourcePoolInfo_ = java.util.Collections.unmodifiableList(resourcePoolInfo_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.resourcePoolInfo_ = resourcePoolInfo_; - } else { - result.resourcePoolInfo_ = resourcePoolInfoBuilder_.build(); - } - result.pluginIdentifier_ = pluginIdentifier_; - result.instanceClass_ = instanceClass_; - result.bitField0_ = to_bitField0_; - 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.event.Event.TaskExecutionMetadata) { - return mergeFrom((flyteidl.event.Event.TaskExecutionMetadata)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.event.Event.TaskExecutionMetadata other) { - if (other == flyteidl.event.Event.TaskExecutionMetadata.getDefaultInstance()) return this; - if (!other.getGeneratedName().isEmpty()) { - generatedName_ = other.generatedName_; - onChanged(); - } - if (externalResourcesBuilder_ == null) { - if (!other.externalResources_.isEmpty()) { - if (externalResources_.isEmpty()) { - externalResources_ = other.externalResources_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureExternalResourcesIsMutable(); - externalResources_.addAll(other.externalResources_); - } - onChanged(); - } - } else { - if (!other.externalResources_.isEmpty()) { - if (externalResourcesBuilder_.isEmpty()) { - externalResourcesBuilder_.dispose(); - externalResourcesBuilder_ = null; - externalResources_ = other.externalResources_; - bitField0_ = (bitField0_ & ~0x00000002); - externalResourcesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExternalResourcesFieldBuilder() : null; - } else { - externalResourcesBuilder_.addAllMessages(other.externalResources_); - } - } - } - if (resourcePoolInfoBuilder_ == null) { - if (!other.resourcePoolInfo_.isEmpty()) { - if (resourcePoolInfo_.isEmpty()) { - resourcePoolInfo_ = other.resourcePoolInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.addAll(other.resourcePoolInfo_); - } - onChanged(); - } - } else { - if (!other.resourcePoolInfo_.isEmpty()) { - if (resourcePoolInfoBuilder_.isEmpty()) { - resourcePoolInfoBuilder_.dispose(); - resourcePoolInfoBuilder_ = null; - resourcePoolInfo_ = other.resourcePoolInfo_; - bitField0_ = (bitField0_ & ~0x00000004); - resourcePoolInfoBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourcePoolInfoFieldBuilder() : null; - } else { - resourcePoolInfoBuilder_.addAllMessages(other.resourcePoolInfo_); - } - } - } - if (!other.getPluginIdentifier().isEmpty()) { - pluginIdentifier_ = other.pluginIdentifier_; - onChanged(); - } - if (other.instanceClass_ != 0) { - setInstanceClassValue(other.getInstanceClassValue()); - } - 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.event.Event.TaskExecutionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.event.Event.TaskExecutionMetadata) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object generatedName_ = ""; - /** - *
-       * Unique, generated name for this task execution used by the backend.
-       * 
- * - * string generated_name = 1; - */ - public java.lang.String getGeneratedName() { - java.lang.Object ref = generatedName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - generatedName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Unique, generated name for this task execution used by the backend.
-       * 
- * - * string generated_name = 1; - */ - public com.google.protobuf.ByteString - getGeneratedNameBytes() { - java.lang.Object ref = generatedName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - generatedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Unique, generated name for this task execution used by the backend.
-       * 
- * - * string generated_name = 1; - */ - public Builder setGeneratedName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - generatedName_ = value; - onChanged(); - return this; - } - /** - *
-       * Unique, generated name for this task execution used by the backend.
-       * 
- * - * string generated_name = 1; - */ - public Builder clearGeneratedName() { - - generatedName_ = getDefaultInstance().getGeneratedName(); - onChanged(); - return this; - } - /** - *
-       * Unique, generated name for this task execution used by the backend.
-       * 
- * - * string generated_name = 1; - */ - public Builder setGeneratedNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - generatedName_ = value; - onChanged(); - return this; - } - - private java.util.List externalResources_ = - java.util.Collections.emptyList(); - private void ensureExternalResourcesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - externalResources_ = new java.util.ArrayList(externalResources_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder> externalResourcesBuilder_; - - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public java.util.List getExternalResourcesList() { - if (externalResourcesBuilder_ == null) { - return java.util.Collections.unmodifiableList(externalResources_); - } else { - return externalResourcesBuilder_.getMessageList(); - } - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public int getExternalResourcesCount() { - if (externalResourcesBuilder_ == null) { - return externalResources_.size(); - } else { - return externalResourcesBuilder_.getCount(); - } - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfo getExternalResources(int index) { - if (externalResourcesBuilder_ == null) { - return externalResources_.get(index); - } else { - return externalResourcesBuilder_.getMessage(index); - } - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder setExternalResources( - int index, flyteidl.event.Event.ExternalResourceInfo value) { - if (externalResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalResourcesIsMutable(); - externalResources_.set(index, value); - onChanged(); - } else { - externalResourcesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder setExternalResources( - int index, flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { - if (externalResourcesBuilder_ == null) { - ensureExternalResourcesIsMutable(); - externalResources_.set(index, builderForValue.build()); - onChanged(); - } else { - externalResourcesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder addExternalResources(flyteidl.event.Event.ExternalResourceInfo value) { - if (externalResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalResourcesIsMutable(); - externalResources_.add(value); - onChanged(); - } else { - externalResourcesBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder addExternalResources( - int index, flyteidl.event.Event.ExternalResourceInfo value) { - if (externalResourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalResourcesIsMutable(); - externalResources_.add(index, value); - onChanged(); - } else { - externalResourcesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder addExternalResources( - flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { - if (externalResourcesBuilder_ == null) { - ensureExternalResourcesIsMutable(); - externalResources_.add(builderForValue.build()); - onChanged(); - } else { - externalResourcesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder addExternalResources( - int index, flyteidl.event.Event.ExternalResourceInfo.Builder builderForValue) { - if (externalResourcesBuilder_ == null) { - ensureExternalResourcesIsMutable(); - externalResources_.add(index, builderForValue.build()); - onChanged(); - } else { - externalResourcesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder addAllExternalResources( - java.lang.Iterable values) { - if (externalResourcesBuilder_ == null) { - ensureExternalResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, externalResources_); - onChanged(); - } else { - externalResourcesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder clearExternalResources() { - if (externalResourcesBuilder_ == null) { - externalResources_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - externalResourcesBuilder_.clear(); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public Builder removeExternalResources(int index) { - if (externalResourcesBuilder_ == null) { - ensureExternalResourcesIsMutable(); - externalResources_.remove(index); - onChanged(); - } else { - externalResourcesBuilder_.remove(index); - } - return this; - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfo.Builder getExternalResourcesBuilder( - int index) { - return getExternalResourcesFieldBuilder().getBuilder(index); - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfoOrBuilder getExternalResourcesOrBuilder( - int index) { - if (externalResourcesBuilder_ == null) { - return externalResources_.get(index); } else { - return externalResourcesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public java.util.List - getExternalResourcesOrBuilderList() { - if (externalResourcesBuilder_ != null) { - return externalResourcesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(externalResources_); - } - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfo.Builder addExternalResourcesBuilder() { - return getExternalResourcesFieldBuilder().addBuilder( - flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()); - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public flyteidl.event.Event.ExternalResourceInfo.Builder addExternalResourcesBuilder( - int index) { - return getExternalResourcesFieldBuilder().addBuilder( - index, flyteidl.event.Event.ExternalResourceInfo.getDefaultInstance()); - } - /** - *
-       * Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution.
-       * 
- * - * repeated .flyteidl.event.ExternalResourceInfo external_resources = 2; - */ - public java.util.List - getExternalResourcesBuilderList() { - return getExternalResourcesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder> - getExternalResourcesFieldBuilder() { - if (externalResourcesBuilder_ == null) { - externalResourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ExternalResourceInfo, flyteidl.event.Event.ExternalResourceInfo.Builder, flyteidl.event.Event.ExternalResourceInfoOrBuilder>( - externalResources_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - externalResources_ = null; - } - return externalResourcesBuilder_; - } - - private java.util.List resourcePoolInfo_ = - java.util.Collections.emptyList(); - private void ensureResourcePoolInfoIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - resourcePoolInfo_ = new java.util.ArrayList(resourcePoolInfo_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder> resourcePoolInfoBuilder_; - - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public java.util.List getResourcePoolInfoList() { - if (resourcePoolInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(resourcePoolInfo_); - } else { - return resourcePoolInfoBuilder_.getMessageList(); - } - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public int getResourcePoolInfoCount() { - if (resourcePoolInfoBuilder_ == null) { - return resourcePoolInfo_.size(); - } else { - return resourcePoolInfoBuilder_.getCount(); - } - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfo getResourcePoolInfo(int index) { - if (resourcePoolInfoBuilder_ == null) { - return resourcePoolInfo_.get(index); - } else { - return resourcePoolInfoBuilder_.getMessage(index); - } - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder setResourcePoolInfo( - int index, flyteidl.event.Event.ResourcePoolInfo value) { - if (resourcePoolInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.set(index, value); - onChanged(); - } else { - resourcePoolInfoBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder setResourcePoolInfo( - int index, flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { - if (resourcePoolInfoBuilder_ == null) { - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - resourcePoolInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder addResourcePoolInfo(flyteidl.event.Event.ResourcePoolInfo value) { - if (resourcePoolInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.add(value); - onChanged(); - } else { - resourcePoolInfoBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder addResourcePoolInfo( - int index, flyteidl.event.Event.ResourcePoolInfo value) { - if (resourcePoolInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.add(index, value); - onChanged(); - } else { - resourcePoolInfoBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder addResourcePoolInfo( - flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { - if (resourcePoolInfoBuilder_ == null) { - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.add(builderForValue.build()); - onChanged(); - } else { - resourcePoolInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder addResourcePoolInfo( - int index, flyteidl.event.Event.ResourcePoolInfo.Builder builderForValue) { - if (resourcePoolInfoBuilder_ == null) { - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - resourcePoolInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder addAllResourcePoolInfo( - java.lang.Iterable values) { - if (resourcePoolInfoBuilder_ == null) { - ensureResourcePoolInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourcePoolInfo_); - onChanged(); - } else { - resourcePoolInfoBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder clearResourcePoolInfo() { - if (resourcePoolInfoBuilder_ == null) { - resourcePoolInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - resourcePoolInfoBuilder_.clear(); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public Builder removeResourcePoolInfo(int index) { - if (resourcePoolInfoBuilder_ == null) { - ensureResourcePoolInfoIsMutable(); - resourcePoolInfo_.remove(index); - onChanged(); - } else { - resourcePoolInfoBuilder_.remove(index); - } - return this; - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfo.Builder getResourcePoolInfoBuilder( - int index) { - return getResourcePoolInfoFieldBuilder().getBuilder(index); - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfoOrBuilder getResourcePoolInfoOrBuilder( - int index) { - if (resourcePoolInfoBuilder_ == null) { - return resourcePoolInfo_.get(index); } else { - return resourcePoolInfoBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public java.util.List - getResourcePoolInfoOrBuilderList() { - if (resourcePoolInfoBuilder_ != null) { - return resourcePoolInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(resourcePoolInfo_); - } - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfo.Builder addResourcePoolInfoBuilder() { - return getResourcePoolInfoFieldBuilder().addBuilder( - flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()); - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public flyteidl.event.Event.ResourcePoolInfo.Builder addResourcePoolInfoBuilder( - int index) { - return getResourcePoolInfoFieldBuilder().addBuilder( - index, flyteidl.event.Event.ResourcePoolInfo.getDefaultInstance()); - } - /** - *
-       * Includes additional data on concurrent resource management used during execution..
-       * This is a repeated field because a plugin can request multiple resource allocations during execution.
-       * 
- * - * repeated .flyteidl.event.ResourcePoolInfo resource_pool_info = 3; - */ - public java.util.List - getResourcePoolInfoBuilderList() { - return getResourcePoolInfoFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder> - getResourcePoolInfoFieldBuilder() { - if (resourcePoolInfoBuilder_ == null) { - resourcePoolInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.event.Event.ResourcePoolInfo, flyteidl.event.Event.ResourcePoolInfo.Builder, flyteidl.event.Event.ResourcePoolInfoOrBuilder>( - resourcePoolInfo_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - resourcePoolInfo_ = null; - } - return resourcePoolInfoBuilder_; - } - - private java.lang.Object pluginIdentifier_ = ""; - /** - *
-       * The identifier of the plugin used to execute this task.
-       * 
- * - * string plugin_identifier = 4; - */ - public java.lang.String getPluginIdentifier() { - java.lang.Object ref = pluginIdentifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pluginIdentifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The identifier of the plugin used to execute this task.
-       * 
- * - * string plugin_identifier = 4; - */ - public com.google.protobuf.ByteString - getPluginIdentifierBytes() { - java.lang.Object ref = pluginIdentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pluginIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The identifier of the plugin used to execute this task.
-       * 
- * - * string plugin_identifier = 4; - */ - public Builder setPluginIdentifier( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pluginIdentifier_ = value; - onChanged(); - return this; - } - /** - *
-       * The identifier of the plugin used to execute this task.
-       * 
- * - * string plugin_identifier = 4; - */ - public Builder clearPluginIdentifier() { - - pluginIdentifier_ = getDefaultInstance().getPluginIdentifier(); - onChanged(); - return this; - } - /** - *
-       * The identifier of the plugin used to execute this task.
-       * 
- * - * string plugin_identifier = 4; - */ - public Builder setPluginIdentifierBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pluginIdentifier_ = value; - onChanged(); - return this; - } - - private int instanceClass_ = 0; - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public int getInstanceClassValue() { - return instanceClass_; - } - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public Builder setInstanceClassValue(int value) { - instanceClass_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public flyteidl.event.Event.TaskExecutionMetadata.InstanceClass getInstanceClass() { - @SuppressWarnings("deprecation") - flyteidl.event.Event.TaskExecutionMetadata.InstanceClass result = flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.valueOf(instanceClass_); - return result == null ? flyteidl.event.Event.TaskExecutionMetadata.InstanceClass.UNRECOGNIZED : result; - } - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public Builder setInstanceClass(flyteidl.event.Event.TaskExecutionMetadata.InstanceClass value) { - if (value == null) { - throw new NullPointerException(); - } - - instanceClass_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.event.TaskExecutionMetadata.InstanceClass instance_class = 16; - */ - public Builder clearInstanceClass() { - - instanceClass_ = 0; - onChanged(); - return this; - } - @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.event.TaskExecutionMetadata) - } - - // @@protoc_insertion_point(class_scope:flyteidl.event.TaskExecutionMetadata) - private static final flyteidl.event.Event.TaskExecutionMetadata DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.event.Event.TaskExecutionMetadata(); - } - - public static flyteidl.event.Event.TaskExecutionMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskExecutionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskExecutionMetadata(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.event.Event.TaskExecutionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_NodeExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_TaskNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_EventReason_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_EventReason_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_TaskExecutionEvent_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ExternalResourceInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_ResourcePoolInfo_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_event_TaskExecutionMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/event/event.proto\022\016flyteidl.e" + - "vent\032\034flyteidl/core/literals.proto\032\034flyt" + - "eidl/core/compiler.proto\032\035flyteidl/core/" + - "execution.proto\032\036flyteidl/core/identifie" + - "r.proto\032\033flyteidl/core/catalog.proto\032\037go" + - "ogle/protobuf/timestamp.proto\032\034google/pr" + - "otobuf/struct.proto\"\340\002\n\026WorkflowExecutio" + - "nEvent\022@\n\014execution_id\030\001 \001(\0132*.flyteidl." + - "core.WorkflowExecutionIdentifier\022\023\n\013prod" + - "ucer_id\030\002 \001(\t\0225\n\005phase\030\003 \001(\0162&.flyteidl." + - "core.WorkflowExecution.Phase\022/\n\013occurred" + - "_at\030\004 \001(\0132\032.google.protobuf.Timestamp\022\024\n" + - "\noutput_uri\030\005 \001(\tH\000\022.\n\005error\030\006 \001(\0132\035.fly" + - "teidl.core.ExecutionErrorH\000\0220\n\013output_da" + - "ta\030\007 \001(\0132\031.flyteidl.core.LiteralMapH\000B\017\n" + - "\routput_result\"\241\007\n\022NodeExecutionEvent\0222\n" + - "\002id\030\001 \001(\0132&.flyteidl.core.NodeExecutionI" + - "dentifier\022\023\n\013producer_id\030\002 \001(\t\0221\n\005phase\030" + - "\003 \001(\0162\".flyteidl.core.NodeExecution.Phas" + - "e\022/\n\013occurred_at\030\004 \001(\0132\032.google.protobuf" + - ".Timestamp\022\023\n\tinput_uri\030\005 \001(\tH\000\022/\n\ninput" + - "_data\030\024 \001(\0132\031.flyteidl.core.LiteralMapH\000" + - "\022\024\n\noutput_uri\030\006 \001(\tH\001\022.\n\005error\030\007 \001(\0132\035." + - "flyteidl.core.ExecutionErrorH\001\0220\n\013output" + - "_data\030\017 \001(\0132\031.flyteidl.core.LiteralMapH\001" + - "\022F\n\026workflow_node_metadata\030\010 \001(\0132$.flyte" + - "idl.event.WorkflowNodeMetadataH\002\022>\n\022task" + - "_node_metadata\030\016 \001(\0132 .flyteidl.event.Ta" + - "skNodeMetadataH\002\022I\n\024parent_task_metadata" + - "\030\t \001(\0132+.flyteidl.event.ParentTaskExecut" + - "ionMetadata\022I\n\024parent_node_metadata\030\n \001(" + - "\0132+.flyteidl.event.ParentNodeExecutionMe" + - "tadata\022\023\n\013retry_group\030\013 \001(\t\022\024\n\014spec_node" + - "_id\030\014 \001(\t\022\021\n\tnode_name\030\r \001(\t\022\025\n\revent_ve" + - "rsion\030\020 \001(\005\022\021\n\tis_parent\030\021 \001(\010\022\022\n\nis_dyn" + - "amic\030\022 \001(\010\022\020\n\010deck_uri\030\023 \001(\t\022/\n\013reported" + - "_at\030\025 \001(\0132\032.google.protobuf.Timestamp\022\020\n" + - "\010is_array\030\026 \001(\010B\r\n\013input_valueB\017\n\routput" + - "_resultB\021\n\017target_metadata\"X\n\024WorkflowNo" + - "deMetadata\022@\n\014execution_id\030\001 \001(\0132*.flyte" + - "idl.core.WorkflowExecutionIdentifier\"\245\002\n" + - "\020TaskNodeMetadata\0227\n\014cache_status\030\001 \001(\0162" + - "!.flyteidl.core.CatalogCacheStatus\0223\n\013ca" + - "talog_key\030\002 \001(\0132\036.flyteidl.core.CatalogM" + - "etadata\022D\n\022reservation_status\030\003 \001(\0162(.fl" + - "yteidl.core.CatalogReservation.Status\022\026\n" + - "\016checkpoint_uri\030\004 \001(\t\022E\n\020dynamic_workflo" + - "w\030\020 \001(\0132+.flyteidl.event.DynamicWorkflow" + - "NodeMetadata\"\245\001\n\033DynamicWorkflowNodeMeta" + - "data\022%\n\002id\030\001 \001(\0132\031.flyteidl.core.Identif" + - "ier\022A\n\021compiled_workflow\030\002 \001(\0132&.flyteid" + - "l.core.CompiledWorkflowClosure\022\034\n\024dynami" + - "c_job_spec_uri\030\003 \001(\t\"Q\n\033ParentTaskExecut" + - "ionMetadata\0222\n\002id\030\001 \001(\0132&.flyteidl.core." + - "TaskExecutionIdentifier\".\n\033ParentNodeExe" + - "cutionMetadata\022\017\n\007node_id\030\001 \001(\t\"N\n\013Event" + - "Reason\022\016\n\006reason\030\001 \001(\t\022/\n\013occurred_at\030\002 " + - "\001(\0132\032.google.protobuf.Timestamp\"\271\006\n\022Task" + - "ExecutionEvent\022*\n\007task_id\030\001 \001(\0132\031.flytei" + - "dl.core.Identifier\022H\n\030parent_node_execut" + - "ion_id\030\002 \001(\0132&.flyteidl.core.NodeExecuti" + - "onIdentifier\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005p" + - "hase\030\004 \001(\0162\".flyteidl.core.TaskExecution" + - ".Phase\022\023\n\013producer_id\030\005 \001(\t\022$\n\004logs\030\006 \003(" + - "\0132\026.flyteidl.core.TaskLog\022/\n\013occurred_at" + - "\030\007 \001(\0132\032.google.protobuf.Timestamp\022\023\n\tin" + - "put_uri\030\010 \001(\tH\000\022/\n\ninput_data\030\023 \001(\0132\031.fl" + - "yteidl.core.LiteralMapH\000\022\024\n\noutput_uri\030\t" + - " \001(\tH\001\022.\n\005error\030\n \001(\0132\035.flyteidl.core.Ex" + - "ecutionErrorH\001\0220\n\013output_data\030\021 \001(\0132\031.fl" + - "yteidl.core.LiteralMapH\001\022,\n\013custom_info\030" + - "\013 \001(\0132\027.google.protobuf.Struct\022\025\n\rphase_" + - "version\030\014 \001(\r\022\022\n\006reason\030\r \001(\tB\002\030\001\022,\n\007rea" + - "sons\030\025 \003(\0132\033.flyteidl.event.EventReason\022" + - "\021\n\ttask_type\030\016 \001(\t\0227\n\010metadata\030\020 \001(\0132%.f" + - "lyteidl.event.TaskExecutionMetadata\022\025\n\re" + - "vent_version\030\022 \001(\005\022/\n\013reported_at\030\024 \001(\0132" + - "\032.google.protobuf.TimestampB\r\n\013input_val" + - "ueB\017\n\routput_result\"\343\001\n\024ExternalResource" + - "Info\022\023\n\013external_id\030\001 \001(\t\022\r\n\005index\030\002 \001(\r" + - "\022\025\n\rretry_attempt\030\003 \001(\r\0221\n\005phase\030\004 \001(\0162\"" + - ".flyteidl.core.TaskExecution.Phase\0227\n\014ca" + - "che_status\030\005 \001(\0162!.flyteidl.core.Catalog" + - "CacheStatus\022$\n\004logs\030\006 \003(\0132\026.flyteidl.cor" + - "e.TaskLog\"?\n\020ResourcePoolInfo\022\030\n\020allocat" + - "ion_token\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\"\310\002\n\025T" + - "askExecutionMetadata\022\026\n\016generated_name\030\001" + - " \001(\t\022@\n\022external_resources\030\002 \003(\0132$.flyte" + - "idl.event.ExternalResourceInfo\022<\n\022resour" + - "ce_pool_info\030\003 \003(\0132 .flyteidl.event.Reso" + - "urcePoolInfo\022\031\n\021plugin_identifier\030\004 \001(\t\022" + - "K\n\016instance_class\030\020 \001(\01623.flyteidl.event" + - ".TaskExecutionMetadata.InstanceClass\"/\n\r" + - "InstanceClass\022\013\n\007DEFAULT\020\000\022\021\n\rINTERRUPTI" + - "BLE\020\001B=Z;github.com/flyteorg/flyte/flyte" + - "idl/gen/pb-go/flyteidl/eventb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Compiler.getDescriptor(), - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Catalog.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_event_WorkflowExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowExecutionEvent_descriptor, - new java.lang.String[] { "ExecutionId", "ProducerId", "Phase", "OccurredAt", "OutputUri", "Error", "OutputData", "OutputResult", }); - internal_static_flyteidl_event_NodeExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_event_NodeExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_NodeExecutionEvent_descriptor, - new java.lang.String[] { "Id", "ProducerId", "Phase", "OccurredAt", "InputUri", "InputData", "OutputUri", "Error", "OutputData", "WorkflowNodeMetadata", "TaskNodeMetadata", "ParentTaskMetadata", "ParentNodeMetadata", "RetryGroup", "SpecNodeId", "NodeName", "EventVersion", "IsParent", "IsDynamic", "DeckUri", "ReportedAt", "IsArray", "InputValue", "OutputResult", "TargetMetadata", }); - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_event_WorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_WorkflowNodeMetadata_descriptor, - new java.lang.String[] { "ExecutionId", }); - internal_static_flyteidl_event_TaskNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_event_TaskNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_TaskNodeMetadata_descriptor, - new java.lang.String[] { "CacheStatus", "CatalogKey", "ReservationStatus", "CheckpointUri", "DynamicWorkflow", }); - internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_DynamicWorkflowNodeMetadata_descriptor, - new java.lang.String[] { "Id", "CompiledWorkflow", "DynamicJobSpecUri", }); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_event_ParentTaskExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ParentTaskExecutionMetadata_descriptor, - new java.lang.String[] { "Id", }); - internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_event_ParentNodeExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ParentNodeExecutionMetadata_descriptor, - new java.lang.String[] { "NodeId", }); - internal_static_flyteidl_event_EventReason_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_event_EventReason_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_EventReason_descriptor, - new java.lang.String[] { "Reason", "OccurredAt", }); - internal_static_flyteidl_event_TaskExecutionEvent_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_event_TaskExecutionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_TaskExecutionEvent_descriptor, - new java.lang.String[] { "TaskId", "ParentNodeExecutionId", "RetryAttempt", "Phase", "ProducerId", "Logs", "OccurredAt", "InputUri", "InputData", "OutputUri", "Error", "OutputData", "CustomInfo", "PhaseVersion", "Reason", "Reasons", "TaskType", "Metadata", "EventVersion", "ReportedAt", "InputValue", "OutputResult", }); - internal_static_flyteidl_event_ExternalResourceInfo_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_flyteidl_event_ExternalResourceInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ExternalResourceInfo_descriptor, - new java.lang.String[] { "ExternalId", "Index", "RetryAttempt", "Phase", "CacheStatus", "Logs", }); - internal_static_flyteidl_event_ResourcePoolInfo_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_flyteidl_event_ResourcePoolInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_ResourcePoolInfo_descriptor, - new java.lang.String[] { "AllocationToken", "Namespace", }); - internal_static_flyteidl_event_TaskExecutionMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_flyteidl_event_TaskExecutionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_event_TaskExecutionMetadata_descriptor, - new java.lang.String[] { "GeneratedName", "ExternalResources", "ResourcePoolInfo", "PluginIdentifier", "InstanceClass", }); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Compiler.getDescriptor(); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Catalog.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java deleted file mode 100644 index 32e611ea9d..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/ArrayJobOuterClass.java +++ /dev/null @@ -1,948 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/array_job.proto - -package flyteidl.plugins; - -public final class ArrayJobOuterClass { - private ArrayJobOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ArrayJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ArrayJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - long getParallelism(); - - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
-     * 
- * - * int64 size = 2; - */ - long getSize(); - - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size (if specified).
-     * 
- * - * int64 min_successes = 3; - */ - long getMinSuccesses(); - - /** - *
-     * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
-     * job can be marked successful.
-     * 
- * - * float min_success_ratio = 4; - */ - float getMinSuccessRatio(); - - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob.SuccessCriteriaCase getSuccessCriteriaCase(); - } - /** - *
-   * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-   * will be executed concurrently.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class ArrayJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.ArrayJob) - ArrayJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use ArrayJob.newBuilder() to construct. - private ArrayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArrayJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ArrayJob( - 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 8: { - - parallelism_ = input.readInt64(); - break; - } - case 16: { - - size_ = input.readInt64(); - break; - } - case 24: { - successCriteriaCase_ = 3; - successCriteria_ = input.readInt64(); - break; - } - case 37: { - successCriteriaCase_ = 4; - successCriteria_ = input.readFloat(); - 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.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - private int successCriteriaCase_ = 0; - private java.lang.Object successCriteria_; - public enum SuccessCriteriaCase - implements com.google.protobuf.Internal.EnumLite { - MIN_SUCCESSES(3), - MIN_SUCCESS_RATIO(4), - SUCCESSCRITERIA_NOT_SET(0); - private final int value; - private SuccessCriteriaCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SuccessCriteriaCase valueOf(int value) { - return forNumber(value); - } - - public static SuccessCriteriaCase forNumber(int value) { - switch (value) { - case 3: return MIN_SUCCESSES; - case 4: return MIN_SUCCESS_RATIO; - case 0: return SUCCESSCRITERIA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SuccessCriteriaCase - getSuccessCriteriaCase() { - return SuccessCriteriaCase.forNumber( - successCriteriaCase_); - } - - public static final int PARALLELISM_FIELD_NUMBER = 1; - private long parallelism_; - /** - *
-     * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
-     * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-     * running instances might be more. This has to be a positive number if assigned. Default value is size.
-     * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - - public static final int SIZE_FIELD_NUMBER = 2; - private long size_; - /** - *
-     * Defines the number of instances to launch at most. This number should match the size of the input if the job
-     * requires processing of all input data. This has to be a positive number.
-     * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
-     * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - - public static final int MIN_SUCCESSES_FIELD_NUMBER = 3; - /** - *
-     * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-     * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-     * assigned. Default value is size (if specified).
-     * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - if (successCriteriaCase_ == 3) { - return (java.lang.Long) successCriteria_; - } - return 0L; - } - - public static final int MIN_SUCCESS_RATIO_FIELD_NUMBER = 4; - /** - *
-     * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
-     * job can be marked successful.
-     * 
- * - * float min_success_ratio = 4; - */ - public float getMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - return (java.lang.Float) successCriteria_; - } - return 0F; - } - - 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 (parallelism_ != 0L) { - output.writeInt64(1, parallelism_); - } - if (size_ != 0L) { - output.writeInt64(2, size_); - } - if (successCriteriaCase_ == 3) { - output.writeInt64( - 3, (long)((java.lang.Long) successCriteria_)); - } - if (successCriteriaCase_ == 4) { - output.writeFloat( - 4, (float)((java.lang.Float) successCriteria_)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (parallelism_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(1, parallelism_); - } - if (size_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, size_); - } - if (successCriteriaCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size( - 3, (long)((java.lang.Long) successCriteria_)); - } - if (successCriteriaCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize( - 4, (float)((java.lang.Float) successCriteria_)); - } - 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.plugins.ArrayJobOuterClass.ArrayJob)) { - return super.equals(obj); - } - flyteidl.plugins.ArrayJobOuterClass.ArrayJob other = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) obj; - - if (getParallelism() - != other.getParallelism()) return false; - if (getSize() - != other.getSize()) return false; - if (!getSuccessCriteriaCase().equals(other.getSuccessCriteriaCase())) return false; - switch (successCriteriaCase_) { - case 3: - if (getMinSuccesses() - != other.getMinSuccesses()) return false; - break; - case 4: - if (java.lang.Float.floatToIntBits(getMinSuccessRatio()) - != java.lang.Float.floatToIntBits( - other.getMinSuccessRatio())) 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(); - hash = (37 * hash) + PARALLELISM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getParallelism()); - hash = (37 * hash) + SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getSize()); - switch (successCriteriaCase_) { - case 3: - hash = (37 * hash) + MIN_SUCCESSES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinSuccesses()); - break; - case 4: - hash = (37 * hash) + MIN_SUCCESS_RATIO_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMinSuccessRatio()); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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.plugins.ArrayJobOuterClass.ArrayJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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.plugins.ArrayJobOuterClass.ArrayJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob 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.plugins.ArrayJobOuterClass.ArrayJob 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; - } - /** - *
-     * Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component
-     * will be executed concurrently.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.ArrayJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ArrayJob) - flyteidl.plugins.ArrayJobOuterClass.ArrayJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.ArrayJobOuterClass.ArrayJob.class, flyteidl.plugins.ArrayJobOuterClass.ArrayJob.Builder.class); - } - - // Construct using flyteidl.plugins.ArrayJobOuterClass.ArrayJob.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(); - parallelism_ = 0L; - - size_ = 0L; - - successCriteriaCase_ = 0; - successCriteria_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.ArrayJobOuterClass.internal_static_flyteidl_plugins_ArrayJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob build() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.ArrayJobOuterClass.ArrayJob buildPartial() { - flyteidl.plugins.ArrayJobOuterClass.ArrayJob result = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(this); - result.parallelism_ = parallelism_; - result.size_ = size_; - if (successCriteriaCase_ == 3) { - result.successCriteria_ = successCriteria_; - } - if (successCriteriaCase_ == 4) { - result.successCriteria_ = successCriteria_; - } - result.successCriteriaCase_ = successCriteriaCase_; - 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.plugins.ArrayJobOuterClass.ArrayJob) { - return mergeFrom((flyteidl.plugins.ArrayJobOuterClass.ArrayJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.ArrayJobOuterClass.ArrayJob other) { - if (other == flyteidl.plugins.ArrayJobOuterClass.ArrayJob.getDefaultInstance()) return this; - if (other.getParallelism() != 0L) { - setParallelism(other.getParallelism()); - } - if (other.getSize() != 0L) { - setSize(other.getSize()); - } - switch (other.getSuccessCriteriaCase()) { - case MIN_SUCCESSES: { - setMinSuccesses(other.getMinSuccesses()); - break; - } - case MIN_SUCCESS_RATIO: { - setMinSuccessRatio(other.getMinSuccessRatio()); - break; - } - case SUCCESSCRITERIA_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.plugins.ArrayJobOuterClass.ArrayJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.ArrayJobOuterClass.ArrayJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int successCriteriaCase_ = 0; - private java.lang.Object successCriteria_; - public SuccessCriteriaCase - getSuccessCriteriaCase() { - return SuccessCriteriaCase.forNumber( - successCriteriaCase_); - } - - public Builder clearSuccessCriteria() { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - return this; - } - - - private long parallelism_ ; - /** - *
-       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public long getParallelism() { - return parallelism_; - } - /** - *
-       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder setParallelism(long value) { - - parallelism_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an
-       * optimistic restriction and that, due to network partitioning or other failures, the actual number of currently
-       * running instances might be more. This has to be a positive number if assigned. Default value is size.
-       * 
- * - * int64 parallelism = 1; - */ - public Builder clearParallelism() { - - parallelism_ = 0L; - onChanged(); - return this; - } - - private long size_ ; - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
-       * 
- * - * int64 size = 2; - */ - public long getSize() { - return size_; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
-       * 
- * - * int64 size = 2; - */ - public Builder setSize(long value) { - - size_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the number of instances to launch at most. This number should match the size of the input if the job
-       * requires processing of all input data. This has to be a positive number.
-       * In the case this is not defined, the back-end will determine the size at run-time by reading the inputs.
-       * 
- * - * int64 size = 2; - */ - public Builder clearSize() { - - size_ = 0L; - onChanged(); - return this; - } - - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size (if specified).
-       * 
- * - * int64 min_successes = 3; - */ - public long getMinSuccesses() { - if (successCriteriaCase_ == 3) { - return (java.lang.Long) successCriteria_; - } - return 0L; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size (if specified).
-       * 
- * - * int64 min_successes = 3; - */ - public Builder setMinSuccesses(long value) { - successCriteriaCase_ = 3; - successCriteria_ = value; - onChanged(); - return this; - } - /** - *
-       * An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met,
-       * the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if
-       * assigned. Default value is size (if specified).
-       * 
- * - * int64 min_successes = 3; - */ - public Builder clearMinSuccesses() { - if (successCriteriaCase_ == 3) { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
-       * job can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public float getMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - return (java.lang.Float) successCriteria_; - } - return 0F; - } - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
-       * job can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public Builder setMinSuccessRatio(float value) { - successCriteriaCase_ = 4; - successCriteria_ = value; - onChanged(); - return this; - } - /** - *
-       * If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array
-       * job can be marked successful.
-       * 
- * - * float min_success_ratio = 4; - */ - public Builder clearMinSuccessRatio() { - if (successCriteriaCase_ == 4) { - successCriteriaCase_ = 0; - successCriteria_ = null; - onChanged(); - } - return this; - } - @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.plugins.ArrayJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ArrayJob) - private static final flyteidl.plugins.ArrayJobOuterClass.ArrayJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.ArrayJobOuterClass.ArrayJob(); - } - - public static flyteidl.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArrayJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ArrayJob(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.plugins.ArrayJobOuterClass.ArrayJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_ArrayJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n flyteidl/plugins/array_job.proto\022\020flyt" + - "eidl.plugins\"w\n\010ArrayJob\022\023\n\013parallelism\030" + - "\001 \001(\003\022\014\n\004size\030\002 \001(\003\022\027\n\rmin_successes\030\003 \001" + - "(\003H\000\022\033\n\021min_success_ratio\030\004 \001(\002H\000B\022\n\020suc" + - "cess_criteriaB?Z=github.com/flyteorg/fly" + - "te/flyteidl/gen/pb-go/flyteidl/pluginsb\006" + - "proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_ArrayJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_ArrayJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_ArrayJob_descriptor, - new java.lang.String[] { "Parallelism", "Size", "MinSuccesses", "MinSuccessRatio", "SuccessCriteria", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java b/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java deleted file mode 100644 index 5e8f63a65e..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Dask.java +++ /dev/null @@ -1,2845 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/dask.proto - -package flyteidl.plugins; - -public final class Dask { - private Dask() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DaskJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - boolean hasScheduler(); - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - flyteidl.plugins.Dask.DaskScheduler getScheduler(); - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder(); - - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - boolean hasWorkers(); - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - flyteidl.plugins.Dask.DaskWorkerGroup getWorkers(); - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder(); - } - /** - *
-   * Custom Proto for Dask Plugin.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DaskJob} - */ - public static final class DaskJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskJob) - DaskJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use DaskJob.newBuilder() to construct. - private DaskJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DaskJob() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DaskJob( - 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.plugins.Dask.DaskScheduler.Builder subBuilder = null; - if (scheduler_ != null) { - subBuilder = scheduler_.toBuilder(); - } - scheduler_ = input.readMessage(flyteidl.plugins.Dask.DaskScheduler.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(scheduler_); - scheduler_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.Dask.DaskWorkerGroup.Builder subBuilder = null; - if (workers_ != null) { - subBuilder = workers_.toBuilder(); - } - workers_ = input.readMessage(flyteidl.plugins.Dask.DaskWorkerGroup.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workers_); - workers_ = 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.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskJob.class, flyteidl.plugins.Dask.DaskJob.Builder.class); - } - - public static final int SCHEDULER_FIELD_NUMBER = 1; - private flyteidl.plugins.Dask.DaskScheduler scheduler_; - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public boolean hasScheduler() { - return scheduler_ != null; - } - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public flyteidl.plugins.Dask.DaskScheduler getScheduler() { - return scheduler_ == null ? flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; - } - /** - *
-     * Spec for the scheduler pod.
-     * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder() { - return getScheduler(); - } - - public static final int WORKERS_FIELD_NUMBER = 2; - private flyteidl.plugins.Dask.DaskWorkerGroup workers_; - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public boolean hasWorkers() { - return workers_ != null; - } - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public flyteidl.plugins.Dask.DaskWorkerGroup getWorkers() { - return workers_ == null ? flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; - } - /** - *
-     * Spec of the default worker group.
-     * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder() { - return getWorkers(); - } - - 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 (scheduler_ != null) { - output.writeMessage(1, getScheduler()); - } - if (workers_ != null) { - output.writeMessage(2, getWorkers()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scheduler_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getScheduler()); - } - if (workers_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getWorkers()); - } - 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.plugins.Dask.DaskJob)) { - return super.equals(obj); - } - flyteidl.plugins.Dask.DaskJob other = (flyteidl.plugins.Dask.DaskJob) obj; - - if (hasScheduler() != other.hasScheduler()) return false; - if (hasScheduler()) { - if (!getScheduler() - .equals(other.getScheduler())) return false; - } - if (hasWorkers() != other.hasWorkers()) return false; - if (hasWorkers()) { - if (!getWorkers() - .equals(other.getWorkers())) 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 (hasScheduler()) { - hash = (37 * hash) + SCHEDULER_FIELD_NUMBER; - hash = (53 * hash) + getScheduler().hashCode(); - } - if (hasWorkers()) { - hash = (37 * hash) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Dask.DaskJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskJob 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.plugins.Dask.DaskJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskJob 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.plugins.Dask.DaskJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskJob 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.plugins.Dask.DaskJob 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; - } - /** - *
-     * Custom Proto for Dask Plugin.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DaskJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskJob) - flyteidl.plugins.Dask.DaskJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskJob.class, flyteidl.plugins.Dask.DaskJob.Builder.class); - } - - // Construct using flyteidl.plugins.Dask.DaskJob.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 (schedulerBuilder_ == null) { - scheduler_ = null; - } else { - scheduler_ = null; - schedulerBuilder_ = null; - } - if (workersBuilder_ == null) { - workers_ = null; - } else { - workers_ = null; - workersBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskJob getDefaultInstanceForType() { - return flyteidl.plugins.Dask.DaskJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskJob build() { - flyteidl.plugins.Dask.DaskJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskJob buildPartial() { - flyteidl.plugins.Dask.DaskJob result = new flyteidl.plugins.Dask.DaskJob(this); - if (schedulerBuilder_ == null) { - result.scheduler_ = scheduler_; - } else { - result.scheduler_ = schedulerBuilder_.build(); - } - if (workersBuilder_ == null) { - result.workers_ = workers_; - } else { - result.workers_ = workersBuilder_.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.plugins.Dask.DaskJob) { - return mergeFrom((flyteidl.plugins.Dask.DaskJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Dask.DaskJob other) { - if (other == flyteidl.plugins.Dask.DaskJob.getDefaultInstance()) return this; - if (other.hasScheduler()) { - mergeScheduler(other.getScheduler()); - } - if (other.hasWorkers()) { - mergeWorkers(other.getWorkers()); - } - 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.plugins.Dask.DaskJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Dask.DaskJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.Dask.DaskScheduler scheduler_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder> schedulerBuilder_; - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public boolean hasScheduler() { - return schedulerBuilder_ != null || scheduler_ != null; - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public flyteidl.plugins.Dask.DaskScheduler getScheduler() { - if (schedulerBuilder_ == null) { - return scheduler_ == null ? flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; - } else { - return schedulerBuilder_.getMessage(); - } - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public Builder setScheduler(flyteidl.plugins.Dask.DaskScheduler value) { - if (schedulerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheduler_ = value; - onChanged(); - } else { - schedulerBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public Builder setScheduler( - flyteidl.plugins.Dask.DaskScheduler.Builder builderForValue) { - if (schedulerBuilder_ == null) { - scheduler_ = builderForValue.build(); - onChanged(); - } else { - schedulerBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public Builder mergeScheduler(flyteidl.plugins.Dask.DaskScheduler value) { - if (schedulerBuilder_ == null) { - if (scheduler_ != null) { - scheduler_ = - flyteidl.plugins.Dask.DaskScheduler.newBuilder(scheduler_).mergeFrom(value).buildPartial(); - } else { - scheduler_ = value; - } - onChanged(); - } else { - schedulerBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public Builder clearScheduler() { - if (schedulerBuilder_ == null) { - scheduler_ = null; - onChanged(); - } else { - scheduler_ = null; - schedulerBuilder_ = null; - } - - return this; - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public flyteidl.plugins.Dask.DaskScheduler.Builder getSchedulerBuilder() { - - onChanged(); - return getSchedulerFieldBuilder().getBuilder(); - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - public flyteidl.plugins.Dask.DaskSchedulerOrBuilder getSchedulerOrBuilder() { - if (schedulerBuilder_ != null) { - return schedulerBuilder_.getMessageOrBuilder(); - } else { - return scheduler_ == null ? - flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance() : scheduler_; - } - } - /** - *
-       * Spec for the scheduler pod.
-       * 
- * - * .flyteidl.plugins.DaskScheduler scheduler = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder> - getSchedulerFieldBuilder() { - if (schedulerBuilder_ == null) { - schedulerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskScheduler, flyteidl.plugins.Dask.DaskScheduler.Builder, flyteidl.plugins.Dask.DaskSchedulerOrBuilder>( - getScheduler(), - getParentForChildren(), - isClean()); - scheduler_ = null; - } - return schedulerBuilder_; - } - - private flyteidl.plugins.Dask.DaskWorkerGroup workers_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder> workersBuilder_; - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public boolean hasWorkers() { - return workersBuilder_ != null || workers_ != null; - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public flyteidl.plugins.Dask.DaskWorkerGroup getWorkers() { - if (workersBuilder_ == null) { - return workers_ == null ? flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; - } else { - return workersBuilder_.getMessage(); - } - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public Builder setWorkers(flyteidl.plugins.Dask.DaskWorkerGroup value) { - if (workersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workers_ = value; - onChanged(); - } else { - workersBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public Builder setWorkers( - flyteidl.plugins.Dask.DaskWorkerGroup.Builder builderForValue) { - if (workersBuilder_ == null) { - workers_ = builderForValue.build(); - onChanged(); - } else { - workersBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public Builder mergeWorkers(flyteidl.plugins.Dask.DaskWorkerGroup value) { - if (workersBuilder_ == null) { - if (workers_ != null) { - workers_ = - flyteidl.plugins.Dask.DaskWorkerGroup.newBuilder(workers_).mergeFrom(value).buildPartial(); - } else { - workers_ = value; - } - onChanged(); - } else { - workersBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public Builder clearWorkers() { - if (workersBuilder_ == null) { - workers_ = null; - onChanged(); - } else { - workers_ = null; - workersBuilder_ = null; - } - - return this; - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public flyteidl.plugins.Dask.DaskWorkerGroup.Builder getWorkersBuilder() { - - onChanged(); - return getWorkersFieldBuilder().getBuilder(); - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - public flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder getWorkersOrBuilder() { - if (workersBuilder_ != null) { - return workersBuilder_.getMessageOrBuilder(); - } else { - return workers_ == null ? - flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance() : workers_; - } - } - /** - *
-       * Spec of the default worker group.
-       * 
- * - * .flyteidl.plugins.DaskWorkerGroup workers = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder> - getWorkersFieldBuilder() { - if (workersBuilder_ == null) { - workersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Dask.DaskWorkerGroup, flyteidl.plugins.Dask.DaskWorkerGroup.Builder, flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder>( - getWorkers(), - getParentForChildren(), - isClean()); - workers_ = null; - } - return workersBuilder_; - } - @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.plugins.DaskJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskJob) - private static final flyteidl.plugins.Dask.DaskJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskJob(); - } - - public static flyteidl.plugins.Dask.DaskJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DaskJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DaskJob(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.plugins.Dask.DaskJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DaskSchedulerOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskScheduler) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional image to use. If unset, will use the default image.
-     * 
- * - * string image = 1; - */ - java.lang.String getImage(); - /** - *
-     * Optional image to use. If unset, will use the default image.
-     * 
- * - * string image = 1; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - boolean hasResources(); - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - } - /** - *
-   * Specification for the scheduler pod.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DaskScheduler} - */ - public static final class DaskScheduler extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskScheduler) - DaskSchedulerOrBuilder { - private static final long serialVersionUID = 0L; - // Use DaskScheduler.newBuilder() to construct. - private DaskScheduler(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DaskScheduler() { - image_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DaskScheduler( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 18: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = 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.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskScheduler.class, flyteidl.plugins.Dask.DaskScheduler.Builder.class); - } - - public static final int IMAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object image_; - /** - *
-     * Optional image to use. If unset, will use the default image.
-     * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Optional image to use. If unset, will use the default image.
-     * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCES_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Resources assigned to the scheduler pod.
-     * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - 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 (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, image_); - } - if (resources_ != null) { - output.writeMessage(2, getResources()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, image_); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getResources()); - } - 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.plugins.Dask.DaskScheduler)) { - return super.equals(obj); - } - flyteidl.plugins.Dask.DaskScheduler other = (flyteidl.plugins.Dask.DaskScheduler) obj; - - if (!getImage() - .equals(other.getImage())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) 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(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Dask.DaskScheduler parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskScheduler parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskScheduler 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.plugins.Dask.DaskScheduler parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskScheduler 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.plugins.Dask.DaskScheduler parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskScheduler 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.plugins.Dask.DaskScheduler 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; - } - /** - *
-     * Specification for the scheduler pod.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DaskScheduler} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskScheduler) - flyteidl.plugins.Dask.DaskSchedulerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskScheduler.class, flyteidl.plugins.Dask.DaskScheduler.Builder.class); - } - - // Construct using flyteidl.plugins.Dask.DaskScheduler.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(); - image_ = ""; - - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskScheduler_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskScheduler getDefaultInstanceForType() { - return flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskScheduler build() { - flyteidl.plugins.Dask.DaskScheduler result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskScheduler buildPartial() { - flyteidl.plugins.Dask.DaskScheduler result = new flyteidl.plugins.Dask.DaskScheduler(this); - result.image_ = image_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.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.plugins.Dask.DaskScheduler) { - return mergeFrom((flyteidl.plugins.Dask.DaskScheduler)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Dask.DaskScheduler other) { - if (other == flyteidl.plugins.Dask.DaskScheduler.getDefaultInstance()) return this; - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - 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.plugins.Dask.DaskScheduler parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Dask.DaskScheduler) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-       * Optional image to use. If unset, will use the default image.
-       * 
- * - * string image = 1; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional image to use. If unset, will use the default image.
-       * 
- * - * string image = 1; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional image to use. If unset, will use the default image.
-       * 
- * - * string image = 1; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional image to use. If unset, will use the default image.
-       * 
- * - * string image = 1; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Optional image to use. If unset, will use the default image.
-       * 
- * - * string image = 1; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources assigned to the scheduler pod.
-       * 
- * - * .flyteidl.core.Resources resources = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - @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.plugins.DaskScheduler) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskScheduler) - private static final flyteidl.plugins.Dask.DaskScheduler DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskScheduler(); - } - - public static flyteidl.plugins.Dask.DaskScheduler getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DaskScheduler parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DaskScheduler(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.plugins.Dask.DaskScheduler getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DaskWorkerGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DaskWorkerGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of workers in the group.
-     * 
- * - * uint32 number_of_workers = 1; - */ - int getNumberOfWorkers(); - - /** - *
-     * Optional image to use for the pods of the worker group. If unset, will use the default image.
-     * 
- * - * string image = 2; - */ - java.lang.String getImage(); - /** - *
-     * Optional image to use for the pods of the worker group. If unset, will use the default image.
-     * 
- * - * string image = 2; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - boolean hasResources(); - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.plugins.DaskWorkerGroup} - */ - public static final class DaskWorkerGroup extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DaskWorkerGroup) - DaskWorkerGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use DaskWorkerGroup.newBuilder() to construct. - private DaskWorkerGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DaskWorkerGroup() { - image_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DaskWorkerGroup( - 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 8: { - - numberOfWorkers_ = input.readUInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = 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.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskWorkerGroup.class, flyteidl.plugins.Dask.DaskWorkerGroup.Builder.class); - } - - public static final int NUMBER_OF_WORKERS_FIELD_NUMBER = 1; - private int numberOfWorkers_; - /** - *
-     * Number of workers in the group.
-     * 
- * - * uint32 number_of_workers = 1; - */ - public int getNumberOfWorkers() { - return numberOfWorkers_; - } - - public static final int IMAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object image_; - /** - *
-     * Optional image to use for the pods of the worker group. If unset, will use the default image.
-     * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Optional image to use for the pods of the worker group. If unset, will use the default image.
-     * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCES_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Resources assigned to the all pods of the worker group.
-     * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-     * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-     * sure to set requests==limits.
-     * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - 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 (numberOfWorkers_ != 0) { - output.writeUInt32(1, numberOfWorkers_); - } - if (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); - } - if (resources_ != null) { - output.writeMessage(3, getResources()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numberOfWorkers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(1, numberOfWorkers_); - } - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResources()); - } - 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.plugins.Dask.DaskWorkerGroup)) { - return super.equals(obj); - } - flyteidl.plugins.Dask.DaskWorkerGroup other = (flyteidl.plugins.Dask.DaskWorkerGroup) obj; - - if (getNumberOfWorkers() - != other.getNumberOfWorkers()) return false; - if (!getImage() - .equals(other.getImage())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) 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(); - hash = (37 * hash) + NUMBER_OF_WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getNumberOfWorkers(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup 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.plugins.Dask.DaskWorkerGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup 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.plugins.Dask.DaskWorkerGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Dask.DaskWorkerGroup 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.plugins.Dask.DaskWorkerGroup 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; - } - /** - * Protobuf type {@code flyteidl.plugins.DaskWorkerGroup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DaskWorkerGroup) - flyteidl.plugins.Dask.DaskWorkerGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Dask.DaskWorkerGroup.class, flyteidl.plugins.Dask.DaskWorkerGroup.Builder.class); - } - - // Construct using flyteidl.plugins.Dask.DaskWorkerGroup.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(); - numberOfWorkers_ = 0; - - image_ = ""; - - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Dask.internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskWorkerGroup getDefaultInstanceForType() { - return flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskWorkerGroup build() { - flyteidl.plugins.Dask.DaskWorkerGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Dask.DaskWorkerGroup buildPartial() { - flyteidl.plugins.Dask.DaskWorkerGroup result = new flyteidl.plugins.Dask.DaskWorkerGroup(this); - result.numberOfWorkers_ = numberOfWorkers_; - result.image_ = image_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.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.plugins.Dask.DaskWorkerGroup) { - return mergeFrom((flyteidl.plugins.Dask.DaskWorkerGroup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Dask.DaskWorkerGroup other) { - if (other == flyteidl.plugins.Dask.DaskWorkerGroup.getDefaultInstance()) return this; - if (other.getNumberOfWorkers() != 0) { - setNumberOfWorkers(other.getNumberOfWorkers()); - } - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - 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.plugins.Dask.DaskWorkerGroup parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Dask.DaskWorkerGroup) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int numberOfWorkers_ ; - /** - *
-       * Number of workers in the group.
-       * 
- * - * uint32 number_of_workers = 1; - */ - public int getNumberOfWorkers() { - return numberOfWorkers_; - } - /** - *
-       * Number of workers in the group.
-       * 
- * - * uint32 number_of_workers = 1; - */ - public Builder setNumberOfWorkers(int value) { - - numberOfWorkers_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of workers in the group.
-       * 
- * - * uint32 number_of_workers = 1; - */ - public Builder clearNumberOfWorkers() { - - numberOfWorkers_ = 0; - onChanged(); - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-       * Optional image to use for the pods of the worker group. If unset, will use the default image.
-       * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Optional image to use for the pods of the worker group. If unset, will use the default image.
-       * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Optional image to use for the pods of the worker group. If unset, will use the default image.
-       * 
- * - * string image = 2; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional image to use for the pods of the worker group. If unset, will use the default image.
-       * 
- * - * string image = 2; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Optional image to use for the pods of the worker group. If unset, will use the default image.
-       * 
- * - * string image = 2; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources assigned to the all pods of the worker group.
-       * As per https://kubernetes.dask.org/en/latest/kubecluster.html?highlight=limit#best-practices 
-       * it is advised to only set limits. If requests are not explicitly set, the plugin will make
-       * sure to set requests==limits.
-       * The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit.
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - @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.plugins.DaskWorkerGroup) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DaskWorkerGroup) - private static final flyteidl.plugins.Dask.DaskWorkerGroup DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Dask.DaskWorkerGroup(); - } - - public static flyteidl.plugins.Dask.DaskWorkerGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DaskWorkerGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DaskWorkerGroup(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.plugins.Dask.DaskWorkerGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DaskJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DaskScheduler_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/plugins/dask.proto\022\020flyteidl." + - "plugins\032\031flyteidl/core/tasks.proto\"q\n\007Da" + - "skJob\0222\n\tscheduler\030\001 \001(\0132\037.flyteidl.plug" + - "ins.DaskScheduler\0222\n\007workers\030\002 \001(\0132!.fly" + - "teidl.plugins.DaskWorkerGroup\"K\n\rDaskSch" + - "eduler\022\r\n\005image\030\001 \001(\t\022+\n\tresources\030\002 \001(\013" + - "2\030.flyteidl.core.Resources\"h\n\017DaskWorker" + - "Group\022\031\n\021number_of_workers\030\001 \001(\r\022\r\n\005imag" + - "e\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.co" + - "re.ResourcesB?Z=github.com/flyteorg/flyt" + - "e/flyteidl/gen/pb-go/flyteidl/pluginsb\006p" + - "roto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_DaskJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DaskJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DaskJob_descriptor, - new java.lang.String[] { "Scheduler", "Workers", }); - internal_static_flyteidl_plugins_DaskScheduler_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_DaskScheduler_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DaskScheduler_descriptor, - new java.lang.String[] { "Image", "Resources", }); - internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_DaskWorkerGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DaskWorkerGroup_descriptor, - new java.lang.String[] { "NumberOfWorkers", "Image", "Resources", }); - flyteidl.core.Tasks.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java b/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java deleted file mode 100644 index f4affa68b0..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Mpi.java +++ /dev/null @@ -1,737 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/mpi.proto - -package flyteidl.plugins; - -public final class Mpi { - private Mpi() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedMPITrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedMPITrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker spawned in the cluster for this job
-     * 
- * - * int32 num_workers = 1; - */ - int getNumWorkers(); - - /** - *
-     * number of launcher replicas spawned in the cluster for this job
-     * The launcher pod invokes mpirun and communicates with worker pods through MPI.
-     * 
- * - * int32 num_launcher_replicas = 2; - */ - int getNumLauncherReplicas(); - - /** - *
-     * number of slots per worker used in hostfile.
-     * The available slots (GPUs) in each pod.
-     * 
- * - * int32 slots = 3; - */ - int getSlots(); - } - /** - *
-   * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedMPITrainingTask} - */ - public static final class DistributedMPITrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedMPITrainingTask) - DistributedMPITrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedMPITrainingTask.newBuilder() to construct. - private DistributedMPITrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedMPITrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedMPITrainingTask( - 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 8: { - - numWorkers_ = input.readInt32(); - break; - } - case 16: { - - numLauncherReplicas_ = input.readInt32(); - break; - } - case 24: { - - slots_ = input.readInt32(); - 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.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.Mpi.DistributedMPITrainingTask.Builder.class); - } - - public static final int NUM_WORKERS_FIELD_NUMBER = 1; - private int numWorkers_; - /** - *
-     * number of worker spawned in the cluster for this job
-     * 
- * - * int32 num_workers = 1; - */ - public int getNumWorkers() { - return numWorkers_; - } - - public static final int NUM_LAUNCHER_REPLICAS_FIELD_NUMBER = 2; - private int numLauncherReplicas_; - /** - *
-     * number of launcher replicas spawned in the cluster for this job
-     * The launcher pod invokes mpirun and communicates with worker pods through MPI.
-     * 
- * - * int32 num_launcher_replicas = 2; - */ - public int getNumLauncherReplicas() { - return numLauncherReplicas_; - } - - public static final int SLOTS_FIELD_NUMBER = 3; - private int slots_; - /** - *
-     * number of slots per worker used in hostfile.
-     * The available slots (GPUs) in each pod.
-     * 
- * - * int32 slots = 3; - */ - public int getSlots() { - return slots_; - } - - 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 (numWorkers_ != 0) { - output.writeInt32(1, numWorkers_); - } - if (numLauncherReplicas_ != 0) { - output.writeInt32(2, numLauncherReplicas_); - } - if (slots_ != 0) { - output.writeInt32(3, slots_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numWorkers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, numWorkers_); - } - if (numLauncherReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, numLauncherReplicas_); - } - if (slots_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, slots_); - } - 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.plugins.Mpi.DistributedMPITrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Mpi.DistributedMPITrainingTask other = (flyteidl.plugins.Mpi.DistributedMPITrainingTask) obj; - - if (getNumWorkers() - != other.getNumWorkers()) return false; - if (getNumLauncherReplicas() - != other.getNumLauncherReplicas()) return false; - if (getSlots() - != other.getSlots()) 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(); - hash = (37 * hash) + NUM_WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getNumWorkers(); - hash = (37 * hash) + NUM_LAUNCHER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getNumLauncherReplicas(); - hash = (37 * hash) + SLOTS_FIELD_NUMBER; - hash = (53 * hash) + getSlots(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask 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.plugins.Mpi.DistributedMPITrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask 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.plugins.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask 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.plugins.Mpi.DistributedMPITrainingTask 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; - } - /** - *
-     * MPI operator proposal https://github.com/kubeflow/community/blob/master/proposals/mpi-operator-proposal.md
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedMPITrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedMPITrainingTask) - flyteidl.plugins.Mpi.DistributedMPITrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.Mpi.DistributedMPITrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Mpi.DistributedMPITrainingTask.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(); - numWorkers_ = 0; - - numLauncherReplicas_ = 0; - - slots_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Mpi.internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Mpi.DistributedMPITrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Mpi.DistributedMPITrainingTask build() { - flyteidl.plugins.Mpi.DistributedMPITrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Mpi.DistributedMPITrainingTask buildPartial() { - flyteidl.plugins.Mpi.DistributedMPITrainingTask result = new flyteidl.plugins.Mpi.DistributedMPITrainingTask(this); - result.numWorkers_ = numWorkers_; - result.numLauncherReplicas_ = numLauncherReplicas_; - result.slots_ = slots_; - 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.plugins.Mpi.DistributedMPITrainingTask) { - return mergeFrom((flyteidl.plugins.Mpi.DistributedMPITrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Mpi.DistributedMPITrainingTask other) { - if (other == flyteidl.plugins.Mpi.DistributedMPITrainingTask.getDefaultInstance()) return this; - if (other.getNumWorkers() != 0) { - setNumWorkers(other.getNumWorkers()); - } - if (other.getNumLauncherReplicas() != 0) { - setNumLauncherReplicas(other.getNumLauncherReplicas()); - } - if (other.getSlots() != 0) { - setSlots(other.getSlots()); - } - 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.plugins.Mpi.DistributedMPITrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Mpi.DistributedMPITrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int numWorkers_ ; - /** - *
-       * number of worker spawned in the cluster for this job
-       * 
- * - * int32 num_workers = 1; - */ - public int getNumWorkers() { - return numWorkers_; - } - /** - *
-       * number of worker spawned in the cluster for this job
-       * 
- * - * int32 num_workers = 1; - */ - public Builder setNumWorkers(int value) { - - numWorkers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker spawned in the cluster for this job
-       * 
- * - * int32 num_workers = 1; - */ - public Builder clearNumWorkers() { - - numWorkers_ = 0; - onChanged(); - return this; - } - - private int numLauncherReplicas_ ; - /** - *
-       * number of launcher replicas spawned in the cluster for this job
-       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
-       * 
- * - * int32 num_launcher_replicas = 2; - */ - public int getNumLauncherReplicas() { - return numLauncherReplicas_; - } - /** - *
-       * number of launcher replicas spawned in the cluster for this job
-       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
-       * 
- * - * int32 num_launcher_replicas = 2; - */ - public Builder setNumLauncherReplicas(int value) { - - numLauncherReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * number of launcher replicas spawned in the cluster for this job
-       * The launcher pod invokes mpirun and communicates with worker pods through MPI.
-       * 
- * - * int32 num_launcher_replicas = 2; - */ - public Builder clearNumLauncherReplicas() { - - numLauncherReplicas_ = 0; - onChanged(); - return this; - } - - private int slots_ ; - /** - *
-       * number of slots per worker used in hostfile.
-       * The available slots (GPUs) in each pod.
-       * 
- * - * int32 slots = 3; - */ - public int getSlots() { - return slots_; - } - /** - *
-       * number of slots per worker used in hostfile.
-       * The available slots (GPUs) in each pod.
-       * 
- * - * int32 slots = 3; - */ - public Builder setSlots(int value) { - - slots_ = value; - onChanged(); - return this; - } - /** - *
-       * number of slots per worker used in hostfile.
-       * The available slots (GPUs) in each pod.
-       * 
- * - * int32 slots = 3; - */ - public Builder clearSlots() { - - slots_ = 0; - onChanged(); - return this; - } - @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.plugins.DistributedMPITrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedMPITrainingTask) - private static final flyteidl.plugins.Mpi.DistributedMPITrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Mpi.DistributedMPITrainingTask(); - } - - public static flyteidl.plugins.Mpi.DistributedMPITrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedMPITrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedMPITrainingTask(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.plugins.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/plugins/mpi.proto\022\020flyteidl.p" + - "lugins\"_\n\032DistributedMPITrainingTask\022\023\n\013" + - "num_workers\030\001 \001(\005\022\035\n\025num_launcher_replic" + - "as\030\002 \001(\005\022\r\n\005slots\030\003 \001(\005B?Z=github.com/fl" + - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" + - "/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedMPITrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedMPITrainingTask_descriptor, - new java.lang.String[] { "NumWorkers", "NumLauncherReplicas", "Slots", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java b/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java deleted file mode 100644 index 1cd97b08eb..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Presto.java +++ /dev/null @@ -1,1029 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/presto.proto - -package flyteidl.plugins; - -public final class Presto { - private Presto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PrestoQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.PrestoQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string routing_group = 1; - */ - java.lang.String getRoutingGroup(); - /** - * string routing_group = 1; - */ - com.google.protobuf.ByteString - getRoutingGroupBytes(); - - /** - * string catalog = 2; - */ - java.lang.String getCatalog(); - /** - * string catalog = 2; - */ - com.google.protobuf.ByteString - getCatalogBytes(); - - /** - * string schema = 3; - */ - java.lang.String getSchema(); - /** - * string schema = 3; - */ - com.google.protobuf.ByteString - getSchemaBytes(); - - /** - * string statement = 4; - */ - java.lang.String getStatement(); - /** - * string statement = 4; - */ - com.google.protobuf.ByteString - getStatementBytes(); - } - /** - *
-   * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-   * of a Presto task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class PrestoQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.PrestoQuery) - PrestoQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use PrestoQuery.newBuilder() to construct. - private PrestoQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PrestoQuery() { - routingGroup_ = ""; - catalog_ = ""; - schema_ = ""; - statement_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PrestoQuery( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - routingGroup_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - catalog_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - schema_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - statement_ = s; - 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.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - public static final int ROUTING_GROUP_FIELD_NUMBER = 1; - private volatile java.lang.Object routingGroup_; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routingGroup_ = s; - return s; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CATALOG_FIELD_NUMBER = 2; - private volatile java.lang.Object catalog_; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_FIELD_NUMBER = 3; - private volatile java.lang.Object schema_; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schema_ = s; - return s; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATEMENT_FIELD_NUMBER = 4; - private volatile java.lang.Object statement_; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getRoutingGroupBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, schema_); - } - if (!getStatementBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, statement_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRoutingGroupBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, routingGroup_); - } - if (!getCatalogBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, catalog_); - } - if (!getSchemaBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, schema_); - } - if (!getStatementBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, statement_); - } - 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.plugins.Presto.PrestoQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Presto.PrestoQuery other = (flyteidl.plugins.Presto.PrestoQuery) obj; - - if (!getRoutingGroup() - .equals(other.getRoutingGroup())) return false; - if (!getCatalog() - .equals(other.getCatalog())) return false; - if (!getSchema() - .equals(other.getSchema())) return false; - if (!getStatement() - .equals(other.getStatement())) 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(); - hash = (37 * hash) + ROUTING_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getRoutingGroup().hashCode(); - hash = (37 * hash) + CATALOG_FIELD_NUMBER; - hash = (53 * hash) + getCatalog().hashCode(); - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - hash = (37 * hash) + STATEMENT_FIELD_NUMBER; - hash = (53 * hash) + getStatement().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Presto.PrestoQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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.plugins.Presto.PrestoQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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.plugins.Presto.PrestoQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Presto.PrestoQuery 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.plugins.Presto.PrestoQuery 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; - } - /** - *
-     * This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field
-     * of a Presto task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.PrestoQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.PrestoQuery) - flyteidl.plugins.Presto.PrestoQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Presto.PrestoQuery.class, flyteidl.plugins.Presto.PrestoQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Presto.PrestoQuery.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(); - routingGroup_ = ""; - - catalog_ = ""; - - schema_ = ""; - - statement_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Presto.internal_static_flyteidl_plugins_PrestoQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery build() { - flyteidl.plugins.Presto.PrestoQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Presto.PrestoQuery buildPartial() { - flyteidl.plugins.Presto.PrestoQuery result = new flyteidl.plugins.Presto.PrestoQuery(this); - result.routingGroup_ = routingGroup_; - result.catalog_ = catalog_; - result.schema_ = schema_; - result.statement_ = statement_; - 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.plugins.Presto.PrestoQuery) { - return mergeFrom((flyteidl.plugins.Presto.PrestoQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Presto.PrestoQuery other) { - if (other == flyteidl.plugins.Presto.PrestoQuery.getDefaultInstance()) return this; - if (!other.getRoutingGroup().isEmpty()) { - routingGroup_ = other.routingGroup_; - onChanged(); - } - if (!other.getCatalog().isEmpty()) { - catalog_ = other.catalog_; - onChanged(); - } - if (!other.getSchema().isEmpty()) { - schema_ = other.schema_; - onChanged(); - } - if (!other.getStatement().isEmpty()) { - statement_ = other.statement_; - onChanged(); - } - 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.plugins.Presto.PrestoQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Presto.PrestoQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object routingGroup_ = ""; - /** - * string routing_group = 1; - */ - public java.lang.String getRoutingGroup() { - java.lang.Object ref = routingGroup_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - routingGroup_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string routing_group = 1; - */ - public com.google.protobuf.ByteString - getRoutingGroupBytes() { - java.lang.Object ref = routingGroup_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - routingGroup_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroup( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - routingGroup_ = value; - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder clearRoutingGroup() { - - routingGroup_ = getDefaultInstance().getRoutingGroup(); - onChanged(); - return this; - } - /** - * string routing_group = 1; - */ - public Builder setRoutingGroupBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - routingGroup_ = value; - onChanged(); - return this; - } - - private java.lang.Object catalog_ = ""; - /** - * string catalog = 2; - */ - public java.lang.String getCatalog() { - java.lang.Object ref = catalog_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalog_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string catalog = 2; - */ - public com.google.protobuf.ByteString - getCatalogBytes() { - java.lang.Object ref = catalog_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalog_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string catalog = 2; - */ - public Builder setCatalog( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - catalog_ = value; - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder clearCatalog() { - - catalog_ = getDefaultInstance().getCatalog(); - onChanged(); - return this; - } - /** - * string catalog = 2; - */ - public Builder setCatalogBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - catalog_ = value; - onChanged(); - return this; - } - - private java.lang.Object schema_ = ""; - /** - * string schema = 3; - */ - public java.lang.String getSchema() { - java.lang.Object ref = schema_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schema_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schema = 3; - */ - public com.google.protobuf.ByteString - getSchemaBytes() { - java.lang.Object ref = schema_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schema_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schema = 3; - */ - public Builder setSchema( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schema_ = value; - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder clearSchema() { - - schema_ = getDefaultInstance().getSchema(); - onChanged(); - return this; - } - /** - * string schema = 3; - */ - public Builder setSchemaBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schema_ = value; - onChanged(); - return this; - } - - private java.lang.Object statement_ = ""; - /** - * string statement = 4; - */ - public java.lang.String getStatement() { - java.lang.Object ref = statement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - statement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string statement = 4; - */ - public com.google.protobuf.ByteString - getStatementBytes() { - java.lang.Object ref = statement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - statement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string statement = 4; - */ - public Builder setStatement( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - statement_ = value; - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder clearStatement() { - - statement_ = getDefaultInstance().getStatement(); - onChanged(); - return this; - } - /** - * string statement = 4; - */ - public Builder setStatementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - statement_ = value; - onChanged(); - return this; - } - @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.plugins.PrestoQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.PrestoQuery) - private static final flyteidl.plugins.Presto.PrestoQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Presto.PrestoQuery(); - } - - public static flyteidl.plugins.Presto.PrestoQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrestoQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrestoQuery(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.plugins.Presto.PrestoQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_PrestoQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/plugins/presto.proto\022\020flyteid" + - "l.plugins\"X\n\013PrestoQuery\022\025\n\rrouting_grou" + - "p\030\001 \001(\t\022\017\n\007catalog\030\002 \001(\t\022\016\n\006schema\030\003 \001(\t" + - "\022\021\n\tstatement\030\004 \001(\tB?Z=github.com/flyteo" + - "rg/flyte/flyteidl/gen/pb-go/flyteidl/plu" + - "ginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_PrestoQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_PrestoQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_PrestoQuery_descriptor, - new java.lang.String[] { "RoutingGroup", "Catalog", "Schema", "Statement", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java b/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java deleted file mode 100644 index 2fa2344de7..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Pytorch.java +++ /dev/null @@ -1,1651 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/pytorch.proto - -package flyteidl.plugins; - -public final class Pytorch { - private Pytorch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ElasticConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.ElasticConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * string rdzv_backend = 1; - */ - java.lang.String getRdzvBackend(); - /** - * string rdzv_backend = 1; - */ - com.google.protobuf.ByteString - getRdzvBackendBytes(); - - /** - * int32 min_replicas = 2; - */ - int getMinReplicas(); - - /** - * int32 max_replicas = 3; - */ - int getMaxReplicas(); - - /** - * int32 nproc_per_node = 4; - */ - int getNprocPerNode(); - - /** - * int32 max_restarts = 5; - */ - int getMaxRestarts(); - } - /** - *
-   * Custom proto for torch elastic config for distributed training using 
-   * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
-   * 
- * - * Protobuf type {@code flyteidl.plugins.ElasticConfig} - */ - public static final class ElasticConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.ElasticConfig) - ElasticConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ElasticConfig.newBuilder() to construct. - private ElasticConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ElasticConfig() { - rdzvBackend_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ElasticConfig( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - rdzvBackend_ = s; - break; - } - case 16: { - - minReplicas_ = input.readInt32(); - break; - } - case 24: { - - maxReplicas_ = input.readInt32(); - break; - } - case 32: { - - nprocPerNode_ = input.readInt32(); - break; - } - case 40: { - - maxRestarts_ = input.readInt32(); - 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.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.ElasticConfig.class, flyteidl.plugins.Pytorch.ElasticConfig.Builder.class); - } - - public static final int RDZV_BACKEND_FIELD_NUMBER = 1; - private volatile java.lang.Object rdzvBackend_; - /** - * string rdzv_backend = 1; - */ - public java.lang.String getRdzvBackend() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rdzvBackend_ = s; - return s; - } - } - /** - * string rdzv_backend = 1; - */ - public com.google.protobuf.ByteString - getRdzvBackendBytes() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rdzvBackend_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_REPLICAS_FIELD_NUMBER = 2; - private int minReplicas_; - /** - * int32 min_replicas = 2; - */ - public int getMinReplicas() { - return minReplicas_; - } - - public static final int MAX_REPLICAS_FIELD_NUMBER = 3; - private int maxReplicas_; - /** - * int32 max_replicas = 3; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - - public static final int NPROC_PER_NODE_FIELD_NUMBER = 4; - private int nprocPerNode_; - /** - * int32 nproc_per_node = 4; - */ - public int getNprocPerNode() { - return nprocPerNode_; - } - - public static final int MAX_RESTARTS_FIELD_NUMBER = 5; - private int maxRestarts_; - /** - * int32 max_restarts = 5; - */ - public int getMaxRestarts() { - return maxRestarts_; - } - - 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 (!getRdzvBackendBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rdzvBackend_); - } - if (minReplicas_ != 0) { - output.writeInt32(2, minReplicas_); - } - if (maxReplicas_ != 0) { - output.writeInt32(3, maxReplicas_); - } - if (nprocPerNode_ != 0) { - output.writeInt32(4, nprocPerNode_); - } - if (maxRestarts_ != 0) { - output.writeInt32(5, maxRestarts_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRdzvBackendBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rdzvBackend_); - } - if (minReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minReplicas_); - } - if (maxReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxReplicas_); - } - if (nprocPerNode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, nprocPerNode_); - } - if (maxRestarts_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxRestarts_); - } - 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.plugins.Pytorch.ElasticConfig)) { - return super.equals(obj); - } - flyteidl.plugins.Pytorch.ElasticConfig other = (flyteidl.plugins.Pytorch.ElasticConfig) obj; - - if (!getRdzvBackend() - .equals(other.getRdzvBackend())) return false; - if (getMinReplicas() - != other.getMinReplicas()) return false; - if (getMaxReplicas() - != other.getMaxReplicas()) return false; - if (getNprocPerNode() - != other.getNprocPerNode()) return false; - if (getMaxRestarts() - != other.getMaxRestarts()) 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(); - hash = (37 * hash) + RDZV_BACKEND_FIELD_NUMBER; - hash = (53 * hash) + getRdzvBackend().hashCode(); - hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMinReplicas(); - hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReplicas(); - hash = (37 * hash) + NPROC_PER_NODE_FIELD_NUMBER; - hash = (53 * hash) + getNprocPerNode(); - hash = (37 * hash) + MAX_RESTARTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxRestarts(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.ElasticConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.ElasticConfig 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.plugins.Pytorch.ElasticConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.ElasticConfig 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.plugins.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.ElasticConfig 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.plugins.Pytorch.ElasticConfig 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; - } - /** - *
-     * Custom proto for torch elastic config for distributed training using 
-     * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
-     * 
- * - * Protobuf type {@code flyteidl.plugins.ElasticConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.ElasticConfig) - flyteidl.plugins.Pytorch.ElasticConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.ElasticConfig.class, flyteidl.plugins.Pytorch.ElasticConfig.Builder.class); - } - - // Construct using flyteidl.plugins.Pytorch.ElasticConfig.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(); - rdzvBackend_ = ""; - - minReplicas_ = 0; - - maxReplicas_ = 0; - - nprocPerNode_ = 0; - - maxRestarts_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_ElasticConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.ElasticConfig getDefaultInstanceForType() { - return flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.ElasticConfig build() { - flyteidl.plugins.Pytorch.ElasticConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.ElasticConfig buildPartial() { - flyteidl.plugins.Pytorch.ElasticConfig result = new flyteidl.plugins.Pytorch.ElasticConfig(this); - result.rdzvBackend_ = rdzvBackend_; - result.minReplicas_ = minReplicas_; - result.maxReplicas_ = maxReplicas_; - result.nprocPerNode_ = nprocPerNode_; - result.maxRestarts_ = maxRestarts_; - 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.plugins.Pytorch.ElasticConfig) { - return mergeFrom((flyteidl.plugins.Pytorch.ElasticConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Pytorch.ElasticConfig other) { - if (other == flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance()) return this; - if (!other.getRdzvBackend().isEmpty()) { - rdzvBackend_ = other.rdzvBackend_; - onChanged(); - } - if (other.getMinReplicas() != 0) { - setMinReplicas(other.getMinReplicas()); - } - if (other.getMaxReplicas() != 0) { - setMaxReplicas(other.getMaxReplicas()); - } - if (other.getNprocPerNode() != 0) { - setNprocPerNode(other.getNprocPerNode()); - } - if (other.getMaxRestarts() != 0) { - setMaxRestarts(other.getMaxRestarts()); - } - 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.plugins.Pytorch.ElasticConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Pytorch.ElasticConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object rdzvBackend_ = ""; - /** - * string rdzv_backend = 1; - */ - public java.lang.String getRdzvBackend() { - java.lang.Object ref = rdzvBackend_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rdzvBackend_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rdzv_backend = 1; - */ - public com.google.protobuf.ByteString - getRdzvBackendBytes() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rdzvBackend_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rdzv_backend = 1; - */ - public Builder setRdzvBackend( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rdzvBackend_ = value; - onChanged(); - return this; - } - /** - * string rdzv_backend = 1; - */ - public Builder clearRdzvBackend() { - - rdzvBackend_ = getDefaultInstance().getRdzvBackend(); - onChanged(); - return this; - } - /** - * string rdzv_backend = 1; - */ - public Builder setRdzvBackendBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rdzvBackend_ = value; - onChanged(); - return this; - } - - private int minReplicas_ ; - /** - * int32 min_replicas = 2; - */ - public int getMinReplicas() { - return minReplicas_; - } - /** - * int32 min_replicas = 2; - */ - public Builder setMinReplicas(int value) { - - minReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 min_replicas = 2; - */ - public Builder clearMinReplicas() { - - minReplicas_ = 0; - onChanged(); - return this; - } - - private int maxReplicas_ ; - /** - * int32 max_replicas = 3; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - /** - * int32 max_replicas = 3; - */ - public Builder setMaxReplicas(int value) { - - maxReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 max_replicas = 3; - */ - public Builder clearMaxReplicas() { - - maxReplicas_ = 0; - onChanged(); - return this; - } - - private int nprocPerNode_ ; - /** - * int32 nproc_per_node = 4; - */ - public int getNprocPerNode() { - return nprocPerNode_; - } - /** - * int32 nproc_per_node = 4; - */ - public Builder setNprocPerNode(int value) { - - nprocPerNode_ = value; - onChanged(); - return this; - } - /** - * int32 nproc_per_node = 4; - */ - public Builder clearNprocPerNode() { - - nprocPerNode_ = 0; - onChanged(); - return this; - } - - private int maxRestarts_ ; - /** - * int32 max_restarts = 5; - */ - public int getMaxRestarts() { - return maxRestarts_; - } - /** - * int32 max_restarts = 5; - */ - public Builder setMaxRestarts(int value) { - - maxRestarts_ = value; - onChanged(); - return this; - } - /** - * int32 max_restarts = 5; - */ - public Builder clearMaxRestarts() { - - maxRestarts_ = 0; - onChanged(); - return this; - } - @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.plugins.ElasticConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.ElasticConfig) - private static final flyteidl.plugins.Pytorch.ElasticConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.ElasticConfig(); - } - - public static flyteidl.plugins.Pytorch.ElasticConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ElasticConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ElasticConfig(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.plugins.Pytorch.ElasticConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistributedPyTorchTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedPyTorchTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - boolean hasElasticConfig(); - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig(); - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class DistributedPyTorchTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - DistributedPyTorchTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedPyTorchTrainingTask.newBuilder() to construct. - private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedPyTorchTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedPyTorchTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - break; - } - case 18: { - flyteidl.plugins.Pytorch.ElasticConfig.Builder subBuilder = null; - if (elasticConfig_ != null) { - subBuilder = elasticConfig_.toBuilder(); - } - elasticConfig_ = input.readMessage(flyteidl.plugins.Pytorch.ElasticConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(elasticConfig_); - elasticConfig_ = 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.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - public static final int ELASTIC_CONFIG_FIELD_NUMBER = 2; - private flyteidl.plugins.Pytorch.ElasticConfig elasticConfig_; - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public boolean hasElasticConfig() { - return elasticConfig_ != null; - } - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig() { - return elasticConfig_ == null ? flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } - /** - *
-     * config for an elastic pytorch job
-     * 
-     * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { - return getElasticConfig(); - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - if (elasticConfig_ != null) { - output.writeMessage(2, getElasticConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - if (elasticConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getElasticConfig()); - } - 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.plugins.Pytorch.DistributedPyTorchTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) return false; - if (hasElasticConfig() != other.hasElasticConfig()) return false; - if (hasElasticConfig()) { - if (!getElasticConfig() - .equals(other.getElasticConfig())) 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(); - hash = (37 * hash) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - if (hasElasticConfig()) { - hash = (37 * hash) + ELASTIC_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getElasticConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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.plugins.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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.plugins.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask 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.plugins.Pytorch.DistributedPyTorchTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedPyTorchTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedPyTorchTrainingTask) - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.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(); - workers_ = 0; - - if (elasticConfigBuilder_ == null) { - elasticConfig_ = null; - } else { - elasticConfig_ = null; - elasticConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Pytorch.internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask build() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask buildPartial() { - flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(this); - result.workers_ = workers_; - if (elasticConfigBuilder_ == null) { - result.elasticConfig_ = elasticConfig_; - } else { - result.elasticConfig_ = elasticConfigBuilder_.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.plugins.Pytorch.DistributedPyTorchTrainingTask) { - return mergeFrom((flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask other) { - if (other == flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - if (other.hasElasticConfig()) { - mergeElasticConfig(other.getElasticConfig()); - } - 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.plugins.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - onChanged(); - return this; - } - - private flyteidl.plugins.Pytorch.ElasticConfig elasticConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder> elasticConfigBuilder_; - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public boolean hasElasticConfig() { - return elasticConfigBuilder_ != null || elasticConfig_ != null; - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public flyteidl.plugins.Pytorch.ElasticConfig getElasticConfig() { - if (elasticConfigBuilder_ == null) { - return elasticConfig_ == null ? flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } else { - return elasticConfigBuilder_.getMessage(); - } - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public Builder setElasticConfig(flyteidl.plugins.Pytorch.ElasticConfig value) { - if (elasticConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - elasticConfig_ = value; - onChanged(); - } else { - elasticConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public Builder setElasticConfig( - flyteidl.plugins.Pytorch.ElasticConfig.Builder builderForValue) { - if (elasticConfigBuilder_ == null) { - elasticConfig_ = builderForValue.build(); - onChanged(); - } else { - elasticConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public Builder mergeElasticConfig(flyteidl.plugins.Pytorch.ElasticConfig value) { - if (elasticConfigBuilder_ == null) { - if (elasticConfig_ != null) { - elasticConfig_ = - flyteidl.plugins.Pytorch.ElasticConfig.newBuilder(elasticConfig_).mergeFrom(value).buildPartial(); - } else { - elasticConfig_ = value; - } - onChanged(); - } else { - elasticConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public Builder clearElasticConfig() { - if (elasticConfigBuilder_ == null) { - elasticConfig_ = null; - onChanged(); - } else { - elasticConfig_ = null; - elasticConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public flyteidl.plugins.Pytorch.ElasticConfig.Builder getElasticConfigBuilder() { - - onChanged(); - return getElasticConfigFieldBuilder().getBuilder(); - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - public flyteidl.plugins.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { - if (elasticConfigBuilder_ != null) { - return elasticConfigBuilder_.getMessageOrBuilder(); - } else { - return elasticConfig_ == null ? - flyteidl.plugins.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } - } - /** - *
-       * config for an elastic pytorch job
-       * 
-       * 
- * - * .flyteidl.plugins.ElasticConfig elastic_config = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder> - getElasticConfigFieldBuilder() { - if (elasticConfigBuilder_ == null) { - elasticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Pytorch.ElasticConfig, flyteidl.plugins.Pytorch.ElasticConfig.Builder, flyteidl.plugins.Pytorch.ElasticConfigOrBuilder>( - getElasticConfig(), - getParentForChildren(), - isClean()); - elasticConfig_ = null; - } - return elasticConfigBuilder_; - } - @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.plugins.DistributedPyTorchTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedPyTorchTrainingTask) - private static final flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask(); - } - - public static flyteidl.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedPyTorchTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedPyTorchTrainingTask(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.plugins.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_ElasticConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\036flyteidl/plugins/pytorch.proto\022\020flytei" + - "dl.plugins\"\177\n\rElasticConfig\022\024\n\014rdzv_back" + - "end\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014max_r" + - "eplicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001(\005\022\024\n" + - "\014max_restarts\030\005 \001(\005\"j\n\036DistributedPyTorc" + - "hTrainingTask\022\017\n\007workers\030\001 \001(\005\0227\n\016elasti" + - "c_config\030\002 \001(\0132\037.flyteidl.plugins.Elasti" + - "cConfigB?Z=github.com/flyteorg/flyte/fly" + - "teidl/gen/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_ElasticConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_ElasticConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_ElasticConfig_descriptor, - new java.lang.String[] { "RdzvBackend", "MinReplicas", "MaxReplicas", "NprocPerNode", "MaxRestarts", }); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedPyTorchTrainingTask_descriptor, - new java.lang.String[] { "Workers", "ElasticConfig", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java b/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java deleted file mode 100644 index 4e44eb45f3..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Qubole.java +++ /dev/null @@ -1,2697 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/qubole.proto - -package flyteidl.plugins; - -public final class Qubole { - private Qubole() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface HiveQueryOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQuery) - com.google.protobuf.MessageOrBuilder { - - /** - * string query = 1; - */ - java.lang.String getQuery(); - /** - * string query = 1; - */ - com.google.protobuf.ByteString - getQueryBytes(); - - /** - * uint32 timeout_sec = 2; - */ - int getTimeoutSec(); - - /** - * uint32 retryCount = 3; - */ - int getRetryCount(); - } - /** - *
-   * Defines a query to execute on a hive cluster.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class HiveQuery extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQuery) - HiveQueryOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQuery.newBuilder() to construct. - private HiveQuery(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQuery() { - query_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQuery( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - query_ = s; - break; - } - case 16: { - - timeoutSec_ = input.readUInt32(); - break; - } - case 24: { - - retryCount_ = input.readUInt32(); - 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.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - public static final int QUERY_FIELD_NUMBER = 1; - private volatile java.lang.Object query_; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TIMEOUT_SEC_FIELD_NUMBER = 2; - private int timeoutSec_; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - - public static final int RETRYCOUNT_FIELD_NUMBER = 3; - private int retryCount_; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - - 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 (!getQueryBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, query_); - } - if (timeoutSec_ != 0) { - output.writeUInt32(2, timeoutSec_); - } - if (retryCount_ != 0) { - output.writeUInt32(3, retryCount_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getQueryBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, query_); - } - if (timeoutSec_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(2, timeoutSec_); - } - if (retryCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, retryCount_); - } - 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.plugins.Qubole.HiveQuery)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQuery other = (flyteidl.plugins.Qubole.HiveQuery) obj; - - if (!getQuery() - .equals(other.getQuery())) return false; - if (getTimeoutSec() - != other.getTimeoutSec()) return false; - if (getRetryCount() - != other.getRetryCount()) 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(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + TIMEOUT_SEC_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSec(); - hash = (37 * hash) + RETRYCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getRetryCount(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQuery parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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.plugins.Qubole.HiveQuery parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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.plugins.Qubole.HiveQuery parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQuery 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.plugins.Qubole.HiveQuery 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; - } - /** - *
-     * Defines a query to execute on a hive cluster.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQuery} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQuery) - flyteidl.plugins.Qubole.HiveQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQuery.class, flyteidl.plugins.Qubole.HiveQuery.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQuery.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(); - query_ = ""; - - timeoutSec_ = 0; - - retryCount_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQuery_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery build() { - flyteidl.plugins.Qubole.HiveQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQuery buildPartial() { - flyteidl.plugins.Qubole.HiveQuery result = new flyteidl.plugins.Qubole.HiveQuery(this); - result.query_ = query_; - result.timeoutSec_ = timeoutSec_; - result.retryCount_ = retryCount_; - 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.plugins.Qubole.HiveQuery) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQuery)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQuery other) { - if (other == flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - onChanged(); - } - if (other.getTimeoutSec() != 0) { - setTimeoutSec(other.getTimeoutSec()); - } - if (other.getRetryCount() != 0) { - setRetryCount(other.getRetryCount()); - } - 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.plugins.Qubole.HiveQuery parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQuery) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object query_ = ""; - /** - * string query = 1; - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string query = 1; - */ - public com.google.protobuf.ByteString - getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string query = 1; - */ - public Builder setQuery( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - query_ = value; - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder clearQuery() { - - query_ = getDefaultInstance().getQuery(); - onChanged(); - return this; - } - /** - * string query = 1; - */ - public Builder setQueryBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - query_ = value; - onChanged(); - return this; - } - - private int timeoutSec_ ; - /** - * uint32 timeout_sec = 2; - */ - public int getTimeoutSec() { - return timeoutSec_; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder setTimeoutSec(int value) { - - timeoutSec_ = value; - onChanged(); - return this; - } - /** - * uint32 timeout_sec = 2; - */ - public Builder clearTimeoutSec() { - - timeoutSec_ = 0; - onChanged(); - return this; - } - - private int retryCount_ ; - /** - * uint32 retryCount = 3; - */ - public int getRetryCount() { - return retryCount_; - } - /** - * uint32 retryCount = 3; - */ - public Builder setRetryCount(int value) { - - retryCount_ = value; - onChanged(); - return this; - } - /** - * uint32 retryCount = 3; - */ - public Builder clearRetryCount() { - - retryCount_ = 0; - onChanged(); - return this; - } - @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.plugins.HiveQuery) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQuery) - private static final flyteidl.plugins.Qubole.HiveQuery DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQuery(); - } - - public static flyteidl.plugins.Qubole.HiveQuery getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQuery(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.plugins.Qubole.HiveQuery getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HiveQueryCollectionOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HiveQueryCollection) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQuery getQueries(int index); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - int getQueriesCount(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - java.util.List - getQueriesOrBuilderList(); - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index); - } - /** - *
-   * Defines a collection of hive queries.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class HiveQueryCollection extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HiveQueryCollection) - HiveQueryCollectionOrBuilder { - private static final long serialVersionUID = 0L; - // Use HiveQueryCollection.newBuilder() to construct. - private HiveQueryCollection(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HiveQueryCollection() { - queries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HiveQueryCollection( - 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 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - queries_.add( - input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry)); - 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - public static final int QUERIES_FIELD_NUMBER = 2; - private java.util.List queries_; - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - return queries_; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - return queries_.size(); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - return queries_.get(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - return queries_.get(index); - } - - 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 { - for (int i = 0; i < queries_.size(); i++) { - output.writeMessage(2, queries_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < queries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, queries_.get(i)); - } - 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.plugins.Qubole.HiveQueryCollection)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.HiveQueryCollection other = (flyteidl.plugins.Qubole.HiveQueryCollection) obj; - - if (!getQueriesList() - .equals(other.getQueriesList())) 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 (getQueriesCount() > 0) { - hash = (37 * hash) + QUERIES_FIELD_NUMBER; - hash = (53 * hash) + getQueriesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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.plugins.Qubole.HiveQueryCollection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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.plugins.Qubole.HiveQueryCollection parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.HiveQueryCollection 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.plugins.Qubole.HiveQueryCollection 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; - } - /** - *
-     * Defines a collection of hive queries.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HiveQueryCollection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HiveQueryCollection) - flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.HiveQueryCollection.class, flyteidl.plugins.Qubole.HiveQueryCollection.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getQueriesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - queriesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection build() { - flyteidl.plugins.Qubole.HiveQueryCollection result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.HiveQueryCollection buildPartial() { - flyteidl.plugins.Qubole.HiveQueryCollection result = new flyteidl.plugins.Qubole.HiveQueryCollection(this); - int from_bitField0_ = bitField0_; - if (queriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queries_ = java.util.Collections.unmodifiableList(queries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.queries_ = queries_; - } else { - result.queries_ = queriesBuilder_.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.plugins.Qubole.HiveQueryCollection) { - return mergeFrom((flyteidl.plugins.Qubole.HiveQueryCollection)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.HiveQueryCollection other) { - if (other == flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance()) return this; - if (queriesBuilder_ == null) { - if (!other.queries_.isEmpty()) { - if (queries_.isEmpty()) { - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueriesIsMutable(); - queries_.addAll(other.queries_); - } - onChanged(); - } - } else { - if (!other.queries_.isEmpty()) { - if (queriesBuilder_.isEmpty()) { - queriesBuilder_.dispose(); - queriesBuilder_ = null; - queries_ = other.queries_; - bitField0_ = (bitField0_ & ~0x00000001); - queriesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getQueriesFieldBuilder() : null; - } else { - queriesBuilder_.addAllMessages(other.queries_); - } - } - } - 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.plugins.Qubole.HiveQueryCollection parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.HiveQueryCollection) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List queries_ = - java.util.Collections.emptyList(); - private void ensureQueriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queries_ = new java.util.ArrayList(queries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queriesBuilder_; - - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List getQueriesList() { - if (queriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(queries_); - } else { - return queriesBuilder_.getMessageList(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public int getQueriesCount() { - if (queriesBuilder_ == null) { - return queries_.size(); - } else { - return queriesBuilder_.getCount(); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery getQueries(int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); - } else { - return queriesBuilder_.getMessage(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.set(index, value); - onChanged(); - } else { - queriesBuilder_.setMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder setQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.set(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries(flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(value); - onChanged(); - } else { - queriesBuilder_.addMessage(value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery value) { - if (queriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueriesIsMutable(); - queries_.add(index, value); - onChanged(); - } else { - queriesBuilder_.addMessage(index, value); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addQueries( - int index, flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.add(index, builderForValue.build()); - onChanged(); - } else { - queriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder addAllQueries( - java.lang.Iterable values) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queries_); - onChanged(); - } else { - queriesBuilder_.addAllMessages(values); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder clearQueries() { - if (queriesBuilder_ == null) { - queries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queriesBuilder_.clear(); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public Builder removeQueries(int index) { - if (queriesBuilder_ == null) { - ensureQueriesIsMutable(); - queries_.remove(index); - onChanged(); - } else { - queriesBuilder_.remove(index); - } - return this; - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueriesBuilder( - int index) { - return getQueriesFieldBuilder().getBuilder(index); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueriesOrBuilder( - int index) { - if (queriesBuilder_ == null) { - return queries_.get(index); } else { - return queriesBuilder_.getMessageOrBuilder(index); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesOrBuilderList() { - if (queriesBuilder_ != null) { - return queriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queries_); - } - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder() { - return getQueriesFieldBuilder().addBuilder( - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder addQueriesBuilder( - int index) { - return getQueriesFieldBuilder().addBuilder( - index, flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance()); - } - /** - * repeated .flyteidl.plugins.HiveQuery queries = 2; - */ - public java.util.List - getQueriesBuilderList() { - return getQueriesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueriesFieldBuilder() { - if (queriesBuilder_ == null) { - queriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - queries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - queries_ = null; - } - return queriesBuilder_; - } - @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.plugins.HiveQueryCollection) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HiveQueryCollection) - private static final flyteidl.plugins.Qubole.HiveQueryCollection DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.HiveQueryCollection(); - } - - public static flyteidl.plugins.Qubole.HiveQueryCollection getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HiveQueryCollection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HiveQueryCollection(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.plugins.Qubole.HiveQueryCollection getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface QuboleHiveJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.QuboleHiveJob) - com.google.protobuf.MessageOrBuilder { - - /** - * string cluster_label = 1; - */ - java.lang.String getClusterLabel(); - /** - * string cluster_label = 1; - */ - com.google.protobuf.ByteString - getClusterLabelBytes(); - - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection(); - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder(); - - /** - * repeated string tags = 3; - */ - java.util.List - getTagsList(); - /** - * repeated string tags = 3; - */ - int getTagsCount(); - /** - * repeated string tags = 3; - */ - java.lang.String getTags(int index); - /** - * repeated string tags = 3; - */ - com.google.protobuf.ByteString - getTagsBytes(int index); - - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - boolean hasQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQuery getQuery(); - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder(); - } - /** - *
-   * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-   * of a hive task's TaskTemplate
-   * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class QuboleHiveJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.QuboleHiveJob) - QuboleHiveJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use QuboleHiveJob.newBuilder() to construct. - private QuboleHiveJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QuboleHiveJob() { - clusterLabel_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QuboleHiveJob( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - clusterLabel_ = s; - break; - } - case 18: { - flyteidl.plugins.Qubole.HiveQueryCollection.Builder subBuilder = null; - if (queryCollection_ != null) { - subBuilder = queryCollection_.toBuilder(); - } - queryCollection_ = input.readMessage(flyteidl.plugins.Qubole.HiveQueryCollection.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(queryCollection_); - queryCollection_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - tags_.add(s); - break; - } - case 34: { - flyteidl.plugins.Qubole.HiveQuery.Builder subBuilder = null; - if (query_ != null) { - subBuilder = query_.toBuilder(); - } - query_ = input.readMessage(flyteidl.plugins.Qubole.HiveQuery.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(query_); - query_ = 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - private int bitField0_; - public static final int CLUSTER_LABEL_FIELD_NUMBER = 1; - private volatile java.lang.Object clusterLabel_; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterLabel_ = s; - return s; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int QUERY_COLLECTION_FIELD_NUMBER = 2; - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - return getQueryCollection(); - } - - public static final int TAGS_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList tags_; - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_; - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int QUERY_FIELD_NUMBER = 4; - private flyteidl.plugins.Qubole.HiveQuery query_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - return getQuery(); - } - - 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 (!getClusterLabelBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clusterLabel_); - } - if (queryCollection_ != null) { - output.writeMessage(2, getQueryCollection()); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tags_.getRaw(i)); - } - if (query_ != null) { - output.writeMessage(4, getQuery()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClusterLabelBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clusterLabel_); - } - if (queryCollection_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getQueryCollection()); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - if (query_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getQuery()); - } - 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.plugins.Qubole.QuboleHiveJob)) { - return super.equals(obj); - } - flyteidl.plugins.Qubole.QuboleHiveJob other = (flyteidl.plugins.Qubole.QuboleHiveJob) obj; - - if (!getClusterLabel() - .equals(other.getClusterLabel())) return false; - if (hasQueryCollection() != other.hasQueryCollection()) return false; - if (hasQueryCollection()) { - if (!getQueryCollection() - .equals(other.getQueryCollection())) return false; - } - if (!getTagsList() - .equals(other.getTagsList())) return false; - if (hasQuery() != other.hasQuery()) return false; - if (hasQuery()) { - if (!getQuery() - .equals(other.getQuery())) 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(); - hash = (37 * hash) + CLUSTER_LABEL_FIELD_NUMBER; - hash = (53 * hash) + getClusterLabel().hashCode(); - if (hasQueryCollection()) { - hash = (37 * hash) + QUERY_COLLECTION_FIELD_NUMBER; - hash = (53 * hash) + getQueryCollection().hashCode(); - } - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (hasQuery()) { - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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.plugins.Qubole.QuboleHiveJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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.plugins.Qubole.QuboleHiveJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Qubole.QuboleHiveJob 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.plugins.Qubole.QuboleHiveJob 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; - } - /** - *
-     * This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field
-     * of a hive task's TaskTemplate
-     * 
- * - * Protobuf type {@code flyteidl.plugins.QuboleHiveJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.QuboleHiveJob) - flyteidl.plugins.Qubole.QuboleHiveJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Qubole.QuboleHiveJob.class, flyteidl.plugins.Qubole.QuboleHiveJob.Builder.class); - } - - // Construct using flyteidl.plugins.Qubole.QuboleHiveJob.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(); - clusterLabel_ = ""; - - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (queryBuilder_ == null) { - query_ = null; - } else { - query_ = null; - queryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Qubole.internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob build() { - flyteidl.plugins.Qubole.QuboleHiveJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Qubole.QuboleHiveJob buildPartial() { - flyteidl.plugins.Qubole.QuboleHiveJob result = new flyteidl.plugins.Qubole.QuboleHiveJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clusterLabel_ = clusterLabel_; - if (queryCollectionBuilder_ == null) { - result.queryCollection_ = queryCollection_; - } else { - result.queryCollection_ = queryCollectionBuilder_.build(); - } - if (((bitField0_ & 0x00000004) != 0)) { - tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.tags_ = tags_; - if (queryBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = queryBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.plugins.Qubole.QuboleHiveJob) { - return mergeFrom((flyteidl.plugins.Qubole.QuboleHiveJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Qubole.QuboleHiveJob other) { - if (other == flyteidl.plugins.Qubole.QuboleHiveJob.getDefaultInstance()) return this; - if (!other.getClusterLabel().isEmpty()) { - clusterLabel_ = other.clusterLabel_; - onChanged(); - } - if (other.hasQueryCollection()) { - mergeQueryCollection(other.getQueryCollection()); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (other.hasQuery()) { - mergeQuery(other.getQuery()); - } - 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.plugins.Qubole.QuboleHiveJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Qubole.QuboleHiveJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clusterLabel_ = ""; - /** - * string cluster_label = 1; - */ - public java.lang.String getClusterLabel() { - java.lang.Object ref = clusterLabel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clusterLabel_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string cluster_label = 1; - */ - public com.google.protobuf.ByteString - getClusterLabelBytes() { - java.lang.Object ref = clusterLabel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clusterLabel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabel( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clusterLabel_ = value; - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder clearClusterLabel() { - - clusterLabel_ = getDefaultInstance().getClusterLabel(); - onChanged(); - return this; - } - /** - * string cluster_label = 1; - */ - public Builder setClusterLabelBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clusterLabel_ = value; - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQueryCollection queryCollection_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> queryCollectionBuilder_; - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasQueryCollection() { - return queryCollectionBuilder_ != null || queryCollection_ != null; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection getQueryCollection() { - if (queryCollectionBuilder_ == null) { - return queryCollection_ == null ? flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } else { - return queryCollectionBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryCollection_ = value; - onChanged(); - } else { - queryCollectionBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setQueryCollection( - flyteidl.plugins.Qubole.HiveQueryCollection.Builder builderForValue) { - if (queryCollectionBuilder_ == null) { - queryCollection_ = builderForValue.build(); - onChanged(); - } else { - queryCollectionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeQueryCollection(flyteidl.plugins.Qubole.HiveQueryCollection value) { - if (queryCollectionBuilder_ == null) { - if (queryCollection_ != null) { - queryCollection_ = - flyteidl.plugins.Qubole.HiveQueryCollection.newBuilder(queryCollection_).mergeFrom(value).buildPartial(); - } else { - queryCollection_ = value; - } - onChanged(); - } else { - queryCollectionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearQueryCollection() { - if (queryCollectionBuilder_ == null) { - queryCollection_ = null; - onChanged(); - } else { - queryCollection_ = null; - queryCollectionBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollection.Builder getQueryCollectionBuilder() { - - onChanged(); - return getQueryCollectionFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - @java.lang.Deprecated public flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder getQueryCollectionOrBuilder() { - if (queryCollectionBuilder_ != null) { - return queryCollectionBuilder_.getMessageOrBuilder(); - } else { - return queryCollection_ == null ? - flyteidl.plugins.Qubole.HiveQueryCollection.getDefaultInstance() : queryCollection_; - } - } - /** - * .flyteidl.plugins.HiveQueryCollection query_collection = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder> - getQueryCollectionFieldBuilder() { - if (queryCollectionBuilder_ == null) { - queryCollectionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQueryCollection, flyteidl.plugins.Qubole.HiveQueryCollection.Builder, flyteidl.plugins.Qubole.HiveQueryCollectionOrBuilder>( - getQueryCollection(), - getParentForChildren(), - isClean()); - queryCollection_ = null; - } - return queryCollectionBuilder_; - } - - private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000004; - } - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ProtocolStringList - getTagsList() { - return tags_.getUnmodifiableView(); - } - /** - * repeated string tags = 3; - */ - public int getTagsCount() { - return tags_.size(); - } - /** - * repeated string tags = 3; - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - /** - * repeated string tags = 3; - */ - public com.google.protobuf.ByteString - getTagsBytes(int index) { - return tags_.getByteString(index); - } - /** - * repeated string tags = 3; - */ - public Builder setTags( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTags( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addAllTags( - java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tags_); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - * repeated string tags = 3; - */ - public Builder addTagsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - return this; - } - - private flyteidl.plugins.Qubole.HiveQuery query_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> queryBuilder_; - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public boolean hasQuery() { - return queryBuilder_ != null || query_ != null; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery getQuery() { - if (queryBuilder_ == null) { - return query_ == null ? flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } else { - return queryBuilder_.getMessage(); - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - onChanged(); - } else { - queryBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder setQuery( - flyteidl.plugins.Qubole.HiveQuery.Builder builderForValue) { - if (queryBuilder_ == null) { - query_ = builderForValue.build(); - onChanged(); - } else { - queryBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder mergeQuery(flyteidl.plugins.Qubole.HiveQuery value) { - if (queryBuilder_ == null) { - if (query_ != null) { - query_ = - flyteidl.plugins.Qubole.HiveQuery.newBuilder(query_).mergeFrom(value).buildPartial(); - } else { - query_ = value; - } - onChanged(); - } else { - queryBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public Builder clearQuery() { - if (queryBuilder_ == null) { - query_ = null; - onChanged(); - } else { - query_ = null; - queryBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQuery.Builder getQueryBuilder() { - - onChanged(); - return getQueryFieldBuilder().getBuilder(); - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - public flyteidl.plugins.Qubole.HiveQueryOrBuilder getQueryOrBuilder() { - if (queryBuilder_ != null) { - return queryBuilder_.getMessageOrBuilder(); - } else { - return query_ == null ? - flyteidl.plugins.Qubole.HiveQuery.getDefaultInstance() : query_; - } - } - /** - * .flyteidl.plugins.HiveQuery query = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder> - getQueryFieldBuilder() { - if (queryBuilder_ == null) { - queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Qubole.HiveQuery, flyteidl.plugins.Qubole.HiveQuery.Builder, flyteidl.plugins.Qubole.HiveQueryOrBuilder>( - getQuery(), - getParentForChildren(), - isClean()); - query_ = null; - } - return queryBuilder_; - } - @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.plugins.QuboleHiveJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.QuboleHiveJob) - private static final flyteidl.plugins.Qubole.QuboleHiveJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Qubole.QuboleHiveJob(); - } - - public static flyteidl.plugins.Qubole.QuboleHiveJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QuboleHiveJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QuboleHiveJob(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.plugins.Qubole.QuboleHiveJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQuery_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/plugins/qubole.proto\022\020flyteid" + - "l.plugins\"C\n\tHiveQuery\022\r\n\005query\030\001 \001(\t\022\023\n" + - "\013timeout_sec\030\002 \001(\r\022\022\n\nretryCount\030\003 \001(\r\"C" + - "\n\023HiveQueryCollection\022,\n\007queries\030\002 \003(\0132\033" + - ".flyteidl.plugins.HiveQuery\"\245\001\n\rQuboleHi" + - "veJob\022\025\n\rcluster_label\030\001 \001(\t\022C\n\020query_co" + - "llection\030\002 \001(\0132%.flyteidl.plugins.HiveQu" + - "eryCollectionB\002\030\001\022\014\n\004tags\030\003 \003(\t\022*\n\005query" + - "\030\004 \001(\0132\033.flyteidl.plugins.HiveQueryB?Z=g" + - "ithub.com/flyteorg/flyte/flyteidl/gen/pb" + - "-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_HiveQuery_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_HiveQuery_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQuery_descriptor, - new java.lang.String[] { "Query", "TimeoutSec", "RetryCount", }); - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_HiveQueryCollection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HiveQueryCollection_descriptor, - new java.lang.String[] { "Queries", }); - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_QuboleHiveJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_QuboleHiveJob_descriptor, - new java.lang.String[] { "ClusterLabel", "QueryCollection", "Tags", "Query", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java b/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java deleted file mode 100644 index 5dd419f827..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Ray.java +++ /dev/null @@ -1,4431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/ray.proto - -package flyteidl.plugins; - -public final class Ray { - private Ray() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface RayJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.RayJob) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - boolean hasRayCluster(); - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - flyteidl.plugins.Ray.RayCluster getRayCluster(); - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder(); - - /** - *
-     * runtime_env is base64 encoded.
-     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-     * 
- * - * string runtime_env = 2; - */ - java.lang.String getRuntimeEnv(); - /** - *
-     * runtime_env is base64 encoded.
-     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-     * 
- * - * string runtime_env = 2; - */ - com.google.protobuf.ByteString - getRuntimeEnvBytes(); - - /** - *
-     * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
-     * 
- * - * bool shutdown_after_job_finishes = 3; - */ - boolean getShutdownAfterJobFinishes(); - - /** - *
-     * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
-     * 
- * - * int32 ttl_seconds_after_finished = 4; - */ - int getTtlSecondsAfterFinished(); - } - /** - *
-   * RayJobSpec defines the desired state of RayJob
-   * 
- * - * Protobuf type {@code flyteidl.plugins.RayJob} - */ - public static final class RayJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.RayJob) - RayJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use RayJob.newBuilder() to construct. - private RayJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RayJob() { - runtimeEnv_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RayJob( - 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.plugins.Ray.RayCluster.Builder subBuilder = null; - if (rayCluster_ != null) { - subBuilder = rayCluster_.toBuilder(); - } - rayCluster_ = input.readMessage(flyteidl.plugins.Ray.RayCluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(rayCluster_); - rayCluster_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - runtimeEnv_ = s; - break; - } - case 24: { - - shutdownAfterJobFinishes_ = input.readBool(); - break; - } - case 32: { - - ttlSecondsAfterFinished_ = input.readInt32(); - 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.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.RayJob.class, flyteidl.plugins.Ray.RayJob.Builder.class); - } - - public static final int RAY_CLUSTER_FIELD_NUMBER = 1; - private flyteidl.plugins.Ray.RayCluster rayCluster_; - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public boolean hasRayCluster() { - return rayCluster_ != null; - } - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public flyteidl.plugins.Ray.RayCluster getRayCluster() { - return rayCluster_ == null ? flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; - } - /** - *
-     * RayClusterSpec is the cluster template to run the job
-     * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder() { - return getRayCluster(); - } - - public static final int RUNTIME_ENV_FIELD_NUMBER = 2; - private volatile java.lang.Object runtimeEnv_; - /** - *
-     * runtime_env is base64 encoded.
-     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-     * 
- * - * string runtime_env = 2; - */ - public java.lang.String getRuntimeEnv() { - java.lang.Object ref = runtimeEnv_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - runtimeEnv_ = s; - return s; - } - } - /** - *
-     * runtime_env is base64 encoded.
-     * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-     * 
- * - * string runtime_env = 2; - */ - public com.google.protobuf.ByteString - getRuntimeEnvBytes() { - java.lang.Object ref = runtimeEnv_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runtimeEnv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHUTDOWN_AFTER_JOB_FINISHES_FIELD_NUMBER = 3; - private boolean shutdownAfterJobFinishes_; - /** - *
-     * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
-     * 
- * - * bool shutdown_after_job_finishes = 3; - */ - public boolean getShutdownAfterJobFinishes() { - return shutdownAfterJobFinishes_; - } - - public static final int TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER = 4; - private int ttlSecondsAfterFinished_; - /** - *
-     * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
-     * 
- * - * int32 ttl_seconds_after_finished = 4; - */ - public int getTtlSecondsAfterFinished() { - return ttlSecondsAfterFinished_; - } - - 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 (rayCluster_ != null) { - output.writeMessage(1, getRayCluster()); - } - if (!getRuntimeEnvBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, runtimeEnv_); - } - if (shutdownAfterJobFinishes_ != false) { - output.writeBool(3, shutdownAfterJobFinishes_); - } - if (ttlSecondsAfterFinished_ != 0) { - output.writeInt32(4, ttlSecondsAfterFinished_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rayCluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRayCluster()); - } - if (!getRuntimeEnvBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, runtimeEnv_); - } - if (shutdownAfterJobFinishes_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, shutdownAfterJobFinishes_); - } - if (ttlSecondsAfterFinished_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, ttlSecondsAfterFinished_); - } - 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.plugins.Ray.RayJob)) { - return super.equals(obj); - } - flyteidl.plugins.Ray.RayJob other = (flyteidl.plugins.Ray.RayJob) obj; - - if (hasRayCluster() != other.hasRayCluster()) return false; - if (hasRayCluster()) { - if (!getRayCluster() - .equals(other.getRayCluster())) return false; - } - if (!getRuntimeEnv() - .equals(other.getRuntimeEnv())) return false; - if (getShutdownAfterJobFinishes() - != other.getShutdownAfterJobFinishes()) return false; - if (getTtlSecondsAfterFinished() - != other.getTtlSecondsAfterFinished()) 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 (hasRayCluster()) { - hash = (37 * hash) + RAY_CLUSTER_FIELD_NUMBER; - hash = (53 * hash) + getRayCluster().hashCode(); - } - hash = (37 * hash) + RUNTIME_ENV_FIELD_NUMBER; - hash = (53 * hash) + getRuntimeEnv().hashCode(); - hash = (37 * hash) + SHUTDOWN_AFTER_JOB_FINISHES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShutdownAfterJobFinishes()); - hash = (37 * hash) + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER; - hash = (53 * hash) + getTtlSecondsAfterFinished(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Ray.RayJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayJob 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.plugins.Ray.RayJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayJob 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.plugins.Ray.RayJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayJob 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.plugins.Ray.RayJob 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; - } - /** - *
-     * RayJobSpec defines the desired state of RayJob
-     * 
- * - * Protobuf type {@code flyteidl.plugins.RayJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.RayJob) - flyteidl.plugins.Ray.RayJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.RayJob.class, flyteidl.plugins.Ray.RayJob.Builder.class); - } - - // Construct using flyteidl.plugins.Ray.RayJob.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 (rayClusterBuilder_ == null) { - rayCluster_ = null; - } else { - rayCluster_ = null; - rayClusterBuilder_ = null; - } - runtimeEnv_ = ""; - - shutdownAfterJobFinishes_ = false; - - ttlSecondsAfterFinished_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayJob getDefaultInstanceForType() { - return flyteidl.plugins.Ray.RayJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayJob build() { - flyteidl.plugins.Ray.RayJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayJob buildPartial() { - flyteidl.plugins.Ray.RayJob result = new flyteidl.plugins.Ray.RayJob(this); - if (rayClusterBuilder_ == null) { - result.rayCluster_ = rayCluster_; - } else { - result.rayCluster_ = rayClusterBuilder_.build(); - } - result.runtimeEnv_ = runtimeEnv_; - result.shutdownAfterJobFinishes_ = shutdownAfterJobFinishes_; - result.ttlSecondsAfterFinished_ = ttlSecondsAfterFinished_; - 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.plugins.Ray.RayJob) { - return mergeFrom((flyteidl.plugins.Ray.RayJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Ray.RayJob other) { - if (other == flyteidl.plugins.Ray.RayJob.getDefaultInstance()) return this; - if (other.hasRayCluster()) { - mergeRayCluster(other.getRayCluster()); - } - if (!other.getRuntimeEnv().isEmpty()) { - runtimeEnv_ = other.runtimeEnv_; - onChanged(); - } - if (other.getShutdownAfterJobFinishes() != false) { - setShutdownAfterJobFinishes(other.getShutdownAfterJobFinishes()); - } - if (other.getTtlSecondsAfterFinished() != 0) { - setTtlSecondsAfterFinished(other.getTtlSecondsAfterFinished()); - } - 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.plugins.Ray.RayJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Ray.RayJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.Ray.RayCluster rayCluster_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder> rayClusterBuilder_; - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public boolean hasRayCluster() { - return rayClusterBuilder_ != null || rayCluster_ != null; - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public flyteidl.plugins.Ray.RayCluster getRayCluster() { - if (rayClusterBuilder_ == null) { - return rayCluster_ == null ? flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; - } else { - return rayClusterBuilder_.getMessage(); - } - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public Builder setRayCluster(flyteidl.plugins.Ray.RayCluster value) { - if (rayClusterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rayCluster_ = value; - onChanged(); - } else { - rayClusterBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public Builder setRayCluster( - flyteidl.plugins.Ray.RayCluster.Builder builderForValue) { - if (rayClusterBuilder_ == null) { - rayCluster_ = builderForValue.build(); - onChanged(); - } else { - rayClusterBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public Builder mergeRayCluster(flyteidl.plugins.Ray.RayCluster value) { - if (rayClusterBuilder_ == null) { - if (rayCluster_ != null) { - rayCluster_ = - flyteidl.plugins.Ray.RayCluster.newBuilder(rayCluster_).mergeFrom(value).buildPartial(); - } else { - rayCluster_ = value; - } - onChanged(); - } else { - rayClusterBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public Builder clearRayCluster() { - if (rayClusterBuilder_ == null) { - rayCluster_ = null; - onChanged(); - } else { - rayCluster_ = null; - rayClusterBuilder_ = null; - } - - return this; - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public flyteidl.plugins.Ray.RayCluster.Builder getRayClusterBuilder() { - - onChanged(); - return getRayClusterFieldBuilder().getBuilder(); - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - public flyteidl.plugins.Ray.RayClusterOrBuilder getRayClusterOrBuilder() { - if (rayClusterBuilder_ != null) { - return rayClusterBuilder_.getMessageOrBuilder(); - } else { - return rayCluster_ == null ? - flyteidl.plugins.Ray.RayCluster.getDefaultInstance() : rayCluster_; - } - } - /** - *
-       * RayClusterSpec is the cluster template to run the job
-       * 
- * - * .flyteidl.plugins.RayCluster ray_cluster = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder> - getRayClusterFieldBuilder() { - if (rayClusterBuilder_ == null) { - rayClusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.RayCluster, flyteidl.plugins.Ray.RayCluster.Builder, flyteidl.plugins.Ray.RayClusterOrBuilder>( - getRayCluster(), - getParentForChildren(), - isClean()); - rayCluster_ = null; - } - return rayClusterBuilder_; - } - - private java.lang.Object runtimeEnv_ = ""; - /** - *
-       * runtime_env is base64 encoded.
-       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-       * 
- * - * string runtime_env = 2; - */ - public java.lang.String getRuntimeEnv() { - java.lang.Object ref = runtimeEnv_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - runtimeEnv_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * runtime_env is base64 encoded.
-       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-       * 
- * - * string runtime_env = 2; - */ - public com.google.protobuf.ByteString - getRuntimeEnvBytes() { - java.lang.Object ref = runtimeEnv_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runtimeEnv_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * runtime_env is base64 encoded.
-       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-       * 
- * - * string runtime_env = 2; - */ - public Builder setRuntimeEnv( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - runtimeEnv_ = value; - onChanged(); - return this; - } - /** - *
-       * runtime_env is base64 encoded.
-       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-       * 
- * - * string runtime_env = 2; - */ - public Builder clearRuntimeEnv() { - - runtimeEnv_ = getDefaultInstance().getRuntimeEnv(); - onChanged(); - return this; - } - /** - *
-       * runtime_env is base64 encoded.
-       * Ray runtime environments: https://docs.ray.io/en/latest/ray-core/handling-dependencies.html#runtime-environments
-       * 
- * - * string runtime_env = 2; - */ - public Builder setRuntimeEnvBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - runtimeEnv_ = value; - onChanged(); - return this; - } - - private boolean shutdownAfterJobFinishes_ ; - /** - *
-       * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
-       * 
- * - * bool shutdown_after_job_finishes = 3; - */ - public boolean getShutdownAfterJobFinishes() { - return shutdownAfterJobFinishes_; - } - /** - *
-       * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
-       * 
- * - * bool shutdown_after_job_finishes = 3; - */ - public Builder setShutdownAfterJobFinishes(boolean value) { - - shutdownAfterJobFinishes_ = value; - onChanged(); - return this; - } - /** - *
-       * shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes.
-       * 
- * - * bool shutdown_after_job_finishes = 3; - */ - public Builder clearShutdownAfterJobFinishes() { - - shutdownAfterJobFinishes_ = false; - onChanged(); - return this; - } - - private int ttlSecondsAfterFinished_ ; - /** - *
-       * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
-       * 
- * - * int32 ttl_seconds_after_finished = 4; - */ - public int getTtlSecondsAfterFinished() { - return ttlSecondsAfterFinished_; - } - /** - *
-       * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
-       * 
- * - * int32 ttl_seconds_after_finished = 4; - */ - public Builder setTtlSecondsAfterFinished(int value) { - - ttlSecondsAfterFinished_ = value; - onChanged(); - return this; - } - /** - *
-       * ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes.
-       * 
- * - * int32 ttl_seconds_after_finished = 4; - */ - public Builder clearTtlSecondsAfterFinished() { - - ttlSecondsAfterFinished_ = 0; - onChanged(); - return this; - } - @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.plugins.RayJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayJob) - private static final flyteidl.plugins.Ray.RayJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Ray.RayJob(); - } - - public static flyteidl.plugins.Ray.RayJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RayJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RayJob(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.plugins.Ray.RayJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface RayClusterOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.RayCluster) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - boolean hasHeadGroupSpec(); - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec(); - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder(); - - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - java.util.List - getWorkerGroupSpecList(); - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index); - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - int getWorkerGroupSpecCount(); - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - java.util.List - getWorkerGroupSpecOrBuilderList(); - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( - int index); - - /** - *
-     * Whether to enable autoscaling.
-     * 
- * - * bool enable_autoscaling = 3; - */ - boolean getEnableAutoscaling(); - } - /** - *
-   * Define Ray cluster defines the desired state of RayCluster
-   * 
- * - * Protobuf type {@code flyteidl.plugins.RayCluster} - */ - public static final class RayCluster extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.RayCluster) - RayClusterOrBuilder { - private static final long serialVersionUID = 0L; - // Use RayCluster.newBuilder() to construct. - private RayCluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RayCluster() { - workerGroupSpec_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RayCluster( - 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.plugins.Ray.HeadGroupSpec.Builder subBuilder = null; - if (headGroupSpec_ != null) { - subBuilder = headGroupSpec_.toBuilder(); - } - headGroupSpec_ = input.readMessage(flyteidl.plugins.Ray.HeadGroupSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(headGroupSpec_); - headGroupSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - workerGroupSpec_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - workerGroupSpec_.add( - input.readMessage(flyteidl.plugins.Ray.WorkerGroupSpec.parser(), extensionRegistry)); - break; - } - case 24: { - - enableAutoscaling_ = input.readBool(); - 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 { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - workerGroupSpec_ = java.util.Collections.unmodifiableList(workerGroupSpec_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.RayCluster.class, flyteidl.plugins.Ray.RayCluster.Builder.class); - } - - private int bitField0_; - public static final int HEAD_GROUP_SPEC_FIELD_NUMBER = 1; - private flyteidl.plugins.Ray.HeadGroupSpec headGroupSpec_; - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public boolean hasHeadGroupSpec() { - return headGroupSpec_ != null; - } - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec() { - return headGroupSpec_ == null ? flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; - } - /** - *
-     * HeadGroupSpecs are the spec for the head pod
-     * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder() { - return getHeadGroupSpec(); - } - - public static final int WORKER_GROUP_SPEC_FIELD_NUMBER = 2; - private java.util.List workerGroupSpec_; - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public java.util.List getWorkerGroupSpecList() { - return workerGroupSpec_; - } - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public java.util.List - getWorkerGroupSpecOrBuilderList() { - return workerGroupSpec_; - } - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public int getWorkerGroupSpecCount() { - return workerGroupSpec_.size(); - } - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index) { - return workerGroupSpec_.get(index); - } - /** - *
-     * WorkerGroupSpecs are the specs for the worker pods
-     * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( - int index) { - return workerGroupSpec_.get(index); - } - - public static final int ENABLE_AUTOSCALING_FIELD_NUMBER = 3; - private boolean enableAutoscaling_; - /** - *
-     * Whether to enable autoscaling.
-     * 
- * - * bool enable_autoscaling = 3; - */ - public boolean getEnableAutoscaling() { - return enableAutoscaling_; - } - - 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 (headGroupSpec_ != null) { - output.writeMessage(1, getHeadGroupSpec()); - } - for (int i = 0; i < workerGroupSpec_.size(); i++) { - output.writeMessage(2, workerGroupSpec_.get(i)); - } - if (enableAutoscaling_ != false) { - output.writeBool(3, enableAutoscaling_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (headGroupSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHeadGroupSpec()); - } - for (int i = 0; i < workerGroupSpec_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, workerGroupSpec_.get(i)); - } - if (enableAutoscaling_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, enableAutoscaling_); - } - 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.plugins.Ray.RayCluster)) { - return super.equals(obj); - } - flyteidl.plugins.Ray.RayCluster other = (flyteidl.plugins.Ray.RayCluster) obj; - - if (hasHeadGroupSpec() != other.hasHeadGroupSpec()) return false; - if (hasHeadGroupSpec()) { - if (!getHeadGroupSpec() - .equals(other.getHeadGroupSpec())) return false; - } - if (!getWorkerGroupSpecList() - .equals(other.getWorkerGroupSpecList())) return false; - if (getEnableAutoscaling() - != other.getEnableAutoscaling()) 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 (hasHeadGroupSpec()) { - hash = (37 * hash) + HEAD_GROUP_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getHeadGroupSpec().hashCode(); - } - if (getWorkerGroupSpecCount() > 0) { - hash = (37 * hash) + WORKER_GROUP_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getWorkerGroupSpecList().hashCode(); - } - hash = (37 * hash) + ENABLE_AUTOSCALING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAutoscaling()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Ray.RayCluster parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.RayCluster parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayCluster 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.plugins.Ray.RayCluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayCluster 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.plugins.Ray.RayCluster parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.RayCluster 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.plugins.Ray.RayCluster 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; - } - /** - *
-     * Define Ray cluster defines the desired state of RayCluster
-     * 
- * - * Protobuf type {@code flyteidl.plugins.RayCluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.RayCluster) - flyteidl.plugins.Ray.RayClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.RayCluster.class, flyteidl.plugins.Ray.RayCluster.Builder.class); - } - - // Construct using flyteidl.plugins.Ray.RayCluster.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getWorkerGroupSpecFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (headGroupSpecBuilder_ == null) { - headGroupSpec_ = null; - } else { - headGroupSpec_ = null; - headGroupSpecBuilder_ = null; - } - if (workerGroupSpecBuilder_ == null) { - workerGroupSpec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - } else { - workerGroupSpecBuilder_.clear(); - } - enableAutoscaling_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_RayCluster_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayCluster getDefaultInstanceForType() { - return flyteidl.plugins.Ray.RayCluster.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayCluster build() { - flyteidl.plugins.Ray.RayCluster result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Ray.RayCluster buildPartial() { - flyteidl.plugins.Ray.RayCluster result = new flyteidl.plugins.Ray.RayCluster(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (headGroupSpecBuilder_ == null) { - result.headGroupSpec_ = headGroupSpec_; - } else { - result.headGroupSpec_ = headGroupSpecBuilder_.build(); - } - if (workerGroupSpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - workerGroupSpec_ = java.util.Collections.unmodifiableList(workerGroupSpec_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.workerGroupSpec_ = workerGroupSpec_; - } else { - result.workerGroupSpec_ = workerGroupSpecBuilder_.build(); - } - result.enableAutoscaling_ = enableAutoscaling_; - result.bitField0_ = to_bitField0_; - 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.plugins.Ray.RayCluster) { - return mergeFrom((flyteidl.plugins.Ray.RayCluster)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Ray.RayCluster other) { - if (other == flyteidl.plugins.Ray.RayCluster.getDefaultInstance()) return this; - if (other.hasHeadGroupSpec()) { - mergeHeadGroupSpec(other.getHeadGroupSpec()); - } - if (workerGroupSpecBuilder_ == null) { - if (!other.workerGroupSpec_.isEmpty()) { - if (workerGroupSpec_.isEmpty()) { - workerGroupSpec_ = other.workerGroupSpec_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.addAll(other.workerGroupSpec_); - } - onChanged(); - } - } else { - if (!other.workerGroupSpec_.isEmpty()) { - if (workerGroupSpecBuilder_.isEmpty()) { - workerGroupSpecBuilder_.dispose(); - workerGroupSpecBuilder_ = null; - workerGroupSpec_ = other.workerGroupSpec_; - bitField0_ = (bitField0_ & ~0x00000002); - workerGroupSpecBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWorkerGroupSpecFieldBuilder() : null; - } else { - workerGroupSpecBuilder_.addAllMessages(other.workerGroupSpec_); - } - } - } - if (other.getEnableAutoscaling() != false) { - setEnableAutoscaling(other.getEnableAutoscaling()); - } - 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.plugins.Ray.RayCluster parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Ray.RayCluster) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private flyteidl.plugins.Ray.HeadGroupSpec headGroupSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder> headGroupSpecBuilder_; - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public boolean hasHeadGroupSpec() { - return headGroupSpecBuilder_ != null || headGroupSpec_ != null; - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public flyteidl.plugins.Ray.HeadGroupSpec getHeadGroupSpec() { - if (headGroupSpecBuilder_ == null) { - return headGroupSpec_ == null ? flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; - } else { - return headGroupSpecBuilder_.getMessage(); - } - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public Builder setHeadGroupSpec(flyteidl.plugins.Ray.HeadGroupSpec value) { - if (headGroupSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - headGroupSpec_ = value; - onChanged(); - } else { - headGroupSpecBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public Builder setHeadGroupSpec( - flyteidl.plugins.Ray.HeadGroupSpec.Builder builderForValue) { - if (headGroupSpecBuilder_ == null) { - headGroupSpec_ = builderForValue.build(); - onChanged(); - } else { - headGroupSpecBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public Builder mergeHeadGroupSpec(flyteidl.plugins.Ray.HeadGroupSpec value) { - if (headGroupSpecBuilder_ == null) { - if (headGroupSpec_ != null) { - headGroupSpec_ = - flyteidl.plugins.Ray.HeadGroupSpec.newBuilder(headGroupSpec_).mergeFrom(value).buildPartial(); - } else { - headGroupSpec_ = value; - } - onChanged(); - } else { - headGroupSpecBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public Builder clearHeadGroupSpec() { - if (headGroupSpecBuilder_ == null) { - headGroupSpec_ = null; - onChanged(); - } else { - headGroupSpec_ = null; - headGroupSpecBuilder_ = null; - } - - return this; - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public flyteidl.plugins.Ray.HeadGroupSpec.Builder getHeadGroupSpecBuilder() { - - onChanged(); - return getHeadGroupSpecFieldBuilder().getBuilder(); - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - public flyteidl.plugins.Ray.HeadGroupSpecOrBuilder getHeadGroupSpecOrBuilder() { - if (headGroupSpecBuilder_ != null) { - return headGroupSpecBuilder_.getMessageOrBuilder(); - } else { - return headGroupSpec_ == null ? - flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance() : headGroupSpec_; - } - } - /** - *
-       * HeadGroupSpecs are the spec for the head pod
-       * 
- * - * .flyteidl.plugins.HeadGroupSpec head_group_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder> - getHeadGroupSpecFieldBuilder() { - if (headGroupSpecBuilder_ == null) { - headGroupSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.Ray.HeadGroupSpec, flyteidl.plugins.Ray.HeadGroupSpec.Builder, flyteidl.plugins.Ray.HeadGroupSpecOrBuilder>( - getHeadGroupSpec(), - getParentForChildren(), - isClean()); - headGroupSpec_ = null; - } - return headGroupSpecBuilder_; - } - - private java.util.List workerGroupSpec_ = - java.util.Collections.emptyList(); - private void ensureWorkerGroupSpecIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - workerGroupSpec_ = new java.util.ArrayList(workerGroupSpec_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder> workerGroupSpecBuilder_; - - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public java.util.List getWorkerGroupSpecList() { - if (workerGroupSpecBuilder_ == null) { - return java.util.Collections.unmodifiableList(workerGroupSpec_); - } else { - return workerGroupSpecBuilder_.getMessageList(); - } - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public int getWorkerGroupSpecCount() { - if (workerGroupSpecBuilder_ == null) { - return workerGroupSpec_.size(); - } else { - return workerGroupSpecBuilder_.getCount(); - } - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpec getWorkerGroupSpec(int index) { - if (workerGroupSpecBuilder_ == null) { - return workerGroupSpec_.get(index); - } else { - return workerGroupSpecBuilder_.getMessage(index); - } - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder setWorkerGroupSpec( - int index, flyteidl.plugins.Ray.WorkerGroupSpec value) { - if (workerGroupSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.set(index, value); - onChanged(); - } else { - workerGroupSpecBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder setWorkerGroupSpec( - int index, flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { - if (workerGroupSpecBuilder_ == null) { - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.set(index, builderForValue.build()); - onChanged(); - } else { - workerGroupSpecBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder addWorkerGroupSpec(flyteidl.plugins.Ray.WorkerGroupSpec value) { - if (workerGroupSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.add(value); - onChanged(); - } else { - workerGroupSpecBuilder_.addMessage(value); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder addWorkerGroupSpec( - int index, flyteidl.plugins.Ray.WorkerGroupSpec value) { - if (workerGroupSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.add(index, value); - onChanged(); - } else { - workerGroupSpecBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder addWorkerGroupSpec( - flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { - if (workerGroupSpecBuilder_ == null) { - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.add(builderForValue.build()); - onChanged(); - } else { - workerGroupSpecBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder addWorkerGroupSpec( - int index, flyteidl.plugins.Ray.WorkerGroupSpec.Builder builderForValue) { - if (workerGroupSpecBuilder_ == null) { - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.add(index, builderForValue.build()); - onChanged(); - } else { - workerGroupSpecBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder addAllWorkerGroupSpec( - java.lang.Iterable values) { - if (workerGroupSpecBuilder_ == null) { - ensureWorkerGroupSpecIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, workerGroupSpec_); - onChanged(); - } else { - workerGroupSpecBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder clearWorkerGroupSpec() { - if (workerGroupSpecBuilder_ == null) { - workerGroupSpec_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - workerGroupSpecBuilder_.clear(); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public Builder removeWorkerGroupSpec(int index) { - if (workerGroupSpecBuilder_ == null) { - ensureWorkerGroupSpecIsMutable(); - workerGroupSpec_.remove(index); - onChanged(); - } else { - workerGroupSpecBuilder_.remove(index); - } - return this; - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpec.Builder getWorkerGroupSpecBuilder( - int index) { - return getWorkerGroupSpecFieldBuilder().getBuilder(index); - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder getWorkerGroupSpecOrBuilder( - int index) { - if (workerGroupSpecBuilder_ == null) { - return workerGroupSpec_.get(index); } else { - return workerGroupSpecBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public java.util.List - getWorkerGroupSpecOrBuilderList() { - if (workerGroupSpecBuilder_ != null) { - return workerGroupSpecBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(workerGroupSpec_); - } - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpec.Builder addWorkerGroupSpecBuilder() { - return getWorkerGroupSpecFieldBuilder().addBuilder( - flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()); - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public flyteidl.plugins.Ray.WorkerGroupSpec.Builder addWorkerGroupSpecBuilder( - int index) { - return getWorkerGroupSpecFieldBuilder().addBuilder( - index, flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()); - } - /** - *
-       * WorkerGroupSpecs are the specs for the worker pods
-       * 
- * - * repeated .flyteidl.plugins.WorkerGroupSpec worker_group_spec = 2; - */ - public java.util.List - getWorkerGroupSpecBuilderList() { - return getWorkerGroupSpecFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder> - getWorkerGroupSpecFieldBuilder() { - if (workerGroupSpecBuilder_ == null) { - workerGroupSpecBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - flyteidl.plugins.Ray.WorkerGroupSpec, flyteidl.plugins.Ray.WorkerGroupSpec.Builder, flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder>( - workerGroupSpec_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - workerGroupSpec_ = null; - } - return workerGroupSpecBuilder_; - } - - private boolean enableAutoscaling_ ; - /** - *
-       * Whether to enable autoscaling.
-       * 
- * - * bool enable_autoscaling = 3; - */ - public boolean getEnableAutoscaling() { - return enableAutoscaling_; - } - /** - *
-       * Whether to enable autoscaling.
-       * 
- * - * bool enable_autoscaling = 3; - */ - public Builder setEnableAutoscaling(boolean value) { - - enableAutoscaling_ = value; - onChanged(); - return this; - } - /** - *
-       * Whether to enable autoscaling.
-       * 
- * - * bool enable_autoscaling = 3; - */ - public Builder clearEnableAutoscaling() { - - enableAutoscaling_ = false; - onChanged(); - return this; - } - @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.plugins.RayCluster) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.RayCluster) - private static final flyteidl.plugins.Ray.RayCluster DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Ray.RayCluster(); - } - - public static flyteidl.plugins.Ray.RayCluster getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RayCluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RayCluster(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.plugins.Ray.RayCluster getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface HeadGroupSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.HeadGroupSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - int getRayStartParamsCount(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - boolean containsRayStartParams( - java.lang.String key); - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRayStartParams(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - java.util.Map - getRayStartParamsMap(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - java.lang.String getRayStartParamsOrThrow( - java.lang.String key); - } - /** - *
-   * HeadGroupSpec are the spec for the head pod
-   * 
- * - * Protobuf type {@code flyteidl.plugins.HeadGroupSpec} - */ - public static final class HeadGroupSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.HeadGroupSpec) - HeadGroupSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use HeadGroupSpec.newBuilder() to construct. - private HeadGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private HeadGroupSpec() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private HeadGroupSpec( - 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: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - rayStartParams_ = com.google.protobuf.MapField.newMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry - rayStartParams__ = input.readMessage( - RayStartParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rayStartParams_.getMutableMap().put( - rayStartParams__.getKey(), rayStartParams__.getValue()); - 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.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.HeadGroupSpec.class, flyteidl.plugins.Ray.HeadGroupSpec.Builder.class); - } - - public static final int RAY_START_PARAMS_FIELD_NUMBER = 1; - private static final class RayStartParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> rayStartParams_; - private com.google.protobuf.MapField - internalGetRayStartParams() { - if (rayStartParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - return rayStartParams_; - } - - public int getRayStartParamsCount() { - return internalGetRayStartParams().getMap().size(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - public boolean containsRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRayStartParams().getMap().containsKey(key); - } - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRayStartParams() { - return getRayStartParamsMap(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.util.Map getRayStartParamsMap() { - return internalGetRayStartParams().getMap(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.lang.String getRayStartParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 { - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRayStartParams(), - RayStartParamsDefaultEntryHolder.defaultEntry, - 1); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (java.util.Map.Entry entry - : internalGetRayStartParams().getMap().entrySet()) { - com.google.protobuf.MapEntry - rayStartParams__ = RayStartParamsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rayStartParams__); - } - 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.plugins.Ray.HeadGroupSpec)) { - return super.equals(obj); - } - flyteidl.plugins.Ray.HeadGroupSpec other = (flyteidl.plugins.Ray.HeadGroupSpec) obj; - - if (!internalGetRayStartParams().equals( - other.internalGetRayStartParams())) 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 (!internalGetRayStartParams().getMap().isEmpty()) { - hash = (37 * hash) + RAY_START_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRayStartParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.HeadGroupSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.HeadGroupSpec 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.plugins.Ray.HeadGroupSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.HeadGroupSpec 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.plugins.Ray.HeadGroupSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.HeadGroupSpec 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.plugins.Ray.HeadGroupSpec 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; - } - /** - *
-     * HeadGroupSpec are the spec for the head pod
-     * 
- * - * Protobuf type {@code flyteidl.plugins.HeadGroupSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.HeadGroupSpec) - flyteidl.plugins.Ray.HeadGroupSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 1: - return internalGetRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 1: - return internalGetMutableRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.HeadGroupSpec.class, flyteidl.plugins.Ray.HeadGroupSpec.Builder.class); - } - - // Construct using flyteidl.plugins.Ray.HeadGroupSpec.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(); - internalGetMutableRayStartParams().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Ray.HeadGroupSpec getDefaultInstanceForType() { - return flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Ray.HeadGroupSpec build() { - flyteidl.plugins.Ray.HeadGroupSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Ray.HeadGroupSpec buildPartial() { - flyteidl.plugins.Ray.HeadGroupSpec result = new flyteidl.plugins.Ray.HeadGroupSpec(this); - int from_bitField0_ = bitField0_; - result.rayStartParams_ = internalGetRayStartParams(); - result.rayStartParams_.makeImmutable(); - 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.plugins.Ray.HeadGroupSpec) { - return mergeFrom((flyteidl.plugins.Ray.HeadGroupSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Ray.HeadGroupSpec other) { - if (other == flyteidl.plugins.Ray.HeadGroupSpec.getDefaultInstance()) return this; - internalGetMutableRayStartParams().mergeFrom( - other.internalGetRayStartParams()); - 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.plugins.Ray.HeadGroupSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Ray.HeadGroupSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> rayStartParams_; - private com.google.protobuf.MapField - internalGetRayStartParams() { - if (rayStartParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - return rayStartParams_; - } - private com.google.protobuf.MapField - internalGetMutableRayStartParams() { - onChanged();; - if (rayStartParams_ == null) { - rayStartParams_ = com.google.protobuf.MapField.newMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - if (!rayStartParams_.isMutable()) { - rayStartParams_ = rayStartParams_.copy(); - } - return rayStartParams_; - } - - public int getRayStartParamsCount() { - return internalGetRayStartParams().getMap().size(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public boolean containsRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRayStartParams().getMap().containsKey(key); - } - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRayStartParams() { - return getRayStartParamsMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.util.Map getRayStartParamsMap() { - return internalGetRayStartParams().getMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public java.lang.String getRayStartParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRayStartParams() { - internalGetMutableRayStartParams().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public Builder removeRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRayStartParams().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRayStartParams() { - return internalGetMutableRayStartParams().getMutableMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - public Builder putRayStartParams( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRayStartParams().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 1; - */ - - public Builder putAllRayStartParams( - java.util.Map values) { - internalGetMutableRayStartParams().getMutableMap() - .putAll(values); - return this; - } - @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.plugins.HeadGroupSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.HeadGroupSpec) - private static final flyteidl.plugins.Ray.HeadGroupSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Ray.HeadGroupSpec(); - } - - public static flyteidl.plugins.Ray.HeadGroupSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HeadGroupSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HeadGroupSpec(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.plugins.Ray.HeadGroupSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface WorkerGroupSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.WorkerGroupSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-     * 
- * - * string group_name = 1; - */ - java.lang.String getGroupName(); - /** - *
-     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-     * 
- * - * string group_name = 1; - */ - com.google.protobuf.ByteString - getGroupNameBytes(); - - /** - *
-     * Required. Desired replicas of the worker group. Defaults to 1.
-     * 
- * - * int32 replicas = 2; - */ - int getReplicas(); - - /** - *
-     * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
-     * 
- * - * int32 min_replicas = 3; - */ - int getMinReplicas(); - - /** - *
-     * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
-     * 
- * - * int32 max_replicas = 4; - */ - int getMaxReplicas(); - - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - int getRayStartParamsCount(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - boolean containsRayStartParams( - java.lang.String key); - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getRayStartParams(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - java.util.Map - getRayStartParamsMap(); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - java.lang.String getRayStartParamsOrThrow( - java.lang.String key); - } - /** - *
-   * WorkerGroupSpec are the specs for the worker pods
-   * 
- * - * Protobuf type {@code flyteidl.plugins.WorkerGroupSpec} - */ - public static final class WorkerGroupSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.WorkerGroupSpec) - WorkerGroupSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use WorkerGroupSpec.newBuilder() to construct. - private WorkerGroupSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WorkerGroupSpec() { - groupName_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private WorkerGroupSpec( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - groupName_ = s; - break; - } - case 16: { - - replicas_ = input.readInt32(); - break; - } - case 24: { - - minReplicas_ = input.readInt32(); - break; - } - case 32: { - - maxReplicas_ = input.readInt32(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - rayStartParams_ = com.google.protobuf.MapField.newMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - rayStartParams__ = input.readMessage( - RayStartParamsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - rayStartParams_.getMutableMap().put( - rayStartParams__.getKey(), rayStartParams__.getValue()); - 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.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.WorkerGroupSpec.class, flyteidl.plugins.Ray.WorkerGroupSpec.Builder.class); - } - - private int bitField0_; - public static final int GROUP_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object groupName_; - /** - *
-     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-     * 
- * - * string group_name = 1; - */ - public java.lang.String getGroupName() { - java.lang.Object ref = groupName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupName_ = s; - return s; - } - } - /** - *
-     * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-     * 
- * - * string group_name = 1; - */ - public com.google.protobuf.ByteString - getGroupNameBytes() { - java.lang.Object ref = groupName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REPLICAS_FIELD_NUMBER = 2; - private int replicas_; - /** - *
-     * Required. Desired replicas of the worker group. Defaults to 1.
-     * 
- * - * int32 replicas = 2; - */ - public int getReplicas() { - return replicas_; - } - - public static final int MIN_REPLICAS_FIELD_NUMBER = 3; - private int minReplicas_; - /** - *
-     * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
-     * 
- * - * int32 min_replicas = 3; - */ - public int getMinReplicas() { - return minReplicas_; - } - - public static final int MAX_REPLICAS_FIELD_NUMBER = 4; - private int maxReplicas_; - /** - *
-     * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
-     * 
- * - * int32 max_replicas = 4; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - - public static final int RAY_START_PARAMS_FIELD_NUMBER = 5; - private static final class RayStartParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> rayStartParams_; - private com.google.protobuf.MapField - internalGetRayStartParams() { - if (rayStartParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - return rayStartParams_; - } - - public int getRayStartParamsCount() { - return internalGetRayStartParams().getMap().size(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - public boolean containsRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRayStartParams().getMap().containsKey(key); - } - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRayStartParams() { - return getRayStartParamsMap(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.util.Map getRayStartParamsMap() { - return internalGetRayStartParams().getMap(); - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-     * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-     * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-     * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.lang.String getRayStartParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - 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 (!getGroupNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, groupName_); - } - if (replicas_ != 0) { - output.writeInt32(2, replicas_); - } - if (minReplicas_ != 0) { - output.writeInt32(3, minReplicas_); - } - if (maxReplicas_ != 0) { - output.writeInt32(4, maxReplicas_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetRayStartParams(), - RayStartParamsDefaultEntryHolder.defaultEntry, - 5); - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getGroupNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, groupName_); - } - if (replicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, replicas_); - } - if (minReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, minReplicas_); - } - if (maxReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxReplicas_); - } - for (java.util.Map.Entry entry - : internalGetRayStartParams().getMap().entrySet()) { - com.google.protobuf.MapEntry - rayStartParams__ = RayStartParamsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, rayStartParams__); - } - 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.plugins.Ray.WorkerGroupSpec)) { - return super.equals(obj); - } - flyteidl.plugins.Ray.WorkerGroupSpec other = (flyteidl.plugins.Ray.WorkerGroupSpec) obj; - - if (!getGroupName() - .equals(other.getGroupName())) return false; - if (getReplicas() - != other.getReplicas()) return false; - if (getMinReplicas() - != other.getMinReplicas()) return false; - if (getMaxReplicas() - != other.getMaxReplicas()) return false; - if (!internalGetRayStartParams().equals( - other.internalGetRayStartParams())) 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(); - hash = (37 * hash) + GROUP_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGroupName().hashCode(); - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMinReplicas(); - hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReplicas(); - if (!internalGetRayStartParams().getMap().isEmpty()) { - hash = (37 * hash) + RAY_START_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetRayStartParams().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec 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.plugins.Ray.WorkerGroupSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec 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.plugins.Ray.WorkerGroupSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Ray.WorkerGroupSpec 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.plugins.Ray.WorkerGroupSpec 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; - } - /** - *
-     * WorkerGroupSpec are the specs for the worker pods
-     * 
- * - * Protobuf type {@code flyteidl.plugins.WorkerGroupSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.WorkerGroupSpec) - flyteidl.plugins.Ray.WorkerGroupSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 5: - return internalGetRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 5: - return internalGetMutableRayStartParams(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Ray.WorkerGroupSpec.class, flyteidl.plugins.Ray.WorkerGroupSpec.Builder.class); - } - - // Construct using flyteidl.plugins.Ray.WorkerGroupSpec.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(); - groupName_ = ""; - - replicas_ = 0; - - minReplicas_ = 0; - - maxReplicas_ = 0; - - internalGetMutableRayStartParams().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Ray.internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Ray.WorkerGroupSpec getDefaultInstanceForType() { - return flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Ray.WorkerGroupSpec build() { - flyteidl.plugins.Ray.WorkerGroupSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Ray.WorkerGroupSpec buildPartial() { - flyteidl.plugins.Ray.WorkerGroupSpec result = new flyteidl.plugins.Ray.WorkerGroupSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.groupName_ = groupName_; - result.replicas_ = replicas_; - result.minReplicas_ = minReplicas_; - result.maxReplicas_ = maxReplicas_; - result.rayStartParams_ = internalGetRayStartParams(); - result.rayStartParams_.makeImmutable(); - result.bitField0_ = to_bitField0_; - 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.plugins.Ray.WorkerGroupSpec) { - return mergeFrom((flyteidl.plugins.Ray.WorkerGroupSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Ray.WorkerGroupSpec other) { - if (other == flyteidl.plugins.Ray.WorkerGroupSpec.getDefaultInstance()) return this; - if (!other.getGroupName().isEmpty()) { - groupName_ = other.groupName_; - onChanged(); - } - if (other.getReplicas() != 0) { - setReplicas(other.getReplicas()); - } - if (other.getMinReplicas() != 0) { - setMinReplicas(other.getMinReplicas()); - } - if (other.getMaxReplicas() != 0) { - setMaxReplicas(other.getMaxReplicas()); - } - internalGetMutableRayStartParams().mergeFrom( - other.internalGetRayStartParams()); - 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.plugins.Ray.WorkerGroupSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Ray.WorkerGroupSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object groupName_ = ""; - /** - *
-       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-       * 
- * - * string group_name = 1; - */ - public java.lang.String getGroupName() { - java.lang.Object ref = groupName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-       * 
- * - * string group_name = 1; - */ - public com.google.protobuf.ByteString - getGroupNameBytes() { - java.lang.Object ref = groupName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - groupName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-       * 
- * - * string group_name = 1; - */ - public Builder setGroupName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - groupName_ = value; - onChanged(); - return this; - } - /** - *
-       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-       * 
- * - * string group_name = 1; - */ - public Builder clearGroupName() { - - groupName_ = getDefaultInstance().getGroupName(); - onChanged(); - return this; - } - /** - *
-       * Required. RayCluster can have multiple worker groups, and it distinguishes them by name
-       * 
- * - * string group_name = 1; - */ - public Builder setGroupNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - groupName_ = value; - onChanged(); - return this; - } - - private int replicas_ ; - /** - *
-       * Required. Desired replicas of the worker group. Defaults to 1.
-       * 
- * - * int32 replicas = 2; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * Required. Desired replicas of the worker group. Defaults to 1.
-       * 
- * - * int32 replicas = 2; - */ - public Builder setReplicas(int value) { - - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Required. Desired replicas of the worker group. Defaults to 1.
-       * 
- * - * int32 replicas = 2; - */ - public Builder clearReplicas() { - - replicas_ = 0; - onChanged(); - return this; - } - - private int minReplicas_ ; - /** - *
-       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
-       * 
- * - * int32 min_replicas = 3; - */ - public int getMinReplicas() { - return minReplicas_; - } - /** - *
-       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
-       * 
- * - * int32 min_replicas = 3; - */ - public Builder setMinReplicas(int value) { - - minReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional. Min replicas of the worker group. MinReplicas defaults to 1.
-       * 
- * - * int32 min_replicas = 3; - */ - public Builder clearMinReplicas() { - - minReplicas_ = 0; - onChanged(); - return this; - } - - private int maxReplicas_ ; - /** - *
-       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
-       * 
- * - * int32 max_replicas = 4; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - /** - *
-       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
-       * 
- * - * int32 max_replicas = 4; - */ - public Builder setMaxReplicas(int value) { - - maxReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32
-       * 
- * - * int32 max_replicas = 4; - */ - public Builder clearMaxReplicas() { - - maxReplicas_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> rayStartParams_; - private com.google.protobuf.MapField - internalGetRayStartParams() { - if (rayStartParams_ == null) { - return com.google.protobuf.MapField.emptyMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - return rayStartParams_; - } - private com.google.protobuf.MapField - internalGetMutableRayStartParams() { - onChanged();; - if (rayStartParams_ == null) { - rayStartParams_ = com.google.protobuf.MapField.newMapField( - RayStartParamsDefaultEntryHolder.defaultEntry); - } - if (!rayStartParams_.isMutable()) { - rayStartParams_ = rayStartParams_.copy(); - } - return rayStartParams_; - } - - public int getRayStartParamsCount() { - return internalGetRayStartParams().getMap().size(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public boolean containsRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetRayStartParams().getMap().containsKey(key); - } - /** - * Use {@link #getRayStartParamsMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getRayStartParams() { - return getRayStartParamsMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.util.Map getRayStartParamsMap() { - return internalGetRayStartParams().getMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.lang.String getRayStartParamsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public java.lang.String getRayStartParamsOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetRayStartParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearRayStartParams() { - internalGetMutableRayStartParams().getMutableMap() - .clear(); - return this; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public Builder removeRayStartParams( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRayStartParams().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableRayStartParams() { - return internalGetMutableRayStartParams().getMutableMap(); - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - public Builder putRayStartParams( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableRayStartParams().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * Optional. RayStartParams are the params of the start command: address, object-store-memory.
-       * Refer to https://docs.ray.io/en/latest/ray-core/package-ref.html#ray-start
-       * 
- * - * map<string, string> ray_start_params = 5; - */ - - public Builder putAllRayStartParams( - java.util.Map values) { - internalGetMutableRayStartParams().getMutableMap() - .putAll(values); - return this; - } - @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.plugins.WorkerGroupSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.WorkerGroupSpec) - private static final flyteidl.plugins.Ray.WorkerGroupSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Ray.WorkerGroupSpec(); - } - - public static flyteidl.plugins.Ray.WorkerGroupSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WorkerGroupSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkerGroupSpec(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.plugins.Ray.WorkerGroupSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_RayJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_RayJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_RayCluster_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HeadGroupSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\032flyteidl/plugins/ray.proto\022\020flyteidl.p" + - "lugins\"\231\001\n\006RayJob\0221\n\013ray_cluster\030\001 \001(\0132\034" + - ".flyteidl.plugins.RayCluster\022\023\n\013runtime_" + - "env\030\002 \001(\t\022#\n\033shutdown_after_job_finishes" + - "\030\003 \001(\010\022\"\n\032ttl_seconds_after_finished\030\004 \001" + - "(\005\"\240\001\n\nRayCluster\0228\n\017head_group_spec\030\001 \001" + - "(\0132\037.flyteidl.plugins.HeadGroupSpec\022<\n\021w" + - "orker_group_spec\030\002 \003(\0132!.flyteidl.plugin" + - "s.WorkerGroupSpec\022\032\n\022enable_autoscaling\030" + - "\003 \001(\010\"\225\001\n\rHeadGroupSpec\022M\n\020ray_start_par" + - "ams\030\001 \003(\01323.flyteidl.plugins.HeadGroupSp" + - "ec.RayStartParamsEntry\0325\n\023RayStartParams" + - "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\353\001" + - "\n\017WorkerGroupSpec\022\022\n\ngroup_name\030\001 \001(\t\022\020\n" + - "\010replicas\030\002 \001(\005\022\024\n\014min_replicas\030\003 \001(\005\022\024\n" + - "\014max_replicas\030\004 \001(\005\022O\n\020ray_start_params\030" + - "\005 \003(\01325.flyteidl.plugins.WorkerGroupSpec" + - ".RayStartParamsEntry\0325\n\023RayStartParamsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B?Z=g" + - "ithub.com/flyteorg/flyte/flyteidl/gen/pb" + - "-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_RayJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_RayJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_RayJob_descriptor, - new java.lang.String[] { "RayCluster", "RuntimeEnv", "ShutdownAfterJobFinishes", "TtlSecondsAfterFinished", }); - internal_static_flyteidl_plugins_RayCluster_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_RayCluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_RayCluster_descriptor, - new java.lang.String[] { "HeadGroupSpec", "WorkerGroupSpec", "EnableAutoscaling", }); - internal_static_flyteidl_plugins_HeadGroupSpec_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_HeadGroupSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HeadGroupSpec_descriptor, - new java.lang.String[] { "RayStartParams", }); - internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor = - internal_static_flyteidl_plugins_HeadGroupSpec_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_HeadGroupSpec_RayStartParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_plugins_WorkerGroupSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor, - new java.lang.String[] { "GroupName", "Replicas", "MinReplicas", "MaxReplicas", "RayStartParams", }); - internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor = - internal_static_flyteidl_plugins_WorkerGroupSpec_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_WorkerGroupSpec_RayStartParamsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java b/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java deleted file mode 100644 index bd236e10eb..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Spark.java +++ /dev/null @@ -1,2818 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/spark.proto - -package flyteidl.plugins; - -public final class Spark { - private Spark() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface SparkApplicationOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkApplication) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.plugins.SparkApplication} - */ - public static final class SparkApplication extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkApplication) - SparkApplicationOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkApplication.newBuilder() to construct. - private SparkApplication(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkApplication() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkApplication( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - /** - * Protobuf enum {@code flyteidl.plugins.SparkApplication.Type} - */ - public enum Type - implements com.google.protobuf.ProtocolMessageEnum { - /** - * PYTHON = 0; - */ - PYTHON(0), - /** - * JAVA = 1; - */ - JAVA(1), - /** - * SCALA = 2; - */ - SCALA(2), - /** - * R = 3; - */ - R(3), - UNRECOGNIZED(-1), - ; - - /** - * PYTHON = 0; - */ - public static final int PYTHON_VALUE = 0; - /** - * JAVA = 1; - */ - public static final int JAVA_VALUE = 1; - /** - * SCALA = 2; - */ - public static final int SCALA_VALUE = 2; - /** - * R = 3; - */ - public static final int R_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Type valueOf(int value) { - return forNumber(value); - } - - public static Type forNumber(int value) { - switch (value) { - case 0: return PYTHON; - case 1: return JAVA; - case 2: return SCALA; - case 3: return R; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Type> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.Spark.SparkApplication.getDescriptor().getEnumTypes().get(0); - } - - private static final Type[] VALUES = values(); - - public static Type valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.SparkApplication.Type) - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.plugins.Spark.SparkApplication)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkApplication other = (flyteidl.plugins.Spark.SparkApplication) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkApplication parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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.plugins.Spark.SparkApplication parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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.plugins.Spark.SparkApplication parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkApplication 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.plugins.Spark.SparkApplication 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; - } - /** - * Protobuf type {@code flyteidl.plugins.SparkApplication} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkApplication) - flyteidl.plugins.Spark.SparkApplicationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkApplication.class, flyteidl.plugins.Spark.SparkApplication.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkApplication.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkApplication_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkApplication.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication build() { - flyteidl.plugins.Spark.SparkApplication result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkApplication buildPartial() { - flyteidl.plugins.Spark.SparkApplication result = new flyteidl.plugins.Spark.SparkApplication(this); - 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.plugins.Spark.SparkApplication) { - return mergeFrom((flyteidl.plugins.Spark.SparkApplication)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkApplication other) { - if (other == flyteidl.plugins.Spark.SparkApplication.getDefaultInstance()) return this; - 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.plugins.Spark.SparkApplication parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkApplication) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.plugins.SparkApplication) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkApplication) - private static final flyteidl.plugins.Spark.SparkApplication DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkApplication(); - } - - public static flyteidl.plugins.Spark.SparkApplication getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkApplication parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkApplication(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.plugins.Spark.SparkApplication getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface SparkJobOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.SparkJob) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - int getApplicationTypeValue(); - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - flyteidl.plugins.Spark.SparkApplication.Type getApplicationType(); - - /** - * string mainApplicationFile = 2; - */ - java.lang.String getMainApplicationFile(); - /** - * string mainApplicationFile = 2; - */ - com.google.protobuf.ByteString - getMainApplicationFileBytes(); - - /** - * string mainClass = 3; - */ - java.lang.String getMainClass(); - /** - * string mainClass = 3; - */ - com.google.protobuf.ByteString - getMainClassBytes(); - - /** - * map<string, string> sparkConf = 4; - */ - int getSparkConfCount(); - /** - * map<string, string> sparkConf = 4; - */ - boolean containsSparkConf( - java.lang.String key); - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getSparkConf(); - /** - * map<string, string> sparkConf = 4; - */ - java.util.Map - getSparkConfMap(); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> sparkConf = 4; - */ - - java.lang.String getSparkConfOrThrow( - java.lang.String key); - - /** - * map<string, string> hadoopConf = 5; - */ - int getHadoopConfCount(); - /** - * map<string, string> hadoopConf = 5; - */ - boolean containsHadoopConf( - java.lang.String key); - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getHadoopConf(); - /** - * map<string, string> hadoopConf = 5; - */ - java.util.Map - getHadoopConfMap(); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue); - /** - * map<string, string> hadoopConf = 5; - */ - - java.lang.String getHadoopConfOrThrow( - java.lang.String key); - - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - java.lang.String getExecutorPath(); - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - com.google.protobuf.ByteString - getExecutorPathBytes(); - - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - boolean hasDatabricksConf(); - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - com.google.protobuf.Struct getDatabricksConf(); - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder(); - - /** - *
-     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-     * This token can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksToken = 8; - */ - java.lang.String getDatabricksToken(); - /** - *
-     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-     * This token can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksToken = 8; - */ - com.google.protobuf.ByteString - getDatabricksTokenBytes(); - - /** - *
-     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-     * This instance name can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksInstance = 9; - */ - java.lang.String getDatabricksInstance(); - /** - *
-     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-     * This instance name can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksInstance = 9; - */ - com.google.protobuf.ByteString - getDatabricksInstanceBytes(); - } - /** - *
-   * Custom Proto for Spark Plugin.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class SparkJob extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.SparkJob) - SparkJobOrBuilder { - private static final long serialVersionUID = 0L; - // Use SparkJob.newBuilder() to construct. - private SparkJob(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SparkJob() { - applicationType_ = 0; - mainApplicationFile_ = ""; - mainClass_ = ""; - executorPath_ = ""; - databricksToken_ = ""; - databricksInstance_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SparkJob( - 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 8: { - int rawValue = input.readEnum(); - - applicationType_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - mainApplicationFile_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - mainClass_ = s; - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; - } - com.google.protobuf.MapEntry - sparkConf__ = input.readMessage( - SparkConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - sparkConf_.getMutableMap().put( - sparkConf__.getKey(), sparkConf__.getValue()); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; - } - com.google.protobuf.MapEntry - hadoopConf__ = input.readMessage( - HadoopConfDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - hadoopConf_.getMutableMap().put( - hadoopConf__.getKey(), hadoopConf__.getValue()); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - executorPath_ = s; - break; - } - case 58: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (databricksConf_ != null) { - subBuilder = databricksConf_.toBuilder(); - } - databricksConf_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(databricksConf_); - databricksConf_ = subBuilder.buildPartial(); - } - - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - databricksToken_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - databricksInstance_ = s; - 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.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - private int bitField0_; - public static final int APPLICATIONTYPE_FIELD_NUMBER = 1; - private int applicationType_; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - - public static final int MAINAPPLICATIONFILE_FIELD_NUMBER = 2; - private volatile java.lang.Object mainApplicationFile_; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainApplicationFile_ = s; - return s; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MAINCLASS_FIELD_NUMBER = 3; - private volatile java.lang.Object mainClass_; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainClass_ = s; - return s; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SPARKCONF_FIELD_NUMBER = 4; - private static final class SparkConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int HADOOPCONF_FIELD_NUMBER = 5; - private static final class HadoopConfDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int EXECUTORPATH_FIELD_NUMBER = 6; - private volatile java.lang.Object executorPath_; - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executorPath_ = s; - return s; - } - } - /** - *
-     * Executor path for Python jobs.
-     * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATABRICKSCONF_FIELD_NUMBER = 7; - private com.google.protobuf.Struct databricksConf_; - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public boolean hasDatabricksConf() { - return databricksConf_ != null; - } - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public com.google.protobuf.Struct getDatabricksConf() { - return databricksConf_ == null ? com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; - } - /** - *
-     * Databricks job configuration.
-     * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-     * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder() { - return getDatabricksConf(); - } - - public static final int DATABRICKSTOKEN_FIELD_NUMBER = 8; - private volatile java.lang.Object databricksToken_; - /** - *
-     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-     * This token can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksToken = 8; - */ - public java.lang.String getDatabricksToken() { - java.lang.Object ref = databricksToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databricksToken_ = s; - return s; - } - } - /** - *
-     * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-     * This token can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksToken = 8; - */ - public com.google.protobuf.ByteString - getDatabricksTokenBytes() { - java.lang.Object ref = databricksToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - databricksToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATABRICKSINSTANCE_FIELD_NUMBER = 9; - private volatile java.lang.Object databricksInstance_; - /** - *
-     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-     * This instance name can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksInstance = 9; - */ - public java.lang.String getDatabricksInstance() { - java.lang.Object ref = databricksInstance_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databricksInstance_ = s; - return s; - } - } - /** - *
-     * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-     * This instance name can be set in either flytepropeller or flytekit.
-     * 
- * - * string databricksInstance = 9; - */ - public com.google.protobuf.ByteString - getDatabricksInstanceBytes() { - java.lang.Object ref = databricksInstance_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - databricksInstance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - output.writeEnum(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, mainClass_); - } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetSparkConf(), - SparkConfDefaultEntryHolder.defaultEntry, - 4); - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetHadoopConf(), - HadoopConfDefaultEntryHolder.defaultEntry, - 5); - if (!getExecutorPathBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, executorPath_); - } - if (databricksConf_ != null) { - output.writeMessage(7, getDatabricksConf()); - } - if (!getDatabricksTokenBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, databricksToken_); - } - if (!getDatabricksInstanceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, databricksInstance_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (applicationType_ != flyteidl.plugins.Spark.SparkApplication.Type.PYTHON.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, applicationType_); - } - if (!getMainApplicationFileBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mainApplicationFile_); - } - if (!getMainClassBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, mainClass_); - } - for (java.util.Map.Entry entry - : internalGetSparkConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - sparkConf__ = SparkConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, sparkConf__); - } - for (java.util.Map.Entry entry - : internalGetHadoopConf().getMap().entrySet()) { - com.google.protobuf.MapEntry - hadoopConf__ = HadoopConfDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, hadoopConf__); - } - if (!getExecutorPathBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, executorPath_); - } - if (databricksConf_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDatabricksConf()); - } - if (!getDatabricksTokenBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, databricksToken_); - } - if (!getDatabricksInstanceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, databricksInstance_); - } - 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.plugins.Spark.SparkJob)) { - return super.equals(obj); - } - flyteidl.plugins.Spark.SparkJob other = (flyteidl.plugins.Spark.SparkJob) obj; - - if (applicationType_ != other.applicationType_) return false; - if (!getMainApplicationFile() - .equals(other.getMainApplicationFile())) return false; - if (!getMainClass() - .equals(other.getMainClass())) return false; - if (!internalGetSparkConf().equals( - other.internalGetSparkConf())) return false; - if (!internalGetHadoopConf().equals( - other.internalGetHadoopConf())) return false; - if (!getExecutorPath() - .equals(other.getExecutorPath())) return false; - if (hasDatabricksConf() != other.hasDatabricksConf()) return false; - if (hasDatabricksConf()) { - if (!getDatabricksConf() - .equals(other.getDatabricksConf())) return false; - } - if (!getDatabricksToken() - .equals(other.getDatabricksToken())) return false; - if (!getDatabricksInstance() - .equals(other.getDatabricksInstance())) 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(); - hash = (37 * hash) + APPLICATIONTYPE_FIELD_NUMBER; - hash = (53 * hash) + applicationType_; - hash = (37 * hash) + MAINAPPLICATIONFILE_FIELD_NUMBER; - hash = (53 * hash) + getMainApplicationFile().hashCode(); - hash = (37 * hash) + MAINCLASS_FIELD_NUMBER; - hash = (53 * hash) + getMainClass().hashCode(); - if (!internalGetSparkConf().getMap().isEmpty()) { - hash = (37 * hash) + SPARKCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetSparkConf().hashCode(); - } - if (!internalGetHadoopConf().getMap().isEmpty()) { - hash = (37 * hash) + HADOOPCONF_FIELD_NUMBER; - hash = (53 * hash) + internalGetHadoopConf().hashCode(); - } - hash = (37 * hash) + EXECUTORPATH_FIELD_NUMBER; - hash = (53 * hash) + getExecutorPath().hashCode(); - if (hasDatabricksConf()) { - hash = (37 * hash) + DATABRICKSCONF_FIELD_NUMBER; - hash = (53 * hash) + getDatabricksConf().hashCode(); - } - hash = (37 * hash) + DATABRICKSTOKEN_FIELD_NUMBER; - hash = (53 * hash) + getDatabricksToken().hashCode(); - hash = (37 * hash) + DATABRICKSINSTANCE_FIELD_NUMBER; - hash = (53 * hash) + getDatabricksInstance().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Spark.SparkJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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.plugins.Spark.SparkJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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.plugins.Spark.SparkJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Spark.SparkJob 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.plugins.Spark.SparkJob 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; - } - /** - *
-     * Custom Proto for Spark Plugin.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.SparkJob} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.SparkJob) - flyteidl.plugins.Spark.SparkJobOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 4: - return internalGetSparkConf(); - case 5: - return internalGetHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 4: - return internalGetMutableSparkConf(); - case 5: - return internalGetMutableHadoopConf(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Spark.SparkJob.class, flyteidl.plugins.Spark.SparkJob.Builder.class); - } - - // Construct using flyteidl.plugins.Spark.SparkJob.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(); - applicationType_ = 0; - - mainApplicationFile_ = ""; - - mainClass_ = ""; - - internalGetMutableSparkConf().clear(); - internalGetMutableHadoopConf().clear(); - executorPath_ = ""; - - if (databricksConfBuilder_ == null) { - databricksConf_ = null; - } else { - databricksConf_ = null; - databricksConfBuilder_ = null; - } - databricksToken_ = ""; - - databricksInstance_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Spark.internal_static_flyteidl_plugins_SparkJob_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob getDefaultInstanceForType() { - return flyteidl.plugins.Spark.SparkJob.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob build() { - flyteidl.plugins.Spark.SparkJob result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Spark.SparkJob buildPartial() { - flyteidl.plugins.Spark.SparkJob result = new flyteidl.plugins.Spark.SparkJob(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.applicationType_ = applicationType_; - result.mainApplicationFile_ = mainApplicationFile_; - result.mainClass_ = mainClass_; - result.sparkConf_ = internalGetSparkConf(); - result.sparkConf_.makeImmutable(); - result.hadoopConf_ = internalGetHadoopConf(); - result.hadoopConf_.makeImmutable(); - result.executorPath_ = executorPath_; - if (databricksConfBuilder_ == null) { - result.databricksConf_ = databricksConf_; - } else { - result.databricksConf_ = databricksConfBuilder_.build(); - } - result.databricksToken_ = databricksToken_; - result.databricksInstance_ = databricksInstance_; - result.bitField0_ = to_bitField0_; - 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.plugins.Spark.SparkJob) { - return mergeFrom((flyteidl.plugins.Spark.SparkJob)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Spark.SparkJob other) { - if (other == flyteidl.plugins.Spark.SparkJob.getDefaultInstance()) return this; - if (other.applicationType_ != 0) { - setApplicationTypeValue(other.getApplicationTypeValue()); - } - if (!other.getMainApplicationFile().isEmpty()) { - mainApplicationFile_ = other.mainApplicationFile_; - onChanged(); - } - if (!other.getMainClass().isEmpty()) { - mainClass_ = other.mainClass_; - onChanged(); - } - internalGetMutableSparkConf().mergeFrom( - other.internalGetSparkConf()); - internalGetMutableHadoopConf().mergeFrom( - other.internalGetHadoopConf()); - if (!other.getExecutorPath().isEmpty()) { - executorPath_ = other.executorPath_; - onChanged(); - } - if (other.hasDatabricksConf()) { - mergeDatabricksConf(other.getDatabricksConf()); - } - if (!other.getDatabricksToken().isEmpty()) { - databricksToken_ = other.databricksToken_; - onChanged(); - } - if (!other.getDatabricksInstance().isEmpty()) { - databricksInstance_ = other.databricksInstance_; - onChanged(); - } - 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.plugins.Spark.SparkJob parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Spark.SparkJob) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int applicationType_ = 0; - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public int getApplicationTypeValue() { - return applicationType_; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationTypeValue(int value) { - applicationType_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public flyteidl.plugins.Spark.SparkApplication.Type getApplicationType() { - @SuppressWarnings("deprecation") - flyteidl.plugins.Spark.SparkApplication.Type result = flyteidl.plugins.Spark.SparkApplication.Type.valueOf(applicationType_); - return result == null ? flyteidl.plugins.Spark.SparkApplication.Type.UNRECOGNIZED : result; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder setApplicationType(flyteidl.plugins.Spark.SparkApplication.Type value) { - if (value == null) { - throw new NullPointerException(); - } - - applicationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.plugins.SparkApplication.Type applicationType = 1; - */ - public Builder clearApplicationType() { - - applicationType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object mainApplicationFile_ = ""; - /** - * string mainApplicationFile = 2; - */ - public java.lang.String getMainApplicationFile() { - java.lang.Object ref = mainApplicationFile_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainApplicationFile_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public com.google.protobuf.ByteString - getMainApplicationFileBytes() { - java.lang.Object ref = mainApplicationFile_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainApplicationFile_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFile( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainApplicationFile_ = value; - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder clearMainApplicationFile() { - - mainApplicationFile_ = getDefaultInstance().getMainApplicationFile(); - onChanged(); - return this; - } - /** - * string mainApplicationFile = 2; - */ - public Builder setMainApplicationFileBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainApplicationFile_ = value; - onChanged(); - return this; - } - - private java.lang.Object mainClass_ = ""; - /** - * string mainClass = 3; - */ - public java.lang.String getMainClass() { - java.lang.Object ref = mainClass_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mainClass_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string mainClass = 3; - */ - public com.google.protobuf.ByteString - getMainClassBytes() { - java.lang.Object ref = mainClass_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - mainClass_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string mainClass = 3; - */ - public Builder setMainClass( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - mainClass_ = value; - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder clearMainClass() { - - mainClass_ = getDefaultInstance().getMainClass(); - onChanged(); - return this; - } - /** - * string mainClass = 3; - */ - public Builder setMainClassBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - mainClass_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> sparkConf_; - private com.google.protobuf.MapField - internalGetSparkConf() { - if (sparkConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - return sparkConf_; - } - private com.google.protobuf.MapField - internalGetMutableSparkConf() { - onChanged();; - if (sparkConf_ == null) { - sparkConf_ = com.google.protobuf.MapField.newMapField( - SparkConfDefaultEntryHolder.defaultEntry); - } - if (!sparkConf_.isMutable()) { - sparkConf_ = sparkConf_.copy(); - } - return sparkConf_; - } - - public int getSparkConfCount() { - return internalGetSparkConf().getMap().size(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public boolean containsSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetSparkConf().getMap().containsKey(key); - } - /** - * Use {@link #getSparkConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getSparkConf() { - return getSparkConfMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.util.Map getSparkConfMap() { - return internalGetSparkConf().getMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> sparkConf = 4; - */ - - public java.lang.String getSparkConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetSparkConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearSparkConf() { - internalGetMutableSparkConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder removeSparkConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableSparkConf() { - return internalGetMutableSparkConf().getMutableMap(); - } - /** - * map<string, string> sparkConf = 4; - */ - public Builder putSparkConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableSparkConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> sparkConf = 4; - */ - - public Builder putAllSparkConf( - java.util.Map values) { - internalGetMutableSparkConf().getMutableMap() - .putAll(values); - return this; - } - - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> hadoopConf_; - private com.google.protobuf.MapField - internalGetHadoopConf() { - if (hadoopConf_ == null) { - return com.google.protobuf.MapField.emptyMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - return hadoopConf_; - } - private com.google.protobuf.MapField - internalGetMutableHadoopConf() { - onChanged();; - if (hadoopConf_ == null) { - hadoopConf_ = com.google.protobuf.MapField.newMapField( - HadoopConfDefaultEntryHolder.defaultEntry); - } - if (!hadoopConf_.isMutable()) { - hadoopConf_ = hadoopConf_.copy(); - } - return hadoopConf_; - } - - public int getHadoopConfCount() { - return internalGetHadoopConf().getMap().size(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public boolean containsHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetHadoopConf().getMap().containsKey(key); - } - /** - * Use {@link #getHadoopConfMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getHadoopConf() { - return getHadoopConfMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.util.Map getHadoopConfMap() { - return internalGetHadoopConf().getMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public java.lang.String getHadoopConfOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetHadoopConf().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearHadoopConf() { - internalGetMutableHadoopConf().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder removeHadoopConf( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableHadoopConf() { - return internalGetMutableHadoopConf().getMutableMap(); - } - /** - * map<string, string> hadoopConf = 5; - */ - public Builder putHadoopConf( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableHadoopConf().getMutableMap() - .put(key, value); - return this; - } - /** - * map<string, string> hadoopConf = 5; - */ - - public Builder putAllHadoopConf( - java.util.Map values) { - internalGetMutableHadoopConf().getMutableMap() - .putAll(values); - return this; - } - - private java.lang.Object executorPath_ = ""; - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public java.lang.String getExecutorPath() { - java.lang.Object ref = executorPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - executorPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public com.google.protobuf.ByteString - getExecutorPathBytes() { - java.lang.Object ref = executorPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - executorPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - executorPath_ = value; - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder clearExecutorPath() { - - executorPath_ = getDefaultInstance().getExecutorPath(); - onChanged(); - return this; - } - /** - *
-       * Executor path for Python jobs.
-       * 
- * - * string executorPath = 6; - */ - public Builder setExecutorPathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - executorPath_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Struct databricksConf_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> databricksConfBuilder_; - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public boolean hasDatabricksConf() { - return databricksConfBuilder_ != null || databricksConf_ != null; - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public com.google.protobuf.Struct getDatabricksConf() { - if (databricksConfBuilder_ == null) { - return databricksConf_ == null ? com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; - } else { - return databricksConfBuilder_.getMessage(); - } - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public Builder setDatabricksConf(com.google.protobuf.Struct value) { - if (databricksConfBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databricksConf_ = value; - onChanged(); - } else { - databricksConfBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public Builder setDatabricksConf( - com.google.protobuf.Struct.Builder builderForValue) { - if (databricksConfBuilder_ == null) { - databricksConf_ = builderForValue.build(); - onChanged(); - } else { - databricksConfBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public Builder mergeDatabricksConf(com.google.protobuf.Struct value) { - if (databricksConfBuilder_ == null) { - if (databricksConf_ != null) { - databricksConf_ = - com.google.protobuf.Struct.newBuilder(databricksConf_).mergeFrom(value).buildPartial(); - } else { - databricksConf_ = value; - } - onChanged(); - } else { - databricksConfBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public Builder clearDatabricksConf() { - if (databricksConfBuilder_ == null) { - databricksConf_ = null; - onChanged(); - } else { - databricksConf_ = null; - databricksConfBuilder_ = null; - } - - return this; - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public com.google.protobuf.Struct.Builder getDatabricksConfBuilder() { - - onChanged(); - return getDatabricksConfFieldBuilder().getBuilder(); - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - public com.google.protobuf.StructOrBuilder getDatabricksConfOrBuilder() { - if (databricksConfBuilder_ != null) { - return databricksConfBuilder_.getMessageOrBuilder(); - } else { - return databricksConf_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : databricksConf_; - } - } - /** - *
-       * Databricks job configuration.
-       * Config structure can be found here. https://docs.databricks.com/dev-tools/api/2.0/jobs.html#request-structure.
-       * 
- * - * .google.protobuf.Struct databricksConf = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getDatabricksConfFieldBuilder() { - if (databricksConfBuilder_ == null) { - databricksConfBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getDatabricksConf(), - getParentForChildren(), - isClean()); - databricksConf_ = null; - } - return databricksConfBuilder_; - } - - private java.lang.Object databricksToken_ = ""; - /** - *
-       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-       * This token can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksToken = 8; - */ - public java.lang.String getDatabricksToken() { - java.lang.Object ref = databricksToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databricksToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-       * This token can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksToken = 8; - */ - public com.google.protobuf.ByteString - getDatabricksTokenBytes() { - java.lang.Object ref = databricksToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - databricksToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-       * This token can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksToken = 8; - */ - public Builder setDatabricksToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - databricksToken_ = value; - onChanged(); - return this; - } - /** - *
-       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-       * This token can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksToken = 8; - */ - public Builder clearDatabricksToken() { - - databricksToken_ = getDefaultInstance().getDatabricksToken(); - onChanged(); - return this; - } - /** - *
-       * Databricks access token. https://docs.databricks.com/dev-tools/api/latest/authentication.html
-       * This token can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksToken = 8; - */ - public Builder setDatabricksTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - databricksToken_ = value; - onChanged(); - return this; - } - - private java.lang.Object databricksInstance_ = ""; - /** - *
-       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-       * This instance name can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksInstance = 9; - */ - public java.lang.String getDatabricksInstance() { - java.lang.Object ref = databricksInstance_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databricksInstance_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-       * This instance name can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksInstance = 9; - */ - public com.google.protobuf.ByteString - getDatabricksInstanceBytes() { - java.lang.Object ref = databricksInstance_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - databricksInstance_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-       * This instance name can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksInstance = 9; - */ - public Builder setDatabricksInstance( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - databricksInstance_ = value; - onChanged(); - return this; - } - /** - *
-       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-       * This instance name can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksInstance = 9; - */ - public Builder clearDatabricksInstance() { - - databricksInstance_ = getDefaultInstance().getDatabricksInstance(); - onChanged(); - return this; - } - /** - *
-       * Domain name of your deployment. Use the form <account>.cloud.databricks.com.
-       * This instance name can be set in either flytepropeller or flytekit.
-       * 
- * - * string databricksInstance = 9; - */ - public Builder setDatabricksInstanceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - databricksInstance_ = value; - onChanged(); - return this; - } - @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.plugins.SparkJob) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.SparkJob) - private static final flyteidl.plugins.Spark.SparkJob DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Spark.SparkJob(); - } - - public static flyteidl.plugins.Spark.SparkJob getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SparkJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SparkJob(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.plugins.Spark.SparkJob getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkApplication_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/plugins/spark.proto\022\020flyteidl" + - ".plugins\032\034google/protobuf/struct.proto\"B" + - "\n\020SparkApplication\".\n\004Type\022\n\n\006PYTHON\020\000\022\010" + - "\n\004JAVA\020\001\022\t\n\005SCALA\020\002\022\005\n\001R\020\003\"\333\003\n\010SparkJob\022" + - "@\n\017applicationType\030\001 \001(\0162\'.flyteidl.plug" + - "ins.SparkApplication.Type\022\033\n\023mainApplica" + - "tionFile\030\002 \001(\t\022\021\n\tmainClass\030\003 \001(\t\022<\n\tspa" + - "rkConf\030\004 \003(\0132).flyteidl.plugins.SparkJob" + - ".SparkConfEntry\022>\n\nhadoopConf\030\005 \003(\0132*.fl" + - "yteidl.plugins.SparkJob.HadoopConfEntry\022" + - "\024\n\014executorPath\030\006 \001(\t\022/\n\016databricksConf\030" + - "\007 \001(\0132\027.google.protobuf.Struct\022\027\n\017databr" + - "icksToken\030\010 \001(\t\022\032\n\022databricksInstance\030\t " + - "\001(\t\0320\n\016SparkConfEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\0321\n\017HadoopConfEntry\022\013\n\003key\030" + - "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B?Z=github.com/f" + - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" + - "l/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_SparkApplication_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_SparkApplication_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkApplication_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_plugins_SparkJob_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_descriptor, - new java.lang.String[] { "ApplicationType", "MainApplicationFile", "MainClass", "SparkConf", "HadoopConf", "ExecutorPath", "DatabricksConf", "DatabricksToken", "DatabricksInstance", }); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(0); - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_SparkConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor = - internal_static_flyteidl_plugins_SparkJob_descriptor.getNestedTypes().get(1); - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_SparkJob_HadoopConfEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java b/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java deleted file mode 100644 index 2353f8b78b..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/Tensorflow.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/tensorflow.proto - -package flyteidl.plugins; - -public final class Tensorflow { - private Tensorflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedTensorflowTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.DistributedTensorflowTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - int getWorkers(); - - /** - *
-     * PS -> Parameter server
-     * number of ps replicas spawned in the cluster for this job
-     * 
- * - * int32 ps_replicas = 2; - */ - int getPsReplicas(); - - /** - *
-     * number of chief replicas spawned in the cluster for this job
-     * 
- * - * int32 chief_replicas = 3; - */ - int getChiefReplicas(); - - /** - *
-     * number of evaluator replicas spawned in the cluster for this job
-     * 
- * - * int32 evaluator_replicas = 4; - */ - int getEvaluatorReplicas(); - } - /** - *
-   * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class DistributedTensorflowTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - DistributedTensorflowTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedTensorflowTrainingTask.newBuilder() to construct. - private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedTensorflowTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedTensorflowTrainingTask( - 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 8: { - - workers_ = input.readInt32(); - break; - } - case 16: { - - psReplicas_ = input.readInt32(); - break; - } - case 24: { - - chiefReplicas_ = input.readInt32(); - break; - } - case 32: { - - evaluatorReplicas_ = input.readInt32(); - 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.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - public static final int WORKERS_FIELD_NUMBER = 1; - private int workers_; - /** - *
-     * number of worker replicas spawned in the cluster for this job
-     * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - - public static final int PS_REPLICAS_FIELD_NUMBER = 2; - private int psReplicas_; - /** - *
-     * PS -> Parameter server
-     * number of ps replicas spawned in the cluster for this job
-     * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - - public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; - private int chiefReplicas_; - /** - *
-     * number of chief replicas spawned in the cluster for this job
-     * 
- * - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - - public static final int EVALUATOR_REPLICAS_FIELD_NUMBER = 4; - private int evaluatorReplicas_; - /** - *
-     * number of evaluator replicas spawned in the cluster for this job
-     * 
- * - * int32 evaluator_replicas = 4; - */ - public int getEvaluatorReplicas() { - return evaluatorReplicas_; - } - - 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 (workers_ != 0) { - output.writeInt32(1, workers_); - } - if (psReplicas_ != 0) { - output.writeInt32(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - output.writeInt32(3, chiefReplicas_); - } - if (evaluatorReplicas_ != 0) { - output.writeInt32(4, evaluatorReplicas_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workers_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, workers_); - } - if (psReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, psReplicas_); - } - if (chiefReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, chiefReplicas_); - } - if (evaluatorReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, evaluatorReplicas_); - } - 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.plugins.Tensorflow.DistributedTensorflowTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) obj; - - if (getWorkers() - != other.getWorkers()) return false; - if (getPsReplicas() - != other.getPsReplicas()) return false; - if (getChiefReplicas() - != other.getChiefReplicas()) return false; - if (getEvaluatorReplicas() - != other.getEvaluatorReplicas()) 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(); - hash = (37 * hash) + WORKERS_FIELD_NUMBER; - hash = (53 * hash) + getWorkers(); - hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getPsReplicas(); - hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getChiefReplicas(); - hash = (37 * hash) + EVALUATOR_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getEvaluatorReplicas(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.Tensorflow.DistributedTensorflowTrainingTask 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; - } - /** - *
-     * Custom proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.DistributedTensorflowTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.DistributedTensorflowTrainingTask) - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.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(); - workers_ = 0; - - psReplicas_ = 0; - - chiefReplicas_ = 0; - - evaluatorReplicas_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.Tensorflow.internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask build() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { - flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(this); - result.workers_ = workers_; - result.psReplicas_ = psReplicas_; - result.chiefReplicas_ = chiefReplicas_; - result.evaluatorReplicas_ = evaluatorReplicas_; - 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.plugins.Tensorflow.DistributedTensorflowTrainingTask) { - return mergeFrom((flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask other) { - if (other == flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; - if (other.getWorkers() != 0) { - setWorkers(other.getWorkers()); - } - if (other.getPsReplicas() != 0) { - setPsReplicas(other.getPsReplicas()); - } - if (other.getChiefReplicas() != 0) { - setChiefReplicas(other.getChiefReplicas()); - } - if (other.getEvaluatorReplicas() != 0) { - setEvaluatorReplicas(other.getEvaluatorReplicas()); - } - 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.plugins.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int workers_ ; - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public int getWorkers() { - return workers_; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder setWorkers(int value) { - - workers_ = value; - onChanged(); - return this; - } - /** - *
-       * number of worker replicas spawned in the cluster for this job
-       * 
- * - * int32 workers = 1; - */ - public Builder clearWorkers() { - - workers_ = 0; - onChanged(); - return this; - } - - private int psReplicas_ ; - /** - *
-       * PS -> Parameter server
-       * number of ps replicas spawned in the cluster for this job
-       * 
- * - * int32 ps_replicas = 2; - */ - public int getPsReplicas() { - return psReplicas_; - } - /** - *
-       * PS -> Parameter server
-       * number of ps replicas spawned in the cluster for this job
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder setPsReplicas(int value) { - - psReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * PS -> Parameter server
-       * number of ps replicas spawned in the cluster for this job
-       * 
- * - * int32 ps_replicas = 2; - */ - public Builder clearPsReplicas() { - - psReplicas_ = 0; - onChanged(); - return this; - } - - private int chiefReplicas_ ; - /** - *
-       * number of chief replicas spawned in the cluster for this job
-       * 
- * - * int32 chief_replicas = 3; - */ - public int getChiefReplicas() { - return chiefReplicas_; - } - /** - *
-       * number of chief replicas spawned in the cluster for this job
-       * 
- * - * int32 chief_replicas = 3; - */ - public Builder setChiefReplicas(int value) { - - chiefReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * number of chief replicas spawned in the cluster for this job
-       * 
- * - * int32 chief_replicas = 3; - */ - public Builder clearChiefReplicas() { - - chiefReplicas_ = 0; - onChanged(); - return this; - } - - private int evaluatorReplicas_ ; - /** - *
-       * number of evaluator replicas spawned in the cluster for this job
-       * 
- * - * int32 evaluator_replicas = 4; - */ - public int getEvaluatorReplicas() { - return evaluatorReplicas_; - } - /** - *
-       * number of evaluator replicas spawned in the cluster for this job
-       * 
- * - * int32 evaluator_replicas = 4; - */ - public Builder setEvaluatorReplicas(int value) { - - evaluatorReplicas_ = value; - onChanged(); - return this; - } - /** - *
-       * number of evaluator replicas spawned in the cluster for this job
-       * 
- * - * int32 evaluator_replicas = 4; - */ - public Builder clearEvaluatorReplicas() { - - evaluatorReplicas_ = 0; - onChanged(); - return this; - } - @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.plugins.DistributedTensorflowTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.DistributedTensorflowTrainingTask) - private static final flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask(); - } - - public static flyteidl.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedTensorflowTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedTensorflowTrainingTask(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.plugins.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n!flyteidl/plugins/tensorflow.proto\022\020fly" + - "teidl.plugins\"}\n!DistributedTensorflowTr" + - "ainingTask\022\017\n\007workers\030\001 \001(\005\022\023\n\013ps_replic" + - "as\030\002 \001(\005\022\026\n\016chief_replicas\030\003 \001(\005\022\032\n\022eval" + - "uator_replicas\030\004 \001(\005B?Z=github.com/flyte" + - "org/flyte/flyteidl/gen/pb-go/flyteidl/pl" + - "uginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_DistributedTensorflowTrainingTask_descriptor, - new java.lang.String[] { "Workers", "PsReplicas", "ChiefReplicas", "EvaluatorReplicas", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java b/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java deleted file mode 100644 index 4b04db857d..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/WaitableOuterClass.java +++ /dev/null @@ -1,911 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/waitable.proto - -package flyteidl.plugins; - -public final class WaitableOuterClass { - private WaitableOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface WaitableOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.Waitable) - com.google.protobuf.MessageOrBuilder { - - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - boolean hasWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId(); - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder(); - - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - int getPhaseValue(); - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - flyteidl.core.Execution.WorkflowExecution.Phase getPhase(); - - /** - * string workflow_id = 3; - */ - java.lang.String getWorkflowId(); - /** - * string workflow_id = 3; - */ - com.google.protobuf.ByteString - getWorkflowIdBytes(); - } - /** - *
-   * Represents an Execution that was launched and could be waited on.
-   * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Waitable extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.Waitable) - WaitableOrBuilder { - private static final long serialVersionUID = 0L; - // Use Waitable.newBuilder() to construct. - private Waitable(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Waitable() { - phase_ = 0; - workflowId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Waitable( - 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.WorkflowExecutionIdentifier.Builder subBuilder = null; - if (wfExecId_ != null) { - subBuilder = wfExecId_.toBuilder(); - } - wfExecId_ = input.readMessage(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(wfExecId_); - wfExecId_ = subBuilder.buildPartial(); - } - - break; - } - case 16: { - int rawValue = input.readEnum(); - - phase_ = rawValue; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - workflowId_ = s; - 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.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - public static final int WF_EXEC_ID_FIELD_NUMBER = 1; - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - return getWfExecId(); - } - - public static final int PHASE_FIELD_NUMBER = 2; - private int phase_; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - - public static final int WORKFLOW_ID_FIELD_NUMBER = 3; - private volatile java.lang.Object workflowId_; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflowId_ = s; - return s; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (wfExecId_ != null) { - output.writeMessage(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - output.writeEnum(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, workflowId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (wfExecId_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWfExecId()); - } - if (phase_ != flyteidl.core.Execution.WorkflowExecution.Phase.UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, phase_); - } - if (!getWorkflowIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, workflowId_); - } - 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.plugins.WaitableOuterClass.Waitable)) { - return super.equals(obj); - } - flyteidl.plugins.WaitableOuterClass.Waitable other = (flyteidl.plugins.WaitableOuterClass.Waitable) obj; - - if (hasWfExecId() != other.hasWfExecId()) return false; - if (hasWfExecId()) { - if (!getWfExecId() - .equals(other.getWfExecId())) return false; - } - if (phase_ != other.phase_) return false; - if (!getWorkflowId() - .equals(other.getWorkflowId())) 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 (hasWfExecId()) { - hash = (37 * hash) + WF_EXEC_ID_FIELD_NUMBER; - hash = (53 * hash) + getWfExecId().hashCode(); - } - hash = (37 * hash) + PHASE_FIELD_NUMBER; - hash = (53 * hash) + phase_; - hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; - hash = (53 * hash) + getWorkflowId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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.plugins.WaitableOuterClass.Waitable parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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.plugins.WaitableOuterClass.Waitable parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.WaitableOuterClass.Waitable 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.plugins.WaitableOuterClass.Waitable 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; - } - /** - *
-     * Represents an Execution that was launched and could be waited on.
-     * 
- * - * Protobuf type {@code flyteidl.plugins.Waitable} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.Waitable) - flyteidl.plugins.WaitableOuterClass.WaitableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.WaitableOuterClass.Waitable.class, flyteidl.plugins.WaitableOuterClass.Waitable.Builder.class); - } - - // Construct using flyteidl.plugins.WaitableOuterClass.Waitable.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 (wfExecIdBuilder_ == null) { - wfExecId_ = null; - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - phase_ = 0; - - workflowId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.WaitableOuterClass.internal_static_flyteidl_plugins_Waitable_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable build() { - flyteidl.plugins.WaitableOuterClass.Waitable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.WaitableOuterClass.Waitable buildPartial() { - flyteidl.plugins.WaitableOuterClass.Waitable result = new flyteidl.plugins.WaitableOuterClass.Waitable(this); - if (wfExecIdBuilder_ == null) { - result.wfExecId_ = wfExecId_; - } else { - result.wfExecId_ = wfExecIdBuilder_.build(); - } - result.phase_ = phase_; - result.workflowId_ = workflowId_; - 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.plugins.WaitableOuterClass.Waitable) { - return mergeFrom((flyteidl.plugins.WaitableOuterClass.Waitable)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.WaitableOuterClass.Waitable other) { - if (other == flyteidl.plugins.WaitableOuterClass.Waitable.getDefaultInstance()) return this; - if (other.hasWfExecId()) { - mergeWfExecId(other.getWfExecId()); - } - if (other.phase_ != 0) { - setPhaseValue(other.getPhaseValue()); - } - if (!other.getWorkflowId().isEmpty()) { - workflowId_ = other.workflowId_; - onChanged(); - } - 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.plugins.WaitableOuterClass.Waitable parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.WaitableOuterClass.Waitable) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier wfExecId_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> wfExecIdBuilder_; - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public boolean hasWfExecId() { - return wfExecIdBuilder_ != null || wfExecId_ != null; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier getWfExecId() { - if (wfExecIdBuilder_ == null) { - return wfExecId_ == null ? flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } else { - return wfExecIdBuilder_.getMessage(); - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - wfExecId_ = value; - onChanged(); - } else { - wfExecIdBuilder_.setMessage(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder setWfExecId( - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder builderForValue) { - if (wfExecIdBuilder_ == null) { - wfExecId_ = builderForValue.build(); - onChanged(); - } else { - wfExecIdBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder mergeWfExecId(flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier value) { - if (wfExecIdBuilder_ == null) { - if (wfExecId_ != null) { - wfExecId_ = - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.newBuilder(wfExecId_).mergeFrom(value).buildPartial(); - } else { - wfExecId_ = value; - } - onChanged(); - } else { - wfExecIdBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public Builder clearWfExecId() { - if (wfExecIdBuilder_ == null) { - wfExecId_ = null; - onChanged(); - } else { - wfExecId_ = null; - wfExecIdBuilder_ = null; - } - - return this; - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder getWfExecIdBuilder() { - - onChanged(); - return getWfExecIdFieldBuilder().getBuilder(); - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - public flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder getWfExecIdOrBuilder() { - if (wfExecIdBuilder_ != null) { - return wfExecIdBuilder_.getMessageOrBuilder(); - } else { - return wfExecId_ == null ? - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.getDefaultInstance() : wfExecId_; - } - } - /** - * .flyteidl.core.WorkflowExecutionIdentifier wf_exec_id = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder> - getWfExecIdFieldBuilder() { - if (wfExecIdBuilder_ == null) { - wfExecIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.WorkflowExecutionIdentifierOrBuilder>( - getWfExecId(), - getParentForChildren(), - isClean()); - wfExecId_ = null; - } - return wfExecIdBuilder_; - } - - private int phase_ = 0; - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public int getPhaseValue() { - return phase_; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhaseValue(int value) { - phase_ = value; - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public flyteidl.core.Execution.WorkflowExecution.Phase getPhase() { - @SuppressWarnings("deprecation") - flyteidl.core.Execution.WorkflowExecution.Phase result = flyteidl.core.Execution.WorkflowExecution.Phase.valueOf(phase_); - return result == null ? flyteidl.core.Execution.WorkflowExecution.Phase.UNRECOGNIZED : result; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder setPhase(flyteidl.core.Execution.WorkflowExecution.Phase value) { - if (value == null) { - throw new NullPointerException(); - } - - phase_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .flyteidl.core.WorkflowExecution.Phase phase = 2; - */ - public Builder clearPhase() { - - phase_ = 0; - onChanged(); - return this; - } - - private java.lang.Object workflowId_ = ""; - /** - * string workflow_id = 3; - */ - public java.lang.String getWorkflowId() { - java.lang.Object ref = workflowId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - workflowId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string workflow_id = 3; - */ - public com.google.protobuf.ByteString - getWorkflowIdBytes() { - java.lang.Object ref = workflowId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - workflowId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - workflowId_ = value; - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder clearWorkflowId() { - - workflowId_ = getDefaultInstance().getWorkflowId(); - onChanged(); - return this; - } - /** - * string workflow_id = 3; - */ - public Builder setWorkflowIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - workflowId_ = value; - onChanged(); - return this; - } - @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.plugins.Waitable) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.Waitable) - private static final flyteidl.plugins.WaitableOuterClass.Waitable DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.WaitableOuterClass.Waitable(); - } - - public static flyteidl.plugins.WaitableOuterClass.Waitable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Waitable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Waitable(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.plugins.WaitableOuterClass.Waitable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_Waitable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_Waitable_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037flyteidl/plugins/waitable.proto\022\020flyte" + - "idl.plugins\032\035flyteidl/core/execution.pro" + - "to\032\036flyteidl/core/identifier.proto\"\226\001\n\010W" + - "aitable\022>\n\nwf_exec_id\030\001 \001(\0132*.flyteidl.c" + - "ore.WorkflowExecutionIdentifier\0225\n\005phase" + - "\030\002 \001(\0162&.flyteidl.core.WorkflowExecution" + - ".Phase\022\023\n\013workflow_id\030\003 \001(\tB?Z=github.co" + - "m/flyteorg/flyte/flyteidl/gen/pb-go/flyt" + - "eidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Execution.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_Waitable_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_Waitable_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_Waitable_descriptor, - new java.lang.String[] { "WfExecId", "Phase", "WorkflowId", }); - flyteidl.core.Execution.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java deleted file mode 100644 index bcd37c0837..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Common.java +++ /dev/null @@ -1,1073 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/common.proto - -package flyteidl.plugins.kubeflow; - -public final class Common { - private Common() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - * Protobuf enum {@code flyteidl.plugins.kubeflow.RestartPolicy} - */ - public enum RestartPolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * RESTART_POLICY_NEVER = 0; - */ - RESTART_POLICY_NEVER(0), - /** - * RESTART_POLICY_ON_FAILURE = 1; - */ - RESTART_POLICY_ON_FAILURE(1), - /** - * RESTART_POLICY_ALWAYS = 2; - */ - RESTART_POLICY_ALWAYS(2), - UNRECOGNIZED(-1), - ; - - /** - * RESTART_POLICY_NEVER = 0; - */ - public static final int RESTART_POLICY_NEVER_VALUE = 0; - /** - * RESTART_POLICY_ON_FAILURE = 1; - */ - public static final int RESTART_POLICY_ON_FAILURE_VALUE = 1; - /** - * RESTART_POLICY_ALWAYS = 2; - */ - public static final int RESTART_POLICY_ALWAYS_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RestartPolicy valueOf(int value) { - return forNumber(value); - } - - public static RestartPolicy forNumber(int value) { - switch (value) { - case 0: return RESTART_POLICY_NEVER; - case 1: return RESTART_POLICY_ON_FAILURE; - case 2: return RESTART_POLICY_ALWAYS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RestartPolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RestartPolicy findValueByNumber(int number) { - return RestartPolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final RestartPolicy[] VALUES = values(); - - public static RestartPolicy valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RestartPolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.kubeflow.RestartPolicy) - } - - /** - * Protobuf enum {@code flyteidl.plugins.kubeflow.CleanPodPolicy} - */ - public enum CleanPodPolicy - implements com.google.protobuf.ProtocolMessageEnum { - /** - * CLEANPOD_POLICY_NONE = 0; - */ - CLEANPOD_POLICY_NONE(0), - /** - * CLEANPOD_POLICY_RUNNING = 1; - */ - CLEANPOD_POLICY_RUNNING(1), - /** - * CLEANPOD_POLICY_ALL = 2; - */ - CLEANPOD_POLICY_ALL(2), - UNRECOGNIZED(-1), - ; - - /** - * CLEANPOD_POLICY_NONE = 0; - */ - public static final int CLEANPOD_POLICY_NONE_VALUE = 0; - /** - * CLEANPOD_POLICY_RUNNING = 1; - */ - public static final int CLEANPOD_POLICY_RUNNING_VALUE = 1; - /** - * CLEANPOD_POLICY_ALL = 2; - */ - public static final int CLEANPOD_POLICY_ALL_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CleanPodPolicy valueOf(int value) { - return forNumber(value); - } - - public static CleanPodPolicy forNumber(int value) { - switch (value) { - case 0: return CLEANPOD_POLICY_NONE; - case 1: return CLEANPOD_POLICY_RUNNING; - case 2: return CLEANPOD_POLICY_ALL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CleanPodPolicy> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CleanPodPolicy findValueByNumber(int number) { - return CleanPodPolicy.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Common.getDescriptor().getEnumTypes().get(1); - } - - private static final CleanPodPolicy[] VALUES = values(); - - public static CleanPodPolicy valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CleanPodPolicy(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.plugins.kubeflow.CleanPodPolicy) - } - - public interface RunPolicyOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.RunPolicy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the policy to kill pods after the job completes. Default to None.
-     * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - int getCleanPodPolicyValue(); - /** - *
-     * Defines the policy to kill pods after the job completes. Default to None.
-     * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy(); - - /** - *
-     * TTL to clean up jobs. Default to infinite.
-     * 
- * - * int32 ttl_seconds_after_finished = 2; - */ - int getTtlSecondsAfterFinished(); - - /** - *
-     * Specifies the duration in seconds relative to the startTime that the job may be active
-     * before the system tries to terminate it; value must be positive integer.
-     * 
- * - * int32 active_deadline_seconds = 3; - */ - int getActiveDeadlineSeconds(); - - /** - *
-     * Number of retries before marking this job failed.
-     * 
- * - * int32 backoff_limit = 4; - */ - int getBackoffLimit(); - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.RunPolicy} - */ - public static final class RunPolicy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.RunPolicy) - RunPolicyOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunPolicy.newBuilder() to construct. - private RunPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunPolicy() { - cleanPodPolicy_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private RunPolicy( - 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 8: { - int rawValue = input.readEnum(); - - cleanPodPolicy_ = rawValue; - break; - } - case 16: { - - ttlSecondsAfterFinished_ = input.readInt32(); - break; - } - case 24: { - - activeDeadlineSeconds_ = input.readInt32(); - break; - } - case 32: { - - backoffLimit_ = input.readInt32(); - 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.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Common.RunPolicy.class, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder.class); - } - - public static final int CLEAN_POD_POLICY_FIELD_NUMBER = 1; - private int cleanPodPolicy_; - /** - *
-     * Defines the policy to kill pods after the job completes. Default to None.
-     * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public int getCleanPodPolicyValue() { - return cleanPodPolicy_; - } - /** - *
-     * Defines the policy to kill pods after the job completes. Default to None.
-     * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.CleanPodPolicy result = flyteidl.plugins.kubeflow.Common.CleanPodPolicy.valueOf(cleanPodPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.CleanPodPolicy.UNRECOGNIZED : result; - } - - public static final int TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER = 2; - private int ttlSecondsAfterFinished_; - /** - *
-     * TTL to clean up jobs. Default to infinite.
-     * 
- * - * int32 ttl_seconds_after_finished = 2; - */ - public int getTtlSecondsAfterFinished() { - return ttlSecondsAfterFinished_; - } - - public static final int ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER = 3; - private int activeDeadlineSeconds_; - /** - *
-     * Specifies the duration in seconds relative to the startTime that the job may be active
-     * before the system tries to terminate it; value must be positive integer.
-     * 
- * - * int32 active_deadline_seconds = 3; - */ - public int getActiveDeadlineSeconds() { - return activeDeadlineSeconds_; - } - - public static final int BACKOFF_LIMIT_FIELD_NUMBER = 4; - private int backoffLimit_; - /** - *
-     * Number of retries before marking this job failed.
-     * 
- * - * int32 backoff_limit = 4; - */ - public int getBackoffLimit() { - return backoffLimit_; - } - - 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 (cleanPodPolicy_ != flyteidl.plugins.kubeflow.Common.CleanPodPolicy.CLEANPOD_POLICY_NONE.getNumber()) { - output.writeEnum(1, cleanPodPolicy_); - } - if (ttlSecondsAfterFinished_ != 0) { - output.writeInt32(2, ttlSecondsAfterFinished_); - } - if (activeDeadlineSeconds_ != 0) { - output.writeInt32(3, activeDeadlineSeconds_); - } - if (backoffLimit_ != 0) { - output.writeInt32(4, backoffLimit_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (cleanPodPolicy_ != flyteidl.plugins.kubeflow.Common.CleanPodPolicy.CLEANPOD_POLICY_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, cleanPodPolicy_); - } - if (ttlSecondsAfterFinished_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, ttlSecondsAfterFinished_); - } - if (activeDeadlineSeconds_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, activeDeadlineSeconds_); - } - if (backoffLimit_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, backoffLimit_); - } - 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.plugins.kubeflow.Common.RunPolicy)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Common.RunPolicy other = (flyteidl.plugins.kubeflow.Common.RunPolicy) obj; - - if (cleanPodPolicy_ != other.cleanPodPolicy_) return false; - if (getTtlSecondsAfterFinished() - != other.getTtlSecondsAfterFinished()) return false; - if (getActiveDeadlineSeconds() - != other.getActiveDeadlineSeconds()) return false; - if (getBackoffLimit() - != other.getBackoffLimit()) 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(); - hash = (37 * hash) + CLEAN_POD_POLICY_FIELD_NUMBER; - hash = (53 * hash) + cleanPodPolicy_; - hash = (37 * hash) + TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER; - hash = (53 * hash) + getTtlSecondsAfterFinished(); - hash = (37 * hash) + ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER; - hash = (53 * hash) + getActiveDeadlineSeconds(); - hash = (37 * hash) + BACKOFF_LIMIT_FIELD_NUMBER; - hash = (53 * hash) + getBackoffLimit(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy 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.plugins.kubeflow.Common.RunPolicy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy 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.plugins.kubeflow.Common.RunPolicy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Common.RunPolicy 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.plugins.kubeflow.Common.RunPolicy 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; - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.RunPolicy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.RunPolicy) - flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Common.RunPolicy.class, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Common.RunPolicy.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(); - cleanPodPolicy_ = 0; - - ttlSecondsAfterFinished_ = 0; - - activeDeadlineSeconds_ = 0; - - backoffLimit_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Common.internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Common.RunPolicy getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Common.RunPolicy build() { - flyteidl.plugins.kubeflow.Common.RunPolicy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Common.RunPolicy buildPartial() { - flyteidl.plugins.kubeflow.Common.RunPolicy result = new flyteidl.plugins.kubeflow.Common.RunPolicy(this); - result.cleanPodPolicy_ = cleanPodPolicy_; - result.ttlSecondsAfterFinished_ = ttlSecondsAfterFinished_; - result.activeDeadlineSeconds_ = activeDeadlineSeconds_; - result.backoffLimit_ = backoffLimit_; - 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.plugins.kubeflow.Common.RunPolicy) { - return mergeFrom((flyteidl.plugins.kubeflow.Common.RunPolicy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Common.RunPolicy other) { - if (other == flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance()) return this; - if (other.cleanPodPolicy_ != 0) { - setCleanPodPolicyValue(other.getCleanPodPolicyValue()); - } - if (other.getTtlSecondsAfterFinished() != 0) { - setTtlSecondsAfterFinished(other.getTtlSecondsAfterFinished()); - } - if (other.getActiveDeadlineSeconds() != 0) { - setActiveDeadlineSeconds(other.getActiveDeadlineSeconds()); - } - if (other.getBackoffLimit() != 0) { - setBackoffLimit(other.getBackoffLimit()); - } - 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.plugins.kubeflow.Common.RunPolicy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Common.RunPolicy) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int cleanPodPolicy_ = 0; - /** - *
-       * Defines the policy to kill pods after the job completes. Default to None.
-       * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public int getCleanPodPolicyValue() { - return cleanPodPolicy_; - } - /** - *
-       * Defines the policy to kill pods after the job completes. Default to None.
-       * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public Builder setCleanPodPolicyValue(int value) { - cleanPodPolicy_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the policy to kill pods after the job completes. Default to None.
-       * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public flyteidl.plugins.kubeflow.Common.CleanPodPolicy getCleanPodPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.CleanPodPolicy result = flyteidl.plugins.kubeflow.Common.CleanPodPolicy.valueOf(cleanPodPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.CleanPodPolicy.UNRECOGNIZED : result; - } - /** - *
-       * Defines the policy to kill pods after the job completes. Default to None.
-       * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public Builder setCleanPodPolicy(flyteidl.plugins.kubeflow.Common.CleanPodPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - cleanPodPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Defines the policy to kill pods after the job completes. Default to None.
-       * 
- * - * .flyteidl.plugins.kubeflow.CleanPodPolicy clean_pod_policy = 1; - */ - public Builder clearCleanPodPolicy() { - - cleanPodPolicy_ = 0; - onChanged(); - return this; - } - - private int ttlSecondsAfterFinished_ ; - /** - *
-       * TTL to clean up jobs. Default to infinite.
-       * 
- * - * int32 ttl_seconds_after_finished = 2; - */ - public int getTtlSecondsAfterFinished() { - return ttlSecondsAfterFinished_; - } - /** - *
-       * TTL to clean up jobs. Default to infinite.
-       * 
- * - * int32 ttl_seconds_after_finished = 2; - */ - public Builder setTtlSecondsAfterFinished(int value) { - - ttlSecondsAfterFinished_ = value; - onChanged(); - return this; - } - /** - *
-       * TTL to clean up jobs. Default to infinite.
-       * 
- * - * int32 ttl_seconds_after_finished = 2; - */ - public Builder clearTtlSecondsAfterFinished() { - - ttlSecondsAfterFinished_ = 0; - onChanged(); - return this; - } - - private int activeDeadlineSeconds_ ; - /** - *
-       * Specifies the duration in seconds relative to the startTime that the job may be active
-       * before the system tries to terminate it; value must be positive integer.
-       * 
- * - * int32 active_deadline_seconds = 3; - */ - public int getActiveDeadlineSeconds() { - return activeDeadlineSeconds_; - } - /** - *
-       * Specifies the duration in seconds relative to the startTime that the job may be active
-       * before the system tries to terminate it; value must be positive integer.
-       * 
- * - * int32 active_deadline_seconds = 3; - */ - public Builder setActiveDeadlineSeconds(int value) { - - activeDeadlineSeconds_ = value; - onChanged(); - return this; - } - /** - *
-       * Specifies the duration in seconds relative to the startTime that the job may be active
-       * before the system tries to terminate it; value must be positive integer.
-       * 
- * - * int32 active_deadline_seconds = 3; - */ - public Builder clearActiveDeadlineSeconds() { - - activeDeadlineSeconds_ = 0; - onChanged(); - return this; - } - - private int backoffLimit_ ; - /** - *
-       * Number of retries before marking this job failed.
-       * 
- * - * int32 backoff_limit = 4; - */ - public int getBackoffLimit() { - return backoffLimit_; - } - /** - *
-       * Number of retries before marking this job failed.
-       * 
- * - * int32 backoff_limit = 4; - */ - public Builder setBackoffLimit(int value) { - - backoffLimit_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of retries before marking this job failed.
-       * 
- * - * int32 backoff_limit = 4; - */ - public Builder clearBackoffLimit() { - - backoffLimit_ = 0; - onChanged(); - return this; - } - @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.plugins.kubeflow.RunPolicy) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.RunPolicy) - private static final flyteidl.plugins.kubeflow.Common.RunPolicy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Common.RunPolicy(); - } - - public static flyteidl.plugins.kubeflow.Common.RunPolicy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunPolicy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RunPolicy(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.plugins.kubeflow.Common.RunPolicy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n&flyteidl/plugins/kubeflow/common.proto" + - "\022\031flyteidl.plugins.kubeflow\"\254\001\n\tRunPolic" + - "y\022C\n\020clean_pod_policy\030\001 \001(\0162).flyteidl.p" + - "lugins.kubeflow.CleanPodPolicy\022\"\n\032ttl_se" + - "conds_after_finished\030\002 \001(\005\022\037\n\027active_dea" + - "dline_seconds\030\003 \001(\005\022\025\n\rbackoff_limit\030\004 \001" + - "(\005*c\n\rRestartPolicy\022\030\n\024RESTART_POLICY_NE" + - "VER\020\000\022\035\n\031RESTART_POLICY_ON_FAILURE\020\001\022\031\n\025" + - "RESTART_POLICY_ALWAYS\020\002*`\n\016CleanPodPolic" + - "y\022\030\n\024CLEANPOD_POLICY_NONE\020\000\022\033\n\027CLEANPOD_" + - "POLICY_RUNNING\020\001\022\027\n\023CLEANPOD_POLICY_ALL\020" + - "\002B?Z=github.com/flyteorg/flyte/flyteidl/" + - "gen/pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }, assigner); - internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_kubeflow_RunPolicy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_RunPolicy_descriptor, - new java.lang.String[] { "CleanPodPolicy", "TtlSecondsAfterFinished", "ActiveDeadlineSeconds", "BackoffLimit", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java deleted file mode 100644 index bb57a2e620..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Mpi.java +++ /dev/null @@ -1,2701 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/mpi.proto - -package flyteidl.plugins.kubeflow; - -public final class Mpi { - private Mpi() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedMPITrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - boolean hasWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); - - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - boolean hasLauncherReplicas(); - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas(); - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder(); - - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - boolean hasRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); - - /** - *
-     * Number of slots per worker
-     * 
- * - * int32 slots = 4; - */ - int getSlots(); - } - /** - *
-   * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingTask} - */ - public static final class DistributedMPITrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - DistributedMPITrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedMPITrainingTask.newBuilder() to construct. - private DistributedMPITrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedMPITrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedMPITrainingTask( - 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder subBuilder = null; - if (workerReplicas_ != null) { - subBuilder = workerReplicas_.toBuilder(); - } - workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerReplicas_); - workerReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder subBuilder = null; - if (launcherReplicas_ != null) { - subBuilder = launcherReplicas_.toBuilder(); - } - launcherReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(launcherReplicas_); - launcherReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; - if (runPolicy_ != null) { - subBuilder = runPolicy_.toBuilder(); - } - runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runPolicy_); - runPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - - slots_ = input.readInt32(); - 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.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.Builder.class); - } - - public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; - private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec workerReplicas_; - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicas_ != null; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas() { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - return getWorkerReplicas(); - } - - public static final int LAUNCHER_REPLICAS_FIELD_NUMBER = 2; - private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec launcherReplicas_; - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public boolean hasLauncherReplicas() { - return launcherReplicas_ != null; - } - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas() { - return launcherReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; - } - /** - *
-     * Master replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder() { - return getLauncherReplicas(); - } - - public static final int RUN_POLICY_FIELD_NUMBER = 3; - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public boolean hasRunPolicy() { - return runPolicy_ != null; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - return getRunPolicy(); - } - - public static final int SLOTS_FIELD_NUMBER = 4; - private int slots_; - /** - *
-     * Number of slots per worker
-     * 
- * - * int32 slots = 4; - */ - public int getSlots() { - return slots_; - } - - 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 (workerReplicas_ != null) { - output.writeMessage(1, getWorkerReplicas()); - } - if (launcherReplicas_ != null) { - output.writeMessage(2, getLauncherReplicas()); - } - if (runPolicy_ != null) { - output.writeMessage(3, getRunPolicy()); - } - if (slots_ != 0) { - output.writeInt32(4, slots_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workerReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkerReplicas()); - } - if (launcherReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getLauncherReplicas()); - } - if (runPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRunPolicy()); - } - if (slots_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, slots_); - } - 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask other = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask) obj; - - if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; - if (hasWorkerReplicas()) { - if (!getWorkerReplicas() - .equals(other.getWorkerReplicas())) return false; - } - if (hasLauncherReplicas() != other.hasLauncherReplicas()) return false; - if (hasLauncherReplicas()) { - if (!getLauncherReplicas() - .equals(other.getLauncherReplicas())) return false; - } - if (hasRunPolicy() != other.hasRunPolicy()) return false; - if (hasRunPolicy()) { - if (!getRunPolicy() - .equals(other.getRunPolicy())) return false; - } - if (getSlots() - != other.getSlots()) 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 (hasWorkerReplicas()) { - hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getWorkerReplicas().hashCode(); - } - if (hasLauncherReplicas()) { - hash = (37 * hash) + LAUNCHER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getLauncherReplicas().hashCode(); - } - if (hasRunPolicy()) { - hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getRunPolicy().hashCode(); - } - hash = (37 * hash) + SLOTS_FIELD_NUMBER; - hash = (53 * hash) + getSlots(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask 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; - } - /** - *
-     * Proto for plugin that enables distributed training using https://github.com/kubeflow/mpi-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.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 (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - if (launcherReplicasBuilder_ == null) { - launcherReplicas_ = null; - } else { - launcherReplicas_ = null; - launcherReplicasBuilder_ = null; - } - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - slots_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask build() { - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask buildPartial() { - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask result = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask(this); - if (workerReplicasBuilder_ == null) { - result.workerReplicas_ = workerReplicas_; - } else { - result.workerReplicas_ = workerReplicasBuilder_.build(); - } - if (launcherReplicasBuilder_ == null) { - result.launcherReplicas_ = launcherReplicas_; - } else { - result.launcherReplicas_ = launcherReplicasBuilder_.build(); - } - if (runPolicyBuilder_ == null) { - result.runPolicy_ = runPolicy_; - } else { - result.runPolicy_ = runPolicyBuilder_.build(); - } - result.slots_ = slots_; - 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask) { - return mergeFrom((flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask other) { - if (other == flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask.getDefaultInstance()) return this; - if (other.hasWorkerReplicas()) { - mergeWorkerReplicas(other.getWorkerReplicas()); - } - if (other.hasLauncherReplicas()) { - mergeLauncherReplicas(other.getLauncherReplicas()); - } - if (other.hasRunPolicy()) { - mergeRunPolicy(other.getRunPolicy()); - } - if (other.getSlots() != 0) { - setSlots(other.getSlots()); - } - 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.plugins.kubeflow.Mpi.DistributedMPITrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec workerReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> workerReplicasBuilder_; - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicasBuilder_ != null || workerReplicas_ != null; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } else { - return workerReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerReplicas_ = value; - onChanged(); - } else { - workerReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder builderForValue) { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = builderForValue.build(); - onChanged(); - } else { - workerReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (workerReplicas_ != null) { - workerReplicas_ = - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); - } else { - workerReplicas_ = value; - } - onChanged(); - } else { - workerReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public Builder clearWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - onChanged(); - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder getWorkerReplicasBuilder() { - - onChanged(); - return getWorkerReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - if (workerReplicasBuilder_ != null) { - return workerReplicasBuilder_.getMessageOrBuilder(); - } else { - return workerReplicas_ == null ? - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec worker_replicas = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> - getWorkerReplicasFieldBuilder() { - if (workerReplicasBuilder_ == null) { - workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder>( - getWorkerReplicas(), - getParentForChildren(), - isClean()); - workerReplicas_ = null; - } - return workerReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec launcherReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> launcherReplicasBuilder_; - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public boolean hasLauncherReplicas() { - return launcherReplicasBuilder_ != null || launcherReplicas_ != null; - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getLauncherReplicas() { - if (launcherReplicasBuilder_ == null) { - return launcherReplicas_ == null ? flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; - } else { - return launcherReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public Builder setLauncherReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { - if (launcherReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - launcherReplicas_ = value; - onChanged(); - } else { - launcherReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public Builder setLauncherReplicas( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder builderForValue) { - if (launcherReplicasBuilder_ == null) { - launcherReplicas_ = builderForValue.build(); - onChanged(); - } else { - launcherReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public Builder mergeLauncherReplicas(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec value) { - if (launcherReplicasBuilder_ == null) { - if (launcherReplicas_ != null) { - launcherReplicas_ = - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.newBuilder(launcherReplicas_).mergeFrom(value).buildPartial(); - } else { - launcherReplicas_ = value; - } - onChanged(); - } else { - launcherReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public Builder clearLauncherReplicas() { - if (launcherReplicasBuilder_ == null) { - launcherReplicas_ = null; - onChanged(); - } else { - launcherReplicas_ = null; - launcherReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder getLauncherReplicasBuilder() { - - onChanged(); - return getLauncherReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder getLauncherReplicasOrBuilder() { - if (launcherReplicasBuilder_ != null) { - return launcherReplicasBuilder_.getMessageOrBuilder(); - } else { - return launcherReplicas_ == null ? - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance() : launcherReplicas_; - } - } - /** - *
-       * Master replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec launcher_replicas = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder> - getLauncherReplicasFieldBuilder() { - if (launcherReplicasBuilder_ == null) { - launcherReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder>( - getLauncherReplicas(), - getParentForChildren(), - isClean()); - launcherReplicas_ = null; - } - return launcherReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public boolean hasRunPolicy() { - return runPolicyBuilder_ != null || runPolicy_ != null; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - if (runPolicyBuilder_ == null) { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } else { - return runPolicyBuilder_.getMessage(); - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runPolicy_ = value; - onChanged(); - } else { - runPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder setRunPolicy( - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { - if (runPolicyBuilder_ == null) { - runPolicy_ = builderForValue.build(); - onChanged(); - } else { - runPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (runPolicy_ != null) { - runPolicy_ = - flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); - } else { - runPolicy_ = value; - } - onChanged(); - } else { - runPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder clearRunPolicy() { - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - onChanged(); - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { - - onChanged(); - return getRunPolicyFieldBuilder().getBuilder(); - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - if (runPolicyBuilder_ != null) { - return runPolicyBuilder_.getMessageOrBuilder(); - } else { - return runPolicy_ == null ? - flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> - getRunPolicyFieldBuilder() { - if (runPolicyBuilder_ == null) { - runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( - getRunPolicy(), - getParentForChildren(), - isClean()); - runPolicy_ = null; - } - return runPolicyBuilder_; - } - - private int slots_ ; - /** - *
-       * Number of slots per worker
-       * 
- * - * int32 slots = 4; - */ - public int getSlots() { - return slots_; - } - /** - *
-       * Number of slots per worker
-       * 
- * - * int32 slots = 4; - */ - public Builder setSlots(int value) { - - slots_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of slots per worker
-       * 
- * - * int32 slots = 4; - */ - public Builder clearSlots() { - - slots_ = 0; - onChanged(); - return this; - } - @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.plugins.kubeflow.DistributedMPITrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingTask) - private static final flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask(); - } - - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedMPITrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedMPITrainingTask(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.plugins.kubeflow.Mpi.DistributedMPITrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistributedMPITrainingReplicaSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - int getReplicas(); - - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - java.lang.String getImage(); - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - boolean hasResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * Restart policy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - int getRestartPolicyValue(); - /** - *
-     * Restart policy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); - - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - java.util.List - getCommandList(); - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - int getCommandCount(); - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - java.lang.String getCommand(int index); - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - com.google.protobuf.ByteString - getCommandBytes(int index); - } - /** - *
-   * Replica specification for distributed MPI training
-   * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec} - */ - public static final class DistributedMPITrainingReplicaSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - DistributedMPITrainingReplicaSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedMPITrainingReplicaSpec.newBuilder() to construct. - private DistributedMPITrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedMPITrainingReplicaSpec() { - image_ = ""; - restartPolicy_ = 0; - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedMPITrainingReplicaSpec( - 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 8: { - - replicas_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - restartPolicy_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - command_.add(s); - 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 { - if (((mutable_bitField0_ & 0x00000010) != 0)) { - command_ = command_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder.class); - } - - private int bitField0_; - public static final int REPLICAS_FIELD_NUMBER = 1; - private int replicas_; - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - - public static final int IMAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object image_; - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCES_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int RESTART_POLICY_FIELD_NUMBER = 4; - private int restartPolicy_; - /** - *
-     * Restart policy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-     * Restart policy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - - public static final int COMMAND_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList command_; - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_; - } - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-     * MPI sometimes requires different command set for different replica groups
-     * 
- * - * repeated string command = 5; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - - 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 (replicas_ != 0) { - output.writeInt32(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); - } - if (resources_ != null) { - output.writeMessage(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - output.writeEnum(4, restartPolicy_); - } - for (int i = 0; i < command_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, command_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (replicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, restartPolicy_); - } - { - int dataSize = 0; - for (int i = 0; i < command_.size(); i++) { - dataSize += computeStringSizeNoTag(command_.getRaw(i)); - } - size += dataSize; - size += 1 * getCommandList().size(); - } - 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) obj; - - if (getReplicas() - != other.getReplicas()) return false; - if (!getImage() - .equals(other.getImage())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (restartPolicy_ != other.restartPolicy_) return false; - if (!getCommandList() - .equals(other.getCommandList())) 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(); - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; - hash = (53 * hash) + restartPolicy_; - if (getCommandCount() > 0) { - hash = (37 * hash) + COMMAND_FIELD_NUMBER; - hash = (53 * hash) + getCommandList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec 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; - } - /** - *
-     * Replica specification for distributed MPI training
-     * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.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(); - replicas_ = 0; - - image_ = ""; - - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - restartPolicy_ = 0; - - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Mpi.internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec build() { - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec buildPartial() { - flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.replicas_ = replicas_; - result.image_ = image_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - result.restartPolicy_ = restartPolicy_; - if (((bitField0_ & 0x00000010) != 0)) { - command_ = command_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.command_ = command_; - result.bitField0_ = to_bitField0_; - 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) { - return mergeFrom((flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec other) { - if (other == flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec.getDefaultInstance()) return this; - if (other.getReplicas() != 0) { - setReplicas(other.getReplicas()); - } - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (other.restartPolicy_ != 0) { - setRestartPolicyValue(other.getRestartPolicyValue()); - } - if (!other.command_.isEmpty()) { - if (command_.isEmpty()) { - command_ = other.command_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureCommandIsMutable(); - command_.addAll(other.command_); - } - onChanged(); - } - 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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private int replicas_ ; - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder setReplicas(int value) { - - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder clearReplicas() { - - replicas_ = 0; - onChanged(); - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private int restartPolicy_ = 0; - /** - *
-       * Restart policy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-       * Restart policy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicyValue(int value) { - restartPolicy_ = value; - onChanged(); - return this; - } - /** - *
-       * Restart policy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - /** - *
-       * Restart policy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - restartPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Restart policy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder clearRestartPolicy() { - - restartPolicy_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCommandIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - command_ = new com.google.protobuf.LazyStringArrayList(command_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public com.google.protobuf.ProtocolStringList - getCommandList() { - return command_.getUnmodifiableView(); - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public int getCommandCount() { - return command_.size(); - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public java.lang.String getCommand(int index) { - return command_.get(index); - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public com.google.protobuf.ByteString - getCommandBytes(int index) { - return command_.getByteString(index); - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public Builder setCommand( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public Builder addCommand( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public Builder addAllCommand( - java.lang.Iterable values) { - ensureCommandIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, command_); - onChanged(); - return this; - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public Builder clearCommand() { - command_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * MPI sometimes requires different command set for different replica groups
-       * 
- * - * repeated string command = 5; - */ - public Builder addCommandBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCommandIsMutable(); - command_.add(value); - onChanged(); - return this; - } - @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.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpec) - private static final flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec(); - } - - public static flyteidl.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedMPITrainingReplicaSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedMPITrainingReplicaSpec(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.plugins.kubeflow.Mpi.DistributedMPITrainingReplicaSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n#flyteidl/plugins/kubeflow/mpi.proto\022\031f" + - "lyteidl.plugins.kubeflow\032\031flyteidl/core/" + - "tasks.proto\032&flyteidl/plugins/kubeflow/c" + - "ommon.proto\"\225\002\n\032DistributedMPITrainingTa" + - "sk\022U\n\017worker_replicas\030\001 \001(\0132<.flyteidl.p" + - "lugins.kubeflow.DistributedMPITrainingRe" + - "plicaSpec\022W\n\021launcher_replicas\030\002 \001(\0132<.f" + - "lyteidl.plugins.kubeflow.DistributedMPIT" + - "rainingReplicaSpec\0228\n\nrun_policy\030\003 \001(\0132$" + - ".flyteidl.plugins.kubeflow.RunPolicy\022\r\n\005" + - "slots\030\004 \001(\005\"\304\001\n!DistributedMPITrainingRe" + - "plicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001" + - "(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Re" + - "sources\022@\n\016restart_policy\030\004 \001(\0162(.flytei" + - "dl.plugins.kubeflow.RestartPolicy\022\017\n\007com" + - "mand\030\005 \003(\tB?Z=github.com/flyteorg/flyte/" + - "flyteidl/gen/pb-go/flyteidl/pluginsb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - flyteidl.plugins.kubeflow.Common.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingTask_descriptor, - new java.lang.String[] { "WorkerReplicas", "LauncherReplicas", "RunPolicy", "Slots", }); - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedMPITrainingReplicaSpec_descriptor, - new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", "Command", }); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.plugins.kubeflow.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java deleted file mode 100644 index dfb6c5769f..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Pytorch.java +++ /dev/null @@ -1,3425 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/pytorch.proto - -package flyteidl.plugins.kubeflow; - -public final class Pytorch { - private Pytorch() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface ElasticConfigOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.ElasticConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * string rdzv_backend = 1; - */ - java.lang.String getRdzvBackend(); - /** - * string rdzv_backend = 1; - */ - com.google.protobuf.ByteString - getRdzvBackendBytes(); - - /** - * int32 min_replicas = 2; - */ - int getMinReplicas(); - - /** - * int32 max_replicas = 3; - */ - int getMaxReplicas(); - - /** - * int32 nproc_per_node = 4; - */ - int getNprocPerNode(); - - /** - * int32 max_restarts = 5; - */ - int getMaxRestarts(); - } - /** - *
-   * Custom proto for torch elastic config for distributed training using 
-   * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
-   * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.ElasticConfig} - */ - public static final class ElasticConfig extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.ElasticConfig) - ElasticConfigOrBuilder { - private static final long serialVersionUID = 0L; - // Use ElasticConfig.newBuilder() to construct. - private ElasticConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ElasticConfig() { - rdzvBackend_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ElasticConfig( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - rdzvBackend_ = s; - break; - } - case 16: { - - minReplicas_ = input.readInt32(); - break; - } - case 24: { - - maxReplicas_ = input.readInt32(); - break; - } - case 32: { - - nprocPerNode_ = input.readInt32(); - break; - } - case 40: { - - maxRestarts_ = input.readInt32(); - 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.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.class, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder.class); - } - - public static final int RDZV_BACKEND_FIELD_NUMBER = 1; - private volatile java.lang.Object rdzvBackend_; - /** - * string rdzv_backend = 1; - */ - public java.lang.String getRdzvBackend() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rdzvBackend_ = s; - return s; - } - } - /** - * string rdzv_backend = 1; - */ - public com.google.protobuf.ByteString - getRdzvBackendBytes() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rdzvBackend_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_REPLICAS_FIELD_NUMBER = 2; - private int minReplicas_; - /** - * int32 min_replicas = 2; - */ - public int getMinReplicas() { - return minReplicas_; - } - - public static final int MAX_REPLICAS_FIELD_NUMBER = 3; - private int maxReplicas_; - /** - * int32 max_replicas = 3; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - - public static final int NPROC_PER_NODE_FIELD_NUMBER = 4; - private int nprocPerNode_; - /** - * int32 nproc_per_node = 4; - */ - public int getNprocPerNode() { - return nprocPerNode_; - } - - public static final int MAX_RESTARTS_FIELD_NUMBER = 5; - private int maxRestarts_; - /** - * int32 max_restarts = 5; - */ - public int getMaxRestarts() { - return maxRestarts_; - } - - 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 (!getRdzvBackendBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rdzvBackend_); - } - if (minReplicas_ != 0) { - output.writeInt32(2, minReplicas_); - } - if (maxReplicas_ != 0) { - output.writeInt32(3, maxReplicas_); - } - if (nprocPerNode_ != 0) { - output.writeInt32(4, nprocPerNode_); - } - if (maxRestarts_ != 0) { - output.writeInt32(5, maxRestarts_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getRdzvBackendBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rdzvBackend_); - } - if (minReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minReplicas_); - } - if (maxReplicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxReplicas_); - } - if (nprocPerNode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, nprocPerNode_); - } - if (maxRestarts_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, maxRestarts_); - } - 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.plugins.kubeflow.Pytorch.ElasticConfig)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig other = (flyteidl.plugins.kubeflow.Pytorch.ElasticConfig) obj; - - if (!getRdzvBackend() - .equals(other.getRdzvBackend())) return false; - if (getMinReplicas() - != other.getMinReplicas()) return false; - if (getMaxReplicas() - != other.getMaxReplicas()) return false; - if (getNprocPerNode() - != other.getNprocPerNode()) return false; - if (getMaxRestarts() - != other.getMaxRestarts()) 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(); - hash = (37 * hash) + RDZV_BACKEND_FIELD_NUMBER; - hash = (53 * hash) + getRdzvBackend().hashCode(); - hash = (37 * hash) + MIN_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMinReplicas(); - hash = (37 * hash) + MAX_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReplicas(); - hash = (37 * hash) + NPROC_PER_NODE_FIELD_NUMBER; - hash = (53 * hash) + getNprocPerNode(); - hash = (37 * hash) + MAX_RESTARTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxRestarts(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig 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.plugins.kubeflow.Pytorch.ElasticConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig 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.plugins.kubeflow.Pytorch.ElasticConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig 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.plugins.kubeflow.Pytorch.ElasticConfig 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; - } - /** - *
-     * Custom proto for torch elastic config for distributed training using 
-     * https://github.com/kubeflow/training-operator/blob/master/pkg/apis/kubeflow.org/v1/pytorch_types.go
-     * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.ElasticConfig} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.ElasticConfig) - flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.class, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.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(); - rdzvBackend_ = ""; - - minReplicas_ = 0; - - maxReplicas_ = 0; - - nprocPerNode_ = 0; - - maxRestarts_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig build() { - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig buildPartial() { - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig result = new flyteidl.plugins.kubeflow.Pytorch.ElasticConfig(this); - result.rdzvBackend_ = rdzvBackend_; - result.minReplicas_ = minReplicas_; - result.maxReplicas_ = maxReplicas_; - result.nprocPerNode_ = nprocPerNode_; - result.maxRestarts_ = maxRestarts_; - 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.plugins.kubeflow.Pytorch.ElasticConfig) { - return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.ElasticConfig)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig other) { - if (other == flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance()) return this; - if (!other.getRdzvBackend().isEmpty()) { - rdzvBackend_ = other.rdzvBackend_; - onChanged(); - } - if (other.getMinReplicas() != 0) { - setMinReplicas(other.getMinReplicas()); - } - if (other.getMaxReplicas() != 0) { - setMaxReplicas(other.getMaxReplicas()); - } - if (other.getNprocPerNode() != 0) { - setNprocPerNode(other.getNprocPerNode()); - } - if (other.getMaxRestarts() != 0) { - setMaxRestarts(other.getMaxRestarts()); - } - 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.plugins.kubeflow.Pytorch.ElasticConfig parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.ElasticConfig) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object rdzvBackend_ = ""; - /** - * string rdzv_backend = 1; - */ - public java.lang.String getRdzvBackend() { - java.lang.Object ref = rdzvBackend_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rdzvBackend_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string rdzv_backend = 1; - */ - public com.google.protobuf.ByteString - getRdzvBackendBytes() { - java.lang.Object ref = rdzvBackend_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - rdzvBackend_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string rdzv_backend = 1; - */ - public Builder setRdzvBackend( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - rdzvBackend_ = value; - onChanged(); - return this; - } - /** - * string rdzv_backend = 1; - */ - public Builder clearRdzvBackend() { - - rdzvBackend_ = getDefaultInstance().getRdzvBackend(); - onChanged(); - return this; - } - /** - * string rdzv_backend = 1; - */ - public Builder setRdzvBackendBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - rdzvBackend_ = value; - onChanged(); - return this; - } - - private int minReplicas_ ; - /** - * int32 min_replicas = 2; - */ - public int getMinReplicas() { - return minReplicas_; - } - /** - * int32 min_replicas = 2; - */ - public Builder setMinReplicas(int value) { - - minReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 min_replicas = 2; - */ - public Builder clearMinReplicas() { - - minReplicas_ = 0; - onChanged(); - return this; - } - - private int maxReplicas_ ; - /** - * int32 max_replicas = 3; - */ - public int getMaxReplicas() { - return maxReplicas_; - } - /** - * int32 max_replicas = 3; - */ - public Builder setMaxReplicas(int value) { - - maxReplicas_ = value; - onChanged(); - return this; - } - /** - * int32 max_replicas = 3; - */ - public Builder clearMaxReplicas() { - - maxReplicas_ = 0; - onChanged(); - return this; - } - - private int nprocPerNode_ ; - /** - * int32 nproc_per_node = 4; - */ - public int getNprocPerNode() { - return nprocPerNode_; - } - /** - * int32 nproc_per_node = 4; - */ - public Builder setNprocPerNode(int value) { - - nprocPerNode_ = value; - onChanged(); - return this; - } - /** - * int32 nproc_per_node = 4; - */ - public Builder clearNprocPerNode() { - - nprocPerNode_ = 0; - onChanged(); - return this; - } - - private int maxRestarts_ ; - /** - * int32 max_restarts = 5; - */ - public int getMaxRestarts() { - return maxRestarts_; - } - /** - * int32 max_restarts = 5; - */ - public Builder setMaxRestarts(int value) { - - maxRestarts_ = value; - onChanged(); - return this; - } - /** - * int32 max_restarts = 5; - */ - public Builder clearMaxRestarts() { - - maxRestarts_ = 0; - onChanged(); - return this; - } - @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.plugins.kubeflow.ElasticConfig) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.ElasticConfig) - private static final flyteidl.plugins.kubeflow.Pytorch.ElasticConfig DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.ElasticConfig(); - } - - public static flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ElasticConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ElasticConfig(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.plugins.kubeflow.Pytorch.ElasticConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistributedPyTorchTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - boolean hasWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); - - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - boolean hasMasterReplicas(); - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas(); - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder(); - - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - boolean hasRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); - - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - boolean hasElasticConfig(); - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig(); - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder(); - } - /** - *
-   * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask} - */ - public static final class DistributedPyTorchTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - DistributedPyTorchTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedPyTorchTrainingTask.newBuilder() to construct. - private DistributedPyTorchTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedPyTorchTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedPyTorchTrainingTask( - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder subBuilder = null; - if (workerReplicas_ != null) { - subBuilder = workerReplicas_.toBuilder(); - } - workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerReplicas_); - workerReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder subBuilder = null; - if (masterReplicas_ != null) { - subBuilder = masterReplicas_.toBuilder(); - } - masterReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(masterReplicas_); - masterReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; - if (runPolicy_ != null) { - subBuilder = runPolicy_.toBuilder(); - } - runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runPolicy_); - runPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder subBuilder = null; - if (elasticConfig_ != null) { - subBuilder = elasticConfig_.toBuilder(); - } - elasticConfig_ = input.readMessage(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(elasticConfig_); - elasticConfig_ = 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.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; - private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec workerReplicas_; - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicas_ != null; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas() { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - return getWorkerReplicas(); - } - - public static final int MASTER_REPLICAS_FIELD_NUMBER = 2; - private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec masterReplicas_; - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public boolean hasMasterReplicas() { - return masterReplicas_ != null; - } - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas() { - return masterReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; - } - /** - *
-     * Master replicas spec, master replicas can only have 1 replica
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder() { - return getMasterReplicas(); - } - - public static final int RUN_POLICY_FIELD_NUMBER = 3; - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public boolean hasRunPolicy() { - return runPolicy_ != null; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - return getRunPolicy(); - } - - public static final int ELASTIC_CONFIG_FIELD_NUMBER = 4; - private flyteidl.plugins.kubeflow.Pytorch.ElasticConfig elasticConfig_; - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public boolean hasElasticConfig() { - return elasticConfig_ != null; - } - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig() { - return elasticConfig_ == null ? flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } - /** - *
-     * config for an elastic pytorch job
-     * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { - return getElasticConfig(); - } - - 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 (workerReplicas_ != null) { - output.writeMessage(1, getWorkerReplicas()); - } - if (masterReplicas_ != null) { - output.writeMessage(2, getMasterReplicas()); - } - if (runPolicy_ != null) { - output.writeMessage(3, getRunPolicy()); - } - if (elasticConfig_ != null) { - output.writeMessage(4, getElasticConfig()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workerReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkerReplicas()); - } - if (masterReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMasterReplicas()); - } - if (runPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRunPolicy()); - } - if (elasticConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getElasticConfig()); - } - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask other = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) obj; - - if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; - if (hasWorkerReplicas()) { - if (!getWorkerReplicas() - .equals(other.getWorkerReplicas())) return false; - } - if (hasMasterReplicas() != other.hasMasterReplicas()) return false; - if (hasMasterReplicas()) { - if (!getMasterReplicas() - .equals(other.getMasterReplicas())) return false; - } - if (hasRunPolicy() != other.hasRunPolicy()) return false; - if (hasRunPolicy()) { - if (!getRunPolicy() - .equals(other.getRunPolicy())) return false; - } - if (hasElasticConfig() != other.hasElasticConfig()) return false; - if (hasElasticConfig()) { - if (!getElasticConfig() - .equals(other.getElasticConfig())) 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 (hasWorkerReplicas()) { - hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getWorkerReplicas().hashCode(); - } - if (hasMasterReplicas()) { - hash = (37 * hash) + MASTER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getMasterReplicas().hashCode(); - } - if (hasRunPolicy()) { - hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getRunPolicy().hashCode(); - } - if (hasElasticConfig()) { - hash = (37 * hash) + ELASTIC_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getElasticConfig().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask 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; - } - /** - *
-     * Proto for plugin that enables distributed training using https://github.com/kubeflow/pytorch-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.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 (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - if (masterReplicasBuilder_ == null) { - masterReplicas_ = null; - } else { - masterReplicas_ = null; - masterReplicasBuilder_ = null; - } - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - if (elasticConfigBuilder_ == null) { - elasticConfig_ = null; - } else { - elasticConfig_ = null; - elasticConfigBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask build() { - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask buildPartial() { - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask result = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask(this); - if (workerReplicasBuilder_ == null) { - result.workerReplicas_ = workerReplicas_; - } else { - result.workerReplicas_ = workerReplicasBuilder_.build(); - } - if (masterReplicasBuilder_ == null) { - result.masterReplicas_ = masterReplicas_; - } else { - result.masterReplicas_ = masterReplicasBuilder_.build(); - } - if (runPolicyBuilder_ == null) { - result.runPolicy_ = runPolicy_; - } else { - result.runPolicy_ = runPolicyBuilder_.build(); - } - if (elasticConfigBuilder_ == null) { - result.elasticConfig_ = elasticConfig_; - } else { - result.elasticConfig_ = elasticConfigBuilder_.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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) { - return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask other) { - if (other == flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask.getDefaultInstance()) return this; - if (other.hasWorkerReplicas()) { - mergeWorkerReplicas(other.getWorkerReplicas()); - } - if (other.hasMasterReplicas()) { - mergeMasterReplicas(other.getMasterReplicas()); - } - if (other.hasRunPolicy()) { - mergeRunPolicy(other.getRunPolicy()); - } - if (other.hasElasticConfig()) { - mergeElasticConfig(other.getElasticConfig()); - } - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec workerReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> workerReplicasBuilder_; - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicasBuilder_ != null || workerReplicas_ != null; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } else { - return workerReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerReplicas_ = value; - onChanged(); - } else { - workerReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder builderForValue) { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = builderForValue.build(); - onChanged(); - } else { - workerReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (workerReplicas_ != null) { - workerReplicas_ = - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); - } else { - workerReplicas_ = value; - } - onChanged(); - } else { - workerReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public Builder clearWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - onChanged(); - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder getWorkerReplicasBuilder() { - - onChanged(); - return getWorkerReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - if (workerReplicasBuilder_ != null) { - return workerReplicasBuilder_.getMessageOrBuilder(); - } else { - return workerReplicas_ == null ? - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec worker_replicas = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> - getWorkerReplicasFieldBuilder() { - if (workerReplicasBuilder_ == null) { - workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder>( - getWorkerReplicas(), - getParentForChildren(), - isClean()); - workerReplicas_ = null; - } - return workerReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec masterReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> masterReplicasBuilder_; - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public boolean hasMasterReplicas() { - return masterReplicasBuilder_ != null || masterReplicas_ != null; - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getMasterReplicas() { - if (masterReplicasBuilder_ == null) { - return masterReplicas_ == null ? flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; - } else { - return masterReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public Builder setMasterReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { - if (masterReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - masterReplicas_ = value; - onChanged(); - } else { - masterReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public Builder setMasterReplicas( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder builderForValue) { - if (masterReplicasBuilder_ == null) { - masterReplicas_ = builderForValue.build(); - onChanged(); - } else { - masterReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public Builder mergeMasterReplicas(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec value) { - if (masterReplicasBuilder_ == null) { - if (masterReplicas_ != null) { - masterReplicas_ = - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.newBuilder(masterReplicas_).mergeFrom(value).buildPartial(); - } else { - masterReplicas_ = value; - } - onChanged(); - } else { - masterReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public Builder clearMasterReplicas() { - if (masterReplicasBuilder_ == null) { - masterReplicas_ = null; - onChanged(); - } else { - masterReplicas_ = null; - masterReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder getMasterReplicasBuilder() { - - onChanged(); - return getMasterReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder getMasterReplicasOrBuilder() { - if (masterReplicasBuilder_ != null) { - return masterReplicasBuilder_.getMessageOrBuilder(); - } else { - return masterReplicas_ == null ? - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance() : masterReplicas_; - } - } - /** - *
-       * Master replicas spec, master replicas can only have 1 replica
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec master_replicas = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder> - getMasterReplicasFieldBuilder() { - if (masterReplicasBuilder_ == null) { - masterReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder>( - getMasterReplicas(), - getParentForChildren(), - isClean()); - masterReplicas_ = null; - } - return masterReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public boolean hasRunPolicy() { - return runPolicyBuilder_ != null || runPolicy_ != null; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - if (runPolicyBuilder_ == null) { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } else { - return runPolicyBuilder_.getMessage(); - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runPolicy_ = value; - onChanged(); - } else { - runPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder setRunPolicy( - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { - if (runPolicyBuilder_ == null) { - runPolicy_ = builderForValue.build(); - onChanged(); - } else { - runPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (runPolicy_ != null) { - runPolicy_ = - flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); - } else { - runPolicy_ = value; - } - onChanged(); - } else { - runPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public Builder clearRunPolicy() { - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - onChanged(); - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { - - onChanged(); - return getRunPolicyFieldBuilder().getBuilder(); - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - if (runPolicyBuilder_ != null) { - return runPolicyBuilder_.getMessageOrBuilder(); - } else { - return runPolicy_ == null ? - flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> - getRunPolicyFieldBuilder() { - if (runPolicyBuilder_ == null) { - runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( - getRunPolicy(), - getParentForChildren(), - isClean()); - runPolicy_ = null; - } - return runPolicyBuilder_; - } - - private flyteidl.plugins.kubeflow.Pytorch.ElasticConfig elasticConfig_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder> elasticConfigBuilder_; - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public boolean hasElasticConfig() { - return elasticConfigBuilder_ != null || elasticConfig_ != null; - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig getElasticConfig() { - if (elasticConfigBuilder_ == null) { - return elasticConfig_ == null ? flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } else { - return elasticConfigBuilder_.getMessage(); - } - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public Builder setElasticConfig(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig value) { - if (elasticConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - elasticConfig_ = value; - onChanged(); - } else { - elasticConfigBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public Builder setElasticConfig( - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder builderForValue) { - if (elasticConfigBuilder_ == null) { - elasticConfig_ = builderForValue.build(); - onChanged(); - } else { - elasticConfigBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public Builder mergeElasticConfig(flyteidl.plugins.kubeflow.Pytorch.ElasticConfig value) { - if (elasticConfigBuilder_ == null) { - if (elasticConfig_ != null) { - elasticConfig_ = - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.newBuilder(elasticConfig_).mergeFrom(value).buildPartial(); - } else { - elasticConfig_ = value; - } - onChanged(); - } else { - elasticConfigBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public Builder clearElasticConfig() { - if (elasticConfigBuilder_ == null) { - elasticConfig_ = null; - onChanged(); - } else { - elasticConfig_ = null; - elasticConfigBuilder_ = null; - } - - return this; - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder getElasticConfigBuilder() { - - onChanged(); - return getElasticConfigFieldBuilder().getBuilder(); - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - public flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder getElasticConfigOrBuilder() { - if (elasticConfigBuilder_ != null) { - return elasticConfigBuilder_.getMessageOrBuilder(); - } else { - return elasticConfig_ == null ? - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.getDefaultInstance() : elasticConfig_; - } - } - /** - *
-       * config for an elastic pytorch job
-       * 
- * - * .flyteidl.plugins.kubeflow.ElasticConfig elastic_config = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder> - getElasticConfigFieldBuilder() { - if (elasticConfigBuilder_ == null) { - elasticConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Pytorch.ElasticConfig, flyteidl.plugins.kubeflow.Pytorch.ElasticConfig.Builder, flyteidl.plugins.kubeflow.Pytorch.ElasticConfigOrBuilder>( - getElasticConfig(), - getParentForChildren(), - isClean()); - elasticConfig_ = null; - } - return elasticConfigBuilder_; - } - @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.plugins.kubeflow.DistributedPyTorchTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingTask) - private static final flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask(); - } - - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedPyTorchTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedPyTorchTrainingTask(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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistributedPyTorchTrainingReplicaSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - int getReplicas(); - - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - java.lang.String getImage(); - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - boolean hasResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * RestartPolicy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - int getRestartPolicyValue(); - /** - *
-     * RestartPolicy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec} - */ - public static final class DistributedPyTorchTrainingReplicaSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - DistributedPyTorchTrainingReplicaSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedPyTorchTrainingReplicaSpec.newBuilder() to construct. - private DistributedPyTorchTrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedPyTorchTrainingReplicaSpec() { - image_ = ""; - restartPolicy_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedPyTorchTrainingReplicaSpec( - 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 8: { - - replicas_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - restartPolicy_ = rawValue; - 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.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder.class); - } - - public static final int REPLICAS_FIELD_NUMBER = 1; - private int replicas_; - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - - public static final int IMAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object image_; - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCES_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int RESTART_POLICY_FIELD_NUMBER = 4; - private int restartPolicy_; - /** - *
-     * RestartPolicy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-     * RestartPolicy determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - - 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 (replicas_ != 0) { - output.writeInt32(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); - } - if (resources_ != null) { - output.writeMessage(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - output.writeEnum(4, restartPolicy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (replicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, restartPolicy_); - } - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) obj; - - if (getReplicas() - != other.getReplicas()) return false; - if (!getImage() - .equals(other.getImage())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (restartPolicy_ != other.restartPolicy_) 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(); - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; - hash = (53 * hash) + restartPolicy_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec 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; - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.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(); - replicas_ = 0; - - image_ = ""; - - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - restartPolicy_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Pytorch.internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec build() { - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec buildPartial() { - flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec(this); - result.replicas_ = replicas_; - result.image_ = image_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - result.restartPolicy_ = restartPolicy_; - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) { - return mergeFrom((flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec other) { - if (other == flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec.getDefaultInstance()) return this; - if (other.getReplicas() != 0) { - setReplicas(other.getReplicas()); - } - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (other.restartPolicy_ != 0) { - setRestartPolicyValue(other.getRestartPolicyValue()); - } - 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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int replicas_ ; - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder setReplicas(int value) { - - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder clearReplicas() { - - replicas_ = 0; - onChanged(); - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private int restartPolicy_ = 0; - /** - *
-       * RestartPolicy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-       * RestartPolicy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicyValue(int value) { - restartPolicy_ = value; - onChanged(); - return this; - } - /** - *
-       * RestartPolicy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - /** - *
-       * RestartPolicy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - restartPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * RestartPolicy determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder clearRestartPolicy() { - - restartPolicy_ = 0; - onChanged(); - return this; - } - @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.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpec) - private static final flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec(); - } - - public static flyteidl.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedPyTorchTrainingReplicaSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedPyTorchTrainingReplicaSpec(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.plugins.kubeflow.Pytorch.DistributedPyTorchTrainingReplicaSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\'flyteidl/plugins/kubeflow/pytorch.prot" + - "o\022\031flyteidl.plugins.kubeflow\032\031flyteidl/c" + - "ore/tasks.proto\032&flyteidl/plugins/kubefl" + - "ow/common.proto\"\177\n\rElasticConfig\022\024\n\014rdzv" + - "_backend\030\001 \001(\t\022\024\n\014min_replicas\030\002 \001(\005\022\024\n\014" + - "max_replicas\030\003 \001(\005\022\026\n\016nproc_per_node\030\004 \001" + - "(\005\022\024\n\014max_restarts\030\005 \001(\005\"\322\002\n\036Distributed" + - "PyTorchTrainingTask\022Y\n\017worker_replicas\030\001" + - " \001(\0132@.flyteidl.plugins.kubeflow.Distrib" + - "utedPyTorchTrainingReplicaSpec\022Y\n\017master" + - "_replicas\030\002 \001(\0132@.flyteidl.plugins.kubef" + - "low.DistributedPyTorchTrainingReplicaSpe" + - "c\0228\n\nrun_policy\030\003 \001(\0132$.flyteidl.plugins" + - ".kubeflow.RunPolicy\022@\n\016elastic_config\030\004 " + - "\001(\0132(.flyteidl.plugins.kubeflow.ElasticC" + - "onfig\"\267\001\n%DistributedPyTorchTrainingRepl" + - "icaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image\030\002 \001(\t" + - "\022+\n\tresources\030\003 \001(\0132\030.flyteidl.core.Reso" + - "urces\022@\n\016restart_policy\030\004 \001(\0162(.flyteidl" + - ".plugins.kubeflow.RestartPolicyB?Z=githu" + - "b.com/flyteorg/flyte/flyteidl/gen/pb-go/" + - "flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - flyteidl.plugins.kubeflow.Common.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_kubeflow_ElasticConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_ElasticConfig_descriptor, - new java.lang.String[] { "RdzvBackend", "MinReplicas", "MaxReplicas", "NprocPerNode", "MaxRestarts", }); - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingTask_descriptor, - new java.lang.String[] { "WorkerReplicas", "MasterReplicas", "RunPolicy", "ElasticConfig", }); - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedPyTorchTrainingReplicaSpec_descriptor, - new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", }); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.plugins.kubeflow.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java b/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java deleted file mode 100644 index 324f3e5d01..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/plugins/kubeflow/Tensorflow.java +++ /dev/null @@ -1,2861 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/plugins/kubeflow/tensorflow.proto - -package flyteidl.plugins.kubeflow; - -public final class Tensorflow { - private Tensorflow() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface DistributedTensorflowTrainingTaskOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - boolean hasWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas(); - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder(); - - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - boolean hasPsReplicas(); - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas(); - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder(); - - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - boolean hasChiefReplicas(); - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas(); - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder(); - - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - boolean hasRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy(); - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder(); - - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - boolean hasEvaluatorReplicas(); - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getEvaluatorReplicas(); - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getEvaluatorReplicasOrBuilder(); - } - /** - *
-   * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-   * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask} - */ - public static final class DistributedTensorflowTrainingTask extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - DistributedTensorflowTrainingTaskOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedTensorflowTrainingTask.newBuilder() to construct. - private DistributedTensorflowTrainingTask(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedTensorflowTrainingTask() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedTensorflowTrainingTask( - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; - if (workerReplicas_ != null) { - subBuilder = workerReplicas_.toBuilder(); - } - workerReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(workerReplicas_); - workerReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; - if (psReplicas_ != null) { - subBuilder = psReplicas_.toBuilder(); - } - psReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(psReplicas_); - psReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; - if (chiefReplicas_ != null) { - subBuilder = chiefReplicas_.toBuilder(); - } - chiefReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(chiefReplicas_); - chiefReplicas_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder subBuilder = null; - if (runPolicy_ != null) { - subBuilder = runPolicy_.toBuilder(); - } - runPolicy_ = input.readMessage(flyteidl.plugins.kubeflow.Common.RunPolicy.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(runPolicy_); - runPolicy_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder subBuilder = null; - if (evaluatorReplicas_ != null) { - subBuilder = evaluatorReplicas_.toBuilder(); - } - evaluatorReplicas_ = input.readMessage(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evaluatorReplicas_); - evaluatorReplicas_ = 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.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - public static final int WORKER_REPLICAS_FIELD_NUMBER = 1; - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec workerReplicas_; - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicas_ != null; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas() { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - /** - *
-     * Worker replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - return getWorkerReplicas(); - } - - public static final int PS_REPLICAS_FIELD_NUMBER = 2; - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec psReplicas_; - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public boolean hasPsReplicas() { - return psReplicas_ != null; - } - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas() { - return psReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; - } - /** - *
-     * Parameter server replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder() { - return getPsReplicas(); - } - - public static final int CHIEF_REPLICAS_FIELD_NUMBER = 3; - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec chiefReplicas_; - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public boolean hasChiefReplicas() { - return chiefReplicas_ != null; - } - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas() { - return chiefReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; - } - /** - *
-     * Chief replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder() { - return getChiefReplicas(); - } - - public static final int RUN_POLICY_FIELD_NUMBER = 4; - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public boolean hasRunPolicy() { - return runPolicy_ != null; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - /** - *
-     * RunPolicy encapsulates various runtime policies of the distributed training
-     * job, for example how to clean up resources and how long the job can stay
-     * active.
-     * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - return getRunPolicy(); - } - - public static final int EVALUATOR_REPLICAS_FIELD_NUMBER = 5; - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec evaluatorReplicas_; - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public boolean hasEvaluatorReplicas() { - return evaluatorReplicas_ != null; - } - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getEvaluatorReplicas() { - return evaluatorReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : evaluatorReplicas_; - } - /** - *
-     * Evaluator replicas spec
-     * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getEvaluatorReplicasOrBuilder() { - return getEvaluatorReplicas(); - } - - 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 (workerReplicas_ != null) { - output.writeMessage(1, getWorkerReplicas()); - } - if (psReplicas_ != null) { - output.writeMessage(2, getPsReplicas()); - } - if (chiefReplicas_ != null) { - output.writeMessage(3, getChiefReplicas()); - } - if (runPolicy_ != null) { - output.writeMessage(4, getRunPolicy()); - } - if (evaluatorReplicas_ != null) { - output.writeMessage(5, getEvaluatorReplicas()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (workerReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getWorkerReplicas()); - } - if (psReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPsReplicas()); - } - if (chiefReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getChiefReplicas()); - } - if (runPolicy_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getRunPolicy()); - } - if (evaluatorReplicas_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEvaluatorReplicas()); - } - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask other = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) obj; - - if (hasWorkerReplicas() != other.hasWorkerReplicas()) return false; - if (hasWorkerReplicas()) { - if (!getWorkerReplicas() - .equals(other.getWorkerReplicas())) return false; - } - if (hasPsReplicas() != other.hasPsReplicas()) return false; - if (hasPsReplicas()) { - if (!getPsReplicas() - .equals(other.getPsReplicas())) return false; - } - if (hasChiefReplicas() != other.hasChiefReplicas()) return false; - if (hasChiefReplicas()) { - if (!getChiefReplicas() - .equals(other.getChiefReplicas())) return false; - } - if (hasRunPolicy() != other.hasRunPolicy()) return false; - if (hasRunPolicy()) { - if (!getRunPolicy() - .equals(other.getRunPolicy())) return false; - } - if (hasEvaluatorReplicas() != other.hasEvaluatorReplicas()) return false; - if (hasEvaluatorReplicas()) { - if (!getEvaluatorReplicas() - .equals(other.getEvaluatorReplicas())) 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 (hasWorkerReplicas()) { - hash = (37 * hash) + WORKER_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getWorkerReplicas().hashCode(); - } - if (hasPsReplicas()) { - hash = (37 * hash) + PS_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getPsReplicas().hashCode(); - } - if (hasChiefReplicas()) { - hash = (37 * hash) + CHIEF_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getChiefReplicas().hashCode(); - } - if (hasRunPolicy()) { - hash = (37 * hash) + RUN_POLICY_FIELD_NUMBER; - hash = (53 * hash) + getRunPolicy().hashCode(); - } - if (hasEvaluatorReplicas()) { - hash = (37 * hash) + EVALUATOR_REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getEvaluatorReplicas().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask 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; - } - /** - *
-     * Proto for plugin that enables distributed training using https://github.com/kubeflow/tf-operator
-     * 
- * - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.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 (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - if (psReplicasBuilder_ == null) { - psReplicas_ = null; - } else { - psReplicas_ = null; - psReplicasBuilder_ = null; - } - if (chiefReplicasBuilder_ == null) { - chiefReplicas_ = null; - } else { - chiefReplicas_ = null; - chiefReplicasBuilder_ = null; - } - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - if (evaluatorReplicasBuilder_ == null) { - evaluatorReplicas_ = null; - } else { - evaluatorReplicas_ = null; - evaluatorReplicasBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask build() { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask buildPartial() { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask result = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask(this); - if (workerReplicasBuilder_ == null) { - result.workerReplicas_ = workerReplicas_; - } else { - result.workerReplicas_ = workerReplicasBuilder_.build(); - } - if (psReplicasBuilder_ == null) { - result.psReplicas_ = psReplicas_; - } else { - result.psReplicas_ = psReplicasBuilder_.build(); - } - if (chiefReplicasBuilder_ == null) { - result.chiefReplicas_ = chiefReplicas_; - } else { - result.chiefReplicas_ = chiefReplicasBuilder_.build(); - } - if (runPolicyBuilder_ == null) { - result.runPolicy_ = runPolicy_; - } else { - result.runPolicy_ = runPolicyBuilder_.build(); - } - if (evaluatorReplicasBuilder_ == null) { - result.evaluatorReplicas_ = evaluatorReplicas_; - } else { - result.evaluatorReplicas_ = evaluatorReplicasBuilder_.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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) { - return mergeFrom((flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask other) { - if (other == flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask.getDefaultInstance()) return this; - if (other.hasWorkerReplicas()) { - mergeWorkerReplicas(other.getWorkerReplicas()); - } - if (other.hasPsReplicas()) { - mergePsReplicas(other.getPsReplicas()); - } - if (other.hasChiefReplicas()) { - mergeChiefReplicas(other.getChiefReplicas()); - } - if (other.hasRunPolicy()) { - mergeRunPolicy(other.getRunPolicy()); - } - if (other.hasEvaluatorReplicas()) { - mergeEvaluatorReplicas(other.getEvaluatorReplicas()); - } - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec workerReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> workerReplicasBuilder_; - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public boolean hasWorkerReplicas() { - return workerReplicasBuilder_ != null || workerReplicas_ != null; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - return workerReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } else { - return workerReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - workerReplicas_ = value; - onChanged(); - } else { - workerReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public Builder setWorkerReplicas( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = builderForValue.build(); - onChanged(); - } else { - workerReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public Builder mergeWorkerReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (workerReplicasBuilder_ == null) { - if (workerReplicas_ != null) { - workerReplicas_ = - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(workerReplicas_).mergeFrom(value).buildPartial(); - } else { - workerReplicas_ = value; - } - onChanged(); - } else { - workerReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public Builder clearWorkerReplicas() { - if (workerReplicasBuilder_ == null) { - workerReplicas_ = null; - onChanged(); - } else { - workerReplicas_ = null; - workerReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getWorkerReplicasBuilder() { - - onChanged(); - return getWorkerReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getWorkerReplicasOrBuilder() { - if (workerReplicasBuilder_ != null) { - return workerReplicasBuilder_.getMessageOrBuilder(); - } else { - return workerReplicas_ == null ? - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : workerReplicas_; - } - } - /** - *
-       * Worker replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec worker_replicas = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> - getWorkerReplicasFieldBuilder() { - if (workerReplicasBuilder_ == null) { - workerReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( - getWorkerReplicas(), - getParentForChildren(), - isClean()); - workerReplicas_ = null; - } - return workerReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec psReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> psReplicasBuilder_; - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public boolean hasPsReplicas() { - return psReplicasBuilder_ != null || psReplicas_ != null; - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getPsReplicas() { - if (psReplicasBuilder_ == null) { - return psReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; - } else { - return psReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public Builder setPsReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (psReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - psReplicas_ = value; - onChanged(); - } else { - psReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public Builder setPsReplicas( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { - if (psReplicasBuilder_ == null) { - psReplicas_ = builderForValue.build(); - onChanged(); - } else { - psReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public Builder mergePsReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (psReplicasBuilder_ == null) { - if (psReplicas_ != null) { - psReplicas_ = - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(psReplicas_).mergeFrom(value).buildPartial(); - } else { - psReplicas_ = value; - } - onChanged(); - } else { - psReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public Builder clearPsReplicas() { - if (psReplicasBuilder_ == null) { - psReplicas_ = null; - onChanged(); - } else { - psReplicas_ = null; - psReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getPsReplicasBuilder() { - - onChanged(); - return getPsReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getPsReplicasOrBuilder() { - if (psReplicasBuilder_ != null) { - return psReplicasBuilder_.getMessageOrBuilder(); - } else { - return psReplicas_ == null ? - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : psReplicas_; - } - } - /** - *
-       * Parameter server replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec ps_replicas = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> - getPsReplicasFieldBuilder() { - if (psReplicasBuilder_ == null) { - psReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( - getPsReplicas(), - getParentForChildren(), - isClean()); - psReplicas_ = null; - } - return psReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec chiefReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> chiefReplicasBuilder_; - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public boolean hasChiefReplicas() { - return chiefReplicasBuilder_ != null || chiefReplicas_ != null; - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getChiefReplicas() { - if (chiefReplicasBuilder_ == null) { - return chiefReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; - } else { - return chiefReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public Builder setChiefReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (chiefReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chiefReplicas_ = value; - onChanged(); - } else { - chiefReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public Builder setChiefReplicas( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { - if (chiefReplicasBuilder_ == null) { - chiefReplicas_ = builderForValue.build(); - onChanged(); - } else { - chiefReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public Builder mergeChiefReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (chiefReplicasBuilder_ == null) { - if (chiefReplicas_ != null) { - chiefReplicas_ = - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(chiefReplicas_).mergeFrom(value).buildPartial(); - } else { - chiefReplicas_ = value; - } - onChanged(); - } else { - chiefReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public Builder clearChiefReplicas() { - if (chiefReplicasBuilder_ == null) { - chiefReplicas_ = null; - onChanged(); - } else { - chiefReplicas_ = null; - chiefReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getChiefReplicasBuilder() { - - onChanged(); - return getChiefReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getChiefReplicasOrBuilder() { - if (chiefReplicasBuilder_ != null) { - return chiefReplicasBuilder_.getMessageOrBuilder(); - } else { - return chiefReplicas_ == null ? - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : chiefReplicas_; - } - } - /** - *
-       * Chief replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec chief_replicas = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> - getChiefReplicasFieldBuilder() { - if (chiefReplicasBuilder_ == null) { - chiefReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( - getChiefReplicas(), - getParentForChildren(), - isClean()); - chiefReplicas_ = null; - } - return chiefReplicasBuilder_; - } - - private flyteidl.plugins.kubeflow.Common.RunPolicy runPolicy_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> runPolicyBuilder_; - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public boolean hasRunPolicy() { - return runPolicyBuilder_ != null || runPolicy_ != null; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy getRunPolicy() { - if (runPolicyBuilder_ == null) { - return runPolicy_ == null ? flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } else { - return runPolicyBuilder_.getMessage(); - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public Builder setRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - runPolicy_ = value; - onChanged(); - } else { - runPolicyBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public Builder setRunPolicy( - flyteidl.plugins.kubeflow.Common.RunPolicy.Builder builderForValue) { - if (runPolicyBuilder_ == null) { - runPolicy_ = builderForValue.build(); - onChanged(); - } else { - runPolicyBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public Builder mergeRunPolicy(flyteidl.plugins.kubeflow.Common.RunPolicy value) { - if (runPolicyBuilder_ == null) { - if (runPolicy_ != null) { - runPolicy_ = - flyteidl.plugins.kubeflow.Common.RunPolicy.newBuilder(runPolicy_).mergeFrom(value).buildPartial(); - } else { - runPolicy_ = value; - } - onChanged(); - } else { - runPolicyBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public Builder clearRunPolicy() { - if (runPolicyBuilder_ == null) { - runPolicy_ = null; - onChanged(); - } else { - runPolicy_ = null; - runPolicyBuilder_ = null; - } - - return this; - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicy.Builder getRunPolicyBuilder() { - - onChanged(); - return getRunPolicyFieldBuilder().getBuilder(); - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder getRunPolicyOrBuilder() { - if (runPolicyBuilder_ != null) { - return runPolicyBuilder_.getMessageOrBuilder(); - } else { - return runPolicy_ == null ? - flyteidl.plugins.kubeflow.Common.RunPolicy.getDefaultInstance() : runPolicy_; - } - } - /** - *
-       * RunPolicy encapsulates various runtime policies of the distributed training
-       * job, for example how to clean up resources and how long the job can stay
-       * active.
-       * 
- * - * .flyteidl.plugins.kubeflow.RunPolicy run_policy = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder> - getRunPolicyFieldBuilder() { - if (runPolicyBuilder_ == null) { - runPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Common.RunPolicy, flyteidl.plugins.kubeflow.Common.RunPolicy.Builder, flyteidl.plugins.kubeflow.Common.RunPolicyOrBuilder>( - getRunPolicy(), - getParentForChildren(), - isClean()); - runPolicy_ = null; - } - return runPolicyBuilder_; - } - - private flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec evaluatorReplicas_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> evaluatorReplicasBuilder_; - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public boolean hasEvaluatorReplicas() { - return evaluatorReplicasBuilder_ != null || evaluatorReplicas_ != null; - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getEvaluatorReplicas() { - if (evaluatorReplicasBuilder_ == null) { - return evaluatorReplicas_ == null ? flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : evaluatorReplicas_; - } else { - return evaluatorReplicasBuilder_.getMessage(); - } - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public Builder setEvaluatorReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (evaluatorReplicasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - evaluatorReplicas_ = value; - onChanged(); - } else { - evaluatorReplicasBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public Builder setEvaluatorReplicas( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder builderForValue) { - if (evaluatorReplicasBuilder_ == null) { - evaluatorReplicas_ = builderForValue.build(); - onChanged(); - } else { - evaluatorReplicasBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public Builder mergeEvaluatorReplicas(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec value) { - if (evaluatorReplicasBuilder_ == null) { - if (evaluatorReplicas_ != null) { - evaluatorReplicas_ = - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.newBuilder(evaluatorReplicas_).mergeFrom(value).buildPartial(); - } else { - evaluatorReplicas_ = value; - } - onChanged(); - } else { - evaluatorReplicasBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public Builder clearEvaluatorReplicas() { - if (evaluatorReplicasBuilder_ == null) { - evaluatorReplicas_ = null; - onChanged(); - } else { - evaluatorReplicas_ = null; - evaluatorReplicasBuilder_ = null; - } - - return this; - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder getEvaluatorReplicasBuilder() { - - onChanged(); - return getEvaluatorReplicasFieldBuilder().getBuilder(); - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder getEvaluatorReplicasOrBuilder() { - if (evaluatorReplicasBuilder_ != null) { - return evaluatorReplicasBuilder_.getMessageOrBuilder(); - } else { - return evaluatorReplicas_ == null ? - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance() : evaluatorReplicas_; - } - } - /** - *
-       * Evaluator replicas spec
-       * 
- * - * .flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec evaluator_replicas = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder> - getEvaluatorReplicasFieldBuilder() { - if (evaluatorReplicasBuilder_ == null) { - evaluatorReplicasBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder>( - getEvaluatorReplicas(), - getParentForChildren(), - isClean()); - evaluatorReplicas_ = null; - } - return evaluatorReplicasBuilder_; - } - @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.plugins.kubeflow.DistributedTensorflowTrainingTask) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingTask) - private static final flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask(); - } - - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedTensorflowTrainingTask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedTensorflowTrainingTask(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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingTask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DistributedTensorflowTrainingReplicaSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - int getReplicas(); - - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - java.lang.String getImage(); - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - com.google.protobuf.ByteString - getImageBytes(); - - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - boolean hasResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.Resources getResources(); - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder(); - - /** - *
-     * RestartPolicy Determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - int getRestartPolicyValue(); - /** - *
-     * RestartPolicy Determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy(); - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec} - */ - public static final class DistributedTensorflowTrainingReplicaSpec extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - DistributedTensorflowTrainingReplicaSpecOrBuilder { - private static final long serialVersionUID = 0L; - // Use DistributedTensorflowTrainingReplicaSpec.newBuilder() to construct. - private DistributedTensorflowTrainingReplicaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DistributedTensorflowTrainingReplicaSpec() { - image_ = ""; - restartPolicy_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DistributedTensorflowTrainingReplicaSpec( - 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 8: { - - replicas_ = input.readInt32(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - image_ = s; - break; - } - case 26: { - flyteidl.core.Tasks.Resources.Builder subBuilder = null; - if (resources_ != null) { - subBuilder = resources_.toBuilder(); - } - resources_ = input.readMessage(flyteidl.core.Tasks.Resources.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resources_); - resources_ = subBuilder.buildPartial(); - } - - break; - } - case 32: { - int rawValue = input.readEnum(); - - restartPolicy_ = rawValue; - 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.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder.class); - } - - public static final int REPLICAS_FIELD_NUMBER = 1; - private int replicas_; - /** - *
-     * Number of replicas
-     * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - - public static final int IMAGE_FIELD_NUMBER = 2; - private volatile java.lang.Object image_; - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } - } - /** - *
-     * Image used for the replica group
-     * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCES_FIELD_NUMBER = 3; - private flyteidl.core.Tasks.Resources resources_; - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resources_ != null; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - /** - *
-     * Resources required for the replica group
-     * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - return getResources(); - } - - public static final int RESTART_POLICY_FIELD_NUMBER = 4; - private int restartPolicy_; - /** - *
-     * RestartPolicy Determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-     * RestartPolicy Determines whether pods will be restarted when they exit
-     * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - - 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 (replicas_ != 0) { - output.writeInt32(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, image_); - } - if (resources_ != null) { - output.writeMessage(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - output.writeEnum(4, restartPolicy_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (replicas_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, replicas_); - } - if (!getImageBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, image_); - } - if (resources_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResources()); - } - if (restartPolicy_ != flyteidl.plugins.kubeflow.Common.RestartPolicy.RESTART_POLICY_NEVER.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, restartPolicy_); - } - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec)) { - return super.equals(obj); - } - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec other = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) obj; - - if (getReplicas() - != other.getReplicas()) return false; - if (!getImage() - .equals(other.getImage())) return false; - if (hasResources() != other.hasResources()) return false; - if (hasResources()) { - if (!getResources() - .equals(other.getResources())) return false; - } - if (restartPolicy_ != other.restartPolicy_) 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(); - hash = (37 * hash) + REPLICAS_FIELD_NUMBER; - hash = (53 * hash) + getReplicas(); - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - if (hasResources()) { - hash = (37 * hash) + RESOURCES_FIELD_NUMBER; - hash = (53 * hash) + getResources().hashCode(); - } - hash = (37 * hash) + RESTART_POLICY_FIELD_NUMBER; - hash = (53 * hash) + restartPolicy_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec 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; - } - /** - * Protobuf type {@code flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.class, flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.Builder.class); - } - - // Construct using flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.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(); - replicas_ = 0; - - image_ = ""; - - if (resourcesBuilder_ == null) { - resources_ = null; - } else { - resources_ = null; - resourcesBuilder_ = null; - } - restartPolicy_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.plugins.kubeflow.Tensorflow.internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstanceForType() { - return flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec build() { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec buildPartial() { - flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec result = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec(this); - result.replicas_ = replicas_; - result.image_ = image_; - if (resourcesBuilder_ == null) { - result.resources_ = resources_; - } else { - result.resources_ = resourcesBuilder_.build(); - } - result.restartPolicy_ = restartPolicy_; - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) { - return mergeFrom((flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec other) { - if (other == flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec.getDefaultInstance()) return this; - if (other.getReplicas() != 0) { - setReplicas(other.getReplicas()); - } - if (!other.getImage().isEmpty()) { - image_ = other.image_; - onChanged(); - } - if (other.hasResources()) { - mergeResources(other.getResources()); - } - if (other.restartPolicy_ != 0) { - setRestartPolicyValue(other.getRestartPolicyValue()); - } - 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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int replicas_ ; - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public int getReplicas() { - return replicas_; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder setReplicas(int value) { - - replicas_ = value; - onChanged(); - return this; - } - /** - *
-       * Number of replicas
-       * 
- * - * int32 replicas = 1; - */ - public Builder clearReplicas() { - - replicas_ = 0; - onChanged(); - return this; - } - - private java.lang.Object image_ = ""; - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public java.lang.String getImage() { - java.lang.Object ref = image_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - image_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public com.google.protobuf.ByteString - getImageBytes() { - java.lang.Object ref = image_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - image_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - image_ = value; - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder clearImage() { - - image_ = getDefaultInstance().getImage(); - onChanged(); - return this; - } - /** - *
-       * Image used for the replica group
-       * 
- * - * string image = 2; - */ - public Builder setImageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - image_ = value; - onChanged(); - return this; - } - - private flyteidl.core.Tasks.Resources resources_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> resourcesBuilder_; - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public boolean hasResources() { - return resourcesBuilder_ != null || resources_ != null; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder setResources( - flyteidl.core.Tasks.Resources.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder mergeResources(flyteidl.core.Tasks.Resources value) { - if (resourcesBuilder_ == null) { - if (resources_ != null) { - resources_ = - flyteidl.core.Tasks.Resources.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resources_ = null; - resourcesBuilder_ = null; - } - - return this; - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.Resources.Builder getResourcesBuilder() { - - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - public flyteidl.core.Tasks.ResourcesOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - flyteidl.core.Tasks.Resources.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources required for the replica group
-       * 
- * - * .flyteidl.core.Resources resources = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.Resources, flyteidl.core.Tasks.Resources.Builder, flyteidl.core.Tasks.ResourcesOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - - private int restartPolicy_ = 0; - /** - *
-       * RestartPolicy Determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public int getRestartPolicyValue() { - return restartPolicy_; - } - /** - *
-       * RestartPolicy Determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicyValue(int value) { - restartPolicy_ = value; - onChanged(); - return this; - } - /** - *
-       * RestartPolicy Determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public flyteidl.plugins.kubeflow.Common.RestartPolicy getRestartPolicy() { - @SuppressWarnings("deprecation") - flyteidl.plugins.kubeflow.Common.RestartPolicy result = flyteidl.plugins.kubeflow.Common.RestartPolicy.valueOf(restartPolicy_); - return result == null ? flyteidl.plugins.kubeflow.Common.RestartPolicy.UNRECOGNIZED : result; - } - /** - *
-       * RestartPolicy Determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder setRestartPolicy(flyteidl.plugins.kubeflow.Common.RestartPolicy value) { - if (value == null) { - throw new NullPointerException(); - } - - restartPolicy_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * RestartPolicy Determines whether pods will be restarted when they exit
-       * 
- * - * .flyteidl.plugins.kubeflow.RestartPolicy restart_policy = 4; - */ - public Builder clearRestartPolicy() { - - restartPolicy_ = 0; - onChanged(); - return this; - } - @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.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - } - - // @@protoc_insertion_point(class_scope:flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpec) - private static final flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec(); - } - - public static flyteidl.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DistributedTensorflowTrainingReplicaSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DistributedTensorflowTrainingReplicaSpec(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.plugins.kubeflow.Tensorflow.DistributedTensorflowTrainingReplicaSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*flyteidl/plugins/kubeflow/tensorflow.p" + - "roto\022\031flyteidl.plugins.kubeflow\032\031flyteid" + - "l/core/tasks.proto\032&flyteidl/plugins/kub" + - "eflow/common.proto\"\323\003\n!DistributedTensor" + - "flowTrainingTask\022\\\n\017worker_replicas\030\001 \001(" + - "\0132C.flyteidl.plugins.kubeflow.Distribute" + - "dTensorflowTrainingReplicaSpec\022X\n\013ps_rep" + - "licas\030\002 \001(\0132C.flyteidl.plugins.kubeflow." + - "DistributedTensorflowTrainingReplicaSpec" + - "\022[\n\016chief_replicas\030\003 \001(\0132C.flyteidl.plug" + - "ins.kubeflow.DistributedTensorflowTraini" + - "ngReplicaSpec\0228\n\nrun_policy\030\004 \001(\0132$.flyt" + - "eidl.plugins.kubeflow.RunPolicy\022_\n\022evalu" + - "ator_replicas\030\005 \001(\0132C.flyteidl.plugins.k" + - "ubeflow.DistributedTensorflowTrainingRep" + - "licaSpec\"\272\001\n(DistributedTensorflowTraini" + - "ngReplicaSpec\022\020\n\010replicas\030\001 \001(\005\022\r\n\005image" + - "\030\002 \001(\t\022+\n\tresources\030\003 \001(\0132\030.flyteidl.cor" + - "e.Resources\022@\n\016restart_policy\030\004 \001(\0162(.fl" + - "yteidl.plugins.kubeflow.RestartPolicyB?Z" + - "=github.com/flyteorg/flyte/flyteidl/gen/" + - "pb-go/flyteidl/pluginsb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Tasks.getDescriptor(), - flyteidl.plugins.kubeflow.Common.getDescriptor(), - }, assigner); - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingTask_descriptor, - new java.lang.String[] { "WorkerReplicas", "PsReplicas", "ChiefReplicas", "RunPolicy", "EvaluatorReplicas", }); - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_plugins_kubeflow_DistributedTensorflowTrainingReplicaSpec_descriptor, - new java.lang.String[] { "Replicas", "Image", "Resources", "RestartPolicy", }); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.plugins.kubeflow.Common.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Admin.java b/flyteidl/gen/pb-java/flyteidl/service/Admin.java deleted file mode 100644 index 80e46d6475..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Admin.java +++ /dev/null @@ -1,346 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/admin.proto - -package flyteidl.service; - -public final class Admin { - private Admin() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/service/admin.proto\022\020flyteidl" + - ".service\032\034google/api/annotations.proto\032\034" + - "flyteidl/admin/project.proto\032.flyteidl/a" + - "dmin/project_domain_attributes.proto\032\'fl" + - "yteidl/admin/project_attributes.proto\032\031f" + - "lyteidl/admin/task.proto\032\035flyteidl/admin" + - "/workflow.proto\032(flyteidl/admin/workflow" + - "_attributes.proto\032 flyteidl/admin/launch" + - "_plan.proto\032\032flyteidl/admin/event.proto\032" + - "\036flyteidl/admin/execution.proto\032\'flyteid" + - "l/admin/matchable_resource.proto\032#flytei" + - "dl/admin/node_execution.proto\032#flyteidl/" + - "admin/task_execution.proto\032\034flyteidl/adm" + - "in/version.proto\032\033flyteidl/admin/common." + - "proto\032\'flyteidl/admin/description_entity" + - ".proto2\204N\n\014AdminService\022m\n\nCreateTask\022!." + - "flyteidl.admin.TaskCreateRequest\032\".flyte" + - "idl.admin.TaskCreateResponse\"\030\202\323\344\223\002\022\"\r/a" + - "pi/v1/tasks:\001*\022\210\001\n\007GetTask\022 .flyteidl.ad" + - "min.ObjectGetRequest\032\024.flyteidl.admin.Ta" + - "sk\"E\202\323\344\223\002?\022=/api/v1/tasks/{id.project}/{" + - "id.domain}/{id.name}/{id.version}\022\227\001\n\013Li" + - "stTaskIds\0220.flyteidl.admin.NamedEntityId" + - "entifierListRequest\032).flyteidl.admin.Nam" + - "edEntityIdentifierList\"+\202\323\344\223\002%\022#/api/v1/" + - "task_ids/{project}/{domain}\022\256\001\n\tListTask" + - "s\022#.flyteidl.admin.ResourceListRequest\032\030" + - ".flyteidl.admin.TaskList\"b\202\323\344\223\002\\\0220/api/v" + - "1/tasks/{id.project}/{id.domain}/{id.nam" + - "e}Z(\022&/api/v1/tasks/{id.project}/{id.dom" + - "ain}\022}\n\016CreateWorkflow\022%.flyteidl.admin." + - "WorkflowCreateRequest\032&.flyteidl.admin.W" + - "orkflowCreateResponse\"\034\202\323\344\223\002\026\"\021/api/v1/w" + - "orkflows:\001*\022\224\001\n\013GetWorkflow\022 .flyteidl.a" + - "dmin.ObjectGetRequest\032\030.flyteidl.admin.W" + - "orkflow\"I\202\323\344\223\002C\022A/api/v1/workflows/{id.p" + - "roject}/{id.domain}/{id.name}/{id.versio" + - "n}\022\237\001\n\017ListWorkflowIds\0220.flyteidl.admin." + - "NamedEntityIdentifierListRequest\032).flyte" + - "idl.admin.NamedEntityIdentifierList\"/\202\323\344" + - "\223\002)\022\'/api/v1/workflow_ids/{project}/{dom" + - "ain}\022\276\001\n\rListWorkflows\022#.flyteidl.admin." + - "ResourceListRequest\032\034.flyteidl.admin.Wor" + - "kflowList\"j\202\323\344\223\002d\0224/api/v1/workflows/{id" + - ".project}/{id.domain}/{id.name}Z,\022*/api/" + - "v1/workflows/{id.project}/{id.domain}\022\206\001" + - "\n\020CreateLaunchPlan\022\'.flyteidl.admin.Laun" + - "chPlanCreateRequest\032(.flyteidl.admin.Lau" + - "nchPlanCreateResponse\"\037\202\323\344\223\002\031\"\024/api/v1/l" + - "aunch_plans:\001*\022\233\001\n\rGetLaunchPlan\022 .flyte" + - "idl.admin.ObjectGetRequest\032\032.flyteidl.ad" + - "min.LaunchPlan\"L\202\323\344\223\002F\022D/api/v1/launch_p" + - "lans/{id.project}/{id.domain}/{id.name}/" + - "{id.version}\022\242\001\n\023GetActiveLaunchPlan\022\'.f" + - "lyteidl.admin.ActiveLaunchPlanRequest\032\032." + - "flyteidl.admin.LaunchPlan\"F\202\323\344\223\002@\022>/api/" + - "v1/active_launch_plans/{id.project}/{id." + - "domain}/{id.name}\022\234\001\n\025ListActiveLaunchPl" + - "ans\022+.flyteidl.admin.ActiveLaunchPlanLis" + - "tRequest\032\036.flyteidl.admin.LaunchPlanList" + - "\"6\202\323\344\223\0020\022./api/v1/active_launch_plans/{p" + - "roject}/{domain}\022\244\001\n\021ListLaunchPlanIds\0220" + - ".flyteidl.admin.NamedEntityIdentifierLis" + - "tRequest\032).flyteidl.admin.NamedEntityIde" + - "ntifierList\"2\202\323\344\223\002,\022*/api/v1/launch_plan" + - "_ids/{project}/{domain}\022\310\001\n\017ListLaunchPl" + - "ans\022#.flyteidl.admin.ResourceListRequest" + - "\032\036.flyteidl.admin.LaunchPlanList\"p\202\323\344\223\002j" + - "\0227/api/v1/launch_plans/{id.project}/{id." + - "domain}/{id.name}Z/\022-/api/v1/launch_plan" + - "s/{id.project}/{id.domain}\022\266\001\n\020UpdateLau" + - "nchPlan\022\'.flyteidl.admin.LaunchPlanUpdat" + - "eRequest\032(.flyteidl.admin.LaunchPlanUpda" + - "teResponse\"O\202\323\344\223\002I\032D/api/v1/launch_plans" + - "/{id.project}/{id.domain}/{id.name}/{id." + - "version}:\001*\022\201\001\n\017CreateExecution\022&.flytei" + - "dl.admin.ExecutionCreateRequest\032\'.flytei" + - "dl.admin.ExecutionCreateResponse\"\035\202\323\344\223\002\027" + - "\"\022/api/v1/executions:\001*\022\216\001\n\021RelaunchExec" + - "ution\022(.flyteidl.admin.ExecutionRelaunch" + - "Request\032\'.flyteidl.admin.ExecutionCreate" + - "Response\"&\202\323\344\223\002 \"\033/api/v1/executions/rel" + - "aunch:\001*\022\213\001\n\020RecoverExecution\022\'.flyteidl" + - ".admin.ExecutionRecoverRequest\032\'.flyteid" + - "l.admin.ExecutionCreateResponse\"%\202\323\344\223\002\037\"" + - "\032/api/v1/executions/recover:\001*\022\225\001\n\014GetEx" + - "ecution\022+.flyteidl.admin.WorkflowExecuti" + - "onGetRequest\032\031.flyteidl.admin.Execution\"" + - "=\202\323\344\223\0027\0225/api/v1/executions/{id.project}" + - "/{id.domain}/{id.name}\022\244\001\n\017UpdateExecuti" + - "on\022&.flyteidl.admin.ExecutionUpdateReque" + - "st\032\'.flyteidl.admin.ExecutionUpdateRespo" + - "nse\"@\202\323\344\223\002:\0325/api/v1/executions/{id.proj" + - "ect}/{id.domain}/{id.name}:\001*\022\271\001\n\020GetExe" + - "cutionData\022/.flyteidl.admin.WorkflowExec" + - "utionGetDataRequest\0320.flyteidl.admin.Wor" + - "kflowExecutionGetDataResponse\"B\202\323\344\223\002<\022:/" + - "api/v1/data/executions/{id.project}/{id." + - "domain}/{id.name}\022\211\001\n\016ListExecutions\022#.f" + - "lyteidl.admin.ResourceListRequest\032\035.flyt" + - "eidl.admin.ExecutionList\"3\202\323\344\223\002-\022+/api/v" + - "1/executions/{id.project}/{id.domain}\022\255\001" + - "\n\022TerminateExecution\022).flyteidl.admin.Ex" + - "ecutionTerminateRequest\032*.flyteidl.admin" + - ".ExecutionTerminateResponse\"@\202\323\344\223\002:*5/ap" + - "i/v1/executions/{id.project}/{id.domain}" + - "/{id.name}:\001*\022\322\001\n\020GetNodeExecution\022\'.fly" + - "teidl.admin.NodeExecutionGetRequest\032\035.fl" + - "yteidl.admin.NodeExecution\"v\202\323\344\223\002p\022n/api" + - "/v1/node_executions/{id.execution_id.pro" + - "ject}/{id.execution_id.domain}/{id.execu" + - "tion_id.name}/{id.node_id}\022\336\001\n\022ListNodeE" + - "xecutions\022(.flyteidl.admin.NodeExecution" + - "ListRequest\032!.flyteidl.admin.NodeExecuti" + - "onList\"{\202\323\344\223\002u\022s/api/v1/node_executions/" + - "{workflow_execution_id.project}/{workflo" + - "w_execution_id.domain}/{workflow_executi" + - "on_id.name}\022\245\004\n\031ListNodeExecutionsForTas" + - "k\022/.flyteidl.admin.NodeExecutionForTaskL" + - "istRequest\032!.flyteidl.admin.NodeExecutio" + - "nList\"\263\003\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_" + - "executions/{task_execution_id.node_execu" + - "tion_id.execution_id.project}/{task_exec" + - "ution_id.node_execution_id.execution_id." + - "domain}/{task_execution_id.node_executio" + - "n_id.execution_id.name}/{task_execution_" + - "id.node_execution_id.node_id}/{task_exec" + - "ution_id.task_id.project}/{task_executio" + - "n_id.task_id.domain}/{task_execution_id." + - "task_id.name}/{task_execution_id.task_id" + - ".version}/{task_execution_id.retry_attem" + - "pt}\022\356\001\n\024GetNodeExecutionData\022+.flyteidl." + - "admin.NodeExecutionGetDataRequest\032,.flyt" + - "eidl.admin.NodeExecutionGetDataResponse\"" + - "{\202\323\344\223\002u\022s/api/v1/data/node_executions/{i" + - "d.execution_id.project}/{id.execution_id" + - ".domain}/{id.execution_id.name}/{id.node" + - "_id}\022\177\n\017RegisterProject\022&.flyteidl.admin" + - ".ProjectRegisterRequest\032\'.flyteidl.admin" + - ".ProjectRegisterResponse\"\033\202\323\344\223\002\025\"\020/api/v" + - "1/projects:\001*\022q\n\rUpdateProject\022\027.flyteid" + - "l.admin.Project\032%.flyteidl.admin.Project" + - "UpdateResponse\" \202\323\344\223\002\032\032\025/api/v1/projects" + - "/{id}:\001*\022f\n\014ListProjects\022\".flyteidl.admi" + - "n.ProjectListRequest\032\030.flyteidl.admin.Pr" + - "ojects\"\030\202\323\344\223\002\022\022\020/api/v1/projects\022\231\001\n\023Cre" + - "ateWorkflowEvent\022-.flyteidl.admin.Workfl" + - "owExecutionEventRequest\032..flyteidl.admin" + - ".WorkflowExecutionEventResponse\"#\202\323\344\223\002\035\"" + - "\030/api/v1/events/workflows:\001*\022\211\001\n\017CreateN" + - "odeEvent\022).flyteidl.admin.NodeExecutionE" + - "ventRequest\032*.flyteidl.admin.NodeExecuti" + - "onEventResponse\"\037\202\323\344\223\002\031\"\024/api/v1/events/" + - "nodes:\001*\022\211\001\n\017CreateTaskEvent\022).flyteidl." + - "admin.TaskExecutionEventRequest\032*.flytei" + - "dl.admin.TaskExecutionEventResponse\"\037\202\323\344" + - "\223\002\031\"\024/api/v1/events/tasks:\001*\022\200\003\n\020GetTask" + - "Execution\022\'.flyteidl.admin.TaskExecution" + - "GetRequest\032\035.flyteidl.admin.TaskExecutio" + - "n\"\243\002\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{i" + - "d.node_execution_id.execution_id.project" + - "}/{id.node_execution_id.execution_id.dom" + - "ain}/{id.node_execution_id.execution_id." + - "name}/{id.node_execution_id.node_id}/{id" + - ".task_id.project}/{id.task_id.domain}/{i" + - "d.task_id.name}/{id.task_id.version}/{id" + - ".retry_attempt}\022\230\002\n\022ListTaskExecutions\022(" + - ".flyteidl.admin.TaskExecutionListRequest" + - "\032!.flyteidl.admin.TaskExecutionList\"\264\001\202\323" + - "\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_ex" + - "ecution_id.execution_id.project}/{node_e" + - "xecution_id.execution_id.domain}/{node_e" + - "xecution_id.execution_id.name}/{node_exe" + - "cution_id.node_id}\022\234\003\n\024GetTaskExecutionD" + - "ata\022+.flyteidl.admin.TaskExecutionGetDat" + - "aRequest\032,.flyteidl.admin.TaskExecutionG" + - "etDataResponse\"\250\002\202\323\344\223\002\241\002\022\236\002/api/v1/data/" + - "task_executions/{id.node_execution_id.ex" + - "ecution_id.project}/{id.node_execution_i" + - "d.execution_id.domain}/{id.node_executio" + - "n_id.execution_id.name}/{id.node_executi" + - "on_id.node_id}/{id.task_id.project}/{id." + - "task_id.domain}/{id.task_id.name}/{id.ta" + - "sk_id.version}/{id.retry_attempt}\022\343\001\n\035Up" + - "dateProjectDomainAttributes\0224.flyteidl.a" + - "dmin.ProjectDomainAttributesUpdateReques" + - "t\0325.flyteidl.admin.ProjectDomainAttribut" + - "esUpdateResponse\"U\202\323\344\223\002O\032J/api/v1/projec" + - "t_domain_attributes/{attributes.project}" + - "/{attributes.domain}:\001*\022\301\001\n\032GetProjectDo" + - "mainAttributes\0221.flyteidl.admin.ProjectD" + - "omainAttributesGetRequest\0322.flyteidl.adm" + - "in.ProjectDomainAttributesGetResponse\"<\202" + - "\323\344\223\0026\0224/api/v1/project_domain_attributes" + - "/{project}/{domain}\022\315\001\n\035DeleteProjectDom" + - "ainAttributes\0224.flyteidl.admin.ProjectDo" + - "mainAttributesDeleteRequest\0325.flyteidl.a" + - "dmin.ProjectDomainAttributesDeleteRespon" + - "se\"?\202\323\344\223\0029*4/api/v1/project_domain_attri" + - "butes/{project}/{domain}:\001*\022\266\001\n\027UpdatePr" + - "ojectAttributes\022..flyteidl.admin.Project" + - "AttributesUpdateRequest\032/.flyteidl.admin" + - ".ProjectAttributesUpdateResponse\":\202\323\344\223\0024" + - "\032//api/v1/project_attributes/{attributes" + - ".project}:\001*\022\237\001\n\024GetProjectAttributes\022+." + - "flyteidl.admin.ProjectAttributesGetReque" + - "st\032,.flyteidl.admin.ProjectAttributesGet" + - "Response\",\202\323\344\223\002&\022$/api/v1/project_attrib" + - "utes/{project}\022\253\001\n\027DeleteProjectAttribut" + - "es\022..flyteidl.admin.ProjectAttributesDel" + - "eteRequest\032/.flyteidl.admin.ProjectAttri" + - "butesDeleteResponse\"/\202\323\344\223\002)*$/api/v1/pro" + - "ject_attributes/{project}:\001*\022\344\001\n\030UpdateW" + - "orkflowAttributes\022/.flyteidl.admin.Workf" + - "lowAttributesUpdateRequest\0320.flyteidl.ad" + - "min.WorkflowAttributesUpdateResponse\"e\202\323" + - "\344\223\002_\032Z/api/v1/workflow_attributes/{attri" + - "butes.project}/{attributes.domain}/{attr" + - "ibutes.workflow}:\001*\022\267\001\n\025GetWorkflowAttri" + - "butes\022,.flyteidl.admin.WorkflowAttribute" + - "sGetRequest\032-.flyteidl.admin.WorkflowAtt" + - "ributesGetResponse\"A\202\323\344\223\002;\0229/api/v1/work" + - "flow_attributes/{project}/{domain}/{work" + - "flow}\022\303\001\n\030DeleteWorkflowAttributes\022/.fly" + - "teidl.admin.WorkflowAttributesDeleteRequ" + - "est\0320.flyteidl.admin.WorkflowAttributesD" + - "eleteResponse\"D\202\323\344\223\002>*9/api/v1/workflow_" + - "attributes/{project}/{domain}/{workflow}" + - ":\001*\022\240\001\n\027ListMatchableAttributes\022..flytei" + - "dl.admin.ListMatchableAttributesRequest\032" + - "/.flyteidl.admin.ListMatchableAttributes" + - "Response\"$\202\323\344\223\002\036\022\034/api/v1/matchable_attr" + - "ibutes\022\237\001\n\021ListNamedEntities\022&.flyteidl." + - "admin.NamedEntityListRequest\032\037.flyteidl." + - "admin.NamedEntityList\"A\202\323\344\223\002;\0229/api/v1/n" + - "amed_entities/{resource_type}/{project}/" + - "{domain}\022\247\001\n\016GetNamedEntity\022%.flyteidl.a" + - "dmin.NamedEntityGetRequest\032\033.flyteidl.ad" + - "min.NamedEntity\"Q\202\323\344\223\002K\022I/api/v1/named_e" + - "ntities/{resource_type}/{id.project}/{id" + - ".domain}/{id.name}\022\276\001\n\021UpdateNamedEntity" + - "\022(.flyteidl.admin.NamedEntityUpdateReque" + - "st\032).flyteidl.admin.NamedEntityUpdateRes" + - "ponse\"T\202\323\344\223\002N\032I/api/v1/named_entities/{r" + - "esource_type}/{id.project}/{id.domain}/{" + - "id.name}:\001*\022l\n\nGetVersion\022!.flyteidl.adm" + - "in.GetVersionRequest\032\".flyteidl.admin.Ge" + - "tVersionResponse\"\027\202\323\344\223\002\021\022\017/api/v1/versio" + - "n\022\304\001\n\024GetDescriptionEntity\022 .flyteidl.ad" + - "min.ObjectGetRequest\032!.flyteidl.admin.De" + - "scriptionEntity\"g\202\323\344\223\002a\022_/api/v1/descrip" + - "tion_entities/{id.resource_type}/{id.pro" + - "ject}/{id.domain}/{id.name}/{id.version}" + - "\022\222\002\n\027ListDescriptionEntities\022,.flyteidl." + - "admin.DescriptionEntityListRequest\032%.fly" + - "teidl.admin.DescriptionEntityList\"\241\001\202\323\344\223" + - "\002\232\001\022O/api/v1/description_entities/{resou" + - "rce_type}/{id.project}/{id.domain}/{id.n" + - "ame}ZG\022E/api/v1/description_entities/{re" + - "source_type}/{id.project}/{id.domain}\022\305\001" + - "\n\023GetExecutionMetrics\0222.flyteidl.admin.W" + - "orkflowExecutionGetMetricsRequest\0323.flyt" + - "eidl.admin.WorkflowExecutionGetMetricsRe" + - "sponse\"E\202\323\344\223\002?\022=/api/v1/metrics/executio" + - "ns/{id.project}/{id.domain}/{id.name}B?Z" + - "=github.com/flyteorg/flyte/flyteidl/gen/" + - "pb-go/flyteidl/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - flyteidl.admin.ProjectOuterClass.getDescriptor(), - flyteidl.admin.ProjectDomainAttributesOuterClass.getDescriptor(), - flyteidl.admin.ProjectAttributesOuterClass.getDescriptor(), - flyteidl.admin.TaskOuterClass.getDescriptor(), - flyteidl.admin.WorkflowOuterClass.getDescriptor(), - flyteidl.admin.WorkflowAttributesOuterClass.getDescriptor(), - flyteidl.admin.LaunchPlanOuterClass.getDescriptor(), - flyteidl.admin.Event.getDescriptor(), - flyteidl.admin.ExecutionOuterClass.getDescriptor(), - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(), - flyteidl.admin.NodeExecutionOuterClass.getDescriptor(), - flyteidl.admin.TaskExecutionOuterClass.getDescriptor(), - flyteidl.admin.VersionOuterClass.getDescriptor(), - flyteidl.admin.Common.getDescriptor(), - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(), - }, assigner); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - flyteidl.admin.ProjectOuterClass.getDescriptor(); - flyteidl.admin.ProjectDomainAttributesOuterClass.getDescriptor(); - flyteidl.admin.ProjectAttributesOuterClass.getDescriptor(); - flyteidl.admin.TaskOuterClass.getDescriptor(); - flyteidl.admin.WorkflowOuterClass.getDescriptor(); - flyteidl.admin.WorkflowAttributesOuterClass.getDescriptor(); - flyteidl.admin.LaunchPlanOuterClass.getDescriptor(); - flyteidl.admin.Event.getDescriptor(); - flyteidl.admin.ExecutionOuterClass.getDescriptor(); - flyteidl.admin.MatchableResourceOuterClass.getDescriptor(); - flyteidl.admin.NodeExecutionOuterClass.getDescriptor(); - flyteidl.admin.TaskExecutionOuterClass.getDescriptor(); - flyteidl.admin.VersionOuterClass.getDescriptor(); - flyteidl.admin.Common.getDescriptor(); - flyteidl.admin.DescriptionEntityOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Agent.java b/flyteidl/gen/pb-java/flyteidl/service/Agent.java deleted file mode 100644 index a4d582fab0..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Agent.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/agent.proto - -package flyteidl.service; - -public final class Agent { - private Agent() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\034flyteidl/service/agent.proto\022\020flyteidl" + - ".service\032\034google/api/annotations.proto\032\032" + - "flyteidl/admin/agent.proto2\217\002\n\021AsyncAgen" + - "tService\022U\n\nCreateTask\022!.flyteidl.admin." + - "CreateTaskRequest\032\".flyteidl.admin.Creat" + - "eTaskResponse\"\000\022L\n\007GetTask\022\036.flyteidl.ad" + - "min.GetTaskRequest\032\037.flyteidl.admin.GetT" + - "askResponse\"\000\022U\n\nDeleteTask\022!.flyteidl.a" + - "dmin.DeleteTaskRequest\032\".flyteidl.admin." + - "DeleteTaskResponse\"\0002\360\001\n\024AgentMetadataSe" + - "rvice\022k\n\010GetAgent\022\037.flyteidl.admin.GetAg" + - "entRequest\032 .flyteidl.admin.GetAgentResp" + - "onse\"\034\202\323\344\223\002\026\022\024/api/v1/agent/{name}\022k\n\nLi" + - "stAgents\022!.flyteidl.admin.ListAgentsRequ" + - "est\032\".flyteidl.admin.ListAgentsResponse\"" + - "\026\202\323\344\223\002\020\022\016/api/v1/agentsB?Z=github.com/fl" + - "yteorg/flyte/flyteidl/gen/pb-go/flyteidl" + - "/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - flyteidl.admin.AgentOuterClass.getDescriptor(), - }, assigner); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - flyteidl.admin.AgentOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Auth.java b/flyteidl/gen/pb-java/flyteidl/service/Auth.java deleted file mode 100644 index a748cdffae..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Auth.java +++ /dev/null @@ -1,5137 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/auth.proto - -package flyteidl.service; - -public final class Auth { - private Auth() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface OAuth2MetadataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.OAuth2MetadataRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.service.OAuth2MetadataRequest} - */ - public static final class OAuth2MetadataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.OAuth2MetadataRequest) - OAuth2MetadataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuth2MetadataRequest.newBuilder() to construct. - private OAuth2MetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OAuth2MetadataRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OAuth2MetadataRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.OAuth2MetadataRequest.class, flyteidl.service.Auth.OAuth2MetadataRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.service.Auth.OAuth2MetadataRequest)) { - return super.equals(obj); - } - flyteidl.service.Auth.OAuth2MetadataRequest other = (flyteidl.service.Auth.OAuth2MetadataRequest) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest 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.service.Auth.OAuth2MetadataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest 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.service.Auth.OAuth2MetadataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataRequest 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.service.Auth.OAuth2MetadataRequest 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; - } - /** - * Protobuf type {@code flyteidl.service.OAuth2MetadataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.OAuth2MetadataRequest) - flyteidl.service.Auth.OAuth2MetadataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.OAuth2MetadataRequest.class, flyteidl.service.Auth.OAuth2MetadataRequest.Builder.class); - } - - // Construct using flyteidl.service.Auth.OAuth2MetadataRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataRequest getDefaultInstanceForType() { - return flyteidl.service.Auth.OAuth2MetadataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataRequest build() { - flyteidl.service.Auth.OAuth2MetadataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataRequest buildPartial() { - flyteidl.service.Auth.OAuth2MetadataRequest result = new flyteidl.service.Auth.OAuth2MetadataRequest(this); - 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.service.Auth.OAuth2MetadataRequest) { - return mergeFrom((flyteidl.service.Auth.OAuth2MetadataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Auth.OAuth2MetadataRequest other) { - if (other == flyteidl.service.Auth.OAuth2MetadataRequest.getDefaultInstance()) return this; - 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.service.Auth.OAuth2MetadataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Auth.OAuth2MetadataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.service.OAuth2MetadataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataRequest) - private static final flyteidl.service.Auth.OAuth2MetadataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Auth.OAuth2MetadataRequest(); - } - - public static flyteidl.service.Auth.OAuth2MetadataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuth2MetadataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuth2MetadataRequest(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.service.Auth.OAuth2MetadataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface OAuth2MetadataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.OAuth2MetadataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-     * issuer.
-     * 
- * - * string issuer = 1; - */ - java.lang.String getIssuer(); - /** - *
-     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-     * issuer.
-     * 
- * - * string issuer = 1; - */ - com.google.protobuf.ByteString - getIssuerBytes(); - - /** - *
-     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-     * supported that use the authorization endpoint.
-     * 
- * - * string authorization_endpoint = 2; - */ - java.lang.String getAuthorizationEndpoint(); - /** - *
-     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-     * supported that use the authorization endpoint.
-     * 
- * - * string authorization_endpoint = 2; - */ - com.google.protobuf.ByteString - getAuthorizationEndpointBytes(); - - /** - *
-     * URL of the authorization server's token endpoint [RFC6749].
-     * 
- * - * string token_endpoint = 3; - */ - java.lang.String getTokenEndpoint(); - /** - *
-     * URL of the authorization server's token endpoint [RFC6749].
-     * 
- * - * string token_endpoint = 3; - */ - com.google.protobuf.ByteString - getTokenEndpointBytes(); - - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - java.util.List - getResponseTypesSupportedList(); - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - int getResponseTypesSupportedCount(); - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - java.lang.String getResponseTypesSupported(int index); - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index); - - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - java.util.List - getScopesSupportedList(); - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - int getScopesSupportedCount(); - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - java.lang.String getScopesSupported(int index); - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - com.google.protobuf.ByteString - getScopesSupportedBytes(int index); - - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - java.util.List - getTokenEndpointAuthMethodsSupportedList(); - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - int getTokenEndpointAuthMethodsSupportedCount(); - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - java.lang.String getTokenEndpointAuthMethodsSupported(int index); - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - com.google.protobuf.ByteString - getTokenEndpointAuthMethodsSupportedBytes(int index); - - /** - *
-     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-     * client uses to validate signatures from the authorization server.
-     * 
- * - * string jwks_uri = 7; - */ - java.lang.String getJwksUri(); - /** - *
-     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-     * client uses to validate signatures from the authorization server.
-     * 
- * - * string jwks_uri = 7; - */ - com.google.protobuf.ByteString - getJwksUriBytes(); - - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - java.util.List - getCodeChallengeMethodsSupportedList(); - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - int getCodeChallengeMethodsSupportedCount(); - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - java.lang.String getCodeChallengeMethodsSupported(int index); - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - com.google.protobuf.ByteString - getCodeChallengeMethodsSupportedBytes(int index); - - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - java.util.List - getGrantTypesSupportedList(); - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - int getGrantTypesSupportedCount(); - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - java.lang.String getGrantTypesSupported(int index); - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - com.google.protobuf.ByteString - getGrantTypesSupportedBytes(int index); - - /** - *
-     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-     * 
- * - * string device_authorization_endpoint = 10; - */ - java.lang.String getDeviceAuthorizationEndpoint(); - /** - *
-     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-     * 
- * - * string device_authorization_endpoint = 10; - */ - com.google.protobuf.ByteString - getDeviceAuthorizationEndpointBytes(); - } - /** - *
-   * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
-   * as defined in https://tools.ietf.org/html/rfc8414
-   * 
- * - * Protobuf type {@code flyteidl.service.OAuth2MetadataResponse} - */ - public static final class OAuth2MetadataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.OAuth2MetadataResponse) - OAuth2MetadataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use OAuth2MetadataResponse.newBuilder() to construct. - private OAuth2MetadataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private OAuth2MetadataResponse() { - issuer_ = ""; - authorizationEndpoint_ = ""; - tokenEndpoint_ = ""; - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - jwksUri_ = ""; - codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - deviceAuthorizationEndpoint_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private OAuth2MetadataResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - issuer_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - authorizationEndpoint_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - tokenEndpoint_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; - } - responseTypesSupported_.add(s); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - scopesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; - } - scopesSupported_.add(s); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - tokenEndpointAuthMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; - } - tokenEndpointAuthMethodsSupported_.add(s); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - jwksUri_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000080) != 0)) { - codeChallengeMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000080; - } - codeChallengeMethodsSupported_.add(s); - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { - grantTypesSupported_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; - } - grantTypesSupported_.add(s); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); - - deviceAuthorizationEndpoint_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000008) != 0)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000010) != 0)) { - scopesSupported_ = scopesSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000020) != 0)) { - tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000080) != 0)) { - codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000100) != 0)) { - grantTypesSupported_ = grantTypesSupported_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.OAuth2MetadataResponse.class, flyteidl.service.Auth.OAuth2MetadataResponse.Builder.class); - } - - private int bitField0_; - public static final int ISSUER_FIELD_NUMBER = 1; - private volatile java.lang.Object issuer_; - /** - *
-     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-     * issuer.
-     * 
- * - * string issuer = 1; - */ - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } - } - /** - *
-     * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-     * issuer.
-     * 
- * - * string issuer = 1; - */ - public com.google.protobuf.ByteString - getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHORIZATION_ENDPOINT_FIELD_NUMBER = 2; - private volatile java.lang.Object authorizationEndpoint_; - /** - *
-     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-     * supported that use the authorization endpoint.
-     * 
- * - * string authorization_endpoint = 2; - */ - public java.lang.String getAuthorizationEndpoint() { - java.lang.Object ref = authorizationEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationEndpoint_ = s; - return s; - } - } - /** - *
-     * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-     * supported that use the authorization endpoint.
-     * 
- * - * string authorization_endpoint = 2; - */ - public com.google.protobuf.ByteString - getAuthorizationEndpointBytes() { - java.lang.Object ref = authorizationEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authorizationEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOKEN_ENDPOINT_FIELD_NUMBER = 3; - private volatile java.lang.Object tokenEndpoint_; - /** - *
-     * URL of the authorization server's token endpoint [RFC6749].
-     * 
- * - * string token_endpoint = 3; - */ - public java.lang.String getTokenEndpoint() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenEndpoint_ = s; - return s; - } - } - /** - *
-     * URL of the authorization server's token endpoint [RFC6749].
-     * 
- * - * string token_endpoint = 3; - */ - public com.google.protobuf.ByteString - getTokenEndpointBytes() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER = 4; - private com.google.protobuf.LazyStringList responseTypesSupported_; - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_; - } - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-     * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-     * 
- * - * repeated string response_types_supported = 4; - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - - public static final int SCOPES_SUPPORTED_FIELD_NUMBER = 5; - private com.google.protobuf.LazyStringList scopesSupported_; - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - public com.google.protobuf.ProtocolStringList - getScopesSupportedList() { - return scopesSupported_; - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - public int getScopesSupportedCount() { - return scopesSupported_.size(); - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - public java.lang.String getScopesSupported(int index) { - return scopesSupported_.get(index); - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-     * 
- * - * repeated string scopes_supported = 5; - */ - public com.google.protobuf.ByteString - getScopesSupportedBytes(int index) { - return scopesSupported_.getByteString(index); - } - - public static final int TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER = 6; - private com.google.protobuf.LazyStringList tokenEndpointAuthMethodsSupported_; - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public com.google.protobuf.ProtocolStringList - getTokenEndpointAuthMethodsSupportedList() { - return tokenEndpointAuthMethodsSupported_; - } - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public int getTokenEndpointAuthMethodsSupportedCount() { - return tokenEndpointAuthMethodsSupported_.size(); - } - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public java.lang.String getTokenEndpointAuthMethodsSupported(int index) { - return tokenEndpointAuthMethodsSupported_.get(index); - } - /** - *
-     * JSON array containing a list of client authentication methods supported by this token endpoint.
-     * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public com.google.protobuf.ByteString - getTokenEndpointAuthMethodsSupportedBytes(int index) { - return tokenEndpointAuthMethodsSupported_.getByteString(index); - } - - public static final int JWKS_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object jwksUri_; - /** - *
-     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-     * client uses to validate signatures from the authorization server.
-     * 
- * - * string jwks_uri = 7; - */ - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } - } - /** - *
-     * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-     * client uses to validate signatures from the authorization server.
-     * 
- * - * string jwks_uri = 7; - */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER = 8; - private com.google.protobuf.LazyStringList codeChallengeMethodsSupported_; - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public com.google.protobuf.ProtocolStringList - getCodeChallengeMethodsSupportedList() { - return codeChallengeMethodsSupported_; - } - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public int getCodeChallengeMethodsSupportedCount() { - return codeChallengeMethodsSupported_.size(); - } - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public java.lang.String getCodeChallengeMethodsSupported(int index) { - return codeChallengeMethodsSupported_.get(index); - } - /** - *
-     * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-     * this authorization server.
-     * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public com.google.protobuf.ByteString - getCodeChallengeMethodsSupportedBytes(int index) { - return codeChallengeMethodsSupported_.getByteString(index); - } - - public static final int GRANT_TYPES_SUPPORTED_FIELD_NUMBER = 9; - private com.google.protobuf.LazyStringList grantTypesSupported_; - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesSupportedList() { - return grantTypesSupported_; - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - public int getGrantTypesSupportedCount() { - return grantTypesSupported_.size(); - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - public java.lang.String getGrantTypesSupported(int index) { - return grantTypesSupported_.get(index); - } - /** - *
-     * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-     * 
- * - * repeated string grant_types_supported = 9; - */ - public com.google.protobuf.ByteString - getGrantTypesSupportedBytes(int index) { - return grantTypesSupported_.getByteString(index); - } - - public static final int DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER = 10; - private volatile java.lang.Object deviceAuthorizationEndpoint_; - /** - *
-     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-     * 
- * - * string device_authorization_endpoint = 10; - */ - public java.lang.String getDeviceAuthorizationEndpoint() { - java.lang.Object ref = deviceAuthorizationEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceAuthorizationEndpoint_ = s; - return s; - } - } - /** - *
-     * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-     * 
- * - * string device_authorization_endpoint = 10; - */ - public com.google.protobuf.ByteString - getDeviceAuthorizationEndpointBytes() { - java.lang.Object ref = deviceAuthorizationEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceAuthorizationEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getIssuerBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, issuer_); - } - if (!getAuthorizationEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, authorizationEndpoint_); - } - if (!getTokenEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tokenEndpoint_); - } - for (int i = 0; i < responseTypesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, responseTypesSupported_.getRaw(i)); - } - for (int i = 0; i < scopesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, scopesSupported_.getRaw(i)); - } - for (int i = 0; i < tokenEndpointAuthMethodsSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tokenEndpointAuthMethodsSupported_.getRaw(i)); - } - if (!getJwksUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, jwksUri_); - } - for (int i = 0; i < codeChallengeMethodsSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, codeChallengeMethodsSupported_.getRaw(i)); - } - for (int i = 0; i < grantTypesSupported_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, grantTypesSupported_.getRaw(i)); - } - if (!getDeviceAuthorizationEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, deviceAuthorizationEndpoint_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getIssuerBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, issuer_); - } - if (!getAuthorizationEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, authorizationEndpoint_); - } - if (!getTokenEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tokenEndpoint_); - } - { - int dataSize = 0; - for (int i = 0; i < responseTypesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(responseTypesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getResponseTypesSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < scopesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(scopesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getScopesSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < tokenEndpointAuthMethodsSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(tokenEndpointAuthMethodsSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getTokenEndpointAuthMethodsSupportedList().size(); - } - if (!getJwksUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, jwksUri_); - } - { - int dataSize = 0; - for (int i = 0; i < codeChallengeMethodsSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(codeChallengeMethodsSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getCodeChallengeMethodsSupportedList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < grantTypesSupported_.size(); i++) { - dataSize += computeStringSizeNoTag(grantTypesSupported_.getRaw(i)); - } - size += dataSize; - size += 1 * getGrantTypesSupportedList().size(); - } - if (!getDeviceAuthorizationEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, deviceAuthorizationEndpoint_); - } - 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.service.Auth.OAuth2MetadataResponse)) { - return super.equals(obj); - } - flyteidl.service.Auth.OAuth2MetadataResponse other = (flyteidl.service.Auth.OAuth2MetadataResponse) obj; - - if (!getIssuer() - .equals(other.getIssuer())) return false; - if (!getAuthorizationEndpoint() - .equals(other.getAuthorizationEndpoint())) return false; - if (!getTokenEndpoint() - .equals(other.getTokenEndpoint())) return false; - if (!getResponseTypesSupportedList() - .equals(other.getResponseTypesSupportedList())) return false; - if (!getScopesSupportedList() - .equals(other.getScopesSupportedList())) return false; - if (!getTokenEndpointAuthMethodsSupportedList() - .equals(other.getTokenEndpointAuthMethodsSupportedList())) return false; - if (!getJwksUri() - .equals(other.getJwksUri())) return false; - if (!getCodeChallengeMethodsSupportedList() - .equals(other.getCodeChallengeMethodsSupportedList())) return false; - if (!getGrantTypesSupportedList() - .equals(other.getGrantTypesSupportedList())) return false; - if (!getDeviceAuthorizationEndpoint() - .equals(other.getDeviceAuthorizationEndpoint())) 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(); - hash = (37 * hash) + ISSUER_FIELD_NUMBER; - hash = (53 * hash) + getIssuer().hashCode(); - hash = (37 * hash) + AUTHORIZATION_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationEndpoint().hashCode(); - hash = (37 * hash) + TOKEN_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getTokenEndpoint().hashCode(); - if (getResponseTypesSupportedCount() > 0) { - hash = (37 * hash) + RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getResponseTypesSupportedList().hashCode(); - } - if (getScopesSupportedCount() > 0) { - hash = (37 * hash) + SCOPES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getScopesSupportedList().hashCode(); - } - if (getTokenEndpointAuthMethodsSupportedCount() > 0) { - hash = (37 * hash) + TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getTokenEndpointAuthMethodsSupportedList().hashCode(); - } - hash = (37 * hash) + JWKS_URI_FIELD_NUMBER; - hash = (53 * hash) + getJwksUri().hashCode(); - if (getCodeChallengeMethodsSupportedCount() > 0) { - hash = (37 * hash) + CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getCodeChallengeMethodsSupportedList().hashCode(); - } - if (getGrantTypesSupportedCount() > 0) { - hash = (37 * hash) + GRANT_TYPES_SUPPORTED_FIELD_NUMBER; - hash = (53 * hash) + getGrantTypesSupportedList().hashCode(); - } - hash = (37 * hash) + DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getDeviceAuthorizationEndpoint().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse 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.service.Auth.OAuth2MetadataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse 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.service.Auth.OAuth2MetadataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.OAuth2MetadataResponse 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.service.Auth.OAuth2MetadataResponse 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; - } - /** - *
-     * OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
-     * as defined in https://tools.ietf.org/html/rfc8414
-     * 
- * - * Protobuf type {@code flyteidl.service.OAuth2MetadataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.OAuth2MetadataResponse) - flyteidl.service.Auth.OAuth2MetadataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.OAuth2MetadataResponse.class, flyteidl.service.Auth.OAuth2MetadataResponse.Builder.class); - } - - // Construct using flyteidl.service.Auth.OAuth2MetadataResponse.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(); - issuer_ = ""; - - authorizationEndpoint_ = ""; - - tokenEndpoint_ = ""; - - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - jwksUri_ = ""; - - codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - deviceAuthorizationEndpoint_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Auth.internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataResponse getDefaultInstanceForType() { - return flyteidl.service.Auth.OAuth2MetadataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataResponse build() { - flyteidl.service.Auth.OAuth2MetadataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Auth.OAuth2MetadataResponse buildPartial() { - flyteidl.service.Auth.OAuth2MetadataResponse result = new flyteidl.service.Auth.OAuth2MetadataResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.issuer_ = issuer_; - result.authorizationEndpoint_ = authorizationEndpoint_; - result.tokenEndpoint_ = tokenEndpoint_; - if (((bitField0_ & 0x00000008) != 0)) { - responseTypesSupported_ = responseTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.responseTypesSupported_ = responseTypesSupported_; - if (((bitField0_ & 0x00000010) != 0)) { - scopesSupported_ = scopesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.scopesSupported_ = scopesSupported_; - if (((bitField0_ & 0x00000020) != 0)) { - tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.tokenEndpointAuthMethodsSupported_ = tokenEndpointAuthMethodsSupported_; - result.jwksUri_ = jwksUri_; - if (((bitField0_ & 0x00000080) != 0)) { - codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.codeChallengeMethodsSupported_ = codeChallengeMethodsSupported_; - if (((bitField0_ & 0x00000100) != 0)) { - grantTypesSupported_ = grantTypesSupported_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.grantTypesSupported_ = grantTypesSupported_; - result.deviceAuthorizationEndpoint_ = deviceAuthorizationEndpoint_; - result.bitField0_ = to_bitField0_; - 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.service.Auth.OAuth2MetadataResponse) { - return mergeFrom((flyteidl.service.Auth.OAuth2MetadataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Auth.OAuth2MetadataResponse other) { - if (other == flyteidl.service.Auth.OAuth2MetadataResponse.getDefaultInstance()) return this; - if (!other.getIssuer().isEmpty()) { - issuer_ = other.issuer_; - onChanged(); - } - if (!other.getAuthorizationEndpoint().isEmpty()) { - authorizationEndpoint_ = other.authorizationEndpoint_; - onChanged(); - } - if (!other.getTokenEndpoint().isEmpty()) { - tokenEndpoint_ = other.tokenEndpoint_; - onChanged(); - } - if (!other.responseTypesSupported_.isEmpty()) { - if (responseTypesSupported_.isEmpty()) { - responseTypesSupported_ = other.responseTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.addAll(other.responseTypesSupported_); - } - onChanged(); - } - if (!other.scopesSupported_.isEmpty()) { - if (scopesSupported_.isEmpty()) { - scopesSupported_ = other.scopesSupported_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureScopesSupportedIsMutable(); - scopesSupported_.addAll(other.scopesSupported_); - } - onChanged(); - } - if (!other.tokenEndpointAuthMethodsSupported_.isEmpty()) { - if (tokenEndpointAuthMethodsSupported_.isEmpty()) { - tokenEndpointAuthMethodsSupported_ = other.tokenEndpointAuthMethodsSupported_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureTokenEndpointAuthMethodsSupportedIsMutable(); - tokenEndpointAuthMethodsSupported_.addAll(other.tokenEndpointAuthMethodsSupported_); - } - onChanged(); - } - if (!other.getJwksUri().isEmpty()) { - jwksUri_ = other.jwksUri_; - onChanged(); - } - if (!other.codeChallengeMethodsSupported_.isEmpty()) { - if (codeChallengeMethodsSupported_.isEmpty()) { - codeChallengeMethodsSupported_ = other.codeChallengeMethodsSupported_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureCodeChallengeMethodsSupportedIsMutable(); - codeChallengeMethodsSupported_.addAll(other.codeChallengeMethodsSupported_); - } - onChanged(); - } - if (!other.grantTypesSupported_.isEmpty()) { - if (grantTypesSupported_.isEmpty()) { - grantTypesSupported_ = other.grantTypesSupported_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureGrantTypesSupportedIsMutable(); - grantTypesSupported_.addAll(other.grantTypesSupported_); - } - onChanged(); - } - if (!other.getDeviceAuthorizationEndpoint().isEmpty()) { - deviceAuthorizationEndpoint_ = other.deviceAuthorizationEndpoint_; - onChanged(); - } - 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.service.Auth.OAuth2MetadataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Auth.OAuth2MetadataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object issuer_ = ""; - /** - *
-       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-       * issuer.
-       * 
- * - * string issuer = 1; - */ - public java.lang.String getIssuer() { - java.lang.Object ref = issuer_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - issuer_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-       * issuer.
-       * 
- * - * string issuer = 1; - */ - public com.google.protobuf.ByteString - getIssuerBytes() { - java.lang.Object ref = issuer_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - issuer_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-       * issuer.
-       * 
- * - * string issuer = 1; - */ - public Builder setIssuer( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - issuer_ = value; - onChanged(); - return this; - } - /** - *
-       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-       * issuer.
-       * 
- * - * string issuer = 1; - */ - public Builder clearIssuer() { - - issuer_ = getDefaultInstance().getIssuer(); - onChanged(); - return this; - } - /** - *
-       * Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
-       * issuer.
-       * 
- * - * string issuer = 1; - */ - public Builder setIssuerBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - issuer_ = value; - onChanged(); - return this; - } - - private java.lang.Object authorizationEndpoint_ = ""; - /** - *
-       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-       * supported that use the authorization endpoint.
-       * 
- * - * string authorization_endpoint = 2; - */ - public java.lang.String getAuthorizationEndpoint() { - java.lang.Object ref = authorizationEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-       * supported that use the authorization endpoint.
-       * 
- * - * string authorization_endpoint = 2; - */ - public com.google.protobuf.ByteString - getAuthorizationEndpointBytes() { - java.lang.Object ref = authorizationEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authorizationEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-       * supported that use the authorization endpoint.
-       * 
- * - * string authorization_endpoint = 2; - */ - public Builder setAuthorizationEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authorizationEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-       * supported that use the authorization endpoint.
-       * 
- * - * string authorization_endpoint = 2; - */ - public Builder clearAuthorizationEndpoint() { - - authorizationEndpoint_ = getDefaultInstance().getAuthorizationEndpoint(); - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
-       * supported that use the authorization endpoint.
-       * 
- * - * string authorization_endpoint = 2; - */ - public Builder setAuthorizationEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authorizationEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object tokenEndpoint_ = ""; - /** - *
-       * URL of the authorization server's token endpoint [RFC6749].
-       * 
- * - * string token_endpoint = 3; - */ - public java.lang.String getTokenEndpoint() { - java.lang.Object ref = tokenEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL of the authorization server's token endpoint [RFC6749].
-       * 
- * - * string token_endpoint = 3; - */ - public com.google.protobuf.ByteString - getTokenEndpointBytes() { - java.lang.Object ref = tokenEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tokenEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL of the authorization server's token endpoint [RFC6749].
-       * 
- * - * string token_endpoint = 3; - */ - public Builder setTokenEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tokenEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's token endpoint [RFC6749].
-       * 
- * - * string token_endpoint = 3; - */ - public Builder clearTokenEndpoint() { - - tokenEndpoint_ = getDefaultInstance().getTokenEndpoint(); - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's token endpoint [RFC6749].
-       * 
- * - * string token_endpoint = 3; - */ - public Builder setTokenEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tokenEndpoint_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureResponseTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - responseTypesSupported_ = new com.google.protobuf.LazyStringArrayList(responseTypesSupported_); - bitField0_ |= 0x00000008; - } - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public com.google.protobuf.ProtocolStringList - getResponseTypesSupportedList() { - return responseTypesSupported_.getUnmodifiableView(); - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public int getResponseTypesSupportedCount() { - return responseTypesSupported_.size(); - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public java.lang.String getResponseTypesSupported(int index) { - return responseTypesSupported_.get(index); - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public com.google.protobuf.ByteString - getResponseTypesSupportedBytes(int index) { - return responseTypesSupported_.getByteString(index); - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public Builder setResponseTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public Builder addResponseTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public Builder addAllResponseTypesSupported( - java.lang.Iterable values) { - ensureResponseTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, responseTypesSupported_); - onChanged(); - return this; - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public Builder clearResponseTypesSupported() { - responseTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-       * Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
-       * 
- * - * repeated string response_types_supported = 4; - */ - public Builder addResponseTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureResponseTypesSupportedIsMutable(); - responseTypesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureScopesSupportedIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - scopesSupported_ = new com.google.protobuf.LazyStringArrayList(scopesSupported_); - bitField0_ |= 0x00000010; - } - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public com.google.protobuf.ProtocolStringList - getScopesSupportedList() { - return scopesSupported_.getUnmodifiableView(); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public int getScopesSupportedCount() { - return scopesSupported_.size(); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public java.lang.String getScopesSupported(int index) { - return scopesSupported_.get(index); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public com.google.protobuf.ByteString - getScopesSupportedBytes(int index) { - return scopesSupported_.getByteString(index); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public Builder setScopesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScopesSupportedIsMutable(); - scopesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public Builder addScopesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScopesSupportedIsMutable(); - scopesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public Builder addAllScopesSupported( - java.lang.Iterable values) { - ensureScopesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scopesSupported_); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public Builder clearScopesSupported() { - scopesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
-       * 
- * - * repeated string scopes_supported = 5; - */ - public Builder addScopesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureScopesSupportedIsMutable(); - scopesSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureTokenEndpointAuthMethodsSupportedIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - tokenEndpointAuthMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(tokenEndpointAuthMethodsSupported_); - bitField0_ |= 0x00000020; - } - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public com.google.protobuf.ProtocolStringList - getTokenEndpointAuthMethodsSupportedList() { - return tokenEndpointAuthMethodsSupported_.getUnmodifiableView(); - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public int getTokenEndpointAuthMethodsSupportedCount() { - return tokenEndpointAuthMethodsSupported_.size(); - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public java.lang.String getTokenEndpointAuthMethodsSupported(int index) { - return tokenEndpointAuthMethodsSupported_.get(index); - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public com.google.protobuf.ByteString - getTokenEndpointAuthMethodsSupportedBytes(int index) { - return tokenEndpointAuthMethodsSupported_.getByteString(index); - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public Builder setTokenEndpointAuthMethodsSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenEndpointAuthMethodsSupportedIsMutable(); - tokenEndpointAuthMethodsSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public Builder addTokenEndpointAuthMethodsSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTokenEndpointAuthMethodsSupportedIsMutable(); - tokenEndpointAuthMethodsSupported_.add(value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public Builder addAllTokenEndpointAuthMethodsSupported( - java.lang.Iterable values) { - ensureTokenEndpointAuthMethodsSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, tokenEndpointAuthMethodsSupported_); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public Builder clearTokenEndpointAuthMethodsSupported() { - tokenEndpointAuthMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of client authentication methods supported by this token endpoint.
-       * 
- * - * repeated string token_endpoint_auth_methods_supported = 6; - */ - public Builder addTokenEndpointAuthMethodsSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTokenEndpointAuthMethodsSupportedIsMutable(); - tokenEndpointAuthMethodsSupported_.add(value); - onChanged(); - return this; - } - - private java.lang.Object jwksUri_ = ""; - /** - *
-       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-       * client uses to validate signatures from the authorization server.
-       * 
- * - * string jwks_uri = 7; - */ - public java.lang.String getJwksUri() { - java.lang.Object ref = jwksUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jwksUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-       * client uses to validate signatures from the authorization server.
-       * 
- * - * string jwks_uri = 7; - */ - public com.google.protobuf.ByteString - getJwksUriBytes() { - java.lang.Object ref = jwksUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jwksUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-       * client uses to validate signatures from the authorization server.
-       * 
- * - * string jwks_uri = 7; - */ - public Builder setJwksUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jwksUri_ = value; - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-       * client uses to validate signatures from the authorization server.
-       * 
- * - * string jwks_uri = 7; - */ - public Builder clearJwksUri() { - - jwksUri_ = getDefaultInstance().getJwksUri(); - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
-       * client uses to validate signatures from the authorization server.
-       * 
- * - * string jwks_uri = 7; - */ - public Builder setJwksUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jwksUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureCodeChallengeMethodsSupportedIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - codeChallengeMethodsSupported_ = new com.google.protobuf.LazyStringArrayList(codeChallengeMethodsSupported_); - bitField0_ |= 0x00000080; - } - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public com.google.protobuf.ProtocolStringList - getCodeChallengeMethodsSupportedList() { - return codeChallengeMethodsSupported_.getUnmodifiableView(); - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public int getCodeChallengeMethodsSupportedCount() { - return codeChallengeMethodsSupported_.size(); - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public java.lang.String getCodeChallengeMethodsSupported(int index) { - return codeChallengeMethodsSupported_.get(index); - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public com.google.protobuf.ByteString - getCodeChallengeMethodsSupportedBytes(int index) { - return codeChallengeMethodsSupported_.getByteString(index); - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public Builder setCodeChallengeMethodsSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCodeChallengeMethodsSupportedIsMutable(); - codeChallengeMethodsSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public Builder addCodeChallengeMethodsSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureCodeChallengeMethodsSupportedIsMutable(); - codeChallengeMethodsSupported_.add(value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public Builder addAllCodeChallengeMethodsSupported( - java.lang.Iterable values) { - ensureCodeChallengeMethodsSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, codeChallengeMethodsSupported_); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public Builder clearCodeChallengeMethodsSupported() { - codeChallengeMethodsSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
-       * this authorization server.
-       * 
- * - * repeated string code_challenge_methods_supported = 8; - */ - public Builder addCodeChallengeMethodsSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureCodeChallengeMethodsSupportedIsMutable(); - codeChallengeMethodsSupported_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureGrantTypesSupportedIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - grantTypesSupported_ = new com.google.protobuf.LazyStringArrayList(grantTypesSupported_); - bitField0_ |= 0x00000100; - } - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public com.google.protobuf.ProtocolStringList - getGrantTypesSupportedList() { - return grantTypesSupported_.getUnmodifiableView(); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public int getGrantTypesSupportedCount() { - return grantTypesSupported_.size(); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public java.lang.String getGrantTypesSupported(int index) { - return grantTypesSupported_.get(index); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public com.google.protobuf.ByteString - getGrantTypesSupportedBytes(int index) { - return grantTypesSupported_.getByteString(index); - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public Builder setGrantTypesSupported( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesSupportedIsMutable(); - grantTypesSupported_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public Builder addGrantTypesSupported( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureGrantTypesSupportedIsMutable(); - grantTypesSupported_.add(value); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public Builder addAllGrantTypesSupported( - java.lang.Iterable values) { - ensureGrantTypesSupportedIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, grantTypesSupported_); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public Builder clearGrantTypesSupported() { - grantTypesSupported_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-       * JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
-       * 
- * - * repeated string grant_types_supported = 9; - */ - public Builder addGrantTypesSupportedBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureGrantTypesSupportedIsMutable(); - grantTypesSupported_.add(value); - onChanged(); - return this; - } - - private java.lang.Object deviceAuthorizationEndpoint_ = ""; - /** - *
-       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-       * 
- * - * string device_authorization_endpoint = 10; - */ - public java.lang.String getDeviceAuthorizationEndpoint() { - java.lang.Object ref = deviceAuthorizationEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - deviceAuthorizationEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-       * 
- * - * string device_authorization_endpoint = 10; - */ - public com.google.protobuf.ByteString - getDeviceAuthorizationEndpointBytes() { - java.lang.Object ref = deviceAuthorizationEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - deviceAuthorizationEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-       * 
- * - * string device_authorization_endpoint = 10; - */ - public Builder setDeviceAuthorizationEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - deviceAuthorizationEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-       * 
- * - * string device_authorization_endpoint = 10; - */ - public Builder clearDeviceAuthorizationEndpoint() { - - deviceAuthorizationEndpoint_ = getDefaultInstance().getDeviceAuthorizationEndpoint(); - onChanged(); - return this; - } - /** - *
-       * URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
-       * 
- * - * string device_authorization_endpoint = 10; - */ - public Builder setDeviceAuthorizationEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - deviceAuthorizationEndpoint_ = value; - onChanged(); - return this; - } - @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.service.OAuth2MetadataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.OAuth2MetadataResponse) - private static final flyteidl.service.Auth.OAuth2MetadataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Auth.OAuth2MetadataResponse(); - } - - public static flyteidl.service.Auth.OAuth2MetadataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuth2MetadataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OAuth2MetadataResponse(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.service.Auth.OAuth2MetadataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PublicClientAuthConfigRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.PublicClientAuthConfigRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.service.PublicClientAuthConfigRequest} - */ - public static final class PublicClientAuthConfigRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.PublicClientAuthConfigRequest) - PublicClientAuthConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use PublicClientAuthConfigRequest.newBuilder() to construct. - private PublicClientAuthConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PublicClientAuthConfigRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PublicClientAuthConfigRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.PublicClientAuthConfigRequest.class, flyteidl.service.Auth.PublicClientAuthConfigRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.service.Auth.PublicClientAuthConfigRequest)) { - return super.equals(obj); - } - flyteidl.service.Auth.PublicClientAuthConfigRequest other = (flyteidl.service.Auth.PublicClientAuthConfigRequest) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest 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.service.Auth.PublicClientAuthConfigRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest 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.service.Auth.PublicClientAuthConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigRequest 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.service.Auth.PublicClientAuthConfigRequest 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; - } - /** - * Protobuf type {@code flyteidl.service.PublicClientAuthConfigRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.PublicClientAuthConfigRequest) - flyteidl.service.Auth.PublicClientAuthConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.PublicClientAuthConfigRequest.class, flyteidl.service.Auth.PublicClientAuthConfigRequest.Builder.class); - } - - // Construct using flyteidl.service.Auth.PublicClientAuthConfigRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigRequest getDefaultInstanceForType() { - return flyteidl.service.Auth.PublicClientAuthConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigRequest build() { - flyteidl.service.Auth.PublicClientAuthConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigRequest buildPartial() { - flyteidl.service.Auth.PublicClientAuthConfigRequest result = new flyteidl.service.Auth.PublicClientAuthConfigRequest(this); - 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.service.Auth.PublicClientAuthConfigRequest) { - return mergeFrom((flyteidl.service.Auth.PublicClientAuthConfigRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Auth.PublicClientAuthConfigRequest other) { - if (other == flyteidl.service.Auth.PublicClientAuthConfigRequest.getDefaultInstance()) return this; - 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.service.Auth.PublicClientAuthConfigRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Auth.PublicClientAuthConfigRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.service.PublicClientAuthConfigRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigRequest) - private static final flyteidl.service.Auth.PublicClientAuthConfigRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Auth.PublicClientAuthConfigRequest(); - } - - public static flyteidl.service.Auth.PublicClientAuthConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicClientAuthConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicClientAuthConfigRequest(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.service.Auth.PublicClientAuthConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PublicClientAuthConfigResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.PublicClientAuthConfigResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * client_id to use when initiating OAuth2 authorization requests.
-     * 
- * - * string client_id = 1; - */ - java.lang.String getClientId(); - /** - *
-     * client_id to use when initiating OAuth2 authorization requests.
-     * 
- * - * string client_id = 1; - */ - com.google.protobuf.ByteString - getClientIdBytes(); - - /** - *
-     * redirect uri to use when initiating OAuth2 authorization requests.
-     * 
- * - * string redirect_uri = 2; - */ - java.lang.String getRedirectUri(); - /** - *
-     * redirect uri to use when initiating OAuth2 authorization requests.
-     * 
- * - * string redirect_uri = 2; - */ - com.google.protobuf.ByteString - getRedirectUriBytes(); - - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - java.util.List - getScopesList(); - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - int getScopesCount(); - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - java.lang.String getScopes(int index); - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - com.google.protobuf.ByteString - getScopesBytes(int index); - - /** - *
-     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-     * default http `Authorization` header.
-     * 
- * - * string authorization_metadata_key = 4; - */ - java.lang.String getAuthorizationMetadataKey(); - /** - *
-     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-     * default http `Authorization` header.
-     * 
- * - * string authorization_metadata_key = 4; - */ - com.google.protobuf.ByteString - getAuthorizationMetadataKeyBytes(); - - /** - *
-     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-     * SSL or no SSL connections.
-     * 
- * - * string service_http_endpoint = 5; - */ - java.lang.String getServiceHttpEndpoint(); - /** - *
-     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-     * SSL or no SSL connections.
-     * 
- * - * string service_http_endpoint = 5; - */ - com.google.protobuf.ByteString - getServiceHttpEndpointBytes(); - - /** - *
-     * audience to use when initiating OAuth2 authorization requests.
-     * 
- * - * string audience = 6; - */ - java.lang.String getAudience(); - /** - *
-     * audience to use when initiating OAuth2 authorization requests.
-     * 
- * - * string audience = 6; - */ - com.google.protobuf.ByteString - getAudienceBytes(); - } - /** - *
-   * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users.
-   * 
- * - * Protobuf type {@code flyteidl.service.PublicClientAuthConfigResponse} - */ - public static final class PublicClientAuthConfigResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.PublicClientAuthConfigResponse) - PublicClientAuthConfigResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use PublicClientAuthConfigResponse.newBuilder() to construct. - private PublicClientAuthConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PublicClientAuthConfigResponse() { - clientId_ = ""; - redirectUri_ = ""; - scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - authorizationMetadataKey_ = ""; - serviceHttpEndpoint_ = ""; - audience_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PublicClientAuthConfigResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - clientId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - redirectUri_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - scopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; - } - scopes_.add(s); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - authorizationMetadataKey_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - serviceHttpEndpoint_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - audience_ = s; - 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 { - if (((mutable_bitField0_ & 0x00000004) != 0)) { - scopes_ = scopes_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.PublicClientAuthConfigResponse.class, flyteidl.service.Auth.PublicClientAuthConfigResponse.Builder.class); - } - - private int bitField0_; - public static final int CLIENT_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object clientId_; - /** - *
-     * client_id to use when initiating OAuth2 authorization requests.
-     * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } - } - /** - *
-     * client_id to use when initiating OAuth2 authorization requests.
-     * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REDIRECT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object redirectUri_; - /** - *
-     * redirect uri to use when initiating OAuth2 authorization requests.
-     * 
- * - * string redirect_uri = 2; - */ - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } - } - /** - *
-     * redirect uri to use when initiating OAuth2 authorization requests.
-     * 
- * - * string redirect_uri = 2; - */ - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPES_FIELD_NUMBER = 3; - private com.google.protobuf.LazyStringList scopes_; - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - public com.google.protobuf.ProtocolStringList - getScopesList() { - return scopes_; - } - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - public int getScopesCount() { - return scopes_.size(); - } - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - public java.lang.String getScopes(int index) { - return scopes_.get(index); - } - /** - *
-     * scopes to request when initiating OAuth2 authorization requests.
-     * 
- * - * repeated string scopes = 3; - */ - public com.google.protobuf.ByteString - getScopesBytes(int index) { - return scopes_.getByteString(index); - } - - public static final int AUTHORIZATION_METADATA_KEY_FIELD_NUMBER = 4; - private volatile java.lang.Object authorizationMetadataKey_; - /** - *
-     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-     * default http `Authorization` header.
-     * 
- * - * string authorization_metadata_key = 4; - */ - public java.lang.String getAuthorizationMetadataKey() { - java.lang.Object ref = authorizationMetadataKey_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationMetadataKey_ = s; - return s; - } - } - /** - *
-     * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-     * default http `Authorization` header.
-     * 
- * - * string authorization_metadata_key = 4; - */ - public com.google.protobuf.ByteString - getAuthorizationMetadataKeyBytes() { - java.lang.Object ref = authorizationMetadataKey_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authorizationMetadataKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_HTTP_ENDPOINT_FIELD_NUMBER = 5; - private volatile java.lang.Object serviceHttpEndpoint_; - /** - *
-     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-     * SSL or no SSL connections.
-     * 
- * - * string service_http_endpoint = 5; - */ - public java.lang.String getServiceHttpEndpoint() { - java.lang.Object ref = serviceHttpEndpoint_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceHttpEndpoint_ = s; - return s; - } - } - /** - *
-     * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-     * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-     * SSL or no SSL connections.
-     * 
- * - * string service_http_endpoint = 5; - */ - public com.google.protobuf.ByteString - getServiceHttpEndpointBytes() { - java.lang.Object ref = serviceHttpEndpoint_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceHttpEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUDIENCE_FIELD_NUMBER = 6; - private volatile java.lang.Object audience_; - /** - *
-     * audience to use when initiating OAuth2 authorization requests.
-     * 
- * - * string audience = 6; - */ - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - audience_ = s; - return s; - } - } - /** - *
-     * audience to use when initiating OAuth2 authorization requests.
-     * 
- * - * string audience = 6; - */ - public com.google.protobuf.ByteString - getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getClientIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clientId_); - } - if (!getRedirectUriBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); - } - for (int i = 0; i < scopes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scopes_.getRaw(i)); - } - if (!getAuthorizationMetadataKeyBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authorizationMetadataKey_); - } - if (!getServiceHttpEndpointBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, serviceHttpEndpoint_); - } - if (!getAudienceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, audience_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getClientIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clientId_); - } - if (!getRedirectUriBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); - } - { - int dataSize = 0; - for (int i = 0; i < scopes_.size(); i++) { - dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); - } - size += dataSize; - size += 1 * getScopesList().size(); - } - if (!getAuthorizationMetadataKeyBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authorizationMetadataKey_); - } - if (!getServiceHttpEndpointBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, serviceHttpEndpoint_); - } - if (!getAudienceBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, audience_); - } - 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.service.Auth.PublicClientAuthConfigResponse)) { - return super.equals(obj); - } - flyteidl.service.Auth.PublicClientAuthConfigResponse other = (flyteidl.service.Auth.PublicClientAuthConfigResponse) obj; - - if (!getClientId() - .equals(other.getClientId())) return false; - if (!getRedirectUri() - .equals(other.getRedirectUri())) return false; - if (!getScopesList() - .equals(other.getScopesList())) return false; - if (!getAuthorizationMetadataKey() - .equals(other.getAuthorizationMetadataKey())) return false; - if (!getServiceHttpEndpoint() - .equals(other.getServiceHttpEndpoint())) return false; - if (!getAudience() - .equals(other.getAudience())) 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(); - hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getClientId().hashCode(); - hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUri().hashCode(); - if (getScopesCount() > 0) { - hash = (37 * hash) + SCOPES_FIELD_NUMBER; - hash = (53 * hash) + getScopesList().hashCode(); - } - hash = (37 * hash) + AUTHORIZATION_METADATA_KEY_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationMetadataKey().hashCode(); - hash = (37 * hash) + SERVICE_HTTP_ENDPOINT_FIELD_NUMBER; - hash = (53 * hash) + getServiceHttpEndpoint().hashCode(); - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse 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.service.Auth.PublicClientAuthConfigResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse 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.service.Auth.PublicClientAuthConfigResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Auth.PublicClientAuthConfigResponse 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.service.Auth.PublicClientAuthConfigResponse 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; - } - /** - *
-     * FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users.
-     * 
- * - * Protobuf type {@code flyteidl.service.PublicClientAuthConfigResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.PublicClientAuthConfigResponse) - flyteidl.service.Auth.PublicClientAuthConfigResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Auth.PublicClientAuthConfigResponse.class, flyteidl.service.Auth.PublicClientAuthConfigResponse.Builder.class); - } - - // Construct using flyteidl.service.Auth.PublicClientAuthConfigResponse.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(); - clientId_ = ""; - - redirectUri_ = ""; - - scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - authorizationMetadataKey_ = ""; - - serviceHttpEndpoint_ = ""; - - audience_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Auth.internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigResponse getDefaultInstanceForType() { - return flyteidl.service.Auth.PublicClientAuthConfigResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigResponse build() { - flyteidl.service.Auth.PublicClientAuthConfigResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Auth.PublicClientAuthConfigResponse buildPartial() { - flyteidl.service.Auth.PublicClientAuthConfigResponse result = new flyteidl.service.Auth.PublicClientAuthConfigResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.clientId_ = clientId_; - result.redirectUri_ = redirectUri_; - if (((bitField0_ & 0x00000004) != 0)) { - scopes_ = scopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.scopes_ = scopes_; - result.authorizationMetadataKey_ = authorizationMetadataKey_; - result.serviceHttpEndpoint_ = serviceHttpEndpoint_; - result.audience_ = audience_; - result.bitField0_ = to_bitField0_; - 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.service.Auth.PublicClientAuthConfigResponse) { - return mergeFrom((flyteidl.service.Auth.PublicClientAuthConfigResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Auth.PublicClientAuthConfigResponse other) { - if (other == flyteidl.service.Auth.PublicClientAuthConfigResponse.getDefaultInstance()) return this; - if (!other.getClientId().isEmpty()) { - clientId_ = other.clientId_; - onChanged(); - } - if (!other.getRedirectUri().isEmpty()) { - redirectUri_ = other.redirectUri_; - onChanged(); - } - if (!other.scopes_.isEmpty()) { - if (scopes_.isEmpty()) { - scopes_ = other.scopes_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureScopesIsMutable(); - scopes_.addAll(other.scopes_); - } - onChanged(); - } - if (!other.getAuthorizationMetadataKey().isEmpty()) { - authorizationMetadataKey_ = other.authorizationMetadataKey_; - onChanged(); - } - if (!other.getServiceHttpEndpoint().isEmpty()) { - serviceHttpEndpoint_ = other.serviceHttpEndpoint_; - onChanged(); - } - if (!other.getAudience().isEmpty()) { - audience_ = other.audience_; - onChanged(); - } - 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.service.Auth.PublicClientAuthConfigResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Auth.PublicClientAuthConfigResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object clientId_ = ""; - /** - *
-       * client_id to use when initiating OAuth2 authorization requests.
-       * 
- * - * string client_id = 1; - */ - public java.lang.String getClientId() { - java.lang.Object ref = clientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - clientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * client_id to use when initiating OAuth2 authorization requests.
-       * 
- * - * string client_id = 1; - */ - public com.google.protobuf.ByteString - getClientIdBytes() { - java.lang.Object ref = clientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - clientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * client_id to use when initiating OAuth2 authorization requests.
-       * 
- * - * string client_id = 1; - */ - public Builder setClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - clientId_ = value; - onChanged(); - return this; - } - /** - *
-       * client_id to use when initiating OAuth2 authorization requests.
-       * 
- * - * string client_id = 1; - */ - public Builder clearClientId() { - - clientId_ = getDefaultInstance().getClientId(); - onChanged(); - return this; - } - /** - *
-       * client_id to use when initiating OAuth2 authorization requests.
-       * 
- * - * string client_id = 1; - */ - public Builder setClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - clientId_ = value; - onChanged(); - return this; - } - - private java.lang.Object redirectUri_ = ""; - /** - *
-       * redirect uri to use when initiating OAuth2 authorization requests.
-       * 
- * - * string redirect_uri = 2; - */ - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * redirect uri to use when initiating OAuth2 authorization requests.
-       * 
- * - * string redirect_uri = 2; - */ - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * redirect uri to use when initiating OAuth2 authorization requests.
-       * 
- * - * string redirect_uri = 2; - */ - public Builder setRedirectUri( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - redirectUri_ = value; - onChanged(); - return this; - } - /** - *
-       * redirect uri to use when initiating OAuth2 authorization requests.
-       * 
- * - * string redirect_uri = 2; - */ - public Builder clearRedirectUri() { - - redirectUri_ = getDefaultInstance().getRedirectUri(); - onChanged(); - return this; - } - /** - *
-       * redirect uri to use when initiating OAuth2 authorization requests.
-       * 
- * - * string redirect_uri = 2; - */ - public Builder setRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - redirectUri_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureScopesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); - bitField0_ |= 0x00000004; - } - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public com.google.protobuf.ProtocolStringList - getScopesList() { - return scopes_.getUnmodifiableView(); - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public int getScopesCount() { - return scopes_.size(); - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public java.lang.String getScopes(int index) { - return scopes_.get(index); - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public com.google.protobuf.ByteString - getScopesBytes(int index) { - return scopes_.getByteString(index); - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public Builder setScopes( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); - scopes_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public Builder addScopes( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureScopesIsMutable(); - scopes_.add(value); - onChanged(); - return this; - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public Builder addAllScopes( - java.lang.Iterable values) { - ensureScopesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, scopes_); - onChanged(); - return this; - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public Builder clearScopes() { - scopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * scopes to request when initiating OAuth2 authorization requests.
-       * 
- * - * repeated string scopes = 3; - */ - public Builder addScopesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureScopesIsMutable(); - scopes_.add(value); - onChanged(); - return this; - } - - private java.lang.Object authorizationMetadataKey_ = ""; - /** - *
-       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-       * default http `Authorization` header.
-       * 
- * - * string authorization_metadata_key = 4; - */ - public java.lang.String getAuthorizationMetadataKey() { - java.lang.Object ref = authorizationMetadataKey_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationMetadataKey_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-       * default http `Authorization` header.
-       * 
- * - * string authorization_metadata_key = 4; - */ - public com.google.protobuf.ByteString - getAuthorizationMetadataKeyBytes() { - java.lang.Object ref = authorizationMetadataKey_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - authorizationMetadataKey_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-       * default http `Authorization` header.
-       * 
- * - * string authorization_metadata_key = 4; - */ - public Builder setAuthorizationMetadataKey( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - authorizationMetadataKey_ = value; - onChanged(); - return this; - } - /** - *
-       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-       * default http `Authorization` header.
-       * 
- * - * string authorization_metadata_key = 4; - */ - public Builder clearAuthorizationMetadataKey() { - - authorizationMetadataKey_ = getDefaultInstance().getAuthorizationMetadataKey(); - onChanged(); - return this; - } - /** - *
-       * Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
-       * default http `Authorization` header.
-       * 
- * - * string authorization_metadata_key = 4; - */ - public Builder setAuthorizationMetadataKeyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - authorizationMetadataKey_ = value; - onChanged(); - return this; - } - - private java.lang.Object serviceHttpEndpoint_ = ""; - /** - *
-       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-       * SSL or no SSL connections.
-       * 
- * - * string service_http_endpoint = 5; - */ - public java.lang.String getServiceHttpEndpoint() { - java.lang.Object ref = serviceHttpEndpoint_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - serviceHttpEndpoint_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-       * SSL or no SSL connections.
-       * 
- * - * string service_http_endpoint = 5; - */ - public com.google.protobuf.ByteString - getServiceHttpEndpointBytes() { - java.lang.Object ref = serviceHttpEndpoint_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - serviceHttpEndpoint_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-       * SSL or no SSL connections.
-       * 
- * - * string service_http_endpoint = 5; - */ - public Builder setServiceHttpEndpoint( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - serviceHttpEndpoint_ = value; - onChanged(); - return this; - } - /** - *
-       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-       * SSL or no SSL connections.
-       * 
- * - * string service_http_endpoint = 5; - */ - public Builder clearServiceHttpEndpoint() { - - serviceHttpEndpoint_ = getDefaultInstance().getServiceHttpEndpoint(); - onChanged(); - return this; - } - /** - *
-       * ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
-       * to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
-       * SSL or no SSL connections.
-       * 
- * - * string service_http_endpoint = 5; - */ - public Builder setServiceHttpEndpointBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - serviceHttpEndpoint_ = value; - onChanged(); - return this; - } - - private java.lang.Object audience_ = ""; - /** - *
-       * audience to use when initiating OAuth2 authorization requests.
-       * 
- * - * string audience = 6; - */ - public java.lang.String getAudience() { - java.lang.Object ref = audience_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - audience_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * audience to use when initiating OAuth2 authorization requests.
-       * 
- * - * string audience = 6; - */ - public com.google.protobuf.ByteString - getAudienceBytes() { - java.lang.Object ref = audience_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - audience_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * audience to use when initiating OAuth2 authorization requests.
-       * 
- * - * string audience = 6; - */ - public Builder setAudience( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - audience_ = value; - onChanged(); - return this; - } - /** - *
-       * audience to use when initiating OAuth2 authorization requests.
-       * 
- * - * string audience = 6; - */ - public Builder clearAudience() { - - audience_ = getDefaultInstance().getAudience(); - onChanged(); - return this; - } - /** - *
-       * audience to use when initiating OAuth2 authorization requests.
-       * 
- * - * string audience = 6; - */ - public Builder setAudienceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - audience_ = value; - onChanged(); - return this; - } - @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.service.PublicClientAuthConfigResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.PublicClientAuthConfigResponse) - private static final flyteidl.service.Auth.PublicClientAuthConfigResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Auth.PublicClientAuthConfigResponse(); - } - - public static flyteidl.service.Auth.PublicClientAuthConfigResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublicClientAuthConfigResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublicClientAuthConfigResponse(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.service.Auth.PublicClientAuthConfigResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\033flyteidl/service/auth.proto\022\020flyteidl." + - "service\032\034google/api/annotations.proto\"\027\n" + - "\025OAuth2MetadataRequest\"\315\002\n\026OAuth2Metadat" + - "aResponse\022\016\n\006issuer\030\001 \001(\t\022\036\n\026authorizati" + - "on_endpoint\030\002 \001(\t\022\026\n\016token_endpoint\030\003 \001(" + - "\t\022 \n\030response_types_supported\030\004 \003(\t\022\030\n\020s" + - "copes_supported\030\005 \003(\t\022-\n%token_endpoint_" + - "auth_methods_supported\030\006 \003(\t\022\020\n\010jwks_uri" + - "\030\007 \001(\t\022(\n code_challenge_methods_support" + - "ed\030\010 \003(\t\022\035\n\025grant_types_supported\030\t \003(\t\022" + - "%\n\035device_authorization_endpoint\030\n \001(\t\"\037" + - "\n\035PublicClientAuthConfigRequest\"\256\001\n\036Publ" + - "icClientAuthConfigResponse\022\021\n\tclient_id\030" + - "\001 \001(\t\022\024\n\014redirect_uri\030\002 \001(\t\022\016\n\006scopes\030\003 " + - "\003(\t\022\"\n\032authorization_metadata_key\030\004 \001(\t\022" + - "\035\n\025service_http_endpoint\030\005 \001(\t\022\020\n\010audien" + - "ce\030\006 \001(\t2\315\002\n\023AuthMetadataService\022\227\001\n\021Get" + - "OAuth2Metadata\022\'.flyteidl.service.OAuth2" + - "MetadataRequest\032(.flyteidl.service.OAuth" + - "2MetadataResponse\"/\202\323\344\223\002)\022\'/.well-known/" + - "oauth-authorization-server\022\233\001\n\025GetPublic" + - "ClientConfig\022/.flyteidl.service.PublicCl" + - "ientAuthConfigRequest\0320.flyteidl.service" + - ".PublicClientAuthConfigResponse\"\037\202\323\344\223\002\031\022" + - "\027/config/v1/flyte_clientB?Z=github.com/f" + - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" + - "l/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_service_OAuth2MetadataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_OAuth2MetadataRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_service_OAuth2MetadataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_OAuth2MetadataResponse_descriptor, - new java.lang.String[] { "Issuer", "AuthorizationEndpoint", "TokenEndpoint", "ResponseTypesSupported", "ScopesSupported", "TokenEndpointAuthMethodsSupported", "JwksUri", "CodeChallengeMethodsSupported", "GrantTypesSupported", "DeviceAuthorizationEndpoint", }); - internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_service_PublicClientAuthConfigRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_PublicClientAuthConfigRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_service_PublicClientAuthConfigResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_PublicClientAuthConfigResponse_descriptor, - new java.lang.String[] { "ClientId", "RedirectUri", "Scopes", "AuthorizationMetadataKey", "ServiceHttpEndpoint", "Audience", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java b/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java deleted file mode 100644 index df75c41816..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Dataproxy.java +++ /dev/null @@ -1,9887 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/dataproxy.proto - -package flyteidl.service; - -public final class Dataproxy { - private Dataproxy() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * ArtifactType
-   * 
- * - * Protobuf enum {@code flyteidl.service.ArtifactType} - */ - public enum ArtifactType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.
-     * 
- * - * ARTIFACT_TYPE_UNDEFINED = 0; - */ - ARTIFACT_TYPE_UNDEFINED(0), - /** - *
-     * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan
-     * finishes executing.
-     * 
- * - * ARTIFACT_TYPE_DECK = 1; - */ - ARTIFACT_TYPE_DECK(1), - UNRECOGNIZED(-1), - ; - - /** - *
-     * ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.
-     * 
- * - * ARTIFACT_TYPE_UNDEFINED = 0; - */ - public static final int ARTIFACT_TYPE_UNDEFINED_VALUE = 0; - /** - *
-     * ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan
-     * finishes executing.
-     * 
- * - * ARTIFACT_TYPE_DECK = 1; - */ - public static final int ARTIFACT_TYPE_DECK_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ArtifactType valueOf(int value) { - return forNumber(value); - } - - public static ArtifactType forNumber(int value) { - switch (value) { - case 0: return ARTIFACT_TYPE_UNDEFINED; - case 1: return ARTIFACT_TYPE_DECK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ArtifactType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ArtifactType findValueByNumber(int number) { - return ArtifactType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.service.Dataproxy.getDescriptor().getEnumTypes().get(0); - } - - private static final ArtifactType[] VALUES = values(); - - public static ArtifactType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ArtifactType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.service.ArtifactType) - } - - public interface CreateUploadLocationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateUploadLocationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - java.lang.String getSignedUrl(); - /** - *
-     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - com.google.protobuf.ByteString - getSignedUrlBytes(); - - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 2; - */ - java.lang.String getNativeUrl(); - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 2; - */ - com.google.protobuf.ByteString - getNativeUrlBytes(); - - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - boolean hasExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.service.CreateUploadLocationResponse} - */ - public static final class CreateUploadLocationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateUploadLocationResponse) - CreateUploadLocationResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateUploadLocationResponse.newBuilder() to construct. - private CreateUploadLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateUploadLocationResponse() { - signedUrl_ = ""; - nativeUrl_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateUploadLocationResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - signedUrl_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nativeUrl_ = s; - break; - } - case 26: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = 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.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateUploadLocationResponse.class, flyteidl.service.Dataproxy.CreateUploadLocationResponse.Builder.class); - } - - public static final int SIGNED_URL_FIELD_NUMBER = 1; - private volatile java.lang.Object signedUrl_; - /** - *
-     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - public java.lang.String getSignedUrl() { - java.lang.Object ref = signedUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedUrl_ = s; - return s; - } - } - /** - *
-     * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes() { - java.lang.Object ref = signedUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NATIVE_URL_FIELD_NUMBER = 2; - private volatile java.lang.Object nativeUrl_; - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 2; - */ - public java.lang.String getNativeUrl() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nativeUrl_ = s; - return s; - } - } - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 2; - */ - public com.google.protobuf.ByteString - getNativeUrlBytes() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - 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 (!getSignedUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_); - } - if (!getNativeUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nativeUrl_); - } - if (expiresAt_ != null) { - output.writeMessage(3, getExpiresAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignedUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signedUrl_); - } - if (!getNativeUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nativeUrl_); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getExpiresAt()); - } - 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.service.Dataproxy.CreateUploadLocationResponse)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateUploadLocationResponse other = (flyteidl.service.Dataproxy.CreateUploadLocationResponse) obj; - - if (!getSignedUrl() - .equals(other.getSignedUrl())) return false; - if (!getNativeUrl() - .equals(other.getNativeUrl())) return false; - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) 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(); - hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; - hash = (53 * hash) + getSignedUrl().hashCode(); - hash = (37 * hash) + NATIVE_URL_FIELD_NUMBER; - hash = (53 * hash) + getNativeUrl().hashCode(); - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse 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.service.Dataproxy.CreateUploadLocationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse 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.service.Dataproxy.CreateUploadLocationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse 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.service.Dataproxy.CreateUploadLocationResponse 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; - } - /** - * Protobuf type {@code flyteidl.service.CreateUploadLocationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateUploadLocationResponse) - flyteidl.service.Dataproxy.CreateUploadLocationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateUploadLocationResponse.class, flyteidl.service.Dataproxy.CreateUploadLocationResponse.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateUploadLocationResponse.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(); - signedUrl_ = ""; - - nativeUrl_ = ""; - - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationResponse getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateUploadLocationResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationResponse build() { - flyteidl.service.Dataproxy.CreateUploadLocationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationResponse buildPartial() { - flyteidl.service.Dataproxy.CreateUploadLocationResponse result = new flyteidl.service.Dataproxy.CreateUploadLocationResponse(this); - result.signedUrl_ = signedUrl_; - result.nativeUrl_ = nativeUrl_; - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.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.service.Dataproxy.CreateUploadLocationResponse) { - return mergeFrom((flyteidl.service.Dataproxy.CreateUploadLocationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateUploadLocationResponse other) { - if (other == flyteidl.service.Dataproxy.CreateUploadLocationResponse.getDefaultInstance()) return this; - if (!other.getSignedUrl().isEmpty()) { - signedUrl_ = other.signedUrl_; - onChanged(); - } - if (!other.getNativeUrl().isEmpty()) { - nativeUrl_ = other.nativeUrl_; - onChanged(); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - 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.service.Dataproxy.CreateUploadLocationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateUploadLocationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signedUrl_ = ""; - /** - *
-       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public java.lang.String getSignedUrl() { - java.lang.Object ref = signedUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes() { - java.lang.Object ref = signedUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder setSignedUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signedUrl_ = value; - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder clearSignedUrl() { - - signedUrl_ = getDefaultInstance().getSignedUrl(); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder setSignedUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signedUrl_ = value; - onChanged(); - return this; - } - - private java.lang.Object nativeUrl_ = ""; - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 2; - */ - public java.lang.String getNativeUrl() { - java.lang.Object ref = nativeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nativeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 2; - */ - public com.google.protobuf.ByteString - getNativeUrlBytes() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 2; - */ - public Builder setNativeUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nativeUrl_ = value; - onChanged(); - return this; - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 2; - */ - public Builder clearNativeUrl() { - - nativeUrl_ = getDefaultInstance().getNativeUrl(); - onChanged(); - return this; - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 2; - */ - public Builder setNativeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nativeUrl_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - @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.service.CreateUploadLocationResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationResponse) - private static final flyteidl.service.Dataproxy.CreateUploadLocationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateUploadLocationResponse(); - } - - public static flyteidl.service.Dataproxy.CreateUploadLocationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUploadLocationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateUploadLocationResponse(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.service.Dataproxy.CreateUploadLocationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateUploadLocationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateUploadLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Project to create the upload location for
-     * +required
-     * 
- * - * string project = 1; - */ - java.lang.String getProject(); - /** - *
-     * Project to create the upload location for
-     * +required
-     * 
- * - * string project = 1; - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-     * Domain to create the upload location for.
-     * +required
-     * 
- * - * string domain = 2; - */ - java.lang.String getDomain(); - /** - *
-     * Domain to create the upload location for.
-     * +required
-     * 
- * - * string domain = 2; - */ - com.google.protobuf.ByteString - getDomainBytes(); - - /** - *
-     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-     * +optional. By default, the service will generate a consistent name based on the provided parameters.
-     * 
- * - * string filename = 3; - */ - java.lang.String getFilename(); - /** - *
-     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-     * +optional. By default, the service will generate a consistent name based on the provided parameters.
-     * 
- * - * string filename = 3; - */ - com.google.protobuf.ByteString - getFilenameBytes(); - - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - boolean hasExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - com.google.protobuf.Duration getExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); - - /** - *
-     * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
-     * generated path.
-     * +required
-     * 
- * - * bytes content_md5 = 5; - */ - com.google.protobuf.ByteString getContentMd5(); - - /** - *
-     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-     * in data proxy config. This option is useful when uploading multiple files.
-     * +optional
-     * 
- * - * string filename_root = 6; - */ - java.lang.String getFilenameRoot(); - /** - *
-     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-     * in data proxy config. This option is useful when uploading multiple files.
-     * +optional
-     * 
- * - * string filename_root = 6; - */ - com.google.protobuf.ByteString - getFilenameRootBytes(); - } - /** - *
-   * CreateUploadLocationRequest specified request for the CreateUploadLocation API.
-   * The implementation in data proxy service will create the s3 location with some server side configured prefixes,
-   * and then:
-   *   - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR
-   *   - project/domain/filename_root (if present)/filename (if present).
-   * 
- * - * Protobuf type {@code flyteidl.service.CreateUploadLocationRequest} - */ - public static final class CreateUploadLocationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateUploadLocationRequest) - CreateUploadLocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateUploadLocationRequest.newBuilder() to construct. - private CreateUploadLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateUploadLocationRequest() { - project_ = ""; - domain_ = ""; - filename_ = ""; - contentMd5_ = com.google.protobuf.ByteString.EMPTY; - filenameRoot_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateUploadLocationRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - domain_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - filename_ = s; - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (expiresIn_ != null) { - subBuilder = expiresIn_.toBuilder(); - } - expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresIn_); - expiresIn_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - - contentMd5_ = input.readBytes(); - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - filenameRoot_ = s; - 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.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateUploadLocationRequest.class, flyteidl.service.Dataproxy.CreateUploadLocationRequest.Builder.class); - } - - public static final int PROJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object project_; - /** - *
-     * Project to create the upload location for
-     * +required
-     * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } - } - /** - *
-     * Project to create the upload location for
-     * +required
-     * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOMAIN_FIELD_NUMBER = 2; - private volatile java.lang.Object domain_; - /** - *
-     * Domain to create the upload location for.
-     * +required
-     * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } - } - /** - *
-     * Domain to create the upload location for.
-     * +required
-     * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILENAME_FIELD_NUMBER = 3; - private volatile java.lang.Object filename_; - /** - *
-     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-     * +optional. By default, the service will generate a consistent name based on the provided parameters.
-     * 
- * - * string filename = 3; - */ - public java.lang.String getFilename() { - java.lang.Object ref = filename_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filename_ = s; - return s; - } - } - /** - *
-     * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-     * +optional. By default, the service will generate a consistent name based on the provided parameters.
-     * 
- * - * string filename = 3; - */ - public com.google.protobuf.ByteString - getFilenameBytes() { - java.lang.Object ref = filename_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filename_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPIRES_IN_FIELD_NUMBER = 4; - private com.google.protobuf.Duration expiresIn_; - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public boolean hasExpiresIn() { - return expiresIn_ != null; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public com.google.protobuf.Duration getExpiresIn() { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - return getExpiresIn(); - } - - public static final int CONTENT_MD5_FIELD_NUMBER = 5; - private com.google.protobuf.ByteString contentMd5_; - /** - *
-     * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
-     * generated path.
-     * +required
-     * 
- * - * bytes content_md5 = 5; - */ - public com.google.protobuf.ByteString getContentMd5() { - return contentMd5_; - } - - public static final int FILENAME_ROOT_FIELD_NUMBER = 6; - private volatile java.lang.Object filenameRoot_; - /** - *
-     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-     * in data proxy config. This option is useful when uploading multiple files.
-     * +optional
-     * 
- * - * string filename_root = 6; - */ - public java.lang.String getFilenameRoot() { - java.lang.Object ref = filenameRoot_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filenameRoot_ = s; - return s; - } - } - /** - *
-     * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-     * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-     * in data proxy config. This option is useful when uploading multiple files.
-     * +optional
-     * 
- * - * string filename_root = 6; - */ - public com.google.protobuf.ByteString - getFilenameRootBytes() { - java.lang.Object ref = filenameRoot_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filenameRoot_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getProjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, project_); - } - if (!getDomainBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, domain_); - } - if (!getFilenameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, filename_); - } - if (expiresIn_ != null) { - output.writeMessage(4, getExpiresIn()); - } - if (!contentMd5_.isEmpty()) { - output.writeBytes(5, contentMd5_); - } - if (!getFilenameRootBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, filenameRoot_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getProjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, project_); - } - if (!getDomainBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, domain_); - } - if (!getFilenameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filename_); - } - if (expiresIn_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getExpiresIn()); - } - if (!contentMd5_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, contentMd5_); - } - if (!getFilenameRootBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, filenameRoot_); - } - 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.service.Dataproxy.CreateUploadLocationRequest)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateUploadLocationRequest other = (flyteidl.service.Dataproxy.CreateUploadLocationRequest) obj; - - if (!getProject() - .equals(other.getProject())) return false; - if (!getDomain() - .equals(other.getDomain())) return false; - if (!getFilename() - .equals(other.getFilename())) return false; - if (hasExpiresIn() != other.hasExpiresIn()) return false; - if (hasExpiresIn()) { - if (!getExpiresIn() - .equals(other.getExpiresIn())) return false; - } - if (!getContentMd5() - .equals(other.getContentMd5())) return false; - if (!getFilenameRoot() - .equals(other.getFilenameRoot())) 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(); - hash = (37 * hash) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + DOMAIN_FIELD_NUMBER; - hash = (53 * hash) + getDomain().hashCode(); - hash = (37 * hash) + FILENAME_FIELD_NUMBER; - hash = (53 * hash) + getFilename().hashCode(); - if (hasExpiresIn()) { - hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; - hash = (53 * hash) + getExpiresIn().hashCode(); - } - hash = (37 * hash) + CONTENT_MD5_FIELD_NUMBER; - hash = (53 * hash) + getContentMd5().hashCode(); - hash = (37 * hash) + FILENAME_ROOT_FIELD_NUMBER; - hash = (53 * hash) + getFilenameRoot().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest 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.service.Dataproxy.CreateUploadLocationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest 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.service.Dataproxy.CreateUploadLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest 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.service.Dataproxy.CreateUploadLocationRequest 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; - } - /** - *
-     * CreateUploadLocationRequest specified request for the CreateUploadLocation API.
-     * The implementation in data proxy service will create the s3 location with some server side configured prefixes,
-     * and then:
-     *   - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR
-     *   - project/domain/filename_root (if present)/filename (if present).
-     * 
- * - * Protobuf type {@code flyteidl.service.CreateUploadLocationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateUploadLocationRequest) - flyteidl.service.Dataproxy.CreateUploadLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateUploadLocationRequest.class, flyteidl.service.Dataproxy.CreateUploadLocationRequest.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateUploadLocationRequest.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(); - project_ = ""; - - domain_ = ""; - - filename_ = ""; - - if (expiresInBuilder_ == null) { - expiresIn_ = null; - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - contentMd5_ = com.google.protobuf.ByteString.EMPTY; - - filenameRoot_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationRequest getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateUploadLocationRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationRequest build() { - flyteidl.service.Dataproxy.CreateUploadLocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateUploadLocationRequest buildPartial() { - flyteidl.service.Dataproxy.CreateUploadLocationRequest result = new flyteidl.service.Dataproxy.CreateUploadLocationRequest(this); - result.project_ = project_; - result.domain_ = domain_; - result.filename_ = filename_; - if (expiresInBuilder_ == null) { - result.expiresIn_ = expiresIn_; - } else { - result.expiresIn_ = expiresInBuilder_.build(); - } - result.contentMd5_ = contentMd5_; - result.filenameRoot_ = filenameRoot_; - 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.service.Dataproxy.CreateUploadLocationRequest) { - return mergeFrom((flyteidl.service.Dataproxy.CreateUploadLocationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateUploadLocationRequest other) { - if (other == flyteidl.service.Dataproxy.CreateUploadLocationRequest.getDefaultInstance()) return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - onChanged(); - } - if (!other.getDomain().isEmpty()) { - domain_ = other.domain_; - onChanged(); - } - if (!other.getFilename().isEmpty()) { - filename_ = other.filename_; - onChanged(); - } - if (other.hasExpiresIn()) { - mergeExpiresIn(other.getExpiresIn()); - } - if (other.getContentMd5() != com.google.protobuf.ByteString.EMPTY) { - setContentMd5(other.getContentMd5()); - } - if (!other.getFilenameRoot().isEmpty()) { - filenameRoot_ = other.filenameRoot_; - onChanged(); - } - 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.service.Dataproxy.CreateUploadLocationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateUploadLocationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-       * Project to create the upload location for
-       * +required
-       * 
- * - * string project = 1; - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Project to create the upload location for
-       * +required
-       * 
- * - * string project = 1; - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Project to create the upload location for
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - project_ = value; - onChanged(); - return this; - } - /** - *
-       * Project to create the upload location for
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder clearProject() { - - project_ = getDefaultInstance().getProject(); - onChanged(); - return this; - } - /** - *
-       * Project to create the upload location for
-       * +required
-       * 
- * - * string project = 1; - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - project_ = value; - onChanged(); - return this; - } - - private java.lang.Object domain_ = ""; - /** - *
-       * Domain to create the upload location for.
-       * +required
-       * 
- * - * string domain = 2; - */ - public java.lang.String getDomain() { - java.lang.Object ref = domain_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - domain_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Domain to create the upload location for.
-       * +required
-       * 
- * - * string domain = 2; - */ - public com.google.protobuf.ByteString - getDomainBytes() { - java.lang.Object ref = domain_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - domain_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Domain to create the upload location for.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomain( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - domain_ = value; - onChanged(); - return this; - } - /** - *
-       * Domain to create the upload location for.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder clearDomain() { - - domain_ = getDefaultInstance().getDomain(); - onChanged(); - return this; - } - /** - *
-       * Domain to create the upload location for.
-       * +required
-       * 
- * - * string domain = 2; - */ - public Builder setDomainBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - domain_ = value; - onChanged(); - return this; - } - - private java.lang.Object filename_ = ""; - /** - *
-       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-       * +optional. By default, the service will generate a consistent name based on the provided parameters.
-       * 
- * - * string filename = 3; - */ - public java.lang.String getFilename() { - java.lang.Object ref = filename_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filename_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-       * +optional. By default, the service will generate a consistent name based on the provided parameters.
-       * 
- * - * string filename = 3; - */ - public com.google.protobuf.ByteString - getFilenameBytes() { - java.lang.Object ref = filename_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filename_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-       * +optional. By default, the service will generate a consistent name based on the provided parameters.
-       * 
- * - * string filename = 3; - */ - public Builder setFilename( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filename_ = value; - onChanged(); - return this; - } - /** - *
-       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-       * +optional. By default, the service will generate a consistent name based on the provided parameters.
-       * 
- * - * string filename = 3; - */ - public Builder clearFilename() { - - filename_ = getDefaultInstance().getFilename(); - onChanged(); - return this; - } - /** - *
-       * Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
-       * +optional. By default, the service will generate a consistent name based on the provided parameters.
-       * 
- * - * string filename = 3; - */ - public Builder setFilenameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filename_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration expiresIn_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public boolean hasExpiresIn() { - return expiresInBuilder_ != null || expiresIn_ != null; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public com.google.protobuf.Duration getExpiresIn() { - if (expiresInBuilder_ == null) { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } else { - return expiresInBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public Builder setExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresIn_ = value; - onChanged(); - } else { - expiresInBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public Builder setExpiresIn( - com.google.protobuf.Duration.Builder builderForValue) { - if (expiresInBuilder_ == null) { - expiresIn_ = builderForValue.build(); - onChanged(); - } else { - expiresInBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public Builder mergeExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (expiresIn_ != null) { - expiresIn_ = - com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); - } else { - expiresIn_ = value; - } - onChanged(); - } else { - expiresInBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public Builder clearExpiresIn() { - if (expiresInBuilder_ == null) { - expiresIn_ = null; - onChanged(); - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public com.google.protobuf.Duration.Builder getExpiresInBuilder() { - - onChanged(); - return getExpiresInFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - if (expiresInBuilder_ != null) { - return expiresInBuilder_.getMessageOrBuilder(); - } else { - return expiresIn_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getExpiresInFieldBuilder() { - if (expiresInBuilder_ == null) { - expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExpiresIn(), - getParentForChildren(), - isClean()); - expiresIn_ = null; - } - return expiresInBuilder_; - } - - private com.google.protobuf.ByteString contentMd5_ = com.google.protobuf.ByteString.EMPTY; - /** - *
-       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
-       * generated path.
-       * +required
-       * 
- * - * bytes content_md5 = 5; - */ - public com.google.protobuf.ByteString getContentMd5() { - return contentMd5_; - } - /** - *
-       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
-       * generated path.
-       * +required
-       * 
- * - * bytes content_md5 = 5; - */ - public Builder setContentMd5(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - contentMd5_ = value; - onChanged(); - return this; - } - /** - *
-       * ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
-       * generated path.
-       * +required
-       * 
- * - * bytes content_md5 = 5; - */ - public Builder clearContentMd5() { - - contentMd5_ = getDefaultInstance().getContentMd5(); - onChanged(); - return this; - } - - private java.lang.Object filenameRoot_ = ""; - /** - *
-       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-       * in data proxy config. This option is useful when uploading multiple files.
-       * +optional
-       * 
- * - * string filename_root = 6; - */ - public java.lang.String getFilenameRoot() { - java.lang.Object ref = filenameRoot_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filenameRoot_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-       * in data proxy config. This option is useful when uploading multiple files.
-       * +optional
-       * 
- * - * string filename_root = 6; - */ - public com.google.protobuf.ByteString - getFilenameRootBytes() { - java.lang.Object ref = filenameRoot_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filenameRoot_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-       * in data proxy config. This option is useful when uploading multiple files.
-       * +optional
-       * 
- * - * string filename_root = 6; - */ - public Builder setFilenameRoot( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - filenameRoot_ = value; - onChanged(); - return this; - } - /** - *
-       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-       * in data proxy config. This option is useful when uploading multiple files.
-       * +optional
-       * 
- * - * string filename_root = 6; - */ - public Builder clearFilenameRoot() { - - filenameRoot_ = getDefaultInstance().getFilenameRoot(); - onChanged(); - return this; - } - /** - *
-       * If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
-       * this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
-       * in data proxy config. This option is useful when uploading multiple files.
-       * +optional
-       * 
- * - * string filename_root = 6; - */ - public Builder setFilenameRootBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - filenameRoot_ = value; - onChanged(); - return this; - } - @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.service.CreateUploadLocationRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateUploadLocationRequest) - private static final flyteidl.service.Dataproxy.CreateUploadLocationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateUploadLocationRequest(); - } - - public static flyteidl.service.Dataproxy.CreateUploadLocationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateUploadLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateUploadLocationRequest(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.service.Dataproxy.CreateUploadLocationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface CreateDownloadLocationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLocationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 1; - */ - java.lang.String getNativeUrl(); - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 1; - */ - com.google.protobuf.ByteString - getNativeUrlBytes(); - - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - boolean hasExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - com.google.protobuf.Duration getExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); - } - /** - *
-   * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API.
-   * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLocationRequest} - */ - @java.lang.Deprecated public static final class CreateDownloadLocationRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLocationRequest) - CreateDownloadLocationRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDownloadLocationRequest.newBuilder() to construct. - private CreateDownloadLocationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDownloadLocationRequest() { - nativeUrl_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDownloadLocationRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - nativeUrl_ = s; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (expiresIn_ != null) { - subBuilder = expiresIn_.toBuilder(); - } - expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresIn_); - expiresIn_ = 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.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLocationRequest.class, flyteidl.service.Dataproxy.CreateDownloadLocationRequest.Builder.class); - } - - public static final int NATIVE_URL_FIELD_NUMBER = 1; - private volatile java.lang.Object nativeUrl_; - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 1; - */ - public java.lang.String getNativeUrl() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nativeUrl_ = s; - return s; - } - } - /** - *
-     * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-     * 
- * - * string native_url = 1; - */ - public com.google.protobuf.ByteString - getNativeUrlBytes() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPIRES_IN_FIELD_NUMBER = 2; - private com.google.protobuf.Duration expiresIn_; - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public boolean hasExpiresIn() { - return expiresIn_ != null; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration getExpiresIn() { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - return getExpiresIn(); - } - - 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 (!getNativeUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nativeUrl_); - } - if (expiresIn_ != null) { - output.writeMessage(2, getExpiresIn()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNativeUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nativeUrl_); - } - if (expiresIn_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpiresIn()); - } - 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.service.Dataproxy.CreateDownloadLocationRequest)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateDownloadLocationRequest other = (flyteidl.service.Dataproxy.CreateDownloadLocationRequest) obj; - - if (!getNativeUrl() - .equals(other.getNativeUrl())) return false; - if (hasExpiresIn() != other.hasExpiresIn()) return false; - if (hasExpiresIn()) { - if (!getExpiresIn() - .equals(other.getExpiresIn())) 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(); - hash = (37 * hash) + NATIVE_URL_FIELD_NUMBER; - hash = (53 * hash) + getNativeUrl().hashCode(); - if (hasExpiresIn()) { - hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; - hash = (53 * hash) + getExpiresIn().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest 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.service.Dataproxy.CreateDownloadLocationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest 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.service.Dataproxy.CreateDownloadLocationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest 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.service.Dataproxy.CreateDownloadLocationRequest 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; - } - /** - *
-     * CreateDownloadLocationRequest specified request for the CreateDownloadLocation API.
-     * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLocationRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLocationRequest) - flyteidl.service.Dataproxy.CreateDownloadLocationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLocationRequest.class, flyteidl.service.Dataproxy.CreateDownloadLocationRequest.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateDownloadLocationRequest.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(); - nativeUrl_ = ""; - - if (expiresInBuilder_ == null) { - expiresIn_ = null; - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateDownloadLocationRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationRequest build() { - flyteidl.service.Dataproxy.CreateDownloadLocationRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationRequest buildPartial() { - flyteidl.service.Dataproxy.CreateDownloadLocationRequest result = new flyteidl.service.Dataproxy.CreateDownloadLocationRequest(this); - result.nativeUrl_ = nativeUrl_; - if (expiresInBuilder_ == null) { - result.expiresIn_ = expiresIn_; - } else { - result.expiresIn_ = expiresInBuilder_.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.service.Dataproxy.CreateDownloadLocationRequest) { - return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLocationRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLocationRequest other) { - if (other == flyteidl.service.Dataproxy.CreateDownloadLocationRequest.getDefaultInstance()) return this; - if (!other.getNativeUrl().isEmpty()) { - nativeUrl_ = other.nativeUrl_; - onChanged(); - } - if (other.hasExpiresIn()) { - mergeExpiresIn(other.getExpiresIn()); - } - 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.service.Dataproxy.CreateDownloadLocationRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLocationRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object nativeUrl_ = ""; - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 1; - */ - public java.lang.String getNativeUrl() { - java.lang.Object ref = nativeUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nativeUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 1; - */ - public com.google.protobuf.ByteString - getNativeUrlBytes() { - java.lang.Object ref = nativeUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nativeUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 1; - */ - public Builder setNativeUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nativeUrl_ = value; - onChanged(); - return this; - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 1; - */ - public Builder clearNativeUrl() { - - nativeUrl_ = getDefaultInstance().getNativeUrl(); - onChanged(); - return this; - } - /** - *
-       * NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
-       * 
- * - * string native_url = 1; - */ - public Builder setNativeUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nativeUrl_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Duration expiresIn_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public boolean hasExpiresIn() { - return expiresInBuilder_ != null || expiresIn_ != null; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration getExpiresIn() { - if (expiresInBuilder_ == null) { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } else { - return expiresInBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder setExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresIn_ = value; - onChanged(); - } else { - expiresInBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder setExpiresIn( - com.google.protobuf.Duration.Builder builderForValue) { - if (expiresInBuilder_ == null) { - expiresIn_ = builderForValue.build(); - onChanged(); - } else { - expiresInBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder mergeExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (expiresIn_ != null) { - expiresIn_ = - com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); - } else { - expiresIn_ = value; - } - onChanged(); - } else { - expiresInBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder clearExpiresIn() { - if (expiresInBuilder_ == null) { - expiresIn_ = null; - onChanged(); - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration.Builder getExpiresInBuilder() { - - onChanged(); - return getExpiresInFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - if (expiresInBuilder_ != null) { - return expiresInBuilder_.getMessageOrBuilder(); - } else { - return expiresIn_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getExpiresInFieldBuilder() { - if (expiresInBuilder_ == null) { - expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExpiresIn(), - getParentForChildren(), - isClean()); - expiresIn_ = null; - } - return expiresInBuilder_; - } - @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.service.CreateDownloadLocationRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationRequest) - private static final flyteidl.service.Dataproxy.CreateDownloadLocationRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLocationRequest(); - } - - public static flyteidl.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDownloadLocationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDownloadLocationRequest(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.service.Dataproxy.CreateDownloadLocationRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface CreateDownloadLocationResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLocationResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - java.lang.String getSignedUrl(); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - com.google.protobuf.ByteString - getSignedUrlBytes(); - - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - boolean hasExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - } - /** - * Protobuf type {@code flyteidl.service.CreateDownloadLocationResponse} - */ - @java.lang.Deprecated public static final class CreateDownloadLocationResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLocationResponse) - CreateDownloadLocationResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDownloadLocationResponse.newBuilder() to construct. - private CreateDownloadLocationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDownloadLocationResponse() { - signedUrl_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDownloadLocationResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - signedUrl_ = s; - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = 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.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLocationResponse.class, flyteidl.service.Dataproxy.CreateDownloadLocationResponse.Builder.class); - } - - public static final int SIGNED_URL_FIELD_NUMBER = 1; - private volatile java.lang.Object signedUrl_; - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - public java.lang.String getSignedUrl() { - java.lang.Object ref = signedUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedUrl_ = s; - return s; - } - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes() { - java.lang.Object ref = signedUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * ExpiresAt defines when will the signed URL expires.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - 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 (!getSignedUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_); - } - if (expiresAt_ != null) { - output.writeMessage(2, getExpiresAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSignedUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, signedUrl_); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpiresAt()); - } - 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.service.Dataproxy.CreateDownloadLocationResponse)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateDownloadLocationResponse other = (flyteidl.service.Dataproxy.CreateDownloadLocationResponse) obj; - - if (!getSignedUrl() - .equals(other.getSignedUrl())) return false; - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) 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(); - hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; - hash = (53 * hash) + getSignedUrl().hashCode(); - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse 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.service.Dataproxy.CreateDownloadLocationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse 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.service.Dataproxy.CreateDownloadLocationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse 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.service.Dataproxy.CreateDownloadLocationResponse 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; - } - /** - * Protobuf type {@code flyteidl.service.CreateDownloadLocationResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLocationResponse) - flyteidl.service.Dataproxy.CreateDownloadLocationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLocationResponse.class, flyteidl.service.Dataproxy.CreateDownloadLocationResponse.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateDownloadLocationResponse.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(); - signedUrl_ = ""; - - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateDownloadLocationResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationResponse build() { - flyteidl.service.Dataproxy.CreateDownloadLocationResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLocationResponse buildPartial() { - flyteidl.service.Dataproxy.CreateDownloadLocationResponse result = new flyteidl.service.Dataproxy.CreateDownloadLocationResponse(this); - result.signedUrl_ = signedUrl_; - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.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.service.Dataproxy.CreateDownloadLocationResponse) { - return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLocationResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLocationResponse other) { - if (other == flyteidl.service.Dataproxy.CreateDownloadLocationResponse.getDefaultInstance()) return this; - if (!other.getSignedUrl().isEmpty()) { - signedUrl_ = other.signedUrl_; - onChanged(); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - 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.service.Dataproxy.CreateDownloadLocationResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLocationResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object signedUrl_ = ""; - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public java.lang.String getSignedUrl() { - java.lang.Object ref = signedUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes() { - java.lang.Object ref = signedUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder setSignedUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signedUrl_ = value; - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder clearSignedUrl() { - - signedUrl_ = getDefaultInstance().getSignedUrl(); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * string signed_url = 1; - */ - public Builder setSignedUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signedUrl_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expires.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - @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.service.CreateDownloadLocationResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLocationResponse) - private static final flyteidl.service.Dataproxy.CreateDownloadLocationResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLocationResponse(); - } - - public static flyteidl.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDownloadLocationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDownloadLocationResponse(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.service.Dataproxy.CreateDownloadLocationResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateDownloadLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * ArtifactType of the artifact requested.
-     * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - int getArtifactTypeValue(); - /** - *
-     * ArtifactType of the artifact requested.
-     * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - flyteidl.service.Dataproxy.ArtifactType getArtifactType(); - - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - boolean hasExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - com.google.protobuf.Duration getExpiresIn(); - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder(); - - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - boolean hasNodeExecutionId(); - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId(); - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder(); - - public flyteidl.service.Dataproxy.CreateDownloadLinkRequest.SourceCase getSourceCase(); - } - /** - *
-   * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)
-   * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLinkRequest} - */ - public static final class CreateDownloadLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLinkRequest) - CreateDownloadLinkRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDownloadLinkRequest.newBuilder() to construct. - private CreateDownloadLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDownloadLinkRequest() { - artifactType_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDownloadLinkRequest( - 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 8: { - int rawValue = input.readEnum(); - - artifactType_ = rawValue; - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (expiresIn_ != null) { - subBuilder = expiresIn_.toBuilder(); - } - expiresIn_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresIn_); - expiresIn_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder subBuilder = null; - if (sourceCase_ == 3) { - subBuilder = ((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_).toBuilder(); - } - source_ = - input.readMessage(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 3; - 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.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLinkRequest.class, flyteidl.service.Dataproxy.CreateDownloadLinkRequest.Builder.class); - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - public enum SourceCase - implements com.google.protobuf.Internal.EnumLite { - NODE_EXECUTION_ID(3), - SOURCE_NOT_SET(0); - private final int value; - private SourceCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static SourceCase valueOf(int value) { - return forNumber(value); - } - - public static SourceCase forNumber(int value) { - switch (value) { - case 3: return NODE_EXECUTION_ID; - case 0: return SOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); - } - - public static final int ARTIFACT_TYPE_FIELD_NUMBER = 1; - private int artifactType_; - /** - *
-     * ArtifactType of the artifact requested.
-     * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public int getArtifactTypeValue() { - return artifactType_; - } - /** - *
-     * ArtifactType of the artifact requested.
-     * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public flyteidl.service.Dataproxy.ArtifactType getArtifactType() { - @SuppressWarnings("deprecation") - flyteidl.service.Dataproxy.ArtifactType result = flyteidl.service.Dataproxy.ArtifactType.valueOf(artifactType_); - return result == null ? flyteidl.service.Dataproxy.ArtifactType.UNRECOGNIZED : result; - } - - public static final int EXPIRES_IN_FIELD_NUMBER = 2; - private com.google.protobuf.Duration expiresIn_; - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public boolean hasExpiresIn() { - return expiresIn_ != null; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration getExpiresIn() { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - /** - *
-     * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-     * exceeds the platform allowed max.
-     * +optional. The default value comes from a global config.
-     * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - return getExpiresIn(); - } - - public static final int NODE_EXECUTION_ID_FIELD_NUMBER = 3; - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public boolean hasNodeExecutionId() { - return sourceCase_ == 3; - } - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (sourceCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - /** - *
-     * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-     * most recent attempt of the task.
-     * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if (sourceCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.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 (artifactType_ != flyteidl.service.Dataproxy.ArtifactType.ARTIFACT_TYPE_UNDEFINED.getNumber()) { - output.writeEnum(1, artifactType_); - } - if (expiresIn_ != null) { - output.writeMessage(2, getExpiresIn()); - } - if (sourceCase_ == 3) { - output.writeMessage(3, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (artifactType_ != flyteidl.service.Dataproxy.ArtifactType.ARTIFACT_TYPE_UNDEFINED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, artifactType_); - } - if (expiresIn_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpiresIn()); - } - if (sourceCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_); - } - 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.service.Dataproxy.CreateDownloadLinkRequest)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateDownloadLinkRequest other = (flyteidl.service.Dataproxy.CreateDownloadLinkRequest) obj; - - if (artifactType_ != other.artifactType_) return false; - if (hasExpiresIn() != other.hasExpiresIn()) return false; - if (hasExpiresIn()) { - if (!getExpiresIn() - .equals(other.getExpiresIn())) return false; - } - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 3: - if (!getNodeExecutionId() - .equals(other.getNodeExecutionId())) 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(); - hash = (37 * hash) + ARTIFACT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + artifactType_; - if (hasExpiresIn()) { - hash = (37 * hash) + EXPIRES_IN_FIELD_NUMBER; - hash = (53 * hash) + getExpiresIn().hashCode(); - } - switch (sourceCase_) { - case 3: - hash = (37 * hash) + NODE_EXECUTION_ID_FIELD_NUMBER; - hash = (53 * hash) + getNodeExecutionId().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest 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.service.Dataproxy.CreateDownloadLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest 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.service.Dataproxy.CreateDownloadLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest 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.service.Dataproxy.CreateDownloadLinkRequest 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; - } - /** - *
-     * CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)
-     * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLinkRequest) - flyteidl.service.Dataproxy.CreateDownloadLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLinkRequest.class, flyteidl.service.Dataproxy.CreateDownloadLinkRequest.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateDownloadLinkRequest.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(); - artifactType_ = 0; - - if (expiresInBuilder_ == null) { - expiresIn_ = null; - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateDownloadLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkRequest build() { - flyteidl.service.Dataproxy.CreateDownloadLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkRequest buildPartial() { - flyteidl.service.Dataproxy.CreateDownloadLinkRequest result = new flyteidl.service.Dataproxy.CreateDownloadLinkRequest(this); - result.artifactType_ = artifactType_; - if (expiresInBuilder_ == null) { - result.expiresIn_ = expiresIn_; - } else { - result.expiresIn_ = expiresInBuilder_.build(); - } - if (sourceCase_ == 3) { - if (nodeExecutionIdBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = nodeExecutionIdBuilder_.build(); - } - } - result.sourceCase_ = sourceCase_; - 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.service.Dataproxy.CreateDownloadLinkRequest) { - return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLinkRequest other) { - if (other == flyteidl.service.Dataproxy.CreateDownloadLinkRequest.getDefaultInstance()) return this; - if (other.artifactType_ != 0) { - setArtifactTypeValue(other.getArtifactTypeValue()); - } - if (other.hasExpiresIn()) { - mergeExpiresIn(other.getExpiresIn()); - } - switch (other.getSourceCase()) { - case NODE_EXECUTION_ID: { - mergeNodeExecutionId(other.getNodeExecutionId()); - break; - } - case SOURCE_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.service.Dataproxy.CreateDownloadLinkRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLinkRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int sourceCase_ = 0; - private java.lang.Object source_; - public SourceCase - getSourceCase() { - return SourceCase.forNumber( - sourceCase_); - } - - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; - onChanged(); - return this; - } - - - private int artifactType_ = 0; - /** - *
-       * ArtifactType of the artifact requested.
-       * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public int getArtifactTypeValue() { - return artifactType_; - } - /** - *
-       * ArtifactType of the artifact requested.
-       * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public Builder setArtifactTypeValue(int value) { - artifactType_ = value; - onChanged(); - return this; - } - /** - *
-       * ArtifactType of the artifact requested.
-       * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public flyteidl.service.Dataproxy.ArtifactType getArtifactType() { - @SuppressWarnings("deprecation") - flyteidl.service.Dataproxy.ArtifactType result = flyteidl.service.Dataproxy.ArtifactType.valueOf(artifactType_); - return result == null ? flyteidl.service.Dataproxy.ArtifactType.UNRECOGNIZED : result; - } - /** - *
-       * ArtifactType of the artifact requested.
-       * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public Builder setArtifactType(flyteidl.service.Dataproxy.ArtifactType value) { - if (value == null) { - throw new NullPointerException(); - } - - artifactType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * ArtifactType of the artifact requested.
-       * 
- * - * .flyteidl.service.ArtifactType artifact_type = 1; - */ - public Builder clearArtifactType() { - - artifactType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration expiresIn_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> expiresInBuilder_; - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public boolean hasExpiresIn() { - return expiresInBuilder_ != null || expiresIn_ != null; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration getExpiresIn() { - if (expiresInBuilder_ == null) { - return expiresIn_ == null ? com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } else { - return expiresInBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder setExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresIn_ = value; - onChanged(); - } else { - expiresInBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder setExpiresIn( - com.google.protobuf.Duration.Builder builderForValue) { - if (expiresInBuilder_ == null) { - expiresIn_ = builderForValue.build(); - onChanged(); - } else { - expiresInBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder mergeExpiresIn(com.google.protobuf.Duration value) { - if (expiresInBuilder_ == null) { - if (expiresIn_ != null) { - expiresIn_ = - com.google.protobuf.Duration.newBuilder(expiresIn_).mergeFrom(value).buildPartial(); - } else { - expiresIn_ = value; - } - onChanged(); - } else { - expiresInBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public Builder clearExpiresIn() { - if (expiresInBuilder_ == null) { - expiresIn_ = null; - onChanged(); - } else { - expiresIn_ = null; - expiresInBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.Duration.Builder getExpiresInBuilder() { - - onChanged(); - return getExpiresInFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - public com.google.protobuf.DurationOrBuilder getExpiresInOrBuilder() { - if (expiresInBuilder_ != null) { - return expiresInBuilder_.getMessageOrBuilder(); - } else { - return expiresIn_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : expiresIn_; - } - } - /** - *
-       * ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
-       * exceeds the platform allowed max.
-       * +optional. The default value comes from a global config.
-       * 
- * - * .google.protobuf.Duration expires_in = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getExpiresInFieldBuilder() { - if (expiresInBuilder_ == null) { - expiresInBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getExpiresIn(), - getParentForChildren(), - isClean()); - expiresIn_ = null; - } - return expiresInBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> nodeExecutionIdBuilder_; - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public boolean hasNodeExecutionId() { - return sourceCase_ == 3; - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier getNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - if (sourceCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } else { - if (sourceCase_ == 3) { - return nodeExecutionIdBuilder_.getMessage(); - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public Builder setNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(value); - } - sourceCase_ = 3; - return this; - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public Builder setNodeExecutionId( - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder builderForValue) { - if (nodeExecutionIdBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - nodeExecutionIdBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 3; - return this; - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public Builder mergeNodeExecutionId(flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier value) { - if (nodeExecutionIdBuilder_ == null) { - if (sourceCase_ == 3 && - source_ != flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance()) { - source_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.newBuilder((flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_) - .mergeFrom(value).buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 3) { - nodeExecutionIdBuilder_.mergeFrom(value); - } - nodeExecutionIdBuilder_.setMessage(value); - } - sourceCase_ = 3; - return this; - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public Builder clearNodeExecutionId() { - if (nodeExecutionIdBuilder_ == null) { - if (sourceCase_ == 3) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 3) { - sourceCase_ = 0; - source_ = null; - } - nodeExecutionIdBuilder_.clear(); - } - return this; - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder getNodeExecutionIdBuilder() { - return getNodeExecutionIdFieldBuilder().getBuilder(); - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - public flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder getNodeExecutionIdOrBuilder() { - if ((sourceCase_ == 3) && (nodeExecutionIdBuilder_ != null)) { - return nodeExecutionIdBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 3) { - return (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_; - } - return flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - } - /** - *
-       * NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
-       * most recent attempt of the task.
-       * 
- * - * .flyteidl.core.NodeExecutionIdentifier node_execution_id = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder> - getNodeExecutionIdFieldBuilder() { - if (nodeExecutionIdBuilder_ == null) { - if (!(sourceCase_ == 3)) { - source_ = flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.getDefaultInstance(); - } - nodeExecutionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier.Builder, flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifierOrBuilder>( - (flyteidl.core.IdentifierOuterClass.NodeExecutionIdentifier) source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 3; - onChanged();; - return nodeExecutionIdBuilder_; - } - @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.service.CreateDownloadLinkRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkRequest) - private static final flyteidl.service.Dataproxy.CreateDownloadLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLinkRequest(); - } - - public static flyteidl.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDownloadLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDownloadLinkRequest(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.service.Dataproxy.CreateDownloadLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface CreateDownloadLinkResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.CreateDownloadLinkResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated java.util.List - getSignedUrlList(); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated int getSignedUrlCount(); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated java.lang.String getSignedUrl(int index); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getSignedUrlBytes(int index); - - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated boolean hasExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - boolean hasPreSignedUrls(); - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls(); - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder(); - } - /** - *
-   * CreateDownloadLinkResponse defines the response for the generated links
-   * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLinkResponse} - */ - public static final class CreateDownloadLinkResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.CreateDownloadLinkResponse) - CreateDownloadLinkResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateDownloadLinkResponse.newBuilder() to construct. - private CreateDownloadLinkResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDownloadLinkResponse() { - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateDownloadLinkResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signedUrl_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signedUrl_.add(s); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - flyteidl.service.Dataproxy.PreSignedURLs.Builder subBuilder = null; - if (preSignedUrls_ != null) { - subBuilder = preSignedUrls_.toBuilder(); - } - preSignedUrls_ = input.readMessage(flyteidl.service.Dataproxy.PreSignedURLs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(preSignedUrls_); - preSignedUrls_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signedUrl_ = signedUrl_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLinkResponse.class, flyteidl.service.Dataproxy.CreateDownloadLinkResponse.Builder.class); - } - - private int bitField0_; - public static final int SIGNED_URL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList signedUrl_; - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getSignedUrlList() { - return signedUrl_; - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public int getSignedUrlCount() { - return signedUrl_.size(); - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getSignedUrl(int index) { - return signedUrl_.get(index); - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getSignedUrlBytes(int index) { - return signedUrl_.getByteString(index); - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - public static final int PRE_SIGNED_URLS_FIELD_NUMBER = 3; - private flyteidl.service.Dataproxy.PreSignedURLs preSignedUrls_; - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public boolean hasPreSignedUrls() { - return preSignedUrls_ != null; - } - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { - return preSignedUrls_ == null ? flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; - } - /** - *
-     * New wrapper object containing the signed urls and expiration time
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { - return getPreSignedUrls(); - } - - 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 { - for (int i = 0; i < signedUrl_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_.getRaw(i)); - } - if (expiresAt_ != null) { - output.writeMessage(2, getExpiresAt()); - } - if (preSignedUrls_ != null) { - output.writeMessage(3, getPreSignedUrls()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < signedUrl_.size(); i++) { - dataSize += computeStringSizeNoTag(signedUrl_.getRaw(i)); - } - size += dataSize; - size += 1 * getSignedUrlList().size(); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpiresAt()); - } - if (preSignedUrls_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPreSignedUrls()); - } - 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.service.Dataproxy.CreateDownloadLinkResponse)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.CreateDownloadLinkResponse other = (flyteidl.service.Dataproxy.CreateDownloadLinkResponse) obj; - - if (!getSignedUrlList() - .equals(other.getSignedUrlList())) return false; - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) return false; - } - if (hasPreSignedUrls() != other.hasPreSignedUrls()) return false; - if (hasPreSignedUrls()) { - if (!getPreSignedUrls() - .equals(other.getPreSignedUrls())) 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 (getSignedUrlCount() > 0) { - hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; - hash = (53 * hash) + getSignedUrlList().hashCode(); - } - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - if (hasPreSignedUrls()) { - hash = (37 * hash) + PRE_SIGNED_URLS_FIELD_NUMBER; - hash = (53 * hash) + getPreSignedUrls().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse 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.service.Dataproxy.CreateDownloadLinkResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse 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.service.Dataproxy.CreateDownloadLinkResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse 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.service.Dataproxy.CreateDownloadLinkResponse 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; - } - /** - *
-     * CreateDownloadLinkResponse defines the response for the generated links
-     * 
- * - * Protobuf type {@code flyteidl.service.CreateDownloadLinkResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.CreateDownloadLinkResponse) - flyteidl.service.Dataproxy.CreateDownloadLinkResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.CreateDownloadLinkResponse.class, flyteidl.service.Dataproxy.CreateDownloadLinkResponse.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.CreateDownloadLinkResponse.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(); - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - if (preSignedUrlsBuilder_ == null) { - preSignedUrls_ = null; - } else { - preSignedUrls_ = null; - preSignedUrlsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.CreateDownloadLinkResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkResponse build() { - flyteidl.service.Dataproxy.CreateDownloadLinkResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.CreateDownloadLinkResponse buildPartial() { - flyteidl.service.Dataproxy.CreateDownloadLinkResponse result = new flyteidl.service.Dataproxy.CreateDownloadLinkResponse(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - signedUrl_ = signedUrl_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signedUrl_ = signedUrl_; - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.build(); - } - if (preSignedUrlsBuilder_ == null) { - result.preSignedUrls_ = preSignedUrls_; - } else { - result.preSignedUrls_ = preSignedUrlsBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.service.Dataproxy.CreateDownloadLinkResponse) { - return mergeFrom((flyteidl.service.Dataproxy.CreateDownloadLinkResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.CreateDownloadLinkResponse other) { - if (other == flyteidl.service.Dataproxy.CreateDownloadLinkResponse.getDefaultInstance()) return this; - if (!other.signedUrl_.isEmpty()) { - if (signedUrl_.isEmpty()) { - signedUrl_ = other.signedUrl_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignedUrlIsMutable(); - signedUrl_.addAll(other.signedUrl_); - } - onChanged(); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - if (other.hasPreSignedUrls()) { - mergePreSignedUrls(other.getPreSignedUrls()); - } - 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.service.Dataproxy.CreateDownloadLinkResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.CreateDownloadLinkResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSignedUrlIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signedUrl_ = new com.google.protobuf.LazyStringArrayList(signedUrl_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ProtocolStringList - getSignedUrlList() { - return signedUrl_.getUnmodifiableView(); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public int getSignedUrlCount() { - return signedUrl_.size(); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public java.lang.String getSignedUrl(int index) { - return signedUrl_.get(index); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getSignedUrlBytes(int index) { - return signedUrl_.getByteString(index); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setSignedUrl( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignedUrlIsMutable(); - signedUrl_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addSignedUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignedUrlIsMutable(); - signedUrl_.add(value); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addAllSignedUrl( - java.lang.Iterable values) { - ensureSignedUrlIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signedUrl_); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearSignedUrl() { - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1 [deprecated = true]; - */ - @java.lang.Deprecated public Builder addSignedUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSignedUrlIsMutable(); - signedUrl_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - @java.lang.Deprecated public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2 [deprecated = true]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - - private flyteidl.service.Dataproxy.PreSignedURLs preSignedUrls_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> preSignedUrlsBuilder_; - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public boolean hasPreSignedUrls() { - return preSignedUrlsBuilder_ != null || preSignedUrls_ != null; - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { - if (preSignedUrlsBuilder_ == null) { - return preSignedUrls_ == null ? flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; - } else { - return preSignedUrlsBuilder_.getMessage(); - } - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public Builder setPreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { - if (preSignedUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - preSignedUrls_ = value; - onChanged(); - } else { - preSignedUrlsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public Builder setPreSignedUrls( - flyteidl.service.Dataproxy.PreSignedURLs.Builder builderForValue) { - if (preSignedUrlsBuilder_ == null) { - preSignedUrls_ = builderForValue.build(); - onChanged(); - } else { - preSignedUrlsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public Builder mergePreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { - if (preSignedUrlsBuilder_ == null) { - if (preSignedUrls_ != null) { - preSignedUrls_ = - flyteidl.service.Dataproxy.PreSignedURLs.newBuilder(preSignedUrls_).mergeFrom(value).buildPartial(); - } else { - preSignedUrls_ = value; - } - onChanged(); - } else { - preSignedUrlsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public Builder clearPreSignedUrls() { - if (preSignedUrlsBuilder_ == null) { - preSignedUrls_ = null; - onChanged(); - } else { - preSignedUrls_ = null; - preSignedUrlsBuilder_ = null; - } - - return this; - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public flyteidl.service.Dataproxy.PreSignedURLs.Builder getPreSignedUrlsBuilder() { - - onChanged(); - return getPreSignedUrlsFieldBuilder().getBuilder(); - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { - if (preSignedUrlsBuilder_ != null) { - return preSignedUrlsBuilder_.getMessageOrBuilder(); - } else { - return preSignedUrls_ == null ? - flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance() : preSignedUrls_; - } - } - /** - *
-       * New wrapper object containing the signed urls and expiration time
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> - getPreSignedUrlsFieldBuilder() { - if (preSignedUrlsBuilder_ == null) { - preSignedUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder>( - getPreSignedUrls(), - getParentForChildren(), - isClean()); - preSignedUrls_ = null; - } - return preSignedUrlsBuilder_; - } - @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.service.CreateDownloadLinkResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.CreateDownloadLinkResponse) - private static final flyteidl.service.Dataproxy.CreateDownloadLinkResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.CreateDownloadLinkResponse(); - } - - public static flyteidl.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDownloadLinkResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateDownloadLinkResponse(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.service.Dataproxy.CreateDownloadLinkResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PreSignedURLsOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.PreSignedURLs) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - java.util.List - getSignedUrlList(); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - int getSignedUrlCount(); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - java.lang.String getSignedUrl(int index); - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - com.google.protobuf.ByteString - getSignedUrlBytes(int index); - - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - boolean hasExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - com.google.protobuf.Timestamp getExpiresAt(); - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder(); - } - /** - *
-   * Wrapper object since the message is shared across this and the GetDataResponse
-   * 
- * - * Protobuf type {@code flyteidl.service.PreSignedURLs} - */ - public static final class PreSignedURLs extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.PreSignedURLs) - PreSignedURLsOrBuilder { - private static final long serialVersionUID = 0L; - // Use PreSignedURLs.newBuilder() to construct. - private PreSignedURLs(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PreSignedURLs() { - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PreSignedURLs( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - signedUrl_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - signedUrl_.add(s); - break; - } - case 18: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (expiresAt_ != null) { - subBuilder = expiresAt_.toBuilder(); - } - expiresAt_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(expiresAt_); - expiresAt_ = 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 { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - signedUrl_ = signedUrl_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.PreSignedURLs.class, flyteidl.service.Dataproxy.PreSignedURLs.Builder.class); - } - - private int bitField0_; - public static final int SIGNED_URL_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList signedUrl_; - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - public com.google.protobuf.ProtocolStringList - getSignedUrlList() { - return signedUrl_; - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - public int getSignedUrlCount() { - return signedUrl_.size(); - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - public java.lang.String getSignedUrl(int index) { - return signedUrl_.get(index); - } - /** - *
-     * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-     * 
- * - * repeated string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes(int index) { - return signedUrl_.getByteString(index); - } - - public static final int EXPIRES_AT_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp expiresAt_; - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public boolean hasExpiresAt() { - return expiresAt_ != null; - } - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - /** - *
-     * ExpiresAt defines when will the signed URL expire.
-     * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - return getExpiresAt(); - } - - 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 { - for (int i = 0; i < signedUrl_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, signedUrl_.getRaw(i)); - } - if (expiresAt_ != null) { - output.writeMessage(2, getExpiresAt()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < signedUrl_.size(); i++) { - dataSize += computeStringSizeNoTag(signedUrl_.getRaw(i)); - } - size += dataSize; - size += 1 * getSignedUrlList().size(); - } - if (expiresAt_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpiresAt()); - } - 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.service.Dataproxy.PreSignedURLs)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.PreSignedURLs other = (flyteidl.service.Dataproxy.PreSignedURLs) obj; - - if (!getSignedUrlList() - .equals(other.getSignedUrlList())) return false; - if (hasExpiresAt() != other.hasExpiresAt()) return false; - if (hasExpiresAt()) { - if (!getExpiresAt() - .equals(other.getExpiresAt())) 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 (getSignedUrlCount() > 0) { - hash = (37 * hash) + SIGNED_URL_FIELD_NUMBER; - hash = (53 * hash) + getSignedUrlList().hashCode(); - } - if (hasExpiresAt()) { - hash = (37 * hash) + EXPIRES_AT_FIELD_NUMBER; - hash = (53 * hash) + getExpiresAt().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.PreSignedURLs parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.PreSignedURLs 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.service.Dataproxy.PreSignedURLs parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.PreSignedURLs 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.service.Dataproxy.PreSignedURLs parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.PreSignedURLs 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.service.Dataproxy.PreSignedURLs 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; - } - /** - *
-     * Wrapper object since the message is shared across this and the GetDataResponse
-     * 
- * - * Protobuf type {@code flyteidl.service.PreSignedURLs} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.PreSignedURLs) - flyteidl.service.Dataproxy.PreSignedURLsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.PreSignedURLs.class, flyteidl.service.Dataproxy.PreSignedURLs.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.PreSignedURLs.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(); - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_PreSignedURLs_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.PreSignedURLs getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.PreSignedURLs build() { - flyteidl.service.Dataproxy.PreSignedURLs result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.PreSignedURLs buildPartial() { - flyteidl.service.Dataproxy.PreSignedURLs result = new flyteidl.service.Dataproxy.PreSignedURLs(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((bitField0_ & 0x00000001) != 0)) { - signedUrl_ = signedUrl_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.signedUrl_ = signedUrl_; - if (expiresAtBuilder_ == null) { - result.expiresAt_ = expiresAt_; - } else { - result.expiresAt_ = expiresAtBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - 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.service.Dataproxy.PreSignedURLs) { - return mergeFrom((flyteidl.service.Dataproxy.PreSignedURLs)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.PreSignedURLs other) { - if (other == flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance()) return this; - if (!other.signedUrl_.isEmpty()) { - if (signedUrl_.isEmpty()) { - signedUrl_ = other.signedUrl_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSignedUrlIsMutable(); - signedUrl_.addAll(other.signedUrl_); - } - onChanged(); - } - if (other.hasExpiresAt()) { - mergeExpiresAt(other.getExpiresAt()); - } - 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.service.Dataproxy.PreSignedURLs parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.PreSignedURLs) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureSignedUrlIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - signedUrl_ = new com.google.protobuf.LazyStringArrayList(signedUrl_); - bitField0_ |= 0x00000001; - } - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public com.google.protobuf.ProtocolStringList - getSignedUrlList() { - return signedUrl_.getUnmodifiableView(); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public int getSignedUrlCount() { - return signedUrl_.size(); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public java.lang.String getSignedUrl(int index) { - return signedUrl_.get(index); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public com.google.protobuf.ByteString - getSignedUrlBytes(int index) { - return signedUrl_.getByteString(index); - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public Builder setSignedUrl( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignedUrlIsMutable(); - signedUrl_.set(index, value); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public Builder addSignedUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignedUrlIsMutable(); - signedUrl_.add(value); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public Builder addAllSignedUrl( - java.lang.Iterable values) { - ensureSignedUrlIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, signedUrl_); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public Builder clearSignedUrl() { - signedUrl_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
-       * 
- * - * repeated string signed_url = 1; - */ - public Builder addSignedUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSignedUrlIsMutable(); - signedUrl_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp expiresAt_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expiresAtBuilder_; - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public boolean hasExpiresAt() { - return expiresAtBuilder_ != null || expiresAt_ != null; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp getExpiresAt() { - if (expiresAtBuilder_ == null) { - return expiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } else { - return expiresAtBuilder_.getMessage(); - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder setExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expiresAt_ = value; - onChanged(); - } else { - expiresAtBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder setExpiresAt( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expiresAtBuilder_ == null) { - expiresAt_ = builderForValue.build(); - onChanged(); - } else { - expiresAtBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder mergeExpiresAt(com.google.protobuf.Timestamp value) { - if (expiresAtBuilder_ == null) { - if (expiresAt_ != null) { - expiresAt_ = - com.google.protobuf.Timestamp.newBuilder(expiresAt_).mergeFrom(value).buildPartial(); - } else { - expiresAt_ = value; - } - onChanged(); - } else { - expiresAtBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public Builder clearExpiresAt() { - if (expiresAtBuilder_ == null) { - expiresAt_ = null; - onChanged(); - } else { - expiresAt_ = null; - expiresAtBuilder_ = null; - } - - return this; - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.Timestamp.Builder getExpiresAtBuilder() { - - onChanged(); - return getExpiresAtFieldBuilder().getBuilder(); - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - public com.google.protobuf.TimestampOrBuilder getExpiresAtOrBuilder() { - if (expiresAtBuilder_ != null) { - return expiresAtBuilder_.getMessageOrBuilder(); - } else { - return expiresAt_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expiresAt_; - } - } - /** - *
-       * ExpiresAt defines when will the signed URL expire.
-       * 
- * - * .google.protobuf.Timestamp expires_at = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpiresAtFieldBuilder() { - if (expiresAtBuilder_ == null) { - expiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpiresAt(), - getParentForChildren(), - isClean()); - expiresAt_ = null; - } - return expiresAtBuilder_; - } - @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.service.PreSignedURLs) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.PreSignedURLs) - private static final flyteidl.service.Dataproxy.PreSignedURLs DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.PreSignedURLs(); - } - - public static flyteidl.service.Dataproxy.PreSignedURLs getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PreSignedURLs parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PreSignedURLs(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.service.Dataproxy.PreSignedURLs getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetDataRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.GetDataRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-     * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-     * 
- * - * string flyte_url = 1; - */ - java.lang.String getFlyteUrl(); - /** - *
-     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-     * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-     * 
- * - * string flyte_url = 1; - */ - com.google.protobuf.ByteString - getFlyteUrlBytes(); - } - /** - *
-   * General request artifact to retrieve data from a Flyte artifact url.
-   * 
- * - * Protobuf type {@code flyteidl.service.GetDataRequest} - */ - public static final class GetDataRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.GetDataRequest) - GetDataRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDataRequest.newBuilder() to construct. - private GetDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataRequest() { - flyteUrl_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDataRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - flyteUrl_ = s; - 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.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.GetDataRequest.class, flyteidl.service.Dataproxy.GetDataRequest.Builder.class); - } - - public static final int FLYTE_URL_FIELD_NUMBER = 1; - private volatile java.lang.Object flyteUrl_; - /** - *
-     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-     * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-     * 
- * - * string flyte_url = 1; - */ - public java.lang.String getFlyteUrl() { - java.lang.Object ref = flyteUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flyteUrl_ = s; - return s; - } - } - /** - *
-     * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-     * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-     * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-     *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-     *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-     * 
- * - * string flyte_url = 1; - */ - public com.google.protobuf.ByteString - getFlyteUrlBytes() { - java.lang.Object ref = flyteUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flyteUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getFlyteUrlBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, flyteUrl_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFlyteUrlBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, flyteUrl_); - } - 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.service.Dataproxy.GetDataRequest)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.GetDataRequest other = (flyteidl.service.Dataproxy.GetDataRequest) obj; - - if (!getFlyteUrl() - .equals(other.getFlyteUrl())) 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(); - hash = (37 * hash) + FLYTE_URL_FIELD_NUMBER; - hash = (53 * hash) + getFlyteUrl().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataRequest 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.service.Dataproxy.GetDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataRequest 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.service.Dataproxy.GetDataRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataRequest 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.service.Dataproxy.GetDataRequest 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; - } - /** - *
-     * General request artifact to retrieve data from a Flyte artifact url.
-     * 
- * - * Protobuf type {@code flyteidl.service.GetDataRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.GetDataRequest) - flyteidl.service.Dataproxy.GetDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.GetDataRequest.class, flyteidl.service.Dataproxy.GetDataRequest.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.GetDataRequest.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(); - flyteUrl_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataRequest getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.GetDataRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataRequest build() { - flyteidl.service.Dataproxy.GetDataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataRequest buildPartial() { - flyteidl.service.Dataproxy.GetDataRequest result = new flyteidl.service.Dataproxy.GetDataRequest(this); - result.flyteUrl_ = flyteUrl_; - 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.service.Dataproxy.GetDataRequest) { - return mergeFrom((flyteidl.service.Dataproxy.GetDataRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.GetDataRequest other) { - if (other == flyteidl.service.Dataproxy.GetDataRequest.getDefaultInstance()) return this; - if (!other.getFlyteUrl().isEmpty()) { - flyteUrl_ = other.flyteUrl_; - onChanged(); - } - 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.service.Dataproxy.GetDataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.GetDataRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object flyteUrl_ = ""; - /** - *
-       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-       * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-       * 
- * - * string flyte_url = 1; - */ - public java.lang.String getFlyteUrl() { - java.lang.Object ref = flyteUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - flyteUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-       * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-       * 
- * - * string flyte_url = 1; - */ - public com.google.protobuf.ByteString - getFlyteUrlBytes() { - java.lang.Object ref = flyteUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - flyteUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-       * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-       * 
- * - * string flyte_url = 1; - */ - public Builder setFlyteUrl( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - flyteUrl_ = value; - onChanged(); - return this; - } - /** - *
-       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-       * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-       * 
- * - * string flyte_url = 1; - */ - public Builder clearFlyteUrl() { - - flyteUrl_ = getDefaultInstance().getFlyteUrl(); - onChanged(); - return this; - } - /** - *
-       * A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
-       * backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
-       * e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
-       *      flyte://v1/proj/development/execid/n2/i (for node execution input)
-       *      flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
-       * 
- * - * string flyte_url = 1; - */ - public Builder setFlyteUrlBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - flyteUrl_ = value; - onChanged(); - return this; - } - @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.service.GetDataRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataRequest) - private static final flyteidl.service.Dataproxy.GetDataRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.GetDataRequest(); - } - - public static flyteidl.service.Dataproxy.GetDataRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataRequest(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.service.Dataproxy.GetDataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface GetDataResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.GetDataResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - boolean hasLiteralMap(); - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - flyteidl.core.Literals.LiteralMap getLiteralMap(); - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder(); - - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - boolean hasPreSignedUrls(); - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls(); - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder(); - - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - boolean hasLiteral(); - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - flyteidl.core.Literals.Literal getLiteral(); - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder(); - - public flyteidl.service.Dataproxy.GetDataResponse.DataCase getDataCase(); - } - /** - * Protobuf type {@code flyteidl.service.GetDataResponse} - */ - public static final class GetDataResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.GetDataResponse) - GetDataResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use GetDataResponse.newBuilder() to construct. - private GetDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetDataResponse( - 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.Literals.LiteralMap.Builder subBuilder = null; - if (dataCase_ == 1) { - subBuilder = ((flyteidl.core.Literals.LiteralMap) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.LiteralMap) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 1; - break; - } - case 18: { - flyteidl.service.Dataproxy.PreSignedURLs.Builder subBuilder = null; - if (dataCase_ == 2) { - subBuilder = ((flyteidl.service.Dataproxy.PreSignedURLs) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.service.Dataproxy.PreSignedURLs.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.service.Dataproxy.PreSignedURLs) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 2; - break; - } - case 26: { - flyteidl.core.Literals.Literal.Builder subBuilder = null; - if (dataCase_ == 3) { - subBuilder = ((flyteidl.core.Literals.Literal) data_).toBuilder(); - } - data_ = - input.readMessage(flyteidl.core.Literals.Literal.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((flyteidl.core.Literals.Literal) data_); - data_ = subBuilder.buildPartial(); - } - dataCase_ = 3; - 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.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.GetDataResponse.class, flyteidl.service.Dataproxy.GetDataResponse.Builder.class); - } - - private int dataCase_ = 0; - private java.lang.Object data_; - public enum DataCase - implements com.google.protobuf.Internal.EnumLite { - LITERAL_MAP(1), - PRE_SIGNED_URLS(2), - LITERAL(3), - DATA_NOT_SET(0); - private final int value; - private DataCase(int value) { - this.value = value; - } - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataCase valueOf(int value) { - return forNumber(value); - } - - public static DataCase forNumber(int value) { - switch (value) { - case 1: return LITERAL_MAP; - case 2: return PRE_SIGNED_URLS; - case 3: return LITERAL; - case 0: return DATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public static final int LITERAL_MAP_FIELD_NUMBER = 1; - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public boolean hasLiteralMap() { - return dataCase_ == 1; - } - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public flyteidl.core.Literals.LiteralMap getLiteralMap() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - /** - *
-     * literal map data will be returned
-     * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder() { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - - public static final int PRE_SIGNED_URLS_FIELD_NUMBER = 2; - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public boolean hasPreSignedUrls() { - return dataCase_ == 2; - } - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { - if (dataCase_ == 2) { - return (flyteidl.service.Dataproxy.PreSignedURLs) data_; - } - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - /** - *
-     * Flyte deck html will be returned as a signed url users can download
-     * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { - if (dataCase_ == 2) { - return (flyteidl.service.Dataproxy.PreSignedURLs) data_; - } - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - - public static final int LITERAL_FIELD_NUMBER = 3; - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public boolean hasLiteral() { - return dataCase_ == 3; - } - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public flyteidl.core.Literals.Literal getLiteral() { - if (dataCase_ == 3) { - return (flyteidl.core.Literals.Literal) data_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - /** - *
-     * Single literal will be returned. This is returned when the user/url requests a specific output or input
-     * by name. See the o3 example above.
-     * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder() { - if (dataCase_ == 3) { - return (flyteidl.core.Literals.Literal) data_; - } - return flyteidl.core.Literals.Literal.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 (dataCase_ == 1) { - output.writeMessage(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - output.writeMessage(2, (flyteidl.service.Dataproxy.PreSignedURLs) data_); - } - if (dataCase_ == 3) { - output.writeMessage(3, (flyteidl.core.Literals.Literal) data_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (flyteidl.core.Literals.LiteralMap) data_); - } - if (dataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (flyteidl.service.Dataproxy.PreSignedURLs) data_); - } - if (dataCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (flyteidl.core.Literals.Literal) data_); - } - 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.service.Dataproxy.GetDataResponse)) { - return super.equals(obj); - } - flyteidl.service.Dataproxy.GetDataResponse other = (flyteidl.service.Dataproxy.GetDataResponse) obj; - - if (!getDataCase().equals(other.getDataCase())) return false; - switch (dataCase_) { - case 1: - if (!getLiteralMap() - .equals(other.getLiteralMap())) return false; - break; - case 2: - if (!getPreSignedUrls() - .equals(other.getPreSignedUrls())) return false; - break; - case 3: - if (!getLiteral() - .equals(other.getLiteral())) 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 (dataCase_) { - case 1: - hash = (37 * hash) + LITERAL_MAP_FIELD_NUMBER; - hash = (53 * hash) + getLiteralMap().hashCode(); - break; - case 2: - hash = (37 * hash) + PRE_SIGNED_URLS_FIELD_NUMBER; - hash = (53 * hash) + getPreSignedUrls().hashCode(); - break; - case 3: - hash = (37 * hash) + LITERAL_FIELD_NUMBER; - hash = (53 * hash) + getLiteral().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Dataproxy.GetDataResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataResponse 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.service.Dataproxy.GetDataResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataResponse 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.service.Dataproxy.GetDataResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Dataproxy.GetDataResponse 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.service.Dataproxy.GetDataResponse 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; - } - /** - * Protobuf type {@code flyteidl.service.GetDataResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.GetDataResponse) - flyteidl.service.Dataproxy.GetDataResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Dataproxy.GetDataResponse.class, flyteidl.service.Dataproxy.GetDataResponse.Builder.class); - } - - // Construct using flyteidl.service.Dataproxy.GetDataResponse.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(); - dataCase_ = 0; - data_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Dataproxy.internal_static_flyteidl_service_GetDataResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataResponse getDefaultInstanceForType() { - return flyteidl.service.Dataproxy.GetDataResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataResponse build() { - flyteidl.service.Dataproxy.GetDataResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Dataproxy.GetDataResponse buildPartial() { - flyteidl.service.Dataproxy.GetDataResponse result = new flyteidl.service.Dataproxy.GetDataResponse(this); - if (dataCase_ == 1) { - if (literalMapBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = literalMapBuilder_.build(); - } - } - if (dataCase_ == 2) { - if (preSignedUrlsBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = preSignedUrlsBuilder_.build(); - } - } - if (dataCase_ == 3) { - if (literalBuilder_ == null) { - result.data_ = data_; - } else { - result.data_ = literalBuilder_.build(); - } - } - result.dataCase_ = dataCase_; - 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.service.Dataproxy.GetDataResponse) { - return mergeFrom((flyteidl.service.Dataproxy.GetDataResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Dataproxy.GetDataResponse other) { - if (other == flyteidl.service.Dataproxy.GetDataResponse.getDefaultInstance()) return this; - switch (other.getDataCase()) { - case LITERAL_MAP: { - mergeLiteralMap(other.getLiteralMap()); - break; - } - case PRE_SIGNED_URLS: { - mergePreSignedUrls(other.getPreSignedUrls()); - break; - } - case LITERAL: { - mergeLiteral(other.getLiteral()); - break; - } - case DATA_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.service.Dataproxy.GetDataResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Dataproxy.GetDataResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int dataCase_ = 0; - private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); - } - - public Builder clearData() { - dataCase_ = 0; - data_ = null; - onChanged(); - return this; - } - - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> literalMapBuilder_; - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public boolean hasLiteralMap() { - return dataCase_ == 1; - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public flyteidl.core.Literals.LiteralMap getLiteralMap() { - if (literalMapBuilder_ == null) { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } else { - if (dataCase_ == 1) { - return literalMapBuilder_.getMessage(); - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public Builder setLiteralMap(flyteidl.core.Literals.LiteralMap value) { - if (literalMapBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - literalMapBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public Builder setLiteralMap( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (literalMapBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - literalMapBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 1; - return this; - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public Builder mergeLiteralMap(flyteidl.core.Literals.LiteralMap value) { - if (literalMapBuilder_ == null) { - if (dataCase_ == 1 && - data_ != flyteidl.core.Literals.LiteralMap.getDefaultInstance()) { - data_ = flyteidl.core.Literals.LiteralMap.newBuilder((flyteidl.core.Literals.LiteralMap) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 1) { - literalMapBuilder_.mergeFrom(value); - } - literalMapBuilder_.setMessage(value); - } - dataCase_ = 1; - return this; - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public Builder clearLiteralMap() { - if (literalMapBuilder_ == null) { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 1) { - dataCase_ = 0; - data_ = null; - } - literalMapBuilder_.clear(); - } - return this; - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public flyteidl.core.Literals.LiteralMap.Builder getLiteralMapBuilder() { - return getLiteralMapFieldBuilder().getBuilder(); - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getLiteralMapOrBuilder() { - if ((dataCase_ == 1) && (literalMapBuilder_ != null)) { - return literalMapBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 1) { - return (flyteidl.core.Literals.LiteralMap) data_; - } - return flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - } - /** - *
-       * literal map data will be returned
-       * 
- * - * .flyteidl.core.LiteralMap literal_map = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getLiteralMapFieldBuilder() { - if (literalMapBuilder_ == null) { - if (!(dataCase_ == 1)) { - data_ = flyteidl.core.Literals.LiteralMap.getDefaultInstance(); - } - literalMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - (flyteidl.core.Literals.LiteralMap) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 1; - onChanged();; - return literalMapBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> preSignedUrlsBuilder_; - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public boolean hasPreSignedUrls() { - return dataCase_ == 2; - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public flyteidl.service.Dataproxy.PreSignedURLs getPreSignedUrls() { - if (preSignedUrlsBuilder_ == null) { - if (dataCase_ == 2) { - return (flyteidl.service.Dataproxy.PreSignedURLs) data_; - } - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } else { - if (dataCase_ == 2) { - return preSignedUrlsBuilder_.getMessage(); - } - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public Builder setPreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { - if (preSignedUrlsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - preSignedUrlsBuilder_.setMessage(value); - } - dataCase_ = 2; - return this; - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public Builder setPreSignedUrls( - flyteidl.service.Dataproxy.PreSignedURLs.Builder builderForValue) { - if (preSignedUrlsBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - preSignedUrlsBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 2; - return this; - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public Builder mergePreSignedUrls(flyteidl.service.Dataproxy.PreSignedURLs value) { - if (preSignedUrlsBuilder_ == null) { - if (dataCase_ == 2 && - data_ != flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance()) { - data_ = flyteidl.service.Dataproxy.PreSignedURLs.newBuilder((flyteidl.service.Dataproxy.PreSignedURLs) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 2) { - preSignedUrlsBuilder_.mergeFrom(value); - } - preSignedUrlsBuilder_.setMessage(value); - } - dataCase_ = 2; - return this; - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public Builder clearPreSignedUrls() { - if (preSignedUrlsBuilder_ == null) { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 2) { - dataCase_ = 0; - data_ = null; - } - preSignedUrlsBuilder_.clear(); - } - return this; - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public flyteidl.service.Dataproxy.PreSignedURLs.Builder getPreSignedUrlsBuilder() { - return getPreSignedUrlsFieldBuilder().getBuilder(); - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - public flyteidl.service.Dataproxy.PreSignedURLsOrBuilder getPreSignedUrlsOrBuilder() { - if ((dataCase_ == 2) && (preSignedUrlsBuilder_ != null)) { - return preSignedUrlsBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 2) { - return (flyteidl.service.Dataproxy.PreSignedURLs) data_; - } - return flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - } - /** - *
-       * Flyte deck html will be returned as a signed url users can download
-       * 
- * - * .flyteidl.service.PreSignedURLs pre_signed_urls = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder> - getPreSignedUrlsFieldBuilder() { - if (preSignedUrlsBuilder_ == null) { - if (!(dataCase_ == 2)) { - data_ = flyteidl.service.Dataproxy.PreSignedURLs.getDefaultInstance(); - } - preSignedUrlsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.service.Dataproxy.PreSignedURLs, flyteidl.service.Dataproxy.PreSignedURLs.Builder, flyteidl.service.Dataproxy.PreSignedURLsOrBuilder>( - (flyteidl.service.Dataproxy.PreSignedURLs) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 2; - onChanged();; - return preSignedUrlsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> literalBuilder_; - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public boolean hasLiteral() { - return dataCase_ == 3; - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public flyteidl.core.Literals.Literal getLiteral() { - if (literalBuilder_ == null) { - if (dataCase_ == 3) { - return (flyteidl.core.Literals.Literal) data_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } else { - if (dataCase_ == 3) { - return literalBuilder_.getMessage(); - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public Builder setLiteral(flyteidl.core.Literals.Literal value) { - if (literalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - data_ = value; - onChanged(); - } else { - literalBuilder_.setMessage(value); - } - dataCase_ = 3; - return this; - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public Builder setLiteral( - flyteidl.core.Literals.Literal.Builder builderForValue) { - if (literalBuilder_ == null) { - data_ = builderForValue.build(); - onChanged(); - } else { - literalBuilder_.setMessage(builderForValue.build()); - } - dataCase_ = 3; - return this; - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public Builder mergeLiteral(flyteidl.core.Literals.Literal value) { - if (literalBuilder_ == null) { - if (dataCase_ == 3 && - data_ != flyteidl.core.Literals.Literal.getDefaultInstance()) { - data_ = flyteidl.core.Literals.Literal.newBuilder((flyteidl.core.Literals.Literal) data_) - .mergeFrom(value).buildPartial(); - } else { - data_ = value; - } - onChanged(); - } else { - if (dataCase_ == 3) { - literalBuilder_.mergeFrom(value); - } - literalBuilder_.setMessage(value); - } - dataCase_ = 3; - return this; - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public Builder clearLiteral() { - if (literalBuilder_ == null) { - if (dataCase_ == 3) { - dataCase_ = 0; - data_ = null; - onChanged(); - } - } else { - if (dataCase_ == 3) { - dataCase_ = 0; - data_ = null; - } - literalBuilder_.clear(); - } - return this; - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public flyteidl.core.Literals.Literal.Builder getLiteralBuilder() { - return getLiteralFieldBuilder().getBuilder(); - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - public flyteidl.core.Literals.LiteralOrBuilder getLiteralOrBuilder() { - if ((dataCase_ == 3) && (literalBuilder_ != null)) { - return literalBuilder_.getMessageOrBuilder(); - } else { - if (dataCase_ == 3) { - return (flyteidl.core.Literals.Literal) data_; - } - return flyteidl.core.Literals.Literal.getDefaultInstance(); - } - } - /** - *
-       * Single literal will be returned. This is returned when the user/url requests a specific output or input
-       * by name. See the o3 example above.
-       * 
- * - * .flyteidl.core.Literal literal = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder> - getLiteralFieldBuilder() { - if (literalBuilder_ == null) { - if (!(dataCase_ == 3)) { - data_ = flyteidl.core.Literals.Literal.getDefaultInstance(); - } - literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.Literal, flyteidl.core.Literals.Literal.Builder, flyteidl.core.Literals.LiteralOrBuilder>( - (flyteidl.core.Literals.Literal) data_, - getParentForChildren(), - isClean()); - data_ = null; - } - dataCase_ = 3; - onChanged();; - return literalBuilder_; - } - @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.service.GetDataResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.GetDataResponse) - private static final flyteidl.service.Dataproxy.GetDataResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Dataproxy.GetDataResponse(); - } - - public static flyteidl.service.Dataproxy.GetDataResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataResponse(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.service.Dataproxy.GetDataResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_PreSignedURLs_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_GetDataRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_GetDataResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n flyteidl/service/dataproxy.proto\022\020flyt" + - "eidl.service\032\034google/api/annotations.pro" + - "to\032\036google/protobuf/duration.proto\032\037goog" + - "le/protobuf/timestamp.proto\032\036flyteidl/co" + - "re/identifier.proto\032\034flyteidl/core/liter" + - "als.proto\"v\n\034CreateUploadLocationRespons" + - "e\022\022\n\nsigned_url\030\001 \001(\t\022\022\n\nnative_url\030\002 \001(" + - "\t\022.\n\nexpires_at\030\003 \001(\0132\032.google.protobuf." + - "Timestamp\"\253\001\n\033CreateUploadLocationReques" + - "t\022\017\n\007project\030\001 \001(\t\022\016\n\006domain\030\002 \001(\t\022\020\n\010fi" + - "lename\030\003 \001(\t\022-\n\nexpires_in\030\004 \001(\0132\031.googl" + - "e.protobuf.Duration\022\023\n\013content_md5\030\005 \001(\014" + - "\022\025\n\rfilename_root\030\006 \001(\t\"f\n\035CreateDownloa" + - "dLocationRequest\022\022\n\nnative_url\030\001 \001(\t\022-\n\n" + - "expires_in\030\002 \001(\0132\031.google.protobuf.Durat" + - "ion:\002\030\001\"h\n\036CreateDownloadLocationRespons" + - "e\022\022\n\nsigned_url\030\001 \001(\t\022.\n\nexpires_at\030\002 \001(" + - "\0132\032.google.protobuf.Timestamp:\002\030\001\"\320\001\n\031Cr" + - "eateDownloadLinkRequest\0225\n\rartifact_type" + - "\030\001 \001(\0162\036.flyteidl.service.ArtifactType\022-" + - "\n\nexpires_in\030\002 \001(\0132\031.google.protobuf.Dur" + - "ation\022C\n\021node_execution_id\030\003 \001(\0132&.flyte" + - "idl.core.NodeExecutionIdentifierH\000B\010\n\006so" + - "urce\"\242\001\n\032CreateDownloadLinkResponse\022\026\n\ns" + - "igned_url\030\001 \003(\tB\002\030\001\0222\n\nexpires_at\030\002 \001(\0132" + - "\032.google.protobuf.TimestampB\002\030\001\0228\n\017pre_s" + - "igned_urls\030\003 \001(\0132\037.flyteidl.service.PreS" + - "ignedURLs\"S\n\rPreSignedURLs\022\022\n\nsigned_url" + - "\030\001 \003(\t\022.\n\nexpires_at\030\002 \001(\0132\032.google.prot" + - "obuf.Timestamp\"#\n\016GetDataRequest\022\021\n\tflyt" + - "e_url\030\001 \001(\t\"\262\001\n\017GetDataResponse\0220\n\013liter" + - "al_map\030\001 \001(\0132\031.flyteidl.core.LiteralMapH" + - "\000\022:\n\017pre_signed_urls\030\002 \001(\0132\037.flyteidl.se" + - "rvice.PreSignedURLsH\000\022)\n\007literal\030\003 \001(\0132\026" + - ".flyteidl.core.LiteralH\000B\006\n\004data*C\n\014Arti" + - "factType\022\033\n\027ARTIFACT_TYPE_UNDEFINED\020\000\022\026\n" + - "\022ARTIFACT_TYPE_DECK\020\0012\342\004\n\020DataProxyServi" + - "ce\022\240\001\n\024CreateUploadLocation\022-.flyteidl.s" + - "ervice.CreateUploadLocationRequest\032..fly" + - "teidl.service.CreateUploadLocationRespon" + - "se\")\202\323\344\223\002#\"\036/api/v1/dataproxy/artifact_u" + - "rn:\001*\022\246\001\n\026CreateDownloadLocation\022/.flyte" + - "idl.service.CreateDownloadLocationReques" + - "t\0320.flyteidl.service.CreateDownloadLocat" + - "ionResponse\")\210\002\001\202\323\344\223\002 \022\036/api/v1/dataprox" + - "y/artifact_urn\022\233\001\n\022CreateDownloadLink\022+." + - "flyteidl.service.CreateDownloadLinkReque" + - "st\032,.flyteidl.service.CreateDownloadLink" + - "Response\"*\202\323\344\223\002$\"\037/api/v1/dataproxy/arti" + - "fact_link:\001*\022d\n\007GetData\022 .flyteidl.servi" + - "ce.GetDataRequest\032!.flyteidl.service.Get" + - "DataResponse\"\024\202\323\344\223\002\016\022\014/api/v1/dataB?Z=gi" + - "thub.com/flyteorg/flyte/flyteidl/gen/pb-" + - "go/flyteidl/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - flyteidl.core.IdentifierOuterClass.getDescriptor(), - flyteidl.core.Literals.getDescriptor(), - }, assigner); - internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_service_CreateUploadLocationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateUploadLocationResponse_descriptor, - new java.lang.String[] { "SignedUrl", "NativeUrl", "ExpiresAt", }); - internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_service_CreateUploadLocationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateUploadLocationRequest_descriptor, - new java.lang.String[] { "Project", "Domain", "Filename", "ExpiresIn", "ContentMd5", "FilenameRoot", }); - internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_service_CreateDownloadLocationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateDownloadLocationRequest_descriptor, - new java.lang.String[] { "NativeUrl", "ExpiresIn", }); - internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_service_CreateDownloadLocationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateDownloadLocationResponse_descriptor, - new java.lang.String[] { "SignedUrl", "ExpiresAt", }); - internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_service_CreateDownloadLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateDownloadLinkRequest_descriptor, - new java.lang.String[] { "ArtifactType", "ExpiresIn", "NodeExecutionId", "Source", }); - internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_service_CreateDownloadLinkResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_CreateDownloadLinkResponse_descriptor, - new java.lang.String[] { "SignedUrl", "ExpiresAt", "PreSignedUrls", }); - internal_static_flyteidl_service_PreSignedURLs_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_flyteidl_service_PreSignedURLs_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_PreSignedURLs_descriptor, - new java.lang.String[] { "SignedUrl", "ExpiresAt", }); - internal_static_flyteidl_service_GetDataRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_flyteidl_service_GetDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_GetDataRequest_descriptor, - new java.lang.String[] { "FlyteUrl", }); - internal_static_flyteidl_service_GetDataResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_flyteidl_service_GetDataResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_GetDataResponse_descriptor, - new java.lang.String[] { "LiteralMap", "PreSignedUrls", "Literal", "Data", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - flyteidl.core.IdentifierOuterClass.getDescriptor(); - flyteidl.core.Literals.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java b/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java deleted file mode 100644 index 2336dd1564..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/ExternalPluginServiceOuterClass.java +++ /dev/null @@ -1,4743 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/external_plugin_service.proto - -package flyteidl.service; - -public final class ExternalPluginServiceOuterClass { - private ExternalPluginServiceOuterClass() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - /** - *
-   * The state of the execution is used to control its visibility in the UI/CLI.
-   * 
- * - * Protobuf enum {@code flyteidl.service.State} - */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - * RETRYABLE_FAILURE = 0; - */ - RETRYABLE_FAILURE(0), - /** - * PERMANENT_FAILURE = 1; - */ - PERMANENT_FAILURE(1), - /** - * PENDING = 2; - */ - PENDING(2), - /** - * RUNNING = 3; - */ - RUNNING(3), - /** - * SUCCEEDED = 4; - */ - SUCCEEDED(4), - UNRECOGNIZED(-1), - ; - - /** - * RETRYABLE_FAILURE = 0; - */ - public static final int RETRYABLE_FAILURE_VALUE = 0; - /** - * PERMANENT_FAILURE = 1; - */ - public static final int PERMANENT_FAILURE_VALUE = 1; - /** - * PENDING = 2; - */ - public static final int PENDING_VALUE = 2; - /** - * RUNNING = 3; - */ - public static final int RUNNING_VALUE = 3; - /** - * SUCCEEDED = 4; - */ - public static final int SUCCEEDED_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static State valueOf(int value) { - return forNumber(value); - } - - public static State forNumber(int value) { - switch (value) { - case 0: return RETRYABLE_FAILURE; - case 1: return PERMANENT_FAILURE; - case 2: return PENDING; - case 3: return RUNNING; - case 4: return SUCCEEDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.getDescriptor().getEnumTypes().get(0); - } - - private static final State[] VALUES = values(); - - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:flyteidl.service.State) - } - - @java.lang.Deprecated public interface TaskCreateRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - boolean hasInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - flyteidl.core.Literals.LiteralMap getInputs(); - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder(); - - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - boolean hasTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - flyteidl.core.Tasks.TaskTemplate getTemplate(); - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder(); - - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - java.lang.String getOutputPrefix(); - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - com.google.protobuf.ByteString - getOutputPrefixBytes(); - } - /** - *
-   * Represents a request structure to create task.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskCreateRequest} - */ - @java.lang.Deprecated public static final class TaskCreateRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateRequest) - TaskCreateRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateRequest.newBuilder() to construct. - private TaskCreateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateRequest() { - outputPrefix_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateRequest( - 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.Literals.LiteralMap.Builder subBuilder = null; - if (inputs_ != null) { - subBuilder = inputs_.toBuilder(); - } - inputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputs_); - inputs_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - flyteidl.core.Tasks.TaskTemplate.Builder subBuilder = null; - if (template_ != null) { - subBuilder = template_.toBuilder(); - } - template_ = input.readMessage(flyteidl.core.Tasks.TaskTemplate.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(template_); - template_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - outputPrefix_ = s; - 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); - } - - public static final int INPUTS_FIELD_NUMBER = 1; - private flyteidl.core.Literals.LiteralMap inputs_; - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public boolean hasInputs() { - return inputs_ != null; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - /** - *
-     * The inputs required to start the execution. All required inputs must be
-     * included in this map. If not required and not provided, defaults apply.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - return getInputs(); - } - - public static final int TEMPLATE_FIELD_NUMBER = 2; - private flyteidl.core.Tasks.TaskTemplate template_; - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public boolean hasTemplate() { - return template_ != null; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - /** - *
-     * Template of the task that encapsulates all the metadata of the task.
-     * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - return getTemplate(); - } - - public static final int OUTPUT_PREFIX_FIELD_NUMBER = 3; - private volatile java.lang.Object outputPrefix_; - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - public java.lang.String getOutputPrefix() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPrefix_ = s; - return s; - } - } - /** - *
-     * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-     * 
- * - * string output_prefix = 3; - */ - public com.google.protobuf.ByteString - getOutputPrefixBytes() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (inputs_ != null) { - output.writeMessage(1, getInputs()); - } - if (template_ != null) { - output.writeMessage(2, getTemplate()); - } - if (!getOutputPrefixBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, outputPrefix_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (inputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getInputs()); - } - if (template_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTemplate()); - } - if (!getOutputPrefixBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, outputPrefix_); - } - 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) obj; - - if (hasInputs() != other.hasInputs()) return false; - if (hasInputs()) { - if (!getInputs() - .equals(other.getInputs())) return false; - } - if (hasTemplate() != other.hasTemplate()) return false; - if (hasTemplate()) { - if (!getTemplate() - .equals(other.getTemplate())) return false; - } - if (!getOutputPrefix() - .equals(other.getOutputPrefix())) 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 (hasInputs()) { - hash = (37 * hash) + INPUTS_FIELD_NUMBER; - hash = (53 * hash) + getInputs().hashCode(); - } - if (hasTemplate()) { - hash = (37 * hash) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - } - hash = (37 * hash) + OUTPUT_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getOutputPrefix().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest 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; - } - /** - *
-     * Represents a request structure to create task.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskCreateRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateRequest) - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.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 (inputsBuilder_ == null) { - inputs_ = null; - } else { - inputs_ = null; - inputsBuilder_ = null; - } - if (templateBuilder_ == null) { - template_ = null; - } else { - template_ = null; - templateBuilder_ = null; - } - outputPrefix_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(this); - if (inputsBuilder_ == null) { - result.inputs_ = inputs_; - } else { - result.inputs_ = inputsBuilder_.build(); - } - if (templateBuilder_ == null) { - result.template_ = template_; - } else { - result.template_ = templateBuilder_.build(); - } - result.outputPrefix_ = outputPrefix_; - 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest.getDefaultInstance()) return this; - if (other.hasInputs()) { - mergeInputs(other.getInputs()); - } - if (other.hasTemplate()) { - mergeTemplate(other.getTemplate()); - } - if (!other.getOutputPrefix().isEmpty()) { - outputPrefix_ = other.outputPrefix_; - onChanged(); - } - 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.service.ExternalPluginServiceOuterClass.TaskCreateRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private flyteidl.core.Literals.LiteralMap inputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> inputsBuilder_; - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public boolean hasInputs() { - return inputsBuilder_ != null || inputs_ != null; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap getInputs() { - if (inputsBuilder_ == null) { - return inputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } else { - return inputsBuilder_.getMessage(); - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder setInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - inputs_ = value; - onChanged(); - } else { - inputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder setInputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (inputsBuilder_ == null) { - inputs_ = builderForValue.build(); - onChanged(); - } else { - inputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder mergeInputs(flyteidl.core.Literals.LiteralMap value) { - if (inputsBuilder_ == null) { - if (inputs_ != null) { - inputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(inputs_).mergeFrom(value).buildPartial(); - } else { - inputs_ = value; - } - onChanged(); - } else { - inputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public Builder clearInputs() { - if (inputsBuilder_ == null) { - inputs_ = null; - onChanged(); - } else { - inputs_ = null; - inputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMap.Builder getInputsBuilder() { - - onChanged(); - return getInputsFieldBuilder().getBuilder(); - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getInputsOrBuilder() { - if (inputsBuilder_ != null) { - return inputsBuilder_.getMessageOrBuilder(); - } else { - return inputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : inputs_; - } - } - /** - *
-       * The inputs required to start the execution. All required inputs must be
-       * included in this map. If not required and not provided, defaults apply.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap inputs = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getInputsFieldBuilder() { - if (inputsBuilder_ == null) { - inputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getInputs(), - getParentForChildren(), - isClean()); - inputs_ = null; - } - return inputsBuilder_; - } - - private flyteidl.core.Tasks.TaskTemplate template_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> templateBuilder_; - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public boolean hasTemplate() { - return templateBuilder_ != null || template_ != null; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate getTemplate() { - if (templateBuilder_ == null) { - return template_ == null ? flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } else { - return templateBuilder_.getMessage(); - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder setTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - onChanged(); - } else { - templateBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder setTemplate( - flyteidl.core.Tasks.TaskTemplate.Builder builderForValue) { - if (templateBuilder_ == null) { - template_ = builderForValue.build(); - onChanged(); - } else { - templateBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder mergeTemplate(flyteidl.core.Tasks.TaskTemplate value) { - if (templateBuilder_ == null) { - if (template_ != null) { - template_ = - flyteidl.core.Tasks.TaskTemplate.newBuilder(template_).mergeFrom(value).buildPartial(); - } else { - template_ = value; - } - onChanged(); - } else { - templateBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public Builder clearTemplate() { - if (templateBuilder_ == null) { - template_ = null; - onChanged(); - } else { - template_ = null; - templateBuilder_ = null; - } - - return this; - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplate.Builder getTemplateBuilder() { - - onChanged(); - return getTemplateFieldBuilder().getBuilder(); - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - public flyteidl.core.Tasks.TaskTemplateOrBuilder getTemplateOrBuilder() { - if (templateBuilder_ != null) { - return templateBuilder_.getMessageOrBuilder(); - } else { - return template_ == null ? - flyteidl.core.Tasks.TaskTemplate.getDefaultInstance() : template_; - } - } - /** - *
-       * Template of the task that encapsulates all the metadata of the task.
-       * 
- * - * .flyteidl.core.TaskTemplate template = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder> - getTemplateFieldBuilder() { - if (templateBuilder_ == null) { - templateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Tasks.TaskTemplate, flyteidl.core.Tasks.TaskTemplate.Builder, flyteidl.core.Tasks.TaskTemplateOrBuilder>( - getTemplate(), - getParentForChildren(), - isClean()); - template_ = null; - } - return templateBuilder_; - } - - private java.lang.Object outputPrefix_ = ""; - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public java.lang.String getOutputPrefix() { - java.lang.Object ref = outputPrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - outputPrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public com.google.protobuf.ByteString - getOutputPrefixBytes() { - java.lang.Object ref = outputPrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - outputPrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder setOutputPrefix( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - outputPrefix_ = value; - onChanged(); - return this; - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder clearOutputPrefix() { - - outputPrefix_ = getDefaultInstance().getOutputPrefix(); - onChanged(); - return this; - } - /** - *
-       * Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
-       * 
- * - * string output_prefix = 3; - */ - public Builder setOutputPrefixBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - outputPrefix_ = value; - onChanged(); - return this; - } - @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.service.TaskCreateRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateRequest) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateRequest(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.service.ExternalPluginServiceOuterClass.TaskCreateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface TaskCreateResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskCreateResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string job_id = 1; - */ - java.lang.String getJobId(); - /** - * string job_id = 1; - */ - com.google.protobuf.ByteString - getJobIdBytes(); - } - /** - *
-   * Represents a create response structure.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskCreateResponse} - */ - @java.lang.Deprecated public static final class TaskCreateResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskCreateResponse) - TaskCreateResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskCreateResponse.newBuilder() to construct. - private TaskCreateResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskCreateResponse() { - jobId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskCreateResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); - } - - public static final int JOB_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object jobId_; - /** - * string job_id = 1; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - * string job_id = 1; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jobId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jobId_); - } - 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) obj; - - if (!getJobId() - .equals(other.getJobId())) 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(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse 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; - } - /** - *
-     * Represents a create response structure.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskCreateResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskCreateResponse) - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.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(); - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskCreateResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(this); - result.jobId_ = jobId_; - 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse.getDefaultInstance()) return this; - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - 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.service.ExternalPluginServiceOuterClass.TaskCreateResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object jobId_ = ""; - /** - * string job_id = 1; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string job_id = 1; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string job_id = 1; - */ - public Builder setJobId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - * string job_id = 1; - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - * string job_id = 1; - */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - @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.service.TaskCreateResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskCreateResponse) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskCreateResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskCreateResponse(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.service.ExternalPluginServiceOuterClass.TaskCreateResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface TaskGetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - java.lang.String getJobId(); - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - com.google.protobuf.ByteString - getJobIdBytes(); - } - /** - *
-   * A message used to fetch a job state from backend plugin server.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskGetRequest} - */ - @java.lang.Deprecated public static final class TaskGetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetRequest) - TaskGetRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskGetRequest.newBuilder() to construct. - private TaskGetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskGetRequest() { - taskType_ = ""; - jobId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskGetRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); - } - - public static final int TASK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - 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.service.ExternalPluginServiceOuterClass.TaskGetRequest)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) obj; - - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (!getJobId() - .equals(other.getJobId())) 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(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest 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.service.ExternalPluginServiceOuterClass.TaskGetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest 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.service.ExternalPluginServiceOuterClass.TaskGetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest 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.service.ExternalPluginServiceOuterClass.TaskGetRequest 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; - } - /** - *
-     * A message used to fetch a job state from backend plugin server.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskGetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetRequest) - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.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(); - taskType_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(this); - result.taskType_ = taskType_; - result.jobId_ = jobId_; - 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.service.ExternalPluginServiceOuterClass.TaskGetRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest.getDefaultInstance()) return this; - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - 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.service.ExternalPluginServiceOuterClass.TaskGetRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder setJobId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - @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.service.TaskGetRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetRequest) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskGetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskGetRequest(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.service.ExternalPluginServiceOuterClass.TaskGetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface TaskGetResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskGetResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.service.State state = 1; - */ - int getStateValue(); - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.service.State state = 1; - */ - flyteidl.service.ExternalPluginServiceOuterClass.State getState(); - - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - boolean hasOutputs(); - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - flyteidl.core.Literals.LiteralMap getOutputs(); - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder(); - } - /** - *
-   * Response to get an individual task state.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskGetResponse} - */ - @java.lang.Deprecated public static final class TaskGetResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskGetResponse) - TaskGetResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskGetResponse.newBuilder() to construct. - private TaskGetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskGetResponse() { - state_ = 0; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskGetResponse( - 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 8: { - int rawValue = input.readEnum(); - - state_ = rawValue; - break; - } - case 18: { - flyteidl.core.Literals.LiteralMap.Builder subBuilder = null; - if (outputs_ != null) { - subBuilder = outputs_.toBuilder(); - } - outputs_ = input.readMessage(flyteidl.core.Literals.LiteralMap.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputs_); - outputs_ = 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_; - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.service.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-     * The state of the execution is used to control its visibility in the UI/CLI.
-     * 
- * - * .flyteidl.service.State state = 1; - */ - public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { - @SuppressWarnings("deprecation") - flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; - } - - public static final int OUTPUTS_FIELD_NUMBER = 2; - private flyteidl.core.Literals.LiteralMap outputs_; - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public boolean hasOutputs() { - return outputs_ != null; - } - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputs() { - return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } - /** - *
-     * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-     * Structured dataset pointing to the query result table.
-     * +optional
-     * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { - return getOutputs(); - } - - 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 (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { - output.writeEnum(1, state_); - } - if (outputs_ != null) { - output.writeMessage(2, getOutputs()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ != flyteidl.service.ExternalPluginServiceOuterClass.State.RETRYABLE_FAILURE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, state_); - } - if (outputs_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOutputs()); - } - 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.service.ExternalPluginServiceOuterClass.TaskGetResponse)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) obj; - - if (state_ != other.state_) return false; - if (hasOutputs() != other.hasOutputs()) return false; - if (hasOutputs()) { - if (!getOutputs() - .equals(other.getOutputs())) 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(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasOutputs()) { - hash = (37 * hash) + OUTPUTS_FIELD_NUMBER; - hash = (53 * hash) + getOutputs().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse 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.service.ExternalPluginServiceOuterClass.TaskGetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse 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.service.ExternalPluginServiceOuterClass.TaskGetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse 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.service.ExternalPluginServiceOuterClass.TaskGetResponse 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; - } - /** - *
-     * Response to get an individual task state.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskGetResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskGetResponse) - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.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(); - state_ = 0; - - if (outputsBuilder_ == null) { - outputs_ = null; - } else { - outputs_ = null; - outputsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskGetResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(this); - result.state_ = state_; - if (outputsBuilder_ == null) { - result.outputs_ = outputs_; - } else { - result.outputs_ = outputsBuilder_.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.service.ExternalPluginServiceOuterClass.TaskGetResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse.getDefaultInstance()) return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasOutputs()) { - mergeOutputs(other.getOutputs()); - } - 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.service.ExternalPluginServiceOuterClass.TaskGetResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int state_ = 0; - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.service.State state = 1; - */ - public int getStateValue() { - return state_; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.service.State state = 1; - */ - public Builder setStateValue(int value) { - state_ = value; - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.service.State state = 1; - */ - public flyteidl.service.ExternalPluginServiceOuterClass.State getState() { - @SuppressWarnings("deprecation") - flyteidl.service.ExternalPluginServiceOuterClass.State result = flyteidl.service.ExternalPluginServiceOuterClass.State.valueOf(state_); - return result == null ? flyteidl.service.ExternalPluginServiceOuterClass.State.UNRECOGNIZED : result; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.service.State state = 1; - */ - public Builder setState(flyteidl.service.ExternalPluginServiceOuterClass.State value) { - if (value == null) { - throw new NullPointerException(); - } - - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * The state of the execution is used to control its visibility in the UI/CLI.
-       * 
- * - * .flyteidl.service.State state = 1; - */ - public Builder clearState() { - - state_ = 0; - onChanged(); - return this; - } - - private flyteidl.core.Literals.LiteralMap outputs_; - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> outputsBuilder_; - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public boolean hasOutputs() { - return outputsBuilder_ != null || outputs_ != null; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap getOutputs() { - if (outputsBuilder_ == null) { - return outputs_ == null ? flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } else { - return outputsBuilder_.getMessage(); - } - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder setOutputs(flyteidl.core.Literals.LiteralMap value) { - if (outputsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - outputs_ = value; - onChanged(); - } else { - outputsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder setOutputs( - flyteidl.core.Literals.LiteralMap.Builder builderForValue) { - if (outputsBuilder_ == null) { - outputs_ = builderForValue.build(); - onChanged(); - } else { - outputsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder mergeOutputs(flyteidl.core.Literals.LiteralMap value) { - if (outputsBuilder_ == null) { - if (outputs_ != null) { - outputs_ = - flyteidl.core.Literals.LiteralMap.newBuilder(outputs_).mergeFrom(value).buildPartial(); - } else { - outputs_ = value; - } - onChanged(); - } else { - outputsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public Builder clearOutputs() { - if (outputsBuilder_ == null) { - outputs_ = null; - onChanged(); - } else { - outputs_ = null; - outputsBuilder_ = null; - } - - return this; - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMap.Builder getOutputsBuilder() { - - onChanged(); - return getOutputsFieldBuilder().getBuilder(); - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - public flyteidl.core.Literals.LiteralMapOrBuilder getOutputsOrBuilder() { - if (outputsBuilder_ != null) { - return outputsBuilder_.getMessageOrBuilder(); - } else { - return outputs_ == null ? - flyteidl.core.Literals.LiteralMap.getDefaultInstance() : outputs_; - } - } - /** - *
-       * The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
-       * Structured dataset pointing to the query result table.
-       * +optional
-       * 
- * - * .flyteidl.core.LiteralMap outputs = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder> - getOutputsFieldBuilder() { - if (outputsBuilder_ == null) { - outputsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - flyteidl.core.Literals.LiteralMap, flyteidl.core.Literals.LiteralMap.Builder, flyteidl.core.Literals.LiteralMapOrBuilder>( - getOutputs(), - getParentForChildren(), - isClean()); - outputs_ = null; - } - return outputsBuilder_; - } - @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.service.TaskGetResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskGetResponse) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskGetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskGetResponse(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.service.ExternalPluginServiceOuterClass.TaskGetResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface TaskDeleteRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - java.lang.String getTaskType(); - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - com.google.protobuf.ByteString - getTaskTypeBytes(); - - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - java.lang.String getJobId(); - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - com.google.protobuf.ByteString - getJobIdBytes(); - } - /** - *
-   * A message used to delete a task.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskDeleteRequest} - */ - @java.lang.Deprecated public static final class TaskDeleteRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteRequest) - TaskDeleteRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskDeleteRequest.newBuilder() to construct. - private TaskDeleteRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskDeleteRequest() { - taskType_ = ""; - jobId_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskDeleteRequest( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - taskType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - jobId_ = s; - 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); - } - - public static final int TASK_TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object taskType_; - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } - } - /** - *
-     * A predefined yet extensible Task type identifier.
-     * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int JOB_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object jobId_; - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - /** - *
-     * The unique id identifying the job.
-     * 
- * - * string job_id = 2; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 (!getTaskTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskType_); - } - if (!getJobIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jobId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getTaskTypeBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskType_); - } - if (!getJobIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jobId_); - } - 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) obj; - - if (!getTaskType() - .equals(other.getTaskType())) return false; - if (!getJobId() - .equals(other.getJobId())) 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(); - hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTaskType().hashCode(); - hash = (37 * hash) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest 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; - } - /** - *
-     * A message used to delete a task.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskDeleteRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteRequest) - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.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(); - taskType_ = ""; - - jobId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(this); - result.taskType_ = taskType_; - result.jobId_ = jobId_; - 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest.getDefaultInstance()) return this; - if (!other.getTaskType().isEmpty()) { - taskType_ = other.taskType_; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - onChanged(); - } - 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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object taskType_ = ""; - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public java.lang.String getTaskType() { - java.lang.Object ref = taskType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public com.google.protobuf.ByteString - getTaskTypeBytes() { - java.lang.Object ref = taskType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - taskType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - taskType_ = value; - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder clearTaskType() { - - taskType_ = getDefaultInstance().getTaskType(); - onChanged(); - return this; - } - /** - *
-       * A predefined yet extensible Task type identifier.
-       * 
- * - * string task_type = 1; - */ - public Builder setTaskTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - taskType_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public com.google.protobuf.ByteString - getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder setJobId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - jobId_ = value; - onChanged(); - return this; - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder clearJobId() { - - jobId_ = getDefaultInstance().getJobId(); - onChanged(); - return this; - } - /** - *
-       * The unique id identifying the job.
-       * 
- * - * string job_id = 2; - */ - public Builder setJobIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - jobId_ = value; - onChanged(); - return this; - } - @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.service.TaskDeleteRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteRequest) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskDeleteRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskDeleteRequest(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.service.ExternalPluginServiceOuterClass.TaskDeleteRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - @java.lang.Deprecated public interface TaskDeleteResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.TaskDeleteResponse) - com.google.protobuf.MessageOrBuilder { - } - /** - *
-   * Response to delete a task.
-   * 
- * - * Protobuf type {@code flyteidl.service.TaskDeleteResponse} - */ - @java.lang.Deprecated public static final class TaskDeleteResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.TaskDeleteResponse) - TaskDeleteResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use TaskDeleteResponse.newBuilder() to construct. - private TaskDeleteResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TaskDeleteResponse() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TaskDeleteResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)) { - return super.equals(obj); - } - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse 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; - } - /** - *
-     * Response to delete a task.
-     * 
- * - * Protobuf type {@code flyteidl.service.TaskDeleteResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.TaskDeleteResponse) - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.class, flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.Builder.class); - } - - // Construct using flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.internal_static_flyteidl_service_TaskDeleteResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { - return flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse build() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse buildPartial() { - flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse result = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(this); - 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) { - return mergeFrom((flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse other) { - if (other == flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse.getDefaultInstance()) return this; - 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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.service.TaskDeleteResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.TaskDeleteResponse) - private static final flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse(); - } - - public static flyteidl.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskDeleteResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TaskDeleteResponse(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.service.ExternalPluginServiceOuterClass.TaskDeleteResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskCreateRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskCreateResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskGetRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskGetResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskDeleteRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_TaskDeleteResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.flyteidl/service/external_plugin_servi" + - "ce.proto\022\020flyteidl.service\032\034flyteidl/cor" + - "e/literals.proto\032\031flyteidl/core/tasks.pr" + - "oto\032\035flyteidl/core/interface.proto\"\210\001\n\021T" + - "askCreateRequest\022)\n\006inputs\030\001 \001(\0132\031.flyte" + - "idl.core.LiteralMap\022-\n\010template\030\002 \001(\0132\033." + - "flyteidl.core.TaskTemplate\022\025\n\routput_pre" + - "fix\030\003 \001(\t:\002\030\001\"(\n\022TaskCreateResponse\022\016\n\006j" + - "ob_id\030\001 \001(\t:\002\030\001\"7\n\016TaskGetRequest\022\021\n\ttas" + - "k_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"i\n\017Task" + - "GetResponse\022&\n\005state\030\001 \001(\0162\027.flyteidl.se" + - "rvice.State\022*\n\007outputs\030\002 \001(\0132\031.flyteidl." + - "core.LiteralMap:\002\030\001\":\n\021TaskDeleteRequest" + - "\022\021\n\ttask_type\030\001 \001(\t\022\016\n\006job_id\030\002 \001(\t:\002\030\001\"" + - "\030\n\022TaskDeleteResponse:\002\030\001*b\n\005State\022\025\n\021RE" + - "TRYABLE_FAILURE\020\000\022\025\n\021PERMANENT_FAILURE\020\001" + - "\022\013\n\007PENDING\020\002\022\013\n\007RUNNING\020\003\022\r\n\tSUCCEEDED\020" + - "\004\032\002\030\0012\250\002\n\025ExternalPluginService\022\\\n\nCreat" + - "eTask\022#.flyteidl.service.TaskCreateReque" + - "st\032$.flyteidl.service.TaskCreateResponse" + - "\"\003\210\002\001\022S\n\007GetTask\022 .flyteidl.service.Task" + - "GetRequest\032!.flyteidl.service.TaskGetRes" + - "ponse\"\003\210\002\001\022\\\n\nDeleteTask\022#.flyteidl.serv" + - "ice.TaskDeleteRequest\032$.flyteidl.service" + - ".TaskDeleteResponse\"\003\210\002\001B?Z=github.com/f" + - "lyteorg/flyte/flyteidl/gen/pb-go/flyteid" + - "l/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - flyteidl.core.Literals.getDescriptor(), - flyteidl.core.Tasks.getDescriptor(), - flyteidl.core.Interface.getDescriptor(), - }, assigner); - internal_static_flyteidl_service_TaskCreateRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_service_TaskCreateRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskCreateRequest_descriptor, - new java.lang.String[] { "Inputs", "Template", "OutputPrefix", }); - internal_static_flyteidl_service_TaskCreateResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_service_TaskCreateResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskCreateResponse_descriptor, - new java.lang.String[] { "JobId", }); - internal_static_flyteidl_service_TaskGetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_flyteidl_service_TaskGetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskGetRequest_descriptor, - new java.lang.String[] { "TaskType", "JobId", }); - internal_static_flyteidl_service_TaskGetResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_flyteidl_service_TaskGetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskGetResponse_descriptor, - new java.lang.String[] { "State", "Outputs", }); - internal_static_flyteidl_service_TaskDeleteRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_flyteidl_service_TaskDeleteRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskDeleteRequest_descriptor, - new java.lang.String[] { "TaskType", "JobId", }); - internal_static_flyteidl_service_TaskDeleteResponse_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_flyteidl_service_TaskDeleteResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_TaskDeleteResponse_descriptor, - new java.lang.String[] { }); - flyteidl.core.Literals.getDescriptor(); - flyteidl.core.Tasks.getDescriptor(); - flyteidl.core.Interface.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Identity.java b/flyteidl/gen/pb-java/flyteidl/service/Identity.java deleted file mode 100644 index 742a6b05df..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Identity.java +++ /dev/null @@ -1,2392 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/identity.proto - -package flyteidl.service; - -public final class Identity { - private Identity() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface UserInfoRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.UserInfoRequest) - com.google.protobuf.MessageOrBuilder { - } - /** - * Protobuf type {@code flyteidl.service.UserInfoRequest} - */ - public static final class UserInfoRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.UserInfoRequest) - UserInfoRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserInfoRequest.newBuilder() to construct. - private UserInfoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserInfoRequest() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UserInfoRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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; - 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.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Identity.UserInfoRequest.class, flyteidl.service.Identity.UserInfoRequest.Builder.class); - } - - 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 { - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - 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.service.Identity.UserInfoRequest)) { - return super.equals(obj); - } - flyteidl.service.Identity.UserInfoRequest other = (flyteidl.service.Identity.UserInfoRequest) obj; - - 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(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Identity.UserInfoRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoRequest 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.service.Identity.UserInfoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoRequest 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.service.Identity.UserInfoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoRequest 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.service.Identity.UserInfoRequest 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; - } - /** - * Protobuf type {@code flyteidl.service.UserInfoRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.UserInfoRequest) - flyteidl.service.Identity.UserInfoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Identity.UserInfoRequest.class, flyteidl.service.Identity.UserInfoRequest.Builder.class); - } - - // Construct using flyteidl.service.Identity.UserInfoRequest.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(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoRequest_descriptor; - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoRequest getDefaultInstanceForType() { - return flyteidl.service.Identity.UserInfoRequest.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoRequest build() { - flyteidl.service.Identity.UserInfoRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoRequest buildPartial() { - flyteidl.service.Identity.UserInfoRequest result = new flyteidl.service.Identity.UserInfoRequest(this); - 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.service.Identity.UserInfoRequest) { - return mergeFrom((flyteidl.service.Identity.UserInfoRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Identity.UserInfoRequest other) { - if (other == flyteidl.service.Identity.UserInfoRequest.getDefaultInstance()) return this; - 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.service.Identity.UserInfoRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Identity.UserInfoRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - @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.service.UserInfoRequest) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoRequest) - private static final flyteidl.service.Identity.UserInfoRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Identity.UserInfoRequest(); - } - - public static flyteidl.service.Identity.UserInfoRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserInfoRequest(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.service.Identity.UserInfoRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface UserInfoResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:flyteidl.service.UserInfoResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-     * by the Client.
-     * 
- * - * string subject = 1; - */ - java.lang.String getSubject(); - /** - *
-     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-     * by the Client.
-     * 
- * - * string subject = 1; - */ - com.google.protobuf.ByteString - getSubjectBytes(); - - /** - *
-     * Full name
-     * 
- * - * string name = 2; - */ - java.lang.String getName(); - /** - *
-     * Full name
-     * 
- * - * string name = 2; - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-     * Shorthand name by which the End-User wishes to be referred to
-     * 
- * - * string preferred_username = 3; - */ - java.lang.String getPreferredUsername(); - /** - *
-     * Shorthand name by which the End-User wishes to be referred to
-     * 
- * - * string preferred_username = 3; - */ - com.google.protobuf.ByteString - getPreferredUsernameBytes(); - - /** - *
-     * Given name(s) or first name(s)
-     * 
- * - * string given_name = 4; - */ - java.lang.String getGivenName(); - /** - *
-     * Given name(s) or first name(s)
-     * 
- * - * string given_name = 4; - */ - com.google.protobuf.ByteString - getGivenNameBytes(); - - /** - *
-     * Surname(s) or last name(s)
-     * 
- * - * string family_name = 5; - */ - java.lang.String getFamilyName(); - /** - *
-     * Surname(s) or last name(s)
-     * 
- * - * string family_name = 5; - */ - com.google.protobuf.ByteString - getFamilyNameBytes(); - - /** - *
-     * Preferred e-mail address
-     * 
- * - * string email = 6; - */ - java.lang.String getEmail(); - /** - *
-     * Preferred e-mail address
-     * 
- * - * string email = 6; - */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - *
-     * Profile picture URL
-     * 
- * - * string picture = 7; - */ - java.lang.String getPicture(); - /** - *
-     * Profile picture URL
-     * 
- * - * string picture = 7; - */ - com.google.protobuf.ByteString - getPictureBytes(); - - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - boolean hasAdditionalClaims(); - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - com.google.protobuf.Struct getAdditionalClaims(); - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder(); - } - /** - *
-   * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information.
-   * 
- * - * Protobuf type {@code flyteidl.service.UserInfoResponse} - */ - public static final class UserInfoResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:flyteidl.service.UserInfoResponse) - UserInfoResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserInfoResponse.newBuilder() to construct. - private UserInfoResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UserInfoResponse() { - subject_ = ""; - name_ = ""; - preferredUsername_ = ""; - givenName_ = ""; - familyName_ = ""; - email_ = ""; - picture_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UserInfoResponse( - 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: { - java.lang.String s = input.readStringRequireUtf8(); - - subject_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - preferredUsername_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - givenName_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - familyName_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - picture_ = s; - break; - } - case 66: { - com.google.protobuf.Struct.Builder subBuilder = null; - if (additionalClaims_ != null) { - subBuilder = additionalClaims_.toBuilder(); - } - additionalClaims_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(additionalClaims_); - additionalClaims_ = 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.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Identity.UserInfoResponse.class, flyteidl.service.Identity.UserInfoResponse.Builder.class); - } - - public static final int SUBJECT_FIELD_NUMBER = 1; - private volatile java.lang.Object subject_; - /** - *
-     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-     * by the Client.
-     * 
- * - * string subject = 1; - */ - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } - } - /** - *
-     * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-     * by the Client.
-     * 
- * - * string subject = 1; - */ - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object name_; - /** - *
-     * Full name
-     * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-     * Full name
-     * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFERRED_USERNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object preferredUsername_; - /** - *
-     * Shorthand name by which the End-User wishes to be referred to
-     * 
- * - * string preferred_username = 3; - */ - public java.lang.String getPreferredUsername() { - java.lang.Object ref = preferredUsername_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredUsername_ = s; - return s; - } - } - /** - *
-     * Shorthand name by which the End-User wishes to be referred to
-     * 
- * - * string preferred_username = 3; - */ - public com.google.protobuf.ByteString - getPreferredUsernameBytes() { - java.lang.Object ref = preferredUsername_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - preferredUsername_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GIVEN_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object givenName_; - /** - *
-     * Given name(s) or first name(s)
-     * 
- * - * string given_name = 4; - */ - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - givenName_ = s; - return s; - } - } - /** - *
-     * Given name(s) or first name(s)
-     * 
- * - * string given_name = 4; - */ - public com.google.protobuf.ByteString - getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FAMILY_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object familyName_; - /** - *
-     * Surname(s) or last name(s)
-     * 
- * - * string family_name = 5; - */ - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - familyName_ = s; - return s; - } - } - /** - *
-     * Surname(s) or last name(s)
-     * 
- * - * string family_name = 5; - */ - public com.google.protobuf.ByteString - getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 6; - private volatile java.lang.Object email_; - /** - *
-     * Preferred e-mail address
-     * 
- * - * string email = 6; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - *
-     * Preferred e-mail address
-     * 
- * - * string email = 6; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PICTURE_FIELD_NUMBER = 7; - private volatile java.lang.Object picture_; - /** - *
-     * Profile picture URL
-     * 
- * - * string picture = 7; - */ - public java.lang.String getPicture() { - java.lang.Object ref = picture_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - picture_ = s; - return s; - } - } - /** - *
-     * Profile picture URL
-     * 
- * - * string picture = 7; - */ - public com.google.protobuf.ByteString - getPictureBytes() { - java.lang.Object ref = picture_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - picture_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDITIONAL_CLAIMS_FIELD_NUMBER = 8; - private com.google.protobuf.Struct additionalClaims_; - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public boolean hasAdditionalClaims() { - return additionalClaims_ != null; - } - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public com.google.protobuf.Struct getAdditionalClaims() { - return additionalClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; - } - /** - *
-     * Additional claims
-     * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder() { - return getAdditionalClaims(); - } - - 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 (!getSubjectBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); - } - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); - } - if (!getPreferredUsernameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, preferredUsername_); - } - if (!getGivenNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, givenName_); - } - if (!getFamilyNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, familyName_); - } - if (!getEmailBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, email_); - } - if (!getPictureBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, picture_); - } - if (additionalClaims_ != null) { - output.writeMessage(8, getAdditionalClaims()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getSubjectBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); - } - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); - } - if (!getPreferredUsernameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, preferredUsername_); - } - if (!getGivenNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, givenName_); - } - if (!getFamilyNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, familyName_); - } - if (!getEmailBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, email_); - } - if (!getPictureBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, picture_); - } - if (additionalClaims_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getAdditionalClaims()); - } - 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.service.Identity.UserInfoResponse)) { - return super.equals(obj); - } - flyteidl.service.Identity.UserInfoResponse other = (flyteidl.service.Identity.UserInfoResponse) obj; - - if (!getSubject() - .equals(other.getSubject())) return false; - if (!getName() - .equals(other.getName())) return false; - if (!getPreferredUsername() - .equals(other.getPreferredUsername())) return false; - if (!getGivenName() - .equals(other.getGivenName())) return false; - if (!getFamilyName() - .equals(other.getFamilyName())) return false; - if (!getEmail() - .equals(other.getEmail())) return false; - if (!getPicture() - .equals(other.getPicture())) return false; - if (hasAdditionalClaims() != other.hasAdditionalClaims()) return false; - if (hasAdditionalClaims()) { - if (!getAdditionalClaims() - .equals(other.getAdditionalClaims())) 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(); - hash = (37 * hash) + SUBJECT_FIELD_NUMBER; - hash = (53 * hash) + getSubject().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PREFERRED_USERNAME_FIELD_NUMBER; - hash = (53 * hash) + getPreferredUsername().hashCode(); - hash = (37 * hash) + GIVEN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getGivenName().hashCode(); - hash = (37 * hash) + FAMILY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFamilyName().hashCode(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + PICTURE_FIELD_NUMBER; - hash = (53 * hash) + getPicture().hashCode(); - if (hasAdditionalClaims()) { - hash = (37 * hash) + ADDITIONAL_CLAIMS_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalClaims().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static flyteidl.service.Identity.UserInfoResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static flyteidl.service.Identity.UserInfoResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoResponse 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.service.Identity.UserInfoResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoResponse 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.service.Identity.UserInfoResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static flyteidl.service.Identity.UserInfoResponse 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.service.Identity.UserInfoResponse 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; - } - /** - *
-     * See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information.
-     * 
- * - * Protobuf type {@code flyteidl.service.UserInfoResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:flyteidl.service.UserInfoResponse) - flyteidl.service.Identity.UserInfoResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - flyteidl.service.Identity.UserInfoResponse.class, flyteidl.service.Identity.UserInfoResponse.Builder.class); - } - - // Construct using flyteidl.service.Identity.UserInfoResponse.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(); - subject_ = ""; - - name_ = ""; - - preferredUsername_ = ""; - - givenName_ = ""; - - familyName_ = ""; - - email_ = ""; - - picture_ = ""; - - if (additionalClaimsBuilder_ == null) { - additionalClaims_ = null; - } else { - additionalClaims_ = null; - additionalClaimsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return flyteidl.service.Identity.internal_static_flyteidl_service_UserInfoResponse_descriptor; - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoResponse getDefaultInstanceForType() { - return flyteidl.service.Identity.UserInfoResponse.getDefaultInstance(); - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoResponse build() { - flyteidl.service.Identity.UserInfoResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public flyteidl.service.Identity.UserInfoResponse buildPartial() { - flyteidl.service.Identity.UserInfoResponse result = new flyteidl.service.Identity.UserInfoResponse(this); - result.subject_ = subject_; - result.name_ = name_; - result.preferredUsername_ = preferredUsername_; - result.givenName_ = givenName_; - result.familyName_ = familyName_; - result.email_ = email_; - result.picture_ = picture_; - if (additionalClaimsBuilder_ == null) { - result.additionalClaims_ = additionalClaims_; - } else { - result.additionalClaims_ = additionalClaimsBuilder_.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.service.Identity.UserInfoResponse) { - return mergeFrom((flyteidl.service.Identity.UserInfoResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(flyteidl.service.Identity.UserInfoResponse other) { - if (other == flyteidl.service.Identity.UserInfoResponse.getDefaultInstance()) return this; - if (!other.getSubject().isEmpty()) { - subject_ = other.subject_; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getPreferredUsername().isEmpty()) { - preferredUsername_ = other.preferredUsername_; - onChanged(); - } - if (!other.getGivenName().isEmpty()) { - givenName_ = other.givenName_; - onChanged(); - } - if (!other.getFamilyName().isEmpty()) { - familyName_ = other.familyName_; - onChanged(); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - if (!other.getPicture().isEmpty()) { - picture_ = other.picture_; - onChanged(); - } - if (other.hasAdditionalClaims()) { - mergeAdditionalClaims(other.getAdditionalClaims()); - } - 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.service.Identity.UserInfoResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (flyteidl.service.Identity.UserInfoResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object subject_ = ""; - /** - *
-       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-       * by the Client.
-       * 
- * - * string subject = 1; - */ - public java.lang.String getSubject() { - java.lang.Object ref = subject_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - subject_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-       * by the Client.
-       * 
- * - * string subject = 1; - */ - public com.google.protobuf.ByteString - getSubjectBytes() { - java.lang.Object ref = subject_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - subject_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-       * by the Client.
-       * 
- * - * string subject = 1; - */ - public Builder setSubject( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - subject_ = value; - onChanged(); - return this; - } - /** - *
-       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-       * by the Client.
-       * 
- * - * string subject = 1; - */ - public Builder clearSubject() { - - subject_ = getDefaultInstance().getSubject(); - onChanged(); - return this; - } - /** - *
-       * Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
-       * by the Client.
-       * 
- * - * string subject = 1; - */ - public Builder setSubjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - subject_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-       * Full name
-       * 
- * - * string name = 2; - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Full name
-       * 
- * - * string name = 2; - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Full name
-       * 
- * - * string name = 2; - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
-       * Full name
-       * 
- * - * string name = 2; - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
-       * Full name
-       * 
- * - * string name = 2; - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object preferredUsername_ = ""; - /** - *
-       * Shorthand name by which the End-User wishes to be referred to
-       * 
- * - * string preferred_username = 3; - */ - public java.lang.String getPreferredUsername() { - java.lang.Object ref = preferredUsername_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredUsername_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Shorthand name by which the End-User wishes to be referred to
-       * 
- * - * string preferred_username = 3; - */ - public com.google.protobuf.ByteString - getPreferredUsernameBytes() { - java.lang.Object ref = preferredUsername_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - preferredUsername_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Shorthand name by which the End-User wishes to be referred to
-       * 
- * - * string preferred_username = 3; - */ - public Builder setPreferredUsername( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - preferredUsername_ = value; - onChanged(); - return this; - } - /** - *
-       * Shorthand name by which the End-User wishes to be referred to
-       * 
- * - * string preferred_username = 3; - */ - public Builder clearPreferredUsername() { - - preferredUsername_ = getDefaultInstance().getPreferredUsername(); - onChanged(); - return this; - } - /** - *
-       * Shorthand name by which the End-User wishes to be referred to
-       * 
- * - * string preferred_username = 3; - */ - public Builder setPreferredUsernameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - preferredUsername_ = value; - onChanged(); - return this; - } - - private java.lang.Object givenName_ = ""; - /** - *
-       * Given name(s) or first name(s)
-       * 
- * - * string given_name = 4; - */ - public java.lang.String getGivenName() { - java.lang.Object ref = givenName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - givenName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Given name(s) or first name(s)
-       * 
- * - * string given_name = 4; - */ - public com.google.protobuf.ByteString - getGivenNameBytes() { - java.lang.Object ref = givenName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - givenName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Given name(s) or first name(s)
-       * 
- * - * string given_name = 4; - */ - public Builder setGivenName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - givenName_ = value; - onChanged(); - return this; - } - /** - *
-       * Given name(s) or first name(s)
-       * 
- * - * string given_name = 4; - */ - public Builder clearGivenName() { - - givenName_ = getDefaultInstance().getGivenName(); - onChanged(); - return this; - } - /** - *
-       * Given name(s) or first name(s)
-       * 
- * - * string given_name = 4; - */ - public Builder setGivenNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - givenName_ = value; - onChanged(); - return this; - } - - private java.lang.Object familyName_ = ""; - /** - *
-       * Surname(s) or last name(s)
-       * 
- * - * string family_name = 5; - */ - public java.lang.String getFamilyName() { - java.lang.Object ref = familyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - familyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Surname(s) or last name(s)
-       * 
- * - * string family_name = 5; - */ - public com.google.protobuf.ByteString - getFamilyNameBytes() { - java.lang.Object ref = familyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - familyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Surname(s) or last name(s)
-       * 
- * - * string family_name = 5; - */ - public Builder setFamilyName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - familyName_ = value; - onChanged(); - return this; - } - /** - *
-       * Surname(s) or last name(s)
-       * 
- * - * string family_name = 5; - */ - public Builder clearFamilyName() { - - familyName_ = getDefaultInstance().getFamilyName(); - onChanged(); - return this; - } - /** - *
-       * Surname(s) or last name(s)
-       * 
- * - * string family_name = 5; - */ - public Builder setFamilyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - familyName_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - *
-       * Preferred e-mail address
-       * 
- * - * string email = 6; - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Preferred e-mail address
-       * 
- * - * string email = 6; - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Preferred e-mail address
-       * 
- * - * string email = 6; - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - *
-       * Preferred e-mail address
-       * 
- * - * string email = 6; - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - *
-       * Preferred e-mail address
-       * 
- * - * string email = 6; - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object picture_ = ""; - /** - *
-       * Profile picture URL
-       * 
- * - * string picture = 7; - */ - public java.lang.String getPicture() { - java.lang.Object ref = picture_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - picture_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Profile picture URL
-       * 
- * - * string picture = 7; - */ - public com.google.protobuf.ByteString - getPictureBytes() { - java.lang.Object ref = picture_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - picture_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Profile picture URL
-       * 
- * - * string picture = 7; - */ - public Builder setPicture( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - picture_ = value; - onChanged(); - return this; - } - /** - *
-       * Profile picture URL
-       * 
- * - * string picture = 7; - */ - public Builder clearPicture() { - - picture_ = getDefaultInstance().getPicture(); - onChanged(); - return this; - } - /** - *
-       * Profile picture URL
-       * 
- * - * string picture = 7; - */ - public Builder setPictureBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - picture_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.Struct additionalClaims_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> additionalClaimsBuilder_; - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public boolean hasAdditionalClaims() { - return additionalClaimsBuilder_ != null || additionalClaims_ != null; - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public com.google.protobuf.Struct getAdditionalClaims() { - if (additionalClaimsBuilder_ == null) { - return additionalClaims_ == null ? com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; - } else { - return additionalClaimsBuilder_.getMessage(); - } - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public Builder setAdditionalClaims(com.google.protobuf.Struct value) { - if (additionalClaimsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - additionalClaims_ = value; - onChanged(); - } else { - additionalClaimsBuilder_.setMessage(value); - } - - return this; - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public Builder setAdditionalClaims( - com.google.protobuf.Struct.Builder builderForValue) { - if (additionalClaimsBuilder_ == null) { - additionalClaims_ = builderForValue.build(); - onChanged(); - } else { - additionalClaimsBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public Builder mergeAdditionalClaims(com.google.protobuf.Struct value) { - if (additionalClaimsBuilder_ == null) { - if (additionalClaims_ != null) { - additionalClaims_ = - com.google.protobuf.Struct.newBuilder(additionalClaims_).mergeFrom(value).buildPartial(); - } else { - additionalClaims_ = value; - } - onChanged(); - } else { - additionalClaimsBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public Builder clearAdditionalClaims() { - if (additionalClaimsBuilder_ == null) { - additionalClaims_ = null; - onChanged(); - } else { - additionalClaims_ = null; - additionalClaimsBuilder_ = null; - } - - return this; - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public com.google.protobuf.Struct.Builder getAdditionalClaimsBuilder() { - - onChanged(); - return getAdditionalClaimsFieldBuilder().getBuilder(); - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - public com.google.protobuf.StructOrBuilder getAdditionalClaimsOrBuilder() { - if (additionalClaimsBuilder_ != null) { - return additionalClaimsBuilder_.getMessageOrBuilder(); - } else { - return additionalClaims_ == null ? - com.google.protobuf.Struct.getDefaultInstance() : additionalClaims_; - } - } - /** - *
-       * Additional claims
-       * 
- * - * .google.protobuf.Struct additional_claims = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> - getAdditionalClaimsFieldBuilder() { - if (additionalClaimsBuilder_ == null) { - additionalClaimsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( - getAdditionalClaims(), - getParentForChildren(), - isClean()); - additionalClaims_ = null; - } - return additionalClaimsBuilder_; - } - @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.service.UserInfoResponse) - } - - // @@protoc_insertion_point(class_scope:flyteidl.service.UserInfoResponse) - private static final flyteidl.service.Identity.UserInfoResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new flyteidl.service.Identity.UserInfoResponse(); - } - - public static flyteidl.service.Identity.UserInfoResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserInfoResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UserInfoResponse(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.service.Identity.UserInfoResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_UserInfoRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_flyteidl_service_UserInfoResponse_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\037flyteidl/service/identity.proto\022\020flyte" + - "idl.service\032\034google/api/annotations.prot" + - "o\032\034google/protobuf/struct.proto\"\021\n\017UserI" + - "nfoRequest\"\312\001\n\020UserInfoResponse\022\017\n\007subje" + - "ct\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\032\n\022preferred_user" + - "name\030\003 \001(\t\022\022\n\ngiven_name\030\004 \001(\t\022\023\n\013family" + - "_name\030\005 \001(\t\022\r\n\005email\030\006 \001(\t\022\017\n\007picture\030\007 " + - "\001(\t\0222\n\021additional_claims\030\010 \001(\0132\027.google." + - "protobuf.Struct2q\n\017IdentityService\022^\n\010Us" + - "erInfo\022!.flyteidl.service.UserInfoReques" + - "t\032\".flyteidl.service.UserInfoResponse\"\013\202" + - "\323\344\223\002\005\022\003/meB?Z=github.com/flyteorg/flyte/" + - "flyteidl/gen/pb-go/flyteidl/serviceb\006pro" + - "to3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.StructProto.getDescriptor(), - }, assigner); - internal_static_flyteidl_service_UserInfoRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_flyteidl_service_UserInfoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_UserInfoRequest_descriptor, - new java.lang.String[] { }); - internal_static_flyteidl_service_UserInfoResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_flyteidl_service_UserInfoResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_flyteidl_service_UserInfoResponse_descriptor, - new java.lang.String[] { "Subject", "Name", "PreferredUsername", "GivenName", "FamilyName", "Email", "Picture", "AdditionalClaims", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.StructProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-java/flyteidl/service/Signal.java b/flyteidl/gen/pb-java/flyteidl/service/Signal.java deleted file mode 100644 index bf83c2a8b0..0000000000 --- a/flyteidl/gen/pb-java/flyteidl/service/Signal.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: flyteidl/service/signal.proto - -package flyteidl.service; - -public final class Signal { - private Signal() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035flyteidl/service/signal.proto\022\020flyteid" + - "l.service\032\034google/api/annotations.proto\032" + - "\033flyteidl/admin/signal.proto2\232\003\n\rSignalS" + - "ervice\022W\n\021GetOrCreateSignal\022(.flyteidl.a" + - "dmin.SignalGetOrCreateRequest\032\026.flyteidl" + - ".admin.Signal\"\000\022\301\001\n\013ListSignals\022!.flytei" + - "dl.admin.SignalListRequest\032\032.flyteidl.ad" + - "min.SignalList\"s\202\323\344\223\002m\022k/api/v1/signals/" + - "{workflow_execution_id.project}/{workflo" + - "w_execution_id.domain}/{workflow_executi" + - "on_id.name}\022l\n\tSetSignal\022 .flyteidl.admi" + - "n.SignalSetRequest\032!.flyteidl.admin.Sign" + - "alSetResponse\"\032\202\323\344\223\002\024\"\017/api/v1/signals:\001" + - "*B?Z=github.com/flyteorg/flyte/flyteidl/" + - "gen/pb-go/flyteidl/serviceb\006proto3" - }; - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = - new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { - public com.google.protobuf.ExtensionRegistry assignDescriptors( - com.google.protobuf.Descriptors.FileDescriptor root) { - descriptor = root; - return null; - } - }; - com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - flyteidl.admin.SignalOuterClass.getDescriptor(), - }, assigner); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.AnnotationsProto.http); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - flyteidl.admin.SignalOuterClass.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/flyteidl/gen/pb-js/flyteidl.d.ts b/flyteidl/gen/pb-js/flyteidl.d.ts deleted file mode 100644 index af564753d4..0000000000 --- a/flyteidl/gen/pb-js/flyteidl.d.ts +++ /dev/null @@ -1,25684 +0,0 @@ -import * as $protobuf from "protobufjs"; -/** Namespace flyteidl. */ -export namespace flyteidl { - - /** Namespace core. */ - namespace core { - - /** Properties of an ArtifactKey. */ - interface IArtifactKey { - - /** ArtifactKey project */ - project?: (string|null); - - /** ArtifactKey domain */ - domain?: (string|null); - - /** ArtifactKey name */ - name?: (string|null); - } - - /** Represents an ArtifactKey. */ - class ArtifactKey implements IArtifactKey { - - /** - * Constructs a new ArtifactKey. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactKey); - - /** ArtifactKey project. */ - public project: string; - - /** ArtifactKey domain. */ - public domain: string; - - /** ArtifactKey name. */ - public name: string; - - /** - * Creates a new ArtifactKey instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactKey instance - */ - public static create(properties?: flyteidl.core.IArtifactKey): flyteidl.core.ArtifactKey; - - /** - * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. - * @param message ArtifactKey message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactKey, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactKey message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactKey - * @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.core.ArtifactKey; - - /** - * Verifies an ArtifactKey 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 an ArtifactBindingData. */ - interface IArtifactBindingData { - - /** ArtifactBindingData index */ - index?: (number|null); - - /** ArtifactBindingData partitionKey */ - partitionKey?: (string|null); - - /** ArtifactBindingData transform */ - transform?: (string|null); - } - - /** Represents an ArtifactBindingData. */ - class ArtifactBindingData implements IArtifactBindingData { - - /** - * Constructs a new ArtifactBindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactBindingData); - - /** ArtifactBindingData index. */ - public index: number; - - /** ArtifactBindingData partitionKey. */ - public partitionKey: string; - - /** ArtifactBindingData transform. */ - public transform: string; - - /** - * Creates a new ArtifactBindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactBindingData instance - */ - public static create(properties?: flyteidl.core.IArtifactBindingData): flyteidl.core.ArtifactBindingData; - - /** - * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. - * @param message ArtifactBindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactBindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactBindingData - * @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.core.ArtifactBindingData; - - /** - * Verifies an ArtifactBindingData 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 an InputBindingData. */ - interface IInputBindingData { - - /** InputBindingData var */ - "var"?: (string|null); - } - - /** Represents an InputBindingData. */ - class InputBindingData implements IInputBindingData { - - /** - * Constructs a new InputBindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IInputBindingData); - - /** InputBindingData var. */ - public var: string; - - /** - * Creates a new InputBindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns InputBindingData instance - */ - public static create(properties?: flyteidl.core.IInputBindingData): flyteidl.core.InputBindingData; - - /** - * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. - * @param message InputBindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IInputBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an InputBindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns InputBindingData - * @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.core.InputBindingData; - - /** - * Verifies an InputBindingData 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 LabelValue. */ - interface ILabelValue { - - /** LabelValue staticValue */ - staticValue?: (string|null); - - /** LabelValue triggeredBinding */ - triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); - - /** LabelValue inputBinding */ - inputBinding?: (flyteidl.core.IInputBindingData|null); - } - - /** Represents a LabelValue. */ - class LabelValue implements ILabelValue { - - /** - * Constructs a new LabelValue. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILabelValue); - - /** LabelValue staticValue. */ - public staticValue: string; - - /** LabelValue triggeredBinding. */ - public triggeredBinding?: (flyteidl.core.IArtifactBindingData|null); - - /** LabelValue inputBinding. */ - public inputBinding?: (flyteidl.core.IInputBindingData|null); - - /** LabelValue value. */ - public value?: ("staticValue"|"triggeredBinding"|"inputBinding"); - - /** - * Creates a new LabelValue instance using the specified properties. - * @param [properties] Properties to set - * @returns LabelValue instance - */ - public static create(properties?: flyteidl.core.ILabelValue): flyteidl.core.LabelValue; - - /** - * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. - * @param message LabelValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILabelValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LabelValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LabelValue - * @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.core.LabelValue; - - /** - * Verifies a LabelValue 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 Partitions. */ - interface IPartitions { - - /** Partitions value */ - value?: ({ [k: string]: flyteidl.core.ILabelValue }|null); - } - - /** Represents a Partitions. */ - class Partitions implements IPartitions { - - /** - * Constructs a new Partitions. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPartitions); - - /** Partitions value. */ - public value: { [k: string]: flyteidl.core.ILabelValue }; - - /** - * Creates a new Partitions instance using the specified properties. - * @param [properties] Properties to set - * @returns Partitions instance - */ - public static create(properties?: flyteidl.core.IPartitions): flyteidl.core.Partitions; - - /** - * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. - * @param message Partitions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPartitions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Partitions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Partitions - * @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.core.Partitions; - - /** - * Verifies a Partitions 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 an ArtifactID. */ - interface IArtifactID { - - /** ArtifactID artifactKey */ - artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactID version */ - version?: (string|null); - - /** ArtifactID partitions */ - partitions?: (flyteidl.core.IPartitions|null); - } - - /** Represents an ArtifactID. */ - class ArtifactID implements IArtifactID { - - /** - * Constructs a new ArtifactID. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactID); - - /** ArtifactID artifactKey. */ - public artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactID version. */ - public version: string; - - /** ArtifactID partitions. */ - public partitions?: (flyteidl.core.IPartitions|null); - - /** ArtifactID dimensions. */ - public dimensions?: "partitions"; - - /** - * Creates a new ArtifactID instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactID instance - */ - public static create(properties?: flyteidl.core.IArtifactID): flyteidl.core.ArtifactID; - - /** - * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. - * @param message ArtifactID message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactID, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactID message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactID - * @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.core.ArtifactID; - - /** - * Verifies an ArtifactID 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 an ArtifactTag. */ - interface IArtifactTag { - - /** ArtifactTag artifactKey */ - artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactTag value */ - value?: (flyteidl.core.ILabelValue|null); - } - - /** Represents an ArtifactTag. */ - class ArtifactTag implements IArtifactTag { - - /** - * Constructs a new ArtifactTag. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactTag); - - /** ArtifactTag artifactKey. */ - public artifactKey?: (flyteidl.core.IArtifactKey|null); - - /** ArtifactTag value. */ - public value?: (flyteidl.core.ILabelValue|null); - - /** - * Creates a new ArtifactTag instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactTag instance - */ - public static create(properties?: flyteidl.core.IArtifactTag): flyteidl.core.ArtifactTag; - - /** - * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. - * @param message ArtifactTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactTag - * @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.core.ArtifactTag; - - /** - * Verifies an ArtifactTag 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 an ArtifactQuery. */ - interface IArtifactQuery { - - /** ArtifactQuery artifactId */ - artifactId?: (flyteidl.core.IArtifactID|null); - - /** ArtifactQuery artifactTag */ - artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** ArtifactQuery uri */ - uri?: (string|null); - - /** ArtifactQuery binding */ - binding?: (flyteidl.core.IArtifactBindingData|null); - } - - /** Represents an ArtifactQuery. */ - class ArtifactQuery implements IArtifactQuery { - - /** - * Constructs a new ArtifactQuery. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArtifactQuery); - - /** ArtifactQuery artifactId. */ - public artifactId?: (flyteidl.core.IArtifactID|null); - - /** ArtifactQuery artifactTag. */ - public artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** ArtifactQuery uri. */ - public uri: string; - - /** ArtifactQuery binding. */ - public binding?: (flyteidl.core.IArtifactBindingData|null); - - /** ArtifactQuery identifier. */ - public identifier?: ("artifactId"|"artifactTag"|"uri"|"binding"); - - /** - * Creates a new ArtifactQuery instance using the specified properties. - * @param [properties] Properties to set - * @returns ArtifactQuery instance - */ - public static create(properties?: flyteidl.core.IArtifactQuery): flyteidl.core.ArtifactQuery; - - /** - * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. - * @param message ArtifactQuery message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArtifactQuery, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArtifactQuery message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArtifactQuery - * @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.core.ArtifactQuery; - - /** - * Verifies an ArtifactQuery 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 Trigger. */ - interface ITrigger { - - /** Trigger triggerId */ - triggerId?: (flyteidl.core.IIdentifier|null); - - /** Trigger triggers */ - triggers?: (flyteidl.core.IArtifactID[]|null); - } - - /** Represents a Trigger. */ - class Trigger implements ITrigger { - - /** - * Constructs a new Trigger. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITrigger); - - /** Trigger triggerId. */ - public triggerId?: (flyteidl.core.IIdentifier|null); - - /** Trigger triggers. */ - public triggers: flyteidl.core.IArtifactID[]; - - /** - * Creates a new Trigger instance using the specified properties. - * @param [properties] Properties to set - * @returns Trigger instance - */ - public static create(properties?: flyteidl.core.ITrigger): flyteidl.core.Trigger; - - /** - * Encodes the specified Trigger message. Does not implicitly {@link flyteidl.core.Trigger.verify|verify} messages. - * @param message Trigger message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITrigger, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Trigger message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Trigger - * @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.core.Trigger; - - /** - * Verifies a Trigger 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); - } - - /** ResourceType enum. */ - enum ResourceType { - UNSPECIFIED = 0, - TASK = 1, - WORKFLOW = 2, - LAUNCH_PLAN = 3, - DATASET = 4 - } - - /** Properties of an Identifier. */ - interface IIdentifier { - - /** Identifier resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** Identifier project */ - project?: (string|null); - - /** Identifier domain */ - domain?: (string|null); - - /** Identifier name */ - name?: (string|null); - - /** Identifier version */ - version?: (string|null); - } - - /** Represents an Identifier. */ - class Identifier implements IIdentifier { - - /** - * Constructs a new Identifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIdentifier); - - /** Identifier resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** Identifier project. */ - public project: string; - - /** Identifier domain. */ - public domain: string; - - /** Identifier name. */ - public name: string; - - /** Identifier version. */ - public version: string; - - /** - * Creates a new Identifier instance using the specified properties. - * @param [properties] Properties to set - * @returns Identifier instance - */ - public static create(properties?: flyteidl.core.IIdentifier): flyteidl.core.Identifier; - - /** - * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. - * @param message Identifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Identifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Identifier - * @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.core.Identifier; - - /** - * Verifies an Identifier 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 WorkflowExecutionIdentifier. */ - interface IWorkflowExecutionIdentifier { - - /** WorkflowExecutionIdentifier project */ - project?: (string|null); - - /** WorkflowExecutionIdentifier domain */ - domain?: (string|null); - - /** WorkflowExecutionIdentifier name */ - name?: (string|null); - } - - /** Represents a WorkflowExecutionIdentifier. */ - class WorkflowExecutionIdentifier implements IWorkflowExecutionIdentifier { - - /** - * Constructs a new WorkflowExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowExecutionIdentifier); - - /** WorkflowExecutionIdentifier project. */ - public project: string; - - /** WorkflowExecutionIdentifier domain. */ - public domain: string; - - /** WorkflowExecutionIdentifier name. */ - public name: string; - - /** - * Creates a new WorkflowExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.IWorkflowExecutionIdentifier): flyteidl.core.WorkflowExecutionIdentifier; - - /** - * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. - * @param message WorkflowExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionIdentifier - * @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.core.WorkflowExecutionIdentifier; - - /** - * Verifies a WorkflowExecutionIdentifier 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 NodeExecutionIdentifier. */ - interface INodeExecutionIdentifier { - - /** NodeExecutionIdentifier nodeId */ - nodeId?: (string|null); - - /** NodeExecutionIdentifier executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a NodeExecutionIdentifier. */ - class NodeExecutionIdentifier implements INodeExecutionIdentifier { - - /** - * Constructs a new NodeExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeExecutionIdentifier); - - /** NodeExecutionIdentifier nodeId. */ - public nodeId: string; - - /** NodeExecutionIdentifier executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.INodeExecutionIdentifier): flyteidl.core.NodeExecutionIdentifier; - - /** - * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. - * @param message NodeExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionIdentifier - * @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.core.NodeExecutionIdentifier; - - /** - * Verifies a NodeExecutionIdentifier 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 TaskExecutionIdentifier. */ - interface ITaskExecutionIdentifier { - - /** TaskExecutionIdentifier taskId */ - taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionIdentifier nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionIdentifier retryAttempt */ - retryAttempt?: (number|null); - } - - /** Represents a TaskExecutionIdentifier. */ - class TaskExecutionIdentifier implements ITaskExecutionIdentifier { - - /** - * Constructs a new TaskExecutionIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskExecutionIdentifier); - - /** TaskExecutionIdentifier taskId. */ - public taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionIdentifier nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionIdentifier retryAttempt. */ - public retryAttempt: number; - - /** - * Creates a new TaskExecutionIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionIdentifier instance - */ - public static create(properties?: flyteidl.core.ITaskExecutionIdentifier): flyteidl.core.TaskExecutionIdentifier; - - /** - * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. - * @param message TaskExecutionIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskExecutionIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionIdentifier - * @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.core.TaskExecutionIdentifier; - - /** - * Verifies a TaskExecutionIdentifier 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 SignalIdentifier. */ - interface ISignalIdentifier { - - /** SignalIdentifier signalId */ - signalId?: (string|null); - - /** SignalIdentifier executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a SignalIdentifier. */ - class SignalIdentifier implements ISignalIdentifier { - - /** - * Constructs a new SignalIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISignalIdentifier); - - /** SignalIdentifier signalId. */ - public signalId: string; - - /** SignalIdentifier executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new SignalIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalIdentifier instance - */ - public static create(properties?: flyteidl.core.ISignalIdentifier): flyteidl.core.SignalIdentifier; - - /** - * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. - * @param message SignalIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISignalIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalIdentifier - * @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.core.SignalIdentifier; - - /** - * Verifies a SignalIdentifier 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); - } - - /** CatalogCacheStatus enum. */ - enum CatalogCacheStatus { - CACHE_DISABLED = 0, - CACHE_MISS = 1, - CACHE_HIT = 2, - CACHE_POPULATED = 3, - CACHE_LOOKUP_FAILURE = 4, - CACHE_PUT_FAILURE = 5, - CACHE_SKIPPED = 6 - } - - /** Properties of a CatalogArtifactTag. */ - interface ICatalogArtifactTag { - - /** CatalogArtifactTag artifactId */ - artifactId?: (string|null); - - /** CatalogArtifactTag name */ - name?: (string|null); - } - - /** Represents a CatalogArtifactTag. */ - class CatalogArtifactTag implements ICatalogArtifactTag { - - /** - * Constructs a new CatalogArtifactTag. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogArtifactTag); - - /** CatalogArtifactTag artifactId. */ - public artifactId: string; - - /** CatalogArtifactTag name. */ - public name: string; - - /** - * Creates a new CatalogArtifactTag instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogArtifactTag instance - */ - public static create(properties?: flyteidl.core.ICatalogArtifactTag): flyteidl.core.CatalogArtifactTag; - - /** - * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. - * @param message CatalogArtifactTag message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogArtifactTag, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogArtifactTag message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogArtifactTag - * @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.core.CatalogArtifactTag; - - /** - * Verifies a CatalogArtifactTag 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 CatalogMetadata. */ - interface ICatalogMetadata { - - /** CatalogMetadata datasetId */ - datasetId?: (flyteidl.core.IIdentifier|null); - - /** CatalogMetadata artifactTag */ - artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); - - /** CatalogMetadata sourceTaskExecution */ - sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a CatalogMetadata. */ - class CatalogMetadata implements ICatalogMetadata { - - /** - * Constructs a new CatalogMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogMetadata); - - /** CatalogMetadata datasetId. */ - public datasetId?: (flyteidl.core.IIdentifier|null); - - /** CatalogMetadata artifactTag. */ - public artifactTag?: (flyteidl.core.ICatalogArtifactTag|null); - - /** CatalogMetadata sourceTaskExecution. */ - public sourceTaskExecution?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CatalogMetadata sourceExecution. */ - public sourceExecution?: "sourceTaskExecution"; - - /** - * Creates a new CatalogMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogMetadata instance - */ - public static create(properties?: flyteidl.core.ICatalogMetadata): flyteidl.core.CatalogMetadata; - - /** - * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. - * @param message CatalogMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogMetadata - * @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.core.CatalogMetadata; - - /** - * Verifies a CatalogMetadata 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 CatalogReservation. */ - interface ICatalogReservation { - } - - /** Represents a CatalogReservation. */ - class CatalogReservation implements ICatalogReservation { - - /** - * Constructs a new CatalogReservation. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICatalogReservation); - - /** - * Creates a new CatalogReservation instance using the specified properties. - * @param [properties] Properties to set - * @returns CatalogReservation instance - */ - public static create(properties?: flyteidl.core.ICatalogReservation): flyteidl.core.CatalogReservation; - - /** - * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. - * @param message CatalogReservation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICatalogReservation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CatalogReservation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CatalogReservation - * @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.core.CatalogReservation; - - /** - * Verifies a CatalogReservation 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); - } - - namespace CatalogReservation { - - /** Status enum. */ - enum Status { - RESERVATION_DISABLED = 0, - RESERVATION_ACQUIRED = 1, - RESERVATION_EXISTS = 2, - RESERVATION_RELEASED = 3, - RESERVATION_FAILURE = 4 - } - } - - /** Properties of a ConnectionSet. */ - interface IConnectionSet { - - /** ConnectionSet downstream */ - downstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); - - /** ConnectionSet upstream */ - upstream?: ({ [k: string]: flyteidl.core.ConnectionSet.IIdList }|null); - } - - /** Represents a ConnectionSet. */ - class ConnectionSet implements IConnectionSet { - - /** - * Constructs a new ConnectionSet. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IConnectionSet); - - /** ConnectionSet downstream. */ - public downstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; - - /** ConnectionSet upstream. */ - public upstream: { [k: string]: flyteidl.core.ConnectionSet.IIdList }; - - /** - * Creates a new ConnectionSet instance using the specified properties. - * @param [properties] Properties to set - * @returns ConnectionSet instance - */ - public static create(properties?: flyteidl.core.IConnectionSet): flyteidl.core.ConnectionSet; - - /** - * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. - * @param message ConnectionSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IConnectionSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConnectionSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConnectionSet - * @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.core.ConnectionSet; - - /** - * Verifies a ConnectionSet 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); - } - - namespace ConnectionSet { - - /** Properties of an IdList. */ - interface IIdList { - - /** IdList ids */ - ids?: (string[]|null); - } - - /** Represents an IdList. */ - class IdList implements IIdList { - - /** - * Constructs a new IdList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ConnectionSet.IIdList); - - /** IdList ids. */ - public ids: string[]; - - /** - * Creates a new IdList instance using the specified properties. - * @param [properties] Properties to set - * @returns IdList instance - */ - public static create(properties?: flyteidl.core.ConnectionSet.IIdList): flyteidl.core.ConnectionSet.IdList; - - /** - * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. - * @param message IdList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ConnectionSet.IIdList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IdList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IdList - * @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.core.ConnectionSet.IdList; - - /** - * Verifies an IdList 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 CompiledWorkflow. */ - interface ICompiledWorkflow { - - /** CompiledWorkflow template */ - template?: (flyteidl.core.IWorkflowTemplate|null); - - /** CompiledWorkflow connections */ - connections?: (flyteidl.core.IConnectionSet|null); - } - - /** Represents a CompiledWorkflow. */ - class CompiledWorkflow implements ICompiledWorkflow { - - /** - * Constructs a new CompiledWorkflow. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledWorkflow); - - /** CompiledWorkflow template. */ - public template?: (flyteidl.core.IWorkflowTemplate|null); - - /** CompiledWorkflow connections. */ - public connections?: (flyteidl.core.IConnectionSet|null); - - /** - * Creates a new CompiledWorkflow instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledWorkflow instance - */ - public static create(properties?: flyteidl.core.ICompiledWorkflow): flyteidl.core.CompiledWorkflow; - - /** - * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. - * @param message CompiledWorkflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledWorkflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledWorkflow - * @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.core.CompiledWorkflow; - - /** - * Verifies a CompiledWorkflow 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 CompiledTask. */ - interface ICompiledTask { - - /** CompiledTask template */ - template?: (flyteidl.core.ITaskTemplate|null); - } - - /** Represents a CompiledTask. */ - class CompiledTask implements ICompiledTask { - - /** - * Constructs a new CompiledTask. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledTask); - - /** CompiledTask template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** - * Creates a new CompiledTask instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledTask instance - */ - public static create(properties?: flyteidl.core.ICompiledTask): flyteidl.core.CompiledTask; - - /** - * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. - * @param message CompiledTask message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledTask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledTask message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledTask - * @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.core.CompiledTask; - - /** - * Verifies a CompiledTask 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 CompiledWorkflowClosure. */ - interface ICompiledWorkflowClosure { - - /** CompiledWorkflowClosure primary */ - primary?: (flyteidl.core.ICompiledWorkflow|null); - - /** CompiledWorkflowClosure subWorkflows */ - subWorkflows?: (flyteidl.core.ICompiledWorkflow[]|null); - - /** CompiledWorkflowClosure tasks */ - tasks?: (flyteidl.core.ICompiledTask[]|null); - } - - /** Represents a CompiledWorkflowClosure. */ - class CompiledWorkflowClosure implements ICompiledWorkflowClosure { - - /** - * Constructs a new CompiledWorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ICompiledWorkflowClosure); - - /** CompiledWorkflowClosure primary. */ - public primary?: (flyteidl.core.ICompiledWorkflow|null); - - /** CompiledWorkflowClosure subWorkflows. */ - public subWorkflows: flyteidl.core.ICompiledWorkflow[]; - - /** CompiledWorkflowClosure tasks. */ - public tasks: flyteidl.core.ICompiledTask[]; - - /** - * Creates a new CompiledWorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns CompiledWorkflowClosure instance - */ - public static create(properties?: flyteidl.core.ICompiledWorkflowClosure): flyteidl.core.CompiledWorkflowClosure; - - /** - * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. - * @param message CompiledWorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ICompiledWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CompiledWorkflowClosure - * @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.core.CompiledWorkflowClosure; - - /** - * Verifies a CompiledWorkflowClosure 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 an IfBlock. */ - interface IIfBlock { - - /** IfBlock condition */ - condition?: (flyteidl.core.IBooleanExpression|null); - - /** IfBlock thenNode */ - thenNode?: (flyteidl.core.INode|null); - } - - /** Represents an IfBlock. */ - class IfBlock implements IIfBlock { - - /** - * Constructs a new IfBlock. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIfBlock); - - /** IfBlock condition. */ - public condition?: (flyteidl.core.IBooleanExpression|null); - - /** IfBlock thenNode. */ - public thenNode?: (flyteidl.core.INode|null); - - /** - * Creates a new IfBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns IfBlock instance - */ - public static create(properties?: flyteidl.core.IIfBlock): flyteidl.core.IfBlock; - - /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. - * @param message IfBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIfBlock, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IfBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IfBlock - * @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.core.IfBlock; - - /** - * Verifies an IfBlock 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 an IfElseBlock. */ - interface IIfElseBlock { - - /** IfElseBlock case */ - "case"?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other */ - other?: (flyteidl.core.IIfBlock[]|null); - - /** IfElseBlock elseNode */ - elseNode?: (flyteidl.core.INode|null); - - /** IfElseBlock error */ - error?: (flyteidl.core.IError|null); - } - - /** Represents an IfElseBlock. */ - class IfElseBlock implements IIfElseBlock { - - /** - * Constructs a new IfElseBlock. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIfElseBlock); - - /** IfElseBlock case. */ - public case?: (flyteidl.core.IIfBlock|null); - - /** IfElseBlock other. */ - public other: flyteidl.core.IIfBlock[]; - - /** IfElseBlock elseNode. */ - public elseNode?: (flyteidl.core.INode|null); - - /** IfElseBlock error. */ - public error?: (flyteidl.core.IError|null); - - /** IfElseBlock default. */ - public default_?: ("elseNode"|"error"); - - /** - * Creates a new IfElseBlock instance using the specified properties. - * @param [properties] Properties to set - * @returns IfElseBlock instance - */ - public static create(properties?: flyteidl.core.IIfElseBlock): flyteidl.core.IfElseBlock; - - /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. - * @param message IfElseBlock message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIfElseBlock, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an IfElseBlock message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IfElseBlock - * @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.core.IfElseBlock; - - /** - * Verifies an IfElseBlock 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 BranchNode. */ - interface IBranchNode { - - /** BranchNode ifElse */ - ifElse?: (flyteidl.core.IIfElseBlock|null); - } - - /** Represents a BranchNode. */ - class BranchNode implements IBranchNode { - - /** - * Constructs a new BranchNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBranchNode); - - /** BranchNode ifElse. */ - public ifElse?: (flyteidl.core.IIfElseBlock|null); - - /** - * Creates a new BranchNode instance using the specified properties. - * @param [properties] Properties to set - * @returns BranchNode instance - */ - public static create(properties?: flyteidl.core.IBranchNode): flyteidl.core.BranchNode; - - /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. - * @param message BranchNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBranchNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BranchNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BranchNode - * @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.core.BranchNode; - - /** - * Verifies a BranchNode 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 TaskNode. */ - interface ITaskNode { - - /** TaskNode referenceId */ - referenceId?: (flyteidl.core.IIdentifier|null); - - /** TaskNode overrides */ - overrides?: (flyteidl.core.ITaskNodeOverrides|null); - } - - /** Represents a TaskNode. */ - class TaskNode implements ITaskNode { - - /** - * Constructs a new TaskNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskNode); - - /** TaskNode referenceId. */ - public referenceId?: (flyteidl.core.IIdentifier|null); - - /** TaskNode overrides. */ - public overrides?: (flyteidl.core.ITaskNodeOverrides|null); - - /** TaskNode reference. */ - public reference?: "referenceId"; - - /** - * Creates a new TaskNode instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNode instance - */ - public static create(properties?: flyteidl.core.ITaskNode): flyteidl.core.TaskNode; - - /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. - * @param message TaskNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNode - * @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.core.TaskNode; - - /** - * Verifies a TaskNode 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 WorkflowNode. */ - interface IWorkflowNode { - - /** WorkflowNode launchplanRef */ - launchplanRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode subWorkflowRef */ - subWorkflowRef?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a WorkflowNode. */ - class WorkflowNode implements IWorkflowNode { - - /** - * Constructs a new WorkflowNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowNode); - - /** WorkflowNode launchplanRef. */ - public launchplanRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode subWorkflowRef. */ - public subWorkflowRef?: (flyteidl.core.IIdentifier|null); - - /** WorkflowNode reference. */ - public reference?: ("launchplanRef"|"subWorkflowRef"); - - /** - * Creates a new WorkflowNode instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNode instance - */ - public static create(properties?: flyteidl.core.IWorkflowNode): flyteidl.core.WorkflowNode; - - /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. - * @param message WorkflowNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNode - * @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.core.WorkflowNode; - - /** - * Verifies a WorkflowNode 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 an ApproveCondition. */ - interface IApproveCondition { - - /** ApproveCondition signalId */ - signalId?: (string|null); - } - - /** Represents an ApproveCondition. */ - class ApproveCondition implements IApproveCondition { - - /** - * Constructs a new ApproveCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IApproveCondition); - - /** ApproveCondition signalId. */ - public signalId: string; - - /** - * Creates a new ApproveCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns ApproveCondition instance - */ - public static create(properties?: flyteidl.core.IApproveCondition): flyteidl.core.ApproveCondition; - - /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. - * @param message ApproveCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IApproveCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ApproveCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ApproveCondition - * @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.core.ApproveCondition; - - /** - * Verifies an ApproveCondition 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 SignalCondition. */ - interface ISignalCondition { - - /** SignalCondition signalId */ - signalId?: (string|null); - - /** SignalCondition type */ - type?: (flyteidl.core.ILiteralType|null); - - /** SignalCondition outputVariableName */ - outputVariableName?: (string|null); - } - - /** Represents a SignalCondition. */ - class SignalCondition implements ISignalCondition { - - /** - * Constructs a new SignalCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISignalCondition); - - /** SignalCondition signalId. */ - public signalId: string; - - /** SignalCondition type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** SignalCondition outputVariableName. */ - public outputVariableName: string; - - /** - * Creates a new SignalCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalCondition instance - */ - public static create(properties?: flyteidl.core.ISignalCondition): flyteidl.core.SignalCondition; - - /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. - * @param message SignalCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISignalCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalCondition - * @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.core.SignalCondition; - - /** - * Verifies a SignalCondition 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 SleepCondition. */ - interface ISleepCondition { - - /** SleepCondition duration */ - duration?: (google.protobuf.IDuration|null); - } - - /** Represents a SleepCondition. */ - class SleepCondition implements ISleepCondition { - - /** - * Constructs a new SleepCondition. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISleepCondition); - - /** SleepCondition duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** - * Creates a new SleepCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns SleepCondition instance - */ - public static create(properties?: flyteidl.core.ISleepCondition): flyteidl.core.SleepCondition; - - /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. - * @param message SleepCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISleepCondition, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SleepCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SleepCondition - * @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.core.SleepCondition; - - /** - * Verifies a SleepCondition 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 GateNode. */ - interface IGateNode { - - /** GateNode approve */ - approve?: (flyteidl.core.IApproveCondition|null); - - /** GateNode signal */ - signal?: (flyteidl.core.ISignalCondition|null); - - /** GateNode sleep */ - sleep?: (flyteidl.core.ISleepCondition|null); - } - - /** Represents a GateNode. */ - class GateNode implements IGateNode { - - /** - * Constructs a new GateNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IGateNode); - - /** GateNode approve. */ - public approve?: (flyteidl.core.IApproveCondition|null); - - /** GateNode signal. */ - public signal?: (flyteidl.core.ISignalCondition|null); - - /** GateNode sleep. */ - public sleep?: (flyteidl.core.ISleepCondition|null); - - /** GateNode condition. */ - public condition?: ("approve"|"signal"|"sleep"); - - /** - * Creates a new GateNode instance using the specified properties. - * @param [properties] Properties to set - * @returns GateNode instance - */ - public static create(properties?: flyteidl.core.IGateNode): flyteidl.core.GateNode; - - /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. - * @param message GateNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IGateNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GateNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GateNode - * @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.core.GateNode; - - /** - * Verifies a GateNode 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 an ArrayNode. */ - interface IArrayNode { - - /** ArrayNode node */ - node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism */ - parallelism?: (number|null); - - /** ArrayNode minSuccesses */ - minSuccesses?: (number|null); - - /** ArrayNode minSuccessRatio */ - minSuccessRatio?: (number|null); - } - - /** Represents an ArrayNode. */ - class ArrayNode implements IArrayNode { - - /** - * Constructs a new ArrayNode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IArrayNode); - - /** ArrayNode node. */ - public node?: (flyteidl.core.INode|null); - - /** ArrayNode parallelism. */ - public parallelism: number; - - /** ArrayNode minSuccesses. */ - public minSuccesses: number; - - /** ArrayNode minSuccessRatio. */ - public minSuccessRatio: number; - - /** ArrayNode successCriteria. */ - public successCriteria?: ("minSuccesses"|"minSuccessRatio"); - - /** - * Creates a new ArrayNode instance using the specified properties. - * @param [properties] Properties to set - * @returns ArrayNode instance - */ - public static create(properties?: flyteidl.core.IArrayNode): flyteidl.core.ArrayNode; - - /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. - * @param message ArrayNode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IArrayNode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ArrayNode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ArrayNode - * @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.core.ArrayNode; - - /** - * Verifies an ArrayNode 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 NodeMetadata. */ - interface INodeMetadata { - - /** NodeMetadata name */ - name?: (string|null); - - /** NodeMetadata timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** NodeMetadata retries */ - retries?: (flyteidl.core.IRetryStrategy|null); - - /** NodeMetadata interruptible */ - interruptible?: (boolean|null); - } - - /** Represents a NodeMetadata. */ - class NodeMetadata implements INodeMetadata { - - /** - * Constructs a new NodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeMetadata); - - /** NodeMetadata name. */ - public name: string; - - /** NodeMetadata timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** NodeMetadata retries. */ - public retries?: (flyteidl.core.IRetryStrategy|null); - - /** NodeMetadata interruptible. */ - public interruptible: boolean; - - /** NodeMetadata interruptibleValue. */ - public interruptibleValue?: "interruptible"; - - /** - * Creates a new NodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeMetadata instance - */ - public static create(properties?: flyteidl.core.INodeMetadata): flyteidl.core.NodeMetadata; - - /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. - * @param message NodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeMetadata - * @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.core.NodeMetadata; - - /** - * Verifies a NodeMetadata 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 an Alias. */ - interface IAlias { - - /** Alias var */ - "var"?: (string|null); - - /** Alias alias */ - alias?: (string|null); - } - - /** Represents an Alias. */ - class Alias implements IAlias { - - /** - * Constructs a new Alias. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IAlias); - - /** Alias var. */ - public var: string; - - /** Alias alias. */ - public alias: string; - - /** - * Creates a new Alias instance using the specified properties. - * @param [properties] Properties to set - * @returns Alias instance - */ - public static create(properties?: flyteidl.core.IAlias): flyteidl.core.Alias; - - /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. - * @param message Alias message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IAlias, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Alias message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Alias - * @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.core.Alias; - - /** - * Verifies an Alias 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 Node. */ - interface INode { - - /** Node id */ - id?: (string|null); - - /** Node metadata */ - metadata?: (flyteidl.core.INodeMetadata|null); - - /** Node inputs */ - inputs?: (flyteidl.core.IBinding[]|null); - - /** Node upstreamNodeIds */ - upstreamNodeIds?: (string[]|null); - - /** Node outputAliases */ - outputAliases?: (flyteidl.core.IAlias[]|null); - - /** Node taskNode */ - taskNode?: (flyteidl.core.ITaskNode|null); - - /** Node workflowNode */ - workflowNode?: (flyteidl.core.IWorkflowNode|null); - - /** Node branchNode */ - branchNode?: (flyteidl.core.IBranchNode|null); - - /** Node gateNode */ - gateNode?: (flyteidl.core.IGateNode|null); - - /** Node arrayNode */ - arrayNode?: (flyteidl.core.IArrayNode|null); - } - - /** Represents a Node. */ - class Node implements INode { - - /** - * Constructs a new Node. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INode); - - /** Node id. */ - public id: string; - - /** Node metadata. */ - public metadata?: (flyteidl.core.INodeMetadata|null); - - /** Node inputs. */ - public inputs: flyteidl.core.IBinding[]; - - /** Node upstreamNodeIds. */ - public upstreamNodeIds: string[]; - - /** Node outputAliases. */ - public outputAliases: flyteidl.core.IAlias[]; - - /** Node taskNode. */ - public taskNode?: (flyteidl.core.ITaskNode|null); - - /** Node workflowNode. */ - public workflowNode?: (flyteidl.core.IWorkflowNode|null); - - /** Node branchNode. */ - public branchNode?: (flyteidl.core.IBranchNode|null); - - /** Node gateNode. */ - public gateNode?: (flyteidl.core.IGateNode|null); - - /** Node arrayNode. */ - public arrayNode?: (flyteidl.core.IArrayNode|null); - - /** Node target. */ - public target?: ("taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"); - - /** - * Creates a new Node instance using the specified properties. - * @param [properties] Properties to set - * @returns Node instance - */ - public static create(properties?: flyteidl.core.INode): flyteidl.core.Node; - - /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. - * @param message Node message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Node message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Node - * @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.core.Node; - - /** - * Verifies a Node 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 WorkflowMetadata. */ - interface IWorkflowMetadata { - - /** WorkflowMetadata qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** WorkflowMetadata onFailure */ - onFailure?: (flyteidl.core.WorkflowMetadata.OnFailurePolicy|null); - - /** WorkflowMetadata tags */ - tags?: ({ [k: string]: string }|null); - } - - /** Represents a WorkflowMetadata. */ - class WorkflowMetadata implements IWorkflowMetadata { - - /** - * Constructs a new WorkflowMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowMetadata); - - /** WorkflowMetadata qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** WorkflowMetadata onFailure. */ - public onFailure: flyteidl.core.WorkflowMetadata.OnFailurePolicy; - - /** WorkflowMetadata tags. */ - public tags: { [k: string]: string }; - - /** - * Creates a new WorkflowMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMetadata instance - */ - public static create(properties?: flyteidl.core.IWorkflowMetadata): flyteidl.core.WorkflowMetadata; - - /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. - * @param message WorkflowMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMetadata - * @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.core.WorkflowMetadata; - - /** - * Verifies a WorkflowMetadata 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); - } - - namespace WorkflowMetadata { - - /** OnFailurePolicy enum. */ - enum OnFailurePolicy { - FAIL_IMMEDIATELY = 0, - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE = 1 - } - } - - /** Properties of a WorkflowMetadataDefaults. */ - interface IWorkflowMetadataDefaults { - - /** WorkflowMetadataDefaults interruptible */ - interruptible?: (boolean|null); - } - - /** Represents a WorkflowMetadataDefaults. */ - class WorkflowMetadataDefaults implements IWorkflowMetadataDefaults { - - /** - * Constructs a new WorkflowMetadataDefaults. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowMetadataDefaults); - - /** WorkflowMetadataDefaults interruptible. */ - public interruptible: boolean; - - /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowMetadataDefaults instance - */ - public static create(properties?: flyteidl.core.IWorkflowMetadataDefaults): flyteidl.core.WorkflowMetadataDefaults; - - /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. - * @param message WorkflowMetadataDefaults message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowMetadataDefaults, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowMetadataDefaults - * @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.core.WorkflowMetadataDefaults; - - /** - * Verifies a WorkflowMetadataDefaults 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 WorkflowTemplate. */ - interface IWorkflowTemplate { - - /** WorkflowTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata */ - metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes */ - nodes?: (flyteidl.core.INode[]|null); - - /** WorkflowTemplate outputs */ - outputs?: (flyteidl.core.IBinding[]|null); - - /** WorkflowTemplate failureNode */ - failureNode?: (flyteidl.core.INode|null); - - /** WorkflowTemplate metadataDefaults */ - metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); - } - - /** Represents a WorkflowTemplate. */ - class WorkflowTemplate implements IWorkflowTemplate { - - /** - * Constructs a new WorkflowTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowTemplate); - - /** WorkflowTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowTemplate metadata. */ - public metadata?: (flyteidl.core.IWorkflowMetadata|null); - - /** WorkflowTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** WorkflowTemplate nodes. */ - public nodes: flyteidl.core.INode[]; - - /** WorkflowTemplate outputs. */ - public outputs: flyteidl.core.IBinding[]; - - /** WorkflowTemplate failureNode. */ - public failureNode?: (flyteidl.core.INode|null); - - /** WorkflowTemplate metadataDefaults. */ - public metadataDefaults?: (flyteidl.core.IWorkflowMetadataDefaults|null); - - /** - * Creates a new WorkflowTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowTemplate instance - */ - public static create(properties?: flyteidl.core.IWorkflowTemplate): flyteidl.core.WorkflowTemplate; - - /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. - * @param message WorkflowTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowTemplate - * @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.core.WorkflowTemplate; - - /** - * Verifies a WorkflowTemplate 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 TaskNodeOverrides. */ - interface ITaskNodeOverrides { - - /** TaskNodeOverrides resources */ - resources?: (flyteidl.core.IResources|null); - - /** TaskNodeOverrides extendedResources */ - extendedResources?: (flyteidl.core.IExtendedResources|null); - } - - /** Represents a TaskNodeOverrides. */ - class TaskNodeOverrides implements ITaskNodeOverrides { - - /** - * Constructs a new TaskNodeOverrides. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskNodeOverrides); - - /** TaskNodeOverrides resources. */ - public resources?: (flyteidl.core.IResources|null); - - /** TaskNodeOverrides extendedResources. */ - public extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** - * Creates a new TaskNodeOverrides instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeOverrides instance - */ - public static create(properties?: flyteidl.core.ITaskNodeOverrides): flyteidl.core.TaskNodeOverrides; - - /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. - * @param message TaskNodeOverrides message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskNodeOverrides, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeOverrides - * @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.core.TaskNodeOverrides; - - /** - * Verifies a TaskNodeOverrides 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 ComparisonExpression. */ - interface IComparisonExpression { - - /** ComparisonExpression operator */ - operator?: (flyteidl.core.ComparisonExpression.Operator|null); - - /** ComparisonExpression leftValue */ - leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue */ - rightValue?: (flyteidl.core.IOperand|null); - } - - /** Represents a ComparisonExpression. */ - class ComparisonExpression implements IComparisonExpression { - - /** - * Constructs a new ComparisonExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IComparisonExpression); - - /** ComparisonExpression operator. */ - public operator: flyteidl.core.ComparisonExpression.Operator; - - /** ComparisonExpression leftValue. */ - public leftValue?: (flyteidl.core.IOperand|null); - - /** ComparisonExpression rightValue. */ - public rightValue?: (flyteidl.core.IOperand|null); - - /** - * Creates a new ComparisonExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns ComparisonExpression instance - */ - public static create(properties?: flyteidl.core.IComparisonExpression): flyteidl.core.ComparisonExpression; - - /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. - * @param message ComparisonExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IComparisonExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ComparisonExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ComparisonExpression - * @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.core.ComparisonExpression; - - /** - * Verifies a ComparisonExpression 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); - } - - namespace ComparisonExpression { - - /** Operator enum. */ - enum Operator { - EQ = 0, - NEQ = 1, - GT = 2, - GTE = 3, - LT = 4, - LTE = 5 - } - } - - /** Properties of an Operand. */ - interface IOperand { - - /** Operand primitive */ - primitive?: (flyteidl.core.IPrimitive|null); - - /** Operand var */ - "var"?: (string|null); - - /** Operand scalar */ - scalar?: (flyteidl.core.IScalar|null); - } - - /** Represents an Operand. */ - class Operand implements IOperand { - - /** - * Constructs a new Operand. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOperand); - - /** Operand primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Operand var. */ - public var: string; - - /** Operand scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** Operand val. */ - public val?: ("primitive"|"var"|"scalar"); - - /** - * Creates a new Operand instance using the specified properties. - * @param [properties] Properties to set - * @returns Operand instance - */ - public static create(properties?: flyteidl.core.IOperand): flyteidl.core.Operand; - - /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. - * @param message Operand message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOperand, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Operand message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Operand - * @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.core.Operand; - - /** - * Verifies an Operand 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 BooleanExpression. */ - interface IBooleanExpression { - - /** BooleanExpression conjunction */ - conjunction?: (flyteidl.core.IConjunctionExpression|null); - - /** BooleanExpression comparison */ - comparison?: (flyteidl.core.IComparisonExpression|null); - } - - /** Represents a BooleanExpression. */ - class BooleanExpression implements IBooleanExpression { - - /** - * Constructs a new BooleanExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBooleanExpression); - - /** BooleanExpression conjunction. */ - public conjunction?: (flyteidl.core.IConjunctionExpression|null); - - /** BooleanExpression comparison. */ - public comparison?: (flyteidl.core.IComparisonExpression|null); - - /** BooleanExpression expr. */ - public expr?: ("conjunction"|"comparison"); - - /** - * Creates a new BooleanExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns BooleanExpression instance - */ - public static create(properties?: flyteidl.core.IBooleanExpression): flyteidl.core.BooleanExpression; - - /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. - * @param message BooleanExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBooleanExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BooleanExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BooleanExpression - * @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.core.BooleanExpression; - - /** - * Verifies a BooleanExpression 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 ConjunctionExpression. */ - interface IConjunctionExpression { - - /** ConjunctionExpression operator */ - operator?: (flyteidl.core.ConjunctionExpression.LogicalOperator|null); - - /** ConjunctionExpression leftExpression */ - leftExpression?: (flyteidl.core.IBooleanExpression|null); - - /** ConjunctionExpression rightExpression */ - rightExpression?: (flyteidl.core.IBooleanExpression|null); - } - - /** Represents a ConjunctionExpression. */ - class ConjunctionExpression implements IConjunctionExpression { - - /** - * Constructs a new ConjunctionExpression. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IConjunctionExpression); - - /** ConjunctionExpression operator. */ - public operator: flyteidl.core.ConjunctionExpression.LogicalOperator; - - /** ConjunctionExpression leftExpression. */ - public leftExpression?: (flyteidl.core.IBooleanExpression|null); - - /** ConjunctionExpression rightExpression. */ - public rightExpression?: (flyteidl.core.IBooleanExpression|null); - - /** - * Creates a new ConjunctionExpression instance using the specified properties. - * @param [properties] Properties to set - * @returns ConjunctionExpression instance - */ - public static create(properties?: flyteidl.core.IConjunctionExpression): flyteidl.core.ConjunctionExpression; - - /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. - * @param message ConjunctionExpression message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IConjunctionExpression, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConjunctionExpression - * @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.core.ConjunctionExpression; - - /** - * Verifies a ConjunctionExpression 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); - } - - namespace ConjunctionExpression { - - /** LogicalOperator enum. */ - enum LogicalOperator { - AND = 0, - OR = 1 - } - } - - /** Properties of a Primitive. */ - interface IPrimitive { - - /** Primitive integer */ - integer?: (Long|null); - - /** Primitive floatValue */ - floatValue?: (number|null); - - /** Primitive stringValue */ - stringValue?: (string|null); - - /** Primitive boolean */ - boolean?: (boolean|null); - - /** Primitive datetime */ - datetime?: (google.protobuf.ITimestamp|null); - - /** Primitive duration */ - duration?: (google.protobuf.IDuration|null); - } - - /** Represents a Primitive. */ - class Primitive implements IPrimitive { - - /** - * Constructs a new Primitive. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPrimitive); - - /** Primitive integer. */ - public integer: Long; - - /** Primitive floatValue. */ - public floatValue: number; - - /** Primitive stringValue. */ - public stringValue: string; - - /** Primitive boolean. */ - public boolean: boolean; - - /** Primitive datetime. */ - public datetime?: (google.protobuf.ITimestamp|null); - - /** Primitive duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** Primitive value. */ - public value?: ("integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"); - - /** - * Creates a new Primitive instance using the specified properties. - * @param [properties] Properties to set - * @returns Primitive instance - */ - public static create(properties?: flyteidl.core.IPrimitive): flyteidl.core.Primitive; - - /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. - * @param message Primitive message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPrimitive, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Primitive message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Primitive - * @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.core.Primitive; - - /** - * Verifies a Primitive 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 Void. */ - interface IVoid { - } - - /** Represents a Void. */ - class Void implements IVoid { - - /** - * Constructs a new Void. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVoid); - - /** - * Creates a new Void instance using the specified properties. - * @param [properties] Properties to set - * @returns Void instance - */ - public static create(properties?: flyteidl.core.IVoid): flyteidl.core.Void; - - /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. - * @param message Void message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVoid, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Void message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Void - * @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.core.Void; - - /** - * Verifies a Void 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 Blob. */ - interface IBlob { - - /** Blob metadata */ - metadata?: (flyteidl.core.IBlobMetadata|null); - - /** Blob uri */ - uri?: (string|null); - } - - /** Represents a Blob. */ - class Blob implements IBlob { - - /** - * Constructs a new Blob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlob); - - /** Blob metadata. */ - public metadata?: (flyteidl.core.IBlobMetadata|null); - - /** Blob uri. */ - public uri: string; - - /** - * Creates a new Blob instance using the specified properties. - * @param [properties] Properties to set - * @returns Blob instance - */ - public static create(properties?: flyteidl.core.IBlob): flyteidl.core.Blob; - - /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. - * @param message Blob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Blob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Blob - * @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.core.Blob; - - /** - * Verifies a Blob 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 BlobMetadata. */ - interface IBlobMetadata { - - /** BlobMetadata type */ - type?: (flyteidl.core.IBlobType|null); - } - - /** Represents a BlobMetadata. */ - class BlobMetadata implements IBlobMetadata { - - /** - * Constructs a new BlobMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlobMetadata); - - /** BlobMetadata type. */ - public type?: (flyteidl.core.IBlobType|null); - - /** - * Creates a new BlobMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns BlobMetadata instance - */ - public static create(properties?: flyteidl.core.IBlobMetadata): flyteidl.core.BlobMetadata; - - /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. - * @param message BlobMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlobMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BlobMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BlobMetadata - * @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.core.BlobMetadata; - - /** - * Verifies a BlobMetadata 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 Binary. */ - interface IBinary { - - /** Binary value */ - value?: (Uint8Array|null); - - /** Binary tag */ - tag?: (string|null); - } - - /** Represents a Binary. */ - class Binary implements IBinary { - - /** - * Constructs a new Binary. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBinary); - - /** Binary value. */ - public value: Uint8Array; - - /** Binary tag. */ - public tag: string; - - /** - * Creates a new Binary instance using the specified properties. - * @param [properties] Properties to set - * @returns Binary instance - */ - public static create(properties?: flyteidl.core.IBinary): flyteidl.core.Binary; - - /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. - * @param message Binary message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBinary, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Binary message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Binary - * @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.core.Binary; - - /** - * Verifies a Binary 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 Schema. */ - interface ISchema { - - /** Schema uri */ - uri?: (string|null); - - /** Schema type */ - type?: (flyteidl.core.ISchemaType|null); - } - - /** Represents a Schema. */ - class Schema implements ISchema { - - /** - * Constructs a new Schema. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISchema); - - /** Schema uri. */ - public uri: string; - - /** Schema type. */ - public type?: (flyteidl.core.ISchemaType|null); - - /** - * Creates a new Schema instance using the specified properties. - * @param [properties] Properties to set - * @returns Schema instance - */ - public static create(properties?: flyteidl.core.ISchema): flyteidl.core.Schema; - - /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. - * @param message Schema message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISchema, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Schema message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Schema - * @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.core.Schema; - - /** - * Verifies a Schema 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 an Union. */ - interface IUnion { - - /** Union value */ - value?: (flyteidl.core.ILiteral|null); - - /** Union type */ - type?: (flyteidl.core.ILiteralType|null); - } - - /** Represents an Union. */ - class Union implements IUnion { - - /** - * Constructs a new Union. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnion); - - /** Union value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** Union type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new Union instance using the specified properties. - * @param [properties] Properties to set - * @returns Union instance - */ - public static create(properties?: flyteidl.core.IUnion): flyteidl.core.Union; - - /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. - * @param message Union message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Union message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Union - * @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.core.Union; - - /** - * Verifies an Union 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 StructuredDatasetMetadata. */ - interface IStructuredDatasetMetadata { - - /** StructuredDatasetMetadata structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - } - - /** Represents a StructuredDatasetMetadata. */ - class StructuredDatasetMetadata implements IStructuredDatasetMetadata { - - /** - * Constructs a new StructuredDatasetMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDatasetMetadata); - - /** StructuredDatasetMetadata structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDatasetMetadata instance - */ - public static create(properties?: flyteidl.core.IStructuredDatasetMetadata): flyteidl.core.StructuredDatasetMetadata; - - /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. - * @param message StructuredDatasetMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDatasetMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDatasetMetadata - * @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.core.StructuredDatasetMetadata; - - /** - * Verifies a StructuredDatasetMetadata 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 StructuredDataset. */ - interface IStructuredDataset { - - /** StructuredDataset uri */ - uri?: (string|null); - - /** StructuredDataset metadata */ - metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); - } - - /** Represents a StructuredDataset. */ - class StructuredDataset implements IStructuredDataset { - - /** - * Constructs a new StructuredDataset. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDataset); - - /** StructuredDataset uri. */ - public uri: string; - - /** StructuredDataset metadata. */ - public metadata?: (flyteidl.core.IStructuredDatasetMetadata|null); - - /** - * Creates a new StructuredDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDataset instance - */ - public static create(properties?: flyteidl.core.IStructuredDataset): flyteidl.core.StructuredDataset; - - /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. - * @param message StructuredDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDataset, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDataset - * @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.core.StructuredDataset; - - /** - * Verifies a StructuredDataset 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 Scalar. */ - interface IScalar { - - /** Scalar primitive */ - primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob */ - blob?: (flyteidl.core.IBlob|null); - - /** Scalar binary */ - binary?: (flyteidl.core.IBinary|null); - - /** Scalar schema */ - schema?: (flyteidl.core.ISchema|null); - - /** Scalar noneType */ - noneType?: (flyteidl.core.IVoid|null); - - /** Scalar error */ - error?: (flyteidl.core.IError|null); - - /** Scalar generic */ - generic?: (google.protobuf.IStruct|null); - - /** Scalar structuredDataset */ - structuredDataset?: (flyteidl.core.IStructuredDataset|null); - - /** Scalar union */ - union?: (flyteidl.core.IUnion|null); - } - - /** Represents a Scalar. */ - class Scalar implements IScalar { - - /** - * Constructs a new Scalar. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IScalar); - - /** Scalar primitive. */ - public primitive?: (flyteidl.core.IPrimitive|null); - - /** Scalar blob. */ - public blob?: (flyteidl.core.IBlob|null); - - /** Scalar binary. */ - public binary?: (flyteidl.core.IBinary|null); - - /** Scalar schema. */ - public schema?: (flyteidl.core.ISchema|null); - - /** Scalar noneType. */ - public noneType?: (flyteidl.core.IVoid|null); - - /** Scalar error. */ - public error?: (flyteidl.core.IError|null); - - /** Scalar generic. */ - public generic?: (google.protobuf.IStruct|null); - - /** Scalar structuredDataset. */ - public structuredDataset?: (flyteidl.core.IStructuredDataset|null); - - /** Scalar union. */ - public union?: (flyteidl.core.IUnion|null); - - /** Scalar value. */ - public value?: ("primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"); - - /** - * Creates a new Scalar instance using the specified properties. - * @param [properties] Properties to set - * @returns Scalar instance - */ - public static create(properties?: flyteidl.core.IScalar): flyteidl.core.Scalar; - - /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. - * @param message Scalar message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IScalar, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Scalar message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scalar - * @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.core.Scalar; - - /** - * Verifies a Scalar 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 Literal. */ - interface ILiteral { - - /** Literal scalar */ - scalar?: (flyteidl.core.IScalar|null); - - /** Literal collection */ - collection?: (flyteidl.core.ILiteralCollection|null); - - /** Literal map */ - map?: (flyteidl.core.ILiteralMap|null); - - /** Literal hash */ - hash?: (string|null); - - /** Literal metadata */ - metadata?: ({ [k: string]: string }|null); - } - - /** Represents a Literal. */ - class Literal implements ILiteral { - - /** - * Constructs a new Literal. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteral); - - /** Literal scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** Literal collection. */ - public collection?: (flyteidl.core.ILiteralCollection|null); - - /** Literal map. */ - public map?: (flyteidl.core.ILiteralMap|null); - - /** Literal hash. */ - public hash: string; - - /** Literal metadata. */ - public metadata: { [k: string]: string }; - - /** Literal value. */ - public value?: ("scalar"|"collection"|"map"); - - /** - * Creates a new Literal instance using the specified properties. - * @param [properties] Properties to set - * @returns Literal instance - */ - public static create(properties?: flyteidl.core.ILiteral): flyteidl.core.Literal; - - /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. - * @param message Literal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteral, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Literal message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Literal - * @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.core.Literal; - - /** - * Verifies a Literal 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 LiteralCollection. */ - interface ILiteralCollection { - - /** LiteralCollection literals */ - literals?: (flyteidl.core.ILiteral[]|null); - } - - /** Represents a LiteralCollection. */ - class LiteralCollection implements ILiteralCollection { - - /** - * Constructs a new LiteralCollection. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralCollection); - - /** LiteralCollection literals. */ - public literals: flyteidl.core.ILiteral[]; - - /** - * Creates a new LiteralCollection instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralCollection instance - */ - public static create(properties?: flyteidl.core.ILiteralCollection): flyteidl.core.LiteralCollection; - - /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @param message LiteralCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralCollection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralCollection - * @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.core.LiteralCollection; - - /** - * Verifies a LiteralCollection 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 LiteralMap. */ - interface ILiteralMap { - - /** LiteralMap literals */ - literals?: ({ [k: string]: flyteidl.core.ILiteral }|null); - } - - /** Represents a LiteralMap. */ - class LiteralMap implements ILiteralMap { - - /** - * Constructs a new LiteralMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralMap); - - /** LiteralMap literals. */ - public literals: { [k: string]: flyteidl.core.ILiteral }; - - /** - * Creates a new LiteralMap instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralMap instance - */ - public static create(properties?: flyteidl.core.ILiteralMap): flyteidl.core.LiteralMap; - - /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. - * @param message LiteralMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralMap - * @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.core.LiteralMap; - - /** - * Verifies a LiteralMap 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 BindingDataCollection. */ - interface IBindingDataCollection { - - /** BindingDataCollection bindings */ - bindings?: (flyteidl.core.IBindingData[]|null); - } - - /** Represents a BindingDataCollection. */ - class BindingDataCollection implements IBindingDataCollection { - - /** - * Constructs a new BindingDataCollection. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingDataCollection); - - /** BindingDataCollection bindings. */ - public bindings: flyteidl.core.IBindingData[]; - - /** - * Creates a new BindingDataCollection instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingDataCollection instance - */ - public static create(properties?: flyteidl.core.IBindingDataCollection): flyteidl.core.BindingDataCollection; - - /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. - * @param message BindingDataCollection message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingDataCollection, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingDataCollection message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingDataCollection - * @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.core.BindingDataCollection; - - /** - * Verifies a BindingDataCollection 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 BindingDataMap. */ - interface IBindingDataMap { - - /** BindingDataMap bindings */ - bindings?: ({ [k: string]: flyteidl.core.IBindingData }|null); - } - - /** Represents a BindingDataMap. */ - class BindingDataMap implements IBindingDataMap { - - /** - * Constructs a new BindingDataMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingDataMap); - - /** BindingDataMap bindings. */ - public bindings: { [k: string]: flyteidl.core.IBindingData }; - - /** - * Creates a new BindingDataMap instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingDataMap instance - */ - public static create(properties?: flyteidl.core.IBindingDataMap): flyteidl.core.BindingDataMap; - - /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. - * @param message BindingDataMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingDataMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingDataMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingDataMap - * @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.core.BindingDataMap; - - /** - * Verifies a BindingDataMap 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 an UnionInfo. */ - interface IUnionInfo { - - /** UnionInfo targetType */ - targetType?: (flyteidl.core.ILiteralType|null); - } - - /** Represents an UnionInfo. */ - class UnionInfo implements IUnionInfo { - - /** - * Constructs a new UnionInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnionInfo); - - /** UnionInfo targetType. */ - public targetType?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new UnionInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns UnionInfo instance - */ - public static create(properties?: flyteidl.core.IUnionInfo): flyteidl.core.UnionInfo; - - /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. - * @param message UnionInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnionInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnionInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnionInfo - * @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.core.UnionInfo; - - /** - * Verifies an UnionInfo 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 BindingData. */ - interface IBindingData { - - /** BindingData scalar */ - scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection */ - collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise */ - promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map */ - map?: (flyteidl.core.IBindingDataMap|null); - - /** BindingData union */ - union?: (flyteidl.core.IUnionInfo|null); - } - - /** Represents a BindingData. */ - class BindingData implements IBindingData { - - /** - * Constructs a new BindingData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBindingData); - - /** BindingData scalar. */ - public scalar?: (flyteidl.core.IScalar|null); - - /** BindingData collection. */ - public collection?: (flyteidl.core.IBindingDataCollection|null); - - /** BindingData promise. */ - public promise?: (flyteidl.core.IOutputReference|null); - - /** BindingData map. */ - public map?: (flyteidl.core.IBindingDataMap|null); - - /** BindingData union. */ - public union?: (flyteidl.core.IUnionInfo|null); - - /** BindingData value. */ - public value?: ("scalar"|"collection"|"promise"|"map"); - - /** - * Creates a new BindingData instance using the specified properties. - * @param [properties] Properties to set - * @returns BindingData instance - */ - public static create(properties?: flyteidl.core.IBindingData): flyteidl.core.BindingData; - - /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. - * @param message BindingData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBindingData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BindingData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BindingData - * @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.core.BindingData; - - /** - * Verifies a BindingData 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 Binding. */ - interface IBinding { - - /** Binding var */ - "var"?: (string|null); - - /** Binding binding */ - binding?: (flyteidl.core.IBindingData|null); - } - - /** Represents a Binding. */ - class Binding implements IBinding { - - /** - * Constructs a new Binding. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBinding); - - /** Binding var. */ - public var: string; - - /** Binding binding. */ - public binding?: (flyteidl.core.IBindingData|null); - - /** - * Creates a new Binding instance using the specified properties. - * @param [properties] Properties to set - * @returns Binding instance - */ - public static create(properties?: flyteidl.core.IBinding): flyteidl.core.Binding; - - /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. - * @param message Binding message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBinding, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Binding message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Binding - * @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.core.Binding; - - /** - * Verifies a Binding 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 KeyValuePair. */ - interface IKeyValuePair { - - /** KeyValuePair key */ - key?: (string|null); - - /** KeyValuePair value */ - value?: (string|null); - } - - /** Represents a KeyValuePair. */ - class KeyValuePair implements IKeyValuePair { - - /** - * Constructs a new KeyValuePair. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IKeyValuePair); - - /** KeyValuePair key. */ - public key: string; - - /** KeyValuePair value. */ - public value: string; - - /** - * Creates a new KeyValuePair instance using the specified properties. - * @param [properties] Properties to set - * @returns KeyValuePair instance - */ - public static create(properties?: flyteidl.core.IKeyValuePair): flyteidl.core.KeyValuePair; - - /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. - * @param message KeyValuePair message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IKeyValuePair, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a KeyValuePair message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns KeyValuePair - * @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.core.KeyValuePair; - - /** - * Verifies a KeyValuePair 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 RetryStrategy. */ - interface IRetryStrategy { - - /** RetryStrategy retries */ - retries?: (number|null); - } - - /** Represents a RetryStrategy. */ - class RetryStrategy implements IRetryStrategy { - - /** - * Constructs a new RetryStrategy. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IRetryStrategy); - - /** RetryStrategy retries. */ - public retries: number; - - /** - * Creates a new RetryStrategy instance using the specified properties. - * @param [properties] Properties to set - * @returns RetryStrategy instance - */ - public static create(properties?: flyteidl.core.IRetryStrategy): flyteidl.core.RetryStrategy; - - /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. - * @param message RetryStrategy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IRetryStrategy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RetryStrategy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RetryStrategy - * @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.core.RetryStrategy; - - /** - * Verifies a RetryStrategy 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); - } - - /** SimpleType enum. */ - enum SimpleType { - NONE = 0, - INTEGER = 1, - FLOAT = 2, - STRING = 3, - BOOLEAN = 4, - DATETIME = 5, - DURATION = 6, - BINARY = 7, - ERROR = 8, - STRUCT = 9 - } - - /** Properties of a SchemaType. */ - interface ISchemaType { - - /** SchemaType columns */ - columns?: (flyteidl.core.SchemaType.ISchemaColumn[]|null); - } - - /** Represents a SchemaType. */ - class SchemaType implements ISchemaType { - - /** - * Constructs a new SchemaType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISchemaType); - - /** SchemaType columns. */ - public columns: flyteidl.core.SchemaType.ISchemaColumn[]; - - /** - * Creates a new SchemaType instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaType instance - */ - public static create(properties?: flyteidl.core.ISchemaType): flyteidl.core.SchemaType; - - /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. - * @param message SchemaType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISchemaType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaType - * @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.core.SchemaType; - - /** - * Verifies a SchemaType 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); - } - - namespace SchemaType { - - /** Properties of a SchemaColumn. */ - interface ISchemaColumn { - - /** SchemaColumn name */ - name?: (string|null); - - /** SchemaColumn type */ - type?: (flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null); - } - - /** Represents a SchemaColumn. */ - class SchemaColumn implements ISchemaColumn { - - /** - * Constructs a new SchemaColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.SchemaType.ISchemaColumn); - - /** SchemaColumn name. */ - public name: string; - - /** SchemaColumn type. */ - public type: flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns SchemaColumn instance - */ - public static create(properties?: flyteidl.core.SchemaType.ISchemaColumn): flyteidl.core.SchemaType.SchemaColumn; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @param message SchemaColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.SchemaType.ISchemaColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SchemaColumn - * @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.core.SchemaType.SchemaColumn; - - /** - * Verifies a SchemaColumn 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); - } - - namespace SchemaColumn { - - /** SchemaColumnType enum. */ - enum SchemaColumnType { - INTEGER = 0, - FLOAT = 1, - STRING = 2, - BOOLEAN = 3, - DATETIME = 4, - DURATION = 5 - } - } - } - - /** Properties of a StructuredDatasetType. */ - interface IStructuredDatasetType { - - /** StructuredDatasetType columns */ - columns?: (flyteidl.core.StructuredDatasetType.IDatasetColumn[]|null); - - /** StructuredDatasetType format */ - format?: (string|null); - - /** StructuredDatasetType externalSchemaType */ - externalSchemaType?: (string|null); - - /** StructuredDatasetType externalSchemaBytes */ - externalSchemaBytes?: (Uint8Array|null); - } - - /** Represents a StructuredDatasetType. */ - class StructuredDatasetType implements IStructuredDatasetType { - - /** - * Constructs a new StructuredDatasetType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IStructuredDatasetType); - - /** StructuredDatasetType columns. */ - public columns: flyteidl.core.StructuredDatasetType.IDatasetColumn[]; - - /** StructuredDatasetType format. */ - public format: string; - - /** StructuredDatasetType externalSchemaType. */ - public externalSchemaType: string; - - /** StructuredDatasetType externalSchemaBytes. */ - public externalSchemaBytes: Uint8Array; - - /** - * Creates a new StructuredDatasetType instance using the specified properties. - * @param [properties] Properties to set - * @returns StructuredDatasetType instance - */ - public static create(properties?: flyteidl.core.IStructuredDatasetType): flyteidl.core.StructuredDatasetType; - - /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. - * @param message StructuredDatasetType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IStructuredDatasetType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StructuredDatasetType - * @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.core.StructuredDatasetType; - - /** - * Verifies a StructuredDatasetType 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); - } - - namespace StructuredDatasetType { - - /** Properties of a DatasetColumn. */ - interface IDatasetColumn { - - /** DatasetColumn name */ - name?: (string|null); - - /** DatasetColumn literalType */ - literalType?: (flyteidl.core.ILiteralType|null); - } - - /** Represents a DatasetColumn. */ - class DatasetColumn implements IDatasetColumn { - - /** - * Constructs a new DatasetColumn. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn); - - /** DatasetColumn name. */ - public name: string; - - /** DatasetColumn literalType. */ - public literalType?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @param [properties] Properties to set - * @returns DatasetColumn instance - */ - public static create(properties?: flyteidl.core.StructuredDatasetType.IDatasetColumn): flyteidl.core.StructuredDatasetType.DatasetColumn; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @param message DatasetColumn message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.StructuredDatasetType.IDatasetColumn, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DatasetColumn - * @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.core.StructuredDatasetType.DatasetColumn; - - /** - * Verifies a DatasetColumn 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 BlobType. */ - interface IBlobType { - - /** BlobType format */ - format?: (string|null); - - /** BlobType dimensionality */ - dimensionality?: (flyteidl.core.BlobType.BlobDimensionality|null); - } - - /** Represents a BlobType. */ - class BlobType implements IBlobType { - - /** - * Constructs a new BlobType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IBlobType); - - /** BlobType format. */ - public format: string; - - /** BlobType dimensionality. */ - public dimensionality: flyteidl.core.BlobType.BlobDimensionality; - - /** - * Creates a new BlobType instance using the specified properties. - * @param [properties] Properties to set - * @returns BlobType instance - */ - public static create(properties?: flyteidl.core.IBlobType): flyteidl.core.BlobType; - - /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. - * @param message BlobType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IBlobType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BlobType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BlobType - * @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.core.BlobType; - - /** - * Verifies a BlobType 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); - } - - namespace BlobType { - - /** BlobDimensionality enum. */ - enum BlobDimensionality { - SINGLE = 0, - MULTIPART = 1 - } - } - - /** Properties of an EnumType. */ - interface IEnumType { - - /** EnumType values */ - values?: (string[]|null); - } - - /** Represents an EnumType. */ - class EnumType implements IEnumType { - - /** - * Constructs a new EnumType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IEnumType); - - /** EnumType values. */ - public values: string[]; - - /** - * Creates a new EnumType instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumType instance - */ - public static create(properties?: flyteidl.core.IEnumType): flyteidl.core.EnumType; - - /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. - * @param message EnumType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IEnumType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumType - * @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.core.EnumType; - - /** - * Verifies an EnumType 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 an UnionType. */ - interface IUnionType { - - /** UnionType variants */ - variants?: (flyteidl.core.ILiteralType[]|null); - } - - /** Represents an UnionType. */ - class UnionType implements IUnionType { - - /** - * Constructs a new UnionType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IUnionType); - - /** UnionType variants. */ - public variants: flyteidl.core.ILiteralType[]; - - /** - * Creates a new UnionType instance using the specified properties. - * @param [properties] Properties to set - * @returns UnionType instance - */ - public static create(properties?: flyteidl.core.IUnionType): flyteidl.core.UnionType; - - /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @param message UnionType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IUnionType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UnionType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UnionType - * @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.core.UnionType; - - /** - * Verifies an UnionType 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 TypeStructure. */ - interface ITypeStructure { - - /** TypeStructure tag */ - tag?: (string|null); - - /** TypeStructure dataclassType */ - dataclassType?: ({ [k: string]: flyteidl.core.ILiteralType }|null); - } - - /** Represents a TypeStructure. */ - class TypeStructure implements ITypeStructure { - - /** - * Constructs a new TypeStructure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypeStructure); - - /** TypeStructure tag. */ - public tag: string; - - /** TypeStructure dataclassType. */ - public dataclassType: { [k: string]: flyteidl.core.ILiteralType }; - - /** - * Creates a new TypeStructure instance using the specified properties. - * @param [properties] Properties to set - * @returns TypeStructure instance - */ - public static create(properties?: flyteidl.core.ITypeStructure): flyteidl.core.TypeStructure; - - /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. - * @param message TypeStructure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypeStructure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypeStructure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypeStructure - * @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.core.TypeStructure; - - /** - * Verifies a TypeStructure 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 TypeAnnotation. */ - interface ITypeAnnotation { - - /** TypeAnnotation annotations */ - annotations?: (google.protobuf.IStruct|null); - } - - /** Represents a TypeAnnotation. */ - class TypeAnnotation implements ITypeAnnotation { - - /** - * Constructs a new TypeAnnotation. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypeAnnotation); - - /** TypeAnnotation annotations. */ - public annotations?: (google.protobuf.IStruct|null); - - /** - * Creates a new TypeAnnotation instance using the specified properties. - * @param [properties] Properties to set - * @returns TypeAnnotation instance - */ - public static create(properties?: flyteidl.core.ITypeAnnotation): flyteidl.core.TypeAnnotation; - - /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. - * @param message TypeAnnotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypeAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypeAnnotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypeAnnotation - * @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.core.TypeAnnotation; - - /** - * Verifies a TypeAnnotation 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 LiteralType. */ - interface ILiteralType { - - /** LiteralType simple */ - simple?: (flyteidl.core.SimpleType|null); - - /** LiteralType schema */ - schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType */ - collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType */ - mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob */ - blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType */ - enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType */ - structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType */ - unionType?: (flyteidl.core.IUnionType|null); - - /** LiteralType metadata */ - metadata?: (google.protobuf.IStruct|null); - - /** LiteralType annotation */ - annotation?: (flyteidl.core.ITypeAnnotation|null); - - /** LiteralType structure */ - structure?: (flyteidl.core.ITypeStructure|null); - } - - /** Represents a LiteralType. */ - class LiteralType implements ILiteralType { - - /** - * Constructs a new LiteralType. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ILiteralType); - - /** LiteralType simple. */ - public simple: flyteidl.core.SimpleType; - - /** LiteralType schema. */ - public schema?: (flyteidl.core.ISchemaType|null); - - /** LiteralType collectionType. */ - public collectionType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType mapValueType. */ - public mapValueType?: (flyteidl.core.ILiteralType|null); - - /** LiteralType blob. */ - public blob?: (flyteidl.core.IBlobType|null); - - /** LiteralType enumType. */ - public enumType?: (flyteidl.core.IEnumType|null); - - /** LiteralType structuredDatasetType. */ - public structuredDatasetType?: (flyteidl.core.IStructuredDatasetType|null); - - /** LiteralType unionType. */ - public unionType?: (flyteidl.core.IUnionType|null); - - /** LiteralType metadata. */ - public metadata?: (google.protobuf.IStruct|null); - - /** LiteralType annotation. */ - public annotation?: (flyteidl.core.ITypeAnnotation|null); - - /** LiteralType structure. */ - public structure?: (flyteidl.core.ITypeStructure|null); - - /** LiteralType type. */ - public type?: ("simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"); - - /** - * Creates a new LiteralType instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralType instance - */ - public static create(properties?: flyteidl.core.ILiteralType): flyteidl.core.LiteralType; - - /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. - * @param message LiteralType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ILiteralType, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralType - * @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.core.LiteralType; - - /** - * Verifies a LiteralType 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 an OutputReference. */ - interface IOutputReference { - - /** OutputReference nodeId */ - nodeId?: (string|null); - - /** OutputReference var */ - "var"?: (string|null); - - /** OutputReference attrPath */ - attrPath?: (flyteidl.core.IPromiseAttribute[]|null); - } - - /** Represents an OutputReference. */ - class OutputReference implements IOutputReference { - - /** - * Constructs a new OutputReference. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOutputReference); - - /** OutputReference nodeId. */ - public nodeId: string; - - /** OutputReference var. */ - public var: string; - - /** OutputReference attrPath. */ - public attrPath: flyteidl.core.IPromiseAttribute[]; - - /** - * Creates a new OutputReference instance using the specified properties. - * @param [properties] Properties to set - * @returns OutputReference instance - */ - public static create(properties?: flyteidl.core.IOutputReference): flyteidl.core.OutputReference; - - /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. - * @param message OutputReference message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOutputReference, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OutputReference message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OutputReference - * @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.core.OutputReference; - - /** - * Verifies an OutputReference 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 PromiseAttribute. */ - interface IPromiseAttribute { - - /** PromiseAttribute stringValue */ - stringValue?: (string|null); - - /** PromiseAttribute intValue */ - intValue?: (number|null); - } - - /** Represents a PromiseAttribute. */ - class PromiseAttribute implements IPromiseAttribute { - - /** - * Constructs a new PromiseAttribute. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IPromiseAttribute); - - /** PromiseAttribute stringValue. */ - public stringValue: string; - - /** PromiseAttribute intValue. */ - public intValue: number; - - /** PromiseAttribute value. */ - public value?: ("stringValue"|"intValue"); - - /** - * Creates a new PromiseAttribute instance using the specified properties. - * @param [properties] Properties to set - * @returns PromiseAttribute instance - */ - public static create(properties?: flyteidl.core.IPromiseAttribute): flyteidl.core.PromiseAttribute; - - /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. - * @param message PromiseAttribute message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IPromiseAttribute, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PromiseAttribute message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PromiseAttribute - * @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.core.PromiseAttribute; - - /** - * Verifies a PromiseAttribute 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 an Error. */ - interface IError { - - /** Error failedNodeId */ - failedNodeId?: (string|null); - - /** Error message */ - message?: (string|null); - } - - /** Represents an Error. */ - class Error implements IError { - - /** - * Constructs a new Error. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IError); - - /** Error failedNodeId. */ - public failedNodeId: string; - - /** Error message. */ - public message: string; - - /** - * Creates a new Error instance using the specified properties. - * @param [properties] Properties to set - * @returns Error instance - */ - public static create(properties?: flyteidl.core.IError): flyteidl.core.Error; - - /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. - * @param message Error message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Error message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Error - * @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.core.Error; - - /** - * Verifies an Error 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 WorkflowExecution. */ - interface IWorkflowExecution { - } - - /** Represents a WorkflowExecution. */ - class WorkflowExecution implements IWorkflowExecution { - - /** - * Constructs a new WorkflowExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowExecution); - - /** - * Creates a new WorkflowExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecution instance - */ - public static create(properties?: flyteidl.core.IWorkflowExecution): flyteidl.core.WorkflowExecution; - - /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. - * @param message WorkflowExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecution - * @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.core.WorkflowExecution; - - /** - * Verifies a WorkflowExecution 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); - } - - namespace WorkflowExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDING = 3, - SUCCEEDED = 4, - FAILING = 5, - FAILED = 6, - ABORTED = 7, - TIMED_OUT = 8, - ABORTING = 9 - } - } - - /** Properties of a NodeExecution. */ - interface INodeExecution { - } - - /** Represents a NodeExecution. */ - class NodeExecution implements INodeExecution { - - /** - * Constructs a new NodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.INodeExecution); - - /** - * Creates a new NodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecution instance - */ - public static create(properties?: flyteidl.core.INodeExecution): flyteidl.core.NodeExecution; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. - * @param message NodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecution - * @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.core.NodeExecution; - - /** - * Verifies a NodeExecution 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); - } - - namespace NodeExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - FAILING = 4, - FAILED = 5, - ABORTED = 6, - SKIPPED = 7, - TIMED_OUT = 8, - DYNAMIC_RUNNING = 9, - RECOVERED = 10 - } - } - - /** Properties of a TaskExecution. */ - interface ITaskExecution { - } - - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { - - /** - * Constructs a new TaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskExecution); - - /** - * Creates a new TaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecution instance - */ - public static create(properties?: flyteidl.core.ITaskExecution): flyteidl.core.TaskExecution; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecution - * @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.core.TaskExecution; - - /** - * Verifies a TaskExecution 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); - } - - namespace TaskExecution { - - /** Phase enum. */ - enum Phase { - UNDEFINED = 0, - QUEUED = 1, - RUNNING = 2, - SUCCEEDED = 3, - ABORTED = 4, - FAILED = 5, - INITIALIZING = 6, - WAITING_FOR_RESOURCES = 7 - } - } - - /** Properties of an ExecutionError. */ - interface IExecutionError { - - /** ExecutionError code */ - code?: (string|null); - - /** ExecutionError message */ - message?: (string|null); - - /** ExecutionError errorUri */ - errorUri?: (string|null); - - /** ExecutionError kind */ - kind?: (flyteidl.core.ExecutionError.ErrorKind|null); - } - - /** Represents an ExecutionError. */ - class ExecutionError implements IExecutionError { - - /** - * Constructs a new ExecutionError. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IExecutionError); - - /** ExecutionError code. */ - public code: string; - - /** ExecutionError message. */ - public message: string; - - /** ExecutionError errorUri. */ - public errorUri: string; - - /** ExecutionError kind. */ - public kind: flyteidl.core.ExecutionError.ErrorKind; - - /** - * Creates a new ExecutionError instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionError instance - */ - public static create(properties?: flyteidl.core.IExecutionError): flyteidl.core.ExecutionError; - - /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. - * @param message ExecutionError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IExecutionError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionError - * @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.core.ExecutionError; - - /** - * Verifies an ExecutionError 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); - } - - namespace ExecutionError { - - /** ErrorKind enum. */ - enum ErrorKind { - UNKNOWN = 0, - USER = 1, - SYSTEM = 2 - } - } - - /** Properties of a TaskLog. */ - interface ITaskLog { - - /** TaskLog uri */ - uri?: (string|null); - - /** TaskLog name */ - name?: (string|null); - - /** TaskLog messageFormat */ - messageFormat?: (flyteidl.core.TaskLog.MessageFormat|null); - - /** TaskLog ttl */ - ttl?: (google.protobuf.IDuration|null); - } - - /** Represents a TaskLog. */ - class TaskLog implements ITaskLog { - - /** - * Constructs a new TaskLog. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskLog); - - /** TaskLog uri. */ - public uri: string; - - /** TaskLog name. */ - public name: string; - - /** TaskLog messageFormat. */ - public messageFormat: flyteidl.core.TaskLog.MessageFormat; - - /** TaskLog ttl. */ - public ttl?: (google.protobuf.IDuration|null); - - /** - * Creates a new TaskLog instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskLog instance - */ - public static create(properties?: flyteidl.core.ITaskLog): flyteidl.core.TaskLog; - - /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. - * @param message TaskLog message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskLog, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskLog message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskLog - * @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.core.TaskLog; - - /** - * Verifies a TaskLog 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); - } - - namespace TaskLog { - - /** MessageFormat enum. */ - enum MessageFormat { - UNKNOWN = 0, - CSV = 1, - JSON = 2 - } - } - - /** Properties of a QualityOfServiceSpec. */ - interface IQualityOfServiceSpec { - - /** QualityOfServiceSpec queueingBudget */ - queueingBudget?: (google.protobuf.IDuration|null); - } - - /** Represents a QualityOfServiceSpec. */ - class QualityOfServiceSpec implements IQualityOfServiceSpec { - - /** - * Constructs a new QualityOfServiceSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IQualityOfServiceSpec); - - /** QualityOfServiceSpec queueingBudget. */ - public queueingBudget?: (google.protobuf.IDuration|null); - - /** - * Creates a new QualityOfServiceSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns QualityOfServiceSpec instance - */ - public static create(properties?: flyteidl.core.IQualityOfServiceSpec): flyteidl.core.QualityOfServiceSpec; - - /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. - * @param message QualityOfServiceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IQualityOfServiceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QualityOfServiceSpec - * @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.core.QualityOfServiceSpec; - - /** - * Verifies a QualityOfServiceSpec 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 QualityOfService. */ - interface IQualityOfService { - - /** QualityOfService tier */ - tier?: (flyteidl.core.QualityOfService.Tier|null); - - /** QualityOfService spec */ - spec?: (flyteidl.core.IQualityOfServiceSpec|null); - } - - /** Represents a QualityOfService. */ - class QualityOfService implements IQualityOfService { - - /** - * Constructs a new QualityOfService. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IQualityOfService); - - /** QualityOfService tier. */ - public tier: flyteidl.core.QualityOfService.Tier; - - /** QualityOfService spec. */ - public spec?: (flyteidl.core.IQualityOfServiceSpec|null); - - /** QualityOfService designation. */ - public designation?: ("tier"|"spec"); - - /** - * Creates a new QualityOfService instance using the specified properties. - * @param [properties] Properties to set - * @returns QualityOfService instance - */ - public static create(properties?: flyteidl.core.IQualityOfService): flyteidl.core.QualityOfService; - - /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. - * @param message QualityOfService message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IQualityOfService, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a QualityOfService message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns QualityOfService - * @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.core.QualityOfService; - - /** - * Verifies a QualityOfService 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); - } - - namespace QualityOfService { - - /** Tier enum. */ - enum Tier { - UNDEFINED = 0, - HIGH = 1, - MEDIUM = 2, - LOW = 3 - } - } - - /** Properties of a Variable. */ - interface IVariable { - - /** Variable type */ - type?: (flyteidl.core.ILiteralType|null); - - /** Variable description */ - description?: (string|null); - - /** Variable artifactPartialId */ - artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag */ - artifactTag?: (flyteidl.core.IArtifactTag|null); - } - - /** Represents a Variable. */ - class Variable implements IVariable { - - /** - * Constructs a new Variable. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVariable); - - /** Variable type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** Variable description. */ - public description: string; - - /** Variable artifactPartialId. */ - public artifactPartialId?: (flyteidl.core.IArtifactID|null); - - /** Variable artifactTag. */ - public artifactTag?: (flyteidl.core.IArtifactTag|null); - - /** - * Creates a new Variable instance using the specified properties. - * @param [properties] Properties to set - * @returns Variable instance - */ - public static create(properties?: flyteidl.core.IVariable): flyteidl.core.Variable; - - /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. - * @param message Variable message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVariable, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Variable message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Variable - * @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.core.Variable; - - /** - * Verifies a Variable 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 VariableMap. */ - interface IVariableMap { - - /** VariableMap variables */ - variables?: ({ [k: string]: flyteidl.core.IVariable }|null); - } - - /** Represents a VariableMap. */ - class VariableMap implements IVariableMap { - - /** - * Constructs a new VariableMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IVariableMap); - - /** VariableMap variables. */ - public variables: { [k: string]: flyteidl.core.IVariable }; - - /** - * Creates a new VariableMap instance using the specified properties. - * @param [properties] Properties to set - * @returns VariableMap instance - */ - public static create(properties?: flyteidl.core.IVariableMap): flyteidl.core.VariableMap; - - /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. - * @param message VariableMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IVariableMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a VariableMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns VariableMap - * @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.core.VariableMap; - - /** - * Verifies a VariableMap 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 TypedInterface. */ - interface ITypedInterface { - - /** TypedInterface inputs */ - inputs?: (flyteidl.core.IVariableMap|null); - - /** TypedInterface outputs */ - outputs?: (flyteidl.core.IVariableMap|null); - } - - /** Represents a TypedInterface. */ - class TypedInterface implements ITypedInterface { - - /** - * Constructs a new TypedInterface. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITypedInterface); - - /** TypedInterface inputs. */ - public inputs?: (flyteidl.core.IVariableMap|null); - - /** TypedInterface outputs. */ - public outputs?: (flyteidl.core.IVariableMap|null); - - /** - * Creates a new TypedInterface instance using the specified properties. - * @param [properties] Properties to set - * @returns TypedInterface instance - */ - public static create(properties?: flyteidl.core.ITypedInterface): flyteidl.core.TypedInterface; - - /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. - * @param message TypedInterface message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITypedInterface, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TypedInterface message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TypedInterface - * @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.core.TypedInterface; - - /** - * Verifies a TypedInterface 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 Parameter. */ - interface IParameter { - - /** Parameter var */ - "var"?: (flyteidl.core.IVariable|null); - - /** Parameter default */ - "default"?: (flyteidl.core.ILiteral|null); - - /** Parameter required */ - required?: (boolean|null); - - /** Parameter artifactQuery */ - artifactQuery?: (flyteidl.core.IArtifactQuery|null); - - /** Parameter artifactId */ - artifactId?: (flyteidl.core.IArtifactID|null); - } - - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IParameter); - - /** Parameter var. */ - public var?: (flyteidl.core.IVariable|null); - - /** Parameter default. */ - public default?: (flyteidl.core.ILiteral|null); - - /** Parameter required. */ - public required: boolean; - - /** Parameter artifactQuery. */ - public artifactQuery?: (flyteidl.core.IArtifactQuery|null); - - /** Parameter artifactId. */ - public artifactId?: (flyteidl.core.IArtifactID|null); - - /** Parameter behavior. */ - public behavior?: ("default"|"required"|"artifactQuery"|"artifactId"); - - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: flyteidl.core.IParameter): flyteidl.core.Parameter; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @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.core.Parameter; - - /** - * Verifies a Parameter 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 ParameterMap. */ - interface IParameterMap { - - /** ParameterMap parameters */ - parameters?: ({ [k: string]: flyteidl.core.IParameter }|null); - } - - /** Represents a ParameterMap. */ - class ParameterMap implements IParameterMap { - - /** - * Constructs a new ParameterMap. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IParameterMap); - - /** ParameterMap parameters. */ - public parameters: { [k: string]: flyteidl.core.IParameter }; - - /** - * Creates a new ParameterMap instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterMap instance - */ - public static create(properties?: flyteidl.core.IParameterMap): flyteidl.core.ParameterMap; - - /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. - * @param message ParameterMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IParameterMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParameterMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterMap - * @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.core.ParameterMap; - - /** - * Verifies a ParameterMap 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 Resources. */ - interface IResources { - - /** Resources requests */ - requests?: (flyteidl.core.Resources.IResourceEntry[]|null); - - /** Resources limits */ - limits?: (flyteidl.core.Resources.IResourceEntry[]|null); - } - - /** Represents a Resources. */ - class Resources implements IResources { - - /** - * Constructs a new Resources. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IResources); - - /** Resources requests. */ - public requests: flyteidl.core.Resources.IResourceEntry[]; - - /** Resources limits. */ - public limits: flyteidl.core.Resources.IResourceEntry[]; - - /** - * Creates a new Resources instance using the specified properties. - * @param [properties] Properties to set - * @returns Resources instance - */ - public static create(properties?: flyteidl.core.IResources): flyteidl.core.Resources; - - /** - * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. - * @param message Resources message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IResources, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Resources message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Resources - * @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.core.Resources; - - /** - * Verifies a Resources 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); - } - - namespace Resources { - - /** ResourceName enum. */ - enum ResourceName { - UNKNOWN = 0, - CPU = 1, - GPU = 2, - MEMORY = 3, - STORAGE = 4, - EPHEMERAL_STORAGE = 5 - } - - /** Properties of a ResourceEntry. */ - interface IResourceEntry { - - /** ResourceEntry name */ - name?: (flyteidl.core.Resources.ResourceName|null); - - /** ResourceEntry value */ - value?: (string|null); - } - - /** Represents a ResourceEntry. */ - class ResourceEntry implements IResourceEntry { - - /** - * Constructs a new ResourceEntry. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.Resources.IResourceEntry); - - /** ResourceEntry name. */ - public name: flyteidl.core.Resources.ResourceName; - - /** ResourceEntry value. */ - public value: string; - - /** - * Creates a new ResourceEntry instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceEntry instance - */ - public static create(properties?: flyteidl.core.Resources.IResourceEntry): flyteidl.core.Resources.ResourceEntry; - - /** - * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. - * @param message ResourceEntry message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.Resources.IResourceEntry, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourceEntry message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceEntry - * @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.core.Resources.ResourceEntry; - - /** - * Verifies a ResourceEntry 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 GPUAccelerator. */ - interface IGPUAccelerator { - - /** GPUAccelerator device */ - device?: (string|null); - - /** GPUAccelerator unpartitioned */ - unpartitioned?: (boolean|null); - - /** GPUAccelerator partitionSize */ - partitionSize?: (string|null); - } - - /** Represents a GPUAccelerator. */ - class GPUAccelerator implements IGPUAccelerator { - - /** - * Constructs a new GPUAccelerator. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IGPUAccelerator); - - /** GPUAccelerator device. */ - public device: string; - - /** GPUAccelerator unpartitioned. */ - public unpartitioned: boolean; - - /** GPUAccelerator partitionSize. */ - public partitionSize: string; - - /** GPUAccelerator partitionSizeValue. */ - public partitionSizeValue?: ("unpartitioned"|"partitionSize"); - - /** - * Creates a new GPUAccelerator instance using the specified properties. - * @param [properties] Properties to set - * @returns GPUAccelerator instance - */ - public static create(properties?: flyteidl.core.IGPUAccelerator): flyteidl.core.GPUAccelerator; - - /** - * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. - * @param message GPUAccelerator message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IGPUAccelerator, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GPUAccelerator message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GPUAccelerator - * @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.core.GPUAccelerator; - - /** - * Verifies a GPUAccelerator 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 an ExtendedResources. */ - interface IExtendedResources { - - /** ExtendedResources gpuAccelerator */ - gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); - } - - /** Represents an ExtendedResources. */ - class ExtendedResources implements IExtendedResources { - - /** - * Constructs a new ExtendedResources. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IExtendedResources); - - /** ExtendedResources gpuAccelerator. */ - public gpuAccelerator?: (flyteidl.core.IGPUAccelerator|null); - - /** - * Creates a new ExtendedResources instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtendedResources instance - */ - public static create(properties?: flyteidl.core.IExtendedResources): flyteidl.core.ExtendedResources; - - /** - * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. - * @param message ExtendedResources message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IExtendedResources, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtendedResources message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtendedResources - * @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.core.ExtendedResources; - - /** - * Verifies an ExtendedResources 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 RuntimeMetadata. */ - interface IRuntimeMetadata { - - /** RuntimeMetadata type */ - type?: (flyteidl.core.RuntimeMetadata.RuntimeType|null); - - /** RuntimeMetadata version */ - version?: (string|null); - - /** RuntimeMetadata flavor */ - flavor?: (string|null); - } - - /** Represents a RuntimeMetadata. */ - class RuntimeMetadata implements IRuntimeMetadata { - - /** - * Constructs a new RuntimeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IRuntimeMetadata); - - /** RuntimeMetadata type. */ - public type: flyteidl.core.RuntimeMetadata.RuntimeType; - - /** RuntimeMetadata version. */ - public version: string; - - /** RuntimeMetadata flavor. */ - public flavor: string; - - /** - * Creates a new RuntimeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns RuntimeMetadata instance - */ - public static create(properties?: flyteidl.core.IRuntimeMetadata): flyteidl.core.RuntimeMetadata; - - /** - * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. - * @param message RuntimeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IRuntimeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RuntimeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RuntimeMetadata - * @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.core.RuntimeMetadata; - - /** - * Verifies a RuntimeMetadata 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); - } - - namespace RuntimeMetadata { - - /** RuntimeType enum. */ - enum RuntimeType { - OTHER = 0, - FLYTE_SDK = 1 - } - } - - /** Properties of a TaskMetadata. */ - interface ITaskMetadata { - - /** TaskMetadata discoverable */ - discoverable?: (boolean|null); - - /** TaskMetadata runtime */ - runtime?: (flyteidl.core.IRuntimeMetadata|null); - - /** TaskMetadata timeout */ - timeout?: (google.protobuf.IDuration|null); - - /** TaskMetadata retries */ - retries?: (flyteidl.core.IRetryStrategy|null); - - /** TaskMetadata discoveryVersion */ - discoveryVersion?: (string|null); - - /** TaskMetadata deprecatedErrorMessage */ - deprecatedErrorMessage?: (string|null); - - /** TaskMetadata interruptible */ - interruptible?: (boolean|null); - - /** TaskMetadata cacheSerializable */ - cacheSerializable?: (boolean|null); - - /** TaskMetadata generatesDeck */ - generatesDeck?: (boolean|null); - - /** TaskMetadata tags */ - tags?: ({ [k: string]: string }|null); - - /** TaskMetadata podTemplateName */ - podTemplateName?: (string|null); - - /** TaskMetadata cacheIgnoreInputVars */ - cacheIgnoreInputVars?: (string[]|null); - } - - /** Represents a TaskMetadata. */ - class TaskMetadata implements ITaskMetadata { - - /** - * Constructs a new TaskMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskMetadata); - - /** TaskMetadata discoverable. */ - public discoverable: boolean; - - /** TaskMetadata runtime. */ - public runtime?: (flyteidl.core.IRuntimeMetadata|null); - - /** TaskMetadata timeout. */ - public timeout?: (google.protobuf.IDuration|null); - - /** TaskMetadata retries. */ - public retries?: (flyteidl.core.IRetryStrategy|null); - - /** TaskMetadata discoveryVersion. */ - public discoveryVersion: string; - - /** TaskMetadata deprecatedErrorMessage. */ - public deprecatedErrorMessage: string; - - /** TaskMetadata interruptible. */ - public interruptible: boolean; - - /** TaskMetadata cacheSerializable. */ - public cacheSerializable: boolean; - - /** TaskMetadata generatesDeck. */ - public generatesDeck: boolean; - - /** TaskMetadata tags. */ - public tags: { [k: string]: string }; - - /** TaskMetadata podTemplateName. */ - public podTemplateName: string; - - /** TaskMetadata cacheIgnoreInputVars. */ - public cacheIgnoreInputVars: string[]; - - /** TaskMetadata interruptibleValue. */ - public interruptibleValue?: "interruptible"; - - /** - * Creates a new TaskMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskMetadata instance - */ - public static create(properties?: flyteidl.core.ITaskMetadata): flyteidl.core.TaskMetadata; - - /** - * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. - * @param message TaskMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskMetadata - * @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.core.TaskMetadata; - - /** - * Verifies a TaskMetadata 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 TaskTemplate. */ - interface ITaskTemplate { - - /** TaskTemplate id */ - id?: (flyteidl.core.IIdentifier|null); - - /** TaskTemplate type */ - type?: (string|null); - - /** TaskTemplate metadata */ - metadata?: (flyteidl.core.ITaskMetadata|null); - - /** TaskTemplate interface */ - "interface"?: (flyteidl.core.ITypedInterface|null); - - /** TaskTemplate custom */ - custom?: (google.protobuf.IStruct|null); - - /** TaskTemplate container */ - container?: (flyteidl.core.IContainer|null); - - /** TaskTemplate k8sPod */ - k8sPod?: (flyteidl.core.IK8sPod|null); - - /** TaskTemplate sql */ - sql?: (flyteidl.core.ISql|null); - - /** TaskTemplate taskTypeVersion */ - taskTypeVersion?: (number|null); - - /** TaskTemplate securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** TaskTemplate extendedResources */ - extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** TaskTemplate config */ - config?: ({ [k: string]: string }|null); - } - - /** Represents a TaskTemplate. */ - class TaskTemplate implements ITaskTemplate { - - /** - * Constructs a new TaskTemplate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ITaskTemplate); - - /** TaskTemplate id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** TaskTemplate type. */ - public type: string; - - /** TaskTemplate metadata. */ - public metadata?: (flyteidl.core.ITaskMetadata|null); - - /** TaskTemplate interface. */ - public interface?: (flyteidl.core.ITypedInterface|null); - - /** TaskTemplate custom. */ - public custom?: (google.protobuf.IStruct|null); - - /** TaskTemplate container. */ - public container?: (flyteidl.core.IContainer|null); - - /** TaskTemplate k8sPod. */ - public k8sPod?: (flyteidl.core.IK8sPod|null); - - /** TaskTemplate sql. */ - public sql?: (flyteidl.core.ISql|null); - - /** TaskTemplate taskTypeVersion. */ - public taskTypeVersion: number; - - /** TaskTemplate securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** TaskTemplate extendedResources. */ - public extendedResources?: (flyteidl.core.IExtendedResources|null); - - /** TaskTemplate config. */ - public config: { [k: string]: string }; - - /** TaskTemplate target. */ - public target?: ("container"|"k8sPod"|"sql"); - - /** - * Creates a new TaskTemplate instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskTemplate instance - */ - public static create(properties?: flyteidl.core.ITaskTemplate): flyteidl.core.TaskTemplate; - - /** - * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. - * @param message TaskTemplate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ITaskTemplate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskTemplate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskTemplate - * @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.core.TaskTemplate; - - /** - * Verifies a TaskTemplate 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 ContainerPort. */ - interface IContainerPort { - - /** ContainerPort containerPort */ - containerPort?: (number|null); - } - - /** Represents a ContainerPort. */ - class ContainerPort implements IContainerPort { - - /** - * Constructs a new ContainerPort. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainerPort); - - /** ContainerPort containerPort. */ - public containerPort: number; - - /** - * Creates a new ContainerPort instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerPort instance - */ - public static create(properties?: flyteidl.core.IContainerPort): flyteidl.core.ContainerPort; - - /** - * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. - * @param message ContainerPort message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainerPort, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContainerPort message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerPort - * @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.core.ContainerPort; - - /** - * Verifies a ContainerPort 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 Container. */ - interface IContainer { - - /** Container image */ - image?: (string|null); - - /** Container command */ - command?: (string[]|null); - - /** Container args */ - args?: (string[]|null); - - /** Container resources */ - resources?: (flyteidl.core.IResources|null); - - /** Container env */ - env?: (flyteidl.core.IKeyValuePair[]|null); - - /** Container config */ - config?: (flyteidl.core.IKeyValuePair[]|null); - - /** Container ports */ - ports?: (flyteidl.core.IContainerPort[]|null); - - /** Container dataConfig */ - dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** Container architecture */ - architecture?: (flyteidl.core.Container.Architecture|null); - } - - /** Represents a Container. */ - class Container implements IContainer { - - /** - * Constructs a new Container. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainer); - - /** Container image. */ - public image: string; - - /** Container command. */ - public command: string[]; - - /** Container args. */ - public args: string[]; - - /** Container resources. */ - public resources?: (flyteidl.core.IResources|null); - - /** Container env. */ - public env: flyteidl.core.IKeyValuePair[]; - - /** Container config. */ - public config: flyteidl.core.IKeyValuePair[]; - - /** Container ports. */ - public ports: flyteidl.core.IContainerPort[]; - - /** Container dataConfig. */ - public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** Container architecture. */ - public architecture: flyteidl.core.Container.Architecture; - - /** - * Creates a new Container instance using the specified properties. - * @param [properties] Properties to set - * @returns Container instance - */ - public static create(properties?: flyteidl.core.IContainer): flyteidl.core.Container; - - /** - * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. - * @param message Container message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainer, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Container message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Container - * @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.core.Container; - - /** - * Verifies a Container 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); - } - - namespace Container { - - /** Architecture enum. */ - enum Architecture { - UNKNOWN = 0, - AMD64 = 1, - ARM64 = 2, - ARM_V6 = 3, - ARM_V7 = 4 - } - } - - /** Properties of a IOStrategy. */ - interface IIOStrategy { - - /** IOStrategy downloadMode */ - downloadMode?: (flyteidl.core.IOStrategy.DownloadMode|null); - - /** IOStrategy uploadMode */ - uploadMode?: (flyteidl.core.IOStrategy.UploadMode|null); - } - - /** Represents a IOStrategy. */ - class IOStrategy implements IIOStrategy { - - /** - * Constructs a new IOStrategy. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIOStrategy); - - /** IOStrategy downloadMode. */ - public downloadMode: flyteidl.core.IOStrategy.DownloadMode; - - /** IOStrategy uploadMode. */ - public uploadMode: flyteidl.core.IOStrategy.UploadMode; - - /** - * Creates a new IOStrategy instance using the specified properties. - * @param [properties] Properties to set - * @returns IOStrategy instance - */ - public static create(properties?: flyteidl.core.IIOStrategy): flyteidl.core.IOStrategy; - - /** - * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. - * @param message IOStrategy message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIOStrategy, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a IOStrategy message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IOStrategy - * @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.core.IOStrategy; - - /** - * Verifies a IOStrategy 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); - } - - namespace IOStrategy { - - /** DownloadMode enum. */ - enum DownloadMode { - DOWNLOAD_EAGER = 0, - DOWNLOAD_STREAM = 1, - DO_NOT_DOWNLOAD = 2 - } - - /** UploadMode enum. */ - enum UploadMode { - UPLOAD_ON_EXIT = 0, - UPLOAD_EAGER = 1, - DO_NOT_UPLOAD = 2 - } - } - - /** Properties of a DataLoadingConfig. */ - interface IDataLoadingConfig { - - /** DataLoadingConfig enabled */ - enabled?: (boolean|null); - - /** DataLoadingConfig inputPath */ - inputPath?: (string|null); - - /** DataLoadingConfig outputPath */ - outputPath?: (string|null); - - /** DataLoadingConfig format */ - format?: (flyteidl.core.DataLoadingConfig.LiteralMapFormat|null); - - /** DataLoadingConfig ioStrategy */ - ioStrategy?: (flyteidl.core.IIOStrategy|null); - } - - /** Represents a DataLoadingConfig. */ - class DataLoadingConfig implements IDataLoadingConfig { - - /** - * Constructs a new DataLoadingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IDataLoadingConfig); - - /** DataLoadingConfig enabled. */ - public enabled: boolean; - - /** DataLoadingConfig inputPath. */ - public inputPath: string; - - /** DataLoadingConfig outputPath. */ - public outputPath: string; - - /** DataLoadingConfig format. */ - public format: flyteidl.core.DataLoadingConfig.LiteralMapFormat; - - /** DataLoadingConfig ioStrategy. */ - public ioStrategy?: (flyteidl.core.IIOStrategy|null); - - /** - * Creates a new DataLoadingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns DataLoadingConfig instance - */ - public static create(properties?: flyteidl.core.IDataLoadingConfig): flyteidl.core.DataLoadingConfig; - - /** - * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. - * @param message DataLoadingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IDataLoadingConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DataLoadingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DataLoadingConfig - * @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.core.DataLoadingConfig; - - /** - * Verifies a DataLoadingConfig 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); - } - - namespace DataLoadingConfig { - - /** LiteralMapFormat enum. */ - enum LiteralMapFormat { - JSON = 0, - YAML = 1, - PROTO = 2 - } - } - - /** Properties of a K8sPod. */ - interface IK8sPod { - - /** K8sPod metadata */ - metadata?: (flyteidl.core.IK8sObjectMetadata|null); - - /** K8sPod podSpec */ - podSpec?: (google.protobuf.IStruct|null); - - /** K8sPod dataConfig */ - dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - } - - /** Represents a K8sPod. */ - class K8sPod implements IK8sPod { - - /** - * Constructs a new K8sPod. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IK8sPod); - - /** K8sPod metadata. */ - public metadata?: (flyteidl.core.IK8sObjectMetadata|null); - - /** K8sPod podSpec. */ - public podSpec?: (google.protobuf.IStruct|null); - - /** K8sPod dataConfig. */ - public dataConfig?: (flyteidl.core.IDataLoadingConfig|null); - - /** - * Creates a new K8sPod instance using the specified properties. - * @param [properties] Properties to set - * @returns K8sPod instance - */ - public static create(properties?: flyteidl.core.IK8sPod): flyteidl.core.K8sPod; - - /** - * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. - * @param message K8sPod message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IK8sPod, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a K8sPod message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns K8sPod - * @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.core.K8sPod; - - /** - * Verifies a K8sPod 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 K8sObjectMetadata. */ - interface IK8sObjectMetadata { - - /** K8sObjectMetadata labels */ - labels?: ({ [k: string]: string }|null); - - /** K8sObjectMetadata annotations */ - annotations?: ({ [k: string]: string }|null); - } - - /** Represents a K8sObjectMetadata. */ - class K8sObjectMetadata implements IK8sObjectMetadata { - - /** - * Constructs a new K8sObjectMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IK8sObjectMetadata); - - /** K8sObjectMetadata labels. */ - public labels: { [k: string]: string }; - - /** K8sObjectMetadata annotations. */ - public annotations: { [k: string]: string }; - - /** - * Creates a new K8sObjectMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns K8sObjectMetadata instance - */ - public static create(properties?: flyteidl.core.IK8sObjectMetadata): flyteidl.core.K8sObjectMetadata; - - /** - * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. - * @param message K8sObjectMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IK8sObjectMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a K8sObjectMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns K8sObjectMetadata - * @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.core.K8sObjectMetadata; - - /** - * Verifies a K8sObjectMetadata 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 Sql. */ - interface ISql { - - /** Sql statement */ - statement?: (string|null); - - /** Sql dialect */ - dialect?: (flyteidl.core.Sql.Dialect|null); - } - - /** Represents a Sql. */ - class Sql implements ISql { - - /** - * Constructs a new Sql. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISql); - - /** Sql statement. */ - public statement: string; - - /** Sql dialect. */ - public dialect: flyteidl.core.Sql.Dialect; - - /** - * Creates a new Sql instance using the specified properties. - * @param [properties] Properties to set - * @returns Sql instance - */ - public static create(properties?: flyteidl.core.ISql): flyteidl.core.Sql; - - /** - * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. - * @param message Sql message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISql, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Sql message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Sql - * @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.core.Sql; - - /** - * Verifies a Sql 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); - } - - namespace Sql { - - /** Dialect enum. */ - enum Dialect { - UNDEFINED = 0, - ANSI = 1, - HIVE = 2, - OTHER = 3 - } - } - - /** Properties of a Secret. */ - interface ISecret { - - /** Secret group */ - group?: (string|null); - - /** Secret groupVersion */ - groupVersion?: (string|null); - - /** Secret key */ - key?: (string|null); - - /** Secret mountRequirement */ - mountRequirement?: (flyteidl.core.Secret.MountType|null); - } - - /** Represents a Secret. */ - class Secret implements ISecret { - - /** - * Constructs a new Secret. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISecret); - - /** Secret group. */ - public group: string; - - /** Secret groupVersion. */ - public groupVersion: string; - - /** Secret key. */ - public key: string; - - /** Secret mountRequirement. */ - public mountRequirement: flyteidl.core.Secret.MountType; - - /** - * Creates a new Secret instance using the specified properties. - * @param [properties] Properties to set - * @returns Secret instance - */ - public static create(properties?: flyteidl.core.ISecret): flyteidl.core.Secret; - - /** - * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. - * @param message Secret message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISecret, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Secret message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Secret - * @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.core.Secret; - - /** - * Verifies a Secret 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); - } - - namespace Secret { - - /** MountType enum. */ - enum MountType { - ANY = 0, - ENV_VAR = 1, - FILE = 2 - } - } - - /** Properties of a OAuth2Client. */ - interface IOAuth2Client { - - /** OAuth2Client clientId */ - clientId?: (string|null); - - /** OAuth2Client clientSecret */ - clientSecret?: (flyteidl.core.ISecret|null); - } - - /** Represents a OAuth2Client. */ - class OAuth2Client implements IOAuth2Client { - - /** - * Constructs a new OAuth2Client. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOAuth2Client); - - /** OAuth2Client clientId. */ - public clientId: string; - - /** OAuth2Client clientSecret. */ - public clientSecret?: (flyteidl.core.ISecret|null); - - /** - * Creates a new OAuth2Client instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2Client instance - */ - public static create(properties?: flyteidl.core.IOAuth2Client): flyteidl.core.OAuth2Client; - - /** - * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. - * @param message OAuth2Client message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOAuth2Client, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2Client message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2Client - * @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.core.OAuth2Client; - - /** - * Verifies a OAuth2Client 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 an Identity. */ - interface IIdentity { - - /** Identity iamRole */ - iamRole?: (string|null); - - /** Identity k8sServiceAccount */ - k8sServiceAccount?: (string|null); - - /** Identity oauth2Client */ - oauth2Client?: (flyteidl.core.IOAuth2Client|null); - - /** Identity executionIdentity */ - executionIdentity?: (string|null); - } - - /** Represents an Identity. */ - class Identity implements IIdentity { - - /** - * Constructs a new Identity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IIdentity); - - /** Identity iamRole. */ - public iamRole: string; - - /** Identity k8sServiceAccount. */ - public k8sServiceAccount: string; - - /** Identity oauth2Client. */ - public oauth2Client?: (flyteidl.core.IOAuth2Client|null); - - /** Identity executionIdentity. */ - public executionIdentity: string; - - /** - * Creates a new Identity instance using the specified properties. - * @param [properties] Properties to set - * @returns Identity instance - */ - public static create(properties?: flyteidl.core.IIdentity): flyteidl.core.Identity; - - /** - * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. - * @param message Identity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IIdentity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Identity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Identity - * @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.core.Identity; - - /** - * Verifies an Identity 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 OAuth2TokenRequest. */ - interface IOAuth2TokenRequest { - - /** OAuth2TokenRequest name */ - name?: (string|null); - - /** OAuth2TokenRequest type */ - type?: (flyteidl.core.OAuth2TokenRequest.Type|null); - - /** OAuth2TokenRequest client */ - client?: (flyteidl.core.IOAuth2Client|null); - - /** OAuth2TokenRequest idpDiscoveryEndpoint */ - idpDiscoveryEndpoint?: (string|null); - - /** OAuth2TokenRequest tokenEndpoint */ - tokenEndpoint?: (string|null); - } - - /** Represents a OAuth2TokenRequest. */ - class OAuth2TokenRequest implements IOAuth2TokenRequest { - - /** - * Constructs a new OAuth2TokenRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IOAuth2TokenRequest); - - /** OAuth2TokenRequest name. */ - public name: string; - - /** OAuth2TokenRequest type. */ - public type: flyteidl.core.OAuth2TokenRequest.Type; - - /** OAuth2TokenRequest client. */ - public client?: (flyteidl.core.IOAuth2Client|null); - - /** OAuth2TokenRequest idpDiscoveryEndpoint. */ - public idpDiscoveryEndpoint: string; - - /** OAuth2TokenRequest tokenEndpoint. */ - public tokenEndpoint: string; - - /** - * Creates a new OAuth2TokenRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2TokenRequest instance - */ - public static create(properties?: flyteidl.core.IOAuth2TokenRequest): flyteidl.core.OAuth2TokenRequest; - - /** - * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. - * @param message OAuth2TokenRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IOAuth2TokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2TokenRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2TokenRequest - * @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.core.OAuth2TokenRequest; - - /** - * Verifies a OAuth2TokenRequest 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); - } - - namespace OAuth2TokenRequest { - - /** Type enum. */ - enum Type { - CLIENT_CREDENTIALS = 0 - } - } - - /** Properties of a SecurityContext. */ - interface ISecurityContext { - - /** SecurityContext runAs */ - runAs?: (flyteidl.core.IIdentity|null); - - /** SecurityContext secrets */ - secrets?: (flyteidl.core.ISecret[]|null); - - /** SecurityContext tokens */ - tokens?: (flyteidl.core.IOAuth2TokenRequest[]|null); - } - - /** Represents a SecurityContext. */ - class SecurityContext implements ISecurityContext { - - /** - * Constructs a new SecurityContext. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISecurityContext); - - /** SecurityContext runAs. */ - public runAs?: (flyteidl.core.IIdentity|null); - - /** SecurityContext secrets. */ - public secrets: flyteidl.core.ISecret[]; - - /** SecurityContext tokens. */ - public tokens: flyteidl.core.IOAuth2TokenRequest[]; - - /** - * Creates a new SecurityContext instance using the specified properties. - * @param [properties] Properties to set - * @returns SecurityContext instance - */ - public static create(properties?: flyteidl.core.ISecurityContext): flyteidl.core.SecurityContext; - - /** - * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. - * @param message SecurityContext message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISecurityContext, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SecurityContext message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SecurityContext - * @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.core.SecurityContext; - - /** - * Verifies a SecurityContext 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 DynamicJobSpec. */ - interface IDynamicJobSpec { - - /** DynamicJobSpec nodes */ - nodes?: (flyteidl.core.INode[]|null); - - /** DynamicJobSpec minSuccesses */ - minSuccesses?: (Long|null); - - /** DynamicJobSpec outputs */ - outputs?: (flyteidl.core.IBinding[]|null); - - /** DynamicJobSpec tasks */ - tasks?: (flyteidl.core.ITaskTemplate[]|null); - - /** DynamicJobSpec subworkflows */ - subworkflows?: (flyteidl.core.IWorkflowTemplate[]|null); - } - - /** Represents a DynamicJobSpec. */ - class DynamicJobSpec implements IDynamicJobSpec { - - /** - * Constructs a new DynamicJobSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IDynamicJobSpec); - - /** DynamicJobSpec nodes. */ - public nodes: flyteidl.core.INode[]; - - /** DynamicJobSpec minSuccesses. */ - public minSuccesses: Long; - - /** DynamicJobSpec outputs. */ - public outputs: flyteidl.core.IBinding[]; - - /** DynamicJobSpec tasks. */ - public tasks: flyteidl.core.ITaskTemplate[]; - - /** DynamicJobSpec subworkflows. */ - public subworkflows: flyteidl.core.IWorkflowTemplate[]; - - /** - * Creates a new DynamicJobSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicJobSpec instance - */ - public static create(properties?: flyteidl.core.IDynamicJobSpec): flyteidl.core.DynamicJobSpec; - - /** - * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. - * @param message DynamicJobSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IDynamicJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicJobSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicJobSpec - * @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.core.DynamicJobSpec; - - /** - * Verifies a DynamicJobSpec 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 ContainerError. */ - interface IContainerError { - - /** ContainerError code */ - code?: (string|null); - - /** ContainerError message */ - message?: (string|null); - - /** ContainerError kind */ - kind?: (flyteidl.core.ContainerError.Kind|null); - - /** ContainerError origin */ - origin?: (flyteidl.core.ExecutionError.ErrorKind|null); - } - - /** Represents a ContainerError. */ - class ContainerError implements IContainerError { - - /** - * Constructs a new ContainerError. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IContainerError); - - /** ContainerError code. */ - public code: string; - - /** ContainerError message. */ - public message: string; - - /** ContainerError kind. */ - public kind: flyteidl.core.ContainerError.Kind; - - /** ContainerError origin. */ - public origin: flyteidl.core.ExecutionError.ErrorKind; - - /** - * Creates a new ContainerError instance using the specified properties. - * @param [properties] Properties to set - * @returns ContainerError instance - */ - public static create(properties?: flyteidl.core.IContainerError): flyteidl.core.ContainerError; - - /** - * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. - * @param message ContainerError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IContainerError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ContainerError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContainerError - * @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.core.ContainerError; - - /** - * Verifies a ContainerError 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); - } - - namespace ContainerError { - - /** Kind enum. */ - enum Kind { - NON_RECOVERABLE = 0, - RECOVERABLE = 1 - } - } - - /** Properties of an ErrorDocument. */ - interface IErrorDocument { - - /** ErrorDocument error */ - error?: (flyteidl.core.IContainerError|null); - } - - /** Represents an ErrorDocument. */ - class ErrorDocument implements IErrorDocument { - - /** - * Constructs a new ErrorDocument. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IErrorDocument); - - /** ErrorDocument error. */ - public error?: (flyteidl.core.IContainerError|null); - - /** - * Creates a new ErrorDocument instance using the specified properties. - * @param [properties] Properties to set - * @returns ErrorDocument instance - */ - public static create(properties?: flyteidl.core.IErrorDocument): flyteidl.core.ErrorDocument; - - /** - * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. - * @param message ErrorDocument message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IErrorDocument, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ErrorDocument message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ErrorDocument - * @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.core.ErrorDocument; - - /** - * Verifies an ErrorDocument 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 Span. */ - interface ISpan { - - /** Span startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** Span endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** Span workflowId */ - workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Span nodeId */ - nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** Span taskId */ - taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** Span operationId */ - operationId?: (string|null); - - /** Span spans */ - spans?: (flyteidl.core.ISpan[]|null); - } - - /** Represents a Span. */ - class Span implements ISpan { - - /** - * Constructs a new Span. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.ISpan); - - /** Span startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** Span endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** Span workflowId. */ - public workflowId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Span nodeId. */ - public nodeId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** Span taskId. */ - public taskId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** Span operationId. */ - public operationId: string; - - /** Span spans. */ - public spans: flyteidl.core.ISpan[]; - - /** Span id. */ - public id?: ("workflowId"|"nodeId"|"taskId"|"operationId"); - - /** - * Creates a new Span instance using the specified properties. - * @param [properties] Properties to set - * @returns Span instance - */ - public static create(properties?: flyteidl.core.ISpan): flyteidl.core.Span; - - /** - * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. - * @param message Span message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.ISpan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Span message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Span - * @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.core.Span; - - /** - * Verifies a Span 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 WorkflowClosure. */ - interface IWorkflowClosure { - - /** WorkflowClosure workflow */ - workflow?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowClosure tasks */ - tasks?: (flyteidl.core.ITaskTemplate[]|null); - } - - /** Represents a WorkflowClosure. */ - class WorkflowClosure implements IWorkflowClosure { - - /** - * Constructs a new WorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.core.IWorkflowClosure); - - /** WorkflowClosure workflow. */ - public workflow?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowClosure tasks. */ - public tasks: flyteidl.core.ITaskTemplate[]; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowClosure instance - */ - public static create(properties?: flyteidl.core.IWorkflowClosure): flyteidl.core.WorkflowClosure; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. - * @param message WorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.core.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowClosure - * @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.core.WorkflowClosure; - - /** - * Verifies a WorkflowClosure 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); - } - } - - /** Namespace event. */ - namespace event { - - /** Properties of a CloudEventWorkflowExecution. */ - interface ICloudEventWorkflowExecution { - - /** CloudEventWorkflowExecution rawEvent */ - rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** CloudEventWorkflowExecution outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventWorkflowExecution outputInterface */ - outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventWorkflowExecution inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventWorkflowExecution artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventWorkflowExecution referenceExecution */ - referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventWorkflowExecution principal */ - principal?: (string|null); - - /** CloudEventWorkflowExecution launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a CloudEventWorkflowExecution. */ - class CloudEventWorkflowExecution implements ICloudEventWorkflowExecution { - - /** - * Constructs a new CloudEventWorkflowExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventWorkflowExecution); - - /** CloudEventWorkflowExecution rawEvent. */ - public rawEvent?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** CloudEventWorkflowExecution outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventWorkflowExecution outputInterface. */ - public outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventWorkflowExecution inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventWorkflowExecution artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventWorkflowExecution referenceExecution. */ - public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventWorkflowExecution principal. */ - public principal: string; - - /** CloudEventWorkflowExecution launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new CloudEventWorkflowExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventWorkflowExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventWorkflowExecution): flyteidl.event.CloudEventWorkflowExecution; - - /** - * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. - * @param message CloudEventWorkflowExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventWorkflowExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventWorkflowExecution - * @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.event.CloudEventWorkflowExecution; - - /** - * Verifies a CloudEventWorkflowExecution 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 CloudEventNodeExecution. */ - interface ICloudEventNodeExecution { - - /** CloudEventNodeExecution rawEvent */ - rawEvent?: (flyteidl.event.INodeExecutionEvent|null); - - /** CloudEventNodeExecution taskExecId */ - taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CloudEventNodeExecution outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventNodeExecution outputInterface */ - outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventNodeExecution inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventNodeExecution artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventNodeExecution principal */ - principal?: (string|null); - - /** CloudEventNodeExecution launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - } - - /** Represents a CloudEventNodeExecution. */ - class CloudEventNodeExecution implements ICloudEventNodeExecution { - - /** - * Constructs a new CloudEventNodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventNodeExecution); - - /** CloudEventNodeExecution rawEvent. */ - public rawEvent?: (flyteidl.event.INodeExecutionEvent|null); - - /** CloudEventNodeExecution taskExecId. */ - public taskExecId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** CloudEventNodeExecution outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventNodeExecution outputInterface. */ - public outputInterface?: (flyteidl.core.ITypedInterface|null); - - /** CloudEventNodeExecution inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** CloudEventNodeExecution artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventNodeExecution principal. */ - public principal: string; - - /** CloudEventNodeExecution launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new CloudEventNodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventNodeExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventNodeExecution): flyteidl.event.CloudEventNodeExecution; - - /** - * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. - * @param message CloudEventNodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventNodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventNodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventNodeExecution - * @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.event.CloudEventNodeExecution; - - /** - * Verifies a CloudEventNodeExecution 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 CloudEventTaskExecution. */ - interface ICloudEventTaskExecution { - - /** CloudEventTaskExecution rawEvent */ - rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - } - - /** Represents a CloudEventTaskExecution. */ - class CloudEventTaskExecution implements ICloudEventTaskExecution { - - /** - * Constructs a new CloudEventTaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventTaskExecution); - - /** CloudEventTaskExecution rawEvent. */ - public rawEvent?: (flyteidl.event.ITaskExecutionEvent|null); - - /** - * Creates a new CloudEventTaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventTaskExecution instance - */ - public static create(properties?: flyteidl.event.ICloudEventTaskExecution): flyteidl.event.CloudEventTaskExecution; - - /** - * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. - * @param message CloudEventTaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventTaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventTaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventTaskExecution - * @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.event.CloudEventTaskExecution; - - /** - * Verifies a CloudEventTaskExecution 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 CloudEventExecutionStart. */ - interface ICloudEventExecutionStart { - - /** CloudEventExecutionStart executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventExecutionStart launchPlanId */ - launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - - /** CloudEventExecutionStart artifactKeys */ - artifactKeys?: (string[]|null); - - /** CloudEventExecutionStart principal */ - principal?: (string|null); - } - - /** Represents a CloudEventExecutionStart. */ - class CloudEventExecutionStart implements ICloudEventExecutionStart { - - /** - * Constructs a new CloudEventExecutionStart. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ICloudEventExecutionStart); - - /** CloudEventExecutionStart executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** CloudEventExecutionStart launchPlanId. */ - public launchPlanId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** CloudEventExecutionStart artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** CloudEventExecutionStart artifactKeys. */ - public artifactKeys: string[]; - - /** CloudEventExecutionStart principal. */ - public principal: string; - - /** - * Creates a new CloudEventExecutionStart instance using the specified properties. - * @param [properties] Properties to set - * @returns CloudEventExecutionStart instance - */ - public static create(properties?: flyteidl.event.ICloudEventExecutionStart): flyteidl.event.CloudEventExecutionStart; - - /** - * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. - * @param message CloudEventExecutionStart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ICloudEventExecutionStart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CloudEventExecutionStart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CloudEventExecutionStart - * @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.event.CloudEventExecutionStart; - - /** - * Verifies a CloudEventExecutionStart 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 WorkflowExecutionEvent. */ - interface IWorkflowExecutionEvent { - - /** WorkflowExecutionEvent executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionEvent producerId */ - producerId?: (string|null); - - /** WorkflowExecutionEvent phase */ - phase?: (flyteidl.core.WorkflowExecution.Phase|null); - - /** WorkflowExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** WorkflowExecutionEvent outputUri */ - outputUri?: (string|null); - - /** WorkflowExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** WorkflowExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a WorkflowExecutionEvent. */ - class WorkflowExecutionEvent implements IWorkflowExecutionEvent { - - /** - * Constructs a new WorkflowExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IWorkflowExecutionEvent); - - /** WorkflowExecutionEvent executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionEvent producerId. */ - public producerId: string; - - /** WorkflowExecutionEvent phase. */ - public phase: flyteidl.core.WorkflowExecution.Phase; - - /** WorkflowExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** WorkflowExecutionEvent outputUri. */ - public outputUri: string; - - /** WorkflowExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** WorkflowExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new WorkflowExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEvent instance - */ - public static create(properties?: flyteidl.event.IWorkflowExecutionEvent): flyteidl.event.WorkflowExecutionEvent; - - /** - * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. - * @param message WorkflowExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IWorkflowExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEvent - * @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.event.WorkflowExecutionEvent; - - /** - * Verifies a WorkflowExecutionEvent 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 NodeExecutionEvent. */ - interface INodeExecutionEvent { - - /** NodeExecutionEvent id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecutionEvent producerId */ - producerId?: (string|null); - - /** NodeExecutionEvent phase */ - phase?: (flyteidl.core.NodeExecution.Phase|null); - - /** NodeExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent inputUri */ - inputUri?: (string|null); - - /** NodeExecutionEvent inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent outputUri */ - outputUri?: (string|null); - - /** NodeExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent workflowNodeMetadata */ - workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); - - /** NodeExecutionEvent taskNodeMetadata */ - taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); - - /** NodeExecutionEvent parentTaskMetadata */ - parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); - - /** NodeExecutionEvent parentNodeMetadata */ - parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); - - /** NodeExecutionEvent retryGroup */ - retryGroup?: (string|null); - - /** NodeExecutionEvent specNodeId */ - specNodeId?: (string|null); - - /** NodeExecutionEvent nodeName */ - nodeName?: (string|null); - - /** NodeExecutionEvent eventVersion */ - eventVersion?: (number|null); - - /** NodeExecutionEvent isParent */ - isParent?: (boolean|null); - - /** NodeExecutionEvent isDynamic */ - isDynamic?: (boolean|null); - - /** NodeExecutionEvent deckUri */ - deckUri?: (string|null); - - /** NodeExecutionEvent reportedAt */ - reportedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent isArray */ - isArray?: (boolean|null); - } - - /** Represents a NodeExecutionEvent. */ - class NodeExecutionEvent implements INodeExecutionEvent { - - /** - * Constructs a new NodeExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.INodeExecutionEvent); - - /** NodeExecutionEvent id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecutionEvent producerId. */ - public producerId: string; - - /** NodeExecutionEvent phase. */ - public phase: flyteidl.core.NodeExecution.Phase; - - /** NodeExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent inputUri. */ - public inputUri: string; - - /** NodeExecutionEvent inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent outputUri. */ - public outputUri: string; - - /** NodeExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionEvent workflowNodeMetadata. */ - public workflowNodeMetadata?: (flyteidl.event.IWorkflowNodeMetadata|null); - - /** NodeExecutionEvent taskNodeMetadata. */ - public taskNodeMetadata?: (flyteidl.event.ITaskNodeMetadata|null); - - /** NodeExecutionEvent parentTaskMetadata. */ - public parentTaskMetadata?: (flyteidl.event.IParentTaskExecutionMetadata|null); - - /** NodeExecutionEvent parentNodeMetadata. */ - public parentNodeMetadata?: (flyteidl.event.IParentNodeExecutionMetadata|null); - - /** NodeExecutionEvent retryGroup. */ - public retryGroup: string; - - /** NodeExecutionEvent specNodeId. */ - public specNodeId: string; - - /** NodeExecutionEvent nodeName. */ - public nodeName: string; - - /** NodeExecutionEvent eventVersion. */ - public eventVersion: number; - - /** NodeExecutionEvent isParent. */ - public isParent: boolean; - - /** NodeExecutionEvent isDynamic. */ - public isDynamic: boolean; - - /** NodeExecutionEvent deckUri. */ - public deckUri: string; - - /** NodeExecutionEvent reportedAt. */ - public reportedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionEvent isArray. */ - public isArray: boolean; - - /** NodeExecutionEvent inputValue. */ - public inputValue?: ("inputUri"|"inputData"); - - /** NodeExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** NodeExecutionEvent targetMetadata. */ - public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); - - /** - * Creates a new NodeExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEvent instance - */ - public static create(properties?: flyteidl.event.INodeExecutionEvent): flyteidl.event.NodeExecutionEvent; - - /** - * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. - * @param message NodeExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.INodeExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEvent - * @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.event.NodeExecutionEvent; - - /** - * Verifies a NodeExecutionEvent 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 WorkflowNodeMetadata. */ - interface IWorkflowNodeMetadata { - - /** WorkflowNodeMetadata executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowNodeMetadata. */ - class WorkflowNodeMetadata implements IWorkflowNodeMetadata { - - /** - * Constructs a new WorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IWorkflowNodeMetadata); - - /** WorkflowNodeMetadata executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.event.IWorkflowNodeMetadata): flyteidl.event.WorkflowNodeMetadata; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. - * @param message WorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNodeMetadata - * @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.event.WorkflowNodeMetadata; - - /** - * Verifies a WorkflowNodeMetadata 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 TaskNodeMetadata. */ - interface ITaskNodeMetadata { - - /** TaskNodeMetadata cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** TaskNodeMetadata catalogKey */ - catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata reservationStatus */ - reservationStatus?: (flyteidl.core.CatalogReservation.Status|null); - - /** TaskNodeMetadata checkpointUri */ - checkpointUri?: (string|null); - - /** TaskNodeMetadata dynamicWorkflow */ - dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); - } - - /** Represents a TaskNodeMetadata. */ - class TaskNodeMetadata implements ITaskNodeMetadata { - - /** - * Constructs a new TaskNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskNodeMetadata); - - /** TaskNodeMetadata cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** TaskNodeMetadata catalogKey. */ - public catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata reservationStatus. */ - public reservationStatus: flyteidl.core.CatalogReservation.Status; - - /** TaskNodeMetadata checkpointUri. */ - public checkpointUri: string; - - /** TaskNodeMetadata dynamicWorkflow. */ - public dynamicWorkflow?: (flyteidl.event.IDynamicWorkflowNodeMetadata|null); - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeMetadata instance - */ - public static create(properties?: flyteidl.event.ITaskNodeMetadata): flyteidl.event.TaskNodeMetadata; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. - * @param message TaskNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeMetadata - * @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.event.TaskNodeMetadata; - - /** - * Verifies a TaskNodeMetadata 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 DynamicWorkflowNodeMetadata. */ - interface IDynamicWorkflowNodeMetadata { - - /** DynamicWorkflowNodeMetadata id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a DynamicWorkflowNodeMetadata. */ - class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata); - - /** DynamicWorkflowNodeMetadata id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicWorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.event.IDynamicWorkflowNodeMetadata): flyteidl.event.DynamicWorkflowNodeMetadata; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @param message DynamicWorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicWorkflowNodeMetadata - * @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.event.DynamicWorkflowNodeMetadata; - - /** - * Verifies a DynamicWorkflowNodeMetadata 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 ParentTaskExecutionMetadata. */ - interface IParentTaskExecutionMetadata { - - /** ParentTaskExecutionMetadata id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a ParentTaskExecutionMetadata. */ - class ParentTaskExecutionMetadata implements IParentTaskExecutionMetadata { - - /** - * Constructs a new ParentTaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IParentTaskExecutionMetadata); - - /** ParentTaskExecutionMetadata id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new ParentTaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ParentTaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.IParentTaskExecutionMetadata): flyteidl.event.ParentTaskExecutionMetadata; - - /** - * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. - * @param message ParentTaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IParentTaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParentTaskExecutionMetadata - * @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.event.ParentTaskExecutionMetadata; - - /** - * Verifies a ParentTaskExecutionMetadata 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 ParentNodeExecutionMetadata. */ - interface IParentNodeExecutionMetadata { - - /** ParentNodeExecutionMetadata nodeId */ - nodeId?: (string|null); - } - - /** Represents a ParentNodeExecutionMetadata. */ - class ParentNodeExecutionMetadata implements IParentNodeExecutionMetadata { - - /** - * Constructs a new ParentNodeExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IParentNodeExecutionMetadata); - - /** ParentNodeExecutionMetadata nodeId. */ - public nodeId: string; - - /** - * Creates a new ParentNodeExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ParentNodeExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.IParentNodeExecutionMetadata): flyteidl.event.ParentNodeExecutionMetadata; - - /** - * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. - * @param message ParentNodeExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IParentNodeExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParentNodeExecutionMetadata - * @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.event.ParentNodeExecutionMetadata; - - /** - * Verifies a ParentNodeExecutionMetadata 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 an EventReason. */ - interface IEventReason { - - /** EventReason reason */ - reason?: (string|null); - - /** EventReason occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents an EventReason. */ - class EventReason implements IEventReason { - - /** - * Constructs a new EventReason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IEventReason); - - /** EventReason reason. */ - public reason: string; - - /** EventReason occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new EventReason instance using the specified properties. - * @param [properties] Properties to set - * @returns EventReason instance - */ - public static create(properties?: flyteidl.event.IEventReason): flyteidl.event.EventReason; - - /** - * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. - * @param message EventReason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IEventReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventReason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventReason - * @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.event.EventReason; - - /** - * Verifies an EventReason 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 TaskExecutionEvent. */ - interface ITaskExecutionEvent { - - /** TaskExecutionEvent taskId */ - taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionEvent parentNodeExecutionId */ - parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionEvent retryAttempt */ - retryAttempt?: (number|null); - - /** TaskExecutionEvent phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** TaskExecutionEvent producerId */ - producerId?: (string|null); - - /** TaskExecutionEvent logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - - /** TaskExecutionEvent occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputUri */ - inputUri?: (string|null); - - /** TaskExecutionEvent inputData */ - inputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent outputUri */ - outputUri?: (string|null); - - /** TaskExecutionEvent error */ - error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionEvent outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent customInfo */ - customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionEvent phaseVersion */ - phaseVersion?: (number|null); - - /** TaskExecutionEvent reason */ - reason?: (string|null); - - /** TaskExecutionEvent reasons */ - reasons?: (flyteidl.event.IEventReason[]|null); - - /** TaskExecutionEvent taskType */ - taskType?: (string|null); - - /** TaskExecutionEvent metadata */ - metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionEvent eventVersion */ - eventVersion?: (number|null); - - /** TaskExecutionEvent reportedAt */ - reportedAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a TaskExecutionEvent. */ - class TaskExecutionEvent implements ITaskExecutionEvent { - - /** - * Constructs a new TaskExecutionEvent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskExecutionEvent); - - /** TaskExecutionEvent taskId. */ - public taskId?: (flyteidl.core.IIdentifier|null); - - /** TaskExecutionEvent parentNodeExecutionId. */ - public parentNodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionEvent retryAttempt. */ - public retryAttempt: number; - - /** TaskExecutionEvent phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** TaskExecutionEvent producerId. */ - public producerId: string; - - /** TaskExecutionEvent logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** TaskExecutionEvent occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputUri. */ - public inputUri: string; - - /** TaskExecutionEvent inputData. */ - public inputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent outputUri. */ - public outputUri: string; - - /** TaskExecutionEvent error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionEvent outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionEvent customInfo. */ - public customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionEvent phaseVersion. */ - public phaseVersion: number; - - /** TaskExecutionEvent reason. */ - public reason: string; - - /** TaskExecutionEvent reasons. */ - public reasons: flyteidl.event.IEventReason[]; - - /** TaskExecutionEvent taskType. */ - public taskType: string; - - /** TaskExecutionEvent metadata. */ - public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionEvent eventVersion. */ - public eventVersion: number; - - /** TaskExecutionEvent reportedAt. */ - public reportedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionEvent inputValue. */ - public inputValue?: ("inputUri"|"inputData"); - - /** TaskExecutionEvent outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new TaskExecutionEvent instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEvent instance - */ - public static create(properties?: flyteidl.event.ITaskExecutionEvent): flyteidl.event.TaskExecutionEvent; - - /** - * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. - * @param message TaskExecutionEvent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskExecutionEvent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEvent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEvent - * @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.event.TaskExecutionEvent; - - /** - * Verifies a TaskExecutionEvent 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 an ExternalResourceInfo. */ - interface IExternalResourceInfo { - - /** ExternalResourceInfo externalId */ - externalId?: (string|null); - - /** ExternalResourceInfo index */ - index?: (number|null); - - /** ExternalResourceInfo retryAttempt */ - retryAttempt?: (number|null); - - /** ExternalResourceInfo phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** ExternalResourceInfo cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** ExternalResourceInfo logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - } - - /** Represents an ExternalResourceInfo. */ - class ExternalResourceInfo implements IExternalResourceInfo { - - /** - * Constructs a new ExternalResourceInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IExternalResourceInfo); - - /** ExternalResourceInfo externalId. */ - public externalId: string; - - /** ExternalResourceInfo index. */ - public index: number; - - /** ExternalResourceInfo retryAttempt. */ - public retryAttempt: number; - - /** ExternalResourceInfo phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** ExternalResourceInfo cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** ExternalResourceInfo logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** - * Creates a new ExternalResourceInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ExternalResourceInfo instance - */ - public static create(properties?: flyteidl.event.IExternalResourceInfo): flyteidl.event.ExternalResourceInfo; - - /** - * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. - * @param message ExternalResourceInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IExternalResourceInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExternalResourceInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExternalResourceInfo - * @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.event.ExternalResourceInfo; - - /** - * Verifies an ExternalResourceInfo 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 ResourcePoolInfo. */ - interface IResourcePoolInfo { - - /** ResourcePoolInfo allocationToken */ - allocationToken?: (string|null); - - /** ResourcePoolInfo namespace */ - namespace?: (string|null); - } - - /** Represents a ResourcePoolInfo. */ - class ResourcePoolInfo implements IResourcePoolInfo { - - /** - * Constructs a new ResourcePoolInfo. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.IResourcePoolInfo); - - /** ResourcePoolInfo allocationToken. */ - public allocationToken: string; - - /** ResourcePoolInfo namespace. */ - public namespace: string; - - /** - * Creates a new ResourcePoolInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourcePoolInfo instance - */ - public static create(properties?: flyteidl.event.IResourcePoolInfo): flyteidl.event.ResourcePoolInfo; - - /** - * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. - * @param message ResourcePoolInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.IResourcePoolInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourcePoolInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourcePoolInfo - * @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.event.ResourcePoolInfo; - - /** - * Verifies a ResourcePoolInfo 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 TaskExecutionMetadata. */ - interface ITaskExecutionMetadata { - - /** TaskExecutionMetadata generatedName */ - generatedName?: (string|null); - - /** TaskExecutionMetadata externalResources */ - externalResources?: (flyteidl.event.IExternalResourceInfo[]|null); - - /** TaskExecutionMetadata resourcePoolInfo */ - resourcePoolInfo?: (flyteidl.event.IResourcePoolInfo[]|null); - - /** TaskExecutionMetadata pluginIdentifier */ - pluginIdentifier?: (string|null); - - /** TaskExecutionMetadata instanceClass */ - instanceClass?: (flyteidl.event.TaskExecutionMetadata.InstanceClass|null); - } - - /** Represents a TaskExecutionMetadata. */ - class TaskExecutionMetadata implements ITaskExecutionMetadata { - - /** - * Constructs a new TaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.event.ITaskExecutionMetadata); - - /** TaskExecutionMetadata generatedName. */ - public generatedName: string; - - /** TaskExecutionMetadata externalResources. */ - public externalResources: flyteidl.event.IExternalResourceInfo[]; - - /** TaskExecutionMetadata resourcePoolInfo. */ - public resourcePoolInfo: flyteidl.event.IResourcePoolInfo[]; - - /** TaskExecutionMetadata pluginIdentifier. */ - public pluginIdentifier: string; - - /** TaskExecutionMetadata instanceClass. */ - public instanceClass: flyteidl.event.TaskExecutionMetadata.InstanceClass; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.event.ITaskExecutionMetadata): flyteidl.event.TaskExecutionMetadata; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. - * @param message TaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.event.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionMetadata - * @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.event.TaskExecutionMetadata; - - /** - * Verifies a TaskExecutionMetadata 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); - } - - namespace TaskExecutionMetadata { - - /** InstanceClass enum. */ - enum InstanceClass { - DEFAULT = 0, - INTERRUPTIBLE = 1 - } - } - } - - /** Namespace admin. */ - namespace admin { - - /** State enum. */ - enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4 - } - - /** Properties of a TaskExecutionMetadata. */ - interface ITaskExecutionMetadata { - - /** TaskExecutionMetadata taskExecutionId */ - taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecutionMetadata namespace */ - namespace?: (string|null); - - /** TaskExecutionMetadata labels */ - labels?: ({ [k: string]: string }|null); - - /** TaskExecutionMetadata annotations */ - annotations?: ({ [k: string]: string }|null); - - /** TaskExecutionMetadata k8sServiceAccount */ - k8sServiceAccount?: (string|null); - - /** TaskExecutionMetadata environmentVariables */ - environmentVariables?: ({ [k: string]: string }|null); - } - - /** Represents a TaskExecutionMetadata. */ - class TaskExecutionMetadata implements ITaskExecutionMetadata { - - /** - * Constructs a new TaskExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionMetadata); - - /** TaskExecutionMetadata taskExecutionId. */ - public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecutionMetadata namespace. */ - public namespace: string; - - /** TaskExecutionMetadata labels. */ - public labels: { [k: string]: string }; - - /** TaskExecutionMetadata annotations. */ - public annotations: { [k: string]: string }; - - /** TaskExecutionMetadata k8sServiceAccount. */ - public k8sServiceAccount: string; - - /** TaskExecutionMetadata environmentVariables. */ - public environmentVariables: { [k: string]: string }; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionMetadata instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionMetadata): flyteidl.admin.TaskExecutionMetadata; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. - * @param message TaskExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionMetadata - * @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.TaskExecutionMetadata; - - /** - * Verifies a TaskExecutionMetadata 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 CreateTaskRequest. */ - interface ICreateTaskRequest { - - /** CreateTaskRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** CreateTaskRequest template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateTaskRequest outputPrefix */ - outputPrefix?: (string|null); - - /** CreateTaskRequest taskExecutionMetadata */ - taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - } - - /** Represents a CreateTaskRequest. */ - class CreateTaskRequest implements ICreateTaskRequest { - - /** - * Constructs a new CreateTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateTaskRequest); - - /** CreateTaskRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** CreateTaskRequest template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** CreateTaskRequest outputPrefix. */ - public outputPrefix: string; - - /** CreateTaskRequest taskExecutionMetadata. */ - public taskExecutionMetadata?: (flyteidl.admin.ITaskExecutionMetadata|null); - - /** - * Creates a new CreateTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTaskRequest instance - */ - public static create(properties?: flyteidl.admin.ICreateTaskRequest): flyteidl.admin.CreateTaskRequest; - - /** - * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. - * @param message CreateTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTaskRequest - * @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.CreateTaskRequest; - - /** - * Verifies a CreateTaskRequest 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 CreateTaskResponse. */ - interface ICreateTaskResponse { - - /** CreateTaskResponse resourceMeta */ - resourceMeta?: (Uint8Array|null); - - /** CreateTaskResponse resource */ - resource?: (flyteidl.admin.IResource|null); - } - - /** Represents a CreateTaskResponse. */ - class CreateTaskResponse implements ICreateTaskResponse { - - /** - * Constructs a new CreateTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICreateTaskResponse); - - /** CreateTaskResponse resourceMeta. */ - public resourceMeta: Uint8Array; - - /** CreateTaskResponse resource. */ - public resource?: (flyteidl.admin.IResource|null); - - /** CreateTaskResponse res. */ - public res?: ("resourceMeta"|"resource"); - - /** - * Creates a new CreateTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateTaskResponse instance - */ - public static create(properties?: flyteidl.admin.ICreateTaskResponse): flyteidl.admin.CreateTaskResponse; - - /** - * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. - * @param message CreateTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICreateTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateTaskResponse - * @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.CreateTaskResponse; - - /** - * Verifies a CreateTaskResponse 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 GetTaskRequest. */ - interface IGetTaskRequest { - - /** GetTaskRequest taskType */ - taskType?: (string|null); - - /** GetTaskRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - } - - /** Represents a GetTaskRequest. */ - class GetTaskRequest implements IGetTaskRequest { - - /** - * Constructs a new GetTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskRequest); - - /** GetTaskRequest taskType. */ - public taskType: string; - - /** GetTaskRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskRequest instance - */ - public static create(properties?: flyteidl.admin.IGetTaskRequest): flyteidl.admin.GetTaskRequest; - - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. - * @param message GetTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskRequest - * @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.GetTaskRequest; - - /** - * Verifies a GetTaskRequest 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 GetTaskResponse. */ - interface IGetTaskResponse { - - /** GetTaskResponse resource */ - resource?: (flyteidl.admin.IResource|null); - - /** GetTaskResponse logLinks */ - logLinks?: (flyteidl.core.ITaskLog[]|null); - } - - /** Represents a GetTaskResponse. */ - class GetTaskResponse implements IGetTaskResponse { - - /** - * Constructs a new GetTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetTaskResponse); - - /** GetTaskResponse resource. */ - public resource?: (flyteidl.admin.IResource|null); - - /** GetTaskResponse logLinks. */ - public logLinks: flyteidl.core.ITaskLog[]; - - /** - * Creates a new GetTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetTaskResponse instance - */ - public static create(properties?: flyteidl.admin.IGetTaskResponse): flyteidl.admin.GetTaskResponse; - - /** - * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. - * @param message GetTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetTaskResponse - * @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.GetTaskResponse; - - /** - * Verifies a GetTaskResponse 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 Resource. */ - interface IResource { - - /** Resource state */ - state?: (flyteidl.admin.State|null); - - /** Resource outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); - - /** Resource message */ - message?: (string|null); - - /** Resource logLinks */ - logLinks?: (flyteidl.core.ITaskLog[]|null); - } - - /** Represents a Resource. */ - class Resource implements IResource { - - /** - * Constructs a new Resource. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IResource); - - /** Resource state. */ - public state: flyteidl.admin.State; - - /** Resource outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); - - /** Resource message. */ - public message: string; - - /** Resource logLinks. */ - public logLinks: flyteidl.core.ITaskLog[]; - - /** - * Creates a new Resource instance using the specified properties. - * @param [properties] Properties to set - * @returns Resource instance - */ - public static create(properties?: flyteidl.admin.IResource): flyteidl.admin.Resource; - - /** - * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. - * @param message Resource message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IResource, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Resource message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Resource - * @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.Resource; - - /** - * Verifies a Resource 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 DeleteTaskRequest. */ - interface IDeleteTaskRequest { - - /** DeleteTaskRequest taskType */ - taskType?: (string|null); - - /** DeleteTaskRequest resourceMeta */ - resourceMeta?: (Uint8Array|null); - } - - /** Represents a DeleteTaskRequest. */ - class DeleteTaskRequest implements IDeleteTaskRequest { - - /** - * Constructs a new DeleteTaskRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDeleteTaskRequest); - - /** DeleteTaskRequest taskType. */ - public taskType: string; - - /** DeleteTaskRequest resourceMeta. */ - public resourceMeta: Uint8Array; - - /** - * Creates a new DeleteTaskRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTaskRequest instance - */ - public static create(properties?: flyteidl.admin.IDeleteTaskRequest): flyteidl.admin.DeleteTaskRequest; - - /** - * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. - * @param message DeleteTaskRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDeleteTaskRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTaskRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTaskRequest - * @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.DeleteTaskRequest; - - /** - * Verifies a DeleteTaskRequest 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 DeleteTaskResponse. */ - interface IDeleteTaskResponse { - } - - /** Represents a DeleteTaskResponse. */ - class DeleteTaskResponse implements IDeleteTaskResponse { - - /** - * Constructs a new DeleteTaskResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDeleteTaskResponse); - - /** - * Creates a new DeleteTaskResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteTaskResponse instance - */ - public static create(properties?: flyteidl.admin.IDeleteTaskResponse): flyteidl.admin.DeleteTaskResponse; - - /** - * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. - * @param message DeleteTaskResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDeleteTaskResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DeleteTaskResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteTaskResponse - * @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.DeleteTaskResponse; - - /** - * Verifies a DeleteTaskResponse 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 an Agent. */ - interface IAgent { - - /** Agent name */ - name?: (string|null); - - /** Agent supportedTaskTypes */ - supportedTaskTypes?: (string[]|null); - } - - /** Represents an Agent. */ - class Agent implements IAgent { - - /** - * Constructs a new Agent. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAgent); - - /** Agent name. */ - public name: string; - - /** Agent supportedTaskTypes. */ - public supportedTaskTypes: string[]; - - /** - * Creates a new Agent instance using the specified properties. - * @param [properties] Properties to set - * @returns Agent instance - */ - public static create(properties?: flyteidl.admin.IAgent): flyteidl.admin.Agent; - - /** - * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. - * @param message Agent message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAgent, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Agent message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Agent - * @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.Agent; - - /** - * Verifies an Agent 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 GetAgentRequest. */ - interface IGetAgentRequest { - - /** GetAgentRequest name */ - name?: (string|null); - } - - /** Represents a GetAgentRequest. */ - class GetAgentRequest implements IGetAgentRequest { - - /** - * Constructs a new GetAgentRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetAgentRequest); - - /** GetAgentRequest name. */ - public name: string; - - /** - * Creates a new GetAgentRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAgentRequest instance - */ - public static create(properties?: flyteidl.admin.IGetAgentRequest): flyteidl.admin.GetAgentRequest; - - /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. - * @param message GetAgentRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetAgentRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAgentRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAgentRequest - * @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.GetAgentRequest; - - /** - * Verifies a GetAgentRequest 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 GetAgentResponse. */ - interface IGetAgentResponse { - - /** GetAgentResponse agent */ - agent?: (flyteidl.admin.IAgent|null); - } - - /** Represents a GetAgentResponse. */ - class GetAgentResponse implements IGetAgentResponse { - - /** - * Constructs a new GetAgentResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetAgentResponse); - - /** GetAgentResponse agent. */ - public agent?: (flyteidl.admin.IAgent|null); - - /** - * Creates a new GetAgentResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetAgentResponse instance - */ - public static create(properties?: flyteidl.admin.IGetAgentResponse): flyteidl.admin.GetAgentResponse; - - /** - * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. - * @param message GetAgentResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetAgentResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetAgentResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetAgentResponse - * @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.GetAgentResponse; - - /** - * Verifies a GetAgentResponse 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 ListAgentsRequest. */ - interface IListAgentsRequest { - } - - /** Represents a ListAgentsRequest. */ - class ListAgentsRequest implements IListAgentsRequest { - - /** - * Constructs a new ListAgentsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListAgentsRequest); - - /** - * Creates a new ListAgentsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAgentsRequest instance - */ - public static create(properties?: flyteidl.admin.IListAgentsRequest): flyteidl.admin.ListAgentsRequest; - - /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. - * @param message ListAgentsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListAgentsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAgentsRequest - * @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.ListAgentsRequest; - - /** - * Verifies a ListAgentsRequest 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 ListAgentsResponse. */ - interface IListAgentsResponse { - - /** ListAgentsResponse agents */ - agents?: (flyteidl.admin.IAgent[]|null); - } - - /** Represents a ListAgentsResponse. */ - class ListAgentsResponse implements IListAgentsResponse { - - /** - * Constructs a new ListAgentsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListAgentsResponse); - - /** ListAgentsResponse agents. */ - public agents: flyteidl.admin.IAgent[]; - - /** - * Creates a new ListAgentsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListAgentsResponse instance - */ - public static create(properties?: flyteidl.admin.IListAgentsResponse): flyteidl.admin.ListAgentsResponse; - - /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. - * @param message ListAgentsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListAgentsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListAgentsResponse - * @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.ListAgentsResponse; - - /** - * Verifies a ListAgentsResponse 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 ClusterAssignment. */ - interface IClusterAssignment { - - /** ClusterAssignment clusterPoolName */ - clusterPoolName?: (string|null); - } - - /** Represents a ClusterAssignment. */ - class ClusterAssignment implements IClusterAssignment { - - /** - * Constructs a new ClusterAssignment. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IClusterAssignment); - - /** ClusterAssignment clusterPoolName. */ - public clusterPoolName: string; - - /** - * Creates a new ClusterAssignment instance using the specified properties. - * @param [properties] Properties to set - * @returns ClusterAssignment instance - */ - public static create(properties?: flyteidl.admin.IClusterAssignment): flyteidl.admin.ClusterAssignment; - - /** - * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. - * @param message ClusterAssignment message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IClusterAssignment, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClusterAssignment message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClusterAssignment - * @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.ClusterAssignment; - - /** - * Verifies a ClusterAssignment 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 NamedEntityIdentifier. */ - interface INamedEntityIdentifier { - - /** NamedEntityIdentifier project */ - project?: (string|null); - - /** NamedEntityIdentifier domain */ - domain?: (string|null); - - /** NamedEntityIdentifier name */ - name?: (string|null); - } - - /** Represents a NamedEntityIdentifier. */ - class NamedEntityIdentifier implements INamedEntityIdentifier { - - /** - * Constructs a new NamedEntityIdentifier. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifier); - - /** NamedEntityIdentifier project. */ - public project: string; - - /** NamedEntityIdentifier domain. */ - public domain: string; - - /** NamedEntityIdentifier name. */ - public name: string; - - /** - * Creates a new NamedEntityIdentifier instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifier instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifier): flyteidl.admin.NamedEntityIdentifier; - - /** - * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. - * @param message NamedEntityIdentifier message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifier message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifier - * @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.NamedEntityIdentifier; - - /** - * Verifies a NamedEntityIdentifier 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); - } - - /** NamedEntityState enum. */ - enum NamedEntityState { - NAMED_ENTITY_ACTIVE = 0, - NAMED_ENTITY_ARCHIVED = 1, - SYSTEM_GENERATED = 2 - } - - /** Properties of a NamedEntityMetadata. */ - interface INamedEntityMetadata { - - /** NamedEntityMetadata description */ - description?: (string|null); - - /** NamedEntityMetadata state */ - state?: (flyteidl.admin.NamedEntityState|null); - } - - /** Represents a NamedEntityMetadata. */ - class NamedEntityMetadata implements INamedEntityMetadata { - - /** - * Constructs a new NamedEntityMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityMetadata); - - /** NamedEntityMetadata description. */ - public description: string; - - /** NamedEntityMetadata state. */ - public state: flyteidl.admin.NamedEntityState; - - /** - * Creates a new NamedEntityMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityMetadata instance - */ - public static create(properties?: flyteidl.admin.INamedEntityMetadata): flyteidl.admin.NamedEntityMetadata; - - /** - * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. - * @param message NamedEntityMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityMetadata - * @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.NamedEntityMetadata; - - /** - * Verifies a NamedEntityMetadata 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 NamedEntity. */ - interface INamedEntity { - - /** NamedEntity resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntity id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntity metadata */ - metadata?: (flyteidl.admin.INamedEntityMetadata|null); - } - - /** Represents a NamedEntity. */ - class NamedEntity implements INamedEntity { - - /** - * Constructs a new NamedEntity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntity); - - /** NamedEntity resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntity id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntity metadata. */ - public metadata?: (flyteidl.admin.INamedEntityMetadata|null); - - /** - * Creates a new NamedEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntity instance - */ - public static create(properties?: flyteidl.admin.INamedEntity): flyteidl.admin.NamedEntity; - - /** - * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. - * @param message NamedEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntity - * @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.NamedEntity; - - /** - * Verifies a NamedEntity 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 Sort. */ - interface ISort { - - /** Sort key */ - key?: (string|null); - - /** Sort direction */ - direction?: (flyteidl.admin.Sort.Direction|null); - } - - /** Represents a Sort. */ - class Sort implements ISort { - - /** - * Constructs a new Sort. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISort); - - /** Sort key. */ - public key: string; - - /** Sort direction. */ - public direction: flyteidl.admin.Sort.Direction; - - /** - * Creates a new Sort instance using the specified properties. - * @param [properties] Properties to set - * @returns Sort instance - */ - public static create(properties?: flyteidl.admin.ISort): flyteidl.admin.Sort; - - /** - * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. - * @param message Sort message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISort, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Sort message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Sort - * @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.Sort; - - /** - * Verifies a Sort 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); - } - - namespace Sort { - - /** Direction enum. */ - enum Direction { - DESCENDING = 0, - ASCENDING = 1 - } - } - - /** Properties of a NamedEntityIdentifierListRequest. */ - interface INamedEntityIdentifierListRequest { - - /** NamedEntityIdentifierListRequest project */ - project?: (string|null); - - /** NamedEntityIdentifierListRequest domain */ - domain?: (string|null); - - /** NamedEntityIdentifierListRequest limit */ - limit?: (number|null); - - /** NamedEntityIdentifierListRequest token */ - token?: (string|null); - - /** NamedEntityIdentifierListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityIdentifierListRequest filters */ - filters?: (string|null); - } - - /** Represents a NamedEntityIdentifierListRequest. */ - class NamedEntityIdentifierListRequest implements INamedEntityIdentifierListRequest { - - /** - * Constructs a new NamedEntityIdentifierListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifierListRequest); - - /** NamedEntityIdentifierListRequest project. */ - public project: string; - - /** NamedEntityIdentifierListRequest domain. */ - public domain: string; - - /** NamedEntityIdentifierListRequest limit. */ - public limit: number; - - /** NamedEntityIdentifierListRequest token. */ - public token: string; - - /** NamedEntityIdentifierListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityIdentifierListRequest filters. */ - public filters: string; - - /** - * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifierListRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifierListRequest): flyteidl.admin.NamedEntityIdentifierListRequest; - - /** - * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. - * @param message NamedEntityIdentifierListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifierListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifierListRequest - * @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.NamedEntityIdentifierListRequest; - - /** - * Verifies a NamedEntityIdentifierListRequest 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 NamedEntityListRequest. */ - interface INamedEntityListRequest { - - /** NamedEntityListRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityListRequest project */ - project?: (string|null); - - /** NamedEntityListRequest domain */ - domain?: (string|null); - - /** NamedEntityListRequest limit */ - limit?: (number|null); - - /** NamedEntityListRequest token */ - token?: (string|null); - - /** NamedEntityListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityListRequest filters */ - filters?: (string|null); - } - - /** Represents a NamedEntityListRequest. */ - class NamedEntityListRequest implements INamedEntityListRequest { - - /** - * Constructs a new NamedEntityListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityListRequest); - - /** NamedEntityListRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityListRequest project. */ - public project: string; - - /** NamedEntityListRequest domain. */ - public domain: string; - - /** NamedEntityListRequest limit. */ - public limit: number; - - /** NamedEntityListRequest token. */ - public token: string; - - /** NamedEntityListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NamedEntityListRequest filters. */ - public filters: string; - - /** - * Creates a new NamedEntityListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityListRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityListRequest): flyteidl.admin.NamedEntityListRequest; - - /** - * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. - * @param message NamedEntityListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityListRequest - * @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.NamedEntityListRequest; - - /** - * Verifies a NamedEntityListRequest 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 NamedEntityIdentifierList. */ - interface INamedEntityIdentifierList { - - /** NamedEntityIdentifierList entities */ - entities?: (flyteidl.admin.INamedEntityIdentifier[]|null); - - /** NamedEntityIdentifierList token */ - token?: (string|null); - } - - /** Represents a NamedEntityIdentifierList. */ - class NamedEntityIdentifierList implements INamedEntityIdentifierList { - - /** - * Constructs a new NamedEntityIdentifierList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityIdentifierList); - - /** NamedEntityIdentifierList entities. */ - public entities: flyteidl.admin.INamedEntityIdentifier[]; - - /** NamedEntityIdentifierList token. */ - public token: string; - - /** - * Creates a new NamedEntityIdentifierList instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityIdentifierList instance - */ - public static create(properties?: flyteidl.admin.INamedEntityIdentifierList): flyteidl.admin.NamedEntityIdentifierList; - - /** - * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. - * @param message NamedEntityIdentifierList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityIdentifierList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityIdentifierList - * @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.NamedEntityIdentifierList; - - /** - * Verifies a NamedEntityIdentifierList 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 NamedEntityList. */ - interface INamedEntityList { - - /** NamedEntityList entities */ - entities?: (flyteidl.admin.INamedEntity[]|null); - - /** NamedEntityList token */ - token?: (string|null); - } - - /** Represents a NamedEntityList. */ - class NamedEntityList implements INamedEntityList { - - /** - * Constructs a new NamedEntityList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityList); - - /** NamedEntityList entities. */ - public entities: flyteidl.admin.INamedEntity[]; - - /** NamedEntityList token. */ - public token: string; - - /** - * Creates a new NamedEntityList instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityList instance - */ - public static create(properties?: flyteidl.admin.INamedEntityList): flyteidl.admin.NamedEntityList; - - /** - * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. - * @param message NamedEntityList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityList - * @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.NamedEntityList; - - /** - * Verifies a NamedEntityList 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 NamedEntityGetRequest. */ - interface INamedEntityGetRequest { - - /** NamedEntityGetRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityGetRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - } - - /** Represents a NamedEntityGetRequest. */ - class NamedEntityGetRequest implements INamedEntityGetRequest { - - /** - * Constructs a new NamedEntityGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityGetRequest); - - /** NamedEntityGetRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityGetRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** - * Creates a new NamedEntityGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityGetRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityGetRequest): flyteidl.admin.NamedEntityGetRequest; - - /** - * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. - * @param message NamedEntityGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityGetRequest - * @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.NamedEntityGetRequest; - - /** - * Verifies a NamedEntityGetRequest 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 NamedEntityUpdateRequest. */ - interface INamedEntityUpdateRequest { - - /** NamedEntityUpdateRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** NamedEntityUpdateRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntityUpdateRequest metadata */ - metadata?: (flyteidl.admin.INamedEntityMetadata|null); - } - - /** Represents a NamedEntityUpdateRequest. */ - class NamedEntityUpdateRequest implements INamedEntityUpdateRequest { - - /** - * Constructs a new NamedEntityUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityUpdateRequest); - - /** NamedEntityUpdateRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** NamedEntityUpdateRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** NamedEntityUpdateRequest metadata. */ - public metadata?: (flyteidl.admin.INamedEntityMetadata|null); - - /** - * Creates a new NamedEntityUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.INamedEntityUpdateRequest): flyteidl.admin.NamedEntityUpdateRequest; - - /** - * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. - * @param message NamedEntityUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityUpdateRequest - * @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.NamedEntityUpdateRequest; - - /** - * Verifies a NamedEntityUpdateRequest 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 NamedEntityUpdateResponse. */ - interface INamedEntityUpdateResponse { - } - - /** Represents a NamedEntityUpdateResponse. */ - class NamedEntityUpdateResponse implements INamedEntityUpdateResponse { - - /** - * Constructs a new NamedEntityUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INamedEntityUpdateResponse); - - /** - * Creates a new NamedEntityUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NamedEntityUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.INamedEntityUpdateResponse): flyteidl.admin.NamedEntityUpdateResponse; - - /** - * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. - * @param message NamedEntityUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INamedEntityUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamedEntityUpdateResponse - * @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.NamedEntityUpdateResponse; - - /** - * Verifies a NamedEntityUpdateResponse 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 an ObjectGetRequest. */ - interface IObjectGetRequest { - - /** ObjectGetRequest id */ - id?: (flyteidl.core.IIdentifier|null); - } - - /** Represents an ObjectGetRequest. */ - class ObjectGetRequest implements IObjectGetRequest { - - /** - * Constructs a new ObjectGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IObjectGetRequest); - - /** ObjectGetRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** - * Creates a new ObjectGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ObjectGetRequest instance - */ - public static create(properties?: flyteidl.admin.IObjectGetRequest): flyteidl.admin.ObjectGetRequest; - - /** - * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. - * @param message ObjectGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IObjectGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ObjectGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ObjectGetRequest - * @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.ObjectGetRequest; - - /** - * Verifies an ObjectGetRequest 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 ResourceListRequest. */ - interface IResourceListRequest { - - /** ResourceListRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** ResourceListRequest limit */ - limit?: (number|null); - - /** ResourceListRequest token */ - token?: (string|null); - - /** ResourceListRequest filters */ - filters?: (string|null); - - /** ResourceListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a ResourceListRequest. */ - class ResourceListRequest implements IResourceListRequest { - - /** - * Constructs a new ResourceListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IResourceListRequest); - - /** ResourceListRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** ResourceListRequest limit. */ - public limit: number; - - /** ResourceListRequest token. */ - public token: string; - - /** ResourceListRequest filters. */ - public filters: string; - - /** ResourceListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new ResourceListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ResourceListRequest instance - */ - public static create(properties?: flyteidl.admin.IResourceListRequest): flyteidl.admin.ResourceListRequest; - - /** - * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. - * @param message ResourceListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IResourceListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ResourceListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ResourceListRequest - * @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.ResourceListRequest; - - /** - * Verifies a ResourceListRequest 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 an EmailNotification. */ - interface IEmailNotification { - - /** EmailNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents an EmailNotification. */ - class EmailNotification implements IEmailNotification { - - /** - * Constructs a new EmailNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEmailNotification); - - /** EmailNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new EmailNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailNotification instance - */ - public static create(properties?: flyteidl.admin.IEmailNotification): flyteidl.admin.EmailNotification; - - /** - * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. - * @param message EmailNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEmailNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmailNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailNotification - * @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.EmailNotification; - - /** - * Verifies an EmailNotification 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 PagerDutyNotification. */ - interface IPagerDutyNotification { - - /** PagerDutyNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents a PagerDutyNotification. */ - class PagerDutyNotification implements IPagerDutyNotification { - - /** - * Constructs a new PagerDutyNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPagerDutyNotification); - - /** PagerDutyNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new PagerDutyNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns PagerDutyNotification instance - */ - public static create(properties?: flyteidl.admin.IPagerDutyNotification): flyteidl.admin.PagerDutyNotification; - - /** - * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. - * @param message PagerDutyNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPagerDutyNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PagerDutyNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PagerDutyNotification - * @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.PagerDutyNotification; - - /** - * Verifies a PagerDutyNotification 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 SlackNotification. */ - interface ISlackNotification { - - /** SlackNotification recipientsEmail */ - recipientsEmail?: (string[]|null); - } - - /** Represents a SlackNotification. */ - class SlackNotification implements ISlackNotification { - - /** - * Constructs a new SlackNotification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISlackNotification); - - /** SlackNotification recipientsEmail. */ - public recipientsEmail: string[]; - - /** - * Creates a new SlackNotification instance using the specified properties. - * @param [properties] Properties to set - * @returns SlackNotification instance - */ - public static create(properties?: flyteidl.admin.ISlackNotification): flyteidl.admin.SlackNotification; - - /** - * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. - * @param message SlackNotification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISlackNotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SlackNotification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SlackNotification - * @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.SlackNotification; - - /** - * Verifies a SlackNotification 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 Notification. */ - interface INotification { - - /** Notification phases */ - phases?: (flyteidl.core.WorkflowExecution.Phase[]|null); - - /** Notification email */ - email?: (flyteidl.admin.IEmailNotification|null); - - /** Notification pagerDuty */ - pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); - - /** Notification slack */ - slack?: (flyteidl.admin.ISlackNotification|null); - } - - /** Represents a Notification. */ - class Notification implements INotification { - - /** - * Constructs a new Notification. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INotification); - - /** Notification phases. */ - public phases: flyteidl.core.WorkflowExecution.Phase[]; - - /** Notification email. */ - public email?: (flyteidl.admin.IEmailNotification|null); - - /** Notification pagerDuty. */ - public pagerDuty?: (flyteidl.admin.IPagerDutyNotification|null); - - /** Notification slack. */ - public slack?: (flyteidl.admin.ISlackNotification|null); - - /** Notification type. */ - public type?: ("email"|"pagerDuty"|"slack"); - - /** - * Creates a new Notification instance using the specified properties. - * @param [properties] Properties to set - * @returns Notification instance - */ - public static create(properties?: flyteidl.admin.INotification): flyteidl.admin.Notification; - - /** - * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. - * @param message Notification message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INotification, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Notification message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Notification - * @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.Notification; - - /** - * Verifies a Notification 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 an UrlBlob. */ - interface IUrlBlob { - - /** UrlBlob url */ - url?: (string|null); - - /** UrlBlob bytes */ - bytes?: (Long|null); - } - - /** Represents an UrlBlob. */ - class UrlBlob implements IUrlBlob { - - /** - * Constructs a new UrlBlob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IUrlBlob); - - /** UrlBlob url. */ - public url: string; - - /** UrlBlob bytes. */ - public bytes: Long; - - /** - * Creates a new UrlBlob instance using the specified properties. - * @param [properties] Properties to set - * @returns UrlBlob instance - */ - public static create(properties?: flyteidl.admin.IUrlBlob): flyteidl.admin.UrlBlob; - - /** - * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. - * @param message UrlBlob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IUrlBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UrlBlob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UrlBlob - * @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.UrlBlob; - - /** - * Verifies an UrlBlob 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 Labels. */ - interface ILabels { - - /** Labels values */ - values?: ({ [k: string]: string }|null); - } - - /** Represents a Labels. */ - class Labels implements ILabels { - - /** - * Constructs a new Labels. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILabels); - - /** Labels values. */ - public values: { [k: string]: string }; - - /** - * Creates a new Labels instance using the specified properties. - * @param [properties] Properties to set - * @returns Labels instance - */ - public static create(properties?: flyteidl.admin.ILabels): flyteidl.admin.Labels; - - /** - * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. - * @param message Labels message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILabels, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Labels message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Labels - * @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.Labels; - - /** - * Verifies a Labels 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 an Annotations. */ - interface IAnnotations { - - /** Annotations values */ - values?: ({ [k: string]: string }|null); - } - - /** Represents an Annotations. */ - class Annotations implements IAnnotations { - - /** - * Constructs a new Annotations. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAnnotations); - - /** Annotations values. */ - public values: { [k: string]: string }; - - /** - * Creates a new Annotations instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotations instance - */ - public static create(properties?: flyteidl.admin.IAnnotations): flyteidl.admin.Annotations; - - /** - * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. - * @param message Annotations message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAnnotations, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Annotations message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotations - * @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.Annotations; - - /** - * Verifies an Annotations 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 an Envs. */ - interface IEnvs { - - /** Envs values */ - values?: (flyteidl.core.IKeyValuePair[]|null); - } - - /** Represents an Envs. */ - class Envs implements IEnvs { - - /** - * Constructs a new Envs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEnvs); - - /** Envs values. */ - public values: flyteidl.core.IKeyValuePair[]; - - /** - * Creates a new Envs instance using the specified properties. - * @param [properties] Properties to set - * @returns Envs instance - */ - public static create(properties?: flyteidl.admin.IEnvs): flyteidl.admin.Envs; - - /** - * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. - * @param message Envs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEnvs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Envs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Envs - * @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.Envs; - - /** - * Verifies an Envs 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 an AuthRole. */ - interface IAuthRole { - - /** AuthRole assumableIamRole */ - assumableIamRole?: (string|null); - - /** AuthRole kubernetesServiceAccount */ - kubernetesServiceAccount?: (string|null); - } - - /** Represents an AuthRole. */ - class AuthRole implements IAuthRole { - - /** - * Constructs a new AuthRole. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAuthRole); - - /** AuthRole assumableIamRole. */ - public assumableIamRole: string; - - /** AuthRole kubernetesServiceAccount. */ - public kubernetesServiceAccount: string; - - /** - * Creates a new AuthRole instance using the specified properties. - * @param [properties] Properties to set - * @returns AuthRole instance - */ - public static create(properties?: flyteidl.admin.IAuthRole): flyteidl.admin.AuthRole; - - /** - * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. - * @param message AuthRole message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAuthRole, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AuthRole message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AuthRole - * @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.AuthRole; - - /** - * Verifies an AuthRole 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 RawOutputDataConfig. */ - interface IRawOutputDataConfig { - - /** RawOutputDataConfig outputLocationPrefix */ - outputLocationPrefix?: (string|null); - } - - /** Represents a RawOutputDataConfig. */ - class RawOutputDataConfig implements IRawOutputDataConfig { - - /** - * Constructs a new RawOutputDataConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IRawOutputDataConfig); - - /** RawOutputDataConfig outputLocationPrefix. */ - public outputLocationPrefix: string; - - /** - * Creates a new RawOutputDataConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns RawOutputDataConfig instance - */ - public static create(properties?: flyteidl.admin.IRawOutputDataConfig): flyteidl.admin.RawOutputDataConfig; - - /** - * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. - * @param message RawOutputDataConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IRawOutputDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RawOutputDataConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RawOutputDataConfig - * @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.RawOutputDataConfig; - - /** - * Verifies a RawOutputDataConfig 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 FlyteURLs. */ - interface IFlyteURLs { - - /** FlyteURLs inputs */ - inputs?: (string|null); - - /** FlyteURLs outputs */ - outputs?: (string|null); - - /** FlyteURLs deck */ - deck?: (string|null); - } - - /** Represents a FlyteURLs. */ - class FlyteURLs implements IFlyteURLs { - - /** - * Constructs a new FlyteURLs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IFlyteURLs); - - /** FlyteURLs inputs. */ - public inputs: string; - - /** FlyteURLs outputs. */ - public outputs: string; - - /** FlyteURLs deck. */ - public deck: string; - - /** - * Creates a new FlyteURLs instance using the specified properties. - * @param [properties] Properties to set - * @returns FlyteURLs instance - */ - public static create(properties?: flyteidl.admin.IFlyteURLs): flyteidl.admin.FlyteURLs; - - /** - * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. - * @param message FlyteURLs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IFlyteURLs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FlyteURLs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FlyteURLs - * @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.FlyteURLs; - - /** - * Verifies a FlyteURLs 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 DescriptionEntity. */ - interface IDescriptionEntity { - - /** DescriptionEntity id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DescriptionEntity shortDescription */ - shortDescription?: (string|null); - - /** DescriptionEntity longDescription */ - longDescription?: (flyteidl.admin.IDescription|null); - - /** DescriptionEntity sourceCode */ - sourceCode?: (flyteidl.admin.ISourceCode|null); - - /** DescriptionEntity tags */ - tags?: (string[]|null); - } - - /** Represents a DescriptionEntity. */ - class DescriptionEntity implements IDescriptionEntity { - - /** - * Constructs a new DescriptionEntity. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntity); - - /** DescriptionEntity id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DescriptionEntity shortDescription. */ - public shortDescription: string; - - /** DescriptionEntity longDescription. */ - public longDescription?: (flyteidl.admin.IDescription|null); - - /** DescriptionEntity sourceCode. */ - public sourceCode?: (flyteidl.admin.ISourceCode|null); - - /** DescriptionEntity tags. */ - public tags: string[]; - - /** - * Creates a new DescriptionEntity instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntity instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntity): flyteidl.admin.DescriptionEntity; - - /** - * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. - * @param message DescriptionEntity message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntity, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntity message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntity - * @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.DescriptionEntity; - - /** - * Verifies a DescriptionEntity 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); - } - - /** DescriptionFormat enum. */ - enum DescriptionFormat { - DESCRIPTION_FORMAT_UNKNOWN = 0, - DESCRIPTION_FORMAT_MARKDOWN = 1, - DESCRIPTION_FORMAT_HTML = 2, - DESCRIPTION_FORMAT_RST = 3 - } - - /** Properties of a Description. */ - interface IDescription { - - /** Description value */ - value?: (string|null); - - /** Description uri */ - uri?: (string|null); - - /** Description format */ - format?: (flyteidl.admin.DescriptionFormat|null); - - /** Description iconLink */ - iconLink?: (string|null); - } - - /** Represents a Description. */ - class Description implements IDescription { - - /** - * Constructs a new Description. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescription); - - /** Description value. */ - public value: string; - - /** Description uri. */ - public uri: string; - - /** Description format. */ - public format: flyteidl.admin.DescriptionFormat; - - /** Description iconLink. */ - public iconLink: string; - - /** Description content. */ - public content?: ("value"|"uri"); - - /** - * Creates a new Description instance using the specified properties. - * @param [properties] Properties to set - * @returns Description instance - */ - public static create(properties?: flyteidl.admin.IDescription): flyteidl.admin.Description; - - /** - * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. - * @param message Description message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescription, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Description message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Description - * @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.Description; - - /** - * Verifies a Description 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 SourceCode. */ - interface ISourceCode { - - /** SourceCode link */ - link?: (string|null); - } - - /** Represents a SourceCode. */ - class SourceCode implements ISourceCode { - - /** - * Constructs a new SourceCode. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISourceCode); - - /** SourceCode link. */ - public link: string; - - /** - * Creates a new SourceCode instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCode instance - */ - public static create(properties?: flyteidl.admin.ISourceCode): flyteidl.admin.SourceCode; - - /** - * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. - * @param message SourceCode message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISourceCode, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCode message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceCode - * @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.SourceCode; - - /** - * Verifies a SourceCode 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 DescriptionEntityList. */ - interface IDescriptionEntityList { - - /** DescriptionEntityList descriptionEntities */ - descriptionEntities?: (flyteidl.admin.IDescriptionEntity[]|null); - - /** DescriptionEntityList token */ - token?: (string|null); - } - - /** Represents a DescriptionEntityList. */ - class DescriptionEntityList implements IDescriptionEntityList { - - /** - * Constructs a new DescriptionEntityList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntityList); - - /** DescriptionEntityList descriptionEntities. */ - public descriptionEntities: flyteidl.admin.IDescriptionEntity[]; - - /** DescriptionEntityList token. */ - public token: string; - - /** - * Creates a new DescriptionEntityList instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntityList instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntityList): flyteidl.admin.DescriptionEntityList; - - /** - * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. - * @param message DescriptionEntityList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntityList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntityList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntityList - * @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.DescriptionEntityList; - - /** - * Verifies a DescriptionEntityList 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 DescriptionEntityListRequest. */ - interface IDescriptionEntityListRequest { - - /** DescriptionEntityListRequest resourceType */ - resourceType?: (flyteidl.core.ResourceType|null); - - /** DescriptionEntityListRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** DescriptionEntityListRequest limit */ - limit?: (number|null); - - /** DescriptionEntityListRequest token */ - token?: (string|null); - - /** DescriptionEntityListRequest filters */ - filters?: (string|null); - - /** DescriptionEntityListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a DescriptionEntityListRequest. */ - class DescriptionEntityListRequest implements IDescriptionEntityListRequest { - - /** - * Constructs a new DescriptionEntityListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDescriptionEntityListRequest); - - /** DescriptionEntityListRequest resourceType. */ - public resourceType: flyteidl.core.ResourceType; - - /** DescriptionEntityListRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** DescriptionEntityListRequest limit. */ - public limit: number; - - /** DescriptionEntityListRequest token. */ - public token: string; - - /** DescriptionEntityListRequest filters. */ - public filters: string; - - /** DescriptionEntityListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new DescriptionEntityListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptionEntityListRequest instance - */ - public static create(properties?: flyteidl.admin.IDescriptionEntityListRequest): flyteidl.admin.DescriptionEntityListRequest; - - /** - * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. - * @param message DescriptionEntityListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDescriptionEntityListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptionEntityListRequest - * @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.DescriptionEntityListRequest; - - /** - * Verifies a DescriptionEntityListRequest 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 an EventErrorAlreadyInTerminalState. */ - interface IEventErrorAlreadyInTerminalState { - - /** EventErrorAlreadyInTerminalState currentPhase */ - currentPhase?: (string|null); - } - - /** Represents an EventErrorAlreadyInTerminalState. */ - class EventErrorAlreadyInTerminalState implements IEventErrorAlreadyInTerminalState { - - /** - * Constructs a new EventErrorAlreadyInTerminalState. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState); - - /** EventErrorAlreadyInTerminalState currentPhase. */ - public currentPhase: string; - - /** - * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. - * @param [properties] Properties to set - * @returns EventErrorAlreadyInTerminalState instance - */ - public static create(properties?: flyteidl.admin.IEventErrorAlreadyInTerminalState): flyteidl.admin.EventErrorAlreadyInTerminalState; - - /** - * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. - * @param message EventErrorAlreadyInTerminalState message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventErrorAlreadyInTerminalState, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventErrorAlreadyInTerminalState - * @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.EventErrorAlreadyInTerminalState; - - /** - * Verifies an EventErrorAlreadyInTerminalState 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 an EventErrorIncompatibleCluster. */ - interface IEventErrorIncompatibleCluster { - - /** EventErrorIncompatibleCluster cluster */ - cluster?: (string|null); - } - - /** Represents an EventErrorIncompatibleCluster. */ - class EventErrorIncompatibleCluster implements IEventErrorIncompatibleCluster { - - /** - * Constructs a new EventErrorIncompatibleCluster. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventErrorIncompatibleCluster); - - /** EventErrorIncompatibleCluster cluster. */ - public cluster: string; - - /** - * Creates a new EventErrorIncompatibleCluster instance using the specified properties. - * @param [properties] Properties to set - * @returns EventErrorIncompatibleCluster instance - */ - public static create(properties?: flyteidl.admin.IEventErrorIncompatibleCluster): flyteidl.admin.EventErrorIncompatibleCluster; - - /** - * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. - * @param message EventErrorIncompatibleCluster message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventErrorIncompatibleCluster, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventErrorIncompatibleCluster - * @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.EventErrorIncompatibleCluster; - - /** - * Verifies an EventErrorIncompatibleCluster 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 an EventFailureReason. */ - interface IEventFailureReason { - - /** EventFailureReason alreadyInTerminalState */ - alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); - - /** EventFailureReason incompatibleCluster */ - incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); - } - - /** Represents an EventFailureReason. */ - class EventFailureReason implements IEventFailureReason { - - /** - * Constructs a new EventFailureReason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEventFailureReason); - - /** EventFailureReason alreadyInTerminalState. */ - public alreadyInTerminalState?: (flyteidl.admin.IEventErrorAlreadyInTerminalState|null); - - /** EventFailureReason incompatibleCluster. */ - public incompatibleCluster?: (flyteidl.admin.IEventErrorIncompatibleCluster|null); - - /** EventFailureReason reason. */ - public reason?: ("alreadyInTerminalState"|"incompatibleCluster"); - - /** - * Creates a new EventFailureReason instance using the specified properties. - * @param [properties] Properties to set - * @returns EventFailureReason instance - */ - public static create(properties?: flyteidl.admin.IEventFailureReason): flyteidl.admin.EventFailureReason; - - /** - * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. - * @param message EventFailureReason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEventFailureReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EventFailureReason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EventFailureReason - * @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.EventFailureReason; - - /** - * Verifies an EventFailureReason 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 WorkflowExecutionEventRequest. */ - interface IWorkflowExecutionEventRequest { - - /** WorkflowExecutionEventRequest requestId */ - requestId?: (string|null); - - /** WorkflowExecutionEventRequest event */ - event?: (flyteidl.event.IWorkflowExecutionEvent|null); - } - - /** Represents a WorkflowExecutionEventRequest. */ - class WorkflowExecutionEventRequest implements IWorkflowExecutionEventRequest { - - /** - * Constructs a new WorkflowExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionEventRequest); - - /** WorkflowExecutionEventRequest requestId. */ - public requestId: string; - - /** WorkflowExecutionEventRequest event. */ - public event?: (flyteidl.event.IWorkflowExecutionEvent|null); - - /** - * Creates a new WorkflowExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionEventRequest): flyteidl.admin.WorkflowExecutionEventRequest; - - /** - * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. - * @param message WorkflowExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEventRequest - * @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.WorkflowExecutionEventRequest; - - /** - * Verifies a WorkflowExecutionEventRequest 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 WorkflowExecutionEventResponse. */ - interface IWorkflowExecutionEventResponse { - } - - /** Represents a WorkflowExecutionEventResponse. */ - class WorkflowExecutionEventResponse implements IWorkflowExecutionEventResponse { - - /** - * Constructs a new WorkflowExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionEventResponse); - - /** - * Creates a new WorkflowExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionEventResponse): flyteidl.admin.WorkflowExecutionEventResponse; - - /** - * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. - * @param message WorkflowExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionEventResponse - * @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.WorkflowExecutionEventResponse; - - /** - * Verifies a WorkflowExecutionEventResponse 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 NodeExecutionEventRequest. */ - interface INodeExecutionEventRequest { - - /** NodeExecutionEventRequest requestId */ - requestId?: (string|null); - - /** NodeExecutionEventRequest event */ - event?: (flyteidl.event.INodeExecutionEvent|null); - } - - /** Represents a NodeExecutionEventRequest. */ - class NodeExecutionEventRequest implements INodeExecutionEventRequest { - - /** - * Constructs a new NodeExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionEventRequest); - - /** NodeExecutionEventRequest requestId. */ - public requestId: string; - - /** NodeExecutionEventRequest event. */ - public event?: (flyteidl.event.INodeExecutionEvent|null); - - /** - * Creates a new NodeExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionEventRequest): flyteidl.admin.NodeExecutionEventRequest; - - /** - * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. - * @param message NodeExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEventRequest - * @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.NodeExecutionEventRequest; - - /** - * Verifies a NodeExecutionEventRequest 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 NodeExecutionEventResponse. */ - interface INodeExecutionEventResponse { - } - - /** Represents a NodeExecutionEventResponse. */ - class NodeExecutionEventResponse implements INodeExecutionEventResponse { - - /** - * Constructs a new NodeExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionEventResponse); - - /** - * Creates a new NodeExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionEventResponse): flyteidl.admin.NodeExecutionEventResponse; - - /** - * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. - * @param message NodeExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionEventResponse - * @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.NodeExecutionEventResponse; - - /** - * Verifies a NodeExecutionEventResponse 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 TaskExecutionEventRequest. */ - interface ITaskExecutionEventRequest { - - /** TaskExecutionEventRequest requestId */ - requestId?: (string|null); - - /** TaskExecutionEventRequest event */ - event?: (flyteidl.event.ITaskExecutionEvent|null); - } - - /** Represents a TaskExecutionEventRequest. */ - class TaskExecutionEventRequest implements ITaskExecutionEventRequest { - - /** - * Constructs a new TaskExecutionEventRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionEventRequest); - - /** TaskExecutionEventRequest requestId. */ - public requestId: string; - - /** TaskExecutionEventRequest event. */ - public event?: (flyteidl.event.ITaskExecutionEvent|null); - - /** - * Creates a new TaskExecutionEventRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEventRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionEventRequest): flyteidl.admin.TaskExecutionEventRequest; - - /** - * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. - * @param message TaskExecutionEventRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionEventRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEventRequest - * @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.TaskExecutionEventRequest; - - /** - * Verifies a TaskExecutionEventRequest 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 TaskExecutionEventResponse. */ - interface ITaskExecutionEventResponse { - } - - /** Represents a TaskExecutionEventResponse. */ - class TaskExecutionEventResponse implements ITaskExecutionEventResponse { - - /** - * Constructs a new TaskExecutionEventResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionEventResponse); - - /** - * Creates a new TaskExecutionEventResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionEventResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionEventResponse): flyteidl.admin.TaskExecutionEventResponse; - - /** - * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. - * @param message TaskExecutionEventResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionEventResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionEventResponse - * @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.TaskExecutionEventResponse; - - /** - * Verifies a TaskExecutionEventResponse 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 an ExecutionCreateRequest. */ - interface IExecutionCreateRequest { - - /** ExecutionCreateRequest project */ - project?: (string|null); - - /** ExecutionCreateRequest domain */ - domain?: (string|null); - - /** ExecutionCreateRequest name */ - name?: (string|null); - - /** ExecutionCreateRequest spec */ - spec?: (flyteidl.admin.IExecutionSpec|null); - - /** ExecutionCreateRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents an ExecutionCreateRequest. */ - class ExecutionCreateRequest implements IExecutionCreateRequest { - - /** - * Constructs a new ExecutionCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionCreateRequest); - - /** ExecutionCreateRequest project. */ - public project: string; - - /** ExecutionCreateRequest domain. */ - public domain: string; - - /** ExecutionCreateRequest name. */ - public name: string; - - /** ExecutionCreateRequest spec. */ - public spec?: (flyteidl.admin.IExecutionSpec|null); - - /** ExecutionCreateRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new ExecutionCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionCreateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionCreateRequest): flyteidl.admin.ExecutionCreateRequest; - - /** - * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. - * @param message ExecutionCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionCreateRequest - * @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.ExecutionCreateRequest; - - /** - * Verifies an ExecutionCreateRequest 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 an ExecutionRelaunchRequest. */ - interface IExecutionRelaunchRequest { - - /** ExecutionRelaunchRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRelaunchRequest name */ - name?: (string|null); - - /** ExecutionRelaunchRequest overwriteCache */ - overwriteCache?: (boolean|null); - } - - /** Represents an ExecutionRelaunchRequest. */ - class ExecutionRelaunchRequest implements IExecutionRelaunchRequest { - - /** - * Constructs a new ExecutionRelaunchRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionRelaunchRequest); - - /** ExecutionRelaunchRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRelaunchRequest name. */ - public name: string; - - /** ExecutionRelaunchRequest overwriteCache. */ - public overwriteCache: boolean; - - /** - * Creates a new ExecutionRelaunchRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionRelaunchRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionRelaunchRequest): flyteidl.admin.ExecutionRelaunchRequest; - - /** - * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. - * @param message ExecutionRelaunchRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionRelaunchRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionRelaunchRequest - * @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.ExecutionRelaunchRequest; - - /** - * Verifies an ExecutionRelaunchRequest 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 an ExecutionRecoverRequest. */ - interface IExecutionRecoverRequest { - - /** ExecutionRecoverRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRecoverRequest name */ - name?: (string|null); - - /** ExecutionRecoverRequest metadata */ - metadata?: (flyteidl.admin.IExecutionMetadata|null); - } - - /** Represents an ExecutionRecoverRequest. */ - class ExecutionRecoverRequest implements IExecutionRecoverRequest { - - /** - * Constructs a new ExecutionRecoverRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionRecoverRequest); - - /** ExecutionRecoverRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionRecoverRequest name. */ - public name: string; - - /** ExecutionRecoverRequest metadata. */ - public metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** - * Creates a new ExecutionRecoverRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionRecoverRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionRecoverRequest): flyteidl.admin.ExecutionRecoverRequest; - - /** - * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. - * @param message ExecutionRecoverRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionRecoverRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionRecoverRequest - * @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.ExecutionRecoverRequest; - - /** - * Verifies an ExecutionRecoverRequest 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 an ExecutionCreateResponse. */ - interface IExecutionCreateResponse { - - /** ExecutionCreateResponse id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents an ExecutionCreateResponse. */ - class ExecutionCreateResponse implements IExecutionCreateResponse { - - /** - * Constructs a new ExecutionCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionCreateResponse); - - /** ExecutionCreateResponse id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new ExecutionCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionCreateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionCreateResponse): flyteidl.admin.ExecutionCreateResponse; - - /** - * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. - * @param message ExecutionCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionCreateResponse - * @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.ExecutionCreateResponse; - - /** - * Verifies an ExecutionCreateResponse 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 WorkflowExecutionGetRequest. */ - interface IWorkflowExecutionGetRequest { - - /** WorkflowExecutionGetRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowExecutionGetRequest. */ - class WorkflowExecutionGetRequest implements IWorkflowExecutionGetRequest { - - /** - * Constructs a new WorkflowExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetRequest); - - /** WorkflowExecutionGetRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetRequest): flyteidl.admin.WorkflowExecutionGetRequest; - - /** - * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. - * @param message WorkflowExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetRequest - * @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.WorkflowExecutionGetRequest; - - /** - * Verifies a WorkflowExecutionGetRequest 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 an Execution. */ - interface IExecution { - - /** Execution id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Execution spec */ - spec?: (flyteidl.admin.IExecutionSpec|null); - - /** Execution closure */ - closure?: (flyteidl.admin.IExecutionClosure|null); - } - - /** Represents an Execution. */ - class Execution implements IExecution { - - /** - * Constructs a new Execution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecution); - - /** Execution id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** Execution spec. */ - public spec?: (flyteidl.admin.IExecutionSpec|null); - - /** Execution closure. */ - public closure?: (flyteidl.admin.IExecutionClosure|null); - - /** - * Creates a new Execution instance using the specified properties. - * @param [properties] Properties to set - * @returns Execution instance - */ - public static create(properties?: flyteidl.admin.IExecution): flyteidl.admin.Execution; - - /** - * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Execution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Execution - * @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.Execution; - - /** - * Verifies an Execution 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 an ExecutionList. */ - interface IExecutionList { - - /** ExecutionList executions */ - executions?: (flyteidl.admin.IExecution[]|null); - - /** ExecutionList token */ - token?: (string|null); - } - - /** Represents an ExecutionList. */ - class ExecutionList implements IExecutionList { - - /** - * Constructs a new ExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionList); - - /** ExecutionList executions. */ - public executions: flyteidl.admin.IExecution[]; - - /** ExecutionList token. */ - public token: string; - - /** - * Creates a new ExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionList instance - */ - public static create(properties?: flyteidl.admin.IExecutionList): flyteidl.admin.ExecutionList; - - /** - * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. - * @param message ExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionList - * @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.ExecutionList; - - /** - * Verifies an ExecutionList 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 LiteralMapBlob. */ - interface ILiteralMapBlob { - - /** LiteralMapBlob values */ - values?: (flyteidl.core.ILiteralMap|null); - - /** LiteralMapBlob uri */ - uri?: (string|null); - } - - /** Represents a LiteralMapBlob. */ - class LiteralMapBlob implements ILiteralMapBlob { - - /** - * Constructs a new LiteralMapBlob. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILiteralMapBlob); - - /** LiteralMapBlob values. */ - public values?: (flyteidl.core.ILiteralMap|null); - - /** LiteralMapBlob uri. */ - public uri: string; - - /** LiteralMapBlob data. */ - public data?: ("values"|"uri"); - - /** - * Creates a new LiteralMapBlob instance using the specified properties. - * @param [properties] Properties to set - * @returns LiteralMapBlob instance - */ - public static create(properties?: flyteidl.admin.ILiteralMapBlob): flyteidl.admin.LiteralMapBlob; - - /** - * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. - * @param message LiteralMapBlob message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILiteralMapBlob, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LiteralMapBlob message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LiteralMapBlob - * @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.LiteralMapBlob; - - /** - * Verifies a LiteralMapBlob 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 an AbortMetadata. */ - interface IAbortMetadata { - - /** AbortMetadata cause */ - cause?: (string|null); - - /** AbortMetadata principal */ - principal?: (string|null); - } - - /** Represents an AbortMetadata. */ - class AbortMetadata implements IAbortMetadata { - - /** - * Constructs a new AbortMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAbortMetadata); - - /** AbortMetadata cause. */ - public cause: string; - - /** AbortMetadata principal. */ - public principal: string; - - /** - * Creates a new AbortMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns AbortMetadata instance - */ - public static create(properties?: flyteidl.admin.IAbortMetadata): flyteidl.admin.AbortMetadata; - - /** - * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. - * @param message AbortMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAbortMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an AbortMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns AbortMetadata - * @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.AbortMetadata; - - /** - * Verifies an AbortMetadata 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 an ExecutionClosure. */ - interface IExecutionClosure { - - /** ExecutionClosure outputs */ - outputs?: (flyteidl.admin.ILiteralMapBlob|null); - - /** ExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** ExecutionClosure abortCause */ - abortCause?: (string|null); - - /** ExecutionClosure abortMetadata */ - abortMetadata?: (flyteidl.admin.IAbortMetadata|null); - - /** ExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure computedInputs */ - computedInputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure phase */ - phase?: (flyteidl.core.WorkflowExecution.Phase|null); - - /** ExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** ExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - - /** ExecutionClosure workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** ExecutionClosure stateChangeDetails */ - stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); - } - - /** Represents an ExecutionClosure. */ - class ExecutionClosure implements IExecutionClosure { - - /** - * Constructs a new ExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionClosure); - - /** ExecutionClosure outputs. */ - public outputs?: (flyteidl.admin.ILiteralMapBlob|null); - - /** ExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** ExecutionClosure abortCause. */ - public abortCause: string; - - /** ExecutionClosure abortMetadata. */ - public abortMetadata?: (flyteidl.admin.IAbortMetadata|null); - - /** ExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure computedInputs. */ - public computedInputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionClosure phase. */ - public phase: flyteidl.core.WorkflowExecution.Phase; - - /** ExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** ExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionClosure notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** ExecutionClosure workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** ExecutionClosure stateChangeDetails. */ - public stateChangeDetails?: (flyteidl.admin.IExecutionStateChangeDetails|null); - - /** ExecutionClosure outputResult. */ - public outputResult?: ("outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"); - - /** - * Creates a new ExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.IExecutionClosure): flyteidl.admin.ExecutionClosure; - - /** - * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. - * @param message ExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionClosure - * @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.ExecutionClosure; - - /** - * Verifies an ExecutionClosure 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 SystemMetadata. */ - interface ISystemMetadata { - - /** SystemMetadata executionCluster */ - executionCluster?: (string|null); - - /** SystemMetadata namespace */ - namespace?: (string|null); - } - - /** Represents a SystemMetadata. */ - class SystemMetadata implements ISystemMetadata { - - /** - * Constructs a new SystemMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISystemMetadata); - - /** SystemMetadata executionCluster. */ - public executionCluster: string; - - /** SystemMetadata namespace. */ - public namespace: string; - - /** - * Creates a new SystemMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns SystemMetadata instance - */ - public static create(properties?: flyteidl.admin.ISystemMetadata): flyteidl.admin.SystemMetadata; - - /** - * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. - * @param message SystemMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISystemMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SystemMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SystemMetadata - * @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.SystemMetadata; - - /** - * Verifies a SystemMetadata 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 an ExecutionMetadata. */ - interface IExecutionMetadata { - - /** ExecutionMetadata mode */ - mode?: (flyteidl.admin.ExecutionMetadata.ExecutionMode|null); - - /** ExecutionMetadata principal */ - principal?: (string|null); - - /** ExecutionMetadata nesting */ - nesting?: (number|null); - - /** ExecutionMetadata scheduledAt */ - scheduledAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionMetadata parentNodeExecution */ - parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** ExecutionMetadata referenceExecution */ - referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionMetadata systemMetadata */ - systemMetadata?: (flyteidl.admin.ISystemMetadata|null); - - /** ExecutionMetadata artifactIds */ - artifactIds?: (flyteidl.core.IArtifactID[]|null); - } - - /** Represents an ExecutionMetadata. */ - class ExecutionMetadata implements IExecutionMetadata { - - /** - * Constructs a new ExecutionMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionMetadata); - - /** ExecutionMetadata mode. */ - public mode: flyteidl.admin.ExecutionMetadata.ExecutionMode; - - /** ExecutionMetadata principal. */ - public principal: string; - - /** ExecutionMetadata nesting. */ - public nesting: number; - - /** ExecutionMetadata scheduledAt. */ - public scheduledAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionMetadata parentNodeExecution. */ - public parentNodeExecution?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** ExecutionMetadata referenceExecution. */ - public referenceExecution?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionMetadata systemMetadata. */ - public systemMetadata?: (flyteidl.admin.ISystemMetadata|null); - - /** ExecutionMetadata artifactIds. */ - public artifactIds: flyteidl.core.IArtifactID[]; - - /** - * Creates a new ExecutionMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionMetadata instance - */ - public static create(properties?: flyteidl.admin.IExecutionMetadata): flyteidl.admin.ExecutionMetadata; - - /** - * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. - * @param message ExecutionMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionMetadata - * @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.ExecutionMetadata; - - /** - * Verifies an ExecutionMetadata 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); - } - - namespace ExecutionMetadata { - - /** ExecutionMode enum. */ - enum ExecutionMode { - MANUAL = 0, - SCHEDULED = 1, - SYSTEM = 2, - RELAUNCH = 3, - CHILD_WORKFLOW = 4, - RECOVERED = 5 - } - } - - /** Properties of a NotificationList. */ - interface INotificationList { - - /** NotificationList notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - } - - /** Represents a NotificationList. */ - class NotificationList implements INotificationList { - - /** - * Constructs a new NotificationList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INotificationList); - - /** NotificationList notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** - * Creates a new NotificationList instance using the specified properties. - * @param [properties] Properties to set - * @returns NotificationList instance - */ - public static create(properties?: flyteidl.admin.INotificationList): flyteidl.admin.NotificationList; - - /** - * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. - * @param message NotificationList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INotificationList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NotificationList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NotificationList - * @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.NotificationList; - - /** - * Verifies a NotificationList 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 an ExecutionSpec. */ - interface IExecutionSpec { - - /** ExecutionSpec launchPlan */ - launchPlan?: (flyteidl.core.IIdentifier|null); - - /** ExecutionSpec inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionSpec metadata */ - metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** ExecutionSpec notifications */ - notifications?: (flyteidl.admin.INotificationList|null); - - /** ExecutionSpec disableAll */ - disableAll?: (boolean|null); - - /** ExecutionSpec labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** ExecutionSpec annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** ExecutionSpec securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** ExecutionSpec authRole */ - authRole?: (flyteidl.admin.IAuthRole|null); - - /** ExecutionSpec qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** ExecutionSpec maxParallelism */ - maxParallelism?: (number|null); - - /** ExecutionSpec rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** ExecutionSpec clusterAssignment */ - clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** ExecutionSpec interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** ExecutionSpec overwriteCache */ - overwriteCache?: (boolean|null); - - /** ExecutionSpec envs */ - envs?: (flyteidl.admin.IEnvs|null); - - /** ExecutionSpec tags */ - tags?: (string[]|null); - } - - /** Represents an ExecutionSpec. */ - class ExecutionSpec implements IExecutionSpec { - - /** - * Constructs a new ExecutionSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionSpec); - - /** ExecutionSpec launchPlan. */ - public launchPlan?: (flyteidl.core.IIdentifier|null); - - /** ExecutionSpec inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** ExecutionSpec metadata. */ - public metadata?: (flyteidl.admin.IExecutionMetadata|null); - - /** ExecutionSpec notifications. */ - public notifications?: (flyteidl.admin.INotificationList|null); - - /** ExecutionSpec disableAll. */ - public disableAll: boolean; - - /** ExecutionSpec labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** ExecutionSpec annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** ExecutionSpec securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** ExecutionSpec authRole. */ - public authRole?: (flyteidl.admin.IAuthRole|null); - - /** ExecutionSpec qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** ExecutionSpec maxParallelism. */ - public maxParallelism: number; - - /** ExecutionSpec rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** ExecutionSpec clusterAssignment. */ - public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** ExecutionSpec interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** ExecutionSpec overwriteCache. */ - public overwriteCache: boolean; - - /** ExecutionSpec envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** ExecutionSpec tags. */ - public tags: string[]; - - /** ExecutionSpec notificationOverrides. */ - public notificationOverrides?: ("notifications"|"disableAll"); - - /** - * Creates a new ExecutionSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionSpec instance - */ - public static create(properties?: flyteidl.admin.IExecutionSpec): flyteidl.admin.ExecutionSpec; - - /** - * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. - * @param message ExecutionSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionSpec - * @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.ExecutionSpec; - - /** - * Verifies an ExecutionSpec 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 an ExecutionTerminateRequest. */ - interface IExecutionTerminateRequest { - - /** ExecutionTerminateRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionTerminateRequest cause */ - cause?: (string|null); - } - - /** Represents an ExecutionTerminateRequest. */ - class ExecutionTerminateRequest implements IExecutionTerminateRequest { - - /** - * Constructs a new ExecutionTerminateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionTerminateRequest); - - /** ExecutionTerminateRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionTerminateRequest cause. */ - public cause: string; - - /** - * Creates a new ExecutionTerminateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionTerminateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionTerminateRequest): flyteidl.admin.ExecutionTerminateRequest; - - /** - * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. - * @param message ExecutionTerminateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionTerminateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionTerminateRequest - * @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.ExecutionTerminateRequest; - - /** - * Verifies an ExecutionTerminateRequest 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 an ExecutionTerminateResponse. */ - interface IExecutionTerminateResponse { - } - - /** Represents an ExecutionTerminateResponse. */ - class ExecutionTerminateResponse implements IExecutionTerminateResponse { - - /** - * Constructs a new ExecutionTerminateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionTerminateResponse); - - /** - * Creates a new ExecutionTerminateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionTerminateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionTerminateResponse): flyteidl.admin.ExecutionTerminateResponse; - - /** - * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. - * @param message ExecutionTerminateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionTerminateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionTerminateResponse - * @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.ExecutionTerminateResponse; - - /** - * Verifies an ExecutionTerminateResponse 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 WorkflowExecutionGetDataRequest. */ - interface IWorkflowExecutionGetDataRequest { - - /** WorkflowExecutionGetDataRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowExecutionGetDataRequest. */ - class WorkflowExecutionGetDataRequest implements IWorkflowExecutionGetDataRequest { - - /** - * Constructs a new WorkflowExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest); - - /** WorkflowExecutionGetDataRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataRequest): flyteidl.admin.WorkflowExecutionGetDataRequest; - - /** - * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. - * @param message WorkflowExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetDataRequest - * @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.WorkflowExecutionGetDataRequest; - - /** - * Verifies a WorkflowExecutionGetDataRequest 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 WorkflowExecutionGetDataResponse. */ - interface IWorkflowExecutionGetDataResponse { - - /** WorkflowExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a WorkflowExecutionGetDataResponse. */ - class WorkflowExecutionGetDataResponse implements IWorkflowExecutionGetDataResponse { - - /** - * Constructs a new WorkflowExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse); - - /** WorkflowExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** WorkflowExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** WorkflowExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetDataResponse): flyteidl.admin.WorkflowExecutionGetDataResponse; - - /** - * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. - * @param message WorkflowExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetDataResponse - * @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.WorkflowExecutionGetDataResponse; - - /** - * Verifies a WorkflowExecutionGetDataResponse 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); - } - - /** ExecutionState enum. */ - enum ExecutionState { - EXECUTION_ACTIVE = 0, - EXECUTION_ARCHIVED = 1 - } - - /** Properties of an ExecutionUpdateRequest. */ - interface IExecutionUpdateRequest { - - /** ExecutionUpdateRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionUpdateRequest state */ - state?: (flyteidl.admin.ExecutionState|null); - } - - /** Represents an ExecutionUpdateRequest. */ - class ExecutionUpdateRequest implements IExecutionUpdateRequest { - - /** - * Constructs a new ExecutionUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionUpdateRequest); - - /** ExecutionUpdateRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** ExecutionUpdateRequest state. */ - public state: flyteidl.admin.ExecutionState; - - /** - * Creates a new ExecutionUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IExecutionUpdateRequest): flyteidl.admin.ExecutionUpdateRequest; - - /** - * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. - * @param message ExecutionUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionUpdateRequest - * @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.ExecutionUpdateRequest; - - /** - * Verifies an ExecutionUpdateRequest 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 an ExecutionStateChangeDetails. */ - interface IExecutionStateChangeDetails { - - /** ExecutionStateChangeDetails state */ - state?: (flyteidl.admin.ExecutionState|null); - - /** ExecutionStateChangeDetails occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionStateChangeDetails principal */ - principal?: (string|null); - } - - /** Represents an ExecutionStateChangeDetails. */ - class ExecutionStateChangeDetails implements IExecutionStateChangeDetails { - - /** - * Constructs a new ExecutionStateChangeDetails. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionStateChangeDetails); - - /** ExecutionStateChangeDetails state. */ - public state: flyteidl.admin.ExecutionState; - - /** ExecutionStateChangeDetails occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** ExecutionStateChangeDetails principal. */ - public principal: string; - - /** - * Creates a new ExecutionStateChangeDetails instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionStateChangeDetails instance - */ - public static create(properties?: flyteidl.admin.IExecutionStateChangeDetails): flyteidl.admin.ExecutionStateChangeDetails; - - /** - * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. - * @param message ExecutionStateChangeDetails message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionStateChangeDetails, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionStateChangeDetails - * @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.ExecutionStateChangeDetails; - - /** - * Verifies an ExecutionStateChangeDetails 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 an ExecutionUpdateResponse. */ - interface IExecutionUpdateResponse { - } - - /** Represents an ExecutionUpdateResponse. */ - class ExecutionUpdateResponse implements IExecutionUpdateResponse { - - /** - * Constructs a new ExecutionUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionUpdateResponse); - - /** - * Creates a new ExecutionUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IExecutionUpdateResponse): flyteidl.admin.ExecutionUpdateResponse; - - /** - * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. - * @param message ExecutionUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionUpdateResponse - * @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.ExecutionUpdateResponse; - - /** - * Verifies an ExecutionUpdateResponse 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 WorkflowExecutionGetMetricsRequest. */ - interface IWorkflowExecutionGetMetricsRequest { - - /** WorkflowExecutionGetMetricsRequest id */ - id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionGetMetricsRequest depth */ - depth?: (number|null); - } - - /** Represents a WorkflowExecutionGetMetricsRequest. */ - class WorkflowExecutionGetMetricsRequest implements IWorkflowExecutionGetMetricsRequest { - - /** - * Constructs a new WorkflowExecutionGetMetricsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest); - - /** WorkflowExecutionGetMetricsRequest id. */ - public id?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** WorkflowExecutionGetMetricsRequest depth. */ - public depth: number; - - /** - * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetMetricsRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): flyteidl.admin.WorkflowExecutionGetMetricsRequest; - - /** - * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. - * @param message WorkflowExecutionGetMetricsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetMetricsRequest - * @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.WorkflowExecutionGetMetricsRequest; - - /** - * Verifies a WorkflowExecutionGetMetricsRequest 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 WorkflowExecutionGetMetricsResponse. */ - interface IWorkflowExecutionGetMetricsResponse { - - /** WorkflowExecutionGetMetricsResponse span */ - span?: (flyteidl.core.ISpan|null); - } - - /** Represents a WorkflowExecutionGetMetricsResponse. */ - class WorkflowExecutionGetMetricsResponse implements IWorkflowExecutionGetMetricsResponse { - - /** - * Constructs a new WorkflowExecutionGetMetricsResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse); - - /** WorkflowExecutionGetMetricsResponse span. */ - public span?: (flyteidl.core.ISpan|null); - - /** - * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionGetMetricsResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionGetMetricsResponse): flyteidl.admin.WorkflowExecutionGetMetricsResponse; - - /** - * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. - * @param message WorkflowExecutionGetMetricsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionGetMetricsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionGetMetricsResponse - * @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.WorkflowExecutionGetMetricsResponse; - - /** - * Verifies a WorkflowExecutionGetMetricsResponse 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 LaunchPlanCreateRequest. */ - interface ILaunchPlanCreateRequest { - - /** LaunchPlanCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanCreateRequest spec */ - spec?: (flyteidl.admin.ILaunchPlanSpec|null); - } - - /** Represents a LaunchPlanCreateRequest. */ - class LaunchPlanCreateRequest implements ILaunchPlanCreateRequest { - - /** - * Constructs a new LaunchPlanCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanCreateRequest); - - /** LaunchPlanCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanCreateRequest spec. */ - public spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** - * Creates a new LaunchPlanCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanCreateRequest): flyteidl.admin.LaunchPlanCreateRequest; - - /** - * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. - * @param message LaunchPlanCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanCreateRequest - * @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.LaunchPlanCreateRequest; - - /** - * Verifies a LaunchPlanCreateRequest 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 LaunchPlanCreateResponse. */ - interface ILaunchPlanCreateResponse { - } - - /** Represents a LaunchPlanCreateResponse. */ - class LaunchPlanCreateResponse implements ILaunchPlanCreateResponse { - - /** - * Constructs a new LaunchPlanCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanCreateResponse); - - /** - * Creates a new LaunchPlanCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanCreateResponse instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanCreateResponse): flyteidl.admin.LaunchPlanCreateResponse; - - /** - * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. - * @param message LaunchPlanCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanCreateResponse - * @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.LaunchPlanCreateResponse; - - /** - * Verifies a LaunchPlanCreateResponse 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); - } - - /** LaunchPlanState enum. */ - enum LaunchPlanState { - INACTIVE = 0, - ACTIVE = 1 - } - - /** Properties of a LaunchPlan. */ - interface ILaunchPlan { - - /** LaunchPlan id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlan spec */ - spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** LaunchPlan closure */ - closure?: (flyteidl.admin.ILaunchPlanClosure|null); - } - - /** Represents a LaunchPlan. */ - class LaunchPlan implements ILaunchPlan { - - /** - * Constructs a new LaunchPlan. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlan); - - /** LaunchPlan id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlan spec. */ - public spec?: (flyteidl.admin.ILaunchPlanSpec|null); - - /** LaunchPlan closure. */ - public closure?: (flyteidl.admin.ILaunchPlanClosure|null); - - /** - * Creates a new LaunchPlan instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlan instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlan): flyteidl.admin.LaunchPlan; - - /** - * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. - * @param message LaunchPlan message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlan, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlan message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlan - * @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.LaunchPlan; - - /** - * Verifies a LaunchPlan 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 LaunchPlanList. */ - interface ILaunchPlanList { - - /** LaunchPlanList launchPlans */ - launchPlans?: (flyteidl.admin.ILaunchPlan[]|null); - - /** LaunchPlanList token */ - token?: (string|null); - } - - /** Represents a LaunchPlanList. */ - class LaunchPlanList implements ILaunchPlanList { - - /** - * Constructs a new LaunchPlanList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanList); - - /** LaunchPlanList launchPlans. */ - public launchPlans: flyteidl.admin.ILaunchPlan[]; - - /** LaunchPlanList token. */ - public token: string; - - /** - * Creates a new LaunchPlanList instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanList instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanList): flyteidl.admin.LaunchPlanList; - - /** - * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. - * @param message LaunchPlanList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanList - * @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.LaunchPlanList; - - /** - * Verifies a LaunchPlanList 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 an Auth. */ - interface IAuth { - - /** Auth assumableIamRole */ - assumableIamRole?: (string|null); - - /** Auth kubernetesServiceAccount */ - kubernetesServiceAccount?: (string|null); - } - - /** Represents an Auth. */ - class Auth implements IAuth { - - /** - * Constructs a new Auth. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IAuth); - - /** Auth assumableIamRole. */ - public assumableIamRole: string; - - /** Auth kubernetesServiceAccount. */ - public kubernetesServiceAccount: string; - - /** - * Creates a new Auth instance using the specified properties. - * @param [properties] Properties to set - * @returns Auth instance - */ - public static create(properties?: flyteidl.admin.IAuth): flyteidl.admin.Auth; - - /** - * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. - * @param message Auth message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IAuth, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Auth message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Auth - * @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.Auth; - - /** - * Verifies an Auth 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 LaunchPlanSpec. */ - interface ILaunchPlanSpec { - - /** LaunchPlanSpec workflowId */ - workflowId?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanSpec entityMetadata */ - entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); - - /** LaunchPlanSpec defaultInputs */ - defaultInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanSpec fixedInputs */ - fixedInputs?: (flyteidl.core.ILiteralMap|null); - - /** LaunchPlanSpec role */ - role?: (string|null); - - /** LaunchPlanSpec labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** LaunchPlanSpec annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** LaunchPlanSpec auth */ - auth?: (flyteidl.admin.IAuth|null); - - /** LaunchPlanSpec authRole */ - authRole?: (flyteidl.admin.IAuthRole|null); - - /** LaunchPlanSpec securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** LaunchPlanSpec qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** LaunchPlanSpec rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** LaunchPlanSpec maxParallelism */ - maxParallelism?: (number|null); - - /** LaunchPlanSpec interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** LaunchPlanSpec overwriteCache */ - overwriteCache?: (boolean|null); - - /** LaunchPlanSpec envs */ - envs?: (flyteidl.admin.IEnvs|null); - } - - /** Represents a LaunchPlanSpec. */ - class LaunchPlanSpec implements ILaunchPlanSpec { - - /** - * Constructs a new LaunchPlanSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanSpec); - - /** LaunchPlanSpec workflowId. */ - public workflowId?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanSpec entityMetadata. */ - public entityMetadata?: (flyteidl.admin.ILaunchPlanMetadata|null); - - /** LaunchPlanSpec defaultInputs. */ - public defaultInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanSpec fixedInputs. */ - public fixedInputs?: (flyteidl.core.ILiteralMap|null); - - /** LaunchPlanSpec role. */ - public role: string; - - /** LaunchPlanSpec labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** LaunchPlanSpec annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** LaunchPlanSpec auth. */ - public auth?: (flyteidl.admin.IAuth|null); - - /** LaunchPlanSpec authRole. */ - public authRole?: (flyteidl.admin.IAuthRole|null); - - /** LaunchPlanSpec securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** LaunchPlanSpec qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** LaunchPlanSpec rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** LaunchPlanSpec maxParallelism. */ - public maxParallelism: number; - - /** LaunchPlanSpec interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** LaunchPlanSpec overwriteCache. */ - public overwriteCache: boolean; - - /** LaunchPlanSpec envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** - * Creates a new LaunchPlanSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanSpec instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanSpec): flyteidl.admin.LaunchPlanSpec; - - /** - * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. - * @param message LaunchPlanSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanSpec - * @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.LaunchPlanSpec; - - /** - * Verifies a LaunchPlanSpec 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 LaunchPlanClosure. */ - interface ILaunchPlanClosure { - - /** LaunchPlanClosure state */ - state?: (flyteidl.admin.LaunchPlanState|null); - - /** LaunchPlanClosure expectedInputs */ - expectedInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanClosure expectedOutputs */ - expectedOutputs?: (flyteidl.core.IVariableMap|null); - - /** LaunchPlanClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** LaunchPlanClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a LaunchPlanClosure. */ - class LaunchPlanClosure implements ILaunchPlanClosure { - - /** - * Constructs a new LaunchPlanClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanClosure); - - /** LaunchPlanClosure state. */ - public state: flyteidl.admin.LaunchPlanState; - - /** LaunchPlanClosure expectedInputs. */ - public expectedInputs?: (flyteidl.core.IParameterMap|null); - - /** LaunchPlanClosure expectedOutputs. */ - public expectedOutputs?: (flyteidl.core.IVariableMap|null); - - /** LaunchPlanClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** LaunchPlanClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new LaunchPlanClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanClosure instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanClosure): flyteidl.admin.LaunchPlanClosure; - - /** - * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. - * @param message LaunchPlanClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanClosure - * @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.LaunchPlanClosure; - - /** - * Verifies a LaunchPlanClosure 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 LaunchPlanMetadata. */ - interface ILaunchPlanMetadata { - - /** LaunchPlanMetadata schedule */ - schedule?: (flyteidl.admin.ISchedule|null); - - /** LaunchPlanMetadata notifications */ - notifications?: (flyteidl.admin.INotification[]|null); - - /** LaunchPlanMetadata launchConditions */ - launchConditions?: (google.protobuf.IAny|null); - } - - /** Represents a LaunchPlanMetadata. */ - class LaunchPlanMetadata implements ILaunchPlanMetadata { - - /** - * Constructs a new LaunchPlanMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanMetadata); - - /** LaunchPlanMetadata schedule. */ - public schedule?: (flyteidl.admin.ISchedule|null); - - /** LaunchPlanMetadata notifications. */ - public notifications: flyteidl.admin.INotification[]; - - /** LaunchPlanMetadata launchConditions. */ - public launchConditions?: (google.protobuf.IAny|null); - - /** - * Creates a new LaunchPlanMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanMetadata instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanMetadata): flyteidl.admin.LaunchPlanMetadata; - - /** - * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. - * @param message LaunchPlanMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanMetadata - * @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.LaunchPlanMetadata; - - /** - * Verifies a LaunchPlanMetadata 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 LaunchPlanUpdateRequest. */ - interface ILaunchPlanUpdateRequest { - - /** LaunchPlanUpdateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanUpdateRequest state */ - state?: (flyteidl.admin.LaunchPlanState|null); - } - - /** Represents a LaunchPlanUpdateRequest. */ - class LaunchPlanUpdateRequest implements ILaunchPlanUpdateRequest { - - /** - * Constructs a new LaunchPlanUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanUpdateRequest); - - /** LaunchPlanUpdateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** LaunchPlanUpdateRequest state. */ - public state: flyteidl.admin.LaunchPlanState; - - /** - * Creates a new LaunchPlanUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanUpdateRequest): flyteidl.admin.LaunchPlanUpdateRequest; - - /** - * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. - * @param message LaunchPlanUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanUpdateRequest - * @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.LaunchPlanUpdateRequest; - - /** - * Verifies a LaunchPlanUpdateRequest 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 LaunchPlanUpdateResponse. */ - interface ILaunchPlanUpdateResponse { - } - - /** Represents a LaunchPlanUpdateResponse. */ - class LaunchPlanUpdateResponse implements ILaunchPlanUpdateResponse { - - /** - * Constructs a new LaunchPlanUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ILaunchPlanUpdateResponse); - - /** - * Creates a new LaunchPlanUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns LaunchPlanUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.ILaunchPlanUpdateResponse): flyteidl.admin.LaunchPlanUpdateResponse; - - /** - * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. - * @param message LaunchPlanUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ILaunchPlanUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LaunchPlanUpdateResponse - * @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.LaunchPlanUpdateResponse; - - /** - * Verifies a LaunchPlanUpdateResponse 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 an ActiveLaunchPlanRequest. */ - interface IActiveLaunchPlanRequest { - - /** ActiveLaunchPlanRequest id */ - id?: (flyteidl.admin.INamedEntityIdentifier|null); - } - - /** Represents an ActiveLaunchPlanRequest. */ - class ActiveLaunchPlanRequest implements IActiveLaunchPlanRequest { - - /** - * Constructs a new ActiveLaunchPlanRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IActiveLaunchPlanRequest); - - /** ActiveLaunchPlanRequest id. */ - public id?: (flyteidl.admin.INamedEntityIdentifier|null); - - /** - * Creates a new ActiveLaunchPlanRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ActiveLaunchPlanRequest instance - */ - public static create(properties?: flyteidl.admin.IActiveLaunchPlanRequest): flyteidl.admin.ActiveLaunchPlanRequest; - - /** - * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. - * @param message ActiveLaunchPlanRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IActiveLaunchPlanRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ActiveLaunchPlanRequest - * @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.ActiveLaunchPlanRequest; - - /** - * Verifies an ActiveLaunchPlanRequest 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 an ActiveLaunchPlanListRequest. */ - interface IActiveLaunchPlanListRequest { - - /** ActiveLaunchPlanListRequest project */ - project?: (string|null); - - /** ActiveLaunchPlanListRequest domain */ - domain?: (string|null); - - /** ActiveLaunchPlanListRequest limit */ - limit?: (number|null); - - /** ActiveLaunchPlanListRequest token */ - token?: (string|null); - - /** ActiveLaunchPlanListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents an ActiveLaunchPlanListRequest. */ - class ActiveLaunchPlanListRequest implements IActiveLaunchPlanListRequest { - - /** - * Constructs a new ActiveLaunchPlanListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IActiveLaunchPlanListRequest); - - /** ActiveLaunchPlanListRequest project. */ - public project: string; - - /** ActiveLaunchPlanListRequest domain. */ - public domain: string; - - /** ActiveLaunchPlanListRequest limit. */ - public limit: number; - - /** ActiveLaunchPlanListRequest token. */ - public token: string; - - /** ActiveLaunchPlanListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ActiveLaunchPlanListRequest instance - */ - public static create(properties?: flyteidl.admin.IActiveLaunchPlanListRequest): flyteidl.admin.ActiveLaunchPlanListRequest; - - /** - * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. - * @param message ActiveLaunchPlanListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IActiveLaunchPlanListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ActiveLaunchPlanListRequest - * @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.ActiveLaunchPlanListRequest; - - /** - * Verifies an ActiveLaunchPlanListRequest 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); - } - - /** FixedRateUnit enum. */ - enum FixedRateUnit { - MINUTE = 0, - HOUR = 1, - DAY = 2 - } - - /** Properties of a FixedRate. */ - interface IFixedRate { - - /** FixedRate value */ - value?: (number|null); - - /** FixedRate unit */ - unit?: (flyteidl.admin.FixedRateUnit|null); - } - - /** Represents a FixedRate. */ - class FixedRate implements IFixedRate { - - /** - * Constructs a new FixedRate. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IFixedRate); - - /** FixedRate value. */ - public value: number; - - /** FixedRate unit. */ - public unit: flyteidl.admin.FixedRateUnit; - - /** - * Creates a new FixedRate instance using the specified properties. - * @param [properties] Properties to set - * @returns FixedRate instance - */ - public static create(properties?: flyteidl.admin.IFixedRate): flyteidl.admin.FixedRate; - - /** - * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. - * @param message FixedRate message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IFixedRate, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FixedRate message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FixedRate - * @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.FixedRate; - - /** - * Verifies a FixedRate 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 CronSchedule. */ - interface ICronSchedule { - - /** CronSchedule schedule */ - schedule?: (string|null); - - /** CronSchedule offset */ - offset?: (string|null); - } - - /** Represents a CronSchedule. */ - class CronSchedule implements ICronSchedule { - - /** - * Constructs a new CronSchedule. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ICronSchedule); - - /** CronSchedule schedule. */ - public schedule: string; - - /** CronSchedule offset. */ - public offset: string; - - /** - * Creates a new CronSchedule instance using the specified properties. - * @param [properties] Properties to set - * @returns CronSchedule instance - */ - public static create(properties?: flyteidl.admin.ICronSchedule): flyteidl.admin.CronSchedule; - - /** - * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. - * @param message CronSchedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ICronSchedule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CronSchedule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CronSchedule - * @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.CronSchedule; - - /** - * Verifies a CronSchedule 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 Schedule. */ - interface ISchedule { - - /** Schedule cronExpression */ - cronExpression?: (string|null); - - /** Schedule rate */ - rate?: (flyteidl.admin.IFixedRate|null); - - /** Schedule cronSchedule */ - cronSchedule?: (flyteidl.admin.ICronSchedule|null); - - /** Schedule kickoffTimeInputArg */ - kickoffTimeInputArg?: (string|null); - } - - /** Represents a Schedule. */ - class Schedule implements ISchedule { - - /** - * Constructs a new Schedule. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISchedule); - - /** Schedule cronExpression. */ - public cronExpression: string; - - /** Schedule rate. */ - public rate?: (flyteidl.admin.IFixedRate|null); - - /** Schedule cronSchedule. */ - public cronSchedule?: (flyteidl.admin.ICronSchedule|null); - - /** Schedule kickoffTimeInputArg. */ - public kickoffTimeInputArg: string; - - /** Schedule ScheduleExpression. */ - public ScheduleExpression?: ("cronExpression"|"rate"|"cronSchedule"); - - /** - * Creates a new Schedule instance using the specified properties. - * @param [properties] Properties to set - * @returns Schedule instance - */ - public static create(properties?: flyteidl.admin.ISchedule): flyteidl.admin.Schedule; - - /** - * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. - * @param message Schedule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISchedule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Schedule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Schedule - * @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.Schedule; - - /** - * Verifies a Schedule 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); - } - - /** MatchableResource enum. */ - enum MatchableResource { - TASK_RESOURCE = 0, - CLUSTER_RESOURCE = 1, - EXECUTION_QUEUE = 2, - EXECUTION_CLUSTER_LABEL = 3, - QUALITY_OF_SERVICE_SPECIFICATION = 4, - PLUGIN_OVERRIDE = 5, - WORKFLOW_EXECUTION_CONFIG = 6, - CLUSTER_ASSIGNMENT = 7 - } - - /** Properties of a TaskResourceSpec. */ - interface ITaskResourceSpec { - - /** TaskResourceSpec cpu */ - cpu?: (string|null); - - /** TaskResourceSpec gpu */ - gpu?: (string|null); - - /** TaskResourceSpec memory */ - memory?: (string|null); - - /** TaskResourceSpec storage */ - storage?: (string|null); - - /** TaskResourceSpec ephemeralStorage */ - ephemeralStorage?: (string|null); - } - - /** Represents a TaskResourceSpec. */ - class TaskResourceSpec implements ITaskResourceSpec { - - /** - * Constructs a new TaskResourceSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskResourceSpec); - - /** TaskResourceSpec cpu. */ - public cpu: string; - - /** TaskResourceSpec gpu. */ - public gpu: string; - - /** TaskResourceSpec memory. */ - public memory: string; - - /** TaskResourceSpec storage. */ - public storage: string; - - /** TaskResourceSpec ephemeralStorage. */ - public ephemeralStorage: string; - - /** - * Creates a new TaskResourceSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskResourceSpec instance - */ - public static create(properties?: flyteidl.admin.ITaskResourceSpec): flyteidl.admin.TaskResourceSpec; - - /** - * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. - * @param message TaskResourceSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskResourceSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskResourceSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskResourceSpec - * @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.TaskResourceSpec; - - /** - * Verifies a TaskResourceSpec 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 TaskResourceAttributes. */ - interface ITaskResourceAttributes { - - /** TaskResourceAttributes defaults */ - defaults?: (flyteidl.admin.ITaskResourceSpec|null); - - /** TaskResourceAttributes limits */ - limits?: (flyteidl.admin.ITaskResourceSpec|null); - } - - /** Represents a TaskResourceAttributes. */ - class TaskResourceAttributes implements ITaskResourceAttributes { - - /** - * Constructs a new TaskResourceAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskResourceAttributes); - - /** TaskResourceAttributes defaults. */ - public defaults?: (flyteidl.admin.ITaskResourceSpec|null); - - /** TaskResourceAttributes limits. */ - public limits?: (flyteidl.admin.ITaskResourceSpec|null); - - /** - * Creates a new TaskResourceAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskResourceAttributes instance - */ - public static create(properties?: flyteidl.admin.ITaskResourceAttributes): flyteidl.admin.TaskResourceAttributes; - - /** - * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. - * @param message TaskResourceAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskResourceAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskResourceAttributes - * @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.TaskResourceAttributes; - - /** - * Verifies a TaskResourceAttributes 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 ClusterResourceAttributes. */ - interface IClusterResourceAttributes { - - /** ClusterResourceAttributes attributes */ - attributes?: ({ [k: string]: string }|null); - } - - /** Represents a ClusterResourceAttributes. */ - class ClusterResourceAttributes implements IClusterResourceAttributes { - - /** - * Constructs a new ClusterResourceAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IClusterResourceAttributes); - - /** ClusterResourceAttributes attributes. */ - public attributes: { [k: string]: string }; - - /** - * Creates a new ClusterResourceAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ClusterResourceAttributes instance - */ - public static create(properties?: flyteidl.admin.IClusterResourceAttributes): flyteidl.admin.ClusterResourceAttributes; - - /** - * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. - * @param message ClusterResourceAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IClusterResourceAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ClusterResourceAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ClusterResourceAttributes - * @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.ClusterResourceAttributes; - - /** - * Verifies a ClusterResourceAttributes 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 an ExecutionQueueAttributes. */ - interface IExecutionQueueAttributes { - - /** ExecutionQueueAttributes tags */ - tags?: (string[]|null); - } - - /** Represents an ExecutionQueueAttributes. */ - class ExecutionQueueAttributes implements IExecutionQueueAttributes { - - /** - * Constructs a new ExecutionQueueAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionQueueAttributes); - - /** ExecutionQueueAttributes tags. */ - public tags: string[]; - - /** - * Creates a new ExecutionQueueAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionQueueAttributes instance - */ - public static create(properties?: flyteidl.admin.IExecutionQueueAttributes): flyteidl.admin.ExecutionQueueAttributes; - - /** - * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. - * @param message ExecutionQueueAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionQueueAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionQueueAttributes - * @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.ExecutionQueueAttributes; - - /** - * Verifies an ExecutionQueueAttributes 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 an ExecutionClusterLabel. */ - interface IExecutionClusterLabel { - - /** ExecutionClusterLabel value */ - value?: (string|null); - } - - /** Represents an ExecutionClusterLabel. */ - class ExecutionClusterLabel implements IExecutionClusterLabel { - - /** - * Constructs a new ExecutionClusterLabel. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IExecutionClusterLabel); - - /** ExecutionClusterLabel value. */ - public value: string; - - /** - * Creates a new ExecutionClusterLabel instance using the specified properties. - * @param [properties] Properties to set - * @returns ExecutionClusterLabel instance - */ - public static create(properties?: flyteidl.admin.IExecutionClusterLabel): flyteidl.admin.ExecutionClusterLabel; - - /** - * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. - * @param message ExecutionClusterLabel message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IExecutionClusterLabel, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExecutionClusterLabel message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExecutionClusterLabel - * @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.ExecutionClusterLabel; - - /** - * Verifies an ExecutionClusterLabel 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 PluginOverride. */ - interface IPluginOverride { - - /** PluginOverride taskType */ - taskType?: (string|null); - - /** PluginOverride pluginId */ - pluginId?: (string[]|null); - - /** PluginOverride missingPluginBehavior */ - missingPluginBehavior?: (flyteidl.admin.PluginOverride.MissingPluginBehavior|null); - } - - /** Represents a PluginOverride. */ - class PluginOverride implements IPluginOverride { - - /** - * Constructs a new PluginOverride. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPluginOverride); - - /** PluginOverride taskType. */ - public taskType: string; - - /** PluginOverride pluginId. */ - public pluginId: string[]; - - /** PluginOverride missingPluginBehavior. */ - public missingPluginBehavior: flyteidl.admin.PluginOverride.MissingPluginBehavior; - - /** - * Creates a new PluginOverride instance using the specified properties. - * @param [properties] Properties to set - * @returns PluginOverride instance - */ - public static create(properties?: flyteidl.admin.IPluginOverride): flyteidl.admin.PluginOverride; - - /** - * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. - * @param message PluginOverride message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPluginOverride, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PluginOverride message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PluginOverride - * @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.PluginOverride; - - /** - * Verifies a PluginOverride 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); - } - - namespace PluginOverride { - - /** MissingPluginBehavior enum. */ - enum MissingPluginBehavior { - FAIL = 0, - USE_DEFAULT = 1 - } - } - - /** Properties of a PluginOverrides. */ - interface IPluginOverrides { - - /** PluginOverrides overrides */ - overrides?: (flyteidl.admin.IPluginOverride[]|null); - } - - /** Represents a PluginOverrides. */ - class PluginOverrides implements IPluginOverrides { - - /** - * Constructs a new PluginOverrides. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IPluginOverrides); - - /** PluginOverrides overrides. */ - public overrides: flyteidl.admin.IPluginOverride[]; - - /** - * Creates a new PluginOverrides instance using the specified properties. - * @param [properties] Properties to set - * @returns PluginOverrides instance - */ - public static create(properties?: flyteidl.admin.IPluginOverrides): flyteidl.admin.PluginOverrides; - - /** - * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. - * @param message PluginOverrides message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IPluginOverrides, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PluginOverrides message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PluginOverrides - * @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.PluginOverrides; - - /** - * Verifies a PluginOverrides 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 WorkflowExecutionConfig. */ - interface IWorkflowExecutionConfig { - - /** WorkflowExecutionConfig maxParallelism */ - maxParallelism?: (number|null); - - /** WorkflowExecutionConfig securityContext */ - securityContext?: (flyteidl.core.ISecurityContext|null); - - /** WorkflowExecutionConfig rawOutputDataConfig */ - rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** WorkflowExecutionConfig labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** WorkflowExecutionConfig annotations */ - annotations?: (flyteidl.admin.IAnnotations|null); - - /** WorkflowExecutionConfig interruptible */ - interruptible?: (google.protobuf.IBoolValue|null); - - /** WorkflowExecutionConfig overwriteCache */ - overwriteCache?: (boolean|null); - - /** WorkflowExecutionConfig envs */ - envs?: (flyteidl.admin.IEnvs|null); - } - - /** Represents a WorkflowExecutionConfig. */ - class WorkflowExecutionConfig implements IWorkflowExecutionConfig { - - /** - * Constructs a new WorkflowExecutionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowExecutionConfig); - - /** WorkflowExecutionConfig maxParallelism. */ - public maxParallelism: number; - - /** WorkflowExecutionConfig securityContext. */ - public securityContext?: (flyteidl.core.ISecurityContext|null); - - /** WorkflowExecutionConfig rawOutputDataConfig. */ - public rawOutputDataConfig?: (flyteidl.admin.IRawOutputDataConfig|null); - - /** WorkflowExecutionConfig labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** WorkflowExecutionConfig annotations. */ - public annotations?: (flyteidl.admin.IAnnotations|null); - - /** WorkflowExecutionConfig interruptible. */ - public interruptible?: (google.protobuf.IBoolValue|null); - - /** WorkflowExecutionConfig overwriteCache. */ - public overwriteCache: boolean; - - /** WorkflowExecutionConfig envs. */ - public envs?: (flyteidl.admin.IEnvs|null); - - /** - * Creates a new WorkflowExecutionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowExecutionConfig instance - */ - public static create(properties?: flyteidl.admin.IWorkflowExecutionConfig): flyteidl.admin.WorkflowExecutionConfig; - - /** - * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. - * @param message WorkflowExecutionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowExecutionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowExecutionConfig - * @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.WorkflowExecutionConfig; - - /** - * Verifies a WorkflowExecutionConfig 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 MatchingAttributes. */ - interface IMatchingAttributes { - - /** MatchingAttributes taskResourceAttributes */ - taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); - - /** MatchingAttributes clusterResourceAttributes */ - clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); - - /** MatchingAttributes executionQueueAttributes */ - executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); - - /** MatchingAttributes executionClusterLabel */ - executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); - - /** MatchingAttributes qualityOfService */ - qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** MatchingAttributes pluginOverrides */ - pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); - - /** MatchingAttributes workflowExecutionConfig */ - workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); - - /** MatchingAttributes clusterAssignment */ - clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - } - - /** Represents a MatchingAttributes. */ - class MatchingAttributes implements IMatchingAttributes { - - /** - * Constructs a new MatchingAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IMatchingAttributes); - - /** MatchingAttributes taskResourceAttributes. */ - public taskResourceAttributes?: (flyteidl.admin.ITaskResourceAttributes|null); - - /** MatchingAttributes clusterResourceAttributes. */ - public clusterResourceAttributes?: (flyteidl.admin.IClusterResourceAttributes|null); - - /** MatchingAttributes executionQueueAttributes. */ - public executionQueueAttributes?: (flyteidl.admin.IExecutionQueueAttributes|null); - - /** MatchingAttributes executionClusterLabel. */ - public executionClusterLabel?: (flyteidl.admin.IExecutionClusterLabel|null); - - /** MatchingAttributes qualityOfService. */ - public qualityOfService?: (flyteidl.core.IQualityOfService|null); - - /** MatchingAttributes pluginOverrides. */ - public pluginOverrides?: (flyteidl.admin.IPluginOverrides|null); - - /** MatchingAttributes workflowExecutionConfig. */ - public workflowExecutionConfig?: (flyteidl.admin.IWorkflowExecutionConfig|null); - - /** MatchingAttributes clusterAssignment. */ - public clusterAssignment?: (flyteidl.admin.IClusterAssignment|null); - - /** MatchingAttributes target. */ - public target?: ("taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"); - - /** - * Creates a new MatchingAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns MatchingAttributes instance - */ - public static create(properties?: flyteidl.admin.IMatchingAttributes): flyteidl.admin.MatchingAttributes; - - /** - * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. - * @param message MatchingAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IMatchingAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MatchingAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MatchingAttributes - * @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.MatchingAttributes; - - /** - * Verifies a MatchingAttributes 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 MatchableAttributesConfiguration. */ - interface IMatchableAttributesConfiguration { - - /** MatchableAttributesConfiguration attributes */ - attributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** MatchableAttributesConfiguration domain */ - domain?: (string|null); - - /** MatchableAttributesConfiguration project */ - project?: (string|null); - - /** MatchableAttributesConfiguration workflow */ - workflow?: (string|null); - - /** MatchableAttributesConfiguration launchPlan */ - launchPlan?: (string|null); - } - - /** Represents a MatchableAttributesConfiguration. */ - class MatchableAttributesConfiguration implements IMatchableAttributesConfiguration { - - /** - * Constructs a new MatchableAttributesConfiguration. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IMatchableAttributesConfiguration); - - /** MatchableAttributesConfiguration attributes. */ - public attributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** MatchableAttributesConfiguration domain. */ - public domain: string; - - /** MatchableAttributesConfiguration project. */ - public project: string; - - /** MatchableAttributesConfiguration workflow. */ - public workflow: string; - - /** MatchableAttributesConfiguration launchPlan. */ - public launchPlan: string; - - /** - * Creates a new MatchableAttributesConfiguration instance using the specified properties. - * @param [properties] Properties to set - * @returns MatchableAttributesConfiguration instance - */ - public static create(properties?: flyteidl.admin.IMatchableAttributesConfiguration): flyteidl.admin.MatchableAttributesConfiguration; - - /** - * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. - * @param message MatchableAttributesConfiguration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IMatchableAttributesConfiguration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MatchableAttributesConfiguration - * @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.MatchableAttributesConfiguration; - - /** - * Verifies a MatchableAttributesConfiguration 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 ListMatchableAttributesRequest. */ - interface IListMatchableAttributesRequest { - - /** ListMatchableAttributesRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a ListMatchableAttributesRequest. */ - class ListMatchableAttributesRequest implements IListMatchableAttributesRequest { - - /** - * Constructs a new ListMatchableAttributesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListMatchableAttributesRequest); - - /** ListMatchableAttributesRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new ListMatchableAttributesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMatchableAttributesRequest instance - */ - public static create(properties?: flyteidl.admin.IListMatchableAttributesRequest): flyteidl.admin.ListMatchableAttributesRequest; - - /** - * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. - * @param message ListMatchableAttributesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListMatchableAttributesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMatchableAttributesRequest - * @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.ListMatchableAttributesRequest; - - /** - * Verifies a ListMatchableAttributesRequest 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 ListMatchableAttributesResponse. */ - interface IListMatchableAttributesResponse { - - /** ListMatchableAttributesResponse configurations */ - configurations?: (flyteidl.admin.IMatchableAttributesConfiguration[]|null); - } - - /** Represents a ListMatchableAttributesResponse. */ - class ListMatchableAttributesResponse implements IListMatchableAttributesResponse { - - /** - * Constructs a new ListMatchableAttributesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IListMatchableAttributesResponse); - - /** ListMatchableAttributesResponse configurations. */ - public configurations: flyteidl.admin.IMatchableAttributesConfiguration[]; - - /** - * Creates a new ListMatchableAttributesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListMatchableAttributesResponse instance - */ - public static create(properties?: flyteidl.admin.IListMatchableAttributesResponse): flyteidl.admin.ListMatchableAttributesResponse; - - /** - * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. - * @param message ListMatchableAttributesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IListMatchableAttributesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListMatchableAttributesResponse - * @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.ListMatchableAttributesResponse; - - /** - * Verifies a ListMatchableAttributesResponse 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 NodeExecutionGetRequest. */ - interface INodeExecutionGetRequest { - - /** NodeExecutionGetRequest id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a NodeExecutionGetRequest. */ - class NodeExecutionGetRequest implements INodeExecutionGetRequest { - - /** - * Constructs a new NodeExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetRequest); - - /** NodeExecutionGetRequest id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetRequest): flyteidl.admin.NodeExecutionGetRequest; - - /** - * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. - * @param message NodeExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetRequest - * @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.NodeExecutionGetRequest; - - /** - * Verifies a NodeExecutionGetRequest 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 NodeExecutionListRequest. */ - interface INodeExecutionListRequest { - - /** NodeExecutionListRequest workflowExecutionId */ - workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** NodeExecutionListRequest limit */ - limit?: (number|null); - - /** NodeExecutionListRequest token */ - token?: (string|null); - - /** NodeExecutionListRequest filters */ - filters?: (string|null); - - /** NodeExecutionListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - - /** NodeExecutionListRequest uniqueParentId */ - uniqueParentId?: (string|null); - } - - /** Represents a NodeExecutionListRequest. */ - class NodeExecutionListRequest implements INodeExecutionListRequest { - - /** - * Constructs a new NodeExecutionListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionListRequest); - - /** NodeExecutionListRequest workflowExecutionId. */ - public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** NodeExecutionListRequest limit. */ - public limit: number; - - /** NodeExecutionListRequest token. */ - public token: string; - - /** NodeExecutionListRequest filters. */ - public filters: string; - - /** NodeExecutionListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** NodeExecutionListRequest uniqueParentId. */ - public uniqueParentId: string; - - /** - * Creates a new NodeExecutionListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionListRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionListRequest): flyteidl.admin.NodeExecutionListRequest; - - /** - * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. - * @param message NodeExecutionListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionListRequest - * @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.NodeExecutionListRequest; - - /** - * Verifies a NodeExecutionListRequest 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 NodeExecutionForTaskListRequest. */ - interface INodeExecutionForTaskListRequest { - - /** NodeExecutionForTaskListRequest taskExecutionId */ - taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** NodeExecutionForTaskListRequest limit */ - limit?: (number|null); - - /** NodeExecutionForTaskListRequest token */ - token?: (string|null); - - /** NodeExecutionForTaskListRequest filters */ - filters?: (string|null); - - /** NodeExecutionForTaskListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a NodeExecutionForTaskListRequest. */ - class NodeExecutionForTaskListRequest implements INodeExecutionForTaskListRequest { - - /** - * Constructs a new NodeExecutionForTaskListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionForTaskListRequest); - - /** NodeExecutionForTaskListRequest taskExecutionId. */ - public taskExecutionId?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** NodeExecutionForTaskListRequest limit. */ - public limit: number; - - /** NodeExecutionForTaskListRequest token. */ - public token: string; - - /** NodeExecutionForTaskListRequest filters. */ - public filters: string; - - /** NodeExecutionForTaskListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionForTaskListRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionForTaskListRequest): flyteidl.admin.NodeExecutionForTaskListRequest; - - /** - * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. - * @param message NodeExecutionForTaskListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionForTaskListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionForTaskListRequest - * @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.NodeExecutionForTaskListRequest; - - /** - * Verifies a NodeExecutionForTaskListRequest 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 NodeExecution. */ - interface INodeExecution { - - /** NodeExecution id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecution inputUri */ - inputUri?: (string|null); - - /** NodeExecution closure */ - closure?: (flyteidl.admin.INodeExecutionClosure|null); - - /** NodeExecution metadata */ - metadata?: (flyteidl.admin.INodeExecutionMetaData|null); - } - - /** Represents a NodeExecution. */ - class NodeExecution implements INodeExecution { - - /** - * Constructs a new NodeExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecution); - - /** NodeExecution id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** NodeExecution inputUri. */ - public inputUri: string; - - /** NodeExecution closure. */ - public closure?: (flyteidl.admin.INodeExecutionClosure|null); - - /** NodeExecution metadata. */ - public metadata?: (flyteidl.admin.INodeExecutionMetaData|null); - - /** - * Creates a new NodeExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecution instance - */ - public static create(properties?: flyteidl.admin.INodeExecution): flyteidl.admin.NodeExecution; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. - * @param message NodeExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecution - * @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.NodeExecution; - - /** - * Verifies a NodeExecution 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 NodeExecutionMetaData. */ - interface INodeExecutionMetaData { - - /** NodeExecutionMetaData retryGroup */ - retryGroup?: (string|null); - - /** NodeExecutionMetaData isParentNode */ - isParentNode?: (boolean|null); - - /** NodeExecutionMetaData specNodeId */ - specNodeId?: (string|null); - - /** NodeExecutionMetaData isDynamic */ - isDynamic?: (boolean|null); - - /** NodeExecutionMetaData isArray */ - isArray?: (boolean|null); - } - - /** Represents a NodeExecutionMetaData. */ - class NodeExecutionMetaData implements INodeExecutionMetaData { - - /** - * Constructs a new NodeExecutionMetaData. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionMetaData); - - /** NodeExecutionMetaData retryGroup. */ - public retryGroup: string; - - /** NodeExecutionMetaData isParentNode. */ - public isParentNode: boolean; - - /** NodeExecutionMetaData specNodeId. */ - public specNodeId: string; - - /** NodeExecutionMetaData isDynamic. */ - public isDynamic: boolean; - - /** NodeExecutionMetaData isArray. */ - public isArray: boolean; - - /** - * Creates a new NodeExecutionMetaData instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionMetaData instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionMetaData): flyteidl.admin.NodeExecutionMetaData; - - /** - * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. - * @param message NodeExecutionMetaData message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionMetaData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionMetaData message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionMetaData - * @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.NodeExecutionMetaData; - - /** - * Verifies a NodeExecutionMetaData 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 NodeExecutionList. */ - interface INodeExecutionList { - - /** NodeExecutionList nodeExecutions */ - nodeExecutions?: (flyteidl.admin.INodeExecution[]|null); - - /** NodeExecutionList token */ - token?: (string|null); - } - - /** Represents a NodeExecutionList. */ - class NodeExecutionList implements INodeExecutionList { - - /** - * Constructs a new NodeExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionList); - - /** NodeExecutionList nodeExecutions. */ - public nodeExecutions: flyteidl.admin.INodeExecution[]; - - /** NodeExecutionList token. */ - public token: string; - - /** - * Creates a new NodeExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionList instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionList): flyteidl.admin.NodeExecutionList; - - /** - * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. - * @param message NodeExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionList - * @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.NodeExecutionList; - - /** - * Verifies a NodeExecutionList 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 NodeExecutionClosure. */ - interface INodeExecutionClosure { - - /** NodeExecutionClosure outputUri */ - outputUri?: (string|null); - - /** NodeExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionClosure phase */ - phase?: (flyteidl.core.NodeExecution.Phase|null); - - /** NodeExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** NodeExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure workflowNodeMetadata */ - workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); - - /** NodeExecutionClosure taskNodeMetadata */ - taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); - - /** NodeExecutionClosure deckUri */ - deckUri?: (string|null); - - /** NodeExecutionClosure dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a NodeExecutionClosure. */ - class NodeExecutionClosure implements INodeExecutionClosure { - - /** - * Constructs a new NodeExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionClosure); - - /** NodeExecutionClosure outputUri. */ - public outputUri: string; - - /** NodeExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** NodeExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionClosure phase. */ - public phase: flyteidl.core.NodeExecution.Phase; - - /** NodeExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** NodeExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** NodeExecutionClosure workflowNodeMetadata. */ - public workflowNodeMetadata?: (flyteidl.admin.IWorkflowNodeMetadata|null); - - /** NodeExecutionClosure taskNodeMetadata. */ - public taskNodeMetadata?: (flyteidl.admin.ITaskNodeMetadata|null); - - /** NodeExecutionClosure deckUri. */ - public deckUri: string; - - /** NodeExecutionClosure dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** NodeExecutionClosure outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** NodeExecutionClosure targetMetadata. */ - public targetMetadata?: ("workflowNodeMetadata"|"taskNodeMetadata"); - - /** - * Creates a new NodeExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionClosure): flyteidl.admin.NodeExecutionClosure; - - /** - * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. - * @param message NodeExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionClosure - * @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.NodeExecutionClosure; - - /** - * Verifies a NodeExecutionClosure 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 WorkflowNodeMetadata. */ - interface IWorkflowNodeMetadata { - - /** WorkflowNodeMetadata executionId */ - executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - } - - /** Represents a WorkflowNodeMetadata. */ - class WorkflowNodeMetadata implements IWorkflowNodeMetadata { - - /** - * Constructs a new WorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowNodeMetadata); - - /** WorkflowNodeMetadata executionId. */ - public executionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.IWorkflowNodeMetadata): flyteidl.admin.WorkflowNodeMetadata; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. - * @param message WorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowNodeMetadata - * @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.WorkflowNodeMetadata; - - /** - * Verifies a WorkflowNodeMetadata 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 TaskNodeMetadata. */ - interface ITaskNodeMetadata { - - /** TaskNodeMetadata cacheStatus */ - cacheStatus?: (flyteidl.core.CatalogCacheStatus|null); - - /** TaskNodeMetadata catalogKey */ - catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata checkpointUri */ - checkpointUri?: (string|null); - } - - /** Represents a TaskNodeMetadata. */ - class TaskNodeMetadata implements ITaskNodeMetadata { - - /** - * Constructs a new TaskNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskNodeMetadata); - - /** TaskNodeMetadata cacheStatus. */ - public cacheStatus: flyteidl.core.CatalogCacheStatus; - - /** TaskNodeMetadata catalogKey. */ - public catalogKey?: (flyteidl.core.ICatalogMetadata|null); - - /** TaskNodeMetadata checkpointUri. */ - public checkpointUri: string; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.ITaskNodeMetadata): flyteidl.admin.TaskNodeMetadata; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. - * @param message TaskNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskNodeMetadata - * @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.TaskNodeMetadata; - - /** - * Verifies a TaskNodeMetadata 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 DynamicWorkflowNodeMetadata. */ - interface IDynamicWorkflowNodeMetadata { - - /** DynamicWorkflowNodeMetadata id */ - id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri */ - dynamicJobSpecUri?: (string|null); - } - - /** Represents a DynamicWorkflowNodeMetadata. */ - class DynamicWorkflowNodeMetadata implements IDynamicWorkflowNodeMetadata { - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata); - - /** DynamicWorkflowNodeMetadata id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** DynamicWorkflowNodeMetadata compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** DynamicWorkflowNodeMetadata dynamicJobSpecUri. */ - public dynamicJobSpecUri: string; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DynamicWorkflowNodeMetadata instance - */ - public static create(properties?: flyteidl.admin.IDynamicWorkflowNodeMetadata): flyteidl.admin.DynamicWorkflowNodeMetadata; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @param message DynamicWorkflowNodeMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDynamicWorkflowNodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DynamicWorkflowNodeMetadata - * @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.DynamicWorkflowNodeMetadata; - - /** - * Verifies a DynamicWorkflowNodeMetadata 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 NodeExecutionGetDataRequest. */ - interface INodeExecutionGetDataRequest { - - /** NodeExecutionGetDataRequest id */ - id?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a NodeExecutionGetDataRequest. */ - class NodeExecutionGetDataRequest implements INodeExecutionGetDataRequest { - - /** - * Constructs a new NodeExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetDataRequest); - - /** NodeExecutionGetDataRequest id. */ - public id?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** - * Creates a new NodeExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetDataRequest): flyteidl.admin.NodeExecutionGetDataRequest; - - /** - * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. - * @param message NodeExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetDataRequest - * @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.NodeExecutionGetDataRequest; - - /** - * Verifies a NodeExecutionGetDataRequest 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 NodeExecutionGetDataResponse. */ - interface INodeExecutionGetDataResponse { - - /** NodeExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse dynamicWorkflow */ - dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); - - /** NodeExecutionGetDataResponse flyteUrls */ - flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - } - - /** Represents a NodeExecutionGetDataResponse. */ - class NodeExecutionGetDataResponse implements INodeExecutionGetDataResponse { - - /** - * Constructs a new NodeExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.INodeExecutionGetDataResponse); - - /** NodeExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** NodeExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** NodeExecutionGetDataResponse dynamicWorkflow. */ - public dynamicWorkflow?: (flyteidl.admin.IDynamicWorkflowNodeMetadata|null); - - /** NodeExecutionGetDataResponse flyteUrls. */ - public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - - /** - * Creates a new NodeExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns NodeExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.INodeExecutionGetDataResponse): flyteidl.admin.NodeExecutionGetDataResponse; - - /** - * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. - * @param message NodeExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.INodeExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NodeExecutionGetDataResponse - * @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.NodeExecutionGetDataResponse; - - /** - * Verifies a NodeExecutionGetDataResponse 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 an EmailMessage. */ - interface IEmailMessage { - - /** EmailMessage recipientsEmail */ - recipientsEmail?: (string[]|null); - - /** EmailMessage senderEmail */ - senderEmail?: (string|null); - - /** EmailMessage subjectLine */ - subjectLine?: (string|null); - - /** EmailMessage body */ - body?: (string|null); - } - - /** Represents an EmailMessage. */ - class EmailMessage implements IEmailMessage { - - /** - * Constructs a new EmailMessage. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IEmailMessage); - - /** EmailMessage recipientsEmail. */ - public recipientsEmail: string[]; - - /** EmailMessage senderEmail. */ - public senderEmail: string; - - /** EmailMessage subjectLine. */ - public subjectLine: string; - - /** EmailMessage body. */ - public body: string; - - /** - * Creates a new EmailMessage instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailMessage instance - */ - public static create(properties?: flyteidl.admin.IEmailMessage): flyteidl.admin.EmailMessage; - - /** - * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. - * @param message EmailMessage message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IEmailMessage, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmailMessage message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailMessage - * @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.EmailMessage; - - /** - * Verifies an EmailMessage 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 Domain. */ - interface IDomain { - - /** Domain id */ - id?: (string|null); - - /** Domain name */ - name?: (string|null); - } - - /** Represents a Domain. */ - class Domain implements IDomain { - - /** - * Constructs a new Domain. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IDomain); - - /** Domain id. */ - public id: string; - - /** Domain name. */ - public name: string; - - /** - * Creates a new Domain instance using the specified properties. - * @param [properties] Properties to set - * @returns Domain instance - */ - public static create(properties?: flyteidl.admin.IDomain): flyteidl.admin.Domain; - - /** - * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. - * @param message Domain message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IDomain, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Domain message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Domain - * @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.Domain; - - /** - * Verifies a Domain 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 Project. */ - interface IProject { - - /** Project id */ - id?: (string|null); - - /** Project name */ - name?: (string|null); - - /** Project domains */ - domains?: (flyteidl.admin.IDomain[]|null); - - /** Project description */ - description?: (string|null); - - /** Project labels */ - labels?: (flyteidl.admin.ILabels|null); - - /** Project state */ - state?: (flyteidl.admin.Project.ProjectState|null); - } - - /** Represents a Project. */ - class Project implements IProject { - - /** - * Constructs a new Project. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProject); - - /** Project id. */ - public id: string; - - /** Project name. */ - public name: string; - - /** Project domains. */ - public domains: flyteidl.admin.IDomain[]; - - /** Project description. */ - public description: string; - - /** Project labels. */ - public labels?: (flyteidl.admin.ILabels|null); - - /** Project state. */ - public state: flyteidl.admin.Project.ProjectState; - - /** - * Creates a new Project instance using the specified properties. - * @param [properties] Properties to set - * @returns Project instance - */ - public static create(properties?: flyteidl.admin.IProject): flyteidl.admin.Project; - - /** - * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. - * @param message Project message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProject, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Project message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Project - * @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.Project; - - /** - * Verifies a Project 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); - } - - namespace Project { - - /** ProjectState enum. */ - enum ProjectState { - ACTIVE = 0, - ARCHIVED = 1, - SYSTEM_GENERATED = 2 - } - } - - /** Properties of a Projects. */ - interface IProjects { - - /** Projects projects */ - projects?: (flyteidl.admin.IProject[]|null); - - /** Projects token */ - token?: (string|null); - } - - /** Represents a Projects. */ - class Projects implements IProjects { - - /** - * Constructs a new Projects. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjects); - - /** Projects projects. */ - public projects: flyteidl.admin.IProject[]; - - /** Projects token. */ - public token: string; - - /** - * Creates a new Projects instance using the specified properties. - * @param [properties] Properties to set - * @returns Projects instance - */ - public static create(properties?: flyteidl.admin.IProjects): flyteidl.admin.Projects; - - /** - * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. - * @param message Projects message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjects, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Projects message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Projects - * @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.Projects; - - /** - * Verifies a Projects 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 ProjectListRequest. */ - interface IProjectListRequest { - - /** ProjectListRequest limit */ - limit?: (number|null); - - /** ProjectListRequest token */ - token?: (string|null); - - /** ProjectListRequest filters */ - filters?: (string|null); - - /** ProjectListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a ProjectListRequest. */ - class ProjectListRequest implements IProjectListRequest { - - /** - * Constructs a new ProjectListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectListRequest); - - /** ProjectListRequest limit. */ - public limit: number; - - /** ProjectListRequest token. */ - public token: string; - - /** ProjectListRequest filters. */ - public filters: string; - - /** ProjectListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new ProjectListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectListRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectListRequest): flyteidl.admin.ProjectListRequest; - - /** - * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. - * @param message ProjectListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectListRequest - * @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.ProjectListRequest; - - /** - * Verifies a ProjectListRequest 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 ProjectRegisterRequest. */ - interface IProjectRegisterRequest { - - /** ProjectRegisterRequest project */ - project?: (flyteidl.admin.IProject|null); - } - - /** Represents a ProjectRegisterRequest. */ - class ProjectRegisterRequest implements IProjectRegisterRequest { - - /** - * Constructs a new ProjectRegisterRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectRegisterRequest); - - /** ProjectRegisterRequest project. */ - public project?: (flyteidl.admin.IProject|null); - - /** - * Creates a new ProjectRegisterRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectRegisterRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectRegisterRequest): flyteidl.admin.ProjectRegisterRequest; - - /** - * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. - * @param message ProjectRegisterRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectRegisterRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectRegisterRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectRegisterRequest - * @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.ProjectRegisterRequest; - - /** - * Verifies a ProjectRegisterRequest 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 ProjectRegisterResponse. */ - interface IProjectRegisterResponse { - } - - /** Represents a ProjectRegisterResponse. */ - class ProjectRegisterResponse implements IProjectRegisterResponse { - - /** - * Constructs a new ProjectRegisterResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectRegisterResponse); - - /** - * Creates a new ProjectRegisterResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectRegisterResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectRegisterResponse): flyteidl.admin.ProjectRegisterResponse; - - /** - * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. - * @param message ProjectRegisterResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectRegisterResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectRegisterResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectRegisterResponse - * @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.ProjectRegisterResponse; - - /** - * Verifies a ProjectRegisterResponse 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 ProjectUpdateResponse. */ - interface IProjectUpdateResponse { - } - - /** Represents a ProjectUpdateResponse. */ - class ProjectUpdateResponse implements IProjectUpdateResponse { - - /** - * Constructs a new ProjectUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectUpdateResponse); - - /** - * Creates a new ProjectUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectUpdateResponse): flyteidl.admin.ProjectUpdateResponse; - - /** - * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. - * @param message ProjectUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectUpdateResponse - * @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.ProjectUpdateResponse; - - /** - * Verifies a ProjectUpdateResponse 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 ProjectAttributes. */ - interface IProjectAttributes { - - /** ProjectAttributes project */ - project?: (string|null); - - /** ProjectAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - } - - /** Represents a ProjectAttributes. */ - class ProjectAttributes implements IProjectAttributes { - - /** - * Constructs a new ProjectAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributes); - - /** ProjectAttributes project. */ - public project: string; - - /** ProjectAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** - * Creates a new ProjectAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributes instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributes): flyteidl.admin.ProjectAttributes; - - /** - * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. - * @param message ProjectAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributes - * @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.ProjectAttributes; - - /** - * Verifies a ProjectAttributes 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 ProjectAttributesUpdateRequest. */ - interface IProjectAttributesUpdateRequest { - - /** ProjectAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IProjectAttributes|null); - } - - /** Represents a ProjectAttributesUpdateRequest. */ - class ProjectAttributesUpdateRequest implements IProjectAttributesUpdateRequest { - - /** - * Constructs a new ProjectAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesUpdateRequest); - - /** ProjectAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IProjectAttributes|null); - - /** - * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesUpdateRequest): flyteidl.admin.ProjectAttributesUpdateRequest; - - /** - * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. - * @param message ProjectAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesUpdateRequest - * @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.ProjectAttributesUpdateRequest; - - /** - * Verifies a ProjectAttributesUpdateRequest 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 ProjectAttributesUpdateResponse. */ - interface IProjectAttributesUpdateResponse { - } - - /** Represents a ProjectAttributesUpdateResponse. */ - class ProjectAttributesUpdateResponse implements IProjectAttributesUpdateResponse { - - /** - * Constructs a new ProjectAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesUpdateResponse); - - /** - * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesUpdateResponse): flyteidl.admin.ProjectAttributesUpdateResponse; - - /** - * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. - * @param message ProjectAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesUpdateResponse - * @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.ProjectAttributesUpdateResponse; - - /** - * Verifies a ProjectAttributesUpdateResponse 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 ProjectAttributesGetRequest. */ - interface IProjectAttributesGetRequest { - - /** ProjectAttributesGetRequest project */ - project?: (string|null); - - /** ProjectAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a ProjectAttributesGetRequest. */ - class ProjectAttributesGetRequest implements IProjectAttributesGetRequest { - - /** - * Constructs a new ProjectAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesGetRequest); - - /** ProjectAttributesGetRequest project. */ - public project: string; - - /** ProjectAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new ProjectAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesGetRequest): flyteidl.admin.ProjectAttributesGetRequest; - - /** - * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. - * @param message ProjectAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesGetRequest - * @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.ProjectAttributesGetRequest; - - /** - * Verifies a ProjectAttributesGetRequest 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 ProjectAttributesGetResponse. */ - interface IProjectAttributesGetResponse { - - /** ProjectAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IProjectAttributes|null); - } - - /** Represents a ProjectAttributesGetResponse. */ - class ProjectAttributesGetResponse implements IProjectAttributesGetResponse { - - /** - * Constructs a new ProjectAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesGetResponse); - - /** ProjectAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IProjectAttributes|null); - - /** - * Creates a new ProjectAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesGetResponse): flyteidl.admin.ProjectAttributesGetResponse; - - /** - * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. - * @param message ProjectAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesGetResponse - * @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.ProjectAttributesGetResponse; - - /** - * Verifies a ProjectAttributesGetResponse 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 ProjectAttributesDeleteRequest. */ - interface IProjectAttributesDeleteRequest { - - /** ProjectAttributesDeleteRequest project */ - project?: (string|null); - - /** ProjectAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a ProjectAttributesDeleteRequest. */ - class ProjectAttributesDeleteRequest implements IProjectAttributesDeleteRequest { - - /** - * Constructs a new ProjectAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesDeleteRequest); - - /** ProjectAttributesDeleteRequest project. */ - public project: string; - - /** ProjectAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesDeleteRequest): flyteidl.admin.ProjectAttributesDeleteRequest; - - /** - * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. - * @param message ProjectAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesDeleteRequest - * @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.ProjectAttributesDeleteRequest; - - /** - * Verifies a ProjectAttributesDeleteRequest 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 ProjectAttributesDeleteResponse. */ - interface IProjectAttributesDeleteResponse { - } - - /** Represents a ProjectAttributesDeleteResponse. */ - class ProjectAttributesDeleteResponse implements IProjectAttributesDeleteResponse { - - /** - * Constructs a new ProjectAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectAttributesDeleteResponse); - - /** - * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectAttributesDeleteResponse): flyteidl.admin.ProjectAttributesDeleteResponse; - - /** - * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. - * @param message ProjectAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectAttributesDeleteResponse - * @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.ProjectAttributesDeleteResponse; - - /** - * Verifies a ProjectAttributesDeleteResponse 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 ProjectDomainAttributes. */ - interface IProjectDomainAttributes { - - /** ProjectDomainAttributes project */ - project?: (string|null); - - /** ProjectDomainAttributes domain */ - domain?: (string|null); - - /** ProjectDomainAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - } - - /** Represents a ProjectDomainAttributes. */ - class ProjectDomainAttributes implements IProjectDomainAttributes { - - /** - * Constructs a new ProjectDomainAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributes); - - /** ProjectDomainAttributes project. */ - public project: string; - - /** ProjectDomainAttributes domain. */ - public domain: string; - - /** ProjectDomainAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** - * Creates a new ProjectDomainAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributes instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributes): flyteidl.admin.ProjectDomainAttributes; - - /** - * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. - * @param message ProjectDomainAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributes - * @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.ProjectDomainAttributes; - - /** - * Verifies a ProjectDomainAttributes 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 ProjectDomainAttributesUpdateRequest. */ - interface IProjectDomainAttributesUpdateRequest { - - /** ProjectDomainAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - } - - /** Represents a ProjectDomainAttributesUpdateRequest. */ - class ProjectDomainAttributesUpdateRequest implements IProjectDomainAttributesUpdateRequest { - - /** - * Constructs a new ProjectDomainAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest); - - /** ProjectDomainAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - - /** - * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateRequest): flyteidl.admin.ProjectDomainAttributesUpdateRequest; - - /** - * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. - * @param message ProjectDomainAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesUpdateRequest - * @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.ProjectDomainAttributesUpdateRequest; - - /** - * Verifies a ProjectDomainAttributesUpdateRequest 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 ProjectDomainAttributesUpdateResponse. */ - interface IProjectDomainAttributesUpdateResponse { - } - - /** Represents a ProjectDomainAttributesUpdateResponse. */ - class ProjectDomainAttributesUpdateResponse implements IProjectDomainAttributesUpdateResponse { - - /** - * Constructs a new ProjectDomainAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse); - - /** - * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesUpdateResponse): flyteidl.admin.ProjectDomainAttributesUpdateResponse; - - /** - * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. - * @param message ProjectDomainAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesUpdateResponse - * @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.ProjectDomainAttributesUpdateResponse; - - /** - * Verifies a ProjectDomainAttributesUpdateResponse 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 ProjectDomainAttributesGetRequest. */ - interface IProjectDomainAttributesGetRequest { - - /** ProjectDomainAttributesGetRequest project */ - project?: (string|null); - - /** ProjectDomainAttributesGetRequest domain */ - domain?: (string|null); - - /** ProjectDomainAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a ProjectDomainAttributesGetRequest. */ - class ProjectDomainAttributesGetRequest implements IProjectDomainAttributesGetRequest { - - /** - * Constructs a new ProjectDomainAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest); - - /** ProjectDomainAttributesGetRequest project. */ - public project: string; - - /** ProjectDomainAttributesGetRequest domain. */ - public domain: string; - - /** ProjectDomainAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetRequest): flyteidl.admin.ProjectDomainAttributesGetRequest; - - /** - * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. - * @param message ProjectDomainAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesGetRequest - * @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.ProjectDomainAttributesGetRequest; - - /** - * Verifies a ProjectDomainAttributesGetRequest 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 ProjectDomainAttributesGetResponse. */ - interface IProjectDomainAttributesGetResponse { - - /** ProjectDomainAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - } - - /** Represents a ProjectDomainAttributesGetResponse. */ - class ProjectDomainAttributesGetResponse implements IProjectDomainAttributesGetResponse { - - /** - * Constructs a new ProjectDomainAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse); - - /** ProjectDomainAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IProjectDomainAttributes|null); - - /** - * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesGetResponse): flyteidl.admin.ProjectDomainAttributesGetResponse; - - /** - * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. - * @param message ProjectDomainAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesGetResponse - * @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.ProjectDomainAttributesGetResponse; - - /** - * Verifies a ProjectDomainAttributesGetResponse 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 ProjectDomainAttributesDeleteRequest. */ - interface IProjectDomainAttributesDeleteRequest { - - /** ProjectDomainAttributesDeleteRequest project */ - project?: (string|null); - - /** ProjectDomainAttributesDeleteRequest domain */ - domain?: (string|null); - - /** ProjectDomainAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a ProjectDomainAttributesDeleteRequest. */ - class ProjectDomainAttributesDeleteRequest implements IProjectDomainAttributesDeleteRequest { - - /** - * Constructs a new ProjectDomainAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest); - - /** ProjectDomainAttributesDeleteRequest project. */ - public project: string; - - /** ProjectDomainAttributesDeleteRequest domain. */ - public domain: string; - - /** ProjectDomainAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteRequest): flyteidl.admin.ProjectDomainAttributesDeleteRequest; - - /** - * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. - * @param message ProjectDomainAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesDeleteRequest - * @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.ProjectDomainAttributesDeleteRequest; - - /** - * Verifies a ProjectDomainAttributesDeleteRequest 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 ProjectDomainAttributesDeleteResponse. */ - interface IProjectDomainAttributesDeleteResponse { - } - - /** Represents a ProjectDomainAttributesDeleteResponse. */ - class ProjectDomainAttributesDeleteResponse implements IProjectDomainAttributesDeleteResponse { - - /** - * Constructs a new ProjectDomainAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse); - - /** - * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ProjectDomainAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IProjectDomainAttributesDeleteResponse): flyteidl.admin.ProjectDomainAttributesDeleteResponse; - - /** - * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. - * @param message ProjectDomainAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IProjectDomainAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ProjectDomainAttributesDeleteResponse - * @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.ProjectDomainAttributesDeleteResponse; - - /** - * Verifies a ProjectDomainAttributesDeleteResponse 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 SignalGetOrCreateRequest. */ - interface ISignalGetOrCreateRequest { - - /** SignalGetOrCreateRequest id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalGetOrCreateRequest type */ - type?: (flyteidl.core.ILiteralType|null); - } - - /** Represents a SignalGetOrCreateRequest. */ - class SignalGetOrCreateRequest implements ISignalGetOrCreateRequest { - - /** - * Constructs a new SignalGetOrCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalGetOrCreateRequest); - - /** SignalGetOrCreateRequest id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalGetOrCreateRequest type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** - * Creates a new SignalGetOrCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalGetOrCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalGetOrCreateRequest): flyteidl.admin.SignalGetOrCreateRequest; - - /** - * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. - * @param message SignalGetOrCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalGetOrCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalGetOrCreateRequest - * @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.SignalGetOrCreateRequest; - - /** - * Verifies a SignalGetOrCreateRequest 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 SignalListRequest. */ - interface ISignalListRequest { - - /** SignalListRequest workflowExecutionId */ - workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** SignalListRequest limit */ - limit?: (number|null); - - /** SignalListRequest token */ - token?: (string|null); - - /** SignalListRequest filters */ - filters?: (string|null); - - /** SignalListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a SignalListRequest. */ - class SignalListRequest implements ISignalListRequest { - - /** - * Constructs a new SignalListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalListRequest); - - /** SignalListRequest workflowExecutionId. */ - public workflowExecutionId?: (flyteidl.core.IWorkflowExecutionIdentifier|null); - - /** SignalListRequest limit. */ - public limit: number; - - /** SignalListRequest token. */ - public token: string; - - /** SignalListRequest filters. */ - public filters: string; - - /** SignalListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new SignalListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalListRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalListRequest): flyteidl.admin.SignalListRequest; - - /** - * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. - * @param message SignalListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalListRequest - * @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.SignalListRequest; - - /** - * Verifies a SignalListRequest 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 SignalList. */ - interface ISignalList { - - /** SignalList signals */ - signals?: (flyteidl.admin.ISignal[]|null); - - /** SignalList token */ - token?: (string|null); - } - - /** Represents a SignalList. */ - class SignalList implements ISignalList { - - /** - * Constructs a new SignalList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalList); - - /** SignalList signals. */ - public signals: flyteidl.admin.ISignal[]; - - /** SignalList token. */ - public token: string; - - /** - * Creates a new SignalList instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalList instance - */ - public static create(properties?: flyteidl.admin.ISignalList): flyteidl.admin.SignalList; - - /** - * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. - * @param message SignalList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalList - * @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.SignalList; - - /** - * Verifies a SignalList 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 SignalSetRequest. */ - interface ISignalSetRequest { - - /** SignalSetRequest id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalSetRequest value */ - value?: (flyteidl.core.ILiteral|null); - } - - /** Represents a SignalSetRequest. */ - class SignalSetRequest implements ISignalSetRequest { - - /** - * Constructs a new SignalSetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalSetRequest); - - /** SignalSetRequest id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** SignalSetRequest value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** - * Creates a new SignalSetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalSetRequest instance - */ - public static create(properties?: flyteidl.admin.ISignalSetRequest): flyteidl.admin.SignalSetRequest; - - /** - * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. - * @param message SignalSetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalSetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalSetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalSetRequest - * @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.SignalSetRequest; - - /** - * Verifies a SignalSetRequest 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 SignalSetResponse. */ - interface ISignalSetResponse { - } - - /** Represents a SignalSetResponse. */ - class SignalSetResponse implements ISignalSetResponse { - - /** - * Constructs a new SignalSetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignalSetResponse); - - /** - * Creates a new SignalSetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns SignalSetResponse instance - */ - public static create(properties?: flyteidl.admin.ISignalSetResponse): flyteidl.admin.SignalSetResponse; - - /** - * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. - * @param message SignalSetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignalSetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SignalSetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SignalSetResponse - * @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.SignalSetResponse; - - /** - * Verifies a SignalSetResponse 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 Signal. */ - interface ISignal { - - /** Signal id */ - id?: (flyteidl.core.ISignalIdentifier|null); - - /** Signal type */ - type?: (flyteidl.core.ILiteralType|null); - - /** Signal value */ - value?: (flyteidl.core.ILiteral|null); - } - - /** Represents a Signal. */ - class Signal implements ISignal { - - /** - * Constructs a new Signal. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ISignal); - - /** Signal id. */ - public id?: (flyteidl.core.ISignalIdentifier|null); - - /** Signal type. */ - public type?: (flyteidl.core.ILiteralType|null); - - /** Signal value. */ - public value?: (flyteidl.core.ILiteral|null); - - /** - * Creates a new Signal instance using the specified properties. - * @param [properties] Properties to set - * @returns Signal instance - */ - public static create(properties?: flyteidl.admin.ISignal): flyteidl.admin.Signal; - - /** - * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. - * @param message Signal message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ISignal, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Signal message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Signal - * @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.Signal; - - /** - * Verifies a Signal 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 TaskCreateRequest. */ - interface ITaskCreateRequest { - - /** TaskCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** TaskCreateRequest spec */ - spec?: (flyteidl.admin.ITaskSpec|null); - } - - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { - - /** - * Constructs a new TaskCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskCreateRequest); - - /** TaskCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** TaskCreateRequest spec. */ - public spec?: (flyteidl.admin.ITaskSpec|null); - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskCreateRequest): flyteidl.admin.TaskCreateRequest; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. - * @param message TaskCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateRequest - * @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.TaskCreateRequest; - - /** - * Verifies a TaskCreateRequest 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 TaskCreateResponse. */ - interface ITaskCreateResponse { - } - - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { - - /** - * Constructs a new TaskCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskCreateResponse); - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskCreateResponse): flyteidl.admin.TaskCreateResponse; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. - * @param message TaskCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateResponse - * @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.TaskCreateResponse; - - /** - * Verifies a TaskCreateResponse 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 Task. */ - interface ITask { - - /** Task id */ - id?: (flyteidl.core.IIdentifier|null); - - /** Task closure */ - closure?: (flyteidl.admin.ITaskClosure|null); - - /** Task shortDescription */ - shortDescription?: (string|null); - } - - /** Represents a Task. */ - class Task implements ITask { - - /** - * Constructs a new Task. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITask); - - /** Task id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** Task closure. */ - public closure?: (flyteidl.admin.ITaskClosure|null); - - /** Task shortDescription. */ - public shortDescription: string; - - /** - * Creates a new Task instance using the specified properties. - * @param [properties] Properties to set - * @returns Task instance - */ - public static create(properties?: flyteidl.admin.ITask): flyteidl.admin.Task; - - /** - * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. - * @param message Task message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITask, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Task message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Task - * @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.Task; - - /** - * Verifies a Task 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 TaskList. */ - interface ITaskList { - - /** TaskList tasks */ - tasks?: (flyteidl.admin.ITask[]|null); - - /** TaskList token */ - token?: (string|null); - } - - /** Represents a TaskList. */ - class TaskList implements ITaskList { - - /** - * Constructs a new TaskList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskList); - - /** TaskList tasks. */ - public tasks: flyteidl.admin.ITask[]; - - /** TaskList token. */ - public token: string; - - /** - * Creates a new TaskList instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskList instance - */ - public static create(properties?: flyteidl.admin.ITaskList): flyteidl.admin.TaskList; - - /** - * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. - * @param message TaskList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskList - * @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.TaskList; - - /** - * Verifies a TaskList 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 TaskSpec. */ - interface ITaskSpec { - - /** TaskSpec template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskSpec description */ - description?: (flyteidl.admin.IDescriptionEntity|null); - } - - /** Represents a TaskSpec. */ - class TaskSpec implements ITaskSpec { - - /** - * Constructs a new TaskSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskSpec); - - /** TaskSpec template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskSpec description. */ - public description?: (flyteidl.admin.IDescriptionEntity|null); - - /** - * Creates a new TaskSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskSpec instance - */ - public static create(properties?: flyteidl.admin.ITaskSpec): flyteidl.admin.TaskSpec; - - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. - * @param message TaskSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskSpec - * @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.TaskSpec; - - /** - * Verifies a TaskSpec 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 TaskClosure. */ - interface ITaskClosure { - - /** TaskClosure compiledTask */ - compiledTask?: (flyteidl.core.ICompiledTask|null); - - /** TaskClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a TaskClosure. */ - class TaskClosure implements ITaskClosure { - - /** - * Constructs a new TaskClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskClosure); - - /** TaskClosure compiledTask. */ - public compiledTask?: (flyteidl.core.ICompiledTask|null); - - /** TaskClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new TaskClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskClosure instance - */ - public static create(properties?: flyteidl.admin.ITaskClosure): flyteidl.admin.TaskClosure; - - /** - * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. - * @param message TaskClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskClosure - * @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.TaskClosure; - - /** - * Verifies a TaskClosure 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 TaskExecutionGetRequest. */ - interface ITaskExecutionGetRequest { - - /** TaskExecutionGetRequest id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a TaskExecutionGetRequest. */ - class TaskExecutionGetRequest implements ITaskExecutionGetRequest { - - /** - * Constructs a new TaskExecutionGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetRequest); - - /** TaskExecutionGetRequest id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new TaskExecutionGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetRequest): flyteidl.admin.TaskExecutionGetRequest; - - /** - * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. - * @param message TaskExecutionGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetRequest - * @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.TaskExecutionGetRequest; - - /** - * Verifies a TaskExecutionGetRequest 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 TaskExecutionListRequest. */ - interface ITaskExecutionListRequest { - - /** TaskExecutionListRequest nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionListRequest limit */ - limit?: (number|null); - - /** TaskExecutionListRequest token */ - token?: (string|null); - - /** TaskExecutionListRequest filters */ - filters?: (string|null); - - /** TaskExecutionListRequest sortBy */ - sortBy?: (flyteidl.admin.ISort|null); - } - - /** Represents a TaskExecutionListRequest. */ - class TaskExecutionListRequest implements ITaskExecutionListRequest { - - /** - * Constructs a new TaskExecutionListRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionListRequest); - - /** TaskExecutionListRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** TaskExecutionListRequest limit. */ - public limit: number; - - /** TaskExecutionListRequest token. */ - public token: string; - - /** TaskExecutionListRequest filters. */ - public filters: string; - - /** TaskExecutionListRequest sortBy. */ - public sortBy?: (flyteidl.admin.ISort|null); - - /** - * Creates a new TaskExecutionListRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionListRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionListRequest): flyteidl.admin.TaskExecutionListRequest; - - /** - * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. - * @param message TaskExecutionListRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionListRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionListRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionListRequest - * @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.TaskExecutionListRequest; - - /** - * Verifies a TaskExecutionListRequest 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 TaskExecution. */ - interface ITaskExecution { - - /** TaskExecution id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecution inputUri */ - inputUri?: (string|null); - - /** TaskExecution closure */ - closure?: (flyteidl.admin.ITaskExecutionClosure|null); - - /** TaskExecution isParent */ - isParent?: (boolean|null); - } - - /** Represents a TaskExecution. */ - class TaskExecution implements ITaskExecution { - - /** - * Constructs a new TaskExecution. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecution); - - /** TaskExecution id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** TaskExecution inputUri. */ - public inputUri: string; - - /** TaskExecution closure. */ - public closure?: (flyteidl.admin.ITaskExecutionClosure|null); - - /** TaskExecution isParent. */ - public isParent: boolean; - - /** - * Creates a new TaskExecution instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecution instance - */ - public static create(properties?: flyteidl.admin.ITaskExecution): flyteidl.admin.TaskExecution; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. - * @param message TaskExecution message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecution, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecution - * @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.TaskExecution; - - /** - * Verifies a TaskExecution 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 TaskExecutionList. */ - interface ITaskExecutionList { - - /** TaskExecutionList taskExecutions */ - taskExecutions?: (flyteidl.admin.ITaskExecution[]|null); - - /** TaskExecutionList token */ - token?: (string|null); - } - - /** Represents a TaskExecutionList. */ - class TaskExecutionList implements ITaskExecutionList { - - /** - * Constructs a new TaskExecutionList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionList); - - /** TaskExecutionList taskExecutions. */ - public taskExecutions: flyteidl.admin.ITaskExecution[]; - - /** TaskExecutionList token. */ - public token: string; - - /** - * Creates a new TaskExecutionList instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionList instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionList): flyteidl.admin.TaskExecutionList; - - /** - * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. - * @param message TaskExecutionList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionList - * @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.TaskExecutionList; - - /** - * Verifies a TaskExecutionList 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 TaskExecutionClosure. */ - interface ITaskExecutionClosure { - - /** TaskExecutionClosure outputUri */ - outputUri?: (string|null); - - /** TaskExecutionClosure error */ - error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionClosure outputData */ - outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionClosure phase */ - phase?: (flyteidl.core.TaskExecution.Phase|null); - - /** TaskExecutionClosure logs */ - logs?: (flyteidl.core.ITaskLog[]|null); - - /** TaskExecutionClosure startedAt */ - startedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure duration */ - duration?: (google.protobuf.IDuration|null); - - /** TaskExecutionClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure updatedAt */ - updatedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure customInfo */ - customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionClosure reason */ - reason?: (string|null); - - /** TaskExecutionClosure taskType */ - taskType?: (string|null); - - /** TaskExecutionClosure metadata */ - metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionClosure eventVersion */ - eventVersion?: (number|null); - - /** TaskExecutionClosure reasons */ - reasons?: (flyteidl.admin.IReason[]|null); - } - - /** Represents a TaskExecutionClosure. */ - class TaskExecutionClosure implements ITaskExecutionClosure { - - /** - * Constructs a new TaskExecutionClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionClosure); - - /** TaskExecutionClosure outputUri. */ - public outputUri: string; - - /** TaskExecutionClosure error. */ - public error?: (flyteidl.core.IExecutionError|null); - - /** TaskExecutionClosure outputData. */ - public outputData?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionClosure phase. */ - public phase: flyteidl.core.TaskExecution.Phase; - - /** TaskExecutionClosure logs. */ - public logs: flyteidl.core.ITaskLog[]; - - /** TaskExecutionClosure startedAt. */ - public startedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure duration. */ - public duration?: (google.protobuf.IDuration|null); - - /** TaskExecutionClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure updatedAt. */ - public updatedAt?: (google.protobuf.ITimestamp|null); - - /** TaskExecutionClosure customInfo. */ - public customInfo?: (google.protobuf.IStruct|null); - - /** TaskExecutionClosure reason. */ - public reason: string; - - /** TaskExecutionClosure taskType. */ - public taskType: string; - - /** TaskExecutionClosure metadata. */ - public metadata?: (flyteidl.event.ITaskExecutionMetadata|null); - - /** TaskExecutionClosure eventVersion. */ - public eventVersion: number; - - /** TaskExecutionClosure reasons. */ - public reasons: flyteidl.admin.IReason[]; - - /** TaskExecutionClosure outputResult. */ - public outputResult?: ("outputUri"|"error"|"outputData"); - - /** - * Creates a new TaskExecutionClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionClosure instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionClosure): flyteidl.admin.TaskExecutionClosure; - - /** - * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. - * @param message TaskExecutionClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionClosure - * @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.TaskExecutionClosure; - - /** - * Verifies a TaskExecutionClosure 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 Reason. */ - interface IReason { - - /** Reason occurredAt */ - occurredAt?: (google.protobuf.ITimestamp|null); - - /** Reason message */ - message?: (string|null); - } - - /** Represents a Reason. */ - class Reason implements IReason { - - /** - * Constructs a new Reason. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IReason); - - /** Reason occurredAt. */ - public occurredAt?: (google.protobuf.ITimestamp|null); - - /** Reason message. */ - public message: string; - - /** - * Creates a new Reason instance using the specified properties. - * @param [properties] Properties to set - * @returns Reason instance - */ - public static create(properties?: flyteidl.admin.IReason): flyteidl.admin.Reason; - - /** - * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. - * @param message Reason message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IReason, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Reason message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Reason - * @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.Reason; - - /** - * Verifies a Reason 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 TaskExecutionGetDataRequest. */ - interface ITaskExecutionGetDataRequest { - - /** TaskExecutionGetDataRequest id */ - id?: (flyteidl.core.ITaskExecutionIdentifier|null); - } - - /** Represents a TaskExecutionGetDataRequest. */ - class TaskExecutionGetDataRequest implements ITaskExecutionGetDataRequest { - - /** - * Constructs a new TaskExecutionGetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetDataRequest); - - /** TaskExecutionGetDataRequest id. */ - public id?: (flyteidl.core.ITaskExecutionIdentifier|null); - - /** - * Creates a new TaskExecutionGetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetDataRequest instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetDataRequest): flyteidl.admin.TaskExecutionGetDataRequest; - - /** - * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. - * @param message TaskExecutionGetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetDataRequest - * @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.TaskExecutionGetDataRequest; - - /** - * Verifies a TaskExecutionGetDataRequest 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 TaskExecutionGetDataResponse. */ - interface ITaskExecutionGetDataResponse { - - /** TaskExecutionGetDataResponse inputs */ - inputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse outputs */ - outputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse fullInputs */ - fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse fullOutputs */ - fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse flyteUrls */ - flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - } - - /** Represents a TaskExecutionGetDataResponse. */ - class TaskExecutionGetDataResponse implements ITaskExecutionGetDataResponse { - - /** - * Constructs a new TaskExecutionGetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.ITaskExecutionGetDataResponse); - - /** TaskExecutionGetDataResponse inputs. */ - public inputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse outputs. */ - public outputs?: (flyteidl.admin.IUrlBlob|null); - - /** TaskExecutionGetDataResponse fullInputs. */ - public fullInputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse fullOutputs. */ - public fullOutputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskExecutionGetDataResponse flyteUrls. */ - public flyteUrls?: (flyteidl.admin.IFlyteURLs|null); - - /** - * Creates a new TaskExecutionGetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskExecutionGetDataResponse instance - */ - public static create(properties?: flyteidl.admin.ITaskExecutionGetDataResponse): flyteidl.admin.TaskExecutionGetDataResponse; - - /** - * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. - * @param message TaskExecutionGetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.ITaskExecutionGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskExecutionGetDataResponse - * @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.TaskExecutionGetDataResponse; - - /** - * Verifies a TaskExecutionGetDataResponse 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 GetVersionResponse. */ - interface IGetVersionResponse { - - /** GetVersionResponse controlPlaneVersion */ - controlPlaneVersion?: (flyteidl.admin.IVersion|null); - } - - /** Represents a GetVersionResponse. */ - class GetVersionResponse implements IGetVersionResponse { - - /** - * Constructs a new GetVersionResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetVersionResponse); - - /** GetVersionResponse controlPlaneVersion. */ - public controlPlaneVersion?: (flyteidl.admin.IVersion|null); - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionResponse instance - */ - public static create(properties?: flyteidl.admin.IGetVersionResponse): flyteidl.admin.GetVersionResponse; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. - * @param message GetVersionResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetVersionResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionResponse - * @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.GetVersionResponse; - - /** - * Verifies a GetVersionResponse 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 Version. */ - interface IVersion { - - /** Version Build */ - Build?: (string|null); - - /** Version Version */ - Version?: (string|null); - - /** Version BuildTime */ - BuildTime?: (string|null); - } - - /** Represents a Version. */ - class Version implements IVersion { - - /** - * Constructs a new Version. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IVersion); - - /** Version Build. */ - public Build: string; - - /** Version Version. */ - public Version: string; - - /** Version BuildTime. */ - public BuildTime: string; - - /** - * Creates a new Version instance using the specified properties. - * @param [properties] Properties to set - * @returns Version instance - */ - public static create(properties?: flyteidl.admin.IVersion): flyteidl.admin.Version; - - /** - * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. - * @param message Version message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IVersion, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Version message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Version - * @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.Version; - - /** - * Verifies a Version 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 GetVersionRequest. */ - interface IGetVersionRequest { - } - - /** Represents a GetVersionRequest. */ - class GetVersionRequest implements IGetVersionRequest { - - /** - * Constructs a new GetVersionRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IGetVersionRequest); - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetVersionRequest instance - */ - public static create(properties?: flyteidl.admin.IGetVersionRequest): flyteidl.admin.GetVersionRequest; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. - * @param message GetVersionRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IGetVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetVersionRequest - * @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.GetVersionRequest; - - /** - * Verifies a GetVersionRequest 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 WorkflowCreateRequest. */ - interface IWorkflowCreateRequest { - - /** WorkflowCreateRequest id */ - id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowCreateRequest spec */ - spec?: (flyteidl.admin.IWorkflowSpec|null); - } - - /** Represents a WorkflowCreateRequest. */ - class WorkflowCreateRequest implements IWorkflowCreateRequest { - - /** - * Constructs a new WorkflowCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowCreateRequest); - - /** WorkflowCreateRequest id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** WorkflowCreateRequest spec. */ - public spec?: (flyteidl.admin.IWorkflowSpec|null); - - /** - * Creates a new WorkflowCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowCreateRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowCreateRequest): flyteidl.admin.WorkflowCreateRequest; - - /** - * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. - * @param message WorkflowCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowCreateRequest - * @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.WorkflowCreateRequest; - - /** - * Verifies a WorkflowCreateRequest 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 WorkflowCreateResponse. */ - interface IWorkflowCreateResponse { - } - - /** Represents a WorkflowCreateResponse. */ - class WorkflowCreateResponse implements IWorkflowCreateResponse { - - /** - * Constructs a new WorkflowCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowCreateResponse); - - /** - * Creates a new WorkflowCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowCreateResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowCreateResponse): flyteidl.admin.WorkflowCreateResponse; - - /** - * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. - * @param message WorkflowCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowCreateResponse - * @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.WorkflowCreateResponse; - - /** - * Verifies a WorkflowCreateResponse 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 Workflow. */ - interface IWorkflow { - - /** Workflow id */ - id?: (flyteidl.core.IIdentifier|null); - - /** Workflow closure */ - closure?: (flyteidl.admin.IWorkflowClosure|null); - - /** Workflow shortDescription */ - shortDescription?: (string|null); - } - - /** Represents a Workflow. */ - class Workflow implements IWorkflow { - - /** - * Constructs a new Workflow. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflow); - - /** Workflow id. */ - public id?: (flyteidl.core.IIdentifier|null); - - /** Workflow closure. */ - public closure?: (flyteidl.admin.IWorkflowClosure|null); - - /** Workflow shortDescription. */ - public shortDescription: string; - - /** - * Creates a new Workflow instance using the specified properties. - * @param [properties] Properties to set - * @returns Workflow instance - */ - public static create(properties?: flyteidl.admin.IWorkflow): flyteidl.admin.Workflow; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. - * @param message Workflow message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflow, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Workflow - * @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.Workflow; - - /** - * Verifies a Workflow 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 WorkflowList. */ - interface IWorkflowList { - - /** WorkflowList workflows */ - workflows?: (flyteidl.admin.IWorkflow[]|null); - - /** WorkflowList token */ - token?: (string|null); - } - - /** Represents a WorkflowList. */ - class WorkflowList implements IWorkflowList { - - /** - * Constructs a new WorkflowList. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowList); - - /** WorkflowList workflows. */ - public workflows: flyteidl.admin.IWorkflow[]; - - /** WorkflowList token. */ - public token: string; - - /** - * Creates a new WorkflowList instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowList instance - */ - public static create(properties?: flyteidl.admin.IWorkflowList): flyteidl.admin.WorkflowList; - - /** - * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. - * @param message WorkflowList message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowList, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowList message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowList - * @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.WorkflowList; - - /** - * Verifies a WorkflowList 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 WorkflowSpec. */ - interface IWorkflowSpec { - - /** WorkflowSpec template */ - template?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowSpec subWorkflows */ - subWorkflows?: (flyteidl.core.IWorkflowTemplate[]|null); - - /** WorkflowSpec description */ - description?: (flyteidl.admin.IDescriptionEntity|null); - } - - /** Represents a WorkflowSpec. */ - class WorkflowSpec implements IWorkflowSpec { - - /** - * Constructs a new WorkflowSpec. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowSpec); - - /** WorkflowSpec template. */ - public template?: (flyteidl.core.IWorkflowTemplate|null); - - /** WorkflowSpec subWorkflows. */ - public subWorkflows: flyteidl.core.IWorkflowTemplate[]; - - /** WorkflowSpec description. */ - public description?: (flyteidl.admin.IDescriptionEntity|null); - - /** - * Creates a new WorkflowSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowSpec instance - */ - public static create(properties?: flyteidl.admin.IWorkflowSpec): flyteidl.admin.WorkflowSpec; - - /** - * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. - * @param message WorkflowSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowSpec - * @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.WorkflowSpec; - - /** - * Verifies a WorkflowSpec 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 WorkflowClosure. */ - interface IWorkflowClosure { - - /** WorkflowClosure compiledWorkflow */ - compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** WorkflowClosure createdAt */ - createdAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a WorkflowClosure. */ - class WorkflowClosure implements IWorkflowClosure { - - /** - * Constructs a new WorkflowClosure. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowClosure); - - /** WorkflowClosure compiledWorkflow. */ - public compiledWorkflow?: (flyteidl.core.ICompiledWorkflowClosure|null); - - /** WorkflowClosure createdAt. */ - public createdAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowClosure instance - */ - public static create(properties?: flyteidl.admin.IWorkflowClosure): flyteidl.admin.WorkflowClosure; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. - * @param message WorkflowClosure message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowClosure, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowClosure - * @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.WorkflowClosure; - - /** - * Verifies a WorkflowClosure 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 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 { - - /** WorkflowAttributes project */ - project?: (string|null); - - /** WorkflowAttributes domain */ - domain?: (string|null); - - /** WorkflowAttributes workflow */ - workflow?: (string|null); - - /** WorkflowAttributes matchingAttributes */ - matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - } - - /** Represents a WorkflowAttributes. */ - class WorkflowAttributes implements IWorkflowAttributes { - - /** - * Constructs a new WorkflowAttributes. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributes); - - /** WorkflowAttributes project. */ - public project: string; - - /** WorkflowAttributes domain. */ - public domain: string; - - /** WorkflowAttributes workflow. */ - public workflow: string; - - /** WorkflowAttributes matchingAttributes. */ - public matchingAttributes?: (flyteidl.admin.IMatchingAttributes|null); - - /** - * Creates a new WorkflowAttributes instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributes instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributes): flyteidl.admin.WorkflowAttributes; - - /** - * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. - * @param message WorkflowAttributes message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributes, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributes message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributes - * @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.WorkflowAttributes; - - /** - * Verifies a WorkflowAttributes 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 WorkflowAttributesUpdateRequest. */ - interface IWorkflowAttributesUpdateRequest { - - /** WorkflowAttributesUpdateRequest attributes */ - attributes?: (flyteidl.admin.IWorkflowAttributes|null); - } - - /** Represents a WorkflowAttributesUpdateRequest. */ - class WorkflowAttributesUpdateRequest implements IWorkflowAttributesUpdateRequest { - - /** - * Constructs a new WorkflowAttributesUpdateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest); - - /** WorkflowAttributesUpdateRequest attributes. */ - public attributes?: (flyteidl.admin.IWorkflowAttributes|null); - - /** - * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesUpdateRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateRequest): flyteidl.admin.WorkflowAttributesUpdateRequest; - - /** - * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. - * @param message WorkflowAttributesUpdateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesUpdateRequest - * @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.WorkflowAttributesUpdateRequest; - - /** - * Verifies a WorkflowAttributesUpdateRequest 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 WorkflowAttributesUpdateResponse. */ - interface IWorkflowAttributesUpdateResponse { - } - - /** Represents a WorkflowAttributesUpdateResponse. */ - class WorkflowAttributesUpdateResponse implements IWorkflowAttributesUpdateResponse { - - /** - * Constructs a new WorkflowAttributesUpdateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse); - - /** - * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesUpdateResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesUpdateResponse): flyteidl.admin.WorkflowAttributesUpdateResponse; - - /** - * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. - * @param message WorkflowAttributesUpdateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesUpdateResponse - * @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.WorkflowAttributesUpdateResponse; - - /** - * Verifies a WorkflowAttributesUpdateResponse 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 WorkflowAttributesGetRequest. */ - interface IWorkflowAttributesGetRequest { - - /** WorkflowAttributesGetRequest project */ - project?: (string|null); - - /** WorkflowAttributesGetRequest domain */ - domain?: (string|null); - - /** WorkflowAttributesGetRequest workflow */ - workflow?: (string|null); - - /** WorkflowAttributesGetRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a WorkflowAttributesGetRequest. */ - class WorkflowAttributesGetRequest implements IWorkflowAttributesGetRequest { - - /** - * Constructs a new WorkflowAttributesGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesGetRequest); - - /** WorkflowAttributesGetRequest project. */ - public project: string; - - /** WorkflowAttributesGetRequest domain. */ - public domain: string; - - /** WorkflowAttributesGetRequest workflow. */ - public workflow: string; - - /** WorkflowAttributesGetRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new WorkflowAttributesGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesGetRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesGetRequest): flyteidl.admin.WorkflowAttributesGetRequest; - - /** - * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. - * @param message WorkflowAttributesGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesGetRequest - * @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.WorkflowAttributesGetRequest; - - /** - * Verifies a WorkflowAttributesGetRequest 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 WorkflowAttributesGetResponse. */ - interface IWorkflowAttributesGetResponse { - - /** WorkflowAttributesGetResponse attributes */ - attributes?: (flyteidl.admin.IWorkflowAttributes|null); - } - - /** Represents a WorkflowAttributesGetResponse. */ - class WorkflowAttributesGetResponse implements IWorkflowAttributesGetResponse { - - /** - * Constructs a new WorkflowAttributesGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesGetResponse); - - /** WorkflowAttributesGetResponse attributes. */ - public attributes?: (flyteidl.admin.IWorkflowAttributes|null); - - /** - * Creates a new WorkflowAttributesGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesGetResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesGetResponse): flyteidl.admin.WorkflowAttributesGetResponse; - - /** - * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. - * @param message WorkflowAttributesGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesGetResponse - * @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.WorkflowAttributesGetResponse; - - /** - * Verifies a WorkflowAttributesGetResponse 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 WorkflowAttributesDeleteRequest. */ - interface IWorkflowAttributesDeleteRequest { - - /** WorkflowAttributesDeleteRequest project */ - project?: (string|null); - - /** WorkflowAttributesDeleteRequest domain */ - domain?: (string|null); - - /** WorkflowAttributesDeleteRequest workflow */ - workflow?: (string|null); - - /** WorkflowAttributesDeleteRequest resourceType */ - resourceType?: (flyteidl.admin.MatchableResource|null); - } - - /** Represents a WorkflowAttributesDeleteRequest. */ - class WorkflowAttributesDeleteRequest implements IWorkflowAttributesDeleteRequest { - - /** - * Constructs a new WorkflowAttributesDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest); - - /** WorkflowAttributesDeleteRequest project. */ - public project: string; - - /** WorkflowAttributesDeleteRequest domain. */ - public domain: string; - - /** WorkflowAttributesDeleteRequest workflow. */ - public workflow: string; - - /** WorkflowAttributesDeleteRequest resourceType. */ - public resourceType: flyteidl.admin.MatchableResource; - - /** - * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesDeleteRequest instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteRequest): flyteidl.admin.WorkflowAttributesDeleteRequest; - - /** - * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. - * @param message WorkflowAttributesDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesDeleteRequest - * @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.WorkflowAttributesDeleteRequest; - - /** - * Verifies a WorkflowAttributesDeleteRequest 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 WorkflowAttributesDeleteResponse. */ - interface IWorkflowAttributesDeleteResponse { - } - - /** Represents a WorkflowAttributesDeleteResponse. */ - class WorkflowAttributesDeleteResponse implements IWorkflowAttributesDeleteResponse { - - /** - * Constructs a new WorkflowAttributesDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse); - - /** - * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns WorkflowAttributesDeleteResponse instance - */ - public static create(properties?: flyteidl.admin.IWorkflowAttributesDeleteResponse): flyteidl.admin.WorkflowAttributesDeleteResponse; - - /** - * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. - * @param message WorkflowAttributesDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.admin.IWorkflowAttributesDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns WorkflowAttributesDeleteResponse - * @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.WorkflowAttributesDeleteResponse; - - /** - * Verifies a WorkflowAttributesDeleteResponse 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); - } - } - - /** Namespace service. */ - namespace service { - - /** Represents an AdminService */ - class AdminService extends $protobuf.rpc.Service { - - /** - * Constructs a new AdminService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AdminService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AdminService; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse - */ - public createTask(request: flyteidl.admin.ITaskCreateRequest, callback: flyteidl.service.AdminService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.admin.ITaskCreateRequest): Promise; - - /** - * Calls GetTask. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Task - */ - public getTask(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListTaskIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListTaskIdsCallback): void; - - /** - * Calls ListTaskIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listTaskIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListTasks. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskList - */ - public listTasks(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListTasksCallback): void; - - /** - * Calls ListTasks. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listTasks(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls CreateWorkflow. - * @param request WorkflowCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowCreateResponse - */ - public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest, callback: flyteidl.service.AdminService.CreateWorkflowCallback): void; - - /** - * Calls CreateWorkflow. - * @param request WorkflowCreateRequest message or plain object - * @returns Promise - */ - public createWorkflow(request: flyteidl.admin.IWorkflowCreateRequest): Promise; - - /** - * Calls GetWorkflow. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Workflow - */ - public getWorkflow(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetWorkflowCallback): void; - - /** - * Calls GetWorkflow. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getWorkflow(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListWorkflowIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListWorkflowIdsCallback): void; - - /** - * Calls ListWorkflowIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listWorkflowIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListWorkflows. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowList - */ - public listWorkflows(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListWorkflowsCallback): void; - - /** - * Calls ListWorkflows. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listWorkflows(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls CreateLaunchPlan. - * @param request LaunchPlanCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse - */ - public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest, callback: flyteidl.service.AdminService.CreateLaunchPlanCallback): void; - - /** - * Calls CreateLaunchPlan. - * @param request LaunchPlanCreateRequest message or plain object - * @returns Promise - */ - public createLaunchPlan(request: flyteidl.admin.ILaunchPlanCreateRequest): Promise; - - /** - * Calls GetLaunchPlan. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlan - */ - public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetLaunchPlanCallback): void; - - /** - * Calls GetLaunchPlan. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getLaunchPlan(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls GetActiveLaunchPlan. - * @param request ActiveLaunchPlanRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlan - */ - public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest, callback: flyteidl.service.AdminService.GetActiveLaunchPlanCallback): void; - - /** - * Calls GetActiveLaunchPlan. - * @param request ActiveLaunchPlanRequest message or plain object - * @returns Promise - */ - public getActiveLaunchPlan(request: flyteidl.admin.IActiveLaunchPlanRequest): Promise; - - /** - * Calls ListActiveLaunchPlans. - * @param request ActiveLaunchPlanListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanList - */ - public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest, callback: flyteidl.service.AdminService.ListActiveLaunchPlansCallback): void; - - /** - * Calls ListActiveLaunchPlans. - * @param request ActiveLaunchPlanListRequest message or plain object - * @returns Promise - */ - public listActiveLaunchPlans(request: flyteidl.admin.IActiveLaunchPlanListRequest): Promise; - - /** - * Calls ListLaunchPlanIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - */ - public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest, callback: flyteidl.service.AdminService.ListLaunchPlanIdsCallback): void; - - /** - * Calls ListLaunchPlanIds. - * @param request NamedEntityIdentifierListRequest message or plain object - * @returns Promise - */ - public listLaunchPlanIds(request: flyteidl.admin.INamedEntityIdentifierListRequest): Promise; - - /** - * Calls ListLaunchPlans. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanList - */ - public listLaunchPlans(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListLaunchPlansCallback): void; - - /** - * Calls ListLaunchPlans. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listLaunchPlans(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls UpdateLaunchPlan. - * @param request LaunchPlanUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse - */ - public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest, callback: flyteidl.service.AdminService.UpdateLaunchPlanCallback): void; - - /** - * Calls UpdateLaunchPlan. - * @param request LaunchPlanUpdateRequest message or plain object - * @returns Promise - */ - public updateLaunchPlan(request: flyteidl.admin.ILaunchPlanUpdateRequest): Promise; - - /** - * Calls CreateExecution. - * @param request ExecutionCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public createExecution(request: flyteidl.admin.IExecutionCreateRequest, callback: flyteidl.service.AdminService.CreateExecutionCallback): void; - - /** - * Calls CreateExecution. - * @param request ExecutionCreateRequest message or plain object - * @returns Promise - */ - public createExecution(request: flyteidl.admin.IExecutionCreateRequest): Promise; - - /** - * Calls RelaunchExecution. - * @param request ExecutionRelaunchRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest, callback: flyteidl.service.AdminService.RelaunchExecutionCallback): void; - - /** - * Calls RelaunchExecution. - * @param request ExecutionRelaunchRequest message or plain object - * @returns Promise - */ - public relaunchExecution(request: flyteidl.admin.IExecutionRelaunchRequest): Promise; - - /** - * Calls RecoverExecution. - * @param request ExecutionRecoverRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionCreateResponse - */ - public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest, callback: flyteidl.service.AdminService.RecoverExecutionCallback): void; - - /** - * Calls RecoverExecution. - * @param request ExecutionRecoverRequest message or plain object - * @returns Promise - */ - public recoverExecution(request: flyteidl.admin.IExecutionRecoverRequest): Promise; - - /** - * Calls GetExecution. - * @param request WorkflowExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Execution - */ - public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest, callback: flyteidl.service.AdminService.GetExecutionCallback): void; - - /** - * Calls GetExecution. - * @param request WorkflowExecutionGetRequest message or plain object - * @returns Promise - */ - public getExecution(request: flyteidl.admin.IWorkflowExecutionGetRequest): Promise; - - /** - * Calls UpdateExecution. - * @param request ExecutionUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionUpdateResponse - */ - public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest, callback: flyteidl.service.AdminService.UpdateExecutionCallback): void; - - /** - * Calls UpdateExecution. - * @param request ExecutionUpdateRequest message or plain object - * @returns Promise - */ - public updateExecution(request: flyteidl.admin.IExecutionUpdateRequest): Promise; - - /** - * Calls GetExecutionData. - * @param request WorkflowExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse - */ - public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetExecutionDataCallback): void; - - /** - * Calls GetExecutionData. - * @param request WorkflowExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getExecutionData(request: flyteidl.admin.IWorkflowExecutionGetDataRequest): Promise; - - /** - * Calls ListExecutions. - * @param request ResourceListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionList - */ - public listExecutions(request: flyteidl.admin.IResourceListRequest, callback: flyteidl.service.AdminService.ListExecutionsCallback): void; - - /** - * Calls ListExecutions. - * @param request ResourceListRequest message or plain object - * @returns Promise - */ - public listExecutions(request: flyteidl.admin.IResourceListRequest): Promise; - - /** - * Calls TerminateExecution. - * @param request ExecutionTerminateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ExecutionTerminateResponse - */ - public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest, callback: flyteidl.service.AdminService.TerminateExecutionCallback): void; - - /** - * Calls TerminateExecution. - * @param request ExecutionTerminateRequest message or plain object - * @returns Promise - */ - public terminateExecution(request: flyteidl.admin.IExecutionTerminateRequest): Promise; - - /** - * Calls GetNodeExecution. - * @param request NodeExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecution - */ - public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest, callback: flyteidl.service.AdminService.GetNodeExecutionCallback): void; - - /** - * Calls GetNodeExecution. - * @param request NodeExecutionGetRequest message or plain object - * @returns Promise - */ - public getNodeExecution(request: flyteidl.admin.INodeExecutionGetRequest): Promise; - - /** - * Calls ListNodeExecutions. - * @param request NodeExecutionListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionList - */ - public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsCallback): void; - - /** - * Calls ListNodeExecutions. - * @param request NodeExecutionListRequest message or plain object - * @returns Promise - */ - public listNodeExecutions(request: flyteidl.admin.INodeExecutionListRequest): Promise; - - /** - * Calls ListNodeExecutionsForTask. - * @param request NodeExecutionForTaskListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionList - */ - public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest, callback: flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback): void; - - /** - * Calls ListNodeExecutionsForTask. - * @param request NodeExecutionForTaskListRequest message or plain object - * @returns Promise - */ - public listNodeExecutionsForTask(request: flyteidl.admin.INodeExecutionForTaskListRequest): Promise; - - /** - * Calls GetNodeExecutionData. - * @param request NodeExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse - */ - public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetNodeExecutionDataCallback): void; - - /** - * Calls GetNodeExecutionData. - * @param request NodeExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getNodeExecutionData(request: flyteidl.admin.INodeExecutionGetDataRequest): Promise; - - /** - * Calls RegisterProject. - * @param request ProjectRegisterRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectRegisterResponse - */ - public registerProject(request: flyteidl.admin.IProjectRegisterRequest, callback: flyteidl.service.AdminService.RegisterProjectCallback): void; - - /** - * Calls RegisterProject. - * @param request ProjectRegisterRequest message or plain object - * @returns Promise - */ - public registerProject(request: flyteidl.admin.IProjectRegisterRequest): Promise; - - /** - * Calls UpdateProject. - * @param request Project message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectUpdateResponse - */ - public updateProject(request: flyteidl.admin.IProject, callback: flyteidl.service.AdminService.UpdateProjectCallback): void; - - /** - * Calls UpdateProject. - * @param request Project message or plain object - * @returns Promise - */ - public updateProject(request: flyteidl.admin.IProject): Promise; - - /** - * Calls ListProjects. - * @param request ProjectListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Projects - */ - public listProjects(request: flyteidl.admin.IProjectListRequest, callback: flyteidl.service.AdminService.ListProjectsCallback): void; - - /** - * Calls ListProjects. - * @param request ProjectListRequest message or plain object - * @returns Promise - */ - public listProjects(request: flyteidl.admin.IProjectListRequest): Promise; - - /** - * Calls CreateWorkflowEvent. - * @param request WorkflowExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse - */ - public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest, callback: flyteidl.service.AdminService.CreateWorkflowEventCallback): void; - - /** - * Calls CreateWorkflowEvent. - * @param request WorkflowExecutionEventRequest message or plain object - * @returns Promise - */ - public createWorkflowEvent(request: flyteidl.admin.IWorkflowExecutionEventRequest): Promise; - - /** - * Calls CreateNodeEvent. - * @param request NodeExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NodeExecutionEventResponse - */ - public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest, callback: flyteidl.service.AdminService.CreateNodeEventCallback): void; - - /** - * Calls CreateNodeEvent. - * @param request NodeExecutionEventRequest message or plain object - * @returns Promise - */ - public createNodeEvent(request: flyteidl.admin.INodeExecutionEventRequest): Promise; - - /** - * Calls CreateTaskEvent. - * @param request TaskExecutionEventRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionEventResponse - */ - public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest, callback: flyteidl.service.AdminService.CreateTaskEventCallback): void; - - /** - * Calls CreateTaskEvent. - * @param request TaskExecutionEventRequest message or plain object - * @returns Promise - */ - public createTaskEvent(request: flyteidl.admin.ITaskExecutionEventRequest): Promise; - - /** - * Calls GetTaskExecution. - * @param request TaskExecutionGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecution - */ - public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest, callback: flyteidl.service.AdminService.GetTaskExecutionCallback): void; - - /** - * Calls GetTaskExecution. - * @param request TaskExecutionGetRequest message or plain object - * @returns Promise - */ - public getTaskExecution(request: flyteidl.admin.ITaskExecutionGetRequest): Promise; - - /** - * Calls ListTaskExecutions. - * @param request TaskExecutionListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionList - */ - public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest, callback: flyteidl.service.AdminService.ListTaskExecutionsCallback): void; - - /** - * Calls ListTaskExecutions. - * @param request TaskExecutionListRequest message or plain object - * @returns Promise - */ - public listTaskExecutions(request: flyteidl.admin.ITaskExecutionListRequest): Promise; - - /** - * Calls GetTaskExecutionData. - * @param request TaskExecutionGetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse - */ - public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest, callback: flyteidl.service.AdminService.GetTaskExecutionDataCallback): void; - - /** - * Calls GetTaskExecutionData. - * @param request TaskExecutionGetDataRequest message or plain object - * @returns Promise - */ - public getTaskExecutionData(request: flyteidl.admin.ITaskExecutionGetDataRequest): Promise; - - /** - * Calls UpdateProjectDomainAttributes. - * @param request ProjectDomainAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse - */ - public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback): void; - - /** - * Calls UpdateProjectDomainAttributes. - * @param request ProjectDomainAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesUpdateRequest): Promise; - - /** - * Calls GetProjectDomainAttributes. - * @param request ProjectDomainAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse - */ - public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectDomainAttributesCallback): void; - - /** - * Calls GetProjectDomainAttributes. - * @param request ProjectDomainAttributesGetRequest message or plain object - * @returns Promise - */ - public getProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesGetRequest): Promise; - - /** - * Calls DeleteProjectDomainAttributes. - * @param request ProjectDomainAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse - */ - public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback): void; - - /** - * Calls DeleteProjectDomainAttributes. - * @param request ProjectDomainAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteProjectDomainAttributes(request: flyteidl.admin.IProjectDomainAttributesDeleteRequest): Promise; - - /** - * Calls UpdateProjectAttributes. - * @param request ProjectAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse - */ - public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateProjectAttributesCallback): void; - - /** - * Calls UpdateProjectAttributes. - * @param request ProjectAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateProjectAttributes(request: flyteidl.admin.IProjectAttributesUpdateRequest): Promise; - - /** - * Calls GetProjectAttributes. - * @param request ProjectAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse - */ - public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest, callback: flyteidl.service.AdminService.GetProjectAttributesCallback): void; - - /** - * Calls GetProjectAttributes. - * @param request ProjectAttributesGetRequest message or plain object - * @returns Promise - */ - public getProjectAttributes(request: flyteidl.admin.IProjectAttributesGetRequest): Promise; - - /** - * Calls DeleteProjectAttributes. - * @param request ProjectAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse - */ - public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteProjectAttributesCallback): void; - - /** - * Calls DeleteProjectAttributes. - * @param request ProjectAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteProjectAttributes(request: flyteidl.admin.IProjectAttributesDeleteRequest): Promise; - - /** - * Calls UpdateWorkflowAttributes. - * @param request WorkflowAttributesUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse - */ - public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest, callback: flyteidl.service.AdminService.UpdateWorkflowAttributesCallback): void; - - /** - * Calls UpdateWorkflowAttributes. - * @param request WorkflowAttributesUpdateRequest message or plain object - * @returns Promise - */ - public updateWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesUpdateRequest): Promise; - - /** - * Calls GetWorkflowAttributes. - * @param request WorkflowAttributesGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse - */ - public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest, callback: flyteidl.service.AdminService.GetWorkflowAttributesCallback): void; - - /** - * Calls GetWorkflowAttributes. - * @param request WorkflowAttributesGetRequest message or plain object - * @returns Promise - */ - public getWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesGetRequest): Promise; - - /** - * Calls DeleteWorkflowAttributes. - * @param request WorkflowAttributesDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse - */ - public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest, callback: flyteidl.service.AdminService.DeleteWorkflowAttributesCallback): void; - - /** - * Calls DeleteWorkflowAttributes. - * @param request WorkflowAttributesDeleteRequest message or plain object - * @returns Promise - */ - public deleteWorkflowAttributes(request: flyteidl.admin.IWorkflowAttributesDeleteRequest): Promise; - - /** - * Calls ListMatchableAttributes. - * @param request ListMatchableAttributesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse - */ - public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest, callback: flyteidl.service.AdminService.ListMatchableAttributesCallback): void; - - /** - * Calls ListMatchableAttributes. - * @param request ListMatchableAttributesRequest message or plain object - * @returns Promise - */ - public listMatchableAttributes(request: flyteidl.admin.IListMatchableAttributesRequest): Promise; - - /** - * Calls ListNamedEntities. - * @param request NamedEntityListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityList - */ - public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest, callback: flyteidl.service.AdminService.ListNamedEntitiesCallback): void; - - /** - * Calls ListNamedEntities. - * @param request NamedEntityListRequest message or plain object - * @returns Promise - */ - public listNamedEntities(request: flyteidl.admin.INamedEntityListRequest): Promise; - - /** - * Calls GetNamedEntity. - * @param request NamedEntityGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntity - */ - public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest, callback: flyteidl.service.AdminService.GetNamedEntityCallback): void; - - /** - * Calls GetNamedEntity. - * @param request NamedEntityGetRequest message or plain object - * @returns Promise - */ - public getNamedEntity(request: flyteidl.admin.INamedEntityGetRequest): Promise; - - /** - * Calls UpdateNamedEntity. - * @param request NamedEntityUpdateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse - */ - public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest, callback: flyteidl.service.AdminService.UpdateNamedEntityCallback): void; - - /** - * Calls UpdateNamedEntity. - * @param request NamedEntityUpdateRequest message or plain object - * @returns Promise - */ - public updateNamedEntity(request: flyteidl.admin.INamedEntityUpdateRequest): Promise; - - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetVersionResponse - */ - public getVersion(request: flyteidl.admin.IGetVersionRequest, callback: flyteidl.service.AdminService.GetVersionCallback): void; - - /** - * Calls GetVersion. - * @param request GetVersionRequest message or plain object - * @returns Promise - */ - public getVersion(request: flyteidl.admin.IGetVersionRequest): Promise; - - /** - * Calls GetDescriptionEntity. - * @param request ObjectGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DescriptionEntity - */ - public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest, callback: flyteidl.service.AdminService.GetDescriptionEntityCallback): void; - - /** - * Calls GetDescriptionEntity. - * @param request ObjectGetRequest message or plain object - * @returns Promise - */ - public getDescriptionEntity(request: flyteidl.admin.IObjectGetRequest): Promise; - - /** - * Calls ListDescriptionEntities. - * @param request DescriptionEntityListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DescriptionEntityList - */ - public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest, callback: flyteidl.service.AdminService.ListDescriptionEntitiesCallback): void; - - /** - * Calls ListDescriptionEntities. - * @param request DescriptionEntityListRequest message or plain object - * @returns Promise - */ - public listDescriptionEntities(request: flyteidl.admin.IDescriptionEntityListRequest): Promise; - - /** - * Calls GetExecutionMetrics. - * @param request WorkflowExecutionGetMetricsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse - */ - public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest, callback: flyteidl.service.AdminService.GetExecutionMetricsCallback): void; - - /** - * Calls GetExecutionMetrics. - * @param request WorkflowExecutionGetMetricsRequest message or plain object - * @returns Promise - */ - public getExecutionMetrics(request: flyteidl.admin.IWorkflowExecutionGetMetricsRequest): Promise; - } - - namespace AdminService { - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTask}. - * @param error Error, if any - * @param [response] TaskCreateResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.TaskCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTask}. - * @param error Error, if any - * @param [response] Task - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.Task) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListTaskIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTasks}. - * @param error Error, if any - * @param [response] TaskList - */ - type ListTasksCallback = (error: (Error|null), response?: flyteidl.admin.TaskList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. - * @param error Error, if any - * @param [response] WorkflowCreateResponse - */ - type CreateWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. - * @param error Error, if any - * @param [response] Workflow - */ - type GetWorkflowCallback = (error: (Error|null), response?: flyteidl.admin.Workflow) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListWorkflowIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. - * @param error Error, if any - * @param [response] WorkflowList - */ - type ListWorkflowsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlanCreateResponse - */ - type CreateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlan - */ - type GetLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlan - */ - type GetActiveLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlan) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. - * @param error Error, if any - * @param [response] LaunchPlanList - */ - type ListActiveLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. - * @param error Error, if any - * @param [response] NamedEntityIdentifierList - */ - type ListLaunchPlanIdsCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityIdentifierList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. - * @param error Error, if any - * @param [response] LaunchPlanList - */ - type ListLaunchPlansCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. - * @param error Error, if any - * @param [response] LaunchPlanUpdateResponse - */ - type UpdateLaunchPlanCallback = (error: (Error|null), response?: flyteidl.admin.LaunchPlanUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type CreateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type RelaunchExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. - * @param error Error, if any - * @param [response] ExecutionCreateResponse - */ - type RecoverExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecution}. - * @param error Error, if any - * @param [response] Execution - */ - type GetExecutionCallback = (error: (Error|null), response?: flyteidl.admin.Execution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. - * @param error Error, if any - * @param [response] ExecutionUpdateResponse - */ - type UpdateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. - * @param error Error, if any - * @param [response] WorkflowExecutionGetDataResponse - */ - type GetExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. - * @param error Error, if any - * @param [response] ExecutionList - */ - type ListExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. - * @param error Error, if any - * @param [response] ExecutionTerminateResponse - */ - type TerminateExecutionCallback = (error: (Error|null), response?: flyteidl.admin.ExecutionTerminateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. - * @param error Error, if any - * @param [response] NodeExecution - */ - type GetNodeExecutionCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. - * @param error Error, if any - * @param [response] NodeExecutionList - */ - type ListNodeExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. - * @param error Error, if any - * @param [response] NodeExecutionList - */ - type ListNodeExecutionsForTaskCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. - * @param error Error, if any - * @param [response] NodeExecutionGetDataResponse - */ - type GetNodeExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#registerProject}. - * @param error Error, if any - * @param [response] ProjectRegisterResponse - */ - type RegisterProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectRegisterResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProject}. - * @param error Error, if any - * @param [response] ProjectUpdateResponse - */ - type UpdateProjectCallback = (error: (Error|null), response?: flyteidl.admin.ProjectUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listProjects}. - * @param error Error, if any - * @param [response] Projects - */ - type ListProjectsCallback = (error: (Error|null), response?: flyteidl.admin.Projects) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. - * @param error Error, if any - * @param [response] WorkflowExecutionEventResponse - */ - type CreateWorkflowEventCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. - * @param error Error, if any - * @param [response] NodeExecutionEventResponse - */ - type CreateNodeEventCallback = (error: (Error|null), response?: flyteidl.admin.NodeExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. - * @param error Error, if any - * @param [response] TaskExecutionEventResponse - */ - type CreateTaskEventCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionEventResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. - * @param error Error, if any - * @param [response] TaskExecution - */ - type GetTaskExecutionCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecution) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. - * @param error Error, if any - * @param [response] TaskExecutionList - */ - type ListTaskExecutionsCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. - * @param error Error, if any - * @param [response] TaskExecutionGetDataResponse - */ - type GetTaskExecutionDataCallback = (error: (Error|null), response?: flyteidl.admin.TaskExecutionGetDataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesUpdateResponse - */ - type UpdateProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesGetResponse - */ - type GetProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. - * @param error Error, if any - * @param [response] ProjectDomainAttributesDeleteResponse - */ - type DeleteProjectDomainAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectDomainAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesUpdateResponse - */ - type UpdateProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesGetResponse - */ - type GetProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. - * @param error Error, if any - * @param [response] ProjectAttributesDeleteResponse - */ - type DeleteProjectAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ProjectAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesUpdateResponse - */ - type UpdateWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesGetResponse - */ - type GetWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. - * @param error Error, if any - * @param [response] WorkflowAttributesDeleteResponse - */ - type DeleteWorkflowAttributesCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowAttributesDeleteResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. - * @param error Error, if any - * @param [response] ListMatchableAttributesResponse - */ - type ListMatchableAttributesCallback = (error: (Error|null), response?: flyteidl.admin.ListMatchableAttributesResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. - * @param error Error, if any - * @param [response] NamedEntityList - */ - type ListNamedEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. - * @param error Error, if any - * @param [response] NamedEntity - */ - type GetNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntity) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. - * @param error Error, if any - * @param [response] NamedEntityUpdateResponse - */ - type UpdateNamedEntityCallback = (error: (Error|null), response?: flyteidl.admin.NamedEntityUpdateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getVersion}. - * @param error Error, if any - * @param [response] GetVersionResponse - */ - type GetVersionCallback = (error: (Error|null), response?: flyteidl.admin.GetVersionResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. - * @param error Error, if any - * @param [response] DescriptionEntity - */ - type GetDescriptionEntityCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntity) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. - * @param error Error, if any - * @param [response] DescriptionEntityList - */ - type ListDescriptionEntitiesCallback = (error: (Error|null), response?: flyteidl.admin.DescriptionEntityList) => void; - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. - * @param error Error, if any - * @param [response] WorkflowExecutionGetMetricsResponse - */ - type GetExecutionMetricsCallback = (error: (Error|null), response?: flyteidl.admin.WorkflowExecutionGetMetricsResponse) => void; - } - - /** Represents an AsyncAgentService */ - class AsyncAgentService extends $protobuf.rpc.Service { - - /** - * Constructs a new AsyncAgentService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AsyncAgentService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AsyncAgentService; - - /** - * Calls CreateTask. - * @param request CreateTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateTaskResponse - */ - public createTask(request: flyteidl.admin.ICreateTaskRequest, callback: flyteidl.service.AsyncAgentService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request CreateTaskRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.admin.ICreateTaskRequest): Promise; - - /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetTaskResponse - */ - public getTask(request: flyteidl.admin.IGetTaskRequest, callback: flyteidl.service.AsyncAgentService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request GetTaskRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.admin.IGetTaskRequest): Promise; - - /** - * Calls DeleteTask. - * @param request DeleteTaskRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DeleteTaskResponse - */ - public deleteTask(request: flyteidl.admin.IDeleteTaskRequest, callback: flyteidl.service.AsyncAgentService.DeleteTaskCallback): void; - - /** - * Calls DeleteTask. - * @param request DeleteTaskRequest message or plain object - * @returns Promise - */ - public deleteTask(request: flyteidl.admin.IDeleteTaskRequest): Promise; - } - - namespace AsyncAgentService { - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. - * @param error Error, if any - * @param [response] CreateTaskResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.admin.CreateTaskResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. - * @param error Error, if any - * @param [response] GetTaskResponse - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.admin.GetTaskResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. - * @param error Error, if any - * @param [response] DeleteTaskResponse - */ - type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.admin.DeleteTaskResponse) => void; - } - - /** Represents an AgentMetadataService */ - class AgentMetadataService extends $protobuf.rpc.Service { - - /** - * Constructs a new AgentMetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AgentMetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AgentMetadataService; - - /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetAgentResponse - */ - public getAgent(request: flyteidl.admin.IGetAgentRequest, callback: flyteidl.service.AgentMetadataService.GetAgentCallback): void; - - /** - * Calls GetAgent. - * @param request GetAgentRequest message or plain object - * @returns Promise - */ - public getAgent(request: flyteidl.admin.IGetAgentRequest): Promise; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAgentsResponse - */ - public listAgents(request: flyteidl.admin.IListAgentsRequest, callback: flyteidl.service.AgentMetadataService.ListAgentsCallback): void; - - /** - * Calls ListAgents. - * @param request ListAgentsRequest message or plain object - * @returns Promise - */ - public listAgents(request: flyteidl.admin.IListAgentsRequest): Promise; - } - - namespace AgentMetadataService { - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. - * @param error Error, if any - * @param [response] GetAgentResponse - */ - type GetAgentCallback = (error: (Error|null), response?: flyteidl.admin.GetAgentResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. - * @param error Error, if any - * @param [response] ListAgentsResponse - */ - type ListAgentsCallback = (error: (Error|null), response?: flyteidl.admin.ListAgentsResponse) => void; - } - - /** Properties of a OAuth2MetadataRequest. */ - interface IOAuth2MetadataRequest { - } - - /** Represents a OAuth2MetadataRequest. */ - class OAuth2MetadataRequest implements IOAuth2MetadataRequest { - - /** - * Constructs a new OAuth2MetadataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IOAuth2MetadataRequest); - - /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2MetadataRequest instance - */ - public static create(properties?: flyteidl.service.IOAuth2MetadataRequest): flyteidl.service.OAuth2MetadataRequest; - - /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. - * @param message OAuth2MetadataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IOAuth2MetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2MetadataRequest - * @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.service.OAuth2MetadataRequest; - - /** - * Verifies a OAuth2MetadataRequest 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 OAuth2MetadataResponse. */ - interface IOAuth2MetadataResponse { - - /** OAuth2MetadataResponse issuer */ - issuer?: (string|null); - - /** OAuth2MetadataResponse authorizationEndpoint */ - authorizationEndpoint?: (string|null); - - /** OAuth2MetadataResponse tokenEndpoint */ - tokenEndpoint?: (string|null); - - /** OAuth2MetadataResponse responseTypesSupported */ - responseTypesSupported?: (string[]|null); - - /** OAuth2MetadataResponse scopesSupported */ - scopesSupported?: (string[]|null); - - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported */ - tokenEndpointAuthMethodsSupported?: (string[]|null); - - /** OAuth2MetadataResponse jwksUri */ - jwksUri?: (string|null); - - /** OAuth2MetadataResponse codeChallengeMethodsSupported */ - codeChallengeMethodsSupported?: (string[]|null); - - /** OAuth2MetadataResponse grantTypesSupported */ - grantTypesSupported?: (string[]|null); - - /** OAuth2MetadataResponse deviceAuthorizationEndpoint */ - deviceAuthorizationEndpoint?: (string|null); - } - - /** Represents a OAuth2MetadataResponse. */ - class OAuth2MetadataResponse implements IOAuth2MetadataResponse { - - /** - * Constructs a new OAuth2MetadataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IOAuth2MetadataResponse); - - /** OAuth2MetadataResponse issuer. */ - public issuer: string; - - /** OAuth2MetadataResponse authorizationEndpoint. */ - public authorizationEndpoint: string; - - /** OAuth2MetadataResponse tokenEndpoint. */ - public tokenEndpoint: string; - - /** OAuth2MetadataResponse responseTypesSupported. */ - public responseTypesSupported: string[]; - - /** OAuth2MetadataResponse scopesSupported. */ - public scopesSupported: string[]; - - /** OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. */ - public tokenEndpointAuthMethodsSupported: string[]; - - /** OAuth2MetadataResponse jwksUri. */ - public jwksUri: string; - - /** OAuth2MetadataResponse codeChallengeMethodsSupported. */ - public codeChallengeMethodsSupported: string[]; - - /** OAuth2MetadataResponse grantTypesSupported. */ - public grantTypesSupported: string[]; - - /** OAuth2MetadataResponse deviceAuthorizationEndpoint. */ - public deviceAuthorizationEndpoint: string; - - /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns OAuth2MetadataResponse instance - */ - public static create(properties?: flyteidl.service.IOAuth2MetadataResponse): flyteidl.service.OAuth2MetadataResponse; - - /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. - * @param message OAuth2MetadataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IOAuth2MetadataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OAuth2MetadataResponse - * @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.service.OAuth2MetadataResponse; - - /** - * Verifies a OAuth2MetadataResponse 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 PublicClientAuthConfigRequest. */ - interface IPublicClientAuthConfigRequest { - } - - /** Represents a PublicClientAuthConfigRequest. */ - class PublicClientAuthConfigRequest implements IPublicClientAuthConfigRequest { - - /** - * Constructs a new PublicClientAuthConfigRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigRequest); - - /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns PublicClientAuthConfigRequest instance - */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigRequest): flyteidl.service.PublicClientAuthConfigRequest; - - /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. - * @param message PublicClientAuthConfigRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPublicClientAuthConfigRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublicClientAuthConfigRequest - * @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.service.PublicClientAuthConfigRequest; - - /** - * Verifies a PublicClientAuthConfigRequest 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 PublicClientAuthConfigResponse. */ - interface IPublicClientAuthConfigResponse { - - /** PublicClientAuthConfigResponse clientId */ - clientId?: (string|null); - - /** PublicClientAuthConfigResponse redirectUri */ - redirectUri?: (string|null); - - /** PublicClientAuthConfigResponse scopes */ - scopes?: (string[]|null); - - /** PublicClientAuthConfigResponse authorizationMetadataKey */ - authorizationMetadataKey?: (string|null); - - /** PublicClientAuthConfigResponse serviceHttpEndpoint */ - serviceHttpEndpoint?: (string|null); - - /** PublicClientAuthConfigResponse audience */ - audience?: (string|null); - } - - /** Represents a PublicClientAuthConfigResponse. */ - class PublicClientAuthConfigResponse implements IPublicClientAuthConfigResponse { - - /** - * Constructs a new PublicClientAuthConfigResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPublicClientAuthConfigResponse); - - /** PublicClientAuthConfigResponse clientId. */ - public clientId: string; - - /** PublicClientAuthConfigResponse redirectUri. */ - public redirectUri: string; - - /** PublicClientAuthConfigResponse scopes. */ - public scopes: string[]; - - /** PublicClientAuthConfigResponse authorizationMetadataKey. */ - public authorizationMetadataKey: string; - - /** PublicClientAuthConfigResponse serviceHttpEndpoint. */ - public serviceHttpEndpoint: string; - - /** PublicClientAuthConfigResponse audience. */ - public audience: string; - - /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns PublicClientAuthConfigResponse instance - */ - public static create(properties?: flyteidl.service.IPublicClientAuthConfigResponse): flyteidl.service.PublicClientAuthConfigResponse; - - /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. - * @param message PublicClientAuthConfigResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPublicClientAuthConfigResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PublicClientAuthConfigResponse - * @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.service.PublicClientAuthConfigResponse; - - /** - * Verifies a PublicClientAuthConfigResponse 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); - } - - /** Represents an AuthMetadataService */ - class AuthMetadataService extends $protobuf.rpc.Service { - - /** - * Constructs a new AuthMetadataService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new AuthMetadataService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): AuthMetadataService; - - /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and OAuth2MetadataResponse - */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest, callback: flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback): void; - - /** - * Calls GetOAuth2Metadata. - * @param request OAuth2MetadataRequest message or plain object - * @returns Promise - */ - public getOAuth2Metadata(request: flyteidl.service.IOAuth2MetadataRequest): Promise; - - /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @param callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse - */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest, callback: flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback): void; - - /** - * Calls GetPublicClientConfig. - * @param request PublicClientAuthConfigRequest message or plain object - * @returns Promise - */ - public getPublicClientConfig(request: flyteidl.service.IPublicClientAuthConfigRequest): Promise; - } - - namespace AuthMetadataService { - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @param error Error, if any - * @param [response] OAuth2MetadataResponse - */ - type GetOAuth2MetadataCallback = (error: (Error|null), response?: flyteidl.service.OAuth2MetadataResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @param error Error, if any - * @param [response] PublicClientAuthConfigResponse - */ - type GetPublicClientConfigCallback = (error: (Error|null), response?: flyteidl.service.PublicClientAuthConfigResponse) => void; - } - - /** Properties of a CreateUploadLocationResponse. */ - interface ICreateUploadLocationResponse { - - /** CreateUploadLocationResponse signedUrl */ - signedUrl?: (string|null); - - /** CreateUploadLocationResponse nativeUrl */ - nativeUrl?: (string|null); - - /** CreateUploadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a CreateUploadLocationResponse. */ - class CreateUploadLocationResponse implements ICreateUploadLocationResponse { - - /** - * Constructs a new CreateUploadLocationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateUploadLocationResponse); - - /** CreateUploadLocationResponse signedUrl. */ - public signedUrl: string; - - /** CreateUploadLocationResponse nativeUrl. */ - public nativeUrl: string; - - /** CreateUploadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateUploadLocationResponse instance - */ - public static create(properties?: flyteidl.service.ICreateUploadLocationResponse): flyteidl.service.CreateUploadLocationResponse; - - /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. - * @param message CreateUploadLocationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateUploadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateUploadLocationResponse - * @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.service.CreateUploadLocationResponse; - - /** - * Verifies a CreateUploadLocationResponse 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 CreateUploadLocationRequest. */ - interface ICreateUploadLocationRequest { - - /** CreateUploadLocationRequest project */ - project?: (string|null); - - /** CreateUploadLocationRequest domain */ - domain?: (string|null); - - /** CreateUploadLocationRequest filename */ - filename?: (string|null); - - /** CreateUploadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5 */ - contentMd5?: (Uint8Array|null); - - /** CreateUploadLocationRequest filenameRoot */ - filenameRoot?: (string|null); - } - - /** Represents a CreateUploadLocationRequest. */ - class CreateUploadLocationRequest implements ICreateUploadLocationRequest { - - /** - * Constructs a new CreateUploadLocationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateUploadLocationRequest); - - /** CreateUploadLocationRequest project. */ - public project: string; - - /** CreateUploadLocationRequest domain. */ - public domain: string; - - /** CreateUploadLocationRequest filename. */ - public filename: string; - - /** CreateUploadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateUploadLocationRequest contentMd5. */ - public contentMd5: Uint8Array; - - /** CreateUploadLocationRequest filenameRoot. */ - public filenameRoot: string; - - /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateUploadLocationRequest instance - */ - public static create(properties?: flyteidl.service.ICreateUploadLocationRequest): flyteidl.service.CreateUploadLocationRequest; - - /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. - * @param message CreateUploadLocationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateUploadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateUploadLocationRequest - * @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.service.CreateUploadLocationRequest; - - /** - * Verifies a CreateUploadLocationRequest 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 CreateDownloadLocationRequest. */ - interface ICreateDownloadLocationRequest { - - /** CreateDownloadLocationRequest nativeUrl */ - nativeUrl?: (string|null); - - /** CreateDownloadLocationRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - } - - /** Represents a CreateDownloadLocationRequest. */ - class CreateDownloadLocationRequest implements ICreateDownloadLocationRequest { - - /** - * Constructs a new CreateDownloadLocationRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationRequest); - - /** CreateDownloadLocationRequest nativeUrl. */ - public nativeUrl: string; - - /** CreateDownloadLocationRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLocationRequest instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationRequest): flyteidl.service.CreateDownloadLocationRequest; - - /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. - * @param message CreateDownloadLocationRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLocationRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLocationRequest - * @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.service.CreateDownloadLocationRequest; - - /** - * Verifies a CreateDownloadLocationRequest 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 CreateDownloadLocationResponse. */ - interface ICreateDownloadLocationResponse { - - /** CreateDownloadLocationResponse signedUrl */ - signedUrl?: (string|null); - - /** CreateDownloadLocationResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a CreateDownloadLocationResponse. */ - class CreateDownloadLocationResponse implements ICreateDownloadLocationResponse { - - /** - * Constructs a new CreateDownloadLocationResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLocationResponse); - - /** CreateDownloadLocationResponse signedUrl. */ - public signedUrl: string; - - /** CreateDownloadLocationResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLocationResponse instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLocationResponse): flyteidl.service.CreateDownloadLocationResponse; - - /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. - * @param message CreateDownloadLocationResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLocationResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLocationResponse - * @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.service.CreateDownloadLocationResponse; - - /** - * Verifies a CreateDownloadLocationResponse 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); - } - - /** ArtifactType enum. */ - enum ArtifactType { - ARTIFACT_TYPE_UNDEFINED = 0, - ARTIFACT_TYPE_DECK = 1 - } - - /** Properties of a CreateDownloadLinkRequest. */ - interface ICreateDownloadLinkRequest { - - /** CreateDownloadLinkRequest artifactType */ - artifactType?: (flyteidl.service.ArtifactType|null); - - /** CreateDownloadLinkRequest expiresIn */ - expiresIn?: (google.protobuf.IDuration|null); - - /** CreateDownloadLinkRequest nodeExecutionId */ - nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - } - - /** Represents a CreateDownloadLinkRequest. */ - class CreateDownloadLinkRequest implements ICreateDownloadLinkRequest { - - /** - * Constructs a new CreateDownloadLinkRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkRequest); - - /** CreateDownloadLinkRequest artifactType. */ - public artifactType: flyteidl.service.ArtifactType; - - /** CreateDownloadLinkRequest expiresIn. */ - public expiresIn?: (google.protobuf.IDuration|null); - - /** CreateDownloadLinkRequest nodeExecutionId. */ - public nodeExecutionId?: (flyteidl.core.INodeExecutionIdentifier|null); - - /** CreateDownloadLinkRequest source. */ - public source?: "nodeExecutionId"; - - /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLinkRequest instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkRequest): flyteidl.service.CreateDownloadLinkRequest; - - /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @param message CreateDownloadLinkRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLinkRequest - * @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.service.CreateDownloadLinkRequest; - - /** - * Verifies a CreateDownloadLinkRequest 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 CreateDownloadLinkResponse. */ - interface ICreateDownloadLinkResponse { - - /** CreateDownloadLinkResponse signedUrl */ - signedUrl?: (string[]|null); - - /** CreateDownloadLinkResponse expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - - /** CreateDownloadLinkResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - } - - /** Represents a CreateDownloadLinkResponse. */ - class CreateDownloadLinkResponse implements ICreateDownloadLinkResponse { - - /** - * Constructs a new CreateDownloadLinkResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ICreateDownloadLinkResponse); - - /** CreateDownloadLinkResponse signedUrl. */ - public signedUrl: string[]; - - /** CreateDownloadLinkResponse expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** CreateDownloadLinkResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDownloadLinkResponse instance - */ - public static create(properties?: flyteidl.service.ICreateDownloadLinkResponse): flyteidl.service.CreateDownloadLinkResponse; - - /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. - * @param message CreateDownloadLinkResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ICreateDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDownloadLinkResponse - * @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.service.CreateDownloadLinkResponse; - - /** - * Verifies a CreateDownloadLinkResponse 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 PreSignedURLs. */ - interface IPreSignedURLs { - - /** PreSignedURLs signedUrl */ - signedUrl?: (string[]|null); - - /** PreSignedURLs expiresAt */ - expiresAt?: (google.protobuf.ITimestamp|null); - } - - /** Represents a PreSignedURLs. */ - class PreSignedURLs implements IPreSignedURLs { - - /** - * Constructs a new PreSignedURLs. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IPreSignedURLs); - - /** PreSignedURLs signedUrl. */ - public signedUrl: string[]; - - /** PreSignedURLs expiresAt. */ - public expiresAt?: (google.protobuf.ITimestamp|null); - - /** - * Creates a new PreSignedURLs instance using the specified properties. - * @param [properties] Properties to set - * @returns PreSignedURLs instance - */ - public static create(properties?: flyteidl.service.IPreSignedURLs): flyteidl.service.PreSignedURLs; - - /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. - * @param message PreSignedURLs message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IPreSignedURLs, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PreSignedURLs message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PreSignedURLs - * @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.service.PreSignedURLs; - - /** - * Verifies a PreSignedURLs 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 GetDataRequest. */ - interface IGetDataRequest { - - /** GetDataRequest flyteUrl */ - flyteUrl?: (string|null); - } - - /** Represents a GetDataRequest. */ - class GetDataRequest implements IGetDataRequest { - - /** - * Constructs a new GetDataRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IGetDataRequest); - - /** GetDataRequest flyteUrl. */ - public flyteUrl: string; - - /** - * Creates a new GetDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDataRequest instance - */ - public static create(properties?: flyteidl.service.IGetDataRequest): flyteidl.service.GetDataRequest; - - /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. - * @param message GetDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IGetDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDataRequest - * @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.service.GetDataRequest; - - /** - * Verifies a GetDataRequest 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 GetDataResponse. */ - interface IGetDataResponse { - - /** GetDataResponse literalMap */ - literalMap?: (flyteidl.core.ILiteralMap|null); - - /** GetDataResponse preSignedUrls */ - preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** GetDataResponse literal */ - literal?: (flyteidl.core.ILiteral|null); - } - - /** Represents a GetDataResponse. */ - class GetDataResponse implements IGetDataResponse { - - /** - * Constructs a new GetDataResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IGetDataResponse); - - /** GetDataResponse literalMap. */ - public literalMap?: (flyteidl.core.ILiteralMap|null); - - /** GetDataResponse preSignedUrls. */ - public preSignedUrls?: (flyteidl.service.IPreSignedURLs|null); - - /** GetDataResponse literal. */ - public literal?: (flyteidl.core.ILiteral|null); - - /** GetDataResponse data. */ - public data?: ("literalMap"|"preSignedUrls"|"literal"); - - /** - * Creates a new GetDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDataResponse instance - */ - public static create(properties?: flyteidl.service.IGetDataResponse): flyteidl.service.GetDataResponse; - - /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. - * @param message GetDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IGetDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GetDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDataResponse - * @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.service.GetDataResponse; - - /** - * Verifies a GetDataResponse 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); - } - - /** Represents a DataProxyService */ - class DataProxyService extends $protobuf.rpc.Service { - - /** - * Constructs a new DataProxyService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new DataProxyService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DataProxyService; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateUploadLocationResponse - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest, callback: flyteidl.service.DataProxyService.CreateUploadLocationCallback): void; - - /** - * Calls CreateUploadLocation. - * @param request CreateUploadLocationRequest message or plain object - * @returns Promise - */ - public createUploadLocation(request: flyteidl.service.ICreateUploadLocationRequest): Promise; - - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLocationCallback): void; - - /** - * Calls CreateDownloadLocation. - * @param request CreateDownloadLocationRequest message or plain object - * @returns Promise - */ - public createDownloadLocation(request: flyteidl.service.ICreateDownloadLocationRequest): Promise; - - /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse - */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest, callback: flyteidl.service.DataProxyService.CreateDownloadLinkCallback): void; - - /** - * Calls CreateDownloadLink. - * @param request CreateDownloadLinkRequest message or plain object - * @returns Promise - */ - public createDownloadLink(request: flyteidl.service.ICreateDownloadLinkRequest): Promise; - - /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and GetDataResponse - */ - public getData(request: flyteidl.service.IGetDataRequest, callback: flyteidl.service.DataProxyService.GetDataCallback): void; - - /** - * Calls GetData. - * @param request GetDataRequest message or plain object - * @returns Promise - */ - public getData(request: flyteidl.service.IGetDataRequest): Promise; - } - - namespace DataProxyService { - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. - * @param error Error, if any - * @param [response] CreateUploadLocationResponse - */ - type CreateUploadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateUploadLocationResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. - * @param error Error, if any - * @param [response] CreateDownloadLocationResponse - */ - type CreateDownloadLocationCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLocationResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. - * @param error Error, if any - * @param [response] CreateDownloadLinkResponse - */ - type CreateDownloadLinkCallback = (error: (Error|null), response?: flyteidl.service.CreateDownloadLinkResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @param error Error, if any - * @param [response] GetDataResponse - */ - type GetDataCallback = (error: (Error|null), response?: flyteidl.service.GetDataResponse) => void; - } - - /** Represents an ExternalPluginService */ - class ExternalPluginService extends $protobuf.rpc.Service { - - /** - * Constructs a new ExternalPluginService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ExternalPluginService; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskCreateResponse - */ - public createTask(request: flyteidl.service.ITaskCreateRequest, callback: flyteidl.service.ExternalPluginService.CreateTaskCallback): void; - - /** - * Calls CreateTask. - * @param request TaskCreateRequest message or plain object - * @returns Promise - */ - public createTask(request: flyteidl.service.ITaskCreateRequest): Promise; - - /** - * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskGetResponse - */ - public getTask(request: flyteidl.service.ITaskGetRequest, callback: flyteidl.service.ExternalPluginService.GetTaskCallback): void; - - /** - * Calls GetTask. - * @param request TaskGetRequest message or plain object - * @returns Promise - */ - public getTask(request: flyteidl.service.ITaskGetRequest): Promise; - - /** - * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @param callback Node-style callback called with the error, if any, and TaskDeleteResponse - */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest, callback: flyteidl.service.ExternalPluginService.DeleteTaskCallback): void; - - /** - * Calls DeleteTask. - * @param request TaskDeleteRequest message or plain object - * @returns Promise - */ - public deleteTask(request: flyteidl.service.ITaskDeleteRequest): Promise; - } - - namespace ExternalPluginService { - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @param error Error, if any - * @param [response] TaskCreateResponse - */ - type CreateTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskCreateResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @param error Error, if any - * @param [response] TaskGetResponse - */ - type GetTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskGetResponse) => void; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @param error Error, if any - * @param [response] TaskDeleteResponse - */ - type DeleteTaskCallback = (error: (Error|null), response?: flyteidl.service.TaskDeleteResponse) => void; - } - - /** State enum. */ - enum State { - RETRYABLE_FAILURE = 0, - PERMANENT_FAILURE = 1, - PENDING = 2, - RUNNING = 3, - SUCCEEDED = 4 - } - - /** Properties of a TaskCreateRequest. */ - interface ITaskCreateRequest { - - /** TaskCreateRequest inputs */ - inputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskCreateRequest template */ - template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskCreateRequest outputPrefix */ - outputPrefix?: (string|null); - } - - /** Represents a TaskCreateRequest. */ - class TaskCreateRequest implements ITaskCreateRequest { - - /** - * Constructs a new TaskCreateRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskCreateRequest); - - /** TaskCreateRequest inputs. */ - public inputs?: (flyteidl.core.ILiteralMap|null); - - /** TaskCreateRequest template. */ - public template?: (flyteidl.core.ITaskTemplate|null); - - /** TaskCreateRequest outputPrefix. */ - public outputPrefix: string; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateRequest instance - */ - public static create(properties?: flyteidl.service.ITaskCreateRequest): flyteidl.service.TaskCreateRequest; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @param message TaskCreateRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskCreateRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateRequest - * @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.service.TaskCreateRequest; - - /** - * Verifies a TaskCreateRequest 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 TaskCreateResponse. */ - interface ITaskCreateResponse { - - /** TaskCreateResponse jobId */ - jobId?: (string|null); - } - - /** Represents a TaskCreateResponse. */ - class TaskCreateResponse implements ITaskCreateResponse { - - /** - * Constructs a new TaskCreateResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskCreateResponse); - - /** TaskCreateResponse jobId. */ - public jobId: string; - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskCreateResponse instance - */ - public static create(properties?: flyteidl.service.ITaskCreateResponse): flyteidl.service.TaskCreateResponse; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @param message TaskCreateResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskCreateResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskCreateResponse - * @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.service.TaskCreateResponse; - - /** - * Verifies a TaskCreateResponse 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 TaskGetRequest. */ - interface ITaskGetRequest { - - /** TaskGetRequest taskType */ - taskType?: (string|null); - - /** TaskGetRequest jobId */ - jobId?: (string|null); - } - - /** Represents a TaskGetRequest. */ - class TaskGetRequest implements ITaskGetRequest { - - /** - * Constructs a new TaskGetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskGetRequest); - - /** TaskGetRequest taskType. */ - public taskType: string; - - /** TaskGetRequest jobId. */ - public jobId: string; - - /** - * Creates a new TaskGetRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGetRequest instance - */ - public static create(properties?: flyteidl.service.ITaskGetRequest): flyteidl.service.TaskGetRequest; - - /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. - * @param message TaskGetRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskGetRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGetRequest - * @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.service.TaskGetRequest; - - /** - * Verifies a TaskGetRequest 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 TaskGetResponse. */ - interface ITaskGetResponse { - - /** TaskGetResponse state */ - state?: (flyteidl.service.State|null); - - /** TaskGetResponse outputs */ - outputs?: (flyteidl.core.ILiteralMap|null); - } - - /** Represents a TaskGetResponse. */ - class TaskGetResponse implements ITaskGetResponse { - - /** - * Constructs a new TaskGetResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskGetResponse); - - /** TaskGetResponse state. */ - public state: flyteidl.service.State; - - /** TaskGetResponse outputs. */ - public outputs?: (flyteidl.core.ILiteralMap|null); - - /** - * Creates a new TaskGetResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskGetResponse instance - */ - public static create(properties?: flyteidl.service.ITaskGetResponse): flyteidl.service.TaskGetResponse; - - /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. - * @param message TaskGetResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskGetResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskGetResponse - * @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.service.TaskGetResponse; - - /** - * Verifies a TaskGetResponse 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 TaskDeleteRequest. */ - interface ITaskDeleteRequest { - - /** TaskDeleteRequest taskType */ - taskType?: (string|null); - - /** TaskDeleteRequest jobId */ - jobId?: (string|null); - } - - /** Represents a TaskDeleteRequest. */ - class TaskDeleteRequest implements ITaskDeleteRequest { - - /** - * Constructs a new TaskDeleteRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskDeleteRequest); - - /** TaskDeleteRequest taskType. */ - public taskType: string; - - /** TaskDeleteRequest jobId. */ - public jobId: string; - - /** - * Creates a new TaskDeleteRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteRequest instance - */ - public static create(properties?: flyteidl.service.ITaskDeleteRequest): flyteidl.service.TaskDeleteRequest; - - /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. - * @param message TaskDeleteRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskDeleteRequest - * @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.service.TaskDeleteRequest; - - /** - * Verifies a TaskDeleteRequest 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 TaskDeleteResponse. */ - interface ITaskDeleteResponse { - } - - /** Represents a TaskDeleteResponse. */ - class TaskDeleteResponse implements ITaskDeleteResponse { - - /** - * Constructs a new TaskDeleteResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.ITaskDeleteResponse); - - /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns TaskDeleteResponse instance - */ - public static create(properties?: flyteidl.service.ITaskDeleteResponse): flyteidl.service.TaskDeleteResponse; - - /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. - * @param message TaskDeleteResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.ITaskDeleteResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a TaskDeleteResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TaskDeleteResponse - * @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.service.TaskDeleteResponse; - - /** - * Verifies a TaskDeleteResponse 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 UserInfoRequest. */ - interface IUserInfoRequest { - } - - /** Represents a UserInfoRequest. */ - class UserInfoRequest implements IUserInfoRequest { - - /** - * Constructs a new UserInfoRequest. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IUserInfoRequest); - - /** - * Creates a new UserInfoRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInfoRequest instance - */ - public static create(properties?: flyteidl.service.IUserInfoRequest): flyteidl.service.UserInfoRequest; - - /** - * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. - * @param message UserInfoRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IUserInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInfoRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInfoRequest - * @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.service.UserInfoRequest; - - /** - * Verifies a UserInfoRequest 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 UserInfoResponse. */ - interface IUserInfoResponse { - - /** UserInfoResponse subject */ - subject?: (string|null); - - /** UserInfoResponse name */ - name?: (string|null); - - /** UserInfoResponse preferredUsername */ - preferredUsername?: (string|null); - - /** UserInfoResponse givenName */ - givenName?: (string|null); - - /** UserInfoResponse familyName */ - familyName?: (string|null); - - /** UserInfoResponse email */ - email?: (string|null); - - /** UserInfoResponse picture */ - picture?: (string|null); - - /** UserInfoResponse additionalClaims */ - additionalClaims?: (google.protobuf.IStruct|null); - } - - /** Represents a UserInfoResponse. */ - class UserInfoResponse implements IUserInfoResponse { - - /** - * Constructs a new UserInfoResponse. - * @param [properties] Properties to set - */ - constructor(properties?: flyteidl.service.IUserInfoResponse); - - /** UserInfoResponse subject. */ - public subject: string; - - /** UserInfoResponse name. */ - public name: string; - - /** UserInfoResponse preferredUsername. */ - public preferredUsername: string; - - /** UserInfoResponse givenName. */ - public givenName: string; - - /** UserInfoResponse familyName. */ - public familyName: string; - - /** UserInfoResponse email. */ - public email: string; - - /** UserInfoResponse picture. */ - public picture: string; - - /** UserInfoResponse additionalClaims. */ - public additionalClaims?: (google.protobuf.IStruct|null); - - /** - * Creates a new UserInfoResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns UserInfoResponse instance - */ - public static create(properties?: flyteidl.service.IUserInfoResponse): flyteidl.service.UserInfoResponse; - - /** - * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. - * @param message UserInfoResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: flyteidl.service.IUserInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UserInfoResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UserInfoResponse - * @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.service.UserInfoResponse; - - /** - * Verifies a UserInfoResponse 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); - } - - /** Represents an IdentityService */ - class IdentityService extends $protobuf.rpc.Service { - - /** - * Constructs a new IdentityService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new IdentityService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IdentityService; - - /** - * Calls UserInfo. - * @param request UserInfoRequest message or plain object - * @param callback Node-style callback called with the error, if any, and UserInfoResponse - */ - public userInfo(request: flyteidl.service.IUserInfoRequest, callback: flyteidl.service.IdentityService.UserInfoCallback): void; - - /** - * Calls UserInfo. - * @param request UserInfoRequest message or plain object - * @returns Promise - */ - public userInfo(request: flyteidl.service.IUserInfoRequest): Promise; - } - - namespace IdentityService { - - /** - * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. - * @param error Error, if any - * @param [response] UserInfoResponse - */ - type UserInfoCallback = (error: (Error|null), response?: flyteidl.service.UserInfoResponse) => void; - } - - /** Represents a SignalService */ - class SignalService extends $protobuf.rpc.Service { - - /** - * Constructs a new SignalService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new SignalService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): SignalService; - - /** - * Calls GetOrCreateSignal. - * @param request SignalGetOrCreateRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Signal - */ - public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest, callback: flyteidl.service.SignalService.GetOrCreateSignalCallback): void; - - /** - * Calls GetOrCreateSignal. - * @param request SignalGetOrCreateRequest message or plain object - * @returns Promise - */ - public getOrCreateSignal(request: flyteidl.admin.ISignalGetOrCreateRequest): Promise; - - /** - * Calls ListSignals. - * @param request SignalListRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SignalList - */ - public listSignals(request: flyteidl.admin.ISignalListRequest, callback: flyteidl.service.SignalService.ListSignalsCallback): void; - - /** - * Calls ListSignals. - * @param request SignalListRequest message or plain object - * @returns Promise - */ - public listSignals(request: flyteidl.admin.ISignalListRequest): Promise; - - /** - * Calls SetSignal. - * @param request SignalSetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SignalSetResponse - */ - public setSignal(request: flyteidl.admin.ISignalSetRequest, callback: flyteidl.service.SignalService.SetSignalCallback): void; - - /** - * Calls SetSignal. - * @param request SignalSetRequest message or plain object - * @returns Promise - */ - public setSignal(request: flyteidl.admin.ISignalSetRequest): Promise; - } - - namespace SignalService { - - /** - * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. - * @param error Error, if any - * @param [response] Signal - */ - type GetOrCreateSignalCallback = (error: (Error|null), response?: flyteidl.admin.Signal) => void; - - /** - * Callback as used by {@link flyteidl.service.SignalService#listSignals}. - * @param error Error, if any - * @param [response] SignalList - */ - type ListSignalsCallback = (error: (Error|null), response?: flyteidl.admin.SignalList) => void; - - /** - * Callback as used by {@link flyteidl.service.SignalService#setSignal}. - * @param error Error, if any - * @param [response] SignalSetResponse - */ - type SetSignalCallback = (error: (Error|null), response?: flyteidl.admin.SignalSetResponse) => void; - } - } -} - -/** Namespace google. */ -export namespace google { - - /** Namespace protobuf. */ - namespace protobuf { - - /** Properties of a Timestamp. */ - interface ITimestamp { - - /** Timestamp seconds */ - seconds?: (Long|null); - - /** Timestamp nanos */ - nanos?: (number|null); - } - - /** Represents a Timestamp. */ - class Timestamp implements ITimestamp { - - /** - * Constructs a new Timestamp. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ITimestamp); - - /** Timestamp seconds. */ - public seconds: Long; - - /** Timestamp nanos. */ - public nanos: number; - - /** - * Creates a new Timestamp instance using the specified properties. - * @param [properties] Properties to set - * @returns Timestamp instance - */ - public static create(properties?: google.protobuf.ITimestamp): google.protobuf.Timestamp; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @param message Timestamp message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ITimestamp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Timestamp - * @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): google.protobuf.Timestamp; - - /** - * Verifies a Timestamp 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 Duration. */ - interface IDuration { - - /** Duration seconds */ - seconds?: (Long|null); - - /** Duration nanos */ - nanos?: (number|null); - } - - /** Represents a Duration. */ - class Duration implements IDuration { - - /** - * Constructs a new Duration. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDuration); - - /** Duration seconds. */ - public seconds: Long; - - /** Duration nanos. */ - public nanos: number; - - /** - * Creates a new Duration instance using the specified properties. - * @param [properties] Properties to set - * @returns Duration instance - */ - public static create(properties?: google.protobuf.IDuration): google.protobuf.Duration; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @param message Duration message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDuration, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Duration - * @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): google.protobuf.Duration; - - /** - * Verifies a Duration 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 Struct. */ - interface IStruct { - - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); - } - - /** Represents a Struct. */ - class Struct implements IStruct { - - /** - * Constructs a new Struct. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStruct); - - /** Struct fields. */ - public fields: { [k: string]: google.protobuf.IValue }; - - /** - * Creates a new Struct instance using the specified properties. - * @param [properties] Properties to set - * @returns Struct instance - */ - public static create(properties?: google.protobuf.IStruct): google.protobuf.Struct; - - /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @param message Struct message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Struct message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Struct - * @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): google.protobuf.Struct; - - /** - * Verifies a Struct 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 Value. */ - interface IValue { - - /** Value nullValue */ - nullValue?: (google.protobuf.NullValue|null); - - /** Value numberValue */ - numberValue?: (number|null); - - /** Value stringValue */ - stringValue?: (string|null); - - /** Value boolValue */ - boolValue?: (boolean|null); - - /** Value structValue */ - structValue?: (google.protobuf.IStruct|null); - - /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); - } - - /** Represents a Value. */ - class Value implements IValue { - - /** - * Constructs a new Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IValue); - - /** Value nullValue. */ - public nullValue: google.protobuf.NullValue; - - /** Value numberValue. */ - public numberValue: number; - - /** Value stringValue. */ - public stringValue: string; - - /** Value boolValue. */ - public boolValue: boolean; - - /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); - - /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); - - /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); - - /** - * Creates a new Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Value instance - */ - public static create(properties?: google.protobuf.IValue): google.protobuf.Value; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @param message Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Value - * @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): google.protobuf.Value; - - /** - * Verifies a Value 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); - } - - /** NullValue enum. */ - enum NullValue { - NULL_VALUE = 0 - } - - /** Properties of a ListValue. */ - interface IListValue { - - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); - } - - /** Represents a ListValue. */ - class ListValue implements IListValue { - - /** - * Constructs a new ListValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IListValue); - - /** ListValue values. */ - public values: google.protobuf.IValue[]; - - /** - * Creates a new ListValue instance using the specified properties. - * @param [properties] Properties to set - * @returns ListValue instance - */ - public static create(properties?: google.protobuf.IListValue): google.protobuf.ListValue; - - /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @param message ListValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ListValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListValue - * @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): google.protobuf.ListValue; - - /** - * Verifies a ListValue 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 DoubleValue. */ - interface IDoubleValue { - - /** DoubleValue value */ - value?: (number|null); - } - - /** Represents a DoubleValue. */ - class DoubleValue implements IDoubleValue { - - /** - * Constructs a new DoubleValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDoubleValue); - - /** DoubleValue value. */ - public value: number; - - /** - * Creates a new DoubleValue instance using the specified properties. - * @param [properties] Properties to set - * @returns DoubleValue instance - */ - public static create(properties?: google.protobuf.IDoubleValue): google.protobuf.DoubleValue; - - /** - * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. - * @param message DoubleValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDoubleValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DoubleValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DoubleValue - * @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): google.protobuf.DoubleValue; - - /** - * Verifies a DoubleValue 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 FloatValue. */ - interface IFloatValue { - - /** FloatValue value */ - value?: (number|null); - } - - /** Represents a FloatValue. */ - class FloatValue implements IFloatValue { - - /** - * Constructs a new FloatValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFloatValue); - - /** FloatValue value. */ - public value: number; - - /** - * Creates a new FloatValue instance using the specified properties. - * @param [properties] Properties to set - * @returns FloatValue instance - */ - public static create(properties?: google.protobuf.IFloatValue): google.protobuf.FloatValue; - - /** - * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. - * @param message FloatValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFloatValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FloatValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FloatValue - * @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): google.protobuf.FloatValue; - - /** - * Verifies a FloatValue 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 an Int64Value. */ - interface IInt64Value { - - /** Int64Value value */ - value?: (Long|null); - } - - /** Represents an Int64Value. */ - class Int64Value implements IInt64Value { - - /** - * Constructs a new Int64Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IInt64Value); - - /** Int64Value value. */ - public value: Long; - - /** - * Creates a new Int64Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Int64Value instance - */ - public static create(properties?: google.protobuf.IInt64Value): google.protobuf.Int64Value; - - /** - * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. - * @param message Int64Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Int64Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int64Value - * @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): google.protobuf.Int64Value; - - /** - * Verifies an Int64Value 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 UInt64Value. */ - interface IUInt64Value { - - /** UInt64Value value */ - value?: (Long|null); - } - - /** Represents a UInt64Value. */ - class UInt64Value implements IUInt64Value { - - /** - * Constructs a new UInt64Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUInt64Value); - - /** UInt64Value value. */ - public value: Long; - - /** - * Creates a new UInt64Value instance using the specified properties. - * @param [properties] Properties to set - * @returns UInt64Value instance - */ - public static create(properties?: google.protobuf.IUInt64Value): google.protobuf.UInt64Value; - - /** - * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. - * @param message UInt64Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUInt64Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UInt64Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UInt64Value - * @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): google.protobuf.UInt64Value; - - /** - * Verifies a UInt64Value 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 an Int32Value. */ - interface IInt32Value { - - /** Int32Value value */ - value?: (number|null); - } - - /** Represents an Int32Value. */ - class Int32Value implements IInt32Value { - - /** - * Constructs a new Int32Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IInt32Value); - - /** Int32Value value. */ - public value: number; - - /** - * Creates a new Int32Value instance using the specified properties. - * @param [properties] Properties to set - * @returns Int32Value instance - */ - public static create(properties?: google.protobuf.IInt32Value): google.protobuf.Int32Value; - - /** - * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. - * @param message Int32Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Int32Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int32Value - * @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): google.protobuf.Int32Value; - - /** - * Verifies an Int32Value 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 UInt32Value. */ - interface IUInt32Value { - - /** UInt32Value value */ - value?: (number|null); - } - - /** Represents a UInt32Value. */ - class UInt32Value implements IUInt32Value { - - /** - * Constructs a new UInt32Value. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUInt32Value); - - /** UInt32Value value. */ - public value: number; - - /** - * Creates a new UInt32Value instance using the specified properties. - * @param [properties] Properties to set - * @returns UInt32Value instance - */ - public static create(properties?: google.protobuf.IUInt32Value): google.protobuf.UInt32Value; - - /** - * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. - * @param message UInt32Value message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUInt32Value, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a UInt32Value message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UInt32Value - * @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): google.protobuf.UInt32Value; - - /** - * Verifies a UInt32Value 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 BoolValue. */ - interface IBoolValue { - - /** BoolValue value */ - value?: (boolean|null); - } - - /** Represents a BoolValue. */ - class BoolValue implements IBoolValue { - - /** - * Constructs a new BoolValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IBoolValue); - - /** BoolValue value. */ - public value: boolean; - - /** - * Creates a new BoolValue instance using the specified properties. - * @param [properties] Properties to set - * @returns BoolValue instance - */ - public static create(properties?: google.protobuf.IBoolValue): google.protobuf.BoolValue; - - /** - * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. - * @param message BoolValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IBoolValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BoolValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BoolValue - * @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): google.protobuf.BoolValue; - - /** - * Verifies a BoolValue 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 StringValue. */ - interface IStringValue { - - /** StringValue value */ - value?: (string|null); - } - - /** Represents a StringValue. */ - class StringValue implements IStringValue { - - /** - * Constructs a new StringValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IStringValue); - - /** StringValue value. */ - public value: string; - - /** - * Creates a new StringValue instance using the specified properties. - * @param [properties] Properties to set - * @returns StringValue instance - */ - public static create(properties?: google.protobuf.IStringValue): google.protobuf.StringValue; - - /** - * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. - * @param message StringValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IStringValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a StringValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StringValue - * @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): google.protobuf.StringValue; - - /** - * Verifies a StringValue 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 BytesValue. */ - interface IBytesValue { - - /** BytesValue value */ - value?: (Uint8Array|null); - } - - /** Represents a BytesValue. */ - class BytesValue implements IBytesValue { - - /** - * Constructs a new BytesValue. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IBytesValue); - - /** BytesValue value. */ - public value: Uint8Array; - - /** - * Creates a new BytesValue instance using the specified properties. - * @param [properties] Properties to set - * @returns BytesValue instance - */ - public static create(properties?: google.protobuf.IBytesValue): google.protobuf.BytesValue; - - /** - * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. - * @param message BytesValue message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IBytesValue, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BytesValue message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BytesValue - * @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): google.protobuf.BytesValue; - - /** - * Verifies a BytesValue 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 an Any. */ - interface IAny { - - /** Any type_url */ - type_url?: (string|null); - - /** Any value */ - value?: (Uint8Array|null); - } - - /** Represents an Any. */ - class Any implements IAny { - - /** - * Constructs a new Any. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IAny); - - /** Any type_url. */ - public type_url: string; - - /** Any value. */ - public value: Uint8Array; - - /** - * Creates a new Any instance using the specified properties. - * @param [properties] Properties to set - * @returns Any instance - */ - public static create(properties?: google.protobuf.IAny): google.protobuf.Any; - - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @param message Any message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IAny, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Any message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Any - * @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): google.protobuf.Any; - - /** - * Verifies an Any 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 FileDescriptorSet. */ - interface IFileDescriptorSet { - - /** FileDescriptorSet file */ - file?: (google.protobuf.IFileDescriptorProto[]|null); - } - - /** Represents a FileDescriptorSet. */ - class FileDescriptorSet implements IFileDescriptorSet { - - /** - * Constructs a new FileDescriptorSet. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorSet); - - /** FileDescriptorSet file. */ - public file: google.protobuf.IFileDescriptorProto[]; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorSet instance - */ - public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @param message FileDescriptorSet message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorSet - * @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): google.protobuf.FileDescriptorSet; - - /** - * Verifies a FileDescriptorSet 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 FileDescriptorProto. */ - interface IFileDescriptorProto { - - /** FileDescriptorProto name */ - name?: (string|null); - - /** FileDescriptorProto package */ - "package"?: (string|null); - - /** FileDescriptorProto dependency */ - dependency?: (string[]|null); - - /** FileDescriptorProto publicDependency */ - publicDependency?: (number[]|null); - - /** FileDescriptorProto weakDependency */ - weakDependency?: (number[]|null); - - /** FileDescriptorProto messageType */ - messageType?: (google.protobuf.IDescriptorProto[]|null); - - /** FileDescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** FileDescriptorProto service */ - service?: (google.protobuf.IServiceDescriptorProto[]|null); - - /** FileDescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** FileDescriptorProto options */ - options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo */ - sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax */ - syntax?: (string|null); - } - - /** Represents a FileDescriptorProto. */ - class FileDescriptorProto implements IFileDescriptorProto { - - /** - * Constructs a new FileDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileDescriptorProto); - - /** FileDescriptorProto name. */ - public name: string; - - /** FileDescriptorProto package. */ - public package: string; - - /** FileDescriptorProto dependency. */ - public dependency: string[]; - - /** FileDescriptorProto publicDependency. */ - public publicDependency: number[]; - - /** FileDescriptorProto weakDependency. */ - public weakDependency: number[]; - - /** FileDescriptorProto messageType. */ - public messageType: google.protobuf.IDescriptorProto[]; - - /** FileDescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** FileDescriptorProto service. */ - public service: google.protobuf.IServiceDescriptorProto[]; - - /** FileDescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** FileDescriptorProto options. */ - public options?: (google.protobuf.IFileOptions|null); - - /** FileDescriptorProto sourceCodeInfo. */ - public sourceCodeInfo?: (google.protobuf.ISourceCodeInfo|null); - - /** FileDescriptorProto syntax. */ - public syntax: string; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FileDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @param message FileDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileDescriptorProto - * @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): google.protobuf.FileDescriptorProto; - - /** - * Verifies a FileDescriptorProto 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 DescriptorProto. */ - interface IDescriptorProto { - - /** DescriptorProto name */ - name?: (string|null); - - /** DescriptorProto field */ - field?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto extension */ - extension?: (google.protobuf.IFieldDescriptorProto[]|null); - - /** DescriptorProto nestedType */ - nestedType?: (google.protobuf.IDescriptorProto[]|null); - - /** DescriptorProto enumType */ - enumType?: (google.protobuf.IEnumDescriptorProto[]|null); - - /** DescriptorProto extensionRange */ - extensionRange?: (google.protobuf.DescriptorProto.IExtensionRange[]|null); - - /** DescriptorProto oneofDecl */ - oneofDecl?: (google.protobuf.IOneofDescriptorProto[]|null); - - /** DescriptorProto options */ - options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange */ - reservedRange?: (google.protobuf.DescriptorProto.IReservedRange[]|null); - - /** DescriptorProto reservedName */ - reservedName?: (string[]|null); - } - - /** Represents a DescriptorProto. */ - class DescriptorProto implements IDescriptorProto { - - /** - * Constructs a new DescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IDescriptorProto); - - /** DescriptorProto name. */ - public name: string; - - /** DescriptorProto field. */ - public field: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto extension. */ - public extension: google.protobuf.IFieldDescriptorProto[]; - - /** DescriptorProto nestedType. */ - public nestedType: google.protobuf.IDescriptorProto[]; - - /** DescriptorProto enumType. */ - public enumType: google.protobuf.IEnumDescriptorProto[]; - - /** DescriptorProto extensionRange. */ - public extensionRange: google.protobuf.DescriptorProto.IExtensionRange[]; - - /** DescriptorProto oneofDecl. */ - public oneofDecl: google.protobuf.IOneofDescriptorProto[]; - - /** DescriptorProto options. */ - public options?: (google.protobuf.IMessageOptions|null); - - /** DescriptorProto reservedRange. */ - public reservedRange: google.protobuf.DescriptorProto.IReservedRange[]; - - /** DescriptorProto reservedName. */ - public reservedName: string[]; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns DescriptorProto instance - */ - public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @param message DescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DescriptorProto - * @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): google.protobuf.DescriptorProto; - - /** - * Verifies a DescriptorProto 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); - } - - namespace DescriptorProto { - - /** Properties of an ExtensionRange. */ - interface IExtensionRange { - - /** ExtensionRange start */ - start?: (number|null); - - /** ExtensionRange end */ - end?: (number|null); - } - - /** Represents an ExtensionRange. */ - class ExtensionRange implements IExtensionRange { - - /** - * Constructs a new ExtensionRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange); - - /** ExtensionRange start. */ - public start: number; - - /** ExtensionRange end. */ - public end: number; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ExtensionRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @param message ExtensionRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExtensionRange - * @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): google.protobuf.DescriptorProto.ExtensionRange; - - /** - * Verifies an ExtensionRange 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 ReservedRange. */ - interface IReservedRange { - - /** ReservedRange start */ - start?: (number|null); - - /** ReservedRange end */ - end?: (number|null); - } - - /** Represents a ReservedRange. */ - class ReservedRange implements IReservedRange { - - /** - * Constructs a new ReservedRange. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.DescriptorProto.IReservedRange); - - /** ReservedRange start. */ - public start: number; - - /** ReservedRange end. */ - public end: number; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @param [properties] Properties to set - * @returns ReservedRange instance - */ - public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @param message ReservedRange message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.DescriptorProto.IReservedRange, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ReservedRange - * @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): google.protobuf.DescriptorProto.ReservedRange; - - /** - * Verifies a ReservedRange 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 FieldDescriptorProto. */ - interface IFieldDescriptorProto { - - /** FieldDescriptorProto name */ - name?: (string|null); - - /** FieldDescriptorProto number */ - number?: (number|null); - - /** FieldDescriptorProto label */ - label?: (google.protobuf.FieldDescriptorProto.Label|null); - - /** FieldDescriptorProto type */ - type?: (google.protobuf.FieldDescriptorProto.Type|null); - - /** FieldDescriptorProto typeName */ - typeName?: (string|null); - - /** FieldDescriptorProto extendee */ - extendee?: (string|null); - - /** FieldDescriptorProto defaultValue */ - defaultValue?: (string|null); - - /** FieldDescriptorProto oneofIndex */ - oneofIndex?: (number|null); - - /** FieldDescriptorProto jsonName */ - jsonName?: (string|null); - - /** FieldDescriptorProto options */ - options?: (google.protobuf.IFieldOptions|null); - } - - /** Represents a FieldDescriptorProto. */ - class FieldDescriptorProto implements IFieldDescriptorProto { - - /** - * Constructs a new FieldDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldDescriptorProto); - - /** FieldDescriptorProto name. */ - public name: string; - - /** FieldDescriptorProto number. */ - public number: number; - - /** FieldDescriptorProto label. */ - public label: google.protobuf.FieldDescriptorProto.Label; - - /** FieldDescriptorProto type. */ - public type: google.protobuf.FieldDescriptorProto.Type; - - /** FieldDescriptorProto typeName. */ - public typeName: string; - - /** FieldDescriptorProto extendee. */ - public extendee: string; - - /** FieldDescriptorProto defaultValue. */ - public defaultValue: string; - - /** FieldDescriptorProto oneofIndex. */ - public oneofIndex: number; - - /** FieldDescriptorProto jsonName. */ - public jsonName: string; - - /** FieldDescriptorProto options. */ - public options?: (google.protobuf.IFieldOptions|null); - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldDescriptorProto instance - */ - public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @param message FieldDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldDescriptorProto - * @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): google.protobuf.FieldDescriptorProto; - - /** - * Verifies a FieldDescriptorProto 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); - } - - namespace FieldDescriptorProto { - - /** Type enum. */ - enum Type { - TYPE_DOUBLE = 1, - TYPE_FLOAT = 2, - TYPE_INT64 = 3, - TYPE_UINT64 = 4, - TYPE_INT32 = 5, - TYPE_FIXED64 = 6, - TYPE_FIXED32 = 7, - TYPE_BOOL = 8, - TYPE_STRING = 9, - TYPE_GROUP = 10, - TYPE_MESSAGE = 11, - TYPE_BYTES = 12, - TYPE_UINT32 = 13, - TYPE_ENUM = 14, - TYPE_SFIXED32 = 15, - TYPE_SFIXED64 = 16, - TYPE_SINT32 = 17, - TYPE_SINT64 = 18 - } - - /** Label enum. */ - enum Label { - LABEL_OPTIONAL = 1, - LABEL_REQUIRED = 2, - LABEL_REPEATED = 3 - } - } - - /** Properties of an OneofDescriptorProto. */ - interface IOneofDescriptorProto { - - /** OneofDescriptorProto name */ - name?: (string|null); - - /** OneofDescriptorProto options */ - options?: (google.protobuf.IOneofOptions|null); - } - - /** Represents an OneofDescriptorProto. */ - class OneofDescriptorProto implements IOneofDescriptorProto { - - /** - * Constructs a new OneofDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofDescriptorProto); - - /** OneofDescriptorProto name. */ - public name: string; - - /** OneofDescriptorProto options. */ - public options?: (google.protobuf.IOneofOptions|null); - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofDescriptorProto instance - */ - public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @param message OneofDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofDescriptorProto - * @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): google.protobuf.OneofDescriptorProto; - - /** - * Verifies an OneofDescriptorProto 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 an EnumDescriptorProto. */ - interface IEnumDescriptorProto { - - /** EnumDescriptorProto name */ - name?: (string|null); - - /** EnumDescriptorProto value */ - value?: (google.protobuf.IEnumValueDescriptorProto[]|null); - - /** EnumDescriptorProto options */ - options?: (google.protobuf.IEnumOptions|null); - } - - /** Represents an EnumDescriptorProto. */ - class EnumDescriptorProto implements IEnumDescriptorProto { - - /** - * Constructs a new EnumDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumDescriptorProto); - - /** EnumDescriptorProto name. */ - public name: string; - - /** EnumDescriptorProto value. */ - public value: google.protobuf.IEnumValueDescriptorProto[]; - - /** EnumDescriptorProto options. */ - public options?: (google.protobuf.IEnumOptions|null); - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @param message EnumDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumDescriptorProto - * @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): google.protobuf.EnumDescriptorProto; - - /** - * Verifies an EnumDescriptorProto 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 an EnumValueDescriptorProto. */ - interface IEnumValueDescriptorProto { - - /** EnumValueDescriptorProto name */ - name?: (string|null); - - /** EnumValueDescriptorProto number */ - number?: (number|null); - - /** EnumValueDescriptorProto options */ - options?: (google.protobuf.IEnumValueOptions|null); - } - - /** Represents an EnumValueDescriptorProto. */ - class EnumValueDescriptorProto implements IEnumValueDescriptorProto { - - /** - * Constructs a new EnumValueDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueDescriptorProto); - - /** EnumValueDescriptorProto name. */ - public name: string; - - /** EnumValueDescriptorProto number. */ - public number: number; - - /** EnumValueDescriptorProto options. */ - public options?: (google.protobuf.IEnumValueOptions|null); - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueDescriptorProto instance - */ - public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @param message EnumValueDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueDescriptorProto - * @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): google.protobuf.EnumValueDescriptorProto; - - /** - * Verifies an EnumValueDescriptorProto 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 ServiceDescriptorProto. */ - interface IServiceDescriptorProto { - - /** ServiceDescriptorProto name */ - name?: (string|null); - - /** ServiceDescriptorProto method */ - method?: (google.protobuf.IMethodDescriptorProto[]|null); - - /** ServiceDescriptorProto options */ - options?: (google.protobuf.IServiceOptions|null); - } - - /** Represents a ServiceDescriptorProto. */ - class ServiceDescriptorProto implements IServiceDescriptorProto { - - /** - * Constructs a new ServiceDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceDescriptorProto); - - /** ServiceDescriptorProto name. */ - public name: string; - - /** ServiceDescriptorProto method. */ - public method: google.protobuf.IMethodDescriptorProto[]; - - /** ServiceDescriptorProto options. */ - public options?: (google.protobuf.IServiceOptions|null); - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceDescriptorProto instance - */ - public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @param message ServiceDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceDescriptorProto - * @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): google.protobuf.ServiceDescriptorProto; - - /** - * Verifies a ServiceDescriptorProto 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 MethodDescriptorProto. */ - interface IMethodDescriptorProto { - - /** MethodDescriptorProto name */ - name?: (string|null); - - /** MethodDescriptorProto inputType */ - inputType?: (string|null); - - /** MethodDescriptorProto outputType */ - outputType?: (string|null); - - /** MethodDescriptorProto options */ - options?: (google.protobuf.IMethodOptions|null); - - /** MethodDescriptorProto clientStreaming */ - clientStreaming?: (boolean|null); - - /** MethodDescriptorProto serverStreaming */ - serverStreaming?: (boolean|null); - } - - /** Represents a MethodDescriptorProto. */ - class MethodDescriptorProto implements IMethodDescriptorProto { - - /** - * Constructs a new MethodDescriptorProto. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodDescriptorProto); - - /** MethodDescriptorProto name. */ - public name: string; - - /** MethodDescriptorProto inputType. */ - public inputType: string; - - /** MethodDescriptorProto outputType. */ - public outputType: string; - - /** MethodDescriptorProto options. */ - public options?: (google.protobuf.IMethodOptions|null); - - /** MethodDescriptorProto clientStreaming. */ - public clientStreaming: boolean; - - /** MethodDescriptorProto serverStreaming. */ - public serverStreaming: boolean; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodDescriptorProto instance - */ - public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @param message MethodDescriptorProto message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodDescriptorProto - * @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): google.protobuf.MethodDescriptorProto; - - /** - * Verifies a MethodDescriptorProto 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 FileOptions. */ - interface IFileOptions { - - /** FileOptions javaPackage */ - javaPackage?: (string|null); - - /** FileOptions javaOuterClassname */ - javaOuterClassname?: (string|null); - - /** FileOptions javaMultipleFiles */ - javaMultipleFiles?: (boolean|null); - - /** FileOptions javaGenerateEqualsAndHash */ - javaGenerateEqualsAndHash?: (boolean|null); - - /** FileOptions javaStringCheckUtf8 */ - javaStringCheckUtf8?: (boolean|null); - - /** FileOptions optimizeFor */ - optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null); - - /** FileOptions goPackage */ - goPackage?: (string|null); - - /** FileOptions ccGenericServices */ - ccGenericServices?: (boolean|null); - - /** FileOptions javaGenericServices */ - javaGenericServices?: (boolean|null); - - /** FileOptions pyGenericServices */ - pyGenericServices?: (boolean|null); - - /** FileOptions deprecated */ - deprecated?: (boolean|null); - - /** FileOptions ccEnableArenas */ - ccEnableArenas?: (boolean|null); - - /** FileOptions objcClassPrefix */ - objcClassPrefix?: (string|null); - - /** FileOptions csharpNamespace */ - csharpNamespace?: (string|null); - - /** FileOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a FileOptions. */ - class FileOptions implements IFileOptions { - - /** - * Constructs a new FileOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFileOptions); - - /** FileOptions javaPackage. */ - public javaPackage: string; - - /** FileOptions javaOuterClassname. */ - public javaOuterClassname: string; - - /** FileOptions javaMultipleFiles. */ - public javaMultipleFiles: boolean; - - /** FileOptions javaGenerateEqualsAndHash. */ - public javaGenerateEqualsAndHash: boolean; - - /** FileOptions javaStringCheckUtf8. */ - public javaStringCheckUtf8: boolean; - - /** FileOptions optimizeFor. */ - public optimizeFor: google.protobuf.FileOptions.OptimizeMode; - - /** FileOptions goPackage. */ - public goPackage: string; - - /** FileOptions ccGenericServices. */ - public ccGenericServices: boolean; - - /** FileOptions javaGenericServices. */ - public javaGenericServices: boolean; - - /** FileOptions pyGenericServices. */ - public pyGenericServices: boolean; - - /** FileOptions deprecated. */ - public deprecated: boolean; - - /** FileOptions ccEnableArenas. */ - public ccEnableArenas: boolean; - - /** FileOptions objcClassPrefix. */ - public objcClassPrefix: string; - - /** FileOptions csharpNamespace. */ - public csharpNamespace: string; - - /** FileOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FileOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FileOptions instance - */ - public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @param message FileOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFileOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FileOptions - * @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): google.protobuf.FileOptions; - - /** - * Verifies a FileOptions 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); - } - - namespace FileOptions { - - /** OptimizeMode enum. */ - enum OptimizeMode { - SPEED = 1, - CODE_SIZE = 2, - LITE_RUNTIME = 3 - } - } - - /** Properties of a MessageOptions. */ - interface IMessageOptions { - - /** MessageOptions messageSetWireFormat */ - messageSetWireFormat?: (boolean|null); - - /** MessageOptions noStandardDescriptorAccessor */ - noStandardDescriptorAccessor?: (boolean|null); - - /** MessageOptions deprecated */ - deprecated?: (boolean|null); - - /** MessageOptions mapEntry */ - mapEntry?: (boolean|null); - - /** MessageOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a MessageOptions. */ - class MessageOptions implements IMessageOptions { - - /** - * Constructs a new MessageOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMessageOptions); - - /** MessageOptions messageSetWireFormat. */ - public messageSetWireFormat: boolean; - - /** MessageOptions noStandardDescriptorAccessor. */ - public noStandardDescriptorAccessor: boolean; - - /** MessageOptions deprecated. */ - public deprecated: boolean; - - /** MessageOptions mapEntry. */ - public mapEntry: boolean; - - /** MessageOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MessageOptions instance - */ - public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @param message MessageOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMessageOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MessageOptions - * @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): google.protobuf.MessageOptions; - - /** - * Verifies a MessageOptions 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 FieldOptions. */ - interface IFieldOptions { - - /** FieldOptions ctype */ - ctype?: (google.protobuf.FieldOptions.CType|null); - - /** FieldOptions packed */ - packed?: (boolean|null); - - /** FieldOptions jstype */ - jstype?: (google.protobuf.FieldOptions.JSType|null); - - /** FieldOptions lazy */ - lazy?: (boolean|null); - - /** FieldOptions deprecated */ - deprecated?: (boolean|null); - - /** FieldOptions weak */ - weak?: (boolean|null); - - /** FieldOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a FieldOptions. */ - class FieldOptions implements IFieldOptions { - - /** - * Constructs a new FieldOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IFieldOptions); - - /** FieldOptions ctype. */ - public ctype: google.protobuf.FieldOptions.CType; - - /** FieldOptions packed. */ - public packed: boolean; - - /** FieldOptions jstype. */ - public jstype: google.protobuf.FieldOptions.JSType; - - /** FieldOptions lazy. */ - public lazy: boolean; - - /** FieldOptions deprecated. */ - public deprecated: boolean; - - /** FieldOptions weak. */ - public weak: boolean; - - /** FieldOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns FieldOptions instance - */ - public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @param message FieldOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IFieldOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FieldOptions - * @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): google.protobuf.FieldOptions; - - /** - * Verifies a FieldOptions 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); - } - - namespace FieldOptions { - - /** CType enum. */ - enum CType { - STRING = 0, - CORD = 1, - STRING_PIECE = 2 - } - - /** JSType enum. */ - enum JSType { - JS_NORMAL = 0, - JS_STRING = 1, - JS_NUMBER = 2 - } - } - - /** Properties of an OneofOptions. */ - interface IOneofOptions { - - /** OneofOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an OneofOptions. */ - class OneofOptions implements IOneofOptions { - - /** - * Constructs a new OneofOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IOneofOptions); - - /** OneofOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns OneofOptions instance - */ - public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @param message OneofOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IOneofOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OneofOptions - * @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): google.protobuf.OneofOptions; - - /** - * Verifies an OneofOptions 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 an EnumOptions. */ - interface IEnumOptions { - - /** EnumOptions allowAlias */ - allowAlias?: (boolean|null); - - /** EnumOptions deprecated */ - deprecated?: (boolean|null); - - /** EnumOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an EnumOptions. */ - class EnumOptions implements IEnumOptions { - - /** - * Constructs a new EnumOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumOptions); - - /** EnumOptions allowAlias. */ - public allowAlias: boolean; - - /** EnumOptions deprecated. */ - public deprecated: boolean; - - /** EnumOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumOptions instance - */ - public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @param message EnumOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumOptions - * @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): google.protobuf.EnumOptions; - - /** - * Verifies an EnumOptions 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 an EnumValueOptions. */ - interface IEnumValueOptions { - - /** EnumValueOptions deprecated */ - deprecated?: (boolean|null); - - /** EnumValueOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents an EnumValueOptions. */ - class EnumValueOptions implements IEnumValueOptions { - - /** - * Constructs a new EnumValueOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IEnumValueOptions); - - /** EnumValueOptions deprecated. */ - public deprecated: boolean; - - /** EnumValueOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns EnumValueOptions instance - */ - public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @param message EnumValueOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IEnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EnumValueOptions - * @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): google.protobuf.EnumValueOptions; - - /** - * Verifies an EnumValueOptions 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 ServiceOptions. */ - interface IServiceOptions { - - /** ServiceOptions deprecated */ - deprecated?: (boolean|null); - - /** ServiceOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - } - - /** Represents a ServiceOptions. */ - class ServiceOptions implements IServiceOptions { - - /** - * Constructs a new ServiceOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IServiceOptions); - - /** ServiceOptions deprecated. */ - public deprecated: boolean; - - /** ServiceOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns ServiceOptions instance - */ - public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @param message ServiceOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ServiceOptions - * @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): google.protobuf.ServiceOptions; - - /** - * Verifies a ServiceOptions 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 MethodOptions. */ - interface IMethodOptions { - - /** MethodOptions deprecated */ - deprecated?: (boolean|null); - - /** MethodOptions uninterpretedOption */ - uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null); - - /** MethodOptions .google.api.http */ - ".google.api.http"?: (google.api.IHttpRule|null); - } - - /** Represents a MethodOptions. */ - class MethodOptions implements IMethodOptions { - - /** - * Constructs a new MethodOptions. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IMethodOptions); - - /** MethodOptions deprecated. */ - public deprecated: boolean; - - /** MethodOptions uninterpretedOption. */ - public uninterpretedOption: google.protobuf.IUninterpretedOption[]; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @param [properties] Properties to set - * @returns MethodOptions instance - */ - public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @param message MethodOptions message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IMethodOptions, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MethodOptions - * @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): google.protobuf.MethodOptions; - - /** - * Verifies a MethodOptions 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 an UninterpretedOption. */ - interface IUninterpretedOption { - - /** UninterpretedOption name */ - name?: (google.protobuf.UninterpretedOption.INamePart[]|null); - - /** UninterpretedOption identifierValue */ - identifierValue?: (string|null); - - /** UninterpretedOption positiveIntValue */ - positiveIntValue?: (Long|null); - - /** UninterpretedOption negativeIntValue */ - negativeIntValue?: (Long|null); - - /** UninterpretedOption doubleValue */ - doubleValue?: (number|null); - - /** UninterpretedOption stringValue */ - stringValue?: (Uint8Array|null); - - /** UninterpretedOption aggregateValue */ - aggregateValue?: (string|null); - } - - /** Represents an UninterpretedOption. */ - class UninterpretedOption implements IUninterpretedOption { - - /** - * Constructs a new UninterpretedOption. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IUninterpretedOption); - - /** UninterpretedOption name. */ - public name: google.protobuf.UninterpretedOption.INamePart[]; - - /** UninterpretedOption identifierValue. */ - public identifierValue: string; - - /** UninterpretedOption positiveIntValue. */ - public positiveIntValue: Long; - - /** UninterpretedOption negativeIntValue. */ - public negativeIntValue: Long; - - /** UninterpretedOption doubleValue. */ - public doubleValue: number; - - /** UninterpretedOption stringValue. */ - public stringValue: Uint8Array; - - /** UninterpretedOption aggregateValue. */ - public aggregateValue: string; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @param [properties] Properties to set - * @returns UninterpretedOption instance - */ - public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @param message UninterpretedOption message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IUninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UninterpretedOption - * @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): google.protobuf.UninterpretedOption; - - /** - * Verifies an UninterpretedOption 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); - } - - namespace UninterpretedOption { - - /** Properties of a NamePart. */ - interface INamePart { - - /** NamePart namePart */ - namePart: string; - - /** NamePart isExtension */ - isExtension: boolean; - } - - /** Represents a NamePart. */ - class NamePart implements INamePart { - - /** - * Constructs a new NamePart. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.UninterpretedOption.INamePart); - - /** NamePart namePart. */ - public namePart: string; - - /** NamePart isExtension. */ - public isExtension: boolean; - - /** - * Creates a new NamePart instance using the specified properties. - * @param [properties] Properties to set - * @returns NamePart instance - */ - public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @param message NamePart message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.UninterpretedOption.INamePart, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns NamePart - * @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): google.protobuf.UninterpretedOption.NamePart; - - /** - * Verifies a NamePart 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 SourceCodeInfo. */ - interface ISourceCodeInfo { - - /** SourceCodeInfo location */ - location?: (google.protobuf.SourceCodeInfo.ILocation[]|null); - } - - /** Represents a SourceCodeInfo. */ - class SourceCodeInfo implements ISourceCodeInfo { - - /** - * Constructs a new SourceCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.ISourceCodeInfo); - - /** SourceCodeInfo location. */ - public location: google.protobuf.SourceCodeInfo.ILocation[]; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns SourceCodeInfo instance - */ - public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @param message SourceCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.ISourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SourceCodeInfo - * @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): google.protobuf.SourceCodeInfo; - - /** - * Verifies a SourceCodeInfo 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); - } - - namespace SourceCodeInfo { - - /** Properties of a Location. */ - interface ILocation { - - /** Location path */ - path?: (number[]|null); - - /** Location span */ - span?: (number[]|null); - - /** Location leadingComments */ - leadingComments?: (string|null); - - /** Location trailingComments */ - trailingComments?: (string|null); - - /** Location leadingDetachedComments */ - leadingDetachedComments?: (string[]|null); - } - - /** Represents a Location. */ - class Location implements ILocation { - - /** - * Constructs a new Location. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.SourceCodeInfo.ILocation); - - /** Location path. */ - public path: number[]; - - /** Location span. */ - public span: number[]; - - /** Location leadingComments. */ - public leadingComments: string; - - /** Location trailingComments. */ - public trailingComments: string; - - /** Location leadingDetachedComments. */ - public leadingDetachedComments: string[]; - - /** - * Creates a new Location instance using the specified properties. - * @param [properties] Properties to set - * @returns Location instance - */ - public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @param message Location message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.SourceCodeInfo.ILocation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Location message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Location - * @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): google.protobuf.SourceCodeInfo.Location; - - /** - * Verifies a Location 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 GeneratedCodeInfo. */ - interface IGeneratedCodeInfo { - - /** GeneratedCodeInfo annotation */ - annotation?: (google.protobuf.GeneratedCodeInfo.IAnnotation[]|null); - } - - /** Represents a GeneratedCodeInfo. */ - class GeneratedCodeInfo implements IGeneratedCodeInfo { - - /** - * Constructs a new GeneratedCodeInfo. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.IGeneratedCodeInfo); - - /** GeneratedCodeInfo annotation. */ - public annotation: google.protobuf.GeneratedCodeInfo.IAnnotation[]; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @param [properties] Properties to set - * @returns GeneratedCodeInfo instance - */ - public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @param message GeneratedCodeInfo message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.IGeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GeneratedCodeInfo - * @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): google.protobuf.GeneratedCodeInfo; - - /** - * Verifies a GeneratedCodeInfo 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); - } - - namespace GeneratedCodeInfo { - - /** Properties of an Annotation. */ - interface IAnnotation { - - /** Annotation path */ - path?: (number[]|null); - - /** Annotation sourceFile */ - sourceFile?: (string|null); - - /** Annotation begin */ - begin?: (number|null); - - /** Annotation end */ - end?: (number|null); - } - - /** Represents an Annotation. */ - class Annotation implements IAnnotation { - - /** - * Constructs a new Annotation. - * @param [properties] Properties to set - */ - constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation); - - /** Annotation path. */ - public path: number[]; - - /** Annotation sourceFile. */ - public sourceFile: string; - - /** Annotation begin. */ - public begin: number; - - /** Annotation end. */ - public end: number; - - /** - * Creates a new Annotation instance using the specified properties. - * @param [properties] Properties to set - * @returns Annotation instance - */ - public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @param message Annotation message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Annotation - * @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): google.protobuf.GeneratedCodeInfo.Annotation; - - /** - * Verifies an Annotation 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); - } - } - } - - /** Namespace api. */ - namespace api { - - /** Properties of a Http. */ - interface IHttp { - - /** Http rules */ - rules?: (google.api.IHttpRule[]|null); - } - - /** Represents a Http. */ - class Http implements IHttp { - - /** - * Constructs a new Http. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttp); - - /** Http rules. */ - public rules: google.api.IHttpRule[]; - - /** - * Creates a new Http instance using the specified properties. - * @param [properties] Properties to set - * @returns Http instance - */ - public static create(properties?: google.api.IHttp): google.api.Http; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @param message Http message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Http message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Http - * @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): google.api.Http; - - /** - * Verifies a Http 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 HttpRule. */ - interface IHttpRule { - - /** HttpRule get */ - get?: (string|null); - - /** HttpRule put */ - put?: (string|null); - - /** HttpRule post */ - post?: (string|null); - - /** HttpRule delete */ - "delete"?: (string|null); - - /** HttpRule patch */ - patch?: (string|null); - - /** HttpRule custom */ - custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector */ - selector?: (string|null); - - /** HttpRule body */ - body?: (string|null); - - /** HttpRule additionalBindings */ - additionalBindings?: (google.api.IHttpRule[]|null); - } - - /** Represents a HttpRule. */ - class HttpRule implements IHttpRule { - - /** - * Constructs a new HttpRule. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.IHttpRule); - - /** HttpRule get. */ - public get: string; - - /** HttpRule put. */ - public put: string; - - /** HttpRule post. */ - public post: string; - - /** HttpRule delete. */ - public delete: string; - - /** HttpRule patch. */ - public patch: string; - - /** HttpRule custom. */ - public custom?: (google.api.ICustomHttpPattern|null); - - /** HttpRule selector. */ - public selector: string; - - /** HttpRule body. */ - public body: string; - - /** HttpRule additionalBindings. */ - public additionalBindings: google.api.IHttpRule[]; - - /** HttpRule pattern. */ - public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom"); - - /** - * Creates a new HttpRule instance using the specified properties. - * @param [properties] Properties to set - * @returns HttpRule instance - */ - public static create(properties?: google.api.IHttpRule): google.api.HttpRule; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @param message HttpRule message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns HttpRule - * @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): google.api.HttpRule; - - /** - * Verifies a HttpRule 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 CustomHttpPattern. */ - interface ICustomHttpPattern { - - /** CustomHttpPattern kind */ - kind?: (string|null); - - /** CustomHttpPattern path */ - path?: (string|null); - } - - /** Represents a CustomHttpPattern. */ - class CustomHttpPattern implements ICustomHttpPattern { - - /** - * Constructs a new CustomHttpPattern. - * @param [properties] Properties to set - */ - constructor(properties?: google.api.ICustomHttpPattern); - - /** CustomHttpPattern kind. */ - public kind: string; - - /** CustomHttpPattern path. */ - public path: string; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @param [properties] Properties to set - * @returns CustomHttpPattern instance - */ - public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @param message CustomHttpPattern message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CustomHttpPattern - * @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): google.api.CustomHttpPattern; - - /** - * Verifies a CustomHttpPattern 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); - } - } -} diff --git a/flyteidl/gen/pb-js/flyteidl.js b/flyteidl/gen/pb-js/flyteidl.js deleted file mode 100644 index 8375c630e7..0000000000 --- a/flyteidl/gen/pb-js/flyteidl.js +++ /dev/null @@ -1,60202 +0,0 @@ -/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/ -(function(global, factory) { /* global define, require, module */ - - /* AMD */ if (typeof define === 'function' && define.amd) - define(["protobufjs/minimal"], factory); - - /* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports) - module.exports = factory(require("protobufjs/minimal")); - -})(this, function($protobuf) { - "use strict"; - - // Common aliases - var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; - - // Exported root namespace - var $root = $protobuf.roots.flyteidl || ($protobuf.roots.flyteidl = {}); - - $root.flyteidl = (function() { - - /** - * Namespace flyteidl. - * @exports flyteidl - * @namespace - */ - var flyteidl = {}; - - flyteidl.core = (function() { - - /** - * Namespace core. - * @memberof flyteidl - * @namespace - */ - var core = {}; - - core.ArtifactKey = (function() { - - /** - * Properties of an ArtifactKey. - * @memberof flyteidl.core - * @interface IArtifactKey - * @property {string|null} [project] ArtifactKey project - * @property {string|null} [domain] ArtifactKey domain - * @property {string|null} [name] ArtifactKey name - */ - - /** - * Constructs a new ArtifactKey. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactKey. - * @implements IArtifactKey - * @constructor - * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set - */ - function ArtifactKey(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactKey project. - * @member {string} project - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.project = ""; - - /** - * ArtifactKey domain. - * @member {string} domain - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.domain = ""; - - /** - * ArtifactKey name. - * @member {string} name - * @memberof flyteidl.core.ArtifactKey - * @instance - */ - ArtifactKey.prototype.name = ""; - - /** - * Creates a new ArtifactKey instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {flyteidl.core.IArtifactKey=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactKey} ArtifactKey instance - */ - ArtifactKey.create = function create(properties) { - return new ArtifactKey(properties); - }; - - /** - * Encodes the specified ArtifactKey message. Does not implicitly {@link flyteidl.core.ArtifactKey.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {flyteidl.core.IArtifactKey} message ArtifactKey message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - return writer; - }; - - /** - * Decodes an ArtifactKey message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactKey} ArtifactKey - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactKey(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactKey message. - * @function verify - * @memberof flyteidl.core.ArtifactKey - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return ArtifactKey; - })(); - - core.ArtifactBindingData = (function() { - - /** - * Properties of an ArtifactBindingData. - * @memberof flyteidl.core - * @interface IArtifactBindingData - * @property {number|null} [index] ArtifactBindingData index - * @property {string|null} [partitionKey] ArtifactBindingData partitionKey - * @property {string|null} [transform] ArtifactBindingData transform - */ - - /** - * Constructs a new ArtifactBindingData. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactBindingData. - * @implements IArtifactBindingData - * @constructor - * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set - */ - function ArtifactBindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactBindingData index. - * @member {number} index - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.index = 0; - - /** - * ArtifactBindingData partitionKey. - * @member {string} partitionKey - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.partitionKey = ""; - - /** - * ArtifactBindingData transform. - * @member {string} transform - * @memberof flyteidl.core.ArtifactBindingData - * @instance - */ - ArtifactBindingData.prototype.transform = ""; - - /** - * Creates a new ArtifactBindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {flyteidl.core.IArtifactBindingData=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData instance - */ - ArtifactBindingData.create = function create(properties) { - return new ArtifactBindingData(properties); - }; - - /** - * Encodes the specified ArtifactBindingData message. Does not implicitly {@link flyteidl.core.ArtifactBindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {flyteidl.core.IArtifactBindingData} message ArtifactBindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactBindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && message.hasOwnProperty("index")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.index); - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.partitionKey); - if (message.transform != null && message.hasOwnProperty("transform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.transform); - return writer; - }; - - /** - * Decodes an ArtifactBindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactBindingData} ArtifactBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactBindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactBindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.index = reader.uint32(); - break; - case 2: - message.partitionKey = reader.string(); - break; - case 3: - message.transform = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactBindingData message. - * @function verify - * @memberof flyteidl.core.ArtifactBindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactBindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.partitionKey != null && message.hasOwnProperty("partitionKey")) - if (!$util.isString(message.partitionKey)) - return "partitionKey: string expected"; - if (message.transform != null && message.hasOwnProperty("transform")) - if (!$util.isString(message.transform)) - return "transform: string expected"; - return null; - }; - - return ArtifactBindingData; - })(); - - core.InputBindingData = (function() { - - /** - * Properties of an InputBindingData. - * @memberof flyteidl.core - * @interface IInputBindingData - * @property {string|null} ["var"] InputBindingData var - */ - - /** - * Constructs a new InputBindingData. - * @memberof flyteidl.core - * @classdesc Represents an InputBindingData. - * @implements IInputBindingData - * @constructor - * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set - */ - function InputBindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * InputBindingData var. - * @member {string} var - * @memberof flyteidl.core.InputBindingData - * @instance - */ - InputBindingData.prototype["var"] = ""; - - /** - * Creates a new InputBindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.InputBindingData - * @static - * @param {flyteidl.core.IInputBindingData=} [properties] Properties to set - * @returns {flyteidl.core.InputBindingData} InputBindingData instance - */ - InputBindingData.create = function create(properties) { - return new InputBindingData(properties); - }; - - /** - * Encodes the specified InputBindingData message. Does not implicitly {@link flyteidl.core.InputBindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.InputBindingData - * @static - * @param {flyteidl.core.IInputBindingData} message InputBindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - InputBindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - return writer; - }; - - /** - * Decodes an InputBindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.InputBindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.InputBindingData} InputBindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - InputBindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.InputBindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an InputBindingData message. - * @function verify - * @memberof flyteidl.core.InputBindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - InputBindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - return null; - }; - - return InputBindingData; - })(); - - core.LabelValue = (function() { - - /** - * Properties of a LabelValue. - * @memberof flyteidl.core - * @interface ILabelValue - * @property {string|null} [staticValue] LabelValue staticValue - * @property {flyteidl.core.IArtifactBindingData|null} [triggeredBinding] LabelValue triggeredBinding - * @property {flyteidl.core.IInputBindingData|null} [inputBinding] LabelValue inputBinding - */ - - /** - * Constructs a new LabelValue. - * @memberof flyteidl.core - * @classdesc Represents a LabelValue. - * @implements ILabelValue - * @constructor - * @param {flyteidl.core.ILabelValue=} [properties] Properties to set - */ - function LabelValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LabelValue staticValue. - * @member {string} staticValue - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.staticValue = ""; - - /** - * LabelValue triggeredBinding. - * @member {flyteidl.core.IArtifactBindingData|null|undefined} triggeredBinding - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.triggeredBinding = null; - - /** - * LabelValue inputBinding. - * @member {flyteidl.core.IInputBindingData|null|undefined} inputBinding - * @memberof flyteidl.core.LabelValue - * @instance - */ - LabelValue.prototype.inputBinding = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LabelValue value. - * @member {"staticValue"|"triggeredBinding"|"inputBinding"|undefined} value - * @memberof flyteidl.core.LabelValue - * @instance - */ - Object.defineProperty(LabelValue.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["staticValue", "triggeredBinding", "inputBinding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LabelValue instance using the specified properties. - * @function create - * @memberof flyteidl.core.LabelValue - * @static - * @param {flyteidl.core.ILabelValue=} [properties] Properties to set - * @returns {flyteidl.core.LabelValue} LabelValue instance - */ - LabelValue.create = function create(properties) { - return new LabelValue(properties); - }; - - /** - * Encodes the specified LabelValue message. Does not implicitly {@link flyteidl.core.LabelValue.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LabelValue - * @static - * @param {flyteidl.core.ILabelValue} message LabelValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LabelValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.staticValue != null && message.hasOwnProperty("staticValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.staticValue); - if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) - $root.flyteidl.core.ArtifactBindingData.encode(message.triggeredBinding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) - $root.flyteidl.core.InputBindingData.encode(message.inputBinding, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LabelValue message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LabelValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LabelValue} LabelValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LabelValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LabelValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.staticValue = reader.string(); - break; - case 2: - message.triggeredBinding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); - break; - case 3: - message.inputBinding = $root.flyteidl.core.InputBindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LabelValue message. - * @function verify - * @memberof flyteidl.core.LabelValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LabelValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.staticValue != null && message.hasOwnProperty("staticValue")) { - properties.value = 1; - if (!$util.isString(message.staticValue)) - return "staticValue: string expected"; - } - if (message.triggeredBinding != null && message.hasOwnProperty("triggeredBinding")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.ArtifactBindingData.verify(message.triggeredBinding); - if (error) - return "triggeredBinding." + error; - } - } - if (message.inputBinding != null && message.hasOwnProperty("inputBinding")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.InputBindingData.verify(message.inputBinding); - if (error) - return "inputBinding." + error; - } - } - return null; - }; - - return LabelValue; - })(); - - core.Partitions = (function() { - - /** - * Properties of a Partitions. - * @memberof flyteidl.core - * @interface IPartitions - * @property {Object.|null} [value] Partitions value - */ - - /** - * Constructs a new Partitions. - * @memberof flyteidl.core - * @classdesc Represents a Partitions. - * @implements IPartitions - * @constructor - * @param {flyteidl.core.IPartitions=} [properties] Properties to set - */ - function Partitions(properties) { - this.value = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Partitions value. - * @member {Object.} value - * @memberof flyteidl.core.Partitions - * @instance - */ - Partitions.prototype.value = $util.emptyObject; - - /** - * Creates a new Partitions instance using the specified properties. - * @function create - * @memberof flyteidl.core.Partitions - * @static - * @param {flyteidl.core.IPartitions=} [properties] Properties to set - * @returns {flyteidl.core.Partitions} Partitions instance - */ - Partitions.create = function create(properties) { - return new Partitions(properties); - }; - - /** - * Encodes the specified Partitions message. Does not implicitly {@link flyteidl.core.Partitions.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Partitions - * @static - * @param {flyteidl.core.IPartitions} message Partitions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Partitions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - for (var keys = Object.keys(message.value), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.LabelValue.encode(message.value[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a Partitions message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Partitions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Partitions} Partitions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Partitions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Partitions(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.value === $util.emptyObject) - message.value = {}; - key = reader.string(); - reader.pos++; - message.value[key] = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Partitions message. - * @function verify - * @memberof flyteidl.core.Partitions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Partitions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!$util.isObject(message.value)) - return "value: object expected"; - var key = Object.keys(message.value); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.LabelValue.verify(message.value[key[i]]); - if (error) - return "value." + error; - } - } - return null; - }; - - return Partitions; - })(); - - core.ArtifactID = (function() { - - /** - * Properties of an ArtifactID. - * @memberof flyteidl.core - * @interface IArtifactID - * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactID artifactKey - * @property {string|null} [version] ArtifactID version - * @property {flyteidl.core.IPartitions|null} [partitions] ArtifactID partitions - */ - - /** - * Constructs a new ArtifactID. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactID. - * @implements IArtifactID - * @constructor - * @param {flyteidl.core.IArtifactID=} [properties] Properties to set - */ - function ArtifactID(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactID artifactKey. - * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.artifactKey = null; - - /** - * ArtifactID version. - * @member {string} version - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.version = ""; - - /** - * ArtifactID partitions. - * @member {flyteidl.core.IPartitions|null|undefined} partitions - * @memberof flyteidl.core.ArtifactID - * @instance - */ - ArtifactID.prototype.partitions = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArtifactID dimensions. - * @member {"partitions"|undefined} dimensions - * @memberof flyteidl.core.ArtifactID - * @instance - */ - Object.defineProperty(ArtifactID.prototype, "dimensions", { - get: $util.oneOfGetter($oneOfFields = ["partitions"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArtifactID instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactID - * @static - * @param {flyteidl.core.IArtifactID=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactID} ArtifactID instance - */ - ArtifactID.create = function create(properties) { - return new ArtifactID(properties); - }; - - /** - * Encodes the specified ArtifactID message. Does not implicitly {@link flyteidl.core.ArtifactID.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactID - * @static - * @param {flyteidl.core.IArtifactID} message ArtifactID message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactID.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) - $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - if (message.partitions != null && message.hasOwnProperty("partitions")) - $root.flyteidl.core.Partitions.encode(message.partitions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactID message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactID - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactID} ArtifactID - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactID.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactID(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.partitions = $root.flyteidl.core.Partitions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactID message. - * @function verify - * @memberof flyteidl.core.ArtifactID - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactID.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { - var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); - if (error) - return "artifactKey." + error; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.partitions != null && message.hasOwnProperty("partitions")) { - properties.dimensions = 1; - { - var error = $root.flyteidl.core.Partitions.verify(message.partitions); - if (error) - return "partitions." + error; - } - } - return null; - }; - - return ArtifactID; - })(); - - core.ArtifactTag = (function() { - - /** - * Properties of an ArtifactTag. - * @memberof flyteidl.core - * @interface IArtifactTag - * @property {flyteidl.core.IArtifactKey|null} [artifactKey] ArtifactTag artifactKey - * @property {flyteidl.core.ILabelValue|null} [value] ArtifactTag value - */ - - /** - * Constructs a new ArtifactTag. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactTag. - * @implements IArtifactTag - * @constructor - * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set - */ - function ArtifactTag(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactTag artifactKey. - * @member {flyteidl.core.IArtifactKey|null|undefined} artifactKey - * @memberof flyteidl.core.ArtifactTag - * @instance - */ - ArtifactTag.prototype.artifactKey = null; - - /** - * ArtifactTag value. - * @member {flyteidl.core.ILabelValue|null|undefined} value - * @memberof flyteidl.core.ArtifactTag - * @instance - */ - ArtifactTag.prototype.value = null; - - /** - * Creates a new ArtifactTag instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {flyteidl.core.IArtifactTag=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactTag} ArtifactTag instance - */ - ArtifactTag.create = function create(properties) { - return new ArtifactTag(properties); - }; - - /** - * Encodes the specified ArtifactTag message. Does not implicitly {@link flyteidl.core.ArtifactTag.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {flyteidl.core.IArtifactTag} message ArtifactTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) - $root.flyteidl.core.ArtifactKey.encode(message.artifactKey, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.LabelValue.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactTag message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactTag} ArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactKey = $root.flyteidl.core.ArtifactKey.decode(reader, reader.uint32()); - break; - case 2: - message.value = $root.flyteidl.core.LabelValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactTag message. - * @function verify - * @memberof flyteidl.core.ArtifactTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactKey != null && message.hasOwnProperty("artifactKey")) { - var error = $root.flyteidl.core.ArtifactKey.verify(message.artifactKey); - if (error) - return "artifactKey." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.LabelValue.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return ArtifactTag; - })(); - - core.ArtifactQuery = (function() { - - /** - * Properties of an ArtifactQuery. - * @memberof flyteidl.core - * @interface IArtifactQuery - * @property {flyteidl.core.IArtifactID|null} [artifactId] ArtifactQuery artifactId - * @property {flyteidl.core.IArtifactTag|null} [artifactTag] ArtifactQuery artifactTag - * @property {string|null} [uri] ArtifactQuery uri - * @property {flyteidl.core.IArtifactBindingData|null} [binding] ArtifactQuery binding - */ - - /** - * Constructs a new ArtifactQuery. - * @memberof flyteidl.core - * @classdesc Represents an ArtifactQuery. - * @implements IArtifactQuery - * @constructor - * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set - */ - function ArtifactQuery(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArtifactQuery artifactId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactId - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.artifactId = null; - - /** - * ArtifactQuery artifactTag. - * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.artifactTag = null; - - /** - * ArtifactQuery uri. - * @member {string} uri - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.uri = ""; - - /** - * ArtifactQuery binding. - * @member {flyteidl.core.IArtifactBindingData|null|undefined} binding - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - ArtifactQuery.prototype.binding = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArtifactQuery identifier. - * @member {"artifactId"|"artifactTag"|"uri"|"binding"|undefined} identifier - * @memberof flyteidl.core.ArtifactQuery - * @instance - */ - Object.defineProperty(ArtifactQuery.prototype, "identifier", { - get: $util.oneOfGetter($oneOfFields = ["artifactId", "artifactTag", "uri", "binding"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArtifactQuery instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {flyteidl.core.IArtifactQuery=} [properties] Properties to set - * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery instance - */ - ArtifactQuery.create = function create(properties) { - return new ArtifactQuery(properties); - }; - - /** - * Encodes the specified ArtifactQuery message. Does not implicitly {@link flyteidl.core.ArtifactQuery.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {flyteidl.core.IArtifactQuery} message ArtifactQuery message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArtifactQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); - if (message.binding != null && message.hasOwnProperty("binding")) - $root.flyteidl.core.ArtifactBindingData.encode(message.binding, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ArtifactQuery message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArtifactQuery} ArtifactQuery - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArtifactQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArtifactQuery(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - case 2: - message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); - break; - case 3: - message.uri = reader.string(); - break; - case 4: - message.binding = $root.flyteidl.core.ArtifactBindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArtifactQuery message. - * @function verify - * @memberof flyteidl.core.ArtifactQuery - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArtifactQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); - if (error) - return "artifactId." + error; - } - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.binding != null && message.hasOwnProperty("binding")) { - if (properties.identifier === 1) - return "identifier: multiple values"; - properties.identifier = 1; - { - var error = $root.flyteidl.core.ArtifactBindingData.verify(message.binding); - if (error) - return "binding." + error; - } - } - return null; - }; - - return ArtifactQuery; - })(); - - core.Trigger = (function() { - - /** - * Properties of a Trigger. - * @memberof flyteidl.core - * @interface ITrigger - * @property {flyteidl.core.IIdentifier|null} [triggerId] Trigger triggerId - * @property {Array.|null} [triggers] Trigger triggers - */ - - /** - * Constructs a new Trigger. - * @memberof flyteidl.core - * @classdesc Represents a Trigger. - * @implements ITrigger - * @constructor - * @param {flyteidl.core.ITrigger=} [properties] Properties to set - */ - function Trigger(properties) { - this.triggers = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Trigger triggerId. - * @member {flyteidl.core.IIdentifier|null|undefined} triggerId - * @memberof flyteidl.core.Trigger - * @instance - */ - Trigger.prototype.triggerId = null; - - /** - * Trigger triggers. - * @member {Array.} triggers - * @memberof flyteidl.core.Trigger - * @instance - */ - Trigger.prototype.triggers = $util.emptyArray; - - /** - * Creates a new Trigger instance using the specified properties. - * @function create - * @memberof flyteidl.core.Trigger - * @static - * @param {flyteidl.core.ITrigger=} [properties] Properties to set - * @returns {flyteidl.core.Trigger} Trigger instance - */ - Trigger.create = function create(properties) { - return new Trigger(properties); - }; - - /** - * Encodes the specified Trigger message. Does not implicitly {@link flyteidl.core.Trigger.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Trigger - * @static - * @param {flyteidl.core.ITrigger} message Trigger message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Trigger.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.triggerId != null && message.hasOwnProperty("triggerId")) - $root.flyteidl.core.Identifier.encode(message.triggerId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.triggers != null && message.triggers.length) - for (var i = 0; i < message.triggers.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.triggers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Trigger message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Trigger - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Trigger} Trigger - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Trigger.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Trigger(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.triggerId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.triggers && message.triggers.length)) - message.triggers = []; - message.triggers.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Trigger message. - * @function verify - * @memberof flyteidl.core.Trigger - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Trigger.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.triggerId != null && message.hasOwnProperty("triggerId")) { - var error = $root.flyteidl.core.Identifier.verify(message.triggerId); - if (error) - return "triggerId." + error; - } - if (message.triggers != null && message.hasOwnProperty("triggers")) { - if (!Array.isArray(message.triggers)) - return "triggers: array expected"; - for (var i = 0; i < message.triggers.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.triggers[i]); - if (error) - return "triggers." + error; - } - } - return null; - }; - - return Trigger; - })(); - - /** - * ResourceType enum. - * @name flyteidl.core.ResourceType - * @enum {string} - * @property {number} UNSPECIFIED=0 UNSPECIFIED value - * @property {number} TASK=1 TASK value - * @property {number} WORKFLOW=2 WORKFLOW value - * @property {number} LAUNCH_PLAN=3 LAUNCH_PLAN value - * @property {number} DATASET=4 DATASET value - */ - core.ResourceType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNSPECIFIED"] = 0; - values[valuesById[1] = "TASK"] = 1; - values[valuesById[2] = "WORKFLOW"] = 2; - values[valuesById[3] = "LAUNCH_PLAN"] = 3; - values[valuesById[4] = "DATASET"] = 4; - return values; - })(); - - core.Identifier = (function() { - - /** - * Properties of an Identifier. - * @memberof flyteidl.core - * @interface IIdentifier - * @property {flyteidl.core.ResourceType|null} [resourceType] Identifier resourceType - * @property {string|null} [project] Identifier project - * @property {string|null} [domain] Identifier domain - * @property {string|null} [name] Identifier name - * @property {string|null} [version] Identifier version - */ - - /** - * Constructs a new Identifier. - * @memberof flyteidl.core - * @classdesc Represents an Identifier. - * @implements IIdentifier - * @constructor - * @param {flyteidl.core.IIdentifier=} [properties] Properties to set - */ - function Identifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Identifier resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.resourceType = 0; - - /** - * Identifier project. - * @member {string} project - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.project = ""; - - /** - * Identifier domain. - * @member {string} domain - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.domain = ""; - - /** - * Identifier name. - * @member {string} name - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.name = ""; - - /** - * Identifier version. - * @member {string} version - * @memberof flyteidl.core.Identifier - * @instance - */ - Identifier.prototype.version = ""; - - /** - * Creates a new Identifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.Identifier - * @static - * @param {flyteidl.core.IIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.Identifier} Identifier instance - */ - Identifier.create = function create(properties) { - return new Identifier(properties); - }; - - /** - * Encodes the specified Identifier message. Does not implicitly {@link flyteidl.core.Identifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Identifier - * @static - * @param {flyteidl.core.IIdentifier} message Identifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Identifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.version); - return writer; - }; - - /** - * Decodes an Identifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Identifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Identifier} Identifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Identifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.domain = reader.string(); - break; - case 4: - message.name = reader.string(); - break; - case 5: - message.version = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Identifier message. - * @function verify - * @memberof flyteidl.core.Identifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Identifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - return null; - }; - - return Identifier; - })(); - - core.WorkflowExecutionIdentifier = (function() { - - /** - * Properties of a WorkflowExecutionIdentifier. - * @memberof flyteidl.core - * @interface IWorkflowExecutionIdentifier - * @property {string|null} [project] WorkflowExecutionIdentifier project - * @property {string|null} [domain] WorkflowExecutionIdentifier domain - * @property {string|null} [name] WorkflowExecutionIdentifier name - */ - - /** - * Constructs a new WorkflowExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowExecutionIdentifier. - * @implements IWorkflowExecutionIdentifier - * @constructor - * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set - */ - function WorkflowExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionIdentifier project. - * @member {string} project - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.project = ""; - - /** - * WorkflowExecutionIdentifier domain. - * @member {string} domain - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.domain = ""; - - /** - * WorkflowExecutionIdentifier name. - * @member {string} name - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @instance - */ - WorkflowExecutionIdentifier.prototype.name = ""; - - /** - * Creates a new WorkflowExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {flyteidl.core.IWorkflowExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier instance - */ - WorkflowExecutionIdentifier.create = function create(properties) { - return new WorkflowExecutionIdentifier(properties); - }; - - /** - * Encodes the specified WorkflowExecutionIdentifier message. Does not implicitly {@link flyteidl.core.WorkflowExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {flyteidl.core.IWorkflowExecutionIdentifier} message WorkflowExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - return writer; - }; - - /** - * Decodes a WorkflowExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowExecutionIdentifier} WorkflowExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 4: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.WorkflowExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return WorkflowExecutionIdentifier; - })(); - - core.NodeExecutionIdentifier = (function() { - - /** - * Properties of a NodeExecutionIdentifier. - * @memberof flyteidl.core - * @interface INodeExecutionIdentifier - * @property {string|null} [nodeId] NodeExecutionIdentifier nodeId - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] NodeExecutionIdentifier executionId - */ - - /** - * Constructs a new NodeExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a NodeExecutionIdentifier. - * @implements INodeExecutionIdentifier - * @constructor - * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set - */ - function NodeExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionIdentifier nodeId. - * @member {string} nodeId - * @memberof flyteidl.core.NodeExecutionIdentifier - * @instance - */ - NodeExecutionIdentifier.prototype.nodeId = ""; - - /** - * NodeExecutionIdentifier executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.core.NodeExecutionIdentifier - * @instance - */ - NodeExecutionIdentifier.prototype.executionId = null; - - /** - * Creates a new NodeExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {flyteidl.core.INodeExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier instance - */ - NodeExecutionIdentifier.create = function create(properties) { - return new NodeExecutionIdentifier(properties); - }; - - /** - * Encodes the specified NodeExecutionIdentifier message. Does not implicitly {@link flyteidl.core.NodeExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {flyteidl.core.INodeExecutionIdentifier} message NodeExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeExecutionIdentifier} NodeExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - case 2: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.NodeExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return NodeExecutionIdentifier; - })(); - - core.TaskExecutionIdentifier = (function() { - - /** - * Properties of a TaskExecutionIdentifier. - * @memberof flyteidl.core - * @interface ITaskExecutionIdentifier - * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionIdentifier taskId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionIdentifier nodeExecutionId - * @property {number|null} [retryAttempt] TaskExecutionIdentifier retryAttempt - */ - - /** - * Constructs a new TaskExecutionIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a TaskExecutionIdentifier. - * @implements ITaskExecutionIdentifier - * @constructor - * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set - */ - function TaskExecutionIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionIdentifier taskId. - * @member {flyteidl.core.IIdentifier|null|undefined} taskId - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.taskId = null; - - /** - * TaskExecutionIdentifier nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.nodeExecutionId = null; - - /** - * TaskExecutionIdentifier retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.core.TaskExecutionIdentifier - * @instance - */ - TaskExecutionIdentifier.prototype.retryAttempt = 0; - - /** - * Creates a new TaskExecutionIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {flyteidl.core.ITaskExecutionIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier instance - */ - TaskExecutionIdentifier.create = function create(properties) { - return new TaskExecutionIdentifier(properties); - }; - - /** - * Encodes the specified TaskExecutionIdentifier message. Does not implicitly {@link flyteidl.core.TaskExecutionIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {flyteidl.core.ITaskExecutionIdentifier} message TaskExecutionIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - return writer; - }; - - /** - * Decodes a TaskExecutionIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskExecutionIdentifier} TaskExecutionIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecutionIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionIdentifier message. - * @function verify - * @memberof flyteidl.core.TaskExecutionIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskId != null && message.hasOwnProperty("taskId")) { - var error = $root.flyteidl.core.Identifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - return null; - }; - - return TaskExecutionIdentifier; - })(); - - core.SignalIdentifier = (function() { - - /** - * Properties of a SignalIdentifier. - * @memberof flyteidl.core - * @interface ISignalIdentifier - * @property {string|null} [signalId] SignalIdentifier signalId - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] SignalIdentifier executionId - */ - - /** - * Constructs a new SignalIdentifier. - * @memberof flyteidl.core - * @classdesc Represents a SignalIdentifier. - * @implements ISignalIdentifier - * @constructor - * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set - */ - function SignalIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalIdentifier signalId. - * @member {string} signalId - * @memberof flyteidl.core.SignalIdentifier - * @instance - */ - SignalIdentifier.prototype.signalId = ""; - - /** - * SignalIdentifier executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.core.SignalIdentifier - * @instance - */ - SignalIdentifier.prototype.executionId = null; - - /** - * Creates a new SignalIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {flyteidl.core.ISignalIdentifier=} [properties] Properties to set - * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier instance - */ - SignalIdentifier.create = function create(properties) { - return new SignalIdentifier(properties); - }; - - /** - * Encodes the specified SignalIdentifier message. Does not implicitly {@link flyteidl.core.SignalIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {flyteidl.core.ISignalIdentifier} message SignalIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SignalIdentifier} SignalIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - case 2: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalIdentifier message. - * @function verify - * @memberof flyteidl.core.SignalIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return SignalIdentifier; - })(); - - /** - * CatalogCacheStatus enum. - * @name flyteidl.core.CatalogCacheStatus - * @enum {string} - * @property {number} CACHE_DISABLED=0 CACHE_DISABLED value - * @property {number} CACHE_MISS=1 CACHE_MISS value - * @property {number} CACHE_HIT=2 CACHE_HIT value - * @property {number} CACHE_POPULATED=3 CACHE_POPULATED value - * @property {number} CACHE_LOOKUP_FAILURE=4 CACHE_LOOKUP_FAILURE value - * @property {number} CACHE_PUT_FAILURE=5 CACHE_PUT_FAILURE value - * @property {number} CACHE_SKIPPED=6 CACHE_SKIPPED value - */ - core.CatalogCacheStatus = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CACHE_DISABLED"] = 0; - values[valuesById[1] = "CACHE_MISS"] = 1; - values[valuesById[2] = "CACHE_HIT"] = 2; - values[valuesById[3] = "CACHE_POPULATED"] = 3; - values[valuesById[4] = "CACHE_LOOKUP_FAILURE"] = 4; - values[valuesById[5] = "CACHE_PUT_FAILURE"] = 5; - values[valuesById[6] = "CACHE_SKIPPED"] = 6; - return values; - })(); - - core.CatalogArtifactTag = (function() { - - /** - * Properties of a CatalogArtifactTag. - * @memberof flyteidl.core - * @interface ICatalogArtifactTag - * @property {string|null} [artifactId] CatalogArtifactTag artifactId - * @property {string|null} [name] CatalogArtifactTag name - */ - - /** - * Constructs a new CatalogArtifactTag. - * @memberof flyteidl.core - * @classdesc Represents a CatalogArtifactTag. - * @implements ICatalogArtifactTag - * @constructor - * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set - */ - function CatalogArtifactTag(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CatalogArtifactTag artifactId. - * @member {string} artifactId - * @memberof flyteidl.core.CatalogArtifactTag - * @instance - */ - CatalogArtifactTag.prototype.artifactId = ""; - - /** - * CatalogArtifactTag name. - * @member {string} name - * @memberof flyteidl.core.CatalogArtifactTag - * @instance - */ - CatalogArtifactTag.prototype.name = ""; - - /** - * Creates a new CatalogArtifactTag instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {flyteidl.core.ICatalogArtifactTag=} [properties] Properties to set - * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag instance - */ - CatalogArtifactTag.create = function create(properties) { - return new CatalogArtifactTag(properties); - }; - - /** - * Encodes the specified CatalogArtifactTag message. Does not implicitly {@link flyteidl.core.CatalogArtifactTag.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {flyteidl.core.ICatalogArtifactTag} message CatalogArtifactTag message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogArtifactTag.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactId); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; - - /** - * Decodes a CatalogArtifactTag message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogArtifactTag} CatalogArtifactTag - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogArtifactTag.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogArtifactTag(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactId = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogArtifactTag message. - * @function verify - * @memberof flyteidl.core.CatalogArtifactTag - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogArtifactTag.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - if (!$util.isString(message.artifactId)) - return "artifactId: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return CatalogArtifactTag; - })(); - - core.CatalogMetadata = (function() { - - /** - * Properties of a CatalogMetadata. - * @memberof flyteidl.core - * @interface ICatalogMetadata - * @property {flyteidl.core.IIdentifier|null} [datasetId] CatalogMetadata datasetId - * @property {flyteidl.core.ICatalogArtifactTag|null} [artifactTag] CatalogMetadata artifactTag - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [sourceTaskExecution] CatalogMetadata sourceTaskExecution - */ - - /** - * Constructs a new CatalogMetadata. - * @memberof flyteidl.core - * @classdesc Represents a CatalogMetadata. - * @implements ICatalogMetadata - * @constructor - * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set - */ - function CatalogMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CatalogMetadata datasetId. - * @member {flyteidl.core.IIdentifier|null|undefined} datasetId - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.datasetId = null; - - /** - * CatalogMetadata artifactTag. - * @member {flyteidl.core.ICatalogArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.artifactTag = null; - - /** - * CatalogMetadata sourceTaskExecution. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} sourceTaskExecution - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - CatalogMetadata.prototype.sourceTaskExecution = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CatalogMetadata sourceExecution. - * @member {"sourceTaskExecution"|undefined} sourceExecution - * @memberof flyteidl.core.CatalogMetadata - * @instance - */ - Object.defineProperty(CatalogMetadata.prototype, "sourceExecution", { - get: $util.oneOfGetter($oneOfFields = ["sourceTaskExecution"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CatalogMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {flyteidl.core.ICatalogMetadata=} [properties] Properties to set - * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata instance - */ - CatalogMetadata.create = function create(properties) { - return new CatalogMetadata(properties); - }; - - /** - * Encodes the specified CatalogMetadata message. Does not implicitly {@link flyteidl.core.CatalogMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {flyteidl.core.ICatalogMetadata} message CatalogMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.datasetId != null && message.hasOwnProperty("datasetId")) - $root.flyteidl.core.Identifier.encode(message.datasetId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.CatalogArtifactTag.encode(message.artifactTag, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.sourceTaskExecution, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CatalogMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogMetadata} CatalogMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.datasetId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.artifactTag = $root.flyteidl.core.CatalogArtifactTag.decode(reader, reader.uint32()); - break; - case 3: - message.sourceTaskExecution = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogMetadata message. - * @function verify - * @memberof flyteidl.core.CatalogMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.datasetId != null && message.hasOwnProperty("datasetId")) { - var error = $root.flyteidl.core.Identifier.verify(message.datasetId); - if (error) - return "datasetId." + error; - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - var error = $root.flyteidl.core.CatalogArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - if (message.sourceTaskExecution != null && message.hasOwnProperty("sourceTaskExecution")) { - properties.sourceExecution = 1; - { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.sourceTaskExecution); - if (error) - return "sourceTaskExecution." + error; - } - } - return null; - }; - - return CatalogMetadata; - })(); - - core.CatalogReservation = (function() { - - /** - * Properties of a CatalogReservation. - * @memberof flyteidl.core - * @interface ICatalogReservation - */ - - /** - * Constructs a new CatalogReservation. - * @memberof flyteidl.core - * @classdesc Represents a CatalogReservation. - * @implements ICatalogReservation - * @constructor - * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set - */ - function CatalogReservation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new CatalogReservation instance using the specified properties. - * @function create - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {flyteidl.core.ICatalogReservation=} [properties] Properties to set - * @returns {flyteidl.core.CatalogReservation} CatalogReservation instance - */ - CatalogReservation.create = function create(properties) { - return new CatalogReservation(properties); - }; - - /** - * Encodes the specified CatalogReservation message. Does not implicitly {@link flyteidl.core.CatalogReservation.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {flyteidl.core.ICatalogReservation} message CatalogReservation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CatalogReservation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a CatalogReservation message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CatalogReservation} CatalogReservation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CatalogReservation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CatalogReservation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CatalogReservation message. - * @function verify - * @memberof flyteidl.core.CatalogReservation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CatalogReservation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Status enum. - * @name flyteidl.core.CatalogReservation.Status - * @enum {string} - * @property {number} RESERVATION_DISABLED=0 RESERVATION_DISABLED value - * @property {number} RESERVATION_ACQUIRED=1 RESERVATION_ACQUIRED value - * @property {number} RESERVATION_EXISTS=2 RESERVATION_EXISTS value - * @property {number} RESERVATION_RELEASED=3 RESERVATION_RELEASED value - * @property {number} RESERVATION_FAILURE=4 RESERVATION_FAILURE value - */ - CatalogReservation.Status = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RESERVATION_DISABLED"] = 0; - values[valuesById[1] = "RESERVATION_ACQUIRED"] = 1; - values[valuesById[2] = "RESERVATION_EXISTS"] = 2; - values[valuesById[3] = "RESERVATION_RELEASED"] = 3; - values[valuesById[4] = "RESERVATION_FAILURE"] = 4; - return values; - })(); - - return CatalogReservation; - })(); - - core.ConnectionSet = (function() { - - /** - * Properties of a ConnectionSet. - * @memberof flyteidl.core - * @interface IConnectionSet - * @property {Object.|null} [downstream] ConnectionSet downstream - * @property {Object.|null} [upstream] ConnectionSet upstream - */ - - /** - * Constructs a new ConnectionSet. - * @memberof flyteidl.core - * @classdesc Represents a ConnectionSet. - * @implements IConnectionSet - * @constructor - * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set - */ - function ConnectionSet(properties) { - this.downstream = {}; - this.upstream = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ConnectionSet downstream. - * @member {Object.} downstream - * @memberof flyteidl.core.ConnectionSet - * @instance - */ - ConnectionSet.prototype.downstream = $util.emptyObject; - - /** - * ConnectionSet upstream. - * @member {Object.} upstream - * @memberof flyteidl.core.ConnectionSet - * @instance - */ - ConnectionSet.prototype.upstream = $util.emptyObject; - - /** - * Creates a new ConnectionSet instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {flyteidl.core.IConnectionSet=} [properties] Properties to set - * @returns {flyteidl.core.ConnectionSet} ConnectionSet instance - */ - ConnectionSet.create = function create(properties) { - return new ConnectionSet(properties); - }; - - /** - * Encodes the specified ConnectionSet message. Does not implicitly {@link flyteidl.core.ConnectionSet.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {flyteidl.core.IConnectionSet} message ConnectionSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConnectionSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.downstream != null && message.hasOwnProperty("downstream")) - for (var keys = Object.keys(message.downstream), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.ConnectionSet.IdList.encode(message.downstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.upstream != null && message.hasOwnProperty("upstream")) - for (var keys = Object.keys(message.upstream), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.ConnectionSet.IdList.encode(message.upstream[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a ConnectionSet message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConnectionSet} ConnectionSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConnectionSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 7: - reader.skip().pos++; - if (message.downstream === $util.emptyObject) - message.downstream = {}; - key = reader.string(); - reader.pos++; - message.downstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); - break; - case 8: - reader.skip().pos++; - if (message.upstream === $util.emptyObject) - message.upstream = {}; - key = reader.string(); - reader.pos++; - message.upstream[key] = $root.flyteidl.core.ConnectionSet.IdList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ConnectionSet message. - * @function verify - * @memberof flyteidl.core.ConnectionSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConnectionSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.downstream != null && message.hasOwnProperty("downstream")) { - if (!$util.isObject(message.downstream)) - return "downstream: object expected"; - var key = Object.keys(message.downstream); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.downstream[key[i]]); - if (error) - return "downstream." + error; - } - } - if (message.upstream != null && message.hasOwnProperty("upstream")) { - if (!$util.isObject(message.upstream)) - return "upstream: object expected"; - var key = Object.keys(message.upstream); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.ConnectionSet.IdList.verify(message.upstream[key[i]]); - if (error) - return "upstream." + error; - } - } - return null; - }; - - ConnectionSet.IdList = (function() { - - /** - * Properties of an IdList. - * @memberof flyteidl.core.ConnectionSet - * @interface IIdList - * @property {Array.|null} [ids] IdList ids - */ - - /** - * Constructs a new IdList. - * @memberof flyteidl.core.ConnectionSet - * @classdesc Represents an IdList. - * @implements IIdList - * @constructor - * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set - */ - function IdList(properties) { - this.ids = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IdList ids. - * @member {Array.} ids - * @memberof flyteidl.core.ConnectionSet.IdList - * @instance - */ - IdList.prototype.ids = $util.emptyArray; - - /** - * Creates a new IdList instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {flyteidl.core.ConnectionSet.IIdList=} [properties] Properties to set - * @returns {flyteidl.core.ConnectionSet.IdList} IdList instance - */ - IdList.create = function create(properties) { - return new IdList(properties); - }; - - /** - * Encodes the specified IdList message. Does not implicitly {@link flyteidl.core.ConnectionSet.IdList.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {flyteidl.core.ConnectionSet.IIdList} message IdList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IdList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); - return writer; - }; - - /** - * Decodes an IdList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConnectionSet.IdList} IdList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IdList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConnectionSet.IdList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IdList message. - * @function verify - * @memberof flyteidl.core.ConnectionSet.IdList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IdList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; - } - return null; - }; - - return IdList; - })(); - - return ConnectionSet; - })(); - - core.CompiledWorkflow = (function() { - - /** - * Properties of a CompiledWorkflow. - * @memberof flyteidl.core - * @interface ICompiledWorkflow - * @property {flyteidl.core.IWorkflowTemplate|null} [template] CompiledWorkflow template - * @property {flyteidl.core.IConnectionSet|null} [connections] CompiledWorkflow connections - */ - - /** - * Constructs a new CompiledWorkflow. - * @memberof flyteidl.core - * @classdesc Represents a CompiledWorkflow. - * @implements ICompiledWorkflow - * @constructor - * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set - */ - function CompiledWorkflow(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledWorkflow template. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template - * @memberof flyteidl.core.CompiledWorkflow - * @instance - */ - CompiledWorkflow.prototype.template = null; - - /** - * CompiledWorkflow connections. - * @member {flyteidl.core.IConnectionSet|null|undefined} connections - * @memberof flyteidl.core.CompiledWorkflow - * @instance - */ - CompiledWorkflow.prototype.connections = null; - - /** - * Creates a new CompiledWorkflow instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {flyteidl.core.ICompiledWorkflow=} [properties] Properties to set - * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow instance - */ - CompiledWorkflow.create = function create(properties) { - return new CompiledWorkflow(properties); - }; - - /** - * Encodes the specified CompiledWorkflow message. Does not implicitly {@link flyteidl.core.CompiledWorkflow.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {flyteidl.core.ICompiledWorkflow} message CompiledWorkflow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledWorkflow.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.connections != null && message.hasOwnProperty("connections")) - $root.flyteidl.core.ConnectionSet.encode(message.connections, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledWorkflow message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledWorkflow} CompiledWorkflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledWorkflow.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflow(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - message.connections = $root.flyteidl.core.ConnectionSet.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledWorkflow message. - * @function verify - * @memberof flyteidl.core.CompiledWorkflow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledWorkflow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.connections != null && message.hasOwnProperty("connections")) { - var error = $root.flyteidl.core.ConnectionSet.verify(message.connections); - if (error) - return "connections." + error; - } - return null; - }; - - return CompiledWorkflow; - })(); - - core.CompiledTask = (function() { - - /** - * Properties of a CompiledTask. - * @memberof flyteidl.core - * @interface ICompiledTask - * @property {flyteidl.core.ITaskTemplate|null} [template] CompiledTask template - */ - - /** - * Constructs a new CompiledTask. - * @memberof flyteidl.core - * @classdesc Represents a CompiledTask. - * @implements ICompiledTask - * @constructor - * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set - */ - function CompiledTask(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledTask template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.core.CompiledTask - * @instance - */ - CompiledTask.prototype.template = null; - - /** - * Creates a new CompiledTask instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledTask - * @static - * @param {flyteidl.core.ICompiledTask=} [properties] Properties to set - * @returns {flyteidl.core.CompiledTask} CompiledTask instance - */ - CompiledTask.create = function create(properties) { - return new CompiledTask(properties); - }; - - /** - * Encodes the specified CompiledTask message. Does not implicitly {@link flyteidl.core.CompiledTask.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledTask - * @static - * @param {flyteidl.core.ICompiledTask} message CompiledTask message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledTask.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledTask message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledTask - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledTask} CompiledTask - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledTask.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledTask(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledTask message. - * @function verify - * @memberof flyteidl.core.CompiledTask - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledTask.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - return null; - }; - - return CompiledTask; - })(); - - core.CompiledWorkflowClosure = (function() { - - /** - * Properties of a CompiledWorkflowClosure. - * @memberof flyteidl.core - * @interface ICompiledWorkflowClosure - * @property {flyteidl.core.ICompiledWorkflow|null} [primary] CompiledWorkflowClosure primary - * @property {Array.|null} [subWorkflows] CompiledWorkflowClosure subWorkflows - * @property {Array.|null} [tasks] CompiledWorkflowClosure tasks - */ - - /** - * Constructs a new CompiledWorkflowClosure. - * @memberof flyteidl.core - * @classdesc Represents a CompiledWorkflowClosure. - * @implements ICompiledWorkflowClosure - * @constructor - * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set - */ - function CompiledWorkflowClosure(properties) { - this.subWorkflows = []; - this.tasks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CompiledWorkflowClosure primary. - * @member {flyteidl.core.ICompiledWorkflow|null|undefined} primary - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.primary = null; - - /** - * CompiledWorkflowClosure subWorkflows. - * @member {Array.} subWorkflows - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.subWorkflows = $util.emptyArray; - - /** - * CompiledWorkflowClosure tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.CompiledWorkflowClosure - * @instance - */ - CompiledWorkflowClosure.prototype.tasks = $util.emptyArray; - - /** - * Creates a new CompiledWorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {flyteidl.core.ICompiledWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure instance - */ - CompiledWorkflowClosure.create = function create(properties) { - return new CompiledWorkflowClosure(properties); - }; - - /** - * Encodes the specified CompiledWorkflowClosure message. Does not implicitly {@link flyteidl.core.CompiledWorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {flyteidl.core.ICompiledWorkflowClosure} message CompiledWorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CompiledWorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primary != null && message.hasOwnProperty("primary")) - $root.flyteidl.core.CompiledWorkflow.encode(message.primary, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflows != null && message.subWorkflows.length) - for (var i = 0; i < message.subWorkflows.length; ++i) - $root.flyteidl.core.CompiledWorkflow.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.CompiledTask.encode(message.tasks[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CompiledWorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.CompiledWorkflowClosure} CompiledWorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CompiledWorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.CompiledWorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primary = $root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.subWorkflows && message.subWorkflows.length)) - message.subWorkflows = []; - message.subWorkflows.push($root.flyteidl.core.CompiledWorkflow.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.CompiledTask.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CompiledWorkflowClosure message. - * @function verify - * @memberof flyteidl.core.CompiledWorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CompiledWorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.primary != null && message.hasOwnProperty("primary")) { - var error = $root.flyteidl.core.CompiledWorkflow.verify(message.primary); - if (error) - return "primary." + error; - } - if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { - if (!Array.isArray(message.subWorkflows)) - return "subWorkflows: array expected"; - for (var i = 0; i < message.subWorkflows.length; ++i) { - var error = $root.flyteidl.core.CompiledWorkflow.verify(message.subWorkflows[i]); - if (error) - return "subWorkflows." + error; - } - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.CompiledTask.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - return null; - }; - - return CompiledWorkflowClosure; - })(); - - core.IfBlock = (function() { - - /** - * Properties of an IfBlock. - * @memberof flyteidl.core - * @interface IIfBlock - * @property {flyteidl.core.IBooleanExpression|null} [condition] IfBlock condition - * @property {flyteidl.core.INode|null} [thenNode] IfBlock thenNode - */ - - /** - * Constructs a new IfBlock. - * @memberof flyteidl.core - * @classdesc Represents an IfBlock. - * @implements IIfBlock - * @constructor - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set - */ - function IfBlock(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IfBlock condition. - * @member {flyteidl.core.IBooleanExpression|null|undefined} condition - * @memberof flyteidl.core.IfBlock - * @instance - */ - IfBlock.prototype.condition = null; - - /** - * IfBlock thenNode. - * @member {flyteidl.core.INode|null|undefined} thenNode - * @memberof flyteidl.core.IfBlock - * @instance - */ - IfBlock.prototype.thenNode = null; - - /** - * Creates a new IfBlock instance using the specified properties. - * @function create - * @memberof flyteidl.core.IfBlock - * @static - * @param {flyteidl.core.IIfBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfBlock} IfBlock instance - */ - IfBlock.create = function create(properties) { - return new IfBlock(properties); - }; - - /** - * Encodes the specified IfBlock message. Does not implicitly {@link flyteidl.core.IfBlock.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IfBlock - * @static - * @param {flyteidl.core.IIfBlock} message IfBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IfBlock.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.condition != null && message.hasOwnProperty("condition")) - $root.flyteidl.core.BooleanExpression.encode(message.condition, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.thenNode != null && message.hasOwnProperty("thenNode")) - $root.flyteidl.core.Node.encode(message.thenNode, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an IfBlock message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IfBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfBlock} IfBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IfBlock.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfBlock(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.condition = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - case 2: - message.thenNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IfBlock message. - * @function verify - * @memberof flyteidl.core.IfBlock - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IfBlock.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.condition != null && message.hasOwnProperty("condition")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.condition); - if (error) - return "condition." + error; - } - if (message.thenNode != null && message.hasOwnProperty("thenNode")) { - var error = $root.flyteidl.core.Node.verify(message.thenNode); - if (error) - return "thenNode." + error; - } - return null; - }; - - return IfBlock; - })(); - - core.IfElseBlock = (function() { - - /** - * Properties of an IfElseBlock. - * @memberof flyteidl.core - * @interface IIfElseBlock - * @property {flyteidl.core.IIfBlock|null} ["case"] IfElseBlock case - * @property {Array.|null} [other] IfElseBlock other - * @property {flyteidl.core.INode|null} [elseNode] IfElseBlock elseNode - * @property {flyteidl.core.IError|null} [error] IfElseBlock error - */ - - /** - * Constructs a new IfElseBlock. - * @memberof flyteidl.core - * @classdesc Represents an IfElseBlock. - * @implements IIfElseBlock - * @constructor - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set - */ - function IfElseBlock(properties) { - this.other = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IfElseBlock case. - * @member {flyteidl.core.IIfBlock|null|undefined} case - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype["case"] = null; - - /** - * IfElseBlock other. - * @member {Array.} other - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.other = $util.emptyArray; - - /** - * IfElseBlock elseNode. - * @member {flyteidl.core.INode|null|undefined} elseNode - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.elseNode = null; - - /** - * IfElseBlock error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - IfElseBlock.prototype.error = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * IfElseBlock default. - * @member {"elseNode"|"error"|undefined} default_ - * @memberof flyteidl.core.IfElseBlock - * @instance - */ - Object.defineProperty(IfElseBlock.prototype, "default", { - get: $util.oneOfGetter($oneOfFields = ["elseNode", "error"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new IfElseBlock instance using the specified properties. - * @function create - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {flyteidl.core.IIfElseBlock=} [properties] Properties to set - * @returns {flyteidl.core.IfElseBlock} IfElseBlock instance - */ - IfElseBlock.create = function create(properties) { - return new IfElseBlock(properties); - }; - - /** - * Encodes the specified IfElseBlock message. Does not implicitly {@link flyteidl.core.IfElseBlock.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {flyteidl.core.IIfElseBlock} message IfElseBlock message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IfElseBlock.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["case"] != null && message.hasOwnProperty("case")) - $root.flyteidl.core.IfBlock.encode(message["case"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.other != null && message.other.length) - for (var i = 0; i < message.other.length; ++i) - $root.flyteidl.core.IfBlock.encode(message.other[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.elseNode != null && message.hasOwnProperty("elseNode")) - $root.flyteidl.core.Node.encode(message.elseNode, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an IfElseBlock message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IfElseBlock} IfElseBlock - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IfElseBlock.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IfElseBlock(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["case"] = $root.flyteidl.core.IfBlock.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.other && message.other.length)) - message.other = []; - message.other.push($root.flyteidl.core.IfBlock.decode(reader, reader.uint32())); - break; - case 3: - message.elseNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 4: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an IfElseBlock message. - * @function verify - * @memberof flyteidl.core.IfElseBlock - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IfElseBlock.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message["case"] != null && message.hasOwnProperty("case")) { - var error = $root.flyteidl.core.IfBlock.verify(message["case"]); - if (error) - return "case." + error; - } - if (message.other != null && message.hasOwnProperty("other")) { - if (!Array.isArray(message.other)) - return "other: array expected"; - for (var i = 0; i < message.other.length; ++i) { - var error = $root.flyteidl.core.IfBlock.verify(message.other[i]); - if (error) - return "other." + error; - } - } - if (message.elseNode != null && message.hasOwnProperty("elseNode")) { - properties["default"] = 1; - { - var error = $root.flyteidl.core.Node.verify(message.elseNode); - if (error) - return "elseNode." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties["default"] === 1) - return "default: multiple values"; - properties["default"] = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); - if (error) - return "error." + error; - } - } - return null; - }; - - return IfElseBlock; - })(); - - core.BranchNode = (function() { - - /** - * Properties of a BranchNode. - * @memberof flyteidl.core - * @interface IBranchNode - * @property {flyteidl.core.IIfElseBlock|null} [ifElse] BranchNode ifElse - */ - - /** - * Constructs a new BranchNode. - * @memberof flyteidl.core - * @classdesc Represents a BranchNode. - * @implements IBranchNode - * @constructor - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set - */ - function BranchNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BranchNode ifElse. - * @member {flyteidl.core.IIfElseBlock|null|undefined} ifElse - * @memberof flyteidl.core.BranchNode - * @instance - */ - BranchNode.prototype.ifElse = null; - - /** - * Creates a new BranchNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.BranchNode - * @static - * @param {flyteidl.core.IBranchNode=} [properties] Properties to set - * @returns {flyteidl.core.BranchNode} BranchNode instance - */ - BranchNode.create = function create(properties) { - return new BranchNode(properties); - }; - - /** - * Encodes the specified BranchNode message. Does not implicitly {@link flyteidl.core.BranchNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BranchNode - * @static - * @param {flyteidl.core.IBranchNode} message BranchNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BranchNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ifElse != null && message.hasOwnProperty("ifElse")) - $root.flyteidl.core.IfElseBlock.encode(message.ifElse, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BranchNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BranchNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BranchNode} BranchNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BranchNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BranchNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ifElse = $root.flyteidl.core.IfElseBlock.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BranchNode message. - * @function verify - * @memberof flyteidl.core.BranchNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BranchNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ifElse != null && message.hasOwnProperty("ifElse")) { - var error = $root.flyteidl.core.IfElseBlock.verify(message.ifElse); - if (error) - return "ifElse." + error; - } - return null; - }; - - return BranchNode; - })(); - - core.TaskNode = (function() { - - /** - * Properties of a TaskNode. - * @memberof flyteidl.core - * @interface ITaskNode - * @property {flyteidl.core.IIdentifier|null} [referenceId] TaskNode referenceId - * @property {flyteidl.core.ITaskNodeOverrides|null} [overrides] TaskNode overrides - */ - - /** - * Constructs a new TaskNode. - * @memberof flyteidl.core - * @classdesc Represents a TaskNode. - * @implements ITaskNode - * @constructor - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set - */ - function TaskNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNode referenceId. - * @member {flyteidl.core.IIdentifier|null|undefined} referenceId - * @memberof flyteidl.core.TaskNode - * @instance - */ - TaskNode.prototype.referenceId = null; - - /** - * TaskNode overrides. - * @member {flyteidl.core.ITaskNodeOverrides|null|undefined} overrides - * @memberof flyteidl.core.TaskNode - * @instance - */ - TaskNode.prototype.overrides = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskNode reference. - * @member {"referenceId"|undefined} reference - * @memberof flyteidl.core.TaskNode - * @instance - */ - Object.defineProperty(TaskNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["referenceId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskNode - * @static - * @param {flyteidl.core.ITaskNode=} [properties] Properties to set - * @returns {flyteidl.core.TaskNode} TaskNode instance - */ - TaskNode.create = function create(properties) { - return new TaskNode(properties); - }; - - /** - * Encodes the specified TaskNode message. Does not implicitly {@link flyteidl.core.TaskNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskNode - * @static - * @param {flyteidl.core.ITaskNode} message TaskNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.referenceId != null && message.hasOwnProperty("referenceId")) - $root.flyteidl.core.Identifier.encode(message.referenceId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.overrides != null && message.hasOwnProperty("overrides")) - $root.flyteidl.core.TaskNodeOverrides.encode(message.overrides, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNode} TaskNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.referenceId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.overrides = $root.flyteidl.core.TaskNodeOverrides.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNode message. - * @function verify - * @memberof flyteidl.core.TaskNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.referenceId != null && message.hasOwnProperty("referenceId")) { - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.referenceId); - if (error) - return "referenceId." + error; - } - } - if (message.overrides != null && message.hasOwnProperty("overrides")) { - var error = $root.flyteidl.core.TaskNodeOverrides.verify(message.overrides); - if (error) - return "overrides." + error; - } - return null; - }; - - return TaskNode; - })(); - - core.WorkflowNode = (function() { - - /** - * Properties of a WorkflowNode. - * @memberof flyteidl.core - * @interface IWorkflowNode - * @property {flyteidl.core.IIdentifier|null} [launchplanRef] WorkflowNode launchplanRef - * @property {flyteidl.core.IIdentifier|null} [subWorkflowRef] WorkflowNode subWorkflowRef - */ - - /** - * Constructs a new WorkflowNode. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowNode. - * @implements IWorkflowNode - * @constructor - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set - */ - function WorkflowNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNode launchplanRef. - * @member {flyteidl.core.IIdentifier|null|undefined} launchplanRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.launchplanRef = null; - - /** - * WorkflowNode subWorkflowRef. - * @member {flyteidl.core.IIdentifier|null|undefined} subWorkflowRef - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - WorkflowNode.prototype.subWorkflowRef = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WorkflowNode reference. - * @member {"launchplanRef"|"subWorkflowRef"|undefined} reference - * @memberof flyteidl.core.WorkflowNode - * @instance - */ - Object.defineProperty(WorkflowNode.prototype, "reference", { - get: $util.oneOfGetter($oneOfFields = ["launchplanRef", "subWorkflowRef"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new WorkflowNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {flyteidl.core.IWorkflowNode=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowNode} WorkflowNode instance - */ - WorkflowNode.create = function create(properties) { - return new WorkflowNode(properties); - }; - - /** - * Encodes the specified WorkflowNode message. Does not implicitly {@link flyteidl.core.WorkflowNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {flyteidl.core.IWorkflowNode} message WorkflowNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) - $root.flyteidl.core.Identifier.encode(message.launchplanRef, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) - $root.flyteidl.core.Identifier.encode(message.subWorkflowRef, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowNode} WorkflowNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.launchplanRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.subWorkflowRef = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNode message. - * @function verify - * @memberof flyteidl.core.WorkflowNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.launchplanRef != null && message.hasOwnProperty("launchplanRef")) { - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.launchplanRef); - if (error) - return "launchplanRef." + error; - } - } - if (message.subWorkflowRef != null && message.hasOwnProperty("subWorkflowRef")) { - if (properties.reference === 1) - return "reference: multiple values"; - properties.reference = 1; - { - var error = $root.flyteidl.core.Identifier.verify(message.subWorkflowRef); - if (error) - return "subWorkflowRef." + error; - } - } - return null; - }; - - return WorkflowNode; - })(); - - core.ApproveCondition = (function() { - - /** - * Properties of an ApproveCondition. - * @memberof flyteidl.core - * @interface IApproveCondition - * @property {string|null} [signalId] ApproveCondition signalId - */ - - /** - * Constructs a new ApproveCondition. - * @memberof flyteidl.core - * @classdesc Represents an ApproveCondition. - * @implements IApproveCondition - * @constructor - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set - */ - function ApproveCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ApproveCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.ApproveCondition - * @instance - */ - ApproveCondition.prototype.signalId = ""; - - /** - * Creates a new ApproveCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {flyteidl.core.IApproveCondition=} [properties] Properties to set - * @returns {flyteidl.core.ApproveCondition} ApproveCondition instance - */ - ApproveCondition.create = function create(properties) { - return new ApproveCondition(properties); - }; - - /** - * Encodes the specified ApproveCondition message. Does not implicitly {@link flyteidl.core.ApproveCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {flyteidl.core.IApproveCondition} message ApproveCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ApproveCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - return writer; - }; - - /** - * Decodes an ApproveCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ApproveCondition} ApproveCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ApproveCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ApproveCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ApproveCondition message. - * @function verify - * @memberof flyteidl.core.ApproveCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ApproveCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - return null; - }; - - return ApproveCondition; - })(); - - core.SignalCondition = (function() { - - /** - * Properties of a SignalCondition. - * @memberof flyteidl.core - * @interface ISignalCondition - * @property {string|null} [signalId] SignalCondition signalId - * @property {flyteidl.core.ILiteralType|null} [type] SignalCondition type - * @property {string|null} [outputVariableName] SignalCondition outputVariableName - */ - - /** - * Constructs a new SignalCondition. - * @memberof flyteidl.core - * @classdesc Represents a SignalCondition. - * @implements ISignalCondition - * @constructor - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - */ - function SignalCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalCondition signalId. - * @member {string} signalId - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.signalId = ""; - - /** - * SignalCondition type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.type = null; - - /** - * SignalCondition outputVariableName. - * @member {string} outputVariableName - * @memberof flyteidl.core.SignalCondition - * @instance - */ - SignalCondition.prototype.outputVariableName = ""; - - /** - * Creates a new SignalCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.SignalCondition - * @static - * @param {flyteidl.core.ISignalCondition=} [properties] Properties to set - * @returns {flyteidl.core.SignalCondition} SignalCondition instance - */ - SignalCondition.create = function create(properties) { - return new SignalCondition(properties); - }; - - /** - * Encodes the specified SignalCondition message. Does not implicitly {@link flyteidl.core.SignalCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SignalCondition - * @static - * @param {flyteidl.core.ISignalCondition} message SignalCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signalId != null && message.hasOwnProperty("signalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signalId); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputVariableName); - return writer; - }; - - /** - * Decodes a SignalCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SignalCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SignalCondition} SignalCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SignalCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signalId = reader.string(); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 3: - message.outputVariableName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalCondition message. - * @function verify - * @memberof flyteidl.core.SignalCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signalId != null && message.hasOwnProperty("signalId")) - if (!$util.isString(message.signalId)) - return "signalId: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.outputVariableName != null && message.hasOwnProperty("outputVariableName")) - if (!$util.isString(message.outputVariableName)) - return "outputVariableName: string expected"; - return null; - }; - - return SignalCondition; - })(); - - core.SleepCondition = (function() { - - /** - * Properties of a SleepCondition. - * @memberof flyteidl.core - * @interface ISleepCondition - * @property {google.protobuf.IDuration|null} [duration] SleepCondition duration - */ - - /** - * Constructs a new SleepCondition. - * @memberof flyteidl.core - * @classdesc Represents a SleepCondition. - * @implements ISleepCondition - * @constructor - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set - */ - function SleepCondition(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SleepCondition duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.SleepCondition - * @instance - */ - SleepCondition.prototype.duration = null; - - /** - * Creates a new SleepCondition instance using the specified properties. - * @function create - * @memberof flyteidl.core.SleepCondition - * @static - * @param {flyteidl.core.ISleepCondition=} [properties] Properties to set - * @returns {flyteidl.core.SleepCondition} SleepCondition instance - */ - SleepCondition.create = function create(properties) { - return new SleepCondition(properties); - }; - - /** - * Encodes the specified SleepCondition message. Does not implicitly {@link flyteidl.core.SleepCondition.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SleepCondition - * @static - * @param {flyteidl.core.ISleepCondition} message SleepCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SleepCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SleepCondition message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SleepCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SleepCondition} SleepCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SleepCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SleepCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SleepCondition message. - * @function verify - * @memberof flyteidl.core.SleepCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SleepCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - return null; - }; - - return SleepCondition; - })(); - - core.GateNode = (function() { - - /** - * Properties of a GateNode. - * @memberof flyteidl.core - * @interface IGateNode - * @property {flyteidl.core.IApproveCondition|null} [approve] GateNode approve - * @property {flyteidl.core.ISignalCondition|null} [signal] GateNode signal - * @property {flyteidl.core.ISleepCondition|null} [sleep] GateNode sleep - */ - - /** - * Constructs a new GateNode. - * @memberof flyteidl.core - * @classdesc Represents a GateNode. - * @implements IGateNode - * @constructor - * @param {flyteidl.core.IGateNode=} [properties] Properties to set - */ - function GateNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GateNode approve. - * @member {flyteidl.core.IApproveCondition|null|undefined} approve - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.approve = null; - - /** - * GateNode signal. - * @member {flyteidl.core.ISignalCondition|null|undefined} signal - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.signal = null; - - /** - * GateNode sleep. - * @member {flyteidl.core.ISleepCondition|null|undefined} sleep - * @memberof flyteidl.core.GateNode - * @instance - */ - GateNode.prototype.sleep = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GateNode condition. - * @member {"approve"|"signal"|"sleep"|undefined} condition - * @memberof flyteidl.core.GateNode - * @instance - */ - Object.defineProperty(GateNode.prototype, "condition", { - get: $util.oneOfGetter($oneOfFields = ["approve", "signal", "sleep"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GateNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.GateNode - * @static - * @param {flyteidl.core.IGateNode=} [properties] Properties to set - * @returns {flyteidl.core.GateNode} GateNode instance - */ - GateNode.create = function create(properties) { - return new GateNode(properties); - }; - - /** - * Encodes the specified GateNode message. Does not implicitly {@link flyteidl.core.GateNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.GateNode - * @static - * @param {flyteidl.core.IGateNode} message GateNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GateNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.approve != null && message.hasOwnProperty("approve")) - $root.flyteidl.core.ApproveCondition.encode(message.approve, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.signal != null && message.hasOwnProperty("signal")) - $root.flyteidl.core.SignalCondition.encode(message.signal, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sleep != null && message.hasOwnProperty("sleep")) - $root.flyteidl.core.SleepCondition.encode(message.sleep, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GateNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.GateNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.GateNode} GateNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GateNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GateNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.approve = $root.flyteidl.core.ApproveCondition.decode(reader, reader.uint32()); - break; - case 2: - message.signal = $root.flyteidl.core.SignalCondition.decode(reader, reader.uint32()); - break; - case 3: - message.sleep = $root.flyteidl.core.SleepCondition.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GateNode message. - * @function verify - * @memberof flyteidl.core.GateNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GateNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.approve != null && message.hasOwnProperty("approve")) { - properties.condition = 1; - { - var error = $root.flyteidl.core.ApproveCondition.verify(message.approve); - if (error) - return "approve." + error; - } - } - if (message.signal != null && message.hasOwnProperty("signal")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SignalCondition.verify(message.signal); - if (error) - return "signal." + error; - } - } - if (message.sleep != null && message.hasOwnProperty("sleep")) { - if (properties.condition === 1) - return "condition: multiple values"; - properties.condition = 1; - { - var error = $root.flyteidl.core.SleepCondition.verify(message.sleep); - if (error) - return "sleep." + error; - } - } - return null; - }; - - return GateNode; - })(); - - core.ArrayNode = (function() { - - /** - * Properties of an ArrayNode. - * @memberof flyteidl.core - * @interface IArrayNode - * @property {flyteidl.core.INode|null} [node] ArrayNode node - * @property {number|null} [parallelism] ArrayNode parallelism - * @property {number|null} [minSuccesses] ArrayNode minSuccesses - * @property {number|null} [minSuccessRatio] ArrayNode minSuccessRatio - */ - - /** - * Constructs a new ArrayNode. - * @memberof flyteidl.core - * @classdesc Represents an ArrayNode. - * @implements IArrayNode - * @constructor - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set - */ - function ArrayNode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ArrayNode node. - * @member {flyteidl.core.INode|null|undefined} node - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.node = null; - - /** - * ArrayNode parallelism. - * @member {number} parallelism - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.parallelism = 0; - - /** - * ArrayNode minSuccesses. - * @member {number} minSuccesses - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccesses = 0; - - /** - * ArrayNode minSuccessRatio. - * @member {number} minSuccessRatio - * @memberof flyteidl.core.ArrayNode - * @instance - */ - ArrayNode.prototype.minSuccessRatio = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ArrayNode successCriteria. - * @member {"minSuccesses"|"minSuccessRatio"|undefined} successCriteria - * @memberof flyteidl.core.ArrayNode - * @instance - */ - Object.defineProperty(ArrayNode.prototype, "successCriteria", { - get: $util.oneOfGetter($oneOfFields = ["minSuccesses", "minSuccessRatio"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ArrayNode instance using the specified properties. - * @function create - * @memberof flyteidl.core.ArrayNode - * @static - * @param {flyteidl.core.IArrayNode=} [properties] Properties to set - * @returns {flyteidl.core.ArrayNode} ArrayNode instance - */ - ArrayNode.create = function create(properties) { - return new ArrayNode(properties); - }; - - /** - * Encodes the specified ArrayNode message. Does not implicitly {@link flyteidl.core.ArrayNode.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ArrayNode - * @static - * @param {flyteidl.core.IArrayNode} message ArrayNode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ArrayNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.node != null && message.hasOwnProperty("node")) - $root.flyteidl.core.Node.encode(message.node, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.parallelism); - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.minSuccesses); - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) - writer.uint32(/* id 4, wireType 5 =*/37).float(message.minSuccessRatio); - return writer; - }; - - /** - * Decodes an ArrayNode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ArrayNode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ArrayNode} ArrayNode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ArrayNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ArrayNode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.node = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 2: - message.parallelism = reader.uint32(); - break; - case 3: - message.minSuccesses = reader.uint32(); - break; - case 4: - message.minSuccessRatio = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ArrayNode message. - * @function verify - * @memberof flyteidl.core.ArrayNode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ArrayNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.node != null && message.hasOwnProperty("node")) { - var error = $root.flyteidl.core.Node.verify(message.node); - if (error) - return "node." + error; - } - if (message.parallelism != null && message.hasOwnProperty("parallelism")) - if (!$util.isInteger(message.parallelism)) - return "parallelism: integer expected"; - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) { - properties.successCriteria = 1; - if (!$util.isInteger(message.minSuccesses)) - return "minSuccesses: integer expected"; - } - if (message.minSuccessRatio != null && message.hasOwnProperty("minSuccessRatio")) { - if (properties.successCriteria === 1) - return "successCriteria: multiple values"; - properties.successCriteria = 1; - if (typeof message.minSuccessRatio !== "number") - return "minSuccessRatio: number expected"; - } - return null; - }; - - return ArrayNode; - })(); - - core.NodeMetadata = (function() { - - /** - * Properties of a NodeMetadata. - * @memberof flyteidl.core - * @interface INodeMetadata - * @property {string|null} [name] NodeMetadata name - * @property {google.protobuf.IDuration|null} [timeout] NodeMetadata timeout - * @property {flyteidl.core.IRetryStrategy|null} [retries] NodeMetadata retries - * @property {boolean|null} [interruptible] NodeMetadata interruptible - */ - - /** - * Constructs a new NodeMetadata. - * @memberof flyteidl.core - * @classdesc Represents a NodeMetadata. - * @implements INodeMetadata - * @constructor - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set - */ - function NodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeMetadata name. - * @member {string} name - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.name = ""; - - /** - * NodeMetadata timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.timeout = null; - - /** - * NodeMetadata retries. - * @member {flyteidl.core.IRetryStrategy|null|undefined} retries - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.retries = null; - - /** - * NodeMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - NodeMetadata.prototype.interruptible = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeMetadata interruptibleValue. - * @member {"interruptible"|undefined} interruptibleValue - * @memberof flyteidl.core.NodeMetadata - * @instance - */ - Object.defineProperty(NodeMetadata.prototype, "interruptibleValue", { - get: $util.oneOfGetter($oneOfFields = ["interruptible"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {flyteidl.core.INodeMetadata=} [properties] Properties to set - * @returns {flyteidl.core.NodeMetadata} NodeMetadata instance - */ - NodeMetadata.create = function create(properties) { - return new NodeMetadata(properties); - }; - - /** - * Encodes the specified NodeMetadata message. Does not implicitly {@link flyteidl.core.NodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {flyteidl.core.INodeMetadata} message NodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.timeout != null && message.hasOwnProperty("timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.retries != null && message.hasOwnProperty("retries")) - $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interruptible); - return writer; - }; - - /** - * Decodes a NodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeMetadata} NodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 4: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); - break; - case 6: - message.interruptible = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeMetadata message. - * @function verify - * @memberof flyteidl.core.NodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.retries != null && message.hasOwnProperty("retries")) { - var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); - if (error) - return "retries." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - properties.interruptibleValue = 1; - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - } - return null; - }; - - return NodeMetadata; - })(); - - core.Alias = (function() { - - /** - * Properties of an Alias. - * @memberof flyteidl.core - * @interface IAlias - * @property {string|null} ["var"] Alias var - * @property {string|null} [alias] Alias alias - */ - - /** - * Constructs a new Alias. - * @memberof flyteidl.core - * @classdesc Represents an Alias. - * @implements IAlias - * @constructor - * @param {flyteidl.core.IAlias=} [properties] Properties to set - */ - function Alias(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Alias var. - * @member {string} var - * @memberof flyteidl.core.Alias - * @instance - */ - Alias.prototype["var"] = ""; - - /** - * Alias alias. - * @member {string} alias - * @memberof flyteidl.core.Alias - * @instance - */ - Alias.prototype.alias = ""; - - /** - * Creates a new Alias instance using the specified properties. - * @function create - * @memberof flyteidl.core.Alias - * @static - * @param {flyteidl.core.IAlias=} [properties] Properties to set - * @returns {flyteidl.core.Alias} Alias instance - */ - Alias.create = function create(properties) { - return new Alias(properties); - }; - - /** - * Encodes the specified Alias message. Does not implicitly {@link flyteidl.core.Alias.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Alias - * @static - * @param {flyteidl.core.IAlias} message Alias message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Alias.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.alias != null && message.hasOwnProperty("alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); - return writer; - }; - - /** - * Decodes an Alias message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Alias - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Alias} Alias - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Alias.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Alias(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - case 2: - message.alias = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Alias message. - * @function verify - * @memberof flyteidl.core.Alias - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Alias.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - return null; - }; - - return Alias; - })(); - - core.Node = (function() { - - /** - * Properties of a Node. - * @memberof flyteidl.core - * @interface INode - * @property {string|null} [id] Node id - * @property {flyteidl.core.INodeMetadata|null} [metadata] Node metadata - * @property {Array.|null} [inputs] Node inputs - * @property {Array.|null} [upstreamNodeIds] Node upstreamNodeIds - * @property {Array.|null} [outputAliases] Node outputAliases - * @property {flyteidl.core.ITaskNode|null} [taskNode] Node taskNode - * @property {flyteidl.core.IWorkflowNode|null} [workflowNode] Node workflowNode - * @property {flyteidl.core.IBranchNode|null} [branchNode] Node branchNode - * @property {flyteidl.core.IGateNode|null} [gateNode] Node gateNode - * @property {flyteidl.core.IArrayNode|null} [arrayNode] Node arrayNode - */ - - /** - * Constructs a new Node. - * @memberof flyteidl.core - * @classdesc Represents a Node. - * @implements INode - * @constructor - * @param {flyteidl.core.INode=} [properties] Properties to set - */ - function Node(properties) { - this.inputs = []; - this.upstreamNodeIds = []; - this.outputAliases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Node id. - * @member {string} id - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.id = ""; - - /** - * Node metadata. - * @member {flyteidl.core.INodeMetadata|null|undefined} metadata - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.metadata = null; - - /** - * Node inputs. - * @member {Array.} inputs - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.inputs = $util.emptyArray; - - /** - * Node upstreamNodeIds. - * @member {Array.} upstreamNodeIds - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.upstreamNodeIds = $util.emptyArray; - - /** - * Node outputAliases. - * @member {Array.} outputAliases - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.outputAliases = $util.emptyArray; - - /** - * Node taskNode. - * @member {flyteidl.core.ITaskNode|null|undefined} taskNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.taskNode = null; - - /** - * Node workflowNode. - * @member {flyteidl.core.IWorkflowNode|null|undefined} workflowNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.workflowNode = null; - - /** - * Node branchNode. - * @member {flyteidl.core.IBranchNode|null|undefined} branchNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.branchNode = null; - - /** - * Node gateNode. - * @member {flyteidl.core.IGateNode|null|undefined} gateNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.gateNode = null; - - /** - * Node arrayNode. - * @member {flyteidl.core.IArrayNode|null|undefined} arrayNode - * @memberof flyteidl.core.Node - * @instance - */ - Node.prototype.arrayNode = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Node target. - * @member {"taskNode"|"workflowNode"|"branchNode"|"gateNode"|"arrayNode"|undefined} target - * @memberof flyteidl.core.Node - * @instance - */ - Object.defineProperty(Node.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskNode", "workflowNode", "branchNode", "gateNode", "arrayNode"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Node instance using the specified properties. - * @function create - * @memberof flyteidl.core.Node - * @static - * @param {flyteidl.core.INode=} [properties] Properties to set - * @returns {flyteidl.core.Node} Node instance - */ - Node.create = function create(properties) { - return new Node(properties); - }; - - /** - * Encodes the specified Node message. Does not implicitly {@link flyteidl.core.Node.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Node - * @static - * @param {flyteidl.core.INode} message Node message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Node.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.NodeMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.inputs != null && message.inputs.length) - for (var i = 0; i < message.inputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.inputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.upstreamNodeIds != null && message.upstreamNodeIds.length) - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.upstreamNodeIds[i]); - if (message.outputAliases != null && message.outputAliases.length) - for (var i = 0; i < message.outputAliases.length; ++i) - $root.flyteidl.core.Alias.encode(message.outputAliases[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.taskNode != null && message.hasOwnProperty("taskNode")) - $root.flyteidl.core.TaskNode.encode(message.taskNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) - $root.flyteidl.core.WorkflowNode.encode(message.workflowNode, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.branchNode != null && message.hasOwnProperty("branchNode")) - $root.flyteidl.core.BranchNode.encode(message.branchNode, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.gateNode != null && message.hasOwnProperty("gateNode")) - $root.flyteidl.core.GateNode.encode(message.gateNode, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) - $root.flyteidl.core.ArrayNode.encode(message.arrayNode, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Node message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Node - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Node} Node - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Node.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Node(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.metadata = $root.flyteidl.core.NodeMetadata.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.inputs && message.inputs.length)) - message.inputs = []; - message.inputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.upstreamNodeIds && message.upstreamNodeIds.length)) - message.upstreamNodeIds = []; - message.upstreamNodeIds.push(reader.string()); - break; - case 5: - if (!(message.outputAliases && message.outputAliases.length)) - message.outputAliases = []; - message.outputAliases.push($root.flyteidl.core.Alias.decode(reader, reader.uint32())); - break; - case 6: - message.taskNode = $root.flyteidl.core.TaskNode.decode(reader, reader.uint32()); - break; - case 7: - message.workflowNode = $root.flyteidl.core.WorkflowNode.decode(reader, reader.uint32()); - break; - case 8: - message.branchNode = $root.flyteidl.core.BranchNode.decode(reader, reader.uint32()); - break; - case 9: - message.gateNode = $root.flyteidl.core.GateNode.decode(reader, reader.uint32()); - break; - case 10: - message.arrayNode = $root.flyteidl.core.ArrayNode.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Node message. - * @function verify - * @memberof flyteidl.core.Node - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Node.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.NodeMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - if (!Array.isArray(message.inputs)) - return "inputs: array expected"; - for (var i = 0; i < message.inputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.inputs[i]); - if (error) - return "inputs." + error; - } - } - if (message.upstreamNodeIds != null && message.hasOwnProperty("upstreamNodeIds")) { - if (!Array.isArray(message.upstreamNodeIds)) - return "upstreamNodeIds: array expected"; - for (var i = 0; i < message.upstreamNodeIds.length; ++i) - if (!$util.isString(message.upstreamNodeIds[i])) - return "upstreamNodeIds: string[] expected"; - } - if (message.outputAliases != null && message.hasOwnProperty("outputAliases")) { - if (!Array.isArray(message.outputAliases)) - return "outputAliases: array expected"; - for (var i = 0; i < message.outputAliases.length; ++i) { - var error = $root.flyteidl.core.Alias.verify(message.outputAliases[i]); - if (error) - return "outputAliases." + error; - } - } - if (message.taskNode != null && message.hasOwnProperty("taskNode")) { - properties.target = 1; - { - var error = $root.flyteidl.core.TaskNode.verify(message.taskNode); - if (error) - return "taskNode." + error; - } - } - if (message.workflowNode != null && message.hasOwnProperty("workflowNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.WorkflowNode.verify(message.workflowNode); - if (error) - return "workflowNode." + error; - } - } - if (message.branchNode != null && message.hasOwnProperty("branchNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.BranchNode.verify(message.branchNode); - if (error) - return "branchNode." + error; - } - } - if (message.gateNode != null && message.hasOwnProperty("gateNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.GateNode.verify(message.gateNode); - if (error) - return "gateNode." + error; - } - } - if (message.arrayNode != null && message.hasOwnProperty("arrayNode")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.ArrayNode.verify(message.arrayNode); - if (error) - return "arrayNode." + error; - } - } - return null; - }; - - return Node; - })(); - - core.WorkflowMetadata = (function() { - - /** - * Properties of a WorkflowMetadata. - * @memberof flyteidl.core - * @interface IWorkflowMetadata - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] WorkflowMetadata qualityOfService - * @property {flyteidl.core.WorkflowMetadata.OnFailurePolicy|null} [onFailure] WorkflowMetadata onFailure - * @property {Object.|null} [tags] WorkflowMetadata tags - */ - - /** - * Constructs a new WorkflowMetadata. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadata. - * @implements IWorkflowMetadata - * @constructor - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set - */ - function WorkflowMetadata(properties) { - this.tags = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowMetadata qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.qualityOfService = null; - - /** - * WorkflowMetadata onFailure. - * @member {flyteidl.core.WorkflowMetadata.OnFailurePolicy} onFailure - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.onFailure = 0; - - /** - * WorkflowMetadata tags. - * @member {Object.} tags - * @memberof flyteidl.core.WorkflowMetadata - * @instance - */ - WorkflowMetadata.prototype.tags = $util.emptyObject; - - /** - * Creates a new WorkflowMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {flyteidl.core.IWorkflowMetadata=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata instance - */ - WorkflowMetadata.create = function create(properties) { - return new WorkflowMetadata(properties); - }; - - /** - * Encodes the specified WorkflowMetadata message. Does not implicitly {@link flyteidl.core.WorkflowMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {flyteidl.core.IWorkflowMetadata} message WorkflowMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.onFailure); - if (message.tags != null && message.hasOwnProperty("tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadata} WorkflowMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 2: - message.onFailure = reader.int32(); - break; - case 3: - reader.skip().pos++; - if (message.tags === $util.emptyObject) - message.tags = {}; - key = reader.string(); - reader.pos++; - message.tags[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowMetadata message. - * @function verify - * @memberof flyteidl.core.WorkflowMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.onFailure != null && message.hasOwnProperty("onFailure")) - switch (message.onFailure) { - default: - return "onFailure: enum value expected"; - case 0: - case 1: - break; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - return null; - }; - - /** - * OnFailurePolicy enum. - * @name flyteidl.core.WorkflowMetadata.OnFailurePolicy - * @enum {string} - * @property {number} FAIL_IMMEDIATELY=0 FAIL_IMMEDIATELY value - * @property {number} FAIL_AFTER_EXECUTABLE_NODES_COMPLETE=1 FAIL_AFTER_EXECUTABLE_NODES_COMPLETE value - */ - WorkflowMetadata.OnFailurePolicy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FAIL_IMMEDIATELY"] = 0; - values[valuesById[1] = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE"] = 1; - return values; - })(); - - return WorkflowMetadata; - })(); - - core.WorkflowMetadataDefaults = (function() { - - /** - * Properties of a WorkflowMetadataDefaults. - * @memberof flyteidl.core - * @interface IWorkflowMetadataDefaults - * @property {boolean|null} [interruptible] WorkflowMetadataDefaults interruptible - */ - - /** - * Constructs a new WorkflowMetadataDefaults. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowMetadataDefaults. - * @implements IWorkflowMetadataDefaults - * @constructor - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set - */ - function WorkflowMetadataDefaults(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowMetadataDefaults interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @instance - */ - WorkflowMetadataDefaults.prototype.interruptible = false; - - /** - * Creates a new WorkflowMetadataDefaults instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults instance - */ - WorkflowMetadataDefaults.create = function create(properties) { - return new WorkflowMetadataDefaults(properties); - }; - - /** - * Encodes the specified WorkflowMetadataDefaults message. Does not implicitly {@link flyteidl.core.WorkflowMetadataDefaults.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {flyteidl.core.IWorkflowMetadataDefaults} message WorkflowMetadataDefaults message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowMetadataDefaults.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.interruptible); - return writer; - }; - - /** - * Decodes a WorkflowMetadataDefaults message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowMetadataDefaults} WorkflowMetadataDefaults - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowMetadataDefaults.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowMetadataDefaults(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.interruptible = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowMetadataDefaults message. - * @function verify - * @memberof flyteidl.core.WorkflowMetadataDefaults - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowMetadataDefaults.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - return null; - }; - - return WorkflowMetadataDefaults; - })(); - - core.WorkflowTemplate = (function() { - - /** - * Properties of a WorkflowTemplate. - * @memberof flyteidl.core - * @interface IWorkflowTemplate - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowTemplate id - * @property {flyteidl.core.IWorkflowMetadata|null} [metadata] WorkflowTemplate metadata - * @property {flyteidl.core.ITypedInterface|null} ["interface"] WorkflowTemplate interface - * @property {Array.|null} [nodes] WorkflowTemplate nodes - * @property {Array.|null} [outputs] WorkflowTemplate outputs - * @property {flyteidl.core.INode|null} [failureNode] WorkflowTemplate failureNode - * @property {flyteidl.core.IWorkflowMetadataDefaults|null} [metadataDefaults] WorkflowTemplate metadataDefaults - */ - - /** - * Constructs a new WorkflowTemplate. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowTemplate. - * @implements IWorkflowTemplate - * @constructor - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set - */ - function WorkflowTemplate(properties) { - this.nodes = []; - this.outputs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.id = null; - - /** - * WorkflowTemplate metadata. - * @member {flyteidl.core.IWorkflowMetadata|null|undefined} metadata - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.metadata = null; - - /** - * WorkflowTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype["interface"] = null; - - /** - * WorkflowTemplate nodes. - * @member {Array.} nodes - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.nodes = $util.emptyArray; - - /** - * WorkflowTemplate outputs. - * @member {Array.} outputs - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.outputs = $util.emptyArray; - - /** - * WorkflowTemplate failureNode. - * @member {flyteidl.core.INode|null|undefined} failureNode - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.failureNode = null; - - /** - * WorkflowTemplate metadataDefaults. - * @member {flyteidl.core.IWorkflowMetadataDefaults|null|undefined} metadataDefaults - * @memberof flyteidl.core.WorkflowTemplate - * @instance - */ - WorkflowTemplate.prototype.metadataDefaults = null; - - /** - * Creates a new WorkflowTemplate instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {flyteidl.core.IWorkflowTemplate=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate instance - */ - WorkflowTemplate.create = function create(properties) { - return new WorkflowTemplate(properties); - }; - - /** - * Encodes the specified WorkflowTemplate message. Does not implicitly {@link flyteidl.core.WorkflowTemplate.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {flyteidl.core.IWorkflowTemplate} message WorkflowTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowTemplate.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(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.WorkflowMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nodes != null && message.nodes.length) - for (var i = 0; i < message.nodes.length; ++i) - $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.failureNode != null && message.hasOwnProperty("failureNode")) - $root.flyteidl.core.Node.encode(message.failureNode, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) - $root.flyteidl.core.WorkflowMetadataDefaults.encode(message.metadataDefaults, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowTemplate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowTemplate} WorkflowTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowTemplate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.metadata = $root.flyteidl.core.WorkflowMetadata.decode(reader, reader.uint32()); - break; - case 3: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 6: - message.failureNode = $root.flyteidl.core.Node.decode(reader, reader.uint32()); - break; - case 7: - message.metadataDefaults = $root.flyteidl.core.WorkflowMetadataDefaults.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowTemplate message. - * @function verify - * @memberof flyteidl.core.WorkflowTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.WorkflowMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; - } - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (var i = 0; i < message.nodes.length; ++i) { - var error = $root.flyteidl.core.Node.verify(message.nodes[i]); - if (error) - return "nodes." + error; - } - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.failureNode != null && message.hasOwnProperty("failureNode")) { - var error = $root.flyteidl.core.Node.verify(message.failureNode); - if (error) - return "failureNode." + error; - } - if (message.metadataDefaults != null && message.hasOwnProperty("metadataDefaults")) { - var error = $root.flyteidl.core.WorkflowMetadataDefaults.verify(message.metadataDefaults); - if (error) - return "metadataDefaults." + error; - } - return null; - }; - - return WorkflowTemplate; - })(); - - core.TaskNodeOverrides = (function() { - - /** - * Properties of a TaskNodeOverrides. - * @memberof flyteidl.core - * @interface ITaskNodeOverrides - * @property {flyteidl.core.IResources|null} [resources] TaskNodeOverrides resources - * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskNodeOverrides extendedResources - */ - - /** - * Constructs a new TaskNodeOverrides. - * @memberof flyteidl.core - * @classdesc Represents a TaskNodeOverrides. - * @implements ITaskNodeOverrides - * @constructor - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set - */ - function TaskNodeOverrides(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeOverrides resources. - * @member {flyteidl.core.IResources|null|undefined} resources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.resources = null; - - /** - * TaskNodeOverrides extendedResources. - * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources - * @memberof flyteidl.core.TaskNodeOverrides - * @instance - */ - TaskNodeOverrides.prototype.extendedResources = null; - - /** - * Creates a new TaskNodeOverrides instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {flyteidl.core.ITaskNodeOverrides=} [properties] Properties to set - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides instance - */ - TaskNodeOverrides.create = function create(properties) { - return new TaskNodeOverrides(properties); - }; - - /** - * Encodes the specified TaskNodeOverrides message. Does not implicitly {@link flyteidl.core.TaskNodeOverrides.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {flyteidl.core.ITaskNodeOverrides} message TaskNodeOverrides message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeOverrides.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resources != null && message.hasOwnProperty("resources")) - $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) - $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNodeOverrides message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskNodeOverrides} TaskNodeOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeOverrides.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskNodeOverrides(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); - break; - case 2: - message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeOverrides message. - * @function verify - * @memberof flyteidl.core.TaskNodeOverrides - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeOverrides.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resources != null && message.hasOwnProperty("resources")) { - var error = $root.flyteidl.core.Resources.verify(message.resources); - if (error) - return "resources." + error; - } - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { - var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); - if (error) - return "extendedResources." + error; - } - return null; - }; - - return TaskNodeOverrides; - })(); - - core.ComparisonExpression = (function() { - - /** - * Properties of a ComparisonExpression. - * @memberof flyteidl.core - * @interface IComparisonExpression - * @property {flyteidl.core.ComparisonExpression.Operator|null} [operator] ComparisonExpression operator - * @property {flyteidl.core.IOperand|null} [leftValue] ComparisonExpression leftValue - * @property {flyteidl.core.IOperand|null} [rightValue] ComparisonExpression rightValue - */ - - /** - * Constructs a new ComparisonExpression. - * @memberof flyteidl.core - * @classdesc Represents a ComparisonExpression. - * @implements IComparisonExpression - * @constructor - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set - */ - function ComparisonExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ComparisonExpression operator. - * @member {flyteidl.core.ComparisonExpression.Operator} operator - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.operator = 0; - - /** - * ComparisonExpression leftValue. - * @member {flyteidl.core.IOperand|null|undefined} leftValue - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.leftValue = null; - - /** - * ComparisonExpression rightValue. - * @member {flyteidl.core.IOperand|null|undefined} rightValue - * @memberof flyteidl.core.ComparisonExpression - * @instance - */ - ComparisonExpression.prototype.rightValue = null; - - /** - * Creates a new ComparisonExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {flyteidl.core.IComparisonExpression=} [properties] Properties to set - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression instance - */ - ComparisonExpression.create = function create(properties) { - return new ComparisonExpression(properties); - }; - - /** - * Encodes the specified ComparisonExpression message. Does not implicitly {@link flyteidl.core.ComparisonExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {flyteidl.core.IComparisonExpression} message ComparisonExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ComparisonExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftValue != null && message.hasOwnProperty("leftValue")) - $root.flyteidl.core.Operand.encode(message.leftValue, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightValue != null && message.hasOwnProperty("rightValue")) - $root.flyteidl.core.Operand.encode(message.rightValue, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ComparisonExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ComparisonExpression} ComparisonExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ComparisonExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ComparisonExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); - break; - case 3: - message.rightValue = $root.flyteidl.core.Operand.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ComparisonExpression message. - * @function verify - * @memberof flyteidl.core.ComparisonExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ComparisonExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.leftValue != null && message.hasOwnProperty("leftValue")) { - var error = $root.flyteidl.core.Operand.verify(message.leftValue); - if (error) - return "leftValue." + error; - } - if (message.rightValue != null && message.hasOwnProperty("rightValue")) { - var error = $root.flyteidl.core.Operand.verify(message.rightValue); - if (error) - return "rightValue." + error; - } - return null; - }; - - /** - * Operator enum. - * @name flyteidl.core.ComparisonExpression.Operator - * @enum {string} - * @property {number} EQ=0 EQ value - * @property {number} NEQ=1 NEQ value - * @property {number} GT=2 GT value - * @property {number} GTE=3 GTE value - * @property {number} LT=4 LT value - * @property {number} LTE=5 LTE value - */ - ComparisonExpression.Operator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EQ"] = 0; - values[valuesById[1] = "NEQ"] = 1; - values[valuesById[2] = "GT"] = 2; - values[valuesById[3] = "GTE"] = 3; - values[valuesById[4] = "LT"] = 4; - values[valuesById[5] = "LTE"] = 5; - return values; - })(); - - return ComparisonExpression; - })(); - - core.Operand = (function() { - - /** - * Properties of an Operand. - * @memberof flyteidl.core - * @interface IOperand - * @property {flyteidl.core.IPrimitive|null} [primitive] Operand primitive - * @property {string|null} ["var"] Operand var - * @property {flyteidl.core.IScalar|null} [scalar] Operand scalar - */ - - /** - * Constructs a new Operand. - * @memberof flyteidl.core - * @classdesc Represents an Operand. - * @implements IOperand - * @constructor - * @param {flyteidl.core.IOperand=} [properties] Properties to set - */ - function Operand(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Operand primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.primitive = null; - - /** - * Operand var. - * @member {string} var - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype["var"] = ""; - - /** - * Operand scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Operand - * @instance - */ - Operand.prototype.scalar = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Operand val. - * @member {"primitive"|"var"|"scalar"|undefined} val - * @memberof flyteidl.core.Operand - * @instance - */ - Object.defineProperty(Operand.prototype, "val", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "var", "scalar"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Operand instance using the specified properties. - * @function create - * @memberof flyteidl.core.Operand - * @static - * @param {flyteidl.core.IOperand=} [properties] Properties to set - * @returns {flyteidl.core.Operand} Operand instance - */ - Operand.create = function create(properties) { - return new Operand(properties); - }; - - /** - * Encodes the specified Operand message. Does not implicitly {@link flyteidl.core.Operand.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Operand - * @static - * @param {flyteidl.core.IOperand} message Operand message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Operand.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Operand message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Operand - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Operand} Operand - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Operand.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Operand(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Operand message. - * @function verify - * @memberof flyteidl.core.Operand - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Operand.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.val = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message["var"] != null && message.hasOwnProperty("var")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - if (!$util.isString(message["var"])) - return "var: string expected"; - } - if (message.scalar != null && message.hasOwnProperty("scalar")) { - if (properties.val === 1) - return "val: multiple values"; - properties.val = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - return null; - }; - - return Operand; - })(); - - core.BooleanExpression = (function() { - - /** - * Properties of a BooleanExpression. - * @memberof flyteidl.core - * @interface IBooleanExpression - * @property {flyteidl.core.IConjunctionExpression|null} [conjunction] BooleanExpression conjunction - * @property {flyteidl.core.IComparisonExpression|null} [comparison] BooleanExpression comparison - */ - - /** - * Constructs a new BooleanExpression. - * @memberof flyteidl.core - * @classdesc Represents a BooleanExpression. - * @implements IBooleanExpression - * @constructor - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set - */ - function BooleanExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BooleanExpression conjunction. - * @member {flyteidl.core.IConjunctionExpression|null|undefined} conjunction - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - BooleanExpression.prototype.conjunction = null; - - /** - * BooleanExpression comparison. - * @member {flyteidl.core.IComparisonExpression|null|undefined} comparison - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - BooleanExpression.prototype.comparison = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BooleanExpression expr. - * @member {"conjunction"|"comparison"|undefined} expr - * @memberof flyteidl.core.BooleanExpression - * @instance - */ - Object.defineProperty(BooleanExpression.prototype, "expr", { - get: $util.oneOfGetter($oneOfFields = ["conjunction", "comparison"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new BooleanExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {flyteidl.core.IBooleanExpression=} [properties] Properties to set - * @returns {flyteidl.core.BooleanExpression} BooleanExpression instance - */ - BooleanExpression.create = function create(properties) { - return new BooleanExpression(properties); - }; - - /** - * Encodes the specified BooleanExpression message. Does not implicitly {@link flyteidl.core.BooleanExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {flyteidl.core.IBooleanExpression} message BooleanExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BooleanExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.conjunction != null && message.hasOwnProperty("conjunction")) - $root.flyteidl.core.ConjunctionExpression.encode(message.conjunction, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.comparison != null && message.hasOwnProperty("comparison")) - $root.flyteidl.core.ComparisonExpression.encode(message.comparison, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BooleanExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BooleanExpression} BooleanExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BooleanExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BooleanExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.conjunction = $root.flyteidl.core.ConjunctionExpression.decode(reader, reader.uint32()); - break; - case 2: - message.comparison = $root.flyteidl.core.ComparisonExpression.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BooleanExpression message. - * @function verify - * @memberof flyteidl.core.BooleanExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BooleanExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.conjunction != null && message.hasOwnProperty("conjunction")) { - properties.expr = 1; - { - var error = $root.flyteidl.core.ConjunctionExpression.verify(message.conjunction); - if (error) - return "conjunction." + error; - } - } - if (message.comparison != null && message.hasOwnProperty("comparison")) { - if (properties.expr === 1) - return "expr: multiple values"; - properties.expr = 1; - { - var error = $root.flyteidl.core.ComparisonExpression.verify(message.comparison); - if (error) - return "comparison." + error; - } - } - return null; - }; - - return BooleanExpression; - })(); - - core.ConjunctionExpression = (function() { - - /** - * Properties of a ConjunctionExpression. - * @memberof flyteidl.core - * @interface IConjunctionExpression - * @property {flyteidl.core.ConjunctionExpression.LogicalOperator|null} [operator] ConjunctionExpression operator - * @property {flyteidl.core.IBooleanExpression|null} [leftExpression] ConjunctionExpression leftExpression - * @property {flyteidl.core.IBooleanExpression|null} [rightExpression] ConjunctionExpression rightExpression - */ - - /** - * Constructs a new ConjunctionExpression. - * @memberof flyteidl.core - * @classdesc Represents a ConjunctionExpression. - * @implements IConjunctionExpression - * @constructor - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set - */ - function ConjunctionExpression(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ConjunctionExpression operator. - * @member {flyteidl.core.ConjunctionExpression.LogicalOperator} operator - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.operator = 0; - - /** - * ConjunctionExpression leftExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} leftExpression - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.leftExpression = null; - - /** - * ConjunctionExpression rightExpression. - * @member {flyteidl.core.IBooleanExpression|null|undefined} rightExpression - * @memberof flyteidl.core.ConjunctionExpression - * @instance - */ - ConjunctionExpression.prototype.rightExpression = null; - - /** - * Creates a new ConjunctionExpression instance using the specified properties. - * @function create - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {flyteidl.core.IConjunctionExpression=} [properties] Properties to set - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression instance - */ - ConjunctionExpression.create = function create(properties) { - return new ConjunctionExpression(properties); - }; - - /** - * Encodes the specified ConjunctionExpression message. Does not implicitly {@link flyteidl.core.ConjunctionExpression.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {flyteidl.core.IConjunctionExpression} message ConjunctionExpression message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConjunctionExpression.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.operator != null && message.hasOwnProperty("operator")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.operator); - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.leftExpression, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) - $root.flyteidl.core.BooleanExpression.encode(message.rightExpression, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ConjunctionExpression message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ConjunctionExpression} ConjunctionExpression - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConjunctionExpression.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ConjunctionExpression(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.operator = reader.int32(); - break; - case 2: - message.leftExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - case 3: - message.rightExpression = $root.flyteidl.core.BooleanExpression.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ConjunctionExpression message. - * @function verify - * @memberof flyteidl.core.ConjunctionExpression - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConjunctionExpression.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.operator != null && message.hasOwnProperty("operator")) - switch (message.operator) { - default: - return "operator: enum value expected"; - case 0: - case 1: - break; - } - if (message.leftExpression != null && message.hasOwnProperty("leftExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.leftExpression); - if (error) - return "leftExpression." + error; - } - if (message.rightExpression != null && message.hasOwnProperty("rightExpression")) { - var error = $root.flyteidl.core.BooleanExpression.verify(message.rightExpression); - if (error) - return "rightExpression." + error; - } - return null; - }; - - /** - * LogicalOperator enum. - * @name flyteidl.core.ConjunctionExpression.LogicalOperator - * @enum {string} - * @property {number} AND=0 AND value - * @property {number} OR=1 OR value - */ - ConjunctionExpression.LogicalOperator = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "AND"] = 0; - values[valuesById[1] = "OR"] = 1; - return values; - })(); - - return ConjunctionExpression; - })(); - - core.Primitive = (function() { - - /** - * Properties of a Primitive. - * @memberof flyteidl.core - * @interface IPrimitive - * @property {Long|null} [integer] Primitive integer - * @property {number|null} [floatValue] Primitive floatValue - * @property {string|null} [stringValue] Primitive stringValue - * @property {boolean|null} [boolean] Primitive boolean - * @property {google.protobuf.ITimestamp|null} [datetime] Primitive datetime - * @property {google.protobuf.IDuration|null} [duration] Primitive duration - */ - - /** - * Constructs a new Primitive. - * @memberof flyteidl.core - * @classdesc Represents a Primitive. - * @implements IPrimitive - * @constructor - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set - */ - function Primitive(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Primitive integer. - * @member {Long} integer - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.integer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Primitive floatValue. - * @member {number} floatValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.floatValue = 0; - - /** - * Primitive stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.stringValue = ""; - - /** - * Primitive boolean. - * @member {boolean} boolean - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.boolean = false; - - /** - * Primitive datetime. - * @member {google.protobuf.ITimestamp|null|undefined} datetime - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.datetime = null; - - /** - * Primitive duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.core.Primitive - * @instance - */ - Primitive.prototype.duration = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Primitive value. - * @member {"integer"|"floatValue"|"stringValue"|"boolean"|"datetime"|"duration"|undefined} value - * @memberof flyteidl.core.Primitive - * @instance - */ - Object.defineProperty(Primitive.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["integer", "floatValue", "stringValue", "boolean", "datetime", "duration"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Primitive instance using the specified properties. - * @function create - * @memberof flyteidl.core.Primitive - * @static - * @param {flyteidl.core.IPrimitive=} [properties] Properties to set - * @returns {flyteidl.core.Primitive} Primitive instance - */ - Primitive.create = function create(properties) { - return new Primitive(properties); - }; - - /** - * Encodes the specified Primitive message. Does not implicitly {@link flyteidl.core.Primitive.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Primitive - * @static - * @param {flyteidl.core.IPrimitive} message Primitive message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Primitive.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.integer != null && message.hasOwnProperty("integer")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.integer); - if (message.floatValue != null && message.hasOwnProperty("floatValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.floatValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolean != null && message.hasOwnProperty("boolean")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolean); - if (message.datetime != null && message.hasOwnProperty("datetime")) - $root.google.protobuf.Timestamp.encode(message.datetime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Primitive message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Primitive - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Primitive} Primitive - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Primitive.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Primitive(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.integer = reader.int64(); - break; - case 2: - message.floatValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolean = reader.bool(); - break; - case 5: - message.datetime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Primitive message. - * @function verify - * @memberof flyteidl.core.Primitive - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Primitive.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.integer != null && message.hasOwnProperty("integer")) { - properties.value = 1; - if (!$util.isInteger(message.integer) && !(message.integer && $util.isInteger(message.integer.low) && $util.isInteger(message.integer.high))) - return "integer: integer|Long expected"; - } - if (message.floatValue != null && message.hasOwnProperty("floatValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.floatValue !== "number") - return "floatValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolean != null && message.hasOwnProperty("boolean")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.boolean !== "boolean") - return "boolean: boolean expected"; - } - if (message.datetime != null && message.hasOwnProperty("datetime")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.datetime); - if (error) - return "datetime." + error; - } - } - if (message.duration != null && message.hasOwnProperty("duration")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - } - return null; - }; - - return Primitive; - })(); - - core.Void = (function() { - - /** - * Properties of a Void. - * @memberof flyteidl.core - * @interface IVoid - */ - - /** - * Constructs a new Void. - * @memberof flyteidl.core - * @classdesc Represents a Void. - * @implements IVoid - * @constructor - * @param {flyteidl.core.IVoid=} [properties] Properties to set - */ - function Void(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new Void instance using the specified properties. - * @function create - * @memberof flyteidl.core.Void - * @static - * @param {flyteidl.core.IVoid=} [properties] Properties to set - * @returns {flyteidl.core.Void} Void instance - */ - Void.create = function create(properties) { - return new Void(properties); - }; - - /** - * Encodes the specified Void message. Does not implicitly {@link flyteidl.core.Void.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Void - * @static - * @param {flyteidl.core.IVoid} message Void message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Void.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a Void message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Void - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Void} Void - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Void.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Void(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Void message. - * @function verify - * @memberof flyteidl.core.Void - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Void.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return Void; - })(); - - core.Blob = (function() { - - /** - * Properties of a Blob. - * @memberof flyteidl.core - * @interface IBlob - * @property {flyteidl.core.IBlobMetadata|null} [metadata] Blob metadata - * @property {string|null} [uri] Blob uri - */ - - /** - * Constructs a new Blob. - * @memberof flyteidl.core - * @classdesc Represents a Blob. - * @implements IBlob - * @constructor - * @param {flyteidl.core.IBlob=} [properties] Properties to set - */ - function Blob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Blob metadata. - * @member {flyteidl.core.IBlobMetadata|null|undefined} metadata - * @memberof flyteidl.core.Blob - * @instance - */ - Blob.prototype.metadata = null; - - /** - * Blob uri. - * @member {string} uri - * @memberof flyteidl.core.Blob - * @instance - */ - Blob.prototype.uri = ""; - - /** - * Creates a new Blob instance using the specified properties. - * @function create - * @memberof flyteidl.core.Blob - * @static - * @param {flyteidl.core.IBlob=} [properties] Properties to set - * @returns {flyteidl.core.Blob} Blob instance - */ - Blob.create = function create(properties) { - return new Blob(properties); - }; - - /** - * Encodes the specified Blob message. Does not implicitly {@link flyteidl.core.Blob.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Blob - * @static - * @param {flyteidl.core.IBlob} message Blob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Blob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.BlobMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.uri); - return writer; - }; - - /** - * Decodes a Blob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Blob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Blob} Blob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Blob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Blob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = $root.flyteidl.core.BlobMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.uri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Blob message. - * @function verify - * @memberof flyteidl.core.Blob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Blob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.BlobMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - return null; - }; - - return Blob; - })(); - - core.BlobMetadata = (function() { - - /** - * Properties of a BlobMetadata. - * @memberof flyteidl.core - * @interface IBlobMetadata - * @property {flyteidl.core.IBlobType|null} [type] BlobMetadata type - */ - - /** - * Constructs a new BlobMetadata. - * @memberof flyteidl.core - * @classdesc Represents a BlobMetadata. - * @implements IBlobMetadata - * @constructor - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set - */ - function BlobMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlobMetadata type. - * @member {flyteidl.core.IBlobType|null|undefined} type - * @memberof flyteidl.core.BlobMetadata - * @instance - */ - BlobMetadata.prototype.type = null; - - /** - * Creates a new BlobMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {flyteidl.core.IBlobMetadata=} [properties] Properties to set - * @returns {flyteidl.core.BlobMetadata} BlobMetadata instance - */ - BlobMetadata.create = function create(properties) { - return new BlobMetadata(properties); - }; - - /** - * Encodes the specified BlobMetadata message. Does not implicitly {@link flyteidl.core.BlobMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {flyteidl.core.IBlobMetadata} message BlobMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlobMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.BlobType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BlobMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobMetadata} BlobMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlobMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BlobMetadata message. - * @function verify - * @memberof flyteidl.core.BlobMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlobMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.BlobType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return BlobMetadata; - })(); - - core.Binary = (function() { - - /** - * Properties of a Binary. - * @memberof flyteidl.core - * @interface IBinary - * @property {Uint8Array|null} [value] Binary value - * @property {string|null} [tag] Binary tag - */ - - /** - * Constructs a new Binary. - * @memberof flyteidl.core - * @classdesc Represents a Binary. - * @implements IBinary - * @constructor - * @param {flyteidl.core.IBinary=} [properties] Properties to set - */ - function Binary(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Binary value. - * @member {Uint8Array} value - * @memberof flyteidl.core.Binary - * @instance - */ - Binary.prototype.value = $util.newBuffer([]); - - /** - * Binary tag. - * @member {string} tag - * @memberof flyteidl.core.Binary - * @instance - */ - Binary.prototype.tag = ""; - - /** - * Creates a new Binary instance using the specified properties. - * @function create - * @memberof flyteidl.core.Binary - * @static - * @param {flyteidl.core.IBinary=} [properties] Properties to set - * @returns {flyteidl.core.Binary} Binary instance - */ - Binary.create = function create(properties) { - return new Binary(properties); - }; - - /** - * Encodes the specified Binary message. Does not implicitly {@link flyteidl.core.Binary.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Binary - * @static - * @param {flyteidl.core.IBinary} message Binary message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Binary.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); - return writer; - }; - - /** - * Decodes a Binary message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Binary - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binary} Binary - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Binary.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binary(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; - case 2: - message.tag = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Binary message. - * @function verify - * @memberof flyteidl.core.Binary - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Binary.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - return null; - }; - - return Binary; - })(); - - core.Schema = (function() { - - /** - * Properties of a Schema. - * @memberof flyteidl.core - * @interface ISchema - * @property {string|null} [uri] Schema uri - * @property {flyteidl.core.ISchemaType|null} [type] Schema type - */ - - /** - * Constructs a new Schema. - * @memberof flyteidl.core - * @classdesc Represents a Schema. - * @implements ISchema - * @constructor - * @param {flyteidl.core.ISchema=} [properties] Properties to set - */ - function Schema(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Schema uri. - * @member {string} uri - * @memberof flyteidl.core.Schema - * @instance - */ - Schema.prototype.uri = ""; - - /** - * Schema type. - * @member {flyteidl.core.ISchemaType|null|undefined} type - * @memberof flyteidl.core.Schema - * @instance - */ - Schema.prototype.type = null; - - /** - * Creates a new Schema instance using the specified properties. - * @function create - * @memberof flyteidl.core.Schema - * @static - * @param {flyteidl.core.ISchema=} [properties] Properties to set - * @returns {flyteidl.core.Schema} Schema instance - */ - Schema.create = function create(properties) { - return new Schema(properties); - }; - - /** - * Encodes the specified Schema message. Does not implicitly {@link flyteidl.core.Schema.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Schema - * @static - * @param {flyteidl.core.ISchema} message Schema message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Schema.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.SchemaType.encode(message.type, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Schema message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Schema - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Schema} Schema - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Schema.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Schema(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 3: - message.type = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Schema message. - * @function verify - * @memberof flyteidl.core.Schema - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Schema.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.SchemaType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return Schema; - })(); - - core.Union = (function() { - - /** - * Properties of an Union. - * @memberof flyteidl.core - * @interface IUnion - * @property {flyteidl.core.ILiteral|null} [value] Union value - * @property {flyteidl.core.ILiteralType|null} [type] Union type - */ - - /** - * Constructs a new Union. - * @memberof flyteidl.core - * @classdesc Represents an Union. - * @implements IUnion - * @constructor - * @param {flyteidl.core.IUnion=} [properties] Properties to set - */ - function Union(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Union value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.core.Union - * @instance - */ - Union.prototype.value = null; - - /** - * Union type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Union - * @instance - */ - Union.prototype.type = null; - - /** - * Creates a new Union instance using the specified properties. - * @function create - * @memberof flyteidl.core.Union - * @static - * @param {flyteidl.core.IUnion=} [properties] Properties to set - * @returns {flyteidl.core.Union} Union instance - */ - Union.create = function create(properties) { - return new Union(properties); - }; - - /** - * Encodes the specified Union message. Does not implicitly {@link flyteidl.core.Union.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Union - * @static - * @param {flyteidl.core.IUnion} message Union message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Union.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Union message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Union - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Union} Union - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Union.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Union(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Union message. - * @function verify - * @memberof flyteidl.core.Union - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Union.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return Union; - })(); - - core.StructuredDatasetMetadata = (function() { - - /** - * Properties of a StructuredDatasetMetadata. - * @memberof flyteidl.core - * @interface IStructuredDatasetMetadata - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] StructuredDatasetMetadata structuredDatasetType - */ - - /** - * Constructs a new StructuredDatasetMetadata. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetMetadata. - * @implements IStructuredDatasetMetadata - * @constructor - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set - */ - function StructuredDatasetMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDatasetMetadata structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.StructuredDatasetMetadata - * @instance - */ - StructuredDatasetMetadata.prototype.structuredDatasetType = null; - - /** - * Creates a new StructuredDatasetMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {flyteidl.core.IStructuredDatasetMetadata=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata instance - */ - StructuredDatasetMetadata.create = function create(properties) { - return new StructuredDatasetMetadata(properties); - }; - - /** - * Encodes the specified StructuredDatasetMetadata message. Does not implicitly {@link flyteidl.core.StructuredDatasetMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {flyteidl.core.IStructuredDatasetMetadata} message StructuredDatasetMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDatasetMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a StructuredDatasetMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetMetadata} StructuredDatasetMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDatasetMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDatasetMetadata message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDatasetMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); - if (error) - return "structuredDatasetType." + error; - } - return null; - }; - - return StructuredDatasetMetadata; - })(); - - core.StructuredDataset = (function() { - - /** - * Properties of a StructuredDataset. - * @memberof flyteidl.core - * @interface IStructuredDataset - * @property {string|null} [uri] StructuredDataset uri - * @property {flyteidl.core.IStructuredDatasetMetadata|null} [metadata] StructuredDataset metadata - */ - - /** - * Constructs a new StructuredDataset. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDataset. - * @implements IStructuredDataset - * @constructor - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set - */ - function StructuredDataset(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDataset uri. - * @member {string} uri - * @memberof flyteidl.core.StructuredDataset - * @instance - */ - StructuredDataset.prototype.uri = ""; - - /** - * StructuredDataset metadata. - * @member {flyteidl.core.IStructuredDatasetMetadata|null|undefined} metadata - * @memberof flyteidl.core.StructuredDataset - * @instance - */ - StructuredDataset.prototype.metadata = null; - - /** - * Creates a new StructuredDataset instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {flyteidl.core.IStructuredDataset=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDataset} StructuredDataset instance - */ - StructuredDataset.create = function create(properties) { - return new StructuredDataset(properties); - }; - - /** - * Encodes the specified StructuredDataset message. Does not implicitly {@link flyteidl.core.StructuredDataset.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {flyteidl.core.IStructuredDataset} message StructuredDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.StructuredDatasetMetadata.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a StructuredDataset message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDataset} StructuredDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - message.metadata = $root.flyteidl.core.StructuredDatasetMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDataset message. - * @function verify - * @memberof flyteidl.core.StructuredDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.StructuredDatasetMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return StructuredDataset; - })(); - - core.Scalar = (function() { - - /** - * Properties of a Scalar. - * @memberof flyteidl.core - * @interface IScalar - * @property {flyteidl.core.IPrimitive|null} [primitive] Scalar primitive - * @property {flyteidl.core.IBlob|null} [blob] Scalar blob - * @property {flyteidl.core.IBinary|null} [binary] Scalar binary - * @property {flyteidl.core.ISchema|null} [schema] Scalar schema - * @property {flyteidl.core.IVoid|null} [noneType] Scalar noneType - * @property {flyteidl.core.IError|null} [error] Scalar error - * @property {google.protobuf.IStruct|null} [generic] Scalar generic - * @property {flyteidl.core.IStructuredDataset|null} [structuredDataset] Scalar structuredDataset - * @property {flyteidl.core.IUnion|null} [union] Scalar union - */ - - /** - * Constructs a new Scalar. - * @memberof flyteidl.core - * @classdesc Represents a Scalar. - * @implements IScalar - * @constructor - * @param {flyteidl.core.IScalar=} [properties] Properties to set - */ - function Scalar(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Scalar primitive. - * @member {flyteidl.core.IPrimitive|null|undefined} primitive - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.primitive = null; - - /** - * Scalar blob. - * @member {flyteidl.core.IBlob|null|undefined} blob - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.blob = null; - - /** - * Scalar binary. - * @member {flyteidl.core.IBinary|null|undefined} binary - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.binary = null; - - /** - * Scalar schema. - * @member {flyteidl.core.ISchema|null|undefined} schema - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.schema = null; - - /** - * Scalar noneType. - * @member {flyteidl.core.IVoid|null|undefined} noneType - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.noneType = null; - - /** - * Scalar error. - * @member {flyteidl.core.IError|null|undefined} error - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.error = null; - - /** - * Scalar generic. - * @member {google.protobuf.IStruct|null|undefined} generic - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.generic = null; - - /** - * Scalar structuredDataset. - * @member {flyteidl.core.IStructuredDataset|null|undefined} structuredDataset - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.structuredDataset = null; - - /** - * Scalar union. - * @member {flyteidl.core.IUnion|null|undefined} union - * @memberof flyteidl.core.Scalar - * @instance - */ - Scalar.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Scalar value. - * @member {"primitive"|"blob"|"binary"|"schema"|"noneType"|"error"|"generic"|"structuredDataset"|"union"|undefined} value - * @memberof flyteidl.core.Scalar - * @instance - */ - Object.defineProperty(Scalar.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["primitive", "blob", "binary", "schema", "noneType", "error", "generic", "structuredDataset", "union"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Scalar instance using the specified properties. - * @function create - * @memberof flyteidl.core.Scalar - * @static - * @param {flyteidl.core.IScalar=} [properties] Properties to set - * @returns {flyteidl.core.Scalar} Scalar instance - */ - Scalar.create = function create(properties) { - return new Scalar(properties); - }; - - /** - * Encodes the specified Scalar message. Does not implicitly {@link flyteidl.core.Scalar.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Scalar - * @static - * @param {flyteidl.core.IScalar} message Scalar message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Scalar.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.primitive != null && message.hasOwnProperty("primitive")) - $root.flyteidl.core.Primitive.encode(message.primitive, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.Blob.encode(message.blob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.binary != null && message.hasOwnProperty("binary")) - $root.flyteidl.core.Binary.encode(message.binary, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.Schema.encode(message.schema, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.noneType != null && message.hasOwnProperty("noneType")) - $root.flyteidl.core.Void.encode(message.noneType, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.Error.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.generic != null && message.hasOwnProperty("generic")) - $root.google.protobuf.Struct.encode(message.generic, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) - $root.flyteidl.core.StructuredDataset.encode(message.structuredDataset, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.Union.encode(message.union, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Scalar message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Scalar - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Scalar} Scalar - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Scalar.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Scalar(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.primitive = $root.flyteidl.core.Primitive.decode(reader, reader.uint32()); - break; - case 2: - message.blob = $root.flyteidl.core.Blob.decode(reader, reader.uint32()); - break; - case 3: - message.binary = $root.flyteidl.core.Binary.decode(reader, reader.uint32()); - break; - case 4: - message.schema = $root.flyteidl.core.Schema.decode(reader, reader.uint32()); - break; - case 5: - message.noneType = $root.flyteidl.core.Void.decode(reader, reader.uint32()); - break; - case 6: - message.error = $root.flyteidl.core.Error.decode(reader, reader.uint32()); - break; - case 7: - message.generic = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 8: - message.structuredDataset = $root.flyteidl.core.StructuredDataset.decode(reader, reader.uint32()); - break; - case 9: - message.union = $root.flyteidl.core.Union.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Scalar message. - * @function verify - * @memberof flyteidl.core.Scalar - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Scalar.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.primitive != null && message.hasOwnProperty("primitive")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Primitive.verify(message.primitive); - if (error) - return "primitive." + error; - } - } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Blob.verify(message.blob); - if (error) - return "blob." + error; - } - } - if (message.binary != null && message.hasOwnProperty("binary")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Binary.verify(message.binary); - if (error) - return "binary." + error; - } - } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Schema.verify(message.schema); - if (error) - return "schema." + error; - } - } - if (message.noneType != null && message.hasOwnProperty("noneType")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Void.verify(message.noneType); - if (error) - return "noneType." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Error.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.generic != null && message.hasOwnProperty("generic")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.protobuf.Struct.verify(message.generic); - if (error) - return "generic." + error; - } - } - if (message.structuredDataset != null && message.hasOwnProperty("structuredDataset")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.StructuredDataset.verify(message.structuredDataset); - if (error) - return "structuredDataset." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.Union.verify(message.union); - if (error) - return "union." + error; - } - } - return null; - }; - - return Scalar; - })(); - - core.Literal = (function() { - - /** - * Properties of a Literal. - * @memberof flyteidl.core - * @interface ILiteral - * @property {flyteidl.core.IScalar|null} [scalar] Literal scalar - * @property {flyteidl.core.ILiteralCollection|null} [collection] Literal collection - * @property {flyteidl.core.ILiteralMap|null} [map] Literal map - * @property {string|null} [hash] Literal hash - * @property {Object.|null} [metadata] Literal metadata - */ - - /** - * Constructs a new Literal. - * @memberof flyteidl.core - * @classdesc Represents a Literal. - * @implements ILiteral - * @constructor - * @param {flyteidl.core.ILiteral=} [properties] Properties to set - */ - function Literal(properties) { - this.metadata = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Literal scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.scalar = null; - - /** - * Literal collection. - * @member {flyteidl.core.ILiteralCollection|null|undefined} collection - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.collection = null; - - /** - * Literal map. - * @member {flyteidl.core.ILiteralMap|null|undefined} map - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.map = null; - - /** - * Literal hash. - * @member {string} hash - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.hash = ""; - - /** - * Literal metadata. - * @member {Object.} metadata - * @memberof flyteidl.core.Literal - * @instance - */ - Literal.prototype.metadata = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Literal value. - * @member {"scalar"|"collection"|"map"|undefined} value - * @memberof flyteidl.core.Literal - * @instance - */ - Object.defineProperty(Literal.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "map"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Literal instance using the specified properties. - * @function create - * @memberof flyteidl.core.Literal - * @static - * @param {flyteidl.core.ILiteral=} [properties] Properties to set - * @returns {flyteidl.core.Literal} Literal instance - */ - Literal.create = function create(properties) { - return new Literal(properties); - }; - - /** - * Encodes the specified Literal message. Does not implicitly {@link flyteidl.core.Literal.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Literal - * @static - * @param {flyteidl.core.ILiteral} message Literal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Literal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.LiteralCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.LiteralMap.encode(message.map, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.hash != null && message.hasOwnProperty("hash")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.hash); - if (message.metadata != null && message.hasOwnProperty("metadata")) - for (var keys = Object.keys(message.metadata), i = 0; i < keys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.metadata[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a Literal message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Literal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Literal} Literal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Literal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Literal(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - case 2: - message.collection = $root.flyteidl.core.LiteralCollection.decode(reader, reader.uint32()); - break; - case 3: - message.map = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.hash = reader.string(); - break; - case 5: - reader.skip().pos++; - if (message.metadata === $util.emptyObject) - message.metadata = {}; - key = reader.string(); - reader.pos++; - message.metadata[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Literal message. - * @function verify - * @memberof flyteidl.core.Literal - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Literal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.scalar != null && message.hasOwnProperty("scalar")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - if (message.collection != null && message.hasOwnProperty("collection")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.LiteralCollection.verify(message.collection); - if (error) - return "collection." + error; - } - } - if (message.map != null && message.hasOwnProperty("map")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.map); - if (error) - return "map." + error; - } - } - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - if (!$util.isObject(message.metadata)) - return "metadata: object expected"; - var key = Object.keys(message.metadata); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.metadata[key[i]])) - return "metadata: string{k:string} expected"; - } - return null; - }; - - return Literal; - })(); - - core.LiteralCollection = (function() { - - /** - * Properties of a LiteralCollection. - * @memberof flyteidl.core - * @interface ILiteralCollection - * @property {Array.|null} [literals] LiteralCollection literals - */ - - /** - * Constructs a new LiteralCollection. - * @memberof flyteidl.core - * @classdesc Represents a LiteralCollection. - * @implements ILiteralCollection - * @constructor - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set - */ - function LiteralCollection(properties) { - this.literals = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralCollection literals. - * @member {Array.} literals - * @memberof flyteidl.core.LiteralCollection - * @instance - */ - LiteralCollection.prototype.literals = $util.emptyArray; - - /** - * Creates a new LiteralCollection instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection=} [properties] Properties to set - * @returns {flyteidl.core.LiteralCollection} LiteralCollection instance - */ - LiteralCollection.create = function create(properties) { - return new LiteralCollection(properties); - }; - - /** - * Encodes the specified LiteralCollection message. Does not implicitly {@link flyteidl.core.LiteralCollection.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {flyteidl.core.ILiteralCollection} message LiteralCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literals != null && message.literals.length) - for (var i = 0; i < message.literals.length; ++i) - $root.flyteidl.core.Literal.encode(message.literals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LiteralCollection message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralCollection} LiteralCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralCollection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.literals && message.literals.length)) - message.literals = []; - message.literals.push($root.flyteidl.core.Literal.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralCollection message. - * @function verify - * @memberof flyteidl.core.LiteralCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!Array.isArray(message.literals)) - return "literals: array expected"; - for (var i = 0; i < message.literals.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[i]); - if (error) - return "literals." + error; - } - } - return null; - }; - - return LiteralCollection; - })(); - - core.LiteralMap = (function() { - - /** - * Properties of a LiteralMap. - * @memberof flyteidl.core - * @interface ILiteralMap - * @property {Object.|null} [literals] LiteralMap literals - */ - - /** - * Constructs a new LiteralMap. - * @memberof flyteidl.core - * @classdesc Represents a LiteralMap. - * @implements ILiteralMap - * @constructor - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - */ - function LiteralMap(properties) { - this.literals = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralMap literals. - * @member {Object.} literals - * @memberof flyteidl.core.LiteralMap - * @instance - */ - LiteralMap.prototype.literals = $util.emptyObject; - - /** - * Creates a new LiteralMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralMap - * @static - * @param {flyteidl.core.ILiteralMap=} [properties] Properties to set - * @returns {flyteidl.core.LiteralMap} LiteralMap instance - */ - LiteralMap.create = function create(properties) { - return new LiteralMap(properties); - }; - - /** - * Encodes the specified LiteralMap message. Does not implicitly {@link flyteidl.core.LiteralMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralMap - * @static - * @param {flyteidl.core.ILiteralMap} message LiteralMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literals != null && message.hasOwnProperty("literals")) - for (var keys = Object.keys(message.literals), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Literal.encode(message.literals[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a LiteralMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralMap} LiteralMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.literals === $util.emptyObject) - message.literals = {}; - key = reader.string(); - reader.pos++; - message.literals[key] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralMap message. - * @function verify - * @memberof flyteidl.core.LiteralMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.literals != null && message.hasOwnProperty("literals")) { - if (!$util.isObject(message.literals)) - return "literals: object expected"; - var key = Object.keys(message.literals); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Literal.verify(message.literals[key[i]]); - if (error) - return "literals." + error; - } - } - return null; - }; - - return LiteralMap; - })(); - - core.BindingDataCollection = (function() { - - /** - * Properties of a BindingDataCollection. - * @memberof flyteidl.core - * @interface IBindingDataCollection - * @property {Array.|null} [bindings] BindingDataCollection bindings - */ - - /** - * Constructs a new BindingDataCollection. - * @memberof flyteidl.core - * @classdesc Represents a BindingDataCollection. - * @implements IBindingDataCollection - * @constructor - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set - */ - function BindingDataCollection(properties) { - this.bindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingDataCollection bindings. - * @member {Array.} bindings - * @memberof flyteidl.core.BindingDataCollection - * @instance - */ - BindingDataCollection.prototype.bindings = $util.emptyArray; - - /** - * Creates a new BindingDataCollection instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {flyteidl.core.IBindingDataCollection=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection instance - */ - BindingDataCollection.create = function create(properties) { - return new BindingDataCollection(properties); - }; - - /** - * Encodes the specified BindingDataCollection message. Does not implicitly {@link flyteidl.core.BindingDataCollection.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {flyteidl.core.IBindingDataCollection} message BindingDataCollection message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingDataCollection.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bindings != null && message.bindings.length) - for (var i = 0; i < message.bindings.length; ++i) - $root.flyteidl.core.BindingData.encode(message.bindings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BindingDataCollection message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataCollection} BindingDataCollection - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingDataCollection.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataCollection(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.bindings && message.bindings.length)) - message.bindings = []; - message.bindings.push($root.flyteidl.core.BindingData.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingDataCollection message. - * @function verify - * @memberof flyteidl.core.BindingDataCollection - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingDataCollection.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!Array.isArray(message.bindings)) - return "bindings: array expected"; - for (var i = 0; i < message.bindings.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[i]); - if (error) - return "bindings." + error; - } - } - return null; - }; - - return BindingDataCollection; - })(); - - core.BindingDataMap = (function() { - - /** - * Properties of a BindingDataMap. - * @memberof flyteidl.core - * @interface IBindingDataMap - * @property {Object.|null} [bindings] BindingDataMap bindings - */ - - /** - * Constructs a new BindingDataMap. - * @memberof flyteidl.core - * @classdesc Represents a BindingDataMap. - * @implements IBindingDataMap - * @constructor - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set - */ - function BindingDataMap(properties) { - this.bindings = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingDataMap bindings. - * @member {Object.} bindings - * @memberof flyteidl.core.BindingDataMap - * @instance - */ - BindingDataMap.prototype.bindings = $util.emptyObject; - - /** - * Creates a new BindingDataMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {flyteidl.core.IBindingDataMap=} [properties] Properties to set - * @returns {flyteidl.core.BindingDataMap} BindingDataMap instance - */ - BindingDataMap.create = function create(properties) { - return new BindingDataMap(properties); - }; - - /** - * Encodes the specified BindingDataMap message. Does not implicitly {@link flyteidl.core.BindingDataMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {flyteidl.core.IBindingDataMap} message BindingDataMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingDataMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bindings != null && message.hasOwnProperty("bindings")) - for (var keys = Object.keys(message.bindings), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.BindingData.encode(message.bindings[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a BindingDataMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingDataMap} BindingDataMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingDataMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingDataMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.bindings === $util.emptyObject) - message.bindings = {}; - key = reader.string(); - reader.pos++; - message.bindings[key] = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingDataMap message. - * @function verify - * @memberof flyteidl.core.BindingDataMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingDataMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bindings != null && message.hasOwnProperty("bindings")) { - if (!$util.isObject(message.bindings)) - return "bindings: object expected"; - var key = Object.keys(message.bindings); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.BindingData.verify(message.bindings[key[i]]); - if (error) - return "bindings." + error; - } - } - return null; - }; - - return BindingDataMap; - })(); - - core.UnionInfo = (function() { - - /** - * Properties of an UnionInfo. - * @memberof flyteidl.core - * @interface IUnionInfo - * @property {flyteidl.core.ILiteralType|null} [targetType] UnionInfo targetType - */ - - /** - * Constructs a new UnionInfo. - * @memberof flyteidl.core - * @classdesc Represents an UnionInfo. - * @implements IUnionInfo - * @constructor - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set - */ - function UnionInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UnionInfo targetType. - * @member {flyteidl.core.ILiteralType|null|undefined} targetType - * @memberof flyteidl.core.UnionInfo - * @instance - */ - UnionInfo.prototype.targetType = null; - - /** - * Creates a new UnionInfo instance using the specified properties. - * @function create - * @memberof flyteidl.core.UnionInfo - * @static - * @param {flyteidl.core.IUnionInfo=} [properties] Properties to set - * @returns {flyteidl.core.UnionInfo} UnionInfo instance - */ - UnionInfo.create = function create(properties) { - return new UnionInfo(properties); - }; - - /** - * Encodes the specified UnionInfo message. Does not implicitly {@link flyteidl.core.UnionInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.UnionInfo - * @static - * @param {flyteidl.core.IUnionInfo} message UnionInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnionInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.targetType != null && message.hasOwnProperty("targetType")) - $root.flyteidl.core.LiteralType.encode(message.targetType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an UnionInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.UnionInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionInfo} UnionInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnionInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.targetType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UnionInfo message. - * @function verify - * @memberof flyteidl.core.UnionInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnionInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.targetType != null && message.hasOwnProperty("targetType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.targetType); - if (error) - return "targetType." + error; - } - return null; - }; - - return UnionInfo; - })(); - - core.BindingData = (function() { - - /** - * Properties of a BindingData. - * @memberof flyteidl.core - * @interface IBindingData - * @property {flyteidl.core.IScalar|null} [scalar] BindingData scalar - * @property {flyteidl.core.IBindingDataCollection|null} [collection] BindingData collection - * @property {flyteidl.core.IOutputReference|null} [promise] BindingData promise - * @property {flyteidl.core.IBindingDataMap|null} [map] BindingData map - * @property {flyteidl.core.IUnionInfo|null} [union] BindingData union - */ - - /** - * Constructs a new BindingData. - * @memberof flyteidl.core - * @classdesc Represents a BindingData. - * @implements IBindingData - * @constructor - * @param {flyteidl.core.IBindingData=} [properties] Properties to set - */ - function BindingData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BindingData scalar. - * @member {flyteidl.core.IScalar|null|undefined} scalar - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.scalar = null; - - /** - * BindingData collection. - * @member {flyteidl.core.IBindingDataCollection|null|undefined} collection - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.collection = null; - - /** - * BindingData promise. - * @member {flyteidl.core.IOutputReference|null|undefined} promise - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.promise = null; - - /** - * BindingData map. - * @member {flyteidl.core.IBindingDataMap|null|undefined} map - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.map = null; - - /** - * BindingData union. - * @member {flyteidl.core.IUnionInfo|null|undefined} union - * @memberof flyteidl.core.BindingData - * @instance - */ - BindingData.prototype.union = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BindingData value. - * @member {"scalar"|"collection"|"promise"|"map"|undefined} value - * @memberof flyteidl.core.BindingData - * @instance - */ - Object.defineProperty(BindingData.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["scalar", "collection", "promise", "map"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new BindingData instance using the specified properties. - * @function create - * @memberof flyteidl.core.BindingData - * @static - * @param {flyteidl.core.IBindingData=} [properties] Properties to set - * @returns {flyteidl.core.BindingData} BindingData instance - */ - BindingData.create = function create(properties) { - return new BindingData(properties); - }; - - /** - * Encodes the specified BindingData message. Does not implicitly {@link flyteidl.core.BindingData.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BindingData - * @static - * @param {flyteidl.core.IBindingData} message BindingData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BindingData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scalar != null && message.hasOwnProperty("scalar")) - $root.flyteidl.core.Scalar.encode(message.scalar, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.collection != null && message.hasOwnProperty("collection")) - $root.flyteidl.core.BindingDataCollection.encode(message.collection, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.promise != null && message.hasOwnProperty("promise")) - $root.flyteidl.core.OutputReference.encode(message.promise, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.map != null && message.hasOwnProperty("map")) - $root.flyteidl.core.BindingDataMap.encode(message.map, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.union != null && message.hasOwnProperty("union")) - $root.flyteidl.core.UnionInfo.encode(message.union, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a BindingData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BindingData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BindingData} BindingData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BindingData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BindingData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.scalar = $root.flyteidl.core.Scalar.decode(reader, reader.uint32()); - break; - case 2: - message.collection = $root.flyteidl.core.BindingDataCollection.decode(reader, reader.uint32()); - break; - case 3: - message.promise = $root.flyteidl.core.OutputReference.decode(reader, reader.uint32()); - break; - case 4: - message.map = $root.flyteidl.core.BindingDataMap.decode(reader, reader.uint32()); - break; - case 5: - message.union = $root.flyteidl.core.UnionInfo.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BindingData message. - * @function verify - * @memberof flyteidl.core.BindingData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BindingData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.scalar != null && message.hasOwnProperty("scalar")) { - properties.value = 1; - { - var error = $root.flyteidl.core.Scalar.verify(message.scalar); - if (error) - return "scalar." + error; - } - } - if (message.collection != null && message.hasOwnProperty("collection")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.BindingDataCollection.verify(message.collection); - if (error) - return "collection." + error; - } - } - if (message.promise != null && message.hasOwnProperty("promise")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.OutputReference.verify(message.promise); - if (error) - return "promise." + error; - } - } - if (message.map != null && message.hasOwnProperty("map")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.flyteidl.core.BindingDataMap.verify(message.map); - if (error) - return "map." + error; - } - } - if (message.union != null && message.hasOwnProperty("union")) { - var error = $root.flyteidl.core.UnionInfo.verify(message.union); - if (error) - return "union." + error; - } - return null; - }; - - return BindingData; - })(); - - core.Binding = (function() { - - /** - * Properties of a Binding. - * @memberof flyteidl.core - * @interface IBinding - * @property {string|null} ["var"] Binding var - * @property {flyteidl.core.IBindingData|null} [binding] Binding binding - */ - - /** - * Constructs a new Binding. - * @memberof flyteidl.core - * @classdesc Represents a Binding. - * @implements IBinding - * @constructor - * @param {flyteidl.core.IBinding=} [properties] Properties to set - */ - function Binding(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Binding var. - * @member {string} var - * @memberof flyteidl.core.Binding - * @instance - */ - Binding.prototype["var"] = ""; - - /** - * Binding binding. - * @member {flyteidl.core.IBindingData|null|undefined} binding - * @memberof flyteidl.core.Binding - * @instance - */ - Binding.prototype.binding = null; - - /** - * Creates a new Binding instance using the specified properties. - * @function create - * @memberof flyteidl.core.Binding - * @static - * @param {flyteidl.core.IBinding=} [properties] Properties to set - * @returns {flyteidl.core.Binding} Binding instance - */ - Binding.create = function create(properties) { - return new Binding(properties); - }; - - /** - * Encodes the specified Binding message. Does not implicitly {@link flyteidl.core.Binding.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Binding - * @static - * @param {flyteidl.core.IBinding} message Binding message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Binding.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message["var"]); - if (message.binding != null && message.hasOwnProperty("binding")) - $root.flyteidl.core.BindingData.encode(message.binding, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Binding message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Binding - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Binding} Binding - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Binding.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Binding(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = reader.string(); - break; - case 2: - message.binding = $root.flyteidl.core.BindingData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Binding message. - * @function verify - * @memberof flyteidl.core.Binding - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Binding.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.binding != null && message.hasOwnProperty("binding")) { - var error = $root.flyteidl.core.BindingData.verify(message.binding); - if (error) - return "binding." + error; - } - return null; - }; - - return Binding; - })(); - - core.KeyValuePair = (function() { - - /** - * Properties of a KeyValuePair. - * @memberof flyteidl.core - * @interface IKeyValuePair - * @property {string|null} [key] KeyValuePair key - * @property {string|null} [value] KeyValuePair value - */ - - /** - * Constructs a new KeyValuePair. - * @memberof flyteidl.core - * @classdesc Represents a KeyValuePair. - * @implements IKeyValuePair - * @constructor - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set - */ - function KeyValuePair(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * KeyValuePair key. - * @member {string} key - * @memberof flyteidl.core.KeyValuePair - * @instance - */ - KeyValuePair.prototype.key = ""; - - /** - * KeyValuePair value. - * @member {string} value - * @memberof flyteidl.core.KeyValuePair - * @instance - */ - KeyValuePair.prototype.value = ""; - - /** - * Creates a new KeyValuePair instance using the specified properties. - * @function create - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {flyteidl.core.IKeyValuePair=} [properties] Properties to set - * @returns {flyteidl.core.KeyValuePair} KeyValuePair instance - */ - KeyValuePair.create = function create(properties) { - return new KeyValuePair(properties); - }; - - /** - * Encodes the specified KeyValuePair message. Does not implicitly {@link flyteidl.core.KeyValuePair.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {flyteidl.core.IKeyValuePair} message KeyValuePair message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - KeyValuePair.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - return writer; - }; - - /** - * Decodes a KeyValuePair message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.KeyValuePair} KeyValuePair - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - KeyValuePair.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.KeyValuePair(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a KeyValuePair message. - * @function verify - * @memberof flyteidl.core.KeyValuePair - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - KeyValuePair.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return KeyValuePair; - })(); - - core.RetryStrategy = (function() { - - /** - * Properties of a RetryStrategy. - * @memberof flyteidl.core - * @interface IRetryStrategy - * @property {number|null} [retries] RetryStrategy retries - */ - - /** - * Constructs a new RetryStrategy. - * @memberof flyteidl.core - * @classdesc Represents a RetryStrategy. - * @implements IRetryStrategy - * @constructor - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set - */ - function RetryStrategy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RetryStrategy retries. - * @member {number} retries - * @memberof flyteidl.core.RetryStrategy - * @instance - */ - RetryStrategy.prototype.retries = 0; - - /** - * Creates a new RetryStrategy instance using the specified properties. - * @function create - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {flyteidl.core.IRetryStrategy=} [properties] Properties to set - * @returns {flyteidl.core.RetryStrategy} RetryStrategy instance - */ - RetryStrategy.create = function create(properties) { - return new RetryStrategy(properties); - }; - - /** - * Encodes the specified RetryStrategy message. Does not implicitly {@link flyteidl.core.RetryStrategy.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {flyteidl.core.IRetryStrategy} message RetryStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RetryStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.retries != null && message.hasOwnProperty("retries")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.retries); - return writer; - }; - - /** - * Decodes a RetryStrategy message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.RetryStrategy} RetryStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RetryStrategy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RetryStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 5: - message.retries = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RetryStrategy message. - * @function verify - * @memberof flyteidl.core.RetryStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RetryStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.retries != null && message.hasOwnProperty("retries")) - if (!$util.isInteger(message.retries)) - return "retries: integer expected"; - return null; - }; - - return RetryStrategy; - })(); - - /** - * SimpleType enum. - * @name flyteidl.core.SimpleType - * @enum {string} - * @property {number} NONE=0 NONE value - * @property {number} INTEGER=1 INTEGER value - * @property {number} FLOAT=2 FLOAT value - * @property {number} STRING=3 STRING value - * @property {number} BOOLEAN=4 BOOLEAN value - * @property {number} DATETIME=5 DATETIME value - * @property {number} DURATION=6 DURATION value - * @property {number} BINARY=7 BINARY value - * @property {number} ERROR=8 ERROR value - * @property {number} STRUCT=9 STRUCT value - */ - core.SimpleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NONE"] = 0; - values[valuesById[1] = "INTEGER"] = 1; - values[valuesById[2] = "FLOAT"] = 2; - values[valuesById[3] = "STRING"] = 3; - values[valuesById[4] = "BOOLEAN"] = 4; - values[valuesById[5] = "DATETIME"] = 5; - values[valuesById[6] = "DURATION"] = 6; - values[valuesById[7] = "BINARY"] = 7; - values[valuesById[8] = "ERROR"] = 8; - values[valuesById[9] = "STRUCT"] = 9; - return values; - })(); - - core.SchemaType = (function() { - - /** - * Properties of a SchemaType. - * @memberof flyteidl.core - * @interface ISchemaType - * @property {Array.|null} [columns] SchemaType columns - */ - - /** - * Constructs a new SchemaType. - * @memberof flyteidl.core - * @classdesc Represents a SchemaType. - * @implements ISchemaType - * @constructor - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set - */ - function SchemaType(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SchemaType columns. - * @member {Array.} columns - * @memberof flyteidl.core.SchemaType - * @instance - */ - SchemaType.prototype.columns = $util.emptyArray; - - /** - * Creates a new SchemaType instance using the specified properties. - * @function create - * @memberof flyteidl.core.SchemaType - * @static - * @param {flyteidl.core.ISchemaType=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType} SchemaType instance - */ - SchemaType.create = function create(properties) { - return new SchemaType(properties); - }; - - /** - * Encodes the specified SchemaType message. Does not implicitly {@link flyteidl.core.SchemaType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SchemaType - * @static - * @param {flyteidl.core.ISchemaType} message SchemaType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchemaType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.SchemaType.SchemaColumn.encode(message.columns[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SchemaType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SchemaType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType} SchemaType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchemaType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.SchemaType.SchemaColumn.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SchemaType message. - * @function verify - * @memberof flyteidl.core.SchemaType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.SchemaType.SchemaColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - return null; - }; - - SchemaType.SchemaColumn = (function() { - - /** - * Properties of a SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @interface ISchemaColumn - * @property {string|null} [name] SchemaColumn name - * @property {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType|null} [type] SchemaColumn type - */ - - /** - * Constructs a new SchemaColumn. - * @memberof flyteidl.core.SchemaType - * @classdesc Represents a SchemaColumn. - * @implements ISchemaColumn - * @constructor - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - */ - function SchemaColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SchemaColumn name. - * @member {string} name - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.name = ""; - - /** - * SchemaColumn type. - * @member {flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType} type - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @instance - */ - SchemaColumn.prototype.type = 0; - - /** - * Creates a new SchemaColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn=} [properties] Properties to set - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn instance - */ - SchemaColumn.create = function create(properties) { - return new SchemaColumn(properties); - }; - - /** - * Encodes the specified SchemaColumn message. Does not implicitly {@link flyteidl.core.SchemaType.SchemaColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {flyteidl.core.SchemaType.ISchemaColumn} message SchemaColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SchemaColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - return writer; - }; - - /** - * Decodes a SchemaColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SchemaType.SchemaColumn} SchemaColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SchemaColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SchemaType.SchemaColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SchemaColumn message. - * @function verify - * @memberof flyteidl.core.SchemaType.SchemaColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SchemaColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - return null; - }; - - /** - * SchemaColumnType enum. - * @name flyteidl.core.SchemaType.SchemaColumn.SchemaColumnType - * @enum {string} - * @property {number} INTEGER=0 INTEGER value - * @property {number} FLOAT=1 FLOAT value - * @property {number} STRING=2 STRING value - * @property {number} BOOLEAN=3 BOOLEAN value - * @property {number} DATETIME=4 DATETIME value - * @property {number} DURATION=5 DURATION value - */ - SchemaColumn.SchemaColumnType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INTEGER"] = 0; - values[valuesById[1] = "FLOAT"] = 1; - values[valuesById[2] = "STRING"] = 2; - values[valuesById[3] = "BOOLEAN"] = 3; - values[valuesById[4] = "DATETIME"] = 4; - values[valuesById[5] = "DURATION"] = 5; - return values; - })(); - - return SchemaColumn; - })(); - - return SchemaType; - })(); - - core.StructuredDatasetType = (function() { - - /** - * Properties of a StructuredDatasetType. - * @memberof flyteidl.core - * @interface IStructuredDatasetType - * @property {Array.|null} [columns] StructuredDatasetType columns - * @property {string|null} [format] StructuredDatasetType format - * @property {string|null} [externalSchemaType] StructuredDatasetType externalSchemaType - * @property {Uint8Array|null} [externalSchemaBytes] StructuredDatasetType externalSchemaBytes - */ - - /** - * Constructs a new StructuredDatasetType. - * @memberof flyteidl.core - * @classdesc Represents a StructuredDatasetType. - * @implements IStructuredDatasetType - * @constructor - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set - */ - function StructuredDatasetType(properties) { - this.columns = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StructuredDatasetType columns. - * @member {Array.} columns - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.columns = $util.emptyArray; - - /** - * StructuredDatasetType format. - * @member {string} format - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.format = ""; - - /** - * StructuredDatasetType externalSchemaType. - * @member {string} externalSchemaType - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.externalSchemaType = ""; - - /** - * StructuredDatasetType externalSchemaBytes. - * @member {Uint8Array} externalSchemaBytes - * @memberof flyteidl.core.StructuredDatasetType - * @instance - */ - StructuredDatasetType.prototype.externalSchemaBytes = $util.newBuffer([]); - - /** - * Creates a new StructuredDatasetType instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {flyteidl.core.IStructuredDatasetType=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType instance - */ - StructuredDatasetType.create = function create(properties) { - return new StructuredDatasetType(properties); - }; - - /** - * Encodes the specified StructuredDatasetType message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {flyteidl.core.IStructuredDatasetType} message StructuredDatasetType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StructuredDatasetType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.columns != null && message.columns.length) - for (var i = 0; i < message.columns.length; ++i) - $root.flyteidl.core.StructuredDatasetType.DatasetColumn.encode(message.columns[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.format); - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.externalSchemaType); - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.externalSchemaBytes); - return writer; - }; - - /** - * Decodes a StructuredDatasetType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType} StructuredDatasetType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StructuredDatasetType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.columns && message.columns.length)) - message.columns = []; - message.columns.push($root.flyteidl.core.StructuredDatasetType.DatasetColumn.decode(reader, reader.uint32())); - break; - case 2: - message.format = reader.string(); - break; - case 3: - message.externalSchemaType = reader.string(); - break; - case 4: - message.externalSchemaBytes = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StructuredDatasetType message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StructuredDatasetType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.columns != null && message.hasOwnProperty("columns")) { - if (!Array.isArray(message.columns)) - return "columns: array expected"; - for (var i = 0; i < message.columns.length; ++i) { - var error = $root.flyteidl.core.StructuredDatasetType.DatasetColumn.verify(message.columns[i]); - if (error) - return "columns." + error; - } - } - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.externalSchemaType != null && message.hasOwnProperty("externalSchemaType")) - if (!$util.isString(message.externalSchemaType)) - return "externalSchemaType: string expected"; - if (message.externalSchemaBytes != null && message.hasOwnProperty("externalSchemaBytes")) - if (!(message.externalSchemaBytes && typeof message.externalSchemaBytes.length === "number" || $util.isString(message.externalSchemaBytes))) - return "externalSchemaBytes: buffer expected"; - return null; - }; - - StructuredDatasetType.DatasetColumn = (function() { - - /** - * Properties of a DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @interface IDatasetColumn - * @property {string|null} [name] DatasetColumn name - * @property {flyteidl.core.ILiteralType|null} [literalType] DatasetColumn literalType - */ - - /** - * Constructs a new DatasetColumn. - * @memberof flyteidl.core.StructuredDatasetType - * @classdesc Represents a DatasetColumn. - * @implements IDatasetColumn - * @constructor - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - */ - function DatasetColumn(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DatasetColumn name. - * @member {string} name - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.name = ""; - - /** - * DatasetColumn literalType. - * @member {flyteidl.core.ILiteralType|null|undefined} literalType - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @instance - */ - DatasetColumn.prototype.literalType = null; - - /** - * Creates a new DatasetColumn instance using the specified properties. - * @function create - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn=} [properties] Properties to set - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn instance - */ - DatasetColumn.create = function create(properties) { - return new DatasetColumn(properties); - }; - - /** - * Encodes the specified DatasetColumn message. Does not implicitly {@link flyteidl.core.StructuredDatasetType.DatasetColumn.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {flyteidl.core.StructuredDatasetType.IDatasetColumn} message DatasetColumn message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DatasetColumn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.literalType != null && message.hasOwnProperty("literalType")) - $root.flyteidl.core.LiteralType.encode(message.literalType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DatasetColumn message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.StructuredDatasetType.DatasetColumn} DatasetColumn - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DatasetColumn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.StructuredDatasetType.DatasetColumn(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.literalType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DatasetColumn message. - * @function verify - * @memberof flyteidl.core.StructuredDatasetType.DatasetColumn - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DatasetColumn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.literalType != null && message.hasOwnProperty("literalType")) { - var error = $root.flyteidl.core.LiteralType.verify(message.literalType); - if (error) - return "literalType." + error; - } - return null; - }; - - return DatasetColumn; - })(); - - return StructuredDatasetType; - })(); - - core.BlobType = (function() { - - /** - * Properties of a BlobType. - * @memberof flyteidl.core - * @interface IBlobType - * @property {string|null} [format] BlobType format - * @property {flyteidl.core.BlobType.BlobDimensionality|null} [dimensionality] BlobType dimensionality - */ - - /** - * Constructs a new BlobType. - * @memberof flyteidl.core - * @classdesc Represents a BlobType. - * @implements IBlobType - * @constructor - * @param {flyteidl.core.IBlobType=} [properties] Properties to set - */ - function BlobType(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BlobType format. - * @member {string} format - * @memberof flyteidl.core.BlobType - * @instance - */ - BlobType.prototype.format = ""; - - /** - * BlobType dimensionality. - * @member {flyteidl.core.BlobType.BlobDimensionality} dimensionality - * @memberof flyteidl.core.BlobType - * @instance - */ - BlobType.prototype.dimensionality = 0; - - /** - * Creates a new BlobType instance using the specified properties. - * @function create - * @memberof flyteidl.core.BlobType - * @static - * @param {flyteidl.core.IBlobType=} [properties] Properties to set - * @returns {flyteidl.core.BlobType} BlobType instance - */ - BlobType.create = function create(properties) { - return new BlobType(properties); - }; - - /** - * Encodes the specified BlobType message. Does not implicitly {@link flyteidl.core.BlobType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.BlobType - * @static - * @param {flyteidl.core.IBlobType} message BlobType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BlobType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.format); - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dimensionality); - return writer; - }; - - /** - * Decodes a BlobType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.BlobType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.BlobType} BlobType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BlobType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.BlobType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.format = reader.string(); - break; - case 2: - message.dimensionality = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BlobType message. - * @function verify - * @memberof flyteidl.core.BlobType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BlobType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.format != null && message.hasOwnProperty("format")) - if (!$util.isString(message.format)) - return "format: string expected"; - if (message.dimensionality != null && message.hasOwnProperty("dimensionality")) - switch (message.dimensionality) { - default: - return "dimensionality: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * BlobDimensionality enum. - * @name flyteidl.core.BlobType.BlobDimensionality - * @enum {string} - * @property {number} SINGLE=0 SINGLE value - * @property {number} MULTIPART=1 MULTIPART value - */ - BlobType.BlobDimensionality = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SINGLE"] = 0; - values[valuesById[1] = "MULTIPART"] = 1; - return values; - })(); - - return BlobType; - })(); - - core.EnumType = (function() { - - /** - * Properties of an EnumType. - * @memberof flyteidl.core - * @interface IEnumType - * @property {Array.|null} [values] EnumType values - */ - - /** - * Constructs a new EnumType. - * @memberof flyteidl.core - * @classdesc Represents an EnumType. - * @implements IEnumType - * @constructor - * @param {flyteidl.core.IEnumType=} [properties] Properties to set - */ - function EnumType(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumType values. - * @member {Array.} values - * @memberof flyteidl.core.EnumType - * @instance - */ - EnumType.prototype.values = $util.emptyArray; - - /** - * Creates a new EnumType instance using the specified properties. - * @function create - * @memberof flyteidl.core.EnumType - * @static - * @param {flyteidl.core.IEnumType=} [properties] Properties to set - * @returns {flyteidl.core.EnumType} EnumType instance - */ - EnumType.create = function create(properties) { - return new EnumType(properties); - }; - - /** - * Encodes the specified EnumType message. Does not implicitly {@link flyteidl.core.EnumType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.EnumType - * @static - * @param {flyteidl.core.IEnumType} message EnumType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; - - /** - * Decodes an EnumType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.EnumType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.EnumType} EnumType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.EnumType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumType message. - * @function verify - * @memberof flyteidl.core.EnumType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; - - return EnumType; - })(); - - core.UnionType = (function() { - - /** - * Properties of an UnionType. - * @memberof flyteidl.core - * @interface IUnionType - * @property {Array.|null} [variants] UnionType variants - */ - - /** - * Constructs a new UnionType. - * @memberof flyteidl.core - * @classdesc Represents an UnionType. - * @implements IUnionType - * @constructor - * @param {flyteidl.core.IUnionType=} [properties] Properties to set - */ - function UnionType(properties) { - this.variants = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UnionType variants. - * @member {Array.} variants - * @memberof flyteidl.core.UnionType - * @instance - */ - UnionType.prototype.variants = $util.emptyArray; - - /** - * Creates a new UnionType instance using the specified properties. - * @function create - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType=} [properties] Properties to set - * @returns {flyteidl.core.UnionType} UnionType instance - */ - UnionType.create = function create(properties) { - return new UnionType(properties); - }; - - /** - * Encodes the specified UnionType message. Does not implicitly {@link flyteidl.core.UnionType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.UnionType - * @static - * @param {flyteidl.core.IUnionType} message UnionType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UnionType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variants != null && message.variants.length) - for (var i = 0; i < message.variants.length; ++i) - $root.flyteidl.core.LiteralType.encode(message.variants[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an UnionType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.UnionType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.UnionType} UnionType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UnionType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.UnionType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.variants && message.variants.length)) - message.variants = []; - message.variants.push($root.flyteidl.core.LiteralType.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UnionType message. - * @function verify - * @memberof flyteidl.core.UnionType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UnionType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variants != null && message.hasOwnProperty("variants")) { - if (!Array.isArray(message.variants)) - return "variants: array expected"; - for (var i = 0; i < message.variants.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.variants[i]); - if (error) - return "variants." + error; - } - } - return null; - }; - - return UnionType; - })(); - - core.TypeStructure = (function() { - - /** - * Properties of a TypeStructure. - * @memberof flyteidl.core - * @interface ITypeStructure - * @property {string|null} [tag] TypeStructure tag - * @property {Object.|null} [dataclassType] TypeStructure dataclassType - */ - - /** - * Constructs a new TypeStructure. - * @memberof flyteidl.core - * @classdesc Represents a TypeStructure. - * @implements ITypeStructure - * @constructor - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set - */ - function TypeStructure(properties) { - this.dataclassType = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypeStructure tag. - * @member {string} tag - * @memberof flyteidl.core.TypeStructure - * @instance - */ - TypeStructure.prototype.tag = ""; - - /** - * TypeStructure dataclassType. - * @member {Object.} dataclassType - * @memberof flyteidl.core.TypeStructure - * @instance - */ - TypeStructure.prototype.dataclassType = $util.emptyObject; - - /** - * Creates a new TypeStructure instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypeStructure - * @static - * @param {flyteidl.core.ITypeStructure=} [properties] Properties to set - * @returns {flyteidl.core.TypeStructure} TypeStructure instance - */ - TypeStructure.create = function create(properties) { - return new TypeStructure(properties); - }; - - /** - * Encodes the specified TypeStructure message. Does not implicitly {@link flyteidl.core.TypeStructure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypeStructure - * @static - * @param {flyteidl.core.ITypeStructure} message TypeStructure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypeStructure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tag != null && message.hasOwnProperty("tag")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tag); - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) - for (var keys = Object.keys(message.dataclassType), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.LiteralType.encode(message.dataclassType[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a TypeStructure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypeStructure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeStructure} TypeStructure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypeStructure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeStructure(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tag = reader.string(); - break; - case 2: - reader.skip().pos++; - if (message.dataclassType === $util.emptyObject) - message.dataclassType = {}; - key = reader.string(); - reader.pos++; - message.dataclassType[key] = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypeStructure message. - * @function verify - * @memberof flyteidl.core.TypeStructure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypeStructure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.dataclassType != null && message.hasOwnProperty("dataclassType")) { - if (!$util.isObject(message.dataclassType)) - return "dataclassType: object expected"; - var key = Object.keys(message.dataclassType); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.LiteralType.verify(message.dataclassType[key[i]]); - if (error) - return "dataclassType." + error; - } - } - return null; - }; - - return TypeStructure; - })(); - - core.TypeAnnotation = (function() { - - /** - * Properties of a TypeAnnotation. - * @memberof flyteidl.core - * @interface ITypeAnnotation - * @property {google.protobuf.IStruct|null} [annotations] TypeAnnotation annotations - */ - - /** - * Constructs a new TypeAnnotation. - * @memberof flyteidl.core - * @classdesc Represents a TypeAnnotation. - * @implements ITypeAnnotation - * @constructor - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set - */ - function TypeAnnotation(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypeAnnotation annotations. - * @member {google.protobuf.IStruct|null|undefined} annotations - * @memberof flyteidl.core.TypeAnnotation - * @instance - */ - TypeAnnotation.prototype.annotations = null; - - /** - * Creates a new TypeAnnotation instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {flyteidl.core.ITypeAnnotation=} [properties] Properties to set - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation instance - */ - TypeAnnotation.create = function create(properties) { - return new TypeAnnotation(properties); - }; - - /** - * Encodes the specified TypeAnnotation message. Does not implicitly {@link flyteidl.core.TypeAnnotation.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {flyteidl.core.ITypeAnnotation} message TypeAnnotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypeAnnotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.google.protobuf.Struct.encode(message.annotations, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TypeAnnotation message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypeAnnotation} TypeAnnotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypeAnnotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypeAnnotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.annotations = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypeAnnotation message. - * @function verify - * @memberof flyteidl.core.TypeAnnotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypeAnnotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.google.protobuf.Struct.verify(message.annotations); - if (error) - return "annotations." + error; - } - return null; - }; - - return TypeAnnotation; - })(); - - core.LiteralType = (function() { - - /** - * Properties of a LiteralType. - * @memberof flyteidl.core - * @interface ILiteralType - * @property {flyteidl.core.SimpleType|null} [simple] LiteralType simple - * @property {flyteidl.core.ISchemaType|null} [schema] LiteralType schema - * @property {flyteidl.core.ILiteralType|null} [collectionType] LiteralType collectionType - * @property {flyteidl.core.ILiteralType|null} [mapValueType] LiteralType mapValueType - * @property {flyteidl.core.IBlobType|null} [blob] LiteralType blob - * @property {flyteidl.core.IEnumType|null} [enumType] LiteralType enumType - * @property {flyteidl.core.IStructuredDatasetType|null} [structuredDatasetType] LiteralType structuredDatasetType - * @property {flyteidl.core.IUnionType|null} [unionType] LiteralType unionType - * @property {google.protobuf.IStruct|null} [metadata] LiteralType metadata - * @property {flyteidl.core.ITypeAnnotation|null} [annotation] LiteralType annotation - * @property {flyteidl.core.ITypeStructure|null} [structure] LiteralType structure - */ - - /** - * Constructs a new LiteralType. - * @memberof flyteidl.core - * @classdesc Represents a LiteralType. - * @implements ILiteralType - * @constructor - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set - */ - function LiteralType(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralType simple. - * @member {flyteidl.core.SimpleType} simple - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.simple = 0; - - /** - * LiteralType schema. - * @member {flyteidl.core.ISchemaType|null|undefined} schema - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.schema = null; - - /** - * LiteralType collectionType. - * @member {flyteidl.core.ILiteralType|null|undefined} collectionType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.collectionType = null; - - /** - * LiteralType mapValueType. - * @member {flyteidl.core.ILiteralType|null|undefined} mapValueType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.mapValueType = null; - - /** - * LiteralType blob. - * @member {flyteidl.core.IBlobType|null|undefined} blob - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.blob = null; - - /** - * LiteralType enumType. - * @member {flyteidl.core.IEnumType|null|undefined} enumType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.enumType = null; - - /** - * LiteralType structuredDatasetType. - * @member {flyteidl.core.IStructuredDatasetType|null|undefined} structuredDatasetType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.structuredDatasetType = null; - - /** - * LiteralType unionType. - * @member {flyteidl.core.IUnionType|null|undefined} unionType - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.unionType = null; - - /** - * LiteralType metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.metadata = null; - - /** - * LiteralType annotation. - * @member {flyteidl.core.ITypeAnnotation|null|undefined} annotation - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.annotation = null; - - /** - * LiteralType structure. - * @member {flyteidl.core.ITypeStructure|null|undefined} structure - * @memberof flyteidl.core.LiteralType - * @instance - */ - LiteralType.prototype.structure = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LiteralType type. - * @member {"simple"|"schema"|"collectionType"|"mapValueType"|"blob"|"enumType"|"structuredDatasetType"|"unionType"|undefined} type - * @memberof flyteidl.core.LiteralType - * @instance - */ - Object.defineProperty(LiteralType.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["simple", "schema", "collectionType", "mapValueType", "blob", "enumType", "structuredDatasetType", "unionType"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LiteralType instance using the specified properties. - * @function create - * @memberof flyteidl.core.LiteralType - * @static - * @param {flyteidl.core.ILiteralType=} [properties] Properties to set - * @returns {flyteidl.core.LiteralType} LiteralType instance - */ - LiteralType.create = function create(properties) { - return new LiteralType(properties); - }; - - /** - * Encodes the specified LiteralType message. Does not implicitly {@link flyteidl.core.LiteralType.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.LiteralType - * @static - * @param {flyteidl.core.ILiteralType} message LiteralType message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.simple != null && message.hasOwnProperty("simple")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.simple); - if (message.schema != null && message.hasOwnProperty("schema")) - $root.flyteidl.core.SchemaType.encode(message.schema, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.collectionType != null && message.hasOwnProperty("collectionType")) - $root.flyteidl.core.LiteralType.encode(message.collectionType, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) - $root.flyteidl.core.LiteralType.encode(message.mapValueType, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.blob != null && message.hasOwnProperty("blob")) - $root.flyteidl.core.BlobType.encode(message.blob, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.enumType != null && message.hasOwnProperty("enumType")) - $root.flyteidl.core.EnumType.encode(message.enumType, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) - $root.flyteidl.core.StructuredDatasetType.encode(message.structuredDatasetType, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.annotation != null && message.hasOwnProperty("annotation")) - $root.flyteidl.core.TypeAnnotation.encode(message.annotation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.unionType != null && message.hasOwnProperty("unionType")) - $root.flyteidl.core.UnionType.encode(message.unionType, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.structure != null && message.hasOwnProperty("structure")) - $root.flyteidl.core.TypeStructure.encode(message.structure, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LiteralType message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.LiteralType - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.LiteralType} LiteralType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.LiteralType(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.simple = reader.int32(); - break; - case 2: - message.schema = $root.flyteidl.core.SchemaType.decode(reader, reader.uint32()); - break; - case 3: - message.collectionType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 4: - message.mapValueType = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 5: - message.blob = $root.flyteidl.core.BlobType.decode(reader, reader.uint32()); - break; - case 7: - message.enumType = $root.flyteidl.core.EnumType.decode(reader, reader.uint32()); - break; - case 8: - message.structuredDatasetType = $root.flyteidl.core.StructuredDatasetType.decode(reader, reader.uint32()); - break; - case 10: - message.unionType = $root.flyteidl.core.UnionType.decode(reader, reader.uint32()); - break; - case 6: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 9: - message.annotation = $root.flyteidl.core.TypeAnnotation.decode(reader, reader.uint32()); - break; - case 11: - message.structure = $root.flyteidl.core.TypeStructure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralType message. - * @function verify - * @memberof flyteidl.core.LiteralType - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.simple != null && message.hasOwnProperty("simple")) { - properties.type = 1; - switch (message.simple) { - default: - return "simple: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.schema != null && message.hasOwnProperty("schema")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.SchemaType.verify(message.schema); - if (error) - return "schema." + error; - } - } - if (message.collectionType != null && message.hasOwnProperty("collectionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.LiteralType.verify(message.collectionType); - if (error) - return "collectionType." + error; - } - } - if (message.mapValueType != null && message.hasOwnProperty("mapValueType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.LiteralType.verify(message.mapValueType); - if (error) - return "mapValueType." + error; - } - } - if (message.blob != null && message.hasOwnProperty("blob")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.BlobType.verify(message.blob); - if (error) - return "blob." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.EnumType.verify(message.enumType); - if (error) - return "enumType." + error; - } - } - if (message.structuredDatasetType != null && message.hasOwnProperty("structuredDatasetType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.StructuredDatasetType.verify(message.structuredDatasetType); - if (error) - return "structuredDatasetType." + error; - } - } - if (message.unionType != null && message.hasOwnProperty("unionType")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.core.UnionType.verify(message.unionType); - if (error) - return "unionType." + error; - } - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.annotation != null && message.hasOwnProperty("annotation")) { - var error = $root.flyteidl.core.TypeAnnotation.verify(message.annotation); - if (error) - return "annotation." + error; - } - if (message.structure != null && message.hasOwnProperty("structure")) { - var error = $root.flyteidl.core.TypeStructure.verify(message.structure); - if (error) - return "structure." + error; - } - return null; - }; - - return LiteralType; - })(); - - core.OutputReference = (function() { - - /** - * Properties of an OutputReference. - * @memberof flyteidl.core - * @interface IOutputReference - * @property {string|null} [nodeId] OutputReference nodeId - * @property {string|null} ["var"] OutputReference var - * @property {Array.|null} [attrPath] OutputReference attrPath - */ - - /** - * Constructs a new OutputReference. - * @memberof flyteidl.core - * @classdesc Represents an OutputReference. - * @implements IOutputReference - * @constructor - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set - */ - function OutputReference(properties) { - this.attrPath = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OutputReference nodeId. - * @member {string} nodeId - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype.nodeId = ""; - - /** - * OutputReference var. - * @member {string} var - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype["var"] = ""; - - /** - * OutputReference attrPath. - * @member {Array.} attrPath - * @memberof flyteidl.core.OutputReference - * @instance - */ - OutputReference.prototype.attrPath = $util.emptyArray; - - /** - * Creates a new OutputReference instance using the specified properties. - * @function create - * @memberof flyteidl.core.OutputReference - * @static - * @param {flyteidl.core.IOutputReference=} [properties] Properties to set - * @returns {flyteidl.core.OutputReference} OutputReference instance - */ - OutputReference.create = function create(properties) { - return new OutputReference(properties); - }; - - /** - * Encodes the specified OutputReference message. Does not implicitly {@link flyteidl.core.OutputReference.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OutputReference - * @static - * @param {flyteidl.core.IOutputReference} message OutputReference message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OutputReference.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - if (message["var"] != null && message.hasOwnProperty("var")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["var"]); - if (message.attrPath != null && message.attrPath.length) - for (var i = 0; i < message.attrPath.length; ++i) - $root.flyteidl.core.PromiseAttribute.encode(message.attrPath[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OutputReference message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OutputReference - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OutputReference} OutputReference - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OutputReference.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OutputReference(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - case 2: - message["var"] = reader.string(); - break; - case 3: - if (!(message.attrPath && message.attrPath.length)) - message.attrPath = []; - message.attrPath.push($root.flyteidl.core.PromiseAttribute.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OutputReference message. - * @function verify - * @memberof flyteidl.core.OutputReference - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OutputReference.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - if (message["var"] != null && message.hasOwnProperty("var")) - if (!$util.isString(message["var"])) - return "var: string expected"; - if (message.attrPath != null && message.hasOwnProperty("attrPath")) { - if (!Array.isArray(message.attrPath)) - return "attrPath: array expected"; - for (var i = 0; i < message.attrPath.length; ++i) { - var error = $root.flyteidl.core.PromiseAttribute.verify(message.attrPath[i]); - if (error) - return "attrPath." + error; - } - } - return null; - }; - - return OutputReference; - })(); - - core.PromiseAttribute = (function() { - - /** - * Properties of a PromiseAttribute. - * @memberof flyteidl.core - * @interface IPromiseAttribute - * @property {string|null} [stringValue] PromiseAttribute stringValue - * @property {number|null} [intValue] PromiseAttribute intValue - */ - - /** - * Constructs a new PromiseAttribute. - * @memberof flyteidl.core - * @classdesc Represents a PromiseAttribute. - * @implements IPromiseAttribute - * @constructor - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set - */ - function PromiseAttribute(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PromiseAttribute stringValue. - * @member {string} stringValue - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - PromiseAttribute.prototype.stringValue = ""; - - /** - * PromiseAttribute intValue. - * @member {number} intValue - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - PromiseAttribute.prototype.intValue = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * PromiseAttribute value. - * @member {"stringValue"|"intValue"|undefined} value - * @memberof flyteidl.core.PromiseAttribute - * @instance - */ - Object.defineProperty(PromiseAttribute.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["stringValue", "intValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new PromiseAttribute instance using the specified properties. - * @function create - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {flyteidl.core.IPromiseAttribute=} [properties] Properties to set - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute instance - */ - PromiseAttribute.create = function create(properties) { - return new PromiseAttribute(properties); - }; - - /** - * Encodes the specified PromiseAttribute message. Does not implicitly {@link flyteidl.core.PromiseAttribute.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {flyteidl.core.IPromiseAttribute} message PromiseAttribute message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PromiseAttribute.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.stringValue); - if (message.intValue != null && message.hasOwnProperty("intValue")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.intValue); - return writer; - }; - - /** - * Decodes a PromiseAttribute message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.PromiseAttribute} PromiseAttribute - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PromiseAttribute.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.PromiseAttribute(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.stringValue = reader.string(); - break; - case 2: - message.intValue = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PromiseAttribute message. - * @function verify - * @memberof flyteidl.core.PromiseAttribute - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PromiseAttribute.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.intValue != null && message.hasOwnProperty("intValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isInteger(message.intValue)) - return "intValue: integer expected"; - } - return null; - }; - - return PromiseAttribute; - })(); - - core.Error = (function() { - - /** - * Properties of an Error. - * @memberof flyteidl.core - * @interface IError - * @property {string|null} [failedNodeId] Error failedNodeId - * @property {string|null} [message] Error message - */ - - /** - * Constructs a new Error. - * @memberof flyteidl.core - * @classdesc Represents an Error. - * @implements IError - * @constructor - * @param {flyteidl.core.IError=} [properties] Properties to set - */ - function Error(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Error failedNodeId. - * @member {string} failedNodeId - * @memberof flyteidl.core.Error - * @instance - */ - Error.prototype.failedNodeId = ""; - - /** - * Error message. - * @member {string} message - * @memberof flyteidl.core.Error - * @instance - */ - Error.prototype.message = ""; - - /** - * Creates a new Error instance using the specified properties. - * @function create - * @memberof flyteidl.core.Error - * @static - * @param {flyteidl.core.IError=} [properties] Properties to set - * @returns {flyteidl.core.Error} Error instance - */ - Error.create = function create(properties) { - return new Error(properties); - }; - - /** - * Encodes the specified Error message. Does not implicitly {@link flyteidl.core.Error.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Error - * @static - * @param {flyteidl.core.IError} message Error message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Error.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.failedNodeId); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; - - /** - * Decodes an Error message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Error - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Error} Error - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Error.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Error(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.failedNodeId = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Error message. - * @function verify - * @memberof flyteidl.core.Error - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Error.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.failedNodeId != null && message.hasOwnProperty("failedNodeId")) - if (!$util.isString(message.failedNodeId)) - return "failedNodeId: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - return Error; - })(); - - core.WorkflowExecution = (function() { - - /** - * Properties of a WorkflowExecution. - * @memberof flyteidl.core - * @interface IWorkflowExecution - */ - - /** - * Constructs a new WorkflowExecution. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowExecution. - * @implements IWorkflowExecution - * @constructor - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set - */ - function WorkflowExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {flyteidl.core.IWorkflowExecution=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution instance - */ - WorkflowExecution.create = function create(properties) { - return new WorkflowExecution(properties); - }; - - /** - * Encodes the specified WorkflowExecution message. Does not implicitly {@link flyteidl.core.WorkflowExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {flyteidl.core.IWorkflowExecution} message WorkflowExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowExecution} WorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecution message. - * @function verify - * @memberof flyteidl.core.WorkflowExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.WorkflowExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDING=3 SUCCEEDING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} FAILING=5 FAILING value - * @property {number} FAILED=6 FAILED value - * @property {number} ABORTED=7 ABORTED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} ABORTING=9 ABORTING value - */ - WorkflowExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "FAILING"] = 5; - values[valuesById[6] = "FAILED"] = 6; - values[valuesById[7] = "ABORTED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "ABORTING"] = 9; - return values; - })(); - - return WorkflowExecution; - })(); - - core.NodeExecution = (function() { - - /** - * Properties of a NodeExecution. - * @memberof flyteidl.core - * @interface INodeExecution - */ - - /** - * Constructs a new NodeExecution. - * @memberof flyteidl.core - * @classdesc Represents a NodeExecution. - * @implements INodeExecution - * @constructor - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set - */ - function NodeExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.NodeExecution - * @static - * @param {flyteidl.core.INodeExecution=} [properties] Properties to set - * @returns {flyteidl.core.NodeExecution} NodeExecution instance - */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); - }; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.core.NodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.NodeExecution - * @static - * @param {flyteidl.core.INodeExecution} message NodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.NodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.NodeExecution} NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.NodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecution message. - * @function verify - * @memberof flyteidl.core.NodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.NodeExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} FAILING=4 FAILING value - * @property {number} FAILED=5 FAILED value - * @property {number} ABORTED=6 ABORTED value - * @property {number} SKIPPED=7 SKIPPED value - * @property {number} TIMED_OUT=8 TIMED_OUT value - * @property {number} DYNAMIC_RUNNING=9 DYNAMIC_RUNNING value - * @property {number} RECOVERED=10 RECOVERED value - */ - NodeExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "FAILING"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "ABORTED"] = 6; - values[valuesById[7] = "SKIPPED"] = 7; - values[valuesById[8] = "TIMED_OUT"] = 8; - values[valuesById[9] = "DYNAMIC_RUNNING"] = 9; - values[valuesById[10] = "RECOVERED"] = 10; - return values; - })(); - - return NodeExecution; - })(); - - core.TaskExecution = (function() { - - /** - * Properties of a TaskExecution. - * @memberof flyteidl.core - * @interface ITaskExecution - */ - - /** - * Constructs a new TaskExecution. - * @memberof flyteidl.core - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution - * @constructor - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set - */ - function TaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskExecution - * @static - * @param {flyteidl.core.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.core.TaskExecution} TaskExecution instance - */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); - }; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.core.TaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskExecution - * @static - * @param {flyteidl.core.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecution message. - * @function verify - * @memberof flyteidl.core.TaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - /** - * Phase enum. - * @name flyteidl.core.TaskExecution.Phase - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} QUEUED=1 QUEUED value - * @property {number} RUNNING=2 RUNNING value - * @property {number} SUCCEEDED=3 SUCCEEDED value - * @property {number} ABORTED=4 ABORTED value - * @property {number} FAILED=5 FAILED value - * @property {number} INITIALIZING=6 INITIALIZING value - * @property {number} WAITING_FOR_RESOURCES=7 WAITING_FOR_RESOURCES value - */ - TaskExecution.Phase = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "QUEUED"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "SUCCEEDED"] = 3; - values[valuesById[4] = "ABORTED"] = 4; - values[valuesById[5] = "FAILED"] = 5; - values[valuesById[6] = "INITIALIZING"] = 6; - values[valuesById[7] = "WAITING_FOR_RESOURCES"] = 7; - return values; - })(); - - return TaskExecution; - })(); - - core.ExecutionError = (function() { - - /** - * Properties of an ExecutionError. - * @memberof flyteidl.core - * @interface IExecutionError - * @property {string|null} [code] ExecutionError code - * @property {string|null} [message] ExecutionError message - * @property {string|null} [errorUri] ExecutionError errorUri - * @property {flyteidl.core.ExecutionError.ErrorKind|null} [kind] ExecutionError kind - */ - - /** - * Constructs a new ExecutionError. - * @memberof flyteidl.core - * @classdesc Represents an ExecutionError. - * @implements IExecutionError - * @constructor - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set - */ - function ExecutionError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionError code. - * @member {string} code - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.code = ""; - - /** - * ExecutionError message. - * @member {string} message - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.message = ""; - - /** - * ExecutionError errorUri. - * @member {string} errorUri - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.errorUri = ""; - - /** - * ExecutionError kind. - * @member {flyteidl.core.ExecutionError.ErrorKind} kind - * @memberof flyteidl.core.ExecutionError - * @instance - */ - ExecutionError.prototype.kind = 0; - - /** - * Creates a new ExecutionError instance using the specified properties. - * @function create - * @memberof flyteidl.core.ExecutionError - * @static - * @param {flyteidl.core.IExecutionError=} [properties] Properties to set - * @returns {flyteidl.core.ExecutionError} ExecutionError instance - */ - ExecutionError.create = function create(properties) { - return new ExecutionError(properties); - }; - - /** - * Encodes the specified ExecutionError message. Does not implicitly {@link flyteidl.core.ExecutionError.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ExecutionError - * @static - * @param {flyteidl.core.IExecutionError} message ExecutionError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorUri); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.kind); - return writer; - }; - - /** - * Decodes an ExecutionError message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ExecutionError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExecutionError} ExecutionError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExecutionError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.errorUri = reader.string(); - break; - case 4: - message.kind = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionError message. - * @function verify - * @memberof flyteidl.core.ExecutionError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.errorUri != null && message.hasOwnProperty("errorUri")) - if (!$util.isString(message.errorUri)) - return "errorUri: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * ErrorKind enum. - * @name flyteidl.core.ExecutionError.ErrorKind - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} USER=1 USER value - * @property {number} SYSTEM=2 SYSTEM value - */ - ExecutionError.ErrorKind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USER"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - return values; - })(); - - return ExecutionError; - })(); - - core.TaskLog = (function() { - - /** - * Properties of a TaskLog. - * @memberof flyteidl.core - * @interface ITaskLog - * @property {string|null} [uri] TaskLog uri - * @property {string|null} [name] TaskLog name - * @property {flyteidl.core.TaskLog.MessageFormat|null} [messageFormat] TaskLog messageFormat - * @property {google.protobuf.IDuration|null} [ttl] TaskLog ttl - */ - - /** - * Constructs a new TaskLog. - * @memberof flyteidl.core - * @classdesc Represents a TaskLog. - * @implements ITaskLog - * @constructor - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set - */ - function TaskLog(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskLog uri. - * @member {string} uri - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.uri = ""; - - /** - * TaskLog name. - * @member {string} name - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.name = ""; - - /** - * TaskLog messageFormat. - * @member {flyteidl.core.TaskLog.MessageFormat} messageFormat - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.messageFormat = 0; - - /** - * TaskLog ttl. - * @member {google.protobuf.IDuration|null|undefined} ttl - * @memberof flyteidl.core.TaskLog - * @instance - */ - TaskLog.prototype.ttl = null; - - /** - * Creates a new TaskLog instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskLog - * @static - * @param {flyteidl.core.ITaskLog=} [properties] Properties to set - * @returns {flyteidl.core.TaskLog} TaskLog instance - */ - TaskLog.create = function create(properties) { - return new TaskLog(properties); - }; - - /** - * Encodes the specified TaskLog message. Does not implicitly {@link flyteidl.core.TaskLog.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskLog - * @static - * @param {flyteidl.core.ITaskLog} message TaskLog message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskLog.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.uri); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.messageFormat); - if (message.ttl != null && message.hasOwnProperty("ttl")) - $root.google.protobuf.Duration.encode(message.ttl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskLog message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskLog - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskLog} TaskLog - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskLog.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskLog(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.uri = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.messageFormat = reader.int32(); - break; - case 4: - message.ttl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskLog message. - * @function verify - * @memberof flyteidl.core.TaskLog - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskLog.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uri != null && message.hasOwnProperty("uri")) - if (!$util.isString(message.uri)) - return "uri: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.messageFormat != null && message.hasOwnProperty("messageFormat")) - switch (message.messageFormat) { - default: - return "messageFormat: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ttl != null && message.hasOwnProperty("ttl")) { - var error = $root.google.protobuf.Duration.verify(message.ttl); - if (error) - return "ttl." + error; - } - return null; - }; - - /** - * MessageFormat enum. - * @name flyteidl.core.TaskLog.MessageFormat - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} CSV=1 CSV value - * @property {number} JSON=2 JSON value - */ - TaskLog.MessageFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "CSV"] = 1; - values[valuesById[2] = "JSON"] = 2; - return values; - })(); - - return TaskLog; - })(); - - core.QualityOfServiceSpec = (function() { - - /** - * Properties of a QualityOfServiceSpec. - * @memberof flyteidl.core - * @interface IQualityOfServiceSpec - * @property {google.protobuf.IDuration|null} [queueingBudget] QualityOfServiceSpec queueingBudget - */ - - /** - * Constructs a new QualityOfServiceSpec. - * @memberof flyteidl.core - * @classdesc Represents a QualityOfServiceSpec. - * @implements IQualityOfServiceSpec - * @constructor - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set - */ - function QualityOfServiceSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QualityOfServiceSpec queueingBudget. - * @member {google.protobuf.IDuration|null|undefined} queueingBudget - * @memberof flyteidl.core.QualityOfServiceSpec - * @instance - */ - QualityOfServiceSpec.prototype.queueingBudget = null; - - /** - * Creates a new QualityOfServiceSpec instance using the specified properties. - * @function create - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {flyteidl.core.IQualityOfServiceSpec=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec instance - */ - QualityOfServiceSpec.create = function create(properties) { - return new QualityOfServiceSpec(properties); - }; - - /** - * Encodes the specified QualityOfServiceSpec message. Does not implicitly {@link flyteidl.core.QualityOfServiceSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {flyteidl.core.IQualityOfServiceSpec} message QualityOfServiceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QualityOfServiceSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) - $root.google.protobuf.Duration.encode(message.queueingBudget, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a QualityOfServiceSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfServiceSpec} QualityOfServiceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QualityOfServiceSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfServiceSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.queueingBudget = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a QualityOfServiceSpec message. - * @function verify - * @memberof flyteidl.core.QualityOfServiceSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QualityOfServiceSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queueingBudget != null && message.hasOwnProperty("queueingBudget")) { - var error = $root.google.protobuf.Duration.verify(message.queueingBudget); - if (error) - return "queueingBudget." + error; - } - return null; - }; - - return QualityOfServiceSpec; - })(); - - core.QualityOfService = (function() { - - /** - * Properties of a QualityOfService. - * @memberof flyteidl.core - * @interface IQualityOfService - * @property {flyteidl.core.QualityOfService.Tier|null} [tier] QualityOfService tier - * @property {flyteidl.core.IQualityOfServiceSpec|null} [spec] QualityOfService spec - */ - - /** - * Constructs a new QualityOfService. - * @memberof flyteidl.core - * @classdesc Represents a QualityOfService. - * @implements IQualityOfService - * @constructor - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set - */ - function QualityOfService(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * QualityOfService tier. - * @member {flyteidl.core.QualityOfService.Tier} tier - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.tier = 0; - - /** - * QualityOfService spec. - * @member {flyteidl.core.IQualityOfServiceSpec|null|undefined} spec - * @memberof flyteidl.core.QualityOfService - * @instance - */ - QualityOfService.prototype.spec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * QualityOfService designation. - * @member {"tier"|"spec"|undefined} designation - * @memberof flyteidl.core.QualityOfService - * @instance - */ - Object.defineProperty(QualityOfService.prototype, "designation", { - get: $util.oneOfGetter($oneOfFields = ["tier", "spec"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new QualityOfService instance using the specified properties. - * @function create - * @memberof flyteidl.core.QualityOfService - * @static - * @param {flyteidl.core.IQualityOfService=} [properties] Properties to set - * @returns {flyteidl.core.QualityOfService} QualityOfService instance - */ - QualityOfService.create = function create(properties) { - return new QualityOfService(properties); - }; - - /** - * Encodes the specified QualityOfService message. Does not implicitly {@link flyteidl.core.QualityOfService.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.QualityOfService - * @static - * @param {flyteidl.core.IQualityOfService} message QualityOfService message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - QualityOfService.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tier != null && message.hasOwnProperty("tier")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tier); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.core.QualityOfServiceSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a QualityOfService message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.QualityOfService - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.QualityOfService} QualityOfService - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - QualityOfService.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.QualityOfService(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.tier = reader.int32(); - break; - case 2: - message.spec = $root.flyteidl.core.QualityOfServiceSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a QualityOfService message. - * @function verify - * @memberof flyteidl.core.QualityOfService - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - QualityOfService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.tier != null && message.hasOwnProperty("tier")) { - properties.designation = 1; - switch (message.tier) { - default: - return "tier: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - } - if (message.spec != null && message.hasOwnProperty("spec")) { - if (properties.designation === 1) - return "designation: multiple values"; - properties.designation = 1; - { - var error = $root.flyteidl.core.QualityOfServiceSpec.verify(message.spec); - if (error) - return "spec." + error; - } - } - return null; - }; - - /** - * Tier enum. - * @name flyteidl.core.QualityOfService.Tier - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} HIGH=1 HIGH value - * @property {number} MEDIUM=2 MEDIUM value - * @property {number} LOW=3 LOW value - */ - QualityOfService.Tier = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "HIGH"] = 1; - values[valuesById[2] = "MEDIUM"] = 2; - values[valuesById[3] = "LOW"] = 3; - return values; - })(); - - return QualityOfService; - })(); - - core.Variable = (function() { - - /** - * Properties of a Variable. - * @memberof flyteidl.core - * @interface IVariable - * @property {flyteidl.core.ILiteralType|null} [type] Variable type - * @property {string|null} [description] Variable description - * @property {flyteidl.core.IArtifactID|null} [artifactPartialId] Variable artifactPartialId - * @property {flyteidl.core.IArtifactTag|null} [artifactTag] Variable artifactTag - */ - - /** - * Constructs a new Variable. - * @memberof flyteidl.core - * @classdesc Represents a Variable. - * @implements IVariable - * @constructor - * @param {flyteidl.core.IVariable=} [properties] Properties to set - */ - function Variable(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Variable type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.type = null; - - /** - * Variable description. - * @member {string} description - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.description = ""; - - /** - * Variable artifactPartialId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactPartialId - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.artifactPartialId = null; - - /** - * Variable artifactTag. - * @member {flyteidl.core.IArtifactTag|null|undefined} artifactTag - * @memberof flyteidl.core.Variable - * @instance - */ - Variable.prototype.artifactTag = null; - - /** - * Creates a new Variable instance using the specified properties. - * @function create - * @memberof flyteidl.core.Variable - * @static - * @param {flyteidl.core.IVariable=} [properties] Properties to set - * @returns {flyteidl.core.Variable} Variable instance - */ - Variable.create = function create(properties) { - return new Variable(properties); - }; - - /** - * Encodes the specified Variable message. Does not implicitly {@link flyteidl.core.Variable.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Variable - * @static - * @param {flyteidl.core.IVariable} message Variable message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Variable.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactPartialId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) - $root.flyteidl.core.ArtifactTag.encode(message.artifactTag, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Variable message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Variable - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Variable} Variable - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Variable.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Variable(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 2: - message.description = reader.string(); - break; - case 3: - message.artifactPartialId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - case 4: - message.artifactTag = $root.flyteidl.core.ArtifactTag.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Variable message. - * @function verify - * @memberof flyteidl.core.Variable - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Variable.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.artifactPartialId != null && message.hasOwnProperty("artifactPartialId")) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactPartialId); - if (error) - return "artifactPartialId." + error; - } - if (message.artifactTag != null && message.hasOwnProperty("artifactTag")) { - var error = $root.flyteidl.core.ArtifactTag.verify(message.artifactTag); - if (error) - return "artifactTag." + error; - } - return null; - }; - - return Variable; - })(); - - core.VariableMap = (function() { - - /** - * Properties of a VariableMap. - * @memberof flyteidl.core - * @interface IVariableMap - * @property {Object.|null} [variables] VariableMap variables - */ - - /** - * Constructs a new VariableMap. - * @memberof flyteidl.core - * @classdesc Represents a VariableMap. - * @implements IVariableMap - * @constructor - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set - */ - function VariableMap(properties) { - this.variables = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * VariableMap variables. - * @member {Object.} variables - * @memberof flyteidl.core.VariableMap - * @instance - */ - VariableMap.prototype.variables = $util.emptyObject; - - /** - * Creates a new VariableMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.VariableMap - * @static - * @param {flyteidl.core.IVariableMap=} [properties] Properties to set - * @returns {flyteidl.core.VariableMap} VariableMap instance - */ - VariableMap.create = function create(properties) { - return new VariableMap(properties); - }; - - /** - * Encodes the specified VariableMap message. Does not implicitly {@link flyteidl.core.VariableMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.VariableMap - * @static - * @param {flyteidl.core.IVariableMap} message VariableMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - VariableMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.variables != null && message.hasOwnProperty("variables")) - for (var keys = Object.keys(message.variables), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Variable.encode(message.variables[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a VariableMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.VariableMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.VariableMap} VariableMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - VariableMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.VariableMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.variables === $util.emptyObject) - message.variables = {}; - key = reader.string(); - reader.pos++; - message.variables[key] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a VariableMap message. - * @function verify - * @memberof flyteidl.core.VariableMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - VariableMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.variables != null && message.hasOwnProperty("variables")) { - if (!$util.isObject(message.variables)) - return "variables: object expected"; - var key = Object.keys(message.variables); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Variable.verify(message.variables[key[i]]); - if (error) - return "variables." + error; - } - } - return null; - }; - - return VariableMap; - })(); - - core.TypedInterface = (function() { - - /** - * Properties of a TypedInterface. - * @memberof flyteidl.core - * @interface ITypedInterface - * @property {flyteidl.core.IVariableMap|null} [inputs] TypedInterface inputs - * @property {flyteidl.core.IVariableMap|null} [outputs] TypedInterface outputs - */ - - /** - * Constructs a new TypedInterface. - * @memberof flyteidl.core - * @classdesc Represents a TypedInterface. - * @implements ITypedInterface - * @constructor - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set - */ - function TypedInterface(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TypedInterface inputs. - * @member {flyteidl.core.IVariableMap|null|undefined} inputs - * @memberof flyteidl.core.TypedInterface - * @instance - */ - TypedInterface.prototype.inputs = null; - - /** - * TypedInterface outputs. - * @member {flyteidl.core.IVariableMap|null|undefined} outputs - * @memberof flyteidl.core.TypedInterface - * @instance - */ - TypedInterface.prototype.outputs = null; - - /** - * Creates a new TypedInterface instance using the specified properties. - * @function create - * @memberof flyteidl.core.TypedInterface - * @static - * @param {flyteidl.core.ITypedInterface=} [properties] Properties to set - * @returns {flyteidl.core.TypedInterface} TypedInterface instance - */ - TypedInterface.create = function create(properties) { - return new TypedInterface(properties); - }; - - /** - * Encodes the specified TypedInterface message. Does not implicitly {@link flyteidl.core.TypedInterface.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TypedInterface - * @static - * @param {flyteidl.core.ITypedInterface} message TypedInterface message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TypedInterface.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.VariableMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.VariableMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TypedInterface message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TypedInterface - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TypedInterface} TypedInterface - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TypedInterface.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TypedInterface(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TypedInterface message. - * @function verify - * @memberof flyteidl.core.TypedInterface - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TypedInterface.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - return null; - }; - - return TypedInterface; - })(); - - core.Parameter = (function() { - - /** - * Properties of a Parameter. - * @memberof flyteidl.core - * @interface IParameter - * @property {flyteidl.core.IVariable|null} ["var"] Parameter var - * @property {flyteidl.core.ILiteral|null} ["default"] Parameter default - * @property {boolean|null} [required] Parameter required - * @property {flyteidl.core.IArtifactQuery|null} [artifactQuery] Parameter artifactQuery - * @property {flyteidl.core.IArtifactID|null} [artifactId] Parameter artifactId - */ - - /** - * Constructs a new Parameter. - * @memberof flyteidl.core - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {flyteidl.core.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Parameter var. - * @member {flyteidl.core.IVariable|null|undefined} var - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["var"] = null; - - /** - * Parameter default. - * @member {flyteidl.core.ILiteral|null|undefined} default - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype["default"] = null; - - /** - * Parameter required. - * @member {boolean} required - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.required = false; - - /** - * Parameter artifactQuery. - * @member {flyteidl.core.IArtifactQuery|null|undefined} artifactQuery - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactQuery = null; - - /** - * Parameter artifactId. - * @member {flyteidl.core.IArtifactID|null|undefined} artifactId - * @memberof flyteidl.core.Parameter - * @instance - */ - Parameter.prototype.artifactId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Parameter behavior. - * @member {"default"|"required"|"artifactQuery"|"artifactId"|undefined} behavior - * @memberof flyteidl.core.Parameter - * @instance - */ - Object.defineProperty(Parameter.prototype, "behavior", { - get: $util.oneOfGetter($oneOfFields = ["default", "required", "artifactQuery", "artifactId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof flyteidl.core.Parameter - * @static - * @param {flyteidl.core.IParameter=} [properties] Properties to set - * @returns {flyteidl.core.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link flyteidl.core.Parameter.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Parameter - * @static - * @param {flyteidl.core.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message["var"] != null && message.hasOwnProperty("var")) - $root.flyteidl.core.Variable.encode(message["var"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message["default"] != null && message.hasOwnProperty("default")) - $root.flyteidl.core.Literal.encode(message["default"], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.required != null && message.hasOwnProperty("required")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required); - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) - $root.flyteidl.core.ArtifactQuery.encode(message.artifactQuery, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactId != null && message.hasOwnProperty("artifactId")) - $root.flyteidl.core.ArtifactID.encode(message.artifactId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message["var"] = $root.flyteidl.core.Variable.decode(reader, reader.uint32()); - break; - case 2: - message["default"] = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - case 3: - message.required = reader.bool(); - break; - case 4: - message.artifactQuery = $root.flyteidl.core.ArtifactQuery.decode(reader, reader.uint32()); - break; - case 5: - message.artifactId = $root.flyteidl.core.ArtifactID.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Parameter message. - * @function verify - * @memberof flyteidl.core.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message["var"] != null && message.hasOwnProperty("var")) { - var error = $root.flyteidl.core.Variable.verify(message["var"]); - if (error) - return "var." + error; - } - if (message["default"] != null && message.hasOwnProperty("default")) { - properties.behavior = 1; - { - var error = $root.flyteidl.core.Literal.verify(message["default"]); - if (error) - return "default." + error; - } - } - if (message.required != null && message.hasOwnProperty("required")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - if (typeof message.required !== "boolean") - return "required: boolean expected"; - } - if (message.artifactQuery != null && message.hasOwnProperty("artifactQuery")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactQuery.verify(message.artifactQuery); - if (error) - return "artifactQuery." + error; - } - } - if (message.artifactId != null && message.hasOwnProperty("artifactId")) { - if (properties.behavior === 1) - return "behavior: multiple values"; - properties.behavior = 1; - { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactId); - if (error) - return "artifactId." + error; - } - } - return null; - }; - - return Parameter; - })(); - - core.ParameterMap = (function() { - - /** - * Properties of a ParameterMap. - * @memberof flyteidl.core - * @interface IParameterMap - * @property {Object.|null} [parameters] ParameterMap parameters - */ - - /** - * Constructs a new ParameterMap. - * @memberof flyteidl.core - * @classdesc Represents a ParameterMap. - * @implements IParameterMap - * @constructor - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set - */ - function ParameterMap(properties) { - this.parameters = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParameterMap parameters. - * @member {Object.} parameters - * @memberof flyteidl.core.ParameterMap - * @instance - */ - ParameterMap.prototype.parameters = $util.emptyObject; - - /** - * Creates a new ParameterMap instance using the specified properties. - * @function create - * @memberof flyteidl.core.ParameterMap - * @static - * @param {flyteidl.core.IParameterMap=} [properties] Properties to set - * @returns {flyteidl.core.ParameterMap} ParameterMap instance - */ - ParameterMap.create = function create(properties) { - return new ParameterMap(properties); - }; - - /** - * Encodes the specified ParameterMap message. Does not implicitly {@link flyteidl.core.ParameterMap.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ParameterMap - * @static - * @param {flyteidl.core.IParameterMap} message ParameterMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameters != null && message.hasOwnProperty("parameters")) - for (var keys = Object.keys(message.parameters), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.flyteidl.core.Parameter.encode(message.parameters[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a ParameterMap message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ParameterMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ParameterMap} ParameterMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ParameterMap(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.parameters === $util.emptyObject) - message.parameters = {}; - key = reader.string(); - reader.pos++; - message.parameters[key] = $root.flyteidl.core.Parameter.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParameterMap message. - * @function verify - * @memberof flyteidl.core.ParameterMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!$util.isObject(message.parameters)) - return "parameters: object expected"; - var key = Object.keys(message.parameters); - for (var i = 0; i < key.length; ++i) { - var error = $root.flyteidl.core.Parameter.verify(message.parameters[key[i]]); - if (error) - return "parameters." + error; - } - } - return null; - }; - - return ParameterMap; - })(); - - core.Resources = (function() { - - /** - * Properties of a Resources. - * @memberof flyteidl.core - * @interface IResources - * @property {Array.|null} [requests] Resources requests - * @property {Array.|null} [limits] Resources limits - */ - - /** - * Constructs a new Resources. - * @memberof flyteidl.core - * @classdesc Represents a Resources. - * @implements IResources - * @constructor - * @param {flyteidl.core.IResources=} [properties] Properties to set - */ - function Resources(properties) { - this.requests = []; - this.limits = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Resources requests. - * @member {Array.} requests - * @memberof flyteidl.core.Resources - * @instance - */ - Resources.prototype.requests = $util.emptyArray; - - /** - * Resources limits. - * @member {Array.} limits - * @memberof flyteidl.core.Resources - * @instance - */ - Resources.prototype.limits = $util.emptyArray; - - /** - * Creates a new Resources instance using the specified properties. - * @function create - * @memberof flyteidl.core.Resources - * @static - * @param {flyteidl.core.IResources=} [properties] Properties to set - * @returns {flyteidl.core.Resources} Resources instance - */ - Resources.create = function create(properties) { - return new Resources(properties); - }; - - /** - * Encodes the specified Resources message. Does not implicitly {@link flyteidl.core.Resources.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Resources - * @static - * @param {flyteidl.core.IResources} message Resources message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Resources.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.flyteidl.core.Resources.ResourceEntry.encode(message.requests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limits != null && message.limits.length) - for (var i = 0; i < message.limits.length; ++i) - $root.flyteidl.core.Resources.ResourceEntry.encode(message.limits[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Resources message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Resources - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Resources} Resources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Resources.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.limits && message.limits.length)) - message.limits = []; - message.limits.push($root.flyteidl.core.Resources.ResourceEntry.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Resources message. - * @function verify - * @memberof flyteidl.core.Resources - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Resources.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.requests[i]); - if (error) - return "requests." + error; - } - } - if (message.limits != null && message.hasOwnProperty("limits")) { - if (!Array.isArray(message.limits)) - return "limits: array expected"; - for (var i = 0; i < message.limits.length; ++i) { - var error = $root.flyteidl.core.Resources.ResourceEntry.verify(message.limits[i]); - if (error) - return "limits." + error; - } - } - return null; - }; - - /** - * ResourceName enum. - * @name flyteidl.core.Resources.ResourceName - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} CPU=1 CPU value - * @property {number} GPU=2 GPU value - * @property {number} MEMORY=3 MEMORY value - * @property {number} STORAGE=4 STORAGE value - * @property {number} EPHEMERAL_STORAGE=5 EPHEMERAL_STORAGE value - */ - Resources.ResourceName = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "CPU"] = 1; - values[valuesById[2] = "GPU"] = 2; - values[valuesById[3] = "MEMORY"] = 3; - values[valuesById[4] = "STORAGE"] = 4; - values[valuesById[5] = "EPHEMERAL_STORAGE"] = 5; - return values; - })(); - - Resources.ResourceEntry = (function() { - - /** - * Properties of a ResourceEntry. - * @memberof flyteidl.core.Resources - * @interface IResourceEntry - * @property {flyteidl.core.Resources.ResourceName|null} [name] ResourceEntry name - * @property {string|null} [value] ResourceEntry value - */ - - /** - * Constructs a new ResourceEntry. - * @memberof flyteidl.core.Resources - * @classdesc Represents a ResourceEntry. - * @implements IResourceEntry - * @constructor - * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set - */ - function ResourceEntry(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceEntry name. - * @member {flyteidl.core.Resources.ResourceName} name - * @memberof flyteidl.core.Resources.ResourceEntry - * @instance - */ - ResourceEntry.prototype.name = 0; - - /** - * ResourceEntry value. - * @member {string} value - * @memberof flyteidl.core.Resources.ResourceEntry - * @instance - */ - ResourceEntry.prototype.value = ""; - - /** - * Creates a new ResourceEntry instance using the specified properties. - * @function create - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {flyteidl.core.Resources.IResourceEntry=} [properties] Properties to set - * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry instance - */ - ResourceEntry.create = function create(properties) { - return new ResourceEntry(properties); - }; - - /** - * Encodes the specified ResourceEntry message. Does not implicitly {@link flyteidl.core.Resources.ResourceEntry.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {flyteidl.core.Resources.IResourceEntry} message ResourceEntry message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); - return writer; - }; - - /** - * Decodes a ResourceEntry message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Resources.ResourceEntry} ResourceEntry - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Resources.ResourceEntry(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.int32(); - break; - case 2: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourceEntry message. - * @function verify - * @memberof flyteidl.core.Resources.ResourceEntry - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - switch (message.name) { - default: - return "name: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return ResourceEntry; - })(); - - return Resources; - })(); - - core.GPUAccelerator = (function() { - - /** - * Properties of a GPUAccelerator. - * @memberof flyteidl.core - * @interface IGPUAccelerator - * @property {string|null} [device] GPUAccelerator device - * @property {boolean|null} [unpartitioned] GPUAccelerator unpartitioned - * @property {string|null} [partitionSize] GPUAccelerator partitionSize - */ - - /** - * Constructs a new GPUAccelerator. - * @memberof flyteidl.core - * @classdesc Represents a GPUAccelerator. - * @implements IGPUAccelerator - * @constructor - * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set - */ - function GPUAccelerator(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GPUAccelerator device. - * @member {string} device - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.device = ""; - - /** - * GPUAccelerator unpartitioned. - * @member {boolean} unpartitioned - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.unpartitioned = false; - - /** - * GPUAccelerator partitionSize. - * @member {string} partitionSize - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - GPUAccelerator.prototype.partitionSize = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GPUAccelerator partitionSizeValue. - * @member {"unpartitioned"|"partitionSize"|undefined} partitionSizeValue - * @memberof flyteidl.core.GPUAccelerator - * @instance - */ - Object.defineProperty(GPUAccelerator.prototype, "partitionSizeValue", { - get: $util.oneOfGetter($oneOfFields = ["unpartitioned", "partitionSize"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GPUAccelerator instance using the specified properties. - * @function create - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {flyteidl.core.IGPUAccelerator=} [properties] Properties to set - * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator instance - */ - GPUAccelerator.create = function create(properties) { - return new GPUAccelerator(properties); - }; - - /** - * Encodes the specified GPUAccelerator message. Does not implicitly {@link flyteidl.core.GPUAccelerator.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {flyteidl.core.IGPUAccelerator} message GPUAccelerator message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GPUAccelerator.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.device != null && message.hasOwnProperty("device")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.device); - if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.unpartitioned); - if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.partitionSize); - return writer; - }; - - /** - * Decodes a GPUAccelerator message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.GPUAccelerator} GPUAccelerator - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GPUAccelerator.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.GPUAccelerator(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.device = reader.string(); - break; - case 2: - message.unpartitioned = reader.bool(); - break; - case 3: - message.partitionSize = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GPUAccelerator message. - * @function verify - * @memberof flyteidl.core.GPUAccelerator - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GPUAccelerator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.device != null && message.hasOwnProperty("device")) - if (!$util.isString(message.device)) - return "device: string expected"; - if (message.unpartitioned != null && message.hasOwnProperty("unpartitioned")) { - properties.partitionSizeValue = 1; - if (typeof message.unpartitioned !== "boolean") - return "unpartitioned: boolean expected"; - } - if (message.partitionSize != null && message.hasOwnProperty("partitionSize")) { - if (properties.partitionSizeValue === 1) - return "partitionSizeValue: multiple values"; - properties.partitionSizeValue = 1; - if (!$util.isString(message.partitionSize)) - return "partitionSize: string expected"; - } - return null; - }; - - return GPUAccelerator; - })(); - - core.ExtendedResources = (function() { - - /** - * Properties of an ExtendedResources. - * @memberof flyteidl.core - * @interface IExtendedResources - * @property {flyteidl.core.IGPUAccelerator|null} [gpuAccelerator] ExtendedResources gpuAccelerator - */ - - /** - * Constructs a new ExtendedResources. - * @memberof flyteidl.core - * @classdesc Represents an ExtendedResources. - * @implements IExtendedResources - * @constructor - * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set - */ - function ExtendedResources(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtendedResources gpuAccelerator. - * @member {flyteidl.core.IGPUAccelerator|null|undefined} gpuAccelerator - * @memberof flyteidl.core.ExtendedResources - * @instance - */ - ExtendedResources.prototype.gpuAccelerator = null; - - /** - * Creates a new ExtendedResources instance using the specified properties. - * @function create - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {flyteidl.core.IExtendedResources=} [properties] Properties to set - * @returns {flyteidl.core.ExtendedResources} ExtendedResources instance - */ - ExtendedResources.create = function create(properties) { - return new ExtendedResources(properties); - }; - - /** - * Encodes the specified ExtendedResources message. Does not implicitly {@link flyteidl.core.ExtendedResources.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {flyteidl.core.IExtendedResources} message ExtendedResources message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtendedResources.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) - $root.flyteidl.core.GPUAccelerator.encode(message.gpuAccelerator, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExtendedResources message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ExtendedResources} ExtendedResources - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtendedResources.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ExtendedResources(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.gpuAccelerator = $root.flyteidl.core.GPUAccelerator.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExtendedResources message. - * @function verify - * @memberof flyteidl.core.ExtendedResources - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtendedResources.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gpuAccelerator != null && message.hasOwnProperty("gpuAccelerator")) { - var error = $root.flyteidl.core.GPUAccelerator.verify(message.gpuAccelerator); - if (error) - return "gpuAccelerator." + error; - } - return null; - }; - - return ExtendedResources; - })(); - - core.RuntimeMetadata = (function() { - - /** - * Properties of a RuntimeMetadata. - * @memberof flyteidl.core - * @interface IRuntimeMetadata - * @property {flyteidl.core.RuntimeMetadata.RuntimeType|null} [type] RuntimeMetadata type - * @property {string|null} [version] RuntimeMetadata version - * @property {string|null} [flavor] RuntimeMetadata flavor - */ - - /** - * Constructs a new RuntimeMetadata. - * @memberof flyteidl.core - * @classdesc Represents a RuntimeMetadata. - * @implements IRuntimeMetadata - * @constructor - * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set - */ - function RuntimeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RuntimeMetadata type. - * @member {flyteidl.core.RuntimeMetadata.RuntimeType} type - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.type = 0; - - /** - * RuntimeMetadata version. - * @member {string} version - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.version = ""; - - /** - * RuntimeMetadata flavor. - * @member {string} flavor - * @memberof flyteidl.core.RuntimeMetadata - * @instance - */ - RuntimeMetadata.prototype.flavor = ""; - - /** - * Creates a new RuntimeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {flyteidl.core.IRuntimeMetadata=} [properties] Properties to set - * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata instance - */ - RuntimeMetadata.create = function create(properties) { - return new RuntimeMetadata(properties); - }; - - /** - * Encodes the specified RuntimeMetadata message. Does not implicitly {@link flyteidl.core.RuntimeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {flyteidl.core.IRuntimeMetadata} message RuntimeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RuntimeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.version != null && message.hasOwnProperty("version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.version); - if (message.flavor != null && message.hasOwnProperty("flavor")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.flavor); - return writer; - }; - - /** - * Decodes a RuntimeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.RuntimeMetadata} RuntimeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RuntimeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.RuntimeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 2: - message.version = reader.string(); - break; - case 3: - message.flavor = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RuntimeMetadata message. - * @function verify - * @memberof flyteidl.core.RuntimeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RuntimeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; - } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; - if (message.flavor != null && message.hasOwnProperty("flavor")) - if (!$util.isString(message.flavor)) - return "flavor: string expected"; - return null; - }; - - /** - * RuntimeType enum. - * @name flyteidl.core.RuntimeMetadata.RuntimeType - * @enum {string} - * @property {number} OTHER=0 OTHER value - * @property {number} FLYTE_SDK=1 FLYTE_SDK value - */ - RuntimeMetadata.RuntimeType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OTHER"] = 0; - values[valuesById[1] = "FLYTE_SDK"] = 1; - return values; - })(); - - return RuntimeMetadata; - })(); - - core.TaskMetadata = (function() { - - /** - * Properties of a TaskMetadata. - * @memberof flyteidl.core - * @interface ITaskMetadata - * @property {boolean|null} [discoverable] TaskMetadata discoverable - * @property {flyteidl.core.IRuntimeMetadata|null} [runtime] TaskMetadata runtime - * @property {google.protobuf.IDuration|null} [timeout] TaskMetadata timeout - * @property {flyteidl.core.IRetryStrategy|null} [retries] TaskMetadata retries - * @property {string|null} [discoveryVersion] TaskMetadata discoveryVersion - * @property {string|null} [deprecatedErrorMessage] TaskMetadata deprecatedErrorMessage - * @property {boolean|null} [interruptible] TaskMetadata interruptible - * @property {boolean|null} [cacheSerializable] TaskMetadata cacheSerializable - * @property {boolean|null} [generatesDeck] TaskMetadata generatesDeck - * @property {Object.|null} [tags] TaskMetadata tags - * @property {string|null} [podTemplateName] TaskMetadata podTemplateName - * @property {Array.|null} [cacheIgnoreInputVars] TaskMetadata cacheIgnoreInputVars - */ - - /** - * Constructs a new TaskMetadata. - * @memberof flyteidl.core - * @classdesc Represents a TaskMetadata. - * @implements ITaskMetadata - * @constructor - * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set - */ - function TaskMetadata(properties) { - this.tags = {}; - this.cacheIgnoreInputVars = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskMetadata discoverable. - * @member {boolean} discoverable - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.discoverable = false; - - /** - * TaskMetadata runtime. - * @member {flyteidl.core.IRuntimeMetadata|null|undefined} runtime - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.runtime = null; - - /** - * TaskMetadata timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.timeout = null; - - /** - * TaskMetadata retries. - * @member {flyteidl.core.IRetryStrategy|null|undefined} retries - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.retries = null; - - /** - * TaskMetadata discoveryVersion. - * @member {string} discoveryVersion - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.discoveryVersion = ""; - - /** - * TaskMetadata deprecatedErrorMessage. - * @member {string} deprecatedErrorMessage - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.deprecatedErrorMessage = ""; - - /** - * TaskMetadata interruptible. - * @member {boolean} interruptible - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.interruptible = false; - - /** - * TaskMetadata cacheSerializable. - * @member {boolean} cacheSerializable - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.cacheSerializable = false; - - /** - * TaskMetadata generatesDeck. - * @member {boolean} generatesDeck - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.generatesDeck = false; - - /** - * TaskMetadata tags. - * @member {Object.} tags - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.tags = $util.emptyObject; - - /** - * TaskMetadata podTemplateName. - * @member {string} podTemplateName - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.podTemplateName = ""; - - /** - * TaskMetadata cacheIgnoreInputVars. - * @member {Array.} cacheIgnoreInputVars - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - TaskMetadata.prototype.cacheIgnoreInputVars = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskMetadata interruptibleValue. - * @member {"interruptible"|undefined} interruptibleValue - * @memberof flyteidl.core.TaskMetadata - * @instance - */ - Object.defineProperty(TaskMetadata.prototype, "interruptibleValue", { - get: $util.oneOfGetter($oneOfFields = ["interruptible"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {flyteidl.core.ITaskMetadata=} [properties] Properties to set - * @returns {flyteidl.core.TaskMetadata} TaskMetadata instance - */ - TaskMetadata.create = function create(properties) { - return new TaskMetadata(properties); - }; - - /** - * Encodes the specified TaskMetadata message. Does not implicitly {@link flyteidl.core.TaskMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {flyteidl.core.ITaskMetadata} message TaskMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.discoverable != null && message.hasOwnProperty("discoverable")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.discoverable); - if (message.runtime != null && message.hasOwnProperty("runtime")) - $root.flyteidl.core.RuntimeMetadata.encode(message.runtime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timeout != null && message.hasOwnProperty("timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.retries != null && message.hasOwnProperty("retries")) - $root.flyteidl.core.RetryStrategy.encode(message.retries, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.discoveryVersion); - if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.deprecatedErrorMessage); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.interruptible); - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.cacheSerializable); - if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.generatesDeck); - if (message.tags != null && message.hasOwnProperty("tags")) - for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.tags[keys[i]]).ldelim(); - if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.podTemplateName); - if (message.cacheIgnoreInputVars != null && message.cacheIgnoreInputVars.length) - for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.cacheIgnoreInputVars[i]); - return writer; - }; - - /** - * Decodes a TaskMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskMetadata} TaskMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.discoverable = reader.bool(); - break; - case 2: - message.runtime = $root.flyteidl.core.RuntimeMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.retries = $root.flyteidl.core.RetryStrategy.decode(reader, reader.uint32()); - break; - case 6: - message.discoveryVersion = reader.string(); - break; - case 7: - message.deprecatedErrorMessage = reader.string(); - break; - case 8: - message.interruptible = reader.bool(); - break; - case 9: - message.cacheSerializable = reader.bool(); - break; - case 10: - message.generatesDeck = reader.bool(); - break; - case 11: - reader.skip().pos++; - if (message.tags === $util.emptyObject) - message.tags = {}; - key = reader.string(); - reader.pos++; - message.tags[key] = reader.string(); - break; - case 12: - message.podTemplateName = reader.string(); - break; - case 13: - if (!(message.cacheIgnoreInputVars && message.cacheIgnoreInputVars.length)) - message.cacheIgnoreInputVars = []; - message.cacheIgnoreInputVars.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskMetadata message. - * @function verify - * @memberof flyteidl.core.TaskMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.discoverable != null && message.hasOwnProperty("discoverable")) - if (typeof message.discoverable !== "boolean") - return "discoverable: boolean expected"; - if (message.runtime != null && message.hasOwnProperty("runtime")) { - var error = $root.flyteidl.core.RuntimeMetadata.verify(message.runtime); - if (error) - return "runtime." + error; - } - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.retries != null && message.hasOwnProperty("retries")) { - var error = $root.flyteidl.core.RetryStrategy.verify(message.retries); - if (error) - return "retries." + error; - } - if (message.discoveryVersion != null && message.hasOwnProperty("discoveryVersion")) - if (!$util.isString(message.discoveryVersion)) - return "discoveryVersion: string expected"; - if (message.deprecatedErrorMessage != null && message.hasOwnProperty("deprecatedErrorMessage")) - if (!$util.isString(message.deprecatedErrorMessage)) - return "deprecatedErrorMessage: string expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - properties.interruptibleValue = 1; - if (typeof message.interruptible !== "boolean") - return "interruptible: boolean expected"; - } - if (message.cacheSerializable != null && message.hasOwnProperty("cacheSerializable")) - if (typeof message.cacheSerializable !== "boolean") - return "cacheSerializable: boolean expected"; - if (message.generatesDeck != null && message.hasOwnProperty("generatesDeck")) - if (typeof message.generatesDeck !== "boolean") - return "generatesDeck: boolean expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!$util.isObject(message.tags)) - return "tags: object expected"; - var key = Object.keys(message.tags); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.tags[key[i]])) - return "tags: string{k:string} expected"; - } - if (message.podTemplateName != null && message.hasOwnProperty("podTemplateName")) - if (!$util.isString(message.podTemplateName)) - return "podTemplateName: string expected"; - if (message.cacheIgnoreInputVars != null && message.hasOwnProperty("cacheIgnoreInputVars")) { - if (!Array.isArray(message.cacheIgnoreInputVars)) - return "cacheIgnoreInputVars: array expected"; - for (var i = 0; i < message.cacheIgnoreInputVars.length; ++i) - if (!$util.isString(message.cacheIgnoreInputVars[i])) - return "cacheIgnoreInputVars: string[] expected"; - } - return null; - }; - - return TaskMetadata; - })(); - - core.TaskTemplate = (function() { - - /** - * Properties of a TaskTemplate. - * @memberof flyteidl.core - * @interface ITaskTemplate - * @property {flyteidl.core.IIdentifier|null} [id] TaskTemplate id - * @property {string|null} [type] TaskTemplate type - * @property {flyteidl.core.ITaskMetadata|null} [metadata] TaskTemplate metadata - * @property {flyteidl.core.ITypedInterface|null} ["interface"] TaskTemplate interface - * @property {google.protobuf.IStruct|null} [custom] TaskTemplate custom - * @property {flyteidl.core.IContainer|null} [container] TaskTemplate container - * @property {flyteidl.core.IK8sPod|null} [k8sPod] TaskTemplate k8sPod - * @property {flyteidl.core.ISql|null} [sql] TaskTemplate sql - * @property {number|null} [taskTypeVersion] TaskTemplate taskTypeVersion - * @property {flyteidl.core.ISecurityContext|null} [securityContext] TaskTemplate securityContext - * @property {flyteidl.core.IExtendedResources|null} [extendedResources] TaskTemplate extendedResources - * @property {Object.|null} [config] TaskTemplate config - */ - - /** - * Constructs a new TaskTemplate. - * @memberof flyteidl.core - * @classdesc Represents a TaskTemplate. - * @implements ITaskTemplate - * @constructor - * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set - */ - function TaskTemplate(properties) { - this.config = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskTemplate id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.id = null; - - /** - * TaskTemplate type. - * @member {string} type - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.type = ""; - - /** - * TaskTemplate metadata. - * @member {flyteidl.core.ITaskMetadata|null|undefined} metadata - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.metadata = null; - - /** - * TaskTemplate interface. - * @member {flyteidl.core.ITypedInterface|null|undefined} interface - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype["interface"] = null; - - /** - * TaskTemplate custom. - * @member {google.protobuf.IStruct|null|undefined} custom - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.custom = null; - - /** - * TaskTemplate container. - * @member {flyteidl.core.IContainer|null|undefined} container - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.container = null; - - /** - * TaskTemplate k8sPod. - * @member {flyteidl.core.IK8sPod|null|undefined} k8sPod - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.k8sPod = null; - - /** - * TaskTemplate sql. - * @member {flyteidl.core.ISql|null|undefined} sql - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.sql = null; - - /** - * TaskTemplate taskTypeVersion. - * @member {number} taskTypeVersion - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.taskTypeVersion = 0; - - /** - * TaskTemplate securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.securityContext = null; - - /** - * TaskTemplate extendedResources. - * @member {flyteidl.core.IExtendedResources|null|undefined} extendedResources - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.extendedResources = null; - - /** - * TaskTemplate config. - * @member {Object.} config - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - TaskTemplate.prototype.config = $util.emptyObject; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskTemplate target. - * @member {"container"|"k8sPod"|"sql"|undefined} target - * @memberof flyteidl.core.TaskTemplate - * @instance - */ - Object.defineProperty(TaskTemplate.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["container", "k8sPod", "sql"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskTemplate instance using the specified properties. - * @function create - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {flyteidl.core.ITaskTemplate=} [properties] Properties to set - * @returns {flyteidl.core.TaskTemplate} TaskTemplate instance - */ - TaskTemplate.create = function create(properties) { - return new TaskTemplate(properties); - }; - - /** - * Encodes the specified TaskTemplate message. Does not implicitly {@link flyteidl.core.TaskTemplate.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {flyteidl.core.ITaskTemplate} message TaskTemplate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskTemplate.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(); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.TaskMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message["interface"] != null && message.hasOwnProperty("interface")) - $root.flyteidl.core.TypedInterface.encode(message["interface"], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.custom != null && message.hasOwnProperty("custom")) - $root.google.protobuf.Struct.encode(message.custom, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.container != null && message.hasOwnProperty("container")) - $root.flyteidl.core.Container.encode(message.container, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.taskTypeVersion); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) - $root.flyteidl.core.ExtendedResources.encode(message.extendedResources, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.config != null && message.hasOwnProperty("config")) - for (var keys = Object.keys(message.config), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.config[keys[i]]).ldelim(); - if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) - $root.flyteidl.core.K8sPod.encode(message.k8sPod, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.sql != null && message.hasOwnProperty("sql")) - $root.flyteidl.core.Sql.encode(message.sql, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskTemplate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.TaskTemplate} TaskTemplate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskTemplate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.TaskTemplate(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = reader.string(); - break; - case 3: - message.metadata = $root.flyteidl.core.TaskMetadata.decode(reader, reader.uint32()); - break; - case 4: - message["interface"] = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 5: - message.custom = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.container = $root.flyteidl.core.Container.decode(reader, reader.uint32()); - break; - case 17: - message.k8sPod = $root.flyteidl.core.K8sPod.decode(reader, reader.uint32()); - break; - case 18: - message.sql = $root.flyteidl.core.Sql.decode(reader, reader.uint32()); - break; - case 7: - message.taskTypeVersion = reader.int32(); - break; - case 8: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 9: - message.extendedResources = $root.flyteidl.core.ExtendedResources.decode(reader, reader.uint32()); - break; - case 16: - reader.skip().pos++; - if (message.config === $util.emptyObject) - message.config = {}; - key = reader.string(); - reader.pos++; - message.config[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskTemplate message. - * @function verify - * @memberof flyteidl.core.TaskTemplate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskTemplate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.TaskMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message["interface"] != null && message.hasOwnProperty("interface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message["interface"]); - if (error) - return "interface." + error; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - var error = $root.google.protobuf.Struct.verify(message.custom); - if (error) - return "custom." + error; - } - if (message.container != null && message.hasOwnProperty("container")) { - properties.target = 1; - { - var error = $root.flyteidl.core.Container.verify(message.container); - if (error) - return "container." + error; - } - } - if (message.k8sPod != null && message.hasOwnProperty("k8sPod")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.K8sPod.verify(message.k8sPod); - if (error) - return "k8sPod." + error; - } - } - if (message.sql != null && message.hasOwnProperty("sql")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.Sql.verify(message.sql); - if (error) - return "sql." + error; - } - } - if (message.taskTypeVersion != null && message.hasOwnProperty("taskTypeVersion")) - if (!$util.isInteger(message.taskTypeVersion)) - return "taskTypeVersion: integer expected"; - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.extendedResources != null && message.hasOwnProperty("extendedResources")) { - var error = $root.flyteidl.core.ExtendedResources.verify(message.extendedResources); - if (error) - return "extendedResources." + error; - } - if (message.config != null && message.hasOwnProperty("config")) { - if (!$util.isObject(message.config)) - return "config: object expected"; - var key = Object.keys(message.config); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.config[key[i]])) - return "config: string{k:string} expected"; - } - return null; - }; - - return TaskTemplate; - })(); - - core.ContainerPort = (function() { - - /** - * Properties of a ContainerPort. - * @memberof flyteidl.core - * @interface IContainerPort - * @property {number|null} [containerPort] ContainerPort containerPort - */ - - /** - * Constructs a new ContainerPort. - * @memberof flyteidl.core - * @classdesc Represents a ContainerPort. - * @implements IContainerPort - * @constructor - * @param {flyteidl.core.IContainerPort=} [properties] Properties to set - */ - function ContainerPort(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContainerPort containerPort. - * @member {number} containerPort - * @memberof flyteidl.core.ContainerPort - * @instance - */ - ContainerPort.prototype.containerPort = 0; - - /** - * Creates a new ContainerPort instance using the specified properties. - * @function create - * @memberof flyteidl.core.ContainerPort - * @static - * @param {flyteidl.core.IContainerPort=} [properties] Properties to set - * @returns {flyteidl.core.ContainerPort} ContainerPort instance - */ - ContainerPort.create = function create(properties) { - return new ContainerPort(properties); - }; - - /** - * Encodes the specified ContainerPort message. Does not implicitly {@link flyteidl.core.ContainerPort.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ContainerPort - * @static - * @param {flyteidl.core.IContainerPort} message ContainerPort message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerPort.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.containerPort); - return writer; - }; - - /** - * Decodes a ContainerPort message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ContainerPort - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ContainerPort} ContainerPort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerPort.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerPort(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.containerPort = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ContainerPort message. - * @function verify - * @memberof flyteidl.core.ContainerPort - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerPort.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - if (!$util.isInteger(message.containerPort)) - return "containerPort: integer expected"; - return null; - }; - - return ContainerPort; - })(); - - core.Container = (function() { - - /** - * Properties of a Container. - * @memberof flyteidl.core - * @interface IContainer - * @property {string|null} [image] Container image - * @property {Array.|null} [command] Container command - * @property {Array.|null} [args] Container args - * @property {flyteidl.core.IResources|null} [resources] Container resources - * @property {Array.|null} [env] Container env - * @property {Array.|null} [config] Container config - * @property {Array.|null} [ports] Container ports - * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] Container dataConfig - * @property {flyteidl.core.Container.Architecture|null} [architecture] Container architecture - */ - - /** - * Constructs a new Container. - * @memberof flyteidl.core - * @classdesc Represents a Container. - * @implements IContainer - * @constructor - * @param {flyteidl.core.IContainer=} [properties] Properties to set - */ - function Container(properties) { - this.command = []; - this.args = []; - this.env = []; - this.config = []; - this.ports = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Container image. - * @member {string} image - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.image = ""; - - /** - * Container command. - * @member {Array.} command - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.command = $util.emptyArray; - - /** - * Container args. - * @member {Array.} args - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.args = $util.emptyArray; - - /** - * Container resources. - * @member {flyteidl.core.IResources|null|undefined} resources - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.resources = null; - - /** - * Container env. - * @member {Array.} env - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.env = $util.emptyArray; - - /** - * Container config. - * @member {Array.} config - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.config = $util.emptyArray; - - /** - * Container ports. - * @member {Array.} ports - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.ports = $util.emptyArray; - - /** - * Container dataConfig. - * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.dataConfig = null; - - /** - * Container architecture. - * @member {flyteidl.core.Container.Architecture} architecture - * @memberof flyteidl.core.Container - * @instance - */ - Container.prototype.architecture = 0; - - /** - * Creates a new Container instance using the specified properties. - * @function create - * @memberof flyteidl.core.Container - * @static - * @param {flyteidl.core.IContainer=} [properties] Properties to set - * @returns {flyteidl.core.Container} Container instance - */ - Container.create = function create(properties) { - return new Container(properties); - }; - - /** - * Encodes the specified Container message. Does not implicitly {@link flyteidl.core.Container.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Container - * @static - * @param {flyteidl.core.IContainer} message Container message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Container.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.image != null && message.hasOwnProperty("image")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.image); - if (message.command != null && message.command.length) - for (var i = 0; i < message.command.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); - if (message.resources != null && message.hasOwnProperty("resources")) - $root.flyteidl.core.Resources.encode(message.resources, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.env != null && message.env.length) - for (var i = 0; i < message.env.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.config != null && message.config.length) - for (var i = 0; i < message.config.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.config[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.ports != null && message.ports.length) - for (var i = 0; i < message.ports.length; ++i) - $root.flyteidl.core.ContainerPort.encode(message.ports[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) - $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.architecture != null && message.hasOwnProperty("architecture")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.architecture); - return writer; - }; - - /** - * Decodes a Container message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Container - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Container} Container - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Container.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Container(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.image = reader.string(); - break; - case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); - break; - case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 4: - message.resources = $root.flyteidl.core.Resources.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.env && message.env.length)) - message.env = []; - message.env.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.config && message.config.length)) - message.config = []; - message.config.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push($root.flyteidl.core.ContainerPort.decode(reader, reader.uint32())); - break; - case 9: - message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); - break; - case 10: - message.architecture = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Container message. - * @function verify - * @memberof flyteidl.core.Container - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Container.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.image != null && message.hasOwnProperty("image")) - if (!$util.isString(message.image)) - return "image: string expected"; - if (message.command != null && message.hasOwnProperty("command")) { - if (!Array.isArray(message.command)) - return "command: array expected"; - for (var i = 0; i < message.command.length; ++i) - if (!$util.isString(message.command[i])) - return "command: string[] expected"; - } - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } - if (message.resources != null && message.hasOwnProperty("resources")) { - var error = $root.flyteidl.core.Resources.verify(message.resources); - if (error) - return "resources." + error; - } - if (message.env != null && message.hasOwnProperty("env")) { - if (!Array.isArray(message.env)) - return "env: array expected"; - for (var i = 0; i < message.env.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.env[i]); - if (error) - return "env." + error; - } - } - if (message.config != null && message.hasOwnProperty("config")) { - if (!Array.isArray(message.config)) - return "config: array expected"; - for (var i = 0; i < message.config.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.config[i]); - if (error) - return "config." + error; - } - } - if (message.ports != null && message.hasOwnProperty("ports")) { - if (!Array.isArray(message.ports)) - return "ports: array expected"; - for (var i = 0; i < message.ports.length; ++i) { - var error = $root.flyteidl.core.ContainerPort.verify(message.ports[i]); - if (error) - return "ports." + error; - } - } - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { - var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); - if (error) - return "dataConfig." + error; - } - if (message.architecture != null && message.hasOwnProperty("architecture")) - switch (message.architecture) { - default: - return "architecture: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - return null; - }; - - /** - * Architecture enum. - * @name flyteidl.core.Container.Architecture - * @enum {string} - * @property {number} UNKNOWN=0 UNKNOWN value - * @property {number} AMD64=1 AMD64 value - * @property {number} ARM64=2 ARM64 value - * @property {number} ARM_V6=3 ARM_V6 value - * @property {number} ARM_V7=4 ARM_V7 value - */ - Container.Architecture = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "AMD64"] = 1; - values[valuesById[2] = "ARM64"] = 2; - values[valuesById[3] = "ARM_V6"] = 3; - values[valuesById[4] = "ARM_V7"] = 4; - return values; - })(); - - return Container; - })(); - - core.IOStrategy = (function() { - - /** - * Properties of a IOStrategy. - * @memberof flyteidl.core - * @interface IIOStrategy - * @property {flyteidl.core.IOStrategy.DownloadMode|null} [downloadMode] IOStrategy downloadMode - * @property {flyteidl.core.IOStrategy.UploadMode|null} [uploadMode] IOStrategy uploadMode - */ - - /** - * Constructs a new IOStrategy. - * @memberof flyteidl.core - * @classdesc Represents a IOStrategy. - * @implements IIOStrategy - * @constructor - * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set - */ - function IOStrategy(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * IOStrategy downloadMode. - * @member {flyteidl.core.IOStrategy.DownloadMode} downloadMode - * @memberof flyteidl.core.IOStrategy - * @instance - */ - IOStrategy.prototype.downloadMode = 0; - - /** - * IOStrategy uploadMode. - * @member {flyteidl.core.IOStrategy.UploadMode} uploadMode - * @memberof flyteidl.core.IOStrategy - * @instance - */ - IOStrategy.prototype.uploadMode = 0; - - /** - * Creates a new IOStrategy instance using the specified properties. - * @function create - * @memberof flyteidl.core.IOStrategy - * @static - * @param {flyteidl.core.IIOStrategy=} [properties] Properties to set - * @returns {flyteidl.core.IOStrategy} IOStrategy instance - */ - IOStrategy.create = function create(properties) { - return new IOStrategy(properties); - }; - - /** - * Encodes the specified IOStrategy message. Does not implicitly {@link flyteidl.core.IOStrategy.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.IOStrategy - * @static - * @param {flyteidl.core.IIOStrategy} message IOStrategy message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IOStrategy.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.downloadMode); - if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.uploadMode); - return writer; - }; - - /** - * Decodes a IOStrategy message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.IOStrategy - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.IOStrategy} IOStrategy - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IOStrategy.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.IOStrategy(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.downloadMode = reader.int32(); - break; - case 2: - message.uploadMode = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a IOStrategy message. - * @function verify - * @memberof flyteidl.core.IOStrategy - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IOStrategy.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.downloadMode != null && message.hasOwnProperty("downloadMode")) - switch (message.downloadMode) { - default: - return "downloadMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.uploadMode != null && message.hasOwnProperty("uploadMode")) - switch (message.uploadMode) { - default: - return "uploadMode: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * DownloadMode enum. - * @name flyteidl.core.IOStrategy.DownloadMode - * @enum {string} - * @property {number} DOWNLOAD_EAGER=0 DOWNLOAD_EAGER value - * @property {number} DOWNLOAD_STREAM=1 DOWNLOAD_STREAM value - * @property {number} DO_NOT_DOWNLOAD=2 DO_NOT_DOWNLOAD value - */ - IOStrategy.DownloadMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DOWNLOAD_EAGER"] = 0; - values[valuesById[1] = "DOWNLOAD_STREAM"] = 1; - values[valuesById[2] = "DO_NOT_DOWNLOAD"] = 2; - return values; - })(); - - /** - * UploadMode enum. - * @name flyteidl.core.IOStrategy.UploadMode - * @enum {string} - * @property {number} UPLOAD_ON_EXIT=0 UPLOAD_ON_EXIT value - * @property {number} UPLOAD_EAGER=1 UPLOAD_EAGER value - * @property {number} DO_NOT_UPLOAD=2 DO_NOT_UPLOAD value - */ - IOStrategy.UploadMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UPLOAD_ON_EXIT"] = 0; - values[valuesById[1] = "UPLOAD_EAGER"] = 1; - values[valuesById[2] = "DO_NOT_UPLOAD"] = 2; - return values; - })(); - - return IOStrategy; - })(); - - core.DataLoadingConfig = (function() { - - /** - * Properties of a DataLoadingConfig. - * @memberof flyteidl.core - * @interface IDataLoadingConfig - * @property {boolean|null} [enabled] DataLoadingConfig enabled - * @property {string|null} [inputPath] DataLoadingConfig inputPath - * @property {string|null} [outputPath] DataLoadingConfig outputPath - * @property {flyteidl.core.DataLoadingConfig.LiteralMapFormat|null} [format] DataLoadingConfig format - * @property {flyteidl.core.IIOStrategy|null} [ioStrategy] DataLoadingConfig ioStrategy - */ - - /** - * Constructs a new DataLoadingConfig. - * @memberof flyteidl.core - * @classdesc Represents a DataLoadingConfig. - * @implements IDataLoadingConfig - * @constructor - * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set - */ - function DataLoadingConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DataLoadingConfig enabled. - * @member {boolean} enabled - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.enabled = false; - - /** - * DataLoadingConfig inputPath. - * @member {string} inputPath - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.inputPath = ""; - - /** - * DataLoadingConfig outputPath. - * @member {string} outputPath - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.outputPath = ""; - - /** - * DataLoadingConfig format. - * @member {flyteidl.core.DataLoadingConfig.LiteralMapFormat} format - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.format = 0; - - /** - * DataLoadingConfig ioStrategy. - * @member {flyteidl.core.IIOStrategy|null|undefined} ioStrategy - * @memberof flyteidl.core.DataLoadingConfig - * @instance - */ - DataLoadingConfig.prototype.ioStrategy = null; - - /** - * Creates a new DataLoadingConfig instance using the specified properties. - * @function create - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {flyteidl.core.IDataLoadingConfig=} [properties] Properties to set - * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig instance - */ - DataLoadingConfig.create = function create(properties) { - return new DataLoadingConfig(properties); - }; - - /** - * Encodes the specified DataLoadingConfig message. Does not implicitly {@link flyteidl.core.DataLoadingConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {flyteidl.core.IDataLoadingConfig} message DataLoadingConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DataLoadingConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enabled != null && message.hasOwnProperty("enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.inputPath != null && message.hasOwnProperty("inputPath")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputPath); - if (message.outputPath != null && message.hasOwnProperty("outputPath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPath); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.format); - if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) - $root.flyteidl.core.IOStrategy.encode(message.ioStrategy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DataLoadingConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.DataLoadingConfig} DataLoadingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DataLoadingConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DataLoadingConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.enabled = reader.bool(); - break; - case 2: - message.inputPath = reader.string(); - break; - case 3: - message.outputPath = reader.string(); - break; - case 4: - message.format = reader.int32(); - break; - case 5: - message.ioStrategy = $root.flyteidl.core.IOStrategy.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DataLoadingConfig message. - * @function verify - * @memberof flyteidl.core.DataLoadingConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DataLoadingConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.inputPath != null && message.hasOwnProperty("inputPath")) - if (!$util.isString(message.inputPath)) - return "inputPath: string expected"; - if (message.outputPath != null && message.hasOwnProperty("outputPath")) - if (!$util.isString(message.outputPath)) - return "outputPath: string expected"; - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.ioStrategy != null && message.hasOwnProperty("ioStrategy")) { - var error = $root.flyteidl.core.IOStrategy.verify(message.ioStrategy); - if (error) - return "ioStrategy." + error; - } - return null; - }; - - /** - * LiteralMapFormat enum. - * @name flyteidl.core.DataLoadingConfig.LiteralMapFormat - * @enum {string} - * @property {number} JSON=0 JSON value - * @property {number} YAML=1 YAML value - * @property {number} PROTO=2 PROTO value - */ - DataLoadingConfig.LiteralMapFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JSON"] = 0; - values[valuesById[1] = "YAML"] = 1; - values[valuesById[2] = "PROTO"] = 2; - return values; - })(); - - return DataLoadingConfig; - })(); - - core.K8sPod = (function() { - - /** - * Properties of a K8sPod. - * @memberof flyteidl.core - * @interface IK8sPod - * @property {flyteidl.core.IK8sObjectMetadata|null} [metadata] K8sPod metadata - * @property {google.protobuf.IStruct|null} [podSpec] K8sPod podSpec - * @property {flyteidl.core.IDataLoadingConfig|null} [dataConfig] K8sPod dataConfig - */ - - /** - * Constructs a new K8sPod. - * @memberof flyteidl.core - * @classdesc Represents a K8sPod. - * @implements IK8sPod - * @constructor - * @param {flyteidl.core.IK8sPod=} [properties] Properties to set - */ - function K8sPod(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * K8sPod metadata. - * @member {flyteidl.core.IK8sObjectMetadata|null|undefined} metadata - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.metadata = null; - - /** - * K8sPod podSpec. - * @member {google.protobuf.IStruct|null|undefined} podSpec - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.podSpec = null; - - /** - * K8sPod dataConfig. - * @member {flyteidl.core.IDataLoadingConfig|null|undefined} dataConfig - * @memberof flyteidl.core.K8sPod - * @instance - */ - K8sPod.prototype.dataConfig = null; - - /** - * Creates a new K8sPod instance using the specified properties. - * @function create - * @memberof flyteidl.core.K8sPod - * @static - * @param {flyteidl.core.IK8sPod=} [properties] Properties to set - * @returns {flyteidl.core.K8sPod} K8sPod instance - */ - K8sPod.create = function create(properties) { - return new K8sPod(properties); - }; - - /** - * Encodes the specified K8sPod message. Does not implicitly {@link flyteidl.core.K8sPod.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.K8sPod - * @static - * @param {flyteidl.core.IK8sPod} message K8sPod message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - K8sPod.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.core.K8sObjectMetadata.encode(message.metadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.podSpec != null && message.hasOwnProperty("podSpec")) - $root.google.protobuf.Struct.encode(message.podSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) - $root.flyteidl.core.DataLoadingConfig.encode(message.dataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a K8sPod message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.K8sPod - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.K8sPod} K8sPod - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - K8sPod.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sPod(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metadata = $root.flyteidl.core.K8sObjectMetadata.decode(reader, reader.uint32()); - break; - case 2: - message.podSpec = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 3: - message.dataConfig = $root.flyteidl.core.DataLoadingConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a K8sPod message. - * @function verify - * @memberof flyteidl.core.K8sPod - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - K8sPod.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.core.K8sObjectMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.podSpec != null && message.hasOwnProperty("podSpec")) { - var error = $root.google.protobuf.Struct.verify(message.podSpec); - if (error) - return "podSpec." + error; - } - if (message.dataConfig != null && message.hasOwnProperty("dataConfig")) { - var error = $root.flyteidl.core.DataLoadingConfig.verify(message.dataConfig); - if (error) - return "dataConfig." + error; - } - return null; - }; - - return K8sPod; - })(); - - core.K8sObjectMetadata = (function() { - - /** - * Properties of a K8sObjectMetadata. - * @memberof flyteidl.core - * @interface IK8sObjectMetadata - * @property {Object.|null} [labels] K8sObjectMetadata labels - * @property {Object.|null} [annotations] K8sObjectMetadata annotations - */ - - /** - * Constructs a new K8sObjectMetadata. - * @memberof flyteidl.core - * @classdesc Represents a K8sObjectMetadata. - * @implements IK8sObjectMetadata - * @constructor - * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set - */ - function K8sObjectMetadata(properties) { - this.labels = {}; - this.annotations = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * K8sObjectMetadata labels. - * @member {Object.} labels - * @memberof flyteidl.core.K8sObjectMetadata - * @instance - */ - K8sObjectMetadata.prototype.labels = $util.emptyObject; - - /** - * K8sObjectMetadata annotations. - * @member {Object.} annotations - * @memberof flyteidl.core.K8sObjectMetadata - * @instance - */ - K8sObjectMetadata.prototype.annotations = $util.emptyObject; - - /** - * Creates a new K8sObjectMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {flyteidl.core.IK8sObjectMetadata=} [properties] Properties to set - * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata instance - */ - K8sObjectMetadata.create = function create(properties) { - return new K8sObjectMetadata(properties); - }; - - /** - * Encodes the specified K8sObjectMetadata message. Does not implicitly {@link flyteidl.core.K8sObjectMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {flyteidl.core.IK8sObjectMetadata} message K8sObjectMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - K8sObjectMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.labels != null && message.hasOwnProperty("labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a K8sObjectMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.K8sObjectMetadata} K8sObjectMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - K8sObjectMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.K8sObjectMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.labels === $util.emptyObject) - message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); - break; - case 2: - reader.skip().pos++; - if (message.annotations === $util.emptyObject) - message.annotations = {}; - key = reader.string(); - reader.pos++; - message.annotations[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a K8sObjectMetadata message. - * @function verify - * @memberof flyteidl.core.K8sObjectMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - K8sObjectMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - if (!$util.isObject(message.annotations)) - return "annotations: object expected"; - var key = Object.keys(message.annotations); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.annotations[key[i]])) - return "annotations: string{k:string} expected"; - } - return null; - }; - - return K8sObjectMetadata; - })(); - - core.Sql = (function() { - - /** - * Properties of a Sql. - * @memberof flyteidl.core - * @interface ISql - * @property {string|null} [statement] Sql statement - * @property {flyteidl.core.Sql.Dialect|null} [dialect] Sql dialect - */ - - /** - * Constructs a new Sql. - * @memberof flyteidl.core - * @classdesc Represents a Sql. - * @implements ISql - * @constructor - * @param {flyteidl.core.ISql=} [properties] Properties to set - */ - function Sql(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Sql statement. - * @member {string} statement - * @memberof flyteidl.core.Sql - * @instance - */ - Sql.prototype.statement = ""; - - /** - * Sql dialect. - * @member {flyteidl.core.Sql.Dialect} dialect - * @memberof flyteidl.core.Sql - * @instance - */ - Sql.prototype.dialect = 0; - - /** - * Creates a new Sql instance using the specified properties. - * @function create - * @memberof flyteidl.core.Sql - * @static - * @param {flyteidl.core.ISql=} [properties] Properties to set - * @returns {flyteidl.core.Sql} Sql instance - */ - Sql.create = function create(properties) { - return new Sql(properties); - }; - - /** - * Encodes the specified Sql message. Does not implicitly {@link flyteidl.core.Sql.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Sql - * @static - * @param {flyteidl.core.ISql} message Sql message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sql.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.statement != null && message.hasOwnProperty("statement")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.statement); - if (message.dialect != null && message.hasOwnProperty("dialect")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dialect); - return writer; - }; - - /** - * Decodes a Sql message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Sql - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Sql} Sql - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sql.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Sql(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.statement = reader.string(); - break; - case 2: - message.dialect = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Sql message. - * @function verify - * @memberof flyteidl.core.Sql - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Sql.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.statement != null && message.hasOwnProperty("statement")) - if (!$util.isString(message.statement)) - return "statement: string expected"; - if (message.dialect != null && message.hasOwnProperty("dialect")) - switch (message.dialect) { - default: - return "dialect: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Dialect enum. - * @name flyteidl.core.Sql.Dialect - * @enum {string} - * @property {number} UNDEFINED=0 UNDEFINED value - * @property {number} ANSI=1 ANSI value - * @property {number} HIVE=2 HIVE value - * @property {number} OTHER=3 OTHER value - */ - Sql.Dialect = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "ANSI"] = 1; - values[valuesById[2] = "HIVE"] = 2; - values[valuesById[3] = "OTHER"] = 3; - return values; - })(); - - return Sql; - })(); - - core.Secret = (function() { - - /** - * Properties of a Secret. - * @memberof flyteidl.core - * @interface ISecret - * @property {string|null} [group] Secret group - * @property {string|null} [groupVersion] Secret groupVersion - * @property {string|null} [key] Secret key - * @property {flyteidl.core.Secret.MountType|null} [mountRequirement] Secret mountRequirement - */ - - /** - * Constructs a new Secret. - * @memberof flyteidl.core - * @classdesc Represents a Secret. - * @implements ISecret - * @constructor - * @param {flyteidl.core.ISecret=} [properties] Properties to set - */ - function Secret(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Secret group. - * @member {string} group - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.group = ""; - - /** - * Secret groupVersion. - * @member {string} groupVersion - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.groupVersion = ""; - - /** - * Secret key. - * @member {string} key - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.key = ""; - - /** - * Secret mountRequirement. - * @member {flyteidl.core.Secret.MountType} mountRequirement - * @memberof flyteidl.core.Secret - * @instance - */ - Secret.prototype.mountRequirement = 0; - - /** - * Creates a new Secret instance using the specified properties. - * @function create - * @memberof flyteidl.core.Secret - * @static - * @param {flyteidl.core.ISecret=} [properties] Properties to set - * @returns {flyteidl.core.Secret} Secret instance - */ - Secret.create = function create(properties) { - return new Secret(properties); - }; - - /** - * Encodes the specified Secret message. Does not implicitly {@link flyteidl.core.Secret.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Secret - * @static - * @param {flyteidl.core.ISecret} message Secret message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Secret.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.group != null && message.hasOwnProperty("group")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.group); - if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVersion); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.key); - if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.mountRequirement); - return writer; - }; - - /** - * Decodes a Secret message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Secret - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Secret} Secret - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Secret.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Secret(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.group = reader.string(); - break; - case 2: - message.groupVersion = reader.string(); - break; - case 3: - message.key = reader.string(); - break; - case 4: - message.mountRequirement = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Secret message. - * @function verify - * @memberof flyteidl.core.Secret - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Secret.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.group != null && message.hasOwnProperty("group")) - if (!$util.isString(message.group)) - return "group: string expected"; - if (message.groupVersion != null && message.hasOwnProperty("groupVersion")) - if (!$util.isString(message.groupVersion)) - return "groupVersion: string expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.mountRequirement != null && message.hasOwnProperty("mountRequirement")) - switch (message.mountRequirement) { - default: - return "mountRequirement: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * MountType enum. - * @name flyteidl.core.Secret.MountType - * @enum {string} - * @property {number} ANY=0 ANY value - * @property {number} ENV_VAR=1 ENV_VAR value - * @property {number} FILE=2 FILE value - */ - Secret.MountType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ANY"] = 0; - values[valuesById[1] = "ENV_VAR"] = 1; - values[valuesById[2] = "FILE"] = 2; - return values; - })(); - - return Secret; - })(); - - core.OAuth2Client = (function() { - - /** - * Properties of a OAuth2Client. - * @memberof flyteidl.core - * @interface IOAuth2Client - * @property {string|null} [clientId] OAuth2Client clientId - * @property {flyteidl.core.ISecret|null} [clientSecret] OAuth2Client clientSecret - */ - - /** - * Constructs a new OAuth2Client. - * @memberof flyteidl.core - * @classdesc Represents a OAuth2Client. - * @implements IOAuth2Client - * @constructor - * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set - */ - function OAuth2Client(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2Client clientId. - * @member {string} clientId - * @memberof flyteidl.core.OAuth2Client - * @instance - */ - OAuth2Client.prototype.clientId = ""; - - /** - * OAuth2Client clientSecret. - * @member {flyteidl.core.ISecret|null|undefined} clientSecret - * @memberof flyteidl.core.OAuth2Client - * @instance - */ - OAuth2Client.prototype.clientSecret = null; - - /** - * Creates a new OAuth2Client instance using the specified properties. - * @function create - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {flyteidl.core.IOAuth2Client=} [properties] Properties to set - * @returns {flyteidl.core.OAuth2Client} OAuth2Client instance - */ - OAuth2Client.create = function create(properties) { - return new OAuth2Client(properties); - }; - - /** - * Encodes the specified OAuth2Client message. Does not implicitly {@link flyteidl.core.OAuth2Client.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {flyteidl.core.IOAuth2Client} message OAuth2Client message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2Client.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientId != null && message.hasOwnProperty("clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); - if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) - $root.flyteidl.core.Secret.encode(message.clientSecret, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a OAuth2Client message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OAuth2Client} OAuth2Client - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2Client.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2Client(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.clientSecret = $root.flyteidl.core.Secret.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2Client message. - * @function verify - * @memberof flyteidl.core.OAuth2Client - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2Client.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.clientSecret != null && message.hasOwnProperty("clientSecret")) { - var error = $root.flyteidl.core.Secret.verify(message.clientSecret); - if (error) - return "clientSecret." + error; - } - return null; - }; - - return OAuth2Client; - })(); - - core.Identity = (function() { - - /** - * Properties of an Identity. - * @memberof flyteidl.core - * @interface IIdentity - * @property {string|null} [iamRole] Identity iamRole - * @property {string|null} [k8sServiceAccount] Identity k8sServiceAccount - * @property {flyteidl.core.IOAuth2Client|null} [oauth2Client] Identity oauth2Client - * @property {string|null} [executionIdentity] Identity executionIdentity - */ - - /** - * Constructs a new Identity. - * @memberof flyteidl.core - * @classdesc Represents an Identity. - * @implements IIdentity - * @constructor - * @param {flyteidl.core.IIdentity=} [properties] Properties to set - */ - function Identity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Identity iamRole. - * @member {string} iamRole - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.iamRole = ""; - - /** - * Identity k8sServiceAccount. - * @member {string} k8sServiceAccount - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.k8sServiceAccount = ""; - - /** - * Identity oauth2Client. - * @member {flyteidl.core.IOAuth2Client|null|undefined} oauth2Client - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.oauth2Client = null; - - /** - * Identity executionIdentity. - * @member {string} executionIdentity - * @memberof flyteidl.core.Identity - * @instance - */ - Identity.prototype.executionIdentity = ""; - - /** - * Creates a new Identity instance using the specified properties. - * @function create - * @memberof flyteidl.core.Identity - * @static - * @param {flyteidl.core.IIdentity=} [properties] Properties to set - * @returns {flyteidl.core.Identity} Identity instance - */ - Identity.create = function create(properties) { - return new Identity(properties); - }; - - /** - * Encodes the specified Identity message. Does not implicitly {@link flyteidl.core.Identity.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Identity - * @static - * @param {flyteidl.core.IIdentity} message Identity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Identity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.iamRole != null && message.hasOwnProperty("iamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.iamRole); - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.k8sServiceAccount); - if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) - $root.flyteidl.core.OAuth2Client.encode(message.oauth2Client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.executionIdentity); - return writer; - }; - - /** - * Decodes an Identity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Identity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Identity} Identity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Identity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Identity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.iamRole = reader.string(); - break; - case 2: - message.k8sServiceAccount = reader.string(); - break; - case 3: - message.oauth2Client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); - break; - case 4: - message.executionIdentity = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Identity message. - * @function verify - * @memberof flyteidl.core.Identity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Identity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.iamRole != null && message.hasOwnProperty("iamRole")) - if (!$util.isString(message.iamRole)) - return "iamRole: string expected"; - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - if (!$util.isString(message.k8sServiceAccount)) - return "k8sServiceAccount: string expected"; - if (message.oauth2Client != null && message.hasOwnProperty("oauth2Client")) { - var error = $root.flyteidl.core.OAuth2Client.verify(message.oauth2Client); - if (error) - return "oauth2Client." + error; - } - if (message.executionIdentity != null && message.hasOwnProperty("executionIdentity")) - if (!$util.isString(message.executionIdentity)) - return "executionIdentity: string expected"; - return null; - }; - - return Identity; - })(); - - core.OAuth2TokenRequest = (function() { - - /** - * Properties of a OAuth2TokenRequest. - * @memberof flyteidl.core - * @interface IOAuth2TokenRequest - * @property {string|null} [name] OAuth2TokenRequest name - * @property {flyteidl.core.OAuth2TokenRequest.Type|null} [type] OAuth2TokenRequest type - * @property {flyteidl.core.IOAuth2Client|null} [client] OAuth2TokenRequest client - * @property {string|null} [idpDiscoveryEndpoint] OAuth2TokenRequest idpDiscoveryEndpoint - * @property {string|null} [tokenEndpoint] OAuth2TokenRequest tokenEndpoint - */ - - /** - * Constructs a new OAuth2TokenRequest. - * @memberof flyteidl.core - * @classdesc Represents a OAuth2TokenRequest. - * @implements IOAuth2TokenRequest - * @constructor - * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set - */ - function OAuth2TokenRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2TokenRequest name. - * @member {string} name - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.name = ""; - - /** - * OAuth2TokenRequest type. - * @member {flyteidl.core.OAuth2TokenRequest.Type} type - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.type = 0; - - /** - * OAuth2TokenRequest client. - * @member {flyteidl.core.IOAuth2Client|null|undefined} client - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.client = null; - - /** - * OAuth2TokenRequest idpDiscoveryEndpoint. - * @member {string} idpDiscoveryEndpoint - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.idpDiscoveryEndpoint = ""; - - /** - * OAuth2TokenRequest tokenEndpoint. - * @member {string} tokenEndpoint - * @memberof flyteidl.core.OAuth2TokenRequest - * @instance - */ - OAuth2TokenRequest.prototype.tokenEndpoint = ""; - - /** - * Creates a new OAuth2TokenRequest instance using the specified properties. - * @function create - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {flyteidl.core.IOAuth2TokenRequest=} [properties] Properties to set - * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest instance - */ - OAuth2TokenRequest.create = function create(properties) { - return new OAuth2TokenRequest(properties); - }; - - /** - * Encodes the specified OAuth2TokenRequest message. Does not implicitly {@link flyteidl.core.OAuth2TokenRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {flyteidl.core.IOAuth2TokenRequest} message OAuth2TokenRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2TokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type); - if (message.client != null && message.hasOwnProperty("client")) - $root.flyteidl.core.OAuth2Client.encode(message.client, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.idpDiscoveryEndpoint); - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tokenEndpoint); - return writer; - }; - - /** - * Decodes a OAuth2TokenRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.OAuth2TokenRequest} OAuth2TokenRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2TokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.OAuth2TokenRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.type = reader.int32(); - break; - case 3: - message.client = $root.flyteidl.core.OAuth2Client.decode(reader, reader.uint32()); - break; - case 4: - message.idpDiscoveryEndpoint = reader.string(); - break; - case 5: - message.tokenEndpoint = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2TokenRequest message. - * @function verify - * @memberof flyteidl.core.OAuth2TokenRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2TokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - break; - } - if (message.client != null && message.hasOwnProperty("client")) { - var error = $root.flyteidl.core.OAuth2Client.verify(message.client); - if (error) - return "client." + error; - } - if (message.idpDiscoveryEndpoint != null && message.hasOwnProperty("idpDiscoveryEndpoint")) - if (!$util.isString(message.idpDiscoveryEndpoint)) - return "idpDiscoveryEndpoint: string expected"; - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - if (!$util.isString(message.tokenEndpoint)) - return "tokenEndpoint: string expected"; - return null; - }; - - /** - * Type enum. - * @name flyteidl.core.OAuth2TokenRequest.Type - * @enum {string} - * @property {number} CLIENT_CREDENTIALS=0 CLIENT_CREDENTIALS value - */ - OAuth2TokenRequest.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CLIENT_CREDENTIALS"] = 0; - return values; - })(); - - return OAuth2TokenRequest; - })(); - - core.SecurityContext = (function() { - - /** - * Properties of a SecurityContext. - * @memberof flyteidl.core - * @interface ISecurityContext - * @property {flyteidl.core.IIdentity|null} [runAs] SecurityContext runAs - * @property {Array.|null} [secrets] SecurityContext secrets - * @property {Array.|null} [tokens] SecurityContext tokens - */ - - /** - * Constructs a new SecurityContext. - * @memberof flyteidl.core - * @classdesc Represents a SecurityContext. - * @implements ISecurityContext - * @constructor - * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set - */ - function SecurityContext(properties) { - this.secrets = []; - this.tokens = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SecurityContext runAs. - * @member {flyteidl.core.IIdentity|null|undefined} runAs - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.runAs = null; - - /** - * SecurityContext secrets. - * @member {Array.} secrets - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.secrets = $util.emptyArray; - - /** - * SecurityContext tokens. - * @member {Array.} tokens - * @memberof flyteidl.core.SecurityContext - * @instance - */ - SecurityContext.prototype.tokens = $util.emptyArray; - - /** - * Creates a new SecurityContext instance using the specified properties. - * @function create - * @memberof flyteidl.core.SecurityContext - * @static - * @param {flyteidl.core.ISecurityContext=} [properties] Properties to set - * @returns {flyteidl.core.SecurityContext} SecurityContext instance - */ - SecurityContext.create = function create(properties) { - return new SecurityContext(properties); - }; - - /** - * Encodes the specified SecurityContext message. Does not implicitly {@link flyteidl.core.SecurityContext.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.SecurityContext - * @static - * @param {flyteidl.core.ISecurityContext} message SecurityContext message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SecurityContext.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.runAs != null && message.hasOwnProperty("runAs")) - $root.flyteidl.core.Identity.encode(message.runAs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.secrets != null && message.secrets.length) - for (var i = 0; i < message.secrets.length; ++i) - $root.flyteidl.core.Secret.encode(message.secrets[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.tokens != null && message.tokens.length) - for (var i = 0; i < message.tokens.length; ++i) - $root.flyteidl.core.OAuth2TokenRequest.encode(message.tokens[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SecurityContext message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.SecurityContext - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.SecurityContext} SecurityContext - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SecurityContext.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.SecurityContext(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.runAs = $root.flyteidl.core.Identity.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.secrets && message.secrets.length)) - message.secrets = []; - message.secrets.push($root.flyteidl.core.Secret.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.tokens && message.tokens.length)) - message.tokens = []; - message.tokens.push($root.flyteidl.core.OAuth2TokenRequest.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SecurityContext message. - * @function verify - * @memberof flyteidl.core.SecurityContext - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SecurityContext.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.runAs != null && message.hasOwnProperty("runAs")) { - var error = $root.flyteidl.core.Identity.verify(message.runAs); - if (error) - return "runAs." + error; - } - if (message.secrets != null && message.hasOwnProperty("secrets")) { - if (!Array.isArray(message.secrets)) - return "secrets: array expected"; - for (var i = 0; i < message.secrets.length; ++i) { - var error = $root.flyteidl.core.Secret.verify(message.secrets[i]); - if (error) - return "secrets." + error; - } - } - if (message.tokens != null && message.hasOwnProperty("tokens")) { - if (!Array.isArray(message.tokens)) - return "tokens: array expected"; - for (var i = 0; i < message.tokens.length; ++i) { - var error = $root.flyteidl.core.OAuth2TokenRequest.verify(message.tokens[i]); - if (error) - return "tokens." + error; - } - } - return null; - }; - - return SecurityContext; - })(); - - core.DynamicJobSpec = (function() { - - /** - * Properties of a DynamicJobSpec. - * @memberof flyteidl.core - * @interface IDynamicJobSpec - * @property {Array.|null} [nodes] DynamicJobSpec nodes - * @property {Long|null} [minSuccesses] DynamicJobSpec minSuccesses - * @property {Array.|null} [outputs] DynamicJobSpec outputs - * @property {Array.|null} [tasks] DynamicJobSpec tasks - * @property {Array.|null} [subworkflows] DynamicJobSpec subworkflows - */ - - /** - * Constructs a new DynamicJobSpec. - * @memberof flyteidl.core - * @classdesc Represents a DynamicJobSpec. - * @implements IDynamicJobSpec - * @constructor - * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set - */ - function DynamicJobSpec(properties) { - this.nodes = []; - this.outputs = []; - this.tasks = []; - this.subworkflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicJobSpec nodes. - * @member {Array.} nodes - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.nodes = $util.emptyArray; - - /** - * DynamicJobSpec minSuccesses. - * @member {Long} minSuccesses - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.minSuccesses = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * DynamicJobSpec outputs. - * @member {Array.} outputs - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.outputs = $util.emptyArray; - - /** - * DynamicJobSpec tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.tasks = $util.emptyArray; - - /** - * DynamicJobSpec subworkflows. - * @member {Array.} subworkflows - * @memberof flyteidl.core.DynamicJobSpec - * @instance - */ - DynamicJobSpec.prototype.subworkflows = $util.emptyArray; - - /** - * Creates a new DynamicJobSpec instance using the specified properties. - * @function create - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {flyteidl.core.IDynamicJobSpec=} [properties] Properties to set - * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec instance - */ - DynamicJobSpec.create = function create(properties) { - return new DynamicJobSpec(properties); - }; - - /** - * Encodes the specified DynamicJobSpec message. Does not implicitly {@link flyteidl.core.DynamicJobSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {flyteidl.core.IDynamicJobSpec} message DynamicJobSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicJobSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodes != null && message.nodes.length) - for (var i = 0; i < message.nodes.length; ++i) - $root.flyteidl.core.Node.encode(message.nodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minSuccesses); - if (message.outputs != null && message.outputs.length) - for (var i = 0; i < message.outputs.length; ++i) - $root.flyteidl.core.Binding.encode(message.outputs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.subworkflows != null && message.subworkflows.length) - for (var i = 0; i < message.subworkflows.length; ++i) - $root.flyteidl.core.WorkflowTemplate.encode(message.subworkflows[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DynamicJobSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.DynamicJobSpec} DynamicJobSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicJobSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.DynamicJobSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.nodes && message.nodes.length)) - message.nodes = []; - message.nodes.push($root.flyteidl.core.Node.decode(reader, reader.uint32())); - break; - case 2: - message.minSuccesses = reader.int64(); - break; - case 3: - if (!(message.outputs && message.outputs.length)) - message.outputs = []; - message.outputs.push($root.flyteidl.core.Binding.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.subworkflows && message.subworkflows.length)) - message.subworkflows = []; - message.subworkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicJobSpec message. - * @function verify - * @memberof flyteidl.core.DynamicJobSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicJobSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; - for (var i = 0; i < message.nodes.length; ++i) { - var error = $root.flyteidl.core.Node.verify(message.nodes[i]); - if (error) - return "nodes." + error; - } - } - if (message.minSuccesses != null && message.hasOwnProperty("minSuccesses")) - if (!$util.isInteger(message.minSuccesses) && !(message.minSuccesses && $util.isInteger(message.minSuccesses.low) && $util.isInteger(message.minSuccesses.high))) - return "minSuccesses: integer|Long expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - if (!Array.isArray(message.outputs)) - return "outputs: array expected"; - for (var i = 0; i < message.outputs.length; ++i) { - var error = $root.flyteidl.core.Binding.verify(message.outputs[i]); - if (error) - return "outputs." + error; - } - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - if (message.subworkflows != null && message.hasOwnProperty("subworkflows")) { - if (!Array.isArray(message.subworkflows)) - return "subworkflows: array expected"; - for (var i = 0; i < message.subworkflows.length; ++i) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subworkflows[i]); - if (error) - return "subworkflows." + error; - } - } - return null; - }; - - return DynamicJobSpec; - })(); - - core.ContainerError = (function() { - - /** - * Properties of a ContainerError. - * @memberof flyteidl.core - * @interface IContainerError - * @property {string|null} [code] ContainerError code - * @property {string|null} [message] ContainerError message - * @property {flyteidl.core.ContainerError.Kind|null} [kind] ContainerError kind - * @property {flyteidl.core.ExecutionError.ErrorKind|null} [origin] ContainerError origin - */ - - /** - * Constructs a new ContainerError. - * @memberof flyteidl.core - * @classdesc Represents a ContainerError. - * @implements IContainerError - * @constructor - * @param {flyteidl.core.IContainerError=} [properties] Properties to set - */ - function ContainerError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContainerError code. - * @member {string} code - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.code = ""; - - /** - * ContainerError message. - * @member {string} message - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.message = ""; - - /** - * ContainerError kind. - * @member {flyteidl.core.ContainerError.Kind} kind - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.kind = 0; - - /** - * ContainerError origin. - * @member {flyteidl.core.ExecutionError.ErrorKind} origin - * @memberof flyteidl.core.ContainerError - * @instance - */ - ContainerError.prototype.origin = 0; - - /** - * Creates a new ContainerError instance using the specified properties. - * @function create - * @memberof flyteidl.core.ContainerError - * @static - * @param {flyteidl.core.IContainerError=} [properties] Properties to set - * @returns {flyteidl.core.ContainerError} ContainerError instance - */ - ContainerError.create = function create(properties) { - return new ContainerError(properties); - }; - - /** - * Encodes the specified ContainerError message. Does not implicitly {@link flyteidl.core.ContainerError.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ContainerError - * @static - * @param {flyteidl.core.IContainerError} message ContainerError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContainerError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && message.hasOwnProperty("code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.kind); - if (message.origin != null && message.hasOwnProperty("origin")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.origin); - return writer; - }; - - /** - * Decodes a ContainerError message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ContainerError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ContainerError} ContainerError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContainerError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ContainerError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.code = reader.string(); - break; - case 2: - message.message = reader.string(); - break; - case 3: - message.kind = reader.int32(); - break; - case 4: - message.origin = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ContainerError message. - * @function verify - * @memberof flyteidl.core.ContainerError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContainerError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - switch (message.kind) { - default: - return "kind: enum value expected"; - case 0: - case 1: - break; - } - if (message.origin != null && message.hasOwnProperty("origin")) - switch (message.origin) { - default: - return "origin: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * Kind enum. - * @name flyteidl.core.ContainerError.Kind - * @enum {string} - * @property {number} NON_RECOVERABLE=0 NON_RECOVERABLE value - * @property {number} RECOVERABLE=1 RECOVERABLE value - */ - ContainerError.Kind = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NON_RECOVERABLE"] = 0; - values[valuesById[1] = "RECOVERABLE"] = 1; - return values; - })(); - - return ContainerError; - })(); - - core.ErrorDocument = (function() { - - /** - * Properties of an ErrorDocument. - * @memberof flyteidl.core - * @interface IErrorDocument - * @property {flyteidl.core.IContainerError|null} [error] ErrorDocument error - */ - - /** - * Constructs a new ErrorDocument. - * @memberof flyteidl.core - * @classdesc Represents an ErrorDocument. - * @implements IErrorDocument - * @constructor - * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set - */ - function ErrorDocument(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ErrorDocument error. - * @member {flyteidl.core.IContainerError|null|undefined} error - * @memberof flyteidl.core.ErrorDocument - * @instance - */ - ErrorDocument.prototype.error = null; - - /** - * Creates a new ErrorDocument instance using the specified properties. - * @function create - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {flyteidl.core.IErrorDocument=} [properties] Properties to set - * @returns {flyteidl.core.ErrorDocument} ErrorDocument instance - */ - ErrorDocument.create = function create(properties) { - return new ErrorDocument(properties); - }; - - /** - * Encodes the specified ErrorDocument message. Does not implicitly {@link flyteidl.core.ErrorDocument.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {flyteidl.core.IErrorDocument} message ErrorDocument message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ErrorDocument.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ContainerError.encode(message.error, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ErrorDocument message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.ErrorDocument} ErrorDocument - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ErrorDocument.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.ErrorDocument(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.error = $root.flyteidl.core.ContainerError.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ErrorDocument message. - * @function verify - * @memberof flyteidl.core.ErrorDocument - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ErrorDocument.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.flyteidl.core.ContainerError.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - return ErrorDocument; - })(); - - core.Span = (function() { - - /** - * Properties of a Span. - * @memberof flyteidl.core - * @interface ISpan - * @property {google.protobuf.ITimestamp|null} [startTime] Span startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Span endTime - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowId] Span workflowId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeId] Span nodeId - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskId] Span taskId - * @property {string|null} [operationId] Span operationId - * @property {Array.|null} [spans] Span spans - */ - - /** - * Constructs a new Span. - * @memberof flyteidl.core - * @classdesc Represents a Span. - * @implements ISpan - * @constructor - * @param {flyteidl.core.ISpan=} [properties] Properties to set - */ - function Span(properties) { - this.spans = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Span startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.startTime = null; - - /** - * Span endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.endTime = null; - - /** - * Span workflowId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.workflowId = null; - - /** - * Span nodeId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.nodeId = null; - - /** - * Span taskId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.taskId = null; - - /** - * Span operationId. - * @member {string} operationId - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.operationId = ""; - - /** - * Span spans. - * @member {Array.} spans - * @memberof flyteidl.core.Span - * @instance - */ - Span.prototype.spans = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Span id. - * @member {"workflowId"|"nodeId"|"taskId"|"operationId"|undefined} id - * @memberof flyteidl.core.Span - * @instance - */ - Object.defineProperty(Span.prototype, "id", { - get: $util.oneOfGetter($oneOfFields = ["workflowId", "nodeId", "taskId", "operationId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Span instance using the specified properties. - * @function create - * @memberof flyteidl.core.Span - * @static - * @param {flyteidl.core.ISpan=} [properties] Properties to set - * @returns {flyteidl.core.Span} Span instance - */ - Span.create = function create(properties) { - return new Span(properties); - }; - - /** - * Encodes the specified Span message. Does not implicitly {@link flyteidl.core.Span.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.Span - * @static - * @param {flyteidl.core.ISpan} message Span message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Span.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startTime != null && message.hasOwnProperty("startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.endTime != null && message.hasOwnProperty("endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeId, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskId, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.operationId != null && message.hasOwnProperty("operationId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.operationId); - if (message.spans != null && message.spans.length) - for (var i = 0; i < message.spans.length; ++i) - $root.flyteidl.core.Span.encode(message.spans[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Span message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.Span - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.Span} Span - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Span.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.Span(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.workflowId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 4: - message.nodeId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 5: - message.taskId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 6: - message.operationId = reader.string(); - break; - case 7: - if (!(message.spans && message.spans.length)) - message.spans = []; - message.spans.push($root.flyteidl.core.Span.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Span message. - * @function verify - * @memberof flyteidl.core.Span - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Span.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - properties.id = 1; - { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeId); - if (error) - return "nodeId." + error; - } - } - if (message.taskId != null && message.hasOwnProperty("taskId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - } - if (message.operationId != null && message.hasOwnProperty("operationId")) { - if (properties.id === 1) - return "id: multiple values"; - properties.id = 1; - if (!$util.isString(message.operationId)) - return "operationId: string expected"; - } - if (message.spans != null && message.hasOwnProperty("spans")) { - if (!Array.isArray(message.spans)) - return "spans: array expected"; - for (var i = 0; i < message.spans.length; ++i) { - var error = $root.flyteidl.core.Span.verify(message.spans[i]); - if (error) - return "spans." + error; - } - } - return null; - }; - - return Span; - })(); - - core.WorkflowClosure = (function() { - - /** - * Properties of a WorkflowClosure. - * @memberof flyteidl.core - * @interface IWorkflowClosure - * @property {flyteidl.core.IWorkflowTemplate|null} [workflow] WorkflowClosure workflow - * @property {Array.|null} [tasks] WorkflowClosure tasks - */ - - /** - * Constructs a new WorkflowClosure. - * @memberof flyteidl.core - * @classdesc Represents a WorkflowClosure. - * @implements IWorkflowClosure - * @constructor - * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set - */ - function WorkflowClosure(properties) { - this.tasks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowClosure workflow. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} workflow - * @memberof flyteidl.core.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.workflow = null; - - /** - * WorkflowClosure tasks. - * @member {Array.} tasks - * @memberof flyteidl.core.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.tasks = $util.emptyArray; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {flyteidl.core.IWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure instance - */ - WorkflowClosure.create = function create(properties) { - return new WorkflowClosure(properties); - }; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.core.WorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {flyteidl.core.IWorkflowClosure} message WorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflow != null && message.hasOwnProperty("workflow")) - $root.flyteidl.core.WorkflowTemplate.encode(message.workflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.core.TaskTemplate.encode(message.tasks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.core.WorkflowClosure} WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.core.WorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflow = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowClosure message. - * @function verify - * @memberof flyteidl.core.WorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.workflow); - if (error) - return "workflow." + error; - } - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - return null; - }; - - return WorkflowClosure; - })(); - - return core; - })(); - - flyteidl.event = (function() { - - /** - * Namespace event. - * @memberof flyteidl - * @namespace - */ - var event = {}; - - event.CloudEventWorkflowExecution = (function() { - - /** - * Properties of a CloudEventWorkflowExecution. - * @memberof flyteidl.event - * @interface ICloudEventWorkflowExecution - * @property {flyteidl.event.IWorkflowExecutionEvent|null} [rawEvent] CloudEventWorkflowExecution rawEvent - * @property {flyteidl.core.ILiteralMap|null} [outputData] CloudEventWorkflowExecution outputData - * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventWorkflowExecution outputInterface - * @property {flyteidl.core.ILiteralMap|null} [inputData] CloudEventWorkflowExecution inputData - * @property {Array.|null} [artifactIds] CloudEventWorkflowExecution artifactIds - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] CloudEventWorkflowExecution referenceExecution - * @property {string|null} [principal] CloudEventWorkflowExecution principal - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventWorkflowExecution launchPlanId - */ - - /** - * Constructs a new CloudEventWorkflowExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventWorkflowExecution. - * @implements ICloudEventWorkflowExecution - * @constructor - * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set - */ - function CloudEventWorkflowExecution(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventWorkflowExecution rawEvent. - * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.rawEvent = null; - - /** - * CloudEventWorkflowExecution outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.outputData = null; - - /** - * CloudEventWorkflowExecution outputInterface. - * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.outputInterface = null; - - /** - * CloudEventWorkflowExecution inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.inputData = null; - - /** - * CloudEventWorkflowExecution artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventWorkflowExecution referenceExecution. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.referenceExecution = null; - - /** - * CloudEventWorkflowExecution principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.principal = ""; - - /** - * CloudEventWorkflowExecution launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @instance - */ - CloudEventWorkflowExecution.prototype.launchPlanId = null; - - /** - * Creates a new CloudEventWorkflowExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {flyteidl.event.ICloudEventWorkflowExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution instance - */ - CloudEventWorkflowExecution.create = function create(properties) { - return new CloudEventWorkflowExecution(properties); - }; - - /** - * Encodes the specified CloudEventWorkflowExecution message. Does not implicitly {@link flyteidl.event.CloudEventWorkflowExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {flyteidl.event.ICloudEventWorkflowExecution} message CloudEventWorkflowExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventWorkflowExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.WorkflowExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) - $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.principal); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventWorkflowExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventWorkflowExecution} CloudEventWorkflowExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventWorkflowExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventWorkflowExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 4: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 6: - message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 7: - message.principal = reader.string(); - break; - case 8: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventWorkflowExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventWorkflowExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventWorkflowExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); - if (error) - return "outputInterface." + error; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); - if (error) - return "referenceExecution." + error; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - return null; - }; - - return CloudEventWorkflowExecution; - })(); - - event.CloudEventNodeExecution = (function() { - - /** - * Properties of a CloudEventNodeExecution. - * @memberof flyteidl.event - * @interface ICloudEventNodeExecution - * @property {flyteidl.event.INodeExecutionEvent|null} [rawEvent] CloudEventNodeExecution rawEvent - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecId] CloudEventNodeExecution taskExecId - * @property {flyteidl.core.ILiteralMap|null} [outputData] CloudEventNodeExecution outputData - * @property {flyteidl.core.ITypedInterface|null} [outputInterface] CloudEventNodeExecution outputInterface - * @property {flyteidl.core.ILiteralMap|null} [inputData] CloudEventNodeExecution inputData - * @property {Array.|null} [artifactIds] CloudEventNodeExecution artifactIds - * @property {string|null} [principal] CloudEventNodeExecution principal - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventNodeExecution launchPlanId - */ - - /** - * Constructs a new CloudEventNodeExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventNodeExecution. - * @implements ICloudEventNodeExecution - * @constructor - * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set - */ - function CloudEventNodeExecution(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventNodeExecution rawEvent. - * @member {flyteidl.event.INodeExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.rawEvent = null; - - /** - * CloudEventNodeExecution taskExecId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecId - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.taskExecId = null; - - /** - * CloudEventNodeExecution outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.outputData = null; - - /** - * CloudEventNodeExecution outputInterface. - * @member {flyteidl.core.ITypedInterface|null|undefined} outputInterface - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.outputInterface = null; - - /** - * CloudEventNodeExecution inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.inputData = null; - - /** - * CloudEventNodeExecution artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventNodeExecution principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.principal = ""; - - /** - * CloudEventNodeExecution launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventNodeExecution - * @instance - */ - CloudEventNodeExecution.prototype.launchPlanId = null; - - /** - * Creates a new CloudEventNodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {flyteidl.event.ICloudEventNodeExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution instance - */ - CloudEventNodeExecution.create = function create(properties) { - return new CloudEventNodeExecution(properties); - }; - - /** - * Encodes the specified CloudEventNodeExecution message. Does not implicitly {@link flyteidl.event.CloudEventNodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {flyteidl.event.ICloudEventNodeExecution} message CloudEventNodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventNodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.NodeExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) - $root.flyteidl.core.TypedInterface.encode(message.outputInterface, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.principal); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventNodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventNodeExecution} CloudEventNodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventNodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventNodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); - break; - case 2: - message.taskExecId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.outputInterface = $root.flyteidl.core.TypedInterface.decode(reader, reader.uint32()); - break; - case 5: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 6: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 7: - message.principal = reader.string(); - break; - case 8: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventNodeExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventNodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventNodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - if (message.taskExecId != null && message.hasOwnProperty("taskExecId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecId); - if (error) - return "taskExecId." + error; - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - if (message.outputInterface != null && message.hasOwnProperty("outputInterface")) { - var error = $root.flyteidl.core.TypedInterface.verify(message.outputInterface); - if (error) - return "outputInterface." + error; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - return null; - }; - - return CloudEventNodeExecution; - })(); - - event.CloudEventTaskExecution = (function() { - - /** - * Properties of a CloudEventTaskExecution. - * @memberof flyteidl.event - * @interface ICloudEventTaskExecution - * @property {flyteidl.event.ITaskExecutionEvent|null} [rawEvent] CloudEventTaskExecution rawEvent - */ - - /** - * Constructs a new CloudEventTaskExecution. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventTaskExecution. - * @implements ICloudEventTaskExecution - * @constructor - * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set - */ - function CloudEventTaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventTaskExecution rawEvent. - * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} rawEvent - * @memberof flyteidl.event.CloudEventTaskExecution - * @instance - */ - CloudEventTaskExecution.prototype.rawEvent = null; - - /** - * Creates a new CloudEventTaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {flyteidl.event.ICloudEventTaskExecution=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution instance - */ - CloudEventTaskExecution.create = function create(properties) { - return new CloudEventTaskExecution(properties); - }; - - /** - * Encodes the specified CloudEventTaskExecution message. Does not implicitly {@link flyteidl.event.CloudEventTaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {flyteidl.event.ICloudEventTaskExecution} message CloudEventTaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventTaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) - $root.flyteidl.event.TaskExecutionEvent.encode(message.rawEvent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CloudEventTaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventTaskExecution} CloudEventTaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventTaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventTaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.rawEvent = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventTaskExecution message. - * @function verify - * @memberof flyteidl.event.CloudEventTaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventTaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rawEvent != null && message.hasOwnProperty("rawEvent")) { - var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.rawEvent); - if (error) - return "rawEvent." + error; - } - return null; - }; - - return CloudEventTaskExecution; - })(); - - event.CloudEventExecutionStart = (function() { - - /** - * Properties of a CloudEventExecutionStart. - * @memberof flyteidl.event - * @interface ICloudEventExecutionStart - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] CloudEventExecutionStart executionId - * @property {flyteidl.core.IIdentifier|null} [launchPlanId] CloudEventExecutionStart launchPlanId - * @property {flyteidl.core.IIdentifier|null} [workflowId] CloudEventExecutionStart workflowId - * @property {Array.|null} [artifactIds] CloudEventExecutionStart artifactIds - * @property {Array.|null} [artifactKeys] CloudEventExecutionStart artifactKeys - * @property {string|null} [principal] CloudEventExecutionStart principal - */ - - /** - * Constructs a new CloudEventExecutionStart. - * @memberof flyteidl.event - * @classdesc Represents a CloudEventExecutionStart. - * @implements ICloudEventExecutionStart - * @constructor - * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set - */ - function CloudEventExecutionStart(properties) { - this.artifactIds = []; - this.artifactKeys = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CloudEventExecutionStart executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.executionId = null; - - /** - * CloudEventExecutionStart launchPlanId. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlanId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.launchPlanId = null; - - /** - * CloudEventExecutionStart workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.workflowId = null; - - /** - * CloudEventExecutionStart artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.artifactIds = $util.emptyArray; - - /** - * CloudEventExecutionStart artifactKeys. - * @member {Array.} artifactKeys - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.artifactKeys = $util.emptyArray; - - /** - * CloudEventExecutionStart principal. - * @member {string} principal - * @memberof flyteidl.event.CloudEventExecutionStart - * @instance - */ - CloudEventExecutionStart.prototype.principal = ""; - - /** - * Creates a new CloudEventExecutionStart instance using the specified properties. - * @function create - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {flyteidl.event.ICloudEventExecutionStart=} [properties] Properties to set - * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart instance - */ - CloudEventExecutionStart.create = function create(properties) { - return new CloudEventExecutionStart(properties); - }; - - /** - * Encodes the specified CloudEventExecutionStart message. Does not implicitly {@link flyteidl.event.CloudEventExecutionStart.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {flyteidl.event.ICloudEventExecutionStart} message CloudEventExecutionStart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CloudEventExecutionStart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) - $root.flyteidl.core.Identifier.encode(message.launchPlanId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.artifactKeys != null && message.artifactKeys.length) - for (var i = 0; i < message.artifactKeys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.artifactKeys[i]); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.principal); - return writer; - }; - - /** - * Decodes a CloudEventExecutionStart message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.CloudEventExecutionStart} CloudEventExecutionStart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CloudEventExecutionStart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.CloudEventExecutionStart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.launchPlanId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 3: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 4: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.artifactKeys && message.artifactKeys.length)) - message.artifactKeys = []; - message.artifactKeys.push(reader.string()); - break; - case 6: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CloudEventExecutionStart message. - * @function verify - * @memberof flyteidl.event.CloudEventExecutionStart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CloudEventExecutionStart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - if (message.launchPlanId != null && message.hasOwnProperty("launchPlanId")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlanId); - if (error) - return "launchPlanId." + error; - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - if (message.artifactKeys != null && message.hasOwnProperty("artifactKeys")) { - if (!Array.isArray(message.artifactKeys)) - return "artifactKeys: array expected"; - for (var i = 0; i < message.artifactKeys.length; ++i) - if (!$util.isString(message.artifactKeys[i])) - return "artifactKeys: string[] expected"; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return CloudEventExecutionStart; - })(); - - event.WorkflowExecutionEvent = (function() { - - /** - * Properties of a WorkflowExecutionEvent. - * @memberof flyteidl.event - * @interface IWorkflowExecutionEvent - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowExecutionEvent executionId - * @property {string|null} [producerId] WorkflowExecutionEvent producerId - * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] WorkflowExecutionEvent phase - * @property {google.protobuf.ITimestamp|null} [occurredAt] WorkflowExecutionEvent occurredAt - * @property {string|null} [outputUri] WorkflowExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] WorkflowExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] WorkflowExecutionEvent outputData - */ - - /** - * Constructs a new WorkflowExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a WorkflowExecutionEvent. - * @implements IWorkflowExecutionEvent - * @constructor - * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set - */ - function WorkflowExecutionEvent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionEvent executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.executionId = null; - - /** - * WorkflowExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.producerId = ""; - - /** - * WorkflowExecutionEvent phase. - * @member {flyteidl.core.WorkflowExecution.Phase} phase - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.phase = 0; - - /** - * WorkflowExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.occurredAt = null; - - /** - * WorkflowExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.outputUri = ""; - - /** - * WorkflowExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.error = null; - - /** - * WorkflowExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - WorkflowExecutionEvent.prototype.outputData = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * WorkflowExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.WorkflowExecutionEvent - * @instance - */ - Object.defineProperty(WorkflowExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new WorkflowExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {flyteidl.event.IWorkflowExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent instance - */ - WorkflowExecutionEvent.create = function create(properties) { - return new WorkflowExecutionEvent(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEvent message. Does not implicitly {@link flyteidl.event.WorkflowExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {flyteidl.event.IWorkflowExecutionEvent} message WorkflowExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.WorkflowExecutionEvent} WorkflowExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.producerId = reader.string(); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.outputUri = reader.string(); - break; - case 6: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 7: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEvent message. - * @function verify - * @memberof flyteidl.event.WorkflowExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - return null; - }; - - return WorkflowExecutionEvent; - })(); - - event.NodeExecutionEvent = (function() { - - /** - * Properties of a NodeExecutionEvent. - * @memberof flyteidl.event - * @interface INodeExecutionEvent - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionEvent id - * @property {string|null} [producerId] NodeExecutionEvent producerId - * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionEvent phase - * @property {google.protobuf.ITimestamp|null} [occurredAt] NodeExecutionEvent occurredAt - * @property {string|null} [inputUri] NodeExecutionEvent inputUri - * @property {flyteidl.core.ILiteralMap|null} [inputData] NodeExecutionEvent inputData - * @property {string|null} [outputUri] NodeExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionEvent outputData - * @property {flyteidl.event.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionEvent workflowNodeMetadata - * @property {flyteidl.event.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionEvent taskNodeMetadata - * @property {flyteidl.event.IParentTaskExecutionMetadata|null} [parentTaskMetadata] NodeExecutionEvent parentTaskMetadata - * @property {flyteidl.event.IParentNodeExecutionMetadata|null} [parentNodeMetadata] NodeExecutionEvent parentNodeMetadata - * @property {string|null} [retryGroup] NodeExecutionEvent retryGroup - * @property {string|null} [specNodeId] NodeExecutionEvent specNodeId - * @property {string|null} [nodeName] NodeExecutionEvent nodeName - * @property {number|null} [eventVersion] NodeExecutionEvent eventVersion - * @property {boolean|null} [isParent] NodeExecutionEvent isParent - * @property {boolean|null} [isDynamic] NodeExecutionEvent isDynamic - * @property {string|null} [deckUri] NodeExecutionEvent deckUri - * @property {google.protobuf.ITimestamp|null} [reportedAt] NodeExecutionEvent reportedAt - * @property {boolean|null} [isArray] NodeExecutionEvent isArray - */ - - /** - * Constructs a new NodeExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a NodeExecutionEvent. - * @implements INodeExecutionEvent - * @constructor - * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set - */ - function NodeExecutionEvent(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionEvent id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.id = null; - - /** - * NodeExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.producerId = ""; - - /** - * NodeExecutionEvent phase. - * @member {flyteidl.core.NodeExecution.Phase} phase - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.phase = 0; - - /** - * NodeExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.occurredAt = null; - - /** - * NodeExecutionEvent inputUri. - * @member {string} inputUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.inputUri = ""; - - /** - * NodeExecutionEvent inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.inputData = null; - - /** - * NodeExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.outputUri = ""; - - /** - * NodeExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.error = null; - - /** - * NodeExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.outputData = null; - - /** - * NodeExecutionEvent workflowNodeMetadata. - * @member {flyteidl.event.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.workflowNodeMetadata = null; - - /** - * NodeExecutionEvent taskNodeMetadata. - * @member {flyteidl.event.ITaskNodeMetadata|null|undefined} taskNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.taskNodeMetadata = null; - - /** - * NodeExecutionEvent parentTaskMetadata. - * @member {flyteidl.event.IParentTaskExecutionMetadata|null|undefined} parentTaskMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.parentTaskMetadata = null; - - /** - * NodeExecutionEvent parentNodeMetadata. - * @member {flyteidl.event.IParentNodeExecutionMetadata|null|undefined} parentNodeMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.parentNodeMetadata = null; - - /** - * NodeExecutionEvent retryGroup. - * @member {string} retryGroup - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.retryGroup = ""; - - /** - * NodeExecutionEvent specNodeId. - * @member {string} specNodeId - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.specNodeId = ""; - - /** - * NodeExecutionEvent nodeName. - * @member {string} nodeName - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.nodeName = ""; - - /** - * NodeExecutionEvent eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.eventVersion = 0; - - /** - * NodeExecutionEvent isParent. - * @member {boolean} isParent - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isParent = false; - - /** - * NodeExecutionEvent isDynamic. - * @member {boolean} isDynamic - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isDynamic = false; - - /** - * NodeExecutionEvent deckUri. - * @member {string} deckUri - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.deckUri = ""; - - /** - * NodeExecutionEvent reportedAt. - * @member {google.protobuf.ITimestamp|null|undefined} reportedAt - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.reportedAt = null; - - /** - * NodeExecutionEvent isArray. - * @member {boolean} isArray - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - NodeExecutionEvent.prototype.isArray = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeExecutionEvent inputValue. - * @member {"inputUri"|"inputData"|undefined} inputValue - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "inputValue", { - get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionEvent targetMetadata. - * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata - * @memberof flyteidl.event.NodeExecutionEvent - * @instance - */ - Object.defineProperty(NodeExecutionEvent.prototype, "targetMetadata", { - get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {flyteidl.event.INodeExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent instance - */ - NodeExecutionEvent.create = function create(properties) { - return new NodeExecutionEvent(properties); - }; - - /** - * Encodes the specified NodeExecutionEvent message. Does not implicitly {@link flyteidl.event.NodeExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {flyteidl.event.INodeExecutionEvent} message NodeExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.producerId); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.inputUri); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) - $root.flyteidl.event.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) - $root.flyteidl.event.ParentTaskExecutionMetadata.encode(message.parentTaskMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) - $root.flyteidl.event.ParentNodeExecutionMetadata.encode(message.parentNodeMetadata, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.retryGroup); - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.specNodeId); - if (message.nodeName != null && message.hasOwnProperty("nodeName")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.nodeName); - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) - $root.flyteidl.event.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.eventVersion); - if (message.isParent != null && message.hasOwnProperty("isParent")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.isParent); - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.isDynamic); - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.deckUri); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) - $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.isArray != null && message.hasOwnProperty("isArray")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.isArray); - return writer; - }; - - /** - * Decodes a NodeExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.NodeExecutionEvent} NodeExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.NodeExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.producerId = reader.string(); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.inputUri = reader.string(); - break; - case 20: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 6: - message.outputUri = reader.string(); - break; - case 7: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 15: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 8: - message.workflowNodeMetadata = $root.flyteidl.event.WorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 14: - message.taskNodeMetadata = $root.flyteidl.event.TaskNodeMetadata.decode(reader, reader.uint32()); - break; - case 9: - message.parentTaskMetadata = $root.flyteidl.event.ParentTaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 10: - message.parentNodeMetadata = $root.flyteidl.event.ParentNodeExecutionMetadata.decode(reader, reader.uint32()); - break; - case 11: - message.retryGroup = reader.string(); - break; - case 12: - message.specNodeId = reader.string(); - break; - case 13: - message.nodeName = reader.string(); - break; - case 16: - message.eventVersion = reader.int32(); - break; - case 17: - message.isParent = reader.bool(); - break; - case 18: - message.isDynamic = reader.bool(); - break; - case 19: - message.deckUri = reader.string(); - break; - case 21: - message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 22: - message.isArray = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEvent message. - * @function verify - * @memberof flyteidl.event.NodeExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) { - properties.inputValue = 1; - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - if (properties.inputValue === 1) - return "inputValue: multiple values"; - properties.inputValue = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { - properties.targetMetadata = 1; - { - var error = $root.flyteidl.event.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); - if (error) - return "workflowNodeMetadata." + error; - } - } - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { - if (properties.targetMetadata === 1) - return "targetMetadata: multiple values"; - properties.targetMetadata = 1; - { - var error = $root.flyteidl.event.TaskNodeMetadata.verify(message.taskNodeMetadata); - if (error) - return "taskNodeMetadata." + error; - } - } - if (message.parentTaskMetadata != null && message.hasOwnProperty("parentTaskMetadata")) { - var error = $root.flyteidl.event.ParentTaskExecutionMetadata.verify(message.parentTaskMetadata); - if (error) - return "parentTaskMetadata." + error; - } - if (message.parentNodeMetadata != null && message.hasOwnProperty("parentNodeMetadata")) { - var error = $root.flyteidl.event.ParentNodeExecutionMetadata.verify(message.parentNodeMetadata); - if (error) - return "parentNodeMetadata." + error; - } - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - if (!$util.isString(message.retryGroup)) - return "retryGroup: string expected"; - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - if (!$util.isString(message.specNodeId)) - return "specNodeId: string expected"; - if (message.nodeName != null && message.hasOwnProperty("nodeName")) - if (!$util.isString(message.nodeName)) - return "nodeName: string expected"; - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.isParent != null && message.hasOwnProperty("isParent")) - if (typeof message.isParent !== "boolean") - return "isParent: boolean expected"; - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - if (typeof message.isDynamic !== "boolean") - return "isDynamic: boolean expected"; - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - if (!$util.isString(message.deckUri)) - return "deckUri: string expected"; - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); - if (error) - return "reportedAt." + error; - } - if (message.isArray != null && message.hasOwnProperty("isArray")) - if (typeof message.isArray !== "boolean") - return "isArray: boolean expected"; - return null; - }; - - return NodeExecutionEvent; - })(); - - event.WorkflowNodeMetadata = (function() { - - /** - * Properties of a WorkflowNodeMetadata. - * @memberof flyteidl.event - * @interface IWorkflowNodeMetadata - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId - */ - - /** - * Constructs a new WorkflowNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a WorkflowNodeMetadata. - * @implements IWorkflowNodeMetadata - * @constructor - * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set - */ - function WorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNodeMetadata executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.event.WorkflowNodeMetadata - * @instance - */ - WorkflowNodeMetadata.prototype.executionId = null; - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {flyteidl.event.IWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata instance - */ - WorkflowNodeMetadata.create = function create(properties) { - return new WorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.WorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {flyteidl.event.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.WorkflowNodeMetadata} WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.WorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.event.WorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return WorkflowNodeMetadata; - })(); - - event.TaskNodeMetadata = (function() { - - /** - * Properties of a TaskNodeMetadata. - * @memberof flyteidl.event - * @interface ITaskNodeMetadata - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus - * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey - * @property {flyteidl.core.CatalogReservation.Status|null} [reservationStatus] TaskNodeMetadata reservationStatus - * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri - * @property {flyteidl.event.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] TaskNodeMetadata dynamicWorkflow - */ - - /** - * Constructs a new TaskNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a TaskNodeMetadata. - * @implements ITaskNodeMetadata - * @constructor - * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set - */ - function TaskNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeMetadata cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.cacheStatus = 0; - - /** - * TaskNodeMetadata catalogKey. - * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.catalogKey = null; - - /** - * TaskNodeMetadata reservationStatus. - * @member {flyteidl.core.CatalogReservation.Status} reservationStatus - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.reservationStatus = 0; - - /** - * TaskNodeMetadata checkpointUri. - * @member {string} checkpointUri - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.checkpointUri = ""; - - /** - * TaskNodeMetadata dynamicWorkflow. - * @member {flyteidl.event.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow - * @memberof flyteidl.event.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.dynamicWorkflow = null; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {flyteidl.event.ITaskNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata instance - */ - TaskNodeMetadata.create = function create(properties) { - return new TaskNodeMetadata(properties); - }; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.event.TaskNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {flyteidl.event.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) - $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.reservationStatus); - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) - $root.flyteidl.event.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskNodeMetadata} TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cacheStatus = reader.int32(); - break; - case 2: - message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.reservationStatus = reader.int32(); - break; - case 4: - message.checkpointUri = reader.string(); - break; - case 16: - message.dynamicWorkflow = $root.flyteidl.event.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeMetadata message. - * @function verify - * @memberof flyteidl.event.TaskNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { - var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); - if (error) - return "catalogKey." + error; - } - if (message.reservationStatus != null && message.hasOwnProperty("reservationStatus")) - switch (message.reservationStatus) { - default: - return "reservationStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - if (!$util.isString(message.checkpointUri)) - return "checkpointUri: string expected"; - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { - var error = $root.flyteidl.event.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); - if (error) - return "dynamicWorkflow." + error; - } - return null; - }; - - return TaskNodeMetadata; - })(); - - event.DynamicWorkflowNodeMetadata = (function() { - - /** - * Properties of a DynamicWorkflowNodeMetadata. - * @memberof flyteidl.event - * @interface IDynamicWorkflowNodeMetadata - * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow - * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri - */ - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @memberof flyteidl.event - * @classdesc Represents a DynamicWorkflowNodeMetadata. - * @implements IDynamicWorkflowNodeMetadata - * @constructor - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - */ - function DynamicWorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicWorkflowNodeMetadata id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.id = null; - - /** - * DynamicWorkflowNodeMetadata compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; - - /** - * DynamicWorkflowNodeMetadata dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance - */ - DynamicWorkflowNodeMetadata.create = function create(properties) { - return new DynamicWorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.event.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.event.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicWorkflowNodeMetadata.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(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.DynamicWorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.event.DynamicWorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicWorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return DynamicWorkflowNodeMetadata; - })(); - - event.ParentTaskExecutionMetadata = (function() { - - /** - * Properties of a ParentTaskExecutionMetadata. - * @memberof flyteidl.event - * @interface IParentTaskExecutionMetadata - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] ParentTaskExecutionMetadata id - */ - - /** - * Constructs a new ParentTaskExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a ParentTaskExecutionMetadata. - * @implements IParentTaskExecutionMetadata - * @constructor - * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set - */ - function ParentTaskExecutionMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParentTaskExecutionMetadata id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @instance - */ - ParentTaskExecutionMetadata.prototype.id = null; - - /** - * Creates a new ParentTaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {flyteidl.event.IParentTaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata instance - */ - ParentTaskExecutionMetadata.create = function create(properties) { - return new ParentTaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified ParentTaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentTaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {flyteidl.event.IParentTaskExecutionMetadata} message ParentTaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParentTaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ParentTaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ParentTaskExecutionMetadata} ParentTaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParentTaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentTaskExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParentTaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.ParentTaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParentTaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ParentTaskExecutionMetadata; - })(); - - event.ParentNodeExecutionMetadata = (function() { - - /** - * Properties of a ParentNodeExecutionMetadata. - * @memberof flyteidl.event - * @interface IParentNodeExecutionMetadata - * @property {string|null} [nodeId] ParentNodeExecutionMetadata nodeId - */ - - /** - * Constructs a new ParentNodeExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a ParentNodeExecutionMetadata. - * @implements IParentNodeExecutionMetadata - * @constructor - * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set - */ - function ParentNodeExecutionMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ParentNodeExecutionMetadata nodeId. - * @member {string} nodeId - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @instance - */ - ParentNodeExecutionMetadata.prototype.nodeId = ""; - - /** - * Creates a new ParentNodeExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {flyteidl.event.IParentNodeExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata instance - */ - ParentNodeExecutionMetadata.create = function create(properties) { - return new ParentNodeExecutionMetadata(properties); - }; - - /** - * Encodes the specified ParentNodeExecutionMetadata message. Does not implicitly {@link flyteidl.event.ParentNodeExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {flyteidl.event.IParentNodeExecutionMetadata} message ParentNodeExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParentNodeExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nodeId); - return writer; - }; - - /** - * Decodes a ParentNodeExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ParentNodeExecutionMetadata} ParentNodeExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParentNodeExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ParentNodeExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ParentNodeExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.ParentNodeExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParentNodeExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isString(message.nodeId)) - return "nodeId: string expected"; - return null; - }; - - return ParentNodeExecutionMetadata; - })(); - - event.EventReason = (function() { - - /** - * Properties of an EventReason. - * @memberof flyteidl.event - * @interface IEventReason - * @property {string|null} [reason] EventReason reason - * @property {google.protobuf.ITimestamp|null} [occurredAt] EventReason occurredAt - */ - - /** - * Constructs a new EventReason. - * @memberof flyteidl.event - * @classdesc Represents an EventReason. - * @implements IEventReason - * @constructor - * @param {flyteidl.event.IEventReason=} [properties] Properties to set - */ - function EventReason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventReason reason. - * @member {string} reason - * @memberof flyteidl.event.EventReason - * @instance - */ - EventReason.prototype.reason = ""; - - /** - * EventReason occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.EventReason - * @instance - */ - EventReason.prototype.occurredAt = null; - - /** - * Creates a new EventReason instance using the specified properties. - * @function create - * @memberof flyteidl.event.EventReason - * @static - * @param {flyteidl.event.IEventReason=} [properties] Properties to set - * @returns {flyteidl.event.EventReason} EventReason instance - */ - EventReason.create = function create(properties) { - return new EventReason(properties); - }; - - /** - * Encodes the specified EventReason message. Does not implicitly {@link flyteidl.event.EventReason.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.EventReason - * @static - * @param {flyteidl.event.IEventReason} message EventReason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventReason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EventReason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.EventReason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.EventReason} EventReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventReason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.EventReason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.reason = reader.string(); - break; - case 2: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventReason message. - * @function verify - * @memberof flyteidl.event.EventReason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventReason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - return null; - }; - - return EventReason; - })(); - - event.TaskExecutionEvent = (function() { - - /** - * Properties of a TaskExecutionEvent. - * @memberof flyteidl.event - * @interface ITaskExecutionEvent - * @property {flyteidl.core.IIdentifier|null} [taskId] TaskExecutionEvent taskId - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecutionId] TaskExecutionEvent parentNodeExecutionId - * @property {number|null} [retryAttempt] TaskExecutionEvent retryAttempt - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionEvent phase - * @property {string|null} [producerId] TaskExecutionEvent producerId - * @property {Array.|null} [logs] TaskExecutionEvent logs - * @property {google.protobuf.ITimestamp|null} [occurredAt] TaskExecutionEvent occurredAt - * @property {string|null} [inputUri] TaskExecutionEvent inputUri - * @property {flyteidl.core.ILiteralMap|null} [inputData] TaskExecutionEvent inputData - * @property {string|null} [outputUri] TaskExecutionEvent outputUri - * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionEvent error - * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionEvent outputData - * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionEvent customInfo - * @property {number|null} [phaseVersion] TaskExecutionEvent phaseVersion - * @property {string|null} [reason] TaskExecutionEvent reason - * @property {Array.|null} [reasons] TaskExecutionEvent reasons - * @property {string|null} [taskType] TaskExecutionEvent taskType - * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionEvent metadata - * @property {number|null} [eventVersion] TaskExecutionEvent eventVersion - * @property {google.protobuf.ITimestamp|null} [reportedAt] TaskExecutionEvent reportedAt - */ - - /** - * Constructs a new TaskExecutionEvent. - * @memberof flyteidl.event - * @classdesc Represents a TaskExecutionEvent. - * @implements ITaskExecutionEvent - * @constructor - * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set - */ - function TaskExecutionEvent(properties) { - this.logs = []; - this.reasons = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionEvent taskId. - * @member {flyteidl.core.IIdentifier|null|undefined} taskId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.taskId = null; - - /** - * TaskExecutionEvent parentNodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecutionId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.parentNodeExecutionId = null; - - /** - * TaskExecutionEvent retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.retryAttempt = 0; - - /** - * TaskExecutionEvent phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.phase = 0; - - /** - * TaskExecutionEvent producerId. - * @member {string} producerId - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.producerId = ""; - - /** - * TaskExecutionEvent logs. - * @member {Array.} logs - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.logs = $util.emptyArray; - - /** - * TaskExecutionEvent occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.occurredAt = null; - - /** - * TaskExecutionEvent inputUri. - * @member {string} inputUri - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.inputUri = ""; - - /** - * TaskExecutionEvent inputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputData - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.inputData = null; - - /** - * TaskExecutionEvent outputUri. - * @member {string} outputUri - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.outputUri = ""; - - /** - * TaskExecutionEvent error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.error = null; - - /** - * TaskExecutionEvent outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.outputData = null; - - /** - * TaskExecutionEvent customInfo. - * @member {google.protobuf.IStruct|null|undefined} customInfo - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.customInfo = null; - - /** - * TaskExecutionEvent phaseVersion. - * @member {number} phaseVersion - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.phaseVersion = 0; - - /** - * TaskExecutionEvent reason. - * @member {string} reason - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reason = ""; - - /** - * TaskExecutionEvent reasons. - * @member {Array.} reasons - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reasons = $util.emptyArray; - - /** - * TaskExecutionEvent taskType. - * @member {string} taskType - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.taskType = ""; - - /** - * TaskExecutionEvent metadata. - * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.metadata = null; - - /** - * TaskExecutionEvent eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.eventVersion = 0; - - /** - * TaskExecutionEvent reportedAt. - * @member {google.protobuf.ITimestamp|null|undefined} reportedAt - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - TaskExecutionEvent.prototype.reportedAt = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskExecutionEvent inputValue. - * @member {"inputUri"|"inputData"|undefined} inputValue - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - Object.defineProperty(TaskExecutionEvent.prototype, "inputValue", { - get: $util.oneOfGetter($oneOfFields = ["inputUri", "inputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * TaskExecutionEvent outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.event.TaskExecutionEvent - * @instance - */ - Object.defineProperty(TaskExecutionEvent.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskExecutionEvent instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {flyteidl.event.ITaskExecutionEvent=} [properties] Properties to set - * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent instance - */ - TaskExecutionEvent.create = function create(properties) { - return new TaskExecutionEvent(properties); - }; - - /** - * Encodes the specified TaskExecutionEvent message. Does not implicitly {@link flyteidl.event.TaskExecutionEvent.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {flyteidl.event.ITaskExecutionEvent} message TaskExecutionEvent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskId != null && message.hasOwnProperty("taskId")) - $root.flyteidl.core.Identifier.encode(message.taskId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecutionId, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.producerId != null && message.hasOwnProperty("producerId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.producerId); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.inputUri); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.customInfo != null && message.hasOwnProperty("customInfo")) - $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) - writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.phaseVersion); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.reason); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.taskType); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.eventVersion); - if (message.inputData != null && message.hasOwnProperty("inputData")) - $root.flyteidl.core.LiteralMap.encode(message.inputData, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) - $root.google.protobuf.Timestamp.encode(message.reportedAt, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.reasons != null && message.reasons.length) - for (var i = 0; i < message.reasons.length; ++i) - $root.flyteidl.event.EventReason.encode(message.reasons[i], writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionEvent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskExecutionEvent} TaskExecutionEvent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionEvent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.parentNodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.producerId = reader.string(); - break; - case 6: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - case 7: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.inputUri = reader.string(); - break; - case 19: - message.inputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 9: - message.outputUri = reader.string(); - break; - case 10: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 17: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 11: - message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 12: - message.phaseVersion = reader.uint32(); - break; - case 13: - message.reason = reader.string(); - break; - case 21: - if (!(message.reasons && message.reasons.length)) - message.reasons = []; - message.reasons.push($root.flyteidl.event.EventReason.decode(reader, reader.uint32())); - break; - case 14: - message.taskType = reader.string(); - break; - case 16: - message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 18: - message.eventVersion = reader.int32(); - break; - case 20: - message.reportedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEvent message. - * @function verify - * @memberof flyteidl.event.TaskExecutionEvent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.taskId != null && message.hasOwnProperty("taskId")) { - var error = $root.flyteidl.core.Identifier.verify(message.taskId); - if (error) - return "taskId." + error; - } - if (message.parentNodeExecutionId != null && message.hasOwnProperty("parentNodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecutionId); - if (error) - return "parentNodeExecutionId." + error; - } - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.producerId != null && message.hasOwnProperty("producerId")) - if (!$util.isString(message.producerId)) - return "producerId: string expected"; - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) { - properties.inputValue = 1; - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - } - if (message.inputData != null && message.hasOwnProperty("inputData")) { - if (properties.inputValue === 1) - return "inputValue: multiple values"; - properties.inputValue = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputData); - if (error) - return "inputData." + error; - } - } - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.customInfo != null && message.hasOwnProperty("customInfo")) { - var error = $root.google.protobuf.Struct.verify(message.customInfo); - if (error) - return "customInfo." + error; - } - if (message.phaseVersion != null && message.hasOwnProperty("phaseVersion")) - if (!$util.isInteger(message.phaseVersion)) - return "phaseVersion: integer expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.reasons != null && message.hasOwnProperty("reasons")) { - if (!Array.isArray(message.reasons)) - return "reasons: array expected"; - for (var i = 0; i < message.reasons.length; ++i) { - var error = $root.flyteidl.event.EventReason.verify(message.reasons[i]); - if (error) - return "reasons." + error; - } - } - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.reportedAt != null && message.hasOwnProperty("reportedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.reportedAt); - if (error) - return "reportedAt." + error; - } - return null; - }; - - return TaskExecutionEvent; - })(); - - event.ExternalResourceInfo = (function() { - - /** - * Properties of an ExternalResourceInfo. - * @memberof flyteidl.event - * @interface IExternalResourceInfo - * @property {string|null} [externalId] ExternalResourceInfo externalId - * @property {number|null} [index] ExternalResourceInfo index - * @property {number|null} [retryAttempt] ExternalResourceInfo retryAttempt - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] ExternalResourceInfo phase - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] ExternalResourceInfo cacheStatus - * @property {Array.|null} [logs] ExternalResourceInfo logs - */ - - /** - * Constructs a new ExternalResourceInfo. - * @memberof flyteidl.event - * @classdesc Represents an ExternalResourceInfo. - * @implements IExternalResourceInfo - * @constructor - * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set - */ - function ExternalResourceInfo(properties) { - this.logs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExternalResourceInfo externalId. - * @member {string} externalId - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.externalId = ""; - - /** - * ExternalResourceInfo index. - * @member {number} index - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.index = 0; - - /** - * ExternalResourceInfo retryAttempt. - * @member {number} retryAttempt - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.retryAttempt = 0; - - /** - * ExternalResourceInfo phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.phase = 0; - - /** - * ExternalResourceInfo cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.cacheStatus = 0; - - /** - * ExternalResourceInfo logs. - * @member {Array.} logs - * @memberof flyteidl.event.ExternalResourceInfo - * @instance - */ - ExternalResourceInfo.prototype.logs = $util.emptyArray; - - /** - * Creates a new ExternalResourceInfo instance using the specified properties. - * @function create - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {flyteidl.event.IExternalResourceInfo=} [properties] Properties to set - * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo instance - */ - ExternalResourceInfo.create = function create(properties) { - return new ExternalResourceInfo(properties); - }; - - /** - * Encodes the specified ExternalResourceInfo message. Does not implicitly {@link flyteidl.event.ExternalResourceInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {flyteidl.event.IExternalResourceInfo} message ExternalResourceInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExternalResourceInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.externalId != null && message.hasOwnProperty("externalId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.externalId); - if (message.index != null && message.hasOwnProperty("index")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.index); - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.retryAttempt); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.cacheStatus); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExternalResourceInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ExternalResourceInfo} ExternalResourceInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExternalResourceInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ExternalResourceInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.externalId = reader.string(); - break; - case 2: - message.index = reader.uint32(); - break; - case 3: - message.retryAttempt = reader.uint32(); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.cacheStatus = reader.int32(); - break; - case 6: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExternalResourceInfo message. - * @function verify - * @memberof flyteidl.event.ExternalResourceInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExternalResourceInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.externalId != null && message.hasOwnProperty("externalId")) - if (!$util.isString(message.externalId)) - return "externalId: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.retryAttempt != null && message.hasOwnProperty("retryAttempt")) - if (!$util.isInteger(message.retryAttempt)) - return "retryAttempt: integer expected"; - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - return null; - }; - - return ExternalResourceInfo; - })(); - - event.ResourcePoolInfo = (function() { - - /** - * Properties of a ResourcePoolInfo. - * @memberof flyteidl.event - * @interface IResourcePoolInfo - * @property {string|null} [allocationToken] ResourcePoolInfo allocationToken - * @property {string|null} [namespace] ResourcePoolInfo namespace - */ - - /** - * Constructs a new ResourcePoolInfo. - * @memberof flyteidl.event - * @classdesc Represents a ResourcePoolInfo. - * @implements IResourcePoolInfo - * @constructor - * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set - */ - function ResourcePoolInfo(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourcePoolInfo allocationToken. - * @member {string} allocationToken - * @memberof flyteidl.event.ResourcePoolInfo - * @instance - */ - ResourcePoolInfo.prototype.allocationToken = ""; - - /** - * ResourcePoolInfo namespace. - * @member {string} namespace - * @memberof flyteidl.event.ResourcePoolInfo - * @instance - */ - ResourcePoolInfo.prototype.namespace = ""; - - /** - * Creates a new ResourcePoolInfo instance using the specified properties. - * @function create - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {flyteidl.event.IResourcePoolInfo=} [properties] Properties to set - * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo instance - */ - ResourcePoolInfo.create = function create(properties) { - return new ResourcePoolInfo(properties); - }; - - /** - * Encodes the specified ResourcePoolInfo message. Does not implicitly {@link flyteidl.event.ResourcePoolInfo.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {flyteidl.event.IResourcePoolInfo} message ResourcePoolInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourcePoolInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.allocationToken); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - return writer; - }; - - /** - * Decodes a ResourcePoolInfo message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.ResourcePoolInfo} ResourcePoolInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourcePoolInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.ResourcePoolInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.allocationToken = reader.string(); - break; - case 2: - message.namespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourcePoolInfo message. - * @function verify - * @memberof flyteidl.event.ResourcePoolInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourcePoolInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allocationToken != null && message.hasOwnProperty("allocationToken")) - if (!$util.isString(message.allocationToken)) - return "allocationToken: string expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - return null; - }; - - return ResourcePoolInfo; - })(); - - event.TaskExecutionMetadata = (function() { - - /** - * Properties of a TaskExecutionMetadata. - * @memberof flyteidl.event - * @interface ITaskExecutionMetadata - * @property {string|null} [generatedName] TaskExecutionMetadata generatedName - * @property {Array.|null} [externalResources] TaskExecutionMetadata externalResources - * @property {Array.|null} [resourcePoolInfo] TaskExecutionMetadata resourcePoolInfo - * @property {string|null} [pluginIdentifier] TaskExecutionMetadata pluginIdentifier - * @property {flyteidl.event.TaskExecutionMetadata.InstanceClass|null} [instanceClass] TaskExecutionMetadata instanceClass - */ - - /** - * Constructs a new TaskExecutionMetadata. - * @memberof flyteidl.event - * @classdesc Represents a TaskExecutionMetadata. - * @implements ITaskExecutionMetadata - * @constructor - * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set - */ - function TaskExecutionMetadata(properties) { - this.externalResources = []; - this.resourcePoolInfo = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionMetadata generatedName. - * @member {string} generatedName - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.generatedName = ""; - - /** - * TaskExecutionMetadata externalResources. - * @member {Array.} externalResources - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.externalResources = $util.emptyArray; - - /** - * TaskExecutionMetadata resourcePoolInfo. - * @member {Array.} resourcePoolInfo - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.resourcePoolInfo = $util.emptyArray; - - /** - * TaskExecutionMetadata pluginIdentifier. - * @member {string} pluginIdentifier - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.pluginIdentifier = ""; - - /** - * TaskExecutionMetadata instanceClass. - * @member {flyteidl.event.TaskExecutionMetadata.InstanceClass} instanceClass - * @memberof flyteidl.event.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.instanceClass = 0; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {flyteidl.event.ITaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata instance - */ - TaskExecutionMetadata.create = function create(properties) { - return new TaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.event.TaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {flyteidl.event.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.generatedName != null && message.hasOwnProperty("generatedName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.generatedName); - if (message.externalResources != null && message.externalResources.length) - for (var i = 0; i < message.externalResources.length; ++i) - $root.flyteidl.event.ExternalResourceInfo.encode(message.externalResources[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.resourcePoolInfo != null && message.resourcePoolInfo.length) - for (var i = 0; i < message.resourcePoolInfo.length; ++i) - $root.flyteidl.event.ResourcePoolInfo.encode(message.resourcePoolInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pluginIdentifier); - if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.instanceClass); - return writer; - }; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.event.TaskExecutionMetadata} TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.event.TaskExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.generatedName = reader.string(); - break; - case 2: - if (!(message.externalResources && message.externalResources.length)) - message.externalResources = []; - message.externalResources.push($root.flyteidl.event.ExternalResourceInfo.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.resourcePoolInfo && message.resourcePoolInfo.length)) - message.resourcePoolInfo = []; - message.resourcePoolInfo.push($root.flyteidl.event.ResourcePoolInfo.decode(reader, reader.uint32())); - break; - case 4: - message.pluginIdentifier = reader.string(); - break; - case 16: - message.instanceClass = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.event.TaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.generatedName != null && message.hasOwnProperty("generatedName")) - if (!$util.isString(message.generatedName)) - return "generatedName: string expected"; - if (message.externalResources != null && message.hasOwnProperty("externalResources")) { - if (!Array.isArray(message.externalResources)) - return "externalResources: array expected"; - for (var i = 0; i < message.externalResources.length; ++i) { - var error = $root.flyteidl.event.ExternalResourceInfo.verify(message.externalResources[i]); - if (error) - return "externalResources." + error; - } - } - if (message.resourcePoolInfo != null && message.hasOwnProperty("resourcePoolInfo")) { - if (!Array.isArray(message.resourcePoolInfo)) - return "resourcePoolInfo: array expected"; - for (var i = 0; i < message.resourcePoolInfo.length; ++i) { - var error = $root.flyteidl.event.ResourcePoolInfo.verify(message.resourcePoolInfo[i]); - if (error) - return "resourcePoolInfo." + error; - } - } - if (message.pluginIdentifier != null && message.hasOwnProperty("pluginIdentifier")) - if (!$util.isString(message.pluginIdentifier)) - return "pluginIdentifier: string expected"; - if (message.instanceClass != null && message.hasOwnProperty("instanceClass")) - switch (message.instanceClass) { - default: - return "instanceClass: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * InstanceClass enum. - * @name flyteidl.event.TaskExecutionMetadata.InstanceClass - * @enum {string} - * @property {number} DEFAULT=0 DEFAULT value - * @property {number} INTERRUPTIBLE=1 INTERRUPTIBLE value - */ - TaskExecutionMetadata.InstanceClass = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT"] = 0; - values[valuesById[1] = "INTERRUPTIBLE"] = 1; - return values; - })(); - - return TaskExecutionMetadata; - })(); - - return event; - })(); - - flyteidl.admin = (function() { - - /** - * Namespace admin. - * @memberof flyteidl - * @namespace - */ - var admin = {}; - - /** - * State enum. - * @name flyteidl.admin.State - * @enum {string} - * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value - * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value - * @property {number} PENDING=2 PENDING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - */ - admin.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; - values[valuesById[1] = "PERMANENT_FAILURE"] = 1; - values[valuesById[2] = "PENDING"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - return values; - })(); - - admin.TaskExecutionMetadata = (function() { - - /** - * Properties of a TaskExecutionMetadata. - * @memberof flyteidl.admin - * @interface ITaskExecutionMetadata - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] TaskExecutionMetadata taskExecutionId - * @property {string|null} [namespace] TaskExecutionMetadata namespace - * @property {Object.|null} [labels] TaskExecutionMetadata labels - * @property {Object.|null} [annotations] TaskExecutionMetadata annotations - * @property {string|null} [k8sServiceAccount] TaskExecutionMetadata k8sServiceAccount - * @property {Object.|null} [environmentVariables] TaskExecutionMetadata environmentVariables - */ - - /** - * Constructs a new TaskExecutionMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionMetadata. - * @implements ITaskExecutionMetadata - * @constructor - * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set - */ - function TaskExecutionMetadata(properties) { - this.labels = {}; - this.annotations = {}; - this.environmentVariables = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionMetadata taskExecutionId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.taskExecutionId = null; - - /** - * TaskExecutionMetadata namespace. - * @member {string} namespace - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.namespace = ""; - - /** - * TaskExecutionMetadata labels. - * @member {Object.} labels - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.labels = $util.emptyObject; - - /** - * TaskExecutionMetadata annotations. - * @member {Object.} annotations - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.annotations = $util.emptyObject; - - /** - * TaskExecutionMetadata k8sServiceAccount. - * @member {string} k8sServiceAccount - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.k8sServiceAccount = ""; - - /** - * TaskExecutionMetadata environmentVariables. - * @member {Object.} environmentVariables - * @memberof flyteidl.admin.TaskExecutionMetadata - * @instance - */ - TaskExecutionMetadata.prototype.environmentVariables = $util.emptyObject; - - /** - * Creates a new TaskExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {flyteidl.admin.ITaskExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata instance - */ - TaskExecutionMetadata.create = function create(properties) { - return new TaskExecutionMetadata(properties); - }; - - /** - * Encodes the specified TaskExecutionMetadata message. Does not implicitly {@link flyteidl.admin.TaskExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {flyteidl.admin.ITaskExecutionMetadata} message TaskExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - if (message.labels != null && message.hasOwnProperty("labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - for (var keys = Object.keys(message.annotations), i = 0; i < keys.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotations[keys[i]]).ldelim(); - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.k8sServiceAccount); - if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) - for (var keys = Object.keys(message.environmentVariables), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.environmentVariables[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionMetadata} TaskExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionMetadata(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.namespace = reader.string(); - break; - case 3: - reader.skip().pos++; - if (message.labels === $util.emptyObject) - message.labels = {}; - key = reader.string(); - reader.pos++; - message.labels[key] = reader.string(); - break; - case 4: - reader.skip().pos++; - if (message.annotations === $util.emptyObject) - message.annotations = {}; - key = reader.string(); - reader.pos++; - message.annotations[key] = reader.string(); - break; - case 5: - message.k8sServiceAccount = reader.string(); - break; - case 6: - reader.skip().pos++; - if (message.environmentVariables === $util.emptyObject) - message.environmentVariables = {}; - key = reader.string(); - reader.pos++; - message.environmentVariables[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionMetadata message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); - if (error) - return "taskExecutionId." + error; - } - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - if (!$util.isObject(message.annotations)) - return "annotations: object expected"; - var key = Object.keys(message.annotations); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.annotations[key[i]])) - return "annotations: string{k:string} expected"; - } - if (message.k8sServiceAccount != null && message.hasOwnProperty("k8sServiceAccount")) - if (!$util.isString(message.k8sServiceAccount)) - return "k8sServiceAccount: string expected"; - if (message.environmentVariables != null && message.hasOwnProperty("environmentVariables")) { - if (!$util.isObject(message.environmentVariables)) - return "environmentVariables: object expected"; - var key = Object.keys(message.environmentVariables); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.environmentVariables[key[i]])) - return "environmentVariables: string{k:string} expected"; - } - return null; - }; - - return TaskExecutionMetadata; - })(); - - admin.CreateTaskRequest = (function() { - - /** - * Properties of a CreateTaskRequest. - * @memberof flyteidl.admin - * @interface ICreateTaskRequest - * @property {flyteidl.core.ILiteralMap|null} [inputs] CreateTaskRequest inputs - * @property {flyteidl.core.ITaskTemplate|null} [template] CreateTaskRequest template - * @property {string|null} [outputPrefix] CreateTaskRequest outputPrefix - * @property {flyteidl.admin.ITaskExecutionMetadata|null} [taskExecutionMetadata] CreateTaskRequest taskExecutionMetadata - */ - - /** - * Constructs a new CreateTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a CreateTaskRequest. - * @implements ICreateTaskRequest - * @constructor - * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set - */ - function CreateTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTaskRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.inputs = null; - - /** - * CreateTaskRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.template = null; - - /** - * CreateTaskRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.outputPrefix = ""; - - /** - * CreateTaskRequest taskExecutionMetadata. - * @member {flyteidl.admin.ITaskExecutionMetadata|null|undefined} taskExecutionMetadata - * @memberof flyteidl.admin.CreateTaskRequest - * @instance - */ - CreateTaskRequest.prototype.taskExecutionMetadata = null; - - /** - * Creates a new CreateTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {flyteidl.admin.ICreateTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest instance - */ - CreateTaskRequest.create = function create(properties) { - return new CreateTaskRequest(properties); - }; - - /** - * Encodes the specified CreateTaskRequest message. Does not implicitly {@link flyteidl.admin.CreateTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {flyteidl.admin.ICreateTaskRequest} message CreateTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) - $root.flyteidl.admin.TaskExecutionMetadata.encode(message.taskExecutionMetadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskRequest} CreateTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - case 4: - message.taskExecutionMetadata = $root.flyteidl.admin.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateTaskRequest message. - * @function verify - * @memberof flyteidl.admin.CreateTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - if (message.taskExecutionMetadata != null && message.hasOwnProperty("taskExecutionMetadata")) { - var error = $root.flyteidl.admin.TaskExecutionMetadata.verify(message.taskExecutionMetadata); - if (error) - return "taskExecutionMetadata." + error; - } - return null; - }; - - return CreateTaskRequest; - })(); - - admin.CreateTaskResponse = (function() { - - /** - * Properties of a CreateTaskResponse. - * @memberof flyteidl.admin - * @interface ICreateTaskResponse - * @property {Uint8Array|null} [resourceMeta] CreateTaskResponse resourceMeta - * @property {flyteidl.admin.IResource|null} [resource] CreateTaskResponse resource - */ - - /** - * Constructs a new CreateTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a CreateTaskResponse. - * @implements ICreateTaskResponse - * @constructor - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set - */ - function CreateTaskResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateTaskResponse resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.CreateTaskResponse - * @instance - */ - CreateTaskResponse.prototype.resourceMeta = $util.newBuffer([]); - - /** - * CreateTaskResponse resource. - * @member {flyteidl.admin.IResource|null|undefined} resource - * @memberof flyteidl.admin.CreateTaskResponse - * @instance - */ - CreateTaskResponse.prototype.resource = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CreateTaskResponse res. - * @member {"resourceMeta"|"resource"|undefined} res - * @memberof flyteidl.admin.CreateTaskResponse - * @instance - */ - Object.defineProperty(CreateTaskResponse.prototype, "res", { - get: $util.oneOfGetter($oneOfFields = ["resourceMeta", "resource"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CreateTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {flyteidl.admin.ICreateTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse instance - */ - CreateTaskResponse.create = function create(properties) { - return new CreateTaskResponse(properties); - }; - - /** - * Encodes the specified CreateTaskResponse message. Does not implicitly {@link flyteidl.admin.CreateTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {flyteidl.admin.ICreateTaskResponse} message CreateTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.resourceMeta); - if (message.resource != null && message.hasOwnProperty("resource")) - $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CreateTaskResponse} CreateTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceMeta = reader.bytes(); - break; - case 2: - message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateTaskResponse message. - * @function verify - * @memberof flyteidl.admin.CreateTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) { - properties.res = 1; - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - } - if (message.resource != null && message.hasOwnProperty("resource")) { - if (properties.res === 1) - return "res: multiple values"; - properties.res = 1; - { - var error = $root.flyteidl.admin.Resource.verify(message.resource); - if (error) - return "resource." + error; - } - } - return null; - }; - - return CreateTaskResponse; - })(); - - admin.GetTaskRequest = (function() { - - /** - * Properties of a GetTaskRequest. - * @memberof flyteidl.admin - * @interface IGetTaskRequest - * @property {string|null} [taskType] GetTaskRequest taskType - * @property {Uint8Array|null} [resourceMeta] GetTaskRequest resourceMeta - */ - - /** - * Constructs a new GetTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskRequest. - * @implements IGetTaskRequest - * @constructor - * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set - */ - function GetTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskRequest taskType. - * @member {string} taskType - * @memberof flyteidl.admin.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.taskType = ""; - - /** - * GetTaskRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.GetTaskRequest - * @instance - */ - GetTaskRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * Creates a new GetTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {flyteidl.admin.IGetTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest instance - */ - GetTaskRequest.create = function create(properties) { - return new GetTaskRequest(properties); - }; - - /** - * Encodes the specified GetTaskRequest message. Does not implicitly {@link flyteidl.admin.GetTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {flyteidl.admin.IGetTaskRequest} message GetTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - return writer; - }; - - /** - * Decodes a GetTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskRequest} GetTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskRequest message. - * @function verify - * @memberof flyteidl.admin.GetTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - return null; - }; - - return GetTaskRequest; - })(); - - admin.GetTaskResponse = (function() { - - /** - * Properties of a GetTaskResponse. - * @memberof flyteidl.admin - * @interface IGetTaskResponse - * @property {flyteidl.admin.IResource|null} [resource] GetTaskResponse resource - * @property {Array.|null} [logLinks] GetTaskResponse logLinks - */ - - /** - * Constructs a new GetTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetTaskResponse. - * @implements IGetTaskResponse - * @constructor - * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set - */ - function GetTaskResponse(properties) { - this.logLinks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetTaskResponse resource. - * @member {flyteidl.admin.IResource|null|undefined} resource - * @memberof flyteidl.admin.GetTaskResponse - * @instance - */ - GetTaskResponse.prototype.resource = null; - - /** - * GetTaskResponse logLinks. - * @member {Array.} logLinks - * @memberof flyteidl.admin.GetTaskResponse - * @instance - */ - GetTaskResponse.prototype.logLinks = $util.emptyArray; - - /** - * Creates a new GetTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {flyteidl.admin.IGetTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse instance - */ - GetTaskResponse.create = function create(properties) { - return new GetTaskResponse(properties); - }; - - /** - * Encodes the specified GetTaskResponse message. Does not implicitly {@link flyteidl.admin.GetTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {flyteidl.admin.IGetTaskResponse} message GetTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resource != null && message.hasOwnProperty("resource")) - $root.flyteidl.admin.Resource.encode(message.resource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.logLinks != null && message.logLinks.length) - for (var i = 0; i < message.logLinks.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logLinks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetTaskResponse} GetTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resource = $root.flyteidl.admin.Resource.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.logLinks && message.logLinks.length)) - message.logLinks = []; - message.logLinks.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetTaskResponse message. - * @function verify - * @memberof flyteidl.admin.GetTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resource != null && message.hasOwnProperty("resource")) { - var error = $root.flyteidl.admin.Resource.verify(message.resource); - if (error) - return "resource." + error; - } - if (message.logLinks != null && message.hasOwnProperty("logLinks")) { - if (!Array.isArray(message.logLinks)) - return "logLinks: array expected"; - for (var i = 0; i < message.logLinks.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logLinks[i]); - if (error) - return "logLinks." + error; - } - } - return null; - }; - - return GetTaskResponse; - })(); - - admin.Resource = (function() { - - /** - * Properties of a Resource. - * @memberof flyteidl.admin - * @interface IResource - * @property {flyteidl.admin.State|null} [state] Resource state - * @property {flyteidl.core.ILiteralMap|null} [outputs] Resource outputs - * @property {string|null} [message] Resource message - * @property {Array.|null} [logLinks] Resource logLinks - */ - - /** - * Constructs a new Resource. - * @memberof flyteidl.admin - * @classdesc Represents a Resource. - * @implements IResource - * @constructor - * @param {flyteidl.admin.IResource=} [properties] Properties to set - */ - function Resource(properties) { - this.logLinks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Resource state. - * @member {flyteidl.admin.State} state - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.state = 0; - - /** - * Resource outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.outputs = null; - - /** - * Resource message. - * @member {string} message - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.message = ""; - - /** - * Resource logLinks. - * @member {Array.} logLinks - * @memberof flyteidl.admin.Resource - * @instance - */ - Resource.prototype.logLinks = $util.emptyArray; - - /** - * Creates a new Resource instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Resource - * @static - * @param {flyteidl.admin.IResource=} [properties] Properties to set - * @returns {flyteidl.admin.Resource} Resource instance - */ - Resource.create = function create(properties) { - return new Resource(properties); - }; - - /** - * Encodes the specified Resource message. Does not implicitly {@link flyteidl.admin.Resource.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Resource - * @static - * @param {flyteidl.admin.IResource} message Resource message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Resource.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.logLinks != null && message.logLinks.length) - for (var i = 0; i < message.logLinks.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logLinks[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Resource message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Resource - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Resource} Resource - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Resource.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Resource(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.message = reader.string(); - break; - case 4: - if (!(message.logLinks && message.logLinks.length)) - message.logLinks = []; - message.logLinks.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Resource message. - * @function verify - * @memberof flyteidl.admin.Resource - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Resource.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.logLinks != null && message.hasOwnProperty("logLinks")) { - if (!Array.isArray(message.logLinks)) - return "logLinks: array expected"; - for (var i = 0; i < message.logLinks.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logLinks[i]); - if (error) - return "logLinks." + error; - } - } - return null; - }; - - return Resource; - })(); - - admin.DeleteTaskRequest = (function() { - - /** - * Properties of a DeleteTaskRequest. - * @memberof flyteidl.admin - * @interface IDeleteTaskRequest - * @property {string|null} [taskType] DeleteTaskRequest taskType - * @property {Uint8Array|null} [resourceMeta] DeleteTaskRequest resourceMeta - */ - - /** - * Constructs a new DeleteTaskRequest. - * @memberof flyteidl.admin - * @classdesc Represents a DeleteTaskRequest. - * @implements IDeleteTaskRequest - * @constructor - * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set - */ - function DeleteTaskRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DeleteTaskRequest taskType. - * @member {string} taskType - * @memberof flyteidl.admin.DeleteTaskRequest - * @instance - */ - DeleteTaskRequest.prototype.taskType = ""; - - /** - * DeleteTaskRequest resourceMeta. - * @member {Uint8Array} resourceMeta - * @memberof flyteidl.admin.DeleteTaskRequest - * @instance - */ - DeleteTaskRequest.prototype.resourceMeta = $util.newBuffer([]); - - /** - * Creates a new DeleteTaskRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {flyteidl.admin.IDeleteTaskRequest=} [properties] Properties to set - * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest instance - */ - DeleteTaskRequest.create = function create(properties) { - return new DeleteTaskRequest(properties); - }; - - /** - * Encodes the specified DeleteTaskRequest message. Does not implicitly {@link flyteidl.admin.DeleteTaskRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {flyteidl.admin.IDeleteTaskRequest} message DeleteTaskRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTaskRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.resourceMeta); - return writer; - }; - - /** - * Decodes a DeleteTaskRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DeleteTaskRequest} DeleteTaskRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTaskRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.resourceMeta = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DeleteTaskRequest message. - * @function verify - * @memberof flyteidl.admin.DeleteTaskRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTaskRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.resourceMeta != null && message.hasOwnProperty("resourceMeta")) - if (!(message.resourceMeta && typeof message.resourceMeta.length === "number" || $util.isString(message.resourceMeta))) - return "resourceMeta: buffer expected"; - return null; - }; - - return DeleteTaskRequest; - })(); - - admin.DeleteTaskResponse = (function() { - - /** - * Properties of a DeleteTaskResponse. - * @memberof flyteidl.admin - * @interface IDeleteTaskResponse - */ - - /** - * Constructs a new DeleteTaskResponse. - * @memberof flyteidl.admin - * @classdesc Represents a DeleteTaskResponse. - * @implements IDeleteTaskResponse - * @constructor - * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set - */ - function DeleteTaskResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new DeleteTaskResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {flyteidl.admin.IDeleteTaskResponse=} [properties] Properties to set - * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse instance - */ - DeleteTaskResponse.create = function create(properties) { - return new DeleteTaskResponse(properties); - }; - - /** - * Encodes the specified DeleteTaskResponse message. Does not implicitly {@link flyteidl.admin.DeleteTaskResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {flyteidl.admin.IDeleteTaskResponse} message DeleteTaskResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeleteTaskResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a DeleteTaskResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DeleteTaskResponse} DeleteTaskResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeleteTaskResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DeleteTaskResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DeleteTaskResponse message. - * @function verify - * @memberof flyteidl.admin.DeleteTaskResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeleteTaskResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return DeleteTaskResponse; - })(); - - admin.Agent = (function() { - - /** - * Properties of an Agent. - * @memberof flyteidl.admin - * @interface IAgent - * @property {string|null} [name] Agent name - * @property {Array.|null} [supportedTaskTypes] Agent supportedTaskTypes - */ - - /** - * Constructs a new Agent. - * @memberof flyteidl.admin - * @classdesc Represents an Agent. - * @implements IAgent - * @constructor - * @param {flyteidl.admin.IAgent=} [properties] Properties to set - */ - function Agent(properties) { - this.supportedTaskTypes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Agent name. - * @member {string} name - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.name = ""; - - /** - * Agent supportedTaskTypes. - * @member {Array.} supportedTaskTypes - * @memberof flyteidl.admin.Agent - * @instance - */ - Agent.prototype.supportedTaskTypes = $util.emptyArray; - - /** - * Creates a new Agent instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Agent - * @static - * @param {flyteidl.admin.IAgent=} [properties] Properties to set - * @returns {flyteidl.admin.Agent} Agent instance - */ - Agent.create = function create(properties) { - return new Agent(properties); - }; - - /** - * Encodes the specified Agent message. Does not implicitly {@link flyteidl.admin.Agent.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Agent - * @static - * @param {flyteidl.admin.IAgent} message Agent message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Agent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.supportedTaskTypes != null && message.supportedTaskTypes.length) - for (var i = 0; i < message.supportedTaskTypes.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.supportedTaskTypes[i]); - return writer; - }; - - /** - * Decodes an Agent message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Agent - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Agent} Agent - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Agent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Agent(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.supportedTaskTypes && message.supportedTaskTypes.length)) - message.supportedTaskTypes = []; - message.supportedTaskTypes.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Agent message. - * @function verify - * @memberof flyteidl.admin.Agent - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Agent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.supportedTaskTypes != null && message.hasOwnProperty("supportedTaskTypes")) { - if (!Array.isArray(message.supportedTaskTypes)) - return "supportedTaskTypes: array expected"; - for (var i = 0; i < message.supportedTaskTypes.length; ++i) - if (!$util.isString(message.supportedTaskTypes[i])) - return "supportedTaskTypes: string[] expected"; - } - return null; - }; - - return Agent; - })(); - - admin.GetAgentRequest = (function() { - - /** - * Properties of a GetAgentRequest. - * @memberof flyteidl.admin - * @interface IGetAgentRequest - * @property {string|null} [name] GetAgentRequest name - */ - - /** - * Constructs a new GetAgentRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetAgentRequest. - * @implements IGetAgentRequest - * @constructor - * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set - */ - function GetAgentRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAgentRequest name. - * @member {string} name - * @memberof flyteidl.admin.GetAgentRequest - * @instance - */ - GetAgentRequest.prototype.name = ""; - - /** - * Creates a new GetAgentRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {flyteidl.admin.IGetAgentRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest instance - */ - GetAgentRequest.create = function create(properties) { - return new GetAgentRequest(properties); - }; - - /** - * Encodes the specified GetAgentRequest message. Does not implicitly {@link flyteidl.admin.GetAgentRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {flyteidl.admin.IGetAgentRequest} message GetAgentRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAgentRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; - - /** - * Decodes a GetAgentRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentRequest} GetAgentRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAgentRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetAgentRequest message. - * @function verify - * @memberof flyteidl.admin.GetAgentRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAgentRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return GetAgentRequest; - })(); - - admin.GetAgentResponse = (function() { - - /** - * Properties of a GetAgentResponse. - * @memberof flyteidl.admin - * @interface IGetAgentResponse - * @property {flyteidl.admin.IAgent|null} [agent] GetAgentResponse agent - */ - - /** - * Constructs a new GetAgentResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetAgentResponse. - * @implements IGetAgentResponse - * @constructor - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set - */ - function GetAgentResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAgentResponse agent. - * @member {flyteidl.admin.IAgent|null|undefined} agent - * @memberof flyteidl.admin.GetAgentResponse - * @instance - */ - GetAgentResponse.prototype.agent = null; - - /** - * Creates a new GetAgentResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {flyteidl.admin.IGetAgentResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse instance - */ - GetAgentResponse.create = function create(properties) { - return new GetAgentResponse(properties); - }; - - /** - * Encodes the specified GetAgentResponse message. Does not implicitly {@link flyteidl.admin.GetAgentResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {flyteidl.admin.IGetAgentResponse} message GetAgentResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAgentResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.agent != null && message.hasOwnProperty("agent")) - $root.flyteidl.admin.Agent.encode(message.agent, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetAgentResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetAgentResponse} GetAgentResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAgentResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetAgentResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.agent = $root.flyteidl.admin.Agent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetAgentResponse message. - * @function verify - * @memberof flyteidl.admin.GetAgentResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAgentResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.agent != null && message.hasOwnProperty("agent")) { - var error = $root.flyteidl.admin.Agent.verify(message.agent); - if (error) - return "agent." + error; - } - return null; - }; - - return GetAgentResponse; - })(); - - admin.ListAgentsRequest = (function() { - - /** - * Properties of a ListAgentsRequest. - * @memberof flyteidl.admin - * @interface IListAgentsRequest - */ - - /** - * Constructs a new ListAgentsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsRequest. - * @implements IListAgentsRequest - * @constructor - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set - */ - function ListAgentsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ListAgentsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {flyteidl.admin.IListAgentsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest instance - */ - ListAgentsRequest.create = function create(properties) { - return new ListAgentsRequest(properties); - }; - - /** - * Encodes the specified ListAgentsRequest message. Does not implicitly {@link flyteidl.admin.ListAgentsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {flyteidl.admin.IListAgentsRequest} message ListAgentsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListAgentsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ListAgentsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsRequest} ListAgentsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListAgentsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListAgentsRequest message. - * @function verify - * @memberof flyteidl.admin.ListAgentsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListAgentsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ListAgentsRequest; - })(); - - admin.ListAgentsResponse = (function() { - - /** - * Properties of a ListAgentsResponse. - * @memberof flyteidl.admin - * @interface IListAgentsResponse - * @property {Array.|null} [agents] ListAgentsResponse agents - */ - - /** - * Constructs a new ListAgentsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ListAgentsResponse. - * @implements IListAgentsResponse - * @constructor - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set - */ - function ListAgentsResponse(properties) { - this.agents = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListAgentsResponse agents. - * @member {Array.} agents - * @memberof flyteidl.admin.ListAgentsResponse - * @instance - */ - ListAgentsResponse.prototype.agents = $util.emptyArray; - - /** - * Creates a new ListAgentsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {flyteidl.admin.IListAgentsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse instance - */ - ListAgentsResponse.create = function create(properties) { - return new ListAgentsResponse(properties); - }; - - /** - * Encodes the specified ListAgentsResponse message. Does not implicitly {@link flyteidl.admin.ListAgentsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {flyteidl.admin.IListAgentsResponse} message ListAgentsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListAgentsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.agents != null && message.agents.length) - for (var i = 0; i < message.agents.length; ++i) - $root.flyteidl.admin.Agent.encode(message.agents[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListAgentsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListAgentsResponse} ListAgentsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListAgentsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListAgentsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.agents && message.agents.length)) - message.agents = []; - message.agents.push($root.flyteidl.admin.Agent.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListAgentsResponse message. - * @function verify - * @memberof flyteidl.admin.ListAgentsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListAgentsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.agents != null && message.hasOwnProperty("agents")) { - if (!Array.isArray(message.agents)) - return "agents: array expected"; - for (var i = 0; i < message.agents.length; ++i) { - var error = $root.flyteidl.admin.Agent.verify(message.agents[i]); - if (error) - return "agents." + error; - } - } - return null; - }; - - return ListAgentsResponse; - })(); - - admin.ClusterAssignment = (function() { - - /** - * Properties of a ClusterAssignment. - * @memberof flyteidl.admin - * @interface IClusterAssignment - * @property {string|null} [clusterPoolName] ClusterAssignment clusterPoolName - */ - - /** - * Constructs a new ClusterAssignment. - * @memberof flyteidl.admin - * @classdesc Represents a ClusterAssignment. - * @implements IClusterAssignment - * @constructor - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set - */ - function ClusterAssignment(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClusterAssignment clusterPoolName. - * @member {string} clusterPoolName - * @memberof flyteidl.admin.ClusterAssignment - * @instance - */ - ClusterAssignment.prototype.clusterPoolName = ""; - - /** - * Creates a new ClusterAssignment instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {flyteidl.admin.IClusterAssignment=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment instance - */ - ClusterAssignment.create = function create(properties) { - return new ClusterAssignment(properties); - }; - - /** - * Encodes the specified ClusterAssignment message. Does not implicitly {@link flyteidl.admin.ClusterAssignment.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {flyteidl.admin.IClusterAssignment} message ClusterAssignment message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterAssignment.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clusterPoolName); - return writer; - }; - - /** - * Decodes a ClusterAssignment message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ClusterAssignment} ClusterAssignment - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterAssignment.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterAssignment(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.clusterPoolName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ClusterAssignment message. - * @function verify - * @memberof flyteidl.admin.ClusterAssignment - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterAssignment.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clusterPoolName != null && message.hasOwnProperty("clusterPoolName")) - if (!$util.isString(message.clusterPoolName)) - return "clusterPoolName: string expected"; - return null; - }; - - return ClusterAssignment; - })(); - - admin.NamedEntityIdentifier = (function() { - - /** - * Properties of a NamedEntityIdentifier. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifier - * @property {string|null} [project] NamedEntityIdentifier project - * @property {string|null} [domain] NamedEntityIdentifier domain - * @property {string|null} [name] NamedEntityIdentifier name - */ - - /** - * Constructs a new NamedEntityIdentifier. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifier. - * @implements INamedEntityIdentifier - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set - */ - function NamedEntityIdentifier(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifier project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.project = ""; - - /** - * NamedEntityIdentifier domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.domain = ""; - - /** - * NamedEntityIdentifier name. - * @member {string} name - * @memberof flyteidl.admin.NamedEntityIdentifier - * @instance - */ - NamedEntityIdentifier.prototype.name = ""; - - /** - * Creates a new NamedEntityIdentifier instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {flyteidl.admin.INamedEntityIdentifier=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier instance - */ - NamedEntityIdentifier.create = function create(properties) { - return new NamedEntityIdentifier(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifier message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifier.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {flyteidl.admin.INamedEntityIdentifier} message NamedEntityIdentifier message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifier message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifier} NamedEntityIdentifier - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifier(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifier message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifier - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return NamedEntityIdentifier; - })(); - - /** - * NamedEntityState enum. - * @name flyteidl.admin.NamedEntityState - * @enum {string} - * @property {number} NAMED_ENTITY_ACTIVE=0 NAMED_ENTITY_ACTIVE value - * @property {number} NAMED_ENTITY_ARCHIVED=1 NAMED_ENTITY_ARCHIVED value - * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value - */ - admin.NamedEntityState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NAMED_ENTITY_ACTIVE"] = 0; - values[valuesById[1] = "NAMED_ENTITY_ARCHIVED"] = 1; - values[valuesById[2] = "SYSTEM_GENERATED"] = 2; - return values; - })(); - - admin.NamedEntityMetadata = (function() { - - /** - * Properties of a NamedEntityMetadata. - * @memberof flyteidl.admin - * @interface INamedEntityMetadata - * @property {string|null} [description] NamedEntityMetadata description - * @property {flyteidl.admin.NamedEntityState|null} [state] NamedEntityMetadata state - */ - - /** - * Constructs a new NamedEntityMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityMetadata. - * @implements INamedEntityMetadata - * @constructor - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set - */ - function NamedEntityMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityMetadata description. - * @member {string} description - * @memberof flyteidl.admin.NamedEntityMetadata - * @instance - */ - NamedEntityMetadata.prototype.description = ""; - - /** - * NamedEntityMetadata state. - * @member {flyteidl.admin.NamedEntityState} state - * @memberof flyteidl.admin.NamedEntityMetadata - * @instance - */ - NamedEntityMetadata.prototype.state = 0; - - /** - * Creates a new NamedEntityMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {flyteidl.admin.INamedEntityMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata instance - */ - NamedEntityMetadata.create = function create(properties) { - return new NamedEntityMetadata(properties); - }; - - /** - * Encodes the specified NamedEntityMetadata message. Does not implicitly {@link flyteidl.admin.NamedEntityMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {flyteidl.admin.INamedEntityMetadata} message NamedEntityMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.description); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes a NamedEntityMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityMetadata} NamedEntityMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.description = reader.string(); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityMetadata message. - * @function verify - * @memberof flyteidl.admin.NamedEntityMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - return NamedEntityMetadata; - })(); - - admin.NamedEntity = (function() { - - /** - * Properties of a NamedEntity. - * @memberof flyteidl.admin - * @interface INamedEntity - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntity resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntity id - * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntity metadata - */ - - /** - * Constructs a new NamedEntity. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntity. - * @implements INamedEntity - * @constructor - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set - */ - function NamedEntity(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntity resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.resourceType = 0; - - /** - * NamedEntity id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.id = null; - - /** - * NamedEntity metadata. - * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata - * @memberof flyteidl.admin.NamedEntity - * @instance - */ - NamedEntity.prototype.metadata = null; - - /** - * Creates a new NamedEntity instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {flyteidl.admin.INamedEntity=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntity} NamedEntity instance - */ - NamedEntity.create = function create(properties) { - return new NamedEntity(properties); - }; - - /** - * Encodes the specified NamedEntity message. Does not implicitly {@link flyteidl.admin.NamedEntity.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {flyteidl.admin.INamedEntity} message NamedEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntity} NamedEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntity message. - * @function verify - * @memberof flyteidl.admin.NamedEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NamedEntity; - })(); - - admin.Sort = (function() { - - /** - * Properties of a Sort. - * @memberof flyteidl.admin - * @interface ISort - * @property {string|null} [key] Sort key - * @property {flyteidl.admin.Sort.Direction|null} [direction] Sort direction - */ - - /** - * Constructs a new Sort. - * @memberof flyteidl.admin - * @classdesc Represents a Sort. - * @implements ISort - * @constructor - * @param {flyteidl.admin.ISort=} [properties] Properties to set - */ - function Sort(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Sort key. - * @member {string} key - * @memberof flyteidl.admin.Sort - * @instance - */ - Sort.prototype.key = ""; - - /** - * Sort direction. - * @member {flyteidl.admin.Sort.Direction} direction - * @memberof flyteidl.admin.Sort - * @instance - */ - Sort.prototype.direction = 0; - - /** - * Creates a new Sort instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Sort - * @static - * @param {flyteidl.admin.ISort=} [properties] Properties to set - * @returns {flyteidl.admin.Sort} Sort instance - */ - Sort.create = function create(properties) { - return new Sort(properties); - }; - - /** - * Encodes the specified Sort message. Does not implicitly {@link flyteidl.admin.Sort.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Sort - * @static - * @param {flyteidl.admin.ISort} message Sort message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Sort.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && message.hasOwnProperty("key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.direction != null && message.hasOwnProperty("direction")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.direction); - return writer; - }; - - /** - * Decodes a Sort message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Sort - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Sort} Sort - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Sort.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Sort(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.key = reader.string(); - break; - case 2: - message.direction = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Sort message. - * @function verify - * @memberof flyteidl.admin.Sort - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Sort.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.direction != null && message.hasOwnProperty("direction")) - switch (message.direction) { - default: - return "direction: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * Direction enum. - * @name flyteidl.admin.Sort.Direction - * @enum {string} - * @property {number} DESCENDING=0 DESCENDING value - * @property {number} ASCENDING=1 ASCENDING value - */ - Sort.Direction = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESCENDING"] = 0; - values[valuesById[1] = "ASCENDING"] = 1; - return values; - })(); - - return Sort; - })(); - - admin.NamedEntityIdentifierListRequest = (function() { - - /** - * Properties of a NamedEntityIdentifierListRequest. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifierListRequest - * @property {string|null} [project] NamedEntityIdentifierListRequest project - * @property {string|null} [domain] NamedEntityIdentifierListRequest domain - * @property {number|null} [limit] NamedEntityIdentifierListRequest limit - * @property {string|null} [token] NamedEntityIdentifierListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityIdentifierListRequest sortBy - * @property {string|null} [filters] NamedEntityIdentifierListRequest filters - */ - - /** - * Constructs a new NamedEntityIdentifierListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierListRequest. - * @implements INamedEntityIdentifierListRequest - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set - */ - function NamedEntityIdentifierListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifierListRequest project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.project = ""; - - /** - * NamedEntityIdentifierListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.domain = ""; - - /** - * NamedEntityIdentifierListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.limit = 0; - - /** - * NamedEntityIdentifierListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.token = ""; - - /** - * NamedEntityIdentifierListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.sortBy = null; - - /** - * NamedEntityIdentifierListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @instance - */ - NamedEntityIdentifierListRequest.prototype.filters = ""; - - /** - * Creates a new NamedEntityIdentifierListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest instance - */ - NamedEntityIdentifierListRequest.create = function create(properties) { - return new NamedEntityIdentifierListRequest(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifierListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} message NamedEntityIdentifierListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifierListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.filters); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifierListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifierListRequest} NamedEntityIdentifierListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifierListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 6: - message.filters = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifierListRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifierListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - return null; - }; - - return NamedEntityIdentifierListRequest; - })(); - - admin.NamedEntityListRequest = (function() { - - /** - * Properties of a NamedEntityListRequest. - * @memberof flyteidl.admin - * @interface INamedEntityListRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityListRequest resourceType - * @property {string|null} [project] NamedEntityListRequest project - * @property {string|null} [domain] NamedEntityListRequest domain - * @property {number|null} [limit] NamedEntityListRequest limit - * @property {string|null} [token] NamedEntityListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] NamedEntityListRequest sortBy - * @property {string|null} [filters] NamedEntityListRequest filters - */ - - /** - * Constructs a new NamedEntityListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityListRequest. - * @implements INamedEntityListRequest - * @constructor - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set - */ - function NamedEntityListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityListRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.resourceType = 0; - - /** - * NamedEntityListRequest project. - * @member {string} project - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.project = ""; - - /** - * NamedEntityListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.domain = ""; - - /** - * NamedEntityListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.limit = 0; - - /** - * NamedEntityListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.token = ""; - - /** - * NamedEntityListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.sortBy = null; - - /** - * NamedEntityListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NamedEntityListRequest - * @instance - */ - NamedEntityListRequest.prototype.filters = ""; - - /** - * Creates a new NamedEntityListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {flyteidl.admin.INamedEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest instance - */ - NamedEntityListRequest.create = function create(properties) { - return new NamedEntityListRequest(properties); - }; - - /** - * Encodes the specified NamedEntityListRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {flyteidl.admin.INamedEntityListRequest} message NamedEntityListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.filters); - return writer; - }; - - /** - * Decodes a NamedEntityListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityListRequest} NamedEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.project = reader.string(); - break; - case 3: - message.domain = reader.string(); - break; - case 4: - message.limit = reader.uint32(); - break; - case 5: - message.token = reader.string(); - break; - case 6: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 7: - message.filters = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityListRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - return null; - }; - - return NamedEntityListRequest; - })(); - - admin.NamedEntityIdentifierList = (function() { - - /** - * Properties of a NamedEntityIdentifierList. - * @memberof flyteidl.admin - * @interface INamedEntityIdentifierList - * @property {Array.|null} [entities] NamedEntityIdentifierList entities - * @property {string|null} [token] NamedEntityIdentifierList token - */ - - /** - * Constructs a new NamedEntityIdentifierList. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityIdentifierList. - * @implements INamedEntityIdentifierList - * @constructor - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set - */ - function NamedEntityIdentifierList(properties) { - this.entities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityIdentifierList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @instance - */ - NamedEntityIdentifierList.prototype.entities = $util.emptyArray; - - /** - * NamedEntityIdentifierList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @instance - */ - NamedEntityIdentifierList.prototype.token = ""; - - /** - * Creates a new NamedEntityIdentifierList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {flyteidl.admin.INamedEntityIdentifierList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList instance - */ - NamedEntityIdentifierList.create = function create(properties) { - return new NamedEntityIdentifierList(properties); - }; - - /** - * Encodes the specified NamedEntityIdentifierList message. Does not implicitly {@link flyteidl.admin.NamedEntityIdentifierList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {flyteidl.admin.INamedEntityIdentifierList} message NamedEntityIdentifierList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityIdentifierList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NamedEntityIdentifierList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityIdentifierList} NamedEntityIdentifierList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityIdentifierList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityIdentifierList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityIdentifierList message. - * @function verify - * @memberof flyteidl.admin.NamedEntityIdentifierList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityIdentifierList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NamedEntityIdentifierList; - })(); - - admin.NamedEntityList = (function() { - - /** - * Properties of a NamedEntityList. - * @memberof flyteidl.admin - * @interface INamedEntityList - * @property {Array.|null} [entities] NamedEntityList entities - * @property {string|null} [token] NamedEntityList token - */ - - /** - * Constructs a new NamedEntityList. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityList. - * @implements INamedEntityList - * @constructor - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set - */ - function NamedEntityList(properties) { - this.entities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityList entities. - * @member {Array.} entities - * @memberof flyteidl.admin.NamedEntityList - * @instance - */ - NamedEntityList.prototype.entities = $util.emptyArray; - - /** - * NamedEntityList token. - * @member {string} token - * @memberof flyteidl.admin.NamedEntityList - * @instance - */ - NamedEntityList.prototype.token = ""; - - /** - * Creates a new NamedEntityList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {flyteidl.admin.INamedEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityList} NamedEntityList instance - */ - NamedEntityList.create = function create(properties) { - return new NamedEntityList(properties); - }; - - /** - * Encodes the specified NamedEntityList message. Does not implicitly {@link flyteidl.admin.NamedEntityList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {flyteidl.admin.INamedEntityList} message NamedEntityList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entities != null && message.entities.length) - for (var i = 0; i < message.entities.length; ++i) - $root.flyteidl.admin.NamedEntity.encode(message.entities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NamedEntityList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityList} NamedEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.entities && message.entities.length)) - message.entities = []; - message.entities.push($root.flyteidl.admin.NamedEntity.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityList message. - * @function verify - * @memberof flyteidl.admin.NamedEntityList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entities != null && message.hasOwnProperty("entities")) { - if (!Array.isArray(message.entities)) - return "entities: array expected"; - for (var i = 0; i < message.entities.length; ++i) { - var error = $root.flyteidl.admin.NamedEntity.verify(message.entities[i]); - if (error) - return "entities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NamedEntityList; - })(); - - admin.NamedEntityGetRequest = (function() { - - /** - * Properties of a NamedEntityGetRequest. - * @memberof flyteidl.admin - * @interface INamedEntityGetRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityGetRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityGetRequest id - */ - - /** - * Constructs a new NamedEntityGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityGetRequest. - * @implements INamedEntityGetRequest - * @constructor - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set - */ - function NamedEntityGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityGetRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityGetRequest - * @instance - */ - NamedEntityGetRequest.prototype.resourceType = 0; - - /** - * NamedEntityGetRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityGetRequest - * @instance - */ - NamedEntityGetRequest.prototype.id = null; - - /** - * Creates a new NamedEntityGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {flyteidl.admin.INamedEntityGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest instance - */ - NamedEntityGetRequest.create = function create(properties) { - return new NamedEntityGetRequest(properties); - }; - - /** - * Encodes the specified NamedEntityGetRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {flyteidl.admin.INamedEntityGetRequest} message NamedEntityGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntityGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityGetRequest} NamedEntityGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityGetRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NamedEntityGetRequest; - })(); - - admin.NamedEntityUpdateRequest = (function() { - - /** - * Properties of a NamedEntityUpdateRequest. - * @memberof flyteidl.admin - * @interface INamedEntityUpdateRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] NamedEntityUpdateRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] NamedEntityUpdateRequest id - * @property {flyteidl.admin.INamedEntityMetadata|null} [metadata] NamedEntityUpdateRequest metadata - */ - - /** - * Constructs a new NamedEntityUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateRequest. - * @implements INamedEntityUpdateRequest - * @constructor - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set - */ - function NamedEntityUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamedEntityUpdateRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.resourceType = 0; - - /** - * NamedEntityUpdateRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.id = null; - - /** - * NamedEntityUpdateRequest metadata. - * @member {flyteidl.admin.INamedEntityMetadata|null|undefined} metadata - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @instance - */ - NamedEntityUpdateRequest.prototype.metadata = null; - - /** - * Creates a new NamedEntityUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest instance - */ - NamedEntityUpdateRequest.create = function create(properties) { - return new NamedEntityUpdateRequest(properties); - }; - - /** - * Encodes the specified NamedEntityUpdateRequest message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {flyteidl.admin.INamedEntityUpdateRequest} message NamedEntityUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NamedEntityMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NamedEntityUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityUpdateRequest} NamedEntityUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.NamedEntityMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NamedEntityMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NamedEntityUpdateRequest; - })(); - - admin.NamedEntityUpdateResponse = (function() { - - /** - * Properties of a NamedEntityUpdateResponse. - * @memberof flyteidl.admin - * @interface INamedEntityUpdateResponse - */ - - /** - * Constructs a new NamedEntityUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NamedEntityUpdateResponse. - * @implements INamedEntityUpdateResponse - * @constructor - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set - */ - function NamedEntityUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NamedEntityUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse instance - */ - NamedEntityUpdateResponse.create = function create(properties) { - return new NamedEntityUpdateResponse(properties); - }; - - /** - * Encodes the specified NamedEntityUpdateResponse message. Does not implicitly {@link flyteidl.admin.NamedEntityUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {flyteidl.admin.INamedEntityUpdateResponse} message NamedEntityUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamedEntityUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NamedEntityUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NamedEntityUpdateResponse} NamedEntityUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamedEntityUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NamedEntityUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NamedEntityUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.NamedEntityUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamedEntityUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return NamedEntityUpdateResponse; - })(); - - admin.ObjectGetRequest = (function() { - - /** - * Properties of an ObjectGetRequest. - * @memberof flyteidl.admin - * @interface IObjectGetRequest - * @property {flyteidl.core.IIdentifier|null} [id] ObjectGetRequest id - */ - - /** - * Constructs a new ObjectGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ObjectGetRequest. - * @implements IObjectGetRequest - * @constructor - * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set - */ - function ObjectGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ObjectGetRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.ObjectGetRequest - * @instance - */ - ObjectGetRequest.prototype.id = null; - - /** - * Creates a new ObjectGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {flyteidl.admin.IObjectGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest instance - */ - ObjectGetRequest.create = function create(properties) { - return new ObjectGetRequest(properties); - }; - - /** - * Encodes the specified ObjectGetRequest message. Does not implicitly {@link flyteidl.admin.ObjectGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {flyteidl.admin.IObjectGetRequest} message ObjectGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ObjectGetRequest.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 an ObjectGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ObjectGetRequest} ObjectGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ObjectGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ObjectGetRequest(); - while (reader.pos < end) { - var 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 an ObjectGetRequest message. - * @function verify - * @memberof flyteidl.admin.ObjectGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ObjectGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ObjectGetRequest; - })(); - - admin.ResourceListRequest = (function() { - - /** - * Properties of a ResourceListRequest. - * @memberof flyteidl.admin - * @interface IResourceListRequest - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ResourceListRequest id - * @property {number|null} [limit] ResourceListRequest limit - * @property {string|null} [token] ResourceListRequest token - * @property {string|null} [filters] ResourceListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] ResourceListRequest sortBy - */ - - /** - * Constructs a new ResourceListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ResourceListRequest. - * @implements IResourceListRequest - * @constructor - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set - */ - function ResourceListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ResourceListRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.id = null; - - /** - * ResourceListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.limit = 0; - - /** - * ResourceListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.token = ""; - - /** - * ResourceListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.filters = ""; - - /** - * ResourceListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ResourceListRequest - * @instance - */ - ResourceListRequest.prototype.sortBy = null; - - /** - * Creates a new ResourceListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {flyteidl.admin.IResourceListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest instance - */ - ResourceListRequest.create = function create(properties) { - return new ResourceListRequest(properties); - }; - - /** - * Encodes the specified ResourceListRequest message. Does not implicitly {@link flyteidl.admin.ResourceListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {flyteidl.admin.IResourceListRequest} message ResourceListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ResourceListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ResourceListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ResourceListRequest} ResourceListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ResourceListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ResourceListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ResourceListRequest message. - * @function verify - * @memberof flyteidl.admin.ResourceListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ResourceListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return ResourceListRequest; - })(); - - admin.EmailNotification = (function() { - - /** - * Properties of an EmailNotification. - * @memberof flyteidl.admin - * @interface IEmailNotification - * @property {Array.|null} [recipientsEmail] EmailNotification recipientsEmail - */ - - /** - * Constructs a new EmailNotification. - * @memberof flyteidl.admin - * @classdesc Represents an EmailNotification. - * @implements IEmailNotification - * @constructor - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set - */ - function EmailNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EmailNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailNotification - * @instance - */ - EmailNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new EmailNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {flyteidl.admin.IEmailNotification=} [properties] Properties to set - * @returns {flyteidl.admin.EmailNotification} EmailNotification instance - */ - EmailNotification.create = function create(properties) { - return new EmailNotification(properties); - }; - - /** - * Encodes the specified EmailNotification message. Does not implicitly {@link flyteidl.admin.EmailNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {flyteidl.admin.IEmailNotification} message EmailNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes an EmailNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EmailNotification} EmailNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EmailNotification message. - * @function verify - * @memberof flyteidl.admin.EmailNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return EmailNotification; - })(); - - admin.PagerDutyNotification = (function() { - - /** - * Properties of a PagerDutyNotification. - * @memberof flyteidl.admin - * @interface IPagerDutyNotification - * @property {Array.|null} [recipientsEmail] PagerDutyNotification recipientsEmail - */ - - /** - * Constructs a new PagerDutyNotification. - * @memberof flyteidl.admin - * @classdesc Represents a PagerDutyNotification. - * @implements IPagerDutyNotification - * @constructor - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set - */ - function PagerDutyNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PagerDutyNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.PagerDutyNotification - * @instance - */ - PagerDutyNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new PagerDutyNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {flyteidl.admin.IPagerDutyNotification=} [properties] Properties to set - * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification instance - */ - PagerDutyNotification.create = function create(properties) { - return new PagerDutyNotification(properties); - }; - - /** - * Encodes the specified PagerDutyNotification message. Does not implicitly {@link flyteidl.admin.PagerDutyNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {flyteidl.admin.IPagerDutyNotification} message PagerDutyNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PagerDutyNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes a PagerDutyNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PagerDutyNotification} PagerDutyNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PagerDutyNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PagerDutyNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PagerDutyNotification message. - * @function verify - * @memberof flyteidl.admin.PagerDutyNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PagerDutyNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return PagerDutyNotification; - })(); - - admin.SlackNotification = (function() { - - /** - * Properties of a SlackNotification. - * @memberof flyteidl.admin - * @interface ISlackNotification - * @property {Array.|null} [recipientsEmail] SlackNotification recipientsEmail - */ - - /** - * Constructs a new SlackNotification. - * @memberof flyteidl.admin - * @classdesc Represents a SlackNotification. - * @implements ISlackNotification - * @constructor - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set - */ - function SlackNotification(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SlackNotification recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.SlackNotification - * @instance - */ - SlackNotification.prototype.recipientsEmail = $util.emptyArray; - - /** - * Creates a new SlackNotification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {flyteidl.admin.ISlackNotification=} [properties] Properties to set - * @returns {flyteidl.admin.SlackNotification} SlackNotification instance - */ - SlackNotification.create = function create(properties) { - return new SlackNotification(properties); - }; - - /** - * Encodes the specified SlackNotification message. Does not implicitly {@link flyteidl.admin.SlackNotification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {flyteidl.admin.ISlackNotification} message SlackNotification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SlackNotification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - return writer; - }; - - /** - * Decodes a SlackNotification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SlackNotification} SlackNotification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SlackNotification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SlackNotification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SlackNotification message. - * @function verify - * @memberof flyteidl.admin.SlackNotification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SlackNotification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - return null; - }; - - return SlackNotification; - })(); - - admin.Notification = (function() { - - /** - * Properties of a Notification. - * @memberof flyteidl.admin - * @interface INotification - * @property {Array.|null} [phases] Notification phases - * @property {flyteidl.admin.IEmailNotification|null} [email] Notification email - * @property {flyteidl.admin.IPagerDutyNotification|null} [pagerDuty] Notification pagerDuty - * @property {flyteidl.admin.ISlackNotification|null} [slack] Notification slack - */ - - /** - * Constructs a new Notification. - * @memberof flyteidl.admin - * @classdesc Represents a Notification. - * @implements INotification - * @constructor - * @param {flyteidl.admin.INotification=} [properties] Properties to set - */ - function Notification(properties) { - this.phases = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Notification phases. - * @member {Array.} phases - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.phases = $util.emptyArray; - - /** - * Notification email. - * @member {flyteidl.admin.IEmailNotification|null|undefined} email - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.email = null; - - /** - * Notification pagerDuty. - * @member {flyteidl.admin.IPagerDutyNotification|null|undefined} pagerDuty - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.pagerDuty = null; - - /** - * Notification slack. - * @member {flyteidl.admin.ISlackNotification|null|undefined} slack - * @memberof flyteidl.admin.Notification - * @instance - */ - Notification.prototype.slack = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Notification type. - * @member {"email"|"pagerDuty"|"slack"|undefined} type - * @memberof flyteidl.admin.Notification - * @instance - */ - Object.defineProperty(Notification.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["email", "pagerDuty", "slack"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Notification instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Notification - * @static - * @param {flyteidl.admin.INotification=} [properties] Properties to set - * @returns {flyteidl.admin.Notification} Notification instance - */ - Notification.create = function create(properties) { - return new Notification(properties); - }; - - /** - * Encodes the specified Notification message. Does not implicitly {@link flyteidl.admin.Notification.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Notification - * @static - * @param {flyteidl.admin.INotification} message Notification message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Notification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.phases != null && message.phases.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.phases.length; ++i) - writer.int32(message.phases[i]); - writer.ldelim(); - } - if (message.email != null && message.hasOwnProperty("email")) - $root.flyteidl.admin.EmailNotification.encode(message.email, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) - $root.flyteidl.admin.PagerDutyNotification.encode(message.pagerDuty, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.slack != null && message.hasOwnProperty("slack")) - $root.flyteidl.admin.SlackNotification.encode(message.slack, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Notification message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Notification - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Notification} Notification - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Notification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Notification(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.phases && message.phases.length)) - message.phases = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.phases.push(reader.int32()); - } else - message.phases.push(reader.int32()); - break; - case 2: - message.email = $root.flyteidl.admin.EmailNotification.decode(reader, reader.uint32()); - break; - case 3: - message.pagerDuty = $root.flyteidl.admin.PagerDutyNotification.decode(reader, reader.uint32()); - break; - case 4: - message.slack = $root.flyteidl.admin.SlackNotification.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Notification message. - * @function verify - * @memberof flyteidl.admin.Notification - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Notification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.phases != null && message.hasOwnProperty("phases")) { - if (!Array.isArray(message.phases)) - return "phases: array expected"; - for (var i = 0; i < message.phases.length; ++i) - switch (message.phases[i]) { - default: - return "phases: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - } - if (message.email != null && message.hasOwnProperty("email")) { - properties.type = 1; - { - var error = $root.flyteidl.admin.EmailNotification.verify(message.email); - if (error) - return "email." + error; - } - } - if (message.pagerDuty != null && message.hasOwnProperty("pagerDuty")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.admin.PagerDutyNotification.verify(message.pagerDuty); - if (error) - return "pagerDuty." + error; - } - } - if (message.slack != null && message.hasOwnProperty("slack")) { - if (properties.type === 1) - return "type: multiple values"; - properties.type = 1; - { - var error = $root.flyteidl.admin.SlackNotification.verify(message.slack); - if (error) - return "slack." + error; - } - } - return null; - }; - - return Notification; - })(); - - admin.UrlBlob = (function() { - - /** - * Properties of an UrlBlob. - * @memberof flyteidl.admin - * @interface IUrlBlob - * @property {string|null} [url] UrlBlob url - * @property {Long|null} [bytes] UrlBlob bytes - */ - - /** - * Constructs a new UrlBlob. - * @memberof flyteidl.admin - * @classdesc Represents an UrlBlob. - * @implements IUrlBlob - * @constructor - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set - */ - function UrlBlob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UrlBlob url. - * @member {string} url - * @memberof flyteidl.admin.UrlBlob - * @instance - */ - UrlBlob.prototype.url = ""; - - /** - * UrlBlob bytes. - * @member {Long} bytes - * @memberof flyteidl.admin.UrlBlob - * @instance - */ - UrlBlob.prototype.bytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new UrlBlob instance using the specified properties. - * @function create - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {flyteidl.admin.IUrlBlob=} [properties] Properties to set - * @returns {flyteidl.admin.UrlBlob} UrlBlob instance - */ - UrlBlob.create = function create(properties) { - return new UrlBlob(properties); - }; - - /** - * Encodes the specified UrlBlob message. Does not implicitly {@link flyteidl.admin.UrlBlob.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {flyteidl.admin.IUrlBlob} message UrlBlob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlBlob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.url != null && message.hasOwnProperty("url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); - if (message.bytes != null && message.hasOwnProperty("bytes")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.bytes); - return writer; - }; - - /** - * Decodes an UrlBlob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.UrlBlob} UrlBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlBlob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.UrlBlob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.url = reader.string(); - break; - case 2: - message.bytes = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UrlBlob message. - * @function verify - * @memberof flyteidl.admin.UrlBlob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UrlBlob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.bytes != null && message.hasOwnProperty("bytes")) - if (!$util.isInteger(message.bytes) && !(message.bytes && $util.isInteger(message.bytes.low) && $util.isInteger(message.bytes.high))) - return "bytes: integer|Long expected"; - return null; - }; - - return UrlBlob; - })(); - - admin.Labels = (function() { - - /** - * Properties of a Labels. - * @memberof flyteidl.admin - * @interface ILabels - * @property {Object.|null} [values] Labels values - */ - - /** - * Constructs a new Labels. - * @memberof flyteidl.admin - * @classdesc Represents a Labels. - * @implements ILabels - * @constructor - * @param {flyteidl.admin.ILabels=} [properties] Properties to set - */ - function Labels(properties) { - this.values = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Labels values. - * @member {Object.} values - * @memberof flyteidl.admin.Labels - * @instance - */ - Labels.prototype.values = $util.emptyObject; - - /** - * Creates a new Labels instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Labels - * @static - * @param {flyteidl.admin.ILabels=} [properties] Properties to set - * @returns {flyteidl.admin.Labels} Labels instance - */ - Labels.create = function create(properties) { - return new Labels(properties); - }; - - /** - * Encodes the specified Labels message. Does not implicitly {@link flyteidl.admin.Labels.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Labels - * @static - * @param {flyteidl.admin.ILabels} message Labels message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Labels.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a Labels message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Labels - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Labels} Labels - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Labels.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Labels(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Labels message. - * @function verify - * @memberof flyteidl.admin.Labels - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Labels.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!$util.isObject(message.values)) - return "values: object expected"; - var key = Object.keys(message.values); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.values[key[i]])) - return "values: string{k:string} expected"; - } - return null; - }; - - return Labels; - })(); - - admin.Annotations = (function() { - - /** - * Properties of an Annotations. - * @memberof flyteidl.admin - * @interface IAnnotations - * @property {Object.|null} [values] Annotations values - */ - - /** - * Constructs a new Annotations. - * @memberof flyteidl.admin - * @classdesc Represents an Annotations. - * @implements IAnnotations - * @constructor - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set - */ - function Annotations(properties) { - this.values = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotations values. - * @member {Object.} values - * @memberof flyteidl.admin.Annotations - * @instance - */ - Annotations.prototype.values = $util.emptyObject; - - /** - * Creates a new Annotations instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Annotations - * @static - * @param {flyteidl.admin.IAnnotations=} [properties] Properties to set - * @returns {flyteidl.admin.Annotations} Annotations instance - */ - Annotations.create = function create(properties) { - return new Annotations(properties); - }; - - /** - * Encodes the specified Annotations message. Does not implicitly {@link flyteidl.admin.Annotations.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Annotations - * @static - * @param {flyteidl.admin.IAnnotations} message Annotations message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotations.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - for (var keys = Object.keys(message.values), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.values[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes an Annotations message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Annotations - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Annotations} Annotations - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotations.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Annotations(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.values === $util.emptyObject) - message.values = {}; - key = reader.string(); - reader.pos++; - message.values[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Annotations message. - * @function verify - * @memberof flyteidl.admin.Annotations - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotations.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!$util.isObject(message.values)) - return "values: object expected"; - var key = Object.keys(message.values); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.values[key[i]])) - return "values: string{k:string} expected"; - } - return null; - }; - - return Annotations; - })(); - - admin.Envs = (function() { - - /** - * Properties of an Envs. - * @memberof flyteidl.admin - * @interface IEnvs - * @property {Array.|null} [values] Envs values - */ - - /** - * Constructs a new Envs. - * @memberof flyteidl.admin - * @classdesc Represents an Envs. - * @implements IEnvs - * @constructor - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set - */ - function Envs(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Envs values. - * @member {Array.} values - * @memberof flyteidl.admin.Envs - * @instance - */ - Envs.prototype.values = $util.emptyArray; - - /** - * Creates a new Envs instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Envs - * @static - * @param {flyteidl.admin.IEnvs=} [properties] Properties to set - * @returns {flyteidl.admin.Envs} Envs instance - */ - Envs.create = function create(properties) { - return new Envs(properties); - }; - - /** - * Encodes the specified Envs message. Does not implicitly {@link flyteidl.admin.Envs.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Envs - * @static - * @param {flyteidl.admin.IEnvs} message Envs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Envs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.flyteidl.core.KeyValuePair.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Envs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Envs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Envs} Envs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Envs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Envs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.flyteidl.core.KeyValuePair.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Envs message. - * @function verify - * @memberof flyteidl.admin.Envs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Envs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.flyteidl.core.KeyValuePair.verify(message.values[i]); - if (error) - return "values." + error; - } - } - return null; - }; - - return Envs; - })(); - - admin.AuthRole = (function() { - - /** - * Properties of an AuthRole. - * @memberof flyteidl.admin - * @interface IAuthRole - * @property {string|null} [assumableIamRole] AuthRole assumableIamRole - * @property {string|null} [kubernetesServiceAccount] AuthRole kubernetesServiceAccount - */ - - /** - * Constructs a new AuthRole. - * @memberof flyteidl.admin - * @classdesc Represents an AuthRole. - * @implements IAuthRole - * @constructor - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set - */ - function AuthRole(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AuthRole assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.AuthRole - * @instance - */ - AuthRole.prototype.assumableIamRole = ""; - - /** - * AuthRole kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.AuthRole - * @instance - */ - AuthRole.prototype.kubernetesServiceAccount = ""; - - /** - * Creates a new AuthRole instance using the specified properties. - * @function create - * @memberof flyteidl.admin.AuthRole - * @static - * @param {flyteidl.admin.IAuthRole=} [properties] Properties to set - * @returns {flyteidl.admin.AuthRole} AuthRole instance - */ - AuthRole.create = function create(properties) { - return new AuthRole(properties); - }; - - /** - * Encodes the specified AuthRole message. Does not implicitly {@link flyteidl.admin.AuthRole.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.AuthRole - * @static - * @param {flyteidl.admin.IAuthRole} message AuthRole message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AuthRole.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); - return writer; - }; - - /** - * Decodes an AuthRole message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.AuthRole - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.AuthRole} AuthRole - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AuthRole.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AuthRole(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.assumableIamRole = reader.string(); - break; - case 2: - message.kubernetesServiceAccount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an AuthRole message. - * @function verify - * @memberof flyteidl.admin.AuthRole - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AuthRole.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - if (!$util.isString(message.assumableIamRole)) - return "assumableIamRole: string expected"; - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - if (!$util.isString(message.kubernetesServiceAccount)) - return "kubernetesServiceAccount: string expected"; - return null; - }; - - return AuthRole; - })(); - - admin.RawOutputDataConfig = (function() { - - /** - * Properties of a RawOutputDataConfig. - * @memberof flyteidl.admin - * @interface IRawOutputDataConfig - * @property {string|null} [outputLocationPrefix] RawOutputDataConfig outputLocationPrefix - */ - - /** - * Constructs a new RawOutputDataConfig. - * @memberof flyteidl.admin - * @classdesc Represents a RawOutputDataConfig. - * @implements IRawOutputDataConfig - * @constructor - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set - */ - function RawOutputDataConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RawOutputDataConfig outputLocationPrefix. - * @member {string} outputLocationPrefix - * @memberof flyteidl.admin.RawOutputDataConfig - * @instance - */ - RawOutputDataConfig.prototype.outputLocationPrefix = ""; - - /** - * Creates a new RawOutputDataConfig instance using the specified properties. - * @function create - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {flyteidl.admin.IRawOutputDataConfig=} [properties] Properties to set - * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig instance - */ - RawOutputDataConfig.create = function create(properties) { - return new RawOutputDataConfig(properties); - }; - - /** - * Encodes the specified RawOutputDataConfig message. Does not implicitly {@link flyteidl.admin.RawOutputDataConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {flyteidl.admin.IRawOutputDataConfig} message RawOutputDataConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RawOutputDataConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputLocationPrefix); - return writer; - }; - - /** - * Decodes a RawOutputDataConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.RawOutputDataConfig} RawOutputDataConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RawOutputDataConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.RawOutputDataConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputLocationPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a RawOutputDataConfig message. - * @function verify - * @memberof flyteidl.admin.RawOutputDataConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RawOutputDataConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.outputLocationPrefix != null && message.hasOwnProperty("outputLocationPrefix")) - if (!$util.isString(message.outputLocationPrefix)) - return "outputLocationPrefix: string expected"; - return null; - }; - - return RawOutputDataConfig; - })(); - - admin.FlyteURLs = (function() { - - /** - * Properties of a FlyteURLs. - * @memberof flyteidl.admin - * @interface IFlyteURLs - * @property {string|null} [inputs] FlyteURLs inputs - * @property {string|null} [outputs] FlyteURLs outputs - * @property {string|null} [deck] FlyteURLs deck - */ - - /** - * Constructs a new FlyteURLs. - * @memberof flyteidl.admin - * @classdesc Represents a FlyteURLs. - * @implements IFlyteURLs - * @constructor - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set - */ - function FlyteURLs(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FlyteURLs inputs. - * @member {string} inputs - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.inputs = ""; - - /** - * FlyteURLs outputs. - * @member {string} outputs - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.outputs = ""; - - /** - * FlyteURLs deck. - * @member {string} deck - * @memberof flyteidl.admin.FlyteURLs - * @instance - */ - FlyteURLs.prototype.deck = ""; - - /** - * Creates a new FlyteURLs instance using the specified properties. - * @function create - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {flyteidl.admin.IFlyteURLs=} [properties] Properties to set - * @returns {flyteidl.admin.FlyteURLs} FlyteURLs instance - */ - FlyteURLs.create = function create(properties) { - return new FlyteURLs(properties); - }; - - /** - * Encodes the specified FlyteURLs message. Does not implicitly {@link flyteidl.admin.FlyteURLs.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {flyteidl.admin.IFlyteURLs} message FlyteURLs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FlyteURLs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.inputs); - if (message.outputs != null && message.hasOwnProperty("outputs")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.outputs); - if (message.deck != null && message.hasOwnProperty("deck")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deck); - return writer; - }; - - /** - * Decodes a FlyteURLs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.FlyteURLs} FlyteURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FlyteURLs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FlyteURLs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = reader.string(); - break; - case 2: - message.outputs = reader.string(); - break; - case 3: - message.deck = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FlyteURLs message. - * @function verify - * @memberof flyteidl.admin.FlyteURLs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FlyteURLs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) - if (!$util.isString(message.inputs)) - return "inputs: string expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) - if (!$util.isString(message.outputs)) - return "outputs: string expected"; - if (message.deck != null && message.hasOwnProperty("deck")) - if (!$util.isString(message.deck)) - return "deck: string expected"; - return null; - }; - - return FlyteURLs; - })(); - - admin.DescriptionEntity = (function() { - - /** - * Properties of a DescriptionEntity. - * @memberof flyteidl.admin - * @interface IDescriptionEntity - * @property {flyteidl.core.IIdentifier|null} [id] DescriptionEntity id - * @property {string|null} [shortDescription] DescriptionEntity shortDescription - * @property {flyteidl.admin.IDescription|null} [longDescription] DescriptionEntity longDescription - * @property {flyteidl.admin.ISourceCode|null} [sourceCode] DescriptionEntity sourceCode - * @property {Array.|null} [tags] DescriptionEntity tags - */ - - /** - * Constructs a new DescriptionEntity. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntity. - * @implements IDescriptionEntity - * @constructor - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set - */ - function DescriptionEntity(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntity id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.id = null; - - /** - * DescriptionEntity shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.shortDescription = ""; - - /** - * DescriptionEntity longDescription. - * @member {flyteidl.admin.IDescription|null|undefined} longDescription - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.longDescription = null; - - /** - * DescriptionEntity sourceCode. - * @member {flyteidl.admin.ISourceCode|null|undefined} sourceCode - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.sourceCode = null; - - /** - * DescriptionEntity tags. - * @member {Array.} tags - * @memberof flyteidl.admin.DescriptionEntity - * @instance - */ - DescriptionEntity.prototype.tags = $util.emptyArray; - - /** - * Creates a new DescriptionEntity instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {flyteidl.admin.IDescriptionEntity=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity instance - */ - DescriptionEntity.create = function create(properties) { - return new DescriptionEntity(properties); - }; - - /** - * Encodes the specified DescriptionEntity message. Does not implicitly {@link flyteidl.admin.DescriptionEntity.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {flyteidl.admin.IDescriptionEntity} message DescriptionEntity message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntity.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(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.shortDescription); - if (message.longDescription != null && message.hasOwnProperty("longDescription")) - $root.flyteidl.admin.Description.encode(message.longDescription, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) - $root.flyteidl.admin.SourceCode.encode(message.sourceCode, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.tags[i]); - return writer; - }; - - /** - * Decodes a DescriptionEntity message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntity} DescriptionEntity - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntity(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.shortDescription = reader.string(); - break; - case 3: - message.longDescription = $root.flyteidl.admin.Description.decode(reader, reader.uint32()); - break; - case 4: - message.sourceCode = $root.flyteidl.admin.SourceCode.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntity message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntity - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - if (message.longDescription != null && message.hasOwnProperty("longDescription")) { - var error = $root.flyteidl.admin.Description.verify(message.longDescription); - if (error) - return "longDescription." + error; - } - if (message.sourceCode != null && message.hasOwnProperty("sourceCode")) { - var error = $root.flyteidl.admin.SourceCode.verify(message.sourceCode); - if (error) - return "sourceCode." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return DescriptionEntity; - })(); - - /** - * DescriptionFormat enum. - * @name flyteidl.admin.DescriptionFormat - * @enum {string} - * @property {number} DESCRIPTION_FORMAT_UNKNOWN=0 DESCRIPTION_FORMAT_UNKNOWN value - * @property {number} DESCRIPTION_FORMAT_MARKDOWN=1 DESCRIPTION_FORMAT_MARKDOWN value - * @property {number} DESCRIPTION_FORMAT_HTML=2 DESCRIPTION_FORMAT_HTML value - * @property {number} DESCRIPTION_FORMAT_RST=3 DESCRIPTION_FORMAT_RST value - */ - admin.DescriptionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DESCRIPTION_FORMAT_UNKNOWN"] = 0; - values[valuesById[1] = "DESCRIPTION_FORMAT_MARKDOWN"] = 1; - values[valuesById[2] = "DESCRIPTION_FORMAT_HTML"] = 2; - values[valuesById[3] = "DESCRIPTION_FORMAT_RST"] = 3; - return values; - })(); - - admin.Description = (function() { - - /** - * Properties of a Description. - * @memberof flyteidl.admin - * @interface IDescription - * @property {string|null} [value] Description value - * @property {string|null} [uri] Description uri - * @property {flyteidl.admin.DescriptionFormat|null} [format] Description format - * @property {string|null} [iconLink] Description iconLink - */ - - /** - * Constructs a new Description. - * @memberof flyteidl.admin - * @classdesc Represents a Description. - * @implements IDescription - * @constructor - * @param {flyteidl.admin.IDescription=} [properties] Properties to set - */ - function Description(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Description value. - * @member {string} value - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.value = ""; - - /** - * Description uri. - * @member {string} uri - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.uri = ""; - - /** - * Description format. - * @member {flyteidl.admin.DescriptionFormat} format - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.format = 0; - - /** - * Description iconLink. - * @member {string} iconLink - * @memberof flyteidl.admin.Description - * @instance - */ - Description.prototype.iconLink = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Description content. - * @member {"value"|"uri"|undefined} content - * @memberof flyteidl.admin.Description - * @instance - */ - Object.defineProperty(Description.prototype, "content", { - get: $util.oneOfGetter($oneOfFields = ["value", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Description instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Description - * @static - * @param {flyteidl.admin.IDescription=} [properties] Properties to set - * @returns {flyteidl.admin.Description} Description instance - */ - Description.create = function create(properties) { - return new Description(properties); - }; - - /** - * Encodes the specified Description message. Does not implicitly {@link flyteidl.admin.Description.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Description - * @static - * @param {flyteidl.admin.IDescription} message Description message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Description.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - if (message.format != null && message.hasOwnProperty("format")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.format); - if (message.iconLink != null && message.hasOwnProperty("iconLink")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.iconLink); - return writer; - }; - - /** - * Decodes a Description message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Description - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Description} Description - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Description.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Description(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - case 2: - message.uri = reader.string(); - break; - case 3: - message.format = reader.int32(); - break; - case 4: - message.iconLink = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Description message. - * @function verify - * @memberof flyteidl.admin.Description - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Description.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.content = 1; - if (!$util.isString(message.value)) - return "value: string expected"; - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.content === 1) - return "content: multiple values"; - properties.content = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - if (message.format != null && message.hasOwnProperty("format")) - switch (message.format) { - default: - return "format: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.iconLink != null && message.hasOwnProperty("iconLink")) - if (!$util.isString(message.iconLink)) - return "iconLink: string expected"; - return null; - }; - - return Description; - })(); - - admin.SourceCode = (function() { - - /** - * Properties of a SourceCode. - * @memberof flyteidl.admin - * @interface ISourceCode - * @property {string|null} [link] SourceCode link - */ - - /** - * Constructs a new SourceCode. - * @memberof flyteidl.admin - * @classdesc Represents a SourceCode. - * @implements ISourceCode - * @constructor - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set - */ - function SourceCode(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SourceCode link. - * @member {string} link - * @memberof flyteidl.admin.SourceCode - * @instance - */ - SourceCode.prototype.link = ""; - - /** - * Creates a new SourceCode instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SourceCode - * @static - * @param {flyteidl.admin.ISourceCode=} [properties] Properties to set - * @returns {flyteidl.admin.SourceCode} SourceCode instance - */ - SourceCode.create = function create(properties) { - return new SourceCode(properties); - }; - - /** - * Encodes the specified SourceCode message. Does not implicitly {@link flyteidl.admin.SourceCode.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SourceCode - * @static - * @param {flyteidl.admin.ISourceCode} message SourceCode message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.link != null && message.hasOwnProperty("link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - return writer; - }; - - /** - * Decodes a SourceCode message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SourceCode - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SourceCode} SourceCode - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SourceCode(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.link = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SourceCode message. - * @function verify - * @memberof flyteidl.admin.SourceCode - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.link != null && message.hasOwnProperty("link")) - if (!$util.isString(message.link)) - return "link: string expected"; - return null; - }; - - return SourceCode; - })(); - - admin.DescriptionEntityList = (function() { - - /** - * Properties of a DescriptionEntityList. - * @memberof flyteidl.admin - * @interface IDescriptionEntityList - * @property {Array.|null} [descriptionEntities] DescriptionEntityList descriptionEntities - * @property {string|null} [token] DescriptionEntityList token - */ - - /** - * Constructs a new DescriptionEntityList. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityList. - * @implements IDescriptionEntityList - * @constructor - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set - */ - function DescriptionEntityList(properties) { - this.descriptionEntities = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntityList descriptionEntities. - * @member {Array.} descriptionEntities - * @memberof flyteidl.admin.DescriptionEntityList - * @instance - */ - DescriptionEntityList.prototype.descriptionEntities = $util.emptyArray; - - /** - * DescriptionEntityList token. - * @member {string} token - * @memberof flyteidl.admin.DescriptionEntityList - * @instance - */ - DescriptionEntityList.prototype.token = ""; - - /** - * Creates a new DescriptionEntityList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {flyteidl.admin.IDescriptionEntityList=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList instance - */ - DescriptionEntityList.create = function create(properties) { - return new DescriptionEntityList(properties); - }; - - /** - * Encodes the specified DescriptionEntityList message. Does not implicitly {@link flyteidl.admin.DescriptionEntityList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {flyteidl.admin.IDescriptionEntityList} message DescriptionEntityList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntityList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.descriptionEntities != null && message.descriptionEntities.length) - for (var i = 0; i < message.descriptionEntities.length; ++i) - $root.flyteidl.admin.DescriptionEntity.encode(message.descriptionEntities[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a DescriptionEntityList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntityList} DescriptionEntityList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntityList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.descriptionEntities && message.descriptionEntities.length)) - message.descriptionEntities = []; - message.descriptionEntities.push($root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntityList message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntityList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntityList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.descriptionEntities != null && message.hasOwnProperty("descriptionEntities")) { - if (!Array.isArray(message.descriptionEntities)) - return "descriptionEntities: array expected"; - for (var i = 0; i < message.descriptionEntities.length; ++i) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.descriptionEntities[i]); - if (error) - return "descriptionEntities." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return DescriptionEntityList; - })(); - - admin.DescriptionEntityListRequest = (function() { - - /** - * Properties of a DescriptionEntityListRequest. - * @memberof flyteidl.admin - * @interface IDescriptionEntityListRequest - * @property {flyteidl.core.ResourceType|null} [resourceType] DescriptionEntityListRequest resourceType - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] DescriptionEntityListRequest id - * @property {number|null} [limit] DescriptionEntityListRequest limit - * @property {string|null} [token] DescriptionEntityListRequest token - * @property {string|null} [filters] DescriptionEntityListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] DescriptionEntityListRequest sortBy - */ - - /** - * Constructs a new DescriptionEntityListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a DescriptionEntityListRequest. - * @implements IDescriptionEntityListRequest - * @constructor - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set - */ - function DescriptionEntityListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptionEntityListRequest resourceType. - * @member {flyteidl.core.ResourceType} resourceType - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.resourceType = 0; - - /** - * DescriptionEntityListRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.id = null; - - /** - * DescriptionEntityListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.limit = 0; - - /** - * DescriptionEntityListRequest token. - * @member {string} token - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.token = ""; - - /** - * DescriptionEntityListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.filters = ""; - - /** - * DescriptionEntityListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @instance - */ - DescriptionEntityListRequest.prototype.sortBy = null; - - /** - * Creates a new DescriptionEntityListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest instance - */ - DescriptionEntityListRequest.create = function create(properties) { - return new DescriptionEntityListRequest(properties); - }; - - /** - * Encodes the specified DescriptionEntityListRequest message. Does not implicitly {@link flyteidl.admin.DescriptionEntityListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {flyteidl.admin.IDescriptionEntityListRequest} message DescriptionEntityListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptionEntityListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a DescriptionEntityListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DescriptionEntityListRequest} DescriptionEntityListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptionEntityListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DescriptionEntityListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - case 2: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.filters = reader.string(); - break; - case 6: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptionEntityListRequest message. - * @function verify - * @memberof flyteidl.admin.DescriptionEntityListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptionEntityListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return DescriptionEntityListRequest; - })(); - - admin.EventErrorAlreadyInTerminalState = (function() { - - /** - * Properties of an EventErrorAlreadyInTerminalState. - * @memberof flyteidl.admin - * @interface IEventErrorAlreadyInTerminalState - * @property {string|null} [currentPhase] EventErrorAlreadyInTerminalState currentPhase - */ - - /** - * Constructs a new EventErrorAlreadyInTerminalState. - * @memberof flyteidl.admin - * @classdesc Represents an EventErrorAlreadyInTerminalState. - * @implements IEventErrorAlreadyInTerminalState - * @constructor - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set - */ - function EventErrorAlreadyInTerminalState(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventErrorAlreadyInTerminalState currentPhase. - * @member {string} currentPhase - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @instance - */ - EventErrorAlreadyInTerminalState.prototype.currentPhase = ""; - - /** - * Creates a new EventErrorAlreadyInTerminalState instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState instance - */ - EventErrorAlreadyInTerminalState.create = function create(properties) { - return new EventErrorAlreadyInTerminalState(properties); - }; - - /** - * Encodes the specified EventErrorAlreadyInTerminalState message. Does not implicitly {@link flyteidl.admin.EventErrorAlreadyInTerminalState.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {flyteidl.admin.IEventErrorAlreadyInTerminalState} message EventErrorAlreadyInTerminalState message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventErrorAlreadyInTerminalState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.currentPhase); - return writer; - }; - - /** - * Decodes an EventErrorAlreadyInTerminalState message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventErrorAlreadyInTerminalState} EventErrorAlreadyInTerminalState - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventErrorAlreadyInTerminalState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorAlreadyInTerminalState(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.currentPhase = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventErrorAlreadyInTerminalState message. - * @function verify - * @memberof flyteidl.admin.EventErrorAlreadyInTerminalState - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventErrorAlreadyInTerminalState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.currentPhase != null && message.hasOwnProperty("currentPhase")) - if (!$util.isString(message.currentPhase)) - return "currentPhase: string expected"; - return null; - }; - - return EventErrorAlreadyInTerminalState; - })(); - - admin.EventErrorIncompatibleCluster = (function() { - - /** - * Properties of an EventErrorIncompatibleCluster. - * @memberof flyteidl.admin - * @interface IEventErrorIncompatibleCluster - * @property {string|null} [cluster] EventErrorIncompatibleCluster cluster - */ - - /** - * Constructs a new EventErrorIncompatibleCluster. - * @memberof flyteidl.admin - * @classdesc Represents an EventErrorIncompatibleCluster. - * @implements IEventErrorIncompatibleCluster - * @constructor - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set - */ - function EventErrorIncompatibleCluster(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventErrorIncompatibleCluster cluster. - * @member {string} cluster - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @instance - */ - EventErrorIncompatibleCluster.prototype.cluster = ""; - - /** - * Creates a new EventErrorIncompatibleCluster instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster=} [properties] Properties to set - * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster instance - */ - EventErrorIncompatibleCluster.create = function create(properties) { - return new EventErrorIncompatibleCluster(properties); - }; - - /** - * Encodes the specified EventErrorIncompatibleCluster message. Does not implicitly {@link flyteidl.admin.EventErrorIncompatibleCluster.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {flyteidl.admin.IEventErrorIncompatibleCluster} message EventErrorIncompatibleCluster message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventErrorIncompatibleCluster.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cluster != null && message.hasOwnProperty("cluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster); - return writer; - }; - - /** - * Decodes an EventErrorIncompatibleCluster message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventErrorIncompatibleCluster} EventErrorIncompatibleCluster - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventErrorIncompatibleCluster.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventErrorIncompatibleCluster(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cluster = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventErrorIncompatibleCluster message. - * @function verify - * @memberof flyteidl.admin.EventErrorIncompatibleCluster - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventErrorIncompatibleCluster.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cluster != null && message.hasOwnProperty("cluster")) - if (!$util.isString(message.cluster)) - return "cluster: string expected"; - return null; - }; - - return EventErrorIncompatibleCluster; - })(); - - admin.EventFailureReason = (function() { - - /** - * Properties of an EventFailureReason. - * @memberof flyteidl.admin - * @interface IEventFailureReason - * @property {flyteidl.admin.IEventErrorAlreadyInTerminalState|null} [alreadyInTerminalState] EventFailureReason alreadyInTerminalState - * @property {flyteidl.admin.IEventErrorIncompatibleCluster|null} [incompatibleCluster] EventFailureReason incompatibleCluster - */ - - /** - * Constructs a new EventFailureReason. - * @memberof flyteidl.admin - * @classdesc Represents an EventFailureReason. - * @implements IEventFailureReason - * @constructor - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set - */ - function EventFailureReason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EventFailureReason alreadyInTerminalState. - * @member {flyteidl.admin.IEventErrorAlreadyInTerminalState|null|undefined} alreadyInTerminalState - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - EventFailureReason.prototype.alreadyInTerminalState = null; - - /** - * EventFailureReason incompatibleCluster. - * @member {flyteidl.admin.IEventErrorIncompatibleCluster|null|undefined} incompatibleCluster - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - EventFailureReason.prototype.incompatibleCluster = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * EventFailureReason reason. - * @member {"alreadyInTerminalState"|"incompatibleCluster"|undefined} reason - * @memberof flyteidl.admin.EventFailureReason - * @instance - */ - Object.defineProperty(EventFailureReason.prototype, "reason", { - get: $util.oneOfGetter($oneOfFields = ["alreadyInTerminalState", "incompatibleCluster"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new EventFailureReason instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {flyteidl.admin.IEventFailureReason=} [properties] Properties to set - * @returns {flyteidl.admin.EventFailureReason} EventFailureReason instance - */ - EventFailureReason.create = function create(properties) { - return new EventFailureReason(properties); - }; - - /** - * Encodes the specified EventFailureReason message. Does not implicitly {@link flyteidl.admin.EventFailureReason.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {flyteidl.admin.IEventFailureReason} message EventFailureReason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EventFailureReason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) - $root.flyteidl.admin.EventErrorAlreadyInTerminalState.encode(message.alreadyInTerminalState, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) - $root.flyteidl.admin.EventErrorIncompatibleCluster.encode(message.incompatibleCluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EventFailureReason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EventFailureReason} EventFailureReason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EventFailureReason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EventFailureReason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.alreadyInTerminalState = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.decode(reader, reader.uint32()); - break; - case 2: - message.incompatibleCluster = $root.flyteidl.admin.EventErrorIncompatibleCluster.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EventFailureReason message. - * @function verify - * @memberof flyteidl.admin.EventFailureReason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EventFailureReason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.alreadyInTerminalState != null && message.hasOwnProperty("alreadyInTerminalState")) { - properties.reason = 1; - { - var error = $root.flyteidl.admin.EventErrorAlreadyInTerminalState.verify(message.alreadyInTerminalState); - if (error) - return "alreadyInTerminalState." + error; - } - } - if (message.incompatibleCluster != null && message.hasOwnProperty("incompatibleCluster")) { - if (properties.reason === 1) - return "reason: multiple values"; - properties.reason = 1; - { - var error = $root.flyteidl.admin.EventErrorIncompatibleCluster.verify(message.incompatibleCluster); - if (error) - return "incompatibleCluster." + error; - } - } - return null; - }; - - return EventFailureReason; - })(); - - admin.WorkflowExecutionEventRequest = (function() { - - /** - * Properties of a WorkflowExecutionEventRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventRequest - * @property {string|null} [requestId] WorkflowExecutionEventRequest requestId - * @property {flyteidl.event.IWorkflowExecutionEvent|null} [event] WorkflowExecutionEventRequest event - */ - - /** - * Constructs a new WorkflowExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventRequest. - * @implements IWorkflowExecutionEventRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set - */ - function WorkflowExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @instance - */ - WorkflowExecutionEventRequest.prototype.requestId = ""; - - /** - * WorkflowExecutionEventRequest event. - * @member {flyteidl.event.IWorkflowExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @instance - */ - WorkflowExecutionEventRequest.prototype.event = null; - - /** - * Creates a new WorkflowExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest instance - */ - WorkflowExecutionEventRequest.create = function create(properties) { - return new WorkflowExecutionEventRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} message WorkflowExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.WorkflowExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionEventRequest} WorkflowExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.WorkflowExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.WorkflowExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return WorkflowExecutionEventRequest; - })(); - - admin.WorkflowExecutionEventResponse = (function() { - - /** - * Properties of a WorkflowExecutionEventResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionEventResponse - */ - - /** - * Constructs a new WorkflowExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionEventResponse. - * @implements IWorkflowExecutionEventResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set - */ - function WorkflowExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse instance - */ - WorkflowExecutionEventResponse.create = function create(properties) { - return new WorkflowExecutionEventResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionEventResponse} message WorkflowExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionEventResponse} WorkflowExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowExecutionEventResponse; - })(); - - admin.NodeExecutionEventRequest = (function() { - - /** - * Properties of a NodeExecutionEventRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionEventRequest - * @property {string|null} [requestId] NodeExecutionEventRequest requestId - * @property {flyteidl.event.INodeExecutionEvent|null} [event] NodeExecutionEventRequest event - */ - - /** - * Constructs a new NodeExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventRequest. - * @implements INodeExecutionEventRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set - */ - function NodeExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @instance - */ - NodeExecutionEventRequest.prototype.requestId = ""; - - /** - * NodeExecutionEventRequest event. - * @member {flyteidl.event.INodeExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @instance - */ - NodeExecutionEventRequest.prototype.event = null; - - /** - * Creates a new NodeExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {flyteidl.admin.INodeExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest instance - */ - NodeExecutionEventRequest.create = function create(properties) { - return new NodeExecutionEventRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {flyteidl.admin.INodeExecutionEventRequest} message NodeExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.NodeExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionEventRequest} NodeExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.NodeExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.NodeExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return NodeExecutionEventRequest; - })(); - - admin.NodeExecutionEventResponse = (function() { - - /** - * Properties of a NodeExecutionEventResponse. - * @memberof flyteidl.admin - * @interface INodeExecutionEventResponse - */ - - /** - * Constructs a new NodeExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionEventResponse. - * @implements INodeExecutionEventResponse - * @constructor - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set - */ - function NodeExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new NodeExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {flyteidl.admin.INodeExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse instance - */ - NodeExecutionEventResponse.create = function create(properties) { - return new NodeExecutionEventResponse(properties); - }; - - /** - * Encodes the specified NodeExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {flyteidl.admin.INodeExecutionEventResponse} message NodeExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a NodeExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionEventResponse} NodeExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return NodeExecutionEventResponse; - })(); - - admin.TaskExecutionEventRequest = (function() { - - /** - * Properties of a TaskExecutionEventRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionEventRequest - * @property {string|null} [requestId] TaskExecutionEventRequest requestId - * @property {flyteidl.event.ITaskExecutionEvent|null} [event] TaskExecutionEventRequest event - */ - - /** - * Constructs a new TaskExecutionEventRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventRequest. - * @implements ITaskExecutionEventRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set - */ - function TaskExecutionEventRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionEventRequest requestId. - * @member {string} requestId - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @instance - */ - TaskExecutionEventRequest.prototype.requestId = ""; - - /** - * TaskExecutionEventRequest event. - * @member {flyteidl.event.ITaskExecutionEvent|null|undefined} event - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @instance - */ - TaskExecutionEventRequest.prototype.event = null; - - /** - * Creates a new TaskExecutionEventRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest instance - */ - TaskExecutionEventRequest.create = function create(properties) { - return new TaskExecutionEventRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionEventRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {flyteidl.admin.ITaskExecutionEventRequest} message TaskExecutionEventRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.requestId != null && message.hasOwnProperty("requestId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.requestId); - if (message.event != null && message.hasOwnProperty("event")) - $root.flyteidl.event.TaskExecutionEvent.encode(message.event, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionEventRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionEventRequest} TaskExecutionEventRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.requestId = reader.string(); - break; - case 2: - message.event = $root.flyteidl.event.TaskExecutionEvent.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEventRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionEventRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.requestId != null && message.hasOwnProperty("requestId")) - if (!$util.isString(message.requestId)) - return "requestId: string expected"; - if (message.event != null && message.hasOwnProperty("event")) { - var error = $root.flyteidl.event.TaskExecutionEvent.verify(message.event); - if (error) - return "event." + error; - } - return null; - }; - - return TaskExecutionEventRequest; - })(); - - admin.TaskExecutionEventResponse = (function() { - - /** - * Properties of a TaskExecutionEventResponse. - * @memberof flyteidl.admin - * @interface ITaskExecutionEventResponse - */ - - /** - * Constructs a new TaskExecutionEventResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionEventResponse. - * @implements ITaskExecutionEventResponse - * @constructor - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set - */ - function TaskExecutionEventResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskExecutionEventResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse instance - */ - TaskExecutionEventResponse.create = function create(properties) { - return new TaskExecutionEventResponse(properties); - }; - - /** - * Encodes the specified TaskExecutionEventResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionEventResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {flyteidl.admin.ITaskExecutionEventResponse} message TaskExecutionEventResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionEventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskExecutionEventResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionEventResponse} TaskExecutionEventResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionEventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionEventResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionEventResponse message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionEventResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionEventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskExecutionEventResponse; - })(); - - admin.ExecutionCreateRequest = (function() { - - /** - * Properties of an ExecutionCreateRequest. - * @memberof flyteidl.admin - * @interface IExecutionCreateRequest - * @property {string|null} [project] ExecutionCreateRequest project - * @property {string|null} [domain] ExecutionCreateRequest domain - * @property {string|null} [name] ExecutionCreateRequest name - * @property {flyteidl.admin.IExecutionSpec|null} [spec] ExecutionCreateRequest spec - * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionCreateRequest inputs - */ - - /** - * Constructs a new ExecutionCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateRequest. - * @implements IExecutionCreateRequest - * @constructor - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set - */ - function ExecutionCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionCreateRequest project. - * @member {string} project - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.project = ""; - - /** - * ExecutionCreateRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.domain = ""; - - /** - * ExecutionCreateRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.name = ""; - - /** - * ExecutionCreateRequest spec. - * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.spec = null; - - /** - * ExecutionCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecutionCreateRequest - * @instance - */ - ExecutionCreateRequest.prototype.inputs = null; - - /** - * Creates a new ExecutionCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {flyteidl.admin.IExecutionCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest instance - */ - ExecutionCreateRequest.create = function create(properties) { - return new ExecutionCreateRequest(properties); - }; - - /** - * Encodes the specified ExecutionCreateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {flyteidl.admin.IExecutionCreateRequest} message ExecutionCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionCreateRequest} ExecutionCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); - break; - case 5: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionCreateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - return null; - }; - - return ExecutionCreateRequest; - })(); - - admin.ExecutionRelaunchRequest = (function() { - - /** - * Properties of an ExecutionRelaunchRequest. - * @memberof flyteidl.admin - * @interface IExecutionRelaunchRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRelaunchRequest id - * @property {string|null} [name] ExecutionRelaunchRequest name - * @property {boolean|null} [overwriteCache] ExecutionRelaunchRequest overwriteCache - */ - - /** - * Constructs a new ExecutionRelaunchRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRelaunchRequest. - * @implements IExecutionRelaunchRequest - * @constructor - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set - */ - function ExecutionRelaunchRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionRelaunchRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.id = null; - - /** - * ExecutionRelaunchRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.name = ""; - - /** - * ExecutionRelaunchRequest overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @instance - */ - ExecutionRelaunchRequest.prototype.overwriteCache = false; - - /** - * Creates a new ExecutionRelaunchRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest instance - */ - ExecutionRelaunchRequest.create = function create(properties) { - return new ExecutionRelaunchRequest(properties); - }; - - /** - * Encodes the specified ExecutionRelaunchRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRelaunchRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {flyteidl.admin.IExecutionRelaunchRequest} message ExecutionRelaunchRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionRelaunchRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.overwriteCache); - return writer; - }; - - /** - * Decodes an ExecutionRelaunchRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionRelaunchRequest} ExecutionRelaunchRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionRelaunchRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRelaunchRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 3: - message.name = reader.string(); - break; - case 4: - message.overwriteCache = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionRelaunchRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionRelaunchRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionRelaunchRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - return null; - }; - - return ExecutionRelaunchRequest; - })(); - - admin.ExecutionRecoverRequest = (function() { - - /** - * Properties of an ExecutionRecoverRequest. - * @memberof flyteidl.admin - * @interface IExecutionRecoverRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionRecoverRequest id - * @property {string|null} [name] ExecutionRecoverRequest name - * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionRecoverRequest metadata - */ - - /** - * Constructs a new ExecutionRecoverRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionRecoverRequest. - * @implements IExecutionRecoverRequest - * @constructor - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set - */ - function ExecutionRecoverRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionRecoverRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.id = null; - - /** - * ExecutionRecoverRequest name. - * @member {string} name - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.name = ""; - - /** - * ExecutionRecoverRequest metadata. - * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @instance - */ - ExecutionRecoverRequest.prototype.metadata = null; - - /** - * Creates a new ExecutionRecoverRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {flyteidl.admin.IExecutionRecoverRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest instance - */ - ExecutionRecoverRequest.create = function create(properties) { - return new ExecutionRecoverRequest(properties); - }; - - /** - * Encodes the specified ExecutionRecoverRequest message. Does not implicitly {@link flyteidl.admin.ExecutionRecoverRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {flyteidl.admin.IExecutionRecoverRequest} message ExecutionRecoverRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionRecoverRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionRecoverRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionRecoverRequest} ExecutionRecoverRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionRecoverRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionRecoverRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionRecoverRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionRecoverRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionRecoverRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return ExecutionRecoverRequest; - })(); - - admin.ExecutionCreateResponse = (function() { - - /** - * Properties of an ExecutionCreateResponse. - * @memberof flyteidl.admin - * @interface IExecutionCreateResponse - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionCreateResponse id - */ - - /** - * Constructs a new ExecutionCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionCreateResponse. - * @implements IExecutionCreateResponse - * @constructor - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set - */ - function ExecutionCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionCreateResponse id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionCreateResponse - * @instance - */ - ExecutionCreateResponse.prototype.id = null; - - /** - * Creates a new ExecutionCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {flyteidl.admin.IExecutionCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse instance - */ - ExecutionCreateResponse.create = function create(properties) { - return new ExecutionCreateResponse(properties); - }; - - /** - * Encodes the specified ExecutionCreateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {flyteidl.admin.IExecutionCreateResponse} message ExecutionCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionCreateResponse} ExecutionCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionCreateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ExecutionCreateResponse; - })(); - - admin.WorkflowExecutionGetRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetRequest id - */ - - /** - * Constructs a new WorkflowExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetRequest. - * @implements IWorkflowExecutionGetRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @instance - */ - WorkflowExecutionGetRequest.prototype.id = null; - - /** - * Creates a new WorkflowExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest instance - */ - WorkflowExecutionGetRequest.create = function create(properties) { - return new WorkflowExecutionGetRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} message WorkflowExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetRequest} WorkflowExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowExecutionGetRequest; - })(); - - admin.Execution = (function() { - - /** - * Properties of an Execution. - * @memberof flyteidl.admin - * @interface IExecution - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] Execution id - * @property {flyteidl.admin.IExecutionSpec|null} [spec] Execution spec - * @property {flyteidl.admin.IExecutionClosure|null} [closure] Execution closure - */ - - /** - * Constructs a new Execution. - * @memberof flyteidl.admin - * @classdesc Represents an Execution. - * @implements IExecution - * @constructor - * @param {flyteidl.admin.IExecution=} [properties] Properties to set - */ - function Execution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Execution id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.id = null; - - /** - * Execution spec. - * @member {flyteidl.admin.IExecutionSpec|null|undefined} spec - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.spec = null; - - /** - * Execution closure. - * @member {flyteidl.admin.IExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.Execution - * @instance - */ - Execution.prototype.closure = null; - - /** - * Creates a new Execution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Execution - * @static - * @param {flyteidl.admin.IExecution=} [properties] Properties to set - * @returns {flyteidl.admin.Execution} Execution instance - */ - Execution.create = function create(properties) { - return new Execution(properties); - }; - - /** - * Encodes the specified Execution message. Does not implicitly {@link flyteidl.admin.Execution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Execution - * @static - * @param {flyteidl.admin.IExecution} message Execution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Execution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.ExecutionSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.ExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an Execution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Execution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Execution} Execution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Execution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Execution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.ExecutionSpec.decode(reader, reader.uint32()); - break; - case 3: - message.closure = $root.flyteidl.admin.ExecutionClosure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Execution message. - * @function verify - * @memberof flyteidl.admin.Execution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Execution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.ExecutionSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.ExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - return null; - }; - - return Execution; - })(); - - admin.ExecutionList = (function() { - - /** - * Properties of an ExecutionList. - * @memberof flyteidl.admin - * @interface IExecutionList - * @property {Array.|null} [executions] ExecutionList executions - * @property {string|null} [token] ExecutionList token - */ - - /** - * Constructs a new ExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionList. - * @implements IExecutionList - * @constructor - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set - */ - function ExecutionList(properties) { - this.executions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionList executions. - * @member {Array.} executions - * @memberof flyteidl.admin.ExecutionList - * @instance - */ - ExecutionList.prototype.executions = $util.emptyArray; - - /** - * ExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.ExecutionList - * @instance - */ - ExecutionList.prototype.token = ""; - - /** - * Creates a new ExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {flyteidl.admin.IExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionList} ExecutionList instance - */ - ExecutionList.create = function create(properties) { - return new ExecutionList(properties); - }; - - /** - * Encodes the specified ExecutionList message. Does not implicitly {@link flyteidl.admin.ExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {flyteidl.admin.IExecutionList} message ExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executions != null && message.executions.length) - for (var i = 0; i < message.executions.length; ++i) - $root.flyteidl.admin.Execution.encode(message.executions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes an ExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionList} ExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.executions && message.executions.length)) - message.executions = []; - message.executions.push($root.flyteidl.admin.Execution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionList message. - * @function verify - * @memberof flyteidl.admin.ExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executions != null && message.hasOwnProperty("executions")) { - if (!Array.isArray(message.executions)) - return "executions: array expected"; - for (var i = 0; i < message.executions.length; ++i) { - var error = $root.flyteidl.admin.Execution.verify(message.executions[i]); - if (error) - return "executions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return ExecutionList; - })(); - - admin.LiteralMapBlob = (function() { - - /** - * Properties of a LiteralMapBlob. - * @memberof flyteidl.admin - * @interface ILiteralMapBlob - * @property {flyteidl.core.ILiteralMap|null} [values] LiteralMapBlob values - * @property {string|null} [uri] LiteralMapBlob uri - */ - - /** - * Constructs a new LiteralMapBlob. - * @memberof flyteidl.admin - * @classdesc Represents a LiteralMapBlob. - * @implements ILiteralMapBlob - * @constructor - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set - */ - function LiteralMapBlob(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LiteralMapBlob values. - * @member {flyteidl.core.ILiteralMap|null|undefined} values - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - LiteralMapBlob.prototype.values = null; - - /** - * LiteralMapBlob uri. - * @member {string} uri - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - LiteralMapBlob.prototype.uri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * LiteralMapBlob data. - * @member {"values"|"uri"|undefined} data - * @memberof flyteidl.admin.LiteralMapBlob - * @instance - */ - Object.defineProperty(LiteralMapBlob.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["values", "uri"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new LiteralMapBlob instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {flyteidl.admin.ILiteralMapBlob=} [properties] Properties to set - * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob instance - */ - LiteralMapBlob.create = function create(properties) { - return new LiteralMapBlob(properties); - }; - - /** - * Encodes the specified LiteralMapBlob message. Does not implicitly {@link flyteidl.admin.LiteralMapBlob.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {flyteidl.admin.ILiteralMapBlob} message LiteralMapBlob message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LiteralMapBlob.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.hasOwnProperty("values")) - $root.flyteidl.core.LiteralMap.encode(message.values, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.uri != null && message.hasOwnProperty("uri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.uri); - return writer; - }; - - /** - * Decodes a LiteralMapBlob message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LiteralMapBlob} LiteralMapBlob - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LiteralMapBlob.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LiteralMapBlob(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.values = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.uri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LiteralMapBlob message. - * @function verify - * @memberof flyteidl.admin.LiteralMapBlob - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LiteralMapBlob.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - properties.data = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.values); - if (error) - return "values." + error; - } - } - if (message.uri != null && message.hasOwnProperty("uri")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - if (!$util.isString(message.uri)) - return "uri: string expected"; - } - return null; - }; - - return LiteralMapBlob; - })(); - - admin.AbortMetadata = (function() { - - /** - * Properties of an AbortMetadata. - * @memberof flyteidl.admin - * @interface IAbortMetadata - * @property {string|null} [cause] AbortMetadata cause - * @property {string|null} [principal] AbortMetadata principal - */ - - /** - * Constructs a new AbortMetadata. - * @memberof flyteidl.admin - * @classdesc Represents an AbortMetadata. - * @implements IAbortMetadata - * @constructor - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set - */ - function AbortMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * AbortMetadata cause. - * @member {string} cause - * @memberof flyteidl.admin.AbortMetadata - * @instance - */ - AbortMetadata.prototype.cause = ""; - - /** - * AbortMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.AbortMetadata - * @instance - */ - AbortMetadata.prototype.principal = ""; - - /** - * Creates a new AbortMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {flyteidl.admin.IAbortMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.AbortMetadata} AbortMetadata instance - */ - AbortMetadata.create = function create(properties) { - return new AbortMetadata(properties); - }; - - /** - * Encodes the specified AbortMetadata message. Does not implicitly {@link flyteidl.admin.AbortMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {flyteidl.admin.IAbortMetadata} message AbortMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - AbortMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cause != null && message.hasOwnProperty("cause")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cause); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); - return writer; - }; - - /** - * Decodes an AbortMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.AbortMetadata} AbortMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - AbortMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.AbortMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cause = reader.string(); - break; - case 2: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an AbortMetadata message. - * @function verify - * @memberof flyteidl.admin.AbortMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - AbortMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cause != null && message.hasOwnProperty("cause")) - if (!$util.isString(message.cause)) - return "cause: string expected"; - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return AbortMetadata; - })(); - - admin.ExecutionClosure = (function() { - - /** - * Properties of an ExecutionClosure. - * @memberof flyteidl.admin - * @interface IExecutionClosure - * @property {flyteidl.admin.ILiteralMapBlob|null} [outputs] ExecutionClosure outputs - * @property {flyteidl.core.IExecutionError|null} [error] ExecutionClosure error - * @property {string|null} [abortCause] ExecutionClosure abortCause - * @property {flyteidl.admin.IAbortMetadata|null} [abortMetadata] ExecutionClosure abortMetadata - * @property {flyteidl.core.ILiteralMap|null} [outputData] ExecutionClosure outputData - * @property {flyteidl.core.ILiteralMap|null} [computedInputs] ExecutionClosure computedInputs - * @property {flyteidl.core.WorkflowExecution.Phase|null} [phase] ExecutionClosure phase - * @property {google.protobuf.ITimestamp|null} [startedAt] ExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] ExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] ExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] ExecutionClosure updatedAt - * @property {Array.|null} [notifications] ExecutionClosure notifications - * @property {flyteidl.core.IIdentifier|null} [workflowId] ExecutionClosure workflowId - * @property {flyteidl.admin.IExecutionStateChangeDetails|null} [stateChangeDetails] ExecutionClosure stateChangeDetails - */ - - /** - * Constructs a new ExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClosure. - * @implements IExecutionClosure - * @constructor - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set - */ - function ExecutionClosure(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionClosure outputs. - * @member {flyteidl.admin.ILiteralMapBlob|null|undefined} outputs - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.outputs = null; - - /** - * ExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.error = null; - - /** - * ExecutionClosure abortCause. - * @member {string} abortCause - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.abortCause = ""; - - /** - * ExecutionClosure abortMetadata. - * @member {flyteidl.admin.IAbortMetadata|null|undefined} abortMetadata - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.abortMetadata = null; - - /** - * ExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.outputData = null; - - /** - * ExecutionClosure computedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} computedInputs - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.computedInputs = null; - - /** - * ExecutionClosure phase. - * @member {flyteidl.core.WorkflowExecution.Phase} phase - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.phase = 0; - - /** - * ExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.startedAt = null; - - /** - * ExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.duration = null; - - /** - * ExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.createdAt = null; - - /** - * ExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.updatedAt = null; - - /** - * ExecutionClosure notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.notifications = $util.emptyArray; - - /** - * ExecutionClosure workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.workflowId = null; - - /** - * ExecutionClosure stateChangeDetails. - * @member {flyteidl.admin.IExecutionStateChangeDetails|null|undefined} stateChangeDetails - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - ExecutionClosure.prototype.stateChangeDetails = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecutionClosure outputResult. - * @member {"outputs"|"error"|"abortCause"|"abortMetadata"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.ExecutionClosure - * @instance - */ - Object.defineProperty(ExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputs", "error", "abortCause", "abortMetadata", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {flyteidl.admin.IExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure instance - */ - ExecutionClosure.create = function create(properties) { - return new ExecutionClosure(properties); - }; - - /** - * Encodes the specified ExecutionClosure message. Does not implicitly {@link flyteidl.admin.ExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {flyteidl.admin.IExecutionClosure} message ExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.LiteralMapBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) - $root.flyteidl.core.LiteralMap.encode(message.computedInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.phase); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.abortCause != null && message.hasOwnProperty("abortCause")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.abortCause); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) - $root.flyteidl.admin.AbortMetadata.encode(message.abortMetadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) - $root.flyteidl.admin.ExecutionStateChangeDetails.encode(message.stateChangeDetails, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionClosure} ExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputs = $root.flyteidl.admin.LiteralMapBlob.decode(reader, reader.uint32()); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 10: - message.abortCause = reader.string(); - break; - case 12: - message.abortMetadata = $root.flyteidl.admin.AbortMetadata.decode(reader, reader.uint32()); - break; - case 13: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.computedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.phase = reader.int32(); - break; - case 5: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 7: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - case 11: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 14: - message.stateChangeDetails = $root.flyteidl.admin.ExecutionStateChangeDetails.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.ExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - properties.outputResult = 1; - { - var error = $root.flyteidl.admin.LiteralMapBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.abortCause != null && message.hasOwnProperty("abortCause")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - if (!$util.isString(message.abortCause)) - return "abortCause: string expected"; - } - if (message.abortMetadata != null && message.hasOwnProperty("abortMetadata")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.admin.AbortMetadata.verify(message.abortMetadata); - if (error) - return "abortMetadata." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.computedInputs != null && message.hasOwnProperty("computedInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.computedInputs); - if (error) - return "computedInputs." + error; - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.stateChangeDetails != null && message.hasOwnProperty("stateChangeDetails")) { - var error = $root.flyteidl.admin.ExecutionStateChangeDetails.verify(message.stateChangeDetails); - if (error) - return "stateChangeDetails." + error; - } - return null; - }; - - return ExecutionClosure; - })(); - - admin.SystemMetadata = (function() { - - /** - * Properties of a SystemMetadata. - * @memberof flyteidl.admin - * @interface ISystemMetadata - * @property {string|null} [executionCluster] SystemMetadata executionCluster - * @property {string|null} [namespace] SystemMetadata namespace - */ - - /** - * Constructs a new SystemMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a SystemMetadata. - * @implements ISystemMetadata - * @constructor - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set - */ - function SystemMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SystemMetadata executionCluster. - * @member {string} executionCluster - * @memberof flyteidl.admin.SystemMetadata - * @instance - */ - SystemMetadata.prototype.executionCluster = ""; - - /** - * SystemMetadata namespace. - * @member {string} namespace - * @memberof flyteidl.admin.SystemMetadata - * @instance - */ - SystemMetadata.prototype.namespace = ""; - - /** - * Creates a new SystemMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {flyteidl.admin.ISystemMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.SystemMetadata} SystemMetadata instance - */ - SystemMetadata.create = function create(properties) { - return new SystemMetadata(properties); - }; - - /** - * Encodes the specified SystemMetadata message. Does not implicitly {@link flyteidl.admin.SystemMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {flyteidl.admin.ISystemMetadata} message SystemMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SystemMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.executionCluster); - if (message.namespace != null && message.hasOwnProperty("namespace")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.namespace); - return writer; - }; - - /** - * Decodes a SystemMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SystemMetadata} SystemMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SystemMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SystemMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionCluster = reader.string(); - break; - case 2: - message.namespace = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SystemMetadata message. - * @function verify - * @memberof flyteidl.admin.SystemMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SystemMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionCluster != null && message.hasOwnProperty("executionCluster")) - if (!$util.isString(message.executionCluster)) - return "executionCluster: string expected"; - if (message.namespace != null && message.hasOwnProperty("namespace")) - if (!$util.isString(message.namespace)) - return "namespace: string expected"; - return null; - }; - - return SystemMetadata; - })(); - - admin.ExecutionMetadata = (function() { - - /** - * Properties of an ExecutionMetadata. - * @memberof flyteidl.admin - * @interface IExecutionMetadata - * @property {flyteidl.admin.ExecutionMetadata.ExecutionMode|null} [mode] ExecutionMetadata mode - * @property {string|null} [principal] ExecutionMetadata principal - * @property {number|null} [nesting] ExecutionMetadata nesting - * @property {google.protobuf.ITimestamp|null} [scheduledAt] ExecutionMetadata scheduledAt - * @property {flyteidl.core.INodeExecutionIdentifier|null} [parentNodeExecution] ExecutionMetadata parentNodeExecution - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [referenceExecution] ExecutionMetadata referenceExecution - * @property {flyteidl.admin.ISystemMetadata|null} [systemMetadata] ExecutionMetadata systemMetadata - * @property {Array.|null} [artifactIds] ExecutionMetadata artifactIds - */ - - /** - * Constructs a new ExecutionMetadata. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionMetadata. - * @implements IExecutionMetadata - * @constructor - * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set - */ - function ExecutionMetadata(properties) { - this.artifactIds = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionMetadata mode. - * @member {flyteidl.admin.ExecutionMetadata.ExecutionMode} mode - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.mode = 0; - - /** - * ExecutionMetadata principal. - * @member {string} principal - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.principal = ""; - - /** - * ExecutionMetadata nesting. - * @member {number} nesting - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.nesting = 0; - - /** - * ExecutionMetadata scheduledAt. - * @member {google.protobuf.ITimestamp|null|undefined} scheduledAt - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.scheduledAt = null; - - /** - * ExecutionMetadata parentNodeExecution. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} parentNodeExecution - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.parentNodeExecution = null; - - /** - * ExecutionMetadata referenceExecution. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} referenceExecution - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.referenceExecution = null; - - /** - * ExecutionMetadata systemMetadata. - * @member {flyteidl.admin.ISystemMetadata|null|undefined} systemMetadata - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.systemMetadata = null; - - /** - * ExecutionMetadata artifactIds. - * @member {Array.} artifactIds - * @memberof flyteidl.admin.ExecutionMetadata - * @instance - */ - ExecutionMetadata.prototype.artifactIds = $util.emptyArray; - - /** - * Creates a new ExecutionMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {flyteidl.admin.IExecutionMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata instance - */ - ExecutionMetadata.create = function create(properties) { - return new ExecutionMetadata(properties); - }; - - /** - * Encodes the specified ExecutionMetadata message. Does not implicitly {@link flyteidl.admin.ExecutionMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {flyteidl.admin.IExecutionMetadata} message ExecutionMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mode != null && message.hasOwnProperty("mode")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mode); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.principal); - if (message.nesting != null && message.hasOwnProperty("nesting")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.nesting); - if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) - $root.google.protobuf.Timestamp.encode(message.scheduledAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.parentNodeExecution, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.referenceExecution, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) - $root.flyteidl.admin.SystemMetadata.encode(message.systemMetadata, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.artifactIds != null && message.artifactIds.length) - for (var i = 0; i < message.artifactIds.length; ++i) - $root.flyteidl.core.ArtifactID.encode(message.artifactIds[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ExecutionMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionMetadata} ExecutionMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.mode = reader.int32(); - break; - case 2: - message.principal = reader.string(); - break; - case 3: - message.nesting = reader.uint32(); - break; - case 4: - message.scheduledAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.parentNodeExecution = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 16: - message.referenceExecution = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 17: - message.systemMetadata = $root.flyteidl.admin.SystemMetadata.decode(reader, reader.uint32()); - break; - case 18: - if (!(message.artifactIds && message.artifactIds.length)) - message.artifactIds = []; - message.artifactIds.push($root.flyteidl.core.ArtifactID.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionMetadata message. - * @function verify - * @memberof flyteidl.admin.ExecutionMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mode != null && message.hasOwnProperty("mode")) - switch (message.mode) { - default: - return "mode: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - if (message.nesting != null && message.hasOwnProperty("nesting")) - if (!$util.isInteger(message.nesting)) - return "nesting: integer expected"; - if (message.scheduledAt != null && message.hasOwnProperty("scheduledAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.scheduledAt); - if (error) - return "scheduledAt." + error; - } - if (message.parentNodeExecution != null && message.hasOwnProperty("parentNodeExecution")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.parentNodeExecution); - if (error) - return "parentNodeExecution." + error; - } - if (message.referenceExecution != null && message.hasOwnProperty("referenceExecution")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.referenceExecution); - if (error) - return "referenceExecution." + error; - } - if (message.systemMetadata != null && message.hasOwnProperty("systemMetadata")) { - var error = $root.flyteidl.admin.SystemMetadata.verify(message.systemMetadata); - if (error) - return "systemMetadata." + error; - } - if (message.artifactIds != null && message.hasOwnProperty("artifactIds")) { - if (!Array.isArray(message.artifactIds)) - return "artifactIds: array expected"; - for (var i = 0; i < message.artifactIds.length; ++i) { - var error = $root.flyteidl.core.ArtifactID.verify(message.artifactIds[i]); - if (error) - return "artifactIds." + error; - } - } - return null; - }; - - /** - * ExecutionMode enum. - * @name flyteidl.admin.ExecutionMetadata.ExecutionMode - * @enum {string} - * @property {number} MANUAL=0 MANUAL value - * @property {number} SCHEDULED=1 SCHEDULED value - * @property {number} SYSTEM=2 SYSTEM value - * @property {number} RELAUNCH=3 RELAUNCH value - * @property {number} CHILD_WORKFLOW=4 CHILD_WORKFLOW value - * @property {number} RECOVERED=5 RECOVERED value - */ - ExecutionMetadata.ExecutionMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MANUAL"] = 0; - values[valuesById[1] = "SCHEDULED"] = 1; - values[valuesById[2] = "SYSTEM"] = 2; - values[valuesById[3] = "RELAUNCH"] = 3; - values[valuesById[4] = "CHILD_WORKFLOW"] = 4; - values[valuesById[5] = "RECOVERED"] = 5; - return values; - })(); - - return ExecutionMetadata; - })(); - - admin.NotificationList = (function() { - - /** - * Properties of a NotificationList. - * @memberof flyteidl.admin - * @interface INotificationList - * @property {Array.|null} [notifications] NotificationList notifications - */ - - /** - * Constructs a new NotificationList. - * @memberof flyteidl.admin - * @classdesc Represents a NotificationList. - * @implements INotificationList - * @constructor - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set - */ - function NotificationList(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NotificationList notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.NotificationList - * @instance - */ - NotificationList.prototype.notifications = $util.emptyArray; - - /** - * Creates a new NotificationList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NotificationList - * @static - * @param {flyteidl.admin.INotificationList=} [properties] Properties to set - * @returns {flyteidl.admin.NotificationList} NotificationList instance - */ - NotificationList.create = function create(properties) { - return new NotificationList(properties); - }; - - /** - * Encodes the specified NotificationList message. Does not implicitly {@link flyteidl.admin.NotificationList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NotificationList - * @static - * @param {flyteidl.admin.INotificationList} message NotificationList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NotificationList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NotificationList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NotificationList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NotificationList} NotificationList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NotificationList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NotificationList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NotificationList message. - * @function verify - * @memberof flyteidl.admin.NotificationList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NotificationList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - return null; - }; - - return NotificationList; - })(); - - admin.ExecutionSpec = (function() { - - /** - * Properties of an ExecutionSpec. - * @memberof flyteidl.admin - * @interface IExecutionSpec - * @property {flyteidl.core.IIdentifier|null} [launchPlan] ExecutionSpec launchPlan - * @property {flyteidl.core.ILiteralMap|null} [inputs] ExecutionSpec inputs - * @property {flyteidl.admin.IExecutionMetadata|null} [metadata] ExecutionSpec metadata - * @property {flyteidl.admin.INotificationList|null} [notifications] ExecutionSpec notifications - * @property {boolean|null} [disableAll] ExecutionSpec disableAll - * @property {flyteidl.admin.ILabels|null} [labels] ExecutionSpec labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] ExecutionSpec annotations - * @property {flyteidl.core.ISecurityContext|null} [securityContext] ExecutionSpec securityContext - * @property {flyteidl.admin.IAuthRole|null} [authRole] ExecutionSpec authRole - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] ExecutionSpec qualityOfService - * @property {number|null} [maxParallelism] ExecutionSpec maxParallelism - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] ExecutionSpec rawOutputDataConfig - * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] ExecutionSpec clusterAssignment - * @property {google.protobuf.IBoolValue|null} [interruptible] ExecutionSpec interruptible - * @property {boolean|null} [overwriteCache] ExecutionSpec overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] ExecutionSpec envs - * @property {Array.|null} [tags] ExecutionSpec tags - */ - - /** - * Constructs a new ExecutionSpec. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionSpec. - * @implements IExecutionSpec - * @constructor - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set - */ - function ExecutionSpec(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionSpec launchPlan. - * @member {flyteidl.core.IIdentifier|null|undefined} launchPlan - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.launchPlan = null; - - /** - * ExecutionSpec inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.inputs = null; - - /** - * ExecutionSpec metadata. - * @member {flyteidl.admin.IExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.metadata = null; - - /** - * ExecutionSpec notifications. - * @member {flyteidl.admin.INotificationList|null|undefined} notifications - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.notifications = null; - - /** - * ExecutionSpec disableAll. - * @member {boolean} disableAll - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.disableAll = false; - - /** - * ExecutionSpec labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.labels = null; - - /** - * ExecutionSpec annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.annotations = null; - - /** - * ExecutionSpec securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.securityContext = null; - - /** - * ExecutionSpec authRole. - * @member {flyteidl.admin.IAuthRole|null|undefined} authRole - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.authRole = null; - - /** - * ExecutionSpec qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.qualityOfService = null; - - /** - * ExecutionSpec maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.maxParallelism = 0; - - /** - * ExecutionSpec rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.rawOutputDataConfig = null; - - /** - * ExecutionSpec clusterAssignment. - * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.clusterAssignment = null; - - /** - * ExecutionSpec interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.interruptible = null; - - /** - * ExecutionSpec overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.overwriteCache = false; - - /** - * ExecutionSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.envs = null; - - /** - * ExecutionSpec tags. - * @member {Array.} tags - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - ExecutionSpec.prototype.tags = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ExecutionSpec notificationOverrides. - * @member {"notifications"|"disableAll"|undefined} notificationOverrides - * @memberof flyteidl.admin.ExecutionSpec - * @instance - */ - Object.defineProperty(ExecutionSpec.prototype, "notificationOverrides", { - get: $util.oneOfGetter($oneOfFields = ["notifications", "disableAll"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ExecutionSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {flyteidl.admin.IExecutionSpec=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec instance - */ - ExecutionSpec.create = function create(properties) { - return new ExecutionSpec(properties); - }; - - /** - * Encodes the specified ExecutionSpec message. Does not implicitly {@link flyteidl.admin.ExecutionSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {flyteidl.admin.IExecutionSpec} message ExecutionSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - $root.flyteidl.core.Identifier.encode(message.launchPlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.ExecutionMetadata.encode(message.metadata, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.notifications != null && message.hasOwnProperty("notifications")) - $root.flyteidl.admin.NotificationList.encode(message.notifications, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.disableAll != null && message.hasOwnProperty("disableAll")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disableAll); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.authRole != null && message.hasOwnProperty("authRole")) - $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) - $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 24, wireType 2 =*/194).string(message.tags[i]); - return writer; - }; - - /** - * Decodes an ExecutionSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionSpec} ExecutionSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.launchPlan = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.metadata = $root.flyteidl.admin.ExecutionMetadata.decode(reader, reader.uint32()); - break; - case 5: - message.notifications = $root.flyteidl.admin.NotificationList.decode(reader, reader.uint32()); - break; - case 6: - message.disableAll = reader.bool(); - break; - case 7: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 8: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 10: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 16: - message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); - break; - case 17: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 18: - message.maxParallelism = reader.int32(); - break; - case 19: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 20: - message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); - break; - case 21: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 22: - message.overwriteCache = reader.bool(); - break; - case 23: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - case 24: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionSpec message. - * @function verify - * @memberof flyteidl.admin.ExecutionSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) { - var error = $root.flyteidl.core.Identifier.verify(message.launchPlan); - if (error) - return "launchPlan." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.ExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - properties.notificationOverrides = 1; - { - var error = $root.flyteidl.admin.NotificationList.verify(message.notifications); - if (error) - return "notifications." + error; - } - } - if (message.disableAll != null && message.hasOwnProperty("disableAll")) { - if (properties.notificationOverrides === 1) - return "notificationOverrides: multiple values"; - properties.notificationOverrides = 1; - if (typeof message.disableAll !== "boolean") - return "disableAll: boolean expected"; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.authRole != null && message.hasOwnProperty("authRole")) { - var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); - if (error) - return "authRole." + error; - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { - var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); - if (error) - return "clusterAssignment." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return ExecutionSpec; - })(); - - admin.ExecutionTerminateRequest = (function() { - - /** - * Properties of an ExecutionTerminateRequest. - * @memberof flyteidl.admin - * @interface IExecutionTerminateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionTerminateRequest id - * @property {string|null} [cause] ExecutionTerminateRequest cause - */ - - /** - * Constructs a new ExecutionTerminateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateRequest. - * @implements IExecutionTerminateRequest - * @constructor - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set - */ - function ExecutionTerminateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionTerminateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @instance - */ - ExecutionTerminateRequest.prototype.id = null; - - /** - * ExecutionTerminateRequest cause. - * @member {string} cause - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @instance - */ - ExecutionTerminateRequest.prototype.cause = ""; - - /** - * Creates a new ExecutionTerminateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {flyteidl.admin.IExecutionTerminateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest instance - */ - ExecutionTerminateRequest.create = function create(properties) { - return new ExecutionTerminateRequest(properties); - }; - - /** - * Encodes the specified ExecutionTerminateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {flyteidl.admin.IExecutionTerminateRequest} message ExecutionTerminateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionTerminateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.cause != null && message.hasOwnProperty("cause")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.cause); - return writer; - }; - - /** - * Decodes an ExecutionTerminateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionTerminateRequest} ExecutionTerminateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionTerminateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.cause = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionTerminateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionTerminateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionTerminateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.cause != null && message.hasOwnProperty("cause")) - if (!$util.isString(message.cause)) - return "cause: string expected"; - return null; - }; - - return ExecutionTerminateRequest; - })(); - - admin.ExecutionTerminateResponse = (function() { - - /** - * Properties of an ExecutionTerminateResponse. - * @memberof flyteidl.admin - * @interface IExecutionTerminateResponse - */ - - /** - * Constructs a new ExecutionTerminateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionTerminateResponse. - * @implements IExecutionTerminateResponse - * @constructor - * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set - */ - function ExecutionTerminateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ExecutionTerminateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {flyteidl.admin.IExecutionTerminateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse instance - */ - ExecutionTerminateResponse.create = function create(properties) { - return new ExecutionTerminateResponse(properties); - }; - - /** - * Encodes the specified ExecutionTerminateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionTerminateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {flyteidl.admin.IExecutionTerminateResponse} message ExecutionTerminateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionTerminateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes an ExecutionTerminateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionTerminateResponse} ExecutionTerminateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionTerminateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionTerminateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionTerminateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionTerminateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionTerminateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ExecutionTerminateResponse; - })(); - - admin.WorkflowExecutionGetDataRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetDataRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetDataRequest id - */ - - /** - * Constructs a new WorkflowExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataRequest. - * @implements IWorkflowExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetDataRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @instance - */ - WorkflowExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new WorkflowExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest instance - */ - WorkflowExecutionGetDataRequest.create = function create(properties) { - return new WorkflowExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} message WorkflowExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetDataRequest} WorkflowExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return WorkflowExecutionGetDataRequest; - })(); - - admin.WorkflowExecutionGetDataResponse = (function() { - - /** - * Properties of a WorkflowExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [outputs] WorkflowExecutionGetDataResponse outputs - * @property {flyteidl.admin.IUrlBlob|null} [inputs] WorkflowExecutionGetDataResponse inputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] WorkflowExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] WorkflowExecutionGetDataResponse fullOutputs - */ - - /** - * Constructs a new WorkflowExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetDataResponse. - * @implements IWorkflowExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set - */ - function WorkflowExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.outputs = null; - - /** - * WorkflowExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.inputs = null; - - /** - * WorkflowExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * WorkflowExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @instance - */ - WorkflowExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * Creates a new WorkflowExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse instance - */ - WorkflowExecutionGetDataResponse.create = function create(properties) { - return new WorkflowExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetDataResponse} message WorkflowExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetDataResponse} WorkflowExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - return null; - }; - - return WorkflowExecutionGetDataResponse; - })(); - - /** - * ExecutionState enum. - * @name flyteidl.admin.ExecutionState - * @enum {string} - * @property {number} EXECUTION_ACTIVE=0 EXECUTION_ACTIVE value - * @property {number} EXECUTION_ARCHIVED=1 EXECUTION_ARCHIVED value - */ - admin.ExecutionState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EXECUTION_ACTIVE"] = 0; - values[valuesById[1] = "EXECUTION_ARCHIVED"] = 1; - return values; - })(); - - admin.ExecutionUpdateRequest = (function() { - - /** - * Properties of an ExecutionUpdateRequest. - * @memberof flyteidl.admin - * @interface IExecutionUpdateRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] ExecutionUpdateRequest id - * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionUpdateRequest state - */ - - /** - * Constructs a new ExecutionUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateRequest. - * @implements IExecutionUpdateRequest - * @constructor - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set - */ - function ExecutionUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionUpdateRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @instance - */ - ExecutionUpdateRequest.prototype.id = null; - - /** - * ExecutionUpdateRequest state. - * @member {flyteidl.admin.ExecutionState} state - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @instance - */ - ExecutionUpdateRequest.prototype.state = 0; - - /** - * Creates a new ExecutionUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {flyteidl.admin.IExecutionUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest instance - */ - ExecutionUpdateRequest.create = function create(properties) { - return new ExecutionUpdateRequest(properties); - }; - - /** - * Encodes the specified ExecutionUpdateRequest message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {flyteidl.admin.IExecutionUpdateRequest} message ExecutionUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes an ExecutionUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionUpdateRequest} ExecutionUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ExecutionUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - return ExecutionUpdateRequest; - })(); - - admin.ExecutionStateChangeDetails = (function() { - - /** - * Properties of an ExecutionStateChangeDetails. - * @memberof flyteidl.admin - * @interface IExecutionStateChangeDetails - * @property {flyteidl.admin.ExecutionState|null} [state] ExecutionStateChangeDetails state - * @property {google.protobuf.ITimestamp|null} [occurredAt] ExecutionStateChangeDetails occurredAt - * @property {string|null} [principal] ExecutionStateChangeDetails principal - */ - - /** - * Constructs a new ExecutionStateChangeDetails. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionStateChangeDetails. - * @implements IExecutionStateChangeDetails - * @constructor - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set - */ - function ExecutionStateChangeDetails(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionStateChangeDetails state. - * @member {flyteidl.admin.ExecutionState} state - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.state = 0; - - /** - * ExecutionStateChangeDetails occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.occurredAt = null; - - /** - * ExecutionStateChangeDetails principal. - * @member {string} principal - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @instance - */ - ExecutionStateChangeDetails.prototype.principal = ""; - - /** - * Creates a new ExecutionStateChangeDetails instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails instance - */ - ExecutionStateChangeDetails.create = function create(properties) { - return new ExecutionStateChangeDetails(properties); - }; - - /** - * Encodes the specified ExecutionStateChangeDetails message. Does not implicitly {@link flyteidl.admin.ExecutionStateChangeDetails.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {flyteidl.admin.IExecutionStateChangeDetails} message ExecutionStateChangeDetails message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionStateChangeDetails.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.principal != null && message.hasOwnProperty("principal")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.principal); - return writer; - }; - - /** - * Decodes an ExecutionStateChangeDetails message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionStateChangeDetails} ExecutionStateChangeDetails - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionStateChangeDetails.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionStateChangeDetails(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.principal = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionStateChangeDetails message. - * @function verify - * @memberof flyteidl.admin.ExecutionStateChangeDetails - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionStateChangeDetails.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.principal != null && message.hasOwnProperty("principal")) - if (!$util.isString(message.principal)) - return "principal: string expected"; - return null; - }; - - return ExecutionStateChangeDetails; - })(); - - admin.ExecutionUpdateResponse = (function() { - - /** - * Properties of an ExecutionUpdateResponse. - * @memberof flyteidl.admin - * @interface IExecutionUpdateResponse - */ - - /** - * Constructs a new ExecutionUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionUpdateResponse. - * @implements IExecutionUpdateResponse - * @constructor - * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set - */ - function ExecutionUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ExecutionUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {flyteidl.admin.IExecutionUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse instance - */ - ExecutionUpdateResponse.create = function create(properties) { - return new ExecutionUpdateResponse(properties); - }; - - /** - * Encodes the specified ExecutionUpdateResponse message. Does not implicitly {@link flyteidl.admin.ExecutionUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {flyteidl.admin.IExecutionUpdateResponse} message ExecutionUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes an ExecutionUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionUpdateResponse} ExecutionUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ExecutionUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ExecutionUpdateResponse; - })(); - - admin.WorkflowExecutionGetMetricsRequest = (function() { - - /** - * Properties of a WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [id] WorkflowExecutionGetMetricsRequest id - * @property {number|null} [depth] WorkflowExecutionGetMetricsRequest depth - */ - - /** - * Constructs a new WorkflowExecutionGetMetricsRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsRequest. - * @implements IWorkflowExecutionGetMetricsRequest - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set - */ - function WorkflowExecutionGetMetricsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetMetricsRequest id. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @instance - */ - WorkflowExecutionGetMetricsRequest.prototype.id = null; - - /** - * WorkflowExecutionGetMetricsRequest depth. - * @member {number} depth - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @instance - */ - WorkflowExecutionGetMetricsRequest.prototype.depth = 0; - - /** - * Creates a new WorkflowExecutionGetMetricsRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest instance - */ - WorkflowExecutionGetMetricsRequest.create = function create(properties) { - return new WorkflowExecutionGetMetricsRequest(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetMetricsRequest message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} message WorkflowExecutionGetMetricsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetMetricsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.depth != null && message.hasOwnProperty("depth")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.depth); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetMetricsRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsRequest} WorkflowExecutionGetMetricsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetMetricsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.depth = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetMetricsRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetMetricsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.depth != null && message.hasOwnProperty("depth")) - if (!$util.isInteger(message.depth)) - return "depth: integer expected"; - return null; - }; - - return WorkflowExecutionGetMetricsRequest; - })(); - - admin.WorkflowExecutionGetMetricsResponse = (function() { - - /** - * Properties of a WorkflowExecutionGetMetricsResponse. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionGetMetricsResponse - * @property {flyteidl.core.ISpan|null} [span] WorkflowExecutionGetMetricsResponse span - */ - - /** - * Constructs a new WorkflowExecutionGetMetricsResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionGetMetricsResponse. - * @implements IWorkflowExecutionGetMetricsResponse - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set - */ - function WorkflowExecutionGetMetricsResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionGetMetricsResponse span. - * @member {flyteidl.core.ISpan|null|undefined} span - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @instance - */ - WorkflowExecutionGetMetricsResponse.prototype.span = null; - - /** - * Creates a new WorkflowExecutionGetMetricsResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse instance - */ - WorkflowExecutionGetMetricsResponse.create = function create(properties) { - return new WorkflowExecutionGetMetricsResponse(properties); - }; - - /** - * Encodes the specified WorkflowExecutionGetMetricsResponse message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionGetMetricsResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsResponse} message WorkflowExecutionGetMetricsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionGetMetricsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.span != null && message.hasOwnProperty("span")) - $root.flyteidl.core.Span.encode(message.span, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionGetMetricsResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionGetMetricsResponse} WorkflowExecutionGetMetricsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionGetMetricsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.span = $root.flyteidl.core.Span.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionGetMetricsResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionGetMetricsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionGetMetricsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.span != null && message.hasOwnProperty("span")) { - var error = $root.flyteidl.core.Span.verify(message.span); - if (error) - return "span." + error; - } - return null; - }; - - return WorkflowExecutionGetMetricsResponse; - })(); - - admin.LaunchPlanCreateRequest = (function() { - - /** - * Properties of a LaunchPlanCreateRequest. - * @memberof flyteidl.admin - * @interface ILaunchPlanCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanCreateRequest id - * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlanCreateRequest spec - */ - - /** - * Constructs a new LaunchPlanCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateRequest. - * @implements ILaunchPlanCreateRequest - * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set - */ - function LaunchPlanCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @instance - */ - LaunchPlanCreateRequest.prototype.id = null; - - /** - * LaunchPlanCreateRequest spec. - * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @instance - */ - LaunchPlanCreateRequest.prototype.spec = null; - - /** - * Creates a new LaunchPlanCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest instance - */ - LaunchPlanCreateRequest.create = function create(properties) { - return new LaunchPlanCreateRequest(properties); - }; - - /** - * Encodes the specified LaunchPlanCreateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanCreateRequest} message LaunchPlanCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanCreateRequest.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(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanCreateRequest} LaunchPlanCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanCreateRequest message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return LaunchPlanCreateRequest; - })(); - - admin.LaunchPlanCreateResponse = (function() { - - /** - * Properties of a LaunchPlanCreateResponse. - * @memberof flyteidl.admin - * @interface ILaunchPlanCreateResponse - */ - - /** - * Constructs a new LaunchPlanCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanCreateResponse. - * @implements ILaunchPlanCreateResponse - * @constructor - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set - */ - function LaunchPlanCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new LaunchPlanCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse instance - */ - LaunchPlanCreateResponse.create = function create(properties) { - return new LaunchPlanCreateResponse(properties); - }; - - /** - * Encodes the specified LaunchPlanCreateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanCreateResponse} message LaunchPlanCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a LaunchPlanCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanCreateResponse} LaunchPlanCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanCreateResponse message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return LaunchPlanCreateResponse; - })(); - - /** - * LaunchPlanState enum. - * @name flyteidl.admin.LaunchPlanState - * @enum {string} - * @property {number} INACTIVE=0 INACTIVE value - * @property {number} ACTIVE=1 ACTIVE value - */ - admin.LaunchPlanState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INACTIVE"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - return values; - })(); - - admin.LaunchPlan = (function() { - - /** - * Properties of a LaunchPlan. - * @memberof flyteidl.admin - * @interface ILaunchPlan - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlan id - * @property {flyteidl.admin.ILaunchPlanSpec|null} [spec] LaunchPlan spec - * @property {flyteidl.admin.ILaunchPlanClosure|null} [closure] LaunchPlan closure - */ - - /** - * Constructs a new LaunchPlan. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlan. - * @implements ILaunchPlan - * @constructor - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set - */ - function LaunchPlan(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlan id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.id = null; - - /** - * LaunchPlan spec. - * @member {flyteidl.admin.ILaunchPlanSpec|null|undefined} spec - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.spec = null; - - /** - * LaunchPlan closure. - * @member {flyteidl.admin.ILaunchPlanClosure|null|undefined} closure - * @memberof flyteidl.admin.LaunchPlan - * @instance - */ - LaunchPlan.prototype.closure = null; - - /** - * Creates a new LaunchPlan instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {flyteidl.admin.ILaunchPlan=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlan} LaunchPlan instance - */ - LaunchPlan.create = function create(properties) { - return new LaunchPlan(properties); - }; - - /** - * Encodes the specified LaunchPlan message. Does not implicitly {@link flyteidl.admin.LaunchPlan.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {flyteidl.admin.ILaunchPlan} message LaunchPlan message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlan.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(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.LaunchPlanSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.LaunchPlanClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlan message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlan} LaunchPlan - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlan(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.LaunchPlanSpec.decode(reader, reader.uint32()); - break; - case 3: - message.closure = $root.flyteidl.admin.LaunchPlanClosure.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlan message. - * @function verify - * @memberof flyteidl.admin.LaunchPlan - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.LaunchPlanSpec.verify(message.spec); - if (error) - return "spec." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.LaunchPlanClosure.verify(message.closure); - if (error) - return "closure." + error; - } - return null; - }; - - return LaunchPlan; - })(); - - admin.LaunchPlanList = (function() { - - /** - * Properties of a LaunchPlanList. - * @memberof flyteidl.admin - * @interface ILaunchPlanList - * @property {Array.|null} [launchPlans] LaunchPlanList launchPlans - * @property {string|null} [token] LaunchPlanList token - */ - - /** - * Constructs a new LaunchPlanList. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanList. - * @implements ILaunchPlanList - * @constructor - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set - */ - function LaunchPlanList(properties) { - this.launchPlans = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanList launchPlans. - * @member {Array.} launchPlans - * @memberof flyteidl.admin.LaunchPlanList - * @instance - */ - LaunchPlanList.prototype.launchPlans = $util.emptyArray; - - /** - * LaunchPlanList token. - * @member {string} token - * @memberof flyteidl.admin.LaunchPlanList - * @instance - */ - LaunchPlanList.prototype.token = ""; - - /** - * Creates a new LaunchPlanList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {flyteidl.admin.ILaunchPlanList=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList instance - */ - LaunchPlanList.create = function create(properties) { - return new LaunchPlanList(properties); - }; - - /** - * Encodes the specified LaunchPlanList message. Does not implicitly {@link flyteidl.admin.LaunchPlanList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {flyteidl.admin.ILaunchPlanList} message LaunchPlanList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.launchPlans != null && message.launchPlans.length) - for (var i = 0; i < message.launchPlans.length; ++i) - $root.flyteidl.admin.LaunchPlan.encode(message.launchPlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a LaunchPlanList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanList} LaunchPlanList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.launchPlans && message.launchPlans.length)) - message.launchPlans = []; - message.launchPlans.push($root.flyteidl.admin.LaunchPlan.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanList message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.launchPlans != null && message.hasOwnProperty("launchPlans")) { - if (!Array.isArray(message.launchPlans)) - return "launchPlans: array expected"; - for (var i = 0; i < message.launchPlans.length; ++i) { - var error = $root.flyteidl.admin.LaunchPlan.verify(message.launchPlans[i]); - if (error) - return "launchPlans." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return LaunchPlanList; - })(); - - admin.Auth = (function() { - - /** - * Properties of an Auth. - * @memberof flyteidl.admin - * @interface IAuth - * @property {string|null} [assumableIamRole] Auth assumableIamRole - * @property {string|null} [kubernetesServiceAccount] Auth kubernetesServiceAccount - */ - - /** - * Constructs a new Auth. - * @memberof flyteidl.admin - * @classdesc Represents an Auth. - * @implements IAuth - * @constructor - * @param {flyteidl.admin.IAuth=} [properties] Properties to set - */ - function Auth(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Auth assumableIamRole. - * @member {string} assumableIamRole - * @memberof flyteidl.admin.Auth - * @instance - */ - Auth.prototype.assumableIamRole = ""; - - /** - * Auth kubernetesServiceAccount. - * @member {string} kubernetesServiceAccount - * @memberof flyteidl.admin.Auth - * @instance - */ - Auth.prototype.kubernetesServiceAccount = ""; - - /** - * Creates a new Auth instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Auth - * @static - * @param {flyteidl.admin.IAuth=} [properties] Properties to set - * @returns {flyteidl.admin.Auth} Auth instance - */ - Auth.create = function create(properties) { - return new Auth(properties); - }; - - /** - * Encodes the specified Auth message. Does not implicitly {@link flyteidl.admin.Auth.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Auth - * @static - * @param {flyteidl.admin.IAuth} message Auth message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Auth.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.assumableIamRole); - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.kubernetesServiceAccount); - return writer; - }; - - /** - * Decodes an Auth message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Auth - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Auth} Auth - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Auth.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Auth(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.assumableIamRole = reader.string(); - break; - case 2: - message.kubernetesServiceAccount = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Auth message. - * @function verify - * @memberof flyteidl.admin.Auth - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Auth.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.assumableIamRole != null && message.hasOwnProperty("assumableIamRole")) - if (!$util.isString(message.assumableIamRole)) - return "assumableIamRole: string expected"; - if (message.kubernetesServiceAccount != null && message.hasOwnProperty("kubernetesServiceAccount")) - if (!$util.isString(message.kubernetesServiceAccount)) - return "kubernetesServiceAccount: string expected"; - return null; - }; - - return Auth; - })(); - - admin.LaunchPlanSpec = (function() { - - /** - * Properties of a LaunchPlanSpec. - * @memberof flyteidl.admin - * @interface ILaunchPlanSpec - * @property {flyteidl.core.IIdentifier|null} [workflowId] LaunchPlanSpec workflowId - * @property {flyteidl.admin.ILaunchPlanMetadata|null} [entityMetadata] LaunchPlanSpec entityMetadata - * @property {flyteidl.core.IParameterMap|null} [defaultInputs] LaunchPlanSpec defaultInputs - * @property {flyteidl.core.ILiteralMap|null} [fixedInputs] LaunchPlanSpec fixedInputs - * @property {string|null} [role] LaunchPlanSpec role - * @property {flyteidl.admin.ILabels|null} [labels] LaunchPlanSpec labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] LaunchPlanSpec annotations - * @property {flyteidl.admin.IAuth|null} [auth] LaunchPlanSpec auth - * @property {flyteidl.admin.IAuthRole|null} [authRole] LaunchPlanSpec authRole - * @property {flyteidl.core.ISecurityContext|null} [securityContext] LaunchPlanSpec securityContext - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] LaunchPlanSpec qualityOfService - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] LaunchPlanSpec rawOutputDataConfig - * @property {number|null} [maxParallelism] LaunchPlanSpec maxParallelism - * @property {google.protobuf.IBoolValue|null} [interruptible] LaunchPlanSpec interruptible - * @property {boolean|null} [overwriteCache] LaunchPlanSpec overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] LaunchPlanSpec envs - */ - - /** - * Constructs a new LaunchPlanSpec. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanSpec. - * @implements ILaunchPlanSpec - * @constructor - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set - */ - function LaunchPlanSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanSpec workflowId. - * @member {flyteidl.core.IIdentifier|null|undefined} workflowId - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.workflowId = null; - - /** - * LaunchPlanSpec entityMetadata. - * @member {flyteidl.admin.ILaunchPlanMetadata|null|undefined} entityMetadata - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.entityMetadata = null; - - /** - * LaunchPlanSpec defaultInputs. - * @member {flyteidl.core.IParameterMap|null|undefined} defaultInputs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.defaultInputs = null; - - /** - * LaunchPlanSpec fixedInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fixedInputs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.fixedInputs = null; - - /** - * LaunchPlanSpec role. - * @member {string} role - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.role = ""; - - /** - * LaunchPlanSpec labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.labels = null; - - /** - * LaunchPlanSpec annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.annotations = null; - - /** - * LaunchPlanSpec auth. - * @member {flyteidl.admin.IAuth|null|undefined} auth - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.auth = null; - - /** - * LaunchPlanSpec authRole. - * @member {flyteidl.admin.IAuthRole|null|undefined} authRole - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.authRole = null; - - /** - * LaunchPlanSpec securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.securityContext = null; - - /** - * LaunchPlanSpec qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.qualityOfService = null; - - /** - * LaunchPlanSpec rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.rawOutputDataConfig = null; - - /** - * LaunchPlanSpec maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.maxParallelism = 0; - - /** - * LaunchPlanSpec interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.interruptible = null; - - /** - * LaunchPlanSpec overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.overwriteCache = false; - - /** - * LaunchPlanSpec envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.LaunchPlanSpec - * @instance - */ - LaunchPlanSpec.prototype.envs = null; - - /** - * Creates a new LaunchPlanSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {flyteidl.admin.ILaunchPlanSpec=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec instance - */ - LaunchPlanSpec.create = function create(properties) { - return new LaunchPlanSpec(properties); - }; - - /** - * Encodes the specified LaunchPlanSpec message. Does not implicitly {@link flyteidl.admin.LaunchPlanSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {flyteidl.admin.ILaunchPlanSpec} message LaunchPlanSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowId != null && message.hasOwnProperty("workflowId")) - $root.flyteidl.core.Identifier.encode(message.workflowId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) - $root.flyteidl.admin.LaunchPlanMetadata.encode(message.entityMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) - $root.flyteidl.core.ParameterMap.encode(message.defaultInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fixedInputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.role != null && message.hasOwnProperty("role")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.role); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.auth != null && message.hasOwnProperty("auth")) - $root.flyteidl.admin.Auth.encode(message.auth, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.authRole != null && message.hasOwnProperty("authRole")) - $root.flyteidl.admin.AuthRole.encode(message.authRole, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.maxParallelism); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanSpec} LaunchPlanSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowId = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.entityMetadata = $root.flyteidl.admin.LaunchPlanMetadata.decode(reader, reader.uint32()); - break; - case 3: - message.defaultInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); - break; - case 4: - message.fixedInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 5: - message.role = reader.string(); - break; - case 6: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 7: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 8: - message.auth = $root.flyteidl.admin.Auth.decode(reader, reader.uint32()); - break; - case 9: - message.authRole = $root.flyteidl.admin.AuthRole.decode(reader, reader.uint32()); - break; - case 10: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 16: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 17: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 18: - message.maxParallelism = reader.int32(); - break; - case 19: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 20: - message.overwriteCache = reader.bool(); - break; - case 21: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanSpec message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowId != null && message.hasOwnProperty("workflowId")) { - var error = $root.flyteidl.core.Identifier.verify(message.workflowId); - if (error) - return "workflowId." + error; - } - if (message.entityMetadata != null && message.hasOwnProperty("entityMetadata")) { - var error = $root.flyteidl.admin.LaunchPlanMetadata.verify(message.entityMetadata); - if (error) - return "entityMetadata." + error; - } - if (message.defaultInputs != null && message.hasOwnProperty("defaultInputs")) { - var error = $root.flyteidl.core.ParameterMap.verify(message.defaultInputs); - if (error) - return "defaultInputs." + error; - } - if (message.fixedInputs != null && message.hasOwnProperty("fixedInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fixedInputs); - if (error) - return "fixedInputs." + error; - } - if (message.role != null && message.hasOwnProperty("role")) - if (!$util.isString(message.role)) - return "role: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.auth != null && message.hasOwnProperty("auth")) { - var error = $root.flyteidl.admin.Auth.verify(message.auth); - if (error) - return "auth." + error; - } - if (message.authRole != null && message.hasOwnProperty("authRole")) { - var error = $root.flyteidl.admin.AuthRole.verify(message.authRole); - if (error) - return "authRole." + error; - } - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - return null; - }; - - return LaunchPlanSpec; - })(); - - admin.LaunchPlanClosure = (function() { - - /** - * Properties of a LaunchPlanClosure. - * @memberof flyteidl.admin - * @interface ILaunchPlanClosure - * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanClosure state - * @property {flyteidl.core.IParameterMap|null} [expectedInputs] LaunchPlanClosure expectedInputs - * @property {flyteidl.core.IVariableMap|null} [expectedOutputs] LaunchPlanClosure expectedOutputs - * @property {google.protobuf.ITimestamp|null} [createdAt] LaunchPlanClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] LaunchPlanClosure updatedAt - */ - - /** - * Constructs a new LaunchPlanClosure. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanClosure. - * @implements ILaunchPlanClosure - * @constructor - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set - */ - function LaunchPlanClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanClosure state. - * @member {flyteidl.admin.LaunchPlanState} state - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.state = 0; - - /** - * LaunchPlanClosure expectedInputs. - * @member {flyteidl.core.IParameterMap|null|undefined} expectedInputs - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.expectedInputs = null; - - /** - * LaunchPlanClosure expectedOutputs. - * @member {flyteidl.core.IVariableMap|null|undefined} expectedOutputs - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.expectedOutputs = null; - - /** - * LaunchPlanClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.createdAt = null; - - /** - * LaunchPlanClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.LaunchPlanClosure - * @instance - */ - LaunchPlanClosure.prototype.updatedAt = null; - - /** - * Creates a new LaunchPlanClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {flyteidl.admin.ILaunchPlanClosure=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure instance - */ - LaunchPlanClosure.create = function create(properties) { - return new LaunchPlanClosure(properties); - }; - - /** - * Encodes the specified LaunchPlanClosure message. Does not implicitly {@link flyteidl.admin.LaunchPlanClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {flyteidl.admin.ILaunchPlanClosure} message LaunchPlanClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) - $root.flyteidl.core.ParameterMap.encode(message.expectedInputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) - $root.flyteidl.core.VariableMap.encode(message.expectedOutputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanClosure} LaunchPlanClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.expectedInputs = $root.flyteidl.core.ParameterMap.decode(reader, reader.uint32()); - break; - case 3: - message.expectedOutputs = $root.flyteidl.core.VariableMap.decode(reader, reader.uint32()); - break; - case 4: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanClosure message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - if (message.expectedInputs != null && message.hasOwnProperty("expectedInputs")) { - var error = $root.flyteidl.core.ParameterMap.verify(message.expectedInputs); - if (error) - return "expectedInputs." + error; - } - if (message.expectedOutputs != null && message.hasOwnProperty("expectedOutputs")) { - var error = $root.flyteidl.core.VariableMap.verify(message.expectedOutputs); - if (error) - return "expectedOutputs." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - return null; - }; - - return LaunchPlanClosure; - })(); - - admin.LaunchPlanMetadata = (function() { - - /** - * Properties of a LaunchPlanMetadata. - * @memberof flyteidl.admin - * @interface ILaunchPlanMetadata - * @property {flyteidl.admin.ISchedule|null} [schedule] LaunchPlanMetadata schedule - * @property {Array.|null} [notifications] LaunchPlanMetadata notifications - * @property {google.protobuf.IAny|null} [launchConditions] LaunchPlanMetadata launchConditions - */ - - /** - * Constructs a new LaunchPlanMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanMetadata. - * @implements ILaunchPlanMetadata - * @constructor - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set - */ - function LaunchPlanMetadata(properties) { - this.notifications = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanMetadata schedule. - * @member {flyteidl.admin.ISchedule|null|undefined} schedule - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.schedule = null; - - /** - * LaunchPlanMetadata notifications. - * @member {Array.} notifications - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.notifications = $util.emptyArray; - - /** - * LaunchPlanMetadata launchConditions. - * @member {google.protobuf.IAny|null|undefined} launchConditions - * @memberof flyteidl.admin.LaunchPlanMetadata - * @instance - */ - LaunchPlanMetadata.prototype.launchConditions = null; - - /** - * Creates a new LaunchPlanMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {flyteidl.admin.ILaunchPlanMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata instance - */ - LaunchPlanMetadata.create = function create(properties) { - return new LaunchPlanMetadata(properties); - }; - - /** - * Encodes the specified LaunchPlanMetadata message. Does not implicitly {@link flyteidl.admin.LaunchPlanMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {flyteidl.admin.ILaunchPlanMetadata} message LaunchPlanMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.schedule != null && message.hasOwnProperty("schedule")) - $root.flyteidl.admin.Schedule.encode(message.schedule, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.notifications != null && message.notifications.length) - for (var i = 0; i < message.notifications.length; ++i) - $root.flyteidl.admin.Notification.encode(message.notifications[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) - $root.google.protobuf.Any.encode(message.launchConditions, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a LaunchPlanMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanMetadata} LaunchPlanMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schedule = $root.flyteidl.admin.Schedule.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.flyteidl.admin.Notification.decode(reader, reader.uint32())); - break; - case 3: - message.launchConditions = $root.google.protobuf.Any.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanMetadata message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) { - var error = $root.flyteidl.admin.Schedule.verify(message.schedule); - if (error) - return "schedule." + error; - } - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; - for (var i = 0; i < message.notifications.length; ++i) { - var error = $root.flyteidl.admin.Notification.verify(message.notifications[i]); - if (error) - return "notifications." + error; - } - } - if (message.launchConditions != null && message.hasOwnProperty("launchConditions")) { - var error = $root.google.protobuf.Any.verify(message.launchConditions); - if (error) - return "launchConditions." + error; - } - return null; - }; - - return LaunchPlanMetadata; - })(); - - admin.LaunchPlanUpdateRequest = (function() { - - /** - * Properties of a LaunchPlanUpdateRequest. - * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateRequest - * @property {flyteidl.core.IIdentifier|null} [id] LaunchPlanUpdateRequest id - * @property {flyteidl.admin.LaunchPlanState|null} [state] LaunchPlanUpdateRequest state - */ - - /** - * Constructs a new LaunchPlanUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateRequest. - * @implements ILaunchPlanUpdateRequest - * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set - */ - function LaunchPlanUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * LaunchPlanUpdateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @instance - */ - LaunchPlanUpdateRequest.prototype.id = null; - - /** - * LaunchPlanUpdateRequest state. - * @member {flyteidl.admin.LaunchPlanState} state - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @instance - */ - LaunchPlanUpdateRequest.prototype.state = 0; - - /** - * Creates a new LaunchPlanUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest instance - */ - LaunchPlanUpdateRequest.create = function create(properties) { - return new LaunchPlanUpdateRequest(properties); - }; - - /** - * Encodes the specified LaunchPlanUpdateRequest message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} message LaunchPlanUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanUpdateRequest.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(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.state); - return writer; - }; - - /** - * Decodes a LaunchPlanUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanUpdateRequest} LaunchPlanUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - return LaunchPlanUpdateRequest; - })(); - - admin.LaunchPlanUpdateResponse = (function() { - - /** - * Properties of a LaunchPlanUpdateResponse. - * @memberof flyteidl.admin - * @interface ILaunchPlanUpdateResponse - */ - - /** - * Constructs a new LaunchPlanUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a LaunchPlanUpdateResponse. - * @implements ILaunchPlanUpdateResponse - * @constructor - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set - */ - function LaunchPlanUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new LaunchPlanUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse instance - */ - LaunchPlanUpdateResponse.create = function create(properties) { - return new LaunchPlanUpdateResponse(properties); - }; - - /** - * Encodes the specified LaunchPlanUpdateResponse message. Does not implicitly {@link flyteidl.admin.LaunchPlanUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {flyteidl.admin.ILaunchPlanUpdateResponse} message LaunchPlanUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - LaunchPlanUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a LaunchPlanUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.LaunchPlanUpdateResponse} LaunchPlanUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - LaunchPlanUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.LaunchPlanUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a LaunchPlanUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.LaunchPlanUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - LaunchPlanUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return LaunchPlanUpdateResponse; - })(); - - admin.ActiveLaunchPlanRequest = (function() { - - /** - * Properties of an ActiveLaunchPlanRequest. - * @memberof flyteidl.admin - * @interface IActiveLaunchPlanRequest - * @property {flyteidl.admin.INamedEntityIdentifier|null} [id] ActiveLaunchPlanRequest id - */ - - /** - * Constructs a new ActiveLaunchPlanRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanRequest. - * @implements IActiveLaunchPlanRequest - * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set - */ - function ActiveLaunchPlanRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveLaunchPlanRequest id. - * @member {flyteidl.admin.INamedEntityIdentifier|null|undefined} id - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @instance - */ - ActiveLaunchPlanRequest.prototype.id = null; - - /** - * Creates a new ActiveLaunchPlanRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest instance - */ - ActiveLaunchPlanRequest.create = function create(properties) { - return new ActiveLaunchPlanRequest(properties); - }; - - /** - * Encodes the specified ActiveLaunchPlanRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanRequest} message ActiveLaunchPlanRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveLaunchPlanRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.admin.NamedEntityIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ActiveLaunchPlanRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ActiveLaunchPlanRequest} ActiveLaunchPlanRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveLaunchPlanRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.admin.NamedEntityIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ActiveLaunchPlanRequest message. - * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveLaunchPlanRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.admin.NamedEntityIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return ActiveLaunchPlanRequest; - })(); - - admin.ActiveLaunchPlanListRequest = (function() { - - /** - * Properties of an ActiveLaunchPlanListRequest. - * @memberof flyteidl.admin - * @interface IActiveLaunchPlanListRequest - * @property {string|null} [project] ActiveLaunchPlanListRequest project - * @property {string|null} [domain] ActiveLaunchPlanListRequest domain - * @property {number|null} [limit] ActiveLaunchPlanListRequest limit - * @property {string|null} [token] ActiveLaunchPlanListRequest token - * @property {flyteidl.admin.ISort|null} [sortBy] ActiveLaunchPlanListRequest sortBy - */ - - /** - * Constructs a new ActiveLaunchPlanListRequest. - * @memberof flyteidl.admin - * @classdesc Represents an ActiveLaunchPlanListRequest. - * @implements IActiveLaunchPlanListRequest - * @constructor - * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set - */ - function ActiveLaunchPlanListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ActiveLaunchPlanListRequest project. - * @member {string} project - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.project = ""; - - /** - * ActiveLaunchPlanListRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.domain = ""; - - /** - * ActiveLaunchPlanListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.limit = 0; - - /** - * ActiveLaunchPlanListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.token = ""; - - /** - * ActiveLaunchPlanListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @instance - */ - ActiveLaunchPlanListRequest.prototype.sortBy = null; - - /** - * Creates a new ActiveLaunchPlanListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest instance - */ - ActiveLaunchPlanListRequest.create = function create(properties) { - return new ActiveLaunchPlanListRequest(properties); - }; - - /** - * Encodes the specified ActiveLaunchPlanListRequest message. Does not implicitly {@link flyteidl.admin.ActiveLaunchPlanListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} message ActiveLaunchPlanListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ActiveLaunchPlanListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.token); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an ActiveLaunchPlanListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ActiveLaunchPlanListRequest} ActiveLaunchPlanListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ActiveLaunchPlanListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ActiveLaunchPlanListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.limit = reader.uint32(); - break; - case 4: - message.token = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ActiveLaunchPlanListRequest message. - * @function verify - * @memberof flyteidl.admin.ActiveLaunchPlanListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ActiveLaunchPlanListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return ActiveLaunchPlanListRequest; - })(); - - /** - * FixedRateUnit enum. - * @name flyteidl.admin.FixedRateUnit - * @enum {string} - * @property {number} MINUTE=0 MINUTE value - * @property {number} HOUR=1 HOUR value - * @property {number} DAY=2 DAY value - */ - admin.FixedRateUnit = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MINUTE"] = 0; - values[valuesById[1] = "HOUR"] = 1; - values[valuesById[2] = "DAY"] = 2; - return values; - })(); - - admin.FixedRate = (function() { - - /** - * Properties of a FixedRate. - * @memberof flyteidl.admin - * @interface IFixedRate - * @property {number|null} [value] FixedRate value - * @property {flyteidl.admin.FixedRateUnit|null} [unit] FixedRate unit - */ - - /** - * Constructs a new FixedRate. - * @memberof flyteidl.admin - * @classdesc Represents a FixedRate. - * @implements IFixedRate - * @constructor - * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set - */ - function FixedRate(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FixedRate value. - * @member {number} value - * @memberof flyteidl.admin.FixedRate - * @instance - */ - FixedRate.prototype.value = 0; - - /** - * FixedRate unit. - * @member {flyteidl.admin.FixedRateUnit} unit - * @memberof flyteidl.admin.FixedRate - * @instance - */ - FixedRate.prototype.unit = 0; - - /** - * Creates a new FixedRate instance using the specified properties. - * @function create - * @memberof flyteidl.admin.FixedRate - * @static - * @param {flyteidl.admin.IFixedRate=} [properties] Properties to set - * @returns {flyteidl.admin.FixedRate} FixedRate instance - */ - FixedRate.create = function create(properties) { - return new FixedRate(properties); - }; - - /** - * Encodes the specified FixedRate message. Does not implicitly {@link flyteidl.admin.FixedRate.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.FixedRate - * @static - * @param {flyteidl.admin.IFixedRate} message FixedRate message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FixedRate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); - if (message.unit != null && message.hasOwnProperty("unit")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.unit); - return writer; - }; - - /** - * Decodes a FixedRate message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.FixedRate - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.FixedRate} FixedRate - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FixedRate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.FixedRate(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; - case 2: - message.unit = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FixedRate message. - * @function verify - * @memberof flyteidl.admin.FixedRate - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FixedRate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - if (message.unit != null && message.hasOwnProperty("unit")) - switch (message.unit) { - default: - return "unit: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - return FixedRate; - })(); - - admin.CronSchedule = (function() { - - /** - * Properties of a CronSchedule. - * @memberof flyteidl.admin - * @interface ICronSchedule - * @property {string|null} [schedule] CronSchedule schedule - * @property {string|null} [offset] CronSchedule offset - */ - - /** - * Constructs a new CronSchedule. - * @memberof flyteidl.admin - * @classdesc Represents a CronSchedule. - * @implements ICronSchedule - * @constructor - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set - */ - function CronSchedule(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CronSchedule schedule. - * @member {string} schedule - * @memberof flyteidl.admin.CronSchedule - * @instance - */ - CronSchedule.prototype.schedule = ""; - - /** - * CronSchedule offset. - * @member {string} offset - * @memberof flyteidl.admin.CronSchedule - * @instance - */ - CronSchedule.prototype.offset = ""; - - /** - * Creates a new CronSchedule instance using the specified properties. - * @function create - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {flyteidl.admin.ICronSchedule=} [properties] Properties to set - * @returns {flyteidl.admin.CronSchedule} CronSchedule instance - */ - CronSchedule.create = function create(properties) { - return new CronSchedule(properties); - }; - - /** - * Encodes the specified CronSchedule message. Does not implicitly {@link flyteidl.admin.CronSchedule.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {flyteidl.admin.ICronSchedule} message CronSchedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CronSchedule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.schedule != null && message.hasOwnProperty("schedule")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.schedule); - if (message.offset != null && message.hasOwnProperty("offset")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.offset); - return writer; - }; - - /** - * Decodes a CronSchedule message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.CronSchedule} CronSchedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CronSchedule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CronSchedule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.schedule = reader.string(); - break; - case 2: - message.offset = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CronSchedule message. - * @function verify - * @memberof flyteidl.admin.CronSchedule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CronSchedule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - if (message.offset != null && message.hasOwnProperty("offset")) - if (!$util.isString(message.offset)) - return "offset: string expected"; - return null; - }; - - return CronSchedule; - })(); - - admin.Schedule = (function() { - - /** - * Properties of a Schedule. - * @memberof flyteidl.admin - * @interface ISchedule - * @property {string|null} [cronExpression] Schedule cronExpression - * @property {flyteidl.admin.IFixedRate|null} [rate] Schedule rate - * @property {flyteidl.admin.ICronSchedule|null} [cronSchedule] Schedule cronSchedule - * @property {string|null} [kickoffTimeInputArg] Schedule kickoffTimeInputArg - */ - - /** - * Constructs a new Schedule. - * @memberof flyteidl.admin - * @classdesc Represents a Schedule. - * @implements ISchedule - * @constructor - * @param {flyteidl.admin.ISchedule=} [properties] Properties to set - */ - function Schedule(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Schedule cronExpression. - * @member {string} cronExpression - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.cronExpression = ""; - - /** - * Schedule rate. - * @member {flyteidl.admin.IFixedRate|null|undefined} rate - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.rate = null; - - /** - * Schedule cronSchedule. - * @member {flyteidl.admin.ICronSchedule|null|undefined} cronSchedule - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.cronSchedule = null; - - /** - * Schedule kickoffTimeInputArg. - * @member {string} kickoffTimeInputArg - * @memberof flyteidl.admin.Schedule - * @instance - */ - Schedule.prototype.kickoffTimeInputArg = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Schedule ScheduleExpression. - * @member {"cronExpression"|"rate"|"cronSchedule"|undefined} ScheduleExpression - * @memberof flyteidl.admin.Schedule - * @instance - */ - Object.defineProperty(Schedule.prototype, "ScheduleExpression", { - get: $util.oneOfGetter($oneOfFields = ["cronExpression", "rate", "cronSchedule"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Schedule instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Schedule - * @static - * @param {flyteidl.admin.ISchedule=} [properties] Properties to set - * @returns {flyteidl.admin.Schedule} Schedule instance - */ - Schedule.create = function create(properties) { - return new Schedule(properties); - }; - - /** - * Encodes the specified Schedule message. Does not implicitly {@link flyteidl.admin.Schedule.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Schedule - * @static - * @param {flyteidl.admin.ISchedule} message Schedule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Schedule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cronExpression); - if (message.rate != null && message.hasOwnProperty("rate")) - $root.flyteidl.admin.FixedRate.encode(message.rate, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.kickoffTimeInputArg); - if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) - $root.flyteidl.admin.CronSchedule.encode(message.cronSchedule, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Schedule message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Schedule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Schedule} Schedule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Schedule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Schedule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cronExpression = reader.string(); - break; - case 2: - message.rate = $root.flyteidl.admin.FixedRate.decode(reader, reader.uint32()); - break; - case 4: - message.cronSchedule = $root.flyteidl.admin.CronSchedule.decode(reader, reader.uint32()); - break; - case 3: - message.kickoffTimeInputArg = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Schedule message. - * @function verify - * @memberof flyteidl.admin.Schedule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Schedule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.cronExpression != null && message.hasOwnProperty("cronExpression")) { - properties.ScheduleExpression = 1; - if (!$util.isString(message.cronExpression)) - return "cronExpression: string expected"; - } - if (message.rate != null && message.hasOwnProperty("rate")) { - if (properties.ScheduleExpression === 1) - return "ScheduleExpression: multiple values"; - properties.ScheduleExpression = 1; - { - var error = $root.flyteidl.admin.FixedRate.verify(message.rate); - if (error) - return "rate." + error; - } - } - if (message.cronSchedule != null && message.hasOwnProperty("cronSchedule")) { - if (properties.ScheduleExpression === 1) - return "ScheduleExpression: multiple values"; - properties.ScheduleExpression = 1; - { - var error = $root.flyteidl.admin.CronSchedule.verify(message.cronSchedule); - if (error) - return "cronSchedule." + error; - } - } - if (message.kickoffTimeInputArg != null && message.hasOwnProperty("kickoffTimeInputArg")) - if (!$util.isString(message.kickoffTimeInputArg)) - return "kickoffTimeInputArg: string expected"; - return null; - }; - - return Schedule; - })(); - - /** - * MatchableResource enum. - * @name flyteidl.admin.MatchableResource - * @enum {string} - * @property {number} TASK_RESOURCE=0 TASK_RESOURCE value - * @property {number} CLUSTER_RESOURCE=1 CLUSTER_RESOURCE value - * @property {number} EXECUTION_QUEUE=2 EXECUTION_QUEUE value - * @property {number} EXECUTION_CLUSTER_LABEL=3 EXECUTION_CLUSTER_LABEL value - * @property {number} QUALITY_OF_SERVICE_SPECIFICATION=4 QUALITY_OF_SERVICE_SPECIFICATION value - * @property {number} PLUGIN_OVERRIDE=5 PLUGIN_OVERRIDE value - * @property {number} WORKFLOW_EXECUTION_CONFIG=6 WORKFLOW_EXECUTION_CONFIG value - * @property {number} CLUSTER_ASSIGNMENT=7 CLUSTER_ASSIGNMENT value - */ - admin.MatchableResource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TASK_RESOURCE"] = 0; - values[valuesById[1] = "CLUSTER_RESOURCE"] = 1; - values[valuesById[2] = "EXECUTION_QUEUE"] = 2; - values[valuesById[3] = "EXECUTION_CLUSTER_LABEL"] = 3; - values[valuesById[4] = "QUALITY_OF_SERVICE_SPECIFICATION"] = 4; - values[valuesById[5] = "PLUGIN_OVERRIDE"] = 5; - values[valuesById[6] = "WORKFLOW_EXECUTION_CONFIG"] = 6; - values[valuesById[7] = "CLUSTER_ASSIGNMENT"] = 7; - return values; - })(); - - admin.TaskResourceSpec = (function() { - - /** - * Properties of a TaskResourceSpec. - * @memberof flyteidl.admin - * @interface ITaskResourceSpec - * @property {string|null} [cpu] TaskResourceSpec cpu - * @property {string|null} [gpu] TaskResourceSpec gpu - * @property {string|null} [memory] TaskResourceSpec memory - * @property {string|null} [storage] TaskResourceSpec storage - * @property {string|null} [ephemeralStorage] TaskResourceSpec ephemeralStorage - */ - - /** - * Constructs a new TaskResourceSpec. - * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceSpec. - * @implements ITaskResourceSpec - * @constructor - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set - */ - function TaskResourceSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskResourceSpec cpu. - * @member {string} cpu - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.cpu = ""; - - /** - * TaskResourceSpec gpu. - * @member {string} gpu - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.gpu = ""; - - /** - * TaskResourceSpec memory. - * @member {string} memory - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.memory = ""; - - /** - * TaskResourceSpec storage. - * @member {string} storage - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.storage = ""; - - /** - * TaskResourceSpec ephemeralStorage. - * @member {string} ephemeralStorage - * @memberof flyteidl.admin.TaskResourceSpec - * @instance - */ - TaskResourceSpec.prototype.ephemeralStorage = ""; - - /** - * Creates a new TaskResourceSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {flyteidl.admin.ITaskResourceSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec instance - */ - TaskResourceSpec.create = function create(properties) { - return new TaskResourceSpec(properties); - }; - - /** - * Encodes the specified TaskResourceSpec message. Does not implicitly {@link flyteidl.admin.TaskResourceSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {flyteidl.admin.ITaskResourceSpec} message TaskResourceSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskResourceSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cpu != null && message.hasOwnProperty("cpu")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.cpu); - if (message.gpu != null && message.hasOwnProperty("gpu")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gpu); - if (message.memory != null && message.hasOwnProperty("memory")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.memory); - if (message.storage != null && message.hasOwnProperty("storage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.storage); - if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.ephemeralStorage); - return writer; - }; - - /** - * Decodes a TaskResourceSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskResourceSpec} TaskResourceSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskResourceSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cpu = reader.string(); - break; - case 2: - message.gpu = reader.string(); - break; - case 3: - message.memory = reader.string(); - break; - case 4: - message.storage = reader.string(); - break; - case 5: - message.ephemeralStorage = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskResourceSpec message. - * @function verify - * @memberof flyteidl.admin.TaskResourceSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskResourceSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cpu != null && message.hasOwnProperty("cpu")) - if (!$util.isString(message.cpu)) - return "cpu: string expected"; - if (message.gpu != null && message.hasOwnProperty("gpu")) - if (!$util.isString(message.gpu)) - return "gpu: string expected"; - if (message.memory != null && message.hasOwnProperty("memory")) - if (!$util.isString(message.memory)) - return "memory: string expected"; - if (message.storage != null && message.hasOwnProperty("storage")) - if (!$util.isString(message.storage)) - return "storage: string expected"; - if (message.ephemeralStorage != null && message.hasOwnProperty("ephemeralStorage")) - if (!$util.isString(message.ephemeralStorage)) - return "ephemeralStorage: string expected"; - return null; - }; - - return TaskResourceSpec; - })(); - - admin.TaskResourceAttributes = (function() { - - /** - * Properties of a TaskResourceAttributes. - * @memberof flyteidl.admin - * @interface ITaskResourceAttributes - * @property {flyteidl.admin.ITaskResourceSpec|null} [defaults] TaskResourceAttributes defaults - * @property {flyteidl.admin.ITaskResourceSpec|null} [limits] TaskResourceAttributes limits - */ - - /** - * Constructs a new TaskResourceAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a TaskResourceAttributes. - * @implements ITaskResourceAttributes - * @constructor - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set - */ - function TaskResourceAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskResourceAttributes defaults. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} defaults - * @memberof flyteidl.admin.TaskResourceAttributes - * @instance - */ - TaskResourceAttributes.prototype.defaults = null; - - /** - * TaskResourceAttributes limits. - * @member {flyteidl.admin.ITaskResourceSpec|null|undefined} limits - * @memberof flyteidl.admin.TaskResourceAttributes - * @instance - */ - TaskResourceAttributes.prototype.limits = null; - - /** - * Creates a new TaskResourceAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {flyteidl.admin.ITaskResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes instance - */ - TaskResourceAttributes.create = function create(properties) { - return new TaskResourceAttributes(properties); - }; - - /** - * Encodes the specified TaskResourceAttributes message. Does not implicitly {@link flyteidl.admin.TaskResourceAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {flyteidl.admin.ITaskResourceAttributes} message TaskResourceAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskResourceAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.defaults != null && message.hasOwnProperty("defaults")) - $root.flyteidl.admin.TaskResourceSpec.encode(message.defaults, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limits != null && message.hasOwnProperty("limits")) - $root.flyteidl.admin.TaskResourceSpec.encode(message.limits, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskResourceAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskResourceAttributes} TaskResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskResourceAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskResourceAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.defaults = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); - break; - case 2: - message.limits = $root.flyteidl.admin.TaskResourceSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskResourceAttributes message. - * @function verify - * @memberof flyteidl.admin.TaskResourceAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskResourceAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.defaults != null && message.hasOwnProperty("defaults")) { - var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.defaults); - if (error) - return "defaults." + error; - } - if (message.limits != null && message.hasOwnProperty("limits")) { - var error = $root.flyteidl.admin.TaskResourceSpec.verify(message.limits); - if (error) - return "limits." + error; - } - return null; - }; - - return TaskResourceAttributes; - })(); - - admin.ClusterResourceAttributes = (function() { - - /** - * Properties of a ClusterResourceAttributes. - * @memberof flyteidl.admin - * @interface IClusterResourceAttributes - * @property {Object.|null} [attributes] ClusterResourceAttributes attributes - */ - - /** - * Constructs a new ClusterResourceAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ClusterResourceAttributes. - * @implements IClusterResourceAttributes - * @constructor - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set - */ - function ClusterResourceAttributes(properties) { - this.attributes = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ClusterResourceAttributes attributes. - * @member {Object.} attributes - * @memberof flyteidl.admin.ClusterResourceAttributes - * @instance - */ - ClusterResourceAttributes.prototype.attributes = $util.emptyObject; - - /** - * Creates a new ClusterResourceAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {flyteidl.admin.IClusterResourceAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes instance - */ - ClusterResourceAttributes.create = function create(properties) { - return new ClusterResourceAttributes(properties); - }; - - /** - * Encodes the specified ClusterResourceAttributes message. Does not implicitly {@link flyteidl.admin.ClusterResourceAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {flyteidl.admin.IClusterResourceAttributes} message ClusterResourceAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ClusterResourceAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - for (var keys = Object.keys(message.attributes), i = 0; i < keys.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.attributes[keys[i]]).ldelim(); - return writer; - }; - - /** - * Decodes a ClusterResourceAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ClusterResourceAttributes} ClusterResourceAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ClusterResourceAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ClusterResourceAttributes(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.attributes === $util.emptyObject) - message.attributes = {}; - key = reader.string(); - reader.pos++; - message.attributes[key] = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ClusterResourceAttributes message. - * @function verify - * @memberof flyteidl.admin.ClusterResourceAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ClusterResourceAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - if (!$util.isObject(message.attributes)) - return "attributes: object expected"; - var key = Object.keys(message.attributes); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.attributes[key[i]])) - return "attributes: string{k:string} expected"; - } - return null; - }; - - return ClusterResourceAttributes; - })(); - - admin.ExecutionQueueAttributes = (function() { - - /** - * Properties of an ExecutionQueueAttributes. - * @memberof flyteidl.admin - * @interface IExecutionQueueAttributes - * @property {Array.|null} [tags] ExecutionQueueAttributes tags - */ - - /** - * Constructs a new ExecutionQueueAttributes. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionQueueAttributes. - * @implements IExecutionQueueAttributes - * @constructor - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set - */ - function ExecutionQueueAttributes(properties) { - this.tags = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionQueueAttributes tags. - * @member {Array.} tags - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @instance - */ - ExecutionQueueAttributes.prototype.tags = $util.emptyArray; - - /** - * Creates a new ExecutionQueueAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {flyteidl.admin.IExecutionQueueAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes instance - */ - ExecutionQueueAttributes.create = function create(properties) { - return new ExecutionQueueAttributes(properties); - }; - - /** - * Encodes the specified ExecutionQueueAttributes message. Does not implicitly {@link flyteidl.admin.ExecutionQueueAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {flyteidl.admin.IExecutionQueueAttributes} message ExecutionQueueAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionQueueAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tags != null && message.tags.length) - for (var i = 0; i < message.tags.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.tags[i]); - return writer; - }; - - /** - * Decodes an ExecutionQueueAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionQueueAttributes} ExecutionQueueAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionQueueAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionQueueAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.tags && message.tags.length)) - message.tags = []; - message.tags.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionQueueAttributes message. - * @function verify - * @memberof flyteidl.admin.ExecutionQueueAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionQueueAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tags != null && message.hasOwnProperty("tags")) { - if (!Array.isArray(message.tags)) - return "tags: array expected"; - for (var i = 0; i < message.tags.length; ++i) - if (!$util.isString(message.tags[i])) - return "tags: string[] expected"; - } - return null; - }; - - return ExecutionQueueAttributes; - })(); - - admin.ExecutionClusterLabel = (function() { - - /** - * Properties of an ExecutionClusterLabel. - * @memberof flyteidl.admin - * @interface IExecutionClusterLabel - * @property {string|null} [value] ExecutionClusterLabel value - */ - - /** - * Constructs a new ExecutionClusterLabel. - * @memberof flyteidl.admin - * @classdesc Represents an ExecutionClusterLabel. - * @implements IExecutionClusterLabel - * @constructor - * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set - */ - function ExecutionClusterLabel(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExecutionClusterLabel value. - * @member {string} value - * @memberof flyteidl.admin.ExecutionClusterLabel - * @instance - */ - ExecutionClusterLabel.prototype.value = ""; - - /** - * Creates a new ExecutionClusterLabel instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {flyteidl.admin.IExecutionClusterLabel=} [properties] Properties to set - * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel instance - */ - ExecutionClusterLabel.create = function create(properties) { - return new ExecutionClusterLabel(properties); - }; - - /** - * Encodes the specified ExecutionClusterLabel message. Does not implicitly {@link flyteidl.admin.ExecutionClusterLabel.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {flyteidl.admin.IExecutionClusterLabel} message ExecutionClusterLabel message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExecutionClusterLabel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; - - /** - * Decodes an ExecutionClusterLabel message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ExecutionClusterLabel} ExecutionClusterLabel - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExecutionClusterLabel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ExecutionClusterLabel(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExecutionClusterLabel message. - * @function verify - * @memberof flyteidl.admin.ExecutionClusterLabel - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExecutionClusterLabel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return ExecutionClusterLabel; - })(); - - admin.PluginOverride = (function() { - - /** - * Properties of a PluginOverride. - * @memberof flyteidl.admin - * @interface IPluginOverride - * @property {string|null} [taskType] PluginOverride taskType - * @property {Array.|null} [pluginId] PluginOverride pluginId - * @property {flyteidl.admin.PluginOverride.MissingPluginBehavior|null} [missingPluginBehavior] PluginOverride missingPluginBehavior - */ - - /** - * Constructs a new PluginOverride. - * @memberof flyteidl.admin - * @classdesc Represents a PluginOverride. - * @implements IPluginOverride - * @constructor - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set - */ - function PluginOverride(properties) { - this.pluginId = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PluginOverride taskType. - * @member {string} taskType - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.taskType = ""; - - /** - * PluginOverride pluginId. - * @member {Array.} pluginId - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.pluginId = $util.emptyArray; - - /** - * PluginOverride missingPluginBehavior. - * @member {flyteidl.admin.PluginOverride.MissingPluginBehavior} missingPluginBehavior - * @memberof flyteidl.admin.PluginOverride - * @instance - */ - PluginOverride.prototype.missingPluginBehavior = 0; - - /** - * Creates a new PluginOverride instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {flyteidl.admin.IPluginOverride=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverride} PluginOverride instance - */ - PluginOverride.create = function create(properties) { - return new PluginOverride(properties); - }; - - /** - * Encodes the specified PluginOverride message. Does not implicitly {@link flyteidl.admin.PluginOverride.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {flyteidl.admin.IPluginOverride} message PluginOverride message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PluginOverride.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.pluginId != null && message.pluginId.length) - for (var i = 0; i < message.pluginId.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pluginId[i]); - if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.missingPluginBehavior); - return writer; - }; - - /** - * Decodes a PluginOverride message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PluginOverride} PluginOverride - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PluginOverride.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverride(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - if (!(message.pluginId && message.pluginId.length)) - message.pluginId = []; - message.pluginId.push(reader.string()); - break; - case 4: - message.missingPluginBehavior = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PluginOverride message. - * @function verify - * @memberof flyteidl.admin.PluginOverride - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PluginOverride.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.pluginId != null && message.hasOwnProperty("pluginId")) { - if (!Array.isArray(message.pluginId)) - return "pluginId: array expected"; - for (var i = 0; i < message.pluginId.length; ++i) - if (!$util.isString(message.pluginId[i])) - return "pluginId: string[] expected"; - } - if (message.missingPluginBehavior != null && message.hasOwnProperty("missingPluginBehavior")) - switch (message.missingPluginBehavior) { - default: - return "missingPluginBehavior: enum value expected"; - case 0: - case 1: - break; - } - return null; - }; - - /** - * MissingPluginBehavior enum. - * @name flyteidl.admin.PluginOverride.MissingPluginBehavior - * @enum {string} - * @property {number} FAIL=0 FAIL value - * @property {number} USE_DEFAULT=1 USE_DEFAULT value - */ - PluginOverride.MissingPluginBehavior = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FAIL"] = 0; - values[valuesById[1] = "USE_DEFAULT"] = 1; - return values; - })(); - - return PluginOverride; - })(); - - admin.PluginOverrides = (function() { - - /** - * Properties of a PluginOverrides. - * @memberof flyteidl.admin - * @interface IPluginOverrides - * @property {Array.|null} [overrides] PluginOverrides overrides - */ - - /** - * Constructs a new PluginOverrides. - * @memberof flyteidl.admin - * @classdesc Represents a PluginOverrides. - * @implements IPluginOverrides - * @constructor - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set - */ - function PluginOverrides(properties) { - this.overrides = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PluginOverrides overrides. - * @member {Array.} overrides - * @memberof flyteidl.admin.PluginOverrides - * @instance - */ - PluginOverrides.prototype.overrides = $util.emptyArray; - - /** - * Creates a new PluginOverrides instance using the specified properties. - * @function create - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {flyteidl.admin.IPluginOverrides=} [properties] Properties to set - * @returns {flyteidl.admin.PluginOverrides} PluginOverrides instance - */ - PluginOverrides.create = function create(properties) { - return new PluginOverrides(properties); - }; - - /** - * Encodes the specified PluginOverrides message. Does not implicitly {@link flyteidl.admin.PluginOverrides.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {flyteidl.admin.IPluginOverrides} message PluginOverrides message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PluginOverrides.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.overrides != null && message.overrides.length) - for (var i = 0; i < message.overrides.length; ++i) - $root.flyteidl.admin.PluginOverride.encode(message.overrides[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a PluginOverrides message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.PluginOverrides} PluginOverrides - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PluginOverrides.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.PluginOverrides(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.overrides && message.overrides.length)) - message.overrides = []; - message.overrides.push($root.flyteidl.admin.PluginOverride.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PluginOverrides message. - * @function verify - * @memberof flyteidl.admin.PluginOverrides - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PluginOverrides.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.overrides != null && message.hasOwnProperty("overrides")) { - if (!Array.isArray(message.overrides)) - return "overrides: array expected"; - for (var i = 0; i < message.overrides.length; ++i) { - var error = $root.flyteidl.admin.PluginOverride.verify(message.overrides[i]); - if (error) - return "overrides." + error; - } - } - return null; - }; - - return PluginOverrides; - })(); - - admin.WorkflowExecutionConfig = (function() { - - /** - * Properties of a WorkflowExecutionConfig. - * @memberof flyteidl.admin - * @interface IWorkflowExecutionConfig - * @property {number|null} [maxParallelism] WorkflowExecutionConfig maxParallelism - * @property {flyteidl.core.ISecurityContext|null} [securityContext] WorkflowExecutionConfig securityContext - * @property {flyteidl.admin.IRawOutputDataConfig|null} [rawOutputDataConfig] WorkflowExecutionConfig rawOutputDataConfig - * @property {flyteidl.admin.ILabels|null} [labels] WorkflowExecutionConfig labels - * @property {flyteidl.admin.IAnnotations|null} [annotations] WorkflowExecutionConfig annotations - * @property {google.protobuf.IBoolValue|null} [interruptible] WorkflowExecutionConfig interruptible - * @property {boolean|null} [overwriteCache] WorkflowExecutionConfig overwriteCache - * @property {flyteidl.admin.IEnvs|null} [envs] WorkflowExecutionConfig envs - */ - - /** - * Constructs a new WorkflowExecutionConfig. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowExecutionConfig. - * @implements IWorkflowExecutionConfig - * @constructor - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set - */ - function WorkflowExecutionConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowExecutionConfig maxParallelism. - * @member {number} maxParallelism - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.maxParallelism = 0; - - /** - * WorkflowExecutionConfig securityContext. - * @member {flyteidl.core.ISecurityContext|null|undefined} securityContext - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.securityContext = null; - - /** - * WorkflowExecutionConfig rawOutputDataConfig. - * @member {flyteidl.admin.IRawOutputDataConfig|null|undefined} rawOutputDataConfig - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.rawOutputDataConfig = null; - - /** - * WorkflowExecutionConfig labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.labels = null; - - /** - * WorkflowExecutionConfig annotations. - * @member {flyteidl.admin.IAnnotations|null|undefined} annotations - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.annotations = null; - - /** - * WorkflowExecutionConfig interruptible. - * @member {google.protobuf.IBoolValue|null|undefined} interruptible - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.interruptible = null; - - /** - * WorkflowExecutionConfig overwriteCache. - * @member {boolean} overwriteCache - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.overwriteCache = false; - - /** - * WorkflowExecutionConfig envs. - * @member {flyteidl.admin.IEnvs|null|undefined} envs - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @instance - */ - WorkflowExecutionConfig.prototype.envs = null; - - /** - * Creates a new WorkflowExecutionConfig instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig instance - */ - WorkflowExecutionConfig.create = function create(properties) { - return new WorkflowExecutionConfig(properties); - }; - - /** - * Encodes the specified WorkflowExecutionConfig message. Does not implicitly {@link flyteidl.admin.WorkflowExecutionConfig.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {flyteidl.admin.IWorkflowExecutionConfig} message WorkflowExecutionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowExecutionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxParallelism); - if (message.securityContext != null && message.hasOwnProperty("securityContext")) - $root.flyteidl.core.SecurityContext.encode(message.securityContext, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) - $root.flyteidl.admin.RawOutputDataConfig.encode(message.rawOutputDataConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.annotations != null && message.hasOwnProperty("annotations")) - $root.flyteidl.admin.Annotations.encode(message.annotations, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.interruptible != null && message.hasOwnProperty("interruptible")) - $root.google.protobuf.BoolValue.encode(message.interruptible, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.overwriteCache); - if (message.envs != null && message.hasOwnProperty("envs")) - $root.flyteidl.admin.Envs.encode(message.envs, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowExecutionConfig message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowExecutionConfig} WorkflowExecutionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowExecutionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowExecutionConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.maxParallelism = reader.int32(); - break; - case 2: - message.securityContext = $root.flyteidl.core.SecurityContext.decode(reader, reader.uint32()); - break; - case 3: - message.rawOutputDataConfig = $root.flyteidl.admin.RawOutputDataConfig.decode(reader, reader.uint32()); - break; - case 4: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 5: - message.annotations = $root.flyteidl.admin.Annotations.decode(reader, reader.uint32()); - break; - case 6: - message.interruptible = $root.google.protobuf.BoolValue.decode(reader, reader.uint32()); - break; - case 7: - message.overwriteCache = reader.bool(); - break; - case 8: - message.envs = $root.flyteidl.admin.Envs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowExecutionConfig message. - * @function verify - * @memberof flyteidl.admin.WorkflowExecutionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowExecutionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.maxParallelism != null && message.hasOwnProperty("maxParallelism")) - if (!$util.isInteger(message.maxParallelism)) - return "maxParallelism: integer expected"; - if (message.securityContext != null && message.hasOwnProperty("securityContext")) { - var error = $root.flyteidl.core.SecurityContext.verify(message.securityContext); - if (error) - return "securityContext." + error; - } - if (message.rawOutputDataConfig != null && message.hasOwnProperty("rawOutputDataConfig")) { - var error = $root.flyteidl.admin.RawOutputDataConfig.verify(message.rawOutputDataConfig); - if (error) - return "rawOutputDataConfig." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.annotations != null && message.hasOwnProperty("annotations")) { - var error = $root.flyteidl.admin.Annotations.verify(message.annotations); - if (error) - return "annotations." + error; - } - if (message.interruptible != null && message.hasOwnProperty("interruptible")) { - var error = $root.google.protobuf.BoolValue.verify(message.interruptible); - if (error) - return "interruptible." + error; - } - if (message.overwriteCache != null && message.hasOwnProperty("overwriteCache")) - if (typeof message.overwriteCache !== "boolean") - return "overwriteCache: boolean expected"; - if (message.envs != null && message.hasOwnProperty("envs")) { - var error = $root.flyteidl.admin.Envs.verify(message.envs); - if (error) - return "envs." + error; - } - return null; - }; - - return WorkflowExecutionConfig; - })(); - - admin.MatchingAttributes = (function() { - - /** - * Properties of a MatchingAttributes. - * @memberof flyteidl.admin - * @interface IMatchingAttributes - * @property {flyteidl.admin.ITaskResourceAttributes|null} [taskResourceAttributes] MatchingAttributes taskResourceAttributes - * @property {flyteidl.admin.IClusterResourceAttributes|null} [clusterResourceAttributes] MatchingAttributes clusterResourceAttributes - * @property {flyteidl.admin.IExecutionQueueAttributes|null} [executionQueueAttributes] MatchingAttributes executionQueueAttributes - * @property {flyteidl.admin.IExecutionClusterLabel|null} [executionClusterLabel] MatchingAttributes executionClusterLabel - * @property {flyteidl.core.IQualityOfService|null} [qualityOfService] MatchingAttributes qualityOfService - * @property {flyteidl.admin.IPluginOverrides|null} [pluginOverrides] MatchingAttributes pluginOverrides - * @property {flyteidl.admin.IWorkflowExecutionConfig|null} [workflowExecutionConfig] MatchingAttributes workflowExecutionConfig - * @property {flyteidl.admin.IClusterAssignment|null} [clusterAssignment] MatchingAttributes clusterAssignment - */ - - /** - * Constructs a new MatchingAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a MatchingAttributes. - * @implements IMatchingAttributes - * @constructor - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set - */ - function MatchingAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MatchingAttributes taskResourceAttributes. - * @member {flyteidl.admin.ITaskResourceAttributes|null|undefined} taskResourceAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.taskResourceAttributes = null; - - /** - * MatchingAttributes clusterResourceAttributes. - * @member {flyteidl.admin.IClusterResourceAttributes|null|undefined} clusterResourceAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.clusterResourceAttributes = null; - - /** - * MatchingAttributes executionQueueAttributes. - * @member {flyteidl.admin.IExecutionQueueAttributes|null|undefined} executionQueueAttributes - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.executionQueueAttributes = null; - - /** - * MatchingAttributes executionClusterLabel. - * @member {flyteidl.admin.IExecutionClusterLabel|null|undefined} executionClusterLabel - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.executionClusterLabel = null; - - /** - * MatchingAttributes qualityOfService. - * @member {flyteidl.core.IQualityOfService|null|undefined} qualityOfService - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.qualityOfService = null; - - /** - * MatchingAttributes pluginOverrides. - * @member {flyteidl.admin.IPluginOverrides|null|undefined} pluginOverrides - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.pluginOverrides = null; - - /** - * MatchingAttributes workflowExecutionConfig. - * @member {flyteidl.admin.IWorkflowExecutionConfig|null|undefined} workflowExecutionConfig - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.workflowExecutionConfig = null; - - /** - * MatchingAttributes clusterAssignment. - * @member {flyteidl.admin.IClusterAssignment|null|undefined} clusterAssignment - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - MatchingAttributes.prototype.clusterAssignment = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * MatchingAttributes target. - * @member {"taskResourceAttributes"|"clusterResourceAttributes"|"executionQueueAttributes"|"executionClusterLabel"|"qualityOfService"|"pluginOverrides"|"workflowExecutionConfig"|"clusterAssignment"|undefined} target - * @memberof flyteidl.admin.MatchingAttributes - * @instance - */ - Object.defineProperty(MatchingAttributes.prototype, "target", { - get: $util.oneOfGetter($oneOfFields = ["taskResourceAttributes", "clusterResourceAttributes", "executionQueueAttributes", "executionClusterLabel", "qualityOfService", "pluginOverrides", "workflowExecutionConfig", "clusterAssignment"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new MatchingAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {flyteidl.admin.IMatchingAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes instance - */ - MatchingAttributes.create = function create(properties) { - return new MatchingAttributes(properties); - }; - - /** - * Encodes the specified MatchingAttributes message. Does not implicitly {@link flyteidl.admin.MatchingAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {flyteidl.admin.IMatchingAttributes} message MatchingAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchingAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) - $root.flyteidl.admin.TaskResourceAttributes.encode(message.taskResourceAttributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) - $root.flyteidl.admin.ClusterResourceAttributes.encode(message.clusterResourceAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) - $root.flyteidl.admin.ExecutionQueueAttributes.encode(message.executionQueueAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) - $root.flyteidl.admin.ExecutionClusterLabel.encode(message.executionClusterLabel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) - $root.flyteidl.core.QualityOfService.encode(message.qualityOfService, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) - $root.flyteidl.admin.PluginOverrides.encode(message.pluginOverrides, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) - $root.flyteidl.admin.WorkflowExecutionConfig.encode(message.workflowExecutionConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) - $root.flyteidl.admin.ClusterAssignment.encode(message.clusterAssignment, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MatchingAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.MatchingAttributes} MatchingAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MatchingAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchingAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskResourceAttributes = $root.flyteidl.admin.TaskResourceAttributes.decode(reader, reader.uint32()); - break; - case 2: - message.clusterResourceAttributes = $root.flyteidl.admin.ClusterResourceAttributes.decode(reader, reader.uint32()); - break; - case 3: - message.executionQueueAttributes = $root.flyteidl.admin.ExecutionQueueAttributes.decode(reader, reader.uint32()); - break; - case 4: - message.executionClusterLabel = $root.flyteidl.admin.ExecutionClusterLabel.decode(reader, reader.uint32()); - break; - case 5: - message.qualityOfService = $root.flyteidl.core.QualityOfService.decode(reader, reader.uint32()); - break; - case 6: - message.pluginOverrides = $root.flyteidl.admin.PluginOverrides.decode(reader, reader.uint32()); - break; - case 7: - message.workflowExecutionConfig = $root.flyteidl.admin.WorkflowExecutionConfig.decode(reader, reader.uint32()); - break; - case 8: - message.clusterAssignment = $root.flyteidl.admin.ClusterAssignment.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MatchingAttributes message. - * @function verify - * @memberof flyteidl.admin.MatchingAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MatchingAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.taskResourceAttributes != null && message.hasOwnProperty("taskResourceAttributes")) { - properties.target = 1; - { - var error = $root.flyteidl.admin.TaskResourceAttributes.verify(message.taskResourceAttributes); - if (error) - return "taskResourceAttributes." + error; - } - } - if (message.clusterResourceAttributes != null && message.hasOwnProperty("clusterResourceAttributes")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ClusterResourceAttributes.verify(message.clusterResourceAttributes); - if (error) - return "clusterResourceAttributes." + error; - } - } - if (message.executionQueueAttributes != null && message.hasOwnProperty("executionQueueAttributes")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ExecutionQueueAttributes.verify(message.executionQueueAttributes); - if (error) - return "executionQueueAttributes." + error; - } - } - if (message.executionClusterLabel != null && message.hasOwnProperty("executionClusterLabel")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ExecutionClusterLabel.verify(message.executionClusterLabel); - if (error) - return "executionClusterLabel." + error; - } - } - if (message.qualityOfService != null && message.hasOwnProperty("qualityOfService")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.core.QualityOfService.verify(message.qualityOfService); - if (error) - return "qualityOfService." + error; - } - } - if (message.pluginOverrides != null && message.hasOwnProperty("pluginOverrides")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.PluginOverrides.verify(message.pluginOverrides); - if (error) - return "pluginOverrides." + error; - } - } - if (message.workflowExecutionConfig != null && message.hasOwnProperty("workflowExecutionConfig")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.WorkflowExecutionConfig.verify(message.workflowExecutionConfig); - if (error) - return "workflowExecutionConfig." + error; - } - } - if (message.clusterAssignment != null && message.hasOwnProperty("clusterAssignment")) { - if (properties.target === 1) - return "target: multiple values"; - properties.target = 1; - { - var error = $root.flyteidl.admin.ClusterAssignment.verify(message.clusterAssignment); - if (error) - return "clusterAssignment." + error; - } - } - return null; - }; - - return MatchingAttributes; - })(); - - admin.MatchableAttributesConfiguration = (function() { - - /** - * Properties of a MatchableAttributesConfiguration. - * @memberof flyteidl.admin - * @interface IMatchableAttributesConfiguration - * @property {flyteidl.admin.IMatchingAttributes|null} [attributes] MatchableAttributesConfiguration attributes - * @property {string|null} [domain] MatchableAttributesConfiguration domain - * @property {string|null} [project] MatchableAttributesConfiguration project - * @property {string|null} [workflow] MatchableAttributesConfiguration workflow - * @property {string|null} [launchPlan] MatchableAttributesConfiguration launchPlan - */ - - /** - * Constructs a new MatchableAttributesConfiguration. - * @memberof flyteidl.admin - * @classdesc Represents a MatchableAttributesConfiguration. - * @implements IMatchableAttributesConfiguration - * @constructor - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set - */ - function MatchableAttributesConfiguration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MatchableAttributesConfiguration attributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} attributes - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.attributes = null; - - /** - * MatchableAttributesConfiguration domain. - * @member {string} domain - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.domain = ""; - - /** - * MatchableAttributesConfiguration project. - * @member {string} project - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.project = ""; - - /** - * MatchableAttributesConfiguration workflow. - * @member {string} workflow - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.workflow = ""; - - /** - * MatchableAttributesConfiguration launchPlan. - * @member {string} launchPlan - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @instance - */ - MatchableAttributesConfiguration.prototype.launchPlan = ""; - - /** - * Creates a new MatchableAttributesConfiguration instance using the specified properties. - * @function create - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration=} [properties] Properties to set - * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration instance - */ - MatchableAttributesConfiguration.create = function create(properties) { - return new MatchableAttributesConfiguration(properties); - }; - - /** - * Encodes the specified MatchableAttributesConfiguration message. Does not implicitly {@link flyteidl.admin.MatchableAttributesConfiguration.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {flyteidl.admin.IMatchableAttributesConfiguration} message MatchableAttributesConfiguration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MatchableAttributesConfiguration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.project); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.workflow); - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.launchPlan); - return writer; - }; - - /** - * Decodes a MatchableAttributesConfiguration message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.MatchableAttributesConfiguration} MatchableAttributesConfiguration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MatchableAttributesConfiguration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.MatchableAttributesConfiguration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.project = reader.string(); - break; - case 4: - message.workflow = reader.string(); - break; - case 5: - message.launchPlan = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MatchableAttributesConfiguration message. - * @function verify - * @memberof flyteidl.admin.MatchableAttributesConfiguration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MatchableAttributesConfiguration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.launchPlan != null && message.hasOwnProperty("launchPlan")) - if (!$util.isString(message.launchPlan)) - return "launchPlan: string expected"; - return null; - }; - - return MatchableAttributesConfiguration; - })(); - - admin.ListMatchableAttributesRequest = (function() { - - /** - * Properties of a ListMatchableAttributesRequest. - * @memberof flyteidl.admin - * @interface IListMatchableAttributesRequest - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ListMatchableAttributesRequest resourceType - */ - - /** - * Constructs a new ListMatchableAttributesRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesRequest. - * @implements IListMatchableAttributesRequest - * @constructor - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set - */ - function ListMatchableAttributesRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListMatchableAttributesRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @instance - */ - ListMatchableAttributesRequest.prototype.resourceType = 0; - - /** - * Creates a new ListMatchableAttributesRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest instance - */ - ListMatchableAttributesRequest.create = function create(properties) { - return new ListMatchableAttributesRequest(properties); - }; - - /** - * Encodes the specified ListMatchableAttributesRequest message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {flyteidl.admin.IListMatchableAttributesRequest} message ListMatchableAttributesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMatchableAttributesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a ListMatchableAttributesRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListMatchableAttributesRequest} ListMatchableAttributesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMatchableAttributesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListMatchableAttributesRequest message. - * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMatchableAttributesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return ListMatchableAttributesRequest; - })(); - - admin.ListMatchableAttributesResponse = (function() { - - /** - * Properties of a ListMatchableAttributesResponse. - * @memberof flyteidl.admin - * @interface IListMatchableAttributesResponse - * @property {Array.|null} [configurations] ListMatchableAttributesResponse configurations - */ - - /** - * Constructs a new ListMatchableAttributesResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ListMatchableAttributesResponse. - * @implements IListMatchableAttributesResponse - * @constructor - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set - */ - function ListMatchableAttributesResponse(properties) { - this.configurations = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListMatchableAttributesResponse configurations. - * @member {Array.} configurations - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @instance - */ - ListMatchableAttributesResponse.prototype.configurations = $util.emptyArray; - - /** - * Creates a new ListMatchableAttributesResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse instance - */ - ListMatchableAttributesResponse.create = function create(properties) { - return new ListMatchableAttributesResponse(properties); - }; - - /** - * Encodes the specified ListMatchableAttributesResponse message. Does not implicitly {@link flyteidl.admin.ListMatchableAttributesResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {flyteidl.admin.IListMatchableAttributesResponse} message ListMatchableAttributesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListMatchableAttributesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.configurations != null && message.configurations.length) - for (var i = 0; i < message.configurations.length; ++i) - $root.flyteidl.admin.MatchableAttributesConfiguration.encode(message.configurations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListMatchableAttributesResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ListMatchableAttributesResponse} ListMatchableAttributesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListMatchableAttributesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ListMatchableAttributesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.configurations && message.configurations.length)) - message.configurations = []; - message.configurations.push($root.flyteidl.admin.MatchableAttributesConfiguration.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListMatchableAttributesResponse message. - * @function verify - * @memberof flyteidl.admin.ListMatchableAttributesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListMatchableAttributesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.configurations != null && message.hasOwnProperty("configurations")) { - if (!Array.isArray(message.configurations)) - return "configurations: array expected"; - for (var i = 0; i < message.configurations.length; ++i) { - var error = $root.flyteidl.admin.MatchableAttributesConfiguration.verify(message.configurations[i]); - if (error) - return "configurations." + error; - } - } - return null; - }; - - return ListMatchableAttributesResponse; - })(); - - admin.NodeExecutionGetRequest = (function() { - - /** - * Properties of a NodeExecutionGetRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionGetRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetRequest id - */ - - /** - * Constructs a new NodeExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetRequest. - * @implements INodeExecutionGetRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set - */ - function NodeExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @instance - */ - NodeExecutionGetRequest.prototype.id = null; - - /** - * Creates a new NodeExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest instance - */ - NodeExecutionGetRequest.create = function create(properties) { - return new NodeExecutionGetRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetRequest} message NodeExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetRequest} NodeExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NodeExecutionGetRequest; - })(); - - admin.NodeExecutionListRequest = (function() { - - /** - * Properties of a NodeExecutionListRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionListRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] NodeExecutionListRequest workflowExecutionId - * @property {number|null} [limit] NodeExecutionListRequest limit - * @property {string|null} [token] NodeExecutionListRequest token - * @property {string|null} [filters] NodeExecutionListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionListRequest sortBy - * @property {string|null} [uniqueParentId] NodeExecutionListRequest uniqueParentId - */ - - /** - * Constructs a new NodeExecutionListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionListRequest. - * @implements INodeExecutionListRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set - */ - function NodeExecutionListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionListRequest workflowExecutionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.workflowExecutionId = null; - - /** - * NodeExecutionListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.limit = 0; - - /** - * NodeExecutionListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.token = ""; - - /** - * NodeExecutionListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.filters = ""; - - /** - * NodeExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.sortBy = null; - - /** - * NodeExecutionListRequest uniqueParentId. - * @member {string} uniqueParentId - * @memberof flyteidl.admin.NodeExecutionListRequest - * @instance - */ - NodeExecutionListRequest.prototype.uniqueParentId = ""; - - /** - * Creates a new NodeExecutionListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {flyteidl.admin.INodeExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest instance - */ - NodeExecutionListRequest.create = function create(properties) { - return new NodeExecutionListRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {flyteidl.admin.INodeExecutionListRequest} message NodeExecutionListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.uniqueParentId); - return writer; - }; - - /** - * Decodes a NodeExecutionListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionListRequest} NodeExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - case 6: - message.uniqueParentId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionListRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); - if (error) - return "workflowExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - if (message.uniqueParentId != null && message.hasOwnProperty("uniqueParentId")) - if (!$util.isString(message.uniqueParentId)) - return "uniqueParentId: string expected"; - return null; - }; - - return NodeExecutionListRequest; - })(); - - admin.NodeExecutionForTaskListRequest = (function() { - - /** - * Properties of a NodeExecutionForTaskListRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionForTaskListRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [taskExecutionId] NodeExecutionForTaskListRequest taskExecutionId - * @property {number|null} [limit] NodeExecutionForTaskListRequest limit - * @property {string|null} [token] NodeExecutionForTaskListRequest token - * @property {string|null} [filters] NodeExecutionForTaskListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] NodeExecutionForTaskListRequest sortBy - */ - - /** - * Constructs a new NodeExecutionForTaskListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionForTaskListRequest. - * @implements INodeExecutionForTaskListRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set - */ - function NodeExecutionForTaskListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionForTaskListRequest taskExecutionId. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} taskExecutionId - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.taskExecutionId = null; - - /** - * NodeExecutionForTaskListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.limit = 0; - - /** - * NodeExecutionForTaskListRequest token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.token = ""; - - /** - * NodeExecutionForTaskListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.filters = ""; - - /** - * NodeExecutionForTaskListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @instance - */ - NodeExecutionForTaskListRequest.prototype.sortBy = null; - - /** - * Creates a new NodeExecutionForTaskListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest instance - */ - NodeExecutionForTaskListRequest.create = function create(properties) { - return new NodeExecutionForTaskListRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionForTaskListRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionForTaskListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} message NodeExecutionForTaskListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionForTaskListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.taskExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionForTaskListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionForTaskListRequest} NodeExecutionForTaskListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionForTaskListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionForTaskListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskExecutionId = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionForTaskListRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionForTaskListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionForTaskListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutionId != null && message.hasOwnProperty("taskExecutionId")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.taskExecutionId); - if (error) - return "taskExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return NodeExecutionForTaskListRequest; - })(); - - admin.NodeExecution = (function() { - - /** - * Properties of a NodeExecution. - * @memberof flyteidl.admin - * @interface INodeExecution - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecution id - * @property {string|null} [inputUri] NodeExecution inputUri - * @property {flyteidl.admin.INodeExecutionClosure|null} [closure] NodeExecution closure - * @property {flyteidl.admin.INodeExecutionMetaData|null} [metadata] NodeExecution metadata - */ - - /** - * Constructs a new NodeExecution. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecution. - * @implements INodeExecution - * @constructor - * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set - */ - function NodeExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecution id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.id = null; - - /** - * NodeExecution inputUri. - * @member {string} inputUri - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.inputUri = ""; - - /** - * NodeExecution closure. - * @member {flyteidl.admin.INodeExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.closure = null; - - /** - * NodeExecution metadata. - * @member {flyteidl.admin.INodeExecutionMetaData|null|undefined} metadata - * @memberof flyteidl.admin.NodeExecution - * @instance - */ - NodeExecution.prototype.metadata = null; - - /** - * Creates a new NodeExecution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {flyteidl.admin.INodeExecution=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecution} NodeExecution instance - */ - NodeExecution.create = function create(properties) { - return new NodeExecution(properties); - }; - - /** - * Encodes the specified NodeExecution message. Does not implicitly {@link flyteidl.admin.NodeExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {flyteidl.admin.INodeExecution} message NodeExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.NodeExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.admin.NodeExecutionMetaData.encode(message.metadata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecution} NodeExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputUri = reader.string(); - break; - case 3: - message.closure = $root.flyteidl.admin.NodeExecutionClosure.decode(reader, reader.uint32()); - break; - case 4: - message.metadata = $root.flyteidl.admin.NodeExecutionMetaData.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecution message. - * @function verify - * @memberof flyteidl.admin.NodeExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.NodeExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.admin.NodeExecutionMetaData.verify(message.metadata); - if (error) - return "metadata." + error; - } - return null; - }; - - return NodeExecution; - })(); - - admin.NodeExecutionMetaData = (function() { - - /** - * Properties of a NodeExecutionMetaData. - * @memberof flyteidl.admin - * @interface INodeExecutionMetaData - * @property {string|null} [retryGroup] NodeExecutionMetaData retryGroup - * @property {boolean|null} [isParentNode] NodeExecutionMetaData isParentNode - * @property {string|null} [specNodeId] NodeExecutionMetaData specNodeId - * @property {boolean|null} [isDynamic] NodeExecutionMetaData isDynamic - * @property {boolean|null} [isArray] NodeExecutionMetaData isArray - */ - - /** - * Constructs a new NodeExecutionMetaData. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionMetaData. - * @implements INodeExecutionMetaData - * @constructor - * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set - */ - function NodeExecutionMetaData(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionMetaData retryGroup. - * @member {string} retryGroup - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.retryGroup = ""; - - /** - * NodeExecutionMetaData isParentNode. - * @member {boolean} isParentNode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isParentNode = false; - - /** - * NodeExecutionMetaData specNodeId. - * @member {string} specNodeId - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.specNodeId = ""; - - /** - * NodeExecutionMetaData isDynamic. - * @member {boolean} isDynamic - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isDynamic = false; - - /** - * NodeExecutionMetaData isArray. - * @member {boolean} isArray - * @memberof flyteidl.admin.NodeExecutionMetaData - * @instance - */ - NodeExecutionMetaData.prototype.isArray = false; - - /** - * Creates a new NodeExecutionMetaData instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {flyteidl.admin.INodeExecutionMetaData=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData instance - */ - NodeExecutionMetaData.create = function create(properties) { - return new NodeExecutionMetaData(properties); - }; - - /** - * Encodes the specified NodeExecutionMetaData message. Does not implicitly {@link flyteidl.admin.NodeExecutionMetaData.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {flyteidl.admin.INodeExecutionMetaData} message NodeExecutionMetaData message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionMetaData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.retryGroup); - if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isParentNode); - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.specNodeId); - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isDynamic); - if (message.isArray != null && message.hasOwnProperty("isArray")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isArray); - return writer; - }; - - /** - * Decodes a NodeExecutionMetaData message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionMetaData} NodeExecutionMetaData - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionMetaData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionMetaData(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.retryGroup = reader.string(); - break; - case 2: - message.isParentNode = reader.bool(); - break; - case 3: - message.specNodeId = reader.string(); - break; - case 4: - message.isDynamic = reader.bool(); - break; - case 5: - message.isArray = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionMetaData message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionMetaData - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionMetaData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.retryGroup != null && message.hasOwnProperty("retryGroup")) - if (!$util.isString(message.retryGroup)) - return "retryGroup: string expected"; - if (message.isParentNode != null && message.hasOwnProperty("isParentNode")) - if (typeof message.isParentNode !== "boolean") - return "isParentNode: boolean expected"; - if (message.specNodeId != null && message.hasOwnProperty("specNodeId")) - if (!$util.isString(message.specNodeId)) - return "specNodeId: string expected"; - if (message.isDynamic != null && message.hasOwnProperty("isDynamic")) - if (typeof message.isDynamic !== "boolean") - return "isDynamic: boolean expected"; - if (message.isArray != null && message.hasOwnProperty("isArray")) - if (typeof message.isArray !== "boolean") - return "isArray: boolean expected"; - return null; - }; - - return NodeExecutionMetaData; - })(); - - admin.NodeExecutionList = (function() { - - /** - * Properties of a NodeExecutionList. - * @memberof flyteidl.admin - * @interface INodeExecutionList - * @property {Array.|null} [nodeExecutions] NodeExecutionList nodeExecutions - * @property {string|null} [token] NodeExecutionList token - */ - - /** - * Constructs a new NodeExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionList. - * @implements INodeExecutionList - * @constructor - * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set - */ - function NodeExecutionList(properties) { - this.nodeExecutions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionList nodeExecutions. - * @member {Array.} nodeExecutions - * @memberof flyteidl.admin.NodeExecutionList - * @instance - */ - NodeExecutionList.prototype.nodeExecutions = $util.emptyArray; - - /** - * NodeExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.NodeExecutionList - * @instance - */ - NodeExecutionList.prototype.token = ""; - - /** - * Creates a new NodeExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {flyteidl.admin.INodeExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList instance - */ - NodeExecutionList.create = function create(properties) { - return new NodeExecutionList(properties); - }; - - /** - * Encodes the specified NodeExecutionList message. Does not implicitly {@link flyteidl.admin.NodeExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {flyteidl.admin.INodeExecutionList} message NodeExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeExecutions != null && message.nodeExecutions.length) - for (var i = 0; i < message.nodeExecutions.length; ++i) - $root.flyteidl.admin.NodeExecution.encode(message.nodeExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a NodeExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionList} NodeExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.nodeExecutions && message.nodeExecutions.length)) - message.nodeExecutions = []; - message.nodeExecutions.push($root.flyteidl.admin.NodeExecution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionList message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeExecutions != null && message.hasOwnProperty("nodeExecutions")) { - if (!Array.isArray(message.nodeExecutions)) - return "nodeExecutions: array expected"; - for (var i = 0; i < message.nodeExecutions.length; ++i) { - var error = $root.flyteidl.admin.NodeExecution.verify(message.nodeExecutions[i]); - if (error) - return "nodeExecutions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return NodeExecutionList; - })(); - - admin.NodeExecutionClosure = (function() { - - /** - * Properties of a NodeExecutionClosure. - * @memberof flyteidl.admin - * @interface INodeExecutionClosure - * @property {string|null} [outputUri] NodeExecutionClosure outputUri - * @property {flyteidl.core.IExecutionError|null} [error] NodeExecutionClosure error - * @property {flyteidl.core.ILiteralMap|null} [outputData] NodeExecutionClosure outputData - * @property {flyteidl.core.NodeExecution.Phase|null} [phase] NodeExecutionClosure phase - * @property {google.protobuf.ITimestamp|null} [startedAt] NodeExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] NodeExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] NodeExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] NodeExecutionClosure updatedAt - * @property {flyteidl.admin.IWorkflowNodeMetadata|null} [workflowNodeMetadata] NodeExecutionClosure workflowNodeMetadata - * @property {flyteidl.admin.ITaskNodeMetadata|null} [taskNodeMetadata] NodeExecutionClosure taskNodeMetadata - * @property {string|null} [deckUri] NodeExecutionClosure deckUri - * @property {string|null} [dynamicJobSpecUri] NodeExecutionClosure dynamicJobSpecUri - */ - - /** - * Constructs a new NodeExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionClosure. - * @implements INodeExecutionClosure - * @constructor - * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set - */ - function NodeExecutionClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionClosure outputUri. - * @member {string} outputUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.outputUri = ""; - - /** - * NodeExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.error = null; - - /** - * NodeExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.outputData = null; - - /** - * NodeExecutionClosure phase. - * @member {flyteidl.core.NodeExecution.Phase} phase - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.phase = 0; - - /** - * NodeExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.startedAt = null; - - /** - * NodeExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.duration = null; - - /** - * NodeExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.createdAt = null; - - /** - * NodeExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.updatedAt = null; - - /** - * NodeExecutionClosure workflowNodeMetadata. - * @member {flyteidl.admin.IWorkflowNodeMetadata|null|undefined} workflowNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.workflowNodeMetadata = null; - - /** - * NodeExecutionClosure taskNodeMetadata. - * @member {flyteidl.admin.ITaskNodeMetadata|null|undefined} taskNodeMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.taskNodeMetadata = null; - - /** - * NodeExecutionClosure deckUri. - * @member {string} deckUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.deckUri = ""; - - /** - * NodeExecutionClosure dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - NodeExecutionClosure.prototype.dynamicJobSpecUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * NodeExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - Object.defineProperty(NodeExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * NodeExecutionClosure targetMetadata. - * @member {"workflowNodeMetadata"|"taskNodeMetadata"|undefined} targetMetadata - * @memberof flyteidl.admin.NodeExecutionClosure - * @instance - */ - Object.defineProperty(NodeExecutionClosure.prototype, "targetMetadata", { - get: $util.oneOfGetter($oneOfFields = ["workflowNodeMetadata", "taskNodeMetadata"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new NodeExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {flyteidl.admin.INodeExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure instance - */ - NodeExecutionClosure.create = function create(properties) { - return new NodeExecutionClosure(properties); - }; - - /** - * Encodes the specified NodeExecutionClosure message. Does not implicitly {@link flyteidl.admin.NodeExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {flyteidl.admin.INodeExecutionClosure} message NodeExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) - $root.flyteidl.admin.WorkflowNodeMetadata.encode(message.workflowNodeMetadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) - $root.flyteidl.admin.TaskNodeMetadata.encode(message.taskNodeMetadata, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deckUri); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a NodeExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionClosure} NodeExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputUri = reader.string(); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 10: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 6: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.workflowNodeMetadata = $root.flyteidl.admin.WorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 9: - message.taskNodeMetadata = $root.flyteidl.admin.TaskNodeMetadata.decode(reader, reader.uint32()); - break; - case 11: - message.deckUri = reader.string(); - break; - case 12: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.workflowNodeMetadata != null && message.hasOwnProperty("workflowNodeMetadata")) { - properties.targetMetadata = 1; - { - var error = $root.flyteidl.admin.WorkflowNodeMetadata.verify(message.workflowNodeMetadata); - if (error) - return "workflowNodeMetadata." + error; - } - } - if (message.taskNodeMetadata != null && message.hasOwnProperty("taskNodeMetadata")) { - if (properties.targetMetadata === 1) - return "targetMetadata: multiple values"; - properties.targetMetadata = 1; - { - var error = $root.flyteidl.admin.TaskNodeMetadata.verify(message.taskNodeMetadata); - if (error) - return "taskNodeMetadata." + error; - } - } - if (message.deckUri != null && message.hasOwnProperty("deckUri")) - if (!$util.isString(message.deckUri)) - return "deckUri: string expected"; - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return NodeExecutionClosure; - })(); - - admin.WorkflowNodeMetadata = (function() { - - /** - * Properties of a WorkflowNodeMetadata. - * @memberof flyteidl.admin - * @interface IWorkflowNodeMetadata - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [executionId] WorkflowNodeMetadata executionId - */ - - /** - * Constructs a new WorkflowNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowNodeMetadata. - * @implements IWorkflowNodeMetadata - * @constructor - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set - */ - function WorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowNodeMetadata executionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} executionId - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @instance - */ - WorkflowNodeMetadata.prototype.executionId = null; - - /** - * Creates a new WorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata instance - */ - WorkflowNodeMetadata.create = function create(properties) { - return new WorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified WorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.WorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IWorkflowNodeMetadata} message WorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.executionId != null && message.hasOwnProperty("executionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.executionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowNodeMetadata} WorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.executionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.WorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.executionId != null && message.hasOwnProperty("executionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.executionId); - if (error) - return "executionId." + error; - } - return null; - }; - - return WorkflowNodeMetadata; - })(); - - admin.TaskNodeMetadata = (function() { - - /** - * Properties of a TaskNodeMetadata. - * @memberof flyteidl.admin - * @interface ITaskNodeMetadata - * @property {flyteidl.core.CatalogCacheStatus|null} [cacheStatus] TaskNodeMetadata cacheStatus - * @property {flyteidl.core.ICatalogMetadata|null} [catalogKey] TaskNodeMetadata catalogKey - * @property {string|null} [checkpointUri] TaskNodeMetadata checkpointUri - */ - - /** - * Constructs a new TaskNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a TaskNodeMetadata. - * @implements ITaskNodeMetadata - * @constructor - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set - */ - function TaskNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskNodeMetadata cacheStatus. - * @member {flyteidl.core.CatalogCacheStatus} cacheStatus - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.cacheStatus = 0; - - /** - * TaskNodeMetadata catalogKey. - * @member {flyteidl.core.ICatalogMetadata|null|undefined} catalogKey - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.catalogKey = null; - - /** - * TaskNodeMetadata checkpointUri. - * @member {string} checkpointUri - * @memberof flyteidl.admin.TaskNodeMetadata - * @instance - */ - TaskNodeMetadata.prototype.checkpointUri = ""; - - /** - * Creates a new TaskNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {flyteidl.admin.ITaskNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata instance - */ - TaskNodeMetadata.create = function create(properties) { - return new TaskNodeMetadata(properties); - }; - - /** - * Encodes the specified TaskNodeMetadata message. Does not implicitly {@link flyteidl.admin.TaskNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {flyteidl.admin.ITaskNodeMetadata} message TaskNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskNodeMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.cacheStatus); - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) - $root.flyteidl.core.CatalogMetadata.encode(message.catalogKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.checkpointUri); - return writer; - }; - - /** - * Decodes a TaskNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskNodeMetadata} TaskNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.cacheStatus = reader.int32(); - break; - case 2: - message.catalogKey = $root.flyteidl.core.CatalogMetadata.decode(reader, reader.uint32()); - break; - case 4: - message.checkpointUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.TaskNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.catalogKey != null && message.hasOwnProperty("catalogKey")) { - var error = $root.flyteidl.core.CatalogMetadata.verify(message.catalogKey); - if (error) - return "catalogKey." + error; - } - if (message.checkpointUri != null && message.hasOwnProperty("checkpointUri")) - if (!$util.isString(message.checkpointUri)) - return "checkpointUri: string expected"; - return null; - }; - - return TaskNodeMetadata; - })(); - - admin.DynamicWorkflowNodeMetadata = (function() { - - /** - * Properties of a DynamicWorkflowNodeMetadata. - * @memberof flyteidl.admin - * @interface IDynamicWorkflowNodeMetadata - * @property {flyteidl.core.IIdentifier|null} [id] DynamicWorkflowNodeMetadata id - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] DynamicWorkflowNodeMetadata compiledWorkflow - * @property {string|null} [dynamicJobSpecUri] DynamicWorkflowNodeMetadata dynamicJobSpecUri - */ - - /** - * Constructs a new DynamicWorkflowNodeMetadata. - * @memberof flyteidl.admin - * @classdesc Represents a DynamicWorkflowNodeMetadata. - * @implements IDynamicWorkflowNodeMetadata - * @constructor - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - */ - function DynamicWorkflowNodeMetadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DynamicWorkflowNodeMetadata id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.id = null; - - /** - * DynamicWorkflowNodeMetadata compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.compiledWorkflow = null; - - /** - * DynamicWorkflowNodeMetadata dynamicJobSpecUri. - * @member {string} dynamicJobSpecUri - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @instance - */ - DynamicWorkflowNodeMetadata.prototype.dynamicJobSpecUri = ""; - - /** - * Creates a new DynamicWorkflowNodeMetadata instance using the specified properties. - * @function create - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata=} [properties] Properties to set - * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata instance - */ - DynamicWorkflowNodeMetadata.create = function create(properties) { - return new DynamicWorkflowNodeMetadata(properties); - }; - - /** - * Encodes the specified DynamicWorkflowNodeMetadata message. Does not implicitly {@link flyteidl.admin.DynamicWorkflowNodeMetadata.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {flyteidl.admin.IDynamicWorkflowNodeMetadata} message DynamicWorkflowNodeMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DynamicWorkflowNodeMetadata.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(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dynamicJobSpecUri); - return writer; - }; - - /** - * Decodes a DynamicWorkflowNodeMetadata message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.DynamicWorkflowNodeMetadata} DynamicWorkflowNodeMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DynamicWorkflowNodeMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.DynamicWorkflowNodeMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.dynamicJobSpecUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DynamicWorkflowNodeMetadata message. - * @function verify - * @memberof flyteidl.admin.DynamicWorkflowNodeMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DynamicWorkflowNodeMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.dynamicJobSpecUri != null && message.hasOwnProperty("dynamicJobSpecUri")) - if (!$util.isString(message.dynamicJobSpecUri)) - return "dynamicJobSpecUri: string expected"; - return null; - }; - - return DynamicWorkflowNodeMetadata; - })(); - - admin.NodeExecutionGetDataRequest = (function() { - - /** - * Properties of a NodeExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface INodeExecutionGetDataRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [id] NodeExecutionGetDataRequest id - */ - - /** - * Constructs a new NodeExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataRequest. - * @implements INodeExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set - */ - function NodeExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetDataRequest id. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @instance - */ - NodeExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new NodeExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest instance - */ - NodeExecutionGetDataRequest.create = function create(properties) { - return new NodeExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified NodeExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {flyteidl.admin.INodeExecutionGetDataRequest} message NodeExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetDataRequest} NodeExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return NodeExecutionGetDataRequest; - })(); - - admin.NodeExecutionGetDataResponse = (function() { - - /** - * Properties of a NodeExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface INodeExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [inputs] NodeExecutionGetDataResponse inputs - * @property {flyteidl.admin.IUrlBlob|null} [outputs] NodeExecutionGetDataResponse outputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] NodeExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] NodeExecutionGetDataResponse fullOutputs - * @property {flyteidl.admin.IDynamicWorkflowNodeMetadata|null} [dynamicWorkflow] NodeExecutionGetDataResponse dynamicWorkflow - * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] NodeExecutionGetDataResponse flyteUrls - */ - - /** - * Constructs a new NodeExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a NodeExecutionGetDataResponse. - * @implements INodeExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set - */ - function NodeExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NodeExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.inputs = null; - - /** - * NodeExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.outputs = null; - - /** - * NodeExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * NodeExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * NodeExecutionGetDataResponse dynamicWorkflow. - * @member {flyteidl.admin.IDynamicWorkflowNodeMetadata|null|undefined} dynamicWorkflow - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.dynamicWorkflow = null; - - /** - * NodeExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @instance - */ - NodeExecutionGetDataResponse.prototype.flyteUrls = null; - - /** - * Creates a new NodeExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse instance - */ - NodeExecutionGetDataResponse.create = function create(properties) { - return new NodeExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified NodeExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.NodeExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {flyteidl.admin.INodeExecutionGetDataResponse} message NodeExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NodeExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) - $root.flyteidl.admin.DynamicWorkflowNodeMetadata.encode(message.dynamicWorkflow, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) - $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a NodeExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.NodeExecutionGetDataResponse} NodeExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NodeExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.NodeExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 16: - message.dynamicWorkflow = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.decode(reader, reader.uint32()); - break; - case 17: - message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a NodeExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.NodeExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NodeExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - if (message.dynamicWorkflow != null && message.hasOwnProperty("dynamicWorkflow")) { - var error = $root.flyteidl.admin.DynamicWorkflowNodeMetadata.verify(message.dynamicWorkflow); - if (error) - return "dynamicWorkflow." + error; - } - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { - var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); - if (error) - return "flyteUrls." + error; - } - return null; - }; - - return NodeExecutionGetDataResponse; - })(); - - admin.EmailMessage = (function() { - - /** - * Properties of an EmailMessage. - * @memberof flyteidl.admin - * @interface IEmailMessage - * @property {Array.|null} [recipientsEmail] EmailMessage recipientsEmail - * @property {string|null} [senderEmail] EmailMessage senderEmail - * @property {string|null} [subjectLine] EmailMessage subjectLine - * @property {string|null} [body] EmailMessage body - */ - - /** - * Constructs a new EmailMessage. - * @memberof flyteidl.admin - * @classdesc Represents an EmailMessage. - * @implements IEmailMessage - * @constructor - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set - */ - function EmailMessage(properties) { - this.recipientsEmail = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EmailMessage recipientsEmail. - * @member {Array.} recipientsEmail - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.recipientsEmail = $util.emptyArray; - - /** - * EmailMessage senderEmail. - * @member {string} senderEmail - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.senderEmail = ""; - - /** - * EmailMessage subjectLine. - * @member {string} subjectLine - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.subjectLine = ""; - - /** - * EmailMessage body. - * @member {string} body - * @memberof flyteidl.admin.EmailMessage - * @instance - */ - EmailMessage.prototype.body = ""; - - /** - * Creates a new EmailMessage instance using the specified properties. - * @function create - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {flyteidl.admin.IEmailMessage=} [properties] Properties to set - * @returns {flyteidl.admin.EmailMessage} EmailMessage instance - */ - EmailMessage.create = function create(properties) { - return new EmailMessage(properties); - }; - - /** - * Encodes the specified EmailMessage message. Does not implicitly {@link flyteidl.admin.EmailMessage.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {flyteidl.admin.IEmailMessage} message EmailMessage message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recipientsEmail != null && message.recipientsEmail.length) - for (var i = 0; i < message.recipientsEmail.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recipientsEmail[i]); - if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.senderEmail); - if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.subjectLine); - if (message.body != null && message.hasOwnProperty("body")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.body); - return writer; - }; - - /** - * Decodes an EmailMessage message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.EmailMessage} EmailMessage - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.EmailMessage(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.recipientsEmail && message.recipientsEmail.length)) - message.recipientsEmail = []; - message.recipientsEmail.push(reader.string()); - break; - case 2: - message.senderEmail = reader.string(); - break; - case 3: - message.subjectLine = reader.string(); - break; - case 4: - message.body = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EmailMessage message. - * @function verify - * @memberof flyteidl.admin.EmailMessage - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipientsEmail != null && message.hasOwnProperty("recipientsEmail")) { - if (!Array.isArray(message.recipientsEmail)) - return "recipientsEmail: array expected"; - for (var i = 0; i < message.recipientsEmail.length; ++i) - if (!$util.isString(message.recipientsEmail[i])) - return "recipientsEmail: string[] expected"; - } - if (message.senderEmail != null && message.hasOwnProperty("senderEmail")) - if (!$util.isString(message.senderEmail)) - return "senderEmail: string expected"; - if (message.subjectLine != null && message.hasOwnProperty("subjectLine")) - if (!$util.isString(message.subjectLine)) - return "subjectLine: string expected"; - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - return null; - }; - - return EmailMessage; - })(); - - admin.Domain = (function() { - - /** - * Properties of a Domain. - * @memberof flyteidl.admin - * @interface IDomain - * @property {string|null} [id] Domain id - * @property {string|null} [name] Domain name - */ - - /** - * Constructs a new Domain. - * @memberof flyteidl.admin - * @classdesc Represents a Domain. - * @implements IDomain - * @constructor - * @param {flyteidl.admin.IDomain=} [properties] Properties to set - */ - function Domain(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Domain id. - * @member {string} id - * @memberof flyteidl.admin.Domain - * @instance - */ - Domain.prototype.id = ""; - - /** - * Domain name. - * @member {string} name - * @memberof flyteidl.admin.Domain - * @instance - */ - Domain.prototype.name = ""; - - /** - * Creates a new Domain instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Domain - * @static - * @param {flyteidl.admin.IDomain=} [properties] Properties to set - * @returns {flyteidl.admin.Domain} Domain instance - */ - Domain.create = function create(properties) { - return new Domain(properties); - }; - - /** - * Encodes the specified Domain message. Does not implicitly {@link flyteidl.admin.Domain.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Domain - * @static - * @param {flyteidl.admin.IDomain} message Domain message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Domain.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - return writer; - }; - - /** - * Decodes a Domain message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Domain - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Domain} Domain - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Domain.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Domain(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Domain message. - * @function verify - * @memberof flyteidl.admin.Domain - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Domain.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - return Domain; - })(); - - admin.Project = (function() { - - /** - * Properties of a Project. - * @memberof flyteidl.admin - * @interface IProject - * @property {string|null} [id] Project id - * @property {string|null} [name] Project name - * @property {Array.|null} [domains] Project domains - * @property {string|null} [description] Project description - * @property {flyteidl.admin.ILabels|null} [labels] Project labels - * @property {flyteidl.admin.Project.ProjectState|null} [state] Project state - */ - - /** - * Constructs a new Project. - * @memberof flyteidl.admin - * @classdesc Represents a Project. - * @implements IProject - * @constructor - * @param {flyteidl.admin.IProject=} [properties] Properties to set - */ - function Project(properties) { - this.domains = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Project id. - * @member {string} id - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.id = ""; - - /** - * Project name. - * @member {string} name - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.name = ""; - - /** - * Project domains. - * @member {Array.} domains - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.domains = $util.emptyArray; - - /** - * Project description. - * @member {string} description - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.description = ""; - - /** - * Project labels. - * @member {flyteidl.admin.ILabels|null|undefined} labels - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.labels = null; - - /** - * Project state. - * @member {flyteidl.admin.Project.ProjectState} state - * @memberof flyteidl.admin.Project - * @instance - */ - Project.prototype.state = 0; - - /** - * Creates a new Project instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Project - * @static - * @param {flyteidl.admin.IProject=} [properties] Properties to set - * @returns {flyteidl.admin.Project} Project instance - */ - Project.create = function create(properties) { - return new Project(properties); - }; - - /** - * Encodes the specified Project message. Does not implicitly {@link flyteidl.admin.Project.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Project - * @static - * @param {flyteidl.admin.IProject} message Project message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Project.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.domains != null && message.domains.length) - for (var i = 0; i < message.domains.length; ++i) - $root.flyteidl.admin.Domain.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.labels != null && message.hasOwnProperty("labels")) - $root.flyteidl.admin.Labels.encode(message.labels, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - return writer; - }; - - /** - * Decodes a Project message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Project - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Project} Project - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Project.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Project(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - if (!(message.domains && message.domains.length)) - message.domains = []; - message.domains.push($root.flyteidl.admin.Domain.decode(reader, reader.uint32())); - break; - case 4: - message.description = reader.string(); - break; - case 5: - message.labels = $root.flyteidl.admin.Labels.decode(reader, reader.uint32()); - break; - case 6: - message.state = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Project message. - * @function verify - * @memberof flyteidl.admin.Project - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Project.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.domains != null && message.hasOwnProperty("domains")) { - if (!Array.isArray(message.domains)) - return "domains: array expected"; - for (var i = 0; i < message.domains.length; ++i) { - var error = $root.flyteidl.admin.Domain.verify(message.domains[i]); - if (error) - return "domains." + error; - } - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - var error = $root.flyteidl.admin.Labels.verify(message.labels); - if (error) - return "labels." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; - - /** - * ProjectState enum. - * @name flyteidl.admin.Project.ProjectState - * @enum {string} - * @property {number} ACTIVE=0 ACTIVE value - * @property {number} ARCHIVED=1 ARCHIVED value - * @property {number} SYSTEM_GENERATED=2 SYSTEM_GENERATED value - */ - Project.ProjectState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTIVE"] = 0; - values[valuesById[1] = "ARCHIVED"] = 1; - values[valuesById[2] = "SYSTEM_GENERATED"] = 2; - return values; - })(); - - return Project; - })(); - - admin.Projects = (function() { - - /** - * Properties of a Projects. - * @memberof flyteidl.admin - * @interface IProjects - * @property {Array.|null} [projects] Projects projects - * @property {string|null} [token] Projects token - */ - - /** - * Constructs a new Projects. - * @memberof flyteidl.admin - * @classdesc Represents a Projects. - * @implements IProjects - * @constructor - * @param {flyteidl.admin.IProjects=} [properties] Properties to set - */ - function Projects(properties) { - this.projects = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Projects projects. - * @member {Array.} projects - * @memberof flyteidl.admin.Projects - * @instance - */ - Projects.prototype.projects = $util.emptyArray; - - /** - * Projects token. - * @member {string} token - * @memberof flyteidl.admin.Projects - * @instance - */ - Projects.prototype.token = ""; - - /** - * Creates a new Projects instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Projects - * @static - * @param {flyteidl.admin.IProjects=} [properties] Properties to set - * @returns {flyteidl.admin.Projects} Projects instance - */ - Projects.create = function create(properties) { - return new Projects(properties); - }; - - /** - * Encodes the specified Projects message. Does not implicitly {@link flyteidl.admin.Projects.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Projects - * @static - * @param {flyteidl.admin.IProjects} message Projects message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Projects.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.projects != null && message.projects.length) - for (var i = 0; i < message.projects.length; ++i) - $root.flyteidl.admin.Project.encode(message.projects[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a Projects message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Projects - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Projects} Projects - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Projects.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Projects(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.projects && message.projects.length)) - message.projects = []; - message.projects.push($root.flyteidl.admin.Project.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Projects message. - * @function verify - * @memberof flyteidl.admin.Projects - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Projects.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.projects != null && message.hasOwnProperty("projects")) { - if (!Array.isArray(message.projects)) - return "projects: array expected"; - for (var i = 0; i < message.projects.length; ++i) { - var error = $root.flyteidl.admin.Project.verify(message.projects[i]); - if (error) - return "projects." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return Projects; - })(); - - admin.ProjectListRequest = (function() { - - /** - * Properties of a ProjectListRequest. - * @memberof flyteidl.admin - * @interface IProjectListRequest - * @property {number|null} [limit] ProjectListRequest limit - * @property {string|null} [token] ProjectListRequest token - * @property {string|null} [filters] ProjectListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] ProjectListRequest sortBy - */ - - /** - * Constructs a new ProjectListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectListRequest. - * @implements IProjectListRequest - * @constructor - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set - */ - function ProjectListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.limit = 0; - - /** - * ProjectListRequest token. - * @member {string} token - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.token = ""; - - /** - * ProjectListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.filters = ""; - - /** - * ProjectListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.ProjectListRequest - * @instance - */ - ProjectListRequest.prototype.sortBy = null; - - /** - * Creates a new ProjectListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {flyteidl.admin.IProjectListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest instance - */ - ProjectListRequest.create = function create(properties) { - return new ProjectListRequest(properties); - }; - - /** - * Encodes the specified ProjectListRequest message. Does not implicitly {@link flyteidl.admin.ProjectListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {flyteidl.admin.IProjectListRequest} message ProjectListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectListRequest} ProjectListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.limit = reader.uint32(); - break; - case 2: - message.token = reader.string(); - break; - case 3: - message.filters = reader.string(); - break; - case 4: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectListRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return ProjectListRequest; - })(); - - admin.ProjectRegisterRequest = (function() { - - /** - * Properties of a ProjectRegisterRequest. - * @memberof flyteidl.admin - * @interface IProjectRegisterRequest - * @property {flyteidl.admin.IProject|null} [project] ProjectRegisterRequest project - */ - - /** - * Constructs a new ProjectRegisterRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterRequest. - * @implements IProjectRegisterRequest - * @constructor - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set - */ - function ProjectRegisterRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectRegisterRequest project. - * @member {flyteidl.admin.IProject|null|undefined} project - * @memberof flyteidl.admin.ProjectRegisterRequest - * @instance - */ - ProjectRegisterRequest.prototype.project = null; - - /** - * Creates a new ProjectRegisterRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {flyteidl.admin.IProjectRegisterRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest instance - */ - ProjectRegisterRequest.create = function create(properties) { - return new ProjectRegisterRequest(properties); - }; - - /** - * Encodes the specified ProjectRegisterRequest message. Does not implicitly {@link flyteidl.admin.ProjectRegisterRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {flyteidl.admin.IProjectRegisterRequest} message ProjectRegisterRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectRegisterRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - $root.flyteidl.admin.Project.encode(message.project, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectRegisterRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectRegisterRequest} ProjectRegisterRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectRegisterRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = $root.flyteidl.admin.Project.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectRegisterRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectRegisterRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectRegisterRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) { - var error = $root.flyteidl.admin.Project.verify(message.project); - if (error) - return "project." + error; - } - return null; - }; - - return ProjectRegisterRequest; - })(); - - admin.ProjectRegisterResponse = (function() { - - /** - * Properties of a ProjectRegisterResponse. - * @memberof flyteidl.admin - * @interface IProjectRegisterResponse - */ - - /** - * Constructs a new ProjectRegisterResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectRegisterResponse. - * @implements IProjectRegisterResponse - * @constructor - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set - */ - function ProjectRegisterResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectRegisterResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {flyteidl.admin.IProjectRegisterResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse instance - */ - ProjectRegisterResponse.create = function create(properties) { - return new ProjectRegisterResponse(properties); - }; - - /** - * Encodes the specified ProjectRegisterResponse message. Does not implicitly {@link flyteidl.admin.ProjectRegisterResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {flyteidl.admin.IProjectRegisterResponse} message ProjectRegisterResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectRegisterResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectRegisterResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectRegisterResponse} ProjectRegisterResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectRegisterResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectRegisterResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectRegisterResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectRegisterResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectRegisterResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectRegisterResponse; - })(); - - admin.ProjectUpdateResponse = (function() { - - /** - * Properties of a ProjectUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectUpdateResponse - */ - - /** - * Constructs a new ProjectUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectUpdateResponse. - * @implements IProjectUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set - */ - function ProjectUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {flyteidl.admin.IProjectUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse instance - */ - ProjectUpdateResponse.create = function create(properties) { - return new ProjectUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {flyteidl.admin.IProjectUpdateResponse} message ProjectUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectUpdateResponse} ProjectUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectUpdateResponse; - })(); - - admin.ProjectAttributes = (function() { - - /** - * Properties of a ProjectAttributes. - * @memberof flyteidl.admin - * @interface IProjectAttributes - * @property {string|null} [project] ProjectAttributes project - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectAttributes matchingAttributes - */ - - /** - * Constructs a new ProjectAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributes. - * @implements IProjectAttributes - * @constructor - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set - */ - function ProjectAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributes project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributes - * @instance - */ - ProjectAttributes.prototype.project = ""; - - /** - * ProjectAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.ProjectAttributes - * @instance - */ - ProjectAttributes.prototype.matchingAttributes = null; - - /** - * Creates a new ProjectAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {flyteidl.admin.IProjectAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes instance - */ - ProjectAttributes.create = function create(properties) { - return new ProjectAttributes(properties); - }; - - /** - * Encodes the specified ProjectAttributes message. Does not implicitly {@link flyteidl.admin.ProjectAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {flyteidl.admin.IProjectAttributes} message ProjectAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributes} ProjectAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributes message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - return null; - }; - - return ProjectAttributes; - })(); - - admin.ProjectAttributesUpdateRequest = (function() { - - /** - * Properties of a ProjectAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateRequest - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesUpdateRequest attributes - */ - - /** - * Constructs a new ProjectAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateRequest. - * @implements IProjectAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set - */ - function ProjectAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @instance - */ - ProjectAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new ProjectAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest instance - */ - ProjectAttributesUpdateRequest.create = function create(properties) { - return new ProjectAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} message ProjectAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesUpdateRequest} ProjectAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectAttributesUpdateRequest; - })(); - - admin.ProjectAttributesUpdateResponse = (function() { - - /** - * Properties of a ProjectAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesUpdateResponse - */ - - /** - * Constructs a new ProjectAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesUpdateResponse. - * @implements IProjectAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set - */ - function ProjectAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse instance - */ - ProjectAttributesUpdateResponse.create = function create(properties) { - return new ProjectAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectAttributesUpdateResponse} message ProjectAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesUpdateResponse} ProjectAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectAttributesUpdateResponse; - })(); - - admin.ProjectAttributesGetRequest = (function() { - - /** - * Properties of a ProjectAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesGetRequest - * @property {string|null} [project] ProjectAttributesGetRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesGetRequest resourceType - */ - - /** - * Constructs a new ProjectAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetRequest. - * @implements IProjectAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set - */ - function ProjectAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @instance - */ - ProjectAttributesGetRequest.prototype.project = ""; - - /** - * ProjectAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @instance - */ - ProjectAttributesGetRequest.prototype.resourceType = 0; - - /** - * Creates a new ProjectAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest instance - */ - ProjectAttributesGetRequest.create = function create(properties) { - return new ProjectAttributesGetRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectAttributesGetRequest} message ProjectAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a ProjectAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesGetRequest} ProjectAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return ProjectAttributesGetRequest; - })(); - - admin.ProjectAttributesGetResponse = (function() { - - /** - * Properties of a ProjectAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesGetResponse - * @property {flyteidl.admin.IProjectAttributes|null} [attributes] ProjectAttributesGetResponse attributes - */ - - /** - * Constructs a new ProjectAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesGetResponse. - * @implements IProjectAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set - */ - function ProjectAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @instance - */ - ProjectAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new ProjectAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse instance - */ - ProjectAttributesGetResponse.create = function create(properties) { - return new ProjectAttributesGetResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectAttributesGetResponse} message ProjectAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesGetResponse} ProjectAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectAttributesGetResponse; - })(); - - admin.ProjectAttributesDeleteRequest = (function() { - - /** - * Properties of a ProjectAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteRequest - * @property {string|null} [project] ProjectAttributesDeleteRequest project - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectAttributesDeleteRequest resourceType - */ - - /** - * Constructs a new ProjectAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteRequest. - * @implements IProjectAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set - */ - function ProjectAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @instance - */ - ProjectAttributesDeleteRequest.prototype.project = ""; - - /** - * ProjectAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @instance - */ - ProjectAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * Creates a new ProjectAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest instance - */ - ProjectAttributesDeleteRequest.create = function create(properties) { - return new ProjectAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified ProjectAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} message ProjectAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a ProjectAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesDeleteRequest} ProjectAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return ProjectAttributesDeleteRequest; - })(); - - admin.ProjectAttributesDeleteResponse = (function() { - - /** - * Properties of a ProjectAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IProjectAttributesDeleteResponse - */ - - /** - * Constructs a new ProjectAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectAttributesDeleteResponse. - * @implements IProjectAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set - */ - function ProjectAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse instance - */ - ProjectAttributesDeleteResponse.create = function create(properties) { - return new ProjectAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified ProjectAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectAttributesDeleteResponse} message ProjectAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectAttributesDeleteResponse} ProjectAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectAttributesDeleteResponse; - })(); - - admin.ProjectDomainAttributes = (function() { - - /** - * Properties of a ProjectDomainAttributes. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributes - * @property {string|null} [project] ProjectDomainAttributes project - * @property {string|null} [domain] ProjectDomainAttributes domain - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] ProjectDomainAttributes matchingAttributes - */ - - /** - * Constructs a new ProjectDomainAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributes. - * @implements IProjectDomainAttributes - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set - */ - function ProjectDomainAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributes project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.project = ""; - - /** - * ProjectDomainAttributes domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.domain = ""; - - /** - * ProjectDomainAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.ProjectDomainAttributes - * @instance - */ - ProjectDomainAttributes.prototype.matchingAttributes = null; - - /** - * Creates a new ProjectDomainAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {flyteidl.admin.IProjectDomainAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes instance - */ - ProjectDomainAttributes.create = function create(properties) { - return new ProjectDomainAttributes(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributes message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {flyteidl.admin.IProjectDomainAttributes} message ProjectDomainAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributes} ProjectDomainAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributes message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - return null; - }; - - return ProjectDomainAttributes; - })(); - - admin.ProjectDomainAttributesUpdateRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateRequest - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesUpdateRequest attributes - */ - - /** - * Constructs a new ProjectDomainAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateRequest. - * @implements IProjectDomainAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @instance - */ - ProjectDomainAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new ProjectDomainAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest instance - */ - ProjectDomainAttributesUpdateRequest.create = function create(properties) { - return new ProjectDomainAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} message ProjectDomainAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateRequest} ProjectDomainAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectDomainAttributesUpdateRequest; - })(); - - admin.ProjectDomainAttributesUpdateResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesUpdateResponse - */ - - /** - * Constructs a new ProjectDomainAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesUpdateResponse. - * @implements IProjectDomainAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectDomainAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse instance - */ - ProjectDomainAttributesUpdateResponse.create = function create(properties) { - return new ProjectDomainAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesUpdateResponse} message ProjectDomainAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesUpdateResponse} ProjectDomainAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectDomainAttributesUpdateResponse; - })(); - - admin.ProjectDomainAttributesGetRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesGetRequest - * @property {string|null} [project] ProjectDomainAttributesGetRequest project - * @property {string|null} [domain] ProjectDomainAttributesGetRequest domain - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesGetRequest resourceType - */ - - /** - * Constructs a new ProjectDomainAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetRequest. - * @implements IProjectDomainAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.project = ""; - - /** - * ProjectDomainAttributesGetRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.domain = ""; - - /** - * ProjectDomainAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @instance - */ - ProjectDomainAttributesGetRequest.prototype.resourceType = 0; - - /** - * Creates a new ProjectDomainAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest instance - */ - ProjectDomainAttributesGetRequest.create = function create(properties) { - return new ProjectDomainAttributesGetRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} message ProjectDomainAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesGetRequest} ProjectDomainAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return ProjectDomainAttributesGetRequest; - })(); - - admin.ProjectDomainAttributesGetResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesGetResponse - * @property {flyteidl.admin.IProjectDomainAttributes|null} [attributes] ProjectDomainAttributesGetResponse attributes - */ - - /** - * Constructs a new ProjectDomainAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesGetResponse. - * @implements IProjectDomainAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesGetResponse attributes. - * @member {flyteidl.admin.IProjectDomainAttributes|null|undefined} attributes - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @instance - */ - ProjectDomainAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new ProjectDomainAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse instance - */ - ProjectDomainAttributesGetResponse.create = function create(properties) { - return new ProjectDomainAttributesGetResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesGetResponse} message ProjectDomainAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.ProjectDomainAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesGetResponse} ProjectDomainAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.ProjectDomainAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.ProjectDomainAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return ProjectDomainAttributesGetResponse; - })(); - - admin.ProjectDomainAttributesDeleteRequest = (function() { - - /** - * Properties of a ProjectDomainAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesDeleteRequest - * @property {string|null} [project] ProjectDomainAttributesDeleteRequest project - * @property {string|null} [domain] ProjectDomainAttributesDeleteRequest domain - * @property {flyteidl.admin.MatchableResource|null} [resourceType] ProjectDomainAttributesDeleteRequest resourceType - */ - - /** - * Constructs a new ProjectDomainAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteRequest. - * @implements IProjectDomainAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set - */ - function ProjectDomainAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ProjectDomainAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.project = ""; - - /** - * ProjectDomainAttributesDeleteRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.domain = ""; - - /** - * ProjectDomainAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @instance - */ - ProjectDomainAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * Creates a new ProjectDomainAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest instance - */ - ProjectDomainAttributesDeleteRequest.create = function create(properties) { - return new ProjectDomainAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} message ProjectDomainAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteRequest} ProjectDomainAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return ProjectDomainAttributesDeleteRequest; - })(); - - admin.ProjectDomainAttributesDeleteResponse = (function() { - - /** - * Properties of a ProjectDomainAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IProjectDomainAttributesDeleteResponse - */ - - /** - * Constructs a new ProjectDomainAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a ProjectDomainAttributesDeleteResponse. - * @implements IProjectDomainAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set - */ - function ProjectDomainAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new ProjectDomainAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse instance - */ - ProjectDomainAttributesDeleteResponse.create = function create(properties) { - return new ProjectDomainAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified ProjectDomainAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.ProjectDomainAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IProjectDomainAttributesDeleteResponse} message ProjectDomainAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ProjectDomainAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a ProjectDomainAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.ProjectDomainAttributesDeleteResponse} ProjectDomainAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ProjectDomainAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ProjectDomainAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.ProjectDomainAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ProjectDomainAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return ProjectDomainAttributesDeleteResponse; - })(); - - admin.SignalGetOrCreateRequest = (function() { - - /** - * Properties of a SignalGetOrCreateRequest. - * @memberof flyteidl.admin - * @interface ISignalGetOrCreateRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalGetOrCreateRequest id - * @property {flyteidl.core.ILiteralType|null} [type] SignalGetOrCreateRequest type - */ - - /** - * Constructs a new SignalGetOrCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalGetOrCreateRequest. - * @implements ISignalGetOrCreateRequest - * @constructor - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set - */ - function SignalGetOrCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalGetOrCreateRequest id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @instance - */ - SignalGetOrCreateRequest.prototype.id = null; - - /** - * SignalGetOrCreateRequest type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @instance - */ - SignalGetOrCreateRequest.prototype.type = null; - - /** - * Creates a new SignalGetOrCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest instance - */ - SignalGetOrCreateRequest.create = function create(properties) { - return new SignalGetOrCreateRequest(properties); - }; - - /** - * Encodes the specified SignalGetOrCreateRequest message. Does not implicitly {@link flyteidl.admin.SignalGetOrCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {flyteidl.admin.ISignalGetOrCreateRequest} message SignalGetOrCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalGetOrCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalGetOrCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalGetOrCreateRequest} SignalGetOrCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalGetOrCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalGetOrCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalGetOrCreateRequest message. - * @function verify - * @memberof flyteidl.admin.SignalGetOrCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalGetOrCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - return null; - }; - - return SignalGetOrCreateRequest; - })(); - - admin.SignalListRequest = (function() { - - /** - * Properties of a SignalListRequest. - * @memberof flyteidl.admin - * @interface ISignalListRequest - * @property {flyteidl.core.IWorkflowExecutionIdentifier|null} [workflowExecutionId] SignalListRequest workflowExecutionId - * @property {number|null} [limit] SignalListRequest limit - * @property {string|null} [token] SignalListRequest token - * @property {string|null} [filters] SignalListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] SignalListRequest sortBy - */ - - /** - * Constructs a new SignalListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalListRequest. - * @implements ISignalListRequest - * @constructor - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set - */ - function SignalListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalListRequest workflowExecutionId. - * @member {flyteidl.core.IWorkflowExecutionIdentifier|null|undefined} workflowExecutionId - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.workflowExecutionId = null; - - /** - * SignalListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.limit = 0; - - /** - * SignalListRequest token. - * @member {string} token - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.token = ""; - - /** - * SignalListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.filters = ""; - - /** - * SignalListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.SignalListRequest - * @instance - */ - SignalListRequest.prototype.sortBy = null; - - /** - * Creates a new SignalListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {flyteidl.admin.ISignalListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalListRequest} SignalListRequest instance - */ - SignalListRequest.create = function create(properties) { - return new SignalListRequest(properties); - }; - - /** - * Encodes the specified SignalListRequest message. Does not implicitly {@link flyteidl.admin.SignalListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {flyteidl.admin.ISignalListRequest} message SignalListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) - $root.flyteidl.core.WorkflowExecutionIdentifier.encode(message.workflowExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalListRequest} SignalListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.workflowExecutionId = $root.flyteidl.core.WorkflowExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalListRequest message. - * @function verify - * @memberof flyteidl.admin.SignalListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflowExecutionId != null && message.hasOwnProperty("workflowExecutionId")) { - var error = $root.flyteidl.core.WorkflowExecutionIdentifier.verify(message.workflowExecutionId); - if (error) - return "workflowExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return SignalListRequest; - })(); - - admin.SignalList = (function() { - - /** - * Properties of a SignalList. - * @memberof flyteidl.admin - * @interface ISignalList - * @property {Array.|null} [signals] SignalList signals - * @property {string|null} [token] SignalList token - */ - - /** - * Constructs a new SignalList. - * @memberof flyteidl.admin - * @classdesc Represents a SignalList. - * @implements ISignalList - * @constructor - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set - */ - function SignalList(properties) { - this.signals = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalList signals. - * @member {Array.} signals - * @memberof flyteidl.admin.SignalList - * @instance - */ - SignalList.prototype.signals = $util.emptyArray; - - /** - * SignalList token. - * @member {string} token - * @memberof flyteidl.admin.SignalList - * @instance - */ - SignalList.prototype.token = ""; - - /** - * Creates a new SignalList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalList - * @static - * @param {flyteidl.admin.ISignalList=} [properties] Properties to set - * @returns {flyteidl.admin.SignalList} SignalList instance - */ - SignalList.create = function create(properties) { - return new SignalList(properties); - }; - - /** - * Encodes the specified SignalList message. Does not implicitly {@link flyteidl.admin.SignalList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalList - * @static - * @param {flyteidl.admin.ISignalList} message SignalList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signals != null && message.signals.length) - for (var i = 0; i < message.signals.length; ++i) - $root.flyteidl.admin.Signal.encode(message.signals[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a SignalList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalList} SignalList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signals && message.signals.length)) - message.signals = []; - message.signals.push($root.flyteidl.admin.Signal.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalList message. - * @function verify - * @memberof flyteidl.admin.SignalList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signals != null && message.hasOwnProperty("signals")) { - if (!Array.isArray(message.signals)) - return "signals: array expected"; - for (var i = 0; i < message.signals.length; ++i) { - var error = $root.flyteidl.admin.Signal.verify(message.signals[i]); - if (error) - return "signals." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return SignalList; - })(); - - admin.SignalSetRequest = (function() { - - /** - * Properties of a SignalSetRequest. - * @memberof flyteidl.admin - * @interface ISignalSetRequest - * @property {flyteidl.core.ISignalIdentifier|null} [id] SignalSetRequest id - * @property {flyteidl.core.ILiteral|null} [value] SignalSetRequest value - */ - - /** - * Constructs a new SignalSetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a SignalSetRequest. - * @implements ISignalSetRequest - * @constructor - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set - */ - function SignalSetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SignalSetRequest id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.SignalSetRequest - * @instance - */ - SignalSetRequest.prototype.id = null; - - /** - * SignalSetRequest value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.admin.SignalSetRequest - * @instance - */ - SignalSetRequest.prototype.value = null; - - /** - * Creates a new SignalSetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {flyteidl.admin.ISignalSetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest instance - */ - SignalSetRequest.create = function create(properties) { - return new SignalSetRequest(properties); - }; - - /** - * Encodes the specified SignalSetRequest message. Does not implicitly {@link flyteidl.admin.SignalSetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {flyteidl.admin.ISignalSetRequest} message SignalSetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalSetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SignalSetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalSetRequest} SignalSetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalSetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalSetRequest message. - * @function verify - * @memberof flyteidl.admin.SignalSetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalSetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return SignalSetRequest; - })(); - - admin.SignalSetResponse = (function() { - - /** - * Properties of a SignalSetResponse. - * @memberof flyteidl.admin - * @interface ISignalSetResponse - */ - - /** - * Constructs a new SignalSetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a SignalSetResponse. - * @implements ISignalSetResponse - * @constructor - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set - */ - function SignalSetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new SignalSetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {flyteidl.admin.ISignalSetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse instance - */ - SignalSetResponse.create = function create(properties) { - return new SignalSetResponse(properties); - }; - - /** - * Encodes the specified SignalSetResponse message. Does not implicitly {@link flyteidl.admin.SignalSetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {flyteidl.admin.ISignalSetResponse} message SignalSetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SignalSetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a SignalSetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.SignalSetResponse} SignalSetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SignalSetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.SignalSetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SignalSetResponse message. - * @function verify - * @memberof flyteidl.admin.SignalSetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SignalSetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return SignalSetResponse; - })(); - - admin.Signal = (function() { - - /** - * Properties of a Signal. - * @memberof flyteidl.admin - * @interface ISignal - * @property {flyteidl.core.ISignalIdentifier|null} [id] Signal id - * @property {flyteidl.core.ILiteralType|null} [type] Signal type - * @property {flyteidl.core.ILiteral|null} [value] Signal value - */ - - /** - * Constructs a new Signal. - * @memberof flyteidl.admin - * @classdesc Represents a Signal. - * @implements ISignal - * @constructor - * @param {flyteidl.admin.ISignal=} [properties] Properties to set - */ - function Signal(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Signal id. - * @member {flyteidl.core.ISignalIdentifier|null|undefined} id - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.id = null; - - /** - * Signal type. - * @member {flyteidl.core.ILiteralType|null|undefined} type - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.type = null; - - /** - * Signal value. - * @member {flyteidl.core.ILiteral|null|undefined} value - * @memberof flyteidl.admin.Signal - * @instance - */ - Signal.prototype.value = null; - - /** - * Creates a new Signal instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Signal - * @static - * @param {flyteidl.admin.ISignal=} [properties] Properties to set - * @returns {flyteidl.admin.Signal} Signal instance - */ - Signal.create = function create(properties) { - return new Signal(properties); - }; - - /** - * Encodes the specified Signal message. Does not implicitly {@link flyteidl.admin.Signal.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Signal - * @static - * @param {flyteidl.admin.ISignal} message Signal message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Signal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.SignalIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.type != null && message.hasOwnProperty("type")) - $root.flyteidl.core.LiteralType.encode(message.type, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.value != null && message.hasOwnProperty("value")) - $root.flyteidl.core.Literal.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Signal message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Signal - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Signal} Signal - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Signal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Signal(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.SignalIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.type = $root.flyteidl.core.LiteralType.decode(reader, reader.uint32()); - break; - case 3: - message.value = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Signal message. - * @function verify - * @memberof flyteidl.admin.Signal - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Signal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.SignalIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.type != null && message.hasOwnProperty("type")) { - var error = $root.flyteidl.core.LiteralType.verify(message.type); - if (error) - return "type." + error; - } - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.flyteidl.core.Literal.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - return Signal; - })(); - - admin.TaskCreateRequest = (function() { - - /** - * Properties of a TaskCreateRequest. - * @memberof flyteidl.admin - * @interface ITaskCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] TaskCreateRequest id - * @property {flyteidl.admin.ITaskSpec|null} [spec] TaskCreateRequest spec - */ - - /** - * Constructs a new TaskCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest - * @constructor - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set - */ - function TaskCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.id = null; - - /** - * TaskCreateRequest spec. - * @member {flyteidl.admin.ITaskSpec|null|undefined} spec - * @memberof flyteidl.admin.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.spec = null; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {flyteidl.admin.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest instance - */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); - }; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.admin.TaskCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {flyteidl.admin.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateRequest.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(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.TaskSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskCreateRequest} TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.TaskSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateRequest message. - * @function verify - * @memberof flyteidl.admin.TaskCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.TaskSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return TaskCreateRequest; - })(); - - admin.TaskCreateResponse = (function() { - - /** - * Properties of a TaskCreateResponse. - * @memberof flyteidl.admin - * @interface ITaskCreateResponse - */ - - /** - * Constructs a new TaskCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse - * @constructor - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set - */ - function TaskCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {flyteidl.admin.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse instance - */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); - }; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.admin.TaskCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {flyteidl.admin.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskCreateResponse} TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateResponse message. - * @function verify - * @memberof flyteidl.admin.TaskCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskCreateResponse; - })(); - - admin.Task = (function() { - - /** - * Properties of a Task. - * @memberof flyteidl.admin - * @interface ITask - * @property {flyteidl.core.IIdentifier|null} [id] Task id - * @property {flyteidl.admin.ITaskClosure|null} [closure] Task closure - * @property {string|null} [shortDescription] Task shortDescription - */ - - /** - * Constructs a new Task. - * @memberof flyteidl.admin - * @classdesc Represents a Task. - * @implements ITask - * @constructor - * @param {flyteidl.admin.ITask=} [properties] Properties to set - */ - function Task(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Task id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.id = null; - - /** - * Task closure. - * @member {flyteidl.admin.ITaskClosure|null|undefined} closure - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.closure = null; - - /** - * Task shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Task - * @instance - */ - Task.prototype.shortDescription = ""; - - /** - * Creates a new Task instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Task - * @static - * @param {flyteidl.admin.ITask=} [properties] Properties to set - * @returns {flyteidl.admin.Task} Task instance - */ - Task.create = function create(properties) { - return new Task(properties); - }; - - /** - * Encodes the specified Task message. Does not implicitly {@link flyteidl.admin.Task.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Task - * @static - * @param {flyteidl.admin.ITask} message Task message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Task.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(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.TaskClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); - return writer; - }; - - /** - * Decodes a Task message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Task - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Task} Task - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Task.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Task(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.closure = $root.flyteidl.admin.TaskClosure.decode(reader, reader.uint32()); - break; - case 3: - message.shortDescription = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Task message. - * @function verify - * @memberof flyteidl.admin.Task - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Task.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.TaskClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - return null; - }; - - return Task; - })(); - - admin.TaskList = (function() { - - /** - * Properties of a TaskList. - * @memberof flyteidl.admin - * @interface ITaskList - * @property {Array.|null} [tasks] TaskList tasks - * @property {string|null} [token] TaskList token - */ - - /** - * Constructs a new TaskList. - * @memberof flyteidl.admin - * @classdesc Represents a TaskList. - * @implements ITaskList - * @constructor - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set - */ - function TaskList(properties) { - this.tasks = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskList tasks. - * @member {Array.} tasks - * @memberof flyteidl.admin.TaskList - * @instance - */ - TaskList.prototype.tasks = $util.emptyArray; - - /** - * TaskList token. - * @member {string} token - * @memberof flyteidl.admin.TaskList - * @instance - */ - TaskList.prototype.token = ""; - - /** - * Creates a new TaskList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskList - * @static - * @param {flyteidl.admin.ITaskList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskList} TaskList instance - */ - TaskList.create = function create(properties) { - return new TaskList(properties); - }; - - /** - * Encodes the specified TaskList message. Does not implicitly {@link flyteidl.admin.TaskList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskList - * @static - * @param {flyteidl.admin.ITaskList} message TaskList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tasks != null && message.tasks.length) - for (var i = 0; i < message.tasks.length; ++i) - $root.flyteidl.admin.Task.encode(message.tasks[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a TaskList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskList} TaskList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.tasks && message.tasks.length)) - message.tasks = []; - message.tasks.push($root.flyteidl.admin.Task.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskList message. - * @function verify - * @memberof flyteidl.admin.TaskList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tasks != null && message.hasOwnProperty("tasks")) { - if (!Array.isArray(message.tasks)) - return "tasks: array expected"; - for (var i = 0; i < message.tasks.length; ++i) { - var error = $root.flyteidl.admin.Task.verify(message.tasks[i]); - if (error) - return "tasks." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return TaskList; - })(); - - admin.TaskSpec = (function() { - - /** - * Properties of a TaskSpec. - * @memberof flyteidl.admin - * @interface ITaskSpec - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskSpec template - * @property {flyteidl.admin.IDescriptionEntity|null} [description] TaskSpec description - */ - - /** - * Constructs a new TaskSpec. - * @memberof flyteidl.admin - * @classdesc Represents a TaskSpec. - * @implements ITaskSpec - * @constructor - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set - */ - function TaskSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskSpec template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.admin.TaskSpec - * @instance - */ - TaskSpec.prototype.template = null; - - /** - * TaskSpec description. - * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description - * @memberof flyteidl.admin.TaskSpec - * @instance - */ - TaskSpec.prototype.description = null; - - /** - * Creates a new TaskSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {flyteidl.admin.ITaskSpec=} [properties] Properties to set - * @returns {flyteidl.admin.TaskSpec} TaskSpec instance - */ - TaskSpec.create = function create(properties) { - return new TaskSpec(properties); - }; - - /** - * Encodes the specified TaskSpec message. Does not implicitly {@link flyteidl.admin.TaskSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {flyteidl.admin.ITaskSpec} message TaskSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskSpec} TaskSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 2: - message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskSpec message. - * @function verify - * @memberof flyteidl.admin.TaskSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.description != null && message.hasOwnProperty("description")) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); - if (error) - return "description." + error; - } - return null; - }; - - return TaskSpec; - })(); - - admin.TaskClosure = (function() { - - /** - * Properties of a TaskClosure. - * @memberof flyteidl.admin - * @interface ITaskClosure - * @property {flyteidl.core.ICompiledTask|null} [compiledTask] TaskClosure compiledTask - * @property {google.protobuf.ITimestamp|null} [createdAt] TaskClosure createdAt - */ - - /** - * Constructs a new TaskClosure. - * @memberof flyteidl.admin - * @classdesc Represents a TaskClosure. - * @implements ITaskClosure - * @constructor - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set - */ - function TaskClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskClosure compiledTask. - * @member {flyteidl.core.ICompiledTask|null|undefined} compiledTask - * @memberof flyteidl.admin.TaskClosure - * @instance - */ - TaskClosure.prototype.compiledTask = null; - - /** - * TaskClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskClosure - * @instance - */ - TaskClosure.prototype.createdAt = null; - - /** - * Creates a new TaskClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {flyteidl.admin.ITaskClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskClosure} TaskClosure instance - */ - TaskClosure.create = function create(properties) { - return new TaskClosure(properties); - }; - - /** - * Encodes the specified TaskClosure message. Does not implicitly {@link flyteidl.admin.TaskClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {flyteidl.admin.ITaskClosure} message TaskClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) - $root.flyteidl.core.CompiledTask.encode(message.compiledTask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskClosure} TaskClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compiledTask = $root.flyteidl.core.CompiledTask.decode(reader, reader.uint32()); - break; - case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskClosure message. - * @function verify - * @memberof flyteidl.admin.TaskClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compiledTask != null && message.hasOwnProperty("compiledTask")) { - var error = $root.flyteidl.core.CompiledTask.verify(message.compiledTask); - if (error) - return "compiledTask." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - return null; - }; - - return TaskClosure; - })(); - - admin.TaskExecutionGetRequest = (function() { - - /** - * Properties of a TaskExecutionGetRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetRequest id - */ - - /** - * Constructs a new TaskExecutionGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetRequest. - * @implements ITaskExecutionGetRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set - */ - function TaskExecutionGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @instance - */ - TaskExecutionGetRequest.prototype.id = null; - - /** - * Creates a new TaskExecutionGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest instance - */ - TaskExecutionGetRequest.create = function create(properties) { - return new TaskExecutionGetRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionGetRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetRequest} message TaskExecutionGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetRequest} TaskExecutionGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return TaskExecutionGetRequest; - })(); - - admin.TaskExecutionListRequest = (function() { - - /** - * Properties of a TaskExecutionListRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionListRequest - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] TaskExecutionListRequest nodeExecutionId - * @property {number|null} [limit] TaskExecutionListRequest limit - * @property {string|null} [token] TaskExecutionListRequest token - * @property {string|null} [filters] TaskExecutionListRequest filters - * @property {flyteidl.admin.ISort|null} [sortBy] TaskExecutionListRequest sortBy - */ - - /** - * Constructs a new TaskExecutionListRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionListRequest. - * @implements ITaskExecutionListRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set - */ - function TaskExecutionListRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionListRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.nodeExecutionId = null; - - /** - * TaskExecutionListRequest limit. - * @member {number} limit - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.limit = 0; - - /** - * TaskExecutionListRequest token. - * @member {string} token - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.token = ""; - - /** - * TaskExecutionListRequest filters. - * @member {string} filters - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.filters = ""; - - /** - * TaskExecutionListRequest sortBy. - * @member {flyteidl.admin.ISort|null|undefined} sortBy - * @memberof flyteidl.admin.TaskExecutionListRequest - * @instance - */ - TaskExecutionListRequest.prototype.sortBy = null; - - /** - * Creates a new TaskExecutionListRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {flyteidl.admin.ITaskExecutionListRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest instance - */ - TaskExecutionListRequest.create = function create(properties) { - return new TaskExecutionListRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionListRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionListRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {flyteidl.admin.ITaskExecutionListRequest} message TaskExecutionListRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.limit != null && message.hasOwnProperty("limit")) - writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.limit); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.token); - if (message.filters != null && message.hasOwnProperty("filters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filters); - if (message.sortBy != null && message.hasOwnProperty("sortBy")) - $root.flyteidl.admin.Sort.encode(message.sortBy, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionListRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionListRequest} TaskExecutionListRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionListRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.limit = reader.uint32(); - break; - case 3: - message.token = reader.string(); - break; - case 4: - message.filters = reader.string(); - break; - case 5: - message.sortBy = $root.flyteidl.admin.Sort.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionListRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionListRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - if (message.filters != null && message.hasOwnProperty("filters")) - if (!$util.isString(message.filters)) - return "filters: string expected"; - if (message.sortBy != null && message.hasOwnProperty("sortBy")) { - var error = $root.flyteidl.admin.Sort.verify(message.sortBy); - if (error) - return "sortBy." + error; - } - return null; - }; - - return TaskExecutionListRequest; - })(); - - admin.TaskExecution = (function() { - - /** - * Properties of a TaskExecution. - * @memberof flyteidl.admin - * @interface ITaskExecution - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecution id - * @property {string|null} [inputUri] TaskExecution inputUri - * @property {flyteidl.admin.ITaskExecutionClosure|null} [closure] TaskExecution closure - * @property {boolean|null} [isParent] TaskExecution isParent - */ - - /** - * Constructs a new TaskExecution. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecution. - * @implements ITaskExecution - * @constructor - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set - */ - function TaskExecution(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecution id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.id = null; - - /** - * TaskExecution inputUri. - * @member {string} inputUri - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.inputUri = ""; - - /** - * TaskExecution closure. - * @member {flyteidl.admin.ITaskExecutionClosure|null|undefined} closure - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.closure = null; - - /** - * TaskExecution isParent. - * @member {boolean} isParent - * @memberof flyteidl.admin.TaskExecution - * @instance - */ - TaskExecution.prototype.isParent = false; - - /** - * Creates a new TaskExecution instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {flyteidl.admin.ITaskExecution=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecution} TaskExecution instance - */ - TaskExecution.create = function create(properties) { - return new TaskExecution(properties); - }; - - /** - * Encodes the specified TaskExecution message. Does not implicitly {@link flyteidl.admin.TaskExecution.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {flyteidl.admin.ITaskExecution} message TaskExecution message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecution.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputUri); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.TaskExecutionClosure.encode(message.closure, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.isParent != null && message.hasOwnProperty("isParent")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isParent); - return writer; - }; - - /** - * Decodes a TaskExecution message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecution} TaskExecution - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecution.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecution(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - case 2: - message.inputUri = reader.string(); - break; - case 3: - message.closure = $root.flyteidl.admin.TaskExecutionClosure.decode(reader, reader.uint32()); - break; - case 4: - message.isParent = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecution message. - * @function verify - * @memberof flyteidl.admin.TaskExecution - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecution.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.inputUri != null && message.hasOwnProperty("inputUri")) - if (!$util.isString(message.inputUri)) - return "inputUri: string expected"; - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.TaskExecutionClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.isParent != null && message.hasOwnProperty("isParent")) - if (typeof message.isParent !== "boolean") - return "isParent: boolean expected"; - return null; - }; - - return TaskExecution; - })(); - - admin.TaskExecutionList = (function() { - - /** - * Properties of a TaskExecutionList. - * @memberof flyteidl.admin - * @interface ITaskExecutionList - * @property {Array.|null} [taskExecutions] TaskExecutionList taskExecutions - * @property {string|null} [token] TaskExecutionList token - */ - - /** - * Constructs a new TaskExecutionList. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionList. - * @implements ITaskExecutionList - * @constructor - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set - */ - function TaskExecutionList(properties) { - this.taskExecutions = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionList taskExecutions. - * @member {Array.} taskExecutions - * @memberof flyteidl.admin.TaskExecutionList - * @instance - */ - TaskExecutionList.prototype.taskExecutions = $util.emptyArray; - - /** - * TaskExecutionList token. - * @member {string} token - * @memberof flyteidl.admin.TaskExecutionList - * @instance - */ - TaskExecutionList.prototype.token = ""; - - /** - * Creates a new TaskExecutionList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {flyteidl.admin.ITaskExecutionList=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList instance - */ - TaskExecutionList.create = function create(properties) { - return new TaskExecutionList(properties); - }; - - /** - * Encodes the specified TaskExecutionList message. Does not implicitly {@link flyteidl.admin.TaskExecutionList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {flyteidl.admin.ITaskExecutionList} message TaskExecutionList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskExecutions != null && message.taskExecutions.length) - for (var i = 0; i < message.taskExecutions.length; ++i) - $root.flyteidl.admin.TaskExecution.encode(message.taskExecutions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a TaskExecutionList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionList} TaskExecutionList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.taskExecutions && message.taskExecutions.length)) - message.taskExecutions = []; - message.taskExecutions.push($root.flyteidl.admin.TaskExecution.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionList message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskExecutions != null && message.hasOwnProperty("taskExecutions")) { - if (!Array.isArray(message.taskExecutions)) - return "taskExecutions: array expected"; - for (var i = 0; i < message.taskExecutions.length; ++i) { - var error = $root.flyteidl.admin.TaskExecution.verify(message.taskExecutions[i]); - if (error) - return "taskExecutions." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return TaskExecutionList; - })(); - - admin.TaskExecutionClosure = (function() { - - /** - * Properties of a TaskExecutionClosure. - * @memberof flyteidl.admin - * @interface ITaskExecutionClosure - * @property {string|null} [outputUri] TaskExecutionClosure outputUri - * @property {flyteidl.core.IExecutionError|null} [error] TaskExecutionClosure error - * @property {flyteidl.core.ILiteralMap|null} [outputData] TaskExecutionClosure outputData - * @property {flyteidl.core.TaskExecution.Phase|null} [phase] TaskExecutionClosure phase - * @property {Array.|null} [logs] TaskExecutionClosure logs - * @property {google.protobuf.ITimestamp|null} [startedAt] TaskExecutionClosure startedAt - * @property {google.protobuf.IDuration|null} [duration] TaskExecutionClosure duration - * @property {google.protobuf.ITimestamp|null} [createdAt] TaskExecutionClosure createdAt - * @property {google.protobuf.ITimestamp|null} [updatedAt] TaskExecutionClosure updatedAt - * @property {google.protobuf.IStruct|null} [customInfo] TaskExecutionClosure customInfo - * @property {string|null} [reason] TaskExecutionClosure reason - * @property {string|null} [taskType] TaskExecutionClosure taskType - * @property {flyteidl.event.ITaskExecutionMetadata|null} [metadata] TaskExecutionClosure metadata - * @property {number|null} [eventVersion] TaskExecutionClosure eventVersion - * @property {Array.|null} [reasons] TaskExecutionClosure reasons - */ - - /** - * Constructs a new TaskExecutionClosure. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionClosure. - * @implements ITaskExecutionClosure - * @constructor - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set - */ - function TaskExecutionClosure(properties) { - this.logs = []; - this.reasons = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionClosure outputUri. - * @member {string} outputUri - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.outputUri = ""; - - /** - * TaskExecutionClosure error. - * @member {flyteidl.core.IExecutionError|null|undefined} error - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.error = null; - - /** - * TaskExecutionClosure outputData. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputData - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.outputData = null; - - /** - * TaskExecutionClosure phase. - * @member {flyteidl.core.TaskExecution.Phase} phase - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.phase = 0; - - /** - * TaskExecutionClosure logs. - * @member {Array.} logs - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.logs = $util.emptyArray; - - /** - * TaskExecutionClosure startedAt. - * @member {google.protobuf.ITimestamp|null|undefined} startedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.startedAt = null; - - /** - * TaskExecutionClosure duration. - * @member {google.protobuf.IDuration|null|undefined} duration - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.duration = null; - - /** - * TaskExecutionClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.createdAt = null; - - /** - * TaskExecutionClosure updatedAt. - * @member {google.protobuf.ITimestamp|null|undefined} updatedAt - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.updatedAt = null; - - /** - * TaskExecutionClosure customInfo. - * @member {google.protobuf.IStruct|null|undefined} customInfo - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.customInfo = null; - - /** - * TaskExecutionClosure reason. - * @member {string} reason - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.reason = ""; - - /** - * TaskExecutionClosure taskType. - * @member {string} taskType - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.taskType = ""; - - /** - * TaskExecutionClosure metadata. - * @member {flyteidl.event.ITaskExecutionMetadata|null|undefined} metadata - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.metadata = null; - - /** - * TaskExecutionClosure eventVersion. - * @member {number} eventVersion - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.eventVersion = 0; - - /** - * TaskExecutionClosure reasons. - * @member {Array.} reasons - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - TaskExecutionClosure.prototype.reasons = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TaskExecutionClosure outputResult. - * @member {"outputUri"|"error"|"outputData"|undefined} outputResult - * @memberof flyteidl.admin.TaskExecutionClosure - * @instance - */ - Object.defineProperty(TaskExecutionClosure.prototype, "outputResult", { - get: $util.oneOfGetter($oneOfFields = ["outputUri", "error", "outputData"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TaskExecutionClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {flyteidl.admin.ITaskExecutionClosure=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure instance - */ - TaskExecutionClosure.create = function create(properties) { - return new TaskExecutionClosure(properties); - }; - - /** - * Encodes the specified TaskExecutionClosure message. Does not implicitly {@link flyteidl.admin.TaskExecutionClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {flyteidl.admin.ITaskExecutionClosure} message TaskExecutionClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.outputUri != null && message.hasOwnProperty("outputUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.outputUri); - if (message.error != null && message.hasOwnProperty("error")) - $root.flyteidl.core.ExecutionError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.phase != null && message.hasOwnProperty("phase")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.phase); - if (message.logs != null && message.logs.length) - for (var i = 0; i < message.logs.length; ++i) - $root.flyteidl.core.TaskLog.encode(message.logs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startedAt != null && message.hasOwnProperty("startedAt")) - $root.google.protobuf.Timestamp.encode(message.startedAt, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.duration != null && message.hasOwnProperty("duration")) - $root.google.protobuf.Duration.encode(message.duration, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) - $root.google.protobuf.Timestamp.encode(message.updatedAt, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.customInfo != null && message.hasOwnProperty("customInfo")) - $root.google.protobuf.Struct.encode(message.customInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reason != null && message.hasOwnProperty("reason")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reason); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.taskType); - if (message.outputData != null && message.hasOwnProperty("outputData")) - $root.flyteidl.core.LiteralMap.encode(message.outputData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.metadata != null && message.hasOwnProperty("metadata")) - $root.flyteidl.event.TaskExecutionMetadata.encode(message.metadata, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.eventVersion); - if (message.reasons != null && message.reasons.length) - for (var i = 0; i < message.reasons.length; ++i) - $root.flyteidl.admin.Reason.encode(message.reasons[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionClosure} TaskExecutionClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.outputUri = reader.string(); - break; - case 2: - message.error = $root.flyteidl.core.ExecutionError.decode(reader, reader.uint32()); - break; - case 12: - message.outputData = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 3: - message.phase = reader.int32(); - break; - case 4: - if (!(message.logs && message.logs.length)) - message.logs = []; - message.logs.push($root.flyteidl.core.TaskLog.decode(reader, reader.uint32())); - break; - case 5: - message.startedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.duration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 7: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updatedAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.customInfo = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 10: - message.reason = reader.string(); - break; - case 11: - message.taskType = reader.string(); - break; - case 16: - message.metadata = $root.flyteidl.event.TaskExecutionMetadata.decode(reader, reader.uint32()); - break; - case 17: - message.eventVersion = reader.int32(); - break; - case 18: - if (!(message.reasons && message.reasons.length)) - message.reasons = []; - message.reasons.push($root.flyteidl.admin.Reason.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionClosure message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.outputUri != null && message.hasOwnProperty("outputUri")) { - properties.outputResult = 1; - if (!$util.isString(message.outputUri)) - return "outputUri: string expected"; - } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.ExecutionError.verify(message.error); - if (error) - return "error." + error; - } - } - if (message.outputData != null && message.hasOwnProperty("outputData")) { - if (properties.outputResult === 1) - return "outputResult: multiple values"; - properties.outputResult = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputData); - if (error) - return "outputData." + error; - } - } - if (message.phase != null && message.hasOwnProperty("phase")) - switch (message.phase) { - default: - return "phase: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.logs != null && message.hasOwnProperty("logs")) { - if (!Array.isArray(message.logs)) - return "logs: array expected"; - for (var i = 0; i < message.logs.length; ++i) { - var error = $root.flyteidl.core.TaskLog.verify(message.logs[i]); - if (error) - return "logs." + error; - } - } - if (message.startedAt != null && message.hasOwnProperty("startedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.startedAt); - if (error) - return "startedAt." + error; - } - if (message.duration != null && message.hasOwnProperty("duration")) { - var error = $root.google.protobuf.Duration.verify(message.duration); - if (error) - return "duration." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - if (message.updatedAt != null && message.hasOwnProperty("updatedAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.updatedAt); - if (error) - return "updatedAt." + error; - } - if (message.customInfo != null && message.hasOwnProperty("customInfo")) { - var error = $root.google.protobuf.Struct.verify(message.customInfo); - if (error) - return "customInfo." + error; - } - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.flyteidl.event.TaskExecutionMetadata.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.eventVersion != null && message.hasOwnProperty("eventVersion")) - if (!$util.isInteger(message.eventVersion)) - return "eventVersion: integer expected"; - if (message.reasons != null && message.hasOwnProperty("reasons")) { - if (!Array.isArray(message.reasons)) - return "reasons: array expected"; - for (var i = 0; i < message.reasons.length; ++i) { - var error = $root.flyteidl.admin.Reason.verify(message.reasons[i]); - if (error) - return "reasons." + error; - } - } - return null; - }; - - return TaskExecutionClosure; - })(); - - admin.Reason = (function() { - - /** - * Properties of a Reason. - * @memberof flyteidl.admin - * @interface IReason - * @property {google.protobuf.ITimestamp|null} [occurredAt] Reason occurredAt - * @property {string|null} [message] Reason message - */ - - /** - * Constructs a new Reason. - * @memberof flyteidl.admin - * @classdesc Represents a Reason. - * @implements IReason - * @constructor - * @param {flyteidl.admin.IReason=} [properties] Properties to set - */ - function Reason(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Reason occurredAt. - * @member {google.protobuf.ITimestamp|null|undefined} occurredAt - * @memberof flyteidl.admin.Reason - * @instance - */ - Reason.prototype.occurredAt = null; - - /** - * Reason message. - * @member {string} message - * @memberof flyteidl.admin.Reason - * @instance - */ - Reason.prototype.message = ""; - - /** - * Creates a new Reason instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Reason - * @static - * @param {flyteidl.admin.IReason=} [properties] Properties to set - * @returns {flyteidl.admin.Reason} Reason instance - */ - Reason.create = function create(properties) { - return new Reason(properties); - }; - - /** - * Encodes the specified Reason message. Does not implicitly {@link flyteidl.admin.Reason.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Reason - * @static - * @param {flyteidl.admin.IReason} message Reason message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Reason.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) - $root.google.protobuf.Timestamp.encode(message.occurredAt, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.message != null && message.hasOwnProperty("message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - return writer; - }; - - /** - * Decodes a Reason message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Reason - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Reason} Reason - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Reason.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Reason(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.occurredAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.message = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Reason message. - * @function verify - * @memberof flyteidl.admin.Reason - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Reason.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.occurredAt != null && message.hasOwnProperty("occurredAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.occurredAt); - if (error) - return "occurredAt." + error; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - return null; - }; - - return Reason; - })(); - - admin.TaskExecutionGetDataRequest = (function() { - - /** - * Properties of a TaskExecutionGetDataRequest. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetDataRequest - * @property {flyteidl.core.ITaskExecutionIdentifier|null} [id] TaskExecutionGetDataRequest id - */ - - /** - * Constructs a new TaskExecutionGetDataRequest. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataRequest. - * @implements ITaskExecutionGetDataRequest - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set - */ - function TaskExecutionGetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetDataRequest id. - * @member {flyteidl.core.ITaskExecutionIdentifier|null|undefined} id - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @instance - */ - TaskExecutionGetDataRequest.prototype.id = null; - - /** - * Creates a new TaskExecutionGetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest instance - */ - TaskExecutionGetDataRequest.create = function create(properties) { - return new TaskExecutionGetDataRequest(properties); - }; - - /** - * Encodes the specified TaskExecutionGetDataRequest message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} message TaskExecutionGetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && message.hasOwnProperty("id")) - $root.flyteidl.core.TaskExecutionIdentifier.encode(message.id, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetDataRequest} TaskExecutionGetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.TaskExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetDataRequest message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.TaskExecutionIdentifier.verify(message.id); - if (error) - return "id." + error; - } - return null; - }; - - return TaskExecutionGetDataRequest; - })(); - - admin.TaskExecutionGetDataResponse = (function() { - - /** - * Properties of a TaskExecutionGetDataResponse. - * @memberof flyteidl.admin - * @interface ITaskExecutionGetDataResponse - * @property {flyteidl.admin.IUrlBlob|null} [inputs] TaskExecutionGetDataResponse inputs - * @property {flyteidl.admin.IUrlBlob|null} [outputs] TaskExecutionGetDataResponse outputs - * @property {flyteidl.core.ILiteralMap|null} [fullInputs] TaskExecutionGetDataResponse fullInputs - * @property {flyteidl.core.ILiteralMap|null} [fullOutputs] TaskExecutionGetDataResponse fullOutputs - * @property {flyteidl.admin.IFlyteURLs|null} [flyteUrls] TaskExecutionGetDataResponse flyteUrls - */ - - /** - * Constructs a new TaskExecutionGetDataResponse. - * @memberof flyteidl.admin - * @classdesc Represents a TaskExecutionGetDataResponse. - * @implements ITaskExecutionGetDataResponse - * @constructor - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set - */ - function TaskExecutionGetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskExecutionGetDataResponse inputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} inputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.inputs = null; - - /** - * TaskExecutionGetDataResponse outputs. - * @member {flyteidl.admin.IUrlBlob|null|undefined} outputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.outputs = null; - - /** - * TaskExecutionGetDataResponse fullInputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullInputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.fullInputs = null; - - /** - * TaskExecutionGetDataResponse fullOutputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} fullOutputs - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.fullOutputs = null; - - /** - * TaskExecutionGetDataResponse flyteUrls. - * @member {flyteidl.admin.IFlyteURLs|null|undefined} flyteUrls - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @instance - */ - TaskExecutionGetDataResponse.prototype.flyteUrls = null; - - /** - * Creates a new TaskExecutionGetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse instance - */ - TaskExecutionGetDataResponse.create = function create(properties) { - return new TaskExecutionGetDataResponse(properties); - }; - - /** - * Encodes the specified TaskExecutionGetDataResponse message. Does not implicitly {@link flyteidl.admin.TaskExecutionGetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {flyteidl.admin.ITaskExecutionGetDataResponse} message TaskExecutionGetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskExecutionGetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.admin.UrlBlob.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.admin.UrlBlob.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullInputs, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) - $root.flyteidl.core.LiteralMap.encode(message.fullOutputs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) - $root.flyteidl.admin.FlyteURLs.encode(message.flyteUrls, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskExecutionGetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.TaskExecutionGetDataResponse} TaskExecutionGetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskExecutionGetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.TaskExecutionGetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 2: - message.outputs = $root.flyteidl.admin.UrlBlob.decode(reader, reader.uint32()); - break; - case 3: - message.fullInputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 4: - message.fullOutputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 5: - message.flyteUrls = $root.flyteidl.admin.FlyteURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskExecutionGetDataResponse message. - * @function verify - * @memberof flyteidl.admin.TaskExecutionGetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskExecutionGetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.admin.UrlBlob.verify(message.outputs); - if (error) - return "outputs." + error; - } - if (message.fullInputs != null && message.hasOwnProperty("fullInputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullInputs); - if (error) - return "fullInputs." + error; - } - if (message.fullOutputs != null && message.hasOwnProperty("fullOutputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.fullOutputs); - if (error) - return "fullOutputs." + error; - } - if (message.flyteUrls != null && message.hasOwnProperty("flyteUrls")) { - var error = $root.flyteidl.admin.FlyteURLs.verify(message.flyteUrls); - if (error) - return "flyteUrls." + error; - } - return null; - }; - - return TaskExecutionGetDataResponse; - })(); - - admin.GetVersionResponse = (function() { - - /** - * Properties of a GetVersionResponse. - * @memberof flyteidl.admin - * @interface IGetVersionResponse - * @property {flyteidl.admin.IVersion|null} [controlPlaneVersion] GetVersionResponse controlPlaneVersion - */ - - /** - * Constructs a new GetVersionResponse. - * @memberof flyteidl.admin - * @classdesc Represents a GetVersionResponse. - * @implements IGetVersionResponse - * @constructor - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set - */ - function GetVersionResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetVersionResponse controlPlaneVersion. - * @member {flyteidl.admin.IVersion|null|undefined} controlPlaneVersion - * @memberof flyteidl.admin.GetVersionResponse - * @instance - */ - GetVersionResponse.prototype.controlPlaneVersion = null; - - /** - * Creates a new GetVersionResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {flyteidl.admin.IGetVersionResponse=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse instance - */ - GetVersionResponse.create = function create(properties) { - return new GetVersionResponse(properties); - }; - - /** - * Encodes the specified GetVersionResponse message. Does not implicitly {@link flyteidl.admin.GetVersionResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {flyteidl.admin.IGetVersionResponse} message GetVersionResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) - $root.flyteidl.admin.Version.encode(message.controlPlaneVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetVersionResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetVersionResponse} GetVersionResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.controlPlaneVersion = $root.flyteidl.admin.Version.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetVersionResponse message. - * @function verify - * @memberof flyteidl.admin.GetVersionResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.controlPlaneVersion != null && message.hasOwnProperty("controlPlaneVersion")) { - var error = $root.flyteidl.admin.Version.verify(message.controlPlaneVersion); - if (error) - return "controlPlaneVersion." + error; - } - return null; - }; - - return GetVersionResponse; - })(); - - admin.Version = (function() { - - /** - * Properties of a Version. - * @memberof flyteidl.admin - * @interface IVersion - * @property {string|null} [Build] Version Build - * @property {string|null} [Version] Version Version - * @property {string|null} [BuildTime] Version BuildTime - */ - - /** - * Constructs a new Version. - * @memberof flyteidl.admin - * @classdesc Represents a Version. - * @implements IVersion - * @constructor - * @param {flyteidl.admin.IVersion=} [properties] Properties to set - */ - function Version(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Version Build. - * @member {string} Build - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.Build = ""; - - /** - * Version Version. - * @member {string} Version - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.Version = ""; - - /** - * Version BuildTime. - * @member {string} BuildTime - * @memberof flyteidl.admin.Version - * @instance - */ - Version.prototype.BuildTime = ""; - - /** - * Creates a new Version instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Version - * @static - * @param {flyteidl.admin.IVersion=} [properties] Properties to set - * @returns {flyteidl.admin.Version} Version instance - */ - Version.create = function create(properties) { - return new Version(properties); - }; - - /** - * Encodes the specified Version message. Does not implicitly {@link flyteidl.admin.Version.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Version - * @static - * @param {flyteidl.admin.IVersion} message Version message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Version.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.Build != null && message.hasOwnProperty("Build")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.Build); - if (message.Version != null && message.hasOwnProperty("Version")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.Version); - if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.BuildTime); - return writer; - }; - - /** - * Decodes a Version message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Version - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Version} Version - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Version.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Version(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.Build = reader.string(); - break; - case 2: - message.Version = reader.string(); - break; - case 3: - message.BuildTime = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Version message. - * @function verify - * @memberof flyteidl.admin.Version - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Version.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.Build != null && message.hasOwnProperty("Build")) - if (!$util.isString(message.Build)) - return "Build: string expected"; - if (message.Version != null && message.hasOwnProperty("Version")) - if (!$util.isString(message.Version)) - return "Version: string expected"; - if (message.BuildTime != null && message.hasOwnProperty("BuildTime")) - if (!$util.isString(message.BuildTime)) - return "BuildTime: string expected"; - return null; - }; - - return Version; - })(); - - admin.GetVersionRequest = (function() { - - /** - * Properties of a GetVersionRequest. - * @memberof flyteidl.admin - * @interface IGetVersionRequest - */ - - /** - * Constructs a new GetVersionRequest. - * @memberof flyteidl.admin - * @classdesc Represents a GetVersionRequest. - * @implements IGetVersionRequest - * @constructor - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set - */ - function GetVersionRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new GetVersionRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {flyteidl.admin.IGetVersionRequest=} [properties] Properties to set - * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest instance - */ - GetVersionRequest.create = function create(properties) { - return new GetVersionRequest(properties); - }; - - /** - * Encodes the specified GetVersionRequest message. Does not implicitly {@link flyteidl.admin.GetVersionRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {flyteidl.admin.IGetVersionRequest} message GetVersionRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetVersionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a GetVersionRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.GetVersionRequest} GetVersionRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetVersionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.GetVersionRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetVersionRequest message. - * @function verify - * @memberof flyteidl.admin.GetVersionRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetVersionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return GetVersionRequest; - })(); - - admin.WorkflowCreateRequest = (function() { - - /** - * Properties of a WorkflowCreateRequest. - * @memberof flyteidl.admin - * @interface IWorkflowCreateRequest - * @property {flyteidl.core.IIdentifier|null} [id] WorkflowCreateRequest id - * @property {flyteidl.admin.IWorkflowSpec|null} [spec] WorkflowCreateRequest spec - */ - - /** - * Constructs a new WorkflowCreateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateRequest. - * @implements IWorkflowCreateRequest - * @constructor - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set - */ - function WorkflowCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowCreateRequest id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.WorkflowCreateRequest - * @instance - */ - WorkflowCreateRequest.prototype.id = null; - - /** - * WorkflowCreateRequest spec. - * @member {flyteidl.admin.IWorkflowSpec|null|undefined} spec - * @memberof flyteidl.admin.WorkflowCreateRequest - * @instance - */ - WorkflowCreateRequest.prototype.spec = null; - - /** - * Creates a new WorkflowCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {flyteidl.admin.IWorkflowCreateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest instance - */ - WorkflowCreateRequest.create = function create(properties) { - return new WorkflowCreateRequest(properties); - }; - - /** - * Encodes the specified WorkflowCreateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {flyteidl.admin.IWorkflowCreateRequest} message WorkflowCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowCreateRequest.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(); - if (message.spec != null && message.hasOwnProperty("spec")) - $root.flyteidl.admin.WorkflowSpec.encode(message.spec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowCreateRequest} WorkflowCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.spec = $root.flyteidl.admin.WorkflowSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowCreateRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.spec != null && message.hasOwnProperty("spec")) { - var error = $root.flyteidl.admin.WorkflowSpec.verify(message.spec); - if (error) - return "spec." + error; - } - return null; - }; - - return WorkflowCreateRequest; - })(); - - admin.WorkflowCreateResponse = (function() { - - /** - * Properties of a WorkflowCreateResponse. - * @memberof flyteidl.admin - * @interface IWorkflowCreateResponse - */ - - /** - * Constructs a new WorkflowCreateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowCreateResponse. - * @implements IWorkflowCreateResponse - * @constructor - * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set - */ - function WorkflowCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {flyteidl.admin.IWorkflowCreateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse instance - */ - WorkflowCreateResponse.create = function create(properties) { - return new WorkflowCreateResponse(properties); - }; - - /** - * Encodes the specified WorkflowCreateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {flyteidl.admin.IWorkflowCreateResponse} message WorkflowCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowCreateResponse} WorkflowCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowCreateResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowCreateResponse; - })(); - - admin.Workflow = (function() { - - /** - * Properties of a Workflow. - * @memberof flyteidl.admin - * @interface IWorkflow - * @property {flyteidl.core.IIdentifier|null} [id] Workflow id - * @property {flyteidl.admin.IWorkflowClosure|null} [closure] Workflow closure - * @property {string|null} [shortDescription] Workflow shortDescription - */ - - /** - * Constructs a new Workflow. - * @memberof flyteidl.admin - * @classdesc Represents a Workflow. - * @implements IWorkflow - * @constructor - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set - */ - function Workflow(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Workflow id. - * @member {flyteidl.core.IIdentifier|null|undefined} id - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.id = null; - - /** - * Workflow closure. - * @member {flyteidl.admin.IWorkflowClosure|null|undefined} closure - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.closure = null; - - /** - * Workflow shortDescription. - * @member {string} shortDescription - * @memberof flyteidl.admin.Workflow - * @instance - */ - Workflow.prototype.shortDescription = ""; - - /** - * Creates a new Workflow instance using the specified properties. - * @function create - * @memberof flyteidl.admin.Workflow - * @static - * @param {flyteidl.admin.IWorkflow=} [properties] Properties to set - * @returns {flyteidl.admin.Workflow} Workflow instance - */ - Workflow.create = function create(properties) { - return new Workflow(properties); - }; - - /** - * Encodes the specified Workflow message. Does not implicitly {@link flyteidl.admin.Workflow.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.Workflow - * @static - * @param {flyteidl.admin.IWorkflow} message Workflow message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Workflow.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(); - if (message.closure != null && message.hasOwnProperty("closure")) - $root.flyteidl.admin.WorkflowClosure.encode(message.closure, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.shortDescription); - return writer; - }; - - /** - * Decodes a Workflow message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.Workflow - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.Workflow} Workflow - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Workflow.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.Workflow(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = $root.flyteidl.core.Identifier.decode(reader, reader.uint32()); - break; - case 2: - message.closure = $root.flyteidl.admin.WorkflowClosure.decode(reader, reader.uint32()); - break; - case 3: - message.shortDescription = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Workflow message. - * @function verify - * @memberof flyteidl.admin.Workflow - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Workflow.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) { - var error = $root.flyteidl.core.Identifier.verify(message.id); - if (error) - return "id." + error; - } - if (message.closure != null && message.hasOwnProperty("closure")) { - var error = $root.flyteidl.admin.WorkflowClosure.verify(message.closure); - if (error) - return "closure." + error; - } - if (message.shortDescription != null && message.hasOwnProperty("shortDescription")) - if (!$util.isString(message.shortDescription)) - return "shortDescription: string expected"; - return null; - }; - - return Workflow; - })(); - - admin.WorkflowList = (function() { - - /** - * Properties of a WorkflowList. - * @memberof flyteidl.admin - * @interface IWorkflowList - * @property {Array.|null} [workflows] WorkflowList workflows - * @property {string|null} [token] WorkflowList token - */ - - /** - * Constructs a new WorkflowList. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowList. - * @implements IWorkflowList - * @constructor - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set - */ - function WorkflowList(properties) { - this.workflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowList workflows. - * @member {Array.} workflows - * @memberof flyteidl.admin.WorkflowList - * @instance - */ - WorkflowList.prototype.workflows = $util.emptyArray; - - /** - * WorkflowList token. - * @member {string} token - * @memberof flyteidl.admin.WorkflowList - * @instance - */ - WorkflowList.prototype.token = ""; - - /** - * Creates a new WorkflowList instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {flyteidl.admin.IWorkflowList=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowList} WorkflowList instance - */ - WorkflowList.create = function create(properties) { - return new WorkflowList(properties); - }; - - /** - * Encodes the specified WorkflowList message. Does not implicitly {@link flyteidl.admin.WorkflowList.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {flyteidl.admin.IWorkflowList} message WorkflowList message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.workflows != null && message.workflows.length) - for (var i = 0; i < message.workflows.length; ++i) - $root.flyteidl.admin.Workflow.encode(message.workflows[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.token != null && message.hasOwnProperty("token")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.token); - return writer; - }; - - /** - * Decodes a WorkflowList message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowList} WorkflowList - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowList(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.workflows && message.workflows.length)) - message.workflows = []; - message.workflows.push($root.flyteidl.admin.Workflow.decode(reader, reader.uint32())); - break; - case 2: - message.token = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowList message. - * @function verify - * @memberof flyteidl.admin.WorkflowList - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.workflows != null && message.hasOwnProperty("workflows")) { - if (!Array.isArray(message.workflows)) - return "workflows: array expected"; - for (var i = 0; i < message.workflows.length; ++i) { - var error = $root.flyteidl.admin.Workflow.verify(message.workflows[i]); - if (error) - return "workflows." + error; - } - } - if (message.token != null && message.hasOwnProperty("token")) - if (!$util.isString(message.token)) - return "token: string expected"; - return null; - }; - - return WorkflowList; - })(); - - admin.WorkflowSpec = (function() { - - /** - * Properties of a WorkflowSpec. - * @memberof flyteidl.admin - * @interface IWorkflowSpec - * @property {flyteidl.core.IWorkflowTemplate|null} [template] WorkflowSpec template - * @property {Array.|null} [subWorkflows] WorkflowSpec subWorkflows - * @property {flyteidl.admin.IDescriptionEntity|null} [description] WorkflowSpec description - */ - - /** - * Constructs a new WorkflowSpec. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowSpec. - * @implements IWorkflowSpec - * @constructor - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set - */ - function WorkflowSpec(properties) { - this.subWorkflows = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowSpec template. - * @member {flyteidl.core.IWorkflowTemplate|null|undefined} template - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.template = null; - - /** - * WorkflowSpec subWorkflows. - * @member {Array.} subWorkflows - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.subWorkflows = $util.emptyArray; - - /** - * WorkflowSpec description. - * @member {flyteidl.admin.IDescriptionEntity|null|undefined} description - * @memberof flyteidl.admin.WorkflowSpec - * @instance - */ - WorkflowSpec.prototype.description = null; - - /** - * Creates a new WorkflowSpec instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {flyteidl.admin.IWorkflowSpec=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec instance - */ - WorkflowSpec.create = function create(properties) { - return new WorkflowSpec(properties); - }; - - /** - * Encodes the specified WorkflowSpec message. Does not implicitly {@link flyteidl.admin.WorkflowSpec.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {flyteidl.admin.IWorkflowSpec} message WorkflowSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.WorkflowTemplate.encode(message.template, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.subWorkflows != null && message.subWorkflows.length) - for (var i = 0; i < message.subWorkflows.length; ++i) - $root.flyteidl.core.WorkflowTemplate.encode(message.subWorkflows[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.description != null && message.hasOwnProperty("description")) - $root.flyteidl.admin.DescriptionEntity.encode(message.description, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowSpec message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowSpec} WorkflowSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.template = $root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32()); - break; - case 2: - if (!(message.subWorkflows && message.subWorkflows.length)) - message.subWorkflows = []; - message.subWorkflows.push($root.flyteidl.core.WorkflowTemplate.decode(reader, reader.uint32())); - break; - case 3: - message.description = $root.flyteidl.admin.DescriptionEntity.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowSpec message. - * @function verify - * @memberof flyteidl.admin.WorkflowSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.subWorkflows != null && message.hasOwnProperty("subWorkflows")) { - if (!Array.isArray(message.subWorkflows)) - return "subWorkflows: array expected"; - for (var i = 0; i < message.subWorkflows.length; ++i) { - var error = $root.flyteidl.core.WorkflowTemplate.verify(message.subWorkflows[i]); - if (error) - return "subWorkflows." + error; - } - } - if (message.description != null && message.hasOwnProperty("description")) { - var error = $root.flyteidl.admin.DescriptionEntity.verify(message.description); - if (error) - return "description." + error; - } - return null; - }; - - return WorkflowSpec; - })(); - - admin.WorkflowClosure = (function() { - - /** - * Properties of a WorkflowClosure. - * @memberof flyteidl.admin - * @interface IWorkflowClosure - * @property {flyteidl.core.ICompiledWorkflowClosure|null} [compiledWorkflow] WorkflowClosure compiledWorkflow - * @property {google.protobuf.ITimestamp|null} [createdAt] WorkflowClosure createdAt - */ - - /** - * Constructs a new WorkflowClosure. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowClosure. - * @implements IWorkflowClosure - * @constructor - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set - */ - function WorkflowClosure(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowClosure compiledWorkflow. - * @member {flyteidl.core.ICompiledWorkflowClosure|null|undefined} compiledWorkflow - * @memberof flyteidl.admin.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.compiledWorkflow = null; - - /** - * WorkflowClosure createdAt. - * @member {google.protobuf.ITimestamp|null|undefined} createdAt - * @memberof flyteidl.admin.WorkflowClosure - * @instance - */ - WorkflowClosure.prototype.createdAt = null; - - /** - * Creates a new WorkflowClosure instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {flyteidl.admin.IWorkflowClosure=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure instance - */ - WorkflowClosure.create = function create(properties) { - return new WorkflowClosure(properties); - }; - - /** - * Encodes the specified WorkflowClosure message. Does not implicitly {@link flyteidl.admin.WorkflowClosure.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {flyteidl.admin.IWorkflowClosure} message WorkflowClosure message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowClosure.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) - $root.flyteidl.core.CompiledWorkflowClosure.encode(message.compiledWorkflow, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.createdAt != null && message.hasOwnProperty("createdAt")) - $root.google.protobuf.Timestamp.encode(message.createdAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowClosure message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowClosure} WorkflowClosure - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowClosure.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowClosure(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.compiledWorkflow = $root.flyteidl.core.CompiledWorkflowClosure.decode(reader, reader.uint32()); - break; - case 2: - message.createdAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowClosure message. - * @function verify - * @memberof flyteidl.admin.WorkflowClosure - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowClosure.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.compiledWorkflow != null && message.hasOwnProperty("compiledWorkflow")) { - var error = $root.flyteidl.core.CompiledWorkflowClosure.verify(message.compiledWorkflow); - if (error) - return "compiledWorkflow." + error; - } - if (message.createdAt != null && message.hasOwnProperty("createdAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.createdAt); - if (error) - return "createdAt." + error; - } - return null; - }; - - 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 (var 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); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsDifferentStructure(); - while (reader.pos < end) { - var 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")) { - var 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 (var 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); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure(); - while (reader.pos < end) { - var 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")) { - var 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 (var 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 - var $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); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.CreateWorkflowFailureReason(); - while (reader.pos < end) { - var 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"; - var properties = {}; - if (message.existsDifferentStructure != null && message.hasOwnProperty("existsDifferentStructure")) { - properties.reason = 1; - { - var 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; - { - var error = $root.flyteidl.admin.WorkflowErrorExistsIdenticalStructure.verify(message.existsIdenticalStructure); - if (error) - return "existsIdenticalStructure." + error; - } - } - return null; - }; - - return CreateWorkflowFailureReason; - })(); - - admin.WorkflowAttributes = (function() { - - /** - * Properties of a WorkflowAttributes. - * @memberof flyteidl.admin - * @interface IWorkflowAttributes - * @property {string|null} [project] WorkflowAttributes project - * @property {string|null} [domain] WorkflowAttributes domain - * @property {string|null} [workflow] WorkflowAttributes workflow - * @property {flyteidl.admin.IMatchingAttributes|null} [matchingAttributes] WorkflowAttributes matchingAttributes - */ - - /** - * Constructs a new WorkflowAttributes. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributes. - * @implements IWorkflowAttributes - * @constructor - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set - */ - function WorkflowAttributes(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributes project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.project = ""; - - /** - * WorkflowAttributes domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.domain = ""; - - /** - * WorkflowAttributes workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.workflow = ""; - - /** - * WorkflowAttributes matchingAttributes. - * @member {flyteidl.admin.IMatchingAttributes|null|undefined} matchingAttributes - * @memberof flyteidl.admin.WorkflowAttributes - * @instance - */ - WorkflowAttributes.prototype.matchingAttributes = null; - - /** - * Creates a new WorkflowAttributes instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {flyteidl.admin.IWorkflowAttributes=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes instance - */ - WorkflowAttributes.create = function create(properties) { - return new WorkflowAttributes(properties); - }; - - /** - * Encodes the specified WorkflowAttributes message. Does not implicitly {@link flyteidl.admin.WorkflowAttributes.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {flyteidl.admin.IWorkflowAttributes} message WorkflowAttributes message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) - $root.flyteidl.admin.MatchingAttributes.encode(message.matchingAttributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowAttributes message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributes} WorkflowAttributes - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributes(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.matchingAttributes = $root.flyteidl.admin.MatchingAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributes message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributes - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.matchingAttributes != null && message.hasOwnProperty("matchingAttributes")) { - var error = $root.flyteidl.admin.MatchingAttributes.verify(message.matchingAttributes); - if (error) - return "matchingAttributes." + error; - } - return null; - }; - - return WorkflowAttributes; - })(); - - admin.WorkflowAttributesUpdateRequest = (function() { - - /** - * Properties of a WorkflowAttributesUpdateRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateRequest - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesUpdateRequest attributes - */ - - /** - * Constructs a new WorkflowAttributesUpdateRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateRequest. - * @implements IWorkflowAttributesUpdateRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set - */ - function WorkflowAttributesUpdateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesUpdateRequest attributes. - * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @instance - */ - WorkflowAttributesUpdateRequest.prototype.attributes = null; - - /** - * Creates a new WorkflowAttributesUpdateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest instance - */ - WorkflowAttributesUpdateRequest.create = function create(properties) { - return new WorkflowAttributesUpdateRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesUpdateRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} message WorkflowAttributesUpdateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesUpdateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesUpdateRequest} WorkflowAttributesUpdateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesUpdateRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return WorkflowAttributesUpdateRequest; - })(); - - admin.WorkflowAttributesUpdateResponse = (function() { - - /** - * Properties of a WorkflowAttributesUpdateResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesUpdateResponse - */ - - /** - * Constructs a new WorkflowAttributesUpdateResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesUpdateResponse. - * @implements IWorkflowAttributesUpdateResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set - */ - function WorkflowAttributesUpdateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowAttributesUpdateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse instance - */ - WorkflowAttributesUpdateResponse.create = function create(properties) { - return new WorkflowAttributesUpdateResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesUpdateResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesUpdateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesUpdateResponse} message WorkflowAttributesUpdateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesUpdateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesUpdateResponse} WorkflowAttributesUpdateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesUpdateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesUpdateResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesUpdateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowAttributesUpdateResponse; - })(); - - admin.WorkflowAttributesGetRequest = (function() { - - /** - * Properties of a WorkflowAttributesGetRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesGetRequest - * @property {string|null} [project] WorkflowAttributesGetRequest project - * @property {string|null} [domain] WorkflowAttributesGetRequest domain - * @property {string|null} [workflow] WorkflowAttributesGetRequest workflow - * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesGetRequest resourceType - */ - - /** - * Constructs a new WorkflowAttributesGetRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetRequest. - * @implements IWorkflowAttributesGetRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set - */ - function WorkflowAttributesGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesGetRequest project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.project = ""; - - /** - * WorkflowAttributesGetRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.domain = ""; - - /** - * WorkflowAttributesGetRequest workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.workflow = ""; - - /** - * WorkflowAttributesGetRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @instance - */ - WorkflowAttributesGetRequest.prototype.resourceType = 0; - - /** - * Creates a new WorkflowAttributesGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest instance - */ - WorkflowAttributesGetRequest.create = function create(properties) { - return new WorkflowAttributesGetRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesGetRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} message WorkflowAttributesGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a WorkflowAttributesGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesGetRequest} WorkflowAttributesGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesGetRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return WorkflowAttributesGetRequest; - })(); - - admin.WorkflowAttributesGetResponse = (function() { - - /** - * Properties of a WorkflowAttributesGetResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesGetResponse - * @property {flyteidl.admin.IWorkflowAttributes|null} [attributes] WorkflowAttributesGetResponse attributes - */ - - /** - * Constructs a new WorkflowAttributesGetResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesGetResponse. - * @implements IWorkflowAttributesGetResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set - */ - function WorkflowAttributesGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesGetResponse attributes. - * @member {flyteidl.admin.IWorkflowAttributes|null|undefined} attributes - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @instance - */ - WorkflowAttributesGetResponse.prototype.attributes = null; - - /** - * Creates a new WorkflowAttributesGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse instance - */ - WorkflowAttributesGetResponse.create = function create(properties) { - return new WorkflowAttributesGetResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesGetResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesGetResponse} message WorkflowAttributesGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.attributes != null && message.hasOwnProperty("attributes")) - $root.flyteidl.admin.WorkflowAttributes.encode(message.attributes, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesGetResponse} WorkflowAttributesGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.attributes = $root.flyteidl.admin.WorkflowAttributes.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesGetResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { - var error = $root.flyteidl.admin.WorkflowAttributes.verify(message.attributes); - if (error) - return "attributes." + error; - } - return null; - }; - - return WorkflowAttributesGetResponse; - })(); - - admin.WorkflowAttributesDeleteRequest = (function() { - - /** - * Properties of a WorkflowAttributesDeleteRequest. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesDeleteRequest - * @property {string|null} [project] WorkflowAttributesDeleteRequest project - * @property {string|null} [domain] WorkflowAttributesDeleteRequest domain - * @property {string|null} [workflow] WorkflowAttributesDeleteRequest workflow - * @property {flyteidl.admin.MatchableResource|null} [resourceType] WorkflowAttributesDeleteRequest resourceType - */ - - /** - * Constructs a new WorkflowAttributesDeleteRequest. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteRequest. - * @implements IWorkflowAttributesDeleteRequest - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set - */ - function WorkflowAttributesDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * WorkflowAttributesDeleteRequest project. - * @member {string} project - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.project = ""; - - /** - * WorkflowAttributesDeleteRequest domain. - * @member {string} domain - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.domain = ""; - - /** - * WorkflowAttributesDeleteRequest workflow. - * @member {string} workflow - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.workflow = ""; - - /** - * WorkflowAttributesDeleteRequest resourceType. - * @member {flyteidl.admin.MatchableResource} resourceType - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @instance - */ - WorkflowAttributesDeleteRequest.prototype.resourceType = 0; - - /** - * Creates a new WorkflowAttributesDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest instance - */ - WorkflowAttributesDeleteRequest.create = function create(properties) { - return new WorkflowAttributesDeleteRequest(properties); - }; - - /** - * Encodes the specified WorkflowAttributesDeleteRequest message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} message WorkflowAttributesDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.workflow != null && message.hasOwnProperty("workflow")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.workflow); - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.resourceType); - return writer; - }; - - /** - * Decodes a WorkflowAttributesDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesDeleteRequest} WorkflowAttributesDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.workflow = reader.string(); - break; - case 4: - message.resourceType = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesDeleteRequest message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.workflow != null && message.hasOwnProperty("workflow")) - if (!$util.isString(message.workflow)) - return "workflow: string expected"; - if (message.resourceType != null && message.hasOwnProperty("resourceType")) - switch (message.resourceType) { - default: - return "resourceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - return null; - }; - - return WorkflowAttributesDeleteRequest; - })(); - - admin.WorkflowAttributesDeleteResponse = (function() { - - /** - * Properties of a WorkflowAttributesDeleteResponse. - * @memberof flyteidl.admin - * @interface IWorkflowAttributesDeleteResponse - */ - - /** - * Constructs a new WorkflowAttributesDeleteResponse. - * @memberof flyteidl.admin - * @classdesc Represents a WorkflowAttributesDeleteResponse. - * @implements IWorkflowAttributesDeleteResponse - * @constructor - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set - */ - function WorkflowAttributesDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new WorkflowAttributesDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse instance - */ - WorkflowAttributesDeleteResponse.create = function create(properties) { - return new WorkflowAttributesDeleteResponse(properties); - }; - - /** - * Encodes the specified WorkflowAttributesDeleteResponse message. Does not implicitly {@link flyteidl.admin.WorkflowAttributesDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {flyteidl.admin.IWorkflowAttributesDeleteResponse} message WorkflowAttributesDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - WorkflowAttributesDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a WorkflowAttributesDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.admin.WorkflowAttributesDeleteResponse} WorkflowAttributesDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - WorkflowAttributesDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.admin.WorkflowAttributesDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a WorkflowAttributesDeleteResponse message. - * @function verify - * @memberof flyteidl.admin.WorkflowAttributesDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - WorkflowAttributesDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return WorkflowAttributesDeleteResponse; - })(); - - return admin; - })(); - - flyteidl.service = (function() { - - /** - * Namespace service. - * @memberof flyteidl - * @namespace - */ - var service = {}; - - service.AdminService = (function() { - - /** - * Constructs a new AdminService service. - * @memberof flyteidl.service - * @classdesc Represents an AdminService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AdminService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AdminService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AdminService; - - /** - * Creates new AdminService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AdminService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AdminService} RPC service. Useful where requests and/or responses are streamed. - */ - AdminService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTask}. - * @memberof flyteidl.service.AdminService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskCreateResponse} [response] TaskCreateResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.admin.TaskCreateRequest, $root.flyteidl.admin.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTask}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Task} [response] Task - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskCallback} callback Node-style callback called with the error, if any, and Task - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Task, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListTaskIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListTaskIds. - * @function listTaskIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTaskIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTaskIds = function listTaskIds(request, callback) { - return this.rpcCall(listTaskIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListTaskIds" }); - - /** - * Calls ListTaskIds. - * @function listTaskIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTasks}. - * @memberof flyteidl.service.AdminService - * @typedef ListTasksCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskList} [response] TaskList - */ - - /** - * Calls ListTasks. - * @function listTasks - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTasksCallback} callback Node-style callback called with the error, if any, and TaskList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTasks = function listTasks(request, callback) { - return this.rpcCall(listTasks, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.TaskList, request, callback); - }, "name", { value: "ListTasks" }); - - /** - * Calls ListTasks. - * @function listTasks - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflow}. - * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowCreateResponse} [response] WorkflowCreateResponse - */ - - /** - * Calls CreateWorkflow. - * @function createWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateWorkflowCallback} callback Node-style callback called with the error, if any, and WorkflowCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createWorkflow = function createWorkflow(request, callback) { - return this.rpcCall(createWorkflow, $root.flyteidl.admin.WorkflowCreateRequest, $root.flyteidl.admin.WorkflowCreateResponse, request, callback); - }, "name", { value: "CreateWorkflow" }); - - /** - * Calls CreateWorkflow. - * @function createWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowCreateRequest} request WorkflowCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflow}. - * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Workflow} [response] Workflow - */ - - /** - * Calls GetWorkflow. - * @function getWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetWorkflowCallback} callback Node-style callback called with the error, if any, and Workflow - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getWorkflow = function getWorkflow(request, callback) { - return this.rpcCall(getWorkflow, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.Workflow, request, callback); - }, "name", { value: "GetWorkflow" }); - - /** - * Calls GetWorkflow. - * @function getWorkflow - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflowIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListWorkflowIds. - * @function listWorkflowIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListWorkflowIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listWorkflowIds = function listWorkflowIds(request, callback) { - return this.rpcCall(listWorkflowIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListWorkflowIds" }); - - /** - * Calls ListWorkflowIds. - * @function listWorkflowIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listWorkflows}. - * @memberof flyteidl.service.AdminService - * @typedef ListWorkflowsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowList} [response] WorkflowList - */ - - /** - * Calls ListWorkflows. - * @function listWorkflows - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListWorkflowsCallback} callback Node-style callback called with the error, if any, and WorkflowList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listWorkflows = function listWorkflows(request, callback) { - return this.rpcCall(listWorkflows, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.WorkflowList, request, callback); - }, "name", { value: "ListWorkflows" }); - - /** - * Calls ListWorkflows. - * @function listWorkflows - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef CreateLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanCreateResponse} [response] LaunchPlanCreateResponse - */ - - /** - * Calls CreateLaunchPlan. - * @function createLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createLaunchPlan = function createLaunchPlan(request, callback) { - return this.rpcCall(createLaunchPlan, $root.flyteidl.admin.LaunchPlanCreateRequest, $root.flyteidl.admin.LaunchPlanCreateResponse, request, callback); - }, "name", { value: "CreateLaunchPlan" }); - - /** - * Calls CreateLaunchPlan. - * @function createLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanCreateRequest} request LaunchPlanCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef GetLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan - */ - - /** - * Calls GetLaunchPlan. - * @function getLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getLaunchPlan = function getLaunchPlan(request, callback) { - return this.rpcCall(getLaunchPlan, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetLaunchPlan" }); - - /** - * Calls GetLaunchPlan. - * @function getLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getActiveLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef GetActiveLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlan} [response] LaunchPlan - */ - - /** - * Calls GetActiveLaunchPlan. - * @function getActiveLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object - * @param {flyteidl.service.AdminService.GetActiveLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlan - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getActiveLaunchPlan = function getActiveLaunchPlan(request, callback) { - return this.rpcCall(getActiveLaunchPlan, $root.flyteidl.admin.ActiveLaunchPlanRequest, $root.flyteidl.admin.LaunchPlan, request, callback); - }, "name", { value: "GetActiveLaunchPlan" }); - - /** - * Calls GetActiveLaunchPlan. - * @function getActiveLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanRequest} request ActiveLaunchPlanRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listActiveLaunchPlans}. - * @memberof flyteidl.service.AdminService - * @typedef ListActiveLaunchPlansCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList - */ - - /** - * Calls ListActiveLaunchPlans. - * @function listActiveLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object - * @param {flyteidl.service.AdminService.ListActiveLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listActiveLaunchPlans = function listActiveLaunchPlans(request, callback) { - return this.rpcCall(listActiveLaunchPlans, $root.flyteidl.admin.ActiveLaunchPlanListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListActiveLaunchPlans" }); - - /** - * Calls ListActiveLaunchPlans. - * @function listActiveLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IActiveLaunchPlanListRequest} request ActiveLaunchPlanListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlanIds}. - * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlanIdsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityIdentifierList} [response] NamedEntityIdentifierList - */ - - /** - * Calls ListLaunchPlanIds. - * @function listLaunchPlanIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @param {flyteidl.service.AdminService.ListLaunchPlanIdsCallback} callback Node-style callback called with the error, if any, and NamedEntityIdentifierList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listLaunchPlanIds = function listLaunchPlanIds(request, callback) { - return this.rpcCall(listLaunchPlanIds, $root.flyteidl.admin.NamedEntityIdentifierListRequest, $root.flyteidl.admin.NamedEntityIdentifierList, request, callback); - }, "name", { value: "ListLaunchPlanIds" }); - - /** - * Calls ListLaunchPlanIds. - * @function listLaunchPlanIds - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityIdentifierListRequest} request NamedEntityIdentifierListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listLaunchPlans}. - * @memberof flyteidl.service.AdminService - * @typedef ListLaunchPlansCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanList} [response] LaunchPlanList - */ - - /** - * Calls ListLaunchPlans. - * @function listLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListLaunchPlansCallback} callback Node-style callback called with the error, if any, and LaunchPlanList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listLaunchPlans = function listLaunchPlans(request, callback) { - return this.rpcCall(listLaunchPlans, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.LaunchPlanList, request, callback); - }, "name", { value: "ListLaunchPlans" }); - - /** - * Calls ListLaunchPlans. - * @function listLaunchPlans - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateLaunchPlan}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateLaunchPlanCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.LaunchPlanUpdateResponse} [response] LaunchPlanUpdateResponse - */ - - /** - * Calls UpdateLaunchPlan. - * @function updateLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateLaunchPlanCallback} callback Node-style callback called with the error, if any, and LaunchPlanUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateLaunchPlan = function updateLaunchPlan(request, callback) { - return this.rpcCall(updateLaunchPlan, $root.flyteidl.admin.LaunchPlanUpdateRequest, $root.flyteidl.admin.LaunchPlanUpdateResponse, request, callback); - }, "name", { value: "UpdateLaunchPlan" }); - - /** - * Calls UpdateLaunchPlan. - * @function updateLaunchPlan - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ILaunchPlanUpdateRequest} request LaunchPlanUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createExecution}. - * @memberof flyteidl.service.AdminService - * @typedef CreateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object - * @param {flyteidl.service.AdminService.CreateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createExecution = function createExecution(request, callback) { - return this.rpcCall(createExecution, $root.flyteidl.admin.ExecutionCreateRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "CreateExecution" }); - - /** - * Calls CreateExecution. - * @function createExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionCreateRequest} request ExecutionCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#relaunchExecution}. - * @memberof flyteidl.service.AdminService - * @typedef RelaunchExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls RelaunchExecution. - * @function relaunchExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object - * @param {flyteidl.service.AdminService.RelaunchExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.relaunchExecution = function relaunchExecution(request, callback) { - return this.rpcCall(relaunchExecution, $root.flyteidl.admin.ExecutionRelaunchRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RelaunchExecution" }); - - /** - * Calls RelaunchExecution. - * @function relaunchExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRelaunchRequest} request ExecutionRelaunchRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#recoverExecution}. - * @memberof flyteidl.service.AdminService - * @typedef RecoverExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionCreateResponse} [response] ExecutionCreateResponse - */ - - /** - * Calls RecoverExecution. - * @function recoverExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object - * @param {flyteidl.service.AdminService.RecoverExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.recoverExecution = function recoverExecution(request, callback) { - return this.rpcCall(recoverExecution, $root.flyteidl.admin.ExecutionRecoverRequest, $root.flyteidl.admin.ExecutionCreateResponse, request, callback); - }, "name", { value: "RecoverExecution" }); - - /** - * Calls RecoverExecution. - * @function recoverExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionRecoverRequest} request ExecutionRecoverRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Execution} [response] Execution - */ - - /** - * Calls GetExecution. - * @function getExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionCallback} callback Node-style callback called with the error, if any, and Execution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecution = function getExecution(request, callback) { - return this.rpcCall(getExecution, $root.flyteidl.admin.WorkflowExecutionGetRequest, $root.flyteidl.admin.Execution, request, callback); - }, "name", { value: "GetExecution" }); - - /** - * Calls GetExecution. - * @function getExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetRequest} request WorkflowExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateExecution}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionUpdateResponse} [response] ExecutionUpdateResponse - */ - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateExecution = function updateExecution(request, callback) { - return this.rpcCall(updateExecution, $root.flyteidl.admin.ExecutionUpdateRequest, $root.flyteidl.admin.ExecutionUpdateResponse, request, callback); - }, "name", { value: "UpdateExecution" }); - - /** - * Calls UpdateExecution. - * @function updateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionUpdateRequest} request ExecutionUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionGetDataResponse} [response] WorkflowExecutionGetDataResponse - */ - - /** - * Calls GetExecutionData. - * @function getExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionDataCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecutionData = function getExecutionData(request, callback) { - return this.rpcCall(getExecutionData, $root.flyteidl.admin.WorkflowExecutionGetDataRequest, $root.flyteidl.admin.WorkflowExecutionGetDataResponse, request, callback); - }, "name", { value: "GetExecutionData" }); - - /** - * Calls GetExecutionData. - * @function getExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetDataRequest} request WorkflowExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionList} [response] ExecutionList - */ - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @param {flyteidl.service.AdminService.ListExecutionsCallback} callback Node-style callback called with the error, if any, and ExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listExecutions = function listExecutions(request, callback) { - return this.rpcCall(listExecutions, $root.flyteidl.admin.ResourceListRequest, $root.flyteidl.admin.ExecutionList, request, callback); - }, "name", { value: "ListExecutions" }); - - /** - * Calls ListExecutions. - * @function listExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IResourceListRequest} request ResourceListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#terminateExecution}. - * @memberof flyteidl.service.AdminService - * @typedef TerminateExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ExecutionTerminateResponse} [response] ExecutionTerminateResponse - */ - - /** - * Calls TerminateExecution. - * @function terminateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object - * @param {flyteidl.service.AdminService.TerminateExecutionCallback} callback Node-style callback called with the error, if any, and ExecutionTerminateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.terminateExecution = function terminateExecution(request, callback) { - return this.rpcCall(terminateExecution, $root.flyteidl.admin.ExecutionTerminateRequest, $root.flyteidl.admin.ExecutionTerminateResponse, request, callback); - }, "name", { value: "TerminateExecution" }); - - /** - * Calls TerminateExecution. - * @function terminateExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IExecutionTerminateRequest} request ExecutionTerminateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecution} [response] NodeExecution - */ - - /** - * Calls GetNodeExecution. - * @function getNodeExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetNodeExecutionCallback} callback Node-style callback called with the error, if any, and NodeExecution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNodeExecution = function getNodeExecution(request, callback) { - return this.rpcCall(getNodeExecution, $root.flyteidl.admin.NodeExecutionGetRequest, $root.flyteidl.admin.NodeExecution, request, callback); - }, "name", { value: "GetNodeExecution" }); - - /** - * Calls GetNodeExecution. - * @function getNodeExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetRequest} request NodeExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList - */ - - /** - * Calls ListNodeExecutions. - * @function listNodeExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNodeExecutionsCallback} callback Node-style callback called with the error, if any, and NodeExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNodeExecutions = function listNodeExecutions(request, callback) { - return this.rpcCall(listNodeExecutions, $root.flyteidl.admin.NodeExecutionListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutions" }); - - /** - * Calls ListNodeExecutions. - * @function listNodeExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionListRequest} request NodeExecutionListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNodeExecutionsForTask}. - * @memberof flyteidl.service.AdminService - * @typedef ListNodeExecutionsForTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionList} [response] NodeExecutionList - */ - - /** - * Calls ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNodeExecutionsForTaskCallback} callback Node-style callback called with the error, if any, and NodeExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNodeExecutionsForTask = function listNodeExecutionsForTask(request, callback) { - return this.rpcCall(listNodeExecutionsForTask, $root.flyteidl.admin.NodeExecutionForTaskListRequest, $root.flyteidl.admin.NodeExecutionList, request, callback); - }, "name", { value: "ListNodeExecutionsForTask" }); - - /** - * Calls ListNodeExecutionsForTask. - * @function listNodeExecutionsForTask - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionForTaskListRequest} request NodeExecutionForTaskListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNodeExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetNodeExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionGetDataResponse} [response] NodeExecutionGetDataResponse - */ - - /** - * Calls GetNodeExecutionData. - * @function getNodeExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetNodeExecutionDataCallback} callback Node-style callback called with the error, if any, and NodeExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNodeExecutionData = function getNodeExecutionData(request, callback) { - return this.rpcCall(getNodeExecutionData, $root.flyteidl.admin.NodeExecutionGetDataRequest, $root.flyteidl.admin.NodeExecutionGetDataResponse, request, callback); - }, "name", { value: "GetNodeExecutionData" }); - - /** - * Calls GetNodeExecutionData. - * @function getNodeExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionGetDataRequest} request NodeExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#registerProject}. - * @memberof flyteidl.service.AdminService - * @typedef RegisterProjectCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectRegisterResponse} [response] ProjectRegisterResponse - */ - - /** - * Calls RegisterProject. - * @function registerProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object - * @param {flyteidl.service.AdminService.RegisterProjectCallback} callback Node-style callback called with the error, if any, and ProjectRegisterResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.registerProject = function registerProject(request, callback) { - return this.rpcCall(registerProject, $root.flyteidl.admin.ProjectRegisterRequest, $root.flyteidl.admin.ProjectRegisterResponse, request, callback); - }, "name", { value: "RegisterProject" }); - - /** - * Calls RegisterProject. - * @function registerProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectRegisterRequest} request ProjectRegisterRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProject}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectUpdateResponse} [response] ProjectUpdateResponse - */ - - /** - * Calls UpdateProject. - * @function updateProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProject} request Project message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectCallback} callback Node-style callback called with the error, if any, and ProjectUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProject = function updateProject(request, callback) { - return this.rpcCall(updateProject, $root.flyteidl.admin.Project, $root.flyteidl.admin.ProjectUpdateResponse, request, callback); - }, "name", { value: "UpdateProject" }); - - /** - * Calls UpdateProject. - * @function updateProject - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProject} request Project message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listProjects}. - * @memberof flyteidl.service.AdminService - * @typedef ListProjectsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Projects} [response] Projects - */ - - /** - * Calls ListProjects. - * @function listProjects - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object - * @param {flyteidl.service.AdminService.ListProjectsCallback} callback Node-style callback called with the error, if any, and Projects - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listProjects = function listProjects(request, callback) { - return this.rpcCall(listProjects, $root.flyteidl.admin.ProjectListRequest, $root.flyteidl.admin.Projects, request, callback); - }, "name", { value: "ListProjects" }); - - /** - * Calls ListProjects. - * @function listProjects - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectListRequest} request ProjectListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createWorkflowEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateWorkflowEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionEventResponse} [response] WorkflowExecutionEventResponse - */ - - /** - * Calls CreateWorkflowEvent. - * @function createWorkflowEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateWorkflowEventCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createWorkflowEvent = function createWorkflowEvent(request, callback) { - return this.rpcCall(createWorkflowEvent, $root.flyteidl.admin.WorkflowExecutionEventRequest, $root.flyteidl.admin.WorkflowExecutionEventResponse, request, callback); - }, "name", { value: "CreateWorkflowEvent" }); - - /** - * Calls CreateWorkflowEvent. - * @function createWorkflowEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionEventRequest} request WorkflowExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createNodeEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateNodeEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NodeExecutionEventResponse} [response] NodeExecutionEventResponse - */ - - /** - * Calls CreateNodeEvent. - * @function createNodeEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateNodeEventCallback} callback Node-style callback called with the error, if any, and NodeExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createNodeEvent = function createNodeEvent(request, callback) { - return this.rpcCall(createNodeEvent, $root.flyteidl.admin.NodeExecutionEventRequest, $root.flyteidl.admin.NodeExecutionEventResponse, request, callback); - }, "name", { value: "CreateNodeEvent" }); - - /** - * Calls CreateNodeEvent. - * @function createNodeEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INodeExecutionEventRequest} request NodeExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#createTaskEvent}. - * @memberof flyteidl.service.AdminService - * @typedef CreateTaskEventCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionEventResponse} [response] TaskExecutionEventResponse - */ - - /** - * Calls CreateTaskEvent. - * @function createTaskEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object - * @param {flyteidl.service.AdminService.CreateTaskEventCallback} callback Node-style callback called with the error, if any, and TaskExecutionEventResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.createTaskEvent = function createTaskEvent(request, callback) { - return this.rpcCall(createTaskEvent, $root.flyteidl.admin.TaskExecutionEventRequest, $root.flyteidl.admin.TaskExecutionEventResponse, request, callback); - }, "name", { value: "CreateTaskEvent" }); - - /** - * Calls CreateTaskEvent. - * @function createTaskEvent - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionEventRequest} request TaskExecutionEventRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecution}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecution} [response] TaskExecution - */ - - /** - * Calls GetTaskExecution. - * @function getTaskExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskExecutionCallback} callback Node-style callback called with the error, if any, and TaskExecution - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTaskExecution = function getTaskExecution(request, callback) { - return this.rpcCall(getTaskExecution, $root.flyteidl.admin.TaskExecutionGetRequest, $root.flyteidl.admin.TaskExecution, request, callback); - }, "name", { value: "GetTaskExecution" }); - - /** - * Calls GetTaskExecution. - * @function getTaskExecution - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetRequest} request TaskExecutionGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listTaskExecutions}. - * @memberof flyteidl.service.AdminService - * @typedef ListTaskExecutionsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionList} [response] TaskExecutionList - */ - - /** - * Calls ListTaskExecutions. - * @function listTaskExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object - * @param {flyteidl.service.AdminService.ListTaskExecutionsCallback} callback Node-style callback called with the error, if any, and TaskExecutionList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listTaskExecutions = function listTaskExecutions(request, callback) { - return this.rpcCall(listTaskExecutions, $root.flyteidl.admin.TaskExecutionListRequest, $root.flyteidl.admin.TaskExecutionList, request, callback); - }, "name", { value: "ListTaskExecutions" }); - - /** - * Calls ListTaskExecutions. - * @function listTaskExecutions - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionListRequest} request TaskExecutionListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getTaskExecutionData}. - * @memberof flyteidl.service.AdminService - * @typedef GetTaskExecutionDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.TaskExecutionGetDataResponse} [response] TaskExecutionGetDataResponse - */ - - /** - * Calls GetTaskExecutionData. - * @function getTaskExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object - * @param {flyteidl.service.AdminService.GetTaskExecutionDataCallback} callback Node-style callback called with the error, if any, and TaskExecutionGetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getTaskExecutionData = function getTaskExecutionData(request, callback) { - return this.rpcCall(getTaskExecutionData, $root.flyteidl.admin.TaskExecutionGetDataRequest, $root.flyteidl.admin.TaskExecutionGetDataResponse, request, callback); - }, "name", { value: "GetTaskExecutionData" }); - - /** - * Calls GetTaskExecutionData. - * @function getTaskExecutionData - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.ITaskExecutionGetDataRequest} request TaskExecutionGetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesUpdateResponse} [response] ProjectDomainAttributesUpdateResponse - */ - - /** - * Calls UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProjectDomainAttributes = function updateProjectDomainAttributes(request, callback) { - return this.rpcCall(updateProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesUpdateRequest, $root.flyteidl.admin.ProjectDomainAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectDomainAttributes" }); - - /** - * Calls UpdateProjectDomainAttributes. - * @function updateProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesUpdateRequest} request ProjectDomainAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesGetResponse} [response] ProjectDomainAttributesGetResponse - */ - - /** - * Calls GetProjectDomainAttributes. - * @function getProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getProjectDomainAttributes = function getProjectDomainAttributes(request, callback) { - return this.rpcCall(getProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesGetRequest, $root.flyteidl.admin.ProjectDomainAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectDomainAttributes" }); - - /** - * Calls GetProjectDomainAttributes. - * @function getProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesGetRequest} request ProjectDomainAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectDomainAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectDomainAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectDomainAttributesDeleteResponse} [response] ProjectDomainAttributesDeleteResponse - */ - - /** - * Calls DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteProjectDomainAttributesCallback} callback Node-style callback called with the error, if any, and ProjectDomainAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteProjectDomainAttributes = function deleteProjectDomainAttributes(request, callback) { - return this.rpcCall(deleteProjectDomainAttributes, $root.flyteidl.admin.ProjectDomainAttributesDeleteRequest, $root.flyteidl.admin.ProjectDomainAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectDomainAttributes" }); - - /** - * Calls DeleteProjectDomainAttributes. - * @function deleteProjectDomainAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectDomainAttributesDeleteRequest} request ProjectDomainAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesUpdateResponse} [response] ProjectAttributesUpdateResponse - */ - - /** - * Calls UpdateProjectAttributes. - * @function updateProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateProjectAttributes = function updateProjectAttributes(request, callback) { - return this.rpcCall(updateProjectAttributes, $root.flyteidl.admin.ProjectAttributesUpdateRequest, $root.flyteidl.admin.ProjectAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateProjectAttributes" }); - - /** - * Calls UpdateProjectAttributes. - * @function updateProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesUpdateRequest} request ProjectAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesGetResponse} [response] ProjectAttributesGetResponse - */ - - /** - * Calls GetProjectAttributes. - * @function getProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getProjectAttributes = function getProjectAttributes(request, callback) { - return this.rpcCall(getProjectAttributes, $root.flyteidl.admin.ProjectAttributesGetRequest, $root.flyteidl.admin.ProjectAttributesGetResponse, request, callback); - }, "name", { value: "GetProjectAttributes" }); - - /** - * Calls GetProjectAttributes. - * @function getProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesGetRequest} request ProjectAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteProjectAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteProjectAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ProjectAttributesDeleteResponse} [response] ProjectAttributesDeleteResponse - */ - - /** - * Calls DeleteProjectAttributes. - * @function deleteProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteProjectAttributesCallback} callback Node-style callback called with the error, if any, and ProjectAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteProjectAttributes = function deleteProjectAttributes(request, callback) { - return this.rpcCall(deleteProjectAttributes, $root.flyteidl.admin.ProjectAttributesDeleteRequest, $root.flyteidl.admin.ProjectAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteProjectAttributes" }); - - /** - * Calls DeleteProjectAttributes. - * @function deleteProjectAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IProjectAttributesDeleteRequest} request ProjectAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesUpdateResponse} [response] WorkflowAttributesUpdateResponse - */ - - /** - * Calls UpdateWorkflowAttributes. - * @function updateWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateWorkflowAttributes = function updateWorkflowAttributes(request, callback) { - return this.rpcCall(updateWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesUpdateRequest, $root.flyteidl.admin.WorkflowAttributesUpdateResponse, request, callback); - }, "name", { value: "UpdateWorkflowAttributes" }); - - /** - * Calls UpdateWorkflowAttributes. - * @function updateWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesUpdateRequest} request WorkflowAttributesUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef GetWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesGetResponse} [response] WorkflowAttributesGetResponse - */ - - /** - * Calls GetWorkflowAttributes. - * @function getWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getWorkflowAttributes = function getWorkflowAttributes(request, callback) { - return this.rpcCall(getWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesGetRequest, $root.flyteidl.admin.WorkflowAttributesGetResponse, request, callback); - }, "name", { value: "GetWorkflowAttributes" }); - - /** - * Calls GetWorkflowAttributes. - * @function getWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesGetRequest} request WorkflowAttributesGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#deleteWorkflowAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef DeleteWorkflowAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowAttributesDeleteResponse} [response] WorkflowAttributesDeleteResponse - */ - - /** - * Calls DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object - * @param {flyteidl.service.AdminService.DeleteWorkflowAttributesCallback} callback Node-style callback called with the error, if any, and WorkflowAttributesDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.deleteWorkflowAttributes = function deleteWorkflowAttributes(request, callback) { - return this.rpcCall(deleteWorkflowAttributes, $root.flyteidl.admin.WorkflowAttributesDeleteRequest, $root.flyteidl.admin.WorkflowAttributesDeleteResponse, request, callback); - }, "name", { value: "DeleteWorkflowAttributes" }); - - /** - * Calls DeleteWorkflowAttributes. - * @function deleteWorkflowAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowAttributesDeleteRequest} request WorkflowAttributesDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listMatchableAttributes}. - * @memberof flyteidl.service.AdminService - * @typedef ListMatchableAttributesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ListMatchableAttributesResponse} [response] ListMatchableAttributesResponse - */ - - /** - * Calls ListMatchableAttributes. - * @function listMatchableAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object - * @param {flyteidl.service.AdminService.ListMatchableAttributesCallback} callback Node-style callback called with the error, if any, and ListMatchableAttributesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listMatchableAttributes = function listMatchableAttributes(request, callback) { - return this.rpcCall(listMatchableAttributes, $root.flyteidl.admin.ListMatchableAttributesRequest, $root.flyteidl.admin.ListMatchableAttributesResponse, request, callback); - }, "name", { value: "ListMatchableAttributes" }); - - /** - * Calls ListMatchableAttributes. - * @function listMatchableAttributes - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IListMatchableAttributesRequest} request ListMatchableAttributesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listNamedEntities}. - * @memberof flyteidl.service.AdminService - * @typedef ListNamedEntitiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityList} [response] NamedEntityList - */ - - /** - * Calls ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object - * @param {flyteidl.service.AdminService.ListNamedEntitiesCallback} callback Node-style callback called with the error, if any, and NamedEntityList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listNamedEntities = function listNamedEntities(request, callback) { - return this.rpcCall(listNamedEntities, $root.flyteidl.admin.NamedEntityListRequest, $root.flyteidl.admin.NamedEntityList, request, callback); - }, "name", { value: "ListNamedEntities" }); - - /** - * Calls ListNamedEntities. - * @function listNamedEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityListRequest} request NamedEntityListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef GetNamedEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntity} [response] NamedEntity - */ - - /** - * Calls GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntity - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getNamedEntity = function getNamedEntity(request, callback) { - return this.rpcCall(getNamedEntity, $root.flyteidl.admin.NamedEntityGetRequest, $root.flyteidl.admin.NamedEntity, request, callback); - }, "name", { value: "GetNamedEntity" }); - - /** - * Calls GetNamedEntity. - * @function getNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityGetRequest} request NamedEntityGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#updateNamedEntity}. - * @memberof flyteidl.service.AdminService - * @typedef UpdateNamedEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.NamedEntityUpdateResponse} [response] NamedEntityUpdateResponse - */ - - /** - * Calls UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object - * @param {flyteidl.service.AdminService.UpdateNamedEntityCallback} callback Node-style callback called with the error, if any, and NamedEntityUpdateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.updateNamedEntity = function updateNamedEntity(request, callback) { - return this.rpcCall(updateNamedEntity, $root.flyteidl.admin.NamedEntityUpdateRequest, $root.flyteidl.admin.NamedEntityUpdateResponse, request, callback); - }, "name", { value: "UpdateNamedEntity" }); - - /** - * Calls UpdateNamedEntity. - * @function updateNamedEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.INamedEntityUpdateRequest} request NamedEntityUpdateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getVersion}. - * @memberof flyteidl.service.AdminService - * @typedef GetVersionCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetVersionResponse} [response] GetVersionResponse - */ - - /** - * Calls GetVersion. - * @function getVersion - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object - * @param {flyteidl.service.AdminService.GetVersionCallback} callback Node-style callback called with the error, if any, and GetVersionResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getVersion = function getVersion(request, callback) { - return this.rpcCall(getVersion, $root.flyteidl.admin.GetVersionRequest, $root.flyteidl.admin.GetVersionResponse, request, callback); - }, "name", { value: "GetVersion" }); - - /** - * Calls GetVersion. - * @function getVersion - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IGetVersionRequest} request GetVersionRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getDescriptionEntity}. - * @memberof flyteidl.service.AdminService - * @typedef GetDescriptionEntityCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DescriptionEntity} [response] DescriptionEntity - */ - - /** - * Calls GetDescriptionEntity. - * @function getDescriptionEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @param {flyteidl.service.AdminService.GetDescriptionEntityCallback} callback Node-style callback called with the error, if any, and DescriptionEntity - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getDescriptionEntity = function getDescriptionEntity(request, callback) { - return this.rpcCall(getDescriptionEntity, $root.flyteidl.admin.ObjectGetRequest, $root.flyteidl.admin.DescriptionEntity, request, callback); - }, "name", { value: "GetDescriptionEntity" }); - - /** - * Calls GetDescriptionEntity. - * @function getDescriptionEntity - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IObjectGetRequest} request ObjectGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#listDescriptionEntities}. - * @memberof flyteidl.service.AdminService - * @typedef ListDescriptionEntitiesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DescriptionEntityList} [response] DescriptionEntityList - */ - - /** - * Calls ListDescriptionEntities. - * @function listDescriptionEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object - * @param {flyteidl.service.AdminService.ListDescriptionEntitiesCallback} callback Node-style callback called with the error, if any, and DescriptionEntityList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.listDescriptionEntities = function listDescriptionEntities(request, callback) { - return this.rpcCall(listDescriptionEntities, $root.flyteidl.admin.DescriptionEntityListRequest, $root.flyteidl.admin.DescriptionEntityList, request, callback); - }, "name", { value: "ListDescriptionEntities" }); - - /** - * Calls ListDescriptionEntities. - * @function listDescriptionEntities - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IDescriptionEntityListRequest} request DescriptionEntityListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AdminService#getExecutionMetrics}. - * @memberof flyteidl.service.AdminService - * @typedef GetExecutionMetricsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.WorkflowExecutionGetMetricsResponse} [response] WorkflowExecutionGetMetricsResponse - */ - - /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object - * @param {flyteidl.service.AdminService.GetExecutionMetricsCallback} callback Node-style callback called with the error, if any, and WorkflowExecutionGetMetricsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AdminService.prototype.getExecutionMetrics = function getExecutionMetrics(request, callback) { - return this.rpcCall(getExecutionMetrics, $root.flyteidl.admin.WorkflowExecutionGetMetricsRequest, $root.flyteidl.admin.WorkflowExecutionGetMetricsResponse, request, callback); - }, "name", { value: "GetExecutionMetrics" }); - - /** - * Calls GetExecutionMetrics. - * @function getExecutionMetrics - * @memberof flyteidl.service.AdminService - * @instance - * @param {flyteidl.admin.IWorkflowExecutionGetMetricsRequest} request WorkflowExecutionGetMetricsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AdminService; - })(); - - service.AsyncAgentService = (function() { - - /** - * Constructs a new AsyncAgentService service. - * @memberof flyteidl.service - * @classdesc Represents an AsyncAgentService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AsyncAgentService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AsyncAgentService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AsyncAgentService; - - /** - * Creates new AsyncAgentService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AsyncAgentService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AsyncAgentService} RPC service. Useful where requests and/or responses are streamed. - */ - AsyncAgentService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#createTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.CreateTaskResponse} [response] CreateTaskResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.CreateTaskCallback} callback Node-style callback called with the error, if any, and CreateTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.admin.CreateTaskRequest, $root.flyteidl.admin.CreateTaskResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.ICreateTaskRequest} request CreateTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#getTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetTaskResponse} [response] GetTaskResponse - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.GetTaskCallback} callback Node-style callback called with the error, if any, and GetTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.admin.GetTaskRequest, $root.flyteidl.admin.GetTaskResponse, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IGetTaskRequest} request GetTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AsyncAgentService#deleteTask}. - * @memberof flyteidl.service.AsyncAgentService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.DeleteTaskResponse} [response] DeleteTaskResponse - */ - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object - * @param {flyteidl.service.AsyncAgentService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and DeleteTaskResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AsyncAgentService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.admin.DeleteTaskRequest, $root.flyteidl.admin.DeleteTaskResponse, request, callback); - }, "name", { value: "DeleteTask" }); - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.AsyncAgentService - * @instance - * @param {flyteidl.admin.IDeleteTaskRequest} request DeleteTaskRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AsyncAgentService; - })(); - - service.AgentMetadataService = (function() { - - /** - * Constructs a new AgentMetadataService service. - * @memberof flyteidl.service - * @classdesc Represents an AgentMetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AgentMetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AgentMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AgentMetadataService; - - /** - * Creates new AgentMetadataService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AgentMetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AgentMetadataService} RPC service. Useful where requests and/or responses are streamed. - */ - AgentMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#getAgent}. - * @memberof flyteidl.service.AgentMetadataService - * @typedef GetAgentCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.GetAgentResponse} [response] GetAgentResponse - */ - - /** - * Calls GetAgent. - * @function getAgent - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object - * @param {flyteidl.service.AgentMetadataService.GetAgentCallback} callback Node-style callback called with the error, if any, and GetAgentResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AgentMetadataService.prototype.getAgent = function getAgent(request, callback) { - return this.rpcCall(getAgent, $root.flyteidl.admin.GetAgentRequest, $root.flyteidl.admin.GetAgentResponse, request, callback); - }, "name", { value: "GetAgent" }); - - /** - * Calls GetAgent. - * @function getAgent - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IGetAgentRequest} request GetAgentRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AgentMetadataService#listAgents}. - * @memberof flyteidl.service.AgentMetadataService - * @typedef ListAgentsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.ListAgentsResponse} [response] ListAgentsResponse - */ - - /** - * Calls ListAgents. - * @function listAgents - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object - * @param {flyteidl.service.AgentMetadataService.ListAgentsCallback} callback Node-style callback called with the error, if any, and ListAgentsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AgentMetadataService.prototype.listAgents = function listAgents(request, callback) { - return this.rpcCall(listAgents, $root.flyteidl.admin.ListAgentsRequest, $root.flyteidl.admin.ListAgentsResponse, request, callback); - }, "name", { value: "ListAgents" }); - - /** - * Calls ListAgents. - * @function listAgents - * @memberof flyteidl.service.AgentMetadataService - * @instance - * @param {flyteidl.admin.IListAgentsRequest} request ListAgentsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AgentMetadataService; - })(); - - service.OAuth2MetadataRequest = (function() { - - /** - * Properties of a OAuth2MetadataRequest. - * @memberof flyteidl.service - * @interface IOAuth2MetadataRequest - */ - - /** - * Constructs a new OAuth2MetadataRequest. - * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataRequest. - * @implements IOAuth2MetadataRequest - * @constructor - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - */ - function OAuth2MetadataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new OAuth2MetadataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {flyteidl.service.IOAuth2MetadataRequest=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest instance - */ - OAuth2MetadataRequest.create = function create(properties) { - return new OAuth2MetadataRequest(properties); - }; - - /** - * Encodes the specified OAuth2MetadataRequest message. Does not implicitly {@link flyteidl.service.OAuth2MetadataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {flyteidl.service.IOAuth2MetadataRequest} message OAuth2MetadataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2MetadataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a OAuth2MetadataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.OAuth2MetadataRequest} OAuth2MetadataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2MetadataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2MetadataRequest message. - * @function verify - * @memberof flyteidl.service.OAuth2MetadataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2MetadataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return OAuth2MetadataRequest; - })(); - - service.OAuth2MetadataResponse = (function() { - - /** - * Properties of a OAuth2MetadataResponse. - * @memberof flyteidl.service - * @interface IOAuth2MetadataResponse - * @property {string|null} [issuer] OAuth2MetadataResponse issuer - * @property {string|null} [authorizationEndpoint] OAuth2MetadataResponse authorizationEndpoint - * @property {string|null} [tokenEndpoint] OAuth2MetadataResponse tokenEndpoint - * @property {Array.|null} [responseTypesSupported] OAuth2MetadataResponse responseTypesSupported - * @property {Array.|null} [scopesSupported] OAuth2MetadataResponse scopesSupported - * @property {Array.|null} [tokenEndpointAuthMethodsSupported] OAuth2MetadataResponse tokenEndpointAuthMethodsSupported - * @property {string|null} [jwksUri] OAuth2MetadataResponse jwksUri - * @property {Array.|null} [codeChallengeMethodsSupported] OAuth2MetadataResponse codeChallengeMethodsSupported - * @property {Array.|null} [grantTypesSupported] OAuth2MetadataResponse grantTypesSupported - * @property {string|null} [deviceAuthorizationEndpoint] OAuth2MetadataResponse deviceAuthorizationEndpoint - */ - - /** - * Constructs a new OAuth2MetadataResponse. - * @memberof flyteidl.service - * @classdesc Represents a OAuth2MetadataResponse. - * @implements IOAuth2MetadataResponse - * @constructor - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - */ - function OAuth2MetadataResponse(properties) { - this.responseTypesSupported = []; - this.scopesSupported = []; - this.tokenEndpointAuthMethodsSupported = []; - this.codeChallengeMethodsSupported = []; - this.grantTypesSupported = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OAuth2MetadataResponse issuer. - * @member {string} issuer - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.issuer = ""; - - /** - * OAuth2MetadataResponse authorizationEndpoint. - * @member {string} authorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.authorizationEndpoint = ""; - - /** - * OAuth2MetadataResponse tokenEndpoint. - * @member {string} tokenEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.tokenEndpoint = ""; - - /** - * OAuth2MetadataResponse responseTypesSupported. - * @member {Array.} responseTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.responseTypesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse scopesSupported. - * @member {Array.} scopesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.scopesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse tokenEndpointAuthMethodsSupported. - * @member {Array.} tokenEndpointAuthMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.tokenEndpointAuthMethodsSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse jwksUri. - * @member {string} jwksUri - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.jwksUri = ""; - - /** - * OAuth2MetadataResponse codeChallengeMethodsSupported. - * @member {Array.} codeChallengeMethodsSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.codeChallengeMethodsSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse grantTypesSupported. - * @member {Array.} grantTypesSupported - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.grantTypesSupported = $util.emptyArray; - - /** - * OAuth2MetadataResponse deviceAuthorizationEndpoint. - * @member {string} deviceAuthorizationEndpoint - * @memberof flyteidl.service.OAuth2MetadataResponse - * @instance - */ - OAuth2MetadataResponse.prototype.deviceAuthorizationEndpoint = ""; - - /** - * Creates a new OAuth2MetadataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {flyteidl.service.IOAuth2MetadataResponse=} [properties] Properties to set - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse instance - */ - OAuth2MetadataResponse.create = function create(properties) { - return new OAuth2MetadataResponse(properties); - }; - - /** - * Encodes the specified OAuth2MetadataResponse message. Does not implicitly {@link flyteidl.service.OAuth2MetadataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {flyteidl.service.IOAuth2MetadataResponse} message OAuth2MetadataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OAuth2MetadataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.issuer != null && message.hasOwnProperty("issuer")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.issuer); - if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.authorizationEndpoint); - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.tokenEndpoint); - if (message.responseTypesSupported != null && message.responseTypesSupported.length) - for (var i = 0; i < message.responseTypesSupported.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.responseTypesSupported[i]); - if (message.scopesSupported != null && message.scopesSupported.length) - for (var i = 0; i < message.scopesSupported.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.scopesSupported[i]); - if (message.tokenEndpointAuthMethodsSupported != null && message.tokenEndpointAuthMethodsSupported.length) - for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.tokenEndpointAuthMethodsSupported[i]); - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.jwksUri); - if (message.codeChallengeMethodsSupported != null && message.codeChallengeMethodsSupported.length) - for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.codeChallengeMethodsSupported[i]); - if (message.grantTypesSupported != null && message.grantTypesSupported.length) - for (var i = 0; i < message.grantTypesSupported.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.grantTypesSupported[i]); - if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.deviceAuthorizationEndpoint); - return writer; - }; - - /** - * Decodes a OAuth2MetadataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.OAuth2MetadataResponse} OAuth2MetadataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OAuth2MetadataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.OAuth2MetadataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.issuer = reader.string(); - break; - case 2: - message.authorizationEndpoint = reader.string(); - break; - case 3: - message.tokenEndpoint = reader.string(); - break; - case 4: - if (!(message.responseTypesSupported && message.responseTypesSupported.length)) - message.responseTypesSupported = []; - message.responseTypesSupported.push(reader.string()); - break; - case 5: - if (!(message.scopesSupported && message.scopesSupported.length)) - message.scopesSupported = []; - message.scopesSupported.push(reader.string()); - break; - case 6: - if (!(message.tokenEndpointAuthMethodsSupported && message.tokenEndpointAuthMethodsSupported.length)) - message.tokenEndpointAuthMethodsSupported = []; - message.tokenEndpointAuthMethodsSupported.push(reader.string()); - break; - case 7: - message.jwksUri = reader.string(); - break; - case 8: - if (!(message.codeChallengeMethodsSupported && message.codeChallengeMethodsSupported.length)) - message.codeChallengeMethodsSupported = []; - message.codeChallengeMethodsSupported.push(reader.string()); - break; - case 9: - if (!(message.grantTypesSupported && message.grantTypesSupported.length)) - message.grantTypesSupported = []; - message.grantTypesSupported.push(reader.string()); - break; - case 10: - message.deviceAuthorizationEndpoint = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a OAuth2MetadataResponse message. - * @function verify - * @memberof flyteidl.service.OAuth2MetadataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OAuth2MetadataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.issuer != null && message.hasOwnProperty("issuer")) - if (!$util.isString(message.issuer)) - return "issuer: string expected"; - if (message.authorizationEndpoint != null && message.hasOwnProperty("authorizationEndpoint")) - if (!$util.isString(message.authorizationEndpoint)) - return "authorizationEndpoint: string expected"; - if (message.tokenEndpoint != null && message.hasOwnProperty("tokenEndpoint")) - if (!$util.isString(message.tokenEndpoint)) - return "tokenEndpoint: string expected"; - if (message.responseTypesSupported != null && message.hasOwnProperty("responseTypesSupported")) { - if (!Array.isArray(message.responseTypesSupported)) - return "responseTypesSupported: array expected"; - for (var i = 0; i < message.responseTypesSupported.length; ++i) - if (!$util.isString(message.responseTypesSupported[i])) - return "responseTypesSupported: string[] expected"; - } - if (message.scopesSupported != null && message.hasOwnProperty("scopesSupported")) { - if (!Array.isArray(message.scopesSupported)) - return "scopesSupported: array expected"; - for (var i = 0; i < message.scopesSupported.length; ++i) - if (!$util.isString(message.scopesSupported[i])) - return "scopesSupported: string[] expected"; - } - if (message.tokenEndpointAuthMethodsSupported != null && message.hasOwnProperty("tokenEndpointAuthMethodsSupported")) { - if (!Array.isArray(message.tokenEndpointAuthMethodsSupported)) - return "tokenEndpointAuthMethodsSupported: array expected"; - for (var i = 0; i < message.tokenEndpointAuthMethodsSupported.length; ++i) - if (!$util.isString(message.tokenEndpointAuthMethodsSupported[i])) - return "tokenEndpointAuthMethodsSupported: string[] expected"; - } - if (message.jwksUri != null && message.hasOwnProperty("jwksUri")) - if (!$util.isString(message.jwksUri)) - return "jwksUri: string expected"; - if (message.codeChallengeMethodsSupported != null && message.hasOwnProperty("codeChallengeMethodsSupported")) { - if (!Array.isArray(message.codeChallengeMethodsSupported)) - return "codeChallengeMethodsSupported: array expected"; - for (var i = 0; i < message.codeChallengeMethodsSupported.length; ++i) - if (!$util.isString(message.codeChallengeMethodsSupported[i])) - return "codeChallengeMethodsSupported: string[] expected"; - } - if (message.grantTypesSupported != null && message.hasOwnProperty("grantTypesSupported")) { - if (!Array.isArray(message.grantTypesSupported)) - return "grantTypesSupported: array expected"; - for (var i = 0; i < message.grantTypesSupported.length; ++i) - if (!$util.isString(message.grantTypesSupported[i])) - return "grantTypesSupported: string[] expected"; - } - if (message.deviceAuthorizationEndpoint != null && message.hasOwnProperty("deviceAuthorizationEndpoint")) - if (!$util.isString(message.deviceAuthorizationEndpoint)) - return "deviceAuthorizationEndpoint: string expected"; - return null; - }; - - return OAuth2MetadataResponse; - })(); - - service.PublicClientAuthConfigRequest = (function() { - - /** - * Properties of a PublicClientAuthConfigRequest. - * @memberof flyteidl.service - * @interface IPublicClientAuthConfigRequest - */ - - /** - * Constructs a new PublicClientAuthConfigRequest. - * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigRequest. - * @implements IPublicClientAuthConfigRequest - * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - */ - function PublicClientAuthConfigRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new PublicClientAuthConfigRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest instance - */ - PublicClientAuthConfigRequest.create = function create(properties) { - return new PublicClientAuthConfigRequest(properties); - }; - - /** - * Encodes the specified PublicClientAuthConfigRequest message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {flyteidl.service.IPublicClientAuthConfigRequest} message PublicClientAuthConfigRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicClientAuthConfigRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a PublicClientAuthConfigRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PublicClientAuthConfigRequest} PublicClientAuthConfigRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicClientAuthConfigRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PublicClientAuthConfigRequest message. - * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublicClientAuthConfigRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return PublicClientAuthConfigRequest; - })(); - - service.PublicClientAuthConfigResponse = (function() { - - /** - * Properties of a PublicClientAuthConfigResponse. - * @memberof flyteidl.service - * @interface IPublicClientAuthConfigResponse - * @property {string|null} [clientId] PublicClientAuthConfigResponse clientId - * @property {string|null} [redirectUri] PublicClientAuthConfigResponse redirectUri - * @property {Array.|null} [scopes] PublicClientAuthConfigResponse scopes - * @property {string|null} [authorizationMetadataKey] PublicClientAuthConfigResponse authorizationMetadataKey - * @property {string|null} [serviceHttpEndpoint] PublicClientAuthConfigResponse serviceHttpEndpoint - * @property {string|null} [audience] PublicClientAuthConfigResponse audience - */ - - /** - * Constructs a new PublicClientAuthConfigResponse. - * @memberof flyteidl.service - * @classdesc Represents a PublicClientAuthConfigResponse. - * @implements IPublicClientAuthConfigResponse - * @constructor - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - */ - function PublicClientAuthConfigResponse(properties) { - this.scopes = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PublicClientAuthConfigResponse clientId. - * @member {string} clientId - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.clientId = ""; - - /** - * PublicClientAuthConfigResponse redirectUri. - * @member {string} redirectUri - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.redirectUri = ""; - - /** - * PublicClientAuthConfigResponse scopes. - * @member {Array.} scopes - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.scopes = $util.emptyArray; - - /** - * PublicClientAuthConfigResponse authorizationMetadataKey. - * @member {string} authorizationMetadataKey - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.authorizationMetadataKey = ""; - - /** - * PublicClientAuthConfigResponse serviceHttpEndpoint. - * @member {string} serviceHttpEndpoint - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.serviceHttpEndpoint = ""; - - /** - * PublicClientAuthConfigResponse audience. - * @member {string} audience - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @instance - */ - PublicClientAuthConfigResponse.prototype.audience = ""; - - /** - * Creates a new PublicClientAuthConfigResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse=} [properties] Properties to set - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse instance - */ - PublicClientAuthConfigResponse.create = function create(properties) { - return new PublicClientAuthConfigResponse(properties); - }; - - /** - * Encodes the specified PublicClientAuthConfigResponse message. Does not implicitly {@link flyteidl.service.PublicClientAuthConfigResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {flyteidl.service.IPublicClientAuthConfigResponse} message PublicClientAuthConfigResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PublicClientAuthConfigResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientId != null && message.hasOwnProperty("clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientId); - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.redirectUri); - if (message.scopes != null && message.scopes.length) - for (var i = 0; i < message.scopes.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.scopes[i]); - if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.authorizationMetadataKey); - if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceHttpEndpoint); - if (message.audience != null && message.hasOwnProperty("audience")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.audience); - return writer; - }; - - /** - * Decodes a PublicClientAuthConfigResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PublicClientAuthConfigResponse} PublicClientAuthConfigResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PublicClientAuthConfigResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PublicClientAuthConfigResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.clientId = reader.string(); - break; - case 2: - message.redirectUri = reader.string(); - break; - case 3: - if (!(message.scopes && message.scopes.length)) - message.scopes = []; - message.scopes.push(reader.string()); - break; - case 4: - message.authorizationMetadataKey = reader.string(); - break; - case 5: - message.serviceHttpEndpoint = reader.string(); - break; - case 6: - message.audience = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PublicClientAuthConfigResponse message. - * @function verify - * @memberof flyteidl.service.PublicClientAuthConfigResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PublicClientAuthConfigResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.redirectUri != null && message.hasOwnProperty("redirectUri")) - if (!$util.isString(message.redirectUri)) - return "redirectUri: string expected"; - if (message.scopes != null && message.hasOwnProperty("scopes")) { - if (!Array.isArray(message.scopes)) - return "scopes: array expected"; - for (var i = 0; i < message.scopes.length; ++i) - if (!$util.isString(message.scopes[i])) - return "scopes: string[] expected"; - } - if (message.authorizationMetadataKey != null && message.hasOwnProperty("authorizationMetadataKey")) - if (!$util.isString(message.authorizationMetadataKey)) - return "authorizationMetadataKey: string expected"; - if (message.serviceHttpEndpoint != null && message.hasOwnProperty("serviceHttpEndpoint")) - if (!$util.isString(message.serviceHttpEndpoint)) - return "serviceHttpEndpoint: string expected"; - if (message.audience != null && message.hasOwnProperty("audience")) - if (!$util.isString(message.audience)) - return "audience: string expected"; - return null; - }; - - return PublicClientAuthConfigResponse; - })(); - - service.AuthMetadataService = (function() { - - /** - * Constructs a new AuthMetadataService service. - * @memberof flyteidl.service - * @classdesc Represents an AuthMetadataService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function AuthMetadataService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (AuthMetadataService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = AuthMetadataService; - - /** - * Creates new AuthMetadataService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.AuthMetadataService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {AuthMetadataService} RPC service. Useful where requests and/or responses are streamed. - */ - AuthMetadataService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getOAuth2Metadata}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetOAuth2MetadataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.OAuth2MetadataResponse} [response] OAuth2MetadataResponse - */ - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @param {flyteidl.service.AuthMetadataService.GetOAuth2MetadataCallback} callback Node-style callback called with the error, if any, and OAuth2MetadataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AuthMetadataService.prototype.getOAuth2Metadata = function getOAuth2Metadata(request, callback) { - return this.rpcCall(getOAuth2Metadata, $root.flyteidl.service.OAuth2MetadataRequest, $root.flyteidl.service.OAuth2MetadataResponse, request, callback); - }, "name", { value: "GetOAuth2Metadata" }); - - /** - * Calls GetOAuth2Metadata. - * @function getOAuth2Metadata - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IOAuth2MetadataRequest} request OAuth2MetadataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.AuthMetadataService#getPublicClientConfig}. - * @memberof flyteidl.service.AuthMetadataService - * @typedef GetPublicClientConfigCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.PublicClientAuthConfigResponse} [response] PublicClientAuthConfigResponse - */ - - /** - * Calls GetPublicClientConfig. - * @function getPublicClientConfig - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object - * @param {flyteidl.service.AuthMetadataService.GetPublicClientConfigCallback} callback Node-style callback called with the error, if any, and PublicClientAuthConfigResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(AuthMetadataService.prototype.getPublicClientConfig = function getPublicClientConfig(request, callback) { - return this.rpcCall(getPublicClientConfig, $root.flyteidl.service.PublicClientAuthConfigRequest, $root.flyteidl.service.PublicClientAuthConfigResponse, request, callback); - }, "name", { value: "GetPublicClientConfig" }); - - /** - * Calls GetPublicClientConfig. - * @function getPublicClientConfig - * @memberof flyteidl.service.AuthMetadataService - * @instance - * @param {flyteidl.service.IPublicClientAuthConfigRequest} request PublicClientAuthConfigRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return AuthMetadataService; - })(); - - service.CreateUploadLocationResponse = (function() { - - /** - * Properties of a CreateUploadLocationResponse. - * @memberof flyteidl.service - * @interface ICreateUploadLocationResponse - * @property {string|null} [signedUrl] CreateUploadLocationResponse signedUrl - * @property {string|null} [nativeUrl] CreateUploadLocationResponse nativeUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateUploadLocationResponse expiresAt - */ - - /** - * Constructs a new CreateUploadLocationResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationResponse. - * @implements ICreateUploadLocationResponse - * @constructor - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - */ - function CreateUploadLocationResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateUploadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.signedUrl = ""; - - /** - * CreateUploadLocationResponse nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.nativeUrl = ""; - - /** - * CreateUploadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateUploadLocationResponse - * @instance - */ - CreateUploadLocationResponse.prototype.expiresAt = null; - - /** - * Creates a new CreateUploadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {flyteidl.service.ICreateUploadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse instance - */ - CreateUploadLocationResponse.create = function create(properties) { - return new CreateUploadLocationResponse(properties); - }; - - /** - * Encodes the specified CreateUploadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateUploadLocationResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {flyteidl.service.ICreateUploadLocationResponse} message CreateUploadLocationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUploadLocationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nativeUrl); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateUploadLocationResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateUploadLocationResponse} CreateUploadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUploadLocationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedUrl = reader.string(); - break; - case 2: - message.nativeUrl = reader.string(); - break; - case 3: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateUploadLocationResponse message. - * @function verify - * @memberof flyteidl.service.CreateUploadLocationResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateUploadLocationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - if (!$util.isString(message.signedUrl)) - return "signedUrl: string expected"; - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - if (!$util.isString(message.nativeUrl)) - return "nativeUrl: string expected"; - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return CreateUploadLocationResponse; - })(); - - service.CreateUploadLocationRequest = (function() { - - /** - * Properties of a CreateUploadLocationRequest. - * @memberof flyteidl.service - * @interface ICreateUploadLocationRequest - * @property {string|null} [project] CreateUploadLocationRequest project - * @property {string|null} [domain] CreateUploadLocationRequest domain - * @property {string|null} [filename] CreateUploadLocationRequest filename - * @property {google.protobuf.IDuration|null} [expiresIn] CreateUploadLocationRequest expiresIn - * @property {Uint8Array|null} [contentMd5] CreateUploadLocationRequest contentMd5 - * @property {string|null} [filenameRoot] CreateUploadLocationRequest filenameRoot - */ - - /** - * Constructs a new CreateUploadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateUploadLocationRequest. - * @implements ICreateUploadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set - */ - function CreateUploadLocationRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateUploadLocationRequest project. - * @member {string} project - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.project = ""; - - /** - * CreateUploadLocationRequest domain. - * @member {string} domain - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.domain = ""; - - /** - * CreateUploadLocationRequest filename. - * @member {string} filename - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.filename = ""; - - /** - * CreateUploadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.expiresIn = null; - - /** - * CreateUploadLocationRequest contentMd5. - * @member {Uint8Array} contentMd5 - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.contentMd5 = $util.newBuffer([]); - - /** - * CreateUploadLocationRequest filenameRoot. - * @member {string} filenameRoot - * @memberof flyteidl.service.CreateUploadLocationRequest - * @instance - */ - CreateUploadLocationRequest.prototype.filenameRoot = ""; - - /** - * Creates a new CreateUploadLocationRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {flyteidl.service.ICreateUploadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest instance - */ - CreateUploadLocationRequest.create = function create(properties) { - return new CreateUploadLocationRequest(properties); - }; - - /** - * Encodes the specified CreateUploadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateUploadLocationRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {flyteidl.service.ICreateUploadLocationRequest} message CreateUploadLocationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateUploadLocationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.project != null && message.hasOwnProperty("project")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.project); - if (message.domain != null && message.hasOwnProperty("domain")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.domain); - if (message.filename != null && message.hasOwnProperty("filename")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filename); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.contentMd5); - if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.filenameRoot); - return writer; - }; - - /** - * Decodes a CreateUploadLocationRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateUploadLocationRequest} CreateUploadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateUploadLocationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateUploadLocationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.project = reader.string(); - break; - case 2: - message.domain = reader.string(); - break; - case 3: - message.filename = reader.string(); - break; - case 4: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 5: - message.contentMd5 = reader.bytes(); - break; - case 6: - message.filenameRoot = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateUploadLocationRequest message. - * @function verify - * @memberof flyteidl.service.CreateUploadLocationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateUploadLocationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.project != null && message.hasOwnProperty("project")) - if (!$util.isString(message.project)) - return "project: string expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - if (message.contentMd5 != null && message.hasOwnProperty("contentMd5")) - if (!(message.contentMd5 && typeof message.contentMd5.length === "number" || $util.isString(message.contentMd5))) - return "contentMd5: buffer expected"; - if (message.filenameRoot != null && message.hasOwnProperty("filenameRoot")) - if (!$util.isString(message.filenameRoot)) - return "filenameRoot: string expected"; - return null; - }; - - return CreateUploadLocationRequest; - })(); - - service.CreateDownloadLocationRequest = (function() { - - /** - * Properties of a CreateDownloadLocationRequest. - * @memberof flyteidl.service - * @interface ICreateDownloadLocationRequest - * @property {string|null} [nativeUrl] CreateDownloadLocationRequest nativeUrl - * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLocationRequest expiresIn - */ - - /** - * Constructs a new CreateDownloadLocationRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationRequest. - * @implements ICreateDownloadLocationRequest - * @constructor - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set - */ - function CreateDownloadLocationRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLocationRequest nativeUrl. - * @member {string} nativeUrl - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @instance - */ - CreateDownloadLocationRequest.prototype.nativeUrl = ""; - - /** - * CreateDownloadLocationRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @instance - */ - CreateDownloadLocationRequest.prototype.expiresIn = null; - - /** - * Creates a new CreateDownloadLocationRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest instance - */ - CreateDownloadLocationRequest.create = function create(properties) { - return new CreateDownloadLocationRequest(properties); - }; - - /** - * Encodes the specified CreateDownloadLocationRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {flyteidl.service.ICreateDownloadLocationRequest} message CreateDownloadLocationRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLocationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.nativeUrl); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLocationRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLocationRequest} CreateDownloadLocationRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLocationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nativeUrl = reader.string(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLocationRequest message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLocationRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLocationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nativeUrl != null && message.hasOwnProperty("nativeUrl")) - if (!$util.isString(message.nativeUrl)) - return "nativeUrl: string expected"; - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - return null; - }; - - return CreateDownloadLocationRequest; - })(); - - service.CreateDownloadLocationResponse = (function() { - - /** - * Properties of a CreateDownloadLocationResponse. - * @memberof flyteidl.service - * @interface ICreateDownloadLocationResponse - * @property {string|null} [signedUrl] CreateDownloadLocationResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLocationResponse expiresAt - */ - - /** - * Constructs a new CreateDownloadLocationResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLocationResponse. - * @implements ICreateDownloadLocationResponse - * @constructor - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - */ - function CreateDownloadLocationResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLocationResponse signedUrl. - * @member {string} signedUrl - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @instance - */ - CreateDownloadLocationResponse.prototype.signedUrl = ""; - - /** - * CreateDownloadLocationResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @instance - */ - CreateDownloadLocationResponse.prototype.expiresAt = null; - - /** - * Creates a new CreateDownloadLocationResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse instance - */ - CreateDownloadLocationResponse.create = function create(properties) { - return new CreateDownloadLocationResponse(properties); - }; - - /** - * Encodes the specified CreateDownloadLocationResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLocationResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {flyteidl.service.ICreateDownloadLocationResponse} message CreateDownloadLocationResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLocationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLocationResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLocationResponse} CreateDownloadLocationResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLocationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLocationResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.signedUrl = reader.string(); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLocationResponse message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLocationResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLocationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) - if (!$util.isString(message.signedUrl)) - return "signedUrl: string expected"; - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return CreateDownloadLocationResponse; - })(); - - /** - * ArtifactType enum. - * @name flyteidl.service.ArtifactType - * @enum {string} - * @property {number} ARTIFACT_TYPE_UNDEFINED=0 ARTIFACT_TYPE_UNDEFINED value - * @property {number} ARTIFACT_TYPE_DECK=1 ARTIFACT_TYPE_DECK value - */ - service.ArtifactType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ARTIFACT_TYPE_UNDEFINED"] = 0; - values[valuesById[1] = "ARTIFACT_TYPE_DECK"] = 1; - return values; - })(); - - service.CreateDownloadLinkRequest = (function() { - - /** - * Properties of a CreateDownloadLinkRequest. - * @memberof flyteidl.service - * @interface ICreateDownloadLinkRequest - * @property {flyteidl.service.ArtifactType|null} [artifactType] CreateDownloadLinkRequest artifactType - * @property {google.protobuf.IDuration|null} [expiresIn] CreateDownloadLinkRequest expiresIn - * @property {flyteidl.core.INodeExecutionIdentifier|null} [nodeExecutionId] CreateDownloadLinkRequest nodeExecutionId - */ - - /** - * Constructs a new CreateDownloadLinkRequest. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkRequest. - * @implements ICreateDownloadLinkRequest - * @constructor - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - */ - function CreateDownloadLinkRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLinkRequest artifactType. - * @member {flyteidl.service.ArtifactType} artifactType - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.artifactType = 0; - - /** - * CreateDownloadLinkRequest expiresIn. - * @member {google.protobuf.IDuration|null|undefined} expiresIn - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.expiresIn = null; - - /** - * CreateDownloadLinkRequest nodeExecutionId. - * @member {flyteidl.core.INodeExecutionIdentifier|null|undefined} nodeExecutionId - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - CreateDownloadLinkRequest.prototype.nodeExecutionId = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CreateDownloadLinkRequest source. - * @member {"nodeExecutionId"|undefined} source - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @instance - */ - Object.defineProperty(CreateDownloadLinkRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["nodeExecutionId"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CreateDownloadLinkRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest instance - */ - CreateDownloadLinkRequest.create = function create(properties) { - return new CreateDownloadLinkRequest(properties); - }; - - /** - * Encodes the specified CreateDownloadLinkRequest message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {flyteidl.service.ICreateDownloadLinkRequest} message CreateDownloadLinkRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLinkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.artifactType); - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) - $root.google.protobuf.Duration.encode(message.expiresIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) - $root.flyteidl.core.NodeExecutionIdentifier.encode(message.nodeExecutionId, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLinkRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLinkRequest} CreateDownloadLinkRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLinkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.artifactType = reader.int32(); - break; - case 2: - message.expiresIn = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.nodeExecutionId = $root.flyteidl.core.NodeExecutionIdentifier.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLinkRequest message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLinkRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.artifactType != null && message.hasOwnProperty("artifactType")) - switch (message.artifactType) { - default: - return "artifactType: enum value expected"; - case 0: - case 1: - break; - } - if (message.expiresIn != null && message.hasOwnProperty("expiresIn")) { - var error = $root.google.protobuf.Duration.verify(message.expiresIn); - if (error) - return "expiresIn." + error; - } - if (message.nodeExecutionId != null && message.hasOwnProperty("nodeExecutionId")) { - properties.source = 1; - { - var error = $root.flyteidl.core.NodeExecutionIdentifier.verify(message.nodeExecutionId); - if (error) - return "nodeExecutionId." + error; - } - } - return null; - }; - - return CreateDownloadLinkRequest; - })(); - - service.CreateDownloadLinkResponse = (function() { - - /** - * Properties of a CreateDownloadLinkResponse. - * @memberof flyteidl.service - * @interface ICreateDownloadLinkResponse - * @property {Array.|null} [signedUrl] CreateDownloadLinkResponse signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] CreateDownloadLinkResponse expiresAt - * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] CreateDownloadLinkResponse preSignedUrls - */ - - /** - * Constructs a new CreateDownloadLinkResponse. - * @memberof flyteidl.service - * @classdesc Represents a CreateDownloadLinkResponse. - * @implements ICreateDownloadLinkResponse - * @constructor - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - */ - function CreateDownloadLinkResponse(properties) { - this.signedUrl = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CreateDownloadLinkResponse signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.signedUrl = $util.emptyArray; - - /** - * CreateDownloadLinkResponse expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.expiresAt = null; - - /** - * CreateDownloadLinkResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @instance - */ - CreateDownloadLinkResponse.prototype.preSignedUrls = null; - - /** - * Creates a new CreateDownloadLinkResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse=} [properties] Properties to set - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse instance - */ - CreateDownloadLinkResponse.create = function create(properties) { - return new CreateDownloadLinkResponse(properties); - }; - - /** - * Encodes the specified CreateDownloadLinkResponse message. Does not implicitly {@link flyteidl.service.CreateDownloadLinkResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {flyteidl.service.ICreateDownloadLinkResponse} message CreateDownloadLinkResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateDownloadLinkResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.signedUrl.length) - for (var i = 0; i < message.signedUrl.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) - $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a CreateDownloadLinkResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.CreateDownloadLinkResponse} CreateDownloadLinkResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateDownloadLinkResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.CreateDownloadLinkResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CreateDownloadLinkResponse message. - * @function verify - * @memberof flyteidl.service.CreateDownloadLinkResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateDownloadLinkResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { - if (!Array.isArray(message.signedUrl)) - return "signedUrl: array expected"; - for (var i = 0; i < message.signedUrl.length; ++i) - if (!$util.isString(message.signedUrl[i])) - return "signedUrl: string[] expected"; - } - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { - var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); - if (error) - return "preSignedUrls." + error; - } - return null; - }; - - return CreateDownloadLinkResponse; - })(); - - service.PreSignedURLs = (function() { - - /** - * Properties of a PreSignedURLs. - * @memberof flyteidl.service - * @interface IPreSignedURLs - * @property {Array.|null} [signedUrl] PreSignedURLs signedUrl - * @property {google.protobuf.ITimestamp|null} [expiresAt] PreSignedURLs expiresAt - */ - - /** - * Constructs a new PreSignedURLs. - * @memberof flyteidl.service - * @classdesc Represents a PreSignedURLs. - * @implements IPreSignedURLs - * @constructor - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - */ - function PreSignedURLs(properties) { - this.signedUrl = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PreSignedURLs signedUrl. - * @member {Array.} signedUrl - * @memberof flyteidl.service.PreSignedURLs - * @instance - */ - PreSignedURLs.prototype.signedUrl = $util.emptyArray; - - /** - * PreSignedURLs expiresAt. - * @member {google.protobuf.ITimestamp|null|undefined} expiresAt - * @memberof flyteidl.service.PreSignedURLs - * @instance - */ - PreSignedURLs.prototype.expiresAt = null; - - /** - * Creates a new PreSignedURLs instance using the specified properties. - * @function create - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {flyteidl.service.IPreSignedURLs=} [properties] Properties to set - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs instance - */ - PreSignedURLs.create = function create(properties) { - return new PreSignedURLs(properties); - }; - - /** - * Encodes the specified PreSignedURLs message. Does not implicitly {@link flyteidl.service.PreSignedURLs.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {flyteidl.service.IPreSignedURLs} message PreSignedURLs message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PreSignedURLs.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.signedUrl != null && message.signedUrl.length) - for (var i = 0; i < message.signedUrl.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.signedUrl[i]); - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) - $root.google.protobuf.Timestamp.encode(message.expiresAt, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a PreSignedURLs message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.PreSignedURLs} PreSignedURLs - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PreSignedURLs.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.PreSignedURLs(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.signedUrl && message.signedUrl.length)) - message.signedUrl = []; - message.signedUrl.push(reader.string()); - break; - case 2: - message.expiresAt = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a PreSignedURLs message. - * @function verify - * @memberof flyteidl.service.PreSignedURLs - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PreSignedURLs.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.signedUrl != null && message.hasOwnProperty("signedUrl")) { - if (!Array.isArray(message.signedUrl)) - return "signedUrl: array expected"; - for (var i = 0; i < message.signedUrl.length; ++i) - if (!$util.isString(message.signedUrl[i])) - return "signedUrl: string[] expected"; - } - if (message.expiresAt != null && message.hasOwnProperty("expiresAt")) { - var error = $root.google.protobuf.Timestamp.verify(message.expiresAt); - if (error) - return "expiresAt." + error; - } - return null; - }; - - return PreSignedURLs; - })(); - - service.GetDataRequest = (function() { - - /** - * Properties of a GetDataRequest. - * @memberof flyteidl.service - * @interface IGetDataRequest - * @property {string|null} [flyteUrl] GetDataRequest flyteUrl - */ - - /** - * Constructs a new GetDataRequest. - * @memberof flyteidl.service - * @classdesc Represents a GetDataRequest. - * @implements IGetDataRequest - * @constructor - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - */ - function GetDataRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDataRequest flyteUrl. - * @member {string} flyteUrl - * @memberof flyteidl.service.GetDataRequest - * @instance - */ - GetDataRequest.prototype.flyteUrl = ""; - - /** - * Creates a new GetDataRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {flyteidl.service.IGetDataRequest=} [properties] Properties to set - * @returns {flyteidl.service.GetDataRequest} GetDataRequest instance - */ - GetDataRequest.create = function create(properties) { - return new GetDataRequest(properties); - }; - - /** - * Encodes the specified GetDataRequest message. Does not implicitly {@link flyteidl.service.GetDataRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {flyteidl.service.IGetDataRequest} message GetDataRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.flyteUrl); - return writer; - }; - - /** - * Decodes a GetDataRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.GetDataRequest} GetDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.flyteUrl = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetDataRequest message. - * @function verify - * @memberof flyteidl.service.GetDataRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.flyteUrl != null && message.hasOwnProperty("flyteUrl")) - if (!$util.isString(message.flyteUrl)) - return "flyteUrl: string expected"; - return null; - }; - - return GetDataRequest; - })(); - - service.GetDataResponse = (function() { - - /** - * Properties of a GetDataResponse. - * @memberof flyteidl.service - * @interface IGetDataResponse - * @property {flyteidl.core.ILiteralMap|null} [literalMap] GetDataResponse literalMap - * @property {flyteidl.service.IPreSignedURLs|null} [preSignedUrls] GetDataResponse preSignedUrls - * @property {flyteidl.core.ILiteral|null} [literal] GetDataResponse literal - */ - - /** - * Constructs a new GetDataResponse. - * @memberof flyteidl.service - * @classdesc Represents a GetDataResponse. - * @implements IGetDataResponse - * @constructor - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - */ - function GetDataResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetDataResponse literalMap. - * @member {flyteidl.core.ILiteralMap|null|undefined} literalMap - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.literalMap = null; - - /** - * GetDataResponse preSignedUrls. - * @member {flyteidl.service.IPreSignedURLs|null|undefined} preSignedUrls - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.preSignedUrls = null; - - /** - * GetDataResponse literal. - * @member {flyteidl.core.ILiteral|null|undefined} literal - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - GetDataResponse.prototype.literal = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * GetDataResponse data. - * @member {"literalMap"|"preSignedUrls"|"literal"|undefined} data - * @memberof flyteidl.service.GetDataResponse - * @instance - */ - Object.defineProperty(GetDataResponse.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["literalMap", "preSignedUrls", "literal"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new GetDataResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {flyteidl.service.IGetDataResponse=} [properties] Properties to set - * @returns {flyteidl.service.GetDataResponse} GetDataResponse instance - */ - GetDataResponse.create = function create(properties) { - return new GetDataResponse(properties); - }; - - /** - * Encodes the specified GetDataResponse message. Does not implicitly {@link flyteidl.service.GetDataResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {flyteidl.service.IGetDataResponse} message GetDataResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.literalMap != null && message.hasOwnProperty("literalMap")) - $root.flyteidl.core.LiteralMap.encode(message.literalMap, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) - $root.flyteidl.service.PreSignedURLs.encode(message.preSignedUrls, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.literal != null && message.hasOwnProperty("literal")) - $root.flyteidl.core.Literal.encode(message.literal, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GetDataResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.GetDataResponse} GetDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.GetDataResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.literalMap = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.preSignedUrls = $root.flyteidl.service.PreSignedURLs.decode(reader, reader.uint32()); - break; - case 3: - message.literal = $root.flyteidl.core.Literal.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GetDataResponse message. - * @function verify - * @memberof flyteidl.service.GetDataResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.literalMap != null && message.hasOwnProperty("literalMap")) { - properties.data = 1; - { - var error = $root.flyteidl.core.LiteralMap.verify(message.literalMap); - if (error) - return "literalMap." + error; - } - } - if (message.preSignedUrls != null && message.hasOwnProperty("preSignedUrls")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.flyteidl.service.PreSignedURLs.verify(message.preSignedUrls); - if (error) - return "preSignedUrls." + error; - } - } - if (message.literal != null && message.hasOwnProperty("literal")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.flyteidl.core.Literal.verify(message.literal); - if (error) - return "literal." + error; - } - } - return null; - }; - - return GetDataResponse; - })(); - - service.DataProxyService = (function() { - - /** - * Constructs a new DataProxyService service. - * @memberof flyteidl.service - * @classdesc Represents a DataProxyService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function DataProxyService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (DataProxyService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DataProxyService; - - /** - * Creates new DataProxyService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.DataProxyService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {DataProxyService} RPC service. Useful where requests and/or responses are streamed. - */ - DataProxyService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createUploadLocation}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateUploadLocationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateUploadLocationResponse} [response] CreateUploadLocationResponse - */ - - /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateUploadLocationCallback} callback Node-style callback called with the error, if any, and CreateUploadLocationResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createUploadLocation = function createUploadLocation(request, callback) { - return this.rpcCall(createUploadLocation, $root.flyteidl.service.CreateUploadLocationRequest, $root.flyteidl.service.CreateUploadLocationResponse, request, callback); - }, "name", { value: "CreateUploadLocation" }); - - /** - * Calls CreateUploadLocation. - * @function createUploadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateUploadLocationRequest} request CreateUploadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLocation}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateDownloadLocationCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateDownloadLocationResponse} [response] CreateDownloadLocationResponse - */ - - /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateDownloadLocationCallback} callback Node-style callback called with the error, if any, and CreateDownloadLocationResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createDownloadLocation = function createDownloadLocation(request, callback) { - return this.rpcCall(createDownloadLocation, $root.flyteidl.service.CreateDownloadLocationRequest, $root.flyteidl.service.CreateDownloadLocationResponse, request, callback); - }, "name", { value: "CreateDownloadLocation" }); - - /** - * Calls CreateDownloadLocation. - * @function createDownloadLocation - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLocationRequest} request CreateDownloadLocationRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#createDownloadLink}. - * @memberof flyteidl.service.DataProxyService - * @typedef CreateDownloadLinkCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.CreateDownloadLinkResponse} [response] CreateDownloadLinkResponse - */ - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @param {flyteidl.service.DataProxyService.CreateDownloadLinkCallback} callback Node-style callback called with the error, if any, and CreateDownloadLinkResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.createDownloadLink = function createDownloadLink(request, callback) { - return this.rpcCall(createDownloadLink, $root.flyteidl.service.CreateDownloadLinkRequest, $root.flyteidl.service.CreateDownloadLinkResponse, request, callback); - }, "name", { value: "CreateDownloadLink" }); - - /** - * Calls CreateDownloadLink. - * @function createDownloadLink - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.ICreateDownloadLinkRequest} request CreateDownloadLinkRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.DataProxyService#getData}. - * @memberof flyteidl.service.DataProxyService - * @typedef GetDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.GetDataResponse} [response] GetDataResponse - */ - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @param {flyteidl.service.DataProxyService.GetDataCallback} callback Node-style callback called with the error, if any, and GetDataResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DataProxyService.prototype.getData = function getData(request, callback) { - return this.rpcCall(getData, $root.flyteidl.service.GetDataRequest, $root.flyteidl.service.GetDataResponse, request, callback); - }, "name", { value: "GetData" }); - - /** - * Calls GetData. - * @function getData - * @memberof flyteidl.service.DataProxyService - * @instance - * @param {flyteidl.service.IGetDataRequest} request GetDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return DataProxyService; - })(); - - service.ExternalPluginService = (function() { - - /** - * Constructs a new ExternalPluginService service. - * @memberof flyteidl.service - * @classdesc Represents an ExternalPluginService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function ExternalPluginService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (ExternalPluginService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = ExternalPluginService; - - /** - * Creates new ExternalPluginService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.ExternalPluginService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {ExternalPluginService} RPC service. Useful where requests and/or responses are streamed. - */ - ExternalPluginService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#createTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef CreateTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskCreateResponse} [response] TaskCreateResponse - */ - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.CreateTaskCallback} callback Node-style callback called with the error, if any, and TaskCreateResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.createTask = function createTask(request, callback) { - return this.rpcCall(createTask, $root.flyteidl.service.TaskCreateRequest, $root.flyteidl.service.TaskCreateResponse, request, callback); - }, "name", { value: "CreateTask" }); - - /** - * Calls CreateTask. - * @function createTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskCreateRequest} request TaskCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#getTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef GetTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskGetResponse} [response] TaskGetResponse - */ - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.GetTaskCallback} callback Node-style callback called with the error, if any, and TaskGetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.getTask = function getTask(request, callback) { - return this.rpcCall(getTask, $root.flyteidl.service.TaskGetRequest, $root.flyteidl.service.TaskGetResponse, request, callback); - }, "name", { value: "GetTask" }); - - /** - * Calls GetTask. - * @function getTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskGetRequest} request TaskGetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.ExternalPluginService#deleteTask}. - * @memberof flyteidl.service.ExternalPluginService - * @typedef DeleteTaskCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.TaskDeleteResponse} [response] TaskDeleteResponse - */ - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @param {flyteidl.service.ExternalPluginService.DeleteTaskCallback} callback Node-style callback called with the error, if any, and TaskDeleteResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(ExternalPluginService.prototype.deleteTask = function deleteTask(request, callback) { - return this.rpcCall(deleteTask, $root.flyteidl.service.TaskDeleteRequest, $root.flyteidl.service.TaskDeleteResponse, request, callback); - }, "name", { value: "DeleteTask" }); - - /** - * Calls DeleteTask. - * @function deleteTask - * @memberof flyteidl.service.ExternalPluginService - * @instance - * @param {flyteidl.service.ITaskDeleteRequest} request TaskDeleteRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return ExternalPluginService; - })(); - - /** - * State enum. - * @name flyteidl.service.State - * @enum {string} - * @property {number} RETRYABLE_FAILURE=0 RETRYABLE_FAILURE value - * @property {number} PERMANENT_FAILURE=1 PERMANENT_FAILURE value - * @property {number} PENDING=2 PENDING value - * @property {number} RUNNING=3 RUNNING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - */ - service.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RETRYABLE_FAILURE"] = 0; - values[valuesById[1] = "PERMANENT_FAILURE"] = 1; - values[valuesById[2] = "PENDING"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - return values; - })(); - - service.TaskCreateRequest = (function() { - - /** - * Properties of a TaskCreateRequest. - * @memberof flyteidl.service - * @interface ITaskCreateRequest - * @property {flyteidl.core.ILiteralMap|null} [inputs] TaskCreateRequest inputs - * @property {flyteidl.core.ITaskTemplate|null} [template] TaskCreateRequest template - * @property {string|null} [outputPrefix] TaskCreateRequest outputPrefix - */ - - /** - * Constructs a new TaskCreateRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateRequest. - * @implements ITaskCreateRequest - * @constructor - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - */ - function TaskCreateRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateRequest inputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} inputs - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.inputs = null; - - /** - * TaskCreateRequest template. - * @member {flyteidl.core.ITaskTemplate|null|undefined} template - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.template = null; - - /** - * TaskCreateRequest outputPrefix. - * @member {string} outputPrefix - * @memberof flyteidl.service.TaskCreateRequest - * @instance - */ - TaskCreateRequest.prototype.outputPrefix = ""; - - /** - * Creates a new TaskCreateRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest instance - */ - TaskCreateRequest.create = function create(properties) { - return new TaskCreateRequest(properties); - }; - - /** - * Encodes the specified TaskCreateRequest message. Does not implicitly {@link flyteidl.service.TaskCreateRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {flyteidl.service.ITaskCreateRequest} message TaskCreateRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inputs != null && message.hasOwnProperty("inputs")) - $root.flyteidl.core.LiteralMap.encode(message.inputs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.template != null && message.hasOwnProperty("template")) - $root.flyteidl.core.TaskTemplate.encode(message.template, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputPrefix); - return writer; - }; - - /** - * Decodes a TaskCreateRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskCreateRequest} TaskCreateRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.inputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - case 2: - message.template = $root.flyteidl.core.TaskTemplate.decode(reader, reader.uint32()); - break; - case 3: - message.outputPrefix = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateRequest message. - * @function verify - * @memberof flyteidl.service.TaskCreateRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.inputs); - if (error) - return "inputs." + error; - } - if (message.template != null && message.hasOwnProperty("template")) { - var error = $root.flyteidl.core.TaskTemplate.verify(message.template); - if (error) - return "template." + error; - } - if (message.outputPrefix != null && message.hasOwnProperty("outputPrefix")) - if (!$util.isString(message.outputPrefix)) - return "outputPrefix: string expected"; - return null; - }; - - return TaskCreateRequest; - })(); - - service.TaskCreateResponse = (function() { - - /** - * Properties of a TaskCreateResponse. - * @memberof flyteidl.service - * @interface ITaskCreateResponse - * @property {string|null} [jobId] TaskCreateResponse jobId - */ - - /** - * Constructs a new TaskCreateResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskCreateResponse. - * @implements ITaskCreateResponse - * @constructor - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - */ - function TaskCreateResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskCreateResponse jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskCreateResponse - * @instance - */ - TaskCreateResponse.prototype.jobId = ""; - - /** - * Creates a new TaskCreateResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse instance - */ - TaskCreateResponse.create = function create(properties) { - return new TaskCreateResponse(properties); - }; - - /** - * Encodes the specified TaskCreateResponse message. Does not implicitly {@link flyteidl.service.TaskCreateResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {flyteidl.service.ITaskCreateResponse} message TaskCreateResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskCreateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskCreateResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskCreateResponse} TaskCreateResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskCreateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskCreateResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskCreateResponse message. - * @function verify - * @memberof flyteidl.service.TaskCreateResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskCreateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskCreateResponse; - })(); - - service.TaskGetRequest = (function() { - - /** - * Properties of a TaskGetRequest. - * @memberof flyteidl.service - * @interface ITaskGetRequest - * @property {string|null} [taskType] TaskGetRequest taskType - * @property {string|null} [jobId] TaskGetRequest jobId - */ - - /** - * Constructs a new TaskGetRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskGetRequest. - * @implements ITaskGetRequest - * @constructor - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set - */ - function TaskGetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskGetRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskGetRequest - * @instance - */ - TaskGetRequest.prototype.taskType = ""; - - /** - * TaskGetRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskGetRequest - * @instance - */ - TaskGetRequest.prototype.jobId = ""; - - /** - * Creates a new TaskGetRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {flyteidl.service.ITaskGetRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest instance - */ - TaskGetRequest.create = function create(properties) { - return new TaskGetRequest(properties); - }; - - /** - * Encodes the specified TaskGetRequest message. Does not implicitly {@link flyteidl.service.TaskGetRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {flyteidl.service.ITaskGetRequest} message TaskGetRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskGetRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskGetRequest} TaskGetRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskGetRequest message. - * @function verify - * @memberof flyteidl.service.TaskGetRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskGetRequest; - })(); - - service.TaskGetResponse = (function() { - - /** - * Properties of a TaskGetResponse. - * @memberof flyteidl.service - * @interface ITaskGetResponse - * @property {flyteidl.service.State|null} [state] TaskGetResponse state - * @property {flyteidl.core.ILiteralMap|null} [outputs] TaskGetResponse outputs - */ - - /** - * Constructs a new TaskGetResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskGetResponse. - * @implements ITaskGetResponse - * @constructor - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - */ - function TaskGetResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskGetResponse state. - * @member {flyteidl.service.State} state - * @memberof flyteidl.service.TaskGetResponse - * @instance - */ - TaskGetResponse.prototype.state = 0; - - /** - * TaskGetResponse outputs. - * @member {flyteidl.core.ILiteralMap|null|undefined} outputs - * @memberof flyteidl.service.TaskGetResponse - * @instance - */ - TaskGetResponse.prototype.outputs = null; - - /** - * Creates a new TaskGetResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {flyteidl.service.ITaskGetResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse instance - */ - TaskGetResponse.create = function create(properties) { - return new TaskGetResponse(properties); - }; - - /** - * Encodes the specified TaskGetResponse message. Does not implicitly {@link flyteidl.service.TaskGetResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {flyteidl.service.ITaskGetResponse} message TaskGetResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && message.hasOwnProperty("state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.outputs != null && message.hasOwnProperty("outputs")) - $root.flyteidl.core.LiteralMap.encode(message.outputs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a TaskGetResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskGetResponse} TaskGetResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskGetResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.outputs = $root.flyteidl.core.LiteralMap.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskGetResponse message. - * @function verify - * @memberof flyteidl.service.TaskGetResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.outputs != null && message.hasOwnProperty("outputs")) { - var error = $root.flyteidl.core.LiteralMap.verify(message.outputs); - if (error) - return "outputs." + error; - } - return null; - }; - - return TaskGetResponse; - })(); - - service.TaskDeleteRequest = (function() { - - /** - * Properties of a TaskDeleteRequest. - * @memberof flyteidl.service - * @interface ITaskDeleteRequest - * @property {string|null} [taskType] TaskDeleteRequest taskType - * @property {string|null} [jobId] TaskDeleteRequest jobId - */ - - /** - * Constructs a new TaskDeleteRequest. - * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteRequest. - * @implements ITaskDeleteRequest - * @constructor - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - */ - function TaskDeleteRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TaskDeleteRequest taskType. - * @member {string} taskType - * @memberof flyteidl.service.TaskDeleteRequest - * @instance - */ - TaskDeleteRequest.prototype.taskType = ""; - - /** - * TaskDeleteRequest jobId. - * @member {string} jobId - * @memberof flyteidl.service.TaskDeleteRequest - * @instance - */ - TaskDeleteRequest.prototype.jobId = ""; - - /** - * Creates a new TaskDeleteRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {flyteidl.service.ITaskDeleteRequest=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest instance - */ - TaskDeleteRequest.create = function create(properties) { - return new TaskDeleteRequest(properties); - }; - - /** - * Encodes the specified TaskDeleteRequest message. Does not implicitly {@link flyteidl.service.TaskDeleteRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {flyteidl.service.ITaskDeleteRequest} message TaskDeleteRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.taskType != null && message.hasOwnProperty("taskType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.taskType); - if (message.jobId != null && message.hasOwnProperty("jobId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.jobId); - return writer; - }; - - /** - * Decodes a TaskDeleteRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskDeleteRequest} TaskDeleteRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.taskType = reader.string(); - break; - case 2: - message.jobId = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskDeleteRequest message. - * @function verify - * @memberof flyteidl.service.TaskDeleteRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.taskType != null && message.hasOwnProperty("taskType")) - if (!$util.isString(message.taskType)) - return "taskType: string expected"; - if (message.jobId != null && message.hasOwnProperty("jobId")) - if (!$util.isString(message.jobId)) - return "jobId: string expected"; - return null; - }; - - return TaskDeleteRequest; - })(); - - service.TaskDeleteResponse = (function() { - - /** - * Properties of a TaskDeleteResponse. - * @memberof flyteidl.service - * @interface ITaskDeleteResponse - */ - - /** - * Constructs a new TaskDeleteResponse. - * @memberof flyteidl.service - * @classdesc Represents a TaskDeleteResponse. - * @implements ITaskDeleteResponse - * @constructor - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - */ - function TaskDeleteResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new TaskDeleteResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {flyteidl.service.ITaskDeleteResponse=} [properties] Properties to set - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse instance - */ - TaskDeleteResponse.create = function create(properties) { - return new TaskDeleteResponse(properties); - }; - - /** - * Encodes the specified TaskDeleteResponse message. Does not implicitly {@link flyteidl.service.TaskDeleteResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {flyteidl.service.ITaskDeleteResponse} message TaskDeleteResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TaskDeleteResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a TaskDeleteResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.TaskDeleteResponse} TaskDeleteResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TaskDeleteResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.TaskDeleteResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a TaskDeleteResponse message. - * @function verify - * @memberof flyteidl.service.TaskDeleteResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TaskDeleteResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return TaskDeleteResponse; - })(); - - service.UserInfoRequest = (function() { - - /** - * Properties of a UserInfoRequest. - * @memberof flyteidl.service - * @interface IUserInfoRequest - */ - - /** - * Constructs a new UserInfoRequest. - * @memberof flyteidl.service - * @classdesc Represents a UserInfoRequest. - * @implements IUserInfoRequest - * @constructor - * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set - */ - function UserInfoRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Creates a new UserInfoRequest instance using the specified properties. - * @function create - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {flyteidl.service.IUserInfoRequest=} [properties] Properties to set - * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest instance - */ - UserInfoRequest.create = function create(properties) { - return new UserInfoRequest(properties); - }; - - /** - * Encodes the specified UserInfoRequest message. Does not implicitly {@link flyteidl.service.UserInfoRequest.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {flyteidl.service.IUserInfoRequest} message UserInfoRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; - - /** - * Decodes a UserInfoRequest message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.UserInfoRequest} UserInfoRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UserInfoRequest message. - * @function verify - * @memberof flyteidl.service.UserInfoRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; - - return UserInfoRequest; - })(); - - service.UserInfoResponse = (function() { - - /** - * Properties of a UserInfoResponse. - * @memberof flyteidl.service - * @interface IUserInfoResponse - * @property {string|null} [subject] UserInfoResponse subject - * @property {string|null} [name] UserInfoResponse name - * @property {string|null} [preferredUsername] UserInfoResponse preferredUsername - * @property {string|null} [givenName] UserInfoResponse givenName - * @property {string|null} [familyName] UserInfoResponse familyName - * @property {string|null} [email] UserInfoResponse email - * @property {string|null} [picture] UserInfoResponse picture - * @property {google.protobuf.IStruct|null} [additionalClaims] UserInfoResponse additionalClaims - */ - - /** - * Constructs a new UserInfoResponse. - * @memberof flyteidl.service - * @classdesc Represents a UserInfoResponse. - * @implements IUserInfoResponse - * @constructor - * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set - */ - function UserInfoResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UserInfoResponse subject. - * @member {string} subject - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.subject = ""; - - /** - * UserInfoResponse name. - * @member {string} name - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.name = ""; - - /** - * UserInfoResponse preferredUsername. - * @member {string} preferredUsername - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.preferredUsername = ""; - - /** - * UserInfoResponse givenName. - * @member {string} givenName - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.givenName = ""; - - /** - * UserInfoResponse familyName. - * @member {string} familyName - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.familyName = ""; - - /** - * UserInfoResponse email. - * @member {string} email - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.email = ""; - - /** - * UserInfoResponse picture. - * @member {string} picture - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.picture = ""; - - /** - * UserInfoResponse additionalClaims. - * @member {google.protobuf.IStruct|null|undefined} additionalClaims - * @memberof flyteidl.service.UserInfoResponse - * @instance - */ - UserInfoResponse.prototype.additionalClaims = null; - - /** - * Creates a new UserInfoResponse instance using the specified properties. - * @function create - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {flyteidl.service.IUserInfoResponse=} [properties] Properties to set - * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse instance - */ - UserInfoResponse.create = function create(properties) { - return new UserInfoResponse(properties); - }; - - /** - * Encodes the specified UserInfoResponse message. Does not implicitly {@link flyteidl.service.UserInfoResponse.verify|verify} messages. - * @function encode - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {flyteidl.service.IUserInfoResponse} message UserInfoResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UserInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subject != null && message.hasOwnProperty("subject")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subject); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.preferredUsername); - if (message.givenName != null && message.hasOwnProperty("givenName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.givenName); - if (message.familyName != null && message.hasOwnProperty("familyName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.familyName); - if (message.email != null && message.hasOwnProperty("email")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.email); - if (message.picture != null && message.hasOwnProperty("picture")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.picture); - if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) - $root.google.protobuf.Struct.encode(message.additionalClaims, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a UserInfoResponse message from the specified reader or buffer. - * @function decode - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {flyteidl.service.UserInfoResponse} UserInfoResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UserInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.flyteidl.service.UserInfoResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.subject = reader.string(); - break; - case 2: - message.name = reader.string(); - break; - case 3: - message.preferredUsername = reader.string(); - break; - case 4: - message.givenName = reader.string(); - break; - case 5: - message.familyName = reader.string(); - break; - case 6: - message.email = reader.string(); - break; - case 7: - message.picture = reader.string(); - break; - case 8: - message.additionalClaims = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UserInfoResponse message. - * @function verify - * @memberof flyteidl.service.UserInfoResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UserInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.preferredUsername != null && message.hasOwnProperty("preferredUsername")) - if (!$util.isString(message.preferredUsername)) - return "preferredUsername: string expected"; - if (message.givenName != null && message.hasOwnProperty("givenName")) - if (!$util.isString(message.givenName)) - return "givenName: string expected"; - if (message.familyName != null && message.hasOwnProperty("familyName")) - if (!$util.isString(message.familyName)) - return "familyName: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.picture != null && message.hasOwnProperty("picture")) - if (!$util.isString(message.picture)) - return "picture: string expected"; - if (message.additionalClaims != null && message.hasOwnProperty("additionalClaims")) { - var error = $root.google.protobuf.Struct.verify(message.additionalClaims); - if (error) - return "additionalClaims." + error; - } - return null; - }; - - return UserInfoResponse; - })(); - - service.IdentityService = (function() { - - /** - * Constructs a new IdentityService service. - * @memberof flyteidl.service - * @classdesc Represents an IdentityService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IdentityService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IdentityService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IdentityService; - - /** - * Creates new IdentityService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.IdentityService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IdentityService} RPC service. Useful where requests and/or responses are streamed. - */ - IdentityService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.IdentityService#userInfo}. - * @memberof flyteidl.service.IdentityService - * @typedef UserInfoCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.service.UserInfoResponse} [response] UserInfoResponse - */ - - /** - * Calls UserInfo. - * @function userInfo - * @memberof flyteidl.service.IdentityService - * @instance - * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object - * @param {flyteidl.service.IdentityService.UserInfoCallback} callback Node-style callback called with the error, if any, and UserInfoResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IdentityService.prototype.userInfo = function userInfo(request, callback) { - return this.rpcCall(userInfo, $root.flyteidl.service.UserInfoRequest, $root.flyteidl.service.UserInfoResponse, request, callback); - }, "name", { value: "UserInfo" }); - - /** - * Calls UserInfo. - * @function userInfo - * @memberof flyteidl.service.IdentityService - * @instance - * @param {flyteidl.service.IUserInfoRequest} request UserInfoRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return IdentityService; - })(); - - service.SignalService = (function() { - - /** - * Constructs a new SignalService service. - * @memberof flyteidl.service - * @classdesc Represents a SignalService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function SignalService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (SignalService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = SignalService; - - /** - * Creates new SignalService service using the specified rpc implementation. - * @function create - * @memberof flyteidl.service.SignalService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {SignalService} RPC service. Useful where requests and/or responses are streamed. - */ - SignalService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link flyteidl.service.SignalService#getOrCreateSignal}. - * @memberof flyteidl.service.SignalService - * @typedef GetOrCreateSignalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.Signal} [response] Signal - */ - - /** - * Calls GetOrCreateSignal. - * @function getOrCreateSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object - * @param {flyteidl.service.SignalService.GetOrCreateSignalCallback} callback Node-style callback called with the error, if any, and Signal - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.getOrCreateSignal = function getOrCreateSignal(request, callback) { - return this.rpcCall(getOrCreateSignal, $root.flyteidl.admin.SignalGetOrCreateRequest, $root.flyteidl.admin.Signal, request, callback); - }, "name", { value: "GetOrCreateSignal" }); - - /** - * Calls GetOrCreateSignal. - * @function getOrCreateSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalGetOrCreateRequest} request SignalGetOrCreateRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.SignalService#listSignals}. - * @memberof flyteidl.service.SignalService - * @typedef ListSignalsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.SignalList} [response] SignalList - */ - - /** - * Calls ListSignals. - * @function listSignals - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object - * @param {flyteidl.service.SignalService.ListSignalsCallback} callback Node-style callback called with the error, if any, and SignalList - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.listSignals = function listSignals(request, callback) { - return this.rpcCall(listSignals, $root.flyteidl.admin.SignalListRequest, $root.flyteidl.admin.SignalList, request, callback); - }, "name", { value: "ListSignals" }); - - /** - * Calls ListSignals. - * @function listSignals - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalListRequest} request SignalListRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link flyteidl.service.SignalService#setSignal}. - * @memberof flyteidl.service.SignalService - * @typedef SetSignalCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {flyteidl.admin.SignalSetResponse} [response] SignalSetResponse - */ - - /** - * Calls SetSignal. - * @function setSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object - * @param {flyteidl.service.SignalService.SetSignalCallback} callback Node-style callback called with the error, if any, and SignalSetResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(SignalService.prototype.setSignal = function setSignal(request, callback) { - return this.rpcCall(setSignal, $root.flyteidl.admin.SignalSetRequest, $root.flyteidl.admin.SignalSetResponse, request, callback); - }, "name", { value: "SetSignal" }); - - /** - * Calls SetSignal. - * @function setSignal - * @memberof flyteidl.service.SignalService - * @instance - * @param {flyteidl.admin.ISignalSetRequest} request SignalSetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return SignalService; - })(); - - return service; - })(); - - return flyteidl; - })(); - - $root.google = (function() { - - /** - * Namespace google. - * @exports google - * @namespace - */ - var google = {}; - - google.protobuf = (function() { - - /** - * Namespace protobuf. - * @memberof google - * @namespace - */ - var protobuf = {}; - - protobuf.Timestamp = (function() { - - /** - * Properties of a Timestamp. - * @memberof google.protobuf - * @interface ITimestamp - * @property {Long|null} [seconds] Timestamp seconds - * @property {number|null} [nanos] Timestamp nanos - */ - - /** - * Constructs a new Timestamp. - * @memberof google.protobuf - * @classdesc Represents a Timestamp. - * @implements ITimestamp - * @constructor - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - */ - function Timestamp(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Timestamp seconds. - * @member {Long} seconds - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Timestamp nanos. - * @member {number} nanos - * @memberof google.protobuf.Timestamp - * @instance - */ - Timestamp.prototype.nanos = 0; - - /** - * Creates a new Timestamp instance using the specified properties. - * @function create - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp=} [properties] Properties to set - * @returns {google.protobuf.Timestamp} Timestamp instance - */ - Timestamp.create = function create(properties) { - return new Timestamp(properties); - }; - - /** - * Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Timestamp - * @static - * @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Timestamp.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Decodes a Timestamp message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Timestamp - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Timestamp} Timestamp - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Timestamp.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Timestamp message. - * @function verify - * @memberof google.protobuf.Timestamp - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Timestamp.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - return Timestamp; - })(); - - protobuf.Duration = (function() { - - /** - * Properties of a Duration. - * @memberof google.protobuf - * @interface IDuration - * @property {Long|null} [seconds] Duration seconds - * @property {number|null} [nanos] Duration nanos - */ - - /** - * Constructs a new Duration. - * @memberof google.protobuf - * @classdesc Represents a Duration. - * @implements IDuration - * @constructor - * @param {google.protobuf.IDuration=} [properties] Properties to set - */ - function Duration(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Duration seconds. - * @member {Long} seconds - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Duration nanos. - * @member {number} nanos - * @memberof google.protobuf.Duration - * @instance - */ - Duration.prototype.nanos = 0; - - /** - * Creates a new Duration instance using the specified properties. - * @function create - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration=} [properties] Properties to set - * @returns {google.protobuf.Duration} Duration instance - */ - Duration.create = function create(properties) { - return new Duration(properties); - }; - - /** - * Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Duration - * @static - * @param {google.protobuf.IDuration} message Duration message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Duration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.seconds != null && message.hasOwnProperty("seconds")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds); - if (message.nanos != null && message.hasOwnProperty("nanos")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos); - return writer; - }; - - /** - * Decodes a Duration message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Duration - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Duration} Duration - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Duration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.seconds = reader.int64(); - break; - case 2: - message.nanos = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Duration message. - * @function verify - * @memberof google.protobuf.Duration - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Duration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.seconds != null && message.hasOwnProperty("seconds")) - if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high))) - return "seconds: integer|Long expected"; - if (message.nanos != null && message.hasOwnProperty("nanos")) - if (!$util.isInteger(message.nanos)) - return "nanos: integer expected"; - return null; - }; - - return Duration; - })(); - - protobuf.Struct = (function() { - - /** - * Properties of a Struct. - * @memberof google.protobuf - * @interface IStruct - * @property {Object.|null} [fields] Struct fields - */ - - /** - * Constructs a new Struct. - * @memberof google.protobuf - * @classdesc Represents a Struct. - * @implements IStruct - * @constructor - * @param {google.protobuf.IStruct=} [properties] Properties to set - */ - function Struct(properties) { - this.fields = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Struct fields. - * @member {Object.} fields - * @memberof google.protobuf.Struct - * @instance - */ - Struct.prototype.fields = $util.emptyObject; - - /** - * Creates a new Struct instance using the specified properties. - * @function create - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct=} [properties] Properties to set - * @returns {google.protobuf.Struct} Struct instance - */ - Struct.create = function create(properties) { - return new Struct(properties); - }; - - /** - * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Struct - * @static - * @param {google.protobuf.IStruct} message Struct message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Struct.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fields != null && message.hasOwnProperty("fields")) - for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; - - /** - * Decodes a Struct message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Struct - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Struct} Struct - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Struct.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - reader.skip().pos++; - if (message.fields === $util.emptyObject) - message.fields = {}; - key = reader.string(); - reader.pos++; - message.fields[key] = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Struct message. - * @function verify - * @memberof google.protobuf.Struct - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Struct.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!$util.isObject(message.fields)) - return "fields: object expected"; - var key = Object.keys(message.fields); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.fields[key[i]]); - if (error) - return "fields." + error; - } - } - return null; - }; - - return Struct; - })(); - - protobuf.Value = (function() { - - /** - * Properties of a Value. - * @memberof google.protobuf - * @interface IValue - * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue - * @property {number|null} [numberValue] Value numberValue - * @property {string|null} [stringValue] Value stringValue - * @property {boolean|null} [boolValue] Value boolValue - * @property {google.protobuf.IStruct|null} [structValue] Value structValue - * @property {google.protobuf.IListValue|null} [listValue] Value listValue - */ - - /** - * Constructs a new Value. - * @memberof google.protobuf - * @classdesc Represents a Value. - * @implements IValue - * @constructor - * @param {google.protobuf.IValue=} [properties] Properties to set - */ - function Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Value nullValue. - * @member {google.protobuf.NullValue} nullValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.nullValue = 0; - - /** - * Value numberValue. - * @member {number} numberValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.numberValue = 0; - - /** - * Value stringValue. - * @member {string} stringValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.stringValue = ""; - - /** - * Value boolValue. - * @member {boolean} boolValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.boolValue = false; - - /** - * Value structValue. - * @member {google.protobuf.IStruct|null|undefined} structValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.structValue = null; - - /** - * Value listValue. - * @member {google.protobuf.IListValue|null|undefined} listValue - * @memberof google.protobuf.Value - * @instance - */ - Value.prototype.listValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Value kind. - * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind - * @memberof google.protobuf.Value - * @instance - */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue=} [properties] Properties to set - * @returns {google.protobuf.Value} Value instance - */ - Value.create = function create(properties) { - return new Value(properties); - }; - - /** - * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Value - * @static - * @param {google.protobuf.IValue} message Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullValue != null && message.hasOwnProperty("nullValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); - if (message.numberValue != null && message.hasOwnProperty("numberValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolValue != null && message.hasOwnProperty("boolValue")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); - if (message.structValue != null && message.hasOwnProperty("structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.listValue != null && message.hasOwnProperty("listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Value} Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.nullValue = reader.int32(); - break; - case 2: - message.numberValue = reader.double(); - break; - case 3: - message.stringValue = reader.string(); - break; - case 4: - message.boolValue = reader.bool(); - break; - case 5: - message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 6: - message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Value message. - * @function verify - * @memberof google.protobuf.Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - properties.kind = 1; - switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: - break; - } - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.numberValue !== "number") - return "numberValue: number expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.Struct.verify(message.structValue); - if (error) - return "structValue." + error; - } - } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - if (properties.kind === 1) - return "kind: multiple values"; - properties.kind = 1; - { - var error = $root.google.protobuf.ListValue.verify(message.listValue); - if (error) - return "listValue." + error; - } - } - return null; - }; - - return Value; - })(); - - /** - * NullValue enum. - * @name google.protobuf.NullValue - * @enum {string} - * @property {number} NULL_VALUE=0 NULL_VALUE value - */ - protobuf.NullValue = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_VALUE"] = 0; - return values; - })(); - - protobuf.ListValue = (function() { - - /** - * Properties of a ListValue. - * @memberof google.protobuf - * @interface IListValue - * @property {Array.|null} [values] ListValue values - */ - - /** - * Constructs a new ListValue. - * @memberof google.protobuf - * @classdesc Represents a ListValue. - * @implements IListValue - * @constructor - * @param {google.protobuf.IListValue=} [properties] Properties to set - */ - function ListValue(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ListValue values. - * @member {Array.} values - * @memberof google.protobuf.ListValue - * @instance - */ - ListValue.prototype.values = $util.emptyArray; - - /** - * Creates a new ListValue instance using the specified properties. - * @function create - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue=} [properties] Properties to set - * @returns {google.protobuf.ListValue} ListValue instance - */ - ListValue.create = function create(properties) { - return new ListValue(properties); - }; - - /** - * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ListValue - * @static - * @param {google.protobuf.IListValue} message ListValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ListValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ListValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ListValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ListValue} ListValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ListValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ListValue message. - * @function verify - * @memberof google.protobuf.ListValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ListValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.protobuf.Value.verify(message.values[i]); - if (error) - return "values." + error; - } - } - return null; - }; - - return ListValue; - })(); - - protobuf.DoubleValue = (function() { - - /** - * Properties of a DoubleValue. - * @memberof google.protobuf - * @interface IDoubleValue - * @property {number|null} [value] DoubleValue value - */ - - /** - * Constructs a new DoubleValue. - * @memberof google.protobuf - * @classdesc Represents a DoubleValue. - * @implements IDoubleValue - * @constructor - * @param {google.protobuf.IDoubleValue=} [properties] Properties to set - */ - function DoubleValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DoubleValue value. - * @member {number} value - * @memberof google.protobuf.DoubleValue - * @instance - */ - DoubleValue.prototype.value = 0; - - /** - * Creates a new DoubleValue instance using the specified properties. - * @function create - * @memberof google.protobuf.DoubleValue - * @static - * @param {google.protobuf.IDoubleValue=} [properties] Properties to set - * @returns {google.protobuf.DoubleValue} DoubleValue instance - */ - DoubleValue.create = function create(properties) { - return new DoubleValue(properties); - }; - - /** - * Encodes the specified DoubleValue message. Does not implicitly {@link google.protobuf.DoubleValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DoubleValue - * @static - * @param {google.protobuf.IDoubleValue} message DoubleValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - return writer; - }; - - /** - * Decodes a DoubleValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DoubleValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DoubleValue} DoubleValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DoubleValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DoubleValue message. - * @function verify - * @memberof google.protobuf.DoubleValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DoubleValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - return DoubleValue; - })(); - - protobuf.FloatValue = (function() { - - /** - * Properties of a FloatValue. - * @memberof google.protobuf - * @interface IFloatValue - * @property {number|null} [value] FloatValue value - */ - - /** - * Constructs a new FloatValue. - * @memberof google.protobuf - * @classdesc Represents a FloatValue. - * @implements IFloatValue - * @constructor - * @param {google.protobuf.IFloatValue=} [properties] Properties to set - */ - function FloatValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FloatValue value. - * @member {number} value - * @memberof google.protobuf.FloatValue - * @instance - */ - FloatValue.prototype.value = 0; - - /** - * Creates a new FloatValue instance using the specified properties. - * @function create - * @memberof google.protobuf.FloatValue - * @static - * @param {google.protobuf.IFloatValue=} [properties] Properties to set - * @returns {google.protobuf.FloatValue} FloatValue instance - */ - FloatValue.create = function create(properties) { - return new FloatValue(properties); - }; - - /** - * Encodes the specified FloatValue message. Does not implicitly {@link google.protobuf.FloatValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FloatValue - * @static - * @param {google.protobuf.IFloatValue} message FloatValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FloatValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 5 =*/13).float(message.value); - return writer; - }; - - /** - * Decodes a FloatValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FloatValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FloatValue} FloatValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FloatValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FloatValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.float(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FloatValue message. - * @function verify - * @memberof google.protobuf.FloatValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FloatValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; - - return FloatValue; - })(); - - protobuf.Int64Value = (function() { - - /** - * Properties of an Int64Value. - * @memberof google.protobuf - * @interface IInt64Value - * @property {Long|null} [value] Int64Value value - */ - - /** - * Constructs a new Int64Value. - * @memberof google.protobuf - * @classdesc Represents an Int64Value. - * @implements IInt64Value - * @constructor - * @param {google.protobuf.IInt64Value=} [properties] Properties to set - */ - function Int64Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Int64Value value. - * @member {Long} value - * @memberof google.protobuf.Int64Value - * @instance - */ - Int64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * Creates a new Int64Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Int64Value - * @static - * @param {google.protobuf.IInt64Value=} [properties] Properties to set - * @returns {google.protobuf.Int64Value} Int64Value instance - */ - Int64Value.create = function create(properties) { - return new Int64Value(properties); - }; - - /** - * Encodes the specified Int64Value message. Does not implicitly {@link google.protobuf.Int64Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Int64Value - * @static - * @param {google.protobuf.IInt64Value} message Int64Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int64Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.value); - return writer; - }; - - /** - * Decodes an Int64Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Int64Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Int64Value} Int64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int64Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int64Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.int64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Int64Value message. - * @function verify - * @memberof google.protobuf.Int64Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Int64Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; - return null; - }; - - return Int64Value; - })(); - - protobuf.UInt64Value = (function() { - - /** - * Properties of a UInt64Value. - * @memberof google.protobuf - * @interface IUInt64Value - * @property {Long|null} [value] UInt64Value value - */ - - /** - * Constructs a new UInt64Value. - * @memberof google.protobuf - * @classdesc Represents a UInt64Value. - * @implements IUInt64Value - * @constructor - * @param {google.protobuf.IUInt64Value=} [properties] Properties to set - */ - function UInt64Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UInt64Value value. - * @member {Long} value - * @memberof google.protobuf.UInt64Value - * @instance - */ - UInt64Value.prototype.value = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * Creates a new UInt64Value instance using the specified properties. - * @function create - * @memberof google.protobuf.UInt64Value - * @static - * @param {google.protobuf.IUInt64Value=} [properties] Properties to set - * @returns {google.protobuf.UInt64Value} UInt64Value instance - */ - UInt64Value.create = function create(properties) { - return new UInt64Value(properties); - }; - - /** - * Encodes the specified UInt64Value message. Does not implicitly {@link google.protobuf.UInt64Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UInt64Value - * @static - * @param {google.protobuf.IUInt64Value} message UInt64Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UInt64Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.value); - return writer; - }; - - /** - * Decodes a UInt64Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UInt64Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UInt64Value} UInt64Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UInt64Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt64Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint64(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UInt64Value message. - * @function verify - * @memberof google.protobuf.UInt64Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UInt64Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; - return null; - }; - - return UInt64Value; - })(); - - protobuf.Int32Value = (function() { - - /** - * Properties of an Int32Value. - * @memberof google.protobuf - * @interface IInt32Value - * @property {number|null} [value] Int32Value value - */ - - /** - * Constructs a new Int32Value. - * @memberof google.protobuf - * @classdesc Represents an Int32Value. - * @implements IInt32Value - * @constructor - * @param {google.protobuf.IInt32Value=} [properties] Properties to set - */ - function Int32Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Int32Value value. - * @member {number} value - * @memberof google.protobuf.Int32Value - * @instance - */ - Int32Value.prototype.value = 0; - - /** - * Creates a new Int32Value instance using the specified properties. - * @function create - * @memberof google.protobuf.Int32Value - * @static - * @param {google.protobuf.IInt32Value=} [properties] Properties to set - * @returns {google.protobuf.Int32Value} Int32Value instance - */ - Int32Value.create = function create(properties) { - return new Int32Value(properties); - }; - - /** - * Encodes the specified Int32Value message. Does not implicitly {@link google.protobuf.Int32Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Int32Value - * @static - * @param {google.protobuf.IInt32Value} message Int32Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Int32Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.value); - return writer; - }; - - /** - * Decodes an Int32Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Int32Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Int32Value} Int32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Int32Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Int32Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Int32Value message. - * @function verify - * @memberof google.protobuf.Int32Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Int32Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - return null; - }; - - return Int32Value; - })(); - - protobuf.UInt32Value = (function() { - - /** - * Properties of a UInt32Value. - * @memberof google.protobuf - * @interface IUInt32Value - * @property {number|null} [value] UInt32Value value - */ - - /** - * Constructs a new UInt32Value. - * @memberof google.protobuf - * @classdesc Represents a UInt32Value. - * @implements IUInt32Value - * @constructor - * @param {google.protobuf.IUInt32Value=} [properties] Properties to set - */ - function UInt32Value(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UInt32Value value. - * @member {number} value - * @memberof google.protobuf.UInt32Value - * @instance - */ - UInt32Value.prototype.value = 0; - - /** - * Creates a new UInt32Value instance using the specified properties. - * @function create - * @memberof google.protobuf.UInt32Value - * @static - * @param {google.protobuf.IUInt32Value=} [properties] Properties to set - * @returns {google.protobuf.UInt32Value} UInt32Value instance - */ - UInt32Value.create = function create(properties) { - return new UInt32Value(properties); - }; - - /** - * Encodes the specified UInt32Value message. Does not implicitly {@link google.protobuf.UInt32Value.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UInt32Value - * @static - * @param {google.protobuf.IUInt32Value} message UInt32Value message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UInt32Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.value); - return writer; - }; - - /** - * Decodes a UInt32Value message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UInt32Value - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UInt32Value} UInt32Value - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UInt32Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UInt32Value(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.uint32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a UInt32Value message. - * @function verify - * @memberof google.protobuf.UInt32Value - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UInt32Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value)) - return "value: integer expected"; - return null; - }; - - return UInt32Value; - })(); - - protobuf.BoolValue = (function() { - - /** - * Properties of a BoolValue. - * @memberof google.protobuf - * @interface IBoolValue - * @property {boolean|null} [value] BoolValue value - */ - - /** - * Constructs a new BoolValue. - * @memberof google.protobuf - * @classdesc Represents a BoolValue. - * @implements IBoolValue - * @constructor - * @param {google.protobuf.IBoolValue=} [properties] Properties to set - */ - function BoolValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BoolValue value. - * @member {boolean} value - * @memberof google.protobuf.BoolValue - * @instance - */ - BoolValue.prototype.value = false; - - /** - * Creates a new BoolValue instance using the specified properties. - * @function create - * @memberof google.protobuf.BoolValue - * @static - * @param {google.protobuf.IBoolValue=} [properties] Properties to set - * @returns {google.protobuf.BoolValue} BoolValue instance - */ - BoolValue.create = function create(properties) { - return new BoolValue(properties); - }; - - /** - * Encodes the specified BoolValue message. Does not implicitly {@link google.protobuf.BoolValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.BoolValue - * @static - * @param {google.protobuf.IBoolValue} message BoolValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BoolValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.value); - return writer; - }; - - /** - * Decodes a BoolValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.BoolValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.BoolValue} BoolValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BoolValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BoolValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BoolValue message. - * @function verify - * @memberof google.protobuf.BoolValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BoolValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; - return null; - }; - - return BoolValue; - })(); - - protobuf.StringValue = (function() { - - /** - * Properties of a StringValue. - * @memberof google.protobuf - * @interface IStringValue - * @property {string|null} [value] StringValue value - */ - - /** - * Constructs a new StringValue. - * @memberof google.protobuf - * @classdesc Represents a StringValue. - * @implements IStringValue - * @constructor - * @param {google.protobuf.IStringValue=} [properties] Properties to set - */ - function StringValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StringValue value. - * @member {string} value - * @memberof google.protobuf.StringValue - * @instance - */ - StringValue.prototype.value = ""; - - /** - * Creates a new StringValue instance using the specified properties. - * @function create - * @memberof google.protobuf.StringValue - * @static - * @param {google.protobuf.IStringValue=} [properties] Properties to set - * @returns {google.protobuf.StringValue} StringValue instance - */ - StringValue.create = function create(properties) { - return new StringValue(properties); - }; - - /** - * Encodes the specified StringValue message. Does not implicitly {@link google.protobuf.StringValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.StringValue - * @static - * @param {google.protobuf.IStringValue} message StringValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StringValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - return writer; - }; - - /** - * Decodes a StringValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.StringValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.StringValue} StringValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StringValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.StringValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a StringValue message. - * @function verify - * @memberof google.protobuf.StringValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StringValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - return null; - }; - - return StringValue; - })(); - - protobuf.BytesValue = (function() { - - /** - * Properties of a BytesValue. - * @memberof google.protobuf - * @interface IBytesValue - * @property {Uint8Array|null} [value] BytesValue value - */ - - /** - * Constructs a new BytesValue. - * @memberof google.protobuf - * @classdesc Represents a BytesValue. - * @implements IBytesValue - * @constructor - * @param {google.protobuf.IBytesValue=} [properties] Properties to set - */ - function BytesValue(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * BytesValue value. - * @member {Uint8Array} value - * @memberof google.protobuf.BytesValue - * @instance - */ - BytesValue.prototype.value = $util.newBuffer([]); - - /** - * Creates a new BytesValue instance using the specified properties. - * @function create - * @memberof google.protobuf.BytesValue - * @static - * @param {google.protobuf.IBytesValue=} [properties] Properties to set - * @returns {google.protobuf.BytesValue} BytesValue instance - */ - BytesValue.create = function create(properties) { - return new BytesValue(properties); - }; - - /** - * Encodes the specified BytesValue message. Does not implicitly {@link google.protobuf.BytesValue.verify|verify} messages. - * @function encode - * @memberof google.protobuf.BytesValue - * @static - * @param {google.protobuf.IBytesValue} message BytesValue message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - BytesValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.value); - return writer; - }; - - /** - * Decodes a BytesValue message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.BytesValue - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.BytesValue} BytesValue - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BytesValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.BytesValue(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a BytesValue message. - * @function verify - * @memberof google.protobuf.BytesValue - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - BytesValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - - return BytesValue; - })(); - - protobuf.Any = (function() { - - /** - * Properties of an Any. - * @memberof google.protobuf - * @interface IAny - * @property {string|null} [type_url] Any type_url - * @property {Uint8Array|null} [value] Any value - */ - - /** - * Constructs a new Any. - * @memberof google.protobuf - * @classdesc Represents an Any. - * @implements IAny - * @constructor - * @param {google.protobuf.IAny=} [properties] Properties to set - */ - function Any(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Any type_url. - * @member {string} type_url - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.type_url = ""; - - /** - * Any value. - * @member {Uint8Array} value - * @memberof google.protobuf.Any - * @instance - */ - Any.prototype.value = $util.newBuffer([]); - - /** - * Creates a new Any instance using the specified properties. - * @function create - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny=} [properties] Properties to set - * @returns {google.protobuf.Any} Any instance - */ - Any.create = function create(properties) { - return new Any(properties); - }; - - /** - * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages. - * @function encode - * @memberof google.protobuf.Any - * @static - * @param {google.protobuf.IAny} message Any message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Any.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type_url != null && message.hasOwnProperty("type_url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url); - if (message.value != null && message.hasOwnProperty("value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - return writer; - }; - - /** - * Decodes an Any message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.Any - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.Any} Any - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Any.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type_url = reader.string(); - break; - case 2: - message.value = reader.bytes(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Any message. - * @function verify - * @memberof google.protobuf.Any - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Any.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type_url != null && message.hasOwnProperty("type_url")) - if (!$util.isString(message.type_url)) - return "type_url: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - return null; - }; - - return Any; - })(); - - protobuf.FileDescriptorSet = (function() { - - /** - * Properties of a FileDescriptorSet. - * @memberof google.protobuf - * @interface IFileDescriptorSet - * @property {Array.|null} [file] FileDescriptorSet file - */ - - /** - * Constructs a new FileDescriptorSet. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorSet. - * @implements IFileDescriptorSet - * @constructor - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - */ - function FileDescriptorSet(properties) { - this.file = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorSet file. - * @member {Array.} file - * @memberof google.protobuf.FileDescriptorSet - * @instance - */ - FileDescriptorSet.prototype.file = $util.emptyArray; - - /** - * Creates a new FileDescriptorSet instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet instance - */ - FileDescriptorSet.create = function create(properties) { - return new FileDescriptorSet(properties); - }; - - /** - * Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {google.protobuf.IFileDescriptorSet} message FileDescriptorSet message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorSet.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.file != null && message.file.length) - for (var i = 0; i < message.file.length; ++i) - $root.google.protobuf.FileDescriptorProto.encode(message.file[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FileDescriptorSet message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorSet} FileDescriptorSet - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorSet.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorSet(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.file && message.file.length)) - message.file = []; - message.file.push($root.google.protobuf.FileDescriptorProto.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileDescriptorSet message. - * @function verify - * @memberof google.protobuf.FileDescriptorSet - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorSet.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.file != null && message.hasOwnProperty("file")) { - if (!Array.isArray(message.file)) - return "file: array expected"; - for (var i = 0; i < message.file.length; ++i) { - var error = $root.google.protobuf.FileDescriptorProto.verify(message.file[i]); - if (error) - return "file." + error; - } - } - return null; - }; - - return FileDescriptorSet; - })(); - - protobuf.FileDescriptorProto = (function() { - - /** - * Properties of a FileDescriptorProto. - * @memberof google.protobuf - * @interface IFileDescriptorProto - * @property {string|null} [name] FileDescriptorProto name - * @property {string|null} ["package"] FileDescriptorProto package - * @property {Array.|null} [dependency] FileDescriptorProto dependency - * @property {Array.|null} [publicDependency] FileDescriptorProto publicDependency - * @property {Array.|null} [weakDependency] FileDescriptorProto weakDependency - * @property {Array.|null} [messageType] FileDescriptorProto messageType - * @property {Array.|null} [enumType] FileDescriptorProto enumType - * @property {Array.|null} [service] FileDescriptorProto service - * @property {Array.|null} [extension] FileDescriptorProto extension - * @property {google.protobuf.IFileOptions|null} [options] FileDescriptorProto options - * @property {google.protobuf.ISourceCodeInfo|null} [sourceCodeInfo] FileDescriptorProto sourceCodeInfo - * @property {string|null} [syntax] FileDescriptorProto syntax - */ - - /** - * Constructs a new FileDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FileDescriptorProto. - * @implements IFileDescriptorProto - * @constructor - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - */ - function FileDescriptorProto(properties) { - this.dependency = []; - this.publicDependency = []; - this.weakDependency = []; - this.messageType = []; - this.enumType = []; - this.service = []; - this.extension = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.name = ""; - - /** - * FileDescriptorProto package. - * @member {string} package - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype["package"] = ""; - - /** - * FileDescriptorProto dependency. - * @member {Array.} dependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.dependency = $util.emptyArray; - - /** - * FileDescriptorProto publicDependency. - * @member {Array.} publicDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.publicDependency = $util.emptyArray; - - /** - * FileDescriptorProto weakDependency. - * @member {Array.} weakDependency - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.weakDependency = $util.emptyArray; - - /** - * FileDescriptorProto messageType. - * @member {Array.} messageType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.messageType = $util.emptyArray; - - /** - * FileDescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * FileDescriptorProto service. - * @member {Array.} service - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.service = $util.emptyArray; - - /** - * FileDescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.extension = $util.emptyArray; - - /** - * FileDescriptorProto options. - * @member {google.protobuf.IFileOptions|null|undefined} options - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.options = null; - - /** - * FileDescriptorProto sourceCodeInfo. - * @member {google.protobuf.ISourceCodeInfo|null|undefined} sourceCodeInfo - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.sourceCodeInfo = null; - - /** - * FileDescriptorProto syntax. - * @member {string} syntax - * @memberof google.protobuf.FileDescriptorProto - * @instance - */ - FileDescriptorProto.prototype.syntax = ""; - - /** - * Creates a new FileDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto instance - */ - FileDescriptorProto.create = function create(properties) { - return new FileDescriptorProto(properties); - }; - - /** - * Encodes the specified FileDescriptorProto message. Does not implicitly {@link google.protobuf.FileDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {google.protobuf.IFileDescriptorProto} message FileDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message["package"] != null && message.hasOwnProperty("package")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message["package"]); - if (message.dependency != null && message.dependency.length) - for (var i = 0; i < message.dependency.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dependency[i]); - if (message.messageType != null && message.messageType.length) - for (var i = 0; i < message.messageType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.messageType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.service != null && message.service.length) - for (var i = 0; i < message.service.length; ++i) - $root.google.protobuf.ServiceDescriptorProto.encode(message.service[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.FileOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) - $root.google.protobuf.SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.publicDependency != null && message.publicDependency.length) - for (var i = 0; i < message.publicDependency.length; ++i) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.publicDependency[i]); - if (message.weakDependency != null && message.weakDependency.length) - for (var i = 0; i < message.weakDependency.length; ++i) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.weakDependency[i]); - if (message.syntax != null && message.hasOwnProperty("syntax")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.syntax); - return writer; - }; - - /** - * Decodes a FileDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileDescriptorProto} FileDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message["package"] = reader.string(); - break; - case 3: - if (!(message.dependency && message.dependency.length)) - message.dependency = []; - message.dependency.push(reader.string()); - break; - case 10: - if (!(message.publicDependency && message.publicDependency.length)) - message.publicDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.publicDependency.push(reader.int32()); - } else - message.publicDependency.push(reader.int32()); - break; - case 11: - if (!(message.weakDependency && message.weakDependency.length)) - message.weakDependency = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.weakDependency.push(reader.int32()); - } else - message.weakDependency.push(reader.int32()); - break; - case 4: - if (!(message.messageType && message.messageType.length)) - message.messageType = []; - message.messageType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.service && message.service.length)) - message.service = []; - message.service.push($root.google.protobuf.ServiceDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 8: - message.options = $root.google.protobuf.FileOptions.decode(reader, reader.uint32()); - break; - case 9: - message.sourceCodeInfo = $root.google.protobuf.SourceCodeInfo.decode(reader, reader.uint32()); - break; - case 12: - message.syntax = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileDescriptorProto message. - * @function verify - * @memberof google.protobuf.FileDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message["package"] != null && message.hasOwnProperty("package")) - if (!$util.isString(message["package"])) - return "package: string expected"; - if (message.dependency != null && message.hasOwnProperty("dependency")) { - if (!Array.isArray(message.dependency)) - return "dependency: array expected"; - for (var i = 0; i < message.dependency.length; ++i) - if (!$util.isString(message.dependency[i])) - return "dependency: string[] expected"; - } - if (message.publicDependency != null && message.hasOwnProperty("publicDependency")) { - if (!Array.isArray(message.publicDependency)) - return "publicDependency: array expected"; - for (var i = 0; i < message.publicDependency.length; ++i) - if (!$util.isInteger(message.publicDependency[i])) - return "publicDependency: integer[] expected"; - } - if (message.weakDependency != null && message.hasOwnProperty("weakDependency")) { - if (!Array.isArray(message.weakDependency)) - return "weakDependency: array expected"; - for (var i = 0; i < message.weakDependency.length; ++i) - if (!$util.isInteger(message.weakDependency[i])) - return "weakDependency: integer[] expected"; - } - if (message.messageType != null && message.hasOwnProperty("messageType")) { - if (!Array.isArray(message.messageType)) - return "messageType: array expected"; - for (var i = 0; i < message.messageType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.messageType[i]); - if (error) - return "messageType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.service != null && message.hasOwnProperty("service")) { - if (!Array.isArray(message.service)) - return "service: array expected"; - for (var i = 0; i < message.service.length; ++i) { - var error = $root.google.protobuf.ServiceDescriptorProto.verify(message.service[i]); - if (error) - return "service." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FileOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.sourceCodeInfo != null && message.hasOwnProperty("sourceCodeInfo")) { - var error = $root.google.protobuf.SourceCodeInfo.verify(message.sourceCodeInfo); - if (error) - return "sourceCodeInfo." + error; - } - if (message.syntax != null && message.hasOwnProperty("syntax")) - if (!$util.isString(message.syntax)) - return "syntax: string expected"; - return null; - }; - - return FileDescriptorProto; - })(); - - protobuf.DescriptorProto = (function() { - - /** - * Properties of a DescriptorProto. - * @memberof google.protobuf - * @interface IDescriptorProto - * @property {string|null} [name] DescriptorProto name - * @property {Array.|null} [field] DescriptorProto field - * @property {Array.|null} [extension] DescriptorProto extension - * @property {Array.|null} [nestedType] DescriptorProto nestedType - * @property {Array.|null} [enumType] DescriptorProto enumType - * @property {Array.|null} [extensionRange] DescriptorProto extensionRange - * @property {Array.|null} [oneofDecl] DescriptorProto oneofDecl - * @property {google.protobuf.IMessageOptions|null} [options] DescriptorProto options - * @property {Array.|null} [reservedRange] DescriptorProto reservedRange - * @property {Array.|null} [reservedName] DescriptorProto reservedName - */ - - /** - * Constructs a new DescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a DescriptorProto. - * @implements IDescriptorProto - * @constructor - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - */ - function DescriptorProto(properties) { - this.field = []; - this.extension = []; - this.nestedType = []; - this.enumType = []; - this.extensionRange = []; - this.oneofDecl = []; - this.reservedRange = []; - this.reservedName = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DescriptorProto name. - * @member {string} name - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.name = ""; - - /** - * DescriptorProto field. - * @member {Array.} field - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.field = $util.emptyArray; - - /** - * DescriptorProto extension. - * @member {Array.} extension - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extension = $util.emptyArray; - - /** - * DescriptorProto nestedType. - * @member {Array.} nestedType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.nestedType = $util.emptyArray; - - /** - * DescriptorProto enumType. - * @member {Array.} enumType - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.enumType = $util.emptyArray; - - /** - * DescriptorProto extensionRange. - * @member {Array.} extensionRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.extensionRange = $util.emptyArray; - - /** - * DescriptorProto oneofDecl. - * @member {Array.} oneofDecl - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.oneofDecl = $util.emptyArray; - - /** - * DescriptorProto options. - * @member {google.protobuf.IMessageOptions|null|undefined} options - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.options = null; - - /** - * DescriptorProto reservedRange. - * @member {Array.} reservedRange - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedRange = $util.emptyArray; - - /** - * DescriptorProto reservedName. - * @member {Array.} reservedName - * @memberof google.protobuf.DescriptorProto - * @instance - */ - DescriptorProto.prototype.reservedName = $util.emptyArray; - - /** - * Creates a new DescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto} DescriptorProto instance - */ - DescriptorProto.create = function create(properties) { - return new DescriptorProto(properties); - }; - - /** - * Encodes the specified DescriptorProto message. Does not implicitly {@link google.protobuf.DescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {google.protobuf.IDescriptorProto} message DescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.field != null && message.field.length) - for (var i = 0; i < message.field.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.field[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.nestedType != null && message.nestedType.length) - for (var i = 0; i < message.nestedType.length; ++i) - $root.google.protobuf.DescriptorProto.encode(message.nestedType[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enumType != null && message.enumType.length) - for (var i = 0; i < message.enumType.length; ++i) - $root.google.protobuf.EnumDescriptorProto.encode(message.enumType[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.extensionRange != null && message.extensionRange.length) - for (var i = 0; i < message.extensionRange.length; ++i) - $root.google.protobuf.DescriptorProto.ExtensionRange.encode(message.extensionRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.extension != null && message.extension.length) - for (var i = 0; i < message.extension.length; ++i) - $root.google.protobuf.FieldDescriptorProto.encode(message.extension[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.MessageOptions.encode(message.options, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.oneofDecl != null && message.oneofDecl.length) - for (var i = 0; i < message.oneofDecl.length; ++i) - $root.google.protobuf.OneofDescriptorProto.encode(message.oneofDecl[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.reservedRange != null && message.reservedRange.length) - for (var i = 0; i < message.reservedRange.length; ++i) - $root.google.protobuf.DescriptorProto.ReservedRange.encode(message.reservedRange[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedName != null && message.reservedName.length) - for (var i = 0; i < message.reservedName.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedName[i]); - return writer; - }; - - /** - * Decodes a DescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto} DescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.field && message.field.length)) - message.field = []; - message.field.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 6: - if (!(message.extension && message.extension.length)) - message.extension = []; - message.extension.push($root.google.protobuf.FieldDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - if (!(message.nestedType && message.nestedType.length)) - message.nestedType = []; - message.nestedType.push($root.google.protobuf.DescriptorProto.decode(reader, reader.uint32())); - break; - case 4: - if (!(message.enumType && message.enumType.length)) - message.enumType = []; - message.enumType.push($root.google.protobuf.EnumDescriptorProto.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.extensionRange && message.extensionRange.length)) - message.extensionRange = []; - message.extensionRange.push($root.google.protobuf.DescriptorProto.ExtensionRange.decode(reader, reader.uint32())); - break; - case 8: - if (!(message.oneofDecl && message.oneofDecl.length)) - message.oneofDecl = []; - message.oneofDecl.push($root.google.protobuf.OneofDescriptorProto.decode(reader, reader.uint32())); - break; - case 7: - message.options = $root.google.protobuf.MessageOptions.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.reservedRange && message.reservedRange.length)) - message.reservedRange = []; - message.reservedRange.push($root.google.protobuf.DescriptorProto.ReservedRange.decode(reader, reader.uint32())); - break; - case 10: - if (!(message.reservedName && message.reservedName.length)) - message.reservedName = []; - message.reservedName.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a DescriptorProto message. - * @function verify - * @memberof google.protobuf.DescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.field != null && message.hasOwnProperty("field")) { - if (!Array.isArray(message.field)) - return "field: array expected"; - for (var i = 0; i < message.field.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.field[i]); - if (error) - return "field." + error; - } - } - if (message.extension != null && message.hasOwnProperty("extension")) { - if (!Array.isArray(message.extension)) - return "extension: array expected"; - for (var i = 0; i < message.extension.length; ++i) { - var error = $root.google.protobuf.FieldDescriptorProto.verify(message.extension[i]); - if (error) - return "extension." + error; - } - } - if (message.nestedType != null && message.hasOwnProperty("nestedType")) { - if (!Array.isArray(message.nestedType)) - return "nestedType: array expected"; - for (var i = 0; i < message.nestedType.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.verify(message.nestedType[i]); - if (error) - return "nestedType." + error; - } - } - if (message.enumType != null && message.hasOwnProperty("enumType")) { - if (!Array.isArray(message.enumType)) - return "enumType: array expected"; - for (var i = 0; i < message.enumType.length; ++i) { - var error = $root.google.protobuf.EnumDescriptorProto.verify(message.enumType[i]); - if (error) - return "enumType." + error; - } - } - if (message.extensionRange != null && message.hasOwnProperty("extensionRange")) { - if (!Array.isArray(message.extensionRange)) - return "extensionRange: array expected"; - for (var i = 0; i < message.extensionRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ExtensionRange.verify(message.extensionRange[i]); - if (error) - return "extensionRange." + error; - } - } - if (message.oneofDecl != null && message.hasOwnProperty("oneofDecl")) { - if (!Array.isArray(message.oneofDecl)) - return "oneofDecl: array expected"; - for (var i = 0; i < message.oneofDecl.length; ++i) { - var error = $root.google.protobuf.OneofDescriptorProto.verify(message.oneofDecl[i]); - if (error) - return "oneofDecl." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MessageOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.reservedRange != null && message.hasOwnProperty("reservedRange")) { - if (!Array.isArray(message.reservedRange)) - return "reservedRange: array expected"; - for (var i = 0; i < message.reservedRange.length; ++i) { - var error = $root.google.protobuf.DescriptorProto.ReservedRange.verify(message.reservedRange[i]); - if (error) - return "reservedRange." + error; - } - } - if (message.reservedName != null && message.hasOwnProperty("reservedName")) { - if (!Array.isArray(message.reservedName)) - return "reservedName: array expected"; - for (var i = 0; i < message.reservedName.length; ++i) - if (!$util.isString(message.reservedName[i])) - return "reservedName: string[] expected"; - } - return null; - }; - - DescriptorProto.ExtensionRange = (function() { - - /** - * Properties of an ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @interface IExtensionRange - * @property {number|null} [start] ExtensionRange start - * @property {number|null} [end] ExtensionRange end - */ - - /** - * Constructs a new ExtensionRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents an ExtensionRange. - * @implements IExtensionRange - * @constructor - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - */ - function ExtensionRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ExtensionRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.start = 0; - - /** - * ExtensionRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @instance - */ - ExtensionRange.prototype.end = 0; - - /** - * Creates a new ExtensionRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange instance - */ - ExtensionRange.create = function create(properties) { - return new ExtensionRange(properties); - }; - - /** - * Encodes the specified ExtensionRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ExtensionRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {google.protobuf.DescriptorProto.IExtensionRange} message ExtensionRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExtensionRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Decodes an ExtensionRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ExtensionRange} ExtensionRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExtensionRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ExtensionRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an ExtensionRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ExtensionRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExtensionRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return ExtensionRange; - })(); - - DescriptorProto.ReservedRange = (function() { - - /** - * Properties of a ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @interface IReservedRange - * @property {number|null} [start] ReservedRange start - * @property {number|null} [end] ReservedRange end - */ - - /** - * Constructs a new ReservedRange. - * @memberof google.protobuf.DescriptorProto - * @classdesc Represents a ReservedRange. - * @implements IReservedRange - * @constructor - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - */ - function ReservedRange(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ReservedRange start. - * @member {number} start - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.start = 0; - - /** - * ReservedRange end. - * @member {number} end - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @instance - */ - ReservedRange.prototype.end = 0; - - /** - * Creates a new ReservedRange instance using the specified properties. - * @function create - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange=} [properties] Properties to set - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange instance - */ - ReservedRange.create = function create(properties) { - return new ReservedRange(properties); - }; - - /** - * Encodes the specified ReservedRange message. Does not implicitly {@link google.protobuf.DescriptorProto.ReservedRange.verify|verify} messages. - * @function encode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {google.protobuf.DescriptorProto.IReservedRange} message ReservedRange message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ReservedRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && message.hasOwnProperty("start")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.start); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.end); - return writer; - }; - - /** - * Decodes a ReservedRange message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.DescriptorProto.ReservedRange} ReservedRange - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ReservedRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.DescriptorProto.ReservedRange(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.start = reader.int32(); - break; - case 2: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ReservedRange message. - * @function verify - * @memberof google.protobuf.DescriptorProto.ReservedRange - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ReservedRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start)) - return "start: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return ReservedRange; - })(); - - return DescriptorProto; - })(); - - protobuf.FieldDescriptorProto = (function() { - - /** - * Properties of a FieldDescriptorProto. - * @memberof google.protobuf - * @interface IFieldDescriptorProto - * @property {string|null} [name] FieldDescriptorProto name - * @property {number|null} [number] FieldDescriptorProto number - * @property {google.protobuf.FieldDescriptorProto.Label|null} [label] FieldDescriptorProto label - * @property {google.protobuf.FieldDescriptorProto.Type|null} [type] FieldDescriptorProto type - * @property {string|null} [typeName] FieldDescriptorProto typeName - * @property {string|null} [extendee] FieldDescriptorProto extendee - * @property {string|null} [defaultValue] FieldDescriptorProto defaultValue - * @property {number|null} [oneofIndex] FieldDescriptorProto oneofIndex - * @property {string|null} [jsonName] FieldDescriptorProto jsonName - * @property {google.protobuf.IFieldOptions|null} [options] FieldDescriptorProto options - */ - - /** - * Constructs a new FieldDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a FieldDescriptorProto. - * @implements IFieldDescriptorProto - * @constructor - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - */ - function FieldDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.name = ""; - - /** - * FieldDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.number = 0; - - /** - * FieldDescriptorProto label. - * @member {google.protobuf.FieldDescriptorProto.Label} label - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.label = 1; - - /** - * FieldDescriptorProto type. - * @member {google.protobuf.FieldDescriptorProto.Type} type - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.type = 1; - - /** - * FieldDescriptorProto typeName. - * @member {string} typeName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.typeName = ""; - - /** - * FieldDescriptorProto extendee. - * @member {string} extendee - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.extendee = ""; - - /** - * FieldDescriptorProto defaultValue. - * @member {string} defaultValue - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.defaultValue = ""; - - /** - * FieldDescriptorProto oneofIndex. - * @member {number} oneofIndex - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.oneofIndex = 0; - - /** - * FieldDescriptorProto jsonName. - * @member {string} jsonName - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.jsonName = ""; - - /** - * FieldDescriptorProto options. - * @member {google.protobuf.IFieldOptions|null|undefined} options - * @memberof google.protobuf.FieldDescriptorProto - * @instance - */ - FieldDescriptorProto.prototype.options = null; - - /** - * Creates a new FieldDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto instance - */ - FieldDescriptorProto.create = function create(properties) { - return new FieldDescriptorProto(properties); - }; - - /** - * Encodes the specified FieldDescriptorProto message. Does not implicitly {@link google.protobuf.FieldDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {google.protobuf.IFieldDescriptorProto} message FieldDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.extendee != null && message.hasOwnProperty("extendee")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.extendee); - if (message.number != null && message.hasOwnProperty("number")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.number); - if (message.label != null && message.hasOwnProperty("label")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.label); - if (message.type != null && message.hasOwnProperty("type")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.type); - if (message.typeName != null && message.hasOwnProperty("typeName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.typeName); - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.defaultValue); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.FieldOptions.encode(message.options, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.oneofIndex); - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.jsonName); - return writer; - }; - - /** - * Decodes a FieldDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldDescriptorProto} FieldDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 3: - message.number = reader.int32(); - break; - case 4: - message.label = reader.int32(); - break; - case 5: - message.type = reader.int32(); - break; - case 6: - message.typeName = reader.string(); - break; - case 2: - message.extendee = reader.string(); - break; - case 7: - message.defaultValue = reader.string(); - break; - case 9: - message.oneofIndex = reader.int32(); - break; - case 10: - message.jsonName = reader.string(); - break; - case 8: - message.options = $root.google.protobuf.FieldOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FieldDescriptorProto message. - * @function verify - * @memberof google.protobuf.FieldDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - switch (message.label) { - default: - return "label: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - case 13: - case 14: - case 15: - case 16: - case 17: - case 18: - break; - } - if (message.typeName != null && message.hasOwnProperty("typeName")) - if (!$util.isString(message.typeName)) - return "typeName: string expected"; - if (message.extendee != null && message.hasOwnProperty("extendee")) - if (!$util.isString(message.extendee)) - return "extendee: string expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - if (message.oneofIndex != null && message.hasOwnProperty("oneofIndex")) - if (!$util.isInteger(message.oneofIndex)) - return "oneofIndex: integer expected"; - if (message.jsonName != null && message.hasOwnProperty("jsonName")) - if (!$util.isString(message.jsonName)) - return "jsonName: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.FieldOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - /** - * Type enum. - * @name google.protobuf.FieldDescriptorProto.Type - * @enum {string} - * @property {number} TYPE_DOUBLE=1 TYPE_DOUBLE value - * @property {number} TYPE_FLOAT=2 TYPE_FLOAT value - * @property {number} TYPE_INT64=3 TYPE_INT64 value - * @property {number} TYPE_UINT64=4 TYPE_UINT64 value - * @property {number} TYPE_INT32=5 TYPE_INT32 value - * @property {number} TYPE_FIXED64=6 TYPE_FIXED64 value - * @property {number} TYPE_FIXED32=7 TYPE_FIXED32 value - * @property {number} TYPE_BOOL=8 TYPE_BOOL value - * @property {number} TYPE_STRING=9 TYPE_STRING value - * @property {number} TYPE_GROUP=10 TYPE_GROUP value - * @property {number} TYPE_MESSAGE=11 TYPE_MESSAGE value - * @property {number} TYPE_BYTES=12 TYPE_BYTES value - * @property {number} TYPE_UINT32=13 TYPE_UINT32 value - * @property {number} TYPE_ENUM=14 TYPE_ENUM value - * @property {number} TYPE_SFIXED32=15 TYPE_SFIXED32 value - * @property {number} TYPE_SFIXED64=16 TYPE_SFIXED64 value - * @property {number} TYPE_SINT32=17 TYPE_SINT32 value - * @property {number} TYPE_SINT64=18 TYPE_SINT64 value - */ - FieldDescriptorProto.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "TYPE_DOUBLE"] = 1; - values[valuesById[2] = "TYPE_FLOAT"] = 2; - values[valuesById[3] = "TYPE_INT64"] = 3; - values[valuesById[4] = "TYPE_UINT64"] = 4; - values[valuesById[5] = "TYPE_INT32"] = 5; - values[valuesById[6] = "TYPE_FIXED64"] = 6; - values[valuesById[7] = "TYPE_FIXED32"] = 7; - values[valuesById[8] = "TYPE_BOOL"] = 8; - values[valuesById[9] = "TYPE_STRING"] = 9; - values[valuesById[10] = "TYPE_GROUP"] = 10; - values[valuesById[11] = "TYPE_MESSAGE"] = 11; - values[valuesById[12] = "TYPE_BYTES"] = 12; - values[valuesById[13] = "TYPE_UINT32"] = 13; - values[valuesById[14] = "TYPE_ENUM"] = 14; - values[valuesById[15] = "TYPE_SFIXED32"] = 15; - values[valuesById[16] = "TYPE_SFIXED64"] = 16; - values[valuesById[17] = "TYPE_SINT32"] = 17; - values[valuesById[18] = "TYPE_SINT64"] = 18; - return values; - })(); - - /** - * Label enum. - * @name google.protobuf.FieldDescriptorProto.Label - * @enum {string} - * @property {number} LABEL_OPTIONAL=1 LABEL_OPTIONAL value - * @property {number} LABEL_REQUIRED=2 LABEL_REQUIRED value - * @property {number} LABEL_REPEATED=3 LABEL_REPEATED value - */ - FieldDescriptorProto.Label = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "LABEL_OPTIONAL"] = 1; - values[valuesById[2] = "LABEL_REQUIRED"] = 2; - values[valuesById[3] = "LABEL_REPEATED"] = 3; - return values; - })(); - - return FieldDescriptorProto; - })(); - - protobuf.OneofDescriptorProto = (function() { - - /** - * Properties of an OneofDescriptorProto. - * @memberof google.protobuf - * @interface IOneofDescriptorProto - * @property {string|null} [name] OneofDescriptorProto name - * @property {google.protobuf.IOneofOptions|null} [options] OneofDescriptorProto options - */ - - /** - * Constructs a new OneofDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an OneofDescriptorProto. - * @implements IOneofDescriptorProto - * @constructor - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - */ - function OneofDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.name = ""; - - /** - * OneofDescriptorProto options. - * @member {google.protobuf.IOneofOptions|null|undefined} options - * @memberof google.protobuf.OneofDescriptorProto - * @instance - */ - OneofDescriptorProto.prototype.options = null; - - /** - * Creates a new OneofDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto instance - */ - OneofDescriptorProto.create = function create(properties) { - return new OneofDescriptorProto(properties); - }; - - /** - * Encodes the specified OneofDescriptorProto message. Does not implicitly {@link google.protobuf.OneofDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {google.protobuf.IOneofDescriptorProto} message OneofDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.OneofOptions.encode(message.options, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OneofDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofDescriptorProto} OneofDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.options = $root.google.protobuf.OneofOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OneofDescriptorProto message. - * @function verify - * @memberof google.protobuf.OneofDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.OneofOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return OneofDescriptorProto; - })(); - - protobuf.EnumDescriptorProto = (function() { - - /** - * Properties of an EnumDescriptorProto. - * @memberof google.protobuf - * @interface IEnumDescriptorProto - * @property {string|null} [name] EnumDescriptorProto name - * @property {Array.|null} [value] EnumDescriptorProto value - * @property {google.protobuf.IEnumOptions|null} [options] EnumDescriptorProto options - */ - - /** - * Constructs a new EnumDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumDescriptorProto. - * @implements IEnumDescriptorProto - * @constructor - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - */ - function EnumDescriptorProto(properties) { - this.value = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.name = ""; - - /** - * EnumDescriptorProto value. - * @member {Array.} value - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.value = $util.emptyArray; - - /** - * EnumDescriptorProto options. - * @member {google.protobuf.IEnumOptions|null|undefined} options - * @memberof google.protobuf.EnumDescriptorProto - * @instance - */ - EnumDescriptorProto.prototype.options = null; - - /** - * Creates a new EnumDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto instance - */ - EnumDescriptorProto.create = function create(properties) { - return new EnumDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumDescriptorProto message. Does not implicitly {@link google.protobuf.EnumDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {google.protobuf.IEnumDescriptorProto} message EnumDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && message.value.length) - for (var i = 0; i < message.value.length; ++i) - $root.google.protobuf.EnumValueDescriptorProto.encode(message.value[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.EnumOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumDescriptorProto} EnumDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.value && message.value.length)) - message.value = []; - message.value.push($root.google.protobuf.EnumValueDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.EnumOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - if (!Array.isArray(message.value)) - return "value: array expected"; - for (var i = 0; i < message.value.length; ++i) { - var error = $root.google.protobuf.EnumValueDescriptorProto.verify(message.value[i]); - if (error) - return "value." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return EnumDescriptorProto; - })(); - - protobuf.EnumValueDescriptorProto = (function() { - - /** - * Properties of an EnumValueDescriptorProto. - * @memberof google.protobuf - * @interface IEnumValueDescriptorProto - * @property {string|null} [name] EnumValueDescriptorProto name - * @property {number|null} [number] EnumValueDescriptorProto number - * @property {google.protobuf.IEnumValueOptions|null} [options] EnumValueDescriptorProto options - */ - - /** - * Constructs a new EnumValueDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents an EnumValueDescriptorProto. - * @implements IEnumValueDescriptorProto - * @constructor - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - */ - function EnumValueDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.name = ""; - - /** - * EnumValueDescriptorProto number. - * @member {number} number - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.number = 0; - - /** - * EnumValueDescriptorProto options. - * @member {google.protobuf.IEnumValueOptions|null|undefined} options - * @memberof google.protobuf.EnumValueDescriptorProto - * @instance - */ - EnumValueDescriptorProto.prototype.options = null; - - /** - * Creates a new EnumValueDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto instance - */ - EnumValueDescriptorProto.create = function create(properties) { - return new EnumValueDescriptorProto(properties); - }; - - /** - * Encodes the specified EnumValueDescriptorProto message. Does not implicitly {@link google.protobuf.EnumValueDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {google.protobuf.IEnumValueDescriptorProto} message EnumValueDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.number != null && message.hasOwnProperty("number")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.number); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.EnumValueOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumValueDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueDescriptorProto} EnumValueDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.number = reader.int32(); - break; - case 3: - message.options = $root.google.protobuf.EnumValueOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumValueDescriptorProto message. - * @function verify - * @memberof google.protobuf.EnumValueDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.number != null && message.hasOwnProperty("number")) - if (!$util.isInteger(message.number)) - return "number: integer expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.EnumValueOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return EnumValueDescriptorProto; - })(); - - protobuf.ServiceDescriptorProto = (function() { - - /** - * Properties of a ServiceDescriptorProto. - * @memberof google.protobuf - * @interface IServiceDescriptorProto - * @property {string|null} [name] ServiceDescriptorProto name - * @property {Array.|null} [method] ServiceDescriptorProto method - * @property {google.protobuf.IServiceOptions|null} [options] ServiceDescriptorProto options - */ - - /** - * Constructs a new ServiceDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a ServiceDescriptorProto. - * @implements IServiceDescriptorProto - * @constructor - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - */ - function ServiceDescriptorProto(properties) { - this.method = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.name = ""; - - /** - * ServiceDescriptorProto method. - * @member {Array.} method - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.method = $util.emptyArray; - - /** - * ServiceDescriptorProto options. - * @member {google.protobuf.IServiceOptions|null|undefined} options - * @memberof google.protobuf.ServiceDescriptorProto - * @instance - */ - ServiceDescriptorProto.prototype.options = null; - - /** - * Creates a new ServiceDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto instance - */ - ServiceDescriptorProto.create = function create(properties) { - return new ServiceDescriptorProto(properties); - }; - - /** - * Encodes the specified ServiceDescriptorProto message. Does not implicitly {@link google.protobuf.ServiceDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {google.protobuf.IServiceDescriptorProto} message ServiceDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.method != null && message.method.length) - for (var i = 0; i < message.method.length; ++i) - $root.google.protobuf.MethodDescriptorProto.encode(message.method[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.ServiceOptions.encode(message.options, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ServiceDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceDescriptorProto} ServiceDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - if (!(message.method && message.method.length)) - message.method = []; - message.method.push($root.google.protobuf.MethodDescriptorProto.decode(reader, reader.uint32())); - break; - case 3: - message.options = $root.google.protobuf.ServiceOptions.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ServiceDescriptorProto message. - * @function verify - * @memberof google.protobuf.ServiceDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.method != null && message.hasOwnProperty("method")) { - if (!Array.isArray(message.method)) - return "method: array expected"; - for (var i = 0; i < message.method.length; ++i) { - var error = $root.google.protobuf.MethodDescriptorProto.verify(message.method[i]); - if (error) - return "method." + error; - } - } - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.ServiceOptions.verify(message.options); - if (error) - return "options." + error; - } - return null; - }; - - return ServiceDescriptorProto; - })(); - - protobuf.MethodDescriptorProto = (function() { - - /** - * Properties of a MethodDescriptorProto. - * @memberof google.protobuf - * @interface IMethodDescriptorProto - * @property {string|null} [name] MethodDescriptorProto name - * @property {string|null} [inputType] MethodDescriptorProto inputType - * @property {string|null} [outputType] MethodDescriptorProto outputType - * @property {google.protobuf.IMethodOptions|null} [options] MethodDescriptorProto options - * @property {boolean|null} [clientStreaming] MethodDescriptorProto clientStreaming - * @property {boolean|null} [serverStreaming] MethodDescriptorProto serverStreaming - */ - - /** - * Constructs a new MethodDescriptorProto. - * @memberof google.protobuf - * @classdesc Represents a MethodDescriptorProto. - * @implements IMethodDescriptorProto - * @constructor - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - */ - function MethodDescriptorProto(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodDescriptorProto name. - * @member {string} name - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.name = ""; - - /** - * MethodDescriptorProto inputType. - * @member {string} inputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.inputType = ""; - - /** - * MethodDescriptorProto outputType. - * @member {string} outputType - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.outputType = ""; - - /** - * MethodDescriptorProto options. - * @member {google.protobuf.IMethodOptions|null|undefined} options - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.options = null; - - /** - * MethodDescriptorProto clientStreaming. - * @member {boolean} clientStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.clientStreaming = false; - - /** - * MethodDescriptorProto serverStreaming. - * @member {boolean} serverStreaming - * @memberof google.protobuf.MethodDescriptorProto - * @instance - */ - MethodDescriptorProto.prototype.serverStreaming = false; - - /** - * Creates a new MethodDescriptorProto instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto=} [properties] Properties to set - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto instance - */ - MethodDescriptorProto.create = function create(properties) { - return new MethodDescriptorProto(properties); - }; - - /** - * Encodes the specified MethodDescriptorProto message. Does not implicitly {@link google.protobuf.MethodDescriptorProto.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {google.protobuf.IMethodDescriptorProto} message MethodDescriptorProto message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodDescriptorProto.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.hasOwnProperty("name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.inputType != null && message.hasOwnProperty("inputType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.inputType); - if (message.outputType != null && message.hasOwnProperty("outputType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.outputType); - if (message.options != null && message.hasOwnProperty("options")) - $root.google.protobuf.MethodOptions.encode(message.options, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.clientStreaming); - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.serverStreaming); - return writer; - }; - - /** - * Decodes a MethodDescriptorProto message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodDescriptorProto} MethodDescriptorProto - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodDescriptorProto.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodDescriptorProto(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.inputType = reader.string(); - break; - case 3: - message.outputType = reader.string(); - break; - case 4: - message.options = $root.google.protobuf.MethodOptions.decode(reader, reader.uint32()); - break; - case 5: - message.clientStreaming = reader.bool(); - break; - case 6: - message.serverStreaming = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MethodDescriptorProto message. - * @function verify - * @memberof google.protobuf.MethodDescriptorProto - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodDescriptorProto.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.inputType != null && message.hasOwnProperty("inputType")) - if (!$util.isString(message.inputType)) - return "inputType: string expected"; - if (message.outputType != null && message.hasOwnProperty("outputType")) - if (!$util.isString(message.outputType)) - return "outputType: string expected"; - if (message.options != null && message.hasOwnProperty("options")) { - var error = $root.google.protobuf.MethodOptions.verify(message.options); - if (error) - return "options." + error; - } - if (message.clientStreaming != null && message.hasOwnProperty("clientStreaming")) - if (typeof message.clientStreaming !== "boolean") - return "clientStreaming: boolean expected"; - if (message.serverStreaming != null && message.hasOwnProperty("serverStreaming")) - if (typeof message.serverStreaming !== "boolean") - return "serverStreaming: boolean expected"; - return null; - }; - - return MethodDescriptorProto; - })(); - - protobuf.FileOptions = (function() { - - /** - * Properties of a FileOptions. - * @memberof google.protobuf - * @interface IFileOptions - * @property {string|null} [javaPackage] FileOptions javaPackage - * @property {string|null} [javaOuterClassname] FileOptions javaOuterClassname - * @property {boolean|null} [javaMultipleFiles] FileOptions javaMultipleFiles - * @property {boolean|null} [javaGenerateEqualsAndHash] FileOptions javaGenerateEqualsAndHash - * @property {boolean|null} [javaStringCheckUtf8] FileOptions javaStringCheckUtf8 - * @property {google.protobuf.FileOptions.OptimizeMode|null} [optimizeFor] FileOptions optimizeFor - * @property {string|null} [goPackage] FileOptions goPackage - * @property {boolean|null} [ccGenericServices] FileOptions ccGenericServices - * @property {boolean|null} [javaGenericServices] FileOptions javaGenericServices - * @property {boolean|null} [pyGenericServices] FileOptions pyGenericServices - * @property {boolean|null} [deprecated] FileOptions deprecated - * @property {boolean|null} [ccEnableArenas] FileOptions ccEnableArenas - * @property {string|null} [objcClassPrefix] FileOptions objcClassPrefix - * @property {string|null} [csharpNamespace] FileOptions csharpNamespace - * @property {Array.|null} [uninterpretedOption] FileOptions uninterpretedOption - */ - - /** - * Constructs a new FileOptions. - * @memberof google.protobuf - * @classdesc Represents a FileOptions. - * @implements IFileOptions - * @constructor - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - */ - function FileOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FileOptions javaPackage. - * @member {string} javaPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaPackage = ""; - - /** - * FileOptions javaOuterClassname. - * @member {string} javaOuterClassname - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaOuterClassname = ""; - - /** - * FileOptions javaMultipleFiles. - * @member {boolean} javaMultipleFiles - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaMultipleFiles = false; - - /** - * FileOptions javaGenerateEqualsAndHash. - * @member {boolean} javaGenerateEqualsAndHash - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenerateEqualsAndHash = false; - - /** - * FileOptions javaStringCheckUtf8. - * @member {boolean} javaStringCheckUtf8 - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaStringCheckUtf8 = false; - - /** - * FileOptions optimizeFor. - * @member {google.protobuf.FileOptions.OptimizeMode} optimizeFor - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.optimizeFor = 1; - - /** - * FileOptions goPackage. - * @member {string} goPackage - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.goPackage = ""; - - /** - * FileOptions ccGenericServices. - * @member {boolean} ccGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccGenericServices = false; - - /** - * FileOptions javaGenericServices. - * @member {boolean} javaGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.javaGenericServices = false; - - /** - * FileOptions pyGenericServices. - * @member {boolean} pyGenericServices - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.pyGenericServices = false; - - /** - * FileOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.deprecated = false; - - /** - * FileOptions ccEnableArenas. - * @member {boolean} ccEnableArenas - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.ccEnableArenas = false; - - /** - * FileOptions objcClassPrefix. - * @member {string} objcClassPrefix - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.objcClassPrefix = ""; - - /** - * FileOptions csharpNamespace. - * @member {string} csharpNamespace - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.csharpNamespace = ""; - - /** - * FileOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FileOptions - * @instance - */ - FileOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new FileOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions=} [properties] Properties to set - * @returns {google.protobuf.FileOptions} FileOptions instance - */ - FileOptions.create = function create(properties) { - return new FileOptions(properties); - }; - - /** - * Encodes the specified FileOptions message. Does not implicitly {@link google.protobuf.FileOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FileOptions - * @static - * @param {google.protobuf.IFileOptions} message FileOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FileOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.javaPackage); - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.javaOuterClassname); - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.optimizeFor); - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.javaMultipleFiles); - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.goPackage); - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ccGenericServices); - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.javaGenericServices); - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.pyGenericServices); - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.javaGenerateEqualsAndHash); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.deprecated); - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.javaStringCheckUtf8); - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - writer.uint32(/* id 31, wireType 0 =*/248).bool(message.ccEnableArenas); - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - writer.uint32(/* id 36, wireType 2 =*/290).string(message.objcClassPrefix); - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - writer.uint32(/* id 37, wireType 2 =*/298).string(message.csharpNamespace); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FileOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FileOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FileOptions} FileOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FileOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FileOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.javaPackage = reader.string(); - break; - case 8: - message.javaOuterClassname = reader.string(); - break; - case 10: - message.javaMultipleFiles = reader.bool(); - break; - case 20: - message.javaGenerateEqualsAndHash = reader.bool(); - break; - case 27: - message.javaStringCheckUtf8 = reader.bool(); - break; - case 9: - message.optimizeFor = reader.int32(); - break; - case 11: - message.goPackage = reader.string(); - break; - case 16: - message.ccGenericServices = reader.bool(); - break; - case 17: - message.javaGenericServices = reader.bool(); - break; - case 18: - message.pyGenericServices = reader.bool(); - break; - case 23: - message.deprecated = reader.bool(); - break; - case 31: - message.ccEnableArenas = reader.bool(); - break; - case 36: - message.objcClassPrefix = reader.string(); - break; - case 37: - message.csharpNamespace = reader.string(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FileOptions message. - * @function verify - * @memberof google.protobuf.FileOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FileOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.javaPackage != null && message.hasOwnProperty("javaPackage")) - if (!$util.isString(message.javaPackage)) - return "javaPackage: string expected"; - if (message.javaOuterClassname != null && message.hasOwnProperty("javaOuterClassname")) - if (!$util.isString(message.javaOuterClassname)) - return "javaOuterClassname: string expected"; - if (message.javaMultipleFiles != null && message.hasOwnProperty("javaMultipleFiles")) - if (typeof message.javaMultipleFiles !== "boolean") - return "javaMultipleFiles: boolean expected"; - if (message.javaGenerateEqualsAndHash != null && message.hasOwnProperty("javaGenerateEqualsAndHash")) - if (typeof message.javaGenerateEqualsAndHash !== "boolean") - return "javaGenerateEqualsAndHash: boolean expected"; - if (message.javaStringCheckUtf8 != null && message.hasOwnProperty("javaStringCheckUtf8")) - if (typeof message.javaStringCheckUtf8 !== "boolean") - return "javaStringCheckUtf8: boolean expected"; - if (message.optimizeFor != null && message.hasOwnProperty("optimizeFor")) - switch (message.optimizeFor) { - default: - return "optimizeFor: enum value expected"; - case 1: - case 2: - case 3: - break; - } - if (message.goPackage != null && message.hasOwnProperty("goPackage")) - if (!$util.isString(message.goPackage)) - return "goPackage: string expected"; - if (message.ccGenericServices != null && message.hasOwnProperty("ccGenericServices")) - if (typeof message.ccGenericServices !== "boolean") - return "ccGenericServices: boolean expected"; - if (message.javaGenericServices != null && message.hasOwnProperty("javaGenericServices")) - if (typeof message.javaGenericServices !== "boolean") - return "javaGenericServices: boolean expected"; - if (message.pyGenericServices != null && message.hasOwnProperty("pyGenericServices")) - if (typeof message.pyGenericServices !== "boolean") - return "pyGenericServices: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.ccEnableArenas != null && message.hasOwnProperty("ccEnableArenas")) - if (typeof message.ccEnableArenas !== "boolean") - return "ccEnableArenas: boolean expected"; - if (message.objcClassPrefix != null && message.hasOwnProperty("objcClassPrefix")) - if (!$util.isString(message.objcClassPrefix)) - return "objcClassPrefix: string expected"; - if (message.csharpNamespace != null && message.hasOwnProperty("csharpNamespace")) - if (!$util.isString(message.csharpNamespace)) - return "csharpNamespace: string expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * OptimizeMode enum. - * @name google.protobuf.FileOptions.OptimizeMode - * @enum {string} - * @property {number} SPEED=1 SPEED value - * @property {number} CODE_SIZE=2 CODE_SIZE value - * @property {number} LITE_RUNTIME=3 LITE_RUNTIME value - */ - FileOptions.OptimizeMode = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[1] = "SPEED"] = 1; - values[valuesById[2] = "CODE_SIZE"] = 2; - values[valuesById[3] = "LITE_RUNTIME"] = 3; - return values; - })(); - - return FileOptions; - })(); - - protobuf.MessageOptions = (function() { - - /** - * Properties of a MessageOptions. - * @memberof google.protobuf - * @interface IMessageOptions - * @property {boolean|null} [messageSetWireFormat] MessageOptions messageSetWireFormat - * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor - * @property {boolean|null} [deprecated] MessageOptions deprecated - * @property {boolean|null} [mapEntry] MessageOptions mapEntry - * @property {Array.|null} [uninterpretedOption] MessageOptions uninterpretedOption - */ - - /** - * Constructs a new MessageOptions. - * @memberof google.protobuf - * @classdesc Represents a MessageOptions. - * @implements IMessageOptions - * @constructor - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - */ - function MessageOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MessageOptions messageSetWireFormat. - * @member {boolean} messageSetWireFormat - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.messageSetWireFormat = false; - - /** - * MessageOptions noStandardDescriptorAccessor. - * @member {boolean} noStandardDescriptorAccessor - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.noStandardDescriptorAccessor = false; - - /** - * MessageOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.deprecated = false; - - /** - * MessageOptions mapEntry. - * @member {boolean} mapEntry - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.mapEntry = false; - - /** - * MessageOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MessageOptions - * @instance - */ - MessageOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new MessageOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions=} [properties] Properties to set - * @returns {google.protobuf.MessageOptions} MessageOptions instance - */ - MessageOptions.create = function create(properties) { - return new MessageOptions(properties); - }; - - /** - * Encodes the specified MessageOptions message. Does not implicitly {@link google.protobuf.MessageOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MessageOptions - * @static - * @param {google.protobuf.IMessageOptions} message MessageOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MessageOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.messageSetWireFormat); - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.noStandardDescriptorAccessor); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MessageOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MessageOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MessageOptions} MessageOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MessageOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MessageOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.messageSetWireFormat = reader.bool(); - break; - case 2: - message.noStandardDescriptorAccessor = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 7: - message.mapEntry = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MessageOptions message. - * @function verify - * @memberof google.protobuf.MessageOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MessageOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat")) - if (typeof message.messageSetWireFormat !== "boolean") - return "messageSetWireFormat: boolean expected"; - if (message.noStandardDescriptorAccessor != null && message.hasOwnProperty("noStandardDescriptorAccessor")) - if (typeof message.noStandardDescriptorAccessor !== "boolean") - return "noStandardDescriptorAccessor: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.mapEntry != null && message.hasOwnProperty("mapEntry")) - if (typeof message.mapEntry !== "boolean") - return "mapEntry: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return MessageOptions; - })(); - - protobuf.FieldOptions = (function() { - - /** - * Properties of a FieldOptions. - * @memberof google.protobuf - * @interface IFieldOptions - * @property {google.protobuf.FieldOptions.CType|null} [ctype] FieldOptions ctype - * @property {boolean|null} [packed] FieldOptions packed - * @property {google.protobuf.FieldOptions.JSType|null} [jstype] FieldOptions jstype - * @property {boolean|null} [lazy] FieldOptions lazy - * @property {boolean|null} [deprecated] FieldOptions deprecated - * @property {boolean|null} [weak] FieldOptions weak - * @property {Array.|null} [uninterpretedOption] FieldOptions uninterpretedOption - */ - - /** - * Constructs a new FieldOptions. - * @memberof google.protobuf - * @classdesc Represents a FieldOptions. - * @implements IFieldOptions - * @constructor - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - */ - function FieldOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FieldOptions ctype. - * @member {google.protobuf.FieldOptions.CType} ctype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.ctype = 0; - - /** - * FieldOptions packed. - * @member {boolean} packed - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.packed = false; - - /** - * FieldOptions jstype. - * @member {google.protobuf.FieldOptions.JSType} jstype - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.jstype = 0; - - /** - * FieldOptions lazy. - * @member {boolean} lazy - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.lazy = false; - - /** - * FieldOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.deprecated = false; - - /** - * FieldOptions weak. - * @member {boolean} weak - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.weak = false; - - /** - * FieldOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.FieldOptions - * @instance - */ - FieldOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new FieldOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions=} [properties] Properties to set - * @returns {google.protobuf.FieldOptions} FieldOptions instance - */ - FieldOptions.create = function create(properties) { - return new FieldOptions(properties); - }; - - /** - * Encodes the specified FieldOptions message. Does not implicitly {@link google.protobuf.FieldOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.FieldOptions - * @static - * @param {google.protobuf.IFieldOptions} message FieldOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FieldOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ctype != null && message.hasOwnProperty("ctype")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ctype); - if (message.packed != null && message.hasOwnProperty("packed")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.packed); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.lazy != null && message.hasOwnProperty("lazy")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.lazy); - if (message.jstype != null && message.hasOwnProperty("jstype")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.jstype); - if (message.weak != null && message.hasOwnProperty("weak")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a FieldOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.FieldOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.FieldOptions} FieldOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FieldOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.ctype = reader.int32(); - break; - case 2: - message.packed = reader.bool(); - break; - case 6: - message.jstype = reader.int32(); - break; - case 5: - message.lazy = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 10: - message.weak = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a FieldOptions message. - * @function verify - * @memberof google.protobuf.FieldOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FieldOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ctype != null && message.hasOwnProperty("ctype")) - switch (message.ctype) { - default: - return "ctype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.packed != null && message.hasOwnProperty("packed")) - if (typeof message.packed !== "boolean") - return "packed: boolean expected"; - if (message.jstype != null && message.hasOwnProperty("jstype")) - switch (message.jstype) { - default: - return "jstype: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.lazy != null && message.hasOwnProperty("lazy")) - if (typeof message.lazy !== "boolean") - return "lazy: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.weak != null && message.hasOwnProperty("weak")) - if (typeof message.weak !== "boolean") - return "weak: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - /** - * CType enum. - * @name google.protobuf.FieldOptions.CType - * @enum {string} - * @property {number} STRING=0 STRING value - * @property {number} CORD=1 CORD value - * @property {number} STRING_PIECE=2 STRING_PIECE value - */ - FieldOptions.CType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STRING"] = 0; - values[valuesById[1] = "CORD"] = 1; - values[valuesById[2] = "STRING_PIECE"] = 2; - return values; - })(); - - /** - * JSType enum. - * @name google.protobuf.FieldOptions.JSType - * @enum {string} - * @property {number} JS_NORMAL=0 JS_NORMAL value - * @property {number} JS_STRING=1 JS_STRING value - * @property {number} JS_NUMBER=2 JS_NUMBER value - */ - FieldOptions.JSType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "JS_NORMAL"] = 0; - values[valuesById[1] = "JS_STRING"] = 1; - values[valuesById[2] = "JS_NUMBER"] = 2; - return values; - })(); - - return FieldOptions; - })(); - - protobuf.OneofOptions = (function() { - - /** - * Properties of an OneofOptions. - * @memberof google.protobuf - * @interface IOneofOptions - * @property {Array.|null} [uninterpretedOption] OneofOptions uninterpretedOption - */ - - /** - * Constructs a new OneofOptions. - * @memberof google.protobuf - * @classdesc Represents an OneofOptions. - * @implements IOneofOptions - * @constructor - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - */ - function OneofOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * OneofOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.OneofOptions - * @instance - */ - OneofOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new OneofOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions=} [properties] Properties to set - * @returns {google.protobuf.OneofOptions} OneofOptions instance - */ - OneofOptions.create = function create(properties) { - return new OneofOptions(properties); - }; - - /** - * Encodes the specified OneofOptions message. Does not implicitly {@link google.protobuf.OneofOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.OneofOptions - * @static - * @param {google.protobuf.IOneofOptions} message OneofOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - OneofOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an OneofOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.OneofOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.OneofOptions} OneofOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - OneofOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.OneofOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an OneofOptions message. - * @function verify - * @memberof google.protobuf.OneofOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - OneofOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return OneofOptions; - })(); - - protobuf.EnumOptions = (function() { - - /** - * Properties of an EnumOptions. - * @memberof google.protobuf - * @interface IEnumOptions - * @property {boolean|null} [allowAlias] EnumOptions allowAlias - * @property {boolean|null} [deprecated] EnumOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumOptions uninterpretedOption - */ - - /** - * Constructs a new EnumOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumOptions. - * @implements IEnumOptions - * @constructor - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - */ - function EnumOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumOptions allowAlias. - * @member {boolean} allowAlias - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.allowAlias = false; - - /** - * EnumOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.deprecated = false; - - /** - * EnumOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumOptions - * @instance - */ - EnumOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumOptions} EnumOptions instance - */ - EnumOptions.create = function create(properties) { - return new EnumOptions(properties); - }; - - /** - * Encodes the specified EnumOptions message. Does not implicitly {@link google.protobuf.EnumOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumOptions - * @static - * @param {google.protobuf.IEnumOptions} message EnumOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumOptions} EnumOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.allowAlias = reader.bool(); - break; - case 3: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumOptions message. - * @function verify - * @memberof google.protobuf.EnumOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowAlias != null && message.hasOwnProperty("allowAlias")) - if (typeof message.allowAlias !== "boolean") - return "allowAlias: boolean expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return EnumOptions; - })(); - - protobuf.EnumValueOptions = (function() { - - /** - * Properties of an EnumValueOptions. - * @memberof google.protobuf - * @interface IEnumValueOptions - * @property {boolean|null} [deprecated] EnumValueOptions deprecated - * @property {Array.|null} [uninterpretedOption] EnumValueOptions uninterpretedOption - */ - - /** - * Constructs a new EnumValueOptions. - * @memberof google.protobuf - * @classdesc Represents an EnumValueOptions. - * @implements IEnumValueOptions - * @constructor - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - */ - function EnumValueOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EnumValueOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.deprecated = false; - - /** - * EnumValueOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.EnumValueOptions - * @instance - */ - EnumValueOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new EnumValueOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions=} [properties] Properties to set - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions instance - */ - EnumValueOptions.create = function create(properties) { - return new EnumValueOptions(properties); - }; - - /** - * Encodes the specified EnumValueOptions message. Does not implicitly {@link google.protobuf.EnumValueOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {google.protobuf.IEnumValueOptions} message EnumValueOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EnumValueOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes an EnumValueOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.EnumValueOptions} EnumValueOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EnumValueOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.EnumValueOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an EnumValueOptions message. - * @function verify - * @memberof google.protobuf.EnumValueOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EnumValueOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return EnumValueOptions; - })(); - - protobuf.ServiceOptions = (function() { - - /** - * Properties of a ServiceOptions. - * @memberof google.protobuf - * @interface IServiceOptions - * @property {boolean|null} [deprecated] ServiceOptions deprecated - * @property {Array.|null} [uninterpretedOption] ServiceOptions uninterpretedOption - */ - - /** - * Constructs a new ServiceOptions. - * @memberof google.protobuf - * @classdesc Represents a ServiceOptions. - * @implements IServiceOptions - * @constructor - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - */ - function ServiceOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ServiceOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.deprecated = false; - - /** - * ServiceOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.ServiceOptions - * @instance - */ - ServiceOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * Creates a new ServiceOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions=} [properties] Properties to set - * @returns {google.protobuf.ServiceOptions} ServiceOptions instance - */ - ServiceOptions.create = function create(properties) { - return new ServiceOptions(properties); - }; - - /** - * Encodes the specified ServiceOptions message. Does not implicitly {@link google.protobuf.ServiceOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {google.protobuf.IServiceOptions} message ServiceOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ServiceOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a ServiceOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.ServiceOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.ServiceOptions} ServiceOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ServiceOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ServiceOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a ServiceOptions message. - * @function verify - * @memberof google.protobuf.ServiceOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ServiceOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - return null; - }; - - return ServiceOptions; - })(); - - protobuf.MethodOptions = (function() { - - /** - * Properties of a MethodOptions. - * @memberof google.protobuf - * @interface IMethodOptions - * @property {boolean|null} [deprecated] MethodOptions deprecated - * @property {Array.|null} [uninterpretedOption] MethodOptions uninterpretedOption - * @property {google.api.IHttpRule|null} [".google.api.http"] MethodOptions .google.api.http - */ - - /** - * Constructs a new MethodOptions. - * @memberof google.protobuf - * @classdesc Represents a MethodOptions. - * @implements IMethodOptions - * @constructor - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - */ - function MethodOptions(properties) { - this.uninterpretedOption = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MethodOptions deprecated. - * @member {boolean} deprecated - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.deprecated = false; - - /** - * MethodOptions uninterpretedOption. - * @member {Array.} uninterpretedOption - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype.uninterpretedOption = $util.emptyArray; - - /** - * MethodOptions .google.api.http. - * @member {google.api.IHttpRule|null|undefined} .google.api.http - * @memberof google.protobuf.MethodOptions - * @instance - */ - MethodOptions.prototype[".google.api.http"] = null; - - /** - * Creates a new MethodOptions instance using the specified properties. - * @function create - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions=} [properties] Properties to set - * @returns {google.protobuf.MethodOptions} MethodOptions instance - */ - MethodOptions.create = function create(properties) { - return new MethodOptions(properties); - }; - - /** - * Encodes the specified MethodOptions message. Does not implicitly {@link google.protobuf.MethodOptions.verify|verify} messages. - * @function encode - * @memberof google.protobuf.MethodOptions - * @static - * @param {google.protobuf.IMethodOptions} message MethodOptions message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MethodOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.deprecated); - if (message.uninterpretedOption != null && message.uninterpretedOption.length) - for (var i = 0; i < message.uninterpretedOption.length; ++i) - $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) - $root.google.api.HttpRule.encode(message[".google.api.http"], writer.uint32(/* id 72295728, wireType 2 =*/578365826).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a MethodOptions message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.MethodOptions - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.MethodOptions} MethodOptions - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MethodOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.MethodOptions(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 33: - message.deprecated = reader.bool(); - break; - case 999: - if (!(message.uninterpretedOption && message.uninterpretedOption.length)) - message.uninterpretedOption = []; - message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); - break; - case 72295728: - message[".google.api.http"] = $root.google.api.HttpRule.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a MethodOptions message. - * @function verify - * @memberof google.protobuf.MethodOptions - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MethodOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deprecated != null && message.hasOwnProperty("deprecated")) - if (typeof message.deprecated !== "boolean") - return "deprecated: boolean expected"; - if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) { - if (!Array.isArray(message.uninterpretedOption)) - return "uninterpretedOption: array expected"; - for (var i = 0; i < message.uninterpretedOption.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.verify(message.uninterpretedOption[i]); - if (error) - return "uninterpretedOption." + error; - } - } - if (message[".google.api.http"] != null && message.hasOwnProperty(".google.api.http")) { - var error = $root.google.api.HttpRule.verify(message[".google.api.http"]); - if (error) - return ".google.api.http." + error; - } - return null; - }; - - return MethodOptions; - })(); - - protobuf.UninterpretedOption = (function() { - - /** - * Properties of an UninterpretedOption. - * @memberof google.protobuf - * @interface IUninterpretedOption - * @property {Array.|null} [name] UninterpretedOption name - * @property {string|null} [identifierValue] UninterpretedOption identifierValue - * @property {Long|null} [positiveIntValue] UninterpretedOption positiveIntValue - * @property {Long|null} [negativeIntValue] UninterpretedOption negativeIntValue - * @property {number|null} [doubleValue] UninterpretedOption doubleValue - * @property {Uint8Array|null} [stringValue] UninterpretedOption stringValue - * @property {string|null} [aggregateValue] UninterpretedOption aggregateValue - */ - - /** - * Constructs a new UninterpretedOption. - * @memberof google.protobuf - * @classdesc Represents an UninterpretedOption. - * @implements IUninterpretedOption - * @constructor - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - */ - function UninterpretedOption(properties) { - this.name = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UninterpretedOption name. - * @member {Array.} name - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.name = $util.emptyArray; - - /** - * UninterpretedOption identifierValue. - * @member {string} identifierValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.identifierValue = ""; - - /** - * UninterpretedOption positiveIntValue. - * @member {Long} positiveIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.positiveIntValue = $util.Long ? $util.Long.fromBits(0,0,true) : 0; - - /** - * UninterpretedOption negativeIntValue. - * @member {Long} negativeIntValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.negativeIntValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * UninterpretedOption doubleValue. - * @member {number} doubleValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.doubleValue = 0; - - /** - * UninterpretedOption stringValue. - * @member {Uint8Array} stringValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.stringValue = $util.newBuffer([]); - - /** - * UninterpretedOption aggregateValue. - * @member {string} aggregateValue - * @memberof google.protobuf.UninterpretedOption - * @instance - */ - UninterpretedOption.prototype.aggregateValue = ""; - - /** - * Creates a new UninterpretedOption instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption instance - */ - UninterpretedOption.create = function create(properties) { - return new UninterpretedOption(properties); - }; - - /** - * Encodes the specified UninterpretedOption message. Does not implicitly {@link google.protobuf.UninterpretedOption.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {google.protobuf.IUninterpretedOption} message UninterpretedOption message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UninterpretedOption.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && message.name.length) - for (var i = 0; i < message.name.length; ++i) - $root.google.protobuf.UninterpretedOption.NamePart.encode(message.name[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.identifierValue); - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.positiveIntValue); - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.negativeIntValue); - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - writer.uint32(/* id 6, wireType 1 =*/49).double(message.doubleValue); - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.stringValue); - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.aggregateValue); - return writer; - }; - - /** - * Decodes an UninterpretedOption message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption} UninterpretedOption - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UninterpretedOption.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - if (!(message.name && message.name.length)) - message.name = []; - message.name.push($root.google.protobuf.UninterpretedOption.NamePart.decode(reader, reader.uint32())); - break; - case 3: - message.identifierValue = reader.string(); - break; - case 4: - message.positiveIntValue = reader.uint64(); - break; - case 5: - message.negativeIntValue = reader.int64(); - break; - case 6: - message.doubleValue = reader.double(); - break; - case 7: - message.stringValue = reader.bytes(); - break; - case 8: - message.aggregateValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an UninterpretedOption message. - * @function verify - * @memberof google.protobuf.UninterpretedOption - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UninterpretedOption.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) { - if (!Array.isArray(message.name)) - return "name: array expected"; - for (var i = 0; i < message.name.length; ++i) { - var error = $root.google.protobuf.UninterpretedOption.NamePart.verify(message.name[i]); - if (error) - return "name." + error; - } - } - if (message.identifierValue != null && message.hasOwnProperty("identifierValue")) - if (!$util.isString(message.identifierValue)) - return "identifierValue: string expected"; - if (message.positiveIntValue != null && message.hasOwnProperty("positiveIntValue")) - if (!$util.isInteger(message.positiveIntValue) && !(message.positiveIntValue && $util.isInteger(message.positiveIntValue.low) && $util.isInteger(message.positiveIntValue.high))) - return "positiveIntValue: integer|Long expected"; - if (message.negativeIntValue != null && message.hasOwnProperty("negativeIntValue")) - if (!$util.isInteger(message.negativeIntValue) && !(message.negativeIntValue && $util.isInteger(message.negativeIntValue.low) && $util.isInteger(message.negativeIntValue.high))) - return "negativeIntValue: integer|Long expected"; - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - if (message.stringValue != null && message.hasOwnProperty("stringValue")) - if (!(message.stringValue && typeof message.stringValue.length === "number" || $util.isString(message.stringValue))) - return "stringValue: buffer expected"; - if (message.aggregateValue != null && message.hasOwnProperty("aggregateValue")) - if (!$util.isString(message.aggregateValue)) - return "aggregateValue: string expected"; - return null; - }; - - UninterpretedOption.NamePart = (function() { - - /** - * Properties of a NamePart. - * @memberof google.protobuf.UninterpretedOption - * @interface INamePart - * @property {string} namePart NamePart namePart - * @property {boolean} isExtension NamePart isExtension - */ - - /** - * Constructs a new NamePart. - * @memberof google.protobuf.UninterpretedOption - * @classdesc Represents a NamePart. - * @implements INamePart - * @constructor - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - */ - function NamePart(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * NamePart namePart. - * @member {string} namePart - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.namePart = ""; - - /** - * NamePart isExtension. - * @member {boolean} isExtension - * @memberof google.protobuf.UninterpretedOption.NamePart - * @instance - */ - NamePart.prototype.isExtension = false; - - /** - * Creates a new NamePart instance using the specified properties. - * @function create - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart=} [properties] Properties to set - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart instance - */ - NamePart.create = function create(properties) { - return new NamePart(properties); - }; - - /** - * Encodes the specified NamePart message. Does not implicitly {@link google.protobuf.UninterpretedOption.NamePart.verify|verify} messages. - * @function encode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {google.protobuf.UninterpretedOption.INamePart} message NamePart message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - NamePart.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - writer.uint32(/* id 1, wireType 2 =*/10).string(message.namePart); - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isExtension); - return writer; - }; - - /** - * Decodes a NamePart message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.UninterpretedOption.NamePart} NamePart - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - NamePart.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.UninterpretedOption.NamePart(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.namePart = reader.string(); - break; - case 2: - message.isExtension = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - if (!message.hasOwnProperty("namePart")) - throw $util.ProtocolError("missing required 'namePart'", { instance: message }); - if (!message.hasOwnProperty("isExtension")) - throw $util.ProtocolError("missing required 'isExtension'", { instance: message }); - return message; - }; - - /** - * Verifies a NamePart message. - * @function verify - * @memberof google.protobuf.UninterpretedOption.NamePart - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - NamePart.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (!$util.isString(message.namePart)) - return "namePart: string expected"; - if (typeof message.isExtension !== "boolean") - return "isExtension: boolean expected"; - return null; - }; - - return NamePart; - })(); - - return UninterpretedOption; - })(); - - protobuf.SourceCodeInfo = (function() { - - /** - * Properties of a SourceCodeInfo. - * @memberof google.protobuf - * @interface ISourceCodeInfo - * @property {Array.|null} [location] SourceCodeInfo location - */ - - /** - * Constructs a new SourceCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a SourceCodeInfo. - * @implements ISourceCodeInfo - * @constructor - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - */ - function SourceCodeInfo(properties) { - this.location = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * SourceCodeInfo location. - * @member {Array.} location - * @memberof google.protobuf.SourceCodeInfo - * @instance - */ - SourceCodeInfo.prototype.location = $util.emptyArray; - - /** - * Creates a new SourceCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo instance - */ - SourceCodeInfo.create = function create(properties) { - return new SourceCodeInfo(properties); - }; - - /** - * Encodes the specified SourceCodeInfo message. Does not implicitly {@link google.protobuf.SourceCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {google.protobuf.ISourceCodeInfo} message SourceCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SourceCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.location != null && message.location.length) - for (var i = 0; i < message.location.length; ++i) - $root.google.protobuf.SourceCodeInfo.Location.encode(message.location[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a SourceCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo} SourceCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SourceCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.location && message.location.length)) - message.location = []; - message.location.push($root.google.protobuf.SourceCodeInfo.Location.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a SourceCodeInfo message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SourceCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) { - if (!Array.isArray(message.location)) - return "location: array expected"; - for (var i = 0; i < message.location.length; ++i) { - var error = $root.google.protobuf.SourceCodeInfo.Location.verify(message.location[i]); - if (error) - return "location." + error; - } - } - return null; - }; - - SourceCodeInfo.Location = (function() { - - /** - * Properties of a Location. - * @memberof google.protobuf.SourceCodeInfo - * @interface ILocation - * @property {Array.|null} [path] Location path - * @property {Array.|null} [span] Location span - * @property {string|null} [leadingComments] Location leadingComments - * @property {string|null} [trailingComments] Location trailingComments - * @property {Array.|null} [leadingDetachedComments] Location leadingDetachedComments - */ - - /** - * Constructs a new Location. - * @memberof google.protobuf.SourceCodeInfo - * @classdesc Represents a Location. - * @implements ILocation - * @constructor - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - */ - function Location(properties) { - this.path = []; - this.span = []; - this.leadingDetachedComments = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Location path. - * @member {Array.} path - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.path = $util.emptyArray; - - /** - * Location span. - * @member {Array.} span - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.span = $util.emptyArray; - - /** - * Location leadingComments. - * @member {string} leadingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingComments = ""; - - /** - * Location trailingComments. - * @member {string} trailingComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.trailingComments = ""; - - /** - * Location leadingDetachedComments. - * @member {Array.} leadingDetachedComments - * @memberof google.protobuf.SourceCodeInfo.Location - * @instance - */ - Location.prototype.leadingDetachedComments = $util.emptyArray; - - /** - * Creates a new Location instance using the specified properties. - * @function create - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation=} [properties] Properties to set - * @returns {google.protobuf.SourceCodeInfo.Location} Location instance - */ - Location.create = function create(properties) { - return new Location(properties); - }; - - /** - * Encodes the specified Location message. Does not implicitly {@link google.protobuf.SourceCodeInfo.Location.verify|verify} messages. - * @function encode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {google.protobuf.SourceCodeInfo.ILocation} message Location message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Location.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.span != null && message.span.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.span.length; ++i) - writer.int32(message.span[i]); - writer.ldelim(); - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.leadingComments); - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.trailingComments); - if (message.leadingDetachedComments != null && message.leadingDetachedComments.length) - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.leadingDetachedComments[i]); - return writer; - }; - - /** - * Decodes a Location message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.SourceCodeInfo.Location} Location - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Location.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.SourceCodeInfo.Location(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - if (!(message.span && message.span.length)) - message.span = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.span.push(reader.int32()); - } else - message.span.push(reader.int32()); - break; - case 3: - message.leadingComments = reader.string(); - break; - case 4: - message.trailingComments = reader.string(); - break; - case 6: - if (!(message.leadingDetachedComments && message.leadingDetachedComments.length)) - message.leadingDetachedComments = []; - message.leadingDetachedComments.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Location message. - * @function verify - * @memberof google.protobuf.SourceCodeInfo.Location - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Location.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.span != null && message.hasOwnProperty("span")) { - if (!Array.isArray(message.span)) - return "span: array expected"; - for (var i = 0; i < message.span.length; ++i) - if (!$util.isInteger(message.span[i])) - return "span: integer[] expected"; - } - if (message.leadingComments != null && message.hasOwnProperty("leadingComments")) - if (!$util.isString(message.leadingComments)) - return "leadingComments: string expected"; - if (message.trailingComments != null && message.hasOwnProperty("trailingComments")) - if (!$util.isString(message.trailingComments)) - return "trailingComments: string expected"; - if (message.leadingDetachedComments != null && message.hasOwnProperty("leadingDetachedComments")) { - if (!Array.isArray(message.leadingDetachedComments)) - return "leadingDetachedComments: array expected"; - for (var i = 0; i < message.leadingDetachedComments.length; ++i) - if (!$util.isString(message.leadingDetachedComments[i])) - return "leadingDetachedComments: string[] expected"; - } - return null; - }; - - return Location; - })(); - - return SourceCodeInfo; - })(); - - protobuf.GeneratedCodeInfo = (function() { - - /** - * Properties of a GeneratedCodeInfo. - * @memberof google.protobuf - * @interface IGeneratedCodeInfo - * @property {Array.|null} [annotation] GeneratedCodeInfo annotation - */ - - /** - * Constructs a new GeneratedCodeInfo. - * @memberof google.protobuf - * @classdesc Represents a GeneratedCodeInfo. - * @implements IGeneratedCodeInfo - * @constructor - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - */ - function GeneratedCodeInfo(properties) { - this.annotation = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GeneratedCodeInfo annotation. - * @member {Array.} annotation - * @memberof google.protobuf.GeneratedCodeInfo - * @instance - */ - GeneratedCodeInfo.prototype.annotation = $util.emptyArray; - - /** - * Creates a new GeneratedCodeInfo instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo instance - */ - GeneratedCodeInfo.create = function create(properties) { - return new GeneratedCodeInfo(properties); - }; - - /** - * Encodes the specified GeneratedCodeInfo message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {google.protobuf.IGeneratedCodeInfo} message GeneratedCodeInfo message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GeneratedCodeInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.annotation != null && message.annotation.length) - for (var i = 0; i < message.annotation.length; ++i) - $root.google.protobuf.GeneratedCodeInfo.Annotation.encode(message.annotation[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a GeneratedCodeInfo message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo} GeneratedCodeInfo - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GeneratedCodeInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.annotation && message.annotation.length)) - message.annotation = []; - message.annotation.push($root.google.protobuf.GeneratedCodeInfo.Annotation.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a GeneratedCodeInfo message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GeneratedCodeInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.annotation != null && message.hasOwnProperty("annotation")) { - if (!Array.isArray(message.annotation)) - return "annotation: array expected"; - for (var i = 0; i < message.annotation.length; ++i) { - var error = $root.google.protobuf.GeneratedCodeInfo.Annotation.verify(message.annotation[i]); - if (error) - return "annotation." + error; - } - } - return null; - }; - - GeneratedCodeInfo.Annotation = (function() { - - /** - * Properties of an Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @interface IAnnotation - * @property {Array.|null} [path] Annotation path - * @property {string|null} [sourceFile] Annotation sourceFile - * @property {number|null} [begin] Annotation begin - * @property {number|null} [end] Annotation end - */ - - /** - * Constructs a new Annotation. - * @memberof google.protobuf.GeneratedCodeInfo - * @classdesc Represents an Annotation. - * @implements IAnnotation - * @constructor - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - */ - function Annotation(properties) { - this.path = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Annotation path. - * @member {Array.} path - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.path = $util.emptyArray; - - /** - * Annotation sourceFile. - * @member {string} sourceFile - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.sourceFile = ""; - - /** - * Annotation begin. - * @member {number} begin - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.begin = 0; - - /** - * Annotation end. - * @member {number} end - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @instance - */ - Annotation.prototype.end = 0; - - /** - * Creates a new Annotation instance using the specified properties. - * @function create - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation=} [properties] Properties to set - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation instance - */ - Annotation.create = function create(properties) { - return new Annotation(properties); - }; - - /** - * Encodes the specified Annotation message. Does not implicitly {@link google.protobuf.GeneratedCodeInfo.Annotation.verify|verify} messages. - * @function encode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {google.protobuf.GeneratedCodeInfo.IAnnotation} message Annotation message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Annotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.path != null && message.path.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.path.length; ++i) - writer.int32(message.path[i]); - writer.ldelim(); - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceFile); - if (message.begin != null && message.hasOwnProperty("begin")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.begin); - if (message.end != null && message.hasOwnProperty("end")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.end); - return writer; - }; - - /** - * Decodes an Annotation message from the specified reader or buffer. - * @function decode - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.protobuf.GeneratedCodeInfo.Annotation} Annotation - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Annotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.GeneratedCodeInfo.Annotation(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.path && message.path.length)) - message.path = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.path.push(reader.int32()); - } else - message.path.push(reader.int32()); - break; - case 2: - message.sourceFile = reader.string(); - break; - case 3: - message.begin = reader.int32(); - break; - case 4: - message.end = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies an Annotation message. - * @function verify - * @memberof google.protobuf.GeneratedCodeInfo.Annotation - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Annotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.path != null && message.hasOwnProperty("path")) { - if (!Array.isArray(message.path)) - return "path: array expected"; - for (var i = 0; i < message.path.length; ++i) - if (!$util.isInteger(message.path[i])) - return "path: integer[] expected"; - } - if (message.sourceFile != null && message.hasOwnProperty("sourceFile")) - if (!$util.isString(message.sourceFile)) - return "sourceFile: string expected"; - if (message.begin != null && message.hasOwnProperty("begin")) - if (!$util.isInteger(message.begin)) - return "begin: integer expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end)) - return "end: integer expected"; - return null; - }; - - return Annotation; - })(); - - return GeneratedCodeInfo; - })(); - - return protobuf; - })(); - - google.api = (function() { - - /** - * Namespace api. - * @memberof google - * @namespace - */ - var api = {}; - - api.Http = (function() { - - /** - * Properties of a Http. - * @memberof google.api - * @interface IHttp - * @property {Array.|null} [rules] Http rules - */ - - /** - * Constructs a new Http. - * @memberof google.api - * @classdesc Represents a Http. - * @implements IHttp - * @constructor - * @param {google.api.IHttp=} [properties] Properties to set - */ - function Http(properties) { - this.rules = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Http rules. - * @member {Array.} rules - * @memberof google.api.Http - * @instance - */ - Http.prototype.rules = $util.emptyArray; - - /** - * Creates a new Http instance using the specified properties. - * @function create - * @memberof google.api.Http - * @static - * @param {google.api.IHttp=} [properties] Properties to set - * @returns {google.api.Http} Http instance - */ - Http.create = function create(properties) { - return new Http(properties); - }; - - /** - * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages. - * @function encode - * @memberof google.api.Http - * @static - * @param {google.api.IHttp} message Http message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Http.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rules != null && message.rules.length) - for (var i = 0; i < message.rules.length; ++i) - $root.google.api.HttpRule.encode(message.rules[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a Http message from the specified reader or buffer. - * @function decode - * @memberof google.api.Http - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.Http} Http - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Http.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Http(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.rules && message.rules.length)) - message.rules = []; - message.rules.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a Http message. - * @function verify - * @memberof google.api.Http - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Http.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; - for (var i = 0; i < message.rules.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - return null; - }; - - return Http; - })(); - - api.HttpRule = (function() { - - /** - * Properties of a HttpRule. - * @memberof google.api - * @interface IHttpRule - * @property {string|null} [get] HttpRule get - * @property {string|null} [put] HttpRule put - * @property {string|null} [post] HttpRule post - * @property {string|null} ["delete"] HttpRule delete - * @property {string|null} [patch] HttpRule patch - * @property {google.api.ICustomHttpPattern|null} [custom] HttpRule custom - * @property {string|null} [selector] HttpRule selector - * @property {string|null} [body] HttpRule body - * @property {Array.|null} [additionalBindings] HttpRule additionalBindings - */ - - /** - * Constructs a new HttpRule. - * @memberof google.api - * @classdesc Represents a HttpRule. - * @implements IHttpRule - * @constructor - * @param {google.api.IHttpRule=} [properties] Properties to set - */ - function HttpRule(properties) { - this.additionalBindings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * HttpRule get. - * @member {string} get - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.get = ""; - - /** - * HttpRule put. - * @member {string} put - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.put = ""; - - /** - * HttpRule post. - * @member {string} post - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.post = ""; - - /** - * HttpRule delete. - * @member {string} delete - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype["delete"] = ""; - - /** - * HttpRule patch. - * @member {string} patch - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.patch = ""; - - /** - * HttpRule custom. - * @member {google.api.ICustomHttpPattern|null|undefined} custom - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.custom = null; - - /** - * HttpRule selector. - * @member {string} selector - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.selector = ""; - - /** - * HttpRule body. - * @member {string} body - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.body = ""; - - /** - * HttpRule additionalBindings. - * @member {Array.} additionalBindings - * @memberof google.api.HttpRule - * @instance - */ - HttpRule.prototype.additionalBindings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * HttpRule pattern. - * @member {"get"|"put"|"post"|"delete"|"patch"|"custom"|undefined} pattern - * @memberof google.api.HttpRule - * @instance - */ - Object.defineProperty(HttpRule.prototype, "pattern", { - get: $util.oneOfGetter($oneOfFields = ["get", "put", "post", "delete", "patch", "custom"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new HttpRule instance using the specified properties. - * @function create - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule=} [properties] Properties to set - * @returns {google.api.HttpRule} HttpRule instance - */ - HttpRule.create = function create(properties) { - return new HttpRule(properties); - }; - - /** - * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages. - * @function encode - * @memberof google.api.HttpRule - * @static - * @param {google.api.IHttpRule} message HttpRule message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - HttpRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.selector != null && message.hasOwnProperty("selector")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector); - if (message.get != null && message.hasOwnProperty("get")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.get); - if (message.put != null && message.hasOwnProperty("put")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.put); - if (message.post != null && message.hasOwnProperty("post")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.post); - if (message["delete"] != null && message.hasOwnProperty("delete")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message["delete"]); - if (message.patch != null && message.hasOwnProperty("patch")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.patch); - if (message.body != null && message.hasOwnProperty("body")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.body); - if (message.custom != null && message.hasOwnProperty("custom")) - $root.google.api.CustomHttpPattern.encode(message.custom, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.additionalBindings != null && message.additionalBindings.length) - for (var i = 0; i < message.additionalBindings.length; ++i) - $root.google.api.HttpRule.encode(message.additionalBindings[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - return writer; - }; - - /** - * Decodes a HttpRule message from the specified reader or buffer. - * @function decode - * @memberof google.api.HttpRule - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.HttpRule} HttpRule - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - HttpRule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.HttpRule(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.get = reader.string(); - break; - case 3: - message.put = reader.string(); - break; - case 4: - message.post = reader.string(); - break; - case 5: - message["delete"] = reader.string(); - break; - case 6: - message.patch = reader.string(); - break; - case 8: - message.custom = $root.google.api.CustomHttpPattern.decode(reader, reader.uint32()); - break; - case 1: - message.selector = reader.string(); - break; - case 7: - message.body = reader.string(); - break; - case 11: - if (!(message.additionalBindings && message.additionalBindings.length)) - message.additionalBindings = []; - message.additionalBindings.push($root.google.api.HttpRule.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a HttpRule message. - * @function verify - * @memberof google.api.HttpRule - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - HttpRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.get != null && message.hasOwnProperty("get")) { - properties.pattern = 1; - if (!$util.isString(message.get)) - return "get: string expected"; - } - if (message.put != null && message.hasOwnProperty("put")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.put)) - return "put: string expected"; - } - if (message.post != null && message.hasOwnProperty("post")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.post)) - return "post: string expected"; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message["delete"])) - return "delete: string expected"; - } - if (message.patch != null && message.hasOwnProperty("patch")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - if (!$util.isString(message.patch)) - return "patch: string expected"; - } - if (message.custom != null && message.hasOwnProperty("custom")) { - if (properties.pattern === 1) - return "pattern: multiple values"; - properties.pattern = 1; - { - var error = $root.google.api.CustomHttpPattern.verify(message.custom); - if (error) - return "custom." + error; - } - } - if (message.selector != null && message.hasOwnProperty("selector")) - if (!$util.isString(message.selector)) - return "selector: string expected"; - if (message.body != null && message.hasOwnProperty("body")) - if (!$util.isString(message.body)) - return "body: string expected"; - if (message.additionalBindings != null && message.hasOwnProperty("additionalBindings")) { - if (!Array.isArray(message.additionalBindings)) - return "additionalBindings: array expected"; - for (var i = 0; i < message.additionalBindings.length; ++i) { - var error = $root.google.api.HttpRule.verify(message.additionalBindings[i]); - if (error) - return "additionalBindings." + error; - } - } - return null; - }; - - return HttpRule; - })(); - - api.CustomHttpPattern = (function() { - - /** - * Properties of a CustomHttpPattern. - * @memberof google.api - * @interface ICustomHttpPattern - * @property {string|null} [kind] CustomHttpPattern kind - * @property {string|null} [path] CustomHttpPattern path - */ - - /** - * Constructs a new CustomHttpPattern. - * @memberof google.api - * @classdesc Represents a CustomHttpPattern. - * @implements ICustomHttpPattern - * @constructor - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - */ - function CustomHttpPattern(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * CustomHttpPattern kind. - * @member {string} kind - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.kind = ""; - - /** - * CustomHttpPattern path. - * @member {string} path - * @memberof google.api.CustomHttpPattern - * @instance - */ - CustomHttpPattern.prototype.path = ""; - - /** - * Creates a new CustomHttpPattern instance using the specified properties. - * @function create - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern=} [properties] Properties to set - * @returns {google.api.CustomHttpPattern} CustomHttpPattern instance - */ - CustomHttpPattern.create = function create(properties) { - return new CustomHttpPattern(properties); - }; - - /** - * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages. - * @function encode - * @memberof google.api.CustomHttpPattern - * @static - * @param {google.api.ICustomHttpPattern} message CustomHttpPattern message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CustomHttpPattern.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.kind != null && message.hasOwnProperty("kind")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.kind); - if (message.path != null && message.hasOwnProperty("path")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.path); - return writer; - }; - - /** - * Decodes a CustomHttpPattern message from the specified reader or buffer. - * @function decode - * @memberof google.api.CustomHttpPattern - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.api.CustomHttpPattern} CustomHttpPattern - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CustomHttpPattern.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CustomHttpPattern(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.kind = reader.string(); - break; - case 2: - message.path = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Verifies a CustomHttpPattern message. - * @function verify - * @memberof google.api.CustomHttpPattern - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CustomHttpPattern.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.kind != null && message.hasOwnProperty("kind")) - if (!$util.isString(message.kind)) - return "kind: string expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; - return null; - }; - - return CustomHttpPattern; - })(); - - return api; - })(); - - return google; - })(); - - return $root; -}); diff --git a/flyteidl/gen/pb_python/__init__.py b/flyteidl/gen/pb_python/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/__init__.py b/flyteidl/gen/pb_python/flyteidl/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/__init__.py b/flyteidl/gen/pb_python/flyteidl/admin/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py deleted file mode 100644 index 5d515cb0c4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.py +++ /dev/null @@ -1,70 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/agent.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/agent.proto\x12\x0e\x66lyteidl.admin\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/execution.proto\"\x98\x05\n\x15TaskExecutionMetadata\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\x12I\n\x06labels\x18\x03 \x03(\x0b\x32\x31.flyteidl.admin.TaskExecutionMetadata.LabelsEntryR\x06labels\x12X\n\x0b\x61nnotations\x18\x04 \x03(\x0b\x32\x36.flyteidl.admin.TaskExecutionMetadata.AnnotationsEntryR\x0b\x61nnotations\x12.\n\x13k8s_service_account\x18\x05 \x01(\tR\x11k8sServiceAccount\x12t\n\x15\x65nvironment_variables\x18\x06 \x03(\x0b\x32?.flyteidl.admin.TaskExecutionMetadata.EnvironmentVariablesEntryR\x14\x65nvironmentVariables\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1aG\n\x19\x45nvironmentVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x83\x02\n\x11\x43reateTaskRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix\x12]\n\x17task_execution_metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.TaskExecutionMetadataR\x15taskExecutionMetadata\"z\n\x12\x43reateTaskResponse\x12%\n\rresource_meta\x18\x01 \x01(\x0cH\x00R\x0cresourceMeta\x12\x36\n\x08resource\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.ResourceH\x00R\x08resourceB\x05\n\x03res\"R\n\x0eGetTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"|\n\x0fGetTaskResponse\x12\x34\n\x08resource\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ResourceR\x08resource\x12\x33\n\tlog_links\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"\xbb\x01\n\x08Resource\x12+\n\x05state\x18\x01 \x01(\x0e\x32\x15.flyteidl.admin.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs\x12\x18\n\x07message\x18\x03 \x01(\tR\x07message\x12\x33\n\tlog_links\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x08logLinks\"U\n\x11\x44\x65leteTaskRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12#\n\rresource_meta\x18\x02 \x01(\x0cR\x0cresourceMeta\"\x14\n\x12\x44\x65leteTaskResponse\"M\n\x05\x41gent\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x30\n\x14supported_task_types\x18\x02 \x03(\tR\x12supportedTaskTypes\"%\n\x0fGetAgentRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\"?\n\x10GetAgentResponse\x12+\n\x05\x61gent\x18\x01 \x01(\x0b\x32\x15.flyteidl.admin.AgentR\x05\x61gent\"\x13\n\x11ListAgentsRequest\"C\n\x12ListAgentsResponse\x12-\n\x06\x61gents\x18\x01 \x03(\x0b\x32\x15.flyteidl.admin.AgentR\x06\x61gents*^\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x42\xb6\x01\n\x12\x63om.flyteidl.adminB\nAgentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.agent_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nAgentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _TASKEXECUTIONMETADATA_LABELSENTRY._options = None - _TASKEXECUTIONMETADATA_LABELSENTRY._serialized_options = b'8\001' - _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._options = None - _TASKEXECUTIONMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' - _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._options = None - _TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY._serialized_options = b'8\001' - _globals['_STATE']._serialized_start=2032 - _globals['_STATE']._serialized_end=2126 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=198 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=862 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_start=668 - _globals['_TASKEXECUTIONMETADATA_LABELSENTRY']._serialized_end=725 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_start=727 - _globals['_TASKEXECUTIONMETADATA_ANNOTATIONSENTRY']._serialized_end=789 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_start=791 - _globals['_TASKEXECUTIONMETADATA_ENVIRONMENTVARIABLESENTRY']._serialized_end=862 - _globals['_CREATETASKREQUEST']._serialized_start=865 - _globals['_CREATETASKREQUEST']._serialized_end=1124 - _globals['_CREATETASKRESPONSE']._serialized_start=1126 - _globals['_CREATETASKRESPONSE']._serialized_end=1248 - _globals['_GETTASKREQUEST']._serialized_start=1250 - _globals['_GETTASKREQUEST']._serialized_end=1332 - _globals['_GETTASKRESPONSE']._serialized_start=1334 - _globals['_GETTASKRESPONSE']._serialized_end=1458 - _globals['_RESOURCE']._serialized_start=1461 - _globals['_RESOURCE']._serialized_end=1648 - _globals['_DELETETASKREQUEST']._serialized_start=1650 - _globals['_DELETETASKREQUEST']._serialized_end=1735 - _globals['_DELETETASKRESPONSE']._serialized_start=1737 - _globals['_DELETETASKRESPONSE']._serialized_end=1757 - _globals['_AGENT']._serialized_start=1759 - _globals['_AGENT']._serialized_end=1836 - _globals['_GETAGENTREQUEST']._serialized_start=1838 - _globals['_GETAGENTREQUEST']._serialized_end=1875 - _globals['_GETAGENTRESPONSE']._serialized_start=1877 - _globals['_GETAGENTRESPONSE']._serialized_end=1940 - _globals['_LISTAGENTSREQUEST']._serialized_start=1942 - _globals['_LISTAGENTSREQUEST']._serialized_end=1961 - _globals['_LISTAGENTSRESPONSE']._serialized_start=1963 - _globals['_LISTAGENTSRESPONSE']._serialized_end=2030 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi deleted file mode 100644 index 3b80e41b58..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2.pyi +++ /dev/null @@ -1,152 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RETRYABLE_FAILURE: _ClassVar[State] - PERMANENT_FAILURE: _ClassVar[State] - PENDING: _ClassVar[State] - RUNNING: _ClassVar[State] - SUCCEEDED: _ClassVar[State] -RETRYABLE_FAILURE: State -PERMANENT_FAILURE: State -PENDING: State -RUNNING: State -SUCCEEDED: State - -class TaskExecutionMetadata(_message.Message): - __slots__ = ["task_execution_id", "namespace", "labels", "annotations", "k8s_service_account", "environment_variables"] - class LabelsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class AnnotationsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class EnvironmentVariablesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - ENVIRONMENT_VARIABLES_FIELD_NUMBER: _ClassVar[int] - task_execution_id: _identifier_pb2.TaskExecutionIdentifier - namespace: str - labels: _containers.ScalarMap[str, str] - annotations: _containers.ScalarMap[str, str] - k8s_service_account: str - environment_variables: _containers.ScalarMap[str, str] - def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., namespace: _Optional[str] = ..., labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ..., k8s_service_account: _Optional[str] = ..., environment_variables: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class CreateTaskRequest(_message.Message): - __slots__ = ["inputs", "template", "output_prefix", "task_execution_metadata"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] - TASK_EXECUTION_METADATA_FIELD_NUMBER: _ClassVar[int] - inputs: _literals_pb2.LiteralMap - template: _tasks_pb2.TaskTemplate - output_prefix: str - task_execution_metadata: TaskExecutionMetadata - def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ..., task_execution_metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ...) -> None: ... - -class CreateTaskResponse(_message.Message): - __slots__ = ["resource_meta", "resource"] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - RESOURCE_FIELD_NUMBER: _ClassVar[int] - resource_meta: bytes - resource: Resource - def __init__(self, resource_meta: _Optional[bytes] = ..., resource: _Optional[_Union[Resource, _Mapping]] = ...) -> None: ... - -class GetTaskRequest(_message.Message): - __slots__ = ["task_type", "resource_meta"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: str - resource_meta: bytes - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... - -class GetTaskResponse(_message.Message): - __slots__ = ["resource", "log_links"] - RESOURCE_FIELD_NUMBER: _ClassVar[int] - LOG_LINKS_FIELD_NUMBER: _ClassVar[int] - resource: Resource - log_links: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - def __init__(self, resource: _Optional[_Union[Resource, _Mapping]] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... - -class Resource(_message.Message): - __slots__ = ["state", "outputs", "message", "log_links"] - STATE_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - LOG_LINKS_FIELD_NUMBER: _ClassVar[int] - state: State - outputs: _literals_pb2.LiteralMap - message: str - log_links: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., message: _Optional[str] = ..., log_links: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... - -class DeleteTaskRequest(_message.Message): - __slots__ = ["task_type", "resource_meta"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - RESOURCE_META_FIELD_NUMBER: _ClassVar[int] - task_type: str - resource_meta: bytes - def __init__(self, task_type: _Optional[str] = ..., resource_meta: _Optional[bytes] = ...) -> None: ... - -class DeleteTaskResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Agent(_message.Message): - __slots__ = ["name", "supported_task_types"] - NAME_FIELD_NUMBER: _ClassVar[int] - SUPPORTED_TASK_TYPES_FIELD_NUMBER: _ClassVar[int] - name: str - supported_task_types: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, name: _Optional[str] = ..., supported_task_types: _Optional[_Iterable[str]] = ...) -> None: ... - -class GetAgentRequest(_message.Message): - __slots__ = ["name"] - NAME_FIELD_NUMBER: _ClassVar[int] - name: str - def __init__(self, name: _Optional[str] = ...) -> None: ... - -class GetAgentResponse(_message.Message): - __slots__ = ["agent"] - AGENT_FIELD_NUMBER: _ClassVar[int] - agent: Agent - def __init__(self, agent: _Optional[_Union[Agent, _Mapping]] = ...) -> None: ... - -class ListAgentsRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ListAgentsResponse(_message.Message): - __slots__ = ["agents"] - AGENTS_FIELD_NUMBER: _ClassVar[int] - agents: _containers.RepeatedCompositeFieldContainer[Agent] - def __init__(self, agents: _Optional[_Iterable[_Union[Agent, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/agent_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py deleted file mode 100644 index ab2330e69e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/cluster_assignment.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/cluster_assignment.proto\x12\x0e\x66lyteidl.admin\"K\n\x11\x43lusterAssignment\x12*\n\x11\x63luster_pool_name\x18\x03 \x01(\tR\x0f\x63lusterPoolNameJ\x04\x08\x01\x10\x02J\x04\x08\x02\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x43lusterAssignmentProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.cluster_assignment_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ClusterAssignmentProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_CLUSTERASSIGNMENT']._serialized_start=59 - _globals['_CLUSTERASSIGNMENT']._serialized_end=134 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi deleted file mode 100644 index d18fe1bf3d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2.pyi +++ /dev/null @@ -1,11 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class ClusterAssignment(_message.Message): - __slots__ = ["cluster_pool_name"] - CLUSTER_POOL_NAME_FIELD_NUMBER: _ClassVar[int] - cluster_pool_name: str - def __init__(self, cluster_pool_name: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/cluster_assignment_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py deleted file mode 100644 index 7c99413e09..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/common.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/common.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"]\n\x15NamedEntityIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\"o\n\x13NamedEntityMetadata\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x36\n\x05state\x18\x02 \x01(\x0e\x32 .flyteidl.admin.NamedEntityStateR\x05state\"\xc7\x01\n\x0bNamedEntity\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x82\x01\n\x04Sort\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12<\n\tdirection\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.Sort.DirectionR\tdirection\"*\n\tDirection\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\xc9\x01\n NamedEntityIdentifierListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x06 \x01(\tR\x07\x66ilters\"\x81\x02\n\x16NamedEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x04 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x05 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12\x18\n\x07\x66ilters\x18\x07 \x01(\tR\x07\x66ilters\"t\n\x19NamedEntityIdentifierList\x12\x41\n\x08\x65ntities\x18\x01 \x03(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"`\n\x0fNamedEntityList\x12\x37\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x1b.flyteidl.admin.NamedEntityR\x08\x65ntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x90\x01\n\x15NamedEntityGetRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xd4\x01\n\x18NamedEntityUpdateRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12?\n\x08metadata\x18\x03 \x01(\x0b\x32#.flyteidl.admin.NamedEntityMetadataR\x08metadata\"\x1b\n\x19NamedEntityUpdateResponse\"=\n\x10ObjectGetRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\xc1\x01\n\x13ResourceListRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\">\n\x11\x45mailNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"B\n\x15PagerDutyNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\">\n\x11SlackNotification\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\"\x94\x02\n\x0cNotification\x12>\n\x06phases\x18\x01 \x03(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x06phases\x12\x39\n\x05\x65mail\x18\x02 \x01(\x0b\x32!.flyteidl.admin.EmailNotificationH\x00R\x05\x65mail\x12\x46\n\npager_duty\x18\x03 \x01(\x0b\x32%.flyteidl.admin.PagerDutyNotificationH\x00R\tpagerDuty\x12\x39\n\x05slack\x18\x04 \x01(\x0b\x32!.flyteidl.admin.SlackNotificationH\x00R\x05slackB\x06\n\x04type\"5\n\x07UrlBlob\x12\x10\n\x03url\x18\x01 \x01(\tR\x03url\x12\x14\n\x05\x62ytes\x18\x02 \x01(\x03R\x05\x62ytes:\x02\x18\x01\"\x7f\n\x06Labels\x12:\n\x06values\x18\x01 \x03(\x0b\x32\".flyteidl.admin.Labels.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x89\x01\n\x0b\x41nnotations\x12?\n\x06values\x18\x01 \x03(\x0b\x32\'.flyteidl.admin.Annotations.ValuesEntryR\x06values\x1a\x39\n\x0bValuesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\";\n\x04\x45nvs\x12\x33\n\x06values\x18\x01 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x06values\"z\n\x08\x41uthRole\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"K\n\x13RawOutputDataConfig\x12\x34\n\x16output_location_prefix\x18\x01 \x01(\tR\x14outputLocationPrefix\"Q\n\tFlyteURLs\x12\x16\n\x06inputs\x18\x01 \x01(\tR\x06inputs\x12\x18\n\x07outputs\x18\x02 \x01(\tR\x07outputs\x12\x12\n\x04\x64\x65\x63k\x18\x03 \x01(\tR\x04\x64\x65\x63k*\\\n\x10NamedEntityState\x12\x17\n\x13NAMED_ENTITY_ACTIVE\x10\x00\x12\x19\n\x15NAMED_ENTITY_ARCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\x42\xb7\x01\n\x12\x63om.flyteidl.adminB\x0b\x43ommonProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013CommonProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _URLBLOB._options = None - _URLBLOB._serialized_options = b'\030\001' - _LABELS_VALUESENTRY._options = None - _LABELS_VALUESENTRY._serialized_options = b'8\001' - _ANNOTATIONS_VALUESENTRY._options = None - _ANNOTATIONS_VALUESENTRY._serialized_options = b'8\001' - _AUTHROLE._options = None - _AUTHROLE._serialized_options = b'\030\001' - _globals['_NAMEDENTITYSTATE']._serialized_start=3190 - _globals['_NAMEDENTITYSTATE']._serialized_end=3282 - _globals['_NAMEDENTITYIDENTIFIER']._serialized_start=173 - _globals['_NAMEDENTITYIDENTIFIER']._serialized_end=266 - _globals['_NAMEDENTITYMETADATA']._serialized_start=268 - _globals['_NAMEDENTITYMETADATA']._serialized_end=379 - _globals['_NAMEDENTITY']._serialized_start=382 - _globals['_NAMEDENTITY']._serialized_end=581 - _globals['_SORT']._serialized_start=584 - _globals['_SORT']._serialized_end=714 - _globals['_SORT_DIRECTION']._serialized_start=672 - _globals['_SORT_DIRECTION']._serialized_end=714 - _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_start=717 - _globals['_NAMEDENTITYIDENTIFIERLISTREQUEST']._serialized_end=918 - _globals['_NAMEDENTITYLISTREQUEST']._serialized_start=921 - _globals['_NAMEDENTITYLISTREQUEST']._serialized_end=1178 - _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_start=1180 - _globals['_NAMEDENTITYIDENTIFIERLIST']._serialized_end=1296 - _globals['_NAMEDENTITYLIST']._serialized_start=1298 - _globals['_NAMEDENTITYLIST']._serialized_end=1394 - _globals['_NAMEDENTITYGETREQUEST']._serialized_start=1397 - _globals['_NAMEDENTITYGETREQUEST']._serialized_end=1541 - _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_start=1544 - _globals['_NAMEDENTITYUPDATEREQUEST']._serialized_end=1756 - _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_start=1758 - _globals['_NAMEDENTITYUPDATERESPONSE']._serialized_end=1785 - _globals['_OBJECTGETREQUEST']._serialized_start=1787 - _globals['_OBJECTGETREQUEST']._serialized_end=1848 - _globals['_RESOURCELISTREQUEST']._serialized_start=1851 - _globals['_RESOURCELISTREQUEST']._serialized_end=2044 - _globals['_EMAILNOTIFICATION']._serialized_start=2046 - _globals['_EMAILNOTIFICATION']._serialized_end=2108 - _globals['_PAGERDUTYNOTIFICATION']._serialized_start=2110 - _globals['_PAGERDUTYNOTIFICATION']._serialized_end=2176 - _globals['_SLACKNOTIFICATION']._serialized_start=2178 - _globals['_SLACKNOTIFICATION']._serialized_end=2240 - _globals['_NOTIFICATION']._serialized_start=2243 - _globals['_NOTIFICATION']._serialized_end=2519 - _globals['_URLBLOB']._serialized_start=2521 - _globals['_URLBLOB']._serialized_end=2574 - _globals['_LABELS']._serialized_start=2576 - _globals['_LABELS']._serialized_end=2703 - _globals['_LABELS_VALUESENTRY']._serialized_start=2646 - _globals['_LABELS_VALUESENTRY']._serialized_end=2703 - _globals['_ANNOTATIONS']._serialized_start=2706 - _globals['_ANNOTATIONS']._serialized_end=2843 - _globals['_ANNOTATIONS_VALUESENTRY']._serialized_start=2646 - _globals['_ANNOTATIONS_VALUESENTRY']._serialized_end=2703 - _globals['_ENVS']._serialized_start=2845 - _globals['_ENVS']._serialized_end=2904 - _globals['_AUTHROLE']._serialized_start=2906 - _globals['_AUTHROLE']._serialized_end=3028 - _globals['_RAWOUTPUTDATACONFIG']._serialized_start=3030 - _globals['_RAWOUTPUTDATACONFIG']._serialized_end=3105 - _globals['_FLYTEURLS']._serialized_start=3107 - _globals['_FLYTEURLS']._serialized_end=3188 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi deleted file mode 100644 index 9c81d7cf45..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2.pyi +++ /dev/null @@ -1,248 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class NamedEntityState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NAMED_ENTITY_ACTIVE: _ClassVar[NamedEntityState] - NAMED_ENTITY_ARCHIVED: _ClassVar[NamedEntityState] - SYSTEM_GENERATED: _ClassVar[NamedEntityState] -NAMED_ENTITY_ACTIVE: NamedEntityState -NAMED_ENTITY_ARCHIVED: NamedEntityState -SYSTEM_GENERATED: NamedEntityState - -class NamedEntityIdentifier(_message.Message): - __slots__ = ["project", "domain", "name"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class NamedEntityMetadata(_message.Message): - __slots__ = ["description", "state"] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - description: str - state: NamedEntityState - def __init__(self, description: _Optional[str] = ..., state: _Optional[_Union[NamedEntityState, str]] = ...) -> None: ... - -class NamedEntity(_message.Message): - __slots__ = ["resource_type", "id", "metadata"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - metadata: NamedEntityMetadata - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... - -class Sort(_message.Message): - __slots__ = ["key", "direction"] - class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCENDING: _ClassVar[Sort.Direction] - ASCENDING: _ClassVar[Sort.Direction] - DESCENDING: Sort.Direction - ASCENDING: Sort.Direction - KEY_FIELD_NUMBER: _ClassVar[int] - DIRECTION_FIELD_NUMBER: _ClassVar[int] - key: str - direction: Sort.Direction - def __init__(self, key: _Optional[str] = ..., direction: _Optional[_Union[Sort.Direction, str]] = ...) -> None: ... - -class NamedEntityIdentifierListRequest(_message.Message): - __slots__ = ["project", "domain", "limit", "token", "sort_by", "filters"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - limit: int - token: str - sort_by: Sort - filters: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ...) -> None: ... - -class NamedEntityListRequest(_message.Message): - __slots__ = ["resource_type", "project", "domain", "limit", "token", "sort_by", "filters"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - project: str - domain: str - limit: int - token: str - sort_by: Sort - filters: str - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ..., filters: _Optional[str] = ...) -> None: ... - -class NamedEntityIdentifierList(_message.Message): - __slots__ = ["entities", "token"] - ENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - entities: _containers.RepeatedCompositeFieldContainer[NamedEntityIdentifier] - token: str - def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntityIdentifier, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NamedEntityList(_message.Message): - __slots__ = ["entities", "token"] - ENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - entities: _containers.RepeatedCompositeFieldContainer[NamedEntity] - token: str - def __init__(self, entities: _Optional[_Iterable[_Union[NamedEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NamedEntityGetRequest(_message.Message): - __slots__ = ["resource_type", "id"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ...) -> None: ... - -class NamedEntityUpdateRequest(_message.Message): - __slots__ = ["resource_type", "id", "metadata"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: NamedEntityIdentifier - metadata: NamedEntityMetadata - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[NamedEntityMetadata, _Mapping]] = ...) -> None: ... - -class NamedEntityUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ObjectGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class ResourceListRequest(_message.Message): - __slots__ = ["id", "limit", "token", "filters", "sort_by"] - ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - id: NamedEntityIdentifier - limit: int - token: str - filters: str - sort_by: Sort - def __init__(self, id: _Optional[_Union[NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[Sort, _Mapping]] = ...) -> None: ... - -class EmailNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class PagerDutyNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class SlackNotification(_message.Message): - __slots__ = ["recipients_email"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ...) -> None: ... - -class Notification(_message.Message): - __slots__ = ["phases", "email", "pager_duty", "slack"] - PHASES_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - PAGER_DUTY_FIELD_NUMBER: _ClassVar[int] - SLACK_FIELD_NUMBER: _ClassVar[int] - phases: _containers.RepeatedScalarFieldContainer[_execution_pb2.WorkflowExecution.Phase] - email: EmailNotification - pager_duty: PagerDutyNotification - slack: SlackNotification - def __init__(self, phases: _Optional[_Iterable[_Union[_execution_pb2.WorkflowExecution.Phase, str]]] = ..., email: _Optional[_Union[EmailNotification, _Mapping]] = ..., pager_duty: _Optional[_Union[PagerDutyNotification, _Mapping]] = ..., slack: _Optional[_Union[SlackNotification, _Mapping]] = ...) -> None: ... - -class UrlBlob(_message.Message): - __slots__ = ["url", "bytes"] - URL_FIELD_NUMBER: _ClassVar[int] - BYTES_FIELD_NUMBER: _ClassVar[int] - url: str - bytes: int - def __init__(self, url: _Optional[str] = ..., bytes: _Optional[int] = ...) -> None: ... - -class Labels(_message.Message): - __slots__ = ["values"] - class ValuesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.ScalarMap[str, str] - def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Annotations(_message.Message): - __slots__ = ["values"] - class ValuesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.ScalarMap[str, str] - def __init__(self, values: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Envs(_message.Message): - __slots__ = ["values"] - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - def __init__(self, values: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ...) -> None: ... - -class AuthRole(_message.Message): - __slots__ = ["assumable_iam_role", "kubernetes_service_account"] - ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - assumable_iam_role: str - kubernetes_service_account: str - def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... - -class RawOutputDataConfig(_message.Message): - __slots__ = ["output_location_prefix"] - OUTPUT_LOCATION_PREFIX_FIELD_NUMBER: _ClassVar[int] - output_location_prefix: str - def __init__(self, output_location_prefix: _Optional[str] = ...) -> None: ... - -class FlyteURLs(_message.Message): - __slots__ = ["inputs", "outputs", "deck"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - DECK_FIELD_NUMBER: _ClassVar[int] - inputs: str - outputs: str - deck: str - def __init__(self, inputs: _Optional[str] = ..., outputs: _Optional[str] = ..., deck: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/common_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py deleted file mode 100644 index af96988c48..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/description_entity.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/description_entity.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/admin/common.proto\"\x84\x02\n\x11\x44\x65scriptionEntity\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12+\n\x11short_description\x18\x02 \x01(\tR\x10shortDescription\x12\x46\n\x10long_description\x18\x03 \x01(\x0b\x32\x1b.flyteidl.admin.DescriptionR\x0flongDescription\x12;\n\x0bsource_code\x18\x04 \x01(\x0b\x32\x1a.flyteidl.admin.SourceCodeR\nsourceCode\x12\x12\n\x04tags\x18\x05 \x03(\tR\x04tags\"\x9c\x01\n\x0b\x44\x65scription\x12\x16\n\x05value\x18\x01 \x01(\tH\x00R\x05value\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uri\x12\x39\n\x06\x66ormat\x18\x03 \x01(\x0e\x32!.flyteidl.admin.DescriptionFormatR\x06\x66ormat\x12\x1b\n\ticon_link\x18\x04 \x01(\tR\x08iconLinkB\t\n\x07\x63ontent\" \n\nSourceCode\x12\x12\n\x04link\x18\x01 \x01(\tR\x04link\"\x82\x01\n\x15\x44\x65scriptionEntityList\x12S\n\x13\x64\x65scriptionEntities\x18\x01 \x03(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x13\x64\x65scriptionEntities\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x8c\x02\n\x1c\x44\x65scriptionEntityListRequest\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x35\n\x02id\x18\x02 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x05 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x06 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*\x8d\x01\n\x11\x44\x65scriptionFormat\x12\x1e\n\x1a\x44\x45SCRIPTION_FORMAT_UNKNOWN\x10\x00\x12\x1f\n\x1b\x44\x45SCRIPTION_FORMAT_MARKDOWN\x10\x01\x12\x1b\n\x17\x44\x45SCRIPTION_FORMAT_HTML\x10\x02\x12\x1a\n\x16\x44\x45SCRIPTION_FORMAT_RST\x10\x03\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16\x44\x65scriptionEntityProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.description_entity_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026DescriptionEntityProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_DESCRIPTIONFORMAT']._serialized_start=981 - _globals['_DESCRIPTIONFORMAT']._serialized_end=1122 - _globals['_DESCRIPTIONENTITY']._serialized_start=121 - _globals['_DESCRIPTIONENTITY']._serialized_end=381 - _globals['_DESCRIPTION']._serialized_start=384 - _globals['_DESCRIPTION']._serialized_end=540 - _globals['_SOURCECODE']._serialized_start=542 - _globals['_SOURCECODE']._serialized_end=574 - _globals['_DESCRIPTIONENTITYLIST']._serialized_start=577 - _globals['_DESCRIPTIONENTITYLIST']._serialized_end=707 - _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_start=710 - _globals['_DESCRIPTIONENTITYLISTREQUEST']._serialized_end=978 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi deleted file mode 100644 index 200778457d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2.pyi +++ /dev/null @@ -1,76 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DescriptionFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCRIPTION_FORMAT_UNKNOWN: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_MARKDOWN: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_HTML: _ClassVar[DescriptionFormat] - DESCRIPTION_FORMAT_RST: _ClassVar[DescriptionFormat] -DESCRIPTION_FORMAT_UNKNOWN: DescriptionFormat -DESCRIPTION_FORMAT_MARKDOWN: DescriptionFormat -DESCRIPTION_FORMAT_HTML: DescriptionFormat -DESCRIPTION_FORMAT_RST: DescriptionFormat - -class DescriptionEntity(_message.Message): - __slots__ = ["id", "short_description", "long_description", "source_code", "tags"] - ID_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LONG_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - SOURCE_CODE_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - short_description: str - long_description: Description - source_code: SourceCode - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., short_description: _Optional[str] = ..., long_description: _Optional[_Union[Description, _Mapping]] = ..., source_code: _Optional[_Union[SourceCode, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class Description(_message.Message): - __slots__ = ["value", "uri", "format", "icon_link"] - VALUE_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - ICON_LINK_FIELD_NUMBER: _ClassVar[int] - value: str - uri: str - format: DescriptionFormat - icon_link: str - def __init__(self, value: _Optional[str] = ..., uri: _Optional[str] = ..., format: _Optional[_Union[DescriptionFormat, str]] = ..., icon_link: _Optional[str] = ...) -> None: ... - -class SourceCode(_message.Message): - __slots__ = ["link"] - LINK_FIELD_NUMBER: _ClassVar[int] - link: str - def __init__(self, link: _Optional[str] = ...) -> None: ... - -class DescriptionEntityList(_message.Message): - __slots__ = ["descriptionEntities", "token"] - DESCRIPTIONENTITIES_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - descriptionEntities: _containers.RepeatedCompositeFieldContainer[DescriptionEntity] - token: str - def __init__(self, descriptionEntities: _Optional[_Iterable[_Union[DescriptionEntity, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class DescriptionEntityListRequest(_message.Message): - __slots__ = ["resource_type", "id", "limit", "token", "filters", "sort_by"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - resource_type: _identifier_pb2.ResourceType - id: _common_pb2.NamedEntityIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, resource_type: _Optional[_Union[_identifier_pb2.ResourceType, str]] = ..., id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/description_entity_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py deleted file mode 100644 index 7f2ba1e6ba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/event.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/admin/event.proto\x12\x0e\x66lyteidl.admin\x1a\x1a\x66lyteidl/event/event.proto\"G\n EventErrorAlreadyInTerminalState\x12#\n\rcurrent_phase\x18\x01 \x01(\tR\x0c\x63urrentPhase\"9\n\x1d\x45ventErrorIncompatibleCluster\x12\x18\n\x07\x63luster\x18\x01 \x01(\tR\x07\x63luster\"\xf1\x01\n\x12\x45ventFailureReason\x12m\n\x19\x61lready_in_terminal_state\x18\x01 \x01(\x0b\x32\x30.flyteidl.admin.EventErrorAlreadyInTerminalStateH\x00R\x16\x61lreadyInTerminalState\x12\x62\n\x14incompatible_cluster\x18\x02 \x01(\x0b\x32-.flyteidl.admin.EventErrorIncompatibleClusterH\x00R\x13incompatibleClusterB\x08\n\x06reason\"|\n\x1dWorkflowExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12<\n\x05\x65vent\x18\x02 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x05\x65vent\" \n\x1eWorkflowExecutionEventResponse\"t\n\x19NodeExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x05\x65vent\"\x1c\n\x1aNodeExecutionEventResponse\"t\n\x19TaskExecutionEventRequest\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12\x38\n\x05\x65vent\x18\x02 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x05\x65vent\"\x1c\n\x1aTaskExecutionEventResponseB\xb6\x01\n\x12\x63om.flyteidl.adminB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.event_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_start=74 - _globals['_EVENTERRORALREADYINTERMINALSTATE']._serialized_end=145 - _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_start=147 - _globals['_EVENTERRORINCOMPATIBLECLUSTER']._serialized_end=204 - _globals['_EVENTFAILUREREASON']._serialized_start=207 - _globals['_EVENTFAILUREREASON']._serialized_end=448 - _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_start=450 - _globals['_WORKFLOWEXECUTIONEVENTREQUEST']._serialized_end=574 - _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_start=576 - _globals['_WORKFLOWEXECUTIONEVENTRESPONSE']._serialized_end=608 - _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_start=610 - _globals['_NODEEXECUTIONEVENTREQUEST']._serialized_end=726 - _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_start=728 - _globals['_NODEEXECUTIONEVENTRESPONSE']._serialized_end=756 - _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_start=758 - _globals['_TASKEXECUTIONEVENTREQUEST']._serialized_end=874 - _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_start=876 - _globals['_TASKEXECUTIONEVENTRESPONSE']._serialized_end=904 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi deleted file mode 100644 index 47eac9aa7f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.event import event_pb2 as _event_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class EventErrorAlreadyInTerminalState(_message.Message): - __slots__ = ["current_phase"] - CURRENT_PHASE_FIELD_NUMBER: _ClassVar[int] - current_phase: str - def __init__(self, current_phase: _Optional[str] = ...) -> None: ... - -class EventErrorIncompatibleCluster(_message.Message): - __slots__ = ["cluster"] - CLUSTER_FIELD_NUMBER: _ClassVar[int] - cluster: str - def __init__(self, cluster: _Optional[str] = ...) -> None: ... - -class EventFailureReason(_message.Message): - __slots__ = ["already_in_terminal_state", "incompatible_cluster"] - ALREADY_IN_TERMINAL_STATE_FIELD_NUMBER: _ClassVar[int] - INCOMPATIBLE_CLUSTER_FIELD_NUMBER: _ClassVar[int] - already_in_terminal_state: EventErrorAlreadyInTerminalState - incompatible_cluster: EventErrorIncompatibleCluster - def __init__(self, already_in_terminal_state: _Optional[_Union[EventErrorAlreadyInTerminalState, _Mapping]] = ..., incompatible_cluster: _Optional[_Union[EventErrorIncompatibleCluster, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.WorkflowExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class NodeExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.NodeExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ...) -> None: ... - -class NodeExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class TaskExecutionEventRequest(_message.Message): - __slots__ = ["request_id", "event"] - REQUEST_ID_FIELD_NUMBER: _ClassVar[int] - EVENT_FIELD_NUMBER: _ClassVar[int] - request_id: str - event: _event_pb2.TaskExecutionEvent - def __init__(self, request_id: _Optional[str] = ..., event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... - -class TaskExecutionEventResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/event_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py deleted file mode 100644 index f71cdab8a2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.py +++ /dev/null @@ -1,104 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import metrics_pb2 as flyteidl_dot_core_dot_metrics__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/admin/execution.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/metrics.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\xc4\x01\n\x16\x45xecutionCreateRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\x31\n\x04spec\x18\x04 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12\x31\n\x06inputs\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\"\x99\x01\n\x18\x45xecutionRelaunchRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\x12\'\n\x0foverwrite_cache\x18\x04 \x01(\x08R\x0eoverwriteCacheJ\x04\x08\x02\x10\x03\"\xa8\x01\n\x17\x45xecutionRecoverRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\"U\n\x17\x45xecutionCreateResponse\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"Y\n\x1bWorkflowExecutionGetRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\xb6\x01\n\tExecution\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x31\n\x04spec\x18\x02 \x01(\x0b\x32\x1d.flyteidl.admin.ExecutionSpecR\x04spec\x12:\n\x07\x63losure\x18\x03 \x01(\x0b\x32 .flyteidl.admin.ExecutionClosureR\x07\x63losure\"`\n\rExecutionList\x12\x39\n\nexecutions\x18\x01 \x03(\x0b\x32\x19.flyteidl.admin.ExecutionR\nexecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"e\n\x0eLiteralMapBlob\x12\x37\n\x06values\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\x06values\x12\x12\n\x03uri\x18\x02 \x01(\tH\x00R\x03uriB\x06\n\x04\x64\x61ta\"C\n\rAbortMetadata\x12\x14\n\x05\x63\x61use\x18\x01 \x01(\tR\x05\x63\x61use\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\"\x98\x07\n\x10\x45xecutionClosure\x12>\n\x07outputs\x18\x01 \x01(\x0b\x32\x1e.flyteidl.admin.LiteralMapBlobB\x02\x18\x01H\x00R\x07outputs\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12%\n\x0b\x61\x62ort_cause\x18\n \x01(\tB\x02\x18\x01H\x00R\nabortCause\x12\x46\n\x0e\x61\x62ort_metadata\x18\x0c \x01(\x0b\x32\x1d.flyteidl.admin.AbortMetadataH\x00R\rabortMetadata\x12@\n\x0boutput_data\x18\r \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x46\n\x0f\x63omputed_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x0e\x63omputedInputs\x12<\n\x05phase\x18\x04 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x42\n\rnotifications\x18\t \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12:\n\x0bworkflow_id\x18\x0b \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12]\n\x14state_change_details\x18\x0e \x01(\x0b\x32+.flyteidl.admin.ExecutionStateChangeDetailsR\x12stateChangeDetailsB\x0f\n\routput_result\"[\n\x0eSystemMetadata\x12+\n\x11\x65xecution_cluster\x18\x01 \x01(\tR\x10\x65xecutionCluster\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\xf8\x04\n\x11\x45xecutionMetadata\x12\x43\n\x04mode\x18\x01 \x01(\x0e\x32/.flyteidl.admin.ExecutionMetadata.ExecutionModeR\x04mode\x12\x1c\n\tprincipal\x18\x02 \x01(\tR\tprincipal\x12\x18\n\x07nesting\x18\x03 \x01(\rR\x07nesting\x12=\n\x0cscheduled_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0bscheduledAt\x12Z\n\x15parent_node_execution\x18\x05 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x13parentNodeExecution\x12[\n\x13reference_execution\x18\x10 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12G\n\x0fsystem_metadata\x18\x11 \x01(\x0b\x32\x1e.flyteidl.admin.SystemMetadataR\x0esystemMetadata\x12<\n\x0c\x61rtifact_ids\x18\x12 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\"g\n\rExecutionMode\x12\n\n\x06MANUAL\x10\x00\x12\r\n\tSCHEDULED\x10\x01\x12\n\n\x06SYSTEM\x10\x02\x12\x0c\n\x08RELAUNCH\x10\x03\x12\x12\n\x0e\x43HILD_WORKFLOW\x10\x04\x12\r\n\tRECOVERED\x10\x05\"V\n\x10NotificationList\x12\x42\n\rnotifications\x18\x01 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\"\x90\x08\n\rExecutionSpec\x12:\n\x0blaunch_plan\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nlaunchPlan\x12\x35\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01R\x06inputs\x12=\n\x08metadata\x18\x03 \x01(\x0b\x32!.flyteidl.admin.ExecutionMetadataR\x08metadata\x12H\n\rnotifications\x18\x05 \x01(\x0b\x32 .flyteidl.admin.NotificationListH\x00R\rnotifications\x12!\n\x0b\x64isable_all\x18\x06 \x01(\x08H\x00R\ndisableAll\x12.\n\x06labels\x18\x07 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x08 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12\x39\n\tauth_role\x18\x10 \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12M\n\x12quality_of_service\x18\x11 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12X\n\x16raw_output_data_config\x18\x13 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12P\n\x12\x63luster_assignment\x18\x14 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentR\x11\x63lusterAssignment\x12@\n\rinterruptible\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x16 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x17 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\x12\x12\n\x04tags\x18\x18 \x03(\tR\x04tagsB\x18\n\x16notification_overridesJ\x04\x08\x04\x10\x05\"m\n\x19\x45xecutionTerminateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x63\x61use\x18\x02 \x01(\tR\x05\x63\x61use\"\x1c\n\x1a\x45xecutionTerminateResponse\"]\n\x1fWorkflowExecutionGetDataRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\"\x88\x02\n WorkflowExecutionGetDataResponse\x12\x35\n\x07outputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\"\x8a\x01\n\x16\x45xecutionUpdateRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x34\n\x05state\x18\x02 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\"\xae\x01\n\x1b\x45xecutionStateChangeDetails\x12\x34\n\x05state\x18\x01 \x01(\x0e\x32\x1e.flyteidl.admin.ExecutionStateR\x05state\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\"\x19\n\x17\x45xecutionUpdateResponse\"v\n\"WorkflowExecutionGetMetricsRequest\x12:\n\x02id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x02id\x12\x14\n\x05\x64\x65pth\x18\x02 \x01(\x05R\x05\x64\x65pth\"N\n#WorkflowExecutionGetMetricsResponse\x12\'\n\x04span\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.SpanR\x04span*>\n\x0e\x45xecutionState\x12\x14\n\x10\x45XECUTION_ACTIVE\x10\x00\x12\x16\n\x12\x45XECUTION_ARCHIVED\x10\x01\x42\xba\x01\n\x12\x63om.flyteidl.adminB\x0e\x45xecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\016ExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _LITERALMAPBLOB.fields_by_name['values']._options = None - _LITERALMAPBLOB.fields_by_name['values']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['outputs']._options = None - _EXECUTIONCLOSURE.fields_by_name['outputs']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['abort_cause']._options = None - _EXECUTIONCLOSURE.fields_by_name['abort_cause']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _EXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._options = None - _EXECUTIONCLOSURE.fields_by_name['computed_inputs']._serialized_options = b'\030\001' - _EXECUTIONSPEC.fields_by_name['inputs']._options = None - _EXECUTIONSPEC.fields_by_name['inputs']._serialized_options = b'\030\001' - _EXECUTIONSPEC.fields_by_name['auth_role']._options = None - _EXECUTIONSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _WORKFLOWEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _globals['_EXECUTIONSTATE']._serialized_start=5391 - _globals['_EXECUTIONSTATE']._serialized_end=5453 - _globals['_EXECUTIONCREATEREQUEST']._serialized_start=403 - _globals['_EXECUTIONCREATEREQUEST']._serialized_end=599 - _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_start=602 - _globals['_EXECUTIONRELAUNCHREQUEST']._serialized_end=755 - _globals['_EXECUTIONRECOVERREQUEST']._serialized_start=758 - _globals['_EXECUTIONRECOVERREQUEST']._serialized_end=926 - _globals['_EXECUTIONCREATERESPONSE']._serialized_start=928 - _globals['_EXECUTIONCREATERESPONSE']._serialized_end=1013 - _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_start=1015 - _globals['_WORKFLOWEXECUTIONGETREQUEST']._serialized_end=1104 - _globals['_EXECUTION']._serialized_start=1107 - _globals['_EXECUTION']._serialized_end=1289 - _globals['_EXECUTIONLIST']._serialized_start=1291 - _globals['_EXECUTIONLIST']._serialized_end=1387 - _globals['_LITERALMAPBLOB']._serialized_start=1389 - _globals['_LITERALMAPBLOB']._serialized_end=1490 - _globals['_ABORTMETADATA']._serialized_start=1492 - _globals['_ABORTMETADATA']._serialized_end=1559 - _globals['_EXECUTIONCLOSURE']._serialized_start=1562 - _globals['_EXECUTIONCLOSURE']._serialized_end=2482 - _globals['_SYSTEMMETADATA']._serialized_start=2484 - _globals['_SYSTEMMETADATA']._serialized_end=2575 - _globals['_EXECUTIONMETADATA']._serialized_start=2578 - _globals['_EXECUTIONMETADATA']._serialized_end=3210 - _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_start=3107 - _globals['_EXECUTIONMETADATA_EXECUTIONMODE']._serialized_end=3210 - _globals['_NOTIFICATIONLIST']._serialized_start=3212 - _globals['_NOTIFICATIONLIST']._serialized_end=3298 - _globals['_EXECUTIONSPEC']._serialized_start=3301 - _globals['_EXECUTIONSPEC']._serialized_end=4341 - _globals['_EXECUTIONTERMINATEREQUEST']._serialized_start=4343 - _globals['_EXECUTIONTERMINATEREQUEST']._serialized_end=4452 - _globals['_EXECUTIONTERMINATERESPONSE']._serialized_start=4454 - _globals['_EXECUTIONTERMINATERESPONSE']._serialized_end=4482 - _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_start=4484 - _globals['_WORKFLOWEXECUTIONGETDATAREQUEST']._serialized_end=4577 - _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_start=4580 - _globals['_WORKFLOWEXECUTIONGETDATARESPONSE']._serialized_end=4844 - _globals['_EXECUTIONUPDATEREQUEST']._serialized_start=4847 - _globals['_EXECUTIONUPDATEREQUEST']._serialized_end=4985 - _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_start=4988 - _globals['_EXECUTIONSTATECHANGEDETAILS']._serialized_end=5162 - _globals['_EXECUTIONUPDATERESPONSE']._serialized_start=5164 - _globals['_EXECUTIONUPDATERESPONSE']._serialized_end=5189 - _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_start=5191 - _globals['_WORKFLOWEXECUTIONGETMETRICSREQUEST']._serialized_end=5309 - _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_start=5311 - _globals['_WORKFLOWEXECUTIONGETMETRICSRESPONSE']._serialized_end=5389 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi deleted file mode 100644 index 1e5e21f19f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2.pyi +++ /dev/null @@ -1,289 +0,0 @@ -from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import metrics_pb2 as _metrics_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ExecutionState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EXECUTION_ACTIVE: _ClassVar[ExecutionState] - EXECUTION_ARCHIVED: _ClassVar[ExecutionState] -EXECUTION_ACTIVE: ExecutionState -EXECUTION_ARCHIVED: ExecutionState - -class ExecutionCreateRequest(_message.Message): - __slots__ = ["project", "domain", "name", "spec", "inputs"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - spec: ExecutionSpec - inputs: _literals_pb2.LiteralMap - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class ExecutionRelaunchRequest(_message.Message): - __slots__ = ["id", "name", "overwrite_cache"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - name: str - overwrite_cache: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., overwrite_cache: bool = ...) -> None: ... - -class ExecutionRecoverRequest(_message.Message): - __slots__ = ["id", "name", "metadata"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - name: str - metadata: ExecutionMetadata - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., name: _Optional[str] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ...) -> None: ... - -class ExecutionCreateResponse(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class Execution(_message.Message): - __slots__ = ["id", "spec", "closure"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - spec: ExecutionSpec - closure: ExecutionClosure - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., spec: _Optional[_Union[ExecutionSpec, _Mapping]] = ..., closure: _Optional[_Union[ExecutionClosure, _Mapping]] = ...) -> None: ... - -class ExecutionList(_message.Message): - __slots__ = ["executions", "token"] - EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - executions: _containers.RepeatedCompositeFieldContainer[Execution] - token: str - def __init__(self, executions: _Optional[_Iterable[_Union[Execution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class LiteralMapBlob(_message.Message): - __slots__ = ["values", "uri"] - VALUES_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - values: _literals_pb2.LiteralMap - uri: str - def __init__(self, values: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... - -class AbortMetadata(_message.Message): - __slots__ = ["cause", "principal"] - CAUSE_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - cause: str - principal: str - def __init__(self, cause: _Optional[str] = ..., principal: _Optional[str] = ...) -> None: ... - -class ExecutionClosure(_message.Message): - __slots__ = ["outputs", "error", "abort_cause", "abort_metadata", "output_data", "computed_inputs", "phase", "started_at", "duration", "created_at", "updated_at", "notifications", "workflow_id", "state_change_details"] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - ABORT_CAUSE_FIELD_NUMBER: _ClassVar[int] - ABORT_METADATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - COMPUTED_INPUTS_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - STATE_CHANGE_DETAILS_FIELD_NUMBER: _ClassVar[int] - outputs: LiteralMapBlob - error: _execution_pb2.ExecutionError - abort_cause: str - abort_metadata: AbortMetadata - output_data: _literals_pb2.LiteralMap - computed_inputs: _literals_pb2.LiteralMap - phase: _execution_pb2.WorkflowExecution.Phase - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - workflow_id: _identifier_pb2.Identifier - state_change_details: ExecutionStateChangeDetails - def __init__(self, outputs: _Optional[_Union[LiteralMapBlob, _Mapping]] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., abort_cause: _Optional[str] = ..., abort_metadata: _Optional[_Union[AbortMetadata, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., computed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state_change_details: _Optional[_Union[ExecutionStateChangeDetails, _Mapping]] = ...) -> None: ... - -class SystemMetadata(_message.Message): - __slots__ = ["execution_cluster", "namespace"] - EXECUTION_CLUSTER_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - execution_cluster: str - namespace: str - def __init__(self, execution_cluster: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... - -class ExecutionMetadata(_message.Message): - __slots__ = ["mode", "principal", "nesting", "scheduled_at", "parent_node_execution", "reference_execution", "system_metadata", "artifact_ids"] - class ExecutionMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - MANUAL: _ClassVar[ExecutionMetadata.ExecutionMode] - SCHEDULED: _ClassVar[ExecutionMetadata.ExecutionMode] - SYSTEM: _ClassVar[ExecutionMetadata.ExecutionMode] - RELAUNCH: _ClassVar[ExecutionMetadata.ExecutionMode] - CHILD_WORKFLOW: _ClassVar[ExecutionMetadata.ExecutionMode] - RECOVERED: _ClassVar[ExecutionMetadata.ExecutionMode] - MANUAL: ExecutionMetadata.ExecutionMode - SCHEDULED: ExecutionMetadata.ExecutionMode - SYSTEM: ExecutionMetadata.ExecutionMode - RELAUNCH: ExecutionMetadata.ExecutionMode - CHILD_WORKFLOW: ExecutionMetadata.ExecutionMode - RECOVERED: ExecutionMetadata.ExecutionMode - MODE_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - NESTING_FIELD_NUMBER: _ClassVar[int] - SCHEDULED_AT_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - SYSTEM_METADATA_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - mode: ExecutionMetadata.ExecutionMode - principal: str - nesting: int - scheduled_at: _timestamp_pb2.Timestamp - parent_node_execution: _identifier_pb2.NodeExecutionIdentifier - reference_execution: _identifier_pb2.WorkflowExecutionIdentifier - system_metadata: SystemMetadata - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - def __init__(self, mode: _Optional[_Union[ExecutionMetadata.ExecutionMode, str]] = ..., principal: _Optional[str] = ..., nesting: _Optional[int] = ..., scheduled_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., parent_node_execution: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., system_metadata: _Optional[_Union[SystemMetadata, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ...) -> None: ... - -class NotificationList(_message.Message): - __slots__ = ["notifications"] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - def __init__(self, notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ...) -> None: ... - -class ExecutionSpec(_message.Message): - __slots__ = ["launch_plan", "inputs", "metadata", "notifications", "disable_all", "labels", "annotations", "security_context", "auth_role", "quality_of_service", "max_parallelism", "raw_output_data_config", "cluster_assignment", "interruptible", "overwrite_cache", "envs", "tags"] - LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - DISABLE_ALL_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - launch_plan: _identifier_pb2.Identifier - inputs: _literals_pb2.LiteralMap - metadata: ExecutionMetadata - notifications: NotificationList - disable_all: bool - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - security_context: _security_pb2.SecurityContext - auth_role: _common_pb2.AuthRole - quality_of_service: _execution_pb2.QualityOfService - max_parallelism: int - raw_output_data_config: _common_pb2.RawOutputDataConfig - cluster_assignment: _cluster_assignment_pb2.ClusterAssignment - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, launch_plan: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., metadata: _Optional[_Union[ExecutionMetadata, _Mapping]] = ..., notifications: _Optional[_Union[NotificationList, _Mapping]] = ..., disable_all: bool = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class ExecutionTerminateRequest(_message.Message): - __slots__ = ["id", "cause"] - ID_FIELD_NUMBER: _ClassVar[int] - CAUSE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - cause: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., cause: _Optional[str] = ...) -> None: ... - -class ExecutionTerminateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class WorkflowExecutionGetDataResponse(_message.Message): - __slots__ = ["outputs", "inputs", "full_inputs", "full_outputs"] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - outputs: _common_pb2.UrlBlob - inputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - def __init__(self, outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class ExecutionUpdateRequest(_message.Message): - __slots__ = ["id", "state"] - ID_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - state: ExecutionState - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., state: _Optional[_Union[ExecutionState, str]] = ...) -> None: ... - -class ExecutionStateChangeDetails(_message.Message): - __slots__ = ["state", "occurred_at", "principal"] - STATE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - state: ExecutionState - occurred_at: _timestamp_pb2.Timestamp - principal: str - def __init__(self, state: _Optional[_Union[ExecutionState, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., principal: _Optional[str] = ...) -> None: ... - -class ExecutionUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowExecutionGetMetricsRequest(_message.Message): - __slots__ = ["id", "depth"] - ID_FIELD_NUMBER: _ClassVar[int] - DEPTH_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.WorkflowExecutionIdentifier - depth: int - def __init__(self, id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., depth: _Optional[int] = ...) -> None: ... - -class WorkflowExecutionGetMetricsResponse(_message.Message): - __slots__ = ["span"] - SPAN_FIELD_NUMBER: _ClassVar[int] - span: _metrics_pb2.Span - def __init__(self, span: _Optional[_Union[_metrics_pb2.Span, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py deleted file mode 100644 index dea0972f4d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/launch_plan.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from flyteidl.admin import schedule_pb2 as flyteidl_dot_admin_dot_schedule__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/admin/launch_plan.proto\x12\x0e\x66lyteidl.admin\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1d\x66lyteidl/admin/schedule.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"x\n\x17LaunchPlanCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\"\x1a\n\x18LaunchPlanCreateResponse\"\xa8\x01\n\nLaunchPlan\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x32\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.flyteidl.admin.LaunchPlanSpecR\x04spec\x12;\n\x07\x63losure\x18\x03 \x01(\x0b\x32!.flyteidl.admin.LaunchPlanClosureR\x07\x63losure\"e\n\x0eLaunchPlanList\x12=\n\x0claunch_plans\x18\x01 \x03(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x0blaunchPlans\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"v\n\x04\x41uth\x12,\n\x12\x61ssumable_iam_role\x18\x01 \x01(\tR\x10\x61ssumableIamRole\x12<\n\x1akubernetes_service_account\x18\x02 \x01(\tR\x18kubernetesServiceAccount:\x02\x18\x01\"\xbd\x07\n\x0eLaunchPlanSpec\x12:\n\x0bworkflow_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12K\n\x0f\x65ntity_metadata\x18\x02 \x01(\x0b\x32\".flyteidl.admin.LaunchPlanMetadataR\x0e\x65ntityMetadata\x12\x42\n\x0e\x64\x65\x66\x61ult_inputs\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\rdefaultInputs\x12<\n\x0c\x66ixed_inputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ixedInputs\x12\x16\n\x04role\x18\x05 \x01(\tB\x02\x18\x01R\x04role\x12.\n\x06labels\x18\x06 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x07 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12,\n\x04\x61uth\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.AuthB\x02\x18\x01R\x04\x61uth\x12\x39\n\tauth_role\x18\t \x01(\x0b\x32\x18.flyteidl.admin.AuthRoleB\x02\x18\x01R\x08\x61uthRole\x12I\n\x10security_context\x18\n \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12M\n\x12quality_of_service\x18\x10 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12X\n\x16raw_output_data_config\x18\x11 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12\'\n\x0fmax_parallelism\x18\x12 \x01(\x05R\x0emaxParallelism\x12@\n\rinterruptible\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x14 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x15 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\xcd\x02\n\x11LaunchPlanClosure\x12\x35\n\x05state\x18\x01 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\x12\x44\n\x0f\x65xpected_inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x0e\x65xpectedInputs\x12\x45\n\x10\x65xpected_outputs\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x0f\x65xpectedOutputs\x12\x39\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\"\xd1\x01\n\x12LaunchPlanMetadata\x12\x34\n\x08schedule\x18\x01 \x01(\x0b\x32\x18.flyteidl.admin.ScheduleR\x08schedule\x12\x42\n\rnotifications\x18\x02 \x03(\x0b\x32\x1c.flyteidl.admin.NotificationR\rnotifications\x12\x41\n\x11launch_conditions\x18\x03 \x01(\x0b\x32\x14.google.protobuf.AnyR\x10launchConditions\"{\n\x17LaunchPlanUpdateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x05state\x18\x02 \x01(\x0e\x32\x1f.flyteidl.admin.LaunchPlanStateR\x05state\"\x1a\n\x18LaunchPlanUpdateResponse\"P\n\x17\x41\x63tiveLaunchPlanRequest\x12\x35\n\x02id\x18\x01 \x01(\x0b\x32%.flyteidl.admin.NamedEntityIdentifierR\x02id\"\xaa\x01\n\x1b\x41\x63tiveLaunchPlanListRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x14\n\x05limit\x18\x03 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x04 \x01(\tR\x05token\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy*+\n\x0fLaunchPlanState\x12\x0c\n\x08INACTIVE\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x42\xbb\x01\n\x12\x63om.flyteidl.adminB\x0fLaunchPlanProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.launch_plan_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\017LaunchPlanProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _AUTH._options = None - _AUTH._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['role']._options = None - _LAUNCHPLANSPEC.fields_by_name['role']._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['auth']._options = None - _LAUNCHPLANSPEC.fields_by_name['auth']._serialized_options = b'\030\001' - _LAUNCHPLANSPEC.fields_by_name['auth_role']._options = None - _LAUNCHPLANSPEC.fields_by_name['auth_role']._serialized_options = b'\030\001' - _globals['_LAUNCHPLANSTATE']._serialized_start=2818 - _globals['_LAUNCHPLANSTATE']._serialized_end=2861 - _globals['_LAUNCHPLANCREATEREQUEST']._serialized_start=358 - _globals['_LAUNCHPLANCREATEREQUEST']._serialized_end=478 - _globals['_LAUNCHPLANCREATERESPONSE']._serialized_start=480 - _globals['_LAUNCHPLANCREATERESPONSE']._serialized_end=506 - _globals['_LAUNCHPLAN']._serialized_start=509 - _globals['_LAUNCHPLAN']._serialized_end=677 - _globals['_LAUNCHPLANLIST']._serialized_start=679 - _globals['_LAUNCHPLANLIST']._serialized_end=780 - _globals['_AUTH']._serialized_start=782 - _globals['_AUTH']._serialized_end=900 - _globals['_LAUNCHPLANSPEC']._serialized_start=903 - _globals['_LAUNCHPLANSPEC']._serialized_end=1860 - _globals['_LAUNCHPLANCLOSURE']._serialized_start=1863 - _globals['_LAUNCHPLANCLOSURE']._serialized_end=2196 - _globals['_LAUNCHPLANMETADATA']._serialized_start=2199 - _globals['_LAUNCHPLANMETADATA']._serialized_end=2408 - _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_start=2410 - _globals['_LAUNCHPLANUPDATEREQUEST']._serialized_end=2533 - _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_start=2535 - _globals['_LAUNCHPLANUPDATERESPONSE']._serialized_end=2561 - _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_start=2563 - _globals['_ACTIVELAUNCHPLANREQUEST']._serialized_end=2643 - _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_start=2646 - _globals['_ACTIVELAUNCHPLANLISTREQUEST']._serialized_end=2816 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi deleted file mode 100644 index cb6a41e2b0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2.pyi +++ /dev/null @@ -1,154 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from flyteidl.admin import schedule_pb2 as _schedule_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf import any_pb2 as _any_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class LaunchPlanState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - INACTIVE: _ClassVar[LaunchPlanState] - ACTIVE: _ClassVar[LaunchPlanState] -INACTIVE: LaunchPlanState -ACTIVE: LaunchPlanState - -class LaunchPlanCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: LaunchPlanSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ...) -> None: ... - -class LaunchPlanCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class LaunchPlan(_message.Message): - __slots__ = ["id", "spec", "closure"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: LaunchPlanSpec - closure: LaunchPlanClosure - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[LaunchPlanSpec, _Mapping]] = ..., closure: _Optional[_Union[LaunchPlanClosure, _Mapping]] = ...) -> None: ... - -class LaunchPlanList(_message.Message): - __slots__ = ["launch_plans", "token"] - LAUNCH_PLANS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - launch_plans: _containers.RepeatedCompositeFieldContainer[LaunchPlan] - token: str - def __init__(self, launch_plans: _Optional[_Iterable[_Union[LaunchPlan, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class Auth(_message.Message): - __slots__ = ["assumable_iam_role", "kubernetes_service_account"] - ASSUMABLE_IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - KUBERNETES_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - assumable_iam_role: str - kubernetes_service_account: str - def __init__(self, assumable_iam_role: _Optional[str] = ..., kubernetes_service_account: _Optional[str] = ...) -> None: ... - -class LaunchPlanSpec(_message.Message): - __slots__ = ["workflow_id", "entity_metadata", "default_inputs", "fixed_inputs", "role", "labels", "annotations", "auth", "auth_role", "security_context", "quality_of_service", "raw_output_data_config", "max_parallelism", "interruptible", "overwrite_cache", "envs"] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - ENTITY_METADATA_FIELD_NUMBER: _ClassVar[int] - DEFAULT_INPUTS_FIELD_NUMBER: _ClassVar[int] - FIXED_INPUTS_FIELD_NUMBER: _ClassVar[int] - ROLE_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - AUTH_FIELD_NUMBER: _ClassVar[int] - AUTH_ROLE_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - workflow_id: _identifier_pb2.Identifier - entity_metadata: LaunchPlanMetadata - default_inputs: _interface_pb2.ParameterMap - fixed_inputs: _literals_pb2.LiteralMap - role: str - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - auth: Auth - auth_role: _common_pb2.AuthRole - security_context: _security_pb2.SecurityContext - quality_of_service: _execution_pb2.QualityOfService - raw_output_data_config: _common_pb2.RawOutputDataConfig - max_parallelism: int - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - def __init__(self, workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., entity_metadata: _Optional[_Union[LaunchPlanMetadata, _Mapping]] = ..., default_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., fixed_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., role: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., auth: _Optional[_Union[Auth, _Mapping]] = ..., auth_role: _Optional[_Union[_common_pb2.AuthRole, _Mapping]] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., max_parallelism: _Optional[int] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... - -class LaunchPlanClosure(_message.Message): - __slots__ = ["state", "expected_inputs", "expected_outputs", "created_at", "updated_at"] - STATE_FIELD_NUMBER: _ClassVar[int] - EXPECTED_INPUTS_FIELD_NUMBER: _ClassVar[int] - EXPECTED_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - state: LaunchPlanState - expected_inputs: _interface_pb2.ParameterMap - expected_outputs: _interface_pb2.VariableMap - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - def __init__(self, state: _Optional[_Union[LaunchPlanState, str]] = ..., expected_inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ..., expected_outputs: _Optional[_Union[_interface_pb2.VariableMap, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class LaunchPlanMetadata(_message.Message): - __slots__ = ["schedule", "notifications", "launch_conditions"] - SCHEDULE_FIELD_NUMBER: _ClassVar[int] - NOTIFICATIONS_FIELD_NUMBER: _ClassVar[int] - LAUNCH_CONDITIONS_FIELD_NUMBER: _ClassVar[int] - schedule: _schedule_pb2.Schedule - notifications: _containers.RepeatedCompositeFieldContainer[_common_pb2.Notification] - launch_conditions: _any_pb2.Any - def __init__(self, schedule: _Optional[_Union[_schedule_pb2.Schedule, _Mapping]] = ..., notifications: _Optional[_Iterable[_Union[_common_pb2.Notification, _Mapping]]] = ..., launch_conditions: _Optional[_Union[_any_pb2.Any, _Mapping]] = ...) -> None: ... - -class LaunchPlanUpdateRequest(_message.Message): - __slots__ = ["id", "state"] - ID_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - state: LaunchPlanState - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., state: _Optional[_Union[LaunchPlanState, str]] = ...) -> None: ... - -class LaunchPlanUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ActiveLaunchPlanRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _common_pb2.NamedEntityIdentifier - def __init__(self, id: _Optional[_Union[_common_pb2.NamedEntityIdentifier, _Mapping]] = ...) -> None: ... - -class ActiveLaunchPlanListRequest(_message.Message): - __slots__ = ["project", "domain", "limit", "token", "sort_by"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - limit: int - token: str - sort_by: _common_pb2.Sort - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/launch_plan_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py deleted file mode 100644 index 931defd6e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/matchable_resource.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.admin import cluster_assignment_pb2 as flyteidl_dot_admin_dot_cluster__assignment__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/matchable_resource.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/cluster_assignment.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x95\x01\n\x10TaskResourceSpec\x12\x10\n\x03\x63pu\x18\x01 \x01(\tR\x03\x63pu\x12\x10\n\x03gpu\x18\x02 \x01(\tR\x03gpu\x12\x16\n\x06memory\x18\x03 \x01(\tR\x06memory\x12\x18\n\x07storage\x18\x04 \x01(\tR\x07storage\x12+\n\x11\x65phemeral_storage\x18\x05 \x01(\tR\x10\x65phemeralStorage\"\x90\x01\n\x16TaskResourceAttributes\x12<\n\x08\x64\x65\x66\x61ults\x18\x01 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x08\x64\x65\x66\x61ults\x12\x38\n\x06limits\x18\x02 \x01(\x0b\x32 .flyteidl.admin.TaskResourceSpecR\x06limits\"\xb5\x01\n\x19\x43lusterResourceAttributes\x12Y\n\nattributes\x18\x01 \x03(\x0b\x32\x39.flyteidl.admin.ClusterResourceAttributes.AttributesEntryR\nattributes\x1a=\n\x0f\x41ttributesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\".\n\x18\x45xecutionQueueAttributes\x12\x12\n\x04tags\x18\x01 \x03(\tR\x04tags\"-\n\x15\x45xecutionClusterLabel\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value\"\xec\x01\n\x0ePluginOverride\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x1b\n\tplugin_id\x18\x02 \x03(\tR\x08pluginId\x12l\n\x17missing_plugin_behavior\x18\x04 \x01(\x0e\x32\x34.flyteidl.admin.PluginOverride.MissingPluginBehaviorR\x15missingPluginBehavior\"2\n\x15MissingPluginBehavior\x12\x08\n\x04\x46\x41IL\x10\x00\x12\x0f\n\x0bUSE_DEFAULT\x10\x01\"O\n\x0fPluginOverrides\x12<\n\toverrides\x18\x01 \x03(\x0b\x32\x1e.flyteidl.admin.PluginOverrideR\toverrides\"\xeb\x03\n\x17WorkflowExecutionConfig\x12\'\n\x0fmax_parallelism\x18\x01 \x01(\x05R\x0emaxParallelism\x12I\n\x10security_context\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12X\n\x16raw_output_data_config\x18\x03 \x01(\x0b\x32#.flyteidl.admin.RawOutputDataConfigR\x13rawOutputDataConfig\x12.\n\x06labels\x18\x04 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12=\n\x0b\x61nnotations\x18\x05 \x01(\x0b\x32\x1b.flyteidl.admin.AnnotationsR\x0b\x61nnotations\x12@\n\rinterruptible\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.BoolValueR\rinterruptible\x12\'\n\x0foverwrite_cache\x18\x07 \x01(\x08R\x0eoverwriteCache\x12(\n\x04\x65nvs\x18\x08 \x01(\x0b\x32\x14.flyteidl.admin.EnvsR\x04\x65nvs\"\x94\x06\n\x12MatchingAttributes\x12\x62\n\x18task_resource_attributes\x18\x01 \x01(\x0b\x32&.flyteidl.admin.TaskResourceAttributesH\x00R\x16taskResourceAttributes\x12k\n\x1b\x63luster_resource_attributes\x18\x02 \x01(\x0b\x32).flyteidl.admin.ClusterResourceAttributesH\x00R\x19\x63lusterResourceAttributes\x12h\n\x1a\x65xecution_queue_attributes\x18\x03 \x01(\x0b\x32(.flyteidl.admin.ExecutionQueueAttributesH\x00R\x18\x65xecutionQueueAttributes\x12_\n\x17\x65xecution_cluster_label\x18\x04 \x01(\x0b\x32%.flyteidl.admin.ExecutionClusterLabelH\x00R\x15\x65xecutionClusterLabel\x12O\n\x12quality_of_service\x18\x05 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceH\x00R\x10qualityOfService\x12L\n\x10plugin_overrides\x18\x06 \x01(\x0b\x32\x1f.flyteidl.admin.PluginOverridesH\x00R\x0fpluginOverrides\x12\x65\n\x19workflow_execution_config\x18\x07 \x01(\x0b\x32\'.flyteidl.admin.WorkflowExecutionConfigH\x00R\x17workflowExecutionConfig\x12R\n\x12\x63luster_assignment\x18\x08 \x01(\x0b\x32!.flyteidl.admin.ClusterAssignmentH\x00R\x11\x63lusterAssignmentB\x08\n\x06target\"\xd5\x01\n MatchableAttributesConfiguration\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\nattributes\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x18\n\x07project\x18\x03 \x01(\tR\x07project\x12\x1a\n\x08workflow\x18\x04 \x01(\tR\x08workflow\x12\x1f\n\x0blaunch_plan\x18\x05 \x01(\tR\nlaunchPlan\"h\n\x1eListMatchableAttributesRequest\x12\x46\n\rresource_type\x18\x01 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"{\n\x1fListMatchableAttributesResponse\x12X\n\x0e\x63onfigurations\x18\x01 \x03(\x0b\x32\x30.flyteidl.admin.MatchableAttributesConfigurationR\x0e\x63onfigurations*\xe0\x01\n\x11MatchableResource\x12\x11\n\rTASK_RESOURCE\x10\x00\x12\x14\n\x10\x43LUSTER_RESOURCE\x10\x01\x12\x13\n\x0f\x45XECUTION_QUEUE\x10\x02\x12\x1b\n\x17\x45XECUTION_CLUSTER_LABEL\x10\x03\x12$\n QUALITY_OF_SERVICE_SPECIFICATION\x10\x04\x12\x13\n\x0fPLUGIN_OVERRIDE\x10\x05\x12\x1d\n\x19WORKFLOW_EXECUTION_CONFIG\x10\x06\x12\x16\n\x12\x43LUSTER_ASSIGNMENT\x10\x07\x42\xc2\x01\n\x12\x63om.flyteidl.adminB\x16MatchableResourceProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.matchable_resource_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026MatchableResourceProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._options = None - _CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY._serialized_options = b'8\001' - _globals['_MATCHABLERESOURCE']._serialized_start=2853 - _globals['_MATCHABLERESOURCE']._serialized_end=3077 - _globals['_TASKRESOURCESPEC']._serialized_start=223 - _globals['_TASKRESOURCESPEC']._serialized_end=372 - _globals['_TASKRESOURCEATTRIBUTES']._serialized_start=375 - _globals['_TASKRESOURCEATTRIBUTES']._serialized_end=519 - _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_start=522 - _globals['_CLUSTERRESOURCEATTRIBUTES']._serialized_end=703 - _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_start=642 - _globals['_CLUSTERRESOURCEATTRIBUTES_ATTRIBUTESENTRY']._serialized_end=703 - _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_start=705 - _globals['_EXECUTIONQUEUEATTRIBUTES']._serialized_end=751 - _globals['_EXECUTIONCLUSTERLABEL']._serialized_start=753 - _globals['_EXECUTIONCLUSTERLABEL']._serialized_end=798 - _globals['_PLUGINOVERRIDE']._serialized_start=801 - _globals['_PLUGINOVERRIDE']._serialized_end=1037 - _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_start=987 - _globals['_PLUGINOVERRIDE_MISSINGPLUGINBEHAVIOR']._serialized_end=1037 - _globals['_PLUGINOVERRIDES']._serialized_start=1039 - _globals['_PLUGINOVERRIDES']._serialized_end=1118 - _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_start=1121 - _globals['_WORKFLOWEXECUTIONCONFIG']._serialized_end=1612 - _globals['_MATCHINGATTRIBUTES']._serialized_start=1615 - _globals['_MATCHINGATTRIBUTES']._serialized_end=2403 - _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_start=2406 - _globals['_MATCHABLEATTRIBUTESCONFIGURATION']._serialized_end=2619 - _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_start=2621 - _globals['_LISTMATCHABLEATTRIBUTESREQUEST']._serialized_end=2725 - _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_start=2727 - _globals['_LISTMATCHABLEATTRIBUTESRESPONSE']._serialized_end=2850 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi deleted file mode 100644 index 56a7b03165..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2.pyi +++ /dev/null @@ -1,166 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.admin import cluster_assignment_pb2 as _cluster_assignment_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import wrappers_pb2 as _wrappers_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class MatchableResource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - TASK_RESOURCE: _ClassVar[MatchableResource] - CLUSTER_RESOURCE: _ClassVar[MatchableResource] - EXECUTION_QUEUE: _ClassVar[MatchableResource] - EXECUTION_CLUSTER_LABEL: _ClassVar[MatchableResource] - QUALITY_OF_SERVICE_SPECIFICATION: _ClassVar[MatchableResource] - PLUGIN_OVERRIDE: _ClassVar[MatchableResource] - WORKFLOW_EXECUTION_CONFIG: _ClassVar[MatchableResource] - CLUSTER_ASSIGNMENT: _ClassVar[MatchableResource] -TASK_RESOURCE: MatchableResource -CLUSTER_RESOURCE: MatchableResource -EXECUTION_QUEUE: MatchableResource -EXECUTION_CLUSTER_LABEL: MatchableResource -QUALITY_OF_SERVICE_SPECIFICATION: MatchableResource -PLUGIN_OVERRIDE: MatchableResource -WORKFLOW_EXECUTION_CONFIG: MatchableResource -CLUSTER_ASSIGNMENT: MatchableResource - -class TaskResourceSpec(_message.Message): - __slots__ = ["cpu", "gpu", "memory", "storage", "ephemeral_storage"] - CPU_FIELD_NUMBER: _ClassVar[int] - GPU_FIELD_NUMBER: _ClassVar[int] - MEMORY_FIELD_NUMBER: _ClassVar[int] - STORAGE_FIELD_NUMBER: _ClassVar[int] - EPHEMERAL_STORAGE_FIELD_NUMBER: _ClassVar[int] - cpu: str - gpu: str - memory: str - storage: str - ephemeral_storage: str - def __init__(self, cpu: _Optional[str] = ..., gpu: _Optional[str] = ..., memory: _Optional[str] = ..., storage: _Optional[str] = ..., ephemeral_storage: _Optional[str] = ...) -> None: ... - -class TaskResourceAttributes(_message.Message): - __slots__ = ["defaults", "limits"] - DEFAULTS_FIELD_NUMBER: _ClassVar[int] - LIMITS_FIELD_NUMBER: _ClassVar[int] - defaults: TaskResourceSpec - limits: TaskResourceSpec - def __init__(self, defaults: _Optional[_Union[TaskResourceSpec, _Mapping]] = ..., limits: _Optional[_Union[TaskResourceSpec, _Mapping]] = ...) -> None: ... - -class ClusterResourceAttributes(_message.Message): - __slots__ = ["attributes"] - class AttributesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: _containers.ScalarMap[str, str] - def __init__(self, attributes: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class ExecutionQueueAttributes(_message.Message): - __slots__ = ["tags"] - TAGS_FIELD_NUMBER: _ClassVar[int] - tags: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, tags: _Optional[_Iterable[str]] = ...) -> None: ... - -class ExecutionClusterLabel(_message.Message): - __slots__ = ["value"] - VALUE_FIELD_NUMBER: _ClassVar[int] - value: str - def __init__(self, value: _Optional[str] = ...) -> None: ... - -class PluginOverride(_message.Message): - __slots__ = ["task_type", "plugin_id", "missing_plugin_behavior"] - class MissingPluginBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - FAIL: _ClassVar[PluginOverride.MissingPluginBehavior] - USE_DEFAULT: _ClassVar[PluginOverride.MissingPluginBehavior] - FAIL: PluginOverride.MissingPluginBehavior - USE_DEFAULT: PluginOverride.MissingPluginBehavior - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - PLUGIN_ID_FIELD_NUMBER: _ClassVar[int] - MISSING_PLUGIN_BEHAVIOR_FIELD_NUMBER: _ClassVar[int] - task_type: str - plugin_id: _containers.RepeatedScalarFieldContainer[str] - missing_plugin_behavior: PluginOverride.MissingPluginBehavior - def __init__(self, task_type: _Optional[str] = ..., plugin_id: _Optional[_Iterable[str]] = ..., missing_plugin_behavior: _Optional[_Union[PluginOverride.MissingPluginBehavior, str]] = ...) -> None: ... - -class PluginOverrides(_message.Message): - __slots__ = ["overrides"] - OVERRIDES_FIELD_NUMBER: _ClassVar[int] - overrides: _containers.RepeatedCompositeFieldContainer[PluginOverride] - def __init__(self, overrides: _Optional[_Iterable[_Union[PluginOverride, _Mapping]]] = ...) -> None: ... - -class WorkflowExecutionConfig(_message.Message): - __slots__ = ["max_parallelism", "security_context", "raw_output_data_config", "labels", "annotations", "interruptible", "overwrite_cache", "envs"] - MAX_PARALLELISM_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - RAW_OUTPUT_DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_CACHE_FIELD_NUMBER: _ClassVar[int] - ENVS_FIELD_NUMBER: _ClassVar[int] - max_parallelism: int - security_context: _security_pb2.SecurityContext - raw_output_data_config: _common_pb2.RawOutputDataConfig - labels: _common_pb2.Labels - annotations: _common_pb2.Annotations - interruptible: _wrappers_pb2.BoolValue - overwrite_cache: bool - envs: _common_pb2.Envs - def __init__(self, max_parallelism: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., raw_output_data_config: _Optional[_Union[_common_pb2.RawOutputDataConfig, _Mapping]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., annotations: _Optional[_Union[_common_pb2.Annotations, _Mapping]] = ..., interruptible: _Optional[_Union[_wrappers_pb2.BoolValue, _Mapping]] = ..., overwrite_cache: bool = ..., envs: _Optional[_Union[_common_pb2.Envs, _Mapping]] = ...) -> None: ... - -class MatchingAttributes(_message.Message): - __slots__ = ["task_resource_attributes", "cluster_resource_attributes", "execution_queue_attributes", "execution_cluster_label", "quality_of_service", "plugin_overrides", "workflow_execution_config", "cluster_assignment"] - TASK_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - CLUSTER_RESOURCE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - EXECUTION_QUEUE_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - EXECUTION_CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - PLUGIN_OVERRIDES_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_EXECUTION_CONFIG_FIELD_NUMBER: _ClassVar[int] - CLUSTER_ASSIGNMENT_FIELD_NUMBER: _ClassVar[int] - task_resource_attributes: TaskResourceAttributes - cluster_resource_attributes: ClusterResourceAttributes - execution_queue_attributes: ExecutionQueueAttributes - execution_cluster_label: ExecutionClusterLabel - quality_of_service: _execution_pb2.QualityOfService - plugin_overrides: PluginOverrides - workflow_execution_config: WorkflowExecutionConfig - cluster_assignment: _cluster_assignment_pb2.ClusterAssignment - def __init__(self, task_resource_attributes: _Optional[_Union[TaskResourceAttributes, _Mapping]] = ..., cluster_resource_attributes: _Optional[_Union[ClusterResourceAttributes, _Mapping]] = ..., execution_queue_attributes: _Optional[_Union[ExecutionQueueAttributes, _Mapping]] = ..., execution_cluster_label: _Optional[_Union[ExecutionClusterLabel, _Mapping]] = ..., quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., plugin_overrides: _Optional[_Union[PluginOverrides, _Mapping]] = ..., workflow_execution_config: _Optional[_Union[WorkflowExecutionConfig, _Mapping]] = ..., cluster_assignment: _Optional[_Union[_cluster_assignment_pb2.ClusterAssignment, _Mapping]] = ...) -> None: ... - -class MatchableAttributesConfiguration(_message.Message): - __slots__ = ["attributes", "domain", "project", "workflow", "launch_plan"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] - attributes: MatchingAttributes - domain: str - project: str - workflow: str - launch_plan: str - def __init__(self, attributes: _Optional[_Union[MatchingAttributes, _Mapping]] = ..., domain: _Optional[str] = ..., project: _Optional[str] = ..., workflow: _Optional[str] = ..., launch_plan: _Optional[str] = ...) -> None: ... - -class ListMatchableAttributesRequest(_message.Message): - __slots__ = ["resource_type"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - resource_type: MatchableResource - def __init__(self, resource_type: _Optional[_Union[MatchableResource, str]] = ...) -> None: ... - -class ListMatchableAttributesResponse(_message.Message): - __slots__ = ["configurations"] - CONFIGURATIONS_FIELD_NUMBER: _ClassVar[int] - configurations: _containers.RepeatedCompositeFieldContainer[MatchableAttributesConfiguration] - def __init__(self, configurations: _Optional[_Iterable[_Union[MatchableAttributesConfiguration, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/matchable_resource_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py deleted file mode 100644 index 17e5cbd652..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.py +++ /dev/null @@ -1,65 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/node_execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/node_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"Q\n\x17NodeExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x99\x02\n\x18NodeExecutionListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\x12(\n\x10unique_parent_id\x18\x06 \x01(\tR\x0euniqueParentId\"\xea\x01\n\x1fNodeExecutionForTaskListRequest\x12R\n\x11task_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x0ftaskExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xe7\x01\n\rNodeExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.NodeExecutionClosureR\x07\x63losure\x12\x41\n\x08metadata\x18\x04 \x01(\x0b\x32%.flyteidl.admin.NodeExecutionMetaDataR\x08metadata\"\xba\x01\n\x15NodeExecutionMetaData\x12\x1f\n\x0bretry_group\x18\x01 \x01(\tR\nretryGroup\x12$\n\x0eis_parent_node\x18\x02 \x01(\x08R\x0cisParentNode\x12 \n\x0cspec_node_id\x18\x03 \x01(\tR\nspecNodeId\x12\x1d\n\nis_dynamic\x18\x04 \x01(\x08R\tisDynamic\x12\x19\n\x08is_array\x18\x05 \x01(\x08R\x07isArray\"q\n\x11NodeExecutionList\x12\x46\n\x0fnode_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.NodeExecutionR\x0enodeExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xf6\x05\n\x14NodeExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\n \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.admin.WorkflowNodeMetadataH\x01R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\t \x01(\x0b\x32 .flyteidl.admin.TaskNodeMetadataH\x01R\x10taskNodeMetadata\x12\x19\n\x08\x64\x65\x63k_uri\x18\x0b \x01(\tR\x07\x64\x65\x63kUri\x12/\n\x14\x64ynamic_job_spec_uri\x18\x0c \x01(\tR\x11\x64ynamicJobSpecUriB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"d\n\x14WorkflowNodeMetadata\x12L\n\x0b\x65xecutionId\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc0\x01\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bNodeExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\"\x96\x03\n\x1cNodeExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.admin.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\x12\x38\n\nflyte_urls\x18\x11 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12NodeExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.node_execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022NodeExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None - _NODEEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' - _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _NODEEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _NODEEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _globals['_NODEEXECUTIONGETREQUEST']._serialized_start=301 - _globals['_NODEEXECUTIONGETREQUEST']._serialized_end=382 - _globals['_NODEEXECUTIONLISTREQUEST']._serialized_start=385 - _globals['_NODEEXECUTIONLISTREQUEST']._serialized_end=666 - _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_start=669 - _globals['_NODEEXECUTIONFORTASKLISTREQUEST']._serialized_end=903 - _globals['_NODEEXECUTION']._serialized_start=906 - _globals['_NODEEXECUTION']._serialized_end=1137 - _globals['_NODEEXECUTIONMETADATA']._serialized_start=1140 - _globals['_NODEEXECUTIONMETADATA']._serialized_end=1326 - _globals['_NODEEXECUTIONLIST']._serialized_start=1328 - _globals['_NODEEXECUTIONLIST']._serialized_end=1441 - _globals['_NODEEXECUTIONCLOSURE']._serialized_start=1444 - _globals['_NODEEXECUTIONCLOSURE']._serialized_end=2202 - _globals['_WORKFLOWNODEMETADATA']._serialized_start=2204 - _globals['_WORKFLOWNODEMETADATA']._serialized_end=2304 - _globals['_TASKNODEMETADATA']._serialized_start=2307 - _globals['_TASKNODEMETADATA']._serialized_end=2499 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2502 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2708 - _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_start=2710 - _globals['_NODEEXECUTIONGETDATAREQUEST']._serialized_end=2795 - _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_start=2798 - _globals['_NODEEXECUTIONGETDATARESPONSE']._serialized_end=3204 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi deleted file mode 100644 index 8cbb708f01..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2.pyi +++ /dev/null @@ -1,160 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import catalog_pb2 as _catalog_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class NodeExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class NodeExecutionListRequest(_message.Message): - __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by", "unique_parent_id"] - WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - UNIQUE_PARENT_ID_FIELD_NUMBER: _ClassVar[int] - workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - unique_parent_id: str - def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ..., unique_parent_id: _Optional[str] = ...) -> None: ... - -class NodeExecutionForTaskListRequest(_message.Message): - __slots__ = ["task_execution_id", "limit", "token", "filters", "sort_by"] - TASK_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - task_execution_id: _identifier_pb2.TaskExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, task_execution_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class NodeExecution(_message.Message): - __slots__ = ["id", "input_uri", "closure", "metadata"] - ID_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - input_uri: str - closure: NodeExecutionClosure - metadata: NodeExecutionMetaData - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[NodeExecutionClosure, _Mapping]] = ..., metadata: _Optional[_Union[NodeExecutionMetaData, _Mapping]] = ...) -> None: ... - -class NodeExecutionMetaData(_message.Message): - __slots__ = ["retry_group", "is_parent_node", "spec_node_id", "is_dynamic", "is_array"] - RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_NODE_FIELD_NUMBER: _ClassVar[int] - SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] - IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] - IS_ARRAY_FIELD_NUMBER: _ClassVar[int] - retry_group: str - is_parent_node: bool - spec_node_id: str - is_dynamic: bool - is_array: bool - def __init__(self, retry_group: _Optional[str] = ..., is_parent_node: bool = ..., spec_node_id: _Optional[str] = ..., is_dynamic: bool = ..., is_array: bool = ...) -> None: ... - -class NodeExecutionList(_message.Message): - __slots__ = ["node_executions", "token"] - NODE_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - node_executions: _containers.RepeatedCompositeFieldContainer[NodeExecution] - token: str - def __init__(self, node_executions: _Optional[_Iterable[_Union[NodeExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class NodeExecutionClosure(_message.Message): - __slots__ = ["output_uri", "error", "output_data", "phase", "started_at", "duration", "created_at", "updated_at", "workflow_node_metadata", "task_node_metadata", "deck_uri", "dynamic_job_spec_uri"] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - DECK_URI_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - phase: _execution_pb2.NodeExecution.Phase - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - workflow_node_metadata: WorkflowNodeMetadata - task_node_metadata: TaskNodeMetadata - deck_uri: str - dynamic_job_spec_uri: str - def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., deck_uri: _Optional[str] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class WorkflowNodeMetadata(_message.Message): - __slots__ = ["executionId"] - EXECUTIONID_FIELD_NUMBER: _ClassVar[int] - executionId: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, executionId: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskNodeMetadata(_message.Message): - __slots__ = ["cache_status", "catalog_key", "checkpoint_uri"] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] - CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] - cache_status: _catalog_pb2.CatalogCacheStatus - catalog_key: _catalog_pb2.CatalogMetadata - checkpoint_uri: str - def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., checkpoint_uri: _Optional[str] = ...) -> None: ... - -class DynamicWorkflowNodeMetadata(_message.Message): - __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] - ID_FIELD_NUMBER: _ClassVar[int] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - dynamic_job_spec_uri: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class NodeExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class NodeExecutionGetDataResponse(_message.Message): - __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "dynamic_workflow", "flyte_urls"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] - inputs: _common_pb2.UrlBlob - outputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - dynamic_workflow: DynamicWorkflowNodeMetadata - flyte_urls: _common_pb2.FlyteURLs - def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/node_execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py deleted file mode 100644 index 5f247002e5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/notification.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/admin/notification.proto\x12\x0e\x66lyteidl.admin\"\x93\x01\n\x0c\x45mailMessage\x12)\n\x10recipients_email\x18\x01 \x03(\tR\x0frecipientsEmail\x12!\n\x0csender_email\x18\x02 \x01(\tR\x0bsenderEmail\x12!\n\x0csubject_line\x18\x03 \x01(\tR\x0bsubjectLine\x12\x12\n\x04\x62ody\x18\x04 \x01(\tR\x04\x62odyB\xbd\x01\n\x12\x63om.flyteidl.adminB\x11NotificationProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.notification_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\021NotificationProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_EMAILMESSAGE']._serialized_start=54 - _globals['_EMAILMESSAGE']._serialized_end=201 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi deleted file mode 100644 index 5a06a72f34..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2.pyi +++ /dev/null @@ -1,18 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class EmailMessage(_message.Message): - __slots__ = ["recipients_email", "sender_email", "subject_line", "body"] - RECIPIENTS_EMAIL_FIELD_NUMBER: _ClassVar[int] - SENDER_EMAIL_FIELD_NUMBER: _ClassVar[int] - SUBJECT_LINE_FIELD_NUMBER: _ClassVar[int] - BODY_FIELD_NUMBER: _ClassVar[int] - recipients_email: _containers.RepeatedScalarFieldContainer[str] - sender_email: str - subject_line: str - body: str - def __init__(self, recipients_email: _Optional[_Iterable[str]] = ..., sender_email: _Optional[str] = ..., subject_line: _Optional[str] = ..., body: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/notification_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py deleted file mode 100644 index b6f7d05f5e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/admin/project_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\x82\x01\n\x11ProjectAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12S\n\x13matching_attributes\x18\x02 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"c\n\x1eProjectAttributesUpdateRequest\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"!\n\x1fProjectAttributesUpdateResponse\"\x7f\n\x1bProjectAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"a\n\x1cProjectAttributesGetResponse\x12\x41\n\nattributes\x18\x01 \x01(\x0b\x32!.flyteidl.admin.ProjectAttributesR\nattributes\"\x82\x01\n\x1eProjectAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x46\n\rresource_type\x18\x02 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"!\n\x1fProjectAttributesDeleteResponseB\xc2\x01\n\x12\x63om.flyteidl.adminB\x16ProjectAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\026ProjectAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_PROJECTATTRIBUTES']._serialized_start=101 - _globals['_PROJECTATTRIBUTES']._serialized_end=231 - _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_start=233 - _globals['_PROJECTATTRIBUTESUPDATEREQUEST']._serialized_end=332 - _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_start=334 - _globals['_PROJECTATTRIBUTESUPDATERESPONSE']._serialized_end=367 - _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_start=369 - _globals['_PROJECTATTRIBUTESGETREQUEST']._serialized_end=496 - _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_start=498 - _globals['_PROJECTATTRIBUTESGETRESPONSE']._serialized_end=595 - _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_start=598 - _globals['_PROJECTATTRIBUTESDELETEREQUEST']._serialized_end=728 - _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_start=730 - _globals['_PROJECTATTRIBUTESDELETERESPONSE']._serialized_end=763 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi deleted file mode 100644 index 8ad0997ac2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2.pyi +++ /dev/null @@ -1,50 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ProjectAttributes(_message.Message): - __slots__ = ["project", "matching_attributes"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - project: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - def __init__(self, project: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... - -class ProjectAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectAttributes - def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... - -class ProjectAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectAttributesGetRequest(_message.Message): - __slots__ = ["project", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class ProjectAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectAttributes - def __init__(self, attributes: _Optional[_Union[ProjectAttributes, _Mapping]] = ...) -> None: ... - -class ProjectAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class ProjectAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py deleted file mode 100644 index ff5c077221..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project_domain_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/admin/project_domain_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xa0\x01\n\x17ProjectDomainAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12S\n\x13matching_attributes\x18\x03 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"o\n$ProjectDomainAttributesUpdateRequest\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\'\n%ProjectDomainAttributesUpdateResponse\"\x9d\x01\n!ProjectDomainAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"m\n\"ProjectDomainAttributesGetResponse\x12G\n\nattributes\x18\x01 \x01(\x0b\x32\'.flyteidl.admin.ProjectDomainAttributesR\nattributes\"\xa0\x01\n$ProjectDomainAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x46\n\rresource_type\x18\x03 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"\'\n%ProjectDomainAttributesDeleteResponseB\xc8\x01\n\x12\x63om.flyteidl.adminB\x1cProjectDomainAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_domain_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\034ProjectDomainAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_PROJECTDOMAINATTRIBUTES']._serialized_start=108 - _globals['_PROJECTDOMAINATTRIBUTES']._serialized_end=268 - _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_start=270 - _globals['_PROJECTDOMAINATTRIBUTESUPDATEREQUEST']._serialized_end=381 - _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_start=383 - _globals['_PROJECTDOMAINATTRIBUTESUPDATERESPONSE']._serialized_end=422 - _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_start=425 - _globals['_PROJECTDOMAINATTRIBUTESGETREQUEST']._serialized_end=582 - _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_start=584 - _globals['_PROJECTDOMAINATTRIBUTESGETRESPONSE']._serialized_end=693 - _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_start=696 - _globals['_PROJECTDOMAINATTRIBUTESDELETEREQUEST']._serialized_end=856 - _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_start=858 - _globals['_PROJECTDOMAINATTRIBUTESDELETERESPONSE']._serialized_end=897 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi deleted file mode 100644 index af8624ca21..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2.pyi +++ /dev/null @@ -1,56 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ProjectDomainAttributes(_message.Message): - __slots__ = ["project", "domain", "matching_attributes"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... - -class ProjectDomainAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectDomainAttributes - def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... - -class ProjectDomainAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectDomainAttributesGetRequest(_message.Message): - __slots__ = ["project", "domain", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class ProjectDomainAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: ProjectDomainAttributes - def __init__(self, attributes: _Optional[_Union[ProjectDomainAttributes, _Mapping]] = ...) -> None: ... - -class ProjectDomainAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "domain", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class ProjectDomainAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_domain_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py deleted file mode 100644 index ae321b092c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/project.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/project.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\",\n\x06\x44omain\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\xad\x02\n\x07Project\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x30\n\x07\x64omains\x18\x03 \x03(\x0b\x32\x16.flyteidl.admin.DomainR\x07\x64omains\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\x12.\n\x06labels\x18\x05 \x01(\x0b\x32\x16.flyteidl.admin.LabelsR\x06labels\x12:\n\x05state\x18\x06 \x01(\x0e\x32$.flyteidl.admin.Project.ProjectStateR\x05state\">\n\x0cProjectState\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x41RCHIVED\x10\x01\x12\x14\n\x10SYSTEM_GENERATED\x10\x02\"U\n\x08Projects\x12\x33\n\x08projects\x18\x01 \x03(\x0b\x32\x17.flyteidl.admin.ProjectR\x08projects\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x89\x01\n\x12ProjectListRequest\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x03 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x04 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"K\n\x16ProjectRegisterRequest\x12\x31\n\x07project\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.ProjectR\x07project\"\x19\n\x17ProjectRegisterResponse\"\x17\n\x15ProjectUpdateResponseB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cProjectProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.project_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014ProjectProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_DOMAIN']._serialized_start=77 - _globals['_DOMAIN']._serialized_end=121 - _globals['_PROJECT']._serialized_start=124 - _globals['_PROJECT']._serialized_end=425 - _globals['_PROJECT_PROJECTSTATE']._serialized_start=363 - _globals['_PROJECT_PROJECTSTATE']._serialized_end=425 - _globals['_PROJECTS']._serialized_start=427 - _globals['_PROJECTS']._serialized_end=512 - _globals['_PROJECTLISTREQUEST']._serialized_start=515 - _globals['_PROJECTLISTREQUEST']._serialized_end=652 - _globals['_PROJECTREGISTERREQUEST']._serialized_start=654 - _globals['_PROJECTREGISTERREQUEST']._serialized_end=729 - _globals['_PROJECTREGISTERRESPONSE']._serialized_start=731 - _globals['_PROJECTREGISTERRESPONSE']._serialized_end=756 - _globals['_PROJECTUPDATERESPONSE']._serialized_start=758 - _globals['_PROJECTUPDATERESPONSE']._serialized_end=781 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi deleted file mode 100644 index 33b5106c81..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2.pyi +++ /dev/null @@ -1,74 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Domain(_message.Message): - __slots__ = ["id", "name"] - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class Project(_message.Message): - __slots__ = ["id", "name", "domains", "description", "labels", "state"] - class ProjectState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ACTIVE: _ClassVar[Project.ProjectState] - ARCHIVED: _ClassVar[Project.ProjectState] - SYSTEM_GENERATED: _ClassVar[Project.ProjectState] - ACTIVE: Project.ProjectState - ARCHIVED: Project.ProjectState - SYSTEM_GENERATED: Project.ProjectState - ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAINS_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - LABELS_FIELD_NUMBER: _ClassVar[int] - STATE_FIELD_NUMBER: _ClassVar[int] - id: str - name: str - domains: _containers.RepeatedCompositeFieldContainer[Domain] - description: str - labels: _common_pb2.Labels - state: Project.ProjectState - def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., domains: _Optional[_Iterable[_Union[Domain, _Mapping]]] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., state: _Optional[_Union[Project.ProjectState, str]] = ...) -> None: ... - -class Projects(_message.Message): - __slots__ = ["projects", "token"] - PROJECTS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - projects: _containers.RepeatedCompositeFieldContainer[Project] - token: str - def __init__(self, projects: _Optional[_Iterable[_Union[Project, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class ProjectListRequest(_message.Message): - __slots__ = ["limit", "token", "filters", "sort_by"] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class ProjectRegisterRequest(_message.Message): - __slots__ = ["project"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - project: Project - def __init__(self, project: _Optional[_Union[Project, _Mapping]] = ...) -> None: ... - -class ProjectRegisterResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ProjectUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/project_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py deleted file mode 100644 index 42af3da7a2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/schedule.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/admin/schedule.proto\x12\x0e\x66lyteidl.admin\"T\n\tFixedRate\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value\x12\x31\n\x04unit\x18\x02 \x01(\x0e\x32\x1d.flyteidl.admin.FixedRateUnitR\x04unit\"B\n\x0c\x43ronSchedule\x12\x1a\n\x08schedule\x18\x01 \x01(\tR\x08schedule\x12\x16\n\x06offset\x18\x02 \x01(\tR\x06offset\"\xfa\x01\n\x08Schedule\x12-\n\x0f\x63ron_expression\x18\x01 \x01(\tB\x02\x18\x01H\x00R\x0e\x63ronExpression\x12/\n\x04rate\x18\x02 \x01(\x0b\x32\x19.flyteidl.admin.FixedRateH\x00R\x04rate\x12\x43\n\rcron_schedule\x18\x04 \x01(\x0b\x32\x1c.flyteidl.admin.CronScheduleH\x00R\x0c\x63ronSchedule\x12\x33\n\x16kickoff_time_input_arg\x18\x03 \x01(\tR\x13kickoffTimeInputArgB\x14\n\x12ScheduleExpression*.\n\rFixedRateUnit\x12\n\n\x06MINUTE\x10\x00\x12\x08\n\x04HOUR\x10\x01\x12\x07\n\x03\x44\x41Y\x10\x02\x42\xb9\x01\n\x12\x63om.flyteidl.adminB\rScheduleProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.schedule_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rScheduleProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _SCHEDULE.fields_by_name['cron_expression']._options = None - _SCHEDULE.fields_by_name['cron_expression']._serialized_options = b'\030\001' - _globals['_FIXEDRATEUNIT']._serialized_start=456 - _globals['_FIXEDRATEUNIT']._serialized_end=502 - _globals['_FIXEDRATE']._serialized_start=49 - _globals['_FIXEDRATE']._serialized_end=133 - _globals['_CRONSCHEDULE']._serialized_start=135 - _globals['_CRONSCHEDULE']._serialized_end=201 - _globals['_SCHEDULE']._serialized_start=204 - _globals['_SCHEDULE']._serialized_end=454 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi deleted file mode 100644 index a9f1a2d133..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2.pyi +++ /dev/null @@ -1,43 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class FixedRateUnit(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - MINUTE: _ClassVar[FixedRateUnit] - HOUR: _ClassVar[FixedRateUnit] - DAY: _ClassVar[FixedRateUnit] -MINUTE: FixedRateUnit -HOUR: FixedRateUnit -DAY: FixedRateUnit - -class FixedRate(_message.Message): - __slots__ = ["value", "unit"] - VALUE_FIELD_NUMBER: _ClassVar[int] - UNIT_FIELD_NUMBER: _ClassVar[int] - value: int - unit: FixedRateUnit - def __init__(self, value: _Optional[int] = ..., unit: _Optional[_Union[FixedRateUnit, str]] = ...) -> None: ... - -class CronSchedule(_message.Message): - __slots__ = ["schedule", "offset"] - SCHEDULE_FIELD_NUMBER: _ClassVar[int] - OFFSET_FIELD_NUMBER: _ClassVar[int] - schedule: str - offset: str - def __init__(self, schedule: _Optional[str] = ..., offset: _Optional[str] = ...) -> None: ... - -class Schedule(_message.Message): - __slots__ = ["cron_expression", "rate", "cron_schedule", "kickoff_time_input_arg"] - CRON_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - RATE_FIELD_NUMBER: _ClassVar[int] - CRON_SCHEDULE_FIELD_NUMBER: _ClassVar[int] - KICKOFF_TIME_INPUT_ARG_FIELD_NUMBER: _ClassVar[int] - cron_expression: str - rate: FixedRate - cron_schedule: CronSchedule - kickoff_time_input_arg: str - def __init__(self, cron_expression: _Optional[str] = ..., rate: _Optional[_Union[FixedRate, _Mapping]] = ..., cron_schedule: _Optional[_Union[CronSchedule, _Mapping]] = ..., kickoff_time_input_arg: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/schedule_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py deleted file mode 100644 index be296a4ae8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/signal.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/admin/signal.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\"{\n\x18SignalGetOrCreateRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"\xe8\x01\n\x11SignalListRequest\x12^\n\x15workflow_execution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x13workflowExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"T\n\nSignalList\x12\x30\n\x07signals\x18\x01 \x03(\x0b\x32\x16.flyteidl.admin.SignalR\x07signals\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"q\n\x10SignalSetRequest\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"\x13\n\x11SignalSetResponse\"\x97\x01\n\x06Signal\x12/\n\x02id\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.SignalIdentifierR\x02id\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12,\n\x05value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05valueB\xb7\x01\n\x12\x63om.flyteidl.adminB\x0bSignalProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.signal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\013SignalProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_SIGNALGETORCREATEREQUEST']._serialized_start=165 - _globals['_SIGNALGETORCREATEREQUEST']._serialized_end=288 - _globals['_SIGNALLISTREQUEST']._serialized_start=291 - _globals['_SIGNALLISTREQUEST']._serialized_end=523 - _globals['_SIGNALLIST']._serialized_start=525 - _globals['_SIGNALLIST']._serialized_end=609 - _globals['_SIGNALSETREQUEST']._serialized_start=611 - _globals['_SIGNALSETREQUEST']._serialized_end=724 - _globals['_SIGNALSETRESPONSE']._serialized_start=726 - _globals['_SIGNALSETRESPONSE']._serialized_end=745 - _globals['_SIGNAL']._serialized_start=748 - _globals['_SIGNAL']._serialized_end=899 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi deleted file mode 100644 index 8dfac31435..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SignalGetOrCreateRequest(_message.Message): - __slots__ = ["id", "type"] - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - type: _types_pb2.LiteralType - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class SignalListRequest(_message.Message): - __slots__ = ["workflow_execution_id", "limit", "token", "filters", "sort_by"] - WORKFLOW_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - workflow_execution_id: _identifier_pb2.WorkflowExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, workflow_execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class SignalList(_message.Message): - __slots__ = ["signals", "token"] - SIGNALS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - signals: _containers.RepeatedCompositeFieldContainer[Signal] - token: str - def __init__(self, signals: _Optional[_Iterable[_Union[Signal, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class SignalSetRequest(_message.Message): - __slots__ = ["id", "value"] - ID_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - value: _literals_pb2.Literal - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... - -class SignalSetResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Signal(_message.Message): - __slots__ = ["id", "type", "value"] - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.SignalIdentifier - type: _types_pb2.LiteralType - value: _literals_pb2.Literal - def __init__(self, id: _Optional[_Union[_identifier_pb2.SignalIdentifier, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/signal_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py deleted file mode 100644 index 226866f72d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.py +++ /dev/null @@ -1,57 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/task_execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/admin/task_execution.proto\x12\x0e\x66lyteidl.admin\x1a\x1b\x66lyteidl/admin/common.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"Q\n\x17TaskExecutionGetRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xe3\x01\n\x18TaskExecutionListRequest\x12R\n\x11node_execution_id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12\x14\n\x05limit\x18\x02 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x03 \x01(\tR\x05token\x12\x18\n\x07\x66ilters\x18\x04 \x01(\tR\x07\x66ilters\x12-\n\x07sort_by\x18\x05 \x01(\x0b\x32\x14.flyteidl.admin.SortR\x06sortBy\"\xc1\x01\n\rTaskExecution\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\x12\x1b\n\tinput_uri\x18\x02 \x01(\tR\x08inputUri\x12>\n\x07\x63losure\x18\x03 \x01(\x0b\x32$.flyteidl.admin.TaskExecutionClosureR\x07\x63losure\x12\x1b\n\tis_parent\x18\x04 \x01(\x08R\x08isParent\"q\n\x11TaskExecutionList\x12\x46\n\x0ftask_executions\x18\x01 \x03(\x0b\x32\x1d.flyteidl.admin.TaskExecutionR\x0etaskExecutions\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x9c\x06\n\x14TaskExecutionClosure\x12#\n\noutput_uri\x18\x01 \x01(\tB\x02\x18\x01H\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12@\n\x0boutput_data\x18\x0c \x01(\x0b\x32\x19.flyteidl.core.LiteralMapB\x02\x18\x01H\x00R\noutputData\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12*\n\x04logs\x18\x04 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12\x39\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12\x35\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x38\n\x0b\x63ustom_info\x18\t \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12\x16\n\x06reason\x18\n \x01(\tR\x06reason\x12\x1b\n\ttask_type\x18\x0b \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x11 \x01(\x05R\x0c\x65ventVersion\x12\x30\n\x07reasons\x18\x12 \x03(\x0b\x32\x16.flyteidl.admin.ReasonR\x07reasonsB\x0f\n\routput_result\"_\n\x06Reason\x12;\n\x0boccurred_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\"U\n\x1bTaskExecutionGetDataRequest\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"\xbe\x02\n\x1cTaskExecutionGetDataResponse\x12\x33\n\x06inputs\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x06inputs\x12\x35\n\x07outputs\x18\x02 \x01(\x0b\x32\x17.flyteidl.admin.UrlBlobB\x02\x18\x01R\x07outputs\x12:\n\x0b\x66ull_inputs\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\nfullInputs\x12<\n\x0c\x66ull_outputs\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x0b\x66ullOutputs\x12\x38\n\nflyte_urls\x18\x05 \x01(\x0b\x32\x19.flyteidl.admin.FlyteURLsR\tflyteUrlsB\xbe\x01\n\x12\x63om.flyteidl.adminB\x12TaskExecutionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\022TaskExecutionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._options = None - _TASKEXECUTIONCLOSURE.fields_by_name['output_uri']._serialized_options = b'\030\001' - _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._options = None - _TASKEXECUTIONCLOSURE.fields_by_name['output_data']._serialized_options = b'\030\001' - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._options = None - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['inputs']._serialized_options = b'\030\001' - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._options = None - _TASKEXECUTIONGETDATARESPONSE.fields_by_name['outputs']._serialized_options = b'\030\001' - _globals['_TASKEXECUTIONGETREQUEST']._serialized_start=300 - _globals['_TASKEXECUTIONGETREQUEST']._serialized_end=381 - _globals['_TASKEXECUTIONLISTREQUEST']._serialized_start=384 - _globals['_TASKEXECUTIONLISTREQUEST']._serialized_end=611 - _globals['_TASKEXECUTION']._serialized_start=614 - _globals['_TASKEXECUTION']._serialized_end=807 - _globals['_TASKEXECUTIONLIST']._serialized_start=809 - _globals['_TASKEXECUTIONLIST']._serialized_end=922 - _globals['_TASKEXECUTIONCLOSURE']._serialized_start=925 - _globals['_TASKEXECUTIONCLOSURE']._serialized_end=1721 - _globals['_REASON']._serialized_start=1723 - _globals['_REASON']._serialized_end=1818 - _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_start=1820 - _globals['_TASKEXECUTIONGETDATAREQUEST']._serialized_end=1905 - _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_start=1908 - _globals['_TASKEXECUTIONGETDATARESPONSE']._serialized_end=2226 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi deleted file mode 100644 index 7f675cc7db..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2.pyi +++ /dev/null @@ -1,116 +0,0 @@ -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.event import event_pb2 as _event_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class TaskExecutionGetRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionListRequest(_message.Message): - __slots__ = ["node_execution_id", "limit", "token", "filters", "sort_by"] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - FILTERS_FIELD_NUMBER: _ClassVar[int] - SORT_BY_FIELD_NUMBER: _ClassVar[int] - node_execution_id: _identifier_pb2.NodeExecutionIdentifier - limit: int - token: str - filters: str - sort_by: _common_pb2.Sort - def __init__(self, node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., limit: _Optional[int] = ..., token: _Optional[str] = ..., filters: _Optional[str] = ..., sort_by: _Optional[_Union[_common_pb2.Sort, _Mapping]] = ...) -> None: ... - -class TaskExecution(_message.Message): - __slots__ = ["id", "input_uri", "closure", "is_parent"] - ID_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - input_uri: str - closure: TaskExecutionClosure - is_parent: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., input_uri: _Optional[str] = ..., closure: _Optional[_Union[TaskExecutionClosure, _Mapping]] = ..., is_parent: bool = ...) -> None: ... - -class TaskExecutionList(_message.Message): - __slots__ = ["task_executions", "token"] - TASK_EXECUTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - task_executions: _containers.RepeatedCompositeFieldContainer[TaskExecution] - token: str - def __init__(self, task_executions: _Optional[_Iterable[_Union[TaskExecution, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class TaskExecutionClosure(_message.Message): - __slots__ = ["output_uri", "error", "output_data", "phase", "logs", "started_at", "duration", "created_at", "updated_at", "custom_info", "reason", "task_type", "metadata", "event_version", "reasons"] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - STARTED_AT_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - UPDATED_AT_FIELD_NUMBER: _ClassVar[int] - CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] - REASON_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - REASONS_FIELD_NUMBER: _ClassVar[int] - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - phase: _execution_pb2.TaskExecution.Phase - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - started_at: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - created_at: _timestamp_pb2.Timestamp - updated_at: _timestamp_pb2.Timestamp - custom_info: _struct_pb2.Struct - reason: str - task_type: str - metadata: _event_pb2.TaskExecutionMetadata - event_version: int - reasons: _containers.RepeatedCompositeFieldContainer[Reason] - def __init__(self, output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., started_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., reason: _Optional[str] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[_event_pb2.TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reasons: _Optional[_Iterable[_Union[Reason, _Mapping]]] = ...) -> None: ... - -class Reason(_message.Message): - __slots__ = ["occurred_at", "message"] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - occurred_at: _timestamp_pb2.Timestamp - message: str - def __init__(self, occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., message: _Optional[str] = ...) -> None: ... - -class TaskExecutionGetDataRequest(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionGetDataResponse(_message.Message): - __slots__ = ["inputs", "outputs", "full_inputs", "full_outputs", "flyte_urls"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_INPUTS_FIELD_NUMBER: _ClassVar[int] - FULL_OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FLYTE_URLS_FIELD_NUMBER: _ClassVar[int] - inputs: _common_pb2.UrlBlob - outputs: _common_pb2.UrlBlob - full_inputs: _literals_pb2.LiteralMap - full_outputs: _literals_pb2.LiteralMap - flyte_urls: _common_pb2.FlyteURLs - def __init__(self, inputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., outputs: _Optional[_Union[_common_pb2.UrlBlob, _Mapping]] = ..., full_inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., full_outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., flyte_urls: _Optional[_Union[_common_pb2.FlyteURLs, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py deleted file mode 100644 index 97dc00dfef..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.py +++ /dev/null @@ -1,42 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/task.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/admin/task.proto\x12\x0e\x66lyteidl.admin\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"l\n\x11TaskCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12,\n\x04spec\x18\x02 \x01(\x0b\x32\x18.flyteidl.admin.TaskSpecR\x04spec\"\x14\n\x12TaskCreateResponse\"\x95\x01\n\x04Task\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x35\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1b.flyteidl.admin.TaskClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"L\n\x08TaskList\x12*\n\x05tasks\x18\x01 \x03(\x0b\x32\x14.flyteidl.admin.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x88\x01\n\x08TaskSpec\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12\x43\n\x0b\x64\x65scription\x18\x02 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\x8a\x01\n\x0bTaskClosure\x12@\n\rcompiled_task\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x0c\x63ompiledTask\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAtB\xb5\x01\n\x12\x63om.flyteidl.adminB\tTaskProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.task_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\tTaskProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_TASKCREATEREQUEST']._serialized_start=208 - _globals['_TASKCREATEREQUEST']._serialized_end=316 - _globals['_TASKCREATERESPONSE']._serialized_start=318 - _globals['_TASKCREATERESPONSE']._serialized_end=338 - _globals['_TASK']._serialized_start=341 - _globals['_TASK']._serialized_end=490 - _globals['_TASKLIST']._serialized_start=492 - _globals['_TASKLIST']._serialized_end=568 - _globals['_TASKSPEC']._serialized_start=571 - _globals['_TASKSPEC']._serialized_end=707 - _globals['_TASKCLOSURE']._serialized_start=710 - _globals['_TASKCLOSURE']._serialized_end=848 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi deleted file mode 100644 index 2e6370fba5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2.pyi +++ /dev/null @@ -1,57 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class TaskCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: TaskSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[TaskSpec, _Mapping]] = ...) -> None: ... - -class TaskCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Task(_message.Message): - __slots__ = ["id", "closure", "short_description"] - ID_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - closure: TaskClosure - short_description: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[TaskClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... - -class TaskList(_message.Message): - __slots__ = ["tasks", "token"] - TASKS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - tasks: _containers.RepeatedCompositeFieldContainer[Task] - token: str - def __init__(self, tasks: _Optional[_Iterable[_Union[Task, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class TaskSpec(_message.Message): - __slots__ = ["template", "description"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - template: _tasks_pb2.TaskTemplate - description: _description_entity_pb2.DescriptionEntity - def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... - -class TaskClosure(_message.Message): - __slots__ = ["compiled_task", "created_at"] - COMPILED_TASK_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - compiled_task: _compiler_pb2.CompiledTask - created_at: _timestamp_pb2.Timestamp - def __init__(self, compiled_task: _Optional[_Union[_compiler_pb2.CompiledTask, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/task_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py deleted file mode 100644 index bcdc4a9ea0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/version.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/admin/version.proto\x12\x0e\x66lyteidl.admin\"a\n\x12GetVersionResponse\x12K\n\x15\x63ontrol_plane_version\x18\x01 \x01(\x0b\x32\x17.flyteidl.admin.VersionR\x13\x63ontrolPlaneVersion\"W\n\x07Version\x12\x14\n\x05\x42uild\x18\x01 \x01(\tR\x05\x42uild\x12\x18\n\x07Version\x18\x02 \x01(\tR\x07Version\x12\x1c\n\tBuildTime\x18\x03 \x01(\tR\tBuildTime\"\x13\n\x11GetVersionRequestB\xb8\x01\n\x12\x63om.flyteidl.adminB\x0cVersionProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.version_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\014VersionProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_GETVERSIONRESPONSE']._serialized_start=48 - _globals['_GETVERSIONRESPONSE']._serialized_end=145 - _globals['_VERSION']._serialized_start=147 - _globals['_VERSION']._serialized_end=234 - _globals['_GETVERSIONREQUEST']._serialized_start=236 - _globals['_GETVERSIONREQUEST']._serialized_end=255 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi deleted file mode 100644 index a83d0baa8f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2.pyi +++ /dev/null @@ -1,25 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class GetVersionResponse(_message.Message): - __slots__ = ["control_plane_version"] - CONTROL_PLANE_VERSION_FIELD_NUMBER: _ClassVar[int] - control_plane_version: Version - def __init__(self, control_plane_version: _Optional[_Union[Version, _Mapping]] = ...) -> None: ... - -class Version(_message.Message): - __slots__ = ["Build", "Version", "BuildTime"] - BUILD_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - BUILDTIME_FIELD_NUMBER: _ClassVar[int] - Build: str - Version: str - BuildTime: str - def __init__(self, Build: _Optional[str] = ..., Version: _Optional[str] = ..., BuildTime: _Optional[str] = ...) -> None: ... - -class GetVersionRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/version_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py deleted file mode 100644 index a277fac588..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/workflow_attributes.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(flyteidl/admin/workflow_attributes.proto\x12\x0e\x66lyteidl.admin\x1a\'flyteidl/admin/matchable_resource.proto\"\xb7\x01\n\x12WorkflowAttributes\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12S\n\x13matching_attributes\x18\x04 \x01(\x0b\x32\".flyteidl.admin.MatchingAttributesR\x12matchingAttributes\"e\n\x1fWorkflowAttributesUpdateRequest\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\"\n WorkflowAttributesUpdateResponse\"\xb4\x01\n\x1cWorkflowAttributesGetRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"c\n\x1dWorkflowAttributesGetResponse\x12\x42\n\nattributes\x18\x01 \x01(\x0b\x32\".flyteidl.admin.WorkflowAttributesR\nattributes\"\xb7\x01\n\x1fWorkflowAttributesDeleteRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08workflow\x18\x03 \x01(\tR\x08workflow\x12\x46\n\rresource_type\x18\x04 \x01(\x0e\x32!.flyteidl.admin.MatchableResourceR\x0cresourceType\"\"\n WorkflowAttributesDeleteResponseB\xc3\x01\n\x12\x63om.flyteidl.adminB\x17WorkflowAttributesProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_attributes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\027WorkflowAttributesProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_WORKFLOWATTRIBUTES']._serialized_start=102 - _globals['_WORKFLOWATTRIBUTES']._serialized_end=285 - _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_start=287 - _globals['_WORKFLOWATTRIBUTESUPDATEREQUEST']._serialized_end=388 - _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_start=390 - _globals['_WORKFLOWATTRIBUTESUPDATERESPONSE']._serialized_end=424 - _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_start=427 - _globals['_WORKFLOWATTRIBUTESGETREQUEST']._serialized_end=607 - _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_start=609 - _globals['_WORKFLOWATTRIBUTESGETRESPONSE']._serialized_end=708 - _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_start=711 - _globals['_WORKFLOWATTRIBUTESDELETEREQUEST']._serialized_end=894 - _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_start=896 - _globals['_WORKFLOWATTRIBUTESDELETERESPONSE']._serialized_end=930 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi deleted file mode 100644 index 67b040a36d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowAttributes(_message.Message): - __slots__ = ["project", "domain", "workflow", "matching_attributes"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - MATCHING_ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - matching_attributes: _matchable_resource_pb2.MatchingAttributes - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., matching_attributes: _Optional[_Union[_matchable_resource_pb2.MatchingAttributes, _Mapping]] = ...) -> None: ... - -class WorkflowAttributesUpdateRequest(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: WorkflowAttributes - def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... - -class WorkflowAttributesUpdateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class WorkflowAttributesGetRequest(_message.Message): - __slots__ = ["project", "domain", "workflow", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class WorkflowAttributesGetResponse(_message.Message): - __slots__ = ["attributes"] - ATTRIBUTES_FIELD_NUMBER: _ClassVar[int] - attributes: WorkflowAttributes - def __init__(self, attributes: _Optional[_Union[WorkflowAttributes, _Mapping]] = ...) -> None: ... - -class WorkflowAttributesDeleteRequest(_message.Message): - __slots__ = ["project", "domain", "workflow", "resource_type"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - workflow: str - resource_type: _matchable_resource_pb2.MatchableResource - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., workflow: _Optional[str] = ..., resource_type: _Optional[_Union[_matchable_resource_pb2.MatchableResource, str]] = ...) -> None: ... - -class WorkflowAttributesDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_attributes_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py deleted file mode 100644 index 360e634029..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/admin/workflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(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\'flyteidl/admin/description_entity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"t\n\x15WorkflowCreateRequest\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x30\n\x04spec\x18\x02 \x01(\x0b\x32\x1c.flyteidl.admin.WorkflowSpecR\x04spec\"\x18\n\x16WorkflowCreateResponse\"\x9d\x01\n\x08Workflow\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x39\n\x07\x63losure\x18\x02 \x01(\x0b\x32\x1f.flyteidl.admin.WorkflowClosureR\x07\x63losure\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\"\\\n\x0cWorkflowList\x12\x36\n\tworkflows\x18\x01 \x03(\x0b\x32\x18.flyteidl.admin.WorkflowR\tworkflows\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xd6\x01\n\x0cWorkflowSpec\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubWorkflows\x12\x43\n\x0b\x64\x65scription\x18\x03 \x01(\x0b\x32!.flyteidl.admin.DescriptionEntityR\x0b\x64\x65scription\"\xa1\x01\n\x0fWorkflowClosure\x12S\n\x11\x63ompiled_workflow\x18\x01 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"R\n%WorkflowErrorExistsDifferentStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"R\n%WorkflowErrorExistsIdenticalStructure\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\"\x95\x02\n\x1b\x43reateWorkflowFailureReason\x12u\n\x1a\x65xists_different_structure\x18\x01 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsDifferentStructureH\x00R\x18\x65xistsDifferentStructure\x12u\n\x1a\x65xists_identical_structure\x18\x02 \x01(\x0b\x32\x35.flyteidl.admin.WorkflowErrorExistsIdenticalStructureH\x00R\x18\x65xistsIdenticalStructureB\x08\n\x06reasonB\xb9\x01\n\x12\x63om.flyteidl.adminB\rWorkflowProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\xa2\x02\x03\x46\x41X\xaa\x02\x0e\x46lyteidl.Admin\xca\x02\x0e\x46lyteidl\\Admin\xe2\x02\x1a\x46lyteidl\\Admin\\GPBMetadata\xea\x02\x0f\x46lyteidl::Adminb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.admin.workflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.adminB\rWorkflowProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin\242\002\003FAX\252\002\016Flyteidl.Admin\312\002\016Flyteidl\\Admin\342\002\032Flyteidl\\Admin\\GPBMetadata\352\002\017Flyteidl::Admin' - _globals['_WORKFLOWCREATEREQUEST']._serialized_start=215 - _globals['_WORKFLOWCREATEREQUEST']._serialized_end=331 - _globals['_WORKFLOWCREATERESPONSE']._serialized_start=333 - _globals['_WORKFLOWCREATERESPONSE']._serialized_end=357 - _globals['_WORKFLOW']._serialized_start=360 - _globals['_WORKFLOW']._serialized_end=517 - _globals['_WORKFLOWLIST']._serialized_start=519 - _globals['_WORKFLOWLIST']._serialized_end=611 - _globals['_WORKFLOWSPEC']._serialized_start=614 - _globals['_WORKFLOWSPEC']._serialized_end=828 - _globals['_WORKFLOWCLOSURE']._serialized_start=831 - _globals['_WORKFLOWCLOSURE']._serialized_end=992 - _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_start=994 - _globals['_WORKFLOWERROREXISTSDIFFERENTSTRUCTURE']._serialized_end=1076 - _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_start=1078 - _globals['_WORKFLOWERROREXISTSIDENTICALSTRUCTURE']._serialized_end=1160 - _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_start=1163 - _globals['_CREATEWORKFLOWFAILUREREASON']._serialized_end=1440 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi deleted file mode 100644 index 294d595855..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2.pyi +++ /dev/null @@ -1,79 +0,0 @@ -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowCreateRequest(_message.Message): - __slots__ = ["id", "spec"] - ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - spec: WorkflowSpec - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., spec: _Optional[_Union[WorkflowSpec, _Mapping]] = ...) -> None: ... - -class WorkflowCreateResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Workflow(_message.Message): - __slots__ = ["id", "closure", "short_description"] - ID_FIELD_NUMBER: _ClassVar[int] - CLOSURE_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - closure: WorkflowClosure - short_description: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., closure: _Optional[_Union[WorkflowClosure, _Mapping]] = ..., short_description: _Optional[str] = ...) -> None: ... - -class WorkflowList(_message.Message): - __slots__ = ["workflows", "token"] - WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - workflows: _containers.RepeatedCompositeFieldContainer[Workflow] - token: str - def __init__(self, workflows: _Optional[_Iterable[_Union[Workflow, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class WorkflowSpec(_message.Message): - __slots__ = ["template", "sub_workflows", "description"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - template: _workflow_pb2.WorkflowTemplate - sub_workflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] - description: _description_entity_pb2.DescriptionEntity - def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ..., description: _Optional[_Union[_description_entity_pb2.DescriptionEntity, _Mapping]] = ...) -> None: ... - -class WorkflowClosure(_message.Message): - __slots__ = ["compiled_workflow", "created_at"] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - created_at: _timestamp_pb2.Timestamp - def __init__(self, compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class WorkflowErrorExistsDifferentStructure(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class WorkflowErrorExistsIdenticalStructure(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CreateWorkflowFailureReason(_message.Message): - __slots__ = ["exists_different_structure", "exists_identical_structure"] - EXISTS_DIFFERENT_STRUCTURE_FIELD_NUMBER: _ClassVar[int] - EXISTS_IDENTICAL_STRUCTURE_FIELD_NUMBER: _ClassVar[int] - exists_different_structure: WorkflowErrorExistsDifferentStructure - exists_identical_structure: WorkflowErrorExistsIdenticalStructure - def __init__(self, exists_different_structure: _Optional[_Union[WorkflowErrorExistsDifferentStructure, _Mapping]] = ..., exists_identical_structure: _Optional[_Union[WorkflowErrorExistsIdenticalStructure, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/admin/workflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/__init__.py b/flyteidl/gen/pb_python/flyteidl/artifact/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py deleted file mode 100644 index 84e5a5344a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.py +++ /dev/null @@ -1,96 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/artifact/artifacts.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2 -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.event import cloudevents_pb2 as flyteidl_dot_event_dot_cloudevents__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/artifact/artifacts.proto\x12\x11\x66lyteidl.artifact\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a flyteidl/event/cloudevents.proto\"\xca\x01\n\x08\x41rtifact\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x39\n\x06source\x18\x04 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\"\x8b\x03\n\x15\x43reateArtifactRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x03 \x01(\tR\x07version\x12\x33\n\x04spec\x18\x02 \x01(\x0b\x32\x1f.flyteidl.artifact.ArtifactSpecR\x04spec\x12X\n\npartitions\x18\x04 \x03(\x0b\x32\x38.flyteidl.artifact.CreateArtifactRequest.PartitionsEntryR\npartitions\x12\x10\n\x03tag\x18\x05 \x01(\tR\x03tag\x12\x39\n\x06source\x18\x06 \x01(\x0b\x32!.flyteidl.artifact.ArtifactSourceR\x06source\x1a=\n\x0fPartitionsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xfb\x01\n\x0e\x41rtifactSource\x12Y\n\x12workflow_execution\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x11workflowExecution\x12\x17\n\x07node_id\x18\x02 \x01(\tR\x06nodeId\x12\x32\n\x07task_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12#\n\rretry_attempt\x18\x04 \x01(\rR\x0cretryAttempt\x12\x1c\n\tprincipal\x18\x05 \x01(\tR\tprincipal\"\xf9\x01\n\x0c\x41rtifactSpec\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12+\n\x11short_description\x18\x03 \x01(\tR\x10shortDescription\x12\x39\n\ruser_metadata\x18\x04 \x01(\x0b\x32\x14.google.protobuf.AnyR\x0cuserMetadata\x12#\n\rmetadata_type\x18\x05 \x01(\tR\x0cmetadataType\"Q\n\x16\x43reateArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"b\n\x12GetArtifactRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryR\x05query\x12\x18\n\x07\x64\x65tails\x18\x02 \x01(\x08R\x07\x64\x65tails\"N\n\x13GetArtifactResponse\x12\x37\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\x08\x61rtifact\"`\n\rSearchOptions\x12+\n\x11strict_partitions\x18\x01 \x01(\x08R\x10strictPartitions\x12\"\n\rlatest_by_key\x18\x02 \x01(\x08R\x0blatestByKey\"\xb2\x02\n\x16SearchArtifactsRequest\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x39\n\npartitions\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.PartitionsR\npartitions\x12\x1c\n\tprincipal\x18\x03 \x01(\tR\tprincipal\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12:\n\x07options\x18\x05 \x01(\x0b\x32 .flyteidl.artifact.SearchOptionsR\x07options\x12\x14\n\x05token\x18\x06 \x01(\tR\x05token\x12\x14\n\x05limit\x18\x07 \x01(\x05R\x05limit\"j\n\x17SearchArtifactsResponse\x12\x39\n\tartifacts\x18\x01 \x03(\x0b\x32\x1b.flyteidl.artifact.ArtifactR\tartifacts\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\xdc\x01\n\x19\x46indByWorkflowExecRequest\x12\x43\n\x07\x65xec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x06\x65xecId\x12T\n\tdirection\x18\x02 \x01(\x0e\x32\x36.flyteidl.artifact.FindByWorkflowExecRequest.DirectionR\tdirection\"$\n\tDirection\x12\n\n\x06INPUTS\x10\x00\x12\x0b\n\x07OUTPUTS\x10\x01\"\x7f\n\rAddTagRequest\x12:\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\nartifactId\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\x12\x1c\n\toverwrite\x18\x03 \x01(\x08R\toverwrite\"\x10\n\x0e\x41\x64\x64TagResponse\"b\n\x14\x43reateTriggerRequest\x12J\n\x13trigger_launch_plan\x18\x01 \x01(\x0b\x32\x1a.flyteidl.admin.LaunchPlanR\x11triggerLaunchPlan\"\x17\n\x15\x43reateTriggerResponse\"P\n\x14\x44\x65leteTriggerRequest\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\"\x17\n\x15\x44\x65leteTriggerResponse\"\x80\x01\n\x10\x41rtifactProducer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\\\n\x17RegisterProducerRequest\x12\x41\n\tproducers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactProducerR\tproducers\"\x7f\n\x10\x41rtifactConsumer\x12\x36\n\tentity_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x08\x65ntityId\x12\x33\n\x06inputs\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.ParameterMapR\x06inputs\"\\\n\x17RegisterConsumerRequest\x12\x41\n\tconsumers\x18\x01 \x03(\x0b\x32#.flyteidl.artifact.ArtifactConsumerR\tconsumers\"\x12\n\x10RegisterResponse\"\x9a\x01\n\x16\x45xecutionInputsRequest\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x31\n\x06inputs\x18\x02 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x06inputs\"\x19\n\x17\x45xecutionInputsResponse2\xd7\x0e\n\x10\x41rtifactRegistry\x12g\n\x0e\x43reateArtifact\x12(.flyteidl.artifact.CreateArtifactRequest\x1a).flyteidl.artifact.CreateArtifactResponse\"\x00\x12\x85\x05\n\x0bGetArtifact\x12%.flyteidl.artifact.GetArtifactRequest\x1a&.flyteidl.artifact.GetArtifactResponse\"\xa6\x04\x82\xd3\xe4\x93\x02\x9f\x04Z\xb8\x01\x12\xb5\x01/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\x9c\x01\x12\x99\x01/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\xa0\x01\x12\x9d\x01/artifacts/api/v1/data/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\x12 /artifacts/api/v1/data/artifacts\x12\xa0\x02\n\x0fSearchArtifacts\x12).flyteidl.artifact.SearchArtifactsRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"\xb5\x01\x82\xd3\xe4\x93\x02\xae\x01ZK\x12I/artifacts/api/v1/data/query/{artifact_key.project}/{artifact_key.domain}\x12_/artifacts/api/v1/data/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}\x12\x64\n\rCreateTrigger\x12\'.flyteidl.artifact.CreateTriggerRequest\x1a(.flyteidl.artifact.CreateTriggerResponse\"\x00\x12\x64\n\rDeleteTrigger\x12\'.flyteidl.artifact.DeleteTriggerRequest\x1a(.flyteidl.artifact.DeleteTriggerResponse\"\x00\x12O\n\x06\x41\x64\x64Tag\x12 .flyteidl.artifact.AddTagRequest\x1a!.flyteidl.artifact.AddTagResponse\"\x00\x12\x65\n\x10RegisterProducer\x12*.flyteidl.artifact.RegisterProducerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12\x65\n\x10RegisterConsumer\x12*.flyteidl.artifact.RegisterConsumerRequest\x1a#.flyteidl.artifact.RegisterResponse\"\x00\x12m\n\x12SetExecutionInputs\x12).flyteidl.artifact.ExecutionInputsRequest\x1a*.flyteidl.artifact.ExecutionInputsResponse\"\x00\x12\xd4\x01\n\x12\x46indByWorkflowExec\x12,.flyteidl.artifact.FindByWorkflowExecRequest\x1a*.flyteidl.artifact.SearchArtifactsResponse\"d\x82\xd3\xe4\x93\x02^\x12\\/artifacts/api/v1/data/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}B\xcc\x01\n\x15\x63om.flyteidl.artifactB\x0e\x41rtifactsProtoP\x01Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\xa2\x02\x03\x46\x41X\xaa\x02\x11\x46lyteidl.Artifact\xca\x02\x11\x46lyteidl\\Artifact\xe2\x02\x1d\x46lyteidl\\Artifact\\GPBMetadata\xea\x02\x12\x46lyteidl::Artifactb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.artifact.artifacts_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\025com.flyteidl.artifactB\016ArtifactsProtoP\001Z>github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifact\242\002\003FAX\252\002\021Flyteidl.Artifact\312\002\021Flyteidl\\Artifact\342\002\035Flyteidl\\Artifact\\GPBMetadata\352\002\022Flyteidl::Artifact' - _CREATEARTIFACTREQUEST_PARTITIONSENTRY._options = None - _CREATEARTIFACTREQUEST_PARTITIONSENTRY._serialized_options = b'8\001' - _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._options = None - _ARTIFACTREGISTRY.methods_by_name['GetArtifact']._serialized_options = b'\202\323\344\223\002\237\004Z\270\001\022\265\001/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}/{query.artifact_id.version}Z\234\001\022\231\001/artifacts/api/v1/data/artifact/id/{query.artifact_id.artifact_key.project}/{query.artifact_id.artifact_key.domain}/{query.artifact_id.artifact_key.name}Z\240\001\022\235\001/artifacts/api/v1/data/artifact/tag/{query.artifact_tag.artifact_key.project}/{query.artifact_tag.artifact_key.domain}/{query.artifact_tag.artifact_key.name}\022 /artifacts/api/v1/data/artifacts' - _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._options = None - _ARTIFACTREGISTRY.methods_by_name['SearchArtifacts']._serialized_options = b'\202\323\344\223\002\256\001ZK\022I/artifacts/api/v1/data/query/{artifact_key.project}/{artifact_key.domain}\022_/artifacts/api/v1/data/query/s/{artifact_key.project}/{artifact_key.domain}/{artifact_key.name}' - _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._options = None - _ARTIFACTREGISTRY.methods_by_name['FindByWorkflowExec']._serialized_options = b'\202\323\344\223\002^\022\\/artifacts/api/v1/data/query/e/{exec_id.project}/{exec_id.domain}/{exec_id.name}/{direction}' - _globals['_ARTIFACT']._serialized_start=335 - _globals['_ARTIFACT']._serialized_end=537 - _globals['_CREATEARTIFACTREQUEST']._serialized_start=540 - _globals['_CREATEARTIFACTREQUEST']._serialized_end=935 - _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_start=874 - _globals['_CREATEARTIFACTREQUEST_PARTITIONSENTRY']._serialized_end=935 - _globals['_ARTIFACTSOURCE']._serialized_start=938 - _globals['_ARTIFACTSOURCE']._serialized_end=1189 - _globals['_ARTIFACTSPEC']._serialized_start=1192 - _globals['_ARTIFACTSPEC']._serialized_end=1441 - _globals['_CREATEARTIFACTRESPONSE']._serialized_start=1443 - _globals['_CREATEARTIFACTRESPONSE']._serialized_end=1524 - _globals['_GETARTIFACTREQUEST']._serialized_start=1526 - _globals['_GETARTIFACTREQUEST']._serialized_end=1624 - _globals['_GETARTIFACTRESPONSE']._serialized_start=1626 - _globals['_GETARTIFACTRESPONSE']._serialized_end=1704 - _globals['_SEARCHOPTIONS']._serialized_start=1706 - _globals['_SEARCHOPTIONS']._serialized_end=1802 - _globals['_SEARCHARTIFACTSREQUEST']._serialized_start=1805 - _globals['_SEARCHARTIFACTSREQUEST']._serialized_end=2111 - _globals['_SEARCHARTIFACTSRESPONSE']._serialized_start=2113 - _globals['_SEARCHARTIFACTSRESPONSE']._serialized_end=2219 - _globals['_FINDBYWORKFLOWEXECREQUEST']._serialized_start=2222 - _globals['_FINDBYWORKFLOWEXECREQUEST']._serialized_end=2442 - _globals['_FINDBYWORKFLOWEXECREQUEST_DIRECTION']._serialized_start=2406 - _globals['_FINDBYWORKFLOWEXECREQUEST_DIRECTION']._serialized_end=2442 - _globals['_ADDTAGREQUEST']._serialized_start=2444 - _globals['_ADDTAGREQUEST']._serialized_end=2571 - _globals['_ADDTAGRESPONSE']._serialized_start=2573 - _globals['_ADDTAGRESPONSE']._serialized_end=2589 - _globals['_CREATETRIGGERREQUEST']._serialized_start=2591 - _globals['_CREATETRIGGERREQUEST']._serialized_end=2689 - _globals['_CREATETRIGGERRESPONSE']._serialized_start=2691 - _globals['_CREATETRIGGERRESPONSE']._serialized_end=2714 - _globals['_DELETETRIGGERREQUEST']._serialized_start=2716 - _globals['_DELETETRIGGERREQUEST']._serialized_end=2796 - _globals['_DELETETRIGGERRESPONSE']._serialized_start=2798 - _globals['_DELETETRIGGERRESPONSE']._serialized_end=2821 - _globals['_ARTIFACTPRODUCER']._serialized_start=2824 - _globals['_ARTIFACTPRODUCER']._serialized_end=2952 - _globals['_REGISTERPRODUCERREQUEST']._serialized_start=2954 - _globals['_REGISTERPRODUCERREQUEST']._serialized_end=3046 - _globals['_ARTIFACTCONSUMER']._serialized_start=3048 - _globals['_ARTIFACTCONSUMER']._serialized_end=3175 - _globals['_REGISTERCONSUMERREQUEST']._serialized_start=3177 - _globals['_REGISTERCONSUMERREQUEST']._serialized_end=3269 - _globals['_REGISTERRESPONSE']._serialized_start=3271 - _globals['_REGISTERRESPONSE']._serialized_end=3289 - _globals['_EXECUTIONINPUTSREQUEST']._serialized_start=3292 - _globals['_EXECUTIONINPUTSREQUEST']._serialized_end=3446 - _globals['_EXECUTIONINPUTSRESPONSE']._serialized_start=3448 - _globals['_EXECUTIONINPUTSRESPONSE']._serialized_end=3473 - _globals['_ARTIFACTREGISTRY']._serialized_start=3476 - _globals['_ARTIFACTREGISTRY']._serialized_end=5355 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi deleted file mode 100644 index 91c389b456..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2.pyi +++ /dev/null @@ -1,225 +0,0 @@ -from google.protobuf import any_pb2 as _any_pb2 -from google.api import annotations_pb2 as _annotations_pb2 -from flyteidl.admin import launch_plan_pb2 as _launch_plan_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.event import cloudevents_pb2 as _cloudevents_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Artifact(_message.Message): - __slots__ = ["artifact_id", "spec", "tags", "source"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - SOURCE_FIELD_NUMBER: _ClassVar[int] - artifact_id: _artifact_id_pb2.ArtifactID - spec: ArtifactSpec - tags: _containers.RepeatedScalarFieldContainer[str] - source: ArtifactSource - def __init__(self, artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., source: _Optional[_Union[ArtifactSource, _Mapping]] = ...) -> None: ... - -class CreateArtifactRequest(_message.Message): - __slots__ = ["artifact_key", "version", "spec", "partitions", "tag", "source"] - class PartitionsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - TAG_FIELD_NUMBER: _ClassVar[int] - SOURCE_FIELD_NUMBER: _ClassVar[int] - artifact_key: _artifact_id_pb2.ArtifactKey - version: str - spec: ArtifactSpec - partitions: _containers.ScalarMap[str, str] - tag: str - source: ArtifactSource - def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., spec: _Optional[_Union[ArtifactSpec, _Mapping]] = ..., partitions: _Optional[_Mapping[str, str]] = ..., tag: _Optional[str] = ..., source: _Optional[_Union[ArtifactSource, _Mapping]] = ...) -> None: ... - -class ArtifactSource(_message.Message): - __slots__ = ["workflow_execution", "node_id", "task_id", "retry_attempt", "principal"] - WORKFLOW_EXECUTION_FIELD_NUMBER: _ClassVar[int] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - workflow_execution: _identifier_pb2.WorkflowExecutionIdentifier - node_id: str - task_id: _identifier_pb2.Identifier - retry_attempt: int - principal: str - def __init__(self, workflow_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[str] = ..., task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., principal: _Optional[str] = ...) -> None: ... - -class ArtifactSpec(_message.Message): - __slots__ = ["value", "type", "short_description", "user_metadata", "metadata_type"] - VALUE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - SHORT_DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - USER_METADATA_FIELD_NUMBER: _ClassVar[int] - METADATA_TYPE_FIELD_NUMBER: _ClassVar[int] - value: _literals_pb2.Literal - type: _types_pb2.LiteralType - short_description: str - user_metadata: _any_pb2.Any - metadata_type: str - def __init__(self, value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., short_description: _Optional[str] = ..., user_metadata: _Optional[_Union[_any_pb2.Any, _Mapping]] = ..., metadata_type: _Optional[str] = ...) -> None: ... - -class CreateArtifactResponse(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class GetArtifactRequest(_message.Message): - __slots__ = ["query", "details"] - QUERY_FIELD_NUMBER: _ClassVar[int] - DETAILS_FIELD_NUMBER: _ClassVar[int] - query: _artifact_id_pb2.ArtifactQuery - details: bool - def __init__(self, query: _Optional[_Union[_artifact_id_pb2.ArtifactQuery, _Mapping]] = ..., details: bool = ...) -> None: ... - -class GetArtifactResponse(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class SearchOptions(_message.Message): - __slots__ = ["strict_partitions", "latest_by_key"] - STRICT_PARTITIONS_FIELD_NUMBER: _ClassVar[int] - LATEST_BY_KEY_FIELD_NUMBER: _ClassVar[int] - strict_partitions: bool - latest_by_key: bool - def __init__(self, strict_partitions: bool = ..., latest_by_key: bool = ...) -> None: ... - -class SearchArtifactsRequest(_message.Message): - __slots__ = ["artifact_key", "partitions", "principal", "version", "options", "token", "limit"] - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - OPTIONS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - LIMIT_FIELD_NUMBER: _ClassVar[int] - artifact_key: _artifact_id_pb2.ArtifactKey - partitions: _artifact_id_pb2.Partitions - principal: str - version: str - options: SearchOptions - token: str - limit: int - def __init__(self, artifact_key: _Optional[_Union[_artifact_id_pb2.ArtifactKey, _Mapping]] = ..., partitions: _Optional[_Union[_artifact_id_pb2.Partitions, _Mapping]] = ..., principal: _Optional[str] = ..., version: _Optional[str] = ..., options: _Optional[_Union[SearchOptions, _Mapping]] = ..., token: _Optional[str] = ..., limit: _Optional[int] = ...) -> None: ... - -class SearchArtifactsResponse(_message.Message): - __slots__ = ["artifacts", "token"] - ARTIFACTS_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] - token: str - def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ... - -class FindByWorkflowExecRequest(_message.Message): - __slots__ = ["exec_id", "direction"] - class Direction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - INPUTS: _ClassVar[FindByWorkflowExecRequest.Direction] - OUTPUTS: _ClassVar[FindByWorkflowExecRequest.Direction] - INPUTS: FindByWorkflowExecRequest.Direction - OUTPUTS: FindByWorkflowExecRequest.Direction - EXEC_ID_FIELD_NUMBER: _ClassVar[int] - DIRECTION_FIELD_NUMBER: _ClassVar[int] - exec_id: _identifier_pb2.WorkflowExecutionIdentifier - direction: FindByWorkflowExecRequest.Direction - def __init__(self, exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., direction: _Optional[_Union[FindByWorkflowExecRequest.Direction, str]] = ...) -> None: ... - -class AddTagRequest(_message.Message): - __slots__ = ["artifact_id", "value", "overwrite"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - OVERWRITE_FIELD_NUMBER: _ClassVar[int] - artifact_id: _artifact_id_pb2.ArtifactID - value: str - overwrite: bool - def __init__(self, artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., value: _Optional[str] = ..., overwrite: bool = ...) -> None: ... - -class AddTagResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class CreateTriggerRequest(_message.Message): - __slots__ = ["trigger_launch_plan"] - TRIGGER_LAUNCH_PLAN_FIELD_NUMBER: _ClassVar[int] - trigger_launch_plan: _launch_plan_pb2.LaunchPlan - def __init__(self, trigger_launch_plan: _Optional[_Union[_launch_plan_pb2.LaunchPlan, _Mapping]] = ...) -> None: ... - -class CreateTriggerResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class DeleteTriggerRequest(_message.Message): - __slots__ = ["trigger_id"] - TRIGGER_ID_FIELD_NUMBER: _ClassVar[int] - trigger_id: _identifier_pb2.Identifier - def __init__(self, trigger_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class DeleteTriggerResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ArtifactProducer(_message.Message): - __slots__ = ["entity_id", "outputs"] - ENTITY_ID_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - entity_id: _identifier_pb2.Identifier - outputs: _interface_pb2.VariableMap - def __init__(self, entity_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., outputs: _Optional[_Union[_interface_pb2.VariableMap, _Mapping]] = ...) -> None: ... - -class RegisterProducerRequest(_message.Message): - __slots__ = ["producers"] - PRODUCERS_FIELD_NUMBER: _ClassVar[int] - producers: _containers.RepeatedCompositeFieldContainer[ArtifactProducer] - def __init__(self, producers: _Optional[_Iterable[_Union[ArtifactProducer, _Mapping]]] = ...) -> None: ... - -class ArtifactConsumer(_message.Message): - __slots__ = ["entity_id", "inputs"] - ENTITY_ID_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - entity_id: _identifier_pb2.Identifier - inputs: _interface_pb2.ParameterMap - def __init__(self, entity_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., inputs: _Optional[_Union[_interface_pb2.ParameterMap, _Mapping]] = ...) -> None: ... - -class RegisterConsumerRequest(_message.Message): - __slots__ = ["consumers"] - CONSUMERS_FIELD_NUMBER: _ClassVar[int] - consumers: _containers.RepeatedCompositeFieldContainer[ArtifactConsumer] - def __init__(self, consumers: _Optional[_Iterable[_Union[ArtifactConsumer, _Mapping]]] = ...) -> None: ... - -class RegisterResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ExecutionInputsRequest(_message.Message): - __slots__ = ["execution_id", "inputs"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - inputs: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ...) -> None: ... - -class ExecutionInputsResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py deleted file mode 100644 index b989cdc000..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/artifact/artifacts_pb2_grpc.py +++ /dev/null @@ -1,363 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.artifact import artifacts_pb2 as flyteidl_dot_artifact_dot_artifacts__pb2 - - -class ArtifactRegistryStub(object): - """Missing associated documentation comment in .proto file.""" - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateArtifact = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/CreateArtifact', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactResponse.FromString, - ) - self.GetArtifact = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/GetArtifact', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactResponse.FromString, - ) - self.SearchArtifacts = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/SearchArtifacts', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, - ) - self.CreateTrigger = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/CreateTrigger', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerResponse.FromString, - ) - self.DeleteTrigger = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/DeleteTrigger', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerResponse.FromString, - ) - self.AddTag = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/AddTag', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.AddTagRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.AddTagResponse.FromString, - ) - self.RegisterProducer = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/RegisterProducer', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterProducerRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString, - ) - self.RegisterConsumer = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/RegisterConsumer', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterConsumerRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString, - ) - self.SetExecutionInputs = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.FromString, - ) - self.FindByWorkflowExec = channel.unary_unary( - '/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec', - request_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.SerializeToString, - response_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, - ) - - -class ArtifactRegistryServicer(object): - """Missing associated documentation comment in .proto file.""" - - def CreateArtifact(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArtifact(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SearchArtifacts(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteTrigger(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddTag(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisterProducer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisterConsumer(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetExecutionInputs(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def FindByWorkflowExec(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ArtifactRegistryServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateArtifact': grpc.unary_unary_rpc_method_handler( - servicer.CreateArtifact, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactResponse.SerializeToString, - ), - 'GetArtifact': grpc.unary_unary_rpc_method_handler( - servicer.GetArtifact, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactResponse.SerializeToString, - ), - 'SearchArtifacts': grpc.unary_unary_rpc_method_handler( - servicer.SearchArtifacts, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.SerializeToString, - ), - 'CreateTrigger': grpc.unary_unary_rpc_method_handler( - servicer.CreateTrigger, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerResponse.SerializeToString, - ), - 'DeleteTrigger': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTrigger, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerResponse.SerializeToString, - ), - 'AddTag': grpc.unary_unary_rpc_method_handler( - servicer.AddTag, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.AddTagRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.AddTagResponse.SerializeToString, - ), - 'RegisterProducer': grpc.unary_unary_rpc_method_handler( - servicer.RegisterProducer, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterProducerRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.SerializeToString, - ), - 'RegisterConsumer': grpc.unary_unary_rpc_method_handler( - servicer.RegisterConsumer, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterConsumerRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.SerializeToString, - ), - 'SetExecutionInputs': grpc.unary_unary_rpc_method_handler( - servicer.SetExecutionInputs, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.SerializeToString, - ), - 'FindByWorkflowExec': grpc.unary_unary_rpc_method_handler( - servicer.FindByWorkflowExec, - request_deserializer=flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.FromString, - response_serializer=flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.artifact.ArtifactRegistry', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class ArtifactRegistry(object): - """Missing associated documentation comment in .proto file.""" - - @staticmethod - def CreateArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/CreateArtifact', - flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.CreateArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/GetArtifact', - flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.GetArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SearchArtifacts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/SearchArtifacts', - flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/CreateTrigger', - flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.CreateTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteTrigger(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/DeleteTrigger', - flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.DeleteTriggerResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddTag(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/AddTag', - flyteidl_dot_artifact_dot_artifacts__pb2.AddTagRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.AddTagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RegisterProducer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/RegisterProducer', - flyteidl_dot_artifact_dot_artifacts__pb2.RegisterProducerRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RegisterConsumer(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/RegisterConsumer', - flyteidl_dot_artifact_dot_artifacts__pb2.RegisterConsumerRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.RegisterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetExecutionInputs(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs', - flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.ExecutionInputsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def FindByWorkflowExec(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec', - flyteidl_dot_artifact_dot_artifacts__pb2.FindByWorkflowExecRequest.SerializeToString, - flyteidl_dot_artifact_dot_artifacts__pb2.SearchArtifactsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/core/__init__.py b/flyteidl/gen/pb_python/flyteidl/core/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py deleted file mode 100644 index 9496d9c008..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.py +++ /dev/null @@ -1,48 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/artifact_id.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/artifact_id.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\"S\n\x0b\x41rtifactKey\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x03 \x01(\tR\x04name\"n\n\x13\x41rtifactBindingData\x12\x14\n\x05index\x18\x01 \x01(\rR\x05index\x12#\n\rpartition_key\x18\x02 \x01(\tR\x0cpartitionKey\x12\x1c\n\ttransform\x18\x03 \x01(\tR\ttransform\"$\n\x10InputBindingData\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\"\xd5\x01\n\nLabelValue\x12#\n\x0cstatic_value\x18\x01 \x01(\tH\x00R\x0bstaticValue\x12Q\n\x11triggered_binding\x18\x02 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x10triggeredBinding\x12\x46\n\rinput_binding\x18\x03 \x01(\x0b\x32\x1f.flyteidl.core.InputBindingDataH\x00R\x0cinputBindingB\x07\n\x05value\"\x9d\x01\n\nPartitions\x12:\n\x05value\x18\x01 \x03(\x0b\x32$.flyteidl.core.Partitions.ValueEntryR\x05value\x1aS\n\nValueEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value:\x02\x38\x01\"\xb0\x01\n\nArtifactID\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12;\n\npartitions\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.PartitionsH\x00R\npartitionsB\x0c\n\ndimensions\"}\n\x0b\x41rtifactTag\x12=\n\x0c\x61rtifact_key\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactKeyR\x0b\x61rtifactKey\x12/\n\x05value\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LabelValueR\x05value\"\xf0\x01\n\rArtifactQuery\x12<\n\x0b\x61rtifact_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactId\x12?\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagH\x00R\x0b\x61rtifactTag\x12\x12\n\x03uri\x18\x03 \x01(\tH\x00R\x03uri\x12>\n\x07\x62inding\x18\x04 \x01(\x0b\x32\".flyteidl.core.ArtifactBindingDataH\x00R\x07\x62indingB\x0c\n\nidentifier\"z\n\x07Trigger\x12\x38\n\ntrigger_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\ttriggerId\x12\x35\n\x08triggers\x18\x02 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x08triggersB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x41rtifactIdProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.artifact_id_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017ArtifactIdProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _PARTITIONS_VALUEENTRY._options = None - _PARTITIONS_VALUEENTRY._serialized_options = b'8\001' - _globals['_ARTIFACTKEY']._serialized_start=82 - _globals['_ARTIFACTKEY']._serialized_end=165 - _globals['_ARTIFACTBINDINGDATA']._serialized_start=167 - _globals['_ARTIFACTBINDINGDATA']._serialized_end=277 - _globals['_INPUTBINDINGDATA']._serialized_start=279 - _globals['_INPUTBINDINGDATA']._serialized_end=315 - _globals['_LABELVALUE']._serialized_start=318 - _globals['_LABELVALUE']._serialized_end=531 - _globals['_PARTITIONS']._serialized_start=534 - _globals['_PARTITIONS']._serialized_end=691 - _globals['_PARTITIONS_VALUEENTRY']._serialized_start=608 - _globals['_PARTITIONS_VALUEENTRY']._serialized_end=691 - _globals['_ARTIFACTID']._serialized_start=694 - _globals['_ARTIFACTID']._serialized_end=870 - _globals['_ARTIFACTTAG']._serialized_start=872 - _globals['_ARTIFACTTAG']._serialized_end=997 - _globals['_ARTIFACTQUERY']._serialized_start=1000 - _globals['_ARTIFACTQUERY']._serialized_end=1240 - _globals['_TRIGGER']._serialized_start=1242 - _globals['_TRIGGER']._serialized_end=1364 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi deleted file mode 100644 index 4f65759ae7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2.pyi +++ /dev/null @@ -1,94 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArtifactKey(_message.Message): - __slots__ = ["project", "domain", "name"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class ArtifactBindingData(_message.Message): - __slots__ = ["index", "partition_key", "transform"] - INDEX_FIELD_NUMBER: _ClassVar[int] - PARTITION_KEY_FIELD_NUMBER: _ClassVar[int] - TRANSFORM_FIELD_NUMBER: _ClassVar[int] - index: int - partition_key: str - transform: str - def __init__(self, index: _Optional[int] = ..., partition_key: _Optional[str] = ..., transform: _Optional[str] = ...) -> None: ... - -class InputBindingData(_message.Message): - __slots__ = ["var"] - VAR_FIELD_NUMBER: _ClassVar[int] - var: str - def __init__(self, var: _Optional[str] = ...) -> None: ... - -class LabelValue(_message.Message): - __slots__ = ["static_value", "triggered_binding", "input_binding"] - STATIC_VALUE_FIELD_NUMBER: _ClassVar[int] - TRIGGERED_BINDING_FIELD_NUMBER: _ClassVar[int] - INPUT_BINDING_FIELD_NUMBER: _ClassVar[int] - static_value: str - triggered_binding: ArtifactBindingData - input_binding: InputBindingData - def __init__(self, static_value: _Optional[str] = ..., triggered_binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ..., input_binding: _Optional[_Union[InputBindingData, _Mapping]] = ...) -> None: ... - -class Partitions(_message.Message): - __slots__ = ["value"] - class ValueEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: LabelValue - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... - VALUE_FIELD_NUMBER: _ClassVar[int] - value: _containers.MessageMap[str, LabelValue] - def __init__(self, value: _Optional[_Mapping[str, LabelValue]] = ...) -> None: ... - -class ArtifactID(_message.Message): - __slots__ = ["artifact_key", "version", "partitions"] - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - artifact_key: ArtifactKey - version: str - partitions: Partitions - def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., version: _Optional[str] = ..., partitions: _Optional[_Union[Partitions, _Mapping]] = ...) -> None: ... - -class ArtifactTag(_message.Message): - __slots__ = ["artifact_key", "value"] - ARTIFACT_KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - artifact_key: ArtifactKey - value: LabelValue - def __init__(self, artifact_key: _Optional[_Union[ArtifactKey, _Mapping]] = ..., value: _Optional[_Union[LabelValue, _Mapping]] = ...) -> None: ... - -class ArtifactQuery(_message.Message): - __slots__ = ["artifact_id", "artifact_tag", "uri", "binding"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - BINDING_FIELD_NUMBER: _ClassVar[int] - artifact_id: ArtifactID - artifact_tag: ArtifactTag - uri: str - binding: ArtifactBindingData - def __init__(self, artifact_id: _Optional[_Union[ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[ArtifactTag, _Mapping]] = ..., uri: _Optional[str] = ..., binding: _Optional[_Union[ArtifactBindingData, _Mapping]] = ...) -> None: ... - -class Trigger(_message.Message): - __slots__ = ["trigger_id", "triggers"] - TRIGGER_ID_FIELD_NUMBER: _ClassVar[int] - TRIGGERS_FIELD_NUMBER: _ClassVar[int] - trigger_id: _identifier_pb2.Identifier - triggers: _containers.RepeatedCompositeFieldContainer[ArtifactID] - def __init__(self, trigger_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., triggers: _Optional[_Iterable[_Union[ArtifactID, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/artifact_id_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py deleted file mode 100644 index dc72c89d9f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/catalog.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/catalog.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\"I\n\x12\x43\x61talogArtifactTag\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\"\x83\x02\n\x0f\x43\x61talogMetadata\x12\x38\n\ndataset_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\tdatasetId\x12\x44\n\x0c\x61rtifact_tag\x18\x02 \x01(\x0b\x32!.flyteidl.core.CatalogArtifactTagR\x0b\x61rtifactTag\x12\\\n\x15source_task_execution\x18\x03 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x13sourceTaskExecutionB\x12\n\x10source_execution\"\x9e\x01\n\x12\x43\x61talogReservation\"\x87\x01\n\x06Status\x12\x18\n\x14RESERVATION_DISABLED\x10\x00\x12\x18\n\x14RESERVATION_ACQUIRED\x10\x01\x12\x16\n\x12RESERVATION_EXISTS\x10\x02\x12\x18\n\x14RESERVATION_RELEASED\x10\x03\x12\x17\n\x13RESERVATION_FAILURE\x10\x04*\xa0\x01\n\x12\x43\x61talogCacheStatus\x12\x12\n\x0e\x43\x41\x43HE_DISABLED\x10\x00\x12\x0e\n\nCACHE_MISS\x10\x01\x12\r\n\tCACHE_HIT\x10\x02\x12\x13\n\x0f\x43\x41\x43HE_POPULATED\x10\x03\x12\x18\n\x14\x43\x41\x43HE_LOOKUP_FAILURE\x10\x04\x12\x15\n\x11\x43\x41\x43HE_PUT_FAILURE\x10\x05\x12\x11\n\rCACHE_SKIPPED\x10\x06\x42\xb2\x01\n\x11\x63om.flyteidl.coreB\x0c\x43\x61talogProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.catalog_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014CatalogProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_CATALOGCACHESTATUS']._serialized_start=577 - _globals['_CATALOGCACHESTATUS']._serialized_end=737 - _globals['_CATALOGARTIFACTTAG']._serialized_start=78 - _globals['_CATALOGARTIFACTTAG']._serialized_end=151 - _globals['_CATALOGMETADATA']._serialized_start=154 - _globals['_CATALOGMETADATA']._serialized_end=413 - _globals['_CATALOGRESERVATION']._serialized_start=416 - _globals['_CATALOGRESERVATION']._serialized_end=574 - _globals['_CATALOGRESERVATION_STATUS']._serialized_start=439 - _globals['_CATALOGRESERVATION_STATUS']._serialized_end=574 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi deleted file mode 100644 index 90acf7d24b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2.pyi +++ /dev/null @@ -1,58 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CatalogCacheStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CACHE_DISABLED: _ClassVar[CatalogCacheStatus] - CACHE_MISS: _ClassVar[CatalogCacheStatus] - CACHE_HIT: _ClassVar[CatalogCacheStatus] - CACHE_POPULATED: _ClassVar[CatalogCacheStatus] - CACHE_LOOKUP_FAILURE: _ClassVar[CatalogCacheStatus] - CACHE_PUT_FAILURE: _ClassVar[CatalogCacheStatus] - CACHE_SKIPPED: _ClassVar[CatalogCacheStatus] -CACHE_DISABLED: CatalogCacheStatus -CACHE_MISS: CatalogCacheStatus -CACHE_HIT: CatalogCacheStatus -CACHE_POPULATED: CatalogCacheStatus -CACHE_LOOKUP_FAILURE: CatalogCacheStatus -CACHE_PUT_FAILURE: CatalogCacheStatus -CACHE_SKIPPED: CatalogCacheStatus - -class CatalogArtifactTag(_message.Message): - __slots__ = ["artifact_id", "name"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - name: str - def __init__(self, artifact_id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class CatalogMetadata(_message.Message): - __slots__ = ["dataset_id", "artifact_tag", "source_task_execution"] - DATASET_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - SOURCE_TASK_EXECUTION_FIELD_NUMBER: _ClassVar[int] - dataset_id: _identifier_pb2.Identifier - artifact_tag: CatalogArtifactTag - source_task_execution: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, dataset_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_tag: _Optional[_Union[CatalogArtifactTag, _Mapping]] = ..., source_task_execution: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class CatalogReservation(_message.Message): - __slots__ = [] - class Status(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RESERVATION_DISABLED: _ClassVar[CatalogReservation.Status] - RESERVATION_ACQUIRED: _ClassVar[CatalogReservation.Status] - RESERVATION_EXISTS: _ClassVar[CatalogReservation.Status] - RESERVATION_RELEASED: _ClassVar[CatalogReservation.Status] - RESERVATION_FAILURE: _ClassVar[CatalogReservation.Status] - RESERVATION_DISABLED: CatalogReservation.Status - RESERVATION_ACQUIRED: CatalogReservation.Status - RESERVATION_EXISTS: CatalogReservation.Status - RESERVATION_RELEASED: CatalogReservation.Status - RESERVATION_FAILURE: CatalogReservation.Status - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/catalog_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py deleted file mode 100644 index a47a859e9f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/compiler.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/compiler.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x87\x03\n\rConnectionSet\x12L\n\ndownstream\x18\x07 \x03(\x0b\x32,.flyteidl.core.ConnectionSet.DownstreamEntryR\ndownstream\x12\x46\n\x08upstream\x18\x08 \x03(\x0b\x32*.flyteidl.core.ConnectionSet.UpstreamEntryR\x08upstream\x1a\x1a\n\x06IdList\x12\x10\n\x03ids\x18\x01 \x03(\tR\x03ids\x1a\x62\n\x0f\x44ownstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\x1a`\n\rUpstreamEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.flyteidl.core.ConnectionSet.IdListR\x05value:\x02\x38\x01\"\x8f\x01\n\x10\x43ompiledWorkflow\x12;\n\x08template\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08template\x12>\n\x0b\x63onnections\x18\x02 \x01(\x0b\x32\x1c.flyteidl.core.ConnectionSetR\x0b\x63onnections\"G\n\x0c\x43ompiledTask\x12\x37\n\x08template\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\"\xcd\x01\n\x17\x43ompiledWorkflowClosure\x12\x39\n\x07primary\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x07primary\x12\x44\n\rsub_workflows\x18\x02 \x03(\x0b\x32\x1f.flyteidl.core.CompiledWorkflowR\x0csubWorkflows\x12\x31\n\x05tasks\x18\x03 \x03(\x0b\x32\x1b.flyteidl.core.CompiledTaskR\x05tasksB\xb3\x01\n\x11\x63om.flyteidl.coreB\rCompilerProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.compiler_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rCompilerProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _CONNECTIONSET_DOWNSTREAMENTRY._options = None - _CONNECTIONSET_DOWNSTREAMENTRY._serialized_options = b'8\001' - _CONNECTIONSET_UPSTREAMENTRY._options = None - _CONNECTIONSET_UPSTREAMENTRY._serialized_options = b'8\001' - _globals['_CONNECTIONSET']._serialized_start=105 - _globals['_CONNECTIONSET']._serialized_end=496 - _globals['_CONNECTIONSET_IDLIST']._serialized_start=272 - _globals['_CONNECTIONSET_IDLIST']._serialized_end=298 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_start=300 - _globals['_CONNECTIONSET_DOWNSTREAMENTRY']._serialized_end=398 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_start=400 - _globals['_CONNECTIONSET_UPSTREAMENTRY']._serialized_end=496 - _globals['_COMPILEDWORKFLOW']._serialized_start=499 - _globals['_COMPILEDWORKFLOW']._serialized_end=642 - _globals['_COMPILEDTASK']._serialized_start=644 - _globals['_COMPILEDTASK']._serialized_end=715 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_start=718 - _globals['_COMPILEDWORKFLOWCLOSURE']._serialized_end=923 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi deleted file mode 100644 index 509e8f4d58..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2.pyi +++ /dev/null @@ -1,59 +0,0 @@ -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ConnectionSet(_message.Message): - __slots__ = ["downstream", "upstream"] - class IdList(_message.Message): - __slots__ = ["ids"] - IDS_FIELD_NUMBER: _ClassVar[int] - ids: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ... - class DownstreamEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: ConnectionSet.IdList - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... - class UpstreamEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: ConnectionSet.IdList - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[ConnectionSet.IdList, _Mapping]] = ...) -> None: ... - DOWNSTREAM_FIELD_NUMBER: _ClassVar[int] - UPSTREAM_FIELD_NUMBER: _ClassVar[int] - downstream: _containers.MessageMap[str, ConnectionSet.IdList] - upstream: _containers.MessageMap[str, ConnectionSet.IdList] - def __init__(self, downstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ..., upstream: _Optional[_Mapping[str, ConnectionSet.IdList]] = ...) -> None: ... - -class CompiledWorkflow(_message.Message): - __slots__ = ["template", "connections"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - CONNECTIONS_FIELD_NUMBER: _ClassVar[int] - template: _workflow_pb2.WorkflowTemplate - connections: ConnectionSet - def __init__(self, template: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., connections: _Optional[_Union[ConnectionSet, _Mapping]] = ...) -> None: ... - -class CompiledTask(_message.Message): - __slots__ = ["template"] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - template: _tasks_pb2.TaskTemplate - def __init__(self, template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ...) -> None: ... - -class CompiledWorkflowClosure(_message.Message): - __slots__ = ["primary", "sub_workflows", "tasks"] - PRIMARY_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOWS_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - primary: CompiledWorkflow - sub_workflows: _containers.RepeatedCompositeFieldContainer[CompiledWorkflow] - tasks: _containers.RepeatedCompositeFieldContainer[CompiledTask] - def __init__(self, primary: _Optional[_Union[CompiledWorkflow, _Mapping]] = ..., sub_workflows: _Optional[_Iterable[_Union[CompiledWorkflow, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[CompiledTask, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/compiler_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py deleted file mode 100644 index ffa115e024..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/condition.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/condition.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/literals.proto\"\x8f\x02\n\x14\x43omparisonExpression\x12H\n\x08operator\x18\x01 \x01(\x0e\x32,.flyteidl.core.ComparisonExpression.OperatorR\x08operator\x12\x35\n\nleft_value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.OperandR\tleftValue\x12\x37\n\x0bright_value\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.OperandR\nrightValue\"=\n\x08Operator\x12\x06\n\x02\x45Q\x10\x00\x12\x07\n\x03NEQ\x10\x01\x12\x06\n\x02GT\x10\x02\x12\x07\n\x03GTE\x10\x03\x12\x06\n\x02LT\x10\x04\x12\x07\n\x03LTE\x10\x05\"\x93\x01\n\x07Operand\x12<\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveB\x02\x18\x01H\x00R\tprimitive\x12\x12\n\x03var\x18\x02 \x01(\tH\x00R\x03var\x12/\n\x06scalar\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalarB\x05\n\x03val\"\xac\x01\n\x11\x42ooleanExpression\x12H\n\x0b\x63onjunction\x18\x01 \x01(\x0b\x32$.flyteidl.core.ConjunctionExpressionH\x00R\x0b\x63onjunction\x12\x45\n\ncomparison\x18\x02 \x01(\x0b\x32#.flyteidl.core.ComparisonExpressionH\x00R\ncomparisonB\x06\n\x04\x65xpr\"\xa5\x02\n\x15\x43onjunctionExpression\x12P\n\x08operator\x18\x01 \x01(\x0e\x32\x34.flyteidl.core.ConjunctionExpression.LogicalOperatorR\x08operator\x12I\n\x0fleft_expression\x18\x02 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0eleftExpression\x12K\n\x10right_expression\x18\x03 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\x0frightExpression\"\"\n\x0fLogicalOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x43onditionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.condition_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ConditionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _OPERAND.fields_by_name['primitive']._options = None - _OPERAND.fields_by_name['primitive']._serialized_options = b'\030\001' - _globals['_COMPARISONEXPRESSION']._serialized_start=79 - _globals['_COMPARISONEXPRESSION']._serialized_end=350 - _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_start=289 - _globals['_COMPARISONEXPRESSION_OPERATOR']._serialized_end=350 - _globals['_OPERAND']._serialized_start=353 - _globals['_OPERAND']._serialized_end=500 - _globals['_BOOLEANEXPRESSION']._serialized_start=503 - _globals['_BOOLEANEXPRESSION']._serialized_end=675 - _globals['_CONJUNCTIONEXPRESSION']._serialized_start=678 - _globals['_CONJUNCTIONEXPRESSION']._serialized_end=971 - _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_start=937 - _globals['_CONJUNCTIONEXPRESSION_LOGICALOPERATOR']._serialized_end=971 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi deleted file mode 100644 index 4f4de63ad7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2.pyi +++ /dev/null @@ -1,65 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ComparisonExpression(_message.Message): - __slots__ = ["operator", "left_value", "right_value"] - class Operator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EQ: _ClassVar[ComparisonExpression.Operator] - NEQ: _ClassVar[ComparisonExpression.Operator] - GT: _ClassVar[ComparisonExpression.Operator] - GTE: _ClassVar[ComparisonExpression.Operator] - LT: _ClassVar[ComparisonExpression.Operator] - LTE: _ClassVar[ComparisonExpression.Operator] - EQ: ComparisonExpression.Operator - NEQ: ComparisonExpression.Operator - GT: ComparisonExpression.Operator - GTE: ComparisonExpression.Operator - LT: ComparisonExpression.Operator - LTE: ComparisonExpression.Operator - OPERATOR_FIELD_NUMBER: _ClassVar[int] - LEFT_VALUE_FIELD_NUMBER: _ClassVar[int] - RIGHT_VALUE_FIELD_NUMBER: _ClassVar[int] - operator: ComparisonExpression.Operator - left_value: Operand - right_value: Operand - def __init__(self, operator: _Optional[_Union[ComparisonExpression.Operator, str]] = ..., left_value: _Optional[_Union[Operand, _Mapping]] = ..., right_value: _Optional[_Union[Operand, _Mapping]] = ...) -> None: ... - -class Operand(_message.Message): - __slots__ = ["primitive", "var", "scalar"] - PRIMITIVE_FIELD_NUMBER: _ClassVar[int] - VAR_FIELD_NUMBER: _ClassVar[int] - SCALAR_FIELD_NUMBER: _ClassVar[int] - primitive: _literals_pb2.Primitive - var: str - scalar: _literals_pb2.Scalar - def __init__(self, primitive: _Optional[_Union[_literals_pb2.Primitive, _Mapping]] = ..., var: _Optional[str] = ..., scalar: _Optional[_Union[_literals_pb2.Scalar, _Mapping]] = ...) -> None: ... - -class BooleanExpression(_message.Message): - __slots__ = ["conjunction", "comparison"] - CONJUNCTION_FIELD_NUMBER: _ClassVar[int] - COMPARISON_FIELD_NUMBER: _ClassVar[int] - conjunction: ConjunctionExpression - comparison: ComparisonExpression - def __init__(self, conjunction: _Optional[_Union[ConjunctionExpression, _Mapping]] = ..., comparison: _Optional[_Union[ComparisonExpression, _Mapping]] = ...) -> None: ... - -class ConjunctionExpression(_message.Message): - __slots__ = ["operator", "left_expression", "right_expression"] - class LogicalOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - AND: _ClassVar[ConjunctionExpression.LogicalOperator] - OR: _ClassVar[ConjunctionExpression.LogicalOperator] - AND: ConjunctionExpression.LogicalOperator - OR: ConjunctionExpression.LogicalOperator - OPERATOR_FIELD_NUMBER: _ClassVar[int] - LEFT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - RIGHT_EXPRESSION_FIELD_NUMBER: _ClassVar[int] - operator: ConjunctionExpression.LogicalOperator - left_expression: BooleanExpression - right_expression: BooleanExpression - def __init__(self, operator: _Optional[_Union[ConjunctionExpression.LogicalOperator, str]] = ..., left_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ..., right_expression: _Optional[_Union[BooleanExpression, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/condition_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py deleted file mode 100644 index 583a11294e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/dynamic_job.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/core/dynamic_job.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x8a\x02\n\x0e\x44ynamicJobSpec\x12)\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12#\n\rmin_successes\x18\x02 \x01(\x03R\x0cminSuccesses\x12\x30\n\x07outputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x31\n\x05tasks\x18\x04 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasks\x12\x43\n\x0csubworkflows\x18\x05 \x03(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x0csubworkflowsB\xb5\x01\n\x11\x63om.flyteidl.coreB\x0f\x44ynamicJobProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.dynamic_job_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017DynamicJobProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_DYNAMICJOBSPEC']._serialized_start=138 - _globals['_DYNAMICJOBSPEC']._serialized_end=404 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi deleted file mode 100644 index 20ca83f300..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2.pyi +++ /dev/null @@ -1,23 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DynamicJobSpec(_message.Message): - __slots__ = ["nodes", "min_successes", "outputs", "tasks", "subworkflows"] - NODES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - SUBWORKFLOWS_FIELD_NUMBER: _ClassVar[int] - nodes: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.Node] - min_successes: int - outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] - subworkflows: _containers.RepeatedCompositeFieldContainer[_workflow_pb2.WorkflowTemplate] - def __init__(self, nodes: _Optional[_Iterable[_Union[_workflow_pb2.Node, _Mapping]]] = ..., min_successes: _Optional[int] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ..., subworkflows: _Optional[_Iterable[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/dynamic_job_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py deleted file mode 100644 index 68182fd259..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/errors.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/core/errors.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/execution.proto\"\xe5\x01\n\x0e\x43ontainerError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32\".flyteidl.core.ContainerError.KindR\x04kind\x12?\n\x06origin\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x06origin\",\n\x04Kind\x12\x13\n\x0fNON_RECOVERABLE\x10\x00\x12\x0f\n\x0bRECOVERABLE\x10\x01\"D\n\rErrorDocument\x12\x33\n\x05\x65rror\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.ContainerErrorR\x05\x65rrorB\xb1\x01\n\x11\x63om.flyteidl.coreB\x0b\x45rrorsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.errors_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\013ErrorsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_CONTAINERERROR']._serialized_start=77 - _globals['_CONTAINERERROR']._serialized_end=306 - _globals['_CONTAINERERROR_KIND']._serialized_start=262 - _globals['_CONTAINERERROR_KIND']._serialized_end=306 - _globals['_ERRORDOCUMENT']._serialized_start=308 - _globals['_ERRORDOCUMENT']._serialized_end=376 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi deleted file mode 100644 index b13aa40915..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ContainerError(_message.Message): - __slots__ = ["code", "message", "kind", "origin"] - class Kind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NON_RECOVERABLE: _ClassVar[ContainerError.Kind] - RECOVERABLE: _ClassVar[ContainerError.Kind] - NON_RECOVERABLE: ContainerError.Kind - RECOVERABLE: ContainerError.Kind - CODE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - ORIGIN_FIELD_NUMBER: _ClassVar[int] - code: str - message: str - kind: ContainerError.Kind - origin: _execution_pb2.ExecutionError.ErrorKind - def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., kind: _Optional[_Union[ContainerError.Kind, str]] = ..., origin: _Optional[_Union[_execution_pb2.ExecutionError.ErrorKind, str]] = ...) -> None: ... - -class ErrorDocument(_message.Message): - __slots__ = ["error"] - ERROR_FIELD_NUMBER: _ClassVar[int] - error: ContainerError - def __init__(self, error: _Optional[_Union[ContainerError, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/errors_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py deleted file mode 100644 index c2c9810083..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/execution.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/execution.proto\x12\rflyteidl.core\x1a\x1egoogle/protobuf/duration.proto\"\xa7\x01\n\x11WorkflowExecution\"\x91\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nSUCCEEDING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x12\x0b\n\x07\x46\x41ILING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0b\n\x07\x41\x42ORTED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x0c\n\x08\x41\x42ORTING\x10\t\"\xb6\x01\n\rNodeExecution\"\xa4\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x46\x41ILING\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0b\n\x07\x41\x42ORTED\x10\x06\x12\x0b\n\x07SKIPPED\x10\x07\x12\r\n\tTIMED_OUT\x10\x08\x12\x13\n\x0f\x44YNAMIC_RUNNING\x10\t\x12\r\n\tRECOVERED\x10\n\"\x96\x01\n\rTaskExecution\"\x84\x01\n\x05Phase\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06QUEUED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0b\n\x07\x41\x42ORTED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x10\n\x0cINITIALIZING\x10\x06\x12\x19\n\x15WAITING_FOR_RESOURCES\x10\x07\"\xc8\x01\n\x0e\x45xecutionError\x12\x12\n\x04\x63ode\x18\x01 \x01(\tR\x04\x63ode\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message\x12\x1b\n\terror_uri\x18\x03 \x01(\tR\x08\x65rrorUri\x12;\n\x04kind\x18\x04 \x01(\x0e\x32\'.flyteidl.core.ExecutionError.ErrorKindR\x04kind\".\n\tErrorKind\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04USER\x10\x01\x12\n\n\x06SYSTEM\x10\x02\"\xda\x01\n\x07TaskLog\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12K\n\x0emessage_format\x18\x03 \x01(\x0e\x32$.flyteidl.core.TaskLog.MessageFormatR\rmessageFormat\x12+\n\x03ttl\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x03ttl\"/\n\rMessageFormat\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43SV\x10\x01\x12\x08\n\x04JSON\x10\x02\"Z\n\x14QualityOfServiceSpec\x12\x42\n\x0fqueueing_budget\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x0equeueingBudget\"\xce\x01\n\x10QualityOfService\x12:\n\x04tier\x18\x01 \x01(\x0e\x32$.flyteidl.core.QualityOfService.TierH\x00R\x04tier\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32#.flyteidl.core.QualityOfServiceSpecH\x00R\x04spec\"4\n\x04Tier\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04HIGH\x10\x01\x12\n\n\x06MEDIUM\x10\x02\x12\x07\n\x03LOW\x10\x03\x42\r\n\x0b\x64\x65signationB\xb4\x01\n\x11\x63om.flyteidl.coreB\x0e\x45xecutionProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.execution_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016ExecutionProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_WORKFLOWEXECUTION']._serialized_start=81 - _globals['_WORKFLOWEXECUTION']._serialized_end=248 - _globals['_WORKFLOWEXECUTION_PHASE']._serialized_start=103 - _globals['_WORKFLOWEXECUTION_PHASE']._serialized_end=248 - _globals['_NODEEXECUTION']._serialized_start=251 - _globals['_NODEEXECUTION']._serialized_end=433 - _globals['_NODEEXECUTION_PHASE']._serialized_start=269 - _globals['_NODEEXECUTION_PHASE']._serialized_end=433 - _globals['_TASKEXECUTION']._serialized_start=436 - _globals['_TASKEXECUTION']._serialized_end=586 - _globals['_TASKEXECUTION_PHASE']._serialized_start=454 - _globals['_TASKEXECUTION_PHASE']._serialized_end=586 - _globals['_EXECUTIONERROR']._serialized_start=589 - _globals['_EXECUTIONERROR']._serialized_end=789 - _globals['_EXECUTIONERROR_ERRORKIND']._serialized_start=743 - _globals['_EXECUTIONERROR_ERRORKIND']._serialized_end=789 - _globals['_TASKLOG']._serialized_start=792 - _globals['_TASKLOG']._serialized_end=1010 - _globals['_TASKLOG_MESSAGEFORMAT']._serialized_start=963 - _globals['_TASKLOG_MESSAGEFORMAT']._serialized_end=1010 - _globals['_QUALITYOFSERVICESPEC']._serialized_start=1012 - _globals['_QUALITYOFSERVICESPEC']._serialized_end=1102 - _globals['_QUALITYOFSERVICE']._serialized_start=1105 - _globals['_QUALITYOFSERVICE']._serialized_end=1311 - _globals['_QUALITYOFSERVICE_TIER']._serialized_start=1244 - _globals['_QUALITYOFSERVICE_TIER']._serialized_end=1296 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi deleted file mode 100644 index 2508c1b4ac..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2.pyi +++ /dev/null @@ -1,147 +0,0 @@ -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[WorkflowExecution.Phase] - QUEUED: _ClassVar[WorkflowExecution.Phase] - RUNNING: _ClassVar[WorkflowExecution.Phase] - SUCCEEDING: _ClassVar[WorkflowExecution.Phase] - SUCCEEDED: _ClassVar[WorkflowExecution.Phase] - FAILING: _ClassVar[WorkflowExecution.Phase] - FAILED: _ClassVar[WorkflowExecution.Phase] - ABORTED: _ClassVar[WorkflowExecution.Phase] - TIMED_OUT: _ClassVar[WorkflowExecution.Phase] - ABORTING: _ClassVar[WorkflowExecution.Phase] - UNDEFINED: WorkflowExecution.Phase - QUEUED: WorkflowExecution.Phase - RUNNING: WorkflowExecution.Phase - SUCCEEDING: WorkflowExecution.Phase - SUCCEEDED: WorkflowExecution.Phase - FAILING: WorkflowExecution.Phase - FAILED: WorkflowExecution.Phase - ABORTED: WorkflowExecution.Phase - TIMED_OUT: WorkflowExecution.Phase - ABORTING: WorkflowExecution.Phase - def __init__(self) -> None: ... - -class NodeExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[NodeExecution.Phase] - QUEUED: _ClassVar[NodeExecution.Phase] - RUNNING: _ClassVar[NodeExecution.Phase] - SUCCEEDED: _ClassVar[NodeExecution.Phase] - FAILING: _ClassVar[NodeExecution.Phase] - FAILED: _ClassVar[NodeExecution.Phase] - ABORTED: _ClassVar[NodeExecution.Phase] - SKIPPED: _ClassVar[NodeExecution.Phase] - TIMED_OUT: _ClassVar[NodeExecution.Phase] - DYNAMIC_RUNNING: _ClassVar[NodeExecution.Phase] - RECOVERED: _ClassVar[NodeExecution.Phase] - UNDEFINED: NodeExecution.Phase - QUEUED: NodeExecution.Phase - RUNNING: NodeExecution.Phase - SUCCEEDED: NodeExecution.Phase - FAILING: NodeExecution.Phase - FAILED: NodeExecution.Phase - ABORTED: NodeExecution.Phase - SKIPPED: NodeExecution.Phase - TIMED_OUT: NodeExecution.Phase - DYNAMIC_RUNNING: NodeExecution.Phase - RECOVERED: NodeExecution.Phase - def __init__(self) -> None: ... - -class TaskExecution(_message.Message): - __slots__ = [] - class Phase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[TaskExecution.Phase] - QUEUED: _ClassVar[TaskExecution.Phase] - RUNNING: _ClassVar[TaskExecution.Phase] - SUCCEEDED: _ClassVar[TaskExecution.Phase] - ABORTED: _ClassVar[TaskExecution.Phase] - FAILED: _ClassVar[TaskExecution.Phase] - INITIALIZING: _ClassVar[TaskExecution.Phase] - WAITING_FOR_RESOURCES: _ClassVar[TaskExecution.Phase] - UNDEFINED: TaskExecution.Phase - QUEUED: TaskExecution.Phase - RUNNING: TaskExecution.Phase - SUCCEEDED: TaskExecution.Phase - ABORTED: TaskExecution.Phase - FAILED: TaskExecution.Phase - INITIALIZING: TaskExecution.Phase - WAITING_FOR_RESOURCES: TaskExecution.Phase - def __init__(self) -> None: ... - -class ExecutionError(_message.Message): - __slots__ = ["code", "message", "error_uri", "kind"] - class ErrorKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[ExecutionError.ErrorKind] - USER: _ClassVar[ExecutionError.ErrorKind] - SYSTEM: _ClassVar[ExecutionError.ErrorKind] - UNKNOWN: ExecutionError.ErrorKind - USER: ExecutionError.ErrorKind - SYSTEM: ExecutionError.ErrorKind - CODE_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - ERROR_URI_FIELD_NUMBER: _ClassVar[int] - KIND_FIELD_NUMBER: _ClassVar[int] - code: str - message: str - error_uri: str - kind: ExecutionError.ErrorKind - def __init__(self, code: _Optional[str] = ..., message: _Optional[str] = ..., error_uri: _Optional[str] = ..., kind: _Optional[_Union[ExecutionError.ErrorKind, str]] = ...) -> None: ... - -class TaskLog(_message.Message): - __slots__ = ["uri", "name", "message_format", "ttl"] - class MessageFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[TaskLog.MessageFormat] - CSV: _ClassVar[TaskLog.MessageFormat] - JSON: _ClassVar[TaskLog.MessageFormat] - UNKNOWN: TaskLog.MessageFormat - CSV: TaskLog.MessageFormat - JSON: TaskLog.MessageFormat - URI_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FORMAT_FIELD_NUMBER: _ClassVar[int] - TTL_FIELD_NUMBER: _ClassVar[int] - uri: str - name: str - message_format: TaskLog.MessageFormat - ttl: _duration_pb2.Duration - def __init__(self, uri: _Optional[str] = ..., name: _Optional[str] = ..., message_format: _Optional[_Union[TaskLog.MessageFormat, str]] = ..., ttl: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class QualityOfServiceSpec(_message.Message): - __slots__ = ["queueing_budget"] - QUEUEING_BUDGET_FIELD_NUMBER: _ClassVar[int] - queueing_budget: _duration_pb2.Duration - def __init__(self, queueing_budget: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class QualityOfService(_message.Message): - __slots__ = ["tier", "spec"] - class Tier(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[QualityOfService.Tier] - HIGH: _ClassVar[QualityOfService.Tier] - MEDIUM: _ClassVar[QualityOfService.Tier] - LOW: _ClassVar[QualityOfService.Tier] - UNDEFINED: QualityOfService.Tier - HIGH: QualityOfService.Tier - MEDIUM: QualityOfService.Tier - LOW: QualityOfService.Tier - TIER_FIELD_NUMBER: _ClassVar[int] - SPEC_FIELD_NUMBER: _ClassVar[int] - tier: QualityOfService.Tier - spec: QualityOfServiceSpec - def __init__(self, tier: _Optional[_Union[QualityOfService.Tier, str]] = ..., spec: _Optional[_Union[QualityOfServiceSpec, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/execution_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py deleted file mode 100644 index bcb507c1cb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.py +++ /dev/null @@ -1,37 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/identifier.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/core/identifier.proto\x12\rflyteidl.core\"\xae\x01\n\nIdentifier\x12@\n\rresource_type\x18\x01 \x01(\x0e\x32\x1b.flyteidl.core.ResourceTypeR\x0cresourceType\x12\x18\n\x07project\x18\x02 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\x12\x18\n\x07version\x18\x05 \x01(\tR\x07version\"c\n\x1bWorkflowExecutionIdentifier\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x12\n\x04name\x18\x04 \x01(\tR\x04name\"\x81\x01\n\x17NodeExecutionIdentifier\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xc6\x01\n\x17TaskExecutionIdentifier\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12R\n\x11node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x0fnodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\"~\n\x10SignalIdentifier\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12M\n\x0c\x65xecution_id\x18\x02 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId*U\n\x0cResourceType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\x08\n\x04TASK\x10\x01\x12\x0c\n\x08WORKFLOW\x10\x02\x12\x0f\n\x0bLAUNCH_PLAN\x10\x03\x12\x0b\n\x07\x44\x41TASET\x10\x04\x42\xb5\x01\n\x11\x63om.flyteidl.coreB\x0fIdentifierProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.identifier_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\017IdentifierProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_RESOURCETYPE']._serialized_start=788 - _globals['_RESOURCETYPE']._serialized_end=873 - _globals['_IDENTIFIER']._serialized_start=50 - _globals['_IDENTIFIER']._serialized_end=224 - _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_start=226 - _globals['_WORKFLOWEXECUTIONIDENTIFIER']._serialized_end=325 - _globals['_NODEEXECUTIONIDENTIFIER']._serialized_start=328 - _globals['_NODEEXECUTIONIDENTIFIER']._serialized_end=457 - _globals['_TASKEXECUTIONIDENTIFIER']._serialized_start=460 - _globals['_TASKEXECUTIONIDENTIFIER']._serialized_end=658 - _globals['_SIGNALIDENTIFIER']._serialized_start=660 - _globals['_SIGNALIDENTIFIER']._serialized_end=786 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi deleted file mode 100644 index 7adea46343..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2.pyi +++ /dev/null @@ -1,69 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ResourceType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNSPECIFIED: _ClassVar[ResourceType] - TASK: _ClassVar[ResourceType] - WORKFLOW: _ClassVar[ResourceType] - LAUNCH_PLAN: _ClassVar[ResourceType] - DATASET: _ClassVar[ResourceType] -UNSPECIFIED: ResourceType -TASK: ResourceType -WORKFLOW: ResourceType -LAUNCH_PLAN: ResourceType -DATASET: ResourceType - -class Identifier(_message.Message): - __slots__ = ["resource_type", "project", "domain", "name", "version"] - RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - resource_type: ResourceType - project: str - domain: str - name: str - version: str - def __init__(self, resource_type: _Optional[_Union[ResourceType, str]] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ... - -class WorkflowExecutionIdentifier(_message.Message): - __slots__ = ["project", "domain", "name"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - name: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ... - -class NodeExecutionIdentifier(_message.Message): - __slots__ = ["node_id", "execution_id"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - node_id: str - execution_id: WorkflowExecutionIdentifier - def __init__(self, node_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskExecutionIdentifier(_message.Message): - __slots__ = ["task_id", "node_execution_id", "retry_attempt"] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - task_id: Identifier - node_execution_id: NodeExecutionIdentifier - retry_attempt: int - def __init__(self, task_id: _Optional[_Union[Identifier, _Mapping]] = ..., node_execution_id: _Optional[_Union[NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ...) -> None: ... - -class SignalIdentifier(_message.Message): - __slots__ = ["signal_id", "execution_id"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - signal_id: str - execution_id: WorkflowExecutionIdentifier - def __init__(self, signal_id: _Optional[str] = ..., execution_id: _Optional[_Union[WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/identifier_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py deleted file mode 100644 index 5a35294103..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/interface.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/core/interface.proto\x12\rflyteidl.core\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\"\xe6\x01\n\x08Variable\x12.\n\x04type\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12I\n\x13\x61rtifact_partial_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x11\x61rtifactPartialId\x12=\n\x0c\x61rtifact_tag\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.ArtifactTagR\x0b\x61rtifactTag\"\xad\x01\n\x0bVariableMap\x12G\n\tvariables\x18\x01 \x03(\x0b\x32).flyteidl.core.VariableMap.VariablesEntryR\tvariables\x1aU\n\x0eVariablesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x05value:\x02\x38\x01\"z\n\x0eTypedInterface\x12\x32\n\x06inputs\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x06inputs\x12\x34\n\x07outputs\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.VariableMapR\x07outputs\"\x99\x02\n\tParameter\x12)\n\x03var\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.VariableR\x03var\x12\x32\n\x07\x64\x65\x66\x61ult\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07\x64\x65\x66\x61ult\x12\x1c\n\x08required\x18\x03 \x01(\x08H\x00R\x08required\x12\x45\n\x0e\x61rtifact_query\x18\x04 \x01(\x0b\x32\x1c.flyteidl.core.ArtifactQueryH\x00R\rartifactQuery\x12<\n\x0b\x61rtifact_id\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.ArtifactIDH\x00R\nartifactIdB\n\n\x08\x62\x65havior\"\xb4\x01\n\x0cParameterMap\x12K\n\nparameters\x18\x01 \x03(\x0b\x32+.flyteidl.core.ParameterMap.ParametersEntryR\nparameters\x1aW\n\x0fParametersEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12.\n\x05value\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ParameterR\x05value:\x02\x38\x01\x42\xb4\x01\n\x11\x63om.flyteidl.coreB\x0eInterfaceProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.interface_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\016InterfaceProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _VARIABLEMAP_VARIABLESENTRY._options = None - _VARIABLEMAP_VARIABLESENTRY._serialized_options = b'8\001' - _PARAMETERMAP_PARAMETERSENTRY._options = None - _PARAMETERMAP_PARAMETERSENTRY._serialized_options = b'8\001' - _globals['_VARIABLE']._serialized_start=139 - _globals['_VARIABLE']._serialized_end=369 - _globals['_VARIABLEMAP']._serialized_start=372 - _globals['_VARIABLEMAP']._serialized_end=545 - _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_start=460 - _globals['_VARIABLEMAP_VARIABLESENTRY']._serialized_end=545 - _globals['_TYPEDINTERFACE']._serialized_start=547 - _globals['_TYPEDINTERFACE']._serialized_end=669 - _globals['_PARAMETER']._serialized_start=672 - _globals['_PARAMETER']._serialized_end=953 - _globals['_PARAMETERMAP']._serialized_start=956 - _globals['_PARAMETERMAP']._serialized_end=1136 - _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_start=1049 - _globals['_PARAMETERMAP_PARAMETERSENTRY']._serialized_end=1136 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi deleted file mode 100644 index ee3ac9c2b5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2.pyi +++ /dev/null @@ -1,69 +0,0 @@ -from flyteidl.core import types_pb2 as _types_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Variable(_message.Message): - __slots__ = ["type", "description", "artifact_partial_id", "artifact_tag"] - TYPE_FIELD_NUMBER: _ClassVar[int] - DESCRIPTION_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_PARTIAL_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_TAG_FIELD_NUMBER: _ClassVar[int] - type: _types_pb2.LiteralType - description: str - artifact_partial_id: _artifact_id_pb2.ArtifactID - artifact_tag: _artifact_id_pb2.ArtifactTag - def __init__(self, type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., description: _Optional[str] = ..., artifact_partial_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ..., artifact_tag: _Optional[_Union[_artifact_id_pb2.ArtifactTag, _Mapping]] = ...) -> None: ... - -class VariableMap(_message.Message): - __slots__ = ["variables"] - class VariablesEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Variable - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Variable, _Mapping]] = ...) -> None: ... - VARIABLES_FIELD_NUMBER: _ClassVar[int] - variables: _containers.MessageMap[str, Variable] - def __init__(self, variables: _Optional[_Mapping[str, Variable]] = ...) -> None: ... - -class TypedInterface(_message.Message): - __slots__ = ["inputs", "outputs"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - inputs: VariableMap - outputs: VariableMap - def __init__(self, inputs: _Optional[_Union[VariableMap, _Mapping]] = ..., outputs: _Optional[_Union[VariableMap, _Mapping]] = ...) -> None: ... - -class Parameter(_message.Message): - __slots__ = ["var", "default", "required", "artifact_query", "artifact_id"] - VAR_FIELD_NUMBER: _ClassVar[int] - DEFAULT_FIELD_NUMBER: _ClassVar[int] - REQUIRED_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_QUERY_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - var: Variable - default: _literals_pb2.Literal - required: bool - artifact_query: _artifact_id_pb2.ArtifactQuery - artifact_id: _artifact_id_pb2.ArtifactID - def __init__(self, var: _Optional[_Union[Variable, _Mapping]] = ..., default: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ..., required: bool = ..., artifact_query: _Optional[_Union[_artifact_id_pb2.ArtifactQuery, _Mapping]] = ..., artifact_id: _Optional[_Union[_artifact_id_pb2.ArtifactID, _Mapping]] = ...) -> None: ... - -class ParameterMap(_message.Message): - __slots__ = ["parameters"] - class ParametersEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Parameter - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Parameter, _Mapping]] = ...) -> None: ... - PARAMETERS_FIELD_NUMBER: _ClassVar[int] - parameters: _containers.MessageMap[str, Parameter] - def __init__(self, parameters: _Optional[_Mapping[str, Parameter]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/interface_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py deleted file mode 100644 index 77bc3ea3f0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.py +++ /dev/null @@ -1,81 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/literals.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/literals.proto\x12\rflyteidl.core\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x19\x66lyteidl/core/types.proto\"\x87\x02\n\tPrimitive\x12\x1a\n\x07integer\x18\x01 \x01(\x03H\x00R\x07integer\x12!\n\x0b\x66loat_value\x18\x02 \x01(\x01H\x00R\nfloatValue\x12#\n\x0cstring_value\x18\x03 \x01(\tH\x00R\x0bstringValue\x12\x1a\n\x07\x62oolean\x18\x04 \x01(\x08H\x00R\x07\x62oolean\x12\x38\n\x08\x64\x61tetime\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00R\x08\x64\x61tetime\x12\x37\n\x08\x64uration\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationH\x00R\x08\x64urationB\x07\n\x05value\"\x06\n\x04Void\"Q\n\x04\x42lob\x12\x37\n\x08metadata\x18\x01 \x01(\x0b\x32\x1b.flyteidl.core.BlobMetadataR\x08metadata\x12\x10\n\x03uri\x18\x03 \x01(\tR\x03uri\";\n\x0c\x42lobMetadata\x12+\n\x04type\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeR\x04type\"0\n\x06\x42inary\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05value\x12\x10\n\x03tag\x18\x02 \x01(\tR\x03tag\"I\n\x06Schema\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12-\n\x04type\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeR\x04type\"e\n\x05Union\x12,\n\x05value\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\"y\n\x19StructuredDatasetMetadata\x12\\\n\x17structured_dataset_type\x18\x01 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeR\x15structuredDatasetType\"k\n\x11StructuredDataset\x12\x10\n\x03uri\x18\x01 \x01(\tR\x03uri\x12\x44\n\x08metadata\x18\x02 \x01(\x0b\x32(.flyteidl.core.StructuredDatasetMetadataR\x08metadata\"\xf0\x03\n\x06Scalar\x12\x38\n\tprimitive\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.PrimitiveH\x00R\tprimitive\x12)\n\x04\x62lob\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.BlobH\x00R\x04\x62lob\x12/\n\x06\x62inary\x18\x03 \x01(\x0b\x32\x15.flyteidl.core.BinaryH\x00R\x06\x62inary\x12/\n\x06schema\x18\x04 \x01(\x0b\x32\x15.flyteidl.core.SchemaH\x00R\x06schema\x12\x32\n\tnone_type\x18\x05 \x01(\x0b\x32\x13.flyteidl.core.VoidH\x00R\x08noneType\x12,\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rror\x12\x33\n\x07generic\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructH\x00R\x07generic\x12Q\n\x12structured_dataset\x18\x08 \x01(\x0b\x32 .flyteidl.core.StructuredDatasetH\x00R\x11structuredDataset\x12,\n\x05union\x18\t \x01(\x0b\x32\x14.flyteidl.core.UnionH\x00R\x05unionB\x07\n\x05value\"\xc9\x02\n\x07Literal\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x42\n\ncollection\x18\x02 \x01(\x0b\x32 .flyteidl.core.LiteralCollectionH\x00R\ncollection\x12-\n\x03map\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\x03map\x12\x12\n\x04hash\x18\x04 \x01(\tR\x04hash\x12@\n\x08metadata\x18\x05 \x03(\x0b\x32$.flyteidl.core.Literal.MetadataEntryR\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x07\n\x05value\"G\n\x11LiteralCollection\x12\x32\n\x08literals\x18\x01 \x03(\x0b\x32\x16.flyteidl.core.LiteralR\x08literals\"\xa6\x01\n\nLiteralMap\x12\x43\n\x08literals\x18\x01 \x03(\x0b\x32\'.flyteidl.core.LiteralMap.LiteralsEntryR\x08literals\x1aS\n\rLiteralsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value:\x02\x38\x01\"O\n\x15\x42indingDataCollection\x12\x36\n\x08\x62indings\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.BindingDataR\x08\x62indings\"\xb2\x01\n\x0e\x42indingDataMap\x12G\n\x08\x62indings\x18\x01 \x03(\x0b\x32+.flyteidl.core.BindingDataMap.BindingsEntryR\x08\x62indings\x1aW\n\rBindingsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x05value:\x02\x38\x01\"G\n\tUnionInfo\x12:\n\ntargetType\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\ntargetType\"\xae\x02\n\x0b\x42indingData\x12/\n\x06scalar\x18\x01 \x01(\x0b\x32\x15.flyteidl.core.ScalarH\x00R\x06scalar\x12\x46\n\ncollection\x18\x02 \x01(\x0b\x32$.flyteidl.core.BindingDataCollectionH\x00R\ncollection\x12:\n\x07promise\x18\x03 \x01(\x0b\x32\x1e.flyteidl.core.OutputReferenceH\x00R\x07promise\x12\x31\n\x03map\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.BindingDataMapH\x00R\x03map\x12.\n\x05union\x18\x05 \x01(\x0b\x32\x18.flyteidl.core.UnionInfoR\x05unionB\x07\n\x05value\"Q\n\x07\x42inding\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x34\n\x07\x62inding\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.BindingDataR\x07\x62inding\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\")\n\rRetryStrategy\x12\x18\n\x07retries\x18\x05 \x01(\rR\x07retriesB\xb3\x01\n\x11\x63om.flyteidl.coreB\rLiteralsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.literals_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rLiteralsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _LITERAL_METADATAENTRY._options = None - _LITERAL_METADATAENTRY._serialized_options = b'8\001' - _LITERALMAP_LITERALSENTRY._options = None - _LITERALMAP_LITERALSENTRY._serialized_options = b'8\001' - _BINDINGDATAMAP_BINDINGSENTRY._options = None - _BINDINGDATAMAP_BINDINGSENTRY._serialized_options = b'8\001' - _globals['_PRIMITIVE']._serialized_start=170 - _globals['_PRIMITIVE']._serialized_end=433 - _globals['_VOID']._serialized_start=435 - _globals['_VOID']._serialized_end=441 - _globals['_BLOB']._serialized_start=443 - _globals['_BLOB']._serialized_end=524 - _globals['_BLOBMETADATA']._serialized_start=526 - _globals['_BLOBMETADATA']._serialized_end=585 - _globals['_BINARY']._serialized_start=587 - _globals['_BINARY']._serialized_end=635 - _globals['_SCHEMA']._serialized_start=637 - _globals['_SCHEMA']._serialized_end=710 - _globals['_UNION']._serialized_start=712 - _globals['_UNION']._serialized_end=813 - _globals['_STRUCTUREDDATASETMETADATA']._serialized_start=815 - _globals['_STRUCTUREDDATASETMETADATA']._serialized_end=936 - _globals['_STRUCTUREDDATASET']._serialized_start=938 - _globals['_STRUCTUREDDATASET']._serialized_end=1045 - _globals['_SCALAR']._serialized_start=1048 - _globals['_SCALAR']._serialized_end=1544 - _globals['_LITERAL']._serialized_start=1547 - _globals['_LITERAL']._serialized_end=1876 - _globals['_LITERAL_METADATAENTRY']._serialized_start=1808 - _globals['_LITERAL_METADATAENTRY']._serialized_end=1867 - _globals['_LITERALCOLLECTION']._serialized_start=1878 - _globals['_LITERALCOLLECTION']._serialized_end=1949 - _globals['_LITERALMAP']._serialized_start=1952 - _globals['_LITERALMAP']._serialized_end=2118 - _globals['_LITERALMAP_LITERALSENTRY']._serialized_start=2035 - _globals['_LITERALMAP_LITERALSENTRY']._serialized_end=2118 - _globals['_BINDINGDATACOLLECTION']._serialized_start=2120 - _globals['_BINDINGDATACOLLECTION']._serialized_end=2199 - _globals['_BINDINGDATAMAP']._serialized_start=2202 - _globals['_BINDINGDATAMAP']._serialized_end=2380 - _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_start=2293 - _globals['_BINDINGDATAMAP_BINDINGSENTRY']._serialized_end=2380 - _globals['_UNIONINFO']._serialized_start=2382 - _globals['_UNIONINFO']._serialized_end=2453 - _globals['_BINDINGDATA']._serialized_start=2456 - _globals['_BINDINGDATA']._serialized_end=2758 - _globals['_BINDING']._serialized_start=2760 - _globals['_BINDING']._serialized_end=2841 - _globals['_KEYVALUEPAIR']._serialized_start=2843 - _globals['_KEYVALUEPAIR']._serialized_end=2897 - _globals['_RETRYSTRATEGY']._serialized_start=2899 - _globals['_RETRYSTRATEGY']._serialized_end=2940 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi deleted file mode 100644 index 62622203bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2.pyi +++ /dev/null @@ -1,205 +0,0 @@ -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Primitive(_message.Message): - __slots__ = ["integer", "float_value", "string_value", "boolean", "datetime", "duration"] - INTEGER_FIELD_NUMBER: _ClassVar[int] - FLOAT_VALUE_FIELD_NUMBER: _ClassVar[int] - STRING_VALUE_FIELD_NUMBER: _ClassVar[int] - BOOLEAN_FIELD_NUMBER: _ClassVar[int] - DATETIME_FIELD_NUMBER: _ClassVar[int] - DURATION_FIELD_NUMBER: _ClassVar[int] - integer: int - float_value: float - string_value: str - boolean: bool - datetime: _timestamp_pb2.Timestamp - duration: _duration_pb2.Duration - def __init__(self, integer: _Optional[int] = ..., float_value: _Optional[float] = ..., string_value: _Optional[str] = ..., boolean: bool = ..., datetime: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class Void(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Blob(_message.Message): - __slots__ = ["metadata", "uri"] - METADATA_FIELD_NUMBER: _ClassVar[int] - URI_FIELD_NUMBER: _ClassVar[int] - metadata: BlobMetadata - uri: str - def __init__(self, metadata: _Optional[_Union[BlobMetadata, _Mapping]] = ..., uri: _Optional[str] = ...) -> None: ... - -class BlobMetadata(_message.Message): - __slots__ = ["type"] - TYPE_FIELD_NUMBER: _ClassVar[int] - type: _types_pb2.BlobType - def __init__(self, type: _Optional[_Union[_types_pb2.BlobType, _Mapping]] = ...) -> None: ... - -class Binary(_message.Message): - __slots__ = ["value", "tag"] - VALUE_FIELD_NUMBER: _ClassVar[int] - TAG_FIELD_NUMBER: _ClassVar[int] - value: bytes - tag: str - def __init__(self, value: _Optional[bytes] = ..., tag: _Optional[str] = ...) -> None: ... - -class Schema(_message.Message): - __slots__ = ["uri", "type"] - URI_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - uri: str - type: _types_pb2.SchemaType - def __init__(self, uri: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.SchemaType, _Mapping]] = ...) -> None: ... - -class Union(_message.Message): - __slots__ = ["value", "type"] - VALUE_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - value: Literal - type: _types_pb2.LiteralType - def __init__(self, value: _Optional[_Union[Literal, _Mapping]] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class StructuredDatasetMetadata(_message.Message): - __slots__ = ["structured_dataset_type"] - STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] - structured_dataset_type: _types_pb2.StructuredDatasetType - def __init__(self, structured_dataset_type: _Optional[_Union[_types_pb2.StructuredDatasetType, _Mapping]] = ...) -> None: ... - -class StructuredDataset(_message.Message): - __slots__ = ["uri", "metadata"] - URI_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - uri: str - metadata: StructuredDatasetMetadata - def __init__(self, uri: _Optional[str] = ..., metadata: _Optional[_Union[StructuredDatasetMetadata, _Mapping]] = ...) -> None: ... - -class Scalar(_message.Message): - __slots__ = ["primitive", "blob", "binary", "schema", "none_type", "error", "generic", "structured_dataset", "union"] - PRIMITIVE_FIELD_NUMBER: _ClassVar[int] - BLOB_FIELD_NUMBER: _ClassVar[int] - BINARY_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - NONE_TYPE_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - GENERIC_FIELD_NUMBER: _ClassVar[int] - STRUCTURED_DATASET_FIELD_NUMBER: _ClassVar[int] - UNION_FIELD_NUMBER: _ClassVar[int] - primitive: Primitive - blob: Blob - binary: Binary - schema: Schema - none_type: Void - error: _types_pb2.Error - generic: _struct_pb2.Struct - structured_dataset: StructuredDataset - union: Union - def __init__(self, primitive: _Optional[_Union[Primitive, _Mapping]] = ..., blob: _Optional[_Union[Blob, _Mapping]] = ..., binary: _Optional[_Union[Binary, _Mapping]] = ..., schema: _Optional[_Union[Schema, _Mapping]] = ..., none_type: _Optional[_Union[Void, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ..., generic: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., structured_dataset: _Optional[_Union[StructuredDataset, _Mapping]] = ..., union: _Optional[_Union[Union, _Mapping]] = ...) -> None: ... - -class Literal(_message.Message): - __slots__ = ["scalar", "collection", "map", "hash", "metadata"] - class MetadataEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - SCALAR_FIELD_NUMBER: _ClassVar[int] - COLLECTION_FIELD_NUMBER: _ClassVar[int] - MAP_FIELD_NUMBER: _ClassVar[int] - HASH_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - scalar: Scalar - collection: LiteralCollection - map: LiteralMap - hash: str - metadata: _containers.ScalarMap[str, str] - def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[LiteralCollection, _Mapping]] = ..., map: _Optional[_Union[LiteralMap, _Mapping]] = ..., hash: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class LiteralCollection(_message.Message): - __slots__ = ["literals"] - LITERALS_FIELD_NUMBER: _ClassVar[int] - literals: _containers.RepeatedCompositeFieldContainer[Literal] - def __init__(self, literals: _Optional[_Iterable[_Union[Literal, _Mapping]]] = ...) -> None: ... - -class LiteralMap(_message.Message): - __slots__ = ["literals"] - class LiteralsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: Literal - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Literal, _Mapping]] = ...) -> None: ... - LITERALS_FIELD_NUMBER: _ClassVar[int] - literals: _containers.MessageMap[str, Literal] - def __init__(self, literals: _Optional[_Mapping[str, Literal]] = ...) -> None: ... - -class BindingDataCollection(_message.Message): - __slots__ = ["bindings"] - BINDINGS_FIELD_NUMBER: _ClassVar[int] - bindings: _containers.RepeatedCompositeFieldContainer[BindingData] - def __init__(self, bindings: _Optional[_Iterable[_Union[BindingData, _Mapping]]] = ...) -> None: ... - -class BindingDataMap(_message.Message): - __slots__ = ["bindings"] - class BindingsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: BindingData - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... - BINDINGS_FIELD_NUMBER: _ClassVar[int] - bindings: _containers.MessageMap[str, BindingData] - def __init__(self, bindings: _Optional[_Mapping[str, BindingData]] = ...) -> None: ... - -class UnionInfo(_message.Message): - __slots__ = ["targetType"] - TARGETTYPE_FIELD_NUMBER: _ClassVar[int] - targetType: _types_pb2.LiteralType - def __init__(self, targetType: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ...) -> None: ... - -class BindingData(_message.Message): - __slots__ = ["scalar", "collection", "promise", "map", "union"] - SCALAR_FIELD_NUMBER: _ClassVar[int] - COLLECTION_FIELD_NUMBER: _ClassVar[int] - PROMISE_FIELD_NUMBER: _ClassVar[int] - MAP_FIELD_NUMBER: _ClassVar[int] - UNION_FIELD_NUMBER: _ClassVar[int] - scalar: Scalar - collection: BindingDataCollection - promise: _types_pb2.OutputReference - map: BindingDataMap - union: UnionInfo - def __init__(self, scalar: _Optional[_Union[Scalar, _Mapping]] = ..., collection: _Optional[_Union[BindingDataCollection, _Mapping]] = ..., promise: _Optional[_Union[_types_pb2.OutputReference, _Mapping]] = ..., map: _Optional[_Union[BindingDataMap, _Mapping]] = ..., union: _Optional[_Union[UnionInfo, _Mapping]] = ...) -> None: ... - -class Binding(_message.Message): - __slots__ = ["var", "binding"] - VAR_FIELD_NUMBER: _ClassVar[int] - BINDING_FIELD_NUMBER: _ClassVar[int] - var: str - binding: BindingData - def __init__(self, var: _Optional[str] = ..., binding: _Optional[_Union[BindingData, _Mapping]] = ...) -> None: ... - -class KeyValuePair(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class RetryStrategy(_message.Message): - __slots__ = ["retries"] - RETRIES_FIELD_NUMBER: _ClassVar[int] - retries: int - def __init__(self, retries: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/literals_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py deleted file mode 100644 index 1dc42f4b3c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/metrics.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/core/metrics.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa3\x03\n\x04Span\x12\x39\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartTime\x12\x35\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65ndTime\x12M\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierH\x00R\nworkflowId\x12\x41\n\x07node_id\x18\x04 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x06nodeId\x12\x41\n\x07task_id\x18\x05 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierH\x00R\x06taskId\x12#\n\x0coperation_id\x18\x06 \x01(\tH\x00R\x0boperationId\x12)\n\x05spans\x18\x07 \x03(\x0b\x32\x13.flyteidl.core.SpanR\x05spansB\x04\n\x02idB\xb2\x01\n\x11\x63om.flyteidl.coreB\x0cMetricsProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.metrics_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\014MetricsProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_SPAN']._serialized_start=112 - _globals['_SPAN']._serialized_end=531 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi deleted file mode 100644 index d529fd64e5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2.pyi +++ /dev/null @@ -1,26 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Span(_message.Message): - __slots__ = ["start_time", "end_time", "workflow_id", "node_id", "task_id", "operation_id", "spans"] - START_TIME_FIELD_NUMBER: _ClassVar[int] - END_TIME_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - OPERATION_ID_FIELD_NUMBER: _ClassVar[int] - SPANS_FIELD_NUMBER: _ClassVar[int] - start_time: _timestamp_pb2.Timestamp - end_time: _timestamp_pb2.Timestamp - workflow_id: _identifier_pb2.WorkflowExecutionIdentifier - node_id: _identifier_pb2.NodeExecutionIdentifier - task_id: _identifier_pb2.TaskExecutionIdentifier - operation_id: str - spans: _containers.RepeatedCompositeFieldContainer[Span] - def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., node_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., operation_id: _Optional[str] = ..., spans: _Optional[_Iterable[_Union[Span, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/metrics_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py deleted file mode 100644 index 023c8e4aa3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/security.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/security.proto\x12\rflyteidl.core\"\xd0\x01\n\x06Secret\x12\x14\n\x05group\x18\x01 \x01(\tR\x05group\x12#\n\rgroup_version\x18\x02 \x01(\tR\x0cgroupVersion\x12\x10\n\x03key\x18\x03 \x01(\tR\x03key\x12L\n\x11mount_requirement\x18\x04 \x01(\x0e\x32\x1f.flyteidl.core.Secret.MountTypeR\x10mountRequirement\"+\n\tMountType\x12\x07\n\x03\x41NY\x10\x00\x12\x0b\n\x07\x45NV_VAR\x10\x01\x12\x08\n\x04\x46ILE\x10\x02\"g\n\x0cOAuth2Client\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12:\n\rclient_secret\x18\x02 \x01(\x0b\x32\x15.flyteidl.core.SecretR\x0c\x63lientSecret\"\xc6\x01\n\x08Identity\x12\x19\n\x08iam_role\x18\x01 \x01(\tR\x07iamRole\x12.\n\x13k8s_service_account\x18\x02 \x01(\tR\x11k8sServiceAccount\x12@\n\roauth2_client\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x0coauth2Client\x12-\n\x12\x65xecution_identity\x18\x04 \x01(\tR\x11\x65xecutionIdentity\"\x96\x02\n\x12OAuth2TokenRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12:\n\x04type\x18\x02 \x01(\x0e\x32&.flyteidl.core.OAuth2TokenRequest.TypeR\x04type\x12\x33\n\x06\x63lient\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.OAuth2ClientR\x06\x63lient\x12\x34\n\x16idp_discovery_endpoint\x18\x04 \x01(\tR\x14idpDiscoveryEndpoint\x12%\n\x0etoken_endpoint\x18\x05 \x01(\tR\rtokenEndpoint\"\x1e\n\x04Type\x12\x16\n\x12\x43LIENT_CREDENTIALS\x10\x00\"\xad\x01\n\x0fSecurityContext\x12.\n\x06run_as\x18\x01 \x01(\x0b\x32\x17.flyteidl.core.IdentityR\x05runAs\x12/\n\x07secrets\x18\x02 \x03(\x0b\x32\x15.flyteidl.core.SecretR\x07secrets\x12\x39\n\x06tokens\x18\x03 \x03(\x0b\x32!.flyteidl.core.OAuth2TokenRequestR\x06tokensB\xb3\x01\n\x11\x63om.flyteidl.coreB\rSecurityProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.security_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rSecurityProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_SECRET']._serialized_start=48 - _globals['_SECRET']._serialized_end=256 - _globals['_SECRET_MOUNTTYPE']._serialized_start=213 - _globals['_SECRET_MOUNTTYPE']._serialized_end=256 - _globals['_OAUTH2CLIENT']._serialized_start=258 - _globals['_OAUTH2CLIENT']._serialized_end=361 - _globals['_IDENTITY']._serialized_start=364 - _globals['_IDENTITY']._serialized_end=562 - _globals['_OAUTH2TOKENREQUEST']._serialized_start=565 - _globals['_OAUTH2TOKENREQUEST']._serialized_end=843 - _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_start=813 - _globals['_OAUTH2TOKENREQUEST_TYPE']._serialized_end=843 - _globals['_SECURITYCONTEXT']._serialized_start=846 - _globals['_SECURITYCONTEXT']._serialized_end=1019 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi deleted file mode 100644 index 028f85204a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2.pyi +++ /dev/null @@ -1,75 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Secret(_message.Message): - __slots__ = ["group", "group_version", "key", "mount_requirement"] - class MountType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ANY: _ClassVar[Secret.MountType] - ENV_VAR: _ClassVar[Secret.MountType] - FILE: _ClassVar[Secret.MountType] - ANY: Secret.MountType - ENV_VAR: Secret.MountType - FILE: Secret.MountType - GROUP_FIELD_NUMBER: _ClassVar[int] - GROUP_VERSION_FIELD_NUMBER: _ClassVar[int] - KEY_FIELD_NUMBER: _ClassVar[int] - MOUNT_REQUIREMENT_FIELD_NUMBER: _ClassVar[int] - group: str - group_version: str - key: str - mount_requirement: Secret.MountType - def __init__(self, group: _Optional[str] = ..., group_version: _Optional[str] = ..., key: _Optional[str] = ..., mount_requirement: _Optional[_Union[Secret.MountType, str]] = ...) -> None: ... - -class OAuth2Client(_message.Message): - __slots__ = ["client_id", "client_secret"] - CLIENT_ID_FIELD_NUMBER: _ClassVar[int] - CLIENT_SECRET_FIELD_NUMBER: _ClassVar[int] - client_id: str - client_secret: Secret - def __init__(self, client_id: _Optional[str] = ..., client_secret: _Optional[_Union[Secret, _Mapping]] = ...) -> None: ... - -class Identity(_message.Message): - __slots__ = ["iam_role", "k8s_service_account", "oauth2_client", "execution_identity"] - IAM_ROLE_FIELD_NUMBER: _ClassVar[int] - K8S_SERVICE_ACCOUNT_FIELD_NUMBER: _ClassVar[int] - OAUTH2_CLIENT_FIELD_NUMBER: _ClassVar[int] - EXECUTION_IDENTITY_FIELD_NUMBER: _ClassVar[int] - iam_role: str - k8s_service_account: str - oauth2_client: OAuth2Client - execution_identity: str - def __init__(self, iam_role: _Optional[str] = ..., k8s_service_account: _Optional[str] = ..., oauth2_client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., execution_identity: _Optional[str] = ...) -> None: ... - -class OAuth2TokenRequest(_message.Message): - __slots__ = ["name", "type", "client", "idp_discovery_endpoint", "token_endpoint"] - class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CLIENT_CREDENTIALS: _ClassVar[OAuth2TokenRequest.Type] - CLIENT_CREDENTIALS: OAuth2TokenRequest.Type - NAME_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - CLIENT_FIELD_NUMBER: _ClassVar[int] - IDP_DISCOVERY_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - name: str - type: OAuth2TokenRequest.Type - client: OAuth2Client - idp_discovery_endpoint: str - token_endpoint: str - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[OAuth2TokenRequest.Type, str]] = ..., client: _Optional[_Union[OAuth2Client, _Mapping]] = ..., idp_discovery_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ...) -> None: ... - -class SecurityContext(_message.Message): - __slots__ = ["run_as", "secrets", "tokens"] - RUN_AS_FIELD_NUMBER: _ClassVar[int] - SECRETS_FIELD_NUMBER: _ClassVar[int] - TOKENS_FIELD_NUMBER: _ClassVar[int] - run_as: Identity - secrets: _containers.RepeatedCompositeFieldContainer[Secret] - tokens: _containers.RepeatedCompositeFieldContainer[OAuth2TokenRequest] - def __init__(self, run_as: _Optional[_Union[Identity, _Mapping]] = ..., secrets: _Optional[_Iterable[_Union[Secret, _Mapping]]] = ..., tokens: _Optional[_Iterable[_Union[OAuth2TokenRequest, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/security_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py deleted file mode 100644 index 6add4552b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.py +++ /dev/null @@ -1,91 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/tasks.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/tasks.proto\x12\rflyteidl.core\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xd0\x02\n\tResources\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x08requests\x12>\n\x06limits\x18\x02 \x03(\x0b\x32&.flyteidl.core.Resources.ResourceEntryR\x06limits\x1a`\n\rResourceEntry\x12\x39\n\x04name\x18\x01 \x01(\x0e\x32%.flyteidl.core.Resources.ResourceNameR\x04name\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"]\n\x0cResourceName\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x07\n\x03GPU\x10\x02\x12\n\n\x06MEMORY\x10\x03\x12\x0b\n\x07STORAGE\x10\x04\x12\x15\n\x11\x45PHEMERAL_STORAGE\x10\x05\"\x91\x01\n\x0eGPUAccelerator\x12\x16\n\x06\x64\x65vice\x18\x01 \x01(\tR\x06\x64\x65vice\x12&\n\runpartitioned\x18\x02 \x01(\x08H\x00R\runpartitioned\x12\'\n\x0epartition_size\x18\x03 \x01(\tH\x00R\rpartitionSizeB\x16\n\x14partition_size_value\"[\n\x11\x45xtendedResources\x12\x46\n\x0fgpu_accelerator\x18\x01 \x01(\x0b\x32\x1d.flyteidl.core.GPUAcceleratorR\x0egpuAccelerator\"\xac\x01\n\x0fRuntimeMetadata\x12>\n\x04type\x18\x01 \x01(\x0e\x32*.flyteidl.core.RuntimeMetadata.RuntimeTypeR\x04type\x12\x18\n\x07version\x18\x02 \x01(\tR\x07version\x12\x16\n\x06\x66lavor\x18\x03 \x01(\tR\x06\x66lavor\"\'\n\x0bRuntimeType\x12\t\n\x05OTHER\x10\x00\x12\r\n\tFLYTE_SDK\x10\x01\"\xac\x05\n\x0cTaskMetadata\x12\"\n\x0c\x64iscoverable\x18\x01 \x01(\x08R\x0c\x64iscoverable\x12\x38\n\x07runtime\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.RuntimeMetadataR\x07runtime\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12+\n\x11\x64iscovery_version\x18\x06 \x01(\tR\x10\x64iscoveryVersion\x12\x38\n\x18\x64\x65precated_error_message\x18\x07 \x01(\tR\x16\x64\x65precatedErrorMessage\x12&\n\rinterruptible\x18\x08 \x01(\x08H\x00R\rinterruptible\x12-\n\x12\x63\x61\x63he_serializable\x18\t \x01(\x08R\x11\x63\x61\x63heSerializable\x12%\n\x0egenerates_deck\x18\n \x01(\x08R\rgeneratesDeck\x12\x39\n\x04tags\x18\x0b \x03(\x0b\x32%.flyteidl.core.TaskMetadata.TagsEntryR\x04tags\x12*\n\x11pod_template_name\x18\x0c \x01(\tR\x0fpodTemplateName\x12\x35\n\x17\x63\x61\x63he_ignore_input_vars\x18\r \x03(\tR\x14\x63\x61\x63heIgnoreInputVars\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x15\n\x13interruptible_value\"\xd6\x05\n\x0cTaskTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12\x37\n\x08metadata\x18\x03 \x01(\x0b\x32\x1b.flyteidl.core.TaskMetadataR\x08metadata\x12;\n\tinterface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12/\n\x06\x63ustom\x18\x05 \x01(\x0b\x32\x17.google.protobuf.StructR\x06\x63ustom\x12\x38\n\tcontainer\x18\x06 \x01(\x0b\x32\x18.flyteidl.core.ContainerH\x00R\tcontainer\x12\x30\n\x07k8s_pod\x18\x11 \x01(\x0b\x32\x15.flyteidl.core.K8sPodH\x00R\x06k8sPod\x12&\n\x03sql\x18\x12 \x01(\x0b\x32\x12.flyteidl.core.SqlH\x00R\x03sql\x12*\n\x11task_type_version\x18\x07 \x01(\x05R\x0ftaskTypeVersion\x12I\n\x10security_context\x18\x08 \x01(\x0b\x32\x1e.flyteidl.core.SecurityContextR\x0fsecurityContext\x12O\n\x12\x65xtended_resources\x18\t \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResources\x12?\n\x06\x63onfig\x18\x10 \x03(\x0b\x32\'.flyteidl.core.TaskTemplate.ConfigEntryR\x06\x63onfig\x1a\x39\n\x0b\x43onfigEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x08\n\x06target\"6\n\rContainerPort\x12%\n\x0e\x63ontainer_port\x18\x01 \x01(\rR\rcontainerPort\"\xfc\x03\n\tContainer\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x18\n\x07\x63ommand\x18\x02 \x03(\tR\x07\x63ommand\x12\x12\n\x04\x61rgs\x18\x03 \x03(\tR\x04\x61rgs\x12\x36\n\tresources\x18\x04 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12-\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairR\x03\x65nv\x12\x37\n\x06\x63onfig\x18\x06 \x03(\x0b\x32\x1b.flyteidl.core.KeyValuePairB\x02\x18\x01R\x06\x63onfig\x12\x32\n\x05ports\x18\x07 \x03(\x0b\x32\x1c.flyteidl.core.ContainerPortR\x05ports\x12\x41\n\x0b\x64\x61ta_config\x18\t \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\x12I\n\x0c\x61rchitecture\x18\n \x01(\x0e\x32%.flyteidl.core.Container.ArchitectureR\x0c\x61rchitecture\"I\n\x0c\x41rchitecture\x12\x0b\n\x07UNKNOWN\x10\x00\x12\t\n\x05\x41MD64\x10\x01\x12\t\n\x05\x41RM64\x10\x02\x12\n\n\x06\x41RM_V6\x10\x03\x12\n\n\x06\x41RM_V7\x10\x04\"\xb5\x02\n\nIOStrategy\x12K\n\rdownload_mode\x18\x01 \x01(\x0e\x32&.flyteidl.core.IOStrategy.DownloadModeR\x0c\x64ownloadMode\x12\x45\n\x0bupload_mode\x18\x02 \x01(\x0e\x32$.flyteidl.core.IOStrategy.UploadModeR\nuploadMode\"L\n\x0c\x44ownloadMode\x12\x12\n\x0e\x44OWNLOAD_EAGER\x10\x00\x12\x13\n\x0f\x44OWNLOAD_STREAM\x10\x01\x12\x13\n\x0f\x44O_NOT_DOWNLOAD\x10\x02\"E\n\nUploadMode\x12\x12\n\x0eUPLOAD_ON_EXIT\x10\x00\x12\x10\n\x0cUPLOAD_EAGER\x10\x01\x12\x11\n\rDO_NOT_UPLOAD\x10\x02\"\xa7\x02\n\x11\x44\x61taLoadingConfig\x12\x18\n\x07\x65nabled\x18\x01 \x01(\x08R\x07\x65nabled\x12\x1d\n\ninput_path\x18\x02 \x01(\tR\tinputPath\x12\x1f\n\x0boutput_path\x18\x03 \x01(\tR\noutputPath\x12I\n\x06\x66ormat\x18\x04 \x01(\x0e\x32\x31.flyteidl.core.DataLoadingConfig.LiteralMapFormatR\x06\x66ormat\x12:\n\x0bio_strategy\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.IOStrategyR\nioStrategy\"1\n\x10LiteralMapFormat\x12\x08\n\x04JSON\x10\x00\x12\x08\n\x04YAML\x10\x01\x12\t\n\x05PROTO\x10\x02\"\xbd\x01\n\x06K8sPod\x12<\n\x08metadata\x18\x01 \x01(\x0b\x32 .flyteidl.core.K8sObjectMetadataR\x08metadata\x12\x32\n\x08pod_spec\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructR\x07podSpec\x12\x41\n\x0b\x64\x61ta_config\x18\x03 \x01(\x0b\x32 .flyteidl.core.DataLoadingConfigR\ndataConfig\"\xa9\x02\n\x11K8sObjectMetadata\x12\x44\n\x06labels\x18\x01 \x03(\x0b\x32,.flyteidl.core.K8sObjectMetadata.LabelsEntryR\x06labels\x12S\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x31.flyteidl.core.K8sObjectMetadata.AnnotationsEntryR\x0b\x61nnotations\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a>\n\x10\x41nnotationsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\x92\x01\n\x03Sql\x12\x1c\n\tstatement\x18\x01 \x01(\tR\tstatement\x12\x34\n\x07\x64ialect\x18\x02 \x01(\x0e\x32\x1a.flyteidl.core.Sql.DialectR\x07\x64ialect\"7\n\x07\x44ialect\x12\r\n\tUNDEFINED\x10\x00\x12\x08\n\x04\x41NSI\x10\x01\x12\x08\n\x04HIVE\x10\x02\x12\t\n\x05OTHER\x10\x03\x42\xb0\x01\n\x11\x63om.flyteidl.coreB\nTasksProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.tasks_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTasksProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _TASKMETADATA_TAGSENTRY._options = None - _TASKMETADATA_TAGSENTRY._serialized_options = b'8\001' - _TASKTEMPLATE_CONFIGENTRY._options = None - _TASKTEMPLATE_CONFIGENTRY._serialized_options = b'8\001' - _CONTAINER.fields_by_name['config']._options = None - _CONTAINER.fields_by_name['config']._serialized_options = b'\030\001' - _K8SOBJECTMETADATA_LABELSENTRY._options = None - _K8SOBJECTMETADATA_LABELSENTRY._serialized_options = b'8\001' - _K8SOBJECTMETADATA_ANNOTATIONSENTRY._options = None - _K8SOBJECTMETADATA_ANNOTATIONSENTRY._serialized_options = b'8\001' - _globals['_RESOURCES']._serialized_start=230 - _globals['_RESOURCES']._serialized_end=566 - _globals['_RESOURCES_RESOURCEENTRY']._serialized_start=375 - _globals['_RESOURCES_RESOURCEENTRY']._serialized_end=471 - _globals['_RESOURCES_RESOURCENAME']._serialized_start=473 - _globals['_RESOURCES_RESOURCENAME']._serialized_end=566 - _globals['_GPUACCELERATOR']._serialized_start=569 - _globals['_GPUACCELERATOR']._serialized_end=714 - _globals['_EXTENDEDRESOURCES']._serialized_start=716 - _globals['_EXTENDEDRESOURCES']._serialized_end=807 - _globals['_RUNTIMEMETADATA']._serialized_start=810 - _globals['_RUNTIMEMETADATA']._serialized_end=982 - _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_start=943 - _globals['_RUNTIMEMETADATA_RUNTIMETYPE']._serialized_end=982 - _globals['_TASKMETADATA']._serialized_start=985 - _globals['_TASKMETADATA']._serialized_end=1669 - _globals['_TASKMETADATA_TAGSENTRY']._serialized_start=1591 - _globals['_TASKMETADATA_TAGSENTRY']._serialized_end=1646 - _globals['_TASKTEMPLATE']._serialized_start=1672 - _globals['_TASKTEMPLATE']._serialized_end=2398 - _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_start=2331 - _globals['_TASKTEMPLATE_CONFIGENTRY']._serialized_end=2388 - _globals['_CONTAINERPORT']._serialized_start=2400 - _globals['_CONTAINERPORT']._serialized_end=2454 - _globals['_CONTAINER']._serialized_start=2457 - _globals['_CONTAINER']._serialized_end=2965 - _globals['_CONTAINER_ARCHITECTURE']._serialized_start=2892 - _globals['_CONTAINER_ARCHITECTURE']._serialized_end=2965 - _globals['_IOSTRATEGY']._serialized_start=2968 - _globals['_IOSTRATEGY']._serialized_end=3277 - _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_start=3130 - _globals['_IOSTRATEGY_DOWNLOADMODE']._serialized_end=3206 - _globals['_IOSTRATEGY_UPLOADMODE']._serialized_start=3208 - _globals['_IOSTRATEGY_UPLOADMODE']._serialized_end=3277 - _globals['_DATALOADINGCONFIG']._serialized_start=3280 - _globals['_DATALOADINGCONFIG']._serialized_end=3575 - _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_start=3526 - _globals['_DATALOADINGCONFIG_LITERALMAPFORMAT']._serialized_end=3575 - _globals['_K8SPOD']._serialized_start=3578 - _globals['_K8SPOD']._serialized_end=3767 - _globals['_K8SOBJECTMETADATA']._serialized_start=3770 - _globals['_K8SOBJECTMETADATA']._serialized_end=4067 - _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_start=3946 - _globals['_K8SOBJECTMETADATA_LABELSENTRY']._serialized_end=4003 - _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_start=4005 - _globals['_K8SOBJECTMETADATA_ANNOTATIONSENTRY']._serialized_end=4067 - _globals['_SQL']._serialized_start=4070 - _globals['_SQL']._serialized_end=4216 - _globals['_SQL_DIALECT']._serialized_start=4161 - _globals['_SQL_DIALECT']._serialized_end=4216 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi deleted file mode 100644 index 98d1792aee..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2.pyi +++ /dev/null @@ -1,280 +0,0 @@ -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Resources(_message.Message): - __slots__ = ["requests", "limits"] - class ResourceName(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[Resources.ResourceName] - CPU: _ClassVar[Resources.ResourceName] - GPU: _ClassVar[Resources.ResourceName] - MEMORY: _ClassVar[Resources.ResourceName] - STORAGE: _ClassVar[Resources.ResourceName] - EPHEMERAL_STORAGE: _ClassVar[Resources.ResourceName] - UNKNOWN: Resources.ResourceName - CPU: Resources.ResourceName - GPU: Resources.ResourceName - MEMORY: Resources.ResourceName - STORAGE: Resources.ResourceName - EPHEMERAL_STORAGE: Resources.ResourceName - class ResourceEntry(_message.Message): - __slots__ = ["name", "value"] - NAME_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - name: Resources.ResourceName - value: str - def __init__(self, name: _Optional[_Union[Resources.ResourceName, str]] = ..., value: _Optional[str] = ...) -> None: ... - REQUESTS_FIELD_NUMBER: _ClassVar[int] - LIMITS_FIELD_NUMBER: _ClassVar[int] - requests: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] - limits: _containers.RepeatedCompositeFieldContainer[Resources.ResourceEntry] - def __init__(self, requests: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ..., limits: _Optional[_Iterable[_Union[Resources.ResourceEntry, _Mapping]]] = ...) -> None: ... - -class GPUAccelerator(_message.Message): - __slots__ = ["device", "unpartitioned", "partition_size"] - DEVICE_FIELD_NUMBER: _ClassVar[int] - UNPARTITIONED_FIELD_NUMBER: _ClassVar[int] - PARTITION_SIZE_FIELD_NUMBER: _ClassVar[int] - device: str - unpartitioned: bool - partition_size: str - def __init__(self, device: _Optional[str] = ..., unpartitioned: bool = ..., partition_size: _Optional[str] = ...) -> None: ... - -class ExtendedResources(_message.Message): - __slots__ = ["gpu_accelerator"] - GPU_ACCELERATOR_FIELD_NUMBER: _ClassVar[int] - gpu_accelerator: GPUAccelerator - def __init__(self, gpu_accelerator: _Optional[_Union[GPUAccelerator, _Mapping]] = ...) -> None: ... - -class RuntimeMetadata(_message.Message): - __slots__ = ["type", "version", "flavor"] - class RuntimeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - OTHER: _ClassVar[RuntimeMetadata.RuntimeType] - FLYTE_SDK: _ClassVar[RuntimeMetadata.RuntimeType] - OTHER: RuntimeMetadata.RuntimeType - FLYTE_SDK: RuntimeMetadata.RuntimeType - TYPE_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - FLAVOR_FIELD_NUMBER: _ClassVar[int] - type: RuntimeMetadata.RuntimeType - version: str - flavor: str - def __init__(self, type: _Optional[_Union[RuntimeMetadata.RuntimeType, str]] = ..., version: _Optional[str] = ..., flavor: _Optional[str] = ...) -> None: ... - -class TaskMetadata(_message.Message): - __slots__ = ["discoverable", "runtime", "timeout", "retries", "discovery_version", "deprecated_error_message", "interruptible", "cache_serializable", "generates_deck", "tags", "pod_template_name", "cache_ignore_input_vars"] - class TagsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - DISCOVERABLE_FIELD_NUMBER: _ClassVar[int] - RUNTIME_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_FIELD_NUMBER: _ClassVar[int] - RETRIES_FIELD_NUMBER: _ClassVar[int] - DISCOVERY_VERSION_FIELD_NUMBER: _ClassVar[int] - DEPRECATED_ERROR_MESSAGE_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - CACHE_SERIALIZABLE_FIELD_NUMBER: _ClassVar[int] - GENERATES_DECK_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - POD_TEMPLATE_NAME_FIELD_NUMBER: _ClassVar[int] - CACHE_IGNORE_INPUT_VARS_FIELD_NUMBER: _ClassVar[int] - discoverable: bool - runtime: RuntimeMetadata - timeout: _duration_pb2.Duration - retries: _literals_pb2.RetryStrategy - discovery_version: str - deprecated_error_message: str - interruptible: bool - cache_serializable: bool - generates_deck: bool - tags: _containers.ScalarMap[str, str] - pod_template_name: str - cache_ignore_input_vars: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, discoverable: bool = ..., runtime: _Optional[_Union[RuntimeMetadata, _Mapping]] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., discovery_version: _Optional[str] = ..., deprecated_error_message: _Optional[str] = ..., interruptible: bool = ..., cache_serializable: bool = ..., generates_deck: bool = ..., tags: _Optional[_Mapping[str, str]] = ..., pod_template_name: _Optional[str] = ..., cache_ignore_input_vars: _Optional[_Iterable[str]] = ...) -> None: ... - -class TaskTemplate(_message.Message): - __slots__ = ["id", "type", "metadata", "interface", "custom", "container", "k8s_pod", "sql", "task_type_version", "security_context", "extended_resources", "config"] - class ConfigEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INTERFACE_FIELD_NUMBER: _ClassVar[int] - CUSTOM_FIELD_NUMBER: _ClassVar[int] - CONTAINER_FIELD_NUMBER: _ClassVar[int] - K8S_POD_FIELD_NUMBER: _ClassVar[int] - SQL_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_VERSION_FIELD_NUMBER: _ClassVar[int] - SECURITY_CONTEXT_FIELD_NUMBER: _ClassVar[int] - EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] - CONFIG_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - type: str - metadata: TaskMetadata - interface: _interface_pb2.TypedInterface - custom: _struct_pb2.Struct - container: Container - k8s_pod: K8sPod - sql: Sql - task_type_version: int - security_context: _security_pb2.SecurityContext - extended_resources: ExtendedResources - config: _containers.ScalarMap[str, str] - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., type: _Optional[str] = ..., metadata: _Optional[_Union[TaskMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., custom: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., container: _Optional[_Union[Container, _Mapping]] = ..., k8s_pod: _Optional[_Union[K8sPod, _Mapping]] = ..., sql: _Optional[_Union[Sql, _Mapping]] = ..., task_type_version: _Optional[int] = ..., security_context: _Optional[_Union[_security_pb2.SecurityContext, _Mapping]] = ..., extended_resources: _Optional[_Union[ExtendedResources, _Mapping]] = ..., config: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class ContainerPort(_message.Message): - __slots__ = ["container_port"] - CONTAINER_PORT_FIELD_NUMBER: _ClassVar[int] - container_port: int - def __init__(self, container_port: _Optional[int] = ...) -> None: ... - -class Container(_message.Message): - __slots__ = ["image", "command", "args", "resources", "env", "config", "ports", "data_config", "architecture"] - class Architecture(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNKNOWN: _ClassVar[Container.Architecture] - AMD64: _ClassVar[Container.Architecture] - ARM64: _ClassVar[Container.Architecture] - ARM_V6: _ClassVar[Container.Architecture] - ARM_V7: _ClassVar[Container.Architecture] - UNKNOWN: Container.Architecture - AMD64: Container.Architecture - ARM64: Container.Architecture - ARM_V6: Container.Architecture - ARM_V7: Container.Architecture - IMAGE_FIELD_NUMBER: _ClassVar[int] - COMMAND_FIELD_NUMBER: _ClassVar[int] - ARGS_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - ENV_FIELD_NUMBER: _ClassVar[int] - CONFIG_FIELD_NUMBER: _ClassVar[int] - PORTS_FIELD_NUMBER: _ClassVar[int] - DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - ARCHITECTURE_FIELD_NUMBER: _ClassVar[int] - image: str - command: _containers.RepeatedScalarFieldContainer[str] - args: _containers.RepeatedScalarFieldContainer[str] - resources: Resources - env: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - config: _containers.RepeatedCompositeFieldContainer[_literals_pb2.KeyValuePair] - ports: _containers.RepeatedCompositeFieldContainer[ContainerPort] - data_config: DataLoadingConfig - architecture: Container.Architecture - def __init__(self, image: _Optional[str] = ..., command: _Optional[_Iterable[str]] = ..., args: _Optional[_Iterable[str]] = ..., resources: _Optional[_Union[Resources, _Mapping]] = ..., env: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., config: _Optional[_Iterable[_Union[_literals_pb2.KeyValuePair, _Mapping]]] = ..., ports: _Optional[_Iterable[_Union[ContainerPort, _Mapping]]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ..., architecture: _Optional[_Union[Container.Architecture, str]] = ...) -> None: ... - -class IOStrategy(_message.Message): - __slots__ = ["download_mode", "upload_mode"] - class DownloadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DOWNLOAD_EAGER: _ClassVar[IOStrategy.DownloadMode] - DOWNLOAD_STREAM: _ClassVar[IOStrategy.DownloadMode] - DO_NOT_DOWNLOAD: _ClassVar[IOStrategy.DownloadMode] - DOWNLOAD_EAGER: IOStrategy.DownloadMode - DOWNLOAD_STREAM: IOStrategy.DownloadMode - DO_NOT_DOWNLOAD: IOStrategy.DownloadMode - class UploadMode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UPLOAD_ON_EXIT: _ClassVar[IOStrategy.UploadMode] - UPLOAD_EAGER: _ClassVar[IOStrategy.UploadMode] - DO_NOT_UPLOAD: _ClassVar[IOStrategy.UploadMode] - UPLOAD_ON_EXIT: IOStrategy.UploadMode - UPLOAD_EAGER: IOStrategy.UploadMode - DO_NOT_UPLOAD: IOStrategy.UploadMode - DOWNLOAD_MODE_FIELD_NUMBER: _ClassVar[int] - UPLOAD_MODE_FIELD_NUMBER: _ClassVar[int] - download_mode: IOStrategy.DownloadMode - upload_mode: IOStrategy.UploadMode - def __init__(self, download_mode: _Optional[_Union[IOStrategy.DownloadMode, str]] = ..., upload_mode: _Optional[_Union[IOStrategy.UploadMode, str]] = ...) -> None: ... - -class DataLoadingConfig(_message.Message): - __slots__ = ["enabled", "input_path", "output_path", "format", "io_strategy"] - class LiteralMapFormat(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - JSON: _ClassVar[DataLoadingConfig.LiteralMapFormat] - YAML: _ClassVar[DataLoadingConfig.LiteralMapFormat] - PROTO: _ClassVar[DataLoadingConfig.LiteralMapFormat] - JSON: DataLoadingConfig.LiteralMapFormat - YAML: DataLoadingConfig.LiteralMapFormat - PROTO: DataLoadingConfig.LiteralMapFormat - ENABLED_FIELD_NUMBER: _ClassVar[int] - INPUT_PATH_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PATH_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - IO_STRATEGY_FIELD_NUMBER: _ClassVar[int] - enabled: bool - input_path: str - output_path: str - format: DataLoadingConfig.LiteralMapFormat - io_strategy: IOStrategy - def __init__(self, enabled: bool = ..., input_path: _Optional[str] = ..., output_path: _Optional[str] = ..., format: _Optional[_Union[DataLoadingConfig.LiteralMapFormat, str]] = ..., io_strategy: _Optional[_Union[IOStrategy, _Mapping]] = ...) -> None: ... - -class K8sPod(_message.Message): - __slots__ = ["metadata", "pod_spec", "data_config"] - METADATA_FIELD_NUMBER: _ClassVar[int] - POD_SPEC_FIELD_NUMBER: _ClassVar[int] - DATA_CONFIG_FIELD_NUMBER: _ClassVar[int] - metadata: K8sObjectMetadata - pod_spec: _struct_pb2.Struct - data_config: DataLoadingConfig - def __init__(self, metadata: _Optional[_Union[K8sObjectMetadata, _Mapping]] = ..., pod_spec: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., data_config: _Optional[_Union[DataLoadingConfig, _Mapping]] = ...) -> None: ... - -class K8sObjectMetadata(_message.Message): - __slots__ = ["labels", "annotations"] - class LabelsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class AnnotationsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - LABELS_FIELD_NUMBER: _ClassVar[int] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - labels: _containers.ScalarMap[str, str] - annotations: _containers.ScalarMap[str, str] - def __init__(self, labels: _Optional[_Mapping[str, str]] = ..., annotations: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class Sql(_message.Message): - __slots__ = ["statement", "dialect"] - class Dialect(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - UNDEFINED: _ClassVar[Sql.Dialect] - ANSI: _ClassVar[Sql.Dialect] - HIVE: _ClassVar[Sql.Dialect] - OTHER: _ClassVar[Sql.Dialect] - UNDEFINED: Sql.Dialect - ANSI: Sql.Dialect - HIVE: Sql.Dialect - OTHER: Sql.Dialect - STATEMENT_FIELD_NUMBER: _ClassVar[int] - DIALECT_FIELD_NUMBER: _ClassVar[int] - statement: str - dialect: Sql.Dialect - def __init__(self, statement: _Optional[str] = ..., dialect: _Optional[_Union[Sql.Dialect, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/tasks_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py deleted file mode 100644 index 3043a0cf6b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/types.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19\x66lyteidl/core/types.proto\x12\rflyteidl.core\x1a\x1cgoogle/protobuf/struct.proto\"\xa1\x02\n\nSchemaType\x12@\n\x07\x63olumns\x18\x03 \x03(\x0b\x32&.flyteidl.core.SchemaType.SchemaColumnR\x07\x63olumns\x1a\xd0\x01\n\x0cSchemaColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12K\n\x04type\x18\x02 \x01(\x0e\x32\x37.flyteidl.core.SchemaType.SchemaColumn.SchemaColumnTypeR\x04type\"_\n\x10SchemaColumnType\x12\x0b\n\x07INTEGER\x10\x00\x12\t\n\x05\x46LOAT\x10\x01\x12\n\n\x06STRING\x10\x02\x12\x0b\n\x07\x42OOLEAN\x10\x03\x12\x0c\n\x08\x44\x41TETIME\x10\x04\x12\x0c\n\x08\x44URATION\x10\x05\"\xc7\x02\n\x15StructuredDatasetType\x12L\n\x07\x63olumns\x18\x01 \x03(\x0b\x32\x32.flyteidl.core.StructuredDatasetType.DatasetColumnR\x07\x63olumns\x12\x16\n\x06\x66ormat\x18\x02 \x01(\tR\x06\x66ormat\x12\x30\n\x14\x65xternal_schema_type\x18\x03 \x01(\tR\x12\x65xternalSchemaType\x12\x32\n\x15\x65xternal_schema_bytes\x18\x04 \x01(\x0cR\x13\x65xternalSchemaBytes\x1a\x62\n\rDatasetColumn\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12=\n\x0cliteral_type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x0bliteralType\"\xa7\x01\n\x08\x42lobType\x12\x16\n\x06\x66ormat\x18\x01 \x01(\tR\x06\x66ormat\x12R\n\x0e\x64imensionality\x18\x02 \x01(\x0e\x32*.flyteidl.core.BlobType.BlobDimensionalityR\x0e\x64imensionality\"/\n\x12\x42lobDimensionality\x12\n\n\x06SINGLE\x10\x00\x12\r\n\tMULTIPART\x10\x01\"\"\n\x08\x45numType\x12\x16\n\x06values\x18\x01 \x03(\tR\x06values\"C\n\tUnionType\x12\x36\n\x08variants\x18\x01 \x03(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x08variants\"\xd7\x01\n\rTypeStructure\x12\x10\n\x03tag\x18\x01 \x01(\tR\x03tag\x12V\n\x0e\x64\x61taclass_type\x18\x02 \x03(\x0b\x32/.flyteidl.core.TypeStructure.DataclassTypeEntryR\rdataclassType\x1a\\\n\x12\x44\x61taclassTypeEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x05value:\x02\x38\x01\"K\n\x0eTypeAnnotation\x12\x39\n\x0b\x61nnotations\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructR\x0b\x61nnotations\"\xbc\x05\n\x0bLiteralType\x12\x33\n\x06simple\x18\x01 \x01(\x0e\x32\x19.flyteidl.core.SimpleTypeH\x00R\x06simple\x12\x33\n\x06schema\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.SchemaTypeH\x00R\x06schema\x12\x45\n\x0f\x63ollection_type\x18\x03 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0e\x63ollectionType\x12\x42\n\x0emap_value_type\x18\x04 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeH\x00R\x0cmapValueType\x12-\n\x04\x62lob\x18\x05 \x01(\x0b\x32\x17.flyteidl.core.BlobTypeH\x00R\x04\x62lob\x12\x36\n\tenum_type\x18\x07 \x01(\x0b\x32\x17.flyteidl.core.EnumTypeH\x00R\x08\x65numType\x12^\n\x17structured_dataset_type\x18\x08 \x01(\x0b\x32$.flyteidl.core.StructuredDatasetTypeH\x00R\x15structuredDatasetType\x12\x39\n\nunion_type\x18\n \x01(\x0b\x32\x18.flyteidl.core.UnionTypeH\x00R\tunionType\x12\x33\n\x08metadata\x18\x06 \x01(\x0b\x32\x17.google.protobuf.StructR\x08metadata\x12=\n\nannotation\x18\t \x01(\x0b\x32\x1d.flyteidl.core.TypeAnnotationR\nannotation\x12:\n\tstructure\x18\x0b \x01(\x0b\x32\x1c.flyteidl.core.TypeStructureR\tstructureB\x06\n\x04type\"z\n\x0fOutputReference\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\x12\x10\n\x03var\x18\x02 \x01(\tR\x03var\x12<\n\tattr_path\x18\x03 \x03(\x0b\x32\x1f.flyteidl.core.PromiseAttributeR\x08\x61ttrPath\"_\n\x10PromiseAttribute\x12#\n\x0cstring_value\x18\x01 \x01(\tH\x00R\x0bstringValue\x12\x1d\n\tint_value\x18\x02 \x01(\x05H\x00R\x08intValueB\x07\n\x05value\"G\n\x05\x45rror\x12$\n\x0e\x66\x61iled_node_id\x18\x01 \x01(\tR\x0c\x66\x61iledNodeId\x12\x18\n\x07message\x18\x02 \x01(\tR\x07message*\x86\x01\n\nSimpleType\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07INTEGER\x10\x01\x12\t\n\x05\x46LOAT\x10\x02\x12\n\n\x06STRING\x10\x03\x12\x0b\n\x07\x42OOLEAN\x10\x04\x12\x0c\n\x08\x44\x41TETIME\x10\x05\x12\x0c\n\x08\x44URATION\x10\x06\x12\n\n\x06\x42INARY\x10\x07\x12\t\n\x05\x45RROR\x10\x08\x12\n\n\x06STRUCT\x10\tB\xb0\x01\n\x11\x63om.flyteidl.coreB\nTypesProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.types_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\nTypesProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _TYPESTRUCTURE_DATACLASSTYPEENTRY._options = None - _TYPESTRUCTURE_DATACLASSTYPEENTRY._serialized_options = b'8\001' - _globals['_SIMPLETYPE']._serialized_start=2264 - _globals['_SIMPLETYPE']._serialized_end=2398 - _globals['_SCHEMATYPE']._serialized_start=75 - _globals['_SCHEMATYPE']._serialized_end=364 - _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_start=156 - _globals['_SCHEMATYPE_SCHEMACOLUMN']._serialized_end=364 - _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_start=269 - _globals['_SCHEMATYPE_SCHEMACOLUMN_SCHEMACOLUMNTYPE']._serialized_end=364 - _globals['_STRUCTUREDDATASETTYPE']._serialized_start=367 - _globals['_STRUCTUREDDATASETTYPE']._serialized_end=694 - _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_start=596 - _globals['_STRUCTUREDDATASETTYPE_DATASETCOLUMN']._serialized_end=694 - _globals['_BLOBTYPE']._serialized_start=697 - _globals['_BLOBTYPE']._serialized_end=864 - _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_start=817 - _globals['_BLOBTYPE_BLOBDIMENSIONALITY']._serialized_end=864 - _globals['_ENUMTYPE']._serialized_start=866 - _globals['_ENUMTYPE']._serialized_end=900 - _globals['_UNIONTYPE']._serialized_start=902 - _globals['_UNIONTYPE']._serialized_end=969 - _globals['_TYPESTRUCTURE']._serialized_start=972 - _globals['_TYPESTRUCTURE']._serialized_end=1187 - _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_start=1095 - _globals['_TYPESTRUCTURE_DATACLASSTYPEENTRY']._serialized_end=1187 - _globals['_TYPEANNOTATION']._serialized_start=1189 - _globals['_TYPEANNOTATION']._serialized_end=1264 - _globals['_LITERALTYPE']._serialized_start=1267 - _globals['_LITERALTYPE']._serialized_end=1967 - _globals['_OUTPUTREFERENCE']._serialized_start=1969 - _globals['_OUTPUTREFERENCE']._serialized_end=2091 - _globals['_PROMISEATTRIBUTE']._serialized_start=2093 - _globals['_PROMISEATTRIBUTE']._serialized_end=2188 - _globals['_ERROR']._serialized_start=2190 - _globals['_ERROR']._serialized_end=2261 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi deleted file mode 100644 index 9028afabd5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2.pyi +++ /dev/null @@ -1,176 +0,0 @@ -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SimpleType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - NONE: _ClassVar[SimpleType] - INTEGER: _ClassVar[SimpleType] - FLOAT: _ClassVar[SimpleType] - STRING: _ClassVar[SimpleType] - BOOLEAN: _ClassVar[SimpleType] - DATETIME: _ClassVar[SimpleType] - DURATION: _ClassVar[SimpleType] - BINARY: _ClassVar[SimpleType] - ERROR: _ClassVar[SimpleType] - STRUCT: _ClassVar[SimpleType] -NONE: SimpleType -INTEGER: SimpleType -FLOAT: SimpleType -STRING: SimpleType -BOOLEAN: SimpleType -DATETIME: SimpleType -DURATION: SimpleType -BINARY: SimpleType -ERROR: SimpleType -STRUCT: SimpleType - -class SchemaType(_message.Message): - __slots__ = ["columns"] - class SchemaColumn(_message.Message): - __slots__ = ["name", "type"] - class SchemaColumnType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - INTEGER: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - FLOAT: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - STRING: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - BOOLEAN: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - DATETIME: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - DURATION: _ClassVar[SchemaType.SchemaColumn.SchemaColumnType] - INTEGER: SchemaType.SchemaColumn.SchemaColumnType - FLOAT: SchemaType.SchemaColumn.SchemaColumnType - STRING: SchemaType.SchemaColumn.SchemaColumnType - BOOLEAN: SchemaType.SchemaColumn.SchemaColumnType - DATETIME: SchemaType.SchemaColumn.SchemaColumnType - DURATION: SchemaType.SchemaColumn.SchemaColumnType - NAME_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - name: str - type: SchemaType.SchemaColumn.SchemaColumnType - def __init__(self, name: _Optional[str] = ..., type: _Optional[_Union[SchemaType.SchemaColumn.SchemaColumnType, str]] = ...) -> None: ... - COLUMNS_FIELD_NUMBER: _ClassVar[int] - columns: _containers.RepeatedCompositeFieldContainer[SchemaType.SchemaColumn] - def __init__(self, columns: _Optional[_Iterable[_Union[SchemaType.SchemaColumn, _Mapping]]] = ...) -> None: ... - -class StructuredDatasetType(_message.Message): - __slots__ = ["columns", "format", "external_schema_type", "external_schema_bytes"] - class DatasetColumn(_message.Message): - __slots__ = ["name", "literal_type"] - NAME_FIELD_NUMBER: _ClassVar[int] - LITERAL_TYPE_FIELD_NUMBER: _ClassVar[int] - name: str - literal_type: LiteralType - def __init__(self, name: _Optional[str] = ..., literal_type: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... - COLUMNS_FIELD_NUMBER: _ClassVar[int] - FORMAT_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_SCHEMA_TYPE_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_SCHEMA_BYTES_FIELD_NUMBER: _ClassVar[int] - columns: _containers.RepeatedCompositeFieldContainer[StructuredDatasetType.DatasetColumn] - format: str - external_schema_type: str - external_schema_bytes: bytes - def __init__(self, columns: _Optional[_Iterable[_Union[StructuredDatasetType.DatasetColumn, _Mapping]]] = ..., format: _Optional[str] = ..., external_schema_type: _Optional[str] = ..., external_schema_bytes: _Optional[bytes] = ...) -> None: ... - -class BlobType(_message.Message): - __slots__ = ["format", "dimensionality"] - class BlobDimensionality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - SINGLE: _ClassVar[BlobType.BlobDimensionality] - MULTIPART: _ClassVar[BlobType.BlobDimensionality] - SINGLE: BlobType.BlobDimensionality - MULTIPART: BlobType.BlobDimensionality - FORMAT_FIELD_NUMBER: _ClassVar[int] - DIMENSIONALITY_FIELD_NUMBER: _ClassVar[int] - format: str - dimensionality: BlobType.BlobDimensionality - def __init__(self, format: _Optional[str] = ..., dimensionality: _Optional[_Union[BlobType.BlobDimensionality, str]] = ...) -> None: ... - -class EnumType(_message.Message): - __slots__ = ["values"] - VALUES_FIELD_NUMBER: _ClassVar[int] - values: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, values: _Optional[_Iterable[str]] = ...) -> None: ... - -class UnionType(_message.Message): - __slots__ = ["variants"] - VARIANTS_FIELD_NUMBER: _ClassVar[int] - variants: _containers.RepeatedCompositeFieldContainer[LiteralType] - def __init__(self, variants: _Optional[_Iterable[_Union[LiteralType, _Mapping]]] = ...) -> None: ... - -class TypeStructure(_message.Message): - __slots__ = ["tag", "dataclass_type"] - class DataclassTypeEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: LiteralType - def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[LiteralType, _Mapping]] = ...) -> None: ... - TAG_FIELD_NUMBER: _ClassVar[int] - DATACLASS_TYPE_FIELD_NUMBER: _ClassVar[int] - tag: str - dataclass_type: _containers.MessageMap[str, LiteralType] - def __init__(self, tag: _Optional[str] = ..., dataclass_type: _Optional[_Mapping[str, LiteralType]] = ...) -> None: ... - -class TypeAnnotation(_message.Message): - __slots__ = ["annotations"] - ANNOTATIONS_FIELD_NUMBER: _ClassVar[int] - annotations: _struct_pb2.Struct - def __init__(self, annotations: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... - -class LiteralType(_message.Message): - __slots__ = ["simple", "schema", "collection_type", "map_value_type", "blob", "enum_type", "structured_dataset_type", "union_type", "metadata", "annotation", "structure"] - SIMPLE_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - COLLECTION_TYPE_FIELD_NUMBER: _ClassVar[int] - MAP_VALUE_TYPE_FIELD_NUMBER: _ClassVar[int] - BLOB_FIELD_NUMBER: _ClassVar[int] - ENUM_TYPE_FIELD_NUMBER: _ClassVar[int] - STRUCTURED_DATASET_TYPE_FIELD_NUMBER: _ClassVar[int] - UNION_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - ANNOTATION_FIELD_NUMBER: _ClassVar[int] - STRUCTURE_FIELD_NUMBER: _ClassVar[int] - simple: SimpleType - schema: SchemaType - collection_type: LiteralType - map_value_type: LiteralType - blob: BlobType - enum_type: EnumType - structured_dataset_type: StructuredDatasetType - union_type: UnionType - metadata: _struct_pb2.Struct - annotation: TypeAnnotation - structure: TypeStructure - def __init__(self, simple: _Optional[_Union[SimpleType, str]] = ..., schema: _Optional[_Union[SchemaType, _Mapping]] = ..., collection_type: _Optional[_Union[LiteralType, _Mapping]] = ..., map_value_type: _Optional[_Union[LiteralType, _Mapping]] = ..., blob: _Optional[_Union[BlobType, _Mapping]] = ..., enum_type: _Optional[_Union[EnumType, _Mapping]] = ..., structured_dataset_type: _Optional[_Union[StructuredDatasetType, _Mapping]] = ..., union_type: _Optional[_Union[UnionType, _Mapping]] = ..., metadata: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., annotation: _Optional[_Union[TypeAnnotation, _Mapping]] = ..., structure: _Optional[_Union[TypeStructure, _Mapping]] = ...) -> None: ... - -class OutputReference(_message.Message): - __slots__ = ["node_id", "var", "attr_path"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - VAR_FIELD_NUMBER: _ClassVar[int] - ATTR_PATH_FIELD_NUMBER: _ClassVar[int] - node_id: str - var: str - attr_path: _containers.RepeatedCompositeFieldContainer[PromiseAttribute] - def __init__(self, node_id: _Optional[str] = ..., var: _Optional[str] = ..., attr_path: _Optional[_Iterable[_Union[PromiseAttribute, _Mapping]]] = ...) -> None: ... - -class PromiseAttribute(_message.Message): - __slots__ = ["string_value", "int_value"] - STRING_VALUE_FIELD_NUMBER: _ClassVar[int] - INT_VALUE_FIELD_NUMBER: _ClassVar[int] - string_value: str - int_value: int - def __init__(self, string_value: _Optional[str] = ..., int_value: _Optional[int] = ...) -> None: ... - -class Error(_message.Message): - __slots__ = ["failed_node_id", "message"] - FAILED_NODE_ID_FIELD_NUMBER: _ClassVar[int] - MESSAGE_FIELD_NUMBER: _ClassVar[int] - failed_node_id: str - message: str - def __init__(self, failed_node_id: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/types_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py deleted file mode 100644 index e7a1b9ee93..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/workflow_closure.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import workflow_pb2 as flyteidl_dot_core_dot_workflow__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$flyteidl/core/workflow_closure.proto\x12\rflyteidl.core\x1a\x1c\x66lyteidl/core/workflow.proto\x1a\x19\x66lyteidl/core/tasks.proto\"\x81\x01\n\x0fWorkflowClosure\x12;\n\x08workflow\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowTemplateR\x08workflow\x12\x31\n\x05tasks\x18\x02 \x03(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x05tasksB\xba\x01\n\x11\x63om.flyteidl.coreB\x14WorkflowClosureProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_closure_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\024WorkflowClosureProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _globals['_WORKFLOWCLOSURE']._serialized_start=113 - _globals['_WORKFLOWCLOSURE']._serialized_end=242 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi deleted file mode 100644 index ae93cec11f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2.pyi +++ /dev/null @@ -1,16 +0,0 @@ -from flyteidl.core import workflow_pb2 as _workflow_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowClosure(_message.Message): - __slots__ = ["workflow", "tasks"] - WORKFLOW_FIELD_NUMBER: _ClassVar[int] - TASKS_FIELD_NUMBER: _ClassVar[int] - workflow: _workflow_pb2.WorkflowTemplate - tasks: _containers.RepeatedCompositeFieldContainer[_tasks_pb2.TaskTemplate] - def __init__(self, workflow: _Optional[_Union[_workflow_pb2.WorkflowTemplate, _Mapping]] = ..., tasks: _Optional[_Iterable[_Union[_tasks_pb2.TaskTemplate, _Mapping]]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_closure_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py deleted file mode 100644 index 8487a5170e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.py +++ /dev/null @@ -1,74 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/core/workflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import condition_pb2 as flyteidl_dot_core_dot_condition__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import types_pb2 as flyteidl_dot_core_dot_types__pb2 -from flyteidl.core import security_pb2 as flyteidl_dot_core_dot_security__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/core/workflow.proto\x12\rflyteidl.core\x1a\x1d\x66lyteidl/core/condition.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x19\x66lyteidl/core/types.proto\x1a\x1c\x66lyteidl/core/security.proto\x1a\x1egoogle/protobuf/duration.proto\"{\n\x07IfBlock\x12>\n\tcondition\x18\x01 \x01(\x0b\x32 .flyteidl.core.BooleanExpressionR\tcondition\x12\x30\n\tthen_node\x18\x02 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x08thenNode\"\xd4\x01\n\x0bIfElseBlock\x12*\n\x04\x63\x61se\x18\x01 \x01(\x0b\x32\x16.flyteidl.core.IfBlockR\x04\x63\x61se\x12,\n\x05other\x18\x02 \x03(\x0b\x32\x16.flyteidl.core.IfBlockR\x05other\x12\x32\n\telse_node\x18\x03 \x01(\x0b\x32\x13.flyteidl.core.NodeH\x00R\x08\x65lseNode\x12,\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x14.flyteidl.core.ErrorH\x00R\x05\x65rrorB\t\n\x07\x64\x65\x66\x61ult\"A\n\nBranchNode\x12\x33\n\x07if_else\x18\x01 \x01(\x0b\x32\x1a.flyteidl.core.IfElseBlockR\x06ifElse\"\x97\x01\n\x08TaskNode\x12>\n\x0creference_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0breferenceId\x12>\n\toverrides\x18\x02 \x01(\x0b\x32 .flyteidl.core.TaskNodeOverridesR\toverridesB\x0b\n\treference\"\xa6\x01\n\x0cWorkflowNode\x12\x42\n\x0elaunchplan_ref\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\rlaunchplanRef\x12\x45\n\x10sub_workflow_ref\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierH\x00R\x0esubWorkflowRefB\x0b\n\treference\"/\n\x10\x41pproveCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\"\x90\x01\n\x0fSignalCondition\x12\x1b\n\tsignal_id\x18\x01 \x01(\tR\x08signalId\x12.\n\x04type\x18\x02 \x01(\x0b\x32\x1a.flyteidl.core.LiteralTypeR\x04type\x12\x30\n\x14output_variable_name\x18\x03 \x01(\tR\x12outputVariableName\"G\n\x0eSleepCondition\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\"\xc5\x01\n\x08GateNode\x12;\n\x07\x61pprove\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.ApproveConditionH\x00R\x07\x61pprove\x12\x38\n\x06signal\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.SignalConditionH\x00R\x06signal\x12\x35\n\x05sleep\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.SleepConditionH\x00R\x05sleepB\x0b\n\tcondition\"\xbf\x01\n\tArrayNode\x12\'\n\x04node\x18\x01 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x04node\x12 \n\x0bparallelism\x18\x02 \x01(\rR\x0bparallelism\x12%\n\rmin_successes\x18\x03 \x01(\rH\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteria\"\xce\x01\n\x0cNodeMetadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x33\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\x07timeout\x12\x36\n\x07retries\x18\x05 \x01(\x0b\x32\x1c.flyteidl.core.RetryStrategyR\x07retries\x12&\n\rinterruptible\x18\x06 \x01(\x08H\x00R\rinterruptibleB\x15\n\x13interruptible_value\"/\n\x05\x41lias\x12\x10\n\x03var\x18\x01 \x01(\tR\x03var\x12\x14\n\x05\x61lias\x18\x02 \x01(\tR\x05\x61lias\"\x9f\x04\n\x04Node\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x37\n\x08metadata\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.NodeMetadataR\x08metadata\x12.\n\x06inputs\x18\x03 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x06inputs\x12*\n\x11upstream_node_ids\x18\x04 \x03(\tR\x0fupstreamNodeIds\x12;\n\x0eoutput_aliases\x18\x05 \x03(\x0b\x32\x14.flyteidl.core.AliasR\routputAliases\x12\x36\n\ttask_node\x18\x06 \x01(\x0b\x32\x17.flyteidl.core.TaskNodeH\x00R\x08taskNode\x12\x42\n\rworkflow_node\x18\x07 \x01(\x0b\x32\x1b.flyteidl.core.WorkflowNodeH\x00R\x0cworkflowNode\x12<\n\x0b\x62ranch_node\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.BranchNodeH\x00R\nbranchNode\x12\x36\n\tgate_node\x18\t \x01(\x0b\x32\x17.flyteidl.core.GateNodeH\x00R\x08gateNode\x12\x39\n\narray_node\x18\n \x01(\x0b\x32\x18.flyteidl.core.ArrayNodeH\x00R\tarrayNodeB\x08\n\x06target\"\xfc\x02\n\x10WorkflowMetadata\x12M\n\x12quality_of_service\x18\x01 \x01(\x0b\x32\x1f.flyteidl.core.QualityOfServiceR\x10qualityOfService\x12N\n\non_failure\x18\x02 \x01(\x0e\x32/.flyteidl.core.WorkflowMetadata.OnFailurePolicyR\tonFailure\x12=\n\x04tags\x18\x03 \x03(\x0b\x32).flyteidl.core.WorkflowMetadata.TagsEntryR\x04tags\x1a\x37\n\tTagsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"Q\n\x0fOnFailurePolicy\x12\x14\n\x10\x46\x41IL_IMMEDIATELY\x10\x00\x12(\n$FAIL_AFTER_EXECUTABLE_NODES_COMPLETE\x10\x01\"@\n\x18WorkflowMetadataDefaults\x12$\n\rinterruptible\x18\x01 \x01(\x08R\rinterruptible\"\xa2\x03\n\x10WorkflowTemplate\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12;\n\x08metadata\x18\x02 \x01(\x0b\x32\x1f.flyteidl.core.WorkflowMetadataR\x08metadata\x12;\n\tinterface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\tinterface\x12)\n\x05nodes\x18\x04 \x03(\x0b\x32\x13.flyteidl.core.NodeR\x05nodes\x12\x30\n\x07outputs\x18\x05 \x03(\x0b\x32\x16.flyteidl.core.BindingR\x07outputs\x12\x36\n\x0c\x66\x61ilure_node\x18\x06 \x01(\x0b\x32\x13.flyteidl.core.NodeR\x0b\x66\x61ilureNode\x12T\n\x11metadata_defaults\x18\x07 \x01(\x0b\x32\'.flyteidl.core.WorkflowMetadataDefaultsR\x10metadataDefaults\"\x9c\x01\n\x11TaskNodeOverrides\x12\x36\n\tresources\x18\x01 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x12\x65xtended_resources\x18\x02 \x01(\x0b\x32 .flyteidl.core.ExtendedResourcesR\x11\x65xtendedResourcesB\xb3\x01\n\x11\x63om.flyteidl.coreB\rWorkflowProtoP\x01Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\xa2\x02\x03\x46\x43X\xaa\x02\rFlyteidl.Core\xca\x02\rFlyteidl\\Core\xe2\x02\x19\x46lyteidl\\Core\\GPBMetadata\xea\x02\x0e\x46lyteidl::Coreb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.core.workflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\021com.flyteidl.coreB\rWorkflowProtoP\001Z:github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core\242\002\003FCX\252\002\rFlyteidl.Core\312\002\rFlyteidl\\Core\342\002\031Flyteidl\\Core\\GPBMetadata\352\002\016Flyteidl::Core' - _WORKFLOWMETADATA_TAGSENTRY._options = None - _WORKFLOWMETADATA_TAGSENTRY._serialized_options = b'8\001' - _globals['_IFBLOCK']._serialized_start=318 - _globals['_IFBLOCK']._serialized_end=441 - _globals['_IFELSEBLOCK']._serialized_start=444 - _globals['_IFELSEBLOCK']._serialized_end=656 - _globals['_BRANCHNODE']._serialized_start=658 - _globals['_BRANCHNODE']._serialized_end=723 - _globals['_TASKNODE']._serialized_start=726 - _globals['_TASKNODE']._serialized_end=877 - _globals['_WORKFLOWNODE']._serialized_start=880 - _globals['_WORKFLOWNODE']._serialized_end=1046 - _globals['_APPROVECONDITION']._serialized_start=1048 - _globals['_APPROVECONDITION']._serialized_end=1095 - _globals['_SIGNALCONDITION']._serialized_start=1098 - _globals['_SIGNALCONDITION']._serialized_end=1242 - _globals['_SLEEPCONDITION']._serialized_start=1244 - _globals['_SLEEPCONDITION']._serialized_end=1315 - _globals['_GATENODE']._serialized_start=1318 - _globals['_GATENODE']._serialized_end=1515 - _globals['_ARRAYNODE']._serialized_start=1518 - _globals['_ARRAYNODE']._serialized_end=1709 - _globals['_NODEMETADATA']._serialized_start=1712 - _globals['_NODEMETADATA']._serialized_end=1918 - _globals['_ALIAS']._serialized_start=1920 - _globals['_ALIAS']._serialized_end=1967 - _globals['_NODE']._serialized_start=1970 - _globals['_NODE']._serialized_end=2513 - _globals['_WORKFLOWMETADATA']._serialized_start=2516 - _globals['_WORKFLOWMETADATA']._serialized_end=2896 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_start=2758 - _globals['_WORKFLOWMETADATA_TAGSENTRY']._serialized_end=2813 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_start=2815 - _globals['_WORKFLOWMETADATA_ONFAILUREPOLICY']._serialized_end=2896 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_start=2898 - _globals['_WORKFLOWMETADATADEFAULTS']._serialized_end=2962 - _globals['_WORKFLOWTEMPLATE']._serialized_start=2965 - _globals['_WORKFLOWTEMPLATE']._serialized_end=3383 - _globals['_TASKNODEOVERRIDES']._serialized_start=3386 - _globals['_TASKNODEOVERRIDES']._serialized_end=3542 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi deleted file mode 100644 index daf8082c7b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2.pyi +++ /dev/null @@ -1,201 +0,0 @@ -from flyteidl.core import condition_pb2 as _condition_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import types_pb2 as _types_pb2 -from flyteidl.core import security_pb2 as _security_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class IfBlock(_message.Message): - __slots__ = ["condition", "then_node"] - CONDITION_FIELD_NUMBER: _ClassVar[int] - THEN_NODE_FIELD_NUMBER: _ClassVar[int] - condition: _condition_pb2.BooleanExpression - then_node: Node - def __init__(self, condition: _Optional[_Union[_condition_pb2.BooleanExpression, _Mapping]] = ..., then_node: _Optional[_Union[Node, _Mapping]] = ...) -> None: ... - -class IfElseBlock(_message.Message): - __slots__ = ["case", "other", "else_node", "error"] - CASE_FIELD_NUMBER: _ClassVar[int] - OTHER_FIELD_NUMBER: _ClassVar[int] - ELSE_NODE_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - case: IfBlock - other: _containers.RepeatedCompositeFieldContainer[IfBlock] - else_node: Node - error: _types_pb2.Error - def __init__(self, case: _Optional[_Union[IfBlock, _Mapping]] = ..., other: _Optional[_Iterable[_Union[IfBlock, _Mapping]]] = ..., else_node: _Optional[_Union[Node, _Mapping]] = ..., error: _Optional[_Union[_types_pb2.Error, _Mapping]] = ...) -> None: ... - -class BranchNode(_message.Message): - __slots__ = ["if_else"] - IF_ELSE_FIELD_NUMBER: _ClassVar[int] - if_else: IfElseBlock - def __init__(self, if_else: _Optional[_Union[IfElseBlock, _Mapping]] = ...) -> None: ... - -class TaskNode(_message.Message): - __slots__ = ["reference_id", "overrides"] - REFERENCE_ID_FIELD_NUMBER: _ClassVar[int] - OVERRIDES_FIELD_NUMBER: _ClassVar[int] - reference_id: _identifier_pb2.Identifier - overrides: TaskNodeOverrides - def __init__(self, reference_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., overrides: _Optional[_Union[TaskNodeOverrides, _Mapping]] = ...) -> None: ... - -class WorkflowNode(_message.Message): - __slots__ = ["launchplan_ref", "sub_workflow_ref"] - LAUNCHPLAN_REF_FIELD_NUMBER: _ClassVar[int] - SUB_WORKFLOW_REF_FIELD_NUMBER: _ClassVar[int] - launchplan_ref: _identifier_pb2.Identifier - sub_workflow_ref: _identifier_pb2.Identifier - def __init__(self, launchplan_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., sub_workflow_ref: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class ApproveCondition(_message.Message): - __slots__ = ["signal_id"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - signal_id: str - def __init__(self, signal_id: _Optional[str] = ...) -> None: ... - -class SignalCondition(_message.Message): - __slots__ = ["signal_id", "type", "output_variable_name"] - SIGNAL_ID_FIELD_NUMBER: _ClassVar[int] - TYPE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_VARIABLE_NAME_FIELD_NUMBER: _ClassVar[int] - signal_id: str - type: _types_pb2.LiteralType - output_variable_name: str - def __init__(self, signal_id: _Optional[str] = ..., type: _Optional[_Union[_types_pb2.LiteralType, _Mapping]] = ..., output_variable_name: _Optional[str] = ...) -> None: ... - -class SleepCondition(_message.Message): - __slots__ = ["duration"] - DURATION_FIELD_NUMBER: _ClassVar[int] - duration: _duration_pb2.Duration - def __init__(self, duration: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class GateNode(_message.Message): - __slots__ = ["approve", "signal", "sleep"] - APPROVE_FIELD_NUMBER: _ClassVar[int] - SIGNAL_FIELD_NUMBER: _ClassVar[int] - SLEEP_FIELD_NUMBER: _ClassVar[int] - approve: ApproveCondition - signal: SignalCondition - sleep: SleepCondition - def __init__(self, approve: _Optional[_Union[ApproveCondition, _Mapping]] = ..., signal: _Optional[_Union[SignalCondition, _Mapping]] = ..., sleep: _Optional[_Union[SleepCondition, _Mapping]] = ...) -> None: ... - -class ArrayNode(_message.Message): - __slots__ = ["node", "parallelism", "min_successes", "min_success_ratio"] - NODE_FIELD_NUMBER: _ClassVar[int] - PARALLELISM_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] - node: Node - parallelism: int - min_successes: int - min_success_ratio: float - def __init__(self, node: _Optional[_Union[Node, _Mapping]] = ..., parallelism: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... - -class NodeMetadata(_message.Message): - __slots__ = ["name", "timeout", "retries", "interruptible"] - NAME_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_FIELD_NUMBER: _ClassVar[int] - RETRIES_FIELD_NUMBER: _ClassVar[int] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - name: str - timeout: _duration_pb2.Duration - retries: _literals_pb2.RetryStrategy - interruptible: bool - def __init__(self, name: _Optional[str] = ..., timeout: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., retries: _Optional[_Union[_literals_pb2.RetryStrategy, _Mapping]] = ..., interruptible: bool = ...) -> None: ... - -class Alias(_message.Message): - __slots__ = ["var", "alias"] - VAR_FIELD_NUMBER: _ClassVar[int] - ALIAS_FIELD_NUMBER: _ClassVar[int] - var: str - alias: str - def __init__(self, var: _Optional[str] = ..., alias: _Optional[str] = ...) -> None: ... - -class Node(_message.Message): - __slots__ = ["id", "metadata", "inputs", "upstream_node_ids", "output_aliases", "task_node", "workflow_node", "branch_node", "gate_node", "array_node"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INPUTS_FIELD_NUMBER: _ClassVar[int] - UPSTREAM_NODE_IDS_FIELD_NUMBER: _ClassVar[int] - OUTPUT_ALIASES_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_FIELD_NUMBER: _ClassVar[int] - BRANCH_NODE_FIELD_NUMBER: _ClassVar[int] - GATE_NODE_FIELD_NUMBER: _ClassVar[int] - ARRAY_NODE_FIELD_NUMBER: _ClassVar[int] - id: str - metadata: NodeMetadata - inputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - upstream_node_ids: _containers.RepeatedScalarFieldContainer[str] - output_aliases: _containers.RepeatedCompositeFieldContainer[Alias] - task_node: TaskNode - workflow_node: WorkflowNode - branch_node: BranchNode - gate_node: GateNode - array_node: ArrayNode - def __init__(self, id: _Optional[str] = ..., metadata: _Optional[_Union[NodeMetadata, _Mapping]] = ..., inputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., upstream_node_ids: _Optional[_Iterable[str]] = ..., output_aliases: _Optional[_Iterable[_Union[Alias, _Mapping]]] = ..., task_node: _Optional[_Union[TaskNode, _Mapping]] = ..., workflow_node: _Optional[_Union[WorkflowNode, _Mapping]] = ..., branch_node: _Optional[_Union[BranchNode, _Mapping]] = ..., gate_node: _Optional[_Union[GateNode, _Mapping]] = ..., array_node: _Optional[_Union[ArrayNode, _Mapping]] = ...) -> None: ... - -class WorkflowMetadata(_message.Message): - __slots__ = ["quality_of_service", "on_failure", "tags"] - class OnFailurePolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - FAIL_IMMEDIATELY: _ClassVar[WorkflowMetadata.OnFailurePolicy] - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: _ClassVar[WorkflowMetadata.OnFailurePolicy] - FAIL_IMMEDIATELY: WorkflowMetadata.OnFailurePolicy - FAIL_AFTER_EXECUTABLE_NODES_COMPLETE: WorkflowMetadata.OnFailurePolicy - class TagsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - QUALITY_OF_SERVICE_FIELD_NUMBER: _ClassVar[int] - ON_FAILURE_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - quality_of_service: _execution_pb2.QualityOfService - on_failure: WorkflowMetadata.OnFailurePolicy - tags: _containers.ScalarMap[str, str] - def __init__(self, quality_of_service: _Optional[_Union[_execution_pb2.QualityOfService, _Mapping]] = ..., on_failure: _Optional[_Union[WorkflowMetadata.OnFailurePolicy, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class WorkflowMetadataDefaults(_message.Message): - __slots__ = ["interruptible"] - INTERRUPTIBLE_FIELD_NUMBER: _ClassVar[int] - interruptible: bool - def __init__(self, interruptible: bool = ...) -> None: ... - -class WorkflowTemplate(_message.Message): - __slots__ = ["id", "metadata", "interface", "nodes", "outputs", "failure_node", "metadata_defaults"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - INTERFACE_FIELD_NUMBER: _ClassVar[int] - NODES_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - FAILURE_NODE_FIELD_NUMBER: _ClassVar[int] - METADATA_DEFAULTS_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - metadata: WorkflowMetadata - interface: _interface_pb2.TypedInterface - nodes: _containers.RepeatedCompositeFieldContainer[Node] - outputs: _containers.RepeatedCompositeFieldContainer[_literals_pb2.Binding] - failure_node: Node - metadata_defaults: WorkflowMetadataDefaults - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., metadata: _Optional[_Union[WorkflowMetadata, _Mapping]] = ..., interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., nodes: _Optional[_Iterable[_Union[Node, _Mapping]]] = ..., outputs: _Optional[_Iterable[_Union[_literals_pb2.Binding, _Mapping]]] = ..., failure_node: _Optional[_Union[Node, _Mapping]] = ..., metadata_defaults: _Optional[_Union[WorkflowMetadataDefaults, _Mapping]] = ...) -> None: ... - -class TaskNodeOverrides(_message.Message): - __slots__ = ["resources", "extended_resources"] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - EXTENDED_RESOURCES_FIELD_NUMBER: _ClassVar[int] - resources: _tasks_pb2.Resources - extended_resources: _tasks_pb2.ExtendedResources - def __init__(self, resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., extended_resources: _Optional[_Union[_tasks_pb2.ExtendedResources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/core/workflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py deleted file mode 100644 index 1de3b8a96e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.py +++ /dev/null @@ -1,114 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/datacatalog/datacatalog.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/datacatalog/datacatalog.proto\x12\x0b\x64\x61tacatalog\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"F\n\x14\x43reateDatasetRequest\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x17\n\x15\x43reateDatasetResponse\"E\n\x11GetDatasetRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"D\n\x12GetDatasetResponse\x12.\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x14.datacatalog.DatasetR\x07\x64\x61taset\"\x96\x01\n\x12GetArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagNameB\x0e\n\x0cquery_handle\"H\n\x13GetArtifactResponse\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"J\n\x15\x43reateArtifactRequest\x12\x31\n\x08\x61rtifact\x18\x01 \x01(\x0b\x32\x15.datacatalog.ArtifactR\x08\x61rtifact\"\x18\n\x16\x43reateArtifactResponse\"3\n\rAddTagRequest\x12\"\n\x03tag\x18\x01 \x01(\x0b\x32\x10.datacatalog.TagR\x03tag\"\x10\n\x0e\x41\x64\x64TagResponse\"\xbf\x01\n\x14ListArtifactsRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12\x35\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x03 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"k\n\x15ListArtifactsResponse\x12\x33\n\tartifacts\x18\x01 \x03(\x0b\x32\x15.datacatalog.ArtifactR\tartifacts\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\x8c\x01\n\x13ListDatasetsRequest\x12\x35\n\x06\x66ilter\x18\x01 \x01(\x0b\x32\x1d.datacatalog.FilterExpressionR\x06\x66ilter\x12>\n\npagination\x18\x02 \x01(\x0b\x32\x1e.datacatalog.PaginationOptionsR\npagination\"g\n\x14ListDatasetsResponse\x12\x30\n\x08\x64\x61tasets\x18\x01 \x03(\x0b\x32\x14.datacatalog.DatasetR\x08\x64\x61tasets\x12\x1d\n\nnext_token\x18\x02 \x01(\tR\tnextToken\"\xfb\x01\n\x15UpdateArtifactRequest\x12\x30\n\x07\x64\x61taset\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12!\n\x0b\x61rtifact_id\x18\x02 \x01(\tH\x00R\nartifactId\x12\x1b\n\x08tag_name\x18\x03 \x01(\tH\x00R\x07tagName\x12-\n\x04\x64\x61ta\x18\x04 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x05 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadataB\x0e\n\x0cquery_handle\"9\n\x16UpdateArtifactResponse\x12\x1f\n\x0b\x61rtifact_id\x18\x01 \x01(\tR\nartifactId\"a\n\rReservationID\x12\x35\n\ndataset_id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\tdatasetId\x12\x19\n\x08tag_name\x18\x02 \x01(\tR\x07tagName\"\xc7\x01\n\x1dGetOrExtendReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\"\xa3\x02\n\x0bReservation\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\x12H\n\x12heartbeat_interval\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationR\x11heartbeatInterval\x12\x39\n\nexpires_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\x12\x31\n\x08metadata\x18\x06 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\"\\\n\x1eGetOrExtendReservationResponse\x12:\n\x0breservation\x18\x01 \x01(\x0b\x32\x18.datacatalog.ReservationR\x0breservation\"y\n\x19ReleaseReservationRequest\x12\x41\n\x0ereservation_id\x18\x01 \x01(\x0b\x32\x1a.datacatalog.ReservationIDR\rreservationId\x12\x19\n\x08owner_id\x18\x02 \x01(\tR\x07ownerId\"\x1c\n\x1aReleaseReservationResponse\"\x8a\x01\n\x07\x44\x61taset\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x02id\x12\x31\n\x08metadata\x18\x02 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12$\n\rpartitionKeys\x18\x03 \x03(\tR\rpartitionKeys\"3\n\tPartition\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x7f\n\tDatasetID\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n\x06\x64omain\x18\x03 \x01(\tR\x06\x64omain\x12\x18\n\x07version\x18\x04 \x01(\tR\x07version\x12\x12\n\x04UUID\x18\x05 \x01(\tR\x04UUID\"\xc7\x02\n\x08\x41rtifact\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12\x30\n\x07\x64\x61taset\x18\x02 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\x12-\n\x04\x64\x61ta\x18\x03 \x03(\x0b\x32\x19.datacatalog.ArtifactDataR\x04\x64\x61ta\x12\x31\n\x08metadata\x18\x04 \x01(\x0b\x32\x15.datacatalog.MetadataR\x08metadata\x12\x36\n\npartitions\x18\x05 \x03(\x0b\x32\x16.datacatalog.PartitionR\npartitions\x12$\n\x04tags\x18\x06 \x03(\x0b\x32\x10.datacatalog.TagR\x04tags\x12\x39\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\"P\n\x0c\x41rtifactData\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x16.flyteidl.core.LiteralR\x05value\"l\n\x03Tag\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x1f\n\x0b\x61rtifact_id\x18\x02 \x01(\tR\nartifactId\x12\x30\n\x07\x64\x61taset\x18\x03 \x01(\x0b\x32\x16.datacatalog.DatasetIDR\x07\x64\x61taset\"\x81\x01\n\x08Metadata\x12:\n\x07key_map\x18\x01 \x03(\x0b\x32!.datacatalog.Metadata.KeyMapEntryR\x06keyMap\x1a\x39\n\x0bKeyMapEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"O\n\x10\x46ilterExpression\x12;\n\x07\x66ilters\x18\x01 \x03(\x0b\x32!.datacatalog.SinglePropertyFilterR\x07\x66ilters\"\xce\x03\n\x14SinglePropertyFilter\x12?\n\ntag_filter\x18\x01 \x01(\x0b\x32\x1e.datacatalog.TagPropertyFilterH\x00R\ttagFilter\x12Q\n\x10partition_filter\x18\x02 \x01(\x0b\x32$.datacatalog.PartitionPropertyFilterH\x00R\x0fpartitionFilter\x12N\n\x0f\x61rtifact_filter\x18\x03 \x01(\x0b\x32#.datacatalog.ArtifactPropertyFilterH\x00R\x0e\x61rtifactFilter\x12K\n\x0e\x64\x61taset_filter\x18\x04 \x01(\x0b\x32\".datacatalog.DatasetPropertyFilterH\x00R\rdatasetFilter\x12P\n\x08operator\x18\n \x01(\x0e\x32\x34.datacatalog.SinglePropertyFilter.ComparisonOperatorR\x08operator\" \n\x12\x43omparisonOperator\x12\n\n\x06\x45QUALS\x10\x00\x42\x11\n\x0fproperty_filter\"G\n\x16\x41rtifactPropertyFilter\x12!\n\x0b\x61rtifact_id\x18\x01 \x01(\tH\x00R\nartifactIdB\n\n\x08property\"<\n\x11TagPropertyFilter\x12\x1b\n\x08tag_name\x18\x01 \x01(\tH\x00R\x07tagNameB\n\n\x08property\"[\n\x17PartitionPropertyFilter\x12\x34\n\x07key_val\x18\x01 \x01(\x0b\x32\x19.datacatalog.KeyValuePairH\x00R\x06keyValB\n\n\x08property\"6\n\x0cKeyValuePair\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value\"\x8b\x01\n\x15\x44\x61tasetPropertyFilter\x12\x1a\n\x07project\x18\x01 \x01(\tH\x00R\x07project\x12\x14\n\x04name\x18\x02 \x01(\tH\x00R\x04name\x12\x18\n\x06\x64omain\x18\x03 \x01(\tH\x00R\x06\x64omain\x12\x1a\n\x07version\x18\x04 \x01(\tH\x00R\x07versionB\n\n\x08property\"\x93\x02\n\x11PaginationOptions\x12\x14\n\x05limit\x18\x01 \x01(\rR\x05limit\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\x12@\n\x07sortKey\x18\x03 \x01(\x0e\x32&.datacatalog.PaginationOptions.SortKeyR\x07sortKey\x12\x46\n\tsortOrder\x18\x04 \x01(\x0e\x32(.datacatalog.PaginationOptions.SortOrderR\tsortOrder\"*\n\tSortOrder\x12\x0e\n\nDESCENDING\x10\x00\x12\r\n\tASCENDING\x10\x01\"\x1c\n\x07SortKey\x12\x11\n\rCREATION_TIME\x10\x00\x32\x86\x07\n\x0b\x44\x61taCatalog\x12V\n\rCreateDataset\x12!.datacatalog.CreateDatasetRequest\x1a\".datacatalog.CreateDatasetResponse\x12M\n\nGetDataset\x12\x1e.datacatalog.GetDatasetRequest\x1a\x1f.datacatalog.GetDatasetResponse\x12Y\n\x0e\x43reateArtifact\x12\".datacatalog.CreateArtifactRequest\x1a#.datacatalog.CreateArtifactResponse\x12P\n\x0bGetArtifact\x12\x1f.datacatalog.GetArtifactRequest\x1a .datacatalog.GetArtifactResponse\x12\x41\n\x06\x41\x64\x64Tag\x12\x1a.datacatalog.AddTagRequest\x1a\x1b.datacatalog.AddTagResponse\x12V\n\rListArtifacts\x12!.datacatalog.ListArtifactsRequest\x1a\".datacatalog.ListArtifactsResponse\x12S\n\x0cListDatasets\x12 .datacatalog.ListDatasetsRequest\x1a!.datacatalog.ListDatasetsResponse\x12Y\n\x0eUpdateArtifact\x12\".datacatalog.UpdateArtifactRequest\x1a#.datacatalog.UpdateArtifactResponse\x12q\n\x16GetOrExtendReservation\x12*.datacatalog.GetOrExtendReservationRequest\x1a+.datacatalog.GetOrExtendReservationResponse\x12\x65\n\x12ReleaseReservation\x12&.datacatalog.ReleaseReservationRequest\x1a\'.datacatalog.ReleaseReservationResponseB\xb2\x01\n\x0f\x63om.datacatalogB\x10\x44\x61tacatalogProtoP\x01ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\xa2\x02\x03\x44XX\xaa\x02\x0b\x44\x61tacatalog\xca\x02\x0b\x44\x61tacatalog\xe2\x02\x17\x44\x61tacatalog\\GPBMetadata\xea\x02\x0b\x44\x61tacatalogb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.datacatalog.datacatalog_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\017com.datacatalogB\020DatacatalogProtoP\001ZAgithub.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog\242\002\003DXX\252\002\013Datacatalog\312\002\013Datacatalog\342\002\027Datacatalog\\GPBMetadata\352\002\013Datacatalog' - _METADATA_KEYMAPENTRY._options = None - _METADATA_KEYMAPENTRY._serialized_options = b'8\001' - _globals['_CREATEDATASETREQUEST']._serialized_start=150 - _globals['_CREATEDATASETREQUEST']._serialized_end=220 - _globals['_CREATEDATASETRESPONSE']._serialized_start=222 - _globals['_CREATEDATASETRESPONSE']._serialized_end=245 - _globals['_GETDATASETREQUEST']._serialized_start=247 - _globals['_GETDATASETREQUEST']._serialized_end=316 - _globals['_GETDATASETRESPONSE']._serialized_start=318 - _globals['_GETDATASETRESPONSE']._serialized_end=386 - _globals['_GETARTIFACTREQUEST']._serialized_start=389 - _globals['_GETARTIFACTREQUEST']._serialized_end=539 - _globals['_GETARTIFACTRESPONSE']._serialized_start=541 - _globals['_GETARTIFACTRESPONSE']._serialized_end=613 - _globals['_CREATEARTIFACTREQUEST']._serialized_start=615 - _globals['_CREATEARTIFACTREQUEST']._serialized_end=689 - _globals['_CREATEARTIFACTRESPONSE']._serialized_start=691 - _globals['_CREATEARTIFACTRESPONSE']._serialized_end=715 - _globals['_ADDTAGREQUEST']._serialized_start=717 - _globals['_ADDTAGREQUEST']._serialized_end=768 - _globals['_ADDTAGRESPONSE']._serialized_start=770 - _globals['_ADDTAGRESPONSE']._serialized_end=786 - _globals['_LISTARTIFACTSREQUEST']._serialized_start=789 - _globals['_LISTARTIFACTSREQUEST']._serialized_end=980 - _globals['_LISTARTIFACTSRESPONSE']._serialized_start=982 - _globals['_LISTARTIFACTSRESPONSE']._serialized_end=1089 - _globals['_LISTDATASETSREQUEST']._serialized_start=1092 - _globals['_LISTDATASETSREQUEST']._serialized_end=1232 - _globals['_LISTDATASETSRESPONSE']._serialized_start=1234 - _globals['_LISTDATASETSRESPONSE']._serialized_end=1337 - _globals['_UPDATEARTIFACTREQUEST']._serialized_start=1340 - _globals['_UPDATEARTIFACTREQUEST']._serialized_end=1591 - _globals['_UPDATEARTIFACTRESPONSE']._serialized_start=1593 - _globals['_UPDATEARTIFACTRESPONSE']._serialized_end=1650 - _globals['_RESERVATIONID']._serialized_start=1652 - _globals['_RESERVATIONID']._serialized_end=1749 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_start=1752 - _globals['_GETOREXTENDRESERVATIONREQUEST']._serialized_end=1951 - _globals['_RESERVATION']._serialized_start=1954 - _globals['_RESERVATION']._serialized_end=2245 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_start=2247 - _globals['_GETOREXTENDRESERVATIONRESPONSE']._serialized_end=2339 - _globals['_RELEASERESERVATIONREQUEST']._serialized_start=2341 - _globals['_RELEASERESERVATIONREQUEST']._serialized_end=2462 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_start=2464 - _globals['_RELEASERESERVATIONRESPONSE']._serialized_end=2492 - _globals['_DATASET']._serialized_start=2495 - _globals['_DATASET']._serialized_end=2633 - _globals['_PARTITION']._serialized_start=2635 - _globals['_PARTITION']._serialized_end=2686 - _globals['_DATASETID']._serialized_start=2688 - _globals['_DATASETID']._serialized_end=2815 - _globals['_ARTIFACT']._serialized_start=2818 - _globals['_ARTIFACT']._serialized_end=3145 - _globals['_ARTIFACTDATA']._serialized_start=3147 - _globals['_ARTIFACTDATA']._serialized_end=3227 - _globals['_TAG']._serialized_start=3229 - _globals['_TAG']._serialized_end=3337 - _globals['_METADATA']._serialized_start=3340 - _globals['_METADATA']._serialized_end=3469 - _globals['_METADATA_KEYMAPENTRY']._serialized_start=3412 - _globals['_METADATA_KEYMAPENTRY']._serialized_end=3469 - _globals['_FILTEREXPRESSION']._serialized_start=3471 - _globals['_FILTEREXPRESSION']._serialized_end=3550 - _globals['_SINGLEPROPERTYFILTER']._serialized_start=3553 - _globals['_SINGLEPROPERTYFILTER']._serialized_end=4015 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_start=3964 - _globals['_SINGLEPROPERTYFILTER_COMPARISONOPERATOR']._serialized_end=3996 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_start=4017 - _globals['_ARTIFACTPROPERTYFILTER']._serialized_end=4088 - _globals['_TAGPROPERTYFILTER']._serialized_start=4090 - _globals['_TAGPROPERTYFILTER']._serialized_end=4150 - _globals['_PARTITIONPROPERTYFILTER']._serialized_start=4152 - _globals['_PARTITIONPROPERTYFILTER']._serialized_end=4243 - _globals['_KEYVALUEPAIR']._serialized_start=4245 - _globals['_KEYVALUEPAIR']._serialized_end=4299 - _globals['_DATASETPROPERTYFILTER']._serialized_start=4302 - _globals['_DATASETPROPERTYFILTER']._serialized_end=4441 - _globals['_PAGINATIONOPTIONS']._serialized_start=4444 - _globals['_PAGINATIONOPTIONS']._serialized_end=4719 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_start=4647 - _globals['_PAGINATIONOPTIONS_SORTORDER']._serialized_end=4689 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_start=4691 - _globals['_PAGINATIONOPTIONS_SORTKEY']._serialized_end=4719 - _globals['_DATACATALOG']._serialized_start=4722 - _globals['_DATACATALOG']._serialized_end=5624 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi deleted file mode 100644 index 94cd96797b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2.pyi +++ /dev/null @@ -1,337 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CreateDatasetRequest(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: Dataset - def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... - -class CreateDatasetResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class GetDatasetRequest(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... - -class GetDatasetResponse(_message.Message): - __slots__ = ["dataset"] - DATASET_FIELD_NUMBER: _ClassVar[int] - dataset: Dataset - def __init__(self, dataset: _Optional[_Union[Dataset, _Mapping]] = ...) -> None: ... - -class GetArtifactRequest(_message.Message): - __slots__ = ["dataset", "artifact_id", "tag_name"] - DATASET_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - artifact_id: str - tag_name: str - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ...) -> None: ... - -class GetArtifactResponse(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class CreateArtifactRequest(_message.Message): - __slots__ = ["artifact"] - ARTIFACT_FIELD_NUMBER: _ClassVar[int] - artifact: Artifact - def __init__(self, artifact: _Optional[_Union[Artifact, _Mapping]] = ...) -> None: ... - -class CreateArtifactResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class AddTagRequest(_message.Message): - __slots__ = ["tag"] - TAG_FIELD_NUMBER: _ClassVar[int] - tag: Tag - def __init__(self, tag: _Optional[_Union[Tag, _Mapping]] = ...) -> None: ... - -class AddTagResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class ListArtifactsRequest(_message.Message): - __slots__ = ["dataset", "filter", "pagination"] - DATASET_FIELD_NUMBER: _ClassVar[int] - FILTER_FIELD_NUMBER: _ClassVar[int] - PAGINATION_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - filter: FilterExpression - pagination: PaginationOptions - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... - -class ListArtifactsResponse(_message.Message): - __slots__ = ["artifacts", "next_token"] - ARTIFACTS_FIELD_NUMBER: _ClassVar[int] - NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] - artifacts: _containers.RepeatedCompositeFieldContainer[Artifact] - next_token: str - def __init__(self, artifacts: _Optional[_Iterable[_Union[Artifact, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... - -class ListDatasetsRequest(_message.Message): - __slots__ = ["filter", "pagination"] - FILTER_FIELD_NUMBER: _ClassVar[int] - PAGINATION_FIELD_NUMBER: _ClassVar[int] - filter: FilterExpression - pagination: PaginationOptions - def __init__(self, filter: _Optional[_Union[FilterExpression, _Mapping]] = ..., pagination: _Optional[_Union[PaginationOptions, _Mapping]] = ...) -> None: ... - -class ListDatasetsResponse(_message.Message): - __slots__ = ["datasets", "next_token"] - DATASETS_FIELD_NUMBER: _ClassVar[int] - NEXT_TOKEN_FIELD_NUMBER: _ClassVar[int] - datasets: _containers.RepeatedCompositeFieldContainer[Dataset] - next_token: str - def __init__(self, datasets: _Optional[_Iterable[_Union[Dataset, _Mapping]]] = ..., next_token: _Optional[str] = ...) -> None: ... - -class UpdateArtifactRequest(_message.Message): - __slots__ = ["dataset", "artifact_id", "tag_name", "data", "metadata"] - DATASET_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - dataset: DatasetID - artifact_id: str - tag_name: str - data: _containers.RepeatedCompositeFieldContainer[ArtifactData] - metadata: Metadata - def __init__(self, dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., artifact_id: _Optional[str] = ..., tag_name: _Optional[str] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... - -class UpdateArtifactResponse(_message.Message): - __slots__ = ["artifact_id"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... - -class ReservationID(_message.Message): - __slots__ = ["dataset_id", "tag_name"] - DATASET_ID_FIELD_NUMBER: _ClassVar[int] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - dataset_id: DatasetID - tag_name: str - def __init__(self, dataset_id: _Optional[_Union[DatasetID, _Mapping]] = ..., tag_name: _Optional[str] = ...) -> None: ... - -class GetOrExtendReservationRequest(_message.Message): - __slots__ = ["reservation_id", "owner_id", "heartbeat_interval"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - heartbeat_interval: _duration_pb2.Duration - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class Reservation(_message.Message): - __slots__ = ["reservation_id", "owner_id", "heartbeat_interval", "expires_at", "metadata"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - HEARTBEAT_INTERVAL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - heartbeat_interval: _duration_pb2.Duration - expires_at: _timestamp_pb2.Timestamp - metadata: Metadata - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ..., heartbeat_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ...) -> None: ... - -class GetOrExtendReservationResponse(_message.Message): - __slots__ = ["reservation"] - RESERVATION_FIELD_NUMBER: _ClassVar[int] - reservation: Reservation - def __init__(self, reservation: _Optional[_Union[Reservation, _Mapping]] = ...) -> None: ... - -class ReleaseReservationRequest(_message.Message): - __slots__ = ["reservation_id", "owner_id"] - RESERVATION_ID_FIELD_NUMBER: _ClassVar[int] - OWNER_ID_FIELD_NUMBER: _ClassVar[int] - reservation_id: ReservationID - owner_id: str - def __init__(self, reservation_id: _Optional[_Union[ReservationID, _Mapping]] = ..., owner_id: _Optional[str] = ...) -> None: ... - -class ReleaseReservationResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class Dataset(_message.Message): - __slots__ = ["id", "metadata", "partitionKeys"] - ID_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - PARTITIONKEYS_FIELD_NUMBER: _ClassVar[int] - id: DatasetID - metadata: Metadata - partitionKeys: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, id: _Optional[_Union[DatasetID, _Mapping]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitionKeys: _Optional[_Iterable[str]] = ...) -> None: ... - -class Partition(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class DatasetID(_message.Message): - __slots__ = ["project", "name", "domain", "version", "UUID"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - UUID_FIELD_NUMBER: _ClassVar[int] - project: str - name: str - domain: str - version: str - UUID: str - def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ..., UUID: _Optional[str] = ...) -> None: ... - -class Artifact(_message.Message): - __slots__ = ["id", "dataset", "data", "metadata", "partitions", "tags", "created_at"] - ID_FIELD_NUMBER: _ClassVar[int] - DATASET_FIELD_NUMBER: _ClassVar[int] - DATA_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - PARTITIONS_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - CREATED_AT_FIELD_NUMBER: _ClassVar[int] - id: str - dataset: DatasetID - data: _containers.RepeatedCompositeFieldContainer[ArtifactData] - metadata: Metadata - partitions: _containers.RepeatedCompositeFieldContainer[Partition] - tags: _containers.RepeatedCompositeFieldContainer[Tag] - created_at: _timestamp_pb2.Timestamp - def __init__(self, id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ..., data: _Optional[_Iterable[_Union[ArtifactData, _Mapping]]] = ..., metadata: _Optional[_Union[Metadata, _Mapping]] = ..., partitions: _Optional[_Iterable[_Union[Partition, _Mapping]]] = ..., tags: _Optional[_Iterable[_Union[Tag, _Mapping]]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class ArtifactData(_message.Message): - __slots__ = ["name", "value"] - NAME_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - name: str - value: _literals_pb2.Literal - def __init__(self, name: _Optional[str] = ..., value: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... - -class Tag(_message.Message): - __slots__ = ["name", "artifact_id", "dataset"] - NAME_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - DATASET_FIELD_NUMBER: _ClassVar[int] - name: str - artifact_id: str - dataset: DatasetID - def __init__(self, name: _Optional[str] = ..., artifact_id: _Optional[str] = ..., dataset: _Optional[_Union[DatasetID, _Mapping]] = ...) -> None: ... - -class Metadata(_message.Message): - __slots__ = ["key_map"] - class KeyMapEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - KEY_MAP_FIELD_NUMBER: _ClassVar[int] - key_map: _containers.ScalarMap[str, str] - def __init__(self, key_map: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class FilterExpression(_message.Message): - __slots__ = ["filters"] - FILTERS_FIELD_NUMBER: _ClassVar[int] - filters: _containers.RepeatedCompositeFieldContainer[SinglePropertyFilter] - def __init__(self, filters: _Optional[_Iterable[_Union[SinglePropertyFilter, _Mapping]]] = ...) -> None: ... - -class SinglePropertyFilter(_message.Message): - __slots__ = ["tag_filter", "partition_filter", "artifact_filter", "dataset_filter", "operator"] - class ComparisonOperator(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - EQUALS: _ClassVar[SinglePropertyFilter.ComparisonOperator] - EQUALS: SinglePropertyFilter.ComparisonOperator - TAG_FILTER_FIELD_NUMBER: _ClassVar[int] - PARTITION_FILTER_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_FILTER_FIELD_NUMBER: _ClassVar[int] - DATASET_FILTER_FIELD_NUMBER: _ClassVar[int] - OPERATOR_FIELD_NUMBER: _ClassVar[int] - tag_filter: TagPropertyFilter - partition_filter: PartitionPropertyFilter - artifact_filter: ArtifactPropertyFilter - dataset_filter: DatasetPropertyFilter - operator: SinglePropertyFilter.ComparisonOperator - def __init__(self, tag_filter: _Optional[_Union[TagPropertyFilter, _Mapping]] = ..., partition_filter: _Optional[_Union[PartitionPropertyFilter, _Mapping]] = ..., artifact_filter: _Optional[_Union[ArtifactPropertyFilter, _Mapping]] = ..., dataset_filter: _Optional[_Union[DatasetPropertyFilter, _Mapping]] = ..., operator: _Optional[_Union[SinglePropertyFilter.ComparisonOperator, str]] = ...) -> None: ... - -class ArtifactPropertyFilter(_message.Message): - __slots__ = ["artifact_id"] - ARTIFACT_ID_FIELD_NUMBER: _ClassVar[int] - artifact_id: str - def __init__(self, artifact_id: _Optional[str] = ...) -> None: ... - -class TagPropertyFilter(_message.Message): - __slots__ = ["tag_name"] - TAG_NAME_FIELD_NUMBER: _ClassVar[int] - tag_name: str - def __init__(self, tag_name: _Optional[str] = ...) -> None: ... - -class PartitionPropertyFilter(_message.Message): - __slots__ = ["key_val"] - KEY_VAL_FIELD_NUMBER: _ClassVar[int] - key_val: KeyValuePair - def __init__(self, key_val: _Optional[_Union[KeyValuePair, _Mapping]] = ...) -> None: ... - -class KeyValuePair(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - -class DatasetPropertyFilter(_message.Message): - __slots__ = ["project", "name", "domain", "version"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - VERSION_FIELD_NUMBER: _ClassVar[int] - project: str - name: str - domain: str - version: str - def __init__(self, project: _Optional[str] = ..., name: _Optional[str] = ..., domain: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ... - -class PaginationOptions(_message.Message): - __slots__ = ["limit", "token", "sortKey", "sortOrder"] - class SortOrder(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DESCENDING: _ClassVar[PaginationOptions.SortOrder] - ASCENDING: _ClassVar[PaginationOptions.SortOrder] - DESCENDING: PaginationOptions.SortOrder - ASCENDING: PaginationOptions.SortOrder - class SortKey(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CREATION_TIME: _ClassVar[PaginationOptions.SortKey] - CREATION_TIME: PaginationOptions.SortKey - LIMIT_FIELD_NUMBER: _ClassVar[int] - TOKEN_FIELD_NUMBER: _ClassVar[int] - SORTKEY_FIELD_NUMBER: _ClassVar[int] - SORTORDER_FIELD_NUMBER: _ClassVar[int] - limit: int - token: str - sortKey: PaginationOptions.SortKey - sortOrder: PaginationOptions.SortOrder - def __init__(self, limit: _Optional[int] = ..., token: _Optional[str] = ..., sortKey: _Optional[_Union[PaginationOptions.SortKey, str]] = ..., sortOrder: _Optional[_Union[PaginationOptions.SortOrder, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py deleted file mode 100644 index b78b2fa78b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/datacatalog/datacatalog_pb2_grpc.py +++ /dev/null @@ -1,398 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.datacatalog import datacatalog_pb2 as flyteidl_dot_datacatalog_dot_datacatalog__pb2 - - -class DataCatalogStub(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateDataset = channel.unary_unary( - '/datacatalog.DataCatalog/CreateDataset', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, - ) - self.GetDataset = channel.unary_unary( - '/datacatalog.DataCatalog/GetDataset', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, - ) - self.CreateArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/CreateArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, - ) - self.GetArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/GetArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, - ) - self.AddTag = channel.unary_unary( - '/datacatalog.DataCatalog/AddTag', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, - ) - self.ListArtifacts = channel.unary_unary( - '/datacatalog.DataCatalog/ListArtifacts', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, - ) - self.ListDatasets = channel.unary_unary( - '/datacatalog.DataCatalog/ListDatasets', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, - ) - self.UpdateArtifact = channel.unary_unary( - '/datacatalog.DataCatalog/UpdateArtifact', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, - ) - self.GetOrExtendReservation = channel.unary_unary( - '/datacatalog.DataCatalog/GetOrExtendReservation', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, - ) - self.ReleaseReservation = channel.unary_unary( - '/datacatalog.DataCatalog/ReleaseReservation', - request_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, - response_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - ) - - -class DataCatalogServicer(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - def CreateDataset(self, request, context): - """Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - Each dataset can have one or more artifacts - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDataset(self, request, context): - """Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateArtifact(self, request, context): - """Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - files or data values - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetArtifact(self, request, context): - """Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def AddTag(self, request, context): - """Associate a tag with an artifact. Tags are unique within a Dataset. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListArtifacts(self, request, context): - """Return a paginated list of artifacts - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDatasets(self, request, context): - """Return a paginated list of datasets - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateArtifact(self, request, context): - """Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetOrExtendReservation(self, request, context): - """Attempts to get or extend a reservation for the corresponding artifact. If one already exists - (ie. another entity owns the reservation) then that reservation is retrieved. - Once you acquire a reservation, you need to periodically extend the reservation with an - identical call. If the reservation is not extended before the defined expiration, it may be - acquired by another task. - Note: We may have multiple concurrent tasks with the same signature and the same input that - try to populate the same artifact at the same time. Thus with reservation, only one task can - run at a time, until the reservation expires. - Note: If task A does not extend the reservation in time and the reservation expires, another - task B may take over the reservation, resulting in two tasks A and B running in parallel. So - a third task C may get the Artifact from A or B, whichever writes last. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ReleaseReservation(self, request, context): - """Release the reservation when the task holding the spot fails so that the other tasks - can grab the spot. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DataCatalogServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateDataset': grpc.unary_unary_rpc_method_handler( - servicer.CreateDataset, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.SerializeToString, - ), - 'GetDataset': grpc.unary_unary_rpc_method_handler( - servicer.GetDataset, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.SerializeToString, - ), - 'CreateArtifact': grpc.unary_unary_rpc_method_handler( - servicer.CreateArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.SerializeToString, - ), - 'GetArtifact': grpc.unary_unary_rpc_method_handler( - servicer.GetArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.SerializeToString, - ), - 'AddTag': grpc.unary_unary_rpc_method_handler( - servicer.AddTag, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.SerializeToString, - ), - 'ListArtifacts': grpc.unary_unary_rpc_method_handler( - servicer.ListArtifacts, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.SerializeToString, - ), - 'ListDatasets': grpc.unary_unary_rpc_method_handler( - servicer.ListDatasets, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.SerializeToString, - ), - 'UpdateArtifact': grpc.unary_unary_rpc_method_handler( - servicer.UpdateArtifact, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.SerializeToString, - ), - 'GetOrExtendReservation': grpc.unary_unary_rpc_method_handler( - servicer.GetOrExtendReservation, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.SerializeToString, - ), - 'ReleaseReservation': grpc.unary_unary_rpc_method_handler( - servicer.ReleaseReservation, - request_deserializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.FromString, - response_serializer=flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'datacatalog.DataCatalog', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DataCatalog(object): - """ - Data Catalog service definition - Data Catalog is a service for indexing parameterized, strongly-typed data artifacts across revisions. - Artifacts are associated with a Dataset, and can be tagged for retrieval. - """ - - @staticmethod - def CreateDataset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateDataset', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateDatasetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDataset(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetDataset', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetDatasetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/CreateArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.CreateArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def AddTag(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/AddTag', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.AddTagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListArtifacts(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListArtifacts', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListArtifactsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDatasets(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ListDatasets', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ListDatasetsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateArtifact(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/UpdateArtifact', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.UpdateArtifactResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetOrExtendReservation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/GetOrExtendReservation', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.GetOrExtendReservationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ReleaseReservation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/datacatalog.DataCatalog/ReleaseReservation', - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationRequest.SerializeToString, - flyteidl_dot_datacatalog_dot_datacatalog__pb2.ReleaseReservationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/event/__init__.py b/flyteidl/gen/pb_python/flyteidl/event/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py deleted file mode 100644 index b7035b32b5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/event/cloudevents.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.event import event_pb2 as flyteidl_dot_event_dot_event__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 -from flyteidl.core import artifact_id_pb2 as flyteidl_dot_core_dot_artifact__id__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/event/cloudevents.proto\x12\x0e\x66lyteidl.event\x1a\x1a\x66lyteidl/event/event.proto\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1d\x66lyteidl/core/interface.proto\x1a\x1f\x66lyteidl/core/artifact_id.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c\x04\n\x1b\x43loudEventWorkflowExecution\x12\x43\n\traw_event\x18\x01 \x01(\x0b\x32&.flyteidl.event.WorkflowExecutionEventR\x08rawEvent\x12:\n\x0boutput_data\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x03 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x04 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x05 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12[\n\x13reference_execution\x18\x06 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x12referenceExecution\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"\x81\x04\n\x17\x43loudEventNodeExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.NodeExecutionEventR\x08rawEvent\x12H\n\x0ctask_exec_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\ntaskExecId\x12:\n\x0boutput_data\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\noutputData\x12H\n\x10output_interface\x18\x04 \x01(\x0b\x32\x1d.flyteidl.core.TypedInterfaceR\x0foutputInterface\x12\x38\n\ninput_data\x18\x05 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\tinputData\x12<\n\x0c\x61rtifact_ids\x18\x06 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12\x1c\n\tprincipal\x18\x07 \x01(\tR\tprincipal\x12?\n\x0elaunch_plan_id\x18\x08 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\"Z\n\x17\x43loudEventTaskExecution\x12?\n\traw_event\x18\x01 \x01(\x0b\x32\".flyteidl.event.TaskExecutionEventR\x08rawEvent\"\xe7\x02\n\x18\x43loudEventExecutionStart\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12?\n\x0elaunch_plan_id\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x0claunchPlanId\x12:\n\x0bworkflow_id\x18\x03 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\nworkflowId\x12<\n\x0c\x61rtifact_ids\x18\x04 \x03(\x0b\x32\x19.flyteidl.core.ArtifactIDR\x0b\x61rtifactIds\x12#\n\rartifact_keys\x18\x05 \x03(\tR\x0c\x61rtifactKeys\x12\x1c\n\tprincipal\x18\x06 \x01(\tR\tprincipalB\xbc\x01\n\x12\x63om.flyteidl.eventB\x10\x43loudeventsProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.cloudevents_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\020CloudeventsProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' - _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_start=240 - _globals['_CLOUDEVENTWORKFLOWEXECUTION']._serialized_end=780 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_start=783 - _globals['_CLOUDEVENTNODEEXECUTION']._serialized_end=1296 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_start=1298 - _globals['_CLOUDEVENTTASKEXECUTION']._serialized_end=1388 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_start=1391 - _globals['_CLOUDEVENTEXECUTIONSTART']._serialized_end=1750 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi deleted file mode 100644 index 8444627c32..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2.pyi +++ /dev/null @@ -1,74 +0,0 @@ -from flyteidl.event import event_pb2 as _event_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from flyteidl.core import artifact_id_pb2 as _artifact_id_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class CloudEventWorkflowExecution(_message.Message): - __slots__ = ["raw_event", "output_data", "output_interface", "input_data", "artifact_ids", "reference_execution", "principal", "launch_plan_id"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - REFERENCE_EXECUTION_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.WorkflowExecutionEvent - output_data: _literals_pb2.LiteralMap - output_interface: _interface_pb2.TypedInterface - input_data: _literals_pb2.LiteralMap - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - reference_execution: _identifier_pb2.WorkflowExecutionIdentifier - principal: str - launch_plan_id: _identifier_pb2.Identifier - def __init__(self, raw_event: _Optional[_Union[_event_pb2.WorkflowExecutionEvent, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., reference_execution: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CloudEventNodeExecution(_message.Message): - __slots__ = ["raw_event", "task_exec_id", "output_data", "output_interface", "input_data", "artifact_ids", "principal", "launch_plan_id"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - TASK_EXEC_ID_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_INTERFACE_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.NodeExecutionEvent - task_exec_id: _identifier_pb2.TaskExecutionIdentifier - output_data: _literals_pb2.LiteralMap - output_interface: _interface_pb2.TypedInterface - input_data: _literals_pb2.LiteralMap - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - principal: str - launch_plan_id: _identifier_pb2.Identifier - def __init__(self, raw_event: _Optional[_Union[_event_pb2.NodeExecutionEvent, _Mapping]] = ..., task_exec_id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_interface: _Optional[_Union[_interface_pb2.TypedInterface, _Mapping]] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., principal: _Optional[str] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ...) -> None: ... - -class CloudEventTaskExecution(_message.Message): - __slots__ = ["raw_event"] - RAW_EVENT_FIELD_NUMBER: _ClassVar[int] - raw_event: _event_pb2.TaskExecutionEvent - def __init__(self, raw_event: _Optional[_Union[_event_pb2.TaskExecutionEvent, _Mapping]] = ...) -> None: ... - -class CloudEventExecutionStart(_message.Message): - __slots__ = ["execution_id", "launch_plan_id", "workflow_id", "artifact_ids", "artifact_keys", "principal"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - LAUNCH_PLAN_ID_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_IDS_FIELD_NUMBER: _ClassVar[int] - ARTIFACT_KEYS_FIELD_NUMBER: _ClassVar[int] - PRINCIPAL_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - launch_plan_id: _identifier_pb2.Identifier - workflow_id: _identifier_pb2.Identifier - artifact_ids: _containers.RepeatedCompositeFieldContainer[_artifact_id_pb2.ArtifactID] - artifact_keys: _containers.RepeatedScalarFieldContainer[str] - principal: str - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., launch_plan_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., workflow_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., artifact_ids: _Optional[_Iterable[_Union[_artifact_id_pb2.ArtifactID, _Mapping]]] = ..., artifact_keys: _Optional[_Iterable[str]] = ..., principal: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/cloudevents_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py deleted file mode 100644 index f1740e326a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.py +++ /dev/null @@ -1,60 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/event/event.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import compiler_pb2 as flyteidl_dot_core_dot_compiler__pb2 -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import catalog_pb2 as flyteidl_dot_core_dot_catalog__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/event/event.proto\x12\x0e\x66lyteidl.event\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x1c\x66lyteidl/core/compiler.proto\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1b\x66lyteidl/core/catalog.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xaa\x03\n\x16WorkflowExecutionEvent\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12<\n\x05phase\x18\x03 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1f\n\noutput_uri\x18\x05 \x01(\tH\x00R\toutputUri\x12\x35\n\x05\x65rror\x18\x06 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x00R\x05\x65rror\x12<\n\x0boutput_data\x18\x07 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\noutputDataB\x0f\n\routput_result\"\xaa\t\n\x12NodeExecutionEvent\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x02id\x12\x1f\n\x0bproducer_id\x18\x02 \x01(\tR\nproducerId\x12\x38\n\x05phase\x18\x03 \x01(\x0e\x32\".flyteidl.core.NodeExecution.PhaseR\x05phase\x12;\n\x0boccurred_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x05 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x14 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\x06 \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\x07 \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x0f \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\\\n\x16workflow_node_metadata\x18\x08 \x01(\x0b\x32$.flyteidl.event.WorkflowNodeMetadataH\x02R\x14workflowNodeMetadata\x12P\n\x12task_node_metadata\x18\x0e \x01(\x0b\x32 .flyteidl.event.TaskNodeMetadataH\x02R\x10taskNodeMetadata\x12]\n\x14parent_task_metadata\x18\t \x01(\x0b\x32+.flyteidl.event.ParentTaskExecutionMetadataR\x12parentTaskMetadata\x12]\n\x14parent_node_metadata\x18\n \x01(\x0b\x32+.flyteidl.event.ParentNodeExecutionMetadataR\x12parentNodeMetadata\x12\x1f\n\x0bretry_group\x18\x0b \x01(\tR\nretryGroup\x12 \n\x0cspec_node_id\x18\x0c \x01(\tR\nspecNodeId\x12\x1b\n\tnode_name\x18\r \x01(\tR\x08nodeName\x12#\n\revent_version\x18\x10 \x01(\x05R\x0c\x65ventVersion\x12\x1b\n\tis_parent\x18\x11 \x01(\x08R\x08isParent\x12\x1d\n\nis_dynamic\x18\x12 \x01(\x08R\tisDynamic\x12\x19\n\x08\x64\x65\x63k_uri\x18\x13 \x01(\tR\x07\x64\x65\x63kUri\x12;\n\x0breported_at\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x19\n\x08is_array\x18\x16 \x01(\x08R\x07isArrayB\r\n\x0binput_valueB\x0f\n\routput_resultB\x11\n\x0ftarget_metadata\"e\n\x14WorkflowNodeMetadata\x12M\n\x0c\x65xecution_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x0b\x65xecutionId\"\xf1\x02\n\x10TaskNodeMetadata\x12\x44\n\x0c\x63\x61\x63he_status\x18\x01 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12?\n\x0b\x63\x61talog_key\x18\x02 \x01(\x0b\x32\x1e.flyteidl.core.CatalogMetadataR\ncatalogKey\x12W\n\x12reservation_status\x18\x03 \x01(\x0e\x32(.flyteidl.core.CatalogReservation.StatusR\x11reservationStatus\x12%\n\x0e\x63heckpoint_uri\x18\x04 \x01(\tR\rcheckpointUri\x12V\n\x10\x64ynamic_workflow\x18\x10 \x01(\x0b\x32+.flyteidl.event.DynamicWorkflowNodeMetadataR\x0f\x64ynamicWorkflow\"\xce\x01\n\x1b\x44ynamicWorkflowNodeMetadata\x12)\n\x02id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x02id\x12S\n\x11\x63ompiled_workflow\x18\x02 \x01(\x0b\x32&.flyteidl.core.CompiledWorkflowClosureR\x10\x63ompiledWorkflow\x12/\n\x14\x64ynamic_job_spec_uri\x18\x03 \x01(\tR\x11\x64ynamicJobSpecUri\"U\n\x1bParentTaskExecutionMetadata\x12\x36\n\x02id\x18\x01 \x01(\x0b\x32&.flyteidl.core.TaskExecutionIdentifierR\x02id\"6\n\x1bParentNodeExecutionMetadata\x12\x17\n\x07node_id\x18\x01 \x01(\tR\x06nodeId\"b\n\x0b\x45ventReason\x12\x16\n\x06reason\x18\x01 \x01(\tR\x06reason\x12;\n\x0boccurred_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\"\x97\x08\n\x12TaskExecutionEvent\x12\x32\n\x07task_id\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.IdentifierR\x06taskId\x12_\n\x18parent_node_execution_id\x18\x02 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierR\x15parentNodeExecutionId\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x1f\n\x0bproducer_id\x18\x05 \x01(\tR\nproducerId\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\x12;\n\x0boccurred_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\noccurredAt\x12\x1d\n\tinput_uri\x18\x08 \x01(\tH\x00R\x08inputUri\x12:\n\ninput_data\x18\x13 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\tinputData\x12\x1f\n\noutput_uri\x18\t \x01(\tH\x01R\toutputUri\x12\x35\n\x05\x65rror\x18\n \x01(\x0b\x32\x1d.flyteidl.core.ExecutionErrorH\x01R\x05\x65rror\x12<\n\x0boutput_data\x18\x11 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x01R\noutputData\x12\x38\n\x0b\x63ustom_info\x18\x0b \x01(\x0b\x32\x17.google.protobuf.StructR\ncustomInfo\x12#\n\rphase_version\x18\x0c \x01(\rR\x0cphaseVersion\x12\x1a\n\x06reason\x18\r \x01(\tB\x02\x18\x01R\x06reason\x12\x35\n\x07reasons\x18\x15 \x03(\x0b\x32\x1b.flyteidl.event.EventReasonR\x07reasons\x12\x1b\n\ttask_type\x18\x0e \x01(\tR\x08taskType\x12\x41\n\x08metadata\x18\x10 \x01(\x0b\x32%.flyteidl.event.TaskExecutionMetadataR\x08metadata\x12#\n\revent_version\x18\x12 \x01(\x05R\x0c\x65ventVersion\x12;\n\x0breported_at\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAtB\r\n\x0binput_valueB\x0f\n\routput_result\"\x9e\x02\n\x14\x45xternalResourceInfo\x12\x1f\n\x0b\x65xternal_id\x18\x01 \x01(\tR\nexternalId\x12\x14\n\x05index\x18\x02 \x01(\rR\x05index\x12#\n\rretry_attempt\x18\x03 \x01(\rR\x0cretryAttempt\x12\x38\n\x05phase\x18\x04 \x01(\x0e\x32\".flyteidl.core.TaskExecution.PhaseR\x05phase\x12\x44\n\x0c\x63\x61\x63he_status\x18\x05 \x01(\x0e\x32!.flyteidl.core.CatalogCacheStatusR\x0b\x63\x61\x63heStatus\x12*\n\x04logs\x18\x06 \x03(\x0b\x32\x16.flyteidl.core.TaskLogR\x04logs\"[\n\x10ResourcePoolInfo\x12)\n\x10\x61llocation_token\x18\x01 \x01(\tR\x0f\x61llocationToken\x12\x1c\n\tnamespace\x18\x02 \x01(\tR\tnamespace\"\x9d\x03\n\x15TaskExecutionMetadata\x12%\n\x0egenerated_name\x18\x01 \x01(\tR\rgeneratedName\x12S\n\x12\x65xternal_resources\x18\x02 \x03(\x0b\x32$.flyteidl.event.ExternalResourceInfoR\x11\x65xternalResources\x12N\n\x12resource_pool_info\x18\x03 \x03(\x0b\x32 .flyteidl.event.ResourcePoolInfoR\x10resourcePoolInfo\x12+\n\x11plugin_identifier\x18\x04 \x01(\tR\x10pluginIdentifier\x12Z\n\x0einstance_class\x18\x10 \x01(\x0e\x32\x33.flyteidl.event.TaskExecutionMetadata.InstanceClassR\rinstanceClass\"/\n\rInstanceClass\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\x11\n\rINTERRUPTIBLE\x10\x01\x42\xb6\x01\n\x12\x63om.flyteidl.eventB\nEventProtoP\x01Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\xa2\x02\x03\x46\x45X\xaa\x02\x0e\x46lyteidl.Event\xca\x02\x0e\x46lyteidl\\Event\xe2\x02\x1a\x46lyteidl\\Event\\GPBMetadata\xea\x02\x0f\x46lyteidl::Eventb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.event.event_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\022com.flyteidl.eventB\nEventProtoP\001Z;github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/event\242\002\003FEX\252\002\016Flyteidl.Event\312\002\016Flyteidl\\Event\342\002\032Flyteidl\\Event\\GPBMetadata\352\002\017Flyteidl::Event' - _TASKEXECUTIONEVENT.fields_by_name['reason']._options = None - _TASKEXECUTIONEVENT.fields_by_name['reason']._serialized_options = b'\030\001' - _globals['_WORKFLOWEXECUTIONEVENT']._serialized_start=262 - _globals['_WORKFLOWEXECUTIONEVENT']._serialized_end=688 - _globals['_NODEEXECUTIONEVENT']._serialized_start=691 - _globals['_NODEEXECUTIONEVENT']._serialized_end=1885 - _globals['_WORKFLOWNODEMETADATA']._serialized_start=1887 - _globals['_WORKFLOWNODEMETADATA']._serialized_end=1988 - _globals['_TASKNODEMETADATA']._serialized_start=1991 - _globals['_TASKNODEMETADATA']._serialized_end=2360 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_start=2363 - _globals['_DYNAMICWORKFLOWNODEMETADATA']._serialized_end=2569 - _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_start=2571 - _globals['_PARENTTASKEXECUTIONMETADATA']._serialized_end=2656 - _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_start=2658 - _globals['_PARENTNODEEXECUTIONMETADATA']._serialized_end=2712 - _globals['_EVENTREASON']._serialized_start=2714 - _globals['_EVENTREASON']._serialized_end=2812 - _globals['_TASKEXECUTIONEVENT']._serialized_start=2815 - _globals['_TASKEXECUTIONEVENT']._serialized_end=3862 - _globals['_EXTERNALRESOURCEINFO']._serialized_start=3865 - _globals['_EXTERNALRESOURCEINFO']._serialized_end=4151 - _globals['_RESOURCEPOOLINFO']._serialized_start=4153 - _globals['_RESOURCEPOOLINFO']._serialized_end=4244 - _globals['_TASKEXECUTIONMETADATA']._serialized_start=4247 - _globals['_TASKEXECUTIONMETADATA']._serialized_end=4660 - _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_start=4613 - _globals['_TASKEXECUTIONMETADATA_INSTANCECLASS']._serialized_end=4660 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi deleted file mode 100644 index 3297975f5d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2.pyi +++ /dev/null @@ -1,218 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import compiler_pb2 as _compiler_pb2 -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import catalog_pb2 as _catalog_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class WorkflowExecutionEvent(_message.Message): - __slots__ = ["execution_id", "producer_id", "phase", "occurred_at", "output_uri", "error", "output_data"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - producer_id: str - phase: _execution_pb2.WorkflowExecution.Phase - occurred_at: _timestamp_pb2.Timestamp - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class NodeExecutionEvent(_message.Message): - __slots__ = ["id", "producer_id", "phase", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "workflow_node_metadata", "task_node_metadata", "parent_task_metadata", "parent_node_metadata", "retry_group", "spec_node_id", "node_name", "event_version", "is_parent", "is_dynamic", "deck_uri", "reported_at", "is_array"] - ID_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - TASK_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - PARENT_TASK_METADATA_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_METADATA_FIELD_NUMBER: _ClassVar[int] - RETRY_GROUP_FIELD_NUMBER: _ClassVar[int] - SPEC_NODE_ID_FIELD_NUMBER: _ClassVar[int] - NODE_NAME_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - IS_PARENT_FIELD_NUMBER: _ClassVar[int] - IS_DYNAMIC_FIELD_NUMBER: _ClassVar[int] - DECK_URI_FIELD_NUMBER: _ClassVar[int] - REPORTED_AT_FIELD_NUMBER: _ClassVar[int] - IS_ARRAY_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.NodeExecutionIdentifier - producer_id: str - phase: _execution_pb2.NodeExecution.Phase - occurred_at: _timestamp_pb2.Timestamp - input_uri: str - input_data: _literals_pb2.LiteralMap - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - workflow_node_metadata: WorkflowNodeMetadata - task_node_metadata: TaskNodeMetadata - parent_task_metadata: ParentTaskExecutionMetadata - parent_node_metadata: ParentNodeExecutionMetadata - retry_group: str - spec_node_id: str - node_name: str - event_version: int - is_parent: bool - is_dynamic: bool - deck_uri: str - reported_at: _timestamp_pb2.Timestamp - is_array: bool - def __init__(self, id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., producer_id: _Optional[str] = ..., phase: _Optional[_Union[_execution_pb2.NodeExecution.Phase, str]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., workflow_node_metadata: _Optional[_Union[WorkflowNodeMetadata, _Mapping]] = ..., task_node_metadata: _Optional[_Union[TaskNodeMetadata, _Mapping]] = ..., parent_task_metadata: _Optional[_Union[ParentTaskExecutionMetadata, _Mapping]] = ..., parent_node_metadata: _Optional[_Union[ParentNodeExecutionMetadata, _Mapping]] = ..., retry_group: _Optional[str] = ..., spec_node_id: _Optional[str] = ..., node_name: _Optional[str] = ..., event_version: _Optional[int] = ..., is_parent: bool = ..., is_dynamic: bool = ..., deck_uri: _Optional[str] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., is_array: bool = ...) -> None: ... - -class WorkflowNodeMetadata(_message.Message): - __slots__ = ["execution_id"] - EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - execution_id: _identifier_pb2.WorkflowExecutionIdentifier - def __init__(self, execution_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class TaskNodeMetadata(_message.Message): - __slots__ = ["cache_status", "catalog_key", "reservation_status", "checkpoint_uri", "dynamic_workflow"] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - CATALOG_KEY_FIELD_NUMBER: _ClassVar[int] - RESERVATION_STATUS_FIELD_NUMBER: _ClassVar[int] - CHECKPOINT_URI_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - cache_status: _catalog_pb2.CatalogCacheStatus - catalog_key: _catalog_pb2.CatalogMetadata - reservation_status: _catalog_pb2.CatalogReservation.Status - checkpoint_uri: str - dynamic_workflow: DynamicWorkflowNodeMetadata - def __init__(self, cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., catalog_key: _Optional[_Union[_catalog_pb2.CatalogMetadata, _Mapping]] = ..., reservation_status: _Optional[_Union[_catalog_pb2.CatalogReservation.Status, str]] = ..., checkpoint_uri: _Optional[str] = ..., dynamic_workflow: _Optional[_Union[DynamicWorkflowNodeMetadata, _Mapping]] = ...) -> None: ... - -class DynamicWorkflowNodeMetadata(_message.Message): - __slots__ = ["id", "compiled_workflow", "dynamic_job_spec_uri"] - ID_FIELD_NUMBER: _ClassVar[int] - COMPILED_WORKFLOW_FIELD_NUMBER: _ClassVar[int] - DYNAMIC_JOB_SPEC_URI_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.Identifier - compiled_workflow: _compiler_pb2.CompiledWorkflowClosure - dynamic_job_spec_uri: str - def __init__(self, id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., compiled_workflow: _Optional[_Union[_compiler_pb2.CompiledWorkflowClosure, _Mapping]] = ..., dynamic_job_spec_uri: _Optional[str] = ...) -> None: ... - -class ParentTaskExecutionMetadata(_message.Message): - __slots__ = ["id"] - ID_FIELD_NUMBER: _ClassVar[int] - id: _identifier_pb2.TaskExecutionIdentifier - def __init__(self, id: _Optional[_Union[_identifier_pb2.TaskExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class ParentNodeExecutionMetadata(_message.Message): - __slots__ = ["node_id"] - NODE_ID_FIELD_NUMBER: _ClassVar[int] - node_id: str - def __init__(self, node_id: _Optional[str] = ...) -> None: ... - -class EventReason(_message.Message): - __slots__ = ["reason", "occurred_at"] - REASON_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - reason: str - occurred_at: _timestamp_pb2.Timestamp - def __init__(self, reason: _Optional[str] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class TaskExecutionEvent(_message.Message): - __slots__ = ["task_id", "parent_node_execution_id", "retry_attempt", "phase", "producer_id", "logs", "occurred_at", "input_uri", "input_data", "output_uri", "error", "output_data", "custom_info", "phase_version", "reason", "reasons", "task_type", "metadata", "event_version", "reported_at"] - TASK_ID_FIELD_NUMBER: _ClassVar[int] - PARENT_NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - PRODUCER_ID_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - OCCURRED_AT_FIELD_NUMBER: _ClassVar[int] - INPUT_URI_FIELD_NUMBER: _ClassVar[int] - INPUT_DATA_FIELD_NUMBER: _ClassVar[int] - OUTPUT_URI_FIELD_NUMBER: _ClassVar[int] - ERROR_FIELD_NUMBER: _ClassVar[int] - OUTPUT_DATA_FIELD_NUMBER: _ClassVar[int] - CUSTOM_INFO_FIELD_NUMBER: _ClassVar[int] - PHASE_VERSION_FIELD_NUMBER: _ClassVar[int] - REASON_FIELD_NUMBER: _ClassVar[int] - REASONS_FIELD_NUMBER: _ClassVar[int] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - METADATA_FIELD_NUMBER: _ClassVar[int] - EVENT_VERSION_FIELD_NUMBER: _ClassVar[int] - REPORTED_AT_FIELD_NUMBER: _ClassVar[int] - task_id: _identifier_pb2.Identifier - parent_node_execution_id: _identifier_pb2.NodeExecutionIdentifier - retry_attempt: int - phase: _execution_pb2.TaskExecution.Phase - producer_id: str - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - occurred_at: _timestamp_pb2.Timestamp - input_uri: str - input_data: _literals_pb2.LiteralMap - output_uri: str - error: _execution_pb2.ExecutionError - output_data: _literals_pb2.LiteralMap - custom_info: _struct_pb2.Struct - phase_version: int - reason: str - reasons: _containers.RepeatedCompositeFieldContainer[EventReason] - task_type: str - metadata: TaskExecutionMetadata - event_version: int - reported_at: _timestamp_pb2.Timestamp - def __init__(self, task_id: _Optional[_Union[_identifier_pb2.Identifier, _Mapping]] = ..., parent_node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., producer_id: _Optional[str] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ..., occurred_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., input_uri: _Optional[str] = ..., input_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., output_uri: _Optional[str] = ..., error: _Optional[_Union[_execution_pb2.ExecutionError, _Mapping]] = ..., output_data: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., custom_info: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., phase_version: _Optional[int] = ..., reason: _Optional[str] = ..., reasons: _Optional[_Iterable[_Union[EventReason, _Mapping]]] = ..., task_type: _Optional[str] = ..., metadata: _Optional[_Union[TaskExecutionMetadata, _Mapping]] = ..., event_version: _Optional[int] = ..., reported_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class ExternalResourceInfo(_message.Message): - __slots__ = ["external_id", "index", "retry_attempt", "phase", "cache_status", "logs"] - EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int] - INDEX_FIELD_NUMBER: _ClassVar[int] - RETRY_ATTEMPT_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - CACHE_STATUS_FIELD_NUMBER: _ClassVar[int] - LOGS_FIELD_NUMBER: _ClassVar[int] - external_id: str - index: int - retry_attempt: int - phase: _execution_pb2.TaskExecution.Phase - cache_status: _catalog_pb2.CatalogCacheStatus - logs: _containers.RepeatedCompositeFieldContainer[_execution_pb2.TaskLog] - def __init__(self, external_id: _Optional[str] = ..., index: _Optional[int] = ..., retry_attempt: _Optional[int] = ..., phase: _Optional[_Union[_execution_pb2.TaskExecution.Phase, str]] = ..., cache_status: _Optional[_Union[_catalog_pb2.CatalogCacheStatus, str]] = ..., logs: _Optional[_Iterable[_Union[_execution_pb2.TaskLog, _Mapping]]] = ...) -> None: ... - -class ResourcePoolInfo(_message.Message): - __slots__ = ["allocation_token", "namespace"] - ALLOCATION_TOKEN_FIELD_NUMBER: _ClassVar[int] - NAMESPACE_FIELD_NUMBER: _ClassVar[int] - allocation_token: str - namespace: str - def __init__(self, allocation_token: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ... - -class TaskExecutionMetadata(_message.Message): - __slots__ = ["generated_name", "external_resources", "resource_pool_info", "plugin_identifier", "instance_class"] - class InstanceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - DEFAULT: _ClassVar[TaskExecutionMetadata.InstanceClass] - INTERRUPTIBLE: _ClassVar[TaskExecutionMetadata.InstanceClass] - DEFAULT: TaskExecutionMetadata.InstanceClass - INTERRUPTIBLE: TaskExecutionMetadata.InstanceClass - GENERATED_NAME_FIELD_NUMBER: _ClassVar[int] - EXTERNAL_RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESOURCE_POOL_INFO_FIELD_NUMBER: _ClassVar[int] - PLUGIN_IDENTIFIER_FIELD_NUMBER: _ClassVar[int] - INSTANCE_CLASS_FIELD_NUMBER: _ClassVar[int] - generated_name: str - external_resources: _containers.RepeatedCompositeFieldContainer[ExternalResourceInfo] - resource_pool_info: _containers.RepeatedCompositeFieldContainer[ResourcePoolInfo] - plugin_identifier: str - instance_class: TaskExecutionMetadata.InstanceClass - def __init__(self, generated_name: _Optional[str] = ..., external_resources: _Optional[_Iterable[_Union[ExternalResourceInfo, _Mapping]]] = ..., resource_pool_info: _Optional[_Iterable[_Union[ResourcePoolInfo, _Mapping]]] = ..., plugin_identifier: _Optional[str] = ..., instance_class: _Optional[_Union[TaskExecutionMetadata.InstanceClass, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/event/event_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py deleted file mode 100644 index 7334e20277..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/array_job.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/plugins/array_job.proto\x12\x10\x66lyteidl.plugins\"\xa9\x01\n\x08\x41rrayJob\x12 \n\x0bparallelism\x18\x01 \x01(\x03R\x0bparallelism\x12\x12\n\x04size\x18\x02 \x01(\x03R\x04size\x12%\n\rmin_successes\x18\x03 \x01(\x03H\x00R\x0cminSuccesses\x12,\n\x11min_success_ratio\x18\x04 \x01(\x02H\x00R\x0fminSuccessRatioB\x12\n\x10success_criteriaB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rArrayJobProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.array_job_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rArrayJobProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_ARRAYJOB']._serialized_start=55 - _globals['_ARRAYJOB']._serialized_end=224 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi deleted file mode 100644 index 160cb5f007..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArrayJob(_message.Message): - __slots__ = ["parallelism", "size", "min_successes", "min_success_ratio"] - PARALLELISM_FIELD_NUMBER: _ClassVar[int] - SIZE_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESSES_FIELD_NUMBER: _ClassVar[int] - MIN_SUCCESS_RATIO_FIELD_NUMBER: _ClassVar[int] - parallelism: int - size: int - min_successes: int - min_success_ratio: float - def __init__(self, parallelism: _Optional[int] = ..., size: _Optional[int] = ..., min_successes: _Optional[int] = ..., min_success_ratio: _Optional[float] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/array_job_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py deleted file mode 100644 index 931fd999ed..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.py +++ /dev/null @@ -1,32 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/dask.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/plugins/dask.proto\x12\x10\x66lyteidl.plugins\x1a\x19\x66lyteidl/core/tasks.proto\"\x85\x01\n\x07\x44\x61skJob\x12=\n\tscheduler\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.DaskSchedulerR\tscheduler\x12;\n\x07workers\x18\x02 \x01(\x0b\x32!.flyteidl.plugins.DaskWorkerGroupR\x07workers\"]\n\rDaskScheduler\x12\x14\n\x05image\x18\x01 \x01(\tR\x05image\x12\x36\n\tresources\x18\x02 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\"\x8b\x01\n\x0f\x44\x61skWorkerGroup\x12*\n\x11number_of_workers\x18\x01 \x01(\rR\x0fnumberOfWorkers\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresourcesB\xc1\x01\n\x14\x63om.flyteidl.pluginsB\tDaskProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.dask_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\tDaskProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DASKJOB']._serialized_start=77 - _globals['_DASKJOB']._serialized_end=210 - _globals['_DASKSCHEDULER']._serialized_start=212 - _globals['_DASKSCHEDULER']._serialized_end=305 - _globals['_DASKWORKERGROUP']._serialized_start=308 - _globals['_DASKWORKERGROUP']._serialized_end=447 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi deleted file mode 100644 index df94d33778..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2.pyi +++ /dev/null @@ -1,32 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DaskJob(_message.Message): - __slots__ = ["scheduler", "workers"] - SCHEDULER_FIELD_NUMBER: _ClassVar[int] - WORKERS_FIELD_NUMBER: _ClassVar[int] - scheduler: DaskScheduler - workers: DaskWorkerGroup - def __init__(self, scheduler: _Optional[_Union[DaskScheduler, _Mapping]] = ..., workers: _Optional[_Union[DaskWorkerGroup, _Mapping]] = ...) -> None: ... - -class DaskScheduler(_message.Message): - __slots__ = ["image", "resources"] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - image: str - resources: _tasks_pb2.Resources - def __init__(self, image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... - -class DaskWorkerGroup(_message.Message): - __slots__ = ["number_of_workers", "image", "resources"] - NUMBER_OF_WORKERS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - number_of_workers: int - image: str - resources: _tasks_pb2.Resources - def __init__(self, number_of_workers: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/dask_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py deleted file mode 100644 index d09a4aba41..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/common.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&flyteidl/plugins/kubeflow/common.proto\x12\x19\x66lyteidl.plugins.kubeflow\"\xfa\x01\n\tRunPolicy\x12S\n\x10\x63lean_pod_policy\x18\x01 \x01(\x0e\x32).flyteidl.plugins.kubeflow.CleanPodPolicyR\x0e\x63leanPodPolicy\x12;\n\x1attl_seconds_after_finished\x18\x02 \x01(\x05R\x17ttlSecondsAfterFinished\x12\x36\n\x17\x61\x63tive_deadline_seconds\x18\x03 \x01(\x05R\x15\x61\x63tiveDeadlineSeconds\x12#\n\rbackoff_limit\x18\x04 \x01(\x05R\x0c\x62\x61\x63koffLimit*c\n\rRestartPolicy\x12\x18\n\x14RESTART_POLICY_NEVER\x10\x00\x12\x1d\n\x19RESTART_POLICY_ON_FAILURE\x10\x01\x12\x19\n\x15RESTART_POLICY_ALWAYS\x10\x02*`\n\x0e\x43leanPodPolicy\x12\x18\n\x14\x43LEANPOD_POLICY_NONE\x10\x00\x12\x1b\n\x17\x43LEANPOD_POLICY_RUNNING\x10\x01\x12\x17\n\x13\x43LEANPOD_POLICY_ALL\x10\x02\x42\xf1\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0b\x43ommonProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.common_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\013CommonProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_RESTARTPOLICY']._serialized_start=322 - _globals['_RESTARTPOLICY']._serialized_end=421 - _globals['_CLEANPODPOLICY']._serialized_start=423 - _globals['_CLEANPODPOLICY']._serialized_end=519 - _globals['_RUNPOLICY']._serialized_start=70 - _globals['_RUNPOLICY']._serialized_end=320 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi deleted file mode 100644 index 916c3344b2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2.pyi +++ /dev/null @@ -1,36 +0,0 @@ -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class RestartPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RESTART_POLICY_NEVER: _ClassVar[RestartPolicy] - RESTART_POLICY_ON_FAILURE: _ClassVar[RestartPolicy] - RESTART_POLICY_ALWAYS: _ClassVar[RestartPolicy] - -class CleanPodPolicy(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - CLEANPOD_POLICY_NONE: _ClassVar[CleanPodPolicy] - CLEANPOD_POLICY_RUNNING: _ClassVar[CleanPodPolicy] - CLEANPOD_POLICY_ALL: _ClassVar[CleanPodPolicy] -RESTART_POLICY_NEVER: RestartPolicy -RESTART_POLICY_ON_FAILURE: RestartPolicy -RESTART_POLICY_ALWAYS: RestartPolicy -CLEANPOD_POLICY_NONE: CleanPodPolicy -CLEANPOD_POLICY_RUNNING: CleanPodPolicy -CLEANPOD_POLICY_ALL: CleanPodPolicy - -class RunPolicy(_message.Message): - __slots__ = ["clean_pod_policy", "ttl_seconds_after_finished", "active_deadline_seconds", "backoff_limit"] - CLEAN_POD_POLICY_FIELD_NUMBER: _ClassVar[int] - TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] - ACTIVE_DEADLINE_SECONDS_FIELD_NUMBER: _ClassVar[int] - BACKOFF_LIMIT_FIELD_NUMBER: _ClassVar[int] - clean_pod_policy: CleanPodPolicy - ttl_seconds_after_finished: int - active_deadline_seconds: int - backoff_limit: int - def __init__(self, clean_pod_policy: _Optional[_Union[CleanPodPolicy, str]] = ..., ttl_seconds_after_finished: _Optional[int] = ..., active_deadline_seconds: _Optional[int] = ..., backoff_limit: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/common_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py deleted file mode 100644 index 4ed3f22be7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/mpi.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#flyteidl/plugins/kubeflow/mpi.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc9\x02\n\x1a\x44istributedMPITrainingTask\x12\x65\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x11launcher_replicas\x18\x02 \x01(\x0b\x32<.flyteidl.plugins.kubeflow.DistributedMPITrainingReplicaSpecR\x10launcherReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12\x14\n\x05slots\x18\x04 \x01(\x05R\x05slots\"\xf8\x01\n!DistributedMPITrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicy\x12\x18\n\x07\x63ommand\x18\x05 \x03(\tR\x07\x63ommandB\xee\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.mpi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=134 - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=463 - _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_start=466 - _globals['_DISTRIBUTEDMPITRAININGREPLICASPEC']._serialized_end=714 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi deleted file mode 100644 index 6258542993..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedMPITrainingTask(_message.Message): - __slots__ = ["worker_replicas", "launcher_replicas", "run_policy", "slots"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - SLOTS_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedMPITrainingReplicaSpec - launcher_replicas: DistributedMPITrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - slots: int - def __init__(self, worker_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., launcher_replicas: _Optional[_Union[DistributedMPITrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., slots: _Optional[int] = ...) -> None: ... - -class DistributedMPITrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy", "command"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - COMMAND_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - command: _containers.RepeatedScalarFieldContainer[str] - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ..., command: _Optional[_Iterable[str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/mpi_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py deleted file mode 100644 index 46f574228a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/pytorch.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'flyteidl/plugins/kubeflow/pytorch.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x8c\x03\n\x1e\x44istributedPyTorchTrainingTask\x12i\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0eworkerReplicas\x12i\n\x0fmaster_replicas\x18\x02 \x01(\x0b\x32@.flyteidl.plugins.kubeflow.DistributedPyTorchTrainingReplicaSpecR\x0emasterReplicas\x12\x43\n\nrun_policy\x18\x03 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12O\n\x0e\x65lastic_config\x18\x04 \x01(\x0b\x32(.flyteidl.plugins.kubeflow.ElasticConfigR\relasticConfig\"\xe2\x01\n%DistributedPyTorchTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf2\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.pytorch_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_ELASTICCONFIG']._serialized_start=138 - _globals['_ELASTICCONFIG']._serialized_end=331 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=334 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=730 - _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_start=733 - _globals['_DISTRIBUTEDPYTORCHTRAININGREPLICASPEC']._serialized_end=959 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi deleted file mode 100644 index ee6599ad82..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2.pyi +++ /dev/null @@ -1,45 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ElasticConfig(_message.Message): - __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] - RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] - MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] - rdzv_backend: str - min_replicas: int - max_replicas: int - nproc_per_node: int - max_restarts: int - def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... - -class DistributedPyTorchTrainingTask(_message.Message): - __slots__ = ["worker_replicas", "master_replicas", "run_policy", "elastic_config"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MASTER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedPyTorchTrainingReplicaSpec - master_replicas: DistributedPyTorchTrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - elastic_config: ElasticConfig - def __init__(self, worker_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., master_replicas: _Optional[_Union[DistributedPyTorchTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... - -class DistributedPyTorchTrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/pytorch_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py deleted file mode 100644 index f0c086f9e7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.py +++ /dev/null @@ -1,31 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/kubeflow/tensorflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.plugins.kubeflow import common_pb2 as flyteidl_dot_plugins_dot_kubeflow_dot_common__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n*flyteidl/plugins/kubeflow/tensorflow.proto\x12\x19\x66lyteidl.plugins.kubeflow\x1a\x19\x66lyteidl/core/tasks.proto\x1a&flyteidl/plugins/kubeflow/common.proto\"\x9c\x04\n!DistributedTensorflowTrainingTask\x12l\n\x0fworker_replicas\x18\x01 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x0eworkerReplicas\x12\x64\n\x0bps_replicas\x18\x02 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\npsReplicas\x12j\n\x0e\x63hief_replicas\x18\x03 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\rchiefReplicas\x12\x43\n\nrun_policy\x18\x04 \x01(\x0b\x32$.flyteidl.plugins.kubeflow.RunPolicyR\trunPolicy\x12r\n\x12\x65valuator_replicas\x18\x05 \x01(\x0b\x32\x43.flyteidl.plugins.kubeflow.DistributedTensorflowTrainingReplicaSpecR\x11\x65valuatorReplicas\"\xe5\x01\n(DistributedTensorflowTrainingReplicaSpec\x12\x1a\n\x08replicas\x18\x01 \x01(\x05R\x08replicas\x12\x14\n\x05image\x18\x02 \x01(\tR\x05image\x12\x36\n\tresources\x18\x03 \x01(\x0b\x32\x18.flyteidl.core.ResourcesR\tresources\x12O\n\x0erestart_policy\x18\x04 \x01(\x0e\x32(.flyteidl.plugins.kubeflow.RestartPolicyR\rrestartPolicyB\xf5\x01\n\x1d\x63om.flyteidl.plugins.kubeflowB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PK\xaa\x02\x19\x46lyteidl.Plugins.Kubeflow\xca\x02\x19\x46lyteidl\\Plugins\\Kubeflow\xe2\x02%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\xea\x02\x1b\x46lyteidl::Plugins::Kubeflowb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.kubeflow.tensorflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\035com.flyteidl.plugins.kubeflowB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPK\252\002\031Flyteidl.Plugins.Kubeflow\312\002\031Flyteidl\\Plugins\\Kubeflow\342\002%Flyteidl\\Plugins\\Kubeflow\\GPBMetadata\352\002\033Flyteidl::Plugins::Kubeflow' - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=141 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=681 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_start=684 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGREPLICASPEC']._serialized_end=913 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi deleted file mode 100644 index 4a999f70e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2.pyi +++ /dev/null @@ -1,33 +0,0 @@ -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.plugins.kubeflow import common_pb2 as _common_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedTensorflowTrainingTask(_message.Message): - __slots__ = ["worker_replicas", "ps_replicas", "chief_replicas", "run_policy", "evaluator_replicas"] - WORKER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] - CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RUN_POLICY_FIELD_NUMBER: _ClassVar[int] - EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] - worker_replicas: DistributedTensorflowTrainingReplicaSpec - ps_replicas: DistributedTensorflowTrainingReplicaSpec - chief_replicas: DistributedTensorflowTrainingReplicaSpec - run_policy: _common_pb2.RunPolicy - evaluator_replicas: DistributedTensorflowTrainingReplicaSpec - def __init__(self, worker_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., ps_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., chief_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ..., run_policy: _Optional[_Union[_common_pb2.RunPolicy, _Mapping]] = ..., evaluator_replicas: _Optional[_Union[DistributedTensorflowTrainingReplicaSpec, _Mapping]] = ...) -> None: ... - -class DistributedTensorflowTrainingReplicaSpec(_message.Message): - __slots__ = ["replicas", "image", "resources", "restart_policy"] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - IMAGE_FIELD_NUMBER: _ClassVar[int] - RESOURCES_FIELD_NUMBER: _ClassVar[int] - RESTART_POLICY_FIELD_NUMBER: _ClassVar[int] - replicas: int - image: str - resources: _tasks_pb2.Resources - restart_policy: _common_pb2.RestartPolicy - def __init__(self, replicas: _Optional[int] = ..., image: _Optional[str] = ..., resources: _Optional[_Union[_tasks_pb2.Resources, _Mapping]] = ..., restart_policy: _Optional[_Union[_common_pb2.RestartPolicy, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/kubeflow/tensorflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py deleted file mode 100644 index 7552fe1010..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/mpi.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/mpi.proto\x12\x10\x66lyteidl.plugins\"\x87\x01\n\x1a\x44istributedMPITrainingTask\x12\x1f\n\x0bnum_workers\x18\x01 \x01(\x05R\nnumWorkers\x12\x32\n\x15num_launcher_replicas\x18\x02 \x01(\x05R\x13numLauncherReplicas\x12\x14\n\x05slots\x18\x03 \x01(\x05R\x05slotsB\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08MpiProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.mpi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010MpiProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_start=49 - _globals['_DISTRIBUTEDMPITRAININGTASK']._serialized_end=184 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi deleted file mode 100644 index b907bede41..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2.pyi +++ /dev/null @@ -1,15 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedMPITrainingTask(_message.Message): - __slots__ = ["num_workers", "num_launcher_replicas", "slots"] - NUM_WORKERS_FIELD_NUMBER: _ClassVar[int] - NUM_LAUNCHER_REPLICAS_FIELD_NUMBER: _ClassVar[int] - SLOTS_FIELD_NUMBER: _ClassVar[int] - num_workers: int - num_launcher_replicas: int - slots: int - def __init__(self, num_workers: _Optional[int] = ..., num_launcher_replicas: _Optional[int] = ..., slots: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/mpi_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py deleted file mode 100644 index b70acbd2a5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/presto.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/presto.proto\x12\x10\x66lyteidl.plugins\"\x82\x01\n\x0bPrestoQuery\x12#\n\rrouting_group\x18\x01 \x01(\tR\x0croutingGroup\x12\x18\n\x07\x63\x61talog\x18\x02 \x01(\tR\x07\x63\x61talog\x12\x16\n\x06schema\x18\x03 \x01(\tR\x06schema\x12\x1c\n\tstatement\x18\x04 \x01(\tR\tstatementB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bPrestoProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.presto_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013PrestoProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_PRESTOQUERY']._serialized_start=52 - _globals['_PRESTOQUERY']._serialized_end=182 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi deleted file mode 100644 index 6f185403e4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class PrestoQuery(_message.Message): - __slots__ = ["routing_group", "catalog", "schema", "statement"] - ROUTING_GROUP_FIELD_NUMBER: _ClassVar[int] - CATALOG_FIELD_NUMBER: _ClassVar[int] - SCHEMA_FIELD_NUMBER: _ClassVar[int] - STATEMENT_FIELD_NUMBER: _ClassVar[int] - routing_group: str - catalog: str - schema: str - statement: str - def __init__(self, routing_group: _Optional[str] = ..., catalog: _Optional[str] = ..., schema: _Optional[str] = ..., statement: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/presto_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py deleted file mode 100644 index 03333857ab..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/pytorch.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x66lyteidl/plugins/pytorch.proto\x12\x10\x66lyteidl.plugins\"\xc1\x01\n\rElasticConfig\x12!\n\x0crdzv_backend\x18\x01 \x01(\tR\x0brdzvBackend\x12!\n\x0cmin_replicas\x18\x02 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x03 \x01(\x05R\x0bmaxReplicas\x12$\n\x0enproc_per_node\x18\x04 \x01(\x05R\x0cnprocPerNode\x12!\n\x0cmax_restarts\x18\x05 \x01(\x05R\x0bmaxRestarts\"\x82\x01\n\x1e\x44istributedPyTorchTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x46\n\x0e\x65lastic_config\x18\x02 \x01(\x0b\x32\x1f.flyteidl.plugins.ElasticConfigR\relasticConfigB\xc4\x01\n\x14\x63om.flyteidl.pluginsB\x0cPytorchProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.pytorch_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\014PytorchProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_ELASTICCONFIG']._serialized_start=53 - _globals['_ELASTICCONFIG']._serialized_end=246 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_start=249 - _globals['_DISTRIBUTEDPYTORCHTRAININGTASK']._serialized_end=379 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi deleted file mode 100644 index 882c38d2de..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2.pyi +++ /dev/null @@ -1,27 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ElasticConfig(_message.Message): - __slots__ = ["rdzv_backend", "min_replicas", "max_replicas", "nproc_per_node", "max_restarts"] - RDZV_BACKEND_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - NPROC_PER_NODE_FIELD_NUMBER: _ClassVar[int] - MAX_RESTARTS_FIELD_NUMBER: _ClassVar[int] - rdzv_backend: str - min_replicas: int - max_replicas: int - nproc_per_node: int - max_restarts: int - def __init__(self, rdzv_backend: _Optional[str] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., nproc_per_node: _Optional[int] = ..., max_restarts: _Optional[int] = ...) -> None: ... - -class DistributedPyTorchTrainingTask(_message.Message): - __slots__ = ["workers", "elastic_config"] - WORKERS_FIELD_NUMBER: _ClassVar[int] - ELASTIC_CONFIG_FIELD_NUMBER: _ClassVar[int] - workers: int - elastic_config: ElasticConfig - def __init__(self, workers: _Optional[int] = ..., elastic_config: _Optional[_Union[ElasticConfig, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/pytorch_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py deleted file mode 100644 index d3f6cc135d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/qubole.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/plugins/qubole.proto\x12\x10\x66lyteidl.plugins\"b\n\tHiveQuery\x12\x14\n\x05query\x18\x01 \x01(\tR\x05query\x12\x1f\n\x0btimeout_sec\x18\x02 \x01(\rR\ntimeoutSec\x12\x1e\n\nretryCount\x18\x03 \x01(\rR\nretryCount\"L\n\x13HiveQueryCollection\x12\x35\n\x07queries\x18\x02 \x03(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x07queries\"\xd1\x01\n\rQuboleHiveJob\x12#\n\rcluster_label\x18\x01 \x01(\tR\x0c\x63lusterLabel\x12T\n\x10query_collection\x18\x02 \x01(\x0b\x32%.flyteidl.plugins.HiveQueryCollectionB\x02\x18\x01R\x0fqueryCollection\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\x12\x31\n\x05query\x18\x04 \x01(\x0b\x32\x1b.flyteidl.plugins.HiveQueryR\x05queryB\xc3\x01\n\x14\x63om.flyteidl.pluginsB\x0bQuboleProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.qubole_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\013QuboleProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _QUBOLEHIVEJOB.fields_by_name['query_collection']._options = None - _QUBOLEHIVEJOB.fields_by_name['query_collection']._serialized_options = b'\030\001' - _globals['_HIVEQUERY']._serialized_start=51 - _globals['_HIVEQUERY']._serialized_end=149 - _globals['_HIVEQUERYCOLLECTION']._serialized_start=151 - _globals['_HIVEQUERYCOLLECTION']._serialized_end=227 - _globals['_QUBOLEHIVEJOB']._serialized_start=230 - _globals['_QUBOLEHIVEJOB']._serialized_end=439 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi deleted file mode 100644 index 71e6bd6698..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2.pyi +++ /dev/null @@ -1,34 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class HiveQuery(_message.Message): - __slots__ = ["query", "timeout_sec", "retryCount"] - QUERY_FIELD_NUMBER: _ClassVar[int] - TIMEOUT_SEC_FIELD_NUMBER: _ClassVar[int] - RETRYCOUNT_FIELD_NUMBER: _ClassVar[int] - query: str - timeout_sec: int - retryCount: int - def __init__(self, query: _Optional[str] = ..., timeout_sec: _Optional[int] = ..., retryCount: _Optional[int] = ...) -> None: ... - -class HiveQueryCollection(_message.Message): - __slots__ = ["queries"] - QUERIES_FIELD_NUMBER: _ClassVar[int] - queries: _containers.RepeatedCompositeFieldContainer[HiveQuery] - def __init__(self, queries: _Optional[_Iterable[_Union[HiveQuery, _Mapping]]] = ...) -> None: ... - -class QuboleHiveJob(_message.Message): - __slots__ = ["cluster_label", "query_collection", "tags", "query"] - CLUSTER_LABEL_FIELD_NUMBER: _ClassVar[int] - QUERY_COLLECTION_FIELD_NUMBER: _ClassVar[int] - TAGS_FIELD_NUMBER: _ClassVar[int] - QUERY_FIELD_NUMBER: _ClassVar[int] - cluster_label: str - query_collection: HiveQueryCollection - tags: _containers.RepeatedScalarFieldContainer[str] - query: HiveQuery - def __init__(self, cluster_label: _Optional[str] = ..., query_collection: _Optional[_Union[HiveQueryCollection, _Mapping]] = ..., tags: _Optional[_Iterable[str]] = ..., query: _Optional[_Union[HiveQuery, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/qubole_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py deleted file mode 100644 index 1c5de3b666..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/ray.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1a\x66lyteidl/plugins/ray.proto\x12\x10\x66lyteidl.plugins\"\xe4\x01\n\x06RayJob\x12=\n\x0bray_cluster\x18\x01 \x01(\x0b\x32\x1c.flyteidl.plugins.RayClusterR\nrayCluster\x12\x1f\n\x0bruntime_env\x18\x02 \x01(\tR\nruntimeEnv\x12=\n\x1bshutdown_after_job_finishes\x18\x03 \x01(\x08R\x18shutdownAfterJobFinishes\x12;\n\x1attl_seconds_after_finished\x18\x04 \x01(\x05R\x17ttlSecondsAfterFinished\"\xd3\x01\n\nRayCluster\x12G\n\x0fhead_group_spec\x18\x01 \x01(\x0b\x32\x1f.flyteidl.plugins.HeadGroupSpecR\rheadGroupSpec\x12M\n\x11worker_group_spec\x18\x02 \x03(\x0b\x32!.flyteidl.plugins.WorkerGroupSpecR\x0fworkerGroupSpec\x12-\n\x12\x65nable_autoscaling\x18\x03 \x01(\x08R\x11\x65nableAutoscaling\"\xb1\x01\n\rHeadGroupSpec\x12]\n\x10ray_start_params\x18\x01 \x03(\x0b\x32\x33.flyteidl.plugins.HeadGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x02\n\x0fWorkerGroupSpec\x12\x1d\n\ngroup_name\x18\x01 \x01(\tR\tgroupName\x12\x1a\n\x08replicas\x18\x02 \x01(\x05R\x08replicas\x12!\n\x0cmin_replicas\x18\x03 \x01(\x05R\x0bminReplicas\x12!\n\x0cmax_replicas\x18\x04 \x01(\x05R\x0bmaxReplicas\x12_\n\x10ray_start_params\x18\x05 \x03(\x0b\x32\x35.flyteidl.plugins.WorkerGroupSpec.RayStartParamsEntryR\x0erayStartParams\x1a\x41\n\x13RayStartParamsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc0\x01\n\x14\x63om.flyteidl.pluginsB\x08RayProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.ray_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\010RayProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._options = None - _HEADGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' - _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._options = None - _WORKERGROUPSPEC_RAYSTARTPARAMSENTRY._serialized_options = b'8\001' - _globals['_RAYJOB']._serialized_start=49 - _globals['_RAYJOB']._serialized_end=277 - _globals['_RAYCLUSTER']._serialized_start=280 - _globals['_RAYCLUSTER']._serialized_end=491 - _globals['_HEADGROUPSPEC']._serialized_start=494 - _globals['_HEADGROUPSPEC']._serialized_end=671 - _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 - _globals['_HEADGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 - _globals['_WORKERGROUPSPEC']._serialized_start=674 - _globals['_WORKERGROUPSPEC']._serialized_end=984 - _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_start=606 - _globals['_WORKERGROUPSPEC_RAYSTARTPARAMSENTRY']._serialized_end=671 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi deleted file mode 100644 index 15c78912bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2.pyi +++ /dev/null @@ -1,62 +0,0 @@ -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class RayJob(_message.Message): - __slots__ = ["ray_cluster", "runtime_env", "shutdown_after_job_finishes", "ttl_seconds_after_finished"] - RAY_CLUSTER_FIELD_NUMBER: _ClassVar[int] - RUNTIME_ENV_FIELD_NUMBER: _ClassVar[int] - SHUTDOWN_AFTER_JOB_FINISHES_FIELD_NUMBER: _ClassVar[int] - TTL_SECONDS_AFTER_FINISHED_FIELD_NUMBER: _ClassVar[int] - ray_cluster: RayCluster - runtime_env: str - shutdown_after_job_finishes: bool - ttl_seconds_after_finished: int - def __init__(self, ray_cluster: _Optional[_Union[RayCluster, _Mapping]] = ..., runtime_env: _Optional[str] = ..., shutdown_after_job_finishes: bool = ..., ttl_seconds_after_finished: _Optional[int] = ...) -> None: ... - -class RayCluster(_message.Message): - __slots__ = ["head_group_spec", "worker_group_spec", "enable_autoscaling"] - HEAD_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] - WORKER_GROUP_SPEC_FIELD_NUMBER: _ClassVar[int] - ENABLE_AUTOSCALING_FIELD_NUMBER: _ClassVar[int] - head_group_spec: HeadGroupSpec - worker_group_spec: _containers.RepeatedCompositeFieldContainer[WorkerGroupSpec] - enable_autoscaling: bool - def __init__(self, head_group_spec: _Optional[_Union[HeadGroupSpec, _Mapping]] = ..., worker_group_spec: _Optional[_Iterable[_Union[WorkerGroupSpec, _Mapping]]] = ..., enable_autoscaling: bool = ...) -> None: ... - -class HeadGroupSpec(_message.Message): - __slots__ = ["ray_start_params"] - class RayStartParamsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] - ray_start_params: _containers.ScalarMap[str, str] - def __init__(self, ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... - -class WorkerGroupSpec(_message.Message): - __slots__ = ["group_name", "replicas", "min_replicas", "max_replicas", "ray_start_params"] - class RayStartParamsEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - GROUP_NAME_FIELD_NUMBER: _ClassVar[int] - REPLICAS_FIELD_NUMBER: _ClassVar[int] - MIN_REPLICAS_FIELD_NUMBER: _ClassVar[int] - MAX_REPLICAS_FIELD_NUMBER: _ClassVar[int] - RAY_START_PARAMS_FIELD_NUMBER: _ClassVar[int] - group_name: str - replicas: int - min_replicas: int - max_replicas: int - ray_start_params: _containers.ScalarMap[str, str] - def __init__(self, group_name: _Optional[str] = ..., replicas: _Optional[int] = ..., min_replicas: _Optional[int] = ..., max_replicas: _Optional[int] = ..., ray_start_params: _Optional[_Mapping[str, str]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/ray_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py deleted file mode 100644 index 8ee1759390..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/spark.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/plugins/spark.proto\x12\x10\x66lyteidl.plugins\x1a\x1cgoogle/protobuf/struct.proto\"B\n\x10SparkApplication\".\n\x04Type\x12\n\n\x06PYTHON\x10\x00\x12\x08\n\x04JAVA\x10\x01\x12\t\n\x05SCALA\x10\x02\x12\x05\n\x01R\x10\x03\"\xfe\x04\n\x08SparkJob\x12Q\n\x0f\x61pplicationType\x18\x01 \x01(\x0e\x32\'.flyteidl.plugins.SparkApplication.TypeR\x0f\x61pplicationType\x12\x30\n\x13mainApplicationFile\x18\x02 \x01(\tR\x13mainApplicationFile\x12\x1c\n\tmainClass\x18\x03 \x01(\tR\tmainClass\x12G\n\tsparkConf\x18\x04 \x03(\x0b\x32).flyteidl.plugins.SparkJob.SparkConfEntryR\tsparkConf\x12J\n\nhadoopConf\x18\x05 \x03(\x0b\x32*.flyteidl.plugins.SparkJob.HadoopConfEntryR\nhadoopConf\x12\"\n\x0c\x65xecutorPath\x18\x06 \x01(\tR\x0c\x65xecutorPath\x12?\n\x0e\x64\x61tabricksConf\x18\x07 \x01(\x0b\x32\x17.google.protobuf.StructR\x0e\x64\x61tabricksConf\x12(\n\x0f\x64\x61tabricksToken\x18\x08 \x01(\tR\x0f\x64\x61tabricksToken\x12.\n\x12\x64\x61tabricksInstance\x18\t \x01(\tR\x12\x64\x61tabricksInstance\x1a<\n\x0eSparkConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x1a=\n\x0fHadoopConfEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\xc2\x01\n\x14\x63om.flyteidl.pluginsB\nSparkProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.spark_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\nSparkProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _SPARKJOB_SPARKCONFENTRY._options = None - _SPARKJOB_SPARKCONFENTRY._serialized_options = b'8\001' - _SPARKJOB_HADOOPCONFENTRY._options = None - _SPARKJOB_HADOOPCONFENTRY._serialized_options = b'8\001' - _globals['_SPARKAPPLICATION']._serialized_start=80 - _globals['_SPARKAPPLICATION']._serialized_end=146 - _globals['_SPARKAPPLICATION_TYPE']._serialized_start=100 - _globals['_SPARKAPPLICATION_TYPE']._serialized_end=146 - _globals['_SPARKJOB']._serialized_start=149 - _globals['_SPARKJOB']._serialized_end=787 - _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_start=664 - _globals['_SPARKJOB_SPARKCONFENTRY']._serialized_end=724 - _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_start=726 - _globals['_SPARKJOB_HADOOPCONFENTRY']._serialized_end=787 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi deleted file mode 100644 index e6b9e4eb68..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2.pyi +++ /dev/null @@ -1,58 +0,0 @@ -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class SparkApplication(_message.Message): - __slots__ = [] - class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - PYTHON: _ClassVar[SparkApplication.Type] - JAVA: _ClassVar[SparkApplication.Type] - SCALA: _ClassVar[SparkApplication.Type] - R: _ClassVar[SparkApplication.Type] - PYTHON: SparkApplication.Type - JAVA: SparkApplication.Type - SCALA: SparkApplication.Type - R: SparkApplication.Type - def __init__(self) -> None: ... - -class SparkJob(_message.Message): - __slots__ = ["applicationType", "mainApplicationFile", "mainClass", "sparkConf", "hadoopConf", "executorPath", "databricksConf", "databricksToken", "databricksInstance"] - class SparkConfEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - class HadoopConfEntry(_message.Message): - __slots__ = ["key", "value"] - KEY_FIELD_NUMBER: _ClassVar[int] - VALUE_FIELD_NUMBER: _ClassVar[int] - key: str - value: str - def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ... - APPLICATIONTYPE_FIELD_NUMBER: _ClassVar[int] - MAINAPPLICATIONFILE_FIELD_NUMBER: _ClassVar[int] - MAINCLASS_FIELD_NUMBER: _ClassVar[int] - SPARKCONF_FIELD_NUMBER: _ClassVar[int] - HADOOPCONF_FIELD_NUMBER: _ClassVar[int] - EXECUTORPATH_FIELD_NUMBER: _ClassVar[int] - DATABRICKSCONF_FIELD_NUMBER: _ClassVar[int] - DATABRICKSTOKEN_FIELD_NUMBER: _ClassVar[int] - DATABRICKSINSTANCE_FIELD_NUMBER: _ClassVar[int] - applicationType: SparkApplication.Type - mainApplicationFile: str - mainClass: str - sparkConf: _containers.ScalarMap[str, str] - hadoopConf: _containers.ScalarMap[str, str] - executorPath: str - databricksConf: _struct_pb2.Struct - databricksToken: str - databricksInstance: str - def __init__(self, applicationType: _Optional[_Union[SparkApplication.Type, str]] = ..., mainApplicationFile: _Optional[str] = ..., mainClass: _Optional[str] = ..., sparkConf: _Optional[_Mapping[str, str]] = ..., hadoopConf: _Optional[_Mapping[str, str]] = ..., executorPath: _Optional[str] = ..., databricksConf: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., databricksToken: _Optional[str] = ..., databricksInstance: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/spark_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py deleted file mode 100644 index ceed4231bb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/tensorflow.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!flyteidl/plugins/tensorflow.proto\x12\x10\x66lyteidl.plugins\"\xb4\x01\n!DistributedTensorflowTrainingTask\x12\x18\n\x07workers\x18\x01 \x01(\x05R\x07workers\x12\x1f\n\x0bps_replicas\x18\x02 \x01(\x05R\npsReplicas\x12%\n\x0e\x63hief_replicas\x18\x03 \x01(\x05R\rchiefReplicas\x12-\n\x12\x65valuator_replicas\x18\x04 \x01(\x05R\x11\x65valuatorReplicasB\xc7\x01\n\x14\x63om.flyteidl.pluginsB\x0fTensorflowProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.tensorflow_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\017TensorflowProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_start=56 - _globals['_DISTRIBUTEDTENSORFLOWTRAININGTASK']._serialized_end=236 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi deleted file mode 100644 index 81e2bc30b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class DistributedTensorflowTrainingTask(_message.Message): - __slots__ = ["workers", "ps_replicas", "chief_replicas", "evaluator_replicas"] - WORKERS_FIELD_NUMBER: _ClassVar[int] - PS_REPLICAS_FIELD_NUMBER: _ClassVar[int] - CHIEF_REPLICAS_FIELD_NUMBER: _ClassVar[int] - EVALUATOR_REPLICAS_FIELD_NUMBER: _ClassVar[int] - workers: int - ps_replicas: int - chief_replicas: int - evaluator_replicas: int - def __init__(self, workers: _Optional[int] = ..., ps_replicas: _Optional[int] = ..., chief_replicas: _Optional[int] = ..., evaluator_replicas: _Optional[int] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/tensorflow_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py deleted file mode 100644 index fac91e450d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/plugins/waitable.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import execution_pb2 as flyteidl_dot_core_dot_execution__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/plugins/waitable.proto\x12\x10\x66lyteidl.plugins\x1a\x1d\x66lyteidl/core/execution.proto\x1a\x1e\x66lyteidl/core/identifier.proto\"\xb3\x01\n\x08Waitable\x12H\n\nwf_exec_id\x18\x01 \x01(\x0b\x32*.flyteidl.core.WorkflowExecutionIdentifierR\x08wfExecId\x12<\n\x05phase\x18\x02 \x01(\x0e\x32&.flyteidl.core.WorkflowExecution.PhaseR\x05phase\x12\x1f\n\x0bworkflow_id\x18\x03 \x01(\tR\nworkflowIdB\xc5\x01\n\x14\x63om.flyteidl.pluginsB\rWaitableProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\xa2\x02\x03\x46PX\xaa\x02\x10\x46lyteidl.Plugins\xca\x02\x10\x46lyteidl\\Plugins\xe2\x02\x1c\x46lyteidl\\Plugins\\GPBMetadata\xea\x02\x11\x46lyteidl::Pluginsb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.plugins.waitable_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.pluginsB\rWaitableProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/plugins\242\002\003FPX\252\002\020Flyteidl.Plugins\312\002\020Flyteidl\\Plugins\342\002\034Flyteidl\\Plugins\\GPBMetadata\352\002\021Flyteidl::Plugins' - _globals['_WAITABLE']._serialized_start=117 - _globals['_WAITABLE']._serialized_end=296 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi deleted file mode 100644 index 25db3d143b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2.pyi +++ /dev/null @@ -1,17 +0,0 @@ -from flyteidl.core import execution_pb2 as _execution_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class Waitable(_message.Message): - __slots__ = ["wf_exec_id", "phase", "workflow_id"] - WF_EXEC_ID_FIELD_NUMBER: _ClassVar[int] - PHASE_FIELD_NUMBER: _ClassVar[int] - WORKFLOW_ID_FIELD_NUMBER: _ClassVar[int] - wf_exec_id: _identifier_pb2.WorkflowExecutionIdentifier - phase: _execution_pb2.WorkflowExecution.Phase - workflow_id: str - def __init__(self, wf_exec_id: _Optional[_Union[_identifier_pb2.WorkflowExecutionIdentifier, _Mapping]] = ..., phase: _Optional[_Union[_execution_pb2.WorkflowExecution.Phase, str]] = ..., workflow_id: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py deleted file mode 100644 index 2daafffebf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/plugins/waitable_pb2_grpc.py +++ /dev/null @@ -1,4 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - diff --git a/flyteidl/gen/pb_python/flyteidl/service/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py deleted file mode 100644 index d48148be62..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.py +++ /dev/null @@ -1,149 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/admin.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 -from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 -from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 -from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 -from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 -from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 -from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 -from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 -from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 -from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 -from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 -from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/admin.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1c\x66lyteidl/admin/project.proto\x1a.flyteidl/admin/project_domain_attributes.proto\x1a\'flyteidl/admin/project_attributes.proto\x1a\x19\x66lyteidl/admin/task.proto\x1a\x1d\x66lyteidl/admin/workflow.proto\x1a(flyteidl/admin/workflow_attributes.proto\x1a flyteidl/admin/launch_plan.proto\x1a\x1a\x66lyteidl/admin/event.proto\x1a\x1e\x66lyteidl/admin/execution.proto\x1a\'flyteidl/admin/matchable_resource.proto\x1a#flyteidl/admin/node_execution.proto\x1a#flyteidl/admin/task_execution.proto\x1a\x1c\x66lyteidl/admin/version.proto\x1a\x1b\x66lyteidl/admin/common.proto\x1a\'flyteidl/admin/description_entity.proto2\x84N\n\x0c\x41\x64minService\x12m\n\nCreateTask\x12!.flyteidl.admin.TaskCreateRequest\x1a\".flyteidl.admin.TaskCreateResponse\"\x18\x82\xd3\xe4\x93\x02\x12:\x01*\"\r/api/v1/tasks\x12\x88\x01\n\x07GetTask\x12 .flyteidl.admin.ObjectGetRequest\x1a\x14.flyteidl.admin.Task\"E\x82\xd3\xe4\x93\x02?\x12=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x97\x01\n\x0bListTaskIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"+\x82\xd3\xe4\x93\x02%\x12#/api/v1/task_ids/{project}/{domain}\x12\xae\x01\n\tListTasks\x12#.flyteidl.admin.ResourceListRequest\x1a\x18.flyteidl.admin.TaskList\"b\x82\xd3\xe4\x93\x02\\Z(\x12&/api/v1/tasks/{id.project}/{id.domain}\x12\x30/api/v1/tasks/{id.project}/{id.domain}/{id.name}\x12}\n\x0e\x43reateWorkflow\x12%.flyteidl.admin.WorkflowCreateRequest\x1a&.flyteidl.admin.WorkflowCreateResponse\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/api/v1/workflows\x12\x94\x01\n\x0bGetWorkflow\x12 .flyteidl.admin.ObjectGetRequest\x1a\x18.flyteidl.admin.Workflow\"I\x82\xd3\xe4\x93\x02\x43\x12\x41/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x9f\x01\n\x0fListWorkflowIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"/\x82\xd3\xe4\x93\x02)\x12\'/api/v1/workflow_ids/{project}/{domain}\x12\xbe\x01\n\rListWorkflows\x12#.flyteidl.admin.ResourceListRequest\x1a\x1c.flyteidl.admin.WorkflowList\"j\x82\xd3\xe4\x93\x02\x64Z,\x12*/api/v1/workflows/{id.project}/{id.domain}\x12\x34/api/v1/workflows/{id.project}/{id.domain}/{id.name}\x12\x86\x01\n\x10\x43reateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanCreateRequest\x1a(.flyteidl.admin.LaunchPlanCreateResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/launch_plans\x12\x9b\x01\n\rGetLaunchPlan\x12 .flyteidl.admin.ObjectGetRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"L\x82\xd3\xe4\x93\x02\x46\x12\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\xa2\x01\n\x13GetActiveLaunchPlan\x12\'.flyteidl.admin.ActiveLaunchPlanRequest\x1a\x1a.flyteidl.admin.LaunchPlan\"F\x82\xd3\xe4\x93\x02@\x12>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}\x12\x9c\x01\n\x15ListActiveLaunchPlans\x12+.flyteidl.admin.ActiveLaunchPlanListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"6\x82\xd3\xe4\x93\x02\x30\x12./api/v1/active_launch_plans/{project}/{domain}\x12\xa4\x01\n\x11ListLaunchPlanIds\x12\x30.flyteidl.admin.NamedEntityIdentifierListRequest\x1a).flyteidl.admin.NamedEntityIdentifierList\"2\x82\xd3\xe4\x93\x02,\x12*/api/v1/launch_plan_ids/{project}/{domain}\x12\xc8\x01\n\x0fListLaunchPlans\x12#.flyteidl.admin.ResourceListRequest\x1a\x1e.flyteidl.admin.LaunchPlanList\"p\x82\xd3\xe4\x93\x02jZ/\x12-/api/v1/launch_plans/{id.project}/{id.domain}\x12\x37/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}\x12\xb6\x01\n\x10UpdateLaunchPlan\x12\'.flyteidl.admin.LaunchPlanUpdateRequest\x1a(.flyteidl.admin.LaunchPlanUpdateResponse\"O\x82\xd3\xe4\x93\x02I:\x01*\x1a\x44/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x81\x01\n\x0f\x43reateExecution\x12&.flyteidl.admin.ExecutionCreateRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\"\x12/api/v1/executions\x12\x8e\x01\n\x11RelaunchExecution\x12(.flyteidl.admin.ExecutionRelaunchRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"&\x82\xd3\xe4\x93\x02 :\x01*\"\x1b/api/v1/executions/relaunch\x12\x8b\x01\n\x10RecoverExecution\x12\'.flyteidl.admin.ExecutionRecoverRequest\x1a\'.flyteidl.admin.ExecutionCreateResponse\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v1/executions/recover\x12\x95\x01\n\x0cGetExecution\x12+.flyteidl.admin.WorkflowExecutionGetRequest\x1a\x19.flyteidl.admin.Execution\"=\x82\xd3\xe4\x93\x02\x37\x12\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xa4\x01\n\x0fUpdateExecution\x12&.flyteidl.admin.ExecutionUpdateRequest\x1a\'.flyteidl.admin.ExecutionUpdateResponse\"@\x82\xd3\xe4\x93\x02::\x01*\x1a\x35/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xb9\x01\n\x10GetExecutionData\x12/.flyteidl.admin.WorkflowExecutionGetDataRequest\x1a\x30.flyteidl.admin.WorkflowExecutionGetDataResponse\"B\x82\xd3\xe4\x93\x02<\x12:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}\x12\x89\x01\n\x0eListExecutions\x12#.flyteidl.admin.ResourceListRequest\x1a\x1d.flyteidl.admin.ExecutionList\"3\x82\xd3\xe4\x93\x02-\x12+/api/v1/executions/{id.project}/{id.domain}\x12\xad\x01\n\x12TerminateExecution\x12).flyteidl.admin.ExecutionTerminateRequest\x1a*.flyteidl.admin.ExecutionTerminateResponse\"@\x82\xd3\xe4\x93\x02::\x01**5/api/v1/executions/{id.project}/{id.domain}/{id.name}\x12\xd2\x01\n\x10GetNodeExecution\x12\'.flyteidl.admin.NodeExecutionGetRequest\x1a\x1d.flyteidl.admin.NodeExecution\"v\x82\xd3\xe4\x93\x02p\x12n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\xde\x01\n\x12ListNodeExecutions\x12(.flyteidl.admin.NodeExecutionListRequest\x1a!.flyteidl.admin.NodeExecutionList\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12\xa5\x04\n\x19ListNodeExecutionsForTask\x12/.flyteidl.admin.NodeExecutionForTaskListRequest\x1a!.flyteidl.admin.NodeExecutionList\"\xb3\x03\x82\xd3\xe4\x93\x02\xac\x03\x12\xa9\x03/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}\x12\xee\x01\n\x14GetNodeExecutionData\x12+.flyteidl.admin.NodeExecutionGetDataRequest\x1a,.flyteidl.admin.NodeExecutionGetDataResponse\"{\x82\xd3\xe4\x93\x02u\x12s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}\x12\x7f\n\x0fRegisterProject\x12&.flyteidl.admin.ProjectRegisterRequest\x1a\'.flyteidl.admin.ProjectRegisterResponse\"\x1b\x82\xd3\xe4\x93\x02\x15:\x01*\"\x10/api/v1/projects\x12q\n\rUpdateProject\x12\x17.flyteidl.admin.Project\x1a%.flyteidl.admin.ProjectUpdateResponse\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x1a\x15/api/v1/projects/{id}\x12\x66\n\x0cListProjects\x12\".flyteidl.admin.ProjectListRequest\x1a\x18.flyteidl.admin.Projects\"\x18\x82\xd3\xe4\x93\x02\x12\x12\x10/api/v1/projects\x12\x99\x01\n\x13\x43reateWorkflowEvent\x12-.flyteidl.admin.WorkflowExecutionEventRequest\x1a..flyteidl.admin.WorkflowExecutionEventResponse\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/api/v1/events/workflows\x12\x89\x01\n\x0f\x43reateNodeEvent\x12).flyteidl.admin.NodeExecutionEventRequest\x1a*.flyteidl.admin.NodeExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/nodes\x12\x89\x01\n\x0f\x43reateTaskEvent\x12).flyteidl.admin.TaskExecutionEventRequest\x1a*.flyteidl.admin.TaskExecutionEventResponse\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/api/v1/events/tasks\x12\x80\x03\n\x10GetTaskExecution\x12\'.flyteidl.admin.TaskExecutionGetRequest\x1a\x1d.flyteidl.admin.TaskExecution\"\xa3\x02\x82\xd3\xe4\x93\x02\x9c\x02\x12\x99\x02/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\x98\x02\n\x12ListTaskExecutions\x12(.flyteidl.admin.TaskExecutionListRequest\x1a!.flyteidl.admin.TaskExecutionList\"\xb4\x01\x82\xd3\xe4\x93\x02\xad\x01\x12\xaa\x01/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}\x12\x9c\x03\n\x14GetTaskExecutionData\x12+.flyteidl.admin.TaskExecutionGetDataRequest\x1a,.flyteidl.admin.TaskExecutionGetDataResponse\"\xa8\x02\x82\xd3\xe4\x93\x02\xa1\x02\x12\x9e\x02/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}\x12\xe3\x01\n\x1dUpdateProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesUpdateRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesUpdateResponse\"U\x82\xd3\xe4\x93\x02O:\x01*\x1aJ/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}\x12\xc1\x01\n\x1aGetProjectDomainAttributes\x12\x31.flyteidl.admin.ProjectDomainAttributesGetRequest\x1a\x32.flyteidl.admin.ProjectDomainAttributesGetResponse\"<\x82\xd3\xe4\x93\x02\x36\x12\x34/api/v1/project_domain_attributes/{project}/{domain}\x12\xcd\x01\n\x1d\x44\x65leteProjectDomainAttributes\x12\x34.flyteidl.admin.ProjectDomainAttributesDeleteRequest\x1a\x35.flyteidl.admin.ProjectDomainAttributesDeleteResponse\"?\x82\xd3\xe4\x93\x02\x39:\x01**4/api/v1/project_domain_attributes/{project}/{domain}\x12\xb6\x01\n\x17UpdateProjectAttributes\x12..flyteidl.admin.ProjectAttributesUpdateRequest\x1a/.flyteidl.admin.ProjectAttributesUpdateResponse\":\x82\xd3\xe4\x93\x02\x34:\x01*\x1a//api/v1/project_attributes/{attributes.project}\x12\x9f\x01\n\x14GetProjectAttributes\x12+.flyteidl.admin.ProjectAttributesGetRequest\x1a,.flyteidl.admin.ProjectAttributesGetResponse\",\x82\xd3\xe4\x93\x02&\x12$/api/v1/project_attributes/{project}\x12\xab\x01\n\x17\x44\x65leteProjectAttributes\x12..flyteidl.admin.ProjectAttributesDeleteRequest\x1a/.flyteidl.admin.ProjectAttributesDeleteResponse\"/\x82\xd3\xe4\x93\x02):\x01**$/api/v1/project_attributes/{project}\x12\xe4\x01\n\x18UpdateWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesUpdateRequest\x1a\x30.flyteidl.admin.WorkflowAttributesUpdateResponse\"e\x82\xd3\xe4\x93\x02_:\x01*\x1aZ/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}\x12\xb7\x01\n\x15GetWorkflowAttributes\x12,.flyteidl.admin.WorkflowAttributesGetRequest\x1a-.flyteidl.admin.WorkflowAttributesGetResponse\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xc3\x01\n\x18\x44\x65leteWorkflowAttributes\x12/.flyteidl.admin.WorkflowAttributesDeleteRequest\x1a\x30.flyteidl.admin.WorkflowAttributesDeleteResponse\"D\x82\xd3\xe4\x93\x02>:\x01**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}\x12\xa0\x01\n\x17ListMatchableAttributes\x12..flyteidl.admin.ListMatchableAttributesRequest\x1a/.flyteidl.admin.ListMatchableAttributesResponse\"$\x82\xd3\xe4\x93\x02\x1e\x12\x1c/api/v1/matchable_attributes\x12\x9f\x01\n\x11ListNamedEntities\x12&.flyteidl.admin.NamedEntityListRequest\x1a\x1f.flyteidl.admin.NamedEntityList\"A\x82\xd3\xe4\x93\x02;\x12\x39/api/v1/named_entities/{resource_type}/{project}/{domain}\x12\xa7\x01\n\x0eGetNamedEntity\x12%.flyteidl.admin.NamedEntityGetRequest\x1a\x1b.flyteidl.admin.NamedEntity\"Q\x82\xd3\xe4\x93\x02K\x12I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12\xbe\x01\n\x11UpdateNamedEntity\x12(.flyteidl.admin.NamedEntityUpdateRequest\x1a).flyteidl.admin.NamedEntityUpdateResponse\"T\x82\xd3\xe4\x93\x02N:\x01*\x1aI/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12l\n\nGetVersion\x12!.flyteidl.admin.GetVersionRequest\x1a\".flyteidl.admin.GetVersionResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/v1/version\x12\xc4\x01\n\x14GetDescriptionEntity\x12 .flyteidl.admin.ObjectGetRequest\x1a!.flyteidl.admin.DescriptionEntity\"g\x82\xd3\xe4\x93\x02\x61\x12_/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}\x12\x92\x02\n\x17ListDescriptionEntities\x12,.flyteidl.admin.DescriptionEntityListRequest\x1a%.flyteidl.admin.DescriptionEntityList\"\xa1\x01\x82\xd3\xe4\x93\x02\x9a\x01ZG\x12\x45/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}\x12O/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}\x12\xc5\x01\n\x13GetExecutionMetrics\x12\x32.flyteidl.admin.WorkflowExecutionGetMetricsRequest\x1a\x33.flyteidl.admin.WorkflowExecutionGetMetricsResponse\"E\x82\xd3\xe4\x93\x02?\x12=/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}B\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAdminProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.admin_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAdminProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _ADMINSERVICE.methods_by_name['CreateTask']._options = None - _ADMINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\202\323\344\223\002\022:\001*\"\r/api/v1/tasks' - _ADMINSERVICE.methods_by_name['GetTask']._options = None - _ADMINSERVICE.methods_by_name['GetTask']._serialized_options = b'\202\323\344\223\002?\022=/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['ListTaskIds']._options = None - _ADMINSERVICE.methods_by_name['ListTaskIds']._serialized_options = b'\202\323\344\223\002%\022#/api/v1/task_ids/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListTasks']._options = None - _ADMINSERVICE.methods_by_name['ListTasks']._serialized_options = b'\202\323\344\223\002\\Z(\022&/api/v1/tasks/{id.project}/{id.domain}\0220/api/v1/tasks/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['CreateWorkflow']._options = None - _ADMINSERVICE.methods_by_name['CreateWorkflow']._serialized_options = b'\202\323\344\223\002\026:\001*\"\021/api/v1/workflows' - _ADMINSERVICE.methods_by_name['GetWorkflow']._options = None - _ADMINSERVICE.methods_by_name['GetWorkflow']._serialized_options = b'\202\323\344\223\002C\022A/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['ListWorkflowIds']._options = None - _ADMINSERVICE.methods_by_name['ListWorkflowIds']._serialized_options = b'\202\323\344\223\002)\022\'/api/v1/workflow_ids/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListWorkflows']._options = None - _ADMINSERVICE.methods_by_name['ListWorkflows']._serialized_options = b'\202\323\344\223\002dZ,\022*/api/v1/workflows/{id.project}/{id.domain}\0224/api/v1/workflows/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['CreateLaunchPlan']._options = None - _ADMINSERVICE.methods_by_name['CreateLaunchPlan']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/launch_plans' - _ADMINSERVICE.methods_by_name['GetLaunchPlan']._options = None - _ADMINSERVICE.methods_by_name['GetLaunchPlan']._serialized_options = b'\202\323\344\223\002F\022D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['GetActiveLaunchPlan']._options = None - _ADMINSERVICE.methods_by_name['GetActiveLaunchPlan']._serialized_options = b'\202\323\344\223\002@\022>/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._options = None - _ADMINSERVICE.methods_by_name['ListActiveLaunchPlans']._serialized_options = b'\202\323\344\223\0020\022./api/v1/active_launch_plans/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._options = None - _ADMINSERVICE.methods_by_name['ListLaunchPlanIds']._serialized_options = b'\202\323\344\223\002,\022*/api/v1/launch_plan_ids/{project}/{domain}' - _ADMINSERVICE.methods_by_name['ListLaunchPlans']._options = None - _ADMINSERVICE.methods_by_name['ListLaunchPlans']._serialized_options = b'\202\323\344\223\002jZ/\022-/api/v1/launch_plans/{id.project}/{id.domain}\0227/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._options = None - _ADMINSERVICE.methods_by_name['UpdateLaunchPlan']._serialized_options = b'\202\323\344\223\002I:\001*\032D/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['CreateExecution']._options = None - _ADMINSERVICE.methods_by_name['CreateExecution']._serialized_options = b'\202\323\344\223\002\027:\001*\"\022/api/v1/executions' - _ADMINSERVICE.methods_by_name['RelaunchExecution']._options = None - _ADMINSERVICE.methods_by_name['RelaunchExecution']._serialized_options = b'\202\323\344\223\002 :\001*\"\033/api/v1/executions/relaunch' - _ADMINSERVICE.methods_by_name['RecoverExecution']._options = None - _ADMINSERVICE.methods_by_name['RecoverExecution']._serialized_options = b'\202\323\344\223\002\037:\001*\"\032/api/v1/executions/recover' - _ADMINSERVICE.methods_by_name['GetExecution']._options = None - _ADMINSERVICE.methods_by_name['GetExecution']._serialized_options = b'\202\323\344\223\0027\0225/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['UpdateExecution']._options = None - _ADMINSERVICE.methods_by_name['UpdateExecution']._serialized_options = b'\202\323\344\223\002::\001*\0325/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetExecutionData']._serialized_options = b'\202\323\344\223\002<\022:/api/v1/data/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['ListExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListExecutions']._serialized_options = b'\202\323\344\223\002-\022+/api/v1/executions/{id.project}/{id.domain}' - _ADMINSERVICE.methods_by_name['TerminateExecution']._options = None - _ADMINSERVICE.methods_by_name['TerminateExecution']._serialized_options = b'\202\323\344\223\002::\001**5/api/v1/executions/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetNodeExecution']._options = None - _ADMINSERVICE.methods_by_name['GetNodeExecution']._serialized_options = b'\202\323\344\223\002p\022n/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' - _ADMINSERVICE.methods_by_name['ListNodeExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListNodeExecutions']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' - _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._options = None - _ADMINSERVICE.methods_by_name['ListNodeExecutionsForTask']._serialized_options = b'\202\323\344\223\002\254\003\022\251\003/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}' - _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetNodeExecutionData']._serialized_options = b'\202\323\344\223\002u\022s/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}' - _ADMINSERVICE.methods_by_name['RegisterProject']._options = None - _ADMINSERVICE.methods_by_name['RegisterProject']._serialized_options = b'\202\323\344\223\002\025:\001*\"\020/api/v1/projects' - _ADMINSERVICE.methods_by_name['UpdateProject']._options = None - _ADMINSERVICE.methods_by_name['UpdateProject']._serialized_options = b'\202\323\344\223\002\032:\001*\032\025/api/v1/projects/{id}' - _ADMINSERVICE.methods_by_name['ListProjects']._options = None - _ADMINSERVICE.methods_by_name['ListProjects']._serialized_options = b'\202\323\344\223\002\022\022\020/api/v1/projects' - _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateWorkflowEvent']._serialized_options = b'\202\323\344\223\002\035:\001*\"\030/api/v1/events/workflows' - _ADMINSERVICE.methods_by_name['CreateNodeEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateNodeEvent']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/events/nodes' - _ADMINSERVICE.methods_by_name['CreateTaskEvent']._options = None - _ADMINSERVICE.methods_by_name['CreateTaskEvent']._serialized_options = b'\202\323\344\223\002\031:\001*\"\024/api/v1/events/tasks' - _ADMINSERVICE.methods_by_name['GetTaskExecution']._options = None - _ADMINSERVICE.methods_by_name['GetTaskExecution']._serialized_options = b'\202\323\344\223\002\234\002\022\231\002/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' - _ADMINSERVICE.methods_by_name['ListTaskExecutions']._options = None - _ADMINSERVICE.methods_by_name['ListTaskExecutions']._serialized_options = b'\202\323\344\223\002\255\001\022\252\001/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}' - _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._options = None - _ADMINSERVICE.methods_by_name['GetTaskExecutionData']._serialized_options = b'\202\323\344\223\002\241\002\022\236\002/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}' - _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateProjectDomainAttributes']._serialized_options = b'\202\323\344\223\002O:\001*\032J/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}' - _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetProjectDomainAttributes']._serialized_options = b'\202\323\344\223\0026\0224/api/v1/project_domain_attributes/{project}/{domain}' - _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteProjectDomainAttributes']._serialized_options = b'\202\323\344\223\0029:\001**4/api/v1/project_domain_attributes/{project}/{domain}' - _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateProjectAttributes']._serialized_options = b'\202\323\344\223\0024:\001*\032//api/v1/project_attributes/{attributes.project}' - _ADMINSERVICE.methods_by_name['GetProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetProjectAttributes']._serialized_options = b'\202\323\344\223\002&\022$/api/v1/project_attributes/{project}' - _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteProjectAttributes']._serialized_options = b'\202\323\344\223\002):\001**$/api/v1/project_attributes/{project}' - _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['UpdateWorkflowAttributes']._serialized_options = b'\202\323\344\223\002_:\001*\032Z/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}' - _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['GetWorkflowAttributes']._serialized_options = b'\202\323\344\223\002;\0229/api/v1/workflow_attributes/{project}/{domain}/{workflow}' - _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._options = None - _ADMINSERVICE.methods_by_name['DeleteWorkflowAttributes']._serialized_options = b'\202\323\344\223\002>:\001**9/api/v1/workflow_attributes/{project}/{domain}/{workflow}' - _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._options = None - _ADMINSERVICE.methods_by_name['ListMatchableAttributes']._serialized_options = b'\202\323\344\223\002\036\022\034/api/v1/matchable_attributes' - _ADMINSERVICE.methods_by_name['ListNamedEntities']._options = None - _ADMINSERVICE.methods_by_name['ListNamedEntities']._serialized_options = b'\202\323\344\223\002;\0229/api/v1/named_entities/{resource_type}/{project}/{domain}' - _ADMINSERVICE.methods_by_name['GetNamedEntity']._options = None - _ADMINSERVICE.methods_by_name['GetNamedEntity']._serialized_options = b'\202\323\344\223\002K\022I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['UpdateNamedEntity']._options = None - _ADMINSERVICE.methods_by_name['UpdateNamedEntity']._serialized_options = b'\202\323\344\223\002N:\001*\032I/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetVersion']._options = None - _ADMINSERVICE.methods_by_name['GetVersion']._serialized_options = b'\202\323\344\223\002\021\022\017/api/v1/version' - _ADMINSERVICE.methods_by_name['GetDescriptionEntity']._options = None - _ADMINSERVICE.methods_by_name['GetDescriptionEntity']._serialized_options = b'\202\323\344\223\002a\022_/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}' - _ADMINSERVICE.methods_by_name['ListDescriptionEntities']._options = None - _ADMINSERVICE.methods_by_name['ListDescriptionEntities']._serialized_options = b'\202\323\344\223\002\232\001ZG\022E/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}\022O/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}' - _ADMINSERVICE.methods_by_name['GetExecutionMetrics']._options = None - _ADMINSERVICE.methods_by_name['GetExecutionMetrics']._serialized_options = b'\202\323\344\223\002?\022=/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}' - _globals['_ADMINSERVICE']._serialized_start=609 - _globals['_ADMINSERVICE']._serialized_end=10597 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi deleted file mode 100644 index a9028cea2a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2.pyi +++ /dev/null @@ -1,20 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from flyteidl.admin import project_pb2 as _project_pb2 -from flyteidl.admin import project_domain_attributes_pb2 as _project_domain_attributes_pb2 -from flyteidl.admin import project_attributes_pb2 as _project_attributes_pb2 -from flyteidl.admin import task_pb2 as _task_pb2 -from flyteidl.admin import workflow_pb2 as _workflow_pb2 -from flyteidl.admin import workflow_attributes_pb2 as _workflow_attributes_pb2 -from flyteidl.admin import launch_plan_pb2 as _launch_plan_pb2 -from flyteidl.admin import event_pb2 as _event_pb2 -from flyteidl.admin import execution_pb2 as _execution_pb2 -from flyteidl.admin import matchable_resource_pb2 as _matchable_resource_pb2 -from flyteidl.admin import node_execution_pb2 as _node_execution_pb2 -from flyteidl.admin import task_execution_pb2 as _task_execution_pb2 -from flyteidl.admin import version_pb2 as _version_pb2 -from flyteidl.admin import common_pb2 as _common_pb2 -from flyteidl.admin import description_entity_pb2 as _description_entity_pb2 -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py deleted file mode 100644 index 2e7bda23fe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/admin_pb2_grpc.py +++ /dev/null @@ -1,1860 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.admin import common_pb2 as flyteidl_dot_admin_dot_common__pb2 -from flyteidl.admin import description_entity_pb2 as flyteidl_dot_admin_dot_description__entity__pb2 -from flyteidl.admin import event_pb2 as flyteidl_dot_admin_dot_event__pb2 -from flyteidl.admin import execution_pb2 as flyteidl_dot_admin_dot_execution__pb2 -from flyteidl.admin import launch_plan_pb2 as flyteidl_dot_admin_dot_launch__plan__pb2 -from flyteidl.admin import matchable_resource_pb2 as flyteidl_dot_admin_dot_matchable__resource__pb2 -from flyteidl.admin import node_execution_pb2 as flyteidl_dot_admin_dot_node__execution__pb2 -from flyteidl.admin import project_attributes_pb2 as flyteidl_dot_admin_dot_project__attributes__pb2 -from flyteidl.admin import project_domain_attributes_pb2 as flyteidl_dot_admin_dot_project__domain__attributes__pb2 -from flyteidl.admin import project_pb2 as flyteidl_dot_admin_dot_project__pb2 -from flyteidl.admin import task_execution_pb2 as flyteidl_dot_admin_dot_task__execution__pb2 -from flyteidl.admin import task_pb2 as flyteidl_dot_admin_dot_task__pb2 -from flyteidl.admin import version_pb2 as flyteidl_dot_admin_dot_version__pb2 -from flyteidl.admin import workflow_attributes_pb2 as flyteidl_dot_admin_dot_workflow__attributes__pb2 -from flyteidl.admin import workflow_pb2 as flyteidl_dot_admin_dot_workflow__pb2 - - -class AdminServiceStub(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateTask = channel.unary_unary( - '/flyteidl.service.AdminService/CreateTask', - request_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.FromString, - ) - self.GetTask = channel.unary_unary( - '/flyteidl.service.AdminService/GetTask', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__pb2.Task.FromString, - ) - self.ListTaskIds = channel.unary_unary( - '/flyteidl.service.AdminService/ListTaskIds', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - ) - self.ListTasks = channel.unary_unary( - '/flyteidl.service.AdminService/ListTasks', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskList.FromString, - ) - self.CreateWorkflow = channel.unary_unary( - '/flyteidl.service.AdminService/CreateWorkflow', - request_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.FromString, - ) - self.GetWorkflow = channel.unary_unary( - '/flyteidl.service.AdminService/GetWorkflow', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.FromString, - ) - self.ListWorkflowIds = channel.unary_unary( - '/flyteidl.service.AdminService/ListWorkflowIds', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - ) - self.ListWorkflows = channel.unary_unary( - '/flyteidl.service.AdminService/ListWorkflows', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.FromString, - ) - self.CreateLaunchPlan = channel.unary_unary( - '/flyteidl.service.AdminService/CreateLaunchPlan', - request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.FromString, - ) - self.GetLaunchPlan = channel.unary_unary( - '/flyteidl.service.AdminService/GetLaunchPlan', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, - ) - self.GetActiveLaunchPlan = channel.unary_unary( - '/flyteidl.service.AdminService/GetActiveLaunchPlan', - request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, - ) - self.ListActiveLaunchPlans = channel.unary_unary( - '/flyteidl.service.AdminService/ListActiveLaunchPlans', - request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, - ) - self.ListLaunchPlanIds = channel.unary_unary( - '/flyteidl.service.AdminService/ListLaunchPlanIds', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - ) - self.ListLaunchPlans = channel.unary_unary( - '/flyteidl.service.AdminService/ListLaunchPlans', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, - ) - self.UpdateLaunchPlan = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateLaunchPlan', - request_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.FromString, - ) - self.CreateExecution = channel.unary_unary( - '/flyteidl.service.AdminService/CreateExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - ) - self.RelaunchExecution = channel.unary_unary( - '/flyteidl.service.AdminService/RelaunchExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - ) - self.RecoverExecution = channel.unary_unary( - '/flyteidl.service.AdminService/RecoverExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - ) - self.GetExecution = channel.unary_unary( - '/flyteidl.service.AdminService/GetExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.Execution.FromString, - ) - self.UpdateExecution = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.FromString, - ) - self.GetExecutionData = channel.unary_unary( - '/flyteidl.service.AdminService/GetExecutionData', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.FromString, - ) - self.ListExecutions = channel.unary_unary( - '/flyteidl.service.AdminService/ListExecutions', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.FromString, - ) - self.TerminateExecution = channel.unary_unary( - '/flyteidl.service.AdminService/TerminateExecution', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.FromString, - ) - self.GetNodeExecution = channel.unary_unary( - '/flyteidl.service.AdminService/GetNodeExecution', - request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.FromString, - ) - self.ListNodeExecutions = channel.unary_unary( - '/flyteidl.service.AdminService/ListNodeExecutions', - request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, - ) - self.ListNodeExecutionsForTask = channel.unary_unary( - '/flyteidl.service.AdminService/ListNodeExecutionsForTask', - request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, - ) - self.GetNodeExecutionData = channel.unary_unary( - '/flyteidl.service.AdminService/GetNodeExecutionData', - request_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.FromString, - ) - self.RegisterProject = channel.unary_unary( - '/flyteidl.service.AdminService/RegisterProject', - request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.FromString, - ) - self.UpdateProject = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateProject', - request_serializer=flyteidl_dot_admin_dot_project__pb2.Project.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.FromString, - ) - self.ListProjects = channel.unary_unary( - '/flyteidl.service.AdminService/ListProjects', - request_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__pb2.Projects.FromString, - ) - self.CreateWorkflowEvent = channel.unary_unary( - '/flyteidl.service.AdminService/CreateWorkflowEvent', - request_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.FromString, - ) - self.CreateNodeEvent = channel.unary_unary( - '/flyteidl.service.AdminService/CreateNodeEvent', - request_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.FromString, - ) - self.CreateTaskEvent = channel.unary_unary( - '/flyteidl.service.AdminService/CreateTaskEvent', - request_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.FromString, - ) - self.GetTaskExecution = channel.unary_unary( - '/flyteidl.service.AdminService/GetTaskExecution', - request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.FromString, - ) - self.ListTaskExecutions = channel.unary_unary( - '/flyteidl.service.AdminService/ListTaskExecutions', - request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.FromString, - ) - self.GetTaskExecutionData = channel.unary_unary( - '/flyteidl.service.AdminService/GetTaskExecutionData', - request_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.FromString, - ) - self.UpdateProjectDomainAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateProjectDomainAttributes', - request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.FromString, - ) - self.GetProjectDomainAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/GetProjectDomainAttributes', - request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.FromString, - ) - self.DeleteProjectDomainAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/DeleteProjectDomainAttributes', - request_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.FromString, - ) - self.UpdateProjectAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateProjectAttributes', - request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.FromString, - ) - self.GetProjectAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/GetProjectAttributes', - request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.FromString, - ) - self.DeleteProjectAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/DeleteProjectAttributes', - request_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.FromString, - ) - self.UpdateWorkflowAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateWorkflowAttributes', - request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.FromString, - ) - self.GetWorkflowAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/GetWorkflowAttributes', - request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.FromString, - ) - self.DeleteWorkflowAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/DeleteWorkflowAttributes', - request_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.FromString, - ) - self.ListMatchableAttributes = channel.unary_unary( - '/flyteidl.service.AdminService/ListMatchableAttributes', - request_serializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.FromString, - ) - self.ListNamedEntities = channel.unary_unary( - '/flyteidl.service.AdminService/ListNamedEntities', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityList.FromString, - ) - self.GetNamedEntity = channel.unary_unary( - '/flyteidl.service.AdminService/GetNamedEntity', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntity.FromString, - ) - self.UpdateNamedEntity = channel.unary_unary( - '/flyteidl.service.AdminService/UpdateNamedEntity', - request_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.FromString, - ) - self.GetVersion = channel.unary_unary( - '/flyteidl.service.AdminService/GetVersion', - request_serializer=flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.FromString, - ) - self.GetDescriptionEntity = channel.unary_unary( - '/flyteidl.service.AdminService/GetDescriptionEntity', - request_serializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.FromString, - ) - self.ListDescriptionEntities = channel.unary_unary( - '/flyteidl.service.AdminService/ListDescriptionEntities', - request_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.FromString, - ) - self.GetExecutionMetrics = channel.unary_unary( - '/flyteidl.service.AdminService/GetExecutionMetrics', - request_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.FromString, - ) - - -class AdminServiceServicer(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - """ - - def CreateTask(self, request, context): - """Create and upload a :ref:`ref_flyteidl.admin.Task` definition - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTask(self, request, context): - """Fetch a :ref:`ref_flyteidl.admin.Task` definition. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTaskIds(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTasks(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWorkflow(self, request, context): - """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetWorkflow(self, request, context): - """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListWorkflowIds(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListWorkflows(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateLaunchPlan(self, request, context): - """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetLaunchPlan(self, request, context): - """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetActiveLaunchPlan(self, request, context): - """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListActiveLaunchPlans(self, request, context): - """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListLaunchPlanIds(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListLaunchPlans(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateLaunchPlan(self, request, context): - """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateExecution(self, request, context): - """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RelaunchExecution(self, request, context): - """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RecoverExecution(self, request, context): - """Recreates a previously-run workflow execution that will only start executing from the last known failure point. - In Recover mode, users cannot change any input parameters or update the version of the execution. - This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExecution(self, request, context): - """Fetches a :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateExecution(self, request, context): - """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExecutionData(self, request, context): - """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListExecutions(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def TerminateExecution(self, request, context): - """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNodeExecution(self, request, context): - """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListNodeExecutions(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListNodeExecutionsForTask(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNodeExecutionData(self, request, context): - """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def RegisterProject(self, request, context): - """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateProject(self, request, context): - """Updates an existing :ref:`ref_flyteidl.admin.Project` - flyteidl.admin.Project should be passed but the domains property should be empty; - it will be ignored in the handler as domains cannot be updated via this API. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListProjects(self, request, context): - """Fetches a list of :ref:`ref_flyteidl.admin.Project` - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateWorkflowEvent(self, request, context): - """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateNodeEvent(self, request, context): - """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateTaskEvent(self, request, context): - """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTaskExecution(self, request, context): - """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListTaskExecutions(self, request, context): - """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTaskExecutionData(self, request, context): - """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateProjectDomainAttributes(self, request, context): - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProjectDomainAttributes(self, request, context): - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteProjectDomainAttributes(self, request, context): - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateProjectAttributes(self, request, context): - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetProjectAttributes(self, request, context): - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteProjectAttributes(self, request, context): - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateWorkflowAttributes(self, request, context): - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetWorkflowAttributes(self, request, context): - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteWorkflowAttributes(self, request, context): - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListMatchableAttributes(self, request, context): - """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListNamedEntities(self, request, context): - """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetNamedEntity(self, request, context): - """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def UpdateNamedEntity(self, request, context): - """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetVersion(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetDescriptionEntity(self, request, context): - """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListDescriptionEntities(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetExecutionMetrics(self, request, context): - """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AdminServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__pb2.Task.SerializeToString, - ), - 'ListTaskIds': grpc.unary_unary_rpc_method_handler( - servicer.ListTaskIds, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, - ), - 'ListTasks': grpc.unary_unary_rpc_method_handler( - servicer.ListTasks, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__pb2.TaskList.SerializeToString, - ), - 'CreateWorkflow': grpc.unary_unary_rpc_method_handler( - servicer.CreateWorkflow, - request_deserializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.SerializeToString, - ), - 'GetWorkflow': grpc.unary_unary_rpc_method_handler( - servicer.GetWorkflow, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__pb2.Workflow.SerializeToString, - ), - 'ListWorkflowIds': grpc.unary_unary_rpc_method_handler( - servicer.ListWorkflowIds, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, - ), - 'ListWorkflows': grpc.unary_unary_rpc_method_handler( - servicer.ListWorkflows, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.SerializeToString, - ), - 'CreateLaunchPlan': grpc.unary_unary_rpc_method_handler( - servicer.CreateLaunchPlan, - request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.SerializeToString, - ), - 'GetLaunchPlan': grpc.unary_unary_rpc_method_handler( - servicer.GetLaunchPlan, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.SerializeToString, - ), - 'GetActiveLaunchPlan': grpc.unary_unary_rpc_method_handler( - servicer.GetActiveLaunchPlan, - request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.SerializeToString, - ), - 'ListActiveLaunchPlans': grpc.unary_unary_rpc_method_handler( - servicer.ListActiveLaunchPlans, - request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.SerializeToString, - ), - 'ListLaunchPlanIds': grpc.unary_unary_rpc_method_handler( - servicer.ListLaunchPlanIds, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.SerializeToString, - ), - 'ListLaunchPlans': grpc.unary_unary_rpc_method_handler( - servicer.ListLaunchPlans, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.SerializeToString, - ), - 'UpdateLaunchPlan': grpc.unary_unary_rpc_method_handler( - servicer.UpdateLaunchPlan, - request_deserializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.SerializeToString, - ), - 'CreateExecution': grpc.unary_unary_rpc_method_handler( - servicer.CreateExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, - ), - 'RelaunchExecution': grpc.unary_unary_rpc_method_handler( - servicer.RelaunchExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, - ), - 'RecoverExecution': grpc.unary_unary_rpc_method_handler( - servicer.RecoverExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.SerializeToString, - ), - 'GetExecution': grpc.unary_unary_rpc_method_handler( - servicer.GetExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.Execution.SerializeToString, - ), - 'UpdateExecution': grpc.unary_unary_rpc_method_handler( - servicer.UpdateExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.SerializeToString, - ), - 'GetExecutionData': grpc.unary_unary_rpc_method_handler( - servicer.GetExecutionData, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.SerializeToString, - ), - 'ListExecutions': grpc.unary_unary_rpc_method_handler( - servicer.ListExecutions, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionList.SerializeToString, - ), - 'TerminateExecution': grpc.unary_unary_rpc_method_handler( - servicer.TerminateExecution, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.SerializeToString, - ), - 'GetNodeExecution': grpc.unary_unary_rpc_method_handler( - servicer.GetNodeExecution, - request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.SerializeToString, - ), - 'ListNodeExecutions': grpc.unary_unary_rpc_method_handler( - servicer.ListNodeExecutions, - request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, - ), - 'ListNodeExecutionsForTask': grpc.unary_unary_rpc_method_handler( - servicer.ListNodeExecutionsForTask, - request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.SerializeToString, - ), - 'GetNodeExecutionData': grpc.unary_unary_rpc_method_handler( - servicer.GetNodeExecutionData, - request_deserializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.SerializeToString, - ), - 'RegisterProject': grpc.unary_unary_rpc_method_handler( - servicer.RegisterProject, - request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.SerializeToString, - ), - 'UpdateProject': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProject, - request_deserializer=flyteidl_dot_admin_dot_project__pb2.Project.FromString, - response_serializer=flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.SerializeToString, - ), - 'ListProjects': grpc.unary_unary_rpc_method_handler( - servicer.ListProjects, - request_deserializer=flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__pb2.Projects.SerializeToString, - ), - 'CreateWorkflowEvent': grpc.unary_unary_rpc_method_handler( - servicer.CreateWorkflowEvent, - request_deserializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.SerializeToString, - ), - 'CreateNodeEvent': grpc.unary_unary_rpc_method_handler( - servicer.CreateNodeEvent, - request_deserializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.SerializeToString, - ), - 'CreateTaskEvent': grpc.unary_unary_rpc_method_handler( - servicer.CreateTaskEvent, - request_deserializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.SerializeToString, - ), - 'GetTaskExecution': grpc.unary_unary_rpc_method_handler( - servicer.GetTaskExecution, - request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.SerializeToString, - ), - 'ListTaskExecutions': grpc.unary_unary_rpc_method_handler( - servicer.ListTaskExecutions, - request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.SerializeToString, - ), - 'GetTaskExecutionData': grpc.unary_unary_rpc_method_handler( - servicer.GetTaskExecutionData, - request_deserializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.SerializeToString, - ), - 'UpdateProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProjectDomainAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.SerializeToString, - ), - 'GetProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( - servicer.GetProjectDomainAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.SerializeToString, - ), - 'DeleteProjectDomainAttributes': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProjectDomainAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.SerializeToString, - ), - 'UpdateProjectAttributes': grpc.unary_unary_rpc_method_handler( - servicer.UpdateProjectAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.SerializeToString, - ), - 'GetProjectAttributes': grpc.unary_unary_rpc_method_handler( - servicer.GetProjectAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.SerializeToString, - ), - 'DeleteProjectAttributes': grpc.unary_unary_rpc_method_handler( - servicer.DeleteProjectAttributes, - request_deserializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.SerializeToString, - ), - 'UpdateWorkflowAttributes': grpc.unary_unary_rpc_method_handler( - servicer.UpdateWorkflowAttributes, - request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.SerializeToString, - ), - 'GetWorkflowAttributes': grpc.unary_unary_rpc_method_handler( - servicer.GetWorkflowAttributes, - request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.SerializeToString, - ), - 'DeleteWorkflowAttributes': grpc.unary_unary_rpc_method_handler( - servicer.DeleteWorkflowAttributes, - request_deserializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.SerializeToString, - ), - 'ListMatchableAttributes': grpc.unary_unary_rpc_method_handler( - servicer.ListMatchableAttributes, - request_deserializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.SerializeToString, - ), - 'ListNamedEntities': grpc.unary_unary_rpc_method_handler( - servicer.ListNamedEntities, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityList.SerializeToString, - ), - 'GetNamedEntity': grpc.unary_unary_rpc_method_handler( - servicer.GetNamedEntity, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntity.SerializeToString, - ), - 'UpdateNamedEntity': grpc.unary_unary_rpc_method_handler( - servicer.UpdateNamedEntity, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.SerializeToString, - ), - 'GetVersion': grpc.unary_unary_rpc_method_handler( - servicer.GetVersion, - request_deserializer=flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.SerializeToString, - ), - 'GetDescriptionEntity': grpc.unary_unary_rpc_method_handler( - servicer.GetDescriptionEntity, - request_deserializer=flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.SerializeToString, - ), - 'ListDescriptionEntities': grpc.unary_unary_rpc_method_handler( - servicer.ListDescriptionEntities, - request_deserializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.SerializeToString, - ), - 'GetExecutionMetrics': grpc.unary_unary_rpc_method_handler( - servicer.GetExecutionMetrics, - request_deserializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AdminService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class AdminService(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - """ - - @staticmethod - def CreateTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateTask', - flyteidl_dot_admin_dot_task__pb2.TaskCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_task__pb2.TaskCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTask', - flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - flyteidl_dot_admin_dot_task__pb2.Task.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListTaskIds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTaskIds', - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListTasks(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTasks', - flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - flyteidl_dot_admin_dot_task__pb2.TaskList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWorkflow(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateWorkflow', - flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__pb2.WorkflowCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetWorkflow(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetWorkflow', - flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__pb2.Workflow.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListWorkflowIds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListWorkflowIds', - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListWorkflows(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListWorkflows', - flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__pb2.WorkflowList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateLaunchPlan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateLaunchPlan', - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetLaunchPlan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetLaunchPlan', - flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetActiveLaunchPlan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetActiveLaunchPlan', - flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlan.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListActiveLaunchPlans(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListActiveLaunchPlans', - flyteidl_dot_admin_dot_launch__plan__pb2.ActiveLaunchPlanListRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListLaunchPlanIds(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListLaunchPlanIds', - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierListRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntityIdentifierList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListLaunchPlans(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListLaunchPlans', - flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateLaunchPlan(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateLaunchPlan', - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_launch__plan__pb2.LaunchPlanUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateExecution', - flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RelaunchExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RelaunchExecution', - flyteidl_dot_admin_dot_execution__pb2.ExecutionRelaunchRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RecoverExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RecoverExecution', - flyteidl_dot_admin_dot_execution__pb2.ExecutionRecoverRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecution', - flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.Execution.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateExecution', - flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExecutionData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecutionData', - flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListExecutions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListExecutions', - flyteidl_dot_admin_dot_common__pb2.ResourceListRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def TerminateExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/TerminateExecution', - flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.ExecutionTerminateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNodeExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNodeExecution', - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetRequest.SerializeToString, - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecution.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListNodeExecutions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNodeExecutions', - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionListRequest.SerializeToString, - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListNodeExecutionsForTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNodeExecutionsForTask', - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionForTaskListRequest.SerializeToString, - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNodeExecutionData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNodeExecutionData', - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataRequest.SerializeToString, - flyteidl_dot_admin_dot_node__execution__pb2.NodeExecutionGetDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def RegisterProject(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/RegisterProject', - flyteidl_dot_admin_dot_project__pb2.ProjectRegisterRequest.SerializeToString, - flyteidl_dot_admin_dot_project__pb2.ProjectRegisterResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateProject(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProject', - flyteidl_dot_admin_dot_project__pb2.Project.SerializeToString, - flyteidl_dot_admin_dot_project__pb2.ProjectUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListProjects(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListProjects', - flyteidl_dot_admin_dot_project__pb2.ProjectListRequest.SerializeToString, - flyteidl_dot_admin_dot_project__pb2.Projects.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateWorkflowEvent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateWorkflowEvent', - flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventRequest.SerializeToString, - flyteidl_dot_admin_dot_event__pb2.WorkflowExecutionEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateNodeEvent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateNodeEvent', - flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventRequest.SerializeToString, - flyteidl_dot_admin_dot_event__pb2.NodeExecutionEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateTaskEvent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/CreateTaskEvent', - flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventRequest.SerializeToString, - flyteidl_dot_admin_dot_event__pb2.TaskExecutionEventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTaskExecution(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTaskExecution', - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetRequest.SerializeToString, - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecution.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListTaskExecutions(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListTaskExecutions', - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionListRequest.SerializeToString, - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTaskExecutionData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetTaskExecutionData', - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataRequest.SerializeToString, - flyteidl_dot_admin_dot_task__execution__pb2.TaskExecutionGetDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateProjectDomainAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProjectDomainAttributes', - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProjectDomainAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetProjectDomainAttributes', - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetRequest.SerializeToString, - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesGetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteProjectDomainAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteProjectDomainAttributes', - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteRequest.SerializeToString, - flyteidl_dot_admin_dot_project__domain__attributes__pb2.ProjectDomainAttributesDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateProjectAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateProjectAttributes', - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetProjectAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetProjectAttributes', - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetRequest.SerializeToString, - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesGetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteProjectAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteProjectAttributes', - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteRequest.SerializeToString, - flyteidl_dot_admin_dot_project__attributes__pb2.ProjectAttributesDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateWorkflowAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateWorkflowAttributes', - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetWorkflowAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetWorkflowAttributes', - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesGetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteWorkflowAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/DeleteWorkflowAttributes', - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteRequest.SerializeToString, - flyteidl_dot_admin_dot_workflow__attributes__pb2.WorkflowAttributesDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListMatchableAttributes(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListMatchableAttributes', - flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesRequest.SerializeToString, - flyteidl_dot_admin_dot_matchable__resource__pb2.ListMatchableAttributesResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListNamedEntities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListNamedEntities', - flyteidl_dot_admin_dot_common__pb2.NamedEntityListRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntityList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetNamedEntity(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetNamedEntity', - flyteidl_dot_admin_dot_common__pb2.NamedEntityGetRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntity.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def UpdateNamedEntity(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/UpdateNamedEntity', - flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateRequest.SerializeToString, - flyteidl_dot_admin_dot_common__pb2.NamedEntityUpdateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetVersion(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetVersion', - flyteidl_dot_admin_dot_version__pb2.GetVersionRequest.SerializeToString, - flyteidl_dot_admin_dot_version__pb2.GetVersionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetDescriptionEntity(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetDescriptionEntity', - flyteidl_dot_admin_dot_common__pb2.ObjectGetRequest.SerializeToString, - flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntity.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListDescriptionEntities(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/ListDescriptionEntities', - flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityListRequest.SerializeToString, - flyteidl_dot_admin_dot_description__entity__pb2.DescriptionEntityList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetExecutionMetrics(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AdminService/GetExecutionMetrics', - flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsRequest.SerializeToString, - flyteidl_dot_admin_dot_execution__pb2.WorkflowExecutionGetMetricsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py deleted file mode 100644 index f1234012be..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/agent.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1c\x66lyteidl/service/agent.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1a\x66lyteidl/admin/agent.proto2\x8f\x02\n\x11\x41syncAgentService\x12U\n\nCreateTask\x12!.flyteidl.admin.CreateTaskRequest\x1a\".flyteidl.admin.CreateTaskResponse\"\x00\x12L\n\x07GetTask\x12\x1e.flyteidl.admin.GetTaskRequest\x1a\x1f.flyteidl.admin.GetTaskResponse\"\x00\x12U\n\nDeleteTask\x12!.flyteidl.admin.DeleteTaskRequest\x1a\".flyteidl.admin.DeleteTaskResponse\"\x00\x32\xf0\x01\n\x14\x41gentMetadataService\x12k\n\x08GetAgent\x12\x1f.flyteidl.admin.GetAgentRequest\x1a .flyteidl.admin.GetAgentResponse\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/api/v1/agent/{name}\x12k\n\nListAgents\x12!.flyteidl.admin.ListAgentsRequest\x1a\".flyteidl.admin.ListAgentsResponse\"\x16\x82\xd3\xe4\x93\x02\x10\x12\x0e/api/v1/agentsB\xc2\x01\n\x14\x63om.flyteidl.serviceB\nAgentProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.agent_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\nAgentProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _AGENTMETADATASERVICE.methods_by_name['GetAgent']._options = None - _AGENTMETADATASERVICE.methods_by_name['GetAgent']._serialized_options = b'\202\323\344\223\002\026\022\024/api/v1/agent/{name}' - _AGENTMETADATASERVICE.methods_by_name['ListAgents']._options = None - _AGENTMETADATASERVICE.methods_by_name['ListAgents']._serialized_options = b'\202\323\344\223\002\020\022\016/api/v1/agents' - _globals['_ASYNCAGENTSERVICE']._serialized_start=109 - _globals['_ASYNCAGENTSERVICE']._serialized_end=380 - _globals['_AGENTMETADATASERVICE']._serialized_start=383 - _globals['_AGENTMETADATASERVICE']._serialized_end=623 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi deleted file mode 100644 index 1d89a831af..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from flyteidl.admin import agent_pb2 as _agent_pb2 -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py deleted file mode 100644 index 94f75b1682..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/agent_pb2_grpc.py +++ /dev/null @@ -1,240 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.admin import agent_pb2 as flyteidl_dot_admin_dot_agent__pb2 - - -class AsyncAgentServiceStub(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateTask = channel.unary_unary( - '/flyteidl.service.AsyncAgentService/CreateTask', - request_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, - ) - self.GetTask = channel.unary_unary( - '/flyteidl.service.AsyncAgentService/GetTask', - request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, - ) - self.DeleteTask = channel.unary_unary( - '/flyteidl.service.AsyncAgentService/DeleteTask', - request_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, - ) - - -class AsyncAgentServiceServicer(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. - """ - - def CreateTask(self, request, context): - """Send a task create request to the agent server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTask(self, request, context): - """Get job status. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteTask(self, request, context): - """Delete the task resource. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AsyncAgentServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.SerializeToString, - ), - 'DeleteTask': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTask, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AsyncAgentService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class AsyncAgentService(object): - """AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. - """ - - @staticmethod - def CreateTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/CreateTask', - flyteidl_dot_admin_dot_agent__pb2.CreateTaskRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.CreateTaskResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/GetTask', - flyteidl_dot_admin_dot_agent__pb2.GetTaskRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.GetTaskResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AsyncAgentService/DeleteTask', - flyteidl_dot_admin_dot_agent__pb2.DeleteTaskRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.DeleteTaskResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - -class AgentMetadataServiceStub(object): - """AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. - This service allows propeller or users to get the metadata of agents. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetAgent = channel.unary_unary( - '/flyteidl.service.AgentMetadataService/GetAgent', - request_serializer=flyteidl_dot_admin_dot_agent__pb2.GetAgentRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetAgentResponse.FromString, - ) - self.ListAgents = channel.unary_unary( - '/flyteidl.service.AgentMetadataService/ListAgents', - request_serializer=flyteidl_dot_admin_dot_agent__pb2.ListAgentsRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_agent__pb2.ListAgentsResponse.FromString, - ) - - -class AgentMetadataServiceServicer(object): - """AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. - This service allows propeller or users to get the metadata of agents. - """ - - def GetAgent(self, request, context): - """Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListAgents(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AgentMetadataServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetAgent': grpc.unary_unary_rpc_method_handler( - servicer.GetAgent, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.GetAgentRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.GetAgentResponse.SerializeToString, - ), - 'ListAgents': grpc.unary_unary_rpc_method_handler( - servicer.ListAgents, - request_deserializer=flyteidl_dot_admin_dot_agent__pb2.ListAgentsRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_agent__pb2.ListAgentsResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AgentMetadataService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class AgentMetadataService(object): - """AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. - This service allows propeller or users to get the metadata of agents. - """ - - @staticmethod - def GetAgent(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AgentMetadataService/GetAgent', - flyteidl_dot_admin_dot_agent__pb2.GetAgentRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.GetAgentResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListAgents(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AgentMetadataService/ListAgents', - flyteidl_dot_admin_dot_agent__pb2.ListAgentsRequest.SerializeToString, - flyteidl_dot_admin_dot_agent__pb2.ListAgentsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py deleted file mode 100644 index b479042f27..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/auth.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x66lyteidl/service/auth.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\"\x17\n\x15OAuth2MetadataRequest\"\xa1\x04\n\x16OAuth2MetadataResponse\x12\x16\n\x06issuer\x18\x01 \x01(\tR\x06issuer\x12\x35\n\x16\x61uthorization_endpoint\x18\x02 \x01(\tR\x15\x61uthorizationEndpoint\x12%\n\x0etoken_endpoint\x18\x03 \x01(\tR\rtokenEndpoint\x12\x38\n\x18response_types_supported\x18\x04 \x03(\tR\x16responseTypesSupported\x12)\n\x10scopes_supported\x18\x05 \x03(\tR\x0fscopesSupported\x12P\n%token_endpoint_auth_methods_supported\x18\x06 \x03(\tR!tokenEndpointAuthMethodsSupported\x12\x19\n\x08jwks_uri\x18\x07 \x01(\tR\x07jwksUri\x12G\n code_challenge_methods_supported\x18\x08 \x03(\tR\x1d\x63odeChallengeMethodsSupported\x12\x32\n\x15grant_types_supported\x18\t \x03(\tR\x13grantTypesSupported\x12\x42\n\x1d\x64\x65vice_authorization_endpoint\x18\n \x01(\tR\x1b\x64\x65viceAuthorizationEndpoint\"\x1f\n\x1dPublicClientAuthConfigRequest\"\x86\x02\n\x1ePublicClientAuthConfigResponse\x12\x1b\n\tclient_id\x18\x01 \x01(\tR\x08\x63lientId\x12!\n\x0credirect_uri\x18\x02 \x01(\tR\x0bredirectUri\x12\x16\n\x06scopes\x18\x03 \x03(\tR\x06scopes\x12<\n\x1a\x61uthorization_metadata_key\x18\x04 \x01(\tR\x18\x61uthorizationMetadataKey\x12\x32\n\x15service_http_endpoint\x18\x05 \x01(\tR\x13serviceHttpEndpoint\x12\x1a\n\x08\x61udience\x18\x06 \x01(\tR\x08\x61udience2\xcd\x02\n\x13\x41uthMetadataService\x12\x97\x01\n\x11GetOAuth2Metadata\x12\'.flyteidl.service.OAuth2MetadataRequest\x1a(.flyteidl.service.OAuth2MetadataResponse\"/\x82\xd3\xe4\x93\x02)\x12\'/.well-known/oauth-authorization-server\x12\x9b\x01\n\x15GetPublicClientConfig\x12/.flyteidl.service.PublicClientAuthConfigRequest\x1a\x30.flyteidl.service.PublicClientAuthConfigResponse\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/config/v1/flyte_clientB\xc1\x01\n\x14\x63om.flyteidl.serviceB\tAuthProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.auth_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\tAuthProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _AUTHMETADATASERVICE.methods_by_name['GetOAuth2Metadata']._options = None - _AUTHMETADATASERVICE.methods_by_name['GetOAuth2Metadata']._serialized_options = b'\202\323\344\223\002)\022\'/.well-known/oauth-authorization-server' - _AUTHMETADATASERVICE.methods_by_name['GetPublicClientConfig']._options = None - _AUTHMETADATASERVICE.methods_by_name['GetPublicClientConfig']._serialized_options = b'\202\323\344\223\002\031\022\027/config/v1/flyte_client' - _globals['_OAUTH2METADATAREQUEST']._serialized_start=79 - _globals['_OAUTH2METADATAREQUEST']._serialized_end=102 - _globals['_OAUTH2METADATARESPONSE']._serialized_start=105 - _globals['_OAUTH2METADATARESPONSE']._serialized_end=650 - _globals['_PUBLICCLIENTAUTHCONFIGREQUEST']._serialized_start=652 - _globals['_PUBLICCLIENTAUTHCONFIGREQUEST']._serialized_end=683 - _globals['_PUBLICCLIENTAUTHCONFIGRESPONSE']._serialized_start=686 - _globals['_PUBLICCLIENTAUTHCONFIGRESPONSE']._serialized_end=948 - _globals['_AUTHMETADATASERVICE']._serialized_start=951 - _globals['_AUTHMETADATASERVICE']._serialized_end=1284 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi deleted file mode 100644 index 3d02573b5d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2.pyi +++ /dev/null @@ -1,55 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Optional as _Optional - -DESCRIPTOR: _descriptor.FileDescriptor - -class OAuth2MetadataRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class OAuth2MetadataResponse(_message.Message): - __slots__ = ["issuer", "authorization_endpoint", "token_endpoint", "response_types_supported", "scopes_supported", "token_endpoint_auth_methods_supported", "jwks_uri", "code_challenge_methods_supported", "grant_types_supported", "device_authorization_endpoint"] - ISSUER_FIELD_NUMBER: _ClassVar[int] - AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - RESPONSE_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - SCOPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - JWKS_URI_FIELD_NUMBER: _ClassVar[int] - CODE_CHALLENGE_METHODS_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - GRANT_TYPES_SUPPORTED_FIELD_NUMBER: _ClassVar[int] - DEVICE_AUTHORIZATION_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - issuer: str - authorization_endpoint: str - token_endpoint: str - response_types_supported: _containers.RepeatedScalarFieldContainer[str] - scopes_supported: _containers.RepeatedScalarFieldContainer[str] - token_endpoint_auth_methods_supported: _containers.RepeatedScalarFieldContainer[str] - jwks_uri: str - code_challenge_methods_supported: _containers.RepeatedScalarFieldContainer[str] - grant_types_supported: _containers.RepeatedScalarFieldContainer[str] - device_authorization_endpoint: str - def __init__(self, issuer: _Optional[str] = ..., authorization_endpoint: _Optional[str] = ..., token_endpoint: _Optional[str] = ..., response_types_supported: _Optional[_Iterable[str]] = ..., scopes_supported: _Optional[_Iterable[str]] = ..., token_endpoint_auth_methods_supported: _Optional[_Iterable[str]] = ..., jwks_uri: _Optional[str] = ..., code_challenge_methods_supported: _Optional[_Iterable[str]] = ..., grant_types_supported: _Optional[_Iterable[str]] = ..., device_authorization_endpoint: _Optional[str] = ...) -> None: ... - -class PublicClientAuthConfigRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class PublicClientAuthConfigResponse(_message.Message): - __slots__ = ["client_id", "redirect_uri", "scopes", "authorization_metadata_key", "service_http_endpoint", "audience"] - CLIENT_ID_FIELD_NUMBER: _ClassVar[int] - REDIRECT_URI_FIELD_NUMBER: _ClassVar[int] - SCOPES_FIELD_NUMBER: _ClassVar[int] - AUTHORIZATION_METADATA_KEY_FIELD_NUMBER: _ClassVar[int] - SERVICE_HTTP_ENDPOINT_FIELD_NUMBER: _ClassVar[int] - AUDIENCE_FIELD_NUMBER: _ClassVar[int] - client_id: str - redirect_uri: str - scopes: _containers.RepeatedScalarFieldContainer[str] - authorization_metadata_key: str - service_http_endpoint: str - audience: str - def __init__(self, client_id: _Optional[str] = ..., redirect_uri: _Optional[str] = ..., scopes: _Optional[_Iterable[str]] = ..., authorization_metadata_key: _Optional[str] = ..., service_http_endpoint: _Optional[str] = ..., audience: _Optional[str] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py deleted file mode 100644 index 155b8ca575..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/auth_pb2_grpc.py +++ /dev/null @@ -1,111 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import auth_pb2 as flyteidl_dot_service_dot_auth__pb2 - - -class AuthMetadataServiceStub(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetOAuth2Metadata = channel.unary_unary( - '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', - request_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, - ) - self.GetPublicClientConfig = channel.unary_unary( - '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', - request_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, - ) - - -class AuthMetadataServiceServicer(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - def GetOAuth2Metadata(self, request, context): - """Anonymously accessible. Retrieves local or external oauth authorization server metadata. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetPublicClientConfig(self, request, context): - """Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - requests. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_AuthMetadataServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetOAuth2Metadata': grpc.unary_unary_rpc_method_handler( - servicer.GetOAuth2Metadata, - request_deserializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.FromString, - response_serializer=flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.SerializeToString, - ), - 'GetPublicClientConfig': grpc.unary_unary_rpc_method_handler( - servicer.GetPublicClientConfig, - request_deserializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.FromString, - response_serializer=flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.AuthMetadataService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class AuthMetadataService(object): - """The following defines an RPC service that is also served over HTTP via grpc-gateway. - Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go - RPCs defined in this service must be anonymously accessible. - """ - - @staticmethod - def GetOAuth2Metadata(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetOAuth2Metadata', - flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataRequest.SerializeToString, - flyteidl_dot_service_dot_auth__pb2.OAuth2MetadataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetPublicClientConfig(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.AuthMetadataService/GetPublicClientConfig', - flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigRequest.SerializeToString, - flyteidl_dot_service_dot_auth__pb2.PublicClientAuthConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py deleted file mode 100644 index 6dcd26a0b7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.py +++ /dev/null @@ -1,68 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/dataproxy.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2 -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 -from flyteidl.core import identifier_pb2 as flyteidl_dot_core_dot_identifier__pb2 -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n flyteidl/service/dataproxy.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1e\x66lyteidl/core/identifier.proto\x1a\x1c\x66lyteidl/core/literals.proto\"\x97\x01\n\x1c\x43reateUploadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x1d\n\nnative_url\x18\x02 \x01(\tR\tnativeUrl\x12\x39\n\nexpires_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"\xeb\x01\n\x1b\x43reateUploadLocationRequest\x12\x18\n\x07project\x18\x01 \x01(\tR\x07project\x12\x16\n\x06\x64omain\x18\x02 \x01(\tR\x06\x64omain\x12\x1a\n\x08\x66ilename\x18\x03 \x01(\tR\x08\x66ilename\x12\x38\n\nexpires_in\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12\x1f\n\x0b\x63ontent_md5\x18\x05 \x01(\x0cR\ncontentMd5\x12#\n\rfilename_root\x18\x06 \x01(\tR\x0c\x66ilenameRoot\"|\n\x1d\x43reateDownloadLocationRequest\x12\x1d\n\nnative_url\x18\x01 \x01(\tR\tnativeUrl\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn:\x02\x18\x01\"~\n\x1e\x43reateDownloadLocationResponse\x12\x1d\n\nsigned_url\x18\x01 \x01(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt:\x02\x18\x01\"\xfa\x01\n\x19\x43reateDownloadLinkRequest\x12\x43\n\rartifact_type\x18\x01 \x01(\x0e\x32\x1e.flyteidl.service.ArtifactTypeR\x0c\x61rtifactType\x12\x38\n\nexpires_in\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\texpiresIn\x12T\n\x11node_execution_id\x18\x03 \x01(\x0b\x32&.flyteidl.core.NodeExecutionIdentifierH\x00R\x0fnodeExecutionIdB\x08\n\x06source\"\xc7\x01\n\x1a\x43reateDownloadLinkResponse\x12!\n\nsigned_url\x18\x01 \x03(\tB\x02\x18\x01R\tsignedUrl\x12=\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01R\texpiresAt\x12G\n\x0fpre_signed_urls\x18\x03 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsR\rpreSignedUrls\"i\n\rPreSignedURLs\x12\x1d\n\nsigned_url\x18\x01 \x03(\tR\tsignedUrl\x12\x39\n\nexpires_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAt\"-\n\x0eGetDataRequest\x12\x1b\n\tflyte_url\x18\x01 \x01(\tR\x08\x66lyteUrl\"\xd6\x01\n\x0fGetDataResponse\x12<\n\x0bliteral_map\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapH\x00R\nliteralMap\x12I\n\x0fpre_signed_urls\x18\x02 \x01(\x0b\x32\x1f.flyteidl.service.PreSignedURLsH\x00R\rpreSignedUrls\x12\x32\n\x07literal\x18\x03 \x01(\x0b\x32\x16.flyteidl.core.LiteralH\x00R\x07literalB\x06\n\x04\x64\x61ta*C\n\x0c\x41rtifactType\x12\x1b\n\x17\x41RTIFACT_TYPE_UNDEFINED\x10\x00\x12\x16\n\x12\x41RTIFACT_TYPE_DECK\x10\x01\x32\xe2\x04\n\x10\x44\x61taProxyService\x12\xa0\x01\n\x14\x43reateUploadLocation\x12-.flyteidl.service.CreateUploadLocationRequest\x1a..flyteidl.service.CreateUploadLocationResponse\")\x82\xd3\xe4\x93\x02#:\x01*\"\x1e/api/v1/dataproxy/artifact_urn\x12\xa6\x01\n\x16\x43reateDownloadLocation\x12/.flyteidl.service.CreateDownloadLocationRequest\x1a\x30.flyteidl.service.CreateDownloadLocationResponse\")\x88\x02\x01\x82\xd3\xe4\x93\x02 \x12\x1e/api/v1/dataproxy/artifact_urn\x12\x9b\x01\n\x12\x43reateDownloadLink\x12+.flyteidl.service.CreateDownloadLinkRequest\x1a,.flyteidl.service.CreateDownloadLinkResponse\"*\x82\xd3\xe4\x93\x02$:\x01*\"\x1f/api/v1/dataproxy/artifact_link\x12\x64\n\x07GetData\x12 .flyteidl.service.GetDataRequest\x1a!.flyteidl.service.GetDataResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/api/v1/dataB\xc6\x01\n\x14\x63om.flyteidl.serviceB\x0e\x44\x61taproxyProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.dataproxy_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\016DataproxyProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _CREATEDOWNLOADLOCATIONREQUEST._options = None - _CREATEDOWNLOADLOCATIONREQUEST._serialized_options = b'\030\001' - _CREATEDOWNLOADLOCATIONRESPONSE._options = None - _CREATEDOWNLOADLOCATIONRESPONSE._serialized_options = b'\030\001' - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._options = None - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['signed_url']._serialized_options = b'\030\001' - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._options = None - _CREATEDOWNLOADLINKRESPONSE.fields_by_name['expires_at']._serialized_options = b'\030\001' - _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateUploadLocation']._serialized_options = b'\202\323\344\223\002#:\001*\"\036/api/v1/dataproxy/artifact_urn' - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLocation']._serialized_options = b'\210\002\001\202\323\344\223\002 \022\036/api/v1/dataproxy/artifact_urn' - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._options = None - _DATAPROXYSERVICE.methods_by_name['CreateDownloadLink']._serialized_options = b'\202\323\344\223\002$:\001*\"\037/api/v1/dataproxy/artifact_link' - _DATAPROXYSERVICE.methods_by_name['GetData']._options = None - _DATAPROXYSERVICE.methods_by_name['GetData']._serialized_options = b'\202\323\344\223\002\016\022\014/api/v1/data' - _globals['_ARTIFACTTYPE']._serialized_start=1683 - _globals['_ARTIFACTTYPE']._serialized_end=1750 - _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_start=212 - _globals['_CREATEUPLOADLOCATIONRESPONSE']._serialized_end=363 - _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_start=366 - _globals['_CREATEUPLOADLOCATIONREQUEST']._serialized_end=601 - _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_start=603 - _globals['_CREATEDOWNLOADLOCATIONREQUEST']._serialized_end=727 - _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_start=729 - _globals['_CREATEDOWNLOADLOCATIONRESPONSE']._serialized_end=855 - _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_start=858 - _globals['_CREATEDOWNLOADLINKREQUEST']._serialized_end=1108 - _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_start=1111 - _globals['_CREATEDOWNLOADLINKRESPONSE']._serialized_end=1310 - _globals['_PRESIGNEDURLS']._serialized_start=1312 - _globals['_PRESIGNEDURLS']._serialized_end=1417 - _globals['_GETDATAREQUEST']._serialized_start=1419 - _globals['_GETDATAREQUEST']._serialized_end=1464 - _globals['_GETDATARESPONSE']._serialized_start=1467 - _globals['_GETDATARESPONSE']._serialized_end=1681 - _globals['_DATAPROXYSERVICE']._serialized_start=1753 - _globals['_DATAPROXYSERVICE']._serialized_end=2363 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi deleted file mode 100644 index 820034751f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2.pyi +++ /dev/null @@ -1,105 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import duration_pb2 as _duration_pb2 -from google.protobuf import timestamp_pb2 as _timestamp_pb2 -from flyteidl.core import identifier_pb2 as _identifier_pb2 -from flyteidl.core import literals_pb2 as _literals_pb2 -from google.protobuf.internal import containers as _containers -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class ArtifactType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - ARTIFACT_TYPE_UNDEFINED: _ClassVar[ArtifactType] - ARTIFACT_TYPE_DECK: _ClassVar[ArtifactType] -ARTIFACT_TYPE_UNDEFINED: ArtifactType -ARTIFACT_TYPE_DECK: ArtifactType - -class CreateUploadLocationResponse(_message.Message): - __slots__ = ["signed_url", "native_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - NATIVE_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: str - native_url: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[str] = ..., native_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class CreateUploadLocationRequest(_message.Message): - __slots__ = ["project", "domain", "filename", "expires_in", "content_md5", "filename_root"] - PROJECT_FIELD_NUMBER: _ClassVar[int] - DOMAIN_FIELD_NUMBER: _ClassVar[int] - FILENAME_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - CONTENT_MD5_FIELD_NUMBER: _ClassVar[int] - FILENAME_ROOT_FIELD_NUMBER: _ClassVar[int] - project: str - domain: str - filename: str - expires_in: _duration_pb2.Duration - content_md5: bytes - filename_root: str - def __init__(self, project: _Optional[str] = ..., domain: _Optional[str] = ..., filename: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., content_md5: _Optional[bytes] = ..., filename_root: _Optional[str] = ...) -> None: ... - -class CreateDownloadLocationRequest(_message.Message): - __slots__ = ["native_url", "expires_in"] - NATIVE_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - native_url: str - expires_in: _duration_pb2.Duration - def __init__(self, native_url: _Optional[str] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ... - -class CreateDownloadLocationResponse(_message.Message): - __slots__ = ["signed_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: str - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class CreateDownloadLinkRequest(_message.Message): - __slots__ = ["artifact_type", "expires_in", "node_execution_id"] - ARTIFACT_TYPE_FIELD_NUMBER: _ClassVar[int] - EXPIRES_IN_FIELD_NUMBER: _ClassVar[int] - NODE_EXECUTION_ID_FIELD_NUMBER: _ClassVar[int] - artifact_type: ArtifactType - expires_in: _duration_pb2.Duration - node_execution_id: _identifier_pb2.NodeExecutionIdentifier - def __init__(self, artifact_type: _Optional[_Union[ArtifactType, str]] = ..., expires_in: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., node_execution_id: _Optional[_Union[_identifier_pb2.NodeExecutionIdentifier, _Mapping]] = ...) -> None: ... - -class CreateDownloadLinkResponse(_message.Message): - __slots__ = ["signed_url", "expires_at", "pre_signed_urls"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] - signed_url: _containers.RepeatedScalarFieldContainer[str] - expires_at: _timestamp_pb2.Timestamp - pre_signed_urls: PreSignedURLs - def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ...) -> None: ... - -class PreSignedURLs(_message.Message): - __slots__ = ["signed_url", "expires_at"] - SIGNED_URL_FIELD_NUMBER: _ClassVar[int] - EXPIRES_AT_FIELD_NUMBER: _ClassVar[int] - signed_url: _containers.RepeatedScalarFieldContainer[str] - expires_at: _timestamp_pb2.Timestamp - def __init__(self, signed_url: _Optional[_Iterable[str]] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ... - -class GetDataRequest(_message.Message): - __slots__ = ["flyte_url"] - FLYTE_URL_FIELD_NUMBER: _ClassVar[int] - flyte_url: str - def __init__(self, flyte_url: _Optional[str] = ...) -> None: ... - -class GetDataResponse(_message.Message): - __slots__ = ["literal_map", "pre_signed_urls", "literal"] - LITERAL_MAP_FIELD_NUMBER: _ClassVar[int] - PRE_SIGNED_URLS_FIELD_NUMBER: _ClassVar[int] - LITERAL_FIELD_NUMBER: _ClassVar[int] - literal_map: _literals_pb2.LiteralMap - pre_signed_urls: PreSignedURLs - literal: _literals_pb2.Literal - def __init__(self, literal_map: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., pre_signed_urls: _Optional[_Union[PreSignedURLs, _Mapping]] = ..., literal: _Optional[_Union[_literals_pb2.Literal, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py deleted file mode 100644 index 601d1cbf56..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/dataproxy_pb2_grpc.py +++ /dev/null @@ -1,171 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import dataproxy_pb2 as flyteidl_dot_service_dot_dataproxy__pb2 - - -class DataProxyServiceStub(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateUploadLocation = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateUploadLocation', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, - ) - self.CreateDownloadLocation = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateDownloadLocation', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, - ) - self.CreateDownloadLink = channel.unary_unary( - '/flyteidl.service.DataProxyService/CreateDownloadLink', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, - ) - self.GetData = channel.unary_unary( - '/flyteidl.service.DataProxyService/GetData', - request_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, - ) - - -class DataProxyServiceServicer(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - def CreateUploadLocation(self, request, context): - """CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDownloadLocation(self, request, context): - """CreateDownloadLocation creates a signed url to download artifacts. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def CreateDownloadLink(self, request, context): - """CreateDownloadLocation creates a signed url to download artifacts. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetData(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_DataProxyServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateUploadLocation': grpc.unary_unary_rpc_method_handler( - servicer.CreateUploadLocation, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.SerializeToString, - ), - 'CreateDownloadLocation': grpc.unary_unary_rpc_method_handler( - servicer.CreateDownloadLocation, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.SerializeToString, - ), - 'CreateDownloadLink': grpc.unary_unary_rpc_method_handler( - servicer.CreateDownloadLink, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.SerializeToString, - ), - 'GetData': grpc.unary_unary_rpc_method_handler( - servicer.GetData, - request_deserializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.FromString, - response_serializer=flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.DataProxyService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class DataProxyService(object): - """DataProxyService defines an RPC Service that allows access to user-data in a controlled manner. - """ - - @staticmethod - def CreateUploadLocation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateUploadLocation', - flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateUploadLocationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDownloadLocation(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLocation', - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLocationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def CreateDownloadLink(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/CreateDownloadLink', - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.CreateDownloadLinkResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetData(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.DataProxyService/GetData', - flyteidl_dot_service_dot_dataproxy__pb2.GetDataRequest.SerializeToString, - flyteidl_dot_service_dot_dataproxy__pb2.GetDataResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py deleted file mode 100644 index 4de8daabf8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.py +++ /dev/null @@ -1,64 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/external_plugin_service.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from flyteidl.core import literals_pb2 as flyteidl_dot_core_dot_literals__pb2 -from flyteidl.core import tasks_pb2 as flyteidl_dot_core_dot_tasks__pb2 -from flyteidl.core import interface_pb2 as flyteidl_dot_core_dot_interface__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.flyteidl/service/external_plugin_service.proto\x12\x10\x66lyteidl.service\x1a\x1c\x66lyteidl/core/literals.proto\x1a\x19\x66lyteidl/core/tasks.proto\x1a\x1d\x66lyteidl/core/interface.proto\"\xa8\x01\n\x11TaskCreateRequest\x12\x31\n\x06inputs\x18\x01 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x06inputs\x12\x37\n\x08template\x18\x02 \x01(\x0b\x32\x1b.flyteidl.core.TaskTemplateR\x08template\x12#\n\routput_prefix\x18\x03 \x01(\tR\x0coutputPrefix:\x02\x18\x01\"/\n\x12TaskCreateResponse\x12\x15\n\x06job_id\x18\x01 \x01(\tR\x05jobId:\x02\x18\x01\"H\n\x0eTaskGetRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"y\n\x0fTaskGetResponse\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x17.flyteidl.service.StateR\x05state\x12\x33\n\x07outputs\x18\x02 \x01(\x0b\x32\x19.flyteidl.core.LiteralMapR\x07outputs:\x02\x18\x01\"K\n\x11TaskDeleteRequest\x12\x1b\n\ttask_type\x18\x01 \x01(\tR\x08taskType\x12\x15\n\x06job_id\x18\x02 \x01(\tR\x05jobId:\x02\x18\x01\"\x18\n\x12TaskDeleteResponse:\x02\x18\x01*b\n\x05State\x12\x15\n\x11RETRYABLE_FAILURE\x10\x00\x12\x15\n\x11PERMANENT_FAILURE\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\r\n\tSUCCEEDED\x10\x04\x1a\x02\x18\x01\x32\xa8\x02\n\x15\x45xternalPluginService\x12\\\n\nCreateTask\x12#.flyteidl.service.TaskCreateRequest\x1a$.flyteidl.service.TaskCreateResponse\"\x03\x88\x02\x01\x12S\n\x07GetTask\x12 .flyteidl.service.TaskGetRequest\x1a!.flyteidl.service.TaskGetResponse\"\x03\x88\x02\x01\x12\\\n\nDeleteTask\x12#.flyteidl.service.TaskDeleteRequest\x1a$.flyteidl.service.TaskDeleteResponse\"\x03\x88\x02\x01\x42\xd2\x01\n\x14\x63om.flyteidl.serviceB\x1a\x45xternalPluginServiceProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.external_plugin_service_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\032ExternalPluginServiceProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _STATE._options = None - _STATE._serialized_options = b'\030\001' - _TASKCREATEREQUEST._options = None - _TASKCREATEREQUEST._serialized_options = b'\030\001' - _TASKCREATERESPONSE._options = None - _TASKCREATERESPONSE._serialized_options = b'\030\001' - _TASKGETREQUEST._options = None - _TASKGETREQUEST._serialized_options = b'\030\001' - _TASKGETRESPONSE._options = None - _TASKGETRESPONSE._serialized_options = b'\030\001' - _TASKDELETEREQUEST._options = None - _TASKDELETEREQUEST._serialized_options = b'\030\001' - _TASKDELETERESPONSE._options = None - _TASKDELETERESPONSE._serialized_options = b'\030\001' - _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['CreateTask']._serialized_options = b'\210\002\001' - _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['GetTask']._serialized_options = b'\210\002\001' - _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._options = None - _EXTERNALPLUGINSERVICE.methods_by_name['DeleteTask']._serialized_options = b'\210\002\001' - _globals['_STATE']._serialized_start=676 - _globals['_STATE']._serialized_end=774 - _globals['_TASKCREATEREQUEST']._serialized_start=157 - _globals['_TASKCREATEREQUEST']._serialized_end=325 - _globals['_TASKCREATERESPONSE']._serialized_start=327 - _globals['_TASKCREATERESPONSE']._serialized_end=374 - _globals['_TASKGETREQUEST']._serialized_start=376 - _globals['_TASKGETREQUEST']._serialized_end=448 - _globals['_TASKGETRESPONSE']._serialized_start=450 - _globals['_TASKGETRESPONSE']._serialized_end=571 - _globals['_TASKDELETEREQUEST']._serialized_start=573 - _globals['_TASKDELETEREQUEST']._serialized_end=648 - _globals['_TASKDELETERESPONSE']._serialized_start=650 - _globals['_TASKDELETERESPONSE']._serialized_end=674 - _globals['_EXTERNALPLUGINSERVICE']._serialized_start=777 - _globals['_EXTERNALPLUGINSERVICE']._serialized_end=1073 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi deleted file mode 100644 index b5163a8bfe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2.pyi +++ /dev/null @@ -1,66 +0,0 @@ -from flyteidl.core import literals_pb2 as _literals_pb2 -from flyteidl.core import tasks_pb2 as _tasks_pb2 -from flyteidl.core import interface_pb2 as _interface_pb2 -from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): - __slots__ = [] - RETRYABLE_FAILURE: _ClassVar[State] - PERMANENT_FAILURE: _ClassVar[State] - PENDING: _ClassVar[State] - RUNNING: _ClassVar[State] - SUCCEEDED: _ClassVar[State] -RETRYABLE_FAILURE: State -PERMANENT_FAILURE: State -PENDING: State -RUNNING: State -SUCCEEDED: State - -class TaskCreateRequest(_message.Message): - __slots__ = ["inputs", "template", "output_prefix"] - INPUTS_FIELD_NUMBER: _ClassVar[int] - TEMPLATE_FIELD_NUMBER: _ClassVar[int] - OUTPUT_PREFIX_FIELD_NUMBER: _ClassVar[int] - inputs: _literals_pb2.LiteralMap - template: _tasks_pb2.TaskTemplate - output_prefix: str - def __init__(self, inputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ..., template: _Optional[_Union[_tasks_pb2.TaskTemplate, _Mapping]] = ..., output_prefix: _Optional[str] = ...) -> None: ... - -class TaskCreateResponse(_message.Message): - __slots__ = ["job_id"] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - job_id: str - def __init__(self, job_id: _Optional[str] = ...) -> None: ... - -class TaskGetRequest(_message.Message): - __slots__ = ["task_type", "job_id"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - task_type: str - job_id: str - def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... - -class TaskGetResponse(_message.Message): - __slots__ = ["state", "outputs"] - STATE_FIELD_NUMBER: _ClassVar[int] - OUTPUTS_FIELD_NUMBER: _ClassVar[int] - state: State - outputs: _literals_pb2.LiteralMap - def __init__(self, state: _Optional[_Union[State, str]] = ..., outputs: _Optional[_Union[_literals_pb2.LiteralMap, _Mapping]] = ...) -> None: ... - -class TaskDeleteRequest(_message.Message): - __slots__ = ["task_type", "job_id"] - TASK_TYPE_FIELD_NUMBER: _ClassVar[int] - JOB_ID_FIELD_NUMBER: _ClassVar[int] - task_type: str - job_id: str - def __init__(self, task_type: _Optional[str] = ..., job_id: _Optional[str] = ...) -> None: ... - -class TaskDeleteResponse(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py deleted file mode 100644 index 6607d36710..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/external_plugin_service_pb2_grpc.py +++ /dev/null @@ -1,138 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import external_plugin_service_pb2 as flyteidl_dot_service_dot_external__plugin__service__pb2 - - -class ExternalPluginServiceStub(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.CreateTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/CreateTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, - ) - self.GetTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/GetTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, - ) - self.DeleteTask = channel.unary_unary( - '/flyteidl.service.ExternalPluginService/DeleteTask', - request_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, - ) - - -class ExternalPluginServiceServicer(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - def CreateTask(self, request, context): - """Send a task create request to the backend plugin server. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def GetTask(self, request, context): - """Get job status. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def DeleteTask(self, request, context): - """Delete the task resource. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_ExternalPluginServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'CreateTask': grpc.unary_unary_rpc_method_handler( - servicer.CreateTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.SerializeToString, - ), - 'GetTask': grpc.unary_unary_rpc_method_handler( - servicer.GetTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.SerializeToString, - ), - 'DeleteTask': grpc.unary_unary_rpc_method_handler( - servicer.DeleteTask, - request_deserializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.FromString, - response_serializer=flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.ExternalPluginService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class ExternalPluginService(object): - """ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server. - """ - - @staticmethod - def CreateTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/CreateTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskCreateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/GetTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskGetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def DeleteTask(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.ExternalPluginService/DeleteTask', - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteRequest.SerializeToString, - flyteidl_dot_service_dot_external__plugin__service__pb2.TaskDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore deleted file mode 100644 index a655050c26..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.gitignore +++ /dev/null @@ -1,64 +0,0 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ -venv/ -.python-version - -# Translations -*.mo -*.pot - -# Django stuff: -*.log - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -#Ipython Notebook -.ipynb_checkpoints diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore deleted file mode 100644 index c5fa491b4c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# Swagger Codegen Ignore -# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION deleted file mode 100644 index 6cecc1a68f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.swagger-codegen/VERSION +++ /dev/null @@ -1 +0,0 @@ -2.4.6-SNAPSHOT \ No newline at end of file diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml deleted file mode 100644 index 86211e2d4a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -# ref: https://docs.travis-ci.com/user/languages/python -language: python -python: - - "2.7" - - "3.2" - - "3.3" - - "3.4" - - "3.5" - #- "3.5-dev" # 3.5 development branch - #- "nightly" # points to the latest development branch e.g. 3.6-dev -# command to install dependencies -install: "pip install -r requirements.txt" -# command to run tests -script: nosetests diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md deleted file mode 100644 index 9136b44368..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/README.md +++ /dev/null @@ -1,423 +0,0 @@ -# flyteadmin -No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - -This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - -- API version: version not set -- Package version: 1.0.0 -- Build package: io.swagger.codegen.languages.PythonClientCodegen - -## Requirements. - -Python 2.7 and 3.4+ - -## Installation & Usage -### pip install - -If the python package is hosted on Github, you can install directly from Github - -```sh -pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` -(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) - -Then import the package: -```python -import flyteadmin -``` - -### Setuptools - -Install via [Setuptools](http://pypi.python.org/pypi/setuptools). - -```sh -python setup.py install --user -``` -(or `sudo python setup.py install` to install the package for all users) - -Then import the package: -```python -import flyteadmin -``` - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```python -from __future__ import print_function -import time -import flyteadmin -from flyteadmin.rest import ApiException -from pprint import pprint - -# create an instance of the API class -api_instance = flyteadmin.AdminServiceApi(flyteadmin.ApiClient(configuration)) -body = flyteadmin.AdminExecutionCreateRequest() # AdminExecutionCreateRequest | - -try: - # Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - api_response = api_instance.create_execution(body) - pprint(api_response) -except ApiException as e: - print("Exception when calling AdminServiceApi->create_execution: %s\n" % e) - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*AdminServiceApi* | [**create_execution**](docs/AdminServiceApi.md#create_execution) | **POST** /api/v1/executions | Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` -*AdminServiceApi* | [**create_launch_plan**](docs/AdminServiceApi.md#create_launch_plan) | **POST** /api/v1/launch_plans | Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition -*AdminServiceApi* | [**create_node_event**](docs/AdminServiceApi.md#create_node_event) | **POST** /api/v1/events/nodes | Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. -*AdminServiceApi* | [**create_task**](docs/AdminServiceApi.md#create_task) | **POST** /api/v1/tasks | Create and upload a :ref:`ref_flyteidl.admin.Task` definition -*AdminServiceApi* | [**create_task_event**](docs/AdminServiceApi.md#create_task_event) | **POST** /api/v1/events/tasks | Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. -*AdminServiceApi* | [**create_workflow**](docs/AdminServiceApi.md#create_workflow) | **POST** /api/v1/workflows | Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition -*AdminServiceApi* | [**create_workflow_event**](docs/AdminServiceApi.md#create_workflow_event) | **POST** /api/v1/events/workflows | Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. -*AdminServiceApi* | [**delete_project_attributes**](docs/AdminServiceApi.md#delete_project_attributes) | **DELETE** /api/v1/project_attributes/{project} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**delete_project_domain_attributes**](docs/AdminServiceApi.md#delete_project_domain_attributes) | **DELETE** /api/v1/project_domain_attributes/{project}/{domain} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**delete_workflow_attributes**](docs/AdminServiceApi.md#delete_workflow_attributes) | **DELETE** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. -*AdminServiceApi* | [**get_active_launch_plan**](docs/AdminServiceApi.md#get_active_launch_plan) | **GET** /api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name} | Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**get_description_entity**](docs/AdminServiceApi.md#get_description_entity) | **GET** /api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. -*AdminServiceApi* | [**get_execution**](docs/AdminServiceApi.md#get_execution) | **GET** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Fetches a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**get_execution_data**](docs/AdminServiceApi.md#get_execution_data) | **GET** /api/v1/data/executions/{id.project}/{id.domain}/{id.name} | Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**get_execution_metrics**](docs/AdminServiceApi.md#get_execution_metrics) | **GET** /api/v1/metrics/executions/{id.project}/{id.domain}/{id.name} | Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**get_launch_plan**](docs/AdminServiceApi.md#get_launch_plan) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. -*AdminServiceApi* | [**get_named_entity**](docs/AdminServiceApi.md#get_named_entity) | **GET** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. -*AdminServiceApi* | [**get_node_execution**](docs/AdminServiceApi.md#get_node_execution) | **GET** /api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**get_node_execution_data**](docs/AdminServiceApi.md#get_node_execution_data) | **GET** /api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id} | Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**get_project_attributes**](docs/AdminServiceApi.md#get_project_attributes) | **GET** /api/v1/project_attributes/{project} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**get_project_domain_attributes**](docs/AdminServiceApi.md#get_project_domain_attributes) | **GET** /api/v1/project_domain_attributes/{project}/{domain} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**get_task**](docs/AdminServiceApi.md#get_task) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Task` definition. -*AdminServiceApi* | [**get_task_execution**](docs/AdminServiceApi.md#get_task_execution) | **GET** /api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**get_task_execution_data**](docs/AdminServiceApi.md#get_task_execution_data) | **GET** /api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt} | Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**get_version**](docs/AdminServiceApi.md#get_version) | **GET** /api/v1/version | -*AdminServiceApi* | [**get_workflow**](docs/AdminServiceApi.md#get_workflow) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version} | Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. -*AdminServiceApi* | [**get_workflow_attributes**](docs/AdminServiceApi.md#get_workflow_attributes) | **GET** /api/v1/workflow_attributes/{project}/{domain}/{workflow} | Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. -*AdminServiceApi* | [**list_active_launch_plans**](docs/AdminServiceApi.md#list_active_launch_plans) | **GET** /api/v1/active_launch_plans/{project}/{domain} | List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**list_description_entities**](docs/AdminServiceApi.md#list_description_entities) | **GET** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. -*AdminServiceApi* | [**list_description_entities2**](docs/AdminServiceApi.md#list_description_entities2) | **GET** /api/v1/description_entities/{resource_type}/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. -*AdminServiceApi* | [**list_executions**](docs/AdminServiceApi.md#list_executions) | **GET** /api/v1/executions/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**list_launch_plan_ids**](docs/AdminServiceApi.md#list_launch_plan_ids) | **GET** /api/v1/launch_plan_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. -*AdminServiceApi* | [**list_launch_plans**](docs/AdminServiceApi.md#list_launch_plans) | **GET** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. -*AdminServiceApi* | [**list_launch_plans2**](docs/AdminServiceApi.md#list_launch_plans2) | **GET** /api/v1/launch_plans/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. -*AdminServiceApi* | [**list_matchable_attributes**](docs/AdminServiceApi.md#list_matchable_attributes) | **GET** /api/v1/matchable_attributes | Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. -*AdminServiceApi* | [**list_named_entities**](docs/AdminServiceApi.md#list_named_entities) | **GET** /api/v1/named_entities/{resource_type}/{project}/{domain} | Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. -*AdminServiceApi* | [**list_node_executions**](docs/AdminServiceApi.md#list_node_executions) | **GET** /api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. -*AdminServiceApi* | [**list_node_executions_for_task**](docs/AdminServiceApi.md#list_node_executions_for_task) | **GET** /api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt} | Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**list_projects**](docs/AdminServiceApi.md#list_projects) | **GET** /api/v1/projects | Fetches a list of :ref:`ref_flyteidl.admin.Project` -*AdminServiceApi* | [**list_task_executions**](docs/AdminServiceApi.md#list_task_executions) | **GET** /api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id} | Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. -*AdminServiceApi* | [**list_task_ids**](docs/AdminServiceApi.md#list_task_ids) | **GET** /api/v1/task_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. -*AdminServiceApi* | [**list_tasks**](docs/AdminServiceApi.md#list_tasks) | **GET** /api/v1/tasks/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. -*AdminServiceApi* | [**list_tasks2**](docs/AdminServiceApi.md#list_tasks2) | **GET** /api/v1/tasks/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. -*AdminServiceApi* | [**list_workflow_ids**](docs/AdminServiceApi.md#list_workflow_ids) | **GET** /api/v1/workflow_ids/{project}/{domain} | Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. -*AdminServiceApi* | [**list_workflows**](docs/AdminServiceApi.md#list_workflows) | **GET** /api/v1/workflows/{id.project}/{id.domain}/{id.name} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. -*AdminServiceApi* | [**list_workflows2**](docs/AdminServiceApi.md#list_workflows2) | **GET** /api/v1/workflows/{id.project}/{id.domain} | Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. -*AdminServiceApi* | [**recover_execution**](docs/AdminServiceApi.md#recover_execution) | **POST** /api/v1/executions/recover | Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. -*AdminServiceApi* | [**register_project**](docs/AdminServiceApi.md#register_project) | **POST** /api/v1/projects | Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. -*AdminServiceApi* | [**relaunch_execution**](docs/AdminServiceApi.md#relaunch_execution) | **POST** /api/v1/executions/relaunch | Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` -*AdminServiceApi* | [**terminate_execution**](docs/AdminServiceApi.md#terminate_execution) | **DELETE** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**update_execution**](docs/AdminServiceApi.md#update_execution) | **PUT** /api/v1/executions/{id.project}/{id.domain}/{id.name} | Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. -*AdminServiceApi* | [**update_launch_plan**](docs/AdminServiceApi.md#update_launch_plan) | **PUT** /api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version} | Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. -*AdminServiceApi* | [**update_named_entity**](docs/AdminServiceApi.md#update_named_entity) | **PUT** /api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name} | Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. -*AdminServiceApi* | [**update_project**](docs/AdminServiceApi.md#update_project) | **PUT** /api/v1/projects/{id} | Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. -*AdminServiceApi* | [**update_project_attributes**](docs/AdminServiceApi.md#update_project_attributes) | **PUT** /api/v1/project_attributes/{attributes.project} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level -*AdminServiceApi* | [**update_project_domain_attributes**](docs/AdminServiceApi.md#update_project_domain_attributes) | **PUT** /api/v1/project_domain_attributes/{attributes.project}/{attributes.domain} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. -*AdminServiceApi* | [**update_workflow_attributes**](docs/AdminServiceApi.md#update_workflow_attributes) | **PUT** /api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow} | Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - - -## Documentation For Models - - - [AdminAbortMetadata](docs/AdminAbortMetadata.md) - - [AdminAnnotations](docs/AdminAnnotations.md) - - [AdminAuth](docs/AdminAuth.md) - - [AdminAuthRole](docs/AdminAuthRole.md) - - [AdminClusterAssignment](docs/AdminClusterAssignment.md) - - [AdminClusterResourceAttributes](docs/AdminClusterResourceAttributes.md) - - [AdminCronSchedule](docs/AdminCronSchedule.md) - - [AdminDescription](docs/AdminDescription.md) - - [AdminDescriptionEntity](docs/AdminDescriptionEntity.md) - - [AdminDescriptionEntityList](docs/AdminDescriptionEntityList.md) - - [AdminDescriptionFormat](docs/AdminDescriptionFormat.md) - - [AdminDomain](docs/AdminDomain.md) - - [AdminEmailNotification](docs/AdminEmailNotification.md) - - [AdminEnvs](docs/AdminEnvs.md) - - [AdminExecution](docs/AdminExecution.md) - - [AdminExecutionClosure](docs/AdminExecutionClosure.md) - - [AdminExecutionClusterLabel](docs/AdminExecutionClusterLabel.md) - - [AdminExecutionCreateRequest](docs/AdminExecutionCreateRequest.md) - - [AdminExecutionCreateResponse](docs/AdminExecutionCreateResponse.md) - - [AdminExecutionList](docs/AdminExecutionList.md) - - [AdminExecutionMetadata](docs/AdminExecutionMetadata.md) - - [AdminExecutionQueueAttributes](docs/AdminExecutionQueueAttributes.md) - - [AdminExecutionRecoverRequest](docs/AdminExecutionRecoverRequest.md) - - [AdminExecutionRelaunchRequest](docs/AdminExecutionRelaunchRequest.md) - - [AdminExecutionSpec](docs/AdminExecutionSpec.md) - - [AdminExecutionState](docs/AdminExecutionState.md) - - [AdminExecutionStateChangeDetails](docs/AdminExecutionStateChangeDetails.md) - - [AdminExecutionTerminateRequest](docs/AdminExecutionTerminateRequest.md) - - [AdminExecutionTerminateResponse](docs/AdminExecutionTerminateResponse.md) - - [AdminExecutionUpdateRequest](docs/AdminExecutionUpdateRequest.md) - - [AdminExecutionUpdateResponse](docs/AdminExecutionUpdateResponse.md) - - [AdminFixedRate](docs/AdminFixedRate.md) - - [AdminFixedRateUnit](docs/AdminFixedRateUnit.md) - - [AdminFlyteURLs](docs/AdminFlyteURLs.md) - - [AdminGetVersionResponse](docs/AdminGetVersionResponse.md) - - [AdminLabels](docs/AdminLabels.md) - - [AdminLaunchPlan](docs/AdminLaunchPlan.md) - - [AdminLaunchPlanClosure](docs/AdminLaunchPlanClosure.md) - - [AdminLaunchPlanCreateRequest](docs/AdminLaunchPlanCreateRequest.md) - - [AdminLaunchPlanCreateResponse](docs/AdminLaunchPlanCreateResponse.md) - - [AdminLaunchPlanList](docs/AdminLaunchPlanList.md) - - [AdminLaunchPlanMetadata](docs/AdminLaunchPlanMetadata.md) - - [AdminLaunchPlanSpec](docs/AdminLaunchPlanSpec.md) - - [AdminLaunchPlanState](docs/AdminLaunchPlanState.md) - - [AdminLaunchPlanUpdateRequest](docs/AdminLaunchPlanUpdateRequest.md) - - [AdminLaunchPlanUpdateResponse](docs/AdminLaunchPlanUpdateResponse.md) - - [AdminListMatchableAttributesResponse](docs/AdminListMatchableAttributesResponse.md) - - [AdminLiteralMapBlob](docs/AdminLiteralMapBlob.md) - - [AdminMatchableAttributesConfiguration](docs/AdminMatchableAttributesConfiguration.md) - - [AdminMatchableResource](docs/AdminMatchableResource.md) - - [AdminMatchingAttributes](docs/AdminMatchingAttributes.md) - - [AdminNamedEntity](docs/AdminNamedEntity.md) - - [AdminNamedEntityIdentifier](docs/AdminNamedEntityIdentifier.md) - - [AdminNamedEntityIdentifierList](docs/AdminNamedEntityIdentifierList.md) - - [AdminNamedEntityList](docs/AdminNamedEntityList.md) - - [AdminNamedEntityMetadata](docs/AdminNamedEntityMetadata.md) - - [AdminNamedEntityState](docs/AdminNamedEntityState.md) - - [AdminNamedEntityUpdateRequest](docs/AdminNamedEntityUpdateRequest.md) - - [AdminNamedEntityUpdateResponse](docs/AdminNamedEntityUpdateResponse.md) - - [AdminNodeExecutionClosure](docs/AdminNodeExecutionClosure.md) - - [AdminNodeExecutionEventRequest](docs/AdminNodeExecutionEventRequest.md) - - [AdminNodeExecutionEventResponse](docs/AdminNodeExecutionEventResponse.md) - - [AdminNodeExecutionGetDataResponse](docs/AdminNodeExecutionGetDataResponse.md) - - [AdminNodeExecutionList](docs/AdminNodeExecutionList.md) - - [AdminNodeExecutionMetaData](docs/AdminNodeExecutionMetaData.md) - - [AdminNotification](docs/AdminNotification.md) - - [AdminNotificationList](docs/AdminNotificationList.md) - - [AdminPagerDutyNotification](docs/AdminPagerDutyNotification.md) - - [AdminPluginOverride](docs/AdminPluginOverride.md) - - [AdminPluginOverrides](docs/AdminPluginOverrides.md) - - [AdminProject](docs/AdminProject.md) - - [AdminProjectAttributes](docs/AdminProjectAttributes.md) - - [AdminProjectAttributesDeleteRequest](docs/AdminProjectAttributesDeleteRequest.md) - - [AdminProjectAttributesDeleteResponse](docs/AdminProjectAttributesDeleteResponse.md) - - [AdminProjectAttributesGetResponse](docs/AdminProjectAttributesGetResponse.md) - - [AdminProjectAttributesUpdateRequest](docs/AdminProjectAttributesUpdateRequest.md) - - [AdminProjectAttributesUpdateResponse](docs/AdminProjectAttributesUpdateResponse.md) - - [AdminProjectDomainAttributes](docs/AdminProjectDomainAttributes.md) - - [AdminProjectDomainAttributesDeleteRequest](docs/AdminProjectDomainAttributesDeleteRequest.md) - - [AdminProjectDomainAttributesDeleteResponse](docs/AdminProjectDomainAttributesDeleteResponse.md) - - [AdminProjectDomainAttributesGetResponse](docs/AdminProjectDomainAttributesGetResponse.md) - - [AdminProjectDomainAttributesUpdateRequest](docs/AdminProjectDomainAttributesUpdateRequest.md) - - [AdminProjectDomainAttributesUpdateResponse](docs/AdminProjectDomainAttributesUpdateResponse.md) - - [AdminProjectRegisterRequest](docs/AdminProjectRegisterRequest.md) - - [AdminProjectRegisterResponse](docs/AdminProjectRegisterResponse.md) - - [AdminProjectUpdateResponse](docs/AdminProjectUpdateResponse.md) - - [AdminProjects](docs/AdminProjects.md) - - [AdminRawOutputDataConfig](docs/AdminRawOutputDataConfig.md) - - [AdminReason](docs/AdminReason.md) - - [AdminSchedule](docs/AdminSchedule.md) - - [AdminSlackNotification](docs/AdminSlackNotification.md) - - [AdminSort](docs/AdminSort.md) - - [AdminSourceCode](docs/AdminSourceCode.md) - - [AdminSystemMetadata](docs/AdminSystemMetadata.md) - - [AdminTask](docs/AdminTask.md) - - [AdminTaskClosure](docs/AdminTaskClosure.md) - - [AdminTaskExecutionClosure](docs/AdminTaskExecutionClosure.md) - - [AdminTaskExecutionEventRequest](docs/AdminTaskExecutionEventRequest.md) - - [AdminTaskExecutionEventResponse](docs/AdminTaskExecutionEventResponse.md) - - [AdminTaskExecutionGetDataResponse](docs/AdminTaskExecutionGetDataResponse.md) - - [AdminTaskExecutionList](docs/AdminTaskExecutionList.md) - - [AdminTaskList](docs/AdminTaskList.md) - - [AdminTaskResourceAttributes](docs/AdminTaskResourceAttributes.md) - - [AdminTaskResourceSpec](docs/AdminTaskResourceSpec.md) - - [AdminTaskSpec](docs/AdminTaskSpec.md) - - [AdminUrlBlob](docs/AdminUrlBlob.md) - - [AdminVersion](docs/AdminVersion.md) - - [AdminWorkflow](docs/AdminWorkflow.md) - - [AdminWorkflowAttributes](docs/AdminWorkflowAttributes.md) - - [AdminWorkflowAttributesDeleteRequest](docs/AdminWorkflowAttributesDeleteRequest.md) - - [AdminWorkflowAttributesDeleteResponse](docs/AdminWorkflowAttributesDeleteResponse.md) - - [AdminWorkflowAttributesGetResponse](docs/AdminWorkflowAttributesGetResponse.md) - - [AdminWorkflowAttributesUpdateRequest](docs/AdminWorkflowAttributesUpdateRequest.md) - - [AdminWorkflowAttributesUpdateResponse](docs/AdminWorkflowAttributesUpdateResponse.md) - - [AdminWorkflowClosure](docs/AdminWorkflowClosure.md) - - [AdminWorkflowCreateRequest](docs/AdminWorkflowCreateRequest.md) - - [AdminWorkflowCreateResponse](docs/AdminWorkflowCreateResponse.md) - - [AdminWorkflowExecutionConfig](docs/AdminWorkflowExecutionConfig.md) - - [AdminWorkflowExecutionEventRequest](docs/AdminWorkflowExecutionEventRequest.md) - - [AdminWorkflowExecutionEventResponse](docs/AdminWorkflowExecutionEventResponse.md) - - [AdminWorkflowExecutionGetDataResponse](docs/AdminWorkflowExecutionGetDataResponse.md) - - [AdminWorkflowExecutionGetMetricsResponse](docs/AdminWorkflowExecutionGetMetricsResponse.md) - - [AdminWorkflowList](docs/AdminWorkflowList.md) - - [AdminWorkflowSpec](docs/AdminWorkflowSpec.md) - - [BlobTypeBlobDimensionality](docs/BlobTypeBlobDimensionality.md) - - [CatalogReservationStatus](docs/CatalogReservationStatus.md) - - [ComparisonExpressionOperator](docs/ComparisonExpressionOperator.md) - - [ConjunctionExpressionLogicalOperator](docs/ConjunctionExpressionLogicalOperator.md) - - [ConnectionSetIdList](docs/ConnectionSetIdList.md) - - [ContainerArchitecture](docs/ContainerArchitecture.md) - - [CoreAlias](docs/CoreAlias.md) - - [CoreApproveCondition](docs/CoreApproveCondition.md) - - [CoreArrayNode](docs/CoreArrayNode.md) - - [CoreArtifactBindingData](docs/CoreArtifactBindingData.md) - - [CoreArtifactID](docs/CoreArtifactID.md) - - [CoreArtifactKey](docs/CoreArtifactKey.md) - - [CoreArtifactQuery](docs/CoreArtifactQuery.md) - - [CoreArtifactTag](docs/CoreArtifactTag.md) - - [CoreBinary](docs/CoreBinary.md) - - [CoreBinding](docs/CoreBinding.md) - - [CoreBindingData](docs/CoreBindingData.md) - - [CoreBindingDataCollection](docs/CoreBindingDataCollection.md) - - [CoreBindingDataMap](docs/CoreBindingDataMap.md) - - [CoreBlob](docs/CoreBlob.md) - - [CoreBlobMetadata](docs/CoreBlobMetadata.md) - - [CoreBlobType](docs/CoreBlobType.md) - - [CoreBooleanExpression](docs/CoreBooleanExpression.md) - - [CoreBranchNode](docs/CoreBranchNode.md) - - [CoreCatalogArtifactTag](docs/CoreCatalogArtifactTag.md) - - [CoreCatalogCacheStatus](docs/CoreCatalogCacheStatus.md) - - [CoreCatalogMetadata](docs/CoreCatalogMetadata.md) - - [CoreComparisonExpression](docs/CoreComparisonExpression.md) - - [CoreCompiledTask](docs/CoreCompiledTask.md) - - [CoreCompiledWorkflow](docs/CoreCompiledWorkflow.md) - - [CoreCompiledWorkflowClosure](docs/CoreCompiledWorkflowClosure.md) - - [CoreConjunctionExpression](docs/CoreConjunctionExpression.md) - - [CoreConnectionSet](docs/CoreConnectionSet.md) - - [CoreContainer](docs/CoreContainer.md) - - [CoreContainerPort](docs/CoreContainerPort.md) - - [CoreDataLoadingConfig](docs/CoreDataLoadingConfig.md) - - [CoreEnumType](docs/CoreEnumType.md) - - [CoreError](docs/CoreError.md) - - [CoreExecutionError](docs/CoreExecutionError.md) - - [CoreExtendedResources](docs/CoreExtendedResources.md) - - [CoreGPUAccelerator](docs/CoreGPUAccelerator.md) - - [CoreGateNode](docs/CoreGateNode.md) - - [CoreIOStrategy](docs/CoreIOStrategy.md) - - [CoreIdentifier](docs/CoreIdentifier.md) - - [CoreIdentity](docs/CoreIdentity.md) - - [CoreIfBlock](docs/CoreIfBlock.md) - - [CoreIfElseBlock](docs/CoreIfElseBlock.md) - - [CoreInputBindingData](docs/CoreInputBindingData.md) - - [CoreK8sObjectMetadata](docs/CoreK8sObjectMetadata.md) - - [CoreK8sPod](docs/CoreK8sPod.md) - - [CoreKeyValuePair](docs/CoreKeyValuePair.md) - - [CoreLabelValue](docs/CoreLabelValue.md) - - [CoreLiteral](docs/CoreLiteral.md) - - [CoreLiteralCollection](docs/CoreLiteralCollection.md) - - [CoreLiteralMap](docs/CoreLiteralMap.md) - - [CoreLiteralType](docs/CoreLiteralType.md) - - [CoreNode](docs/CoreNode.md) - - [CoreNodeExecutionIdentifier](docs/CoreNodeExecutionIdentifier.md) - - [CoreNodeExecutionPhase](docs/CoreNodeExecutionPhase.md) - - [CoreNodeMetadata](docs/CoreNodeMetadata.md) - - [CoreOAuth2Client](docs/CoreOAuth2Client.md) - - [CoreOAuth2TokenRequest](docs/CoreOAuth2TokenRequest.md) - - [CoreOAuth2TokenRequestType](docs/CoreOAuth2TokenRequestType.md) - - [CoreOperand](docs/CoreOperand.md) - - [CoreOutputReference](docs/CoreOutputReference.md) - - [CoreParameter](docs/CoreParameter.md) - - [CoreParameterMap](docs/CoreParameterMap.md) - - [CorePartitions](docs/CorePartitions.md) - - [CorePrimitive](docs/CorePrimitive.md) - - [CorePromiseAttribute](docs/CorePromiseAttribute.md) - - [CoreQualityOfService](docs/CoreQualityOfService.md) - - [CoreQualityOfServiceSpec](docs/CoreQualityOfServiceSpec.md) - - [CoreResourceType](docs/CoreResourceType.md) - - [CoreResources](docs/CoreResources.md) - - [CoreRetryStrategy](docs/CoreRetryStrategy.md) - - [CoreRuntimeMetadata](docs/CoreRuntimeMetadata.md) - - [CoreScalar](docs/CoreScalar.md) - - [CoreSchema](docs/CoreSchema.md) - - [CoreSchemaType](docs/CoreSchemaType.md) - - [CoreSecret](docs/CoreSecret.md) - - [CoreSecurityContext](docs/CoreSecurityContext.md) - - [CoreSignalCondition](docs/CoreSignalCondition.md) - - [CoreSimpleType](docs/CoreSimpleType.md) - - [CoreSleepCondition](docs/CoreSleepCondition.md) - - [CoreSpan](docs/CoreSpan.md) - - [CoreSql](docs/CoreSql.md) - - [CoreStructuredDataset](docs/CoreStructuredDataset.md) - - [CoreStructuredDatasetMetadata](docs/CoreStructuredDatasetMetadata.md) - - [CoreStructuredDatasetType](docs/CoreStructuredDatasetType.md) - - [CoreTaskExecutionIdentifier](docs/CoreTaskExecutionIdentifier.md) - - [CoreTaskExecutionPhase](docs/CoreTaskExecutionPhase.md) - - [CoreTaskLog](docs/CoreTaskLog.md) - - [CoreTaskMetadata](docs/CoreTaskMetadata.md) - - [CoreTaskNode](docs/CoreTaskNode.md) - - [CoreTaskNodeOverrides](docs/CoreTaskNodeOverrides.md) - - [CoreTaskTemplate](docs/CoreTaskTemplate.md) - - [CoreTypeAnnotation](docs/CoreTypeAnnotation.md) - - [CoreTypeStructure](docs/CoreTypeStructure.md) - - [CoreTypedInterface](docs/CoreTypedInterface.md) - - [CoreUnion](docs/CoreUnion.md) - - [CoreUnionInfo](docs/CoreUnionInfo.md) - - [CoreUnionType](docs/CoreUnionType.md) - - [CoreVariable](docs/CoreVariable.md) - - [CoreVariableMap](docs/CoreVariableMap.md) - - [CoreVoid](docs/CoreVoid.md) - - [CoreWorkflowExecutionIdentifier](docs/CoreWorkflowExecutionIdentifier.md) - - [CoreWorkflowExecutionPhase](docs/CoreWorkflowExecutionPhase.md) - - [CoreWorkflowMetadata](docs/CoreWorkflowMetadata.md) - - [CoreWorkflowMetadataDefaults](docs/CoreWorkflowMetadataDefaults.md) - - [CoreWorkflowNode](docs/CoreWorkflowNode.md) - - [CoreWorkflowTemplate](docs/CoreWorkflowTemplate.md) - - [DataLoadingConfigLiteralMapFormat](docs/DataLoadingConfigLiteralMapFormat.md) - - [EventEventReason](docs/EventEventReason.md) - - [EventExternalResourceInfo](docs/EventExternalResourceInfo.md) - - [EventNodeExecutionEvent](docs/EventNodeExecutionEvent.md) - - [EventParentNodeExecutionMetadata](docs/EventParentNodeExecutionMetadata.md) - - [EventParentTaskExecutionMetadata](docs/EventParentTaskExecutionMetadata.md) - - [EventResourcePoolInfo](docs/EventResourcePoolInfo.md) - - [EventTaskExecutionEvent](docs/EventTaskExecutionEvent.md) - - [EventWorkflowExecutionEvent](docs/EventWorkflowExecutionEvent.md) - - [ExecutionErrorErrorKind](docs/ExecutionErrorErrorKind.md) - - [ExecutionMetadataExecutionMode](docs/ExecutionMetadataExecutionMode.md) - - [FlyteidladminDynamicWorkflowNodeMetadata](docs/FlyteidladminDynamicWorkflowNodeMetadata.md) - - [FlyteidladminNodeExecution](docs/FlyteidladminNodeExecution.md) - - [FlyteidladminTaskCreateRequest](docs/FlyteidladminTaskCreateRequest.md) - - [FlyteidladminTaskCreateResponse](docs/FlyteidladminTaskCreateResponse.md) - - [FlyteidladminTaskExecution](docs/FlyteidladminTaskExecution.md) - - [FlyteidladminTaskNodeMetadata](docs/FlyteidladminTaskNodeMetadata.md) - - [FlyteidladminWorkflowNodeMetadata](docs/FlyteidladminWorkflowNodeMetadata.md) - - [FlyteidleventDynamicWorkflowNodeMetadata](docs/FlyteidleventDynamicWorkflowNodeMetadata.md) - - [FlyteidleventTaskExecutionMetadata](docs/FlyteidleventTaskExecutionMetadata.md) - - [FlyteidleventTaskNodeMetadata](docs/FlyteidleventTaskNodeMetadata.md) - - [FlyteidleventWorkflowNodeMetadata](docs/FlyteidleventWorkflowNodeMetadata.md) - - [IOStrategyDownloadMode](docs/IOStrategyDownloadMode.md) - - [IOStrategyUploadMode](docs/IOStrategyUploadMode.md) - - [PluginOverrideMissingPluginBehavior](docs/PluginOverrideMissingPluginBehavior.md) - - [ProjectProjectState](docs/ProjectProjectState.md) - - [ProtobufAny](docs/ProtobufAny.md) - - [ProtobufListValue](docs/ProtobufListValue.md) - - [ProtobufNullValue](docs/ProtobufNullValue.md) - - [ProtobufStruct](docs/ProtobufStruct.md) - - [ProtobufValue](docs/ProtobufValue.md) - - [QualityOfServiceTier](docs/QualityOfServiceTier.md) - - [ResourcesResourceEntry](docs/ResourcesResourceEntry.md) - - [ResourcesResourceName](docs/ResourcesResourceName.md) - - [RuntimeMetadataRuntimeType](docs/RuntimeMetadataRuntimeType.md) - - [SchemaColumnSchemaColumnType](docs/SchemaColumnSchemaColumnType.md) - - [SchemaTypeSchemaColumn](docs/SchemaTypeSchemaColumn.md) - - [SecretMountType](docs/SecretMountType.md) - - [SortDirection](docs/SortDirection.md) - - [SqlDialect](docs/SqlDialect.md) - - [StructuredDatasetTypeDatasetColumn](docs/StructuredDatasetTypeDatasetColumn.md) - - [TaskExecutionMetadataInstanceClass](docs/TaskExecutionMetadataInstanceClass.md) - - [TaskLogMessageFormat](docs/TaskLogMessageFormat.md) - - [WorkflowMetadataOnFailurePolicy](docs/WorkflowMetadataOnFailurePolicy.md) - - -## Documentation For Authorization - - All endpoints do not require authorization. - - -## Author - - - diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py deleted file mode 100644 index 6cbddc0b5b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/__init__.py +++ /dev/null @@ -1,303 +0,0 @@ -# coding: utf-8 - -# flake8: noqa - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -# import apis into sdk package -from flyteadmin.api.admin_service_api import AdminServiceApi - -# import ApiClient -from flyteadmin.api_client import ApiClient -from flyteadmin.configuration import Configuration -# import models into sdk package -from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata -from flyteadmin.models.admin_annotations import AdminAnnotations -from flyteadmin.models.admin_auth import AdminAuth -from flyteadmin.models.admin_auth_role import AdminAuthRole -from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment -from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes -from flyteadmin.models.admin_cron_schedule import AdminCronSchedule -from flyteadmin.models.admin_description import AdminDescription -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity -from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList -from flyteadmin.models.admin_description_format import AdminDescriptionFormat -from flyteadmin.models.admin_domain import AdminDomain -from flyteadmin.models.admin_email_notification import AdminEmailNotification -from flyteadmin.models.admin_envs import AdminEnvs -from flyteadmin.models.admin_execution import AdminExecution -from flyteadmin.models.admin_execution_closure import AdminExecutionClosure -from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel -from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest -from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse -from flyteadmin.models.admin_execution_list import AdminExecutionList -from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata -from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes -from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest -from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest -from flyteadmin.models.admin_execution_spec import AdminExecutionSpec -from flyteadmin.models.admin_execution_state import AdminExecutionState -from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails -from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest -from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse -from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest -from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse -from flyteadmin.models.admin_fixed_rate import AdminFixedRate -from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit -from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs -from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse -from flyteadmin.models.admin_labels import AdminLabels -from flyteadmin.models.admin_launch_plan import AdminLaunchPlan -from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure -from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest -from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse -from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList -from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata -from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec -from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState -from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest -from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse -from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse -from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob -from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes -from flyteadmin.models.admin_named_entity import AdminNamedEntity -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier -from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList -from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList -from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata -from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState -from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest -from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse -from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure -from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest -from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse -from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse -from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList -from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData -from flyteadmin.models.admin_notification import AdminNotification -from flyteadmin.models.admin_notification_list import AdminNotificationList -from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification -from flyteadmin.models.admin_plugin_override import AdminPluginOverride -from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides -from flyteadmin.models.admin_project import AdminProject -from flyteadmin.models.admin_project_attributes import AdminProjectAttributes -from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest -from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse -from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse -from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest -from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse -from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes -from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest -from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse -from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse -from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest -from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse -from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest -from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse -from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse -from flyteadmin.models.admin_projects import AdminProjects -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig -from flyteadmin.models.admin_reason import AdminReason -from flyteadmin.models.admin_schedule import AdminSchedule -from flyteadmin.models.admin_slack_notification import AdminSlackNotification -from flyteadmin.models.admin_sort import AdminSort -from flyteadmin.models.admin_source_code import AdminSourceCode -from flyteadmin.models.admin_system_metadata import AdminSystemMetadata -from flyteadmin.models.admin_task import AdminTask -from flyteadmin.models.admin_task_closure import AdminTaskClosure -from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure -from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest -from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse -from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse -from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList -from flyteadmin.models.admin_task_list import AdminTaskList -from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes -from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec -from flyteadmin.models.admin_task_spec import AdminTaskSpec -from flyteadmin.models.admin_url_blob import AdminUrlBlob -from flyteadmin.models.admin_version import AdminVersion -from flyteadmin.models.admin_workflow import AdminWorkflow -from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes -from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest -from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse -from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse -from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest -from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse -from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure -from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest -from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse -from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig -from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest -from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse -from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse -from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse -from flyteadmin.models.admin_workflow_list import AdminWorkflowList -from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec -from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality -from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus -from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator -from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator -from flyteadmin.models.connection_set_id_list import ConnectionSetIdList -from flyteadmin.models.container_architecture import ContainerArchitecture -from flyteadmin.models.core_alias import CoreAlias -from flyteadmin.models.core_approve_condition import CoreApproveCondition -from flyteadmin.models.core_array_node import CoreArrayNode -from flyteadmin.models.core_artifact_binding_data import CoreArtifactBindingData -from flyteadmin.models.core_artifact_id import CoreArtifactID -from flyteadmin.models.core_artifact_key import CoreArtifactKey -from flyteadmin.models.core_artifact_query import CoreArtifactQuery -from flyteadmin.models.core_artifact_tag import CoreArtifactTag -from flyteadmin.models.core_binary import CoreBinary -from flyteadmin.models.core_binding import CoreBinding -from flyteadmin.models.core_binding_data import CoreBindingData -from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection -from flyteadmin.models.core_binding_data_map import CoreBindingDataMap -from flyteadmin.models.core_blob import CoreBlob -from flyteadmin.models.core_blob_metadata import CoreBlobMetadata -from flyteadmin.models.core_blob_type import CoreBlobType -from flyteadmin.models.core_boolean_expression import CoreBooleanExpression -from flyteadmin.models.core_branch_node import CoreBranchNode -from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus -from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata -from flyteadmin.models.core_comparison_expression import CoreComparisonExpression -from flyteadmin.models.core_compiled_task import CoreCompiledTask -from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure -from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression -from flyteadmin.models.core_connection_set import CoreConnectionSet -from flyteadmin.models.core_container import CoreContainer -from flyteadmin.models.core_container_port import CoreContainerPort -from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig -from flyteadmin.models.core_enum_type import CoreEnumType -from flyteadmin.models.core_error import CoreError -from flyteadmin.models.core_execution_error import CoreExecutionError -from flyteadmin.models.core_extended_resources import CoreExtendedResources -from flyteadmin.models.core_gpu_accelerator import CoreGPUAccelerator -from flyteadmin.models.core_gate_node import CoreGateNode -from flyteadmin.models.core_io_strategy import CoreIOStrategy -from flyteadmin.models.core_identifier import CoreIdentifier -from flyteadmin.models.core_identity import CoreIdentity -from flyteadmin.models.core_if_block import CoreIfBlock -from flyteadmin.models.core_if_else_block import CoreIfElseBlock -from flyteadmin.models.core_input_binding_data import CoreInputBindingData -from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata -from flyteadmin.models.core_k8s_pod import CoreK8sPod -from flyteadmin.models.core_key_value_pair import CoreKeyValuePair -from flyteadmin.models.core_label_value import CoreLabelValue -from flyteadmin.models.core_literal import CoreLiteral -from flyteadmin.models.core_literal_collection import CoreLiteralCollection -from flyteadmin.models.core_literal_map import CoreLiteralMap -from flyteadmin.models.core_literal_type import CoreLiteralType -from flyteadmin.models.core_node import CoreNode -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier -from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase -from flyteadmin.models.core_node_metadata import CoreNodeMetadata -from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client -from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest -from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType -from flyteadmin.models.core_operand import CoreOperand -from flyteadmin.models.core_output_reference import CoreOutputReference -from flyteadmin.models.core_parameter import CoreParameter -from flyteadmin.models.core_parameter_map import CoreParameterMap -from flyteadmin.models.core_partitions import CorePartitions -from flyteadmin.models.core_primitive import CorePrimitive -from flyteadmin.models.core_promise_attribute import CorePromiseAttribute -from flyteadmin.models.core_quality_of_service import CoreQualityOfService -from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec -from flyteadmin.models.core_resource_type import CoreResourceType -from flyteadmin.models.core_resources import CoreResources -from flyteadmin.models.core_retry_strategy import CoreRetryStrategy -from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata -from flyteadmin.models.core_scalar import CoreScalar -from flyteadmin.models.core_schema import CoreSchema -from flyteadmin.models.core_schema_type import CoreSchemaType -from flyteadmin.models.core_secret import CoreSecret -from flyteadmin.models.core_security_context import CoreSecurityContext -from flyteadmin.models.core_signal_condition import CoreSignalCondition -from flyteadmin.models.core_simple_type import CoreSimpleType -from flyteadmin.models.core_sleep_condition import CoreSleepCondition -from flyteadmin.models.core_span import CoreSpan -from flyteadmin.models.core_sql import CoreSql -from flyteadmin.models.core_structured_dataset import CoreStructuredDataset -from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata -from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase -from flyteadmin.models.core_task_log import CoreTaskLog -from flyteadmin.models.core_task_metadata import CoreTaskMetadata -from flyteadmin.models.core_task_node import CoreTaskNode -from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides -from flyteadmin.models.core_task_template import CoreTaskTemplate -from flyteadmin.models.core_type_annotation import CoreTypeAnnotation -from flyteadmin.models.core_type_structure import CoreTypeStructure -from flyteadmin.models.core_typed_interface import CoreTypedInterface -from flyteadmin.models.core_union import CoreUnion -from flyteadmin.models.core_union_info import CoreUnionInfo -from flyteadmin.models.core_union_type import CoreUnionType -from flyteadmin.models.core_variable import CoreVariable -from flyteadmin.models.core_variable_map import CoreVariableMap -from flyteadmin.models.core_void import CoreVoid -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase -from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata -from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults -from flyteadmin.models.core_workflow_node import CoreWorkflowNode -from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate -from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat -from flyteadmin.models.event_event_reason import EventEventReason -from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo -from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent -from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata -from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata -from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo -from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent -from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent -from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind -from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode -from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata -from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution -from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest -from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse -from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution -from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata -from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata -from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata -from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata -from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata -from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata -from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode -from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode -from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior -from flyteadmin.models.project_project_state import ProjectProjectState -from flyteadmin.models.protobuf_any import ProtobufAny -from flyteadmin.models.protobuf_list_value import ProtobufListValue -from flyteadmin.models.protobuf_null_value import ProtobufNullValue -from flyteadmin.models.protobuf_struct import ProtobufStruct -from flyteadmin.models.protobuf_value import ProtobufValue -from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier -from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry -from flyteadmin.models.resources_resource_name import ResourcesResourceName -from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType -from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType -from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn -from flyteadmin.models.secret_mount_type import SecretMountType -from flyteadmin.models.sort_direction import SortDirection -from flyteadmin.models.sql_dialect import SqlDialect -from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn -from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass -from flyteadmin.models.task_log_message_format import TaskLogMessageFormat -from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py deleted file mode 100644 index 3da695695e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/__init__.py +++ /dev/null @@ -1,6 +0,0 @@ -from __future__ import absolute_import - -# flake8: noqa - -# import apis into api package -from flyteadmin.api.admin_service_api import AdminServiceApi diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py deleted file mode 100644 index 01e9838ee5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api/admin_service_api.py +++ /dev/null @@ -1,6843 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import re # noqa: F401 - -# python 2 and python 3 compatibility library -import six - -from flyteadmin.api_client import ApiClient - - -class AdminServiceApi(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - Ref: https://github.com/swagger-api/swagger-codegen - """ - - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client - - def create_execution(self, body, **kwargs): # noqa: E501 - """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_execution(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionCreateRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_execution_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_execution_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_execution_with_http_info(self, body, **kwargs): # noqa: E501 - """Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_execution_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionCreateRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_launch_plan(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_launch_plan(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminLaunchPlanCreateRequest body: (required) - :return: AdminLaunchPlanCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_launch_plan_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_launch_plan_with_http_info(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_launch_plan_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminLaunchPlanCreateRequest body: (required) - :return: AdminLaunchPlanCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_launch_plan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_launch_plan`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plans', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlanCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_node_event(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_node_event(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminNodeExecutionEventRequest body: (required) - :return: AdminNodeExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_node_event_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_node_event_with_http_info(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_node_event_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminNodeExecutionEventRequest body: (required) - :return: AdminNodeExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_node_event" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_node_event`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/events/nodes', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNodeExecutionEventResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_task(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_task(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param FlyteidladminTaskCreateRequest body: (required) - :return: FlyteidladminTaskCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_task_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_task_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_task_with_http_info(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_task_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param FlyteidladminTaskCreateRequest body: (required) - :return: FlyteidladminTaskCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_task" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_task`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/tasks', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='FlyteidladminTaskCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_task_event(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_task_event(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminTaskExecutionEventRequest body: (required) - :return: AdminTaskExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_task_event_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_task_event_with_http_info(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_task_event_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminTaskExecutionEventRequest body: (required) - :return: AdminTaskExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_task_event" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_task_event`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/events/tasks', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTaskExecutionEventResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_workflow(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminWorkflowCreateRequest body: (required) - :return: AdminWorkflowCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_workflow_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_workflow_with_http_info(self, body, **kwargs): # noqa: E501 - """Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminWorkflowCreateRequest body: (required) - :return: AdminWorkflowCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_workflow" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_workflow`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflows', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def create_workflow_event(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_event(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminWorkflowExecutionEventRequest body: (required) - :return: AdminWorkflowExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.create_workflow_event_with_http_info(body, **kwargs) # noqa: E501 - return data - - def create_workflow_event_with_http_info(self, body, **kwargs): # noqa: E501 - """Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.create_workflow_event_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminWorkflowExecutionEventRequest body: (required) - :return: AdminWorkflowExecutionEventResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method create_workflow_event" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `create_workflow_event`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/events/workflows', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowExecutionEventResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_project_attributes(self, project, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_project_attributes(project, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param AdminProjectAttributesDeleteRequest body: (required) - :return: AdminProjectAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_project_attributes_with_http_info(project, body, **kwargs) # noqa: E501 - else: - (data) = self.delete_project_attributes_with_http_info(project, body, **kwargs) # noqa: E501 - return data - - def delete_project_attributes_with_http_info(self, project, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_project_attributes_with_http_info(project, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param AdminProjectAttributesDeleteRequest body: (required) - :return: AdminProjectAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_project_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `delete_project_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_project_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_attributes/{project}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectAttributesDeleteResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_project_domain_attributes(self, project, domain, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_project_domain_attributes(project, domain, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param AdminProjectDomainAttributesDeleteRequest body: (required) - :return: AdminProjectDomainAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_project_domain_attributes_with_http_info(project, domain, body, **kwargs) # noqa: E501 - else: - (data) = self.delete_project_domain_attributes_with_http_info(project, domain, body, **kwargs) # noqa: E501 - return data - - def delete_project_domain_attributes_with_http_info(self, project, domain, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_project_domain_attributes_with_http_info(project, domain, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param AdminProjectDomainAttributesDeleteRequest body: (required) - :return: AdminProjectDomainAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_project_domain_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `delete_project_domain_attributes`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `delete_project_domain_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_project_domain_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_domain_attributes/{project}/{domain}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectDomainAttributesDeleteResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def delete_workflow_attributes(self, project, domain, workflow, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_workflow_attributes(project, domain, workflow, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str workflow: Workflow name which this set of attributes references. +required (required) - :param AdminWorkflowAttributesDeleteRequest body: (required) - :return: AdminWorkflowAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.delete_workflow_attributes_with_http_info(project, domain, workflow, body, **kwargs) # noqa: E501 - else: - (data) = self.delete_workflow_attributes_with_http_info(project, domain, workflow, body, **kwargs) # noqa: E501 - return data - - def delete_workflow_attributes_with_http_info(self, project, domain, workflow, body, **kwargs): # noqa: E501 - """Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.delete_workflow_attributes_with_http_info(project, domain, workflow, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str workflow: Workflow name which this set of attributes references. +required (required) - :param AdminWorkflowAttributesDeleteRequest body: (required) - :return: AdminWorkflowAttributesDeleteResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'workflow', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method delete_workflow_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `delete_workflow_attributes`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `delete_workflow_attributes`") # noqa: E501 - # verify the required parameter 'workflow' is set - if ('workflow' not in params or - params['workflow'] is None): - raise ValueError("Missing the required parameter `workflow` when calling `delete_workflow_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_workflow_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - if 'workflow' in params: - path_params['workflow'] = params['workflow'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflow_attributes/{project}/{domain}/{workflow}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowAttributesDeleteResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_active_launch_plan(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_active_launch_plan(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :return: AdminLaunchPlan - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def get_active_launch_plan_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_active_launch_plan_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :return: AdminLaunchPlan - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_active_launch_plan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_active_launch_plan`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_active_launch_plan`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_active_launch_plan`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlan', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_description_entity(self, id_resource_type, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_description_entity(id_resource_type, id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :return: AdminDescriptionEntity - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - else: - (data) = self.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - return data - - def get_description_entity_with_http_info(self, id_resource_type, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_description_entity_with_http_info(id_resource_type, id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :return: AdminDescriptionEntity - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_resource_type', 'id_project', 'id_domain', 'id_name', 'id_version'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_description_entity" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_resource_type' is set - if ('id_resource_type' not in params or - params['id_resource_type'] is None): - raise ValueError("Missing the required parameter `id_resource_type` when calling `get_description_entity`") # noqa: E501 - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_description_entity`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_description_entity`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_description_entity`") # noqa: E501 - # verify the required parameter 'id_version' is set - if ('id_version' not in params or - params['id_version'] is None): - raise ValueError("Missing the required parameter `id_version` when calling `get_description_entity`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_resource_type' in params: - path_params['id.resource_type'] = params['id_resource_type'] # noqa: E501 - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - if 'id_version' in params: - path_params['id.version'] = params['id_version'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminDescriptionEntity', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_execution(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :return: AdminExecution - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.get_execution_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def get_execution_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :return: AdminExecution - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_execution`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_execution`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecution', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_execution_data(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution_data(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :return: AdminWorkflowExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.get_execution_data_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def get_execution_data_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution_data_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :return: AdminWorkflowExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_execution_data" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_execution_data`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_execution_data`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_execution_data`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/data/executions/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowExecutionGetDataResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_execution_metrics(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution_metrics(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param int depth: depth defines the number of Flyte entity levels to traverse when breaking down execution details. - :return: AdminWorkflowExecutionGetMetricsResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_execution_metrics_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.get_execution_metrics_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def get_execution_metrics_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_execution_metrics_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param int depth: depth defines the number of Flyte entity levels to traverse when breaking down execution details. - :return: AdminWorkflowExecutionGetMetricsResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'depth'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_execution_metrics" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_execution_metrics`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_execution_metrics`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_execution_metrics`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - if 'depth' in params: - query_params.append(('depth', params['depth'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowExecutionGetMetricsResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_launch_plan(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_launch_plan(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminLaunchPlan - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - else: - (data) = self.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - return data - - def get_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminLaunchPlan - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_launch_plan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_launch_plan`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_launch_plan`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_launch_plan`") # noqa: E501 - # verify the required parameter 'id_version' is set - if ('id_version' not in params or - params['id_version'] is None): - raise ValueError("Missing the required parameter `id_version` when calling `get_launch_plan`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - if 'id_version' in params: - path_params['id.version'] = params['id_version'] # noqa: E501 - - query_params = [] - if 'id_resource_type' in params: - query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlan', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_named_entity(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_named_entity(resource_type, id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :return: AdminNamedEntity - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def get_named_entity_with_http_info(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. +required (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :return: AdminNamedEntity - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type', 'id_project', 'id_domain', 'id_name'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_named_entity" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'resource_type' is set - if ('resource_type' not in params or - params['resource_type'] is None): - raise ValueError("Missing the required parameter `resource_type` when calling `get_named_entity`") # noqa: E501 - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_named_entity`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_named_entity`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_named_entity`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'resource_type' in params: - path_params['resource_type'] = params['resource_type'] # noqa: E501 - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntity', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_node_execution(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_node_execution(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_id: (required) - :return: FlyteidladminNodeExecution - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 - else: - (data) = self.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 - return data - - def get_node_execution_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_node_execution_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_id: (required) - :return: FlyteidladminNodeExecution - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_node_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_execution_id_project' is set - if ('id_execution_id_project' not in params or - params['id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution`") # noqa: E501 - # verify the required parameter 'id_execution_id_domain' is set - if ('id_execution_id_domain' not in params or - params['id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution`") # noqa: E501 - # verify the required parameter 'id_execution_id_name' is set - if ('id_execution_id_name' not in params or - params['id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution`") # noqa: E501 - # verify the required parameter 'id_node_id' is set - if ('id_node_id' not in params or - params['id_node_id'] is None): - raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_execution_id_project' in params: - path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 - if 'id_execution_id_domain' in params: - path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 - if 'id_execution_id_name' in params: - path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 - if 'id_node_id' in params: - path_params['id.node_id'] = params['id_node_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='FlyteidladminNodeExecution', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_node_execution_data(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_node_execution_data(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_id: (required) - :return: AdminNodeExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 - else: - (data) = self.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs) # noqa: E501 - return data - - def get_node_execution_data_with_http_info(self, id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_node_execution_data_with_http_info(id_execution_id_project, id_execution_id_domain, id_execution_id_name, id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_id: (required) - :return: AdminNodeExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_execution_id_project', 'id_execution_id_domain', 'id_execution_id_name', 'id_node_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_node_execution_data" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_execution_id_project' is set - if ('id_execution_id_project' not in params or - params['id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `id_execution_id_project` when calling `get_node_execution_data`") # noqa: E501 - # verify the required parameter 'id_execution_id_domain' is set - if ('id_execution_id_domain' not in params or - params['id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `id_execution_id_domain` when calling `get_node_execution_data`") # noqa: E501 - # verify the required parameter 'id_execution_id_name' is set - if ('id_execution_id_name' not in params or - params['id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `id_execution_id_name` when calling `get_node_execution_data`") # noqa: E501 - # verify the required parameter 'id_node_id' is set - if ('id_node_id' not in params or - params['id_node_id'] is None): - raise ValueError("Missing the required parameter `id_node_id` when calling `get_node_execution_data`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_execution_id_project' in params: - path_params['id.execution_id.project'] = params['id_execution_id_project'] # noqa: E501 - if 'id_execution_id_domain' in params: - path_params['id.execution_id.domain'] = params['id_execution_id_domain'] # noqa: E501 - if 'id_execution_id_name' in params: - path_params['id.execution_id.name'] = params['id_execution_id_name'] # noqa: E501 - if 'id_node_id' in params: - path_params['id.node_id'] = params['id_node_id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNodeExecutionGetDataResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_project_attributes(self, project, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_project_attributes(project, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminProjectAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_project_attributes_with_http_info(project, **kwargs) # noqa: E501 - else: - (data) = self.get_project_attributes_with_http_info(project, **kwargs) # noqa: E501 - return data - - def get_project_attributes_with_http_info(self, project, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_project_attributes_with_http_info(project, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminProjectAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_project_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `get_project_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - - query_params = [] - if 'resource_type' in params: - query_params.append(('resource_type', params['resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_attributes/{project}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectAttributesGetResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_project_domain_attributes(self, project, domain, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_project_domain_attributes(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminProjectDomainAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_project_domain_attributes_with_http_info(project, domain, **kwargs) # noqa: E501 - else: - (data) = self.get_project_domain_attributes_with_http_info(project, domain, **kwargs) # noqa: E501 - return data - - def get_project_domain_attributes_with_http_info(self, project, domain, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_project_domain_attributes_with_http_info(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminProjectDomainAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_project_domain_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `get_project_domain_attributes`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `get_project_domain_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'resource_type' in params: - query_params.append(('resource_type', params['resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_domain_attributes/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectDomainAttributesGetResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_task(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminTask - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - else: - (data) = self.get_task_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - return data - - def get_task_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminTask - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_task" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_task`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_task`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_task`") # noqa: E501 - # verify the required parameter 'id_version' is set - if ('id_version' not in params or - params['id_version'] is None): - raise ValueError("Missing the required parameter `id_version` when calling `get_task`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - if 'id_version' in params: - path_params['id.version'] = params['id_version'] # noqa: E501 - - query_params = [] - if 'id_resource_type' in params: - query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTask', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_task_execution(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task_execution(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_execution_id_node_id: (required) - :param str id_task_id_project: Name of the project the resource belongs to. (required) - :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_task_id_name: User provided value for the resource. (required) - :param str id_task_id_version: Specific version of the resource. (required) - :param int id_retry_attempt: (required) - :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: FlyteidladminTaskExecution - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 - else: - (data) = self.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 - return data - - def get_task_execution_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 - """Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task_execution_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_execution_id_node_id: (required) - :param str id_task_id_project: Name of the project the resource belongs to. (required) - :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_task_id_name: User provided value for the resource. (required) - :param str id_task_id_version: Specific version of the resource. (required) - :param int id_retry_attempt: (required) - :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: FlyteidladminTaskExecution - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_task_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_node_execution_id_execution_id_project' is set - if ('id_node_execution_id_execution_id_project' not in params or - params['id_node_execution_id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_execution_id_domain' is set - if ('id_node_execution_id_execution_id_domain' not in params or - params['id_node_execution_id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_execution_id_name' is set - if ('id_node_execution_id_execution_id_name' not in params or - params['id_node_execution_id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_node_id' is set - if ('id_node_execution_id_node_id' not in params or - params['id_node_execution_id_node_id'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_task_id_project' is set - if ('id_task_id_project' not in params or - params['id_task_id_project'] is None): - raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_task_id_domain' is set - if ('id_task_id_domain' not in params or - params['id_task_id_domain'] is None): - raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_task_id_name' is set - if ('id_task_id_name' not in params or - params['id_task_id_name'] is None): - raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_task_id_version' is set - if ('id_task_id_version' not in params or - params['id_task_id_version'] is None): - raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution`") # noqa: E501 - # verify the required parameter 'id_retry_attempt' is set - if ('id_retry_attempt' not in params or - params['id_retry_attempt'] is None): - raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_node_execution_id_execution_id_project' in params: - path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 - if 'id_node_execution_id_execution_id_domain' in params: - path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 - if 'id_node_execution_id_execution_id_name' in params: - path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 - if 'id_node_execution_id_node_id' in params: - path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 - if 'id_task_id_project' in params: - path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 - if 'id_task_id_domain' in params: - path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 - if 'id_task_id_name' in params: - path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 - if 'id_task_id_version' in params: - path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 - if 'id_retry_attempt' in params: - path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 - - query_params = [] - if 'id_task_id_resource_type' in params: - query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='FlyteidladminTaskExecution', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_task_execution_data(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task_execution_data(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_execution_id_node_id: (required) - :param str id_task_id_project: Name of the project the resource belongs to. (required) - :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_task_id_name: User provided value for the resource. (required) - :param str id_task_id_version: Specific version of the resource. (required) - :param int id_retry_attempt: (required) - :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminTaskExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 - else: - (data) = self.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs) # noqa: E501 - return data - - def get_task_execution_data_with_http_info(self, id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, **kwargs): # noqa: E501 - """Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_task_execution_data_with_http_info(id_node_execution_id_execution_id_project, id_node_execution_id_execution_id_domain, id_node_execution_id_execution_id_name, id_node_execution_id_node_id, id_task_id_project, id_task_id_domain, id_task_id_name, id_task_id_version, id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str id_node_execution_id_node_id: (required) - :param str id_task_id_project: Name of the project the resource belongs to. (required) - :param str id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_task_id_name: User provided value for the resource. (required) - :param str id_task_id_version: Specific version of the resource. (required) - :param int id_retry_attempt: (required) - :param str id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminTaskExecutionGetDataResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_node_execution_id_execution_id_project', 'id_node_execution_id_execution_id_domain', 'id_node_execution_id_execution_id_name', 'id_node_execution_id_node_id', 'id_task_id_project', 'id_task_id_domain', 'id_task_id_name', 'id_task_id_version', 'id_retry_attempt', 'id_task_id_resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_task_execution_data" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_node_execution_id_execution_id_project' is set - if ('id_node_execution_id_execution_id_project' not in params or - params['id_node_execution_id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_project` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_execution_id_domain' is set - if ('id_node_execution_id_execution_id_domain' not in params or - params['id_node_execution_id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_domain` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_execution_id_name' is set - if ('id_node_execution_id_execution_id_name' not in params or - params['id_node_execution_id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_execution_id_name` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_node_execution_id_node_id' is set - if ('id_node_execution_id_node_id' not in params or - params['id_node_execution_id_node_id'] is None): - raise ValueError("Missing the required parameter `id_node_execution_id_node_id` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_task_id_project' is set - if ('id_task_id_project' not in params or - params['id_task_id_project'] is None): - raise ValueError("Missing the required parameter `id_task_id_project` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_task_id_domain' is set - if ('id_task_id_domain' not in params or - params['id_task_id_domain'] is None): - raise ValueError("Missing the required parameter `id_task_id_domain` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_task_id_name' is set - if ('id_task_id_name' not in params or - params['id_task_id_name'] is None): - raise ValueError("Missing the required parameter `id_task_id_name` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_task_id_version' is set - if ('id_task_id_version' not in params or - params['id_task_id_version'] is None): - raise ValueError("Missing the required parameter `id_task_id_version` when calling `get_task_execution_data`") # noqa: E501 - # verify the required parameter 'id_retry_attempt' is set - if ('id_retry_attempt' not in params or - params['id_retry_attempt'] is None): - raise ValueError("Missing the required parameter `id_retry_attempt` when calling `get_task_execution_data`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_node_execution_id_execution_id_project' in params: - path_params['id.node_execution_id.execution_id.project'] = params['id_node_execution_id_execution_id_project'] # noqa: E501 - if 'id_node_execution_id_execution_id_domain' in params: - path_params['id.node_execution_id.execution_id.domain'] = params['id_node_execution_id_execution_id_domain'] # noqa: E501 - if 'id_node_execution_id_execution_id_name' in params: - path_params['id.node_execution_id.execution_id.name'] = params['id_node_execution_id_execution_id_name'] # noqa: E501 - if 'id_node_execution_id_node_id' in params: - path_params['id.node_execution_id.node_id'] = params['id_node_execution_id_node_id'] # noqa: E501 - if 'id_task_id_project' in params: - path_params['id.task_id.project'] = params['id_task_id_project'] # noqa: E501 - if 'id_task_id_domain' in params: - path_params['id.task_id.domain'] = params['id_task_id_domain'] # noqa: E501 - if 'id_task_id_name' in params: - path_params['id.task_id.name'] = params['id_task_id_name'] # noqa: E501 - if 'id_task_id_version' in params: - path_params['id.task_id.version'] = params['id_task_id_version'] # noqa: E501 - if 'id_retry_attempt' in params: - path_params['id.retry_attempt'] = params['id_retry_attempt'] # noqa: E501 - - query_params = [] - if 'id_task_id_resource_type' in params: - query_params.append(('id.task_id.resource_type', params['id_task_id_resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTaskExecutionGetDataResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_version(self, **kwargs): # noqa: E501 - """get_version # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_version(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: AdminGetVersionResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_version_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.get_version_with_http_info(**kwargs) # noqa: E501 - return data - - def get_version_with_http_info(self, **kwargs): # noqa: E501 - """get_version # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_version_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :return: AdminGetVersionResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = [] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_version" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/version', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminGetVersionResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_workflow(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminWorkflow - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - else: - (data) = self.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, **kwargs) # noqa: E501 - return data - - def get_workflow_with_http_info(self, id_project, id_domain, id_name, id_version, **kwargs): # noqa: E501 - """Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_with_http_info(id_project, id_domain, id_name, id_version, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param str id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :return: AdminWorkflow - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'id_resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_workflow" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `get_workflow`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `get_workflow`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `get_workflow`") # noqa: E501 - # verify the required parameter 'id_version' is set - if ('id_version' not in params or - params['id_version'] is None): - raise ValueError("Missing the required parameter `id_version` when calling `get_workflow`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - if 'id_version' in params: - path_params['id.version'] = params['id_version'] # noqa: E501 - - query_params = [] - if 'id_resource_type' in params: - query_params.append(('id.resource_type', params['id_resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflows/{id.project}/{id.domain}/{id.name}/{id.version}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflow', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def get_workflow_attributes(self, project, domain, workflow, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_attributes(project, domain, workflow, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str workflow: Workflow name which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminWorkflowAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.get_workflow_attributes_with_http_info(project, domain, workflow, **kwargs) # noqa: E501 - else: - (data) = self.get_workflow_attributes_with_http_info(project, domain, workflow, **kwargs) # noqa: E501 - return data - - def get_workflow_attributes_with_http_info(self, project, domain, workflow, **kwargs): # noqa: E501 - """Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.get_workflow_attributes_with_http_info(project, domain, workflow, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Unique project id which this set of attributes references. +required (required) - :param str domain: Unique domain id which this set of attributes references. +required (required) - :param str workflow: Workflow name which this set of attributes references. +required (required) - :param str resource_type: Which type of matchable attributes to return. +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminWorkflowAttributesGetResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'workflow', 'resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method get_workflow_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `get_workflow_attributes`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `get_workflow_attributes`") # noqa: E501 - # verify the required parameter 'workflow' is set - if ('workflow' not in params or - params['workflow'] is None): - raise ValueError("Missing the required parameter `workflow` when calling `get_workflow_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - if 'workflow' in params: - path_params['workflow'] = params['workflow'] # noqa: E501 - - query_params = [] - if 'resource_type' in params: - query_params.append(('resource_type', params['resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflow_attributes/{project}/{domain}/{workflow}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowAttributesGetResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_active_launch_plans(self, project, domain, **kwargs): # noqa: E501 - """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_active_launch_plans(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required. (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required. (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_active_launch_plans_with_http_info(project, domain, **kwargs) # noqa: E501 - else: - (data) = self.list_active_launch_plans_with_http_info(project, domain, **kwargs) # noqa: E501 - return data - - def list_active_launch_plans_with_http_info(self, project, domain, **kwargs): # noqa: E501 - """List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_active_launch_plans_with_http_info(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required. (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required. (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_active_launch_plans" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `list_active_launch_plans`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `list_active_launch_plans`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/active_launch_plans/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlanList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_description_entities(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_description_entities(resource_type, id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminDescriptionEntityList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def list_description_entities_with_http_info(self, resource_type, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_description_entities_with_http_info(resource_type, id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminDescriptionEntityList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_description_entities" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'resource_type' is set - if ('resource_type' not in params or - params['resource_type'] is None): - raise ValueError("Missing the required parameter `resource_type` when calling `list_description_entities`") # noqa: E501 - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_description_entities`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_description_entities`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `list_description_entities`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'resource_type' in params: - path_params['resource_type'] = params['resource_type'] # noqa: E501 - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminDescriptionEntityList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_description_entities2(self, resource_type, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_description_entities2(resource_type, id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminDescriptionEntityList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_description_entities2_with_http_info(resource_type, id_project, id_domain, **kwargs) # noqa: E501 - else: - (data) = self.list_description_entities2_with_http_info(resource_type, id_project, id_domain, **kwargs) # noqa: E501 - return data - - def list_description_entities2_with_http_info(self, resource_type, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_description_entities2_with_http_info(resource_type, id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Identifies the specific type of resource that this identifier corresponds to. (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminDescriptionEntityList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_description_entities2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'resource_type' is set - if ('resource_type' not in params or - params['resource_type'] is None): - raise ValueError("Missing the required parameter `resource_type` when calling `list_description_entities2`") # noqa: E501 - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_description_entities2`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_description_entities2`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'resource_type' in params: - path_params['resource_type'] = params['resource_type'] # noqa: E501 - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - - query_params = [] - if 'id_name' in params: - query_params.append(('id.name', params['id_name'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminDescriptionEntityList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_executions(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_executions(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminExecutionList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - else: - (data) = self.list_executions_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - return data - - def list_executions_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_executions_with_http_info(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminExecutionList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_executions" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_executions`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_executions`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - - query_params = [] - if 'id_name' in params: - query_params.append(('id.name', params['id_name'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/{id.project}/{id.domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_launch_plan_ids(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plan_ids(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - else: - (data) = self.list_launch_plan_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - return data - - def list_launch_plan_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plan_ids_with_http_info(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_launch_plan_ids" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `list_launch_plan_ids`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `list_launch_plan_ids`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plan_ids/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntityIdentifierList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_launch_plans(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plans(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.list_launch_plans_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def list_launch_plans_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plans_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_launch_plans" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `list_launch_plans`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlanList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_launch_plans2(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plans2(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - else: - (data) = self.list_launch_plans2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - return data - - def list_launch_plans2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_launch_plans2_with_http_info(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminLaunchPlanList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_launch_plans2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_launch_plans2`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_launch_plans2`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - - query_params = [] - if 'id_name' in params: - query_params.append(('id.name', params['id_name'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plans/{id.project}/{id.domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlanList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_matchable_attributes(self, **kwargs): # noqa: E501 - """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_matchable_attributes(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminListMatchableAttributesResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_matchable_attributes_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_matchable_attributes_with_http_info(**kwargs) # noqa: E501 - return data - - def list_matchable_attributes_with_http_info(self, **kwargs): # noqa: E501 - """Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_matchable_attributes_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: +required. - TASK_RESOURCE: Applies to customizable task resource requests and limits. - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources. - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment. - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec. - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type. - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides. - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run. - :return: AdminListMatchableAttributesResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_matchable_attributes" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'resource_type' in params: - query_params.append(('resource_type', params['resource_type'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/matchable_attributes', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminListMatchableAttributesResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_named_entities(self, resource_type, project, domain, **kwargs): # noqa: E501 - """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_named_entities(resource_type, project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required (required) - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. (required) - :param int limit: Indicates the number of resources to be returned. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_named_entities_with_http_info(resource_type, project, domain, **kwargs) # noqa: E501 - else: - (data) = self.list_named_entities_with_http_info(resource_type, project, domain, **kwargs) # noqa: E501 - return data - - def list_named_entities_with_http_info(self, resource_type, project, domain, **kwargs): # noqa: E501 - """Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_named_entities_with_http_info(resource_type, project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. +required (required) - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. (required) - :param int limit: Indicates the number of resources to be returned. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type', 'project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_named_entities" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'resource_type' is set - if ('resource_type' not in params or - params['resource_type'] is None): - raise ValueError("Missing the required parameter `resource_type` when calling `list_named_entities`") # noqa: E501 - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `list_named_entities`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `list_named_entities`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'resource_type' in params: - path_params['resource_type'] = params['resource_type'] # noqa: E501 - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/named_entities/{resource_type}/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntityList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_node_executions(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_node_executions(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) - :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str workflow_execution_id_name: User or system provided value for the resource. (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str unique_parent_id: Unique identifier of the parent node in the execution +optional. - :return: AdminNodeExecutionList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 - else: - (data) = self.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs) # noqa: E501 - return data - - def list_node_executions_with_http_info(self, workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_node_executions_with_http_info(workflow_execution_id_project, workflow_execution_id_domain, workflow_execution_id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str workflow_execution_id_project: Name of the project the resource belongs to. (required) - :param str workflow_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str workflow_execution_id_name: User or system provided value for the resource. (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str unique_parent_id: Unique identifier of the parent node in the execution +optional. - :return: AdminNodeExecutionList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['workflow_execution_id_project', 'workflow_execution_id_domain', 'workflow_execution_id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction', 'unique_parent_id'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_node_executions" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'workflow_execution_id_project' is set - if ('workflow_execution_id_project' not in params or - params['workflow_execution_id_project'] is None): - raise ValueError("Missing the required parameter `workflow_execution_id_project` when calling `list_node_executions`") # noqa: E501 - # verify the required parameter 'workflow_execution_id_domain' is set - if ('workflow_execution_id_domain' not in params or - params['workflow_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `workflow_execution_id_domain` when calling `list_node_executions`") # noqa: E501 - # verify the required parameter 'workflow_execution_id_name' is set - if ('workflow_execution_id_name' not in params or - params['workflow_execution_id_name'] is None): - raise ValueError("Missing the required parameter `workflow_execution_id_name` when calling `list_node_executions`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'workflow_execution_id_project' in params: - path_params['workflow_execution_id.project'] = params['workflow_execution_id_project'] # noqa: E501 - if 'workflow_execution_id_domain' in params: - path_params['workflow_execution_id.domain'] = params['workflow_execution_id_domain'] # noqa: E501 - if 'workflow_execution_id_name' in params: - path_params['workflow_execution_id.name'] = params['workflow_execution_id_name'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - if 'unique_parent_id' in params: - query_params.append(('unique_parent_id', params['unique_parent_id'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNodeExecutionList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_node_executions_for_task(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_node_executions_for_task(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str task_execution_id_node_execution_id_node_id: (required) - :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) - :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str task_execution_id_task_id_name: User provided value for the resource. (required) - :param str task_execution_id_task_id_version: Specific version of the resource. (required) - :param int task_execution_id_retry_attempt: (required) - :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminNodeExecutionList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 - else: - (data) = self.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs) # noqa: E501 - return data - - def list_node_executions_for_task_with_http_info(self, task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_node_executions_for_task_with_http_info(task_execution_id_node_execution_id_execution_id_project, task_execution_id_node_execution_id_execution_id_domain, task_execution_id_node_execution_id_execution_id_name, task_execution_id_node_execution_id_node_id, task_execution_id_task_id_project, task_execution_id_task_id_domain, task_execution_id_task_id_name, task_execution_id_task_id_version, task_execution_id_retry_attempt, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str task_execution_id_node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str task_execution_id_node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str task_execution_id_node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str task_execution_id_node_execution_id_node_id: (required) - :param str task_execution_id_task_id_project: Name of the project the resource belongs to. (required) - :param str task_execution_id_task_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str task_execution_id_task_id_name: User provided value for the resource. (required) - :param str task_execution_id_task_id_version: Specific version of the resource. (required) - :param int task_execution_id_retry_attempt: (required) - :param str task_execution_id_task_id_resource_type: Identifies the specific type of resource that this identifier corresponds to. - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects in a similar manner to other Flyte objects - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the, server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminNodeExecutionList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['task_execution_id_node_execution_id_execution_id_project', 'task_execution_id_node_execution_id_execution_id_domain', 'task_execution_id_node_execution_id_execution_id_name', 'task_execution_id_node_execution_id_node_id', 'task_execution_id_task_id_project', 'task_execution_id_task_id_domain', 'task_execution_id_task_id_name', 'task_execution_id_task_id_version', 'task_execution_id_retry_attempt', 'task_execution_id_task_id_resource_type', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_node_executions_for_task" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'task_execution_id_node_execution_id_execution_id_project' is set - if ('task_execution_id_node_execution_id_execution_id_project' not in params or - params['task_execution_id_node_execution_id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_project` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_node_execution_id_execution_id_domain' is set - if ('task_execution_id_node_execution_id_execution_id_domain' not in params or - params['task_execution_id_node_execution_id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_node_execution_id_execution_id_name' is set - if ('task_execution_id_node_execution_id_execution_id_name' not in params or - params['task_execution_id_node_execution_id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_execution_id_name` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_node_execution_id_node_id' is set - if ('task_execution_id_node_execution_id_node_id' not in params or - params['task_execution_id_node_execution_id_node_id'] is None): - raise ValueError("Missing the required parameter `task_execution_id_node_execution_id_node_id` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_task_id_project' is set - if ('task_execution_id_task_id_project' not in params or - params['task_execution_id_task_id_project'] is None): - raise ValueError("Missing the required parameter `task_execution_id_task_id_project` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_task_id_domain' is set - if ('task_execution_id_task_id_domain' not in params or - params['task_execution_id_task_id_domain'] is None): - raise ValueError("Missing the required parameter `task_execution_id_task_id_domain` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_task_id_name' is set - if ('task_execution_id_task_id_name' not in params or - params['task_execution_id_task_id_name'] is None): - raise ValueError("Missing the required parameter `task_execution_id_task_id_name` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_task_id_version' is set - if ('task_execution_id_task_id_version' not in params or - params['task_execution_id_task_id_version'] is None): - raise ValueError("Missing the required parameter `task_execution_id_task_id_version` when calling `list_node_executions_for_task`") # noqa: E501 - # verify the required parameter 'task_execution_id_retry_attempt' is set - if ('task_execution_id_retry_attempt' not in params or - params['task_execution_id_retry_attempt'] is None): - raise ValueError("Missing the required parameter `task_execution_id_retry_attempt` when calling `list_node_executions_for_task`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'task_execution_id_node_execution_id_execution_id_project' in params: - path_params['task_execution_id.node_execution_id.execution_id.project'] = params['task_execution_id_node_execution_id_execution_id_project'] # noqa: E501 - if 'task_execution_id_node_execution_id_execution_id_domain' in params: - path_params['task_execution_id.node_execution_id.execution_id.domain'] = params['task_execution_id_node_execution_id_execution_id_domain'] # noqa: E501 - if 'task_execution_id_node_execution_id_execution_id_name' in params: - path_params['task_execution_id.node_execution_id.execution_id.name'] = params['task_execution_id_node_execution_id_execution_id_name'] # noqa: E501 - if 'task_execution_id_node_execution_id_node_id' in params: - path_params['task_execution_id.node_execution_id.node_id'] = params['task_execution_id_node_execution_id_node_id'] # noqa: E501 - if 'task_execution_id_task_id_project' in params: - path_params['task_execution_id.task_id.project'] = params['task_execution_id_task_id_project'] # noqa: E501 - if 'task_execution_id_task_id_domain' in params: - path_params['task_execution_id.task_id.domain'] = params['task_execution_id_task_id_domain'] # noqa: E501 - if 'task_execution_id_task_id_name' in params: - path_params['task_execution_id.task_id.name'] = params['task_execution_id_task_id_name'] # noqa: E501 - if 'task_execution_id_task_id_version' in params: - path_params['task_execution_id.task_id.version'] = params['task_execution_id_task_id_version'] # noqa: E501 - if 'task_execution_id_retry_attempt' in params: - path_params['task_execution_id.retry_attempt'] = params['task_execution_id_retry_attempt'] # noqa: E501 - - query_params = [] - if 'task_execution_id_task_id_resource_type' in params: - query_params.append(('task_execution_id.task_id.resource_type', params['task_execution_id_task_id_resource_type'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNodeExecutionList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_projects(self, **kwargs): # noqa: E501 - """Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_projects(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int limit: Indicates the number of projects to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminProjects - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_projects_with_http_info(**kwargs) # noqa: E501 - else: - (data) = self.list_projects_with_http_info(**kwargs) # noqa: E501 - return data - - def list_projects_with_http_info(self, **kwargs): # noqa: E501 - """Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_projects_with_http_info(async_req=True) - >>> result = thread.get() - - :param async_req bool - :param int limit: Indicates the number of projects to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminProjects - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_projects" % key - ) - params[key] = val - del params['kwargs'] - - collection_formats = {} - - path_params = {} - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/projects', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjects', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_task_executions(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 - """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_task_executions(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str node_execution_id_node_id: (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskExecutionList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 - else: - (data) = self.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs) # noqa: E501 - return data - - def list_task_executions_with_http_info(self, node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, **kwargs): # noqa: E501 - """Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_task_executions_with_http_info(node_execution_id_execution_id_project, node_execution_id_execution_id_domain, node_execution_id_execution_id_name, node_execution_id_node_id, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str node_execution_id_execution_id_project: Name of the project the resource belongs to. (required) - :param str node_execution_id_execution_id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str node_execution_id_execution_id_name: User or system provided value for the resource. (required) - :param str node_execution_id_node_id: (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskExecutionList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['node_execution_id_execution_id_project', 'node_execution_id_execution_id_domain', 'node_execution_id_execution_id_name', 'node_execution_id_node_id', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_task_executions" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'node_execution_id_execution_id_project' is set - if ('node_execution_id_execution_id_project' not in params or - params['node_execution_id_execution_id_project'] is None): - raise ValueError("Missing the required parameter `node_execution_id_execution_id_project` when calling `list_task_executions`") # noqa: E501 - # verify the required parameter 'node_execution_id_execution_id_domain' is set - if ('node_execution_id_execution_id_domain' not in params or - params['node_execution_id_execution_id_domain'] is None): - raise ValueError("Missing the required parameter `node_execution_id_execution_id_domain` when calling `list_task_executions`") # noqa: E501 - # verify the required parameter 'node_execution_id_execution_id_name' is set - if ('node_execution_id_execution_id_name' not in params or - params['node_execution_id_execution_id_name'] is None): - raise ValueError("Missing the required parameter `node_execution_id_execution_id_name` when calling `list_task_executions`") # noqa: E501 - # verify the required parameter 'node_execution_id_node_id' is set - if ('node_execution_id_node_id' not in params or - params['node_execution_id_node_id'] is None): - raise ValueError("Missing the required parameter `node_execution_id_node_id` when calling `list_task_executions`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'node_execution_id_execution_id_project' in params: - path_params['node_execution_id.execution_id.project'] = params['node_execution_id_execution_id_project'] # noqa: E501 - if 'node_execution_id_execution_id_domain' in params: - path_params['node_execution_id.execution_id.domain'] = params['node_execution_id_execution_id_domain'] # noqa: E501 - if 'node_execution_id_execution_id_name' in params: - path_params['node_execution_id.execution_id.name'] = params['node_execution_id_execution_id_name'] # noqa: E501 - if 'node_execution_id_node_id' in params: - path_params['node_execution_id.node_id'] = params['node_execution_id_node_id'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTaskExecutionList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_task_ids(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_task_ids(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - else: - (data) = self.list_task_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - return data - - def list_task_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_task_ids_with_http_info(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_task_ids" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `list_task_ids`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `list_task_ids`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/task_ids/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntityIdentifierList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_tasks(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_tasks(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.list_tasks_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def list_tasks_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_tasks_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_tasks" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_tasks`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `list_tasks`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/tasks/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTaskList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_tasks2(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_tasks2(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - else: - (data) = self.list_tasks2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - return data - - def list_tasks2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_tasks2_with_http_info(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminTaskList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_tasks2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_tasks2`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_tasks2`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - - query_params = [] - if 'id_name' in params: - query_params.append(('id.name', params['id_name'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/tasks/{id.project}/{id.domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminTaskList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_workflow_ids(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_ids(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - else: - (data) = self.list_workflow_ids_with_http_info(project, domain, **kwargs) # noqa: E501 - return data - - def list_workflow_ids_with_http_info(self, project, domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflow_ids_with_http_info(project, domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str project: Name of the project that contains the identifiers. +required (required) - :param str domain: Name of the domain the identifiers belongs to within the project. +required (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :param str filters: Indicates a list of filters passed as string. +optional. - :return: AdminNamedEntityIdentifierList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['project', 'domain', 'limit', 'token', 'sort_by_key', 'sort_by_direction', 'filters'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_workflow_ids" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'project' is set - if ('project' not in params or - params['project'] is None): - raise ValueError("Missing the required parameter `project` when calling `list_workflow_ids`") # noqa: E501 - # verify the required parameter 'domain' is set - if ('domain' not in params or - params['domain'] is None): - raise ValueError("Missing the required parameter `domain` when calling `list_workflow_ids`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'project' in params: - path_params['project'] = params['project'] # noqa: E501 - if 'domain' in params: - path_params['domain'] = params['domain'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflow_ids/{project}/{domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntityIdentifierList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_workflows(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflows(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminWorkflowList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - else: - (data) = self.list_workflows_with_http_info(id_project, id_domain, id_name, **kwargs) # noqa: E501 - return data - - def list_workflows_with_http_info(self, id_project, id_domain, id_name, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflows_with_http_info(id_project, id_domain, id_name, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminWorkflowList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_workflows" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_workflows`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `list_workflows`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflows/{id.project}/{id.domain}/{id.name}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def list_workflows2(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflows2(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminWorkflowList - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - else: - (data) = self.list_workflows2_with_http_info(id_project, id_domain, **kwargs) # noqa: E501 - return data - - def list_workflows2_with_http_info(self, id_project, id_domain, **kwargs): # noqa: E501 - """Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.list_workflows2_with_http_info(id_project, id_domain, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans'. - :param int limit: Indicates the number of resources to be returned. +required. - :param str token: In the case of multiple pages of results, this server-provided token can be used to fetch the next page in a query. +optional. - :param str filters: Indicates a list of filters passed as string. More info on constructing filters : +optional. - :param str sort_by_key: Indicates an attribute to sort the response values. +required. - :param str sort_by_direction: Indicates the direction to apply sort key for response values. +optional. - DESCENDING: By default, fields are sorted in descending order. - :return: AdminWorkflowList - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'limit', 'token', 'filters', 'sort_by_key', 'sort_by_direction'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method list_workflows2" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `list_workflows2`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `list_workflows2`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - - query_params = [] - if 'id_name' in params: - query_params.append(('id.name', params['id_name'])) # noqa: E501 - if 'limit' in params: - query_params.append(('limit', params['limit'])) # noqa: E501 - if 'token' in params: - query_params.append(('token', params['token'])) # noqa: E501 - if 'filters' in params: - query_params.append(('filters', params['filters'])) # noqa: E501 - if 'sort_by_key' in params: - query_params.append(('sort_by.key', params['sort_by_key'])) # noqa: E501 - if 'sort_by_direction' in params: - query_params.append(('sort_by.direction', params['sort_by_direction'])) # noqa: E501 - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflows/{id.project}/{id.domain}', 'GET', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowList', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def recover_execution(self, body, **kwargs): # noqa: E501 - """Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.recover_execution(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionRecoverRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.recover_execution_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.recover_execution_with_http_info(body, **kwargs) # noqa: E501 - return data - - def recover_execution_with_http_info(self, body, **kwargs): # noqa: E501 - """Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.recover_execution_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionRecoverRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method recover_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `recover_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/recover', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def register_project(self, body, **kwargs): # noqa: E501 - """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register_project(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminProjectRegisterRequest body: (required) - :return: AdminProjectRegisterResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.register_project_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.register_project_with_http_info(body, **kwargs) # noqa: E501 - return data - - def register_project_with_http_info(self, body, **kwargs): # noqa: E501 - """Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.register_project_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminProjectRegisterRequest body: (required) - :return: AdminProjectRegisterResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method register_project" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `register_project`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/projects', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectRegisterResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def relaunch_execution(self, body, **kwargs): # noqa: E501 - """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.relaunch_execution(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionRelaunchRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 - else: - (data) = self.relaunch_execution_with_http_info(body, **kwargs) # noqa: E501 - return data - - def relaunch_execution_with_http_info(self, body, **kwargs): # noqa: E501 - """Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.relaunch_execution_with_http_info(body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param AdminExecutionRelaunchRequest body: (required) - :return: AdminExecutionCreateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method relaunch_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `relaunch_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/relaunch', 'POST', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionCreateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def terminate_execution(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_execution(id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param AdminExecutionTerminateRequest body: (required) - :return: AdminExecutionTerminateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - else: - (data) = self.terminate_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - return data - - def terminate_execution_with_http_info(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.terminate_execution_with_http_info(id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param AdminExecutionTerminateRequest body: (required) - :return: AdminExecutionTerminateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method terminate_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `terminate_execution`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `terminate_execution`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `terminate_execution`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `terminate_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'DELETE', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionTerminateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_execution(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_execution(id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param AdminExecutionUpdateRequest body: (required) - :return: AdminExecutionUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - else: - (data) = self.update_execution_with_http_info(id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - return data - - def update_execution_with_http_info(self, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_execution_with_http_info(id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User or system provided value for the resource. (required) - :param AdminExecutionUpdateRequest body: (required) - :return: AdminExecutionUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_execution" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `update_execution`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `update_execution`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `update_execution`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_execution`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/executions/{id.project}/{id.domain}/{id.name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminExecutionUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_launch_plan(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 - """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_launch_plan(id_project, id_domain, id_name, id_version, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param AdminLaunchPlanUpdateRequest body: (required) - :return: AdminLaunchPlanUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 - else: - (data) = self.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, **kwargs) # noqa: E501 - return data - - def update_launch_plan_with_http_info(self, id_project, id_domain, id_name, id_version, body, **kwargs): # noqa: E501 - """Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_launch_plan_with_http_info(id_project, id_domain, id_name, id_version, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. (required) - :param str id_version: Specific version of the resource. (required) - :param AdminLaunchPlanUpdateRequest body: (required) - :return: AdminLaunchPlanUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id_project', 'id_domain', 'id_name', 'id_version', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_launch_plan" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `update_launch_plan`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `update_launch_plan`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `update_launch_plan`") # noqa: E501 - # verify the required parameter 'id_version' is set - if ('id_version' not in params or - params['id_version'] is None): - raise ValueError("Missing the required parameter `id_version` when calling `update_launch_plan`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_launch_plan`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - if 'id_version' in params: - path_params['id.version'] = params['id_version'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminLaunchPlanUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_named_entity(self, resource_type, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_named_entity(resource_type, id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to update +required (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param AdminNamedEntityUpdateRequest body: (required) - :return: AdminNamedEntityUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - else: - (data) = self.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, **kwargs) # noqa: E501 - return data - - def update_named_entity_with_http_info(self, resource_type, id_project, id_domain, id_name, body, **kwargs): # noqa: E501 - """Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_named_entity_with_http_info(resource_type, id_project, id_domain, id_name, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str resource_type: Resource type of the metadata to update +required (required) - :param str id_project: Name of the project the resource belongs to. (required) - :param str id_domain: Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. (required) - :param str id_name: User provided value for the resource. The combination of project + domain + name uniquely identifies the resource. +optional - in certain contexts - like 'List API', 'Launch plans' (required) - :param AdminNamedEntityUpdateRequest body: (required) - :return: AdminNamedEntityUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['resource_type', 'id_project', 'id_domain', 'id_name', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_named_entity" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'resource_type' is set - if ('resource_type' not in params or - params['resource_type'] is None): - raise ValueError("Missing the required parameter `resource_type` when calling `update_named_entity`") # noqa: E501 - # verify the required parameter 'id_project' is set - if ('id_project' not in params or - params['id_project'] is None): - raise ValueError("Missing the required parameter `id_project` when calling `update_named_entity`") # noqa: E501 - # verify the required parameter 'id_domain' is set - if ('id_domain' not in params or - params['id_domain'] is None): - raise ValueError("Missing the required parameter `id_domain` when calling `update_named_entity`") # noqa: E501 - # verify the required parameter 'id_name' is set - if ('id_name' not in params or - params['id_name'] is None): - raise ValueError("Missing the required parameter `id_name` when calling `update_named_entity`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_named_entity`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'resource_type' in params: - path_params['resource_type'] = params['resource_type'] # noqa: E501 - if 'id_project' in params: - path_params['id.project'] = params['id_project'] # noqa: E501 - if 'id_domain' in params: - path_params['id.domain'] = params['id_domain'] # noqa: E501 - if 'id_name' in params: - path_params['id.name'] = params['id_name'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminNamedEntityUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_project(self, id, body, **kwargs): # noqa: E501 - """Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project(id, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: Globally unique project name. (required) - :param AdminProject body: (required) - :return: AdminProjectUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_project_with_http_info(id, body, **kwargs) # noqa: E501 - else: - (data) = self.update_project_with_http_info(id, body, **kwargs) # noqa: E501 - return data - - def update_project_with_http_info(self, id, body, **kwargs): # noqa: E501 - """Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project_with_http_info(id, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str id: Globally unique project name. (required) - :param AdminProject body: (required) - :return: AdminProjectUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['id', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_project" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_project`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_project`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/projects/{id}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_project_attributes(self, attributes_project, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project_attributes(attributes_project, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param AdminProjectAttributesUpdateRequest body: (required) - :return: AdminProjectAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_project_attributes_with_http_info(attributes_project, body, **kwargs) # noqa: E501 - else: - (data) = self.update_project_attributes_with_http_info(attributes_project, body, **kwargs) # noqa: E501 - return data - - def update_project_attributes_with_http_info(self, attributes_project, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project_attributes_with_http_info(attributes_project, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param AdminProjectAttributesUpdateRequest body: (required) - :return: AdminProjectAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['attributes_project', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_project_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'attributes_project' is set - if ('attributes_project' not in params or - params['attributes_project'] is None): - raise ValueError("Missing the required parameter `attributes_project` when calling `update_project_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_project_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'attributes_project' in params: - path_params['attributes.project'] = params['attributes_project'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_attributes/{attributes.project}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectAttributesUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_project_domain_attributes(self, attributes_project, attributes_domain, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project_domain_attributes(attributes_project, attributes_domain, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) - :param AdminProjectDomainAttributesUpdateRequest body: (required) - :return: AdminProjectDomainAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, **kwargs) # noqa: E501 - else: - (data) = self.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, **kwargs) # noqa: E501 - return data - - def update_project_domain_attributes_with_http_info(self, attributes_project, attributes_domain, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_project_domain_attributes_with_http_info(attributes_project, attributes_domain, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) - :param AdminProjectDomainAttributesUpdateRequest body: (required) - :return: AdminProjectDomainAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['attributes_project', 'attributes_domain', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_project_domain_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'attributes_project' is set - if ('attributes_project' not in params or - params['attributes_project'] is None): - raise ValueError("Missing the required parameter `attributes_project` when calling `update_project_domain_attributes`") # noqa: E501 - # verify the required parameter 'attributes_domain' is set - if ('attributes_domain' not in params or - params['attributes_domain'] is None): - raise ValueError("Missing the required parameter `attributes_domain` when calling `update_project_domain_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_project_domain_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'attributes_project' in params: - path_params['attributes.project'] = params['attributes_project'] # noqa: E501 - if 'attributes_domain' in params: - path_params['attributes.domain'] = params['attributes_domain'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminProjectDomainAttributesUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) - - def update_workflow_attributes(self, attributes_project, attributes_domain, attributes_workflow, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workflow_attributes(attributes_project, attributes_domain, attributes_workflow, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) - :param str attributes_workflow: Workflow name for which this set of attributes will be applied. (required) - :param AdminWorkflowAttributesUpdateRequest body: (required) - :return: AdminWorkflowAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - kwargs['_return_http_data_only'] = True - if kwargs.get('async_req'): - return self.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, **kwargs) # noqa: E501 - else: - (data) = self.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, **kwargs) # noqa: E501 - return data - - def update_workflow_attributes_with_http_info(self, attributes_project, attributes_domain, attributes_workflow, body, **kwargs): # noqa: E501 - """Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - >>> thread = api.update_workflow_attributes_with_http_info(attributes_project, attributes_domain, attributes_workflow, body, async_req=True) - >>> result = thread.get() - - :param async_req bool - :param str attributes_project: Unique project id for which this set of attributes will be applied. (required) - :param str attributes_domain: Unique domain id for which this set of attributes will be applied. (required) - :param str attributes_workflow: Workflow name for which this set of attributes will be applied. (required) - :param AdminWorkflowAttributesUpdateRequest body: (required) - :return: AdminWorkflowAttributesUpdateResponse - If the method is called asynchronously, - returns the request thread. - """ - - all_params = ['attributes_project', 'attributes_domain', 'attributes_workflow', 'body'] # noqa: E501 - all_params.append('async_req') - all_params.append('_return_http_data_only') - all_params.append('_preload_content') - all_params.append('_request_timeout') - - params = locals() - for key, val in six.iteritems(params['kwargs']): - if key not in all_params: - raise TypeError( - "Got an unexpected keyword argument '%s'" - " to method update_workflow_attributes" % key - ) - params[key] = val - del params['kwargs'] - # verify the required parameter 'attributes_project' is set - if ('attributes_project' not in params or - params['attributes_project'] is None): - raise ValueError("Missing the required parameter `attributes_project` when calling `update_workflow_attributes`") # noqa: E501 - # verify the required parameter 'attributes_domain' is set - if ('attributes_domain' not in params or - params['attributes_domain'] is None): - raise ValueError("Missing the required parameter `attributes_domain` when calling `update_workflow_attributes`") # noqa: E501 - # verify the required parameter 'attributes_workflow' is set - if ('attributes_workflow' not in params or - params['attributes_workflow'] is None): - raise ValueError("Missing the required parameter `attributes_workflow` when calling `update_workflow_attributes`") # noqa: E501 - # verify the required parameter 'body' is set - if ('body' not in params or - params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `update_workflow_attributes`") # noqa: E501 - - collection_formats = {} - - path_params = {} - if 'attributes_project' in params: - path_params['attributes.project'] = params['attributes_project'] # noqa: E501 - if 'attributes_domain' in params: - path_params['attributes.domain'] = params['attributes_domain'] # noqa: E501 - if 'attributes_workflow' in params: - path_params['attributes.workflow'] = params['attributes_workflow'] # noqa: E501 - - query_params = [] - - header_params = {} - - form_params = [] - local_var_files = {} - - body_params = None - if 'body' in params: - body_params = params['body'] - # HTTP header `Accept` - header_params['Accept'] = self.api_client.select_header_accept( - ['application/json']) # noqa: E501 - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 - ['application/json']) # noqa: E501 - - # Authentication setting - auth_settings = [] # noqa: E501 - - return self.api_client.call_api( - '/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}', 'PUT', - path_params, - query_params, - header_params, - body=body_params, - post_params=form_params, - files=local_var_files, - response_type='AdminWorkflowAttributesUpdateResponse', # noqa: E501 - auth_settings=auth_settings, - async_req=params.get('async_req'), - _return_http_data_only=params.get('_return_http_data_only'), - _preload_content=params.get('_preload_content', True), - _request_timeout=params.get('_request_timeout'), - collection_formats=collection_formats) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py deleted file mode 100644 index 9a7091b08f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/api_client.py +++ /dev/null @@ -1,638 +0,0 @@ -# coding: utf-8 -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - -from __future__ import absolute_import - -import datetime -import json -import mimetypes -from multiprocessing.pool import ThreadPool -import os -import re -import tempfile - -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import quote - -from flyteadmin.configuration import Configuration -import flyteadmin.models -from flyteadmin import rest - - -class ApiClient(object): - """Generic API client for Swagger client library builds. - - Swagger generic API client. This client handles the client- - server communication, and is invariant across implementations. Specifics of - the methods and models for each application are generated from the Swagger - templates. - - NOTE: This class is auto generated by the swagger code generator program. - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - - :param configuration: .Configuration object for this client - :param header_name: a header to pass when making calls to the API. - :param header_value: a header value to pass when making calls to - the API. - :param cookie: a cookie to include in the header when making calls - to the API - """ - - PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types - NATIVE_TYPES_MAPPING = { - 'int': int, - 'long': int if six.PY3 else long, # noqa: F821 - 'float': float, - 'str': str, - 'bool': bool, - 'date': datetime.date, - 'datetime': datetime.datetime, - 'object': object, - } - - def __init__(self, configuration=None, header_name=None, header_value=None, - cookie=None): - if configuration is None: - configuration = Configuration() - self.configuration = configuration - - # Use the pool property to lazily initialize the ThreadPool. - self._pool = None - self.rest_client = rest.RESTClientObject(configuration) - self.default_headers = {} - if header_name is not None: - self.default_headers[header_name] = header_value - self.cookie = cookie - # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/1.0.0/python' - - def __del__(self): - if self._pool is not None: - self._pool.close() - self._pool.join() - - @property - def pool(self): - if self._pool is None: - self._pool = ThreadPool() - return self._pool - - @property - def user_agent(self): - """User agent for this API client""" - return self.default_headers['User-Agent'] - - @user_agent.setter - def user_agent(self, value): - self.default_headers['User-Agent'] = value - - def set_default_header(self, header_name, header_value): - self.default_headers[header_name] = header_value - - def __call_api( - self, resource_path, method, path_params=None, - query_params=None, header_params=None, body=None, post_params=None, - files=None, response_type=None, auth_settings=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - - config = self.configuration - - # header parameters - header_params = header_params or {} - header_params.update(self.default_headers) - if self.cookie: - header_params['Cookie'] = self.cookie - if header_params: - header_params = self.sanitize_for_serialization(header_params) - header_params = dict(self.parameters_to_tuples(header_params, - collection_formats)) - - # path parameters - if path_params: - path_params = self.sanitize_for_serialization(path_params) - path_params = self.parameters_to_tuples(path_params, - collection_formats) - for k, v in path_params: - # specified safe chars, encode everything - resource_path = resource_path.replace( - '{%s}' % k, - quote(str(v), safe=config.safe_chars_for_path_param) - ) - - # query parameters - if query_params: - query_params = self.sanitize_for_serialization(query_params) - query_params = self.parameters_to_tuples(query_params, - collection_formats) - - # post parameters - if post_params or files: - post_params = self.prepare_post_parameters(post_params, files) - post_params = self.sanitize_for_serialization(post_params) - post_params = self.parameters_to_tuples(post_params, - collection_formats) - - # auth setting - self.update_params_for_auth(header_params, query_params, auth_settings) - - # body - if body: - body = self.sanitize_for_serialization(body) - - # request url - url = self.configuration.host + resource_path - - # perform request and return response - response_data = self.request( - method, url, query_params=query_params, headers=header_params, - post_params=post_params, body=body, - _preload_content=_preload_content, - _request_timeout=_request_timeout) - - self.last_response = response_data - - return_data = response_data - if _preload_content: - # deserialize response data - if response_type: - return_data = self.deserialize(response_data, response_type) - else: - return_data = None - - if _return_http_data_only: - return (return_data) - else: - return (return_data, response_data.status, - response_data.getheaders()) - - def sanitize_for_serialization(self, obj): - """Builds a JSON POST object. - - If obj is None, return None. - If obj is str, int, long, float, bool, return directly. - If obj is datetime.datetime, datetime.date - convert to string in iso8601 format. - If obj is list, sanitize each element in the list. - If obj is dict, return the dict. - If obj is swagger model, return the properties dict. - - :param obj: The data to serialize. - :return: The serialized form of data. - """ - if obj is None: - return None - elif isinstance(obj, self.PRIMITIVE_TYPES): - return obj - elif isinstance(obj, list): - return [self.sanitize_for_serialization(sub_obj) - for sub_obj in obj] - elif isinstance(obj, tuple): - return tuple(self.sanitize_for_serialization(sub_obj) - for sub_obj in obj) - elif isinstance(obj, (datetime.datetime, datetime.date)): - return obj.isoformat() - - if isinstance(obj, dict): - obj_dict = obj - else: - # Convert model obj to dict except - # attributes `swagger_types`, `attribute_map` - # and attributes which value is not None. - # Convert attribute name to json key in - # model definition for request. - obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) - for attr, _ in six.iteritems(obj.swagger_types) - if getattr(obj, attr) is not None} - - return {key: self.sanitize_for_serialization(val) - for key, val in six.iteritems(obj_dict)} - - def deserialize(self, response, response_type): - """Deserializes response into an object. - - :param response: RESTResponse object to be deserialized. - :param response_type: class literal for - deserialized object, or string of class name. - - :return: deserialized object. - """ - # handle file downloading - # save response body into a tmp file and return the instance - if response_type == "file": - return self.__deserialize_file(response) - - # fetch data from response object - try: - data = json.loads(response.data) - except ValueError: - data = response.data - - return self.__deserialize(data, response_type) - - def __deserialize(self, data, klass): - """Deserializes dict, list, str into an object. - - :param data: dict, list or str. - :param klass: class literal, or string of class name. - - :return: object. - """ - if data is None: - return None - - if type(klass) == str: - if klass.startswith('list['): - sub_kls = re.match(r'list\[(.*)\]', klass).group(1) - return [self.__deserialize(sub_data, sub_kls) - for sub_data in data] - - if klass.startswith('dict('): - sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) - return {k: self.__deserialize(v, sub_kls) - for k, v in six.iteritems(data)} - - # convert str to class - if klass in self.NATIVE_TYPES_MAPPING: - klass = self.NATIVE_TYPES_MAPPING[klass] - else: - klass = getattr(flyteadmin.models, klass) - - if klass in self.PRIMITIVE_TYPES: - return self.__deserialize_primitive(data, klass) - elif klass == object: - return self.__deserialize_object(data) - elif klass == datetime.date: - return self.__deserialize_date(data) - elif klass == datetime.datetime: - return self.__deserialize_datatime(data) - else: - return self.__deserialize_model(data, klass) - - def call_api(self, resource_path, method, - path_params=None, query_params=None, header_params=None, - body=None, post_params=None, files=None, - response_type=None, auth_settings=None, async_req=None, - _return_http_data_only=None, collection_formats=None, - _preload_content=True, _request_timeout=None): - """Makes the HTTP request (synchronous) and returns deserialized data. - - To make an async request, set the async_req parameter. - - :param resource_path: Path to method endpoint. - :param method: Method to call. - :param path_params: Path parameters in the url. - :param query_params: Query parameters in the url. - :param header_params: Header parameters to be - placed in the request header. - :param body: Request body. - :param post_params dict: Request post form parameters, - for `application/x-www-form-urlencoded`, `multipart/form-data`. - :param auth_settings list: Auth Settings names for the request. - :param response: Response data type. - :param files dict: key -> filename, value -> filepath, - for `multipart/form-data`. - :param async_req bool: execute request asynchronously - :param _return_http_data_only: response data without head status code - and headers - :param collection_formats: dict of collection formats for path, query, - header, and post parameters. - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - :return: - If async_req parameter is True, - the request will be called asynchronously. - The method will return the request thread. - If parameter async_req is False or missing, - then the method will return the response directly. - """ - if not async_req: - return self.__call_api(resource_path, method, - path_params, query_params, header_params, - body, post_params, files, - response_type, auth_settings, - _return_http_data_only, collection_formats, - _preload_content, _request_timeout) - else: - thread = self.pool.apply_async(self.__call_api, (resource_path, - method, path_params, query_params, - header_params, body, - post_params, files, - response_type, auth_settings, - _return_http_data_only, - collection_formats, - _preload_content, _request_timeout)) - return thread - - def request(self, method, url, query_params=None, headers=None, - post_params=None, body=None, _preload_content=True, - _request_timeout=None): - """Makes the HTTP request using RESTClient.""" - if method == "GET": - return self.rest_client.GET(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "HEAD": - return self.rest_client.HEAD(url, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - headers=headers) - elif method == "OPTIONS": - return self.rest_client.OPTIONS(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "POST": - return self.rest_client.POST(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PUT": - return self.rest_client.PUT(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "PATCH": - return self.rest_client.PATCH(url, - query_params=query_params, - headers=headers, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - elif method == "DELETE": - return self.rest_client.DELETE(url, - query_params=query_params, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - else: - raise ValueError( - "http method must be `GET`, `HEAD`, `OPTIONS`," - " `POST`, `PATCH`, `PUT` or `DELETE`." - ) - - def parameters_to_tuples(self, params, collection_formats): - """Get parameters as list of tuples, formatting collections. - - :param params: Parameters as dict or list of two-tuples - :param dict collection_formats: Parameter collection formats - :return: Parameters as list of tuples, collections formatted - """ - new_params = [] - if collection_formats is None: - collection_formats = {} - for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 - if k in collection_formats: - collection_format = collection_formats[k] - if collection_format == 'multi': - new_params.extend((k, value) for value in v) - else: - if collection_format == 'ssv': - delimiter = ' ' - elif collection_format == 'tsv': - delimiter = '\t' - elif collection_format == 'pipes': - delimiter = '|' - else: # csv is the default - delimiter = ',' - new_params.append( - (k, delimiter.join(str(value) for value in v))) - else: - new_params.append((k, v)) - return new_params - - def prepare_post_parameters(self, post_params=None, files=None): - """Builds form parameters. - - :param post_params: Normal form parameters. - :param files: File parameters. - :return: Form parameters with files. - """ - params = [] - - if post_params: - params = post_params - - if files: - for k, v in six.iteritems(files): - if not v: - continue - file_names = v if type(v) is list else [v] - for n in file_names: - with open(n, 'rb') as f: - filename = os.path.basename(f.name) - filedata = f.read() - mimetype = (mimetypes.guess_type(filename)[0] or - 'application/octet-stream') - params.append( - tuple([k, tuple([filename, filedata, mimetype])])) - - return params - - def select_header_accept(self, accepts): - """Returns `Accept` based on an array of accepts provided. - - :param accepts: List of headers. - :return: Accept (e.g. application/json). - """ - if not accepts: - return - - accepts = [x.lower() for x in accepts] - - if 'application/json' in accepts: - return 'application/json' - else: - return ', '.join(accepts) - - def select_header_content_type(self, content_types): - """Returns `Content-Type` based on an array of content_types provided. - - :param content_types: List of content-types. - :return: Content-Type (e.g. application/json). - """ - if not content_types: - return 'application/json' - - content_types = [x.lower() for x in content_types] - - if 'application/json' in content_types or '*/*' in content_types: - return 'application/json' - else: - return content_types[0] - - def update_params_for_auth(self, headers, querys, auth_settings): - """Updates header and query params based on authentication setting. - - :param headers: Header parameters dict to be updated. - :param querys: Query parameters tuple list to be updated. - :param auth_settings: Authentication setting identifiers list. - """ - if not auth_settings: - return - - for auth in auth_settings: - auth_setting = self.configuration.auth_settings().get(auth) - if auth_setting: - if not auth_setting['value']: - continue - elif auth_setting['in'] == 'header': - headers[auth_setting['key']] = auth_setting['value'] - elif auth_setting['in'] == 'query': - querys.append((auth_setting['key'], auth_setting['value'])) - else: - raise ValueError( - 'Authentication token must be in `query` or `header`' - ) - - def __deserialize_file(self, response): - """Deserializes body to file - - Saves response body into a file in a temporary folder, - using the filename from the `Content-Disposition` header if provided. - - :param response: RESTResponse. - :return: file path. - """ - fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) - os.close(fd) - os.remove(path) - - content_disposition = response.getheader("Content-Disposition") - if content_disposition: - filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', - content_disposition).group(1) - path = os.path.join(os.path.dirname(path), filename) - - with open(path, "wb") as f: - f.write(response.data) - - return path - - def __deserialize_primitive(self, data, klass): - """Deserializes string to primitive type. - - :param data: str. - :param klass: class literal. - - :return: int, long, float, str, bool. - """ - try: - return klass(data) - except UnicodeEncodeError: - return six.text_type(data) - except TypeError: - return data - - def __deserialize_object(self, value): - """Return a original value. - - :return: object. - """ - return value - - def __deserialize_date(self, string): - """Deserializes string to date. - - :param string: str. - :return: date. - """ - try: - from dateutil.parser import parse - return parse(string).date() - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason="Failed to parse `{0}` as date object".format(string) - ) - - def __deserialize_datatime(self, string): - """Deserializes string to datetime. - - The string should be in iso8601 datetime format. - - :param string: str. - :return: datetime. - """ - try: - from dateutil.parser import parse - return parse(string) - except ImportError: - return string - except ValueError: - raise rest.ApiException( - status=0, - reason=( - "Failed to parse `{0}` as datetime object" - .format(string) - ) - ) - - def __hasattr(self, object, name): - return name in object.__class__.__dict__ - - def __deserialize_model(self, data, klass): - """Deserializes list or dict to model. - - :param data: dict, list. - :param klass: class literal. - :return: model object. - """ - - if (not klass.swagger_types and - not self.__hasattr(klass, 'get_real_child_model')): - return data - - kwargs = {} - if klass.swagger_types is not None: - for attr, attr_type in six.iteritems(klass.swagger_types): - if (data is not None and - klass.attribute_map[attr] in data and - isinstance(data, (list, dict))): - value = data[klass.attribute_map[attr]] - kwargs[attr] = self.__deserialize(value, attr_type) - - instance = klass(**kwargs) - - if (isinstance(instance, dict) and - klass.swagger_types is not None and - isinstance(data, dict)): - for key, value in data.items(): - if key not in klass.swagger_types: - instance[key] = value - if self.__hasattr(instance, 'get_real_child_model'): - klass_name = instance.get_real_child_model(data) - if klass_name: - instance = self.__deserialize(data, klass_name) - return instance diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py deleted file mode 100644 index e6773bd5f1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/configuration.py +++ /dev/null @@ -1,237 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import copy -import logging -import multiprocessing -import sys -import urllib3 - -import six -from six.moves import http_client as httplib - - -class Configuration(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Ref: https://github.com/swagger-api/swagger-codegen - Do not edit the class manually. - """ - - _default = None - - def __init__(self): - """Constructor""" - if self._default: - for key in self._default.__dict__.keys(): - self.__dict__[key] = copy.copy(self._default.__dict__[key]) - return - - # Default Base url - self.host = "http://localhost" - # Temp file folder for downloading files - self.temp_folder_path = None - - # Authentication Settings - # dict to store API key(s) - self.api_key = {} - # dict to store API prefix (e.g. Bearer) - self.api_key_prefix = {} - # Username for HTTP basic authentication - self.username = "" - # Password for HTTP basic authentication - self.password = "" - - # Logging Settings - self.logger = {} - self.logger["package_logger"] = logging.getLogger("flyteadmin") - self.logger["urllib3_logger"] = logging.getLogger("urllib3") - # Log format - self.logger_format = '%(asctime)s %(levelname)s %(message)s' - # Log stream handler - self.logger_stream_handler = None - # Log file handler - self.logger_file_handler = None - # Debug file location - self.logger_file = None - # Debug switch - self.debug = False - - # SSL/TLS verification - # Set this to false to skip verifying SSL certificate when calling API - # from https server. - self.verify_ssl = True - # Set this to customize the certificate file to verify the peer. - self.ssl_ca_cert = None - # client certificate file - self.cert_file = None - # client key file - self.key_file = None - # Set this to True/False to enable/disable SSL hostname verification. - self.assert_hostname = None - - # urllib3 connection pool's maximum number of connections saved - # per pool. urllib3 uses 1 connection as default value, but this is - # not the best value when you are making a lot of possibly parallel - # requests to the same host, which is often the case here. - # cpu_count * 5 is used as default value to increase performance. - self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 - - # Proxy URL - self.proxy = None - # Safe chars for path_param - self.safe_chars_for_path_param = '' - - @classmethod - def set_default(cls, default): - cls._default = default - - @property - def logger_file(self): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - return self.__logger_file - - @logger_file.setter - def logger_file(self, value): - """The logger file. - - If the logger_file is None, then add stream handler and remove file - handler. Otherwise, add file handler and remove stream handler. - - :param value: The logger_file path. - :type: str - """ - self.__logger_file = value - if self.__logger_file: - # If set logging file, - # then add file handler and remove stream handler. - self.logger_file_handler = logging.FileHandler(self.__logger_file) - self.logger_file_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_file_handler) - if self.logger_stream_handler: - logger.removeHandler(self.logger_stream_handler) - else: - # If not set logging file, - # then add stream handler and remove file handler. - self.logger_stream_handler = logging.StreamHandler() - self.logger_stream_handler.setFormatter(self.logger_formatter) - for _, logger in six.iteritems(self.logger): - logger.addHandler(self.logger_stream_handler) - if self.logger_file_handler: - logger.removeHandler(self.logger_file_handler) - - @property - def debug(self): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - return self.__debug - - @debug.setter - def debug(self, value): - """Debug status - - :param value: The debug status, True or False. - :type: bool - """ - self.__debug = value - if self.__debug: - # if debug status is True, turn on debug logging - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.DEBUG) - # turn on httplib debug - httplib.HTTPConnection.debuglevel = 1 - else: - # if debug status is False, turn off debug logging, - # setting log level to default `logging.WARNING` - for _, logger in six.iteritems(self.logger): - logger.setLevel(logging.WARNING) - # turn off httplib debug - httplib.HTTPConnection.debuglevel = 0 - - @property - def logger_format(self): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - return self.__logger_format - - @logger_format.setter - def logger_format(self, value): - """The logger format. - - The logger_formatter will be updated when sets logger_format. - - :param value: The format string. - :type: str - """ - self.__logger_format = value - self.logger_formatter = logging.Formatter(self.__logger_format) - - def get_api_key_with_prefix(self, identifier): - """Gets API key (with prefix if set). - - :param identifier: The identifier of apiKey. - :return: The token for api key authentication. - """ - if (self.api_key.get(identifier) and - self.api_key_prefix.get(identifier)): - return self.api_key_prefix[identifier] + ' ' + self.api_key[identifier] # noqa: E501 - elif self.api_key.get(identifier): - return self.api_key[identifier] - - def get_basic_auth_token(self): - """Gets HTTP basic authentication header (string). - - :return: The token for basic HTTP authentication. - """ - return urllib3.util.make_headers( - basic_auth=self.username + ':' + self.password - ).get('authorization') - - def auth_settings(self): - """Gets Auth Settings dict for api client. - - :return: The Auth Settings information dict. - """ - return { - - } - - def to_debug_report(self): - """Gets the essential information for debugging. - - :return: The report for debugging. - """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: version not set\n"\ - "SDK Package Version: 1.0.0".\ - format(env=sys.platform, pyversion=sys.version) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py deleted file mode 100644 index f2604bcd01..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/__init__.py +++ /dev/null @@ -1,296 +0,0 @@ -# coding: utf-8 - -# flake8: noqa -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -# import models into model package -from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata -from flyteadmin.models.admin_annotations import AdminAnnotations -from flyteadmin.models.admin_auth import AdminAuth -from flyteadmin.models.admin_auth_role import AdminAuthRole -from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment -from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes -from flyteadmin.models.admin_cron_schedule import AdminCronSchedule -from flyteadmin.models.admin_description import AdminDescription -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity -from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList -from flyteadmin.models.admin_description_format import AdminDescriptionFormat -from flyteadmin.models.admin_domain import AdminDomain -from flyteadmin.models.admin_email_notification import AdminEmailNotification -from flyteadmin.models.admin_envs import AdminEnvs -from flyteadmin.models.admin_execution import AdminExecution -from flyteadmin.models.admin_execution_closure import AdminExecutionClosure -from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel -from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest -from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse -from flyteadmin.models.admin_execution_list import AdminExecutionList -from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata -from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes -from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest -from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest -from flyteadmin.models.admin_execution_spec import AdminExecutionSpec -from flyteadmin.models.admin_execution_state import AdminExecutionState -from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails -from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest -from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse -from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest -from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse -from flyteadmin.models.admin_fixed_rate import AdminFixedRate -from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit -from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs -from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse -from flyteadmin.models.admin_labels import AdminLabels -from flyteadmin.models.admin_launch_plan import AdminLaunchPlan -from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure -from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest -from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse -from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList -from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata -from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec -from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState -from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest -from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse -from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse -from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob -from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes -from flyteadmin.models.admin_named_entity import AdminNamedEntity -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier -from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList -from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList -from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata -from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState -from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest -from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse -from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure -from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest -from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse -from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse -from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList -from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData -from flyteadmin.models.admin_notification import AdminNotification -from flyteadmin.models.admin_notification_list import AdminNotificationList -from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification -from flyteadmin.models.admin_plugin_override import AdminPluginOverride -from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides -from flyteadmin.models.admin_project import AdminProject -from flyteadmin.models.admin_project_attributes import AdminProjectAttributes -from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest -from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse -from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse -from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest -from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse -from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes -from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest -from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse -from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse -from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest -from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse -from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest -from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse -from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse -from flyteadmin.models.admin_projects import AdminProjects -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig -from flyteadmin.models.admin_reason import AdminReason -from flyteadmin.models.admin_schedule import AdminSchedule -from flyteadmin.models.admin_slack_notification import AdminSlackNotification -from flyteadmin.models.admin_sort import AdminSort -from flyteadmin.models.admin_source_code import AdminSourceCode -from flyteadmin.models.admin_system_metadata import AdminSystemMetadata -from flyteadmin.models.admin_task import AdminTask -from flyteadmin.models.admin_task_closure import AdminTaskClosure -from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure -from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest -from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse -from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse -from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList -from flyteadmin.models.admin_task_list import AdminTaskList -from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes -from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec -from flyteadmin.models.admin_task_spec import AdminTaskSpec -from flyteadmin.models.admin_url_blob import AdminUrlBlob -from flyteadmin.models.admin_version import AdminVersion -from flyteadmin.models.admin_workflow import AdminWorkflow -from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes -from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest -from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse -from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse -from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest -from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse -from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure -from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest -from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse -from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig -from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest -from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse -from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse -from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse -from flyteadmin.models.admin_workflow_list import AdminWorkflowList -from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec -from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality -from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus -from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator -from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator -from flyteadmin.models.connection_set_id_list import ConnectionSetIdList -from flyteadmin.models.container_architecture import ContainerArchitecture -from flyteadmin.models.core_alias import CoreAlias -from flyteadmin.models.core_approve_condition import CoreApproveCondition -from flyteadmin.models.core_array_node import CoreArrayNode -from flyteadmin.models.core_artifact_binding_data import CoreArtifactBindingData -from flyteadmin.models.core_artifact_id import CoreArtifactID -from flyteadmin.models.core_artifact_key import CoreArtifactKey -from flyteadmin.models.core_artifact_query import CoreArtifactQuery -from flyteadmin.models.core_artifact_tag import CoreArtifactTag -from flyteadmin.models.core_binary import CoreBinary -from flyteadmin.models.core_binding import CoreBinding -from flyteadmin.models.core_binding_data import CoreBindingData -from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection -from flyteadmin.models.core_binding_data_map import CoreBindingDataMap -from flyteadmin.models.core_blob import CoreBlob -from flyteadmin.models.core_blob_metadata import CoreBlobMetadata -from flyteadmin.models.core_blob_type import CoreBlobType -from flyteadmin.models.core_boolean_expression import CoreBooleanExpression -from flyteadmin.models.core_branch_node import CoreBranchNode -from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus -from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata -from flyteadmin.models.core_comparison_expression import CoreComparisonExpression -from flyteadmin.models.core_compiled_task import CoreCompiledTask -from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure -from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression -from flyteadmin.models.core_connection_set import CoreConnectionSet -from flyteadmin.models.core_container import CoreContainer -from flyteadmin.models.core_container_port import CoreContainerPort -from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig -from flyteadmin.models.core_enum_type import CoreEnumType -from flyteadmin.models.core_error import CoreError -from flyteadmin.models.core_execution_error import CoreExecutionError -from flyteadmin.models.core_extended_resources import CoreExtendedResources -from flyteadmin.models.core_gpu_accelerator import CoreGPUAccelerator -from flyteadmin.models.core_gate_node import CoreGateNode -from flyteadmin.models.core_io_strategy import CoreIOStrategy -from flyteadmin.models.core_identifier import CoreIdentifier -from flyteadmin.models.core_identity import CoreIdentity -from flyteadmin.models.core_if_block import CoreIfBlock -from flyteadmin.models.core_if_else_block import CoreIfElseBlock -from flyteadmin.models.core_input_binding_data import CoreInputBindingData -from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata -from flyteadmin.models.core_k8s_pod import CoreK8sPod -from flyteadmin.models.core_key_value_pair import CoreKeyValuePair -from flyteadmin.models.core_label_value import CoreLabelValue -from flyteadmin.models.core_literal import CoreLiteral -from flyteadmin.models.core_literal_collection import CoreLiteralCollection -from flyteadmin.models.core_literal_map import CoreLiteralMap -from flyteadmin.models.core_literal_type import CoreLiteralType -from flyteadmin.models.core_node import CoreNode -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier -from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase -from flyteadmin.models.core_node_metadata import CoreNodeMetadata -from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client -from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest -from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType -from flyteadmin.models.core_operand import CoreOperand -from flyteadmin.models.core_output_reference import CoreOutputReference -from flyteadmin.models.core_parameter import CoreParameter -from flyteadmin.models.core_parameter_map import CoreParameterMap -from flyteadmin.models.core_partitions import CorePartitions -from flyteadmin.models.core_primitive import CorePrimitive -from flyteadmin.models.core_promise_attribute import CorePromiseAttribute -from flyteadmin.models.core_quality_of_service import CoreQualityOfService -from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec -from flyteadmin.models.core_resource_type import CoreResourceType -from flyteadmin.models.core_resources import CoreResources -from flyteadmin.models.core_retry_strategy import CoreRetryStrategy -from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata -from flyteadmin.models.core_scalar import CoreScalar -from flyteadmin.models.core_schema import CoreSchema -from flyteadmin.models.core_schema_type import CoreSchemaType -from flyteadmin.models.core_secret import CoreSecret -from flyteadmin.models.core_security_context import CoreSecurityContext -from flyteadmin.models.core_signal_condition import CoreSignalCondition -from flyteadmin.models.core_simple_type import CoreSimpleType -from flyteadmin.models.core_sleep_condition import CoreSleepCondition -from flyteadmin.models.core_span import CoreSpan -from flyteadmin.models.core_sql import CoreSql -from flyteadmin.models.core_structured_dataset import CoreStructuredDataset -from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata -from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase -from flyteadmin.models.core_task_log import CoreTaskLog -from flyteadmin.models.core_task_metadata import CoreTaskMetadata -from flyteadmin.models.core_task_node import CoreTaskNode -from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides -from flyteadmin.models.core_task_template import CoreTaskTemplate -from flyteadmin.models.core_type_annotation import CoreTypeAnnotation -from flyteadmin.models.core_type_structure import CoreTypeStructure -from flyteadmin.models.core_typed_interface import CoreTypedInterface -from flyteadmin.models.core_union import CoreUnion -from flyteadmin.models.core_union_info import CoreUnionInfo -from flyteadmin.models.core_union_type import CoreUnionType -from flyteadmin.models.core_variable import CoreVariable -from flyteadmin.models.core_variable_map import CoreVariableMap -from flyteadmin.models.core_void import CoreVoid -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase -from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata -from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults -from flyteadmin.models.core_workflow_node import CoreWorkflowNode -from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate -from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat -from flyteadmin.models.event_event_reason import EventEventReason -from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo -from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent -from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata -from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata -from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo -from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent -from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent -from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind -from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode -from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata -from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution -from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest -from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse -from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution -from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata -from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata -from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata -from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata -from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata -from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata -from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode -from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode -from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior -from flyteadmin.models.project_project_state import ProjectProjectState -from flyteadmin.models.protobuf_any import ProtobufAny -from flyteadmin.models.protobuf_list_value import ProtobufListValue -from flyteadmin.models.protobuf_null_value import ProtobufNullValue -from flyteadmin.models.protobuf_struct import ProtobufStruct -from flyteadmin.models.protobuf_value import ProtobufValue -from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier -from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry -from flyteadmin.models.resources_resource_name import ResourcesResourceName -from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType -from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType -from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn -from flyteadmin.models.secret_mount_type import SecretMountType -from flyteadmin.models.sort_direction import SortDirection -from flyteadmin.models.sql_dialect import SqlDialect -from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn -from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass -from flyteadmin.models.task_log_message_format import TaskLogMessageFormat -from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py deleted file mode 100644 index 406ea90476..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_abort_metadata.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminAbortMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cause': 'str', - 'principal': 'str' - } - - attribute_map = { - 'cause': 'cause', - 'principal': 'principal' - } - - def __init__(self, cause=None, principal=None): # noqa: E501 - """AdminAbortMetadata - a model defined in Swagger""" # noqa: E501 - - self._cause = None - self._principal = None - self.discriminator = None - - if cause is not None: - self.cause = cause - if principal is not None: - self.principal = principal - - @property - def cause(self): - """Gets the cause of this AdminAbortMetadata. # noqa: E501 - - In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 - - :return: The cause of this AdminAbortMetadata. # noqa: E501 - :rtype: str - """ - return self._cause - - @cause.setter - def cause(self, cause): - """Sets the cause of this AdminAbortMetadata. - - In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 - - :param cause: The cause of this AdminAbortMetadata. # noqa: E501 - :type: str - """ - - self._cause = cause - - @property - def principal(self): - """Gets the principal of this AdminAbortMetadata. # noqa: E501 - - - :return: The principal of this AdminAbortMetadata. # noqa: E501 - :rtype: str - """ - return self._principal - - @principal.setter - def principal(self, principal): - """Sets the principal of this AdminAbortMetadata. - - - :param principal: The principal of this AdminAbortMetadata. # noqa: E501 - :type: str - """ - - self._principal = principal - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminAbortMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminAbortMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py deleted file mode 100644 index c0aeceade3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_annotations.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminAnnotations(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'dict(str, str)' - } - - attribute_map = { - 'values': 'values' - } - - def __init__(self, values=None): # noqa: E501 - """AdminAnnotations - a model defined in Swagger""" # noqa: E501 - - self._values = None - self.discriminator = None - - if values is not None: - self.values = values - - @property - def values(self): - """Gets the values of this AdminAnnotations. # noqa: E501 - - Map of custom annotations to be applied to the execution resource. # noqa: E501 - - :return: The values of this AdminAnnotations. # noqa: E501 - :rtype: dict(str, str) - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this AdminAnnotations. - - Map of custom annotations to be applied to the execution resource. # noqa: E501 - - :param values: The values of this AdminAnnotations. # noqa: E501 - :type: dict(str, str) - """ - - self._values = values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminAnnotations, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminAnnotations): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py deleted file mode 100644 index a994ca210e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminAuth(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'assumable_iam_role': 'str', - 'kubernetes_service_account': 'str' - } - - attribute_map = { - 'assumable_iam_role': 'assumable_iam_role', - 'kubernetes_service_account': 'kubernetes_service_account' - } - - def __init__(self, assumable_iam_role=None, kubernetes_service_account=None): # noqa: E501 - """AdminAuth - a model defined in Swagger""" # noqa: E501 - - self._assumable_iam_role = None - self._kubernetes_service_account = None - self.discriminator = None - - if assumable_iam_role is not None: - self.assumable_iam_role = assumable_iam_role - if kubernetes_service_account is not None: - self.kubernetes_service_account = kubernetes_service_account - - @property - def assumable_iam_role(self): - """Gets the assumable_iam_role of this AdminAuth. # noqa: E501 - - Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :return: The assumable_iam_role of this AdminAuth. # noqa: E501 - :rtype: str - """ - return self._assumable_iam_role - - @assumable_iam_role.setter - def assumable_iam_role(self, assumable_iam_role): - """Sets the assumable_iam_role of this AdminAuth. - - Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :param assumable_iam_role: The assumable_iam_role of this AdminAuth. # noqa: E501 - :type: str - """ - - self._assumable_iam_role = assumable_iam_role - - @property - def kubernetes_service_account(self): - """Gets the kubernetes_service_account of this AdminAuth. # noqa: E501 - - Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :return: The kubernetes_service_account of this AdminAuth. # noqa: E501 - :rtype: str - """ - return self._kubernetes_service_account - - @kubernetes_service_account.setter - def kubernetes_service_account(self, kubernetes_service_account): - """Sets the kubernetes_service_account of this AdminAuth. - - Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :param kubernetes_service_account: The kubernetes_service_account of this AdminAuth. # noqa: E501 - :type: str - """ - - self._kubernetes_service_account = kubernetes_service_account - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminAuth, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminAuth): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py deleted file mode 100644 index 2cfde51be6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_auth_role.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminAuthRole(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'assumable_iam_role': 'str', - 'kubernetes_service_account': 'str' - } - - attribute_map = { - 'assumable_iam_role': 'assumable_iam_role', - 'kubernetes_service_account': 'kubernetes_service_account' - } - - def __init__(self, assumable_iam_role=None, kubernetes_service_account=None): # noqa: E501 - """AdminAuthRole - a model defined in Swagger""" # noqa: E501 - - self._assumable_iam_role = None - self._kubernetes_service_account = None - self.discriminator = None - - if assumable_iam_role is not None: - self.assumable_iam_role = assumable_iam_role - if kubernetes_service_account is not None: - self.kubernetes_service_account = kubernetes_service_account - - @property - def assumable_iam_role(self): - """Gets the assumable_iam_role of this AdminAuthRole. # noqa: E501 - - Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :return: The assumable_iam_role of this AdminAuthRole. # noqa: E501 - :rtype: str - """ - return self._assumable_iam_role - - @assumable_iam_role.setter - def assumable_iam_role(self, assumable_iam_role): - """Sets the assumable_iam_role of this AdminAuthRole. - - Defines an optional iam role which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :param assumable_iam_role: The assumable_iam_role of this AdminAuthRole. # noqa: E501 - :type: str - """ - - self._assumable_iam_role = assumable_iam_role - - @property - def kubernetes_service_account(self): - """Gets the kubernetes_service_account of this AdminAuthRole. # noqa: E501 - - Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :return: The kubernetes_service_account of this AdminAuthRole. # noqa: E501 - :rtype: str - """ - return self._kubernetes_service_account - - @kubernetes_service_account.setter - def kubernetes_service_account(self, kubernetes_service_account): - """Sets the kubernetes_service_account of this AdminAuthRole. - - Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. # noqa: E501 - - :param kubernetes_service_account: The kubernetes_service_account of this AdminAuthRole. # noqa: E501 - :type: str - """ - - self._kubernetes_service_account = kubernetes_service_account - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminAuthRole, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminAuthRole): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py deleted file mode 100644 index 15f5fd96f0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_assignment.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminClusterAssignment(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cluster_pool_name': 'str' - } - - attribute_map = { - 'cluster_pool_name': 'cluster_pool_name' - } - - def __init__(self, cluster_pool_name=None): # noqa: E501 - """AdminClusterAssignment - a model defined in Swagger""" # noqa: E501 - - self._cluster_pool_name = None - self.discriminator = None - - if cluster_pool_name is not None: - self.cluster_pool_name = cluster_pool_name - - @property - def cluster_pool_name(self): - """Gets the cluster_pool_name of this AdminClusterAssignment. # noqa: E501 - - - :return: The cluster_pool_name of this AdminClusterAssignment. # noqa: E501 - :rtype: str - """ - return self._cluster_pool_name - - @cluster_pool_name.setter - def cluster_pool_name(self, cluster_pool_name): - """Sets the cluster_pool_name of this AdminClusterAssignment. - - - :param cluster_pool_name: The cluster_pool_name of this AdminClusterAssignment. # noqa: E501 - :type: str - """ - - self._cluster_pool_name = cluster_pool_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminClusterAssignment, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminClusterAssignment): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py deleted file mode 100644 index 8b9627b37a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cluster_resource_attributes.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminClusterResourceAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'dict(str, str)' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminClusterResourceAttributes - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminClusterResourceAttributes. # noqa: E501 - - Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. # noqa: E501 - - :return: The attributes of this AdminClusterResourceAttributes. # noqa: E501 - :rtype: dict(str, str) - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminClusterResourceAttributes. - - Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). Map keys are the *case-sensitive* names of variables in templatized resource files. Map values should be the custom values which get substituted during resource creation. # noqa: E501 - - :param attributes: The attributes of this AdminClusterResourceAttributes. # noqa: E501 - :type: dict(str, str) - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminClusterResourceAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminClusterResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py deleted file mode 100644 index 7f86dcaafb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_cron_schedule.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminCronSchedule(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'schedule': 'str', - 'offset': 'str' - } - - attribute_map = { - 'schedule': 'schedule', - 'offset': 'offset' - } - - def __init__(self, schedule=None, offset=None): # noqa: E501 - """AdminCronSchedule - a model defined in Swagger""" # noqa: E501 - - self._schedule = None - self._offset = None - self.discriminator = None - - if schedule is not None: - self.schedule = schedule - if offset is not None: - self.offset = offset - - @property - def schedule(self): - """Gets the schedule of this AdminCronSchedule. # noqa: E501 - - - :return: The schedule of this AdminCronSchedule. # noqa: E501 - :rtype: str - """ - return self._schedule - - @schedule.setter - def schedule(self, schedule): - """Sets the schedule of this AdminCronSchedule. - - - :param schedule: The schedule of this AdminCronSchedule. # noqa: E501 - :type: str - """ - - self._schedule = schedule - - @property - def offset(self): - """Gets the offset of this AdminCronSchedule. # noqa: E501 - - - :return: The offset of this AdminCronSchedule. # noqa: E501 - :rtype: str - """ - return self._offset - - @offset.setter - def offset(self, offset): - """Sets the offset of this AdminCronSchedule. - - - :param offset: The offset of this AdminCronSchedule. # noqa: E501 - :type: str - """ - - self._offset = offset - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminCronSchedule, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminCronSchedule): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py deleted file mode 100644 index d6188543b7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_description_format import AdminDescriptionFormat # noqa: F401,E501 - - -class AdminDescription(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'str', - 'uri': 'str', - 'format': 'AdminDescriptionFormat', - 'icon_link': 'str' - } - - attribute_map = { - 'value': 'value', - 'uri': 'uri', - 'format': 'format', - 'icon_link': 'icon_link' - } - - def __init__(self, value=None, uri=None, format=None, icon_link=None): # noqa: E501 - """AdminDescription - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._uri = None - self._format = None - self._icon_link = None - self.discriminator = None - - if value is not None: - self.value = value - if uri is not None: - self.uri = uri - if format is not None: - self.format = format - if icon_link is not None: - self.icon_link = icon_link - - @property - def value(self): - """Gets the value of this AdminDescription. # noqa: E501 - - - :return: The value of this AdminDescription. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this AdminDescription. - - - :param value: The value of this AdminDescription. # noqa: E501 - :type: str - """ - - self._value = value - - @property - def uri(self): - """Gets the uri of this AdminDescription. # noqa: E501 - - - :return: The uri of this AdminDescription. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this AdminDescription. - - - :param uri: The uri of this AdminDescription. # noqa: E501 - :type: str - """ - - self._uri = uri - - @property - def format(self): - """Gets the format of this AdminDescription. # noqa: E501 - - - :return: The format of this AdminDescription. # noqa: E501 - :rtype: AdminDescriptionFormat - """ - return self._format - - @format.setter - def format(self, format): - """Sets the format of this AdminDescription. - - - :param format: The format of this AdminDescription. # noqa: E501 - :type: AdminDescriptionFormat - """ - - self._format = format - - @property - def icon_link(self): - """Gets the icon_link of this AdminDescription. # noqa: E501 - - - :return: The icon_link of this AdminDescription. # noqa: E501 - :rtype: str - """ - return self._icon_link - - @icon_link.setter - def icon_link(self, icon_link): - """Sets the icon_link of this AdminDescription. - - - :param icon_link: The icon_link of this AdminDescription. # noqa: E501 - :type: str - """ - - self._icon_link = icon_link - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminDescription, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminDescription): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py deleted file mode 100644 index 87438a1a93..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity.py +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_description import AdminDescription # noqa: F401,E501 -from flyteadmin.models.admin_source_code import AdminSourceCode # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminDescriptionEntity(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'short_description': 'str', - 'long_description': 'AdminDescription', - 'source_code': 'AdminSourceCode', - 'tags': 'list[str]' - } - - attribute_map = { - 'id': 'id', - 'short_description': 'short_description', - 'long_description': 'long_description', - 'source_code': 'source_code', - 'tags': 'tags' - } - - def __init__(self, id=None, short_description=None, long_description=None, source_code=None, tags=None): # noqa: E501 - """AdminDescriptionEntity - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._short_description = None - self._long_description = None - self._source_code = None - self._tags = None - self.discriminator = None - - if id is not None: - self.id = id - if short_description is not None: - self.short_description = short_description - if long_description is not None: - self.long_description = long_description - if source_code is not None: - self.source_code = source_code - if tags is not None: - self.tags = tags - - @property - def id(self): - """Gets the id of this AdminDescriptionEntity. # noqa: E501 - - id represents the unique identifier of the description entity. # noqa: E501 - - :return: The id of this AdminDescriptionEntity. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminDescriptionEntity. - - id represents the unique identifier of the description entity. # noqa: E501 - - :param id: The id of this AdminDescriptionEntity. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def short_description(self): - """Gets the short_description of this AdminDescriptionEntity. # noqa: E501 - - One-liner overview of the entity. # noqa: E501 - - :return: The short_description of this AdminDescriptionEntity. # noqa: E501 - :rtype: str - """ - return self._short_description - - @short_description.setter - def short_description(self, short_description): - """Sets the short_description of this AdminDescriptionEntity. - - One-liner overview of the entity. # noqa: E501 - - :param short_description: The short_description of this AdminDescriptionEntity. # noqa: E501 - :type: str - """ - - self._short_description = short_description - - @property - def long_description(self): - """Gets the long_description of this AdminDescriptionEntity. # noqa: E501 - - Full user description with formatting preserved. # noqa: E501 - - :return: The long_description of this AdminDescriptionEntity. # noqa: E501 - :rtype: AdminDescription - """ - return self._long_description - - @long_description.setter - def long_description(self, long_description): - """Sets the long_description of this AdminDescriptionEntity. - - Full user description with formatting preserved. # noqa: E501 - - :param long_description: The long_description of this AdminDescriptionEntity. # noqa: E501 - :type: AdminDescription - """ - - self._long_description = long_description - - @property - def source_code(self): - """Gets the source_code of this AdminDescriptionEntity. # noqa: E501 - - Optional link to source code used to define this entity. # noqa: E501 - - :return: The source_code of this AdminDescriptionEntity. # noqa: E501 - :rtype: AdminSourceCode - """ - return self._source_code - - @source_code.setter - def source_code(self, source_code): - """Sets the source_code of this AdminDescriptionEntity. - - Optional link to source code used to define this entity. # noqa: E501 - - :param source_code: The source_code of this AdminDescriptionEntity. # noqa: E501 - :type: AdminSourceCode - """ - - self._source_code = source_code - - @property - def tags(self): - """Gets the tags of this AdminDescriptionEntity. # noqa: E501 - - User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. # noqa: E501 - - :return: The tags of this AdminDescriptionEntity. # noqa: E501 - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this AdminDescriptionEntity. - - User-specified tags. These are arbitrary and can be used for searching filtering and discovering tasks. # noqa: E501 - - :param tags: The tags of this AdminDescriptionEntity. # noqa: E501 - :type: list[str] - """ - - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminDescriptionEntity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminDescriptionEntity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py deleted file mode 100644 index 60ba9535e4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_entity_list.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 - - -class AdminDescriptionEntityList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'description_entities': 'list[AdminDescriptionEntity]', - 'token': 'str' - } - - attribute_map = { - 'description_entities': 'descriptionEntities', - 'token': 'token' - } - - def __init__(self, description_entities=None, token=None): # noqa: E501 - """AdminDescriptionEntityList - a model defined in Swagger""" # noqa: E501 - - self._description_entities = None - self._token = None - self.discriminator = None - - if description_entities is not None: - self.description_entities = description_entities - if token is not None: - self.token = token - - @property - def description_entities(self): - """Gets the description_entities of this AdminDescriptionEntityList. # noqa: E501 - - A list of DescriptionEntities returned based on the request. # noqa: E501 - - :return: The description_entities of this AdminDescriptionEntityList. # noqa: E501 - :rtype: list[AdminDescriptionEntity] - """ - return self._description_entities - - @description_entities.setter - def description_entities(self, description_entities): - """Sets the description_entities of this AdminDescriptionEntityList. - - A list of DescriptionEntities returned based on the request. # noqa: E501 - - :param description_entities: The description_entities of this AdminDescriptionEntityList. # noqa: E501 - :type: list[AdminDescriptionEntity] - """ - - self._description_entities = description_entities - - @property - def token(self): - """Gets the token of this AdminDescriptionEntityList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminDescriptionEntityList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminDescriptionEntityList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminDescriptionEntityList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminDescriptionEntityList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminDescriptionEntityList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py deleted file mode 100644 index 882ff02fe7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_description_format.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminDescriptionFormat(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNKNOWN = "DESCRIPTION_FORMAT_UNKNOWN" - MARKDOWN = "DESCRIPTION_FORMAT_MARKDOWN" - HTML = "DESCRIPTION_FORMAT_HTML" - RST = "DESCRIPTION_FORMAT_RST" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminDescriptionFormat - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminDescriptionFormat, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminDescriptionFormat): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py deleted file mode 100644 index 9c500ee740..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_domain.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminDomain(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name' - } - - def __init__(self, id=None, name=None): # noqa: E501 - """AdminDomain - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - - @property - def id(self): - """Gets the id of this AdminDomain. # noqa: E501 - - Globally unique domain name. # noqa: E501 - - :return: The id of this AdminDomain. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminDomain. - - Globally unique domain name. # noqa: E501 - - :param id: The id of this AdminDomain. # noqa: E501 - :type: str - """ - - self._id = id - - @property - def name(self): - """Gets the name of this AdminDomain. # noqa: E501 - - Display name. # noqa: E501 - - :return: The name of this AdminDomain. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminDomain. - - Display name. # noqa: E501 - - :param name: The name of this AdminDomain. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminDomain, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminDomain): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py deleted file mode 100644 index f97f626653..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_email_notification.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminEmailNotification(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'recipients_email': 'list[str]' - } - - attribute_map = { - 'recipients_email': 'recipients_email' - } - - def __init__(self, recipients_email=None): # noqa: E501 - """AdminEmailNotification - a model defined in Swagger""" # noqa: E501 - - self._recipients_email = None - self.discriminator = None - - if recipients_email is not None: - self.recipients_email = recipients_email - - @property - def recipients_email(self): - """Gets the recipients_email of this AdminEmailNotification. # noqa: E501 - - - :return: The recipients_email of this AdminEmailNotification. # noqa: E501 - :rtype: list[str] - """ - return self._recipients_email - - @recipients_email.setter - def recipients_email(self, recipients_email): - """Sets the recipients_email of this AdminEmailNotification. - - - :param recipients_email: The recipients_email of this AdminEmailNotification. # noqa: E501 - :type: list[str] - """ - - self._recipients_email = recipients_email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminEmailNotification, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminEmailNotification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py deleted file mode 100644 index c4531a9b68..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_envs.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: F401,E501 - - -class AdminEnvs(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'list[CoreKeyValuePair]' - } - - attribute_map = { - 'values': 'values' - } - - def __init__(self, values=None): # noqa: E501 - """AdminEnvs - a model defined in Swagger""" # noqa: E501 - - self._values = None - self.discriminator = None - - if values is not None: - self.values = values - - @property - def values(self): - """Gets the values of this AdminEnvs. # noqa: E501 - - Map of custom environment variables to be applied to the execution resource. # noqa: E501 - - :return: The values of this AdminEnvs. # noqa: E501 - :rtype: list[CoreKeyValuePair] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this AdminEnvs. - - Map of custom environment variables to be applied to the execution resource. # noqa: E501 - - :param values: The values of this AdminEnvs. # noqa: E501 - :type: list[CoreKeyValuePair] - """ - - self._values = values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminEnvs, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminEnvs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py deleted file mode 100644 index 1de4f19d97..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: F401,E501 -from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecution(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier', - 'spec': 'AdminExecutionSpec', - 'closure': 'AdminExecutionClosure' - } - - attribute_map = { - 'id': 'id', - 'spec': 'spec', - 'closure': 'closure' - } - - def __init__(self, id=None, spec=None, closure=None): # noqa: E501 - """AdminExecution - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._spec = None - self._closure = None - self.discriminator = None - - if id is not None: - self.id = id - if spec is not None: - self.spec = spec - if closure is not None: - self.closure = closure - - @property - def id(self): - """Gets the id of this AdminExecution. # noqa: E501 - - Unique identifier of the workflow execution. # noqa: E501 - - :return: The id of this AdminExecution. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecution. - - Unique identifier of the workflow execution. # noqa: E501 - - :param id: The id of this AdminExecution. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - @property - def spec(self): - """Gets the spec of this AdminExecution. # noqa: E501 - - User-provided configuration and inputs for launching the execution. # noqa: E501 - - :return: The spec of this AdminExecution. # noqa: E501 - :rtype: AdminExecutionSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this AdminExecution. - - User-provided configuration and inputs for launching the execution. # noqa: E501 - - :param spec: The spec of this AdminExecution. # noqa: E501 - :type: AdminExecutionSpec - """ - - self._spec = spec - - @property - def closure(self): - """Gets the closure of this AdminExecution. # noqa: E501 - - Execution results. # noqa: E501 - - :return: The closure of this AdminExecution. # noqa: E501 - :rtype: AdminExecutionClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this AdminExecution. - - Execution results. # noqa: E501 - - :param closure: The closure of this AdminExecution. # noqa: E501 - :type: AdminExecutionClosure - """ - - self._closure = closure - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecution, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecution): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py deleted file mode 100644 index a08f3ca1d8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_closure.py +++ /dev/null @@ -1,486 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata # noqa: F401,E501 -from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails # noqa: F401,E501 -from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: F401,E501 -from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 - - -class AdminExecutionClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'outputs': 'AdminLiteralMapBlob', - 'error': 'CoreExecutionError', - 'abort_cause': 'str', - 'abort_metadata': 'AdminAbortMetadata', - 'output_data': 'CoreLiteralMap', - 'computed_inputs': 'CoreLiteralMap', - 'phase': 'CoreWorkflowExecutionPhase', - 'started_at': 'datetime', - 'duration': 'str', - 'created_at': 'datetime', - 'updated_at': 'datetime', - 'notifications': 'list[AdminNotification]', - 'workflow_id': 'CoreIdentifier', - 'state_change_details': 'AdminExecutionStateChangeDetails' - } - - attribute_map = { - 'outputs': 'outputs', - 'error': 'error', - 'abort_cause': 'abort_cause', - 'abort_metadata': 'abort_metadata', - 'output_data': 'output_data', - 'computed_inputs': 'computed_inputs', - 'phase': 'phase', - 'started_at': 'started_at', - 'duration': 'duration', - 'created_at': 'created_at', - 'updated_at': 'updated_at', - 'notifications': 'notifications', - 'workflow_id': 'workflow_id', - 'state_change_details': 'state_change_details' - } - - def __init__(self, outputs=None, error=None, abort_cause=None, abort_metadata=None, output_data=None, computed_inputs=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, notifications=None, workflow_id=None, state_change_details=None): # noqa: E501 - """AdminExecutionClosure - a model defined in Swagger""" # noqa: E501 - - self._outputs = None - self._error = None - self._abort_cause = None - self._abort_metadata = None - self._output_data = None - self._computed_inputs = None - self._phase = None - self._started_at = None - self._duration = None - self._created_at = None - self._updated_at = None - self._notifications = None - self._workflow_id = None - self._state_change_details = None - self.discriminator = None - - if outputs is not None: - self.outputs = outputs - if error is not None: - self.error = error - if abort_cause is not None: - self.abort_cause = abort_cause - if abort_metadata is not None: - self.abort_metadata = abort_metadata - if output_data is not None: - self.output_data = output_data - if computed_inputs is not None: - self.computed_inputs = computed_inputs - if phase is not None: - self.phase = phase - if started_at is not None: - self.started_at = started_at - if duration is not None: - self.duration = duration - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - if notifications is not None: - self.notifications = notifications - if workflow_id is not None: - self.workflow_id = workflow_id - if state_change_details is not None: - self.state_change_details = state_change_details - - @property - def outputs(self): - """Gets the outputs of this AdminExecutionClosure. # noqa: E501 - - Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 - - :return: The outputs of this AdminExecutionClosure. # noqa: E501 - :rtype: AdminLiteralMapBlob - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this AdminExecutionClosure. - - Output URI in the case of a successful execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 - - :param outputs: The outputs of this AdminExecutionClosure. # noqa: E501 - :type: AdminLiteralMapBlob - """ - - self._outputs = outputs - - @property - def error(self): - """Gets the error of this AdminExecutionClosure. # noqa: E501 - - Error information in the case of a failed execution. # noqa: E501 - - :return: The error of this AdminExecutionClosure. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this AdminExecutionClosure. - - Error information in the case of a failed execution. # noqa: E501 - - :param error: The error of this AdminExecutionClosure. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def abort_cause(self): - """Gets the abort_cause of this AdminExecutionClosure. # noqa: E501 - - In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 - - :return: The abort_cause of this AdminExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._abort_cause - - @abort_cause.setter - def abort_cause(self, abort_cause): - """Sets the abort_cause of this AdminExecutionClosure. - - In the case of a user-specified abort, this will pass along the user-supplied cause. # noqa: E501 - - :param abort_cause: The abort_cause of this AdminExecutionClosure. # noqa: E501 - :type: str - """ - - self._abort_cause = abort_cause - - @property - def abort_metadata(self): - """Gets the abort_metadata of this AdminExecutionClosure. # noqa: E501 - - In the case of a user-specified abort, this will pass along the user and their supplied cause. # noqa: E501 - - :return: The abort_metadata of this AdminExecutionClosure. # noqa: E501 - :rtype: AdminAbortMetadata - """ - return self._abort_metadata - - @abort_metadata.setter - def abort_metadata(self, abort_metadata): - """Sets the abort_metadata of this AdminExecutionClosure. - - In the case of a user-specified abort, this will pass along the user and their supplied cause. # noqa: E501 - - :param abort_metadata: The abort_metadata of this AdminExecutionClosure. # noqa: E501 - :type: AdminAbortMetadata - """ - - self._abort_metadata = abort_metadata - - @property - def output_data(self): - """Gets the output_data of this AdminExecutionClosure. # noqa: E501 - - Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 - - :return: The output_data of this AdminExecutionClosure. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this AdminExecutionClosure. - - Raw output data produced by this execution. DEPRECATED. Use GetExecutionData to fetch output data instead. # noqa: E501 - - :param output_data: The output_data of this AdminExecutionClosure. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - @property - def computed_inputs(self): - """Gets the computed_inputs of this AdminExecutionClosure. # noqa: E501 - - - :return: The computed_inputs of this AdminExecutionClosure. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._computed_inputs - - @computed_inputs.setter - def computed_inputs(self, computed_inputs): - """Sets the computed_inputs of this AdminExecutionClosure. - - - :param computed_inputs: The computed_inputs of this AdminExecutionClosure. # noqa: E501 - :type: CoreLiteralMap - """ - - self._computed_inputs = computed_inputs - - @property - def phase(self): - """Gets the phase of this AdminExecutionClosure. # noqa: E501 - - Most recent recorded phase for the execution. # noqa: E501 - - :return: The phase of this AdminExecutionClosure. # noqa: E501 - :rtype: CoreWorkflowExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this AdminExecutionClosure. - - Most recent recorded phase for the execution. # noqa: E501 - - :param phase: The phase of this AdminExecutionClosure. # noqa: E501 - :type: CoreWorkflowExecutionPhase - """ - - self._phase = phase - - @property - def started_at(self): - """Gets the started_at of this AdminExecutionClosure. # noqa: E501 - - Reported time at which the execution began running. # noqa: E501 - - :return: The started_at of this AdminExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._started_at - - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this AdminExecutionClosure. - - Reported time at which the execution began running. # noqa: E501 - - :param started_at: The started_at of this AdminExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._started_at = started_at - - @property - def duration(self): - """Gets the duration of this AdminExecutionClosure. # noqa: E501 - - The amount of time the execution spent running. # noqa: E501 - - :return: The duration of this AdminExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this AdminExecutionClosure. - - The amount of time the execution spent running. # noqa: E501 - - :param duration: The duration of this AdminExecutionClosure. # noqa: E501 - :type: str - """ - - self._duration = duration - - @property - def created_at(self): - """Gets the created_at of this AdminExecutionClosure. # noqa: E501 - - Reported time at which the execution was created. # noqa: E501 - - :return: The created_at of this AdminExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminExecutionClosure. - - Reported time at which the execution was created. # noqa: E501 - - :param created_at: The created_at of this AdminExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this AdminExecutionClosure. # noqa: E501 - - Reported time at which the execution was last updated. # noqa: E501 - - :return: The updated_at of this AdminExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this AdminExecutionClosure. - - Reported time at which the execution was last updated. # noqa: E501 - - :param updated_at: The updated_at of this AdminExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._updated_at = updated_at - - @property - def notifications(self): - """Gets the notifications of this AdminExecutionClosure. # noqa: E501 - - The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 - - :return: The notifications of this AdminExecutionClosure. # noqa: E501 - :rtype: list[AdminNotification] - """ - return self._notifications - - @notifications.setter - def notifications(self, notifications): - """Sets the notifications of this AdminExecutionClosure. - - The notification settings to use after merging the CreateExecutionRequest and the launch plan notification settings. An execution launched with notifications will always prefer that definition to notifications defined statically in a launch plan. # noqa: E501 - - :param notifications: The notifications of this AdminExecutionClosure. # noqa: E501 - :type: list[AdminNotification] - """ - - self._notifications = notifications - - @property - def workflow_id(self): - """Gets the workflow_id of this AdminExecutionClosure. # noqa: E501 - - Identifies the workflow definition for this execution. # noqa: E501 - - :return: The workflow_id of this AdminExecutionClosure. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._workflow_id - - @workflow_id.setter - def workflow_id(self, workflow_id): - """Sets the workflow_id of this AdminExecutionClosure. - - Identifies the workflow definition for this execution. # noqa: E501 - - :param workflow_id: The workflow_id of this AdminExecutionClosure. # noqa: E501 - :type: CoreIdentifier - """ - - self._workflow_id = workflow_id - - @property - def state_change_details(self): - """Gets the state_change_details of this AdminExecutionClosure. # noqa: E501 - - - :return: The state_change_details of this AdminExecutionClosure. # noqa: E501 - :rtype: AdminExecutionStateChangeDetails - """ - return self._state_change_details - - @state_change_details.setter - def state_change_details(self, state_change_details): - """Sets the state_change_details of this AdminExecutionClosure. - - - :param state_change_details: The state_change_details of this AdminExecutionClosure. # noqa: E501 - :type: AdminExecutionStateChangeDetails - """ - - self._state_change_details = state_change_details - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py deleted file mode 100644 index 974d71ed67..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_cluster_label.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminExecutionClusterLabel(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'str' - } - - attribute_map = { - 'value': 'value' - } - - def __init__(self, value=None): # noqa: E501 - """AdminExecutionClusterLabel - a model defined in Swagger""" # noqa: E501 - - self._value = None - self.discriminator = None - - if value is not None: - self.value = value - - @property - def value(self): - """Gets the value of this AdminExecutionClusterLabel. # noqa: E501 - - - :return: The value of this AdminExecutionClusterLabel. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this AdminExecutionClusterLabel. - - - :param value: The value of this AdminExecutionClusterLabel. # noqa: E501 - :type: str - """ - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionClusterLabel, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionClusterLabel): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py deleted file mode 100644 index 5c5373a88d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_request.py +++ /dev/null @@ -1,222 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 - - -class AdminExecutionCreateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'name': 'str', - 'spec': 'AdminExecutionSpec', - 'inputs': 'CoreLiteralMap' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'name': 'name', - 'spec': 'spec', - 'inputs': 'inputs' - } - - def __init__(self, project=None, domain=None, name=None, spec=None, inputs=None): # noqa: E501 - """AdminExecutionCreateRequest - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._name = None - self._spec = None - self._inputs = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if name is not None: - self.name = name - if spec is not None: - self.spec = spec - if inputs is not None: - self.inputs = inputs - - @property - def project(self): - """Gets the project of this AdminExecutionCreateRequest. # noqa: E501 - - - :return: The project of this AdminExecutionCreateRequest. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminExecutionCreateRequest. - - - :param project: The project of this AdminExecutionCreateRequest. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminExecutionCreateRequest. # noqa: E501 - - - :return: The domain of this AdminExecutionCreateRequest. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminExecutionCreateRequest. - - - :param domain: The domain of this AdminExecutionCreateRequest. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def name(self): - """Gets the name of this AdminExecutionCreateRequest. # noqa: E501 - - - :return: The name of this AdminExecutionCreateRequest. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminExecutionCreateRequest. - - - :param name: The name of this AdminExecutionCreateRequest. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def spec(self): - """Gets the spec of this AdminExecutionCreateRequest. # noqa: E501 - - - :return: The spec of this AdminExecutionCreateRequest. # noqa: E501 - :rtype: AdminExecutionSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this AdminExecutionCreateRequest. - - - :param spec: The spec of this AdminExecutionCreateRequest. # noqa: E501 - :type: AdminExecutionSpec - """ - - self._spec = spec - - @property - def inputs(self): - """Gets the inputs of this AdminExecutionCreateRequest. # noqa: E501 - - - :return: The inputs of this AdminExecutionCreateRequest. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminExecutionCreateRequest. - - - :param inputs: The inputs of this AdminExecutionCreateRequest. # noqa: E501 - :type: CoreLiteralMap - """ - - self._inputs = inputs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionCreateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionCreateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py deleted file mode 100644 index 664459cde6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_create_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecutionCreateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier' - } - - attribute_map = { - 'id': 'id' - } - - def __init__(self, id=None): # noqa: E501 - """AdminExecutionCreateResponse - a model defined in Swagger""" # noqa: E501 - - self._id = None - self.discriminator = None - - if id is not None: - self.id = id - - @property - def id(self): - """Gets the id of this AdminExecutionCreateResponse. # noqa: E501 - - - :return: The id of this AdminExecutionCreateResponse. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecutionCreateResponse. - - - :param id: The id of this AdminExecutionCreateResponse. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionCreateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionCreateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py deleted file mode 100644 index 3821efb2f6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_list.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution import AdminExecution # noqa: F401,E501 - - -class AdminExecutionList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'executions': 'list[AdminExecution]', - 'token': 'str' - } - - attribute_map = { - 'executions': 'executions', - 'token': 'token' - } - - def __init__(self, executions=None, token=None): # noqa: E501 - """AdminExecutionList - a model defined in Swagger""" # noqa: E501 - - self._executions = None - self._token = None - self.discriminator = None - - if executions is not None: - self.executions = executions - if token is not None: - self.token = token - - @property - def executions(self): - """Gets the executions of this AdminExecutionList. # noqa: E501 - - - :return: The executions of this AdminExecutionList. # noqa: E501 - :rtype: list[AdminExecution] - """ - return self._executions - - @executions.setter - def executions(self, executions): - """Sets the executions of this AdminExecutionList. - - - :param executions: The executions of this AdminExecutionList. # noqa: E501 - :type: list[AdminExecution] - """ - - self._executions = executions - - @property - def token(self): - """Gets the token of this AdminExecutionList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminExecutionList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminExecutionList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminExecutionList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py deleted file mode 100644 index f5a297c487..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_metadata.py +++ /dev/null @@ -1,315 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_system_metadata import AdminSystemMetadata # noqa: F401,E501 -from flyteadmin.models.core_artifact_id import CoreArtifactID # noqa: F401,E501 -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: F401,E501 - - -class AdminExecutionMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'mode': 'ExecutionMetadataExecutionMode', - 'principal': 'str', - 'nesting': 'int', - 'scheduled_at': 'datetime', - 'parent_node_execution': 'CoreNodeExecutionIdentifier', - 'reference_execution': 'CoreWorkflowExecutionIdentifier', - 'system_metadata': 'AdminSystemMetadata', - 'artifact_ids': 'list[CoreArtifactID]' - } - - attribute_map = { - 'mode': 'mode', - 'principal': 'principal', - 'nesting': 'nesting', - 'scheduled_at': 'scheduled_at', - 'parent_node_execution': 'parent_node_execution', - 'reference_execution': 'reference_execution', - 'system_metadata': 'system_metadata', - 'artifact_ids': 'artifact_ids' - } - - def __init__(self, mode=None, principal=None, nesting=None, scheduled_at=None, parent_node_execution=None, reference_execution=None, system_metadata=None, artifact_ids=None): # noqa: E501 - """AdminExecutionMetadata - a model defined in Swagger""" # noqa: E501 - - self._mode = None - self._principal = None - self._nesting = None - self._scheduled_at = None - self._parent_node_execution = None - self._reference_execution = None - self._system_metadata = None - self._artifact_ids = None - self.discriminator = None - - if mode is not None: - self.mode = mode - if principal is not None: - self.principal = principal - if nesting is not None: - self.nesting = nesting - if scheduled_at is not None: - self.scheduled_at = scheduled_at - if parent_node_execution is not None: - self.parent_node_execution = parent_node_execution - if reference_execution is not None: - self.reference_execution = reference_execution - if system_metadata is not None: - self.system_metadata = system_metadata - if artifact_ids is not None: - self.artifact_ids = artifact_ids - - @property - def mode(self): - """Gets the mode of this AdminExecutionMetadata. # noqa: E501 - - - :return: The mode of this AdminExecutionMetadata. # noqa: E501 - :rtype: ExecutionMetadataExecutionMode - """ - return self._mode - - @mode.setter - def mode(self, mode): - """Sets the mode of this AdminExecutionMetadata. - - - :param mode: The mode of this AdminExecutionMetadata. # noqa: E501 - :type: ExecutionMetadataExecutionMode - """ - - self._mode = mode - - @property - def principal(self): - """Gets the principal of this AdminExecutionMetadata. # noqa: E501 - - Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. # noqa: E501 - - :return: The principal of this AdminExecutionMetadata. # noqa: E501 - :rtype: str - """ - return self._principal - - @principal.setter - def principal(self, principal): - """Sets the principal of this AdminExecutionMetadata. - - Identifier of the entity that triggered this execution. For systems using back-end authentication any value set here will be discarded in favor of the authenticated user context. # noqa: E501 - - :param principal: The principal of this AdminExecutionMetadata. # noqa: E501 - :type: str - """ - - self._principal = principal - - @property - def nesting(self): - """Gets the nesting of this AdminExecutionMetadata. # noqa: E501 - - Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 - - :return: The nesting of this AdminExecutionMetadata. # noqa: E501 - :rtype: int - """ - return self._nesting - - @nesting.setter - def nesting(self, nesting): - """Sets the nesting of this AdminExecutionMetadata. - - Indicates the nestedness of this execution. If a user launches a workflow execution, the default nesting is 0. If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 Generally, if workflow at nesting level k launches a workflow then the child workflow will have nesting = k + 1. # noqa: E501 - - :param nesting: The nesting of this AdminExecutionMetadata. # noqa: E501 - :type: int - """ - - self._nesting = nesting - - @property - def scheduled_at(self): - """Gets the scheduled_at of this AdminExecutionMetadata. # noqa: E501 - - For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 - - :return: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 - :rtype: datetime - """ - return self._scheduled_at - - @scheduled_at.setter - def scheduled_at(self, scheduled_at): - """Sets the scheduled_at of this AdminExecutionMetadata. - - For scheduled executions, the requested time for execution for this specific schedule invocation. # noqa: E501 - - :param scheduled_at: The scheduled_at of this AdminExecutionMetadata. # noqa: E501 - :type: datetime - """ - - self._scheduled_at = scheduled_at - - @property - def parent_node_execution(self): - """Gets the parent_node_execution of this AdminExecutionMetadata. # noqa: E501 - - - :return: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._parent_node_execution - - @parent_node_execution.setter - def parent_node_execution(self, parent_node_execution): - """Sets the parent_node_execution of this AdminExecutionMetadata. - - - :param parent_node_execution: The parent_node_execution of this AdminExecutionMetadata. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._parent_node_execution = parent_node_execution - - @property - def reference_execution(self): - """Gets the reference_execution of this AdminExecutionMetadata. # noqa: E501 - - Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 - - :return: The reference_execution of this AdminExecutionMetadata. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._reference_execution - - @reference_execution.setter - def reference_execution(self, reference_execution): - """Sets the reference_execution of this AdminExecutionMetadata. - - Optional, a reference workflow execution related to this execution. In the case of a relaunch, this references the original workflow execution. # noqa: E501 - - :param reference_execution: The reference_execution of this AdminExecutionMetadata. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._reference_execution = reference_execution - - @property - def system_metadata(self): - """Gets the system_metadata of this AdminExecutionMetadata. # noqa: E501 - - Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. # noqa: E501 - - :return: The system_metadata of this AdminExecutionMetadata. # noqa: E501 - :rtype: AdminSystemMetadata - """ - return self._system_metadata - - @system_metadata.setter - def system_metadata(self, system_metadata): - """Sets the system_metadata of this AdminExecutionMetadata. - - Optional, platform-specific metadata about the execution. In this the future this may be gated behind an ACL or some sort of authorization. # noqa: E501 - - :param system_metadata: The system_metadata of this AdminExecutionMetadata. # noqa: E501 - :type: AdminSystemMetadata - """ - - self._system_metadata = system_metadata - - @property - def artifact_ids(self): - """Gets the artifact_ids of this AdminExecutionMetadata. # noqa: E501 - - Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping since we don't have a structure to handle nested ones anyways. # noqa: E501 - - :return: The artifact_ids of this AdminExecutionMetadata. # noqa: E501 - :rtype: list[CoreArtifactID] - """ - return self._artifact_ids - - @artifact_ids.setter - def artifact_ids(self, artifact_ids): - """Sets the artifact_ids of this AdminExecutionMetadata. - - Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping since we don't have a structure to handle nested ones anyways. # noqa: E501 - - :param artifact_ids: The artifact_ids of this AdminExecutionMetadata. # noqa: E501 - :type: list[CoreArtifactID] - """ - - self._artifact_ids = artifact_ids - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py deleted file mode 100644 index c8ac3d9d23..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_queue_attributes.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminExecutionQueueAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tags': 'list[str]' - } - - attribute_map = { - 'tags': 'tags' - } - - def __init__(self, tags=None): # noqa: E501 - """AdminExecutionQueueAttributes - a model defined in Swagger""" # noqa: E501 - - self._tags = None - self.discriminator = None - - if tags is not None: - self.tags = tags - - @property - def tags(self): - """Gets the tags of this AdminExecutionQueueAttributes. # noqa: E501 - - Tags used for assigning execution queues for tasks defined within this project. # noqa: E501 - - :return: The tags of this AdminExecutionQueueAttributes. # noqa: E501 - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this AdminExecutionQueueAttributes. - - Tags used for assigning execution queues for tasks defined within this project. # noqa: E501 - - :param tags: The tags of this AdminExecutionQueueAttributes. # noqa: E501 - :type: list[str] - """ - - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionQueueAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionQueueAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py deleted file mode 100644 index acd856ada5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_recover_request.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecutionRecoverRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier', - 'name': 'str', - 'metadata': 'AdminExecutionMetadata' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'metadata': 'metadata' - } - - def __init__(self, id=None, name=None, metadata=None): # noqa: E501 - """AdminExecutionRecoverRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._metadata = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if metadata is not None: - self.metadata = metadata - - @property - def id(self): - """Gets the id of this AdminExecutionRecoverRequest. # noqa: E501 - - Identifier of the workflow execution to recover. # noqa: E501 - - :return: The id of this AdminExecutionRecoverRequest. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecutionRecoverRequest. - - Identifier of the workflow execution to recover. # noqa: E501 - - :param id: The id of this AdminExecutionRecoverRequest. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - @property - def name(self): - """Gets the name of this AdminExecutionRecoverRequest. # noqa: E501 - - - :return: The name of this AdminExecutionRecoverRequest. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminExecutionRecoverRequest. - - - :param name: The name of this AdminExecutionRecoverRequest. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def metadata(self): - """Gets the metadata of this AdminExecutionRecoverRequest. # noqa: E501 - - Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. # noqa: E501 - - :return: The metadata of this AdminExecutionRecoverRequest. # noqa: E501 - :rtype: AdminExecutionMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this AdminExecutionRecoverRequest. - - Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. # noqa: E501 - - :param metadata: The metadata of this AdminExecutionRecoverRequest. # noqa: E501 - :type: AdminExecutionMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionRecoverRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionRecoverRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py deleted file mode 100644 index 699c21288b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_relaunch_request.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecutionRelaunchRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier', - 'name': 'str', - 'overwrite_cache': 'bool' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'overwrite_cache': 'overwrite_cache' - } - - def __init__(self, id=None, name=None, overwrite_cache=None): # noqa: E501 - """AdminExecutionRelaunchRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._overwrite_cache = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if overwrite_cache is not None: - self.overwrite_cache = overwrite_cache - - @property - def id(self): - """Gets the id of this AdminExecutionRelaunchRequest. # noqa: E501 - - - :return: The id of this AdminExecutionRelaunchRequest. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecutionRelaunchRequest. - - - :param id: The id of this AdminExecutionRelaunchRequest. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - @property - def name(self): - """Gets the name of this AdminExecutionRelaunchRequest. # noqa: E501 - - - :return: The name of this AdminExecutionRelaunchRequest. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminExecutionRelaunchRequest. - - - :param name: The name of this AdminExecutionRelaunchRequest. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def overwrite_cache(self): - """Gets the overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :return: The overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 - :rtype: bool - """ - return self._overwrite_cache - - @overwrite_cache.setter - def overwrite_cache(self, overwrite_cache): - """Sets the overwrite_cache of this AdminExecutionRelaunchRequest. - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :param overwrite_cache: The overwrite_cache of this AdminExecutionRelaunchRequest. # noqa: E501 - :type: bool - """ - - self._overwrite_cache = overwrite_cache - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionRelaunchRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionRelaunchRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py deleted file mode 100644 index 5f1e5407a5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_spec.py +++ /dev/null @@ -1,570 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 -from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: F401,E501 -from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: F401,E501 -from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 -from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 -from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: F401,E501 -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 -from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 - - -class AdminExecutionSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'launch_plan': 'CoreIdentifier', - 'inputs': 'CoreLiteralMap', - 'metadata': 'AdminExecutionMetadata', - 'notifications': 'AdminNotificationList', - 'disable_all': 'bool', - 'labels': 'AdminLabels', - 'annotations': 'AdminAnnotations', - 'security_context': 'CoreSecurityContext', - 'auth_role': 'AdminAuthRole', - 'quality_of_service': 'CoreQualityOfService', - 'max_parallelism': 'int', - 'raw_output_data_config': 'AdminRawOutputDataConfig', - 'cluster_assignment': 'AdminClusterAssignment', - 'interruptible': 'bool', - 'overwrite_cache': 'bool', - 'envs': 'AdminEnvs', - 'tags': 'list[str]' - } - - attribute_map = { - 'launch_plan': 'launch_plan', - 'inputs': 'inputs', - 'metadata': 'metadata', - 'notifications': 'notifications', - 'disable_all': 'disable_all', - 'labels': 'labels', - 'annotations': 'annotations', - 'security_context': 'security_context', - 'auth_role': 'auth_role', - 'quality_of_service': 'quality_of_service', - 'max_parallelism': 'max_parallelism', - 'raw_output_data_config': 'raw_output_data_config', - 'cluster_assignment': 'cluster_assignment', - 'interruptible': 'interruptible', - 'overwrite_cache': 'overwrite_cache', - 'envs': 'envs', - 'tags': 'tags' - } - - def __init__(self, launch_plan=None, inputs=None, metadata=None, notifications=None, disable_all=None, labels=None, annotations=None, security_context=None, auth_role=None, quality_of_service=None, max_parallelism=None, raw_output_data_config=None, cluster_assignment=None, interruptible=None, overwrite_cache=None, envs=None, tags=None): # noqa: E501 - """AdminExecutionSpec - a model defined in Swagger""" # noqa: E501 - - self._launch_plan = None - self._inputs = None - self._metadata = None - self._notifications = None - self._disable_all = None - self._labels = None - self._annotations = None - self._security_context = None - self._auth_role = None - self._quality_of_service = None - self._max_parallelism = None - self._raw_output_data_config = None - self._cluster_assignment = None - self._interruptible = None - self._overwrite_cache = None - self._envs = None - self._tags = None - self.discriminator = None - - if launch_plan is not None: - self.launch_plan = launch_plan - if inputs is not None: - self.inputs = inputs - if metadata is not None: - self.metadata = metadata - if notifications is not None: - self.notifications = notifications - if disable_all is not None: - self.disable_all = disable_all - if labels is not None: - self.labels = labels - if annotations is not None: - self.annotations = annotations - if security_context is not None: - self.security_context = security_context - if auth_role is not None: - self.auth_role = auth_role - if quality_of_service is not None: - self.quality_of_service = quality_of_service - if max_parallelism is not None: - self.max_parallelism = max_parallelism - if raw_output_data_config is not None: - self.raw_output_data_config = raw_output_data_config - if cluster_assignment is not None: - self.cluster_assignment = cluster_assignment - if interruptible is not None: - self.interruptible = interruptible - if overwrite_cache is not None: - self.overwrite_cache = overwrite_cache - if envs is not None: - self.envs = envs - if tags is not None: - self.tags = tags - - @property - def launch_plan(self): - """Gets the launch_plan of this AdminExecutionSpec. # noqa: E501 - - - :return: The launch_plan of this AdminExecutionSpec. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._launch_plan - - @launch_plan.setter - def launch_plan(self, launch_plan): - """Sets the launch_plan of this AdminExecutionSpec. - - - :param launch_plan: The launch_plan of this AdminExecutionSpec. # noqa: E501 - :type: CoreIdentifier - """ - - self._launch_plan = launch_plan - - @property - def inputs(self): - """Gets the inputs of this AdminExecutionSpec. # noqa: E501 - - - :return: The inputs of this AdminExecutionSpec. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminExecutionSpec. - - - :param inputs: The inputs of this AdminExecutionSpec. # noqa: E501 - :type: CoreLiteralMap - """ - - self._inputs = inputs - - @property - def metadata(self): - """Gets the metadata of this AdminExecutionSpec. # noqa: E501 - - - :return: The metadata of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminExecutionMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this AdminExecutionSpec. - - - :param metadata: The metadata of this AdminExecutionSpec. # noqa: E501 - :type: AdminExecutionMetadata - """ - - self._metadata = metadata - - @property - def notifications(self): - """Gets the notifications of this AdminExecutionSpec. # noqa: E501 - - List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 - - :return: The notifications of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminNotificationList - """ - return self._notifications - - @notifications.setter - def notifications(self, notifications): - """Sets the notifications of this AdminExecutionSpec. - - List of notifications based on Execution status transitions When this list is not empty it is used rather than any notifications defined in the referenced launch plan. When this list is empty, the notifications defined for the launch plan will be applied. # noqa: E501 - - :param notifications: The notifications of this AdminExecutionSpec. # noqa: E501 - :type: AdminNotificationList - """ - - self._notifications = notifications - - @property - def disable_all(self): - """Gets the disable_all of this AdminExecutionSpec. # noqa: E501 - - This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 - - :return: The disable_all of this AdminExecutionSpec. # noqa: E501 - :rtype: bool - """ - return self._disable_all - - @disable_all.setter - def disable_all(self, disable_all): - """Sets the disable_all of this AdminExecutionSpec. - - This should be set to true if all notifications are intended to be disabled for this execution. # noqa: E501 - - :param disable_all: The disable_all of this AdminExecutionSpec. # noqa: E501 - :type: bool - """ - - self._disable_all = disable_all - - @property - def labels(self): - """Gets the labels of this AdminExecutionSpec. # noqa: E501 - - Labels to apply to the execution resource. # noqa: E501 - - :return: The labels of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminLabels - """ - return self._labels - - @labels.setter - def labels(self, labels): - """Sets the labels of this AdminExecutionSpec. - - Labels to apply to the execution resource. # noqa: E501 - - :param labels: The labels of this AdminExecutionSpec. # noqa: E501 - :type: AdminLabels - """ - - self._labels = labels - - @property - def annotations(self): - """Gets the annotations of this AdminExecutionSpec. # noqa: E501 - - Annotations to apply to the execution resource. # noqa: E501 - - :return: The annotations of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminAnnotations - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """Sets the annotations of this AdminExecutionSpec. - - Annotations to apply to the execution resource. # noqa: E501 - - :param annotations: The annotations of this AdminExecutionSpec. # noqa: E501 - :type: AdminAnnotations - """ - - self._annotations = annotations - - @property - def security_context(self): - """Gets the security_context of this AdminExecutionSpec. # noqa: E501 - - Optional: security context override to apply this execution. # noqa: E501 - - :return: The security_context of this AdminExecutionSpec. # noqa: E501 - :rtype: CoreSecurityContext - """ - return self._security_context - - @security_context.setter - def security_context(self, security_context): - """Sets the security_context of this AdminExecutionSpec. - - Optional: security context override to apply this execution. # noqa: E501 - - :param security_context: The security_context of this AdminExecutionSpec. # noqa: E501 - :type: CoreSecurityContext - """ - - self._security_context = security_context - - @property - def auth_role(self): - """Gets the auth_role of this AdminExecutionSpec. # noqa: E501 - - Optional: auth override to apply this execution. # noqa: E501 - - :return: The auth_role of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminAuthRole - """ - return self._auth_role - - @auth_role.setter - def auth_role(self, auth_role): - """Sets the auth_role of this AdminExecutionSpec. - - Optional: auth override to apply this execution. # noqa: E501 - - :param auth_role: The auth_role of this AdminExecutionSpec. # noqa: E501 - :type: AdminAuthRole - """ - - self._auth_role = auth_role - - @property - def quality_of_service(self): - """Gets the quality_of_service of this AdminExecutionSpec. # noqa: E501 - - Indicates the runtime priority of the execution. # noqa: E501 - - :return: The quality_of_service of this AdminExecutionSpec. # noqa: E501 - :rtype: CoreQualityOfService - """ - return self._quality_of_service - - @quality_of_service.setter - def quality_of_service(self, quality_of_service): - """Sets the quality_of_service of this AdminExecutionSpec. - - Indicates the runtime priority of the execution. # noqa: E501 - - :param quality_of_service: The quality_of_service of this AdminExecutionSpec. # noqa: E501 - :type: CoreQualityOfService - """ - - self._quality_of_service = quality_of_service - - @property - def max_parallelism(self): - """Gets the max_parallelism of this AdminExecutionSpec. # noqa: E501 - - Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 - - :return: The max_parallelism of this AdminExecutionSpec. # noqa: E501 - :rtype: int - """ - return self._max_parallelism - - @max_parallelism.setter - def max_parallelism(self, max_parallelism): - """Sets the max_parallelism of this AdminExecutionSpec. - - Controls the maximum number of task nodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 - - :param max_parallelism: The max_parallelism of this AdminExecutionSpec. # noqa: E501 - :type: int - """ - - self._max_parallelism = max_parallelism - - @property - def raw_output_data_config(self): - """Gets the raw_output_data_config of this AdminExecutionSpec. # noqa: E501 - - - :return: The raw_output_data_config of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminRawOutputDataConfig - """ - return self._raw_output_data_config - - @raw_output_data_config.setter - def raw_output_data_config(self, raw_output_data_config): - """Sets the raw_output_data_config of this AdminExecutionSpec. - - - :param raw_output_data_config: The raw_output_data_config of this AdminExecutionSpec. # noqa: E501 - :type: AdminRawOutputDataConfig - """ - - self._raw_output_data_config = raw_output_data_config - - @property - def cluster_assignment(self): - """Gets the cluster_assignment of this AdminExecutionSpec. # noqa: E501 - - Controls how to select an available cluster on which this execution should run. # noqa: E501 - - :return: The cluster_assignment of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminClusterAssignment - """ - return self._cluster_assignment - - @cluster_assignment.setter - def cluster_assignment(self, cluster_assignment): - """Sets the cluster_assignment of this AdminExecutionSpec. - - Controls how to select an available cluster on which this execution should run. # noqa: E501 - - :param cluster_assignment: The cluster_assignment of this AdminExecutionSpec. # noqa: E501 - :type: AdminClusterAssignment - """ - - self._cluster_assignment = cluster_assignment - - @property - def interruptible(self): - """Gets the interruptible of this AdminExecutionSpec. # noqa: E501 - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :return: The interruptible of this AdminExecutionSpec. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this AdminExecutionSpec. - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :param interruptible: The interruptible of this AdminExecutionSpec. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - @property - def overwrite_cache(self): - """Gets the overwrite_cache of this AdminExecutionSpec. # noqa: E501 - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :return: The overwrite_cache of this AdminExecutionSpec. # noqa: E501 - :rtype: bool - """ - return self._overwrite_cache - - @overwrite_cache.setter - def overwrite_cache(self, overwrite_cache): - """Sets the overwrite_cache of this AdminExecutionSpec. - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :param overwrite_cache: The overwrite_cache of this AdminExecutionSpec. # noqa: E501 - :type: bool - """ - - self._overwrite_cache = overwrite_cache - - @property - def envs(self): - """Gets the envs of this AdminExecutionSpec. # noqa: E501 - - Environment variables to be set for the execution. # noqa: E501 - - :return: The envs of this AdminExecutionSpec. # noqa: E501 - :rtype: AdminEnvs - """ - return self._envs - - @envs.setter - def envs(self, envs): - """Sets the envs of this AdminExecutionSpec. - - Environment variables to be set for the execution. # noqa: E501 - - :param envs: The envs of this AdminExecutionSpec. # noqa: E501 - :type: AdminEnvs - """ - - self._envs = envs - - @property - def tags(self): - """Gets the tags of this AdminExecutionSpec. # noqa: E501 - - Tags to be set for the execution. # noqa: E501 - - :return: The tags of this AdminExecutionSpec. # noqa: E501 - :rtype: list[str] - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this AdminExecutionSpec. - - Tags to be set for the execution. # noqa: E501 - - :param tags: The tags of this AdminExecutionSpec. # noqa: E501 - :type: list[str] - """ - - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py deleted file mode 100644 index 7f3d281b86..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminExecutionState(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - ACTIVE = "EXECUTION_ACTIVE" - ARCHIVED = "EXECUTION_ARCHIVED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminExecutionState - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionState, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionState): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py deleted file mode 100644 index a82156027e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_state_change_details.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: F401,E501 - - -class AdminExecutionStateChangeDetails(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'state': 'AdminExecutionState', - 'occurred_at': 'datetime', - 'principal': 'str' - } - - attribute_map = { - 'state': 'state', - 'occurred_at': 'occurred_at', - 'principal': 'principal' - } - - def __init__(self, state=None, occurred_at=None, principal=None): # noqa: E501 - """AdminExecutionStateChangeDetails - a model defined in Swagger""" # noqa: E501 - - self._state = None - self._occurred_at = None - self._principal = None - self.discriminator = None - - if state is not None: - self.state = state - if occurred_at is not None: - self.occurred_at = occurred_at - if principal is not None: - self.principal = principal - - @property - def state(self): - """Gets the state of this AdminExecutionStateChangeDetails. # noqa: E501 - - The state of the execution is used to control its visibility in the UI/CLI. # noqa: E501 - - :return: The state of this AdminExecutionStateChangeDetails. # noqa: E501 - :rtype: AdminExecutionState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminExecutionStateChangeDetails. - - The state of the execution is used to control its visibility in the UI/CLI. # noqa: E501 - - :param state: The state of this AdminExecutionStateChangeDetails. # noqa: E501 - :type: AdminExecutionState - """ - - self._state = state - - @property - def occurred_at(self): - """Gets the occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 - - This timestamp represents when the state changed. # noqa: E501 - - :return: The occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this AdminExecutionStateChangeDetails. - - This timestamp represents when the state changed. # noqa: E501 - - :param occurred_at: The occurred_at of this AdminExecutionStateChangeDetails. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - @property - def principal(self): - """Gets the principal of this AdminExecutionStateChangeDetails. # noqa: E501 - - - :return: The principal of this AdminExecutionStateChangeDetails. # noqa: E501 - :rtype: str - """ - return self._principal - - @principal.setter - def principal(self, principal): - """Sets the principal of this AdminExecutionStateChangeDetails. - - - :param principal: The principal of this AdminExecutionStateChangeDetails. # noqa: E501 - :type: str - """ - - self._principal = principal - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionStateChangeDetails, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionStateChangeDetails): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py deleted file mode 100644 index a2fb097d43..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_request.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecutionTerminateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier', - 'cause': 'str' - } - - attribute_map = { - 'id': 'id', - 'cause': 'cause' - } - - def __init__(self, id=None, cause=None): # noqa: E501 - """AdminExecutionTerminateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._cause = None - self.discriminator = None - - if id is not None: - self.id = id - if cause is not None: - self.cause = cause - - @property - def id(self): - """Gets the id of this AdminExecutionTerminateRequest. # noqa: E501 - - Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 - - :return: The id of this AdminExecutionTerminateRequest. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecutionTerminateRequest. - - Uniquely identifies the individual workflow execution to be terminated. # noqa: E501 - - :param id: The id of this AdminExecutionTerminateRequest. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - @property - def cause(self): - """Gets the cause of this AdminExecutionTerminateRequest. # noqa: E501 - - Optional reason for aborting. # noqa: E501 - - :return: The cause of this AdminExecutionTerminateRequest. # noqa: E501 - :rtype: str - """ - return self._cause - - @cause.setter - def cause(self, cause): - """Sets the cause of this AdminExecutionTerminateRequest. - - Optional reason for aborting. # noqa: E501 - - :param cause: The cause of this AdminExecutionTerminateRequest. # noqa: E501 - :type: str - """ - - self._cause = cause - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionTerminateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionTerminateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py deleted file mode 100644 index b7e68c83d4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_terminate_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminExecutionTerminateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminExecutionTerminateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionTerminateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionTerminateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py deleted file mode 100644 index 5bbddc57b0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_request.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class AdminExecutionUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreWorkflowExecutionIdentifier', - 'state': 'AdminExecutionState' - } - - attribute_map = { - 'id': 'id', - 'state': 'state' - } - - def __init__(self, id=None, state=None): # noqa: E501 - """AdminExecutionUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._state = None - self.discriminator = None - - if id is not None: - self.id = id - if state is not None: - self.state = state - - @property - def id(self): - """Gets the id of this AdminExecutionUpdateRequest. # noqa: E501 - - - :return: The id of this AdminExecutionUpdateRequest. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminExecutionUpdateRequest. - - - :param id: The id of this AdminExecutionUpdateRequest. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._id = id - - @property - def state(self): - """Gets the state of this AdminExecutionUpdateRequest. # noqa: E501 - - - :return: The state of this AdminExecutionUpdateRequest. # noqa: E501 - :rtype: AdminExecutionState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminExecutionUpdateRequest. - - - :param state: The state of this AdminExecutionUpdateRequest. # noqa: E501 - :type: AdminExecutionState - """ - - self._state = state - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py deleted file mode 100644 index 9e9f90ee7e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_execution_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminExecutionUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminExecutionUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminExecutionUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminExecutionUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py deleted file mode 100644 index 5eacbeebca..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: F401,E501 - - -class AdminFixedRate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'int', - 'unit': 'AdminFixedRateUnit' - } - - attribute_map = { - 'value': 'value', - 'unit': 'unit' - } - - def __init__(self, value=None, unit=None): # noqa: E501 - """AdminFixedRate - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._unit = None - self.discriminator = None - - if value is not None: - self.value = value - if unit is not None: - self.unit = unit - - @property - def value(self): - """Gets the value of this AdminFixedRate. # noqa: E501 - - - :return: The value of this AdminFixedRate. # noqa: E501 - :rtype: int - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this AdminFixedRate. - - - :param value: The value of this AdminFixedRate. # noqa: E501 - :type: int - """ - - self._value = value - - @property - def unit(self): - """Gets the unit of this AdminFixedRate. # noqa: E501 - - - :return: The unit of this AdminFixedRate. # noqa: E501 - :rtype: AdminFixedRateUnit - """ - return self._unit - - @unit.setter - def unit(self, unit): - """Sets the unit of this AdminFixedRate. - - - :param unit: The unit of this AdminFixedRate. # noqa: E501 - :type: AdminFixedRateUnit - """ - - self._unit = unit - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminFixedRate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminFixedRate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py deleted file mode 100644 index 2c65b556bf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_fixed_rate_unit.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminFixedRateUnit(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - MINUTE = "MINUTE" - HOUR = "HOUR" - DAY = "DAY" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminFixedRateUnit - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminFixedRateUnit, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminFixedRateUnit): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py deleted file mode 100644 index f99e18dc4c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_flyte_ur_ls.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminFlyteURLs(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'inputs': 'str', - 'outputs': 'str', - 'deck': 'str' - } - - attribute_map = { - 'inputs': 'inputs', - 'outputs': 'outputs', - 'deck': 'deck' - } - - def __init__(self, inputs=None, outputs=None, deck=None): # noqa: E501 - """AdminFlyteURLs - a model defined in Swagger""" # noqa: E501 - - self._inputs = None - self._outputs = None - self._deck = None - self.discriminator = None - - if inputs is not None: - self.inputs = inputs - if outputs is not None: - self.outputs = outputs - if deck is not None: - self.deck = deck - - @property - def inputs(self): - """Gets the inputs of this AdminFlyteURLs. # noqa: E501 - - - :return: The inputs of this AdminFlyteURLs. # noqa: E501 - :rtype: str - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminFlyteURLs. - - - :param inputs: The inputs of this AdminFlyteURLs. # noqa: E501 - :type: str - """ - - self._inputs = inputs - - @property - def outputs(self): - """Gets the outputs of this AdminFlyteURLs. # noqa: E501 - - - :return: The outputs of this AdminFlyteURLs. # noqa: E501 - :rtype: str - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this AdminFlyteURLs. - - - :param outputs: The outputs of this AdminFlyteURLs. # noqa: E501 - :type: str - """ - - self._outputs = outputs - - @property - def deck(self): - """Gets the deck of this AdminFlyteURLs. # noqa: E501 - - - :return: The deck of this AdminFlyteURLs. # noqa: E501 - :rtype: str - """ - return self._deck - - @deck.setter - def deck(self, deck): - """Sets the deck of this AdminFlyteURLs. - - - :param deck: The deck of this AdminFlyteURLs. # noqa: E501 - :type: str - """ - - self._deck = deck - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminFlyteURLs, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminFlyteURLs): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py deleted file mode 100644 index 622a522562..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_get_version_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_version import AdminVersion # noqa: F401,E501 - - -class AdminGetVersionResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'control_plane_version': 'AdminVersion' - } - - attribute_map = { - 'control_plane_version': 'control_plane_version' - } - - def __init__(self, control_plane_version=None): # noqa: E501 - """AdminGetVersionResponse - a model defined in Swagger""" # noqa: E501 - - self._control_plane_version = None - self.discriminator = None - - if control_plane_version is not None: - self.control_plane_version = control_plane_version - - @property - def control_plane_version(self): - """Gets the control_plane_version of this AdminGetVersionResponse. # noqa: E501 - - - :return: The control_plane_version of this AdminGetVersionResponse. # noqa: E501 - :rtype: AdminVersion - """ - return self._control_plane_version - - @control_plane_version.setter - def control_plane_version(self, control_plane_version): - """Sets the control_plane_version of this AdminGetVersionResponse. - - - :param control_plane_version: The control_plane_version of this AdminGetVersionResponse. # noqa: E501 - :type: AdminVersion - """ - - self._control_plane_version = control_plane_version - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminGetVersionResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminGetVersionResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py deleted file mode 100644 index 1391051e4b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_labels.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminLabels(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'dict(str, str)' - } - - attribute_map = { - 'values': 'values' - } - - def __init__(self, values=None): # noqa: E501 - """AdminLabels - a model defined in Swagger""" # noqa: E501 - - self._values = None - self.discriminator = None - - if values is not None: - self.values = values - - @property - def values(self): - """Gets the values of this AdminLabels. # noqa: E501 - - Map of custom labels to be applied to the execution resource. # noqa: E501 - - :return: The values of this AdminLabels. # noqa: E501 - :rtype: dict(str, str) - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this AdminLabels. - - Map of custom labels to be applied to the execution resource. # noqa: E501 - - :param values: The values of this AdminLabels. # noqa: E501 - :type: dict(str, str) - """ - - self._values = values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLabels, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLabels): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py deleted file mode 100644 index 84a6eef482..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: F401,E501 -from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminLaunchPlan(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'spec': 'AdminLaunchPlanSpec', - 'closure': 'AdminLaunchPlanClosure' - } - - attribute_map = { - 'id': 'id', - 'spec': 'spec', - 'closure': 'closure' - } - - def __init__(self, id=None, spec=None, closure=None): # noqa: E501 - """AdminLaunchPlan - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._spec = None - self._closure = None - self.discriminator = None - - if id is not None: - self.id = id - if spec is not None: - self.spec = spec - if closure is not None: - self.closure = closure - - @property - def id(self): - """Gets the id of this AdminLaunchPlan. # noqa: E501 - - Uniquely identifies a launch plan entity. # noqa: E501 - - :return: The id of this AdminLaunchPlan. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminLaunchPlan. - - Uniquely identifies a launch plan entity. # noqa: E501 - - :param id: The id of this AdminLaunchPlan. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def spec(self): - """Gets the spec of this AdminLaunchPlan. # noqa: E501 - - User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 - - :return: The spec of this AdminLaunchPlan. # noqa: E501 - :rtype: AdminLaunchPlanSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this AdminLaunchPlan. - - User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 - - :param spec: The spec of this AdminLaunchPlan. # noqa: E501 - :type: AdminLaunchPlanSpec - """ - - self._spec = spec - - @property - def closure(self): - """Gets the closure of this AdminLaunchPlan. # noqa: E501 - - Values computed by the flyte platform after launch plan registration. # noqa: E501 - - :return: The closure of this AdminLaunchPlan. # noqa: E501 - :rtype: AdminLaunchPlanClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this AdminLaunchPlan. - - Values computed by the flyte platform after launch plan registration. # noqa: E501 - - :param closure: The closure of this AdminLaunchPlan. # noqa: E501 - :type: AdminLaunchPlanClosure - """ - - self._closure = closure - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlan, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlan): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py deleted file mode 100644 index 2464c1fa42..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_closure.py +++ /dev/null @@ -1,229 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 -from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 -from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 - - -class AdminLaunchPlanClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'state': 'AdminLaunchPlanState', - 'expected_inputs': 'CoreParameterMap', - 'expected_outputs': 'CoreVariableMap', - 'created_at': 'datetime', - 'updated_at': 'datetime' - } - - attribute_map = { - 'state': 'state', - 'expected_inputs': 'expected_inputs', - 'expected_outputs': 'expected_outputs', - 'created_at': 'created_at', - 'updated_at': 'updated_at' - } - - def __init__(self, state=None, expected_inputs=None, expected_outputs=None, created_at=None, updated_at=None): # noqa: E501 - """AdminLaunchPlanClosure - a model defined in Swagger""" # noqa: E501 - - self._state = None - self._expected_inputs = None - self._expected_outputs = None - self._created_at = None - self._updated_at = None - self.discriminator = None - - if state is not None: - self.state = state - if expected_inputs is not None: - self.expected_inputs = expected_inputs - if expected_outputs is not None: - self.expected_outputs = expected_outputs - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - - @property - def state(self): - """Gets the state of this AdminLaunchPlanClosure. # noqa: E501 - - Indicate the Launch plan state. # noqa: E501 - - :return: The state of this AdminLaunchPlanClosure. # noqa: E501 - :rtype: AdminLaunchPlanState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminLaunchPlanClosure. - - Indicate the Launch plan state. # noqa: E501 - - :param state: The state of this AdminLaunchPlanClosure. # noqa: E501 - :type: AdminLaunchPlanState - """ - - self._state = state - - @property - def expected_inputs(self): - """Gets the expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 - - - :return: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 - :rtype: CoreParameterMap - """ - return self._expected_inputs - - @expected_inputs.setter - def expected_inputs(self, expected_inputs): - """Sets the expected_inputs of this AdminLaunchPlanClosure. - - - :param expected_inputs: The expected_inputs of this AdminLaunchPlanClosure. # noqa: E501 - :type: CoreParameterMap - """ - - self._expected_inputs = expected_inputs - - @property - def expected_outputs(self): - """Gets the expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 - - - :return: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 - :rtype: CoreVariableMap - """ - return self._expected_outputs - - @expected_outputs.setter - def expected_outputs(self, expected_outputs): - """Sets the expected_outputs of this AdminLaunchPlanClosure. - - - :param expected_outputs: The expected_outputs of this AdminLaunchPlanClosure. # noqa: E501 - :type: CoreVariableMap - """ - - self._expected_outputs = expected_outputs - - @property - def created_at(self): - """Gets the created_at of this AdminLaunchPlanClosure. # noqa: E501 - - Time at which the launch plan was created. # noqa: E501 - - :return: The created_at of this AdminLaunchPlanClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminLaunchPlanClosure. - - Time at which the launch plan was created. # noqa: E501 - - :param created_at: The created_at of this AdminLaunchPlanClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this AdminLaunchPlanClosure. # noqa: E501 - - Time at which the launch plan was last updated. # noqa: E501 - - :return: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this AdminLaunchPlanClosure. - - Time at which the launch plan was last updated. # noqa: E501 - - :param updated_at: The updated_at of this AdminLaunchPlanClosure. # noqa: E501 - :type: datetime - """ - - self._updated_at = updated_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py deleted file mode 100644 index 888fa5b2fd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_request.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminLaunchPlanCreateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'spec': 'AdminLaunchPlanSpec' - } - - attribute_map = { - 'id': 'id', - 'spec': 'spec' - } - - def __init__(self, id=None, spec=None): # noqa: E501 - """AdminLaunchPlanCreateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._spec = None - self.discriminator = None - - if id is not None: - self.id = id - if spec is not None: - self.spec = spec - - @property - def id(self): - """Gets the id of this AdminLaunchPlanCreateRequest. # noqa: E501 - - Uniquely identifies a launch plan entity. # noqa: E501 - - :return: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminLaunchPlanCreateRequest. - - Uniquely identifies a launch plan entity. # noqa: E501 - - :param id: The id of this AdminLaunchPlanCreateRequest. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def spec(self): - """Gets the spec of this AdminLaunchPlanCreateRequest. # noqa: E501 - - User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 - - :return: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 - :rtype: AdminLaunchPlanSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this AdminLaunchPlanCreateRequest. - - User-provided launch plan details, including reference workflow, inputs and other metadata. # noqa: E501 - - :param spec: The spec of this AdminLaunchPlanCreateRequest. # noqa: E501 - :type: AdminLaunchPlanSpec - """ - - self._spec = spec - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanCreateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanCreateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py deleted file mode 100644 index 8bc8d4a761..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_create_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminLaunchPlanCreateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminLaunchPlanCreateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanCreateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanCreateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py deleted file mode 100644 index 9c337f347e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_list.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: F401,E501 - - -class AdminLaunchPlanList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'launch_plans': 'list[AdminLaunchPlan]', - 'token': 'str' - } - - attribute_map = { - 'launch_plans': 'launch_plans', - 'token': 'token' - } - - def __init__(self, launch_plans=None, token=None): # noqa: E501 - """AdminLaunchPlanList - a model defined in Swagger""" # noqa: E501 - - self._launch_plans = None - self._token = None - self.discriminator = None - - if launch_plans is not None: - self.launch_plans = launch_plans - if token is not None: - self.token = token - - @property - def launch_plans(self): - """Gets the launch_plans of this AdminLaunchPlanList. # noqa: E501 - - - :return: The launch_plans of this AdminLaunchPlanList. # noqa: E501 - :rtype: list[AdminLaunchPlan] - """ - return self._launch_plans - - @launch_plans.setter - def launch_plans(self, launch_plans): - """Sets the launch_plans of this AdminLaunchPlanList. - - - :param launch_plans: The launch_plans of this AdminLaunchPlanList. # noqa: E501 - :type: list[AdminLaunchPlan] - """ - - self._launch_plans = launch_plans - - @property - def token(self): - """Gets the token of this AdminLaunchPlanList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminLaunchPlanList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminLaunchPlanList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminLaunchPlanList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py deleted file mode 100644 index 462a758704..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_metadata.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 -from flyteadmin.models.admin_schedule import AdminSchedule # noqa: F401,E501 -from flyteadmin.models.protobuf_any import ProtobufAny # noqa: F401,E501 - - -class AdminLaunchPlanMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'schedule': 'AdminSchedule', - 'notifications': 'list[AdminNotification]', - 'launch_conditions': 'ProtobufAny' - } - - attribute_map = { - 'schedule': 'schedule', - 'notifications': 'notifications', - 'launch_conditions': 'launch_conditions' - } - - def __init__(self, schedule=None, notifications=None, launch_conditions=None): # noqa: E501 - """AdminLaunchPlanMetadata - a model defined in Swagger""" # noqa: E501 - - self._schedule = None - self._notifications = None - self._launch_conditions = None - self.discriminator = None - - if schedule is not None: - self.schedule = schedule - if notifications is not None: - self.notifications = notifications - if launch_conditions is not None: - self.launch_conditions = launch_conditions - - @property - def schedule(self): - """Gets the schedule of this AdminLaunchPlanMetadata. # noqa: E501 - - - :return: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 - :rtype: AdminSchedule - """ - return self._schedule - - @schedule.setter - def schedule(self, schedule): - """Sets the schedule of this AdminLaunchPlanMetadata. - - - :param schedule: The schedule of this AdminLaunchPlanMetadata. # noqa: E501 - :type: AdminSchedule - """ - - self._schedule = schedule - - @property - def notifications(self): - """Gets the notifications of this AdminLaunchPlanMetadata. # noqa: E501 - - - :return: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 - :rtype: list[AdminNotification] - """ - return self._notifications - - @notifications.setter - def notifications(self, notifications): - """Sets the notifications of this AdminLaunchPlanMetadata. - - - :param notifications: The notifications of this AdminLaunchPlanMetadata. # noqa: E501 - :type: list[AdminNotification] - """ - - self._notifications = notifications - - @property - def launch_conditions(self): - """Gets the launch_conditions of this AdminLaunchPlanMetadata. # noqa: E501 - - - :return: The launch_conditions of this AdminLaunchPlanMetadata. # noqa: E501 - :rtype: ProtobufAny - """ - return self._launch_conditions - - @launch_conditions.setter - def launch_conditions(self, launch_conditions): - """Sets the launch_conditions of this AdminLaunchPlanMetadata. - - - :param launch_conditions: The launch_conditions of this AdminLaunchPlanMetadata. # noqa: E501 - :type: ProtobufAny - """ - - self._launch_conditions = launch_conditions - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py deleted file mode 100644 index 5fea5a8e2b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_spec.py +++ /dev/null @@ -1,540 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 -from flyteadmin.models.admin_auth import AdminAuth # noqa: F401,E501 -from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: F401,E501 -from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 -from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 -from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: F401,E501 -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: F401,E501 -from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 -from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 - - -class AdminLaunchPlanSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'workflow_id': 'CoreIdentifier', - 'entity_metadata': 'AdminLaunchPlanMetadata', - 'default_inputs': 'CoreParameterMap', - 'fixed_inputs': 'CoreLiteralMap', - 'role': 'str', - 'labels': 'AdminLabels', - 'annotations': 'AdminAnnotations', - 'auth': 'AdminAuth', - 'auth_role': 'AdminAuthRole', - 'security_context': 'CoreSecurityContext', - 'quality_of_service': 'CoreQualityOfService', - 'raw_output_data_config': 'AdminRawOutputDataConfig', - 'max_parallelism': 'int', - 'interruptible': 'bool', - 'overwrite_cache': 'bool', - 'envs': 'AdminEnvs' - } - - attribute_map = { - 'workflow_id': 'workflow_id', - 'entity_metadata': 'entity_metadata', - 'default_inputs': 'default_inputs', - 'fixed_inputs': 'fixed_inputs', - 'role': 'role', - 'labels': 'labels', - 'annotations': 'annotations', - 'auth': 'auth', - 'auth_role': 'auth_role', - 'security_context': 'security_context', - 'quality_of_service': 'quality_of_service', - 'raw_output_data_config': 'raw_output_data_config', - 'max_parallelism': 'max_parallelism', - 'interruptible': 'interruptible', - 'overwrite_cache': 'overwrite_cache', - 'envs': 'envs' - } - - def __init__(self, workflow_id=None, entity_metadata=None, default_inputs=None, fixed_inputs=None, role=None, labels=None, annotations=None, auth=None, auth_role=None, security_context=None, quality_of_service=None, raw_output_data_config=None, max_parallelism=None, interruptible=None, overwrite_cache=None, envs=None): # noqa: E501 - """AdminLaunchPlanSpec - a model defined in Swagger""" # noqa: E501 - - self._workflow_id = None - self._entity_metadata = None - self._default_inputs = None - self._fixed_inputs = None - self._role = None - self._labels = None - self._annotations = None - self._auth = None - self._auth_role = None - self._security_context = None - self._quality_of_service = None - self._raw_output_data_config = None - self._max_parallelism = None - self._interruptible = None - self._overwrite_cache = None - self._envs = None - self.discriminator = None - - if workflow_id is not None: - self.workflow_id = workflow_id - if entity_metadata is not None: - self.entity_metadata = entity_metadata - if default_inputs is not None: - self.default_inputs = default_inputs - if fixed_inputs is not None: - self.fixed_inputs = fixed_inputs - if role is not None: - self.role = role - if labels is not None: - self.labels = labels - if annotations is not None: - self.annotations = annotations - if auth is not None: - self.auth = auth - if auth_role is not None: - self.auth_role = auth_role - if security_context is not None: - self.security_context = security_context - if quality_of_service is not None: - self.quality_of_service = quality_of_service - if raw_output_data_config is not None: - self.raw_output_data_config = raw_output_data_config - if max_parallelism is not None: - self.max_parallelism = max_parallelism - if interruptible is not None: - self.interruptible = interruptible - if overwrite_cache is not None: - self.overwrite_cache = overwrite_cache - if envs is not None: - self.envs = envs - - @property - def workflow_id(self): - """Gets the workflow_id of this AdminLaunchPlanSpec. # noqa: E501 - - - :return: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._workflow_id - - @workflow_id.setter - def workflow_id(self, workflow_id): - """Sets the workflow_id of this AdminLaunchPlanSpec. - - - :param workflow_id: The workflow_id of this AdminLaunchPlanSpec. # noqa: E501 - :type: CoreIdentifier - """ - - self._workflow_id = workflow_id - - @property - def entity_metadata(self): - """Gets the entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 - - - :return: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminLaunchPlanMetadata - """ - return self._entity_metadata - - @entity_metadata.setter - def entity_metadata(self, entity_metadata): - """Sets the entity_metadata of this AdminLaunchPlanSpec. - - - :param entity_metadata: The entity_metadata of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminLaunchPlanMetadata - """ - - self._entity_metadata = entity_metadata - - @property - def default_inputs(self): - """Gets the default_inputs of this AdminLaunchPlanSpec. # noqa: E501 - - Input values to be passed for the execution. These can be overridden when an execution is created with this launch plan. # noqa: E501 - - :return: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: CoreParameterMap - """ - return self._default_inputs - - @default_inputs.setter - def default_inputs(self, default_inputs): - """Sets the default_inputs of this AdminLaunchPlanSpec. - - Input values to be passed for the execution. These can be overridden when an execution is created with this launch plan. # noqa: E501 - - :param default_inputs: The default_inputs of this AdminLaunchPlanSpec. # noqa: E501 - :type: CoreParameterMap - """ - - self._default_inputs = default_inputs - - @property - def fixed_inputs(self): - """Gets the fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 - - Fixed, non-overridable inputs for the Launch Plan. These can not be overridden when an execution is created with this launch plan. # noqa: E501 - - :return: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._fixed_inputs - - @fixed_inputs.setter - def fixed_inputs(self, fixed_inputs): - """Sets the fixed_inputs of this AdminLaunchPlanSpec. - - Fixed, non-overridable inputs for the Launch Plan. These can not be overridden when an execution is created with this launch plan. # noqa: E501 - - :param fixed_inputs: The fixed_inputs of this AdminLaunchPlanSpec. # noqa: E501 - :type: CoreLiteralMap - """ - - self._fixed_inputs = fixed_inputs - - @property - def role(self): - """Gets the role of this AdminLaunchPlanSpec. # noqa: E501 - - - :return: The role of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: str - """ - return self._role - - @role.setter - def role(self, role): - """Sets the role of this AdminLaunchPlanSpec. - - - :param role: The role of this AdminLaunchPlanSpec. # noqa: E501 - :type: str - """ - - self._role = role - - @property - def labels(self): - """Gets the labels of this AdminLaunchPlanSpec. # noqa: E501 - - Custom labels to be applied to the execution resource. # noqa: E501 - - :return: The labels of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminLabels - """ - return self._labels - - @labels.setter - def labels(self, labels): - """Sets the labels of this AdminLaunchPlanSpec. - - Custom labels to be applied to the execution resource. # noqa: E501 - - :param labels: The labels of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminLabels - """ - - self._labels = labels - - @property - def annotations(self): - """Gets the annotations of this AdminLaunchPlanSpec. # noqa: E501 - - Custom annotations to be applied to the execution resource. # noqa: E501 - - :return: The annotations of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminAnnotations - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """Sets the annotations of this AdminLaunchPlanSpec. - - Custom annotations to be applied to the execution resource. # noqa: E501 - - :param annotations: The annotations of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminAnnotations - """ - - self._annotations = annotations - - @property - def auth(self): - """Gets the auth of this AdminLaunchPlanSpec. # noqa: E501 - - Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 - - :return: The auth of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminAuth - """ - return self._auth - - @auth.setter - def auth(self, auth): - """Sets the auth of this AdminLaunchPlanSpec. - - Indicates the permission associated with workflow executions triggered with this launch plan. # noqa: E501 - - :param auth: The auth of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminAuth - """ - - self._auth = auth - - @property - def auth_role(self): - """Gets the auth_role of this AdminLaunchPlanSpec. # noqa: E501 - - - :return: The auth_role of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminAuthRole - """ - return self._auth_role - - @auth_role.setter - def auth_role(self, auth_role): - """Sets the auth_role of this AdminLaunchPlanSpec. - - - :param auth_role: The auth_role of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminAuthRole - """ - - self._auth_role = auth_role - - @property - def security_context(self): - """Gets the security_context of this AdminLaunchPlanSpec. # noqa: E501 - - - :return: The security_context of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: CoreSecurityContext - """ - return self._security_context - - @security_context.setter - def security_context(self, security_context): - """Sets the security_context of this AdminLaunchPlanSpec. - - - :param security_context: The security_context of this AdminLaunchPlanSpec. # noqa: E501 - :type: CoreSecurityContext - """ - - self._security_context = security_context - - @property - def quality_of_service(self): - """Gets the quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 - - Indicates the runtime priority of the execution. # noqa: E501 - - :return: The quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: CoreQualityOfService - """ - return self._quality_of_service - - @quality_of_service.setter - def quality_of_service(self, quality_of_service): - """Sets the quality_of_service of this AdminLaunchPlanSpec. - - Indicates the runtime priority of the execution. # noqa: E501 - - :param quality_of_service: The quality_of_service of this AdminLaunchPlanSpec. # noqa: E501 - :type: CoreQualityOfService - """ - - self._quality_of_service = quality_of_service - - @property - def raw_output_data_config(self): - """Gets the raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 - - Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 - - :return: The raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminRawOutputDataConfig - """ - return self._raw_output_data_config - - @raw_output_data_config.setter - def raw_output_data_config(self, raw_output_data_config): - """Sets the raw_output_data_config of this AdminLaunchPlanSpec. - - Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 - - :param raw_output_data_config: The raw_output_data_config of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminRawOutputDataConfig - """ - - self._raw_output_data_config = raw_output_data_config - - @property - def max_parallelism(self): - """Gets the max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 - - Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 - - :return: The max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: int - """ - return self._max_parallelism - - @max_parallelism.setter - def max_parallelism(self, max_parallelism): - """Sets the max_parallelism of this AdminLaunchPlanSpec. - - Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. This is useful to achieve fairness. Note: MapTasks are regarded as one unit, and parallelism/concurrency of MapTasks is independent from this. # noqa: E501 - - :param max_parallelism: The max_parallelism of this AdminLaunchPlanSpec. # noqa: E501 - :type: int - """ - - self._max_parallelism = max_parallelism - - @property - def interruptible(self): - """Gets the interruptible of this AdminLaunchPlanSpec. # noqa: E501 - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :return: The interruptible of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this AdminLaunchPlanSpec. - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :param interruptible: The interruptible of this AdminLaunchPlanSpec. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - @property - def overwrite_cache(self): - """Gets the overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :return: The overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: bool - """ - return self._overwrite_cache - - @overwrite_cache.setter - def overwrite_cache(self, overwrite_cache): - """Sets the overwrite_cache of this AdminLaunchPlanSpec. - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :param overwrite_cache: The overwrite_cache of this AdminLaunchPlanSpec. # noqa: E501 - :type: bool - """ - - self._overwrite_cache = overwrite_cache - - @property - def envs(self): - """Gets the envs of this AdminLaunchPlanSpec. # noqa: E501 - - Environment variables to be set for the execution. # noqa: E501 - - :return: The envs of this AdminLaunchPlanSpec. # noqa: E501 - :rtype: AdminEnvs - """ - return self._envs - - @envs.setter - def envs(self, envs): - """Sets the envs of this AdminLaunchPlanSpec. - - Environment variables to be set for the execution. # noqa: E501 - - :param envs: The envs of this AdminLaunchPlanSpec. # noqa: E501 - :type: AdminEnvs - """ - - self._envs = envs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py deleted file mode 100644 index 49b1828a80..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_state.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminLaunchPlanState(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - INACTIVE = "INACTIVE" - ACTIVE = "ACTIVE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminLaunchPlanState - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanState, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanState): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py deleted file mode 100644 index bfd79c3a1d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_request.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminLaunchPlanUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'state': 'AdminLaunchPlanState' - } - - attribute_map = { - 'id': 'id', - 'state': 'state' - } - - def __init__(self, id=None, state=None): # noqa: E501 - """AdminLaunchPlanUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._state = None - self.discriminator = None - - if id is not None: - self.id = id - if state is not None: - self.state = state - - @property - def id(self): - """Gets the id of this AdminLaunchPlanUpdateRequest. # noqa: E501 - - Identifier of launch plan for which to change state. +required. # noqa: E501 - - :return: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminLaunchPlanUpdateRequest. - - Identifier of launch plan for which to change state. +required. # noqa: E501 - - :param id: The id of this AdminLaunchPlanUpdateRequest. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def state(self): - """Gets the state of this AdminLaunchPlanUpdateRequest. # noqa: E501 - - Desired state to apply to the launch plan. +required. # noqa: E501 - - :return: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 - :rtype: AdminLaunchPlanState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminLaunchPlanUpdateRequest. - - Desired state to apply to the launch plan. +required. # noqa: E501 - - :param state: The state of this AdminLaunchPlanUpdateRequest. # noqa: E501 - :type: AdminLaunchPlanState - """ - - self._state = state - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py deleted file mode 100644 index 03932d5cd2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_launch_plan_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminLaunchPlanUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminLaunchPlanUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLaunchPlanUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLaunchPlanUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py deleted file mode 100644 index c1efcb34b6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_list_matchable_attributes_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration # noqa: F401,E501 - - -class AdminListMatchableAttributesResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'configurations': 'list[AdminMatchableAttributesConfiguration]' - } - - attribute_map = { - 'configurations': 'configurations' - } - - def __init__(self, configurations=None): # noqa: E501 - """AdminListMatchableAttributesResponse - a model defined in Swagger""" # noqa: E501 - - self._configurations = None - self.discriminator = None - - if configurations is not None: - self.configurations = configurations - - @property - def configurations(self): - """Gets the configurations of this AdminListMatchableAttributesResponse. # noqa: E501 - - - :return: The configurations of this AdminListMatchableAttributesResponse. # noqa: E501 - :rtype: list[AdminMatchableAttributesConfiguration] - """ - return self._configurations - - @configurations.setter - def configurations(self, configurations): - """Sets the configurations of this AdminListMatchableAttributesResponse. - - - :param configurations: The configurations of this AdminListMatchableAttributesResponse. # noqa: E501 - :type: list[AdminMatchableAttributesConfiguration] - """ - - self._configurations = configurations - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminListMatchableAttributesResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminListMatchableAttributesResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py deleted file mode 100644 index 6d7c78b497..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_literal_map_blob.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 - - -class AdminLiteralMapBlob(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'CoreLiteralMap', - 'uri': 'str' - } - - attribute_map = { - 'values': 'values', - 'uri': 'uri' - } - - def __init__(self, values=None, uri=None): # noqa: E501 - """AdminLiteralMapBlob - a model defined in Swagger""" # noqa: E501 - - self._values = None - self._uri = None - self.discriminator = None - - if values is not None: - self.values = values - if uri is not None: - self.uri = uri - - @property - def values(self): - """Gets the values of this AdminLiteralMapBlob. # noqa: E501 - - - :return: The values of this AdminLiteralMapBlob. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this AdminLiteralMapBlob. - - - :param values: The values of this AdminLiteralMapBlob. # noqa: E501 - :type: CoreLiteralMap - """ - - self._values = values - - @property - def uri(self): - """Gets the uri of this AdminLiteralMapBlob. # noqa: E501 - - - :return: The uri of this AdminLiteralMapBlob. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this AdminLiteralMapBlob. - - - :param uri: The uri of this AdminLiteralMapBlob. # noqa: E501 - :type: str - """ - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminLiteralMapBlob, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminLiteralMapBlob): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py deleted file mode 100644 index a9be455f25..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_attributes_configuration.py +++ /dev/null @@ -1,221 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 - - -class AdminMatchableAttributesConfiguration(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminMatchingAttributes', - 'domain': 'str', - 'project': 'str', - 'workflow': 'str', - 'launch_plan': 'str' - } - - attribute_map = { - 'attributes': 'attributes', - 'domain': 'domain', - 'project': 'project', - 'workflow': 'workflow', - 'launch_plan': 'launch_plan' - } - - def __init__(self, attributes=None, domain=None, project=None, workflow=None, launch_plan=None): # noqa: E501 - """AdminMatchableAttributesConfiguration - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self._domain = None - self._project = None - self._workflow = None - self._launch_plan = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - if domain is not None: - self.domain = domain - if project is not None: - self.project = project - if workflow is not None: - self.workflow = workflow - if launch_plan is not None: - self.launch_plan = launch_plan - - @property - def attributes(self): - """Gets the attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 - - - :return: The attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 - :rtype: AdminMatchingAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminMatchableAttributesConfiguration. - - - :param attributes: The attributes of this AdminMatchableAttributesConfiguration. # noqa: E501 - :type: AdminMatchingAttributes - """ - - self._attributes = attributes - - @property - def domain(self): - """Gets the domain of this AdminMatchableAttributesConfiguration. # noqa: E501 - - - :return: The domain of this AdminMatchableAttributesConfiguration. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminMatchableAttributesConfiguration. - - - :param domain: The domain of this AdminMatchableAttributesConfiguration. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def project(self): - """Gets the project of this AdminMatchableAttributesConfiguration. # noqa: E501 - - - :return: The project of this AdminMatchableAttributesConfiguration. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminMatchableAttributesConfiguration. - - - :param project: The project of this AdminMatchableAttributesConfiguration. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def workflow(self): - """Gets the workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 - - - :return: The workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 - :rtype: str - """ - return self._workflow - - @workflow.setter - def workflow(self, workflow): - """Sets the workflow of this AdminMatchableAttributesConfiguration. - - - :param workflow: The workflow of this AdminMatchableAttributesConfiguration. # noqa: E501 - :type: str - """ - - self._workflow = workflow - - @property - def launch_plan(self): - """Gets the launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 - - - :return: The launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 - :rtype: str - """ - return self._launch_plan - - @launch_plan.setter - def launch_plan(self, launch_plan): - """Sets the launch_plan of this AdminMatchableAttributesConfiguration. - - - :param launch_plan: The launch_plan of this AdminMatchableAttributesConfiguration. # noqa: E501 - :type: str - """ - - self._launch_plan = launch_plan - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminMatchableAttributesConfiguration, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminMatchableAttributesConfiguration): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py deleted file mode 100644 index 2c234614f3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matchable_resource.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminMatchableResource(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - TASK_RESOURCE = "TASK_RESOURCE" - CLUSTER_RESOURCE = "CLUSTER_RESOURCE" - EXECUTION_QUEUE = "EXECUTION_QUEUE" - EXECUTION_CLUSTER_LABEL = "EXECUTION_CLUSTER_LABEL" - QUALITY_OF_SERVICE_SPECIFICATION = "QUALITY_OF_SERVICE_SPECIFICATION" - PLUGIN_OVERRIDE = "PLUGIN_OVERRIDE" - WORKFLOW_EXECUTION_CONFIG = "WORKFLOW_EXECUTION_CONFIG" - CLUSTER_ASSIGNMENT = "CLUSTER_ASSIGNMENT" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminMatchableResource - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminMatchableResource, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminMatchableResource): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py deleted file mode 100644 index aadcc1d21c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_matching_attributes.py +++ /dev/null @@ -1,306 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: F401,E501 -from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes # noqa: F401,E501 -from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel # noqa: F401,E501 -from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes # noqa: F401,E501 -from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides # noqa: F401,E501 -from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes # noqa: F401,E501 -from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig # noqa: F401,E501 -from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 - - -class AdminMatchingAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'task_resource_attributes': 'AdminTaskResourceAttributes', - 'cluster_resource_attributes': 'AdminClusterResourceAttributes', - 'execution_queue_attributes': 'AdminExecutionQueueAttributes', - 'execution_cluster_label': 'AdminExecutionClusterLabel', - 'quality_of_service': 'CoreQualityOfService', - 'plugin_overrides': 'AdminPluginOverrides', - 'workflow_execution_config': 'AdminWorkflowExecutionConfig', - 'cluster_assignment': 'AdminClusterAssignment' - } - - attribute_map = { - 'task_resource_attributes': 'task_resource_attributes', - 'cluster_resource_attributes': 'cluster_resource_attributes', - 'execution_queue_attributes': 'execution_queue_attributes', - 'execution_cluster_label': 'execution_cluster_label', - 'quality_of_service': 'quality_of_service', - 'plugin_overrides': 'plugin_overrides', - 'workflow_execution_config': 'workflow_execution_config', - 'cluster_assignment': 'cluster_assignment' - } - - def __init__(self, task_resource_attributes=None, cluster_resource_attributes=None, execution_queue_attributes=None, execution_cluster_label=None, quality_of_service=None, plugin_overrides=None, workflow_execution_config=None, cluster_assignment=None): # noqa: E501 - """AdminMatchingAttributes - a model defined in Swagger""" # noqa: E501 - - self._task_resource_attributes = None - self._cluster_resource_attributes = None - self._execution_queue_attributes = None - self._execution_cluster_label = None - self._quality_of_service = None - self._plugin_overrides = None - self._workflow_execution_config = None - self._cluster_assignment = None - self.discriminator = None - - if task_resource_attributes is not None: - self.task_resource_attributes = task_resource_attributes - if cluster_resource_attributes is not None: - self.cluster_resource_attributes = cluster_resource_attributes - if execution_queue_attributes is not None: - self.execution_queue_attributes = execution_queue_attributes - if execution_cluster_label is not None: - self.execution_cluster_label = execution_cluster_label - if quality_of_service is not None: - self.quality_of_service = quality_of_service - if plugin_overrides is not None: - self.plugin_overrides = plugin_overrides - if workflow_execution_config is not None: - self.workflow_execution_config = workflow_execution_config - if cluster_assignment is not None: - self.cluster_assignment = cluster_assignment - - @property - def task_resource_attributes(self): - """Gets the task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - - - :return: The task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminTaskResourceAttributes - """ - return self._task_resource_attributes - - @task_resource_attributes.setter - def task_resource_attributes(self, task_resource_attributes): - """Sets the task_resource_attributes of this AdminMatchingAttributes. - - - :param task_resource_attributes: The task_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - :type: AdminTaskResourceAttributes - """ - - self._task_resource_attributes = task_resource_attributes - - @property - def cluster_resource_attributes(self): - """Gets the cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - - - :return: The cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminClusterResourceAttributes - """ - return self._cluster_resource_attributes - - @cluster_resource_attributes.setter - def cluster_resource_attributes(self, cluster_resource_attributes): - """Sets the cluster_resource_attributes of this AdminMatchingAttributes. - - - :param cluster_resource_attributes: The cluster_resource_attributes of this AdminMatchingAttributes. # noqa: E501 - :type: AdminClusterResourceAttributes - """ - - self._cluster_resource_attributes = cluster_resource_attributes - - @property - def execution_queue_attributes(self): - """Gets the execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 - - - :return: The execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminExecutionQueueAttributes - """ - return self._execution_queue_attributes - - @execution_queue_attributes.setter - def execution_queue_attributes(self, execution_queue_attributes): - """Sets the execution_queue_attributes of this AdminMatchingAttributes. - - - :param execution_queue_attributes: The execution_queue_attributes of this AdminMatchingAttributes. # noqa: E501 - :type: AdminExecutionQueueAttributes - """ - - self._execution_queue_attributes = execution_queue_attributes - - @property - def execution_cluster_label(self): - """Gets the execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 - - - :return: The execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminExecutionClusterLabel - """ - return self._execution_cluster_label - - @execution_cluster_label.setter - def execution_cluster_label(self, execution_cluster_label): - """Sets the execution_cluster_label of this AdminMatchingAttributes. - - - :param execution_cluster_label: The execution_cluster_label of this AdminMatchingAttributes. # noqa: E501 - :type: AdminExecutionClusterLabel - """ - - self._execution_cluster_label = execution_cluster_label - - @property - def quality_of_service(self): - """Gets the quality_of_service of this AdminMatchingAttributes. # noqa: E501 - - - :return: The quality_of_service of this AdminMatchingAttributes. # noqa: E501 - :rtype: CoreQualityOfService - """ - return self._quality_of_service - - @quality_of_service.setter - def quality_of_service(self, quality_of_service): - """Sets the quality_of_service of this AdminMatchingAttributes. - - - :param quality_of_service: The quality_of_service of this AdminMatchingAttributes. # noqa: E501 - :type: CoreQualityOfService - """ - - self._quality_of_service = quality_of_service - - @property - def plugin_overrides(self): - """Gets the plugin_overrides of this AdminMatchingAttributes. # noqa: E501 - - - :return: The plugin_overrides of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminPluginOverrides - """ - return self._plugin_overrides - - @plugin_overrides.setter - def plugin_overrides(self, plugin_overrides): - """Sets the plugin_overrides of this AdminMatchingAttributes. - - - :param plugin_overrides: The plugin_overrides of this AdminMatchingAttributes. # noqa: E501 - :type: AdminPluginOverrides - """ - - self._plugin_overrides = plugin_overrides - - @property - def workflow_execution_config(self): - """Gets the workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 - - - :return: The workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminWorkflowExecutionConfig - """ - return self._workflow_execution_config - - @workflow_execution_config.setter - def workflow_execution_config(self, workflow_execution_config): - """Sets the workflow_execution_config of this AdminMatchingAttributes. - - - :param workflow_execution_config: The workflow_execution_config of this AdminMatchingAttributes. # noqa: E501 - :type: AdminWorkflowExecutionConfig - """ - - self._workflow_execution_config = workflow_execution_config - - @property - def cluster_assignment(self): - """Gets the cluster_assignment of this AdminMatchingAttributes. # noqa: E501 - - - :return: The cluster_assignment of this AdminMatchingAttributes. # noqa: E501 - :rtype: AdminClusterAssignment - """ - return self._cluster_assignment - - @cluster_assignment.setter - def cluster_assignment(self, cluster_assignment): - """Sets the cluster_assignment of this AdminMatchingAttributes. - - - :param cluster_assignment: The cluster_assignment of this AdminMatchingAttributes. # noqa: E501 - :type: AdminClusterAssignment - """ - - self._cluster_assignment = cluster_assignment - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminMatchingAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminMatchingAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py deleted file mode 100644 index 9a8600de92..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 -from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: F401,E501 -from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 - - -class AdminNamedEntity(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'resource_type': 'CoreResourceType', - 'id': 'AdminNamedEntityIdentifier', - 'metadata': 'AdminNamedEntityMetadata' - } - - attribute_map = { - 'resource_type': 'resource_type', - 'id': 'id', - 'metadata': 'metadata' - } - - def __init__(self, resource_type=None, id=None, metadata=None): # noqa: E501 - """AdminNamedEntity - a model defined in Swagger""" # noqa: E501 - - self._resource_type = None - self._id = None - self._metadata = None - self.discriminator = None - - if resource_type is not None: - self.resource_type = resource_type - if id is not None: - self.id = id - if metadata is not None: - self.metadata = metadata - - @property - def resource_type(self): - """Gets the resource_type of this AdminNamedEntity. # noqa: E501 - - Resource type of the named entity. One of Task, Workflow or LaunchPlan. # noqa: E501 - - :return: The resource_type of this AdminNamedEntity. # noqa: E501 - :rtype: CoreResourceType - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this AdminNamedEntity. - - Resource type of the named entity. One of Task, Workflow or LaunchPlan. # noqa: E501 - - :param resource_type: The resource_type of this AdminNamedEntity. # noqa: E501 - :type: CoreResourceType - """ - - self._resource_type = resource_type - - @property - def id(self): - """Gets the id of this AdminNamedEntity. # noqa: E501 - - - :return: The id of this AdminNamedEntity. # noqa: E501 - :rtype: AdminNamedEntityIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminNamedEntity. - - - :param id: The id of this AdminNamedEntity. # noqa: E501 - :type: AdminNamedEntityIdentifier - """ - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this AdminNamedEntity. # noqa: E501 - - Additional metadata around a named entity. # noqa: E501 - - :return: The metadata of this AdminNamedEntity. # noqa: E501 - :rtype: AdminNamedEntityMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this AdminNamedEntity. - - Additional metadata around a named entity. # noqa: E501 - - :param metadata: The metadata of this AdminNamedEntity. # noqa: E501 - :type: AdminNamedEntityMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py deleted file mode 100644 index 8a06241403..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminNamedEntityIdentifier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'name': 'str' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'name': 'name' - } - - def __init__(self, project=None, domain=None, name=None): # noqa: E501 - """AdminNamedEntityIdentifier - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._name = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if name is not None: - self.name = name - - @property - def project(self): - """Gets the project of this AdminNamedEntityIdentifier. # noqa: E501 - - Name of the project the resource belongs to. # noqa: E501 - - :return: The project of this AdminNamedEntityIdentifier. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminNamedEntityIdentifier. - - Name of the project the resource belongs to. # noqa: E501 - - :param project: The project of this AdminNamedEntityIdentifier. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminNamedEntityIdentifier. # noqa: E501 - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :return: The domain of this AdminNamedEntityIdentifier. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminNamedEntityIdentifier. - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :param domain: The domain of this AdminNamedEntityIdentifier. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def name(self): - """Gets the name of this AdminNamedEntityIdentifier. # noqa: E501 - - - :return: The name of this AdminNamedEntityIdentifier. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminNamedEntityIdentifier. - - - :param name: The name of this AdminNamedEntityIdentifier. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityIdentifier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py deleted file mode 100644 index 04a4ad0284..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_identifier_list.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 - - -class AdminNamedEntityIdentifierList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'entities': 'list[AdminNamedEntityIdentifier]', - 'token': 'str' - } - - attribute_map = { - 'entities': 'entities', - 'token': 'token' - } - - def __init__(self, entities=None, token=None): # noqa: E501 - """AdminNamedEntityIdentifierList - a model defined in Swagger""" # noqa: E501 - - self._entities = None - self._token = None - self.discriminator = None - - if entities is not None: - self.entities = entities - if token is not None: - self.token = token - - @property - def entities(self): - """Gets the entities of this AdminNamedEntityIdentifierList. # noqa: E501 - - A list of identifiers. # noqa: E501 - - :return: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 - :rtype: list[AdminNamedEntityIdentifier] - """ - return self._entities - - @entities.setter - def entities(self, entities): - """Sets the entities of this AdminNamedEntityIdentifierList. - - A list of identifiers. # noqa: E501 - - :param entities: The entities of this AdminNamedEntityIdentifierList. # noqa: E501 - :type: list[AdminNamedEntityIdentifier] - """ - - self._entities = entities - - @property - def token(self): - """Gets the token of this AdminNamedEntityIdentifierList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminNamedEntityIdentifierList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminNamedEntityIdentifierList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminNamedEntityIdentifierList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityIdentifierList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityIdentifierList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py deleted file mode 100644 index 6a97699882..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_list.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_named_entity import AdminNamedEntity # noqa: F401,E501 - - -class AdminNamedEntityList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'entities': 'list[AdminNamedEntity]', - 'token': 'str' - } - - attribute_map = { - 'entities': 'entities', - 'token': 'token' - } - - def __init__(self, entities=None, token=None): # noqa: E501 - """AdminNamedEntityList - a model defined in Swagger""" # noqa: E501 - - self._entities = None - self._token = None - self.discriminator = None - - if entities is not None: - self.entities = entities - if token is not None: - self.token = token - - @property - def entities(self): - """Gets the entities of this AdminNamedEntityList. # noqa: E501 - - - :return: The entities of this AdminNamedEntityList. # noqa: E501 - :rtype: list[AdminNamedEntity] - """ - return self._entities - - @entities.setter - def entities(self, entities): - """Sets the entities of this AdminNamedEntityList. - - - :param entities: The entities of this AdminNamedEntityList. # noqa: E501 - :type: list[AdminNamedEntity] - """ - - self._entities = entities - - @property - def token(self): - """Gets the token of this AdminNamedEntityList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminNamedEntityList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminNamedEntityList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminNamedEntityList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py deleted file mode 100644 index e7e538e04c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_metadata.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState # noqa: F401,E501 - - -class AdminNamedEntityMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'description': 'str', - 'state': 'AdminNamedEntityState' - } - - attribute_map = { - 'description': 'description', - 'state': 'state' - } - - def __init__(self, description=None, state=None): # noqa: E501 - """AdminNamedEntityMetadata - a model defined in Swagger""" # noqa: E501 - - self._description = None - self._state = None - self.discriminator = None - - if description is not None: - self.description = description - if state is not None: - self.state = state - - @property - def description(self): - """Gets the description of this AdminNamedEntityMetadata. # noqa: E501 - - - :return: The description of this AdminNamedEntityMetadata. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this AdminNamedEntityMetadata. - - - :param description: The description of this AdminNamedEntityMetadata. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def state(self): - """Gets the state of this AdminNamedEntityMetadata. # noqa: E501 - - Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. # noqa: E501 - - :return: The state of this AdminNamedEntityMetadata. # noqa: E501 - :rtype: AdminNamedEntityState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminNamedEntityMetadata. - - Shared state across all version of the entity At this point in time, only workflow entities can have their state archived. # noqa: E501 - - :param state: The state of this AdminNamedEntityMetadata. # noqa: E501 - :type: AdminNamedEntityState - """ - - self._state = state - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py deleted file mode 100644 index c2739d2331..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_state.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminNamedEntityState(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - NAMED_ENTITY_ACTIVE = "NAMED_ENTITY_ACTIVE" - NAMED_ENTITY_ARCHIVED = "NAMED_ENTITY_ARCHIVED" - SYSTEM_GENERATED = "SYSTEM_GENERATED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminNamedEntityState - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityState, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityState): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py deleted file mode 100644 index 92b851213d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_request.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: F401,E501 -from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: F401,E501 -from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 - - -class AdminNamedEntityUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'resource_type': 'CoreResourceType', - 'id': 'AdminNamedEntityIdentifier', - 'metadata': 'AdminNamedEntityMetadata' - } - - attribute_map = { - 'resource_type': 'resource_type', - 'id': 'id', - 'metadata': 'metadata' - } - - def __init__(self, resource_type=None, id=None, metadata=None): # noqa: E501 - """AdminNamedEntityUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._resource_type = None - self._id = None - self._metadata = None - self.discriminator = None - - if resource_type is not None: - self.resource_type = resource_type - if id is not None: - self.id = id - if metadata is not None: - self.metadata = metadata - - @property - def resource_type(self): - """Gets the resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 - - - :return: The resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 - :rtype: CoreResourceType - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this AdminNamedEntityUpdateRequest. - - - :param resource_type: The resource_type of this AdminNamedEntityUpdateRequest. # noqa: E501 - :type: CoreResourceType - """ - - self._resource_type = resource_type - - @property - def id(self): - """Gets the id of this AdminNamedEntityUpdateRequest. # noqa: E501 - - - :return: The id of this AdminNamedEntityUpdateRequest. # noqa: E501 - :rtype: AdminNamedEntityIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminNamedEntityUpdateRequest. - - - :param id: The id of this AdminNamedEntityUpdateRequest. # noqa: E501 - :type: AdminNamedEntityIdentifier - """ - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 - - - :return: The metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 - :rtype: AdminNamedEntityMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this AdminNamedEntityUpdateRequest. - - - :param metadata: The metadata of this AdminNamedEntityUpdateRequest. # noqa: E501 - :type: AdminNamedEntityMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py deleted file mode 100644 index fc86d9ea88..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_named_entity_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminNamedEntityUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminNamedEntityUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNamedEntityUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNamedEntityUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py deleted file mode 100644 index 67eb4c68b8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_closure.py +++ /dev/null @@ -1,423 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 -from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata # noqa: F401,E501 -from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: F401,E501 - - -class AdminNodeExecutionClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'output_uri': 'str', - 'error': 'CoreExecutionError', - 'output_data': 'CoreLiteralMap', - 'phase': 'CoreNodeExecutionPhase', - 'started_at': 'datetime', - 'duration': 'str', - 'created_at': 'datetime', - 'updated_at': 'datetime', - 'workflow_node_metadata': 'FlyteidladminWorkflowNodeMetadata', - 'task_node_metadata': 'FlyteidladminTaskNodeMetadata', - 'deck_uri': 'str', - 'dynamic_job_spec_uri': 'str' - } - - attribute_map = { - 'output_uri': 'output_uri', - 'error': 'error', - 'output_data': 'output_data', - 'phase': 'phase', - 'started_at': 'started_at', - 'duration': 'duration', - 'created_at': 'created_at', - 'updated_at': 'updated_at', - 'workflow_node_metadata': 'workflow_node_metadata', - 'task_node_metadata': 'task_node_metadata', - 'deck_uri': 'deck_uri', - 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' - } - - def __init__(self, output_uri=None, error=None, output_data=None, phase=None, started_at=None, duration=None, created_at=None, updated_at=None, workflow_node_metadata=None, task_node_metadata=None, deck_uri=None, dynamic_job_spec_uri=None): # noqa: E501 - """AdminNodeExecutionClosure - a model defined in Swagger""" # noqa: E501 - - self._output_uri = None - self._error = None - self._output_data = None - self._phase = None - self._started_at = None - self._duration = None - self._created_at = None - self._updated_at = None - self._workflow_node_metadata = None - self._task_node_metadata = None - self._deck_uri = None - self._dynamic_job_spec_uri = None - self.discriminator = None - - if output_uri is not None: - self.output_uri = output_uri - if error is not None: - self.error = error - if output_data is not None: - self.output_data = output_data - if phase is not None: - self.phase = phase - if started_at is not None: - self.started_at = started_at - if duration is not None: - self.duration = duration - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - if workflow_node_metadata is not None: - self.workflow_node_metadata = workflow_node_metadata - if task_node_metadata is not None: - self.task_node_metadata = task_node_metadata - if deck_uri is not None: - self.deck_uri = deck_uri - if dynamic_job_spec_uri is not None: - self.dynamic_job_spec_uri = dynamic_job_spec_uri - - @property - def output_uri(self): - """Gets the output_uri of this AdminNodeExecutionClosure. # noqa: E501 - - Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 - - :return: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._output_uri - - @output_uri.setter - def output_uri(self, output_uri): - """Sets the output_uri of this AdminNodeExecutionClosure. - - Links to a remotely stored, serialized core.LiteralMap of node execution outputs. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 - - :param output_uri: The output_uri of this AdminNodeExecutionClosure. # noqa: E501 - :type: str - """ - - self._output_uri = output_uri - - @property - def error(self): - """Gets the error of this AdminNodeExecutionClosure. # noqa: E501 - - - :return: The error of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this AdminNodeExecutionClosure. - - - :param error: The error of this AdminNodeExecutionClosure. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def output_data(self): - """Gets the output_data of this AdminNodeExecutionClosure. # noqa: E501 - - Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 - - :return: The output_data of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this AdminNodeExecutionClosure. - - Raw output data produced by this node execution. DEPRECATED. Use GetNodeExecutionData to fetch output data instead. # noqa: E501 - - :param output_data: The output_data of this AdminNodeExecutionClosure. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - @property - def phase(self): - """Gets the phase of this AdminNodeExecutionClosure. # noqa: E501 - - The last recorded phase for this node execution. # noqa: E501 - - :return: The phase of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: CoreNodeExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this AdminNodeExecutionClosure. - - The last recorded phase for this node execution. # noqa: E501 - - :param phase: The phase of this AdminNodeExecutionClosure. # noqa: E501 - :type: CoreNodeExecutionPhase - """ - - self._phase = phase - - @property - def started_at(self): - """Gets the started_at of this AdminNodeExecutionClosure. # noqa: E501 - - Time at which the node execution began running. # noqa: E501 - - :return: The started_at of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._started_at - - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this AdminNodeExecutionClosure. - - Time at which the node execution began running. # noqa: E501 - - :param started_at: The started_at of this AdminNodeExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._started_at = started_at - - @property - def duration(self): - """Gets the duration of this AdminNodeExecutionClosure. # noqa: E501 - - The amount of time the node execution spent running. # noqa: E501 - - :return: The duration of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this AdminNodeExecutionClosure. - - The amount of time the node execution spent running. # noqa: E501 - - :param duration: The duration of this AdminNodeExecutionClosure. # noqa: E501 - :type: str - """ - - self._duration = duration - - @property - def created_at(self): - """Gets the created_at of this AdminNodeExecutionClosure. # noqa: E501 - - Time at which the node execution was created. # noqa: E501 - - :return: The created_at of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminNodeExecutionClosure. - - Time at which the node execution was created. # noqa: E501 - - :param created_at: The created_at of this AdminNodeExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this AdminNodeExecutionClosure. # noqa: E501 - - Time at which the node execution was last updated. # noqa: E501 - - :return: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this AdminNodeExecutionClosure. - - Time at which the node execution was last updated. # noqa: E501 - - :param updated_at: The updated_at of this AdminNodeExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._updated_at = updated_at - - @property - def workflow_node_metadata(self): - """Gets the workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - - - :return: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: FlyteidladminWorkflowNodeMetadata - """ - return self._workflow_node_metadata - - @workflow_node_metadata.setter - def workflow_node_metadata(self, workflow_node_metadata): - """Sets the workflow_node_metadata of this AdminNodeExecutionClosure. - - - :param workflow_node_metadata: The workflow_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - :type: FlyteidladminWorkflowNodeMetadata - """ - - self._workflow_node_metadata = workflow_node_metadata - - @property - def task_node_metadata(self): - """Gets the task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - - - :return: The task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: FlyteidladminTaskNodeMetadata - """ - return self._task_node_metadata - - @task_node_metadata.setter - def task_node_metadata(self, task_node_metadata): - """Sets the task_node_metadata of this AdminNodeExecutionClosure. - - - :param task_node_metadata: The task_node_metadata of this AdminNodeExecutionClosure. # noqa: E501 - :type: FlyteidladminTaskNodeMetadata - """ - - self._task_node_metadata = task_node_metadata - - @property - def deck_uri(self): - """Gets the deck_uri of this AdminNodeExecutionClosure. # noqa: E501 - - - :return: The deck_uri of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._deck_uri - - @deck_uri.setter - def deck_uri(self, deck_uri): - """Sets the deck_uri of this AdminNodeExecutionClosure. - - - :param deck_uri: The deck_uri of this AdminNodeExecutionClosure. # noqa: E501 - :type: str - """ - - self._deck_uri = deck_uri - - @property - def dynamic_job_spec_uri(self): - """Gets the dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 - - :return: The dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._dynamic_job_spec_uri - - @dynamic_job_spec_uri.setter - def dynamic_job_spec_uri(self, dynamic_job_spec_uri): - """Sets the dynamic_job_spec_uri of this AdminNodeExecutionClosure. - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 - - :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this AdminNodeExecutionClosure. # noqa: E501 - :type: str - """ - - self._dynamic_job_spec_uri = dynamic_job_spec_uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py deleted file mode 100644 index 1b0555a030..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_request.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: F401,E501 - - -class AdminNodeExecutionEventRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'request_id': 'str', - 'event': 'EventNodeExecutionEvent' - } - - attribute_map = { - 'request_id': 'request_id', - 'event': 'event' - } - - def __init__(self, request_id=None, event=None): # noqa: E501 - """AdminNodeExecutionEventRequest - a model defined in Swagger""" # noqa: E501 - - self._request_id = None - self._event = None - self.discriminator = None - - if request_id is not None: - self.request_id = request_id - if event is not None: - self.event = event - - @property - def request_id(self): - """Gets the request_id of this AdminNodeExecutionEventRequest. # noqa: E501 - - - :return: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this AdminNodeExecutionEventRequest. - - - :param request_id: The request_id of this AdminNodeExecutionEventRequest. # noqa: E501 - :type: str - """ - - self._request_id = request_id - - @property - def event(self): - """Gets the event of this AdminNodeExecutionEventRequest. # noqa: E501 - - Details about the event that occurred. # noqa: E501 - - :return: The event of this AdminNodeExecutionEventRequest. # noqa: E501 - :rtype: EventNodeExecutionEvent - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this AdminNodeExecutionEventRequest. - - Details about the event that occurred. # noqa: E501 - - :param event: The event of this AdminNodeExecutionEventRequest. # noqa: E501 - :type: EventNodeExecutionEvent - """ - - self._event = event - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionEventRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionEventRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py deleted file mode 100644 index bc409dd130..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_event_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminNodeExecutionEventResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminNodeExecutionEventResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionEventResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionEventResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py deleted file mode 100644 index 8460332961..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_get_data_response.py +++ /dev/null @@ -1,260 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: F401,E501 -from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata # noqa: F401,E501 - - -class AdminNodeExecutionGetDataResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'inputs': 'AdminUrlBlob', - 'outputs': 'AdminUrlBlob', - 'full_inputs': 'CoreLiteralMap', - 'full_outputs': 'CoreLiteralMap', - 'dynamic_workflow': 'FlyteidladminDynamicWorkflowNodeMetadata', - 'flyte_urls': 'AdminFlyteURLs' - } - - attribute_map = { - 'inputs': 'inputs', - 'outputs': 'outputs', - 'full_inputs': 'full_inputs', - 'full_outputs': 'full_outputs', - 'dynamic_workflow': 'dynamic_workflow', - 'flyte_urls': 'flyte_urls' - } - - def __init__(self, inputs=None, outputs=None, full_inputs=None, full_outputs=None, dynamic_workflow=None, flyte_urls=None): # noqa: E501 - """AdminNodeExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 - - self._inputs = None - self._outputs = None - self._full_inputs = None - self._full_outputs = None - self._dynamic_workflow = None - self._flyte_urls = None - self.discriminator = None - - if inputs is not None: - self.inputs = inputs - if outputs is not None: - self.outputs = outputs - if full_inputs is not None: - self.full_inputs = full_inputs - if full_outputs is not None: - self.full_outputs = full_outputs - if dynamic_workflow is not None: - self.dynamic_workflow = dynamic_workflow - if flyte_urls is not None: - self.flyte_urls = flyte_urls - - @property - def inputs(self): - """Gets the inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :return: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminNodeExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of node execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :param inputs: The inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._inputs = inputs - - @property - def outputs(self): - """Gets the outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :return: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this AdminNodeExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of node execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :param outputs: The outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._outputs = outputs - - @property - def full_inputs(self): - """Gets the full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_inputs - - @full_inputs.setter - def full_inputs(self, full_inputs): - """Sets the full_inputs of this AdminNodeExecutionGetDataResponse. - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_inputs: The full_inputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_inputs = full_inputs - - @property - def full_outputs(self): - """Gets the full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_outputs - - @full_outputs.setter - def full_outputs(self, full_outputs): - """Sets the full_outputs of this AdminNodeExecutionGetDataResponse. - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_outputs: The full_outputs of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_outputs = full_outputs - - @property - def dynamic_workflow(self): - """Gets the dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. # noqa: E501 - - :return: The dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: FlyteidladminDynamicWorkflowNodeMetadata - """ - return self._dynamic_workflow - - @dynamic_workflow.setter - def dynamic_workflow(self, dynamic_workflow): - """Sets the dynamic_workflow of this AdminNodeExecutionGetDataResponse. - - Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. # noqa: E501 - - :param dynamic_workflow: The dynamic_workflow of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: FlyteidladminDynamicWorkflowNodeMetadata - """ - - self._dynamic_workflow = dynamic_workflow - - @property - def flyte_urls(self): - """Gets the flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 - - - :return: The flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :rtype: AdminFlyteURLs - """ - return self._flyte_urls - - @flyte_urls.setter - def flyte_urls(self, flyte_urls): - """Sets the flyte_urls of this AdminNodeExecutionGetDataResponse. - - - :param flyte_urls: The flyte_urls of this AdminNodeExecutionGetDataResponse. # noqa: E501 - :type: AdminFlyteURLs - """ - - self._flyte_urls = flyte_urls - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionGetDataResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionGetDataResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py deleted file mode 100644 index 8f23e8cd48..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_list.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: F401,E501 - - -class AdminNodeExecutionList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node_executions': 'list[FlyteidladminNodeExecution]', - 'token': 'str' - } - - attribute_map = { - 'node_executions': 'node_executions', - 'token': 'token' - } - - def __init__(self, node_executions=None, token=None): # noqa: E501 - """AdminNodeExecutionList - a model defined in Swagger""" # noqa: E501 - - self._node_executions = None - self._token = None - self.discriminator = None - - if node_executions is not None: - self.node_executions = node_executions - if token is not None: - self.token = token - - @property - def node_executions(self): - """Gets the node_executions of this AdminNodeExecutionList. # noqa: E501 - - - :return: The node_executions of this AdminNodeExecutionList. # noqa: E501 - :rtype: list[FlyteidladminNodeExecution] - """ - return self._node_executions - - @node_executions.setter - def node_executions(self, node_executions): - """Sets the node_executions of this AdminNodeExecutionList. - - - :param node_executions: The node_executions of this AdminNodeExecutionList. # noqa: E501 - :type: list[FlyteidladminNodeExecution] - """ - - self._node_executions = node_executions - - @property - def token(self): - """Gets the token of this AdminNodeExecutionList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminNodeExecutionList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminNodeExecutionList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminNodeExecutionList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py deleted file mode 100644 index 130cb4d706..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_node_execution_meta_data.py +++ /dev/null @@ -1,227 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminNodeExecutionMetaData(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'retry_group': 'str', - 'is_parent_node': 'bool', - 'spec_node_id': 'str', - 'is_dynamic': 'bool', - 'is_array': 'bool' - } - - attribute_map = { - 'retry_group': 'retry_group', - 'is_parent_node': 'is_parent_node', - 'spec_node_id': 'spec_node_id', - 'is_dynamic': 'is_dynamic', - 'is_array': 'is_array' - } - - def __init__(self, retry_group=None, is_parent_node=None, spec_node_id=None, is_dynamic=None, is_array=None): # noqa: E501 - """AdminNodeExecutionMetaData - a model defined in Swagger""" # noqa: E501 - - self._retry_group = None - self._is_parent_node = None - self._spec_node_id = None - self._is_dynamic = None - self._is_array = None - self.discriminator = None - - if retry_group is not None: - self.retry_group = retry_group - if is_parent_node is not None: - self.is_parent_node = is_parent_node - if spec_node_id is not None: - self.spec_node_id = spec_node_id - if is_dynamic is not None: - self.is_dynamic = is_dynamic - if is_array is not None: - self.is_array = is_array - - @property - def retry_group(self): - """Gets the retry_group of this AdminNodeExecutionMetaData. # noqa: E501 - - Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. # noqa: E501 - - :return: The retry_group of this AdminNodeExecutionMetaData. # noqa: E501 - :rtype: str - """ - return self._retry_group - - @retry_group.setter - def retry_group(self, retry_group): - """Sets the retry_group of this AdminNodeExecutionMetaData. - - Node executions are grouped depending on retries of the parent Retry group is unique within the context of a parent node. # noqa: E501 - - :param retry_group: The retry_group of this AdminNodeExecutionMetaData. # noqa: E501 - :type: str - """ - - self._retry_group = retry_group - - @property - def is_parent_node(self): - """Gets the is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 - - Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. # noqa: E501 - - :return: The is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 - :rtype: bool - """ - return self._is_parent_node - - @is_parent_node.setter - def is_parent_node(self, is_parent_node): - """Sets the is_parent_node of this AdminNodeExecutionMetaData. - - Boolean flag indicating if the node has child nodes under it This can be true when a node contains a dynamic workflow which then produces child nodes. # noqa: E501 - - :param is_parent_node: The is_parent_node of this AdminNodeExecutionMetaData. # noqa: E501 - :type: bool - """ - - self._is_parent_node = is_parent_node - - @property - def spec_node_id(self): - """Gets the spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 - - - :return: The spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 - :rtype: str - """ - return self._spec_node_id - - @spec_node_id.setter - def spec_node_id(self, spec_node_id): - """Sets the spec_node_id of this AdminNodeExecutionMetaData. - - - :param spec_node_id: The spec_node_id of this AdminNodeExecutionMetaData. # noqa: E501 - :type: str - """ - - self._spec_node_id = spec_node_id - - @property - def is_dynamic(self): - """Gets the is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 - - Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. # noqa: E501 - - :return: The is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 - :rtype: bool - """ - return self._is_dynamic - - @is_dynamic.setter - def is_dynamic(self, is_dynamic): - """Sets the is_dynamic of this AdminNodeExecutionMetaData. - - Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. # noqa: E501 - - :param is_dynamic: The is_dynamic of this AdminNodeExecutionMetaData. # noqa: E501 - :type: bool - """ - - self._is_dynamic = is_dynamic - - @property - def is_array(self): - """Gets the is_array of this AdminNodeExecutionMetaData. # noqa: E501 - - Boolean flag indicating if the node is an array node. This is intended to uniquely identify array nodes from other nodes which can have is_parent_node as true. # noqa: E501 - - :return: The is_array of this AdminNodeExecutionMetaData. # noqa: E501 - :rtype: bool - """ - return self._is_array - - @is_array.setter - def is_array(self, is_array): - """Sets the is_array of this AdminNodeExecutionMetaData. - - Boolean flag indicating if the node is an array node. This is intended to uniquely identify array nodes from other nodes which can have is_parent_node as true. # noqa: E501 - - :param is_array: The is_array of this AdminNodeExecutionMetaData. # noqa: E501 - :type: bool - """ - - self._is_array = is_array - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNodeExecutionMetaData, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNodeExecutionMetaData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py deleted file mode 100644 index 8232eed6bb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: F401,E501 -from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: F401,E501 -from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 - - -class AdminNotification(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'phases': 'list[CoreWorkflowExecutionPhase]', - 'email': 'AdminEmailNotification', - 'pager_duty': 'AdminPagerDutyNotification', - 'slack': 'AdminSlackNotification' - } - - attribute_map = { - 'phases': 'phases', - 'email': 'email', - 'pager_duty': 'pager_duty', - 'slack': 'slack' - } - - def __init__(self, phases=None, email=None, pager_duty=None, slack=None): # noqa: E501 - """AdminNotification - a model defined in Swagger""" # noqa: E501 - - self._phases = None - self._email = None - self._pager_duty = None - self._slack = None - self.discriminator = None - - if phases is not None: - self.phases = phases - if email is not None: - self.email = email - if pager_duty is not None: - self.pager_duty = pager_duty - if slack is not None: - self.slack = slack - - @property - def phases(self): - """Gets the phases of this AdminNotification. # noqa: E501 - - - :return: The phases of this AdminNotification. # noqa: E501 - :rtype: list[CoreWorkflowExecutionPhase] - """ - return self._phases - - @phases.setter - def phases(self, phases): - """Sets the phases of this AdminNotification. - - - :param phases: The phases of this AdminNotification. # noqa: E501 - :type: list[CoreWorkflowExecutionPhase] - """ - - self._phases = phases - - @property - def email(self): - """Gets the email of this AdminNotification. # noqa: E501 - - - :return: The email of this AdminNotification. # noqa: E501 - :rtype: AdminEmailNotification - """ - return self._email - - @email.setter - def email(self, email): - """Sets the email of this AdminNotification. - - - :param email: The email of this AdminNotification. # noqa: E501 - :type: AdminEmailNotification - """ - - self._email = email - - @property - def pager_duty(self): - """Gets the pager_duty of this AdminNotification. # noqa: E501 - - - :return: The pager_duty of this AdminNotification. # noqa: E501 - :rtype: AdminPagerDutyNotification - """ - return self._pager_duty - - @pager_duty.setter - def pager_duty(self, pager_duty): - """Sets the pager_duty of this AdminNotification. - - - :param pager_duty: The pager_duty of this AdminNotification. # noqa: E501 - :type: AdminPagerDutyNotification - """ - - self._pager_duty = pager_duty - - @property - def slack(self): - """Gets the slack of this AdminNotification. # noqa: E501 - - - :return: The slack of this AdminNotification. # noqa: E501 - :rtype: AdminSlackNotification - """ - return self._slack - - @slack.setter - def slack(self, slack): - """Sets the slack of this AdminNotification. - - - :param slack: The slack of this AdminNotification. # noqa: E501 - :type: AdminSlackNotification - """ - - self._slack = slack - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNotification, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNotification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py deleted file mode 100644 index 200a0b1fee..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_notification_list.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_notification import AdminNotification # noqa: F401,E501 - - -class AdminNotificationList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'notifications': 'list[AdminNotification]' - } - - attribute_map = { - 'notifications': 'notifications' - } - - def __init__(self, notifications=None): # noqa: E501 - """AdminNotificationList - a model defined in Swagger""" # noqa: E501 - - self._notifications = None - self.discriminator = None - - if notifications is not None: - self.notifications = notifications - - @property - def notifications(self): - """Gets the notifications of this AdminNotificationList. # noqa: E501 - - - :return: The notifications of this AdminNotificationList. # noqa: E501 - :rtype: list[AdminNotification] - """ - return self._notifications - - @notifications.setter - def notifications(self, notifications): - """Sets the notifications of this AdminNotificationList. - - - :param notifications: The notifications of this AdminNotificationList. # noqa: E501 - :type: list[AdminNotification] - """ - - self._notifications = notifications - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminNotificationList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminNotificationList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py deleted file mode 100644 index 4dccfa645d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_pager_duty_notification.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminPagerDutyNotification(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'recipients_email': 'list[str]' - } - - attribute_map = { - 'recipients_email': 'recipients_email' - } - - def __init__(self, recipients_email=None): # noqa: E501 - """AdminPagerDutyNotification - a model defined in Swagger""" # noqa: E501 - - self._recipients_email = None - self.discriminator = None - - if recipients_email is not None: - self.recipients_email = recipients_email - - @property - def recipients_email(self): - """Gets the recipients_email of this AdminPagerDutyNotification. # noqa: E501 - - - :return: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 - :rtype: list[str] - """ - return self._recipients_email - - @recipients_email.setter - def recipients_email(self, recipients_email): - """Sets the recipients_email of this AdminPagerDutyNotification. - - - :param recipients_email: The recipients_email of this AdminPagerDutyNotification. # noqa: E501 - :type: list[str] - """ - - self._recipients_email = recipients_email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminPagerDutyNotification, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminPagerDutyNotification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py deleted file mode 100644 index b339f7c515..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_override.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior # noqa: F401,E501 - - -class AdminPluginOverride(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'task_type': 'str', - 'plugin_id': 'list[str]', - 'missing_plugin_behavior': 'PluginOverrideMissingPluginBehavior' - } - - attribute_map = { - 'task_type': 'task_type', - 'plugin_id': 'plugin_id', - 'missing_plugin_behavior': 'missing_plugin_behavior' - } - - def __init__(self, task_type=None, plugin_id=None, missing_plugin_behavior=None): # noqa: E501 - """AdminPluginOverride - a model defined in Swagger""" # noqa: E501 - - self._task_type = None - self._plugin_id = None - self._missing_plugin_behavior = None - self.discriminator = None - - if task_type is not None: - self.task_type = task_type - if plugin_id is not None: - self.plugin_id = plugin_id - if missing_plugin_behavior is not None: - self.missing_plugin_behavior = missing_plugin_behavior - - @property - def task_type(self): - """Gets the task_type of this AdminPluginOverride. # noqa: E501 - - A predefined yet extensible Task type identifier. # noqa: E501 - - :return: The task_type of this AdminPluginOverride. # noqa: E501 - :rtype: str - """ - return self._task_type - - @task_type.setter - def task_type(self, task_type): - """Sets the task_type of this AdminPluginOverride. - - A predefined yet extensible Task type identifier. # noqa: E501 - - :param task_type: The task_type of this AdminPluginOverride. # noqa: E501 - :type: str - """ - - self._task_type = task_type - - @property - def plugin_id(self): - """Gets the plugin_id of this AdminPluginOverride. # noqa: E501 - - A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. # noqa: E501 - - :return: The plugin_id of this AdminPluginOverride. # noqa: E501 - :rtype: list[str] - """ - return self._plugin_id - - @plugin_id.setter - def plugin_id(self, plugin_id): - """Sets the plugin_id of this AdminPluginOverride. - - A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. # noqa: E501 - - :param plugin_id: The plugin_id of this AdminPluginOverride. # noqa: E501 - :type: list[str] - """ - - self._plugin_id = plugin_id - - @property - def missing_plugin_behavior(self): - """Gets the missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 - - Defines the behavior when no plugin from the plugin_id list is not found. # noqa: E501 - - :return: The missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 - :rtype: PluginOverrideMissingPluginBehavior - """ - return self._missing_plugin_behavior - - @missing_plugin_behavior.setter - def missing_plugin_behavior(self, missing_plugin_behavior): - """Sets the missing_plugin_behavior of this AdminPluginOverride. - - Defines the behavior when no plugin from the plugin_id list is not found. # noqa: E501 - - :param missing_plugin_behavior: The missing_plugin_behavior of this AdminPluginOverride. # noqa: E501 - :type: PluginOverrideMissingPluginBehavior - """ - - self._missing_plugin_behavior = missing_plugin_behavior - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminPluginOverride, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminPluginOverride): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py deleted file mode 100644 index 3831ab8d71..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_plugin_overrides.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_plugin_override import AdminPluginOverride # noqa: F401,E501 - - -class AdminPluginOverrides(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'overrides': 'list[AdminPluginOverride]' - } - - attribute_map = { - 'overrides': 'overrides' - } - - def __init__(self, overrides=None): # noqa: E501 - """AdminPluginOverrides - a model defined in Swagger""" # noqa: E501 - - self._overrides = None - self.discriminator = None - - if overrides is not None: - self.overrides = overrides - - @property - def overrides(self): - """Gets the overrides of this AdminPluginOverrides. # noqa: E501 - - - :return: The overrides of this AdminPluginOverrides. # noqa: E501 - :rtype: list[AdminPluginOverride] - """ - return self._overrides - - @overrides.setter - def overrides(self, overrides): - """Sets the overrides of this AdminPluginOverrides. - - - :param overrides: The overrides of this AdminPluginOverrides. # noqa: E501 - :type: list[AdminPluginOverride] - """ - - self._overrides = overrides - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminPluginOverrides, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminPluginOverrides): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py deleted file mode 100644 index 1d64553b8f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project.py +++ /dev/null @@ -1,255 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_domain import AdminDomain # noqa: F401,E501 -from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 -from flyteadmin.models.project_project_state import ProjectProjectState # noqa: F401,E501 - - -class AdminProject(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'name': 'str', - 'domains': 'list[AdminDomain]', - 'description': 'str', - 'labels': 'AdminLabels', - 'state': 'ProjectProjectState' - } - - attribute_map = { - 'id': 'id', - 'name': 'name', - 'domains': 'domains', - 'description': 'description', - 'labels': 'labels', - 'state': 'state' - } - - def __init__(self, id=None, name=None, domains=None, description=None, labels=None, state=None): # noqa: E501 - """AdminProject - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._name = None - self._domains = None - self._description = None - self._labels = None - self._state = None - self.discriminator = None - - if id is not None: - self.id = id - if name is not None: - self.name = name - if domains is not None: - self.domains = domains - if description is not None: - self.description = description - if labels is not None: - self.labels = labels - if state is not None: - self.state = state - - @property - def id(self): - """Gets the id of this AdminProject. # noqa: E501 - - Globally unique project name. # noqa: E501 - - :return: The id of this AdminProject. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminProject. - - Globally unique project name. # noqa: E501 - - :param id: The id of this AdminProject. # noqa: E501 - :type: str - """ - - self._id = id - - @property - def name(self): - """Gets the name of this AdminProject. # noqa: E501 - - Display name. # noqa: E501 - - :return: The name of this AdminProject. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this AdminProject. - - Display name. # noqa: E501 - - :param name: The name of this AdminProject. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def domains(self): - """Gets the domains of this AdminProject. # noqa: E501 - - - :return: The domains of this AdminProject. # noqa: E501 - :rtype: list[AdminDomain] - """ - return self._domains - - @domains.setter - def domains(self, domains): - """Sets the domains of this AdminProject. - - - :param domains: The domains of this AdminProject. # noqa: E501 - :type: list[AdminDomain] - """ - - self._domains = domains - - @property - def description(self): - """Gets the description of this AdminProject. # noqa: E501 - - - :return: The description of this AdminProject. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this AdminProject. - - - :param description: The description of this AdminProject. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def labels(self): - """Gets the labels of this AdminProject. # noqa: E501 - - Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. # noqa: E501 - - :return: The labels of this AdminProject. # noqa: E501 - :rtype: AdminLabels - """ - return self._labels - - @labels.setter - def labels(self, labels): - """Sets the labels of this AdminProject. - - Leverage Labels from flyteidl.admin.common.proto to tag projects with ownership information. # noqa: E501 - - :param labels: The labels of this AdminProject. # noqa: E501 - :type: AdminLabels - """ - - self._labels = labels - - @property - def state(self): - """Gets the state of this AdminProject. # noqa: E501 - - - :return: The state of this AdminProject. # noqa: E501 - :rtype: ProjectProjectState - """ - return self._state - - @state.setter - def state(self, state): - """Sets the state of this AdminProject. - - - :param state: The state of this AdminProject. # noqa: E501 - :type: ProjectProjectState - """ - - self._state = state - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProject, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProject): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py deleted file mode 100644 index a892f96441..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 - - -class AdminProjectAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'matching_attributes': 'AdminMatchingAttributes' - } - - attribute_map = { - 'project': 'project', - 'matching_attributes': 'matching_attributes' - } - - def __init__(self, project=None, matching_attributes=None): # noqa: E501 - """AdminProjectAttributes - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._matching_attributes = None - self.discriminator = None - - if project is not None: - self.project = project - if matching_attributes is not None: - self.matching_attributes = matching_attributes - - @property - def project(self): - """Gets the project of this AdminProjectAttributes. # noqa: E501 - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :return: The project of this AdminProjectAttributes. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminProjectAttributes. - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :param project: The project of this AdminProjectAttributes. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def matching_attributes(self): - """Gets the matching_attributes of this AdminProjectAttributes. # noqa: E501 - - - :return: The matching_attributes of this AdminProjectAttributes. # noqa: E501 - :rtype: AdminMatchingAttributes - """ - return self._matching_attributes - - @matching_attributes.setter - def matching_attributes(self, matching_attributes): - """Sets the matching_attributes of this AdminProjectAttributes. - - - :param matching_attributes: The matching_attributes of this AdminProjectAttributes. # noqa: E501 - :type: AdminMatchingAttributes - """ - - self._matching_attributes = matching_attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py deleted file mode 100644 index 5b41e2c590..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_request.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 - - -class AdminProjectAttributesDeleteRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'resource_type': 'AdminMatchableResource' - } - - attribute_map = { - 'project': 'project', - 'resource_type': 'resource_type' - } - - def __init__(self, project=None, resource_type=None): # noqa: E501 - """AdminProjectAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._resource_type = None - self.discriminator = None - - if project is not None: - self.project = project - if resource_type is not None: - self.resource_type = resource_type - - @property - def project(self): - """Gets the project of this AdminProjectAttributesDeleteRequest. # noqa: E501 - - - :return: The project of this AdminProjectAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminProjectAttributesDeleteRequest. - - - :param project: The project of this AdminProjectAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def resource_type(self): - """Gets the resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 - - - :return: The resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 - :rtype: AdminMatchableResource - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this AdminProjectAttributesDeleteRequest. - - - :param resource_type: The resource_type of this AdminProjectAttributesDeleteRequest. # noqa: E501 - :type: AdminMatchableResource - """ - - self._resource_type = resource_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributesDeleteRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributesDeleteRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py deleted file mode 100644 index 209a2a9e77..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_delete_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectAttributesDeleteResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributesDeleteResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributesDeleteResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py deleted file mode 100644 index 4f9491dc32..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_get_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: F401,E501 - - -class AdminProjectAttributesGetResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminProjectAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminProjectAttributesGetResponse - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminProjectAttributesGetResponse. # noqa: E501 - - - :return: The attributes of this AdminProjectAttributesGetResponse. # noqa: E501 - :rtype: AdminProjectAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminProjectAttributesGetResponse. - - - :param attributes: The attributes of this AdminProjectAttributesGetResponse. # noqa: E501 - :type: AdminProjectAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributesGetResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributesGetResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py deleted file mode 100644 index 2f177136d8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_request.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: F401,E501 - - -class AdminProjectAttributesUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminProjectAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminProjectAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 - - - :return: The attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 - :rtype: AdminProjectAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminProjectAttributesUpdateRequest. - - - :param attributes: The attributes of this AdminProjectAttributesUpdateRequest. # noqa: E501 - :type: AdminProjectAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributesUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributesUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py deleted file mode 100644 index dcaa484fbb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_attributes_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectAttributesUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectAttributesUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectAttributesUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py deleted file mode 100644 index 0c7d6e4559..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 - - -class AdminProjectDomainAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'matching_attributes': 'AdminMatchingAttributes' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'matching_attributes': 'matching_attributes' - } - - def __init__(self, project=None, domain=None, matching_attributes=None): # noqa: E501 - """AdminProjectDomainAttributes - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._matching_attributes = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if matching_attributes is not None: - self.matching_attributes = matching_attributes - - @property - def project(self): - """Gets the project of this AdminProjectDomainAttributes. # noqa: E501 - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :return: The project of this AdminProjectDomainAttributes. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminProjectDomainAttributes. - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :param project: The project of this AdminProjectDomainAttributes. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminProjectDomainAttributes. # noqa: E501 - - Unique domain id for which this set of attributes will be applied. # noqa: E501 - - :return: The domain of this AdminProjectDomainAttributes. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminProjectDomainAttributes. - - Unique domain id for which this set of attributes will be applied. # noqa: E501 - - :param domain: The domain of this AdminProjectDomainAttributes. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def matching_attributes(self): - """Gets the matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 - - - :return: The matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 - :rtype: AdminMatchingAttributes - """ - return self._matching_attributes - - @matching_attributes.setter - def matching_attributes(self, matching_attributes): - """Sets the matching_attributes of this AdminProjectDomainAttributes. - - - :param matching_attributes: The matching_attributes of this AdminProjectDomainAttributes. # noqa: E501 - :type: AdminMatchingAttributes - """ - - self._matching_attributes = matching_attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py deleted file mode 100644 index aef8bfa14f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_request.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 - - -class AdminProjectDomainAttributesDeleteRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'resource_type': 'AdminMatchableResource' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'resource_type': 'resource_type' - } - - def __init__(self, project=None, domain=None, resource_type=None): # noqa: E501 - """AdminProjectDomainAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._resource_type = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if resource_type is not None: - self.resource_type = resource_type - - @property - def project(self): - """Gets the project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - - - :return: The project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminProjectDomainAttributesDeleteRequest. - - - :param project: The project of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - - - :return: The domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminProjectDomainAttributesDeleteRequest. - - - :param domain: The domain of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def resource_type(self): - """Gets the resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - - - :return: The resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :rtype: AdminMatchableResource - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this AdminProjectDomainAttributesDeleteRequest. - - - :param resource_type: The resource_type of this AdminProjectDomainAttributesDeleteRequest. # noqa: E501 - :type: AdminMatchableResource - """ - - self._resource_type = resource_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributesDeleteRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributesDeleteRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py deleted file mode 100644 index 7226075a04..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_delete_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectDomainAttributesDeleteResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectDomainAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributesDeleteResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributesDeleteResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py deleted file mode 100644 index e73d95a829..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_get_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: F401,E501 - - -class AdminProjectDomainAttributesGetResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminProjectDomainAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminProjectDomainAttributesGetResponse - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 - - - :return: The attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 - :rtype: AdminProjectDomainAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminProjectDomainAttributesGetResponse. - - - :param attributes: The attributes of this AdminProjectDomainAttributesGetResponse. # noqa: E501 - :type: AdminProjectDomainAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributesGetResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributesGetResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py deleted file mode 100644 index 983e8d3ae4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_request.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: F401,E501 - - -class AdminProjectDomainAttributesUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminProjectDomainAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminProjectDomainAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 - - - :return: The attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 - :rtype: AdminProjectDomainAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminProjectDomainAttributesUpdateRequest. - - - :param attributes: The attributes of this AdminProjectDomainAttributesUpdateRequest. # noqa: E501 - :type: AdminProjectDomainAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributesUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributesUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py deleted file mode 100644 index aa2ed8327f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_domain_attributes_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectDomainAttributesUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectDomainAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectDomainAttributesUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectDomainAttributesUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py deleted file mode 100644 index bbc2a0d94c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_request.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 - - -class AdminProjectRegisterRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'AdminProject' - } - - attribute_map = { - 'project': 'project' - } - - def __init__(self, project=None): # noqa: E501 - """AdminProjectRegisterRequest - a model defined in Swagger""" # noqa: E501 - - self._project = None - self.discriminator = None - - if project is not None: - self.project = project - - @property - def project(self): - """Gets the project of this AdminProjectRegisterRequest. # noqa: E501 - - - :return: The project of this AdminProjectRegisterRequest. # noqa: E501 - :rtype: AdminProject - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminProjectRegisterRequest. - - - :param project: The project of this AdminProjectRegisterRequest. # noqa: E501 - :type: AdminProject - """ - - self._project = project - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectRegisterRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectRegisterRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py deleted file mode 100644 index e6868b0516..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_register_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectRegisterResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectRegisterResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectRegisterResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectRegisterResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py deleted file mode 100644 index 4b48a4ac22..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_project_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminProjectUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminProjectUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjectUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjectUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py deleted file mode 100644 index cff2ec4084..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_projects.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_project import AdminProject # noqa: F401,E501 - - -class AdminProjects(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'projects': 'list[AdminProject]', - 'token': 'str' - } - - attribute_map = { - 'projects': 'projects', - 'token': 'token' - } - - def __init__(self, projects=None, token=None): # noqa: E501 - """AdminProjects - a model defined in Swagger""" # noqa: E501 - - self._projects = None - self._token = None - self.discriminator = None - - if projects is not None: - self.projects = projects - if token is not None: - self.token = token - - @property - def projects(self): - """Gets the projects of this AdminProjects. # noqa: E501 - - - :return: The projects of this AdminProjects. # noqa: E501 - :rtype: list[AdminProject] - """ - return self._projects - - @projects.setter - def projects(self, projects): - """Sets the projects of this AdminProjects. - - - :param projects: The projects of this AdminProjects. # noqa: E501 - :type: list[AdminProject] - """ - - self._projects = projects - - @property - def token(self): - """Gets the token of this AdminProjects. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminProjects. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminProjects. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminProjects. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminProjects, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminProjects): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py deleted file mode 100644 index 4d7e209660..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_raw_output_data_config.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminRawOutputDataConfig(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'output_location_prefix': 'str' - } - - attribute_map = { - 'output_location_prefix': 'output_location_prefix' - } - - def __init__(self, output_location_prefix=None): # noqa: E501 - """AdminRawOutputDataConfig - a model defined in Swagger""" # noqa: E501 - - self._output_location_prefix = None - self.discriminator = None - - if output_location_prefix is not None: - self.output_location_prefix = output_location_prefix - - @property - def output_location_prefix(self): - """Gets the output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 - - - :return: The output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 - :rtype: str - """ - return self._output_location_prefix - - @output_location_prefix.setter - def output_location_prefix(self, output_location_prefix): - """Sets the output_location_prefix of this AdminRawOutputDataConfig. - - - :param output_location_prefix: The output_location_prefix of this AdminRawOutputDataConfig. # noqa: E501 - :type: str - """ - - self._output_location_prefix = output_location_prefix - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminRawOutputDataConfig, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminRawOutputDataConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py deleted file mode 100644 index bf839c6b14..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_reason.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminReason(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'occurred_at': 'datetime', - 'message': 'str' - } - - attribute_map = { - 'occurred_at': 'occurred_at', - 'message': 'message' - } - - def __init__(self, occurred_at=None, message=None): # noqa: E501 - """AdminReason - a model defined in Swagger""" # noqa: E501 - - self._occurred_at = None - self._message = None - self.discriminator = None - - if occurred_at is not None: - self.occurred_at = occurred_at - if message is not None: - self.message = message - - @property - def occurred_at(self): - """Gets the occurred_at of this AdminReason. # noqa: E501 - - occurred_at is the timestamp indicating the instant that this reason happened. # noqa: E501 - - :return: The occurred_at of this AdminReason. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this AdminReason. - - occurred_at is the timestamp indicating the instant that this reason happened. # noqa: E501 - - :param occurred_at: The occurred_at of this AdminReason. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - @property - def message(self): - """Gets the message of this AdminReason. # noqa: E501 - - message is the explanation for the most recent phase transition or status update. # noqa: E501 - - :return: The message of this AdminReason. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this AdminReason. - - message is the explanation for the most recent phase transition or status update. # noqa: E501 - - :param message: The message of this AdminReason. # noqa: E501 - :type: str - """ - - self._message = message - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminReason, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminReason): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py deleted file mode 100644 index 835766fa8b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_schedule.py +++ /dev/null @@ -1,198 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_cron_schedule import AdminCronSchedule # noqa: F401,E501 -from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: F401,E501 - - -class AdminSchedule(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cron_expression': 'str', - 'rate': 'AdminFixedRate', - 'cron_schedule': 'AdminCronSchedule', - 'kickoff_time_input_arg': 'str' - } - - attribute_map = { - 'cron_expression': 'cron_expression', - 'rate': 'rate', - 'cron_schedule': 'cron_schedule', - 'kickoff_time_input_arg': 'kickoff_time_input_arg' - } - - def __init__(self, cron_expression=None, rate=None, cron_schedule=None, kickoff_time_input_arg=None): # noqa: E501 - """AdminSchedule - a model defined in Swagger""" # noqa: E501 - - self._cron_expression = None - self._rate = None - self._cron_schedule = None - self._kickoff_time_input_arg = None - self.discriminator = None - - if cron_expression is not None: - self.cron_expression = cron_expression - if rate is not None: - self.rate = rate - if cron_schedule is not None: - self.cron_schedule = cron_schedule - if kickoff_time_input_arg is not None: - self.kickoff_time_input_arg = kickoff_time_input_arg - - @property - def cron_expression(self): - """Gets the cron_expression of this AdminSchedule. # noqa: E501 - - - :return: The cron_expression of this AdminSchedule. # noqa: E501 - :rtype: str - """ - return self._cron_expression - - @cron_expression.setter - def cron_expression(self, cron_expression): - """Sets the cron_expression of this AdminSchedule. - - - :param cron_expression: The cron_expression of this AdminSchedule. # noqa: E501 - :type: str - """ - - self._cron_expression = cron_expression - - @property - def rate(self): - """Gets the rate of this AdminSchedule. # noqa: E501 - - - :return: The rate of this AdminSchedule. # noqa: E501 - :rtype: AdminFixedRate - """ - return self._rate - - @rate.setter - def rate(self, rate): - """Sets the rate of this AdminSchedule. - - - :param rate: The rate of this AdminSchedule. # noqa: E501 - :type: AdminFixedRate - """ - - self._rate = rate - - @property - def cron_schedule(self): - """Gets the cron_schedule of this AdminSchedule. # noqa: E501 - - - :return: The cron_schedule of this AdminSchedule. # noqa: E501 - :rtype: AdminCronSchedule - """ - return self._cron_schedule - - @cron_schedule.setter - def cron_schedule(self, cron_schedule): - """Sets the cron_schedule of this AdminSchedule. - - - :param cron_schedule: The cron_schedule of this AdminSchedule. # noqa: E501 - :type: AdminCronSchedule - """ - - self._cron_schedule = cron_schedule - - @property - def kickoff_time_input_arg(self): - """Gets the kickoff_time_input_arg of this AdminSchedule. # noqa: E501 - - Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 - - :return: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 - :rtype: str - """ - return self._kickoff_time_input_arg - - @kickoff_time_input_arg.setter - def kickoff_time_input_arg(self, kickoff_time_input_arg): - """Sets the kickoff_time_input_arg of this AdminSchedule. - - Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. # noqa: E501 - - :param kickoff_time_input_arg: The kickoff_time_input_arg of this AdminSchedule. # noqa: E501 - :type: str - """ - - self._kickoff_time_input_arg = kickoff_time_input_arg - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminSchedule, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminSchedule): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py deleted file mode 100644 index d282c7f687..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_slack_notification.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminSlackNotification(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'recipients_email': 'list[str]' - } - - attribute_map = { - 'recipients_email': 'recipients_email' - } - - def __init__(self, recipients_email=None): # noqa: E501 - """AdminSlackNotification - a model defined in Swagger""" # noqa: E501 - - self._recipients_email = None - self.discriminator = None - - if recipients_email is not None: - self.recipients_email = recipients_email - - @property - def recipients_email(self): - """Gets the recipients_email of this AdminSlackNotification. # noqa: E501 - - - :return: The recipients_email of this AdminSlackNotification. # noqa: E501 - :rtype: list[str] - """ - return self._recipients_email - - @recipients_email.setter - def recipients_email(self, recipients_email): - """Sets the recipients_email of this AdminSlackNotification. - - - :param recipients_email: The recipients_email of this AdminSlackNotification. # noqa: E501 - :type: list[str] - """ - - self._recipients_email = recipients_email - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminSlackNotification, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminSlackNotification): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py deleted file mode 100644 index 98d6a62bc7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_sort.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.sort_direction import SortDirection # noqa: F401,E501 - - -class AdminSort(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'direction': 'SortDirection' - } - - attribute_map = { - 'key': 'key', - 'direction': 'direction' - } - - def __init__(self, key=None, direction=None): # noqa: E501 - """AdminSort - a model defined in Swagger""" # noqa: E501 - - self._key = None - self._direction = None - self.discriminator = None - - if key is not None: - self.key = key - if direction is not None: - self.direction = direction - - @property - def key(self): - """Gets the key of this AdminSort. # noqa: E501 - - - :return: The key of this AdminSort. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this AdminSort. - - - :param key: The key of this AdminSort. # noqa: E501 - :type: str - """ - - self._key = key - - @property - def direction(self): - """Gets the direction of this AdminSort. # noqa: E501 - - - :return: The direction of this AdminSort. # noqa: E501 - :rtype: SortDirection - """ - return self._direction - - @direction.setter - def direction(self, direction): - """Sets the direction of this AdminSort. - - - :param direction: The direction of this AdminSort. # noqa: E501 - :type: SortDirection - """ - - self._direction = direction - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminSort, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminSort): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py deleted file mode 100644 index 4f96d6165f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_source_code.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminSourceCode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'link': 'str' - } - - attribute_map = { - 'link': 'link' - } - - def __init__(self, link=None): # noqa: E501 - """AdminSourceCode - a model defined in Swagger""" # noqa: E501 - - self._link = None - self.discriminator = None - - if link is not None: - self.link = link - - @property - def link(self): - """Gets the link of this AdminSourceCode. # noqa: E501 - - - :return: The link of this AdminSourceCode. # noqa: E501 - :rtype: str - """ - return self._link - - @link.setter - def link(self, link): - """Sets the link of this AdminSourceCode. - - - :param link: The link of this AdminSourceCode. # noqa: E501 - :type: str - """ - - self._link = link - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminSourceCode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminSourceCode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py deleted file mode 100644 index b5f2200a2f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_system_metadata.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminSystemMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'execution_cluster': 'str', - 'namespace': 'str' - } - - attribute_map = { - 'execution_cluster': 'execution_cluster', - 'namespace': 'namespace' - } - - def __init__(self, execution_cluster=None, namespace=None): # noqa: E501 - """AdminSystemMetadata - a model defined in Swagger""" # noqa: E501 - - self._execution_cluster = None - self._namespace = None - self.discriminator = None - - if execution_cluster is not None: - self.execution_cluster = execution_cluster - if namespace is not None: - self.namespace = namespace - - @property - def execution_cluster(self): - """Gets the execution_cluster of this AdminSystemMetadata. # noqa: E501 - - Which execution cluster this execution ran on. # noqa: E501 - - :return: The execution_cluster of this AdminSystemMetadata. # noqa: E501 - :rtype: str - """ - return self._execution_cluster - - @execution_cluster.setter - def execution_cluster(self, execution_cluster): - """Sets the execution_cluster of this AdminSystemMetadata. - - Which execution cluster this execution ran on. # noqa: E501 - - :param execution_cluster: The execution_cluster of this AdminSystemMetadata. # noqa: E501 - :type: str - """ - - self._execution_cluster = execution_cluster - - @property - def namespace(self): - """Gets the namespace of this AdminSystemMetadata. # noqa: E501 - - Which kubernetes namespace the execution ran under. # noqa: E501 - - :return: The namespace of this AdminSystemMetadata. # noqa: E501 - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """Sets the namespace of this AdminSystemMetadata. - - Which kubernetes namespace the execution ran under. # noqa: E501 - - :param namespace: The namespace of this AdminSystemMetadata. # noqa: E501 - :type: str - """ - - self._namespace = namespace - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminSystemMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminSystemMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py deleted file mode 100644 index 11bc5e1cae..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminTask(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'closure': 'AdminTaskClosure', - 'short_description': 'str' - } - - attribute_map = { - 'id': 'id', - 'closure': 'closure', - 'short_description': 'short_description' - } - - def __init__(self, id=None, closure=None, short_description=None): # noqa: E501 - """AdminTask - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._closure = None - self._short_description = None - self.discriminator = None - - if id is not None: - self.id = id - if closure is not None: - self.closure = closure - if short_description is not None: - self.short_description = short_description - - @property - def id(self): - """Gets the id of this AdminTask. # noqa: E501 - - id represents the unique identifier of the task. # noqa: E501 - - :return: The id of this AdminTask. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminTask. - - id represents the unique identifier of the task. # noqa: E501 - - :param id: The id of this AdminTask. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def closure(self): - """Gets the closure of this AdminTask. # noqa: E501 - - closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 - - :return: The closure of this AdminTask. # noqa: E501 - :rtype: AdminTaskClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this AdminTask. - - closure encapsulates all the fields that maps to a compiled version of the task. # noqa: E501 - - :param closure: The closure of this AdminTask. # noqa: E501 - :type: AdminTaskClosure - """ - - self._closure = closure - - @property - def short_description(self): - """Gets the short_description of this AdminTask. # noqa: E501 - - One-liner overview of the entity. # noqa: E501 - - :return: The short_description of this AdminTask. # noqa: E501 - :rtype: str - """ - return self._short_description - - @short_description.setter - def short_description(self, short_description): - """Sets the short_description of this AdminTask. - - One-liner overview of the entity. # noqa: E501 - - :param short_description: The short_description of this AdminTask. # noqa: E501 - :type: str - """ - - self._short_description = short_description - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTask, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTask): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py deleted file mode 100644 index d43a096309..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_closure.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 - - -class AdminTaskClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'compiled_task': 'CoreCompiledTask', - 'created_at': 'datetime' - } - - attribute_map = { - 'compiled_task': 'compiled_task', - 'created_at': 'created_at' - } - - def __init__(self, compiled_task=None, created_at=None): # noqa: E501 - """AdminTaskClosure - a model defined in Swagger""" # noqa: E501 - - self._compiled_task = None - self._created_at = None - self.discriminator = None - - if compiled_task is not None: - self.compiled_task = compiled_task - if created_at is not None: - self.created_at = created_at - - @property - def compiled_task(self): - """Gets the compiled_task of this AdminTaskClosure. # noqa: E501 - - Represents the compiled representation of the task from the specification provided. # noqa: E501 - - :return: The compiled_task of this AdminTaskClosure. # noqa: E501 - :rtype: CoreCompiledTask - """ - return self._compiled_task - - @compiled_task.setter - def compiled_task(self, compiled_task): - """Sets the compiled_task of this AdminTaskClosure. - - Represents the compiled representation of the task from the specification provided. # noqa: E501 - - :param compiled_task: The compiled_task of this AdminTaskClosure. # noqa: E501 - :type: CoreCompiledTask - """ - - self._compiled_task = compiled_task - - @property - def created_at(self): - """Gets the created_at of this AdminTaskClosure. # noqa: E501 - - Time at which the task was created. # noqa: E501 - - :return: The created_at of this AdminTaskClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminTaskClosure. - - Time at which the task was created. # noqa: E501 - - :param created_at: The created_at of this AdminTaskClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py deleted file mode 100644 index f008dc64b4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_closure.py +++ /dev/null @@ -1,517 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_reason import AdminReason # noqa: F401,E501 -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 -from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 -from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class AdminTaskExecutionClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'output_uri': 'str', - 'error': 'CoreExecutionError', - 'output_data': 'CoreLiteralMap', - 'phase': 'CoreTaskExecutionPhase', - 'logs': 'list[CoreTaskLog]', - 'started_at': 'datetime', - 'duration': 'str', - 'created_at': 'datetime', - 'updated_at': 'datetime', - 'custom_info': 'ProtobufStruct', - 'reason': 'str', - 'task_type': 'str', - 'metadata': 'FlyteidleventTaskExecutionMetadata', - 'event_version': 'int', - 'reasons': 'list[AdminReason]' - } - - attribute_map = { - 'output_uri': 'output_uri', - 'error': 'error', - 'output_data': 'output_data', - 'phase': 'phase', - 'logs': 'logs', - 'started_at': 'started_at', - 'duration': 'duration', - 'created_at': 'created_at', - 'updated_at': 'updated_at', - 'custom_info': 'custom_info', - 'reason': 'reason', - 'task_type': 'task_type', - 'metadata': 'metadata', - 'event_version': 'event_version', - 'reasons': 'reasons' - } - - def __init__(self, output_uri=None, error=None, output_data=None, phase=None, logs=None, started_at=None, duration=None, created_at=None, updated_at=None, custom_info=None, reason=None, task_type=None, metadata=None, event_version=None, reasons=None): # noqa: E501 - """AdminTaskExecutionClosure - a model defined in Swagger""" # noqa: E501 - - self._output_uri = None - self._error = None - self._output_data = None - self._phase = None - self._logs = None - self._started_at = None - self._duration = None - self._created_at = None - self._updated_at = None - self._custom_info = None - self._reason = None - self._task_type = None - self._metadata = None - self._event_version = None - self._reasons = None - self.discriminator = None - - if output_uri is not None: - self.output_uri = output_uri - if error is not None: - self.error = error - if output_data is not None: - self.output_data = output_data - if phase is not None: - self.phase = phase - if logs is not None: - self.logs = logs - if started_at is not None: - self.started_at = started_at - if duration is not None: - self.duration = duration - if created_at is not None: - self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - if custom_info is not None: - self.custom_info = custom_info - if reason is not None: - self.reason = reason - if task_type is not None: - self.task_type = task_type - if metadata is not None: - self.metadata = metadata - if event_version is not None: - self.event_version = event_version - if reasons is not None: - self.reasons = reasons - - @property - def output_uri(self): - """Gets the output_uri of this AdminTaskExecutionClosure. # noqa: E501 - - Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 - - :return: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._output_uri - - @output_uri.setter - def output_uri(self, output_uri): - """Sets the output_uri of this AdminTaskExecutionClosure. - - Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 - - :param output_uri: The output_uri of this AdminTaskExecutionClosure. # noqa: E501 - :type: str - """ - - self._output_uri = output_uri - - @property - def error(self): - """Gets the error of this AdminTaskExecutionClosure. # noqa: E501 - - Error information for the task execution. Populated if the execution failed. # noqa: E501 - - :return: The error of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this AdminTaskExecutionClosure. - - Error information for the task execution. Populated if the execution failed. # noqa: E501 - - :param error: The error of this AdminTaskExecutionClosure. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def output_data(self): - """Gets the output_data of this AdminTaskExecutionClosure. # noqa: E501 - - Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 - - :return: The output_data of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this AdminTaskExecutionClosure. - - Raw output data produced by this task execution. DEPRECATED. Use GetTaskExecutionData to fetch output data instead. # noqa: E501 - - :param output_data: The output_data of this AdminTaskExecutionClosure. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - @property - def phase(self): - """Gets the phase of this AdminTaskExecutionClosure. # noqa: E501 - - The last recorded phase for this task execution. # noqa: E501 - - :return: The phase of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: CoreTaskExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this AdminTaskExecutionClosure. - - The last recorded phase for this task execution. # noqa: E501 - - :param phase: The phase of this AdminTaskExecutionClosure. # noqa: E501 - :type: CoreTaskExecutionPhase - """ - - self._phase = phase - - @property - def logs(self): - """Gets the logs of this AdminTaskExecutionClosure. # noqa: E501 - - Detailed log information output by the task execution. # noqa: E501 - - :return: The logs of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: list[CoreTaskLog] - """ - return self._logs - - @logs.setter - def logs(self, logs): - """Sets the logs of this AdminTaskExecutionClosure. - - Detailed log information output by the task execution. # noqa: E501 - - :param logs: The logs of this AdminTaskExecutionClosure. # noqa: E501 - :type: list[CoreTaskLog] - """ - - self._logs = logs - - @property - def started_at(self): - """Gets the started_at of this AdminTaskExecutionClosure. # noqa: E501 - - Time at which the task execution began running. # noqa: E501 - - :return: The started_at of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._started_at - - @started_at.setter - def started_at(self, started_at): - """Sets the started_at of this AdminTaskExecutionClosure. - - Time at which the task execution began running. # noqa: E501 - - :param started_at: The started_at of this AdminTaskExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._started_at = started_at - - @property - def duration(self): - """Gets the duration of this AdminTaskExecutionClosure. # noqa: E501 - - The amount of time the task execution spent running. # noqa: E501 - - :return: The duration of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this AdminTaskExecutionClosure. - - The amount of time the task execution spent running. # noqa: E501 - - :param duration: The duration of this AdminTaskExecutionClosure. # noqa: E501 - :type: str - """ - - self._duration = duration - - @property - def created_at(self): - """Gets the created_at of this AdminTaskExecutionClosure. # noqa: E501 - - Time at which the task execution was created. # noqa: E501 - - :return: The created_at of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminTaskExecutionClosure. - - Time at which the task execution was created. # noqa: E501 - - :param created_at: The created_at of this AdminTaskExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - @property - def updated_at(self): - """Gets the updated_at of this AdminTaskExecutionClosure. # noqa: E501 - - Time at which the task execution was last updated. # noqa: E501 - - :return: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this AdminTaskExecutionClosure. - - Time at which the task execution was last updated. # noqa: E501 - - :param updated_at: The updated_at of this AdminTaskExecutionClosure. # noqa: E501 - :type: datetime - """ - - self._updated_at = updated_at - - @property - def custom_info(self): - """Gets the custom_info of this AdminTaskExecutionClosure. # noqa: E501 - - Custom data specific to the task plugin. # noqa: E501 - - :return: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._custom_info - - @custom_info.setter - def custom_info(self, custom_info): - """Sets the custom_info of this AdminTaskExecutionClosure. - - Custom data specific to the task plugin. # noqa: E501 - - :param custom_info: The custom_info of this AdminTaskExecutionClosure. # noqa: E501 - :type: ProtobufStruct - """ - - self._custom_info = custom_info - - @property - def reason(self): - """Gets the reason of this AdminTaskExecutionClosure. # noqa: E501 - - If there is an explanation for the most recent phase transition, the reason will capture it. # noqa: E501 - - :return: The reason of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this AdminTaskExecutionClosure. - - If there is an explanation for the most recent phase transition, the reason will capture it. # noqa: E501 - - :param reason: The reason of this AdminTaskExecutionClosure. # noqa: E501 - :type: str - """ - - self._reason = reason - - @property - def task_type(self): - """Gets the task_type of this AdminTaskExecutionClosure. # noqa: E501 - - A predefined yet extensible Task type identifier. # noqa: E501 - - :return: The task_type of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: str - """ - return self._task_type - - @task_type.setter - def task_type(self, task_type): - """Sets the task_type of this AdminTaskExecutionClosure. - - A predefined yet extensible Task type identifier. # noqa: E501 - - :param task_type: The task_type of this AdminTaskExecutionClosure. # noqa: E501 - :type: str - """ - - self._task_type = task_type - - @property - def metadata(self): - """Gets the metadata of this AdminTaskExecutionClosure. # noqa: E501 - - Metadata around how a task was executed. # noqa: E501 - - :return: The metadata of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: FlyteidleventTaskExecutionMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this AdminTaskExecutionClosure. - - Metadata around how a task was executed. # noqa: E501 - - :param metadata: The metadata of this AdminTaskExecutionClosure. # noqa: E501 - :type: FlyteidleventTaskExecutionMetadata - """ - - self._metadata = metadata - - @property - def event_version(self): - """Gets the event_version of this AdminTaskExecutionClosure. # noqa: E501 - - The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 - - :return: The event_version of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: int - """ - return self._event_version - - @event_version.setter - def event_version(self, event_version): - """Sets the event_version of this AdminTaskExecutionClosure. - - The event version is used to indicate versioned changes in how data is maintained using this proto message. For example, event_verison > 0 means that maps tasks logs use the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 - - :param event_version: The event_version of this AdminTaskExecutionClosure. # noqa: E501 - :type: int - """ - - self._event_version = event_version - - @property - def reasons(self): - """Gets the reasons of this AdminTaskExecutionClosure. # noqa: E501 - - A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. # noqa: E501 - - :return: The reasons of this AdminTaskExecutionClosure. # noqa: E501 - :rtype: list[AdminReason] - """ - return self._reasons - - @reasons.setter - def reasons(self, reasons): - """Sets the reasons of this AdminTaskExecutionClosure. - - A time-series of the phase transition or update explanations. This, when compared to storing a singular reason as previously done, is much more valuable in visualizing and understanding historical evaluations. # noqa: E501 - - :param reasons: The reasons of this AdminTaskExecutionClosure. # noqa: E501 - :type: list[AdminReason] - """ - - self._reasons = reasons - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskExecutionClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskExecutionClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py deleted file mode 100644 index d8d650d41d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_request.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: F401,E501 - - -class AdminTaskExecutionEventRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'request_id': 'str', - 'event': 'EventTaskExecutionEvent' - } - - attribute_map = { - 'request_id': 'request_id', - 'event': 'event' - } - - def __init__(self, request_id=None, event=None): # noqa: E501 - """AdminTaskExecutionEventRequest - a model defined in Swagger""" # noqa: E501 - - self._request_id = None - self._event = None - self.discriminator = None - - if request_id is not None: - self.request_id = request_id - if event is not None: - self.event = event - - @property - def request_id(self): - """Gets the request_id of this AdminTaskExecutionEventRequest. # noqa: E501 - - - :return: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this AdminTaskExecutionEventRequest. - - - :param request_id: The request_id of this AdminTaskExecutionEventRequest. # noqa: E501 - :type: str - """ - - self._request_id = request_id - - @property - def event(self): - """Gets the event of this AdminTaskExecutionEventRequest. # noqa: E501 - - Details about the event that occurred. # noqa: E501 - - :return: The event of this AdminTaskExecutionEventRequest. # noqa: E501 - :rtype: EventTaskExecutionEvent - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this AdminTaskExecutionEventRequest. - - Details about the event that occurred. # noqa: E501 - - :param event: The event of this AdminTaskExecutionEventRequest. # noqa: E501 - :type: EventTaskExecutionEvent - """ - - self._event = event - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskExecutionEventRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskExecutionEventRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py deleted file mode 100644 index 9e8bd3882a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_event_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminTaskExecutionEventResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminTaskExecutionEventResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskExecutionEventResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskExecutionEventResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py deleted file mode 100644 index fb095426c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_get_data_response.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: F401,E501 -from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 - - -class AdminTaskExecutionGetDataResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'inputs': 'AdminUrlBlob', - 'outputs': 'AdminUrlBlob', - 'full_inputs': 'CoreLiteralMap', - 'full_outputs': 'CoreLiteralMap', - 'flyte_urls': 'AdminFlyteURLs' - } - - attribute_map = { - 'inputs': 'inputs', - 'outputs': 'outputs', - 'full_inputs': 'full_inputs', - 'full_outputs': 'full_outputs', - 'flyte_urls': 'flyte_urls' - } - - def __init__(self, inputs=None, outputs=None, full_inputs=None, full_outputs=None, flyte_urls=None): # noqa: E501 - """AdminTaskExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 - - self._inputs = None - self._outputs = None - self._full_inputs = None - self._full_outputs = None - self._flyte_urls = None - self.discriminator = None - - if inputs is not None: - self.inputs = inputs - if outputs is not None: - self.outputs = outputs - if full_inputs is not None: - self.full_inputs = full_inputs - if full_outputs is not None: - self.full_outputs = full_outputs - if flyte_urls is not None: - self.flyte_urls = flyte_urls - - @property - def inputs(self): - """Gets the inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :return: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminTaskExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of task execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :param inputs: The inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._inputs = inputs - - @property - def outputs(self): - """Gets the outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :return: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this AdminTaskExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of task execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :param outputs: The outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._outputs = outputs - - @property - def full_inputs(self): - """Gets the full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_inputs - - @full_inputs.setter - def full_inputs(self, full_inputs): - """Sets the full_inputs of this AdminTaskExecutionGetDataResponse. - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_inputs: The full_inputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_inputs = full_inputs - - @property - def full_outputs(self): - """Gets the full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_outputs - - @full_outputs.setter - def full_outputs(self, full_outputs): - """Sets the full_outputs of this AdminTaskExecutionGetDataResponse. - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_outputs: The full_outputs of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_outputs = full_outputs - - @property - def flyte_urls(self): - """Gets the flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 - - - :return: The flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :rtype: AdminFlyteURLs - """ - return self._flyte_urls - - @flyte_urls.setter - def flyte_urls(self, flyte_urls): - """Sets the flyte_urls of this AdminTaskExecutionGetDataResponse. - - - :param flyte_urls: The flyte_urls of this AdminTaskExecutionGetDataResponse. # noqa: E501 - :type: AdminFlyteURLs - """ - - self._flyte_urls = flyte_urls - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskExecutionGetDataResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskExecutionGetDataResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py deleted file mode 100644 index 4c3a8e7c1d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_execution_list.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: F401,E501 - - -class AdminTaskExecutionList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'task_executions': 'list[FlyteidladminTaskExecution]', - 'token': 'str' - } - - attribute_map = { - 'task_executions': 'task_executions', - 'token': 'token' - } - - def __init__(self, task_executions=None, token=None): # noqa: E501 - """AdminTaskExecutionList - a model defined in Swagger""" # noqa: E501 - - self._task_executions = None - self._token = None - self.discriminator = None - - if task_executions is not None: - self.task_executions = task_executions - if token is not None: - self.token = token - - @property - def task_executions(self): - """Gets the task_executions of this AdminTaskExecutionList. # noqa: E501 - - - :return: The task_executions of this AdminTaskExecutionList. # noqa: E501 - :rtype: list[FlyteidladminTaskExecution] - """ - return self._task_executions - - @task_executions.setter - def task_executions(self, task_executions): - """Sets the task_executions of this AdminTaskExecutionList. - - - :param task_executions: The task_executions of this AdminTaskExecutionList. # noqa: E501 - :type: list[FlyteidladminTaskExecution] - """ - - self._task_executions = task_executions - - @property - def token(self): - """Gets the token of this AdminTaskExecutionList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminTaskExecutionList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminTaskExecutionList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminTaskExecutionList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskExecutionList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskExecutionList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py deleted file mode 100644 index ea9212b92b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_list.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_task import AdminTask # noqa: F401,E501 - - -class AdminTaskList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tasks': 'list[AdminTask]', - 'token': 'str' - } - - attribute_map = { - 'tasks': 'tasks', - 'token': 'token' - } - - def __init__(self, tasks=None, token=None): # noqa: E501 - """AdminTaskList - a model defined in Swagger""" # noqa: E501 - - self._tasks = None - self._token = None - self.discriminator = None - - if tasks is not None: - self.tasks = tasks - if token is not None: - self.token = token - - @property - def tasks(self): - """Gets the tasks of this AdminTaskList. # noqa: E501 - - A list of tasks returned based on the request. # noqa: E501 - - :return: The tasks of this AdminTaskList. # noqa: E501 - :rtype: list[AdminTask] - """ - return self._tasks - - @tasks.setter - def tasks(self, tasks): - """Sets the tasks of this AdminTaskList. - - A list of tasks returned based on the request. # noqa: E501 - - :param tasks: The tasks of this AdminTaskList. # noqa: E501 - :type: list[AdminTask] - """ - - self._tasks = tasks - - @property - def token(self): - """Gets the token of this AdminTaskList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminTaskList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminTaskList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminTaskList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py deleted file mode 100644 index 664761775f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_attributes.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec # noqa: F401,E501 - - -class AdminTaskResourceAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'defaults': 'AdminTaskResourceSpec', - 'limits': 'AdminTaskResourceSpec' - } - - attribute_map = { - 'defaults': 'defaults', - 'limits': 'limits' - } - - def __init__(self, defaults=None, limits=None): # noqa: E501 - """AdminTaskResourceAttributes - a model defined in Swagger""" # noqa: E501 - - self._defaults = None - self._limits = None - self.discriminator = None - - if defaults is not None: - self.defaults = defaults - if limits is not None: - self.limits = limits - - @property - def defaults(self): - """Gets the defaults of this AdminTaskResourceAttributes. # noqa: E501 - - - :return: The defaults of this AdminTaskResourceAttributes. # noqa: E501 - :rtype: AdminTaskResourceSpec - """ - return self._defaults - - @defaults.setter - def defaults(self, defaults): - """Sets the defaults of this AdminTaskResourceAttributes. - - - :param defaults: The defaults of this AdminTaskResourceAttributes. # noqa: E501 - :type: AdminTaskResourceSpec - """ - - self._defaults = defaults - - @property - def limits(self): - """Gets the limits of this AdminTaskResourceAttributes. # noqa: E501 - - - :return: The limits of this AdminTaskResourceAttributes. # noqa: E501 - :rtype: AdminTaskResourceSpec - """ - return self._limits - - @limits.setter - def limits(self, limits): - """Sets the limits of this AdminTaskResourceAttributes. - - - :param limits: The limits of this AdminTaskResourceAttributes. # noqa: E501 - :type: AdminTaskResourceSpec - """ - - self._limits = limits - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskResourceAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskResourceAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py deleted file mode 100644 index 1b13a28ec2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_resource_spec.py +++ /dev/null @@ -1,219 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminTaskResourceSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cpu': 'str', - 'gpu': 'str', - 'memory': 'str', - 'storage': 'str', - 'ephemeral_storage': 'str' - } - - attribute_map = { - 'cpu': 'cpu', - 'gpu': 'gpu', - 'memory': 'memory', - 'storage': 'storage', - 'ephemeral_storage': 'ephemeral_storage' - } - - def __init__(self, cpu=None, gpu=None, memory=None, storage=None, ephemeral_storage=None): # noqa: E501 - """AdminTaskResourceSpec - a model defined in Swagger""" # noqa: E501 - - self._cpu = None - self._gpu = None - self._memory = None - self._storage = None - self._ephemeral_storage = None - self.discriminator = None - - if cpu is not None: - self.cpu = cpu - if gpu is not None: - self.gpu = gpu - if memory is not None: - self.memory = memory - if storage is not None: - self.storage = storage - if ephemeral_storage is not None: - self.ephemeral_storage = ephemeral_storage - - @property - def cpu(self): - """Gets the cpu of this AdminTaskResourceSpec. # noqa: E501 - - - :return: The cpu of this AdminTaskResourceSpec. # noqa: E501 - :rtype: str - """ - return self._cpu - - @cpu.setter - def cpu(self, cpu): - """Sets the cpu of this AdminTaskResourceSpec. - - - :param cpu: The cpu of this AdminTaskResourceSpec. # noqa: E501 - :type: str - """ - - self._cpu = cpu - - @property - def gpu(self): - """Gets the gpu of this AdminTaskResourceSpec. # noqa: E501 - - - :return: The gpu of this AdminTaskResourceSpec. # noqa: E501 - :rtype: str - """ - return self._gpu - - @gpu.setter - def gpu(self, gpu): - """Sets the gpu of this AdminTaskResourceSpec. - - - :param gpu: The gpu of this AdminTaskResourceSpec. # noqa: E501 - :type: str - """ - - self._gpu = gpu - - @property - def memory(self): - """Gets the memory of this AdminTaskResourceSpec. # noqa: E501 - - - :return: The memory of this AdminTaskResourceSpec. # noqa: E501 - :rtype: str - """ - return self._memory - - @memory.setter - def memory(self, memory): - """Sets the memory of this AdminTaskResourceSpec. - - - :param memory: The memory of this AdminTaskResourceSpec. # noqa: E501 - :type: str - """ - - self._memory = memory - - @property - def storage(self): - """Gets the storage of this AdminTaskResourceSpec. # noqa: E501 - - - :return: The storage of this AdminTaskResourceSpec. # noqa: E501 - :rtype: str - """ - return self._storage - - @storage.setter - def storage(self, storage): - """Sets the storage of this AdminTaskResourceSpec. - - - :param storage: The storage of this AdminTaskResourceSpec. # noqa: E501 - :type: str - """ - - self._storage = storage - - @property - def ephemeral_storage(self): - """Gets the ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 - - - :return: The ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 - :rtype: str - """ - return self._ephemeral_storage - - @ephemeral_storage.setter - def ephemeral_storage(self, ephemeral_storage): - """Sets the ephemeral_storage of this AdminTaskResourceSpec. - - - :param ephemeral_storage: The ephemeral_storage of this AdminTaskResourceSpec. # noqa: E501 - :type: str - """ - - self._ephemeral_storage = ephemeral_storage - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskResourceSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskResourceSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py deleted file mode 100644 index 36beba2ffe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_task_spec.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 -from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 - - -class AdminTaskSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'template': 'CoreTaskTemplate', - 'description': 'AdminDescriptionEntity' - } - - attribute_map = { - 'template': 'template', - 'description': 'description' - } - - def __init__(self, template=None, description=None): # noqa: E501 - """AdminTaskSpec - a model defined in Swagger""" # noqa: E501 - - self._template = None - self._description = None - self.discriminator = None - - if template is not None: - self.template = template - if description is not None: - self.description = description - - @property - def template(self): - """Gets the template of this AdminTaskSpec. # noqa: E501 - - Template of the task that encapsulates all the metadata of the task. # noqa: E501 - - :return: The template of this AdminTaskSpec. # noqa: E501 - :rtype: CoreTaskTemplate - """ - return self._template - - @template.setter - def template(self, template): - """Sets the template of this AdminTaskSpec. - - Template of the task that encapsulates all the metadata of the task. # noqa: E501 - - :param template: The template of this AdminTaskSpec. # noqa: E501 - :type: CoreTaskTemplate - """ - - self._template = template - - @property - def description(self): - """Gets the description of this AdminTaskSpec. # noqa: E501 - - Represents the specification for description entity. # noqa: E501 - - :return: The description of this AdminTaskSpec. # noqa: E501 - :rtype: AdminDescriptionEntity - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this AdminTaskSpec. - - Represents the specification for description entity. # noqa: E501 - - :param description: The description of this AdminTaskSpec. # noqa: E501 - :type: AdminDescriptionEntity - """ - - self._description = description - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminTaskSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminTaskSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py deleted file mode 100644 index 7d0bb6ef92..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_url_blob.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminUrlBlob(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'url': 'str', - 'bytes': 'str' - } - - attribute_map = { - 'url': 'url', - 'bytes': 'bytes' - } - - def __init__(self, url=None, bytes=None): # noqa: E501 - """AdminUrlBlob - a model defined in Swagger""" # noqa: E501 - - self._url = None - self._bytes = None - self.discriminator = None - - if url is not None: - self.url = url - if bytes is not None: - self.bytes = bytes - - @property - def url(self): - """Gets the url of this AdminUrlBlob. # noqa: E501 - - Actual url value. # noqa: E501 - - :return: The url of this AdminUrlBlob. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this AdminUrlBlob. - - Actual url value. # noqa: E501 - - :param url: The url of this AdminUrlBlob. # noqa: E501 - :type: str - """ - - self._url = url - - @property - def bytes(self): - """Gets the bytes of this AdminUrlBlob. # noqa: E501 - - Represents the size of the file accessible at the above url. # noqa: E501 - - :return: The bytes of this AdminUrlBlob. # noqa: E501 - :rtype: str - """ - return self._bytes - - @bytes.setter - def bytes(self, bytes): - """Sets the bytes of this AdminUrlBlob. - - Represents the size of the file accessible at the above url. # noqa: E501 - - :param bytes: The bytes of this AdminUrlBlob. # noqa: E501 - :type: str - """ - - self._bytes = bytes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminUrlBlob, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminUrlBlob): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py deleted file mode 100644 index bdbad41bb1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_version.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminVersion(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'build': 'str', - 'version': 'str', - 'build_time': 'str' - } - - attribute_map = { - 'build': 'Build', - 'version': 'Version', - 'build_time': 'BuildTime' - } - - def __init__(self, build=None, version=None, build_time=None): # noqa: E501 - """AdminVersion - a model defined in Swagger""" # noqa: E501 - - self._build = None - self._version = None - self._build_time = None - self.discriminator = None - - if build is not None: - self.build = build - if version is not None: - self.version = version - if build_time is not None: - self.build_time = build_time - - @property - def build(self): - """Gets the build of this AdminVersion. # noqa: E501 - - - :return: The build of this AdminVersion. # noqa: E501 - :rtype: str - """ - return self._build - - @build.setter - def build(self, build): - """Sets the build of this AdminVersion. - - - :param build: The build of this AdminVersion. # noqa: E501 - :type: str - """ - - self._build = build - - @property - def version(self): - """Gets the version of this AdminVersion. # noqa: E501 - - - :return: The version of this AdminVersion. # noqa: E501 - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this AdminVersion. - - - :param version: The version of this AdminVersion. # noqa: E501 - :type: str - """ - - self._version = version - - @property - def build_time(self): - """Gets the build_time of this AdminVersion. # noqa: E501 - - - :return: The build_time of this AdminVersion. # noqa: E501 - :rtype: str - """ - return self._build_time - - @build_time.setter - def build_time(self, build_time): - """Sets the build_time of this AdminVersion. - - - :param build_time: The build_time of this AdminVersion. # noqa: E501 - :type: str - """ - - self._build_time = build_time - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminVersion, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminVersion): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py deleted file mode 100644 index 3b744bb0f7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminWorkflow(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'closure': 'AdminWorkflowClosure', - 'short_description': 'str' - } - - attribute_map = { - 'id': 'id', - 'closure': 'closure', - 'short_description': 'short_description' - } - - def __init__(self, id=None, closure=None, short_description=None): # noqa: E501 - """AdminWorkflow - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._closure = None - self._short_description = None - self.discriminator = None - - if id is not None: - self.id = id - if closure is not None: - self.closure = closure - if short_description is not None: - self.short_description = short_description - - @property - def id(self): - """Gets the id of this AdminWorkflow. # noqa: E501 - - id represents the unique identifier of the workflow. # noqa: E501 - - :return: The id of this AdminWorkflow. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminWorkflow. - - id represents the unique identifier of the workflow. # noqa: E501 - - :param id: The id of this AdminWorkflow. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def closure(self): - """Gets the closure of this AdminWorkflow. # noqa: E501 - - closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 - - :return: The closure of this AdminWorkflow. # noqa: E501 - :rtype: AdminWorkflowClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this AdminWorkflow. - - closure encapsulates all the fields that maps to a compiled version of the workflow. # noqa: E501 - - :param closure: The closure of this AdminWorkflow. # noqa: E501 - :type: AdminWorkflowClosure - """ - - self._closure = closure - - @property - def short_description(self): - """Gets the short_description of this AdminWorkflow. # noqa: E501 - - One-liner overview of the entity. # noqa: E501 - - :return: The short_description of this AdminWorkflow. # noqa: E501 - :rtype: str - """ - return self._short_description - - @short_description.setter - def short_description(self, short_description): - """Sets the short_description of this AdminWorkflow. - - One-liner overview of the entity. # noqa: E501 - - :param short_description: The short_description of this AdminWorkflow. # noqa: E501 - :type: str - """ - - self._short_description = short_description - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflow, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflow): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py deleted file mode 100644 index e5dc389073..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: F401,E501 - - -class AdminWorkflowAttributes(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'workflow': 'str', - 'matching_attributes': 'AdminMatchingAttributes' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'workflow': 'workflow', - 'matching_attributes': 'matching_attributes' - } - - def __init__(self, project=None, domain=None, workflow=None, matching_attributes=None): # noqa: E501 - """AdminWorkflowAttributes - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._workflow = None - self._matching_attributes = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if workflow is not None: - self.workflow = workflow - if matching_attributes is not None: - self.matching_attributes = matching_attributes - - @property - def project(self): - """Gets the project of this AdminWorkflowAttributes. # noqa: E501 - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :return: The project of this AdminWorkflowAttributes. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminWorkflowAttributes. - - Unique project id for which this set of attributes will be applied. # noqa: E501 - - :param project: The project of this AdminWorkflowAttributes. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminWorkflowAttributes. # noqa: E501 - - Unique domain id for which this set of attributes will be applied. # noqa: E501 - - :return: The domain of this AdminWorkflowAttributes. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminWorkflowAttributes. - - Unique domain id for which this set of attributes will be applied. # noqa: E501 - - :param domain: The domain of this AdminWorkflowAttributes. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def workflow(self): - """Gets the workflow of this AdminWorkflowAttributes. # noqa: E501 - - Workflow name for which this set of attributes will be applied. # noqa: E501 - - :return: The workflow of this AdminWorkflowAttributes. # noqa: E501 - :rtype: str - """ - return self._workflow - - @workflow.setter - def workflow(self, workflow): - """Sets the workflow of this AdminWorkflowAttributes. - - Workflow name for which this set of attributes will be applied. # noqa: E501 - - :param workflow: The workflow of this AdminWorkflowAttributes. # noqa: E501 - :type: str - """ - - self._workflow = workflow - - @property - def matching_attributes(self): - """Gets the matching_attributes of this AdminWorkflowAttributes. # noqa: E501 - - - :return: The matching_attributes of this AdminWorkflowAttributes. # noqa: E501 - :rtype: AdminMatchingAttributes - """ - return self._matching_attributes - - @matching_attributes.setter - def matching_attributes(self, matching_attributes): - """Sets the matching_attributes of this AdminWorkflowAttributes. - - - :param matching_attributes: The matching_attributes of this AdminWorkflowAttributes. # noqa: E501 - :type: AdminMatchingAttributes - """ - - self._matching_attributes = matching_attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributes, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributes): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py deleted file mode 100644 index 348cd98213..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_request.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: F401,E501 - - -class AdminWorkflowAttributesDeleteRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'workflow': 'str', - 'resource_type': 'AdminMatchableResource' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'workflow': 'workflow', - 'resource_type': 'resource_type' - } - - def __init__(self, project=None, domain=None, workflow=None, resource_type=None): # noqa: E501 - """AdminWorkflowAttributesDeleteRequest - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._workflow = None - self._resource_type = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if workflow is not None: - self.workflow = workflow - if resource_type is not None: - self.resource_type = resource_type - - @property - def project(self): - """Gets the project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - - - :return: The project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this AdminWorkflowAttributesDeleteRequest. - - - :param project: The project of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - - - :return: The domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this AdminWorkflowAttributesDeleteRequest. - - - :param domain: The domain of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def workflow(self): - """Gets the workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - - - :return: The workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :rtype: str - """ - return self._workflow - - @workflow.setter - def workflow(self, workflow): - """Sets the workflow of this AdminWorkflowAttributesDeleteRequest. - - - :param workflow: The workflow of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :type: str - """ - - self._workflow = workflow - - @property - def resource_type(self): - """Gets the resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - - - :return: The resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :rtype: AdminMatchableResource - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this AdminWorkflowAttributesDeleteRequest. - - - :param resource_type: The resource_type of this AdminWorkflowAttributesDeleteRequest. # noqa: E501 - :type: AdminMatchableResource - """ - - self._resource_type = resource_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributesDeleteRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributesDeleteRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py deleted file mode 100644 index 7d2f277cbf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_delete_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminWorkflowAttributesDeleteResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminWorkflowAttributesDeleteResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributesDeleteResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributesDeleteResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py deleted file mode 100644 index 6d0b4971d4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_get_response.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: F401,E501 - - -class AdminWorkflowAttributesGetResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminWorkflowAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminWorkflowAttributesGetResponse - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 - - - :return: The attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 - :rtype: AdminWorkflowAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminWorkflowAttributesGetResponse. - - - :param attributes: The attributes of this AdminWorkflowAttributesGetResponse. # noqa: E501 - :type: AdminWorkflowAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributesGetResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributesGetResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py deleted file mode 100644 index 2f5ae0956b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_request.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: F401,E501 - - -class AdminWorkflowAttributesUpdateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'AdminWorkflowAttributes' - } - - attribute_map = { - 'attributes': 'attributes' - } - - def __init__(self, attributes=None): # noqa: E501 - """AdminWorkflowAttributesUpdateRequest - a model defined in Swagger""" # noqa: E501 - - self._attributes = None - self.discriminator = None - - if attributes is not None: - self.attributes = attributes - - @property - def attributes(self): - """Gets the attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 - - - :return: The attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 - :rtype: AdminWorkflowAttributes - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """Sets the attributes of this AdminWorkflowAttributesUpdateRequest. - - - :param attributes: The attributes of this AdminWorkflowAttributesUpdateRequest. # noqa: E501 - :type: AdminWorkflowAttributes - """ - - self._attributes = attributes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributesUpdateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributesUpdateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py deleted file mode 100644 index 871461df54..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_attributes_update_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminWorkflowAttributesUpdateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminWorkflowAttributesUpdateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowAttributesUpdateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowAttributesUpdateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py deleted file mode 100644 index 41b674b65e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_closure.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 - - -class AdminWorkflowClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'compiled_workflow': 'CoreCompiledWorkflowClosure', - 'created_at': 'datetime' - } - - attribute_map = { - 'compiled_workflow': 'compiled_workflow', - 'created_at': 'created_at' - } - - def __init__(self, compiled_workflow=None, created_at=None): # noqa: E501 - """AdminWorkflowClosure - a model defined in Swagger""" # noqa: E501 - - self._compiled_workflow = None - self._created_at = None - self.discriminator = None - - if compiled_workflow is not None: - self.compiled_workflow = compiled_workflow - if created_at is not None: - self.created_at = created_at - - @property - def compiled_workflow(self): - """Gets the compiled_workflow of this AdminWorkflowClosure. # noqa: E501 - - Represents the compiled representation of the workflow from the specification provided. # noqa: E501 - - :return: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 - :rtype: CoreCompiledWorkflowClosure - """ - return self._compiled_workflow - - @compiled_workflow.setter - def compiled_workflow(self, compiled_workflow): - """Sets the compiled_workflow of this AdminWorkflowClosure. - - Represents the compiled representation of the workflow from the specification provided. # noqa: E501 - - :param compiled_workflow: The compiled_workflow of this AdminWorkflowClosure. # noqa: E501 - :type: CoreCompiledWorkflowClosure - """ - - self._compiled_workflow = compiled_workflow - - @property - def created_at(self): - """Gets the created_at of this AdminWorkflowClosure. # noqa: E501 - - Time at which the workflow was created. # noqa: E501 - - :return: The created_at of this AdminWorkflowClosure. # noqa: E501 - :rtype: datetime - """ - return self._created_at - - @created_at.setter - def created_at(self, created_at): - """Sets the created_at of this AdminWorkflowClosure. - - Time at which the workflow was created. # noqa: E501 - - :param created_at: The created_at of this AdminWorkflowClosure. # noqa: E501 - :type: datetime - """ - - self._created_at = created_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py deleted file mode 100644 index d806cd1b69..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_request.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class AdminWorkflowCreateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'spec': 'AdminWorkflowSpec' - } - - attribute_map = { - 'id': 'id', - 'spec': 'spec' - } - - def __init__(self, id=None, spec=None): # noqa: E501 - """AdminWorkflowCreateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._spec = None - self.discriminator = None - - if id is not None: - self.id = id - if spec is not None: - self.spec = spec - - @property - def id(self): - """Gets the id of this AdminWorkflowCreateRequest. # noqa: E501 - - - :return: The id of this AdminWorkflowCreateRequest. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this AdminWorkflowCreateRequest. - - - :param id: The id of this AdminWorkflowCreateRequest. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def spec(self): - """Gets the spec of this AdminWorkflowCreateRequest. # noqa: E501 - - - :return: The spec of this AdminWorkflowCreateRequest. # noqa: E501 - :rtype: AdminWorkflowSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this AdminWorkflowCreateRequest. - - - :param spec: The spec of this AdminWorkflowCreateRequest. # noqa: E501 - :type: AdminWorkflowSpec - """ - - self._spec = spec - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowCreateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowCreateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py deleted file mode 100644 index 63dfaa0329..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_create_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminWorkflowCreateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminWorkflowCreateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowCreateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowCreateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py deleted file mode 100644 index b8b89d4266..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_config.py +++ /dev/null @@ -1,319 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: F401,E501 -from flyteadmin.models.admin_envs import AdminEnvs # noqa: F401,E501 -from flyteadmin.models.admin_labels import AdminLabels # noqa: F401,E501 -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: F401,E501 -from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 - - -class AdminWorkflowExecutionConfig(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'max_parallelism': 'int', - 'security_context': 'CoreSecurityContext', - 'raw_output_data_config': 'AdminRawOutputDataConfig', - 'labels': 'AdminLabels', - 'annotations': 'AdminAnnotations', - 'interruptible': 'bool', - 'overwrite_cache': 'bool', - 'envs': 'AdminEnvs' - } - - attribute_map = { - 'max_parallelism': 'max_parallelism', - 'security_context': 'security_context', - 'raw_output_data_config': 'raw_output_data_config', - 'labels': 'labels', - 'annotations': 'annotations', - 'interruptible': 'interruptible', - 'overwrite_cache': 'overwrite_cache', - 'envs': 'envs' - } - - def __init__(self, max_parallelism=None, security_context=None, raw_output_data_config=None, labels=None, annotations=None, interruptible=None, overwrite_cache=None, envs=None): # noqa: E501 - """AdminWorkflowExecutionConfig - a model defined in Swagger""" # noqa: E501 - - self._max_parallelism = None - self._security_context = None - self._raw_output_data_config = None - self._labels = None - self._annotations = None - self._interruptible = None - self._overwrite_cache = None - self._envs = None - self.discriminator = None - - if max_parallelism is not None: - self.max_parallelism = max_parallelism - if security_context is not None: - self.security_context = security_context - if raw_output_data_config is not None: - self.raw_output_data_config = raw_output_data_config - if labels is not None: - self.labels = labels - if annotations is not None: - self.annotations = annotations - if interruptible is not None: - self.interruptible = interruptible - if overwrite_cache is not None: - self.overwrite_cache = overwrite_cache - if envs is not None: - self.envs = envs - - @property - def max_parallelism(self): - """Gets the max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 - - Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. # noqa: E501 - - :return: The max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: int - """ - return self._max_parallelism - - @max_parallelism.setter - def max_parallelism(self, max_parallelism): - """Sets the max_parallelism of this AdminWorkflowExecutionConfig. - - Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. # noqa: E501 - - :param max_parallelism: The max_parallelism of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: int - """ - - self._max_parallelism = max_parallelism - - @property - def security_context(self): - """Gets the security_context of this AdminWorkflowExecutionConfig. # noqa: E501 - - Indicates security context permissions for executions triggered with this matchable attribute. # noqa: E501 - - :return: The security_context of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: CoreSecurityContext - """ - return self._security_context - - @security_context.setter - def security_context(self, security_context): - """Sets the security_context of this AdminWorkflowExecutionConfig. - - Indicates security context permissions for executions triggered with this matchable attribute. # noqa: E501 - - :param security_context: The security_context of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: CoreSecurityContext - """ - - self._security_context = security_context - - @property - def raw_output_data_config(self): - """Gets the raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 - - Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 - - :return: The raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: AdminRawOutputDataConfig - """ - return self._raw_output_data_config - - @raw_output_data_config.setter - def raw_output_data_config(self, raw_output_data_config): - """Sets the raw_output_data_config of this AdminWorkflowExecutionConfig. - - Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). # noqa: E501 - - :param raw_output_data_config: The raw_output_data_config of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: AdminRawOutputDataConfig - """ - - self._raw_output_data_config = raw_output_data_config - - @property - def labels(self): - """Gets the labels of this AdminWorkflowExecutionConfig. # noqa: E501 - - Custom labels to be applied to a triggered execution resource. # noqa: E501 - - :return: The labels of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: AdminLabels - """ - return self._labels - - @labels.setter - def labels(self, labels): - """Sets the labels of this AdminWorkflowExecutionConfig. - - Custom labels to be applied to a triggered execution resource. # noqa: E501 - - :param labels: The labels of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: AdminLabels - """ - - self._labels = labels - - @property - def annotations(self): - """Gets the annotations of this AdminWorkflowExecutionConfig. # noqa: E501 - - Custom annotations to be applied to a triggered execution resource. # noqa: E501 - - :return: The annotations of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: AdminAnnotations - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """Sets the annotations of this AdminWorkflowExecutionConfig. - - Custom annotations to be applied to a triggered execution resource. # noqa: E501 - - :param annotations: The annotations of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: AdminAnnotations - """ - - self._annotations = annotations - - @property - def interruptible(self): - """Gets the interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :return: The interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this AdminWorkflowExecutionConfig. - - Allows for the interruptible flag of a workflow to be overwritten for a single execution. Omitting this field uses the workflow's value as a default. As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper around the bool field. # noqa: E501 - - :param interruptible: The interruptible of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - @property - def overwrite_cache(self): - """Gets the overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :return: The overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: bool - """ - return self._overwrite_cache - - @overwrite_cache.setter - def overwrite_cache(self, overwrite_cache): - """Sets the overwrite_cache of this AdminWorkflowExecutionConfig. - - Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. If enabled, all calculations are performed even if cached results would be available, overwriting the stored data once execution finishes successfully. # noqa: E501 - - :param overwrite_cache: The overwrite_cache of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: bool - """ - - self._overwrite_cache = overwrite_cache - - @property - def envs(self): - """Gets the envs of this AdminWorkflowExecutionConfig. # noqa: E501 - - Environment variables to be set for the execution. # noqa: E501 - - :return: The envs of this AdminWorkflowExecutionConfig. # noqa: E501 - :rtype: AdminEnvs - """ - return self._envs - - @envs.setter - def envs(self, envs): - """Sets the envs of this AdminWorkflowExecutionConfig. - - Environment variables to be set for the execution. # noqa: E501 - - :param envs: The envs of this AdminWorkflowExecutionConfig. # noqa: E501 - :type: AdminEnvs - """ - - self._envs = envs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowExecutionConfig, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowExecutionConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py deleted file mode 100644 index 5b49fb3631..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_request.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: F401,E501 - - -class AdminWorkflowExecutionEventRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'request_id': 'str', - 'event': 'EventWorkflowExecutionEvent' - } - - attribute_map = { - 'request_id': 'request_id', - 'event': 'event' - } - - def __init__(self, request_id=None, event=None): # noqa: E501 - """AdminWorkflowExecutionEventRequest - a model defined in Swagger""" # noqa: E501 - - self._request_id = None - self._event = None - self.discriminator = None - - if request_id is not None: - self.request_id = request_id - if event is not None: - self.event = event - - @property - def request_id(self): - """Gets the request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 - - - :return: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 - :rtype: str - """ - return self._request_id - - @request_id.setter - def request_id(self, request_id): - """Sets the request_id of this AdminWorkflowExecutionEventRequest. - - - :param request_id: The request_id of this AdminWorkflowExecutionEventRequest. # noqa: E501 - :type: str - """ - - self._request_id = request_id - - @property - def event(self): - """Gets the event of this AdminWorkflowExecutionEventRequest. # noqa: E501 - - Details about the event that occurred. # noqa: E501 - - :return: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 - :rtype: EventWorkflowExecutionEvent - """ - return self._event - - @event.setter - def event(self, event): - """Sets the event of this AdminWorkflowExecutionEventRequest. - - Details about the event that occurred. # noqa: E501 - - :param event: The event of this AdminWorkflowExecutionEventRequest. # noqa: E501 - :type: EventWorkflowExecutionEvent - """ - - self._event = event - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowExecutionEventRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowExecutionEventRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py deleted file mode 100644 index e4ddc78b69..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_event_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class AdminWorkflowExecutionEventResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """AdminWorkflowExecutionEventResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowExecutionEventResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowExecutionEventResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py deleted file mode 100644 index 7b08ce32c7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_data_response.py +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 - - -class AdminWorkflowExecutionGetDataResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'outputs': 'AdminUrlBlob', - 'inputs': 'AdminUrlBlob', - 'full_inputs': 'CoreLiteralMap', - 'full_outputs': 'CoreLiteralMap' - } - - attribute_map = { - 'outputs': 'outputs', - 'inputs': 'inputs', - 'full_inputs': 'full_inputs', - 'full_outputs': 'full_outputs' - } - - def __init__(self, outputs=None, inputs=None, full_inputs=None, full_outputs=None): # noqa: E501 - """AdminWorkflowExecutionGetDataResponse - a model defined in Swagger""" # noqa: E501 - - self._outputs = None - self._inputs = None - self._full_inputs = None - self._full_outputs = None - self.discriminator = None - - if outputs is not None: - self.outputs = outputs - if inputs is not None: - self.inputs = inputs - if full_inputs is not None: - self.full_inputs = full_inputs - if full_outputs is not None: - self.full_outputs = full_outputs - - @property - def outputs(self): - """Gets the outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :return: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this AdminWorkflowExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of execution outputs. Deprecated: Please use full_outputs instead. # noqa: E501 - - :param outputs: The outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._outputs = outputs - - @property - def inputs(self): - """Gets the inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - - Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :return: The inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :rtype: AdminUrlBlob - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this AdminWorkflowExecutionGetDataResponse. - - Signed url to fetch a core.LiteralMap of execution inputs. Deprecated: Please use full_inputs instead. # noqa: E501 - - :param inputs: The inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :type: AdminUrlBlob - """ - - self._inputs = inputs - - @property - def full_inputs(self): - """Gets the full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_inputs - - @full_inputs.setter - def full_inputs(self, full_inputs): - """Sets the full_inputs of this AdminWorkflowExecutionGetDataResponse. - - Full_inputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_inputs: The full_inputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_inputs = full_inputs - - @property - def full_outputs(self): - """Gets the full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :return: The full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._full_outputs - - @full_outputs.setter - def full_outputs(self, full_outputs): - """Sets the full_outputs of this AdminWorkflowExecutionGetDataResponse. - - Full_outputs will only be populated if they are under a configured size threshold. # noqa: E501 - - :param full_outputs: The full_outputs of this AdminWorkflowExecutionGetDataResponse. # noqa: E501 - :type: CoreLiteralMap - """ - - self._full_outputs = full_outputs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowExecutionGetDataResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowExecutionGetDataResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py deleted file mode 100644 index 64d71f5cdb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_execution_get_metrics_response.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_span import CoreSpan # noqa: F401,E501 - - -class AdminWorkflowExecutionGetMetricsResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'span': 'CoreSpan' - } - - attribute_map = { - 'span': 'span' - } - - def __init__(self, span=None): # noqa: E501 - """AdminWorkflowExecutionGetMetricsResponse - a model defined in Swagger""" # noqa: E501 - - self._span = None - self.discriminator = None - - if span is not None: - self.span = span - - @property - def span(self): - """Gets the span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 - - Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. # noqa: E501 - - :return: The span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 - :rtype: CoreSpan - """ - return self._span - - @span.setter - def span(self, span): - """Sets the span of this AdminWorkflowExecutionGetMetricsResponse. - - Span defines the top-level breakdown of the workflows execution. More precise information is nested in a hierarchical structure using Flyte entity references. # noqa: E501 - - :param span: The span of this AdminWorkflowExecutionGetMetricsResponse. # noqa: E501 - :type: CoreSpan - """ - - self._span = span - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowExecutionGetMetricsResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowExecutionGetMetricsResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py deleted file mode 100644 index 65fe9fb331..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_list.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: F401,E501 - - -class AdminWorkflowList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'workflows': 'list[AdminWorkflow]', - 'token': 'str' - } - - attribute_map = { - 'workflows': 'workflows', - 'token': 'token' - } - - def __init__(self, workflows=None, token=None): # noqa: E501 - """AdminWorkflowList - a model defined in Swagger""" # noqa: E501 - - self._workflows = None - self._token = None - self.discriminator = None - - if workflows is not None: - self.workflows = workflows - if token is not None: - self.token = token - - @property - def workflows(self): - """Gets the workflows of this AdminWorkflowList. # noqa: E501 - - A list of workflows returned based on the request. # noqa: E501 - - :return: The workflows of this AdminWorkflowList. # noqa: E501 - :rtype: list[AdminWorkflow] - """ - return self._workflows - - @workflows.setter - def workflows(self, workflows): - """Sets the workflows of this AdminWorkflowList. - - A list of workflows returned based on the request. # noqa: E501 - - :param workflows: The workflows of this AdminWorkflowList. # noqa: E501 - :type: list[AdminWorkflow] - """ - - self._workflows = workflows - - @property - def token(self): - """Gets the token of this AdminWorkflowList. # noqa: E501 - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :return: The token of this AdminWorkflowList. # noqa: E501 - :rtype: str - """ - return self._token - - @token.setter - def token(self, token): - """Sets the token of this AdminWorkflowList. - - In the case of multiple pages of results, the server-provided token can be used to fetch the next page in a query. If there are no more results, this value will be empty. # noqa: E501 - - :param token: The token of this AdminWorkflowList. # noqa: E501 - :type: str - """ - - self._token = token - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py deleted file mode 100644 index 42b990d1c0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/admin_workflow_spec.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: F401,E501 -from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 - - -class AdminWorkflowSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'template': 'CoreWorkflowTemplate', - 'sub_workflows': 'list[CoreWorkflowTemplate]', - 'description': 'AdminDescriptionEntity' - } - - attribute_map = { - 'template': 'template', - 'sub_workflows': 'sub_workflows', - 'description': 'description' - } - - def __init__(self, template=None, sub_workflows=None, description=None): # noqa: E501 - """AdminWorkflowSpec - a model defined in Swagger""" # noqa: E501 - - self._template = None - self._sub_workflows = None - self._description = None - self.discriminator = None - - if template is not None: - self.template = template - if sub_workflows is not None: - self.sub_workflows = sub_workflows - if description is not None: - self.description = description - - @property - def template(self): - """Gets the template of this AdminWorkflowSpec. # noqa: E501 - - Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 - - :return: The template of this AdminWorkflowSpec. # noqa: E501 - :rtype: CoreWorkflowTemplate - """ - return self._template - - @template.setter - def template(self, template): - """Sets the template of this AdminWorkflowSpec. - - Template of the task that encapsulates all the metadata of the workflow. # noqa: E501 - - :param template: The template of this AdminWorkflowSpec. # noqa: E501 - :type: CoreWorkflowTemplate - """ - - self._template = template - - @property - def sub_workflows(self): - """Gets the sub_workflows of this AdminWorkflowSpec. # noqa: E501 - - Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. # noqa: E501 - - :return: The sub_workflows of this AdminWorkflowSpec. # noqa: E501 - :rtype: list[CoreWorkflowTemplate] - """ - return self._sub_workflows - - @sub_workflows.setter - def sub_workflows(self, sub_workflows): - """Sets the sub_workflows of this AdminWorkflowSpec. - - Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. # noqa: E501 - - :param sub_workflows: The sub_workflows of this AdminWorkflowSpec. # noqa: E501 - :type: list[CoreWorkflowTemplate] - """ - - self._sub_workflows = sub_workflows - - @property - def description(self): - """Gets the description of this AdminWorkflowSpec. # noqa: E501 - - Represents the specification for description entity. # noqa: E501 - - :return: The description of this AdminWorkflowSpec. # noqa: E501 - :rtype: AdminDescriptionEntity - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this AdminWorkflowSpec. - - Represents the specification for description entity. # noqa: E501 - - :param description: The description of this AdminWorkflowSpec. # noqa: E501 - :type: AdminDescriptionEntity - """ - - self._description = description - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(AdminWorkflowSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, AdminWorkflowSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py deleted file mode 100644 index 94a5d768f7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/blob_type_blob_dimensionality.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class BlobTypeBlobDimensionality(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - SINGLE = "SINGLE" - MULTIPART = "MULTIPART" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """BlobTypeBlobDimensionality - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(BlobTypeBlobDimensionality, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, BlobTypeBlobDimensionality): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py deleted file mode 100644 index f518595426..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/catalog_reservation_status.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CatalogReservationStatus(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DISABLED = "RESERVATION_DISABLED" - ACQUIRED = "RESERVATION_ACQUIRED" - EXISTS = "RESERVATION_EXISTS" - RELEASED = "RESERVATION_RELEASED" - FAILURE = "RESERVATION_FAILURE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CatalogReservationStatus - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CatalogReservationStatus, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CatalogReservationStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py deleted file mode 100644 index b141515185..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/comparison_expression_operator.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ComparisonExpressionOperator(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - EQ = "EQ" - NEQ = "NEQ" - GT = "GT" - GTE = "GTE" - LT = "LT" - LTE = "LTE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ComparisonExpressionOperator - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ComparisonExpressionOperator, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ComparisonExpressionOperator): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py deleted file mode 100644 index 95bbfe7148..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/conjunction_expression_logical_operator.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ConjunctionExpressionLogicalOperator(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - AND = "AND" - OR = "OR" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ConjunctionExpressionLogicalOperator - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConjunctionExpressionLogicalOperator, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConjunctionExpressionLogicalOperator): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py deleted file mode 100644 index 75c0232481..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/connection_set_id_list.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ConnectionSetIdList(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'ids': 'list[str]' - } - - attribute_map = { - 'ids': 'ids' - } - - def __init__(self, ids=None): # noqa: E501 - """ConnectionSetIdList - a model defined in Swagger""" # noqa: E501 - - self._ids = None - self.discriminator = None - - if ids is not None: - self.ids = ids - - @property - def ids(self): - """Gets the ids of this ConnectionSetIdList. # noqa: E501 - - - :return: The ids of this ConnectionSetIdList. # noqa: E501 - :rtype: list[str] - """ - return self._ids - - @ids.setter - def ids(self, ids): - """Sets the ids of this ConnectionSetIdList. - - - :param ids: The ids of this ConnectionSetIdList. # noqa: E501 - :type: list[str] - """ - - self._ids = ids - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ConnectionSetIdList, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ConnectionSetIdList): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py deleted file mode 100644 index eb0f6d3987..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/container_architecture.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ContainerArchitecture(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNKNOWN = "UNKNOWN" - AMD64 = "AMD64" - ARM64 = "ARM64" - ARM_V6 = "ARM_V6" - ARM_V7 = "ARM_V7" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ContainerArchitecture - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ContainerArchitecture, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ContainerArchitecture): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py deleted file mode 100644 index e838fed4ee..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_alias.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreAlias(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'var': 'str', - 'alias': 'str' - } - - attribute_map = { - 'var': 'var', - 'alias': 'alias' - } - - def __init__(self, var=None, alias=None): # noqa: E501 - """CoreAlias - a model defined in Swagger""" # noqa: E501 - - self._var = None - self._alias = None - self.discriminator = None - - if var is not None: - self.var = var - if alias is not None: - self.alias = alias - - @property - def var(self): - """Gets the var of this CoreAlias. # noqa: E501 - - Must match one of the output variable names on a node. # noqa: E501 - - :return: The var of this CoreAlias. # noqa: E501 - :rtype: str - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreAlias. - - Must match one of the output variable names on a node. # noqa: E501 - - :param var: The var of this CoreAlias. # noqa: E501 - :type: str - """ - - self._var = var - - @property - def alias(self): - """Gets the alias of this CoreAlias. # noqa: E501 - - A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 - - :return: The alias of this CoreAlias. # noqa: E501 - :rtype: str - """ - return self._alias - - @alias.setter - def alias(self, alias): - """Sets the alias of this CoreAlias. - - A workflow-level unique alias that downstream nodes can refer to in their input. # noqa: E501 - - :param alias: The alias of this CoreAlias. # noqa: E501 - :type: str - """ - - self._alias = alias - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreAlias, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreAlias): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py deleted file mode 100644 index 56146e7219..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_approve_condition.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreApproveCondition(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'signal_id': 'str' - } - - attribute_map = { - 'signal_id': 'signal_id' - } - - def __init__(self, signal_id=None): # noqa: E501 - """CoreApproveCondition - a model defined in Swagger""" # noqa: E501 - - self._signal_id = None - self.discriminator = None - - if signal_id is not None: - self.signal_id = signal_id - - @property - def signal_id(self): - """Gets the signal_id of this CoreApproveCondition. # noqa: E501 - - A unique identifier for the requested boolean signal. # noqa: E501 - - :return: The signal_id of this CoreApproveCondition. # noqa: E501 - :rtype: str - """ - return self._signal_id - - @signal_id.setter - def signal_id(self, signal_id): - """Sets the signal_id of this CoreApproveCondition. - - A unique identifier for the requested boolean signal. # noqa: E501 - - :param signal_id: The signal_id of this CoreApproveCondition. # noqa: E501 - :type: str - """ - - self._signal_id = signal_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreApproveCondition, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreApproveCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py deleted file mode 100644 index 7922966896..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_array_node.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 - - -class CoreArrayNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node': 'CoreNode', - 'parallelism': 'int', - 'min_successes': 'int', - 'min_success_ratio': 'float' - } - - attribute_map = { - 'node': 'node', - 'parallelism': 'parallelism', - 'min_successes': 'min_successes', - 'min_success_ratio': 'min_success_ratio' - } - - def __init__(self, node=None, parallelism=None, min_successes=None, min_success_ratio=None): # noqa: E501 - """CoreArrayNode - a model defined in Swagger""" # noqa: E501 - - self._node = None - self._parallelism = None - self._min_successes = None - self._min_success_ratio = None - self.discriminator = None - - if node is not None: - self.node = node - if parallelism is not None: - self.parallelism = parallelism - if min_successes is not None: - self.min_successes = min_successes - if min_success_ratio is not None: - self.min_success_ratio = min_success_ratio - - @property - def node(self): - """Gets the node of this CoreArrayNode. # noqa: E501 - - node is the sub-node that will be executed for each element in the array. # noqa: E501 - - :return: The node of this CoreArrayNode. # noqa: E501 - :rtype: CoreNode - """ - return self._node - - @node.setter - def node(self, node): - """Sets the node of this CoreArrayNode. - - node is the sub-node that will be executed for each element in the array. # noqa: E501 - - :param node: The node of this CoreArrayNode. # noqa: E501 - :type: CoreNode - """ - - self._node = node - - @property - def parallelism(self): - """Gets the parallelism of this CoreArrayNode. # noqa: E501 - - parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. # noqa: E501 - - :return: The parallelism of this CoreArrayNode. # noqa: E501 - :rtype: int - """ - return self._parallelism - - @parallelism.setter - def parallelism(self, parallelism): - """Sets the parallelism of this CoreArrayNode. - - parallelism defines the minimum number of instances to bring up concurrently at any given point. Note that this is an optimistic restriction and that, due to network partitioning or other failures, the actual number of currently running instances might be more. This has to be a positive number if assigned. Default value is size. # noqa: E501 - - :param parallelism: The parallelism of this CoreArrayNode. # noqa: E501 - :type: int - """ - - self._parallelism = parallelism - - @property - def min_successes(self): - """Gets the min_successes of this CoreArrayNode. # noqa: E501 - - min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). # noqa: E501 - - :return: The min_successes of this CoreArrayNode. # noqa: E501 - :rtype: int - """ - return self._min_successes - - @min_successes.setter - def min_successes(self, min_successes): - """Sets the min_successes of this CoreArrayNode. - - min_successes is an absolute number of the minimum number of successful completions of sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful and outputs will be computed. This has to be a non-negative number if assigned. Default value is size (if specified). # noqa: E501 - - :param min_successes: The min_successes of this CoreArrayNode. # noqa: E501 - :type: int - """ - - self._min_successes = min_successes - - @property - def min_success_ratio(self): - """Gets the min_success_ratio of this CoreArrayNode. # noqa: E501 - - If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. # noqa: E501 - - :return: The min_success_ratio of this CoreArrayNode. # noqa: E501 - :rtype: float - """ - return self._min_success_ratio - - @min_success_ratio.setter - def min_success_ratio(self, min_success_ratio): - """Sets the min_success_ratio of this CoreArrayNode. - - If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an ArrayNode can be marked successful. # noqa: E501 - - :param min_success_ratio: The min_success_ratio of this CoreArrayNode. # noqa: E501 - :type: float - """ - - self._min_success_ratio = min_success_ratio - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArrayNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArrayNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_binding_data.py deleted file mode 100644 index 01bdc123bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_binding_data.py +++ /dev/null @@ -1,167 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreArtifactBindingData(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'index': 'int', - 'partition_key': 'str', - 'transform': 'str' - } - - attribute_map = { - 'index': 'index', - 'partition_key': 'partition_key', - 'transform': 'transform' - } - - def __init__(self, index=None, partition_key=None, transform=None): # noqa: E501 - """CoreArtifactBindingData - a model defined in Swagger""" # noqa: E501 - - self._index = None - self._partition_key = None - self._transform = None - self.discriminator = None - - if index is not None: - self.index = index - if partition_key is not None: - self.partition_key = partition_key - if transform is not None: - self.transform = transform - - @property - def index(self): - """Gets the index of this CoreArtifactBindingData. # noqa: E501 - - - :return: The index of this CoreArtifactBindingData. # noqa: E501 - :rtype: int - """ - return self._index - - @index.setter - def index(self, index): - """Sets the index of this CoreArtifactBindingData. - - - :param index: The index of this CoreArtifactBindingData. # noqa: E501 - :type: int - """ - - self._index = index - - @property - def partition_key(self): - """Gets the partition_key of this CoreArtifactBindingData. # noqa: E501 - - - :return: The partition_key of this CoreArtifactBindingData. # noqa: E501 - :rtype: str - """ - return self._partition_key - - @partition_key.setter - def partition_key(self, partition_key): - """Sets the partition_key of this CoreArtifactBindingData. - - - :param partition_key: The partition_key of this CoreArtifactBindingData. # noqa: E501 - :type: str - """ - - self._partition_key = partition_key - - @property - def transform(self): - """Gets the transform of this CoreArtifactBindingData. # noqa: E501 - - - :return: The transform of this CoreArtifactBindingData. # noqa: E501 - :rtype: str - """ - return self._transform - - @transform.setter - def transform(self, transform): - """Sets the transform of this CoreArtifactBindingData. - - - :param transform: The transform of this CoreArtifactBindingData. # noqa: E501 - :type: str - """ - - self._transform = transform - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArtifactBindingData, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArtifactBindingData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_id.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_id.py deleted file mode 100644 index 3d643ce5b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_id.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_key import CoreArtifactKey # noqa: F401,E501 -from flyteadmin.models.core_partitions import CorePartitions # noqa: F401,E501 - - -class CoreArtifactID(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'artifact_key': 'CoreArtifactKey', - 'version': 'str', - 'partitions': 'CorePartitions' - } - - attribute_map = { - 'artifact_key': 'artifact_key', - 'version': 'version', - 'partitions': 'partitions' - } - - def __init__(self, artifact_key=None, version=None, partitions=None): # noqa: E501 - """CoreArtifactID - a model defined in Swagger""" # noqa: E501 - - self._artifact_key = None - self._version = None - self._partitions = None - self.discriminator = None - - if artifact_key is not None: - self.artifact_key = artifact_key - if version is not None: - self.version = version - if partitions is not None: - self.partitions = partitions - - @property - def artifact_key(self): - """Gets the artifact_key of this CoreArtifactID. # noqa: E501 - - - :return: The artifact_key of this CoreArtifactID. # noqa: E501 - :rtype: CoreArtifactKey - """ - return self._artifact_key - - @artifact_key.setter - def artifact_key(self, artifact_key): - """Sets the artifact_key of this CoreArtifactID. - - - :param artifact_key: The artifact_key of this CoreArtifactID. # noqa: E501 - :type: CoreArtifactKey - """ - - self._artifact_key = artifact_key - - @property - def version(self): - """Gets the version of this CoreArtifactID. # noqa: E501 - - - :return: The version of this CoreArtifactID. # noqa: E501 - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this CoreArtifactID. - - - :param version: The version of this CoreArtifactID. # noqa: E501 - :type: str - """ - - self._version = version - - @property - def partitions(self): - """Gets the partitions of this CoreArtifactID. # noqa: E501 - - - :return: The partitions of this CoreArtifactID. # noqa: E501 - :rtype: CorePartitions - """ - return self._partitions - - @partitions.setter - def partitions(self, partitions): - """Sets the partitions of this CoreArtifactID. - - - :param partitions: The partitions of this CoreArtifactID. # noqa: E501 - :type: CorePartitions - """ - - self._partitions = partitions - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArtifactID, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArtifactID): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_key.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_key.py deleted file mode 100644 index a0612fcf2d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_key.py +++ /dev/null @@ -1,169 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreArtifactKey(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'name': 'str' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'name': 'name' - } - - def __init__(self, project=None, domain=None, name=None): # noqa: E501 - """CoreArtifactKey - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._name = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if name is not None: - self.name = name - - @property - def project(self): - """Gets the project of this CoreArtifactKey. # noqa: E501 - - Project and domain and suffix needs to be unique across a given artifact store. # noqa: E501 - - :return: The project of this CoreArtifactKey. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this CoreArtifactKey. - - Project and domain and suffix needs to be unique across a given artifact store. # noqa: E501 - - :param project: The project of this CoreArtifactKey. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this CoreArtifactKey. # noqa: E501 - - - :return: The domain of this CoreArtifactKey. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this CoreArtifactKey. - - - :param domain: The domain of this CoreArtifactKey. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def name(self): - """Gets the name of this CoreArtifactKey. # noqa: E501 - - - :return: The name of this CoreArtifactKey. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreArtifactKey. - - - :param name: The name of this CoreArtifactKey. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArtifactKey, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArtifactKey): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_query.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_query.py deleted file mode 100644 index b87007f5b4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_query.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_binding_data import CoreArtifactBindingData # noqa: F401,E501 -from flyteadmin.models.core_artifact_id import CoreArtifactID # noqa: F401,E501 -from flyteadmin.models.core_artifact_tag import CoreArtifactTag # noqa: F401,E501 - - -class CoreArtifactQuery(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'artifact_id': 'CoreArtifactID', - 'artifact_tag': 'CoreArtifactTag', - 'uri': 'str', - 'binding': 'CoreArtifactBindingData' - } - - attribute_map = { - 'artifact_id': 'artifact_id', - 'artifact_tag': 'artifact_tag', - 'uri': 'uri', - 'binding': 'binding' - } - - def __init__(self, artifact_id=None, artifact_tag=None, uri=None, binding=None): # noqa: E501 - """CoreArtifactQuery - a model defined in Swagger""" # noqa: E501 - - self._artifact_id = None - self._artifact_tag = None - self._uri = None - self._binding = None - self.discriminator = None - - if artifact_id is not None: - self.artifact_id = artifact_id - if artifact_tag is not None: - self.artifact_tag = artifact_tag - if uri is not None: - self.uri = uri - if binding is not None: - self.binding = binding - - @property - def artifact_id(self): - """Gets the artifact_id of this CoreArtifactQuery. # noqa: E501 - - - :return: The artifact_id of this CoreArtifactQuery. # noqa: E501 - :rtype: CoreArtifactID - """ - return self._artifact_id - - @artifact_id.setter - def artifact_id(self, artifact_id): - """Sets the artifact_id of this CoreArtifactQuery. - - - :param artifact_id: The artifact_id of this CoreArtifactQuery. # noqa: E501 - :type: CoreArtifactID - """ - - self._artifact_id = artifact_id - - @property - def artifact_tag(self): - """Gets the artifact_tag of this CoreArtifactQuery. # noqa: E501 - - - :return: The artifact_tag of this CoreArtifactQuery. # noqa: E501 - :rtype: CoreArtifactTag - """ - return self._artifact_tag - - @artifact_tag.setter - def artifact_tag(self, artifact_tag): - """Sets the artifact_tag of this CoreArtifactQuery. - - - :param artifact_tag: The artifact_tag of this CoreArtifactQuery. # noqa: E501 - :type: CoreArtifactTag - """ - - self._artifact_tag = artifact_tag - - @property - def uri(self): - """Gets the uri of this CoreArtifactQuery. # noqa: E501 - - - :return: The uri of this CoreArtifactQuery. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this CoreArtifactQuery. - - - :param uri: The uri of this CoreArtifactQuery. # noqa: E501 - :type: str - """ - - self._uri = uri - - @property - def binding(self): - """Gets the binding of this CoreArtifactQuery. # noqa: E501 - - This is used in the trigger case, where a user specifies a value for an input that is one of the triggering artifacts, or a partition value derived from a triggering artifact. # noqa: E501 - - :return: The binding of this CoreArtifactQuery. # noqa: E501 - :rtype: CoreArtifactBindingData - """ - return self._binding - - @binding.setter - def binding(self, binding): - """Sets the binding of this CoreArtifactQuery. - - This is used in the trigger case, where a user specifies a value for an input that is one of the triggering artifacts, or a partition value derived from a triggering artifact. # noqa: E501 - - :param binding: The binding of this CoreArtifactQuery. # noqa: E501 - :type: CoreArtifactBindingData - """ - - self._binding = binding - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArtifactQuery, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArtifactQuery): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_tag.py deleted file mode 100644 index 9277c6698c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_artifact_tag.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_key import CoreArtifactKey # noqa: F401,E501 -from flyteadmin.models.core_label_value import CoreLabelValue # noqa: F401,E501 - - -class CoreArtifactTag(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'artifact_key': 'CoreArtifactKey', - 'value': 'CoreLabelValue' - } - - attribute_map = { - 'artifact_key': 'artifact_key', - 'value': 'value' - } - - def __init__(self, artifact_key=None, value=None): # noqa: E501 - """CoreArtifactTag - a model defined in Swagger""" # noqa: E501 - - self._artifact_key = None - self._value = None - self.discriminator = None - - if artifact_key is not None: - self.artifact_key = artifact_key - if value is not None: - self.value = value - - @property - def artifact_key(self): - """Gets the artifact_key of this CoreArtifactTag. # noqa: E501 - - - :return: The artifact_key of this CoreArtifactTag. # noqa: E501 - :rtype: CoreArtifactKey - """ - return self._artifact_key - - @artifact_key.setter - def artifact_key(self, artifact_key): - """Sets the artifact_key of this CoreArtifactTag. - - - :param artifact_key: The artifact_key of this CoreArtifactTag. # noqa: E501 - :type: CoreArtifactKey - """ - - self._artifact_key = artifact_key - - @property - def value(self): - """Gets the value of this CoreArtifactTag. # noqa: E501 - - - :return: The value of this CoreArtifactTag. # noqa: E501 - :rtype: CoreLabelValue - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CoreArtifactTag. - - - :param value: The value of this CoreArtifactTag. # noqa: E501 - :type: CoreLabelValue - """ - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreArtifactTag, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreArtifactTag): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py deleted file mode 100644 index 3712928191..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binary.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreBinary(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'str', - 'tag': 'str' - } - - attribute_map = { - 'value': 'value', - 'tag': 'tag' - } - - def __init__(self, value=None, tag=None): # noqa: E501 - """CoreBinary - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._tag = None - self.discriminator = None - - if value is not None: - self.value = value - if tag is not None: - self.tag = tag - - @property - def value(self): - """Gets the value of this CoreBinary. # noqa: E501 - - - :return: The value of this CoreBinary. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CoreBinary. - - - :param value: The value of this CoreBinary. # noqa: E501 - :type: str - """ - if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 - raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 - - self._value = value - - @property - def tag(self): - """Gets the tag of this CoreBinary. # noqa: E501 - - - :return: The tag of this CoreBinary. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this CoreBinary. - - - :param tag: The tag of this CoreBinary. # noqa: E501 - :type: str - """ - - self._tag = tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBinary, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBinary): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py deleted file mode 100644 index e865a23dc7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 - - -class CoreBinding(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'var': 'str', - 'binding': 'CoreBindingData' - } - - attribute_map = { - 'var': 'var', - 'binding': 'binding' - } - - def __init__(self, var=None, binding=None): # noqa: E501 - """CoreBinding - a model defined in Swagger""" # noqa: E501 - - self._var = None - self._binding = None - self.discriminator = None - - if var is not None: - self.var = var - if binding is not None: - self.binding = binding - - @property - def var(self): - """Gets the var of this CoreBinding. # noqa: E501 - - Variable name must match an input/output variable of the node. # noqa: E501 - - :return: The var of this CoreBinding. # noqa: E501 - :rtype: str - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreBinding. - - Variable name must match an input/output variable of the node. # noqa: E501 - - :param var: The var of this CoreBinding. # noqa: E501 - :type: str - """ - - self._var = var - - @property - def binding(self): - """Gets the binding of this CoreBinding. # noqa: E501 - - Data to use to bind this variable. # noqa: E501 - - :return: The binding of this CoreBinding. # noqa: E501 - :rtype: CoreBindingData - """ - return self._binding - - @binding.setter - def binding(self, binding): - """Sets the binding of this CoreBinding. - - Data to use to bind this variable. # noqa: E501 - - :param binding: The binding of this CoreBinding. # noqa: E501 - :type: CoreBindingData - """ - - self._binding = binding - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBinding, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBinding): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py deleted file mode 100644 index 611a1aca53..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data.py +++ /dev/null @@ -1,233 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: F401,E501 -from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: F401,E501 -from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: F401,E501 -from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 -from flyteadmin.models.core_union_info import CoreUnionInfo # noqa: F401,E501 - - -class CoreBindingData(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'scalar': 'CoreScalar', - 'collection': 'CoreBindingDataCollection', - 'promise': 'CoreOutputReference', - 'map': 'CoreBindingDataMap', - 'union': 'CoreUnionInfo' - } - - attribute_map = { - 'scalar': 'scalar', - 'collection': 'collection', - 'promise': 'promise', - 'map': 'map', - 'union': 'union' - } - - def __init__(self, scalar=None, collection=None, promise=None, map=None, union=None): # noqa: E501 - """CoreBindingData - a model defined in Swagger""" # noqa: E501 - - self._scalar = None - self._collection = None - self._promise = None - self._map = None - self._union = None - self.discriminator = None - - if scalar is not None: - self.scalar = scalar - if collection is not None: - self.collection = collection - if promise is not None: - self.promise = promise - if map is not None: - self.map = map - if union is not None: - self.union = union - - @property - def scalar(self): - """Gets the scalar of this CoreBindingData. # noqa: E501 - - A simple scalar value. # noqa: E501 - - :return: The scalar of this CoreBindingData. # noqa: E501 - :rtype: CoreScalar - """ - return self._scalar - - @scalar.setter - def scalar(self, scalar): - """Sets the scalar of this CoreBindingData. - - A simple scalar value. # noqa: E501 - - :param scalar: The scalar of this CoreBindingData. # noqa: E501 - :type: CoreScalar - """ - - self._scalar = scalar - - @property - def collection(self): - """Gets the collection of this CoreBindingData. # noqa: E501 - - A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 - - :return: The collection of this CoreBindingData. # noqa: E501 - :rtype: CoreBindingDataCollection - """ - return self._collection - - @collection.setter - def collection(self, collection): - """Sets the collection of this CoreBindingData. - - A collection of binding data. This allows nesting of binding data to any number of levels. # noqa: E501 - - :param collection: The collection of this CoreBindingData. # noqa: E501 - :type: CoreBindingDataCollection - """ - - self._collection = collection - - @property - def promise(self): - """Gets the promise of this CoreBindingData. # noqa: E501 - - References an output promised by another node. # noqa: E501 - - :return: The promise of this CoreBindingData. # noqa: E501 - :rtype: CoreOutputReference - """ - return self._promise - - @promise.setter - def promise(self, promise): - """Sets the promise of this CoreBindingData. - - References an output promised by another node. # noqa: E501 - - :param promise: The promise of this CoreBindingData. # noqa: E501 - :type: CoreOutputReference - """ - - self._promise = promise - - @property - def map(self): - """Gets the map of this CoreBindingData. # noqa: E501 - - A map of bindings. The key is always a string. # noqa: E501 - - :return: The map of this CoreBindingData. # noqa: E501 - :rtype: CoreBindingDataMap - """ - return self._map - - @map.setter - def map(self, map): - """Sets the map of this CoreBindingData. - - A map of bindings. The key is always a string. # noqa: E501 - - :param map: The map of this CoreBindingData. # noqa: E501 - :type: CoreBindingDataMap - """ - - self._map = map - - @property - def union(self): - """Gets the union of this CoreBindingData. # noqa: E501 - - - :return: The union of this CoreBindingData. # noqa: E501 - :rtype: CoreUnionInfo - """ - return self._union - - @union.setter - def union(self, union): - """Sets the union of this CoreBindingData. - - - :param union: The union of this CoreBindingData. # noqa: E501 - :type: CoreUnionInfo - """ - - self._union = union - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBindingData, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBindingData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py deleted file mode 100644 index a2e765d7fa..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_collection.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 - - -class CoreBindingDataCollection(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'bindings': 'list[CoreBindingData]' - } - - attribute_map = { - 'bindings': 'bindings' - } - - def __init__(self, bindings=None): # noqa: E501 - """CoreBindingDataCollection - a model defined in Swagger""" # noqa: E501 - - self._bindings = None - self.discriminator = None - - if bindings is not None: - self.bindings = bindings - - @property - def bindings(self): - """Gets the bindings of this CoreBindingDataCollection. # noqa: E501 - - - :return: The bindings of this CoreBindingDataCollection. # noqa: E501 - :rtype: list[CoreBindingData] - """ - return self._bindings - - @bindings.setter - def bindings(self, bindings): - """Sets the bindings of this CoreBindingDataCollection. - - - :param bindings: The bindings of this CoreBindingDataCollection. # noqa: E501 - :type: list[CoreBindingData] - """ - - self._bindings = bindings - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBindingDataCollection, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBindingDataCollection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py deleted file mode 100644 index d3d00d4044..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_binding_data_map.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binding_data import CoreBindingData # noqa: F401,E501 - - -class CoreBindingDataMap(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'bindings': 'dict(str, CoreBindingData)' - } - - attribute_map = { - 'bindings': 'bindings' - } - - def __init__(self, bindings=None): # noqa: E501 - """CoreBindingDataMap - a model defined in Swagger""" # noqa: E501 - - self._bindings = None - self.discriminator = None - - if bindings is not None: - self.bindings = bindings - - @property - def bindings(self): - """Gets the bindings of this CoreBindingDataMap. # noqa: E501 - - - :return: The bindings of this CoreBindingDataMap. # noqa: E501 - :rtype: dict(str, CoreBindingData) - """ - return self._bindings - - @bindings.setter - def bindings(self, bindings): - """Sets the bindings of this CoreBindingDataMap. - - - :param bindings: The bindings of this CoreBindingDataMap. # noqa: E501 - :type: dict(str, CoreBindingData) - """ - - self._bindings = bindings - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBindingDataMap, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBindingDataMap): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py deleted file mode 100644 index 270ae7060e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: F401,E501 - - -class CoreBlob(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'metadata': 'CoreBlobMetadata', - 'uri': 'str' - } - - attribute_map = { - 'metadata': 'metadata', - 'uri': 'uri' - } - - def __init__(self, metadata=None, uri=None): # noqa: E501 - """CoreBlob - a model defined in Swagger""" # noqa: E501 - - self._metadata = None - self._uri = None - self.discriminator = None - - if metadata is not None: - self.metadata = metadata - if uri is not None: - self.uri = uri - - @property - def metadata(self): - """Gets the metadata of this CoreBlob. # noqa: E501 - - - :return: The metadata of this CoreBlob. # noqa: E501 - :rtype: CoreBlobMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreBlob. - - - :param metadata: The metadata of this CoreBlob. # noqa: E501 - :type: CoreBlobMetadata - """ - - self._metadata = metadata - - @property - def uri(self): - """Gets the uri of this CoreBlob. # noqa: E501 - - - :return: The uri of this CoreBlob. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this CoreBlob. - - - :param uri: The uri of this CoreBlob. # noqa: E501 - :type: str - """ - - self._uri = uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBlob, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBlob): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py deleted file mode 100644 index 3a12b7f987..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_metadata.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 - - -class CoreBlobMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'CoreBlobType' - } - - attribute_map = { - 'type': 'type' - } - - def __init__(self, type=None): # noqa: E501 - """CoreBlobMetadata - a model defined in Swagger""" # noqa: E501 - - self._type = None - self.discriminator = None - - if type is not None: - self.type = type - - @property - def type(self): - """Gets the type of this CoreBlobMetadata. # noqa: E501 - - - :return: The type of this CoreBlobMetadata. # noqa: E501 - :rtype: CoreBlobType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreBlobMetadata. - - - :param type: The type of this CoreBlobMetadata. # noqa: E501 - :type: CoreBlobType - """ - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBlobMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBlobMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py deleted file mode 100644 index a81b58c44f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_blob_type.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: F401,E501 - - -class CoreBlobType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'format': 'str', - 'dimensionality': 'BlobTypeBlobDimensionality' - } - - attribute_map = { - 'format': 'format', - 'dimensionality': 'dimensionality' - } - - def __init__(self, format=None, dimensionality=None): # noqa: E501 - """CoreBlobType - a model defined in Swagger""" # noqa: E501 - - self._format = None - self._dimensionality = None - self.discriminator = None - - if format is not None: - self.format = format - if dimensionality is not None: - self.dimensionality = dimensionality - - @property - def format(self): - """Gets the format of this CoreBlobType. # noqa: E501 - - - :return: The format of this CoreBlobType. # noqa: E501 - :rtype: str - """ - return self._format - - @format.setter - def format(self, format): - """Sets the format of this CoreBlobType. - - - :param format: The format of this CoreBlobType. # noqa: E501 - :type: str - """ - - self._format = format - - @property - def dimensionality(self): - """Gets the dimensionality of this CoreBlobType. # noqa: E501 - - - :return: The dimensionality of this CoreBlobType. # noqa: E501 - :rtype: BlobTypeBlobDimensionality - """ - return self._dimensionality - - @dimensionality.setter - def dimensionality(self, dimensionality): - """Sets the dimensionality of this CoreBlobType. - - - :param dimensionality: The dimensionality of this CoreBlobType. # noqa: E501 - :type: BlobTypeBlobDimensionality - """ - - self._dimensionality = dimensionality - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBlobType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBlobType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py deleted file mode 100644 index f7eaff6130..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_boolean_expression.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: F401,E501 -from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: F401,E501 - - -class CoreBooleanExpression(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'conjunction': 'CoreConjunctionExpression', - 'comparison': 'CoreComparisonExpression' - } - - attribute_map = { - 'conjunction': 'conjunction', - 'comparison': 'comparison' - } - - def __init__(self, conjunction=None, comparison=None): # noqa: E501 - """CoreBooleanExpression - a model defined in Swagger""" # noqa: E501 - - self._conjunction = None - self._comparison = None - self.discriminator = None - - if conjunction is not None: - self.conjunction = conjunction - if comparison is not None: - self.comparison = comparison - - @property - def conjunction(self): - """Gets the conjunction of this CoreBooleanExpression. # noqa: E501 - - - :return: The conjunction of this CoreBooleanExpression. # noqa: E501 - :rtype: CoreConjunctionExpression - """ - return self._conjunction - - @conjunction.setter - def conjunction(self, conjunction): - """Sets the conjunction of this CoreBooleanExpression. - - - :param conjunction: The conjunction of this CoreBooleanExpression. # noqa: E501 - :type: CoreConjunctionExpression - """ - - self._conjunction = conjunction - - @property - def comparison(self): - """Gets the comparison of this CoreBooleanExpression. # noqa: E501 - - - :return: The comparison of this CoreBooleanExpression. # noqa: E501 - :rtype: CoreComparisonExpression - """ - return self._comparison - - @comparison.setter - def comparison(self, comparison): - """Sets the comparison of this CoreBooleanExpression. - - - :param comparison: The comparison of this CoreBooleanExpression. # noqa: E501 - :type: CoreComparisonExpression - """ - - self._comparison = comparison - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBooleanExpression, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBooleanExpression): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py deleted file mode 100644 index db7cc3c71d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_branch_node.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: F401,E501 - - -class CoreBranchNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'if_else': 'CoreIfElseBlock' - } - - attribute_map = { - 'if_else': 'if_else' - } - - def __init__(self, if_else=None): # noqa: E501 - """CoreBranchNode - a model defined in Swagger""" # noqa: E501 - - self._if_else = None - self.discriminator = None - - if if_else is not None: - self.if_else = if_else - - @property - def if_else(self): - """Gets the if_else of this CoreBranchNode. # noqa: E501 - - - :return: The if_else of this CoreBranchNode. # noqa: E501 - :rtype: CoreIfElseBlock - """ - return self._if_else - - @if_else.setter - def if_else(self, if_else): - """Sets the if_else of this CoreBranchNode. - - - :param if_else: The if_else of this CoreBranchNode. # noqa: E501 - :type: CoreIfElseBlock - """ - - self._if_else = if_else - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreBranchNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreBranchNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py deleted file mode 100644 index 77fb0a950a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_artifact_tag.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreCatalogArtifactTag(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'artifact_id': 'str', - 'name': 'str' - } - - attribute_map = { - 'artifact_id': 'artifact_id', - 'name': 'name' - } - - def __init__(self, artifact_id=None, name=None): # noqa: E501 - """CoreCatalogArtifactTag - a model defined in Swagger""" # noqa: E501 - - self._artifact_id = None - self._name = None - self.discriminator = None - - if artifact_id is not None: - self.artifact_id = artifact_id - if name is not None: - self.name = name - - @property - def artifact_id(self): - """Gets the artifact_id of this CoreCatalogArtifactTag. # noqa: E501 - - - :return: The artifact_id of this CoreCatalogArtifactTag. # noqa: E501 - :rtype: str - """ - return self._artifact_id - - @artifact_id.setter - def artifact_id(self, artifact_id): - """Sets the artifact_id of this CoreCatalogArtifactTag. - - - :param artifact_id: The artifact_id of this CoreCatalogArtifactTag. # noqa: E501 - :type: str - """ - - self._artifact_id = artifact_id - - @property - def name(self): - """Gets the name of this CoreCatalogArtifactTag. # noqa: E501 - - - :return: The name of this CoreCatalogArtifactTag. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreCatalogArtifactTag. - - - :param name: The name of this CoreCatalogArtifactTag. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCatalogArtifactTag, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCatalogArtifactTag): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py deleted file mode 100644 index 03e6e78ab8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_cache_status.py +++ /dev/null @@ -1,98 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreCatalogCacheStatus(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DISABLED = "CACHE_DISABLED" - MISS = "CACHE_MISS" - HIT = "CACHE_HIT" - POPULATED = "CACHE_POPULATED" - LOOKUP_FAILURE = "CACHE_LOOKUP_FAILURE" - PUT_FAILURE = "CACHE_PUT_FAILURE" - SKIPPED = "CACHE_SKIPPED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreCatalogCacheStatus - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCatalogCacheStatus, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCatalogCacheStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py deleted file mode 100644 index ae3d5f81f5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_catalog_metadata.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 - - -class CoreCatalogMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'dataset_id': 'CoreIdentifier', - 'artifact_tag': 'CoreCatalogArtifactTag', - 'source_task_execution': 'CoreTaskExecutionIdentifier' - } - - attribute_map = { - 'dataset_id': 'dataset_id', - 'artifact_tag': 'artifact_tag', - 'source_task_execution': 'source_task_execution' - } - - def __init__(self, dataset_id=None, artifact_tag=None, source_task_execution=None): # noqa: E501 - """CoreCatalogMetadata - a model defined in Swagger""" # noqa: E501 - - self._dataset_id = None - self._artifact_tag = None - self._source_task_execution = None - self.discriminator = None - - if dataset_id is not None: - self.dataset_id = dataset_id - if artifact_tag is not None: - self.artifact_tag = artifact_tag - if source_task_execution is not None: - self.source_task_execution = source_task_execution - - @property - def dataset_id(self): - """Gets the dataset_id of this CoreCatalogMetadata. # noqa: E501 - - - :return: The dataset_id of this CoreCatalogMetadata. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._dataset_id - - @dataset_id.setter - def dataset_id(self, dataset_id): - """Sets the dataset_id of this CoreCatalogMetadata. - - - :param dataset_id: The dataset_id of this CoreCatalogMetadata. # noqa: E501 - :type: CoreIdentifier - """ - - self._dataset_id = dataset_id - - @property - def artifact_tag(self): - """Gets the artifact_tag of this CoreCatalogMetadata. # noqa: E501 - - - :return: The artifact_tag of this CoreCatalogMetadata. # noqa: E501 - :rtype: CoreCatalogArtifactTag - """ - return self._artifact_tag - - @artifact_tag.setter - def artifact_tag(self, artifact_tag): - """Sets the artifact_tag of this CoreCatalogMetadata. - - - :param artifact_tag: The artifact_tag of this CoreCatalogMetadata. # noqa: E501 - :type: CoreCatalogArtifactTag - """ - - self._artifact_tag = artifact_tag - - @property - def source_task_execution(self): - """Gets the source_task_execution of this CoreCatalogMetadata. # noqa: E501 - - - :return: The source_task_execution of this CoreCatalogMetadata. # noqa: E501 - :rtype: CoreTaskExecutionIdentifier - """ - return self._source_task_execution - - @source_task_execution.setter - def source_task_execution(self, source_task_execution): - """Sets the source_task_execution of this CoreCatalogMetadata. - - - :param source_task_execution: The source_task_execution of this CoreCatalogMetadata. # noqa: E501 - :type: CoreTaskExecutionIdentifier - """ - - self._source_task_execution = source_task_execution - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCatalogMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCatalogMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py deleted file mode 100644 index 76e06e75c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_comparison_expression.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: F401,E501 -from flyteadmin.models.core_operand import CoreOperand # noqa: F401,E501 - - -class CoreComparisonExpression(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'operator': 'ComparisonExpressionOperator', - 'left_value': 'CoreOperand', - 'right_value': 'CoreOperand' - } - - attribute_map = { - 'operator': 'operator', - 'left_value': 'left_value', - 'right_value': 'right_value' - } - - def __init__(self, operator=None, left_value=None, right_value=None): # noqa: E501 - """CoreComparisonExpression - a model defined in Swagger""" # noqa: E501 - - self._operator = None - self._left_value = None - self._right_value = None - self.discriminator = None - - if operator is not None: - self.operator = operator - if left_value is not None: - self.left_value = left_value - if right_value is not None: - self.right_value = right_value - - @property - def operator(self): - """Gets the operator of this CoreComparisonExpression. # noqa: E501 - - - :return: The operator of this CoreComparisonExpression. # noqa: E501 - :rtype: ComparisonExpressionOperator - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this CoreComparisonExpression. - - - :param operator: The operator of this CoreComparisonExpression. # noqa: E501 - :type: ComparisonExpressionOperator - """ - - self._operator = operator - - @property - def left_value(self): - """Gets the left_value of this CoreComparisonExpression. # noqa: E501 - - - :return: The left_value of this CoreComparisonExpression. # noqa: E501 - :rtype: CoreOperand - """ - return self._left_value - - @left_value.setter - def left_value(self, left_value): - """Sets the left_value of this CoreComparisonExpression. - - - :param left_value: The left_value of this CoreComparisonExpression. # noqa: E501 - :type: CoreOperand - """ - - self._left_value = left_value - - @property - def right_value(self): - """Gets the right_value of this CoreComparisonExpression. # noqa: E501 - - - :return: The right_value of this CoreComparisonExpression. # noqa: E501 - :rtype: CoreOperand - """ - return self._right_value - - @right_value.setter - def right_value(self, right_value): - """Sets the right_value of this CoreComparisonExpression. - - - :param right_value: The right_value of this CoreComparisonExpression. # noqa: E501 - :type: CoreOperand - """ - - self._right_value = right_value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreComparisonExpression, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreComparisonExpression): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py deleted file mode 100644 index e7bb749c0f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_task.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: F401,E501 - - -class CoreCompiledTask(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'template': 'CoreTaskTemplate' - } - - attribute_map = { - 'template': 'template' - } - - def __init__(self, template=None): # noqa: E501 - """CoreCompiledTask - a model defined in Swagger""" # noqa: E501 - - self._template = None - self.discriminator = None - - if template is not None: - self.template = template - - @property - def template(self): - """Gets the template of this CoreCompiledTask. # noqa: E501 - - - :return: The template of this CoreCompiledTask. # noqa: E501 - :rtype: CoreTaskTemplate - """ - return self._template - - @template.setter - def template(self, template): - """Sets the template of this CoreCompiledTask. - - - :param template: The template of this CoreCompiledTask. # noqa: E501 - :type: CoreTaskTemplate - """ - - self._template = template - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCompiledTask, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCompiledTask): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py deleted file mode 100644 index 2b7de1f256..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow.py +++ /dev/null @@ -1,146 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: F401,E501 -from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: F401,E501 - - -class CoreCompiledWorkflow(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'template': 'CoreWorkflowTemplate', - 'connections': 'CoreConnectionSet' - } - - attribute_map = { - 'template': 'template', - 'connections': 'connections' - } - - def __init__(self, template=None, connections=None): # noqa: E501 - """CoreCompiledWorkflow - a model defined in Swagger""" # noqa: E501 - - self._template = None - self._connections = None - self.discriminator = None - - if template is not None: - self.template = template - if connections is not None: - self.connections = connections - - @property - def template(self): - """Gets the template of this CoreCompiledWorkflow. # noqa: E501 - - - :return: The template of this CoreCompiledWorkflow. # noqa: E501 - :rtype: CoreWorkflowTemplate - """ - return self._template - - @template.setter - def template(self, template): - """Sets the template of this CoreCompiledWorkflow. - - - :param template: The template of this CoreCompiledWorkflow. # noqa: E501 - :type: CoreWorkflowTemplate - """ - - self._template = template - - @property - def connections(self): - """Gets the connections of this CoreCompiledWorkflow. # noqa: E501 - - For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 - - :return: The connections of this CoreCompiledWorkflow. # noqa: E501 - :rtype: CoreConnectionSet - """ - return self._connections - - @connections.setter - def connections(self, connections): - """Sets the connections of this CoreCompiledWorkflow. - - For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. # noqa: E501 - - :param connections: The connections of this CoreCompiledWorkflow. # noqa: E501 - :type: CoreConnectionSet - """ - - self._connections = connections - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCompiledWorkflow, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCompiledWorkflow): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py deleted file mode 100644 index 48afd2e2cc..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_compiled_workflow_closure.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: F401,E501 -from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: F401,E501 - - -class CoreCompiledWorkflowClosure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'primary': 'CoreCompiledWorkflow', - 'sub_workflows': 'list[CoreCompiledWorkflow]', - 'tasks': 'list[CoreCompiledTask]' - } - - attribute_map = { - 'primary': 'primary', - 'sub_workflows': 'sub_workflows', - 'tasks': 'tasks' - } - - def __init__(self, primary=None, sub_workflows=None, tasks=None): # noqa: E501 - """CoreCompiledWorkflowClosure - a model defined in Swagger""" # noqa: E501 - - self._primary = None - self._sub_workflows = None - self._tasks = None - self.discriminator = None - - if primary is not None: - self.primary = primary - if sub_workflows is not None: - self.sub_workflows = sub_workflows - if tasks is not None: - self.tasks = tasks - - @property - def primary(self): - """Gets the primary of this CoreCompiledWorkflowClosure. # noqa: E501 - - - :return: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 - :rtype: CoreCompiledWorkflow - """ - return self._primary - - @primary.setter - def primary(self, primary): - """Sets the primary of this CoreCompiledWorkflowClosure. - - - :param primary: The primary of this CoreCompiledWorkflowClosure. # noqa: E501 - :type: CoreCompiledWorkflow - """ - - self._primary = primary - - @property - def sub_workflows(self): - """Gets the sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 - - - :return: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 - :rtype: list[CoreCompiledWorkflow] - """ - return self._sub_workflows - - @sub_workflows.setter - def sub_workflows(self, sub_workflows): - """Sets the sub_workflows of this CoreCompiledWorkflowClosure. - - - :param sub_workflows: The sub_workflows of this CoreCompiledWorkflowClosure. # noqa: E501 - :type: list[CoreCompiledWorkflow] - """ - - self._sub_workflows = sub_workflows - - @property - def tasks(self): - """Gets the tasks of this CoreCompiledWorkflowClosure. # noqa: E501 - - - :return: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 - :rtype: list[CoreCompiledTask] - """ - return self._tasks - - @tasks.setter - def tasks(self, tasks): - """Sets the tasks of this CoreCompiledWorkflowClosure. - - - :param tasks: The tasks of this CoreCompiledWorkflowClosure. # noqa: E501 - :type: list[CoreCompiledTask] - """ - - self._tasks = tasks - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreCompiledWorkflowClosure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreCompiledWorkflowClosure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py deleted file mode 100644 index d28a2ac830..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_conjunction_expression.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: F401,E501 -from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 - - -class CoreConjunctionExpression(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'operator': 'ConjunctionExpressionLogicalOperator', - 'left_expression': 'CoreBooleanExpression', - 'right_expression': 'CoreBooleanExpression' - } - - attribute_map = { - 'operator': 'operator', - 'left_expression': 'left_expression', - 'right_expression': 'right_expression' - } - - def __init__(self, operator=None, left_expression=None, right_expression=None): # noqa: E501 - """CoreConjunctionExpression - a model defined in Swagger""" # noqa: E501 - - self._operator = None - self._left_expression = None - self._right_expression = None - self.discriminator = None - - if operator is not None: - self.operator = operator - if left_expression is not None: - self.left_expression = left_expression - if right_expression is not None: - self.right_expression = right_expression - - @property - def operator(self): - """Gets the operator of this CoreConjunctionExpression. # noqa: E501 - - - :return: The operator of this CoreConjunctionExpression. # noqa: E501 - :rtype: ConjunctionExpressionLogicalOperator - """ - return self._operator - - @operator.setter - def operator(self, operator): - """Sets the operator of this CoreConjunctionExpression. - - - :param operator: The operator of this CoreConjunctionExpression. # noqa: E501 - :type: ConjunctionExpressionLogicalOperator - """ - - self._operator = operator - - @property - def left_expression(self): - """Gets the left_expression of this CoreConjunctionExpression. # noqa: E501 - - - :return: The left_expression of this CoreConjunctionExpression. # noqa: E501 - :rtype: CoreBooleanExpression - """ - return self._left_expression - - @left_expression.setter - def left_expression(self, left_expression): - """Sets the left_expression of this CoreConjunctionExpression. - - - :param left_expression: The left_expression of this CoreConjunctionExpression. # noqa: E501 - :type: CoreBooleanExpression - """ - - self._left_expression = left_expression - - @property - def right_expression(self): - """Gets the right_expression of this CoreConjunctionExpression. # noqa: E501 - - - :return: The right_expression of this CoreConjunctionExpression. # noqa: E501 - :rtype: CoreBooleanExpression - """ - return self._right_expression - - @right_expression.setter - def right_expression(self, right_expression): - """Sets the right_expression of this CoreConjunctionExpression. - - - :param right_expression: The right_expression of this CoreConjunctionExpression. # noqa: E501 - :type: CoreBooleanExpression - """ - - self._right_expression = right_expression - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreConjunctionExpression, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreConjunctionExpression): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py deleted file mode 100644 index 05361c4a1e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_connection_set.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: F401,E501 - - -class CoreConnectionSet(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'downstream': 'dict(str, ConnectionSetIdList)', - 'upstream': 'dict(str, ConnectionSetIdList)' - } - - attribute_map = { - 'downstream': 'downstream', - 'upstream': 'upstream' - } - - def __init__(self, downstream=None, upstream=None): # noqa: E501 - """CoreConnectionSet - a model defined in Swagger""" # noqa: E501 - - self._downstream = None - self._upstream = None - self.discriminator = None - - if downstream is not None: - self.downstream = downstream - if upstream is not None: - self.upstream = upstream - - @property - def downstream(self): - """Gets the downstream of this CoreConnectionSet. # noqa: E501 - - - :return: The downstream of this CoreConnectionSet. # noqa: E501 - :rtype: dict(str, ConnectionSetIdList) - """ - return self._downstream - - @downstream.setter - def downstream(self, downstream): - """Sets the downstream of this CoreConnectionSet. - - - :param downstream: The downstream of this CoreConnectionSet. # noqa: E501 - :type: dict(str, ConnectionSetIdList) - """ - - self._downstream = downstream - - @property - def upstream(self): - """Gets the upstream of this CoreConnectionSet. # noqa: E501 - - - :return: The upstream of this CoreConnectionSet. # noqa: E501 - :rtype: dict(str, ConnectionSetIdList) - """ - return self._upstream - - @upstream.setter - def upstream(self, upstream): - """Sets the upstream of this CoreConnectionSet. - - - :param upstream: The upstream of this CoreConnectionSet. # noqa: E501 - :type: dict(str, ConnectionSetIdList) - """ - - self._upstream = upstream - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreConnectionSet, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreConnectionSet): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py deleted file mode 100644 index d62eb07977..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container.py +++ /dev/null @@ -1,339 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.container_architecture import ContainerArchitecture # noqa: F401,E501 -from flyteadmin.models.core_container_port import CoreContainerPort # noqa: F401,E501 -from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: F401,E501 -from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: F401,E501 -from flyteadmin.models.core_resources import CoreResources # noqa: F401,E501 - - -class CoreContainer(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'image': 'str', - 'command': 'list[str]', - 'args': 'list[str]', - 'resources': 'CoreResources', - 'env': 'list[CoreKeyValuePair]', - 'config': 'list[CoreKeyValuePair]', - 'ports': 'list[CoreContainerPort]', - 'data_config': 'CoreDataLoadingConfig', - 'architecture': 'ContainerArchitecture' - } - - attribute_map = { - 'image': 'image', - 'command': 'command', - 'args': 'args', - 'resources': 'resources', - 'env': 'env', - 'config': 'config', - 'ports': 'ports', - 'data_config': 'data_config', - 'architecture': 'architecture' - } - - def __init__(self, image=None, command=None, args=None, resources=None, env=None, config=None, ports=None, data_config=None, architecture=None): # noqa: E501 - """CoreContainer - a model defined in Swagger""" # noqa: E501 - - self._image = None - self._command = None - self._args = None - self._resources = None - self._env = None - self._config = None - self._ports = None - self._data_config = None - self._architecture = None - self.discriminator = None - - if image is not None: - self.image = image - if command is not None: - self.command = command - if args is not None: - self.args = args - if resources is not None: - self.resources = resources - if env is not None: - self.env = env - if config is not None: - self.config = config - if ports is not None: - self.ports = ports - if data_config is not None: - self.data_config = data_config - if architecture is not None: - self.architecture = architecture - - @property - def image(self): - """Gets the image of this CoreContainer. # noqa: E501 - - - :return: The image of this CoreContainer. # noqa: E501 - :rtype: str - """ - return self._image - - @image.setter - def image(self, image): - """Sets the image of this CoreContainer. - - - :param image: The image of this CoreContainer. # noqa: E501 - :type: str - """ - - self._image = image - - @property - def command(self): - """Gets the command of this CoreContainer. # noqa: E501 - - Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 - - :return: The command of this CoreContainer. # noqa: E501 - :rtype: list[str] - """ - return self._command - - @command.setter - def command(self, command): - """Sets the command of this CoreContainer. - - Command to be executed, if not provided, the default entrypoint in the container image will be used. # noqa: E501 - - :param command: The command of this CoreContainer. # noqa: E501 - :type: list[str] - """ - - self._command = command - - @property - def args(self): - """Gets the args of this CoreContainer. # noqa: E501 - - These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 - - :return: The args of this CoreContainer. # noqa: E501 - :rtype: list[str] - """ - return self._args - - @args.setter - def args(self, args): - """Sets the args of this CoreContainer. - - These will default to Flyte given paths. If provided, the system will not append known paths. If the task still needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the system will populate these before executing the container. # noqa: E501 - - :param args: The args of this CoreContainer. # noqa: E501 - :type: list[str] - """ - - self._args = args - - @property - def resources(self): - """Gets the resources of this CoreContainer. # noqa: E501 - - Container resources requirement as specified by the container engine. # noqa: E501 - - :return: The resources of this CoreContainer. # noqa: E501 - :rtype: CoreResources - """ - return self._resources - - @resources.setter - def resources(self, resources): - """Sets the resources of this CoreContainer. - - Container resources requirement as specified by the container engine. # noqa: E501 - - :param resources: The resources of this CoreContainer. # noqa: E501 - :type: CoreResources - """ - - self._resources = resources - - @property - def env(self): - """Gets the env of this CoreContainer. # noqa: E501 - - Environment variables will be set as the container is starting up. # noqa: E501 - - :return: The env of this CoreContainer. # noqa: E501 - :rtype: list[CoreKeyValuePair] - """ - return self._env - - @env.setter - def env(self, env): - """Sets the env of this CoreContainer. - - Environment variables will be set as the container is starting up. # noqa: E501 - - :param env: The env of this CoreContainer. # noqa: E501 - :type: list[CoreKeyValuePair] - """ - - self._env = env - - @property - def config(self): - """Gets the config of this CoreContainer. # noqa: E501 - - Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. # noqa: E501 - - :return: The config of this CoreContainer. # noqa: E501 - :rtype: list[CoreKeyValuePair] - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this CoreContainer. - - Allows extra configs to be available for the container. TODO: elaborate on how configs will become available. Deprecated, please use TaskTemplate.config instead. # noqa: E501 - - :param config: The config of this CoreContainer. # noqa: E501 - :type: list[CoreKeyValuePair] - """ - - self._config = config - - @property - def ports(self): - """Gets the ports of this CoreContainer. # noqa: E501 - - - :return: The ports of this CoreContainer. # noqa: E501 - :rtype: list[CoreContainerPort] - """ - return self._ports - - @ports.setter - def ports(self, ports): - """Sets the ports of this CoreContainer. - - - :param ports: The ports of this CoreContainer. # noqa: E501 - :type: list[CoreContainerPort] - """ - - self._ports = ports - - @property - def data_config(self): - """Gets the data_config of this CoreContainer. # noqa: E501 - - - :return: The data_config of this CoreContainer. # noqa: E501 - :rtype: CoreDataLoadingConfig - """ - return self._data_config - - @data_config.setter - def data_config(self, data_config): - """Sets the data_config of this CoreContainer. - - - :param data_config: The data_config of this CoreContainer. # noqa: E501 - :type: CoreDataLoadingConfig - """ - - self._data_config = data_config - - @property - def architecture(self): - """Gets the architecture of this CoreContainer. # noqa: E501 - - - :return: The architecture of this CoreContainer. # noqa: E501 - :rtype: ContainerArchitecture - """ - return self._architecture - - @architecture.setter - def architecture(self, architecture): - """Sets the architecture of this CoreContainer. - - - :param architecture: The architecture of this CoreContainer. # noqa: E501 - :type: ContainerArchitecture - """ - - self._architecture = architecture - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreContainer, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreContainer): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py deleted file mode 100644 index 812da5c31e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_container_port.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreContainerPort(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'container_port': 'int' - } - - attribute_map = { - 'container_port': 'container_port' - } - - def __init__(self, container_port=None): # noqa: E501 - """CoreContainerPort - a model defined in Swagger""" # noqa: E501 - - self._container_port = None - self.discriminator = None - - if container_port is not None: - self.container_port = container_port - - @property - def container_port(self): - """Gets the container_port of this CoreContainerPort. # noqa: E501 - - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 - - :return: The container_port of this CoreContainerPort. # noqa: E501 - :rtype: int - """ - return self._container_port - - @container_port.setter - def container_port(self, container_port): - """Sets the container_port of this CoreContainerPort. - - Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. # noqa: E501 - - :param container_port: The container_port of this CoreContainerPort. # noqa: E501 - :type: int - """ - - self._container_port = container_port - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreContainerPort, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreContainerPort): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py deleted file mode 100644 index 83e4629d4a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_data_loading_config.py +++ /dev/null @@ -1,222 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_io_strategy import CoreIOStrategy # noqa: F401,E501 -from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat # noqa: F401,E501 - - -class CoreDataLoadingConfig(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'enabled': 'bool', - 'input_path': 'str', - 'output_path': 'str', - 'format': 'DataLoadingConfigLiteralMapFormat', - 'io_strategy': 'CoreIOStrategy' - } - - attribute_map = { - 'enabled': 'enabled', - 'input_path': 'input_path', - 'output_path': 'output_path', - 'format': 'format', - 'io_strategy': 'io_strategy' - } - - def __init__(self, enabled=None, input_path=None, output_path=None, format=None, io_strategy=None): # noqa: E501 - """CoreDataLoadingConfig - a model defined in Swagger""" # noqa: E501 - - self._enabled = None - self._input_path = None - self._output_path = None - self._format = None - self._io_strategy = None - self.discriminator = None - - if enabled is not None: - self.enabled = enabled - if input_path is not None: - self.input_path = input_path - if output_path is not None: - self.output_path = output_path - if format is not None: - self.format = format - if io_strategy is not None: - self.io_strategy = io_strategy - - @property - def enabled(self): - """Gets the enabled of this CoreDataLoadingConfig. # noqa: E501 - - - :return: The enabled of this CoreDataLoadingConfig. # noqa: E501 - :rtype: bool - """ - return self._enabled - - @enabled.setter - def enabled(self, enabled): - """Sets the enabled of this CoreDataLoadingConfig. - - - :param enabled: The enabled of this CoreDataLoadingConfig. # noqa: E501 - :type: bool - """ - - self._enabled = enabled - - @property - def input_path(self): - """Gets the input_path of this CoreDataLoadingConfig. # noqa: E501 - - - :return: The input_path of this CoreDataLoadingConfig. # noqa: E501 - :rtype: str - """ - return self._input_path - - @input_path.setter - def input_path(self, input_path): - """Sets the input_path of this CoreDataLoadingConfig. - - - :param input_path: The input_path of this CoreDataLoadingConfig. # noqa: E501 - :type: str - """ - - self._input_path = input_path - - @property - def output_path(self): - """Gets the output_path of this CoreDataLoadingConfig. # noqa: E501 - - - :return: The output_path of this CoreDataLoadingConfig. # noqa: E501 - :rtype: str - """ - return self._output_path - - @output_path.setter - def output_path(self, output_path): - """Sets the output_path of this CoreDataLoadingConfig. - - - :param output_path: The output_path of this CoreDataLoadingConfig. # noqa: E501 - :type: str - """ - - self._output_path = output_path - - @property - def format(self): - """Gets the format of this CoreDataLoadingConfig. # noqa: E501 - - - :return: The format of this CoreDataLoadingConfig. # noqa: E501 - :rtype: DataLoadingConfigLiteralMapFormat - """ - return self._format - - @format.setter - def format(self, format): - """Sets the format of this CoreDataLoadingConfig. - - - :param format: The format of this CoreDataLoadingConfig. # noqa: E501 - :type: DataLoadingConfigLiteralMapFormat - """ - - self._format = format - - @property - def io_strategy(self): - """Gets the io_strategy of this CoreDataLoadingConfig. # noqa: E501 - - - :return: The io_strategy of this CoreDataLoadingConfig. # noqa: E501 - :rtype: CoreIOStrategy - """ - return self._io_strategy - - @io_strategy.setter - def io_strategy(self, io_strategy): - """Sets the io_strategy of this CoreDataLoadingConfig. - - - :param io_strategy: The io_strategy of this CoreDataLoadingConfig. # noqa: E501 - :type: CoreIOStrategy - """ - - self._io_strategy = io_strategy - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreDataLoadingConfig, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreDataLoadingConfig): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py deleted file mode 100644 index bf9e6f85c6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_enum_type.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreEnumType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'list[str]' - } - - attribute_map = { - 'values': 'values' - } - - def __init__(self, values=None): # noqa: E501 - """CoreEnumType - a model defined in Swagger""" # noqa: E501 - - self._values = None - self.discriminator = None - - if values is not None: - self.values = values - - @property - def values(self): - """Gets the values of this CoreEnumType. # noqa: E501 - - Predefined set of enum values. # noqa: E501 - - :return: The values of this CoreEnumType. # noqa: E501 - :rtype: list[str] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this CoreEnumType. - - Predefined set of enum values. # noqa: E501 - - :param values: The values of this CoreEnumType. # noqa: E501 - :type: list[str] - """ - - self._values = values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreEnumType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreEnumType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py deleted file mode 100644 index 50537e11db..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_error.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreError(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'failed_node_id': 'str', - 'message': 'str' - } - - attribute_map = { - 'failed_node_id': 'failed_node_id', - 'message': 'message' - } - - def __init__(self, failed_node_id=None, message=None): # noqa: E501 - """CoreError - a model defined in Swagger""" # noqa: E501 - - self._failed_node_id = None - self._message = None - self.discriminator = None - - if failed_node_id is not None: - self.failed_node_id = failed_node_id - if message is not None: - self.message = message - - @property - def failed_node_id(self): - """Gets the failed_node_id of this CoreError. # noqa: E501 - - The node id that threw the error. # noqa: E501 - - :return: The failed_node_id of this CoreError. # noqa: E501 - :rtype: str - """ - return self._failed_node_id - - @failed_node_id.setter - def failed_node_id(self, failed_node_id): - """Sets the failed_node_id of this CoreError. - - The node id that threw the error. # noqa: E501 - - :param failed_node_id: The failed_node_id of this CoreError. # noqa: E501 - :type: str - """ - - self._failed_node_id = failed_node_id - - @property - def message(self): - """Gets the message of this CoreError. # noqa: E501 - - Error message thrown. # noqa: E501 - - :return: The message of this CoreError. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this CoreError. - - Error message thrown. # noqa: E501 - - :param message: The message of this CoreError. # noqa: E501 - :type: str - """ - - self._message = message - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreError): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py deleted file mode 100644 index b71cd287df..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_execution_error.py +++ /dev/null @@ -1,197 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind # noqa: F401,E501 - - -class CoreExecutionError(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'code': 'str', - 'message': 'str', - 'error_uri': 'str', - 'kind': 'ExecutionErrorErrorKind' - } - - attribute_map = { - 'code': 'code', - 'message': 'message', - 'error_uri': 'error_uri', - 'kind': 'kind' - } - - def __init__(self, code=None, message=None, error_uri=None, kind=None): # noqa: E501 - """CoreExecutionError - a model defined in Swagger""" # noqa: E501 - - self._code = None - self._message = None - self._error_uri = None - self._kind = None - self.discriminator = None - - if code is not None: - self.code = code - if message is not None: - self.message = message - if error_uri is not None: - self.error_uri = error_uri - if kind is not None: - self.kind = kind - - @property - def code(self): - """Gets the code of this CoreExecutionError. # noqa: E501 - - - :return: The code of this CoreExecutionError. # noqa: E501 - :rtype: str - """ - return self._code - - @code.setter - def code(self, code): - """Sets the code of this CoreExecutionError. - - - :param code: The code of this CoreExecutionError. # noqa: E501 - :type: str - """ - - self._code = code - - @property - def message(self): - """Gets the message of this CoreExecutionError. # noqa: E501 - - Detailed description of the error - including stack trace. # noqa: E501 - - :return: The message of this CoreExecutionError. # noqa: E501 - :rtype: str - """ - return self._message - - @message.setter - def message(self, message): - """Sets the message of this CoreExecutionError. - - Detailed description of the error - including stack trace. # noqa: E501 - - :param message: The message of this CoreExecutionError. # noqa: E501 - :type: str - """ - - self._message = message - - @property - def error_uri(self): - """Gets the error_uri of this CoreExecutionError. # noqa: E501 - - - :return: The error_uri of this CoreExecutionError. # noqa: E501 - :rtype: str - """ - return self._error_uri - - @error_uri.setter - def error_uri(self, error_uri): - """Sets the error_uri of this CoreExecutionError. - - - :param error_uri: The error_uri of this CoreExecutionError. # noqa: E501 - :type: str - """ - - self._error_uri = error_uri - - @property - def kind(self): - """Gets the kind of this CoreExecutionError. # noqa: E501 - - - :return: The kind of this CoreExecutionError. # noqa: E501 - :rtype: ExecutionErrorErrorKind - """ - return self._kind - - @kind.setter - def kind(self, kind): - """Sets the kind of this CoreExecutionError. - - - :param kind: The kind of this CoreExecutionError. # noqa: E501 - :type: ExecutionErrorErrorKind - """ - - self._kind = kind - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreExecutionError, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreExecutionError): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_extended_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_extended_resources.py deleted file mode 100644 index 94a58bcd4f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_extended_resources.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_gpu_accelerator import CoreGPUAccelerator # noqa: F401,E501 - - -class CoreExtendedResources(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'gpu_accelerator': 'CoreGPUAccelerator' - } - - attribute_map = { - 'gpu_accelerator': 'gpu_accelerator' - } - - def __init__(self, gpu_accelerator=None): # noqa: E501 - """CoreExtendedResources - a model defined in Swagger""" # noqa: E501 - - self._gpu_accelerator = None - self.discriminator = None - - if gpu_accelerator is not None: - self.gpu_accelerator = gpu_accelerator - - @property - def gpu_accelerator(self): - """Gets the gpu_accelerator of this CoreExtendedResources. # noqa: E501 - - GPU accelerator to select for task. Contains information about device type, and for multi-instance GPUs, the partition size to use. # noqa: E501 - - :return: The gpu_accelerator of this CoreExtendedResources. # noqa: E501 - :rtype: CoreGPUAccelerator - """ - return self._gpu_accelerator - - @gpu_accelerator.setter - def gpu_accelerator(self, gpu_accelerator): - """Sets the gpu_accelerator of this CoreExtendedResources. - - GPU accelerator to select for task. Contains information about device type, and for multi-instance GPUs, the partition size to use. # noqa: E501 - - :param gpu_accelerator: The gpu_accelerator of this CoreExtendedResources. # noqa: E501 - :type: CoreGPUAccelerator - """ - - self._gpu_accelerator = gpu_accelerator - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreExtendedResources, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreExtendedResources): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py deleted file mode 100644 index 87d54a2580..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gate_node.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_approve_condition import CoreApproveCondition # noqa: F401,E501 -from flyteadmin.models.core_signal_condition import CoreSignalCondition # noqa: F401,E501 -from flyteadmin.models.core_sleep_condition import CoreSleepCondition # noqa: F401,E501 - - -class CoreGateNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'approve': 'CoreApproveCondition', - 'signal': 'CoreSignalCondition', - 'sleep': 'CoreSleepCondition' - } - - attribute_map = { - 'approve': 'approve', - 'signal': 'signal', - 'sleep': 'sleep' - } - - def __init__(self, approve=None, signal=None, sleep=None): # noqa: E501 - """CoreGateNode - a model defined in Swagger""" # noqa: E501 - - self._approve = None - self._signal = None - self._sleep = None - self.discriminator = None - - if approve is not None: - self.approve = approve - if signal is not None: - self.signal = signal - if sleep is not None: - self.sleep = sleep - - @property - def approve(self): - """Gets the approve of this CoreGateNode. # noqa: E501 - - ApproveCondition represents a dependency on an external approval provided by a boolean signal. # noqa: E501 - - :return: The approve of this CoreGateNode. # noqa: E501 - :rtype: CoreApproveCondition - """ - return self._approve - - @approve.setter - def approve(self, approve): - """Sets the approve of this CoreGateNode. - - ApproveCondition represents a dependency on an external approval provided by a boolean signal. # noqa: E501 - - :param approve: The approve of this CoreGateNode. # noqa: E501 - :type: CoreApproveCondition - """ - - self._approve = approve - - @property - def signal(self): - """Gets the signal of this CoreGateNode. # noqa: E501 - - SignalCondition represents a dependency on an signal. # noqa: E501 - - :return: The signal of this CoreGateNode. # noqa: E501 - :rtype: CoreSignalCondition - """ - return self._signal - - @signal.setter - def signal(self, signal): - """Sets the signal of this CoreGateNode. - - SignalCondition represents a dependency on an signal. # noqa: E501 - - :param signal: The signal of this CoreGateNode. # noqa: E501 - :type: CoreSignalCondition - """ - - self._signal = signal - - @property - def sleep(self): - """Gets the sleep of this CoreGateNode. # noqa: E501 - - SleepCondition represents a dependency on waiting for the specified duration. # noqa: E501 - - :return: The sleep of this CoreGateNode. # noqa: E501 - :rtype: CoreSleepCondition - """ - return self._sleep - - @sleep.setter - def sleep(self, sleep): - """Sets the sleep of this CoreGateNode. - - SleepCondition represents a dependency on waiting for the specified duration. # noqa: E501 - - :param sleep: The sleep of this CoreGateNode. # noqa: E501 - :type: CoreSleepCondition - """ - - self._sleep = sleep - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreGateNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreGateNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gpu_accelerator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gpu_accelerator.py deleted file mode 100644 index 760ff43267..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_gpu_accelerator.py +++ /dev/null @@ -1,171 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreGPUAccelerator(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'device': 'str', - 'unpartitioned': 'bool', - 'partition_size': 'str' - } - - attribute_map = { - 'device': 'device', - 'unpartitioned': 'unpartitioned', - 'partition_size': 'partition_size' - } - - def __init__(self, device=None, unpartitioned=None, partition_size=None): # noqa: E501 - """CoreGPUAccelerator - a model defined in Swagger""" # noqa: E501 - - self._device = None - self._unpartitioned = None - self._partition_size = None - self.discriminator = None - - if device is not None: - self.device = device - if unpartitioned is not None: - self.unpartitioned = unpartitioned - if partition_size is not None: - self.partition_size = partition_size - - @property - def device(self): - """Gets the device of this CoreGPUAccelerator. # noqa: E501 - - This can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. # noqa: E501 - - :return: The device of this CoreGPUAccelerator. # noqa: E501 - :rtype: str - """ - return self._device - - @device.setter - def device(self, device): - """Sets the device of this CoreGPUAccelerator. - - This can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. # noqa: E501 - - :param device: The device of this CoreGPUAccelerator. # noqa: E501 - :type: str - """ - - self._device = device - - @property - def unpartitioned(self): - """Gets the unpartitioned of this CoreGPUAccelerator. # noqa: E501 - - - :return: The unpartitioned of this CoreGPUAccelerator. # noqa: E501 - :rtype: bool - """ - return self._unpartitioned - - @unpartitioned.setter - def unpartitioned(self, unpartitioned): - """Sets the unpartitioned of this CoreGPUAccelerator. - - - :param unpartitioned: The unpartitioned of this CoreGPUAccelerator. # noqa: E501 - :type: bool - """ - - self._unpartitioned = unpartitioned - - @property - def partition_size(self): - """Gets the partition_size of this CoreGPUAccelerator. # noqa: E501 - - Like `device`, this can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. # noqa: E501 - - :return: The partition_size of this CoreGPUAccelerator. # noqa: E501 - :rtype: str - """ - return self._partition_size - - @partition_size.setter - def partition_size(self, partition_size): - """Sets the partition_size of this CoreGPUAccelerator. - - Like `device`, this can be any arbitrary string, and should be informed by the labels or taints associated with the nodes in question. Default cloud provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. # noqa: E501 - - :param partition_size: The partition_size of this CoreGPUAccelerator. # noqa: E501 - :type: str - """ - - self._partition_size = partition_size - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreGPUAccelerator, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreGPUAccelerator): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py deleted file mode 100644 index ae03fc69e6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identifier.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_resource_type import CoreResourceType # noqa: F401,E501 - - -class CoreIdentifier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'resource_type': 'CoreResourceType', - 'project': 'str', - 'domain': 'str', - 'name': 'str', - 'version': 'str' - } - - attribute_map = { - 'resource_type': 'resource_type', - 'project': 'project', - 'domain': 'domain', - 'name': 'name', - 'version': 'version' - } - - def __init__(self, resource_type=None, project=None, domain=None, name=None, version=None): # noqa: E501 - """CoreIdentifier - a model defined in Swagger""" # noqa: E501 - - self._resource_type = None - self._project = None - self._domain = None - self._name = None - self._version = None - self.discriminator = None - - if resource_type is not None: - self.resource_type = resource_type - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if name is not None: - self.name = name - if version is not None: - self.version = version - - @property - def resource_type(self): - """Gets the resource_type of this CoreIdentifier. # noqa: E501 - - Identifies the specific type of resource that this identifier corresponds to. # noqa: E501 - - :return: The resource_type of this CoreIdentifier. # noqa: E501 - :rtype: CoreResourceType - """ - return self._resource_type - - @resource_type.setter - def resource_type(self, resource_type): - """Sets the resource_type of this CoreIdentifier. - - Identifies the specific type of resource that this identifier corresponds to. # noqa: E501 - - :param resource_type: The resource_type of this CoreIdentifier. # noqa: E501 - :type: CoreResourceType - """ - - self._resource_type = resource_type - - @property - def project(self): - """Gets the project of this CoreIdentifier. # noqa: E501 - - Name of the project the resource belongs to. # noqa: E501 - - :return: The project of this CoreIdentifier. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this CoreIdentifier. - - Name of the project the resource belongs to. # noqa: E501 - - :param project: The project of this CoreIdentifier. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this CoreIdentifier. # noqa: E501 - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :return: The domain of this CoreIdentifier. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this CoreIdentifier. - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :param domain: The domain of this CoreIdentifier. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def name(self): - """Gets the name of this CoreIdentifier. # noqa: E501 - - User provided value for the resource. # noqa: E501 - - :return: The name of this CoreIdentifier. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreIdentifier. - - User provided value for the resource. # noqa: E501 - - :param name: The name of this CoreIdentifier. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def version(self): - """Gets the version of this CoreIdentifier. # noqa: E501 - - Specific version of the resource. # noqa: E501 - - :return: The version of this CoreIdentifier. # noqa: E501 - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this CoreIdentifier. - - Specific version of the resource. # noqa: E501 - - :param version: The version of this CoreIdentifier. # noqa: E501 - :type: str - """ - - self._version = version - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreIdentifier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py deleted file mode 100644 index 8ca7ce92b7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_identity.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: F401,E501 - - -class CoreIdentity(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'iam_role': 'str', - 'k8s_service_account': 'str', - 'oauth2_client': 'CoreOAuth2Client', - 'execution_identity': 'str' - } - - attribute_map = { - 'iam_role': 'iam_role', - 'k8s_service_account': 'k8s_service_account', - 'oauth2_client': 'oauth2_client', - 'execution_identity': 'execution_identity' - } - - def __init__(self, iam_role=None, k8s_service_account=None, oauth2_client=None, execution_identity=None): # noqa: E501 - """CoreIdentity - a model defined in Swagger""" # noqa: E501 - - self._iam_role = None - self._k8s_service_account = None - self._oauth2_client = None - self._execution_identity = None - self.discriminator = None - - if iam_role is not None: - self.iam_role = iam_role - if k8s_service_account is not None: - self.k8s_service_account = k8s_service_account - if oauth2_client is not None: - self.oauth2_client = oauth2_client - if execution_identity is not None: - self.execution_identity = execution_identity - - @property - def iam_role(self): - """Gets the iam_role of this CoreIdentity. # noqa: E501 - - iam_role references the fully qualified name of Identity & Access Management role to impersonate. # noqa: E501 - - :return: The iam_role of this CoreIdentity. # noqa: E501 - :rtype: str - """ - return self._iam_role - - @iam_role.setter - def iam_role(self, iam_role): - """Sets the iam_role of this CoreIdentity. - - iam_role references the fully qualified name of Identity & Access Management role to impersonate. # noqa: E501 - - :param iam_role: The iam_role of this CoreIdentity. # noqa: E501 - :type: str - """ - - self._iam_role = iam_role - - @property - def k8s_service_account(self): - """Gets the k8s_service_account of this CoreIdentity. # noqa: E501 - - k8s_service_account references a kubernetes service account to impersonate. # noqa: E501 - - :return: The k8s_service_account of this CoreIdentity. # noqa: E501 - :rtype: str - """ - return self._k8s_service_account - - @k8s_service_account.setter - def k8s_service_account(self, k8s_service_account): - """Sets the k8s_service_account of this CoreIdentity. - - k8s_service_account references a kubernetes service account to impersonate. # noqa: E501 - - :param k8s_service_account: The k8s_service_account of this CoreIdentity. # noqa: E501 - :type: str - """ - - self._k8s_service_account = k8s_service_account - - @property - def oauth2_client(self): - """Gets the oauth2_client of this CoreIdentity. # noqa: E501 - - oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. # noqa: E501 - - :return: The oauth2_client of this CoreIdentity. # noqa: E501 - :rtype: CoreOAuth2Client - """ - return self._oauth2_client - - @oauth2_client.setter - def oauth2_client(self, oauth2_client): - """Sets the oauth2_client of this CoreIdentity. - - oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when making external calls. # noqa: E501 - - :param oauth2_client: The oauth2_client of this CoreIdentity. # noqa: E501 - :type: CoreOAuth2Client - """ - - self._oauth2_client = oauth2_client - - @property - def execution_identity(self): - """Gets the execution_identity of this CoreIdentity. # noqa: E501 - - - :return: The execution_identity of this CoreIdentity. # noqa: E501 - :rtype: str - """ - return self._execution_identity - - @execution_identity.setter - def execution_identity(self, execution_identity): - """Sets the execution_identity of this CoreIdentity. - - - :param execution_identity: The execution_identity of this CoreIdentity. # noqa: E501 - :type: str - """ - - self._execution_identity = execution_identity - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreIdentity, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreIdentity): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py deleted file mode 100644 index 5368a70365..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_block.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: F401,E501 -from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 - - -class CoreIfBlock(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'condition': 'CoreBooleanExpression', - 'then_node': 'CoreNode' - } - - attribute_map = { - 'condition': 'condition', - 'then_node': 'then_node' - } - - def __init__(self, condition=None, then_node=None): # noqa: E501 - """CoreIfBlock - a model defined in Swagger""" # noqa: E501 - - self._condition = None - self._then_node = None - self.discriminator = None - - if condition is not None: - self.condition = condition - if then_node is not None: - self.then_node = then_node - - @property - def condition(self): - """Gets the condition of this CoreIfBlock. # noqa: E501 - - - :return: The condition of this CoreIfBlock. # noqa: E501 - :rtype: CoreBooleanExpression - """ - return self._condition - - @condition.setter - def condition(self, condition): - """Sets the condition of this CoreIfBlock. - - - :param condition: The condition of this CoreIfBlock. # noqa: E501 - :type: CoreBooleanExpression - """ - - self._condition = condition - - @property - def then_node(self): - """Gets the then_node of this CoreIfBlock. # noqa: E501 - - - :return: The then_node of this CoreIfBlock. # noqa: E501 - :rtype: CoreNode - """ - return self._then_node - - @then_node.setter - def then_node(self, then_node): - """Sets the then_node of this CoreIfBlock. - - - :param then_node: The then_node of this CoreIfBlock. # noqa: E501 - :type: CoreNode - """ - - self._then_node = then_node - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreIfBlock, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreIfBlock): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py deleted file mode 100644 index bff092a8a8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_if_else_block.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_error import CoreError # noqa: F401,E501 -from flyteadmin.models.core_if_block import CoreIfBlock # noqa: F401,E501 -from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 - - -class CoreIfElseBlock(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'case': 'CoreIfBlock', - 'other': 'list[CoreIfBlock]', - 'else_node': 'CoreNode', - 'error': 'CoreError' - } - - attribute_map = { - 'case': 'case', - 'other': 'other', - 'else_node': 'else_node', - 'error': 'error' - } - - def __init__(self, case=None, other=None, else_node=None, error=None): # noqa: E501 - """CoreIfElseBlock - a model defined in Swagger""" # noqa: E501 - - self._case = None - self._other = None - self._else_node = None - self._error = None - self.discriminator = None - - if case is not None: - self.case = case - if other is not None: - self.other = other - if else_node is not None: - self.else_node = else_node - if error is not None: - self.error = error - - @property - def case(self): - """Gets the case of this CoreIfElseBlock. # noqa: E501 - - +required. First condition to evaluate. # noqa: E501 - - :return: The case of this CoreIfElseBlock. # noqa: E501 - :rtype: CoreIfBlock - """ - return self._case - - @case.setter - def case(self, case): - """Sets the case of this CoreIfElseBlock. - - +required. First condition to evaluate. # noqa: E501 - - :param case: The case of this CoreIfElseBlock. # noqa: E501 - :type: CoreIfBlock - """ - - self._case = case - - @property - def other(self): - """Gets the other of this CoreIfElseBlock. # noqa: E501 - - +optional. Additional branches to evaluate. # noqa: E501 - - :return: The other of this CoreIfElseBlock. # noqa: E501 - :rtype: list[CoreIfBlock] - """ - return self._other - - @other.setter - def other(self, other): - """Sets the other of this CoreIfElseBlock. - - +optional. Additional branches to evaluate. # noqa: E501 - - :param other: The other of this CoreIfElseBlock. # noqa: E501 - :type: list[CoreIfBlock] - """ - - self._other = other - - @property - def else_node(self): - """Gets the else_node of this CoreIfElseBlock. # noqa: E501 - - The node to execute in case none of the branches were taken. # noqa: E501 - - :return: The else_node of this CoreIfElseBlock. # noqa: E501 - :rtype: CoreNode - """ - return self._else_node - - @else_node.setter - def else_node(self, else_node): - """Sets the else_node of this CoreIfElseBlock. - - The node to execute in case none of the branches were taken. # noqa: E501 - - :param else_node: The else_node of this CoreIfElseBlock. # noqa: E501 - :type: CoreNode - """ - - self._else_node = else_node - - @property - def error(self): - """Gets the error of this CoreIfElseBlock. # noqa: E501 - - An error to throw in case none of the branches were taken. # noqa: E501 - - :return: The error of this CoreIfElseBlock. # noqa: E501 - :rtype: CoreError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this CoreIfElseBlock. - - An error to throw in case none of the branches were taken. # noqa: E501 - - :param error: The error of this CoreIfElseBlock. # noqa: E501 - :type: CoreError - """ - - self._error = error - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreIfElseBlock, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreIfElseBlock): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_input_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_input_binding_data.py deleted file mode 100644 index 88a1c11a3b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_input_binding_data.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreInputBindingData(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'var': 'str' - } - - attribute_map = { - 'var': 'var' - } - - def __init__(self, var=None): # noqa: E501 - """CoreInputBindingData - a model defined in Swagger""" # noqa: E501 - - self._var = None - self.discriminator = None - - if var is not None: - self.var = var - - @property - def var(self): - """Gets the var of this CoreInputBindingData. # noqa: E501 - - - :return: The var of this CoreInputBindingData. # noqa: E501 - :rtype: str - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreInputBindingData. - - - :param var: The var of this CoreInputBindingData. # noqa: E501 - :type: str - """ - - self._var = var - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreInputBindingData, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreInputBindingData): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py deleted file mode 100644 index 8260e8eb17..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_io_strategy.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode # noqa: F401,E501 -from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode # noqa: F401,E501 - - -class CoreIOStrategy(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'download_mode': 'IOStrategyDownloadMode', - 'upload_mode': 'IOStrategyUploadMode' - } - - attribute_map = { - 'download_mode': 'download_mode', - 'upload_mode': 'upload_mode' - } - - def __init__(self, download_mode=None, upload_mode=None): # noqa: E501 - """CoreIOStrategy - a model defined in Swagger""" # noqa: E501 - - self._download_mode = None - self._upload_mode = None - self.discriminator = None - - if download_mode is not None: - self.download_mode = download_mode - if upload_mode is not None: - self.upload_mode = upload_mode - - @property - def download_mode(self): - """Gets the download_mode of this CoreIOStrategy. # noqa: E501 - - - :return: The download_mode of this CoreIOStrategy. # noqa: E501 - :rtype: IOStrategyDownloadMode - """ - return self._download_mode - - @download_mode.setter - def download_mode(self, download_mode): - """Sets the download_mode of this CoreIOStrategy. - - - :param download_mode: The download_mode of this CoreIOStrategy. # noqa: E501 - :type: IOStrategyDownloadMode - """ - - self._download_mode = download_mode - - @property - def upload_mode(self): - """Gets the upload_mode of this CoreIOStrategy. # noqa: E501 - - - :return: The upload_mode of this CoreIOStrategy. # noqa: E501 - :rtype: IOStrategyUploadMode - """ - return self._upload_mode - - @upload_mode.setter - def upload_mode(self, upload_mode): - """Sets the upload_mode of this CoreIOStrategy. - - - :param upload_mode: The upload_mode of this CoreIOStrategy. # noqa: E501 - :type: IOStrategyUploadMode - """ - - self._upload_mode = upload_mode - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreIOStrategy, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreIOStrategy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py deleted file mode 100644 index 439e7a5db1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_object_metadata.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreK8sObjectMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'labels': 'dict(str, str)', - 'annotations': 'dict(str, str)' - } - - attribute_map = { - 'labels': 'labels', - 'annotations': 'annotations' - } - - def __init__(self, labels=None, annotations=None): # noqa: E501 - """CoreK8sObjectMetadata - a model defined in Swagger""" # noqa: E501 - - self._labels = None - self._annotations = None - self.discriminator = None - - if labels is not None: - self.labels = labels - if annotations is not None: - self.annotations = annotations - - @property - def labels(self): - """Gets the labels of this CoreK8sObjectMetadata. # noqa: E501 - - Optional labels to add to the pod definition. # noqa: E501 - - :return: The labels of this CoreK8sObjectMetadata. # noqa: E501 - :rtype: dict(str, str) - """ - return self._labels - - @labels.setter - def labels(self, labels): - """Sets the labels of this CoreK8sObjectMetadata. - - Optional labels to add to the pod definition. # noqa: E501 - - :param labels: The labels of this CoreK8sObjectMetadata. # noqa: E501 - :type: dict(str, str) - """ - - self._labels = labels - - @property - def annotations(self): - """Gets the annotations of this CoreK8sObjectMetadata. # noqa: E501 - - Optional annotations to add to the pod definition. # noqa: E501 - - :return: The annotations of this CoreK8sObjectMetadata. # noqa: E501 - :rtype: dict(str, str) - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """Sets the annotations of this CoreK8sObjectMetadata. - - Optional annotations to add to the pod definition. # noqa: E501 - - :param annotations: The annotations of this CoreK8sObjectMetadata. # noqa: E501 - :type: dict(str, str) - """ - - self._annotations = annotations - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreK8sObjectMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreK8sObjectMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py deleted file mode 100644 index 5333af8df0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_k8s_pod.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: F401,E501 -from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class CoreK8sPod(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'metadata': 'CoreK8sObjectMetadata', - 'pod_spec': 'ProtobufStruct', - 'data_config': 'CoreDataLoadingConfig' - } - - attribute_map = { - 'metadata': 'metadata', - 'pod_spec': 'pod_spec', - 'data_config': 'data_config' - } - - def __init__(self, metadata=None, pod_spec=None, data_config=None): # noqa: E501 - """CoreK8sPod - a model defined in Swagger""" # noqa: E501 - - self._metadata = None - self._pod_spec = None - self._data_config = None - self.discriminator = None - - if metadata is not None: - self.metadata = metadata - if pod_spec is not None: - self.pod_spec = pod_spec - if data_config is not None: - self.data_config = data_config - - @property - def metadata(self): - """Gets the metadata of this CoreK8sPod. # noqa: E501 - - Contains additional metadata for building a kubernetes pod. # noqa: E501 - - :return: The metadata of this CoreK8sPod. # noqa: E501 - :rtype: CoreK8sObjectMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreK8sPod. - - Contains additional metadata for building a kubernetes pod. # noqa: E501 - - :param metadata: The metadata of this CoreK8sPod. # noqa: E501 - :type: CoreK8sObjectMetadata - """ - - self._metadata = metadata - - @property - def pod_spec(self): - """Gets the pod_spec of this CoreK8sPod. # noqa: E501 - - - :return: The pod_spec of this CoreK8sPod. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._pod_spec - - @pod_spec.setter - def pod_spec(self, pod_spec): - """Sets the pod_spec of this CoreK8sPod. - - - :param pod_spec: The pod_spec of this CoreK8sPod. # noqa: E501 - :type: ProtobufStruct - """ - - self._pod_spec = pod_spec - - @property - def data_config(self): - """Gets the data_config of this CoreK8sPod. # noqa: E501 - - - :return: The data_config of this CoreK8sPod. # noqa: E501 - :rtype: CoreDataLoadingConfig - """ - return self._data_config - - @data_config.setter - def data_config(self, data_config): - """Sets the data_config of this CoreK8sPod. - - - :param data_config: The data_config of this CoreK8sPod. # noqa: E501 - :type: CoreDataLoadingConfig - """ - - self._data_config = data_config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreK8sPod, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreK8sPod): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py deleted file mode 100644 index cd985c0fec..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_key_value_pair.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreKeyValuePair(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'key': 'str', - 'value': 'str' - } - - attribute_map = { - 'key': 'key', - 'value': 'value' - } - - def __init__(self, key=None, value=None): # noqa: E501 - """CoreKeyValuePair - a model defined in Swagger""" # noqa: E501 - - self._key = None - self._value = None - self.discriminator = None - - if key is not None: - self.key = key - if value is not None: - self.value = value - - @property - def key(self): - """Gets the key of this CoreKeyValuePair. # noqa: E501 - - required. # noqa: E501 - - :return: The key of this CoreKeyValuePair. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this CoreKeyValuePair. - - required. # noqa: E501 - - :param key: The key of this CoreKeyValuePair. # noqa: E501 - :type: str - """ - - self._key = key - - @property - def value(self): - """Gets the value of this CoreKeyValuePair. # noqa: E501 - - +optional. # noqa: E501 - - :return: The value of this CoreKeyValuePair. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CoreKeyValuePair. - - +optional. # noqa: E501 - - :param value: The value of this CoreKeyValuePair. # noqa: E501 - :type: str - """ - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreKeyValuePair, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreKeyValuePair): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_label_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_label_value.py deleted file mode 100644 index a15f0fba07..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_label_value.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_binding_data import CoreArtifactBindingData # noqa: F401,E501 -from flyteadmin.models.core_input_binding_data import CoreInputBindingData # noqa: F401,E501 - - -class CoreLabelValue(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'static_value': 'str', - 'triggered_binding': 'CoreArtifactBindingData', - 'input_binding': 'CoreInputBindingData' - } - - attribute_map = { - 'static_value': 'static_value', - 'triggered_binding': 'triggered_binding', - 'input_binding': 'input_binding' - } - - def __init__(self, static_value=None, triggered_binding=None, input_binding=None): # noqa: E501 - """CoreLabelValue - a model defined in Swagger""" # noqa: E501 - - self._static_value = None - self._triggered_binding = None - self._input_binding = None - self.discriminator = None - - if static_value is not None: - self.static_value = static_value - if triggered_binding is not None: - self.triggered_binding = triggered_binding - if input_binding is not None: - self.input_binding = input_binding - - @property - def static_value(self): - """Gets the static_value of this CoreLabelValue. # noqa: E501 - - - :return: The static_value of this CoreLabelValue. # noqa: E501 - :rtype: str - """ - return self._static_value - - @static_value.setter - def static_value(self, static_value): - """Sets the static_value of this CoreLabelValue. - - - :param static_value: The static_value of this CoreLabelValue. # noqa: E501 - :type: str - """ - - self._static_value = static_value - - @property - def triggered_binding(self): - """Gets the triggered_binding of this CoreLabelValue. # noqa: E501 - - - :return: The triggered_binding of this CoreLabelValue. # noqa: E501 - :rtype: CoreArtifactBindingData - """ - return self._triggered_binding - - @triggered_binding.setter - def triggered_binding(self, triggered_binding): - """Sets the triggered_binding of this CoreLabelValue. - - - :param triggered_binding: The triggered_binding of this CoreLabelValue. # noqa: E501 - :type: CoreArtifactBindingData - """ - - self._triggered_binding = triggered_binding - - @property - def input_binding(self): - """Gets the input_binding of this CoreLabelValue. # noqa: E501 - - - :return: The input_binding of this CoreLabelValue. # noqa: E501 - :rtype: CoreInputBindingData - """ - return self._input_binding - - @input_binding.setter - def input_binding(self, input_binding): - """Sets the input_binding of this CoreLabelValue. - - - :param input_binding: The input_binding of this CoreLabelValue. # noqa: E501 - :type: CoreInputBindingData - """ - - self._input_binding = input_binding - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreLabelValue, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreLabelValue): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py deleted file mode 100644 index da80711e0c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 - - -class CoreLiteral(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'scalar': 'CoreScalar', - 'collection': 'CoreLiteralCollection', - 'map': 'CoreLiteralMap', - 'hash': 'str', - 'metadata': 'dict(str, str)' - } - - attribute_map = { - 'scalar': 'scalar', - 'collection': 'collection', - 'map': 'map', - 'hash': 'hash', - 'metadata': 'metadata' - } - - def __init__(self, scalar=None, collection=None, map=None, hash=None, metadata=None): # noqa: E501 - """CoreLiteral - a model defined in Swagger""" # noqa: E501 - - self._scalar = None - self._collection = None - self._map = None - self._hash = None - self._metadata = None - self.discriminator = None - - if scalar is not None: - self.scalar = scalar - if collection is not None: - self.collection = collection - if map is not None: - self.map = map - if hash is not None: - self.hash = hash - if metadata is not None: - self.metadata = metadata - - @property - def scalar(self): - """Gets the scalar of this CoreLiteral. # noqa: E501 - - A simple value. # noqa: E501 - - :return: The scalar of this CoreLiteral. # noqa: E501 - :rtype: CoreScalar - """ - return self._scalar - - @scalar.setter - def scalar(self, scalar): - """Sets the scalar of this CoreLiteral. - - A simple value. # noqa: E501 - - :param scalar: The scalar of this CoreLiteral. # noqa: E501 - :type: CoreScalar - """ - - self._scalar = scalar - - @property - def collection(self): - """Gets the collection of this CoreLiteral. # noqa: E501 - - A collection of literals to allow nesting. # noqa: E501 - - :return: The collection of this CoreLiteral. # noqa: E501 - :rtype: CoreLiteralCollection - """ - return self._collection - - @collection.setter - def collection(self, collection): - """Sets the collection of this CoreLiteral. - - A collection of literals to allow nesting. # noqa: E501 - - :param collection: The collection of this CoreLiteral. # noqa: E501 - :type: CoreLiteralCollection - """ - - self._collection = collection - - @property - def map(self): - """Gets the map of this CoreLiteral. # noqa: E501 - - A map of strings to literals. # noqa: E501 - - :return: The map of this CoreLiteral. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._map - - @map.setter - def map(self, map): - """Sets the map of this CoreLiteral. - - A map of strings to literals. # noqa: E501 - - :param map: The map of this CoreLiteral. # noqa: E501 - :type: CoreLiteralMap - """ - - self._map = map - - @property - def hash(self): - """Gets the hash of this CoreLiteral. # noqa: E501 - - - :return: The hash of this CoreLiteral. # noqa: E501 - :rtype: str - """ - return self._hash - - @hash.setter - def hash(self, hash): - """Sets the hash of this CoreLiteral. - - - :param hash: The hash of this CoreLiteral. # noqa: E501 - :type: str - """ - - self._hash = hash - - @property - def metadata(self): - """Gets the metadata of this CoreLiteral. # noqa: E501 - - Additional metadata for literals. # noqa: E501 - - :return: The metadata of this CoreLiteral. # noqa: E501 - :rtype: dict(str, str) - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreLiteral. - - Additional metadata for literals. # noqa: E501 - - :param metadata: The metadata of this CoreLiteral. # noqa: E501 - :type: dict(str, str) - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreLiteral, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreLiteral): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py deleted file mode 100644 index 325550f749..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_collection.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 - - -class CoreLiteralCollection(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'literals': 'list[CoreLiteral]' - } - - attribute_map = { - 'literals': 'literals' - } - - def __init__(self, literals=None): # noqa: E501 - """CoreLiteralCollection - a model defined in Swagger""" # noqa: E501 - - self._literals = None - self.discriminator = None - - if literals is not None: - self.literals = literals - - @property - def literals(self): - """Gets the literals of this CoreLiteralCollection. # noqa: E501 - - - :return: The literals of this CoreLiteralCollection. # noqa: E501 - :rtype: list[CoreLiteral] - """ - return self._literals - - @literals.setter - def literals(self, literals): - """Sets the literals of this CoreLiteralCollection. - - - :param literals: The literals of this CoreLiteralCollection. # noqa: E501 - :type: list[CoreLiteral] - """ - - self._literals = literals - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreLiteralCollection, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreLiteralCollection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py deleted file mode 100644 index bdcf7cc370..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_map.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 - - -class CoreLiteralMap(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'literals': 'dict(str, CoreLiteral)' - } - - attribute_map = { - 'literals': 'literals' - } - - def __init__(self, literals=None): # noqa: E501 - """CoreLiteralMap - a model defined in Swagger""" # noqa: E501 - - self._literals = None - self.discriminator = None - - if literals is not None: - self.literals = literals - - @property - def literals(self): - """Gets the literals of this CoreLiteralMap. # noqa: E501 - - - :return: The literals of this CoreLiteralMap. # noqa: E501 - :rtype: dict(str, CoreLiteral) - """ - return self._literals - - @literals.setter - def literals(self, literals): - """Sets the literals of this CoreLiteralMap. - - - :param literals: The literals of this CoreLiteralMap. # noqa: E501 - :type: dict(str, CoreLiteral) - """ - - self._literals = literals - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreLiteralMap, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreLiteralMap): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py deleted file mode 100644 index efa49c9ce1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_literal_type.py +++ /dev/null @@ -1,406 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_blob_type import CoreBlobType # noqa: F401,E501 -from flyteadmin.models.core_enum_type import CoreEnumType # noqa: F401,E501 -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 -from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 -from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: F401,E501 -from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: F401,E501 -from flyteadmin.models.core_type_annotation import CoreTypeAnnotation # noqa: F401,E501 -from flyteadmin.models.core_type_structure import CoreTypeStructure # noqa: F401,E501 -from flyteadmin.models.core_union_type import CoreUnionType # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class CoreLiteralType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'simple': 'CoreSimpleType', - 'schema': 'CoreSchemaType', - 'collection_type': 'CoreLiteralType', - 'map_value_type': 'CoreLiteralType', - 'blob': 'CoreBlobType', - 'enum_type': 'CoreEnumType', - 'structured_dataset_type': 'CoreStructuredDatasetType', - 'union_type': 'CoreUnionType', - 'metadata': 'ProtobufStruct', - 'annotation': 'CoreTypeAnnotation', - 'structure': 'CoreTypeStructure' - } - - attribute_map = { - 'simple': 'simple', - 'schema': 'schema', - 'collection_type': 'collection_type', - 'map_value_type': 'map_value_type', - 'blob': 'blob', - 'enum_type': 'enum_type', - 'structured_dataset_type': 'structured_dataset_type', - 'union_type': 'union_type', - 'metadata': 'metadata', - 'annotation': 'annotation', - 'structure': 'structure' - } - - def __init__(self, simple=None, schema=None, collection_type=None, map_value_type=None, blob=None, enum_type=None, structured_dataset_type=None, union_type=None, metadata=None, annotation=None, structure=None): # noqa: E501 - """CoreLiteralType - a model defined in Swagger""" # noqa: E501 - - self._simple = None - self._schema = None - self._collection_type = None - self._map_value_type = None - self._blob = None - self._enum_type = None - self._structured_dataset_type = None - self._union_type = None - self._metadata = None - self._annotation = None - self._structure = None - self.discriminator = None - - if simple is not None: - self.simple = simple - if schema is not None: - self.schema = schema - if collection_type is not None: - self.collection_type = collection_type - if map_value_type is not None: - self.map_value_type = map_value_type - if blob is not None: - self.blob = blob - if enum_type is not None: - self.enum_type = enum_type - if structured_dataset_type is not None: - self.structured_dataset_type = structured_dataset_type - if union_type is not None: - self.union_type = union_type - if metadata is not None: - self.metadata = metadata - if annotation is not None: - self.annotation = annotation - if structure is not None: - self.structure = structure - - @property - def simple(self): - """Gets the simple of this CoreLiteralType. # noqa: E501 - - A simple type that can be compared one-to-one with another. # noqa: E501 - - :return: The simple of this CoreLiteralType. # noqa: E501 - :rtype: CoreSimpleType - """ - return self._simple - - @simple.setter - def simple(self, simple): - """Sets the simple of this CoreLiteralType. - - A simple type that can be compared one-to-one with another. # noqa: E501 - - :param simple: The simple of this CoreLiteralType. # noqa: E501 - :type: CoreSimpleType - """ - - self._simple = simple - - @property - def schema(self): - """Gets the schema of this CoreLiteralType. # noqa: E501 - - A complex type that requires matching of inner fields. # noqa: E501 - - :return: The schema of this CoreLiteralType. # noqa: E501 - :rtype: CoreSchemaType - """ - return self._schema - - @schema.setter - def schema(self, schema): - """Sets the schema of this CoreLiteralType. - - A complex type that requires matching of inner fields. # noqa: E501 - - :param schema: The schema of this CoreLiteralType. # noqa: E501 - :type: CoreSchemaType - """ - - self._schema = schema - - @property - def collection_type(self): - """Gets the collection_type of this CoreLiteralType. # noqa: E501 - - Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 - - :return: The collection_type of this CoreLiteralType. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._collection_type - - @collection_type.setter - def collection_type(self, collection_type): - """Sets the collection_type of this CoreLiteralType. - - Defines the type of the value of a collection. Only homogeneous collections are allowed. # noqa: E501 - - :param collection_type: The collection_type of this CoreLiteralType. # noqa: E501 - :type: CoreLiteralType - """ - - self._collection_type = collection_type - - @property - def map_value_type(self): - """Gets the map_value_type of this CoreLiteralType. # noqa: E501 - - Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 - - :return: The map_value_type of this CoreLiteralType. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._map_value_type - - @map_value_type.setter - def map_value_type(self, map_value_type): - """Sets the map_value_type of this CoreLiteralType. - - Defines the type of the value of a map type. The type of the key is always a string. # noqa: E501 - - :param map_value_type: The map_value_type of this CoreLiteralType. # noqa: E501 - :type: CoreLiteralType - """ - - self._map_value_type = map_value_type - - @property - def blob(self): - """Gets the blob of this CoreLiteralType. # noqa: E501 - - A blob might have specialized implementation details depending on associated metadata. # noqa: E501 - - :return: The blob of this CoreLiteralType. # noqa: E501 - :rtype: CoreBlobType - """ - return self._blob - - @blob.setter - def blob(self, blob): - """Sets the blob of this CoreLiteralType. - - A blob might have specialized implementation details depending on associated metadata. # noqa: E501 - - :param blob: The blob of this CoreLiteralType. # noqa: E501 - :type: CoreBlobType - """ - - self._blob = blob - - @property - def enum_type(self): - """Gets the enum_type of this CoreLiteralType. # noqa: E501 - - Defines an enum with pre-defined string values. # noqa: E501 - - :return: The enum_type of this CoreLiteralType. # noqa: E501 - :rtype: CoreEnumType - """ - return self._enum_type - - @enum_type.setter - def enum_type(self, enum_type): - """Sets the enum_type of this CoreLiteralType. - - Defines an enum with pre-defined string values. # noqa: E501 - - :param enum_type: The enum_type of this CoreLiteralType. # noqa: E501 - :type: CoreEnumType - """ - - self._enum_type = enum_type - - @property - def structured_dataset_type(self): - """Gets the structured_dataset_type of this CoreLiteralType. # noqa: E501 - - - :return: The structured_dataset_type of this CoreLiteralType. # noqa: E501 - :rtype: CoreStructuredDatasetType - """ - return self._structured_dataset_type - - @structured_dataset_type.setter - def structured_dataset_type(self, structured_dataset_type): - """Sets the structured_dataset_type of this CoreLiteralType. - - - :param structured_dataset_type: The structured_dataset_type of this CoreLiteralType. # noqa: E501 - :type: CoreStructuredDatasetType - """ - - self._structured_dataset_type = structured_dataset_type - - @property - def union_type(self): - """Gets the union_type of this CoreLiteralType. # noqa: E501 - - Defines an union type with pre-defined LiteralTypes. # noqa: E501 - - :return: The union_type of this CoreLiteralType. # noqa: E501 - :rtype: CoreUnionType - """ - return self._union_type - - @union_type.setter - def union_type(self, union_type): - """Sets the union_type of this CoreLiteralType. - - Defines an union type with pre-defined LiteralTypes. # noqa: E501 - - :param union_type: The union_type of this CoreLiteralType. # noqa: E501 - :type: CoreUnionType - """ - - self._union_type = union_type - - @property - def metadata(self): - """Gets the metadata of this CoreLiteralType. # noqa: E501 - - This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 - - :return: The metadata of this CoreLiteralType. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreLiteralType. - - This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by consumers to identify special behavior or display extended information for the type. # noqa: E501 - - :param metadata: The metadata of this CoreLiteralType. # noqa: E501 - :type: ProtobufStruct - """ - - self._metadata = metadata - - @property - def annotation(self): - """Gets the annotation of this CoreLiteralType. # noqa: E501 - - This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. # noqa: E501 - - :return: The annotation of this CoreLiteralType. # noqa: E501 - :rtype: CoreTypeAnnotation - """ - return self._annotation - - @annotation.setter - def annotation(self, annotation): - """Sets the annotation of this CoreLiteralType. - - This field contains arbitrary data that might have special semantic meaning for the client but does not effect internal flyte behavior. # noqa: E501 - - :param annotation: The annotation of this CoreLiteralType. # noqa: E501 - :type: CoreTypeAnnotation - """ - - self._annotation = annotation - - @property - def structure(self): - """Gets the structure of this CoreLiteralType. # noqa: E501 - - Hints to improve type matching. # noqa: E501 - - :return: The structure of this CoreLiteralType. # noqa: E501 - :rtype: CoreTypeStructure - """ - return self._structure - - @structure.setter - def structure(self, structure): - """Sets the structure of this CoreLiteralType. - - Hints to improve type matching. # noqa: E501 - - :param structure: The structure of this CoreLiteralType. # noqa: E501 - :type: CoreTypeStructure - """ - - self._structure = structure - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreLiteralType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreLiteralType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py deleted file mode 100644 index c3b7c06deb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node.py +++ /dev/null @@ -1,378 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_alias import CoreAlias # noqa: F401,E501 -from flyteadmin.models.core_array_node import CoreArrayNode # noqa: F401,E501 -from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 -from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: F401,E501 -from flyteadmin.models.core_gate_node import CoreGateNode # noqa: F401,E501 -from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: F401,E501 -from flyteadmin.models.core_task_node import CoreTaskNode # noqa: F401,E501 -from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: F401,E501 - - -class CoreNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'str', - 'metadata': 'CoreNodeMetadata', - 'inputs': 'list[CoreBinding]', - 'upstream_node_ids': 'list[str]', - 'output_aliases': 'list[CoreAlias]', - 'task_node': 'CoreTaskNode', - 'workflow_node': 'CoreWorkflowNode', - 'branch_node': 'CoreBranchNode', - 'gate_node': 'CoreGateNode', - 'array_node': 'CoreArrayNode' - } - - attribute_map = { - 'id': 'id', - 'metadata': 'metadata', - 'inputs': 'inputs', - 'upstream_node_ids': 'upstream_node_ids', - 'output_aliases': 'output_aliases', - 'task_node': 'task_node', - 'workflow_node': 'workflow_node', - 'branch_node': 'branch_node', - 'gate_node': 'gate_node', - 'array_node': 'array_node' - } - - def __init__(self, id=None, metadata=None, inputs=None, upstream_node_ids=None, output_aliases=None, task_node=None, workflow_node=None, branch_node=None, gate_node=None, array_node=None): # noqa: E501 - """CoreNode - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._metadata = None - self._inputs = None - self._upstream_node_ids = None - self._output_aliases = None - self._task_node = None - self._workflow_node = None - self._branch_node = None - self._gate_node = None - self._array_node = None - self.discriminator = None - - if id is not None: - self.id = id - if metadata is not None: - self.metadata = metadata - if inputs is not None: - self.inputs = inputs - if upstream_node_ids is not None: - self.upstream_node_ids = upstream_node_ids - if output_aliases is not None: - self.output_aliases = output_aliases - if task_node is not None: - self.task_node = task_node - if workflow_node is not None: - self.workflow_node = workflow_node - if branch_node is not None: - self.branch_node = branch_node - if gate_node is not None: - self.gate_node = gate_node - if array_node is not None: - self.array_node = array_node - - @property - def id(self): - """Gets the id of this CoreNode. # noqa: E501 - - A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. # noqa: E501 - - :return: The id of this CoreNode. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this CoreNode. - - A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved node ids that cannot be used by other nodes. # noqa: E501 - - :param id: The id of this CoreNode. # noqa: E501 - :type: str - """ - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this CoreNode. # noqa: E501 - - Extra metadata about the node. # noqa: E501 - - :return: The metadata of this CoreNode. # noqa: E501 - :rtype: CoreNodeMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreNode. - - Extra metadata about the node. # noqa: E501 - - :param metadata: The metadata of this CoreNode. # noqa: E501 - :type: CoreNodeMetadata - """ - - self._metadata = metadata - - @property - def inputs(self): - """Gets the inputs of this CoreNode. # noqa: E501 - - Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. # noqa: E501 - - :return: The inputs of this CoreNode. # noqa: E501 - :rtype: list[CoreBinding] - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this CoreNode. - - Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface must be fulfilled. # noqa: E501 - - :param inputs: The inputs of this CoreNode. # noqa: E501 - :type: list[CoreBinding] - """ - - self._inputs = inputs - - @property - def upstream_node_ids(self): - """Gets the upstream_node_ids of this CoreNode. # noqa: E501 - - +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. # noqa: E501 - - :return: The upstream_node_ids of this CoreNode. # noqa: E501 - :rtype: list[str] - """ - return self._upstream_node_ids - - @upstream_node_ids.setter - def upstream_node_ids(self, upstream_node_ids): - """Sets the upstream_node_ids of this CoreNode. - - +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs field. # noqa: E501 - - :param upstream_node_ids: The upstream_node_ids of this CoreNode. # noqa: E501 - :type: list[str] - """ - - self._upstream_node_ids = upstream_node_ids - - @property - def output_aliases(self): - """Gets the output_aliases of this CoreNode. # noqa: E501 - - +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 - - :return: The output_aliases of this CoreNode. # noqa: E501 - :rtype: list[CoreAlias] - """ - return self._output_aliases - - @output_aliases.setter - def output_aliases(self, output_aliases): - """Sets the output_aliases of this CoreNode. - - +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this nodes outputs using the alias if one's specified. # noqa: E501 - - :param output_aliases: The output_aliases of this CoreNode. # noqa: E501 - :type: list[CoreAlias] - """ - - self._output_aliases = output_aliases - - @property - def task_node(self): - """Gets the task_node of this CoreNode. # noqa: E501 - - Information about the Task to execute in this node. # noqa: E501 - - :return: The task_node of this CoreNode. # noqa: E501 - :rtype: CoreTaskNode - """ - return self._task_node - - @task_node.setter - def task_node(self, task_node): - """Sets the task_node of this CoreNode. - - Information about the Task to execute in this node. # noqa: E501 - - :param task_node: The task_node of this CoreNode. # noqa: E501 - :type: CoreTaskNode - """ - - self._task_node = task_node - - @property - def workflow_node(self): - """Gets the workflow_node of this CoreNode. # noqa: E501 - - Information about the Workflow to execute in this mode. # noqa: E501 - - :return: The workflow_node of this CoreNode. # noqa: E501 - :rtype: CoreWorkflowNode - """ - return self._workflow_node - - @workflow_node.setter - def workflow_node(self, workflow_node): - """Sets the workflow_node of this CoreNode. - - Information about the Workflow to execute in this mode. # noqa: E501 - - :param workflow_node: The workflow_node of this CoreNode. # noqa: E501 - :type: CoreWorkflowNode - """ - - self._workflow_node = workflow_node - - @property - def branch_node(self): - """Gets the branch_node of this CoreNode. # noqa: E501 - - Information about the branch node to evaluate in this node. # noqa: E501 - - :return: The branch_node of this CoreNode. # noqa: E501 - :rtype: CoreBranchNode - """ - return self._branch_node - - @branch_node.setter - def branch_node(self, branch_node): - """Sets the branch_node of this CoreNode. - - Information about the branch node to evaluate in this node. # noqa: E501 - - :param branch_node: The branch_node of this CoreNode. # noqa: E501 - :type: CoreBranchNode - """ - - self._branch_node = branch_node - - @property - def gate_node(self): - """Gets the gate_node of this CoreNode. # noqa: E501 - - Information about the condition to evaluate in this node. # noqa: E501 - - :return: The gate_node of this CoreNode. # noqa: E501 - :rtype: CoreGateNode - """ - return self._gate_node - - @gate_node.setter - def gate_node(self, gate_node): - """Sets the gate_node of this CoreNode. - - Information about the condition to evaluate in this node. # noqa: E501 - - :param gate_node: The gate_node of this CoreNode. # noqa: E501 - :type: CoreGateNode - """ - - self._gate_node = gate_node - - @property - def array_node(self): - """Gets the array_node of this CoreNode. # noqa: E501 - - Information about the sub-node executions for each value in the list of this nodes inputs values. # noqa: E501 - - :return: The array_node of this CoreNode. # noqa: E501 - :rtype: CoreArrayNode - """ - return self._array_node - - @array_node.setter - def array_node(self, array_node): - """Sets the array_node of this CoreNode. - - Information about the sub-node executions for each value in the list of this nodes inputs values. # noqa: E501 - - :param array_node: The array_node of this CoreNode. # noqa: E501 - :type: CoreArrayNode - """ - - self._array_node = array_node - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py deleted file mode 100644 index 0c3ea4e60f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_identifier.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class CoreNodeExecutionIdentifier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node_id': 'str', - 'execution_id': 'CoreWorkflowExecutionIdentifier' - } - - attribute_map = { - 'node_id': 'node_id', - 'execution_id': 'execution_id' - } - - def __init__(self, node_id=None, execution_id=None): # noqa: E501 - """CoreNodeExecutionIdentifier - a model defined in Swagger""" # noqa: E501 - - self._node_id = None - self._execution_id = None - self.discriminator = None - - if node_id is not None: - self.node_id = node_id - if execution_id is not None: - self.execution_id = execution_id - - @property - def node_id(self): - """Gets the node_id of this CoreNodeExecutionIdentifier. # noqa: E501 - - - :return: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 - :rtype: str - """ - return self._node_id - - @node_id.setter - def node_id(self, node_id): - """Sets the node_id of this CoreNodeExecutionIdentifier. - - - :param node_id: The node_id of this CoreNodeExecutionIdentifier. # noqa: E501 - :type: str - """ - - self._node_id = node_id - - @property - def execution_id(self): - """Gets the execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 - - - :return: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._execution_id - - @execution_id.setter - def execution_id(self, execution_id): - """Sets the execution_id of this CoreNodeExecutionIdentifier. - - - :param execution_id: The execution_id of this CoreNodeExecutionIdentifier. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._execution_id = execution_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreNodeExecutionIdentifier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreNodeExecutionIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py deleted file mode 100644 index 5b03e7e486..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_execution_phase.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreNodeExecutionPhase(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNDEFINED = "UNDEFINED" - QUEUED = "QUEUED" - RUNNING = "RUNNING" - SUCCEEDED = "SUCCEEDED" - FAILING = "FAILING" - FAILED = "FAILED" - ABORTED = "ABORTED" - SKIPPED = "SKIPPED" - TIMED_OUT = "TIMED_OUT" - DYNAMIC_RUNNING = "DYNAMIC_RUNNING" - RECOVERED = "RECOVERED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreNodeExecutionPhase - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreNodeExecutionPhase, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreNodeExecutionPhase): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py deleted file mode 100644 index d23c04290d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_node_metadata.py +++ /dev/null @@ -1,199 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 - - -class CoreNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'timeout': 'str', - 'retries': 'CoreRetryStrategy', - 'interruptible': 'bool' - } - - attribute_map = { - 'name': 'name', - 'timeout': 'timeout', - 'retries': 'retries', - 'interruptible': 'interruptible' - } - - def __init__(self, name=None, timeout=None, retries=None, interruptible=None): # noqa: E501 - """CoreNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._timeout = None - self._retries = None - self._interruptible = None - self.discriminator = None - - if name is not None: - self.name = name - if timeout is not None: - self.timeout = timeout - if retries is not None: - self.retries = retries - if interruptible is not None: - self.interruptible = interruptible - - @property - def name(self): - """Gets the name of this CoreNodeMetadata. # noqa: E501 - - - :return: The name of this CoreNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreNodeMetadata. - - - :param name: The name of this CoreNodeMetadata. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def timeout(self): - """Gets the timeout of this CoreNodeMetadata. # noqa: E501 - - The overall timeout of a task. # noqa: E501 - - :return: The timeout of this CoreNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._timeout - - @timeout.setter - def timeout(self, timeout): - """Sets the timeout of this CoreNodeMetadata. - - The overall timeout of a task. # noqa: E501 - - :param timeout: The timeout of this CoreNodeMetadata. # noqa: E501 - :type: str - """ - - self._timeout = timeout - - @property - def retries(self): - """Gets the retries of this CoreNodeMetadata. # noqa: E501 - - Number of retries per task. # noqa: E501 - - :return: The retries of this CoreNodeMetadata. # noqa: E501 - :rtype: CoreRetryStrategy - """ - return self._retries - - @retries.setter - def retries(self, retries): - """Sets the retries of this CoreNodeMetadata. - - Number of retries per task. # noqa: E501 - - :param retries: The retries of this CoreNodeMetadata. # noqa: E501 - :type: CoreRetryStrategy - """ - - self._retries = retries - - @property - def interruptible(self): - """Gets the interruptible of this CoreNodeMetadata. # noqa: E501 - - - :return: The interruptible of this CoreNodeMetadata. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this CoreNodeMetadata. - - - :param interruptible: The interruptible of this CoreNodeMetadata. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py deleted file mode 100644 index 520dfdee32..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_client.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_secret import CoreSecret # noqa: F401,E501 - - -class CoreOAuth2Client(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'client_id': 'str', - 'client_secret': 'CoreSecret' - } - - attribute_map = { - 'client_id': 'client_id', - 'client_secret': 'client_secret' - } - - def __init__(self, client_id=None, client_secret=None): # noqa: E501 - """CoreOAuth2Client - a model defined in Swagger""" # noqa: E501 - - self._client_id = None - self._client_secret = None - self.discriminator = None - - if client_id is not None: - self.client_id = client_id - if client_secret is not None: - self.client_secret = client_secret - - @property - def client_id(self): - """Gets the client_id of this CoreOAuth2Client. # noqa: E501 - - - :return: The client_id of this CoreOAuth2Client. # noqa: E501 - :rtype: str - """ - return self._client_id - - @client_id.setter - def client_id(self, client_id): - """Sets the client_id of this CoreOAuth2Client. - - - :param client_id: The client_id of this CoreOAuth2Client. # noqa: E501 - :type: str - """ - - self._client_id = client_id - - @property - def client_secret(self): - """Gets the client_secret of this CoreOAuth2Client. # noqa: E501 - - - :return: The client_secret of this CoreOAuth2Client. # noqa: E501 - :rtype: CoreSecret - """ - return self._client_secret - - @client_secret.setter - def client_secret(self, client_secret): - """Sets the client_secret of this CoreOAuth2Client. - - - :param client_secret: The client_secret of this CoreOAuth2Client. # noqa: E501 - :type: CoreSecret - """ - - self._client_secret = client_secret - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreOAuth2Client, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreOAuth2Client): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py deleted file mode 100644 index 22ea5676cf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request.py +++ /dev/null @@ -1,222 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: F401,E501 -from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType # noqa: F401,E501 - - -class CoreOAuth2TokenRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'type': 'CoreOAuth2TokenRequestType', - 'client': 'CoreOAuth2Client', - 'idp_discovery_endpoint': 'str', - 'token_endpoint': 'str' - } - - attribute_map = { - 'name': 'name', - 'type': 'type', - 'client': 'client', - 'idp_discovery_endpoint': 'idp_discovery_endpoint', - 'token_endpoint': 'token_endpoint' - } - - def __init__(self, name=None, type=None, client=None, idp_discovery_endpoint=None, token_endpoint=None): # noqa: E501 - """CoreOAuth2TokenRequest - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._type = None - self._client = None - self._idp_discovery_endpoint = None - self._token_endpoint = None - self.discriminator = None - - if name is not None: - self.name = name - if type is not None: - self.type = type - if client is not None: - self.client = client - if idp_discovery_endpoint is not None: - self.idp_discovery_endpoint = idp_discovery_endpoint - if token_endpoint is not None: - self.token_endpoint = token_endpoint - - @property - def name(self): - """Gets the name of this CoreOAuth2TokenRequest. # noqa: E501 - - - :return: The name of this CoreOAuth2TokenRequest. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreOAuth2TokenRequest. - - - :param name: The name of this CoreOAuth2TokenRequest. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def type(self): - """Gets the type of this CoreOAuth2TokenRequest. # noqa: E501 - - - :return: The type of this CoreOAuth2TokenRequest. # noqa: E501 - :rtype: CoreOAuth2TokenRequestType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreOAuth2TokenRequest. - - - :param type: The type of this CoreOAuth2TokenRequest. # noqa: E501 - :type: CoreOAuth2TokenRequestType - """ - - self._type = type - - @property - def client(self): - """Gets the client of this CoreOAuth2TokenRequest. # noqa: E501 - - - :return: The client of this CoreOAuth2TokenRequest. # noqa: E501 - :rtype: CoreOAuth2Client - """ - return self._client - - @client.setter - def client(self, client): - """Sets the client of this CoreOAuth2TokenRequest. - - - :param client: The client of this CoreOAuth2TokenRequest. # noqa: E501 - :type: CoreOAuth2Client - """ - - self._client = client - - @property - def idp_discovery_endpoint(self): - """Gets the idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - - - :return: The idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - :rtype: str - """ - return self._idp_discovery_endpoint - - @idp_discovery_endpoint.setter - def idp_discovery_endpoint(self, idp_discovery_endpoint): - """Sets the idp_discovery_endpoint of this CoreOAuth2TokenRequest. - - - :param idp_discovery_endpoint: The idp_discovery_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - :type: str - """ - - self._idp_discovery_endpoint = idp_discovery_endpoint - - @property - def token_endpoint(self): - """Gets the token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - - - :return: The token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - :rtype: str - """ - return self._token_endpoint - - @token_endpoint.setter - def token_endpoint(self, token_endpoint): - """Sets the token_endpoint of this CoreOAuth2TokenRequest. - - - :param token_endpoint: The token_endpoint of this CoreOAuth2TokenRequest. # noqa: E501 - :type: str - """ - - self._token_endpoint = token_endpoint - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreOAuth2TokenRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreOAuth2TokenRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py deleted file mode 100644 index 39f87fb6f7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_o_auth2_token_request_type.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreOAuth2TokenRequestType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - CLIENT_CREDENTIALS = "CLIENT_CREDENTIALS" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreOAuth2TokenRequestType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreOAuth2TokenRequestType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreOAuth2TokenRequestType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py deleted file mode 100644 index cf2e4a2464..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_operand.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 -from flyteadmin.models.core_scalar import CoreScalar # noqa: F401,E501 - - -class CoreOperand(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'primitive': 'CorePrimitive', - 'var': 'str', - 'scalar': 'CoreScalar' - } - - attribute_map = { - 'primitive': 'primitive', - 'var': 'var', - 'scalar': 'scalar' - } - - def __init__(self, primitive=None, var=None, scalar=None): # noqa: E501 - """CoreOperand - a model defined in Swagger""" # noqa: E501 - - self._primitive = None - self._var = None - self._scalar = None - self.discriminator = None - - if primitive is not None: - self.primitive = primitive - if var is not None: - self.var = var - if scalar is not None: - self.scalar = scalar - - @property - def primitive(self): - """Gets the primitive of this CoreOperand. # noqa: E501 - - - :return: The primitive of this CoreOperand. # noqa: E501 - :rtype: CorePrimitive - """ - return self._primitive - - @primitive.setter - def primitive(self, primitive): - """Sets the primitive of this CoreOperand. - - - :param primitive: The primitive of this CoreOperand. # noqa: E501 - :type: CorePrimitive - """ - - self._primitive = primitive - - @property - def var(self): - """Gets the var of this CoreOperand. # noqa: E501 - - - :return: The var of this CoreOperand. # noqa: E501 - :rtype: str - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreOperand. - - - :param var: The var of this CoreOperand. # noqa: E501 - :type: str - """ - - self._var = var - - @property - def scalar(self): - """Gets the scalar of this CoreOperand. # noqa: E501 - - - :return: The scalar of this CoreOperand. # noqa: E501 - :rtype: CoreScalar - """ - return self._scalar - - @scalar.setter - def scalar(self, scalar): - """Sets the scalar of this CoreOperand. - - - :param scalar: The scalar of this CoreOperand. # noqa: E501 - :type: CoreScalar - """ - - self._scalar = scalar - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreOperand, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreOperand): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py deleted file mode 100644 index d4094541e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_output_reference.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_promise_attribute import CorePromiseAttribute # noqa: F401,E501 - - -class CoreOutputReference(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node_id': 'str', - 'var': 'str', - 'attr_path': 'list[CorePromiseAttribute]' - } - - attribute_map = { - 'node_id': 'node_id', - 'var': 'var', - 'attr_path': 'attr_path' - } - - def __init__(self, node_id=None, var=None, attr_path=None): # noqa: E501 - """CoreOutputReference - a model defined in Swagger""" # noqa: E501 - - self._node_id = None - self._var = None - self._attr_path = None - self.discriminator = None - - if node_id is not None: - self.node_id = node_id - if var is not None: - self.var = var - if attr_path is not None: - self.attr_path = attr_path - - @property - def node_id(self): - """Gets the node_id of this CoreOutputReference. # noqa: E501 - - Node id must exist at the graph layer. # noqa: E501 - - :return: The node_id of this CoreOutputReference. # noqa: E501 - :rtype: str - """ - return self._node_id - - @node_id.setter - def node_id(self, node_id): - """Sets the node_id of this CoreOutputReference. - - Node id must exist at the graph layer. # noqa: E501 - - :param node_id: The node_id of this CoreOutputReference. # noqa: E501 - :type: str - """ - - self._node_id = node_id - - @property - def var(self): - """Gets the var of this CoreOutputReference. # noqa: E501 - - Variable name must refer to an output variable for the node. # noqa: E501 - - :return: The var of this CoreOutputReference. # noqa: E501 - :rtype: str - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreOutputReference. - - Variable name must refer to an output variable for the node. # noqa: E501 - - :param var: The var of this CoreOutputReference. # noqa: E501 - :type: str - """ - - self._var = var - - @property - def attr_path(self): - """Gets the attr_path of this CoreOutputReference. # noqa: E501 - - - :return: The attr_path of this CoreOutputReference. # noqa: E501 - :rtype: list[CorePromiseAttribute] - """ - return self._attr_path - - @attr_path.setter - def attr_path(self, attr_path): - """Sets the attr_path of this CoreOutputReference. - - - :param attr_path: The attr_path of this CoreOutputReference. # noqa: E501 - :type: list[CorePromiseAttribute] - """ - - self._attr_path = attr_path - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreOutputReference, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreOutputReference): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py deleted file mode 100644 index c8426a5833..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter.py +++ /dev/null @@ -1,232 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_id import CoreArtifactID # noqa: F401,E501 -from flyteadmin.models.core_artifact_query import CoreArtifactQuery # noqa: F401,E501 -from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 -from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 - - -class CoreParameter(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'var': 'CoreVariable', - 'default': 'CoreLiteral', - 'required': 'bool', - 'artifact_query': 'CoreArtifactQuery', - 'artifact_id': 'CoreArtifactID' - } - - attribute_map = { - 'var': 'var', - 'default': 'default', - 'required': 'required', - 'artifact_query': 'artifact_query', - 'artifact_id': 'artifact_id' - } - - def __init__(self, var=None, default=None, required=None, artifact_query=None, artifact_id=None): # noqa: E501 - """CoreParameter - a model defined in Swagger""" # noqa: E501 - - self._var = None - self._default = None - self._required = None - self._artifact_query = None - self._artifact_id = None - self.discriminator = None - - if var is not None: - self.var = var - if default is not None: - self.default = default - if required is not None: - self.required = required - if artifact_query is not None: - self.artifact_query = artifact_query - if artifact_id is not None: - self.artifact_id = artifact_id - - @property - def var(self): - """Gets the var of this CoreParameter. # noqa: E501 - - +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 - - :return: The var of this CoreParameter. # noqa: E501 - :rtype: CoreVariable - """ - return self._var - - @var.setter - def var(self, var): - """Sets the var of this CoreParameter. - - +required Variable. Defines the type of the variable backing this parameter. # noqa: E501 - - :param var: The var of this CoreParameter. # noqa: E501 - :type: CoreVariable - """ - - self._var = var - - @property - def default(self): - """Gets the default of this CoreParameter. # noqa: E501 - - Defines a default value that has to match the variable type defined. # noqa: E501 - - :return: The default of this CoreParameter. # noqa: E501 - :rtype: CoreLiteral - """ - return self._default - - @default.setter - def default(self, default): - """Sets the default of this CoreParameter. - - Defines a default value that has to match the variable type defined. # noqa: E501 - - :param default: The default of this CoreParameter. # noqa: E501 - :type: CoreLiteral - """ - - self._default = default - - @property - def required(self): - """Gets the required of this CoreParameter. # noqa: E501 - - +optional, is this value required to be filled. # noqa: E501 - - :return: The required of this CoreParameter. # noqa: E501 - :rtype: bool - """ - return self._required - - @required.setter - def required(self, required): - """Sets the required of this CoreParameter. - - +optional, is this value required to be filled. # noqa: E501 - - :param required: The required of this CoreParameter. # noqa: E501 - :type: bool - """ - - self._required = required - - @property - def artifact_query(self): - """Gets the artifact_query of this CoreParameter. # noqa: E501 - - This is an execution time search basically that should result in exactly one Artifact with a Type that matches the type of the variable. # noqa: E501 - - :return: The artifact_query of this CoreParameter. # noqa: E501 - :rtype: CoreArtifactQuery - """ - return self._artifact_query - - @artifact_query.setter - def artifact_query(self, artifact_query): - """Sets the artifact_query of this CoreParameter. - - This is an execution time search basically that should result in exactly one Artifact with a Type that matches the type of the variable. # noqa: E501 - - :param artifact_query: The artifact_query of this CoreParameter. # noqa: E501 - :type: CoreArtifactQuery - """ - - self._artifact_query = artifact_query - - @property - def artifact_id(self): - """Gets the artifact_id of this CoreParameter. # noqa: E501 - - - :return: The artifact_id of this CoreParameter. # noqa: E501 - :rtype: CoreArtifactID - """ - return self._artifact_id - - @artifact_id.setter - def artifact_id(self, artifact_id): - """Sets the artifact_id of this CoreParameter. - - - :param artifact_id: The artifact_id of this CoreParameter. # noqa: E501 - :type: CoreArtifactID - """ - - self._artifact_id = artifact_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreParameter, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreParameter): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py deleted file mode 100644 index f2ca84c2e1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_parameter_map.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_parameter import CoreParameter # noqa: F401,E501 - - -class CoreParameterMap(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'parameters': 'dict(str, CoreParameter)' - } - - attribute_map = { - 'parameters': 'parameters' - } - - def __init__(self, parameters=None): # noqa: E501 - """CoreParameterMap - a model defined in Swagger""" # noqa: E501 - - self._parameters = None - self.discriminator = None - - if parameters is not None: - self.parameters = parameters - - @property - def parameters(self): - """Gets the parameters of this CoreParameterMap. # noqa: E501 - - Defines a map of parameter names to parameters. # noqa: E501 - - :return: The parameters of this CoreParameterMap. # noqa: E501 - :rtype: dict(str, CoreParameter) - """ - return self._parameters - - @parameters.setter - def parameters(self, parameters): - """Sets the parameters of this CoreParameterMap. - - Defines a map of parameter names to parameters. # noqa: E501 - - :param parameters: The parameters of this CoreParameterMap. # noqa: E501 - :type: dict(str, CoreParameter) - """ - - self._parameters = parameters - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreParameterMap, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreParameterMap): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_partitions.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_partitions.py deleted file mode 100644 index cfd6d29cbf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_partitions.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_label_value import CoreLabelValue # noqa: F401,E501 - - -class CorePartitions(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'dict(str, CoreLabelValue)' - } - - attribute_map = { - 'value': 'value' - } - - def __init__(self, value=None): # noqa: E501 - """CorePartitions - a model defined in Swagger""" # noqa: E501 - - self._value = None - self.discriminator = None - - if value is not None: - self.value = value - - @property - def value(self): - """Gets the value of this CorePartitions. # noqa: E501 - - - :return: The value of this CorePartitions. # noqa: E501 - :rtype: dict(str, CoreLabelValue) - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CorePartitions. - - - :param value: The value of this CorePartitions. # noqa: E501 - :type: dict(str, CoreLabelValue) - """ - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CorePartitions, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CorePartitions): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py deleted file mode 100644 index 8a834e28d7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_primitive.py +++ /dev/null @@ -1,245 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CorePrimitive(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'integer': 'str', - 'float_value': 'float', - 'string_value': 'str', - 'boolean': 'bool', - '_datetime': 'datetime', - 'duration': 'str' - } - - attribute_map = { - 'integer': 'integer', - 'float_value': 'float_value', - 'string_value': 'string_value', - 'boolean': 'boolean', - '_datetime': 'datetime', - 'duration': 'duration' - } - - def __init__(self, integer=None, float_value=None, string_value=None, boolean=None, _datetime=None, duration=None): # noqa: E501 - """CorePrimitive - a model defined in Swagger""" # noqa: E501 - - self._integer = None - self._float_value = None - self._string_value = None - self._boolean = None - self.__datetime = None - self._duration = None - self.discriminator = None - - if integer is not None: - self.integer = integer - if float_value is not None: - self.float_value = float_value - if string_value is not None: - self.string_value = string_value - if boolean is not None: - self.boolean = boolean - if _datetime is not None: - self._datetime = _datetime - if duration is not None: - self.duration = duration - - @property - def integer(self): - """Gets the integer of this CorePrimitive. # noqa: E501 - - - :return: The integer of this CorePrimitive. # noqa: E501 - :rtype: str - """ - return self._integer - - @integer.setter - def integer(self, integer): - """Sets the integer of this CorePrimitive. - - - :param integer: The integer of this CorePrimitive. # noqa: E501 - :type: str - """ - - self._integer = integer - - @property - def float_value(self): - """Gets the float_value of this CorePrimitive. # noqa: E501 - - - :return: The float_value of this CorePrimitive. # noqa: E501 - :rtype: float - """ - return self._float_value - - @float_value.setter - def float_value(self, float_value): - """Sets the float_value of this CorePrimitive. - - - :param float_value: The float_value of this CorePrimitive. # noqa: E501 - :type: float - """ - - self._float_value = float_value - - @property - def string_value(self): - """Gets the string_value of this CorePrimitive. # noqa: E501 - - - :return: The string_value of this CorePrimitive. # noqa: E501 - :rtype: str - """ - return self._string_value - - @string_value.setter - def string_value(self, string_value): - """Sets the string_value of this CorePrimitive. - - - :param string_value: The string_value of this CorePrimitive. # noqa: E501 - :type: str - """ - - self._string_value = string_value - - @property - def boolean(self): - """Gets the boolean of this CorePrimitive. # noqa: E501 - - - :return: The boolean of this CorePrimitive. # noqa: E501 - :rtype: bool - """ - return self._boolean - - @boolean.setter - def boolean(self, boolean): - """Sets the boolean of this CorePrimitive. - - - :param boolean: The boolean of this CorePrimitive. # noqa: E501 - :type: bool - """ - - self._boolean = boolean - - @property - def _datetime(self): - """Gets the _datetime of this CorePrimitive. # noqa: E501 - - - :return: The _datetime of this CorePrimitive. # noqa: E501 - :rtype: datetime - """ - return self.__datetime - - @_datetime.setter - def _datetime(self, _datetime): - """Sets the _datetime of this CorePrimitive. - - - :param _datetime: The _datetime of this CorePrimitive. # noqa: E501 - :type: datetime - """ - - self.__datetime = _datetime - - @property - def duration(self): - """Gets the duration of this CorePrimitive. # noqa: E501 - - - :return: The duration of this CorePrimitive. # noqa: E501 - :rtype: str - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this CorePrimitive. - - - :param duration: The duration of this CorePrimitive. # noqa: E501 - :type: str - """ - - self._duration = duration - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CorePrimitive, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CorePrimitive): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_promise_attribute.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_promise_attribute.py deleted file mode 100644 index 60c8aa3fba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_promise_attribute.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CorePromiseAttribute(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'string_value': 'str', - 'int_value': 'int' - } - - attribute_map = { - 'string_value': 'string_value', - 'int_value': 'int_value' - } - - def __init__(self, string_value=None, int_value=None): # noqa: E501 - """CorePromiseAttribute - a model defined in Swagger""" # noqa: E501 - - self._string_value = None - self._int_value = None - self.discriminator = None - - if string_value is not None: - self.string_value = string_value - if int_value is not None: - self.int_value = int_value - - @property - def string_value(self): - """Gets the string_value of this CorePromiseAttribute. # noqa: E501 - - - :return: The string_value of this CorePromiseAttribute. # noqa: E501 - :rtype: str - """ - return self._string_value - - @string_value.setter - def string_value(self, string_value): - """Sets the string_value of this CorePromiseAttribute. - - - :param string_value: The string_value of this CorePromiseAttribute. # noqa: E501 - :type: str - """ - - self._string_value = string_value - - @property - def int_value(self): - """Gets the int_value of this CorePromiseAttribute. # noqa: E501 - - - :return: The int_value of this CorePromiseAttribute. # noqa: E501 - :rtype: int - """ - return self._int_value - - @int_value.setter - def int_value(self, int_value): - """Sets the int_value of this CorePromiseAttribute. - - - :param int_value: The int_value of this CorePromiseAttribute. # noqa: E501 - :type: int - """ - - self._int_value = int_value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CorePromiseAttribute, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CorePromiseAttribute): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py deleted file mode 100644 index b9bb2aadb9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec # noqa: F401,E501 -from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier # noqa: F401,E501 - - -class CoreQualityOfService(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tier': 'QualityOfServiceTier', - 'spec': 'CoreQualityOfServiceSpec' - } - - attribute_map = { - 'tier': 'tier', - 'spec': 'spec' - } - - def __init__(self, tier=None, spec=None): # noqa: E501 - """CoreQualityOfService - a model defined in Swagger""" # noqa: E501 - - self._tier = None - self._spec = None - self.discriminator = None - - if tier is not None: - self.tier = tier - if spec is not None: - self.spec = spec - - @property - def tier(self): - """Gets the tier of this CoreQualityOfService. # noqa: E501 - - - :return: The tier of this CoreQualityOfService. # noqa: E501 - :rtype: QualityOfServiceTier - """ - return self._tier - - @tier.setter - def tier(self, tier): - """Sets the tier of this CoreQualityOfService. - - - :param tier: The tier of this CoreQualityOfService. # noqa: E501 - :type: QualityOfServiceTier - """ - - self._tier = tier - - @property - def spec(self): - """Gets the spec of this CoreQualityOfService. # noqa: E501 - - - :return: The spec of this CoreQualityOfService. # noqa: E501 - :rtype: CoreQualityOfServiceSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this CoreQualityOfService. - - - :param spec: The spec of this CoreQualityOfService. # noqa: E501 - :type: CoreQualityOfServiceSpec - """ - - self._spec = spec - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreQualityOfService, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreQualityOfService): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py deleted file mode 100644 index 070989b167..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_quality_of_service_spec.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreQualityOfServiceSpec(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'queueing_budget': 'str' - } - - attribute_map = { - 'queueing_budget': 'queueing_budget' - } - - def __init__(self, queueing_budget=None): # noqa: E501 - """CoreQualityOfServiceSpec - a model defined in Swagger""" # noqa: E501 - - self._queueing_budget = None - self.discriminator = None - - if queueing_budget is not None: - self.queueing_budget = queueing_budget - - @property - def queueing_budget(self): - """Gets the queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 - - Indicates how much queueing delay an execution can tolerate. # noqa: E501 - - :return: The queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 - :rtype: str - """ - return self._queueing_budget - - @queueing_budget.setter - def queueing_budget(self, queueing_budget): - """Sets the queueing_budget of this CoreQualityOfServiceSpec. - - Indicates how much queueing delay an execution can tolerate. # noqa: E501 - - :param queueing_budget: The queueing_budget of this CoreQualityOfServiceSpec. # noqa: E501 - :type: str - """ - - self._queueing_budget = queueing_budget - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreQualityOfServiceSpec, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreQualityOfServiceSpec): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py deleted file mode 100644 index 4a748c1064..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resource_type.py +++ /dev/null @@ -1,96 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreResourceType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNSPECIFIED = "UNSPECIFIED" - TASK = "TASK" - WORKFLOW = "WORKFLOW" - LAUNCH_PLAN = "LAUNCH_PLAN" - DATASET = "DATASET" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreResourceType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreResourceType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreResourceType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py deleted file mode 100644 index 0e14879b03..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_resources.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: F401,E501 - - -class CoreResources(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'requests': 'list[ResourcesResourceEntry]', - 'limits': 'list[ResourcesResourceEntry]' - } - - attribute_map = { - 'requests': 'requests', - 'limits': 'limits' - } - - def __init__(self, requests=None, limits=None): # noqa: E501 - """CoreResources - a model defined in Swagger""" # noqa: E501 - - self._requests = None - self._limits = None - self.discriminator = None - - if requests is not None: - self.requests = requests - if limits is not None: - self.limits = limits - - @property - def requests(self): - """Gets the requests of this CoreResources. # noqa: E501 - - The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 - - :return: The requests of this CoreResources. # noqa: E501 - :rtype: list[ResourcesResourceEntry] - """ - return self._requests - - @requests.setter - def requests(self, requests): - """Sets the requests of this CoreResources. - - The desired set of resources requested. ResourceNames must be unique within the list. # noqa: E501 - - :param requests: The requests of this CoreResources. # noqa: E501 - :type: list[ResourcesResourceEntry] - """ - - self._requests = requests - - @property - def limits(self): - """Gets the limits of this CoreResources. # noqa: E501 - - Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 - - :return: The limits of this CoreResources. # noqa: E501 - :rtype: list[ResourcesResourceEntry] - """ - return self._limits - - @limits.setter - def limits(self, limits): - """Sets the limits of this CoreResources. - - Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique within the list. # noqa: E501 - - :param limits: The limits of this CoreResources. # noqa: E501 - :type: list[ResourcesResourceEntry] - """ - - self._limits = limits - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreResources, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreResources): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py deleted file mode 100644 index 45ba6d22f4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_retry_strategy.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreRetryStrategy(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'retries': 'int' - } - - attribute_map = { - 'retries': 'retries' - } - - def __init__(self, retries=None): # noqa: E501 - """CoreRetryStrategy - a model defined in Swagger""" # noqa: E501 - - self._retries = None - self.discriminator = None - - if retries is not None: - self.retries = retries - - @property - def retries(self): - """Gets the retries of this CoreRetryStrategy. # noqa: E501 - - Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 - - :return: The retries of this CoreRetryStrategy. # noqa: E501 - :rtype: int - """ - return self._retries - - @retries.setter - def retries(self, retries): - """Sets the retries of this CoreRetryStrategy. - - Number of retries. Retries will be consumed when the job fails with a recoverable error. The number of retries must be less than or equals to 10. # noqa: E501 - - :param retries: The retries of this CoreRetryStrategy. # noqa: E501 - :type: int - """ - - self._retries = retries - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreRetryStrategy, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreRetryStrategy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py deleted file mode 100644 index b14a330293..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_runtime_metadata.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: F401,E501 - - -class CoreRuntimeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'RuntimeMetadataRuntimeType', - 'version': 'str', - 'flavor': 'str' - } - - attribute_map = { - 'type': 'type', - 'version': 'version', - 'flavor': 'flavor' - } - - def __init__(self, type=None, version=None, flavor=None): # noqa: E501 - """CoreRuntimeMetadata - a model defined in Swagger""" # noqa: E501 - - self._type = None - self._version = None - self._flavor = None - self.discriminator = None - - if type is not None: - self.type = type - if version is not None: - self.version = version - if flavor is not None: - self.flavor = flavor - - @property - def type(self): - """Gets the type of this CoreRuntimeMetadata. # noqa: E501 - - Type of runtime. # noqa: E501 - - :return: The type of this CoreRuntimeMetadata. # noqa: E501 - :rtype: RuntimeMetadataRuntimeType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreRuntimeMetadata. - - Type of runtime. # noqa: E501 - - :param type: The type of this CoreRuntimeMetadata. # noqa: E501 - :type: RuntimeMetadataRuntimeType - """ - - self._type = type - - @property - def version(self): - """Gets the version of this CoreRuntimeMetadata. # noqa: E501 - - Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 - - :return: The version of this CoreRuntimeMetadata. # noqa: E501 - :rtype: str - """ - return self._version - - @version.setter - def version(self, version): - """Sets the version of this CoreRuntimeMetadata. - - Version of the runtime. All versions should be backward compatible. However, certain cases call for version checks to ensure tighter validation or setting expectations. # noqa: E501 - - :param version: The version of this CoreRuntimeMetadata. # noqa: E501 - :type: str - """ - - self._version = version - - @property - def flavor(self): - """Gets the flavor of this CoreRuntimeMetadata. # noqa: E501 - - +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 - - :return: The flavor of this CoreRuntimeMetadata. # noqa: E501 - :rtype: str - """ - return self._flavor - - @flavor.setter - def flavor(self, flavor): - """Sets the flavor of this CoreRuntimeMetadata. - - +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). # noqa: E501 - - :param flavor: The flavor of this CoreRuntimeMetadata. # noqa: E501 - :type: str - """ - - self._flavor = flavor - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreRuntimeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreRuntimeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py deleted file mode 100644 index ad4d291290..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_scalar.py +++ /dev/null @@ -1,333 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binary import CoreBinary # noqa: F401,E501 -from flyteadmin.models.core_blob import CoreBlob # noqa: F401,E501 -from flyteadmin.models.core_error import CoreError # noqa: F401,E501 -from flyteadmin.models.core_primitive import CorePrimitive # noqa: F401,E501 -from flyteadmin.models.core_schema import CoreSchema # noqa: F401,E501 -from flyteadmin.models.core_structured_dataset import CoreStructuredDataset # noqa: F401,E501 -from flyteadmin.models.core_union import CoreUnion # noqa: F401,E501 -from flyteadmin.models.core_void import CoreVoid # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class CoreScalar(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'primitive': 'CorePrimitive', - 'blob': 'CoreBlob', - 'binary': 'CoreBinary', - 'schema': 'CoreSchema', - 'none_type': 'CoreVoid', - 'error': 'CoreError', - 'generic': 'ProtobufStruct', - 'structured_dataset': 'CoreStructuredDataset', - 'union': 'CoreUnion' - } - - attribute_map = { - 'primitive': 'primitive', - 'blob': 'blob', - 'binary': 'binary', - 'schema': 'schema', - 'none_type': 'none_type', - 'error': 'error', - 'generic': 'generic', - 'structured_dataset': 'structured_dataset', - 'union': 'union' - } - - def __init__(self, primitive=None, blob=None, binary=None, schema=None, none_type=None, error=None, generic=None, structured_dataset=None, union=None): # noqa: E501 - """CoreScalar - a model defined in Swagger""" # noqa: E501 - - self._primitive = None - self._blob = None - self._binary = None - self._schema = None - self._none_type = None - self._error = None - self._generic = None - self._structured_dataset = None - self._union = None - self.discriminator = None - - if primitive is not None: - self.primitive = primitive - if blob is not None: - self.blob = blob - if binary is not None: - self.binary = binary - if schema is not None: - self.schema = schema - if none_type is not None: - self.none_type = none_type - if error is not None: - self.error = error - if generic is not None: - self.generic = generic - if structured_dataset is not None: - self.structured_dataset = structured_dataset - if union is not None: - self.union = union - - @property - def primitive(self): - """Gets the primitive of this CoreScalar. # noqa: E501 - - - :return: The primitive of this CoreScalar. # noqa: E501 - :rtype: CorePrimitive - """ - return self._primitive - - @primitive.setter - def primitive(self, primitive): - """Sets the primitive of this CoreScalar. - - - :param primitive: The primitive of this CoreScalar. # noqa: E501 - :type: CorePrimitive - """ - - self._primitive = primitive - - @property - def blob(self): - """Gets the blob of this CoreScalar. # noqa: E501 - - - :return: The blob of this CoreScalar. # noqa: E501 - :rtype: CoreBlob - """ - return self._blob - - @blob.setter - def blob(self, blob): - """Sets the blob of this CoreScalar. - - - :param blob: The blob of this CoreScalar. # noqa: E501 - :type: CoreBlob - """ - - self._blob = blob - - @property - def binary(self): - """Gets the binary of this CoreScalar. # noqa: E501 - - - :return: The binary of this CoreScalar. # noqa: E501 - :rtype: CoreBinary - """ - return self._binary - - @binary.setter - def binary(self, binary): - """Sets the binary of this CoreScalar. - - - :param binary: The binary of this CoreScalar. # noqa: E501 - :type: CoreBinary - """ - - self._binary = binary - - @property - def schema(self): - """Gets the schema of this CoreScalar. # noqa: E501 - - - :return: The schema of this CoreScalar. # noqa: E501 - :rtype: CoreSchema - """ - return self._schema - - @schema.setter - def schema(self, schema): - """Sets the schema of this CoreScalar. - - - :param schema: The schema of this CoreScalar. # noqa: E501 - :type: CoreSchema - """ - - self._schema = schema - - @property - def none_type(self): - """Gets the none_type of this CoreScalar. # noqa: E501 - - - :return: The none_type of this CoreScalar. # noqa: E501 - :rtype: CoreVoid - """ - return self._none_type - - @none_type.setter - def none_type(self, none_type): - """Sets the none_type of this CoreScalar. - - - :param none_type: The none_type of this CoreScalar. # noqa: E501 - :type: CoreVoid - """ - - self._none_type = none_type - - @property - def error(self): - """Gets the error of this CoreScalar. # noqa: E501 - - - :return: The error of this CoreScalar. # noqa: E501 - :rtype: CoreError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this CoreScalar. - - - :param error: The error of this CoreScalar. # noqa: E501 - :type: CoreError - """ - - self._error = error - - @property - def generic(self): - """Gets the generic of this CoreScalar. # noqa: E501 - - - :return: The generic of this CoreScalar. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._generic - - @generic.setter - def generic(self, generic): - """Sets the generic of this CoreScalar. - - - :param generic: The generic of this CoreScalar. # noqa: E501 - :type: ProtobufStruct - """ - - self._generic = generic - - @property - def structured_dataset(self): - """Gets the structured_dataset of this CoreScalar. # noqa: E501 - - - :return: The structured_dataset of this CoreScalar. # noqa: E501 - :rtype: CoreStructuredDataset - """ - return self._structured_dataset - - @structured_dataset.setter - def structured_dataset(self, structured_dataset): - """Sets the structured_dataset of this CoreScalar. - - - :param structured_dataset: The structured_dataset of this CoreScalar. # noqa: E501 - :type: CoreStructuredDataset - """ - - self._structured_dataset = structured_dataset - - @property - def union(self): - """Gets the union of this CoreScalar. # noqa: E501 - - - :return: The union of this CoreScalar. # noqa: E501 - :rtype: CoreUnion - """ - return self._union - - @union.setter - def union(self, union): - """Sets the union of this CoreScalar. - - - :param union: The union of this CoreScalar. # noqa: E501 - :type: CoreUnion - """ - - self._union = union - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreScalar, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreScalar): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py deleted file mode 100644 index 4ede8e6c52..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: F401,E501 - - -class CoreSchema(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'type': 'CoreSchemaType' - } - - attribute_map = { - 'uri': 'uri', - 'type': 'type' - } - - def __init__(self, uri=None, type=None): # noqa: E501 - """CoreSchema - a model defined in Swagger""" # noqa: E501 - - self._uri = None - self._type = None - self.discriminator = None - - if uri is not None: - self.uri = uri - if type is not None: - self.type = type - - @property - def uri(self): - """Gets the uri of this CoreSchema. # noqa: E501 - - - :return: The uri of this CoreSchema. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this CoreSchema. - - - :param uri: The uri of this CoreSchema. # noqa: E501 - :type: str - """ - - self._uri = uri - - @property - def type(self): - """Gets the type of this CoreSchema. # noqa: E501 - - - :return: The type of this CoreSchema. # noqa: E501 - :rtype: CoreSchemaType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreSchema. - - - :param type: The type of this CoreSchema. # noqa: E501 - :type: CoreSchemaType - """ - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSchema, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSchema): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py deleted file mode 100644 index 679e617a9e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_schema_type.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: F401,E501 - - -class CoreSchemaType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'columns': 'list[SchemaTypeSchemaColumn]' - } - - attribute_map = { - 'columns': 'columns' - } - - def __init__(self, columns=None): # noqa: E501 - """CoreSchemaType - a model defined in Swagger""" # noqa: E501 - - self._columns = None - self.discriminator = None - - if columns is not None: - self.columns = columns - - @property - def columns(self): - """Gets the columns of this CoreSchemaType. # noqa: E501 - - A list of ordered columns this schema comprises of. # noqa: E501 - - :return: The columns of this CoreSchemaType. # noqa: E501 - :rtype: list[SchemaTypeSchemaColumn] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this CoreSchemaType. - - A list of ordered columns this schema comprises of. # noqa: E501 - - :param columns: The columns of this CoreSchemaType. # noqa: E501 - :type: list[SchemaTypeSchemaColumn] - """ - - self._columns = columns - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSchemaType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSchemaType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py deleted file mode 100644 index 378c51c4b2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_secret.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.secret_mount_type import SecretMountType # noqa: F401,E501 - - -class CoreSecret(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'group': 'str', - 'group_version': 'str', - 'key': 'str', - 'mount_requirement': 'SecretMountType' - } - - attribute_map = { - 'group': 'group', - 'group_version': 'group_version', - 'key': 'key', - 'mount_requirement': 'mount_requirement' - } - - def __init__(self, group=None, group_version=None, key=None, mount_requirement=None): # noqa: E501 - """CoreSecret - a model defined in Swagger""" # noqa: E501 - - self._group = None - self._group_version = None - self._key = None - self._mount_requirement = None - self.discriminator = None - - if group is not None: - self.group = group - if group_version is not None: - self.group_version = group_version - if key is not None: - self.key = key - if mount_requirement is not None: - self.mount_requirement = mount_requirement - - @property - def group(self): - """Gets the group of this CoreSecret. # noqa: E501 - - - :return: The group of this CoreSecret. # noqa: E501 - :rtype: str - """ - return self._group - - @group.setter - def group(self, group): - """Sets the group of this CoreSecret. - - - :param group: The group of this CoreSecret. # noqa: E501 - :type: str - """ - - self._group = group - - @property - def group_version(self): - """Gets the group_version of this CoreSecret. # noqa: E501 - - - :return: The group_version of this CoreSecret. # noqa: E501 - :rtype: str - """ - return self._group_version - - @group_version.setter - def group_version(self, group_version): - """Sets the group_version of this CoreSecret. - - - :param group_version: The group_version of this CoreSecret. # noqa: E501 - :type: str - """ - - self._group_version = group_version - - @property - def key(self): - """Gets the key of this CoreSecret. # noqa: E501 - - - :return: The key of this CoreSecret. # noqa: E501 - :rtype: str - """ - return self._key - - @key.setter - def key(self, key): - """Sets the key of this CoreSecret. - - - :param key: The key of this CoreSecret. # noqa: E501 - :type: str - """ - - self._key = key - - @property - def mount_requirement(self): - """Gets the mount_requirement of this CoreSecret. # noqa: E501 - - - :return: The mount_requirement of this CoreSecret. # noqa: E501 - :rtype: SecretMountType - """ - return self._mount_requirement - - @mount_requirement.setter - def mount_requirement(self, mount_requirement): - """Sets the mount_requirement of this CoreSecret. - - - :param mount_requirement: The mount_requirement of this CoreSecret. # noqa: E501 - :type: SecretMountType - """ - - self._mount_requirement = mount_requirement - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSecret, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSecret): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py deleted file mode 100644 index c6df3b44f7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_security_context.py +++ /dev/null @@ -1,177 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_identity import CoreIdentity # noqa: F401,E501 -from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest # noqa: F401,E501 -from flyteadmin.models.core_secret import CoreSecret # noqa: F401,E501 - - -class CoreSecurityContext(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'run_as': 'CoreIdentity', - 'secrets': 'list[CoreSecret]', - 'tokens': 'list[CoreOAuth2TokenRequest]' - } - - attribute_map = { - 'run_as': 'run_as', - 'secrets': 'secrets', - 'tokens': 'tokens' - } - - def __init__(self, run_as=None, secrets=None, tokens=None): # noqa: E501 - """CoreSecurityContext - a model defined in Swagger""" # noqa: E501 - - self._run_as = None - self._secrets = None - self._tokens = None - self.discriminator = None - - if run_as is not None: - self.run_as = run_as - if secrets is not None: - self.secrets = secrets - if tokens is not None: - self.tokens = tokens - - @property - def run_as(self): - """Gets the run_as of this CoreSecurityContext. # noqa: E501 - - run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. # noqa: E501 - - :return: The run_as of this CoreSecurityContext. # noqa: E501 - :rtype: CoreIdentity - """ - return self._run_as - - @run_as.setter - def run_as(self, run_as): - """Sets the run_as of this CoreSecurityContext. - - run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the backend plugin to choose the appropriate identity for the execution engine the task will run on. # noqa: E501 - - :param run_as: The run_as of this CoreSecurityContext. # noqa: E501 - :type: CoreIdentity - """ - - self._run_as = run_as - - @property - def secrets(self): - """Gets the secrets of this CoreSecurityContext. # noqa: E501 - - secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 - - :return: The secrets of this CoreSecurityContext. # noqa: E501 - :rtype: list[CoreSecret] - """ - return self._secrets - - @secrets.setter - def secrets(self, secrets): - """Sets the secrets of this CoreSecurityContext. - - secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 - - :param secrets: The secrets of this CoreSecurityContext. # noqa: E501 - :type: list[CoreSecret] - """ - - self._secrets = secrets - - @property - def tokens(self): - """Gets the tokens of this CoreSecurityContext. # noqa: E501 - - tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 - - :return: The tokens of this CoreSecurityContext. # noqa: E501 - :rtype: list[CoreOAuth2TokenRequest] - """ - return self._tokens - - @tokens.setter - def tokens(self, tokens): - """Sets the tokens of this CoreSecurityContext. - - tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access to the secret) and to pass it to the remote execution engine. # noqa: E501 - - :param tokens: The tokens of this CoreSecurityContext. # noqa: E501 - :type: list[CoreOAuth2TokenRequest] - """ - - self._tokens = tokens - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSecurityContext, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSecurityContext): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py deleted file mode 100644 index 1ccd927b9d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_signal_condition.py +++ /dev/null @@ -1,175 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreSignalCondition(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'signal_id': 'str', - 'type': 'CoreLiteralType', - 'output_variable_name': 'str' - } - - attribute_map = { - 'signal_id': 'signal_id', - 'type': 'type', - 'output_variable_name': 'output_variable_name' - } - - def __init__(self, signal_id=None, type=None, output_variable_name=None): # noqa: E501 - """CoreSignalCondition - a model defined in Swagger""" # noqa: E501 - - self._signal_id = None - self._type = None - self._output_variable_name = None - self.discriminator = None - - if signal_id is not None: - self.signal_id = signal_id - if type is not None: - self.type = type - if output_variable_name is not None: - self.output_variable_name = output_variable_name - - @property - def signal_id(self): - """Gets the signal_id of this CoreSignalCondition. # noqa: E501 - - A unique identifier for the requested signal. # noqa: E501 - - :return: The signal_id of this CoreSignalCondition. # noqa: E501 - :rtype: str - """ - return self._signal_id - - @signal_id.setter - def signal_id(self, signal_id): - """Sets the signal_id of this CoreSignalCondition. - - A unique identifier for the requested signal. # noqa: E501 - - :param signal_id: The signal_id of this CoreSignalCondition. # noqa: E501 - :type: str - """ - - self._signal_id = signal_id - - @property - def type(self): - """Gets the type of this CoreSignalCondition. # noqa: E501 - - A type denoting the required value type for this signal. # noqa: E501 - - :return: The type of this CoreSignalCondition. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreSignalCondition. - - A type denoting the required value type for this signal. # noqa: E501 - - :param type: The type of this CoreSignalCondition. # noqa: E501 - :type: CoreLiteralType - """ - - self._type = type - - @property - def output_variable_name(self): - """Gets the output_variable_name of this CoreSignalCondition. # noqa: E501 - - The variable name for the signal value in this nodes outputs. # noqa: E501 - - :return: The output_variable_name of this CoreSignalCondition. # noqa: E501 - :rtype: str - """ - return self._output_variable_name - - @output_variable_name.setter - def output_variable_name(self, output_variable_name): - """Sets the output_variable_name of this CoreSignalCondition. - - The variable name for the signal value in this nodes outputs. # noqa: E501 - - :param output_variable_name: The output_variable_name of this CoreSignalCondition. # noqa: E501 - :type: str - """ - - self._output_variable_name = output_variable_name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSignalCondition, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSignalCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py deleted file mode 100644 index 1a98e893f3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_simple_type.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreSimpleType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - NONE = "NONE" - INTEGER = "INTEGER" - FLOAT = "FLOAT" - STRING = "STRING" - BOOLEAN = "BOOLEAN" - DATETIME = "DATETIME" - DURATION = "DURATION" - BINARY = "BINARY" - ERROR = "ERROR" - STRUCT = "STRUCT" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreSimpleType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSimpleType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSimpleType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py deleted file mode 100644 index aa3a244b8f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sleep_condition.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreSleepCondition(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'duration': 'str' - } - - attribute_map = { - 'duration': 'duration' - } - - def __init__(self, duration=None): # noqa: E501 - """CoreSleepCondition - a model defined in Swagger""" # noqa: E501 - - self._duration = None - self.discriminator = None - - if duration is not None: - self.duration = duration - - @property - def duration(self): - """Gets the duration of this CoreSleepCondition. # noqa: E501 - - The overall duration for this sleep. # noqa: E501 - - :return: The duration of this CoreSleepCondition. # noqa: E501 - :rtype: str - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this CoreSleepCondition. - - The overall duration for this sleep. # noqa: E501 - - :param duration: The duration of this CoreSleepCondition. # noqa: E501 - :type: str - """ - - self._duration = duration - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSleepCondition, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSleepCondition): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py deleted file mode 100644 index c9d36d9bbd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_span.py +++ /dev/null @@ -1,290 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_span import CoreSpan # noqa: F401,E501 -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class CoreSpan(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'start_time': 'datetime', - 'end_time': 'datetime', - 'workflow_id': 'CoreWorkflowExecutionIdentifier', - 'node_id': 'CoreNodeExecutionIdentifier', - 'task_id': 'CoreTaskExecutionIdentifier', - 'operation_id': 'str', - 'spans': 'list[CoreSpan]' - } - - attribute_map = { - 'start_time': 'start_time', - 'end_time': 'end_time', - 'workflow_id': 'workflow_id', - 'node_id': 'node_id', - 'task_id': 'task_id', - 'operation_id': 'operation_id', - 'spans': 'spans' - } - - def __init__(self, start_time=None, end_time=None, workflow_id=None, node_id=None, task_id=None, operation_id=None, spans=None): # noqa: E501 - """CoreSpan - a model defined in Swagger""" # noqa: E501 - - self._start_time = None - self._end_time = None - self._workflow_id = None - self._node_id = None - self._task_id = None - self._operation_id = None - self._spans = None - self.discriminator = None - - if start_time is not None: - self.start_time = start_time - if end_time is not None: - self.end_time = end_time - if workflow_id is not None: - self.workflow_id = workflow_id - if node_id is not None: - self.node_id = node_id - if task_id is not None: - self.task_id = task_id - if operation_id is not None: - self.operation_id = operation_id - if spans is not None: - self.spans = spans - - @property - def start_time(self): - """Gets the start_time of this CoreSpan. # noqa: E501 - - start_time defines the instance this span began. # noqa: E501 - - :return: The start_time of this CoreSpan. # noqa: E501 - :rtype: datetime - """ - return self._start_time - - @start_time.setter - def start_time(self, start_time): - """Sets the start_time of this CoreSpan. - - start_time defines the instance this span began. # noqa: E501 - - :param start_time: The start_time of this CoreSpan. # noqa: E501 - :type: datetime - """ - - self._start_time = start_time - - @property - def end_time(self): - """Gets the end_time of this CoreSpan. # noqa: E501 - - end_time defines the instance this span completed. # noqa: E501 - - :return: The end_time of this CoreSpan. # noqa: E501 - :rtype: datetime - """ - return self._end_time - - @end_time.setter - def end_time(self, end_time): - """Sets the end_time of this CoreSpan. - - end_time defines the instance this span completed. # noqa: E501 - - :param end_time: The end_time of this CoreSpan. # noqa: E501 - :type: datetime - """ - - self._end_time = end_time - - @property - def workflow_id(self): - """Gets the workflow_id of this CoreSpan. # noqa: E501 - - workflow_id is the id of the workflow execution this Span represents. # noqa: E501 - - :return: The workflow_id of this CoreSpan. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._workflow_id - - @workflow_id.setter - def workflow_id(self, workflow_id): - """Sets the workflow_id of this CoreSpan. - - workflow_id is the id of the workflow execution this Span represents. # noqa: E501 - - :param workflow_id: The workflow_id of this CoreSpan. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._workflow_id = workflow_id - - @property - def node_id(self): - """Gets the node_id of this CoreSpan. # noqa: E501 - - node_id is the id of the node execution this Span represents. # noqa: E501 - - :return: The node_id of this CoreSpan. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._node_id - - @node_id.setter - def node_id(self, node_id): - """Sets the node_id of this CoreSpan. - - node_id is the id of the node execution this Span represents. # noqa: E501 - - :param node_id: The node_id of this CoreSpan. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._node_id = node_id - - @property - def task_id(self): - """Gets the task_id of this CoreSpan. # noqa: E501 - - task_id is the id of the task execution this Span represents. # noqa: E501 - - :return: The task_id of this CoreSpan. # noqa: E501 - :rtype: CoreTaskExecutionIdentifier - """ - return self._task_id - - @task_id.setter - def task_id(self, task_id): - """Sets the task_id of this CoreSpan. - - task_id is the id of the task execution this Span represents. # noqa: E501 - - :param task_id: The task_id of this CoreSpan. # noqa: E501 - :type: CoreTaskExecutionIdentifier - """ - - self._task_id = task_id - - @property - def operation_id(self): - """Gets the operation_id of this CoreSpan. # noqa: E501 - - operation_id is the id of a unique operation that this Span represents. # noqa: E501 - - :return: The operation_id of this CoreSpan. # noqa: E501 - :rtype: str - """ - return self._operation_id - - @operation_id.setter - def operation_id(self, operation_id): - """Sets the operation_id of this CoreSpan. - - operation_id is the id of a unique operation that this Span represents. # noqa: E501 - - :param operation_id: The operation_id of this CoreSpan. # noqa: E501 - :type: str - """ - - self._operation_id = operation_id - - @property - def spans(self): - """Gets the spans of this CoreSpan. # noqa: E501 - - spans defines a collection of Spans that breakdown this execution. # noqa: E501 - - :return: The spans of this CoreSpan. # noqa: E501 - :rtype: list[CoreSpan] - """ - return self._spans - - @spans.setter - def spans(self, spans): - """Sets the spans of this CoreSpan. - - spans defines a collection of Spans that breakdown this execution. # noqa: E501 - - :param spans: The spans of this CoreSpan. # noqa: E501 - :type: list[CoreSpan] - """ - - self._spans = spans - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSpan, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSpan): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py deleted file mode 100644 index e688a08362..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_sql.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.sql_dialect import SqlDialect # noqa: F401,E501 - - -class CoreSql(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'statement': 'str', - 'dialect': 'SqlDialect' - } - - attribute_map = { - 'statement': 'statement', - 'dialect': 'dialect' - } - - def __init__(self, statement=None, dialect=None): # noqa: E501 - """CoreSql - a model defined in Swagger""" # noqa: E501 - - self._statement = None - self._dialect = None - self.discriminator = None - - if statement is not None: - self.statement = statement - if dialect is not None: - self.dialect = dialect - - @property - def statement(self): - """Gets the statement of this CoreSql. # noqa: E501 - - - :return: The statement of this CoreSql. # noqa: E501 - :rtype: str - """ - return self._statement - - @statement.setter - def statement(self, statement): - """Sets the statement of this CoreSql. - - - :param statement: The statement of this CoreSql. # noqa: E501 - :type: str - """ - - self._statement = statement - - @property - def dialect(self): - """Gets the dialect of this CoreSql. # noqa: E501 - - - :return: The dialect of this CoreSql. # noqa: E501 - :rtype: SqlDialect - """ - return self._dialect - - @dialect.setter - def dialect(self, dialect): - """Sets the dialect of this CoreSql. - - - :param dialect: The dialect of this CoreSql. # noqa: E501 - :type: SqlDialect - """ - - self._dialect = dialect - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreSql, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreSql): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py deleted file mode 100644 index af3e3c7a03..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata # noqa: F401,E501 - - -class CoreStructuredDataset(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'metadata': 'CoreStructuredDatasetMetadata' - } - - attribute_map = { - 'uri': 'uri', - 'metadata': 'metadata' - } - - def __init__(self, uri=None, metadata=None): # noqa: E501 - """CoreStructuredDataset - a model defined in Swagger""" # noqa: E501 - - self._uri = None - self._metadata = None - self.discriminator = None - - if uri is not None: - self.uri = uri - if metadata is not None: - self.metadata = metadata - - @property - def uri(self): - """Gets the uri of this CoreStructuredDataset. # noqa: E501 - - - :return: The uri of this CoreStructuredDataset. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this CoreStructuredDataset. - - - :param uri: The uri of this CoreStructuredDataset. # noqa: E501 - :type: str - """ - - self._uri = uri - - @property - def metadata(self): - """Gets the metadata of this CoreStructuredDataset. # noqa: E501 - - - :return: The metadata of this CoreStructuredDataset. # noqa: E501 - :rtype: CoreStructuredDatasetMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreStructuredDataset. - - - :param metadata: The metadata of this CoreStructuredDataset. # noqa: E501 - :type: CoreStructuredDatasetMetadata - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreStructuredDataset, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreStructuredDataset): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py deleted file mode 100644 index 100da8fd51..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_metadata.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: F401,E501 - - -class CoreStructuredDatasetMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'structured_dataset_type': 'CoreStructuredDatasetType' - } - - attribute_map = { - 'structured_dataset_type': 'structured_dataset_type' - } - - def __init__(self, structured_dataset_type=None): # noqa: E501 - """CoreStructuredDatasetMetadata - a model defined in Swagger""" # noqa: E501 - - self._structured_dataset_type = None - self.discriminator = None - - if structured_dataset_type is not None: - self.structured_dataset_type = structured_dataset_type - - @property - def structured_dataset_type(self): - """Gets the structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 - - Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. # noqa: E501 - - :return: The structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 - :rtype: CoreStructuredDatasetType - """ - return self._structured_dataset_type - - @structured_dataset_type.setter - def structured_dataset_type(self, structured_dataset_type): - """Sets the structured_dataset_type of this CoreStructuredDatasetMetadata. - - Bundle the type information along with the literal. This is here because StructuredDatasets can often be more defined at run time than at compile time. That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, without any column information, but at run time, you might have that column information. flytekit python will copy this type information into the literal, from the type information, if not provided by the various plugins (encoders). Since this field is run time generated, it's not used for any type checking. # noqa: E501 - - :param structured_dataset_type: The structured_dataset_type of this CoreStructuredDatasetMetadata. # noqa: E501 - :type: CoreStructuredDatasetType - """ - - self._structured_dataset_type = structured_dataset_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreStructuredDatasetMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreStructuredDatasetMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py deleted file mode 100644 index 86e7427947..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_structured_dataset_type.py +++ /dev/null @@ -1,205 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn # noqa: F401,E501 - - -class CoreStructuredDatasetType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'columns': 'list[StructuredDatasetTypeDatasetColumn]', - 'format': 'str', - 'external_schema_type': 'str', - 'external_schema_bytes': 'str' - } - - attribute_map = { - 'columns': 'columns', - 'format': 'format', - 'external_schema_type': 'external_schema_type', - 'external_schema_bytes': 'external_schema_bytes' - } - - def __init__(self, columns=None, format=None, external_schema_type=None, external_schema_bytes=None): # noqa: E501 - """CoreStructuredDatasetType - a model defined in Swagger""" # noqa: E501 - - self._columns = None - self._format = None - self._external_schema_type = None - self._external_schema_bytes = None - self.discriminator = None - - if columns is not None: - self.columns = columns - if format is not None: - self.format = format - if external_schema_type is not None: - self.external_schema_type = external_schema_type - if external_schema_bytes is not None: - self.external_schema_bytes = external_schema_bytes - - @property - def columns(self): - """Gets the columns of this CoreStructuredDatasetType. # noqa: E501 - - A list of ordered columns this schema comprises of. # noqa: E501 - - :return: The columns of this CoreStructuredDatasetType. # noqa: E501 - :rtype: list[StructuredDatasetTypeDatasetColumn] - """ - return self._columns - - @columns.setter - def columns(self, columns): - """Sets the columns of this CoreStructuredDatasetType. - - A list of ordered columns this schema comprises of. # noqa: E501 - - :param columns: The columns of this CoreStructuredDatasetType. # noqa: E501 - :type: list[StructuredDatasetTypeDatasetColumn] - """ - - self._columns = columns - - @property - def format(self): - """Gets the format of this CoreStructuredDatasetType. # noqa: E501 - - This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. # noqa: E501 - - :return: The format of this CoreStructuredDatasetType. # noqa: E501 - :rtype: str - """ - return self._format - - @format.setter - def format(self, format): - """Sets the format of this CoreStructuredDatasetType. - - This is the storage format, the format of the bits at rest parquet, feather, csv, etc. For two types to be compatible, the format will need to be an exact match. # noqa: E501 - - :param format: The format of this CoreStructuredDatasetType. # noqa: E501 - :type: str - """ - - self._format = format - - @property - def external_schema_type(self): - """Gets the external_schema_type of this CoreStructuredDatasetType. # noqa: E501 - - This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. # noqa: E501 - - :return: The external_schema_type of this CoreStructuredDatasetType. # noqa: E501 - :rtype: str - """ - return self._external_schema_type - - @external_schema_type.setter - def external_schema_type(self, external_schema_type): - """Sets the external_schema_type of this CoreStructuredDatasetType. - - This is a string representing the type that the bytes in external_schema_bytes are formatted in. This is an optional field that will not be used for type checking. # noqa: E501 - - :param external_schema_type: The external_schema_type of this CoreStructuredDatasetType. # noqa: E501 - :type: str - """ - - self._external_schema_type = external_schema_type - - @property - def external_schema_bytes(self): - """Gets the external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 - - The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. # noqa: E501 - - :return: The external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 - :rtype: str - """ - return self._external_schema_bytes - - @external_schema_bytes.setter - def external_schema_bytes(self, external_schema_bytes): - """Sets the external_schema_bytes of this CoreStructuredDatasetType. - - The serialized bytes of a third-party schema library like Arrow. This is an optional field that will not be used for type checking. # noqa: E501 - - :param external_schema_bytes: The external_schema_bytes of this CoreStructuredDatasetType. # noqa: E501 - :type: str - """ - if external_schema_bytes is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', external_schema_bytes): # noqa: E501 - raise ValueError(r"Invalid value for `external_schema_bytes`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 - - self._external_schema_bytes = external_schema_bytes - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreStructuredDatasetType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreStructuredDatasetType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py deleted file mode 100644 index 766ccccee7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_identifier.py +++ /dev/null @@ -1,170 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 - - -class CoreTaskExecutionIdentifier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'task_id': 'CoreIdentifier', - 'node_execution_id': 'CoreNodeExecutionIdentifier', - 'retry_attempt': 'int' - } - - attribute_map = { - 'task_id': 'task_id', - 'node_execution_id': 'node_execution_id', - 'retry_attempt': 'retry_attempt' - } - - def __init__(self, task_id=None, node_execution_id=None, retry_attempt=None): # noqa: E501 - """CoreTaskExecutionIdentifier - a model defined in Swagger""" # noqa: E501 - - self._task_id = None - self._node_execution_id = None - self._retry_attempt = None - self.discriminator = None - - if task_id is not None: - self.task_id = task_id - if node_execution_id is not None: - self.node_execution_id = node_execution_id - if retry_attempt is not None: - self.retry_attempt = retry_attempt - - @property - def task_id(self): - """Gets the task_id of this CoreTaskExecutionIdentifier. # noqa: E501 - - - :return: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._task_id - - @task_id.setter - def task_id(self, task_id): - """Sets the task_id of this CoreTaskExecutionIdentifier. - - - :param task_id: The task_id of this CoreTaskExecutionIdentifier. # noqa: E501 - :type: CoreIdentifier - """ - - self._task_id = task_id - - @property - def node_execution_id(self): - """Gets the node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 - - - :return: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._node_execution_id - - @node_execution_id.setter - def node_execution_id(self, node_execution_id): - """Sets the node_execution_id of this CoreTaskExecutionIdentifier. - - - :param node_execution_id: The node_execution_id of this CoreTaskExecutionIdentifier. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._node_execution_id = node_execution_id - - @property - def retry_attempt(self): - """Gets the retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 - - - :return: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 - :rtype: int - """ - return self._retry_attempt - - @retry_attempt.setter - def retry_attempt(self, retry_attempt): - """Sets the retry_attempt of this CoreTaskExecutionIdentifier. - - - :param retry_attempt: The retry_attempt of this CoreTaskExecutionIdentifier. # noqa: E501 - :type: int - """ - - self._retry_attempt = retry_attempt - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskExecutionIdentifier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskExecutionIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py deleted file mode 100644 index 5a8dbce0d5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_execution_phase.py +++ /dev/null @@ -1,99 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreTaskExecutionPhase(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNDEFINED = "UNDEFINED" - QUEUED = "QUEUED" - RUNNING = "RUNNING" - SUCCEEDED = "SUCCEEDED" - ABORTED = "ABORTED" - FAILED = "FAILED" - INITIALIZING = "INITIALIZING" - WAITING_FOR_RESOURCES = "WAITING_FOR_RESOURCES" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreTaskExecutionPhase - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskExecutionPhase, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskExecutionPhase): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py deleted file mode 100644 index a219028ae2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_log.py +++ /dev/null @@ -1,195 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: F401,E501 - - -class CoreTaskLog(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'uri': 'str', - 'name': 'str', - 'message_format': 'TaskLogMessageFormat', - 'ttl': 'str' - } - - attribute_map = { - 'uri': 'uri', - 'name': 'name', - 'message_format': 'message_format', - 'ttl': 'ttl' - } - - def __init__(self, uri=None, name=None, message_format=None, ttl=None): # noqa: E501 - """CoreTaskLog - a model defined in Swagger""" # noqa: E501 - - self._uri = None - self._name = None - self._message_format = None - self._ttl = None - self.discriminator = None - - if uri is not None: - self.uri = uri - if name is not None: - self.name = name - if message_format is not None: - self.message_format = message_format - if ttl is not None: - self.ttl = ttl - - @property - def uri(self): - """Gets the uri of this CoreTaskLog. # noqa: E501 - - - :return: The uri of this CoreTaskLog. # noqa: E501 - :rtype: str - """ - return self._uri - - @uri.setter - def uri(self, uri): - """Sets the uri of this CoreTaskLog. - - - :param uri: The uri of this CoreTaskLog. # noqa: E501 - :type: str - """ - - self._uri = uri - - @property - def name(self): - """Gets the name of this CoreTaskLog. # noqa: E501 - - - :return: The name of this CoreTaskLog. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreTaskLog. - - - :param name: The name of this CoreTaskLog. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def message_format(self): - """Gets the message_format of this CoreTaskLog. # noqa: E501 - - - :return: The message_format of this CoreTaskLog. # noqa: E501 - :rtype: TaskLogMessageFormat - """ - return self._message_format - - @message_format.setter - def message_format(self, message_format): - """Sets the message_format of this CoreTaskLog. - - - :param message_format: The message_format of this CoreTaskLog. # noqa: E501 - :type: TaskLogMessageFormat - """ - - self._message_format = message_format - - @property - def ttl(self): - """Gets the ttl of this CoreTaskLog. # noqa: E501 - - - :return: The ttl of this CoreTaskLog. # noqa: E501 - :rtype: str - """ - return self._ttl - - @ttl.setter - def ttl(self, ttl): - """Sets the ttl of this CoreTaskLog. - - - :param ttl: The ttl of this CoreTaskLog. # noqa: E501 - :type: str - """ - - self._ttl = ttl - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskLog, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskLog): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py deleted file mode 100644 index 8223273a83..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_metadata.py +++ /dev/null @@ -1,422 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: F401,E501 -from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: F401,E501 - - -class CoreTaskMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'discoverable': 'bool', - 'runtime': 'CoreRuntimeMetadata', - 'timeout': 'str', - 'retries': 'CoreRetryStrategy', - 'discovery_version': 'str', - 'deprecated_error_message': 'str', - 'interruptible': 'bool', - 'cache_serializable': 'bool', - 'generates_deck': 'bool', - 'tags': 'dict(str, str)', - 'pod_template_name': 'str', - 'cache_ignore_input_vars': 'list[str]' - } - - attribute_map = { - 'discoverable': 'discoverable', - 'runtime': 'runtime', - 'timeout': 'timeout', - 'retries': 'retries', - 'discovery_version': 'discovery_version', - 'deprecated_error_message': 'deprecated_error_message', - 'interruptible': 'interruptible', - 'cache_serializable': 'cache_serializable', - 'generates_deck': 'generates_deck', - 'tags': 'tags', - 'pod_template_name': 'pod_template_name', - 'cache_ignore_input_vars': 'cache_ignore_input_vars' - } - - def __init__(self, discoverable=None, runtime=None, timeout=None, retries=None, discovery_version=None, deprecated_error_message=None, interruptible=None, cache_serializable=None, generates_deck=None, tags=None, pod_template_name=None, cache_ignore_input_vars=None): # noqa: E501 - """CoreTaskMetadata - a model defined in Swagger""" # noqa: E501 - - self._discoverable = None - self._runtime = None - self._timeout = None - self._retries = None - self._discovery_version = None - self._deprecated_error_message = None - self._interruptible = None - self._cache_serializable = None - self._generates_deck = None - self._tags = None - self._pod_template_name = None - self._cache_ignore_input_vars = None - self.discriminator = None - - if discoverable is not None: - self.discoverable = discoverable - if runtime is not None: - self.runtime = runtime - if timeout is not None: - self.timeout = timeout - if retries is not None: - self.retries = retries - if discovery_version is not None: - self.discovery_version = discovery_version - if deprecated_error_message is not None: - self.deprecated_error_message = deprecated_error_message - if interruptible is not None: - self.interruptible = interruptible - if cache_serializable is not None: - self.cache_serializable = cache_serializable - if generates_deck is not None: - self.generates_deck = generates_deck - if tags is not None: - self.tags = tags - if pod_template_name is not None: - self.pod_template_name = pod_template_name - if cache_ignore_input_vars is not None: - self.cache_ignore_input_vars = cache_ignore_input_vars - - @property - def discoverable(self): - """Gets the discoverable of this CoreTaskMetadata. # noqa: E501 - - Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 - - :return: The discoverable of this CoreTaskMetadata. # noqa: E501 - :rtype: bool - """ - return self._discoverable - - @discoverable.setter - def discoverable(self, discoverable): - """Sets the discoverable of this CoreTaskMetadata. - - Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. # noqa: E501 - - :param discoverable: The discoverable of this CoreTaskMetadata. # noqa: E501 - :type: bool - """ - - self._discoverable = discoverable - - @property - def runtime(self): - """Gets the runtime of this CoreTaskMetadata. # noqa: E501 - - Runtime information about the task. # noqa: E501 - - :return: The runtime of this CoreTaskMetadata. # noqa: E501 - :rtype: CoreRuntimeMetadata - """ - return self._runtime - - @runtime.setter - def runtime(self, runtime): - """Sets the runtime of this CoreTaskMetadata. - - Runtime information about the task. # noqa: E501 - - :param runtime: The runtime of this CoreTaskMetadata. # noqa: E501 - :type: CoreRuntimeMetadata - """ - - self._runtime = runtime - - @property - def timeout(self): - """Gets the timeout of this CoreTaskMetadata. # noqa: E501 - - The overall timeout of a task including user-triggered retries. # noqa: E501 - - :return: The timeout of this CoreTaskMetadata. # noqa: E501 - :rtype: str - """ - return self._timeout - - @timeout.setter - def timeout(self, timeout): - """Sets the timeout of this CoreTaskMetadata. - - The overall timeout of a task including user-triggered retries. # noqa: E501 - - :param timeout: The timeout of this CoreTaskMetadata. # noqa: E501 - :type: str - """ - - self._timeout = timeout - - @property - def retries(self): - """Gets the retries of this CoreTaskMetadata. # noqa: E501 - - Number of retries per task. # noqa: E501 - - :return: The retries of this CoreTaskMetadata. # noqa: E501 - :rtype: CoreRetryStrategy - """ - return self._retries - - @retries.setter - def retries(self, retries): - """Sets the retries of this CoreTaskMetadata. - - Number of retries per task. # noqa: E501 - - :param retries: The retries of this CoreTaskMetadata. # noqa: E501 - :type: CoreRetryStrategy - """ - - self._retries = retries - - @property - def discovery_version(self): - """Gets the discovery_version of this CoreTaskMetadata. # noqa: E501 - - Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 - - :return: The discovery_version of this CoreTaskMetadata. # noqa: E501 - :rtype: str - """ - return self._discovery_version - - @discovery_version.setter - def discovery_version(self, discovery_version): - """Sets the discovery_version of this CoreTaskMetadata. - - Indicates a logical version to apply to this task for the purpose of discovery. # noqa: E501 - - :param discovery_version: The discovery_version of this CoreTaskMetadata. # noqa: E501 - :type: str - """ - - self._discovery_version = discovery_version - - @property - def deprecated_error_message(self): - """Gets the deprecated_error_message of this CoreTaskMetadata. # noqa: E501 - - If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 - - :return: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 - :rtype: str - """ - return self._deprecated_error_message - - @deprecated_error_message.setter - def deprecated_error_message(self, deprecated_error_message): - """Sets the deprecated_error_message of this CoreTaskMetadata. - - If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers of the ending of support for a given task. # noqa: E501 - - :param deprecated_error_message: The deprecated_error_message of this CoreTaskMetadata. # noqa: E501 - :type: str - """ - - self._deprecated_error_message = deprecated_error_message - - @property - def interruptible(self): - """Gets the interruptible of this CoreTaskMetadata. # noqa: E501 - - - :return: The interruptible of this CoreTaskMetadata. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this CoreTaskMetadata. - - - :param interruptible: The interruptible of this CoreTaskMetadata. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - @property - def cache_serializable(self): - """Gets the cache_serializable of this CoreTaskMetadata. # noqa: E501 - - - :return: The cache_serializable of this CoreTaskMetadata. # noqa: E501 - :rtype: bool - """ - return self._cache_serializable - - @cache_serializable.setter - def cache_serializable(self, cache_serializable): - """Sets the cache_serializable of this CoreTaskMetadata. - - - :param cache_serializable: The cache_serializable of this CoreTaskMetadata. # noqa: E501 - :type: bool - """ - - self._cache_serializable = cache_serializable - - @property - def generates_deck(self): - """Gets the generates_deck of this CoreTaskMetadata. # noqa: E501 - - Indicates whether the task will generate a Deck URI when it finishes executing. # noqa: E501 - - :return: The generates_deck of this CoreTaskMetadata. # noqa: E501 - :rtype: bool - """ - return self._generates_deck - - @generates_deck.setter - def generates_deck(self, generates_deck): - """Sets the generates_deck of this CoreTaskMetadata. - - Indicates whether the task will generate a Deck URI when it finishes executing. # noqa: E501 - - :param generates_deck: The generates_deck of this CoreTaskMetadata. # noqa: E501 - :type: bool - """ - - self._generates_deck = generates_deck - - @property - def tags(self): - """Gets the tags of this CoreTaskMetadata. # noqa: E501 - - - :return: The tags of this CoreTaskMetadata. # noqa: E501 - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this CoreTaskMetadata. - - - :param tags: The tags of this CoreTaskMetadata. # noqa: E501 - :type: dict(str, str) - """ - - self._tags = tags - - @property - def pod_template_name(self): - """Gets the pod_template_name of this CoreTaskMetadata. # noqa: E501 - - pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. # noqa: E501 - - :return: The pod_template_name of this CoreTaskMetadata. # noqa: E501 - :rtype: str - """ - return self._pod_template_name - - @pod_template_name.setter - def pod_template_name(self, pod_template_name): - """Sets the pod_template_name of this CoreTaskMetadata. - - pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied identically as, the default PodTemplate configured in FlytePropeller. # noqa: E501 - - :param pod_template_name: The pod_template_name of this CoreTaskMetadata. # noqa: E501 - :type: str - """ - - self._pod_template_name = pod_template_name - - @property - def cache_ignore_input_vars(self): - """Gets the cache_ignore_input_vars of this CoreTaskMetadata. # noqa: E501 - - cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. # noqa: E501 - - :return: The cache_ignore_input_vars of this CoreTaskMetadata. # noqa: E501 - :rtype: list[str] - """ - return self._cache_ignore_input_vars - - @cache_ignore_input_vars.setter - def cache_ignore_input_vars(self, cache_ignore_input_vars): - """Sets the cache_ignore_input_vars of this CoreTaskMetadata. - - cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. # noqa: E501 - - :param cache_ignore_input_vars: The cache_ignore_input_vars of this CoreTaskMetadata. # noqa: E501 - :type: list[str] - """ - - self._cache_ignore_input_vars = cache_ignore_input_vars - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py deleted file mode 100644 index db307f7405..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides # noqa: F401,E501 - - -class CoreTaskNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reference_id': 'CoreIdentifier', - 'overrides': 'CoreTaskNodeOverrides' - } - - attribute_map = { - 'reference_id': 'reference_id', - 'overrides': 'overrides' - } - - def __init__(self, reference_id=None, overrides=None): # noqa: E501 - """CoreTaskNode - a model defined in Swagger""" # noqa: E501 - - self._reference_id = None - self._overrides = None - self.discriminator = None - - if reference_id is not None: - self.reference_id = reference_id - if overrides is not None: - self.overrides = overrides - - @property - def reference_id(self): - """Gets the reference_id of this CoreTaskNode. # noqa: E501 - - A globally unique identifier for the task. # noqa: E501 - - :return: The reference_id of this CoreTaskNode. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._reference_id - - @reference_id.setter - def reference_id(self, reference_id): - """Sets the reference_id of this CoreTaskNode. - - A globally unique identifier for the task. # noqa: E501 - - :param reference_id: The reference_id of this CoreTaskNode. # noqa: E501 - :type: CoreIdentifier - """ - - self._reference_id = reference_id - - @property - def overrides(self): - """Gets the overrides of this CoreTaskNode. # noqa: E501 - - Optional overrides applied at task execution time. # noqa: E501 - - :return: The overrides of this CoreTaskNode. # noqa: E501 - :rtype: CoreTaskNodeOverrides - """ - return self._overrides - - @overrides.setter - def overrides(self, overrides): - """Sets the overrides of this CoreTaskNode. - - Optional overrides applied at task execution time. # noqa: E501 - - :param overrides: The overrides of this CoreTaskNode. # noqa: E501 - :type: CoreTaskNodeOverrides - """ - - self._overrides = overrides - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py deleted file mode 100644 index 54617984db..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_node_overrides.py +++ /dev/null @@ -1,148 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_extended_resources import CoreExtendedResources # noqa: F401,E501 -from flyteadmin.models.core_resources import CoreResources # noqa: F401,E501 - - -class CoreTaskNodeOverrides(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'resources': 'CoreResources', - 'extended_resources': 'CoreExtendedResources' - } - - attribute_map = { - 'resources': 'resources', - 'extended_resources': 'extended_resources' - } - - def __init__(self, resources=None, extended_resources=None): # noqa: E501 - """CoreTaskNodeOverrides - a model defined in Swagger""" # noqa: E501 - - self._resources = None - self._extended_resources = None - self.discriminator = None - - if resources is not None: - self.resources = resources - if extended_resources is not None: - self.extended_resources = extended_resources - - @property - def resources(self): - """Gets the resources of this CoreTaskNodeOverrides. # noqa: E501 - - A customizable interface to convey resources requested for a task container. # noqa: E501 - - :return: The resources of this CoreTaskNodeOverrides. # noqa: E501 - :rtype: CoreResources - """ - return self._resources - - @resources.setter - def resources(self, resources): - """Sets the resources of this CoreTaskNodeOverrides. - - A customizable interface to convey resources requested for a task container. # noqa: E501 - - :param resources: The resources of this CoreTaskNodeOverrides. # noqa: E501 - :type: CoreResources - """ - - self._resources = resources - - @property - def extended_resources(self): - """Gets the extended_resources of this CoreTaskNodeOverrides. # noqa: E501 - - Overrides for all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. # noqa: E501 - - :return: The extended_resources of this CoreTaskNodeOverrides. # noqa: E501 - :rtype: CoreExtendedResources - """ - return self._extended_resources - - @extended_resources.setter - def extended_resources(self, extended_resources): - """Sets the extended_resources of this CoreTaskNodeOverrides. - - Overrides for all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. # noqa: E501 - - :param extended_resources: The extended_resources of this CoreTaskNodeOverrides. # noqa: E501 - :type: CoreExtendedResources - """ - - self._extended_resources = extended_resources - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskNodeOverrides, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskNodeOverrides): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py deleted file mode 100644 index df06a8db04..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_task_template.py +++ /dev/null @@ -1,427 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_container import CoreContainer # noqa: F401,E501 -from flyteadmin.models.core_extended_resources import CoreExtendedResources # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_k8s_pod import CoreK8sPod # noqa: F401,E501 -from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: F401,E501 -from flyteadmin.models.core_sql import CoreSql # noqa: F401,E501 -from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: F401,E501 -from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class CoreTaskTemplate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'type': 'str', - 'metadata': 'CoreTaskMetadata', - 'interface': 'CoreTypedInterface', - 'custom': 'ProtobufStruct', - 'container': 'CoreContainer', - 'k8s_pod': 'CoreK8sPod', - 'sql': 'CoreSql', - 'task_type_version': 'int', - 'security_context': 'CoreSecurityContext', - 'extended_resources': 'CoreExtendedResources', - 'config': 'dict(str, str)' - } - - attribute_map = { - 'id': 'id', - 'type': 'type', - 'metadata': 'metadata', - 'interface': 'interface', - 'custom': 'custom', - 'container': 'container', - 'k8s_pod': 'k8s_pod', - 'sql': 'sql', - 'task_type_version': 'task_type_version', - 'security_context': 'security_context', - 'extended_resources': 'extended_resources', - 'config': 'config' - } - - def __init__(self, id=None, type=None, metadata=None, interface=None, custom=None, container=None, k8s_pod=None, sql=None, task_type_version=None, security_context=None, extended_resources=None, config=None): # noqa: E501 - """CoreTaskTemplate - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._type = None - self._metadata = None - self._interface = None - self._custom = None - self._container = None - self._k8s_pod = None - self._sql = None - self._task_type_version = None - self._security_context = None - self._extended_resources = None - self._config = None - self.discriminator = None - - if id is not None: - self.id = id - if type is not None: - self.type = type - if metadata is not None: - self.metadata = metadata - if interface is not None: - self.interface = interface - if custom is not None: - self.custom = custom - if container is not None: - self.container = container - if k8s_pod is not None: - self.k8s_pod = k8s_pod - if sql is not None: - self.sql = sql - if task_type_version is not None: - self.task_type_version = task_type_version - if security_context is not None: - self.security_context = security_context - if extended_resources is not None: - self.extended_resources = extended_resources - if config is not None: - self.config = config - - @property - def id(self): - """Gets the id of this CoreTaskTemplate. # noqa: E501 - - Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 - - :return: The id of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this CoreTaskTemplate. - - Auto generated taskId by the system. Task Id uniquely identifies this task globally. # noqa: E501 - - :param id: The id of this CoreTaskTemplate. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def type(self): - """Gets the type of this CoreTaskTemplate. # noqa: E501 - - A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 - - :return: The type of this CoreTaskTemplate. # noqa: E501 - :rtype: str - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreTaskTemplate. - - A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the implementation registered for the TaskCategory. # noqa: E501 - - :param type: The type of this CoreTaskTemplate. # noqa: E501 - :type: str - """ - - self._type = type - - @property - def metadata(self): - """Gets the metadata of this CoreTaskTemplate. # noqa: E501 - - Extra metadata about the task. # noqa: E501 - - :return: The metadata of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreTaskMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreTaskTemplate. - - Extra metadata about the task. # noqa: E501 - - :param metadata: The metadata of this CoreTaskTemplate. # noqa: E501 - :type: CoreTaskMetadata - """ - - self._metadata = metadata - - @property - def interface(self): - """Gets the interface of this CoreTaskTemplate. # noqa: E501 - - A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 - - :return: The interface of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreTypedInterface - """ - return self._interface - - @interface.setter - def interface(self, interface): - """Sets the interface of this CoreTaskTemplate. - - A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees compile-time validation of the workflow to avoid costly runtime failures. # noqa: E501 - - :param interface: The interface of this CoreTaskTemplate. # noqa: E501 - :type: CoreTypedInterface - """ - - self._interface = interface - - @property - def custom(self): - """Gets the custom of this CoreTaskTemplate. # noqa: E501 - - Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 - - :return: The custom of this CoreTaskTemplate. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._custom - - @custom.setter - def custom(self, custom): - """Sets the custom of this CoreTaskTemplate. - - Custom data about the task. This is extensible to allow various plugins in the system. # noqa: E501 - - :param custom: The custom of this CoreTaskTemplate. # noqa: E501 - :type: ProtobufStruct - """ - - self._custom = custom - - @property - def container(self): - """Gets the container of this CoreTaskTemplate. # noqa: E501 - - - :return: The container of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreContainer - """ - return self._container - - @container.setter - def container(self, container): - """Sets the container of this CoreTaskTemplate. - - - :param container: The container of this CoreTaskTemplate. # noqa: E501 - :type: CoreContainer - """ - - self._container = container - - @property - def k8s_pod(self): - """Gets the k8s_pod of this CoreTaskTemplate. # noqa: E501 - - - :return: The k8s_pod of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreK8sPod - """ - return self._k8s_pod - - @k8s_pod.setter - def k8s_pod(self, k8s_pod): - """Sets the k8s_pod of this CoreTaskTemplate. - - - :param k8s_pod: The k8s_pod of this CoreTaskTemplate. # noqa: E501 - :type: CoreK8sPod - """ - - self._k8s_pod = k8s_pod - - @property - def sql(self): - """Gets the sql of this CoreTaskTemplate. # noqa: E501 - - - :return: The sql of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreSql - """ - return self._sql - - @sql.setter - def sql(self, sql): - """Sets the sql of this CoreTaskTemplate. - - - :param sql: The sql of this CoreTaskTemplate. # noqa: E501 - :type: CoreSql - """ - - self._sql = sql - - @property - def task_type_version(self): - """Gets the task_type_version of this CoreTaskTemplate. # noqa: E501 - - This can be used to customize task handling at execution time for the same task type. # noqa: E501 - - :return: The task_type_version of this CoreTaskTemplate. # noqa: E501 - :rtype: int - """ - return self._task_type_version - - @task_type_version.setter - def task_type_version(self, task_type_version): - """Sets the task_type_version of this CoreTaskTemplate. - - This can be used to customize task handling at execution time for the same task type. # noqa: E501 - - :param task_type_version: The task_type_version of this CoreTaskTemplate. # noqa: E501 - :type: int - """ - - self._task_type_version = task_type_version - - @property - def security_context(self): - """Gets the security_context of this CoreTaskTemplate. # noqa: E501 - - security_context encapsulates security attributes requested to run this task. # noqa: E501 - - :return: The security_context of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreSecurityContext - """ - return self._security_context - - @security_context.setter - def security_context(self, security_context): - """Sets the security_context of this CoreTaskTemplate. - - security_context encapsulates security attributes requested to run this task. # noqa: E501 - - :param security_context: The security_context of this CoreTaskTemplate. # noqa: E501 - :type: CoreSecurityContext - """ - - self._security_context = security_context - - @property - def extended_resources(self): - """Gets the extended_resources of this CoreTaskTemplate. # noqa: E501 - - Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. # noqa: E501 - - :return: The extended_resources of this CoreTaskTemplate. # noqa: E501 - :rtype: CoreExtendedResources - """ - return self._extended_resources - - @extended_resources.setter - def extended_resources(self, extended_resources): - """Sets the extended_resources of this CoreTaskTemplate. - - Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to allocate to a task. # noqa: E501 - - :param extended_resources: The extended_resources of this CoreTaskTemplate. # noqa: E501 - :type: CoreExtendedResources - """ - - self._extended_resources = extended_resources - - @property - def config(self): - """Gets the config of this CoreTaskTemplate. # noqa: E501 - - - :return: The config of this CoreTaskTemplate. # noqa: E501 - :rtype: dict(str, str) - """ - return self._config - - @config.setter - def config(self, config): - """Sets the config of this CoreTaskTemplate. - - - :param config: The config of this CoreTaskTemplate. # noqa: E501 - :type: dict(str, str) - """ - - self._config = config - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTaskTemplate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTaskTemplate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py deleted file mode 100644 index 3289feeabb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_annotation.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class CoreTypeAnnotation(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'annotations': 'ProtobufStruct' - } - - attribute_map = { - 'annotations': 'annotations' - } - - def __init__(self, annotations=None): # noqa: E501 - """CoreTypeAnnotation - a model defined in Swagger""" # noqa: E501 - - self._annotations = None - self.discriminator = None - - if annotations is not None: - self.annotations = annotations - - @property - def annotations(self): - """Gets the annotations of this CoreTypeAnnotation. # noqa: E501 - - A arbitrary JSON payload to describe a type. # noqa: E501 - - :return: The annotations of this CoreTypeAnnotation. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._annotations - - @annotations.setter - def annotations(self, annotations): - """Sets the annotations of this CoreTypeAnnotation. - - A arbitrary JSON payload to describe a type. # noqa: E501 - - :param annotations: The annotations of this CoreTypeAnnotation. # noqa: E501 - :type: ProtobufStruct - """ - - self._annotations = annotations - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTypeAnnotation, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTypeAnnotation): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py deleted file mode 100644 index 9a63072865..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_type_structure.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreTypeStructure(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'tag': 'str', - 'dataclass_type': 'dict(str, CoreLiteralType)' - } - - attribute_map = { - 'tag': 'tag', - 'dataclass_type': 'dataclass_type' - } - - def __init__(self, tag=None, dataclass_type=None): # noqa: E501 - """CoreTypeStructure - a model defined in Swagger""" # noqa: E501 - - self._tag = None - self._dataclass_type = None - self.discriminator = None - - if tag is not None: - self.tag = tag - if dataclass_type is not None: - self.dataclass_type = dataclass_type - - @property - def tag(self): - """Gets the tag of this CoreTypeStructure. # noqa: E501 - - - :return: The tag of this CoreTypeStructure. # noqa: E501 - :rtype: str - """ - return self._tag - - @tag.setter - def tag(self, tag): - """Sets the tag of this CoreTypeStructure. - - - :param tag: The tag of this CoreTypeStructure. # noqa: E501 - :type: str - """ - - self._tag = tag - - @property - def dataclass_type(self): - """Gets the dataclass_type of this CoreTypeStructure. # noqa: E501 - - - :return: The dataclass_type of this CoreTypeStructure. # noqa: E501 - :rtype: dict(str, CoreLiteralType) - """ - return self._dataclass_type - - @dataclass_type.setter - def dataclass_type(self, dataclass_type): - """Sets the dataclass_type of this CoreTypeStructure. - - - :param dataclass_type: The dataclass_type of this CoreTypeStructure. # noqa: E501 - :type: dict(str, CoreLiteralType) - """ - - self._dataclass_type = dataclass_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTypeStructure, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTypeStructure): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py deleted file mode 100644 index 8864814f4b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_typed_interface.py +++ /dev/null @@ -1,143 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: F401,E501 - - -class CoreTypedInterface(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'inputs': 'CoreVariableMap', - 'outputs': 'CoreVariableMap' - } - - attribute_map = { - 'inputs': 'inputs', - 'outputs': 'outputs' - } - - def __init__(self, inputs=None, outputs=None): # noqa: E501 - """CoreTypedInterface - a model defined in Swagger""" # noqa: E501 - - self._inputs = None - self._outputs = None - self.discriminator = None - - if inputs is not None: - self.inputs = inputs - if outputs is not None: - self.outputs = outputs - - @property - def inputs(self): - """Gets the inputs of this CoreTypedInterface. # noqa: E501 - - - :return: The inputs of this CoreTypedInterface. # noqa: E501 - :rtype: CoreVariableMap - """ - return self._inputs - - @inputs.setter - def inputs(self, inputs): - """Sets the inputs of this CoreTypedInterface. - - - :param inputs: The inputs of this CoreTypedInterface. # noqa: E501 - :type: CoreVariableMap - """ - - self._inputs = inputs - - @property - def outputs(self): - """Gets the outputs of this CoreTypedInterface. # noqa: E501 - - - :return: The outputs of this CoreTypedInterface. # noqa: E501 - :rtype: CoreVariableMap - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this CoreTypedInterface. - - - :param outputs: The outputs of this CoreTypedInterface. # noqa: E501 - :type: CoreVariableMap - """ - - self._outputs = outputs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreTypedInterface, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreTypedInterface): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py deleted file mode 100644 index 9b96a71d06..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal import CoreLiteral # noqa: F401,E501 -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreUnion(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'value': 'CoreLiteral', - 'type': 'CoreLiteralType' - } - - attribute_map = { - 'value': 'value', - 'type': 'type' - } - - def __init__(self, value=None, type=None): # noqa: E501 - """CoreUnion - a model defined in Swagger""" # noqa: E501 - - self._value = None - self._type = None - self.discriminator = None - - if value is not None: - self.value = value - if type is not None: - self.type = type - - @property - def value(self): - """Gets the value of this CoreUnion. # noqa: E501 - - - :return: The value of this CoreUnion. # noqa: E501 - :rtype: CoreLiteral - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this CoreUnion. - - - :param value: The value of this CoreUnion. # noqa: E501 - :type: CoreLiteral - """ - - self._value = value - - @property - def type(self): - """Gets the type of this CoreUnion. # noqa: E501 - - - :return: The type of this CoreUnion. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreUnion. - - - :param type: The type of this CoreUnion. # noqa: E501 - :type: CoreLiteralType - """ - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreUnion, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreUnion): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py deleted file mode 100644 index 361c967c3c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_info.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreUnionInfo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'target_type': 'CoreLiteralType' - } - - attribute_map = { - 'target_type': 'targetType' - } - - def __init__(self, target_type=None): # noqa: E501 - """CoreUnionInfo - a model defined in Swagger""" # noqa: E501 - - self._target_type = None - self.discriminator = None - - if target_type is not None: - self.target_type = target_type - - @property - def target_type(self): - """Gets the target_type of this CoreUnionInfo. # noqa: E501 - - - :return: The target_type of this CoreUnionInfo. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._target_type - - @target_type.setter - def target_type(self, target_type): - """Sets the target_type of this CoreUnionInfo. - - - :param target_type: The target_type of this CoreUnionInfo. # noqa: E501 - :type: CoreLiteralType - """ - - self._target_type = target_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreUnionInfo, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreUnionInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py deleted file mode 100644 index 3fb360d055..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_union_type.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreUnionType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'variants': 'list[CoreLiteralType]' - } - - attribute_map = { - 'variants': 'variants' - } - - def __init__(self, variants=None): # noqa: E501 - """CoreUnionType - a model defined in Swagger""" # noqa: E501 - - self._variants = None - self.discriminator = None - - if variants is not None: - self.variants = variants - - @property - def variants(self): - """Gets the variants of this CoreUnionType. # noqa: E501 - - Predefined set of variants in union. # noqa: E501 - - :return: The variants of this CoreUnionType. # noqa: E501 - :rtype: list[CoreLiteralType] - """ - return self._variants - - @variants.setter - def variants(self, variants): - """Sets the variants of this CoreUnionType. - - Predefined set of variants in union. # noqa: E501 - - :param variants: The variants of this CoreUnionType. # noqa: E501 - :type: list[CoreLiteralType] - """ - - self._variants = variants - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreUnionType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreUnionType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py deleted file mode 100644 index 5a57bd3aa0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable.py +++ /dev/null @@ -1,201 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_artifact_id import CoreArtifactID # noqa: F401,E501 -from flyteadmin.models.core_artifact_tag import CoreArtifactTag # noqa: F401,E501 -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class CoreVariable(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type': 'CoreLiteralType', - 'description': 'str', - 'artifact_partial_id': 'CoreArtifactID', - 'artifact_tag': 'CoreArtifactTag' - } - - attribute_map = { - 'type': 'type', - 'description': 'description', - 'artifact_partial_id': 'artifact_partial_id', - 'artifact_tag': 'artifact_tag' - } - - def __init__(self, type=None, description=None, artifact_partial_id=None, artifact_tag=None): # noqa: E501 - """CoreVariable - a model defined in Swagger""" # noqa: E501 - - self._type = None - self._description = None - self._artifact_partial_id = None - self._artifact_tag = None - self.discriminator = None - - if type is not None: - self.type = type - if description is not None: - self.description = description - if artifact_partial_id is not None: - self.artifact_partial_id = artifact_partial_id - if artifact_tag is not None: - self.artifact_tag = artifact_tag - - @property - def type(self): - """Gets the type of this CoreVariable. # noqa: E501 - - Variable literal type. # noqa: E501 - - :return: The type of this CoreVariable. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this CoreVariable. - - Variable literal type. # noqa: E501 - - :param type: The type of this CoreVariable. # noqa: E501 - :type: CoreLiteralType - """ - - self._type = type - - @property - def description(self): - """Gets the description of this CoreVariable. # noqa: E501 - - - :return: The description of this CoreVariable. # noqa: E501 - :rtype: str - """ - return self._description - - @description.setter - def description(self, description): - """Sets the description of this CoreVariable. - - - :param description: The description of this CoreVariable. # noqa: E501 - :type: str - """ - - self._description = description - - @property - def artifact_partial_id(self): - """Gets the artifact_partial_id of this CoreVariable. # noqa: E501 - - +optional This object allows the user to specify how Artifacts are created. name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. # noqa: E501 - - :return: The artifact_partial_id of this CoreVariable. # noqa: E501 - :rtype: CoreArtifactID - """ - return self._artifact_partial_id - - @artifact_partial_id.setter - def artifact_partial_id(self, artifact_partial_id): - """Sets the artifact_partial_id of this CoreVariable. - - +optional This object allows the user to specify how Artifacts are created. name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. # noqa: E501 - - :param artifact_partial_id: The artifact_partial_id of this CoreVariable. # noqa: E501 - :type: CoreArtifactID - """ - - self._artifact_partial_id = artifact_partial_id - - @property - def artifact_tag(self): - """Gets the artifact_tag of this CoreVariable. # noqa: E501 - - - :return: The artifact_tag of this CoreVariable. # noqa: E501 - :rtype: CoreArtifactTag - """ - return self._artifact_tag - - @artifact_tag.setter - def artifact_tag(self, artifact_tag): - """Sets the artifact_tag of this CoreVariable. - - - :param artifact_tag: The artifact_tag of this CoreVariable. # noqa: E501 - :type: CoreArtifactTag - """ - - self._artifact_tag = artifact_tag - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreVariable, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreVariable): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py deleted file mode 100644 index a2a15f83f6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_variable_map.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_variable import CoreVariable # noqa: F401,E501 - - -class CoreVariableMap(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'variables': 'dict(str, CoreVariable)' - } - - attribute_map = { - 'variables': 'variables' - } - - def __init__(self, variables=None): # noqa: E501 - """CoreVariableMap - a model defined in Swagger""" # noqa: E501 - - self._variables = None - self.discriminator = None - - if variables is not None: - self.variables = variables - - @property - def variables(self): - """Gets the variables of this CoreVariableMap. # noqa: E501 - - Defines a map of variable names to variables. # noqa: E501 - - :return: The variables of this CoreVariableMap. # noqa: E501 - :rtype: dict(str, CoreVariable) - """ - return self._variables - - @variables.setter - def variables(self, variables): - """Sets the variables of this CoreVariableMap. - - Defines a map of variable names to variables. # noqa: E501 - - :param variables: The variables of this CoreVariableMap. # noqa: E501 - :type: dict(str, CoreVariable) - """ - - self._variables = variables - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreVariableMap, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreVariableMap): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py deleted file mode 100644 index 709f5a55e3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_void.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreVoid(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreVoid - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreVoid, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreVoid): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py deleted file mode 100644 index 09bd015a36..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_identifier.py +++ /dev/null @@ -1,173 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreWorkflowExecutionIdentifier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'project': 'str', - 'domain': 'str', - 'name': 'str' - } - - attribute_map = { - 'project': 'project', - 'domain': 'domain', - 'name': 'name' - } - - def __init__(self, project=None, domain=None, name=None): # noqa: E501 - """CoreWorkflowExecutionIdentifier - a model defined in Swagger""" # noqa: E501 - - self._project = None - self._domain = None - self._name = None - self.discriminator = None - - if project is not None: - self.project = project - if domain is not None: - self.domain = domain - if name is not None: - self.name = name - - @property - def project(self): - """Gets the project of this CoreWorkflowExecutionIdentifier. # noqa: E501 - - Name of the project the resource belongs to. # noqa: E501 - - :return: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :rtype: str - """ - return self._project - - @project.setter - def project(self, project): - """Sets the project of this CoreWorkflowExecutionIdentifier. - - Name of the project the resource belongs to. # noqa: E501 - - :param project: The project of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :type: str - """ - - self._project = project - - @property - def domain(self): - """Gets the domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :return: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :rtype: str - """ - return self._domain - - @domain.setter - def domain(self, domain): - """Sets the domain of this CoreWorkflowExecutionIdentifier. - - Name of the domain the resource belongs to. A domain can be considered as a subset within a specific project. # noqa: E501 - - :param domain: The domain of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :type: str - """ - - self._domain = domain - - @property - def name(self): - """Gets the name of this CoreWorkflowExecutionIdentifier. # noqa: E501 - - User or system provided value for the resource. # noqa: E501 - - :return: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this CoreWorkflowExecutionIdentifier. - - User or system provided value for the resource. # noqa: E501 - - :param name: The name of this CoreWorkflowExecutionIdentifier. # noqa: E501 - :type: str - """ - - self._name = name - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowExecutionIdentifier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowExecutionIdentifier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py deleted file mode 100644 index d2cdbd69dd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_execution_phase.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreWorkflowExecutionPhase(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNDEFINED = "UNDEFINED" - QUEUED = "QUEUED" - RUNNING = "RUNNING" - SUCCEEDING = "SUCCEEDING" - SUCCEEDED = "SUCCEEDED" - FAILING = "FAILING" - FAILED = "FAILED" - ABORTED = "ABORTED" - TIMED_OUT = "TIMED_OUT" - ABORTING = "ABORTING" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """CoreWorkflowExecutionPhase - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowExecutionPhase, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowExecutionPhase): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py deleted file mode 100644 index 9c6b873be9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata.py +++ /dev/null @@ -1,174 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: F401,E501 -from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy # noqa: F401,E501 - - -class CoreWorkflowMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'quality_of_service': 'CoreQualityOfService', - 'on_failure': 'WorkflowMetadataOnFailurePolicy', - 'tags': 'dict(str, str)' - } - - attribute_map = { - 'quality_of_service': 'quality_of_service', - 'on_failure': 'on_failure', - 'tags': 'tags' - } - - def __init__(self, quality_of_service=None, on_failure=None, tags=None): # noqa: E501 - """CoreWorkflowMetadata - a model defined in Swagger""" # noqa: E501 - - self._quality_of_service = None - self._on_failure = None - self._tags = None - self.discriminator = None - - if quality_of_service is not None: - self.quality_of_service = quality_of_service - if on_failure is not None: - self.on_failure = on_failure - if tags is not None: - self.tags = tags - - @property - def quality_of_service(self): - """Gets the quality_of_service of this CoreWorkflowMetadata. # noqa: E501 - - Indicates the runtime priority of workflow executions. # noqa: E501 - - :return: The quality_of_service of this CoreWorkflowMetadata. # noqa: E501 - :rtype: CoreQualityOfService - """ - return self._quality_of_service - - @quality_of_service.setter - def quality_of_service(self, quality_of_service): - """Sets the quality_of_service of this CoreWorkflowMetadata. - - Indicates the runtime priority of workflow executions. # noqa: E501 - - :param quality_of_service: The quality_of_service of this CoreWorkflowMetadata. # noqa: E501 - :type: CoreQualityOfService - """ - - self._quality_of_service = quality_of_service - - @property - def on_failure(self): - """Gets the on_failure of this CoreWorkflowMetadata. # noqa: E501 - - Defines how the system should behave when a failure is detected in the workflow execution. # noqa: E501 - - :return: The on_failure of this CoreWorkflowMetadata. # noqa: E501 - :rtype: WorkflowMetadataOnFailurePolicy - """ - return self._on_failure - - @on_failure.setter - def on_failure(self, on_failure): - """Sets the on_failure of this CoreWorkflowMetadata. - - Defines how the system should behave when a failure is detected in the workflow execution. # noqa: E501 - - :param on_failure: The on_failure of this CoreWorkflowMetadata. # noqa: E501 - :type: WorkflowMetadataOnFailurePolicy - """ - - self._on_failure = on_failure - - @property - def tags(self): - """Gets the tags of this CoreWorkflowMetadata. # noqa: E501 - - - :return: The tags of this CoreWorkflowMetadata. # noqa: E501 - :rtype: dict(str, str) - """ - return self._tags - - @tags.setter - def tags(self, tags): - """Sets the tags of this CoreWorkflowMetadata. - - - :param tags: The tags of this CoreWorkflowMetadata. # noqa: E501 - :type: dict(str, str) - """ - - self._tags = tags - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py deleted file mode 100644 index 6f9762be88..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_metadata_defaults.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class CoreWorkflowMetadataDefaults(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'interruptible': 'bool' - } - - attribute_map = { - 'interruptible': 'interruptible' - } - - def __init__(self, interruptible=None): # noqa: E501 - """CoreWorkflowMetadataDefaults - a model defined in Swagger""" # noqa: E501 - - self._interruptible = None - self.discriminator = None - - if interruptible is not None: - self.interruptible = interruptible - - @property - def interruptible(self): - """Gets the interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 - - Whether child nodes of the workflow are interruptible. # noqa: E501 - - :return: The interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 - :rtype: bool - """ - return self._interruptible - - @interruptible.setter - def interruptible(self, interruptible): - """Sets the interruptible of this CoreWorkflowMetadataDefaults. - - Whether child nodes of the workflow are interruptible. # noqa: E501 - - :param interruptible: The interruptible of this CoreWorkflowMetadataDefaults. # noqa: E501 - :type: bool - """ - - self._interruptible = interruptible - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowMetadataDefaults, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowMetadataDefaults): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py deleted file mode 100644 index 9d35249385..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_node.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class CoreWorkflowNode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'launchplan_ref': 'CoreIdentifier', - 'sub_workflow_ref': 'CoreIdentifier' - } - - attribute_map = { - 'launchplan_ref': 'launchplan_ref', - 'sub_workflow_ref': 'sub_workflow_ref' - } - - def __init__(self, launchplan_ref=None, sub_workflow_ref=None): # noqa: E501 - """CoreWorkflowNode - a model defined in Swagger""" # noqa: E501 - - self._launchplan_ref = None - self._sub_workflow_ref = None - self.discriminator = None - - if launchplan_ref is not None: - self.launchplan_ref = launchplan_ref - if sub_workflow_ref is not None: - self.sub_workflow_ref = sub_workflow_ref - - @property - def launchplan_ref(self): - """Gets the launchplan_ref of this CoreWorkflowNode. # noqa: E501 - - A globally unique identifier for the launch plan. # noqa: E501 - - :return: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._launchplan_ref - - @launchplan_ref.setter - def launchplan_ref(self, launchplan_ref): - """Sets the launchplan_ref of this CoreWorkflowNode. - - A globally unique identifier for the launch plan. # noqa: E501 - - :param launchplan_ref: The launchplan_ref of this CoreWorkflowNode. # noqa: E501 - :type: CoreIdentifier - """ - - self._launchplan_ref = launchplan_ref - - @property - def sub_workflow_ref(self): - """Gets the sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 - - - :return: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._sub_workflow_ref - - @sub_workflow_ref.setter - def sub_workflow_ref(self, sub_workflow_ref): - """Sets the sub_workflow_ref of this CoreWorkflowNode. - - - :param sub_workflow_ref: The sub_workflow_ref of this CoreWorkflowNode. # noqa: E501 - :type: CoreIdentifier - """ - - self._sub_workflow_ref = sub_workflow_ref - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowNode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowNode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py deleted file mode 100644 index ead72237b9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/core_workflow_template.py +++ /dev/null @@ -1,290 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_binding import CoreBinding # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_node import CoreNode # noqa: F401,E501 -from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: F401,E501 -from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: F401,E501 -from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults # noqa: F401,E501 - - -class CoreWorkflowTemplate(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'metadata': 'CoreWorkflowMetadata', - 'interface': 'CoreTypedInterface', - 'nodes': 'list[CoreNode]', - 'outputs': 'list[CoreBinding]', - 'failure_node': 'CoreNode', - 'metadata_defaults': 'CoreWorkflowMetadataDefaults' - } - - attribute_map = { - 'id': 'id', - 'metadata': 'metadata', - 'interface': 'interface', - 'nodes': 'nodes', - 'outputs': 'outputs', - 'failure_node': 'failure_node', - 'metadata_defaults': 'metadata_defaults' - } - - def __init__(self, id=None, metadata=None, interface=None, nodes=None, outputs=None, failure_node=None, metadata_defaults=None): # noqa: E501 - """CoreWorkflowTemplate - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._metadata = None - self._interface = None - self._nodes = None - self._outputs = None - self._failure_node = None - self._metadata_defaults = None - self.discriminator = None - - if id is not None: - self.id = id - if metadata is not None: - self.metadata = metadata - if interface is not None: - self.interface = interface - if nodes is not None: - self.nodes = nodes - if outputs is not None: - self.outputs = outputs - if failure_node is not None: - self.failure_node = failure_node - if metadata_defaults is not None: - self.metadata_defaults = metadata_defaults - - @property - def id(self): - """Gets the id of this CoreWorkflowTemplate. # noqa: E501 - - A globally unique identifier for the workflow. # noqa: E501 - - :return: The id of this CoreWorkflowTemplate. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this CoreWorkflowTemplate. - - A globally unique identifier for the workflow. # noqa: E501 - - :param id: The id of this CoreWorkflowTemplate. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def metadata(self): - """Gets the metadata of this CoreWorkflowTemplate. # noqa: E501 - - Extra metadata about the workflow. # noqa: E501 - - :return: The metadata of this CoreWorkflowTemplate. # noqa: E501 - :rtype: CoreWorkflowMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this CoreWorkflowTemplate. - - Extra metadata about the workflow. # noqa: E501 - - :param metadata: The metadata of this CoreWorkflowTemplate. # noqa: E501 - :type: CoreWorkflowMetadata - """ - - self._metadata = metadata - - @property - def interface(self): - """Gets the interface of this CoreWorkflowTemplate. # noqa: E501 - - Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 - - :return: The interface of this CoreWorkflowTemplate. # noqa: E501 - :rtype: CoreTypedInterface - """ - return self._interface - - @interface.setter - def interface(self, interface): - """Sets the interface of this CoreWorkflowTemplate. - - Defines a strongly typed interface for the Workflow. This can include some optional parameters. # noqa: E501 - - :param interface: The interface of this CoreWorkflowTemplate. # noqa: E501 - :type: CoreTypedInterface - """ - - self._interface = interface - - @property - def nodes(self): - """Gets the nodes of this CoreWorkflowTemplate. # noqa: E501 - - A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 - - :return: The nodes of this CoreWorkflowTemplate. # noqa: E501 - :rtype: list[CoreNode] - """ - return self._nodes - - @nodes.setter - def nodes(self, nodes): - """Sets the nodes of this CoreWorkflowTemplate. - - A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. # noqa: E501 - - :param nodes: The nodes of this CoreWorkflowTemplate. # noqa: E501 - :type: list[CoreNode] - """ - - self._nodes = nodes - - @property - def outputs(self): - """Gets the outputs of this CoreWorkflowTemplate. # noqa: E501 - - A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 - - :return: The outputs of this CoreWorkflowTemplate. # noqa: E501 - :rtype: list[CoreBinding] - """ - return self._outputs - - @outputs.setter - def outputs(self, outputs): - """Sets the outputs of this CoreWorkflowTemplate. - - A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to bind final outputs. Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling outputs from the output of a task. # noqa: E501 - - :param outputs: The outputs of this CoreWorkflowTemplate. # noqa: E501 - :type: list[CoreBinding] - """ - - self._outputs = outputs - - @property - def failure_node(self): - """Gets the failure_node of this CoreWorkflowTemplate. # noqa: E501 - - +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. # noqa: E501 - - :return: The failure_node of this CoreWorkflowTemplate. # noqa: E501 - :rtype: CoreNode - """ - return self._failure_node - - @failure_node.setter - def failure_node(self, failure_node): - """Sets the failure_node of this CoreWorkflowTemplate. - - +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. The interface of this node must match the Workflow interface with an additional input named 'error' of type pb.lyft.flyte.core.Error. # noqa: E501 - - :param failure_node: The failure_node of this CoreWorkflowTemplate. # noqa: E501 - :type: CoreNode - """ - - self._failure_node = failure_node - - @property - def metadata_defaults(self): - """Gets the metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 - - - :return: The metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 - :rtype: CoreWorkflowMetadataDefaults - """ - return self._metadata_defaults - - @metadata_defaults.setter - def metadata_defaults(self, metadata_defaults): - """Sets the metadata_defaults of this CoreWorkflowTemplate. - - - :param metadata_defaults: The metadata_defaults of this CoreWorkflowTemplate. # noqa: E501 - :type: CoreWorkflowMetadataDefaults - """ - - self._metadata_defaults = metadata_defaults - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(CoreWorkflowTemplate, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, CoreWorkflowTemplate): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py deleted file mode 100644 index 1606391004..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/data_loading_config_literal_map_format.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class DataLoadingConfigLiteralMapFormat(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - JSON = "JSON" - YAML = "YAML" - PROTO = "PROTO" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """DataLoadingConfigLiteralMapFormat - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(DataLoadingConfigLiteralMapFormat, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, DataLoadingConfigLiteralMapFormat): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_event_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_event_reason.py deleted file mode 100644 index 783e0f171c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_event_reason.py +++ /dev/null @@ -1,141 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class EventEventReason(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'reason': 'str', - 'occurred_at': 'datetime' - } - - attribute_map = { - 'reason': 'reason', - 'occurred_at': 'occurred_at' - } - - def __init__(self, reason=None, occurred_at=None): # noqa: E501 - """EventEventReason - a model defined in Swagger""" # noqa: E501 - - self._reason = None - self._occurred_at = None - self.discriminator = None - - if reason is not None: - self.reason = reason - if occurred_at is not None: - self.occurred_at = occurred_at - - @property - def reason(self): - """Gets the reason of this EventEventReason. # noqa: E501 - - - :return: The reason of this EventEventReason. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this EventEventReason. - - - :param reason: The reason of this EventEventReason. # noqa: E501 - :type: str - """ - - self._reason = reason - - @property - def occurred_at(self): - """Gets the occurred_at of this EventEventReason. # noqa: E501 - - - :return: The occurred_at of this EventEventReason. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this EventEventReason. - - - :param occurred_at: The occurred_at of this EventEventReason. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventEventReason, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventEventReason): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py deleted file mode 100644 index e170aa4c0a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_external_resource_info.py +++ /dev/null @@ -1,255 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 -from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 - - -class EventExternalResourceInfo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'external_id': 'str', - 'index': 'int', - 'retry_attempt': 'int', - 'phase': 'CoreTaskExecutionPhase', - 'cache_status': 'CoreCatalogCacheStatus', - 'logs': 'list[CoreTaskLog]' - } - - attribute_map = { - 'external_id': 'external_id', - 'index': 'index', - 'retry_attempt': 'retry_attempt', - 'phase': 'phase', - 'cache_status': 'cache_status', - 'logs': 'logs' - } - - def __init__(self, external_id=None, index=None, retry_attempt=None, phase=None, cache_status=None, logs=None): # noqa: E501 - """EventExternalResourceInfo - a model defined in Swagger""" # noqa: E501 - - self._external_id = None - self._index = None - self._retry_attempt = None - self._phase = None - self._cache_status = None - self._logs = None - self.discriminator = None - - if external_id is not None: - self.external_id = external_id - if index is not None: - self.index = index - if retry_attempt is not None: - self.retry_attempt = retry_attempt - if phase is not None: - self.phase = phase - if cache_status is not None: - self.cache_status = cache_status - if logs is not None: - self.logs = logs - - @property - def external_id(self): - """Gets the external_id of this EventExternalResourceInfo. # noqa: E501 - - Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. # noqa: E501 - - :return: The external_id of this EventExternalResourceInfo. # noqa: E501 - :rtype: str - """ - return self._external_id - - @external_id.setter - def external_id(self, external_id): - """Sets the external_id of this EventExternalResourceInfo. - - Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. # noqa: E501 - - :param external_id: The external_id of this EventExternalResourceInfo. # noqa: E501 - :type: str - """ - - self._external_id = external_id - - @property - def index(self): - """Gets the index of this EventExternalResourceInfo. # noqa: E501 - - A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. # noqa: E501 - - :return: The index of this EventExternalResourceInfo. # noqa: E501 - :rtype: int - """ - return self._index - - @index.setter - def index(self, index): - """Sets the index of this EventExternalResourceInfo. - - A unique index for the external resource with respect to all external resources for this task. Although the identifier may change between task reporting events or retries, this will remain the same to enable aggregating information from multiple reports. # noqa: E501 - - :param index: The index of this EventExternalResourceInfo. # noqa: E501 - :type: int - """ - - self._index = index - - @property - def retry_attempt(self): - """Gets the retry_attempt of this EventExternalResourceInfo. # noqa: E501 - - - :return: The retry_attempt of this EventExternalResourceInfo. # noqa: E501 - :rtype: int - """ - return self._retry_attempt - - @retry_attempt.setter - def retry_attempt(self, retry_attempt): - """Sets the retry_attempt of this EventExternalResourceInfo. - - - :param retry_attempt: The retry_attempt of this EventExternalResourceInfo. # noqa: E501 - :type: int - """ - - self._retry_attempt = retry_attempt - - @property - def phase(self): - """Gets the phase of this EventExternalResourceInfo. # noqa: E501 - - - :return: The phase of this EventExternalResourceInfo. # noqa: E501 - :rtype: CoreTaskExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this EventExternalResourceInfo. - - - :param phase: The phase of this EventExternalResourceInfo. # noqa: E501 - :type: CoreTaskExecutionPhase - """ - - self._phase = phase - - @property - def cache_status(self): - """Gets the cache_status of this EventExternalResourceInfo. # noqa: E501 - - Captures the status of caching for this external resource execution. # noqa: E501 - - :return: The cache_status of this EventExternalResourceInfo. # noqa: E501 - :rtype: CoreCatalogCacheStatus - """ - return self._cache_status - - @cache_status.setter - def cache_status(self, cache_status): - """Sets the cache_status of this EventExternalResourceInfo. - - Captures the status of caching for this external resource execution. # noqa: E501 - - :param cache_status: The cache_status of this EventExternalResourceInfo. # noqa: E501 - :type: CoreCatalogCacheStatus - """ - - self._cache_status = cache_status - - @property - def logs(self): - """Gets the logs of this EventExternalResourceInfo. # noqa: E501 - - - :return: The logs of this EventExternalResourceInfo. # noqa: E501 - :rtype: list[CoreTaskLog] - """ - return self._logs - - @logs.setter - def logs(self, logs): - """Sets the logs of this EventExternalResourceInfo. - - - :param logs: The logs of this EventExternalResourceInfo. # noqa: E501 - :type: list[CoreTaskLog] - """ - - self._logs = logs - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventExternalResourceInfo, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventExternalResourceInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py deleted file mode 100644 index f87d0f78be..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_node_execution_event.py +++ /dev/null @@ -1,690 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: F401,E501 -from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata # noqa: F401,E501 -from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: F401,E501 - - -class EventNodeExecutionEvent(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreNodeExecutionIdentifier', - 'producer_id': 'str', - 'phase': 'CoreNodeExecutionPhase', - 'occurred_at': 'datetime', - 'input_uri': 'str', - 'input_data': 'CoreLiteralMap', - 'output_uri': 'str', - 'error': 'CoreExecutionError', - 'output_data': 'CoreLiteralMap', - 'workflow_node_metadata': 'FlyteidleventWorkflowNodeMetadata', - 'task_node_metadata': 'FlyteidleventTaskNodeMetadata', - 'parent_task_metadata': 'EventParentTaskExecutionMetadata', - 'parent_node_metadata': 'EventParentNodeExecutionMetadata', - 'retry_group': 'str', - 'spec_node_id': 'str', - 'node_name': 'str', - 'event_version': 'int', - 'is_parent': 'bool', - 'is_dynamic': 'bool', - 'deck_uri': 'str', - 'reported_at': 'datetime', - 'is_array': 'bool' - } - - attribute_map = { - 'id': 'id', - 'producer_id': 'producer_id', - 'phase': 'phase', - 'occurred_at': 'occurred_at', - 'input_uri': 'input_uri', - 'input_data': 'input_data', - 'output_uri': 'output_uri', - 'error': 'error', - 'output_data': 'output_data', - 'workflow_node_metadata': 'workflow_node_metadata', - 'task_node_metadata': 'task_node_metadata', - 'parent_task_metadata': 'parent_task_metadata', - 'parent_node_metadata': 'parent_node_metadata', - 'retry_group': 'retry_group', - 'spec_node_id': 'spec_node_id', - 'node_name': 'node_name', - 'event_version': 'event_version', - 'is_parent': 'is_parent', - 'is_dynamic': 'is_dynamic', - 'deck_uri': 'deck_uri', - 'reported_at': 'reported_at', - 'is_array': 'is_array' - } - - def __init__(self, id=None, producer_id=None, phase=None, occurred_at=None, input_uri=None, input_data=None, output_uri=None, error=None, output_data=None, workflow_node_metadata=None, task_node_metadata=None, parent_task_metadata=None, parent_node_metadata=None, retry_group=None, spec_node_id=None, node_name=None, event_version=None, is_parent=None, is_dynamic=None, deck_uri=None, reported_at=None, is_array=None): # noqa: E501 - """EventNodeExecutionEvent - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._producer_id = None - self._phase = None - self._occurred_at = None - self._input_uri = None - self._input_data = None - self._output_uri = None - self._error = None - self._output_data = None - self._workflow_node_metadata = None - self._task_node_metadata = None - self._parent_task_metadata = None - self._parent_node_metadata = None - self._retry_group = None - self._spec_node_id = None - self._node_name = None - self._event_version = None - self._is_parent = None - self._is_dynamic = None - self._deck_uri = None - self._reported_at = None - self._is_array = None - self.discriminator = None - - if id is not None: - self.id = id - if producer_id is not None: - self.producer_id = producer_id - if phase is not None: - self.phase = phase - if occurred_at is not None: - self.occurred_at = occurred_at - if input_uri is not None: - self.input_uri = input_uri - if input_data is not None: - self.input_data = input_data - if output_uri is not None: - self.output_uri = output_uri - if error is not None: - self.error = error - if output_data is not None: - self.output_data = output_data - if workflow_node_metadata is not None: - self.workflow_node_metadata = workflow_node_metadata - if task_node_metadata is not None: - self.task_node_metadata = task_node_metadata - if parent_task_metadata is not None: - self.parent_task_metadata = parent_task_metadata - if parent_node_metadata is not None: - self.parent_node_metadata = parent_node_metadata - if retry_group is not None: - self.retry_group = retry_group - if spec_node_id is not None: - self.spec_node_id = spec_node_id - if node_name is not None: - self.node_name = node_name - if event_version is not None: - self.event_version = event_version - if is_parent is not None: - self.is_parent = is_parent - if is_dynamic is not None: - self.is_dynamic = is_dynamic - if deck_uri is not None: - self.deck_uri = deck_uri - if reported_at is not None: - self.reported_at = reported_at - if is_array is not None: - self.is_array = is_array - - @property - def id(self): - """Gets the id of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The id of this EventNodeExecutionEvent. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this EventNodeExecutionEvent. - - - :param id: The id of this EventNodeExecutionEvent. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._id = id - - @property - def producer_id(self): - """Gets the producer_id of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The producer_id of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._producer_id - - @producer_id.setter - def producer_id(self, producer_id): - """Sets the producer_id of this EventNodeExecutionEvent. - - - :param producer_id: The producer_id of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._producer_id = producer_id - - @property - def phase(self): - """Gets the phase of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The phase of this EventNodeExecutionEvent. # noqa: E501 - :rtype: CoreNodeExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this EventNodeExecutionEvent. - - - :param phase: The phase of this EventNodeExecutionEvent. # noqa: E501 - :type: CoreNodeExecutionPhase - """ - - self._phase = phase - - @property - def occurred_at(self): - """Gets the occurred_at of this EventNodeExecutionEvent. # noqa: E501 - - This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 - - :return: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this EventNodeExecutionEvent. - - This timestamp represents when the original event occurred, it is generated by the executor of the node. # noqa: E501 - - :param occurred_at: The occurred_at of this EventNodeExecutionEvent. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - @property - def input_uri(self): - """Gets the input_uri of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The input_uri of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._input_uri - - @input_uri.setter - def input_uri(self, input_uri): - """Sets the input_uri of this EventNodeExecutionEvent. - - - :param input_uri: The input_uri of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._input_uri = input_uri - - @property - def input_data(self): - """Gets the input_data of this EventNodeExecutionEvent. # noqa: E501 - - Raw input data consumed by this node execution. # noqa: E501 - - :return: The input_data of this EventNodeExecutionEvent. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._input_data - - @input_data.setter - def input_data(self, input_data): - """Sets the input_data of this EventNodeExecutionEvent. - - Raw input data consumed by this node execution. # noqa: E501 - - :param input_data: The input_data of this EventNodeExecutionEvent. # noqa: E501 - :type: CoreLiteralMap - """ - - self._input_data = input_data - - @property - def output_uri(self): - """Gets the output_uri of this EventNodeExecutionEvent. # noqa: E501 - - URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :return: The output_uri of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._output_uri - - @output_uri.setter - def output_uri(self, output_uri): - """Sets the output_uri of this EventNodeExecutionEvent. - - URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :param output_uri: The output_uri of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._output_uri = output_uri - - @property - def error(self): - """Gets the error of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The error of this EventNodeExecutionEvent. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this EventNodeExecutionEvent. - - - :param error: The error of this EventNodeExecutionEvent. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def output_data(self): - """Gets the output_data of this EventNodeExecutionEvent. # noqa: E501 - - Raw output data produced by this node execution. # noqa: E501 - - :return: The output_data of this EventNodeExecutionEvent. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this EventNodeExecutionEvent. - - Raw output data produced by this node execution. # noqa: E501 - - :param output_data: The output_data of this EventNodeExecutionEvent. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - @property - def workflow_node_metadata(self): - """Gets the workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :rtype: FlyteidleventWorkflowNodeMetadata - """ - return self._workflow_node_metadata - - @workflow_node_metadata.setter - def workflow_node_metadata(self, workflow_node_metadata): - """Sets the workflow_node_metadata of this EventNodeExecutionEvent. - - - :param workflow_node_metadata: The workflow_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :type: FlyteidleventWorkflowNodeMetadata - """ - - self._workflow_node_metadata = workflow_node_metadata - - @property - def task_node_metadata(self): - """Gets the task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :rtype: FlyteidleventTaskNodeMetadata - """ - return self._task_node_metadata - - @task_node_metadata.setter - def task_node_metadata(self, task_node_metadata): - """Sets the task_node_metadata of this EventNodeExecutionEvent. - - - :param task_node_metadata: The task_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :type: FlyteidleventTaskNodeMetadata - """ - - self._task_node_metadata = task_node_metadata - - @property - def parent_task_metadata(self): - """Gets the parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 - - [To be deprecated] Specifies which task (if any) launched this node. # noqa: E501 - - :return: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 - :rtype: EventParentTaskExecutionMetadata - """ - return self._parent_task_metadata - - @parent_task_metadata.setter - def parent_task_metadata(self, parent_task_metadata): - """Sets the parent_task_metadata of this EventNodeExecutionEvent. - - [To be deprecated] Specifies which task (if any) launched this node. # noqa: E501 - - :param parent_task_metadata: The parent_task_metadata of this EventNodeExecutionEvent. # noqa: E501 - :type: EventParentTaskExecutionMetadata - """ - - self._parent_task_metadata = parent_task_metadata - - @property - def parent_node_metadata(self): - """Gets the parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - - Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. # noqa: E501 - - :return: The parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :rtype: EventParentNodeExecutionMetadata - """ - return self._parent_node_metadata - - @parent_node_metadata.setter - def parent_node_metadata(self, parent_node_metadata): - """Sets the parent_node_metadata of this EventNodeExecutionEvent. - - Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. # noqa: E501 - - :param parent_node_metadata: The parent_node_metadata of this EventNodeExecutionEvent. # noqa: E501 - :type: EventParentNodeExecutionMetadata - """ - - self._parent_node_metadata = parent_node_metadata - - @property - def retry_group(self): - """Gets the retry_group of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The retry_group of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._retry_group - - @retry_group.setter - def retry_group(self, retry_group): - """Sets the retry_group of this EventNodeExecutionEvent. - - - :param retry_group: The retry_group of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._retry_group = retry_group - - @property - def spec_node_id(self): - """Gets the spec_node_id of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The spec_node_id of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._spec_node_id - - @spec_node_id.setter - def spec_node_id(self, spec_node_id): - """Sets the spec_node_id of this EventNodeExecutionEvent. - - - :param spec_node_id: The spec_node_id of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._spec_node_id = spec_node_id - - @property - def node_name(self): - """Gets the node_name of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The node_name of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._node_name - - @node_name.setter - def node_name(self, node_name): - """Sets the node_name of this EventNodeExecutionEvent. - - - :param node_name: The node_name of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._node_name = node_name - - @property - def event_version(self): - """Gets the event_version of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The event_version of this EventNodeExecutionEvent. # noqa: E501 - :rtype: int - """ - return self._event_version - - @event_version.setter - def event_version(self, event_version): - """Sets the event_version of this EventNodeExecutionEvent. - - - :param event_version: The event_version of this EventNodeExecutionEvent. # noqa: E501 - :type: int - """ - - self._event_version = event_version - - @property - def is_parent(self): - """Gets the is_parent of this EventNodeExecutionEvent. # noqa: E501 - - Whether this node launched a subworkflow. # noqa: E501 - - :return: The is_parent of this EventNodeExecutionEvent. # noqa: E501 - :rtype: bool - """ - return self._is_parent - - @is_parent.setter - def is_parent(self, is_parent): - """Sets the is_parent of this EventNodeExecutionEvent. - - Whether this node launched a subworkflow. # noqa: E501 - - :param is_parent: The is_parent of this EventNodeExecutionEvent. # noqa: E501 - :type: bool - """ - - self._is_parent = is_parent - - @property - def is_dynamic(self): - """Gets the is_dynamic of this EventNodeExecutionEvent. # noqa: E501 - - Whether this node yielded a dynamic workflow. # noqa: E501 - - :return: The is_dynamic of this EventNodeExecutionEvent. # noqa: E501 - :rtype: bool - """ - return self._is_dynamic - - @is_dynamic.setter - def is_dynamic(self, is_dynamic): - """Sets the is_dynamic of this EventNodeExecutionEvent. - - Whether this node yielded a dynamic workflow. # noqa: E501 - - :param is_dynamic: The is_dynamic of this EventNodeExecutionEvent. # noqa: E501 - :type: bool - """ - - self._is_dynamic = is_dynamic - - @property - def deck_uri(self): - """Gets the deck_uri of this EventNodeExecutionEvent. # noqa: E501 - - - :return: The deck_uri of this EventNodeExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._deck_uri - - @deck_uri.setter - def deck_uri(self, deck_uri): - """Sets the deck_uri of this EventNodeExecutionEvent. - - - :param deck_uri: The deck_uri of this EventNodeExecutionEvent. # noqa: E501 - :type: str - """ - - self._deck_uri = deck_uri - - @property - def reported_at(self): - """Gets the reported_at of this EventNodeExecutionEvent. # noqa: E501 - - This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 - - :return: The reported_at of this EventNodeExecutionEvent. # noqa: E501 - :rtype: datetime - """ - return self._reported_at - - @reported_at.setter - def reported_at(self, reported_at): - """Sets the reported_at of this EventNodeExecutionEvent. - - This timestamp represents the instant when the event was reported by the executing framework. For example, when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when literal inputs are initially copied. The event however will not be sent until after the copy completes. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 - - :param reported_at: The reported_at of this EventNodeExecutionEvent. # noqa: E501 - :type: datetime - """ - - self._reported_at = reported_at - - @property - def is_array(self): - """Gets the is_array of this EventNodeExecutionEvent. # noqa: E501 - - Indicates if this node is an ArrayNode. # noqa: E501 - - :return: The is_array of this EventNodeExecutionEvent. # noqa: E501 - :rtype: bool - """ - return self._is_array - - @is_array.setter - def is_array(self, is_array): - """Sets the is_array of this EventNodeExecutionEvent. - - Indicates if this node is an ArrayNode. # noqa: E501 - - :param is_array: The is_array of this EventNodeExecutionEvent. # noqa: E501 - :type: bool - """ - - self._is_array = is_array - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventNodeExecutionEvent, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventNodeExecutionEvent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py deleted file mode 100644 index 8ca2ec7492..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_node_execution_metadata.py +++ /dev/null @@ -1,115 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class EventParentNodeExecutionMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'node_id': 'str' - } - - attribute_map = { - 'node_id': 'node_id' - } - - def __init__(self, node_id=None): # noqa: E501 - """EventParentNodeExecutionMetadata - a model defined in Swagger""" # noqa: E501 - - self._node_id = None - self.discriminator = None - - if node_id is not None: - self.node_id = node_id - - @property - def node_id(self): - """Gets the node_id of this EventParentNodeExecutionMetadata. # noqa: E501 - - - :return: The node_id of this EventParentNodeExecutionMetadata. # noqa: E501 - :rtype: str - """ - return self._node_id - - @node_id.setter - def node_id(self, node_id): - """Sets the node_id of this EventParentNodeExecutionMetadata. - - - :param node_id: The node_id of this EventParentNodeExecutionMetadata. # noqa: E501 - :type: str - """ - - self._node_id = node_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventParentNodeExecutionMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventParentNodeExecutionMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py deleted file mode 100644 index 9d640fcd1f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_parent_task_execution_metadata.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 - - -class EventParentTaskExecutionMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreTaskExecutionIdentifier' - } - - attribute_map = { - 'id': 'id' - } - - def __init__(self, id=None): # noqa: E501 - """EventParentTaskExecutionMetadata - a model defined in Swagger""" # noqa: E501 - - self._id = None - self.discriminator = None - - if id is not None: - self.id = id - - @property - def id(self): - """Gets the id of this EventParentTaskExecutionMetadata. # noqa: E501 - - - :return: The id of this EventParentTaskExecutionMetadata. # noqa: E501 - :rtype: CoreTaskExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this EventParentTaskExecutionMetadata. - - - :param id: The id of this EventParentTaskExecutionMetadata. # noqa: E501 - :type: CoreTaskExecutionIdentifier - """ - - self._id = id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventParentTaskExecutionMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventParentTaskExecutionMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py deleted file mode 100644 index f15bb90a1a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_resource_pool_info.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class EventResourcePoolInfo(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'allocation_token': 'str', - 'namespace': 'str' - } - - attribute_map = { - 'allocation_token': 'allocation_token', - 'namespace': 'namespace' - } - - def __init__(self, allocation_token=None, namespace=None): # noqa: E501 - """EventResourcePoolInfo - a model defined in Swagger""" # noqa: E501 - - self._allocation_token = None - self._namespace = None - self.discriminator = None - - if allocation_token is not None: - self.allocation_token = allocation_token - if namespace is not None: - self.namespace = namespace - - @property - def allocation_token(self): - """Gets the allocation_token of this EventResourcePoolInfo. # noqa: E501 - - Unique resource ID used to identify this execution when allocating a token. # noqa: E501 - - :return: The allocation_token of this EventResourcePoolInfo. # noqa: E501 - :rtype: str - """ - return self._allocation_token - - @allocation_token.setter - def allocation_token(self, allocation_token): - """Sets the allocation_token of this EventResourcePoolInfo. - - Unique resource ID used to identify this execution when allocating a token. # noqa: E501 - - :param allocation_token: The allocation_token of this EventResourcePoolInfo. # noqa: E501 - :type: str - """ - - self._allocation_token = allocation_token - - @property - def namespace(self): - """Gets the namespace of this EventResourcePoolInfo. # noqa: E501 - - Namespace under which this task execution requested an allocation token. # noqa: E501 - - :return: The namespace of this EventResourcePoolInfo. # noqa: E501 - :rtype: str - """ - return self._namespace - - @namespace.setter - def namespace(self, namespace): - """Sets the namespace of this EventResourcePoolInfo. - - Namespace under which this task execution requested an allocation token. # noqa: E501 - - :param namespace: The namespace of this EventResourcePoolInfo. # noqa: E501 - :type: str - """ - - self._namespace = namespace - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventResourcePoolInfo, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventResourcePoolInfo): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py deleted file mode 100644 index b3ba4e284e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_task_execution_event.py +++ /dev/null @@ -1,647 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: F401,E501 -from flyteadmin.models.core_task_log import CoreTaskLog # noqa: F401,E501 -from flyteadmin.models.event_event_reason import EventEventReason # noqa: F401,E501 -from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class EventTaskExecutionEvent(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'task_id': 'CoreIdentifier', - 'parent_node_execution_id': 'CoreNodeExecutionIdentifier', - 'retry_attempt': 'int', - 'phase': 'CoreTaskExecutionPhase', - 'producer_id': 'str', - 'logs': 'list[CoreTaskLog]', - 'occurred_at': 'datetime', - 'input_uri': 'str', - 'input_data': 'CoreLiteralMap', - 'output_uri': 'str', - 'error': 'CoreExecutionError', - 'output_data': 'CoreLiteralMap', - 'custom_info': 'ProtobufStruct', - 'phase_version': 'int', - 'reason': 'str', - 'reasons': 'list[EventEventReason]', - 'task_type': 'str', - 'metadata': 'FlyteidleventTaskExecutionMetadata', - 'event_version': 'int', - 'reported_at': 'datetime' - } - - attribute_map = { - 'task_id': 'task_id', - 'parent_node_execution_id': 'parent_node_execution_id', - 'retry_attempt': 'retry_attempt', - 'phase': 'phase', - 'producer_id': 'producer_id', - 'logs': 'logs', - 'occurred_at': 'occurred_at', - 'input_uri': 'input_uri', - 'input_data': 'input_data', - 'output_uri': 'output_uri', - 'error': 'error', - 'output_data': 'output_data', - 'custom_info': 'custom_info', - 'phase_version': 'phase_version', - 'reason': 'reason', - 'reasons': 'reasons', - 'task_type': 'task_type', - 'metadata': 'metadata', - 'event_version': 'event_version', - 'reported_at': 'reported_at' - } - - def __init__(self, task_id=None, parent_node_execution_id=None, retry_attempt=None, phase=None, producer_id=None, logs=None, occurred_at=None, input_uri=None, input_data=None, output_uri=None, error=None, output_data=None, custom_info=None, phase_version=None, reason=None, reasons=None, task_type=None, metadata=None, event_version=None, reported_at=None): # noqa: E501 - """EventTaskExecutionEvent - a model defined in Swagger""" # noqa: E501 - - self._task_id = None - self._parent_node_execution_id = None - self._retry_attempt = None - self._phase = None - self._producer_id = None - self._logs = None - self._occurred_at = None - self._input_uri = None - self._input_data = None - self._output_uri = None - self._error = None - self._output_data = None - self._custom_info = None - self._phase_version = None - self._reason = None - self._reasons = None - self._task_type = None - self._metadata = None - self._event_version = None - self._reported_at = None - self.discriminator = None - - if task_id is not None: - self.task_id = task_id - if parent_node_execution_id is not None: - self.parent_node_execution_id = parent_node_execution_id - if retry_attempt is not None: - self.retry_attempt = retry_attempt - if phase is not None: - self.phase = phase - if producer_id is not None: - self.producer_id = producer_id - if logs is not None: - self.logs = logs - if occurred_at is not None: - self.occurred_at = occurred_at - if input_uri is not None: - self.input_uri = input_uri - if input_data is not None: - self.input_data = input_data - if output_uri is not None: - self.output_uri = output_uri - if error is not None: - self.error = error - if output_data is not None: - self.output_data = output_data - if custom_info is not None: - self.custom_info = custom_info - if phase_version is not None: - self.phase_version = phase_version - if reason is not None: - self.reason = reason - if reasons is not None: - self.reasons = reasons - if task_type is not None: - self.task_type = task_type - if metadata is not None: - self.metadata = metadata - if event_version is not None: - self.event_version = event_version - if reported_at is not None: - self.reported_at = reported_at - - @property - def task_id(self): - """Gets the task_id of this EventTaskExecutionEvent. # noqa: E501 - - ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 - - :return: The task_id of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._task_id - - @task_id.setter - def task_id(self, task_id): - """Sets the task_id of this EventTaskExecutionEvent. - - ID of the task. In combination with the retryAttempt this will indicate the task execution uniquely for a given parent node execution. # noqa: E501 - - :param task_id: The task_id of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreIdentifier - """ - - self._task_id = task_id - - @property - def parent_node_execution_id(self): - """Gets the parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._parent_node_execution_id - - @parent_node_execution_id.setter - def parent_node_execution_id(self, parent_node_execution_id): - """Sets the parent_node_execution_id of this EventTaskExecutionEvent. - - - :param parent_node_execution_id: The parent_node_execution_id of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._parent_node_execution_id = parent_node_execution_id - - @property - def retry_attempt(self): - """Gets the retry_attempt of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 - :rtype: int - """ - return self._retry_attempt - - @retry_attempt.setter - def retry_attempt(self, retry_attempt): - """Sets the retry_attempt of this EventTaskExecutionEvent. - - - :param retry_attempt: The retry_attempt of this EventTaskExecutionEvent. # noqa: E501 - :type: int - """ - - self._retry_attempt = retry_attempt - - @property - def phase(self): - """Gets the phase of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The phase of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreTaskExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this EventTaskExecutionEvent. - - - :param phase: The phase of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreTaskExecutionPhase - """ - - self._phase = phase - - @property - def producer_id(self): - """Gets the producer_id of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The producer_id of this EventTaskExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._producer_id - - @producer_id.setter - def producer_id(self, producer_id): - """Sets the producer_id of this EventTaskExecutionEvent. - - - :param producer_id: The producer_id of this EventTaskExecutionEvent. # noqa: E501 - :type: str - """ - - self._producer_id = producer_id - - @property - def logs(self): - """Gets the logs of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The logs of this EventTaskExecutionEvent. # noqa: E501 - :rtype: list[CoreTaskLog] - """ - return self._logs - - @logs.setter - def logs(self, logs): - """Sets the logs of this EventTaskExecutionEvent. - - - :param logs: The logs of this EventTaskExecutionEvent. # noqa: E501 - :type: list[CoreTaskLog] - """ - - self._logs = logs - - @property - def occurred_at(self): - """Gets the occurred_at of this EventTaskExecutionEvent. # noqa: E501 - - This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 - - :return: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this EventTaskExecutionEvent. - - This timestamp represents when the original event occurred, it is generated by the executor of the task. # noqa: E501 - - :param occurred_at: The occurred_at of this EventTaskExecutionEvent. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - @property - def input_uri(self): - """Gets the input_uri of this EventTaskExecutionEvent. # noqa: E501 - - URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :return: The input_uri of this EventTaskExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._input_uri - - @input_uri.setter - def input_uri(self, input_uri): - """Sets the input_uri of this EventTaskExecutionEvent. - - URI of the input file, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :param input_uri: The input_uri of this EventTaskExecutionEvent. # noqa: E501 - :type: str - """ - - self._input_uri = input_uri - - @property - def input_data(self): - """Gets the input_data of this EventTaskExecutionEvent. # noqa: E501 - - Raw input data consumed by this task execution. # noqa: E501 - - :return: The input_data of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._input_data - - @input_data.setter - def input_data(self, input_data): - """Sets the input_data of this EventTaskExecutionEvent. - - Raw input data consumed by this task execution. # noqa: E501 - - :param input_data: The input_data of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreLiteralMap - """ - - self._input_data = input_data - - @property - def output_uri(self): - """Gets the output_uri of this EventTaskExecutionEvent. # noqa: E501 - - URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :return: The output_uri of this EventTaskExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._output_uri - - @output_uri.setter - def output_uri(self, output_uri): - """Sets the output_uri of this EventTaskExecutionEvent. - - URI to the output of the execution, it will be in a format that encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :param output_uri: The output_uri of this EventTaskExecutionEvent. # noqa: E501 - :type: str - """ - - self._output_uri = output_uri - - @property - def error(self): - """Gets the error of this EventTaskExecutionEvent. # noqa: E501 - - - :return: The error of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this EventTaskExecutionEvent. - - - :param error: The error of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def output_data(self): - """Gets the output_data of this EventTaskExecutionEvent. # noqa: E501 - - Raw output data produced by this task execution. # noqa: E501 - - :return: The output_data of this EventTaskExecutionEvent. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this EventTaskExecutionEvent. - - Raw output data produced by this task execution. # noqa: E501 - - :param output_data: The output_data of this EventTaskExecutionEvent. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - @property - def custom_info(self): - """Gets the custom_info of this EventTaskExecutionEvent. # noqa: E501 - - Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 - - :return: The custom_info of this EventTaskExecutionEvent. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._custom_info - - @custom_info.setter - def custom_info(self, custom_info): - """Sets the custom_info of this EventTaskExecutionEvent. - - Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. # noqa: E501 - - :param custom_info: The custom_info of this EventTaskExecutionEvent. # noqa: E501 - :type: ProtobufStruct - """ - - self._custom_info = custom_info - - @property - def phase_version(self): - """Gets the phase_version of this EventTaskExecutionEvent. # noqa: E501 - - Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 - - :return: The phase_version of this EventTaskExecutionEvent. # noqa: E501 - :rtype: int - """ - return self._phase_version - - @phase_version.setter - def phase_version(self, phase_version): - """Sets the phase_version of this EventTaskExecutionEvent. - - Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) that should be recorded regardless of the lack of phase change. The version field should be incremented when metadata changes across the duration of an individual phase. # noqa: E501 - - :param phase_version: The phase_version of this EventTaskExecutionEvent. # noqa: E501 - :type: int - """ - - self._phase_version = phase_version - - @property - def reason(self): - """Gets the reason of this EventTaskExecutionEvent. # noqa: E501 - - An optional explanation for the phase transition. Deprecated: Use reasons instead. # noqa: E501 - - :return: The reason of this EventTaskExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._reason - - @reason.setter - def reason(self, reason): - """Sets the reason of this EventTaskExecutionEvent. - - An optional explanation for the phase transition. Deprecated: Use reasons instead. # noqa: E501 - - :param reason: The reason of this EventTaskExecutionEvent. # noqa: E501 - :type: str - """ - - self._reason = reason - - @property - def reasons(self): - """Gets the reasons of this EventTaskExecutionEvent. # noqa: E501 - - An optional list of explanations for the phase transition. # noqa: E501 - - :return: The reasons of this EventTaskExecutionEvent. # noqa: E501 - :rtype: list[EventEventReason] - """ - return self._reasons - - @reasons.setter - def reasons(self, reasons): - """Sets the reasons of this EventTaskExecutionEvent. - - An optional list of explanations for the phase transition. # noqa: E501 - - :param reasons: The reasons of this EventTaskExecutionEvent. # noqa: E501 - :type: list[EventEventReason] - """ - - self._reasons = reasons - - @property - def task_type(self): - """Gets the task_type of this EventTaskExecutionEvent. # noqa: E501 - - A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. # noqa: E501 - - :return: The task_type of this EventTaskExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._task_type - - @task_type.setter - def task_type(self, task_type): - """Sets the task_type of this EventTaskExecutionEvent. - - A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin this type will be identical, but not all task executions necessarily use pre-registered definitions and this type is useful to render the task in the UI, filter task executions, etc. # noqa: E501 - - :param task_type: The task_type of this EventTaskExecutionEvent. # noqa: E501 - :type: str - """ - - self._task_type = task_type - - @property - def metadata(self): - """Gets the metadata of this EventTaskExecutionEvent. # noqa: E501 - - Metadata around how a task was executed. # noqa: E501 - - :return: The metadata of this EventTaskExecutionEvent. # noqa: E501 - :rtype: FlyteidleventTaskExecutionMetadata - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this EventTaskExecutionEvent. - - Metadata around how a task was executed. # noqa: E501 - - :param metadata: The metadata of this EventTaskExecutionEvent. # noqa: E501 - :type: FlyteidleventTaskExecutionMetadata - """ - - self._metadata = metadata - - @property - def event_version(self): - """Gets the event_version of this EventTaskExecutionEvent. # noqa: E501 - - The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 - - :return: The event_version of this EventTaskExecutionEvent. # noqa: E501 - :rtype: int - """ - return self._event_version - - @event_version.setter - def event_version(self, event_version): - """Sets the event_version of this EventTaskExecutionEvent. - - The event version is used to indicate versioned changes in how data is reported using this proto message. For example, event_verison > 0 means that maps tasks report logs using the TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog in this message. # noqa: E501 - - :param event_version: The event_version of this EventTaskExecutionEvent. # noqa: E501 - :type: int - """ - - self._event_version = event_version - - @property - def reported_at(self): - """Gets the reported_at of this EventTaskExecutionEvent. # noqa: E501 - - This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 - - :return: The reported_at of this EventTaskExecutionEvent. # noqa: E501 - :rtype: datetime - """ - return self._reported_at - - @reported_at.setter - def reported_at(self, reported_at): - """Sets the reported_at of this EventTaskExecutionEvent. - - This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. # noqa: E501 - - :param reported_at: The reported_at of this EventTaskExecutionEvent. # noqa: E501 - :type: datetime - """ - - self._reported_at = reported_at - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventTaskExecutionEvent, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventTaskExecutionEvent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py deleted file mode 100644 index 97331dfbbb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/event_workflow_execution_event.py +++ /dev/null @@ -1,282 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: F401,E501 -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: F401,E501 - - -class EventWorkflowExecutionEvent(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'execution_id': 'CoreWorkflowExecutionIdentifier', - 'producer_id': 'str', - 'phase': 'CoreWorkflowExecutionPhase', - 'occurred_at': 'datetime', - 'output_uri': 'str', - 'error': 'CoreExecutionError', - 'output_data': 'CoreLiteralMap' - } - - attribute_map = { - 'execution_id': 'execution_id', - 'producer_id': 'producer_id', - 'phase': 'phase', - 'occurred_at': 'occurred_at', - 'output_uri': 'output_uri', - 'error': 'error', - 'output_data': 'output_data' - } - - def __init__(self, execution_id=None, producer_id=None, phase=None, occurred_at=None, output_uri=None, error=None, output_data=None): # noqa: E501 - """EventWorkflowExecutionEvent - a model defined in Swagger""" # noqa: E501 - - self._execution_id = None - self._producer_id = None - self._phase = None - self._occurred_at = None - self._output_uri = None - self._error = None - self._output_data = None - self.discriminator = None - - if execution_id is not None: - self.execution_id = execution_id - if producer_id is not None: - self.producer_id = producer_id - if phase is not None: - self.phase = phase - if occurred_at is not None: - self.occurred_at = occurred_at - if output_uri is not None: - self.output_uri = output_uri - if error is not None: - self.error = error - if output_data is not None: - self.output_data = output_data - - @property - def execution_id(self): - """Gets the execution_id of this EventWorkflowExecutionEvent. # noqa: E501 - - - :return: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._execution_id - - @execution_id.setter - def execution_id(self, execution_id): - """Sets the execution_id of this EventWorkflowExecutionEvent. - - - :param execution_id: The execution_id of this EventWorkflowExecutionEvent. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._execution_id = execution_id - - @property - def producer_id(self): - """Gets the producer_id of this EventWorkflowExecutionEvent. # noqa: E501 - - - :return: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._producer_id - - @producer_id.setter - def producer_id(self, producer_id): - """Sets the producer_id of this EventWorkflowExecutionEvent. - - - :param producer_id: The producer_id of this EventWorkflowExecutionEvent. # noqa: E501 - :type: str - """ - - self._producer_id = producer_id - - @property - def phase(self): - """Gets the phase of this EventWorkflowExecutionEvent. # noqa: E501 - - - :return: The phase of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: CoreWorkflowExecutionPhase - """ - return self._phase - - @phase.setter - def phase(self, phase): - """Sets the phase of this EventWorkflowExecutionEvent. - - - :param phase: The phase of this EventWorkflowExecutionEvent. # noqa: E501 - :type: CoreWorkflowExecutionPhase - """ - - self._phase = phase - - @property - def occurred_at(self): - """Gets the occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 - - This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 - - :return: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: datetime - """ - return self._occurred_at - - @occurred_at.setter - def occurred_at(self, occurred_at): - """Sets the occurred_at of this EventWorkflowExecutionEvent. - - This timestamp represents when the original event occurred, it is generated by the executor of the workflow. # noqa: E501 - - :param occurred_at: The occurred_at of this EventWorkflowExecutionEvent. # noqa: E501 - :type: datetime - """ - - self._occurred_at = occurred_at - - @property - def output_uri(self): - """Gets the output_uri of this EventWorkflowExecutionEvent. # noqa: E501 - - URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :return: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: str - """ - return self._output_uri - - @output_uri.setter - def output_uri(self, output_uri): - """Sets the output_uri of this EventWorkflowExecutionEvent. - - URL to the output of the execution, it encodes all the information including Cloud source provider. ie., s3://... # noqa: E501 - - :param output_uri: The output_uri of this EventWorkflowExecutionEvent. # noqa: E501 - :type: str - """ - - self._output_uri = output_uri - - @property - def error(self): - """Gets the error of this EventWorkflowExecutionEvent. # noqa: E501 - - - :return: The error of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: CoreExecutionError - """ - return self._error - - @error.setter - def error(self, error): - """Sets the error of this EventWorkflowExecutionEvent. - - - :param error: The error of this EventWorkflowExecutionEvent. # noqa: E501 - :type: CoreExecutionError - """ - - self._error = error - - @property - def output_data(self): - """Gets the output_data of this EventWorkflowExecutionEvent. # noqa: E501 - - Raw output data produced by this workflow execution. # noqa: E501 - - :return: The output_data of this EventWorkflowExecutionEvent. # noqa: E501 - :rtype: CoreLiteralMap - """ - return self._output_data - - @output_data.setter - def output_data(self, output_data): - """Sets the output_data of this EventWorkflowExecutionEvent. - - Raw output data produced by this workflow execution. # noqa: E501 - - :param output_data: The output_data of this EventWorkflowExecutionEvent. # noqa: E501 - :type: CoreLiteralMap - """ - - self._output_data = output_data - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(EventWorkflowExecutionEvent, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, EventWorkflowExecutionEvent): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py deleted file mode 100644 index 91504474a9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_error_error_kind.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ExecutionErrorErrorKind(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNKNOWN = "UNKNOWN" - USER = "USER" - SYSTEM = "SYSTEM" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ExecutionErrorErrorKind - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ExecutionErrorErrorKind, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExecutionErrorErrorKind): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py deleted file mode 100644 index cca95359f2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/execution_metadata_execution_mode.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ExecutionMetadataExecutionMode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - MANUAL = "MANUAL" - SCHEDULED = "SCHEDULED" - SYSTEM = "SYSTEM" - RELAUNCH = "RELAUNCH" - CHILD_WORKFLOW = "CHILD_WORKFLOW" - RECOVERED = "RECOVERED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ExecutionMetadataExecutionMode - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ExecutionMetadataExecutionMode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ExecutionMetadataExecutionMode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py deleted file mode 100644 index 44dfceb5fc..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_dynamic_workflow_node_metadata.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class FlyteidladminDynamicWorkflowNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'compiled_workflow': 'CoreCompiledWorkflowClosure', - 'dynamic_job_spec_uri': 'str' - } - - attribute_map = { - 'id': 'id', - 'compiled_workflow': 'compiled_workflow', - 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' - } - - def __init__(self, id=None, compiled_workflow=None, dynamic_job_spec_uri=None): # noqa: E501 - """FlyteidladminDynamicWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._compiled_workflow = None - self._dynamic_job_spec_uri = None - self.discriminator = None - - if id is not None: - self.id = id - if compiled_workflow is not None: - self.compiled_workflow = compiled_workflow - if dynamic_job_spec_uri is not None: - self.dynamic_job_spec_uri = dynamic_job_spec_uri - - @property - def id(self): - """Gets the id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - - id represents the unique identifier of the workflow. # noqa: E501 - - :return: The id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FlyteidladminDynamicWorkflowNodeMetadata. - - id represents the unique identifier of the workflow. # noqa: E501 - - :param id: The id of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def compiled_workflow(self): - """Gets the compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - - Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 - - :return: The compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreCompiledWorkflowClosure - """ - return self._compiled_workflow - - @compiled_workflow.setter - def compiled_workflow(self, compiled_workflow): - """Sets the compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. - - Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 - - :param compiled_workflow: The compiled_workflow of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :type: CoreCompiledWorkflowClosure - """ - - self._compiled_workflow = compiled_workflow - - @property - def dynamic_job_spec_uri(self): - """Gets the dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 - - :return: The dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._dynamic_job_spec_uri - - @dynamic_job_spec_uri.setter - def dynamic_job_spec_uri(self, dynamic_job_spec_uri): - """Sets the dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the subworkflow has already been compiled. # noqa: E501 - - :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this FlyteidladminDynamicWorkflowNodeMetadata. # noqa: E501 - :type: str - """ - - self._dynamic_job_spec_uri = dynamic_job_spec_uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminDynamicWorkflowNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminDynamicWorkflowNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py deleted file mode 100644 index f1c1d0cb72..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_node_execution.py +++ /dev/null @@ -1,203 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: F401,E501 -from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData # noqa: F401,E501 -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: F401,E501 - - -class FlyteidladminNodeExecution(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreNodeExecutionIdentifier', - 'input_uri': 'str', - 'closure': 'AdminNodeExecutionClosure', - 'metadata': 'AdminNodeExecutionMetaData' - } - - attribute_map = { - 'id': 'id', - 'input_uri': 'input_uri', - 'closure': 'closure', - 'metadata': 'metadata' - } - - def __init__(self, id=None, input_uri=None, closure=None, metadata=None): # noqa: E501 - """FlyteidladminNodeExecution - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._input_uri = None - self._closure = None - self._metadata = None - self.discriminator = None - - if id is not None: - self.id = id - if input_uri is not None: - self.input_uri = input_uri - if closure is not None: - self.closure = closure - if metadata is not None: - self.metadata = metadata - - @property - def id(self): - """Gets the id of this FlyteidladminNodeExecution. # noqa: E501 - - Uniquely identifies an individual node execution. # noqa: E501 - - :return: The id of this FlyteidladminNodeExecution. # noqa: E501 - :rtype: CoreNodeExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FlyteidladminNodeExecution. - - Uniquely identifies an individual node execution. # noqa: E501 - - :param id: The id of this FlyteidladminNodeExecution. # noqa: E501 - :type: CoreNodeExecutionIdentifier - """ - - self._id = id - - @property - def input_uri(self): - """Gets the input_uri of this FlyteidladminNodeExecution. # noqa: E501 - - Path to remote data store where input blob is stored. # noqa: E501 - - :return: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 - :rtype: str - """ - return self._input_uri - - @input_uri.setter - def input_uri(self, input_uri): - """Sets the input_uri of this FlyteidladminNodeExecution. - - Path to remote data store where input blob is stored. # noqa: E501 - - :param input_uri: The input_uri of this FlyteidladminNodeExecution. # noqa: E501 - :type: str - """ - - self._input_uri = input_uri - - @property - def closure(self): - """Gets the closure of this FlyteidladminNodeExecution. # noqa: E501 - - Computed results associated with this node execution. # noqa: E501 - - :return: The closure of this FlyteidladminNodeExecution. # noqa: E501 - :rtype: AdminNodeExecutionClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this FlyteidladminNodeExecution. - - Computed results associated with this node execution. # noqa: E501 - - :param closure: The closure of this FlyteidladminNodeExecution. # noqa: E501 - :type: AdminNodeExecutionClosure - """ - - self._closure = closure - - @property - def metadata(self): - """Gets the metadata of this FlyteidladminNodeExecution. # noqa: E501 - - - :return: The metadata of this FlyteidladminNodeExecution. # noqa: E501 - :rtype: AdminNodeExecutionMetaData - """ - return self._metadata - - @metadata.setter - def metadata(self, metadata): - """Sets the metadata of this FlyteidladminNodeExecution. - - - :param metadata: The metadata of this FlyteidladminNodeExecution. # noqa: E501 - :type: AdminNodeExecutionMetaData - """ - - self._metadata = metadata - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminNodeExecution, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminNodeExecution): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py deleted file mode 100644 index 4fa700a481..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_request.py +++ /dev/null @@ -1,144 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class FlyteidladminTaskCreateRequest(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'spec': 'AdminTaskSpec' - } - - attribute_map = { - 'id': 'id', - 'spec': 'spec' - } - - def __init__(self, id=None, spec=None): # noqa: E501 - """FlyteidladminTaskCreateRequest - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._spec = None - self.discriminator = None - - if id is not None: - self.id = id - if spec is not None: - self.spec = spec - - @property - def id(self): - """Gets the id of this FlyteidladminTaskCreateRequest. # noqa: E501 - - - :return: The id of this FlyteidladminTaskCreateRequest. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FlyteidladminTaskCreateRequest. - - - :param id: The id of this FlyteidladminTaskCreateRequest. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def spec(self): - """Gets the spec of this FlyteidladminTaskCreateRequest. # noqa: E501 - - - :return: The spec of this FlyteidladminTaskCreateRequest. # noqa: E501 - :rtype: AdminTaskSpec - """ - return self._spec - - @spec.setter - def spec(self, spec): - """Sets the spec of this FlyteidladminTaskCreateRequest. - - - :param spec: The spec of this FlyteidladminTaskCreateRequest. # noqa: E501 - :type: AdminTaskSpec - """ - - self._spec = spec - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminTaskCreateRequest, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminTaskCreateRequest): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py deleted file mode 100644 index 00389aca08..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_create_response.py +++ /dev/null @@ -1,87 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class FlyteidladminTaskCreateResponse(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """FlyteidladminTaskCreateResponse - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminTaskCreateResponse, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminTaskCreateResponse): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py deleted file mode 100644 index bbb30485c7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_execution.py +++ /dev/null @@ -1,204 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: F401,E501 -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: F401,E501 - - -class FlyteidladminTaskExecution(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreTaskExecutionIdentifier', - 'input_uri': 'str', - 'closure': 'AdminTaskExecutionClosure', - 'is_parent': 'bool' - } - - attribute_map = { - 'id': 'id', - 'input_uri': 'input_uri', - 'closure': 'closure', - 'is_parent': 'is_parent' - } - - def __init__(self, id=None, input_uri=None, closure=None, is_parent=None): # noqa: E501 - """FlyteidladminTaskExecution - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._input_uri = None - self._closure = None - self._is_parent = None - self.discriminator = None - - if id is not None: - self.id = id - if input_uri is not None: - self.input_uri = input_uri - if closure is not None: - self.closure = closure - if is_parent is not None: - self.is_parent = is_parent - - @property - def id(self): - """Gets the id of this FlyteidladminTaskExecution. # noqa: E501 - - Unique identifier for the task execution. # noqa: E501 - - :return: The id of this FlyteidladminTaskExecution. # noqa: E501 - :rtype: CoreTaskExecutionIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FlyteidladminTaskExecution. - - Unique identifier for the task execution. # noqa: E501 - - :param id: The id of this FlyteidladminTaskExecution. # noqa: E501 - :type: CoreTaskExecutionIdentifier - """ - - self._id = id - - @property - def input_uri(self): - """Gets the input_uri of this FlyteidladminTaskExecution. # noqa: E501 - - Path to remote data store where input blob is stored. # noqa: E501 - - :return: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 - :rtype: str - """ - return self._input_uri - - @input_uri.setter - def input_uri(self, input_uri): - """Sets the input_uri of this FlyteidladminTaskExecution. - - Path to remote data store where input blob is stored. # noqa: E501 - - :param input_uri: The input_uri of this FlyteidladminTaskExecution. # noqa: E501 - :type: str - """ - - self._input_uri = input_uri - - @property - def closure(self): - """Gets the closure of this FlyteidladminTaskExecution. # noqa: E501 - - Task execution details and results. # noqa: E501 - - :return: The closure of this FlyteidladminTaskExecution. # noqa: E501 - :rtype: AdminTaskExecutionClosure - """ - return self._closure - - @closure.setter - def closure(self, closure): - """Sets the closure of this FlyteidladminTaskExecution. - - Task execution details and results. # noqa: E501 - - :param closure: The closure of this FlyteidladminTaskExecution. # noqa: E501 - :type: AdminTaskExecutionClosure - """ - - self._closure = closure - - @property - def is_parent(self): - """Gets the is_parent of this FlyteidladminTaskExecution. # noqa: E501 - - Whether this task spawned nodes. # noqa: E501 - - :return: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 - :rtype: bool - """ - return self._is_parent - - @is_parent.setter - def is_parent(self, is_parent): - """Sets the is_parent of this FlyteidladminTaskExecution. - - Whether this task spawned nodes. # noqa: E501 - - :param is_parent: The is_parent of this FlyteidladminTaskExecution. # noqa: E501 - :type: bool - """ - - self._is_parent = is_parent - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminTaskExecution, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminTaskExecution): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py deleted file mode 100644 index aa6a447467..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_task_node_metadata.py +++ /dev/null @@ -1,172 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 -from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: F401,E501 - - -class FlyteidladminTaskNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cache_status': 'CoreCatalogCacheStatus', - 'catalog_key': 'CoreCatalogMetadata', - 'checkpoint_uri': 'str' - } - - attribute_map = { - 'cache_status': 'cache_status', - 'catalog_key': 'catalog_key', - 'checkpoint_uri': 'checkpoint_uri' - } - - def __init__(self, cache_status=None, catalog_key=None, checkpoint_uri=None): # noqa: E501 - """FlyteidladminTaskNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._cache_status = None - self._catalog_key = None - self._checkpoint_uri = None - self.discriminator = None - - if cache_status is not None: - self.cache_status = cache_status - if catalog_key is not None: - self.catalog_key = catalog_key - if checkpoint_uri is not None: - self.checkpoint_uri = checkpoint_uri - - @property - def cache_status(self): - """Gets the cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 - - Captures the status of caching for this execution. # noqa: E501 - - :return: The cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :rtype: CoreCatalogCacheStatus - """ - return self._cache_status - - @cache_status.setter - def cache_status(self, cache_status): - """Sets the cache_status of this FlyteidladminTaskNodeMetadata. - - Captures the status of caching for this execution. # noqa: E501 - - :param cache_status: The cache_status of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :type: CoreCatalogCacheStatus - """ - - self._cache_status = cache_status - - @property - def catalog_key(self): - """Gets the catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 - - - :return: The catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :rtype: CoreCatalogMetadata - """ - return self._catalog_key - - @catalog_key.setter - def catalog_key(self, catalog_key): - """Sets the catalog_key of this FlyteidladminTaskNodeMetadata. - - - :param catalog_key: The catalog_key of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :type: CoreCatalogMetadata - """ - - self._catalog_key = catalog_key - - @property - def checkpoint_uri(self): - """Gets the checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 - - - :return: The checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._checkpoint_uri - - @checkpoint_uri.setter - def checkpoint_uri(self, checkpoint_uri): - """Sets the checkpoint_uri of this FlyteidladminTaskNodeMetadata. - - - :param checkpoint_uri: The checkpoint_uri of this FlyteidladminTaskNodeMetadata. # noqa: E501 - :type: str - """ - - self._checkpoint_uri = checkpoint_uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminTaskNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminTaskNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py deleted file mode 100644 index fccdeee5b8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidladmin_workflow_node_metadata.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class FlyteidladminWorkflowNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'execution_id': 'CoreWorkflowExecutionIdentifier' - } - - attribute_map = { - 'execution_id': 'executionId' - } - - def __init__(self, execution_id=None): # noqa: E501 - """FlyteidladminWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._execution_id = None - self.discriminator = None - - if execution_id is not None: - self.execution_id = execution_id - - @property - def execution_id(self): - """Gets the execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 - - The identifier for a workflow execution launched by a node. # noqa: E501 - - :return: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._execution_id - - @execution_id.setter - def execution_id(self, execution_id): - """Sets the execution_id of this FlyteidladminWorkflowNodeMetadata. - - The identifier for a workflow execution launched by a node. # noqa: E501 - - :param execution_id: The execution_id of this FlyteidladminWorkflowNodeMetadata. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._execution_id = execution_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidladminWorkflowNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidladminWorkflowNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py deleted file mode 100644 index fbba35e3fe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_dynamic_workflow_node_metadata.py +++ /dev/null @@ -1,176 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: F401,E501 -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: F401,E501 - - -class FlyteidleventDynamicWorkflowNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'CoreIdentifier', - 'compiled_workflow': 'CoreCompiledWorkflowClosure', - 'dynamic_job_spec_uri': 'str' - } - - attribute_map = { - 'id': 'id', - 'compiled_workflow': 'compiled_workflow', - 'dynamic_job_spec_uri': 'dynamic_job_spec_uri' - } - - def __init__(self, id=None, compiled_workflow=None, dynamic_job_spec_uri=None): # noqa: E501 - """FlyteidleventDynamicWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._id = None - self._compiled_workflow = None - self._dynamic_job_spec_uri = None - self.discriminator = None - - if id is not None: - self.id = id - if compiled_workflow is not None: - self.compiled_workflow = compiled_workflow - if dynamic_job_spec_uri is not None: - self.dynamic_job_spec_uri = dynamic_job_spec_uri - - @property - def id(self): - """Gets the id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - - id represents the unique identifier of the workflow. # noqa: E501 - - :return: The id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreIdentifier - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FlyteidleventDynamicWorkflowNodeMetadata. - - id represents the unique identifier of the workflow. # noqa: E501 - - :param id: The id of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :type: CoreIdentifier - """ - - self._id = id - - @property - def compiled_workflow(self): - """Gets the compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - - Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 - - :return: The compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreCompiledWorkflowClosure - """ - return self._compiled_workflow - - @compiled_workflow.setter - def compiled_workflow(self, compiled_workflow): - """Sets the compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. - - Represents the compiled representation of the embedded dynamic workflow. # noqa: E501 - - :param compiled_workflow: The compiled_workflow of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :type: CoreCompiledWorkflowClosure - """ - - self._compiled_workflow = compiled_workflow - - @property - def dynamic_job_spec_uri(self): - """Gets the dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. # noqa: E501 - - :return: The dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._dynamic_job_spec_uri - - @dynamic_job_spec_uri.setter - def dynamic_job_spec_uri(self, dynamic_job_spec_uri): - """Sets the dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. - - dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is required to correctly recover partially completed executions where the workflow has already been compiled. # noqa: E501 - - :param dynamic_job_spec_uri: The dynamic_job_spec_uri of this FlyteidleventDynamicWorkflowNodeMetadata. # noqa: E501 - :type: str - """ - - self._dynamic_job_spec_uri = dynamic_job_spec_uri - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidleventDynamicWorkflowNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidleventDynamicWorkflowNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py deleted file mode 100644 index 302bc9cfcc..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_execution_metadata.py +++ /dev/null @@ -1,231 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo # noqa: F401,E501 -from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo # noqa: F401,E501 -from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass # noqa: F401,E501 - - -class FlyteidleventTaskExecutionMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'generated_name': 'str', - 'external_resources': 'list[EventExternalResourceInfo]', - 'resource_pool_info': 'list[EventResourcePoolInfo]', - 'plugin_identifier': 'str', - 'instance_class': 'TaskExecutionMetadataInstanceClass' - } - - attribute_map = { - 'generated_name': 'generated_name', - 'external_resources': 'external_resources', - 'resource_pool_info': 'resource_pool_info', - 'plugin_identifier': 'plugin_identifier', - 'instance_class': 'instance_class' - } - - def __init__(self, generated_name=None, external_resources=None, resource_pool_info=None, plugin_identifier=None, instance_class=None): # noqa: E501 - """FlyteidleventTaskExecutionMetadata - a model defined in Swagger""" # noqa: E501 - - self._generated_name = None - self._external_resources = None - self._resource_pool_info = None - self._plugin_identifier = None - self._instance_class = None - self.discriminator = None - - if generated_name is not None: - self.generated_name = generated_name - if external_resources is not None: - self.external_resources = external_resources - if resource_pool_info is not None: - self.resource_pool_info = resource_pool_info - if plugin_identifier is not None: - self.plugin_identifier = plugin_identifier - if instance_class is not None: - self.instance_class = instance_class - - @property - def generated_name(self): - """Gets the generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - - Unique, generated name for this task execution used by the backend. # noqa: E501 - - :return: The generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :rtype: str - """ - return self._generated_name - - @generated_name.setter - def generated_name(self, generated_name): - """Sets the generated_name of this FlyteidleventTaskExecutionMetadata. - - Unique, generated name for this task execution used by the backend. # noqa: E501 - - :param generated_name: The generated_name of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :type: str - """ - - self._generated_name = generated_name - - @property - def external_resources(self): - """Gets the external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - - Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. # noqa: E501 - - :return: The external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :rtype: list[EventExternalResourceInfo] - """ - return self._external_resources - - @external_resources.setter - def external_resources(self, external_resources): - """Sets the external_resources of this FlyteidleventTaskExecutionMetadata. - - Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. # noqa: E501 - - :param external_resources: The external_resources of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :type: list[EventExternalResourceInfo] - """ - - self._external_resources = external_resources - - @property - def resource_pool_info(self): - """Gets the resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - - Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. # noqa: E501 - - :return: The resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :rtype: list[EventResourcePoolInfo] - """ - return self._resource_pool_info - - @resource_pool_info.setter - def resource_pool_info(self, resource_pool_info): - """Sets the resource_pool_info of this FlyteidleventTaskExecutionMetadata. - - Includes additional data on concurrent resource management used during execution.. This is a repeated field because a plugin can request multiple resource allocations during execution. # noqa: E501 - - :param resource_pool_info: The resource_pool_info of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :type: list[EventResourcePoolInfo] - """ - - self._resource_pool_info = resource_pool_info - - @property - def plugin_identifier(self): - """Gets the plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - - The identifier of the plugin used to execute this task. # noqa: E501 - - :return: The plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :rtype: str - """ - return self._plugin_identifier - - @plugin_identifier.setter - def plugin_identifier(self, plugin_identifier): - """Sets the plugin_identifier of this FlyteidleventTaskExecutionMetadata. - - The identifier of the plugin used to execute this task. # noqa: E501 - - :param plugin_identifier: The plugin_identifier of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :type: str - """ - - self._plugin_identifier = plugin_identifier - - @property - def instance_class(self): - """Gets the instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - - - :return: The instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :rtype: TaskExecutionMetadataInstanceClass - """ - return self._instance_class - - @instance_class.setter - def instance_class(self, instance_class): - """Sets the instance_class of this FlyteidleventTaskExecutionMetadata. - - - :param instance_class: The instance_class of this FlyteidleventTaskExecutionMetadata. # noqa: E501 - :type: TaskExecutionMetadataInstanceClass - """ - - self._instance_class = instance_class - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidleventTaskExecutionMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidleventTaskExecutionMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py deleted file mode 100644 index 2f5787964f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_task_node_metadata.py +++ /dev/null @@ -1,230 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus # noqa: F401,E501 -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: F401,E501 -from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: F401,E501 -from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata # noqa: F401,E501 - - -class FlyteidleventTaskNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'cache_status': 'CoreCatalogCacheStatus', - 'catalog_key': 'CoreCatalogMetadata', - 'reservation_status': 'CatalogReservationStatus', - 'checkpoint_uri': 'str', - 'dynamic_workflow': 'FlyteidleventDynamicWorkflowNodeMetadata' - } - - attribute_map = { - 'cache_status': 'cache_status', - 'catalog_key': 'catalog_key', - 'reservation_status': 'reservation_status', - 'checkpoint_uri': 'checkpoint_uri', - 'dynamic_workflow': 'dynamic_workflow' - } - - def __init__(self, cache_status=None, catalog_key=None, reservation_status=None, checkpoint_uri=None, dynamic_workflow=None): # noqa: E501 - """FlyteidleventTaskNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._cache_status = None - self._catalog_key = None - self._reservation_status = None - self._checkpoint_uri = None - self._dynamic_workflow = None - self.discriminator = None - - if cache_status is not None: - self.cache_status = cache_status - if catalog_key is not None: - self.catalog_key = catalog_key - if reservation_status is not None: - self.reservation_status = reservation_status - if checkpoint_uri is not None: - self.checkpoint_uri = checkpoint_uri - if dynamic_workflow is not None: - self.dynamic_workflow = dynamic_workflow - - @property - def cache_status(self): - """Gets the cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - - Captures the status of caching for this execution. # noqa: E501 - - :return: The cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :rtype: CoreCatalogCacheStatus - """ - return self._cache_status - - @cache_status.setter - def cache_status(self, cache_status): - """Sets the cache_status of this FlyteidleventTaskNodeMetadata. - - Captures the status of caching for this execution. # noqa: E501 - - :param cache_status: The cache_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :type: CoreCatalogCacheStatus - """ - - self._cache_status = cache_status - - @property - def catalog_key(self): - """Gets the catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 - - - :return: The catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :rtype: CoreCatalogMetadata - """ - return self._catalog_key - - @catalog_key.setter - def catalog_key(self, catalog_key): - """Sets the catalog_key of this FlyteidleventTaskNodeMetadata. - - - :param catalog_key: The catalog_key of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :type: CoreCatalogMetadata - """ - - self._catalog_key = catalog_key - - @property - def reservation_status(self): - """Gets the reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - - Captures the status of cache reservations for this execution. # noqa: E501 - - :return: The reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :rtype: CatalogReservationStatus - """ - return self._reservation_status - - @reservation_status.setter - def reservation_status(self, reservation_status): - """Sets the reservation_status of this FlyteidleventTaskNodeMetadata. - - Captures the status of cache reservations for this execution. # noqa: E501 - - :param reservation_status: The reservation_status of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :type: CatalogReservationStatus - """ - - self._reservation_status = reservation_status - - @property - def checkpoint_uri(self): - """Gets the checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 - - - :return: The checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :rtype: str - """ - return self._checkpoint_uri - - @checkpoint_uri.setter - def checkpoint_uri(self, checkpoint_uri): - """Sets the checkpoint_uri of this FlyteidleventTaskNodeMetadata. - - - :param checkpoint_uri: The checkpoint_uri of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :type: str - """ - - self._checkpoint_uri = checkpoint_uri - - @property - def dynamic_workflow(self): - """Gets the dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 - - In the case this task launched a dynamic workflow we capture its structure here. # noqa: E501 - - :return: The dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :rtype: FlyteidleventDynamicWorkflowNodeMetadata - """ - return self._dynamic_workflow - - @dynamic_workflow.setter - def dynamic_workflow(self, dynamic_workflow): - """Sets the dynamic_workflow of this FlyteidleventTaskNodeMetadata. - - In the case this task launched a dynamic workflow we capture its structure here. # noqa: E501 - - :param dynamic_workflow: The dynamic_workflow of this FlyteidleventTaskNodeMetadata. # noqa: E501 - :type: FlyteidleventDynamicWorkflowNodeMetadata - """ - - self._dynamic_workflow = dynamic_workflow - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidleventTaskNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidleventTaskNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py deleted file mode 100644 index 0492d7c68c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/flyteidlevent_workflow_node_metadata.py +++ /dev/null @@ -1,117 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: F401,E501 - - -class FlyteidleventWorkflowNodeMetadata(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'execution_id': 'CoreWorkflowExecutionIdentifier' - } - - attribute_map = { - 'execution_id': 'execution_id' - } - - def __init__(self, execution_id=None): # noqa: E501 - """FlyteidleventWorkflowNodeMetadata - a model defined in Swagger""" # noqa: E501 - - self._execution_id = None - self.discriminator = None - - if execution_id is not None: - self.execution_id = execution_id - - @property - def execution_id(self): - """Gets the execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 - - - :return: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 - :rtype: CoreWorkflowExecutionIdentifier - """ - return self._execution_id - - @execution_id.setter - def execution_id(self, execution_id): - """Sets the execution_id of this FlyteidleventWorkflowNodeMetadata. - - - :param execution_id: The execution_id of this FlyteidleventWorkflowNodeMetadata. # noqa: E501 - :type: CoreWorkflowExecutionIdentifier - """ - - self._execution_id = execution_id - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(FlyteidleventWorkflowNodeMetadata, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, FlyteidleventWorkflowNodeMetadata): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py deleted file mode 100644 index 6210f026ef..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_download_mode.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class IOStrategyDownloadMode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DOWNLOAD_EAGER = "DOWNLOAD_EAGER" - DOWNLOAD_STREAM = "DOWNLOAD_STREAM" - DO_NOT_DOWNLOAD = "DO_NOT_DOWNLOAD" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """IOStrategyDownloadMode - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IOStrategyDownloadMode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IOStrategyDownloadMode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py deleted file mode 100644 index 95cfe6e357..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/io_strategy_upload_mode.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class IOStrategyUploadMode(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UPLOAD_ON_EXIT = "UPLOAD_ON_EXIT" - UPLOAD_EAGER = "UPLOAD_EAGER" - DO_NOT_UPLOAD = "DO_NOT_UPLOAD" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """IOStrategyUploadMode - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(IOStrategyUploadMode, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, IOStrategyUploadMode): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py deleted file mode 100644 index cccdae26bf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/plugin_override_missing_plugin_behavior.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class PluginOverrideMissingPluginBehavior(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - FAIL = "FAIL" - USE_DEFAULT = "USE_DEFAULT" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """PluginOverrideMissingPluginBehavior - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(PluginOverrideMissingPluginBehavior, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, PluginOverrideMissingPluginBehavior): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py deleted file mode 100644 index e134025986..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/project_project_state.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ProjectProjectState(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - ACTIVE = "ACTIVE" - ARCHIVED = "ARCHIVED" - SYSTEM_GENERATED = "SYSTEM_GENERATED" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ProjectProjectState - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProjectProjectState, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProjectProjectState): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_any.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_any.py deleted file mode 100644 index ef1317d099..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_any.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ProtobufAny(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'type_url': 'str', - 'value': 'str' - } - - attribute_map = { - 'type_url': 'type_url', - 'value': 'value' - } - - def __init__(self, type_url=None, value=None): # noqa: E501 - """ProtobufAny - a model defined in Swagger""" # noqa: E501 - - self._type_url = None - self._value = None - self.discriminator = None - - if type_url is not None: - self.type_url = type_url - if value is not None: - self.value = value - - @property - def type_url(self): - """Gets the type_url of this ProtobufAny. # noqa: E501 - - A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. # noqa: E501 - - :return: The type_url of this ProtobufAny. # noqa: E501 - :rtype: str - """ - return self._type_url - - @type_url.setter - def type_url(self, type_url): - """Sets the type_url of this ProtobufAny. - - A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL's path must represent the fully qualified name of the type (as in `path/google.protobuf.Duration`). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme `http`, `https`, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, `https` is assumed. * An HTTP GET on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. Schemes other than `http`, `https` (or the empty scheme) might be used with implementation specific semantics. # noqa: E501 - - :param type_url: The type_url of this ProtobufAny. # noqa: E501 - :type: str - """ - - self._type_url = type_url - - @property - def value(self): - """Gets the value of this ProtobufAny. # noqa: E501 - - Must be a valid serialized protocol buffer of the above specified type. # noqa: E501 - - :return: The value of this ProtobufAny. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ProtobufAny. - - Must be a valid serialized protocol buffer of the above specified type. # noqa: E501 - - :param value: The value of this ProtobufAny. # noqa: E501 - :type: str - """ - if value is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', value): # noqa: E501 - raise ValueError(r"Invalid value for `value`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501 - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProtobufAny, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProtobufAny): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py deleted file mode 100644 index 2d75531ff7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_list_value.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 - - -class ProtobufListValue(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'values': 'list[ProtobufValue]' - } - - attribute_map = { - 'values': 'values' - } - - def __init__(self, values=None): # noqa: E501 - """ProtobufListValue - a model defined in Swagger""" # noqa: E501 - - self._values = None - self.discriminator = None - - if values is not None: - self.values = values - - @property - def values(self): - """Gets the values of this ProtobufListValue. # noqa: E501 - - Repeated field of dynamically typed values. # noqa: E501 - - :return: The values of this ProtobufListValue. # noqa: E501 - :rtype: list[ProtobufValue] - """ - return self._values - - @values.setter - def values(self, values): - """Sets the values of this ProtobufListValue. - - Repeated field of dynamically typed values. # noqa: E501 - - :param values: The values of this ProtobufListValue. # noqa: E501 - :type: list[ProtobufValue] - """ - - self._values = values - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProtobufListValue, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProtobufListValue): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py deleted file mode 100644 index 87d63153de..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_null_value.py +++ /dev/null @@ -1,92 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ProtobufNullValue(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - NULL_VALUE = "NULL_VALUE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ProtobufNullValue - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProtobufNullValue, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProtobufNullValue): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py deleted file mode 100644 index ff81a5b69d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_struct.py +++ /dev/null @@ -1,119 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.protobuf_value import ProtobufValue # noqa: F401,E501 - - -class ProtobufStruct(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'fields': 'dict(str, ProtobufValue)' - } - - attribute_map = { - 'fields': 'fields' - } - - def __init__(self, fields=None): # noqa: E501 - """ProtobufStruct - a model defined in Swagger""" # noqa: E501 - - self._fields = None - self.discriminator = None - - if fields is not None: - self.fields = fields - - @property - def fields(self): - """Gets the fields of this ProtobufStruct. # noqa: E501 - - Unordered map of dynamically typed values. # noqa: E501 - - :return: The fields of this ProtobufStruct. # noqa: E501 - :rtype: dict(str, ProtobufValue) - """ - return self._fields - - @fields.setter - def fields(self, fields): - """Sets the fields of this ProtobufStruct. - - Unordered map of dynamically typed values. # noqa: E501 - - :param fields: The fields of this ProtobufStruct. # noqa: E501 - :type: dict(str, ProtobufValue) - """ - - self._fields = fields - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProtobufStruct, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProtobufStruct): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py deleted file mode 100644 index 8e2dc6fdac..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/protobuf_value.py +++ /dev/null @@ -1,261 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: F401,E501 -from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: F401,E501 -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: F401,E501 - - -class ProtobufValue(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'null_value': 'ProtobufNullValue', - 'number_value': 'float', - 'string_value': 'str', - 'bool_value': 'bool', - 'struct_value': 'ProtobufStruct', - 'list_value': 'ProtobufListValue' - } - - attribute_map = { - 'null_value': 'null_value', - 'number_value': 'number_value', - 'string_value': 'string_value', - 'bool_value': 'bool_value', - 'struct_value': 'struct_value', - 'list_value': 'list_value' - } - - def __init__(self, null_value=None, number_value=None, string_value=None, bool_value=None, struct_value=None, list_value=None): # noqa: E501 - """ProtobufValue - a model defined in Swagger""" # noqa: E501 - - self._null_value = None - self._number_value = None - self._string_value = None - self._bool_value = None - self._struct_value = None - self._list_value = None - self.discriminator = None - - if null_value is not None: - self.null_value = null_value - if number_value is not None: - self.number_value = number_value - if string_value is not None: - self.string_value = string_value - if bool_value is not None: - self.bool_value = bool_value - if struct_value is not None: - self.struct_value = struct_value - if list_value is not None: - self.list_value = list_value - - @property - def null_value(self): - """Gets the null_value of this ProtobufValue. # noqa: E501 - - Represents a null value. # noqa: E501 - - :return: The null_value of this ProtobufValue. # noqa: E501 - :rtype: ProtobufNullValue - """ - return self._null_value - - @null_value.setter - def null_value(self, null_value): - """Sets the null_value of this ProtobufValue. - - Represents a null value. # noqa: E501 - - :param null_value: The null_value of this ProtobufValue. # noqa: E501 - :type: ProtobufNullValue - """ - - self._null_value = null_value - - @property - def number_value(self): - """Gets the number_value of this ProtobufValue. # noqa: E501 - - Represents a double value. # noqa: E501 - - :return: The number_value of this ProtobufValue. # noqa: E501 - :rtype: float - """ - return self._number_value - - @number_value.setter - def number_value(self, number_value): - """Sets the number_value of this ProtobufValue. - - Represents a double value. # noqa: E501 - - :param number_value: The number_value of this ProtobufValue. # noqa: E501 - :type: float - """ - - self._number_value = number_value - - @property - def string_value(self): - """Gets the string_value of this ProtobufValue. # noqa: E501 - - Represents a string value. # noqa: E501 - - :return: The string_value of this ProtobufValue. # noqa: E501 - :rtype: str - """ - return self._string_value - - @string_value.setter - def string_value(self, string_value): - """Sets the string_value of this ProtobufValue. - - Represents a string value. # noqa: E501 - - :param string_value: The string_value of this ProtobufValue. # noqa: E501 - :type: str - """ - - self._string_value = string_value - - @property - def bool_value(self): - """Gets the bool_value of this ProtobufValue. # noqa: E501 - - Represents a boolean value. # noqa: E501 - - :return: The bool_value of this ProtobufValue. # noqa: E501 - :rtype: bool - """ - return self._bool_value - - @bool_value.setter - def bool_value(self, bool_value): - """Sets the bool_value of this ProtobufValue. - - Represents a boolean value. # noqa: E501 - - :param bool_value: The bool_value of this ProtobufValue. # noqa: E501 - :type: bool - """ - - self._bool_value = bool_value - - @property - def struct_value(self): - """Gets the struct_value of this ProtobufValue. # noqa: E501 - - Represents a structured value. # noqa: E501 - - :return: The struct_value of this ProtobufValue. # noqa: E501 - :rtype: ProtobufStruct - """ - return self._struct_value - - @struct_value.setter - def struct_value(self, struct_value): - """Sets the struct_value of this ProtobufValue. - - Represents a structured value. # noqa: E501 - - :param struct_value: The struct_value of this ProtobufValue. # noqa: E501 - :type: ProtobufStruct - """ - - self._struct_value = struct_value - - @property - def list_value(self): - """Gets the list_value of this ProtobufValue. # noqa: E501 - - Represents a repeated `Value`. # noqa: E501 - - :return: The list_value of this ProtobufValue. # noqa: E501 - :rtype: ProtobufListValue - """ - return self._list_value - - @list_value.setter - def list_value(self, list_value): - """Sets the list_value of this ProtobufValue. - - Represents a repeated `Value`. # noqa: E501 - - :param list_value: The list_value of this ProtobufValue. # noqa: E501 - :type: ProtobufListValue - """ - - self._list_value = list_value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ProtobufValue, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ProtobufValue): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py deleted file mode 100644 index 9b8a45f842..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/quality_of_service_tier.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class QualityOfServiceTier(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNDEFINED = "UNDEFINED" - HIGH = "HIGH" - MEDIUM = "MEDIUM" - LOW = "LOW" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """QualityOfServiceTier - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(QualityOfServiceTier, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, QualityOfServiceTier): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py deleted file mode 100644 index 481c772cad..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_entry.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: F401,E501 - - -class ResourcesResourceEntry(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'ResourcesResourceName', - 'value': 'str' - } - - attribute_map = { - 'name': 'name', - 'value': 'value' - } - - def __init__(self, name=None, value=None): # noqa: E501 - """ResourcesResourceEntry - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._value = None - self.discriminator = None - - if name is not None: - self.name = name - if value is not None: - self.value = value - - @property - def name(self): - """Gets the name of this ResourcesResourceEntry. # noqa: E501 - - Resource name. # noqa: E501 - - :return: The name of this ResourcesResourceEntry. # noqa: E501 - :rtype: ResourcesResourceName - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this ResourcesResourceEntry. - - Resource name. # noqa: E501 - - :param name: The name of this ResourcesResourceEntry. # noqa: E501 - :type: ResourcesResourceName - """ - - self._name = name - - @property - def value(self): - """Gets the value of this ResourcesResourceEntry. # noqa: E501 - - - :return: The value of this ResourcesResourceEntry. # noqa: E501 - :rtype: str - """ - return self._value - - @value.setter - def value(self, value): - """Sets the value of this ResourcesResourceEntry. - - - :param value: The value of this ResourcesResourceEntry. # noqa: E501 - :type: str - """ - - self._value = value - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ResourcesResourceEntry, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ResourcesResourceEntry): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py deleted file mode 100644 index eea896d3d6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/resources_resource_name.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class ResourcesResourceName(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNKNOWN = "UNKNOWN" - CPU = "CPU" - GPU = "GPU" - MEMORY = "MEMORY" - STORAGE = "STORAGE" - EPHEMERAL_STORAGE = "EPHEMERAL_STORAGE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """ResourcesResourceName - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(ResourcesResourceName, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, ResourcesResourceName): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py deleted file mode 100644 index f49edcf0e0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/runtime_metadata_runtime_type.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class RuntimeMetadataRuntimeType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - OTHER = "OTHER" - FLYTE_SDK = "FLYTE_SDK" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """RuntimeMetadataRuntimeType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(RuntimeMetadataRuntimeType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, RuntimeMetadataRuntimeType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py deleted file mode 100644 index 895d2439b4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_column_schema_column_type.py +++ /dev/null @@ -1,97 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SchemaColumnSchemaColumnType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - INTEGER = "INTEGER" - FLOAT = "FLOAT" - STRING = "STRING" - BOOLEAN = "BOOLEAN" - DATETIME = "DATETIME" - DURATION = "DURATION" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """SchemaColumnSchemaColumnType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SchemaColumnSchemaColumnType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SchemaColumnSchemaColumnType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py deleted file mode 100644 index b200eef8fa..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/schema_type_schema_column.py +++ /dev/null @@ -1,145 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: F401,E501 - - -class SchemaTypeSchemaColumn(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'type': 'SchemaColumnSchemaColumnType' - } - - attribute_map = { - 'name': 'name', - 'type': 'type' - } - - def __init__(self, name=None, type=None): # noqa: E501 - """SchemaTypeSchemaColumn - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._type = None - self.discriminator = None - - if name is not None: - self.name = name - if type is not None: - self.type = type - - @property - def name(self): - """Gets the name of this SchemaTypeSchemaColumn. # noqa: E501 - - - :return: The name of this SchemaTypeSchemaColumn. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this SchemaTypeSchemaColumn. - - - :param name: The name of this SchemaTypeSchemaColumn. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def type(self): - """Gets the type of this SchemaTypeSchemaColumn. # noqa: E501 - - The column type. This allows a limited set of types currently. # noqa: E501 - - :return: The type of this SchemaTypeSchemaColumn. # noqa: E501 - :rtype: SchemaColumnSchemaColumnType - """ - return self._type - - @type.setter - def type(self, type): - """Sets the type of this SchemaTypeSchemaColumn. - - The column type. This allows a limited set of types currently. # noqa: E501 - - :param type: The type of this SchemaTypeSchemaColumn. # noqa: E501 - :type: SchemaColumnSchemaColumnType - """ - - self._type = type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SchemaTypeSchemaColumn, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SchemaTypeSchemaColumn): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py deleted file mode 100644 index 2331d3ba26..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/secret_mount_type.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SecretMountType(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - ANY = "ANY" - ENV_VAR = "ENV_VAR" - FILE = "FILE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """SecretMountType - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SecretMountType, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SecretMountType): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py deleted file mode 100644 index f9e955e818..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sort_direction.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SortDirection(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DESCENDING = "DESCENDING" - ASCENDING = "ASCENDING" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """SortDirection - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SortDirection, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SortDirection): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py deleted file mode 100644 index 00a361f1ba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/sql_dialect.py +++ /dev/null @@ -1,95 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class SqlDialect(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNDEFINED = "UNDEFINED" - ANSI = "ANSI" - HIVE = "HIVE" - OTHER = "OTHER" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """SqlDialect - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(SqlDialect, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, SqlDialect): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py deleted file mode 100644 index 0092cebcba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/structured_dataset_type_dataset_column.py +++ /dev/null @@ -1,147 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: F401,E501 - - -class StructuredDatasetTypeDatasetColumn(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'name': 'str', - 'literal_type': 'CoreLiteralType' - } - - attribute_map = { - 'name': 'name', - 'literal_type': 'literal_type' - } - - def __init__(self, name=None, literal_type=None): # noqa: E501 - """StructuredDatasetTypeDatasetColumn - a model defined in Swagger""" # noqa: E501 - - self._name = None - self._literal_type = None - self.discriminator = None - - if name is not None: - self.name = name - if literal_type is not None: - self.literal_type = literal_type - - @property - def name(self): - """Gets the name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - - A unique name within the schema type for the column. # noqa: E501 - - :return: The name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this StructuredDatasetTypeDatasetColumn. - - A unique name within the schema type for the column. # noqa: E501 - - :param name: The name of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - :type: str - """ - - self._name = name - - @property - def literal_type(self): - """Gets the literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - - The column type. # noqa: E501 - - :return: The literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - :rtype: CoreLiteralType - """ - return self._literal_type - - @literal_type.setter - def literal_type(self, literal_type): - """Sets the literal_type of this StructuredDatasetTypeDatasetColumn. - - The column type. # noqa: E501 - - :param literal_type: The literal_type of this StructuredDatasetTypeDatasetColumn. # noqa: E501 - :type: CoreLiteralType - """ - - self._literal_type = literal_type - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(StructuredDatasetTypeDatasetColumn, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, StructuredDatasetTypeDatasetColumn): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py deleted file mode 100644 index c0bd3b3366..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_execution_metadata_instance_class.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TaskExecutionMetadataInstanceClass(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - DEFAULT = "DEFAULT" - INTERRUPTIBLE = "INTERRUPTIBLE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """TaskExecutionMetadataInstanceClass - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TaskExecutionMetadataInstanceClass, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TaskExecutionMetadataInstanceClass): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py deleted file mode 100644 index 258d227425..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/task_log_message_format.py +++ /dev/null @@ -1,94 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class TaskLogMessageFormat(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - UNKNOWN = "UNKNOWN" - CSV = "CSV" - JSON = "JSON" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """TaskLogMessageFormat - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(TaskLogMessageFormat, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, TaskLogMessageFormat): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py deleted file mode 100644 index e0cffe7a99..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/models/workflow_metadata_on_failure_policy.py +++ /dev/null @@ -1,93 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -import pprint -import re # noqa: F401 - -import six - - -class WorkflowMetadataOnFailurePolicy(object): - """NOTE: This class is auto generated by the swagger code generator program. - - Do not edit the class manually. - """ - - """ - allowed enum values - """ - IMMEDIATELY = "FAIL_IMMEDIATELY" - AFTER_EXECUTABLE_NODES_COMPLETE = "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - } - - attribute_map = { - } - - def __init__(self): # noqa: E501 - """WorkflowMetadataOnFailurePolicy - a model defined in Swagger""" # noqa: E501 - self.discriminator = None - - def to_dict(self): - """Returns the model properties as a dict""" - result = {} - - for attr, _ in six.iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - if issubclass(WorkflowMetadataOnFailurePolicy, dict): - for key, value in self.items(): - result[key] = value - - return result - - def to_str(self): - """Returns the string representation of the model""" - return pprint.pformat(self.to_dict()) - - def __repr__(self): - """For `print` and `pprint`""" - return self.to_str() - - def __eq__(self, other): - """Returns true if both objects are equal""" - if not isinstance(other, WorkflowMetadataOnFailurePolicy): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """Returns true if both objects are not equal""" - return not self == other diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py deleted file mode 100644 index 885a2be8a0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/flyteadmin/rest.py +++ /dev/null @@ -1,323 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import io -import json -import logging -import re -import ssl - -import certifi -# python 2 and python 3 compatibility library -import six -from six.moves.urllib.parse import urlencode - -try: - import urllib3 -except ImportError: - raise ImportError('Swagger python client requires urllib3.') - - -logger = logging.getLogger(__name__) - - -class RESTResponse(io.IOBase): - - def __init__(self, resp): - self.urllib3_response = resp - self.status = resp.status - self.reason = resp.reason - self.data = resp.data - - def getheaders(self): - """Returns a dictionary of the response headers.""" - return self.urllib3_response.getheaders() - - def getheader(self, name, default=None): - """Returns a given response header.""" - return self.urllib3_response.getheader(name, default) - - -class RESTClientObject(object): - - def __init__(self, configuration, pools_size=4, maxsize=None): - # urllib3.PoolManager will pass all kw parameters to connectionpool - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 - # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 - # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 - # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 - - # cert_reqs - if configuration.verify_ssl: - cert_reqs = ssl.CERT_REQUIRED - else: - cert_reqs = ssl.CERT_NONE - - # ca_certs - if configuration.ssl_ca_cert: - ca_certs = configuration.ssl_ca_cert - else: - # if not set certificate file, use Mozilla's root certificates. - ca_certs = certifi.where() - - addition_pool_args = {} - if configuration.assert_hostname is not None: - addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 - - if maxsize is None: - if configuration.connection_pool_maxsize is not None: - maxsize = configuration.connection_pool_maxsize - else: - maxsize = 4 - - # https pool manager - if configuration.proxy: - self.pool_manager = urllib3.ProxyManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - proxy_url=configuration.proxy, - **addition_pool_args - ) - else: - self.pool_manager = urllib3.PoolManager( - num_pools=pools_size, - maxsize=maxsize, - cert_reqs=cert_reqs, - ca_certs=ca_certs, - cert_file=configuration.cert_file, - key_file=configuration.key_file, - **addition_pool_args - ) - - def request(self, method, url, query_params=None, headers=None, - body=None, post_params=None, _preload_content=True, - _request_timeout=None): - """Perform requests. - - :param method: http request method - :param url: http request url - :param query_params: query parameters in the url - :param headers: http request headers - :param body: request json body, for `application/json` - :param post_params: request post parameters, - `application/x-www-form-urlencoded` - and `multipart/form-data` - :param _preload_content: if False, the urllib3.HTTPResponse object will - be returned without reading/decoding response - data. Default is True. - :param _request_timeout: timeout setting for this request. If one - number provided, it will be total request - timeout. It can also be a pair (tuple) of - (connection, read) timeouts. - """ - method = method.upper() - assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', - 'PATCH', 'OPTIONS'] - - if post_params and body: - raise ValueError( - "body parameter cannot be used with post_params parameter." - ) - - post_params = post_params or {} - headers = headers or {} - - timeout = None - if _request_timeout: - if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 - timeout = urllib3.Timeout(total=_request_timeout) - elif (isinstance(_request_timeout, tuple) and - len(_request_timeout) == 2): - timeout = urllib3.Timeout( - connect=_request_timeout[0], read=_request_timeout[1]) - - if 'Content-Type' not in headers: - headers['Content-Type'] = 'application/json' - - try: - # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` - if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: - if query_params: - url += '?' + urlencode(query_params) - if re.search('json', headers['Content-Type'], re.IGNORECASE): - request_body = None - if body is not None: - request_body = json.dumps(body) - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=False, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - elif headers['Content-Type'] == 'multipart/form-data': - # must del headers['Content-Type'], or the correct - # Content-Type which generated by urllib3 will be - # overwritten. - del headers['Content-Type'] - r = self.pool_manager.request( - method, url, - fields=post_params, - encode_multipart=True, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - # Pass a `string` parameter directly in the body to support - # other content types than Json when `body` argument is - # provided in serialized form - elif isinstance(body, str): - request_body = body - r = self.pool_manager.request( - method, url, - body=request_body, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - else: - # Cannot generate the request from given parameters - msg = """Cannot prepare a request message for provided - arguments. Please check that your arguments match - declared content type.""" - raise ApiException(status=0, reason=msg) - # For `GET`, `HEAD` - else: - r = self.pool_manager.request(method, url, - fields=query_params, - preload_content=_preload_content, - timeout=timeout, - headers=headers) - except urllib3.exceptions.SSLError as e: - msg = "{0}\n{1}".format(type(e).__name__, str(e)) - raise ApiException(status=0, reason=msg) - - if _preload_content: - r = RESTResponse(r) - - # In the python 3, the response.data is bytes. - # we need to decode it to string. - if six.PY3: - r.data = r.data.decode('utf8') - - # log response body - logger.debug("response body: %s", r.data) - - if not 200 <= r.status <= 299: - raise ApiException(http_resp=r) - - return r - - def GET(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("GET", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def HEAD(self, url, headers=None, query_params=None, _preload_content=True, - _request_timeout=None): - return self.request("HEAD", url, - headers=headers, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - query_params=query_params) - - def OPTIONS(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("OPTIONS", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def DELETE(self, url, headers=None, query_params=None, body=None, - _preload_content=True, _request_timeout=None): - return self.request("DELETE", url, - headers=headers, - query_params=query_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def POST(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("POST", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PUT(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PUT", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - def PATCH(self, url, headers=None, query_params=None, post_params=None, - body=None, _preload_content=True, _request_timeout=None): - return self.request("PATCH", url, - headers=headers, - query_params=query_params, - post_params=post_params, - _preload_content=_preload_content, - _request_timeout=_request_timeout, - body=body) - - -class ApiException(Exception): - - def __init__(self, status=None, reason=None, http_resp=None): - if http_resp: - self.status = http_resp.status - self.reason = http_resp.reason - self.body = http_resp.data - self.headers = http_resp.getheaders() - else: - self.status = status - self.reason = reason - self.body = None - self.headers = None - - def __str__(self): - """Custom error messages for exception""" - error_message = "({0})\n"\ - "Reason: {1}\n".format(self.status, self.reason) - if self.headers: - error_message += "HTTP response headers: {0}\n".format( - self.headers) - - if self.body: - error_message += "HTTP response body: {0}\n".format(self.body) - - return error_message diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh deleted file mode 100644 index ae01b182ae..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/git_push.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/bin/sh -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt deleted file mode 100644 index bafdc07532..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -certifi >= 14.05.14 -six >= 1.10 -python_dateutil >= 2.5.3 -setuptools >= 21.0.0 -urllib3 >= 1.15.1 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py deleted file mode 100644 index ba03cf5291..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/setup.py +++ /dev/null @@ -1,46 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from setuptools import setup, find_packages # noqa: H301 - -NAME = "flyteadmin" -VERSION = "1.0.0" -# To install the library, run the following -# -# python setup.py install -# -# prerequisite: setuptools -# http://pypi.python.org/pypi/setuptools - -REQUIRES = [ - "certifi>=2017.4.17", - "python-dateutil>=2.1", - "six>=1.10", - "urllib3>=1.23" -] - - -setup( - name=NAME, - version=VERSION, - description="flyteidl/service/admin.proto", - author_email="", - url="", - keywords=["Swagger", "flyteidl/service/admin.proto"], - install_requires=REQUIRES, - packages=find_packages(), - include_package_data=True, - long_description="""\ - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - """ -) diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt deleted file mode 100644 index 2702246c0e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test-requirements.txt +++ /dev/null @@ -1,5 +0,0 @@ -coverage>=4.0.3 -nose>=1.3.7 -pluggy>=0.3.1 -py>=1.4.31 -randomize>=0.13 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/__init__.py deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py deleted file mode 100644 index b617a7b7d1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_abort_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_abort_metadata import AdminAbortMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminAbortMetadata(unittest.TestCase): - """AdminAbortMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminAbortMetadata(self): - """Test AdminAbortMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_abort_metadata.AdminAbortMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py deleted file mode 100644 index 53f87816b6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_annotations.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_annotations import AdminAnnotations # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminAnnotations(unittest.TestCase): - """AdminAnnotations unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminAnnotations(self): - """Test AdminAnnotations""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_annotations.AdminAnnotations() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py deleted file mode 100644 index 1425547087..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_auth import AdminAuth # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminAuth(unittest.TestCase): - """AdminAuth unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminAuth(self): - """Test AdminAuth""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_auth.AdminAuth() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py deleted file mode 100644 index 3b91984c12..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_auth_role.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_auth_role import AdminAuthRole # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminAuthRole(unittest.TestCase): - """AdminAuthRole unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminAuthRole(self): - """Test AdminAuthRole""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_auth_role.AdminAuthRole() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py deleted file mode 100644 index 1762f31b70..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_assignment.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_cluster_assignment import AdminClusterAssignment # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminClusterAssignment(unittest.TestCase): - """AdminClusterAssignment unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminClusterAssignment(self): - """Test AdminClusterAssignment""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_cluster_assignment.AdminClusterAssignment() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py deleted file mode 100644 index ab1e51e9c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cluster_resource_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_cluster_resource_attributes import AdminClusterResourceAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminClusterResourceAttributes(unittest.TestCase): - """AdminClusterResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminClusterResourceAttributes(self): - """Test AdminClusterResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_cluster_resource_attributes.AdminClusterResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py deleted file mode 100644 index f423f248dc..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_cron_schedule.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_cron_schedule import AdminCronSchedule # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminCronSchedule(unittest.TestCase): - """AdminCronSchedule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminCronSchedule(self): - """Test AdminCronSchedule""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_cron_schedule.AdminCronSchedule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py deleted file mode 100644 index 28488b15bd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_description import AdminDescription # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminDescription(unittest.TestCase): - """AdminDescription unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminDescription(self): - """Test AdminDescription""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_description.AdminDescription() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py deleted file mode 100644 index 7e8d926bad..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_description_entity import AdminDescriptionEntity # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminDescriptionEntity(unittest.TestCase): - """AdminDescriptionEntity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminDescriptionEntity(self): - """Test AdminDescriptionEntity""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_description_entity.AdminDescriptionEntity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py deleted file mode 100644 index 2592aec393..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_entity_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_description_entity_list import AdminDescriptionEntityList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminDescriptionEntityList(unittest.TestCase): - """AdminDescriptionEntityList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminDescriptionEntityList(self): - """Test AdminDescriptionEntityList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_description_entity_list.AdminDescriptionEntityList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py deleted file mode 100644 index 79efa9a405..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_description_format.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_description_format import AdminDescriptionFormat # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminDescriptionFormat(unittest.TestCase): - """AdminDescriptionFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminDescriptionFormat(self): - """Test AdminDescriptionFormat""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_description_format.AdminDescriptionFormat() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py deleted file mode 100644 index 8c53f01712..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_domain.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_domain import AdminDomain # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminDomain(unittest.TestCase): - """AdminDomain unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminDomain(self): - """Test AdminDomain""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_domain.AdminDomain() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py deleted file mode 100644 index f39df1233e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_email_notification.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_email_notification import AdminEmailNotification # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminEmailNotification(unittest.TestCase): - """AdminEmailNotification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminEmailNotification(self): - """Test AdminEmailNotification""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_email_notification.AdminEmailNotification() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py deleted file mode 100644 index b3d472b8bf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_envs.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_envs import AdminEnvs # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminEnvs(unittest.TestCase): - """AdminEnvs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminEnvs(self): - """Test AdminEnvs""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_envs.AdminEnvs() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py deleted file mode 100644 index 8da444e5ec..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution import AdminExecution # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecution(unittest.TestCase): - """AdminExecution unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecution(self): - """Test AdminExecution""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution.AdminExecution() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py deleted file mode 100644 index af1d7119ca..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_closure import AdminExecutionClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionClosure(unittest.TestCase): - """AdminExecutionClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionClosure(self): - """Test AdminExecutionClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_closure.AdminExecutionClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py deleted file mode 100644 index 325f951e12..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_cluster_label.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_cluster_label import AdminExecutionClusterLabel # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionClusterLabel(unittest.TestCase): - """AdminExecutionClusterLabel unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionClusterLabel(self): - """Test AdminExecutionClusterLabel""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_cluster_label.AdminExecutionClusterLabel() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py deleted file mode 100644 index 45a0026e37..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_create_request import AdminExecutionCreateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionCreateRequest(unittest.TestCase): - """AdminExecutionCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionCreateRequest(self): - """Test AdminExecutionCreateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_create_request.AdminExecutionCreateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py deleted file mode 100644 index d3f0537048..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_create_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_create_response import AdminExecutionCreateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionCreateResponse(unittest.TestCase): - """AdminExecutionCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionCreateResponse(self): - """Test AdminExecutionCreateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_create_response.AdminExecutionCreateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py deleted file mode 100644 index 7387280caa..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_list import AdminExecutionList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionList(unittest.TestCase): - """AdminExecutionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionList(self): - """Test AdminExecutionList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_list.AdminExecutionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py deleted file mode 100644 index c4f9c66562..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_metadata import AdminExecutionMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionMetadata(unittest.TestCase): - """AdminExecutionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionMetadata(self): - """Test AdminExecutionMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_metadata.AdminExecutionMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py deleted file mode 100644 index f84572c389..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_queue_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_queue_attributes import AdminExecutionQueueAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionQueueAttributes(unittest.TestCase): - """AdminExecutionQueueAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionQueueAttributes(self): - """Test AdminExecutionQueueAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_queue_attributes.AdminExecutionQueueAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py deleted file mode 100644 index 8bdff0915f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_recover_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_recover_request import AdminExecutionRecoverRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionRecoverRequest(unittest.TestCase): - """AdminExecutionRecoverRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionRecoverRequest(self): - """Test AdminExecutionRecoverRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_recover_request.AdminExecutionRecoverRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py deleted file mode 100644 index 170c8149c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_relaunch_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_relaunch_request import AdminExecutionRelaunchRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionRelaunchRequest(unittest.TestCase): - """AdminExecutionRelaunchRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionRelaunchRequest(self): - """Test AdminExecutionRelaunchRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_relaunch_request.AdminExecutionRelaunchRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py deleted file mode 100644 index 1a0d62cfec..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_spec import AdminExecutionSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionSpec(unittest.TestCase): - """AdminExecutionSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionSpec(self): - """Test AdminExecutionSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_spec.AdminExecutionSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py deleted file mode 100644 index 6df975e3c2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_state import AdminExecutionState # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionState(unittest.TestCase): - """AdminExecutionState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionState(self): - """Test AdminExecutionState""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_state.AdminExecutionState() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py deleted file mode 100644 index 1a116ff73b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_state_change_details.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_state_change_details import AdminExecutionStateChangeDetails # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionStateChangeDetails(unittest.TestCase): - """AdminExecutionStateChangeDetails unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionStateChangeDetails(self): - """Test AdminExecutionStateChangeDetails""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_state_change_details.AdminExecutionStateChangeDetails() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py deleted file mode 100644 index 5233d9f6d5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_terminate_request import AdminExecutionTerminateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionTerminateRequest(unittest.TestCase): - """AdminExecutionTerminateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionTerminateRequest(self): - """Test AdminExecutionTerminateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_terminate_request.AdminExecutionTerminateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py deleted file mode 100644 index 939b551e66..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_terminate_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_terminate_response import AdminExecutionTerminateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionTerminateResponse(unittest.TestCase): - """AdminExecutionTerminateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionTerminateResponse(self): - """Test AdminExecutionTerminateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_terminate_response.AdminExecutionTerminateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py deleted file mode 100644 index 320cba4fe6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_update_request import AdminExecutionUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionUpdateRequest(unittest.TestCase): - """AdminExecutionUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionUpdateRequest(self): - """Test AdminExecutionUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_update_request.AdminExecutionUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py deleted file mode 100644 index 955420f043..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_execution_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_execution_update_response import AdminExecutionUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminExecutionUpdateResponse(unittest.TestCase): - """AdminExecutionUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminExecutionUpdateResponse(self): - """Test AdminExecutionUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_execution_update_response.AdminExecutionUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py deleted file mode 100644 index 5558212367..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_fixed_rate import AdminFixedRate # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminFixedRate(unittest.TestCase): - """AdminFixedRate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminFixedRate(self): - """Test AdminFixedRate""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_fixed_rate.AdminFixedRate() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py deleted file mode 100644 index a30eec5452..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_fixed_rate_unit.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_fixed_rate_unit import AdminFixedRateUnit # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminFixedRateUnit(unittest.TestCase): - """AdminFixedRateUnit unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminFixedRateUnit(self): - """Test AdminFixedRateUnit""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_fixed_rate_unit.AdminFixedRateUnit() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py deleted file mode 100644 index 581bc38333..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_flyte_ur_ls.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_flyte_ur_ls import AdminFlyteURLs # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminFlyteURLs(unittest.TestCase): - """AdminFlyteURLs unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminFlyteURLs(self): - """Test AdminFlyteURLs""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_flyte_ur_ls.AdminFlyteURLs() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py deleted file mode 100644 index 930d65711e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_get_version_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_get_version_response import AdminGetVersionResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminGetVersionResponse(unittest.TestCase): - """AdminGetVersionResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminGetVersionResponse(self): - """Test AdminGetVersionResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_get_version_response.AdminGetVersionResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py deleted file mode 100644 index 32733ca584..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_labels.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_labels import AdminLabels # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLabels(unittest.TestCase): - """AdminLabels unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLabels(self): - """Test AdminLabels""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_labels.AdminLabels() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py deleted file mode 100644 index ef28673e27..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan import AdminLaunchPlan # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlan(unittest.TestCase): - """AdminLaunchPlan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlan(self): - """Test AdminLaunchPlan""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan.AdminLaunchPlan() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py deleted file mode 100644 index e23aadda1d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_closure import AdminLaunchPlanClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanClosure(unittest.TestCase): - """AdminLaunchPlanClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanClosure(self): - """Test AdminLaunchPlanClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_closure.AdminLaunchPlanClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py deleted file mode 100644 index 95aa42532c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_create_request import AdminLaunchPlanCreateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanCreateRequest(unittest.TestCase): - """AdminLaunchPlanCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanCreateRequest(self): - """Test AdminLaunchPlanCreateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_create_request.AdminLaunchPlanCreateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py deleted file mode 100644 index 2c855a1d6f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_create_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_create_response import AdminLaunchPlanCreateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanCreateResponse(unittest.TestCase): - """AdminLaunchPlanCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanCreateResponse(self): - """Test AdminLaunchPlanCreateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_create_response.AdminLaunchPlanCreateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py deleted file mode 100644 index 61a9d149fd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_list import AdminLaunchPlanList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanList(unittest.TestCase): - """AdminLaunchPlanList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanList(self): - """Test AdminLaunchPlanList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_list.AdminLaunchPlanList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py deleted file mode 100644 index 2fa217de17..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_metadata import AdminLaunchPlanMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanMetadata(unittest.TestCase): - """AdminLaunchPlanMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanMetadata(self): - """Test AdminLaunchPlanMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_metadata.AdminLaunchPlanMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py deleted file mode 100644 index 9c18b3d2fa..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_spec import AdminLaunchPlanSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanSpec(unittest.TestCase): - """AdminLaunchPlanSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanSpec(self): - """Test AdminLaunchPlanSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_spec.AdminLaunchPlanSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py deleted file mode 100644 index 565c353308..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_state.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_state import AdminLaunchPlanState # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanState(unittest.TestCase): - """AdminLaunchPlanState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanState(self): - """Test AdminLaunchPlanState""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_state.AdminLaunchPlanState() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py deleted file mode 100644 index 4423d250d8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_update_request import AdminLaunchPlanUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanUpdateRequest(unittest.TestCase): - """AdminLaunchPlanUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanUpdateRequest(self): - """Test AdminLaunchPlanUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_update_request.AdminLaunchPlanUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py deleted file mode 100644 index 16f59ce1d5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_launch_plan_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_launch_plan_update_response import AdminLaunchPlanUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLaunchPlanUpdateResponse(unittest.TestCase): - """AdminLaunchPlanUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLaunchPlanUpdateResponse(self): - """Test AdminLaunchPlanUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_launch_plan_update_response.AdminLaunchPlanUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py deleted file mode 100644 index a7f0ded960..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_list_matchable_attributes_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_list_matchable_attributes_response import AdminListMatchableAttributesResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminListMatchableAttributesResponse(unittest.TestCase): - """AdminListMatchableAttributesResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminListMatchableAttributesResponse(self): - """Test AdminListMatchableAttributesResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_list_matchable_attributes_response.AdminListMatchableAttributesResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py deleted file mode 100644 index e0cb1dd8ab..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_literal_map_blob.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_literal_map_blob import AdminLiteralMapBlob # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminLiteralMapBlob(unittest.TestCase): - """AdminLiteralMapBlob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminLiteralMapBlob(self): - """Test AdminLiteralMapBlob""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_literal_map_blob.AdminLiteralMapBlob() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py deleted file mode 100644 index 4c26d21035..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_attributes_configuration.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_matchable_attributes_configuration import AdminMatchableAttributesConfiguration # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminMatchableAttributesConfiguration(unittest.TestCase): - """AdminMatchableAttributesConfiguration unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminMatchableAttributesConfiguration(self): - """Test AdminMatchableAttributesConfiguration""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_matchable_attributes_configuration.AdminMatchableAttributesConfiguration() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py deleted file mode 100644 index c20e671fcf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matchable_resource.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_matchable_resource import AdminMatchableResource # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminMatchableResource(unittest.TestCase): - """AdminMatchableResource unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminMatchableResource(self): - """Test AdminMatchableResource""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_matchable_resource.AdminMatchableResource() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py deleted file mode 100644 index 1614512f80..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_matching_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_matching_attributes import AdminMatchingAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminMatchingAttributes(unittest.TestCase): - """AdminMatchingAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminMatchingAttributes(self): - """Test AdminMatchingAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_matching_attributes.AdminMatchingAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py deleted file mode 100644 index 06702eed0a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity import AdminNamedEntity # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntity(unittest.TestCase): - """AdminNamedEntity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntity(self): - """Test AdminNamedEntity""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity.AdminNamedEntity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py deleted file mode 100644 index 6d376e75ea..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_identifier import AdminNamedEntityIdentifier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityIdentifier(unittest.TestCase): - """AdminNamedEntityIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityIdentifier(self): - """Test AdminNamedEntityIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_identifier.AdminNamedEntityIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py deleted file mode 100644 index b93b1d4328..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_identifier_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_identifier_list import AdminNamedEntityIdentifierList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityIdentifierList(unittest.TestCase): - """AdminNamedEntityIdentifierList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityIdentifierList(self): - """Test AdminNamedEntityIdentifierList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_identifier_list.AdminNamedEntityIdentifierList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py deleted file mode 100644 index 977750e8bc..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_list import AdminNamedEntityList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityList(unittest.TestCase): - """AdminNamedEntityList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityList(self): - """Test AdminNamedEntityList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_list.AdminNamedEntityList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py deleted file mode 100644 index 07d29106a3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_metadata import AdminNamedEntityMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityMetadata(unittest.TestCase): - """AdminNamedEntityMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityMetadata(self): - """Test AdminNamedEntityMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_metadata.AdminNamedEntityMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py deleted file mode 100644 index 1bdc21796a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_state.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_state import AdminNamedEntityState # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityState(unittest.TestCase): - """AdminNamedEntityState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityState(self): - """Test AdminNamedEntityState""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_state.AdminNamedEntityState() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py deleted file mode 100644 index 140bea29e0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_update_request import AdminNamedEntityUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityUpdateRequest(unittest.TestCase): - """AdminNamedEntityUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityUpdateRequest(self): - """Test AdminNamedEntityUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_update_request.AdminNamedEntityUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py deleted file mode 100644 index 48fec8e195..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_named_entity_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_named_entity_update_response import AdminNamedEntityUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNamedEntityUpdateResponse(unittest.TestCase): - """AdminNamedEntityUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNamedEntityUpdateResponse(self): - """Test AdminNamedEntityUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_named_entity_update_response.AdminNamedEntityUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py deleted file mode 100644 index 1cb387243e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_closure import AdminNodeExecutionClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionClosure(unittest.TestCase): - """AdminNodeExecutionClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionClosure(self): - """Test AdminNodeExecutionClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_closure.AdminNodeExecutionClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py deleted file mode 100644 index f9932fede3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_event_request import AdminNodeExecutionEventRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionEventRequest(unittest.TestCase): - """AdminNodeExecutionEventRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionEventRequest(self): - """Test AdminNodeExecutionEventRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_event_request.AdminNodeExecutionEventRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py deleted file mode 100644 index 09e9f94608..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_event_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_event_response import AdminNodeExecutionEventResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionEventResponse(unittest.TestCase): - """AdminNodeExecutionEventResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionEventResponse(self): - """Test AdminNodeExecutionEventResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_event_response.AdminNodeExecutionEventResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py deleted file mode 100644 index d84069a2c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_get_data_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_get_data_response import AdminNodeExecutionGetDataResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionGetDataResponse(unittest.TestCase): - """AdminNodeExecutionGetDataResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionGetDataResponse(self): - """Test AdminNodeExecutionGetDataResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_get_data_response.AdminNodeExecutionGetDataResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py deleted file mode 100644 index ce996eb9a5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_list import AdminNodeExecutionList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionList(unittest.TestCase): - """AdminNodeExecutionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionList(self): - """Test AdminNodeExecutionList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_list.AdminNodeExecutionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py deleted file mode 100644 index 94e08096e2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_node_execution_meta_data.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_node_execution_meta_data import AdminNodeExecutionMetaData # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNodeExecutionMetaData(unittest.TestCase): - """AdminNodeExecutionMetaData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNodeExecutionMetaData(self): - """Test AdminNodeExecutionMetaData""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_node_execution_meta_data.AdminNodeExecutionMetaData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py deleted file mode 100644 index 50123dee60..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_notification import AdminNotification # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNotification(unittest.TestCase): - """AdminNotification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNotification(self): - """Test AdminNotification""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_notification.AdminNotification() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py deleted file mode 100644 index b80edebf43..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_notification_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_notification_list import AdminNotificationList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminNotificationList(unittest.TestCase): - """AdminNotificationList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminNotificationList(self): - """Test AdminNotificationList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_notification_list.AdminNotificationList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py deleted file mode 100644 index 79062cc22e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_pager_duty_notification.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_pager_duty_notification import AdminPagerDutyNotification # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminPagerDutyNotification(unittest.TestCase): - """AdminPagerDutyNotification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminPagerDutyNotification(self): - """Test AdminPagerDutyNotification""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_pager_duty_notification.AdminPagerDutyNotification() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py deleted file mode 100644 index 8e0232a5e5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_override.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_plugin_override import AdminPluginOverride # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminPluginOverride(unittest.TestCase): - """AdminPluginOverride unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminPluginOverride(self): - """Test AdminPluginOverride""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_plugin_override.AdminPluginOverride() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py deleted file mode 100644 index f6b33d0d00..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_plugin_overrides.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_plugin_overrides import AdminPluginOverrides # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminPluginOverrides(unittest.TestCase): - """AdminPluginOverrides unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminPluginOverrides(self): - """Test AdminPluginOverrides""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_plugin_overrides.AdminPluginOverrides() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py deleted file mode 100644 index 94ec8dbda8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project import AdminProject # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProject(unittest.TestCase): - """AdminProject unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProject(self): - """Test AdminProject""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project.AdminProject() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py deleted file mode 100644 index dcd720970e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes import AdminProjectAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributes(unittest.TestCase): - """AdminProjectAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributes(self): - """Test AdminProjectAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes.AdminProjectAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py deleted file mode 100644 index 2e57eebdc5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes_delete_request import AdminProjectAttributesDeleteRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributesDeleteRequest(unittest.TestCase): - """AdminProjectAttributesDeleteRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributesDeleteRequest(self): - """Test AdminProjectAttributesDeleteRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes_delete_request.AdminProjectAttributesDeleteRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py deleted file mode 100644 index 18289b5029..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_delete_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes_delete_response import AdminProjectAttributesDeleteResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributesDeleteResponse(unittest.TestCase): - """AdminProjectAttributesDeleteResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributesDeleteResponse(self): - """Test AdminProjectAttributesDeleteResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes_delete_response.AdminProjectAttributesDeleteResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py deleted file mode 100644 index 228892f109..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_get_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes_get_response import AdminProjectAttributesGetResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributesGetResponse(unittest.TestCase): - """AdminProjectAttributesGetResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributesGetResponse(self): - """Test AdminProjectAttributesGetResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes_get_response.AdminProjectAttributesGetResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py deleted file mode 100644 index f7a5a3b047..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes_update_request import AdminProjectAttributesUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributesUpdateRequest(unittest.TestCase): - """AdminProjectAttributesUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributesUpdateRequest(self): - """Test AdminProjectAttributesUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes_update_request.AdminProjectAttributesUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py deleted file mode 100644 index 8a1ce67357..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_attributes_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_attributes_update_response import AdminProjectAttributesUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectAttributesUpdateResponse(unittest.TestCase): - """AdminProjectAttributesUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectAttributesUpdateResponse(self): - """Test AdminProjectAttributesUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_attributes_update_response.AdminProjectAttributesUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py deleted file mode 100644 index fe261ca67a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes import AdminProjectDomainAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributes(unittest.TestCase): - """AdminProjectDomainAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributes(self): - """Test AdminProjectDomainAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes.AdminProjectDomainAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py deleted file mode 100644 index 2e87c3220b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes_delete_request import AdminProjectDomainAttributesDeleteRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributesDeleteRequest(unittest.TestCase): - """AdminProjectDomainAttributesDeleteRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributesDeleteRequest(self): - """Test AdminProjectDomainAttributesDeleteRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes_delete_request.AdminProjectDomainAttributesDeleteRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py deleted file mode 100644 index dceb0a4106..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_delete_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes_delete_response import AdminProjectDomainAttributesDeleteResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributesDeleteResponse(unittest.TestCase): - """AdminProjectDomainAttributesDeleteResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributesDeleteResponse(self): - """Test AdminProjectDomainAttributesDeleteResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes_delete_response.AdminProjectDomainAttributesDeleteResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py deleted file mode 100644 index c17b959a76..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_get_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes_get_response import AdminProjectDomainAttributesGetResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributesGetResponse(unittest.TestCase): - """AdminProjectDomainAttributesGetResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributesGetResponse(self): - """Test AdminProjectDomainAttributesGetResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes_get_response.AdminProjectDomainAttributesGetResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py deleted file mode 100644 index 1d13f4505e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes_update_request import AdminProjectDomainAttributesUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributesUpdateRequest(unittest.TestCase): - """AdminProjectDomainAttributesUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributesUpdateRequest(self): - """Test AdminProjectDomainAttributesUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes_update_request.AdminProjectDomainAttributesUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py deleted file mode 100644 index 1381af95a9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_domain_attributes_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_domain_attributes_update_response import AdminProjectDomainAttributesUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectDomainAttributesUpdateResponse(unittest.TestCase): - """AdminProjectDomainAttributesUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectDomainAttributesUpdateResponse(self): - """Test AdminProjectDomainAttributesUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_domain_attributes_update_response.AdminProjectDomainAttributesUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py deleted file mode 100644 index 21a49c3f35..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_register_request import AdminProjectRegisterRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectRegisterRequest(unittest.TestCase): - """AdminProjectRegisterRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectRegisterRequest(self): - """Test AdminProjectRegisterRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_register_request.AdminProjectRegisterRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py deleted file mode 100644 index 773ec50efd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_register_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_register_response import AdminProjectRegisterResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectRegisterResponse(unittest.TestCase): - """AdminProjectRegisterResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectRegisterResponse(self): - """Test AdminProjectRegisterResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_register_response.AdminProjectRegisterResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py deleted file mode 100644 index d3d3a31dc0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_project_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_project_update_response import AdminProjectUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjectUpdateResponse(unittest.TestCase): - """AdminProjectUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjectUpdateResponse(self): - """Test AdminProjectUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_project_update_response.AdminProjectUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py deleted file mode 100644 index 195a493cbb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_projects.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_projects import AdminProjects # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminProjects(unittest.TestCase): - """AdminProjects unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminProjects(self): - """Test AdminProjects""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_projects.AdminProjects() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py deleted file mode 100644 index 1fc1b9a3b2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_raw_output_data_config.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_raw_output_data_config import AdminRawOutputDataConfig # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminRawOutputDataConfig(unittest.TestCase): - """AdminRawOutputDataConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminRawOutputDataConfig(self): - """Test AdminRawOutputDataConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_raw_output_data_config.AdminRawOutputDataConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py deleted file mode 100644 index 9c8dff4220..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_reason.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_reason import AdminReason # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminReason(unittest.TestCase): - """AdminReason unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminReason(self): - """Test AdminReason""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_reason.AdminReason() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py deleted file mode 100644 index 78bd6c3fb1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_schedule.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_schedule import AdminSchedule # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminSchedule(unittest.TestCase): - """AdminSchedule unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminSchedule(self): - """Test AdminSchedule""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_schedule.AdminSchedule() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py deleted file mode 100644 index 680b2cd5f5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_service_api.py +++ /dev/null @@ -1,432 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.api.admin_service_api import AdminServiceApi # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminServiceApi(unittest.TestCase): - """AdminServiceApi unit test stubs""" - - def setUp(self): - self.api = flyteadmin.api.admin_service_api.AdminServiceApi() # noqa: E501 - - def tearDown(self): - pass - - def test_create_execution(self): - """Test case for create_execution - - Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - """ - pass - - def test_create_launch_plan(self): - """Test case for create_launch_plan - - Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition # noqa: E501 - """ - pass - - def test_create_node_event(self): - """Test case for create_node_event - - Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. # noqa: E501 - """ - pass - - def test_create_task(self): - """Test case for create_task - - Create and upload a :ref:`ref_flyteidl.admin.Task` definition # noqa: E501 - """ - pass - - def test_create_task_event(self): - """Test case for create_task_event - - Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. # noqa: E501 - """ - pass - - def test_create_workflow(self): - """Test case for create_workflow - - Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition # noqa: E501 - """ - pass - - def test_create_workflow_event(self): - """Test case for create_workflow_event - - Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. # noqa: E501 - """ - pass - - def test_delete_project_attributes(self): - """Test case for delete_project_attributes - - Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - """ - pass - - def test_delete_project_domain_attributes(self): - """Test case for delete_project_domain_attributes - - Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - """ - pass - - def test_delete_workflow_attributes(self): - """Test case for delete_workflow_attributes - - Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - """ - pass - - def test_get_active_launch_plan(self): - """Test case for get_active_launch_plan - - Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - """ - pass - - def test_get_description_entity(self): - """Test case for get_description_entity - - Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. # noqa: E501 - """ - pass - - def test_get_execution(self): - """Test case for get_execution - - Fetches a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_get_execution_data(self): - """Test case for get_execution_data - - Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_get_execution_metrics(self): - """Test case for get_execution_metrics - - Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_get_launch_plan(self): - """Test case for get_launch_plan - - Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. # noqa: E501 - """ - pass - - def test_get_named_entity(self): - """Test case for get_named_entity - - Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - """ - pass - - def test_get_node_execution(self): - """Test case for get_node_execution - - Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - """ - pass - - def test_get_node_execution_data(self): - """Test case for get_node_execution_data - - Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - """ - pass - - def test_get_project_attributes(self): - """Test case for get_project_attributes - - Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - """ - pass - - def test_get_project_domain_attributes(self): - """Test case for get_project_domain_attributes - - Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - """ - pass - - def test_get_task(self): - """Test case for get_task - - Fetch a :ref:`ref_flyteidl.admin.Task` definition. # noqa: E501 - """ - pass - - def test_get_task_execution(self): - """Test case for get_task_execution - - Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - """ - pass - - def test_get_task_execution_data(self): - """Test case for get_task_execution_data - - Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - """ - pass - - def test_get_version(self): - """Test case for get_version - - """ - pass - - def test_get_workflow(self): - """Test case for get_workflow - - Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. # noqa: E501 - """ - pass - - def test_get_workflow_attributes(self): - """Test case for get_workflow_attributes - - Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - """ - pass - - def test_list_active_launch_plans(self): - """Test case for list_active_launch_plans - - List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - """ - pass - - def test_list_description_entities(self): - """Test case for list_description_entities - - Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - """ - pass - - def test_list_description_entities2(self): - """Test case for list_description_entities2 - - Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. # noqa: E501 - """ - pass - - def test_list_executions(self): - """Test case for list_executions - - Fetch a list of :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_list_launch_plan_ids(self): - """Test case for list_launch_plan_ids - - Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. # noqa: E501 - """ - pass - - def test_list_launch_plans(self): - """Test case for list_launch_plans - - Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - """ - pass - - def test_list_launch_plans2(self): - """Test case for list_launch_plans2 - - Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. # noqa: E501 - """ - pass - - def test_list_matchable_attributes(self): - """Test case for list_matchable_attributes - - Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. # noqa: E501 - """ - pass - - def test_list_named_entities(self): - """Test case for list_named_entities - - Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. # noqa: E501 - """ - pass - - def test_list_node_executions(self): - """Test case for list_node_executions - - Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. # noqa: E501 - """ - pass - - def test_list_node_executions_for_task(self): - """Test case for list_node_executions_for_task - - Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - """ - pass - - def test_list_projects(self): - """Test case for list_projects - - Fetches a list of :ref:`ref_flyteidl.admin.Project` # noqa: E501 - """ - pass - - def test_list_task_executions(self): - """Test case for list_task_executions - - Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. # noqa: E501 - """ - pass - - def test_list_task_ids(self): - """Test case for list_task_ids - - Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. # noqa: E501 - """ - pass - - def test_list_tasks(self): - """Test case for list_tasks - - Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - """ - pass - - def test_list_tasks2(self): - """Test case for list_tasks2 - - Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. # noqa: E501 - """ - pass - - def test_list_workflow_ids(self): - """Test case for list_workflow_ids - - Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. # noqa: E501 - """ - pass - - def test_list_workflows(self): - """Test case for list_workflows - - Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - """ - pass - - def test_list_workflows2(self): - """Test case for list_workflows2 - - Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. # noqa: E501 - """ - pass - - def test_recover_execution(self): - """Test case for recover_execution - - Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. # noqa: E501 - """ - pass - - def test_register_project(self): - """Test case for register_project - - Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. # noqa: E501 - """ - pass - - def test_relaunch_execution(self): - """Test case for relaunch_execution - - Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` # noqa: E501 - """ - pass - - def test_terminate_execution(self): - """Test case for terminate_execution - - Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_update_execution(self): - """Test case for update_execution - - Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. # noqa: E501 - """ - pass - - def test_update_launch_plan(self): - """Test case for update_launch_plan - - Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. # noqa: E501 - """ - pass - - def test_update_named_entity(self): - """Test case for update_named_entity - - Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. # noqa: E501 - """ - pass - - def test_update_project(self): - """Test case for update_project - - Updates an existing :ref:`ref_flyteidl.admin.Project` flyteidl.admin.Project should be passed but the domains property should be empty; it will be ignored in the handler as domains cannot be updated via this API. # noqa: E501 - """ - pass - - def test_update_project_attributes(self): - """Test case for update_project_attributes - - Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level # noqa: E501 - """ - pass - - def test_update_project_domain_attributes(self): - """Test case for update_project_domain_attributes - - Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. # noqa: E501 - """ - pass - - def test_update_workflow_attributes(self): - """Test case for update_workflow_attributes - - Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. # noqa: E501 - """ - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py deleted file mode 100644 index 606a207587..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_slack_notification.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_slack_notification import AdminSlackNotification # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminSlackNotification(unittest.TestCase): - """AdminSlackNotification unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminSlackNotification(self): - """Test AdminSlackNotification""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_slack_notification.AdminSlackNotification() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py deleted file mode 100644 index e92f5cf94e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_sort.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_sort import AdminSort # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminSort(unittest.TestCase): - """AdminSort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminSort(self): - """Test AdminSort""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_sort.AdminSort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py deleted file mode 100644 index 9c9a649de7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_source_code.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_source_code import AdminSourceCode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminSourceCode(unittest.TestCase): - """AdminSourceCode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminSourceCode(self): - """Test AdminSourceCode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_source_code.AdminSourceCode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py deleted file mode 100644 index 0f81cd491b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_system_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_system_metadata import AdminSystemMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminSystemMetadata(unittest.TestCase): - """AdminSystemMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminSystemMetadata(self): - """Test AdminSystemMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_system_metadata.AdminSystemMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py deleted file mode 100644 index 6d7db76462..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task import AdminTask # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTask(unittest.TestCase): - """AdminTask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTask(self): - """Test AdminTask""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task.AdminTask() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py deleted file mode 100644 index f9ea4c263e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_closure import AdminTaskClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskClosure(unittest.TestCase): - """AdminTaskClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskClosure(self): - """Test AdminTaskClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_closure.AdminTaskClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py deleted file mode 100644 index 182a6e9c39..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_execution_closure import AdminTaskExecutionClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskExecutionClosure(unittest.TestCase): - """AdminTaskExecutionClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskExecutionClosure(self): - """Test AdminTaskExecutionClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_execution_closure.AdminTaskExecutionClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py deleted file mode 100644 index 0c4208e35b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_execution_event_request import AdminTaskExecutionEventRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskExecutionEventRequest(unittest.TestCase): - """AdminTaskExecutionEventRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskExecutionEventRequest(self): - """Test AdminTaskExecutionEventRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_execution_event_request.AdminTaskExecutionEventRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py deleted file mode 100644 index 8d0ed7621f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_event_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_execution_event_response import AdminTaskExecutionEventResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskExecutionEventResponse(unittest.TestCase): - """AdminTaskExecutionEventResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskExecutionEventResponse(self): - """Test AdminTaskExecutionEventResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_execution_event_response.AdminTaskExecutionEventResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py deleted file mode 100644 index d8f7588c71..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_get_data_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_execution_get_data_response import AdminTaskExecutionGetDataResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskExecutionGetDataResponse(unittest.TestCase): - """AdminTaskExecutionGetDataResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskExecutionGetDataResponse(self): - """Test AdminTaskExecutionGetDataResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_execution_get_data_response.AdminTaskExecutionGetDataResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py deleted file mode 100644 index d331a05ee8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_execution_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_execution_list import AdminTaskExecutionList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskExecutionList(unittest.TestCase): - """AdminTaskExecutionList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskExecutionList(self): - """Test AdminTaskExecutionList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_execution_list.AdminTaskExecutionList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py deleted file mode 100644 index 8cc379d203..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_list import AdminTaskList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskList(unittest.TestCase): - """AdminTaskList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskList(self): - """Test AdminTaskList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_list.AdminTaskList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py deleted file mode 100644 index 718c67e3f8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_resource_attributes import AdminTaskResourceAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskResourceAttributes(unittest.TestCase): - """AdminTaskResourceAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskResourceAttributes(self): - """Test AdminTaskResourceAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_resource_attributes.AdminTaskResourceAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py deleted file mode 100644 index 3f02df671e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_resource_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_resource_spec import AdminTaskResourceSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskResourceSpec(unittest.TestCase): - """AdminTaskResourceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskResourceSpec(self): - """Test AdminTaskResourceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_resource_spec.AdminTaskResourceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py deleted file mode 100644 index 1103ee9280..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_task_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_task_spec import AdminTaskSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminTaskSpec(unittest.TestCase): - """AdminTaskSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminTaskSpec(self): - """Test AdminTaskSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_task_spec.AdminTaskSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py deleted file mode 100644 index a990bf14dd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_url_blob.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_url_blob import AdminUrlBlob # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminUrlBlob(unittest.TestCase): - """AdminUrlBlob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminUrlBlob(self): - """Test AdminUrlBlob""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_url_blob.AdminUrlBlob() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py deleted file mode 100644 index d89f6acf1f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_version.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_version import AdminVersion # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminVersion(unittest.TestCase): - """AdminVersion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminVersion(self): - """Test AdminVersion""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_version.AdminVersion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py deleted file mode 100644 index c6f05d6f69..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow import AdminWorkflow # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflow(unittest.TestCase): - """AdminWorkflow unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflow(self): - """Test AdminWorkflow""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow.AdminWorkflow() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py deleted file mode 100644 index 14d1a17087..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes import AdminWorkflowAttributes # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributes(unittest.TestCase): - """AdminWorkflowAttributes unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributes(self): - """Test AdminWorkflowAttributes""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes.AdminWorkflowAttributes() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py deleted file mode 100644 index 1371760db0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes_delete_request import AdminWorkflowAttributesDeleteRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributesDeleteRequest(unittest.TestCase): - """AdminWorkflowAttributesDeleteRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributesDeleteRequest(self): - """Test AdminWorkflowAttributesDeleteRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes_delete_request.AdminWorkflowAttributesDeleteRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py deleted file mode 100644 index 2fd4861012..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_delete_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes_delete_response import AdminWorkflowAttributesDeleteResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributesDeleteResponse(unittest.TestCase): - """AdminWorkflowAttributesDeleteResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributesDeleteResponse(self): - """Test AdminWorkflowAttributesDeleteResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes_delete_response.AdminWorkflowAttributesDeleteResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py deleted file mode 100644 index 14eb77de4b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_get_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes_get_response import AdminWorkflowAttributesGetResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributesGetResponse(unittest.TestCase): - """AdminWorkflowAttributesGetResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributesGetResponse(self): - """Test AdminWorkflowAttributesGetResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes_get_response.AdminWorkflowAttributesGetResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py deleted file mode 100644 index ce0e546c20..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes_update_request import AdminWorkflowAttributesUpdateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributesUpdateRequest(unittest.TestCase): - """AdminWorkflowAttributesUpdateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributesUpdateRequest(self): - """Test AdminWorkflowAttributesUpdateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes_update_request.AdminWorkflowAttributesUpdateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py deleted file mode 100644 index 6e299cfeb7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_attributes_update_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_attributes_update_response import AdminWorkflowAttributesUpdateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowAttributesUpdateResponse(unittest.TestCase): - """AdminWorkflowAttributesUpdateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowAttributesUpdateResponse(self): - """Test AdminWorkflowAttributesUpdateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_attributes_update_response.AdminWorkflowAttributesUpdateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py deleted file mode 100644 index 21e36219f9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_closure import AdminWorkflowClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowClosure(unittest.TestCase): - """AdminWorkflowClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowClosure(self): - """Test AdminWorkflowClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_closure.AdminWorkflowClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py deleted file mode 100644 index 891580dcb5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_create_request import AdminWorkflowCreateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowCreateRequest(unittest.TestCase): - """AdminWorkflowCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowCreateRequest(self): - """Test AdminWorkflowCreateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_create_request.AdminWorkflowCreateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py deleted file mode 100644 index 0c0225f054..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_create_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_create_response import AdminWorkflowCreateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowCreateResponse(unittest.TestCase): - """AdminWorkflowCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowCreateResponse(self): - """Test AdminWorkflowCreateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_create_response.AdminWorkflowCreateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py deleted file mode 100644 index 02ebdcb454..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_config.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_execution_config import AdminWorkflowExecutionConfig # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowExecutionConfig(unittest.TestCase): - """AdminWorkflowExecutionConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowExecutionConfig(self): - """Test AdminWorkflowExecutionConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_execution_config.AdminWorkflowExecutionConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py deleted file mode 100644 index c7d3b3833c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_execution_event_request import AdminWorkflowExecutionEventRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowExecutionEventRequest(unittest.TestCase): - """AdminWorkflowExecutionEventRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowExecutionEventRequest(self): - """Test AdminWorkflowExecutionEventRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_execution_event_request.AdminWorkflowExecutionEventRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py deleted file mode 100644 index 7341cc1a6d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_event_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_execution_event_response import AdminWorkflowExecutionEventResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowExecutionEventResponse(unittest.TestCase): - """AdminWorkflowExecutionEventResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowExecutionEventResponse(self): - """Test AdminWorkflowExecutionEventResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_execution_event_response.AdminWorkflowExecutionEventResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py deleted file mode 100644 index 8223916f6f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_data_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_execution_get_data_response import AdminWorkflowExecutionGetDataResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowExecutionGetDataResponse(unittest.TestCase): - """AdminWorkflowExecutionGetDataResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowExecutionGetDataResponse(self): - """Test AdminWorkflowExecutionGetDataResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_execution_get_data_response.AdminWorkflowExecutionGetDataResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py deleted file mode 100644 index 58eeaa0baf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_execution_get_metrics_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_execution_get_metrics_response import AdminWorkflowExecutionGetMetricsResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowExecutionGetMetricsResponse(unittest.TestCase): - """AdminWorkflowExecutionGetMetricsResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowExecutionGetMetricsResponse(self): - """Test AdminWorkflowExecutionGetMetricsResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_execution_get_metrics_response.AdminWorkflowExecutionGetMetricsResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py deleted file mode 100644 index 83162478f2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_list import AdminWorkflowList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowList(unittest.TestCase): - """AdminWorkflowList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowList(self): - """Test AdminWorkflowList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_list.AdminWorkflowList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py deleted file mode 100644 index 1734a4f999..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_admin_workflow_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.admin_workflow_spec import AdminWorkflowSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestAdminWorkflowSpec(unittest.TestCase): - """AdminWorkflowSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testAdminWorkflowSpec(self): - """Test AdminWorkflowSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.admin_workflow_spec.AdminWorkflowSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py deleted file mode 100644 index d20ddcca9e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_blob_type_blob_dimensionality.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.blob_type_blob_dimensionality import BlobTypeBlobDimensionality # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestBlobTypeBlobDimensionality(unittest.TestCase): - """BlobTypeBlobDimensionality unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testBlobTypeBlobDimensionality(self): - """Test BlobTypeBlobDimensionality""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.blob_type_blob_dimensionality.BlobTypeBlobDimensionality() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py deleted file mode 100644 index 1e797b8aaf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_catalog_reservation_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.catalog_reservation_status import CatalogReservationStatus # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCatalogReservationStatus(unittest.TestCase): - """CatalogReservationStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCatalogReservationStatus(self): - """Test CatalogReservationStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.catalog_reservation_status.CatalogReservationStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py deleted file mode 100644 index 577750bcb9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_comparison_expression_operator.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.comparison_expression_operator import ComparisonExpressionOperator # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestComparisonExpressionOperator(unittest.TestCase): - """ComparisonExpressionOperator unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testComparisonExpressionOperator(self): - """Test ComparisonExpressionOperator""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.comparison_expression_operator.ComparisonExpressionOperator() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py deleted file mode 100644 index cb10dbf8af..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_conjunction_expression_logical_operator.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.conjunction_expression_logical_operator import ConjunctionExpressionLogicalOperator # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestConjunctionExpressionLogicalOperator(unittest.TestCase): - """ConjunctionExpressionLogicalOperator unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConjunctionExpressionLogicalOperator(self): - """Test ConjunctionExpressionLogicalOperator""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.conjunction_expression_logical_operator.ConjunctionExpressionLogicalOperator() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py deleted file mode 100644 index 8b32f6860c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_connection_set_id_list.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.connection_set_id_list import ConnectionSetIdList # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestConnectionSetIdList(unittest.TestCase): - """ConnectionSetIdList unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testConnectionSetIdList(self): - """Test ConnectionSetIdList""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.connection_set_id_list.ConnectionSetIdList() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py deleted file mode 100644 index ab878f4053..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_container_architecture.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.container_architecture import ContainerArchitecture # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestContainerArchitecture(unittest.TestCase): - """ContainerArchitecture unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testContainerArchitecture(self): - """Test ContainerArchitecture""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.container_architecture.ContainerArchitecture() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py deleted file mode 100644 index e08d977e7f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_alias.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_alias import CoreAlias # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreAlias(unittest.TestCase): - """CoreAlias unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreAlias(self): - """Test CoreAlias""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_alias.CoreAlias() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py deleted file mode 100644 index 5ae11c3eb9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_approve_condition.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_approve_condition import CoreApproveCondition # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreApproveCondition(unittest.TestCase): - """CoreApproveCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreApproveCondition(self): - """Test CoreApproveCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_approve_condition.CoreApproveCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py deleted file mode 100644 index 5b3cb828c8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_array_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_array_node import CoreArrayNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArrayNode(unittest.TestCase): - """CoreArrayNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArrayNode(self): - """Test CoreArrayNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_array_node.CoreArrayNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_binding_data.py deleted file mode 100644 index b8bddd5f31..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_binding_data.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_artifact_binding_data import CoreArtifactBindingData # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArtifactBindingData(unittest.TestCase): - """CoreArtifactBindingData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArtifactBindingData(self): - """Test CoreArtifactBindingData""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_artifact_binding_data.CoreArtifactBindingData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_id.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_id.py deleted file mode 100644 index a53c965fb0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_id.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_artifact_id import CoreArtifactID # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArtifactID(unittest.TestCase): - """CoreArtifactID unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArtifactID(self): - """Test CoreArtifactID""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_artifact_id.CoreArtifactID() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_key.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_key.py deleted file mode 100644 index 72ed469119..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_key.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_artifact_key import CoreArtifactKey # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArtifactKey(unittest.TestCase): - """CoreArtifactKey unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArtifactKey(self): - """Test CoreArtifactKey""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_artifact_key.CoreArtifactKey() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_query.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_query.py deleted file mode 100644 index 9edf91e3ba..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_query.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_artifact_query import CoreArtifactQuery # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArtifactQuery(unittest.TestCase): - """CoreArtifactQuery unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArtifactQuery(self): - """Test CoreArtifactQuery""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_artifact_query.CoreArtifactQuery() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_tag.py deleted file mode 100644 index fbc9f058d2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_artifact_tag.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_artifact_tag import CoreArtifactTag # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreArtifactTag(unittest.TestCase): - """CoreArtifactTag unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreArtifactTag(self): - """Test CoreArtifactTag""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_artifact_tag.CoreArtifactTag() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py deleted file mode 100644 index 939b79064b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binary.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_binary import CoreBinary # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBinary(unittest.TestCase): - """CoreBinary unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBinary(self): - """Test CoreBinary""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_binary.CoreBinary() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py deleted file mode 100644 index 3219ef5387..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_binding import CoreBinding # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBinding(unittest.TestCase): - """CoreBinding unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBinding(self): - """Test CoreBinding""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_binding.CoreBinding() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py deleted file mode 100644 index 77b747420f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_binding_data import CoreBindingData # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBindingData(unittest.TestCase): - """CoreBindingData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBindingData(self): - """Test CoreBindingData""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_binding_data.CoreBindingData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py deleted file mode 100644 index 70d9c49bff..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_collection.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_binding_data_collection import CoreBindingDataCollection # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBindingDataCollection(unittest.TestCase): - """CoreBindingDataCollection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBindingDataCollection(self): - """Test CoreBindingDataCollection""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_binding_data_collection.CoreBindingDataCollection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py deleted file mode 100644 index 51ce1d0f1e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_binding_data_map.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_binding_data_map import CoreBindingDataMap # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBindingDataMap(unittest.TestCase): - """CoreBindingDataMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBindingDataMap(self): - """Test CoreBindingDataMap""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_binding_data_map.CoreBindingDataMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py deleted file mode 100644 index eccd729f96..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_blob import CoreBlob # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBlob(unittest.TestCase): - """CoreBlob unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBlob(self): - """Test CoreBlob""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_blob.CoreBlob() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py deleted file mode 100644 index c71578301a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_blob_metadata import CoreBlobMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBlobMetadata(unittest.TestCase): - """CoreBlobMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBlobMetadata(self): - """Test CoreBlobMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_blob_metadata.CoreBlobMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py deleted file mode 100644 index fbfd0e531e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_blob_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_blob_type import CoreBlobType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBlobType(unittest.TestCase): - """CoreBlobType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBlobType(self): - """Test CoreBlobType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_blob_type.CoreBlobType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py deleted file mode 100644 index 8cc7da37bf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_boolean_expression.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_boolean_expression import CoreBooleanExpression # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBooleanExpression(unittest.TestCase): - """CoreBooleanExpression unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBooleanExpression(self): - """Test CoreBooleanExpression""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_boolean_expression.CoreBooleanExpression() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py deleted file mode 100644 index 229ef6e41a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_branch_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_branch_node import CoreBranchNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreBranchNode(unittest.TestCase): - """CoreBranchNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreBranchNode(self): - """Test CoreBranchNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_branch_node.CoreBranchNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py deleted file mode 100644 index c97c55bbf2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_artifact_tag.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_catalog_artifact_tag import CoreCatalogArtifactTag # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCatalogArtifactTag(unittest.TestCase): - """CoreCatalogArtifactTag unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCatalogArtifactTag(self): - """Test CoreCatalogArtifactTag""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_catalog_artifact_tag.CoreCatalogArtifactTag() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py deleted file mode 100644 index e478da8890..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_cache_status.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_catalog_cache_status import CoreCatalogCacheStatus # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCatalogCacheStatus(unittest.TestCase): - """CoreCatalogCacheStatus unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCatalogCacheStatus(self): - """Test CoreCatalogCacheStatus""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_catalog_cache_status.CoreCatalogCacheStatus() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py deleted file mode 100644 index 9bc47d8d6e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_catalog_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_catalog_metadata import CoreCatalogMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCatalogMetadata(unittest.TestCase): - """CoreCatalogMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCatalogMetadata(self): - """Test CoreCatalogMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_catalog_metadata.CoreCatalogMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py deleted file mode 100644 index 15bdc2da37..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_comparison_expression.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_comparison_expression import CoreComparisonExpression # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreComparisonExpression(unittest.TestCase): - """CoreComparisonExpression unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreComparisonExpression(self): - """Test CoreComparisonExpression""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_comparison_expression.CoreComparisonExpression() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py deleted file mode 100644 index 8823c3e148..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_task.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_compiled_task import CoreCompiledTask # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCompiledTask(unittest.TestCase): - """CoreCompiledTask unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCompiledTask(self): - """Test CoreCompiledTask""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_compiled_task.CoreCompiledTask() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py deleted file mode 100644 index f19d9cdab8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_compiled_workflow import CoreCompiledWorkflow # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCompiledWorkflow(unittest.TestCase): - """CoreCompiledWorkflow unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCompiledWorkflow(self): - """Test CoreCompiledWorkflow""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_compiled_workflow.CoreCompiledWorkflow() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py deleted file mode 100644 index 86de9922b6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_compiled_workflow_closure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_compiled_workflow_closure import CoreCompiledWorkflowClosure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreCompiledWorkflowClosure(unittest.TestCase): - """CoreCompiledWorkflowClosure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreCompiledWorkflowClosure(self): - """Test CoreCompiledWorkflowClosure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_compiled_workflow_closure.CoreCompiledWorkflowClosure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py deleted file mode 100644 index 1aa1a0d3bf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_conjunction_expression.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_conjunction_expression import CoreConjunctionExpression # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreConjunctionExpression(unittest.TestCase): - """CoreConjunctionExpression unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreConjunctionExpression(self): - """Test CoreConjunctionExpression""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_conjunction_expression.CoreConjunctionExpression() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py deleted file mode 100644 index 55039a322b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_connection_set.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_connection_set import CoreConnectionSet # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreConnectionSet(unittest.TestCase): - """CoreConnectionSet unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreConnectionSet(self): - """Test CoreConnectionSet""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_connection_set.CoreConnectionSet() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py deleted file mode 100644 index 0d067c6c4d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_container import CoreContainer # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreContainer(unittest.TestCase): - """CoreContainer unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreContainer(self): - """Test CoreContainer""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_container.CoreContainer() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py deleted file mode 100644 index df6d682e2d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_container_port.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_container_port import CoreContainerPort # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreContainerPort(unittest.TestCase): - """CoreContainerPort unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreContainerPort(self): - """Test CoreContainerPort""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_container_port.CoreContainerPort() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py deleted file mode 100644 index 3e66fb838a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_data_loading_config.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_data_loading_config import CoreDataLoadingConfig # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreDataLoadingConfig(unittest.TestCase): - """CoreDataLoadingConfig unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreDataLoadingConfig(self): - """Test CoreDataLoadingConfig""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_data_loading_config.CoreDataLoadingConfig() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py deleted file mode 100644 index f13f76b41e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_enum_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_enum_type import CoreEnumType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreEnumType(unittest.TestCase): - """CoreEnumType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreEnumType(self): - """Test CoreEnumType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_enum_type.CoreEnumType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py deleted file mode 100644 index bf094e6568..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_error.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_error import CoreError # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreError(unittest.TestCase): - """CoreError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreError(self): - """Test CoreError""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_error.CoreError() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py deleted file mode 100644 index b802fdfc5b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_execution_error.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_execution_error import CoreExecutionError # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreExecutionError(unittest.TestCase): - """CoreExecutionError unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreExecutionError(self): - """Test CoreExecutionError""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_execution_error.CoreExecutionError() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_extended_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_extended_resources.py deleted file mode 100644 index ec6edecb75..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_extended_resources.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_extended_resources import CoreExtendedResources # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreExtendedResources(unittest.TestCase): - """CoreExtendedResources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreExtendedResources(self): - """Test CoreExtendedResources""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_extended_resources.CoreExtendedResources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py deleted file mode 100644 index bc6a966ffe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gate_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_gate_node import CoreGateNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreGateNode(unittest.TestCase): - """CoreGateNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreGateNode(self): - """Test CoreGateNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_gate_node.CoreGateNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gpu_accelerator.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gpu_accelerator.py deleted file mode 100644 index aa99885e5f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_gpu_accelerator.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_gpu_accelerator import CoreGPUAccelerator # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreGPUAccelerator(unittest.TestCase): - """CoreGPUAccelerator unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreGPUAccelerator(self): - """Test CoreGPUAccelerator""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_gpu_accelerator.CoreGPUAccelerator() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py deleted file mode 100644 index 67d59d762f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_identifier import CoreIdentifier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreIdentifier(unittest.TestCase): - """CoreIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreIdentifier(self): - """Test CoreIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_identifier.CoreIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py deleted file mode 100644 index cfcfa86b90..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_identity.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_identity import CoreIdentity # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreIdentity(unittest.TestCase): - """CoreIdentity unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreIdentity(self): - """Test CoreIdentity""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_identity.CoreIdentity() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py deleted file mode 100644 index de10f6131b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_block.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_if_block import CoreIfBlock # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreIfBlock(unittest.TestCase): - """CoreIfBlock unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreIfBlock(self): - """Test CoreIfBlock""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_if_block.CoreIfBlock() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py deleted file mode 100644 index c0807d2e55..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_if_else_block.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_if_else_block import CoreIfElseBlock # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreIfElseBlock(unittest.TestCase): - """CoreIfElseBlock unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreIfElseBlock(self): - """Test CoreIfElseBlock""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_if_else_block.CoreIfElseBlock() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_input_binding_data.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_input_binding_data.py deleted file mode 100644 index 2afb623d9a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_input_binding_data.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_input_binding_data import CoreInputBindingData # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreInputBindingData(unittest.TestCase): - """CoreInputBindingData unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreInputBindingData(self): - """Test CoreInputBindingData""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_input_binding_data.CoreInputBindingData() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py deleted file mode 100644 index ce24dadfd2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_io_strategy.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_io_strategy import CoreIOStrategy # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreIOStrategy(unittest.TestCase): - """CoreIOStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreIOStrategy(self): - """Test CoreIOStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_io_strategy.CoreIOStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py deleted file mode 100644 index 8659bc5603..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_object_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_k8s_object_metadata import CoreK8sObjectMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreK8sObjectMetadata(unittest.TestCase): - """CoreK8sObjectMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreK8sObjectMetadata(self): - """Test CoreK8sObjectMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_k8s_object_metadata.CoreK8sObjectMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py deleted file mode 100644 index d462530260..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_k8s_pod.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_k8s_pod import CoreK8sPod # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreK8sPod(unittest.TestCase): - """CoreK8sPod unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreK8sPod(self): - """Test CoreK8sPod""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_k8s_pod.CoreK8sPod() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py deleted file mode 100644 index 9d8101b241..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_key_value_pair.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_key_value_pair import CoreKeyValuePair # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreKeyValuePair(unittest.TestCase): - """CoreKeyValuePair unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreKeyValuePair(self): - """Test CoreKeyValuePair""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_key_value_pair.CoreKeyValuePair() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_label_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_label_value.py deleted file mode 100644 index 505dba75e2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_label_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_label_value import CoreLabelValue # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreLabelValue(unittest.TestCase): - """CoreLabelValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreLabelValue(self): - """Test CoreLabelValue""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_label_value.CoreLabelValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py deleted file mode 100644 index 4340c97ec9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_literal import CoreLiteral # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreLiteral(unittest.TestCase): - """CoreLiteral unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreLiteral(self): - """Test CoreLiteral""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_literal.CoreLiteral() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py deleted file mode 100644 index d365b0ae7d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_collection.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_literal_collection import CoreLiteralCollection # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreLiteralCollection(unittest.TestCase): - """CoreLiteralCollection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreLiteralCollection(self): - """Test CoreLiteralCollection""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_literal_collection.CoreLiteralCollection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py deleted file mode 100644 index d9e8d764e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_map.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_literal_map import CoreLiteralMap # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreLiteralMap(unittest.TestCase): - """CoreLiteralMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreLiteralMap(self): - """Test CoreLiteralMap""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_literal_map.CoreLiteralMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py deleted file mode 100644 index 82c222dfa4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_literal_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_literal_type import CoreLiteralType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreLiteralType(unittest.TestCase): - """CoreLiteralType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreLiteralType(self): - """Test CoreLiteralType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_literal_type.CoreLiteralType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py deleted file mode 100644 index 735b1e75e7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_node import CoreNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreNode(unittest.TestCase): - """CoreNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreNode(self): - """Test CoreNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_node.CoreNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py deleted file mode 100644 index 995b4a879f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_node_execution_identifier import CoreNodeExecutionIdentifier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreNodeExecutionIdentifier(unittest.TestCase): - """CoreNodeExecutionIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreNodeExecutionIdentifier(self): - """Test CoreNodeExecutionIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_node_execution_identifier.CoreNodeExecutionIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py deleted file mode 100644 index b07efd43c3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_execution_phase.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_node_execution_phase import CoreNodeExecutionPhase # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreNodeExecutionPhase(unittest.TestCase): - """CoreNodeExecutionPhase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreNodeExecutionPhase(self): - """Test CoreNodeExecutionPhase""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_node_execution_phase.CoreNodeExecutionPhase() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py deleted file mode 100644 index 21511eeb13..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_node_metadata import CoreNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreNodeMetadata(unittest.TestCase): - """CoreNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreNodeMetadata(self): - """Test CoreNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_node_metadata.CoreNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py deleted file mode 100644 index dc0001bbd4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_client.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_o_auth2_client import CoreOAuth2Client # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreOAuth2Client(unittest.TestCase): - """CoreOAuth2Client unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreOAuth2Client(self): - """Test CoreOAuth2Client""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_o_auth2_client.CoreOAuth2Client() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py deleted file mode 100644 index 492200f7f8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_o_auth2_token_request import CoreOAuth2TokenRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreOAuth2TokenRequest(unittest.TestCase): - """CoreOAuth2TokenRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreOAuth2TokenRequest(self): - """Test CoreOAuth2TokenRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_o_auth2_token_request.CoreOAuth2TokenRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py deleted file mode 100644 index 87c81de602..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_o_auth2_token_request_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_o_auth2_token_request_type import CoreOAuth2TokenRequestType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreOAuth2TokenRequestType(unittest.TestCase): - """CoreOAuth2TokenRequestType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreOAuth2TokenRequestType(self): - """Test CoreOAuth2TokenRequestType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_o_auth2_token_request_type.CoreOAuth2TokenRequestType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py deleted file mode 100644 index f160e48f3e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_operand.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_operand import CoreOperand # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreOperand(unittest.TestCase): - """CoreOperand unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreOperand(self): - """Test CoreOperand""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_operand.CoreOperand() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py deleted file mode 100644 index 8860a35b25..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_output_reference.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_output_reference import CoreOutputReference # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreOutputReference(unittest.TestCase): - """CoreOutputReference unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreOutputReference(self): - """Test CoreOutputReference""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_output_reference.CoreOutputReference() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py deleted file mode 100644 index 6821a39782..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_parameter import CoreParameter # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreParameter(unittest.TestCase): - """CoreParameter unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreParameter(self): - """Test CoreParameter""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_parameter.CoreParameter() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py deleted file mode 100644 index 901cadf694..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_parameter_map.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_parameter_map import CoreParameterMap # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreParameterMap(unittest.TestCase): - """CoreParameterMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreParameterMap(self): - """Test CoreParameterMap""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_parameter_map.CoreParameterMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_partitions.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_partitions.py deleted file mode 100644 index b79cf8551e..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_partitions.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_partitions import CorePartitions # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCorePartitions(unittest.TestCase): - """CorePartitions unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCorePartitions(self): - """Test CorePartitions""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_partitions.CorePartitions() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py deleted file mode 100644 index 3162d68971..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_primitive.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_primitive import CorePrimitive # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCorePrimitive(unittest.TestCase): - """CorePrimitive unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCorePrimitive(self): - """Test CorePrimitive""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_primitive.CorePrimitive() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_promise_attribute.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_promise_attribute.py deleted file mode 100644 index 801fb7a522..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_promise_attribute.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_promise_attribute import CorePromiseAttribute # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCorePromiseAttribute(unittest.TestCase): - """CorePromiseAttribute unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCorePromiseAttribute(self): - """Test CorePromiseAttribute""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_promise_attribute.CorePromiseAttribute() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py deleted file mode 100644 index 127aa3f11d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_quality_of_service import CoreQualityOfService # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreQualityOfService(unittest.TestCase): - """CoreQualityOfService unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreQualityOfService(self): - """Test CoreQualityOfService""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_quality_of_service.CoreQualityOfService() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py deleted file mode 100644 index 0a4234ebd6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_quality_of_service_spec.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_quality_of_service_spec import CoreQualityOfServiceSpec # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreQualityOfServiceSpec(unittest.TestCase): - """CoreQualityOfServiceSpec unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreQualityOfServiceSpec(self): - """Test CoreQualityOfServiceSpec""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_quality_of_service_spec.CoreQualityOfServiceSpec() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py deleted file mode 100644 index f69fbff104..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resource_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_resource_type import CoreResourceType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreResourceType(unittest.TestCase): - """CoreResourceType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreResourceType(self): - """Test CoreResourceType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_resource_type.CoreResourceType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py deleted file mode 100644 index 144c2a03f9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_resources.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_resources import CoreResources # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreResources(unittest.TestCase): - """CoreResources unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreResources(self): - """Test CoreResources""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_resources.CoreResources() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py deleted file mode 100644 index c64f4b370d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_retry_strategy.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_retry_strategy import CoreRetryStrategy # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreRetryStrategy(unittest.TestCase): - """CoreRetryStrategy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreRetryStrategy(self): - """Test CoreRetryStrategy""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_retry_strategy.CoreRetryStrategy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py deleted file mode 100644 index 1db01a110a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_runtime_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_runtime_metadata import CoreRuntimeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreRuntimeMetadata(unittest.TestCase): - """CoreRuntimeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreRuntimeMetadata(self): - """Test CoreRuntimeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_runtime_metadata.CoreRuntimeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py deleted file mode 100644 index 3eda847bc9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_scalar.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_scalar import CoreScalar # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreScalar(unittest.TestCase): - """CoreScalar unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreScalar(self): - """Test CoreScalar""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_scalar.CoreScalar() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py deleted file mode 100644 index fa3d7ce39b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_schema import CoreSchema # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSchema(unittest.TestCase): - """CoreSchema unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSchema(self): - """Test CoreSchema""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_schema.CoreSchema() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py deleted file mode 100644 index b74b186689..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_schema_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_schema_type import CoreSchemaType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSchemaType(unittest.TestCase): - """CoreSchemaType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSchemaType(self): - """Test CoreSchemaType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_schema_type.CoreSchemaType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py deleted file mode 100644 index 891702bef7..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_secret.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_secret import CoreSecret # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSecret(unittest.TestCase): - """CoreSecret unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSecret(self): - """Test CoreSecret""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_secret.CoreSecret() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py deleted file mode 100644 index 1ee669ba52..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_security_context.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_security_context import CoreSecurityContext # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSecurityContext(unittest.TestCase): - """CoreSecurityContext unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSecurityContext(self): - """Test CoreSecurityContext""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_security_context.CoreSecurityContext() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py deleted file mode 100644 index 4d05f4a9dd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_signal_condition.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_signal_condition import CoreSignalCondition # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSignalCondition(unittest.TestCase): - """CoreSignalCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSignalCondition(self): - """Test CoreSignalCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_signal_condition.CoreSignalCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py deleted file mode 100644 index 49c7d3229b..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_simple_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_simple_type import CoreSimpleType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSimpleType(unittest.TestCase): - """CoreSimpleType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSimpleType(self): - """Test CoreSimpleType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_simple_type.CoreSimpleType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py deleted file mode 100644 index 703fb1c9c1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sleep_condition.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_sleep_condition import CoreSleepCondition # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSleepCondition(unittest.TestCase): - """CoreSleepCondition unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSleepCondition(self): - """Test CoreSleepCondition""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_sleep_condition.CoreSleepCondition() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py deleted file mode 100644 index 0e445a9696..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_span.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_span import CoreSpan # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSpan(unittest.TestCase): - """CoreSpan unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSpan(self): - """Test CoreSpan""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_span.CoreSpan() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py deleted file mode 100644 index 458b1172ca..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_sql.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_sql import CoreSql # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreSql(unittest.TestCase): - """CoreSql unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreSql(self): - """Test CoreSql""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_sql.CoreSql() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py deleted file mode 100644 index c9de25a4d8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_structured_dataset import CoreStructuredDataset # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreStructuredDataset(unittest.TestCase): - """CoreStructuredDataset unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreStructuredDataset(self): - """Test CoreStructuredDataset""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_structured_dataset.CoreStructuredDataset() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py deleted file mode 100644 index 49fc7f96ac..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_structured_dataset_metadata import CoreStructuredDatasetMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreStructuredDatasetMetadata(unittest.TestCase): - """CoreStructuredDatasetMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreStructuredDatasetMetadata(self): - """Test CoreStructuredDatasetMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_structured_dataset_metadata.CoreStructuredDatasetMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py deleted file mode 100644 index 98b5cd71c9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_structured_dataset_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_structured_dataset_type import CoreStructuredDatasetType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreStructuredDatasetType(unittest.TestCase): - """CoreStructuredDatasetType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreStructuredDatasetType(self): - """Test CoreStructuredDatasetType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_structured_dataset_type.CoreStructuredDatasetType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py deleted file mode 100644 index f1054997e3..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_execution_identifier import CoreTaskExecutionIdentifier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskExecutionIdentifier(unittest.TestCase): - """CoreTaskExecutionIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskExecutionIdentifier(self): - """Test CoreTaskExecutionIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_execution_identifier.CoreTaskExecutionIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py deleted file mode 100644 index 72103d0d28..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_execution_phase.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_execution_phase import CoreTaskExecutionPhase # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskExecutionPhase(unittest.TestCase): - """CoreTaskExecutionPhase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskExecutionPhase(self): - """Test CoreTaskExecutionPhase""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_execution_phase.CoreTaskExecutionPhase() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py deleted file mode 100644 index 16af90f74c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_log.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_log import CoreTaskLog # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskLog(unittest.TestCase): - """CoreTaskLog unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskLog(self): - """Test CoreTaskLog""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_log.CoreTaskLog() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py deleted file mode 100644 index 0c837f31fd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_metadata import CoreTaskMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskMetadata(unittest.TestCase): - """CoreTaskMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskMetadata(self): - """Test CoreTaskMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_metadata.CoreTaskMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py deleted file mode 100644 index c333213d22..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_node import CoreTaskNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskNode(unittest.TestCase): - """CoreTaskNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskNode(self): - """Test CoreTaskNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_node.CoreTaskNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py deleted file mode 100644 index 0124d5fe38..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_node_overrides.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_node_overrides import CoreTaskNodeOverrides # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskNodeOverrides(unittest.TestCase): - """CoreTaskNodeOverrides unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskNodeOverrides(self): - """Test CoreTaskNodeOverrides""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_node_overrides.CoreTaskNodeOverrides() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py deleted file mode 100644 index 0d91a59cde..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_task_template.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_task_template import CoreTaskTemplate # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTaskTemplate(unittest.TestCase): - """CoreTaskTemplate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTaskTemplate(self): - """Test CoreTaskTemplate""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_task_template.CoreTaskTemplate() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py deleted file mode 100644 index 91b76ec7a6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_annotation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_type_annotation import CoreTypeAnnotation # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTypeAnnotation(unittest.TestCase): - """CoreTypeAnnotation unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTypeAnnotation(self): - """Test CoreTypeAnnotation""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_type_annotation.CoreTypeAnnotation() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py deleted file mode 100644 index 853bc08363..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_type_structure.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_type_structure import CoreTypeStructure # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTypeStructure(unittest.TestCase): - """CoreTypeStructure unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTypeStructure(self): - """Test CoreTypeStructure""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_type_structure.CoreTypeStructure() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py deleted file mode 100644 index 62d303ae96..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_typed_interface.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_typed_interface import CoreTypedInterface # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreTypedInterface(unittest.TestCase): - """CoreTypedInterface unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreTypedInterface(self): - """Test CoreTypedInterface""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_typed_interface.CoreTypedInterface() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py deleted file mode 100644 index c36c63b00d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_union import CoreUnion # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreUnion(unittest.TestCase): - """CoreUnion unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreUnion(self): - """Test CoreUnion""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_union.CoreUnion() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py deleted file mode 100644 index 8cf030acc6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_union_info import CoreUnionInfo # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreUnionInfo(unittest.TestCase): - """CoreUnionInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreUnionInfo(self): - """Test CoreUnionInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_union_info.CoreUnionInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py deleted file mode 100644 index 4de1e428ec..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_union_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_union_type import CoreUnionType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreUnionType(unittest.TestCase): - """CoreUnionType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreUnionType(self): - """Test CoreUnionType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_union_type.CoreUnionType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py deleted file mode 100644 index 38a04b0084..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_variable import CoreVariable # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreVariable(unittest.TestCase): - """CoreVariable unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreVariable(self): - """Test CoreVariable""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_variable.CoreVariable() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py deleted file mode 100644 index 0d190536e2..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_variable_map.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_variable_map import CoreVariableMap # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreVariableMap(unittest.TestCase): - """CoreVariableMap unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreVariableMap(self): - """Test CoreVariableMap""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_variable_map.CoreVariableMap() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py deleted file mode 100644 index ff951ae6e6..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_void.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_void import CoreVoid # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreVoid(unittest.TestCase): - """CoreVoid unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreVoid(self): - """Test CoreVoid""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_void.CoreVoid() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py deleted file mode 100644 index 16e58b654d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_identifier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_execution_identifier import CoreWorkflowExecutionIdentifier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowExecutionIdentifier(unittest.TestCase): - """CoreWorkflowExecutionIdentifier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowExecutionIdentifier(self): - """Test CoreWorkflowExecutionIdentifier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_execution_identifier.CoreWorkflowExecutionIdentifier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py deleted file mode 100644 index 7926ebcded..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_execution_phase.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_execution_phase import CoreWorkflowExecutionPhase # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowExecutionPhase(unittest.TestCase): - """CoreWorkflowExecutionPhase unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowExecutionPhase(self): - """Test CoreWorkflowExecutionPhase""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_execution_phase.CoreWorkflowExecutionPhase() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py deleted file mode 100644 index 8c3c210d80..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_metadata import CoreWorkflowMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowMetadata(unittest.TestCase): - """CoreWorkflowMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowMetadata(self): - """Test CoreWorkflowMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_metadata.CoreWorkflowMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py deleted file mode 100644 index d738a2ca53..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_metadata_defaults.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_metadata_defaults import CoreWorkflowMetadataDefaults # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowMetadataDefaults(unittest.TestCase): - """CoreWorkflowMetadataDefaults unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowMetadataDefaults(self): - """Test CoreWorkflowMetadataDefaults""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_metadata_defaults.CoreWorkflowMetadataDefaults() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py deleted file mode 100644 index 4500cf70cf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_node.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_node import CoreWorkflowNode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowNode(unittest.TestCase): - """CoreWorkflowNode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowNode(self): - """Test CoreWorkflowNode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_node.CoreWorkflowNode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py deleted file mode 100644 index 847fd2ae70..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_core_workflow_template.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.core_workflow_template import CoreWorkflowTemplate # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestCoreWorkflowTemplate(unittest.TestCase): - """CoreWorkflowTemplate unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testCoreWorkflowTemplate(self): - """Test CoreWorkflowTemplate""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.core_workflow_template.CoreWorkflowTemplate() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py deleted file mode 100644 index 1f96ce5d92..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_data_loading_config_literal_map_format.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.data_loading_config_literal_map_format import DataLoadingConfigLiteralMapFormat # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestDataLoadingConfigLiteralMapFormat(unittest.TestCase): - """DataLoadingConfigLiteralMapFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testDataLoadingConfigLiteralMapFormat(self): - """Test DataLoadingConfigLiteralMapFormat""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.data_loading_config_literal_map_format.DataLoadingConfigLiteralMapFormat() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_event_reason.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_event_reason.py deleted file mode 100644 index 074be99c2d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_event_reason.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_event_reason import EventEventReason # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventEventReason(unittest.TestCase): - """EventEventReason unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventEventReason(self): - """Test EventEventReason""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_event_reason.EventEventReason() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py deleted file mode 100644 index bcfedce651..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_external_resource_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_external_resource_info import EventExternalResourceInfo # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventExternalResourceInfo(unittest.TestCase): - """EventExternalResourceInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventExternalResourceInfo(self): - """Test EventExternalResourceInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_external_resource_info.EventExternalResourceInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py deleted file mode 100644 index 2eebbd100d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_node_execution_event.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_node_execution_event import EventNodeExecutionEvent # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventNodeExecutionEvent(unittest.TestCase): - """EventNodeExecutionEvent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventNodeExecutionEvent(self): - """Test EventNodeExecutionEvent""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_node_execution_event.EventNodeExecutionEvent() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py deleted file mode 100644 index 3e91fb9a11..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_node_execution_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_parent_node_execution_metadata import EventParentNodeExecutionMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventParentNodeExecutionMetadata(unittest.TestCase): - """EventParentNodeExecutionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventParentNodeExecutionMetadata(self): - """Test EventParentNodeExecutionMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_parent_node_execution_metadata.EventParentNodeExecutionMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py deleted file mode 100644 index bbeae47143..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_parent_task_execution_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_parent_task_execution_metadata import EventParentTaskExecutionMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventParentTaskExecutionMetadata(unittest.TestCase): - """EventParentTaskExecutionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventParentTaskExecutionMetadata(self): - """Test EventParentTaskExecutionMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_parent_task_execution_metadata.EventParentTaskExecutionMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py deleted file mode 100644 index 78d2169435..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_resource_pool_info.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_resource_pool_info import EventResourcePoolInfo # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventResourcePoolInfo(unittest.TestCase): - """EventResourcePoolInfo unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventResourcePoolInfo(self): - """Test EventResourcePoolInfo""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_resource_pool_info.EventResourcePoolInfo() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py deleted file mode 100644 index ba834223be..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_task_execution_event.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_task_execution_event import EventTaskExecutionEvent # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventTaskExecutionEvent(unittest.TestCase): - """EventTaskExecutionEvent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventTaskExecutionEvent(self): - """Test EventTaskExecutionEvent""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_task_execution_event.EventTaskExecutionEvent() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py deleted file mode 100644 index e2a33aa7b1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_event_workflow_execution_event.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.event_workflow_execution_event import EventWorkflowExecutionEvent # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestEventWorkflowExecutionEvent(unittest.TestCase): - """EventWorkflowExecutionEvent unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testEventWorkflowExecutionEvent(self): - """Test EventWorkflowExecutionEvent""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.event_workflow_execution_event.EventWorkflowExecutionEvent() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py deleted file mode 100644 index b3f036bed5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_error_error_kind.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.execution_error_error_kind import ExecutionErrorErrorKind # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestExecutionErrorErrorKind(unittest.TestCase): - """ExecutionErrorErrorKind unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExecutionErrorErrorKind(self): - """Test ExecutionErrorErrorKind""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.execution_error_error_kind.ExecutionErrorErrorKind() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py deleted file mode 100644 index 02ebaea8e9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_execution_metadata_execution_mode.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.execution_metadata_execution_mode import ExecutionMetadataExecutionMode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestExecutionMetadataExecutionMode(unittest.TestCase): - """ExecutionMetadataExecutionMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testExecutionMetadataExecutionMode(self): - """Test ExecutionMetadataExecutionMode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.execution_metadata_execution_mode.ExecutionMetadataExecutionMode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py deleted file mode 100644 index e423e0c99f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_dynamic_workflow_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata import FlyteidladminDynamicWorkflowNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminDynamicWorkflowNodeMetadata(unittest.TestCase): - """FlyteidladminDynamicWorkflowNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminDynamicWorkflowNodeMetadata(self): - """Test FlyteidladminDynamicWorkflowNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_dynamic_workflow_node_metadata.FlyteidladminDynamicWorkflowNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py deleted file mode 100644 index f841bad233..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_node_execution.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_node_execution import FlyteidladminNodeExecution # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminNodeExecution(unittest.TestCase): - """FlyteidladminNodeExecution unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminNodeExecution(self): - """Test FlyteidladminNodeExecution""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_node_execution.FlyteidladminNodeExecution() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py deleted file mode 100644 index f48dc0d868..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_request.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_task_create_request import FlyteidladminTaskCreateRequest # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminTaskCreateRequest(unittest.TestCase): - """FlyteidladminTaskCreateRequest unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminTaskCreateRequest(self): - """Test FlyteidladminTaskCreateRequest""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_task_create_request.FlyteidladminTaskCreateRequest() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py deleted file mode 100644 index 3dbeb80b81..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_create_response.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_task_create_response import FlyteidladminTaskCreateResponse # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminTaskCreateResponse(unittest.TestCase): - """FlyteidladminTaskCreateResponse unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminTaskCreateResponse(self): - """Test FlyteidladminTaskCreateResponse""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_task_create_response.FlyteidladminTaskCreateResponse() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py deleted file mode 100644 index a354b9fa0a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_execution.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_task_execution import FlyteidladminTaskExecution # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminTaskExecution(unittest.TestCase): - """FlyteidladminTaskExecution unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminTaskExecution(self): - """Test FlyteidladminTaskExecution""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_task_execution.FlyteidladminTaskExecution() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py deleted file mode 100644 index fc2d570e28..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_task_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_task_node_metadata import FlyteidladminTaskNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminTaskNodeMetadata(unittest.TestCase): - """FlyteidladminTaskNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminTaskNodeMetadata(self): - """Test FlyteidladminTaskNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_task_node_metadata.FlyteidladminTaskNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py deleted file mode 100644 index 7bea00e6e4..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidladmin_workflow_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidladmin_workflow_node_metadata import FlyteidladminWorkflowNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidladminWorkflowNodeMetadata(unittest.TestCase): - """FlyteidladminWorkflowNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidladminWorkflowNodeMetadata(self): - """Test FlyteidladminWorkflowNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidladmin_workflow_node_metadata.FlyteidladminWorkflowNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py deleted file mode 100644 index 6ed67696e8..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_dynamic_workflow_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata import FlyteidleventDynamicWorkflowNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidleventDynamicWorkflowNodeMetadata(unittest.TestCase): - """FlyteidleventDynamicWorkflowNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidleventDynamicWorkflowNodeMetadata(self): - """Test FlyteidleventDynamicWorkflowNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidlevent_dynamic_workflow_node_metadata.FlyteidleventDynamicWorkflowNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py deleted file mode 100644 index d72265cec5..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_execution_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidlevent_task_execution_metadata import FlyteidleventTaskExecutionMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidleventTaskExecutionMetadata(unittest.TestCase): - """FlyteidleventTaskExecutionMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidleventTaskExecutionMetadata(self): - """Test FlyteidleventTaskExecutionMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidlevent_task_execution_metadata.FlyteidleventTaskExecutionMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py deleted file mode 100644 index 53d81ca99c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_task_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidlevent_task_node_metadata import FlyteidleventTaskNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidleventTaskNodeMetadata(unittest.TestCase): - """FlyteidleventTaskNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidleventTaskNodeMetadata(self): - """Test FlyteidleventTaskNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidlevent_task_node_metadata.FlyteidleventTaskNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py deleted file mode 100644 index b61456adee..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_flyteidlevent_workflow_node_metadata.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.flyteidlevent_workflow_node_metadata import FlyteidleventWorkflowNodeMetadata # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestFlyteidleventWorkflowNodeMetadata(unittest.TestCase): - """FlyteidleventWorkflowNodeMetadata unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testFlyteidleventWorkflowNodeMetadata(self): - """Test FlyteidleventWorkflowNodeMetadata""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.flyteidlevent_workflow_node_metadata.FlyteidleventWorkflowNodeMetadata() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py deleted file mode 100644 index 12192e4964..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_download_mode.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.io_strategy_download_mode import IOStrategyDownloadMode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestIOStrategyDownloadMode(unittest.TestCase): - """IOStrategyDownloadMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIOStrategyDownloadMode(self): - """Test IOStrategyDownloadMode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.io_strategy_download_mode.IOStrategyDownloadMode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py deleted file mode 100644 index 25e3179cdb..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_io_strategy_upload_mode.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.io_strategy_upload_mode import IOStrategyUploadMode # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestIOStrategyUploadMode(unittest.TestCase): - """IOStrategyUploadMode unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testIOStrategyUploadMode(self): - """Test IOStrategyUploadMode""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.io_strategy_upload_mode.IOStrategyUploadMode() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py deleted file mode 100644 index 664029dc9a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_plugin_override_missing_plugin_behavior.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.plugin_override_missing_plugin_behavior import PluginOverrideMissingPluginBehavior # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestPluginOverrideMissingPluginBehavior(unittest.TestCase): - """PluginOverrideMissingPluginBehavior unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testPluginOverrideMissingPluginBehavior(self): - """Test PluginOverrideMissingPluginBehavior""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.plugin_override_missing_plugin_behavior.PluginOverrideMissingPluginBehavior() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py deleted file mode 100644 index fa711af55f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_project_project_state.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.project_project_state import ProjectProjectState # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProjectProjectState(unittest.TestCase): - """ProjectProjectState unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProjectProjectState(self): - """Test ProjectProjectState""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.project_project_state.ProjectProjectState() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_any.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_any.py deleted file mode 100644 index 8e201fcf46..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_any.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.protobuf_any import ProtobufAny # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProtobufAny(unittest.TestCase): - """ProtobufAny unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProtobufAny(self): - """Test ProtobufAny""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.protobuf_any.ProtobufAny() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py deleted file mode 100644 index 0f37fce300..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_list_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.protobuf_list_value import ProtobufListValue # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProtobufListValue(unittest.TestCase): - """ProtobufListValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProtobufListValue(self): - """Test ProtobufListValue""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.protobuf_list_value.ProtobufListValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py deleted file mode 100644 index 876b115cc0..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_null_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.protobuf_null_value import ProtobufNullValue # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProtobufNullValue(unittest.TestCase): - """ProtobufNullValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProtobufNullValue(self): - """Test ProtobufNullValue""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.protobuf_null_value.ProtobufNullValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py deleted file mode 100644 index 8edcc32145..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_struct.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.protobuf_struct import ProtobufStruct # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProtobufStruct(unittest.TestCase): - """ProtobufStruct unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProtobufStruct(self): - """Test ProtobufStruct""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.protobuf_struct.ProtobufStruct() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py deleted file mode 100644 index 6cbae9d155..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_protobuf_value.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.protobuf_value import ProtobufValue # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestProtobufValue(unittest.TestCase): - """ProtobufValue unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testProtobufValue(self): - """Test ProtobufValue""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.protobuf_value.ProtobufValue() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py deleted file mode 100644 index d655c725ab..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_quality_of_service_tier.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.quality_of_service_tier import QualityOfServiceTier # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestQualityOfServiceTier(unittest.TestCase): - """QualityOfServiceTier unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testQualityOfServiceTier(self): - """Test QualityOfServiceTier""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.quality_of_service_tier.QualityOfServiceTier() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py deleted file mode 100644 index 8b141bd69a..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_entry.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.resources_resource_entry import ResourcesResourceEntry # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestResourcesResourceEntry(unittest.TestCase): - """ResourcesResourceEntry unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourcesResourceEntry(self): - """Test ResourcesResourceEntry""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.resources_resource_entry.ResourcesResourceEntry() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py deleted file mode 100644 index 0ce5f04e55..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_resources_resource_name.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.resources_resource_name import ResourcesResourceName # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestResourcesResourceName(unittest.TestCase): - """ResourcesResourceName unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testResourcesResourceName(self): - """Test ResourcesResourceName""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.resources_resource_name.ResourcesResourceName() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py deleted file mode 100644 index 695ff97ea9..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_runtime_metadata_runtime_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.runtime_metadata_runtime_type import RuntimeMetadataRuntimeType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestRuntimeMetadataRuntimeType(unittest.TestCase): - """RuntimeMetadataRuntimeType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testRuntimeMetadataRuntimeType(self): - """Test RuntimeMetadataRuntimeType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.runtime_metadata_runtime_type.RuntimeMetadataRuntimeType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py deleted file mode 100644 index 9faafc840c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_column_schema_column_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.schema_column_schema_column_type import SchemaColumnSchemaColumnType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestSchemaColumnSchemaColumnType(unittest.TestCase): - """SchemaColumnSchemaColumnType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSchemaColumnSchemaColumnType(self): - """Test SchemaColumnSchemaColumnType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.schema_column_schema_column_type.SchemaColumnSchemaColumnType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py deleted file mode 100644 index e503ceb525..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_schema_type_schema_column.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.schema_type_schema_column import SchemaTypeSchemaColumn # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestSchemaTypeSchemaColumn(unittest.TestCase): - """SchemaTypeSchemaColumn unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSchemaTypeSchemaColumn(self): - """Test SchemaTypeSchemaColumn""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.schema_type_schema_column.SchemaTypeSchemaColumn() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py deleted file mode 100644 index 8e0b686f6d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_secret_mount_type.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.secret_mount_type import SecretMountType # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestSecretMountType(unittest.TestCase): - """SecretMountType unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSecretMountType(self): - """Test SecretMountType""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.secret_mount_type.SecretMountType() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py deleted file mode 100644 index 74b27825dd..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sort_direction.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.sort_direction import SortDirection # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestSortDirection(unittest.TestCase): - """SortDirection unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSortDirection(self): - """Test SortDirection""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.sort_direction.SortDirection() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py deleted file mode 100644 index 943c2b8c99..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_sql_dialect.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.sql_dialect import SqlDialect # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestSqlDialect(unittest.TestCase): - """SqlDialect unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testSqlDialect(self): - """Test SqlDialect""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.sql_dialect.SqlDialect() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py deleted file mode 100644 index d801f1fd88..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_structured_dataset_type_dataset_column.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.structured_dataset_type_dataset_column import StructuredDatasetTypeDatasetColumn # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestStructuredDatasetTypeDatasetColumn(unittest.TestCase): - """StructuredDatasetTypeDatasetColumn unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testStructuredDatasetTypeDatasetColumn(self): - """Test StructuredDatasetTypeDatasetColumn""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.structured_dataset_type_dataset_column.StructuredDatasetTypeDatasetColumn() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py deleted file mode 100644 index 9129b45d97..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_execution_metadata_instance_class.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.task_execution_metadata_instance_class import TaskExecutionMetadataInstanceClass # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestTaskExecutionMetadataInstanceClass(unittest.TestCase): - """TaskExecutionMetadataInstanceClass unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTaskExecutionMetadataInstanceClass(self): - """Test TaskExecutionMetadataInstanceClass""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.task_execution_metadata_instance_class.TaskExecutionMetadataInstanceClass() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py deleted file mode 100644 index 4adfba3c53..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_task_log_message_format.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.task_log_message_format import TaskLogMessageFormat # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestTaskLogMessageFormat(unittest.TestCase): - """TaskLogMessageFormat unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testTaskLogMessageFormat(self): - """Test TaskLogMessageFormat""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.task_log_message_format.TaskLogMessageFormat() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py deleted file mode 100644 index e0e403763c..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/test/test_workflow_metadata_on_failure_policy.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding: utf-8 - -""" - flyteidl/service/admin.proto - - No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 - - OpenAPI spec version: version not set - - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import unittest - -import flyteadmin -from flyteadmin.models.workflow_metadata_on_failure_policy import WorkflowMetadataOnFailurePolicy # noqa: E501 -from flyteadmin.rest import ApiException - - -class TestWorkflowMetadataOnFailurePolicy(unittest.TestCase): - """WorkflowMetadataOnFailurePolicy unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def testWorkflowMetadataOnFailurePolicy(self): - """Test WorkflowMetadataOnFailurePolicy""" - # FIXME: construct object with mandatory attributes with example values - # model = flyteadmin.models.workflow_metadata_on_failure_policy.WorkflowMetadataOnFailurePolicy() # noqa: E501 - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini b/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini deleted file mode 100644 index 3d0be613cf..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/flyteadmin/tox.ini +++ /dev/null @@ -1,10 +0,0 @@ -[tox] -envlist = py27, py3 - -[testenv] -deps=-r{toxinidir}/requirements.txt - -r{toxinidir}/test-requirements.txt - -commands= - nosetests \ - [] diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py deleted file mode 100644 index 238fd03d4d..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.py +++ /dev/null @@ -1,35 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/identity.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x66lyteidl/service/identity.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x11\n\x0fUserInfoRequest\"\xa5\x02\n\x10UserInfoResponse\x12\x18\n\x07subject\x18\x01 \x01(\tR\x07subject\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12-\n\x12preferred_username\x18\x03 \x01(\tR\x11preferredUsername\x12\x1d\n\ngiven_name\x18\x04 \x01(\tR\tgivenName\x12\x1f\n\x0b\x66\x61mily_name\x18\x05 \x01(\tR\nfamilyName\x12\x14\n\x05\x65mail\x18\x06 \x01(\tR\x05\x65mail\x12\x18\n\x07picture\x18\x07 \x01(\tR\x07picture\x12\x44\n\x11\x61\x64\x64itional_claims\x18\x08 \x01(\x0b\x32\x17.google.protobuf.StructR\x10\x61\x64\x64itionalClaims2q\n\x0fIdentityService\x12^\n\x08UserInfo\x12!.flyteidl.service.UserInfoRequest\x1a\".flyteidl.service.UserInfoResponse\"\x0b\x82\xd3\xe4\x93\x02\x05\x12\x03/meB\xc5\x01\n\x14\x63om.flyteidl.serviceB\rIdentityProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.identity_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\rIdentityProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _IDENTITYSERVICE.methods_by_name['UserInfo']._options = None - _IDENTITYSERVICE.methods_by_name['UserInfo']._serialized_options = b'\202\323\344\223\002\005\022\003/me' - _globals['_USERINFOREQUEST']._serialized_start=113 - _globals['_USERINFOREQUEST']._serialized_end=130 - _globals['_USERINFORESPONSE']._serialized_start=133 - _globals['_USERINFORESPONSE']._serialized_end=426 - _globals['_IDENTITYSERVICE']._serialized_start=428 - _globals['_IDENTITYSERVICE']._serialized_end=541 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi deleted file mode 100644 index 34b64ae3a1..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2.pyi +++ /dev/null @@ -1,31 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from google.protobuf import struct_pb2 as _struct_pb2 -from google.protobuf import descriptor as _descriptor -from google.protobuf import message as _message -from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union - -DESCRIPTOR: _descriptor.FileDescriptor - -class UserInfoRequest(_message.Message): - __slots__ = [] - def __init__(self) -> None: ... - -class UserInfoResponse(_message.Message): - __slots__ = ["subject", "name", "preferred_username", "given_name", "family_name", "email", "picture", "additional_claims"] - SUBJECT_FIELD_NUMBER: _ClassVar[int] - NAME_FIELD_NUMBER: _ClassVar[int] - PREFERRED_USERNAME_FIELD_NUMBER: _ClassVar[int] - GIVEN_NAME_FIELD_NUMBER: _ClassVar[int] - FAMILY_NAME_FIELD_NUMBER: _ClassVar[int] - EMAIL_FIELD_NUMBER: _ClassVar[int] - PICTURE_FIELD_NUMBER: _ClassVar[int] - ADDITIONAL_CLAIMS_FIELD_NUMBER: _ClassVar[int] - subject: str - name: str - preferred_username: str - given_name: str - family_name: str - email: str - picture: str - additional_claims: _struct_pb2.Struct - def __init__(self, subject: _Optional[str] = ..., name: _Optional[str] = ..., preferred_username: _Optional[str] = ..., given_name: _Optional[str] = ..., family_name: _Optional[str] = ..., email: _Optional[str] = ..., picture: _Optional[str] = ..., additional_claims: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ... diff --git a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py deleted file mode 100644 index 0754d44ffe..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/identity_pb2_grpc.py +++ /dev/null @@ -1,70 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.service import identity_pb2 as flyteidl_dot_service_dot_identity__pb2 - - -class IdentityServiceStub(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.UserInfo = channel.unary_unary( - '/flyteidl.service.IdentityService/UserInfo', - request_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, - response_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, - ) - - -class IdentityServiceServicer(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - def UserInfo(self, request, context): - """Retrieves user information about the currently logged in user. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_IdentityServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'UserInfo': grpc.unary_unary_rpc_method_handler( - servicer.UserInfo, - request_deserializer=flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.FromString, - response_serializer=flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.IdentityService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class IdentityService(object): - """IdentityService defines an RPC Service that interacts with user/app identities. - """ - - @staticmethod - def UserInfo(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.IdentityService/UserInfo', - flyteidl_dot_service_dot_identity__pb2.UserInfoRequest.SerializeToString, - flyteidl_dot_service_dot_identity__pb2.UserInfoResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py deleted file mode 100644 index 20e9fe2071..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: flyteidl/service/signal.proto -"""Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2 -from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x66lyteidl/service/signal.proto\x12\x10\x66lyteidl.service\x1a\x1cgoogle/api/annotations.proto\x1a\x1b\x66lyteidl/admin/signal.proto2\x9a\x03\n\rSignalService\x12W\n\x11GetOrCreateSignal\x12(.flyteidl.admin.SignalGetOrCreateRequest\x1a\x16.flyteidl.admin.Signal\"\x00\x12\xc1\x01\n\x0bListSignals\x12!.flyteidl.admin.SignalListRequest\x1a\x1a.flyteidl.admin.SignalList\"s\x82\xd3\xe4\x93\x02m\x12k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}\x12l\n\tSetSignal\x12 .flyteidl.admin.SignalSetRequest\x1a!.flyteidl.admin.SignalSetResponse\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/api/v1/signalsB\xc3\x01\n\x14\x63om.flyteidl.serviceB\x0bSignalProtoP\x01Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\xa2\x02\x03\x46SX\xaa\x02\x10\x46lyteidl.Service\xca\x02\x10\x46lyteidl\\Service\xe2\x02\x1c\x46lyteidl\\Service\\GPBMetadata\xea\x02\x11\x46lyteidl::Serviceb\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'flyteidl.service.signal_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\n\024com.flyteidl.serviceB\013SignalProtoP\001Z=github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service\242\002\003FSX\252\002\020Flyteidl.Service\312\002\020Flyteidl\\Service\342\002\034Flyteidl\\Service\\GPBMetadata\352\002\021Flyteidl::Service' - _SIGNALSERVICE.methods_by_name['ListSignals']._options = None - _SIGNALSERVICE.methods_by_name['ListSignals']._serialized_options = b'\202\323\344\223\002m\022k/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}' - _SIGNALSERVICE.methods_by_name['SetSignal']._options = None - _SIGNALSERVICE.methods_by_name['SetSignal']._serialized_options = b'\202\323\344\223\002\024:\001*\"\017/api/v1/signals' - _globals['_SIGNALSERVICE']._serialized_start=111 - _globals['_SIGNALSERVICE']._serialized_end=521 -# @@protoc_insertion_point(module_scope) diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi deleted file mode 100644 index 794a8d4d3f..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2.pyi +++ /dev/null @@ -1,6 +0,0 @@ -from google.api import annotations_pb2 as _annotations_pb2 -from flyteidl.admin import signal_pb2 as _signal_pb2 -from google.protobuf import descriptor as _descriptor -from typing import ClassVar as _ClassVar - -DESCRIPTOR: _descriptor.FileDescriptor diff --git a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py b/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py deleted file mode 100644 index 05c27fb001..0000000000 --- a/flyteidl/gen/pb_python/flyteidl/service/signal_pb2_grpc.py +++ /dev/null @@ -1,145 +0,0 @@ -# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! -"""Client and server classes corresponding to protobuf-defined services.""" -import grpc - -from flyteidl.admin import signal_pb2 as flyteidl_dot_admin_dot_signal__pb2 - - -class SignalServiceStub(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - def __init__(self, channel): - """Constructor. - - Args: - channel: A grpc.Channel. - """ - self.GetOrCreateSignal = channel.unary_unary( - '/flyteidl.service.SignalService/GetOrCreateSignal', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, - ) - self.ListSignals = channel.unary_unary( - '/flyteidl.service.SignalService/ListSignals', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, - ) - self.SetSignal = channel.unary_unary( - '/flyteidl.service.SignalService/SetSignal', - request_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, - response_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, - ) - - -class SignalServiceServicer(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - def GetOrCreateSignal(self, request, context): - """Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve - a signal, meaning the first call will create the signal and all subsequent calls will - fetch the existing signal. This is only useful during Flyte Workflow execution and therefore - is not exposed to mitigate unintended behavior. - option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = { - description: "Retrieve a signal, creating it if it does not exist." - }; - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def ListSignals(self, request, context): - """Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SetSignal(self, request, context): - """Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - """ - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - -def add_SignalServiceServicer_to_server(servicer, server): - rpc_method_handlers = { - 'GetOrCreateSignal': grpc.unary_unary_rpc_method_handler( - servicer.GetOrCreateSignal, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.Signal.SerializeToString, - ), - 'ListSignals': grpc.unary_unary_rpc_method_handler( - servicer.ListSignals, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalList.SerializeToString, - ), - 'SetSignal': grpc.unary_unary_rpc_method_handler( - servicer.SetSignal, - request_deserializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.FromString, - response_serializer=flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.SerializeToString, - ), - } - generic_handler = grpc.method_handlers_generic_handler( - 'flyteidl.service.SignalService', rpc_method_handlers) - server.add_generic_rpc_handlers((generic_handler,)) - - - # This class is part of an EXPERIMENTAL API. -class SignalService(object): - """SignalService defines an RPC Service that may create, update, and retrieve signal(s). - """ - - @staticmethod - def GetOrCreateSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/GetOrCreateSignal', - flyteidl_dot_admin_dot_signal__pb2.SignalGetOrCreateRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.Signal.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def ListSignals(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/ListSignals', - flyteidl_dot_admin_dot_signal__pb2.SignalListRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.SignalList.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SetSignal(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_unary(request, target, '/flyteidl.service.SignalService/SetSignal', - flyteidl_dot_admin_dot_signal__pb2.SignalSetRequest.SerializeToString, - flyteidl_dot_admin_dot_signal__pb2.SignalSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/flyteidl/gen/pb_rust/datacatalog.rs b/flyteidl/gen/pb_rust/datacatalog.rs deleted file mode 100644 index 8c8a79dcc7..0000000000 --- a/flyteidl/gen/pb_rust/datacatalog.rs +++ /dev/null @@ -1,559 +0,0 @@ -// @generated -/// -/// Request message for creating a Dataset. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDatasetRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Response message for creating a Dataset -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDatasetResponse { -} -/// -/// Request message for retrieving a Dataset. The Dataset is retrieved by it's unique identifier -/// which is a combination of several fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDatasetRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Response message for retrieving a Dataset. The response will include the metadata for the -/// Dataset. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDatasetResponse { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, -} -/// -/// Request message for retrieving an Artifact. Retrieve an artifact based on a query handle that -/// can be one of artifact_id or tag. The result returned will include the artifact data and metadata -/// associated with the artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactRequest { - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - #[prost(oneof="get_artifact_request::QueryHandle", tags="2, 3")] - pub query_handle: ::core::option::Option, -} -/// Nested message and enum types in `GetArtifactRequest`. -pub mod get_artifact_request { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum QueryHandle { - #[prost(string, tag="2")] - ArtifactId(::prost::alloc::string::String), - #[prost(string, tag="3")] - TagName(::prost::alloc::string::String), - } -} -/// -/// Response message for retrieving an Artifact. The result returned will include the artifact data -/// and metadata associated with the artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactResponse { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -/// -/// Request message for creating an Artifact and its associated artifact Data. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactRequest { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -/// -/// Response message for creating an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactResponse { -} -/// -/// Request message for tagging an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagRequest { - #[prost(message, optional, tag="1")] - pub tag: ::core::option::Option, -} -/// -/// Response message for tagging an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagResponse { -} -/// List the artifacts that belong to the Dataset, optionally filtered using filtered expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsRequest { - /// Use a datasetID for which you want to retrieve the artifacts - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - /// Apply the filter expression to this query - #[prost(message, optional, tag="2")] - pub filter: ::core::option::Option, - /// Pagination options to get a page of artifacts - #[prost(message, optional, tag="3")] - pub pagination: ::core::option::Option, -} -/// Response to list artifacts -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListArtifactsResponse { - /// The list of artifacts - #[prost(message, repeated, tag="1")] - pub artifacts: ::prost::alloc::vec::Vec, - /// Token to use to request the next page, pass this into the next requests PaginationOptions - #[prost(string, tag="2")] - pub next_token: ::prost::alloc::string::String, -} -/// List the datasets for the given query -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListDatasetsRequest { - /// Apply the filter expression to this query - #[prost(message, optional, tag="1")] - pub filter: ::core::option::Option, - /// Pagination options to get a page of datasets - #[prost(message, optional, tag="2")] - pub pagination: ::core::option::Option, -} -/// List the datasets response with token for next pagination -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListDatasetsResponse { - /// The list of datasets - #[prost(message, repeated, tag="1")] - pub datasets: ::prost::alloc::vec::Vec, - /// Token to use to request the next page, pass this into the next requests PaginationOptions - #[prost(string, tag="2")] - pub next_token: ::prost::alloc::string::String, -} -/// -/// Request message for updating an Artifact and overwriting its associated ArtifactData. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UpdateArtifactRequest { - /// ID of dataset the artifact is associated with - #[prost(message, optional, tag="1")] - pub dataset: ::core::option::Option, - /// List of data to overwrite stored artifact data with. Must contain ALL data for updated Artifact as any missing - /// ArtifactData entries will be removed from the underlying blob storage and database. - #[prost(message, repeated, tag="4")] - pub data: ::prost::alloc::vec::Vec, - /// Update execution metadata(including execution domain, name, node, project data) when overwriting cache - #[prost(message, optional, tag="5")] - pub metadata: ::core::option::Option, - /// Either ID of artifact or name of tag to retrieve existing artifact from - #[prost(oneof="update_artifact_request::QueryHandle", tags="2, 3")] - pub query_handle: ::core::option::Option, -} -/// Nested message and enum types in `UpdateArtifactRequest`. -pub mod update_artifact_request { - /// Either ID of artifact or name of tag to retrieve existing artifact from - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum QueryHandle { - #[prost(string, tag="2")] - ArtifactId(::prost::alloc::string::String), - #[prost(string, tag="3")] - TagName(::prost::alloc::string::String), - } -} -/// -/// Response message for updating an Artifact. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UpdateArtifactResponse { - /// The unique ID of the artifact updated - #[prost(string, tag="1")] - pub artifact_id: ::prost::alloc::string::String, -} -/// -/// ReservationID message that is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReservationId { - /// The unique ID for the reserved dataset - #[prost(message, optional, tag="1")] - pub dataset_id: ::core::option::Option, - /// The specific artifact tag for the reservation - #[prost(string, tag="2")] - pub tag_name: ::prost::alloc::string::String, -} -/// Try to acquire or extend an artifact reservation. If an active reservation exists, retrieve that instance. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationRequest { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, - /// Requested reservation extension heartbeat interval - #[prost(message, optional, tag="3")] - pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, -} -/// A reservation including owner, heartbeat interval, expiration timestamp, and various metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Reservation { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, - /// Recommended heartbeat interval to extend reservation - #[prost(message, optional, tag="3")] - pub heartbeat_interval: ::core::option::Option<::prost_types::Duration>, - /// Expiration timestamp of this reservation - #[prost(message, optional, tag="4")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, - /// Free-form metadata associated with the artifact - #[prost(message, optional, tag="6")] - pub metadata: ::core::option::Option, -} -/// Response including either a newly minted reservation or the existing reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetOrExtendReservationResponse { - /// The reservation to be acquired or extended - #[prost(message, optional, tag="1")] - pub reservation: ::core::option::Option, -} -/// Request to release reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReleaseReservationRequest { - /// The unique ID for the reservation - #[prost(message, optional, tag="1")] - pub reservation_id: ::core::option::Option, - /// The unique ID of the owner for the reservation - #[prost(string, tag="2")] - pub owner_id: ::prost::alloc::string::String, -} -/// Response to release reservation -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ReleaseReservationResponse { -} -/// -/// Dataset message. It is uniquely identified by DatasetID. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Dataset { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - #[prost(string, repeated, tag="3")] - pub partition_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// -/// An artifact could have multiple partitions and each partition can have an arbitrary string key/value pair -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Partition { - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// -/// DatasetID message that is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DatasetId { - /// The name of the project - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// The name of the dataset - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// The domain (eg. environment) - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// Version of the data schema - #[prost(string, tag="4")] - pub version: ::prost::alloc::string::String, - /// UUID for the dataset (if set the above fields are optional) - #[prost(string, tag="5")] - pub uuid: ::prost::alloc::string::String, -} -/// -/// Artifact message. It is composed of several string fields. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Artifact { - /// The unique ID of the artifact - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// The Dataset that the artifact belongs to - #[prost(message, optional, tag="2")] - pub dataset: ::core::option::Option, - /// A list of data that is associated with the artifact - #[prost(message, repeated, tag="3")] - pub data: ::prost::alloc::vec::Vec, - /// Free-form metadata associated with the artifact - #[prost(message, optional, tag="4")] - pub metadata: ::core::option::Option, - #[prost(message, repeated, tag="5")] - pub partitions: ::prost::alloc::vec::Vec, - #[prost(message, repeated, tag="6")] - pub tags: ::prost::alloc::vec::Vec, - /// creation timestamp of artifact, autogenerated by service - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// -/// ArtifactData that belongs to an artifact -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactData { - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// -/// Tag message that is unique to a Dataset. It is associated to a single artifact and -/// can be retrieved by name later. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Tag { - /// Name of tag - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The tagged artifact - #[prost(string, tag="2")] - pub artifact_id: ::prost::alloc::string::String, - /// The Dataset that this tag belongs to - #[prost(message, optional, tag="3")] - pub dataset: ::core::option::Option, -} -/// -/// Metadata representation for artifacts and datasets -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Metadata { - /// key map is a dictionary of key/val strings that represent metadata - #[prost(map="string, string", tag="1")] - pub key_map: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Filter expression that is composed of a combination of single filters -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FilterExpression { - #[prost(message, repeated, tag="1")] - pub filters: ::prost::alloc::vec::Vec, -} -/// A single property to filter on. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SinglePropertyFilter { - /// field 10 in case we add more entities to query - #[prost(enumeration="single_property_filter::ComparisonOperator", tag="10")] - pub operator: i32, - #[prost(oneof="single_property_filter::PropertyFilter", tags="1, 2, 3, 4")] - pub property_filter: ::core::option::Option, -} -/// Nested message and enum types in `SinglePropertyFilter`. -pub mod single_property_filter { - /// as use-cases come up we can add more operators, ex: gte, like, not eq etc. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ComparisonOperator { - Equals = 0, - } - impl ComparisonOperator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ComparisonOperator::Equals => "EQUALS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EQUALS" => Some(Self::Equals), - _ => None, - } - } - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum PropertyFilter { - #[prost(message, tag="1")] - TagFilter(super::TagPropertyFilter), - #[prost(message, tag="2")] - PartitionFilter(super::PartitionPropertyFilter), - #[prost(message, tag="3")] - ArtifactFilter(super::ArtifactPropertyFilter), - #[prost(message, tag="4")] - DatasetFilter(super::DatasetPropertyFilter), - } -} -/// Artifact properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactPropertyFilter { - /// oneof because we can add more properties in the future - #[prost(oneof="artifact_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactPropertyFilter`. -pub mod artifact_property_filter { - /// oneof because we can add more properties in the future - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - ArtifactId(::prost::alloc::string::String), - } -} -/// Tag properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TagPropertyFilter { - #[prost(oneof="tag_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `TagPropertyFilter`. -pub mod tag_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - TagName(::prost::alloc::string::String), - } -} -/// Partition properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PartitionPropertyFilter { - #[prost(oneof="partition_property_filter::Property", tags="1")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `PartitionPropertyFilter`. -pub mod partition_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(message, tag="1")] - KeyVal(super::KeyValuePair), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct KeyValuePair { - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// Dataset properties we can filter by -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DatasetPropertyFilter { - #[prost(oneof="dataset_property_filter::Property", tags="1, 2, 3, 4")] - pub property: ::core::option::Option, -} -/// Nested message and enum types in `DatasetPropertyFilter`. -pub mod dataset_property_filter { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Property { - #[prost(string, tag="1")] - Project(::prost::alloc::string::String), - #[prost(string, tag="2")] - Name(::prost::alloc::string::String), - #[prost(string, tag="3")] - Domain(::prost::alloc::string::String), - #[prost(string, tag="4")] - Version(::prost::alloc::string::String), - } -} -/// Pagination options for making list requests -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PaginationOptions { - /// the max number of results to return - #[prost(uint32, tag="1")] - pub limit: u32, - /// the token to pass to fetch the next page - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, - /// the property that we want to sort the results by - #[prost(enumeration="pagination_options::SortKey", tag="3")] - pub sort_key: i32, - /// the sort order of the results - #[prost(enumeration="pagination_options::SortOrder", tag="4")] - pub sort_order: i32, -} -/// Nested message and enum types in `PaginationOptions`. -pub mod pagination_options { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SortOrder { - Descending = 0, - Ascending = 1, - } - impl SortOrder { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SortOrder::Descending => "DESCENDING", - SortOrder::Ascending => "ASCENDING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCENDING" => Some(Self::Descending), - "ASCENDING" => Some(Self::Ascending), - _ => None, - } - } - } - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SortKey { - CreationTime = 0, - } - impl SortKey { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SortKey::CreationTime => "CREATION_TIME", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CREATION_TIME" => Some(Self::CreationTime), - _ => None, - } - } - } -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.admin.rs b/flyteidl/gen/pb_rust/flyteidl.admin.rs deleted file mode 100644 index dc1b065bfa..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.admin.rs +++ /dev/null @@ -1,3050 +0,0 @@ -// @generated -/// Represents a subset of runtime task execution metadata that are relevant to external plugins. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionMetadata { - /// ID of the task execution - #[prost(message, optional, tag="1")] - pub task_execution_id: ::core::option::Option, - /// k8s namespace where the task is executed in - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, - /// Labels attached to the task execution - #[prost(map="string, string", tag="3")] - pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Annotations attached to the task execution - #[prost(map="string, string", tag="4")] - pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// k8s service account associated with the task execution - #[prost(string, tag="5")] - pub k8s_service_account: ::prost::alloc::string::String, - /// Environment variables attached to the task execution - #[prost(map="string, string", tag="6")] - pub environment_variables: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Represents a request structure to create task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTaskRequest { - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="2")] - pub template: ::core::option::Option, - /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - #[prost(string, tag="3")] - pub output_prefix: ::prost::alloc::string::String, - /// subset of runtime task execution metadata. - #[prost(message, optional, tag="4")] - pub task_execution_metadata: ::core::option::Option, -} -/// Represents a create response structure. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTaskResponse { - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - /// Resource is for synchronous task execution. - #[prost(oneof="create_task_response::Res", tags="1, 2")] - pub res: ::core::option::Option, -} -/// Nested message and enum types in `CreateTaskResponse`. -pub mod create_task_response { - /// Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). - /// Resource is for synchronous task execution. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Res { - #[prost(bytes, tag="1")] - ResourceMeta(::prost::alloc::vec::Vec), - #[prost(message, tag="2")] - Resource(super::Resource), - } -} -/// A message used to fetch a job resource from flyte agent server. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// Metadata about the resource to be pass to the agent. - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, -} -/// Response to get an individual task resource. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetTaskResponse { - #[prost(message, optional, tag="1")] - pub resource: ::core::option::Option, - /// log information for the task execution - #[prost(message, repeated, tag="2")] - pub log_links: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Resource { - /// The state of the execution is used to control its visibility in the UI/CLI. - #[prost(enumeration="State", tag="1")] - pub state: i32, - /// The outputs of the execution. It's typically used by sql task. Agent service will create a - /// Structured dataset pointing to the query result table. - /// +optional - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// A descriptive message for the current state. e.g. waiting for cluster. - #[prost(string, tag="3")] - pub message: ::prost::alloc::string::String, - /// log information for the task execution. - #[prost(message, repeated, tag="4")] - pub log_links: ::prost::alloc::vec::Vec, -} -/// A message used to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTaskRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// Metadata about the resource to be pass to the agent. - #[prost(bytes="vec", tag="2")] - pub resource_meta: ::prost::alloc::vec::Vec, -} -/// Response to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTaskResponse { -} -/// A message containing the agent metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Agent { - /// Name is the developer-assigned name of the agent. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// SupportedTaskTypes are the types of the tasks that the agent can handle. - #[prost(string, repeated, tag="2")] - pub supported_task_types: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// A request to get an agent. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetAgentRequest { - /// The name of the agent. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, -} -/// A response containing an agent. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetAgentResponse { - #[prost(message, optional, tag="1")] - pub agent: ::core::option::Option, -} -/// A request to list all agents. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListAgentsRequest { -} -/// A response containing a list of agents. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListAgentsResponse { - #[prost(message, repeated, tag="1")] - pub agents: ::prost::alloc::vec::Vec, -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum State { - RetryableFailure = 0, - PermanentFailure = 1, - Pending = 2, - Running = 3, - Succeeded = 4, -} -impl State { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - State::RetryableFailure => "RETRYABLE_FAILURE", - State::PermanentFailure => "PERMANENT_FAILURE", - State::Pending => "PENDING", - State::Running => "RUNNING", - State::Succeeded => "SUCCEEDED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), - "PERMANENT_FAILURE" => Some(Self::PermanentFailure), - "PENDING" => Some(Self::Pending), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - _ => None, - } - } -} -/// Encapsulates specifications for routing an execution onto a specific cluster. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ClusterAssignment { - #[prost(string, tag="3")] - pub cluster_pool_name: ::prost::alloc::string::String, -} -/// Encapsulation of fields that identifies a Flyte resource. -/// A Flyte resource can be a task, workflow or launch plan. -/// A resource can internally have multiple versions and is uniquely identified -/// by project, domain, and name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifier { - /// Name of the project the resource belongs to. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - /// The combination of project + domain + name uniquely identifies the resource. - /// +optional - in certain contexts - like 'List API', 'Launch plans' - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, -} -/// Additional metadata around a named entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityMetadata { - /// Common description across all versions of the entity - /// +optional - #[prost(string, tag="1")] - pub description: ::prost::alloc::string::String, - /// Shared state across all version of the entity - /// At this point in time, only workflow entities can have their state archived. - #[prost(enumeration="NamedEntityState", tag="2")] - pub state: i32, -} -/// Encapsulates information common to a NamedEntity, a Flyte resource such as a task, -/// workflow or launch plan. A NamedEntity is exclusively identified by its resource type -/// and identifier. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntity { - /// Resource type of the named entity. One of Task, Workflow or LaunchPlan. - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Additional metadata around a named entity. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// Specifies sort ordering in a list request. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Sort { - /// Indicates an attribute to sort the response values. - /// +required - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - /// Indicates the direction to apply sort key for response values. - /// +optional - #[prost(enumeration="sort::Direction", tag="2")] - pub direction: i32, -} -/// Nested message and enum types in `Sort`. -pub mod sort { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Direction { - /// By default, fields are sorted in descending order. - Descending = 0, - Ascending = 1, - } - impl Direction { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Direction::Descending => "DESCENDING", - Direction::Ascending => "ASCENDING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCENDING" => Some(Self::Descending), - "ASCENDING" => Some(Self::Ascending), - _ => None, - } - } - } -} -/// Represents a request structure to list NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifierListRequest { - /// Name of the project that contains the identifiers. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Specifies how listed entities should be sorted in the response. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="6")] - pub filters: ::prost::alloc::string::String, -} -/// Represents a request structure to list NamedEntity objects -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityListRequest { - /// Resource type of the metadata to query. One of Task, Workflow or LaunchPlan. - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// Name of the project that contains the identifiers. - /// +required - #[prost(string, tag="2")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - #[prost(uint32, tag="4")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="5")] - pub token: ::prost::alloc::string::String, - /// Specifies how listed entities should be sorted in the response. - /// +optional - #[prost(message, optional, tag="6")] - pub sort_by: ::core::option::Option, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="7")] - pub filters: ::prost::alloc::string::String, -} -/// Represents a list of NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityIdentifierList { - /// A list of identifiers. - #[prost(message, repeated, tag="1")] - pub entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a list of NamedEntityIdentifiers. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityList { - /// A list of NamedEntity objects - #[prost(message, repeated, tag="1")] - pub entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// A request to retrieve the metadata associated with a NamedEntityIdentifier -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityGetRequest { - /// Resource type of the metadata to get. One of Task, Workflow or LaunchPlan. - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// The identifier for the named entity for which to fetch metadata. - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, -} -/// Request to set the referenced named entity state to the configured value. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityUpdateRequest { - /// Resource type of the metadata to update - /// +required - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// Identifier of the metadata to update - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Metadata object to set as the new value - /// +required - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NamedEntityUpdateResponse { -} -/// Shared request structure to fetch a single resource. -/// Resources include: Task, Workflow, LaunchPlan -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ObjectGetRequest { - /// Indicates a unique version of resource. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Shared request structure to retrieve a list of resources. -/// Resources include: Task, Workflow, LaunchPlan -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ResourceListRequest { - /// id represents the unique identifier of the resource. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Defines an email notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EmailNotification { - /// The list of email addresses recipients for this notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a pager duty notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PagerDutyNotification { - /// Currently, PagerDuty notifications leverage email to trigger a notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a slack notification specification. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SlackNotification { - /// Currently, Slack notifications leverage email to trigger a notification. - /// +required - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Represents a structure for notifications based on execution status. -/// The notification content is configured within flyte admin but can be templatized. -/// Future iterations could expose configuring notifications with custom content. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Notification { - /// A list of phases to which users can associate the notifications to. - /// +required - #[prost(enumeration="super::core::workflow_execution::Phase", repeated, tag="1")] - pub phases: ::prost::alloc::vec::Vec, - /// The type of notification to trigger. - /// +required - #[prost(oneof="notification::Type", tags="2, 3, 4")] - pub r#type: ::core::option::Option, -} -/// Nested message and enum types in `Notification`. -pub mod notification { - /// The type of notification to trigger. - /// +required - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Type { - #[prost(message, tag="2")] - Email(super::EmailNotification), - #[prost(message, tag="3")] - PagerDuty(super::PagerDutyNotification), - #[prost(message, tag="4")] - Slack(super::SlackNotification), - } -} -/// Represents a string url and associated metadata used throughout the platform. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UrlBlob { - /// Actual url value. - #[prost(string, tag="1")] - pub url: ::prost::alloc::string::String, - /// Represents the size of the file accessible at the above url. - #[prost(int64, tag="2")] - pub bytes: i64, -} -/// Label values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge labels defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Labels { - /// Map of custom labels to be applied to the execution resource. - #[prost(map="string, string", tag="1")] - pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Annotation values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge annotations defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Annotations { - /// Map of custom annotations to be applied to the execution resource. - #[prost(map="string, string", tag="1")] - pub values: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Environment variable values to be applied to an execution resource. -/// In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined -/// to specify how to merge environment variables defined at registration and execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Envs { - /// Map of custom environment variables to be applied to the execution resource. - #[prost(message, repeated, tag="1")] - pub values: ::prost::alloc::vec::Vec, -} -/// Defines permissions associated with executions created by this launch plan spec. -/// Use either of these roles when they have permissions required by your workflow execution. -/// Deprecated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AuthRole { - /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="1")] - pub assumable_iam_role: ::prost::alloc::string::String, - /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="2")] - pub kubernetes_service_account: ::prost::alloc::string::String, -} -/// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). -/// See for more background information. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RawOutputDataConfig { - /// Prefix for where offloaded data from user workflows will be written - /// e.g. s3://bucket/key or s3://bucket/ - #[prost(string, tag="1")] - pub output_location_prefix: ::prost::alloc::string::String, -} -/// These URLs are returned as part of node and task execution data requests. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FlyteUrLs { - #[prost(string, tag="1")] - pub inputs: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub outputs: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub deck: ::prost::alloc::string::String, -} -/// The status of the named entity is used to control its visibility in the UI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum NamedEntityState { - /// By default, all named entities are considered active and under development. - NamedEntityActive = 0, - /// Archived named entities are no longer visible in the UI. - NamedEntityArchived = 1, - /// System generated entities that aren't explicitly created or managed by a user. - SystemGenerated = 2, -} -impl NamedEntityState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - NamedEntityState::NamedEntityActive => "NAMED_ENTITY_ACTIVE", - NamedEntityState::NamedEntityArchived => "NAMED_ENTITY_ARCHIVED", - NamedEntityState::SystemGenerated => "SYSTEM_GENERATED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NAMED_ENTITY_ACTIVE" => Some(Self::NamedEntityActive), - "NAMED_ENTITY_ARCHIVED" => Some(Self::NamedEntityArchived), - "SYSTEM_GENERATED" => Some(Self::SystemGenerated), - _ => None, - } - } -} -/// DescriptionEntity contains detailed description for the task/workflow. -/// Documentation could provide insight into the algorithms, business use case, etc. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntity { - /// id represents the unique identifier of the description entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="2")] - pub short_description: ::prost::alloc::string::String, - /// Full user description with formatting preserved. - #[prost(message, optional, tag="3")] - pub long_description: ::core::option::Option, - /// Optional link to source code used to define this entity. - #[prost(message, optional, tag="4")] - pub source_code: ::core::option::Option, - /// User-specified tags. These are arbitrary and can be used for searching - /// filtering and discovering tasks. - #[prost(string, repeated, tag="5")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Full user description with formatting preserved. This can be rendered -/// by clients, such as the console or command line tools with in-tact -/// formatting. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Description { - /// Format of the long description - #[prost(enumeration="DescriptionFormat", tag="3")] - pub format: i32, - /// Optional link to an icon for the entity - #[prost(string, tag="4")] - pub icon_link: ::prost::alloc::string::String, - #[prost(oneof="description::Content", tags="1, 2")] - pub content: ::core::option::Option, -} -/// Nested message and enum types in `Description`. -pub mod description { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Content { - /// long description - no more than 4KB - #[prost(string, tag="1")] - Value(::prost::alloc::string::String), - /// if the description sizes exceed some threshold we can offload the entire - /// description proto altogether to an external data store, like S3 rather than store inline in the db - #[prost(string, tag="2")] - Uri(::prost::alloc::string::String), - } -} -/// Link to source code used to define this entity -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SourceCode { - #[prost(string, tag="1")] - pub link: ::prost::alloc::string::String, -} -/// Represents a list of DescriptionEntities returned from the admin. -/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntityList { - /// A list of DescriptionEntities returned based on the request. - #[prost(message, repeated, tag="1")] - pub description_entities: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a request structure to retrieve a list of DescriptionEntities. -/// See :ref:`ref_flyteidl.admin.DescriptionEntity` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DescriptionEntityListRequest { - /// Identifies the specific type of resource that this identifier corresponds to. - #[prost(enumeration="super::core::ResourceType", tag="1")] - pub resource_type: i32, - /// The identifier for the description entity. - /// +required - #[prost(message, optional, tag="2")] - pub id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="5")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering for returned list. - /// +optional - #[prost(message, optional, tag="6")] - pub sort_by: ::core::option::Option, -} -/// The format of the long description -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum DescriptionFormat { - Unknown = 0, - Markdown = 1, - Html = 2, - /// python default documentation - comments is rst - Rst = 3, -} -impl DescriptionFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - DescriptionFormat::Unknown => "DESCRIPTION_FORMAT_UNKNOWN", - DescriptionFormat::Markdown => "DESCRIPTION_FORMAT_MARKDOWN", - DescriptionFormat::Html => "DESCRIPTION_FORMAT_HTML", - DescriptionFormat::Rst => "DESCRIPTION_FORMAT_RST", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DESCRIPTION_FORMAT_UNKNOWN" => Some(Self::Unknown), - "DESCRIPTION_FORMAT_MARKDOWN" => Some(Self::Markdown), - "DESCRIPTION_FORMAT_HTML" => Some(Self::Html), - "DESCRIPTION_FORMAT_RST" => Some(Self::Rst), - _ => None, - } - } -} -/// Indicates that a sent event was not used to update execution state due to -/// the referenced execution already being terminated (and therefore ineligible -/// for further state transitions). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventErrorAlreadyInTerminalState { - /// +required - #[prost(string, tag="1")] - pub current_phase: ::prost::alloc::string::String, -} -/// Indicates an event was rejected because it came from a different cluster than -/// is on record as running the execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventErrorIncompatibleCluster { - /// The cluster which has been recorded as processing the execution. - /// +required - #[prost(string, tag="1")] - pub cluster: ::prost::alloc::string::String, -} -/// Indicates why a sent event was not used to update execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventFailureReason { - /// +required - #[prost(oneof="event_failure_reason::Reason", tags="1, 2")] - pub reason: ::core::option::Option, -} -/// Nested message and enum types in `EventFailureReason`. -pub mod event_failure_reason { - /// +required - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reason { - #[prost(message, tag="1")] - AlreadyInTerminalState(super::EventErrorAlreadyInTerminalState), - #[prost(message, tag="2")] - IncompatibleCluster(super::EventErrorIncompatibleCluster), - } -} -/// Request to send a notification that a workflow execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEventResponse { -} -/// Request to send a notification that a node execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEventResponse { -} -/// Request to send a notification that a task execution event has occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEventRequest { - /// Unique ID for this request that can be traced between services - #[prost(string, tag="1")] - pub request_id: ::prost::alloc::string::String, - /// Details about the event that occurred. - #[prost(message, optional, tag="2")] - pub event: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEventResponse { -} -/// Request to launch an execution with the given project, domain and optionally-assigned name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionCreateRequest { - /// Name of the project the execution belongs to. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the execution belongs to. - /// A domain can be considered as a subset within a specific project. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - /// Additional fields necessary to launch the execution. - /// +optional - #[prost(message, optional, tag="4")] - pub spec: ::core::option::Option, - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="5")] - pub inputs: ::core::option::Option, -} -/// Request to relaunch the referenced execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionRelaunchRequest { - /// Identifier of the workflow execution to relaunch. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User provided value for the relaunched execution. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="4")] - pub overwrite_cache: bool, -} -/// Request to recover the referenced execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionRecoverRequest { - /// Identifier of the workflow execution to recover. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User provided value for the recovered execution. - /// If none is provided the system will generate a unique string. - /// +optional - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// Additional metadata which will be used to overwrite any metadata in the reference execution when triggering a recovery execution. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, -} -/// The unique identifier for a successfully created execution. -/// If the name was *not* specified in the create request, this identifier will include a generated name. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionCreateResponse { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// A message used to fetch a single workflow execution entity. -/// See :ref:`ref_flyteidl.admin.Execution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetRequest { - /// Uniquely identifies an individual workflow execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// A workflow execution represents an instantiated workflow, including all inputs and additional -/// metadata as well as computed results included state, outputs, and duration-based attributes. -/// Used as a response object used in Get and List execution requests. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Execution { - /// Unique identifier of the workflow execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided configuration and inputs for launching the execution. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - /// Execution results. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, -} -/// Used as a response for request to list executions. -/// See :ref:`ref_flyteidl.admin.Execution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionList { - #[prost(message, repeated, tag="1")] - pub executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Input/output data can represented by actual values or a link to where values are stored -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralMapBlob { - #[prost(oneof="literal_map_blob::Data", tags="1, 2")] - pub data: ::core::option::Option, -} -/// Nested message and enum types in `LiteralMapBlob`. -pub mod literal_map_blob { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Data { - /// Data in LiteralMap format - #[prost(message, tag="1")] - Values(super::super::core::LiteralMap), - /// In the event that the map is too large, we return a uri to the data - #[prost(string, tag="2")] - Uri(::prost::alloc::string::String), - } -} -/// Specifies metadata around an aborted workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AbortMetadata { - /// In the case of a user-specified abort, this will pass along the user-supplied cause. - #[prost(string, tag="1")] - pub cause: ::prost::alloc::string::String, - /// Identifies the entity (if any) responsible for terminating the execution - #[prost(string, tag="2")] - pub principal: ::prost::alloc::string::String, -} -/// Encapsulates the results of the Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionClosure { - /// Inputs computed and passed for execution. - /// computed_inputs depends on inputs in ExecutionSpec, fixed and default inputs in launch plan - #[deprecated] - #[prost(message, optional, tag="3")] - pub computed_inputs: ::core::option::Option, - /// Most recent recorded phase for the execution. - #[prost(enumeration="super::core::workflow_execution::Phase", tag="4")] - pub phase: i32, - /// Reported time at which the execution began running. - #[prost(message, optional, tag="5")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the execution spent running. - #[prost(message, optional, tag="6")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Reported time at which the execution was created. - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Reported time at which the execution was last updated. - #[prost(message, optional, tag="8")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// The notification settings to use after merging the CreateExecutionRequest and the launch plan - /// notification settings. An execution launched with notifications will always prefer that definition - /// to notifications defined statically in a launch plan. - #[prost(message, repeated, tag="9")] - pub notifications: ::prost::alloc::vec::Vec, - /// Identifies the workflow definition for this execution. - #[prost(message, optional, tag="11")] - pub workflow_id: ::core::option::Option, - /// Provides the details of the last stage change - #[prost(message, optional, tag="14")] - pub state_change_details: ::core::option::Option, - /// A result produced by a terminated execution. - /// A pending (non-terminal) execution will not have any output result. - #[prost(oneof="execution_closure::OutputResult", tags="1, 2, 10, 12, 13")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `ExecutionClosure`. -pub mod execution_closure { - /// A result produced by a terminated execution. - /// A pending (non-terminal) execution will not have any output result. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Output URI in the case of a successful execution. - /// DEPRECATED. Use GetExecutionData to fetch output data instead. - #[prost(message, tag="1")] - Outputs(super::LiteralMapBlob), - /// Error information in the case of a failed execution. - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// In the case of a user-specified abort, this will pass along the user-supplied cause. - #[prost(string, tag="10")] - AbortCause(::prost::alloc::string::String), - /// In the case of a user-specified abort, this will pass along the user and their supplied cause. - #[prost(message, tag="12")] - AbortMetadata(super::AbortMetadata), - /// Raw output data produced by this execution. - /// DEPRECATED. Use GetExecutionData to fetch output data instead. - #[prost(message, tag="13")] - OutputData(super::super::core::LiteralMap), - } -} -/// Represents system, rather than user-facing, metadata about an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SystemMetadata { - /// Which execution cluster this execution ran on. - #[prost(string, tag="1")] - pub execution_cluster: ::prost::alloc::string::String, - /// Which kubernetes namespace the execution ran under. - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, -} -/// Represents attributes about an execution which are not required to launch the execution but are useful to record. -/// These attributes are assigned at launch time and do not change. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionMetadata { - #[prost(enumeration="execution_metadata::ExecutionMode", tag="1")] - pub mode: i32, - /// Identifier of the entity that triggered this execution. - /// For systems using back-end authentication any value set here will be discarded in favor of the - /// authenticated user context. - #[prost(string, tag="2")] - pub principal: ::prost::alloc::string::String, - /// Indicates the nestedness of this execution. - /// If a user launches a workflow execution, the default nesting is 0. - /// If this execution further launches a workflow (child workflow), the nesting level is incremented by 0 => 1 - /// Generally, if workflow at nesting level k launches a workflow then the child workflow will have - /// nesting = k + 1. - #[prost(uint32, tag="3")] - pub nesting: u32, - /// For scheduled executions, the requested time for execution for this specific schedule invocation. - #[prost(message, optional, tag="4")] - pub scheduled_at: ::core::option::Option<::prost_types::Timestamp>, - /// Which subworkflow node (if any) launched this execution - #[prost(message, optional, tag="5")] - pub parent_node_execution: ::core::option::Option, - /// Optional, a reference workflow execution related to this execution. - /// In the case of a relaunch, this references the original workflow execution. - #[prost(message, optional, tag="16")] - pub reference_execution: ::core::option::Option, - /// Optional, platform-specific metadata about the execution. - /// In this the future this may be gated behind an ACL or some sort of authorization. - #[prost(message, optional, tag="17")] - pub system_metadata: ::core::option::Option, - /// Save a list of the artifacts used in this execution for now. This is a list only rather than a mapping - /// since we don't have a structure to handle nested ones anyways. - #[prost(message, repeated, tag="18")] - pub artifact_ids: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `ExecutionMetadata`. -pub mod execution_metadata { - /// The method by which this execution was launched. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ExecutionMode { - /// The default execution mode, MANUAL implies that an execution was launched by an individual. - Manual = 0, - /// A schedule triggered this execution launch. - Scheduled = 1, - /// A system process was responsible for launching this execution rather an individual. - System = 2, - /// This execution was launched with identical inputs as a previous execution. - Relaunch = 3, - /// This execution was triggered by another execution. - ChildWorkflow = 4, - /// This execution was recovered from another execution. - Recovered = 5, - } - impl ExecutionMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ExecutionMode::Manual => "MANUAL", - ExecutionMode::Scheduled => "SCHEDULED", - ExecutionMode::System => "SYSTEM", - ExecutionMode::Relaunch => "RELAUNCH", - ExecutionMode::ChildWorkflow => "CHILD_WORKFLOW", - ExecutionMode::Recovered => "RECOVERED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "MANUAL" => Some(Self::Manual), - "SCHEDULED" => Some(Self::Scheduled), - "SYSTEM" => Some(Self::System), - "RELAUNCH" => Some(Self::Relaunch), - "CHILD_WORKFLOW" => Some(Self::ChildWorkflow), - "RECOVERED" => Some(Self::Recovered), - _ => None, - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NotificationList { - #[prost(message, repeated, tag="1")] - pub notifications: ::prost::alloc::vec::Vec, -} -/// An ExecutionSpec encompasses all data used to launch this execution. The Spec does not change over the lifetime -/// of an execution as it progresses across phase changes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionSpec { - /// Launch plan to be executed - #[prost(message, optional, tag="1")] - pub launch_plan: ::core::option::Option, - /// Input values to be passed for the execution - #[deprecated] - #[prost(message, optional, tag="2")] - pub inputs: ::core::option::Option, - /// Metadata for the execution - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, - /// Labels to apply to the execution resource. - #[prost(message, optional, tag="7")] - pub labels: ::core::option::Option, - /// Annotations to apply to the execution resource. - #[prost(message, optional, tag="8")] - pub annotations: ::core::option::Option, - /// Optional: security context override to apply this execution. - #[prost(message, optional, tag="10")] - pub security_context: ::core::option::Option, - /// Optional: auth override to apply this execution. - #[deprecated] - #[prost(message, optional, tag="16")] - pub auth_role: ::core::option::Option, - /// Indicates the runtime priority of the execution. - #[prost(message, optional, tag="17")] - pub quality_of_service: ::core::option::Option, - /// Controls the maximum number of task nodes that can be run in parallel for the entire workflow. - /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - /// and parallelism/concurrency of MapTasks is independent from this. - #[prost(int32, tag="18")] - pub max_parallelism: i32, - /// User setting to configure where to store offloaded data (i.e. Blobs, structured datasets, query data, etc.). - /// This should be a prefix like s3://my-bucket/my-data - #[prost(message, optional, tag="19")] - pub raw_output_data_config: ::core::option::Option, - /// Controls how to select an available cluster on which this execution should run. - #[prost(message, optional, tag="20")] - pub cluster_assignment: ::core::option::Option, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="21")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="22")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="23")] - pub envs: ::core::option::Option, - /// Tags to be set for the execution. - #[prost(string, repeated, tag="24")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(oneof="execution_spec::NotificationOverrides", tags="5, 6")] - pub notification_overrides: ::core::option::Option, -} -/// Nested message and enum types in `ExecutionSpec`. -pub mod execution_spec { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum NotificationOverrides { - /// List of notifications based on Execution status transitions - /// When this list is not empty it is used rather than any notifications defined in the referenced launch plan. - /// When this list is empty, the notifications defined for the launch plan will be applied. - #[prost(message, tag="5")] - Notifications(super::NotificationList), - /// This should be set to true if all notifications are intended to be disabled for this execution. - #[prost(bool, tag="6")] - DisableAll(bool), - } -} -/// Request to terminate an in-progress execution. This action is irreversible. -/// If an execution is already terminated, this request will simply be a no-op. -/// This request will fail if it references a non-existent execution. -/// If the request succeeds the phase "ABORTED" will be recorded for the termination -/// with the optional cause added to the output_result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionTerminateRequest { - /// Uniquely identifies the individual workflow execution to be terminated. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Optional reason for aborting. - #[prost(string, tag="2")] - pub cause: ::prost::alloc::string::String, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionTerminateResponse { -} -/// Request structure to fetch inputs, output and other data produced by an execution. -/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.WorkflowExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetDataRequest { - /// The identifier of the execution for which to fetch inputs and outputs. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for WorkflowExecutionGetDataRequest which contains inputs and outputs for an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub outputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub inputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionUpdateRequest { - /// Identifier of the execution to update - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// State to set as the new value active/archive - #[prost(enumeration="ExecutionState", tag="2")] - pub state: i32, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionStateChangeDetails { - /// The state of the execution is used to control its visibility in the UI/CLI. - #[prost(enumeration="ExecutionState", tag="1")] - pub state: i32, - /// This timestamp represents when the state changed. - #[prost(message, optional, tag="2")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// Identifies the entity (if any) responsible for causing the state change of the execution - #[prost(string, tag="3")] - pub principal: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionUpdateResponse { -} -/// WorkflowExecutionGetMetricsRequest represents a request to retrieve metrics for the specified workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetMetricsRequest { - /// id defines the workflow execution to query for. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// depth defines the number of Flyte entity levels to traverse when breaking down execution details. - #[prost(int32, tag="2")] - pub depth: i32, -} -/// WorkflowExecutionGetMetricsResponse represents the response containing metrics for the specified workflow execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionGetMetricsResponse { - /// Span defines the top-level breakdown of the workflows execution. More precise information is nested in a - /// hierarchical structure using Flyte entity references. - #[prost(message, optional, tag="1")] - pub span: ::core::option::Option, -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ExecutionState { - /// By default, all executions are considered active. - ExecutionActive = 0, - /// Archived executions are no longer visible in the UI. - ExecutionArchived = 1, -} -impl ExecutionState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ExecutionState::ExecutionActive => "EXECUTION_ACTIVE", - ExecutionState::ExecutionArchived => "EXECUTION_ARCHIVED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EXECUTION_ACTIVE" => Some(Self::ExecutionActive), - "EXECUTION_ARCHIVED" => Some(Self::ExecutionArchived), - _ => None, - } - } -} -/// Option for schedules run at a certain frequency e.g. every 2 minutes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FixedRate { - #[prost(uint32, tag="1")] - pub value: u32, - #[prost(enumeration="FixedRateUnit", tag="2")] - pub unit: i32, -} -/// Options for schedules to run according to a cron expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CronSchedule { - /// Standard/default cron implementation as described by - /// Also supports nonstandard predefined scheduling definitions - /// as described by - /// except @reboot - #[prost(string, tag="1")] - pub schedule: ::prost::alloc::string::String, - /// ISO 8601 duration as described by - #[prost(string, tag="2")] - pub offset: ::prost::alloc::string::String, -} -/// Defines complete set of information required to trigger an execution on a schedule. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Schedule { - /// Name of the input variable that the kickoff time will be supplied to when the workflow is kicked off. - #[prost(string, tag="3")] - pub kickoff_time_input_arg: ::prost::alloc::string::String, - #[prost(oneof="schedule::ScheduleExpression", tags="1, 2, 4")] - pub schedule_expression: ::core::option::Option, -} -/// Nested message and enum types in `Schedule`. -pub mod schedule { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum ScheduleExpression { - /// Uses AWS syntax: Minutes Hours Day-of-month Month Day-of-week Year - /// e.g. for a schedule that runs every 15 minutes: 0/15 * * * ? * - #[prost(string, tag="1")] - CronExpression(::prost::alloc::string::String), - #[prost(message, tag="2")] - Rate(super::FixedRate), - #[prost(message, tag="4")] - CronSchedule(super::CronSchedule), - } -} -/// Represents a frequency at which to run a schedule. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum FixedRateUnit { - Minute = 0, - Hour = 1, - Day = 2, -} -impl FixedRateUnit { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - FixedRateUnit::Minute => "MINUTE", - FixedRateUnit::Hour => "HOUR", - FixedRateUnit::Day => "DAY", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "MINUTE" => Some(Self::Minute), - "HOUR" => Some(Self::Hour), - "DAY" => Some(Self::Day), - _ => None, - } - } -} -/// Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required -/// to launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to -/// set the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanCreateRequest { - /// Uniquely identifies a launch plan entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided launch plan details, including reference workflow, inputs and other metadata. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanCreateResponse { -} -/// A LaunchPlan provides the capability to templatize workflow executions. -/// Launch plans simplify associating one or more schedules, inputs and notifications with your workflows. -/// Launch plans can be shared and used to trigger executions with predefined inputs even when a workflow -/// definition doesn't necessarily have a default value for said input. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlan { - /// Uniquely identifies a launch plan entity. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// User-provided launch plan details, including reference workflow, inputs and other metadata. - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - /// Values computed by the flyte platform after launch plan registration. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, -} -/// Response object for list launch plan requests. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanList { - #[prost(message, repeated, tag="1")] - pub launch_plans: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Defines permissions associated with executions created by this launch plan spec. -/// Use either of these roles when they have permissions required by your workflow execution. -/// Deprecated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Auth { - /// Defines an optional iam role which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="1")] - pub assumable_iam_role: ::prost::alloc::string::String, - /// Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan. - #[prost(string, tag="2")] - pub kubernetes_service_account: ::prost::alloc::string::String, -} -/// User-provided launch plan definition and configuration values. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanSpec { - /// Reference to the Workflow template that the launch plan references - #[prost(message, optional, tag="1")] - pub workflow_id: ::core::option::Option, - /// Metadata for the Launch Plan - #[prost(message, optional, tag="2")] - pub entity_metadata: ::core::option::Option, - /// Input values to be passed for the execution. - /// These can be overridden when an execution is created with this launch plan. - #[prost(message, optional, tag="3")] - pub default_inputs: ::core::option::Option, - /// Fixed, non-overridable inputs for the Launch Plan. - /// These can not be overridden when an execution is created with this launch plan. - #[prost(message, optional, tag="4")] - pub fixed_inputs: ::core::option::Option, - /// String to indicate the role to use to execute the workflow underneath - #[deprecated] - #[prost(string, tag="5")] - pub role: ::prost::alloc::string::String, - /// Custom labels to be applied to the execution resource. - #[prost(message, optional, tag="6")] - pub labels: ::core::option::Option, - /// Custom annotations to be applied to the execution resource. - #[prost(message, optional, tag="7")] - pub annotations: ::core::option::Option, - /// Indicates the permission associated with workflow executions triggered with this launch plan. - #[deprecated] - #[prost(message, optional, tag="8")] - pub auth: ::core::option::Option, - #[deprecated] - #[prost(message, optional, tag="9")] - pub auth_role: ::core::option::Option, - /// Indicates security context for permissions triggered with this launch plan - #[prost(message, optional, tag="10")] - pub security_context: ::core::option::Option, - /// Indicates the runtime priority of the execution. - #[prost(message, optional, tag="16")] - pub quality_of_service: ::core::option::Option, - /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - #[prost(message, optional, tag="17")] - pub raw_output_data_config: ::core::option::Option, - /// Controls the maximum number of tasknodes that can be run in parallel for the entire workflow. - /// This is useful to achieve fairness. Note: MapTasks are regarded as one unit, - /// and parallelism/concurrency of MapTasks is independent from this. - #[prost(int32, tag="18")] - pub max_parallelism: i32, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="19")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="20")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="21")] - pub envs: ::core::option::Option, -} -/// Values computed by the flyte platform after launch plan registration. -/// These include expected_inputs required to be present in a CreateExecutionRequest -/// to launch the reference workflow as well timestamp values associated with the launch plan. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanClosure { - /// Indicate the Launch plan state. - #[prost(enumeration="LaunchPlanState", tag="1")] - pub state: i32, - /// Indicates the set of inputs expected when creating an execution with the Launch plan - #[prost(message, optional, tag="2")] - pub expected_inputs: ::core::option::Option, - /// Indicates the set of outputs expected to be produced by creating an execution with the Launch plan - #[prost(message, optional, tag="3")] - pub expected_outputs: ::core::option::Option, - /// Time at which the launch plan was created. - #[prost(message, optional, tag="4")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the launch plan was last updated. - #[prost(message, optional, tag="5")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// Additional launch plan attributes included in the LaunchPlanSpec not strictly required to launch -/// the reference workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanMetadata { - /// Schedule to execute the Launch Plan - #[prost(message, optional, tag="1")] - pub schedule: ::core::option::Option, - /// List of notifications based on Execution status transitions - #[prost(message, repeated, tag="2")] - pub notifications: ::prost::alloc::vec::Vec, - /// Additional metadata for how to launch the launch plan - #[prost(message, optional, tag="3")] - pub launch_conditions: ::core::option::Option<::prost_types::Any>, -} -/// Request to set the referenced launch plan state to the configured value. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanUpdateRequest { - /// Identifier of launch plan for which to change state. - /// +required. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Desired state to apply to the launch plan. - /// +required. - #[prost(enumeration="LaunchPlanState", tag="2")] - pub state: i32, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LaunchPlanUpdateResponse { -} -/// Represents a request struct for finding an active launch plan for a given NamedEntityIdentifier -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ActiveLaunchPlanRequest { - /// +required. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to list active launch plans within a project/domain. -/// See :ref:`ref_flyteidl.admin.LaunchPlan` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ActiveLaunchPlanListRequest { - /// Name of the project that contains the identifiers. - /// +required. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the identifiers belongs to within the project. - /// +required. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Indicates the number of resources to be returned. - /// +required. - #[prost(uint32, tag="3")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="4")] - pub token: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// By default any launch plan regardless of state can be used to launch a workflow execution. -/// However, at most one version of a launch plan -/// (e.g. a NamedEntityIdentifier set of shared project, domain and name values) can be -/// active at a time in regards to *schedules*. That is, at most one schedule in a NamedEntityIdentifier -/// group will be observed and trigger executions at a defined cadence. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum LaunchPlanState { - Inactive = 0, - Active = 1, -} -impl LaunchPlanState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LaunchPlanState::Inactive => "INACTIVE", - LaunchPlanState::Active => "ACTIVE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "INACTIVE" => Some(Self::Inactive), - "ACTIVE" => Some(Self::Active), - _ => None, - } - } -} -/// Defines a set of overridable task resource attributes set during task registration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskResourceSpec { - #[prost(string, tag="1")] - pub cpu: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub gpu: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub memory: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub storage: ::prost::alloc::string::String, - #[prost(string, tag="5")] - pub ephemeral_storage: ::prost::alloc::string::String, -} -/// Defines task resource defaults and limits that will be applied at task registration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskResourceAttributes { - #[prost(message, optional, tag="1")] - pub defaults: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub limits: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ClusterResourceAttributes { - /// Custom resource attributes which will be applied in cluster resource creation (e.g. quotas). - /// Map keys are the *case-sensitive* names of variables in templatized resource files. - /// Map values should be the custom values which get substituted during resource creation. - #[prost(map="string, string", tag="1")] - pub attributes: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionQueueAttributes { - /// Tags used for assigning execution queues for tasks defined within this project. - #[prost(string, repeated, tag="1")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionClusterLabel { - /// Label value to determine where the execution will be run - #[prost(string, tag="1")] - pub value: ::prost::alloc::string::String, -} -/// This MatchableAttribute configures selecting alternate plugin implementations for a given task type. -/// In addition to an override implementation a selection of fallbacks can be provided or other modes -/// for handling cases where the desired plugin override is not enabled in a given Flyte deployment. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PluginOverride { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// A set of plugin ids which should handle tasks of this type instead of the default registered plugin. The list will be tried in order until a plugin is found with that id. - #[prost(string, repeated, tag="2")] - pub plugin_id: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Defines the behavior when no plugin from the plugin_id list is not found. - #[prost(enumeration="plugin_override::MissingPluginBehavior", tag="4")] - pub missing_plugin_behavior: i32, -} -/// Nested message and enum types in `PluginOverride`. -pub mod plugin_override { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MissingPluginBehavior { - /// By default, if this plugin is not enabled for a Flyte deployment then execution will fail. - Fail = 0, - /// Uses the system-configured default implementation. - UseDefault = 1, - } - impl MissingPluginBehavior { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MissingPluginBehavior::Fail => "FAIL", - MissingPluginBehavior::UseDefault => "USE_DEFAULT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "FAIL" => Some(Self::Fail), - "USE_DEFAULT" => Some(Self::UseDefault), - _ => None, - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PluginOverrides { - #[prost(message, repeated, tag="1")] - pub overrides: ::prost::alloc::vec::Vec, -} -/// Adds defaults for customizable workflow-execution specifications and overrides. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionConfig { - /// Can be used to control the number of parallel nodes to run within the workflow. This is useful to achieve fairness. - #[prost(int32, tag="1")] - pub max_parallelism: i32, - /// Indicates security context permissions for executions triggered with this matchable attribute. - #[prost(message, optional, tag="2")] - pub security_context: ::core::option::Option, - /// Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.). - #[prost(message, optional, tag="3")] - pub raw_output_data_config: ::core::option::Option, - /// Custom labels to be applied to a triggered execution resource. - #[prost(message, optional, tag="4")] - pub labels: ::core::option::Option, - /// Custom annotations to be applied to a triggered execution resource. - #[prost(message, optional, tag="5")] - pub annotations: ::core::option::Option, - /// Allows for the interruptible flag of a workflow to be overwritten for a single execution. - /// Omitting this field uses the workflow's value as a default. - /// As we need to distinguish between the field not being provided and its default value false, we have to use a wrapper - /// around the bool field. - #[prost(message, optional, tag="6")] - pub interruptible: ::core::option::Option, - /// Allows for all cached values of a workflow and its tasks to be overwritten for a single execution. - /// If enabled, all calculations are performed even if cached results would be available, overwriting the stored - /// data once execution finishes successfully. - #[prost(bool, tag="7")] - pub overwrite_cache: bool, - /// Environment variables to be set for the execution. - #[prost(message, optional, tag="8")] - pub envs: ::core::option::Option, -} -/// Generic container for encapsulating all types of the above attributes messages. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct MatchingAttributes { - #[prost(oneof="matching_attributes::Target", tags="1, 2, 3, 4, 5, 6, 7, 8")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `MatchingAttributes`. -pub mod matching_attributes { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - #[prost(message, tag="1")] - TaskResourceAttributes(super::TaskResourceAttributes), - #[prost(message, tag="2")] - ClusterResourceAttributes(super::ClusterResourceAttributes), - #[prost(message, tag="3")] - ExecutionQueueAttributes(super::ExecutionQueueAttributes), - #[prost(message, tag="4")] - ExecutionClusterLabel(super::ExecutionClusterLabel), - #[prost(message, tag="5")] - QualityOfService(super::super::core::QualityOfService), - #[prost(message, tag="6")] - PluginOverrides(super::PluginOverrides), - #[prost(message, tag="7")] - WorkflowExecutionConfig(super::WorkflowExecutionConfig), - #[prost(message, tag="8")] - ClusterAssignment(super::ClusterAssignment), - } -} -/// Represents a custom set of attributes applied for either a domain; a domain and project; or -/// domain, project and workflow name. -/// These are used to override system level defaults for kubernetes cluster resource management, -/// default execution values, and more all across different levels of specificity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct MatchableAttributesConfiguration { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub project: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub workflow: ::prost::alloc::string::String, - #[prost(string, tag="5")] - pub launch_plan: ::prost::alloc::string::String, -} -/// Request all matching resource attributes for a resource type. -/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListMatchableAttributesRequest { - /// +required - #[prost(enumeration="MatchableResource", tag="1")] - pub resource_type: i32, -} -/// Response for a request for all matching resource attributes for a resource type. -/// See :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ListMatchableAttributesResponse { - #[prost(message, repeated, tag="1")] - pub configurations: ::prost::alloc::vec::Vec, -} -/// Defines a resource that can be configured by customizable Project-, ProjectDomain- or WorkflowAttributes -/// based on matching tags. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum MatchableResource { - /// Applies to customizable task resource requests and limits. - TaskResource = 0, - /// Applies to configuring templated kubernetes cluster resources. - ClusterResource = 1, - /// Configures task and dynamic task execution queue assignment. - ExecutionQueue = 2, - /// Configures the K8s cluster label to be used for execution to be run - ExecutionClusterLabel = 3, - /// Configures default quality of service when undefined in an execution spec. - QualityOfServiceSpecification = 4, - /// Selects configurable plugin implementation behavior for a given task type. - PluginOverride = 5, - /// Adds defaults for customizable workflow-execution specifications and overrides. - WorkflowExecutionConfig = 6, - /// Controls how to select an available cluster on which this execution should run. - ClusterAssignment = 7, -} -impl MatchableResource { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MatchableResource::TaskResource => "TASK_RESOURCE", - MatchableResource::ClusterResource => "CLUSTER_RESOURCE", - MatchableResource::ExecutionQueue => "EXECUTION_QUEUE", - MatchableResource::ExecutionClusterLabel => "EXECUTION_CLUSTER_LABEL", - MatchableResource::QualityOfServiceSpecification => "QUALITY_OF_SERVICE_SPECIFICATION", - MatchableResource::PluginOverride => "PLUGIN_OVERRIDE", - MatchableResource::WorkflowExecutionConfig => "WORKFLOW_EXECUTION_CONFIG", - MatchableResource::ClusterAssignment => "CLUSTER_ASSIGNMENT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "TASK_RESOURCE" => Some(Self::TaskResource), - "CLUSTER_RESOURCE" => Some(Self::ClusterResource), - "EXECUTION_QUEUE" => Some(Self::ExecutionQueue), - "EXECUTION_CLUSTER_LABEL" => Some(Self::ExecutionClusterLabel), - "QUALITY_OF_SERVICE_SPECIFICATION" => Some(Self::QualityOfServiceSpecification), - "PLUGIN_OVERRIDE" => Some(Self::PluginOverride), - "WORKFLOW_EXECUTION_CONFIG" => Some(Self::WorkflowExecutionConfig), - "CLUSTER_ASSIGNMENT" => Some(Self::ClusterAssignment), - _ => None, - } - } -} -/// A message used to fetch a single node execution entity. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetRequest { - /// Uniquely identifies an individual node execution. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to retrieve a list of node execution entities. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionListRequest { - /// Indicates the workflow execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub workflow_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - // In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - // in a query. - // +optional - - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, - /// Unique identifier of the parent node in the execution - /// +optional - #[prost(string, tag="6")] - pub unique_parent_id: ::prost::alloc::string::String, -} -/// Represents a request structure to retrieve a list of node execution entities launched by a specific task. -/// This can arise when a task yields a subworkflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionForTaskListRequest { - /// Indicates the node execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub task_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Encapsulates all details for a single node execution entity. -/// A node represents a component in the overall workflow graph. A node launch a task, multiple tasks, an entire nested -/// sub-workflow, or even a separate child-workflow execution. -/// The same task can be called repeatedly in a single workflow but each node is unique. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecution { - /// Uniquely identifies an individual node execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Path to remote data store where input blob is stored. - #[prost(string, tag="2")] - pub input_uri: ::prost::alloc::string::String, - /// Computed results associated with this node execution. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, - /// Metadata for Node Execution - #[prost(message, optional, tag="4")] - pub metadata: ::core::option::Option, -} -/// Represents additional attributes related to a Node Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionMetaData { - /// Node executions are grouped depending on retries of the parent - /// Retry group is unique within the context of a parent node. - #[prost(string, tag="1")] - pub retry_group: ::prost::alloc::string::String, - /// Boolean flag indicating if the node has child nodes under it - /// This can be true when a node contains a dynamic workflow which then produces - /// child nodes. - #[prost(bool, tag="2")] - pub is_parent_node: bool, - /// Node id of the node in the original workflow - /// This maps to value of WorkflowTemplate.nodes\[X\].id - #[prost(string, tag="3")] - pub spec_node_id: ::prost::alloc::string::String, - /// Boolean flag indicating if the node has contains a dynamic workflow which then produces child nodes. - /// This is to distinguish between subworkflows and dynamic workflows which can both have is_parent_node as true. - #[prost(bool, tag="4")] - pub is_dynamic: bool, - /// Boolean flag indicating if the node is an array node. This is intended to uniquely identify - /// array nodes from other nodes which can have is_parent_node as true. - #[prost(bool, tag="5")] - pub is_array: bool, -} -/// Request structure to retrieve a list of node execution entities. -/// See :ref:`ref_flyteidl.admin.NodeExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionList { - #[prost(message, repeated, tag="1")] - pub node_executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Container for node execution details and results. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionClosure { - /// The last recorded phase for this node execution. - #[prost(enumeration="super::core::node_execution::Phase", tag="3")] - pub phase: i32, - /// Time at which the node execution began running. - #[prost(message, optional, tag="4")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the node execution spent running. - #[prost(message, optional, tag="5")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Time at which the node execution was created. - #[prost(message, optional, tag="6")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the node execution was last updated. - #[prost(message, optional, tag="7")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// String location uniquely identifying where the deck HTML file is. - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="11")] - pub deck_uri: ::prost::alloc::string::String, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for a DynamicWorkflow. This is required - /// to correctly recover partially completed executions where the subworkflow has already been compiled. - #[prost(string, tag="12")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, - /// Only a node in a terminal state will have a non-empty output_result. - #[prost(oneof="node_execution_closure::OutputResult", tags="1, 2, 10")] - pub output_result: ::core::option::Option, - /// Store metadata for what the node launched. - /// for ex: if this is a workflow node, we store information for the launched workflow. - #[prost(oneof="node_execution_closure::TargetMetadata", tags="8, 9")] - pub target_metadata: ::core::option::Option, -} -/// Nested message and enum types in `NodeExecutionClosure`. -pub mod node_execution_closure { - /// Only a node in a terminal state will have a non-empty output_result. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Links to a remotely stored, serialized core.LiteralMap of node execution outputs. - /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - #[prost(string, tag="1")] - OutputUri(::prost::alloc::string::String), - /// Error information for the Node - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this node execution. - /// DEPRECATED. Use GetNodeExecutionData to fetch output data instead. - #[prost(message, tag="10")] - OutputData(super::super::core::LiteralMap), - } - /// Store metadata for what the node launched. - /// for ex: if this is a workflow node, we store information for the launched workflow. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum TargetMetadata { - #[prost(message, tag="8")] - WorkflowNodeMetadata(super::WorkflowNodeMetadata), - #[prost(message, tag="9")] - TaskNodeMetadata(super::TaskNodeMetadata), - } -} -/// Metadata for a WorkflowNode -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNodeMetadata { - /// The identifier for a workflow execution launched by a node. - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, -} -/// Metadata for the case in which the node is a TaskNode -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeMetadata { - /// Captures the status of caching for this execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] - pub cache_status: i32, - /// This structure carries the catalog artifact information - #[prost(message, optional, tag="2")] - pub catalog_key: ::core::option::Option, - /// The latest checkpoint location - #[prost(string, tag="4")] - pub checkpoint_uri: ::prost::alloc::string::String, -} -/// For dynamic workflow nodes we capture information about the dynamic workflow definition that gets generated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicWorkflowNodeMetadata { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the compiled representation of the embedded dynamic workflow. - #[prost(message, optional, tag="2")] - pub compiled_workflow: ::core::option::Option, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - /// required to correctly recover partially completed executions where the subworkflow has already been compiled. - #[prost(string, tag="3")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, -} -/// Request structure to fetch inputs and output for a node execution. -/// By default, these are not returned in :ref:`ref_flyteidl.admin.NodeExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetDataRequest { - /// The identifier of the node execution for which to fetch inputs and outputs. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for NodeExecutionGetDataRequest which contains inputs and outputs for a node execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of node execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of node execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, - /// Optional Workflow closure for a dynamically generated workflow, in the case this node yields a dynamic workflow we return its structure here. - #[prost(message, optional, tag="16")] - pub dynamic_workflow: ::core::option::Option, - #[prost(message, optional, tag="17")] - pub flyte_urls: ::core::option::Option, -} -/// Represents the Email object that is sent to a publisher/subscriber -/// to forward the notification. -/// Note: This is internal to Admin and doesn't need to be exposed to other components. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EmailMessage { - /// The list of email addresses to receive an email with the content populated in the other fields. - /// Currently, each email recipient will receive its own email. - /// This populates the TO field. - #[prost(string, repeated, tag="1")] - pub recipients_email: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// The email of the sender. - /// This populates the FROM field. - #[prost(string, tag="2")] - pub sender_email: ::prost::alloc::string::String, - /// The content of the subject line. - /// This populates the SUBJECT field. - #[prost(string, tag="3")] - pub subject_line: ::prost::alloc::string::String, - /// The content of the email body. - /// This populates the BODY field. - #[prost(string, tag="4")] - pub body: ::prost::alloc::string::String, -} -/// Namespace within a project commonly used to differentiate between different service instances. -/// e.g. "production", "development", etc. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Domain { - /// Globally unique domain name. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Display name. - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, -} -/// Top-level namespace used to classify different entities like workflows and executions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Project { - /// Globally unique project name. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Display name. - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - #[prost(message, repeated, tag="3")] - pub domains: ::prost::alloc::vec::Vec, - #[prost(string, tag="4")] - pub description: ::prost::alloc::string::String, - /// Leverage Labels from flyteidl.admin.common.proto to - /// tag projects with ownership information. - #[prost(message, optional, tag="5")] - pub labels: ::core::option::Option, - #[prost(enumeration="project::ProjectState", tag="6")] - pub state: i32, -} -/// Nested message and enum types in `Project`. -pub mod project { - /// The state of the project is used to control its visibility in the UI and validity. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ProjectState { - /// By default, all projects are considered active. - Active = 0, - /// Archived projects are no longer visible in the UI and no longer valid. - Archived = 1, - /// System generated projects that aren't explicitly created or managed by a user. - SystemGenerated = 2, - } - impl ProjectState { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ProjectState::Active => "ACTIVE", - ProjectState::Archived => "ARCHIVED", - ProjectState::SystemGenerated => "SYSTEM_GENERATED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ACTIVE" => Some(Self::Active), - "ARCHIVED" => Some(Self::Archived), - "SYSTEM_GENERATED" => Some(Self::SystemGenerated), - _ => None, - } - } - } -} -/// Represents a list of projects. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Projects { - #[prost(message, repeated, tag="1")] - pub projects: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Request to retrieve a list of projects matching specified filters. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectListRequest { - /// Indicates the number of projects to be returned. - /// +required - #[prost(uint32, tag="1")] - pub limit: u32, - /// In the case of multiple pages of results, this server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="3")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="4")] - pub sort_by: ::core::option::Option, -} -/// Adds a new user-project within the Flyte deployment. -/// See :ref:`ref_flyteidl.admin.Project` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectRegisterRequest { - /// +required - #[prost(message, optional, tag="1")] - pub project: ::core::option::Option, -} -/// Purposefully empty, may be updated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectRegisterResponse { -} -/// Purposefully empty, may be updated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectUpdateResponse { -} -/// Defines a set of custom matching attributes at the project level. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub matching_attributes: ::core::option::Option, -} -/// Sets custom attributes for a project -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesUpdateRequest { - /// +required - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesUpdateResponse { -} -/// Request to get an individual project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="2")] - pub resource_type: i32, -} -/// Response to get an individual project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable project level attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="2")] - pub resource_type: i32, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectAttributesDeleteResponse { -} -/// Defines a set of custom matching attributes which defines resource defaults for a project and domain. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id for which this set of attributes will be applied. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(message, optional, tag="3")] - pub matching_attributes: ::core::option::Option, -} -/// Sets custom attributes for a project-domain combination. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesUpdateRequest { - /// +required - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesUpdateResponse { -} -/// Request to get an individual project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="3")] - pub resource_type: i32, -} -/// Response to get an individual project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable project domain attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="3")] - pub resource_type: i32, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ProjectDomainAttributesDeleteResponse { -} -/// SignalGetOrCreateRequest represents a request structure to retrieve or create a signal. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalGetOrCreateRequest { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, -} -/// SignalListRequest represents a request structure to retrieve a collection of signals. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalListRequest { - /// Indicates the workflow execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub workflow_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the, server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// SignalList represents collection of signals along with the token of the last result. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalList { - /// A list of signals matching the input filters. - #[prost(message, repeated, tag="1")] - pub signals: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// SignalSetRequest represents a request structure to set the value on a signal. Setting a signal -/// effetively satisfies the signal condition within a Flyte workflow. -/// See :ref:`ref_flyteidl.admin.Signal` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalSetRequest { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// The value of this signal, must match the defining signal type. - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// SignalSetResponse represents a response structure if signal setting succeeds. -/// -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalSetResponse { -} -/// Signal encapsulates a unique identifier, associated metadata, and a value for a single Flyte -/// signal. Signals may exist either without a set value (representing a signal request) or with a -/// populated value (indicating the signal has been given). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Signal { - /// A unique identifier for the requested signal. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, - /// The value of the signal. This is only available if the signal has been "set" and must match - /// the defined the type. - #[prost(message, optional, tag="3")] - pub value: ::core::option::Option, -} -/// Represents a request structure to create a revision of a task. -/// See :ref:`ref_flyteidl.admin.Task` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateRequest { - /// id represents the unique identifier of the task. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the specification for task. - /// +required - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Represents a response structure if task creation succeeds. -/// -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateResponse { -} -/// Flyte workflows are composed of many ordered tasks. That is small, reusable, self-contained logical blocks -/// arranged to process workflow inputs and produce a deterministic set of outputs. -/// Tasks can come in many varieties tuned for specialized behavior. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Task { - /// id represents the unique identifier of the task. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// closure encapsulates all the fields that maps to a compiled version of the task. - #[prost(message, optional, tag="2")] - pub closure: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="3")] - pub short_description: ::prost::alloc::string::String, -} -/// Represents a list of tasks returned from the admin. -/// See :ref:`ref_flyteidl.admin.Task` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskList { - /// A list of tasks returned based on the request. - #[prost(message, repeated, tag="1")] - pub tasks: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a structure that encapsulates the user-configured specification of the task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskSpec { - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// Represents the specification for description entity. - #[prost(message, optional, tag="2")] - pub description: ::core::option::Option, -} -/// Compute task attributes which include values derived from the TaskSpec, as well as plugin-specific data -/// and task metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskClosure { - /// Represents the compiled representation of the task from the specification provided. - #[prost(message, optional, tag="1")] - pub compiled_task: ::core::option::Option, - /// Time at which the task was created. - #[prost(message, optional, tag="2")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// A message used to fetch a single task execution entity. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetRequest { - /// Unique identifier for the task execution. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Represents a request structure to retrieve a list of task execution entities yielded by a specific node execution. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionListRequest { - /// Indicates the node execution to filter by. - /// +required - #[prost(message, optional, tag="1")] - pub node_execution_id: ::core::option::Option, - /// Indicates the number of resources to be returned. - /// +required - #[prost(uint32, tag="2")] - pub limit: u32, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. - /// +optional - #[prost(string, tag="3")] - pub token: ::prost::alloc::string::String, - /// Indicates a list of filters passed as string. - /// More info on constructing filters : - /// +optional - #[prost(string, tag="4")] - pub filters: ::prost::alloc::string::String, - /// Sort ordering for returned list. - /// +optional - #[prost(message, optional, tag="5")] - pub sort_by: ::core::option::Option, -} -/// Encapsulates all details for a single task execution entity. -/// A task execution represents an instantiated task, including all inputs and additional -/// metadata as well as computed results included state, outputs, and duration-based attributes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecution { - /// Unique identifier for the task execution. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Path to remote data store where input blob is stored. - #[prost(string, tag="2")] - pub input_uri: ::prost::alloc::string::String, - /// Task execution details and results. - #[prost(message, optional, tag="3")] - pub closure: ::core::option::Option, - /// Whether this task spawned nodes. - #[prost(bool, tag="4")] - pub is_parent: bool, -} -/// Response structure for a query to list of task execution entities. -/// See :ref:`ref_flyteidl.admin.TaskExecution` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionList { - #[prost(message, repeated, tag="1")] - pub task_executions: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Container for task execution details and results. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionClosure { - /// The last recorded phase for this task execution. - #[prost(enumeration="super::core::task_execution::Phase", tag="3")] - pub phase: i32, - /// Detailed log information output by the task execution. - #[prost(message, repeated, tag="4")] - pub logs: ::prost::alloc::vec::Vec, - /// Time at which the task execution began running. - #[prost(message, optional, tag="5")] - pub started_at: ::core::option::Option<::prost_types::Timestamp>, - /// The amount of time the task execution spent running. - #[prost(message, optional, tag="6")] - pub duration: ::core::option::Option<::prost_types::Duration>, - /// Time at which the task execution was created. - #[prost(message, optional, tag="7")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, - /// Time at which the task execution was last updated. - #[prost(message, optional, tag="8")] - pub updated_at: ::core::option::Option<::prost_types::Timestamp>, - /// Custom data specific to the task plugin. - #[prost(message, optional, tag="9")] - pub custom_info: ::core::option::Option<::prost_types::Struct>, - /// If there is an explanation for the most recent phase transition, the reason will capture it. - #[prost(string, tag="10")] - pub reason: ::prost::alloc::string::String, - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="11")] - pub task_type: ::prost::alloc::string::String, - /// Metadata around how a task was executed. - #[prost(message, optional, tag="16")] - pub metadata: ::core::option::Option, - /// The event version is used to indicate versioned changes in how data is maintained using this - /// proto message. For example, event_verison > 0 means that maps tasks logs use the - /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - /// in this message. - #[prost(int32, tag="17")] - pub event_version: i32, - /// A time-series of the phase transition or update explanations. This, when compared to storing a singular reason - /// as previously done, is much more valuable in visualizing and understanding historical evaluations. - #[prost(message, repeated, tag="18")] - pub reasons: ::prost::alloc::vec::Vec, - #[prost(oneof="task_execution_closure::OutputResult", tags="1, 2, 12")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `TaskExecutionClosure`. -pub mod task_execution_closure { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// Path to remote data store where output blob is stored if the execution succeeded (and produced outputs). - /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - #[prost(string, tag="1")] - OutputUri(::prost::alloc::string::String), - /// Error information for the task execution. Populated if the execution failed. - #[prost(message, tag="2")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this task execution. - /// DEPRECATED. Use GetTaskExecutionData to fetch output data instead. - #[prost(message, tag="12")] - OutputData(super::super::core::LiteralMap), - } -} -/// Reason is a single message annotated with a timestamp to indicate the instant the reason occurred. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Reason { - /// occurred_at is the timestamp indicating the instant that this reason happened. - #[prost(message, optional, tag="1")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// message is the explanation for the most recent phase transition or status update. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, -} -/// Request structure to fetch inputs and output for a task execution. -/// By default this data is not returned inline in :ref:`ref_flyteidl.admin.TaskExecutionGetRequest` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetDataRequest { - /// The identifier of the task execution for which to fetch inputs and outputs. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// Response structure for TaskExecutionGetDataRequest which contains inputs and outputs for a task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionGetDataResponse { - /// Signed url to fetch a core.LiteralMap of task execution inputs. - /// Deprecated: Please use full_inputs instead. - #[deprecated] - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Signed url to fetch a core.LiteralMap of task execution outputs. - /// Deprecated: Please use full_outputs instead. - #[deprecated] - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, - /// Full_inputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="3")] - pub full_inputs: ::core::option::Option, - /// Full_outputs will only be populated if they are under a configured size threshold. - #[prost(message, optional, tag="4")] - pub full_outputs: ::core::option::Option, - /// flyte tiny url to fetch a core.LiteralMap of task execution's IO - /// Deck will be empty for task - #[prost(message, optional, tag="5")] - pub flyte_urls: ::core::option::Option, -} -/// Response for the GetVersion API -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetVersionResponse { - /// The control plane version information. FlyteAdmin and related components - /// form the control plane of Flyte - #[prost(message, optional, tag="1")] - pub control_plane_version: ::core::option::Option, -} -/// Provides Version information for a component -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Version { - /// Specifies the GIT sha of the build - #[prost(string, tag="1")] - pub build: ::prost::alloc::string::String, - /// Version for the build, should follow a semver - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// Build timestamp - #[prost(string, tag="3")] - pub build_time: ::prost::alloc::string::String, -} -/// Empty request for GetVersion -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetVersionRequest { -} -/// Represents a request structure to create a revision of a workflow. -/// See :ref:`ref_flyteidl.admin.Workflow` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowCreateRequest { - /// id represents the unique identifier of the workflow. - /// +required - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the specification for workflow. - /// +required - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowCreateResponse { -} -/// Represents the workflow structure stored in the Admin -/// A workflow is created by ordering tasks and associating outputs to inputs -/// in order to produce a directed-acyclic execution graph. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Workflow { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// closure encapsulates all the fields that maps to a compiled version of the workflow. - #[prost(message, optional, tag="2")] - pub closure: ::core::option::Option, - /// One-liner overview of the entity. - #[prost(string, tag="3")] - pub short_description: ::prost::alloc::string::String, -} -/// Represents a list of workflows returned from the admin. -/// See :ref:`ref_flyteidl.admin.Workflow` for more details -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowList { - /// A list of workflows returned based on the request. - #[prost(message, repeated, tag="1")] - pub workflows: ::prost::alloc::vec::Vec, - /// In the case of multiple pages of results, the server-provided token can be used to fetch the next page - /// in a query. If there are no more results, this value will be empty. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -/// Represents a structure that encapsulates the specification of the workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowSpec { - /// Template of the task that encapsulates all the metadata of the workflow. - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// Workflows that are embedded into other workflows need to be passed alongside the parent workflow to the - /// propeller compiler (since the compiler doesn't have any knowledge of other workflows - ie, it doesn't reach out - /// to Admin to see other registered workflows). In fact, subworkflows do not even need to be registered. - #[prost(message, repeated, tag="2")] - pub sub_workflows: ::prost::alloc::vec::Vec, - /// Represents the specification for description entity. - #[prost(message, optional, tag="3")] - pub description: ::core::option::Option, -} -/// A container holding the compiled workflow produced from the WorkflowSpec and additional metadata. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowClosure { - /// Represents the compiled representation of the workflow from the specification provided. - #[prost(message, optional, tag="1")] - pub compiled_workflow: ::core::option::Option, - /// Time at which the workflow was created. - #[prost(message, optional, tag="2")] - pub created_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// The workflow id is already used and the structure is different -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowErrorExistsDifferentStructure { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// The workflow id is already used with an identical sctructure -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowErrorExistsIdenticalStructure { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -/// When a CreateWorkflowRequest fails due to matching id -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateWorkflowFailureReason { - #[prost(oneof="create_workflow_failure_reason::Reason", tags="1, 2")] - pub reason: ::core::option::Option, -} -/// Nested message and enum types in `CreateWorkflowFailureReason`. -pub mod create_workflow_failure_reason { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reason { - #[prost(message, tag="1")] - ExistsDifferentStructure(super::WorkflowErrorExistsDifferentStructure), - #[prost(message, tag="2")] - ExistsIdenticalStructure(super::WorkflowErrorExistsIdenticalStructure), - } -} -/// Defines a set of custom matching attributes which defines resource defaults for a project, domain and workflow. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributes { - /// Unique project id for which this set of attributes will be applied. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id for which this set of attributes will be applied. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name for which this set of attributes will be applied. - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - #[prost(message, optional, tag="4")] - pub matching_attributes: ::core::option::Option, -} -/// Sets custom attributes for a project, domain and workflow combination. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesUpdateRequest { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesUpdateResponse { -} -/// Request to get an individual workflow attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesGetRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name which this set of attributes references. - /// +required - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - /// Which type of matchable attributes to return. - /// +required - #[prost(enumeration="MatchableResource", tag="4")] - pub resource_type: i32, -} -/// Response to get an individual workflow attribute override. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesGetResponse { - #[prost(message, optional, tag="1")] - pub attributes: ::core::option::Option, -} -/// Request to delete a set matchable workflow attribute override. -/// For more info on matchable attributes, see :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesDeleteRequest { - /// Unique project id which this set of attributes references. - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Unique domain id which this set of attributes references. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Workflow name which this set of attributes references. - /// +required - #[prost(string, tag="3")] - pub workflow: ::prost::alloc::string::String, - /// Which type of matchable attributes to delete. - /// +required - #[prost(enumeration="MatchableResource", tag="4")] - pub resource_type: i32, -} -/// Purposefully empty, may be populated in the future. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowAttributesDeleteResponse { -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.artifact.rs b/flyteidl/gen/pb_rust/flyteidl.artifact.rs deleted file mode 100644 index e3bc2c72fa..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.artifact.rs +++ /dev/null @@ -1,248 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Artifact { - #[prost(message, optional, tag="1")] - pub artifact_id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - /// references the tag field in ArtifactTag - #[prost(string, repeated, tag="3")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(message, optional, tag="4")] - pub source: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactRequest { - /// Specify just project/domain on creation - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(string, tag="3")] - pub version: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub spec: ::core::option::Option, - #[prost(map="string, string", tag="4")] - pub partitions: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(string, tag="5")] - pub tag: ::prost::alloc::string::String, - #[prost(message, optional, tag="6")] - pub source: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactSource { - #[prost(message, optional, tag="1")] - pub workflow_execution: ::core::option::Option, - #[prost(string, tag="2")] - pub node_id: ::prost::alloc::string::String, - #[prost(message, optional, tag="3")] - pub task_id: ::core::option::Option, - #[prost(uint32, tag="4")] - pub retry_attempt: u32, - /// Uploads, either from the UI or from the CLI, or FlyteRemote, will have this. - #[prost(string, tag="5")] - pub principal: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactSpec { - #[prost(message, optional, tag="1")] - pub value: ::core::option::Option, - /// This type will not form part of the artifact key, so for user-named artifacts, if the user changes the type, but - /// forgets to change the name, that is okay. And the reason why this is a separate field is because adding the - /// type to all Literals is a lot of work. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, - #[prost(string, tag="3")] - pub short_description: ::prost::alloc::string::String, - /// Additional user metadata - #[prost(message, optional, tag="4")] - pub user_metadata: ::core::option::Option<::prost_types::Any>, - #[prost(string, tag="5")] - pub metadata_type: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateArtifactResponse { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactRequest { - #[prost(message, optional, tag="1")] - pub query: ::core::option::Option, - /// If false, then long_description is not returned. - #[prost(bool, tag="2")] - pub details: bool, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetArtifactResponse { - #[prost(message, optional, tag="1")] - pub artifact: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SearchOptions { - /// If true, this means a strict partition search. meaning if you don't specify the partition - /// field, that will mean, non-partitioned, rather than any partition. - #[prost(bool, tag="1")] - pub strict_partitions: bool, - /// If true, only one artifact per key will be returned. It will be the latest one by creation time. - #[prost(bool, tag="2")] - pub latest_by_key: bool, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SearchArtifactsRequest { - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub partitions: ::core::option::Option, - #[prost(string, tag="3")] - pub principal: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub version: ::prost::alloc::string::String, - #[prost(message, optional, tag="5")] - pub options: ::core::option::Option, - #[prost(string, tag="6")] - pub token: ::prost::alloc::string::String, - #[prost(int32, tag="7")] - pub limit: i32, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SearchArtifactsResponse { - /// If artifact specs are not requested, the resultant artifacts may be empty. - #[prost(message, repeated, tag="1")] - pub artifacts: ::prost::alloc::vec::Vec, - /// continuation token if relevant. - #[prost(string, tag="2")] - pub token: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct FindByWorkflowExecRequest { - #[prost(message, optional, tag="1")] - pub exec_id: ::core::option::Option, - #[prost(enumeration="find_by_workflow_exec_request::Direction", tag="2")] - pub direction: i32, -} -/// Nested message and enum types in `FindByWorkflowExecRequest`. -pub mod find_by_workflow_exec_request { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Direction { - Inputs = 0, - Outputs = 1, - } - impl Direction { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Direction::Inputs => "INPUTS", - Direction::Outputs => "OUTPUTS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "INPUTS" => Some(Self::Inputs), - "OUTPUTS" => Some(Self::Outputs), - _ => None, - } - } - } -} -/// Aliases identify a particular version of an artifact. They are different than tags in that they -/// have to be unique for a given artifact project/domain/name. That is, for a given project/domain/name/kind, -/// at most one version can have any given value at any point. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagRequest { - #[prost(message, optional, tag="1")] - pub artifact_id: ::core::option::Option, - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, - /// If true, and another version already has the specified kind/value, set this version instead - #[prost(bool, tag="3")] - pub overwrite: bool, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct AddTagResponse { -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTriggerRequest { - #[prost(message, optional, tag="1")] - pub trigger_launch_plan: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateTriggerResponse { -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTriggerRequest { - #[prost(message, optional, tag="1")] - pub trigger_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DeleteTriggerResponse { -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactProducer { - /// These can be tasks, and workflows. Keeping track of the launch plans that a given workflow has is purely in - /// Admin's domain. - #[prost(message, optional, tag="1")] - pub entity_id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RegisterProducerRequest { - #[prost(message, repeated, tag="1")] - pub producers: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactConsumer { - /// These should all be launch plan IDs - #[prost(message, optional, tag="1")] - pub entity_id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub inputs: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RegisterConsumerRequest { - #[prost(message, repeated, tag="1")] - pub consumers: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RegisterResponse { -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionInputsRequest { - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, - /// can make this a map in the future, currently no need. - #[prost(message, repeated, tag="2")] - pub inputs: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionInputsResponse { -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.core.rs b/flyteidl/gen/pb_rust/flyteidl.core.rs deleted file mode 100644 index 75bb7f2f64..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.core.rs +++ /dev/null @@ -1,2876 +0,0 @@ -// @generated -/// Defines schema columns and types to strongly type-validate schemas interoperability. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SchemaType { - /// A list of ordered columns this schema comprises of. - #[prost(message, repeated, tag="3")] - pub columns: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `SchemaType`. -pub mod schema_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct SchemaColumn { - /// A unique name -within the schema type- for the column - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The column type. This allows a limited set of types currently. - #[prost(enumeration="schema_column::SchemaColumnType", tag="2")] - pub r#type: i32, - } - /// Nested message and enum types in `SchemaColumn`. - pub mod schema_column { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum SchemaColumnType { - Integer = 0, - Float = 1, - String = 2, - Boolean = 3, - Datetime = 4, - Duration = 5, - } - impl SchemaColumnType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SchemaColumnType::Integer => "INTEGER", - SchemaColumnType::Float => "FLOAT", - SchemaColumnType::String => "STRING", - SchemaColumnType::Boolean => "BOOLEAN", - SchemaColumnType::Datetime => "DATETIME", - SchemaColumnType::Duration => "DURATION", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "INTEGER" => Some(Self::Integer), - "FLOAT" => Some(Self::Float), - "STRING" => Some(Self::String), - "BOOLEAN" => Some(Self::Boolean), - "DATETIME" => Some(Self::Datetime), - "DURATION" => Some(Self::Duration), - _ => None, - } - } - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDatasetType { - /// A list of ordered columns this schema comprises of. - #[prost(message, repeated, tag="1")] - pub columns: ::prost::alloc::vec::Vec, - /// This is the storage format, the format of the bits at rest - /// parquet, feather, csv, etc. - /// For two types to be compatible, the format will need to be an exact match. - #[prost(string, tag="2")] - pub format: ::prost::alloc::string::String, - /// This is a string representing the type that the bytes in external_schema_bytes are formatted in. - /// This is an optional field that will not be used for type checking. - #[prost(string, tag="3")] - pub external_schema_type: ::prost::alloc::string::String, - /// The serialized bytes of a third-party schema library like Arrow. - /// This is an optional field that will not be used for type checking. - #[prost(bytes="vec", tag="4")] - pub external_schema_bytes: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `StructuredDatasetType`. -pub mod structured_dataset_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct DatasetColumn { - /// A unique name within the schema type for the column. - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The column type. - #[prost(message, optional, tag="2")] - pub literal_type: ::core::option::Option, - } -} -/// Defines type behavior for blob objects -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BlobType { - /// Format can be a free form string understood by SDK/UI etc like - /// csv, parquet etc - #[prost(string, tag="1")] - pub format: ::prost::alloc::string::String, - #[prost(enumeration="blob_type::BlobDimensionality", tag="2")] - pub dimensionality: i32, -} -/// Nested message and enum types in `BlobType`. -pub mod blob_type { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum BlobDimensionality { - Single = 0, - Multipart = 1, - } - impl BlobDimensionality { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - BlobDimensionality::Single => "SINGLE", - BlobDimensionality::Multipart => "MULTIPART", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "SINGLE" => Some(Self::Single), - "MULTIPART" => Some(Self::Multipart), - _ => None, - } - } - } -} -/// Enables declaring enum types, with predefined string values -/// For len(values) > 0, the first value in the ordered list is regarded as the default value. If you wish -/// To provide no defaults, make the first value as undefined. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EnumType { - /// Predefined set of enum values. - #[prost(string, repeated, tag="1")] - pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Defines a tagged union type, also known as a variant (and formally as the sum type). -/// -/// A sum type S is defined by a sequence of types (A, B, C, ...), each tagged by a string tag -/// A value of type S is constructed from a value of any of the variant types. The specific choice of type is recorded by -/// storing the varaint's tag with the literal value and can be examined in runtime. -/// -/// Type S is typically written as -/// S := Apple A | Banana B | Cantaloupe C | ... -/// -/// Notably, a nullable (optional) type is a sum type between some type X and the singleton type representing a null-value: -/// Optional X := X | Null -/// -/// See also: -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UnionType { - /// Predefined set of variants in union. - #[prost(message, repeated, tag="1")] - pub variants: ::prost::alloc::vec::Vec, -} -/// Hints to improve type matching -/// e.g. allows distinguishing output from custom type transformers -/// even if the underlying IDL serialization matches. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypeStructure { - /// Must exactly match for types to be castable - #[prost(string, tag="1")] - pub tag: ::prost::alloc::string::String, - /// dataclass_type only exists for dataclasses. - /// This is used to resolve the type of the fields of dataclass - /// The key is the field name, and the value is the literal type of the field - /// e.g. For dataclass Foo, with fields a, and a is a string - /// Foo.a will be resolved as a literal type of string from dataclass_type - #[prost(map="string, message", tag="2")] - pub dataclass_type: ::std::collections::HashMap<::prost::alloc::string::String, LiteralType>, -} -/// TypeAnnotation encapsulates registration time information about a type. This can be used for various control-plane operations. TypeAnnotation will not be available at runtime when a task runs. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypeAnnotation { - /// A arbitrary JSON payload to describe a type. - #[prost(message, optional, tag="1")] - pub annotations: ::core::option::Option<::prost_types::Struct>, -} -/// Defines a strong type to allow type checking between interfaces. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralType { - /// This field contains type metadata that is descriptive of the type, but is NOT considered in type-checking. This might be used by - /// consumers to identify special behavior or display extended information for the type. - #[prost(message, optional, tag="6")] - pub metadata: ::core::option::Option<::prost_types::Struct>, - /// This field contains arbitrary data that might have special semantic - /// meaning for the client but does not effect internal flyte behavior. - #[prost(message, optional, tag="9")] - pub annotation: ::core::option::Option, - /// Hints to improve type matching. - #[prost(message, optional, tag="11")] - pub structure: ::core::option::Option, - #[prost(oneof="literal_type::Type", tags="1, 2, 3, 4, 5, 7, 8, 10")] - pub r#type: ::core::option::Option, -} -/// Nested message and enum types in `LiteralType`. -pub mod literal_type { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Type { - /// A simple type that can be compared one-to-one with another. - #[prost(enumeration="super::SimpleType", tag="1")] - Simple(i32), - /// A complex type that requires matching of inner fields. - #[prost(message, tag="2")] - Schema(super::SchemaType), - /// Defines the type of the value of a collection. Only homogeneous collections are allowed. - #[prost(message, tag="3")] - CollectionType(::prost::alloc::boxed::Box), - /// Defines the type of the value of a map type. The type of the key is always a string. - #[prost(message, tag="4")] - MapValueType(::prost::alloc::boxed::Box), - /// A blob might have specialized implementation details depending on associated metadata. - #[prost(message, tag="5")] - Blob(super::BlobType), - /// Defines an enum with pre-defined string values. - #[prost(message, tag="7")] - EnumType(super::EnumType), - /// Generalized schema support - #[prost(message, tag="8")] - StructuredDatasetType(super::StructuredDatasetType), - /// Defines an union type with pre-defined LiteralTypes. - #[prost(message, tag="10")] - UnionType(super::UnionType), - } -} -/// A reference to an output produced by a node. The type can be retrieved -and validated- from -/// the underlying interface of the node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OutputReference { - /// Node id must exist at the graph layer. - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, - /// Variable name must refer to an output variable for the node. - #[prost(string, tag="2")] - pub var: ::prost::alloc::string::String, - #[prost(message, repeated, tag="3")] - pub attr_path: ::prost::alloc::vec::Vec, -} -// PromiseAttribute stores the attribute path of a promise, which will be resolved at runtime. -// The attribute path is a list of strings and integers. -// In the following example, -// ``` -// @workflow -// def wf(): -// o = t1() -// t2(o.a\["b"][0\]) -// ``` -// the output reference t2 binds to has a list of PromiseAttribute ["a", "b", 0] - -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PromiseAttribute { - #[prost(oneof="promise_attribute::Value", tags="1, 2")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `PromiseAttribute`. -pub mod promise_attribute { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(string, tag="1")] - StringValue(::prost::alloc::string::String), - #[prost(int32, tag="2")] - IntValue(i32), - } -} -/// Represents an error thrown from a node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Error { - /// The node id that threw the error. - #[prost(string, tag="1")] - pub failed_node_id: ::prost::alloc::string::String, - /// Error message thrown. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, -} -/// Define a set of simple types. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum SimpleType { - None = 0, - Integer = 1, - Float = 2, - String = 3, - Boolean = 4, - Datetime = 5, - Duration = 6, - Binary = 7, - Error = 8, - Struct = 9, -} -impl SimpleType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - SimpleType::None => "NONE", - SimpleType::Integer => "INTEGER", - SimpleType::Float => "FLOAT", - SimpleType::String => "STRING", - SimpleType::Boolean => "BOOLEAN", - SimpleType::Datetime => "DATETIME", - SimpleType::Duration => "DURATION", - SimpleType::Binary => "BINARY", - SimpleType::Error => "ERROR", - SimpleType::Struct => "STRUCT", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NONE" => Some(Self::None), - "INTEGER" => Some(Self::Integer), - "FLOAT" => Some(Self::Float), - "STRING" => Some(Self::String), - "BOOLEAN" => Some(Self::Boolean), - "DATETIME" => Some(Self::Datetime), - "DURATION" => Some(Self::Duration), - "BINARY" => Some(Self::Binary), - "ERROR" => Some(Self::Error), - "STRUCT" => Some(Self::Struct), - _ => None, - } - } -} -/// Primitive Types -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Primitive { - /// Defines one of simple primitive types. These types will get translated into different programming languages as - /// described in - #[prost(oneof="primitive::Value", tags="1, 2, 3, 4, 5, 6")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Primitive`. -pub mod primitive { - /// Defines one of simple primitive types. These types will get translated into different programming languages as - /// described in - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(int64, tag="1")] - Integer(i64), - #[prost(double, tag="2")] - FloatValue(f64), - #[prost(string, tag="3")] - StringValue(::prost::alloc::string::String), - #[prost(bool, tag="4")] - Boolean(bool), - #[prost(message, tag="5")] - Datetime(::prost_types::Timestamp), - #[prost(message, tag="6")] - Duration(::prost_types::Duration), - } -} -/// Used to denote a nil/null/None assignment to a scalar value. The underlying LiteralType for Void is intentionally -/// undefined since it can be assigned to a scalar of any LiteralType. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Void { -} -/// Refers to an offloaded set of files. It encapsulates the type of the store and a unique uri for where the data is. -/// There are no restrictions on how the uri is formatted since it will depend on how to interact with the store. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Blob { - #[prost(message, optional, tag="1")] - pub metadata: ::core::option::Option, - #[prost(string, tag="3")] - pub uri: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BlobMetadata { - #[prost(message, optional, tag="1")] - pub r#type: ::core::option::Option, -} -/// A simple byte array with a tag to help different parts of the system communicate about what is in the byte array. -/// It's strongly advisable that consumers of this type define a unique tag and validate the tag before parsing the data. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Binary { - #[prost(bytes="vec", tag="1")] - pub value: ::prost::alloc::vec::Vec, - #[prost(string, tag="2")] - pub tag: ::prost::alloc::string::String, -} -/// A strongly typed schema that defines the interface of data retrieved from the underlying storage medium. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Schema { - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(message, optional, tag="3")] - pub r#type: ::core::option::Option, -} -/// The runtime representation of a tagged union value. See `UnionType` for more details. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Union { - #[prost(message, optional, boxed, tag="1")] - pub value: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDatasetMetadata { - /// Bundle the type information along with the literal. - /// This is here because StructuredDatasets can often be more defined at run time than at compile time. - /// That is, at compile time you might only declare a task to return a pandas dataframe or a StructuredDataset, - /// without any column information, but at run time, you might have that column information. - /// flytekit python will copy this type information into the literal, from the type information, if not provided by - /// the various plugins (encoders). - /// Since this field is run time generated, it's not used for any type checking. - #[prost(message, optional, tag="1")] - pub structured_dataset_type: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct StructuredDataset { - /// String location uniquely identifying where the data is. - /// Should start with the storage location (e.g. s3://, gs://, bq://, etc.) - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Scalar { - #[prost(oneof="scalar::Value", tags="1, 2, 3, 4, 5, 6, 7, 8, 9")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Scalar`. -pub mod scalar { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(message, tag="1")] - Primitive(super::Primitive), - #[prost(message, tag="2")] - Blob(super::Blob), - #[prost(message, tag="3")] - Binary(super::Binary), - #[prost(message, tag="4")] - Schema(super::Schema), - #[prost(message, tag="5")] - NoneType(super::Void), - #[prost(message, tag="6")] - Error(super::Error), - #[prost(message, tag="7")] - Generic(::prost_types::Struct), - #[prost(message, tag="8")] - StructuredDataset(super::StructuredDataset), - #[prost(message, tag="9")] - Union(::prost::alloc::boxed::Box), - } -} -/// A simple value. This supports any level of nesting (e.g. array of array of array of Blobs) as well as simple primitives. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Literal { - /// A hash representing this literal. - /// This is used for caching purposes. For more details refer to RFC 1893 - /// () - #[prost(string, tag="4")] - pub hash: ::prost::alloc::string::String, - /// Additional metadata for literals. - #[prost(map="string, string", tag="5")] - pub metadata: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(oneof="literal::Value", tags="1, 2, 3")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `Literal`. -pub mod literal { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - /// A simple value. - #[prost(message, tag="1")] - Scalar(::prost::alloc::boxed::Box), - /// A collection of literals to allow nesting. - #[prost(message, tag="2")] - Collection(super::LiteralCollection), - /// A map of strings to literals. - #[prost(message, tag="3")] - Map(super::LiteralMap), - } -} -/// A collection of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralCollection { - #[prost(message, repeated, tag="1")] - pub literals: ::prost::alloc::vec::Vec, -} -/// A map of literals. This is a workaround since oneofs in proto messages cannot contain a repeated field. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LiteralMap { - #[prost(map="string, message", tag="1")] - pub literals: ::std::collections::HashMap<::prost::alloc::string::String, Literal>, -} -/// A collection of BindingData items. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingDataCollection { - #[prost(message, repeated, tag="1")] - pub bindings: ::prost::alloc::vec::Vec, -} -/// A map of BindingData items. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingDataMap { - #[prost(map="string, message", tag="1")] - pub bindings: ::std::collections::HashMap<::prost::alloc::string::String, BindingData>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UnionInfo { - #[prost(message, optional, tag="1")] - pub target_type: ::core::option::Option, -} -/// Specifies either a simple value or a reference to another output. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BindingData { - #[prost(message, optional, tag="5")] - pub union: ::core::option::Option, - #[prost(oneof="binding_data::Value", tags="1, 2, 3, 4")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `BindingData`. -pub mod binding_data { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - /// A simple scalar value. - #[prost(message, tag="1")] - Scalar(super::Scalar), - /// A collection of binding data. This allows nesting of binding data to any number - /// of levels. - #[prost(message, tag="2")] - Collection(super::BindingDataCollection), - /// References an output promised by another node. - #[prost(message, tag="3")] - Promise(super::OutputReference), - /// A map of bindings. The key is always a string. - #[prost(message, tag="4")] - Map(super::BindingDataMap), - } -} -/// An input/output binding of a variable to either static value or a node output. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Binding { - /// Variable name must match an input/output variable of the node. - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, - /// Data to use to bind this variable. - #[prost(message, optional, tag="2")] - pub binding: ::core::option::Option, -} -/// A generic key value pair. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct KeyValuePair { - /// required. - #[prost(string, tag="1")] - pub key: ::prost::alloc::string::String, - /// +optional. - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, -} -/// Retry strategy associated with an executable unit. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RetryStrategy { - /// Number of retries. Retries will be consumed when the job fails with a recoverable error. - /// The number of retries must be less than or equals to 10. - #[prost(uint32, tag="5")] - pub retries: u32, -} -/// Encapsulation of fields that uniquely identifies a Flyte resource. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Identifier { - /// Identifies the specific type of resource that this identifier corresponds to. - #[prost(enumeration="ResourceType", tag="1")] - pub resource_type: i32, - /// Name of the project the resource belongs to. - #[prost(string, tag="2")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="3")] - pub domain: ::prost::alloc::string::String, - /// User provided value for the resource. - #[prost(string, tag="4")] - pub name: ::prost::alloc::string::String, - /// Specific version of the resource. - #[prost(string, tag="5")] - pub version: ::prost::alloc::string::String, -} -/// Encapsulation of fields that uniquely identifies a Flyte workflow execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionIdentifier { - /// Name of the project the resource belongs to. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Name of the domain the resource belongs to. - /// A domain can be considered as a subset within a specific project. - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// User or system provided value for the resource. - #[prost(string, tag="4")] - pub name: ::prost::alloc::string::String, -} -/// Encapsulation of fields that identify a Flyte node execution entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionIdentifier { - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, - #[prost(message, optional, tag="2")] - pub execution_id: ::core::option::Option, -} -/// Encapsulation of fields that identify a Flyte task execution entity. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionIdentifier { - #[prost(message, optional, tag="1")] - pub task_id: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub node_execution_id: ::core::option::Option, - #[prost(uint32, tag="3")] - pub retry_attempt: u32, -} -/// Encapsulation of fields the uniquely identify a signal. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalIdentifier { - /// Unique identifier for a signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, - /// Identifies the Flyte workflow execution this signal belongs to. - #[prost(message, optional, tag="2")] - pub execution_id: ::core::option::Option, -} -/// Indicates a resource type within Flyte. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ResourceType { - Unspecified = 0, - Task = 1, - Workflow = 2, - LaunchPlan = 3, - /// A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects. - /// Eventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects - /// in a similar manner to other Flyte objects - Dataset = 4, -} -impl ResourceType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ResourceType::Unspecified => "UNSPECIFIED", - ResourceType::Task => "TASK", - ResourceType::Workflow => "WORKFLOW", - ResourceType::LaunchPlan => "LAUNCH_PLAN", - ResourceType::Dataset => "DATASET", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNSPECIFIED" => Some(Self::Unspecified), - "TASK" => Some(Self::Task), - "WORKFLOW" => Some(Self::Workflow), - "LAUNCH_PLAN" => Some(Self::LaunchPlan), - "DATASET" => Some(Self::Dataset), - _ => None, - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactKey { - /// Project and domain and suffix needs to be unique across a given artifact store. - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub name: ::prost::alloc::string::String, -} -/// Only valid for triggers -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactBindingData { - #[prost(uint32, tag="1")] - pub index: u32, - /// These two fields are only relevant in the partition value case - #[prost(string, tag="2")] - pub partition_key: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub transform: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct InputBindingData { - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct LabelValue { - #[prost(oneof="label_value::Value", tags="1, 2, 3")] - pub value: ::core::option::Option, -} -/// Nested message and enum types in `LabelValue`. -pub mod label_value { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Value { - #[prost(string, tag="1")] - StaticValue(::prost::alloc::string::String), - #[prost(message, tag="2")] - TriggeredBinding(super::ArtifactBindingData), - #[prost(message, tag="3")] - InputBinding(super::InputBindingData), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Partitions { - #[prost(map="string, message", tag="1")] - pub value: ::std::collections::HashMap<::prost::alloc::string::String, LabelValue>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactId { - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// Think of a partition as a tag on an Artifact, except it's a key-value pair. - /// Different partitions naturally have different versions (execution ids). - /// This is a oneof because of partition querying... we need a way to distinguish between - /// a user not-specifying partitions when searching, and specifically searching for an Artifact - /// that is not partitioned (this can happen if an Artifact goes from partitioned to non- - /// partitioned across executions). - #[prost(oneof="artifact_id::Dimensions", tags="3")] - pub dimensions: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactID`. -pub mod artifact_id { - /// Think of a partition as a tag on an Artifact, except it's a key-value pair. - /// Different partitions naturally have different versions (execution ids). - /// This is a oneof because of partition querying... we need a way to distinguish between - /// a user not-specifying partitions when searching, and specifically searching for an Artifact - /// that is not partitioned (this can happen if an Artifact goes from partitioned to non- - /// partitioned across executions). - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Dimensions { - #[prost(message, tag="3")] - Partitions(super::Partitions), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactTag { - #[prost(message, optional, tag="1")] - pub artifact_key: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub value: ::core::option::Option, -} -/// Uniqueness constraints for Artifacts -/// - project, domain, name, version, partitions -/// Option 2 (tags are standalone, point to an individual artifact id): -/// - project, domain, name, alias (points to one partition if partitioned) -/// - project, domain, name, partition key, partition value -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArtifactQuery { - #[prost(oneof="artifact_query::Identifier", tags="1, 2, 3, 4")] - pub identifier: ::core::option::Option, -} -/// Nested message and enum types in `ArtifactQuery`. -pub mod artifact_query { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Identifier { - #[prost(message, tag="1")] - ArtifactId(super::ArtifactId), - #[prost(message, tag="2")] - ArtifactTag(super::ArtifactTag), - #[prost(string, tag="3")] - Uri(::prost::alloc::string::String), - /// This is used in the trigger case, where a user specifies a value for an input that is one of the triggering - /// artifacts, or a partition value derived from a triggering artifact. - #[prost(message, tag="4")] - Binding(super::ArtifactBindingData), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Trigger { - /// This will be set to a launch plan type, but note that this is different than the actual launch plan type. - #[prost(message, optional, tag="1")] - pub trigger_id: ::core::option::Option, - /// These are partial artifact IDs that will be triggered on - /// Consider making these ArtifactQuery instead. - #[prost(message, repeated, tag="2")] - pub triggers: ::prost::alloc::vec::Vec, -} -/// Defines a strongly typed variable. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Variable { - /// Variable literal type. - #[prost(message, optional, tag="1")] - pub r#type: ::core::option::Option, - /// +optional string describing input variable - #[prost(string, tag="2")] - pub description: ::prost::alloc::string::String, - /// +optional This object allows the user to specify how Artifacts are created. - /// name, tag, partitions can be specified. The other fields (version and project/domain) are ignored. - #[prost(message, optional, tag="3")] - pub artifact_partial_id: ::core::option::Option, - #[prost(message, optional, tag="4")] - pub artifact_tag: ::core::option::Option, -} -/// A map of Variables -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct VariableMap { - /// Defines a map of variable names to variables. - #[prost(map="string, message", tag="1")] - pub variables: ::std::collections::HashMap<::prost::alloc::string::String, Variable>, -} -/// Defines strongly typed inputs and outputs. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TypedInterface { - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, -} -/// A parameter is used as input to a launch plan and has -/// the special ability to have a default value or mark itself as required. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Parameter { - /// +required Variable. Defines the type of the variable backing this parameter. - #[prost(message, optional, tag="1")] - pub var: ::core::option::Option, - /// +optional - #[prost(oneof="parameter::Behavior", tags="2, 3, 4, 5")] - pub behavior: ::core::option::Option, -} -/// Nested message and enum types in `Parameter`. -pub mod parameter { - /// +optional - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Behavior { - /// Defines a default value that has to match the variable type defined. - #[prost(message, tag="2")] - Default(super::Literal), - /// +optional, is this value required to be filled. - #[prost(bool, tag="3")] - Required(bool), - /// This is an execution time search basically that should result in exactly one Artifact with a Type that - /// matches the type of the variable. - #[prost(message, tag="4")] - ArtifactQuery(super::ArtifactQuery), - #[prost(message, tag="5")] - ArtifactId(super::ArtifactId), - } -} -/// A map of Parameters. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParameterMap { - /// Defines a map of parameter names to parameters. - #[prost(map="string, message", tag="1")] - pub parameters: ::std::collections::HashMap<::prost::alloc::string::String, Parameter>, -} -/// Secret encapsulates information about the secret a task needs to proceed. An environment variable -/// FLYTE_SECRETS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -/// secrets are passed through environment variables. -/// FLYTE_SECRETS_DEFAULT_DIR will be passed to indicate the prefix of the path where secrets will be mounted if secrets -/// are passed through file mounts. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Secret { - /// The name of the secret group where to find the key referenced below. For K8s secrets, this should be the name of - /// the v1/secret object. For Confidant, this should be the Credential name. For Vault, this should be the secret name. - /// For AWS Secret Manager, this should be the name of the secret. - /// +required - #[prost(string, tag="1")] - pub group: ::prost::alloc::string::String, - /// The group version to fetch. This is not supported in all secret management systems. It'll be ignored for the ones - /// that do not support it. - /// +optional - #[prost(string, tag="2")] - pub group_version: ::prost::alloc::string::String, - /// The name of the secret to mount. This has to match an existing secret in the system. It's up to the implementation - /// of the secret management system to require case sensitivity. For K8s secrets, Confidant and Vault, this should - /// match one of the keys inside the secret. For AWS Secret Manager, it's ignored. - /// +optional - #[prost(string, tag="3")] - pub key: ::prost::alloc::string::String, - /// mount_requirement is optional. Indicates where the secret has to be mounted. If provided, the execution will fail - /// if the underlying key management system cannot satisfy that requirement. If not provided, the default location - /// will depend on the key management system. - /// +optional - #[prost(enumeration="secret::MountType", tag="4")] - pub mount_requirement: i32, -} -/// Nested message and enum types in `Secret`. -pub mod secret { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MountType { - /// Default case, indicates the client can tolerate either mounting options. - Any = 0, - /// ENV_VAR indicates the secret needs to be mounted as an environment variable. - EnvVar = 1, - /// FILE indicates the secret needs to be mounted as a file. - File = 2, - } - impl MountType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MountType::Any => "ANY", - MountType::EnvVar => "ENV_VAR", - MountType::File => "FILE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ANY" => Some(Self::Any), - "ENV_VAR" => Some(Self::EnvVar), - "FILE" => Some(Self::File), - _ => None, - } - } - } -} -/// OAuth2Client encapsulates OAuth2 Client Credentials to be used when making calls on behalf of that task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2Client { - /// client_id is the public id for the client to use. The system will not perform any pre-auth validation that the - /// secret requested matches the client_id indicated here. - /// +required - #[prost(string, tag="1")] - pub client_id: ::prost::alloc::string::String, - /// client_secret is a reference to the secret used to authenticate the OAuth2 client. - /// +required - #[prost(message, optional, tag="2")] - pub client_secret: ::core::option::Option, -} -/// Identity encapsulates the various security identities a task can run as. It's up to the underlying plugin to pick the -/// right identity for the execution environment. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Identity { - /// iam_role references the fully qualified name of Identity & Access Management role to impersonate. - #[prost(string, tag="1")] - pub iam_role: ::prost::alloc::string::String, - /// k8s_service_account references a kubernetes service account to impersonate. - #[prost(string, tag="2")] - pub k8s_service_account: ::prost::alloc::string::String, - /// oauth2_client references an oauth2 client. Backend plugins can use this information to impersonate the client when - /// making external calls. - #[prost(message, optional, tag="3")] - pub oauth2_client: ::core::option::Option, - /// execution_identity references the subject who makes the execution - #[prost(string, tag="4")] - pub execution_identity: ::prost::alloc::string::String, -} -/// OAuth2TokenRequest encapsulates information needed to request an OAuth2 token. -/// FLYTE_TOKENS_ENV_PREFIX will be passed to indicate the prefix of the environment variables that will be present if -/// tokens are passed through environment variables. -/// FLYTE_TOKENS_PATH_PREFIX will be passed to indicate the prefix of the path where secrets will be mounted if tokens -/// are passed through file mounts. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2TokenRequest { - /// name indicates a unique id for the token request within this task token requests. It'll be used as a suffix for - /// environment variables and as a filename for mounting tokens as files. - /// +required - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// type indicates the type of the request to make. Defaults to CLIENT_CREDENTIALS. - /// +required - #[prost(enumeration="o_auth2_token_request::Type", tag="2")] - pub r#type: i32, - /// client references the client_id/secret to use to request the OAuth2 token. - /// +required - #[prost(message, optional, tag="3")] - pub client: ::core::option::Option, - /// idp_discovery_endpoint references the discovery endpoint used to retrieve token endpoint and other related - /// information. - /// +optional - #[prost(string, tag="4")] - pub idp_discovery_endpoint: ::prost::alloc::string::String, - /// token_endpoint references the token issuance endpoint. If idp_discovery_endpoint is not provided, this parameter is - /// mandatory. - /// +optional - #[prost(string, tag="5")] - pub token_endpoint: ::prost::alloc::string::String, -} -/// Nested message and enum types in `OAuth2TokenRequest`. -pub mod o_auth2_token_request { - /// Type of the token requested. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Type { - /// CLIENT_CREDENTIALS indicates a 2-legged OAuth token requested using client credentials. - ClientCredentials = 0, - } - impl Type { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Type::ClientCredentials => "CLIENT_CREDENTIALS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CLIENT_CREDENTIALS" => Some(Self::ClientCredentials), - _ => None, - } - } - } -} -/// SecurityContext holds security attributes that apply to tasks. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SecurityContext { - /// run_as encapsulates the identity a pod should run as. If the task fills in multiple fields here, it'll be up to the - /// backend plugin to choose the appropriate identity for the execution engine the task will run on. - #[prost(message, optional, tag="1")] - pub run_as: ::core::option::Option, - /// secrets indicate the list of secrets the task needs in order to proceed. Secrets will be mounted/passed to the - /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - /// to the secret) and to pass it to the remote execution engine. - #[prost(message, repeated, tag="2")] - pub secrets: ::prost::alloc::vec::Vec, - /// tokens indicate the list of token requests the task needs in order to proceed. Tokens will be mounted/passed to the - /// pod as it starts. If the plugin responsible for kicking of the task will not run it on a flyte cluster (e.g. AWS - /// Batch), it's the responsibility of the plugin to fetch the secret (which means propeller identity will need access - /// to the secret) and to pass it to the remote execution engine. - #[prost(message, repeated, tag="3")] - pub tokens: ::prost::alloc::vec::Vec, -} -/// A customizable interface to convey resources requested for a container. This can be interpreted differently for different -/// container engines. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Resources { - /// The desired set of resources requested. ResourceNames must be unique within the list. - #[prost(message, repeated, tag="1")] - pub requests: ::prost::alloc::vec::Vec, - /// Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique - /// within the list. - #[prost(message, repeated, tag="2")] - pub limits: ::prost::alloc::vec::Vec, -} -/// Nested message and enum types in `Resources`. -pub mod resources { - /// Encapsulates a resource name and value. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct ResourceEntry { - /// Resource name. - #[prost(enumeration="ResourceName", tag="1")] - pub name: i32, - /// Value must be a valid k8s quantity. See - /// - #[prost(string, tag="2")] - pub value: ::prost::alloc::string::String, - } - /// Known resource names. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ResourceName { - Unknown = 0, - Cpu = 1, - Gpu = 2, - Memory = 3, - Storage = 4, - /// For Kubernetes-based deployments, pods use ephemeral local storage for scratch space, caching, and for logs. - EphemeralStorage = 5, - } - impl ResourceName { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ResourceName::Unknown => "UNKNOWN", - ResourceName::Cpu => "CPU", - ResourceName::Gpu => "GPU", - ResourceName::Memory => "MEMORY", - ResourceName::Storage => "STORAGE", - ResourceName::EphemeralStorage => "EPHEMERAL_STORAGE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "CPU" => Some(Self::Cpu), - "GPU" => Some(Self::Gpu), - "MEMORY" => Some(Self::Memory), - "STORAGE" => Some(Self::Storage), - "EPHEMERAL_STORAGE" => Some(Self::EphemeralStorage), - _ => None, - } - } - } -} -/// Metadata associated with the GPU accelerator to allocate to a task. Contains -/// information about device type, and for multi-instance GPUs, the partition size to -/// use. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GpuAccelerator { - /// This can be any arbitrary string, and should be informed by the labels or taints - /// associated with the nodes in question. Default cloud provider labels typically - /// use the following values: `nvidia-tesla-t4`, `nvidia-tesla-a100`, etc. - #[prost(string, tag="1")] - pub device: ::prost::alloc::string::String, - #[prost(oneof="gpu_accelerator::PartitionSizeValue", tags="2, 3")] - pub partition_size_value: ::core::option::Option, -} -/// Nested message and enum types in `GPUAccelerator`. -pub mod gpu_accelerator { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum PartitionSizeValue { - #[prost(bool, tag="2")] - Unpartitioned(bool), - /// Like `device`, this can be any arbitrary string, and should be informed by - /// the labels or taints associated with the nodes in question. Default cloud - /// provider labels typically use the following values: `1g.5gb`, `2g.10gb`, etc. - #[prost(string, tag="3")] - PartitionSize(::prost::alloc::string::String), - } -} -/// Encapsulates all non-standard resources, not captured by v1.ResourceRequirements, to -/// allocate to a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExtendedResources { - /// GPU accelerator to select for task. Contains information about device type, and - /// for multi-instance GPUs, the partition size to use. - #[prost(message, optional, tag="1")] - pub gpu_accelerator: ::core::option::Option, -} -/// Runtime information. This is loosely defined to allow for extensibility. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RuntimeMetadata { - /// Type of runtime. - #[prost(enumeration="runtime_metadata::RuntimeType", tag="1")] - pub r#type: i32, - /// Version of the runtime. All versions should be backward compatible. However, certain cases call for version - /// checks to ensure tighter validation or setting expectations. - #[prost(string, tag="2")] - pub version: ::prost::alloc::string::String, - /// +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.). - #[prost(string, tag="3")] - pub flavor: ::prost::alloc::string::String, -} -/// Nested message and enum types in `RuntimeMetadata`. -pub mod runtime_metadata { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum RuntimeType { - Other = 0, - FlyteSdk = 1, - } - impl RuntimeType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - RuntimeType::Other => "OTHER", - RuntimeType::FlyteSdk => "FLYTE_SDK", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "OTHER" => Some(Self::Other), - "FLYTE_SDK" => Some(Self::FlyteSdk), - _ => None, - } - } - } -} -/// Task Metadata -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskMetadata { - /// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work. - #[prost(bool, tag="1")] - pub discoverable: bool, - /// Runtime information about the task. - #[prost(message, optional, tag="2")] - pub runtime: ::core::option::Option, - /// The overall timeout of a task including user-triggered retries. - #[prost(message, optional, tag="4")] - pub timeout: ::core::option::Option<::prost_types::Duration>, - /// Number of retries per task. - #[prost(message, optional, tag="5")] - pub retries: ::core::option::Option, - /// Indicates a logical version to apply to this task for the purpose of discovery. - #[prost(string, tag="6")] - pub discovery_version: ::prost::alloc::string::String, - /// If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers - /// of the ending of support for a given task. - #[prost(string, tag="7")] - pub deprecated_error_message: ::prost::alloc::string::String, - /// Indicates whether the system should attempt to execute discoverable instances in serial to avoid duplicate work - #[prost(bool, tag="9")] - pub cache_serializable: bool, - /// Indicates whether the task will generate a Deck URI when it finishes executing. - #[prost(bool, tag="10")] - pub generates_deck: bool, - /// Arbitrary tags that allow users and the platform to store small but arbitrary labels - #[prost(map="string, string", tag="11")] - pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// pod_template_name is the unique name of a PodTemplate k8s resource to be used as the base configuration if this - /// task creates a k8s Pod. If this value is set, the specified PodTemplate will be used instead of, but applied - /// identically as, the default PodTemplate configured in FlytePropeller. - #[prost(string, tag="12")] - pub pod_template_name: ::prost::alloc::string::String, - /// cache_ignore_input_vars is the input variables that should not be included when calculating hash for cache. - #[prost(string, repeated, tag="13")] - pub cache_ignore_input_vars: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - // For interruptible we will populate it at the node level but require it be part of TaskMetadata - // for a user to set the value. - // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being - // set by the user or defaulting to false. - // The logic of handling precedence will be done as part of flytepropeller. - - /// Identify whether task is interruptible - #[prost(oneof="task_metadata::InterruptibleValue", tags="8")] - pub interruptible_value: ::core::option::Option, -} -/// Nested message and enum types in `TaskMetadata`. -pub mod task_metadata { - // For interruptible we will populate it at the node level but require it be part of TaskMetadata - // for a user to set the value. - // We are using oneof instead of bool because otherwise we would be unable to distinguish between value being - // set by the user or defaulting to false. - // The logic of handling precedence will be done as part of flytepropeller. - - /// Identify whether task is interruptible - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InterruptibleValue { - #[prost(bool, tag="8")] - Interruptible(bool), - } -} -/// A Task structure that uniquely identifies a task in the system -/// Tasks are registered as a first step in the system. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskTemplate { - /// Auto generated taskId by the system. Task Id uniquely identifies this task globally. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no - /// extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the - /// implementation registered for the TaskCategory. - #[prost(string, tag="2")] - pub r#type: ::prost::alloc::string::String, - /// Extra metadata about the task. - #[prost(message, optional, tag="3")] - pub metadata: ::core::option::Option, - /// A strongly typed interface for the task. This enables others to use this task within a workflow and guarantees - /// compile-time validation of the workflow to avoid costly runtime failures. - #[prost(message, optional, tag="4")] - pub interface: ::core::option::Option, - /// Custom data about the task. This is extensible to allow various plugins in the system. - #[prost(message, optional, tag="5")] - pub custom: ::core::option::Option<::prost_types::Struct>, - /// This can be used to customize task handling at execution time for the same task type. - #[prost(int32, tag="7")] - pub task_type_version: i32, - /// security_context encapsulates security attributes requested to run this task. - #[prost(message, optional, tag="8")] - pub security_context: ::core::option::Option, - /// Encapsulates all non-standard resources, not captured by - /// v1.ResourceRequirements, to allocate to a task. - #[prost(message, optional, tag="9")] - pub extended_resources: ::core::option::Option, - /// Metadata about the custom defined for this task. This is extensible to allow various plugins in the system - /// to use as required. - /// reserve the field numbers 1 through 15 for very frequently occurring message elements - #[prost(map="string, string", tag="16")] - pub config: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - /// handlers. - #[prost(oneof="task_template::Target", tags="6, 17, 18")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `TaskTemplate`. -pub mod task_template { - /// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed. - /// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in - /// handlers. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - #[prost(message, tag="6")] - Container(super::Container), - #[prost(message, tag="17")] - K8sPod(super::K8sPod), - #[prost(message, tag="18")] - Sql(super::Sql), - } -} -// ----------------- First class Plugins - -/// Defines port properties for a container. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ContainerPort { - /// Number of port to expose on the pod's IP address. - /// This must be a valid port number, 0 < x < 65536. - #[prost(uint32, tag="1")] - pub container_port: u32, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Container { - /// Container image url. Eg: docker/redis:latest - #[prost(string, tag="1")] - pub image: ::prost::alloc::string::String, - /// Command to be executed, if not provided, the default entrypoint in the container image will be used. - #[prost(string, repeated, tag="2")] - pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still - /// needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the - /// system will populate these before executing the container. - #[prost(string, repeated, tag="3")] - pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Container resources requirement as specified by the container engine. - #[prost(message, optional, tag="4")] - pub resources: ::core::option::Option, - /// Environment variables will be set as the container is starting up. - #[prost(message, repeated, tag="5")] - pub env: ::prost::alloc::vec::Vec, - /// Allows extra configs to be available for the container. - /// TODO: elaborate on how configs will become available. - /// Deprecated, please use TaskTemplate.config instead. - #[deprecated] - #[prost(message, repeated, tag="6")] - pub config: ::prost::alloc::vec::Vec, - /// Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but - /// not supported on AWS Batch) - /// Only K8s - #[prost(message, repeated, tag="7")] - pub ports: ::prost::alloc::vec::Vec, - /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. - /// This makes it possible to to run a completely portable container, that uses inputs and outputs - /// only from the local file-system and without having any reference to flyteidl. This is supported only on K8s at the moment. - /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - /// to understand the default paths. - /// Only K8s - #[prost(message, optional, tag="9")] - pub data_config: ::core::option::Option, - #[prost(enumeration="container::Architecture", tag="10")] - pub architecture: i32, -} -/// Nested message and enum types in `Container`. -pub mod container { - /// Architecture-type the container image supports. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Architecture { - Unknown = 0, - Amd64 = 1, - Arm64 = 2, - ArmV6 = 3, - ArmV7 = 4, - } - impl Architecture { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Architecture::Unknown => "UNKNOWN", - Architecture::Amd64 => "AMD64", - Architecture::Arm64 => "ARM64", - Architecture::ArmV6 => "ARM_V6", - Architecture::ArmV7 => "ARM_V7", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "AMD64" => Some(Self::Amd64), - "ARM64" => Some(Self::Arm64), - "ARM_V6" => Some(Self::ArmV6), - "ARM_V7" => Some(Self::ArmV7), - _ => None, - } - } - } -} -/// Strategy to use when dealing with Blob, Schema, or multipart blob data (large datasets) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IoStrategy { - /// Mode to use to manage downloads - #[prost(enumeration="io_strategy::DownloadMode", tag="1")] - pub download_mode: i32, - /// Mode to use to manage uploads - #[prost(enumeration="io_strategy::UploadMode", tag="2")] - pub upload_mode: i32, -} -/// Nested message and enum types in `IOStrategy`. -pub mod io_strategy { - /// Mode to use for downloading - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum DownloadMode { - /// All data will be downloaded before the main container is executed - DownloadEager = 0, - /// Data will be downloaded as a stream and an End-Of-Stream marker will be written to indicate all data has been downloaded. Refer to protocol for details - DownloadStream = 1, - /// Large objects (offloaded) will not be downloaded - DoNotDownload = 2, - } - impl DownloadMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - DownloadMode::DownloadEager => "DOWNLOAD_EAGER", - DownloadMode::DownloadStream => "DOWNLOAD_STREAM", - DownloadMode::DoNotDownload => "DO_NOT_DOWNLOAD", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DOWNLOAD_EAGER" => Some(Self::DownloadEager), - "DOWNLOAD_STREAM" => Some(Self::DownloadStream), - "DO_NOT_DOWNLOAD" => Some(Self::DoNotDownload), - _ => None, - } - } - } - /// Mode to use for uploading - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum UploadMode { - /// All data will be uploaded after the main container exits - UploadOnExit = 0, - /// Data will be uploaded as it appears. Refer to protocol specification for details - UploadEager = 1, - /// Data will not be uploaded, only references will be written - DoNotUpload = 2, - } - impl UploadMode { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - UploadMode::UploadOnExit => "UPLOAD_ON_EXIT", - UploadMode::UploadEager => "UPLOAD_EAGER", - UploadMode::DoNotUpload => "DO_NOT_UPLOAD", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UPLOAD_ON_EXIT" => Some(Self::UploadOnExit), - "UPLOAD_EAGER" => Some(Self::UploadEager), - "DO_NOT_UPLOAD" => Some(Self::DoNotUpload), - _ => None, - } - } - } -} -/// This configuration allows executing raw containers in Flyte using the Flyte CoPilot system. -/// Flyte CoPilot, eliminates the needs of flytekit or sdk inside the container. Any inputs required by the users container are side-loaded in the input_path -/// Any outputs generated by the user container - within output_path are automatically uploaded. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DataLoadingConfig { - /// Flag enables DataLoading Config. If this is not set, data loading will not be used! - #[prost(bool, tag="1")] - pub enabled: bool, - /// File system path (start at root). This folder will contain all the inputs exploded to a separate file. - /// Example, if the input interface needs (x: int, y: blob, z: multipart_blob) and the input path is '/var/flyte/inputs', then the file system will look like - /// /var/flyte/inputs/inputs. .pb .json .yaml> -> Format as defined previously. The Blob and Multipart blob will reference local filesystem instead of remote locations - /// /var/flyte/inputs/x -> X is a file that contains the value of x (integer) in string format - /// /var/flyte/inputs/y -> Y is a file in Binary format - /// /var/flyte/inputs/z/... -> Note Z itself is a directory - /// More information about the protocol - refer to docs #TODO reference docs here - #[prost(string, tag="2")] - pub input_path: ::prost::alloc::string::String, - /// File system path (start at root). This folder should contain all the outputs for the task as individual files and/or an error text file - #[prost(string, tag="3")] - pub output_path: ::prost::alloc::string::String, - /// In the inputs folder, there will be an additional summary/metadata file that contains references to all files or inlined primitive values. - /// This format decides the actual encoding for the data. Refer to the encoding to understand the specifics of the contents and the encoding - #[prost(enumeration="data_loading_config::LiteralMapFormat", tag="4")] - pub format: i32, - #[prost(message, optional, tag="5")] - pub io_strategy: ::core::option::Option, -} -/// Nested message and enum types in `DataLoadingConfig`. -pub mod data_loading_config { - /// LiteralMapFormat decides the encoding format in which the input metadata should be made available to the containers. - /// If the user has access to the protocol buffer definitions, it is recommended to use the PROTO format. - /// JSON and YAML do not need any protobuf definitions to read it - /// All remote references in core.LiteralMap are replaced with local filesystem references (the data is downloaded to local filesystem) - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum LiteralMapFormat { - /// JSON / YAML for the metadata (which contains inlined primitive values). The representation is inline with the standard json specification as specified - - Json = 0, - Yaml = 1, - /// Proto is a serialized binary of `core.LiteralMap` defined in flyteidl/core - Proto = 2, - } - impl LiteralMapFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LiteralMapFormat::Json => "JSON", - LiteralMapFormat::Yaml => "YAML", - LiteralMapFormat::Proto => "PROTO", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "JSON" => Some(Self::Json), - "YAML" => Some(Self::Yaml), - "PROTO" => Some(Self::Proto), - _ => None, - } - } - } -} -/// Defines a pod spec and additional pod metadata that is created when a task is executed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct K8sPod { - /// Contains additional metadata for building a kubernetes pod. - #[prost(message, optional, tag="1")] - pub metadata: ::core::option::Option, - /// Defines the primary pod spec created when a task is executed. - /// This should be a JSON-marshalled pod spec, which can be defined in - /// - go, using: - /// - python: using - #[prost(message, optional, tag="2")] - pub pod_spec: ::core::option::Option<::prost_types::Struct>, - /// BETA: Optional configuration for DataLoading. If not specified, then default values are used. - /// This makes it possible to to run a completely portable container, that uses inputs and outputs - /// only from the local file-system and without having any reference to flytekit. This is supported only on K8s at the moment. - /// If data loading is enabled, then data will be mounted in accompanying directories specified in the DataLoadingConfig. If the directories - /// are not specified, inputs will be mounted onto and outputs will be uploaded from a pre-determined file-system path. Refer to the documentation - /// to understand the default paths. - /// Only K8s - #[prost(message, optional, tag="3")] - pub data_config: ::core::option::Option, -} -/// Metadata for building a kubernetes object when a task is executed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct K8sObjectMetadata { - /// Optional labels to add to the pod definition. - #[prost(map="string, string", tag="1")] - pub labels: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Optional annotations to add to the pod definition. - #[prost(map="string, string", tag="2")] - pub annotations: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Sql represents a generic sql workload with a statement and dialect. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Sql { - /// The actual query to run, the query can have templated parameters. - /// We use Flyte's Golang templating format for Query templating. - /// Refer to the templating documentation. - /// - /// For example, - /// insert overwrite directory '{{ .rawOutputDataPrefix }}' stored as parquet - /// select * - /// from my_table - /// where ds = '{{ .Inputs.ds }}' - #[prost(string, tag="1")] - pub statement: ::prost::alloc::string::String, - #[prost(enumeration="sql::Dialect", tag="2")] - pub dialect: i32, -} -/// Nested message and enum types in `Sql`. -pub mod sql { - /// The dialect of the SQL statement. This is used to validate and parse SQL statements at compilation time to avoid - /// expensive runtime operations. If set to an unsupported dialect, no validation will be done on the statement. - /// We support the following dialect: ansi, hive. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Dialect { - Undefined = 0, - Ansi = 1, - Hive = 2, - Other = 3, - } - impl Dialect { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Dialect::Undefined => "UNDEFINED", - Dialect::Ansi => "ANSI", - Dialect::Hive => "HIVE", - Dialect::Other => "OTHER", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "ANSI" => Some(Self::Ansi), - "HIVE" => Some(Self::Hive), - "OTHER" => Some(Self::Other), - _ => None, - } - } - } -} -/// Indicates various phases of Workflow Execution -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecution { -} -/// Nested message and enum types in `WorkflowExecution`. -pub mod workflow_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeding = 3, - Succeeded = 4, - Failing = 5, - Failed = 6, - Aborted = 7, - TimedOut = 8, - Aborting = 9, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeding => "SUCCEEDING", - Phase::Succeeded => "SUCCEEDED", - Phase::Failing => "FAILING", - Phase::Failed => "FAILED", - Phase::Aborted => "ABORTED", - Phase::TimedOut => "TIMED_OUT", - Phase::Aborting => "ABORTING", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDING" => Some(Self::Succeeding), - "SUCCEEDED" => Some(Self::Succeeded), - "FAILING" => Some(Self::Failing), - "FAILED" => Some(Self::Failed), - "ABORTED" => Some(Self::Aborted), - "TIMED_OUT" => Some(Self::TimedOut), - "ABORTING" => Some(Self::Aborting), - _ => None, - } - } - } -} -/// Indicates various phases of Node Execution that only include the time spent to run the nodes/workflows -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecution { -} -/// Nested message and enum types in `NodeExecution`. -pub mod node_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeded = 3, - Failing = 4, - Failed = 5, - Aborted = 6, - Skipped = 7, - TimedOut = 8, - DynamicRunning = 9, - Recovered = 10, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeded => "SUCCEEDED", - Phase::Failing => "FAILING", - Phase::Failed => "FAILED", - Phase::Aborted => "ABORTED", - Phase::Skipped => "SKIPPED", - Phase::TimedOut => "TIMED_OUT", - Phase::DynamicRunning => "DYNAMIC_RUNNING", - Phase::Recovered => "RECOVERED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - "FAILING" => Some(Self::Failing), - "FAILED" => Some(Self::Failed), - "ABORTED" => Some(Self::Aborted), - "SKIPPED" => Some(Self::Skipped), - "TIMED_OUT" => Some(Self::TimedOut), - "DYNAMIC_RUNNING" => Some(Self::DynamicRunning), - "RECOVERED" => Some(Self::Recovered), - _ => None, - } - } - } -} -/// Phases that task plugins can go through. Not all phases may be applicable to a specific plugin task, -/// but this is the cumulative list that customers may want to know about for their task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecution { -} -/// Nested message and enum types in `TaskExecution`. -pub mod task_execution { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Phase { - Undefined = 0, - Queued = 1, - Running = 2, - Succeeded = 3, - Aborted = 4, - Failed = 5, - /// To indicate cases where task is initializing, like: ErrImagePull, ContainerCreating, PodInitializing - Initializing = 6, - /// To address cases, where underlying resource is not available: Backoff error, Resource quota exceeded - WaitingForResources = 7, - } - impl Phase { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Phase::Undefined => "UNDEFINED", - Phase::Queued => "QUEUED", - Phase::Running => "RUNNING", - Phase::Succeeded => "SUCCEEDED", - Phase::Aborted => "ABORTED", - Phase::Failed => "FAILED", - Phase::Initializing => "INITIALIZING", - Phase::WaitingForResources => "WAITING_FOR_RESOURCES", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "QUEUED" => Some(Self::Queued), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - "ABORTED" => Some(Self::Aborted), - "FAILED" => Some(Self::Failed), - "INITIALIZING" => Some(Self::Initializing), - "WAITING_FOR_RESOURCES" => Some(Self::WaitingForResources), - _ => None, - } - } - } -} -/// Represents the error message from the execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExecutionError { - /// Error code indicates a grouping of a type of error. - /// More Info: - #[prost(string, tag="1")] - pub code: ::prost::alloc::string::String, - /// Detailed description of the error - including stack trace. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, - /// Full error contents accessible via a URI - #[prost(string, tag="3")] - pub error_uri: ::prost::alloc::string::String, - #[prost(enumeration="execution_error::ErrorKind", tag="4")] - pub kind: i32, -} -/// Nested message and enum types in `ExecutionError`. -pub mod execution_error { - /// Error type: System or User - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum ErrorKind { - Unknown = 0, - User = 1, - System = 2, - } - impl ErrorKind { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ErrorKind::Unknown => "UNKNOWN", - ErrorKind::User => "USER", - ErrorKind::System => "SYSTEM", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "USER" => Some(Self::User), - "SYSTEM" => Some(Self::System), - _ => None, - } - } - } -} -/// Log information for the task that is specific to a log sink -/// When our log story is flushed out, we may have more metadata here like log link expiry -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskLog { - #[prost(string, tag="1")] - pub uri: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - #[prost(enumeration="task_log::MessageFormat", tag="3")] - pub message_format: i32, - #[prost(message, optional, tag="4")] - pub ttl: ::core::option::Option<::prost_types::Duration>, -} -/// Nested message and enum types in `TaskLog`. -pub mod task_log { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum MessageFormat { - Unknown = 0, - Csv = 1, - Json = 2, - } - impl MessageFormat { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - MessageFormat::Unknown => "UNKNOWN", - MessageFormat::Csv => "CSV", - MessageFormat::Json => "JSON", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNKNOWN" => Some(Self::Unknown), - "CSV" => Some(Self::Csv), - "JSON" => Some(Self::Json), - _ => None, - } - } - } -} -/// Represents customized execution run-time attributes. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QualityOfServiceSpec { - /// Indicates how much queueing delay an execution can tolerate. - #[prost(message, optional, tag="1")] - pub queueing_budget: ::core::option::Option<::prost_types::Duration>, -} -/// Indicates the priority of an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QualityOfService { - #[prost(oneof="quality_of_service::Designation", tags="1, 2")] - pub designation: ::core::option::Option, -} -/// Nested message and enum types in `QualityOfService`. -pub mod quality_of_service { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Tier { - /// Default: no quality of service specified. - Undefined = 0, - High = 1, - Medium = 2, - Low = 3, - } - impl Tier { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Tier::Undefined => "UNDEFINED", - Tier::High => "HIGH", - Tier::Medium => "MEDIUM", - Tier::Low => "LOW", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "UNDEFINED" => Some(Self::Undefined), - "HIGH" => Some(Self::High), - "MEDIUM" => Some(Self::Medium), - "LOW" => Some(Self::Low), - _ => None, - } - } - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Designation { - #[prost(enumeration="Tier", tag="1")] - Tier(i32), - #[prost(message, tag="2")] - Spec(super::QualityOfServiceSpec), - } -} -/// Defines a 2-level tree where the root is a comparison operator and Operands are primitives or known variables. -/// Each expression results in a boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ComparisonExpression { - #[prost(enumeration="comparison_expression::Operator", tag="1")] - pub operator: i32, - #[prost(message, optional, tag="2")] - pub left_value: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub right_value: ::core::option::Option, -} -/// Nested message and enum types in `ComparisonExpression`. -pub mod comparison_expression { - /// Binary Operator for each expression - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Operator { - Eq = 0, - Neq = 1, - /// Greater Than - Gt = 2, - Gte = 3, - /// Less Than - Lt = 4, - Lte = 5, - } - impl Operator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Operator::Eq => "EQ", - Operator::Neq => "NEQ", - Operator::Gt => "GT", - Operator::Gte => "GTE", - Operator::Lt => "LT", - Operator::Lte => "LTE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "EQ" => Some(Self::Eq), - "NEQ" => Some(Self::Neq), - "GT" => Some(Self::Gt), - "GTE" => Some(Self::Gte), - "LT" => Some(Self::Lt), - "LTE" => Some(Self::Lte), - _ => None, - } - } - } -} -/// Defines an operand to a comparison expression. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Operand { - #[prost(oneof="operand::Val", tags="1, 2, 3")] - pub val: ::core::option::Option, -} -/// Nested message and enum types in `Operand`. -pub mod operand { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Val { - /// Can be a constant - #[prost(message, tag="1")] - Primitive(super::Primitive), - /// Or one of this node's input variables - #[prost(string, tag="2")] - Var(::prost::alloc::string::String), - /// Replace the primitive field - #[prost(message, tag="3")] - Scalar(super::Scalar), - } -} -/// Defines a boolean expression tree. It can be a simple or a conjunction expression. -/// Multiple expressions can be combined using a conjunction or a disjunction to result in a final boolean result. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BooleanExpression { - #[prost(oneof="boolean_expression::Expr", tags="1, 2")] - pub expr: ::core::option::Option, -} -/// Nested message and enum types in `BooleanExpression`. -pub mod boolean_expression { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Expr { - #[prost(message, tag="1")] - Conjunction(::prost::alloc::boxed::Box), - #[prost(message, tag="2")] - Comparison(super::ComparisonExpression), - } -} -/// Defines a conjunction expression of two boolean expressions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ConjunctionExpression { - #[prost(enumeration="conjunction_expression::LogicalOperator", tag="1")] - pub operator: i32, - #[prost(message, optional, boxed, tag="2")] - pub left_expression: ::core::option::Option<::prost::alloc::boxed::Box>, - #[prost(message, optional, boxed, tag="3")] - pub right_expression: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Nested message and enum types in `ConjunctionExpression`. -pub mod conjunction_expression { - /// Nested conditions. They can be conjoined using AND / OR - /// Order of evaluation is not important as the operators are Commutative - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum LogicalOperator { - /// Conjunction - And = 0, - Or = 1, - } - impl LogicalOperator { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - LogicalOperator::And => "AND", - LogicalOperator::Or => "OR", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "AND" => Some(Self::And), - "OR" => Some(Self::Or), - _ => None, - } - } - } -} -/// Defines a condition and the execution unit that should be executed if the condition is satisfied. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IfBlock { - #[prost(message, optional, tag="1")] - pub condition: ::core::option::Option, - #[prost(message, optional, boxed, tag="2")] - pub then_node: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Defines a series of if/else blocks. The first branch whose condition evaluates to true is the one to execute. -/// If no conditions were satisfied, the else_node or the error will execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct IfElseBlock { - /// +required. First condition to evaluate. - #[prost(message, optional, boxed, tag="1")] - pub case: ::core::option::Option<::prost::alloc::boxed::Box>, - /// +optional. Additional branches to evaluate. - #[prost(message, repeated, tag="2")] - pub other: ::prost::alloc::vec::Vec, - /// +required. - #[prost(oneof="if_else_block::Default", tags="3, 4")] - pub default: ::core::option::Option, -} -/// Nested message and enum types in `IfElseBlock`. -pub mod if_else_block { - /// +required. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Default { - /// The node to execute in case none of the branches were taken. - #[prost(message, tag="3")] - ElseNode(::prost::alloc::boxed::Box), - /// An error to throw in case none of the branches were taken. - #[prost(message, tag="4")] - Error(super::Error), - } -} -/// BranchNode is a special node that alter the flow of the workflow graph. It allows the control flow to branch at -/// runtime based on a series of conditions that get evaluated on various parameters (e.g. inputs, primitives). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct BranchNode { - /// +required - #[prost(message, optional, boxed, tag="1")] - pub if_else: ::core::option::Option<::prost::alloc::boxed::Box>, -} -/// Refers to the task that the Node is to execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNode { - /// Optional overrides applied at task execution time. - #[prost(message, optional, tag="2")] - pub overrides: ::core::option::Option, - #[prost(oneof="task_node::Reference", tags="1")] - pub reference: ::core::option::Option, -} -/// Nested message and enum types in `TaskNode`. -pub mod task_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reference { - /// A globally unique identifier for the task. - #[prost(message, tag="1")] - ReferenceId(super::Identifier), - } -} -/// Refers to a the workflow the node is to execute. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNode { - #[prost(oneof="workflow_node::Reference", tags="1, 2")] - pub reference: ::core::option::Option, -} -/// Nested message and enum types in `WorkflowNode`. -pub mod workflow_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Reference { - /// A globally unique identifier for the launch plan. - #[prost(message, tag="1")] - LaunchplanRef(super::Identifier), - /// Reference to a subworkflow, that should be defined with the compiler context - #[prost(message, tag="2")] - SubWorkflowRef(super::Identifier), - } -} -/// ApproveCondition represents a dependency on an external approval. During execution, this will manifest as a boolean -/// signal with the provided signal_id. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ApproveCondition { - /// A unique identifier for the requested boolean signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, -} -/// SignalCondition represents a dependency on an signal. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SignalCondition { - /// A unique identifier for the requested signal. - #[prost(string, tag="1")] - pub signal_id: ::prost::alloc::string::String, - /// A type denoting the required value type for this signal. - #[prost(message, optional, tag="2")] - pub r#type: ::core::option::Option, - /// The variable name for the signal value in this nodes outputs. - #[prost(string, tag="3")] - pub output_variable_name: ::prost::alloc::string::String, -} -/// SleepCondition represents a dependency on waiting for the specified duration. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SleepCondition { - /// The overall duration for this sleep. - #[prost(message, optional, tag="1")] - pub duration: ::core::option::Option<::prost_types::Duration>, -} -/// GateNode refers to the condition that is required for the gate to successfully complete. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GateNode { - #[prost(oneof="gate_node::Condition", tags="1, 2, 3")] - pub condition: ::core::option::Option, -} -/// Nested message and enum types in `GateNode`. -pub mod gate_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Condition { - /// ApproveCondition represents a dependency on an external approval provided by a boolean signal. - #[prost(message, tag="1")] - Approve(super::ApproveCondition), - /// SignalCondition represents a dependency on an signal. - #[prost(message, tag="2")] - Signal(super::SignalCondition), - /// SleepCondition represents a dependency on waiting for the specified duration. - #[prost(message, tag="3")] - Sleep(super::SleepCondition), - } -} -/// ArrayNode is a Flyte node type that simplifies the execution of a sub-node over a list of input -/// values. An ArrayNode can be executed with configurable parallelism (separate from the parent -/// workflow) and can be configured to succeed when a certain number of sub-nodes succeed. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArrayNode { - /// node is the sub-node that will be executed for each element in the array. - #[prost(message, optional, boxed, tag="1")] - pub node: ::core::option::Option<::prost::alloc::boxed::Box>, - /// parallelism defines the minimum number of instances to bring up concurrently at any given - /// point. Note that this is an optimistic restriction and that, due to network partitioning or - /// other failures, the actual number of currently running instances might be more. This has to - /// be a positive number if assigned. Default value is size. - #[prost(uint32, tag="2")] - pub parallelism: u32, - #[prost(oneof="array_node::SuccessCriteria", tags="3, 4")] - pub success_criteria: ::core::option::Option, -} -/// Nested message and enum types in `ArrayNode`. -pub mod array_node { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SuccessCriteria { - /// min_successes is an absolute number of the minimum number of successful completions of - /// sub-nodes. As soon as this criteria is met, the ArrayNode will be marked as successful - /// and outputs will be computed. This has to be a non-negative number if assigned. Default - /// value is size (if specified). - #[prost(uint32, tag="3")] - MinSuccesses(u32), - /// If the array job size is not known beforehand, the min_success_ratio can instead be used - /// to determine when an ArrayNode can be marked successful. - #[prost(float, tag="4")] - MinSuccessRatio(f32), - } -} -/// Defines extra information about the Node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeMetadata { - /// A friendly name for the Node - #[prost(string, tag="1")] - pub name: ::prost::alloc::string::String, - /// The overall timeout of a task. - #[prost(message, optional, tag="4")] - pub timeout: ::core::option::Option<::prost_types::Duration>, - /// Number of retries per task. - #[prost(message, optional, tag="5")] - pub retries: ::core::option::Option, - /// Identify whether node is interruptible - #[prost(oneof="node_metadata::InterruptibleValue", tags="6")] - pub interruptible_value: ::core::option::Option, -} -/// Nested message and enum types in `NodeMetadata`. -pub mod node_metadata { - /// Identify whether node is interruptible - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InterruptibleValue { - #[prost(bool, tag="6")] - Interruptible(bool), - } -} -/// Links a variable to an alias. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Alias { - /// Must match one of the output variable names on a node. - #[prost(string, tag="1")] - pub var: ::prost::alloc::string::String, - /// A workflow-level unique alias that downstream nodes can refer to in their input. - #[prost(string, tag="2")] - pub alias: ::prost::alloc::string::String, -} -/// A Workflow graph Node. One unit of execution in the graph. Each node can be linked to a Task, a Workflow or a branch -/// node. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Node { - /// A workflow-level unique identifier that identifies this node in the workflow. 'inputs' and 'outputs' are reserved - /// node ids that cannot be used by other nodes. - #[prost(string, tag="1")] - pub id: ::prost::alloc::string::String, - /// Extra metadata about the node. - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - /// Specifies how to bind the underlying interface's inputs. All required inputs specified in the underlying interface - /// must be fulfilled. - #[prost(message, repeated, tag="3")] - pub inputs: ::prost::alloc::vec::Vec, - /// +optional Specifies execution dependency for this node ensuring it will only get scheduled to run after all its - /// upstream nodes have completed. This node will have an implicit dependency on any node that appears in inputs - /// field. - #[prost(string, repeated, tag="4")] - pub upstream_node_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// +optional. A node can define aliases for a subset of its outputs. This is particularly useful if different nodes - /// need to conform to the same interface (e.g. all branches in a branch node). Downstream nodes must refer to this - /// nodes outputs using the alias if one's specified. - #[prost(message, repeated, tag="5")] - pub output_aliases: ::prost::alloc::vec::Vec, - /// Information about the target to execute in this node. - #[prost(oneof="node::Target", tags="6, 7, 8, 9, 10")] - pub target: ::core::option::Option, -} -/// Nested message and enum types in `Node`. -pub mod node { - /// Information about the target to execute in this node. - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Target { - /// Information about the Task to execute in this node. - #[prost(message, tag="6")] - TaskNode(super::TaskNode), - /// Information about the Workflow to execute in this mode. - #[prost(message, tag="7")] - WorkflowNode(super::WorkflowNode), - /// Information about the branch node to evaluate in this node. - #[prost(message, tag="8")] - BranchNode(::prost::alloc::boxed::Box), - /// Information about the condition to evaluate in this node. - #[prost(message, tag="9")] - GateNode(super::GateNode), - /// Information about the sub-node executions for each value in the list of this nodes - /// inputs values. - #[prost(message, tag="10")] - ArrayNode(::prost::alloc::boxed::Box), - } -} -/// This is workflow layer metadata. These settings are only applicable to the workflow as a whole, and do not -/// percolate down to child entities (like tasks) launched by the workflow. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowMetadata { - /// Indicates the runtime priority of workflow executions. - #[prost(message, optional, tag="1")] - pub quality_of_service: ::core::option::Option, - /// Defines how the system should behave when a failure is detected in the workflow execution. - #[prost(enumeration="workflow_metadata::OnFailurePolicy", tag="2")] - pub on_failure: i32, - /// Arbitrary tags that allow users and the platform to store small but arbitrary labels - #[prost(map="string, string", tag="3")] - pub tags: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// Nested message and enum types in `WorkflowMetadata`. -pub mod workflow_metadata { - /// Failure Handling Strategy - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum OnFailurePolicy { - /// FAIL_IMMEDIATELY instructs the system to fail as soon as a node fails in the workflow. It'll automatically - /// abort all currently running nodes and clean up resources before finally marking the workflow executions as - /// failed. - FailImmediately = 0, - /// FAIL_AFTER_EXECUTABLE_NODES_COMPLETE instructs the system to make as much progress as it can. The system will - /// not alter the dependencies of the execution graph so any node that depend on the failed node will not be run. - /// Other nodes that will be executed to completion before cleaning up resources and marking the workflow - /// execution as failed. - FailAfterExecutableNodesComplete = 1, - } - impl OnFailurePolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - OnFailurePolicy::FailImmediately => "FAIL_IMMEDIATELY", - OnFailurePolicy::FailAfterExecutableNodesComplete => "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "FAIL_IMMEDIATELY" => Some(Self::FailImmediately), - "FAIL_AFTER_EXECUTABLE_NODES_COMPLETE" => Some(Self::FailAfterExecutableNodesComplete), - _ => None, - } - } - } -} -/// The difference between these settings and the WorkflowMetadata ones is that these are meant to be passed down to -/// a workflow's underlying entities (like tasks). For instance, 'interruptible' has no meaning at the workflow layer, it -/// is only relevant when a task executes. The settings here are the defaults that are passed to all nodes -/// unless explicitly overridden at the node layer. -/// If you are adding a setting that applies to both the Workflow itself, and everything underneath it, it should be -/// added to both this object and the WorkflowMetadata object above. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowMetadataDefaults { - /// Whether child nodes of the workflow are interruptible. - #[prost(bool, tag="1")] - pub interruptible: bool, -} -/// Flyte Workflow Structure that encapsulates task, branch and subworkflow nodes to form a statically analyzable, -/// directed acyclic graph. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowTemplate { - /// A globally unique identifier for the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Extra metadata about the workflow. - #[prost(message, optional, tag="2")] - pub metadata: ::core::option::Option, - /// Defines a strongly typed interface for the Workflow. This can include some optional parameters. - #[prost(message, optional, tag="3")] - pub interface: ::core::option::Option, - /// A list of nodes. In addition, 'globals' is a special reserved node id that can be used to consume workflow inputs. - #[prost(message, repeated, tag="4")] - pub nodes: ::prost::alloc::vec::Vec, - /// A list of output bindings that specify how to construct workflow outputs. Bindings can pull node outputs or - /// specify literals. All workflow outputs specified in the interface field must be bound in order for the workflow - /// to be validated. A workflow has an implicit dependency on all of its nodes to execute successfully in order to - /// bind final outputs. - /// Most of these outputs will be Binding's with a BindingData of type OutputReference. That is, your workflow can - /// just have an output of some constant (`Output(5)`), but usually, the workflow will be pulling - /// outputs from the output of a task. - #[prost(message, repeated, tag="5")] - pub outputs: ::prost::alloc::vec::Vec, - /// +optional A catch-all node. This node is executed whenever the execution engine determines the workflow has failed. - /// The interface of this node must match the Workflow interface with an additional input named 'error' of type - /// pb.lyft.flyte.core.Error. - #[prost(message, optional, tag="6")] - pub failure_node: ::core::option::Option, - /// workflow defaults - #[prost(message, optional, tag="7")] - pub metadata_defaults: ::core::option::Option, -} -/// Optional task node overrides that will be applied at task execution time. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeOverrides { - /// A customizable interface to convey resources requested for a task container. - #[prost(message, optional, tag="1")] - pub resources: ::core::option::Option, - /// Overrides for all non-standard resources, not captured by - /// v1.ResourceRequirements, to allocate to a task. - #[prost(message, optional, tag="2")] - pub extended_resources: ::core::option::Option, -} -/// Adjacency list for the workflow. This is created as part of the compilation process. Every process after the compilation -/// step uses this created ConnectionSet -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ConnectionSet { - /// A list of all the node ids that are downstream from a given node id - #[prost(map="string, message", tag="7")] - pub downstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, - /// A list of all the node ids, that are upstream of this node id - #[prost(map="string, message", tag="8")] - pub upstream: ::std::collections::HashMap<::prost::alloc::string::String, connection_set::IdList>, -} -/// Nested message and enum types in `ConnectionSet`. -pub mod connection_set { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] - pub struct IdList { - #[prost(string, repeated, tag="1")] - pub ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - } -} -/// Output of the compilation Step. This object represents one workflow. We store more metadata at this layer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledWorkflow { - /// Completely contained Workflow Template - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, - /// For internal use only! This field is used by the system and must not be filled in. Any values set will be ignored. - #[prost(message, optional, tag="2")] - pub connections: ::core::option::Option, -} -/// Output of the Compilation step. This object represent one Task. We store more metadata at this layer -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledTask { - /// Completely contained TaskTemplate - #[prost(message, optional, tag="1")] - pub template: ::core::option::Option, -} -/// A Compiled Workflow Closure contains all the information required to start a new execution, or to visualize a workflow -/// and its details. The CompiledWorkflowClosure should always contain a primary workflow, that is the main workflow that -/// will being the execution. All subworkflows are denormalized. WorkflowNodes refer to the workflow identifiers of -/// compiled subworkflows. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CompiledWorkflowClosure { - /// +required - #[prost(message, optional, tag="1")] - pub primary: ::core::option::Option, - /// Guaranteed that there will only exist one and only one workflow with a given id, i.e., every sub workflow has a - /// unique identifier. Also every enclosed subworkflow is used either by a primary workflow or by a subworkflow - /// as an inlined workflow - /// +optional - #[prost(message, repeated, tag="2")] - pub sub_workflows: ::prost::alloc::vec::Vec, - /// Guaranteed that there will only exist one and only one task with a given id, i.e., every task has a unique id - /// +required (at least 1) - #[prost(message, repeated, tag="3")] - pub tasks: ::prost::alloc::vec::Vec, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogArtifactTag { - /// Artifact ID is generated name - #[prost(string, tag="1")] - pub artifact_id: ::prost::alloc::string::String, - /// Flyte computes the tag automatically, as the hash of the values - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, -} -/// Catalog artifact information with specific metadata -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogMetadata { - /// Dataset ID in the catalog - #[prost(message, optional, tag="1")] - pub dataset_id: ::core::option::Option, - /// Artifact tag in the catalog - #[prost(message, optional, tag="2")] - pub artifact_tag: ::core::option::Option, - /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - #[prost(oneof="catalog_metadata::SourceExecution", tags="3")] - pub source_execution: ::core::option::Option, -} -/// Nested message and enum types in `CatalogMetadata`. -pub mod catalog_metadata { - /// Optional: Source Execution identifier, if this dataset was generated by another execution in Flyte. This is a one-of field and will depend on the caching context - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SourceExecution { - /// Today we only support TaskExecutionIdentifier as a source, as catalog caching only works for task executions - #[prost(message, tag="3")] - SourceTaskExecution(super::TaskExecutionIdentifier), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CatalogReservation { -} -/// Nested message and enum types in `CatalogReservation`. -pub mod catalog_reservation { - /// Indicates the status of a catalog reservation operation. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Status { - /// Used to indicate that reservations are disabled - ReservationDisabled = 0, - /// Used to indicate that a reservation was successfully acquired or extended - ReservationAcquired = 1, - /// Used to indicate that an active reservation currently exists - ReservationExists = 2, - /// Used to indicate that the reservation has been successfully released - ReservationReleased = 3, - /// Used to indicate that a reservation operation resulted in failure - ReservationFailure = 4, - } - impl Status { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Status::ReservationDisabled => "RESERVATION_DISABLED", - Status::ReservationAcquired => "RESERVATION_ACQUIRED", - Status::ReservationExists => "RESERVATION_EXISTS", - Status::ReservationReleased => "RESERVATION_RELEASED", - Status::ReservationFailure => "RESERVATION_FAILURE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RESERVATION_DISABLED" => Some(Self::ReservationDisabled), - "RESERVATION_ACQUIRED" => Some(Self::ReservationAcquired), - "RESERVATION_EXISTS" => Some(Self::ReservationExists), - "RESERVATION_RELEASED" => Some(Self::ReservationReleased), - "RESERVATION_FAILURE" => Some(Self::ReservationFailure), - _ => None, - } - } - } -} -/// Indicates the status of CatalogCaching. The reason why this is not embedded in TaskNodeMetadata is, that we may use for other types of nodes as well in the future -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum CatalogCacheStatus { - /// Used to indicate that caching was disabled - CacheDisabled = 0, - /// Used to indicate that the cache lookup resulted in no matches - CacheMiss = 1, - /// used to indicate that the associated artifact was a result of a previous execution - CacheHit = 2, - /// used to indicate that the resultant artifact was added to the cache - CachePopulated = 3, - /// Used to indicate that cache lookup failed because of an error - CacheLookupFailure = 4, - /// Used to indicate that cache lookup failed because of an error - CachePutFailure = 5, - /// Used to indicate the cache lookup was skipped - CacheSkipped = 6, -} -impl CatalogCacheStatus { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - CatalogCacheStatus::CacheDisabled => "CACHE_DISABLED", - CatalogCacheStatus::CacheMiss => "CACHE_MISS", - CatalogCacheStatus::CacheHit => "CACHE_HIT", - CatalogCacheStatus::CachePopulated => "CACHE_POPULATED", - CatalogCacheStatus::CacheLookupFailure => "CACHE_LOOKUP_FAILURE", - CatalogCacheStatus::CachePutFailure => "CACHE_PUT_FAILURE", - CatalogCacheStatus::CacheSkipped => "CACHE_SKIPPED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CACHE_DISABLED" => Some(Self::CacheDisabled), - "CACHE_MISS" => Some(Self::CacheMiss), - "CACHE_HIT" => Some(Self::CacheHit), - "CACHE_POPULATED" => Some(Self::CachePopulated), - "CACHE_LOOKUP_FAILURE" => Some(Self::CacheLookupFailure), - "CACHE_PUT_FAILURE" => Some(Self::CachePutFailure), - "CACHE_SKIPPED" => Some(Self::CacheSkipped), - _ => None, - } - } -} -/// Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation -/// which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more -/// precise definitions. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Span { - /// start_time defines the instance this span began. - #[prost(message, optional, tag="1")] - pub start_time: ::core::option::Option<::prost_types::Timestamp>, - /// end_time defines the instance this span completed. - #[prost(message, optional, tag="2")] - pub end_time: ::core::option::Option<::prost_types::Timestamp>, - /// spans defines a collection of Spans that breakdown this execution. - #[prost(message, repeated, tag="7")] - pub spans: ::prost::alloc::vec::Vec, - #[prost(oneof="span::Id", tags="3, 4, 5, 6")] - pub id: ::core::option::Option, -} -/// Nested message and enum types in `Span`. -pub mod span { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Id { - /// workflow_id is the id of the workflow execution this Span represents. - #[prost(message, tag="3")] - WorkflowId(super::WorkflowExecutionIdentifier), - /// node_id is the id of the node execution this Span represents. - #[prost(message, tag="4")] - NodeId(super::NodeExecutionIdentifier), - /// task_id is the id of the task execution this Span represents. - #[prost(message, tag="5")] - TaskId(super::TaskExecutionIdentifier), - /// operation_id is the id of a unique operation that this Span represents. - #[prost(string, tag="6")] - OperationId(::prost::alloc::string::String), - } -} -/// Describes a set of tasks to execute and how the final outputs are produced. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicJobSpec { - /// A collection of nodes to execute. - #[prost(message, repeated, tag="1")] - pub nodes: ::prost::alloc::vec::Vec, - /// An absolute number of successful completions of nodes required to mark this job as succeeded. As soon as this - /// criteria is met, the dynamic job will be marked as successful and outputs will be computed. If this number - /// becomes impossible to reach (e.g. number of currently running tasks + number of already succeeded tasks < - /// min_successes) the task will be aborted immediately and marked as failed. The default value of this field, if not - /// specified, is the count of nodes repeated field. - #[prost(int64, tag="2")] - pub min_successes: i64, - /// Describes how to bind the final output of the dynamic job from the outputs of executed nodes. The referenced ids - /// in bindings should have the generated id for the subtask. - #[prost(message, repeated, tag="3")] - pub outputs: ::prost::alloc::vec::Vec, - /// \[Optional\] A complete list of task specs referenced in nodes. - #[prost(message, repeated, tag="4")] - pub tasks: ::prost::alloc::vec::Vec, - /// \[Optional\] A complete list of task specs referenced in nodes. - #[prost(message, repeated, tag="5")] - pub subworkflows: ::prost::alloc::vec::Vec, -} -/// Error message to propagate detailed errors from container executions to the execution -/// engine. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ContainerError { - /// A simplified code for errors, so that we can provide a glossary of all possible errors. - #[prost(string, tag="1")] - pub code: ::prost::alloc::string::String, - /// A detailed error message. - #[prost(string, tag="2")] - pub message: ::prost::alloc::string::String, - /// An abstract error kind for this error. Defaults to Non_Recoverable if not specified. - #[prost(enumeration="container_error::Kind", tag="3")] - pub kind: i32, - /// Defines the origin of the error (system, user, unknown). - #[prost(enumeration="execution_error::ErrorKind", tag="4")] - pub origin: i32, -} -/// Nested message and enum types in `ContainerError`. -pub mod container_error { - /// Defines a generic error type that dictates the behavior of the retry strategy. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Kind { - NonRecoverable = 0, - Recoverable = 1, - } - impl Kind { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Kind::NonRecoverable => "NON_RECOVERABLE", - Kind::Recoverable => "RECOVERABLE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "NON_RECOVERABLE" => Some(Self::NonRecoverable), - "RECOVERABLE" => Some(Self::Recoverable), - _ => None, - } - } - } -} -/// Defines the errors.pb file format the container can produce to communicate -/// failure reasons to the execution engine. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ErrorDocument { - /// The error raised during execution. - #[prost(message, optional, tag="1")] - pub error: ::core::option::Option, -} -/// Defines an enclosed package of workflow and tasks it references. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowClosure { - /// required. Workflow template. - #[prost(message, optional, tag="1")] - pub workflow: ::core::option::Option, - /// optional. A collection of tasks referenced by the workflow. Only needed if the workflow - /// references tasks. - #[prost(message, repeated, tag="2")] - pub tasks: ::prost::alloc::vec::Vec, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.event.rs b/flyteidl/gen/pb_rust/flyteidl.event.rs deleted file mode 100644 index b7dd7ac9f3..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.event.rs +++ /dev/null @@ -1,470 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowExecutionEvent { - /// Workflow execution id - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, - /// the id of the originator (Propeller) of the event - #[prost(string, tag="2")] - pub producer_id: ::prost::alloc::string::String, - #[prost(enumeration="super::core::workflow_execution::Phase", tag="3")] - pub phase: i32, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the workflow. - #[prost(message, optional, tag="4")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - #[prost(oneof="workflow_execution_event::OutputResult", tags="5, 6, 7")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `WorkflowExecutionEvent`. -pub mod workflow_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URL to the output of the execution, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="5")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="6")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this workflow execution. - #[prost(message, tag="7")] - OutputData(super::super::core::LiteralMap), - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct NodeExecutionEvent { - /// Unique identifier for this node execution - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// the id of the originator (Propeller) of the event - #[prost(string, tag="2")] - pub producer_id: ::prost::alloc::string::String, - #[prost(enumeration="super::core::node_execution::Phase", tag="3")] - pub phase: i32, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the node. - #[prost(message, optional, tag="4")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// [To be deprecated] Specifies which task (if any) launched this node. - #[prost(message, optional, tag="9")] - pub parent_task_metadata: ::core::option::Option, - /// Specifies the parent node of the current node execution. Node executions at level zero will not have a parent node. - #[prost(message, optional, tag="10")] - pub parent_node_metadata: ::core::option::Option, - /// Retry group to indicate grouping of nodes by retries - #[prost(string, tag="11")] - pub retry_group: ::prost::alloc::string::String, - /// Identifier of the node in the original workflow/graph - /// This maps to value of WorkflowTemplate.nodes\[X\].id - #[prost(string, tag="12")] - pub spec_node_id: ::prost::alloc::string::String, - /// Friendly readable name for the node - #[prost(string, tag="13")] - pub node_name: ::prost::alloc::string::String, - #[prost(int32, tag="16")] - pub event_version: i32, - /// Whether this node launched a subworkflow. - #[prost(bool, tag="17")] - pub is_parent: bool, - /// Whether this node yielded a dynamic workflow. - #[prost(bool, tag="18")] - pub is_dynamic: bool, - /// String location uniquely identifying where the deck HTML file is - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="19")] - pub deck_uri: ::prost::alloc::string::String, - /// This timestamp represents the instant when the event was reported by the executing framework. For example, - /// when first processing a node the `occurred_at` timestamp should be the instant propeller makes progress, so when - /// literal inputs are initially copied. The event however will not be sent until after the copy completes. - /// Extracting both of these timestamps facilitates a more accurate portrayal of the evaluation time-series. - #[prost(message, optional, tag="21")] - pub reported_at: ::core::option::Option<::prost_types::Timestamp>, - /// Indicates if this node is an ArrayNode. - #[prost(bool, tag="22")] - pub is_array: bool, - #[prost(oneof="node_execution_event::InputValue", tags="5, 20")] - pub input_value: ::core::option::Option, - #[prost(oneof="node_execution_event::OutputResult", tags="6, 7, 15")] - pub output_result: ::core::option::Option, - /// Additional metadata to do with this event's node target based - /// on the node type - #[prost(oneof="node_execution_event::TargetMetadata", tags="8, 14")] - pub target_metadata: ::core::option::Option, -} -/// Nested message and enum types in `NodeExecutionEvent`. -pub mod node_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InputValue { - #[prost(string, tag="5")] - InputUri(::prost::alloc::string::String), - /// Raw input data consumed by this node execution. - #[prost(message, tag="20")] - InputData(super::super::core::LiteralMap), - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URL to the output of the execution, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="6")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="7")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this node execution. - #[prost(message, tag="15")] - OutputData(super::super::core::LiteralMap), - } - /// Additional metadata to do with this event's node target based - /// on the node type - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum TargetMetadata { - #[prost(message, tag="8")] - WorkflowNodeMetadata(super::WorkflowNodeMetadata), - #[prost(message, tag="14")] - TaskNodeMetadata(super::TaskNodeMetadata), - } -} -/// For Workflow Nodes we need to send information about the workflow that's launched -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkflowNodeMetadata { - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskNodeMetadata { - /// Captures the status of caching for this execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="1")] - pub cache_status: i32, - /// This structure carries the catalog artifact information - #[prost(message, optional, tag="2")] - pub catalog_key: ::core::option::Option, - /// Captures the status of cache reservations for this execution. - #[prost(enumeration="super::core::catalog_reservation::Status", tag="3")] - pub reservation_status: i32, - /// The latest checkpoint location - #[prost(string, tag="4")] - pub checkpoint_uri: ::prost::alloc::string::String, - /// In the case this task launched a dynamic workflow we capture its structure here. - #[prost(message, optional, tag="16")] - pub dynamic_workflow: ::core::option::Option, -} -/// For dynamic workflow nodes we send information about the dynamic workflow definition that gets generated. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DynamicWorkflowNodeMetadata { - /// id represents the unique identifier of the workflow. - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, - /// Represents the compiled representation of the embedded dynamic workflow. - #[prost(message, optional, tag="2")] - pub compiled_workflow: ::core::option::Option, - /// dynamic_job_spec_uri is the location of the DynamicJobSpec proto message for this DynamicWorkflow. This is - /// required to correctly recover partially completed executions where the workflow has already been compiled. - #[prost(string, tag="3")] - pub dynamic_job_spec_uri: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParentTaskExecutionMetadata { - #[prost(message, optional, tag="1")] - pub id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ParentNodeExecutionMetadata { - /// Unique identifier of the parent node id within the execution - /// This is value of core.NodeExecutionIdentifier.node_id of the parent node - #[prost(string, tag="1")] - pub node_id: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct EventReason { - /// An explanation for this event - #[prost(string, tag="1")] - pub reason: ::prost::alloc::string::String, - /// The time this reason occurred - #[prost(message, optional, tag="2")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// Plugin specific execution event information. For tasks like Python, Hive, Spark, DynamicJob. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionEvent { - /// ID of the task. In combination with the retryAttempt this will indicate - /// the task execution uniquely for a given parent node execution. - #[prost(message, optional, tag="1")] - pub task_id: ::core::option::Option, - /// A task execution is always kicked off by a node execution, the event consumer - /// will use the parent_id to relate the task to it's parent node execution - #[prost(message, optional, tag="2")] - pub parent_node_execution_id: ::core::option::Option, - /// retry attempt number for this task, ie., 2 for the second attempt - #[prost(uint32, tag="3")] - pub retry_attempt: u32, - /// Phase associated with the event - #[prost(enumeration="super::core::task_execution::Phase", tag="4")] - pub phase: i32, - /// id of the process that sent this event, mainly for trace debugging - #[prost(string, tag="5")] - pub producer_id: ::prost::alloc::string::String, - /// log information for the task execution - #[prost(message, repeated, tag="6")] - pub logs: ::prost::alloc::vec::Vec, - /// This timestamp represents when the original event occurred, it is generated - /// by the executor of the task. - #[prost(message, optional, tag="7")] - pub occurred_at: ::core::option::Option<::prost_types::Timestamp>, - /// Custom data that the task plugin sends back. This is extensible to allow various plugins in the system. - #[prost(message, optional, tag="11")] - pub custom_info: ::core::option::Option<::prost_types::Struct>, - /// Some phases, like RUNNING, can send multiple events with changed metadata (new logs, additional custom_info, etc) - /// that should be recorded regardless of the lack of phase change. - /// The version field should be incremented when metadata changes across the duration of an individual phase. - #[prost(uint32, tag="12")] - pub phase_version: u32, - /// An optional explanation for the phase transition. - /// Deprecated: Use reasons instead. - #[deprecated] - #[prost(string, tag="13")] - pub reason: ::prost::alloc::string::String, - /// An optional list of explanations for the phase transition. - #[prost(message, repeated, tag="21")] - pub reasons: ::prost::alloc::vec::Vec, - /// A predefined yet extensible Task type identifier. If the task definition is already registered in flyte admin - /// this type will be identical, but not all task executions necessarily use pre-registered definitions and this - /// type is useful to render the task in the UI, filter task executions, etc. - #[prost(string, tag="14")] - pub task_type: ::prost::alloc::string::String, - /// Metadata around how a task was executed. - #[prost(message, optional, tag="16")] - pub metadata: ::core::option::Option, - /// The event version is used to indicate versioned changes in how data is reported using this - /// proto message. For example, event_verison > 0 means that maps tasks report logs using the - /// TaskExecutionMetadata ExternalResourceInfo fields for each subtask rather than the TaskLog - /// in this message. - #[prost(int32, tag="18")] - pub event_version: i32, - /// This timestamp represents the instant when the event was reported by the executing framework. For example, a k8s - /// pod task may be marked completed at (ie. `occurred_at`) the instant the container running user code completes, - /// but this event will not be reported until the pod is marked as completed. Extracting both of these timestamps - /// facilitates a more accurate portrayal of the evaluation time-series. - #[prost(message, optional, tag="20")] - pub reported_at: ::core::option::Option<::prost_types::Timestamp>, - #[prost(oneof="task_execution_event::InputValue", tags="8, 19")] - pub input_value: ::core::option::Option, - #[prost(oneof="task_execution_event::OutputResult", tags="9, 10, 17")] - pub output_result: ::core::option::Option, -} -/// Nested message and enum types in `TaskExecutionEvent`. -pub mod task_execution_event { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum InputValue { - /// URI of the input file, it encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="8")] - InputUri(::prost::alloc::string::String), - /// Raw input data consumed by this task execution. - #[prost(message, tag="19")] - InputData(super::super::core::LiteralMap), - } - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum OutputResult { - /// URI to the output of the execution, it will be in a format that encodes all the information - /// including Cloud source provider. ie., s3://... - #[prost(string, tag="9")] - OutputUri(::prost::alloc::string::String), - /// Error information for the execution - #[prost(message, tag="10")] - Error(super::super::core::ExecutionError), - /// Raw output data produced by this task execution. - #[prost(message, tag="17")] - OutputData(super::super::core::LiteralMap), - } -} -/// This message contains metadata about external resources produced or used by a specific task execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ExternalResourceInfo { - /// Identifier for an external resource created by this task execution, for example Qubole query ID or presto query ids. - #[prost(string, tag="1")] - pub external_id: ::prost::alloc::string::String, - /// A unique index for the external resource with respect to all external resources for this task. Although the - /// identifier may change between task reporting events or retries, this will remain the same to enable aggregating - /// information from multiple reports. - #[prost(uint32, tag="2")] - pub index: u32, - /// Retry attempt number for this external resource, ie., 2 for the second attempt - #[prost(uint32, tag="3")] - pub retry_attempt: u32, - /// Phase associated with the external resource - #[prost(enumeration="super::core::task_execution::Phase", tag="4")] - pub phase: i32, - /// Captures the status of caching for this external resource execution. - #[prost(enumeration="super::core::CatalogCacheStatus", tag="5")] - pub cache_status: i32, - /// log information for the external resource execution - #[prost(message, repeated, tag="6")] - pub logs: ::prost::alloc::vec::Vec, -} -/// This message holds task execution metadata specific to resource allocation used to manage concurrent -/// executions for a project namespace. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ResourcePoolInfo { - /// Unique resource ID used to identify this execution when allocating a token. - #[prost(string, tag="1")] - pub allocation_token: ::prost::alloc::string::String, - /// Namespace under which this task execution requested an allocation token. - #[prost(string, tag="2")] - pub namespace: ::prost::alloc::string::String, -} -/// Holds metadata around how a task was executed. -/// As a task transitions across event phases during execution some attributes, such its generated name, generated external resources, -/// and more may grow in size but not change necessarily based on the phase transition that sparked the event update. -/// Metadata is a container for these attributes across the task execution lifecycle. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskExecutionMetadata { - /// Unique, generated name for this task execution used by the backend. - #[prost(string, tag="1")] - pub generated_name: ::prost::alloc::string::String, - /// Additional data on external resources on other back-ends or platforms (e.g. Hive, Qubole, etc) launched by this task execution. - #[prost(message, repeated, tag="2")] - pub external_resources: ::prost::alloc::vec::Vec, - /// Includes additional data on concurrent resource management used during execution.. - /// This is a repeated field because a plugin can request multiple resource allocations during execution. - #[prost(message, repeated, tag="3")] - pub resource_pool_info: ::prost::alloc::vec::Vec, - /// The identifier of the plugin used to execute this task. - #[prost(string, tag="4")] - pub plugin_identifier: ::prost::alloc::string::String, - #[prost(enumeration="task_execution_metadata::InstanceClass", tag="16")] - pub instance_class: i32, -} -/// Nested message and enum types in `TaskExecutionMetadata`. -pub mod task_execution_metadata { - /// Includes the broad category of machine used for this specific task execution. - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum InstanceClass { - /// The default instance class configured for the flyte application platform. - Default = 0, - /// The instance class configured for interruptible tasks. - Interruptible = 1, - } - impl InstanceClass { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - InstanceClass::Default => "DEFAULT", - InstanceClass::Interruptible => "INTERRUPTIBLE", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "DEFAULT" => Some(Self::Default), - "INTERRUPTIBLE" => Some(Self::Interruptible), - _ => None, - } - } - } -} -/// This is the cloud event parallel to the raw WorkflowExecutionEvent message. It's filled in with additional -/// information that downstream consumers may find useful. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventWorkflowExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, - #[prost(message, optional, tag="2")] - pub output_data: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub output_interface: ::core::option::Option, - #[prost(message, optional, tag="4")] - pub input_data: ::core::option::Option, - /// The following are ExecutionMetadata fields - /// We can't have the ExecutionMetadata object directly because of import cycle - #[prost(message, repeated, tag="5")] - pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(message, optional, tag="6")] - pub reference_execution: ::core::option::Option, - #[prost(string, tag="7")] - pub principal: ::prost::alloc::string::String, - /// The ID of the LP that generated the execution that generated the Artifact. - /// Here for provenance information. - /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - #[prost(message, optional, tag="8")] - pub launch_plan_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventNodeExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, - /// The relevant task execution if applicable - #[prost(message, optional, tag="2")] - pub task_exec_id: ::core::option::Option, - /// Hydrated output - #[prost(message, optional, tag="3")] - pub output_data: ::core::option::Option, - /// The typed interface for the task that produced the event. - #[prost(message, optional, tag="4")] - pub output_interface: ::core::option::Option, - #[prost(message, optional, tag="5")] - pub input_data: ::core::option::Option, - /// The following are ExecutionMetadata fields - /// We can't have the ExecutionMetadata object directly because of import cycle - #[prost(message, repeated, tag="6")] - pub artifact_ids: ::prost::alloc::vec::Vec, - #[prost(string, tag="7")] - pub principal: ::prost::alloc::string::String, - /// The ID of the LP that generated the execution that generated the Artifact. - /// Here for provenance information. - /// Launch plan IDs are easier to get than workflow IDs so we'll use these for now. - #[prost(message, optional, tag="8")] - pub launch_plan_id: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventTaskExecution { - #[prost(message, optional, tag="1")] - pub raw_event: ::core::option::Option, -} -/// This event is to be sent by Admin after it creates an execution. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CloudEventExecutionStart { - /// The execution created. - #[prost(message, optional, tag="1")] - pub execution_id: ::core::option::Option, - /// The launch plan used. - #[prost(message, optional, tag="2")] - pub launch_plan_id: ::core::option::Option, - #[prost(message, optional, tag="3")] - pub workflow_id: ::core::option::Option, - /// Artifact IDs found - #[prost(message, repeated, tag="4")] - pub artifact_ids: ::prost::alloc::vec::Vec, - /// Artifact keys found. - #[prost(string, repeated, tag="5")] - pub artifact_keys: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(string, tag="6")] - pub principal: ::prost::alloc::string::String, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs deleted file mode 100644 index 96d46653da..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.plugins.kubeflow.rs +++ /dev/null @@ -1,205 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RunPolicy { - /// Defines the policy to kill pods after the job completes. Default to None. - #[prost(enumeration="CleanPodPolicy", tag="1")] - pub clean_pod_policy: i32, - /// TTL to clean up jobs. Default to infinite. - #[prost(int32, tag="2")] - pub ttl_seconds_after_finished: i32, - /// Specifies the duration in seconds relative to the startTime that the job may be active - /// before the system tries to terminate it; value must be positive integer. - #[prost(int32, tag="3")] - pub active_deadline_seconds: i32, - /// Number of retries before marking this job failed. - #[prost(int32, tag="4")] - pub backoff_limit: i32, -} -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum RestartPolicy { - Never = 0, - OnFailure = 1, - Always = 2, -} -impl RestartPolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - RestartPolicy::Never => "RESTART_POLICY_NEVER", - RestartPolicy::OnFailure => "RESTART_POLICY_ON_FAILURE", - RestartPolicy::Always => "RESTART_POLICY_ALWAYS", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RESTART_POLICY_NEVER" => Some(Self::Never), - "RESTART_POLICY_ON_FAILURE" => Some(Self::OnFailure), - "RESTART_POLICY_ALWAYS" => Some(Self::Always), - _ => None, - } - } -} -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum CleanPodPolicy { - CleanpodPolicyNone = 0, - CleanpodPolicyRunning = 1, - CleanpodPolicyAll = 2, -} -impl CleanPodPolicy { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - CleanPodPolicy::CleanpodPolicyNone => "CLEANPOD_POLICY_NONE", - CleanPodPolicy::CleanpodPolicyRunning => "CLEANPOD_POLICY_RUNNING", - CleanPodPolicy::CleanpodPolicyAll => "CLEANPOD_POLICY_ALL", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "CLEANPOD_POLICY_NONE" => Some(Self::CleanpodPolicyNone), - "CLEANPOD_POLICY_RUNNING" => Some(Self::CleanpodPolicyRunning), - "CLEANPOD_POLICY_ALL" => Some(Self::CleanpodPolicyAll), - _ => None, - } - } -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Master replicas spec - #[prost(message, optional, tag="2")] - pub launcher_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="3")] - pub run_policy: ::core::option::Option, - /// Number of slots per worker - #[prost(int32, tag="4")] - pub slots: i32, -} -/// Replica specification for distributed MPI training -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// Restart policy determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, - /// MPI sometimes requires different command set for different replica groups - #[prost(string, repeated, tag="5")] - pub command: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, -} -/// Custom proto for torch elastic config for distributed training using -/// -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ElasticConfig { - #[prost(string, tag="1")] - pub rdzv_backend: ::prost::alloc::string::String, - #[prost(int32, tag="2")] - pub min_replicas: i32, - #[prost(int32, tag="3")] - pub max_replicas: i32, - #[prost(int32, tag="4")] - pub nproc_per_node: i32, - #[prost(int32, tag="5")] - pub max_restarts: i32, -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Master replicas spec, master replicas can only have 1 replica - #[prost(message, optional, tag="2")] - pub master_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="3")] - pub run_policy: ::core::option::Option, - /// config for an elastic pytorch job - #[prost(message, optional, tag="4")] - pub elastic_config: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// RestartPolicy determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, -} -/// Proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingTask { - /// Worker replicas spec - #[prost(message, optional, tag="1")] - pub worker_replicas: ::core::option::Option, - /// Parameter server replicas spec - #[prost(message, optional, tag="2")] - pub ps_replicas: ::core::option::Option, - /// Chief replicas spec - #[prost(message, optional, tag="3")] - pub chief_replicas: ::core::option::Option, - /// RunPolicy encapsulates various runtime policies of the distributed training - /// job, for example how to clean up resources and how long the job can stay - /// active. - #[prost(message, optional, tag="4")] - pub run_policy: ::core::option::Option, - /// Evaluator replicas spec - #[prost(message, optional, tag="5")] - pub evaluator_replicas: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingReplicaSpec { - /// Number of replicas - #[prost(int32, tag="1")] - pub replicas: i32, - /// Image used for the replica group - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources required for the replica group - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, - /// RestartPolicy Determines whether pods will be restarted when they exit - #[prost(enumeration="RestartPolicy", tag="4")] - pub restart_policy: i32, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.plugins.rs b/flyteidl/gen/pb_rust/flyteidl.plugins.rs deleted file mode 100644 index bfed40f1a8..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.plugins.rs +++ /dev/null @@ -1,327 +0,0 @@ -// @generated -/// Describes a job that can process independent pieces of data concurrently. Multiple copies of the runnable component -/// will be executed concurrently. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ArrayJob { - /// Defines the maximum number of instances to bring up concurrently at any given point. Note that this is an - /// optimistic restriction and that, due to network partitioning or other failures, the actual number of currently - /// running instances might be more. This has to be a positive number if assigned. Default value is size. - #[prost(int64, tag="1")] - pub parallelism: i64, - /// Defines the number of instances to launch at most. This number should match the size of the input if the job - /// requires processing of all input data. This has to be a positive number. - /// In the case this is not defined, the back-end will determine the size at run-time by reading the inputs. - #[prost(int64, tag="2")] - pub size: i64, - #[prost(oneof="array_job::SuccessCriteria", tags="3, 4")] - pub success_criteria: ::core::option::Option, -} -/// Nested message and enum types in `ArrayJob`. -pub mod array_job { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum SuccessCriteria { - /// An absolute number of the minimum number of successful completions of subtasks. As soon as this criteria is met, - /// the array job will be marked as successful and outputs will be computed. This has to be a non-negative number if - /// assigned. Default value is size (if specified). - #[prost(int64, tag="3")] - MinSuccesses(i64), - /// If the array job size is not known beforehand, the min_success_ratio can instead be used to determine when an array - /// job can be marked successful. - #[prost(float, tag="4")] - MinSuccessRatio(f32), - } -} -/// Custom Proto for Dask Plugin. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskJob { - /// Spec for the scheduler pod. - #[prost(message, optional, tag="1")] - pub scheduler: ::core::option::Option, - /// Spec of the default worker group. - #[prost(message, optional, tag="2")] - pub workers: ::core::option::Option, -} -/// Specification for the scheduler pod. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskScheduler { - /// Optional image to use. If unset, will use the default image. - #[prost(string, tag="1")] - pub image: ::prost::alloc::string::String, - /// Resources assigned to the scheduler pod. - #[prost(message, optional, tag="2")] - pub resources: ::core::option::Option, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DaskWorkerGroup { - /// Number of workers in the group. - #[prost(uint32, tag="1")] - pub number_of_workers: u32, - /// Optional image to use for the pods of the worker group. If unset, will use the default image. - #[prost(string, tag="2")] - pub image: ::prost::alloc::string::String, - /// Resources assigned to the all pods of the worker group. - /// As per - /// it is advised to only set limits. If requests are not explicitly set, the plugin will make - /// sure to set requests==limits. - /// The plugin sets ` --memory-limit` as well as `--nthreads` for the workers according to the limit. - #[prost(message, optional, tag="3")] - pub resources: ::core::option::Option, -} -/// MPI operator proposal -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedMpiTrainingTask { - /// number of worker spawned in the cluster for this job - #[prost(int32, tag="1")] - pub num_workers: i32, - /// number of launcher replicas spawned in the cluster for this job - /// The launcher pod invokes mpirun and communicates with worker pods through MPI. - #[prost(int32, tag="2")] - pub num_launcher_replicas: i32, - /// number of slots per worker used in hostfile. - /// The available slots (GPUs) in each pod. - #[prost(int32, tag="3")] - pub slots: i32, -} -/// This message works with the 'presto' task type in the SDK and is the object that will be in the 'custom' field -/// of a Presto task's TaskTemplate -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PrestoQuery { - #[prost(string, tag="1")] - pub routing_group: ::prost::alloc::string::String, - #[prost(string, tag="2")] - pub catalog: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub schema: ::prost::alloc::string::String, - #[prost(string, tag="4")] - pub statement: ::prost::alloc::string::String, -} -/// Custom proto for torch elastic config for distributed training using -/// -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct ElasticConfig { - #[prost(string, tag="1")] - pub rdzv_backend: ::prost::alloc::string::String, - #[prost(int32, tag="2")] - pub min_replicas: i32, - #[prost(int32, tag="3")] - pub max_replicas: i32, - #[prost(int32, tag="4")] - pub nproc_per_node: i32, - #[prost(int32, tag="5")] - pub max_restarts: i32, -} -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedPyTorchTrainingTask { - /// number of worker replicas spawned in the cluster for this job - #[prost(int32, tag="1")] - pub workers: i32, - /// config for an elastic pytorch job - /// - #[prost(message, optional, tag="2")] - pub elastic_config: ::core::option::Option, -} -/// Defines a query to execute on a hive cluster. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HiveQuery { - #[prost(string, tag="1")] - pub query: ::prost::alloc::string::String, - #[prost(uint32, tag="2")] - pub timeout_sec: u32, - #[prost(uint32, tag="3")] - pub retry_count: u32, -} -/// Defines a collection of hive queries. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HiveQueryCollection { - #[prost(message, repeated, tag="2")] - pub queries: ::prost::alloc::vec::Vec, -} -/// This message works with the 'hive' task type in the SDK and is the object that will be in the 'custom' field -/// of a hive task's TaskTemplate -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct QuboleHiveJob { - #[prost(string, tag="1")] - pub cluster_label: ::prost::alloc::string::String, - #[deprecated] - #[prost(message, optional, tag="2")] - pub query_collection: ::core::option::Option, - #[prost(string, repeated, tag="3")] - pub tags: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - #[prost(message, optional, tag="4")] - pub query: ::core::option::Option, -} -/// RayJobSpec defines the desired state of RayJob -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RayJob { - /// RayClusterSpec is the cluster template to run the job - #[prost(message, optional, tag="1")] - pub ray_cluster: ::core::option::Option, - /// runtime_env is base64 encoded. - /// Ray runtime environments: - #[prost(string, tag="2")] - pub runtime_env: ::prost::alloc::string::String, - /// shutdown_after_job_finishes specifies whether the RayCluster should be deleted after the RayJob finishes. - #[prost(bool, tag="3")] - pub shutdown_after_job_finishes: bool, - /// ttl_seconds_after_finished specifies the number of seconds after which the RayCluster will be deleted after the RayJob finishes. - #[prost(int32, tag="4")] - pub ttl_seconds_after_finished: i32, -} -/// Define Ray cluster defines the desired state of RayCluster -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct RayCluster { - /// HeadGroupSpecs are the spec for the head pod - #[prost(message, optional, tag="1")] - pub head_group_spec: ::core::option::Option, - /// WorkerGroupSpecs are the specs for the worker pods - #[prost(message, repeated, tag="2")] - pub worker_group_spec: ::prost::alloc::vec::Vec, - /// Whether to enable autoscaling. - #[prost(bool, tag="3")] - pub enable_autoscaling: bool, -} -/// HeadGroupSpec are the spec for the head pod -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct HeadGroupSpec { - /// Optional. RayStartParams are the params of the start command: address, object-store-memory. - /// Refer to - #[prost(map="string, string", tag="1")] - pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -/// WorkerGroupSpec are the specs for the worker pods -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct WorkerGroupSpec { - /// Required. RayCluster can have multiple worker groups, and it distinguishes them by name - #[prost(string, tag="1")] - pub group_name: ::prost::alloc::string::String, - /// Required. Desired replicas of the worker group. Defaults to 1. - #[prost(int32, tag="2")] - pub replicas: i32, - /// Optional. Min replicas of the worker group. MinReplicas defaults to 1. - #[prost(int32, tag="3")] - pub min_replicas: i32, - /// Optional. Max replicas of the worker group. MaxReplicas defaults to maxInt32 - #[prost(int32, tag="4")] - pub max_replicas: i32, - /// Optional. RayStartParams are the params of the start command: address, object-store-memory. - /// Refer to - #[prost(map="string, string", tag="5")] - pub ray_start_params: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SparkApplication { -} -/// Nested message and enum types in `SparkApplication`. -pub mod spark_application { - #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] - #[repr(i32)] - pub enum Type { - Python = 0, - Java = 1, - Scala = 2, - R = 3, - } - impl Type { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - Type::Python => "PYTHON", - Type::Java => "JAVA", - Type::Scala => "SCALA", - Type::R => "R", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "PYTHON" => Some(Self::Python), - "JAVA" => Some(Self::Java), - "SCALA" => Some(Self::Scala), - "R" => Some(Self::R), - _ => None, - } - } - } -} -/// Custom Proto for Spark Plugin. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct SparkJob { - #[prost(enumeration="spark_application::Type", tag="1")] - pub application_type: i32, - #[prost(string, tag="2")] - pub main_application_file: ::prost::alloc::string::String, - #[prost(string, tag="3")] - pub main_class: ::prost::alloc::string::String, - #[prost(map="string, string", tag="4")] - pub spark_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - #[prost(map="string, string", tag="5")] - pub hadoop_conf: ::std::collections::HashMap<::prost::alloc::string::String, ::prost::alloc::string::String>, - /// Executor path for Python jobs. - #[prost(string, tag="6")] - pub executor_path: ::prost::alloc::string::String, - /// Databricks job configuration. - /// Config structure can be found here. - #[prost(message, optional, tag="7")] - pub databricks_conf: ::core::option::Option<::prost_types::Struct>, - /// Databricks access token. - /// This token can be set in either flytepropeller or flytekit. - #[prost(string, tag="8")] - pub databricks_token: ::prost::alloc::string::String, - /// Domain name of your deployment. Use the form .cloud.databricks.com. - /// This instance name can be set in either flytepropeller or flytekit. - #[prost(string, tag="9")] - pub databricks_instance: ::prost::alloc::string::String, -} -/// Custom proto for plugin that enables distributed training using -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct DistributedTensorflowTrainingTask { - /// number of worker replicas spawned in the cluster for this job - #[prost(int32, tag="1")] - pub workers: i32, - /// PS -> Parameter server - /// number of ps replicas spawned in the cluster for this job - #[prost(int32, tag="2")] - pub ps_replicas: i32, - /// number of chief replicas spawned in the cluster for this job - #[prost(int32, tag="3")] - pub chief_replicas: i32, - /// number of evaluator replicas spawned in the cluster for this job - #[prost(int32, tag="4")] - pub evaluator_replicas: i32, -} -/// Represents an Execution that was launched and could be waited on. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct Waitable { - #[prost(message, optional, tag="1")] - pub wf_exec_id: ::core::option::Option, - #[prost(enumeration="super::core::workflow_execution::Phase", tag="2")] - pub phase: i32, - #[prost(string, tag="3")] - pub workflow_id: ::prost::alloc::string::String, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/gen/pb_rust/flyteidl.service.rs b/flyteidl/gen/pb_rust/flyteidl.service.rs deleted file mode 100644 index c427170333..0000000000 --- a/flyteidl/gen/pb_rust/flyteidl.service.rs +++ /dev/null @@ -1,400 +0,0 @@ -// @generated -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2MetadataRequest { -} -/// OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata -/// as defined in -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct OAuth2MetadataResponse { - /// Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external - /// issuer. - #[prost(string, tag="1")] - pub issuer: ::prost::alloc::string::String, - /// URL of the authorization server's authorization endpoint \[RFC6749\]. This is REQUIRED unless no grant types are - /// supported that use the authorization endpoint. - #[prost(string, tag="2")] - pub authorization_endpoint: ::prost::alloc::string::String, - /// URL of the authorization server's token endpoint \[RFC6749\]. - #[prost(string, tag="3")] - pub token_endpoint: ::prost::alloc::string::String, - /// Array containing a list of the OAuth 2.0 response_type values that this authorization server supports. - #[prost(string, repeated, tag="4")] - pub response_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of the OAuth 2.0 \[RFC6749\] scope values that this authorization server supports. - #[prost(string, repeated, tag="5")] - pub scopes_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of client authentication methods supported by this token endpoint. - #[prost(string, repeated, tag="6")] - pub token_endpoint_auth_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// URL of the authorization server's JWK Set \[JWK\] document. The referenced document contains the signing key(s) the - /// client uses to validate signatures from the authorization server. - #[prost(string, tag="7")] - pub jwks_uri: ::prost::alloc::string::String, - /// JSON array containing a list of Proof Key for Code Exchange (PKCE) \[RFC7636\] code challenge methods supported by - /// this authorization server. - #[prost(string, repeated, tag="8")] - pub code_challenge_methods_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports. - #[prost(string, repeated, tag="9")] - pub grant_types_supported: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of \[RFC8628\] - #[prost(string, tag="10")] - pub device_authorization_endpoint: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PublicClientAuthConfigRequest { -} -/// FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PublicClientAuthConfigResponse { - /// client_id to use when initiating OAuth2 authorization requests. - #[prost(string, tag="1")] - pub client_id: ::prost::alloc::string::String, - /// redirect uri to use when initiating OAuth2 authorization requests. - #[prost(string, tag="2")] - pub redirect_uri: ::prost::alloc::string::String, - /// scopes to request when initiating OAuth2 authorization requests. - #[prost(string, repeated, tag="3")] - pub scopes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the - /// default http `Authorization` header. - #[prost(string, tag="4")] - pub authorization_metadata_key: ::prost::alloc::string::String, - /// ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used - /// to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between - /// SSL or no SSL connections. - #[prost(string, tag="5")] - pub service_http_endpoint: ::prost::alloc::string::String, - /// audience to use when initiating OAuth2 authorization requests. - #[prost(string, tag="6")] - pub audience: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateUploadLocationResponse { - /// SignedUrl specifies the url to use to upload content to (e.g. ) - #[prost(string, tag="1")] - pub signed_url: ::prost::alloc::string::String, - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="2")] - pub native_url: ::prost::alloc::string::String, - /// ExpiresAt defines when will the signed URL expires. - #[prost(message, optional, tag="3")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// CreateUploadLocationRequest specified request for the CreateUploadLocation API. -/// The implementation in data proxy service will create the s3 location with some server side configured prefixes, -/// and then: -/// - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR -/// - project/domain/filename_root (if present)/filename (if present). -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateUploadLocationRequest { - /// Project to create the upload location for - /// +required - #[prost(string, tag="1")] - pub project: ::prost::alloc::string::String, - /// Domain to create the upload location for. - /// +required - #[prost(string, tag="2")] - pub domain: ::prost::alloc::string::String, - /// Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`. - /// +optional. By default, the service will generate a consistent name based on the provided parameters. - #[prost(string, tag="3")] - pub filename: ::prost::alloc::string::String, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="4")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, - /// ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the - /// generated path. - /// +required - #[prost(bytes="vec", tag="5")] - pub content_md5: ::prost::alloc::vec::Vec, - /// If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included - /// this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix - /// in data proxy config. This option is useful when uploading multiple files. - /// +optional - #[prost(string, tag="6")] - pub filename_root: ::prost::alloc::string::String, -} -/// CreateDownloadLocationRequest specified request for the CreateDownloadLocation API. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLocationRequest { - /// NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar) - #[prost(string, tag="1")] - pub native_url: ::prost::alloc::string::String, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="2")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLocationResponse { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[prost(string, tag="1")] - pub signed_url: ::prost::alloc::string::String, - /// ExpiresAt defines when will the signed URL expires. - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// CreateDownloadLinkRequest defines the request parameters to create a download link (signed url) -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLinkRequest { - /// ArtifactType of the artifact requested. - #[prost(enumeration="ArtifactType", tag="1")] - pub artifact_type: i32, - /// ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this - /// exceeds the platform allowed max. - /// +optional. The default value comes from a global config. - #[prost(message, optional, tag="2")] - pub expires_in: ::core::option::Option<::prost_types::Duration>, - #[prost(oneof="create_download_link_request::Source", tags="3")] - pub source: ::core::option::Option, -} -/// Nested message and enum types in `CreateDownloadLinkRequest`. -pub mod create_download_link_request { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Source { - /// NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the - /// most recent attempt of the task. - #[prost(message, tag="3")] - NodeExecutionId(super::super::core::NodeExecutionIdentifier), - } -} -/// CreateDownloadLinkResponse defines the response for the generated links -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct CreateDownloadLinkResponse { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[deprecated] - #[prost(string, repeated, tag="1")] - pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// ExpiresAt defines when will the signed URL expire. - #[deprecated] - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, - /// New wrapper object containing the signed urls and expiration time - #[prost(message, optional, tag="3")] - pub pre_signed_urls: ::core::option::Option, -} -/// Wrapper object since the message is shared across this and the GetDataResponse -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct PreSignedUrLs { - /// SignedUrl specifies the url to use to download content from (e.g. ) - #[prost(string, repeated, tag="1")] - pub signed_url: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, - /// ExpiresAt defines when will the signed URL expire. - #[prost(message, optional, tag="2")] - pub expires_at: ::core::option::Option<::prost_types::Timestamp>, -} -/// General request artifact to retrieve data from a Flyte artifact url. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDataRequest { - /// A unique identifier in the form of flyte:// that uniquely, for a given Flyte - /// backend, identifies a Flyte artifact (\[i\]nput, \[o\]output, flyte \[d\]eck, etc.). - /// e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input) - /// flyte://v1/proj/development/execid/n2/i (for node execution input) - /// flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node) - #[prost(string, tag="1")] - pub flyte_url: ::prost::alloc::string::String, -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct GetDataResponse { - #[prost(oneof="get_data_response::Data", tags="1, 2, 3")] - pub data: ::core::option::Option, -} -/// Nested message and enum types in `GetDataResponse`. -pub mod get_data_response { - #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Oneof)] - pub enum Data { - /// literal map data will be returned - #[prost(message, tag="1")] - LiteralMap(super::super::core::LiteralMap), - /// Flyte deck html will be returned as a signed url users can download - #[prost(message, tag="2")] - PreSignedUrls(super::PreSignedUrLs), - /// Single literal will be returned. This is returned when the user/url requests a specific output or input - /// by name. See the o3 example above. - #[prost(message, tag="3")] - Literal(super::super::core::Literal), - } -} -/// ArtifactType -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum ArtifactType { - /// ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum. - Undefined = 0, - /// ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan - /// finishes executing. - Deck = 1, -} -impl ArtifactType { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - ArtifactType::Undefined => "ARTIFACT_TYPE_UNDEFINED", - ArtifactType::Deck => "ARTIFACT_TYPE_DECK", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "ARTIFACT_TYPE_UNDEFINED" => Some(Self::Undefined), - "ARTIFACT_TYPE_DECK" => Some(Self::Deck), - _ => None, - } - } -} -/// Represents a request structure to create task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateRequest { - /// The inputs required to start the execution. All required inputs must be - /// included in this map. If not required and not provided, defaults apply. - /// +optional - #[prost(message, optional, tag="1")] - pub inputs: ::core::option::Option, - /// Template of the task that encapsulates all the metadata of the task. - #[prost(message, optional, tag="2")] - pub template: ::core::option::Option, - /// Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring) - #[prost(string, tag="3")] - pub output_prefix: ::prost::alloc::string::String, -} -/// Represents a create response structure. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskCreateResponse { - #[prost(string, tag="1")] - pub job_id: ::prost::alloc::string::String, -} -/// A message used to fetch a job state from backend plugin server. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskGetRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// The unique id identifying the job. - #[prost(string, tag="2")] - pub job_id: ::prost::alloc::string::String, -} -/// Response to get an individual task state. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskGetResponse { - /// The state of the execution is used to control its visibility in the UI/CLI. - #[prost(enumeration="State", tag="1")] - pub state: i32, - /// The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a - /// Structured dataset pointing to the query result table. - /// +optional - #[prost(message, optional, tag="2")] - pub outputs: ::core::option::Option, -} -/// A message used to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskDeleteRequest { - /// A predefined yet extensible Task type identifier. - #[prost(string, tag="1")] - pub task_type: ::prost::alloc::string::String, - /// The unique id identifying the job. - #[prost(string, tag="2")] - pub job_id: ::prost::alloc::string::String, -} -/// Response to delete a task. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct TaskDeleteResponse { -} -/// The state of the execution is used to control its visibility in the UI/CLI. -#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] -#[repr(i32)] -pub enum State { - RetryableFailure = 0, - PermanentFailure = 1, - Pending = 2, - Running = 3, - Succeeded = 4, -} -impl State { - /// String value of the enum field names used in the ProtoBuf definition. - /// - /// The values are not transformed in any way and thus are considered stable - /// (if the ProtoBuf definition does not change) and safe for programmatic use. - pub fn as_str_name(&self) -> &'static str { - match self { - State::RetryableFailure => "RETRYABLE_FAILURE", - State::PermanentFailure => "PERMANENT_FAILURE", - State::Pending => "PENDING", - State::Running => "RUNNING", - State::Succeeded => "SUCCEEDED", - } - } - /// Creates an enum from field names used in the ProtoBuf definition. - pub fn from_str_name(value: &str) -> ::core::option::Option { - match value { - "RETRYABLE_FAILURE" => Some(Self::RetryableFailure), - "PERMANENT_FAILURE" => Some(Self::PermanentFailure), - "PENDING" => Some(Self::Pending), - "RUNNING" => Some(Self::Running), - "SUCCEEDED" => Some(Self::Succeeded), - _ => None, - } - } -} -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UserInfoRequest { -} -/// See the OpenID Connect spec at for more information. -#[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] -pub struct UserInfoResponse { - /// Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed - /// by the Client. - #[prost(string, tag="1")] - pub subject: ::prost::alloc::string::String, - /// Full name - #[prost(string, tag="2")] - pub name: ::prost::alloc::string::String, - /// Shorthand name by which the End-User wishes to be referred to - #[prost(string, tag="3")] - pub preferred_username: ::prost::alloc::string::String, - /// Given name(s) or first name(s) - #[prost(string, tag="4")] - pub given_name: ::prost::alloc::string::String, - /// Surname(s) or last name(s) - #[prost(string, tag="5")] - pub family_name: ::prost::alloc::string::String, - /// Preferred e-mail address - #[prost(string, tag="6")] - pub email: ::prost::alloc::string::String, - /// Profile picture URL - #[prost(string, tag="7")] - pub picture: ::prost::alloc::string::String, - /// Additional claims - #[prost(message, optional, tag="8")] - pub additional_claims: ::core::option::Option<::prost_types::Struct>, -} -// @@protoc_insertion_point(module) diff --git a/flyteidl/protos/flyteidl/admin/agent.proto b/flyteidl/protos/flyteidl/admin/agent.proto index 778fcc99d0..1cee1de681 100644 --- a/flyteidl/protos/flyteidl/admin/agent.proto +++ b/flyteidl/protos/flyteidl/admin/agent.proto @@ -5,9 +5,10 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin import "flyteidl/core/literals.proto"; import "flyteidl/core/tasks.proto"; -import "flyteidl/core/interface.proto"; import "flyteidl/core/identifier.proto"; import "flyteidl/core/execution.proto"; +import "flyteidl/core/metrics.proto"; + // The state of the execution is used to control its visibility in the UI/CLI. enum State { @@ -125,3 +126,35 @@ message ListAgentsRequest {} message ListAgentsResponse { repeated Agent agents = 1; } + +// A request to get the metrics from a task execution. +message GetTaskMetricsRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 2; + // The metrics to query. If empty, will return a default set of metrics. + repeated core.ExecutionMetric metrics = 3; +} + +// A response containing a list of metrics for a task execution. +message GetTaskMetricsResponse { + // The execution metric results. + repeated core.ExecutionMetricResult results = 1; +} + +// A request to get the log from a task execution. +message GetTaskLogsRequest { + // A predefined yet extensible Task type identifier. + string task_type = 1; + // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata). + bytes resource_meta = 2; + // Number of lines to return. + uint64 lines = 3; +} + +// A response containing the logs for a task execution. +message GetTaskLogsResponse { + // The execution log results. + repeated string results = 1; +} \ No newline at end of file diff --git a/flyteidl/protos/flyteidl/core/metrics.proto b/flyteidl/protos/flyteidl/core/metrics.proto index 22b07caa96..8093acf0ff 100644 --- a/flyteidl/protos/flyteidl/core/metrics.proto +++ b/flyteidl/protos/flyteidl/core/metrics.proto @@ -6,6 +6,7 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/core" import "flyteidl/core/identifier.proto"; import "google/protobuf/timestamp.proto"; +import "google/protobuf/struct.proto"; // Span represents a duration trace of Flyte execution. The id field denotes a Flyte execution entity or an operation // which uniquely identifies the Span. The spans attribute allows this Span to be further broken down into more diff --git a/flyteidl/protos/flyteidl/service/agent.proto b/flyteidl/protos/flyteidl/service/agent.proto index f2c62e966b..47189428d3 100644 --- a/flyteidl/protos/flyteidl/service/agent.proto +++ b/flyteidl/protos/flyteidl/service/agent.proto @@ -5,9 +5,6 @@ option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/servi import "google/api/annotations.proto"; import "flyteidl/admin/agent.proto"; -import "flyteidl/core/identifier.proto"; -import "flyteidl/core/metrics.proto"; -import "validate/validate.proto"; // AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server. service AsyncAgentService { @@ -17,6 +14,16 @@ service AsyncAgentService { rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){}; // Delete the task resource. rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){}; + + // GetTaskMetrics returns one or more task execution metrics, if available. + // + // Errors include + // * OutOfRange if metrics are not available for the specified task time range + // * various other errors + rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse) {}; + + // GetTaskLogs returns task execution logs, if available. + rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (flyteidl.admin.GetTaskLogsResponse) {}; } // AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway. @@ -36,19 +43,3 @@ service AgentMetadataService { }; }; } - -message GetTaskExecutionMetricsRequest { - // The task execution attempt to query - core.TaskExecutionIdentifier id = 1 [(validate.rules).message.required = true]; - // The metrics to query. If empty, will return a default set of metrics - repeated core.ExecutionMetric metrics = 2 [(validate.rules).repeated.unique = true]; - // Used for fetching sub task level metrics . eg in case of map task - uint32 subtask_index = 3; - // Retry attempt of the subtask. - uint32 subtask_retry_attempt = 4; -} - -message GetTaskExecutionMetricsResponse { - // The execution metric results - repeated core.ExecutionMetricResult results = 1; -}